@vitest/browser 3.0.0-beta.3 → 3.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.d.ts +36 -0
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/index-BC8TFRpg.js +52 -0
- package/dist/client/__vitest__/index.html +1 -1
- package/dist/client/__vitest_browser__/{orchestrator-vOivV83Y.js → orchestrator-Cv-bzUFk.js} +1 -1
- package/dist/client/__vitest_browser__/{tester-CDBn6hqf.js → tester-DreAh6ar.js} +69 -55
- package/dist/client/__vitest_browser__/{utils-Owv5OOOf.js → utils-CaCTRFti.js} +2 -0
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/client.js +2 -2
- package/dist/context.js +22 -1
- package/dist/{index-VFFcOojA.js → index-Dos_sf7B.js} +9 -0
- package/dist/index.js +32 -22
- package/dist/locators/index.d.ts +3 -0
- package/dist/locators/index.js +1 -1
- package/dist/locators/playwright.js +1 -1
- package/dist/locators/preview.js +1 -1
- package/dist/locators/webdriverio.js +1 -1
- package/jest-dom.d.ts +4 -4
- package/package.json +9 -9
- package/providers/playwright.d.ts +2 -1
- package/providers/webdriverio.d.ts +2 -1
- package/dist/client/__vitest__/assets/index-JmEkKNR0.js +0 -52
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var XS=Object.defineProperty;var YS=(e,t,r)=>t in e?XS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ds=(e,t,r)=>YS(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
+
* @vue/shared v3.5.12
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
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 gt={},bs=[],Hr=()=>{},ZS=()=>!1,vu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ph=e=>e.startsWith("onUpdate:"),Qt=Object.assign,gh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},JS=Object.prototype.hasOwnProperty,bt=(e,t)=>JS.call(e,t),Fe=Array.isArray,ws=e=>da(e)==="[object Map]",mu=e=>da(e)==="[object Set]",uv=e=>da(e)==="[object Date]",je=e=>typeof e=="function",Pt=e=>typeof e=="string",_r=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",P0=e=>(St(e)||je(e))&&je(e.then)&&je(e.catch),O0=Object.prototype.toString,da=e=>O0.call(e),QS=e=>da(e).slice(8,-1),R0=e=>da(e)==="[object Object]",vh=e=>Pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=hh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},e_=/-(\w)/g,Jn=yu(e=>e.replace(e_,(t,r)=>r?r.toUpperCase():"")),t_=/\B([A-Z])/g,yi=yu(e=>e.replace(t_,"-$1").toLowerCase()),bu=yu(e=>e.charAt(0).toUpperCase()+e.slice(1)),kc=yu(e=>e?`on${bu(e)}`:""),Fn=(e,t)=>!Object.is(e,t),Tc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},D0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},yd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},z0=e=>{const t=Pt(e)?Number(e):NaN;return isNaN(t)?e:t};let fv;const wu=()=>fv||(fv=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=Pt(o)?o_(o):Jt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Pt(e)||St(e))return e}const n_=/;(?![^(]*\))/g,r_=/:([^]+)/,i_=/\/\*[^]*?\*\//g;function o_(e){const t={};return e.replace(i_,"").split(n_).forEach(r=>{if(r){const o=r.split(r_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function st(e){let t="";if(Pt(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(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function s_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Pt(t)&&(e.class=st(t)),r&&(e.style=Jt(r)),e}const l_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a_=hh(l_);function I0(e){return!!e||e===""}function c_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=xu(e[o],t[o]);return r}function xu(e,t){if(e===t)return!0;let r=uv(e),o=uv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=_r(e),o=_r(t),r||o)return e===t;if(r=Fe(e),o=Fe(t),r||o)return r&&o?c_(e,t):!1;if(r=St(e),o=St(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!xu(e[f],t[f]))return!1}}return String(e)===String(t)}function F0(e,t){return e.findIndex(r=>xu(r,t))}const H0=e=>!!(e&&e.__v_isRef===!0),He=e=>Pt(e)?e:e==null?"":Fe(e)||St(e)&&(e.toString===O0||!je(e.toString))?H0(e)?He(e.value):JSON.stringify(e,q0,2):String(e),q0=(e,t)=>H0(t)?q0(e,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Vf(o,c)+" =>"]=s,r),{})}:mu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Vf(r))}:_r(t)?Vf(t):St(t)&&!Fe(t)&&!R0(t)?String(t):t,Vf=(e,t="")=>{var r;return _r(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.12
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Tn;class u_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Tn,!t&&Tn&&(this.index=(Tn.scopes||(Tn.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=Tn;try{return Tn=this,t()}finally{Tn=r}}}on(){Tn=this}off(){Tn=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 Tn}function f_(e,t=!1){Tn&&Tn.cleanups.push(e)}let _t;const jf=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,Tn&&Tn.active&&Tn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,jf.has(this)&&(jf.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,dv(this),j0(this);const t=_t,r=wr;_t=this,wr=!0;try{return this.fn()}finally{G0(this),_t=t,wr=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,dv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?jf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){bd(this)&&this.run()}get dirty(){return bd(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),d_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function bd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(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&&!bd(e)){e.flags&=-3;return}const r=_t,o=wr;_t=e,wr=!0;try{j0(e);const s=e.fn(e._value);(t.version===0||Fn(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_t=r,wr=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 d_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let wr=!0;const X0=[];function io(){X0.push(wr),wr=!1}function oo(){const e=X0.pop();wr=e===void 0?!0:e}function dv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=_t;_t=void 0;try{t()}finally{_t=r}}}let Wl=0;class h_{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 Su{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(!_t||!wr||_t===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==_t)r=this.activeLink=new h_(_t,this),_t.deps?(r.prevDep=_t.depsTail,_t.depsTail.nextDep=r,_t.depsTail=r):_t.deps=_t.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=_t.depsTail,r.nextDep=void 0,_t.depsTail.nextDep=r,_t.depsTail=r,_t.deps===r&&(_t.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 Hc=new WeakMap,Lo=Symbol(""),wd=Symbol(""),Ul=Symbol("");function dn(e,t,r){if(wr&&_t){let o=Hc.get(e);o||Hc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Su),s.map=o,s.key=r),s.track()}}function ui(e,t,r,o,s,c){const f=Hc.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||!_r(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(Lo)),ws(e)&&d(f.get(wd)));break;case"delete":h||(d(f.get(Lo)),ws(e)&&d(f.get(wd)));break;case"set":ws(e)&&d(f.get(Lo));break}}yh()}function p_(e,t){const r=Hc.get(e);return r&&r.get(t)}function hs(e){const t=ht(e);return t===e?t:(dn(t,"iterate",Ul),or(e)?t:t.map(hn))}function _u(e){return dn(e=ht(e),"iterate",Ul),e}const g_={__proto__:null,[Symbol.iterator](){return Gf(this,Symbol.iterator,hn)},concat(...e){return hs(this).concat(...e.map(t=>Fe(t)?hs(t):t))},entries(){return Gf(this,"entries",e=>(e[1]=hn(e[1]),e))},every(e,t){return oi(this,"every",e,t,void 0,arguments)},filter(e,t){return oi(this,"filter",e,t,r=>r.map(hn),arguments)},find(e,t){return oi(this,"find",e,t,hn,arguments)},findIndex(e,t){return oi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return oi(this,"findLast",e,t,hn,arguments)},findLastIndex(e,t){return oi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return oi(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kf(this,"includes",e)},indexOf(...e){return Kf(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return Kf(this,"lastIndexOf",e)},map(e,t){return oi(this,"map",e,t,void 0,arguments)},pop(){return wl(this,"pop")},push(...e){return wl(this,"push",e)},reduce(e,...t){return hv(this,"reduce",e,t)},reduceRight(e,...t){return hv(this,"reduceRight",e,t)},shift(){return wl(this,"shift")},some(e,t){return oi(this,"some",e,t,void 0,arguments)},splice(...e){return wl(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return wl(this,"unshift",e)},values(){return Gf(this,"values",hn)}};function Gf(e,t,r){const o=_u(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 v_=Array.prototype;function oi(e,t,r,o,s,c){const f=_u(e),d=f!==e&&!or(e),h=f[t];if(h!==v_[t]){const m=h.apply(e,c);return d?hn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,hn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function hv(e,t,r,o){const s=_u(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,hn(d),h,e)}),s[t](c,...o)}function Kf(e,t,r){const o=ht(e);dn(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 m_=hh("__proto__,__v_isRef,__isVue"),Z0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_r));function y_(e){_r(e)||(e=String(e));const t=ht(this);return dn(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?L_: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=g_[r]))return h;if(r==="hasOwnProperty")return y_}const d=Reflect.get(t,r,Et(t)?t:o);return(_r(r)?Z0.has(r):m_(r))||(s||dn(t,"get",r),c)?d:Et(d)?f&&vh(r)?d:d.value:St(d)?s?ha(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)&&Et(c)&&!Et(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,Et(t)?t:s);return t===ht(s)&&(f?Fn(o,c)&&ui(t,"set",r,o):ui(t,"add",r,o)),d}deleteProperty(t,r){const o=bt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ui(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!_r(r)||!Z0.has(r))&&dn(t,"has",r),o}ownKeys(t){return dn(t,"iterate",Fe(t)?"length":Lo),Reflect.ownKeys(t)}}class b_ extends J0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const w_=new Q0,x_=new b_,S_=new Q0(!0);const xd=e=>e,sc=e=>Reflect.getPrototypeOf(e);function __(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=ws(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?xd:t?Sd:hn;return!t&&dn(c,"iterate",h?wd:Lo),{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 lc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function k_(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(Fn(s,d)&&dn(f,"get",s),dn(f,"get",d));const{has:h}=sc(f),p=t?xd:e?Sd:hn;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&dn(ht(s),"iterate",Lo),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(Fn(s,d)&&dn(f,"has",s),dn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=ht(d),p=t?xd:e?Sd:hn;return!e&&dn(h,"iterate",Lo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return Qt(r,e?{add:lc("add"),set:lc("set"),delete:lc("delete"),clear:lc("clear")}:{add(s){!t&&!or(s)&&!$o(s)&&(s=ht(s));const c=ht(this);return sc(c).has.call(c,s)||(c.add(s),ui(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!$o(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=sc(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?Fn(c,v)&&ui(f,"set",s,c):ui(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=sc(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&&ui(c,"delete",s,void 0),p},clear(){const s=ht(this),c=s.size!==0,f=s.clear();return c&&ui(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=__(s,e,t)}),r}function wh(e,t){const r=k_(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 T_={get:wh(!1,!1)},C_={get:wh(!1,!0)},E_={get:wh(!0,!1)};const ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,L_=new WeakMap;function A_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function M_(e){return e.__v_skip||!Object.isExtensible(e)?0:A_(QS(e))}function Zn(e){return $o(e)?e:Sh(e,!1,w_,T_,ey)}function xh(e){return Sh(e,!1,S_,C_,ty)}function ha(e){return Sh(e,!0,x_,E_,ny)}function Sh(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=M_(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function xs(e){return $o(e)?xs(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 hn=e=>St(e)?Zn(e):e,Sd=e=>St(e)?ha(e):e;function Et(e){return e?e.__v_isRef===!0:!1}function Be(e){return ry(e,!1)}function Gr(e){return ry(e,!0)}function ry(e,t){return Et(e)?e:new N_(e,t)}class N_{constructor(t,r){this.dep=new Su,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:hn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||or(t)||$o(t);t=o?t:ht(t),Fn(t,r)&&(this._rawValue=t,this._value=o?t:hn(t),this.dep.trigger())}}function I(e){return Et(e)?e.value:e}function $_(e){return je(e)?e():I(e)}const P_={get:(e,t,r)=>t==="__v_raw"?e:I(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Et(s)&&!Et(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function iy(e){return xs(e)?e:new Proxy(e,P_)}class O_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Su,{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 O_(e)}function R_(e){const t=Fe(e)?new Array(e.length):{};for(const r in e)t[r]=sy(e,r);return t}class D_{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 p_(ht(this._object),this._key)}}class z_{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 pa(e,t,r){return Et(e)?e:je(e)?new z_(e):St(e)&&arguments.length>1?sy(e,t,r):Be(e)}function sy(e,t,r){const o=e[t];return Et(o)?o:new D_(e,t,r)}class I_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Su(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)&&_t!==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 F_(e,t,r=!1){let o,s;return je(e)?o=e:(o=e.get,s=e.set),new I_(o,s,r)}const ac={},qc=new WeakMap;let _o;function H_(e,t=!1,r=_o){if(r){let o=qc.get(r);o||qc.set(r,o=[]),o.push(e)}}function q_(e,t,r=gt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=L=>s?L:or(L)||s===!1||s===0?fi(L,1):fi(L);let v,m,b,w,M=!1,A=!1;if(Et(e)?(m=()=>e.value,M=or(e)):xs(e)?(m=()=>p(e),M=!0):Fe(e)?(A=!0,M=e.some(L=>xs(L)||or(L)),m=()=>e.map(L=>{if(Et(L))return L.value;if(xs(L))return p(L);if(je(L))return h?h(L,2):L()})):je(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){io();try{b()}finally{oo()}}const L=_o;_o=v;try{return h?h(e,3,[w]):e(w)}finally{_o=L}}:m=Hr,t&&s){const L=m,O=s===!0?1/0:s;m=()=>fi(L(),O)}const C=B0(),E=()=>{v.stop(),C&&gh(C.effects,v)};if(c&&t){const L=t;t=(...O)=>{L(...O),E()}}let N=A?new Array(e.length).fill(ac):ac;const P=L=>{if(!(!(v.flags&1)||!v.dirty&&!L))if(t){const O=v.run();if(s||M||(A?O.some((W,U)=>Fn(W,N[U])):Fn(O,N))){b&&b();const W=_o;_o=v;try{const U=[O,N===ac?void 0:A&&N[0]===ac?[]:N,w];h?h(t,3,U):t(...U),N=O}finally{_o=W}}}else v.run()};return d&&d(P),v=new W0(m),v.scheduler=f?()=>f(P,!1):P,w=L=>H_(L,!1,v),b=v.onStop=()=>{const L=qc.get(v);if(L){if(h)h(L,4);else for(const O of L)O();qc.delete(v)}},t?o?P(!0):N=v.run():f?f(P.bind(null,!0),!0):v.run(),E.pause=v.pause.bind(v),E.resume=v.resume.bind(v),E.stop=E,E}function fi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Et(e))fi(e.value,t,r);else if(Fe(e))for(let o=0;o<e.length;o++)fi(e[o],t,r);else if(mu(e)||ws(e))e.forEach(o=>{fi(o,t,r)});else if(R0(e)){for(const o in e)fi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&fi(e[o],t,r)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.12
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function ga(e,t,r,o){try{return o?e(...o):e()}catch(s){va(s,t,r)}}function kr(e,t,r,o){if(je(e)){const s=ga(e,t,r,o);return s&&P0(s)&&s.catch(c=>{va(c,t,r)}),s}if(Fe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(kr(e[c],t,r,o));return s}}function va(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||gt;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(),ga(c,null,10,[e,h,p]),oo();return}}B_(e,r,s,o,f)}function B_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const En=[];let Ir=-1;const Ss=[];let Hi=null,ps=0;const ly=Promise.resolve();let Bc=null;function cn(e){const t=Bc||ly;return e?t.then(this?e.bind(this):e):t}function W_(e){let t=Ir+1,r=En.length;for(;t<r;){const o=t+r>>>1,s=En[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=En[En.length-1];!r||!(e.flags&2)&&t>=Vl(r)?En.push(e):En.splice(W_(t),0,e),e.flags|=1,ay()}}function ay(){Bc||(Bc=ly.then(uy))}function _d(e){Fe(e)?Ss.push(...e):Hi&&e.id===-1?Hi.splice(ps+1,0,e):e.flags&1||(Ss.push(e),e.flags|=1),ay()}function pv(e,t,r=Ir+1){for(;r<En.length;r++){const o=En[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;En.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function cy(e){if(Ss.length){const t=[...new Set(Ss)].sort((r,o)=>Vl(r)-Vl(o));if(Ss.length=0,Hi){Hi.push(...t);return}for(Hi=t,ps=0;ps<Hi.length;ps++){const r=Hi[ps];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Hi=null,ps=0}}const Vl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function uy(e){try{for(Ir=0;Ir<En.length;Ir++){const t=En[Ir];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ga(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ir<En.length;Ir++){const t=En[Ir];t&&(t.flags&=-2)}Ir=-1,En.length=0,cy(),Bc=null,(En.length||Ss.length)&&uy()}}let Zt=null,ku=null;function Wc(e){const t=Zt;return Zt=e,ku=e&&e.type.__scopeId||null,t}function fy(e){ku=e}function dy(){ku=null}const hy=e=>rt;function rt(e,t=Zt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Gc(-1);const c=Wc(t);let f;try{f=e(...s)}finally{Wc(c),o._d&&Gc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function vt(e,t){if(Zt===null)return e;const r=Nu(Zt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=gt]=t[s];c&&(je(c)&&(c={mounted:c,updated:c}),c.deep&&fi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function yo(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(),kr(h,r,8,[e.el,d,e,t]),oo())}}const U_=Symbol("_vte"),py=e=>e.__isTeleport,qi=Symbol("_leaveCb"),cc=Symbol("_enterCb");function V_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hs(()=>{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},j_={name:"BaseTransition",props:gy,setup(e,{slots:t}){const r=qs(),o=V_();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 Xf(c);const h=gv(c);if(!h)return Xf(c);let p=kd(h,f,o,r,b=>p=b);h.type!==an&&jl(h,p);const v=r.subTree,m=v&&gv(v);if(m&&m.type!==an&&!Fr(h,m)&&vy(r).type!==an){const b=kd(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},Xf(c);d==="in-out"&&h.type!==an&&(b.delayLeave=(w,M,A)=>{const C=yy(o,m);C[String(m.key)]=m,w[qi]=()=>{M(),w[qi]=void 0,delete p.delayedLeave},p.delayedLeave=A})}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 G_=j_;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 kd(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:A,onBeforeAppear:C,onAppear:E,onAfterAppear:N,onAppearCancelled:P}=t,L=String(e.key),O=yy(r,e),W=(Q,G)=>{Q&&kr(Q,o,9,G)},U=(Q,G)=>{const te=G[1];W(Q,G),Fe(Q)?Q.every(J=>J.length<=1)&&te():Q.length<=1&&te()},re={mode:f,persisted:d,beforeEnter(Q){let G=h;if(!r.isMounted)if(c)G=C||h;else return;Q[qi]&&Q[qi](!0);const te=O[L];te&&Fr(e,te)&&te.el[qi]&&te.el[qi](),W(G,[Q])},enter(Q){let G=p,te=v,J=m;if(!r.isMounted)if(c)G=E||p,te=N||v,J=P||m;else return;let H=!1;const F=Q[cc]=k=>{H||(H=!0,k?W(J,[Q]):W(te,[Q]),re.delayedLeave&&re.delayedLeave(),Q[cc]=void 0)};G?U(G,[Q,F]):F()},leave(Q,G){const te=String(e.key);if(Q[cc]&&Q[cc](!0),r.isUnmounting)return G();W(b,[Q]);let J=!1;const H=Q[qi]=F=>{J||(J=!0,G(),F?W(A,[Q]):W(M,[Q]),Q[qi]=void 0,O[te]===e&&delete O[te])};O[te]=e,w?U(w,[Q,H]):H()},clone(Q){const G=kd(Q,t,r,o,s);return s&&s(G),G}};return re}function Xf(e){if(Tu(e))return e=Ji(e),e.children=null,e}function gv(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&&je(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 je(e)?Qt({name:e.name},t,{setup:e}):e}function wy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Td(e,t,r,o,s=!1){if(Fe(e)){e.forEach((M,A)=>Td(M,t&&(Fe(t)?t[A]:t),r,o,s));return}if(_s(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===gt?d.refs={}:d.refs,m=d.setupState,b=ht(m),w=m===gt?()=>!1:M=>bt(b,M);if(p!=null&&p!==h&&(Pt(p)?(v[p]=null,w(p)&&(m[p]=null)):Et(p)&&(p.value=null)),je(h))ga(h,d,12,[f,v]);else{const M=Pt(h),A=Et(h);if(M||A){const C=()=>{if(e.f){const E=M?w(h)?m[h]:v[h]:h.value;s?Fe(E)&&gh(E,c):Fe(E)?E.includes(c)||E.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)):A&&(h.value=f,e.k&&(v[e.k]=f))};f?(C.id=-1,Gn(C,r)):C()}}}wu().requestIdleCallback;wu().cancelIdleCallback;const _s=e=>!!e.type.__asyncLoader,Tu=e=>e.type.__isKeepAlive;function K_(e,t){xy(e,"a",t)}function X_(e,t){xy(e,"da",t)}function xy(e,t,r=tn){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)&&Y_(o,t,r,s),s=s.parent}}function Y_(e,t,r,o){const s=Cu(t,e,o,!0);Eu(()=>{gh(o[t],s)},r)}function Cu(e,t,r=tn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{io();const d=ma(r),h=kr(t,r,e,f);return d(),oo(),h});return o?s.unshift(c):s.push(c),c}}const bi=e=>(t,r=tn)=>{(!Kl||e==="sp")&&Cu(e,(...o)=>t(...o),r)},Z_=bi("bm"),Hs=bi("m"),J_=bi("bu"),Q_=bi("u"),Sy=bi("bum"),Eu=bi("um"),ek=bi("sp"),tk=bi("rtg"),nk=bi("rtc");function rk(e,t=tn){Cu("ec",e,t)}const Ch="components",ik="directives";function Po(e,t){return Eh(Ch,e,!0,t)||e}const _y=Symbol.for("v-ndc");function vv(e){return Pt(e)?Eh(Ch,e,!1)||e:e||_y}function Kr(e){return Eh(ik,e)}function Eh(e,t,r=!0,o=!1){const s=Zt||tn;if(s){const c=s.type;if(e===Ch){const d=Yk(c,!1);if(d&&(d===t||d===Jn(t)||d===bu(Jn(t))))return c}const f=mv(s[e]||c[e],t)||mv(s.appContext[e],t);return!f&&o?c:f}}function mv(e,t){return e&&(e[t]||e[Jn(t)]||e[bu(Jn(t))])}function gi(e,t,r,o){let s;const c=r,f=Fe(e);if(f||Pt(e)){const d=f&&xs(e);let h=!1;d&&(h=!or(e),e=_u(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?hn(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(St(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function ok(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 gn(e,t,r={},o,s){if(Zt.ce||Zt.parent&&_s(Zt.parent)&&Zt.parent.ce)return t!=="default"&&(r.name=t),oe(),tt(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=tt(ct,{key:(d&&!_r(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 sk(e,t){const r={};for(const o in e)r[kc(o)]=e[o];return r}const Cd=e=>e?Yy(e)?Nu(e):Cd(e.parent):null,Pl=Qt(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=>Cd(e.parent),$root:e=>Cd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Cy(e),$forceUpdate:e=>e.f||(e.f=()=>{Th(e.update)}),$nextTick:e=>e.n||(e.n=cn.bind(e.proxy)),$watch:e=>Mk.bind(e)}),Yf=(e,t)=>e!==gt&&!e.__isScriptSetup&&bt(e,t),lk={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(Yf(o,t))return f[t]=1,o[t];if(s!==gt&&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!==gt&&bt(r,t))return f[t]=4,r[t];Ed&&(f[t]=0)}}const v=Pl[t];let m,b;if(v)return t==="$attrs"&&dn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==gt&&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 Yf(s,t)?(s[t]=r,!0):o!==gt&&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!==gt&&bt(e,f)||Yf(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 ak(){return ck().attrs}function ck(){const e=qs();return e.setupContext||(e.setupContext=Jy(e))}function Uc(e){return Fe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Vc(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):Qt({},Uc(e),Uc(t))}let Ed=!0;function uk(e){const t=Cy(e),r=e.proxy,o=e.ctx;Ed=!1,t.beforeCreate&&yv(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:A,deactivated:C,beforeDestroy:E,beforeUnmount:N,destroyed:P,unmounted:L,render:O,renderTracked:W,renderTriggered:U,errorCaptured:re,serverPrefetch:Q,expose:G,inheritAttrs:te,components:J,directives:H,filters:F}=t;if(p&&fk(p,o,null),f)for(const V in f){const ie=f[V];je(ie)&&(o[V]=ie.bind(r))}if(s){const V=s.call(r,r);St(V)&&(e.data=Zn(V))}if(Ed=!0,c)for(const V in c){const ie=c[V],ye=je(ie)?ie.bind(r,r):je(ie.get)?ie.get.bind(r,r):Hr,Ne=!je(ie)&&je(ie.set)?ie.set.bind(r):Hr,We=ke({get:ye,set:Ne});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>We.value,set:Ve=>We.value=Ve})}if(d)for(const V in d)Ty(d[V],o,r,V);if(h){const V=je(h)?h.call(r):h;Reflect.ownKeys(V).forEach(ie=>{Cc(ie,V[ie])})}v&&yv(v,e,"c");function B(V,ie){Fe(ie)?ie.forEach(ye=>V(ye.bind(r))):ie&&V(ie.bind(r))}if(B(Z_,m),B(Hs,b),B(J_,w),B(Q_,M),B(K_,A),B(X_,C),B(rk,re),B(nk,W),B(tk,U),B(Sy,N),B(Eu,L),B(ek,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={});O&&e.render===Hr&&(e.render=O),te!=null&&(e.inheritAttrs=te),J&&(e.components=J),H&&(e.directives=H),Q&&wy(e)}function fk(e,t,r=Hr){Fe(e)&&(e=Ld(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=qr(s.from||o,s.default,!0):c=qr(s.from||o):c=qr(s),Et(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function yv(e,t,r){kr(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(".")?Hy(r,o):()=>r[o];if(Pt(e)){const c=t[e];je(c)&&Dt(s,c)}else if(je(e))Dt(s,e.bind(r));else if(St(e))if(Fe(e))e.forEach(c=>Ty(c,t,r,o));else{const c=je(e.handler)?e.handler.bind(r):t[e.handler];je(c)&&Dt(s,c,e)}}function Cy(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>jc(h,p,f,!0)),jc(h,t,f)),St(t)&&c.set(t,h),h}function jc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&jc(e,c,r,!0),s&&s.forEach(f=>jc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=dk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const dk={data:bv,props:wv,emits:wv,methods:El,computed:El,beforeCreate:kn,created:kn,beforeMount:kn,mounted:kn,beforeUpdate:kn,updated:kn,beforeDestroy:kn,beforeUnmount:kn,destroyed:kn,unmounted:kn,activated:kn,deactivated:kn,errorCaptured:kn,serverPrefetch:kn,components:El,directives:El,watch:pk,provide:bv,inject:hk};function bv(e,t){return t?e?function(){return Qt(je(e)?e.call(this,this):e,je(t)?t.call(this,this):t)}:t:e}function hk(e,t){return El(Ld(e),Ld(t))}function Ld(e){if(Fe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function kn(e,t){return e?[...new Set([].concat(e,t))]:t}function El(e,t){return e?Qt(Object.create(null),e,t):t}function wv(e,t){return e?Fe(e)&&Fe(t)?[...new Set([...e,...t])]:Qt(Object.create(null),Uc(e),Uc(t??{})):t}function pk(e,t){if(!e)return t;if(!t)return e;const r=Qt(Object.create(null),e);for(const o in t)r[o]=kn(e[o],t[o]);return r}function Ey(){return{app:null,config:{isNativeTag:ZS,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 gk=0;function vk(e,t){return function(o,s=null){je(o)||(o=Qt({},o)),s!=null&&!St(s)&&(s=null);const c=Ey(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:gk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Jk,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&je(v.install)?(f.add(v),v.install(p,...m)):je(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),e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Nu(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(kr(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=Ao;Ao=p;try{return v()}finally{Ao=m}}};return p}}let Ao=null;function Cc(e,t){if(tn){let r=tn.provides;const o=tn.parent&&tn.parent.provides;o===r&&(r=tn.provides=Object.create(o)),r[e]=t}}function qr(e,t,r=!1){const o=tn||Zt;if(o||Ao){const s=Ao?Ao._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&&je(t)?t.call(o&&o.proxy):t}}function Ly(){return!!(tn||Zt||Ao)}const Ay={},My=()=>Object.create(Ay),Ny=e=>Object.getPrototypeOf(e)===Ay;function mk(e,t,r,o=!1){const s={},c=My();e.propsDefaults=Object.create(null),$y(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 yk(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 M=Jn(b);s[M]=Ad(h,d,M,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{$y(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]=Ad(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&&ui(e.attrs,"set","")}function $y(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||gt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Ad(s,h,m,p[m],e,!bt(p,m))}}return f}function Ad(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&&je(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 bk=new WeakMap;function Py(e,t,r=!1){const o=r?bk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!je(e)){const v=m=>{h=!0;const[b,w]=Py(m,t,!0);Qt(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,bs),bs;if(Fe(c))for(let v=0;v<c.length;v++){const m=Jn(c[v]);xv(m)&&(f[m]=gt)}else if(c)for(const v in c){const m=Jn(v);if(xv(m)){const b=c[v],w=f[m]=Fe(b)||je(b)?{type:b}:Qt({},b),M=w.type;let A=!1,C=!0;if(Fe(M))for(let E=0;E<M.length;++E){const N=M[E],P=je(N)&&N.name;if(P==="Boolean"){A=!0;break}else P==="String"&&(C=!1)}else A=je(M)&&M.name==="Boolean";w[0]=A,w[1]=C,(A||bt(w,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function xv(e){return e[0]!=="$"&&!Ml(e)}const Oy=e=>e[0]==="_"||e==="$stable",Lh=e=>Fe(e)?e.map(yr):[yr(e)],wk=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>Lh(t(...s)),r);return o._c=!1,o},Ry=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Oy(s))continue;const c=e[s];if(je(c))t[s]=wk(s,c,o);else if(c!=null){const f=Lh(c);t[s]=()=>f}}},Dy=(e,t)=>{const r=Lh(t);e.slots.default=()=>r},zy=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},xk=(e,t,r)=>{const o=e.slots=My();if(e.vnode.shapeFlag&32){const s=t._;s?(zy(o,t,r),r&&D0(o,"_",s,!0)):Ry(t,o)}else t&&Dy(e,t)},Sk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=gt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:zy(s,t,r):(c=!t.$stable,Ry(t,s)),f=t}else t&&(Dy(e,t),f={default:1});if(c)for(const d in s)!Oy(d)&&f[d]==null&&delete s[d]},Gn=qk;function _k(e){return kk(e)}function kk(e,t){const r=wu();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=Hr,insertStaticContent:M}=e,A=(z,q,X,le=null,fe=null,ce=null,Se=void 0,xe=null,de=!!q.dynamicChildren)=>{if(z===q)return;z&&!Fr(z,q)&&(le=Y(z),Ve(z,fe,ce,!0),z=null),q.patchFlag===-2&&(de=!1,q.dynamicChildren=null);const{type:pe,ref:qe,shapeFlag:Ee}=q;switch(pe){case Mu:C(z,q,X,le);break;case an:E(z,q,X,le);break;case Jf:z==null&&N(q,X,le,Se);break;case ct:J(z,q,X,le,fe,ce,Se,xe,de);break;default:Ee&1?O(z,q,X,le,fe,ce,Se,xe,de):Ee&6?H(z,q,X,le,fe,ce,Se,xe,de):(Ee&64||Ee&128)&&pe.process(z,q,X,le,fe,ce,Se,xe,de,$e)}qe!=null&&fe&&Td(qe,z&&z.ref,ce,q||z,!q)},C=(z,q,X,le)=>{if(z==null)o(q.el=d(q.children),X,le);else{const fe=q.el=z.el;q.children!==z.children&&p(fe,q.children)}},E=(z,q,X,le)=>{z==null?o(q.el=h(q.children||""),X,le):q.el=z.el},N=(z,q,X,le)=>{[z.el,z.anchor]=M(z.children,q,X,le,z.el,z.anchor)},P=({el:z,anchor:q},X,le)=>{let fe;for(;z&&z!==q;)fe=b(z),o(z,X,le),z=fe;o(q,X,le)},L=({el:z,anchor:q})=>{let X;for(;z&&z!==q;)X=b(z),s(z),z=X;s(q)},O=(z,q,X,le,fe,ce,Se,xe,de)=>{q.type==="svg"?Se="svg":q.type==="math"&&(Se="mathml"),z==null?W(q,X,le,fe,ce,Se,xe,de):Q(z,q,fe,ce,Se,xe,de)},W=(z,q,X,le,fe,ce,Se,xe)=>{let de,pe;const{props:qe,shapeFlag:Ee,transition:De,dirs:Ue}=z;if(de=z.el=f(z.type,ce,qe&&qe.is,qe),Ee&8?v(de,z.children):Ee&16&&re(z.children,de,null,le,fe,Zf(z,ce),Se,xe),Ue&&yo(z,null,le,"created"),U(de,z,z.scopeId,Se,le),qe){for(const it in qe)it!=="value"&&!Ml(it)&&c(de,it,null,qe[it],ce,le);"value"in qe&&c(de,"value",null,qe.value,ce),(pe=qe.onVnodeBeforeMount)&&Dr(pe,le,z)}Ue&&yo(z,null,le,"beforeMount");const Qe=Tk(fe,De);Qe&&De.beforeEnter(de),o(de,q,X),((pe=qe&&qe.onVnodeMounted)||Qe||Ue)&&Gn(()=>{pe&&Dr(pe,le,z),Qe&&De.enter(de),Ue&&yo(z,null,le,"mounted")},fe)},U=(z,q,X,le,fe)=>{if(X&&w(z,X),le)for(let ce=0;ce<le.length;ce++)w(z,le[ce]);if(fe){let ce=fe.subTree;if(q===ce||Wy(ce.type)&&(ce.ssContent===q||ce.ssFallback===q)){const Se=fe.vnode;U(z,Se,Se.scopeId,Se.slotScopeIds,fe.parent)}}},re=(z,q,X,le,fe,ce,Se,xe,de=0)=>{for(let pe=de;pe<z.length;pe++){const qe=z[pe]=xe?Bi(z[pe]):yr(z[pe]);A(null,qe,q,X,le,fe,ce,Se,xe)}},Q=(z,q,X,le,fe,ce,Se)=>{const xe=q.el=z.el;let{patchFlag:de,dynamicChildren:pe,dirs:qe}=q;de|=z.patchFlag&16;const Ee=z.props||gt,De=q.props||gt;let Ue;if(X&&bo(X,!1),(Ue=De.onVnodeBeforeUpdate)&&Dr(Ue,X,q,z),qe&&yo(q,z,X,"beforeUpdate"),X&&bo(X,!0),(Ee.innerHTML&&De.innerHTML==null||Ee.textContent&&De.textContent==null)&&v(xe,""),pe?G(z.dynamicChildren,pe,xe,X,le,Zf(q,fe),ce):Se||ie(z,q,xe,null,X,le,Zf(q,fe),ce,!1),de>0){if(de&16)te(xe,Ee,De,X,fe);else if(de&2&&Ee.class!==De.class&&c(xe,"class",null,De.class,fe),de&4&&c(xe,"style",Ee.style,De.style,fe),de&8){const Qe=q.dynamicProps;for(let it=0;it<Qe.length;it++){const lt=Qe[it],Lt=Ee[lt],ot=De[lt];(ot!==Lt||lt==="value")&&c(xe,lt,Lt,ot,fe,X)}}de&1&&z.children!==q.children&&v(xe,q.children)}else!Se&&pe==null&&te(xe,Ee,De,X,fe);((Ue=De.onVnodeUpdated)||qe)&&Gn(()=>{Ue&&Dr(Ue,X,q,z),qe&&yo(q,z,X,"updated")},le)},G=(z,q,X,le,fe,ce,Se)=>{for(let xe=0;xe<q.length;xe++){const de=z[xe],pe=q[xe],qe=de.el&&(de.type===ct||!Fr(de,pe)||de.shapeFlag&70)?m(de.el):X;A(de,pe,qe,null,le,fe,ce,Se,!0)}},te=(z,q,X,le,fe)=>{if(q!==X){if(q!==gt)for(const ce in q)!Ml(ce)&&!(ce in X)&&c(z,ce,q[ce],null,fe,le);for(const ce in X){if(Ml(ce))continue;const Se=X[ce],xe=q[ce];Se!==xe&&ce!=="value"&&c(z,ce,xe,Se,fe,le)}"value"in X&&c(z,"value",q.value,X.value,fe)}},J=(z,q,X,le,fe,ce,Se,xe,de)=>{const pe=q.el=z?z.el:d(""),qe=q.anchor=z?z.anchor:d("");let{patchFlag:Ee,dynamicChildren:De,slotScopeIds:Ue}=q;Ue&&(xe=xe?xe.concat(Ue):Ue),z==null?(o(pe,X,le),o(qe,X,le),re(q.children||[],X,qe,fe,ce,Se,xe,de)):Ee>0&&Ee&64&&De&&z.dynamicChildren?(G(z.dynamicChildren,De,X,fe,ce,Se,xe),(q.key!=null||fe&&q===fe.subTree)&&Iy(z,q,!0)):ie(z,q,X,qe,fe,ce,Se,xe,de)},H=(z,q,X,le,fe,ce,Se,xe,de)=>{q.slotScopeIds=xe,z==null?q.shapeFlag&512?fe.ctx.activate(q,X,le,Se,de):F(q,X,le,fe,ce,Se,de):k(z,q,de)},F=(z,q,X,le,fe,ce,Se)=>{const xe=z.component=jk(z,le,fe);if(Tu(z)&&(xe.ctx.renderer=$e),Gk(xe,!1,Se),xe.asyncDep){if(fe&&fe.registerDep(xe,B,Se),!z.el){const de=xe.subTree=Pe(an);E(null,de,q,X)}}else B(xe,z,q,X,fe,ce,Se)},k=(z,q,X)=>{const le=q.component=z.component;if(Rk(z,q,X))if(le.asyncDep&&!le.asyncResolved){V(le,q,X);return}else le.next=q,le.update();else q.el=z.el,le.vnode=q},B=(z,q,X,le,fe,ce,Se)=>{const xe=()=>{if(z.isMounted){let{next:Ee,bu:De,u:Ue,parent:Qe,vnode:it}=z;{const zt=Fy(z);if(zt){Ee&&(Ee.el=it.el,V(z,Ee,Se)),zt.asyncDep.then(()=>{z.isUnmounted||xe()});return}}let lt=Ee,Lt;bo(z,!1),Ee?(Ee.el=it.el,V(z,Ee,Se)):Ee=it,De&&Tc(De),(Lt=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&Dr(Lt,Qe,Ee,it),bo(z,!0);const ot=_v(z),Wt=z.subTree;z.subTree=ot,A(Wt,ot,m(Wt.el),Y(Wt),z,fe,ce),Ee.el=ot.el,lt===null&&Nh(z,ot.el),Ue&&Gn(Ue,fe),(Lt=Ee.props&&Ee.props.onVnodeUpdated)&&Gn(()=>Dr(Lt,Qe,Ee,it),fe)}else{let Ee;const{el:De,props:Ue}=q,{bm:Qe,m:it,parent:lt,root:Lt,type:ot}=z,Wt=_s(q);bo(z,!1),Qe&&Tc(Qe),!Wt&&(Ee=Ue&&Ue.onVnodeBeforeMount)&&Dr(Ee,lt,q),bo(z,!0);{Lt.ce&&Lt.ce._injectChildStyle(ot);const zt=z.subTree=_v(z);A(null,zt,X,le,z,fe,ce),q.el=zt.el}if(it&&Gn(it,fe),!Wt&&(Ee=Ue&&Ue.onVnodeMounted)){const zt=q;Gn(()=>Dr(Ee,lt,zt),fe)}(q.shapeFlag&256||lt&&_s(lt.vnode)&<.vnode.shapeFlag&256)&&z.a&&Gn(z.a,fe),z.isMounted=!0,q=X=le=null}};z.scope.on();const de=z.effect=new W0(xe);z.scope.off();const pe=z.update=de.run.bind(de),qe=z.job=de.runIfDirty.bind(de);qe.i=z,qe.id=z.uid,de.scheduler=()=>Th(qe),bo(z,!0),pe()},V=(z,q,X)=>{q.component=z;const le=z.vnode.props;z.vnode=q,z.next=null,yk(z,q.props,le,X),Sk(z,q.children,X),io(),pv(z),oo()},ie=(z,q,X,le,fe,ce,Se,xe,de=!1)=>{const pe=z&&z.children,qe=z?z.shapeFlag:0,Ee=q.children,{patchFlag:De,shapeFlag:Ue}=q;if(De>0){if(De&128){Ne(pe,Ee,X,le,fe,ce,Se,xe,de);return}else if(De&256){ye(pe,Ee,X,le,fe,ce,Se,xe,de);return}}Ue&8?(qe&16&&Le(pe,fe,ce),Ee!==pe&&v(X,Ee)):qe&16?Ue&16?Ne(pe,Ee,X,le,fe,ce,Se,xe,de):Le(pe,fe,ce,!0):(qe&8&&v(X,""),Ue&16&&re(Ee,X,le,fe,ce,Se,xe,de))},ye=(z,q,X,le,fe,ce,Se,xe,de)=>{z=z||bs,q=q||bs;const pe=z.length,qe=q.length,Ee=Math.min(pe,qe);let De;for(De=0;De<Ee;De++){const Ue=q[De]=de?Bi(q[De]):yr(q[De]);A(z[De],Ue,X,null,fe,ce,Se,xe,de)}pe>qe?Le(z,fe,ce,!0,!1,Ee):re(q,X,le,fe,ce,Se,xe,de,Ee)},Ne=(z,q,X,le,fe,ce,Se,xe,de)=>{let pe=0;const qe=q.length;let Ee=z.length-1,De=qe-1;for(;pe<=Ee&&pe<=De;){const Ue=z[pe],Qe=q[pe]=de?Bi(q[pe]):yr(q[pe]);if(Fr(Ue,Qe))A(Ue,Qe,X,null,fe,ce,Se,xe,de);else break;pe++}for(;pe<=Ee&&pe<=De;){const Ue=z[Ee],Qe=q[De]=de?Bi(q[De]):yr(q[De]);if(Fr(Ue,Qe))A(Ue,Qe,X,null,fe,ce,Se,xe,de);else break;Ee--,De--}if(pe>Ee){if(pe<=De){const Ue=De+1,Qe=Ue<qe?q[Ue].el:le;for(;pe<=De;)A(null,q[pe]=de?Bi(q[pe]):yr(q[pe]),X,Qe,fe,ce,Se,xe,de),pe++}}else if(pe>De)for(;pe<=Ee;)Ve(z[pe],fe,ce,!0),pe++;else{const Ue=pe,Qe=pe,it=new Map;for(pe=Qe;pe<=De;pe++){const Ot=q[pe]=de?Bi(q[pe]):yr(q[pe]);Ot.key!=null&&it.set(Ot.key,pe)}let lt,Lt=0;const ot=De-Qe+1;let Wt=!1,zt=0;const $n=new Array(ot);for(pe=0;pe<ot;pe++)$n[pe]=0;for(pe=Ue;pe<=Ee;pe++){const Ot=z[pe];if(Lt>=ot){Ve(Ot,fe,ce,!0);continue}let Pn;if(Ot.key!=null)Pn=it.get(Ot.key);else for(lt=Qe;lt<=De;lt++)if($n[lt-Qe]===0&&Fr(Ot,q[lt])){Pn=lt;break}Pn===void 0?Ve(Ot,fe,ce,!0):($n[Pn-Qe]=pe+1,Pn>=zt?zt=Pn:Wt=!0,A(Ot,q[Pn],X,null,fe,ce,Se,xe,de),Lt++)}const Mr=Wt?Ck($n):bs;for(lt=Mr.length-1,pe=ot-1;pe>=0;pe--){const Ot=Qe+pe,Pn=q[Ot],Je=Ot+1<qe?q[Ot+1].el:le;$n[pe]===0?A(null,Pn,X,Je,fe,ce,Se,xe,de):Wt&&(lt<0||pe!==Mr[lt]?We(Pn,X,Je,2):lt--)}}},We=(z,q,X,le,fe=null)=>{const{el:ce,type:Se,transition:xe,children:de,shapeFlag:pe}=z;if(pe&6){We(z.component.subTree,q,X,le);return}if(pe&128){z.suspense.move(q,X,le);return}if(pe&64){Se.move(z,q,X,$e);return}if(Se===ct){o(ce,q,X);for(let Ee=0;Ee<de.length;Ee++)We(de[Ee],q,X,le);o(z.anchor,q,X);return}if(Se===Jf){P(z,q,X);return}if(le!==2&&pe&1&&xe)if(le===0)xe.beforeEnter(ce),o(ce,q,X),Gn(()=>xe.enter(ce),fe);else{const{leave:Ee,delayLeave:De,afterLeave:Ue}=xe,Qe=()=>o(ce,q,X),it=()=>{Ee(ce,()=>{Qe(),Ue&&Ue()})};De?De(ce,Qe,it):it()}else o(ce,q,X)},Ve=(z,q,X,le=!1,fe=!1)=>{const{type:ce,props:Se,ref:xe,children:de,dynamicChildren:pe,shapeFlag:qe,patchFlag:Ee,dirs:De,cacheIndex:Ue}=z;if(Ee===-2&&(fe=!1),xe!=null&&Td(xe,null,X,z,!0),Ue!=null&&(q.renderCache[Ue]=void 0),qe&256){q.ctx.deactivate(z);return}const Qe=qe&1&&De,it=!_s(z);let lt;if(it&&(lt=Se&&Se.onVnodeBeforeUnmount)&&Dr(lt,q,z),qe&6)Xe(z.component,X,le);else{if(qe&128){z.suspense.unmount(X,le);return}Qe&&yo(z,null,q,"beforeUnmount"),qe&64?z.type.remove(z,q,X,$e,le):pe&&!pe.hasOnce&&(ce!==ct||Ee>0&&Ee&64)?Le(pe,q,X,!1,!0):(ce===ct&&Ee&384||!fe&&qe&16)&&Le(de,q,X),le&&nt(z)}(it&&(lt=Se&&Se.onVnodeUnmounted)||Qe)&&Gn(()=>{lt&&Dr(lt,q,z),Qe&&yo(z,null,q,"unmounted")},X)},nt=z=>{const{type:q,el:X,anchor:le,transition:fe}=z;if(q===ct){et(X,le);return}if(q===Jf){L(z);return}const ce=()=>{s(X),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(z.shapeFlag&1&&fe&&!fe.persisted){const{leave:Se,delayLeave:xe}=fe,de=()=>Se(X,ce);xe?xe(z.el,ce,de):de()}else ce()},et=(z,q)=>{let X;for(;z!==q;)X=b(z),s(z),z=X;s(q)},Xe=(z,q,X)=>{const{bum:le,scope:fe,job:ce,subTree:Se,um:xe,m:de,a:pe}=z;Sv(de),Sv(pe),le&&Tc(le),fe.stop(),ce&&(ce.flags|=8,Ve(Se,z,q,X)),xe&&Gn(xe,q),Gn(()=>{z.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},Le=(z,q,X,le=!1,fe=!1,ce=0)=>{for(let Se=ce;Se<z.length;Se++)Ve(z[Se],q,X,le,fe)},Y=z=>{if(z.shapeFlag&6)return Y(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const q=b(z.anchor||z.el),X=q&&q[U_];return X?b(X):q};let ae=!1;const he=(z,q,X)=>{z==null?q._vnode&&Ve(q._vnode,null,null,!0):A(q._vnode||null,z,q,null,null,null,X),q._vnode=z,ae||(ae=!0,pv(),cy(),ae=!1)},$e={p:A,um:Ve,m:We,r:nt,mt:F,mc:re,pc:ie,pbc:G,n:Y,o:e};return{render:he,hydrate:void 0,createApp:vk(he)}}function Zf({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 bo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Iy(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&&Iy(f,d)),d.type===Mu&&(d.el=f.el)}}function Ck(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 Fy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fy(t)}function Sv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ek=Symbol.for("v-scx"),Lk=()=>qr(Ek);function Ah(e,t){return Lu(e,null,t)}function Ak(e,t){return Lu(e,null,{flush:"sync"})}function Dt(e,t,r){return Lu(e,t,r)}function Lu(e,t,r=gt){const{immediate:o,deep:s,flush:c,once:f}=r,d=Qt({},r),h=t&&o||!t&&c!=="post";let p;if(Kl){if(c==="sync"){const w=Lk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Hr,w.resume=Hr,w.pause=Hr,w}}const v=tn;d.call=(w,M,A)=>kr(w,v,M,A);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=q_(e,t,d);return Kl&&(p?p.push(b):h&&b()),b}function Mk(e,t,r){const o=this.proxy,s=Pt(e)?e.includes(".")?Hy(o,e):()=>o[e]:e.bind(o,o);let c;je(t)?c=t:(c=t.handler,r=t);const f=ma(this),d=Lu(s,c.bind(o),r);return f(),d}function Hy(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 Mh(e,t,r=gt){const o=qs(),s=Jn(t),c=yi(t),f=qy(e,s),d=oy((h,p)=>{let v,m=gt,b;return Ak(()=>{const w=e[s];Fn(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(!Fn(M,v)&&!(m!==gt&&Fn(w,m)))return;const A=o.vnode.props;A&&(t in A||s in A||c in A)&&(`onUpdate:${t}`in A||`onUpdate:${s}`in A||`onUpdate:${c}`in A)||(v=w,p()),o.emit(`update:${t}`,M),Fn(w,M)&&Fn(w,m)&&!Fn(M,b)&&p(),m=w,b=M}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||gt:d,done:!1}:{done:!0}}}},d}const qy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Jn(t)}Modifiers`]||e[`${yi(t)}Modifiers`];function Nk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||gt;let s=r;const c=t.startsWith("update:"),f=c&&qy(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Pt(v)?v.trim():v)),f.number&&(s=r.map(yd)));let d,h=o[d=kc(t)]||o[d=kc(Jn(t))];!h&&c&&(h=o[d=kc(yi(t))]),h&&kr(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,kr(p,e,6,s)}}function By(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(!je(e)){const h=p=>{const v=By(p,t,!0);v&&(d=!0,Qt(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Fe(c)?c.forEach(h=>f[h]=null):Qt(f,c),St(e)&&o.set(e,f),f)}function Au(e,t){return!e||!vu(t)?!1:(t=t.slice(2).replace(/Once$/,""),bt(e,t[0].toLowerCase()+t.slice(1))||bt(e,yi(t))||bt(e,t))}function _v(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:A}=e,C=Wc(e);let E,N;try{if(r.shapeFlag&4){const L=s||o,O=L;E=yr(p.call(O,L,v,m,w,b,M)),N=d}else{const L=t;E=yr(L.length>1?L(m,{attrs:d,slots:f,emit:h}):L(m,null)),N=t.props?d:Pk(d)}}catch(L){Ol.length=0,va(L,e,1),E=Pe(an)}let P=E;if(N&&A!==!1){const L=Object.keys(N),{shapeFlag:O}=P;L.length&&O&7&&(c&&L.some(ph)&&(N=Ok(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),E=P,Wc(C),E}function $k(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 Pk=e=>{let t;for(const r in e)(r==="class"||r==="style"||vu(r))&&((t||(t={}))[r]=e[r]);return t},Ok=(e,t)=>{const r={};for(const o in e)(!ph(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Rk(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?kv(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?kv(o,f,p):!0:!!f;return!1}function kv(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 Nh({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 Wy=e=>e.__isSuspense;let Md=0;const Dk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)zk(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}Ik(e,t,r,o,s,f,d,h,p)}},hydrate:Fk,normalize:Hk},Uy=Dk;function Gl(e,t){const r=e.props&&e.props[t];je(r)&&r()}function zk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Vy(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 Ik(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:A,isInFallback:C,isHydrating:E}=m;if(A)m.pendingBranch=b,Fr(b,A)?(h(A,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():C&&(E||(h(M,w,r,o,s,null,c,f,d),ks(m,w)))):(m.pendingId=Md++,E?(m.isHydrating=!1,m.activeBranch=A):p(A,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),C?(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&&Fr(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&&Fr(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=Md++,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 Vy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:M,o:{parentNode:A,remove:C}}=p;let E;const N=Bk(e);N&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const P=e.props?z0(e.props.timeout):void 0,L=c,O={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Md++,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:J,parentComponent:H,container:F}=O;let k=!1;O.isHydrating?O.isHydrating=!1:W||(k=Q&&G.transition&&G.transition.mode==="out-in",k&&(Q.transition.afterLeave=()=>{te===O.pendingId&&(b(G,F,c===L?M(Q):c,0),_d(J))}),Q&&(A(Q.el)===F&&(c=M(Q)),w(Q,H,O,!0)),k||b(G,F,c,0)),ks(O,G),O.pendingBranch=null,O.isInFallback=!1;let B=O.parent,V=!1;for(;B;){if(B.pendingBranch){B.effects.push(...J),V=!0;break}B=B.parent}!V&&!k&&_d(J),O.effects=[],N&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!U&&t.resolve()),Gl(re,"onResolve")},fallback(W){if(!O.pendingBranch)return;const{vnode:U,activeBranch:re,parentComponent:Q,container:G,namespace:te}=O;Gl(U,"onFallback");const J=M(re),H=()=>{O.isInFallback&&(m(null,W,G,J,Q,null,te,d,h),ks(O,W))},F=W.transition&&W.transition.mode==="out-in";F&&(re.transition.afterLeave=H),O.isInFallback=!0,w(re,Q,null,!0),F||H()},move(W,U,re){O.activeBranch&&b(O.activeBranch,W,U,re),O.container=W},next(){return O.activeBranch&&M(O.activeBranch)},registerDep(W,U,re){const Q=!!O.pendingBranch;Q&&O.deps++;const G=W.vnode.el;W.asyncDep.catch(te=>{va(te,W,0)}).then(te=>{if(W.isUnmounted||O.isUnmounted||O.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:J}=W;$d(W,te),G&&(J.el=G);const H=!G&&W.subTree.el;U(W,J,A(G||W.subTree.el),G?null:M(W.subTree),O,f,re),H&&C(H),Nh(W,J.el),Q&&--O.deps===0&&O.resolve()})},unmount(W,U){O.isUnmounted=!0,O.activeBranch&&w(O.activeBranch,r,W,U),O.pendingBranch&&w(O.pendingBranch,r,W,U)}};return O}function Fk(e,t,r,o,s,c,f,d,h){const p=t.suspense=Vy(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 Hk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Tv(o?r.default:r),e.ssFallback=o?Tv(r.fallback):Pe(an)}function Tv(e){let t;if(je(e)){const r=Ns&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=qn,jy())}return Fe(e)&&(e=$k(e)),e=yr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function qk(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):_d(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,Nh(o,s))}function Bk(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 qn=null;function oe(e=!1){Ol.push(qn=e?null:[])}function jy(){Ol.pop(),qn=Ol[Ol.length-1]||null}let Ns=1;function Gc(e){Ns+=e,e<0&&qn&&(qn.hasOnce=!0)}function Gy(e){return e.dynamicChildren=Ns>0?qn||bs:null,jy(),Ns>0&&qn&&qn.push(e),e}function me(e,t,r,o,s,c){return Gy(Z(e,t,r,o,s,c,!0))}function tt(e,t,r,o,s){return Gy(Pe(e,t,r,o,s,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function Fr(e,t){return e.type===t.type&&e.key===t.key}const Ky=({key:e})=>e??null,Ec=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Pt(e)||Et(e)||je(e)?{i:Zt,r:e,k:t,f:!!r}:e:null);function Z(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&&Ky(t),ref:t&&Ec(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:Zt};return d?($h(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Pt(r)?8:16),Ns>0&&!f&&qn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&qn.push(h),h}const Pe=Wk;function Wk(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&&$h(d,r),Ns>0&&!c&&qn&&(d.shapeFlag&6?qn[qn.indexOf(e)]=d:qn.push(d)),d.patchFlag=-2,d}if(Zk(e)&&(e=e.__vccOpts),t){t=Xy(t);let{class:d,style:h}=t;d&&!Pt(d)&&(t.class=st(d)),St(h)&&(_h(h)&&!Fe(h)&&(h=Qt({},h)),t.style=Jt(h))}const f=Pt(e)?1:Wy(e)?128:py(e)?64:St(e)?4:je(e)?2:0;return Z(e,t,r,o,s,f,c,!0)}function Xy(e){return e?_h(e)||Ny(e)?Qt({},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&&Ky(p),ref:t&&t.ref?r&&c?Fe(c)?c.concat(Ec(t)):[c,Ec(t)]:Ec(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&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 Ke(e="",t=!1){return t?(oe(),tt(an,null,e)):Pe(an,null,e)}function yr(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 $h(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),$h(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Ny(t)?t._ctx=Zt:s===3&&Zt&&(Zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else je(t)?(t={default:t,_ctx:Zt},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(vu(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 Dr(e,t,r,o=null){kr(e,t,7,[r,o])}const Uk=Ey();let Vk=0;function jk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Uk,c={uid:Vk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new u_(!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:Py(o,s),emitsOptions:By(o,s),emit:null,emitted:null,propsDefaults:gt,inheritAttrs:o.inheritAttrs,ctx:gt,data:gt,props:gt,attrs:gt,slots:gt,refs:gt,setupState:gt,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=Nk.bind(null,c),e.ce&&e.ce(c),c}let tn=null;const qs=()=>tn||Zt;let Kc,Nd;{const e=wu(),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)}};Kc=t("__VUE_INSTANCE_SETTERS__",r=>tn=r),Nd=t("__VUE_SSR_SETTERS__",r=>Kl=r)}const ma=e=>{const t=tn;return Kc(e),e.scope.on(),()=>{e.scope.off(),Kc(t)}},Cv=()=>{tn&&tn.scope.off(),Kc(null)};function Yy(e){return e.vnode.shapeFlag&4}let Kl=!1;function Gk(e,t=!1,r=!1){t&&Nd(t);const{props:o,children:s}=e.vnode,c=Yy(e);mk(e,o,c,t),xk(e,s,r);const f=c?Kk(e,t):void 0;return t&&Nd(!1),f}function Kk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lk);const{setup:o}=r;if(o){io();const s=e.setupContext=o.length>1?Jy(e):null,c=ma(e),f=ga(o,e,0,[e.props,s]),d=P0(f);if(oo(),c(),(d||e.sp)&&!_s(e)&&wy(e),d){if(f.then(Cv,Cv),t)return f.then(h=>{$d(e,h)}).catch(h=>{va(h,e,0)});e.asyncDep=f}else $d(e,f)}else Zy(e)}function $d(e,t,r){je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=iy(t)),Zy(e)}function Zy(e,t,r){const o=e.type;e.render||(e.render=o.render||Hr);{const s=ma(e);io();try{uk(e)}finally{oo(),s()}}}const Xk={get(e,t){return dn(e,"get",""),e[t]}};function Jy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Xk),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 Yk(e,t=!0){return je(e)?e.displayName||e.name:e.name||t&&e.__name}function Zk(e){return je(e)&&"__vccOpts"in e}const ke=(e,t)=>F_(e,t,Kl);function ya(e,t,r){const o=arguments.length;return o===2?St(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 Jk="3.5.12";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.12
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let Pd;const Ev=typeof window<"u"&&window.trustedTypes;if(Ev)try{Pd=Ev.createPolicy("vue",{createHTML:e=>e})}catch{}const Qy=Pd?e=>Pd.createHTML(e):e=>e,Qk="http://www.w3.org/2000/svg",eT="http://www.w3.org/1998/Math/MathML",ai=typeof document<"u"?document:null,Lv=ai&&ai.createElement("template"),tT={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"?ai.createElementNS(Qk,e):t==="mathml"?ai.createElementNS(eT,e):r?ai.createElement(e,{is:r}):ai.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ai.createTextNode(e),createComment:e=>ai.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ai.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{Lv.innerHTML=Qy(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Lv.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"),eb={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},nT=Qt({},gy,eb),rT=e=>(e.displayName="Transition",e.props=nT,e),iT=rT((e,{slots:t})=>ya(G_,oT(e),t)),wo=(e,t=[])=>{Fe(e)?e.forEach(r=>r(...t)):e&&e(...t)},Av=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function oT(e){const t={};for(const J in e)J in eb||(t[J]=e[J]);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=sT(s),A=M&&M[0],C=M&&M[1],{onBeforeEnter:E,onEnter:N,onEnterCancelled:P,onLeave:L,onLeaveCancelled:O,onBeforeAppear:W=E,onAppear:U=N,onAppearCancelled:re=P}=t,Q=(J,H,F)=>{xo(J,H?v:d),xo(J,H?p:f),F&&F()},G=(J,H)=>{J._isLeaving=!1,xo(J,m),xo(J,w),xo(J,b),H&&H()},te=J=>(H,F)=>{const k=J?U:N,B=()=>Q(H,J,F);wo(k,[H,B]),Mv(()=>{xo(H,J?h:c),Ri(H,J?v:d),Av(k)||Nv(H,o,A,B)})};return Qt(t,{onBeforeEnter(J){wo(E,[J]),Ri(J,c),Ri(J,f)},onBeforeAppear(J){wo(W,[J]),Ri(J,h),Ri(J,p)},onEnter:te(!1),onAppear:te(!0),onLeave(J,H){J._isLeaving=!0;const F=()=>G(J,H);Ri(J,m),Ri(J,b),cT(),Mv(()=>{J._isLeaving&&(xo(J,m),Ri(J,w),Av(L)||Nv(J,o,C,F))}),wo(L,[J,F])},onEnterCancelled(J){Q(J,!1),wo(P,[J])},onAppearCancelled(J){Q(J,!0),wo(re,[J])},onLeaveCancelled(J){G(J),wo(O,[J])}})}function sT(e){if(e==null)return null;if(St(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 xo(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 Mv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let lT=0;function Nv(e,t,r,o){const s=e._endId=++lT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=aT(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 aT(e,t){const r=window.getComputedStyle(e),o=M=>(r[M]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=$v(s,c),d=o(`${xl}Delay`),h=o(`${xl}Duration`),p=$v(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 $v(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Pv(r)+Pv(e[o])))}function Pv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cT(){return document.body.offsetHeight}function uT(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 Xc=Symbol("_vod"),tb=Symbol("_vsh"),Gi={beforeMount(e,{value:t},{transition:r}){e[Xc]=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[Xc]:"none",e[tb]=!t}const fT=Symbol(""),dT=/(^|;)\s*display\s*:/;function hT(e,t,r){const o=e.style,s=Pt(r);let c=!1;if(r&&!s){if(t)if(Pt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Lc(o,d,"")}else for(const f in t)r[f]==null&&Lc(o,f,"");for(const f in r)f==="display"&&(c=!0),Lc(o,f,r[f])}else if(s){if(t!==r){const f=o[fT];f&&(r+=";"+f),o.cssText=r,c=dT.test(r)}}else t&&e.removeAttribute("style");Xc in e&&(e[Xc]=c?o.display:"",e[tb]&&(o.display="none"))}const Ov=/\s*!important$/;function Lc(e,t,r){if(Fe(r))r.forEach(o=>Lc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=pT(e,t);Ov.test(r)?e.setProperty(yi(o),r.replace(Ov,""),"important"):e[o]=r}}const Rv=["Webkit","Moz","ms"],ed={};function pT(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=bu(o);for(let s=0;s<Rv.length;s++){const c=Rv[s]+o;if(c in e)return ed[t]=c}return t}const Dv="http://www.w3.org/1999/xlink";function zv(e,t,r,o,s,c=a_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Dv,t.slice(6,t.length)):e.setAttributeNS(Dv,t,r):r==null||c&&!I0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":_r(r)?String(r):r)}function Iv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Qy(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 To(e,t,r,o){e.addEventListener(t,r,o)}function gT(e,t,r,o){e.removeEventListener(t,r,o)}const Fv=Symbol("_vei");function vT(e,t,r,o,s=null){const c=e[Fv]||(e[Fv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=mT(t);if(o){const p=c[t]=wT(o,s);To(e,d,p,h)}else f&&(gT(e,d,f,h),c[t]=void 0)}}const Hv=/(?:Once|Passive|Capture)$/;function mT(e){let t;if(Hv.test(e)){t={};let o;for(;o=e.match(Hv);)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 yT=Promise.resolve(),bT=()=>td||(yT.then(()=>td=0),td=Date.now());function wT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;kr(xT(o,r.value),t,5,[o])};return r.value=e,r.attached=bT(),r}function xT(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 qv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ST=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?uT(e,o,f):t==="style"?hT(e,r,o):vu(t)?ph(t)||vT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_T(e,t,o,f))?(Iv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Pt(o))?Iv(e,Jn(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),zv(e,t,o,f))};function _T(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&qv(t)&&je(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 qv(t)&&Pt(r)?!1:t in e}const Yc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?r=>Tc(t,r):t};function kT(e){e.target.composing=!0}function Bv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),TT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ts]=Yc(s);const c=o||s.props&&s.props.type==="number";To(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=yd(d)),e[Ts](d)}),r&&To(e,"change",()=>{e.value=e.value.trim()}),t||(To(e,"compositionstart",kT),To(e,"compositionend",Bv),To(e,"change",Bv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ts]=Yc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?yd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},CT={deep:!0,created(e,t,r){e[Ts]=Yc(r),To(e,"change",()=>{const o=e._modelValue,s=ET(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(mu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(nb(e,c))})},mounted:Wv,beforeUpdate(e,t,r){e[Ts]=Yc(r),Wv(e,t,r)}};function Wv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Fe(t))s=F0(t,o.props.value)>-1;else if(mu(t))s=t.has(o.props.value);else{if(t===r)return;s=xu(t,nb(e,!0))}e.checked!==s&&(e.checked=s)}function ET(e){return"_value"in e?e._value:e.value}function nb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const LT=["ctrl","shift","alt","meta"],AT={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)=>LT.some(r=>e[`${r}Key`]&&!t.includes(r))},Ac=(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=AT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},MT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Od=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=yi(s.key);if(t.some(f=>f===c||MT[f]===c))return e(s)})},NT=Qt({patchProp:ST},tT);let Uv;function $T(){return Uv||(Uv=_k(NT))}const rb=(...e)=>{const t=$T().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=OT(o);if(!s)return;const c=t._component;!je(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,PT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function PT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function OT(e){return Pt(e)?document.querySelector(e):e}const Xr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},RT={};function DT(e,t){const r=Po("RouterView");return oe(),tt(r)}const zT=Xr(RT,[["render",DT]]),IT=["top","right","bottom","left"],Vv=["start","end"],jv=IT.reduce((e,t)=>e.concat(t,t+"-"+Vv[0],t+"-"+Vv[1]),[]),Yl=Math.min,ko=Math.max,FT={left:"right",right:"left",bottom:"top",top:"bottom"},HT={start:"end",end:"start"};function Rd(e,t,r){return ko(e,Yl(t,r))}function Io(e,t){return typeof e=="function"?e(t):e}function jr(e){return e.split("-")[0]}function xr(e){return e.split("-")[1]}function ib(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function ba(e){return["top","bottom"].includes(jr(e))?"y":"x"}function Oh(e){return ib(ba(e))}function ob(e,t,r){r===void 0&&(r=!1);const o=xr(e),s=Oh(e),c=Ph(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Jc(f)),[f,Jc(f)]}function qT(e){const t=Jc(e);return[Zc(e),t,Zc(t)]}function Zc(e){return e.replace(/start|end/g,t=>HT[t])}function BT(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 WT(e,t,r,o){const s=xr(e);let c=BT(jr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Zc)))),c}function Jc(e){return e.replace(/left|right|bottom|top/g,t=>FT[t])}function UT(e){return{top:0,right:0,bottom:0,left:0,...e}}function sb(e){return typeof e!="number"?UT(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 Gv(e,t,r){let{reference:o,floating:s}=e;const c=ba(t),f=Oh(t),d=Ph(f),h=jr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let 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(xr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const VT=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}=Gv(p,o,h),b=o,w={},M=0;for(let A=0;A<d.length;A++){const{name:C,fn:E}=d[A],{x:N,y:P,data:L,reset:O}=await E({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,[C]:{...w[C],...L}},O&&M<=50&&(M++,typeof O=="object"&&(O.placement&&(b=O.placement),O.rects&&(p=O.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):O.rects),{x:v,y:m}=Gv(p,b,h)),A=-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}=Io(t,e),M=sb(w),C=d[b?m==="floating"?"reference":"floating":m],E=Rl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(C)))==null||r?C:C.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},O=Rl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:P,strategy:h}):N);return{top:(E.top-O.top+M.top)/L.y,bottom:(O.bottom-E.bottom+M.bottom)/L.y,left:(E.left-O.left+M.left)/L.x,right:(O.right-E.right+M.right)/L.x}}const jT=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}=Io(e,t)||{};if(p==null)return{};const m=sb(v),b={x:r,y:o},w=Oh(s),M=Ph(w),A=await f.getDimensions(p),C=w==="y",E=C?"top":"left",N=C?"bottom":"right",P=C?"clientHeight":"clientWidth",L=c.reference[M]+c.reference[w]-b[w]-c.floating[M],O=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-O/2,Q=U/2-A[M]/2-1,G=Yl(m[E],Q),te=Yl(m[N],Q),J=G,H=U-A[M]-te,F=U/2-A[M]/2+re,k=Rd(J,F,H),B=!h.arrow&&xr(s)!=null&&F!==k&&c.reference[M]/2-(F<J?G:te)-A[M]/2<0,V=B?F<J?F-J:F-H:0;return{[w]:b[w]+V,data:{[w]:k,centerOffset:F-k-V,...B&&{alignmentOffset:V}},reset:B}}});function GT(e,t,r){return(e?[...r.filter(s=>xr(s)===e),...r.filter(s=>xr(s)!==e)]:r.filter(s=>jr(s)===s)).filter(s=>e?xr(s)===e||(t?Zc(s)!==s:!1):!0)}const KT=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=jv,autoAlignment:w=!0,...M}=Io(e,t),A=m!==void 0||b===jv?GT(m||null,w,b):b,C=await $u(t,M),E=((r=f.autoPlacement)==null?void 0:r.index)||0,N=A[E];if(N==null)return{};const P=ob(N,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==N)return{reset:{placement:A[0]}};const L=[C[jr(N)],C[P[0]],C[P[1]]],O=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:L}],W=A[E+1];if(W)return{data:{index:E+1,overflows:O},reset:{placement:W}};const U=O.map(G=>{const te=xr(G.placement);return[G.placement,te&&v?G.overflows.slice(0,2).reduce((J,H)=>J+H,0):G.overflows[0],G.overflows]}).sort((G,te)=>G[1]-te[1]),Q=((s=U.filter(G=>G[2].slice(0,xr(G[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||U[0][0];return Q!==d?{data:{index:E+1,overflows:O},reset:{placement:Q}}:{}}}},XT=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:A=!0,...C}=Io(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const E=jr(s),N=jr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),L=b||(N||!A?[Jc(d)]:qT(d));!b&&M!=="none"&&L.push(...WT(d,A,M,P));const O=[d,...L],W=await $u(t,C),U=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&U.push(W[E]),m){const J=ob(s,f,P);U.push(W[J[0]],W[J[1]])}if(re=[...re,{placement:s,overflows:U}],!U.every(J=>J<=0)){var Q,G;const J=(((Q=c.flip)==null?void 0:Q.index)||0)+1,H=O[J];if(H)return{data:{index:J,overflows:re},reset:{placement:H}};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 YT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=jr(r),d=xr(r),h=ba(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Io(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 ZT=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 YT(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}}}}},JT=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:C=>{let{x:E,y:N}=C;return{x:E,y:N}}},...h}=Io(e,t),p={x:r,y:o},v=await $u(t,h),m=ba(jr(s)),b=ib(m);let w=p[b],M=p[m];if(c){const C=b==="y"?"top":"left",E=b==="y"?"bottom":"right",N=w+v[C],P=w-v[E];w=Rd(N,w,P)}if(f){const C=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=M+v[C],P=M-v[E];M=Rd(N,M,P)}const A=d.fn({...t,[b]:w,[m]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},QT=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}=Io(e,t),h=await $u(t,d),p=jr(r),v=xr(r),m=ba(r)==="y",{width:b,height:w}=o.floating;let M,A;p==="top"||p==="bottom"?(M=p,A=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(A=p,M=v==="end"?"top":"bottom");const C=w-h[M],E=b-h[A],N=!t.middlewareData.shift;let P=C,L=E;if(m){const W=b-h.left-h.right;L=v||N?Yl(E,W):W}else{const W=w-h.top-h.bottom;P=v||N?Yl(C,W):W}if(N&&!v){const W=ko(h.left,0),U=ko(h.right,0),re=ko(h.top,0),Q=ko(h.bottom,0);m?L=b-2*(W!==0||U!==0?W+U:ko(h.left,h.right)):P=w-2*(re!==0||Q!==0?re+Q:ko(h.top,h.bottom))}await f({...t,availableWidth:L,availableHeight:P});const O=await s.getDimensions(c.floating);return b!==O.width||w!==O.height?{reset:{rects:!0}}:{}}}};function ir(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Br(e){return ir(e).getComputedStyle(e)}const Kv=Math.min,Dl=Math.max,Qc=Math.round;function lb(e){const t=Br(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Qc(r)!==s||Qc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Qi(e){return cb(e)?(e.nodeName||"").toLowerCase():""}let uc;function ab(){if(uc)return uc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(uc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),uc):navigator.userAgent}function Wr(e){return e instanceof ir(e).HTMLElement}function Yi(e){return e instanceof ir(e).Element}function cb(e){return e instanceof ir(e).Node}function Xv(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}=Br(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function eC(e){return["table","td","th"].includes(Qi(e))}function Dd(e){const t=/firefox/i.test(ab()),r=Br(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 ub(){return!/^((?!chrome|android).)*safari/i.test(ab())}function Rh(e){return["html","body","#document"].includes(Qi(e))}function fb(e){return Yi(e)?e:e.contextElement}const db={x:1,y:1};function Cs(e){const t=fb(e);if(!Wr(t))return db;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=lb(t);let f=(c?Qc(r.width):r.width)/o,d=(c?Qc(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=fb(e);let h=db;t&&(o?Yi(o)&&(h=Cs(o)):h=Cs(e));const p=d?ir(d):window,v=!ub()&&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 A=ir(d),C=o&&Yi(o)?ir(o):o;let E=A.frameElement;for(;E&&o&&C!==A;){const N=Cs(E),P=E.getBoundingClientRect(),L=getComputedStyle(E);P.x+=(E.clientLeft+parseFloat(L.paddingLeft))*N.x,P.y+=(E.clientTop+parseFloat(L.paddingTop))*N.y,m*=N.x,b*=N.y,w*=N.x,M*=N.y,m+=P.x,b+=P.y,E=ir(E).frameElement}}return{width:w,height:M,top:b,right:m+w,bottom:b+M,left:m,x:m,y:b}}function Zi(e){return((cb(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 hb(e){return Zl(Zi(e)).left+Ou(e).scrollLeft}function Jl(e){if(Qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xv(e)&&e.host||Zi(e);return Xv(t)?t.host:t}function pb(e){const t=Jl(e);return Rh(t)?t.ownerDocument.body:Wr(t)&&Pu(t)?t:pb(t)}function eu(e,t){var r;t===void 0&&(t=[]);const o=pb(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,eu(o))}function Yv(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=ub();(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=Wr(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+hb(o);const v=-c.scrollTop;return Br(f).direction==="rtl"&&(p+=Dl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Zi(e)))}function Zv(e){return Wr(e)&&Br(e).position!=="fixed"?e.offsetParent:null}function Jv(e){const t=ir(e);let r=Zv(e);for(;r&&eC(r)&&Br(r).position==="static";)r=Zv(r);return r&&(Qi(r)==="html"||Qi(r)==="body"&&Br(r).position==="static"&&!Dd(r))?t:r||function(o){let s=Jl(o);for(;Wr(s)&&!Rh(s);){if(Dd(s))return s;s=Jl(s)}return null}(e)||t}function tC(e,t,r){const o=Wr(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)),Wr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=hb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const nC={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=eu(p).filter(C=>Yi(C)&&Qi(C)!=="body"),w=null;const M=Br(p).position==="fixed";let A=M?Jl(p):p;for(;Yi(A)&&!Rh(A);){const C=Br(A),E=Dd(A);(M?E||w:E||C.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=C:b=b.filter(N=>N!==A),A=Jl(A)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Yv(t,v,s);return p.top=Dl(m.top,p.top),p.right=Kv(m.right,p.right),p.bottom=Kv(m.bottom,p.bottom),p.left=Dl(m.left,p.left),p},Yv(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=Wr(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)),Wr(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 Wr(e)?lb(e):e.getBoundingClientRect()},getOffsetParent:Jv,getDocumentElement:Zi,getScale:Cs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Jv,c=this.getDimensions;return{reference:tC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Br(e).direction==="rtl"},rC=(e,t,r)=>{const o=new Map,s={platform:nC,...r},c={...s.platform,_c:o};return VT(e,t,{...s,platform:c})};function gb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?gb(e[r],t[r]):e[r]=t[r])}const Sr={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=Sr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Sr.themes[r.$extend]||{}:(r=null,o=Sr[t]):r=null;while(r);return o}function iC(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Qv(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Sr.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 vb=!1;typeof window<"u"&&typeof navigator<"u"&&(vb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const mb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),em={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},tm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function nm(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 So=null;const rm={};function im(e){let t=rm[e];return t||(t=rm[e]=[]),t}let zd=function(){};typeof window<"u"&&(zd=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const rd="__floating-vue__popper",yb=()=>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=>mb.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,zd,Boolean],default:at("container")},boundary:{type:[String,zd],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(ZT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(KT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(JT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(XT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(jT({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(QT({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 rC(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),So&&this.instantMove&&So.instantMove&&So!==this.parentPopper){So.$_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&&(So=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([...eu(this.$_referenceNode),...eu(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 Qv(this.theme))im(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,nm(Kn,this),Kn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Qv(this.theme)){const o=im(r);nm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}So===this&&(So=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,em,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],em,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,tm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],tm,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 fc(Ii,Fi,c,f,t.left,t.top,t.left,t.bottom)||fc(Ii,Fi,c,f,t.left,t.top,t.right,t.top)||fc(Ii,Fi,c,f,t.right,t.top,t.right,t.bottom)||fc(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(vb){const e=Ps?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>om(t,!0),e),document.addEventListener("touchend",t=>sm(t,!0),e)}else window.addEventListener("mousedown",e=>om(e,!1),!0),window.addEventListener("click",e=>sm(e,!1),!0);window.addEventListener("resize",sC)}function om(e,t){if(Sr.autoHideOnMousedown)bb(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 sm(e,t){Sr.autoHideOnMousedown||bb(e,t)}function bb(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]&&lm(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&&lm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function lm(e,t,r){return r.closeAllPopover||r.closePopover&&t||oC(e,r)&&!t}function oC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function sC(){for(let e=0;e<Kn.length;e++)Kn[e].$_computePosition()}function am(){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 fc(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 lC={extends:yb()},Ru=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function aC(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[gn(e.$slots,"default",s_(Xy(e.slotData)))],2)}const cC=Ru(lC,[["render",aC]]);function uC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Mc;function Id(){Id.init||(Id.init=!0,Mc=uC()!==-1)}var Du={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Id(),cn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Mc&&this.$el.appendChild(e),e.data="about:blank",Mc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Mc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const fC=hy();fy("data-v-b329ee4c");const dC={class:"resize-observer",tabindex:"-1"};dy();const hC=fC((e,t,r,o,s,c)=>(oe(),tt("div",dC)));Du.render=hC;Du.__scopeId="data-v-b329ee4c";Du.__file="src/components/ResizeObserver.vue";const wb=(e="theme")=>({computed:{themeClass(){return iC(this[e])}}}),pC=ut({name:"VPopperContent",components:{ResizeObserver:Du},mixins:[wb()],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}}}),gC=["id","aria-hidden","tabindex","data-popper-placement"],vC={ref:"inner",class:"v-popper__inner"},mC=Z("div",{class:"v-popper__arrow-outer"},null,-1),yC=Z("div",{class:"v-popper__arrow-inner"},null,-1),bC=[mC,yC];function wC(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]=Od(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Z("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Z("div",{class:"v-popper__wrapper",style:Jt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Z("div",vC,[e.mounted?(oe(),me(ct,{key:0},[Z("div",null,[gn(e.$slots,"default")]),e.handleResize?(oe(),tt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ke("",!0)],64)):Ke("",!0)],512),Z("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)},bC,4)],4)],46,gC)}const xb=Ru(pC,[["render",wC]]),Sb={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 Fd=function(){};typeof window<"u"&&(Fd=window.Element);const xC=ut({name:"VPopperWrapper",components:{Popper:cC,PopperContent:xb},mixins:[Sb,wb("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,Fd,Boolean],default:void 0},boundary:{type:[String,Fd],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 SC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),tt(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:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:M,handleResize:A,onResize:C,classes:E,result:N})=>[gn(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":A,classes:E,result:N,onHide:M,onResize:C},{default:rt(()=>[gn(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 Dh=Ru(xC,[["render",SC]]),_C={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},kC={...Dh,name:"VMenu",vPopperTheme:"menu"},_b={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},TC=ut({name:"VTooltipDirective",components:{Popper:yb(),PopperContent:xb},mixins:[Sb],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}}}),CC=["innerHTML"],EC=["textContent"];function LC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),tt(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:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:M,onResize:A,classes:C,result:E})=>[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:C,result:E,onHide:w,onResize:A},{default:rt(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,CC)):(oe(),me("div",{key:1,textContent:He(e.finalContent)},null,8,EC))]),_: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 AC=Ru(TC,[["render",LC]]),kb="v-popper--has-tooltip";function MC(e,t){let r=e.placement;if(!r&&t)for(const o of mb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Tb(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=MC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let id,ea,NC=0;function $C(){if(id)return;ea=Be([]),id=rb({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>ya(AC,{...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 Cb(e,t,r){$C();const o=Be(Tb(e,t,r)),s=Be(!1),c={id:NC++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(kb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(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(kb)}function cm(e,{value:t,modifiers:r}){const o=Tb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Cb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Eb={beforeMount:cm,updated:cm,beforeUnmount(e){zh(e)}};function um(e){e.addEventListener("mousedown",tu),e.addEventListener("click",tu),e.addEventListener("touchstart",Lb,Ps?{passive:!0}:!1)}function fm(e){e.removeEventListener("mousedown",tu),e.removeEventListener("click",tu),e.removeEventListener("touchstart",Lb),e.removeEventListener("touchend",Ab),e.removeEventListener("touchcancel",Mb)}function tu(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Lb(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",Ab),t.addEventListener("touchcancel",Mb)}}function Ab(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 Mb(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const PC={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&um(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?um(e):fm(e))},beforeUnmount(e){fm(e)}},OC=Eb,Nb=_b;function RC(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,gb(Sr,t),e.directive("tooltip",Eb),e.directive("close-popper",PC),e.component("VTooltip",_b),e.component("VDropdown",_C),e.component("VMenu",kC))}const $b={version:"5.2.2",install:RC,options:Sr};function Pb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const DC=/^[A-Za-z]:\//;function zC(e=""){return e&&e.replace(/\\/g,"/").replace(DC,t=>t.toUpperCase())}const IC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,dm=/^\/([A-Za-z]:)?$/;var N0;(N0=globalThis.process)==null||N0.platform;function FC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const hm=function(...e){e=e.map(o=>zC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:FC();!s||s.length===0||(t=`${s}/${t}`,r=pm(s))}return t=HC(t,!r),r&&!pm(t)?`/${t}`:t.length>0?t:"."};function HC(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 IC.test(e)},qC=function(e,t){const r=hm(e).replace(dm,"$1").split("/"),o=hm(t).replace(dm,"$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 BC(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 Ob(e,t,r,o){const s=qC(t,e),c={id:WC(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function WC(e,t){return BC(`${e}${t||""}`)}function Rb(e){return ta(e)}function ta(e){return e.type==="test"}function Db(e){const t=[],r=Ih(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=Db(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>ta(t)?[t]:[t,...Fh(t.tasks)])}function UC(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 VC=6e4;function zb(e){return e}const jC=zb,{clearTimeout:GC,setTimeout:KC}=globalThis,XC=Math.random.bind(Math);function YC(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=zb,deserialize:d=jC,resolver:h,bind:p="rpc",timeout:v=VC}=t,m=new Map;let b,w=!1;const M=new Proxy({},{get(E,N){if(N==="$functions")return e;if(N==="$close")return A;if(N==="then"&&!c.includes("then")&&!("then"in e))return;const P=(...O)=>{r(f({m:N,a:O,t:"q"}))};if(c.includes(N))return P.asEvent=P,P;const L=async(...O)=>{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=JC();let Q;v>=0&&(Q=KC(()=>{var te;try{throw(te=t.onTimeoutError)==null||te.call(t,N,O),new Error(`[birpc] timeout on calling "${N}"`)}catch(J){U(J)}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:O,i:re,t:"q"}))})};return L.asEvent=P,L}});function A(){w=!0,m.forEach(({reject:E,method:N})=>{E(new Error(`[birpc] rpc is closed, cannot call "${N}"`))}),m.clear(),s(C)}async function C(E,...N){const P=d(E);if(P.t==="q"){const{m:L,a:O}=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,O)}catch(Q){U=Q}P.i&&(U&&t.onError&&t.onError(U,L,O),r(f({t:"s",i:P.i,r:W,e:U}),...N))}else{const{i:L,r:O,e:W}=P,U=m.get(L);U&&(GC(U.timeoutId),W?U.reject(W):U.resolve(O)),m.delete(L)}}return b=o(C),M}const ZC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function JC(e=21){let t="",r=e;for(;r--;)t+=ZC[XC()*64|0];return t}const{parse:QC,stringify:eE}=JSON,{keys:tE}=Object,na=String,Ib="string",gm={},nu="object",nE=(e,t)=>t,rE=e=>e instanceof na?na(e):e,iE=(e,t)=>typeof t===Ib?new na(t):t,Fb=(e,t,r,o)=>{const s=[];for(let c=tE(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===nu&&!t.has(v)?(t.add(v),r[h]=gm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==gm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Fb.apply(null,h))}return r},vm=(e,t,r)=>{const o=na(t.push(r)-1);return e.set(r,o),o},Hd=(e,t)=>{const r=QC(e,iE).map(rE),o=r[0],s=t||nE,c=typeof o===nu&&o?Fb(r,new Set,o,s):o;return s.call({"":c},"",c)},oE=(e,t,r)=>{const o=typeof t===nu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t,s=new Map,c=[],f=[];let d=+vm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=eE(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 nu:if(b===null)return b;case Ib:return s.get(b)||vm(s,c,b)}return b}};class Hb{constructor(){ds(this,"filesMap",new Map);ds(this,"pathsSet",new Set);ds(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Ob(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 Hh(e){return Db(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 sE(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 Hb,waitForConnection:E,reconnect:A},"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,O])=>{v.state.clearFiles({config:L},[O])}),(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=>oE(N,(P,L)=>L instanceof Error?{name:L.name,message:L.message,stack:L.stack}:L),deserialize:Hd,onTimeoutError(N){throw new Error(`[vitest-ws-client]: Timeout calling "${N}"`)}};v.rpc=YC(b,w);let M;function A(N=!1){N&&(p=c),v.ws=new h(e),C()}function C(){M=new Promise((N,P)=>{var O,W;const L=(W=(O=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:O.unref)==null?void 0:W.call(O);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(A,s)})}C();function E(){return M}return v}function zu(e){return B0()?(f_(e),!0):!1}const od=new WeakMap,lE=(...e)=>{var t;const r=e[0],o=(t=qs())==null?void 0:t.proxy;if(o==null&&!Ly())throw new Error("injectLocal must be called in setup");return o&&od.has(o)&&r in od.get(o)?od.get(o)[r]:qr(...e)};function Tr(e){return typeof e=="function"?e():I(e)}const aE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const cE=Object.prototype.toString,uE=e=>cE.call(e)==="[object Object]",ra=()=>{};function qb(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 Bb=e=>e();function Wb(e,t={}){let r,o,s=ra;const c=d=>{clearTimeout(d),s(),s=ra};return d=>{const h=Tr(e),p=Tr(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 fE(e=Bb){const t=Be(!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 mm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function dE(e){return qs()}function hE(...e){if(e.length!==1)return pa(...e);const t=e[0];return typeof t=="function"?ha(oy(()=>({get:t,set:ra}))):Be(t)}function dc(e,t=200,r={}){return qb(Wb(t,r),e)}function Ub(e,t,r={}){const{eventFilter:o=Bb,...s}=r;return Dt(e,qb(o,t),s)}function Vb(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=fE(o);return{stop:Ub(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function qh(e,t=!0,r){dE()?Hs(e,r):t?e():cn(e)}function pE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Et(e),c=Be(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Tr(r);return c.value=c.value===h?Tr(o):h,c.value}}return s?f:[c,f]}function jb(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Ub(e,t,{...c,eventFilter:Wb(o,{maxWait:s})})}function gE(e,t,r){const o=Dt(e,(...s)=>(cn(()=>o()),t(...s)),r);return o}function vE(e,t,r){let o;Et(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=ra}=o,h=Be(!s),p=f?Gr(t):Be(t);let v=0;return Ah(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(A=>{m(()=>{c&&(c.value=!1),w||A()})});b===v&&(p.value=M)}catch(M){d(M)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Cr=aE?window:void 0;function ru(e){var t;const r=Tr(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Oo(...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=Dt(()=>[ru(t),Tr(s)],([v,m])=>{if(f(),!v)return;const b=uE(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 mE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Gb(...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=mE(t);return Oo(s,c,v=>{v.repeat&&Tr(d)||h(v)&&r(v)},f)}function yE(){const e=Be(!1),t=qs();return t&&Hs(()=>{e.value=!0},t),e}function Kb(e){const t=yE();return ke(()=>(t.value,!!e()))}function bE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Cr}=t,c=Be(!1),f=ke(()=>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.value&&w<f.value){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}}const wE=Symbol("vueuse-ssr-width");function xE(){const e=Ly()?lE(wE,null):null;return typeof e=="number"?e:void 0}function Xb(e,t={}){const{window:r=Cr,ssrWidth:o=xE()}=t,s=Kb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Be(typeof o=="number");let f;const d=Be(!1),h=m=>{d.value=m.matches},p=()=>{f&&("removeEventListener"in f?f.removeEventListener("change",h):f.removeListener(h))},v=Ah(()=>{if(c.value){c.value=!s.value;const m=Tr(e).split(",");d.value=m.some(b=>{const w=b.includes("not all"),M=b.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),A=b.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(M||A);return M&&C&&(C=o>=mm(M[1])),A&&C&&(C=o<=mm(A[1])),w?!C:C});return}s.value&&(p(),f=r.matchMedia(Tr(e)),"addEventListener"in f?f.addEventListener("change",h):f.addListener(h),d.value=f.matches)});return zu(()=>{v(),p(),f=void 0}),ke(()=>d.value)}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",SE=_E();function _E(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Yb(e,t){return SE[e]||t}function kE(e){return Xb("(prefers-color-scheme: dark)",e)}function TE(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 CE={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ym="vueuse-storage";function Zb(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,A=(v?Gr:Be)(typeof t=="function"?t():t);if(!r)try{r=Yb("getDefaultStorage",()=>{var G;return(G=Cr)==null?void 0:G.localStorage})()}catch(G){w(G)}if(!r)return A;const C=Tr(t),E=TE(C),N=(s=o.serializer)!=null?s:CE[E],{pause:P,resume:L}=Vb(A,()=>W(A.value),{flush:c,deep:f,eventFilter:b});m&&d&&qh(()=>{r instanceof Storage?Oo(m,"storage",re):Oo(m,ym,Q),M&&re()}),M||re();function O(G,te){if(m){const J={key:e,oldValue:G,newValue:te,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",J):new CustomEvent(ym,{detail:J}))}}function W(G){try{const te=r.getItem(e);if(G==null)O(te,null),r.removeItem(e);else{const J=N.write(G);te!==J&&(r.setItem(e,J),O(te,J))}}catch(te){w(te)}}function U(G){const te=G?G.newValue:r.getItem(e);if(te==null)return h&&C!=null&&r.setItem(e,N.write(C)),C;if(!G&&p){const J=N.read(te);return typeof p=="function"?p(J,C):E==="object"&&!Array.isArray(J)?{...C,...J}:J}else return typeof te!="string"?te:N.read(te)}function re(G){if(!(G&&G.storageArea!==r)){if(G&&G.key==null){A.value=C;return}if(!(G&&G.key!==e)){P();try{(G==null?void 0:G.newValue)!==N.write(A.value)&&(A.value=U(G))}catch(te){w(te)}finally{G?cn(L):L()}}}}function Q(G){re(G.detail)}return A}const EE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function LE(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=kE({window:s}),w=ke(()=>b.value?"dark":"light"),M=h||(f==null?hE(o):Zb(f,o,c,{window:s,listenToStorageChanges:d})),A=ke(()=>M.value==="auto"?w.value:M.value),C=Yb("updateHTMLAttrs",(L,O,W)=>{const U=typeof L=="string"?s==null?void 0:s.document.querySelector(L):ru(L);if(!U)return;const re=new Set,Q=new Set;let G=null;if(O==="class"){const J=W.split(/\s/g);Object.values(m).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{J.includes(H)?re.add(H):Q.add(H)})}else G={key:O,value:W};if(re.size===0&&Q.size===0&&G===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(EE)),s.document.head.appendChild(te));for(const J of re)U.classList.add(J);for(const J of Q)U.classList.remove(J);G&&U.setAttribute(G.key,G.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function E(L){var O;C(t,r,(O=m[L])!=null?O:L)}function N(L){e.onChanged?e.onChanged(L,E):E(L)}Dt(A,N,{flush:"post",immediate:!0}),qh(()=>N(A.value));const P=ke({get(){return p?M.value:A.value},set(L){M.value=L}});return Object.assign(P,{store:M,system:w,state:A})}function AE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=LE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function ME(e,t,r={}){const{window:o=Cr,...s}=r;let c;const f=Kb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const m=Tr(e);return Array.isArray(m)?m.map(b=>ru(b)):[ru(m)]}),p=Dt(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 Zb(e,t,o==null?void 0:o.localStorage,r)}function NE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Cr}=t;if(!d)return Zn(r);const h=Zn({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const N=d.location.hash||"",P=N.indexOf("?");return P>0?N.slice(P):""}else return(d.location.hash||"").replace(/^#/,"")}function v(N){const P=N.toString();if(e==="history")return`${P?`?${P}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${P?`#${P}`:""}`;const L=d.location.hash||"#",O=L.indexOf("?");return O>0?`${d.location.search||""}${L.slice(0,O)}${P?`?${P}`:""}`:`${d.location.search||""}${L}${P?`?${P}`:""}`}function m(){return new URLSearchParams(p())}function b(N){const P=new Set(Object.keys(h));for(const L of N.keys()){const O=N.getAll(L);h[L]=O.length>1?O:N.get(L)||"",P.delete(L)}Array.from(P).forEach(L=>delete h[L])}const{pause:w,resume:M}=Vb(h,()=>{const N=new URLSearchParams("");Object.keys(h).forEach(P=>{const L=h[P];Array.isArray(L)?L.forEach(O=>N.append(P,O)):o&&L==null||s&&!L?N.delete(P):N.set(P,L)}),A(N,!1)},{deep:!0});function A(N,P){w(),P&&b(N),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(N)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(N)),M()}function C(){c&&A(m(),!0)}Oo(d,"popstate",C,!1),e!=="history"&&Oo(d,"hashchange",C,!1);const E=m();return E.keys().next().value?b(E):Object.assign(h,r),h}function Bh(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=Be(r),h=Be(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:m,scale:b}=t.visualViewport;d.value=Math.round(v*b),h.value=Math.round(m*b)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};if(p(),qh(p),Oo("resize",p,{passive:!0}),t&&f==="visual"&&t.visualViewport&&Oo(t.visualViewport,"resize",p,{passive:!0}),s){const v=Xb("(orientation: portrait)");Dt(v,()=>p())}return{width:d,height:h}}const qd=Gr([]),Wn=Gr([]),Er=Iu("vitest-ui_task-tree-opened",[],{shallow:!0}),iu=ke(()=>new Set(Er.value)),ln=Iu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),In=Be(ln.value.search),$E={"&":"&","<":"<",">":">",'"':""","'":"'"};function Jb(e){return e.replace(/[&<>"']/g,t=>$E[t])}const PE=ke(()=>{const e=In.value.toLowerCase();return e.length?new RegExp(`(${Jb(e)})`,"gi"):null}),Qb=ke(()=>In.value.trim()!==""),Ze=Zn({failed:ln.value.failed,success:ln.value.success,skipped:ln.value.skipped,onlyTests:ln.value.onlyTests}),Bd=ke(()=>!!(Ze.failed||Ze.success||Ze.skipped)),Fu=Gr([]),Os=Be(!1),bm=ke(()=>{const e=ln.value.expandAll;return Er.value.length>0?e!==!0:e!==!1}),OE=ke(()=>{const e=Qb.value,t=Bd.value,r=Ze.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 RE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function ew(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 DE(e){return e.type==="test"}function zE(e){return e.mode==="run"&&e.type==="test"}function An(e){return e.type==="file"}function vi(e){return e.type==="file"||e.type==="suite"}function IE(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:iu.value.size>0&&iu.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:ew(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 tw(e,t){const r=Ce.nodes.get(e);if(!r||!vi(r))return;const o=wt.state.idMap.get(e);if(!(!o||!wa(o)))return xa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function FE(e){const t=Ce.nodes.get(e);if(!t)return;const r=wt.state.idMap.get(e);!r||!Rb(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):(Rb(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:iu.value.size>0&&iu.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 HE(e){const t=Ce.nodes.get(e);if(!t||!vi(t))return;const r=new Set(Er.value);r.delete(t.id);const o=[...BE(t)];Er.value=Array.from(r),Wn.value=o}function qE(){Wd(Ce.root.tasks);const e=[...Wn.value.filter(An)];Wd(e),Er.value=[],ln.value.expandAll=!0,Wn.value=e}function Wd(e){for(const t of e)vi(t)&&(t.expanded=!1,Wd(t.tasks))}function*nw(e,t){if(t&&(yield e.id),vi(e))for(let r=0;r<e.tasks.length;r++)yield*nw(e.tasks[r],!0)}function*BE(e){const t=e.id,r=new Set(nw(e,!1));for(let o=0;o<Wn.value.length;o++){const s=Wn.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 WE(e,t,r){return e?ow(e,t,r):!1}function Wh(e,t){const r=[...rw(e,t)];Wn.value=r,Fu.value=r.filter(An).map(o=>sr(o.id))}function*rw(e,t){for(const r of IE())yield*iw(r,e,t)}function*iw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Ud(e,o,w=>wm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Ud(e,o,w=>wm(w,t,r)))vi(b)?(s.set(b.id,m),An(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&&!An(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...VE(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(m=>{var b;return An(m)||vi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return An(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function UE(e,t,r,o,s){if(o){if(An(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&An(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&&An(c)&&s.add(c.id),t}}function*VE(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),An(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=UE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&An(p)&&o.add(p.id),yield d}}}function jE(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 ow(e,t,r){if(t.length===0||RE(e.name,t))if(r.success||r.failed||r.skipped){if(jE(e,r))return!0}else return!0;return!1}function*Ud(e,t,r){const o=r(e);if(o)if(DE(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if(An(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*Ud(e.tasks[s],t,r)}function wm(e,t,r){const o=wt.state.idMap.get(e.id);return o?ow(o,t,r):!1}function GE(e,t,r){const o=tw(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(iw(s,t,r)),h=[...YE(s,d)];Er.value=Array.from(f),Wn.value=h}function KE(e,t){Uh(Ce.root.tasks,!1);const r=[...rw(e,t)];ln.value.expandAll=!1,Er.value=[],Wn.value=r,Fu.value=r.filter(An).map(o=>sr(o.id))}function XE(e,t){if(e.size)for(const r of Wn.value)e.has(r.id)&&(r.expanded=!0);else t&&Uh(Wn.value.filter(An),!0)}function Uh(e,t){for(const r of e)vi(r)&&(r.expanded=!0,Uh(r.tasks,!1));t&&(ln.value.expandAll=!1,Er.value=[])}function*YE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Wn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function ZE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ia(s,t)),qd.value=[...Ce.root.tasks],Wh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function JE(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 xm(e,t,r,o,s){e&&iL(r);const c=!e;queueMicrotask(()=>{t?tL(c):nL(c)}),queueMicrotask(()=>{oL(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=qd.value&&Hh(qd.value.map(f=>sr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{rL(o,s,t)})}function*QE(){yield*Wn.value.filter(zE)}function eL(){const e=wt.state.idMap;let t;for(const r of QE())t=e.get(r.parentId),t&&wa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function tL(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++)ia(o[c],e),ou(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&&ou(d.tasks)}}function nL(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),ou(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=sr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ia(p,e),ou(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function rL(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(()=>{Sm(e,t,r)}),Os.value||queueMicrotask(()=>{(Wn.value.length||r)&&(Os.value=!0)}),f&&(queueMicrotask(()=>{XE(c,r),s&&(ln.value.expandAll=!1)}),queueMicrotask(()=>{Sm(e,t,r)}))}function Sm(e,t,r){Wh(e,t),r&&eL()}function ou(e){let t;for(let r=0;r<e.length;r++)t=e[r],wa(t)?tw(t.id,!0):FE(t.id)}function iL(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 oL(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,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:A,success:C,skipped:E,total:N,ignored:P,todo:L}=sw(w);s.totalTests+=N,s.testsFailed+=A,s.testsSuccess+=C,s.testsSkipped+=E,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 sw(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 lw(e))(!r||WE(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 sL(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>sw(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*lw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],ta(r)?yield r:yield*lw(r.tasks)}class lL{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})){ds(this,"rafCollector");ds(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=bE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){ZE(t,!0,In.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){JE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{xm(t,r,this.summary,In.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}):xm(t,r,this.summary,In.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collectTestsTotal(t,r,o,s){return sL(t,r,o,s,In.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{HE(t)})}expandNode(t){queueMicrotask(()=>{GE(t,In.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{qE()})}expandAllNodes(){queueMicrotask(()=>{KE(In.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Wh(In.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ce=new lL,zr=Be([414,896]),Hu=NE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),eo=pa(Hu,"file"),jn=pa(Hu,"view"),aw=pa(Hu,"line"),cw=pa(Hu,"test"),su=Be("idle"),aL=ke(()=>su.value==="idle"),Wi=Be([]),Rs=Be(),Es=Be(!0),to=Be(!1),lu=Be(!0),vs=ke(()=>{var e;return(e=Wu.value)==null?void 0:e.coverage}),Vd=ke(()=>{var e;return(e=vs.value)==null?void 0:e.enabled}),ms=ke(()=>Vd.value&&!!vs.value.htmlReporter),mr=Iu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=Iu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),pn=Zn({navigation:mr.value[0],details:{size:mr.value[1],browser:Mo.value[0],main:Mo.value[1]}}),_m=ke(()=>{var e;if(ms.value){const t=vs.value.reportsDirectory.lastIndexOf("/"),r=(e=vs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${vs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${vs.value.reportsDirectory.slice(t+1)}/index.html`}});Dt(su,e=>{lu.value=e==="running"},{immediate:!0});function cL(){const e=eo.value;if(e&&e.length>0){const t=sr(e);t?(Rs.value=t,Es.value=!1,to.value=!1):gE(()=>wt.state.getFiles(),()=>{Rs.value=sr(e),Es.value=!1,to.value=!1})}return Es}function au(e){Es.value=e,to.value=!1,e&&(Rs.value=void 0,eo.value="")}function uw({file:e,line:t,view:r,test:o}){eo.value=e,aw.value=t,jn.value=r,cw.value=o,Rs.value=sr(e),au(!1)}function uL(e){uw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function fL(){to.value=!0,Es.value=!1,Rs.value=void 0,eo.value=""}function dL(){pn.details.browser=100,pn.details.main=0,Mo.value=[100,0]}function hL(){pn.details.browser=33,pn.details.main=67,Mo.value=[33,67]}function pL(){pn.navigation=33,pn.details.size=67,mr.value=[33,67]}const gL={setCurrentFileId(e){eo.value=e,Rs.value=sr(e),au(!1)},async setIframeViewport(e,t){zr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},vL=location.port,mL=[location.hostname,vL].filter(Boolean).join(":"),yL=`${location.protocol==="https:"?"wss:":"ws:"}//${mL}/__vitest_api__`,Ur=!!window.METADATA_PATH,bL=44,km="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wL=new Uint8Array(64),fw=new Uint8Array(128);for(let e=0;e<km.length;e++){const t=km.charCodeAt(e);wL[e]=t,fw[t]=e}function _l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=fw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Tm(e,t){return e.pos>=t?!1:e.peek()!==bL}class xL{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 SL(e){const{length:t}=e,r=new xL(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,Tm(r,p)?(c=_l(r,c),f=_l(r,f),d=_l(r,d),Tm(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||_L(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function _L(e){e.sort(kL)}function kL(e,t){return e[0]-t[0]}const TL=/^[\w+.-]+:\/\//,CL=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,EL=/^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 LL(e){return TL.test(e)}function AL(e){return e.startsWith("//")}function dw(e){return e.startsWith("/")}function ML(e){return e.startsWith("file:")}function Cm(e){return/^[.?#]/.test(e)}function gc(e){const t=CL.exec(e);return hw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function NL(e){const t=EL.exec(e),r=t[2];return hw("file:","",t[1]||"","",dw(r)?r:"/"+r,t[3]||"",t[4]||"")}function hw(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 Em(e){if(AL(e)){const r=gc("http:"+e);return r.scheme="",r.type=qt.SchemeRelative,r}if(dw(e)){const r=gc("http://foo.com"+e);return r.scheme="",r.host="",r.type=qt.AbsolutePath,r}if(ML(e))return NL(e);if(LL(e))return gc(e);const t=gc("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 $L(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function PL(e,t){pw(t,t.type),e.path==="/"?e.path=t.path:e.path=$L(t.path)+e.path}function pw(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 OL(e,t){if(!e&&!t)return"";const r=Em(e);let o=r.type;if(t&&o!==qt.Absolute){const c=Em(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:PL(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)}pw(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?Cm(t||e)&&!Cm(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 Lm(e,t){return t&&!t.endsWith("/")&&(t+="/"),OL(e,t)}function RL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,DL=1,zL=2,IL=3,FL=4;function HL(e,t){const r=Am(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Am(e,o+1))e[o]=BL(e[o],t);return e}function Am(e,t){for(let r=t;r<e.length;r++)if(!qL(e[r]))return r;return e.length}function qL(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function BL(e,t){return t||(e=e.slice()),e.sort(WL)}function WL(e,t){return e[no]-t[no]}let cu=!1;function UL(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return cu=!0,s;c<0?r=s+1:o=s-1}return cu=!1,r-1}function VL(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function jL(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function GL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function KL(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 cu=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=UL(e,t,d,h)}const XL="`line` must be greater than 0 (lines start at line 1)",YL="`column` must be greater than or equal to 0 (columns start at column 0)",Mm=-1,ZL=1;class JL{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=Lm(h||"",RL(r));this.resolvedSources=p.map(w=>Lm(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=HL(b,o)),this._decodedMemo=GL(),this._bySources=void 0,this._bySourceMemos=void 0}}function QL(e){var t;return(t=e)._decoded||(t._decoded=SL(e._encoded))}function eA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(XL);if(o<0)throw new Error(YL);const c=QL(e);if(r>=c.length)return vc(null,null,null,null);const f=c[r],d=tA(f,e._decodedMemo,r,o,s||ZL);if(d===-1)return vc(null,null,null,null);const h=f[d];if(h.length===1)return vc(null,null,null,null);const{names:p,resolvedSources:v}=e;return vc(v[h[DL]],h[zL]+1,h[IL],h.length===5?p[h[FL]]:null)}function vc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function tA(e,t,r,o,s){let c=KL(e,o,t,r);return cu?c=(s===Mm?VL:jL)(e,o,c):s===Mm&&c++,c===-1||c===e.length?-1:c}const nA=/^[A-Za-z]:\//;function rA(e=""){return e&&e.replace(/\\/g,"/").replace(nA,t=>t.toUpperCase())}const iA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var $0;($0=globalThis.process)==null||$0.platform;function oA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const sA=function(...e){e=e.map(o=>rA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:oA();!s||s.length===0||(t=`${s}/${t}`,r=Nm(s))}return t=lA(t,!r),r&&!Nm(t)?`/${t}`:t.length>0?t:"."};function lA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Nm=function(e){return iA.test(e)},gw=/^\s*at .*(?:\S:\d+|\(native\))/m,aA=/^(?:eval@)?(?:\[native code\])?$/,cA=["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 vw(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 uA(e){let t=e.trim();if(aA.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]=vw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function fA(e){let t=e.trim();if(!gw.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]=vw(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=sA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function dA(e,t={}){const{ignoreStackEntries:r=cA}=t;let o=gw.test(e)?pA(e):hA(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 JL(f),{line:h,column:p}=eA(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function hA(e){return e.split(`
|
|
18
|
+
`).map(t=>uA(t)).filter(Pb)}function pA(e){return e.split(`
|
|
19
|
+
`).map(t=>fA(t)).filter(Pb)}var Ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yw={},pi={};const 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="€",aI="!",cI="∃",uI="∃",fI="ℰ",dI="ⅇ",hI="ⅇ",pI="≒",gI="Ф",vI="ф",mI="♀",yI="ffi",bI="ff",wI="ffl",xI="𝔉",SI="𝔣",_I="fi",kI="◼",TI="▪",CI="fj",EI="♭",LI="fl",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="¡",Eq="⇔",Lq="𝔦",Aq="ℑ",Mq="Ì",Nq="ì",$q="ⅈ",Pq="⨌",Oq="∭",Rq="⧜",Dq="℩",zq="IJ",Iq="ij",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="Μ",J4="μ",Q4="⊸",eU="⊸",tU="∇",nU="Ń",rU="ń",iU="∠⃒",oU="≉",sU="⩰̸",lU="≋̸",aU="ʼn",cU="≉",uU="♮",fU="ℕ",dU="♮",hU=" ",pU="≎̸",gU="≏̸",vU="⩃",mU="Ň",yU="ň",bU="Ņ",wU="ņ",xU="≇",SU="⩭̸",_U="⩂",kU="Н",TU="н",CU="–",EU="⤤",LU="↗",AU="⇗",MU="↗",NU="≠",$U="≐̸",PU="",OU="",RU="",DU="",zU="≢",IU="⤨",FU="≂̸",HU="≫",qU="≪",BU=`
|
|
20
|
+
`,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="ζ",xse="𝔷",Sse="ℨ",_se="Ж",kse="ж",Tse="⇝",Cse="𝕫",Ese="ℤ",Lse="𝒵",Ase="𝓏",Mse="",Nse="",bw={Aacute:gA,aacute:vA,Abreve:mA,abreve:yA,ac:bA,acd:wA,acE:xA,Acirc:SA,acirc:_A,acute:kA,Acy:TA,acy:CA,AElig:EA,aelig:LA,af:AA,Afr:MA,afr:NA,Agrave:$A,agrave:PA,alefsym:OA,aleph:RA,Alpha:DA,alpha:zA,Amacr:IA,amacr:FA,amalg:HA,amp:qA,AMP:BA,andand:WA,And:UA,and:VA,andd:jA,andslope:GA,andv:KA,ang:XA,ange:YA,angle:ZA,angmsdaa:JA,angmsdab:QA,angmsdac:eM,angmsdad:tM,angmsdae:nM,angmsdaf:rM,angmsdag:iM,angmsdah:oM,angmsd:sM,angrt:lM,angrtvb:aM,angrtvbd:cM,angsph:uM,angst:fM,angzarr:dM,Aogon:hM,aogon:pM,Aopf:gM,aopf:vM,apacir:mM,ap:yM,apE:bM,ape:wM,apid:xM,apos:SM,ApplyFunction:_M,approx:kM,approxeq:TM,Aring:CM,aring:EM,Ascr:LM,ascr:AM,Assign:MM,ast:NM,asymp:$M,asympeq:PM,Atilde:OM,atilde:RM,Auml:DM,auml:zM,awconint:IM,awint:FM,backcong:HM,backepsilon:qM,backprime:BM,backsim:WM,backsimeq:UM,Backslash:VM,Barv:jM,barvee:GM,barwed:KM,Barwed:XM,barwedge:YM,bbrk:ZM,bbrktbrk:JM,bcong:QM,Bcy:eN,bcy:tN,bdquo:nN,becaus:rN,because:iN,Because:oN,bemptyv:sN,bepsi:lN,bernou:aN,Bernoullis:cN,Beta:uN,beta:fN,beth:dN,between:hN,Bfr:pN,bfr:gN,bigcap:vN,bigcirc:mN,bigcup:yN,bigodot:bN,bigoplus:wN,bigotimes:xN,bigsqcup:SN,bigstar:_N,bigtriangledown:kN,bigtriangleup:TN,biguplus:CN,bigvee:EN,bigwedge:LN,bkarow:AN,blacklozenge:MN,blacksquare:NN,blacktriangle:$N,blacktriangledown:PN,blacktriangleleft:ON,blacktriangleright:RN,blank:DN,blk12:zN,blk14:IN,blk34:FN,block:HN,bne:qN,bnequiv:BN,bNot:WN,bnot:UN,Bopf:VN,bopf:jN,bot:GN,bottom:KN,bowtie:XN,boxbox:YN,boxdl:ZN,boxdL:JN,boxDl:QN,boxDL:e$,boxdr:t$,boxdR:n$,boxDr:r$,boxDR:i$,boxh:o$,boxH:s$,boxhd:l$,boxHd:a$,boxhD:c$,boxHD:u$,boxhu:f$,boxHu:d$,boxhU:h$,boxHU:p$,boxminus:g$,boxplus:v$,boxtimes:m$,boxul:y$,boxuL:b$,boxUl:w$,boxUL:x$,boxur:S$,boxuR:_$,boxUr:k$,boxUR:T$,boxv:C$,boxV:E$,boxvh:L$,boxvH:A$,boxVh:M$,boxVH:N$,boxvl:$$,boxvL:P$,boxVl:O$,boxVL:R$,boxvr:D$,boxvR:z$,boxVr:I$,boxVR:F$,bprime:H$,breve:q$,Breve:B$,brvbar:W$,bscr:U$,Bscr:V$,bsemi:j$,bsim:G$,bsime:K$,bsolb:X$,bsol:Y$,bsolhsub:Z$,bull:J$,bullet:Q$,bump:eP,bumpE:tP,bumpe:nP,Bumpeq:rP,bumpeq:iP,Cacute:oP,cacute:sP,capand:lP,capbrcup:aP,capcap:cP,cap:uP,Cap:fP,capcup:dP,capdot:hP,CapitalDifferentialD:pP,caps:gP,caret:vP,caron:mP,Cayleys:yP,ccaps:bP,Ccaron:wP,ccaron:xP,Ccedil:SP,ccedil:_P,Ccirc:kP,ccirc:TP,Cconint:CP,ccups:EP,ccupssm:LP,Cdot:AP,cdot:MP,cedil:NP,Cedilla:$P,cemptyv:PP,cent:OP,centerdot:RP,CenterDot:DP,cfr:zP,Cfr:IP,CHcy:FP,chcy:HP,check:qP,checkmark:BP,Chi:WP,chi:UP,circ:VP,circeq:jP,circlearrowleft:GP,circlearrowright:KP,circledast:XP,circledcirc:YP,circleddash:ZP,CircleDot:JP,circledR:QP,circledS:eO,CircleMinus:tO,CirclePlus:nO,CircleTimes:rO,cir:iO,cirE:oO,cire:sO,cirfnint:lO,cirmid:aO,cirscir:cO,ClockwiseContourIntegral:uO,CloseCurlyDoubleQuote:fO,CloseCurlyQuote:dO,clubs:hO,clubsuit:pO,colon:gO,Colon:vO,Colone:mO,colone:yO,coloneq:bO,comma:wO,commat:xO,comp:SO,compfn:_O,complement:kO,complexes:TO,cong:CO,congdot:EO,Congruent:LO,conint:AO,Conint:MO,ContourIntegral:NO,copf:$O,Copf:PO,coprod:OO,Coproduct:RO,copy:DO,COPY:zO,copysr:IO,CounterClockwiseContourIntegral:FO,crarr:HO,cross:qO,Cross:BO,Cscr:WO,cscr:UO,csub:VO,csube:jO,csup:GO,csupe:KO,ctdot:XO,cudarrl:YO,cudarrr:ZO,cuepr:JO,cuesc:QO,cularr:eR,cularrp:tR,cupbrcap:nR,cupcap:rR,CupCap:iR,cup:oR,Cup:sR,cupcup:lR,cupdot:aR,cupor:cR,cups:uR,curarr:fR,curarrm:dR,curlyeqprec:hR,curlyeqsucc:pR,curlyvee:gR,curlywedge:vR,curren:mR,curvearrowleft:yR,curvearrowright:bR,cuvee:wR,cuwed:xR,cwconint:SR,cwint:_R,cylcty:kR,dagger:TR,Dagger:CR,daleth:ER,darr:LR,Darr:AR,dArr:MR,dash:NR,Dashv:$R,dashv:PR,dbkarow:OR,dblac:RR,Dcaron:DR,dcaron:zR,Dcy:IR,dcy:FR,ddagger:HR,ddarr:qR,DD:BR,dd:WR,DDotrahd:UR,ddotseq:VR,deg:jR,Del:GR,Delta:KR,delta:XR,demptyv:YR,dfisht:ZR,Dfr:JR,dfr:QR,dHar:eD,dharl:tD,dharr:nD,DiacriticalAcute:rD,DiacriticalDot:iD,DiacriticalDoubleAcute:oD,DiacriticalGrave:sD,DiacriticalTilde:lD,diam:aD,diamond:cD,Diamond:uD,diamondsuit:fD,diams:dD,die:hD,DifferentialD:pD,digamma:gD,disin:vD,div:mD,divide:yD,divideontimes:bD,divonx:wD,DJcy:xD,djcy:SD,dlcorn:_D,dlcrop:kD,dollar:TD,Dopf:CD,dopf:ED,Dot:LD,dot:AD,DotDot:MD,doteq:ND,doteqdot:$D,DotEqual:PD,dotminus:OD,dotplus:RD,dotsquare:DD,doublebarwedge:zD,DoubleContourIntegral:ID,DoubleDot:FD,DoubleDownArrow:HD,DoubleLeftArrow:qD,DoubleLeftRightArrow:BD,DoubleLeftTee:WD,DoubleLongLeftArrow:UD,DoubleLongLeftRightArrow:VD,DoubleLongRightArrow:jD,DoubleRightArrow:GD,DoubleRightTee:KD,DoubleUpArrow:XD,DoubleUpDownArrow:YD,DoubleVerticalBar:ZD,DownArrowBar:JD,downarrow:QD,DownArrow:ez,Downarrow:tz,DownArrowUpArrow:nz,DownBreve:rz,downdownarrows:iz,downharpoonleft:oz,downharpoonright:sz,DownLeftRightVector:lz,DownLeftTeeVector:az,DownLeftVectorBar:cz,DownLeftVector:uz,DownRightTeeVector:fz,DownRightVectorBar:dz,DownRightVector:hz,DownTeeArrow:pz,DownTee:gz,drbkarow:vz,drcorn:mz,drcrop:yz,Dscr:bz,dscr:wz,DScy:xz,dscy:Sz,dsol:_z,Dstrok:kz,dstrok:Tz,dtdot:Cz,dtri:Ez,dtrif:Lz,duarr:Az,duhar:Mz,dwangle:Nz,DZcy:$z,dzcy:Pz,dzigrarr:Oz,Eacute:Rz,eacute:Dz,easter:zz,Ecaron:Iz,ecaron:Fz,Ecirc:Hz,ecirc:qz,ecir:Bz,ecolon:Wz,Ecy:Uz,ecy:Vz,eDDot:jz,Edot:Gz,edot:Kz,eDot:Xz,ee:Yz,efDot:Zz,Efr:Jz,efr:Qz,eg:e2,Egrave:t2,egrave:n2,egs:r2,egsdot:i2,el:o2,Element:s2,elinters:l2,ell:a2,els:c2,elsdot:u2,Emacr:f2,emacr:d2,empty:h2,emptyset:p2,EmptySmallSquare:g2,emptyv:v2,EmptyVerySmallSquare:m2,emsp13:y2,emsp14:b2,emsp:w2,ENG:x2,eng:S2,ensp:_2,Eogon:k2,eogon:T2,Eopf:C2,eopf:E2,epar:L2,eparsl:A2,eplus:M2,epsi:N2,Epsilon:$2,epsilon:P2,epsiv:O2,eqcirc:R2,eqcolon:D2,eqsim:z2,eqslantgtr:I2,eqslantless:F2,Equal:H2,equals:q2,EqualTilde:B2,equest:W2,Equilibrium:U2,equiv:V2,equivDD:j2,eqvparsl:G2,erarr:K2,erDot:X2,escr:Y2,Escr:Z2,esdot:J2,Esim:Q2,esim:eI,Eta:tI,eta:nI,ETH:rI,eth:iI,Euml:oI,euml:sI,euro:lI,excl:aI,exist:cI,Exists:uI,expectation:fI,exponentiale:dI,ExponentialE:hI,fallingdotseq:pI,Fcy:gI,fcy:vI,female:mI,ffilig:yI,fflig:bI,ffllig:wI,Ffr:xI,ffr:SI,filig:_I,FilledSmallSquare:kI,FilledVerySmallSquare:TI,fjlig:CI,flat:EI,fllig:LI,fltns:AI,fnof:MI,Fopf:NI,fopf:$I,forall:PI,ForAll:OI,fork:RI,forkv:DI,Fouriertrf:zI,fpartint:II,frac12:FI,frac13:HI,frac14:qI,frac15:BI,frac16:WI,frac18:UI,frac23:VI,frac25:jI,frac34:GI,frac35:KI,frac38:XI,frac45:YI,frac56:ZI,frac58:JI,frac78:QI,frasl:eF,frown:tF,fscr:nF,Fscr:rF,gacute:iF,Gamma:oF,gamma:sF,Gammad:lF,gammad:aF,gap:cF,Gbreve:uF,gbreve:fF,Gcedil:dF,Gcirc:hF,gcirc:pF,Gcy:gF,gcy:vF,Gdot:mF,gdot:yF,ge:bF,gE:wF,gEl:xF,gel:SF,geq:_F,geqq:kF,geqslant:TF,gescc:CF,ges:EF,gesdot:LF,gesdoto:AF,gesdotol:MF,gesl:NF,gesles:$F,Gfr:PF,gfr:OF,gg:RF,Gg:DF,ggg:zF,gimel:IF,GJcy:FF,gjcy:HF,gla:qF,gl:BF,glE:WF,glj:UF,gnap:VF,gnapprox:jF,gne:GF,gnE:KF,gneq:XF,gneqq:YF,gnsim:ZF,Gopf:JF,gopf:QF,grave:eH,GreaterEqual:tH,GreaterEqualLess:nH,GreaterFullEqual:rH,GreaterGreater:iH,GreaterLess:oH,GreaterSlantEqual:sH,GreaterTilde:lH,Gscr:aH,gscr:cH,gsim:uH,gsime:fH,gsiml:dH,gtcc:hH,gtcir:pH,gt:gH,GT:vH,Gt:mH,gtdot:yH,gtlPar:bH,gtquest:wH,gtrapprox:xH,gtrarr:SH,gtrdot:_H,gtreqless:kH,gtreqqless:TH,gtrless:CH,gtrsim:EH,gvertneqq:LH,gvnE:AH,Hacek:MH,hairsp:NH,half:$H,hamilt:PH,HARDcy:OH,hardcy:RH,harrcir:DH,harr:zH,hArr:IH,harrw:FH,Hat:HH,hbar:qH,Hcirc:BH,hcirc:WH,hearts:UH,heartsuit:VH,hellip:jH,hercon:GH,hfr:KH,Hfr:XH,HilbertSpace:YH,hksearow:ZH,hkswarow:JH,hoarr:QH,homtht:eq,hookleftarrow:tq,hookrightarrow:nq,hopf:rq,Hopf:iq,horbar:oq,HorizontalLine:sq,hscr:lq,Hscr:aq,hslash:cq,Hstrok:uq,hstrok:fq,HumpDownHump:dq,HumpEqual:hq,hybull:pq,hyphen:gq,Iacute:vq,iacute:mq,ic:yq,Icirc:bq,icirc:wq,Icy:xq,icy:Sq,Idot:_q,IEcy:kq,iecy:Tq,iexcl:Cq,iff:Eq,ifr:Lq,Ifr:Aq,Igrave:Mq,igrave:Nq,ii:$q,iiiint:Pq,iiint:Oq,iinfin:Rq,iiota:Dq,IJlig:zq,ijlig:Iq,Imacr:Fq,imacr:Hq,image:qq,ImaginaryI:Bq,imagline:Wq,imagpart:Uq,imath:Vq,Im:jq,imof:Gq,imped:Kq,Implies:Xq,incare:Yq,in:"∈",infin:Zq,infintie:Jq,inodot:Qq,intcal:eB,int:tB,Int:nB,integers:rB,Integral:iB,intercal:oB,Intersection:sB,intlarhk:lB,intprod:aB,InvisibleComma:cB,InvisibleTimes:uB,IOcy:fB,iocy:dB,Iogon:hB,iogon:pB,Iopf:gB,iopf:vB,Iota:mB,iota:yB,iprod:bB,iquest:wB,iscr:xB,Iscr:SB,isin:_B,isindot:kB,isinE:TB,isins:CB,isinsv:EB,isinv:LB,it:AB,Itilde:MB,itilde:NB,Iukcy:$B,iukcy:PB,Iuml:OB,iuml:RB,Jcirc:DB,jcirc:zB,Jcy:IB,jcy:FB,Jfr:HB,jfr:qB,jmath:BB,Jopf:WB,jopf:UB,Jscr:VB,jscr:jB,Jsercy:GB,jsercy:KB,Jukcy:XB,jukcy:YB,Kappa:ZB,kappa:JB,kappav:QB,Kcedil:e3,kcedil:t3,Kcy:n3,kcy:r3,Kfr:i3,kfr:o3,kgreen:s3,KHcy:l3,khcy:a3,KJcy:c3,kjcy:u3,Kopf:f3,kopf:d3,Kscr:h3,kscr:p3,lAarr:g3,Lacute:v3,lacute:m3,laemptyv:y3,lagran:b3,Lambda:w3,lambda:x3,lang:S3,Lang:_3,langd:k3,langle:T3,lap:C3,Laplacetrf:E3,laquo:L3,larrb:A3,larrbfs:M3,larr:N3,Larr:$3,lArr:P3,larrfs:O3,larrhk:R3,larrlp:D3,larrpl:z3,larrsim:I3,larrtl:F3,latail:H3,lAtail:q3,lat:B3,late:W3,lates:U3,lbarr:V3,lBarr:j3,lbbrk:G3,lbrace:K3,lbrack:X3,lbrke:Y3,lbrksld:Z3,lbrkslu:J3,Lcaron:Q3,lcaron:e5,Lcedil:t5,lcedil:n5,lceil:r5,lcub:i5,Lcy:o5,lcy:s5,ldca:l5,ldquo:a5,ldquor:c5,ldrdhar:u5,ldrushar:f5,ldsh:d5,le:h5,lE:p5,LeftAngleBracket:g5,LeftArrowBar:v5,leftarrow:m5,LeftArrow:y5,Leftarrow:b5,LeftArrowRightArrow:w5,leftarrowtail:x5,LeftCeiling:S5,LeftDoubleBracket:_5,LeftDownTeeVector:k5,LeftDownVectorBar:T5,LeftDownVector:C5,LeftFloor:E5,leftharpoondown:L5,leftharpoonup:A5,leftleftarrows:M5,leftrightarrow:N5,LeftRightArrow:$5,Leftrightarrow:P5,leftrightarrows:O5,leftrightharpoons:R5,leftrightsquigarrow:D5,LeftRightVector:z5,LeftTeeArrow:I5,LeftTee:F5,LeftTeeVector:H5,leftthreetimes:q5,LeftTriangleBar:B5,LeftTriangle:W5,LeftTriangleEqual:U5,LeftUpDownVector:V5,LeftUpTeeVector:j5,LeftUpVectorBar:G5,LeftUpVector:K5,LeftVectorBar:X5,LeftVector:Y5,lEg:Z5,leg:J5,leq:Q5,leqq:e8,leqslant:t8,lescc:n8,les:r8,lesdot:i8,lesdoto:o8,lesdotor:s8,lesg:l8,lesges:a8,lessapprox:c8,lessdot:u8,lesseqgtr:f8,lesseqqgtr:d8,LessEqualGreater:h8,LessFullEqual:p8,LessGreater:g8,lessgtr:v8,LessLess:m8,lesssim:y8,LessSlantEqual:b8,LessTilde:w8,lfisht:x8,lfloor:S8,Lfr:_8,lfr:k8,lg:T8,lgE:C8,lHar:E8,lhard:L8,lharu:A8,lharul:M8,lhblk:N8,LJcy:$8,ljcy:P8,llarr:O8,ll:R8,Ll:D8,llcorner:z8,Lleftarrow:I8,llhard:F8,lltri:H8,Lmidot:q8,lmidot:B8,lmoustache:W8,lmoust:U8,lnap:V8,lnapprox:j8,lne:G8,lnE:K8,lneq:X8,lneqq:Y8,lnsim:Z8,loang:J8,loarr:Q8,lobrk:eW,longleftarrow:tW,LongLeftArrow:nW,Longleftarrow:rW,longleftrightarrow:iW,LongLeftRightArrow:oW,Longleftrightarrow:sW,longmapsto:lW,longrightarrow:aW,LongRightArrow:cW,Longrightarrow:uW,looparrowleft:fW,looparrowright:dW,lopar:hW,Lopf:pW,lopf:gW,loplus:vW,lotimes:mW,lowast:yW,lowbar:bW,LowerLeftArrow:wW,LowerRightArrow:xW,loz:SW,lozenge:_W,lozf:kW,lpar:TW,lparlt:CW,lrarr:EW,lrcorner:LW,lrhar:AW,lrhard:MW,lrm:NW,lrtri:$W,lsaquo:PW,lscr:OW,Lscr:RW,lsh:DW,Lsh:zW,lsim:IW,lsime:FW,lsimg:HW,lsqb:qW,lsquo:BW,lsquor:WW,Lstrok:UW,lstrok:VW,ltcc:jW,ltcir:GW,lt:KW,LT:XW,Lt:YW,ltdot:ZW,lthree:JW,ltimes:QW,ltlarr:e4,ltquest:t4,ltri:n4,ltrie:r4,ltrif:i4,ltrPar:o4,lurdshar:s4,luruhar:l4,lvertneqq:a4,lvnE:c4,macr:u4,male:f4,malt:d4,maltese:h4,Map:"⤅",map:p4,mapsto:g4,mapstodown:v4,mapstoleft:m4,mapstoup:y4,marker:b4,mcomma:w4,Mcy:x4,mcy:S4,mdash:_4,mDDot:k4,measuredangle:T4,MediumSpace:C4,Mellintrf:E4,Mfr:L4,mfr:A4,mho:M4,micro:N4,midast:$4,midcir:P4,mid:O4,middot:R4,minusb:D4,minus:z4,minusd:I4,minusdu:F4,MinusPlus:H4,mlcp:q4,mldr:B4,mnplus:W4,models:U4,Mopf:V4,mopf:j4,mp:G4,mscr:K4,Mscr:X4,mstpos:Y4,Mu:Z4,mu:J4,multimap:Q4,mumap:eU,nabla:tU,Nacute:nU,nacute:rU,nang:iU,nap:oU,napE:sU,napid:lU,napos:aU,napprox:cU,natural:uU,naturals:fU,natur:dU,nbsp:hU,nbump:pU,nbumpe:gU,ncap:vU,Ncaron:mU,ncaron:yU,Ncedil:bU,ncedil:wU,ncong:xU,ncongdot:SU,ncup:_U,Ncy:kU,ncy:TU,ndash:CU,nearhk:EU,nearr:LU,neArr:AU,nearrow:MU,ne:NU,nedot:$U,NegativeMediumSpace:PU,NegativeThickSpace:OU,NegativeThinSpace:RU,NegativeVeryThinSpace:DU,nequiv:zU,nesear:IU,nesim:FU,NestedGreaterGreater:HU,NestedLessLess:qU,NewLine:BU,nexist:WU,nexists:UU,Nfr:VU,nfr:jU,ngE:GU,nge:KU,ngeq:XU,ngeqq:YU,ngeqslant:ZU,nges:JU,nGg:QU,ngsim:e6,nGt:t6,ngt:n6,ngtr:r6,nGtv:i6,nharr:o6,nhArr:s6,nhpar:l6,ni:a6,nis:c6,nisd:u6,niv:f6,NJcy:d6,njcy:h6,nlarr:p6,nlArr:g6,nldr:v6,nlE:m6,nle:y6,nleftarrow:b6,nLeftarrow:w6,nleftrightarrow:x6,nLeftrightarrow:S6,nleq:_6,nleqq:k6,nleqslant:T6,nles:C6,nless:E6,nLl:L6,nlsim:A6,nLt:M6,nlt:N6,nltri:$6,nltrie:P6,nLtv:O6,nmid:R6,NoBreak:D6,NonBreakingSpace:z6,nopf:I6,Nopf:F6,Not:H6,not:q6,NotCongruent:B6,NotCupCap:W6,NotDoubleVerticalBar:U6,NotElement:V6,NotEqual:j6,NotEqualTilde:G6,NotExists:K6,NotGreater:X6,NotGreaterEqual:Y6,NotGreaterFullEqual:Z6,NotGreaterGreater:J6,NotGreaterLess:Q6,NotGreaterSlantEqual:eV,NotGreaterTilde:tV,NotHumpDownHump:nV,NotHumpEqual:rV,notin:iV,notindot:oV,notinE:sV,notinva:lV,notinvb:aV,notinvc:cV,NotLeftTriangleBar:uV,NotLeftTriangle:fV,NotLeftTriangleEqual:dV,NotLess:hV,NotLessEqual:pV,NotLessGreater:gV,NotLessLess:vV,NotLessSlantEqual:mV,NotLessTilde:yV,NotNestedGreaterGreater:bV,NotNestedLessLess:wV,notni:xV,notniva:SV,notnivb:_V,notnivc:kV,NotPrecedes:TV,NotPrecedesEqual:CV,NotPrecedesSlantEqual:EV,NotReverseElement:LV,NotRightTriangleBar:AV,NotRightTriangle:MV,NotRightTriangleEqual:NV,NotSquareSubset:$V,NotSquareSubsetEqual:PV,NotSquareSuperset:OV,NotSquareSupersetEqual:RV,NotSubset:DV,NotSubsetEqual:zV,NotSucceeds:IV,NotSucceedsEqual:FV,NotSucceedsSlantEqual:HV,NotSucceedsTilde:qV,NotSuperset:BV,NotSupersetEqual:WV,NotTilde:UV,NotTildeEqual:VV,NotTildeFullEqual:jV,NotTildeTilde:GV,NotVerticalBar:KV,nparallel:XV,npar:YV,nparsl:ZV,npart:JV,npolint:QV,npr:ej,nprcue:tj,nprec:nj,npreceq:rj,npre:ij,nrarrc:oj,nrarr:sj,nrArr:lj,nrarrw:aj,nrightarrow:cj,nRightarrow:uj,nrtri:fj,nrtrie:dj,nsc:hj,nsccue:pj,nsce:gj,Nscr:vj,nscr:mj,nshortmid:yj,nshortparallel:bj,nsim:wj,nsime:xj,nsimeq:Sj,nsmid:_j,nspar:kj,nsqsube:Tj,nsqsupe:Cj,nsub:Ej,nsubE:Lj,nsube:Aj,nsubset:Mj,nsubseteq:Nj,nsubseteqq:$j,nsucc:Pj,nsucceq:Oj,nsup:Rj,nsupE:Dj,nsupe:zj,nsupset:Ij,nsupseteq:Fj,nsupseteqq:Hj,ntgl:qj,Ntilde:Bj,ntilde:Wj,ntlg:Uj,ntriangleleft:Vj,ntrianglelefteq:jj,ntriangleright:Gj,ntrianglerighteq:Kj,Nu:Xj,nu:Yj,num:Zj,numero:Jj,numsp:Qj,nvap:eG,nvdash:tG,nvDash:nG,nVdash:rG,nVDash:iG,nvge:oG,nvgt:sG,nvHarr:lG,nvinfin:aG,nvlArr:cG,nvle:uG,nvlt:fG,nvltrie:dG,nvrArr:hG,nvrtrie:pG,nvsim:gG,nwarhk:vG,nwarr:mG,nwArr:yG,nwarrow:bG,nwnear:wG,Oacute:xG,oacute:SG,oast:_G,Ocirc:kG,ocirc:TG,ocir:CG,Ocy:EG,ocy:LG,odash:AG,Odblac:MG,odblac:NG,odiv:$G,odot:PG,odsold:OG,OElig:RG,oelig:DG,ofcir:zG,Ofr:IG,ofr:FG,ogon:HG,Ograve:qG,ograve:BG,ogt:WG,ohbar:UG,ohm:VG,oint:jG,olarr:GG,olcir:KG,olcross:XG,oline:YG,olt:ZG,Omacr:JG,omacr:QG,Omega:e9,omega:t9,Omicron:n9,omicron:r9,omid:i9,ominus:o9,Oopf:s9,oopf:l9,opar:a9,OpenCurlyDoubleQuote:c9,OpenCurlyQuote:u9,operp:f9,oplus:d9,orarr:h9,Or:p9,or:g9,ord:v9,order:m9,orderof:y9,ordf:b9,ordm:w9,origof:x9,oror:S9,orslope:_9,orv:k9,oS:T9,Oscr:C9,oscr:E9,Oslash:L9,oslash:A9,osol:M9,Otilde:N9,otilde:$9,otimesas:P9,Otimes:O9,otimes:R9,Ouml:D9,ouml:z9,ovbar:I9,OverBar:F9,OverBrace:H9,OverBracket:q9,OverParenthesis:B9,para:W9,parallel:U9,par:V9,parsim:j9,parsl:G9,part:K9,PartialD:X9,Pcy:Y9,pcy:Z9,percnt:J9,period:Q9,permil:e7,perp:t7,pertenk:n7,Pfr:r7,pfr:i7,Phi:o7,phi:s7,phiv:l7,phmmat:a7,phone:c7,Pi:u7,pi:f7,pitchfork:d7,piv:h7,planck:p7,planckh:g7,plankv:v7,plusacir:m7,plusb:y7,pluscir:b7,plus:w7,plusdo:x7,plusdu:S7,pluse:_7,PlusMinus:k7,plusmn:T7,plussim:C7,plustwo:E7,pm:L7,Poincareplane:A7,pointint:M7,popf:N7,Popf:$7,pound:P7,prap:O7,Pr:R7,pr:D7,prcue:z7,precapprox:I7,prec:F7,preccurlyeq:H7,Precedes:q7,PrecedesEqual:B7,PrecedesSlantEqual:W7,PrecedesTilde:U7,preceq:V7,precnapprox:j7,precneqq:G7,precnsim:K7,pre:X7,prE:Y7,precsim:Z7,prime:J7,Prime:Q7,primes:eK,prnap:tK,prnE:nK,prnsim:rK,prod:iK,Product:oK,profalar:sK,profline:lK,profsurf:aK,prop:cK,Proportional:uK,Proportion:fK,propto:dK,prsim:hK,prurel:pK,Pscr:gK,pscr:vK,Psi:mK,psi:yK,puncsp:bK,Qfr:wK,qfr:xK,qint:SK,qopf:_K,Qopf:kK,qprime:TK,Qscr:CK,qscr:EK,quaternions:LK,quatint:AK,quest:MK,questeq:NK,quot:$K,QUOT:PK,rAarr:OK,race:RK,Racute:DK,racute:zK,radic:IK,raemptyv:FK,rang:HK,Rang:qK,rangd:BK,range:WK,rangle:UK,raquo:VK,rarrap:jK,rarrb:GK,rarrbfs:KK,rarrc:XK,rarr:YK,Rarr:ZK,rArr:JK,rarrfs:QK,rarrhk:eX,rarrlp:tX,rarrpl:nX,rarrsim:rX,Rarrtl:iX,rarrtl:oX,rarrw:sX,ratail:lX,rAtail:aX,ratio:cX,rationals:uX,rbarr:fX,rBarr:dX,RBarr:hX,rbbrk:pX,rbrace:gX,rbrack:vX,rbrke:mX,rbrksld:yX,rbrkslu:bX,Rcaron:wX,rcaron:xX,Rcedil:SX,rcedil:_X,rceil:kX,rcub:TX,Rcy:CX,rcy:EX,rdca:LX,rdldhar:AX,rdquo:MX,rdquor:NX,rdsh:$X,real:PX,realine:OX,realpart:RX,reals:DX,Re:zX,rect:IX,reg:FX,REG:HX,ReverseElement:qX,ReverseEquilibrium:BX,ReverseUpEquilibrium:WX,rfisht:UX,rfloor:VX,rfr:jX,Rfr:GX,rHar:KX,rhard:XX,rharu:YX,rharul:ZX,Rho:JX,rho:QX,rhov:eY,RightAngleBracket:tY,RightArrowBar:nY,rightarrow:rY,RightArrow:iY,Rightarrow:oY,RightArrowLeftArrow:sY,rightarrowtail:lY,RightCeiling:aY,RightDoubleBracket:cY,RightDownTeeVector:uY,RightDownVectorBar:fY,RightDownVector:dY,RightFloor:hY,rightharpoondown:pY,rightharpoonup:gY,rightleftarrows:vY,rightleftharpoons:mY,rightrightarrows:yY,rightsquigarrow:bY,RightTeeArrow:wY,RightTee:xY,RightTeeVector:SY,rightthreetimes:_Y,RightTriangleBar:kY,RightTriangle:TY,RightTriangleEqual:CY,RightUpDownVector:EY,RightUpTeeVector:LY,RightUpVectorBar:AY,RightUpVector:MY,RightVectorBar:NY,RightVector:$Y,ring:PY,risingdotseq:OY,rlarr:RY,rlhar:DY,rlm:zY,rmoustache:IY,rmoust:FY,rnmid:HY,roang:qY,roarr:BY,robrk:WY,ropar:UY,ropf:VY,Ropf:jY,roplus:GY,rotimes:KY,RoundImplies:XY,rpar:YY,rpargt:ZY,rppolint:JY,rrarr:QY,Rrightarrow:eZ,rsaquo:tZ,rscr:nZ,Rscr:rZ,rsh:iZ,Rsh:oZ,rsqb:sZ,rsquo:lZ,rsquor:aZ,rthree:cZ,rtimes:uZ,rtri:fZ,rtrie:dZ,rtrif:hZ,rtriltri:pZ,RuleDelayed:gZ,ruluhar:vZ,rx:mZ,Sacute:yZ,sacute:bZ,sbquo:wZ,scap:xZ,Scaron:SZ,scaron:_Z,Sc:kZ,sc:TZ,sccue:CZ,sce:EZ,scE:LZ,Scedil:AZ,scedil:MZ,Scirc:NZ,scirc:$Z,scnap:PZ,scnE:OZ,scnsim:RZ,scpolint:DZ,scsim:zZ,Scy:IZ,scy:FZ,sdotb:HZ,sdot:qZ,sdote:BZ,searhk:WZ,searr:UZ,seArr:VZ,searrow:jZ,sect:GZ,semi:KZ,seswar:XZ,setminus:YZ,setmn:ZZ,sext:JZ,Sfr:QZ,sfr:eJ,sfrown:tJ,sharp:nJ,SHCHcy:rJ,shchcy:iJ,SHcy:oJ,shcy:sJ,ShortDownArrow:lJ,ShortLeftArrow:aJ,shortmid:cJ,shortparallel:uJ,ShortRightArrow:fJ,ShortUpArrow:dJ,shy:hJ,Sigma:pJ,sigma:gJ,sigmaf:vJ,sigmav:mJ,sim:yJ,simdot:bJ,sime:wJ,simeq:xJ,simg:SJ,simgE:_J,siml:kJ,simlE:TJ,simne:CJ,simplus:EJ,simrarr:LJ,slarr:AJ,SmallCircle:MJ,smallsetminus:NJ,smashp:$J,smeparsl:PJ,smid:OJ,smile:RJ,smt:DJ,smte:zJ,smtes:IJ,SOFTcy:FJ,softcy:HJ,solbar:qJ,solb:BJ,sol:WJ,Sopf:UJ,sopf:VJ,spades:jJ,spadesuit:GJ,spar:KJ,sqcap:XJ,sqcaps:YJ,sqcup:ZJ,sqcups:JJ,Sqrt:QJ,sqsub:eQ,sqsube:tQ,sqsubset:nQ,sqsubseteq:rQ,sqsup:iQ,sqsupe:oQ,sqsupset:sQ,sqsupseteq:lQ,square:aQ,Square:cQ,SquareIntersection:uQ,SquareSubset:fQ,SquareSubsetEqual:dQ,SquareSuperset:hQ,SquareSupersetEqual:pQ,SquareUnion:gQ,squarf:vQ,squ:mQ,squf:yQ,srarr:bQ,Sscr:wQ,sscr:xQ,ssetmn:SQ,ssmile:_Q,sstarf:kQ,Star:TQ,star:CQ,starf:EQ,straightepsilon:LQ,straightphi:AQ,strns:MQ,sub:NQ,Sub:$Q,subdot:PQ,subE:OQ,sube:RQ,subedot:DQ,submult:zQ,subnE:IQ,subne:FQ,subplus:HQ,subrarr:qQ,subset:BQ,Subset:WQ,subseteq:UQ,subseteqq:VQ,SubsetEqual:jQ,subsetneq:GQ,subsetneqq:KQ,subsim:XQ,subsub:YQ,subsup:ZQ,succapprox:JQ,succ:QQ,succcurlyeq:eee,Succeeds:tee,SucceedsEqual:nee,SucceedsSlantEqual:ree,SucceedsTilde:iee,succeq:oee,succnapprox:see,succneqq:lee,succnsim:aee,succsim:cee,SuchThat:uee,sum:fee,Sum:dee,sung:hee,sup1:pee,sup2:gee,sup3:vee,sup:mee,Sup:yee,supdot:bee,supdsub:wee,supE:xee,supe:See,supedot:_ee,Superset:kee,SupersetEqual:Tee,suphsol:Cee,suphsub:Eee,suplarr:Lee,supmult:Aee,supnE:Mee,supne:Nee,supplus:$ee,supset:Pee,Supset:Oee,supseteq:Ree,supseteqq:Dee,supsetneq:zee,supsetneqq:Iee,supsim:Fee,supsub:Hee,supsup:qee,swarhk:Bee,swarr:Wee,swArr:Uee,swarrow:Vee,swnwar:jee,szlig:Gee,Tab:Kee,target:Xee,Tau:Yee,tau:Zee,tbrk:Jee,Tcaron:Qee,tcaron:ete,Tcedil:tte,tcedil:nte,Tcy:rte,tcy:ite,tdot:ote,telrec:ste,Tfr:lte,tfr:ate,there4:cte,therefore:ute,Therefore:fte,Theta:dte,theta:hte,thetasym:pte,thetav:gte,thickapprox:vte,thicksim:mte,ThickSpace:yte,ThinSpace:bte,thinsp:wte,thkap:xte,thksim:Ste,THORN:_te,thorn:kte,tilde:Tte,Tilde:Cte,TildeEqual:Ete,TildeFullEqual:Lte,TildeTilde:Ate,timesbar:Mte,timesb:Nte,times:$te,timesd:Pte,tint:Ote,toea:Rte,topbot:Dte,topcir:zte,top:Ite,Topf:Fte,topf:Hte,topfork:qte,tosa:Bte,tprime:Wte,trade:Ute,TRADE:Vte,triangle:jte,triangledown:Gte,triangleleft:Kte,trianglelefteq:Xte,triangleq:Yte,triangleright:Zte,trianglerighteq:Jte,tridot:Qte,trie:ene,triminus:tne,TripleDot:nne,triplus:rne,trisb:ine,tritime:one,trpezium:sne,Tscr:lne,tscr:ane,TScy:cne,tscy:une,TSHcy:fne,tshcy:dne,Tstrok:hne,tstrok:pne,twixt:gne,twoheadleftarrow:vne,twoheadrightarrow:mne,Uacute:yne,uacute:bne,uarr:wne,Uarr:xne,uArr:Sne,Uarrocir:_ne,Ubrcy:kne,ubrcy:Tne,Ubreve:Cne,ubreve:Ene,Ucirc:Lne,ucirc:Ane,Ucy:Mne,ucy:Nne,udarr:$ne,Udblac:Pne,udblac:One,udhar:Rne,ufisht:Dne,Ufr:zne,ufr:Ine,Ugrave:Fne,ugrave:Hne,uHar:qne,uharl:Bne,uharr:Wne,uhblk:Une,ulcorn:Vne,ulcorner:jne,ulcrop:Gne,ultri:Kne,Umacr:Xne,umacr:Yne,uml:Zne,UnderBar:Jne,UnderBrace:Qne,UnderBracket:ere,UnderParenthesis:tre,Union:nre,UnionPlus:rre,Uogon:ire,uogon:ore,Uopf:sre,uopf:lre,UpArrowBar:are,uparrow:cre,UpArrow:ure,Uparrow:fre,UpArrowDownArrow:dre,updownarrow:hre,UpDownArrow:pre,Updownarrow:gre,UpEquilibrium:vre,upharpoonleft:mre,upharpoonright:yre,uplus:bre,UpperLeftArrow:wre,UpperRightArrow:xre,upsi:Sre,Upsi:_re,upsih:kre,Upsilon:Tre,upsilon:Cre,UpTeeArrow:Ere,UpTee:Lre,upuparrows:Are,urcorn:Mre,urcorner:Nre,urcrop:$re,Uring:Pre,uring:Ore,urtri:Rre,Uscr:Dre,uscr:zre,utdot:Ire,Utilde:Fre,utilde:Hre,utri:qre,utrif:Bre,uuarr:Wre,Uuml:Ure,uuml:Vre,uwangle:jre,vangrt:Gre,varepsilon:Kre,varkappa:Xre,varnothing:Yre,varphi:Zre,varpi:Jre,varpropto:Qre,varr:eie,vArr:tie,varrho:nie,varsigma:rie,varsubsetneq:iie,varsubsetneqq:oie,varsupsetneq:sie,varsupsetneqq:lie,vartheta:aie,vartriangleleft:cie,vartriangleright:uie,vBar:fie,Vbar:die,vBarv:hie,Vcy:pie,vcy:gie,vdash:vie,vDash:mie,Vdash:yie,VDash:bie,Vdashl:wie,veebar:xie,vee:Sie,Vee:_ie,veeeq:kie,vellip:Tie,verbar:Cie,Verbar:Eie,vert:Lie,Vert:Aie,VerticalBar:Mie,VerticalLine:Nie,VerticalSeparator:$ie,VerticalTilde:Pie,VeryThinSpace:Oie,Vfr:Rie,vfr:Die,vltri:zie,vnsub:Iie,vnsup:Fie,Vopf:Hie,vopf:qie,vprop:Bie,vrtri:Wie,Vscr:Uie,vscr:Vie,vsubnE:jie,vsubne:Gie,vsupnE:Kie,vsupne:Xie,Vvdash:Yie,vzigzag:Zie,Wcirc:Jie,wcirc:Qie,wedbar:eoe,wedge:toe,Wedge:noe,wedgeq:roe,weierp:ioe,Wfr:ooe,wfr:soe,Wopf:loe,wopf:aoe,wp:coe,wr:uoe,wreath:foe,Wscr:doe,wscr:hoe,xcap:poe,xcirc:goe,xcup:voe,xdtri:moe,Xfr:yoe,xfr:boe,xharr:woe,xhArr:xoe,Xi:Soe,xi:_oe,xlarr:koe,xlArr:Toe,xmap:Coe,xnis:Eoe,xodot:Loe,Xopf:Aoe,xopf:Moe,xoplus:Noe,xotime:$oe,xrarr:Poe,xrArr:Ooe,Xscr:Roe,xscr:Doe,xsqcup:zoe,xuplus:Ioe,xutri:Foe,xvee:Hoe,xwedge:qoe,Yacute:Boe,yacute:Woe,YAcy:Uoe,yacy:Voe,Ycirc:joe,ycirc:Goe,Ycy:Koe,ycy:Xoe,yen:Yoe,Yfr:Zoe,yfr:Joe,YIcy:Qoe,yicy:ese,Yopf:tse,yopf:nse,Yscr:rse,yscr:ise,YUcy:ose,yucy:sse,yuml:lse,Yuml:ase,Zacute:cse,zacute:use,Zcaron:fse,zcaron:dse,Zcy:hse,zcy:pse,Zdot:gse,zdot:vse,zeetrf:mse,ZeroWidthSpace:yse,Zeta:bse,zeta:wse,zfr:xse,Zfr:Sse,ZHcy:_se,zhcy:kse,zigrarr:Tse,zopf:Cse,Zopf:Ese,Zscr:Lse,zscr:Ase,zwj:Mse,zwnj: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="Û",wae="û",xae="Ù",Sae="ù",_ae="¨",kae="Ü",Tae="ü",Cae="Ý",Eae="ý",Lae="¥",Aae="ÿ",Mae={Aacute:$se,aacute:Pse,Acirc:Ose,acirc:Rse,acute:Dse,AElig:zse,aelig:Ise,Agrave:Fse,agrave:Hse,amp:qse,AMP:Bse,Aring:Wse,aring:Use,Atilde:Vse,atilde:jse,Auml:Gse,auml:Kse,brvbar:Xse,Ccedil:Yse,ccedil:Zse,cedil:Jse,cent:Qse,copy:ele,COPY:tle,curren:nle,deg:rle,divide:ile,Eacute:ole,eacute:sle,Ecirc:lle,ecirc:ale,Egrave:cle,egrave:ule,ETH:fle,eth:dle,Euml:hle,euml:ple,frac12:gle,frac14:vle,frac34:mle,gt:yle,GT:ble,Iacute:wle,iacute:xle,Icirc:Sle,icirc:_le,iexcl:kle,Igrave:Tle,igrave:Cle,iquest:Ele,Iuml:Lle,iuml:Ale,laquo:Mle,lt:Nle,LT:$le,macr:Ple,micro:Ole,middot:Rle,nbsp:Dle,not:zle,Ntilde:Ile,ntilde:Fle,Oacute:Hle,oacute:qle,Ocirc:Ble,ocirc:Wle,Ograve:Ule,ograve:Vle,ordf:jle,ordm:Gle,Oslash:Kle,oslash:Xle,Otilde:Yle,otilde:Zle,Ouml:Jle,ouml:Qle,para:eae,plusmn:tae,pound:nae,quot:rae,QUOT:iae,raquo:oae,reg:sae,REG:lae,sect:aae,shy:cae,sup1:uae,sup2:fae,sup3:dae,szlig:hae,THORN:pae,thorn:gae,times:vae,Uacute:mae,uacute:yae,Ucirc:bae,ucirc:wae,Ugrave:xae,ugrave:Sae,uml:_ae,Uuml:kae,uuml:Tae,Yacute:Cae,yacute:Eae,yen:Lae,yuml:Aae},Nae="&",$ae="'",Pae=">",Oae="<",Rae='"',ww={amp:Nae,apos:$ae,gt:Pae,lt:Oae,quot:Rae};var Vh={};const Dae={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 zae=Ro&&Ro.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vh,"__esModule",{value:!0});var $m=zae(Dae),Iae=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 Fae(e){return e>=55296&&e<=57343||e>1114111?"�":(e in $m.default&&(e=$m.default[e]),Iae(e))}Vh.default=Fae;var qu=Ro&&Ro.__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=qu(bw),Hae=qu(Mae),qae=qu(ww),Pm=qu(Vh),Bae=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;pi.decodeXML=xw(qae.default);pi.decodeHTMLStrict=xw(jd.default);function xw(e){var t=Sw(e);return function(r){return String(r).replace(Bae,t)}}var Om=function(e,t){return e<t?1:-1};pi.decodeHTML=function(){for(var e=Object.keys(Hae.default).sort(Om),t=Object.keys(jd.default).sort(Om),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=Sw(jd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Sw(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Pm.default(parseInt(r.substr(3),16)):Pm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Xn={},_w=Ro&&Ro.__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 Wae=_w(ww),kw=Cw(Wae.default),Tw=Ew(kw);Xn.encodeXML=Mw(kw);var Uae=_w(bw),jh=Cw(Uae.default),Vae=Ew(jh);Xn.encodeHTML=Gae(jh,Vae);Xn.encodeNonAsciiHTML=Mw(jh);function Cw(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Ew(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 Lw=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,jae=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Bu(e){return"&#x"+(e.length>1?jae(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Gae(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(Lw,Bu)}}var Aw=new RegExp(Tw.source+"|"+Lw.source,"g");function Kae(e){return e.replace(Aw,Bu)}Xn.escape=Kae;function Xae(e){return e.replace(Tw,Bu)}Xn.escapeUTF8=Xae;function Mw(e){return function(t){return t.replace(Aw,function(r){return e[r]||Bu(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}})})(yw);function Yae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zae(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 Jae(e,t,r){return Zae(e.prototype,t),e}function Nw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Qae(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 Qae(e,t){if(e){if(typeof e=="string")return Rm(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 Rm(e,t)}}function Rm(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 ece=yw,Dm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:tce()};function tce(){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 mc(0,5).forEach(function(t){mc(0,5).forEach(function(r){mc(0,5).forEach(function(o){return nce(t,r,o,e)})})}),mc(0,23).forEach(function(t){var r=t+232,o=$w(t*10+8);e[r]="#"+o+o+o}),e}function nce(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]=rce([c,f,d])}function $w(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function rce(e){var t=[],r=Nw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push($w(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function zm(e,t,r,o){var s;return t==="text"?s=lce(r,o):t==="display"?s=oce(e,r,o):t==="xterm256Foreground"?s=$c(e,o.colors[r]):t==="xterm256Background"?s=Pc(e,o.colors[r]):t==="rgb"&&(s=ice(e,r)),s}function ice(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 Nc(e,(r===38?"color:#":"background-color:#")+s)}function oce(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&Pw(e)},1:function(){return ji(e,"b")},3:function(){return ji(e,"i")},4:function(){return ji(e,"u")},8:function(){return Nc(e,"display:none")},9:function(){return ji(e,"strike")},22:function(){return Nc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Fm(e,"i")},24:function(){return Fm(e,"u")},39:function(){return $c(e,r.fg)},49:function(){return Pc(e,r.bg)},53:function(){return Nc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=ji(e,"blink"):29<t&&t<38?s=$c(e,r.colors[t-30]):39<t&&t<48?s=Pc(e,r.colors[t-40]):89<t&&t<98?s=$c(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Pc(e,r.colors[8+(t-100)])),s}function Pw(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function mc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function sce(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Im(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 lce(e,t){return t.escapeXML?ece.encodeXML(e):e}function ji(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Nc(e,t){return ji(e,"span",t)}function $c(e,t){return ji(e,"span","color:"+t)}function Pc(e,t){return ji(e,"span","background-color:"+t)}function Fm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function ace(e,t,r){var o=!1,s=3;function c(){return""}function f(O,W){return r("xterm256Foreground",W),""}function d(O,W){return r("xterm256Background",W),""}function h(O){return t.newline?r("display",-1):r("text",O),""}function p(O,W){o=!0,W.trim().length===0&&(W="0"),W=W.trimRight(";").split(";");var U=Nw(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(O){return r("text",O),""}function m(O){return r("rgb",O),""}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(O,W){W>s&&o||(o=!1,e=e.replace(O.pattern,O.sub))}var M=[],A=e,C=A.length;e:for(;C>0;){for(var E=0,N=0,P=b.length;N<P;E=++N){var L=b[E];if(w(L,E),e.length!==C){C=e.length;continue e}}if(e.length===C)break;M.push(0),C=e.length}return M}function cce(e,t,r){return t!=="text"&&(e=e.filter(sce(Im(r))),e.push({token:t,data:r,category:Im(r)})),e}var uce=function(){function e(t){Yae(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Dm.colors,t.colors)),this.options=Object.assign({},Dm,t),this.stack=[],this.stickyStack=[]}return Jae(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=zm(s,d.token,d.data,c);h&&f.push(h)}),ace(r.join(""),c,function(d,h){var p=zm(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=cce(o.stickyStack,d,h))}),s.length&&f.push(Pw(s)),f.join("")}}]),e}(),fce=uce;const dce=mw(fce);function hce(e,t){return t&&e.endsWith(t)}async function Ow(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Gh(e){return new dce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function pce(e){return e===null||typeof e!="function"&&typeof e!="object"}function Rw(e){let t=e;if(pce(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=dA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Yn=Uint8Array,ys=Uint16Array,gce=Int32Array,Dw=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]),zw=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]),vce=new Yn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Iw=function(e,t){for(var r=new ys(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new gce(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}},Fw=Iw(Dw,2),Hw=Fw.b,mce=Fw.r;Hw[28]=258,mce[258]=28;var yce=Iw(zw,0),bce=yce.b,Gd=new ys(32768);for(var Tt=0;Tt<32768;++Tt){var Di=(Tt&43690)>>1|(Tt&21845)<<1;Di=(Di&52428)>>2|(Di&13107)<<2,Di=(Di&61680)>>4|(Di&3855)<<4,Gd[Tt]=((Di&65280)>>8|(Di&255)<<8)>>1}var Fl=function(e,t,r){for(var o=e.length,s=0,c=new ys(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ys(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ys(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 ys(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 Tt=0;Tt<144;++Tt)Sa[Tt]=8;for(var Tt=144;Tt<256;++Tt)Sa[Tt]=9;for(var Tt=256;Tt<280;++Tt)Sa[Tt]=7;for(var Tt=280;Tt<288;++Tt)Sa[Tt]=8;var qw=new Yn(32);for(var Tt=0;Tt<32;++Tt)qw[Tt]=5;var wce=Fl(Sa,9,1),xce=Fl(qw,5,1),sd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},vr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},ld=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Sce=function(e){return(e+7)/8|0},Bw=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))},_ce=["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"],zn=function(e,t,r){var o=new Error(t||_ce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,zn),!r)throw o;return o},Kh=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(Ae){var z=r.length;if(Ae>z){var q=new Yn(Math.max(z*2,Ae));q.set(r),r=q}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,M=t.d,A=t.m,C=t.n,E=s*8;do{if(!w){v=vr(e,m,1);var N=vr(e,m+1,3);if(m+=3,N)if(N==1)w=wce,M=xce,A=9,C=5;else if(N==2){var W=vr(e,m,31)+257,U=vr(e,m+10,15)+4,re=W+vr(e,m+5,31)+1;m+=14;for(var Q=new Yn(re),G=new Yn(19),te=0;te<U;++te)G[vce[te]]=vr(e,m+te*3,7);m+=U*3;for(var J=sd(G),H=(1<<J)-1,F=Fl(G,J,1),te=0;te<re;){var k=F[vr(e,m,H)];m+=k&15;var P=k>>4;if(P<16)Q[te++]=P;else{var B=0,V=0;for(P==16?(V=3+vr(e,m,3),m+=2,B=Q[te-1]):P==17?(V=3+vr(e,m,7),m+=3):P==18&&(V=11+vr(e,m,127),m+=7);V--;)Q[te++]=B}}var ie=Q.subarray(0,W),ye=Q.subarray(W);A=sd(ie),C=sd(ye),w=Fl(ie,A,1),M=Fl(ye,C,1)}else zn(1);else{var P=Sce(m)+4,L=e[P-4]|e[P-3]<<8,O=P+L;if(O>s){h&&zn(0);break}d&&p(b+L),r.set(e.subarray(P,O),b),t.b=b+=L,t.p=m=O*8,t.f=v;continue}if(m>E){h&&zn(0);break}}d&&p(b+131072);for(var Ne=(1<<A)-1,We=(1<<C)-1,Ve=m;;Ve=m){var B=w[ld(e,m)&Ne],nt=B>>4;if(m+=B&15,m>E){h&&zn(0);break}if(B||zn(2),nt<256)r[b++]=nt;else if(nt==256){Ve=m,w=null;break}else{var et=nt-254;if(nt>264){var te=nt-257,Xe=Dw[te];et=vr(e,m,(1<<Xe)-1)+Hw[te],m+=Xe}var Le=M[ld(e,m)&We],Y=Le>>4;Le||zn(3),m+=Le&15;var ye=bce[Y];if(Y>3){var Xe=zw[Y];ye+=ld(e,m)&(1<<Xe)-1,m+=Xe}if(m>E){h&&zn(0);break}d&&p(b+131072);var ae=b+et;if(b<ye){var he=c-ye,$e=Math.min(ye,ae);for(he+b<0&&zn(3);b<$e;++b)r[b]=o[he+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=w,t.p=Ve,t.b=b,t.f=v,w&&(v=1,t.m=A,t.d=M,t.n=C)}while(!v);return b!=r.length&&f?Bw(r,0,b):r.subarray(0,b)},kce=new Yn(0),Tce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&zn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Cce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Ece=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&zn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&zn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Lce(e,t){return Kh(e,{i:2},t,t)}function Ace(e,t){var r=Tce(e);return r+8>e.length&&zn(6,"invalid gzip data"),Kh(e.subarray(r,-8),{i:2},new Yn(Cce(e)),t)}function Mce(e,t){return Kh(e.subarray(Ece(e,t),-4),{i:2},t,t)}function Nce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Ace(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Lce(e,t):Mce(e,t)}var Kd=typeof TextDecoder<"u"&&new TextDecoder,$ce=0;try{Kd.decode(kce,{stream:!0}),$ce=1}catch{}var Pce=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:Bw(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 Oce(e,t){var r;if(Kd)return Kd.decode(e);var o=Pce(e),s=o.s,r=o.r;return r.length&&zn(8),s}const ad=()=>{},_n=()=>Promise.resolve();function Rce(){const e=Zn({state:new Hb,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:_n,onDone:ad,onTaskUpdate:ad,writeFile:_n,rerun:_n,updateSnapshot:_n,resolveSnapshotPath:_n,snapshotSaved:_n,onAfterSuiteRun:_n,onCancel:_n,getCountOfFailedTests:()=>0,sendLog:_n,resolveSnapshotRawPath:_n,readSnapshotFile:_n,saveSnapshotFile:_n,readTestFile:async d=>t.sources[d],removeSnapshotFile:_n,onUnhandledError:ad,saveTestFile:_n,getProvidedContext:()=>({}),getTestFiles:_n};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=Oce(Nce(m));t=Hd(b)}else t=Hd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const wt=function(){return Ur?Rce():sE(yL,{reactive:(t,r)=>r==="state"?Zn(t):Gr(t),handlers:{onTaskUpdate(t){Ce.resumeRun(t),su.value="running"},onFinished(t,r){Ce.endRun(),su.value="idle",Wi.value=(r||[]).map(Rw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Wu=Gr({}),Co=Be("CONNECTING"),Yt=ke(()=>{const e=eo.value;return e?sr(e):void 0}),Ww=ke(()=>Fh(Yt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function sr(e){const t=wt.state.idMap.get(e);return t||void 0}const Dce=ke(()=>Co.value==="OPEN"),cd=ke(()=>Co.value==="CONNECTING");ke(()=>Co.value==="CLOSED");function zce(){return Xh(wt.state.getFiles())}function Uw(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)Uw(r)}function Ice(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,Fh(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,An(o)&&(o.collectDuration=void 0))})}function Xh(e){return Ice(e),Ce.startRun(),wt.rpc.rerun(e.map(t=>t.filepath),!0)}function Fce(e){return Uw(e),Ce.startRun(),wt.rpc.rerunTask(e.id)}const Do=window.__vitest_browser_runner__;window.__vitest_ui_api__=gL;Dt(()=>wt.ws,e=>{Co.value=Ur?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Co.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=Ob(d,f,c);return h.mode="skip",h})),Ce.loadFiles(t),wt.state.collectFiles(t),Ce.startRun(),Wi.value=(o||[]).map(Rw),Wu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Co.value==="CONNECTING"&&(Co.value="CLOSED")},1e3)})},{immediate:!0});const Hce={"text-2xl":""},qce={"text-lg":"",op50:""},Bce=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>I(Dce)?Ke("",!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))},[Z("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(I(cd)?"animate-pulse":"")},[Z("div",{text:"5xl",class:st(I(cd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Z("div",Hce,He(I(cd)?"Connecting...":"Disconnected"),1),Z("div",qce," Check your terminal or start a new server with `"+He(I(Do)?`vitest --browser=${I(Do).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Wce=["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}]])},[gn(t.$slots,"default",{},()=>[Z("span",{class:st(t.icon),ma:"",block:""},null,2)])],10,Wce))}}),Uce={h:"full",flex:"~ col"},Vce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},jce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Gce={class:"pointer-events-none","text-sm":""},Kce={key:0},Xce={id:"tester-container",relative:""},Yce=["data-scale"],Hm=20,Zce=100,Jce=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 zr.value[0]===v[0]&&zr.value[1]===v[1]}async function o(p){zr.value=t[p]}const{width:s,height:c}=Bh(),f=ke(()=>{const m=s.value*(pn.details.size/100)*(pn.details.browser/100)-Hm,b=c.value-Zce;return{width:m,height:b}}),d=ke(()=>{const[p,v]=zr.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=ke(()=>{const p=f.value.width,v=zr.value[0];return`${Math.trunc((p+Hm-v)/2)}px`});return(p,v)=>{const m=wi,b=Kr("tooltip");return oe(),me("div",Uce,[Z("div",Vce,[vt(Pe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>I(pL)())},null,512),[[Gi,I(pn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=Z("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=Z("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),vt(Pe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>I(dL)())},null,512),[[Gi,I(pn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),vt(Pe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>I(hL)())},null,512),[[Gi,I(pn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Z("div",jce,[vt(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}]]),vt(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}]]),vt(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}]]),Z("span",Gce,[pt(He(I(zr)[0])+"x"+He(I(zr)[1])+"px ",1),I(d)<1?(oe(),me("span",Kce,"("+He((I(d)*100).toFixed(0))+"%)",1)):Ke("",!0)])]),Z("div",Xce,[Z("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":I(d),style:Jt({"--viewport-width":`${I(zr)[0]}px`,"--viewport-height":`${I(zr)[1]}px`,"--tester-transform":`scale(${I(d)})`,"--tester-margin-left":I(h)})}," Select a test to run ",12,Yce)])])}}}),Qce=Xr(Jce,[["__scopeId","data-v-65565204"]]),Vw=ut({__name:"Modal",props:Vc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Mh(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),me("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Z("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Z("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[I(r)]]),style:Jt(t.value?{}:{transform:I(o)})},[gn(c.$slots,"default")],6)],2))}}),eue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},tue={"p-4":"",relative:"",border:"base b"},nue={op50:"","font-mono":"","text-sm":""},rue={op50:"","font-mono":"","text-sm":""},iue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},oue=["src","alt"],sue={key:1},lue=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Gb("Escape",()=>{r("close")}),(o,s)=>{const c=wi;return oe(),me("div",eue,[Z("div",tue,[s[1]||(s[1]=Z("p",null,"Screenshot error",-1)),Z("p",nue,He(o.file),1),Z("p",rue,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"))})]),Z("div",iue,[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,oue)):(oe(),me("div",sue," Something was wrong, the image cannot be resolved. "))])])}}}),aue=Xr(lue,[["__scopeId","data-v-93900314"]]);function Hl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _a=AE(),cue=pE(_a),uue={class:"scrolls scrolls-rounded task-error"},fue=["onClickPassive"],due=["innerHTML"],hue=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=ke(()=>Gh(_a.value)),s=ke(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=ke(()=>t.error.diff?o.value.toHtml(Hl(t.error.diff)):void 0);return(f,d)=>{const h=Kr("tooltip");return oe(),me("div",uue,[Z("pre",null,[Z("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"},[Z("pre",null," - "+He(r(p.file))+":"+He(p.line)+":"+He(p.column),1),I(hce)(p.file,f.filename)?vt((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(Ow)(p.file,p.line,p.column)},null,40,fue)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ke("",!0)]))),128)),I(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:I(c)},null,8,due)):Ke("",!0)])}}}),pue=Xr(hue,[["__scopeId","data-v-9dd6eaea"]]),gue={"h-full":"",class:"scrolls"},vue=["id"],mue={flex:"~ gap-2 items-center"},yue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},bue=["innerHTML"],wue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},xue=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(A=>r(A,w+1))]}function o(b,w){var C,E,N;let M="";(C=w.message)!=null&&C.includes("\x1B")&&(M=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Hl(w.message))}`);const A=(E=w.stackStr)==null?void 0:E.includes("\x1B");return(A||(N=w.stack)!=null&&N.includes("\x1B"))&&(M.length>0?M+=b.toHtml(Hl(A?w.stackStr:w.stack)):M=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Hl(A?w.stackStr:w.stack))}`),M.length>0?M:null}function s(b,w){const M=Gh(b);return w.map(A=>{var N;const C=A.result;if(!C)return A;const E=(N=C.errors)==null?void 0:N.map(P=>o(M,P)).filter(P=>P!=null).join("<br><br>");return E!=null&&E.length&&(C.htmlError=E),A})}const c=ke(()=>{var C,E;const b=t.file,w=((C=b==null?void 0:b.tasks)==null?void 0:C.flatMap(N=>r(N,0)))??[],M=b==null?void 0:b.result;if((E=M==null?void 0:M.errors)==null?void 0:E[0]){const N={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:M};w.unshift(N)}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=Be(!1),h=Be(Date.now()),p=Be(),v=ke(()=>{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 Dt(()=>[cw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&cn(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const M=wi,A=pue,C=aue,E=Vw,N=Kr("tooltip");return oe(),me("div",gue,[I(c).length?(oe(!0),me(ct,{key:0},gi(I(c),P=>{var L,O,W,U;return oe(),me("div",{id:P.id,key:P.id},[Z("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`})},[Z("div",mue,[Z("span",null,He(P.name),1),I(Do)&&((O=P.meta)!=null&&O.failScreenshotPath)?(oe(),me(ct,{key:0},[vt(Pe(M,{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}]]),vt(Pe(M,{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)):Ke("",!0)]),(W=P.result)!=null&&W.htmlError?(oe(),me("div",yue,[Z("pre",{innerHTML:P.result.htmlError},null,8,bue)])):(U=P.result)!=null&&U.errors?(oe(!0),me(ct,{key:1},gi(P.result.errors,(re,Q)=>{var G;return oe(),tt(A,{key:Q,error:re,filename:(G=b.file)==null?void 0:G.name,root:I(Wu).root},null,8,["error","filename","root"])}),128)):Ke("",!0)],4)],8,vue)}),128)):(oe(),me("div",wue," All tests passed in this file ")),I(Do)?(oe(),tt(E,{key:2,modelValue:I(d),"onUpdate:modelValue":w[1]||(w[1]=P=>Et(d)?d.value=P:null),direction:"right"},{default:rt(()=>[I(p)?(oe(),tt(Uy,{key:0},{default:rt(()=>[Pe(C,{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})):Ke("",!0)]),_:1},8,["modelValue"])):Ke("",!0)])}}}),Sue=Xr(xue,[["__scopeId","data-v-363718dc"]]),_ue={border:"b base","p-4":""},kue=["innerHTML"],Tue=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",_ue,[Z("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),Z("pre",{"data-type":"html",innerHTML:r.content},null,8,kue)]))}}),Cue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Eue={key:1,p6:""},Lue=ut({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Ww.value;if(o){const s=Gh(_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&&wt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?UC(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Tue;return(f=I(t))!=null&&f.length?(oe(),me("div",Cue,[(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",Eue,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),Z("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var jw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Ro,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),A=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),E=/PhantomJS/.test(r),N=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),L=N||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),O=N||/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=O&&(m||M&&(re==null||re<12.11)),G=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var J=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 H(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function F(n,i){return H(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 We(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 Ve=function(n){n.select()};N?Ve=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ve=function(n){try{n.select()}catch{}});function nt(n){return n.display.wrapper.ownerDocument}function et(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Le(n){return nt(n).defaultView}function Y(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 he(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=Y(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 Ae(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var z=50,q={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},le={origin:"*mouse"},fe={origin:"+move"};function ce(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Se=[""];function xe(n){for(;Se.length<=n;)Se.push(de(Se)+" ");return Se[n]}function de(n){return n[n.length-1]}function pe(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function qe(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ee(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Ee.prototype=n,a=new Ee),i&&ae(i,a),a}var Ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Qe(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ue.test(n))}function it(n,i){return i?i.source.indexOf("\\w")>-1&&Qe(n)?!0:i.test(n):Qe(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Lt=/[\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 ot(n){return n.charCodeAt(0)>=768&&Lt.test(n)}function Wt(n,i,a){for(;(a<0?i>0:i<n.length)&&ot(n.charAt(i));)i+=a;return i}function zt(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 $n(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 Mr=null;function Ot(n,i,a){var l;Mr=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:Mr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Mr=u)}return l??Mr}var Pn=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 ue=0,ve=D;ue<K;++ue){var be=j[ue];be=="m"?j[ue]=ve:ve=be}for(var Te=0,we=D;Te<K;++Te){var Me=j[Te];Me=="1"&&we=="r"?j[Te]="n":g.test(Me)&&(we=Me,Me=="r"&&(j[Te]="R"))}for(var Ie=1,Re=j[0];Ie<K-1;++Ie){var Ye=j[Ie];Ye=="+"&&Re=="1"&&j[Ie+1]=="1"?j[Ie]="1":Ye==","&&Re==j[Ie+1]&&(Re=="1"||Re=="n")&&(j[Ie]=Re),Re=Ye}for(var xt=0;xt<K;++xt){var Kt=j[xt];if(Kt==",")j[xt]="N";else if(Kt=="%"){var Ct=void 0;for(Ct=xt+1;Ct<K&&j[Ct]=="%";++Ct);for(var Dn=xt&&j[xt-1]=="!"||Ct<K&&j[Ct]=="1"?"1":"N",wn=xt;wn<Ct;++wn)j[wn]=Dn;xt=Ct-1}}for(var It=0,xn=D;It<K;++It){var en=j[It];xn=="L"&&en=="1"?j[It]="L":g.test(en)&&(xn=en)}for(var Bt=0;Bt<K;++Bt)if(u.test(j[Bt])){var Ft=void 0;for(Ft=Bt+1;Ft<K&&u.test(j[Ft]);++Ft);for(var $t=(Bt?j[Bt-1]:D)=="L",Sn=(Ft<K?j[Ft]:D)=="L",us=$t==Sn?$t?"L":"R":D,Pi=Bt;Pi<Ft;++Pi)j[Pi]=us;Bt=Ft-1}for(var sn=[],Rr,Xt=0;Xt<K;)if(y.test(j[Xt])){var Wf=Xt;for(++Xt;Xt<K&&y.test(j[Xt]);++Xt);sn.push(new S(0,Wf,Xt))}else{var ii=Xt,vo=sn.length,mo=$=="rtl"?1:0;for(++Xt;Xt<K&&j[Xt]!="L";++Xt);for(var fn=ii;fn<Xt;)if(x.test(j[fn])){ii<fn&&(sn.splice(vo,0,new S(1,ii,fn)),vo+=mo);var fs=fn;for(++fn;fn<Xt&&x.test(j[fn]);++fn);sn.splice(vo,0,new S(2,fs,fn)),vo+=mo,ii=fn}else++fn;ii<Xt&&sn.splice(vo,0,new S(1,ii,Xt))}return $=="ltr"&&(sn[0].level==1&&(Rr=_.match(/^\s+/))&&(sn[0].from=Rr[0].length,sn.unshift(new S(0,0,Rr[0].length))),de(sn).level==1&&(Rr=_.match(/\s+$/))&&(de(sn).to-=Rr[0].length,sn.push(new S(0,K-Rr[0].length,K)))),$=="rtl"?sn.reverse():sn}}();function Je(n,i){var a=n.order;return a==null&&(a=n.order=Pn(n.text,i)),a}var Ea=[],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]||Ea).concat(a)}};function Zr(n,i){return n._handlers&&n._handlers[i]||Ea}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=Ae(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function At(n,i){var a=Zr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Mt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),At(n,a||i.type,n,i),vn(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)Ae(a,i[l])==-1&&a.push(i[l])}function On(n,i){return Zr(n,i).length>0}function lr(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 Fo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function vn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function xi(n){rn(n),Fo(n)}function Ws(n){return n.target||n.srcElement}function ar(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),O&&n.ctrlKey&&i==1&&(i=3),i}var Xu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Ho;function La(n){if(Ho==null){var i=k("span","");F(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Ho=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Ho?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 H(n),!a||a.left==a.right?!1:Us=l.right-a.right<3}var tr=`
|
|
22
|
+
|
|
23
|
+
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
24
|
+
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},_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},Aa=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),cr=null;function Yu(n){if(cr!=null)return cr;var i=F(n,k("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return cr=Math.abs(a.left-l.left)>1}var qo={},ur={};function fr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),qo[n]=i}function so(n,i){ur[n]=i}function Bo(n){if(typeof n=="string"&&ur.hasOwnProperty(n))n=ur[n];else if(n&&typeof n.name=="string"&&ur.hasOwnProperty(n.name)){var i=ur[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Bo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Bo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Wo(n,i){i=Bo(i);var a=qo[i.name];if(!a)return Wo(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 Uo(n,i){var a=ki.hasOwnProperty(n)?ki[n]:ki[n]={};ae(i,a)}function Nr(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 Vo(n,i,a){return n.startState?n.startState(i,a):!0}var Nt=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};Nt.prototype.eol=function(){return this.pos>=this.string.length},Nt.prototype.sol=function(){return this.pos==this.lineStart},Nt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Nt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Nt.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},Nt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Nt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Nt.prototype.skipToEnd=function(){this.pos=this.string.length},Nt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Nt.prototype.backUp=function(n){this.pos-=n},Nt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Nt.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Nt.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)}},Nt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Nt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Nt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Nt.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 Jr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function 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=Ae(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 ge(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 _e(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function Ut(n){return ee(n.line,n.ch)}function mn(n,i){return _e(n,i)<0?i:n}function jo(n,i){return _e(n,i)<0?n:i}function fp(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):Y1(i,Oe(n,i.line).text.length)}function Y1(n,i){var a=n.ch;return a==null||a>i?ee(n.line,i):a<0?ee(n.line,0):n}function dp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var Ma=function(n,i){this.state=n,this.lookAhead=i},$r=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};$r.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},$r.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}},$r.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$r.fromSaved=function(n,i,a){return i instanceof Ma?new $r(n,Nr(n.mode,i.state),a,i.lookAhead):new $r(n,Nr(n.mode,i),a)},$r.prototype.save=function(n){var i=n!==!1?Nr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ma(i,this.maxLookAhead):i};function hp(n,i,a,l){var u=[n.state.modeGen],g={};bp(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,bp(n,i.text,$.mode,a,function(j,ne){for(var ue=D;K<j;){var ve=u[D];ve>j&&u.splice(D,1,j,u[D+1],ve),D+=2,K=Math.min(j,ve)}if(ne)if($.opaque)u.splice(ue,D-ue,j,"overlay "+ne),D=ue+2;else for(;ue<D;ue+=2){var be=u[ue+1];u[ue+1]=(be?be+" ":"")+"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 pp(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&&Nr(n.doc.mode,l.state),g=hp(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 $r(l,!0,i);var g=Z1(n,i,a),y=g>l.first&&Oe(l,g-1).stateAfter,x=y?$r.fromSaved(l,y,g):new $r(l,Vo(l.mode),g);return l.iter(g,i,function(S){Zu(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 Zu(n,i,a,l){var u=n.doc.mode,g=new Nt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&gp(u,a.state);!g.eol();)Ju(u,g,a.state),g.start=g.pos}function gp(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 Ju(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 vp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function mp(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 Nt(x.text,n.options.tabSize,S),$;for(l&&($=[]);(l||_.pos<i.ch)&&!_.eol();)_.start=_.pos,y=Ju(g,_,S.state),l&&$.push(new vp(_,y,Nr(u.mode,S.state)));return l?$:new vp(_,y,S.state)}function yp(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 bp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,_=null,$=new Nt(i,n.options.tabSize,l),D,K=n.options.addModeClass&&[null];for(i==""&&yp(gp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(x=!1,y&&Zu(n,i,l,$.pos),$.pos=i.length,D=null):D=yp(Ju(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 Z1(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 Ma?_.lookAhead:0)<=g.modeFrontier))return x;var $=he(S.text,null,n.options.tabSize);(u==null||l>$)&&(u=x-1,l=$)}return u}function J1(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 Ma)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var wp=!1,Qr=!1;function Q1(){wp=!0}function ex(){Qr=!0}function Na(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 tx(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function nx(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 rx(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 Na(y,g.from,S?null:g.to))}}return l}function ix(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 Na(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Qu(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=_e(i.from,i.to)==0,x=rx(a,u,y),S=ix(l,g,y),_=i.text.length==1,$=de(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 ue=S[ne];if(ue.to!=null&&(ue.to+=$),ue.from==null){var ve=Ks(x,ue.marker);ve||(ue.from=$,_&&(x||(x=[])).push(ue))}else ue.from+=$,_&&(x||(x=[])).push(ue)}x&&(x=xp(x)),S&&S!=x&&(S=xp(S));var be=[x];if(!_){var Te=i.text.length-2,we;if(Te>0&&x)for(var Me=0;Me<x.length;++Me)x[Me].to==null&&(we||(we=[])).push(new Na(x[Me].marker,null,null));for(var Ie=0;Ie<Te;++Ie)be.push(we);be.push(S)}return be}function xp(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 ox(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 ue=j.markedSpans[ne].marker;ue.readOnly&&(!l||Ae(l,ue)==-1)&&(l||(l=[])).push(ue)}}),!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(!(_e(_.to,x.from)<0||_e(_.from,x.to)>0)){var $=[S,1],D=_e(_.from,x.from),K=_e(_.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 Sp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function _p(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function $a(n){return n.inclusiveLeft?-1:0}function Pa(n){return n.inclusiveRight?1:0}function ef(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=_e(l.from,u.from)||$a(n)-$a(i);if(g)return-g;var y=_e(l.to,u.to)||Pa(n)-Pa(i);return y||i.id-n.id}function kp(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||ef(l,u.marker)<0)&&(l=u.marker);return l}function Tp(n){return kp(n,!0)}function Oa(n){return kp(n,!1)}function sx(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||ef(l,g.marker)<0)&&(l=g.marker)}return l}function Cp(n,i,a,l,u){var g=Oe(n,i),y=Qr&&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),$=_e(_.from,a)||$a(S.marker)-$a(u),D=_e(_.to,l)||Pa(S.marker)-Pa(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?_e(_.to,a)>=0:_e(_.to,a)>0)||$>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?_e(_.from,l)<=0:_e(_.from,l)<0)))return!0}}}function dr(n){for(var i;i=Tp(n);)n=i.find(-1,!0).line;return n}function lx(n){for(var i;i=Oa(n);)n=i.find(1,!0).line;return n}function ax(n){for(var i,a;i=Oa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function tf(n,i){var a=Oe(n,i),l=dr(a);return a==l?i:T(l)}function Ep(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!Ti(n,a))return i;for(;l=Oa(a);)a=l.find(1,!0).line;return T(a)+1}function Ti(n,i){var a=Qr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&nf(n,i,l))return!0}}}function nf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return nf(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)&&nf(n,i,u))return!0}function ei(n){n=dr(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 Ra(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Tp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Oa(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 rf(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Ra(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ra(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Go=function(n,i,a){this.text=n,_p(this,i),this.height=a?a(this):1};Go.prototype.lineNo=function(){return T(this)},lr(Go);function cx(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Sp(n),_p(n,a);var u=l?l(n):1;u!=n.height&&Un(n,u)}function ux(n){n.parent=null,Sp(n)}var fx={},dx={};function Lp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?dx:fx;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ap(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=px,Si(n.display.measure)&&(y=Je(g,n.doc.direction))&&(l.addToken=vx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&T(g);mx(g,l,pp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=We(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=We(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(La(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 At(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=We(l.pre.className,l.textClass||"")),l}function hx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function px(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?gx(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 ue=void 0;if(K[0]==" "){var ve=n.cm.options.tabSize,be=ve-n.col%ve;ue=$.appendChild(k("span",xe(be),"cm-tab")),ue.setAttribute("role","presentation"),ue.setAttribute("cm-text"," "),n.col+=be}else K[0]=="\r"||K[0]==`
|
|
25
|
+
`?(ue=$.appendChild(k("span",K[0]=="\r"?"␍":"","cm-invalidchar")),ue.setAttribute("cm-text",K[0]),n.col+=1):(ue=n.cm.options.specialCharPlaceholder(K[0]),ue.setAttribute("cm-text",K[0]),h&&p<9?$.appendChild(k("span",[ue])):$.appendChild(ue),n.col+=1);n.map.push(n.pos,n.pos+1,ue),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||_||g||y){var Te=a||"";l&&(Te+=l),u&&(Te+=u);var we=k("span",[$],Te,g);if(y)for(var Me in y)y.hasOwnProperty(Me)&&Me!="style"&&Me!="class"&&we.setAttribute(Me,y[Me]);return n.content.appendChild(we)}n.content.appendChild($)}}function gx(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 vx(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 Mp(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 mx(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]),Lp(a[y+1],i.cm.options));return}for(var x=u.length,S=0,_=1,$="",D,K,j=0,ne,ue,ve,be,Te;;){if(j==S){ne=ue=ve=K="",Te=null,be=null,j=1/0;for(var we=[],Me=void 0,Ie=0;Ie<l.length;++Ie){var Re=l[Ie],Ye=Re.marker;if(Ye.type=="bookmark"&&Re.from==S&&Ye.widgetNode)we.push(Ye);else if(Re.from<=S&&(Re.to==null||Re.to>S||Ye.collapsed&&Re.to==S&&Re.from==S)){if(Re.to!=null&&Re.to!=S&&j>Re.to&&(j=Re.to,ue=""),Ye.className&&(ne+=" "+Ye.className),Ye.css&&(K=(K?K+";":"")+Ye.css),Ye.startStyle&&Re.from==S&&(ve+=" "+Ye.startStyle),Ye.endStyle&&Re.to==j&&(Me||(Me=[])).push(Ye.endStyle,Re.to),Ye.title&&((Te||(Te={})).title=Ye.title),Ye.attributes)for(var xt in Ye.attributes)(Te||(Te={}))[xt]=Ye.attributes[xt];Ye.collapsed&&(!be||ef(be.marker,Ye)<0)&&(be=Re)}else Re.from>S&&j>Re.from&&(j=Re.from)}if(Me)for(var Kt=0;Kt<Me.length;Kt+=2)Me[Kt+1]==j&&(ue+=" "+Me[Kt]);if(!be||be.from==S)for(var Ct=0;Ct<we.length;++Ct)Mp(i,0,we[Ct]);if(be&&(be.from||0)==S){if(Mp(i,(be.to==null?x+1:be.to)-S,be.marker,be.from==null),be.to==null)return;be.to==S&&(be=!1)}}if(S>=x)break;for(var Dn=Math.min(x,j);;){if($){var wn=S+$.length;if(!be){var It=wn>Dn?$.slice(0,Dn-S):$;i.addToken(i,It,D?D+ne:ne,ve,S+It.length==j?ue:"",K,Te)}if(wn>=Dn){$=$.slice(Dn-S),S=Dn;break}S=wn,ve=""}$=u.slice(g,g=a[_++]),D=Lp(a[_++],i.cm.options)}}}function Np(n,i,a){this.line=i,this.rest=ax(i),this.size=this.rest?T(de(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ti(n,i)}function Da(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Np(n.doc,Oe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Ko=null;function yx(n){Ko?Ko.ops.push(n):n.ownsGroup=Ko={ops:[n],delayedCallbacks:[]}}function bx(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 wx(n,i){var a=n.ownsGroup;if(a)try{bx(a)}finally{Ko=null,i(a)}}var Xs=null;function Vt(n,i){var a=Zr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Ko?u=Ko.delayedCallbacks:Xs?u=Xs:(u=Xs=[],setTimeout(xx,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function xx(){var n=Xs;Xs=null;for(var i=0;i<n.length;++i)n[i]()}function $p(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?_x(n,i):g=="gutter"?Op(n,i,a,l):g=="class"?of(n,i):g=="widget"&&kx(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 Sx(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 Pp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ap(n,i)}function _x(n,i){var a=i.text.className,l=Pp(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,of(n,i)):a&&(i.text.className=a)}function of(n,i){Sx(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 Op(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",ge(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 kx(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);Rp(n,i,a)}function Tx(n,i,a,l){var u=Pp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),of(n,i),Op(n,i,a,l),Rp(n,i,l),i.node}function Rp(n,i,a){if(Dp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Dp(n,i.rest[l],i,a,!1)}function Dp(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"),Cx(S,_,a,l),n.display.input.setUneditable(_),u&&S.above?g.insertBefore(_,a.gutter||a.text):g.appendChild(_),Vt(S,"redraw")}}function Cx(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 ti(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 za(n){return n.lineSpace.offsetTop}function sf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function zp(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 Pr(n){return z-n.display.nativeBarWidth}function lo(n){return n.display.scroller.clientWidth-Pr(n)-n.display.barWidth}function lf(n){return n.display.scroller.clientHeight-Pr(n)-n.display.barHeight}function Ex(n,i,a){var l=n.options.lineWrapping,u=l&&lo(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 Ip(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Lx(n,i){i=dr(i);var a=T(i),l=n.display.externalMeasured=new Np(n.doc,i,a);l.lineN=a;var u=l.built=Ap(n,l);return l.text=u.pre,F(n.display.lineMeasure,u.pre),l}function Fp(n,i,a,l){return Or(n,Xo(n,i),a,l)}function af(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[uo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Xo(n,i){var a=T(i),l=af(n,a);l&&!l.text?l=null:l&&l.changes&&($p(n,l,a,hf(n)),n.curOp.forceUpdate=!0),l||(l=Lx(n,i));var u=Ip(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Or(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||(Ex(n,i.view,i.rect),i.hasHeights=!0),y=Mx(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 Hp={left:0,right:0,top:0,bottom:0};function qp(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 Ax(n,i){var a=Hp;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 Mx(n,i,a,l){var u=qp(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&&ot(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&ot(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?_=g.parentNode.getBoundingClientRect():_=Ax(V(g,y,x).getClientRects(),l),_.left||_.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(_=Nx(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+Zo(n.display),top:K.top,bottom:K.bottom}:_=Hp}for(var j=_.top-i.rect.top,ne=_.bottom-i.rect.top,ue=(j+ne)/2,ve=i.view.measure.heights,be=0;be<ve.length-1&&!(ue<ve[be]);be++);var Te=be?ve[be-1]:0,we=ve[be],Me={left:(S=="right"?_.right:_.left)-i.rect.left,right:(S=="left"?_.left:_.right)-i.rect.left,top:Te,bottom:we};return!_.left&&!_.right&&(Me.bogus=!0),n.options.singleCursorHeightPerLine||(Me.rtop=j,Me.rbottom=ne),Me}function Nx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Yu(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 Bp(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 Wp(n){n.display.externalMeasure=null,H(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Bp(n.display.view[i])}function Js(n){Wp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Up(n){return b&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Vp(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function cf(n){var i=dr(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 Ia(n,i,a,l,u){if(!u){var g=cf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ei(i);if(l=="local"?y+=za(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Vp(nt(n)));var S=x.left+(l=="window"?0:Up(nt(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function jp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Up(nt(n)),u-=Vp(nt(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Fa(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),Ia(n,l,Fp(n,l,i.ch,u),a)}function hr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Xo(n,l));function y(ne,ue){var ve=Or(n,u,ne,ue?"right":"left",g);return ue?ve.left=ve.right:ve.right=ve.left,Ia(n,l,ve,a)}var x=Je(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,ue,ve){var be=x[ue],Te=be.level==1;return y(ve?ne-1:ne,Te!=ve)}var D=Ot(x,S,_),K=Mr,j=$(S,D,_=="before");return K!=null&&(j.other=$(S,K,_!="before")),j}function Gp(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Zo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=ei(l)+za(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function uf(n,i,a,l,u){var g=ee(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function ff(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return uf(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return uf(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=$x(n,y,u,i,a),S=sx(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 Kp(n,i,a,l){l-=cf(i);var u=i.text.length,g=zt(function(y){return Or(n,a,y-1).bottom<=l},u,0);return u=zt(function(y){return Or(n,a,y).top>l},g,u),{begin:g,end:u}}function Xp(n,i,a,l){a||(a=Xo(n,i));var u=Ia(n,i,Or(n,a,l),"line").top;return Kp(n,i,a,u)}function df(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function $x(n,i,a,l,u){u-=ei(i);var g=Xo(n,i),y=cf(i),x=0,S=i.text.length,_=!0,$=Je(i,n.doc.direction);if($){var D=(n.options.lineWrapping?Ox:Px)(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=zt(function(Ie){var Re=Or(n,g,Ie);return Re.top+=y,Re.bottom+=y,df(Re,l,u,!1)?(Re.top<=u&&Re.left<=l&&(K=Ie,j=Re),!0):!1},x,S),ue,ve,be=!1;if(j){var Te=l-j.left<j.right-l,we=Te==_;ne=K+(we?0:1),ve=we?"after":"before",ue=Te?j.left:j.right}else{!_&&(ne==S||ne==x)&&ne++,ve=ne==0?"after":ne==i.text.length?"before":Or(n,g,ne-(_?1:0)).bottom+y<=u==_?"after":"before";var Me=hr(n,ee(a,ne,ve),"line",i,g);ue=Me.left,be=u<Me.top?-1:u>=Me.bottom?1:0}return ne=Wt(i.text,ne,1),uf(a,ne,ve,be,l-ue)}function Px(n,i,a,l,u,g,y){var x=zt(function(D){var K=u[D],j=K.level!=1;return df(hr(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,$=hr(n,ee(a,_?S.from:S.to,_?"after":"before"),"line",i,l);df($,g,y,!0)&&$.top>y&&(S=u[x-1])}return S}function Ox(n,i,a,l,u,g,y){var x=Kp(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,ue=Or(n,l,ne?Math.min(_,j.to)-1:Math.max(S,j.from)).right,ve=ue<g?g-ue+1e9:ue-g;(!$||D>ve)&&($=j,D=ve)}}return $||($=u[u.length-1]),$.from<S&&($={from:S,to:$.to,level:$.level}),$.to>_&&($={from:$.from,to:_,level:$.level}),$}var ao;function Yo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ao==null){ao=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ao.appendChild(document.createTextNode("x")),ao.appendChild(k("br"));ao.appendChild(document.createTextNode("x"))}F(n.measure,ao);var a=ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),H(n.measure),a||1}function Zo(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 hf(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:pf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function pf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Yp(n){var i=Yo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Zo(n.display)-3);return function(u){if(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 gf(n){var i=n.doc,a=Yp(n);i.iter(function(l){var u=a(l);u!=l.height&&Un(l,u)})}function co(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=ff(n,g,y),_;if(l&&S.xRel>0&&(_=Oe(n.doc,S.line).text).length==S.ch){var $=he(_,_.length,n.options.tabSize)-_.length;S=ee(S.line,Math.max(0,Math.round((g-zp(n.display).left)/Zo(n.display))-$))}return S}function uo(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 yn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Qr&&tf(n.doc,i)<u.viewTo&&Ei(n);else if(a<=u.viewFrom)Qr&&Ep(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=Ha(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=Ha(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ei(n)}else{var x=Ha(n,i,i,-1),S=Ha(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(Da(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[uo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);Ae(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 Ha(n,i,a,l){var u=uo(n,i),g,y=n.display.view;if(!Qr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,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(;tf(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 Rx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Da(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Da(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(uo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Da(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,uo(n,a)))),l.viewTo=a}function Zp(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 Jp(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);$&&vf(n,$,u)}else(_||n.options.showCursorWhenSelecting)&&vf(n,S.head,u);_||Dx(n,S,g)}}return l}function vf(n,i,a){var l=hr(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=Fa(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 qa(n,i){return n.top-i.top||n.left-i.left}function Dx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=zp(n.display),x=y.left,S=Math.max(l.sizerWidth,lo(n)-l.sizer.offsetLeft)-y.right,_=u.direction=="ltr";function $(we,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: "+we+`px;
|
|
26
|
+
top: `+Me+"px; width: "+(Ie??S-we)+`px;
|
|
27
|
+
height: `+(Re-Me)+"px"))}function D(we,Me,Ie){var Re=Oe(u,we),Ye=Re.text.length,xt,Kt;function Ct(It,xn){return Fa(n,ee(we,It),"div",Re,xn)}function Dn(It,xn,en){var Bt=Xp(n,Re,null,It),Ft=xn=="ltr"==(en=="after")?"left":"right",$t=en=="after"?Bt.begin:Bt.end-(/\s/.test(Re.text.charAt(Bt.end-1))?2:1);return Ct($t,Ft)[Ft]}var wn=Je(Re,u.direction);return $n(wn,Me||0,Ie??Ye,function(It,xn,en,Bt){var Ft=en=="ltr",$t=Ct(It,Ft?"left":"right"),Sn=Ct(xn-1,Ft?"right":"left"),us=Me==null&&It==0,Pi=Ie==null&&xn==Ye,sn=Bt==0,Rr=!wn||Bt==wn.length-1;if(Sn.top-$t.top<=3){var Xt=(_?us:Pi)&&sn,Wf=(_?Pi:us)&&Rr,ii=Xt?x:(Ft?$t:Sn).left,vo=Wf?S:(Ft?Sn:$t).right;$(ii,$t.top,vo-ii,$t.bottom)}else{var mo,fn,fs,Uf;Ft?(mo=_&&us&&sn?x:$t.left,fn=_?S:Dn(It,en,"before"),fs=_?x:Dn(xn,en,"after"),Uf=_&&Pi&&Rr?S:Sn.right):(mo=_?Dn(It,en,"before"):x,fn=!_&&us&&sn?S:$t.right,fs=!_&&Pi&&Rr?x:Sn.left,Uf=_?Dn(xn,en,"after"):S),$(mo,$t.top,fn-mo,$t.bottom),$t.bottom<Sn.top&&$(x,$t.bottom,null,Sn.top),$(fs,Sn.top,Uf-fs,Sn.bottom)}(!xt||qa($t,xt)<0)&&(xt=$t),qa(Sn,xt)<0&&(xt=Sn),(!Kt||qa($t,Kt)<0)&&(Kt=$t),qa(Sn,Kt)<0&&(Kt=Sn)}),{start:xt,end:Kt}}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),ue=Oe(u,j.line),ve=dr(ne)==dr(ue),be=D(K.line,K.ch,ve?ne.text.length+1:null).end,Te=D(j.line,ve?0:null,j.ch).start;ve&&(be.top<Te.top-2?($(be.right,be.top,null,be.bottom),$(x,Te.top,Te.left,Te.bottom)):$(be.right,be.top,Te.left-be.right,be.bottom)),be.bottom<Te.top&&$(x,be.bottom,null,Te.top)}a.appendChild(g)}function mf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Jo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||bf(n))}function yf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Jo(n))},100)}function bf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(At(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()),mf(n))}function Jo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(At(n,"blur",n,i),n.state.focused=!1,J(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ba(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,_),eg(x.line),x.rest))for(var ne=0;ne<x.rest.length;ne++)eg(x.rest[ne]);if($>n.display.sizerWidth){var ue=Math.ceil($/Zo(n.display));ue>n.display.maxLineLength&&(n.display.maxLineLength=ue,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function eg(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 Wa(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-za(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,ei(Oe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(g=R(i,ei(Oe(i,S))-n.wrapper.clientHeight),y=S)}return{from:g,to:Math.max(y,g+1)}}function zx(n,i){if(!Mt(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&&!E){var y=k("div","",null,`position: absolute;
|
|
28
|
+
top: `+(i.top-a.viewOffset-za(n.display))+`px;
|
|
29
|
+
height: `+(i.bottom-i.top+Pr(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 Ix(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=hr(n,i),S=!a||a==i?x:hr(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 _=wf(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&&(fo(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(y=!0)),!y)break}return u}function Fx(n,i){var a=wf(n,i);a.scrollTop!=null&&tl(n,a.scrollTop),a.scrollLeft!=null&&fo(n,a.scrollLeft)}function wf(n,i){var a=n.display,l=Yo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=lf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+sf(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=lo(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 xf(n,i){i!=null&&(Ua(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Qo(n){Ua(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)&&Ua(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Hx(n,i){Ua(n),n.curOp.scrollToPos=i}function Ua(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Gp(n,i.from),l=Gp(n,i.to);tg(n,a,l,i.margin)}}function tg(n,i,a,l){var u=wf(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||_f(n,{top:i}),ng(n,i,!0),s&&_f(n),il(n,100))}function ng(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 fo(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,lg(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+sf(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+Pr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ho=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")};ho.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}},ho.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ho.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ho.prototype.zeroWidthHack=function(){var n=O&&!C?"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},ho.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)},ho.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var rl=function(){};rl.prototype.update=function(){return{bottom:0,right:0}},rl.prototype.setScrollLeft=function(){},rl.prototype.setScrollTop=function(){},rl.prototype.clear=function(){};function es(n,i){i||(i=nl(n));var a=n.display.barWidth,l=n.display.barHeight;rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ba(n),rg(n,nl(n)),a=n.display.barWidth,l=n.display.barHeight}function rg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var ig={native:ho,null:rl};function og(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&J(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ig[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"?fo(n,i):tl(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var qx=0;function po(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:++qx,markArrays:null},yx(n.curOp)}function go(n){var i=n.curOp;i&&wx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Bx(a)})}function Bx(n){for(var i=n.ops,a=0;a<i.length;a++)Wx(i[a]);for(var l=0;l<i.length;l++)Ux(i[l]);for(var u=0;u<i.length;u++)Vx(i[u]);for(var g=0;g<i.length;g++)jx(i[g]);for(var y=0;y<i.length;y++)Gx(i[y])}function Wx(n){var i=n.cm,a=i.display;Xx(i),n.updateMaxLine&&rf(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 Va(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Ux(n){n.updatedDisplay=n.mustUpdate&&Sf(n.cm,n.update)}function Vx(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ba(i),n.barMeasure=nl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Fp(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+Pr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-lo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function jx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&fo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(et(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&es(i,n.barMeasure),n.updatedDisplay&&Tf(i,n.barMeasure),n.selectionChanged&&mf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Qp(n.cm)}function Gx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&sg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ng(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&fo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Ix(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);zx(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||At(g[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&At(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&At(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Rn(n,i){if(n.curOp)return i();po(n);try{return i()}finally{go(n)}}function jt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);po(n);try{return i.apply(n,arguments)}finally{go(n)}}}function un(n){return function(){if(this.curOp)return n.apply(this,arguments);po(this);try{return n.apply(this,arguments)}finally{go(this)}}}function Gt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);po(i);try{return n.apply(this,arguments)}finally{go(i)}}}function il(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,Y(Kx,n))}function Kx(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?Nr(i.mode,l.state):null,S=hp(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&&Zu(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&&Rn(n,function(){for(var g=0;g<u.length;g++)Ci(n,u[g],"text")})}}var Va=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Wa(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=lo(n),this.force=a,this.dims=hf(n),this.events=[]};Va.prototype.signal=function(n,i){On(n,i)&&this.events.push(arguments)},Va.prototype.finish=function(){for(var n=0;n<this.events.length;n++)At.apply(null,this.events[n])};function Xx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Pr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Pr(n)+"px",i.scrollbarsClipped=!0)}function Yx(n){if(n.hasFocus())return null;var i=ye(et(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Le(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 Zx(n){if(!(!n||!n.activeElt||n.activeElt==ye(Xe(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 Sf(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&&Zp(n)==0)return!1;ag(n)&&(Ei(n),i.dims=hf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Qr&&(g=tf(n.doc,g),y=Ep(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Rx(n,g,y),a.viewOffset=ei(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Zp(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=Yx(n);return S>4&&(a.lineDiv.style.display="none"),Jx(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Zx(_),H(a.cursorDiv),H(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 sg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==lo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+sf(n.display)-lf(n),a.top)}),i.visible=Wa(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Wa(n.display,n.doc,a));if(!Sf(n,i))break;Ba(n);var u=nl(n);Qs(n),es(n,u),Tf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function _f(n,i){var a=new Va(n,i);if(Sf(n,a)){Ba(n),sg(n,a);var l=nl(n);Qs(n),es(n,l),Tf(n,l),a.finish()}}function Jx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ne){var ue=ne.nextSibling;return v&&O&&n.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ue}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=Tx(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&&(Ae(D.changes,"gutter")>-1&&(j=!1),$p(n,D,_,a)),j&&(H(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(ge(n.options,_)))),y=D.node.nextSibling}_+=D.size}for(;y;)y=x(y)}function kf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Vt(n,"gutterChanged",n)}function Tf(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+Pr(n)+"px"}function lg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=pf(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 ag(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=ge(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",kf(n.display),!0}return!1}function Cf(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 cg(n){var i=n.gutters,a=n.gutterSpecs;H(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",kf(n)}function ol(n){cg(n.display),yn(n),lg(n)}function Qx(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: "+z+"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=Cf(l.gutters,l.lineNumbers),cg(u),a.init(u)}var ja=0,ni=null;h?ni=-.53:s?ni=15:b?ni=-.7:A&&(ni=-1/3);function ug(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 eS(n){var i=ug(n);return i.x*=ni,i.y*=ni,i}function fg(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=ug(i),l=a.x,u=a.y,g=ni;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,_=x.scrollHeight>x.clientHeight;if(l&&S||u&&_){if(u&&O&&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)),fo(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,ue=ne+y.wrapper.clientHeight;j<0?ne=Math.max(0,ne+j-50):ue=Math.min(n.doc.height,ue+j+50),_f(n,{top:ne,bottom:ue})}ja<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 ve=x.scrollLeft-y.wheelStartX,be=x.scrollTop-y.wheelStartY,Te=be&&y.wheelDY&&be/y.wheelDY||ve&&y.wheelDX&&ve/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Te&&(ni=(ni*ja+Te)/(ja+1),++ja)}},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(Ut(this.ranges[i].anchor),Ut(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(_e(i,l.from())>=0&&_e(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return jo(this.anchor,this.head)},dt.prototype.to=function(){return mn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(K,j){return _e(K.from(),j.from())}),a=Ae(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],S=_e(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var _=jo(x.from(),y.from()),$=mn(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,de(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function dg(n,i){if(_e(n,i.from)<0)return n;if(_e(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 Ef(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new dt(dg(u.anchor,i),dg(u.head,i)))}return pr(n.cm,a,n.sel.primIndex)}function hg(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 tS(n,i,a){for(var l=[],u=ee(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],S=hg(x.from,u,g),_=hg(Ai(x),u,g);if(u=x.to,g=_,a=="around"){var $=n.sel.ranges[y],D=_e($.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 Lf(n){n.doc.mode=Wo(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&&yn(n)}function pg(n,i){return i.from.ch==0&&i.to.ch==0&&de(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Af(n,i,a,l){function u(Te){return a?a[Te]:null}function g(Te,we,Me){cx(Te,we,Me,l),Vt(Te,"change",Te,i)}function y(Te,we){for(var Me=[],Ie=Te;Ie<we;++Ie)Me.push(new Go(_[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=de(_),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(pg(n,i)){var ue=y(0,_.length-1);g(D,D.text,j),ne&&n.remove(x.line,ne),ue.length&&n.insert(x.line,ue)}else if($==D)if(_.length==1)g($,$.text.slice(0,x.ch)+K+$.text.slice(S.ch),j);else{var ve=y(1,_.length-1);ve.push(new Go(K+$.text.slice(S.ch),j,l)),g($,$.text.slice(0,x.ch)+_[0],u(0)),n.insert(x.line+1,ve)}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 be=y(1,_.length-1);ne>1&&n.remove(x.line+1,ne-1),n.insert(x.line+1,be)}Vt(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 gg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,gf(n),Lf(n),vg(n),n.options.direction=i.direction,n.options.lineWrapping||rf(n),n.options.mode=i.modeOption,yn(n)}function vg(n){(n.doc.direction=="rtl"?Ne:J)(n.display.lineDiv,"CodeMirror-rtl")}function nS(n){Rn(n,function(){vg(n),yn(n)})}function Ga(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 Mf(n,i){var a={from:Ut(i.from),to:Ai(i),text:Jr(n,i.from,i.to)};return bg(n,a,i.from.line,i.to.line+1),Mi(n,function(l){return bg(l,a,i.from.line,i.to.line+1)},!0),a}function mg(n){for(;n.length;){var i=de(n);if(i.ranges)n.pop();else break}}function rS(n,i){if(i)return mg(n.done),de(n.done);if(n.done.length&&!de(n.done).ranges)return de(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),de(n.done)}function yg(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=rS(u,u.lastOp==l)))x=de(y.changes),_e(i.from,i.to)==0&&_e(i.from,x.to)==0?x.to=Ai(i):y.changes.push(Mf(n,i));else{var S=de(u.done);for((!S||!S.ranges)&&Ka(n.sel,u.done),y={changes:[Mf(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||At(n,"historyAdded")}function iS(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 oS(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||iS(n,g,de(u.done),i))?u.done[u.done.length-1]=i:Ka(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&mg(u.undone)}function Ka(n,i){var a=de(i);a&&a.ranges&&a.equals(n)||i.push(n)}function bg(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 sS(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 lS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(sS(a[u]));return l}function wg(n,i){var a=lS(n,i),l=Qu(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 ts(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+)$/))&&Ae(i,Number($[1]))>-1&&(de(x)[D]=_[D],delete _[D])}}return l}function Nf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=_e(i,u)<0;g!=_e(a,u)<0?(u=i,i=a):g!=_e(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Xa(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),on(n,new Vn([Nf(n.sel.primary(),i,a,u)],0),l)}function xg(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]=Nf(n.sel.ranges[g],i[g],null,u);var y=pr(n.cm,l,n.sel.primIndex);on(n,y,a)}function $f(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,on(n,pr(n.cm,u,n.sel.primIndex),l)}function Sg(n,i,a,l){on(n,Li(i,a),l)}function aS(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 At(n,"beforeSelectionChange",n,l),n.cm&&At(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?pr(n.cm,l.ranges,l.ranges.length-1):i}function _g(n,i,a){var l=n.history.done,u=de(l);u&&u.ranges?(l[l.length-1]=i,Ya(n,i,a)):on(n,i,a)}function on(n,i,a){Ya(n,i,a),oS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ya(n,i,a){(On(n,"beforeSelectionChange")||n.cm&&On(n.cm,"beforeSelectionChange"))&&(i=aS(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);kg(n,Cg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Qo(n.cm)}function kg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,er(n.cm)),Vt(n,"cursorActivity",n))}function Tg(n){kg(n,Cg(n,n.sel,null,!1))}function Cg(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=Za(n,y.anchor,x&&x.anchor,a,l),_=y.head==y.anchor?S:Za(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?pr(n.cm,u,i.primIndex):i}function ns(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&&(At(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=Eg(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(K=_e(D,a))&&(l<0?K<0:K>0))return ns(n,D,i,l,u)}var j=S.find(l<0?-1:1);return(l<0?_:$)&&(j=Eg(n,j,l,j.line==i.line?g:null)),j?ns(n,j,i,l,u):null}}return i}function Za(n,i,a,l,u){var g=l||1,y=ns(n,i,a,g,u)||!u&&ns(n,i,a,g,!0)||ns(n,i,a,-g,u)||!u&&ns(n,i,a,-g,!0);return y||(n.cantEdit=!0,ee(n.first,0))}function Eg(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 Lg(n){n.setSelection(ee(n.firstLine(),0),ee(n.lastLine()),X)}function Ag(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)}),At(n,"beforeChange",n,l),n.cm&&At(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function rs(n,i,a){if(n.cm){if(!n.cm.curOp)return jt(n.cm,rs)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((On(n,"beforeChange")||n.cm&&On(n.cm,"beforeChange"))&&(i=Ag(n,i,!0),!i))){var l=wp&&!a&&ox(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Mg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Mg(n,i)}}function Mg(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=Ef(n,i);yg(n,i,a,n.cm?n.cm.curOp.id:NaN),ll(n,i,a,Qu(n,i));var l=[];Mi(n,function(u,g){!g&&Ae(l,u.history)==-1&&(Og(u.history,i),l.push(u.history)),ll(u,i,null,Qu(u,i))})}}function Ja(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(Ka(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 $=[];Ka(y,S),S.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=On(n,"beforeChange")||n.cm&&On(n.cm,"beforeChange"),K=function(ue){var ve=g.changes[ue];if(ve.origin=i,D&&!Ag(n,ve,!1))return x.length=0,{};$.push(Mf(n,ve));var be=ue?Ef(n,ve):de(x);ll(n,ve,be,wg(n,ve)),!ue&&n.cm&&n.cm.scrollIntoView({from:ve.from,to:Ai(ve)});var Te=[];Mi(n,function(we,Me){!Me&&Ae(Te,we.history)==-1&&(Og(we.history,ve),Te.push(we.history)),ll(we,ve,null,wg(we,ve))})},j=g.changes.length-1;j>=0;--j){var ne=K(j);if(ne)return ne.v}}}}function Ng(n,i){if(i!=0&&(n.first+=i,n.sel=new Vn(pe(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)){yn(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 jt(n.cm,ll)(n,i,a,l);if(i.to.line<n.first){Ng(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);Ng(n,u),i={from:ee(n.first,0),to:ee(i.to.line+u,i.to.ch),text:[de(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=Jr(n,i.from,i.to),a||(a=Ef(n,i)),n.cm?cS(n.cm,i,l):Af(n,i,l),Ya(n,a,X),n.cantEdit&&Za(n,ee(n.firstLine(),0))&&(n.cantEdit=!1)}}function cS(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(dr(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),Af(l,i,a,Yp(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(j){var ne=Ra(j);ne>u.maxLineLength&&(u.maxLine=j,u.maxLineLength=ne,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),J1(l,g.line),il(n,400);var _=i.text.length-(y.line-g.line)-1;i.full?yn(n):g.line==y.line&&i.text.length==1&&!pg(n.doc,i)?Ci(n,g.line,"text"):yn(n,g.line,y.line+1,_);var $=On(n,"changes"),D=On(n,"change");if(D||$){var K={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};D&&Vt(n,"change",n,K),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(K)}n.display.selForContextMenu=null}function is(n,i,a,l,u){var g;l||(l=a),_e(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),rs(n,{from:a,to:l,text:i,origin:u})}function $g(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Pg(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++)$g(g.ranges[x].anchor,i,a,l),$g(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 Og(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Pg(n.done,a,l,u),Pg(n.undone,a,l,u)}function al(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,fp(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,ux(u),Vt(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=Ae(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&&(Rn(n,function(){Rg(n,a,-g),Ci(n,l,"widget")}),Vt(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&&Rn(a,function(){a.curOp.forceUpdate=!0,Rg(a,l,u),Vt(a,"lineWidgetChanged",a,n,T(l))}))},lr(fl);function Rg(n,i,a){ei(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&xf(n,a)}function uS(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=ei(y)<n.scrollTop;Un(y,y.height+Zs(u)),S&&xf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Vt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Dg=0,Ni=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Dg};Ni.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&po(n),On(this,"clear")){var a=this.find();a&&Vt(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=tx(y.markedSpans,x),x.from==null&&this.collapsed&&!Ti(this.doc,y)&&n&&Un(y,Yo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var _=dr(this.lines[S]),$=Ra(_);$>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&yn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Tg(n.doc)),n&&Vt(n,"markerCleared",n,this,l,u),i&&go(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||Rn(l,function(){var u=i.line,g=T(i.line),y=af(l,g);if(y&&(Bp(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)}Vt(l,"markerChanged",l,n)})},Ni.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ae(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ni.prototype.detachLine=function(n){if(this.lines.splice(Ae(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},lr(Ni);function os(n,i,a,l,u){if(l&&l.shared)return fS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return jt(n.cm,os)(n,i,a,l,u);var g=new Ni(n,u),y=_e(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(Cp(n,i.line,i,a,g)||i.line!=a.line&&Cp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");ex()}g.addToHistory&&yg(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&&dr(D)==S.display.maxLine&&(_=!0),g.collapsed&&x!=i.line&&Un(D,0),nx(D,new Na(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&&(Q1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Dg,g.atomic=!0),S){if(_&&(S.curOp.updateMaxLine=!0),g.collapsed)yn(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&&Tg(S.doc),Vt(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();Vt(this,"clear")}},dl.prototype.find=function(n,i){return this.primary.find(n,i)},lr(dl);function fS(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[os(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Mi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),g.push(os(S,Ge(S,i),Ge(S,a),l,u));for(var _=0;_<S.linked.length;++_)if(S.linked[_].isParent)return;y=de(g)}),new dl(g,y)}function zg(n){return n.findMarks(ee(n.first,0),n.clipPos(ee(n.lastLine())),function(i){return i.parent})}function dS(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(_e(g,y)){var x=os(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function hS(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];Ae(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var pS=0,bn=function(n,i,a,l,u){if(!(this instanceof bn))return new bn(n,i,a,l,u);a==null&&(a=0),ul.call(this,[new cl([new Go("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ee(a,0);this.sel=Li(g),this.history=new Ga(null),this.id=++pS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Af(this,{from:g,to:g,text:n}),on(this,Li(g),X)};bn.prototype=De(ul.prototype,{constructor:bn,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:Gt(function(n){var i=ee(this.first,0),a=this.first+this.size-1;rs(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),X)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,is(this,n,i,a,l)},getRange:function(n,i,a){var l=Jr(this,Ge(this,n),Ge(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(se(this,n))return Oe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),dr(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:Gt(function(n,i,a){Sg(this,Ge(this,typeof n=="number"?ee(n,i||0):n),null,a)}),setSelection:Gt(function(n,i,a){Sg(this,Ge(this,n),Ge(this,i||n),a)}),extendSelection:Gt(function(n,i,a){Xa(this,Ge(this,n),i&&Ge(this,i),a)}),extendSelections:Gt(function(n,i){xg(this,dp(this,n),i)}),extendSelectionsBy:Gt(function(n,i){var a=pe(this.sel.ranges,n);xg(this,dp(this,a),i)}),setSelections:Gt(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,pr(this.cm,l,i),a)}}),addSelection:Gt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new dt(Ge(this,n),Ge(this,i||n))),on(this,pr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Jr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=Jr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Gt(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"&&tS(this,l,i),S=l.length-1;S>=0;S--)rs(this,l[S]);x?_g(this,x):this.cm&&Qo(this.cm)}),undo:Gt(function(){Ja(this,"undo")}),redo:Gt(function(){Ja(this,"redo")}),undoSelection:Gt(function(){Ja(this,"undo",!0)}),redoSelection:Gt(function(){Ja(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 Ga(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:ts(this.history.done),undone:ts(this.history.undone)}},setHistory:function(n){var i=this.history=new Ga(this.history);i.done=ts(n.done.slice(0),null,!0),i.undone=ts(n.undone.slice(0),null,!0)},setGutterMarker:Gt(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:Gt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&al(i,a,"gutter",function(){return a.gutterMarkers[n]=null,lt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!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:Gt(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:Gt(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:Gt(function(n,i,a){return uS(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return os(this,Ge(this,n),Ge(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ge(this,n),os(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=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 bn(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 bn(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}],dS(l,zg(this)),l},unlinkDoc:function(n){if(n instanceof kt&&(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),hS(zg(this));break}}if(n.history==this.history){var l=[n.id];Mi(n,function(u){return l.push(u.id)},!0),n.history=new Ga(null),n.history.done=ts(this.history.done,l),n.history.undone=ts(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:Gt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&nS(this.cm))})}),bn.prototype.eachLine=bn.prototype.iter;var Ig=0;function gS(n){var i=this;if(Fg(i),!(Mt(i,n)||ti(i.display,n))){rn(n),h&&(Ig=+new Date);var a=co(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&&jt(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"};rs(i.doc,j),_g(i.doc,Li(Ge(i.doc,a),Ge(i.doc,Ai(j))))})()},S=function(j,ne){if(i.options.allowDropFileTypes&&Ae(i.options.allowDropFileTypes,j.type)==-1){x();return}var ue=new FileReader;ue.onerror=function(){return x()},ue.onload=function(){var ve=ue.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ve)){x();return}g[ne]=ve,x()},ue.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()),Ya(i.doc,Li(a,a)),D)for(var K=0;K<D.length;++K)is(i.doc,"",D[K].anchor,D[K].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function vS(n,i){if(h&&(!n.state.draggingText||+new Date-Ig<100)){xi(i);return}if(!(Mt(n,i)||ti(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){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 mS(n,i){var a=co(n,i);if(a){var l=document.createDocumentFragment();vf(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 Fg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Hg(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 qg=!1;function yS(){qg||(bS(),qg=!0)}function bS(){var n;ze(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Hg(wS)},100))}),ze(window,"blur",function(){return Hg(Jo)})}function wS(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 Qa=65;Qa<=90;Qa++)$i[Qa]=String.fromCharCode(Qa);for(var pl=1;pl<=12;pl++)$i[pl+111]=$i[pl+63235]="F"+pl;var ri={};ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ri.default=O?ri.macDefault:ri.pcDefault;function xS(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 SS(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=pe(a.split(" "),xS),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 ss(n,i,a,l){i=ec(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ss(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ss(n,i.fallthrough[g],a,l);if(y)return y}}}function Bg(n){var i=typeof n=="string"?n:$i[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Wg(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 Ug(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),Wg(a,n,i))}function ec(n){return typeof n=="string"?ri[n]:n}function ls(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&_e(g.from,de(l).to)<=0;){var y=l.pop();if(_e(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Rn(n,function(){for(var x=l.length-1;x>=0;x--)is(n.doc,"",l[x].from,l[x].to,"+delete");Qo(n)})}function Pf(n,i,a){var l=Wt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Of(n,i,a){var l=Pf(n,i.ch,a);return l==null?null:new ee(i.line,l,a<0?"after":"before")}function Rf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Je(a,i.doc.direction);if(g){var y=u<0?de(g):g[0],x=u<0==(y.level==1),S=x?"after":"before",_;if(y.level>0||i.doc.direction=="rtl"){var $=Xo(i,a);_=u<0?a.text.length-1:0;var D=Or(i,$,_).top;_=zt(function(K){return Or(i,$,K).top==D},u<0==(y.level==1)?y.from:y.to-1,_),S=="before"&&(_=Pf(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 _S(n,i,a,l){var u=Je(i,n.doc.direction);if(!u)return Of(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=Ot(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 Of(i,a,l);var x=function(be,Te){return Pf(i,be instanceof ee?be.ch:be,Te)},S,_=function(be){return n.options.lineWrapping?(S=S||Xo(n,i),Xp(n,i,S,be)):{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(be,Te,we){for(var Me=function(xt,Kt){return Kt?new ee(a.line,x(xt,1),"before"):new ee(a.line,xt,"after")};be>=0&&be<u.length;be+=Te){var Ie=u[be],Re=Te>0==(Ie.level!=1),Ye=Re?we.begin:x(we.end,-1);if(Ie.from<=Ye&&Ye<Ie.to||(Ye=Re?Ie.from:x(Ie.to,-1),we.begin<=Ye&&Ye<we.end))return Me(Ye,Re)}},ue=ne(g+l,l,$);if(ue)return ue;var ve=l>0?$.end:x($.begin,-1);return ve!=null&&!(l>0&&ve==i.text.length)&&(ue=ne(l>0?0:u.length-1,l,_(ve)),ue)?ue:null}var gl={selectAll:Lg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),X)},killLine:function(n){return ls(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 ls(n,function(i){return{from:ee(i.from().line,0),to:Ge(n.doc,ee(i.to().line+1,0))}})},delLineLeft:function(n){return ls(n,function(i){return{from:ee(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(ee(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ee(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Vg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return jg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return kS(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/)?jg(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=he(n.getLine(g.line),g.ch,l);i.push(xe(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Rn(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 Rn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);Qo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
32
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Vg(n,i){var a=Oe(n.doc,i),l=dr(a);return l!=a&&(i=T(l)),Rf(!0,n,l,i,1)}function kS(n,i){var a=Oe(n.doc,i),l=lx(a);return l!=a&&(i=T(l)),Rf(!0,n,a,i,-1)}function jg(n,i){var a=Vg(n,i.line),l=Oe(n.doc,a.line),u=Je(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 tc(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)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function TS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ss(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ss(i,n.options.extraKeys,a,n)||ss(i,n.options.keyMap,a,n)}var CS=new $e;function vl(n,i,a,l){var u=n.state.keySeq;if(u){if(Bg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:CS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Gg(n,u+" "+i,a,l))return!0}return Gg(n,i,a,l)}function Gg(n,i,a,l){var u=TS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Vt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(rn(a),mf(n)),!!u}function Kg(n,i){var a=Ug(i,!0);return a?i.shiftKey&&!n.state.keySeq?vl(n,"Shift-"+a,i,function(l){return tc(n,l,!0)})||vl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return tc(n,l)}):vl(n,a,i,function(l){return tc(n,l)}):!1}function ES(n,i,a){return vl(n,"'"+a+"'",i,function(l){return tc(n,l,!0)})}var Df=null;function Xg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(et(i)),!Mt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Kg(i,n);M&&(Df=l?a:null,!l&&a==88&&!Aa&&(O?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!O&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&LS(i)}}function LS(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(J(i,"CodeMirror-crosshair"),nn(document,"keyup",a),nn(document,"mouseover",a))}ze(document,"keyup",a),ze(document,"mouseover",a)}function Yg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Mt(this,n)}function Zg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ti(i.display,n)||Mt(i,n)||n.ctrlKey&&!n.altKey||O&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(M&&a==Df){Df=null,rn(n);return}if(!(M&&(!n.which||n.which<10)&&Kg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(ES(i,n,u)||i.display.input.onKeyPress(n))}}}var AS=400,zf=function(n,i,a){this.time=n,this.pos=i,this.button=a};zf.prototype.compare=function(n,i,a){return this.time+AS>n&&_e(i,this.pos)==0&&a==this.button};var ml,yl;function MS(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 zf(a,n,i),ml=null,"double"):(ml=new zf(a,n,i),yl=null,"single")}function Jg(n){var i=this,a=i.display;if(!(Mt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ti(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!If(i,n)){var l=co(i,n),u=ar(n),g=l?MS(l,u):"single";Le(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&NS(i,u,l,g,n))&&(u==1?l?PS(i,l,g,n):Ws(n)==a.scroller&&rn(n):u==2?(l&&Xa(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):yf(i)))}}}function NS(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,Wg(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)!=q}finally{n.state.suppressEdits=!1}return x})}function $S(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=O?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(O?a.altKey:a.ctrlKey)),u}function PS(n,i,a,l){h?setTimeout(Y(Qp,n),0):n.curOp.focus=ye(et(n));var u=$S(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Xu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(_e((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(_e(y.to(),i)>0||i.xRel<0)?OS(n,l,i,u):RS(n,l,i,u)}function OS(n,i,a,l){var u=n.display,g=!1,y=jt(n,function(_){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:yf(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||Xa(n.doc,a,null,null,l.extend),v&&!A||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 Qg(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 RS(n,i,a,l){h&&yf(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=co(n,i,!0,!0),x=-1;else{var $=Qg(n,a,l.unit);l.extend?y=Nf(y,$.anchor,$.head,l.extend):y=$}l.addNew?x==-1?(x=_.length,on(g,pr(n,_.concat([y]),x),{scroll:!1,origin:"*mouse"})):_.length>1&&_[x].empty()&&l.unit=="char"&&!l.extend?(on(g,pr(n,_.slice(0,x).concat(_.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):$f(g,x,y,le):(x=0,on(g,new Vn([y],0),le),S=g.sel);var D=a;function K(we){if(_e(D,we)!=0)if(D=we,l.unit=="rectangle"){for(var Me=[],Ie=n.options.tabSize,Re=he(Oe(g,a.line).text,a.ch,Ie),Ye=he(Oe(g,we.line).text,we.ch,Ie),xt=Math.min(Re,Ye),Kt=Math.max(Re,Ye),Ct=Math.min(a.line,we.line),Dn=Math.min(n.lastLine(),Math.max(a.line,we.line));Ct<=Dn;Ct++){var wn=Oe(g,Ct).text,It=ce(wn,xt,Ie);xt==Kt?Me.push(new dt(ee(Ct,It),ee(Ct,It))):wn.length>It&&Me.push(new dt(ee(Ct,It),ee(Ct,ce(wn,Kt,Ie))))}Me.length||Me.push(new dt(a,a)),on(g,pr(n,S.ranges.slice(0,x).concat(Me),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(we)}else{var xn=y,en=Qg(n,we,l.unit),Bt=xn.anchor,Ft;_e(en.anchor,Bt)>0?(Ft=en.head,Bt=jo(xn.from(),en.anchor)):(Ft=en.anchor,Bt=mn(xn.to(),en.head));var $t=S.ranges.slice(0);$t[x]=DS(n,new dt(Ge(g,Bt),Ft)),on(g,pr(n,$t,x),le)}}var j=u.wrapper.getBoundingClientRect(),ne=0;function ue(we){var Me=++ne,Ie=co(n,we,!0,l.unit=="rectangle");if(Ie)if(_e(Ie,D)!=0){n.curOp.focus=ye(et(n)),K(Ie);var Re=Wa(u,g);(Ie.line>=Re.to||Ie.line<Re.from)&&setTimeout(jt(n,function(){ne==Me&&ue(we)}),150)}else{var Ye=we.clientY<j.top?-20:we.clientY>j.bottom?20:0;Ye&&setTimeout(jt(n,function(){ne==Me&&(u.scroller.scrollTop+=Ye,ue(we))}),50)}}function ve(we){n.state.selectingText=!1,ne=1/0,we&&(rn(we),u.input.focus()),nn(u.wrapper.ownerDocument,"mousemove",be),nn(u.wrapper.ownerDocument,"mouseup",Te),g.history.lastSelOrigin=null}var be=jt(n,function(we){we.buttons===0||!ar(we)?ve(we):ue(we)}),Te=jt(n,ve);n.state.selectingText=Te,ze(u.wrapper.ownerDocument,"mousemove",be),ze(u.wrapper.ownerDocument,"mouseup",Te)}function DS(n,i){var a=i.anchor,l=i.head,u=Oe(n.doc,a.line);if(_e(a,l)==0&&a.sticky==l.sticky)return i;var g=Je(u);if(!g)return i;var y=Ot(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 $=Ot(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,ue=j?"after":"before";return a.ch==ne&&a.sticky==ue?i:new dt(new ee(a.line,ne,ue),l)}function ev(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||!On(n,a))return vn(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 At(n,a,n,$,D.className,i),vn(i)}}}function If(n,i){return ev(n,i,"gutterClick",!0)}function tv(n,i){ti(n.display,i)||zS(n,i)||Mt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function zS(n,i){return On(n,"gutterContextMenu")?ev(n,i,"gutterContextMenu",!1):!1}function nv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Js(n)}var as={toString:function(){return"CodeMirror.Init"}},rv={},nc={};function IS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,S,_){_!=as&&g(x,S,_)}:g)}n.defineOption=a,n.Init=as,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Lf(l)},!0),a("indentUnit",2,Lf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){sl(l),Js(l),yn(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--)is(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!=as&&l.refresh()}),a("specialCharPlaceholder",hx,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){nv(l),ol(l)},!0),a("keyMap","default",function(l,u,g){var y=ec(u),x=g!=as&&ec(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,HS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Cf(u,l.options.lineNumbers),ol(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?pf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return es(l)},!0),a("scrollbarStyle","native",function(l){og(l),es(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Cf(l.options.gutters,u),ol(l)},!0),a("firstLineNumber",1,ol,!0),a("lineNumberFormatter",function(l){return l},ol,!0),a("showCursorWhenSelecting",!1,Qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Jo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,FS),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 FS(n,i,a){var l=a&&a!=as;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 HS(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(J(n.display.wrapper,"CodeMirror-wrap"),rf(n)),gf(n),yn(n),Js(n),setTimeout(function(){return es(n)},100)}function kt(n,i){var a=this;if(!(this instanceof kt))return new kt(n,i);this.options=i=i?ae(i):{},ae(rv,i,!1);var l=i.value;typeof l=="string"?l=new bn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new kt.inputStyles[i.inputStyle](this),g=this.display=new Qx(n,l,u,i);g.wrapper.CodeMirror=this,nv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),og(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),qS(this),yS(),po(this),this.curOp.forceUpdate=!0,gg(this,l),i.autofocus&&!L||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&bf(a)},20):Jo(this);for(var y in nc)nc.hasOwnProperty(y)&&nc[y](this,i[y],as);ag(this),i.finishInit&&i.finishInit(this);for(var x=0;x<Ff.length;++x)Ff[x](this);go(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}kt.defaults=rv,kt.optionHandlers=nc;function qS(n){var i=n.display;ze(i.scroller,"mousedown",jt(n,Jg)),h&&p<11?ze(i.scroller,"dblclick",jt(n,function(S){if(!Mt(n,S)){var _=co(n,S);if(!(!_||If(n,S)||ti(n.display,S))){rn(S);var $=n.findWordAt(_);Xa(n.doc,$.anchor,$.head)}}})):ze(i.scroller,"dblclick",function(S){return Mt(n,S)||rn(S)}),ze(i.scroller,"contextmenu",function(S){return tv(n,S)}),ze(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||tv(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(!Mt(n,S)&&!g(S)&&!If(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(_&&!ti(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),fo(n,i.scroller.scrollLeft,!0),At(n,"scroll",n))}),ze(i.scroller,"mousewheel",function(S){return fg(n,S)}),ze(i.scroller,"DOMMouseScroll",function(S){return fg(n,S)}),ze(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Mt(n,S)||xi(S)},over:function(S){Mt(n,S)||(mS(n,S),xi(S))},start:function(S){return vS(n,S)},drop:jt(n,gS),leave:function(S){Mt(n,S)||Fg(n)}};var x=i.input.getField();ze(x,"keyup",function(S){return Yg.call(n,S)}),ze(x,"keydown",jt(n,Xg)),ze(x,"keypress",jt(n,Zg)),ze(x,"focus",function(S){return bf(n,S)}),ze(x,"blur",function(S){return Jo(n,S)})}var Ff=[];kt.defineInitHook=function(n){return Ff.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=he(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),$==q||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=he(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+=xe($-K)),D!=_)return is(u,D,ee(i,0),ee(i,_.length),"+input"),x.stateAfter=null,!0;for(var ne=0;ne<u.sel.ranges.length;ne++){var ue=u.sel.ranges[ne];if(ue.head.line==i&&ue.head.ch<_.length){var ve=ee(i,_.length);$f(u,ne,new dt(ve,ve));break}}}var gr=null;function rc(n){gr=n}function Hf(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(gr&&gr.text.join(`
|
|
33
|
+
`)==i){if(l.ranges.length%gr.text.length==0){_=[];for(var $=0;$<gr.text.length;$++)_.push(g.splitLines(gr.text[$]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(_=pe(S,function(be){return[be]}));for(var D=n.curOp.updateInput,K=l.ranges.length-1;K>=0;K--){var j=l.ranges[K],ne=j.from(),ue=j.to();j.empty()&&(a&&a>0?ne=ee(ne.line,ne.ch-a):n.state.overwrite&&!x?ue=ee(ue.line,Math.min(Oe(g,ue.line).text.length,ue.ch+de(S).length)):x&&gr&&gr.lineWise&&gr.text.join(`
|
|
34
|
+
`)==S.join(`
|
|
35
|
+
`)&&(ne=ue=ee(ne.line,0)));var ve={from:ne,to:ue,text:_?_[K%_.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};rs(n.doc,ve),Vt(n,"inputRead",n,ve)}i&&!x&&ov(n,i),Qo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function iv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Rn(i,function(){return Hf(i,a,0,null,"paste")}),!0}function ov(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&&Vt(n,"electricInput",n,u.head.line)}}}function sv(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 qf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function lv(){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 BS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Le(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&jt(this,i[l])(this,u,y),At(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"](ec(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:un(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");qe(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,yn(this)}),removeOverlay:un(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++,yn(this);return}}}),indentLine:un(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:un(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(bl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Qo(this));else{var 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&&$f(this.doc,y,new dt(S,K[y].to()),X)}}}),getTokenAt:function(l,u){return mp(this,l,u)},getLineTokens:function(l,u){return mp(this,ee(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=pp(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)&&Ae(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=fp(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(),hr(this,g,u||"page")},charCoords:function(l,u){return Fa(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=jp(this,l,u||"page"),ff(this,l.left,l.top)},lineAtHeight:function(l,u){return l=jp(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 Ia(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ei(x):0)},defaultTextHeight:function(){return Yo(this.display)},defaultCharWidth:function(){return Zo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var S=this.display;l=hr(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&&Fx(this,{left:$,top:_,right:$+u.offsetWidth,bottom:_+u.offsetHeight})},triggerOnKeyDown:un(Xg),triggerOnKeyPress:un(Zg),triggerOnKeyUp:Yg,triggerOnMouseDown:un(Jg),execCommand:function(l){if(gl.hasOwnProperty(l))return gl[l].call(null,this)},triggerElectric:un(function(l){ov(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=Bf(this.doc,S,x,g,y),!S.hitSide);++_);return S},moveH:un(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Bf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},fe)}),deleteH:un(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ls(this,function(x){var S=Bf(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=hr(this,_,"div");if(S==null?S=D.left:D.left=S,_=av(this,D,x,g),_.hitSide)break}return _},moveV:un(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=hr(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),x.push(D.left);var K=av(g,D,l,u);return u=="page"&&$==y.sel.primary()&&xf(g,Fa(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),$=it(_,S)?function(D){return it(D,S)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!it(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"):J(this.display.cursorDiv,"CodeMirror-overwrite"),At(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(et(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:un(function(l,u){el(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Pr(this)-this.display.barHeight,width:l.scrollWidth-Pr(this)-this.display.barWidth,clientHeight:lf(this),clientWidth:lo(this)}},scrollIntoView:un(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?Hx(this,l):tg(this,l.from,l.to,l.margin)}),setSize:un(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&&Wp(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,At(this,"refresh",this)}),operation:function(l){return Rn(this,l)},startOperation:function(){return po(this)},endOperation:function(){return go(this)},refresh:un(function(){var l=this.display.cachedTextHeight;yn(this),this.curOp.forceUpdate=!0,Js(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),kf(this.display),(l==null||Math.abs(l-Yo(this.display))>.5||this.options.lineWrapping)&&gf(this),At(this,"refresh",this)}),swapDoc:un(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),gg(this,l),Js(this),this.display.input.reset(),el(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Vt(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}},lr(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 Bf(n,i,a,l,u){var g=i,y=a,x=Oe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function _(){var Te=i.line+S;return Te<n.first||Te>=n.first+n.size?!1:(i=new ee(Te,i.ch,i.sticky),x=Oe(n,Te))}function $(Te){var we;if(l=="codepoint"){var Me=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Me))we=null;else{var Ie=a>0?Me>=55296&&Me<56320:Me>=56320&&Me<57343;we=new ee(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ie?2:1))),-a)}}else u?we=_S(n.cm,x,i,a):we=Of(x,i,a);if(we==null)if(!Te&&_())i=Rf(u,n.cm,x,i.line,S);else return!1;else i=we;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 ue=x.text.charAt(i.ch)||`
|
|
36
|
+
`,ve=it(ue,j)?"w":K&&ue==`
|
|
37
|
+
`?"n":!K||/\s/.test(ue)?null:"p";if(K&&!ne&&!ve&&(ve="s"),D&&D!=ve){a<0&&(a=1,$(),i.sticky="after");break}if(ve&&(D=ve),a>0&&!$(!ne))break}var be=Za(n,i,g,y,!0);return ft(g,be)&&(be.hitSide=!0),be}function av(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Le(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*Yo(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 _;_=ff(n,g,y),!!_.outside;){if(a<0?y<=0:y>=u.height){_.hitSide=!0;break}y+=a*5}return _}var mt=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};mt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,qf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(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)||Mt(l,x)||iv(x,l)||p<=11&&setTimeout(jt(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)||Mt(l,x))){if(l.somethingSelected())rc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=sv(l);rc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,X),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var _=gr.text.join(`
|
|
38
|
+
`);if(x.clipboardData.setData("Text",_),x.clipboardData.getData("Text")==_){x.preventDefault();return}}var $=lv(),D=$.firstChild;qf(D),l.display.lineSpace.insertBefore($,l.display.lineSpace.firstChild),D.value=gr.text.join(`
|
|
39
|
+
`);var K=ye(Xe(u));Ve(D),setTimeout(function(){l.display.lineSpace.removeChild($),K.focus(),K==u&&a.showPrimarySelection()},50)}}ze(u,"copy",y),ze(u,"cut",y)},mt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var n=Jp(this.cm,!1);return n.focus=ye(Xe(this.div))==this.div,n},mt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},mt.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=ic(i,n.anchorNode,n.anchorOffset),y=ic(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&_e(jo(g,y),l)==0&&_e(mn(g,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&cv(i,l)||{node:x[0].measure.map[2],offset:0},_=u.line<i.display.viewTo&&cv(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()}},mt.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)},mt.prototype.showMultipleSelections=function(n){F(this.cm.display.cursorDiv,n.cursors),F(this.cm.display.selectionDiv,n.selection)},mt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},mt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ie(this.div,i)},mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye(Xe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},mt.prototype.blur=function(){this.div.blur()},mt.prototype.getField=function(){return this.div},mt.prototype.supportsTouch=function(){return!0},mt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Rn(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)},mt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},mt.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&&WS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=ic(i,n.anchorNode,n.anchorOffset),l=ic(i,n.focusNode,n.focusOffset);a&&l&&Rn(i,function(){on(i.doc,Li(a,l),X),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},mt.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=uo(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=uo(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(US(n,x,$,y,_)),K=Jr(n.doc,ee(y,0),ee(_,Oe(n.doc,_).text.length));D.length>1&&K.length>1;)if(de(D)==de(K))D.pop(),K.pop(),_--;else if(D[0]==K[0])D.shift(),K.shift(),y++;else break;for(var j=0,ne=0,ue=D[0],ve=K[0],be=Math.min(ue.length,ve.length);j<be&&ue.charCodeAt(j)==ve.charCodeAt(j);)++j;for(var Te=de(D),we=de(K),Me=Math.min(Te.length-(D.length==1?j:0),we.length-(K.length==1?j:0));ne<Me&&Te.charCodeAt(Te.length-ne-1)==we.charCodeAt(we.length-ne-1);)++ne;if(D.length==1&&K.length==1&&y==l.line)for(;j&&j>l.ch&&Te.charCodeAt(Te.length-ne-1)==we.charCodeAt(we.length-ne-1);)j--,ne++;D[D.length-1]=Te.slice(0,Te.length-ne).replace(/^\u200b+/,""),D[0]=D[0].slice(j).replace(/\u200b+$/,"");var Ie=ee(y,j),Re=ee(_,K.length?de(K).length-ne:0);if(D.length>1||D[0]||_e(Ie,Re))return is(n.doc,D,Ie,Re,"+input"),!0},mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},mt.prototype.reset=function(){this.forceCompositionEnd()},mt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},mt.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))},mt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Rn(this.cm,function(){return yn(n.cm)})},mt.prototype.setUneditable=function(n){n.contentEditable="false"},mt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||jt(this.cm,Hf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},mt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},mt.prototype.onContextMenu=function(){},mt.prototype.resetPosition=function(){},mt.prototype.needsContentAttribute=!0;function cv(n,i){var a=af(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=Ip(a,l,i.line),g=Je(l,n.doc.direction),y="left";if(g){var x=Ot(g,i.ch);y=x%2?"right":"left"}var S=qp(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function WS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function cs(n,i){return i&&(n.bad=!0),n}function US(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 ue=j.getAttribute("cm-marker"),ve;if(ue){var be=n.findMarks(ee(l,0),ee(u+1,0),_(+ue));be.length&&(ve=be[0].find(0))&&D(Jr(n.doc,ve.from,ve.to).join(x));return}if(j.getAttribute("contenteditable")=="false")return;var Te=/^(pre|div|p|li|table|br)$/i.test(j.nodeName);if(!/^br$/i.test(j.nodeName)&&j.textContent.length==0)return;Te&&$();for(var we=0;we<j.childNodes.length;we++)K(j.childNodes[we]);/^(pre|p)$/i.test(j.nodeName)&&(S=!0),Te&&(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 ic(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return cs(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 VS(g,i,a)}}function VS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ie(l,i))return cs(ee(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?de(n.rest):n.line;return cs(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 $(ve,be,Te){for(var we=-1;we<(_?_.length:0);we++)for(var Me=we<0?S.map:_[we],Ie=0;Ie<Me.length;Ie+=3){var Re=Me[Ie+2];if(Re==ve||Re==be){var Ye=T(we<0?n.line:n.rest[we]),xt=Me[Ie]+Te;return(Te<0||Re!=ve)&&(xt=Me[Ie+(Te?1:0)]),ee(Ye,xt)}}}var D=$(y,x,a);if(D)return cs(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 cs(ee(D.line,D.ch-j),u);j+=K.textContent.length}for(var ne=x.previousSibling,ue=a;ne;ne=ne.previousSibling){if(D=$(ne,ne.firstChild,-1),D)return cs(ee(D.line,D.ch+ue),u);ue+=ne.textContent.length}}var Rt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null,this.resetting=!1};Rt.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),N&&(u.style.width="0px"),ze(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),ze(u,"paste",function(y){Mt(l,y)||iv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Mt(l,y)){if(l.somethingSelected())rc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=sv(l);rc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,X):(a.prevInput="",u.value=x.text.join(`
|
|
40
|
+
`),Ve(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(!(ti(n,y)||Mt(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){ti(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)})},Rt.prototype.createField=function(n){this.wrapper=lv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;qf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Rt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Rt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Jp(n);if(n.options.moveInputWithCursor){var u=hr(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},Rt.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")},Rt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ve(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Rt.prototype.getField=function(){return this.textarea},Rt.prototype.supportsTouch=function(){return!1},Rt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||ye(Xe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Rt.prototype.blur=function(){this.textarea.blur()},Rt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Rt.prototype.receivedFocus=function(){this.slowPoll()},Rt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Rt.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)},Rt.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||O&&/[\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 Rn(i,function(){Hf(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},Rt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Rt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Rt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),y=l.scroller.scrollTop;if(!g||M)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&jt(a,on)(a.doc,Li(g),X);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
|
+
top: `+(n.clientY-$.top-5)+"px; left: "+(n.clientX-$.left-5)+`px;
|
|
43
|
+
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
44
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var 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 ue=a.somethingSelected(),ve=""+(ue?u.value:"");u.value="⇚",u.value=ve,i.prevInput=ue?"":"",u.selectionStart=1,u.selectionEnd=ve.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 ue=0,ve=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?jt(a,Lg)(a):ue++<10?l.detectingSelectAll=setTimeout(ve,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ve,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)},Rt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Rt.prototype.setUneditable=function(){},Rt.prototype.needsContentAttribute=!1;function jS(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(Xe(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=kt(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function GS(n){n.off=nn,n.on=ze,n.wheelEventPixels=eS,n.Doc=bn,n.splitLines=tr,n.countColumn=he,n.findColumn=ce,n.isWordChar=Qe,n.Pass=q,n.signal=At,n.Line=Go,n.changeEnd=Ai,n.scrollbarModel=ig,n.Pos=ee,n.cmpPos=_e,n.modes=qo,n.mimeModes=ur,n.resolveMode=Bo,n.getMode=Wo,n.modeExtensions=ki,n.extendMode=Uo,n.copyState=Nr,n.startState=Vo,n.innerMode=Vs,n.commands=gl,n.keyMap=ri,n.keyName=Ug,n.isModifierKey=Bg,n.lookupKey=ss,n.normalizeKeyMap=SS,n.StringStream=Nt,n.SharedTextMarker=dl,n.TextMarker=Ni,n.LineWidget=fl,n.e_preventDefault=rn,n.e_stopPropagation=Fo,n.e_stop=xi,n.addClass=Ne,n.contains=ie,n.rmClass=J,n.keyNames=$i}IS(kt),BS(kt);var KS="iter insert remove copy getEditor constructor".split(" ");for(var oc in bn.prototype)bn.prototype.hasOwnProperty(oc)&&Ae(KS,oc)<0&&(kt.prototype[oc]=function(n){return function(){return n.apply(this.doc,arguments)}}(bn.prototype[oc]));return lr(bn),kt.inputStyles={textarea:Rt,contenteditable:mt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),fr.apply(this,arguments)},kt.defineMIME=so,kt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),kt.defineMIME("text/plain","null"),kt.defineExtension=function(n,i){kt.prototype[n]=i},kt.defineDocExtension=function(n,i){bn.prototype[n]=i},kt.fromTextArea=jS,GS(kt),kt.version="5.65.18",kt})})(jw);var Bs=jw.exports;const Aue=mw(Bs);var Mue={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(Ut){return{type:Ut,style:"keyword"}}var R=T("keyword a"),se=T("keyword b"),ge=T("keyword c"),ee=T("keyword d"),_e=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:ge,void:ge,throw:ge,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:_e,typeof:_e,instanceof:_e,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:T("this"),class:T("class"),super:T("atom"),yield:ge,export:T("export"),import:T("import"),extends:ge,await:ge}}(),w=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(T){for(var R=!1,se,ge=!1;(se=T.next())!=null;){if(!R){if(se=="/"&&!ge)return;se=="["?ge=!0:ge&&se=="]"&&(ge=!1)}R=!R&&se=="\\"}}var C,E;function N(T,R,se){return C=T,E=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=O,O(T,R)):T.eat("/")?(T.skipToEnd(),N("comment","comment")):Un(T,R,1)?(A(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 ge=T.current();if(R.lastType!="."){if(b.propertyIsEnumerable(ge)){var ee=b[ge];return N(ee.type,ee.style,ge)}if(ge=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return N("async","keyword",ge)}return N("variable","variable",ge)}}function L(T){return function(R,se){var ge=!1,ee;if(d&&R.peek()=="@"&&R.match(M))return se.tokenize=P,N("jsonld-keyword","meta");for(;(ee=R.next())!=null&&!(ee==T&&!ge);)ge=!ge&&ee=="\\";return ge||(se.tokenize=P),N("string","string")}}function O(T,R){for(var se=!1,ge;ge=T.next();){if(ge=="/"&&se){R.tokenize=P;break}se=ge=="*"}return N("comment","comment")}function W(T,R){for(var se=!1,ge;(ge=T.next())!=null;){if(!se&&(ge=="`"||ge=="$"&&T.eat("{"))){R.tokenize=P;break}se=!se&&ge=="\\"}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 ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,se));ge&&(se=ge.index)}for(var ee=0,_e=!1,ft=se-1;ft>=0;--ft){var Ut=T.string.charAt(ft),mn=U.indexOf(Ut);if(mn>=0&&mn<3){if(!ee){++ft;break}if(--ee==0){Ut=="("&&(_e=!0);break}}else if(mn>=3&&mn<6)++ee;else if(m.test(Ut))_e=!0;else if(/["'\/`]/.test(Ut))for(;;--ft){if(ft==0)return;var jo=T.string.charAt(ft-1);if(jo==Ut&&T.string.charAt(ft-2)!="\\"){ft--;break}}else if(_e&&!ee){++ft;break}}_e&&!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,ge,ee,_e){this.indented=T,this.column=R,this.type=se,this.prev=ee,this.info=_e,ge!=null&&(this.align=ge)}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 ge=T.context;ge;ge=ge.prev)for(var se=ge.vars;se;se=se.next)if(se.name==R)return!0}function J(T,R,se,ge,ee){var _e=T.cc;for(H.state=T,H.stream=ee,H.marked=null,H.cc=_e,H.style=R,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ft=_e.length?_e.pop():h?Ae:he;if(ft(se,ge)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return H.marked?H.marked:se=="variable"&&te(T,ge)?"variable-2":R}}}var H={state:null,column:null,marked:null,cc:null};function F(){for(var T=arguments.length-1;T>=0;T--)H.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=H.state;if(H.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 We(T,R.localVars);return}}s.globalVars&&!B(T,R.globalVars)&&(R.globalVars=new We(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 We(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 We(T,R){this.name=T,this.next=R}var Ve=new We("this",new We("arguments",null));function nt(){H.state.context=new Ne(H.state.context,H.state.localVars,!1),H.state.localVars=Ve}function et(){H.state.context=new Ne(H.state.context,H.state.localVars,!0),H.state.localVars=null}nt.lex=et.lex=!0;function Xe(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}Xe.lex=!0;function Le(T,R){var se=function(){var ge=H.state,ee=ge.indented;if(ge.lexical.type=="stat")ee=ge.lexical.indented;else for(var _e=ge.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)ee=_e.indented;ge.lexical=new G(ee,H.stream.column(),T,null,ge.lexical,R)};return se.lex=!0,se}function Y(){var T=H.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}Y.lex=!0;function ae(T){function R(se){return se==T?k():T==";"||se=="}"||se==")"||se=="]"?F():k(R)}return R}function he(T,R){return T=="var"?k(Le("vardef",R),Fo,ae(";"),Y):T=="keyword a"?k(Le("form"),q,he,Y):T=="keyword b"?k(Le("form"),he,Y):T=="keyword d"?H.stream.match(/^\s*$/,!1)?k():k(Le("stat"),le,ae(";"),Y):T=="debugger"?k(ae(";")):T=="{"?k(Le("}"),et,zt,Y,Xe):T==";"?k():T=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==Y&&H.state.cc.pop()(),k(Le("form"),q,he,Y,Ho)):T=="function"?k(tr):T=="for"?k(Le("form"),et,La,he,Xe,Y):T=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form",T=="class"?T:R),qo,Y)):T=="variable"?v&&R=="declare"?(H.marked="keyword",k(he)):v&&(R=="module"||R=="enum"||R=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",R=="enum"?k(Oe):R=="type"?k(Aa,ae("operator"),Je,ae(";")):k(Le("form"),vn,ae("{"),Le("}"),zt,Y,Y)):v&&R=="namespace"?(H.marked="keyword",k(Le("form"),Ae,he,Y)):v&&R=="abstract"?(H.marked="keyword",k(he)):k(Le("stat"),Ue):T=="switch"?k(Le("form"),q,ae("{"),Le("}","switch"),et,zt,Y,Y,Xe):T=="case"?k(Ae,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Le("form"),nt,$e,he,Y,Xe):T=="export"?k(Le("stat"),Bo,Y):T=="import"?k(Le("stat"),ki,Y):T=="async"?k(he):R=="@"?k(Ae,he):F(Le("stat"),Ae,ae(";"),Y)}function $e(T){if(T=="(")return k(cr,ae(")"))}function Ae(T,R){return X(T,R,!1)}function z(T,R){return X(T,R,!0)}function q(T){return T!="("?F():k(Le(")"),le,ae(")"),Y)}function X(T,R,se){if(H.state.fatArrowAt==H.stream.start){var ge=se?pe:de;if(T=="(")return k(nt,Le(")"),ot(cr,")"),Y,ae("=>"),ge,Xe);if(T=="variable")return F(nt,vn,ae("=>"),ge,Xe)}var ee=se?ce:fe;return Q.hasOwnProperty(T)?k(ee):T=="function"?k(tr,ee):T=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form"),Yu,Y)):T=="keyword c"||T=="async"?k(se?z:Ae):T=="("?k(Le(")"),le,ae(")"),Y,ee):T=="operator"||T=="spread"?k(se?z:Ae):T=="["?k(Le("]"),Nt,Y,ee):T=="{"?Wt(it,"}",null,ee):T=="quasi"?F(Se,ee):T=="new"?k(qe(se)):k()}function le(T){return T.match(/[;\}\)\],]/)?F():F(Ae)}function fe(T,R){return T==","?k(le):ce(T,R,!1)}function ce(T,R,se){var ge=se==!1?fe:ce,ee=se==!1?Ae:z;if(T=="=>")return k(nt,se?pe:de,Xe);if(T=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(ge):v&&R=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Le(">"),ot(Je,">"),Y,ge):R=="?"?k(Ae,ae(":"),ee):k(ee);if(T=="quasi")return F(Se,ge);if(T!=";"){if(T=="(")return Wt(z,")","call",ge);if(T==".")return k(Qe,ge);if(T=="[")return k(Le("]"),le,ae("]"),Y,ge);if(v&&R=="as")return H.marked="keyword",k(Je,ge);if(T=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),k(ee)}}function Se(T,R){return T!="quasi"?F():R.slice(R.length-2)!="${"?k(Se):k(le,xe)}function xe(T){if(T=="}")return H.marked="string-2",H.state.tokenize=W,k(Se)}function de(T){return re(H.stream,H.state),F(T=="{"?he:Ae)}function pe(T){return re(H.stream,H.state),F(T=="{"?he:z)}function qe(T){return function(R){return R=="."?k(T?De:Ee):R=="variable"&&v?k(On,T?ce:fe):F(T?z:Ae)}}function Ee(T,R){if(R=="target")return H.marked="keyword",k(fe)}function De(T,R){if(R=="target")return H.marked="keyword",k(ce)}function Ue(T){return T==":"?k(Y,he):F(fe,ae(";"),Y)}function Qe(T){if(T=="variable")return H.marked="property",k()}function it(T,R){if(T=="async")return H.marked="property",k(it);if(T=="variable"||H.style=="keyword"){if(H.marked="property",R=="get"||R=="set")return k(lt);var se;return v&&H.state.fatArrowAt==H.stream.start&&(se=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+se[0].length),k(Lt)}else{if(T=="number"||T=="string")return H.marked=d?"property":H.style+" property",k(Lt);if(T=="jsonld-keyword")return k(Lt);if(v&&ye(R))return H.marked="keyword",k(it);if(T=="[")return k(Ae,$n,ae("]"),Lt);if(T=="spread")return k(z,Lt);if(R=="*")return H.marked="keyword",k(it);if(T==":")return F(Lt)}}function lt(T){return T!="variable"?F(Lt):(H.marked="property",k(tr))}function Lt(T){if(T==":")return k(z);if(T=="(")return F(tr)}function ot(T,R,se){function ge(ee,_e){if(se?se.indexOf(ee)>-1:ee==","){var ft=H.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),k(function(Ut,mn){return Ut==R||mn==R?F():F(T)},ge)}return ee==R||_e==R?k():se&&se.indexOf(";")>-1?F(T):k(ae(R))}return function(ee,_e){return ee==R||_e==R?k():F(T,ge)}}function Wt(T,R,se){for(var ge=3;ge<arguments.length;ge++)H.cc.push(arguments[ge]);return k(Le(R,se),ot(T,R),Y)}function zt(T){return T=="}"?k():F(he,zt)}function $n(T,R){if(v){if(T==":")return k(Je);if(R=="?")return k($n)}}function Mr(T,R){if(v&&(T==":"||R=="in"))return k(Je)}function Ot(T){if(v&&T==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ae,Pn,Je):k(Je)}function Pn(T,R){if(R=="is")return H.marked="keyword",k()}function Je(T,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return H.marked="keyword",k(R=="typeof"?z:Je);if(T=="variable"||R=="void")return H.marked="type",k(er);if(R=="|"||R=="&")return k(Je);if(T=="string"||T=="number"||T=="atom")return k(er);if(T=="[")return k(Le("]"),ot(Je,"]",","),Y,er);if(T=="{")return k(Le("}"),ze,Y,er);if(T=="(")return k(ot(Mt,")"),Ea,er);if(T=="<")return k(ot(Je,">"),Je);if(T=="quasi")return F(nn,er)}function Ea(T){if(T=="=>")return k(Je)}function ze(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(ze):F(Zr,ze)}function Zr(T,R){if(T=="variable"||H.style=="keyword")return H.marked="property",k(Zr);if(R=="?"||T=="number"||T=="string")return k(Zr);if(T==":")return k(Je);if(T=="[")return k(ae("variable"),Mr,ae("]"),Zr);if(T=="(")return F(_i,Zr);if(!T.match(/[;\}\)\],]/))return k()}function nn(T,R){return T!="quasi"?F():R.slice(R.length-2)!="${"?k(nn):k(Je,At)}function At(T){if(T=="}")return H.marked="string-2",H.state.tokenize=W,k(nn)}function Mt(T,R){return T=="variable"&&H.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Mt):T==":"?k(Je):T=="spread"?k(Mt):F(Je)}function er(T,R){if(R=="<")return k(Le(">"),ot(Je,">"),Y,er);if(R=="|"||T=="."||R=="&")return k(Je);if(T=="[")return k(Je,ae("]"),er);if(R=="extends"||R=="implements")return H.marked="keyword",k(Je);if(R=="?")return k(Je,ae(":"),Je)}function On(T,R){if(R=="<")return k(Le(">"),ot(Je,">"),Y,er)}function lr(){return F(Je,rn)}function rn(T,R){if(R=="=")return k(Je)}function Fo(T,R){return R=="enum"?(H.marked="keyword",k(Oe)):F(vn,$n,ar,Xu)}function vn(T,R){if(v&&ye(R))return H.marked="keyword",k(vn);if(T=="variable")return V(R),k();if(T=="spread")return k(vn);if(T=="[")return Wt(Ws,"]");if(T=="{")return Wt(xi,"}")}function xi(T,R){return T=="variable"&&!H.stream.match(/^\s*:/,!1)?(V(R),k(ar)):(T=="variable"&&(H.marked="property"),T=="spread"?k(vn):T=="}"?F():T=="["?k(Ae,ae("]"),ae(":"),xi):k(ae(":"),vn,ar))}function Ws(){return F(vn,ar)}function ar(T,R){if(R=="=")return k(z)}function Xu(T){if(T==",")return k(Fo)}function Ho(T,R){if(T=="keyword b"&&R=="else")return k(Le("form","else"),he,Y)}function La(T,R){if(R=="await")return k(La);if(T=="(")return k(Le(")"),Us,Y)}function Us(T){return T=="var"?k(Fo,Si):T=="variable"?k(Si):F(Si)}function Si(T,R){return T==")"?k():T==";"?k(Si):R=="in"||R=="of"?(H.marked="keyword",k(Ae,Si)):F(Ae,Si)}function tr(T,R){if(R=="*")return H.marked="keyword",k(tr);if(T=="variable")return V(R),k(tr);if(T=="(")return k(nt,Le(")"),ot(cr,")"),Y,Ot,he,Xe);if(v&&R=="<")return k(Le(">"),ot(lr,">"),Y,tr)}function _i(T,R){if(R=="*")return H.marked="keyword",k(_i);if(T=="variable")return V(R),k(_i);if(T=="(")return k(nt,Le(")"),ot(cr,")"),Y,Ot,Xe);if(v&&R=="<")return k(Le(">"),ot(lr,">"),Y,_i)}function Aa(T,R){if(T=="keyword"||T=="variable")return H.marked="type",k(Aa);if(R=="<")return k(Le(">"),ot(lr,">"),Y)}function cr(T,R){return R=="@"&&k(Ae,cr),T=="spread"?k(cr):v&&ye(R)?(H.marked="keyword",k(cr)):v&&T=="this"?k($n,ar):F(vn,$n,ar)}function Yu(T,R){return T=="variable"?qo(T,R):ur(T,R)}function qo(T,R){if(T=="variable")return V(R),k(ur)}function ur(T,R){if(R=="<")return k(Le(">"),ot(lr,">"),Y,ur);if(R=="extends"||R=="implements"||v&&T==",")return R=="implements"&&(H.marked="keyword"),k(v?Je:Ae,ur);if(T=="{")return k(Le("}"),fr,Y)}function fr(T,R){if(T=="async"||T=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",k(fr);if(T=="variable"||H.style=="keyword")return H.marked="property",k(so,fr);if(T=="number"||T=="string")return k(so,fr);if(T=="[")return k(Ae,$n,ae("]"),so,fr);if(R=="*")return H.marked="keyword",k(fr);if(v&&T=="(")return F(_i,fr);if(T==";"||T==",")return k(fr);if(T=="}")return k();if(R=="@")return k(Ae,fr)}function so(T,R){if(R=="!"||R=="?")return k(so);if(T==":")return k(Je,ar);if(R=="=")return k(z);var se=H.state.lexical.prev,ge=se&&se.info=="interface";return F(ge?_i:tr)}function Bo(T,R){return R=="*"?(H.marked="keyword",k(Vo,ae(";"))):R=="default"?(H.marked="keyword",k(Ae,ae(";"))):T=="{"?k(ot(Wo,"}"),Vo,ae(";")):F(he)}function Wo(T,R){if(R=="as")return H.marked="keyword",k(ae("variable"));if(T=="variable")return F(z,Wo)}function ki(T){return T=="string"?k():T=="("?F(Ae):T=="."?F(fe):F(Uo,Nr,Vo)}function Uo(T,R){return T=="{"?Wt(Uo,"}"):(T=="variable"&&V(R),R=="*"&&(H.marked="keyword"),k(Vs))}function Nr(T){if(T==",")return k(Uo,Nr)}function Vs(T,R){if(R=="as")return H.marked="keyword",k(Uo)}function Vo(T,R){if(R=="from")return H.marked="keyword",k(Ae)}function Nt(T){return T=="]"?k():F(ot(z,"]"))}function Oe(){return F(Le("form"),vn,ae("{"),Le("}"),ot(Jr,"}"),Y,Y)}function Jr(){return F(vn,ar)}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!=O&&T.eatSpace())return null;var se=R.tokenize(T,R);return C=="comment"?se:(R.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,J(R,se,C,E,T))},indent:function(T,R){if(T.tokenize==O||T.tokenize==W)return r.Pass;if(T.tokenize!=P)return 0;var se=R&&R.charAt(0),ge=T.lexical,ee;if(!/^\s*else\b/.test(R))for(var _e=T.cc.length-1;_e>=0;--_e){var ft=T.cc[_e];if(ft==Y)ge=ge.prev;else if(ft!=Ho&&ft!=Xe)break}for(;(ge.type=="stat"||ge.type=="form")&&(se=="}"||(ee=T.cc[T.cc.length-1])&&(ee==fe||ee==ce)&&!/^[,\.=+\-*:?[\(]/.test(R));)ge=ge.prev;f&&ge.type==")"&&ge.prev.type=="stat"&&(ge=ge.prev);var Ut=ge.type,mn=se==Ut;return Ut=="vardef"?ge.indented+(T.lastType=="operator"||T.lastType==","?ge.info.length+1:0):Ut=="form"&&se=="{"?ge.indented:Ut=="form"?ge.indented+c:Ut=="stat"?ge.indented+(js(T,R)?f||c:0):ge.info=="switch"&&!mn&&s.doubleIndentSwitch!=!1?ge.indented+(/^(?:case|default)\b/.test(R)?c:2*c):ge.align?ge.column+(mn?0:1):ge.indented+(mn?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){J(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 Nue=Mue.exports,$ue={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(C("atom","]]>")):null:k.match("--")?V(C("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),V(E(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=C("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=A(V),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(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 C(k,B){return function(V,ie){for(;!V.eol();){if(V.match(B)){ie.tokenize=w;break}V.next()}return k}}function E(k){return function(B,V){for(var ie;(ie=B.next())!=null;){if(ie=="<")return V.tokenize=E(k+1),V.tokenize(B,V);if(ie==">")if(k==1){V.tokenize=w;break}else return V.tokenize=E(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 O(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",J;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))?O(V,ie):(O(V,ie),V.context=new P(V,ie,ye==V.indented)),W}return b="error",te}function J(k,B,V){return k=="equals"?H:(h.allowMissing||(b="error"),te(k,B,V))}function H(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(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==H&&(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 Pue=$ue.exports;(function(e,t){(function(r){r(Bs,Pue,Nue)})(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 A=d.indent(w,"","");return w.tagName=M,A}function v(w,M){return M.context.mode==d?m(w,M,M.context):b(w,M,M.context)}function m(w,M,A){if(A.depth==2)return w.match(/^.*?\*\//)?A.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(A.state);var C=p(A.state),E=A.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=c.indentUnit:A.prev.state.lexical&&(C=A.prev.state.lexical.indented)}else A.depth==1&&(C+=c.indentUnit);return M.context=new o(r.startState(h,C),h,0,M.context),null}if(A.depth==1){if(w.peek()=="<")return d.skipAttribute(A.state),M.context=new o(r.startState(d,p(A.state)),d,0,M.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return A.depth=2,v(w,M)}var N=d.token(w,A.state),P=w.current(),L;return/\btag\b/.test(N)?/>$/.test(P)?A.state.context?A.depth=0:M.context=M.context.prev:/^</.test(P)&&(A.depth=1):!N&&(L=P.indexOf("{"))>-1&&w.backUp(P.length-L),N}function b(w,M,A){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,A.state))return M.context=new o(r.startState(d,h.indent(A.state,"","")),d,0,M.context),h.skipExpression(A.state),null;var C=h.token(w,A.state);if(!C&&A.depth!=null){var E=w.current();E=="{"?A.depth++:E=="}"&&--A.depth==0&&(M.context=M.context.prev)}return C}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,A){return w.context.mode.indent(w.context.state,M,A)},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 A(){r.off(document,"mousemove",C),r.off(document,"mouseup",A)}function C(E){if(E.which!=1)return A();p.moveTo(M+(E[b]-w)*(p.total/p.size))}r.on(document,"mousemove",C),r.on(document,"mouseup",A)}),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=Gr();function Oue(e,t,r={}){const o=Aue.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Dt(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 Rue(e){var t;uw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const Due={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Gw=ut({__name:"CodeMirrorContainer",props:Vc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Vc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Mh(e,"modelValue"),s=ak(),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=Be();return Hs(async()=>{const d=Oue(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",Due,[Z("textarea",{ref_key:"el",ref:f},null,512)]))}}),zue=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Be(""),c=Gr(void 0),f=Be(!1),d=Be(!0);Dt(()=>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{cn(()=>d.value=!1)}},{immediate:!0}),Dt(()=>[d.value,r.file,aw.value],([L,O,W])=>{L||(W!=null?cn(()=>{var re;const U={line:W??0,ch:0};(re=rr.value)==null||re.scrollIntoView(U,100),cn(()=>{var Q,G;(Q=rr.value)==null||Q.focus(),(G=rr.value)==null||G.setCursor(U)})}):cn(()=>{var U;(U=rr.value)==null||U.focus()}))},{flush:"post"});const h=ke(()=>{var L,O;return((O=(L=r.file)==null?void 0:L.filepath)==null?void 0:O.split(/\./g).pop())||"js"}),p=Be(),v=ke(()=>{var L;return(L=p.value)==null?void 0:L.cm}),m=ke(()=>{var L;return((L=r.file)==null?void 0:L.tasks.filter(O=>{var W;return((W=O.result)==null?void 0:W.state)==="fail"}))||[]}),b=[],w=[],M=[],A=Be(!1);function C(){M.forEach(([L,O,W])=>{L.removeEventListener("click",O),W()}),M.length=0}ME(p,()=>{var L;(L=rr.value)==null||L.refresh()});function E(){f.value=c.value!==rr.value.getValue()}Dt(f,L=>{o("draft",L)},{immediate:!0});function N(L){const O=((L==null?void 0:L.stacks)||[]).filter(te=>{var J;return te.file&&te.file===((J=r.file)==null?void 0:J.filepath)}),W=O==null?void 0:O[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",Cb(Q,{content:"Open in Editor",placement:"bottom"},!1);const G=async()=>{await Ow(W.file,W.line,W.column)};U.appendChild(Q),M.push([Q,G,()=>zh(Q)]),w.push(rr.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),b.push(rr.value.addLineWidget(W.line-1,U))}Dt([v,m],([L])=>{if(!L){C();return}setTimeout(()=>{C(),b.forEach(O=>O.clear()),w.forEach(O=>{var W;return(W=rr.value)==null?void 0:W.removeLineClass(O,"wrap")}),b.length=0,w.length=0,L.on("changes",E),m.value.forEach(O=>{var W,U;(U=(W=O.result)==null?void 0:W.errors)==null||U.forEach(N)}),A.value||L.clearHistory()},100)},{flush:"post"});async function P(L){A.value=!0,await wt.rpc.saveTestFile(r.file.filepath,L),c.value=L,f.value=!1}return(L,O)=>{const W=Gw;return oe(),tt(W,hi({ref_key:"editor",ref:p,modelValue:I(s),"onUpdate:modelValue":O[0]||(O[0]=U=>Et(s)?s.value=U:null),"h-full":""},{lineNumbers:!0,readOnly:I(Ur)},{mode:I(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Iue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Fue={"p-4":"",relative:""},Hue={op50:"","font-mono":"","text-sm":""},que={key:0,"p-5":""},Bue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Wue={key:0},Uue={p:"x3 y-1","bg-overlay":"",border:"base b t"},Vue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=vE(()=>wt.rpc.getTransformResult(r.projectName,r.id,!!Do)),c=ke(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=ke(()=>{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 Gb("Escape",()=>{o("close")}),(p,v)=>{const m=wi,b=Gw;return oe(),me("div",Iue,[Z("div",Fue,[v[1]||(v[1]=Z("p",null,"Module Info",-1)),Z("p",Hue,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},[Z("div",Bue,[v[2]||(v[2]=Z("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=Z("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",Wue,[Z("div",Uue," 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"])])):Ke("",!0)],64)):(oe(),me("div",que," No transform result found for this module. "))])}}});function jue(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 qm={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 Uu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),qm.hasOwnProperty(t)?{space:qm[t],local:e}:e}function Gue(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 Kue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Kw(e){var t=Uu(e);return(t.local?Kue:Gue)(t)}function Xue(){}function Yh(e){return e==null?Xue:function(){return this.querySelector(e)}}function Yue(e){typeof e!="function"&&(e=Yh(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 Zue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Jue(){return[]}function Xw(e){return e==null?Jue:function(){return this.querySelectorAll(e)}}function Que(e){return function(){return Zue(e.apply(this,arguments))}}function efe(e){typeof e=="function"?e=Que(e):e=Xw(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 Yw(e){return function(){return this.matches(e)}}function Zw(e){return function(t){return t.matches(e)}}var tfe=Array.prototype.find;function nfe(e){return function(){return tfe.call(this.children,e)}}function rfe(){return this.firstElementChild}function ife(e){return this.select(e==null?rfe:nfe(typeof e=="function"?e:Zw(e)))}var ofe=Array.prototype.filter;function sfe(){return Array.from(this.children)}function lfe(e){return function(){return ofe.call(this.children,e)}}function afe(e){return this.selectAll(e==null?sfe:lfe(typeof e=="function"?e:Zw(e)))}function cfe(e){typeof e!="function"&&(e=Yw(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 Jw(e){return new Array(e.length)}function ufe(){return new Qn(this._enter||this._groups.map(Jw),this._parents)}function uu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uu.prototype={constructor:uu,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 ffe(e){return function(){return e}}function dfe(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 uu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function hfe(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 uu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function pfe(e){return e.__data__}function gfe(e,t){if(!arguments.length)return Array.from(this,pfe);var r=t?hfe:dfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=ffe(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=vfe(e.call(v,v&&v.__data__,p,o)),M=w.length,A=d[p]=new Array(M),C=f[p]=new Array(M),E=h[p]=new Array(b);r(v,m,A,C,E,w,t);for(var N=0,P=0,L,O;N<M;++N)if(L=A[N]){for(N>=P&&(P=N+1);!(O=C[P])&&++P<M;);L._next=O||null}}return f=new Qn(f,o),f._enter=d,f._exit=h,f}function vfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function mfe(){return new Qn(this._exit||this._groups.map(Jw),this._parents)}function yfe(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 bfe(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 wfe(){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 xfe(e){e||(e=Sfe);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 Sfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function _fe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kfe(){return Array.from(this)}function Tfe(){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 Cfe(){let e=0;for(const t of this)++e;return e}function Efe(){return!this.node()}function Lfe(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 Afe(e){return function(){this.removeAttribute(e)}}function Mfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nfe(e,t){return function(){this.setAttribute(e,t)}}function $fe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Pfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Ofe(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 Rfe(e,t){var r=Uu(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?Mfe:Afe:typeof t=="function"?r.local?Ofe:Pfe:r.local?$fe:Nfe)(r,t))}function Qw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Dfe(e){return function(){this.style.removeProperty(e)}}function zfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Ife(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Ffe(e,t,r){return arguments.length>1?this.each((t==null?Dfe:typeof t=="function"?Ife:zfe)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||Qw(e).getComputedStyle(e,null).getPropertyValue(t)}function Hfe(e){return function(){delete this[e]}}function qfe(e,t){return function(){this[e]=t}}function Bfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Wfe(e,t){return arguments.length>1?this.each((t==null?Hfe:typeof t=="function"?Bfe:qfe)(e,t)):this.node()[e]}function e1(e){return e.trim().split(/^|\s+/)}function Zh(e){return e.classList||new t1(e)}function t1(e){this._node=e,this._names=e1(e.getAttribute("class")||"")}t1.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 n1(e,t){for(var r=Zh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function r1(e,t){for(var r=Zh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Ufe(e){return function(){n1(this,e)}}function Vfe(e){return function(){r1(this,e)}}function jfe(e,t){return function(){(t.apply(this,arguments)?n1:r1)(this,e)}}function Gfe(e,t){var r=e1(e+"");if(arguments.length<2){for(var o=Zh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?jfe:t?Ufe:Vfe)(r,t))}function Kfe(){this.textContent=""}function Xfe(e){return function(){this.textContent=e}}function Yfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Zfe(e){return arguments.length?this.each(e==null?Kfe:(typeof e=="function"?Yfe:Xfe)(e)):this.node().textContent}function Jfe(){this.innerHTML=""}function Qfe(e){return function(){this.innerHTML=e}}function ede(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function tde(e){return arguments.length?this.each(e==null?Jfe:(typeof e=="function"?ede:Qfe)(e)):this.node().innerHTML}function nde(){this.nextSibling&&this.parentNode.appendChild(this)}function rde(){return this.each(nde)}function ide(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ode(){return this.each(ide)}function sde(e){var t=typeof e=="function"?e:Kw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function lde(){return null}function ade(e,t){var r=typeof e=="function"?e:Kw(e),o=t==null?lde:typeof t=="function"?t:Yh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function cde(){var e=this.parentNode;e&&e.removeChild(this)}function ude(){return this.each(cde)}function fde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function dde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function hde(e){return this.select(e?dde:fde)}function pde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function gde(e){return function(t){e.call(this,t,this.__data__)}}function vde(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 mde(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 yde(e,t,r){return function(){var o=this.__on,s,c=gde(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 bde(e,t,r){var o=vde(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?yde:mde,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function i1(e,t,r){var o=Qw(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 wde(e,t){return function(){return i1(this,e,t)}}function xde(e,t){return function(){return i1(this,e,t.apply(this,arguments))}}function Sde(e,t){return this.each((typeof t=="function"?xde:wde)(e,t))}function*_de(){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 o1=[null];function Qn(e,t){this._groups=e,this._parents=t}function ka(){return new Qn([[document.documentElement]],o1)}function kde(){return this}Qn.prototype=ka.prototype={constructor:Qn,select:Yue,selectAll:efe,selectChild:ife,selectChildren:afe,filter:cfe,data:gfe,enter:ufe,exit:mfe,join:yfe,merge:bfe,selection:kde,order:wfe,sort:xfe,call:_fe,nodes:kfe,node:Tfe,size:Cfe,empty:Efe,each:Lfe,attr:Rfe,style:Ffe,property:Wfe,classed:Gfe,text:Zfe,html:tde,raise:rde,lower:ode,append:sde,insert:ade,remove:ude,clone:hde,datum:pde,on:bde,dispatch:Sde,[Symbol.iterator]:_de};function Hn(e){return typeof e=="string"?new Qn([[document.querySelector(e)]],[document.documentElement]):new Qn([[e]],o1)}function Tde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ci(e,t){if(e=Tde(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 Cn{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new Cn(t,r)}add(t){return new Cn(this.x+t.x,this.y+t.y)}subtract(t){return new Cn(this.x-t.x,this.y-t.y)}multiply(t){return new Cn(this.x*t,this.y*t)}divide(t){return new Cn(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 Cn(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 Cn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Cn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Cde={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 Oc(r)}function Oc(e){this._=e}function Ede(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Oc.prototype=Ta.prototype={constructor:Oc,on:function(e,t){var r=this._,o=Ede(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Lde(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]=Bm(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Bm(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 Oc(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 Lde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Bm(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Cde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ade={passive:!1},oa={capture:!0,passive:!1};function ud(e){e.stopImmediatePropagation()}function Ls(e){e.preventDefault(),e.stopImmediatePropagation()}function s1(e){var t=e.document.documentElement,r=Hn(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 l1(e,t){var r=e.document.documentElement,o=Hn(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 yc=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 Mde(e){return!e.ctrlKey&&!e.button}function Nde(){return this.parentNode}function $de(e,t){return t??{x:e.x,y:e.y}}function Pde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ode(){var e=Mde,t=Nde,r=$de,o=Pde,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",C).on("touchmove.drag",E,Ade).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(L,O){if(!(v||!e.call(this,L,O))){var W=P(this,t.call(this,L,O),L,O,"mouse");W&&(Hn(L.view).on("mousemove.drag",M,oa).on("mouseup.drag",A,oa),s1(L.view),ud(L),p=!1,d=L.clientX,h=L.clientY,W("start",L))}}function M(L){if(Ls(L),!p){var O=L.clientX-d,W=L.clientY-h;p=O*O+W*W>m}s.mouse("drag",L)}function A(L){Hn(L.view).on("mousemove.drag mouseup.drag",null),l1(L.view,p),Ls(L),s.mouse("end",L)}function C(L,O){if(e.call(this,L,O)){var W=L.changedTouches,U=t.call(this,L,O),re=W.length,Q,G;for(Q=0;Q<re;++Q)(G=P(this,U,L,O,W[Q].identifier,W[Q]))&&(ud(L),G("start",L,W[Q]))}}function E(L){var O=L.changedTouches,W=O.length,U,re;for(U=0;U<W;++U)(re=s[O[U].identifier])&&(Ls(L),re("drag",L,O[U]))}function N(L){var O=L.changedTouches,W=O.length,U,re;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<W;++U)(re=s[O[U].identifier])&&(ud(L),re("end",L,O[U]))}function P(L,O,W,U,re,Q){var G=c.copy(),te=ci(Q||W,O),J,H,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 J=F.x-te[0]||0,H=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=ci(ie||V,O),Ne=f;break}G.call(B,L,new Yd(B,{sourceEvent:V,subject:F,target:b,identifier:re,active:Ne,x:te[0]+J,y:te[1]+H,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:yc(!!L),b):e},b.container=function(L){return arguments.length?(t=typeof L=="function"?L:yc(L),b):t},b.subject=function(L){return arguments.length?(r=typeof L=="function"?L:yc(L),b):r},b.touchable=function(L){return arguments.length?(o=typeof L=="function"?L:yc(!!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 Jh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function a1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ca(){}var sa=.7,fu=1/sa,As="\\s*([+-]?\\d+)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rde=/^#([0-9a-f]{3,8})$/,Dde=new RegExp(`^rgb\\(${As},${As},${As}\\)$`),zde=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),Ide=new RegExp(`^rgba\\(${As},${As},${As},${la}\\)$`),Fde=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${la}\\)$`),Hde=new RegExp(`^hsl\\(${la},${Vr},${Vr}\\)$`),qde=new RegExp(`^hsla\\(${la},${Vr},${Vr},${la}\\)$`),Wm={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};Jh(Ca,aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Um,formatHex:Um,formatHex8:Bde,formatHsl:Wde,formatRgb:Vm,toString:Vm});function Um(){return this.rgb().formatHex()}function Bde(){return this.rgb().formatHex8()}function Wde(){return c1(this).formatHsl()}function Vm(){return this.rgb().formatRgb()}function aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Rde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?jm(t):r===3?new Bn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?bc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?bc(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=Dde.exec(e))?new Bn(t[1],t[2],t[3],1):(t=zde.exec(e))?new Bn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ide.exec(e))?bc(t[1],t[2],t[3],t[4]):(t=Fde.exec(e))?bc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hde.exec(e))?Xm(t[1],t[2]/100,t[3]/100,1):(t=qde.exec(e))?Xm(t[1],t[2]/100,t[3]/100,t[4]):Wm.hasOwnProperty(e)?jm(Wm[e]):e==="transparent"?new Bn(NaN,NaN,NaN,0):null}function jm(e){return new Bn(e>>16&255,e>>8&255,e&255,1)}function bc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Bn(e,t,r,o)}function Ude(e){return e instanceof Ca||(e=aa(e)),e?(e=e.rgb(),new Bn(e.r,e.g,e.b,e.opacity)):new Bn}function Zd(e,t,r,o){return arguments.length===1?Ude(e):new Bn(e,t,r,o??1)}function Bn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Jh(Bn,Zd,a1(Ca,{brighter(e){return e=e==null?fu:Math.pow(fu,e),new Bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new Bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Bn(No(this.r),No(this.g),No(this.b),du(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:Gm,formatHex:Gm,formatHex8:Vde,formatRgb:Km,toString:Km}));function Gm(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function Vde(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function Km(){const e=du(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function du(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 Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function Xm(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new br(e,t,r,o)}function c1(e){if(e instanceof br)return new br(e.h,e.s,e.l,e.opacity);if(e instanceof Ca||(e=aa(e)),!e)return new br;if(e instanceof br)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 br(f,d,h,e.opacity)}function jde(e,t,r,o){return arguments.length===1?c1(e):new br(e,t,r,o??1)}function br(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Jh(br,jde,a1(Ca,{brighter(e){return e=e==null?fu:Math.pow(fu,e),new br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new br(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 Bn(fd(e>=240?e-240:e+120,s,o),fd(e,s,o),fd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new br(Ym(this.h),wc(this.s),wc(this.l),du(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=du(this.opacity);return`${e===1?"hsl(":"hsla("}${Ym(this.h)}, ${wc(this.s)*100}%, ${wc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ym(e){return e=(e||0)%360,e<0?e+360:e}function wc(e){return Math.max(0,Math.min(1,e||0))}function fd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const u1=e=>()=>e;function Gde(e,t){return function(r){return e+r*t}}function Kde(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 Xde(e){return(e=+e)==1?f1:function(t,r){return r-t?Kde(t,r,e):u1(isNaN(t)?r:t)}}function f1(e,t){var r=t-e;return r?Gde(e,r):u1(isNaN(e)?t:e)}const Zm=function e(t){var r=Xde(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=f1(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,dd=new RegExp(Jd.source,"g");function Yde(e){return function(){return e}}function Zde(e){return function(t){return e(t)+""}}function Jde(e,t){var r=Jd.lastIndex=dd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Jd.exec(e))&&(s=dd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Ui(o,s)})),r=dd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Zde(h[0].x):Yde(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 Jm=180/Math.PI,Qd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function d1(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)*Jm,skewX:Math.atan(h)*Jm,scaleX:f,scaleY:d}}var xc;function Qde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Qd:d1(t.a,t.b,t.c,t.d,t.e,t.f)}function ehe(e){return e==null||(xc||(xc=document.createElementNS("http://www.w3.org/2000/svg","g")),xc.setAttribute("transform",e),!(e=xc.transform.baseVal.consolidate()))?Qd:(e=e.matrix,d1(e.a,e.b,e.c,e.d,e.e,e.f))}function h1(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 A=w.push("translate(",null,t,null,r);M.push({i:A-4,x:Ui(p,m)},{i:A-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 A=w.push(s(w)+"scale(",null,",",null,")");M.push({i:A-4,x:Ui(p,m)},{i:A-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,A=b.length,C;++M<A;)m[(C=b[M]).i]=C.x(w);return m.join("")}}}var the=h1(Qde,"px, ","px)","deg)"),nhe=h1(ehe,", ",")",")"),rhe=1e-12;function Qm(e){return((e=Math.exp(e))+1/e)/2}function ihe(e){return((e=Math.exp(e))-1/e)/2}function ohe(e){return((e=Math.exp(2*e))-1)/(e+1)}const she=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,A=w*w+M*M,C,E;if(A<rhe)E=Math.log(b/p)/t,C=function(U){return[d+U*w,h+U*M,p*Math.exp(t*U*E)]};else{var N=Math.sqrt(A),P=(b*b-p*p+o*A)/(2*p*r*N),L=(b*b-p*p-o*A)/(2*b*r*N),O=Math.log(Math.sqrt(P*P+1)-P),W=Math.log(Math.sqrt(L*L+1)-L);E=(W-O)/t,C=function(U){var re=U*E,Q=Qm(O),G=p/(r*N)*(Q*ohe(t*re+O)-ihe(O));return[d+G*w,h+G*M,p*Q/Qm(t*re+O)]}}return C.duration=E*1e3*t/Math.SQRT2,C}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 zs=0,Ll=0,kl=0,p1=1e3,hu,Al,pu=0,zo=0,Vu=0,ca=typeof performance=="object"&&performance.now?performance:Date,g1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Qh(){return zo||(g1(lhe),zo=ca.now()+Vu)}function lhe(){zo=0}function gu(){this._call=this._time=this._next=null}gu.prototype=ep.prototype={constructor:gu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Qh():+r)+(t==null?0:+t),!this._next&&Al!==this&&(Al?Al._next=this:hu=this,Al=this),this._call=e,this._time=r,eh()},stop:function(){this._call&&(this._call=null,this._time=1/0,eh())}};function ep(e,t,r){var o=new gu;return o.restart(e,t,r),o}function ahe(){Qh(),++zs;for(var e=hu,t;e;)(t=zo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function e0(){zo=(pu=ca.now())+Vu,zs=Ll=0;try{ahe()}finally{zs=0,uhe(),zo=0}}function che(){var e=ca.now(),t=e-pu;t>p1&&(Vu-=t,pu=e)}function uhe(){for(var e,t=hu,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:hu=r);Al=e,eh(o)}function eh(e){if(!zs){Ll&&(Ll=clearTimeout(Ll));var t=e-zo;t>24?(e<1/0&&(Ll=setTimeout(e0,e-ca.now()-Vu)),kl&&(kl=clearInterval(kl))):(kl||(pu=ca.now(),kl=setInterval(che,p1)),zs=1,g1(e0))}}function t0(e,t,r){var o=new gu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var fhe=Ta("start","end","cancel","interrupt"),dhe=[],v1=0,n0=1,th=2,Rc=3,r0=4,nh=5,Dc=6;function ju(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;hhe(e,r,{name:t,index:o,group:s,on:fhe,tween:dhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:v1})}function tp(e,t){var r=Ar(e,t);if(r.state>v1)throw new Error("too late; already scheduled");return r}function Yr(e,t){var r=Ar(e,t);if(r.state>Rc)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 hhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=ep(c,0,r.time);function c(p){r.state=n0,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!==n0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Rc)return t0(f);w.state===r0?(w.state=Dc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Dc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(t0(function(){r.state===Rc&&(r.state=r0,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=Rc,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=Dc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function zc(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=Dc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function phe(e){return this.each(function(){zc(this,e)})}function ghe(e,t){var r,o;return function(){var s=Yr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function vhe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Yr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function mhe(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?ghe:vhe)(r,e,t))}function np(e,t,r){var o=e._id;return e.each(function(){var s=Yr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ar(s,o).value[t]}}function m1(e,t){var r;return(typeof t=="number"?Ui:t instanceof aa?Zm:(r=aa(t))?(t=r,Zm):Jde)(e,t)}function yhe(e){return function(){this.removeAttribute(e)}}function bhe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function whe(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 xhe(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 She(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 _he(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 khe(e,t){var r=Uu(e),o=r==="transform"?nhe:m1;return this.attrTween(e,typeof t=="function"?(r.local?_he:She)(r,o,np(this,"attr."+e,t)):t==null?(r.local?bhe:yhe)(r):(r.local?xhe:whe)(r,o,t))}function The(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Che(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ehe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Che(e,c)),r}return s._value=t,s}function Lhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&The(e,c)),r}return s._value=t,s}function Ahe(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=Uu(e);return this.tween(r,(o.local?Ehe:Lhe)(o,t))}function Mhe(e,t){return function(){tp(this,e).delay=+t.apply(this,arguments)}}function Nhe(e,t){return t=+t,function(){tp(this,e).delay=t}}function $he(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Mhe:Nhe)(t,e)):Ar(this.node(),t).delay}function Phe(e,t){return function(){Yr(this,e).duration=+t.apply(this,arguments)}}function Ohe(e,t){return t=+t,function(){Yr(this,e).duration=t}}function Rhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Phe:Ohe)(t,e)):Ar(this.node(),t).duration}function Dhe(e,t){if(typeof t!="function")throw new Error;return function(){Yr(this,e).ease=t}}function zhe(e){var t=this._id;return arguments.length?this.each(Dhe(t,e)):Ar(this.node(),t).ease}function Ihe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Yr(this,e).ease=r}}function Fhe(e){if(typeof e!="function")throw new Error;return this.each(Ihe(this._id,e))}function Hhe(e){typeof e!="function"&&(e=Yw(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 qhe(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 Bhe(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 Whe(e,t,r){var o,s,c=Bhe(t)?tp:Yr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Uhe(e,t){var r=this._id;return arguments.length<2?Ar(this.node(),r).on.on(e):this.each(Whe(r,e,t))}function Vhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function jhe(){return this.on("end.remove",Vhe(this._id))}function Ghe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yh(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,ju(p[b],t,r,b,p,Ar(v,r)));return new mi(c,this._parents,t,r)}function Khe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Xw(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),A=0,C=b.length;A<C;++A)(w=b[A])&&ju(w,t,r,A,b,M);c.push(b),f.push(v)}return new mi(c,f,t,r)}var Xhe=ka.prototype.constructor;function Yhe(){return new Xhe(this._groups,this._parents)}function Zhe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function y1(e){return function(){this.style.removeProperty(e)}}function Jhe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(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=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function epe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Yr(this,e),p=h.on,v=h.value[c]==null?d||(d=y1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function tpe(e,t,r){var o=(e+="")=="transform"?the:m1;return t==null?this.styleTween(e,Zhe(e,o)).on("end.style."+e,y1(e)):typeof t=="function"?this.styleTween(e,Qhe(e,o,np(this,"style."+e,t))).each(epe(this._id,e)):this.styleTween(e,Jhe(e,o,t),r).on("end.style."+e,null)}function npe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function rpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&npe(e,f,r)),o}return c._value=t,c}function ipe(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,rpe(e,t,r??""))}function ope(e){return function(){this.textContent=e}}function spe(e){return function(){var t=e(this);this.textContent=t??""}}function lpe(e){return this.tween("text",typeof e=="function"?spe(np(this,"text",e)):ope(e==null?"":e+""))}function ape(e){return function(t){this.textContent=e.call(this,t)}}function cpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ape(s)),t}return o._value=e,o}function upe(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,cpe(e))}function fpe(){for(var e=this._name,t=this._id,r=b1(),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);ju(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 dpe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Yr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var hpe=0;function mi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function b1(){return++hpe}var si=ka.prototype;mi.prototype={constructor:mi,select:Ghe,selectAll:Khe,selectChild:si.selectChild,selectChildren:si.selectChildren,filter:Hhe,merge:qhe,selection:Yhe,transition:fpe,call:si.call,nodes:si.nodes,node:si.node,size:si.size,empty:si.empty,each:si.each,on:Uhe,attr:khe,attrTween:Ahe,style:tpe,styleTween:ipe,text:lpe,textTween:upe,remove:jhe,tween:mhe,delay:$he,duration:Rhe,ease:zhe,easeVarying:Fhe,end:dpe,[Symbol.iterator]:si[Symbol.iterator]};function ppe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var gpe={time:null,delay:0,duration:250,ease:ppe};function vpe(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 mpe(e){var t,r;e instanceof mi?(t=e._id,e=e._name):(t=b1(),(r=gpe).time=Qh(),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])&&ju(h,e,t,p,f,r||vpe(h,t));return new mi(o,this._parents,e,t)}ka.prototype.interrupt=phe;ka.prototype.transition=mpe;const Sc=e=>()=>e;function ype(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 di(e,t,r){this.k=e,this.x=t,this.y=r}di.prototype={constructor:di,scale:function(e){return e===1?this:new di(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new di(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 rp=new di(1,0,0);di.prototype;function hd(e){e.stopImmediatePropagation()}function Tl(e){e.preventDefault(),e.stopImmediatePropagation()}function bpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wpe(){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 i0(){return this.__zoom||rp}function xpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Spe(){return navigator.maxTouchPoints||"ontouchstart"in this}function _pe(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 kpe(){var e=bpe,t=wpe,r=_pe,o=xpe,s=Spe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=she,p=Ta("start","zoom","end"),v,m,b,w=500,M=150,A=0,C=10;function E(F){F.property("__zoom",i0).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(F,k,B,V){var ie=F.selection?F.selection():F;ie.property("__zoom",i0),F!==ie?O(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()})},E.scaleBy=function(F,k,B,V){E.scaleTo(F,function(){var ie=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return ie*ye},B,V)},E.scaleTo=function(F,k,B,V){E.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,We=ye.invert(Ne),Ve=typeof k=="function"?k.apply(this,arguments):k;return r(P(N(ye,Ve),Ne,We),ie,f)},B,V)},E.translateBy=function(F,k,B,V){E.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)},E.translateTo=function(F,k,B,V,ie){E.transform(F,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=V==null?L(ye):typeof V=="function"?V.apply(this,arguments):V;return r(rp.translate(We[0],We[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 di(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 di(F.k,V,ie)}function L(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function O(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),We=t.apply(ie,ye),Ve=B==null?L(We):typeof B=="function"?B.apply(ie,ye):B,nt=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),et=ie.__zoom,Xe=typeof k=="function"?k.apply(ie,ye):k,Le=h(et.invert(Ve).concat(nt/et.k),Xe.invert(Ve).concat(nt/Xe.k));return function(Y){if(Y===1)Y=Xe;else{var ae=Le(Y),he=nt/ae[2];Y=new di(he,Ve[0]-ae[0]*he,Ve[1]-ae[1]*he)}Ne.zoom(null,Y)}})}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=Hn(this.that).datum();p.call(F,this.that,new ype(F,{sourceEvent:this.sourceEvent,target:E,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=ci(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)],zc(this),B.start()}Tl(F),B.wheel=setTimeout(Ne,M),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=Hn(F.view).on("mousemove.zoom",Ve,!0).on("mouseup.zoom",nt,!0),ye=ci(F,B),Ne=F.clientX,We=F.clientY;s1(F.view),hd(F),V.mouse=[ye,this.__zoom.invert(ye)],zc(this),V.start();function Ve(et){if(Tl(et),!V.moved){var Xe=et.clientX-Ne,Le=et.clientY-We;V.moved=Xe*Xe+Le*Le>A}V.event(et).zoom("mouse",r(P(V.that.__zoom,V.mouse[0]=ci(et,B),V.mouse[1]),V.extent,f))}function nt(et){ie.on("mousemove.zoom mouseup.zoom",null),l1(et.view,V.moved),Tl(et),V.event(et).end()}}function G(F,...k){if(e.apply(this,arguments)){var B=this.__zoom,V=ci(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?Hn(this).transition().duration(d).call(O,Ne,V,F):Hn(this).call(E.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,We,Ve;for(hd(F),Ne=0;Ne<V;++Ne)We=B[Ne],Ve=ci(We,this),Ve=[Ve,this.__zoom.invert(Ve),We.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==Ve[2]&&(ie.touch1=Ve,ie.taps=0):(ie.touch0=Ve,ye=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(ie.taps<2&&(m=Ve[0],v=setTimeout(function(){v=null},w)),zc(this),ie.start())}}function J(F,...k){if(this.__zooming){var B=W(this,k).event(F),V=F.changedTouches,ie=V.length,ye,Ne,We,Ve;for(Tl(F),ye=0;ye<ie;++ye)Ne=V[ye],We=ci(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=We:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=We);if(Ne=B.that.__zoom,B.touch1){var nt=B.touch0[0],et=B.touch0[1],Xe=B.touch1[0],Le=B.touch1[1],Y=(Y=Xe[0]-nt[0])*Y+(Y=Xe[1]-nt[1])*Y,ae=(ae=Le[0]-et[0])*ae+(ae=Le[1]-et[1])*ae;Ne=N(Ne,Math.sqrt(Y/ae)),We=[(nt[0]+Xe[0])/2,(nt[1]+Xe[1])/2],Ve=[(et[0]+Le[0])/2,(et[1]+Le[1])/2]}else if(B.touch0)We=B.touch0[0],Ve=B.touch0[1];else return;B.zoom("touch",r(P(Ne,We,Ve),B.extent,f))}}function H(F,...k){if(this.__zooming){var B=W(this,k).event(F),V=F.changedTouches,ie=V.length,ye,Ne;for(hd(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=ci(Ne,this),Math.hypot(m[0]-Ne[0],m[1]-Ne[1])<C)){var We=Hn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return E.wheelDelta=function(F){return arguments.length?(o=typeof F=="function"?F:Sc(+F),E):o},E.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Sc(!!F),E):e},E.touchable=function(F){return arguments.length?(s=typeof F=="function"?F:Sc(!!F),E):s},E.extent=function(F){return arguments.length?(t=typeof F=="function"?F:Sc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),E):t},E.scaleExtent=function(F){return arguments.length?(c[0]=+F[0],c[1]=+F[1],E):[c[0],c[1]]},E.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],E):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},E.constrain=function(F){return arguments.length?(r=F,E):r},E.duration=function(F){return arguments.length?(d=+F,E):d},E.interpolate=function(F){return arguments.length?(h=F,E):h},E.on=function(){var F=p.on.apply(p,arguments);return F===p?E:F},E.clickDistance=function(F){return arguments.length?(A=(F=+F)*F,E):Math.sqrt(A)},E.tapDistance=function(F){return arguments.length?(C=+F,E):C},E}function Tpe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return w1(this.cover(t,r),t,r,e)}function w1(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,A,C,E,N;if(!c)return e._root=f,e;for(;c.length;)if((A=t>=(m=(d+p)/2))?d=m:p=m,(C=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[E=C<<1|A]))return s[E]=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[E]=f:e._root=f,e;do s=s?s[E]=new Array(4):e._root=new Array(4),(A=t>=(m=(d+p)/2))?d=m:p=m,(C=r>=(b=(h+v)/2))?h=b:v=b;while((E=C<<1|A)===(N=(M>=b)<<1|w>=m));return s[N]=c,s[E]=f,e}function Cpe(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)w1(this,f[r],d[r],e[r]);return this}function Epe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Lpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ape(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 Ln(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Mpe(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,A;for(w&&b.push(new Ln(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 C=(f+h)/2,E=(d+p)/2;b.push(new Ln(w[3],C,E,h,p),new Ln(w[2],f,E,C,p),new Ln(w[1],C,d,h,E),new Ln(w[0],f,d,C,E)),(A=(t>=E)<<1|e>=C)&&(M=b[b.length-1],b[b.length-1]=b[b.length-1-A],b[b.length-1-A]=M)}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 O=Math.sqrt(r=L);s=e-O,c=t-O,v=e+O,m=t+O,o=w.data}}return o}function Npe(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,A,C,E;if(!r)return this;if(r.length)for(;;){if((M=v>=(b=(f+h)/2))?f=b:h=b,(A=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[C=A<<1|M]))return this;if(!r.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(o=t,E=C)}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[C]=c:delete t[C],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[E]=r:this._root=r),this):(this._root=c,this)}function $pe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Ppe(){return this._root}function Ope(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Rpe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Ln(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 Ln(s,p,v,d,h)),(s=o[2])&&t.push(new Ln(s,c,v,p,h)),(s=o[1])&&t.push(new Ln(s,p,f,d,v)),(s=o[0])&&t.push(new Ln(s,c,f,p,v))}return this}function Dpe(e){var t=[],r=[],o;for(this._root&&t.push(new Ln(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 Ln(c,f,d,v,m)),(c=s[1])&&t.push(new Ln(c,v,d,h,m)),(c=s[2])&&t.push(new Ln(c,f,m,v,p)),(c=s[3])&&t.push(new Ln(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 zpe(e){return e[0]}function Ipe(e){return arguments.length?(this._x=e,this):this._x}function Fpe(e){return e[1]}function Hpe(e){return arguments.length?(this._y=e,this):this._y}function ip(e,t,r){var o=new op(t??zpe,r??Fpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function op(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 o0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Nn=ip.prototype=op.prototype;Nn.copy=function(){var e=new op(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=o0(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]=o0(o));return e};Nn.add=Tpe;Nn.addAll=Cpe;Nn.cover=Epe;Nn.data=Lpe;Nn.extent=Ape;Nn.find=Mpe;Nn.remove=Npe;Nn.removeAll=$pe;Nn.root=Ppe;Nn.size=Ope;Nn.visit=Rpe;Nn.visitAfter=Dpe;Nn.x=Ipe;Nn.y=Hpe;function Mn(e){return function(){return e}}function Ki(e){return(e()-.5)*1e-6}function qpe(e){return e.x+e.vx}function Bpe(e){return e.y+e.vy}function Wpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Mn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,M,A,C,E=0;E<c;++E)for(m=ip(t,qpe,Bpe).visitAfter(d),p=0;p<v;++p)b=t[p],A=r[b.index],C=A*A,w=b.x+b.vx,M=b.y+b.vy,m.visit(N);function N(P,L,O,W,U){var re=P.data,Q=P.r,G=A+Q;if(re){if(re.index>b.index){var te=w-re.x-re.vx,J=M-re.y-re.vy,H=te*te+J*J;H<G*G&&(te===0&&(te=Ki(o),H+=te*te),J===0&&(J=Ki(o),H+=J*J),H=(G-(H=Math.sqrt(H)))/H*s,b.vx+=(te*=H)*(G=(Q*=Q)/(C+Q)),b.vy+=(J*=H)*G,re.vx-=te*(G=1-G),re.vy-=J*G)}return}return L>w+G||W<w-G||O>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:Mn(+p),h(),f):e},f}function Upe(e){return e.index}function s0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Vpe(e){var t=Upe,r=m,o,s=Mn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(C){return 1/Math.min(d[C.source.index],d[C.target.index])}function b(C){for(var E=0,N=e.length;E<v;++E)for(var P=0,L,O,W,U,re,Q,G;P<N;++P)L=e[P],O=L.source,W=L.target,U=W.x+W.vx-O.x-O.vx||Ki(p),re=W.y+W.vy-O.y-O.vy||Ki(p),Q=Math.sqrt(U*U+re*re),Q=(Q-c[P])/Q*C*o[P],U*=Q,re*=Q,W.vx-=U*(G=h[P]),W.vy-=re*G,O.vx+=U*(G=1-G),O.vy+=re*G}function w(){if(f){var C,E=f.length,N=e.length,P=new Map(f.map((O,W)=>[t(O,W,f),O])),L;for(C=0,d=new Array(E);C<N;++C)L=e[C],L.index=C,typeof L.source!="object"&&(L.source=s0(P,L.source)),typeof L.target!="object"&&(L.target=s0(P,L.target)),d[L.source.index]=(d[L.source.index]||0)+1,d[L.target.index]=(d[L.target.index]||0)+1;for(C=0,h=new Array(N);C<N;++C)L=e[C],h[C]=d[L.source.index]/(d[L.source.index]+d[L.target.index]);o=new Array(N),M(),c=new Array(N),A()}}function M(){if(f)for(var C=0,E=e.length;C<E;++C)o[C]=+r(e[C],C,e)}function A(){if(f)for(var C=0,E=e.length;C<E;++C)c[C]=+s(e[C],C,e)}return b.initialize=function(C,E){f=C,p=E,w()},b.links=function(C){return arguments.length?(e=C,w(),b):e},b.id=function(C){return arguments.length?(t=C,b):t},b.iterations=function(C){return arguments.length?(v=+C,b):v},b.strength=function(C){return arguments.length?(r=typeof C=="function"?C:Mn(+C),M(),b):r},b.distance=function(C){return arguments.length?(s=typeof C=="function"?C:Mn(+C),A(),b):s},b}const jpe=1664525,Gpe=1013904223,l0=4294967296;function Kpe(){let e=1;return()=>(e=(jpe*e+Gpe)%l0)/l0}function Xpe(e){return e.x}function Ype(e){return e.y}var Zpe=10,Jpe=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=ep(m),p=Ta("tick","end"),v=Kpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(A){var C,E=e.length,N;A===void 0&&(A=1);for(var P=0;P<A;++P)for(r+=(c-r)*s,d.forEach(function(L){L(r)}),C=0;C<E;++C)N=e[C],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 A=0,C=e.length,E;A<C;++A){if(E=e[A],E.index=A,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var N=Zpe*Math.sqrt(.5+A),P=A*Jpe;E.x=N*Math.cos(P),E.y=N*Math.sin(P)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function M(A){return A.initialize&&A.initialize(e,v),A}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(A){return arguments.length?(e=A,w(),d.forEach(M),t):e},alpha:function(A){return arguments.length?(r=+A,t):r},alphaMin:function(A){return arguments.length?(o=+A,t):o},alphaDecay:function(A){return arguments.length?(s=+A,t):+s},alphaTarget:function(A){return arguments.length?(c=+A,t):c},velocityDecay:function(A){return arguments.length?(f=1-A,t):1-f},randomSource:function(A){return arguments.length?(v=A,d.forEach(M),t):v},force:function(A,C){return arguments.length>1?(C==null?d.delete(A):d.set(A,M(C)),t):d.get(A)},find:function(A,C,E){var N=0,P=e.length,L,O,W,U,re;for(E==null?E=1/0:E*=E,N=0;N<P;++N)U=e[N],L=A-U.x,O=C-U.y,W=L*L+O*O,W<E&&(re=U,E=W);return re},on:function(A,C){return arguments.length>1?(p.on(A,C),t):p.on(A)}}}function ege(){var e,t,r,o,s=Mn(-30),c,f=1,d=1/0,h=.81;function p(w){var M,A=e.length,C=ip(e,Xpe,Ype).visitAfter(m);for(o=w,M=0;M<A;++M)t=e[M],C.visit(b)}function v(){if(e){var w,M=e.length,A;for(c=new Array(M),w=0;w<M;++w)A=e[w],c[A.index]=+s(A,w,e)}}function m(w){var M=0,A,C,E=0,N,P,L;if(w.length){for(N=P=L=0;L<4;++L)(A=w[L])&&(C=Math.abs(A.value))&&(M+=A.value,E+=C,N+=C*A.x,P+=C*A.y);w.x=N/E,w.y=P/E}else{A=w,A.x=A.data.x,A.y=A.data.y;do M+=c[A.data.index];while(A=A.next)}w.value=M}function b(w,M,A,C){if(!w.value)return!0;var E=w.x-t.x,N=w.y-t.y,P=C-M,L=E*E+N*N;if(P*P/h<L)return L<d&&(E===0&&(E=Ki(r),L+=E*E),N===0&&(N=Ki(r),L+=N*N),L<f&&(L=Math.sqrt(f*L)),t.vx+=E*w.value*o/L,t.vy+=N*w.value*o/L),!0;if(w.length||L>=d)return;(w.data!==t||w.next)&&(E===0&&(E=Ki(r),L+=E*E),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+=E*P,t.vy+=N*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:Mn(+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 tge(e){var t=Mn(.1),r,o,s;typeof e!="function"&&(e=Mn(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:Mn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Mn(+d),f(),c):e},c}function nge(e){var t=Mn(.1),r,o,s;typeof e!="function"&&(e=Mn(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:Mn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Mn(+d),f(),c):e},c}var rge=Object.defineProperty,ige=(e,t,r)=>t in e?rge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t,r)=>ige(e,typeof t!="symbol"?t+"":t,r);function oge(){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 a0(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]:a0(t[o])&&a0(r[o])?t[o]=Xi(t[o],r[o]):t[o]=r[o])}),t},{})}const x1={mergeArrays:!0};Xi.options=x1;Xi.withOptions=(e,...t)=>{Xi.options={mergeArrays:!0,...e};const r=Xi(...t);return Xi.options=x1,r};function sge(){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 lge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function _1(e){return typeof e=="number"}function ro(e,t){return _1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function age(e){return`${e.source.id}-${e.target.id}`}function k1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function cge(e){return`url(#${k1(e.color)})`}function uge(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 T1={Arrow:e=>uge(e)},fge=(e,t,r)=>[t/2,r/2],C1=(e,t,r)=>[c0(0,t),c0(0,r)];function c0(e,t){return Math.random()*(t-e)+e}function dge(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?C1(r,o,s):[c,f]}}const rh={Centered:fge,Randomized:C1,Stable:dge};function hge(){return{autoResize:!1,callbacks:{},hooks:{},initial:lge(),nodeRadius:16,marker:T1.Arrow(4),modifiers:{},positionInitializer:rh.Centered,simulation:{alphas:oge(),forces:sge()},zoom:{initial:1,min:.1,max:2}}}function pge(e={}){return Xi.withOptions({mergeArrays:!1},hge(),e)}function gge({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=>S1(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,rp.translate(c,f).scale(d)),p.append("g")}function vge({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function mge({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Ode().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),Hn(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),Hn(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 yge({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}:bge({nodes:d,links:c},r)}function bge(e,t){const r=[...wge(e,t),...xge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function wge(e,t){return E1(e,t,(r,o)=>r.target.id===o.id)}function xge(e,t){return E1(e,t,(r,o)=>r.source.id===o.id)}function E1(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 sp({source:e,target:t}){const r=new Cn(ih(e),oh(e)),o=new Cn(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 L1({center:e,node:t}){const r=new Cn(ih(t),oh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Cn(0,1))),{n:r,c:o}}function A1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=sp({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 Sge(e){const{start:t,end:r}=A1(e);return`M${t.x},${t.y}
|
|
45
|
+
L${r.x},${r.y}`}function _ge(e){const{start:t,end:r}=A1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function kge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=sp({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 Tge({center:e,config:t,node:r}){const{n:o,c:s}=L1({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 Cge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=sp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Ege({center:e,config:t,node:r}){const{n:o,c:s}=L1({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:_ge,path:Sge},arc:{labelTransform:Cge,path:kge},reflexive:{labelTransform:Ege,path:Tge}};function Lge(e){return e.append("g").classed("links",!0).selectAll("path")}function Age({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>age(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>cge(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 Mge(e){Nge(e),$ge(e)}function Nge({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}):M1(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 $ge({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}):M1(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 M1(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 Pge(e){return e.append("defs").selectAll("marker")}function Oge({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Rge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>k1(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",Dge(e.marker.path)),s})}function Rge(e){return[...new Set(e.links.map(t=>t.color))]}function Dge(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 zge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Ige({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const M=w.append("circle").classed("node",!0).attr("r",C=>ro(e,C)).on("contextmenu",(C,E)=>{S1(C),o(E)}).on("pointerdown",(C,E)=>Hge(C,E,s??o)).style("fill",C=>C.color);(v=(p=e.modifiers).node)==null||v.call(p,M);const A=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",C=>C.label?C.label.color:null).style("font-size",C=>C.label?C.label.fontSize:null).style("stroke","none").text(C=>C.label?C.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,A),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 Fge=500;function Hge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Fge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function qge(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Bge({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",tge(()=>e().x).strength(m)).force("y",nge(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",ege().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Wpe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",Vpe(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 Wge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=kpe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class Uge{constructor(t,r,o){if(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(jue(()=>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 Cn.of([this.width,this.height]).divide(2).subtract(Cn.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(_1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Oge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Age({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Ige({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Bge({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=Wge({config:this.config,canvasContainer:()=>Hn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=gge({applyZoom:this.scale!==1,container:Hn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Lge(this.canvas),this.nodeSelection=zge(this.canvas),this.markerSelection=Pge(this.canvas),this.drag=mge({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(){qge(this.nodeSelection),Mge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Hn(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(){vge({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=yge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function u0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Vge(e){return{...e}}function N1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const jge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Gge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Kge=["id","checked","onChange"],Xge=["for"],Yge=ut({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=R_(t),o=Be(),s=Be(!1),c=Be(),f=Be();Ah(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Hs(()=>{p()}),Eu(()=>{var b;(b=f.value)==null||b.shutdown()}),Dt(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 Uge(o.value,r.value,pge({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:T1.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(Ur)return;let w=0,M=0,A=0;b.on("pointerdown",(C,E)=>{E.type!=="external"&&(!E.x||!E.y||!v(C)||(w=E.x,M=E.y,A=Date.now()))}).on("pointerup",(C,E)=>{if(E.type==="external"||!E.x||!E.y||!v(C)||Date.now()-A>500)return;const N=E.x-w,P=E.y-M;N**2+P**2<100&&h(E.id)})}return(b,w)=>{var N;const M=wi,A=Vue,C=Vw,E=Kr("tooltip");return oe(),me("div",jge,[Z("div",null,[Z("div",Gge,[(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":""},[Z("input",{id:`type-${P}`,type:"checkbox",checked:(L=I(f))==null?void 0:L.nodeTypeFilter.includes(P),onChange:O=>d(P,O.target.checked)},null,40,Kge),Z("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,Xge)])}),128)),w[2]||(w[2]=Z("div",{"flex-auto":""},null,-1)),Z("div",null,[vt(Pe(M,{icon:"i-carbon-reset",onClick:p},null,512),[[E,"Reset",void 0,{bottom:!0}]])])])]),Z("div",{ref_key:"el",ref:o},null,512),Pe(C,{modelValue:I(s),"onUpdate:modelValue":w[1]||(w[1]=P=>Et(s)?s.value=P:null),direction:"right"},{default:rt(()=>[I(c)?(oe(),tt(Uy,{key:0},{default:rt(()=>[Pe(A,{id:I(c),"project-name":b.projectName,onClose:w[0]||(w[0]=P=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])])}}}),Zge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Jge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Qge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},eve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},tve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},nve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},$1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Kr("tooltip");return t.state==="pass"?(oe(),me("div",Zge)):t.failedSnapshot?vt((oe(),me("div",Jge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",Qge)):t.mode==="todo"?vt((oe(),me("div",eve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?vt((oe(),me("div",tve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",nve))}}});function rve(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 ive(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 ove(e){const t=e.map(o=>ive(o)),r=rve(t);return t.map(({raw:o,id:s})=>N1({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 sve(e,t){return N1({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 lve(e,t){if(!e)return u0({});const r=ove(e.externalized),o=e.inlined.map(d=>sve(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 Vge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return u0({nodes:s,links:f})}const ave={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},cve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},uve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},fve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},dve={class:"flex text-lg"},hve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},pve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},gve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},vve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},mve=["flex-1"],yve=ut({__name:"FileDetails",setup(e){const t=Be({nodes:[],links:[]}),r=Be(!1),o=Be(!1),s=Be(!1),c=Be(void 0),f=ke(()=>{const C=Yt.value;if(!(!C||!C.filepath))return{filepath:C.filepath,projectName:C.file.projectName||""}}),d=ke(()=>Yt.value&&Hh(Yt.value)),h=ke(()=>{var C,E;return!!((E=(C=Yt.value)==null?void 0:C.meta)!=null&&E.typecheck)});function p(){var E;const C=(E=Yt.value)==null?void 0:E.filepath;C&&fetch(`/__open-in-editor?file=${encodeURIComponent(C)}`)}function v(C){C==="graph"&&(o.value=!0),jn.value=C}const m=ke(()=>{var C;return((C=Ww.value)==null?void 0:C.reduce((E,{size:N})=>E+N,0))??0});function b(C){r.value=C}async function w(){var C;if(!(s.value||((C=f.value)==null?void 0:C.filepath)===c.value)){s.value=!0,await cn();try{const E=f.value;if(!E)return;(!c.value||E.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=lve(await wt.rpc.getModuleGraph(E.projectName,E.filepath,!!Do),E.filepath),c.value=E.filepath),v("graph")}finally{await new Promise(E=>setTimeout(E,100)),s.value=!1}}}jb(()=>[f.value,jn.value],([,C])=>{C==="graph"&&w()},{debounce:100,immediate:!0});const M=ke(()=>{var C;return ew((C=Yt.value)==null?void 0:C.file.projectName)}),A=ke(()=>{switch(M.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(C,E)=>{var Q,G,te,J;const N=$1,P=wi,L=Yge,O=zue,W=Lue,U=Sue,re=Kr("tooltip");return I(Yt)?(oe(),me("div",ave,[Z("div",null,[Z("div",cve,[Pe(N,{state:(Q=I(Yt).result)==null?void 0:Q.state,mode:I(Yt).mode,"failed-snapshot":I(d)},null,8,["state","mode","failed-snapshot"]),I(h)?vt((oe(),me("div",uve,null,512)),[[re,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),(G=I(Yt))!=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(A)})},He(I(Yt).file.projectName),5)):Ke("",!0),Z("div",fve,He((te=I(Yt))==null?void 0:te.name),1),Z("div",dve,[I(Ur)?Ke("",!0):vt((oe(),tt(P,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((J=I(Yt))!=null&&J.filepath),onClick:p},null,8,["disabled"])),[[re,"Open in editor",void 0,{bottom:!0}]])])]),Z("div",hve,[Z("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==null}]),"data-testid":"btn-report",onClick:E[0]||(E[0]=H=>v(null))},E[4]||(E[4]=[Z("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),Z("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="graph"}]),onClick:E[1]||(E[1]=H=>v("graph"))},[I(s)?(oe(),me("span",pve)):(oe(),me("span",gve)),E[5]||(E[5]=pt(" Module Graph "))],2),Z("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="editor"}]),onClick:E[2]||(E[2]=H=>v("editor"))},[E[6]||(E[6]=Z("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+He(I(r)?"* ":"")+"Code ",1)],2),Z("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:E[3]||(E[3]=H=>v("console"))},[E[7]||(E[7]=Z("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+He(I(m))+") ",1)],2)])]),Z("div",vve,[I(o)?(oe(),me("div",{key:0,"flex-1":I(jn)==="graph"&&""},[vt(Pe(L,{graph:I(t),"data-testid":"graph","project-name":I(Yt).file.projectName||""},null,8,["graph","project-name"]),[[Gi,I(jn)==="graph"&&!I(s)]])],8,mve)):Ke("",!0),I(jn)==="editor"?(oe(),tt(O,{key:I(Yt).filepath,file:I(Yt),"data-testid":"editor",onDraft:b},null,8,["file"])):I(jn)==="console"?(oe(),tt(W,{key:2,file:I(Yt),"data-testid":"console"},null,8,["file"])):I(jn)?Ke("",!0):(oe(),tt(U,{key:3,file:I(Yt),"data-testid":"report"},null,8,["file"]))])])):Ke("",!0)}}}),bve={h:"full",flex:"~ col"},wve={"flex-auto":"","py-1":"","bg-white":""},xve=["src"],Sve=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",bve,[r[0]||(r[0]=Z("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Z("div",{class:"i-carbon:folder-details-reference"}),Z("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),Z("div",wve,[Z("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,xve)])]))}}),_ve={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},kve={"font-bold":""},Tve={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Cve=["font-bold"],Eve={text:"red500/70"},Lve={key:1,text:"sm","mb-2":""},Ave={"font-bold":""},Mve={key:2,text:"sm","mb-2":""},Nve={"font-bold":""},$ve={key:3,text:"sm","font-thin":""},Pve=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ct,null,[Z("h4",_ve,[Z("span",kve,[pt(He(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ct,{key:0},[pt(":")],64)):Ke("",!0)]),pt(" "+He(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",Tve,[(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),Z("span",Eve,He(s.line)+":"+He(s.column),1),r[0]||(r[0]=Z("br",null,null,-1))],8,Cve))),128))])):Ke("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",Lve,[r[1]||(r[1]=pt(" This error originated in ")),Z("span",Ave,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. "))])):Ke("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",Mve,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),Z("span",Nve,He(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=Z("br",null,null,-1)),r[6]||(r[6]=Z("ul",null,[Z("li",null," The error was thrown, while Vitest was running this test. "),Z("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ke("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",$ve,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:"),Z("br",null,null,-1),Z("ul",null,[Z("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Z("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ke("",!0)],64)}}}),Ove={"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:""},Rve={class:"number","data-testid":"num-files"},Dve={class:"number"},zve={class:"number","text-red5":""},Ive={class:"number","text-red5":""},Fve={class:"number","text-red5":""},Hve={class:"number","data-testid":"run-time"},qve={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Bve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Wve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Uve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Pve;return oe(),me(ct,null,[Z("div",Ove,[r[8]||(r[8]=Z("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=Z("div",null,"Files",-1)),Z("div",Rve,He(I(Ce).summary.files),1),I(Ce).summary.filesSuccess?(oe(),me(ct,{key:0},[r[0]||(r[0]=Z("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=Z("div",null,"Pass",-1)),Z("div",Dve,He(I(Ce).summary.filesSuccess),1)],64)):Ke("",!0),I(Ce).summary.filesFailed?(oe(),me(ct,{key:1},[r[2]||(r[2]=Z("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=Z("div",null," Fail ",-1)),Z("div",zve,He(I(Ce).summary.filesFailed),1)],64)):Ke("",!0),I(Ce).summary.filesSnapshotFailed?(oe(),me(ct,{key:2},[r[4]||(r[4]=Z("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=Z("div",null," Snapshot Fail ",-1)),Z("div",Ive,He(I(Ce).summary.filesSnapshotFailed),1)],64)):Ke("",!0),I(Wi).length?(oe(),me(ct,{key:3},[r[6]||(r[6]=Z("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=Z("div",null," Errors ",-1)),Z("div",Fve,He(I(Wi).length),1)],64)):Ke("",!0),r[10]||(r[10]=Z("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=Z("div",null,"Time",-1)),Z("div",Hve,He(I(Ce).summary.time),1)]),I(Wi).length?(oe(),me("div",qve,[r[15]||(r[15]=Z("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Z("p",Bve,[pt(" Vitest caught "+He(I(Wi).length)+" error"+He(I(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=Z("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. "))]),Z("details",Wve,[r[14]||(r[14]=Z("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),me(ct,null,gi(I(Wi),(s,c)=>(oe(),tt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ke("",!0)],64)}}}),Vve=Xr(Uve,[["__scopeId","data-v-0178ddee"]]),jve={"p-2":"","text-center":"",flex:""},Gve={"text-4xl":"","min-w-2em":""},Kve={"text-md":""},Xve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",jve,[Z("div",null,[Z("div",Gve,[gn(t.$slots,"body")]),Z("div",Kve,[gn(t.$slots,"header")])])]))}}),Yve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Zve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=Xve;return oe(),me("div",Yve,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[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:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(He(I(Ce).summary.testsFailed),1)]),_:1},8,["class"]),I(Ce).summary.testsSkipped?(oe(),tt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(He(I(Ce).summary.testsSkipped),1)]),_:1})):Ke("",!0),I(Ce).summary.testsTodo?(oe(),tt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(He(I(Ce).summary.testsTodo),1)]),_:1})):Ke("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(He(I(Ce).summary.totalTests),1)]),_:1})])}}}),Jve={},Qve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},eme={"aria-labelledby":"tests",m:"y-4 x-2"};function tme(e,t){const r=Zve,o=Vve;return oe(),me("div",Qve,[Z("section",eme,[Pe(r)]),Pe(o)])}const nme=Xr(Jve,[["render",tme]]),rme={},ime={h:"full",flex:"~ col"},ome={class:"scrolls","flex-auto":"","py-1":""};function sme(e,t){const r=nme;return oe(),me("div",ime,[t[0]||(t[0]=Z("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Z("div",{class:"i-carbon-dashboard"}),Z("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),Z("div",ome,[Pe(r)])])}const lme=Xr(rme,[["render",sme]]),ame=["open"],cme=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Be(!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)},[Z("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]=Z("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),gn(r.$slots,"summary",{open:I(t)}),o[2]||(o[2]=Z("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),gn(r.$slots,"default")],40,ame))}}),ume={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},fme={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",ume,[Z("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},dme=["aria-label","data-current"],hme={key:1,"w-4":""},pme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},gme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},vme={"text-sm":"",truncate:"","font-light":""},mme=["text","innerHTML"],yme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},bme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},wme={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},xme={key:1},Sme=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=ke(()=>wt.state.idMap.get(e.taskId)),r=ke(()=>{if(Ur)return!1;const C=t.value;return C&&Hh(C)});function o(){var C;if(!e.expandable){(C=e.onItemClick)==null||C.call(e,t.value);return}e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId)}async function s(C){var E;(E=e.onItemClick)==null||E.call(e,C),ms.value&&(lu.value=!0,await cn()),e.type==="file"?await Xh([C.file]):await Fce(C)}function c(C){return wt.rpc.updateSnapshot(C.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),d=ke(()=>{const C=f.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Jb(e.name)),v=ke(()=>{const C=PE.value,E=p.value;return C?E.replace(C,N=>`<span class="highlight">${N}</span>`):E}),m=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>m.value?"color-red5 dark:color-#f43f5e":null);function M(){var E;const C=t.value;e.type==="file"?(E=e.onItemClick)==null||E.call(e,C):Rue(C)}const A=ke(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(C,E)=>{const N=$1,P=fme,L=wi,O=Kr("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":C.name,"data-current":C.current,onClick:E[2]||(E[2]=W=>o())},[C.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)):Ke("",!0),C.type==="file"||C.type==="suite"?(oe(),me("div",hme,[Z("div",{class:st(C.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ke("",!0),Pe(N,{state:C.state,mode:I(t).mode,"failed-snapshot":I(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Z("div",pme,[C.type==="file"&&C.typecheck?vt((oe(),me("div",gme,null,512)),[[O,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),Z("span",vme,[C.type==="file"&&C.projectName?(oe(),me("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:Jt({backgroundColor:C.projectNameColor,color:I(A)})},He(C.projectName),5)):Ke("",!0),Z("span",{text:C.state==="fail"?"red-500":"",innerHTML:I(v)},null,8,mme)]),typeof C.duration=="number"?(oe(),me("span",yme,He(C.duration>0?C.duration:"< 1")+"ms ",1)):Ke("",!0)]),Z("div",bme,[!I(Ur)&&I(r)?vt((oe(),tt(P,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Ac(W=>c(I(t)),["prevent","stop"]))},null,512)),[[O,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),Pe(I(Nb),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",I(w)])},{popper:rt(()=>[I(m)?(oe(),me("div",wme,[E[5]||(E[5]=Z("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Z("div",null,[pt(He(I(b))+": this feature is not available, you have disabled ",1),E[3]||(E[3]=Z("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=pt(" in your configuration file."))]),E[6]||(E[6]=Z("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",xme,He(I(b)),1))]),default:rt(()=>[Pe(L,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Ac(M,["prevent","stop"])})]),_:1},8,["class"]),I(Ur)?Ke("",!0):vt((oe(),tt(L,{key:1,"data-testid":"btn-run-test",title:I(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:E[1]||(E[1]=Ac(W=>s(I(t)),["prevent","stop"]))},null,8,["title"])),[[O,I(h),void 0,{bottom:!0}]])])],12,dme)):Ke("",!0)}}}),_me=Xr(Sme,[["__scopeId","data-v-f7232aed"]]),kme={"flex-1":"","ms-2":"","select-none":""},Tme=ut({__name:"FilterStatus",props:Vc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Mh(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]=Ac(s=>t.value=!t.value,["prevent"]))}),[Z("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),vt(Z("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[CT,t.value]]),Z("span",kme,He(r.label),1)],16))}});function Cme(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ic;function sh(){sh.init||(sh.init=!0,Ic=Cme()!==-1)}var Gu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){sh(),cn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ic&&this.$el.appendChild(e),e.data="about:blank",Ic||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ic&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Eme=hy();fy("data-v-b329ee4c");const Lme={class:"resize-observer",tabindex:"-1"};dy();const Ame=Eme((e,t,r,o,s,c)=>(oe(),tt("div",Lme)));Gu.render=Ame;Gu.__scopeId="data-v-b329ee4c";Gu.__file="src/components/ResizeObserver.vue";function Fc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fc=function(t){return typeof t}:Fc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc(e)}function Mme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nme(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 $me(e,t,r){return Nme(e.prototype,t),e}function f0(e){return Pme(e)||Ome(e)||Rme(e)||Dme()}function Pme(e){if(Array.isArray(e))return lh(e)}function Ome(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Rme(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 Dme(){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 zme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Ime(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(f0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(f0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function P1(e,t){if(e===t)return!0;if(Fc(e)==="object"){for(var r in e)if(!P1(e[r],t[r]))return!1;return!0}return!1}var Fme=function(){function e(t,r,o){Mme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return $me(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=zme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Ime(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),cn(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 O1(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 Fme(e,o,r);e._vue_visibilityState=s}}function Hme(e,t,r){var o=t.value,s=t.oldValue;if(!P1(o,s)){var c=e._vue_visibilityState;if(!o){R1(e);return}c?c.createObserver(o,r):O1(e,{value:o},r)}}function R1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var qme={beforeMount:O1,updated:Hme,unmounted:R1},Bme={itemsLimit:1e3},Wme=/(auto|scroll)/;function D1(e,t){return e.parentNode===null?t:D1(e.parentNode,t.concat([e]))}var pd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Ume=function(t){return pd(t,"overflow")+pd(t,"overflow-y")+pd(t,"overflow-x")},Vme=function(t){return Wme.test(Ume(t))};function d0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=D1(e.parentNode,[]),r=0;r<t.length;r+=1)if(Vme(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 jme={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 Gme(){return this.items.length&&ah(this.items[0])!=="object"}var ch=!1;if(typeof window<"u"){ch=!1;try{var Kme=Object.defineProperty({},"passive",{get:function(){ch=!0}});window.addEventListener("test",null,Kme)}catch{}}let Xme=0;var lp={name:"RecycleScroller",components:{ResizeObserver:Gu},directives:{ObserveVisibility:qme},props:{...jme,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:Gme,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:Xme++,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 A,C,E,N,P;if(!p)A=C=N=P=E=0;else if(this.$_prerender)A=N=0,C=P=Math.min(this.prerender,h.length),E=null;else{const G=this.getScroll();if(t){let H=G.start-this.$_lastUpdateScrollPosition;if(H<0&&(H=-H),r===null&&H<c||H<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const te=this.buffer;G.start-=te,G.end+=te;let J=0;if(this.$refs.before&&(J=this.$refs.before.scrollHeight,G.start-=J),this.$refs.after){const H=this.$refs.after.scrollHeight;G.end+=H}if(r===null){let H,F=0,k=p-1,B=~~(p/2),V;do V=B,H=v[B].accumulator,H<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),A=B,E=v[p-1].accumulator,C=B;C<p&&v[C].accumulator<G.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),N=A;N<p&&J+v[N].accumulator<G.start;N++);for(P=N;P<p&&J+v[P].accumulator<G.end;P++);}else{A=~~(G.start/r*o);const H=A%o;A-=H,C=Math.ceil(G.end/r*o),N=Math.max(0,Math.floor((G.start-J)/r*o)),P=Math.floor((G.end-J)/r*o),A<0&&(A=0),C>p&&(C=p),N<0&&(N=0),P>p&&(P=p),E=Math.ceil(p/o)*r}}C-A>Bme.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let L;const O=A<=this.$_endIndex&&C>=this.$_startIndex;if(O)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<A||L.nr.index>=C)&&this.unuseView(L));const W=O?null:new Map;let U,re,Q;for(let G=A;G<C;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 J=b.get(re),H=!1;if(!L)O?J&&J.length?L=J.pop():L=this.addView(w,G,U,te,re):(Q=W.get(re)||0,(!J||Q>=J.length)&&(L=this.addView(w,G,U,te,re),this.unuseView(L,!0),J=b.get(re)),L=J[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),H=!0;else if(!L.nr.used&&(L.nr.used=!0,H=!0,J)){const F=J.indexOf(L);F!==-1&&J.splice(F,1)}L.item=U,H&&(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=A,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",A,C,N,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:O}},getListenerTarget(){let e=d0(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=d0(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 Yme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Zme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Jme(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Kr("observe-visibility");return vt((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",Yme,[gn(e.$slots,"before")],512)):Ke("v-if",!0),(oe(),tt(vv(r.listTag),{ref:"wrapper",style:Jt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(oe(!0),me(ct,null,gi(s.pool,h=>(oe(),tt(vv(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}]]},sk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[gn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),gn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",Zme,[gn(e.$slots,"after")],512)):Ke("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}lp.render=Jme;lp.__file="src/components/RecycleScroller.vue";function Qme(e){const t=ke(()=>Bd.value?!1:!Ze.onlyTests),r=ke(()=>In.value===""),o=Be(In.value);jb(In,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;In.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Os.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 Dt(()=>[o.value,Ze.failed,Ze.success,Ze.skipped,Ze.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ce.filterNodes()},{flush:"post"}),Dt(()=>Er.value.length,h=>{h&&(ln.value.expandAll=void 0)},{flush:"post"}),{initialized:Os,filter:Ze,search:In,disableFilter:t,isFiltered:Qb,isFilteredByStatus:Bd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Fu,testsTotal:OE,uiEntries:Wn}}const e0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},t0e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},n0e=["op"],r0e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},i0e={"text-red5":""},o0e={"text-yellow5":""},s0e={"text-green5":""},l0e={class:"text-purple5:50"},a0e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},c0e=["disabled"],u0e=["disabled"],f0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},d0e=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>Wu.value.includeTaskLocation),s=Be(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:M,filteredFiles:A,testsTotal:C,uiEntries:E}=Qme(s),N=Be("grid-cols-2"),P=Be("grid-col-span-2"),L=Be(),{width:O}=Bh();return Dt(()=>O.value*(pn.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=Tme,G=_me,te=cme,J=Kr("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:L,h:"full",flex:"~ col"},[Z("div",null,[Z("div",e0e,[gn(W.$slots,"header",{filteredFiles:I(p)||I(v)?I(A):void 0})]),Z("div",t0e,[U[13]||(U[13]=Z("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),vt(Z("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=H=>Et(d)?d.value=H: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]=Od(H=>I(w)(!1),["esc"])),U[2]||(U[2]=Od(H=>r("run",I(p)||I(v)?I(A):void 0),["enter"]))]},null,40,n0e),[[TT,I(d)]]),vt(Pe(re,{disabled:I(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=H=>I(w)(!0))},null,8,["disabled"]),[[J,"Clear search",void 0,{bottom:!0}]])]),Z("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))},[Z("div",{class:st(I(P)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=Z("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=Z("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),vt(Pe(re,{disabled:I(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=H=>I(M)(!1))},null,8,["disabled"]),[[J,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(Q,{modelValue:I(f).failed,"onUpdate:modelValue":U[5]||(U[5]=H=>I(f).failed=H),label:"Fail"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).success,"onUpdate:modelValue":U[6]||(U[6]=H=>I(f).success=H),label:"Pass"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=H=>I(f).skipped=H),label:"Skip"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=H=>I(f).onlyTests=H),label:"Only Tests"},null,8,["modelValue"])],2)]),Z("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...H)=>I(am)&&I(am)(...H))},[Pe(te,null,ok({default:rt(()=>[(I(p)||I(v))&&I(E).length===0?(oe(),me(ct,{key:0},[I(c)?(oe(),me("div",a0e,[U[18]||(U[18]=Z("div",{op30:""}," No matched test ",-1)),Z("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]=H=>I(w)(!0))}," Clear Search ",42,c0e),Z("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]=H=>I(M)(!0))}," Clear Filter ",42,u0e),Z("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]=(...H)=>I(b)&&I(b)(...H))}," Clear All ",32)])):(oe(),me("div",f0e,U[19]||(U[19]=[Z("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Z("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),tt(I(lp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:I(E),buffer:100},{default:rt(({item:H})=>[Pe(G,{class:st(["h-28px m-0 p-0",I(eo)===H.id?"bg-active":""]),"task-id":H.id,expandable:H.expandable,type:H.type,current:I(eo)===H.id,indent:H.indent,name:H.name,typecheck:H.typecheck===!0,"project-name":H.projectName??"","project-name-color":H.projectNameColor??"",state:H.state,duration:H.duration,opened:H.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:rt(()=>[Z("div",r0e,[Z("span",i0e," FAIL ("+He(I(C).failed)+") ",1),U[16]||(U[16]=Z("span",null,"/",-1)),Z("span",o0e," RUNNING ("+He(I(C).running)+") ",1),Z("span",s0e," PASS ("+He(I(C).success)+") ",1),U[17]||(U[17]=Z("span",null,"/",-1)),Z("span",l0e," SKIP ("+He(I(f).onlyTests?I(C).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),h0e=""+new URL("../favicon.svg",import.meta.url).href,p0e={class:"flex text-lg"},g0e=ut({__name:"Navigation",setup(e){function t(){return wt.rpc.updateSnapshot()}const r=ke(()=>_a.value?"light":"dark");async function o(f){ms.value&&(lu.value=!0,await cn(),to.value&&(au(!0),await cn())),f!=null&&f.length?await Xh(f):await zce()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=wi,p=d0e,v=Kr("tooltip");return oe(),tt(p,{border:"r base","on-item-click":I(uL),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=Z("img",{"w-6":"","h-6":"",src:h0e,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=Z("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Z("div",p0e,[vt(Pe(h,{title:"Collapse tests",disabled:!I(Os),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Gi,!I(bm)],[v,"Collapse tests",void 0,{bottom:!0}]]),vt(Pe(h,{disabled:!I(Os),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Gi,I(bm)],[v,"Expand tests",void 0,{bottom:!0}]]),vt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>I(au)(!0))},null,512),[[Gi,I(Vd)&&!I(ms)||!I(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),I(Vd)&&!I(ms)?(oe(),tt(I(Nb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:rt(()=>d[6]||(d[6]=[Z("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Z("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Z("div",null,"Coverage enabled but missing html reporter."),Z("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=Z("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ke("",!0),I(ms)?vt((oe(),tt(h,{key:1,disabled:I(lu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>I(fL)())},null,8,["disabled"])),[[Gi,!I(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ke("",!0),I(Ce).summary.failedSnapshot&&!I(Ur)?vt((oe(),tt(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}]]):Ke("",!0),I(Ur)?Ke("",!0):vt((oe(),tt(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}]]),vt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>I(cue)())},null,512),[[v,`Toggle to ${I(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),v0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},m0e=ut({__name:"ProgressBar",setup(e){const{width:t}=Bh(),r=ke(()=>Ce.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":aL.value?null:"in-progress"),o=ke(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=ke(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=ke(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=ke(()=>{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))},[Z("div",v0e,[Z("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(I(r)),style:Jt(`width: ${I(s)}px;`)}," ",6),Z("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),Z("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))}}),y0e=Xr(m0e,[["__scopeId","data-v-54017b6a"]]),h0={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())}},b0e=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},w0e={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 x0e(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)},[gn(e.$slots,"default")],4)}const _c=b0e(w0e,[["render",x0e]]),S0e={"h-screen":"","w-screen":"",overflow:"hidden"},_0e=ut({__name:"index",setup(e){const t=cL(),r=dc(m=>{p(),h(m)},0),o=dc(m=>{m.forEach((b,w)=>{mr.value[w]=b.size}),d(m)},0),s=dc(m=>{m.forEach((b,w)=>{Mo.value[w]=b.size}),h(m),v()},0),c=dc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);mr.value[0]=100*b/m,mr.value[1]=100-mr.value[0],d([{size:mr.value[0]},{size:mr.value[1]}])}function d(m){pn.navigation=m[0].size,pn.details.size=m[1].size}function h(m){pn.details.browser=m[0].size,pn.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=y0e,M=g0e,A=lme,C=Sve,E=yve,N=Qce,P=Bce;return oe(),me(ct,null,[Pe(w),Z("div",S0e,[Pe(I(h0),{class:"pt-4px",onResized:I(o),onResize:I(c),onReady:f},{default:rt(()=>[Pe(I(_c),{size:I(mr)[0]},{default:rt(()=>[Pe(M)]),_:1},8,["size"]),Pe(I(_c),{size:I(mr)[1]},{default:rt(()=>[I(Do)?(oe(),tt(I(h0),{id:"details-splitpanes",key:"browser-detail",onResize:I(r),onResized:I(s)},{default:rt(()=>[Pe(I(_c),{size:I(Mo)[0],"min-size":"10"},{default:rt(()=>[b[0]||(Gc(-1),(b[0]=Pe(N)).cacheIndex=0,Gc(1),b[0])]),_:1},8,["size"]),Pe(I(_c),{size:I(Mo)[1]},{default:rt(()=>[I(t)?(oe(),tt(A,{key:"summary"})):I(to)?(oe(),tt(C,{key:"coverage",src:I(_m)},null,8,["src"])):(oe(),tt(E,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),tt(iT,{key:"ui-detail"},{default:rt(()=>[I(t)?(oe(),tt(A,{key:"summary"})):I(to)?(oe(),tt(C,{key:"coverage",src:I(_m)},null,8,["src"])):(oe(),tt(E,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),k0e=[{name:"index",path:"/",component:_0e,props:!0}];/*!
|
|
49
|
+
* vue-router v4.5.0
|
|
50
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
51
|
+
* @license MIT
|
|
52
|
+
*/const gs=typeof document<"u";function z1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function T0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&z1(e.default)}const yt=Object.assign;function gd(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,I1=/#/g,C0e=/&/g,E0e=/\//g,L0e=/=/g,A0e=/\?/g,F1=/\+/g,M0e=/%5B/g,N0e=/%5D/g,H1=/%5E/g,$0e=/%60/g,q1=/%7B/g,P0e=/%7C/g,B1=/%7D/g,O0e=/%20/g;function ap(e){return encodeURI(""+e).replace(P0e,"|").replace(M0e,"[").replace(N0e,"]")}function R0e(e){return ap(e).replace(q1,"{").replace(B1,"}").replace(H1,"^")}function uh(e){return ap(e).replace(F1,"%2B").replace(O0e,"+").replace(I1,"%23").replace(C0e,"%26").replace($0e,"`").replace(q1,"{").replace(B1,"}").replace(H1,"^")}function D0e(e){return uh(e).replace(L0e,"%3D")}function z0e(e){return ap(e).replace(I1,"%23").replace(A0e,"%3F")}function I0e(e){return e==null?"":z0e(e).replace(E0e,"%2F")}function ua(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const F0e=/\/$/,H0e=e=>e.replace(F0e,"");function vd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=U0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ua(f)}}function q0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function p0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function B0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Is(t.matched[o],r.matched[s])&&W1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Is(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function W1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!W0e(e[r],t[r]))return!1;return!0}function W0e(e,t){return Lr(e)?g0(e,t):Lr(t)?g0(t,e):e===t}function g0(e,t){return Lr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function U0e(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 V0e(e){if(!e)if(gs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),H0e(e)}const j0e=/^[^#]+#/;function G0e(e,t){return e.replace(j0e,"#")+t}function K0e(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 Ku=()=>({left:window.scrollX,top:window.scrollY});function X0e(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=K0e(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 v0(e,t){return(history.state?history.state.position-t:-1)+e}const fh=new Map;function Y0e(e,t){fh.set(e,t)}function Z0e(e){const t=fh.get(e);return fh.delete(e),t}let J0e=()=>location.protocol+"//"+location.host;function U1(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),p0(h,"")}return p0(r,e)+o+s}function Q0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=U1(e,location),M=r.value,A=t.value;let C=0;if(b){if(r.value=w,t.value=b,f&&f===M){f=null;return}C=A?b.position-A.position:0}else o(w);s.forEach(E=>{E(r.value,M,{delta:C,type:fa.pop,direction:C?C>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(yt({},b.state,{scroll:Ku()}),"")}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 m0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Ku():null}}function eye(e){const{history:t,location:r}=window,o={value:U1(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:J0e()+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=yt({},t.state,m0(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=yt({},s.value,t.state,{forward:h,scroll:Ku()});c(v.current,v,!0);const m=yt({},m0(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 tye(e){e=V0e(e);const t=eye(e),r=Q0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=yt({location:"",base:e,go:o,createHref:G0e.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 nye(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tye(e)}function rye(e){return typeof e=="string"||e&&typeof e=="object"}function V1(e){return typeof e=="string"||typeof e=="symbol"}const j1=Symbol("");var y0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(y0||(y0={}));function Fs(e,t){return yt(new Error,{type:e,[j1]:!0},t)}function li(e,t){return e instanceof Error&&j1 in e&&(t==null||!!(e.type&t))}const b0="[^/]+?",iye={sensitive:!1,strict:!1,start:!0,end:!0},oye=/[.+*?^${}()[\]/\\]/g;function sye(e,t){const r=yt({},iye,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(oye,"\\$&"),w+=40;else if(b.type===1){const{value:M,repeatable:A,optional:C,regexp:E}=b;c.push({name:M,repeatable:A,optional:C});const N=E||b0;if(N!==b0){w+=10;try{new RegExp(`(${N})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${M}" (${N}): `+L.message)}}let P=A?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;m||(P=C&&p.length<2?`(?:/${P})`:"/"+P),C&&(P+="?"),s+=P,w+=20,C&&(w+=-8),A&&(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.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:A,optional:C}=w,E=M in p?p[M]:"";if(Lr(E)&&!A)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const N=Lr(E)?E.join("/"):E;if(!N)if(C)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${M}"`);v+=N}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function lye(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 G1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=lye(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(w0(o))return 1;if(w0(s))return-1}return s.length-o.length}function w0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const aye={type:0,value:""},cye=/[a-zA-Z0-9_]/;function uye(e){if(!e)return[[]];if(e==="/")return[[aye]];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:cye.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 fye(e,t,r){const o=sye(uye(e.path),r),s=yt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function dye(e,t){const r=[],o=new Map;t=k0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const M=!w,A=S0(m);A.aliasOf=w&&w.record;const C=k0(t,m),E=[A];if("alias"in m){const L=typeof m.alias=="string"?[m.alias]:m.alias;for(const O of L)E.push(S0(yt({},A,{components:w?w.record.components:A.components,path:O,aliasOf:w?w.record:A})))}let N,P;for(const L of E){const{path:O}=L;if(b&&O[0]!=="/"){const W=b.record.path,U=W[W.length-1]==="/"?"":"/";L.path=b.record.path+(O&&U+O)}if(N=fye(L,b,C),w?w.alias.push(N):(P=P||N,P!==N&&P.alias.push(N),M&&m.name&&!_0(N)&&f(m.name)),K1(N)&&h(N),A.children){const W=A.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(V1(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=gye(m,r);r.splice(b,0,m),m.record.name&&!_0(m)&&o.set(m.record.name,m)}function p(m,b){let w,M={},A,C;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Fs(1,{location:m});C=w.record.name,M=yt(x0(b.params,w.keys.filter(P=>!P.optional).concat(w.parent?w.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),m.params&&x0(m.params,w.keys.map(P=>P.name))),A=w.stringify(M)}else if(m.path!=null)A=m.path,w=r.find(P=>P.re.test(A)),w&&(M=w.parse(A),C=w.record.name);else{if(w=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!w)throw Fs(1,{location:m,currentLocation:b});C=w.record.name,M=yt({},b.params,m.params),A=w.stringify(M)}const E=[];let N=w;for(;N;)E.unshift(N.record),N=N.parent;return{name:C,path:A,params:M,matched:E,meta:pye(E)}}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 x0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function S0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:hye(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 hye(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 _0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pye(e){return e.reduce((t,r)=>yt(t,r.meta),{})}function k0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function gye(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;G1(e,t[c])<0?o=c:r=c+1}const s=vye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function vye(e){let t=e;for(;t=t.parent;)if(K1(t)&&G1(e,t)===0)return t}function K1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function mye(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(F1," "),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 T0(e){let t="";for(let r in e){const o=e[r];if(r=D0e(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 yye(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 bye=Symbol(""),C0=Symbol(""),cp=Symbol(""),X1=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(Fs(4,{from:r,to:t})):b instanceof Error?h(b):rye(b)?h(Fs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function md(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(z1(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=T0e(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 E0(e){const t=qr(cp),r=qr(X1),o=ke(()=>{const h=I(e.to);return t.resolve(h)}),s=ke(()=>{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(Is.bind(null,v));if(b>-1)return b;const w=L0(h[p-2]);return p>1&&L0(v)===w&&m[m.length-1].path!==w?m.findIndex(Is.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&kye(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&W1(r.params,o.value.params));function d(h={}){if(_ye(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:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function wye(e){return e.length===1?e[0]:e}const xye=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:E0,setup(e,{slots:t}){const r=Zn(E0(e)),{options:o}=qr(cp),s=ke(()=>({[A0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[A0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&wye(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)}}}),Sye=xye;function _ye(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 kye(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 L0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const A0=(e,t,r)=>e??t??r,Tye=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=qr(dh),s=ke(()=>e.route||o.value),c=qr(C0,0),f=ke(()=>{let p=I(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);Cc(C0,ke(()=>f.value+1)),Cc(bye,d),Cc(dh,s);const h=Be();return Dt(()=>[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||!Is(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(A=>A(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return M0(r.default,{Component:b,route:p});const w=m.props[v],M=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=ya(b,yt({},M,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return M0(r.default,{Component:C,route:p})||C}}});function M0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Cye=Tye;function Eye(e){const t=dye(e.routes,e),r=e.parseQuery||mye,o=e.stringifyQuery||T0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=Gr(zi);let p=zi;gs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=gd.bind(null,Y=>""+Y),m=gd.bind(null,I0e),b=gd.bind(null,ua);function w(Y,ae){let he,$e;return V1(Y)?(he=t.getRecordMatcher(Y),$e=ae):$e=Y,t.addRoute($e,he)}function M(Y){const ae=t.getRecordMatcher(Y);ae&&t.removeRoute(ae)}function A(){return t.getRoutes().map(Y=>Y.record)}function C(Y){return!!t.getRecordMatcher(Y)}function E(Y,ae){if(ae=yt({},ae||h.value),typeof Y=="string"){const X=vd(r,Y,ae.path),le=t.resolve({path:X.path},ae),fe=s.createHref(X.fullPath);return yt(X,le,{params:b(le.params),hash:ua(X.hash),redirectedFrom:void 0,href:fe})}let he;if(Y.path!=null)he=yt({},Y,{path:vd(r,Y.path,ae.path).path});else{const X=yt({},Y.params);for(const le in X)X[le]==null&&delete X[le];he=yt({},Y,{params:m(X)}),ae.params=m(ae.params)}const $e=t.resolve(he,ae),Ae=Y.hash||"";$e.params=v(b($e.params));const z=q0e(o,yt({},Y,{hash:R0e(Ae),path:$e.path})),q=s.createHref(z);return yt({fullPath:z,hash:Ae,query:o===T0?yye(Y.query):Y.query||{}},$e,{redirectedFrom:void 0,href:q})}function N(Y){return typeof Y=="string"?vd(r,Y,h.value.path):yt({},Y)}function P(Y,ae){if(p!==Y)return Fs(8,{from:ae,to:Y})}function L(Y){return U(Y)}function O(Y){return L(yt(N(Y),{replace:!0}))}function W(Y){const ae=Y.matched[Y.matched.length-1];if(ae&&ae.redirect){const{redirect:he}=ae;let $e=typeof he=="function"?he(Y):he;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=N($e):{path:$e},$e.params={}),yt({query:Y.query,hash:Y.hash,params:$e.path!=null?{}:Y.params},$e)}}function U(Y,ae){const he=p=E(Y),$e=h.value,Ae=Y.state,z=Y.force,q=Y.replace===!0,X=W(he);if(X)return U(yt(N(X),{state:typeof X=="object"?yt({},Ae,X.state):Ae,force:z,replace:q}),ae||he);const le=he;le.redirectedFrom=ae;let fe;return!z&&B0e(o,$e,he)&&(fe=Fs(16,{to:le,from:$e}),We($e,$e,!0,!1)),(fe?Promise.resolve(fe):G(le,$e)).catch(ce=>li(ce)?li(ce,2)?ce:Ne(ce):ie(ce,le,$e)).then(ce=>{if(ce){if(li(ce,2))return U(yt({replace:q},N(ce.to),{state:typeof ce.to=="object"?yt({},Ae,ce.to.state):Ae,force:z}),ae||le)}else ce=J(le,$e,!0,q,Ae);return te(le,$e,ce),ce})}function re(Y,ae){const he=P(Y,ae);return he?Promise.reject(he):Promise.resolve()}function Q(Y){const ae=et.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(Y):Y()}function G(Y,ae){let he;const[$e,Ae,z]=Lye(Y,ae);he=md($e.reverse(),"beforeRouteLeave",Y,ae);for(const X of $e)X.leaveGuards.forEach(le=>{he.push(Vi(le,Y,ae))});const q=re.bind(null,Y,ae);return he.push(q),Le(he).then(()=>{he=[];for(const X of c.list())he.push(Vi(X,Y,ae));return he.push(q),Le(he)}).then(()=>{he=md(Ae,"beforeRouteUpdate",Y,ae);for(const X of Ae)X.updateGuards.forEach(le=>{he.push(Vi(le,Y,ae))});return he.push(q),Le(he)}).then(()=>{he=[];for(const X of z)if(X.beforeEnter)if(Lr(X.beforeEnter))for(const le of X.beforeEnter)he.push(Vi(le,Y,ae));else he.push(Vi(X.beforeEnter,Y,ae));return he.push(q),Le(he)}).then(()=>(Y.matched.forEach(X=>X.enterCallbacks={}),he=md(z,"beforeRouteEnter",Y,ae,Q),he.push(q),Le(he))).then(()=>{he=[];for(const X of f.list())he.push(Vi(X,Y,ae));return he.push(q),Le(he)}).catch(X=>li(X,8)?X:Promise.reject(X))}function te(Y,ae,he){d.list().forEach($e=>Q(()=>$e(Y,ae,he)))}function J(Y,ae,he,$e,Ae){const z=P(Y,ae);if(z)return z;const q=ae===zi,X=gs?history.state:{};he&&($e||q?s.replace(Y.fullPath,yt({scroll:q&&X&&X.scroll},Ae)):s.push(Y.fullPath,Ae)),h.value=Y,We(Y,ae,he,q),Ne()}let H;function F(){H||(H=s.listen((Y,ae,he)=>{if(!Xe.listening)return;const $e=E(Y),Ae=W($e);if(Ae){U(yt(Ae,{replace:!0,force:!0}),$e).catch(ql);return}p=$e;const z=h.value;gs&&Y0e(v0(z.fullPath,he.delta),Ku()),G($e,z).catch(q=>li(q,12)?q:li(q,2)?(U(yt(N(q.to),{force:!0}),$e).then(X=>{li(X,20)&&!he.delta&&he.type===fa.pop&&s.go(-1,!1)}).catch(ql),Promise.reject()):(he.delta&&s.go(-he.delta,!1),ie(q,$e,z))).then(q=>{q=q||J($e,z,!1),q&&(he.delta&&!li(q,8)?s.go(-he.delta,!1):he.type===fa.pop&&li(q,20)&&s.go(-1,!1)),te($e,z,q)}).catch(ql)}))}let k=Cl(),B=Cl(),V;function ie(Y,ae,he){Ne(Y);const $e=B.list();return $e.length?$e.forEach(Ae=>Ae(Y,ae,he)):console.error(Y),Promise.reject(Y)}function ye(){return V&&h.value!==zi?Promise.resolve():new Promise((Y,ae)=>{k.add([Y,ae])})}function Ne(Y){return V||(V=!Y,F(),k.list().forEach(([ae,he])=>Y?he(Y):ae()),k.reset()),Y}function We(Y,ae,he,$e){const{scrollBehavior:Ae}=e;if(!gs||!Ae)return Promise.resolve();const z=!he&&Z0e(v0(Y.fullPath,0))||($e||!he)&&history.state&&history.state.scroll||null;return cn().then(()=>Ae(Y,ae,z)).then(q=>q&&X0e(q)).catch(q=>ie(q,Y,ae))}const Ve=Y=>s.go(Y);let nt;const et=new Set,Xe={currentRoute:h,listening:!0,addRoute:w,removeRoute:M,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:A,resolve:E,options:e,push:L,replace:O,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(Y){const ae=this;Y.component("RouterLink",Sye),Y.component("RouterView",Cye),Y.config.globalProperties.$router=ae,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>I(h)}),gs&&!nt&&h.value===zi&&(nt=!0,L(s.location).catch(Ae=>{}));const he={};for(const Ae in zi)Object.defineProperty(he,Ae,{get:()=>h.value[Ae],enumerable:!0});Y.provide(cp,ae),Y.provide(X1,xh(he)),Y.provide(dh,h);const $e=Y.unmount;et.add(Y),Y.unmount=function(){et.delete(Y),et.size<1&&(p=zi,H&&H(),H=null,h.value=zi,nt=!1,V=!1),$e()}}};function Le(Y){return Y.reduce((ae,he)=>ae.then(()=>Q(he)),Promise.resolve())}return Xe}function Lye(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=>Is(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Is(p,h))||s.push(h))}return[r,o,s]}const Aye={tooltip:OC};$b.options.instantMove=!0;$b.options.distance=10;function Mye(){return Eye({history:nye(),routes:k0e})}const Nye=[Mye],up=rb(zT);Nye.forEach(e=>{up.use(e())});Object.entries(Aye).forEach(([e,t])=>{up.directive(e,t)});up.mount("#app");
|