@vitest/browser 4.0.10 → 4.0.12

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.
@@ -6,47 +6,47 @@
6
6
  * @vue/reactivity v3.5.24
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let yn;class w_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,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=yn;try{return yn=this,t()}finally{yn=r}}}on(){++this._on===1&&(this.prevScope=yn,yn=this)}off(){this._on>0&&--this._on===0&&(yn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function py(){return yn}function x_(e,t=!1){yn&&yn.cleanups.push(e)}let kt;const Qf=new WeakSet;class gy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,yn&&yn.active&&yn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Qf.has(this)&&(Qf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||my(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tv(this),yy(this);const t=kt,r=Mr;kt=this,Mr=!0;try{return this.fn()}finally{by(this),kt=t,Mr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Mh(t);this.deps=this.depsTail=void 0,Tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Qf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ld(this)&&this.run()}get dirty(){return Ld(this)}}let vy=0,Ul,Vl;function my(e,t=!1){if(e.flags|=8,t){e.next=Vl,Vl=e;return}e.next=Ul,Ul=e}function Ah(){vy++}function Lh(){if(--vy>0)return;if(Vl){let t=Vl;for(Vl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ul;){let t=Ul;for(Ul=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 yy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function by(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Mh(o),S_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Ld(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ra)||(e.globalVersion=ra,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ld(e))))return;e.flags|=2;const t=e.dep,r=kt,o=Mr;kt=e,Mr=!0;try{yy(e);const s=e.fn(e._value);(t.version===0||Vn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Mr=o,by(e),e.flags&=-3}}function Mh(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)Mh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function S_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Mr=!0;const xy=[];function wi(){xy.push(Mr),Mr=!1}function xi(){const e=xy.pop();Mr=e===void 0?!0:e}function Tv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let ra=0;class __{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 Nu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!kt||!Mr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new __(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,Sy(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,ra++,this.notify(t)}notify(t){Ah();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Lh()}}}function Sy(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)Sy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Xc=new WeakMap,Do=Symbol(""),Md=Symbol(""),ia=Symbol("");function bn(e,t,r){if(Mr&&kt){let o=Xc.get(e);o||Xc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Nu),s.map=o,s.key=r),s.track()}}function vi(e,t,r,o,s,c){const f=Xc.get(e);if(!f){ra++;return}const d=h=>{h&&h.trigger()};if(Ah(),t==="clear")f.forEach(d);else{const h=We(e),p=h&&Ch(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===ia||!Or(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ia)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Do)),Es(e)&&d(f.get(Md)));break;case"delete":h||(d(f.get(Do)),Es(e)&&d(f.get(Md)));break;case"set":Es(e)&&d(f.get(Do));break}}Lh()}function k_(e,t){const r=Xc.get(e);return r&&r.get(t)}function ms(e){const t=vt(e);return t===e?t:(bn(t,"iterate",ia),dr(e)?t:t.map(dn))}function Ou(e){return bn(e=vt(e),"iterate",ia),e}const T_={__proto__:null,[Symbol.iterator](){return ed(this,Symbol.iterator,dn)},concat(...e){return ms(this).concat(...e.map(t=>We(t)?ms(t):t))},entries(){return ed(this,"entries",e=>(e[1]=dn(e[1]),e))},every(e,t){return ai(this,"every",e,t,void 0,arguments)},filter(e,t){return ai(this,"filter",e,t,r=>r.map(dn),arguments)},find(e,t){return ai(this,"find",e,t,dn,arguments)},findIndex(e,t){return ai(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ai(this,"findLast",e,t,dn,arguments)},findLastIndex(e,t){return ai(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ai(this,"forEach",e,t,void 0,arguments)},includes(...e){return td(this,"includes",e)},indexOf(...e){return td(this,"indexOf",e)},join(e){return ms(this).join(e)},lastIndexOf(...e){return td(this,"lastIndexOf",e)},map(e,t){return ai(this,"map",e,t,void 0,arguments)},pop(){return Ol(this,"pop")},push(...e){return Ol(this,"push",e)},reduce(e,...t){return Cv(this,"reduce",e,t)},reduceRight(e,...t){return Cv(this,"reduceRight",e,t)},shift(){return Ol(this,"shift")},some(e,t){return ai(this,"some",e,t,void 0,arguments)},splice(...e){return Ol(this,"splice",e)},toReversed(){return ms(this).toReversed()},toSorted(e){return ms(this).toSorted(e)},toSpliced(...e){return ms(this).toSpliced(...e)},unshift(...e){return Ol(this,"unshift",e)},values(){return ed(this,"values",dn)}};function ed(e,t,r){const o=Ou(e),s=o[t]();return o!==e&&!dr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const C_=Array.prototype;function ai(e,t,r,o,s,c){const f=Ou(e),d=f!==e&&!dr(e),h=f[t];if(h!==C_[t]){const m=h.apply(e,c);return d?dn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,dn(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 Cv(e,t,r,o){const s=Ou(e);let c=r;return s!==e&&(dr(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,dn(d),h,e)}),s[t](c,...o)}function td(e,t,r){const o=vt(e);bn(o,"iterate",ia);const s=o[t](...r);return(s===-1||s===!1)&&Ph(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Ol(e,t,r=[]){wi(),Ah();const o=vt(e)[t].apply(e,r);return Lh(),xi(),o}const E_=_h("__proto__,__v_isRef,__isVue"),_y=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Or));function A_(e){Or(e)||(e=String(e));const t=vt(this);return bn(t,"has",e),t.hasOwnProperty(e)}class ky{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?z_:Ay:c?Ey:Cy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=We(t);if(!s){let h;if(f&&(h=T_[r]))return h;if(r==="hasOwnProperty")return A_}const d=Reflect.get(t,r,Ot(t)?t:o);if((Or(r)?_y.has(r):E_(r))||(s||bn(t,"get",r),c))return d;if(Ot(d)){const h=f&&Ch(r)?d:d.value;return s&&xt(h)?Hs(h):h}return xt(d)?s?Hs(d):ir(d):d}}class Ty extends ky{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=io(c);if(!dr(o)&&!io(o)&&(c=vt(c),o=vt(o)),!We(t)&&Ot(c)&&!Ot(o))return h||(c.value=o),!0}const f=We(t)&&Ch(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Ot(t)?t:s);return t===vt(s)&&(f?Vn(o,c)&&vi(t,"set",r,o):vi(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&vi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Or(r)||!_y.has(r))&&bn(t,"has",r),o}ownKeys(t){return bn(t,"iterate",We(t)?"length":Do),Reflect.ownKeys(t)}}class L_ extends ky{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const M_=new Ty,N_=new L_,O_=new Ty(!0);const Nd=e=>e,yc=e=>Reflect.getPrototypeOf(e);function R_(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=Es(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Nd:t?Yc:dn;return!t&&bn(c,"iterate",h?Md:Do),{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 bc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function P_(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(Vn(s,d)&&bn(f,"get",s),bn(f,"get",d));const{has:h}=yc(f),p=t?Nd:e?Yc:dn;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&&bn(vt(s),"iterate",Do),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(Vn(s,d)&&bn(f,"has",s),bn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=vt(d),p=t?Nd:e?Yc:dn;return!e&&bn(h,"iterate",Do),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return rn(r,e?{add:bc("add"),set:bc("set"),delete:bc("delete"),clear:bc("clear")}:{add(s){!t&&!dr(s)&&!io(s)&&(s=vt(s));const c=vt(this);return yc(c).has.call(c,s)||(c.add(s),vi(c,"add",s,s)),this},set(s,c){!t&&!dr(c)&&!io(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=yc(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Vn(c,v)&&vi(f,"set",s,c):vi(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=yc(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&vi(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&vi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=R_(s,e,t)}),r}function Nh(e,t){const r=P_(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const I_={get:Nh(!1,!1)},$_={get:Nh(!1,!0)},D_={get:Nh(!0,!1)};const Cy=new WeakMap,Ey=new WeakMap,Ay=new WeakMap,z_=new WeakMap;function F_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function H_(e){return e.__v_skip||!Object.isExtensible(e)?0:F_(c_(e))}function ir(e){return io(e)?e:Rh(e,!1,M_,I_,Cy)}function Oh(e){return Rh(e,!1,O_,$_,Ey)}function Hs(e){return Rh(e,!0,N_,D_,Ay)}function Rh(e,t,r,o,s){if(!xt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=H_(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function As(e){return io(e)?As(e.__v_raw):!!(e&&e.__v_isReactive)}function io(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function Ph(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Ih(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&ay(e,"__v_skip",!0),e}const dn=e=>xt(e)?ir(e):e,Yc=e=>xt(e)?Hs(e):e;function Ot(e){return e?e.__v_isRef===!0:!1}function Ve(e){return Ly(e,!1)}function nn(e){return Ly(e,!0)}function Ly(e,t){return Ot(e)?e:new B_(e,t)}class B_{constructor(t,r){this.dep=new Nu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:dn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||dr(t)||io(t);t=o?t:vt(t),Vn(t,r)&&(this._rawValue=t,this._value=o?t:dn(t),this.dep.trigger())}}function J(e){return Ot(e)?e.value:e}function Vt(e){return Ke(e)?e():J(e)}const W_={get:(e,t,r)=>t==="__v_raw"?e:J(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ot(s)&&!Ot(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function My(e){return As(e)?e:new Proxy(e,W_)}class q_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Nu,{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 Ny(e){return new q_(e)}function j_(e){const t=We(e)?new Array(e.length):{};for(const r in e)t[r]=Oy(e,r);return t}class U_{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 k_(vt(this._object),this._key)}}class V_{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 G_(e,t,r){return Ot(e)?e:Ke(e)?new V_(e):xt(e)&&arguments.length>1?Oy(e,t,r):Ve(e)}function Oy(e,t,r){const o=e[t];return Ot(o)?o:new U_(e,t,r)}class K_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Nu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ra-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return my(this,!0),!0}get value(){const t=this.dep.track();return wy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function X_(e,t,r=!1){let o,s;return Ke(e)?o=e:(o=e.get,s=e.set),new K_(o,s,r)}const wc={},Zc=new WeakMap;let Mo;function Y_(e,t=!1,r=Mo){if(r){let o=Zc.get(r);o||Zc.set(r,o=[]),o.push(e)}}function Z_(e,t,r=mt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:dr(E)||s===!1||s===0?mi(E,1):mi(E);let v,m,b,x,C=!1,L=!1;if(Ot(e)?(m=()=>e.value,C=dr(e)):As(e)?(m=()=>p(e),C=!0):We(e)?(L=!0,C=e.some(E=>As(E)||dr(E)),m=()=>e.map(E=>{if(Ot(E))return E.value;if(As(E))return p(E);if(Ke(E))return h?h(E,2):E()})):Ke(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){wi();try{b()}finally{xi()}}const E=Mo;Mo=v;try{return h?h(e,3,[x]):e(x)}finally{Mo=E}}:m=Kr,t&&s){const E=m,B=s===!0?1/0:s;m=()=>mi(E(),B)}const M=py(),A=()=>{v.stop(),M&&M.active&&Th(M.effects,v)};if(c&&t){const E=t;t=(...B)=>{E(...B),A()}}let R=L?new Array(e.length).fill(wc):wc;const W=E=>{if(!(!(v.flags&1)||!v.dirty&&!E))if(t){const B=v.run();if(s||C||(L?B.some((U,oe)=>Vn(U,R[oe])):Vn(B,R))){b&&b();const U=Mo;Mo=v;try{const oe=[B,R===wc?void 0:L&&R[0]===wc?[]:R,x];R=B,h?h(t,3,oe):t(...oe)}finally{Mo=U}}}else v.run()};return d&&d(W),v=new gy(m),v.scheduler=f?()=>f(W,!1):W,x=E=>Y_(E,!1,v),b=v.onStop=()=>{const E=Zc.get(v);if(E){if(h)h(E,4);else for(const B of E)B();Zc.delete(v)}},t?o?W(!0):R=v.run():f?f(W.bind(null,!0),!0):v.run(),A.pause=v.pause.bind(v),A.resume=v.resume.bind(v),A.stop=A,A}function mi(e,t=1/0,r){if(t<=0||!xt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Ot(e))mi(e.value,t,r);else if(We(e))for(let o=0;o<e.length;o++)mi(e[o],t,r);else if(Cu(e)||Es(e))e.forEach(o=>{mi(o,t,r)});else if(ly(e)){for(const o in e)mi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&mi(e[o],t,r)}return e}/**
9
+ **/let yn;class w_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,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=yn;try{return yn=this,t()}finally{yn=r}}}on(){++this._on===1&&(this.prevScope=yn,yn=this)}off(){this._on>0&&--this._on===0&&(yn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function py(){return yn}function x_(e,t=!1){yn&&yn.cleanups.push(e)}let kt;const Qf=new WeakSet;class gy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,yn&&yn.active&&yn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Qf.has(this)&&(Qf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||my(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tv(this),yy(this);const t=kt,r=Mr;kt=this,Mr=!0;try{return this.fn()}finally{by(this),kt=t,Mr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Mh(t);this.deps=this.depsTail=void 0,Tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Qf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ld(this)&&this.run()}get dirty(){return Ld(this)}}let vy=0,Ul,Vl;function my(e,t=!1){if(e.flags|=8,t){e.next=Vl,Vl=e;return}e.next=Ul,Ul=e}function Ah(){vy++}function Lh(){if(--vy>0)return;if(Vl){let t=Vl;for(Vl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ul;){let t=Ul;for(Ul=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 yy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function by(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Mh(o),S_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Ld(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ra)||(e.globalVersion=ra,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ld(e))))return;e.flags|=2;const t=e.dep,r=kt,o=Mr;kt=e,Mr=!0;try{yy(e);const s=e.fn(e._value);(t.version===0||Vn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Mr=o,by(e),e.flags&=-3}}function Mh(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)Mh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function S_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Mr=!0;const xy=[];function wi(){xy.push(Mr),Mr=!1}function xi(){const e=xy.pop();Mr=e===void 0?!0:e}function Tv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let ra=0;class __{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 Nu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!kt||!Mr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new __(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,Sy(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,ra++,this.notify(t)}notify(t){Ah();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Lh()}}}function Sy(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)Sy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Xc=new WeakMap,Do=Symbol(""),Md=Symbol(""),ia=Symbol("");function bn(e,t,r){if(Mr&&kt){let o=Xc.get(e);o||Xc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Nu),s.map=o,s.key=r),s.track()}}function vi(e,t,r,o,s,c){const f=Xc.get(e);if(!f){ra++;return}const d=h=>{h&&h.trigger()};if(Ah(),t==="clear")f.forEach(d);else{const h=We(e),p=h&&Ch(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===ia||!Or(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ia)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Do)),Es(e)&&d(f.get(Md)));break;case"delete":h||(d(f.get(Do)),Es(e)&&d(f.get(Md)));break;case"set":Es(e)&&d(f.get(Do));break}}Lh()}function k_(e,t){const r=Xc.get(e);return r&&r.get(t)}function ms(e){const t=vt(e);return t===e?t:(bn(t,"iterate",ia),dr(e)?t:t.map(dn))}function Ou(e){return bn(e=vt(e),"iterate",ia),e}const T_={__proto__:null,[Symbol.iterator](){return ed(this,Symbol.iterator,dn)},concat(...e){return ms(this).concat(...e.map(t=>We(t)?ms(t):t))},entries(){return ed(this,"entries",e=>(e[1]=dn(e[1]),e))},every(e,t){return ai(this,"every",e,t,void 0,arguments)},filter(e,t){return ai(this,"filter",e,t,r=>r.map(dn),arguments)},find(e,t){return ai(this,"find",e,t,dn,arguments)},findIndex(e,t){return ai(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ai(this,"findLast",e,t,dn,arguments)},findLastIndex(e,t){return ai(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ai(this,"forEach",e,t,void 0,arguments)},includes(...e){return td(this,"includes",e)},indexOf(...e){return td(this,"indexOf",e)},join(e){return ms(this).join(e)},lastIndexOf(...e){return td(this,"lastIndexOf",e)},map(e,t){return ai(this,"map",e,t,void 0,arguments)},pop(){return Ol(this,"pop")},push(...e){return Ol(this,"push",e)},reduce(e,...t){return Cv(this,"reduce",e,t)},reduceRight(e,...t){return Cv(this,"reduceRight",e,t)},shift(){return Ol(this,"shift")},some(e,t){return ai(this,"some",e,t,void 0,arguments)},splice(...e){return Ol(this,"splice",e)},toReversed(){return ms(this).toReversed()},toSorted(e){return ms(this).toSorted(e)},toSpliced(...e){return ms(this).toSpliced(...e)},unshift(...e){return Ol(this,"unshift",e)},values(){return ed(this,"values",dn)}};function ed(e,t,r){const o=Ou(e),s=o[t]();return o!==e&&!dr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const C_=Array.prototype;function ai(e,t,r,o,s,c){const f=Ou(e),d=f!==e&&!dr(e),h=f[t];if(h!==C_[t]){const m=h.apply(e,c);return d?dn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,dn(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 Cv(e,t,r,o){const s=Ou(e);let c=r;return s!==e&&(dr(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,dn(d),h,e)}),s[t](c,...o)}function td(e,t,r){const o=vt(e);bn(o,"iterate",ia);const s=o[t](...r);return(s===-1||s===!1)&&Ph(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Ol(e,t,r=[]){wi(),Ah();const o=vt(e)[t].apply(e,r);return Lh(),xi(),o}const E_=_h("__proto__,__v_isRef,__isVue"),_y=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Or));function A_(e){Or(e)||(e=String(e));const t=vt(this);return bn(t,"has",e),t.hasOwnProperty(e)}class ky{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?z_:Ay:c?Ey:Cy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=We(t);if(!s){let h;if(f&&(h=T_[r]))return h;if(r==="hasOwnProperty")return A_}const d=Reflect.get(t,r,Ot(t)?t:o);if((Or(r)?_y.has(r):E_(r))||(s||bn(t,"get",r),c))return d;if(Ot(d)){const h=f&&Ch(r)?d:d.value;return s&&xt(h)?Hs(h):h}return xt(d)?s?Hs(d):ir(d):d}}class Ty extends ky{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=io(c);if(!dr(o)&&!io(o)&&(c=vt(c),o=vt(o)),!We(t)&&Ot(c)&&!Ot(o))return h||(c.value=o),!0}const f=We(t)&&Ch(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Ot(t)?t:s);return t===vt(s)&&(f?Vn(o,c)&&vi(t,"set",r,o):vi(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&vi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Or(r)||!_y.has(r))&&bn(t,"has",r),o}ownKeys(t){return bn(t,"iterate",We(t)?"length":Do),Reflect.ownKeys(t)}}class L_ extends ky{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const M_=new Ty,N_=new L_,O_=new Ty(!0);const Nd=e=>e,yc=e=>Reflect.getPrototypeOf(e);function R_(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=Es(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Nd:t?Yc:dn;return!t&&bn(c,"iterate",h?Md:Do),{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 bc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function P_(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(Vn(s,d)&&bn(f,"get",s),bn(f,"get",d));const{has:h}=yc(f),p=t?Nd:e?Yc:dn;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&&bn(vt(s),"iterate",Do),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(Vn(s,d)&&bn(f,"has",s),bn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=vt(d),p=t?Nd:e?Yc:dn;return!e&&bn(h,"iterate",Do),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return rn(r,e?{add:bc("add"),set:bc("set"),delete:bc("delete"),clear:bc("clear")}:{add(s){!t&&!dr(s)&&!io(s)&&(s=vt(s));const c=vt(this);return yc(c).has.call(c,s)||(c.add(s),vi(c,"add",s,s)),this},set(s,c){!t&&!dr(c)&&!io(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=yc(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Vn(c,v)&&vi(f,"set",s,c):vi(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=yc(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&vi(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&vi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=R_(s,e,t)}),r}function Nh(e,t){const r=P_(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const I_={get:Nh(!1,!1)},$_={get:Nh(!1,!0)},D_={get:Nh(!0,!1)};const Cy=new WeakMap,Ey=new WeakMap,Ay=new WeakMap,z_=new WeakMap;function F_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function H_(e){return e.__v_skip||!Object.isExtensible(e)?0:F_(c_(e))}function ir(e){return io(e)?e:Rh(e,!1,M_,I_,Cy)}function Oh(e){return Rh(e,!1,O_,$_,Ey)}function Hs(e){return Rh(e,!0,N_,D_,Ay)}function Rh(e,t,r,o,s){if(!xt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=H_(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function As(e){return io(e)?As(e.__v_raw):!!(e&&e.__v_isReactive)}function io(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function Ph(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Ih(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&ay(e,"__v_skip",!0),e}const dn=e=>xt(e)?ir(e):e,Yc=e=>xt(e)?Hs(e):e;function Ot(e){return e?e.__v_isRef===!0:!1}function Ve(e){return Ly(e,!1)}function nn(e){return Ly(e,!0)}function Ly(e,t){return Ot(e)?e:new B_(e,t)}class B_{constructor(t,r){this.dep=new Nu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:dn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||dr(t)||io(t);t=o?t:vt(t),Vn(t,r)&&(this._rawValue=t,this._value=o?t:dn(t),this.dep.trigger())}}function J(e){return Ot(e)?e.value:e}function Vt(e){return Ke(e)?e():J(e)}const W_={get:(e,t,r)=>t==="__v_raw"?e:J(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ot(s)&&!Ot(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function My(e){return As(e)?e:new Proxy(e,W_)}class q_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Nu,{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 Ny(e){return new q_(e)}function j_(e){const t=We(e)?new Array(e.length):{};for(const r in e)t[r]=Oy(e,r);return t}class U_{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 k_(vt(this._object),this._key)}}class V_{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 G_(e,t,r){return Ot(e)?e:Ke(e)?new V_(e):xt(e)&&arguments.length>1?Oy(e,t,r):Ve(e)}function Oy(e,t,r){const o=e[t];return Ot(o)?o:new U_(e,t,r)}class K_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Nu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ra-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return my(this,!0),!0}get value(){const t=this.dep.track();return wy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function X_(e,t,r=!1){let o,s;return Ke(e)?o=e:(o=e.get,s=e.set),new K_(o,s,r)}const wc={},Zc=new WeakMap;let Mo;function Y_(e,t=!1,r=Mo){if(r){let o=Zc.get(r);o||Zc.set(r,o=[]),o.push(e)}}function Z_(e,t,r=mt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:dr(E)||s===!1||s===0?mi(E,1):mi(E);let v,m,b,x,C=!1,L=!1;if(Ot(e)?(m=()=>e.value,C=dr(e)):As(e)?(m=()=>p(e),C=!0):We(e)?(L=!0,C=e.some(E=>As(E)||dr(E)),m=()=>e.map(E=>{if(Ot(E))return E.value;if(As(E))return p(E);if(Ke(E))return h?h(E,2):E()})):Ke(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){wi();try{b()}finally{xi()}}const E=Mo;Mo=v;try{return h?h(e,3,[x]):e(x)}finally{Mo=E}}:m=Kr,t&&s){const E=m,W=s===!0?1/0:s;m=()=>mi(E(),W)}const M=py(),A=()=>{v.stop(),M&&M.active&&Th(M.effects,v)};if(c&&t){const E=t;t=(...W)=>{E(...W),A()}}let R=L?new Array(e.length).fill(wc):wc;const B=E=>{if(!(!(v.flags&1)||!v.dirty&&!E))if(t){const W=v.run();if(s||C||(L?W.some((U,oe)=>Vn(U,R[oe])):Vn(W,R))){b&&b();const U=Mo;Mo=v;try{const oe=[W,R===wc?void 0:L&&R[0]===wc?[]:R,x];R=W,h?h(t,3,oe):t(...oe)}finally{Mo=U}}}else v.run()};return d&&d(B),v=new gy(m),v.scheduler=f?()=>f(B,!1):B,x=E=>Y_(E,!1,v),b=v.onStop=()=>{const E=Zc.get(v);if(E){if(h)h(E,4);else for(const W of E)W();Zc.delete(v)}},t?o?B(!0):R=v.run():f?f(B.bind(null,!0),!0):v.run(),A.pause=v.pause.bind(v),A.resume=v.resume.bind(v),A.stop=A,A}function mi(e,t=1/0,r){if(t<=0||!xt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Ot(e))mi(e.value,t,r);else if(We(e))for(let o=0;o<e.length;o++)mi(e[o],t,r);else if(Cu(e)||Es(e))e.forEach(o=>{mi(o,t,r)});else if(ly(e)){for(const o in e)mi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&mi(e[o],t,r)}return e}/**
10
10
  * @vue/runtime-core v3.5.24
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/function Ea(e,t,r,o){try{return o?e(...o):e()}catch(s){Aa(s,t,r)}}function Rr(e,t,r,o){if(Ke(e)){const s=Ea(e,t,r,o);return s&&oy(s)&&s.catch(c=>{Aa(c,t,r)}),s}if(We(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Rr(e[c],t,r,o));return s}}function Aa(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||mt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){wi(),Ea(c,null,10,[e,h,p]),xi();return}}J_(e,r,s,o,f)}function J_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Pn=[];let Vr=-1;const Ls=[];let Vi=null,bs=0;const Ry=Promise.resolve();let Jc=null;function Ct(e){const t=Jc||Ry;return e?t.then(this?e.bind(this):e):t}function Q_(e){let t=Vr+1,r=Pn.length;for(;t<r;){const o=t+r>>>1,s=Pn[o],c=oa(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function $h(e){if(!(e.flags&1)){const t=oa(e),r=Pn[Pn.length-1];!r||!(e.flags&2)&&t>=oa(r)?Pn.push(e):Pn.splice(Q_(t),0,e),e.flags|=1,Py()}}function Py(){Jc||(Jc=Ry.then($y))}function Od(e){We(e)?Ls.push(...e):Vi&&e.id===-1?Vi.splice(bs+1,0,e):e.flags&1||(Ls.push(e),e.flags|=1),Py()}function Ev(e,t,r=Vr+1){for(;r<Pn.length;r++){const o=Pn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Pn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Iy(e){if(Ls.length){const t=[...new Set(Ls)].sort((r,o)=>oa(r)-oa(o));if(Ls.length=0,Vi){Vi.push(...t);return}for(Vi=t,bs=0;bs<Vi.length;bs++){const r=Vi[bs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Vi=null,bs=0}}const oa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $y(e){try{for(Vr=0;Vr<Pn.length;Vr++){const t=Pn[Vr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ea(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Vr<Pn.length;Vr++){const t=Pn[Vr];t&&(t.flags&=-2)}Vr=-1,Pn.length=0,Iy(),Jc=null,(Pn.length||Ls.length)&&$y()}}let pn=null,Ru=null;function Qc(e){const t=pn;return pn=e,Ru=e&&e.type.__scopeId||null,t}function Dy(e){Ru=e}function zy(){Ru=null}const Fy=e=>it;function it(e,t=pn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ws(-1);const c=Qc(t);let f;try{f=e(...s)}finally{Qc(c),o._d&&Ws(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ct(e,t){if(pn===null)return e;const r=Bu(pn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=mt]=t[s];c&&(Ke(c)&&(c={mounted:c,updated:c}),c.deep&&mi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function To(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&&(wi(),Rr(h,r,8,[e.el,d,e,t]),xi())}}const ek=Symbol("_vte"),Hy=e=>e.__isTeleport,gi=Symbol("_leaveCb"),xc=Symbol("_enterCb");function tk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fo(()=>{e.isMounted=!0}),La(()=>{e.isUnmounting=!0}),e}const cr=[Function,Array],By={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cr,onEnter:cr,onAfterEnter:cr,onEnterCancelled:cr,onBeforeLeave:cr,onLeave:cr,onAfterLeave:cr,onLeaveCancelled:cr,onBeforeAppear:cr,onAppear:cr,onAfterAppear:cr,onAppearCancelled:cr},Wy=e=>{const t=e.subTree;return t.component?Wy(t.component):t},nk={name:"BaseTransition",props:By,setup(e,{slots:t}){const r=Ci(),o=tk();return()=>{const s=t.default&&Uy(t.default(),!0);if(!s||!s.length)return;const c=qy(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return nd(c);const h=Av(c);if(!h)return nd(c);let p=Rd(h,f,o,r,m=>p=m);h.type!==sn&&sa(h,p);let v=r.subTree&&Av(r.subTree);if(v&&v.type!==sn&&!Gr(v,h)&&Wy(r).type!==sn){let m=Rd(v,f,o,r);if(sa(v,m),d==="out-in"&&h.type!==sn)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},nd(c);d==="in-out"&&h.type!==sn?m.delayLeave=(b,x,C)=>{const L=jy(o,v);L[String(v.key)]=v,b[gi]=()=>{x(),b[gi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{C(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function qy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==sn){t=r;break}}return t}const rk=nk;function jy(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 Rd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:C,onLeaveCancelled:L,onBeforeAppear:M,onAppear:A,onAfterAppear:R,onAppearCancelled:W}=t,E=String(e.key),B=jy(r,e),U=(Z,K)=>{Z&&Rr(Z,o,9,K)},oe=(Z,K)=>{const V=K[1];U(Z,K),We(Z)?Z.every(P=>P.length<=1)&&V():Z.length<=1&&V()},te={mode:f,persisted:d,beforeEnter(Z){let K=h;if(!r.isMounted)if(c)K=M||h;else return;Z[gi]&&Z[gi](!0);const V=B[E];V&&Gr(e,V)&&V.el[gi]&&V.el[gi](),U(K,[Z])},enter(Z){let K=p,V=v,P=m;if(!r.isMounted)if(c)K=A||p,V=R||v,P=W||m;else return;let O=!1;const N=Z[xc]=_=>{O||(O=!0,_?U(P,[Z]):U(V,[Z]),te.delayedLeave&&te.delayedLeave(),Z[xc]=void 0)};K?oe(K,[Z,N]):N()},leave(Z,K){const V=String(e.key);if(Z[xc]&&Z[xc](!0),r.isUnmounting)return K();U(b,[Z]);let P=!1;const O=Z[gi]=N=>{P||(P=!0,K(),N?U(L,[Z]):U(C,[Z]),Z[gi]=void 0,B[V]===e&&delete B[V])};B[V]=e,x?oe(x,[Z,O]):O()},clone(Z){const K=Rd(Z,t,r,o,s);return s&&s(K),K}};return te}function nd(e){if(Pu(e))return e=oo(e),e.children=null,e}function Av(e){if(!Pu(e))return Hy(e.type)&&e.children?qy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ke(r.default))return r.default()}}function sa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sa(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 Uy(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===nt?(f.patchFlag&128&&s++,o=o.concat(Uy(f.children,t,d))):(t||f.type!==sn)&&o.push(d!=null?oo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function ot(e,t){return Ke(e)?rn({name:e.name},t,{setup:e}):e}function Vy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const eu=new WeakMap;function Gl(e,t,r,o,s=!1){if(We(e)){e.forEach((C,L)=>Gl(C,t&&(We(t)?t[L]:t),r,o,s));return}if(Ms(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Gl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Bu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===mt?d.refs={}:d.refs,m=d.setupState,b=vt(m),x=m===mt?iy:C=>wt(b,C);if(p!=null&&p!==h){if(Lv(t),Dt(p))v[p]=null,x(p)&&(m[p]=null);else if(Ot(p)){p.value=null;const C=t;C.k&&(v[C.k]=null)}}if(Ke(h))Ea(h,d,12,[f,v]);else{const C=Dt(h),L=Ot(h);if(C||L){const M=()=>{if(e.f){const A=C?x(h)?m[h]:v[h]:h.value;if(s)We(A)&&Th(A,c);else if(We(A))A.includes(c)||A.push(c);else if(C)v[h]=[c],x(h)&&(m[h]=v[h]);else{const R=[c];h.value=R,e.k&&(v[e.k]=R)}}else C?(v[h]=f,x(h)&&(m[h]=f)):L&&(h.value=f,e.k&&(v[e.k]=f))};if(f){const A=()=>{M(),eu.delete(e)};A.id=-1,eu.set(e,A),er(A,r)}else Lv(e),M()}}}function Lv(e){const t=eu.get(e);t&&(t.flags|=8,eu.delete(e))}Lu().requestIdleCallback;Lu().cancelIdleCallback;const Ms=e=>!!e.type.__asyncLoader,Pu=e=>e.type.__isKeepAlive;function ik(e,t){Gy(e,"a",t)}function ok(e,t){Gy(e,"da",t)}function Gy(e,t,r=xn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Iu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Pu(s.parent.vnode)&&sk(o,t,r,s),s=s.parent}}function sk(e,t,r,o){const s=Iu(t,e,o,!0);$u(()=>{Th(o[t],s)},r)}function Iu(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{wi();const d=Ma(r),h=Rr(t,r,e,f);return d(),xi(),h});return o?s.unshift(c):s.push(c),c}}const Ti=e=>(t,r=xn)=>{(!ca||e==="sp")&&Iu(e,(...o)=>t(...o),r)},lk=Ti("bm"),fo=Ti("m"),ak=Ti("bu"),ck=Ti("u"),La=Ti("bum"),$u=Ti("um"),uk=Ti("sp"),fk=Ti("rtg"),dk=Ti("rtc");function hk(e,t=xn){Iu("ec",e,t)}const Dh="components",pk="directives";function Ho(e,t){return zh(Dh,e,!0,t)||e}const Ky=Symbol.for("v-ndc");function Pd(e){return Dt(e)?zh(Dh,e,!1)||e:e||Ky}function Dr(e){return zh(pk,e)}function zh(e,t,r=!0,o=!1){const s=pn||xn;if(s){const c=s.type;if(e===Dh){const d=lT(c,!1);if(d&&(d===t||d===or(t)||d===Au(or(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[or(t)]||e[Au(or(t))])}function hr(e,t,r,o){let s;const c=r,f=We(e);if(f||Dt(e)){const d=f&&As(e);let h=!1,p=!1;d&&(h=!dr(e),p=io(e),e=Ou(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?Yc(dn(e[v])):dn(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(xt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function gk(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(We(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 Sn(e,t,r={},o,s){if(pn.ce||pn.parent&&Ms(pn.parent)&&pn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),se(),Je(nt,null,[Re("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),se();const f=c&&Xy(c(r)),d=r.key||f&&f.key,h=Je(nt,{key:(d&&!Or(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 Xy(e){return e.some(t=>qs(t)?!(t.type===sn||t.type===nt&&!Xy(t.children)):!0)?e:null}function vk(e,t){const r={};for(const o in e)r[Ic(o)]=e[o];return r}const Id=e=>e?wb(e)?Bu(e):Id(e.parent):null,Kl=rn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Id(e.parent),$root:e=>Id(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jy(e),$forceUpdate:e=>e.f||(e.f=()=>{$h(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>Hk.bind(e)}),rd=(e,t)=>e!==mt&&!e.__isScriptSetup&&wt(e,t),mk={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 x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(rd(o,t))return f[t]=1,o[t];if(s!==mt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==mt&&wt(r,t))return f[t]=4,r[t];$d&&(f[t]=0)}}const v=Kl[t];let m,b;if(v)return t==="$attrs"&&bn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==mt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return rd(s,t)?(s[t]=r,!0):o!==mt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c,type:f}},d){let h,p;return!!(r[d]||e!==mt&&d[0]!=="$"&&wt(e,d)||rd(t,d)||(h=c[0])&&wt(h,d)||wt(o,d)||wt(Kl,d)||wt(s.config.globalProperties,d)||(p=f.__cssModules)&&p[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yk(){return Yy().slots}function bk(){return Yy().attrs}function Yy(e){const t=Ci();return t.setupContext||(t.setupContext=Sb(t))}function tu(e){return We(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function la(e,t){return!e||!t?e||t:We(e)&&We(t)?e.concat(t):rn({},tu(e),tu(t))}let $d=!0;function wk(e){const t=Jy(e),r=e.proxy,o=e.ctx;$d=!1,t.beforeCreate&&Nv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:x,updated:C,activated:L,deactivated:M,beforeDestroy:A,beforeUnmount:R,destroyed:W,unmounted:E,render:B,renderTracked:U,renderTriggered:oe,errorCaptured:te,serverPrefetch:Z,expose:K,inheritAttrs:V,components:P,directives:O,filters:N}=t;if(p&&xk(p,o,null),f)for(const H in f){const re=f[H];Ke(re)&&(o[H]=re.bind(r))}if(s){const H=s.call(r,r);xt(H)&&(e.data=ir(H))}if($d=!0,c)for(const H in c){const re=c[H],ve=Ke(re)?re.bind(r,r):Ke(re.get)?re.get.bind(r,r):Kr,we=!Ke(re)&&Ke(re.set)?re.set.bind(r):Kr,Pe=Se({get:ve,set:we});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:je=>Pe.value=je})}if(d)for(const H in d)Zy(d[H],o,r,H);if(h){const H=Ke(h)?h.call(r):h;Reflect.ownKeys(H).forEach(re=>{Er(re,H[re])})}v&&Nv(v,e,"c");function z(H,re){We(re)?re.forEach(ve=>H(ve.bind(r))):re&&H(re.bind(r))}if(z(lk,m),z(fo,b),z(ak,x),z(ck,C),z(ik,L),z(ok,M),z(hk,te),z(dk,U),z(fk,oe),z(La,R),z($u,E),z(uk,Z),We(K))if(K.length){const H=e.exposed||(e.exposed={});K.forEach(re=>{Object.defineProperty(H,re,{get:()=>r[re],set:ve=>r[re]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===Kr&&(e.render=B),V!=null&&(e.inheritAttrs=V),P&&(e.components=P),O&&(e.directives=O),Z&&Vy(e)}function xk(e,t,r=Kr){We(e)&&(e=Dd(e));for(const o in e){const s=e[o];let c;xt(s)?"default"in s?c=wn(s.from||o,s.default,!0):c=wn(s.from||o):c=wn(s),Ot(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Nv(e,t,r){Rr(We(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Zy(e,t,r,o){let s=o.includes(".")?fb(r,o):()=>r[o];if(Dt(e)){const c=t[e];Ke(c)&&_t(s,c)}else if(Ke(e))_t(s,e.bind(r));else if(xt(e))if(We(e))e.forEach(c=>Zy(c,t,r,o));else{const c=Ke(e.handler)?e.handler.bind(r):t[e.handler];Ke(c)&&_t(s,c,e)}}function Jy(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=>nu(h,p,f,!0)),nu(h,t,f)),xt(t)&&c.set(t,h),h}function nu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&nu(e,c,r,!0),s&&s.forEach(f=>nu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=Sk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const Sk={data:Ov,props:Rv,emits:Rv,methods:Hl,computed:Hl,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:Hl,directives:Hl,watch:kk,provide:Ov,inject:_k};function Ov(e,t){return t?e?function(){return rn(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function _k(e,t){return Hl(Dd(e),Dd(t))}function Dd(e){if(We(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Nn(e,t){return e?[...new Set([].concat(e,t))]:t}function Hl(e,t){return e?rn(Object.create(null),e,t):t}function Rv(e,t){return e?We(e)&&We(t)?[...new Set([...e,...t])]:rn(Object.create(null),tu(e),tu(t??{})):t}function kk(e,t){if(!e)return t;if(!t)return e;const r=rn(Object.create(null),e);for(const o in t)r[o]=Nn(e[o],t[o]);return r}function Qy(){return{app:null,config:{isNativeTag:iy,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 Tk=0;function Ck(e,t){return function(o,s=null){Ke(o)||(o=rn({},o)),s!=null&&!xt(s)&&(s=null);const c=Qy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:Tk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:cT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ke(v.install)?(f.add(v),v.install(p,...m)):Ke(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const x=p._ceVNode||Re(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,v,b),h=!0,p._container=v,v.__vue_app__=p,Bu(x.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Rr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=zo;zo=p;try{return v()}finally{zo=m}}};return p}}let zo=null;function Er(e,t){if(xn){let r=xn.provides;const o=xn.parent&&xn.parent.provides;o===r&&(r=xn.provides=Object.create(o)),r[e]=t}}function wn(e,t,r=!1){const o=Ci();if(o||zo){let s=zo?zo._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ke(t)?t.call(o&&o.proxy):t}}function eb(){return!!(Ci()||zo)}const tb={},nb=()=>Object.create(tb),rb=e=>Object.getPrototypeOf(e)===tb;function Ek(e,t,r,o=!1){const s={},c=nb();e.propsDefaults=Object.create(null),ib(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Oh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function Ak(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Fu(e.emitsOptions,b))continue;const x=t[b];if(h)if(wt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const C=or(b);s[C]=zd(h,d,C,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{ib(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=ki(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=zd(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&vi(e.attrs,"set","")}function ib(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(jl(h))continue;const p=t[h];let v;s&&wt(s,v=or(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Fu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||mt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=zd(s,h,m,p[m],e,!wt(p,m))}}return f}function zd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ke(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Ma(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===ki(r))&&(o=!0))}return o}const Lk=new WeakMap;function ob(e,t,r=!1){const o=r?Lk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ke(e)){const v=m=>{h=!0;const[b,x]=ob(m,t,!0);rn(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return xt(e)&&o.set(e,Cs),Cs;if(We(c))for(let v=0;v<c.length;v++){const m=or(c[v]);Pv(m)&&(f[m]=mt)}else if(c)for(const v in c){const m=or(v);if(Pv(m)){const b=c[v],x=f[m]=We(b)||Ke(b)?{type:b}:rn({},b),C=x.type;let L=!1,M=!0;if(We(C))for(let A=0;A<C.length;++A){const R=C[A],W=Ke(R)&&R.name;if(W==="Boolean"){L=!0;break}else W==="String"&&(M=!1)}else L=Ke(C)&&C.name==="Boolean";x[0]=L,x[1]=M,(L||wt(x,"default"))&&d.push(m)}}const p=[f,d];return xt(e)&&o.set(e,p),p}function Pv(e){return e[0]!=="$"&&!jl(e)}const Fh=e=>e==="_"||e==="_ctx"||e==="$stable",Hh=e=>We(e)?e.map(Ar):[Ar(e)],Mk=(e,t,r)=>{if(t._n)return t;const o=it((...s)=>Hh(t(...s)),r);return o._c=!1,o},sb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Fh(s))continue;const c=e[s];if(Ke(c))t[s]=Mk(s,c,o);else if(c!=null){const f=Hh(c);t[s]=()=>f}}},lb=(e,t)=>{const r=Hh(t);e.slots.default=()=>r},ab=(e,t,r)=>{for(const o in t)(r||!Fh(o))&&(e[o]=t[o])},Nk=(e,t,r)=>{const o=e.slots=nb();if(e.vnode.shapeFlag&32){const s=t._;s?(ab(o,t,r),r&&ay(o,"_",s,!0)):sb(t,o)}else t&&lb(e,t)},Ok=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:ab(s,t,r):(c=!t.$stable,sb(t,s)),f=t}else t&&(lb(e,t),f={default:1});if(c)for(const d in s)!Fh(d)&&f[d]==null&&delete s[d]},er=Jk;function Rk(e){return Pk(e)}function Pk(e,t){const r=Lu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:x=Kr,insertStaticContent:C}=e,L=(I,F,X,ue=null,he=null,de=null,_e=void 0,Ce=null,ge=!!F.dynamicChildren)=>{if(I===F)return;I&&!Gr(I,F)&&(ue=$(I),je(I,he,de,!0),I=null),F.patchFlag===-2&&(ge=!1,F.dynamicChildren=null);const{type:ye,ref:qe,shapeFlag:Ne}=F;switch(ye){case Hu:M(I,F,X,ue);break;case sn:A(I,F,X,ue);break;case od:I==null&&R(F,X,ue,_e);break;case nt:P(I,F,X,ue,he,de,_e,Ce,ge);break;default:Ne&1?B(I,F,X,ue,he,de,_e,Ce,ge):Ne&6?O(I,F,X,ue,he,de,_e,Ce,ge):(Ne&64||Ne&128)&&ye.process(I,F,X,ue,he,de,_e,Ce,ge,le)}qe!=null&&he?Gl(qe,I&&I.ref,de,F||I,!F):qe==null&&I&&I.ref!=null&&Gl(I.ref,null,de,I,!0)},M=(I,F,X,ue)=>{if(I==null)o(F.el=d(F.children),X,ue);else{const he=F.el=I.el;F.children!==I.children&&p(he,F.children)}},A=(I,F,X,ue)=>{I==null?o(F.el=h(F.children||""),X,ue):F.el=I.el},R=(I,F,X,ue)=>{[I.el,I.anchor]=C(I.children,F,X,ue,I.el,I.anchor)},W=({el:I,anchor:F},X,ue)=>{let he;for(;I&&I!==F;)he=b(I),o(I,X,ue),I=he;o(F,X,ue)},E=({el:I,anchor:F})=>{let X;for(;I&&I!==F;)X=b(I),s(I),I=X;s(F)},B=(I,F,X,ue,he,de,_e,Ce,ge)=>{if(F.type==="svg"?_e="svg":F.type==="math"&&(_e="mathml"),I==null)U(F,X,ue,he,de,_e,Ce,ge);else{const ye=I.el&&I.el._isVueCE?I.el:null;try{ye&&ye._beginPatch(),Z(I,F,he,de,_e,Ce,ge)}finally{ye&&ye._endPatch()}}},U=(I,F,X,ue,he,de,_e,Ce)=>{let ge,ye;const{props:qe,shapeFlag:Ne,transition:Fe,dirs:Ge}=I;if(ge=I.el=f(I.type,de,qe&&qe.is,qe),Ne&8?v(ge,I.children):Ne&16&&te(I.children,ge,null,ue,he,id(I,de),_e,Ce),Ge&&To(I,null,ue,"created"),oe(ge,I,I.scopeId,_e,ue),qe){for(const lt in qe)lt!=="value"&&!jl(lt)&&c(ge,lt,null,qe[lt],de,ue);"value"in qe&&c(ge,"value",null,qe.value,de),(ye=qe.onVnodeBeforeMount)&&Ur(ye,ue,I)}Ge&&To(I,null,ue,"beforeMount");const rt=Ik(he,Fe);rt&&Fe.beforeEnter(ge),o(ge,F,X),((ye=qe&&qe.onVnodeMounted)||rt||Ge)&&er(()=>{ye&&Ur(ye,ue,I),rt&&Fe.enter(ge),Ge&&To(I,null,ue,"mounted")},he)},oe=(I,F,X,ue,he)=>{if(X&&x(I,X),ue)for(let de=0;de<ue.length;de++)x(I,ue[de]);if(he){let de=he.subTree;if(F===de||pb(de.type)&&(de.ssContent===F||de.ssFallback===F)){const _e=he.vnode;oe(I,_e,_e.scopeId,_e.slotScopeIds,he.parent)}}},te=(I,F,X,ue,he,de,_e,Ce,ge=0)=>{for(let ye=ge;ye<I.length;ye++){const qe=I[ye]=Ce?Gi(I[ye]):Ar(I[ye]);L(null,qe,F,X,ue,he,de,_e,Ce)}},Z=(I,F,X,ue,he,de,_e)=>{const Ce=F.el=I.el;let{patchFlag:ge,dynamicChildren:ye,dirs:qe}=F;ge|=I.patchFlag&16;const Ne=I.props||mt,Fe=F.props||mt;let Ge;if(X&&Co(X,!1),(Ge=Fe.onVnodeBeforeUpdate)&&Ur(Ge,X,F,I),qe&&To(F,I,X,"beforeUpdate"),X&&Co(X,!0),(Ne.innerHTML&&Fe.innerHTML==null||Ne.textContent&&Fe.textContent==null)&&v(Ce,""),ye?K(I.dynamicChildren,ye,Ce,X,ue,id(F,he),de):_e||re(I,F,Ce,null,X,ue,id(F,he),de,!1),ge>0){if(ge&16)V(Ce,Ne,Fe,X,he);else if(ge&2&&Ne.class!==Fe.class&&c(Ce,"class",null,Fe.class,he),ge&4&&c(Ce,"style",Ne.style,Fe.style,he),ge&8){const rt=F.dynamicProps;for(let lt=0;lt<rt.length;lt++){const ut=rt[lt],Mt=Ne[ut],at=Fe[ut];(at!==Mt||ut==="value")&&c(Ce,ut,Mt,at,he,X)}}ge&1&&I.children!==F.children&&v(Ce,F.children)}else!_e&&ye==null&&V(Ce,Ne,Fe,X,he);((Ge=Fe.onVnodeUpdated)||qe)&&er(()=>{Ge&&Ur(Ge,X,F,I),qe&&To(F,I,X,"updated")},ue)},K=(I,F,X,ue,he,de,_e)=>{for(let Ce=0;Ce<F.length;Ce++){const ge=I[Ce],ye=F[Ce],qe=ge.el&&(ge.type===nt||!Gr(ge,ye)||ge.shapeFlag&198)?m(ge.el):X;L(ge,ye,qe,null,ue,he,de,_e,!0)}},V=(I,F,X,ue,he)=>{if(F!==X){if(F!==mt)for(const de in F)!jl(de)&&!(de in X)&&c(I,de,F[de],null,he,ue);for(const de in X){if(jl(de))continue;const _e=X[de],Ce=F[de];_e!==Ce&&de!=="value"&&c(I,de,Ce,_e,he,ue)}"value"in X&&c(I,"value",F.value,X.value,he)}},P=(I,F,X,ue,he,de,_e,Ce,ge)=>{const ye=F.el=I?I.el:d(""),qe=F.anchor=I?I.anchor:d("");let{patchFlag:Ne,dynamicChildren:Fe,slotScopeIds:Ge}=F;Ge&&(Ce=Ce?Ce.concat(Ge):Ge),I==null?(o(ye,X,ue),o(qe,X,ue),te(F.children||[],X,qe,he,de,_e,Ce,ge)):Ne>0&&Ne&64&&Fe&&I.dynamicChildren?(K(I.dynamicChildren,Fe,X,he,de,_e,Ce),(F.key!=null||he&&F===he.subTree)&&cb(I,F,!0)):re(I,F,X,qe,he,de,_e,Ce,ge)},O=(I,F,X,ue,he,de,_e,Ce,ge)=>{F.slotScopeIds=Ce,I==null?F.shapeFlag&512?he.ctx.activate(F,X,ue,_e,ge):N(F,X,ue,he,de,_e,ge):_(I,F,ge)},N=(I,F,X,ue,he,de,_e)=>{const Ce=I.component=rT(I,ue,he);if(Pu(I)&&(Ce.ctx.renderer=le),iT(Ce,!1,_e),Ce.asyncDep){if(he&&he.registerDep(Ce,z,_e),!I.el){const ge=Ce.subTree=Re(sn);A(null,ge,F,X),I.placeholder=ge.el}}else z(Ce,I,F,X,he,de,_e)},_=(I,F,X)=>{const ue=F.component=I.component;if(Vk(I,F,X))if(ue.asyncDep&&!ue.asyncResolved){H(ue,F,X);return}else ue.next=F,ue.update();else F.el=I.el,ue.vnode=F},z=(I,F,X,ue,he,de,_e)=>{const Ce=()=>{if(I.isMounted){let{next:Ne,bu:Fe,u:Ge,parent:rt,vnode:lt}=I;{const Bt=ub(I);if(Bt){Ne&&(Ne.el=lt.el,H(I,Ne,_e)),Bt.asyncDep.then(()=>{I.isUnmounted||Ce()});return}}let ut=Ne,Mt;Co(I,!1),Ne?(Ne.el=lt.el,H(I,Ne,_e)):Ne=lt,Fe&&$c(Fe),(Mt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Ur(Mt,rt,Ne,lt),Co(I,!0);const at=$v(I),Gt=I.subTree;I.subTree=at,L(Gt,at,m(Gt.el),$(Gt),I,he,de),Ne.el=at.el,ut===null&&Wh(I,at.el),Ge&&er(Ge,he),(Mt=Ne.props&&Ne.props.onVnodeUpdated)&&er(()=>Ur(Mt,rt,Ne,lt),he)}else{let Ne;const{el:Fe,props:Ge}=F,{bm:rt,m:lt,parent:ut,root:Mt,type:at}=I,Gt=Ms(F);Co(I,!1),rt&&$c(rt),!Gt&&(Ne=Ge&&Ge.onVnodeBeforeMount)&&Ur(Ne,ut,F),Co(I,!0);{Mt.ce&&Mt.ce._def.shadowRoot!==!1&&Mt.ce._injectChildStyle(at);const Bt=I.subTree=$v(I);L(null,Bt,X,ue,I,he,de),F.el=Bt.el}if(lt&&er(lt,he),!Gt&&(Ne=Ge&&Ge.onVnodeMounted)){const Bt=F;er(()=>Ur(Ne,ut,Bt),he)}(F.shapeFlag&256||ut&&Ms(ut.vnode)&&ut.vnode.shapeFlag&256)&&I.a&&er(I.a,he),I.isMounted=!0,F=X=ue=null}};I.scope.on();const ge=I.effect=new gy(Ce);I.scope.off();const ye=I.update=ge.run.bind(ge),qe=I.job=ge.runIfDirty.bind(ge);qe.i=I,qe.id=I.uid,ge.scheduler=()=>$h(qe),Co(I,!0),ye()},H=(I,F,X)=>{F.component=I;const ue=I.vnode.props;I.vnode=F,I.next=null,Ak(I,F.props,ue,X),Ok(I,F.children,X),wi(),Ev(I),xi()},re=(I,F,X,ue,he,de,_e,Ce,ge=!1)=>{const ye=I&&I.children,qe=I?I.shapeFlag:0,Ne=F.children,{patchFlag:Fe,shapeFlag:Ge}=F;if(Fe>0){if(Fe&128){we(ye,Ne,X,ue,he,de,_e,Ce,ge);return}else if(Fe&256){ve(ye,Ne,X,ue,he,de,_e,Ce,ge);return}}Ge&8?(qe&16&&Me(ye,he,de),Ne!==ye&&v(X,Ne)):qe&16?Ge&16?we(ye,Ne,X,ue,he,de,_e,Ce,ge):Me(ye,he,de,!0):(qe&8&&v(X,""),Ge&16&&te(Ne,X,ue,he,de,_e,Ce,ge))},ve=(I,F,X,ue,he,de,_e,Ce,ge)=>{I=I||Cs,F=F||Cs;const ye=I.length,qe=F.length,Ne=Math.min(ye,qe);let Fe;for(Fe=0;Fe<Ne;Fe++){const Ge=F[Fe]=ge?Gi(F[Fe]):Ar(F[Fe]);L(I[Fe],Ge,X,null,he,de,_e,Ce,ge)}ye>qe?Me(I,he,de,!0,!1,Ne):te(F,X,ue,he,de,_e,Ce,ge,Ne)},we=(I,F,X,ue,he,de,_e,Ce,ge)=>{let ye=0;const qe=F.length;let Ne=I.length-1,Fe=qe-1;for(;ye<=Ne&&ye<=Fe;){const Ge=I[ye],rt=F[ye]=ge?Gi(F[ye]):Ar(F[ye]);if(Gr(Ge,rt))L(Ge,rt,X,null,he,de,_e,Ce,ge);else break;ye++}for(;ye<=Ne&&ye<=Fe;){const Ge=I[Ne],rt=F[Fe]=ge?Gi(F[Fe]):Ar(F[Fe]);if(Gr(Ge,rt))L(Ge,rt,X,null,he,de,_e,Ce,ge);else break;Ne--,Fe--}if(ye>Ne){if(ye<=Fe){const Ge=Fe+1,rt=Ge<qe?F[Ge].el:ue;for(;ye<=Fe;)L(null,F[ye]=ge?Gi(F[ye]):Ar(F[ye]),X,rt,he,de,_e,Ce,ge),ye++}}else if(ye>Fe)for(;ye<=Ne;)je(I[ye],he,de,!0),ye++;else{const Ge=ye,rt=ye,lt=new Map;for(ye=rt;ye<=Fe;ye++){const zt=F[ye]=ge?Gi(F[ye]):Ar(F[ye]);zt.key!=null&&lt.set(zt.key,ye)}let ut,Mt=0;const at=Fe-rt+1;let Gt=!1,Bt=0;const Fn=new Array(at);for(ye=0;ye<at;ye++)Fn[ye]=0;for(ye=Ge;ye<=Ne;ye++){const zt=I[ye];if(Mt>=at){je(zt,he,de,!0);continue}let Hn;if(zt.key!=null)Hn=lt.get(zt.key);else for(ut=rt;ut<=Fe;ut++)if(Fn[ut-rt]===0&&Gr(zt,F[ut])){Hn=ut;break}Hn===void 0?je(zt,he,de,!0):(Fn[Hn-rt]=ye+1,Hn>=Bt?Bt=Hn:Gt=!0,L(zt,F[Hn],X,null,he,de,_e,Ce,ge),Mt++)}const Fr=Gt?$k(Fn):Cs;for(ut=Fr.length-1,ye=at-1;ye>=0;ye--){const zt=rt+ye,Hn=F[zt],tt=F[zt+1],ho=zt+1<qe?tt.el||tt.placeholder:ue;Fn[ye]===0?L(null,Hn,X,ho,he,de,_e,Ce,ge):Gt&&(ut<0||ye!==Fr[ut]?Pe(Hn,X,ho,2):ut--)}}},Pe=(I,F,X,ue,he=null)=>{const{el:de,type:_e,transition:Ce,children:ge,shapeFlag:ye}=I;if(ye&6){Pe(I.component.subTree,F,X,ue);return}if(ye&128){I.suspense.move(F,X,ue);return}if(ye&64){_e.move(I,F,X,le);return}if(_e===nt){o(de,F,X);for(let Ne=0;Ne<ge.length;Ne++)Pe(ge[Ne],F,X,ue);o(I.anchor,F,X);return}if(_e===od){W(I,F,X);return}if(ue!==2&&ye&1&&Ce)if(ue===0)Ce.beforeEnter(de),o(de,F,X),er(()=>Ce.enter(de),he);else{const{leave:Ne,delayLeave:Fe,afterLeave:Ge}=Ce,rt=()=>{I.ctx.isUnmounted?s(de):o(de,F,X)},lt=()=>{de._isLeaving&&de[gi](!0),Ne(de,()=>{rt(),Ge&&Ge()})};Fe?Fe(de,rt,lt):lt()}else o(de,F,X)},je=(I,F,X,ue=!1,he=!1)=>{const{type:de,props:_e,ref:Ce,children:ge,dynamicChildren:ye,shapeFlag:qe,patchFlag:Ne,dirs:Fe,cacheIndex:Ge}=I;if(Ne===-2&&(he=!1),Ce!=null&&(wi(),Gl(Ce,null,X,I,!0),xi()),Ge!=null&&(F.renderCache[Ge]=void 0),qe&256){F.ctx.deactivate(I);return}const rt=qe&1&&Fe,lt=!Ms(I);let ut;if(lt&&(ut=_e&&_e.onVnodeBeforeUnmount)&&Ur(ut,F,I),qe&6)ze(I.component,X,ue);else{if(qe&128){I.suspense.unmount(X,ue);return}rt&&To(I,null,F,"beforeUnmount"),qe&64?I.type.remove(I,F,X,le,ue):ye&&!ye.hasOnce&&(de!==nt||Ne>0&&Ne&64)?Me(ye,F,X,!1,!0):(de===nt&&Ne&384||!he&&qe&16)&&Me(ge,F,X),ue&&Qe(I)}(lt&&(ut=_e&&_e.onVnodeUnmounted)||rt)&&er(()=>{ut&&Ur(ut,F,I),rt&&To(I,null,F,"unmounted")},X)},Qe=I=>{const{type:F,el:X,anchor:ue,transition:he}=I;if(F===nt){Ye(X,ue);return}if(F===od){E(I);return}const de=()=>{s(X),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(I.shapeFlag&1&&he&&!he.persisted){const{leave:_e,delayLeave:Ce}=he,ge=()=>_e(X,de);Ce?Ce(I.el,de,ge):ge()}else de()},Ye=(I,F)=>{let X;for(;I!==F;)X=b(I),s(I),I=X;s(F)},ze=(I,F,X)=>{const{bum:ue,scope:he,job:de,subTree:_e,um:Ce,m:ge,a:ye}=I;Iv(ge),Iv(ye),ue&&$c(ue),he.stop(),de&&(de.flags|=8,je(_e,I,F,X)),Ce&&er(Ce,F),er(()=>{I.isUnmounted=!0},F)},Me=(I,F,X,ue=!1,he=!1,de=0)=>{for(let _e=de;_e<I.length;_e++)je(I[_e],F,X,ue,he)},$=I=>{if(I.shapeFlag&6)return $(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const F=b(I.anchor||I.el),X=F&&F[ek];return X?b(X):F};let G=!1;const Q=(I,F,X)=>{I==null?F._vnode&&je(F._vnode,null,null,!0):L(F._vnode||null,I,F,null,null,null,X),F._vnode=I,G||(G=!0,Ev(),Iy(),G=!1)},le={p:L,um:je,m:Pe,r:Qe,mt:N,mc:te,pc:re,pbc:K,n:$,o:e};return{render:Q,hydrate:void 0,createApp:Ck(Q)}}function id({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 Co({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ik(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function cb(e,t,r=!1){const o=e.children,s=t.children;if(We(o)&&We(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]=Gi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&cb(f,d)),d.type===Hu&&d.patchFlag!==-1&&(d.el=f.el),d.type===sn&&!d.el&&(d.el=f.el)}}function $k(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 ub(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ub(t)}function Iv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Dk=Symbol.for("v-scx"),zk=()=>wn(Dk);function Bh(e,t){return Du(e,null,t)}function Fk(e,t){return Du(e,null,{flush:"sync"})}function _t(e,t,r){return Du(e,t,r)}function Du(e,t,r=mt){const{immediate:o,deep:s,flush:c,once:f}=r,d=rn({},r),h=t&&o||!t&&c!=="post";let p;if(ca){if(c==="sync"){const x=zk();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Kr,x.resume=Kr,x.pause=Kr,x}}const v=xn;d.call=(x,C,L)=>Rr(x,v,C,L);let m=!1;c==="post"?d.scheduler=x=>{er(x,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(x,C)=>{C?x():$h(x)}),d.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const b=Z_(e,t,d);return ca&&(p?p.push(b):h&&b()),b}function Hk(e,t,r){const o=this.proxy,s=Dt(e)?e.includes(".")?fb(o,e):()=>o[e]:e.bind(o,o);let c;Ke(t)?c=t:(c=t.handler,r=t);const f=Ma(this),d=Du(s,c.bind(o),r);return f(),d}function fb(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 zu(e,t,r=mt){const o=Ci(),s=or(t),c=ki(t),f=db(e,s),d=Ny((h,p)=>{let v,m=mt,b;return Fk(()=>{const x=e[s];Vn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const C=r.set?r.set(x):x;if(!Vn(C,v)&&!(m!==mt&&Vn(x,m)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(v=x,p()),o.emit(`update:${t}`,C),Vn(x,C)&&Vn(x,m)&&!Vn(C,b)&&p(),m=x,b=C}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||mt:d,done:!1}:{done:!0}}}},d}const db=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${or(t)}Modifiers`]||e[`${ki(t)}Modifiers`];function Bk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const c=t.startsWith("update:"),f=c&&db(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Dt(v)?v.trim():v)),f.number&&(s=r.map(Eh)));let d,h=o[d=Ic(t)]||o[d=Ic(or(t))];!h&&c&&(h=o[d=Ic(ki(t))]),h&&Rr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Rr(p,e,6,s)}}const Wk=new WeakMap;function hb(e,t,r=!1){const o=r?Wk:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ke(e)){const h=p=>{const v=hb(p,t,!0);v&&(d=!0,rn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(xt(e)&&o.set(e,null),null):(We(c)?c.forEach(h=>f[h]=null):rn(f,c),xt(e)&&o.set(e,f),f)}function Fu(e,t){return!e||!Tu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,ki(t))||wt(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:x,ctx:C,inheritAttrs:L}=e,M=Qc(e);let A,R;try{if(r.shapeFlag&4){const E=s||o,B=E;A=Ar(p.call(B,E,v,m,x,b,C)),R=d}else{const E=t;A=Ar(E.length>1?E(m,{attrs:d,slots:f,emit:h}):E(m,null)),R=t.props?d:jk(d)}}catch(E){Xl.length=0,Aa(E,e,1),A=Re(sn)}let W=A;if(R&&L!==!1){const E=Object.keys(R),{shapeFlag:B}=W;E.length&&B&7&&(c&&E.some(kh)&&(R=Uk(R,c)),W=oo(W,R,!1,!0))}return r.dirs&&(W=oo(W,null,!1,!0),W.dirs=W.dirs?W.dirs.concat(r.dirs):r.dirs),r.transition&&sa(W,r.transition),A=W,Qc(M),A}function qk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(qs(s)){if(s.type!==sn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const jk=e=>{let t;for(const r in e)(r==="class"||r==="style"||Tu(r))&&((t||(t={}))[r]=e[r]);return t},Uk=(e,t)=>{const r={};for(const o in e)(!kh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Vk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Dv(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]&&!Fu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Dv(o,f,p):!0:!!f;return!1}function Dv(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]&&!Fu(r,c))return!0}return!1}function Wh({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 pb=e=>e.__isSuspense;let Fd=0;const Gk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Kk(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}Xk(e,t,r,o,s,f,d,h,p)}},hydrate:Yk,normalize:Zk},qh=Gk;function aa(e,t){const r=e.props&&e.props[t];Ke(r)&&r()}function Kk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=gb(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?(aa(e,"onPending"),aa(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Ns(b,e.ssFallback)):b.resolve(!1,!0)}function Xk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:C,pendingBranch:L,isInFallback:M,isHydrating:A}=m;if(L)m.pendingBranch=b,Gr(L,b)?(h(L,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():M&&(A||(h(C,x,r,o,s,null,c,f,d),Ns(m,x)))):(m.pendingId=Fd++,A?(m.isHydrating=!1,m.activeBranch=L):p(L,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),M?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(C,x,r,o,s,null,c,f,d),Ns(m,x))):C&&Gr(C,b)?(h(C,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(C&&Gr(C,b))h(C,b,r,o,s,m,c,f,d),Ns(m,b);else if(aa(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Fd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:R,pendingId:W}=m;R>0?setTimeout(()=>{m.pendingId===W&&m.fallback(x)},R):R===0&&m.fallback(x)}}function gb(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:x,n:C,o:{parentNode:L,remove:M}}=p;let A;const R=Qk(e);R&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const W=e.props?cy(e.props.timeout):void 0,E=c,B={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Fd++,timeout:typeof W=="number"?W:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(U=!1,oe=!1){const{vnode:te,activeBranch:Z,pendingBranch:K,pendingId:V,effects:P,parentComponent:O,container:N,isInFallback:_}=B;let z=!1;B.isHydrating?B.isHydrating=!1:U||(z=Z&&K.transition&&K.transition.mode==="out-in",z&&(Z.transition.afterLeave=()=>{V===B.pendingId&&(b(K,N,c===E?C(Z):c,0),Od(P),_&&te.ssFallback&&(te.ssFallback.el=null))}),Z&&(L(Z.el)===N&&(c=C(Z)),x(Z,O,B,!0),!z&&_&&te.ssFallback&&(te.ssFallback.el=null)),z||b(K,N,c,0)),Ns(B,K),B.pendingBranch=null,B.isInFallback=!1;let H=B.parent,re=!1;for(;H;){if(H.pendingBranch){H.effects.push(...P),re=!0;break}H=H.parent}!re&&!z&&Od(P),B.effects=[],R&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!oe&&t.resolve()),aa(te,"onResolve")},fallback(U){if(!B.pendingBranch)return;const{vnode:oe,activeBranch:te,parentComponent:Z,container:K,namespace:V}=B;aa(oe,"onFallback");const P=C(te),O=()=>{B.isInFallback&&(m(null,U,K,P,Z,null,V,d,h),Ns(B,U))},N=U.transition&&U.transition.mode==="out-in";N&&(te.transition.afterLeave=O),B.isInFallback=!0,x(te,Z,null,!0),N||O()},move(U,oe,te){B.activeBranch&&b(B.activeBranch,U,oe,te),B.container=U},next(){return B.activeBranch&&C(B.activeBranch)},registerDep(U,oe,te){const Z=!!B.pendingBranch;Z&&B.deps++;const K=U.vnode.el;U.asyncDep.catch(V=>{Aa(V,U,0)}).then(V=>{if(U.isUnmounted||B.isUnmounted||B.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:P}=U;Bd(U,V),K&&(P.el=K);const O=!K&&U.subTree.el;oe(U,P,L(K||U.subTree.el),K?null:C(U.subTree),B,f,te),O&&(P.placeholder=null,M(O)),Wh(U,P.el),Z&&--B.deps===0&&B.resolve()})},unmount(U,oe){B.isUnmounted=!0,B.activeBranch&&x(B.activeBranch,r,U,oe),B.pendingBranch&&x(B.pendingBranch,r,U,oe)}};return B}function Yk(e,t,r,o,s,c,f,d,h){const p=t.suspense=gb(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 Zk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=zv(o?r.default:r),e.ssFallback=o?zv(r.fallback):Re(sn)}function zv(e){let t;if(Ke(e)){const r=Bs&&e._c;r&&(e._d=!1,se()),e=e(),r&&(e._d=!0,t=Kn,vb())}return We(e)&&(e=qk(e)),e=Ar(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Jk(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):Od(e)}function Ns(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,Wh(o,s))}function Qk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Hu=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),od=Symbol.for("v-stc"),Xl=[];let Kn=null;function se(e=!1){Xl.push(Kn=e?null:[])}function vb(){Xl.pop(),Kn=Xl[Xl.length-1]||null}let Bs=1;function Ws(e,t=!1){Bs+=e,e<0&&Kn&&t&&(Kn.hasOnce=!0)}function mb(e){return e.dynamicChildren=Bs>0?Kn||Cs:null,vb(),Bs>0&&Kn&&Kn.push(e),e}function me(e,t,r,o,s,c){return mb(ne(e,t,r,o,s,c,!0))}function Je(e,t,r,o,s){return mb(Re(e,t,r,o,s,!0))}function qs(e){return e?e.__v_isVNode===!0:!1}function Gr(e,t){return e.type===t.type&&e.key===t.key}const yb=({key:e})=>e??null,Dc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||Ot(e)||Ke(e)?{i:pn,r:e,k:t,f:!!r}:e:null);function ne(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yb(t),ref:t&&Dc(t),scopeId:Ru,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:pn};return d?(jh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Dt(r)?8:16),Bs>0&&!f&&Kn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Kn.push(h),h}const Re=eT;function eT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Ky)&&(e=sn),qs(e)){const d=oo(e,t,!0);return r&&jh(d,r),Bs>0&&!c&&Kn&&(d.shapeFlag&6?Kn[Kn.indexOf(e)]=d:Kn.push(d)),d.patchFlag=-2,d}if(aT(e)&&(e=e.__vccOpts),t){t=bb(t);let{class:d,style:h}=t;d&&!Dt(d)&&(t.class=st(d)),xt(h)&&(Ph(h)&&!We(h)&&(h=rn({},h)),t.style=tn(h))}const f=Dt(e)?1:pb(e)?128:Hy(e)?64:xt(e)?4:Ke(e)?2:0;return ne(e,t,r,o,s,f,c,!0)}function bb(e){return e?Ph(e)||rb(e)?rn({},e):e:null}function oo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?bi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&yb(p),ref:t&&t.ref?r&&c?We(c)?c.concat(Dc(t)):[c,Dc(t)]:Dc(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!==nt?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&&oo(e.ssContent),ssFallback:e.ssFallback&&oo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&sa(v,h.clone(v)),v}function ht(e=" ",t=0){return Re(Hu,null,e,t)}function Ue(e="",t=!1){return t?(se(),Je(sn,null,e)):Re(sn,null,e)}function Ar(e){return e==null||typeof e=="boolean"?Re(sn):We(e)?Re(nt,null,e.slice()):qs(e)?Gi(e):Re(Hu,null,String(e))}function Gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:oo(e)}function jh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(We(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),jh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!rb(t)?t._ctx=pn:s===3&&pn&&(pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(t)?(t={default:t,_ctx:pn},r=32):(t=String(t),o&64?(r=16,t=[ht(t)]):r=8);e.children=t,e.shapeFlag|=r}function bi(...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=tn([t.style,o.style]);else if(Tu(s)){const c=t[s],f=o[s];f&&c!==f&&!(We(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Ur(e,t,r,o=null){Rr(e,t,7,[r,o])}const tT=Qy();let nT=0;function rT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||tT,c={uid:nT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new w_(!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:ob(o,s),emitsOptions:hb(o,s),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:o.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Bk.bind(null,c),e.ce&&e.ce(c),c}let xn=null;const Ci=()=>xn||pn;let ru,Hd;{const e=Lu(),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)}};ru=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),Hd=t("__VUE_SSR_SETTERS__",r=>ca=r)}const Ma=e=>{const t=xn;return ru(e),e.scope.on(),()=>{e.scope.off(),ru(t)}},Fv=()=>{xn&&xn.scope.off(),ru(null)};function wb(e){return e.vnode.shapeFlag&4}let ca=!1;function iT(e,t=!1,r=!1){t&&Hd(t);const{props:o,children:s}=e.vnode,c=wb(e);Ek(e,o,c,t),Nk(e,s,r||t);const f=c?oT(e,t):void 0;return t&&Hd(!1),f}function oT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mk);const{setup:o}=r;if(o){wi();const s=e.setupContext=o.length>1?Sb(e):null,c=Ma(e),f=Ea(o,e,0,[e.props,s]),d=oy(f);if(xi(),c(),(d||e.sp)&&!Ms(e)&&Vy(e),d){if(f.then(Fv,Fv),t)return f.then(h=>{Bd(e,h)}).catch(h=>{Aa(h,e,0)});e.asyncDep=f}else Bd(e,f)}else xb(e)}function Bd(e,t,r){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=My(t)),xb(e)}function xb(e,t,r){const o=e.type;e.render||(e.render=o.render||Kr);{const s=Ma(e);wi();try{wk(e)}finally{xi(),s()}}}const sT={get(e,t){return bn(e,"get",""),e[t]}};function Sb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,sT),slots:e.slots,emit:e.emit,expose:t}}function Bu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(My(Ih(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Kl)return Kl[r](e)},has(t,r){return r in t||r in Kl}})):e.proxy}function lT(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function aT(e){return Ke(e)&&"__vccOpts"in e}const Se=(e,t)=>X_(e,t,ca);function Na(e,t,r){try{Ws(-1);const o=arguments.length;return o===2?xt(t)&&!We(t)?qs(t)?Re(e,null,[t]):Re(e,t):Re(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&qs(r)&&(r=[r]),Re(e,t,r))}finally{Ws(1)}}const cT="3.5.24";/**
13
+ **/function Ea(e,t,r,o){try{return o?e(...o):e()}catch(s){Aa(s,t,r)}}function Rr(e,t,r,o){if(Ke(e)){const s=Ea(e,t,r,o);return s&&oy(s)&&s.catch(c=>{Aa(c,t,r)}),s}if(We(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Rr(e[c],t,r,o));return s}}function Aa(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||mt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){wi(),Ea(c,null,10,[e,h,p]),xi();return}}J_(e,r,s,o,f)}function J_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Pn=[];let Vr=-1;const Ls=[];let Vi=null,bs=0;const Ry=Promise.resolve();let Jc=null;function Ct(e){const t=Jc||Ry;return e?t.then(this?e.bind(this):e):t}function Q_(e){let t=Vr+1,r=Pn.length;for(;t<r;){const o=t+r>>>1,s=Pn[o],c=oa(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function $h(e){if(!(e.flags&1)){const t=oa(e),r=Pn[Pn.length-1];!r||!(e.flags&2)&&t>=oa(r)?Pn.push(e):Pn.splice(Q_(t),0,e),e.flags|=1,Py()}}function Py(){Jc||(Jc=Ry.then($y))}function Od(e){We(e)?Ls.push(...e):Vi&&e.id===-1?Vi.splice(bs+1,0,e):e.flags&1||(Ls.push(e),e.flags|=1),Py()}function Ev(e,t,r=Vr+1){for(;r<Pn.length;r++){const o=Pn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Pn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Iy(e){if(Ls.length){const t=[...new Set(Ls)].sort((r,o)=>oa(r)-oa(o));if(Ls.length=0,Vi){Vi.push(...t);return}for(Vi=t,bs=0;bs<Vi.length;bs++){const r=Vi[bs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Vi=null,bs=0}}const oa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $y(e){try{for(Vr=0;Vr<Pn.length;Vr++){const t=Pn[Vr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ea(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Vr<Pn.length;Vr++){const t=Pn[Vr];t&&(t.flags&=-2)}Vr=-1,Pn.length=0,Iy(),Jc=null,(Pn.length||Ls.length)&&$y()}}let pn=null,Ru=null;function Qc(e){const t=pn;return pn=e,Ru=e&&e.type.__scopeId||null,t}function Dy(e){Ru=e}function zy(){Ru=null}const Fy=e=>it;function it(e,t=pn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ws(-1);const c=Qc(t);let f;try{f=e(...s)}finally{Qc(c),o._d&&Ws(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ct(e,t){if(pn===null)return e;const r=Bu(pn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=mt]=t[s];c&&(Ke(c)&&(c={mounted:c,updated:c}),c.deep&&mi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function To(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&&(wi(),Rr(h,r,8,[e.el,d,e,t]),xi())}}const ek=Symbol("_vte"),Hy=e=>e.__isTeleport,gi=Symbol("_leaveCb"),xc=Symbol("_enterCb");function tk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fo(()=>{e.isMounted=!0}),La(()=>{e.isUnmounting=!0}),e}const cr=[Function,Array],By={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cr,onEnter:cr,onAfterEnter:cr,onEnterCancelled:cr,onBeforeLeave:cr,onLeave:cr,onAfterLeave:cr,onLeaveCancelled:cr,onBeforeAppear:cr,onAppear:cr,onAfterAppear:cr,onAppearCancelled:cr},Wy=e=>{const t=e.subTree;return t.component?Wy(t.component):t},nk={name:"BaseTransition",props:By,setup(e,{slots:t}){const r=Ci(),o=tk();return()=>{const s=t.default&&Uy(t.default(),!0);if(!s||!s.length)return;const c=qy(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return nd(c);const h=Av(c);if(!h)return nd(c);let p=Rd(h,f,o,r,m=>p=m);h.type!==sn&&sa(h,p);let v=r.subTree&&Av(r.subTree);if(v&&v.type!==sn&&!Gr(v,h)&&Wy(r).type!==sn){let m=Rd(v,f,o,r);if(sa(v,m),d==="out-in"&&h.type!==sn)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},nd(c);d==="in-out"&&h.type!==sn?m.delayLeave=(b,x,C)=>{const L=jy(o,v);L[String(v.key)]=v,b[gi]=()=>{x(),b[gi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{C(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function qy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==sn){t=r;break}}return t}const rk=nk;function jy(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 Rd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:C,onLeaveCancelled:L,onBeforeAppear:M,onAppear:A,onAfterAppear:R,onAppearCancelled:B}=t,E=String(e.key),W=jy(r,e),U=(Z,K)=>{Z&&Rr(Z,o,9,K)},oe=(Z,K)=>{const V=K[1];U(Z,K),We(Z)?Z.every(P=>P.length<=1)&&V():Z.length<=1&&V()},te={mode:f,persisted:d,beforeEnter(Z){let K=h;if(!r.isMounted)if(c)K=M||h;else return;Z[gi]&&Z[gi](!0);const V=W[E];V&&Gr(e,V)&&V.el[gi]&&V.el[gi](),U(K,[Z])},enter(Z){let K=p,V=v,P=m;if(!r.isMounted)if(c)K=A||p,V=R||v,P=B||m;else return;let O=!1;const N=Z[xc]=_=>{O||(O=!0,_?U(P,[Z]):U(V,[Z]),te.delayedLeave&&te.delayedLeave(),Z[xc]=void 0)};K?oe(K,[Z,N]):N()},leave(Z,K){const V=String(e.key);if(Z[xc]&&Z[xc](!0),r.isUnmounting)return K();U(b,[Z]);let P=!1;const O=Z[gi]=N=>{P||(P=!0,K(),N?U(L,[Z]):U(C,[Z]),Z[gi]=void 0,W[V]===e&&delete W[V])};W[V]=e,x?oe(x,[Z,O]):O()},clone(Z){const K=Rd(Z,t,r,o,s);return s&&s(K),K}};return te}function nd(e){if(Pu(e))return e=oo(e),e.children=null,e}function Av(e){if(!Pu(e))return Hy(e.type)&&e.children?qy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ke(r.default))return r.default()}}function sa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sa(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 Uy(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===nt?(f.patchFlag&128&&s++,o=o.concat(Uy(f.children,t,d))):(t||f.type!==sn)&&o.push(d!=null?oo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function ot(e,t){return Ke(e)?rn({name:e.name},t,{setup:e}):e}function Vy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const eu=new WeakMap;function Gl(e,t,r,o,s=!1){if(We(e)){e.forEach((C,L)=>Gl(C,t&&(We(t)?t[L]:t),r,o,s));return}if(Ms(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Gl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Bu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===mt?d.refs={}:d.refs,m=d.setupState,b=vt(m),x=m===mt?iy:C=>wt(b,C);if(p!=null&&p!==h){if(Lv(t),Dt(p))v[p]=null,x(p)&&(m[p]=null);else if(Ot(p)){p.value=null;const C=t;C.k&&(v[C.k]=null)}}if(Ke(h))Ea(h,d,12,[f,v]);else{const C=Dt(h),L=Ot(h);if(C||L){const M=()=>{if(e.f){const A=C?x(h)?m[h]:v[h]:h.value;if(s)We(A)&&Th(A,c);else if(We(A))A.includes(c)||A.push(c);else if(C)v[h]=[c],x(h)&&(m[h]=v[h]);else{const R=[c];h.value=R,e.k&&(v[e.k]=R)}}else C?(v[h]=f,x(h)&&(m[h]=f)):L&&(h.value=f,e.k&&(v[e.k]=f))};if(f){const A=()=>{M(),eu.delete(e)};A.id=-1,eu.set(e,A),er(A,r)}else Lv(e),M()}}}function Lv(e){const t=eu.get(e);t&&(t.flags|=8,eu.delete(e))}Lu().requestIdleCallback;Lu().cancelIdleCallback;const Ms=e=>!!e.type.__asyncLoader,Pu=e=>e.type.__isKeepAlive;function ik(e,t){Gy(e,"a",t)}function ok(e,t){Gy(e,"da",t)}function Gy(e,t,r=xn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Iu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Pu(s.parent.vnode)&&sk(o,t,r,s),s=s.parent}}function sk(e,t,r,o){const s=Iu(t,e,o,!0);$u(()=>{Th(o[t],s)},r)}function Iu(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{wi();const d=Ma(r),h=Rr(t,r,e,f);return d(),xi(),h});return o?s.unshift(c):s.push(c),c}}const Ti=e=>(t,r=xn)=>{(!ca||e==="sp")&&Iu(e,(...o)=>t(...o),r)},lk=Ti("bm"),fo=Ti("m"),ak=Ti("bu"),ck=Ti("u"),La=Ti("bum"),$u=Ti("um"),uk=Ti("sp"),fk=Ti("rtg"),dk=Ti("rtc");function hk(e,t=xn){Iu("ec",e,t)}const Dh="components",pk="directives";function Ho(e,t){return zh(Dh,e,!0,t)||e}const Ky=Symbol.for("v-ndc");function Pd(e){return Dt(e)?zh(Dh,e,!1)||e:e||Ky}function Dr(e){return zh(pk,e)}function zh(e,t,r=!0,o=!1){const s=pn||xn;if(s){const c=s.type;if(e===Dh){const d=lT(c,!1);if(d&&(d===t||d===or(t)||d===Au(or(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[or(t)]||e[Au(or(t))])}function hr(e,t,r,o){let s;const c=r,f=We(e);if(f||Dt(e)){const d=f&&As(e);let h=!1,p=!1;d&&(h=!dr(e),p=io(e),e=Ou(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?Yc(dn(e[v])):dn(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(xt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function gk(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(We(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 Sn(e,t,r={},o,s){if(pn.ce||pn.parent&&Ms(pn.parent)&&pn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),se(),Je(nt,null,[Re("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),se();const f=c&&Xy(c(r)),d=r.key||f&&f.key,h=Je(nt,{key:(d&&!Or(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 Xy(e){return e.some(t=>qs(t)?!(t.type===sn||t.type===nt&&!Xy(t.children)):!0)?e:null}function vk(e,t){const r={};for(const o in e)r[Ic(o)]=e[o];return r}const Id=e=>e?wb(e)?Bu(e):Id(e.parent):null,Kl=rn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Id(e.parent),$root:e=>Id(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jy(e),$forceUpdate:e=>e.f||(e.f=()=>{$h(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>Hk.bind(e)}),rd=(e,t)=>e!==mt&&!e.__isScriptSetup&&wt(e,t),mk={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 x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(rd(o,t))return f[t]=1,o[t];if(s!==mt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==mt&&wt(r,t))return f[t]=4,r[t];$d&&(f[t]=0)}}const v=Kl[t];let m,b;if(v)return t==="$attrs"&&bn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==mt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return rd(s,t)?(s[t]=r,!0):o!==mt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c,type:f}},d){let h,p;return!!(r[d]||e!==mt&&d[0]!=="$"&&wt(e,d)||rd(t,d)||(h=c[0])&&wt(h,d)||wt(o,d)||wt(Kl,d)||wt(s.config.globalProperties,d)||(p=f.__cssModules)&&p[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yk(){return Yy().slots}function bk(){return Yy().attrs}function Yy(e){const t=Ci();return t.setupContext||(t.setupContext=Sb(t))}function tu(e){return We(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function la(e,t){return!e||!t?e||t:We(e)&&We(t)?e.concat(t):rn({},tu(e),tu(t))}let $d=!0;function wk(e){const t=Jy(e),r=e.proxy,o=e.ctx;$d=!1,t.beforeCreate&&Nv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:x,updated:C,activated:L,deactivated:M,beforeDestroy:A,beforeUnmount:R,destroyed:B,unmounted:E,render:W,renderTracked:U,renderTriggered:oe,errorCaptured:te,serverPrefetch:Z,expose:K,inheritAttrs:V,components:P,directives:O,filters:N}=t;if(p&&xk(p,o,null),f)for(const H in f){const re=f[H];Ke(re)&&(o[H]=re.bind(r))}if(s){const H=s.call(r,r);xt(H)&&(e.data=ir(H))}if($d=!0,c)for(const H in c){const re=c[H],ve=Ke(re)?re.bind(r,r):Ke(re.get)?re.get.bind(r,r):Kr,we=!Ke(re)&&Ke(re.set)?re.set.bind(r):Kr,Pe=Se({get:ve,set:we});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:je=>Pe.value=je})}if(d)for(const H in d)Zy(d[H],o,r,H);if(h){const H=Ke(h)?h.call(r):h;Reflect.ownKeys(H).forEach(re=>{Er(re,H[re])})}v&&Nv(v,e,"c");function z(H,re){We(re)?re.forEach(ve=>H(ve.bind(r))):re&&H(re.bind(r))}if(z(lk,m),z(fo,b),z(ak,x),z(ck,C),z(ik,L),z(ok,M),z(hk,te),z(dk,U),z(fk,oe),z(La,R),z($u,E),z(uk,Z),We(K))if(K.length){const H=e.exposed||(e.exposed={});K.forEach(re=>{Object.defineProperty(H,re,{get:()=>r[re],set:ve=>r[re]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});W&&e.render===Kr&&(e.render=W),V!=null&&(e.inheritAttrs=V),P&&(e.components=P),O&&(e.directives=O),Z&&Vy(e)}function xk(e,t,r=Kr){We(e)&&(e=Dd(e));for(const o in e){const s=e[o];let c;xt(s)?"default"in s?c=wn(s.from||o,s.default,!0):c=wn(s.from||o):c=wn(s),Ot(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Nv(e,t,r){Rr(We(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Zy(e,t,r,o){let s=o.includes(".")?fb(r,o):()=>r[o];if(Dt(e)){const c=t[e];Ke(c)&&_t(s,c)}else if(Ke(e))_t(s,e.bind(r));else if(xt(e))if(We(e))e.forEach(c=>Zy(c,t,r,o));else{const c=Ke(e.handler)?e.handler.bind(r):t[e.handler];Ke(c)&&_t(s,c,e)}}function Jy(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=>nu(h,p,f,!0)),nu(h,t,f)),xt(t)&&c.set(t,h),h}function nu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&nu(e,c,r,!0),s&&s.forEach(f=>nu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=Sk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const Sk={data:Ov,props:Rv,emits:Rv,methods:Hl,computed:Hl,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:Hl,directives:Hl,watch:kk,provide:Ov,inject:_k};function Ov(e,t){return t?e?function(){return rn(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function _k(e,t){return Hl(Dd(e),Dd(t))}function Dd(e){if(We(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Nn(e,t){return e?[...new Set([].concat(e,t))]:t}function Hl(e,t){return e?rn(Object.create(null),e,t):t}function Rv(e,t){return e?We(e)&&We(t)?[...new Set([...e,...t])]:rn(Object.create(null),tu(e),tu(t??{})):t}function kk(e,t){if(!e)return t;if(!t)return e;const r=rn(Object.create(null),e);for(const o in t)r[o]=Nn(e[o],t[o]);return r}function Qy(){return{app:null,config:{isNativeTag:iy,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 Tk=0;function Ck(e,t){return function(o,s=null){Ke(o)||(o=rn({},o)),s!=null&&!xt(s)&&(s=null);const c=Qy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:Tk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:cT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ke(v.install)?(f.add(v),v.install(p,...m)):Ke(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const x=p._ceVNode||Re(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,v,b),h=!0,p._container=v,v.__vue_app__=p,Bu(x.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Rr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=zo;zo=p;try{return v()}finally{zo=m}}};return p}}let zo=null;function Er(e,t){if(xn){let r=xn.provides;const o=xn.parent&&xn.parent.provides;o===r&&(r=xn.provides=Object.create(o)),r[e]=t}}function wn(e,t,r=!1){const o=Ci();if(o||zo){let s=zo?zo._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ke(t)?t.call(o&&o.proxy):t}}function eb(){return!!(Ci()||zo)}const tb={},nb=()=>Object.create(tb),rb=e=>Object.getPrototypeOf(e)===tb;function Ek(e,t,r,o=!1){const s={},c=nb();e.propsDefaults=Object.create(null),ib(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Oh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function Ak(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Fu(e.emitsOptions,b))continue;const x=t[b];if(h)if(wt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const C=or(b);s[C]=zd(h,d,C,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{ib(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=ki(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=zd(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&vi(e.attrs,"set","")}function ib(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(jl(h))continue;const p=t[h];let v;s&&wt(s,v=or(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Fu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||mt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=zd(s,h,m,p[m],e,!wt(p,m))}}return f}function zd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ke(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Ma(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===ki(r))&&(o=!0))}return o}const Lk=new WeakMap;function ob(e,t,r=!1){const o=r?Lk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ke(e)){const v=m=>{h=!0;const[b,x]=ob(m,t,!0);rn(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return xt(e)&&o.set(e,Cs),Cs;if(We(c))for(let v=0;v<c.length;v++){const m=or(c[v]);Pv(m)&&(f[m]=mt)}else if(c)for(const v in c){const m=or(v);if(Pv(m)){const b=c[v],x=f[m]=We(b)||Ke(b)?{type:b}:rn({},b),C=x.type;let L=!1,M=!0;if(We(C))for(let A=0;A<C.length;++A){const R=C[A],B=Ke(R)&&R.name;if(B==="Boolean"){L=!0;break}else B==="String"&&(M=!1)}else L=Ke(C)&&C.name==="Boolean";x[0]=L,x[1]=M,(L||wt(x,"default"))&&d.push(m)}}const p=[f,d];return xt(e)&&o.set(e,p),p}function Pv(e){return e[0]!=="$"&&!jl(e)}const Fh=e=>e==="_"||e==="_ctx"||e==="$stable",Hh=e=>We(e)?e.map(Ar):[Ar(e)],Mk=(e,t,r)=>{if(t._n)return t;const o=it((...s)=>Hh(t(...s)),r);return o._c=!1,o},sb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Fh(s))continue;const c=e[s];if(Ke(c))t[s]=Mk(s,c,o);else if(c!=null){const f=Hh(c);t[s]=()=>f}}},lb=(e,t)=>{const r=Hh(t);e.slots.default=()=>r},ab=(e,t,r)=>{for(const o in t)(r||!Fh(o))&&(e[o]=t[o])},Nk=(e,t,r)=>{const o=e.slots=nb();if(e.vnode.shapeFlag&32){const s=t._;s?(ab(o,t,r),r&&ay(o,"_",s,!0)):sb(t,o)}else t&&lb(e,t)},Ok=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:ab(s,t,r):(c=!t.$stable,sb(t,s)),f=t}else t&&(lb(e,t),f={default:1});if(c)for(const d in s)!Fh(d)&&f[d]==null&&delete s[d]},er=Jk;function Rk(e){return Pk(e)}function Pk(e,t){const r=Lu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:x=Kr,insertStaticContent:C}=e,L=(I,F,X,ue=null,he=null,de=null,_e=void 0,Ee=null,ge=!!F.dynamicChildren)=>{if(I===F)return;I&&!Gr(I,F)&&(ue=$(I),je(I,he,de,!0),I=null),F.patchFlag===-2&&(ge=!1,F.dynamicChildren=null);const{type:ye,ref:qe,shapeFlag:Ne}=F;switch(ye){case Hu:M(I,F,X,ue);break;case sn:A(I,F,X,ue);break;case od:I==null&&R(F,X,ue,_e);break;case nt:P(I,F,X,ue,he,de,_e,Ee,ge);break;default:Ne&1?W(I,F,X,ue,he,de,_e,Ee,ge):Ne&6?O(I,F,X,ue,he,de,_e,Ee,ge):(Ne&64||Ne&128)&&ye.process(I,F,X,ue,he,de,_e,Ee,ge,le)}qe!=null&&he?Gl(qe,I&&I.ref,de,F||I,!F):qe==null&&I&&I.ref!=null&&Gl(I.ref,null,de,I,!0)},M=(I,F,X,ue)=>{if(I==null)o(F.el=d(F.children),X,ue);else{const he=F.el=I.el;F.children!==I.children&&p(he,F.children)}},A=(I,F,X,ue)=>{I==null?o(F.el=h(F.children||""),X,ue):F.el=I.el},R=(I,F,X,ue)=>{[I.el,I.anchor]=C(I.children,F,X,ue,I.el,I.anchor)},B=({el:I,anchor:F},X,ue)=>{let he;for(;I&&I!==F;)he=b(I),o(I,X,ue),I=he;o(F,X,ue)},E=({el:I,anchor:F})=>{let X;for(;I&&I!==F;)X=b(I),s(I),I=X;s(F)},W=(I,F,X,ue,he,de,_e,Ee,ge)=>{if(F.type==="svg"?_e="svg":F.type==="math"&&(_e="mathml"),I==null)U(F,X,ue,he,de,_e,Ee,ge);else{const ye=I.el&&I.el._isVueCE?I.el:null;try{ye&&ye._beginPatch(),Z(I,F,he,de,_e,Ee,ge)}finally{ye&&ye._endPatch()}}},U=(I,F,X,ue,he,de,_e,Ee)=>{let ge,ye;const{props:qe,shapeFlag:Ne,transition:Fe,dirs:Ge}=I;if(ge=I.el=f(I.type,de,qe&&qe.is,qe),Ne&8?v(ge,I.children):Ne&16&&te(I.children,ge,null,ue,he,id(I,de),_e,Ee),Ge&&To(I,null,ue,"created"),oe(ge,I,I.scopeId,_e,ue),qe){for(const lt in qe)lt!=="value"&&!jl(lt)&&c(ge,lt,null,qe[lt],de,ue);"value"in qe&&c(ge,"value",null,qe.value,de),(ye=qe.onVnodeBeforeMount)&&Ur(ye,ue,I)}Ge&&To(I,null,ue,"beforeMount");const rt=Ik(he,Fe);rt&&Fe.beforeEnter(ge),o(ge,F,X),((ye=qe&&qe.onVnodeMounted)||rt||Ge)&&er(()=>{ye&&Ur(ye,ue,I),rt&&Fe.enter(ge),Ge&&To(I,null,ue,"mounted")},he)},oe=(I,F,X,ue,he)=>{if(X&&x(I,X),ue)for(let de=0;de<ue.length;de++)x(I,ue[de]);if(he){let de=he.subTree;if(F===de||pb(de.type)&&(de.ssContent===F||de.ssFallback===F)){const _e=he.vnode;oe(I,_e,_e.scopeId,_e.slotScopeIds,he.parent)}}},te=(I,F,X,ue,he,de,_e,Ee,ge=0)=>{for(let ye=ge;ye<I.length;ye++){const qe=I[ye]=Ee?Gi(I[ye]):Ar(I[ye]);L(null,qe,F,X,ue,he,de,_e,Ee)}},Z=(I,F,X,ue,he,de,_e)=>{const Ee=F.el=I.el;let{patchFlag:ge,dynamicChildren:ye,dirs:qe}=F;ge|=I.patchFlag&16;const Ne=I.props||mt,Fe=F.props||mt;let Ge;if(X&&Co(X,!1),(Ge=Fe.onVnodeBeforeUpdate)&&Ur(Ge,X,F,I),qe&&To(F,I,X,"beforeUpdate"),X&&Co(X,!0),(Ne.innerHTML&&Fe.innerHTML==null||Ne.textContent&&Fe.textContent==null)&&v(Ee,""),ye?K(I.dynamicChildren,ye,Ee,X,ue,id(F,he),de):_e||re(I,F,Ee,null,X,ue,id(F,he),de,!1),ge>0){if(ge&16)V(Ee,Ne,Fe,X,he);else if(ge&2&&Ne.class!==Fe.class&&c(Ee,"class",null,Fe.class,he),ge&4&&c(Ee,"style",Ne.style,Fe.style,he),ge&8){const rt=F.dynamicProps;for(let lt=0;lt<rt.length;lt++){const ut=rt[lt],Mt=Ne[ut],at=Fe[ut];(at!==Mt||ut==="value")&&c(Ee,ut,Mt,at,he,X)}}ge&1&&I.children!==F.children&&v(Ee,F.children)}else!_e&&ye==null&&V(Ee,Ne,Fe,X,he);((Ge=Fe.onVnodeUpdated)||qe)&&er(()=>{Ge&&Ur(Ge,X,F,I),qe&&To(F,I,X,"updated")},ue)},K=(I,F,X,ue,he,de,_e)=>{for(let Ee=0;Ee<F.length;Ee++){const ge=I[Ee],ye=F[Ee],qe=ge.el&&(ge.type===nt||!Gr(ge,ye)||ge.shapeFlag&198)?m(ge.el):X;L(ge,ye,qe,null,ue,he,de,_e,!0)}},V=(I,F,X,ue,he)=>{if(F!==X){if(F!==mt)for(const de in F)!jl(de)&&!(de in X)&&c(I,de,F[de],null,he,ue);for(const de in X){if(jl(de))continue;const _e=X[de],Ee=F[de];_e!==Ee&&de!=="value"&&c(I,de,Ee,_e,he,ue)}"value"in X&&c(I,"value",F.value,X.value,he)}},P=(I,F,X,ue,he,de,_e,Ee,ge)=>{const ye=F.el=I?I.el:d(""),qe=F.anchor=I?I.anchor:d("");let{patchFlag:Ne,dynamicChildren:Fe,slotScopeIds:Ge}=F;Ge&&(Ee=Ee?Ee.concat(Ge):Ge),I==null?(o(ye,X,ue),o(qe,X,ue),te(F.children||[],X,qe,he,de,_e,Ee,ge)):Ne>0&&Ne&64&&Fe&&I.dynamicChildren?(K(I.dynamicChildren,Fe,X,he,de,_e,Ee),(F.key!=null||he&&F===he.subTree)&&cb(I,F,!0)):re(I,F,X,qe,he,de,_e,Ee,ge)},O=(I,F,X,ue,he,de,_e,Ee,ge)=>{F.slotScopeIds=Ee,I==null?F.shapeFlag&512?he.ctx.activate(F,X,ue,_e,ge):N(F,X,ue,he,de,_e,ge):_(I,F,ge)},N=(I,F,X,ue,he,de,_e)=>{const Ee=I.component=rT(I,ue,he);if(Pu(I)&&(Ee.ctx.renderer=le),iT(Ee,!1,_e),Ee.asyncDep){if(he&&he.registerDep(Ee,z,_e),!I.el){const ge=Ee.subTree=Re(sn);A(null,ge,F,X),I.placeholder=ge.el}}else z(Ee,I,F,X,he,de,_e)},_=(I,F,X)=>{const ue=F.component=I.component;if(Vk(I,F,X))if(ue.asyncDep&&!ue.asyncResolved){H(ue,F,X);return}else ue.next=F,ue.update();else F.el=I.el,ue.vnode=F},z=(I,F,X,ue,he,de,_e)=>{const Ee=()=>{if(I.isMounted){let{next:Ne,bu:Fe,u:Ge,parent:rt,vnode:lt}=I;{const Bt=ub(I);if(Bt){Ne&&(Ne.el=lt.el,H(I,Ne,_e)),Bt.asyncDep.then(()=>{I.isUnmounted||Ee()});return}}let ut=Ne,Mt;Co(I,!1),Ne?(Ne.el=lt.el,H(I,Ne,_e)):Ne=lt,Fe&&$c(Fe),(Mt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Ur(Mt,rt,Ne,lt),Co(I,!0);const at=$v(I),Gt=I.subTree;I.subTree=at,L(Gt,at,m(Gt.el),$(Gt),I,he,de),Ne.el=at.el,ut===null&&Wh(I,at.el),Ge&&er(Ge,he),(Mt=Ne.props&&Ne.props.onVnodeUpdated)&&er(()=>Ur(Mt,rt,Ne,lt),he)}else{let Ne;const{el:Fe,props:Ge}=F,{bm:rt,m:lt,parent:ut,root:Mt,type:at}=I,Gt=Ms(F);Co(I,!1),rt&&$c(rt),!Gt&&(Ne=Ge&&Ge.onVnodeBeforeMount)&&Ur(Ne,ut,F),Co(I,!0);{Mt.ce&&Mt.ce._def.shadowRoot!==!1&&Mt.ce._injectChildStyle(at);const Bt=I.subTree=$v(I);L(null,Bt,X,ue,I,he,de),F.el=Bt.el}if(lt&&er(lt,he),!Gt&&(Ne=Ge&&Ge.onVnodeMounted)){const Bt=F;er(()=>Ur(Ne,ut,Bt),he)}(F.shapeFlag&256||ut&&Ms(ut.vnode)&&ut.vnode.shapeFlag&256)&&I.a&&er(I.a,he),I.isMounted=!0,F=X=ue=null}};I.scope.on();const ge=I.effect=new gy(Ee);I.scope.off();const ye=I.update=ge.run.bind(ge),qe=I.job=ge.runIfDirty.bind(ge);qe.i=I,qe.id=I.uid,ge.scheduler=()=>$h(qe),Co(I,!0),ye()},H=(I,F,X)=>{F.component=I;const ue=I.vnode.props;I.vnode=F,I.next=null,Ak(I,F.props,ue,X),Ok(I,F.children,X),wi(),Ev(I),xi()},re=(I,F,X,ue,he,de,_e,Ee,ge=!1)=>{const ye=I&&I.children,qe=I?I.shapeFlag:0,Ne=F.children,{patchFlag:Fe,shapeFlag:Ge}=F;if(Fe>0){if(Fe&128){we(ye,Ne,X,ue,he,de,_e,Ee,ge);return}else if(Fe&256){ve(ye,Ne,X,ue,he,de,_e,Ee,ge);return}}Ge&8?(qe&16&&Me(ye,he,de),Ne!==ye&&v(X,Ne)):qe&16?Ge&16?we(ye,Ne,X,ue,he,de,_e,Ee,ge):Me(ye,he,de,!0):(qe&8&&v(X,""),Ge&16&&te(Ne,X,ue,he,de,_e,Ee,ge))},ve=(I,F,X,ue,he,de,_e,Ee,ge)=>{I=I||Cs,F=F||Cs;const ye=I.length,qe=F.length,Ne=Math.min(ye,qe);let Fe;for(Fe=0;Fe<Ne;Fe++){const Ge=F[Fe]=ge?Gi(F[Fe]):Ar(F[Fe]);L(I[Fe],Ge,X,null,he,de,_e,Ee,ge)}ye>qe?Me(I,he,de,!0,!1,Ne):te(F,X,ue,he,de,_e,Ee,ge,Ne)},we=(I,F,X,ue,he,de,_e,Ee,ge)=>{let ye=0;const qe=F.length;let Ne=I.length-1,Fe=qe-1;for(;ye<=Ne&&ye<=Fe;){const Ge=I[ye],rt=F[ye]=ge?Gi(F[ye]):Ar(F[ye]);if(Gr(Ge,rt))L(Ge,rt,X,null,he,de,_e,Ee,ge);else break;ye++}for(;ye<=Ne&&ye<=Fe;){const Ge=I[Ne],rt=F[Fe]=ge?Gi(F[Fe]):Ar(F[Fe]);if(Gr(Ge,rt))L(Ge,rt,X,null,he,de,_e,Ee,ge);else break;Ne--,Fe--}if(ye>Ne){if(ye<=Fe){const Ge=Fe+1,rt=Ge<qe?F[Ge].el:ue;for(;ye<=Fe;)L(null,F[ye]=ge?Gi(F[ye]):Ar(F[ye]),X,rt,he,de,_e,Ee,ge),ye++}}else if(ye>Fe)for(;ye<=Ne;)je(I[ye],he,de,!0),ye++;else{const Ge=ye,rt=ye,lt=new Map;for(ye=rt;ye<=Fe;ye++){const zt=F[ye]=ge?Gi(F[ye]):Ar(F[ye]);zt.key!=null&&lt.set(zt.key,ye)}let ut,Mt=0;const at=Fe-rt+1;let Gt=!1,Bt=0;const Fn=new Array(at);for(ye=0;ye<at;ye++)Fn[ye]=0;for(ye=Ge;ye<=Ne;ye++){const zt=I[ye];if(Mt>=at){je(zt,he,de,!0);continue}let Hn;if(zt.key!=null)Hn=lt.get(zt.key);else for(ut=rt;ut<=Fe;ut++)if(Fn[ut-rt]===0&&Gr(zt,F[ut])){Hn=ut;break}Hn===void 0?je(zt,he,de,!0):(Fn[Hn-rt]=ye+1,Hn>=Bt?Bt=Hn:Gt=!0,L(zt,F[Hn],X,null,he,de,_e,Ee,ge),Mt++)}const Fr=Gt?$k(Fn):Cs;for(ut=Fr.length-1,ye=at-1;ye>=0;ye--){const zt=rt+ye,Hn=F[zt],tt=F[zt+1],ho=zt+1<qe?tt.el||tt.placeholder:ue;Fn[ye]===0?L(null,Hn,X,ho,he,de,_e,Ee,ge):Gt&&(ut<0||ye!==Fr[ut]?Pe(Hn,X,ho,2):ut--)}}},Pe=(I,F,X,ue,he=null)=>{const{el:de,type:_e,transition:Ee,children:ge,shapeFlag:ye}=I;if(ye&6){Pe(I.component.subTree,F,X,ue);return}if(ye&128){I.suspense.move(F,X,ue);return}if(ye&64){_e.move(I,F,X,le);return}if(_e===nt){o(de,F,X);for(let Ne=0;Ne<ge.length;Ne++)Pe(ge[Ne],F,X,ue);o(I.anchor,F,X);return}if(_e===od){B(I,F,X);return}if(ue!==2&&ye&1&&Ee)if(ue===0)Ee.beforeEnter(de),o(de,F,X),er(()=>Ee.enter(de),he);else{const{leave:Ne,delayLeave:Fe,afterLeave:Ge}=Ee,rt=()=>{I.ctx.isUnmounted?s(de):o(de,F,X)},lt=()=>{de._isLeaving&&de[gi](!0),Ne(de,()=>{rt(),Ge&&Ge()})};Fe?Fe(de,rt,lt):lt()}else o(de,F,X)},je=(I,F,X,ue=!1,he=!1)=>{const{type:de,props:_e,ref:Ee,children:ge,dynamicChildren:ye,shapeFlag:qe,patchFlag:Ne,dirs:Fe,cacheIndex:Ge}=I;if(Ne===-2&&(he=!1),Ee!=null&&(wi(),Gl(Ee,null,X,I,!0),xi()),Ge!=null&&(F.renderCache[Ge]=void 0),qe&256){F.ctx.deactivate(I);return}const rt=qe&1&&Fe,lt=!Ms(I);let ut;if(lt&&(ut=_e&&_e.onVnodeBeforeUnmount)&&Ur(ut,F,I),qe&6)ze(I.component,X,ue);else{if(qe&128){I.suspense.unmount(X,ue);return}rt&&To(I,null,F,"beforeUnmount"),qe&64?I.type.remove(I,F,X,le,ue):ye&&!ye.hasOnce&&(de!==nt||Ne>0&&Ne&64)?Me(ye,F,X,!1,!0):(de===nt&&Ne&384||!he&&qe&16)&&Me(ge,F,X),ue&&Qe(I)}(lt&&(ut=_e&&_e.onVnodeUnmounted)||rt)&&er(()=>{ut&&Ur(ut,F,I),rt&&To(I,null,F,"unmounted")},X)},Qe=I=>{const{type:F,el:X,anchor:ue,transition:he}=I;if(F===nt){Ye(X,ue);return}if(F===od){E(I);return}const de=()=>{s(X),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(I.shapeFlag&1&&he&&!he.persisted){const{leave:_e,delayLeave:Ee}=he,ge=()=>_e(X,de);Ee?Ee(I.el,de,ge):ge()}else de()},Ye=(I,F)=>{let X;for(;I!==F;)X=b(I),s(I),I=X;s(F)},ze=(I,F,X)=>{const{bum:ue,scope:he,job:de,subTree:_e,um:Ee,m:ge,a:ye}=I;Iv(ge),Iv(ye),ue&&$c(ue),he.stop(),de&&(de.flags|=8,je(_e,I,F,X)),Ee&&er(Ee,F),er(()=>{I.isUnmounted=!0},F)},Me=(I,F,X,ue=!1,he=!1,de=0)=>{for(let _e=de;_e<I.length;_e++)je(I[_e],F,X,ue,he)},$=I=>{if(I.shapeFlag&6)return $(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const F=b(I.anchor||I.el),X=F&&F[ek];return X?b(X):F};let G=!1;const Q=(I,F,X)=>{I==null?F._vnode&&je(F._vnode,null,null,!0):L(F._vnode||null,I,F,null,null,null,X),F._vnode=I,G||(G=!0,Ev(),Iy(),G=!1)},le={p:L,um:je,m:Pe,r:Qe,mt:N,mc:te,pc:re,pbc:K,n:$,o:e};return{render:Q,hydrate:void 0,createApp:Ck(Q)}}function id({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 Co({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ik(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function cb(e,t,r=!1){const o=e.children,s=t.children;if(We(o)&&We(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]=Gi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&cb(f,d)),d.type===Hu&&d.patchFlag!==-1&&(d.el=f.el),d.type===sn&&!d.el&&(d.el=f.el)}}function $k(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 ub(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ub(t)}function Iv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Dk=Symbol.for("v-scx"),zk=()=>wn(Dk);function Bh(e,t){return Du(e,null,t)}function Fk(e,t){return Du(e,null,{flush:"sync"})}function _t(e,t,r){return Du(e,t,r)}function Du(e,t,r=mt){const{immediate:o,deep:s,flush:c,once:f}=r,d=rn({},r),h=t&&o||!t&&c!=="post";let p;if(ca){if(c==="sync"){const x=zk();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Kr,x.resume=Kr,x.pause=Kr,x}}const v=xn;d.call=(x,C,L)=>Rr(x,v,C,L);let m=!1;c==="post"?d.scheduler=x=>{er(x,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(x,C)=>{C?x():$h(x)}),d.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const b=Z_(e,t,d);return ca&&(p?p.push(b):h&&b()),b}function Hk(e,t,r){const o=this.proxy,s=Dt(e)?e.includes(".")?fb(o,e):()=>o[e]:e.bind(o,o);let c;Ke(t)?c=t:(c=t.handler,r=t);const f=Ma(this),d=Du(s,c.bind(o),r);return f(),d}function fb(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 zu(e,t,r=mt){const o=Ci(),s=or(t),c=ki(t),f=db(e,s),d=Ny((h,p)=>{let v,m=mt,b;return Fk(()=>{const x=e[s];Vn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const C=r.set?r.set(x):x;if(!Vn(C,v)&&!(m!==mt&&Vn(x,m)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(v=x,p()),o.emit(`update:${t}`,C),Vn(x,C)&&Vn(x,m)&&!Vn(C,b)&&p(),m=x,b=C}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||mt:d,done:!1}:{done:!0}}}},d}const db=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${or(t)}Modifiers`]||e[`${ki(t)}Modifiers`];function Bk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const c=t.startsWith("update:"),f=c&&db(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Dt(v)?v.trim():v)),f.number&&(s=r.map(Eh)));let d,h=o[d=Ic(t)]||o[d=Ic(or(t))];!h&&c&&(h=o[d=Ic(ki(t))]),h&&Rr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Rr(p,e,6,s)}}const Wk=new WeakMap;function hb(e,t,r=!1){const o=r?Wk:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ke(e)){const h=p=>{const v=hb(p,t,!0);v&&(d=!0,rn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(xt(e)&&o.set(e,null),null):(We(c)?c.forEach(h=>f[h]=null):rn(f,c),xt(e)&&o.set(e,f),f)}function Fu(e,t){return!e||!Tu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,ki(t))||wt(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:x,ctx:C,inheritAttrs:L}=e,M=Qc(e);let A,R;try{if(r.shapeFlag&4){const E=s||o,W=E;A=Ar(p.call(W,E,v,m,x,b,C)),R=d}else{const E=t;A=Ar(E.length>1?E(m,{attrs:d,slots:f,emit:h}):E(m,null)),R=t.props?d:jk(d)}}catch(E){Xl.length=0,Aa(E,e,1),A=Re(sn)}let B=A;if(R&&L!==!1){const E=Object.keys(R),{shapeFlag:W}=B;E.length&&W&7&&(c&&E.some(kh)&&(R=Uk(R,c)),B=oo(B,R,!1,!0))}return r.dirs&&(B=oo(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(r.dirs):r.dirs),r.transition&&sa(B,r.transition),A=B,Qc(M),A}function qk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(qs(s)){if(s.type!==sn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const jk=e=>{let t;for(const r in e)(r==="class"||r==="style"||Tu(r))&&((t||(t={}))[r]=e[r]);return t},Uk=(e,t)=>{const r={};for(const o in e)(!kh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Vk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Dv(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]&&!Fu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Dv(o,f,p):!0:!!f;return!1}function Dv(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]&&!Fu(r,c))return!0}return!1}function Wh({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 pb=e=>e.__isSuspense;let Fd=0;const Gk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Kk(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}Xk(e,t,r,o,s,f,d,h,p)}},hydrate:Yk,normalize:Zk},qh=Gk;function aa(e,t){const r=e.props&&e.props[t];Ke(r)&&r()}function Kk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=gb(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?(aa(e,"onPending"),aa(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Ns(b,e.ssFallback)):b.resolve(!1,!0)}function Xk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:C,pendingBranch:L,isInFallback:M,isHydrating:A}=m;if(L)m.pendingBranch=b,Gr(L,b)?(h(L,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():M&&(A||(h(C,x,r,o,s,null,c,f,d),Ns(m,x)))):(m.pendingId=Fd++,A?(m.isHydrating=!1,m.activeBranch=L):p(L,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),M?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(C,x,r,o,s,null,c,f,d),Ns(m,x))):C&&Gr(C,b)?(h(C,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(C&&Gr(C,b))h(C,b,r,o,s,m,c,f,d),Ns(m,b);else if(aa(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Fd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:R,pendingId:B}=m;R>0?setTimeout(()=>{m.pendingId===B&&m.fallback(x)},R):R===0&&m.fallback(x)}}function gb(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:x,n:C,o:{parentNode:L,remove:M}}=p;let A;const R=Qk(e);R&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const B=e.props?cy(e.props.timeout):void 0,E=c,W={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Fd++,timeout:typeof B=="number"?B:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(U=!1,oe=!1){const{vnode:te,activeBranch:Z,pendingBranch:K,pendingId:V,effects:P,parentComponent:O,container:N,isInFallback:_}=W;let z=!1;W.isHydrating?W.isHydrating=!1:U||(z=Z&&K.transition&&K.transition.mode==="out-in",z&&(Z.transition.afterLeave=()=>{V===W.pendingId&&(b(K,N,c===E?C(Z):c,0),Od(P),_&&te.ssFallback&&(te.ssFallback.el=null))}),Z&&(L(Z.el)===N&&(c=C(Z)),x(Z,O,W,!0),!z&&_&&te.ssFallback&&(te.ssFallback.el=null)),z||b(K,N,c,0)),Ns(W,K),W.pendingBranch=null,W.isInFallback=!1;let H=W.parent,re=!1;for(;H;){if(H.pendingBranch){H.effects.push(...P),re=!0;break}H=H.parent}!re&&!z&&Od(P),W.effects=[],R&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!oe&&t.resolve()),aa(te,"onResolve")},fallback(U){if(!W.pendingBranch)return;const{vnode:oe,activeBranch:te,parentComponent:Z,container:K,namespace:V}=W;aa(oe,"onFallback");const P=C(te),O=()=>{W.isInFallback&&(m(null,U,K,P,Z,null,V,d,h),Ns(W,U))},N=U.transition&&U.transition.mode==="out-in";N&&(te.transition.afterLeave=O),W.isInFallback=!0,x(te,Z,null,!0),N||O()},move(U,oe,te){W.activeBranch&&b(W.activeBranch,U,oe,te),W.container=U},next(){return W.activeBranch&&C(W.activeBranch)},registerDep(U,oe,te){const Z=!!W.pendingBranch;Z&&W.deps++;const K=U.vnode.el;U.asyncDep.catch(V=>{Aa(V,U,0)}).then(V=>{if(U.isUnmounted||W.isUnmounted||W.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:P}=U;Bd(U,V),K&&(P.el=K);const O=!K&&U.subTree.el;oe(U,P,L(K||U.subTree.el),K?null:C(U.subTree),W,f,te),O&&(P.placeholder=null,M(O)),Wh(U,P.el),Z&&--W.deps===0&&W.resolve()})},unmount(U,oe){W.isUnmounted=!0,W.activeBranch&&x(W.activeBranch,r,U,oe),W.pendingBranch&&x(W.pendingBranch,r,U,oe)}};return W}function Yk(e,t,r,o,s,c,f,d,h){const p=t.suspense=gb(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 Zk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=zv(o?r.default:r),e.ssFallback=o?zv(r.fallback):Re(sn)}function zv(e){let t;if(Ke(e)){const r=Bs&&e._c;r&&(e._d=!1,se()),e=e(),r&&(e._d=!0,t=Kn,vb())}return We(e)&&(e=qk(e)),e=Ar(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Jk(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):Od(e)}function Ns(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,Wh(o,s))}function Qk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Hu=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),od=Symbol.for("v-stc"),Xl=[];let Kn=null;function se(e=!1){Xl.push(Kn=e?null:[])}function vb(){Xl.pop(),Kn=Xl[Xl.length-1]||null}let Bs=1;function Ws(e,t=!1){Bs+=e,e<0&&Kn&&t&&(Kn.hasOnce=!0)}function mb(e){return e.dynamicChildren=Bs>0?Kn||Cs:null,vb(),Bs>0&&Kn&&Kn.push(e),e}function me(e,t,r,o,s,c){return mb(ne(e,t,r,o,s,c,!0))}function Je(e,t,r,o,s){return mb(Re(e,t,r,o,s,!0))}function qs(e){return e?e.__v_isVNode===!0:!1}function Gr(e,t){return e.type===t.type&&e.key===t.key}const yb=({key:e})=>e??null,Dc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||Ot(e)||Ke(e)?{i:pn,r:e,k:t,f:!!r}:e:null);function ne(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yb(t),ref:t&&Dc(t),scopeId:Ru,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:pn};return d?(jh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Dt(r)?8:16),Bs>0&&!f&&Kn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Kn.push(h),h}const Re=eT;function eT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Ky)&&(e=sn),qs(e)){const d=oo(e,t,!0);return r&&jh(d,r),Bs>0&&!c&&Kn&&(d.shapeFlag&6?Kn[Kn.indexOf(e)]=d:Kn.push(d)),d.patchFlag=-2,d}if(aT(e)&&(e=e.__vccOpts),t){t=bb(t);let{class:d,style:h}=t;d&&!Dt(d)&&(t.class=st(d)),xt(h)&&(Ph(h)&&!We(h)&&(h=rn({},h)),t.style=tn(h))}const f=Dt(e)?1:pb(e)?128:Hy(e)?64:xt(e)?4:Ke(e)?2:0;return ne(e,t,r,o,s,f,c,!0)}function bb(e){return e?Ph(e)||rb(e)?rn({},e):e:null}function oo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?bi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&yb(p),ref:t&&t.ref?r&&c?We(c)?c.concat(Dc(t)):[c,Dc(t)]:Dc(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!==nt?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&&oo(e.ssContent),ssFallback:e.ssFallback&&oo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&sa(v,h.clone(v)),v}function ht(e=" ",t=0){return Re(Hu,null,e,t)}function Ue(e="",t=!1){return t?(se(),Je(sn,null,e)):Re(sn,null,e)}function Ar(e){return e==null||typeof e=="boolean"?Re(sn):We(e)?Re(nt,null,e.slice()):qs(e)?Gi(e):Re(Hu,null,String(e))}function Gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:oo(e)}function jh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(We(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),jh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!rb(t)?t._ctx=pn:s===3&&pn&&(pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(t)?(t={default:t,_ctx:pn},r=32):(t=String(t),o&64?(r=16,t=[ht(t)]):r=8);e.children=t,e.shapeFlag|=r}function bi(...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=tn([t.style,o.style]);else if(Tu(s)){const c=t[s],f=o[s];f&&c!==f&&!(We(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Ur(e,t,r,o=null){Rr(e,t,7,[r,o])}const tT=Qy();let nT=0;function rT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||tT,c={uid:nT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new w_(!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:ob(o,s),emitsOptions:hb(o,s),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:o.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Bk.bind(null,c),e.ce&&e.ce(c),c}let xn=null;const Ci=()=>xn||pn;let ru,Hd;{const e=Lu(),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)}};ru=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),Hd=t("__VUE_SSR_SETTERS__",r=>ca=r)}const Ma=e=>{const t=xn;return ru(e),e.scope.on(),()=>{e.scope.off(),ru(t)}},Fv=()=>{xn&&xn.scope.off(),ru(null)};function wb(e){return e.vnode.shapeFlag&4}let ca=!1;function iT(e,t=!1,r=!1){t&&Hd(t);const{props:o,children:s}=e.vnode,c=wb(e);Ek(e,o,c,t),Nk(e,s,r||t);const f=c?oT(e,t):void 0;return t&&Hd(!1),f}function oT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mk);const{setup:o}=r;if(o){wi();const s=e.setupContext=o.length>1?Sb(e):null,c=Ma(e),f=Ea(o,e,0,[e.props,s]),d=oy(f);if(xi(),c(),(d||e.sp)&&!Ms(e)&&Vy(e),d){if(f.then(Fv,Fv),t)return f.then(h=>{Bd(e,h)}).catch(h=>{Aa(h,e,0)});e.asyncDep=f}else Bd(e,f)}else xb(e)}function Bd(e,t,r){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=My(t)),xb(e)}function xb(e,t,r){const o=e.type;e.render||(e.render=o.render||Kr);{const s=Ma(e);wi();try{wk(e)}finally{xi(),s()}}}const sT={get(e,t){return bn(e,"get",""),e[t]}};function Sb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,sT),slots:e.slots,emit:e.emit,expose:t}}function Bu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(My(Ih(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Kl)return Kl[r](e)},has(t,r){return r in t||r in Kl}})):e.proxy}function lT(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function aT(e){return Ke(e)&&"__vccOpts"in e}const Se=(e,t)=>X_(e,t,ca);function Na(e,t,r){try{Ws(-1);const o=arguments.length;return o===2?xt(t)&&!We(t)?qs(t)?Re(e,null,[t]):Re(e,t):Re(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&qs(r)&&(r=[r]),Re(e,t,r))}finally{Ws(1)}}const cT="3.5.24";/**
14
14
  * @vue/runtime-dom v3.5.24
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let Wd;const Hv=typeof window<"u"&&window.trustedTypes;if(Hv)try{Wd=Hv.createPolicy("vue",{createHTML:e=>e})}catch{}const _b=Wd?e=>Wd.createHTML(e):e=>e,uT="http://www.w3.org/2000/svg",fT="http://www.w3.org/1998/Math/MathML",hi=typeof document<"u"?document:null,Bv=hi&&hi.createElement("template"),dT={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"?hi.createElementNS(uT,e):t==="mathml"?hi.createElementNS(fT,e):r?hi.createElement(e,{is:r}):hi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>hi.createTextNode(e),createComment:e=>hi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hi.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{Bv.innerHTML=_b(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Bv.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]}},Bi="transition",Rl="animation",ua=Symbol("_vtc"),kb={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},hT=rn({},By,kb),pT=e=>(e.displayName="Transition",e.props=hT,e),gT=pT((e,{slots:t})=>Na(rk,vT(e),t)),Eo=(e,t=[])=>{We(e)?e.forEach(r=>r(...t)):e&&e(...t)},Wv=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function vT(e){const t={};for(const P in e)P in kb||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,C=mT(s),L=C&&C[0],M=C&&C[1],{onBeforeEnter:A,onEnter:R,onEnterCancelled:W,onLeave:E,onLeaveCancelled:B,onBeforeAppear:U=A,onAppear:oe=R,onAppearCancelled:te=W}=t,Z=(P,O,N,_)=>{P._enterCancelled=_,Ao(P,O?v:d),Ao(P,O?p:f),N&&N()},K=(P,O)=>{P._isLeaving=!1,Ao(P,m),Ao(P,x),Ao(P,b),O&&O()},V=P=>(O,N)=>{const _=P?oe:R,z=()=>Z(O,P,N);Eo(_,[O,z]),qv(()=>{Ao(O,P?h:c),ci(O,P?v:d),Wv(_)||jv(O,o,L,z)})};return rn(t,{onBeforeEnter(P){Eo(A,[P]),ci(P,c),ci(P,f)},onBeforeAppear(P){Eo(U,[P]),ci(P,h),ci(P,p)},onEnter:V(!1),onAppear:V(!0),onLeave(P,O){P._isLeaving=!0;const N=()=>K(P,O);ci(P,m),P._enterCancelled?(ci(P,b),Gv(P)):(Gv(P),ci(P,b)),qv(()=>{P._isLeaving&&(Ao(P,m),ci(P,x),Wv(E)||jv(P,o,M,N))}),Eo(E,[P,N])},onEnterCancelled(P){Z(P,!1,void 0,!0),Eo(W,[P])},onAppearCancelled(P){Z(P,!0,void 0,!0),Eo(te,[P])},onLeaveCancelled(P){K(P),Eo(B,[P])}})}function mT(e){if(e==null)return null;if(xt(e))return[sd(e.enter),sd(e.leave)];{const t=sd(e);return[t,t]}}function sd(e){return cy(e)}function ci(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ua]||(e[ua]=new Set)).add(t)}function Ao(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ua];r&&(r.delete(t),r.size||(e[ua]=void 0))}function qv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yT=0;function jv(e,t,r,o){const s=e._endId=++yT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=bT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function bT(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),s=o(`${Bi}Delay`),c=o(`${Bi}Duration`),f=Uv(s,c),d=o(`${Rl}Delay`),h=o(`${Rl}Duration`),p=Uv(d,h);let v=null,m=0,b=0;t===Bi?f>0&&(v=Bi,m=f,b=c.length):t===Rl?p>0&&(v=Rl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Bi:Rl:null,b=v?v===Bi?c.length:h.length:0);const x=v===Bi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Bi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Uv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Vv(r)+Vv(e[o])))}function Vv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Gv(e){return(e?e.ownerDocument:document).body.offsetHeight}function wT(e,t,r){const o=e[ua];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const iu=Symbol("_vod"),Tb=Symbol("_vsh"),Zi={name:"show",beforeMount(e,{value:t},{transition:r}){e[iu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Pl(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),Pl(e,!0),o.enter(e)):o.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e[iu]:"none",e[Tb]=!t}const xT=Symbol(""),ST=/(?:^|;)\s*display\s*:/;function _T(e,t,r){const o=e.style,s=Dt(r);let c=!1;if(r&&!s){if(t)if(Dt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&zc(o,d,"")}else for(const f in t)r[f]==null&&zc(o,f,"");for(const f in r)f==="display"&&(c=!0),zc(o,f,r[f])}else if(s){if(t!==r){const f=o[xT];f&&(r+=";"+f),o.cssText=r,c=ST.test(r)}}else t&&e.removeAttribute("style");iu in e&&(e[iu]=c?o.display:"",e[Tb]&&(o.display="none"))}const Kv=/\s*!important$/;function zc(e,t,r){if(We(r))r.forEach(o=>zc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=kT(e,t);Kv.test(r)?e.setProperty(ki(o),r.replace(Kv,""),"important"):e[o]=r}}const Xv=["Webkit","Moz","ms"],ld={};function kT(e,t){const r=ld[t];if(r)return r;let o=or(t);if(o!=="filter"&&o in e)return ld[t]=o;o=Au(o);for(let s=0;s<Xv.length;s++){const c=Xv[s]+o;if(c in e)return ld[t]=c}return t}const Yv="http://www.w3.org/1999/xlink";function Zv(e,t,r,o,s,c=y_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Yv,t.slice(6,t.length)):e.setAttributeNS(Yv,t,r):r==null||c&&!uy(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Or(r)?String(r):r)}function Jv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?_b(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=uy(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 Ro(e,t,r,o){e.addEventListener(t,r,o)}function TT(e,t,r,o){e.removeEventListener(t,r,o)}const Qv=Symbol("_vei");function CT(e,t,r,o,s=null){const c=e[Qv]||(e[Qv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=ET(t);if(o){const p=c[t]=MT(o,s);Ro(e,d,p,h)}else f&&(TT(e,d,f,h),c[t]=void 0)}}const em=/(?:Once|Passive|Capture)$/;function ET(e){let t;if(em.test(e)){t={};let o;for(;o=e.match(em);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ki(e.slice(2)),t]}let ad=0;const AT=Promise.resolve(),LT=()=>ad||(AT.then(()=>ad=0),ad=Date.now());function MT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Rr(NT(o,r.value),t,5,[o])};return r.value=e,r.attached=LT(),r}function NT(e,t){if(We(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 tm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,OT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?wT(e,o,f):t==="style"?_T(e,r,o):Tu(t)?kh(t)||CT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):RT(e,t,o,f))?(Jv(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)||!Dt(o))?Jv(e,or(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Zv(e,t,o,f))};function RT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&tm(t)&&Ke(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return tm(t)&&Dt(r)?!1:t in e}const ou=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?r=>$c(t,r):t};function PT(e){e.target.composing=!0}function nm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Os=Symbol("_assign");function rm(e,t,r){return t&&(e=e.trim()),r&&(e=Eh(e)),e}const IT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Os]=ou(s);const c=o||s.props&&s.props.type==="number";Ro(e,t?"change":"input",f=>{f.target.composing||e[Os](rm(e.value,r,c))}),(r||c)&&Ro(e,"change",()=>{e.value=rm(e.value,r,c)}),t||(Ro(e,"compositionstart",PT),Ro(e,"compositionend",nm),Ro(e,"change",nm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Os]=ou(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Eh(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))}},Cb={deep:!0,created(e,t,r){e[Os]=ou(r),Ro(e,"change",()=>{const o=e._modelValue,s=$T(e),c=e.checked,f=e[Os];if(We(o)){const d=fy(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(Cu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Eb(e,c))})},mounted:im,beforeUpdate(e,t,r){e[Os]=ou(r),im(e,t,r)}};function im(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(We(t))s=fy(t,o.props.value)>-1;else if(Cu(t))s=t.has(o.props.value);else{if(t===r)return;s=Mu(t,Eb(e,!0))}e.checked!==s&&(e.checked=s)}function $T(e){return"_value"in e?e._value:e.value}function Eb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const DT=["ctrl","shift","alt","meta"],zT={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)=>DT.some(r=>e[`${r}Key`]&&!t.includes(r))},Fc=(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=zT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},FT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},qd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=ki(s.key);if(t.some(f=>f===c||FT[f]===c))return e(s)}))},HT=rn({patchProp:OT},dT);let om;function BT(){return om||(om=Rk(HT))}const Ab=((...e)=>{const t=BT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=qT(o);if(!s)return;const c=t._component;!Ke(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,WT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function WT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qT(e){return Dt(e)?document.querySelector(e):e}const Ei=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},jT={};function UT(e,t){const r=Ho("RouterView");return se(),Je(r)}const VT=Ei(jT,[["render",UT]]),GT=["top","right","bottom","left"],sm=["start","end"],lm=GT.reduce((e,t)=>e.concat(t,t+"-"+sm[0],t+"-"+sm[1]),[]),fa=Math.min,No=Math.max,KT={left:"right",right:"left",bottom:"top",top:"bottom"},XT={start:"end",end:"start"};function jd(e,t,r){return No(e,fa(t,r))}function Wo(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Nr(e){return e.split("-")[1]}function Lb(e){return e==="x"?"y":"x"}function Uh(e){return e==="y"?"height":"width"}function Oa(e){return["top","bottom"].includes(Jr(e))?"y":"x"}function Vh(e){return Lb(Oa(e))}function Mb(e,t,r){r===void 0&&(r=!1);const o=Nr(e),s=Vh(e),c=Uh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=lu(f)),[f,lu(f)]}function YT(e){const t=lu(e);return[su(e),t,su(t)]}function su(e){return e.replace(/start|end/g,t=>XT[t])}function ZT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function JT(e,t,r,o){const s=Nr(e);let c=ZT(Jr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(su)))),c}function lu(e){return e.replace(/left|right|bottom|top/g,t=>KT[t])}function QT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nb(e){return typeof e!="number"?QT(e):{top:e,right:e,bottom:e,left:e}}function Yl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function am(e,t,r){let{reference:o,floating:s}=e;const c=Oa(t),f=Vh(t),d=Uh(f),h=Jr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Nr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const eC=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}=am(p,o,h),b=o,x={},C=0;for(let L=0;L<d.length;L++){const{name:M,fn:A}=d[L],{x:R,y:W,data:E,reset:B}=await A({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=R??v,m=W??m,x={...x,[M]:{...x[M],...E}},B&&C<=50&&(C++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(p=B.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):B.rects),{x:v,y:m}=am(p,b,h)),L=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function Wu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=Wo(t,e),C=Nb(x),M=d[b?m==="floating"?"reference":"floating":m],A=Yl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(M)))==null||r?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),R=m==="floating"?{...f.floating,x:o,y:s}:f.reference,W=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(W))?await(c.getScale==null?void 0:c.getScale(W))||{x:1,y:1}:{x:1,y:1},B=Yl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:W,strategy:h}):R);return{top:(A.top-B.top+C.top)/E.y,bottom:(B.bottom-A.bottom+C.bottom)/E.y,left:(A.left-B.left+C.left)/E.x,right:(B.right-A.right+C.right)/E.x}}const tC=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}=Wo(e,t)||{};if(p==null)return{};const m=Nb(v),b={x:r,y:o},x=Vh(s),C=Uh(x),L=await f.getDimensions(p),M=x==="y",A=M?"top":"left",R=M?"bottom":"right",W=M?"clientHeight":"clientWidth",E=c.reference[C]+c.reference[x]-b[x]-c.floating[C],B=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let oe=U?U[W]:0;(!oe||!await(f.isElement==null?void 0:f.isElement(U)))&&(oe=d.floating[W]||c.floating[C]);const te=E/2-B/2,Z=oe/2-L[C]/2-1,K=fa(m[A],Z),V=fa(m[R],Z),P=K,O=oe-L[C]-V,N=oe/2-L[C]/2+te,_=jd(P,N,O),z=!h.arrow&&Nr(s)!=null&&N!==_&&c.reference[C]/2-(N<P?K:V)-L[C]/2<0,H=z?N<P?N-P:N-O:0;return{[x]:b[x]+H,data:{[x]:_,centerOffset:N-_-H,...z&&{alignmentOffset:H}},reset:z}}});function nC(e,t,r){return(e?[...r.filter(s=>Nr(s)===e),...r.filter(s=>Nr(s)!==e)]:r.filter(s=>Jr(s)===s)).filter(s=>e?Nr(s)===e||(t?su(s)!==s:!1):!0)}const rC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=lm,autoAlignment:x=!0,...C}=Wo(e,t),L=m!==void 0||b===lm?nC(m||null,x,b):b,M=await Wu(t,C),A=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[A];if(R==null)return{};const W=Mb(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const E=[M[Jr(R)],M[W[0]],M[W[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:E}],U=L[A+1];if(U)return{data:{index:A+1,overflows:B},reset:{placement:U}};const oe=B.map(K=>{const V=Nr(K.placement);return[K.placement,V&&v?K.overflows.slice(0,2).reduce((P,O)=>P+O,0):K.overflows[0],K.overflows]}).sort((K,V)=>K[1]-V[1]),Z=((s=oe.filter(K=>K[2].slice(0,Nr(K[0])?2:3).every(V=>V<=0))[0])==null?void 0:s[0])||oe[0][0];return Z!==d?{data:{index:A+1,overflows:B},reset:{placement:Z}}:{}}}},iC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:L=!0,...M}=Wo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const A=Jr(s),R=Jr(d)===d,W=await(h.isRTL==null?void 0:h.isRTL(p.floating)),E=b||(R||!L?[lu(d)]:YT(d));!b&&C!=="none"&&E.push(...JT(d,L,C,W));const B=[d,...E],U=await Wu(t,M),oe=[];let te=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&oe.push(U[A]),m){const P=Mb(s,f,W);oe.push(U[P[0]],U[P[1]])}if(te=[...te,{placement:s,overflows:oe}],!oe.every(P=>P<=0)){var Z,K;const P=(((Z=c.flip)==null?void 0:Z.index)||0)+1,O=B[P];if(O)return{data:{index:P,overflows:te},reset:{placement:O}};let N=(K=te.filter(_=>_.overflows[0]<=0).sort((_,z)=>_.overflows[1]-z.overflows[1])[0])==null?void 0:K.placement;if(!N)switch(x){case"bestFit":{var V;const _=(V=te.map(z=>[z.placement,z.overflows.filter(H=>H>0).reduce((H,re)=>H+re,0)]).sort((z,H)=>z[1]-H[1])[0])==null?void 0:V[0];_&&(N=_);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function oC(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=Nr(r),h=Oa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Wo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof C=="number"&&(x=d==="end"?C*-1:C),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const sC=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 oC(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}}}}},lC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:M=>{let{x:A,y:R}=M;return{x:A,y:R}}},...h}=Wo(e,t),p={x:r,y:o},v=await Wu(t,h),m=Oa(Jr(s)),b=Lb(m);let x=p[b],C=p[m];if(c){const M=b==="y"?"top":"left",A=b==="y"?"bottom":"right",R=x+v[M],W=x-v[A];x=jd(R,x,W)}if(f){const M=m==="y"?"top":"left",A=m==="y"?"bottom":"right",R=C+v[M],W=C-v[A];C=jd(R,C,W)}const L=d.fn({...t,[b]:x,[m]:C});return{...L,data:{x:L.x-r,y:L.y-o}}}}},aC=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}=Wo(e,t),h=await Wu(t,d),p=Jr(r),v=Nr(r),m=Oa(r)==="y",{width:b,height:x}=o.floating;let C,L;p==="top"||p==="bottom"?(C=p,L=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,C=v==="end"?"top":"bottom");const M=x-h[C],A=b-h[L],R=!t.middlewareData.shift;let W=M,E=A;if(m){const U=b-h.left-h.right;E=v||R?fa(A,U):U}else{const U=x-h.top-h.bottom;W=v||R?fa(M,U):U}if(R&&!v){const U=No(h.left,0),oe=No(h.right,0),te=No(h.top,0),Z=No(h.bottom,0);m?E=b-2*(U!==0||oe!==0?U+oe:No(h.left,h.right)):W=x-2*(te!==0||Z!==0?te+Z:No(h.top,h.bottom))}await f({...t,availableWidth:E,availableHeight:W});const B=await s.getDimensions(c.floating);return b!==B.width||x!==B.height?{reset:{rects:!0}}:{}}}};function fr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){return fr(e).getComputedStyle(e)}const cm=Math.min,Zl=Math.max,au=Math.round;function Ob(e){const t=Xr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=au(r)!==s||au(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function so(e){return Pb(e)?(e.nodeName||"").toLowerCase():""}let Sc;function Rb(){if(Sc)return Sc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Sc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Sc):navigator.userAgent}function Yr(e){return e instanceof fr(e).HTMLElement}function eo(e){return e instanceof fr(e).Element}function Pb(e){return e instanceof fr(e).Node}function um(e){return typeof ShadowRoot>"u"?!1:e instanceof fr(e).ShadowRoot||e instanceof ShadowRoot}function qu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function cC(e){return["table","td","th"].includes(so(e))}function Ud(e){const t=/firefox/i.test(Rb()),r=Xr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function Ib(){return!/^((?!chrome|android).)*safari/i.test(Rb())}function Gh(e){return["html","body","#document"].includes(so(e))}function $b(e){return eo(e)?e:e.contextElement}const Db={x:1,y:1};function Rs(e){const t=$b(e);if(!Yr(t))return Db;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Ob(t);let f=(c?au(r.width):r.width)/o,d=(c?au(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function da(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=$b(e);let h=Db;t&&(o?eo(o)&&(h=Rs(o)):h=Rs(e));const p=d?fr(d):window,v=!Ib()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,C=f.height/h.y;if(d){const L=fr(d),M=o&&eo(o)?fr(o):o;let A=L.frameElement;for(;A&&o&&M!==L;){const R=Rs(A),W=A.getBoundingClientRect(),E=getComputedStyle(A);W.x+=(A.clientLeft+parseFloat(E.paddingLeft))*R.x,W.y+=(A.clientTop+parseFloat(E.paddingTop))*R.y,m*=R.x,b*=R.y,x*=R.x,C*=R.y,m+=W.x,b+=W.y,A=fr(A).frameElement}}return{width:x,height:C,top:b,right:m+x,bottom:b+C,left:m,x:m,y:b}}function to(e){return((Pb(e)?e.ownerDocument:e.document)||window.document).documentElement}function ju(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zb(e){return da(to(e)).left+ju(e).scrollLeft}function ha(e){if(so(e)==="html")return e;const t=e.assignedSlot||e.parentNode||um(e)&&e.host||to(e);return um(t)?t.host:t}function Fb(e){const t=ha(e);return Gh(t)?t.ownerDocument.body:Yr(t)&&qu(t)?t:Fb(t)}function cu(e,t){var r;t===void 0&&(t=[]);const o=Fb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=fr(o);return s?t.concat(c,c.visualViewport||[],qu(o)?o:[]):t.concat(o,cu(o))}function fm(e,t,r){return t==="viewport"?Yl((function(o,s){const c=fr(o),f=to(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=Ib();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):eo(t)?Yl((function(o,s){const c=da(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Yr(o)?Rs(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)):Yl((function(o){const s=to(o),c=ju(o),f=o.ownerDocument.body,d=Zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+zb(o);const v=-c.scrollTop;return Xr(f).direction==="rtl"&&(p+=Zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(to(e)))}function dm(e){return Yr(e)&&Xr(e).position!=="fixed"?e.offsetParent:null}function hm(e){const t=fr(e);let r=dm(e);for(;r&&cC(r)&&Xr(r).position==="static";)r=dm(r);return r&&(so(r)==="html"||so(r)==="body"&&Xr(r).position==="static"&&!Ud(r))?t:r||(function(o){let s=ha(o);for(;Yr(s)&&!Gh(s);){if(Ud(s))return s;s=ha(s)}return null})(e)||t}function uC(e,t,r){const o=Yr(t),s=to(t),c=da(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((so(t)!=="body"||qu(s))&&(f=ju(t)),Yr(t)){const h=da(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=zb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const fC={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=cu(p).filter((M=>eo(M)&&so(M)!=="body")),x=null;const C=Xr(p).position==="fixed";let L=C?ha(p):p;for(;eo(L)&&!Gh(L);){const M=Xr(L),A=Ud(L);(C?A||x:A||M.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=M:b=b.filter((R=>R!==L)),L=ha(L)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=fm(t,v,s);return p.top=Zl(m.top,p.top),p.right=cm(m.right,p.right),p.bottom=cm(m.bottom,p.bottom),p.left=Zl(m.left,p.left),p}),fm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Yr(r),c=to(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")&&((so(r)!=="body"||qu(c))&&(f=ju(r)),Yr(r))){const p=da(r);d=Rs(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:eo,getDimensions:function(e){return Yr(e)?Ob(e):e.getBoundingClientRect()},getOffsetParent:hm,getDocumentElement:to,getScale:Rs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||hm,c=this.getDimensions;return{reference:uC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xr(e).direction==="rtl"},dC=(e,t,r)=>{const o=new Map,s={platform:fC,...r},c={...s.platform,_c:o};return eC(e,t,{...s,platform:c})},no={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 pa(e,t){let r=no.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=no.themes[r.$extend]||{}:(r=null,o=no[t]):r=null;while(r);return o}function hC(e){const t=[e];let r=no.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=no.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function pm(e){const t=[e];let r=no.themes[e]||{};do r.$extend?(t.push(r.$extend),r=no.themes[r.$extend]||{}):r=null;while(r);return t}let ga=!1;if(typeof window<"u"){ga=!1;try{const e=Object.defineProperty({},"passive",{get(){ga=!0}});window.addEventListener("test",null,e)}catch{}}let Hb=!1;typeof window<"u"&&typeof navigator<"u"&&(Hb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),gm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},vm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function mm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function cd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Lo=null;const ym={};function bm(e){let t=ym[e];return t||(t=ym[e]=[]),t}let Vd=function(){};typeof window<"u"&&(Vd=window.Element);function ft(e){return function(t){return pa(t.theme,e)}}const ud="__floating-vue__popper",Wb=()=>ot({name:"VPopper",provide(){return{[ud]:{parentPopper:this}}},inject:{[ud]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Bb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,Vd,Boolean],default:ft("container")},boundary:{type:[String,Vd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ud])==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(sC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(rC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(lC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(iC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(tC({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(aC({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 dC(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),Lo&&this.instantMove&&Lo.instantMove&&Lo!==this.parentPopper){Lo.$_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&&(Lo=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 cd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...cu(this.$_referenceNode),...cu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of pm(this.theme))bm(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 cd(),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,mm(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of pm(this.theme)){const o=bm(r);mm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Lo===this&&(Lo=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 cd(),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,gm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],gm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,vm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],vm,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,ga?{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(Jl>=e.left&&Jl<=e.right&&Ql>=e.top&&Ql<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Jl-ji,o=Ql-Ui,s=t.left+t.width/2-ji+(t.top+t.height/2)-Ui+t.width+t.height,c=ji+r*s,f=Ui+o*s;return _c(ji,Ui,c,f,t.left,t.top,t.left,t.bottom)||_c(ji,Ui,c,f,t.left,t.top,t.right,t.top)||_c(ji,Ui,c,f,t.right,t.top,t.right,t.bottom)||_c(ji,Ui,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Hb){const e=ga?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>wm(t),e),document.addEventListener("touchend",t=>xm(t,!0),e)}else window.addEventListener("mousedown",e=>wm(e),!0),window.addEventListener("click",e=>xm(e,!1),!0);window.addEventListener("resize",vC)}function wm(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function xm(e,t){pC(e,t)}function pC(e,t){const r={};for(let o=nr.length-1;o>=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Sm(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&&Sm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Sm(e,t,r){return r.closeAllPopover||r.closePopover&&t||gC(e,r)&&!t}function gC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function vC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function _m(){for(let e=0;e<nr.length;e++)nr[e].hide()}let ji=0,Ui=0,Jl=0,Ql=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ji=Jl,Ui=Ql,Jl=e.clientX,Ql=e.clientY},ga?{passive:!0}:void 0);function _c(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 mC={extends:Wb()},Uu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function yC(e,t,r,o,s,c){return se(),me("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Sn(e.$slots,"default",v_(bb(e.slotData)))],2)}const bC=Uu(mC,[["render",yC]]);function wC(){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 Hc;function Gd(){Gd.init||(Gd.init=!0,Hc=wC()!==-1)}var Vu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Gd(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hc&&this.$el.appendChild(e),e.data="about:blank",Hc||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&&(!Hc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const xC=Fy();Dy("data-v-b329ee4c");const SC={class:"resize-observer",tabindex:"-1"};zy();const _C=xC((e,t,r,o,s,c)=>(se(),Je("div",SC)));Vu.render=_C;Vu.__scopeId="data-v-b329ee4c";Vu.__file="src/components/ResizeObserver.vue";const qb=(e="theme")=>({computed:{themeClass(){return hC(this[e])}}}),kC=ot({name:"VPopperContent",components:{ResizeObserver:Vu},mixins:[qb()],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}}}),TC=["id","aria-hidden","tabindex","data-popper-placement"],CC={ref:"inner",class:"v-popper__inner"},EC=ne("div",{class:"v-popper__arrow-outer"},null,-1),AC=ne("div",{class:"v-popper__arrow-inner"},null,-1),LC=[EC,AC];function MC(e,t,r,o,s,c){const f=Ho("ResizeObserver");return se(),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:tn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=qd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ne("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ne("div",{class:"v-popper__wrapper",style:tn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ne("div",CC,[e.mounted?(se(),me(nt,{key:0},[ne("div",null,[Sn(e.$slots,"default")]),e.handleResize?(se(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ue("",!0)],64)):Ue("",!0)],512),ne("div",{ref:"arrow",class:"v-popper__arrow-container",style:tn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},LC,4)],4)],46,TC)}const jb=Uu(kC,[["render",MC]]),Ub={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 Kd=function(){};typeof window<"u"&&(Kd=window.Element);const NC=ot({name:"VPopperWrapper",components:{Popper:bC,PopperContent:jb},mixins:[Ub,qb("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,Kd,Boolean],default:void 0},boundary:{type:[String,Kd],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 OC(e,t,r,o,s,c){const f=Ho("PopperContent"),d=Ho("Popper");return se(),Je(d,bi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:C,handleResize:L,onResize:M,classes:A,result:R})=>[Sn(e.$slots,"default",{shown:p,show:x,hide:C}),Re(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":L,classes:A,result:R,onHide:C,onResize:M},{default:it(()=>[Sn(e.$slots,"popper",{shown:p,hide:C})]),_: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 Kh=Uu(NC,[["render",OC]]);({...Kh});({...Kh});const RC={...Kh,name:"VTooltip",vPopperTheme:"tooltip"},PC=ot({name:"VTooltipDirective",components:{Popper:Wb(),PopperContent:jb},mixins:[Ub],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>pa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>pa(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}}}),IC=["innerHTML"],$C=["textContent"];function DC(e,t,r,o,s,c){const f=Ho("PopperContent"),d=Ho("Popper");return se(),Je(d,bi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:C,onResize:L,classes:M,result:A})=>[Re(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":C,classes:M,result:A,onHide:x,onResize:L},{default:it(()=>[e.html?(se(),me("div",{key:0,innerHTML:e.finalContent},null,8,IC)):(se(),me("div",{key:1,textContent:$e(e.finalContent)},null,8,$C))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const zC=Uu(PC,[["render",DC]]),Vb="v-popper--has-tooltip";function FC(e,t){let r=e.placement;if(!r&&t)for(const o of Bb)t[o]&&(r=o);return r||(r=pa(e.theme||"tooltip","placement")),r}function Gb(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=FC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let fd,va,HC=0;function BC(){if(fd)return;va=Ve([]),fd=Ab({name:"VTooltipDirectiveApp",setup(){return{directives:va}},render(){return this.directives.map(t=>Na(zC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),fd.mount(e)}function Kb(e,t,r){BC();const o=Ve(Gb(e,t,r)),s=Ve(!1),c={id:HC++,options:o,shown:s};return va.value.push(c),e.classList&&e.classList.add(Vb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Xh(e){if(e.$_popper){const t=va.value.indexOf(e.$_popper.item);t!==-1&&va.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Vb)}function km(e,{value:t,modifiers:r}){const o=Gb(e,t,r);if(!o.content||pa(o.theme||"tooltip","disabled"))Xh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Kb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const WC={beforeMount:km,updated:km,beforeUnmount(e){Xh(e)}},qC=WC,Xb=RC,Yb={options:no};function Yh(e){return py()?(x_(e),!0):!1}const dd=new WeakMap,jC=(...e)=>{var t;const r=e[0],o=(t=Ci())==null?void 0:t.proxy;if(o==null&&!eb())throw new Error("injectLocal must be called in setup");return o&&dd.has(o)&&r in dd.get(o)?dd.get(o)[r]:wn(...e)},UC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const VC=Object.prototype.toString,GC=e=>VC.call(e)==="[object Object]",uu=()=>{};function Zb(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 Jb=e=>e();function Qb(e,t={}){let r,o,s=uu;const c=h=>{clearTimeout(h),s(),s=uu};let f;return h=>{const p=Vt(e),v=Vt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function KC(e=Jb,t={}){const{initialState:r="active"}=t,o=qo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Hs(o),pause:s,resume:c,eventFilter:f}}function Tm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Cm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function XC(e){return Ci()}function hd(e){return Array.isArray(e)?e:[e]}function qo(...e){if(e.length!==1)return G_(...e);const t=e[0];return typeof t=="function"?Hs(Ny(()=>({get:t,set:uu}))):Ve(t)}function kc(e,t=200,r={}){return Zb(Qb(t,r),e)}function ew(e,t,r={}){const{eventFilter:o=Jb,...s}=r;return _t(e,Zb(o,t),s)}function tw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=KC(o,{initialState:s});return{stop:ew(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Zh(e,t=!0,r){XC()?fo(e,r):t?e():Ct(e)}function Xd(e,t=!1){function r(m,{flush:b="sync",deep:x=!1,timeout:C,throwOnTimeout:L}={}){let M=null;const R=[new Promise(W=>{M=_t(e,E=>{m(E)!==t&&(M?M():Ct(()=>M?.()),W(E))},{flush:b,deep:x,immediate:!0})})];return C!=null&&R.push(Tm(C,L).then(()=>Vt(e)).finally(()=>M?.())),Promise.race(R)}function o(m,b){if(!Ot(m))return r(E=>E===m,b);const{flush:x="sync",deep:C=!1,timeout:L,throwOnTimeout:M}=b??{};let A=null;const W=[new Promise(E=>{A=_t([e,m],([B,U])=>{t!==(B===U)&&(A?A():Ct(()=>A?.()),E(B))},{flush:x,deep:C,immediate:!0})})];return L!=null&&W.push(Tm(L,M).then(()=>Vt(e)).finally(()=>(A?.(),Vt(e)))),Promise.race(W)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(x=>{const C=Array.from(x);return C.includes(m)||C.includes(Vt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let x=-1;return r(()=>(x+=1,x>=m),b)}return Array.isArray(Vt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Xd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Xd(e,!t)}}}function Em(e){return Xd(e)}function YC(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ot(e),c=nn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Vt(r);return c.value=c.value===h?Vt(o):h,c.value}}return s?f:[c,f]}function Jh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return ew(e,t,{...c,eventFilter:Qb(o,{maxWait:s})})}function ZC(e,t,r){return _t(e,t,{...r,immediate:!0})}function JC(e,t,r){const o=_t(e,(...s)=>(Ct(()=>o()),t(...s)),r);return o}function QC(e,t,r){let o;Ot(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=uu}=o,h=nn(!s),p=f?nn(t):Ve(t);let v=0;return Bh(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const C=await e(L=>{m(()=>{c&&(c.value=!1),x||L()})});b===v&&(p.value=C)}catch(C){d(C)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Se(()=>(h.value=!0,p.value)):p}const Pr=UC?window:void 0;function fu(e){var t;const r=Vt(e);return(t=r?.$el)!=null?t:r}function lo(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=Se(()=>{const d=hd(Vt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=ZC(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>fu(p)))!=null?h:[Pr].filter(p=>p!=null),hd(Vt(s.value?e[1]:e[0])),hd(J(s.value?e[2]:e[1])),Vt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const m=GC(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(C=>o(b,x,C,m)))))},{flush:"post"}),f=()=>{c(),r()};return Yh(r),f}function eE(){const e=nn(!1),t=Ci();return t&&fo(()=>{e.value=!0},t),e}function nw(e){const t=eE();return Se(()=>(t.value,!!e()))}function tE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function rw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Pr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tE(t);return lo(s,c,v=>{v.repeat&&Vt(d)||h(v)&&r(v)},f)}function nE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Pr,once:c=!1}=t,f=nn(!1),d=Se(()=>o?1e3/Vt(o):null);let h=0,p=null;function v(x){if(!f.value||!s)return;h||(h=x);const C=x-h;if(d.value&&C<d.value){p=s.requestAnimationFrame(v);return}if(h=x,e({delta:C,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Yh(b),{isActive:Hs(f),pause:b,resume:m}}const rE=Symbol("vueuse-ssr-width");function iE(){const e=eb()?jC(rE,null):null;return typeof e=="number"?e:void 0}function iw(e,t={}){const{window:r=Pr,ssrWidth:o=iE()}=t,s=nw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=nn(typeof o=="number"),f=nn(),d=nn(!1),h=p=>{d.value=p.matches};return Bh(()=>{if(c.value){c.value=!s.value;const p=Vt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(b||x);return b&&C&&(C=o>=Cm(b[1])),x&&C&&(C=o<=Cm(x[1])),m?!C:C});return}s.value&&(f.value=r.matchMedia(Vt(e)),d.value=f.value.matches)}),lo(f,"change",h,{passive:!0}),Se(()=>d.value)}const Tc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cc="__vueuse_ssr_handlers__",oE=sE();function sE(){return Cc in Tc||(Tc[Cc]=Tc[Cc]||{}),Tc[Cc]}function ow(e,t){return oE[e]||t}function lE(e){return iw("(prefers-color-scheme: dark)",e)}function aE(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()}},Am="vueuse-storage";function sw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Pr,eventFilter:b,onError:x=V=>{console.error(V)},initOnMounted:C}=o,L=(v?nn:Ve)(typeof t=="function"?t():t),M=Se(()=>Vt(e));if(!r)try{r=ow("getDefaultStorage",()=>{var V;return(V=Pr)==null?void 0:V.localStorage})()}catch(V){x(V)}if(!r)return L;const A=Vt(t),R=aE(A),W=(s=o.serializer)!=null?s:cE[R],{pause:E,resume:B}=tw(L,()=>oe(L.value),{flush:c,deep:f,eventFilter:b});_t(M,()=>Z(),{flush:c}),m&&d&&Zh(()=>{r instanceof Storage?lo(m,"storage",Z,{passive:!0}):lo(m,Am,K),C&&Z()}),C||Z();function U(V,P){if(m){const O={key:M.value,oldValue:V,newValue:P,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Am,{detail:O}))}}function oe(V){try{const P=r.getItem(M.value);if(V==null)U(P,null),r.removeItem(M.value);else{const O=W.write(V);P!==O&&(r.setItem(M.value,O),U(P,O))}}catch(P){x(P)}}function te(V){const P=V?V.newValue:r.getItem(M.value);if(P==null)return h&&A!=null&&r.setItem(M.value,W.write(A)),A;if(!V&&p){const O=W.read(P);return typeof p=="function"?p(O,A):R==="object"&&!Array.isArray(O)?{...A,...O}:O}else return typeof P!="string"?P:W.read(P)}function Z(V){if(!(V&&V.storageArea!==r)){if(V&&V.key==null){L.value=A;return}if(!(V&&V.key!==M.value)){E();try{V?.newValue!==W.write(L.value)&&(L.value=te(V))}catch(P){x(P)}finally{V?Ct(B):B()}}}}function K(V){Z(V.detail)}return L}const uE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Pr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=lE({window:s}),x=Se(()=>b.value?"dark":"light"),C=h||(f==null?qo(o):sw(f,o,c,{window:s,listenToStorageChanges:d})),L=Se(()=>C.value==="auto"?x.value:C.value),M=ow("updateHTMLAttrs",(E,B,U)=>{const oe=typeof E=="string"?s?.document.querySelector(E):fu(E);if(!oe)return;const te=new Set,Z=new Set;let K=null;if(B==="class"){const P=U.split(/\s/g);Object.values(m).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?te.add(O):Z.add(O)})}else K={key:B,value:U};if(te.size===0&&Z.size===0&&K===null)return;let V;v&&(V=s.document.createElement("style"),V.appendChild(document.createTextNode(uE)),s.document.head.appendChild(V));for(const P of te)oe.classList.add(P);for(const P of Z)oe.classList.remove(P);K&&oe.setAttribute(K.key,K.value),v&&(s.getComputedStyle(V).opacity,document.head.removeChild(V))});function A(E){var B;M(t,r,(B=m[E])!=null?B:E)}function R(E){e.onChanged?e.onChanged(E,A):A(E)}_t(L,R,{flush:"post",immediate:!0}),Zh(()=>R(L.value));const W=Se({get(){return p?C.value:L.value},set(E){C.value=E}});return Object.assign(W,{store:C,system:x,state:L})}function dE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fE({...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=Se(()=>o.system.value);return Se({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function lw(e,t,r={}){const{window:o=Pr,...s}=r;let c;const f=nw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Se(()=>{const m=Vt(e);return Array.isArray(m)?m.map(b=>fu(b)):[fu(m)]}),p=_t(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 Yh(v),{isSupported:f,stop:v}}function Gu(e,t,r={}){const{window:o=Pr}=r;return sw(e,t,o?.localStorage,r)}function hE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Pr}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const W=d.location.hash||"",E=W.indexOf("?");return E>0?W.slice(E):""}else return(d.location.hash||"").replace(/^#/,"")}function v(W){const E=W.toString();if(e==="history")return`${E?`?${E}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${E?`#${E}`:""}`;const B=d.location.hash||"#",U=B.indexOf("?");return U>0?`${d.location.search||""}${B.slice(0,U)}${E?`?${E}`:""}`:`${d.location.search||""}${B}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(W){const E=new Set(Object.keys(h));for(const B of W.keys()){const U=W.getAll(B);h[B]=U.length>1?U:W.get(B)||"",E.delete(B)}Array.from(E).forEach(B=>delete h[B])}const{pause:x,resume:C}=tw(h,()=>{const W=new URLSearchParams("");Object.keys(h).forEach(E=>{const B=h[E];Array.isArray(B)?B.forEach(U=>W.append(E,U)):o&&B==null||s&&!B?W.delete(E):W.set(E,B)}),L(W,!1)},{deep:!0});function L(W,E){x(),E&&b(W),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(W)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(W)),C()}function M(){c&&L(m(),!0)}const A={passive:!0};lo(d,"popstate",M,A),e!=="history"&&lo(d,"hashchange",M,A);const R=m();return R.keys().next().value?b(R):Object.assign(h,r),h}function aw(e={}){const{window:t=Pr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=nn(r),h=nn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:x}=t.visualViewport;d.value=Math.round(m*x),h.value=Math.round(b*x)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Zh(p);const v={passive:!0};if(lo("resize",p,v),t&&f==="visual"&&t.visualViewport&&lo(t.visualViewport,"resize",p,v),s){const m=iw("(orientation: portrait)");_t(m,()=>p())}return{width:d,height:h}}const Lm={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=yk(),c=Ve([]),f=Se(()=>c.value.reduce(($,G)=>($[~~G.id]=G)&&$,{})),d=Se(()=>c.value.length),h=Ve(null),p=Ve(!1),v=Ve({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ve({splitter:null,timeoutId:null}),b=Se(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),x=()=>{document.addEventListener("mousemove",M,{passive:!1}),document.addEventListener("mouseup",A),"ontouchstart"in window&&(document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",A))},C=()=>{document.removeEventListener("mousemove",M,{passive:!1}),document.removeEventListener("mouseup",A),"ontouchstart"in window&&(document.removeEventListener("touchmove",M,{passive:!1}),document.removeEventListener("touchend",A))},L=($,G)=>{const Q=$.target.closest(".splitpanes__splitter");if(Q){const{left:le,top:ie}=Q.getBoundingClientRect(),{clientX:I,clientY:F}="ontouchstart"in window&&$.touches?$.touches[0]:$;v.value.cursorOffset=o.horizontal?F-ie:I-le}x(),v.value.mouseDown=!0,v.value.activeSplitter=G},M=$=>{v.value.mouseDown&&($.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{oe(B($)),ze("resize",{event:$},!0)}))},A=$=>{v.value.dragging&&(window.getSelection().removeAllRanges(),ze("resized",{event:$},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},R=($,G)=>{"ontouchstart"in window&&($.preventDefault(),m.value.splitter===G?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,W($,G),m.value.splitter=null):(m.value.splitter=G,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500))),v.value.dragging||ze("splitter-click",{event:$,index:G},!0)},W=($,G)=>{if(ze("splitter-dblclick",{event:$,index:G},!0),o.maximizePanes){let Q=0;c.value=c.value.map((le,ie)=>(le.size=ie===G?le.max:le.min,ie!==G&&(Q+=le.min),le)),c.value[G].size-=Q,ze("pane-maximize",{event:$,index:G,pane:c.value[G]}),ze("resized",{event:$,index:G},!0)}},E=($,G)=>{ze("pane-click",{event:$,index:f.value[G].index,pane:f.value[G]})},B=$=>{const G=h.value.getBoundingClientRect(),{clientX:Q,clientY:le}="ontouchstart"in window&&$.touches?$.touches[0]:$;return{x:Q-(o.horizontal?0:v.value.cursorOffset)-G.left,y:le-(o.horizontal?v.value.cursorOffset:0)-G.top}},U=$=>{$=$[o.horizontal?"y":"x"];const G=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&($=G-$),$*100/G},oe=$=>{const G=v.value.activeSplitter;let Q={prevPanesSize:Z(G),nextPanesSize:K(G),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:Q.prevPanesSize),ie=100-(o.pushOtherPanes?0:Q.nextPanesSize),I=Math.max(Math.min(U($),ie),le);let F=[G,G+1],X=c.value[F[0]]||null,ue=c.value[F[1]]||null;const he=X.max<100&&I>=X.max+Q.prevPanesSize,de=ue.max<100&&I<=100-(ue.max+K(G+1));if(he||de){he?(X.size=X.max,ue.size=Math.max(100-X.max-Q.prevPanesSize-Q.nextPanesSize,0)):(X.size=Math.max(100-ue.max-Q.prevPanesSize-K(G+1),0),ue.size=ue.max);return}if(o.pushOtherPanes){const _e=te(Q,I);if(!_e)return;({sums:Q,panesToResize:F}=_e),X=c.value[F[0]]||null,ue=c.value[F[1]]||null}X!==null&&(X.size=Math.min(Math.max(I-Q.prevPanesSize-Q.prevReachedMinPanes,X.min),X.max)),ue!==null&&(ue.size=Math.min(Math.max(100-I-Q.nextPanesSize-Q.nextReachedMinPanes,ue.min),ue.max))},te=($,G)=>{const Q=v.value.activeSplitter,le=[Q,Q+1];return G<$.prevPanesSize+c.value[le[0]].min&&(le[0]=V(Q).index,$.prevReachedMinPanes=0,le[0]<Q&&c.value.forEach((ie,I)=>{I>le[0]&&I<=Q&&(ie.size=ie.min,$.prevReachedMinPanes+=ie.min)}),$.prevPanesSize=Z(le[0]),le[0]===void 0)?($.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ie,I)=>{I>0&&I<=Q&&(ie.size=ie.min,$.prevReachedMinPanes+=ie.min)}),c.value[le[1]].size=100-$.prevReachedMinPanes-c.value[0].min-$.prevPanesSize-$.nextPanesSize,null):G>100-$.nextPanesSize-c.value[le[1]].min&&(le[1]=P(Q).index,$.nextReachedMinPanes=0,le[1]>Q+1&&c.value.forEach((ie,I)=>{I>Q&&I<le[1]&&(ie.size=ie.min,$.nextReachedMinPanes+=ie.min)}),$.nextPanesSize=K(le[1]-1),le[1]===void 0)?($.nextReachedMinPanes=0,c.value.forEach((ie,I)=>{I<d.value-1&&I>=Q+1&&(ie.size=ie.min,$.nextReachedMinPanes+=ie.min)}),c.value[le[0]].size=100-$.prevPanesSize-K(le[0]-1),null):{sums:$,panesToResize:le}},Z=$=>c.value.reduce((G,Q,le)=>G+(le<$?Q.size:0),0),K=$=>c.value.reduce((G,Q,le)=>G+(le>$+1?Q.size:0),0),V=$=>[...c.value].reverse().find(G=>G.index<$&&G.size>G.min)||{},P=$=>c.value.find(G=>G.index>$+1&&G.size>G.min)||{},O=()=>{var $;const G=Array.from((($=h.value)==null?void 0:$.children)||[]);for(const Q of G){const le=Q.classList.contains("splitpanes__pane"),ie=Q.classList.contains("splitpanes__splitter");!le&&!ie&&(Q.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},N=($,G,Q=!1)=>{const le=$-1,ie=document.createElement("div");ie.classList.add("splitpanes__splitter"),Q||(ie.onmousedown=I=>L(I,le),typeof window<"u"&&"ontouchstart"in window&&(ie.ontouchstart=I=>L(I,le)),ie.onclick=I=>R(I,le+1)),ie.ondblclick=I=>W(I,le+1),G.parentNode.insertBefore(ie,G)},_=$=>{$.onmousedown=void 0,$.onclick=void 0,$.ondblclick=void 0,$.remove()},z=()=>{var $;const G=Array.from((($=h.value)==null?void 0:$.children)||[]);for(const le of G)le.className.includes("splitpanes__splitter")&&_(le);let Q=0;for(const le of G)le.className.includes("splitpanes__pane")&&(!Q&&o.firstSplitter?N(Q,le,!0):Q&&N(Q,le),Q++)},H=({uid:$,...G})=>{const Q=f.value[$];for(const[le,ie]of Object.entries(G))Q[le]=ie},re=$=>{var G;let Q=-1;Array.from(((G=h.value)==null?void 0:G.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&Q++,le.isSameNode($.el))),c.value.splice(Q,0,{...$,index:Q}),c.value.forEach((le,ie)=>le.index=ie),p.value&&Ct(()=>{z(),we({addedPane:c.value[Q]}),ze("pane-add",{pane:c.value[Q]})})},ve=$=>{const G=c.value.findIndex(le=>le.id===$);c.value[G].el=null;const Q=c.value.splice(G,1)[0];c.value.forEach((le,ie)=>le.index=ie),Ct(()=>{z(),ze("pane-remove",{pane:Q}),we({removedPane:{...Q}})})},we=($={})=>{!$.addedPane&&!$.removedPane?je():c.value.some(G=>G.givenSize!==null||G.min||G.max<100)?Qe($):Pe(),p.value&&ze("resized")},Pe=()=>{const $=100/d.value;let G=0;const Q=[],le=[];for(const ie of c.value)ie.size=Math.max(Math.min($,ie.max),ie.min),G-=ie.size,ie.size>=ie.max&&Q.push(ie.id),ie.size<=ie.min&&le.push(ie.id);G>.1&&Ye(G,Q,le)},je=()=>{let $=100;const G=[],Q=[];let le=0;for(const I of c.value)$-=I.size,I.givenSize!==null&&le++,I.size>=I.max&&G.push(I.id),I.size<=I.min&&Q.push(I.id);let ie=100;if($>.1){for(const I of c.value)I.givenSize===null&&(I.size=Math.max(Math.min($/(d.value-le),I.max),I.min)),ie-=I.size;ie>.1&&Ye(ie,G,Q)}},Qe=({addedPane:$,removedPane:G}={})=>{let Q=100/d.value,le=0;const ie=[],I=[];($?.givenSize??null)!==null&&(Q=(100-$.givenSize)/(d.value-1));for(const F of c.value)le-=F.size,F.size>=F.max&&ie.push(F.id),F.size<=F.min&&I.push(F.id);if(!(Math.abs(le)<.1)){for(const F of c.value)$?.givenSize!==null&&$?.id===F.id||(F.size=Math.max(Math.min(Q,F.max),F.min)),le-=F.size,F.size>=F.max&&ie.push(F.id),F.size<=F.min&&I.push(F.id);le>.1&&Ye(le,ie,I)}},Ye=($,G,Q)=>{let le;$>0?le=$/(d.value-G.length):le=$/(d.value-Q.length),c.value.forEach((ie,I)=>{if($>0&&!G.includes(ie.id)){const F=Math.max(Math.min(ie.size+le,ie.max),ie.min),X=F-ie.size;$-=X,ie.size=F}else if(!Q.includes(ie.id)){const F=Math.max(Math.min(ie.size+le,ie.max),ie.min),X=F-ie.size;$-=X,ie.size=F}}),Math.abs($)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},ze=($,G=void 0,Q=!1)=>{const le=G?.index??v.value.activeSplitter??null;r($,{...G,...le!==null&&{index:le},...Q&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ie=>({min:ie.min,max:ie.max,size:ie.size}))})};_t(()=>o.firstSplitter,()=>z()),fo(()=>{O(),z(),we(),ze("ready"),p.value=!0}),La(()=>p.value=!1);const Me=()=>{var $;return Na("div",{ref:h,class:b.value},($=s.default)==null?void 0:$.call(s))};return Er("panes",c),Er("indexedPanes",f),Er("horizontal",Se(()=>o.horizontal)),Er("requestUpdate",H),Er("onPaneAdd",re),Er("onPaneRemove",ve),Er("onPaneClick",E),($,G)=>(se(),Je(Pd(Me)))}},Ec={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=wn("requestUpdate"),s=wn("onPaneAdd"),c=wn("horizontal"),f=wn("onPaneRemove"),d=wn("onPaneClick"),h=(t=Ci())==null?void 0:t.uid,p=wn("indexedPanes"),v=Se(()=>p.value[h]),m=Ve(null),b=Se(()=>{const M=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(M,C.value),x.value)}),x=Se(()=>{const M=parseFloat(r.minSize);return isNaN(M)?0:M}),C=Se(()=>{const M=parseFloat(r.maxSize);return isNaN(M)?100:M}),L=Se(()=>{var M;return`${c.value?"height":"width"}: ${(M=v.value)==null?void 0:M.size}%`});return _t(()=>b.value,M=>o({uid:h,size:M})),_t(()=>x.value,M=>o({uid:h,min:M})),_t(()=>C.value,M=>o({uid:h,max:M})),fo(()=>{s({id:h,el:m.value,min:x.value,max:C.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),La(()=>f(h)),(M,A)=>(se(),me("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:A[0]||(A[0]=R=>J(d)(R,M._.uid)),style:tn(L.value)},[Sn(M.$slots,"default")],4))}},tr=Ve([414,896]);function cw(e){return e!=null}function Qh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const pE=/^[A-Za-z]:\//;function gE(e=""){return e&&e.replace(/\\/g,"/").replace(pE,t=>t.toUpperCase())}const vE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function mE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const uw=function(...e){e=e.map(o=>gE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:mE();!s||s.length===0||(t=`${s}/${t}`,r=Mm(s))}return t=yE(t,!r),r&&!Mm(t)?`/${t}`:t.length>0?t:"."};function yE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Mm=function(e){return vE.test(e)};var bE=44,Nm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wE=new Uint8Array(64),fw=new Uint8Array(128);for(let e=0;e<Nm.length;e++){const t=Nm.charCodeAt(e);wE[e]=t,fw[t]=e}function Il(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 Om(e,t){return e.pos>=t?!1:e.peek()!==bE}var xE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function SE(e){const{length:t}=e,r=new xE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let x;s=Il(r,s),s<b&&(m=!1),b=s,Om(r,p)?(c=Il(r,c),f=Il(r,f),d=Il(r,d),Om(r,p)?(h=Il(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||_E(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function _E(e){e.sort(kE)}function kE(e,t){return e[0]-t[0]}var Ku=0,TE=1,CE=2,EE=3,AE=4,du=!1;function LE(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Ku]-t;if(c===0)return du=!0,s;c<0?r=s+1:o=s-1}return du=!1,r-1}function ME(e,t,r){for(let o=r+1;o<e.length&&e[o][Ku]===t;r=o++);return r}function NE(e,t,r){for(let o=r-1;o>=0&&e[o][Ku]===t;r=o--);return r}function OE(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 du=f!==-1&&e[f][Ku]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=LE(e,t,d,h)}var RE="`line` must be greater than 0 (lines start at line 1)",PE="`column` must be greater than or equal to 0 (columns start at column 0)",Rm=-1,IE=1;function $E(e){var t;return(t=e)._decoded||(t._decoded=SE(e._encoded))}function DE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(RE);if(o<0)throw new Error(PE);const c=$E(e);if(r>=c.length)return Ac(null,null,null,null);const f=c[r],d=zE(f,e._decodedMemo,r,o,s||IE);if(d===-1)return Ac(null,null,null,null);const h=f[d];if(h.length===1)return Ac(null,null,null,null);const{names:p,resolvedSources:v}=e;return Ac(v[h[TE]],h[CE]+1,h[EE],h.length===5?p[h[AE]]:null)}function Ac(e,t,r,o){return{source:e,line:t,column:r,name:o}}function zE(e,t,r,o,s){let c=OE(e,o,t,r);return du?c=(s===Rm?ME:NE)(e,o,c):s===Rm&&c++,c===-1||c===e.length?-1:c}const dw=/^\s*at .*(?:\S:\d+|\(native\))/m,FE=/^(?:eval@)?(?:\[native code\])?$/,HE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function hw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function BE(e){let t=e.trim();if(FE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=hw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function WE(e){let t=e.trim();if(!dw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=hw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:uw(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function qE(e,t={}){const{ignoreStackEntries:r=HE}=t;return(dw.test(e)?UE(e):jE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Pm(r,s.file)?null:s;const d=new VE(f,s.file),h=KE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),Pm(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function Pm(e,t){return e.some(r=>t.match(r))}function jE(e){return e.split(`
17
+ **/let Wd;const Hv=typeof window<"u"&&window.trustedTypes;if(Hv)try{Wd=Hv.createPolicy("vue",{createHTML:e=>e})}catch{}const _b=Wd?e=>Wd.createHTML(e):e=>e,uT="http://www.w3.org/2000/svg",fT="http://www.w3.org/1998/Math/MathML",hi=typeof document<"u"?document:null,Bv=hi&&hi.createElement("template"),dT={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"?hi.createElementNS(uT,e):t==="mathml"?hi.createElementNS(fT,e):r?hi.createElement(e,{is:r}):hi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>hi.createTextNode(e),createComment:e=>hi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hi.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{Bv.innerHTML=_b(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Bv.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]}},Bi="transition",Rl="animation",ua=Symbol("_vtc"),kb={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},hT=rn({},By,kb),pT=e=>(e.displayName="Transition",e.props=hT,e),gT=pT((e,{slots:t})=>Na(rk,vT(e),t)),Eo=(e,t=[])=>{We(e)?e.forEach(r=>r(...t)):e&&e(...t)},Wv=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function vT(e){const t={};for(const P in e)P in kb||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,C=mT(s),L=C&&C[0],M=C&&C[1],{onBeforeEnter:A,onEnter:R,onEnterCancelled:B,onLeave:E,onLeaveCancelled:W,onBeforeAppear:U=A,onAppear:oe=R,onAppearCancelled:te=B}=t,Z=(P,O,N,_)=>{P._enterCancelled=_,Ao(P,O?v:d),Ao(P,O?p:f),N&&N()},K=(P,O)=>{P._isLeaving=!1,Ao(P,m),Ao(P,x),Ao(P,b),O&&O()},V=P=>(O,N)=>{const _=P?oe:R,z=()=>Z(O,P,N);Eo(_,[O,z]),qv(()=>{Ao(O,P?h:c),ci(O,P?v:d),Wv(_)||jv(O,o,L,z)})};return rn(t,{onBeforeEnter(P){Eo(A,[P]),ci(P,c),ci(P,f)},onBeforeAppear(P){Eo(U,[P]),ci(P,h),ci(P,p)},onEnter:V(!1),onAppear:V(!0),onLeave(P,O){P._isLeaving=!0;const N=()=>K(P,O);ci(P,m),P._enterCancelled?(ci(P,b),Gv(P)):(Gv(P),ci(P,b)),qv(()=>{P._isLeaving&&(Ao(P,m),ci(P,x),Wv(E)||jv(P,o,M,N))}),Eo(E,[P,N])},onEnterCancelled(P){Z(P,!1,void 0,!0),Eo(B,[P])},onAppearCancelled(P){Z(P,!0,void 0,!0),Eo(te,[P])},onLeaveCancelled(P){K(P),Eo(W,[P])}})}function mT(e){if(e==null)return null;if(xt(e))return[sd(e.enter),sd(e.leave)];{const t=sd(e);return[t,t]}}function sd(e){return cy(e)}function ci(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ua]||(e[ua]=new Set)).add(t)}function Ao(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ua];r&&(r.delete(t),r.size||(e[ua]=void 0))}function qv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yT=0;function jv(e,t,r,o){const s=e._endId=++yT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=bT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function bT(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),s=o(`${Bi}Delay`),c=o(`${Bi}Duration`),f=Uv(s,c),d=o(`${Rl}Delay`),h=o(`${Rl}Duration`),p=Uv(d,h);let v=null,m=0,b=0;t===Bi?f>0&&(v=Bi,m=f,b=c.length):t===Rl?p>0&&(v=Rl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Bi:Rl:null,b=v?v===Bi?c.length:h.length:0);const x=v===Bi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Bi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Uv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Vv(r)+Vv(e[o])))}function Vv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Gv(e){return(e?e.ownerDocument:document).body.offsetHeight}function wT(e,t,r){const o=e[ua];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const iu=Symbol("_vod"),Tb=Symbol("_vsh"),Zi={name:"show",beforeMount(e,{value:t},{transition:r}){e[iu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Pl(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),Pl(e,!0),o.enter(e)):o.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e[iu]:"none",e[Tb]=!t}const xT=Symbol(""),ST=/(?:^|;)\s*display\s*:/;function _T(e,t,r){const o=e.style,s=Dt(r);let c=!1;if(r&&!s){if(t)if(Dt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&zc(o,d,"")}else for(const f in t)r[f]==null&&zc(o,f,"");for(const f in r)f==="display"&&(c=!0),zc(o,f,r[f])}else if(s){if(t!==r){const f=o[xT];f&&(r+=";"+f),o.cssText=r,c=ST.test(r)}}else t&&e.removeAttribute("style");iu in e&&(e[iu]=c?o.display:"",e[Tb]&&(o.display="none"))}const Kv=/\s*!important$/;function zc(e,t,r){if(We(r))r.forEach(o=>zc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=kT(e,t);Kv.test(r)?e.setProperty(ki(o),r.replace(Kv,""),"important"):e[o]=r}}const Xv=["Webkit","Moz","ms"],ld={};function kT(e,t){const r=ld[t];if(r)return r;let o=or(t);if(o!=="filter"&&o in e)return ld[t]=o;o=Au(o);for(let s=0;s<Xv.length;s++){const c=Xv[s]+o;if(c in e)return ld[t]=c}return t}const Yv="http://www.w3.org/1999/xlink";function Zv(e,t,r,o,s,c=y_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Yv,t.slice(6,t.length)):e.setAttributeNS(Yv,t,r):r==null||c&&!uy(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Or(r)?String(r):r)}function Jv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?_b(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=uy(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 Ro(e,t,r,o){e.addEventListener(t,r,o)}function TT(e,t,r,o){e.removeEventListener(t,r,o)}const Qv=Symbol("_vei");function CT(e,t,r,o,s=null){const c=e[Qv]||(e[Qv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=ET(t);if(o){const p=c[t]=MT(o,s);Ro(e,d,p,h)}else f&&(TT(e,d,f,h),c[t]=void 0)}}const em=/(?:Once|Passive|Capture)$/;function ET(e){let t;if(em.test(e)){t={};let o;for(;o=e.match(em);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ki(e.slice(2)),t]}let ad=0;const AT=Promise.resolve(),LT=()=>ad||(AT.then(()=>ad=0),ad=Date.now());function MT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Rr(NT(o,r.value),t,5,[o])};return r.value=e,r.attached=LT(),r}function NT(e,t){if(We(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 tm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,OT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?wT(e,o,f):t==="style"?_T(e,r,o):Tu(t)?kh(t)||CT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):RT(e,t,o,f))?(Jv(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)||!Dt(o))?Jv(e,or(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Zv(e,t,o,f))};function RT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&tm(t)&&Ke(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return tm(t)&&Dt(r)?!1:t in e}const ou=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?r=>$c(t,r):t};function PT(e){e.target.composing=!0}function nm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Os=Symbol("_assign");function rm(e,t,r){return t&&(e=e.trim()),r&&(e=Eh(e)),e}const IT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Os]=ou(s);const c=o||s.props&&s.props.type==="number";Ro(e,t?"change":"input",f=>{f.target.composing||e[Os](rm(e.value,r,c))}),(r||c)&&Ro(e,"change",()=>{e.value=rm(e.value,r,c)}),t||(Ro(e,"compositionstart",PT),Ro(e,"compositionend",nm),Ro(e,"change",nm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Os]=ou(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Eh(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))}},Cb={deep:!0,created(e,t,r){e[Os]=ou(r),Ro(e,"change",()=>{const o=e._modelValue,s=$T(e),c=e.checked,f=e[Os];if(We(o)){const d=fy(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(Cu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Eb(e,c))})},mounted:im,beforeUpdate(e,t,r){e[Os]=ou(r),im(e,t,r)}};function im(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(We(t))s=fy(t,o.props.value)>-1;else if(Cu(t))s=t.has(o.props.value);else{if(t===r)return;s=Mu(t,Eb(e,!0))}e.checked!==s&&(e.checked=s)}function $T(e){return"_value"in e?e._value:e.value}function Eb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const DT=["ctrl","shift","alt","meta"],zT={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)=>DT.some(r=>e[`${r}Key`]&&!t.includes(r))},Fc=(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=zT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},FT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},qd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=ki(s.key);if(t.some(f=>f===c||FT[f]===c))return e(s)}))},HT=rn({patchProp:OT},dT);let om;function BT(){return om||(om=Rk(HT))}const Ab=((...e)=>{const t=BT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=qT(o);if(!s)return;const c=t._component;!Ke(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,WT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function WT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qT(e){return Dt(e)?document.querySelector(e):e}const Ei=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},jT={};function UT(e,t){const r=Ho("RouterView");return se(),Je(r)}const VT=Ei(jT,[["render",UT]]),GT=["top","right","bottom","left"],sm=["start","end"],lm=GT.reduce((e,t)=>e.concat(t,t+"-"+sm[0],t+"-"+sm[1]),[]),fa=Math.min,No=Math.max,KT={left:"right",right:"left",bottom:"top",top:"bottom"},XT={start:"end",end:"start"};function jd(e,t,r){return No(e,fa(t,r))}function Wo(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Nr(e){return e.split("-")[1]}function Lb(e){return e==="x"?"y":"x"}function Uh(e){return e==="y"?"height":"width"}function Oa(e){return["top","bottom"].includes(Jr(e))?"y":"x"}function Vh(e){return Lb(Oa(e))}function Mb(e,t,r){r===void 0&&(r=!1);const o=Nr(e),s=Vh(e),c=Uh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=lu(f)),[f,lu(f)]}function YT(e){const t=lu(e);return[su(e),t,su(t)]}function su(e){return e.replace(/start|end/g,t=>XT[t])}function ZT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function JT(e,t,r,o){const s=Nr(e);let c=ZT(Jr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(su)))),c}function lu(e){return e.replace(/left|right|bottom|top/g,t=>KT[t])}function QT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nb(e){return typeof e!="number"?QT(e):{top:e,right:e,bottom:e,left:e}}function Yl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function am(e,t,r){let{reference:o,floating:s}=e;const c=Oa(t),f=Vh(t),d=Uh(f),h=Jr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Nr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const eC=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}=am(p,o,h),b=o,x={},C=0;for(let L=0;L<d.length;L++){const{name:M,fn:A}=d[L],{x:R,y:B,data:E,reset:W}=await A({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=R??v,m=B??m,x={...x,[M]:{...x[M],...E}},W&&C<=50&&(C++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(p=W.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):W.rects),{x:v,y:m}=am(p,b,h)),L=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function Wu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=Wo(t,e),C=Nb(x),M=d[b?m==="floating"?"reference":"floating":m],A=Yl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(M)))==null||r?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),R=m==="floating"?{...f.floating,x:o,y:s}:f.reference,B=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(B))?await(c.getScale==null?void 0:c.getScale(B))||{x:1,y:1}:{x:1,y:1},W=Yl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:B,strategy:h}):R);return{top:(A.top-W.top+C.top)/E.y,bottom:(W.bottom-A.bottom+C.bottom)/E.y,left:(A.left-W.left+C.left)/E.x,right:(W.right-A.right+C.right)/E.x}}const tC=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}=Wo(e,t)||{};if(p==null)return{};const m=Nb(v),b={x:r,y:o},x=Vh(s),C=Uh(x),L=await f.getDimensions(p),M=x==="y",A=M?"top":"left",R=M?"bottom":"right",B=M?"clientHeight":"clientWidth",E=c.reference[C]+c.reference[x]-b[x]-c.floating[C],W=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let oe=U?U[B]:0;(!oe||!await(f.isElement==null?void 0:f.isElement(U)))&&(oe=d.floating[B]||c.floating[C]);const te=E/2-W/2,Z=oe/2-L[C]/2-1,K=fa(m[A],Z),V=fa(m[R],Z),P=K,O=oe-L[C]-V,N=oe/2-L[C]/2+te,_=jd(P,N,O),z=!h.arrow&&Nr(s)!=null&&N!==_&&c.reference[C]/2-(N<P?K:V)-L[C]/2<0,H=z?N<P?N-P:N-O:0;return{[x]:b[x]+H,data:{[x]:_,centerOffset:N-_-H,...z&&{alignmentOffset:H}},reset:z}}});function nC(e,t,r){return(e?[...r.filter(s=>Nr(s)===e),...r.filter(s=>Nr(s)!==e)]:r.filter(s=>Jr(s)===s)).filter(s=>e?Nr(s)===e||(t?su(s)!==s:!1):!0)}const rC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=lm,autoAlignment:x=!0,...C}=Wo(e,t),L=m!==void 0||b===lm?nC(m||null,x,b):b,M=await Wu(t,C),A=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[A];if(R==null)return{};const B=Mb(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const E=[M[Jr(R)],M[B[0]],M[B[1]]],W=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:E}],U=L[A+1];if(U)return{data:{index:A+1,overflows:W},reset:{placement:U}};const oe=W.map(K=>{const V=Nr(K.placement);return[K.placement,V&&v?K.overflows.slice(0,2).reduce((P,O)=>P+O,0):K.overflows[0],K.overflows]}).sort((K,V)=>K[1]-V[1]),Z=((s=oe.filter(K=>K[2].slice(0,Nr(K[0])?2:3).every(V=>V<=0))[0])==null?void 0:s[0])||oe[0][0];return Z!==d?{data:{index:A+1,overflows:W},reset:{placement:Z}}:{}}}},iC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:L=!0,...M}=Wo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const A=Jr(s),R=Jr(d)===d,B=await(h.isRTL==null?void 0:h.isRTL(p.floating)),E=b||(R||!L?[lu(d)]:YT(d));!b&&C!=="none"&&E.push(...JT(d,L,C,B));const W=[d,...E],U=await Wu(t,M),oe=[];let te=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&oe.push(U[A]),m){const P=Mb(s,f,B);oe.push(U[P[0]],U[P[1]])}if(te=[...te,{placement:s,overflows:oe}],!oe.every(P=>P<=0)){var Z,K;const P=(((Z=c.flip)==null?void 0:Z.index)||0)+1,O=W[P];if(O)return{data:{index:P,overflows:te},reset:{placement:O}};let N=(K=te.filter(_=>_.overflows[0]<=0).sort((_,z)=>_.overflows[1]-z.overflows[1])[0])==null?void 0:K.placement;if(!N)switch(x){case"bestFit":{var V;const _=(V=te.map(z=>[z.placement,z.overflows.filter(H=>H>0).reduce((H,re)=>H+re,0)]).sort((z,H)=>z[1]-H[1])[0])==null?void 0:V[0];_&&(N=_);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function oC(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=Nr(r),h=Oa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Wo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof C=="number"&&(x=d==="end"?C*-1:C),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const sC=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 oC(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}}}}},lC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:M=>{let{x:A,y:R}=M;return{x:A,y:R}}},...h}=Wo(e,t),p={x:r,y:o},v=await Wu(t,h),m=Oa(Jr(s)),b=Lb(m);let x=p[b],C=p[m];if(c){const M=b==="y"?"top":"left",A=b==="y"?"bottom":"right",R=x+v[M],B=x-v[A];x=jd(R,x,B)}if(f){const M=m==="y"?"top":"left",A=m==="y"?"bottom":"right",R=C+v[M],B=C-v[A];C=jd(R,C,B)}const L=d.fn({...t,[b]:x,[m]:C});return{...L,data:{x:L.x-r,y:L.y-o}}}}},aC=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}=Wo(e,t),h=await Wu(t,d),p=Jr(r),v=Nr(r),m=Oa(r)==="y",{width:b,height:x}=o.floating;let C,L;p==="top"||p==="bottom"?(C=p,L=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,C=v==="end"?"top":"bottom");const M=x-h[C],A=b-h[L],R=!t.middlewareData.shift;let B=M,E=A;if(m){const U=b-h.left-h.right;E=v||R?fa(A,U):U}else{const U=x-h.top-h.bottom;B=v||R?fa(M,U):U}if(R&&!v){const U=No(h.left,0),oe=No(h.right,0),te=No(h.top,0),Z=No(h.bottom,0);m?E=b-2*(U!==0||oe!==0?U+oe:No(h.left,h.right)):B=x-2*(te!==0||Z!==0?te+Z:No(h.top,h.bottom))}await f({...t,availableWidth:E,availableHeight:B});const W=await s.getDimensions(c.floating);return b!==W.width||x!==W.height?{reset:{rects:!0}}:{}}}};function fr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){return fr(e).getComputedStyle(e)}const cm=Math.min,Zl=Math.max,au=Math.round;function Ob(e){const t=Xr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=au(r)!==s||au(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function so(e){return Pb(e)?(e.nodeName||"").toLowerCase():""}let Sc;function Rb(){if(Sc)return Sc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Sc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Sc):navigator.userAgent}function Yr(e){return e instanceof fr(e).HTMLElement}function eo(e){return e instanceof fr(e).Element}function Pb(e){return e instanceof fr(e).Node}function um(e){return typeof ShadowRoot>"u"?!1:e instanceof fr(e).ShadowRoot||e instanceof ShadowRoot}function qu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function cC(e){return["table","td","th"].includes(so(e))}function Ud(e){const t=/firefox/i.test(Rb()),r=Xr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function Ib(){return!/^((?!chrome|android).)*safari/i.test(Rb())}function Gh(e){return["html","body","#document"].includes(so(e))}function $b(e){return eo(e)?e:e.contextElement}const Db={x:1,y:1};function Rs(e){const t=$b(e);if(!Yr(t))return Db;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Ob(t);let f=(c?au(r.width):r.width)/o,d=(c?au(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function da(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=$b(e);let h=Db;t&&(o?eo(o)&&(h=Rs(o)):h=Rs(e));const p=d?fr(d):window,v=!Ib()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,C=f.height/h.y;if(d){const L=fr(d),M=o&&eo(o)?fr(o):o;let A=L.frameElement;for(;A&&o&&M!==L;){const R=Rs(A),B=A.getBoundingClientRect(),E=getComputedStyle(A);B.x+=(A.clientLeft+parseFloat(E.paddingLeft))*R.x,B.y+=(A.clientTop+parseFloat(E.paddingTop))*R.y,m*=R.x,b*=R.y,x*=R.x,C*=R.y,m+=B.x,b+=B.y,A=fr(A).frameElement}}return{width:x,height:C,top:b,right:m+x,bottom:b+C,left:m,x:m,y:b}}function to(e){return((Pb(e)?e.ownerDocument:e.document)||window.document).documentElement}function ju(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zb(e){return da(to(e)).left+ju(e).scrollLeft}function ha(e){if(so(e)==="html")return e;const t=e.assignedSlot||e.parentNode||um(e)&&e.host||to(e);return um(t)?t.host:t}function Fb(e){const t=ha(e);return Gh(t)?t.ownerDocument.body:Yr(t)&&qu(t)?t:Fb(t)}function cu(e,t){var r;t===void 0&&(t=[]);const o=Fb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=fr(o);return s?t.concat(c,c.visualViewport||[],qu(o)?o:[]):t.concat(o,cu(o))}function fm(e,t,r){return t==="viewport"?Yl((function(o,s){const c=fr(o),f=to(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=Ib();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):eo(t)?Yl((function(o,s){const c=da(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Yr(o)?Rs(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)):Yl((function(o){const s=to(o),c=ju(o),f=o.ownerDocument.body,d=Zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+zb(o);const v=-c.scrollTop;return Xr(f).direction==="rtl"&&(p+=Zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(to(e)))}function dm(e){return Yr(e)&&Xr(e).position!=="fixed"?e.offsetParent:null}function hm(e){const t=fr(e);let r=dm(e);for(;r&&cC(r)&&Xr(r).position==="static";)r=dm(r);return r&&(so(r)==="html"||so(r)==="body"&&Xr(r).position==="static"&&!Ud(r))?t:r||(function(o){let s=ha(o);for(;Yr(s)&&!Gh(s);){if(Ud(s))return s;s=ha(s)}return null})(e)||t}function uC(e,t,r){const o=Yr(t),s=to(t),c=da(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((so(t)!=="body"||qu(s))&&(f=ju(t)),Yr(t)){const h=da(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=zb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const fC={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=cu(p).filter((M=>eo(M)&&so(M)!=="body")),x=null;const C=Xr(p).position==="fixed";let L=C?ha(p):p;for(;eo(L)&&!Gh(L);){const M=Xr(L),A=Ud(L);(C?A||x:A||M.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=M:b=b.filter((R=>R!==L)),L=ha(L)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=fm(t,v,s);return p.top=Zl(m.top,p.top),p.right=cm(m.right,p.right),p.bottom=cm(m.bottom,p.bottom),p.left=Zl(m.left,p.left),p}),fm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Yr(r),c=to(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")&&((so(r)!=="body"||qu(c))&&(f=ju(r)),Yr(r))){const p=da(r);d=Rs(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:eo,getDimensions:function(e){return Yr(e)?Ob(e):e.getBoundingClientRect()},getOffsetParent:hm,getDocumentElement:to,getScale:Rs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||hm,c=this.getDimensions;return{reference:uC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xr(e).direction==="rtl"},dC=(e,t,r)=>{const o=new Map,s={platform:fC,...r},c={...s.platform,_c:o};return eC(e,t,{...s,platform:c})},no={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 pa(e,t){let r=no.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=no.themes[r.$extend]||{}:(r=null,o=no[t]):r=null;while(r);return o}function hC(e){const t=[e];let r=no.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=no.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function pm(e){const t=[e];let r=no.themes[e]||{};do r.$extend?(t.push(r.$extend),r=no.themes[r.$extend]||{}):r=null;while(r);return t}let ga=!1;if(typeof window<"u"){ga=!1;try{const e=Object.defineProperty({},"passive",{get(){ga=!0}});window.addEventListener("test",null,e)}catch{}}let Hb=!1;typeof window<"u"&&typeof navigator<"u"&&(Hb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),gm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},vm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function mm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function cd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Lo=null;const ym={};function bm(e){let t=ym[e];return t||(t=ym[e]=[]),t}let Vd=function(){};typeof window<"u"&&(Vd=window.Element);function ft(e){return function(t){return pa(t.theme,e)}}const ud="__floating-vue__popper",Wb=()=>ot({name:"VPopper",provide(){return{[ud]:{parentPopper:this}}},inject:{[ud]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Bb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,Vd,Boolean],default:ft("container")},boundary:{type:[String,Vd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ud])==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(sC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(rC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(lC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(iC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(tC({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(aC({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 dC(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),Lo&&this.instantMove&&Lo.instantMove&&Lo!==this.parentPopper){Lo.$_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&&(Lo=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 cd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...cu(this.$_referenceNode),...cu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of pm(this.theme))bm(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 cd(),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,mm(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of pm(this.theme)){const o=bm(r);mm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Lo===this&&(Lo=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 cd(),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,gm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],gm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,vm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],vm,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,ga?{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(Jl>=e.left&&Jl<=e.right&&Ql>=e.top&&Ql<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Jl-ji,o=Ql-Ui,s=t.left+t.width/2-ji+(t.top+t.height/2)-Ui+t.width+t.height,c=ji+r*s,f=Ui+o*s;return _c(ji,Ui,c,f,t.left,t.top,t.left,t.bottom)||_c(ji,Ui,c,f,t.left,t.top,t.right,t.top)||_c(ji,Ui,c,f,t.right,t.top,t.right,t.bottom)||_c(ji,Ui,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Hb){const e=ga?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>wm(t),e),document.addEventListener("touchend",t=>xm(t,!0),e)}else window.addEventListener("mousedown",e=>wm(e),!0),window.addEventListener("click",e=>xm(e,!1),!0);window.addEventListener("resize",vC)}function wm(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function xm(e,t){pC(e,t)}function pC(e,t){const r={};for(let o=nr.length-1;o>=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Sm(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&&Sm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Sm(e,t,r){return r.closeAllPopover||r.closePopover&&t||gC(e,r)&&!t}function gC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function vC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function _m(){for(let e=0;e<nr.length;e++)nr[e].hide()}let ji=0,Ui=0,Jl=0,Ql=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ji=Jl,Ui=Ql,Jl=e.clientX,Ql=e.clientY},ga?{passive:!0}:void 0);function _c(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 mC={extends:Wb()},Uu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function yC(e,t,r,o,s,c){return se(),me("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Sn(e.$slots,"default",v_(bb(e.slotData)))],2)}const bC=Uu(mC,[["render",yC]]);function wC(){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 Hc;function Gd(){Gd.init||(Gd.init=!0,Hc=wC()!==-1)}var Vu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Gd(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hc&&this.$el.appendChild(e),e.data="about:blank",Hc||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&&(!Hc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const xC=Fy();Dy("data-v-b329ee4c");const SC={class:"resize-observer",tabindex:"-1"};zy();const _C=xC((e,t,r,o,s,c)=>(se(),Je("div",SC)));Vu.render=_C;Vu.__scopeId="data-v-b329ee4c";Vu.__file="src/components/ResizeObserver.vue";const qb=(e="theme")=>({computed:{themeClass(){return hC(this[e])}}}),kC=ot({name:"VPopperContent",components:{ResizeObserver:Vu},mixins:[qb()],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}}}),TC=["id","aria-hidden","tabindex","data-popper-placement"],CC={ref:"inner",class:"v-popper__inner"},EC=ne("div",{class:"v-popper__arrow-outer"},null,-1),AC=ne("div",{class:"v-popper__arrow-inner"},null,-1),LC=[EC,AC];function MC(e,t,r,o,s,c){const f=Ho("ResizeObserver");return se(),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:tn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=qd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ne("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ne("div",{class:"v-popper__wrapper",style:tn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ne("div",CC,[e.mounted?(se(),me(nt,{key:0},[ne("div",null,[Sn(e.$slots,"default")]),e.handleResize?(se(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ue("",!0)],64)):Ue("",!0)],512),ne("div",{ref:"arrow",class:"v-popper__arrow-container",style:tn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},LC,4)],4)],46,TC)}const jb=Uu(kC,[["render",MC]]),Ub={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 Kd=function(){};typeof window<"u"&&(Kd=window.Element);const NC=ot({name:"VPopperWrapper",components:{Popper:bC,PopperContent:jb},mixins:[Ub,qb("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,Kd,Boolean],default:void 0},boundary:{type:[String,Kd],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 OC(e,t,r,o,s,c){const f=Ho("PopperContent"),d=Ho("Popper");return se(),Je(d,bi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:C,handleResize:L,onResize:M,classes:A,result:R})=>[Sn(e.$slots,"default",{shown:p,show:x,hide:C}),Re(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":L,classes:A,result:R,onHide:C,onResize:M},{default:it(()=>[Sn(e.$slots,"popper",{shown:p,hide:C})]),_: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 Kh=Uu(NC,[["render",OC]]);({...Kh});({...Kh});const RC={...Kh,name:"VTooltip",vPopperTheme:"tooltip"},PC=ot({name:"VTooltipDirective",components:{Popper:Wb(),PopperContent:jb},mixins:[Ub],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>pa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>pa(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}}}),IC=["innerHTML"],$C=["textContent"];function DC(e,t,r,o,s,c){const f=Ho("PopperContent"),d=Ho("Popper");return se(),Je(d,bi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:C,onResize:L,classes:M,result:A})=>[Re(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":C,classes:M,result:A,onHide:x,onResize:L},{default:it(()=>[e.html?(se(),me("div",{key:0,innerHTML:e.finalContent},null,8,IC)):(se(),me("div",{key:1,textContent:$e(e.finalContent)},null,8,$C))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const zC=Uu(PC,[["render",DC]]),Vb="v-popper--has-tooltip";function FC(e,t){let r=e.placement;if(!r&&t)for(const o of Bb)t[o]&&(r=o);return r||(r=pa(e.theme||"tooltip","placement")),r}function Gb(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=FC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let fd,va,HC=0;function BC(){if(fd)return;va=Ve([]),fd=Ab({name:"VTooltipDirectiveApp",setup(){return{directives:va}},render(){return this.directives.map(t=>Na(zC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),fd.mount(e)}function Kb(e,t,r){BC();const o=Ve(Gb(e,t,r)),s=Ve(!1),c={id:HC++,options:o,shown:s};return va.value.push(c),e.classList&&e.classList.add(Vb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Xh(e){if(e.$_popper){const t=va.value.indexOf(e.$_popper.item);t!==-1&&va.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Vb)}function km(e,{value:t,modifiers:r}){const o=Gb(e,t,r);if(!o.content||pa(o.theme||"tooltip","disabled"))Xh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Kb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const WC={beforeMount:km,updated:km,beforeUnmount(e){Xh(e)}},qC=WC,Xb=RC,Yb={options:no};function Yh(e){return py()?(x_(e),!0):!1}const dd=new WeakMap,jC=(...e)=>{var t;const r=e[0],o=(t=Ci())==null?void 0:t.proxy;if(o==null&&!eb())throw new Error("injectLocal must be called in setup");return o&&dd.has(o)&&r in dd.get(o)?dd.get(o)[r]:wn(...e)},UC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const VC=Object.prototype.toString,GC=e=>VC.call(e)==="[object Object]",uu=()=>{};function Zb(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 Jb=e=>e();function Qb(e,t={}){let r,o,s=uu;const c=h=>{clearTimeout(h),s(),s=uu};let f;return h=>{const p=Vt(e),v=Vt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function KC(e=Jb,t={}){const{initialState:r="active"}=t,o=qo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Hs(o),pause:s,resume:c,eventFilter:f}}function Tm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Cm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function XC(e){return Ci()}function hd(e){return Array.isArray(e)?e:[e]}function qo(...e){if(e.length!==1)return G_(...e);const t=e[0];return typeof t=="function"?Hs(Ny(()=>({get:t,set:uu}))):Ve(t)}function kc(e,t=200,r={}){return Zb(Qb(t,r),e)}function ew(e,t,r={}){const{eventFilter:o=Jb,...s}=r;return _t(e,Zb(o,t),s)}function tw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=KC(o,{initialState:s});return{stop:ew(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Zh(e,t=!0,r){XC()?fo(e,r):t?e():Ct(e)}function Xd(e,t=!1){function r(m,{flush:b="sync",deep:x=!1,timeout:C,throwOnTimeout:L}={}){let M=null;const R=[new Promise(B=>{M=_t(e,E=>{m(E)!==t&&(M?M():Ct(()=>M?.()),B(E))},{flush:b,deep:x,immediate:!0})})];return C!=null&&R.push(Tm(C,L).then(()=>Vt(e)).finally(()=>M?.())),Promise.race(R)}function o(m,b){if(!Ot(m))return r(E=>E===m,b);const{flush:x="sync",deep:C=!1,timeout:L,throwOnTimeout:M}=b??{};let A=null;const B=[new Promise(E=>{A=_t([e,m],([W,U])=>{t!==(W===U)&&(A?A():Ct(()=>A?.()),E(W))},{flush:x,deep:C,immediate:!0})})];return L!=null&&B.push(Tm(L,M).then(()=>Vt(e)).finally(()=>(A?.(),Vt(e)))),Promise.race(B)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(x=>{const C=Array.from(x);return C.includes(m)||C.includes(Vt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let x=-1;return r(()=>(x+=1,x>=m),b)}return Array.isArray(Vt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Xd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Xd(e,!t)}}}function Em(e){return Xd(e)}function YC(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ot(e),c=nn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Vt(r);return c.value=c.value===h?Vt(o):h,c.value}}return s?f:[c,f]}function Jh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return ew(e,t,{...c,eventFilter:Qb(o,{maxWait:s})})}function ZC(e,t,r){return _t(e,t,{...r,immediate:!0})}function JC(e,t,r){const o=_t(e,(...s)=>(Ct(()=>o()),t(...s)),r);return o}function QC(e,t,r){let o;Ot(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=uu}=o,h=nn(!s),p=f?nn(t):Ve(t);let v=0;return Bh(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const C=await e(L=>{m(()=>{c&&(c.value=!1),x||L()})});b===v&&(p.value=C)}catch(C){d(C)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Se(()=>(h.value=!0,p.value)):p}const Pr=UC?window:void 0;function fu(e){var t;const r=Vt(e);return(t=r?.$el)!=null?t:r}function lo(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=Se(()=>{const d=hd(Vt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=ZC(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>fu(p)))!=null?h:[Pr].filter(p=>p!=null),hd(Vt(s.value?e[1]:e[0])),hd(J(s.value?e[2]:e[1])),Vt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const m=GC(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(C=>o(b,x,C,m)))))},{flush:"post"}),f=()=>{c(),r()};return Yh(r),f}function eE(){const e=nn(!1),t=Ci();return t&&fo(()=>{e.value=!0},t),e}function nw(e){const t=eE();return Se(()=>(t.value,!!e()))}function tE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function rw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Pr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tE(t);return lo(s,c,v=>{v.repeat&&Vt(d)||h(v)&&r(v)},f)}function nE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Pr,once:c=!1}=t,f=nn(!1),d=Se(()=>o?1e3/Vt(o):null);let h=0,p=null;function v(x){if(!f.value||!s)return;h||(h=x);const C=x-h;if(d.value&&C<d.value){p=s.requestAnimationFrame(v);return}if(h=x,e({delta:C,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Yh(b),{isActive:Hs(f),pause:b,resume:m}}const rE=Symbol("vueuse-ssr-width");function iE(){const e=eb()?jC(rE,null):null;return typeof e=="number"?e:void 0}function iw(e,t={}){const{window:r=Pr,ssrWidth:o=iE()}=t,s=nw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=nn(typeof o=="number"),f=nn(),d=nn(!1),h=p=>{d.value=p.matches};return Bh(()=>{if(c.value){c.value=!s.value;const p=Vt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(b||x);return b&&C&&(C=o>=Cm(b[1])),x&&C&&(C=o<=Cm(x[1])),m?!C:C});return}s.value&&(f.value=r.matchMedia(Vt(e)),d.value=f.value.matches)}),lo(f,"change",h,{passive:!0}),Se(()=>d.value)}const Tc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cc="__vueuse_ssr_handlers__",oE=sE();function sE(){return Cc in Tc||(Tc[Cc]=Tc[Cc]||{}),Tc[Cc]}function ow(e,t){return oE[e]||t}function lE(e){return iw("(prefers-color-scheme: dark)",e)}function aE(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()}},Am="vueuse-storage";function sw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Pr,eventFilter:b,onError:x=V=>{console.error(V)},initOnMounted:C}=o,L=(v?nn:Ve)(typeof t=="function"?t():t),M=Se(()=>Vt(e));if(!r)try{r=ow("getDefaultStorage",()=>{var V;return(V=Pr)==null?void 0:V.localStorage})()}catch(V){x(V)}if(!r)return L;const A=Vt(t),R=aE(A),B=(s=o.serializer)!=null?s:cE[R],{pause:E,resume:W}=tw(L,()=>oe(L.value),{flush:c,deep:f,eventFilter:b});_t(M,()=>Z(),{flush:c}),m&&d&&Zh(()=>{r instanceof Storage?lo(m,"storage",Z,{passive:!0}):lo(m,Am,K),C&&Z()}),C||Z();function U(V,P){if(m){const O={key:M.value,oldValue:V,newValue:P,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Am,{detail:O}))}}function oe(V){try{const P=r.getItem(M.value);if(V==null)U(P,null),r.removeItem(M.value);else{const O=B.write(V);P!==O&&(r.setItem(M.value,O),U(P,O))}}catch(P){x(P)}}function te(V){const P=V?V.newValue:r.getItem(M.value);if(P==null)return h&&A!=null&&r.setItem(M.value,B.write(A)),A;if(!V&&p){const O=B.read(P);return typeof p=="function"?p(O,A):R==="object"&&!Array.isArray(O)?{...A,...O}:O}else return typeof P!="string"?P:B.read(P)}function Z(V){if(!(V&&V.storageArea!==r)){if(V&&V.key==null){L.value=A;return}if(!(V&&V.key!==M.value)){E();try{V?.newValue!==B.write(L.value)&&(L.value=te(V))}catch(P){x(P)}finally{V?Ct(W):W()}}}}function K(V){Z(V.detail)}return L}const uE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Pr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=lE({window:s}),x=Se(()=>b.value?"dark":"light"),C=h||(f==null?qo(o):sw(f,o,c,{window:s,listenToStorageChanges:d})),L=Se(()=>C.value==="auto"?x.value:C.value),M=ow("updateHTMLAttrs",(E,W,U)=>{const oe=typeof E=="string"?s?.document.querySelector(E):fu(E);if(!oe)return;const te=new Set,Z=new Set;let K=null;if(W==="class"){const P=U.split(/\s/g);Object.values(m).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?te.add(O):Z.add(O)})}else K={key:W,value:U};if(te.size===0&&Z.size===0&&K===null)return;let V;v&&(V=s.document.createElement("style"),V.appendChild(document.createTextNode(uE)),s.document.head.appendChild(V));for(const P of te)oe.classList.add(P);for(const P of Z)oe.classList.remove(P);K&&oe.setAttribute(K.key,K.value),v&&(s.getComputedStyle(V).opacity,document.head.removeChild(V))});function A(E){var W;M(t,r,(W=m[E])!=null?W:E)}function R(E){e.onChanged?e.onChanged(E,A):A(E)}_t(L,R,{flush:"post",immediate:!0}),Zh(()=>R(L.value));const B=Se({get(){return p?C.value:L.value},set(E){C.value=E}});return Object.assign(B,{store:C,system:x,state:L})}function dE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fE({...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=Se(()=>o.system.value);return Se({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function lw(e,t,r={}){const{window:o=Pr,...s}=r;let c;const f=nw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Se(()=>{const m=Vt(e);return Array.isArray(m)?m.map(b=>fu(b)):[fu(m)]}),p=_t(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 Yh(v),{isSupported:f,stop:v}}function Gu(e,t,r={}){const{window:o=Pr}=r;return sw(e,t,o?.localStorage,r)}function hE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Pr}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const B=d.location.hash||"",E=B.indexOf("?");return E>0?B.slice(E):""}else return(d.location.hash||"").replace(/^#/,"")}function v(B){const E=B.toString();if(e==="history")return`${E?`?${E}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${E?`#${E}`:""}`;const W=d.location.hash||"#",U=W.indexOf("?");return U>0?`${d.location.search||""}${W.slice(0,U)}${E?`?${E}`:""}`:`${d.location.search||""}${W}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(B){const E=new Set(Object.keys(h));for(const W of B.keys()){const U=B.getAll(W);h[W]=U.length>1?U:B.get(W)||"",E.delete(W)}Array.from(E).forEach(W=>delete h[W])}const{pause:x,resume:C}=tw(h,()=>{const B=new URLSearchParams("");Object.keys(h).forEach(E=>{const W=h[E];Array.isArray(W)?W.forEach(U=>B.append(E,U)):o&&W==null||s&&!W?B.delete(E):B.set(E,W)}),L(B,!1)},{deep:!0});function L(B,E){x(),E&&b(B),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(B)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(B)),C()}function M(){c&&L(m(),!0)}const A={passive:!0};lo(d,"popstate",M,A),e!=="history"&&lo(d,"hashchange",M,A);const R=m();return R.keys().next().value?b(R):Object.assign(h,r),h}function aw(e={}){const{window:t=Pr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=nn(r),h=nn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:x}=t.visualViewport;d.value=Math.round(m*x),h.value=Math.round(b*x)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Zh(p);const v={passive:!0};if(lo("resize",p,v),t&&f==="visual"&&t.visualViewport&&lo(t.visualViewport,"resize",p,v),s){const m=iw("(orientation: portrait)");_t(m,()=>p())}return{width:d,height:h}}const Lm={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=yk(),c=Ve([]),f=Se(()=>c.value.reduce(($,G)=>($[~~G.id]=G)&&$,{})),d=Se(()=>c.value.length),h=Ve(null),p=Ve(!1),v=Ve({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ve({splitter:null,timeoutId:null}),b=Se(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),x=()=>{document.addEventListener("mousemove",M,{passive:!1}),document.addEventListener("mouseup",A),"ontouchstart"in window&&(document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",A))},C=()=>{document.removeEventListener("mousemove",M,{passive:!1}),document.removeEventListener("mouseup",A),"ontouchstart"in window&&(document.removeEventListener("touchmove",M,{passive:!1}),document.removeEventListener("touchend",A))},L=($,G)=>{const Q=$.target.closest(".splitpanes__splitter");if(Q){const{left:le,top:ie}=Q.getBoundingClientRect(),{clientX:I,clientY:F}="ontouchstart"in window&&$.touches?$.touches[0]:$;v.value.cursorOffset=o.horizontal?F-ie:I-le}x(),v.value.mouseDown=!0,v.value.activeSplitter=G},M=$=>{v.value.mouseDown&&($.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{oe(W($)),ze("resize",{event:$},!0)}))},A=$=>{v.value.dragging&&(window.getSelection().removeAllRanges(),ze("resized",{event:$},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},R=($,G)=>{"ontouchstart"in window&&($.preventDefault(),m.value.splitter===G?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,B($,G),m.value.splitter=null):(m.value.splitter=G,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500))),v.value.dragging||ze("splitter-click",{event:$,index:G},!0)},B=($,G)=>{if(ze("splitter-dblclick",{event:$,index:G},!0),o.maximizePanes){let Q=0;c.value=c.value.map((le,ie)=>(le.size=ie===G?le.max:le.min,ie!==G&&(Q+=le.min),le)),c.value[G].size-=Q,ze("pane-maximize",{event:$,index:G,pane:c.value[G]}),ze("resized",{event:$,index:G},!0)}},E=($,G)=>{ze("pane-click",{event:$,index:f.value[G].index,pane:f.value[G]})},W=$=>{const G=h.value.getBoundingClientRect(),{clientX:Q,clientY:le}="ontouchstart"in window&&$.touches?$.touches[0]:$;return{x:Q-(o.horizontal?0:v.value.cursorOffset)-G.left,y:le-(o.horizontal?v.value.cursorOffset:0)-G.top}},U=$=>{$=$[o.horizontal?"y":"x"];const G=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&($=G-$),$*100/G},oe=$=>{const G=v.value.activeSplitter;let Q={prevPanesSize:Z(G),nextPanesSize:K(G),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:Q.prevPanesSize),ie=100-(o.pushOtherPanes?0:Q.nextPanesSize),I=Math.max(Math.min(U($),ie),le);let F=[G,G+1],X=c.value[F[0]]||null,ue=c.value[F[1]]||null;const he=X.max<100&&I>=X.max+Q.prevPanesSize,de=ue.max<100&&I<=100-(ue.max+K(G+1));if(he||de){he?(X.size=X.max,ue.size=Math.max(100-X.max-Q.prevPanesSize-Q.nextPanesSize,0)):(X.size=Math.max(100-ue.max-Q.prevPanesSize-K(G+1),0),ue.size=ue.max);return}if(o.pushOtherPanes){const _e=te(Q,I);if(!_e)return;({sums:Q,panesToResize:F}=_e),X=c.value[F[0]]||null,ue=c.value[F[1]]||null}X!==null&&(X.size=Math.min(Math.max(I-Q.prevPanesSize-Q.prevReachedMinPanes,X.min),X.max)),ue!==null&&(ue.size=Math.min(Math.max(100-I-Q.nextPanesSize-Q.nextReachedMinPanes,ue.min),ue.max))},te=($,G)=>{const Q=v.value.activeSplitter,le=[Q,Q+1];return G<$.prevPanesSize+c.value[le[0]].min&&(le[0]=V(Q).index,$.prevReachedMinPanes=0,le[0]<Q&&c.value.forEach((ie,I)=>{I>le[0]&&I<=Q&&(ie.size=ie.min,$.prevReachedMinPanes+=ie.min)}),$.prevPanesSize=Z(le[0]),le[0]===void 0)?($.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ie,I)=>{I>0&&I<=Q&&(ie.size=ie.min,$.prevReachedMinPanes+=ie.min)}),c.value[le[1]].size=100-$.prevReachedMinPanes-c.value[0].min-$.prevPanesSize-$.nextPanesSize,null):G>100-$.nextPanesSize-c.value[le[1]].min&&(le[1]=P(Q).index,$.nextReachedMinPanes=0,le[1]>Q+1&&c.value.forEach((ie,I)=>{I>Q&&I<le[1]&&(ie.size=ie.min,$.nextReachedMinPanes+=ie.min)}),$.nextPanesSize=K(le[1]-1),le[1]===void 0)?($.nextReachedMinPanes=0,c.value.forEach((ie,I)=>{I<d.value-1&&I>=Q+1&&(ie.size=ie.min,$.nextReachedMinPanes+=ie.min)}),c.value[le[0]].size=100-$.prevPanesSize-K(le[0]-1),null):{sums:$,panesToResize:le}},Z=$=>c.value.reduce((G,Q,le)=>G+(le<$?Q.size:0),0),K=$=>c.value.reduce((G,Q,le)=>G+(le>$+1?Q.size:0),0),V=$=>[...c.value].reverse().find(G=>G.index<$&&G.size>G.min)||{},P=$=>c.value.find(G=>G.index>$+1&&G.size>G.min)||{},O=()=>{var $;const G=Array.from((($=h.value)==null?void 0:$.children)||[]);for(const Q of G){const le=Q.classList.contains("splitpanes__pane"),ie=Q.classList.contains("splitpanes__splitter");!le&&!ie&&(Q.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},N=($,G,Q=!1)=>{const le=$-1,ie=document.createElement("div");ie.classList.add("splitpanes__splitter"),Q||(ie.onmousedown=I=>L(I,le),typeof window<"u"&&"ontouchstart"in window&&(ie.ontouchstart=I=>L(I,le)),ie.onclick=I=>R(I,le+1)),ie.ondblclick=I=>B(I,le+1),G.parentNode.insertBefore(ie,G)},_=$=>{$.onmousedown=void 0,$.onclick=void 0,$.ondblclick=void 0,$.remove()},z=()=>{var $;const G=Array.from((($=h.value)==null?void 0:$.children)||[]);for(const le of G)le.className.includes("splitpanes__splitter")&&_(le);let Q=0;for(const le of G)le.className.includes("splitpanes__pane")&&(!Q&&o.firstSplitter?N(Q,le,!0):Q&&N(Q,le),Q++)},H=({uid:$,...G})=>{const Q=f.value[$];for(const[le,ie]of Object.entries(G))Q[le]=ie},re=$=>{var G;let Q=-1;Array.from(((G=h.value)==null?void 0:G.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&Q++,le.isSameNode($.el))),c.value.splice(Q,0,{...$,index:Q}),c.value.forEach((le,ie)=>le.index=ie),p.value&&Ct(()=>{z(),we({addedPane:c.value[Q]}),ze("pane-add",{pane:c.value[Q]})})},ve=$=>{const G=c.value.findIndex(le=>le.id===$);c.value[G].el=null;const Q=c.value.splice(G,1)[0];c.value.forEach((le,ie)=>le.index=ie),Ct(()=>{z(),ze("pane-remove",{pane:Q}),we({removedPane:{...Q}})})},we=($={})=>{!$.addedPane&&!$.removedPane?je():c.value.some(G=>G.givenSize!==null||G.min||G.max<100)?Qe($):Pe(),p.value&&ze("resized")},Pe=()=>{const $=100/d.value;let G=0;const Q=[],le=[];for(const ie of c.value)ie.size=Math.max(Math.min($,ie.max),ie.min),G-=ie.size,ie.size>=ie.max&&Q.push(ie.id),ie.size<=ie.min&&le.push(ie.id);G>.1&&Ye(G,Q,le)},je=()=>{let $=100;const G=[],Q=[];let le=0;for(const I of c.value)$-=I.size,I.givenSize!==null&&le++,I.size>=I.max&&G.push(I.id),I.size<=I.min&&Q.push(I.id);let ie=100;if($>.1){for(const I of c.value)I.givenSize===null&&(I.size=Math.max(Math.min($/(d.value-le),I.max),I.min)),ie-=I.size;ie>.1&&Ye(ie,G,Q)}},Qe=({addedPane:$,removedPane:G}={})=>{let Q=100/d.value,le=0;const ie=[],I=[];($?.givenSize??null)!==null&&(Q=(100-$.givenSize)/(d.value-1));for(const F of c.value)le-=F.size,F.size>=F.max&&ie.push(F.id),F.size<=F.min&&I.push(F.id);if(!(Math.abs(le)<.1)){for(const F of c.value)$?.givenSize!==null&&$?.id===F.id||(F.size=Math.max(Math.min(Q,F.max),F.min)),le-=F.size,F.size>=F.max&&ie.push(F.id),F.size<=F.min&&I.push(F.id);le>.1&&Ye(le,ie,I)}},Ye=($,G,Q)=>{let le;$>0?le=$/(d.value-G.length):le=$/(d.value-Q.length),c.value.forEach((ie,I)=>{if($>0&&!G.includes(ie.id)){const F=Math.max(Math.min(ie.size+le,ie.max),ie.min),X=F-ie.size;$-=X,ie.size=F}else if(!Q.includes(ie.id)){const F=Math.max(Math.min(ie.size+le,ie.max),ie.min),X=F-ie.size;$-=X,ie.size=F}}),Math.abs($)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},ze=($,G=void 0,Q=!1)=>{const le=G?.index??v.value.activeSplitter??null;r($,{...G,...le!==null&&{index:le},...Q&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ie=>({min:ie.min,max:ie.max,size:ie.size}))})};_t(()=>o.firstSplitter,()=>z()),fo(()=>{O(),z(),we(),ze("ready"),p.value=!0}),La(()=>p.value=!1);const Me=()=>{var $;return Na("div",{ref:h,class:b.value},($=s.default)==null?void 0:$.call(s))};return Er("panes",c),Er("indexedPanes",f),Er("horizontal",Se(()=>o.horizontal)),Er("requestUpdate",H),Er("onPaneAdd",re),Er("onPaneRemove",ve),Er("onPaneClick",E),($,G)=>(se(),Je(Pd(Me)))}},Ec={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=wn("requestUpdate"),s=wn("onPaneAdd"),c=wn("horizontal"),f=wn("onPaneRemove"),d=wn("onPaneClick"),h=(t=Ci())==null?void 0:t.uid,p=wn("indexedPanes"),v=Se(()=>p.value[h]),m=Ve(null),b=Se(()=>{const M=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(M,C.value),x.value)}),x=Se(()=>{const M=parseFloat(r.minSize);return isNaN(M)?0:M}),C=Se(()=>{const M=parseFloat(r.maxSize);return isNaN(M)?100:M}),L=Se(()=>{var M;return`${c.value?"height":"width"}: ${(M=v.value)==null?void 0:M.size}%`});return _t(()=>b.value,M=>o({uid:h,size:M})),_t(()=>x.value,M=>o({uid:h,min:M})),_t(()=>C.value,M=>o({uid:h,max:M})),fo(()=>{s({id:h,el:m.value,min:x.value,max:C.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),La(()=>f(h)),(M,A)=>(se(),me("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:A[0]||(A[0]=R=>J(d)(R,M._.uid)),style:tn(L.value)},[Sn(M.$slots,"default")],4))}},tr=Ve([414,896]);function cw(e){return e!=null}function Qh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const pE=/^[A-Za-z]:\//;function gE(e=""){return e&&e.replace(/\\/g,"/").replace(pE,t=>t.toUpperCase())}const vE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function mE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const uw=function(...e){e=e.map(o=>gE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:mE();!s||s.length===0||(t=`${s}/${t}`,r=Mm(s))}return t=yE(t,!r),r&&!Mm(t)?`/${t}`:t.length>0?t:"."};function yE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Mm=function(e){return vE.test(e)};var bE=44,Nm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wE=new Uint8Array(64),fw=new Uint8Array(128);for(let e=0;e<Nm.length;e++){const t=Nm.charCodeAt(e);wE[e]=t,fw[t]=e}function Il(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 Om(e,t){return e.pos>=t?!1:e.peek()!==bE}var xE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function SE(e){const{length:t}=e,r=new xE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let x;s=Il(r,s),s<b&&(m=!1),b=s,Om(r,p)?(c=Il(r,c),f=Il(r,f),d=Il(r,d),Om(r,p)?(h=Il(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||_E(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function _E(e){e.sort(kE)}function kE(e,t){return e[0]-t[0]}var Ku=0,TE=1,CE=2,EE=3,AE=4,du=!1;function LE(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Ku]-t;if(c===0)return du=!0,s;c<0?r=s+1:o=s-1}return du=!1,r-1}function ME(e,t,r){for(let o=r+1;o<e.length&&e[o][Ku]===t;r=o++);return r}function NE(e,t,r){for(let o=r-1;o>=0&&e[o][Ku]===t;r=o--);return r}function OE(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 du=f!==-1&&e[f][Ku]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=LE(e,t,d,h)}var RE="`line` must be greater than 0 (lines start at line 1)",PE="`column` must be greater than or equal to 0 (columns start at column 0)",Rm=-1,IE=1;function $E(e){var t;return(t=e)._decoded||(t._decoded=SE(e._encoded))}function DE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(RE);if(o<0)throw new Error(PE);const c=$E(e);if(r>=c.length)return Ac(null,null,null,null);const f=c[r],d=zE(f,e._decodedMemo,r,o,s||IE);if(d===-1)return Ac(null,null,null,null);const h=f[d];if(h.length===1)return Ac(null,null,null,null);const{names:p,resolvedSources:v}=e;return Ac(v[h[TE]],h[CE]+1,h[EE],h.length===5?p[h[AE]]:null)}function Ac(e,t,r,o){return{source:e,line:t,column:r,name:o}}function zE(e,t,r,o,s){let c=OE(e,o,t,r);return du?c=(s===Rm?ME:NE)(e,o,c):s===Rm&&c++,c===-1||c===e.length?-1:c}const dw=/^\s*at .*(?:\S:\d+|\(native\))/m,FE=/^(?:eval@)?(?:\[native code\])?$/,HE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function hw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function BE(e){let t=e.trim();if(FE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=hw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function WE(e){let t=e.trim();if(!dw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=hw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:uw(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function qE(e,t={}){const{ignoreStackEntries:r=HE}=t;return(dw.test(e)?UE(e):jE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Pm(r,s.file)?null:s;const d=new VE(f,s.file),h=KE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),Pm(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function Pm(e,t){return e.some(r=>t.match(r))}function jE(e){return e.split(`
18
18
  `).map(t=>BE(t)).filter(cw)}function UE(e){return e.split(`
19
- `).map(t=>WE(t)).filter(cw)}class VE{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=GE(),this.url=r,this.resolvedSources=(c||[]).map(f=>uw(f||"",r))}}function GE(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function KE(e,t){const r=DE(e,t);return r.column==null?null:r}const XE=/^[A-Za-z]:\//;function YE(e=""){return e&&e.replace(/\\/g,"/").replace(XE,t=>t.toUpperCase())}const ZE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Im=/^\/([A-Za-z]:)?$/;function JE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const $m=function(...e){e=e.map(o=>YE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:JE();!s||s.length===0||(t=`${s}/${t}`,r=Dm(s))}return t=QE(t,!r),r&&!Dm(t)?`/${t}`:t.length>0?t:"."};function QE(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 Dm=function(e){return ZE.test(e)},pw=function(e,t){const r=$m(e).replace(Im,"$1").split("/"),o=$m(t).replace(Im,"$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 eA(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 gw(e,t,r,o){const s=pw(t,e),c={id:tA(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 tA(e,t){return eA(`${e}${t||""}`)}function js(e){return e.type==="test"}function vw(e){const t=[],r=Qh(e);for(const o of r)if(js(o))t.push(o);else for(const s of o.tasks)if(js(s))t.push(s);else{const c=vw(s);for(const f of c)t.push(f)}return t}function ep(e=[]){return Qh(e).flatMap(t=>js(t)?[t]:[t,...ep(t.tasks)])}function nA(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const zm="q",Fm="s",rA=6e4;function mw(e){return e}const iA=mw,{clearTimeout:Hm,setTimeout:oA}=globalThis,sA=Math.random.bind(Math);function lA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=mw,deserialize:d=iA,resolver:h,bind:p="rpc",timeout:v=rA}=t;let m=!1;const b=new Map;let x;async function C(te,Z,K,V){if(m)throw new Error(`[birpc] rpc is closed, cannot call "${te}"`);const P={m:te,a:Z,t:zm};V&&(P.o=!0);const O=async we=>r(f(we));if(K){await O(P);return}if(x)try{await x}finally{x=void 0}let{promise:N,resolve:_,reject:z}=aA();const H=uA();P.i=H;let re;async function ve(we=P){return v>=0&&(re=oA(()=>{try{if(t.onTimeoutError?.(te,Z)!==!0)throw new Error(`[birpc] timeout on calling "${te}"`)}catch(Pe){z(Pe)}b.delete(H)},v),typeof re=="object"&&(re=re.unref?.())),b.set(H,{resolve:_,reject:z,timeoutId:re,method:te}),await O(we),N}try{t.onRequest?await t.onRequest(P,ve,_):await ve()}catch(we){if(t.onGeneralError?.(we)!==!0)throw we;return}finally{Hm(re),b.delete(H)}return N}const W={$call:(te,...Z)=>C(te,Z,!1),$callOptional:(te,...Z)=>C(te,Z,!1,!0),$callEvent:(te,...Z)=>C(te,Z,!0),$callRaw:te=>C(te.method,te.args,te.event,te.optional),$rejectPendingCalls:U,get $closed(){return m},$close:B,$functions:e},E=new Proxy({},{get(te,Z){if(Object.prototype.hasOwnProperty.call(W,Z))return W[Z];if(Z==="then"&&!c.includes("then")&&!("then"in e))return;const K=(...P)=>C(Z,P,!0);if(c.includes(Z))return K.asEvent=K,K;const V=(...P)=>C(Z,P,!1);return V.asEvent=K,V}});function B(te){m=!0,b.forEach(({reject:Z,method:K})=>{const V=new Error(`[birpc] rpc is closed, cannot call "${K}"`);if(te)return te.cause??=V,Z(te);Z(V)}),b.clear(),s(oe)}function U(te){const K=Array.from(b.values()).map(({method:V,reject:P})=>te?te({method:V,reject:P}):P(new Error(`[birpc]: rejected pending call "${V}".`)));return b.clear(),K}async function oe(te,...Z){let K;try{K=d(te)}catch(V){if(t.onGeneralError?.(V)!==!0)throw V;return}if(K.t===zm){const{m:V,a:P,o:O}=K;let N,_,z=await(h?h(V,e[V]):e[V]);if(O&&(z||=()=>{}),!z)_=new Error(`[birpc] function "${V}" not found`);else try{N=await z.apply(p==="rpc"?E:e,P)}catch(H){_=H}if(K.i){if(_&&t.onError&&t.onError(_,V,P),_&&t.onFunctionError&&t.onFunctionError(_,V,P)===!0)return;if(!_)try{await r(f({t:Fm,i:K.i,r:N}),...Z);return}catch(H){if(_=H,t.onGeneralError?.(H,V,P)!==!0)throw H}try{await r(f({t:Fm,i:K.i,e:_}),...Z)}catch(H){if(t.onGeneralError?.(H,V,P)!==!0)throw H}}}else{const{i:V,r:P,e:O}=K,N=b.get(V);N&&(Hm(N.timeoutId),O?N.reject(O):N.resolve(P)),b.delete(V)}}return x=o(oe),E}function aA(){let e,t;return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const cA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function uA(e=21){let t="",r=e;for(;r--;)t+=cA[sA()*64|0];return t}const{parse:yw,stringify:fA}=JSON,{keys:dA}=Object,ma=String,bw="string",Bm={},hu="object",ww=(e,t)=>t,hA=e=>e instanceof ma?ma(e):e,pA=(e,t)=>typeof t===bw?new ma(t):t,xw=(e,t,r,o)=>{const s=[];for(let c=dA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ma){const v=e[p];typeof v===hu&&!t.has(v)?(t.add(v),r[h]=Bm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Bm&&(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,xw.apply(null,h))}return r},Wm=(e,t,r)=>{const o=ma(t.push(r)-1);return e.set(r,o),o},Yd=(e,t)=>{const r=yw(e,pA).map(hA),o=r[0],s=t||ww,c=typeof o===hu&&o?xw(r,new Set,o,s):o;return s.call({"":c},"",c)},Sw=(e,t,r)=>{const o=t&&typeof t===hu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||ww,s=new Map,c=[],f=[];let d=+Wm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=fA(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 hu:if(b===null)return b;case bw:return s.get(b)||Wm(s,c,b)}return b}},gA=e=>yw(Sw(e));class _w{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=gw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function vA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new _w,waitForConnection:A,reconnect:L},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate(R,W){r.onTestAnnotate?.(R,W)},onSpecsCollected(R,W){R?.forEach(([E,B])=>{v.state.clearFiles({config:E},[B])}),r.onSpecsCollected?.(R,W)},onPathsCollected(R){v.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){v.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,W){v.state.updateTasks(R),r.onTaskUpdate?.(R,W)},onUserConsoleLog(R){v.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,W,E,B){r.onFinished?.(R,W,E,B)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:R=>v.ws.send(R),on:R=>m=R,serialize:R=>Sw(R,(W,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:Yd,timeout:-1};v.rpc=lA(b,x);let C;function L(R=!1){R&&(p=c),v.ws=new h(e),M()}function M(){C=new Promise((R,W)=>{const E=setTimeout(()=>{W(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();v.ws.OPEN===v.ws.readyState&&R(),v.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(E)})}),v.ws.addEventListener("message",R=>{m(R.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}M();function A(){return C}return v}const Zd=nn([]),Zn=nn([]),Ir=Gu("vitest-ui_task-tree-opened",[],{shallow:!0}),pu=Se(()=>new Set(Ir.value)),hn=Gu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ve(hn.value.search),mA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kw(e){return e.replace(/[&<>"']/g,t=>mA[t])}const yA=Se(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${kw(e)})`,"gi"):null}),Tw=Se(()=>Un.value.trim()!==""),Ze=ir({failed:hn.value.failed,success:hn.value.success,skipped:hn.value.skipped,onlyTests:hn.value.onlyTests}),Jd=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped)),Xu=nn([]),Us=Ve(!1),qm=Se(()=>{const e=hn.value.expandAll;return Ir.value.length>0?e!==!0:e!==!1}),bA=Se(()=>{const e=Tw.value,t=Jd.value,r=Ze.onlyTests,o=Ee.summary.filesFailed,s=Ee.summary.filesSuccess,c=Ee.summary.filesSkipped,f=Ee.summary.filesRunning,d=Xu.value;return Ee.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ra(e){return Object.hasOwn(e,"tasks")}function wA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Cw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function Ew(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function xA(e){return e.type==="test"}function SA(e){return e.mode==="run"&&e.type==="test"}function $n(e){return e.type==="file"}function Si(e){return e.type==="file"||e.type==="suite"}function _A(e=Ee.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ya(e,t=!1){let r=Ee.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:pu.value.size>0&&pu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ee.colors.get(e.projectName||"")||Cw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ee.nodes.set(e.id,r),Ee.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Pa(e.id,e.tasks[o],!0)}function Aw(e,t){const r=Ee.nodes.get(e);if(!r||!Si(r))return;const o=dt.state.idMap.get(e);if(!(!o||!Ra(o)))return Pa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function kA(e){const t=Ee.nodes.get(e);if(!t)return;const r=dt.state.idMap.get(e);!r||!js(r)||Pa(t.parentId,r,!1)}function Pa(e,t,r){const o=Ee.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Ee.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(js(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:pu.value.size>0&&pu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Ee.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ra(t)))for(let f=0;f<t.tasks.length;f++)Pa(s.id,t.tasks[f],r)}function TA(e){const t=Ee.nodes.get(e);if(!t||!Si(t))return;const r=new Set(Ir.value);r.delete(t.id);const o=[...EA(t)];Ir.value=Array.from(r),Zn.value=o}function CA(){Qd(Ee.root.tasks);const e=[...Zn.value.filter($n)];Qd(e),Ir.value=[],hn.value.expandAll=!0,Zn.value=e}function Qd(e){for(const t of e)Si(t)&&(t.expanded=!1,Qd(t.tasks))}function*Lw(e,t){if(t&&(yield e.id),Si(e))for(let r=0;r<e.tasks.length;r++)yield*Lw(e.tasks[r],!0)}function*EA(e){const t=e.id,r=new Set(Lw(e,!1));for(let o=0;o<Zn.value.length;o++){const s=Zn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Yu=Ve("idle"),Ss=Se(()=>Yu.value==="idle"),Ki=Ve([]);function AA(e,t,r){return e?Ow(e,t,r):!1}function tp(e,t){const r=[...Mw(e,t)];Zn.value=r,Xu.value=r.filter($n).map(o=>gr(o.id))}function*Mw(e,t){for(const r of _A())yield*Nw(r,e,t)}function*Nw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of eh(e,o,x=>jm(x,t,r)))c.push([m,b]);else{for(const[m,b]of eh(e,o,x=>jm(x,t,r)))Si(b)?(s.set(b.id,m),$n(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!$n(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...MA(c,r.onlyTests,o,d,f)].reverse(),p=Ee.nodes,v=new Set(h.filter(m=>$n(m)||Si(m)&&p.get(m.parentId)?.expanded).map(m=>m.id));yield*h.filter(m=>$n(m)||v.has(m.parentId)&&p.get(m.parentId)?.expanded)}function LA(e,t,r,o,s){if(o){if($n(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&$n(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&$n(c)&&s.add(c.id),t}}function*MA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Si(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ee.nodes.get(d.parentId);for(;p;)r.add(p.id),$n(p)&&o.add(p.id),p=Ee.nodes.get(p.parentId);yield d;continue}if(h){const p=LA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ee.nodes.get(d.parentId);p&&$n(p)&&o.add(p.id),yield d}}}function NA(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Ow(e,t,r){if(t.length===0||wA(e.name,t))if(r.success||r.failed||r.skipped){if(NA(e,r))return!0}else return!0;return!1}function*eh(e,t,r){const o=r(e);if(o)if(xA(e)){let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}else if($n(e))t.add(e.id);else{t.add(e.id);let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}if(yield[o,e],Si(e))for(let s=0;s<e.tasks.length;s++)yield*eh(e.tasks[s],t,r)}function jm(e,t,r){const o=dt.state.idMap.get(e.id);return o?Ow(o,t,r):!1}function OA(e,t,r){const o=Aw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Pa(s.id,p,!1);s.expanded=!0;const f=new Set(Ir.value);f.add(s.id);const d=new Set(Nw(s,t,r)),h=[...IA(s,d)];Ir.value=Array.from(f),Zn.value=h}function RA(e,t){np(Ee.root.tasks,!1);const r=[...Mw(e,t)];hn.value.expandAll=!1,Ir.value=[],Zn.value=r,Xu.value=r.filter($n).map(o=>gr(o.id))}function PA(e,t){if(e.size)for(const r of Zn.value)e.has(r.id)&&(r.expanded=!0);else t&&np(Zn.value.filter($n),!0)}function np(e,t){for(const r of e)Si(r)&&(r.expanded=!0,np(r.tasks,!1));t&&(hn.value.expandAll=!1,Ir.value=[])}function*IA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Zn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function rp(e){return vw(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function $A(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ya(s,t)),Zd.value=[...Ee.root.tasks],tp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function DA(e){queueMicrotask(()=>{const t=Ee.pendingTasks,r=dt.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 zA(e,t){const r=Ee.pendingTasks,s=dt.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),s.annotations.push(t)}}function Um(e,t,r,o,s,c){e&&jA(r);const f=!e;queueMicrotask(()=>{t?BA(f):WA(f)}),queueMicrotask(()=>{UA(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Zd.value&&rp(Zd.value.map(d=>gr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{qA(o,s,t)})}function*FA(){yield*Zn.value.filter(SA)}function HA(){const e=dt.state.idMap;let t;for(const r of FA())t=e.get(r.parentId),t&&Ra(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function BA(e){const t=dt.state.getFiles(),r=Ee.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ya(o[c],e),gu(o[c].tasks);const s=Ee.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=gr(f.id);!d||(ya(d,e),!d.tasks?.length)||gu(d.tasks)}}function WA(e){const t=new Map(Ee.pendingTasks.entries());Ee.pendingTasks.clear();const r=Ee.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>gr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ya(s,!1),gu(s.tasks),t.delete(s.id);const c=dt.state.idMap,f=Ee.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=gr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ya(p,e),gu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function qA(e,t,r=!1){const o=hn.value.expandAll,s=o!==!0,c=new Set(Ir.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Vm(e,t,r)}),Us.value||queueMicrotask(()=>{(Zn.value.length||r)&&(Us.value=!0)}),f&&(queueMicrotask(()=>{PA(c,r),s&&(hn.value.expandAll=!1)}),queueMicrotask(()=>{Vm(e,t,r)}))}function Vm(e,t,r){tp(e,t),r&&(HA(),Yu.value="idle")}function gu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ra(t)?Aw(t.id,!0):kA(t.id)}function jA(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 UA(e,t){const r=dt.state.idMap,o=new Map(Ee.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values()).map(f=>[f.id,gr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:v,total:m,ignored:b,todo:x}=Rw(d);c.totalTests+=m,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=v,c.testsTodo+=x,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function Rw(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of Pw(e))(!r||AA(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function VA(e,t,r,o,s,c){if(t)return r.map(f=>Rw(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:v})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=v,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const v of r)v.result?.state==="fail"?f.failed+=h?1:0:v.result?.state==="pass"?f.success+=p?1:0:v.mode==="skip"||v.mode==="todo"||f.running++;return f}return o}function*Pw(e){const t=Qh(e);let r;for(let o=0;o<t.length;o++)r=t[o],js(r)?yield r:yield*Pw(r.tasks)}class GA{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=ir({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=nE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),$A(t,!0,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){zA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){DA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Um(t,r,this.summary,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):Um(t,r,this.summary,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return VA(t,r,o,s,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{TA(t)})}expandNode(t){queueMicrotask(()=>{OA(t,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{CA()})}expandAllNodes(){queueMicrotask(()=>{RA(Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{tp(Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ee=new GA;function Iw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bc={exports:{}},KA=Bc.exports,Gm;function Qs(){return Gm||(Gm=1,(function(e,t){(function(r,o){e.exports=o()})(KA,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],C=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),A=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),W=/Android/.test(r),E=R||W||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=R||/Mac/.test(o),U=/\bCrOS\b/.test(r),oe=/win/i.test(o),te=C&&r.match(/Version\/(\d*\.\d*)/);te&&(te=Number(te[1])),te&&te>=15&&(C=!1,v=!0);var Z=B&&(m||C&&(te==null||te<12.11)),K=s||h&&p>=9;function V(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var P=function(n,i){var a=n.className,l=V(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function N(n,i){return O(n).appendChild(i)}function _(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function z(n,i,a,l){var u=_(n,i,a,l);return u.setAttribute("role","presentation"),u}var H;document.createRange?H=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:H=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(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 ve(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 we(n,i){var a=n.className;V(i).test(a)||(n.className+=(a?" ":"")+i)}function Pe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!V(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};R?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Qe(n){return n.display.wrapper.ownerDocument}function Ye(n){return ze(n.display.wrapper)}function ze(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Me(n){return Qe(n).defaultView}function $(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function G(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function Q(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=$(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ie(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,F={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var _e=[""];function Ce(n){for(;_e.length<=n;)_e.push(ge(_e)+" ");return _e[n]}function ge(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function 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 Ne(){}function Fe(n,i){var a;return Object.create?a=Object.create(n):(Ne.prototype=n,a=new Ne),i&&G(i,a),a}var Ge=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Ge.test(n))}function lt(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ut(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Mt=/[\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 at(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function Gt(n,i,a){for(;(a<0?i>0:i<n.length)&&at(n.charAt(i));)i+=a;return i}function Bt(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 Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Fr=null;function zt(n,i,a){var l;Fr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Fr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Fr=u)}return l??Fr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function S(k,D,j){this.level=k,this.from=D,this.to=j}return function(k,D){var j=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var ee=k.length,Y=[],ce=0;ce<ee;++ce)Y.push(a(k.charCodeAt(ce)));for(var pe=0,xe=j;pe<ee;++pe){var ke=Y[pe];ke=="m"?Y[pe]=xe:xe=ke}for(var Le=0,Te=j;Le<ee;++Le){var Oe=Y[Le];Oe=="1"&&Te=="r"?Y[Le]="n":g.test(Oe)&&(Te=Oe,Oe=="r"&&(Y[Le]="R"))}for(var Be=1,De=Y[0];Be<ee-1;++Be){var et=Y[Be];et=="+"&&De=="1"&&Y[Be+1]=="1"?Y[Be]="1":et==","&&De==Y[Be+1]&&(De=="1"||De=="n")&&(Y[Be]=De),De=et}for(var St=0;St<ee;++St){var Jt=Y[St];if(Jt==",")Y[St]="N";else if(Jt=="%"){var Nt=void 0;for(Nt=St+1;Nt<ee&&Y[Nt]=="%";++Nt);for(var qn=St&&Y[St-1]=="!"||Nt<ee&&Y[Nt]=="1"?"1":"N",En=St;En<Nt;++En)Y[En]=qn;St=Nt-1}}for(var Wt=0,An=j;Wt<ee;++Wt){var on=Y[Wt];An=="L"&&on=="1"?Y[Wt]="L":g.test(on)&&(An=on)}for(var Ut=0;Ut<ee;++Ut)if(u.test(Y[Ut])){var qt=void 0;for(qt=Ut+1;qt<ee&&u.test(Y[qt]);++qt);for(var $t=(Ut?Y[Ut-1]:j)=="L",Ln=(qt<ee?Y[qt]:j)=="L",gs=$t==Ln?$t?"L":"R":j,Hi=Ut;Hi<qt;++Hi)Y[Hi]=gs;Ut=qt-1}for(var un=[],jr,Qt=0;Qt<ee;)if(y.test(Y[Qt])){var Yf=Qt;for(++Qt;Qt<ee&&y.test(Y[Qt]);++Qt);un.push(new S(0,Yf,Qt))}else{var li=Qt,_o=un.length,ko=D=="rtl"?1:0;for(++Qt;Qt<ee&&Y[Qt]!="L";++Qt);for(var vn=li;vn<Qt;)if(w.test(Y[vn])){li<vn&&(un.splice(_o,0,new S(1,li,vn)),_o+=ko);var vs=vn;for(++vn;vn<Qt&&w.test(Y[vn]);++vn);un.splice(_o,0,new S(2,vs,vn)),_o+=ko,li=vn}else++vn;li<Qt&&un.splice(_o,0,new S(1,li,Qt))}return D=="ltr"&&(un[0].level==1&&(jr=k.match(/^\s+/))&&(un[0].from=jr[0].length,un.unshift(new S(0,0,jr[0].length))),ge(un).level==1&&(jr=k.match(/\s+$/))&&(ge(un).to-=jr[0].length,un.push(new S(0,ee-jr[0].length,ee)))),D=="rtl"?un.reverse():un}})();function tt(n,i){var a=n.order;return a==null&&(a=n.order=Hn(n.text,i)),a}var ho=[],He=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]||ho).concat(a)}};function ei(n,i){return n._handlers&&n._handlers[i]||ho}function ln(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=ie(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Rt(n,i){var a=ei(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Pt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Rt(n,a||i.type,n,i),_n(i)||i.codemirrorIgnore}function lr(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)ie(a,i[l])==-1&&a.push(i[l])}function Bn(n,i){return ei(n,i).length>0}function vr(n){n.prototype.on=function(i,a){He(this,i,a)},n.prototype.off=function(i,a){ln(this,i,a)}}function an(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function jo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function _n(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ai(n){an(n),jo(n)}function tl(n){return n.target||n.srcElement}function mr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var nf=(function(){if(h&&p<9)return!1;var n=_("div");return"draggable"in n||"dragDrop"in n})(),Uo;function Ha(n){if(Uo==null){var i=_("span","​");N(n,_("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Uo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Uo?_("span","​"):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var nl;function Li(n){if(nl!=null)return nl;var i=N(n,document.createTextNode("AخA")),a=H(i,0,1).getBoundingClientRect(),l=H(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:nl=l.right-a.right<3}var ar=`
19
+ `).map(t=>WE(t)).filter(cw)}class VE{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=GE(),this.url=r,this.resolvedSources=(c||[]).map(f=>uw(f||"",r))}}function GE(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function KE(e,t){const r=DE(e,t);return r.column==null?null:r}const XE=/^[A-Za-z]:\//;function YE(e=""){return e&&e.replace(/\\/g,"/").replace(XE,t=>t.toUpperCase())}const ZE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Im=/^\/([A-Za-z]:)?$/;function JE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const $m=function(...e){e=e.map(o=>YE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:JE();!s||s.length===0||(t=`${s}/${t}`,r=Dm(s))}return t=QE(t,!r),r&&!Dm(t)?`/${t}`:t.length>0?t:"."};function QE(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 Dm=function(e){return ZE.test(e)},pw=function(e,t){const r=$m(e).replace(Im,"$1").split("/"),o=$m(t).replace(Im,"$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 eA(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 gw(e,t,r,o){const s=pw(t,e),c={id:tA(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 tA(e,t){return eA(`${e}${t||""}`)}function js(e){return e.type==="test"}function vw(e){const t=[],r=Qh(e);for(const o of r)if(js(o))t.push(o);else for(const s of o.tasks)if(js(s))t.push(s);else{const c=vw(s);for(const f of c)t.push(f)}return t}function ep(e=[]){return Qh(e).flatMap(t=>js(t)?[t]:[t,...ep(t.tasks)])}function nA(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const zm="q",Fm="s",rA=6e4;function mw(e){return e}const iA=mw,{clearTimeout:Hm,setTimeout:oA}=globalThis,sA=Math.random.bind(Math);function lA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=mw,deserialize:d=iA,resolver:h,bind:p="rpc",timeout:v=rA}=t;let m=!1;const b=new Map;let x;async function C(te,Z,K,V){if(m)throw new Error(`[birpc] rpc is closed, cannot call "${te}"`);const P={m:te,a:Z,t:zm};V&&(P.o=!0);const O=async we=>r(f(we));if(K){await O(P);return}if(x)try{await x}finally{x=void 0}let{promise:N,resolve:_,reject:z}=aA();const H=uA();P.i=H;let re;async function ve(we=P){return v>=0&&(re=oA(()=>{try{if(t.onTimeoutError?.(te,Z)!==!0)throw new Error(`[birpc] timeout on calling "${te}"`)}catch(Pe){z(Pe)}b.delete(H)},v),typeof re=="object"&&(re=re.unref?.())),b.set(H,{resolve:_,reject:z,timeoutId:re,method:te}),await O(we),N}try{t.onRequest?await t.onRequest(P,ve,_):await ve()}catch(we){if(t.onGeneralError?.(we)!==!0)throw we;return}finally{Hm(re),b.delete(H)}return N}const B={$call:(te,...Z)=>C(te,Z,!1),$callOptional:(te,...Z)=>C(te,Z,!1,!0),$callEvent:(te,...Z)=>C(te,Z,!0),$callRaw:te=>C(te.method,te.args,te.event,te.optional),$rejectPendingCalls:U,get $closed(){return m},$close:W,$functions:e},E=new Proxy({},{get(te,Z){if(Object.prototype.hasOwnProperty.call(B,Z))return B[Z];if(Z==="then"&&!c.includes("then")&&!("then"in e))return;const K=(...P)=>C(Z,P,!0);if(c.includes(Z))return K.asEvent=K,K;const V=(...P)=>C(Z,P,!1);return V.asEvent=K,V}});function W(te){m=!0,b.forEach(({reject:Z,method:K})=>{const V=new Error(`[birpc] rpc is closed, cannot call "${K}"`);if(te)return te.cause??=V,Z(te);Z(V)}),b.clear(),s(oe)}function U(te){const K=Array.from(b.values()).map(({method:V,reject:P})=>te?te({method:V,reject:P}):P(new Error(`[birpc]: rejected pending call "${V}".`)));return b.clear(),K}async function oe(te,...Z){let K;try{K=d(te)}catch(V){if(t.onGeneralError?.(V)!==!0)throw V;return}if(K.t===zm){const{m:V,a:P,o:O}=K;let N,_,z=await(h?h(V,e[V]):e[V]);if(O&&(z||=()=>{}),!z)_=new Error(`[birpc] function "${V}" not found`);else try{N=await z.apply(p==="rpc"?E:e,P)}catch(H){_=H}if(K.i){if(_&&t.onError&&t.onError(_,V,P),_&&t.onFunctionError&&t.onFunctionError(_,V,P)===!0)return;if(!_)try{await r(f({t:Fm,i:K.i,r:N}),...Z);return}catch(H){if(_=H,t.onGeneralError?.(H,V,P)!==!0)throw H}try{await r(f({t:Fm,i:K.i,e:_}),...Z)}catch(H){if(t.onGeneralError?.(H,V,P)!==!0)throw H}}}else{const{i:V,r:P,e:O}=K,N=b.get(V);N&&(Hm(N.timeoutId),O?N.reject(O):N.resolve(P)),b.delete(V)}}return x=o(oe),E}function aA(){let e,t;return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const cA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function uA(e=21){let t="",r=e;for(;r--;)t+=cA[sA()*64|0];return t}const{parse:yw,stringify:fA}=JSON,{keys:dA}=Object,ma=String,bw="string",Bm={},hu="object",ww=(e,t)=>t,hA=e=>e instanceof ma?ma(e):e,pA=(e,t)=>typeof t===bw?new ma(t):t,xw=(e,t,r,o)=>{const s=[];for(let c=dA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ma){const v=e[p];typeof v===hu&&!t.has(v)?(t.add(v),r[h]=Bm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Bm&&(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,xw.apply(null,h))}return r},Wm=(e,t,r)=>{const o=ma(t.push(r)-1);return e.set(r,o),o},Yd=(e,t)=>{const r=yw(e,pA).map(hA),o=r[0],s=t||ww,c=typeof o===hu&&o?xw(r,new Set,o,s):o;return s.call({"":c},"",c)},Sw=(e,t,r)=>{const o=t&&typeof t===hu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||ww,s=new Map,c=[],f=[];let d=+Wm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=fA(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 hu:if(b===null)return b;case bw:return s.get(b)||Wm(s,c,b)}return b}},gA=e=>yw(Sw(e));class _w{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=gw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function vA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new _w,waitForConnection:A,reconnect:L},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate(R,B){r.onTestAnnotate?.(R,B)},onTestArtifactRecord(R,B){r.onTestArtifactRecord?.(R,B)},onSpecsCollected(R,B){R?.forEach(([E,W])=>{v.state.clearFiles({config:E},[W])}),r.onSpecsCollected?.(R,B)},onPathsCollected(R){v.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){v.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,B){v.state.updateTasks(R),r.onTaskUpdate?.(R,B)},onUserConsoleLog(R){v.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,B,E,W){r.onFinished?.(R,B,E,W)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:R=>v.ws.send(R),on:R=>m=R,serialize:R=>Sw(R,(B,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:Yd,timeout:-1};v.rpc=lA(b,x);let C;function L(R=!1){R&&(p=c),v.ws=new h(e),M()}function M(){C=new Promise((R,B)=>{const E=setTimeout(()=>{B(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();v.ws.OPEN===v.ws.readyState&&R(),v.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(E)})}),v.ws.addEventListener("message",R=>{m(R.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}M();function A(){return C}return v}const Zd=nn([]),Zn=nn([]),Ir=Gu("vitest-ui_task-tree-opened",[],{shallow:!0}),pu=Se(()=>new Set(Ir.value)),hn=Gu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ve(hn.value.search),mA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kw(e){return e.replace(/[&<>"']/g,t=>mA[t])}const yA=Se(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${kw(e)})`,"gi"):null}),Tw=Se(()=>Un.value.trim()!==""),Ze=ir({failed:hn.value.failed,success:hn.value.success,skipped:hn.value.skipped,onlyTests:hn.value.onlyTests}),Jd=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped)),Xu=nn([]),Us=Ve(!1),qm=Se(()=>{const e=hn.value.expandAll;return Ir.value.length>0?e!==!0:e!==!1}),bA=Se(()=>{const e=Tw.value,t=Jd.value,r=Ze.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=Xu.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ra(e){return Object.hasOwn(e,"tasks")}function wA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Cw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function Ew(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function xA(e){return e.type==="test"}function SA(e){return e.mode==="run"&&e.type==="test"}function $n(e){return e.type==="file"}function Si(e){return e.type==="file"||e.type==="suite"}function _A(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ya(e,t=!1){let r=Ce.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:pu.value.size>0&&pu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ce.colors.get(e.projectName||"")||Cw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Pa(e.id,e.tasks[o],!0)}function Aw(e,t){const r=Ce.nodes.get(e);if(!r||!Si(r))return;const o=dt.state.idMap.get(e);if(!(!o||!Ra(o)))return Pa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function kA(e){const t=Ce.nodes.get(e);if(!t)return;const r=dt.state.idMap.get(e);!r||!js(r)||Pa(t.parentId,r,!1)}function Pa(e,t,r){const o=Ce.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Ce.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(js(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:pu.value.size>0&&pu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ra(t)))for(let f=0;f<t.tasks.length;f++)Pa(s.id,t.tasks[f],r)}function TA(e){const t=Ce.nodes.get(e);if(!t||!Si(t))return;const r=new Set(Ir.value);r.delete(t.id);const o=[...EA(t)];Ir.value=Array.from(r),Zn.value=o}function CA(){Qd(Ce.root.tasks);const e=[...Zn.value.filter($n)];Qd(e),Ir.value=[],hn.value.expandAll=!0,Zn.value=e}function Qd(e){for(const t of e)Si(t)&&(t.expanded=!1,Qd(t.tasks))}function*Lw(e,t){if(t&&(yield e.id),Si(e))for(let r=0;r<e.tasks.length;r++)yield*Lw(e.tasks[r],!0)}function*EA(e){const t=e.id,r=new Set(Lw(e,!1));for(let o=0;o<Zn.value.length;o++){const s=Zn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Yu=Ve("idle"),Ss=Se(()=>Yu.value==="idle"),Ki=Ve([]);function AA(e,t,r){return e?Ow(e,t,r):!1}function tp(e,t){const r=[...Mw(e,t)];Zn.value=r,Xu.value=r.filter($n).map(o=>gr(o.id))}function*Mw(e,t){for(const r of _A())yield*Nw(r,e,t)}function*Nw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of eh(e,o,x=>jm(x,t,r)))c.push([m,b]);else{for(const[m,b]of eh(e,o,x=>jm(x,t,r)))Si(b)?(s.set(b.id,m),$n(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!$n(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...MA(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(m=>$n(m)||Si(m)&&p.get(m.parentId)?.expanded).map(m=>m.id));yield*h.filter(m=>$n(m)||v.has(m.parentId)&&p.get(m.parentId)?.expanded)}function LA(e,t,r,o,s){if(o){if($n(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&$n(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&$n(c)&&s.add(c.id),t}}function*MA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Si(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),$n(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=LA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&$n(p)&&o.add(p.id),yield d}}}function NA(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Ow(e,t,r){if(t.length===0||wA(e.name,t))if(r.success||r.failed||r.skipped){if(NA(e,r))return!0}else return!0;return!1}function*eh(e,t,r){const o=r(e);if(o)if(xA(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if($n(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],Si(e))for(let s=0;s<e.tasks.length;s++)yield*eh(e.tasks[s],t,r)}function jm(e,t,r){const o=dt.state.idMap.get(e.id);return o?Ow(o,t,r):!1}function OA(e,t,r){const o=Aw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Pa(s.id,p,!1);s.expanded=!0;const f=new Set(Ir.value);f.add(s.id);const d=new Set(Nw(s,t,r)),h=[...IA(s,d)];Ir.value=Array.from(f),Zn.value=h}function RA(e,t){np(Ce.root.tasks,!1);const r=[...Mw(e,t)];hn.value.expandAll=!1,Ir.value=[],Zn.value=r,Xu.value=r.filter($n).map(o=>gr(o.id))}function PA(e,t){if(e.size)for(const r of Zn.value)e.has(r.id)&&(r.expanded=!0);else t&&np(Zn.value.filter($n),!0)}function np(e,t){for(const r of e)Si(r)&&(r.expanded=!0,np(r.tasks,!1));t&&(hn.value.expandAll=!1,Ir.value=[])}function*IA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Zn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function rp(e){return vw(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function $A(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ya(s,t)),Zd.value=[...Ce.root.tasks],tp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function DA(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=dt.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 zA(e,t){const r=Ce.pendingTasks,s=dt.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function Um(e,t,r,o,s,c){e&&jA(r);const f=!e;queueMicrotask(()=>{t?BA(f):WA(f)}),queueMicrotask(()=>{UA(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Zd.value&&rp(Zd.value.map(d=>gr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{qA(o,s,t)})}function*FA(){yield*Zn.value.filter(SA)}function HA(){const e=dt.state.idMap;let t;for(const r of FA())t=e.get(r.parentId),t&&Ra(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function BA(e){const t=dt.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ya(o[c],e),gu(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=gr(f.id);!d||(ya(d,e),!d.tasks?.length)||gu(d.tasks)}}function WA(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>gr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ya(s,!1),gu(s.tasks),t.delete(s.id);const c=dt.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=gr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ya(p,e),gu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function qA(e,t,r=!1){const o=hn.value.expandAll,s=o!==!0,c=new Set(Ir.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Vm(e,t,r)}),Us.value||queueMicrotask(()=>{(Zn.value.length||r)&&(Us.value=!0)}),f&&(queueMicrotask(()=>{PA(c,r),s&&(hn.value.expandAll=!1)}),queueMicrotask(()=>{Vm(e,t,r)}))}function Vm(e,t,r){tp(e,t),r&&(HA(),Yu.value="idle")}function gu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ra(t)?Aw(t.id,!0):kA(t.id)}function jA(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 UA(e,t){const r=dt.state.idMap,o=new Map(Ce.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values()).map(f=>[f.id,gr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:v,total:m,ignored:b,todo:x}=Rw(d);c.totalTests+=m,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=v,c.testsTodo+=x,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function Rw(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of Pw(e))(!r||AA(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function VA(e,t,r,o,s,c){if(t)return r.map(f=>Rw(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:v})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=v,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const v of r)v.result?.state==="fail"?f.failed+=h?1:0:v.result?.state==="pass"?f.success+=p?1:0:v.mode==="skip"||v.mode==="todo"||f.running++;return f}return o}function*Pw(e){const t=Qh(e);let r;for(let o=0;o<t.length;o++)r=t[o],js(r)?yield r:yield*Pw(r.tasks)}class GA{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=ir({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=nE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),$A(t,!0,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){zA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){DA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Um(t,r,this.summary,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):Um(t,r,this.summary,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return VA(t,r,o,s,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{TA(t)})}expandNode(t){queueMicrotask(()=>{OA(t,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{CA()})}expandAllNodes(){queueMicrotask(()=>{RA(Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{tp(Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ce=new GA;function Iw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bc={exports:{}},KA=Bc.exports,Gm;function Qs(){return Gm||(Gm=1,(function(e,t){(function(r,o){e.exports=o()})(KA,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],C=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),A=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),B=/Android/.test(r),E=R||B||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),W=R||/Mac/.test(o),U=/\bCrOS\b/.test(r),oe=/win/i.test(o),te=C&&r.match(/Version\/(\d*\.\d*)/);te&&(te=Number(te[1])),te&&te>=15&&(C=!1,v=!0);var Z=W&&(m||C&&(te==null||te<12.11)),K=s||h&&p>=9;function V(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var P=function(n,i){var a=n.className,l=V(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function N(n,i){return O(n).appendChild(i)}function _(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function z(n,i,a,l){var u=_(n,i,a,l);return u.setAttribute("role","presentation"),u}var H;document.createRange?H=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:H=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(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 ve(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 we(n,i){var a=n.className;V(i).test(a)||(n.className+=(a?" ":"")+i)}function Pe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!V(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};R?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Qe(n){return n.display.wrapper.ownerDocument}function Ye(n){return ze(n.display.wrapper)}function ze(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Me(n){return Qe(n).defaultView}function $(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function G(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function Q(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=$(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ie(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,F={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var _e=[""];function Ee(n){for(;_e.length<=n;)_e.push(ge(_e)+" ");return _e[n]}function ge(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function 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 Ne(){}function Fe(n,i){var a;return Object.create?a=Object.create(n):(Ne.prototype=n,a=new Ne),i&&G(i,a),a}var Ge=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Ge.test(n))}function lt(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ut(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Mt=/[\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 at(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function Gt(n,i,a){for(;(a<0?i>0:i<n.length)&&at(n.charAt(i));)i+=a;return i}function Bt(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 Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Fr=null;function zt(n,i,a){var l;Fr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Fr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Fr=u)}return l??Fr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function S(k,D,j){this.level=k,this.from=D,this.to=j}return function(k,D){var j=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var ee=k.length,Y=[],ce=0;ce<ee;++ce)Y.push(a(k.charCodeAt(ce)));for(var pe=0,xe=j;pe<ee;++pe){var ke=Y[pe];ke=="m"?Y[pe]=xe:xe=ke}for(var Le=0,Te=j;Le<ee;++Le){var Oe=Y[Le];Oe=="1"&&Te=="r"?Y[Le]="n":g.test(Oe)&&(Te=Oe,Oe=="r"&&(Y[Le]="R"))}for(var Be=1,De=Y[0];Be<ee-1;++Be){var et=Y[Be];et=="+"&&De=="1"&&Y[Be+1]=="1"?Y[Be]="1":et==","&&De==Y[Be+1]&&(De=="1"||De=="n")&&(Y[Be]=De),De=et}for(var St=0;St<ee;++St){var Jt=Y[St];if(Jt==",")Y[St]="N";else if(Jt=="%"){var Nt=void 0;for(Nt=St+1;Nt<ee&&Y[Nt]=="%";++Nt);for(var qn=St&&Y[St-1]=="!"||Nt<ee&&Y[Nt]=="1"?"1":"N",En=St;En<Nt;++En)Y[En]=qn;St=Nt-1}}for(var Wt=0,An=j;Wt<ee;++Wt){var on=Y[Wt];An=="L"&&on=="1"?Y[Wt]="L":g.test(on)&&(An=on)}for(var Ut=0;Ut<ee;++Ut)if(u.test(Y[Ut])){var qt=void 0;for(qt=Ut+1;qt<ee&&u.test(Y[qt]);++qt);for(var $t=(Ut?Y[Ut-1]:j)=="L",Ln=(qt<ee?Y[qt]:j)=="L",gs=$t==Ln?$t?"L":"R":j,Hi=Ut;Hi<qt;++Hi)Y[Hi]=gs;Ut=qt-1}for(var un=[],jr,Qt=0;Qt<ee;)if(y.test(Y[Qt])){var Yf=Qt;for(++Qt;Qt<ee&&y.test(Y[Qt]);++Qt);un.push(new S(0,Yf,Qt))}else{var li=Qt,_o=un.length,ko=D=="rtl"?1:0;for(++Qt;Qt<ee&&Y[Qt]!="L";++Qt);for(var vn=li;vn<Qt;)if(w.test(Y[vn])){li<vn&&(un.splice(_o,0,new S(1,li,vn)),_o+=ko);var vs=vn;for(++vn;vn<Qt&&w.test(Y[vn]);++vn);un.splice(_o,0,new S(2,vs,vn)),_o+=ko,li=vn}else++vn;li<Qt&&un.splice(_o,0,new S(1,li,Qt))}return D=="ltr"&&(un[0].level==1&&(jr=k.match(/^\s+/))&&(un[0].from=jr[0].length,un.unshift(new S(0,0,jr[0].length))),ge(un).level==1&&(jr=k.match(/\s+$/))&&(ge(un).to-=jr[0].length,un.push(new S(0,ee-jr[0].length,ee)))),D=="rtl"?un.reverse():un}})();function tt(n,i){var a=n.order;return a==null&&(a=n.order=Hn(n.text,i)),a}var ho=[],He=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]||ho).concat(a)}};function ei(n,i){return n._handlers&&n._handlers[i]||ho}function ln(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=ie(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Rt(n,i){var a=ei(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Pt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Rt(n,a||i.type,n,i),_n(i)||i.codemirrorIgnore}function lr(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)ie(a,i[l])==-1&&a.push(i[l])}function Bn(n,i){return ei(n,i).length>0}function vr(n){n.prototype.on=function(i,a){He(this,i,a)},n.prototype.off=function(i,a){ln(this,i,a)}}function an(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function jo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function _n(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ai(n){an(n),jo(n)}function tl(n){return n.target||n.srcElement}function mr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),W&&n.ctrlKey&&i==1&&(i=3),i}var nf=(function(){if(h&&p<9)return!1;var n=_("div");return"draggable"in n||"dragDrop"in n})(),Uo;function Ha(n){if(Uo==null){var i=_("span","​");N(n,_("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Uo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Uo?_("span","​"):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var nl;function Li(n){if(nl!=null)return nl;var i=N(n,document.createTextNode("AخA")),a=H(i,0,1).getBoundingClientRect(),l=H(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:nl=l.right-a.right<3}var ar=`
20
20
 
21
21
  b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
22
- `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Mi=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},Ba=(function(){var n=_("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),yr=null;function rf(n){if(yr!=null)return yr;var i=N(n,_("span","x")),a=i.getBoundingClientRect(),l=H(i,0,1).getBoundingClientRect();return yr=Math.abs(a.left-l.left)>1}var Vo={},br={};function wr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Vo[n]=i}function po(n,i){br[n]=i}function Go(n){if(typeof n=="string"&&br.hasOwnProperty(n))n=br[n];else if(n&&typeof n.name=="string"&&br.hasOwnProperty(n.name)){var i=br[n.name];typeof i=="string"&&(i={name:i}),n=Fe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Go("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Go("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Ko(n,i){i=Go(i);var a=Vo[i.name];if(!a)return Ko(n,"text/plain");var l=a(n,i);if(Ni.hasOwnProperty(i.name)){var u=Ni[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 Ni={};function Xo(n,i){var a=Ni.hasOwnProperty(n)?Ni[n]:Ni[n]={};G(i,a)}function Hr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function rl(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 Yo(n,i,a){return n.startState?n.startState(i,a):!0}var It=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};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.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},It.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},It.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},It.prototype.backUp=function(n){this.pos-=n},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return Q(this.string,null,this.tabSize)-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},It.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)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},It.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},It.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Ie(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function ti(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 il(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Jn(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=ie(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function q(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var w=n.lines[y],S=w.height;if(i<S)break;i-=S}return a+y}function fe(n,i){return i>=n.first&&i<n.first+n.size}function be(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ae(n,i,a){if(a===void 0&&(a=null),!(this instanceof ae))return new ae(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ae(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ae(n,i)==0}function Kt(n){return ae(n.line,n.ch)}function kn(n,i){return Ae(n,i)<0?i:n}function Zo(n,i){return Ae(n,i)<0?n:i}function kp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Xe(n,i){if(i.line<n.first)return ae(n.first,0);var a=n.first+n.size-1;return i.line>a?ae(a,Ie(n,a).text.length):c1(i,Ie(n,i.line).text.length)}function c1(n,i){var a=n.ch;return a==null||a>i?ae(n.line,i):a<0?ae(n.line,0):n}function Tp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Xe(n,i[l]);return a}var Wa=function(n,i){this.state=n,this.lookAhead=i},Br=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Br.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Br.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Br.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Br.fromSaved=function(n,i,a){return i instanceof Wa?new Br(n,Hr(n.mode,i.state),a,i.lookAhead):new Br(n,Hr(n.mode,i),a)},Br.prototype.save=function(n){var i=n!==!1?Hr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wa(i,this.maxLookAhead):i};function Cp(n,i,a,l){var u=[n.state.modeGen],g={};Op(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,w=function(k){a.baseTokens=u;var D=n.state.overlays[k],j=1,ee=0;a.state=!0,Op(n,i.text,D.mode,a,function(Y,ce){for(var pe=j;ee<Y;){var xe=u[j];xe>Y&&u.splice(j,1,Y,u[j+1],xe),j+=2,ee=Math.min(Y,xe)}if(ce)if(D.opaque)u.splice(pe,j-pe,Y,"overlay "+ce),j=pe+2;else for(;pe<j;pe+=2){var ke=u[pe+1];u[pe+1]=(ke?ke+" ":"")+"overlay "+ce}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)w(S);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function Ep(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=ol(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Hr(n.doc.mode,l.state),g=Cp(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 ol(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Br(l,!0,i);var g=u1(n,i,a),y=g>l.first&&Ie(l,g-1).stateAfter,w=y?Br.fromSaved(l,y,g):new Br(l,Yo(l.mode),g);return l.iter(g,i,function(S){of(n,S.text,w);var k=w.line;S.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function of(n,i,a,l){var u=n.doc.mode,g=new It(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&Ap(u,a.state);!g.eol();)sf(u,g,a.state),g.start=g.pos}function Ap(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=rl(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function sf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=rl(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 Lp=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=Xe(u,i);var w=Ie(u,i.line),S=ol(n,i.line,a),k=new It(w.text,n.options.tabSize,S),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=sf(g,k,S.state),l&&D.push(new Lp(k,y,Hr(u.mode,S.state)));return l?D:new Lp(k,y,S.state)}function Np(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 Op(n,i,a,l,u,g,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var S=0,k=null,D=new It(i,n.options.tabSize,l),j,ee=n.options.addModeClass&&[null];for(i==""&&Np(Ap(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(w=!1,y&&of(n,i,l,D.pos),D.pos=i.length,j=null):j=Np(sf(a,D,l.state,ee),g),ee){var Y=ee[0].name;Y&&(j="m-"+(j?Y+" "+j:Y))}if(!w||k!=j){for(;S<D.start;)S=Math.min(D.start,S+5e3),u(S,k);k=j}D.start=D.pos}for(;S<D.pos;){var ce=Math.min(D.pos,S+5e3);u(ce,k),S=ce}}function u1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=g.first)return g.first;var S=Ie(g,w-1),k=S.stateAfter;if(k&&(!a||w+(k instanceof Wa?k.lookAhead:0)<=g.modeFrontier))return w;var D=Q(S.text,null,n.options.tabSize);(u==null||l>D)&&(u=w-1,l=D)}return u}function f1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Ie(n,l).stateAfter;if(u&&(!(u instanceof Wa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Rp=!1,ni=!1;function d1(){Rp=!0}function h1(){ni=!0}function qa(n,i,a){this.marker=n,this.from=i,this.to=a}function sl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function p1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function g1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function v1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new qa(y,g.from,S?null:g.to))}}return l}function m1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new qa(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function lf(n,i){if(i.full)return null;var a=fe(n,i.from.line)&&Ie(n,i.from.line).markedSpans,l=fe(n,i.to.line)&&Ie(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ae(i.from,i.to)==0,w=v1(a,u,y),S=m1(l,g,y),k=i.text.length==1,D=ge(i.text).length+(k?u:0);if(w)for(var j=0;j<w.length;++j){var ee=w[j];if(ee.to==null){var Y=sl(S,ee.marker);Y?k&&(ee.to=Y.to==null?null:Y.to+D):ee.to=u}}if(S)for(var ce=0;ce<S.length;++ce){var pe=S[ce];if(pe.to!=null&&(pe.to+=D),pe.from==null){var xe=sl(w,pe.marker);xe||(pe.from=D,k&&(w||(w=[])).push(pe))}else pe.from+=D,k&&(w||(w=[])).push(pe)}w&&(w=Pp(w)),S&&S!=w&&(S=Pp(S));var ke=[w];if(!k){var Le=i.text.length-2,Te;if(Le>0&&w)for(var Oe=0;Oe<w.length;++Oe)w[Oe].to==null&&(Te||(Te=[])).push(new qa(w[Oe].marker,null,null));for(var Be=0;Be<Le;++Be)ke.push(Te);ke.push(S)}return ke}function Pp(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 y1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Y){if(Y.markedSpans)for(var ce=0;ce<Y.markedSpans.length;++ce){var pe=Y.markedSpans[ce].marker;pe.readOnly&&(!l||ie(l,pe)==-1)&&(l||(l=[])).push(pe)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],w=y.find(0),S=0;S<u.length;++S){var k=u[S];if(!(Ae(k.to,w.from)<0||Ae(k.from,w.to)>0)){var D=[S,1],j=Ae(k.from,w.from),ee=Ae(k.to,w.to);(j<0||!y.inclusiveLeft&&!j)&&D.push({from:k.from,to:w.from}),(ee>0||!y.inclusiveRight&&!ee)&&D.push({from:w.to,to:k.to}),u.splice.apply(u,D),S+=D.length-3}}return u}function Ip(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 ja(n){return n.inclusiveLeft?-1:0}function Ua(n){return n.inclusiveRight?1:0}function af(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ae(l.from,u.from)||ja(n)-ja(i);if(g)return-g;var y=Ae(l.to,u.to)||Ua(n)-Ua(i);return y||i.id-n.id}function Dp(n,i){var a=ni&&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||af(l,u.marker)<0)&&(l=u.marker);return l}function zp(n){return Dp(n,!0)}function Va(n){return Dp(n,!1)}function b1(n,i){var a=ni&&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||af(l,g.marker)<0)&&(l=g.marker)}return l}function Fp(n,i,a,l,u){var g=Ie(n,i),y=ni&&g.markedSpans;if(y)for(var w=0;w<y.length;++w){var S=y[w];if(S.marker.collapsed){var k=S.marker.find(0),D=Ae(k.from,a)||ja(S.marker)-ja(u),j=Ae(k.to,l)||Ua(S.marker)-Ua(u);if(!(D>=0&&j<=0||D<=0&&j>=0)&&(D<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.to,a)>=0:Ae(k.to,a)>0)||D>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.from,l)<=0:Ae(k.from,l)<0)))return!0}}}function xr(n){for(var i;i=zp(n);)n=i.find(-1,!0).line;return n}function w1(n){for(var i;i=Va(n);)n=i.find(1,!0).line;return n}function x1(n){for(var i,a;i=Va(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function cf(n,i){var a=Ie(n,i),l=xr(a);return a==l?i:T(l)}function Hp(n,i){if(i>n.lastLine())return i;var a=Ie(n,i),l;if(!Oi(n,a))return i;for(;l=Va(a);)a=l.find(1,!0).line;return T(a)+1}function Oi(n,i){var a=ni&&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&&uf(n,i,l))return!0}}}function uf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return uf(n,l.line,sl(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)&&uf(n,i,u))return!0}function ri(n){n=xr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var w=g.children[y];if(w==a)break;i+=w.height}return i}function Ga(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=zp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Va(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 ff(n){var i=n.display,a=n.doc;i.maxLine=Ie(a,a.first),i.maxLineLength=Ga(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ga(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Jo=function(n,i,a){this.text=n,$p(this,i),this.height=a?a(this):1};Jo.prototype.lineNo=function(){return T(this)},vr(Jo);function S1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Ip(n),$p(n,a);var u=l?l(n):1;u!=n.height&&Jn(n,u)}function _1(n){n.parent=null,Ip(n)}var k1={},T1={};function Bp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?T1:k1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Wp(n,i){var a=z("span",null,null,v?"padding-right: .1px":null),l={pre:z("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=E1,Li(n.display.measure)&&(y=tt(g,n.doc.direction))&&(l.addToken=L1(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);M1(g,l,Ep(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Pe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Pe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ha(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 Rt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Pe(l.pre.className,l.textClass||"")),l}function C1(n){var i=_("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function E1(n,i,a,l,u,g,y){if(i){var w=n.splitSpaces?A1(i,n.trailingSpace):i,S=n.cm.state.specialChars,k=!1,D;if(!S.test(i))n.col+=i.length,D=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var j=0;;){S.lastIndex=j;var ee=S.exec(i),Y=ee?ee.index-j:i.length-j;if(Y){var ce=document.createTextNode(w.slice(j,j+Y));h&&p<9?D.appendChild(_("span",[ce])):D.appendChild(ce),n.map.push(n.pos,n.pos+Y,ce),n.col+=Y,n.pos+=Y}if(!ee)break;j+=Y+1;var pe=void 0;if(ee[0]==" "){var xe=n.cm.options.tabSize,ke=xe-n.col%xe;pe=D.appendChild(_("span",Ce(ke),"cm-tab")),pe.setAttribute("role","presentation"),pe.setAttribute("cm-text"," "),n.col+=ke}else ee[0]=="\r"||ee[0]==`
23
- `?(pe=D.appendChild(_("span",ee[0]=="\r"?"␍":"␤","cm-invalidchar")),pe.setAttribute("cm-text",ee[0]),n.col+=1):(pe=n.cm.options.specialCharPlaceholder(ee[0]),pe.setAttribute("cm-text",ee[0]),h&&p<9?D.appendChild(_("span",[pe])):D.appendChild(pe),n.col+=1);n.map.push(n.pos,n.pos+1,pe),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Le=a||"";l&&(Le+=l),u&&(Le+=u);var Te=_("span",[D],Le,g);if(y)for(var Oe in y)y.hasOwnProperty(Oe)&&Oe!="style"&&Oe!="class"&&Te.setAttribute(Oe,y[Oe]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function A1(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 L1(n,i){return function(a,l,u,g,y,w,S){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var j=void 0,ee=0;ee<i.length&&(j=i[ee],!(j.to>k&&j.from<=k));ee++);if(j.to>=D)return n(a,l,u,g,y,w,S);n(a,l.slice(0,j.to-k),u,g,null,w,S),g=null,l=l.slice(j.to-k),k=j.to}}}function qp(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 M1(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]),Bp(a[y+1],i.cm.options));return}for(var w=u.length,S=0,k=1,D="",j,ee,Y=0,ce,pe,xe,ke,Le;;){if(Y==S){ce=pe=xe=ee="",Le=null,ke=null,Y=1/0;for(var Te=[],Oe=void 0,Be=0;Be<l.length;++Be){var De=l[Be],et=De.marker;if(et.type=="bookmark"&&De.from==S&&et.widgetNode)Te.push(et);else if(De.from<=S&&(De.to==null||De.to>S||et.collapsed&&De.to==S&&De.from==S)){if(De.to!=null&&De.to!=S&&Y>De.to&&(Y=De.to,pe=""),et.className&&(ce+=" "+et.className),et.css&&(ee=(ee?ee+";":"")+et.css),et.startStyle&&De.from==S&&(xe+=" "+et.startStyle),et.endStyle&&De.to==Y&&(Oe||(Oe=[])).push(et.endStyle,De.to),et.title&&((Le||(Le={})).title=et.title),et.attributes)for(var St in et.attributes)(Le||(Le={}))[St]=et.attributes[St];et.collapsed&&(!ke||af(ke.marker,et)<0)&&(ke=De)}else De.from>S&&Y>De.from&&(Y=De.from)}if(Oe)for(var Jt=0;Jt<Oe.length;Jt+=2)Oe[Jt+1]==Y&&(pe+=" "+Oe[Jt]);if(!ke||ke.from==S)for(var Nt=0;Nt<Te.length;++Nt)qp(i,0,Te[Nt]);if(ke&&(ke.from||0)==S){if(qp(i,(ke.to==null?w+1:ke.to)-S,ke.marker,ke.from==null),ke.to==null)return;ke.to==S&&(ke=!1)}}if(S>=w)break;for(var qn=Math.min(w,Y);;){if(D){var En=S+D.length;if(!ke){var Wt=En>qn?D.slice(0,qn-S):D;i.addToken(i,Wt,j?j+ce:ce,xe,S+Wt.length==Y?pe:"",ee,Le)}if(En>=qn){D=D.slice(qn-S),S=qn;break}S=En,xe=""}D=u.slice(g,g=a[k++]),j=Bp(a[k++],i.cm.options)}}}function jp(n,i,a){this.line=i,this.rest=x1(i),this.size=this.rest?T(ge(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Oi(n,i)}function Ka(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new jp(n.doc,Ie(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Qo=null;function N1(n){Qo?Qo.ops.push(n):n.ownsGroup=Qo={ops:[n],delayedCallbacks:[]}}function O1(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 R1(n,i){var a=n.ownsGroup;if(a)try{O1(a)}finally{Qo=null,i(a)}}var ll=null;function Xt(n,i){var a=ei(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Qo?u=Qo.delayedCallbacks:ll?u=ll:(u=ll=[],setTimeout(P1,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function P1(){var n=ll;ll=null;for(var i=0;i<n.length;++i)n[i]()}function Up(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?$1(n,i):g=="gutter"?Gp(n,i,a,l):g=="class"?df(n,i):g=="widget"&&D1(n,i,l)}i.changes=null}function al(n){return n.node==n.text&&(n.node=_("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 I1(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=al(i);i.background=l.insertBefore(_("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Vp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Wp(n,i)}function $1(n,i){var a=i.text.className,l=Vp(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,df(n,i)):a&&(i.text.className=a)}function df(n,i){I1(n,i),i.line.wrapClass?al(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 Gp(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=al(i);i.gutterBackground=_("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=al(i),w=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),y.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(_("div",be(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 k=n.display.gutterSpecs[S].className,D=g.hasOwnProperty(k)&&g[k];D&&w.appendChild(_("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function D1(n,i,a){i.alignable&&(i.alignable=null);for(var l=V("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Kp(n,i,a)}function z1(n,i,a,l){var u=Vp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),df(n,i),Gp(n,i,a,l),Kp(n,i,l),i.node}function Kp(n,i,a){if(Xp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Xp(n,i.rest[l],i,a,!1)}function Xp(n,i,a,l,u){if(i.widgets)for(var g=al(a),y=0,w=i.widgets;y<w.length;++y){var S=w[y],k=_("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),F1(S,k,a,l),n.display.input.setUneditable(k),u&&S.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Xt(S,"redraw")}}function F1(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 cl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!re(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),N(i.display.measure,_("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ii(n,i){for(var a=tl(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 Xa(n){return n.lineSpace.offsetTop}function hf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Yp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=N(n.measure,_("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Wr(n){return I-n.display.nativeBarWidth}function go(n){return n.display.scroller.clientWidth-Wr(n)-n.display.barWidth}function pf(n){return n.display.scroller.clientHeight-Wr(n)-n.display.barHeight}function H1(n,i,a){var l=n.options.lineWrapping,u=l&&go(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),w=0;w<y.length-1;w++){var S=y[w],k=y[w+1];Math.abs(S.bottom-k.bottom)>2&&g.push((S.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Zp(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 B1(n,i){i=xr(i);var a=T(i),l=n.display.externalMeasured=new jp(n.doc,i,a);l.lineN=a;var u=l.built=Wp(n,l);return l.text=u.pre,N(n.display.lineMeasure,u.pre),l}function Jp(n,i,a,l){return qr(n,es(n,i),a,l)}function gf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[yo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function es(n,i){var a=T(i),l=gf(n,a);l&&!l.text?l=null:l&&l.changes&&(Up(n,l,a,wf(n)),n.curOp.forceUpdate=!0),l||(l=B1(n,i));var u=Zp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function qr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(H1(n,i.view,i.rect),i.hasHeights=!0),y=q1(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 Qp={left:0,right:0,top:0,bottom:0};function eg(n,i,a){for(var l,u,g,y,w,S,k=0;k<n.length;k+=3)if(w=n[k],S=n[k+1],i<w?(u=0,g=1,y="left"):i<S?(u=i-w,g=u+1):(k==n.length-3||i==S&&n[k+3]>i)&&(g=S-w,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[k+2],w==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==S-w)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:w,coverEnd:S}}function W1(n,i){var a=Qp;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 q1(n,i,a,l){var u=eg(i.map,a,l),g=u.node,y=u.start,w=u.end,S=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&at(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&at(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=W1(H(g,y,w).getClientRects(),l),k.left||k.right||y==0)break;w=y,y=y-1,S="right"}h&&p<11&&(k=j1(n.display.measure,k))}else{y>0&&(S=l="right");var j;n.options.lineWrapping&&(j=g.getClientRects()).length>1?k=j[l=="right"?j.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var ee=g.parentNode.getClientRects()[0];ee?k={left:ee.left,right:ee.left+ns(n.display),top:ee.top,bottom:ee.bottom}:k=Qp}for(var Y=k.top-i.rect.top,ce=k.bottom-i.rect.top,pe=(Y+ce)/2,xe=i.view.measure.heights,ke=0;ke<xe.length-1&&!(pe<xe[ke]);ke++);var Le=ke?xe[ke-1]:0,Te=xe[ke],Oe={left:(S=="right"?k.right:k.left)-i.rect.left,right:(S=="left"?k.left:k.right)-i.rect.left,top:Le,bottom:Te};return!k.left&&!k.right&&(Oe.bogus=!0),n.options.singleCursorHeightPerLine||(Oe.rtop=Y,Oe.rbottom=ce),Oe}function j1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rf(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 tg(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 ng(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)tg(n.display.view[i])}function ul(n){ng(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function rg(n){return b&&W?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function ig(n){return b&&W?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function vf(n){var i=xr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=cl(a[u]));return l}function Ya(n,i,a,l,u){if(!u){var g=vf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ri(i);if(l=="local"?y+=Xa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:ig(Qe(n)));var S=w.left+(l=="window"?0:rg(Qe(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function og(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=rg(Qe(n)),u-=ig(Qe(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Za(n,i,a,l,u){return l||(l=Ie(n.doc,i.line)),Ya(n,l,Jp(n,l,i.ch,u),a)}function Sr(n,i,a,l,u,g){l=l||Ie(n.doc,i.line),u||(u=es(n,l));function y(ce,pe){var xe=qr(n,u,ce,pe?"right":"left",g);return pe?xe.left=xe.right:xe.right=xe.left,Ya(n,l,xe,a)}var w=tt(l,n.doc.direction),S=i.ch,k=i.sticky;if(S>=l.text.length?(S=l.text.length,k="before"):S<=0&&(S=0,k="after"),!w)return y(k=="before"?S-1:S,k=="before");function D(ce,pe,xe){var ke=w[pe],Le=ke.level==1;return y(xe?ce-1:ce,Le!=xe)}var j=zt(w,S,k),ee=Fr,Y=D(S,j,k=="before");return ee!=null&&(Y.other=D(S,ee,k!="before")),Y}function sg(n,i){var a=0;i=Xe(n.doc,i),n.options.lineWrapping||(a=ns(n.display)*i.ch);var l=Ie(n.doc,i.line),u=ri(l)+Xa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function mf(n,i,a,l,u){var g=ae(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function yf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return mf(l.first,0,null,-1,-1);var u=q(l,a),g=l.first+l.size-1;if(u>g)return mf(l.first+l.size-1,Ie(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Ie(l,u);;){var w=U1(n,y,u,i,a),S=b1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!S)return w;var k=S.find(1);if(k.line==u)return k;y=Ie(l,u=k.line)}}function lg(n,i,a,l){l-=vf(i);var u=i.text.length,g=Bt(function(y){return qr(n,a,y-1).bottom<=l},u,0);return u=Bt(function(y){return qr(n,a,y).top>l},g,u),{begin:g,end:u}}function ag(n,i,a,l){a||(a=es(n,i));var u=Ya(n,i,qr(n,a,l),"line").top;return lg(n,i,a,u)}function bf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function U1(n,i,a,l,u){u-=ri(i);var g=es(n,i),y=vf(i),w=0,S=i.text.length,k=!0,D=tt(i,n.doc.direction);if(D){var j=(n.options.lineWrapping?G1:V1)(n,i,a,g,D,l,u);k=j.level!=1,w=k?j.from:j.to-1,S=k?j.to:j.from-1}var ee=null,Y=null,ce=Bt(function(Be){var De=qr(n,g,Be);return De.top+=y,De.bottom+=y,bf(De,l,u,!1)?(De.top<=u&&De.left<=l&&(ee=Be,Y=De),!0):!1},w,S),pe,xe,ke=!1;if(Y){var Le=l-Y.left<Y.right-l,Te=Le==k;ce=ee+(Te?0:1),xe=Te?"after":"before",pe=Le?Y.left:Y.right}else{!k&&(ce==S||ce==w)&&ce++,xe=ce==0?"after":ce==i.text.length?"before":qr(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Oe=Sr(n,ae(a,ce,xe),"line",i,g);pe=Oe.left,ke=u<Oe.top?-1:u>=Oe.bottom?1:0}return ce=Gt(i.text,ce,1),mf(a,ce,xe,ke,l-pe)}function V1(n,i,a,l,u,g,y){var w=Bt(function(j){var ee=u[j],Y=ee.level!=1;return bf(Sr(n,ae(a,Y?ee.to:ee.from,Y?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[w];if(w>0){var k=S.level!=1,D=Sr(n,ae(a,k?S.from:S.to,k?"after":"before"),"line",i,l);bf(D,g,y,!0)&&D.top>y&&(S=u[w-1])}return S}function G1(n,i,a,l,u,g,y){var w=lg(n,i,l,y),S=w.begin,k=w.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,j=null,ee=0;ee<u.length;ee++){var Y=u[ee];if(!(Y.from>=k||Y.to<=S)){var ce=Y.level!=1,pe=qr(n,l,ce?Math.min(k,Y.to)-1:Math.max(S,Y.from)).right,xe=pe<g?g-pe+1e9:pe-g;(!D||j>xe)&&(D=Y,j=xe)}}return D||(D=u[u.length-1]),D.from<S&&(D={from:S,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var vo;function ts(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(vo==null){vo=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)vo.appendChild(document.createTextNode("x")),vo.appendChild(_("br"));vo.appendChild(document.createTextNode("x"))}N(n.measure,vo);var a=vo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function ns(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=_("span","xxxxxxxxxx"),a=_("pre",[i],"CodeMirror-line-like");N(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function wf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:xf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function xf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function cg(n){var i=ts(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/ns(n.display)-3);return function(u){if(Oi(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 Sf(n){var i=n.doc,a=cg(n);i.iter(function(l){var u=a(l);u!=l.height&&Jn(l,u)})}function mo(n,i,a,l){var u=n.display;if(!a&&tl(i).getAttribute("cm-not-content")=="true")return null;var g,y,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var S=yf(n,g,y),k;if(l&&S.xRel>0&&(k=Ie(n.doc,S.line).text).length==S.ch){var D=Q(k,k.length,n.options.tabSize)-k.length;S=ae(S.line,Math.max(0,Math.round((g-Yp(n.display).left)/ns(n.display))-D))}return S}function yo(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 Tn(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)ni&&cf(n.doc,i)<u.viewTo&&Pi(n);else if(a<=u.viewFrom)ni&&Hp(n.doc,a+l)>u.viewFrom?Pi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Pi(n);else if(i<=u.viewFrom){var g=Ja(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Pi(n)}else if(a>=u.viewTo){var y=Ja(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Pi(n)}else{var w=Ja(n,i,i,-1),S=Ja(n,a,a+l,1);w&&S?(u.view=u.view.slice(0,w.index).concat(Ka(n,w.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Pi(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ri(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[yo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);ie(y,a)==-1&&y.push(a)}}}function Pi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ja(n,i,a,l){var u=yo(n,i),g,y=n.display.view;if(!ni||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,S=0;S<u;S++)w+=y[S].size;if(w!=i){if(l>0){if(u==y.length-1)return null;g=w+y[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;cf(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 K1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ka(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ka(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(yo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ka(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,yo(n,a)))),l.viewTo=a}function ug(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 fl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function fg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var S=a.sel.ranges[w];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var k=S.empty();if(y){var D=y(n,S);D&&_f(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&_f(n,S.head,u);k||X1(n,S,g)}}return l}function _f(n,i,a){var l=Sr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(_("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Za(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(_("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Qa(n,i){return n.top-i.top||n.left-i.left}function X1(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Yp(n.display),w=y.left,S=Math.max(l.sizerWidth,go(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,Oe,Be,De){Oe<0&&(Oe=0),Oe=Math.round(Oe),De=Math.round(De),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
22
+ `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Mi=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},Ba=(function(){var n=_("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),yr=null;function rf(n){if(yr!=null)return yr;var i=N(n,_("span","x")),a=i.getBoundingClientRect(),l=H(i,0,1).getBoundingClientRect();return yr=Math.abs(a.left-l.left)>1}var Vo={},br={};function wr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Vo[n]=i}function po(n,i){br[n]=i}function Go(n){if(typeof n=="string"&&br.hasOwnProperty(n))n=br[n];else if(n&&typeof n.name=="string"&&br.hasOwnProperty(n.name)){var i=br[n.name];typeof i=="string"&&(i={name:i}),n=Fe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Go("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Go("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Ko(n,i){i=Go(i);var a=Vo[i.name];if(!a)return Ko(n,"text/plain");var l=a(n,i);if(Ni.hasOwnProperty(i.name)){var u=Ni[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 Ni={};function Xo(n,i){var a=Ni.hasOwnProperty(n)?Ni[n]:Ni[n]={};G(i,a)}function Hr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function rl(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 Yo(n,i,a){return n.startState?n.startState(i,a):!0}var It=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};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.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},It.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},It.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},It.prototype.backUp=function(n){this.pos-=n},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return Q(this.string,null,this.tabSize)-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},It.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)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},It.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},It.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Ie(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function ti(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 il(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Jn(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=ie(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function q(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var w=n.lines[y],S=w.height;if(i<S)break;i-=S}return a+y}function fe(n,i){return i>=n.first&&i<n.first+n.size}function be(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ae(n,i,a){if(a===void 0&&(a=null),!(this instanceof ae))return new ae(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ae(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ae(n,i)==0}function Kt(n){return ae(n.line,n.ch)}function kn(n,i){return Ae(n,i)<0?i:n}function Zo(n,i){return Ae(n,i)<0?n:i}function kp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Xe(n,i){if(i.line<n.first)return ae(n.first,0);var a=n.first+n.size-1;return i.line>a?ae(a,Ie(n,a).text.length):c1(i,Ie(n,i.line).text.length)}function c1(n,i){var a=n.ch;return a==null||a>i?ae(n.line,i):a<0?ae(n.line,0):n}function Tp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Xe(n,i[l]);return a}var Wa=function(n,i){this.state=n,this.lookAhead=i},Br=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Br.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Br.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Br.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Br.fromSaved=function(n,i,a){return i instanceof Wa?new Br(n,Hr(n.mode,i.state),a,i.lookAhead):new Br(n,Hr(n.mode,i),a)},Br.prototype.save=function(n){var i=n!==!1?Hr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wa(i,this.maxLookAhead):i};function Cp(n,i,a,l){var u=[n.state.modeGen],g={};Op(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,w=function(k){a.baseTokens=u;var D=n.state.overlays[k],j=1,ee=0;a.state=!0,Op(n,i.text,D.mode,a,function(Y,ce){for(var pe=j;ee<Y;){var xe=u[j];xe>Y&&u.splice(j,1,Y,u[j+1],xe),j+=2,ee=Math.min(Y,xe)}if(ce)if(D.opaque)u.splice(pe,j-pe,Y,"overlay "+ce),j=pe+2;else for(;pe<j;pe+=2){var ke=u[pe+1];u[pe+1]=(ke?ke+" ":"")+"overlay "+ce}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)w(S);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function Ep(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=ol(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Hr(n.doc.mode,l.state),g=Cp(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 ol(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Br(l,!0,i);var g=u1(n,i,a),y=g>l.first&&Ie(l,g-1).stateAfter,w=y?Br.fromSaved(l,y,g):new Br(l,Yo(l.mode),g);return l.iter(g,i,function(S){of(n,S.text,w);var k=w.line;S.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function of(n,i,a,l){var u=n.doc.mode,g=new It(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&Ap(u,a.state);!g.eol();)sf(u,g,a.state),g.start=g.pos}function Ap(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=rl(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function sf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=rl(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 Lp=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=Xe(u,i);var w=Ie(u,i.line),S=ol(n,i.line,a),k=new It(w.text,n.options.tabSize,S),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=sf(g,k,S.state),l&&D.push(new Lp(k,y,Hr(u.mode,S.state)));return l?D:new Lp(k,y,S.state)}function Np(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 Op(n,i,a,l,u,g,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var S=0,k=null,D=new It(i,n.options.tabSize,l),j,ee=n.options.addModeClass&&[null];for(i==""&&Np(Ap(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(w=!1,y&&of(n,i,l,D.pos),D.pos=i.length,j=null):j=Np(sf(a,D,l.state,ee),g),ee){var Y=ee[0].name;Y&&(j="m-"+(j?Y+" "+j:Y))}if(!w||k!=j){for(;S<D.start;)S=Math.min(D.start,S+5e3),u(S,k);k=j}D.start=D.pos}for(;S<D.pos;){var ce=Math.min(D.pos,S+5e3);u(ce,k),S=ce}}function u1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=g.first)return g.first;var S=Ie(g,w-1),k=S.stateAfter;if(k&&(!a||w+(k instanceof Wa?k.lookAhead:0)<=g.modeFrontier))return w;var D=Q(S.text,null,n.options.tabSize);(u==null||l>D)&&(u=w-1,l=D)}return u}function f1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Ie(n,l).stateAfter;if(u&&(!(u instanceof Wa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Rp=!1,ni=!1;function d1(){Rp=!0}function h1(){ni=!0}function qa(n,i,a){this.marker=n,this.from=i,this.to=a}function sl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function p1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function g1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function v1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new qa(y,g.from,S?null:g.to))}}return l}function m1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new qa(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function lf(n,i){if(i.full)return null;var a=fe(n,i.from.line)&&Ie(n,i.from.line).markedSpans,l=fe(n,i.to.line)&&Ie(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ae(i.from,i.to)==0,w=v1(a,u,y),S=m1(l,g,y),k=i.text.length==1,D=ge(i.text).length+(k?u:0);if(w)for(var j=0;j<w.length;++j){var ee=w[j];if(ee.to==null){var Y=sl(S,ee.marker);Y?k&&(ee.to=Y.to==null?null:Y.to+D):ee.to=u}}if(S)for(var ce=0;ce<S.length;++ce){var pe=S[ce];if(pe.to!=null&&(pe.to+=D),pe.from==null){var xe=sl(w,pe.marker);xe||(pe.from=D,k&&(w||(w=[])).push(pe))}else pe.from+=D,k&&(w||(w=[])).push(pe)}w&&(w=Pp(w)),S&&S!=w&&(S=Pp(S));var ke=[w];if(!k){var Le=i.text.length-2,Te;if(Le>0&&w)for(var Oe=0;Oe<w.length;++Oe)w[Oe].to==null&&(Te||(Te=[])).push(new qa(w[Oe].marker,null,null));for(var Be=0;Be<Le;++Be)ke.push(Te);ke.push(S)}return ke}function Pp(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 y1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Y){if(Y.markedSpans)for(var ce=0;ce<Y.markedSpans.length;++ce){var pe=Y.markedSpans[ce].marker;pe.readOnly&&(!l||ie(l,pe)==-1)&&(l||(l=[])).push(pe)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],w=y.find(0),S=0;S<u.length;++S){var k=u[S];if(!(Ae(k.to,w.from)<0||Ae(k.from,w.to)>0)){var D=[S,1],j=Ae(k.from,w.from),ee=Ae(k.to,w.to);(j<0||!y.inclusiveLeft&&!j)&&D.push({from:k.from,to:w.from}),(ee>0||!y.inclusiveRight&&!ee)&&D.push({from:w.to,to:k.to}),u.splice.apply(u,D),S+=D.length-3}}return u}function Ip(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 ja(n){return n.inclusiveLeft?-1:0}function Ua(n){return n.inclusiveRight?1:0}function af(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ae(l.from,u.from)||ja(n)-ja(i);if(g)return-g;var y=Ae(l.to,u.to)||Ua(n)-Ua(i);return y||i.id-n.id}function Dp(n,i){var a=ni&&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||af(l,u.marker)<0)&&(l=u.marker);return l}function zp(n){return Dp(n,!0)}function Va(n){return Dp(n,!1)}function b1(n,i){var a=ni&&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||af(l,g.marker)<0)&&(l=g.marker)}return l}function Fp(n,i,a,l,u){var g=Ie(n,i),y=ni&&g.markedSpans;if(y)for(var w=0;w<y.length;++w){var S=y[w];if(S.marker.collapsed){var k=S.marker.find(0),D=Ae(k.from,a)||ja(S.marker)-ja(u),j=Ae(k.to,l)||Ua(S.marker)-Ua(u);if(!(D>=0&&j<=0||D<=0&&j>=0)&&(D<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.to,a)>=0:Ae(k.to,a)>0)||D>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.from,l)<=0:Ae(k.from,l)<0)))return!0}}}function xr(n){for(var i;i=zp(n);)n=i.find(-1,!0).line;return n}function w1(n){for(var i;i=Va(n);)n=i.find(1,!0).line;return n}function x1(n){for(var i,a;i=Va(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function cf(n,i){var a=Ie(n,i),l=xr(a);return a==l?i:T(l)}function Hp(n,i){if(i>n.lastLine())return i;var a=Ie(n,i),l;if(!Oi(n,a))return i;for(;l=Va(a);)a=l.find(1,!0).line;return T(a)+1}function Oi(n,i){var a=ni&&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&&uf(n,i,l))return!0}}}function uf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return uf(n,l.line,sl(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)&&uf(n,i,u))return!0}function ri(n){n=xr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var w=g.children[y];if(w==a)break;i+=w.height}return i}function Ga(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=zp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Va(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 ff(n){var i=n.display,a=n.doc;i.maxLine=Ie(a,a.first),i.maxLineLength=Ga(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ga(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Jo=function(n,i,a){this.text=n,$p(this,i),this.height=a?a(this):1};Jo.prototype.lineNo=function(){return T(this)},vr(Jo);function S1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Ip(n),$p(n,a);var u=l?l(n):1;u!=n.height&&Jn(n,u)}function _1(n){n.parent=null,Ip(n)}var k1={},T1={};function Bp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?T1:k1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Wp(n,i){var a=z("span",null,null,v?"padding-right: .1px":null),l={pre:z("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=E1,Li(n.display.measure)&&(y=tt(g,n.doc.direction))&&(l.addToken=L1(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);M1(g,l,Ep(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Pe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Pe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ha(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 Rt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Pe(l.pre.className,l.textClass||"")),l}function C1(n){var i=_("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function E1(n,i,a,l,u,g,y){if(i){var w=n.splitSpaces?A1(i,n.trailingSpace):i,S=n.cm.state.specialChars,k=!1,D;if(!S.test(i))n.col+=i.length,D=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var j=0;;){S.lastIndex=j;var ee=S.exec(i),Y=ee?ee.index-j:i.length-j;if(Y){var ce=document.createTextNode(w.slice(j,j+Y));h&&p<9?D.appendChild(_("span",[ce])):D.appendChild(ce),n.map.push(n.pos,n.pos+Y,ce),n.col+=Y,n.pos+=Y}if(!ee)break;j+=Y+1;var pe=void 0;if(ee[0]==" "){var xe=n.cm.options.tabSize,ke=xe-n.col%xe;pe=D.appendChild(_("span",Ee(ke),"cm-tab")),pe.setAttribute("role","presentation"),pe.setAttribute("cm-text"," "),n.col+=ke}else ee[0]=="\r"||ee[0]==`
23
+ `?(pe=D.appendChild(_("span",ee[0]=="\r"?"␍":"␤","cm-invalidchar")),pe.setAttribute("cm-text",ee[0]),n.col+=1):(pe=n.cm.options.specialCharPlaceholder(ee[0]),pe.setAttribute("cm-text",ee[0]),h&&p<9?D.appendChild(_("span",[pe])):D.appendChild(pe),n.col+=1);n.map.push(n.pos,n.pos+1,pe),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Le=a||"";l&&(Le+=l),u&&(Le+=u);var Te=_("span",[D],Le,g);if(y)for(var Oe in y)y.hasOwnProperty(Oe)&&Oe!="style"&&Oe!="class"&&Te.setAttribute(Oe,y[Oe]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function A1(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 L1(n,i){return function(a,l,u,g,y,w,S){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var j=void 0,ee=0;ee<i.length&&(j=i[ee],!(j.to>k&&j.from<=k));ee++);if(j.to>=D)return n(a,l,u,g,y,w,S);n(a,l.slice(0,j.to-k),u,g,null,w,S),g=null,l=l.slice(j.to-k),k=j.to}}}function qp(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 M1(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]),Bp(a[y+1],i.cm.options));return}for(var w=u.length,S=0,k=1,D="",j,ee,Y=0,ce,pe,xe,ke,Le;;){if(Y==S){ce=pe=xe=ee="",Le=null,ke=null,Y=1/0;for(var Te=[],Oe=void 0,Be=0;Be<l.length;++Be){var De=l[Be],et=De.marker;if(et.type=="bookmark"&&De.from==S&&et.widgetNode)Te.push(et);else if(De.from<=S&&(De.to==null||De.to>S||et.collapsed&&De.to==S&&De.from==S)){if(De.to!=null&&De.to!=S&&Y>De.to&&(Y=De.to,pe=""),et.className&&(ce+=" "+et.className),et.css&&(ee=(ee?ee+";":"")+et.css),et.startStyle&&De.from==S&&(xe+=" "+et.startStyle),et.endStyle&&De.to==Y&&(Oe||(Oe=[])).push(et.endStyle,De.to),et.title&&((Le||(Le={})).title=et.title),et.attributes)for(var St in et.attributes)(Le||(Le={}))[St]=et.attributes[St];et.collapsed&&(!ke||af(ke.marker,et)<0)&&(ke=De)}else De.from>S&&Y>De.from&&(Y=De.from)}if(Oe)for(var Jt=0;Jt<Oe.length;Jt+=2)Oe[Jt+1]==Y&&(pe+=" "+Oe[Jt]);if(!ke||ke.from==S)for(var Nt=0;Nt<Te.length;++Nt)qp(i,0,Te[Nt]);if(ke&&(ke.from||0)==S){if(qp(i,(ke.to==null?w+1:ke.to)-S,ke.marker,ke.from==null),ke.to==null)return;ke.to==S&&(ke=!1)}}if(S>=w)break;for(var qn=Math.min(w,Y);;){if(D){var En=S+D.length;if(!ke){var Wt=En>qn?D.slice(0,qn-S):D;i.addToken(i,Wt,j?j+ce:ce,xe,S+Wt.length==Y?pe:"",ee,Le)}if(En>=qn){D=D.slice(qn-S),S=qn;break}S=En,xe=""}D=u.slice(g,g=a[k++]),j=Bp(a[k++],i.cm.options)}}}function jp(n,i,a){this.line=i,this.rest=x1(i),this.size=this.rest?T(ge(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Oi(n,i)}function Ka(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new jp(n.doc,Ie(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Qo=null;function N1(n){Qo?Qo.ops.push(n):n.ownsGroup=Qo={ops:[n],delayedCallbacks:[]}}function O1(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 R1(n,i){var a=n.ownsGroup;if(a)try{O1(a)}finally{Qo=null,i(a)}}var ll=null;function Xt(n,i){var a=ei(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Qo?u=Qo.delayedCallbacks:ll?u=ll:(u=ll=[],setTimeout(P1,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function P1(){var n=ll;ll=null;for(var i=0;i<n.length;++i)n[i]()}function Up(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?$1(n,i):g=="gutter"?Gp(n,i,a,l):g=="class"?df(n,i):g=="widget"&&D1(n,i,l)}i.changes=null}function al(n){return n.node==n.text&&(n.node=_("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 I1(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=al(i);i.background=l.insertBefore(_("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Vp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Wp(n,i)}function $1(n,i){var a=i.text.className,l=Vp(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,df(n,i)):a&&(i.text.className=a)}function df(n,i){I1(n,i),i.line.wrapClass?al(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 Gp(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=al(i);i.gutterBackground=_("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=al(i),w=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),y.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(_("div",be(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 k=n.display.gutterSpecs[S].className,D=g.hasOwnProperty(k)&&g[k];D&&w.appendChild(_("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function D1(n,i,a){i.alignable&&(i.alignable=null);for(var l=V("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Kp(n,i,a)}function z1(n,i,a,l){var u=Vp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),df(n,i),Gp(n,i,a,l),Kp(n,i,l),i.node}function Kp(n,i,a){if(Xp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Xp(n,i.rest[l],i,a,!1)}function Xp(n,i,a,l,u){if(i.widgets)for(var g=al(a),y=0,w=i.widgets;y<w.length;++y){var S=w[y],k=_("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),F1(S,k,a,l),n.display.input.setUneditable(k),u&&S.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Xt(S,"redraw")}}function F1(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 cl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!re(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),N(i.display.measure,_("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ii(n,i){for(var a=tl(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 Xa(n){return n.lineSpace.offsetTop}function hf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Yp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=N(n.measure,_("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Wr(n){return I-n.display.nativeBarWidth}function go(n){return n.display.scroller.clientWidth-Wr(n)-n.display.barWidth}function pf(n){return n.display.scroller.clientHeight-Wr(n)-n.display.barHeight}function H1(n,i,a){var l=n.options.lineWrapping,u=l&&go(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),w=0;w<y.length-1;w++){var S=y[w],k=y[w+1];Math.abs(S.bottom-k.bottom)>2&&g.push((S.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Zp(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 B1(n,i){i=xr(i);var a=T(i),l=n.display.externalMeasured=new jp(n.doc,i,a);l.lineN=a;var u=l.built=Wp(n,l);return l.text=u.pre,N(n.display.lineMeasure,u.pre),l}function Jp(n,i,a,l){return qr(n,es(n,i),a,l)}function gf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[yo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function es(n,i){var a=T(i),l=gf(n,a);l&&!l.text?l=null:l&&l.changes&&(Up(n,l,a,wf(n)),n.curOp.forceUpdate=!0),l||(l=B1(n,i));var u=Zp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function qr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(H1(n,i.view,i.rect),i.hasHeights=!0),y=q1(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 Qp={left:0,right:0,top:0,bottom:0};function eg(n,i,a){for(var l,u,g,y,w,S,k=0;k<n.length;k+=3)if(w=n[k],S=n[k+1],i<w?(u=0,g=1,y="left"):i<S?(u=i-w,g=u+1):(k==n.length-3||i==S&&n[k+3]>i)&&(g=S-w,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[k+2],w==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==S-w)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:w,coverEnd:S}}function W1(n,i){var a=Qp;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 q1(n,i,a,l){var u=eg(i.map,a,l),g=u.node,y=u.start,w=u.end,S=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&at(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&at(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=W1(H(g,y,w).getClientRects(),l),k.left||k.right||y==0)break;w=y,y=y-1,S="right"}h&&p<11&&(k=j1(n.display.measure,k))}else{y>0&&(S=l="right");var j;n.options.lineWrapping&&(j=g.getClientRects()).length>1?k=j[l=="right"?j.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var ee=g.parentNode.getClientRects()[0];ee?k={left:ee.left,right:ee.left+ns(n.display),top:ee.top,bottom:ee.bottom}:k=Qp}for(var Y=k.top-i.rect.top,ce=k.bottom-i.rect.top,pe=(Y+ce)/2,xe=i.view.measure.heights,ke=0;ke<xe.length-1&&!(pe<xe[ke]);ke++);var Le=ke?xe[ke-1]:0,Te=xe[ke],Oe={left:(S=="right"?k.right:k.left)-i.rect.left,right:(S=="left"?k.left:k.right)-i.rect.left,top:Le,bottom:Te};return!k.left&&!k.right&&(Oe.bogus=!0),n.options.singleCursorHeightPerLine||(Oe.rtop=Y,Oe.rbottom=ce),Oe}function j1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rf(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 tg(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 ng(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)tg(n.display.view[i])}function ul(n){ng(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function rg(n){return b&&B?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function ig(n){return b&&B?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function vf(n){var i=xr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=cl(a[u]));return l}function Ya(n,i,a,l,u){if(!u){var g=vf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ri(i);if(l=="local"?y+=Xa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:ig(Qe(n)));var S=w.left+(l=="window"?0:rg(Qe(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function og(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=rg(Qe(n)),u-=ig(Qe(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Za(n,i,a,l,u){return l||(l=Ie(n.doc,i.line)),Ya(n,l,Jp(n,l,i.ch,u),a)}function Sr(n,i,a,l,u,g){l=l||Ie(n.doc,i.line),u||(u=es(n,l));function y(ce,pe){var xe=qr(n,u,ce,pe?"right":"left",g);return pe?xe.left=xe.right:xe.right=xe.left,Ya(n,l,xe,a)}var w=tt(l,n.doc.direction),S=i.ch,k=i.sticky;if(S>=l.text.length?(S=l.text.length,k="before"):S<=0&&(S=0,k="after"),!w)return y(k=="before"?S-1:S,k=="before");function D(ce,pe,xe){var ke=w[pe],Le=ke.level==1;return y(xe?ce-1:ce,Le!=xe)}var j=zt(w,S,k),ee=Fr,Y=D(S,j,k=="before");return ee!=null&&(Y.other=D(S,ee,k!="before")),Y}function sg(n,i){var a=0;i=Xe(n.doc,i),n.options.lineWrapping||(a=ns(n.display)*i.ch);var l=Ie(n.doc,i.line),u=ri(l)+Xa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function mf(n,i,a,l,u){var g=ae(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function yf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return mf(l.first,0,null,-1,-1);var u=q(l,a),g=l.first+l.size-1;if(u>g)return mf(l.first+l.size-1,Ie(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Ie(l,u);;){var w=U1(n,y,u,i,a),S=b1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!S)return w;var k=S.find(1);if(k.line==u)return k;y=Ie(l,u=k.line)}}function lg(n,i,a,l){l-=vf(i);var u=i.text.length,g=Bt(function(y){return qr(n,a,y-1).bottom<=l},u,0);return u=Bt(function(y){return qr(n,a,y).top>l},g,u),{begin:g,end:u}}function ag(n,i,a,l){a||(a=es(n,i));var u=Ya(n,i,qr(n,a,l),"line").top;return lg(n,i,a,u)}function bf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function U1(n,i,a,l,u){u-=ri(i);var g=es(n,i),y=vf(i),w=0,S=i.text.length,k=!0,D=tt(i,n.doc.direction);if(D){var j=(n.options.lineWrapping?G1:V1)(n,i,a,g,D,l,u);k=j.level!=1,w=k?j.from:j.to-1,S=k?j.to:j.from-1}var ee=null,Y=null,ce=Bt(function(Be){var De=qr(n,g,Be);return De.top+=y,De.bottom+=y,bf(De,l,u,!1)?(De.top<=u&&De.left<=l&&(ee=Be,Y=De),!0):!1},w,S),pe,xe,ke=!1;if(Y){var Le=l-Y.left<Y.right-l,Te=Le==k;ce=ee+(Te?0:1),xe=Te?"after":"before",pe=Le?Y.left:Y.right}else{!k&&(ce==S||ce==w)&&ce++,xe=ce==0?"after":ce==i.text.length?"before":qr(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Oe=Sr(n,ae(a,ce,xe),"line",i,g);pe=Oe.left,ke=u<Oe.top?-1:u>=Oe.bottom?1:0}return ce=Gt(i.text,ce,1),mf(a,ce,xe,ke,l-pe)}function V1(n,i,a,l,u,g,y){var w=Bt(function(j){var ee=u[j],Y=ee.level!=1;return bf(Sr(n,ae(a,Y?ee.to:ee.from,Y?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[w];if(w>0){var k=S.level!=1,D=Sr(n,ae(a,k?S.from:S.to,k?"after":"before"),"line",i,l);bf(D,g,y,!0)&&D.top>y&&(S=u[w-1])}return S}function G1(n,i,a,l,u,g,y){var w=lg(n,i,l,y),S=w.begin,k=w.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,j=null,ee=0;ee<u.length;ee++){var Y=u[ee];if(!(Y.from>=k||Y.to<=S)){var ce=Y.level!=1,pe=qr(n,l,ce?Math.min(k,Y.to)-1:Math.max(S,Y.from)).right,xe=pe<g?g-pe+1e9:pe-g;(!D||j>xe)&&(D=Y,j=xe)}}return D||(D=u[u.length-1]),D.from<S&&(D={from:S,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var vo;function ts(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(vo==null){vo=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)vo.appendChild(document.createTextNode("x")),vo.appendChild(_("br"));vo.appendChild(document.createTextNode("x"))}N(n.measure,vo);var a=vo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function ns(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=_("span","xxxxxxxxxx"),a=_("pre",[i],"CodeMirror-line-like");N(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function wf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:xf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function xf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function cg(n){var i=ts(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/ns(n.display)-3);return function(u){if(Oi(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 Sf(n){var i=n.doc,a=cg(n);i.iter(function(l){var u=a(l);u!=l.height&&Jn(l,u)})}function mo(n,i,a,l){var u=n.display;if(!a&&tl(i).getAttribute("cm-not-content")=="true")return null;var g,y,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var S=yf(n,g,y),k;if(l&&S.xRel>0&&(k=Ie(n.doc,S.line).text).length==S.ch){var D=Q(k,k.length,n.options.tabSize)-k.length;S=ae(S.line,Math.max(0,Math.round((g-Yp(n.display).left)/ns(n.display))-D))}return S}function yo(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 Tn(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)ni&&cf(n.doc,i)<u.viewTo&&Pi(n);else if(a<=u.viewFrom)ni&&Hp(n.doc,a+l)>u.viewFrom?Pi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Pi(n);else if(i<=u.viewFrom){var g=Ja(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Pi(n)}else if(a>=u.viewTo){var y=Ja(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Pi(n)}else{var w=Ja(n,i,i,-1),S=Ja(n,a,a+l,1);w&&S?(u.view=u.view.slice(0,w.index).concat(Ka(n,w.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Pi(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ri(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[yo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);ie(y,a)==-1&&y.push(a)}}}function Pi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ja(n,i,a,l){var u=yo(n,i),g,y=n.display.view;if(!ni||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,S=0;S<u;S++)w+=y[S].size;if(w!=i){if(l>0){if(u==y.length-1)return null;g=w+y[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;cf(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 K1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ka(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ka(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(yo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ka(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,yo(n,a)))),l.viewTo=a}function ug(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 fl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function fg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var S=a.sel.ranges[w];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var k=S.empty();if(y){var D=y(n,S);D&&_f(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&_f(n,S.head,u);k||X1(n,S,g)}}return l}function _f(n,i,a){var l=Sr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(_("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Za(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(_("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Qa(n,i){return n.top-i.top||n.left-i.left}function X1(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Yp(n.display),w=y.left,S=Math.max(l.sizerWidth,go(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,Oe,Be,De){Oe<0&&(Oe=0),Oe=Math.round(Oe),De=Math.round(De),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
24
24
  top: `+Oe+"px; width: "+(Be??S-Te)+`px;
25
25
  height: `+(De-Oe)+"px"))}function j(Te,Oe,Be){var De=Ie(u,Te),et=De.text.length,St,Jt;function Nt(Wt,An){return Za(n,ae(Te,Wt),"div",De,An)}function qn(Wt,An,on){var Ut=ag(n,De,null,Wt),qt=An=="ltr"==(on=="after")?"left":"right",$t=on=="after"?Ut.begin:Ut.end-(/\s/.test(De.text.charAt(Ut.end-1))?2:1);return Nt($t,qt)[qt]}var En=tt(De,u.direction);return Fn(En,Oe||0,Be??et,function(Wt,An,on,Ut){var qt=on=="ltr",$t=Nt(Wt,qt?"left":"right"),Ln=Nt(An-1,qt?"right":"left"),gs=Oe==null&&Wt==0,Hi=Be==null&&An==et,un=Ut==0,jr=!En||Ut==En.length-1;if(Ln.top-$t.top<=3){var Qt=(k?gs:Hi)&&un,Yf=(k?Hi:gs)&&jr,li=Qt?w:(qt?$t:Ln).left,_o=Yf?S:(qt?Ln:$t).right;D(li,$t.top,_o-li,$t.bottom)}else{var ko,vn,vs,Zf;qt?(ko=k&&gs&&un?w:$t.left,vn=k?S:qn(Wt,on,"before"),vs=k?w:qn(An,on,"after"),Zf=k&&Hi&&jr?S:Ln.right):(ko=k?qn(Wt,on,"before"):w,vn=!k&&gs&&un?S:$t.right,vs=!k&&Hi&&jr?w:Ln.left,Zf=k?qn(An,on,"after"):S),D(ko,$t.top,vn-ko,$t.bottom),$t.bottom<Ln.top&&D(w,$t.bottom,null,Ln.top),D(vs,Ln.top,Zf-vs,Ln.bottom)}(!St||Qa($t,St)<0)&&(St=$t),Qa(Ln,St)<0&&(St=Ln),(!Jt||Qa($t,Jt)<0)&&(Jt=$t),Qa(Ln,Jt)<0&&(Jt=Ln)}),{start:St,end:Jt}}var ee=i.from(),Y=i.to();if(ee.line==Y.line)j(ee.line,ee.ch,Y.ch);else{var ce=Ie(u,ee.line),pe=Ie(u,Y.line),xe=xr(ce)==xr(pe),ke=j(ee.line,ee.ch,xe?ce.text.length+1:null).end,Le=j(Y.line,xe?0:null,Y.ch).start;xe&&(ke.top<Le.top-2?(D(ke.right,ke.top,null,ke.bottom),D(w,Le.top,Le.left,Le.bottom)):D(ke.right,ke.top,Le.left-ke.right,ke.bottom)),ke.bottom<Le.top&&D(w,ke.bottom,null,Le.top)}a.appendChild(g)}function kf(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()||rs(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function dg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Cf(n))}function Tf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&rs(n))},100)}function Cf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Rt(n,"focus",n,i),n.state.focused=!0,we(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()),kf(n))}function rs(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Rt(n,"blur",n,i),n.state.focused=!1,P(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function ec(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var w=i.view[y],S=n.options.lineWrapping,k=void 0,D=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var j=w.node.offsetTop+w.node.offsetHeight;k=j-a,a=j}else{var ee=w.node.getBoundingClientRect();k=ee.bottom-ee.top,!S&&w.text.firstChild&&(D=w.text.firstChild.getBoundingClientRect().right-ee.left-1)}var Y=w.line.height-k;if((Y>.005||Y<-.005)&&(u<l&&(g-=Y),Jn(w.line,k),hg(w.line),w.rest))for(var ce=0;ce<w.rest.length;ce++)hg(w.rest[ce]);if(D>n.display.sizerWidth){var pe=Math.ceil(D/ns(n.display));pe>n.display.maxLineLength&&(n.display.maxLineLength=pe,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function hg(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 tc(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Xa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=q(i,l),y=q(i,u);if(a&&a.ensure){var w=a.ensure.from.line,S=a.ensure.to.line;w<g?(g=w,y=q(i,ri(Ie(i,w))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(g=q(i,ri(Ie(i,S))-n.wrapper.clientHeight),y=S)}return{from:g,to:Math.max(y,g+1)}}function Y1(n,i){if(!Pt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!A){var y=_("div","​",null,`position: absolute;
26
26
  top: `+(i.top-a.viewOffset-Xa(n.display))+`px;
27
27
  height: `+(i.bottom-i.top+Wr(n)+a.barHeight)+`px;
28
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Z1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ae(i.line,i.ch+1,"before"):i,i=i.ch?ae(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,w=Sr(n,i),S=!a||a==i?w:Sr(n,a);u={left:Math.min(w.left,S.left),top:Math.min(w.top,S.top)-l,right:Math.max(w.left,S.left),bottom:Math.max(w.bottom,S.bottom)+l};var k=Ef(n,u),D=n.doc.scrollTop,j=n.doc.scrollLeft;if(k.scrollTop!=null&&(hl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(bo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-j)>1&&(y=!0)),!y)break}return u}function J1(n,i){var a=Ef(n,i);a.scrollTop!=null&&hl(n,a.scrollTop),a.scrollLeft!=null&&bo(n,a.scrollLeft)}function Ef(n,i){var a=n.display,l=ts(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=pf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+hf(a),S=i.top<l,k=i.bottom>w-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?w:i.bottom)-g);D!=u&&(y.scrollTop=D)}var j=n.options.fixedGutter?0:a.gutters.offsetWidth,ee=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-j,Y=go(n)-a.gutters.offsetWidth,ce=i.right-i.left>Y;return ce&&(i.right=i.left+Y),i.left<10?y.scrollLeft=0:i.left<ee?y.scrollLeft=Math.max(0,i.left+j-(ce?0:10)):i.right>Y+ee-3&&(y.scrollLeft=i.right+(ce?0:10)-Y),y}function Af(n,i){i!=null&&(nc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function is(n){nc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function dl(n,i,a){(i!=null||a!=null)&&nc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Q1(n,i){nc(n),n.curOp.scrollToPos=i}function nc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=sg(n,i.from),l=sg(n,i.to);pg(n,a,l,i.margin)}}function pg(n,i,a,l){var u=Ef(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});dl(n,u.scrollLeft,u.scrollTop)}function hl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Mf(n,{top:i}),gg(n,i,!0),s&&Mf(n),vl(n,100))}function gg(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 bo(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,wg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function pl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+hf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Wr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var wo=function(n,i,a){this.cm=a;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),He(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),He(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wo.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}},wo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wo.prototype.zeroWidthHack=function(){var n=B&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},wo.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)},wo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var gl=function(){};gl.prototype.update=function(){return{bottom:0,right:0}},gl.prototype.setScrollLeft=function(){},gl.prototype.setScrollTop=function(){},gl.prototype.clear=function(){};function os(n,i){i||(i=pl(n));var a=n.display.barWidth,l=n.display.barHeight;vg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&ec(n),vg(n,pl(n)),a=n.display.barWidth,l=n.display.barHeight}function vg(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 mg={native:wo,null:gl};function yg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&P(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new mg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),He(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"?bo(n,i):hl(n,i)},n),n.display.scrollbars.addClass&&we(n.display.wrapper,n.display.scrollbars.addClass)}var eS=0;function xo(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:++eS,markArrays:null},N1(n.curOp)}function So(n){var i=n.curOp;i&&R1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;tS(a)})}function tS(n){for(var i=n.ops,a=0;a<i.length;a++)nS(i[a]);for(var l=0;l<i.length;l++)rS(i[l]);for(var u=0;u<i.length;u++)iS(i[u]);for(var g=0;g<i.length;g++)oS(i[g]);for(var y=0;y<i.length;y++)sS(i[y])}function nS(n){var i=n.cm,a=i.display;aS(i),n.updateMaxLine&&ff(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 rc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function rS(n){n.updatedDisplay=n.mustUpdate&&Lf(n.cm,n.update)}function iS(n){var i=n.cm,a=i.display;n.updatedDisplay&&ec(i),n.barMeasure=pl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Jp(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Wr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-go(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function oS(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&bo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ve(Ye(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&os(i,n.barMeasure),n.updatedDisplay&&Of(i,n.barMeasure),n.selectionChanged&&kf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&dg(n.cm)}function sS(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&bg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&gg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&bo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Z1(i,Xe(l,n.scrollToPos.from),Xe(l,n.scrollToPos.to),n.scrollToPos.margin);Y1(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Rt(g[w],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Rt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Rt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Wn(n,i){if(n.curOp)return i();xo(n);try{return i()}finally{So(n)}}function Yt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);xo(n);try{return i.apply(n,arguments)}finally{So(n)}}}function gn(n){return function(){if(this.curOp)return n.apply(this,arguments);xo(this);try{return n.apply(this,arguments)}finally{So(this)}}}function Zt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);xo(i);try{return n.apply(this,arguments)}finally{So(i)}}}function vl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,$(lS,n))}function lS(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ol(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,w=g.text.length>n.options.maxHighlightLength?Hr(i.mode,l.state):null,S=Cp(n,g,l,!0);w&&(l.state=w),g.styles=S.styles;var k=g.styleClasses,D=S.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var j=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),ee=0;!j&&ee<y.length;++ee)j=y[ee]!=g.styles[ee];j&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&of(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return vl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var g=0;g<u.length;g++)Ri(n,u[g],"text")})}}var rc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=tc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=go(n),this.force=a,this.dims=wf(n),this.events=[]};rc.prototype.signal=function(n,i){Bn(n,i)&&this.events.push(arguments)},rc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Rt.apply(null,this.events[n])};function aS(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Wr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Wr(n)+"px",i.scrollbarsClipped=!0)}function cS(n){if(n.hasFocus())return null;var i=ve(Ye(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Me(n).getSelection();l.anchorNode&&l.extend&&re(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function uS(n){if(!(!n||!n.activeElt||n.activeElt==ve(ze(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&re(document.body,n.anchorNode)&&re(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 Lf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Pi(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&&ug(n)==0)return!1;xg(n)&&(Pi(n),i.dims=wf(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)),ni&&(g=cf(n.doc,g),y=Hp(n.doc,y));var w=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;K1(n,g,y),a.viewOffset=ri(Ie(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=ug(n);if(!w&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=cS(n);return S>4&&(a.lineDiv.style.display="none"),fS(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,uS(k),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,vl(n,400)),a.updateLineNumbers=null,!0}function bg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==go(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+hf(n.display)-pf(n),a.top)}),i.visible=tc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=tc(n.display,n.doc,a));if(!Lf(n,i))break;ec(n);var u=pl(n);fl(n),os(n,u),Of(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 Mf(n,i){var a=new rc(n,i);if(Lf(n,a)){ec(n),bg(n,a);var l=pl(n);fl(n),os(n,l),Of(n,l),a.finish()}}function fS(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function w(ce){var pe=ce.nextSibling;return v&&B&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),pe}for(var S=l.view,k=l.viewFrom,D=0;D<S.length;D++){var j=S[D];if(!j.hidden)if(!j.node||j.node.parentNode!=g){var ee=z1(n,j,k,a);g.insertBefore(ee,y)}else{for(;y!=j.node;)y=w(y);var Y=u&&i!=null&&i<=k&&j.lineNumber;j.changes&&(ie(j.changes,"gutter")>-1&&(Y=!1),Up(n,j,k,a)),Y&&(O(j.lineNumber),j.lineNumber.appendChild(document.createTextNode(be(n.options,k)))),y=j.node.nextSibling}k+=j.size}for(;y;)y=w(y)}function Nf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Xt(n,"gutterChanged",n)}function Of(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+Wr(n)+"px"}function wg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=xf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var w=a[y].alignable;if(w)for(var S=0;S<w.length;S++)w[S].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function xg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=be(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(_("div",[_("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",Nf(n.display),!0}return!1}function Rf(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 Sg(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,w=i.appendChild(_("div",null,"CodeMirror-gutter "+g));y&&(w.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Nf(n)}function ml(n){Sg(n.display),Tn(n),wg(n)}function dS(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=z("div",null,"CodeMirror-code"),u.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=_("div",null,"CodeMirror-cursors"),u.measure=_("div",null,"CodeMirror-measure"),u.lineMeasure=_("div",null,"CodeMirror-measure"),u.lineSpace=z("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=z("div",[u.lineSpace],"CodeMirror-lines");u.mover=_("div",[g],null,"position: relative"),u.sizer=_("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=_("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=_("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=_("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=_("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Rf(l.gutters,l.lineNumbers),Sg(u),a.init(u)}var ic=0,oi=null;h?oi=-.53:s?oi=15:b?oi=-.7:L&&(oi=-1/3);function _g(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 hS(n){var i=_g(n);return i.x*=oi,i.y*=oi,i}function kg(n,i){b&&x==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=_g(i),l=a.x,u=a.y,g=oi;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,w=y.scroller,S=w.scrollWidth>w.clientWidth,k=w.scrollHeight>w.clientHeight;if(l&&S||u&&k){if(u&&B&&v){e:for(var D=i.target,j=y.view;D!=w;D=D.parentNode)for(var ee=0;ee<j.length;ee++)if(j[ee].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!C&&g!=null){u&&k&&hl(n,Math.max(0,w.scrollTop+u*g)),bo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&k)&&an(i),y.wheelStartX=null;return}if(u&&g!=null){var Y=u*g,ce=n.doc.scrollTop,pe=ce+y.wrapper.clientHeight;Y<0?ce=Math.max(0,ce+Y-50):pe=Math.min(n.doc.height,pe+Y+50),Mf(n,{top:ce,bottom:pe})}ic<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var xe=w.scrollLeft-y.wheelStartX,ke=w.scrollTop-y.wheelStartY,Le=ke&&y.wheelDY&&ke/y.wheelDY||xe&&y.wheelDX&&xe/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Le&&(oi=(oi*ic+Le)/(ic+1),++ic)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Qn=function(n,i){this.ranges=n,this.primIndex=i};Qn.prototype.primary=function(){return this.ranges[this.primIndex]},Qn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},Qn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Kt(this.ranges[i].anchor),Kt(this.ranges[i].head));return new Qn(n,this.primIndex)},Qn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Qn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ae(i,l.from())>=0&&Ae(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return Zo(this.anchor,this.head)},gt.prototype.to=function(){return kn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(ee,Y){return Ae(ee.from(),Y.from())}),a=ie(i,u);for(var g=1;g<i.length;g++){var y=i[g],w=i[g-1],S=Ae(w.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var k=Zo(w.from(),y.from()),D=kn(w.to(),y.to()),j=w.empty()?y.from()==y.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new gt(j?D:k,j?k:D))}}return new Qn(i,a)}function Ii(n,i){return new Qn([new gt(n,i||n)],0)}function $i(n){return n.text?ae(n.from.line+n.text.length-1,ge(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Tg(n,i){if(Ae(n,i.from)<0)return n;if(Ae(n,i.to)<=0)return $i(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+=$i(i).ch-i.to.ch),ae(a,l)}function Pf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(Tg(u.anchor,i),Tg(u.head,i)))}return _r(n.cm,a,n.sel.primIndex)}function Cg(n,i,a){return n.line==i.line?ae(a.line,n.ch-i.ch+a.ch):ae(a.line+(n.line-i.line),n.ch)}function pS(n,i,a){for(var l=[],u=ae(n.first,0),g=u,y=0;y<i.length;y++){var w=i[y],S=Cg(w.from,u,g),k=Cg($i(w),u,g);if(u=w.to,g=k,a=="around"){var D=n.sel.ranges[y],j=Ae(D.head,D.anchor)<0;l[y]=new gt(j?k:S,j?S:k)}else l[y]=new gt(S,S)}return new Qn(l,n.sel.primIndex)}function If(n){n.doc.mode=Ko(n.options,n.doc.modeOption),yl(n)}function yl(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,vl(n,100),n.state.modeGen++,n.curOp&&Tn(n)}function Eg(n,i){return i.from.ch==0&&i.to.ch==0&&ge(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function $f(n,i,a,l){function u(Le){return a?a[Le]:null}function g(Le,Te,Oe){S1(Le,Te,Oe,l),Xt(Le,"change",Le,i)}function y(Le,Te){for(var Oe=[],Be=Le;Be<Te;++Be)Oe.push(new Jo(k[Be],u(Be),l));return Oe}var w=i.from,S=i.to,k=i.text,D=Ie(n,w.line),j=Ie(n,S.line),ee=ge(k),Y=u(k.length-1),ce=S.line-w.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(Eg(n,i)){var pe=y(0,k.length-1);g(j,j.text,Y),ce&&n.remove(w.line,ce),pe.length&&n.insert(w.line,pe)}else if(D==j)if(k.length==1)g(D,D.text.slice(0,w.ch)+ee+D.text.slice(S.ch),Y);else{var xe=y(1,k.length-1);xe.push(new Jo(ee+D.text.slice(S.ch),Y,l)),g(D,D.text.slice(0,w.ch)+k[0],u(0)),n.insert(w.line+1,xe)}else if(k.length==1)g(D,D.text.slice(0,w.ch)+k[0]+j.text.slice(S.ch),u(0)),n.remove(w.line+1,ce);else{g(D,D.text.slice(0,w.ch)+k[0],u(0)),g(j,ee+j.text.slice(S.ch),Y);var ke=y(1,k.length-1);ce>1&&n.remove(w.line+1,ce-1),n.insert(w.line+1,ke)}Xt(n,"change",n,i)}function Di(n,i,a){function l(u,g,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var S=u.linked[w];if(S.doc!=g){var k=y&&S.sharedHist;a&&!k||(i(S.doc,k),l(S.doc,u,k))}}}l(n,null,!0)}function Ag(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Sf(n),If(n),Lg(n),n.options.direction=i.direction,n.options.lineWrapping||ff(n),n.options.mode=i.modeOption,Tn(n)}function Lg(n){(n.doc.direction=="rtl"?we:P)(n.display.lineDiv,"CodeMirror-rtl")}function gS(n){Wn(n,function(){Lg(n),Tn(n)})}function oc(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 Df(n,i){var a={from:Kt(i.from),to:$i(i),text:ti(n,i.from,i.to)};return Og(n,a,i.from.line,i.to.line+1),Di(n,function(l){return Og(l,a,i.from.line,i.to.line+1)},!0),a}function Mg(n){for(;n.length;){var i=ge(n);if(i.ranges)n.pop();else break}}function vS(n,i){if(i)return Mg(n.done),ge(n.done);if(n.done.length&&!ge(n.done).ranges)return ge(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ge(n.done)}function Ng(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=vS(u,u.lastOp==l)))w=ge(y.changes),Ae(i.from,i.to)==0&&Ae(i.from,w.to)==0?w.to=$i(i):y.changes.push(Df(n,i));else{var S=ge(u.done);for((!S||!S.ranges)&&sc(n.sel,u.done),y={changes:[Df(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Rt(n,"historyAdded")}function mS(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 yS(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||mS(n,g,ge(u.done),i))?u.done[u.done.length-1]=i:sc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&Mg(u.undone)}function sc(n,i){var a=ge(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Og(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 bS(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 wS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(bS(a[u]));return l}function Rg(n,i){var a=wS(n,i),l=lf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var w=0;w<y.length;++w){for(var S=y[w],k=0;k<g.length;++k)if(g[k].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function ss(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Qn.prototype.deepCopy.call(g):g);continue}var y=g.changes,w=[];l.push({changes:w});for(var S=0;S<y.length;++S){var k=y[S],D=void 0;if(w.push({from:k.from,to:k.to,text:k.text}),i)for(var j in k)(D=j.match(/^spans_(\d+)$/))&&ie(i,Number(D[1]))>-1&&(ge(w)[j]=k[j],delete k[j])}}return l}function zf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ae(i,u)<0;g!=Ae(a,u)<0?(u=i,i=a):g!=Ae(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function lc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),cn(n,new Qn([zf(n.sel.primary(),i,a,u)],0),l)}function Pg(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]=zf(n.sel.ranges[g],i[g],null,u);var y=_r(n.cm,l,n.sel.primIndex);cn(n,y,a)}function Ff(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,cn(n,_r(n.cm,u,n.sel.primIndex),l)}function Ig(n,i,a,l){cn(n,Ii(i,a),l)}function xS(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new gt(Xe(n,u[g].anchor),Xe(n,u[g].head))},origin:a&&a.origin};return Rt(n,"beforeSelectionChange",n,l),n.cm&&Rt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?_r(n.cm,l.ranges,l.ranges.length-1):i}function $g(n,i,a){var l=n.history.done,u=ge(l);u&&u.ranges?(l[l.length-1]=i,ac(n,i,a)):cn(n,i,a)}function cn(n,i,a){ac(n,i,a),yS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function ac(n,i,a){(Bn(n,"beforeSelectionChange")||n.cm&&Bn(n.cm,"beforeSelectionChange"))&&(i=xS(n,i,a));var l=a&&a.bias||(Ae(i.primary().head,n.sel.primary().head)<0?-1:1);Dg(n,Fg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&is(n.cm)}function Dg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,lr(n.cm)),Xt(n,"cursorActivity",n))}function zg(n){Dg(n,Fg(n,n.sel,null,!1))}function Fg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],S=cc(n,y.anchor,w&&w.anchor,a,l),k=y.head==y.anchor?S:cc(n,y.head,w&&w.head,a,l);(u||S!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(S,k))}return u?_r(n.cm,u,i.primIndex):i}function ls(n,i,a,l,u){var g=Ie(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var w=g.markedSpans[y],S=w.marker,k="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,D="selectRight"in S?!S.selectRight:S.inclusiveRight;if((w.from==null||(k?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(D?w.to>=i.ch:w.to>i.ch))){if(u&&(Rt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var j=S.find(l<0?1:-1),ee=void 0;if((l<0?D:k)&&(j=Hg(n,j,-l,j&&j.line==i.line?g:null)),j&&j.line==i.line&&(ee=Ae(j,a))&&(l<0?ee<0:ee>0))return ls(n,j,i,l,u)}var Y=S.find(l<0?-1:1);return(l<0?k:D)&&(Y=Hg(n,Y,l,Y.line==i.line?g:null)),Y?ls(n,Y,i,l,u):null}}return i}function cc(n,i,a,l,u){var g=l||1,y=ls(n,i,a,g,u)||!u&&ls(n,i,a,g,!0)||ls(n,i,a,-g,u)||!u&&ls(n,i,a,-g,!0);return y||(n.cantEdit=!0,ae(n.first,0))}function Hg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Xe(n,ae(i.line-1)):null:a>0&&i.ch==(l||Ie(n,i.line)).text.length?i.line<n.first+n.size-1?ae(i.line+1,0):null:new ae(i.line,i.ch+a)}function Bg(n){n.setSelection(ae(n.firstLine(),0),ae(n.lastLine()),X)}function Wg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,w){u&&(l.from=Xe(n,u)),g&&(l.to=Xe(n,g)),y&&(l.text=y),w!==void 0&&(l.origin=w)}),Rt(n,"beforeChange",n,l),n.cm&&Rt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function as(n,i,a){if(n.cm){if(!n.cm.curOp)return Yt(n.cm,as)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"))&&(i=Wg(n,i,!0),!i))){var l=Rp&&!a&&y1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)qg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else qg(n,i)}}function qg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ae(i.from,i.to)==0)){var a=Pf(n,i);Ng(n,i,a,n.cm?n.cm.curOp.id:NaN),bl(n,i,a,lf(n,i));var l=[];Di(n,function(u,g){!g&&ie(l,u.history)==-1&&(Gg(u.history,i),l.push(u.history)),bl(u,i,null,lf(u,i))})}}function uc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,w=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,k=0;k<w.length&&(g=w[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(sc(g,S),a&&!g.equals(n.sel)){cn(n,g,{clearRedo:!1});return}y=g}else if(l){w.push(g);return}else break;var D=[];sc(y,S),S.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var j=Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"),ee=function(pe){var xe=g.changes[pe];if(xe.origin=i,j&&!Wg(n,xe,!1))return w.length=0,{};D.push(Df(n,xe));var ke=pe?Pf(n,xe):ge(w);bl(n,xe,ke,Rg(n,xe)),!pe&&n.cm&&n.cm.scrollIntoView({from:xe.from,to:$i(xe)});var Le=[];Di(n,function(Te,Oe){!Oe&&ie(Le,Te.history)==-1&&(Gg(Te.history,xe),Le.push(Te.history)),bl(Te,xe,null,Rg(Te,xe))})},Y=g.changes.length-1;Y>=0;--Y){var ce=ee(Y);if(ce)return ce.v}}}}function jg(n,i){if(i!=0&&(n.first+=i,n.sel=new Qn(ye(n.sel.ranges,function(u){return new gt(ae(u.anchor.line+i,u.anchor.ch),ae(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){Tn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ri(n.cm,l,"gutter")}}function bl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Yt(n.cm,bl)(n,i,a,l);if(i.to.line<n.first){jg(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);jg(n,u),i={from:ae(n.first,0),to:ae(i.to.line+u,i.to.ch),text:[ge(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ae(g,Ie(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ti(n,i.from,i.to),a||(a=Pf(n,i)),n.cm?SS(n.cm,i,l):$f(n,i,l),ac(n,a,X),n.cantEdit&&cc(n,ae(n.firstLine(),0))&&(n.cantEdit=!1)}}function SS(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,w=!1,S=g.line;n.options.lineWrapping||(S=T(xr(Ie(l,g.line))),l.iter(S,y.line+1,function(Y){if(Y==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&lr(n),$f(l,i,a,cg(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(Y){var ce=Ga(Y);ce>u.maxLineLength&&(u.maxLine=Y,u.maxLineLength=ce,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),f1(l,g.line),vl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?Tn(n):g.line==y.line&&i.text.length==1&&!Eg(n.doc,i)?Ri(n,g.line,"text"):Tn(n,g.line,y.line+1,k);var D=Bn(n,"changes"),j=Bn(n,"change");if(j||D){var ee={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};j&&Xt(n,"change",n,ee),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(ee)}n.display.selForContextMenu=null}function cs(n,i,a,l,u){var g;l||(l=a),Ae(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),as(n,{from:a,to:l,text:i,origin:u})}function Ug(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Vg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)Ug(g.ranges[w].anchor,i,a,l),Ug(g.ranges[w].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var k=g.changes[S];if(a<k.from.line)k.from=ae(k.from.line+l,k.from.ch),k.to=ae(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Gg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Vg(n.done,a,l,u),Vg(n.undone,a,l,u)}function wl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Ie(n,kp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Ri(n.cm,u,a),g)}function xl(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}xl.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,_1(u),Xt(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 Sl(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}Sl.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 xl))){var w=[];this.collapse(w),this.children=[new xl(w)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,w=y;w<u.lines.length;){var S=new xl(u.lines.slice(w,w+=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 Sl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ie(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Sl(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 _l=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};_l.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=cl(this);Jn(a,Math.max(0,a.height-g)),n&&(Wn(n,function(){Kg(n,a,-g),Ri(n,l,"widget")}),Xt(n,"lineWidgetCleared",n,this,l))}},_l.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=cl(this)-i;u&&(Oi(this.doc,l)||Jn(l,l.height+u),a&&Wn(a,function(){a.curOp.forceUpdate=!0,Kg(a,l,u),Xt(a,"lineWidgetChanged",a,n,T(l))}))},vr(_l);function Kg(n,i,a){ri(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Af(n,a)}function _S(n,i,a,l){var u=new _l(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),wl(n,i,"widget",function(y){var w=y.widgets||(y.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Oi(n,y)){var S=ri(y)<n.scrollTop;Jn(y,y.height+cl(u)),S&&Af(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Xt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Xg=0,zi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Xg};zi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&xo(n),Bn(this,"clear")){var a=this.find();a&&Xt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],w=sl(y.markedSpans,this);n&&!this.collapsed?Ri(n,T(y),"text"):n&&(w.to!=null&&(u=T(y)),w.from!=null&&(l=T(y))),y.markedSpans=p1(y.markedSpans,w),w.from==null&&this.collapsed&&!Oi(this.doc,y)&&n&&Jn(y,ts(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var k=xr(this.lines[S]),D=Ga(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&Tn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&zg(n.doc)),n&&Xt(n,"markerCleared",n,this,l,u),i&&So(n),this.parent&&this.parent.clear()}},zi.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=sl(g.markedSpans,this);if(y.from!=null&&(a=ae(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=ae(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},zi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Wn(l,function(){var u=i.line,g=T(i.line),y=gf(l,g);if(y&&(tg(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Oi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var S=cl(a)-w;S&&Jn(u,u.height+S)}Xt(l,"markerChanged",l,n)})},zi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ie(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},zi.prototype.detachLine=function(n){if(this.lines.splice(ie(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},vr(zi);function us(n,i,a,l,u){if(l&&l.shared)return kS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Yt(n.cm,us)(n,i,a,l,u);var g=new zi(n,u),y=Ae(i,a);if(l&&G(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=z("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Fp(n,i.line,i,a,g)||i.line!=a.line&&Fp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");h1()}g.addToHistory&&Ng(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,S=n.cm,k;if(n.iter(w,a.line+1,function(j){S&&g.collapsed&&!S.options.lineWrapping&&xr(j)==S.display.maxLine&&(k=!0),g.collapsed&&w!=i.line&&Jn(j,0),g1(j,new qa(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(j){Oi(n,j)&&Jn(j,0)}),g.clearOnEnter&&He(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(d1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Xg,g.atomic=!0),S){if(k&&(S.curOp.updateMaxLine=!0),g.collapsed)Tn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)Ri(S,D,"text");g.atomic&&zg(S.doc),Xt(S,"markerAdded",S,g)}return g}var kl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};kl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Xt(this,"clear")}},kl.prototype.find=function(n,i){return this.primary.find(n,i)},vr(kl);function kS(n,i,a,l,u){l=G(l),l.shared=!1;var g=[us(n,i,a,l,u)],y=g[0],w=l.widgetNode;return Di(n,function(S){w&&(l.widgetNode=w.cloneNode(!0)),g.push(us(S,Xe(S,i),Xe(S,a),l,u));for(var k=0;k<S.linked.length;++k)if(S.linked[k].isParent)return;y=ge(g)}),new kl(g,y)}function Yg(n){return n.findMarks(ae(n.first,0),n.clipPos(ae(n.lastLine())),function(i){return i.parent})}function TS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Ae(g,y)){var w=us(n,g,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function CS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Di(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];ie(g,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var ES=0,Cn=function(n,i,a,l,u){if(!(this instanceof Cn))return new Cn(n,i,a,l,u);a==null&&(a=0),Sl.call(this,[new xl([new Jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ae(a,0);this.sel=Ii(g),this.history=new oc(null),this.id=++ES,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),$f(this,{from:g,to:g,text:n}),cn(this,Ii(g),X)};Cn.prototype=Fe(Sl.prototype,{constructor:Cn,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=il(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Zt(function(n){var i=ae(this.first,0),a=this.first+this.size-1;as(this,{from:i,to:ae(a,Ie(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&dl(this.cm,0,0),cn(this,Ii(i),X)}),replaceRange:function(n,i,a,l){i=Xe(this,i),a=a?Xe(this,a):i,cs(this,n,i,a,l)},getRange:function(n,i,a){var l=ti(this,Xe(this,n),Xe(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(fe(this,n))return Ie(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Ie(this,n)),xr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Xe(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:Zt(function(n,i,a){Ig(this,Xe(this,typeof n=="number"?ae(n,i||0):n),null,a)}),setSelection:Zt(function(n,i,a){Ig(this,Xe(this,n),Xe(this,i||n),a)}),extendSelection:Zt(function(n,i,a){lc(this,Xe(this,n),i&&Xe(this,i),a)}),extendSelections:Zt(function(n,i){Pg(this,Tp(this,n),i)}),extendSelectionsBy:Zt(function(n,i){var a=ye(this.sel.ranges,n);Pg(this,Tp(this,a),i)}),setSelections:Zt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(Xe(this,n[u].anchor),Xe(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),cn(this,_r(this.cm,l,i),a)}}),addSelection:Zt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(Xe(this,n),Xe(this,i||n))),cn(this,_r(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=ti(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=ti(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:Zt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&pS(this,l,i),S=l.length-1;S>=0;S--)as(this,l[S]);w?$g(this,w):this.cm&&is(this.cm)}),undo:Zt(function(){uc(this,"undo")}),redo:Zt(function(){uc(this,"redo")}),undoSelection:Zt(function(){uc(this,"undo",!0)}),redoSelection:Zt(function(){uc(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 oc(this.history),Di(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:ss(this.history.done),undone:ss(this.history.undone)}},setHistory:function(n){var i=this.history=new oc(this.history);i.done=ss(n.done.slice(0),null,!0),i.undone=ss(n.undone.slice(0),null,!0)},setGutterMarker:Zt(function(n,i,a){return wl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ut(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Zt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&wl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ut(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Ie(this,n),!n))return null}else if(i=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:Zt(function(n,i,a){return wl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(V(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Zt(function(n,i,a){return wl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(V(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Zt(function(n,i,a){return _S(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return us(this,Xe(this,n),Xe(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=Xe(this,n),us(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Xe(this,n);var i=[],a=Ie(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Xe(this,n),i=Xe(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var w=0;w<y.length;w++){var S=y[w];!(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}),Xe(this,ae(a,i))},indexFromPos:function(n){n=Xe(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 Cn(il(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 Cn(il(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],TS(l,Yg(this)),l},unlinkDoc:function(n){if(n instanceof Tt&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),CS(Yg(this));break}}if(n.history==this.history){var l=[n.id];Di(n,function(u){return l.push(u.id)},!0),n.history=new oc(null),n.history.done=ss(this.history.done,l),n.history.undone=ss(this.history.undone,l)}},iterLinkedDocs:function(n){Di(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):ar(n)},lineSeparator:function(){return this.lineSep||`
29
- `},setDirection:Zt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&gS(this.cm))})}),Cn.prototype.eachLine=Cn.prototype.iter;var Zg=0;function AS(n){var i=this;if(Jg(i),!(Pt(i,n)||ii(i.display,n))){an(n),h&&(Zg=+new Date);var a=mo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,w=function(){++y==u&&Yt(i,function(){a=Xe(i.doc,a);var Y={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};as(i.doc,Y),$g(i.doc,Ii(Xe(i.doc,a),Xe(i.doc,$i(Y))))})()},S=function(Y,ce){if(i.options.allowDropFileTypes&&ie(i.options.allowDropFileTypes,Y.type)==-1){w();return}var pe=new FileReader;pe.onerror=function(){return w()},pe.onload=function(){var xe=pe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(xe)){w();return}g[ce]=xe,w()},pe.readAsText(Y)},k=0;k<l.length;k++)S(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var j;if(i.state.draggingText&&!i.state.draggingText.copy&&(j=i.listSelections()),ac(i.doc,Ii(a,a)),j)for(var ee=0;ee<j.length;++ee)cs(i.doc,"",j[ee].anchor,j[ee].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function LS(n,i){if(h&&(!n.state.draggingText||+new Date-Zg<100)){Ai(i);return}if(!(Pt(n,i)||ii(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=_("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),C&&a.parentNode.removeChild(a)}}function MS(n,i){var a=mo(n,i);if(a){var l=document.createDocumentFragment();_f(n,a,l),n.display.dragCursor||(n.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),N(n.display.dragCursor,l)}}function Jg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Qg(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 ev=!1;function NS(){ev||(OS(),ev=!0)}function OS(){var n;He(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Qg(RS)},100))}),He(window,"blur",function(){return Qg(rs)})}function RS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Fi={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"},Tl=0;Tl<10;Tl++)Fi[Tl+48]=Fi[Tl+96]=String(Tl);for(var fc=65;fc<=90;fc++)Fi[fc]=String.fromCharCode(fc);for(var Cl=1;Cl<=12;Cl++)Fi[Cl+111]=Fi[Cl+63235]="F"+Cl;var si={};si.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"},si.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"},si.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"},si.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"]},si.default=B?si.macDefault:si.pcDefault;function PS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function IS(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),PS),g=0;g<u.length;g++){var y=void 0,w=void 0;g==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,g+1).join(" "),y="...");var S=i[w];if(!S)i[w]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var k in i)n[k]=i[k];return n}function fs(n,i,a,l){i=dc(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 fs(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=fs(n,i.fallthrough[g],a,l);if(y)return y}}}function tv(n){var i=typeof n=="string"?n:Fi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function nv(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Z?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Z?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function rv(n,i){if(C&&n.keyCode==34&&n.char)return!1;var a=Fi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),nv(a,n,i))}function dc(n){return typeof n=="string"?si[n]:n}function ds(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ae(g.from,ge(l).to)<=0;){var y=l.pop();if(Ae(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Wn(n,function(){for(var w=l.length-1;w>=0;w--)cs(n.doc,"",l[w].from,l[w].to,"+delete");is(n)})}function Hf(n,i,a){var l=Gt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Bf(n,i,a){var l=Hf(n,i.ch,a);return l==null?null:new ae(i.line,l,a<0?"after":"before")}function Wf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=tt(a,i.doc.direction);if(g){var y=u<0?ge(g):g[0],w=u<0==(y.level==1),S=w?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=es(i,a);k=u<0?a.text.length-1:0;var j=qr(i,D,k).top;k=Bt(function(ee){return qr(i,D,ee).top==j},u<0==(y.level==1)?y.from:y.to-1,k),S=="before"&&(k=Hf(a,k,1))}else k=u<0?y.to:y.from;return new ae(l,k,S)}}return new ae(l,u<0?a.text.length:0,u<0?"before":"after")}function $S(n,i,a,l){var u=tt(i,n.doc.direction);if(!u)return Bf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=zt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Bf(i,a,l);var w=function(ke,Le){return Hf(i,ke instanceof ae?ke.ch:ke,Le)},S,k=function(ke){return n.options.lineWrapping?(S=S||es(n,i),ag(n,i,S,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var j=y.level==1==l<0,ee=w(a,j?1:-1);if(ee!=null&&(j?ee<=y.to&&ee<=D.end:ee>=y.from&&ee>=D.begin)){var Y=j?"before":"after";return new ae(a.line,ee,Y)}}var ce=function(ke,Le,Te){for(var Oe=function(St,Jt){return Jt?new ae(a.line,w(St,1),"before"):new ae(a.line,St,"after")};ke>=0&&ke<u.length;ke+=Le){var Be=u[ke],De=Le>0==(Be.level!=1),et=De?Te.begin:w(Te.end,-1);if(Be.from<=et&&et<Be.to||(et=De?Be.from:w(Be.to,-1),Te.begin<=et&&et<Te.end))return Oe(et,De)}},pe=ce(g+l,l,D);if(pe)return pe;var xe=l>0?D.end:w(D.begin,-1);return xe!=null&&!(l>0&&xe==i.text.length)&&(pe=ce(l>0?0:u.length-1,l,k(xe)),pe)?pe:null}var El={selectAll:Bg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),X)},killLine:function(n){return ds(n,function(i){if(i.empty()){var a=Ie(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ae(i.head.line+1,0)}:{from:i.head,to:ae(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ds(n,function(i){return{from:ae(i.from().line,0),to:Xe(n.doc,ae(i.to().line+1,0))}})},delLineLeft:function(n){return ds(n,function(i){return{from:ae(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ds(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 ds(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(ae(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ae(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return iv(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return ov(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return DS(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?ov(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=Q(n.getLine(g.line),g.ch,l);i.push(Ce(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Ie(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ae(u.line,u.ch-1)),u.ch>0)u=new ae(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ae(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Ie(n.doc,u.line-1).text;y&&(u=new ae(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ae(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);is(n)})},openLine:function(n){return n.replaceSelection(`
30
- `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function iv(n,i){var a=Ie(n.doc,i),l=xr(a);return l!=a&&(i=T(l)),Wf(!0,n,l,i,1)}function DS(n,i){var a=Ie(n.doc,i),l=w1(a);return l!=a&&(i=T(l)),Wf(!0,n,a,i,-1)}function ov(n,i){var a=iv(n,i.line),l=Ie(n.doc,a.line),u=tt(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return ae(a.line,y?0:g,a.sticky)}return a}function hc(n,i,a){if(typeof i=="string"&&(i=El[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=F}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function zS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=fs(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&fs(i,n.options.extraKeys,a,n)||fs(i,n.options.keyMap,a,n)}var FS=new le;function Al(n,i,a,l){var u=n.state.keySeq;if(u){if(tv(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:FS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),sv(n,u+" "+i,a,l))return!0}return sv(n,i,a,l)}function sv(n,i,a,l){var u=zS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Xt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(an(a),kf(n)),!!u}function lv(n,i){var a=rv(i,!0);return a?i.shiftKey&&!n.state.keySeq?Al(n,"Shift-"+a,i,function(l){return hc(n,l,!0)})||Al(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return hc(n,l)}):Al(n,a,i,function(l){return hc(n,l)}):!1}function HS(n,i,a){return Al(n,"'"+a+"'",i,function(l){return hc(n,l,!0)})}var qf=null;function av(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ve(Ye(i)),!Pt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=lv(i,n);C&&(qf=l?a:null,!l&&a==88&&!Ba&&(B?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!B&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&BS(i)}}function BS(n){var i=n.display.lineDiv;we(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(P(i,"CodeMirror-crosshair"),ln(document,"keyup",a),ln(document,"mouseover",a))}He(document,"keyup",a),He(document,"mouseover",a)}function cv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,n)}function uv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ii(i.display,n)||Pt(i,n)||n.ctrlKey&&!n.altKey||B&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(C&&a==qf){qf=null,an(n);return}if(!(C&&(!n.which||n.which<10)&&lv(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(HS(i,n,u)||i.display.input.onKeyPress(n))}}}var WS=400,jf=function(n,i,a){this.time=n,this.pos=i,this.button=a};jf.prototype.compare=function(n,i,a){return this.time+WS>n&&Ae(i,this.pos)==0&&a==this.button};var Ll,Ml;function qS(n,i){var a=+new Date;return Ml&&Ml.compare(a,n,i)?(Ll=Ml=null,"triple"):Ll&&Ll.compare(a,n,i)?(Ml=new jf(a,n,i),Ll=null,"double"):(Ll=new jf(a,n,i),Ml=null,"single")}function fv(n){var i=this,a=i.display;if(!(Pt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ii(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Uf(i,n)){var l=mo(i,n),u=mr(n),g=l?qS(l,u):"single";Me(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&jS(i,u,l,g,n))&&(u==1?l?VS(i,l,g,n):tl(n)==a.scroller&&an(n):u==2?(l&&lc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(K?i.display.input.onContextMenu(n):Tf(i)))}}}function jS(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,Al(n,nv(g,u),u,function(y){if(typeof y=="string"&&(y=El[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=F}finally{n.state.suppressEdits=!1}return w})}function US(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=U?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=B?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(B?a.altKey:a.ctrlKey)),u}function VS(n,i,a,l){h?setTimeout($(dg,n),0):n.curOp.focus=ve(Ye(n));var u=US(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&nf&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ae((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ae(y.to(),i)>0||i.xRel<0)?GS(n,l,i,u):KS(n,l,i,u)}function GS(n,i,a,l){var u=n.display,g=!1,y=Yt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Tf(n)),ln(u.wrapper.ownerDocument,"mouseup",y),ln(u.wrapper.ownerDocument,"mousemove",w),ln(u.scroller,"dragstart",S),ln(u.scroller,"drop",y),g||(an(k),l.addNew||lc(n.doc,a,null,null,l.extend),v&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,He(u.wrapper.ownerDocument,"mouseup",y),He(u.wrapper.ownerDocument,"mousemove",w),He(u.scroller,"dragstart",S),He(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function dv(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(ae(i.line,0),Xe(n.doc,ae(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function KS(n,i,a,l){h&&Tf(n);var u=n.display,g=n.doc;an(i);var y,w,S=g.sel,k=S.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?y=k[w]:y=new gt(a,a)):(y=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=mo(n,i,!0,!0),w=-1;else{var D=dv(n,a,l.unit);l.extend?y=zf(y,D.anchor,D.head,l.extend):y=D}l.addNew?w==-1?(w=k.length,cn(g,_r(n,k.concat([y]),w),{scroll:!1,origin:"*mouse"})):k.length>1&&k[w].empty()&&l.unit=="char"&&!l.extend?(cn(g,_r(n,k.slice(0,w).concat(k.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Ff(g,w,y,ue):(w=0,cn(g,new Qn([y],0),ue),S=g.sel);var j=a;function ee(Te){if(Ae(j,Te)!=0)if(j=Te,l.unit=="rectangle"){for(var Oe=[],Be=n.options.tabSize,De=Q(Ie(g,a.line).text,a.ch,Be),et=Q(Ie(g,Te.line).text,Te.ch,Be),St=Math.min(De,et),Jt=Math.max(De,et),Nt=Math.min(a.line,Te.line),qn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Nt<=qn;Nt++){var En=Ie(g,Nt).text,Wt=de(En,St,Be);St==Jt?Oe.push(new gt(ae(Nt,Wt),ae(Nt,Wt))):En.length>Wt&&Oe.push(new gt(ae(Nt,Wt),ae(Nt,de(En,Jt,Be))))}Oe.length||Oe.push(new gt(a,a)),cn(g,_r(n,S.ranges.slice(0,w).concat(Oe),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var An=y,on=dv(n,Te,l.unit),Ut=An.anchor,qt;Ae(on.anchor,Ut)>0?(qt=on.head,Ut=Zo(An.from(),on.anchor)):(qt=on.anchor,Ut=kn(An.to(),on.head));var $t=S.ranges.slice(0);$t[w]=XS(n,new gt(Xe(g,Ut),qt)),cn(g,_r(n,$t,w),ue)}}var Y=u.wrapper.getBoundingClientRect(),ce=0;function pe(Te){var Oe=++ce,Be=mo(n,Te,!0,l.unit=="rectangle");if(Be)if(Ae(Be,j)!=0){n.curOp.focus=ve(Ye(n)),ee(Be);var De=tc(u,g);(Be.line>=De.to||Be.line<De.from)&&setTimeout(Yt(n,function(){ce==Oe&&pe(Te)}),150)}else{var et=Te.clientY<Y.top?-20:Te.clientY>Y.bottom?20:0;et&&setTimeout(Yt(n,function(){ce==Oe&&(u.scroller.scrollTop+=et,pe(Te))}),50)}}function xe(Te){n.state.selectingText=!1,ce=1/0,Te&&(an(Te),u.input.focus()),ln(u.wrapper.ownerDocument,"mousemove",ke),ln(u.wrapper.ownerDocument,"mouseup",Le),g.history.lastSelOrigin=null}var ke=Yt(n,function(Te){Te.buttons===0||!mr(Te)?xe(Te):pe(Te)}),Le=Yt(n,xe);n.state.selectingText=Le,He(u.wrapper.ownerDocument,"mousemove",ke),He(u.wrapper.ownerDocument,"mouseup",Le)}function XS(n,i){var a=i.anchor,l=i.head,u=Ie(n.doc,a.line);if(Ae(a,l)==0&&a.sticky==l.sticky)return i;var g=tt(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),w=g[y];if(w.from!=a.ch&&w.to!=a.ch)return i;var S=y+(w.from==a.ch==(w.level!=1)?0:1);if(S==0||S==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=zt(g,l.ch,l.sticky),j=D-y||(l.ch-a.ch)*(w.level==1?-1:1);D==S-1||D==S?k=j<0:k=j>0}var ee=g[S+(k?-1:0)],Y=k==(ee.level==1),ce=Y?ee.from:ee.to,pe=Y?"after":"before";return a.ch==ce&&a.sticky==pe?i:new gt(new ae(a.line,ce,pe),l)}function hv(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&&an(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(g>w.bottom||!Bn(n,a))return _n(i);g-=w.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var k=y.gutters.childNodes[S];if(k&&k.getBoundingClientRect().right>=u){var D=q(n.doc,g),j=n.display.gutterSpecs[S];return Rt(n,a,n,D,j.className,i),_n(i)}}}function Uf(n,i){return hv(n,i,"gutterClick",!0)}function pv(n,i){ii(n.display,i)||YS(n,i)||Pt(n,i,"contextmenu")||K||n.display.input.onContextMenu(i)}function YS(n,i){return Bn(n,"gutterContextMenu")?hv(n,i,"gutterContextMenu",!1):!1}function gv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ul(n)}var hs={toString:function(){return"CodeMirror.Init"}},vv={},pc={};function ZS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(w,S,k){k!=hs&&g(w,S,k)}:g)}n.defineOption=a,n.Init=hs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,If(l)},!0),a("indentUnit",2,If,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){yl(l),ul(l),Tn(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 k=0;;){var D=S.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(ae(y,D))}y++});for(var w=g.length-1;w>=0;w--)cs(l.doc,u,g[w],ae(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=hs&&l.refresh()}),a("specialCharPlaceholder",C1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!oe),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){gv(l),ml(l)},!0),a("keyMap","default",function(l,u,g){var y=dc(u),w=g!=hs&&dc(g);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,QS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Rf(u,l.options.lineNumbers),ml(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?xf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return os(l)},!0),a("scrollbarStyle","native",function(l){yg(l),os(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=Rf(l.options.gutters,u),ml(l)},!0),a("firstLineNumber",1,ml,!0),a("lineNumberFormatter",function(l){return l},ml,!0),a("showCursorWhenSelecting",!1,fl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(rs(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,JS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,fl,!0),a("singleCursorHeightPerLine",!0,fl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,yl,!0),a("addModeClass",!1,yl,!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,yl,!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 JS(n,i,a){var l=a&&a!=hs;if(!i!=!l){var u=n.display.dragFunctions,g=i?He:ln;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 QS(n){n.options.lineWrapping?(we(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(P(n.display.wrapper,"CodeMirror-wrap"),ff(n)),Sf(n),Tn(n),ul(n),setTimeout(function(){return os(n)},100)}function Tt(n,i){var a=this;if(!(this instanceof Tt))return new Tt(n,i);this.options=i=i?G(i):{},G(vv,i,!1);var l=i.value;typeof l=="string"?l=new Cn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Tt.inputStyles[i.inputStyle](this),g=this.display=new dS(n,l,u,i);g.wrapper.CodeMirror=this,gv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!E&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),e_(this),NS(),xo(this),this.curOp.forceUpdate=!0,Ag(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Cf(a)},20):rs(this);for(var y in pc)pc.hasOwnProperty(y)&&pc[y](this,i[y],hs);xg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Vf.length;++w)Vf[w](this);So(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Tt.defaults=vv,Tt.optionHandlers=pc;function e_(n){var i=n.display;He(i.scroller,"mousedown",Yt(n,fv)),h&&p<11?He(i.scroller,"dblclick",Yt(n,function(S){if(!Pt(n,S)){var k=mo(n,S);if(!(!k||Uf(n,S)||ii(n.display,S))){an(S);var D=n.findWordAt(k);lc(n.doc,D.anchor,D.head)}}})):He(i.scroller,"dblclick",function(S){return Pt(n,S)||an(S)}),He(i.scroller,"contextmenu",function(S){return pv(n,S)}),He(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||pv(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 k=S.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(S,k){if(k.left==null)return!0;var D=k.left-S.left,j=k.top-S.top;return D*D+j*j>400}He(i.scroller,"touchstart",function(S){if(!Pt(n,S)&&!g(S)&&!Uf(n,S)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),He(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),He(i.scroller,"touchend",function(S){var k=i.activeTouch;if(k&&!ii(i,S)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),j;!k.prev||y(k,k.prev)?j=new gt(D,D):!k.prev.prev||y(k,k.prev.prev)?j=n.findWordAt(D):j=new gt(ae(D.line,0),Xe(n.doc,ae(D.line+1,0))),n.setSelection(j.anchor,j.head),n.focus(),an(S)}u()}),He(i.scroller,"touchcancel",u),He(i.scroller,"scroll",function(){i.scroller.clientHeight&&(hl(n,i.scroller.scrollTop),bo(n,i.scroller.scrollLeft,!0),Rt(n,"scroll",n))}),He(i.scroller,"mousewheel",function(S){return kg(n,S)}),He(i.scroller,"DOMMouseScroll",function(S){return kg(n,S)}),He(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Pt(n,S)||Ai(S)},over:function(S){Pt(n,S)||(MS(n,S),Ai(S))},start:function(S){return LS(n,S)},drop:Yt(n,AS),leave:function(S){Pt(n,S)||Jg(n)}};var w=i.input.getField();He(w,"keyup",function(S){return cv.call(n,S)}),He(w,"keydown",Yt(n,av)),He(w,"keypress",Yt(n,uv)),He(w,"focus",function(S){return Cf(n,S)}),He(w,"blur",function(S){return rs(n,S)})}var Vf=[];Tt.defineInitHook=function(n){return Vf.push(n)};function Nl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=ol(n,i).state:a="prev");var y=n.options.tabSize,w=Ie(u,i),S=Q(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var k=w.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(w.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,w.text.slice(k.length),w.text),D==F||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=Q(Ie(u,i-1).text,null,y):D=0:a=="add"?D=S+n.options.indentUnit:a=="subtract"?D=S-n.options.indentUnit:typeof a=="number"&&(D=S+a),D=Math.max(0,D);var j="",ee=0;if(n.options.indentWithTabs)for(var Y=Math.floor(D/y);Y;--Y)ee+=y,j+=" ";if(ee<D&&(j+=Ce(D-ee)),j!=k)return cs(u,j,ae(i,0),ae(i,k.length),"+input"),w.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var pe=u.sel.ranges[ce];if(pe.head.line==i&&pe.head.ch<k.length){var xe=ae(i,k.length);Ff(u,ce,new gt(xe,xe));break}}}var kr=null;function gc(n){kr=n}function Gf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,S=ar(i),k=null;if(w&&l.ranges.length>1)if(kr&&kr.text.join(`
28
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Z1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ae(i.line,i.ch+1,"before"):i,i=i.ch?ae(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,w=Sr(n,i),S=!a||a==i?w:Sr(n,a);u={left:Math.min(w.left,S.left),top:Math.min(w.top,S.top)-l,right:Math.max(w.left,S.left),bottom:Math.max(w.bottom,S.bottom)+l};var k=Ef(n,u),D=n.doc.scrollTop,j=n.doc.scrollLeft;if(k.scrollTop!=null&&(hl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(bo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-j)>1&&(y=!0)),!y)break}return u}function J1(n,i){var a=Ef(n,i);a.scrollTop!=null&&hl(n,a.scrollTop),a.scrollLeft!=null&&bo(n,a.scrollLeft)}function Ef(n,i){var a=n.display,l=ts(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=pf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+hf(a),S=i.top<l,k=i.bottom>w-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?w:i.bottom)-g);D!=u&&(y.scrollTop=D)}var j=n.options.fixedGutter?0:a.gutters.offsetWidth,ee=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-j,Y=go(n)-a.gutters.offsetWidth,ce=i.right-i.left>Y;return ce&&(i.right=i.left+Y),i.left<10?y.scrollLeft=0:i.left<ee?y.scrollLeft=Math.max(0,i.left+j-(ce?0:10)):i.right>Y+ee-3&&(y.scrollLeft=i.right+(ce?0:10)-Y),y}function Af(n,i){i!=null&&(nc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function is(n){nc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function dl(n,i,a){(i!=null||a!=null)&&nc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Q1(n,i){nc(n),n.curOp.scrollToPos=i}function nc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=sg(n,i.from),l=sg(n,i.to);pg(n,a,l,i.margin)}}function pg(n,i,a,l){var u=Ef(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});dl(n,u.scrollLeft,u.scrollTop)}function hl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Mf(n,{top:i}),gg(n,i,!0),s&&Mf(n),vl(n,100))}function gg(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 bo(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,wg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function pl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+hf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Wr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var wo=function(n,i,a){this.cm=a;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),He(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),He(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wo.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}},wo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wo.prototype.zeroWidthHack=function(){var n=W&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},wo.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)},wo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var gl=function(){};gl.prototype.update=function(){return{bottom:0,right:0}},gl.prototype.setScrollLeft=function(){},gl.prototype.setScrollTop=function(){},gl.prototype.clear=function(){};function os(n,i){i||(i=pl(n));var a=n.display.barWidth,l=n.display.barHeight;vg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&ec(n),vg(n,pl(n)),a=n.display.barWidth,l=n.display.barHeight}function vg(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 mg={native:wo,null:gl};function yg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&P(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new mg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),He(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"?bo(n,i):hl(n,i)},n),n.display.scrollbars.addClass&&we(n.display.wrapper,n.display.scrollbars.addClass)}var eS=0;function xo(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:++eS,markArrays:null},N1(n.curOp)}function So(n){var i=n.curOp;i&&R1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;tS(a)})}function tS(n){for(var i=n.ops,a=0;a<i.length;a++)nS(i[a]);for(var l=0;l<i.length;l++)rS(i[l]);for(var u=0;u<i.length;u++)iS(i[u]);for(var g=0;g<i.length;g++)oS(i[g]);for(var y=0;y<i.length;y++)sS(i[y])}function nS(n){var i=n.cm,a=i.display;aS(i),n.updateMaxLine&&ff(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 rc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function rS(n){n.updatedDisplay=n.mustUpdate&&Lf(n.cm,n.update)}function iS(n){var i=n.cm,a=i.display;n.updatedDisplay&&ec(i),n.barMeasure=pl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Jp(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Wr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-go(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function oS(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&bo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ve(Ye(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&os(i,n.barMeasure),n.updatedDisplay&&Of(i,n.barMeasure),n.selectionChanged&&kf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&dg(n.cm)}function sS(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&bg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&gg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&bo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Z1(i,Xe(l,n.scrollToPos.from),Xe(l,n.scrollToPos.to),n.scrollToPos.margin);Y1(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Rt(g[w],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Rt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Rt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Wn(n,i){if(n.curOp)return i();xo(n);try{return i()}finally{So(n)}}function Yt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);xo(n);try{return i.apply(n,arguments)}finally{So(n)}}}function gn(n){return function(){if(this.curOp)return n.apply(this,arguments);xo(this);try{return n.apply(this,arguments)}finally{So(this)}}}function Zt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);xo(i);try{return n.apply(this,arguments)}finally{So(i)}}}function vl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,$(lS,n))}function lS(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ol(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,w=g.text.length>n.options.maxHighlightLength?Hr(i.mode,l.state):null,S=Cp(n,g,l,!0);w&&(l.state=w),g.styles=S.styles;var k=g.styleClasses,D=S.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var j=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),ee=0;!j&&ee<y.length;++ee)j=y[ee]!=g.styles[ee];j&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&of(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return vl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var g=0;g<u.length;g++)Ri(n,u[g],"text")})}}var rc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=tc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=go(n),this.force=a,this.dims=wf(n),this.events=[]};rc.prototype.signal=function(n,i){Bn(n,i)&&this.events.push(arguments)},rc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Rt.apply(null,this.events[n])};function aS(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Wr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Wr(n)+"px",i.scrollbarsClipped=!0)}function cS(n){if(n.hasFocus())return null;var i=ve(Ye(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Me(n).getSelection();l.anchorNode&&l.extend&&re(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function uS(n){if(!(!n||!n.activeElt||n.activeElt==ve(ze(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&re(document.body,n.anchorNode)&&re(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 Lf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Pi(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&&ug(n)==0)return!1;xg(n)&&(Pi(n),i.dims=wf(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)),ni&&(g=cf(n.doc,g),y=Hp(n.doc,y));var w=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;K1(n,g,y),a.viewOffset=ri(Ie(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=ug(n);if(!w&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=cS(n);return S>4&&(a.lineDiv.style.display="none"),fS(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,uS(k),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,vl(n,400)),a.updateLineNumbers=null,!0}function bg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==go(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+hf(n.display)-pf(n),a.top)}),i.visible=tc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=tc(n.display,n.doc,a));if(!Lf(n,i))break;ec(n);var u=pl(n);fl(n),os(n,u),Of(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 Mf(n,i){var a=new rc(n,i);if(Lf(n,a)){ec(n),bg(n,a);var l=pl(n);fl(n),os(n,l),Of(n,l),a.finish()}}function fS(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function w(ce){var pe=ce.nextSibling;return v&&W&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),pe}for(var S=l.view,k=l.viewFrom,D=0;D<S.length;D++){var j=S[D];if(!j.hidden)if(!j.node||j.node.parentNode!=g){var ee=z1(n,j,k,a);g.insertBefore(ee,y)}else{for(;y!=j.node;)y=w(y);var Y=u&&i!=null&&i<=k&&j.lineNumber;j.changes&&(ie(j.changes,"gutter")>-1&&(Y=!1),Up(n,j,k,a)),Y&&(O(j.lineNumber),j.lineNumber.appendChild(document.createTextNode(be(n.options,k)))),y=j.node.nextSibling}k+=j.size}for(;y;)y=w(y)}function Nf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Xt(n,"gutterChanged",n)}function Of(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+Wr(n)+"px"}function wg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=xf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var w=a[y].alignable;if(w)for(var S=0;S<w.length;S++)w[S].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function xg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=be(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(_("div",[_("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",Nf(n.display),!0}return!1}function Rf(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 Sg(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,w=i.appendChild(_("div",null,"CodeMirror-gutter "+g));y&&(w.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Nf(n)}function ml(n){Sg(n.display),Tn(n),wg(n)}function dS(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=z("div",null,"CodeMirror-code"),u.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=_("div",null,"CodeMirror-cursors"),u.measure=_("div",null,"CodeMirror-measure"),u.lineMeasure=_("div",null,"CodeMirror-measure"),u.lineSpace=z("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=z("div",[u.lineSpace],"CodeMirror-lines");u.mover=_("div",[g],null,"position: relative"),u.sizer=_("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=_("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=_("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=_("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=_("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Rf(l.gutters,l.lineNumbers),Sg(u),a.init(u)}var ic=0,oi=null;h?oi=-.53:s?oi=15:b?oi=-.7:L&&(oi=-1/3);function _g(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 hS(n){var i=_g(n);return i.x*=oi,i.y*=oi,i}function kg(n,i){b&&x==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=_g(i),l=a.x,u=a.y,g=oi;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,w=y.scroller,S=w.scrollWidth>w.clientWidth,k=w.scrollHeight>w.clientHeight;if(l&&S||u&&k){if(u&&W&&v){e:for(var D=i.target,j=y.view;D!=w;D=D.parentNode)for(var ee=0;ee<j.length;ee++)if(j[ee].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!C&&g!=null){u&&k&&hl(n,Math.max(0,w.scrollTop+u*g)),bo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&k)&&an(i),y.wheelStartX=null;return}if(u&&g!=null){var Y=u*g,ce=n.doc.scrollTop,pe=ce+y.wrapper.clientHeight;Y<0?ce=Math.max(0,ce+Y-50):pe=Math.min(n.doc.height,pe+Y+50),Mf(n,{top:ce,bottom:pe})}ic<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var xe=w.scrollLeft-y.wheelStartX,ke=w.scrollTop-y.wheelStartY,Le=ke&&y.wheelDY&&ke/y.wheelDY||xe&&y.wheelDX&&xe/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Le&&(oi=(oi*ic+Le)/(ic+1),++ic)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Qn=function(n,i){this.ranges=n,this.primIndex=i};Qn.prototype.primary=function(){return this.ranges[this.primIndex]},Qn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},Qn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Kt(this.ranges[i].anchor),Kt(this.ranges[i].head));return new Qn(n,this.primIndex)},Qn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Qn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ae(i,l.from())>=0&&Ae(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return Zo(this.anchor,this.head)},gt.prototype.to=function(){return kn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(ee,Y){return Ae(ee.from(),Y.from())}),a=ie(i,u);for(var g=1;g<i.length;g++){var y=i[g],w=i[g-1],S=Ae(w.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var k=Zo(w.from(),y.from()),D=kn(w.to(),y.to()),j=w.empty()?y.from()==y.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new gt(j?D:k,j?k:D))}}return new Qn(i,a)}function Ii(n,i){return new Qn([new gt(n,i||n)],0)}function $i(n){return n.text?ae(n.from.line+n.text.length-1,ge(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Tg(n,i){if(Ae(n,i.from)<0)return n;if(Ae(n,i.to)<=0)return $i(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+=$i(i).ch-i.to.ch),ae(a,l)}function Pf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(Tg(u.anchor,i),Tg(u.head,i)))}return _r(n.cm,a,n.sel.primIndex)}function Cg(n,i,a){return n.line==i.line?ae(a.line,n.ch-i.ch+a.ch):ae(a.line+(n.line-i.line),n.ch)}function pS(n,i,a){for(var l=[],u=ae(n.first,0),g=u,y=0;y<i.length;y++){var w=i[y],S=Cg(w.from,u,g),k=Cg($i(w),u,g);if(u=w.to,g=k,a=="around"){var D=n.sel.ranges[y],j=Ae(D.head,D.anchor)<0;l[y]=new gt(j?k:S,j?S:k)}else l[y]=new gt(S,S)}return new Qn(l,n.sel.primIndex)}function If(n){n.doc.mode=Ko(n.options,n.doc.modeOption),yl(n)}function yl(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,vl(n,100),n.state.modeGen++,n.curOp&&Tn(n)}function Eg(n,i){return i.from.ch==0&&i.to.ch==0&&ge(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function $f(n,i,a,l){function u(Le){return a?a[Le]:null}function g(Le,Te,Oe){S1(Le,Te,Oe,l),Xt(Le,"change",Le,i)}function y(Le,Te){for(var Oe=[],Be=Le;Be<Te;++Be)Oe.push(new Jo(k[Be],u(Be),l));return Oe}var w=i.from,S=i.to,k=i.text,D=Ie(n,w.line),j=Ie(n,S.line),ee=ge(k),Y=u(k.length-1),ce=S.line-w.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(Eg(n,i)){var pe=y(0,k.length-1);g(j,j.text,Y),ce&&n.remove(w.line,ce),pe.length&&n.insert(w.line,pe)}else if(D==j)if(k.length==1)g(D,D.text.slice(0,w.ch)+ee+D.text.slice(S.ch),Y);else{var xe=y(1,k.length-1);xe.push(new Jo(ee+D.text.slice(S.ch),Y,l)),g(D,D.text.slice(0,w.ch)+k[0],u(0)),n.insert(w.line+1,xe)}else if(k.length==1)g(D,D.text.slice(0,w.ch)+k[0]+j.text.slice(S.ch),u(0)),n.remove(w.line+1,ce);else{g(D,D.text.slice(0,w.ch)+k[0],u(0)),g(j,ee+j.text.slice(S.ch),Y);var ke=y(1,k.length-1);ce>1&&n.remove(w.line+1,ce-1),n.insert(w.line+1,ke)}Xt(n,"change",n,i)}function Di(n,i,a){function l(u,g,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var S=u.linked[w];if(S.doc!=g){var k=y&&S.sharedHist;a&&!k||(i(S.doc,k),l(S.doc,u,k))}}}l(n,null,!0)}function Ag(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Sf(n),If(n),Lg(n),n.options.direction=i.direction,n.options.lineWrapping||ff(n),n.options.mode=i.modeOption,Tn(n)}function Lg(n){(n.doc.direction=="rtl"?we:P)(n.display.lineDiv,"CodeMirror-rtl")}function gS(n){Wn(n,function(){Lg(n),Tn(n)})}function oc(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 Df(n,i){var a={from:Kt(i.from),to:$i(i),text:ti(n,i.from,i.to)};return Og(n,a,i.from.line,i.to.line+1),Di(n,function(l){return Og(l,a,i.from.line,i.to.line+1)},!0),a}function Mg(n){for(;n.length;){var i=ge(n);if(i.ranges)n.pop();else break}}function vS(n,i){if(i)return Mg(n.done),ge(n.done);if(n.done.length&&!ge(n.done).ranges)return ge(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ge(n.done)}function Ng(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=vS(u,u.lastOp==l)))w=ge(y.changes),Ae(i.from,i.to)==0&&Ae(i.from,w.to)==0?w.to=$i(i):y.changes.push(Df(n,i));else{var S=ge(u.done);for((!S||!S.ranges)&&sc(n.sel,u.done),y={changes:[Df(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Rt(n,"historyAdded")}function mS(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 yS(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||mS(n,g,ge(u.done),i))?u.done[u.done.length-1]=i:sc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&Mg(u.undone)}function sc(n,i){var a=ge(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Og(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 bS(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 wS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(bS(a[u]));return l}function Rg(n,i){var a=wS(n,i),l=lf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var w=0;w<y.length;++w){for(var S=y[w],k=0;k<g.length;++k)if(g[k].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function ss(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Qn.prototype.deepCopy.call(g):g);continue}var y=g.changes,w=[];l.push({changes:w});for(var S=0;S<y.length;++S){var k=y[S],D=void 0;if(w.push({from:k.from,to:k.to,text:k.text}),i)for(var j in k)(D=j.match(/^spans_(\d+)$/))&&ie(i,Number(D[1]))>-1&&(ge(w)[j]=k[j],delete k[j])}}return l}function zf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ae(i,u)<0;g!=Ae(a,u)<0?(u=i,i=a):g!=Ae(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function lc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),cn(n,new Qn([zf(n.sel.primary(),i,a,u)],0),l)}function Pg(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]=zf(n.sel.ranges[g],i[g],null,u);var y=_r(n.cm,l,n.sel.primIndex);cn(n,y,a)}function Ff(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,cn(n,_r(n.cm,u,n.sel.primIndex),l)}function Ig(n,i,a,l){cn(n,Ii(i,a),l)}function xS(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new gt(Xe(n,u[g].anchor),Xe(n,u[g].head))},origin:a&&a.origin};return Rt(n,"beforeSelectionChange",n,l),n.cm&&Rt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?_r(n.cm,l.ranges,l.ranges.length-1):i}function $g(n,i,a){var l=n.history.done,u=ge(l);u&&u.ranges?(l[l.length-1]=i,ac(n,i,a)):cn(n,i,a)}function cn(n,i,a){ac(n,i,a),yS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function ac(n,i,a){(Bn(n,"beforeSelectionChange")||n.cm&&Bn(n.cm,"beforeSelectionChange"))&&(i=xS(n,i,a));var l=a&&a.bias||(Ae(i.primary().head,n.sel.primary().head)<0?-1:1);Dg(n,Fg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&is(n.cm)}function Dg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,lr(n.cm)),Xt(n,"cursorActivity",n))}function zg(n){Dg(n,Fg(n,n.sel,null,!1))}function Fg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],S=cc(n,y.anchor,w&&w.anchor,a,l),k=y.head==y.anchor?S:cc(n,y.head,w&&w.head,a,l);(u||S!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(S,k))}return u?_r(n.cm,u,i.primIndex):i}function ls(n,i,a,l,u){var g=Ie(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var w=g.markedSpans[y],S=w.marker,k="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,D="selectRight"in S?!S.selectRight:S.inclusiveRight;if((w.from==null||(k?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(D?w.to>=i.ch:w.to>i.ch))){if(u&&(Rt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var j=S.find(l<0?1:-1),ee=void 0;if((l<0?D:k)&&(j=Hg(n,j,-l,j&&j.line==i.line?g:null)),j&&j.line==i.line&&(ee=Ae(j,a))&&(l<0?ee<0:ee>0))return ls(n,j,i,l,u)}var Y=S.find(l<0?-1:1);return(l<0?k:D)&&(Y=Hg(n,Y,l,Y.line==i.line?g:null)),Y?ls(n,Y,i,l,u):null}}return i}function cc(n,i,a,l,u){var g=l||1,y=ls(n,i,a,g,u)||!u&&ls(n,i,a,g,!0)||ls(n,i,a,-g,u)||!u&&ls(n,i,a,-g,!0);return y||(n.cantEdit=!0,ae(n.first,0))}function Hg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Xe(n,ae(i.line-1)):null:a>0&&i.ch==(l||Ie(n,i.line)).text.length?i.line<n.first+n.size-1?ae(i.line+1,0):null:new ae(i.line,i.ch+a)}function Bg(n){n.setSelection(ae(n.firstLine(),0),ae(n.lastLine()),X)}function Wg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,w){u&&(l.from=Xe(n,u)),g&&(l.to=Xe(n,g)),y&&(l.text=y),w!==void 0&&(l.origin=w)}),Rt(n,"beforeChange",n,l),n.cm&&Rt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function as(n,i,a){if(n.cm){if(!n.cm.curOp)return Yt(n.cm,as)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"))&&(i=Wg(n,i,!0),!i))){var l=Rp&&!a&&y1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)qg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else qg(n,i)}}function qg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ae(i.from,i.to)==0)){var a=Pf(n,i);Ng(n,i,a,n.cm?n.cm.curOp.id:NaN),bl(n,i,a,lf(n,i));var l=[];Di(n,function(u,g){!g&&ie(l,u.history)==-1&&(Gg(u.history,i),l.push(u.history)),bl(u,i,null,lf(u,i))})}}function uc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,w=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,k=0;k<w.length&&(g=w[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(sc(g,S),a&&!g.equals(n.sel)){cn(n,g,{clearRedo:!1});return}y=g}else if(l){w.push(g);return}else break;var D=[];sc(y,S),S.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var j=Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"),ee=function(pe){var xe=g.changes[pe];if(xe.origin=i,j&&!Wg(n,xe,!1))return w.length=0,{};D.push(Df(n,xe));var ke=pe?Pf(n,xe):ge(w);bl(n,xe,ke,Rg(n,xe)),!pe&&n.cm&&n.cm.scrollIntoView({from:xe.from,to:$i(xe)});var Le=[];Di(n,function(Te,Oe){!Oe&&ie(Le,Te.history)==-1&&(Gg(Te.history,xe),Le.push(Te.history)),bl(Te,xe,null,Rg(Te,xe))})},Y=g.changes.length-1;Y>=0;--Y){var ce=ee(Y);if(ce)return ce.v}}}}function jg(n,i){if(i!=0&&(n.first+=i,n.sel=new Qn(ye(n.sel.ranges,function(u){return new gt(ae(u.anchor.line+i,u.anchor.ch),ae(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){Tn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ri(n.cm,l,"gutter")}}function bl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Yt(n.cm,bl)(n,i,a,l);if(i.to.line<n.first){jg(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);jg(n,u),i={from:ae(n.first,0),to:ae(i.to.line+u,i.to.ch),text:[ge(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ae(g,Ie(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ti(n,i.from,i.to),a||(a=Pf(n,i)),n.cm?SS(n.cm,i,l):$f(n,i,l),ac(n,a,X),n.cantEdit&&cc(n,ae(n.firstLine(),0))&&(n.cantEdit=!1)}}function SS(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,w=!1,S=g.line;n.options.lineWrapping||(S=T(xr(Ie(l,g.line))),l.iter(S,y.line+1,function(Y){if(Y==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&lr(n),$f(l,i,a,cg(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(Y){var ce=Ga(Y);ce>u.maxLineLength&&(u.maxLine=Y,u.maxLineLength=ce,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),f1(l,g.line),vl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?Tn(n):g.line==y.line&&i.text.length==1&&!Eg(n.doc,i)?Ri(n,g.line,"text"):Tn(n,g.line,y.line+1,k);var D=Bn(n,"changes"),j=Bn(n,"change");if(j||D){var ee={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};j&&Xt(n,"change",n,ee),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(ee)}n.display.selForContextMenu=null}function cs(n,i,a,l,u){var g;l||(l=a),Ae(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),as(n,{from:a,to:l,text:i,origin:u})}function Ug(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Vg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)Ug(g.ranges[w].anchor,i,a,l),Ug(g.ranges[w].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var k=g.changes[S];if(a<k.from.line)k.from=ae(k.from.line+l,k.from.ch),k.to=ae(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Gg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Vg(n.done,a,l,u),Vg(n.undone,a,l,u)}function wl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Ie(n,kp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Ri(n.cm,u,a),g)}function xl(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}xl.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,_1(u),Xt(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 Sl(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}Sl.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 xl))){var w=[];this.collapse(w),this.children=[new xl(w)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,w=y;w<u.lines.length;){var S=new xl(u.lines.slice(w,w+=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 Sl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ie(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Sl(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 _l=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};_l.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=cl(this);Jn(a,Math.max(0,a.height-g)),n&&(Wn(n,function(){Kg(n,a,-g),Ri(n,l,"widget")}),Xt(n,"lineWidgetCleared",n,this,l))}},_l.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=cl(this)-i;u&&(Oi(this.doc,l)||Jn(l,l.height+u),a&&Wn(a,function(){a.curOp.forceUpdate=!0,Kg(a,l,u),Xt(a,"lineWidgetChanged",a,n,T(l))}))},vr(_l);function Kg(n,i,a){ri(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Af(n,a)}function _S(n,i,a,l){var u=new _l(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),wl(n,i,"widget",function(y){var w=y.widgets||(y.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Oi(n,y)){var S=ri(y)<n.scrollTop;Jn(y,y.height+cl(u)),S&&Af(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Xt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Xg=0,zi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Xg};zi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&xo(n),Bn(this,"clear")){var a=this.find();a&&Xt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],w=sl(y.markedSpans,this);n&&!this.collapsed?Ri(n,T(y),"text"):n&&(w.to!=null&&(u=T(y)),w.from!=null&&(l=T(y))),y.markedSpans=p1(y.markedSpans,w),w.from==null&&this.collapsed&&!Oi(this.doc,y)&&n&&Jn(y,ts(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var k=xr(this.lines[S]),D=Ga(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&Tn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&zg(n.doc)),n&&Xt(n,"markerCleared",n,this,l,u),i&&So(n),this.parent&&this.parent.clear()}},zi.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=sl(g.markedSpans,this);if(y.from!=null&&(a=ae(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=ae(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},zi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Wn(l,function(){var u=i.line,g=T(i.line),y=gf(l,g);if(y&&(tg(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Oi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var S=cl(a)-w;S&&Jn(u,u.height+S)}Xt(l,"markerChanged",l,n)})},zi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ie(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},zi.prototype.detachLine=function(n){if(this.lines.splice(ie(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},vr(zi);function us(n,i,a,l,u){if(l&&l.shared)return kS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Yt(n.cm,us)(n,i,a,l,u);var g=new zi(n,u),y=Ae(i,a);if(l&&G(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=z("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Fp(n,i.line,i,a,g)||i.line!=a.line&&Fp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");h1()}g.addToHistory&&Ng(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,S=n.cm,k;if(n.iter(w,a.line+1,function(j){S&&g.collapsed&&!S.options.lineWrapping&&xr(j)==S.display.maxLine&&(k=!0),g.collapsed&&w!=i.line&&Jn(j,0),g1(j,new qa(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(j){Oi(n,j)&&Jn(j,0)}),g.clearOnEnter&&He(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(d1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Xg,g.atomic=!0),S){if(k&&(S.curOp.updateMaxLine=!0),g.collapsed)Tn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)Ri(S,D,"text");g.atomic&&zg(S.doc),Xt(S,"markerAdded",S,g)}return g}var kl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};kl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Xt(this,"clear")}},kl.prototype.find=function(n,i){return this.primary.find(n,i)},vr(kl);function kS(n,i,a,l,u){l=G(l),l.shared=!1;var g=[us(n,i,a,l,u)],y=g[0],w=l.widgetNode;return Di(n,function(S){w&&(l.widgetNode=w.cloneNode(!0)),g.push(us(S,Xe(S,i),Xe(S,a),l,u));for(var k=0;k<S.linked.length;++k)if(S.linked[k].isParent)return;y=ge(g)}),new kl(g,y)}function Yg(n){return n.findMarks(ae(n.first,0),n.clipPos(ae(n.lastLine())),function(i){return i.parent})}function TS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Ae(g,y)){var w=us(n,g,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function CS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Di(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];ie(g,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var ES=0,Cn=function(n,i,a,l,u){if(!(this instanceof Cn))return new Cn(n,i,a,l,u);a==null&&(a=0),Sl.call(this,[new xl([new Jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ae(a,0);this.sel=Ii(g),this.history=new oc(null),this.id=++ES,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),$f(this,{from:g,to:g,text:n}),cn(this,Ii(g),X)};Cn.prototype=Fe(Sl.prototype,{constructor:Cn,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=il(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Zt(function(n){var i=ae(this.first,0),a=this.first+this.size-1;as(this,{from:i,to:ae(a,Ie(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&dl(this.cm,0,0),cn(this,Ii(i),X)}),replaceRange:function(n,i,a,l){i=Xe(this,i),a=a?Xe(this,a):i,cs(this,n,i,a,l)},getRange:function(n,i,a){var l=ti(this,Xe(this,n),Xe(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(fe(this,n))return Ie(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Ie(this,n)),xr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Xe(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:Zt(function(n,i,a){Ig(this,Xe(this,typeof n=="number"?ae(n,i||0):n),null,a)}),setSelection:Zt(function(n,i,a){Ig(this,Xe(this,n),Xe(this,i||n),a)}),extendSelection:Zt(function(n,i,a){lc(this,Xe(this,n),i&&Xe(this,i),a)}),extendSelections:Zt(function(n,i){Pg(this,Tp(this,n),i)}),extendSelectionsBy:Zt(function(n,i){var a=ye(this.sel.ranges,n);Pg(this,Tp(this,a),i)}),setSelections:Zt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(Xe(this,n[u].anchor),Xe(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),cn(this,_r(this.cm,l,i),a)}}),addSelection:Zt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(Xe(this,n),Xe(this,i||n))),cn(this,_r(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=ti(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=ti(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:Zt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&pS(this,l,i),S=l.length-1;S>=0;S--)as(this,l[S]);w?$g(this,w):this.cm&&is(this.cm)}),undo:Zt(function(){uc(this,"undo")}),redo:Zt(function(){uc(this,"redo")}),undoSelection:Zt(function(){uc(this,"undo",!0)}),redoSelection:Zt(function(){uc(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 oc(this.history),Di(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:ss(this.history.done),undone:ss(this.history.undone)}},setHistory:function(n){var i=this.history=new oc(this.history);i.done=ss(n.done.slice(0),null,!0),i.undone=ss(n.undone.slice(0),null,!0)},setGutterMarker:Zt(function(n,i,a){return wl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ut(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Zt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&wl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ut(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Ie(this,n),!n))return null}else if(i=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:Zt(function(n,i,a){return wl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(V(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Zt(function(n,i,a){return wl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(V(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Zt(function(n,i,a){return _S(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return us(this,Xe(this,n),Xe(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=Xe(this,n),us(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Xe(this,n);var i=[],a=Ie(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Xe(this,n),i=Xe(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var w=0;w<y.length;w++){var S=y[w];!(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}),Xe(this,ae(a,i))},indexFromPos:function(n){n=Xe(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 Cn(il(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 Cn(il(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],TS(l,Yg(this)),l},unlinkDoc:function(n){if(n instanceof Tt&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),CS(Yg(this));break}}if(n.history==this.history){var l=[n.id];Di(n,function(u){return l.push(u.id)},!0),n.history=new oc(null),n.history.done=ss(this.history.done,l),n.history.undone=ss(this.history.undone,l)}},iterLinkedDocs:function(n){Di(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):ar(n)},lineSeparator:function(){return this.lineSep||`
29
+ `},setDirection:Zt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&gS(this.cm))})}),Cn.prototype.eachLine=Cn.prototype.iter;var Zg=0;function AS(n){var i=this;if(Jg(i),!(Pt(i,n)||ii(i.display,n))){an(n),h&&(Zg=+new Date);var a=mo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,w=function(){++y==u&&Yt(i,function(){a=Xe(i.doc,a);var Y={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};as(i.doc,Y),$g(i.doc,Ii(Xe(i.doc,a),Xe(i.doc,$i(Y))))})()},S=function(Y,ce){if(i.options.allowDropFileTypes&&ie(i.options.allowDropFileTypes,Y.type)==-1){w();return}var pe=new FileReader;pe.onerror=function(){return w()},pe.onload=function(){var xe=pe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(xe)){w();return}g[ce]=xe,w()},pe.readAsText(Y)},k=0;k<l.length;k++)S(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var j;if(i.state.draggingText&&!i.state.draggingText.copy&&(j=i.listSelections()),ac(i.doc,Ii(a,a)),j)for(var ee=0;ee<j.length;++ee)cs(i.doc,"",j[ee].anchor,j[ee].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function LS(n,i){if(h&&(!n.state.draggingText||+new Date-Zg<100)){Ai(i);return}if(!(Pt(n,i)||ii(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=_("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),C&&a.parentNode.removeChild(a)}}function MS(n,i){var a=mo(n,i);if(a){var l=document.createDocumentFragment();_f(n,a,l),n.display.dragCursor||(n.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),N(n.display.dragCursor,l)}}function Jg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Qg(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 ev=!1;function NS(){ev||(OS(),ev=!0)}function OS(){var n;He(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Qg(RS)},100))}),He(window,"blur",function(){return Qg(rs)})}function RS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Fi={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"},Tl=0;Tl<10;Tl++)Fi[Tl+48]=Fi[Tl+96]=String(Tl);for(var fc=65;fc<=90;fc++)Fi[fc]=String.fromCharCode(fc);for(var Cl=1;Cl<=12;Cl++)Fi[Cl+111]=Fi[Cl+63235]="F"+Cl;var si={};si.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"},si.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"},si.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"},si.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"]},si.default=W?si.macDefault:si.pcDefault;function PS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function IS(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),PS),g=0;g<u.length;g++){var y=void 0,w=void 0;g==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,g+1).join(" "),y="...");var S=i[w];if(!S)i[w]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var k in i)n[k]=i[k];return n}function fs(n,i,a,l){i=dc(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 fs(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=fs(n,i.fallthrough[g],a,l);if(y)return y}}}function tv(n){var i=typeof n=="string"?n:Fi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function nv(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Z?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Z?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function rv(n,i){if(C&&n.keyCode==34&&n.char)return!1;var a=Fi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),nv(a,n,i))}function dc(n){return typeof n=="string"?si[n]:n}function ds(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ae(g.from,ge(l).to)<=0;){var y=l.pop();if(Ae(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Wn(n,function(){for(var w=l.length-1;w>=0;w--)cs(n.doc,"",l[w].from,l[w].to,"+delete");is(n)})}function Hf(n,i,a){var l=Gt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Bf(n,i,a){var l=Hf(n,i.ch,a);return l==null?null:new ae(i.line,l,a<0?"after":"before")}function Wf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=tt(a,i.doc.direction);if(g){var y=u<0?ge(g):g[0],w=u<0==(y.level==1),S=w?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=es(i,a);k=u<0?a.text.length-1:0;var j=qr(i,D,k).top;k=Bt(function(ee){return qr(i,D,ee).top==j},u<0==(y.level==1)?y.from:y.to-1,k),S=="before"&&(k=Hf(a,k,1))}else k=u<0?y.to:y.from;return new ae(l,k,S)}}return new ae(l,u<0?a.text.length:0,u<0?"before":"after")}function $S(n,i,a,l){var u=tt(i,n.doc.direction);if(!u)return Bf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=zt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Bf(i,a,l);var w=function(ke,Le){return Hf(i,ke instanceof ae?ke.ch:ke,Le)},S,k=function(ke){return n.options.lineWrapping?(S=S||es(n,i),ag(n,i,S,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var j=y.level==1==l<0,ee=w(a,j?1:-1);if(ee!=null&&(j?ee<=y.to&&ee<=D.end:ee>=y.from&&ee>=D.begin)){var Y=j?"before":"after";return new ae(a.line,ee,Y)}}var ce=function(ke,Le,Te){for(var Oe=function(St,Jt){return Jt?new ae(a.line,w(St,1),"before"):new ae(a.line,St,"after")};ke>=0&&ke<u.length;ke+=Le){var Be=u[ke],De=Le>0==(Be.level!=1),et=De?Te.begin:w(Te.end,-1);if(Be.from<=et&&et<Be.to||(et=De?Be.from:w(Be.to,-1),Te.begin<=et&&et<Te.end))return Oe(et,De)}},pe=ce(g+l,l,D);if(pe)return pe;var xe=l>0?D.end:w(D.begin,-1);return xe!=null&&!(l>0&&xe==i.text.length)&&(pe=ce(l>0?0:u.length-1,l,k(xe)),pe)?pe:null}var El={selectAll:Bg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),X)},killLine:function(n){return ds(n,function(i){if(i.empty()){var a=Ie(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ae(i.head.line+1,0)}:{from:i.head,to:ae(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ds(n,function(i){return{from:ae(i.from().line,0),to:Xe(n.doc,ae(i.to().line+1,0))}})},delLineLeft:function(n){return ds(n,function(i){return{from:ae(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ds(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 ds(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(ae(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ae(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return iv(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return ov(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return DS(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?ov(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=Q(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Ie(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ae(u.line,u.ch-1)),u.ch>0)u=new ae(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ae(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Ie(n.doc,u.line-1).text;y&&(u=new ae(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ae(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);is(n)})},openLine:function(n){return n.replaceSelection(`
30
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function iv(n,i){var a=Ie(n.doc,i),l=xr(a);return l!=a&&(i=T(l)),Wf(!0,n,l,i,1)}function DS(n,i){var a=Ie(n.doc,i),l=w1(a);return l!=a&&(i=T(l)),Wf(!0,n,a,i,-1)}function ov(n,i){var a=iv(n,i.line),l=Ie(n.doc,a.line),u=tt(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return ae(a.line,y?0:g,a.sticky)}return a}function hc(n,i,a){if(typeof i=="string"&&(i=El[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=F}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function zS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=fs(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&fs(i,n.options.extraKeys,a,n)||fs(i,n.options.keyMap,a,n)}var FS=new le;function Al(n,i,a,l){var u=n.state.keySeq;if(u){if(tv(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:FS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),sv(n,u+" "+i,a,l))return!0}return sv(n,i,a,l)}function sv(n,i,a,l){var u=zS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Xt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(an(a),kf(n)),!!u}function lv(n,i){var a=rv(i,!0);return a?i.shiftKey&&!n.state.keySeq?Al(n,"Shift-"+a,i,function(l){return hc(n,l,!0)})||Al(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return hc(n,l)}):Al(n,a,i,function(l){return hc(n,l)}):!1}function HS(n,i,a){return Al(n,"'"+a+"'",i,function(l){return hc(n,l,!0)})}var qf=null;function av(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ve(Ye(i)),!Pt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=lv(i,n);C&&(qf=l?a:null,!l&&a==88&&!Ba&&(W?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!W&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&BS(i)}}function BS(n){var i=n.display.lineDiv;we(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(P(i,"CodeMirror-crosshair"),ln(document,"keyup",a),ln(document,"mouseover",a))}He(document,"keyup",a),He(document,"mouseover",a)}function cv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,n)}function uv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ii(i.display,n)||Pt(i,n)||n.ctrlKey&&!n.altKey||W&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(C&&a==qf){qf=null,an(n);return}if(!(C&&(!n.which||n.which<10)&&lv(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(HS(i,n,u)||i.display.input.onKeyPress(n))}}}var WS=400,jf=function(n,i,a){this.time=n,this.pos=i,this.button=a};jf.prototype.compare=function(n,i,a){return this.time+WS>n&&Ae(i,this.pos)==0&&a==this.button};var Ll,Ml;function qS(n,i){var a=+new Date;return Ml&&Ml.compare(a,n,i)?(Ll=Ml=null,"triple"):Ll&&Ll.compare(a,n,i)?(Ml=new jf(a,n,i),Ll=null,"double"):(Ll=new jf(a,n,i),Ml=null,"single")}function fv(n){var i=this,a=i.display;if(!(Pt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ii(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Uf(i,n)){var l=mo(i,n),u=mr(n),g=l?qS(l,u):"single";Me(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&jS(i,u,l,g,n))&&(u==1?l?VS(i,l,g,n):tl(n)==a.scroller&&an(n):u==2?(l&&lc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(K?i.display.input.onContextMenu(n):Tf(i)))}}}function jS(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,Al(n,nv(g,u),u,function(y){if(typeof y=="string"&&(y=El[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=F}finally{n.state.suppressEdits=!1}return w})}function US(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=U?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=W?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(W?a.altKey:a.ctrlKey)),u}function VS(n,i,a,l){h?setTimeout($(dg,n),0):n.curOp.focus=ve(Ye(n));var u=US(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&nf&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ae((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ae(y.to(),i)>0||i.xRel<0)?GS(n,l,i,u):KS(n,l,i,u)}function GS(n,i,a,l){var u=n.display,g=!1,y=Yt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Tf(n)),ln(u.wrapper.ownerDocument,"mouseup",y),ln(u.wrapper.ownerDocument,"mousemove",w),ln(u.scroller,"dragstart",S),ln(u.scroller,"drop",y),g||(an(k),l.addNew||lc(n.doc,a,null,null,l.extend),v&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,He(u.wrapper.ownerDocument,"mouseup",y),He(u.wrapper.ownerDocument,"mousemove",w),He(u.scroller,"dragstart",S),He(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function dv(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(ae(i.line,0),Xe(n.doc,ae(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function KS(n,i,a,l){h&&Tf(n);var u=n.display,g=n.doc;an(i);var y,w,S=g.sel,k=S.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?y=k[w]:y=new gt(a,a)):(y=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=mo(n,i,!0,!0),w=-1;else{var D=dv(n,a,l.unit);l.extend?y=zf(y,D.anchor,D.head,l.extend):y=D}l.addNew?w==-1?(w=k.length,cn(g,_r(n,k.concat([y]),w),{scroll:!1,origin:"*mouse"})):k.length>1&&k[w].empty()&&l.unit=="char"&&!l.extend?(cn(g,_r(n,k.slice(0,w).concat(k.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Ff(g,w,y,ue):(w=0,cn(g,new Qn([y],0),ue),S=g.sel);var j=a;function ee(Te){if(Ae(j,Te)!=0)if(j=Te,l.unit=="rectangle"){for(var Oe=[],Be=n.options.tabSize,De=Q(Ie(g,a.line).text,a.ch,Be),et=Q(Ie(g,Te.line).text,Te.ch,Be),St=Math.min(De,et),Jt=Math.max(De,et),Nt=Math.min(a.line,Te.line),qn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Nt<=qn;Nt++){var En=Ie(g,Nt).text,Wt=de(En,St,Be);St==Jt?Oe.push(new gt(ae(Nt,Wt),ae(Nt,Wt))):En.length>Wt&&Oe.push(new gt(ae(Nt,Wt),ae(Nt,de(En,Jt,Be))))}Oe.length||Oe.push(new gt(a,a)),cn(g,_r(n,S.ranges.slice(0,w).concat(Oe),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var An=y,on=dv(n,Te,l.unit),Ut=An.anchor,qt;Ae(on.anchor,Ut)>0?(qt=on.head,Ut=Zo(An.from(),on.anchor)):(qt=on.anchor,Ut=kn(An.to(),on.head));var $t=S.ranges.slice(0);$t[w]=XS(n,new gt(Xe(g,Ut),qt)),cn(g,_r(n,$t,w),ue)}}var Y=u.wrapper.getBoundingClientRect(),ce=0;function pe(Te){var Oe=++ce,Be=mo(n,Te,!0,l.unit=="rectangle");if(Be)if(Ae(Be,j)!=0){n.curOp.focus=ve(Ye(n)),ee(Be);var De=tc(u,g);(Be.line>=De.to||Be.line<De.from)&&setTimeout(Yt(n,function(){ce==Oe&&pe(Te)}),150)}else{var et=Te.clientY<Y.top?-20:Te.clientY>Y.bottom?20:0;et&&setTimeout(Yt(n,function(){ce==Oe&&(u.scroller.scrollTop+=et,pe(Te))}),50)}}function xe(Te){n.state.selectingText=!1,ce=1/0,Te&&(an(Te),u.input.focus()),ln(u.wrapper.ownerDocument,"mousemove",ke),ln(u.wrapper.ownerDocument,"mouseup",Le),g.history.lastSelOrigin=null}var ke=Yt(n,function(Te){Te.buttons===0||!mr(Te)?xe(Te):pe(Te)}),Le=Yt(n,xe);n.state.selectingText=Le,He(u.wrapper.ownerDocument,"mousemove",ke),He(u.wrapper.ownerDocument,"mouseup",Le)}function XS(n,i){var a=i.anchor,l=i.head,u=Ie(n.doc,a.line);if(Ae(a,l)==0&&a.sticky==l.sticky)return i;var g=tt(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),w=g[y];if(w.from!=a.ch&&w.to!=a.ch)return i;var S=y+(w.from==a.ch==(w.level!=1)?0:1);if(S==0||S==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=zt(g,l.ch,l.sticky),j=D-y||(l.ch-a.ch)*(w.level==1?-1:1);D==S-1||D==S?k=j<0:k=j>0}var ee=g[S+(k?-1:0)],Y=k==(ee.level==1),ce=Y?ee.from:ee.to,pe=Y?"after":"before";return a.ch==ce&&a.sticky==pe?i:new gt(new ae(a.line,ce,pe),l)}function hv(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&&an(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(g>w.bottom||!Bn(n,a))return _n(i);g-=w.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var k=y.gutters.childNodes[S];if(k&&k.getBoundingClientRect().right>=u){var D=q(n.doc,g),j=n.display.gutterSpecs[S];return Rt(n,a,n,D,j.className,i),_n(i)}}}function Uf(n,i){return hv(n,i,"gutterClick",!0)}function pv(n,i){ii(n.display,i)||YS(n,i)||Pt(n,i,"contextmenu")||K||n.display.input.onContextMenu(i)}function YS(n,i){return Bn(n,"gutterContextMenu")?hv(n,i,"gutterContextMenu",!1):!1}function gv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ul(n)}var hs={toString:function(){return"CodeMirror.Init"}},vv={},pc={};function ZS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(w,S,k){k!=hs&&g(w,S,k)}:g)}n.defineOption=a,n.Init=hs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,If(l)},!0),a("indentUnit",2,If,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){yl(l),ul(l),Tn(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 k=0;;){var D=S.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(ae(y,D))}y++});for(var w=g.length-1;w>=0;w--)cs(l.doc,u,g[w],ae(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=hs&&l.refresh()}),a("specialCharPlaceholder",C1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!oe),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){gv(l),ml(l)},!0),a("keyMap","default",function(l,u,g){var y=dc(u),w=g!=hs&&dc(g);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,QS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Rf(u,l.options.lineNumbers),ml(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?xf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return os(l)},!0),a("scrollbarStyle","native",function(l){yg(l),os(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=Rf(l.options.gutters,u),ml(l)},!0),a("firstLineNumber",1,ml,!0),a("lineNumberFormatter",function(l){return l},ml,!0),a("showCursorWhenSelecting",!1,fl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(rs(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,JS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,fl,!0),a("singleCursorHeightPerLine",!0,fl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,yl,!0),a("addModeClass",!1,yl,!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,yl,!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 JS(n,i,a){var l=a&&a!=hs;if(!i!=!l){var u=n.display.dragFunctions,g=i?He:ln;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 QS(n){n.options.lineWrapping?(we(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(P(n.display.wrapper,"CodeMirror-wrap"),ff(n)),Sf(n),Tn(n),ul(n),setTimeout(function(){return os(n)},100)}function Tt(n,i){var a=this;if(!(this instanceof Tt))return new Tt(n,i);this.options=i=i?G(i):{},G(vv,i,!1);var l=i.value;typeof l=="string"?l=new Cn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Tt.inputStyles[i.inputStyle](this),g=this.display=new dS(n,l,u,i);g.wrapper.CodeMirror=this,gv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!E&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),e_(this),NS(),xo(this),this.curOp.forceUpdate=!0,Ag(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Cf(a)},20):rs(this);for(var y in pc)pc.hasOwnProperty(y)&&pc[y](this,i[y],hs);xg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Vf.length;++w)Vf[w](this);So(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Tt.defaults=vv,Tt.optionHandlers=pc;function e_(n){var i=n.display;He(i.scroller,"mousedown",Yt(n,fv)),h&&p<11?He(i.scroller,"dblclick",Yt(n,function(S){if(!Pt(n,S)){var k=mo(n,S);if(!(!k||Uf(n,S)||ii(n.display,S))){an(S);var D=n.findWordAt(k);lc(n.doc,D.anchor,D.head)}}})):He(i.scroller,"dblclick",function(S){return Pt(n,S)||an(S)}),He(i.scroller,"contextmenu",function(S){return pv(n,S)}),He(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||pv(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 k=S.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(S,k){if(k.left==null)return!0;var D=k.left-S.left,j=k.top-S.top;return D*D+j*j>400}He(i.scroller,"touchstart",function(S){if(!Pt(n,S)&&!g(S)&&!Uf(n,S)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),He(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),He(i.scroller,"touchend",function(S){var k=i.activeTouch;if(k&&!ii(i,S)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),j;!k.prev||y(k,k.prev)?j=new gt(D,D):!k.prev.prev||y(k,k.prev.prev)?j=n.findWordAt(D):j=new gt(ae(D.line,0),Xe(n.doc,ae(D.line+1,0))),n.setSelection(j.anchor,j.head),n.focus(),an(S)}u()}),He(i.scroller,"touchcancel",u),He(i.scroller,"scroll",function(){i.scroller.clientHeight&&(hl(n,i.scroller.scrollTop),bo(n,i.scroller.scrollLeft,!0),Rt(n,"scroll",n))}),He(i.scroller,"mousewheel",function(S){return kg(n,S)}),He(i.scroller,"DOMMouseScroll",function(S){return kg(n,S)}),He(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Pt(n,S)||Ai(S)},over:function(S){Pt(n,S)||(MS(n,S),Ai(S))},start:function(S){return LS(n,S)},drop:Yt(n,AS),leave:function(S){Pt(n,S)||Jg(n)}};var w=i.input.getField();He(w,"keyup",function(S){return cv.call(n,S)}),He(w,"keydown",Yt(n,av)),He(w,"keypress",Yt(n,uv)),He(w,"focus",function(S){return Cf(n,S)}),He(w,"blur",function(S){return rs(n,S)})}var Vf=[];Tt.defineInitHook=function(n){return Vf.push(n)};function Nl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=ol(n,i).state:a="prev");var y=n.options.tabSize,w=Ie(u,i),S=Q(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var k=w.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(w.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,w.text.slice(k.length),w.text),D==F||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=Q(Ie(u,i-1).text,null,y):D=0:a=="add"?D=S+n.options.indentUnit:a=="subtract"?D=S-n.options.indentUnit:typeof a=="number"&&(D=S+a),D=Math.max(0,D);var j="",ee=0;if(n.options.indentWithTabs)for(var Y=Math.floor(D/y);Y;--Y)ee+=y,j+=" ";if(ee<D&&(j+=Ee(D-ee)),j!=k)return cs(u,j,ae(i,0),ae(i,k.length),"+input"),w.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var pe=u.sel.ranges[ce];if(pe.head.line==i&&pe.head.ch<k.length){var xe=ae(i,k.length);Ff(u,ce,new gt(xe,xe));break}}}var kr=null;function gc(n){kr=n}function Gf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,S=ar(i),k=null;if(w&&l.ranges.length>1)if(kr&&kr.text.join(`
31
31
  `)==i){if(l.ranges.length%kr.text.length==0){k=[];for(var D=0;D<kr.text.length;D++)k.push(g.splitLines(kr.text[D]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=ye(S,function(ke){return[ke]}));for(var j=n.curOp.updateInput,ee=l.ranges.length-1;ee>=0;ee--){var Y=l.ranges[ee],ce=Y.from(),pe=Y.to();Y.empty()&&(a&&a>0?ce=ae(ce.line,ce.ch-a):n.state.overwrite&&!w?pe=ae(pe.line,Math.min(Ie(g,pe.line).text.length,pe.ch+ge(S).length)):w&&kr&&kr.lineWise&&kr.text.join(`
32
32
  `)==S.join(`
33
33
  `)&&(ce=pe=ae(ce.line,0)));var xe={from:ce,to:pe,text:k?k[ee%k.length]:S,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};as(n.doc,xe),Xt(n,"inputRead",n,xe)}i&&!w&&yv(n,i),is(n),n.curOp.updateInput<2&&(n.curOp.updateInput=j),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function mv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return Gf(i,a,0,null,"paste")}),!0}function yv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){y=Nl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Ie(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Nl(n,u.head.line,"smart"));y&&Xt(n,"electricInput",n,u.head.line)}}}function bv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:ae(u,0),head:ae(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Kf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function wv(){var n=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),R&&(n.style.border="1px solid black"),i}function t_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Me(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Yt(this,i[l])(this,u,y),Rt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](dc(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:gn(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++,Tn(this)}),removeOverlay:gn(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++,Tn(this);return}}}),indentLine:gn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),fe(this.doc,l)&&Nl(this,l,u,g)}),indentSelection:gn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>g&&(Nl(this,w.head.line,l,!0),g=w.head.line,y==this.doc.sel.primIndex&&is(this));else{var S=w.from(),k=w.to(),D=Math.max(g,S.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var j=D;j<g;++j)Nl(this,j,l);var ee=this.doc.sel.ranges;S.ch==0&&u.length==ee.length&&ee[y].from().ch>0&&Ff(this.doc,y,new gt(S,ee[y].to()),X)}}}),getTokenAt:function(l,u){return Mp(this,l,u)},getLineTokens:function(l,u){return Mp(this,ae(l),u,!0)},getTokenTypeAt:function(l){l=Xe(this.doc,l);var u=Ep(this,Ie(this.doc,l.line)),g=0,y=(u.length-1)/2,w=l.ch,S;if(w==0)S=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=w)y=k;else if(u[k*2+1]<w)g=k+1;else{S=u[k*2+2];break}}var D=S?S.indexOf("overlay "):-1;return D<0?S:D==0?null:S.slice(0,D-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&g.push(y[w[u]]);else if(w[u])for(var S=0;S<w[u].length;S++){var k=y[w[u][S]];k&&g.push(k)}else w.helperType&&y[w.helperType]?g.push(y[w.helperType]):y[w.name]&&g.push(y[w.name]);for(var D=0;D<y._global.length;D++){var j=y._global[D];j.pred(w,this)&&ie(g,j.val)==-1&&g.push(j.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=kp(g,l??g.first+g.size-1),ol(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=Xe(this.doc,l):g=l?y.from():y.to(),Sr(this,g,u||"page")},charCoords:function(l,u){return Za(this,Xe(this.doc,l),u||"page")},coordsChar:function(l,u){return l=og(this,l,u||"page"),yf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=og(this,{top:l,left:0},u||"page").top,q(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,w;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),w=Ie(this.doc,l)}else w=l;return Ya(this,w,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ri(w):0)},defaultTextHeight:function(){return ts(this.display)},defaultCharWidth:function(){return ns(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,w){var S=this.display;l=Sr(this,Xe(this.doc,l));var k=l.bottom,D=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var j=Math.max(S.wrapper.clientHeight,this.doc.height),ee=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>j)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=j&&(k=l.bottom),D+u.offsetWidth>ee&&(D=ee-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",w=="right"?(D=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?D=0:w=="middle"&&(D=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=D+"px"),g&&J1(this,{left:D,top:k,right:D+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:gn(av),triggerOnKeyPress:gn(uv),triggerOnKeyUp:cv,triggerOnMouseDown:gn(fv),execCommand:function(l){if(El.hasOwnProperty(l))return El[l].call(null,this)},triggerElectric:gn(function(l){yv(this,l)}),findPosH:function(l,u,g,y){var w=1;u<0&&(w=-1,u=-u);for(var S=Xe(this.doc,l),k=0;k<u&&(S=Xf(this.doc,S,w,g,y),!S.hitSide);++k);return S},moveH:gn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Xf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:gn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ds(this,function(w){var S=Xf(y,w.head,l,u,!1);return l<0?{from:S,to:w.head}:{from:w.head,to:S}})}),findPosV:function(l,u,g,y){var w=1,S=y;u<0&&(w=-1,u=-u);for(var k=Xe(this.doc,l),D=0;D<u;++D){var j=Sr(this,k,"div");if(S==null?S=j.left:j.left=S,k=xv(this,j,w,g),k.hitSide)break}return k},moveV:gn(function(l,u){var g=this,y=this.doc,w=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(D){if(S)return l<0?D.from():D.to();var j=Sr(g,D.head,"div");D.goalColumn!=null&&(j.left=D.goalColumn),w.push(j.left);var ee=xv(g,j,l,u);return u=="page"&&D==y.sel.primary()&&Af(g,Za(g,ee,"div").top-j.top),ee},he),w.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=w[k]}),findWordAt:function(l){var u=this.doc,g=Ie(u,l.line).text,y=l.ch,w=l.ch;if(g){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&y?--y:++w;for(var k=g.charAt(y),D=lt(k,S)?function(j){return lt(j,S)}:/\s/.test(k)?function(j){return/\s/.test(j)}:function(j){return!/\s/.test(j)&&!lt(j)};y>0&&D(g.charAt(y-1));)--y;for(;w<g.length&&D(g.charAt(w));)++w}return new gt(ae(l.line,y),ae(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),Rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(Ye(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:gn(function(l,u){dl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Wr(this)-this.display.barHeight,width:l.scrollWidth-Wr(this)-this.display.barWidth,clientHeight:pf(this),clientWidth:go(this)}},scrollIntoView:gn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:ae(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Q1(this,l):pg(this,l.from,l.to,l.margin)}),setSize:gn(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&&ng(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(S){if(S.widgets){for(var k=0;k<S.widgets.length;k++)if(S.widgets[k].noHScroll){Ri(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Rt(this,"refresh",this)}),operation:function(l){return Wn(this,l)},startOperation:function(){return xo(this)},endOperation:function(){return So(this)},refresh:gn(function(){var l=this.display.cachedTextHeight;Tn(this),this.curOp.forceUpdate=!0,ul(this),dl(this,this.doc.scrollLeft,this.doc.scrollTop),Nf(this.display),(l==null||Math.abs(l-ts(this.display))>.5||this.options.lineWrapping)&&Sf(this),Rt(this,"refresh",this)}),swapDoc:gn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Ag(this,l),ul(this),this.display.input.reset(),dl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Xt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},vr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function Xf(n,i,a,l,u){var g=i,y=a,w=Ie(n,i.line),S=u&&n.direction=="rtl"?-a:a;function k(){var Le=i.line+S;return Le<n.first||Le>=n.first+n.size?!1:(i=new ae(Le,i.ch,i.sticky),w=Ie(n,Le))}function D(Le){var Te;if(l=="codepoint"){var Oe=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Oe))Te=null;else{var Be=a>0?Oe>=55296&&Oe<56320:Oe>=56320&&Oe<57343;Te=new ae(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(Be?2:1))),-a)}}else u?Te=$S(n.cm,w,i,a):Te=Bf(w,i,a);if(Te==null)if(!Le&&k())i=Wf(u,n.cm,w,i.line,S);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")D();else if(l=="column")D(!0);else if(l=="word"||l=="group")for(var j=null,ee=l=="group",Y=n.cm&&n.cm.getHelper(i,"wordChars"),ce=!0;!(a<0&&!D(!ce));ce=!1){var pe=w.text.charAt(i.ch)||`
34
34
  `,xe=lt(pe,Y)?"w":ee&&pe==`
35
35
  `?"n":!ee||/\s/.test(pe)?null:"p";if(ee&&!ce&&!xe&&(xe="s"),j&&j!=xe){a<0&&(a=1,D(),i.sticky="after");break}if(xe&&(j=xe),a>0&&!D(!ce))break}var ke=cc(n,i,g,y,!0);return pt(g,ke)&&(ke.hitSide=!0),ke}function xv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Me(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(w-.5*ts(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 k;k=yf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Kf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var S=w.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}He(u,"paste",function(w){!g(w)||Pt(l,w)||mv(w,l)||p<=11&&setTimeout(Yt(l,function(){return i.updateFromDOM()}),20)}),He(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),He(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),He(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),He(u,"touchstart",function(){return a.forceCompositionEnd()}),He(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!g(w)||Pt(l,w))){if(l.somethingSelected())gc({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=bv(l);gc({lineWise:!0,text:S.text}),w.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,X),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var k=kr.text.join(`
36
36
  `);if(w.clipboardData.setData("Text",k),w.clipboardData.getData("Text")==k){w.preventDefault();return}}var D=wv(),j=D.firstChild;Kf(j),l.display.lineSpace.insertBefore(D,l.display.lineSpace.firstChild),j.value=kr.text.join(`
37
- `);var ee=ve(ze(u));je(j),setTimeout(function(){l.display.lineSpace.removeChild(D),ee.focus(),ee==u&&a.showPrimarySelection()},50)}}He(u,"copy",y),He(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=fg(this.cm,!1);return n.focus=ve(ze(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=vc(i,n.anchorNode,n.anchorOffset),y=vc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ae(Zo(g,y),l)==0&&Ae(kn(g,y),u)==0)){var w=i.display.view,S=l.line>=i.display.viewFrom&&Sv(i,l)||{node:w[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&Sv(i,u);if(!k){var D=w[w.length-1].measure,j=D.maps?D.maps[D.maps.length-1]:D.map;k={node:j[j.length-1],offset:j[j.length-2]-j[j.length-3]}}if(!S||!k){n.removeAllRanges();return}var ee=n.rangeCount&&n.getRangeAt(0),Y;try{Y=H(S.node,S.offset,k.offset,k.node)}catch{}Y&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),Y.collapsed||(n.removeAllRanges(),n.addRange(Y))):(n.removeAllRanges(),n.addRange(Y)),ee&&n.anchorNode==null?n.addRange(ee):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){N(this.cm.display.cursorDiv,n.cursors),N(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return re(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(ze(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(W&&b&&this.cm.display.gutterSpecs.length&&n_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=vc(i,n.anchorNode,n.anchorOffset),l=vc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){cn(i.doc,Ii(a,l),X),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ae(l.line-1,Ie(n.doc,l.line-1).length)),u.ch==Ie(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ae(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,w;l.line==i.viewFrom||(g=yo(n,l.line))==0?(y=T(i.view[0].line),w=i.view[0].node):(y=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var S=yo(n,u.line),k,D;if(S==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=T(i.view[S+1].line)-1,D=i.view[S+1].node.previousSibling),!w)return!1;for(var j=n.doc.splitLines(r_(n,w,D,y,k)),ee=ti(n.doc,ae(y,0),ae(k,Ie(n.doc,k).text.length));j.length>1&&ee.length>1;)if(ge(j)==ge(ee))j.pop(),ee.pop(),k--;else if(j[0]==ee[0])j.shift(),ee.shift(),y++;else break;for(var Y=0,ce=0,pe=j[0],xe=ee[0],ke=Math.min(pe.length,xe.length);Y<ke&&pe.charCodeAt(Y)==xe.charCodeAt(Y);)++Y;for(var Le=ge(j),Te=ge(ee),Oe=Math.min(Le.length-(j.length==1?Y:0),Te.length-(ee.length==1?Y:0));ce<Oe&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(j.length==1&&ee.length==1&&y==l.line)for(;Y&&Y>l.ch&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Y--,ce++;j[j.length-1]=Le.slice(0,Le.length-ce).replace(/^\u200b+/,""),j[0]=j[0].slice(Y).replace(/\u200b+$/,"");var Be=ae(y,Y),De=ae(k,ee.length?ge(ee).length-ce:0);if(j.length>1||j[0]||Ae(Be,De))return cs(n.doc,j,Be,De,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return Tn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Yt(this.cm,Gf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Sv(n,i){var a=gf(n,i.line);if(!a||a.hidden)return null;var l=Ie(n.doc,i.line),u=Zp(a,l,i.line),g=tt(l,n.doc.direction),y="left";if(g){var w=zt(g,i.ch);y=w%2?"right":"left"}var S=eg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function n_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ps(n,i){return i&&(n.bad=!0),n}function r_(n,i,a,l,u){var g="",y=!1,w=n.doc.lineSeparator(),S=!1;function k(Y){return function(ce){return ce.id==Y}}function D(){y&&(g+=w,S&&(g+=w),y=S=!1)}function j(Y){Y&&(D(),g+=Y)}function ee(Y){if(Y.nodeType==1){var ce=Y.getAttribute("cm-text");if(ce){j(ce);return}var pe=Y.getAttribute("cm-marker"),xe;if(pe){var ke=n.findMarks(ae(l,0),ae(u+1,0),k(+pe));ke.length&&(xe=ke[0].find(0))&&j(ti(n.doc,xe.from,xe.to).join(w));return}if(Y.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Le&&D();for(var Te=0;Te<Y.childNodes.length;Te++)ee(Y.childNodes[Te]);/^(pre|p)$/i.test(Y.nodeName)&&(S=!0),Le&&(y=!0)}else Y.nodeType==3&&j(Y.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ee(i),i!=a;)i=i.nextSibling,S=!1;return g}function vc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ps(n.clipPos(ae(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return i_(g,i,a)}}function i_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return ps(ae(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ge(n.rest):n.line;return ps(ae(T(g),g.text.length),u)}var y=i.nodeType==3?i:null,w=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var S=n.measure,k=S.maps;function D(xe,ke,Le){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Oe=Te<0?S.map:k[Te],Be=0;Be<Oe.length;Be+=3){var De=Oe[Be+2];if(De==xe||De==ke){var et=T(Te<0?n.line:n.rest[Te]),St=Oe[Be]+Le;return(Le<0||De!=xe)&&(St=Oe[Be+(Le?1:0)]),ae(et,St)}}}var j=D(y,w,a);if(j)return ps(j,u);for(var ee=w.nextSibling,Y=y?y.nodeValue.length-a:0;ee;ee=ee.nextSibling){if(j=D(ee,ee.firstChild,0),j)return ps(ae(j.line,j.ch-Y),u);Y+=ee.textContent.length}for(var ce=w.previousSibling,pe=a;ce;ce=ce.previousSibling){if(j=D(ce,ce.firstChild,-1),j)return ps(ae(j.line,j.ch+pe),u);pe+=ce.textContent.length}}var Ft=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ft.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),R&&(u.style.width="0px"),He(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),He(u,"paste",function(y){Pt(l,y)||mv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Pt(l,y)){if(l.somethingSelected())gc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=bv(l);gc({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,X):(a.prevInput="",u.value=w.text.join(`
38
- `),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}He(u,"cut",g),He(u,"copy",g),He(n.scroller,"paste",function(y){if(!(ii(n,y)||Pt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=y.clipboardData,u.dispatchEvent(w)}}),He(n.lineSpace,"selectstart",function(y){ii(n,y)||an(y)}),He(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"})}}),He(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ft.prototype.createField=function(n){this.wrapper=wv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Kf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ft.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=fg(n);if(n.options.moveInputWithCursor){var u=Sr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Ft.prototype.showSelection=function(n){var i=this.cm,a=i.display;N(a.cursorDiv,n.cursors),N(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ft.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||ve(ze(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ft.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Ft.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Mi(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||B&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,w=Math.min(l.length,u.length);y<w&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Wn(i,function(){Gf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
37
+ `);var ee=ve(ze(u));je(j),setTimeout(function(){l.display.lineSpace.removeChild(D),ee.focus(),ee==u&&a.showPrimarySelection()},50)}}He(u,"copy",y),He(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=fg(this.cm,!1);return n.focus=ve(ze(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=vc(i,n.anchorNode,n.anchorOffset),y=vc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ae(Zo(g,y),l)==0&&Ae(kn(g,y),u)==0)){var w=i.display.view,S=l.line>=i.display.viewFrom&&Sv(i,l)||{node:w[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&Sv(i,u);if(!k){var D=w[w.length-1].measure,j=D.maps?D.maps[D.maps.length-1]:D.map;k={node:j[j.length-1],offset:j[j.length-2]-j[j.length-3]}}if(!S||!k){n.removeAllRanges();return}var ee=n.rangeCount&&n.getRangeAt(0),Y;try{Y=H(S.node,S.offset,k.offset,k.node)}catch{}Y&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),Y.collapsed||(n.removeAllRanges(),n.addRange(Y))):(n.removeAllRanges(),n.addRange(Y)),ee&&n.anchorNode==null?n.addRange(ee):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){N(this.cm.display.cursorDiv,n.cursors),N(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return re(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(ze(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(B&&b&&this.cm.display.gutterSpecs.length&&n_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=vc(i,n.anchorNode,n.anchorOffset),l=vc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){cn(i.doc,Ii(a,l),X),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ae(l.line-1,Ie(n.doc,l.line-1).length)),u.ch==Ie(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ae(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,w;l.line==i.viewFrom||(g=yo(n,l.line))==0?(y=T(i.view[0].line),w=i.view[0].node):(y=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var S=yo(n,u.line),k,D;if(S==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=T(i.view[S+1].line)-1,D=i.view[S+1].node.previousSibling),!w)return!1;for(var j=n.doc.splitLines(r_(n,w,D,y,k)),ee=ti(n.doc,ae(y,0),ae(k,Ie(n.doc,k).text.length));j.length>1&&ee.length>1;)if(ge(j)==ge(ee))j.pop(),ee.pop(),k--;else if(j[0]==ee[0])j.shift(),ee.shift(),y++;else break;for(var Y=0,ce=0,pe=j[0],xe=ee[0],ke=Math.min(pe.length,xe.length);Y<ke&&pe.charCodeAt(Y)==xe.charCodeAt(Y);)++Y;for(var Le=ge(j),Te=ge(ee),Oe=Math.min(Le.length-(j.length==1?Y:0),Te.length-(ee.length==1?Y:0));ce<Oe&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(j.length==1&&ee.length==1&&y==l.line)for(;Y&&Y>l.ch&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Y--,ce++;j[j.length-1]=Le.slice(0,Le.length-ce).replace(/^\u200b+/,""),j[0]=j[0].slice(Y).replace(/\u200b+$/,"");var Be=ae(y,Y),De=ae(k,ee.length?ge(ee).length-ce:0);if(j.length>1||j[0]||Ae(Be,De))return cs(n.doc,j,Be,De,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return Tn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Yt(this.cm,Gf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Sv(n,i){var a=gf(n,i.line);if(!a||a.hidden)return null;var l=Ie(n.doc,i.line),u=Zp(a,l,i.line),g=tt(l,n.doc.direction),y="left";if(g){var w=zt(g,i.ch);y=w%2?"right":"left"}var S=eg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function n_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ps(n,i){return i&&(n.bad=!0),n}function r_(n,i,a,l,u){var g="",y=!1,w=n.doc.lineSeparator(),S=!1;function k(Y){return function(ce){return ce.id==Y}}function D(){y&&(g+=w,S&&(g+=w),y=S=!1)}function j(Y){Y&&(D(),g+=Y)}function ee(Y){if(Y.nodeType==1){var ce=Y.getAttribute("cm-text");if(ce){j(ce);return}var pe=Y.getAttribute("cm-marker"),xe;if(pe){var ke=n.findMarks(ae(l,0),ae(u+1,0),k(+pe));ke.length&&(xe=ke[0].find(0))&&j(ti(n.doc,xe.from,xe.to).join(w));return}if(Y.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Le&&D();for(var Te=0;Te<Y.childNodes.length;Te++)ee(Y.childNodes[Te]);/^(pre|p)$/i.test(Y.nodeName)&&(S=!0),Le&&(y=!0)}else Y.nodeType==3&&j(Y.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ee(i),i!=a;)i=i.nextSibling,S=!1;return g}function vc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ps(n.clipPos(ae(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return i_(g,i,a)}}function i_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return ps(ae(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ge(n.rest):n.line;return ps(ae(T(g),g.text.length),u)}var y=i.nodeType==3?i:null,w=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var S=n.measure,k=S.maps;function D(xe,ke,Le){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Oe=Te<0?S.map:k[Te],Be=0;Be<Oe.length;Be+=3){var De=Oe[Be+2];if(De==xe||De==ke){var et=T(Te<0?n.line:n.rest[Te]),St=Oe[Be]+Le;return(Le<0||De!=xe)&&(St=Oe[Be+(Le?1:0)]),ae(et,St)}}}var j=D(y,w,a);if(j)return ps(j,u);for(var ee=w.nextSibling,Y=y?y.nodeValue.length-a:0;ee;ee=ee.nextSibling){if(j=D(ee,ee.firstChild,0),j)return ps(ae(j.line,j.ch-Y),u);Y+=ee.textContent.length}for(var ce=w.previousSibling,pe=a;ce;ce=ce.previousSibling){if(j=D(ce,ce.firstChild,-1),j)return ps(ae(j.line,j.ch+pe),u);pe+=ce.textContent.length}}var Ft=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ft.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),R&&(u.style.width="0px"),He(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),He(u,"paste",function(y){Pt(l,y)||mv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Pt(l,y)){if(l.somethingSelected())gc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=bv(l);gc({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,X):(a.prevInput="",u.value=w.text.join(`
38
+ `),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}He(u,"cut",g),He(u,"copy",g),He(n.scroller,"paste",function(y){if(!(ii(n,y)||Pt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=y.clipboardData,u.dispatchEvent(w)}}),He(n.lineSpace,"selectstart",function(y){ii(n,y)||an(y)}),He(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"})}}),He(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ft.prototype.createField=function(n){this.wrapper=wv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Kf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ft.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=fg(n);if(n.options.moveInputWithCursor){var u=Sr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Ft.prototype.showSelection=function(n){var i=this.cm,a=i.display;N(a.cursorDiv,n.cursors),N(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ft.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||ve(ze(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ft.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Ft.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Mi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||W&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,w=Math.min(l.length,u.length);y<w&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Wn(i,function(){Gf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
39
39
  `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ft.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ft.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=mo(a,n),y=l.scroller.scrollTop;if(!g||C)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Yt(a,cn)(a.doc,Ii(g),X);var S=u.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
40
40
  top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.left-5)+`px;
41
41
  z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
42
42
  outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var j;v&&(j=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,j),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Y,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function ee(){if(u.selectionStart!=null){var pe=a.somethingSelected(),xe="​"+(pe?u.value:"");u.value="⇚",u.value=xe,i.prevInput=pe?"":"​",u.selectionStart=1,u.selectionEnd=xe.length,l.selForContextMenu=a.doc.sel}}function Y(){if(i.contextMenuPending==Y&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&ee();var pe=0,xe=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Yt(a,Bg)(a):pe++<10?l.detectingSelectAll=setTimeout(xe,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(xe,200)}}if(h&&p>=9&&ee(),K){Ai(n);var ce=function(){ln(window,"mouseup",ce),setTimeout(Y,20)};He(window,"mouseup",ce)}else setTimeout(Y,50)},Ft.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ft.prototype.setUneditable=function(){},Ft.prototype.needsContentAttribute=!1;function o_(n,i){if(i=i?G(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=ve(ze(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(He(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&&(ln(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=Tt(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return w}function s_(n){n.off=ln,n.on=He,n.wheelEventPixels=hS,n.Doc=Cn,n.splitLines=ar,n.countColumn=Q,n.findColumn=de,n.isWordChar=rt,n.Pass=F,n.signal=Rt,n.Line=Jo,n.changeEnd=$i,n.scrollbarModel=mg,n.Pos=ae,n.cmpPos=Ae,n.modes=Vo,n.mimeModes=br,n.resolveMode=Go,n.getMode=Ko,n.modeExtensions=Ni,n.extendMode=Xo,n.copyState=Hr,n.startState=Yo,n.innerMode=rl,n.commands=El,n.keyMap=si,n.keyName=rv,n.isModifierKey=tv,n.lookupKey=fs,n.normalizeKeyMap=IS,n.StringStream=It,n.SharedTextMarker=kl,n.TextMarker=zi,n.LineWidget=_l,n.e_preventDefault=an,n.e_stopPropagation=jo,n.e_stop=Ai,n.addClass=we,n.contains=re,n.rmClass=P,n.keyNames=Fi}ZS(Tt),t_(Tt);var l_="iter insert remove copy getEditor constructor".split(" ");for(var mc in Cn.prototype)Cn.prototype.hasOwnProperty(mc)&&ie(l_,mc)<0&&(Tt.prototype[mc]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Cn.prototype[mc]));return vr(Cn),Tt.inputStyles={textarea:Ft,contenteditable:yt},Tt.defineMode=function(n){!Tt.defaults.mode&&n!="null"&&(Tt.defaults.mode=n),wr.apply(this,arguments)},Tt.defineMIME=po,Tt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Tt.defineMIME("text/plain","null"),Tt.defineExtension=function(n,i){Tt.prototype[n]=i},Tt.defineDocExtension=function(n,i){Cn.prototype[n]=i},Tt.fromTextArea=o_,s_(Tt),Tt.version="5.65.18",Tt}))})(Bc)),Bc.exports}var XA=Qs();const YA=Iw(XA);var pd={},Tr={};const ZA="Á",JA="á",QA="Ă",eL="ă",tL="∾",nL="∿",rL="∾̳",iL="Â",oL="â",sL="´",lL="А",aL="а",cL="Æ",uL="æ",fL="⁡",dL="𝔄",hL="𝔞",pL="À",gL="à",vL="ℵ",mL="ℵ",yL="Α",bL="α",wL="Ā",xL="ā",SL="⨿",_L="&",kL="&",TL="⩕",CL="⩓",EL="∧",AL="⩜",LL="⩘",ML="⩚",NL="∠",OL="⦤",RL="∠",PL="⦨",IL="⦩",$L="⦪",DL="⦫",zL="⦬",FL="⦭",HL="⦮",BL="⦯",WL="∡",qL="∟",jL="⊾",UL="⦝",VL="∢",GL="Å",KL="⍼",XL="Ą",YL="ą",ZL="𝔸",JL="𝕒",QL="⩯",eM="≈",tM="⩰",nM="≊",rM="≋",iM="'",oM="⁡",sM="≈",lM="≊",aM="Å",cM="å",uM="𝒜",fM="𝒶",dM="≔",hM="*",pM="≈",gM="≍",vM="Ã",mM="ã",yM="Ä",bM="ä",wM="∳",xM="⨑",SM="≌",_M="϶",kM="‵",TM="∽",CM="⋍",EM="∖",AM="⫧",LM="⊽",MM="⌅",NM="⌆",OM="⌅",RM="⎵",PM="⎶",IM="≌",$M="Б",DM="б",zM="„",FM="∵",HM="∵",BM="∵",WM="⦰",qM="϶",jM="ℬ",UM="ℬ",VM="Β",GM="β",KM="ℶ",XM="≬",YM="𝔅",ZM="𝔟",JM="⋂",QM="◯",eN="⋃",tN="⨀",nN="⨁",rN="⨂",iN="⨆",oN="★",sN="▽",lN="△",aN="⨄",cN="⋁",uN="⋀",fN="⤍",dN="⧫",hN="▪",pN="▴",gN="▾",vN="◂",mN="▸",yN="␣",bN="▒",wN="░",xN="▓",SN="█",_N="=⃥",kN="≡⃥",TN="⫭",CN="⌐",EN="𝔹",AN="𝕓",LN="⊥",MN="⊥",NN="⋈",ON="⧉",RN="┐",PN="╕",IN="╖",$N="╗",DN="┌",zN="╒",FN="╓",HN="╔",BN="─",WN="═",qN="┬",jN="╤",UN="╥",VN="╦",GN="┴",KN="╧",XN="╨",YN="╩",ZN="⊟",JN="⊞",QN="⊠",eO="┘",tO="╛",nO="╜",rO="╝",iO="└",oO="╘",sO="╙",lO="╚",aO="│",cO="║",uO="┼",fO="╪",dO="╫",hO="╬",pO="┤",gO="╡",vO="╢",mO="╣",yO="├",bO="╞",wO="╟",xO="╠",SO="‵",_O="˘",kO="˘",TO="¦",CO="𝒷",EO="ℬ",AO="⁏",LO="∽",MO="⋍",NO="⧅",OO="\\",RO="⟈",PO="•",IO="•",$O="≎",DO="⪮",zO="≏",FO="≎",HO="≏",BO="Ć",WO="ć",qO="⩄",jO="⩉",UO="⩋",VO="∩",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="ˆ",AR="≗",LR="↺",MR="↻",NR="⊛",OR="⊚",RR="⊝",PR="⊙",IR="®",$R="Ⓢ",DR="⊖",zR="⊕",FR="⊗",HR="○",BR="⧃",WR="≗",qR="⨐",jR="⫯",UR="⧂",VR="∲",GR="”",KR="’",XR="♣",YR="♣",ZR=":",JR="∷",QR="⩴",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="⫏",A2="⫑",L2="⫐",M2="⫒",N2="⋯",O2="⤸",R2="⤵",P2="⋞",I2="⋟",$2="↶",D2="⤽",z2="⩈",F2="⩆",H2="≍",B2="∪",W2="⋓",q2="⩊",j2="⊍",U2="⩅",V2="∪︀",G2="↷",K2="⤼",X2="⋞",Y2="⋟",Z2="⋎",J2="⋏",Q2="¤",eP="↶",tP="↷",nP="⋎",rP="⋏",iP="∲",oP="∱",sP="⌭",lP="†",aP="‡",cP="ℸ",uP="↓",fP="↡",dP="⇓",hP="‐",pP="⫤",gP="⊣",vP="⤏",mP="˝",yP="Ď",bP="ď",wP="Д",xP="д",SP="‡",_P="⇊",kP="ⅅ",TP="ⅆ",CP="⤑",EP="⩷",AP="°",LP="∇",MP="Δ",NP="δ",OP="⦱",RP="⥿",PP="𝔇",IP="𝔡",$P="⥥",DP="⇃",zP="⇂",FP="´",HP="˙",BP="˝",WP="`",qP="˜",jP="⋄",UP="⋄",VP="⋄",GP="♦",KP="♦",XP="¨",YP="ⅆ",ZP="ϝ",JP="⋲",QP="÷",eI="÷",tI="⋇",nI="⋇",rI="Ђ",iI="ђ",oI="⌞",sI="⌍",lI="$",aI="𝔻",cI="𝕕",uI="¨",fI="˙",dI="⃜",hI="≐",pI="≑",gI="≐",vI="∸",mI="∔",yI="⊡",bI="⌆",wI="∯",xI="¨",SI="⇓",_I="⇐",kI="⇔",TI="⫤",CI="⟸",EI="⟺",AI="⟹",LI="⇒",MI="⊨",NI="⇑",OI="⇕",RI="∥",PI="⤓",II="↓",$I="↓",DI="⇓",zI="⇵",FI="̑",HI="⇊",BI="⇃",WI="⇂",qI="⥐",jI="⥞",UI="⥖",VI="↽",GI="⥟",KI="⥗",XI="⇁",YI="↧",ZI="⊤",JI="⤐",QI="⌟",e$="⌌",t$="𝒟",n$="𝒹",r$="Ѕ",i$="ѕ",o$="⧶",s$="Đ",l$="đ",a$="⋱",c$="▿",u$="▾",f$="⇵",d$="⥯",h$="⦦",p$="Џ",g$="џ",v$="⟿",m$="É",y$="é",b$="⩮",w$="Ě",x$="ě",S$="Ê",_$="ê",k$="≖",T$="≕",C$="Э",E$="э",A$="⩷",L$="Ė",M$="ė",N$="≑",O$="ⅇ",R$="≒",P$="𝔈",I$="𝔢",$$="⪚",D$="È",z$="è",F$="⪖",H$="⪘",B$="⪙",W$="∈",q$="⏧",j$="ℓ",U$="⪕",V$="⪗",G$="Ē",K$="ē",X$="∅",Y$="∅",Z$="◻",J$="∅",Q$="▫",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="≡",AD="⩸",LD="⧥",MD="⥱",ND="≓",OD="ℯ",RD="ℰ",PD="≐",ID="⩳",$D="≂",DD="Η",zD="η",FD="Ð",HD="ð",BD="Ë",WD="ë",qD="€",jD="!",UD="∃",VD="∃",GD="ℰ",KD="ⅇ",XD="ⅇ",YD="≒",ZD="Ф",JD="ф",QD="♀",ez="ffi",tz="ff",nz="ffl",rz="𝔉",iz="𝔣",oz="fi",sz="◼",lz="▪",az="fj",cz="♭",uz="fl",fz="▱",dz="ƒ",hz="𝔽",pz="𝕗",gz="∀",vz="∀",mz="⋔",yz="⫙",bz="ℱ",wz="⨍",xz="½",Sz="⅓",_z="¼",kz="⅕",Tz="⅙",Cz="⅛",Ez="⅔",Az="⅖",Lz="¾",Mz="⅗",Nz="⅜",Oz="⅘",Rz="⅚",Pz="⅝",Iz="⅞",$z="⁄",Dz="⌢",zz="𝒻",Fz="ℱ",Hz="ǵ",Bz="Γ",Wz="γ",qz="Ϝ",jz="ϝ",Uz="⪆",Vz="Ğ",Gz="ğ",Kz="Ģ",Xz="Ĝ",Yz="ĝ",Zz="Г",Jz="г",Qz="Ġ",eF="ġ",tF="≥",nF="≧",rF="⪌",iF="⋛",oF="≥",sF="≧",lF="⩾",aF="⪩",cF="⩾",uF="⪀",fF="⪂",dF="⪄",hF="⋛︀",pF="⪔",gF="𝔊",vF="𝔤",mF="≫",yF="⋙",bF="⋙",wF="ℷ",xF="Ѓ",SF="ѓ",_F="⪥",kF="≷",TF="⪒",CF="⪤",EF="⪊",AF="⪊",LF="⪈",MF="≩",NF="⪈",OF="≩",RF="⋧",PF="𝔾",IF="𝕘",$F="`",DF="≥",zF="⋛",FF="≧",HF="⪢",BF="≷",WF="⩾",qF="≳",jF="𝒢",UF="ℊ",VF="≳",GF="⪎",KF="⪐",XF="⪧",YF="⩺",ZF=">",JF=">",QF="≫",eH="⋗",tH="⦕",nH="⩼",rH="⪆",iH="⥸",oH="⋗",sH="⋛",lH="⪌",aH="≷",cH="≳",uH="≩︀",fH="≩︀",dH="ˇ",hH=" ",pH="½",gH="ℋ",vH="Ъ",mH="ъ",yH="⥈",bH="↔",wH="⇔",xH="↭",SH="^",_H="ℏ",kH="Ĥ",TH="ĥ",CH="♥",EH="♥",AH="…",LH="⊹",MH="𝔥",NH="ℌ",OH="ℋ",RH="⤥",PH="⤦",IH="⇿",$H="∻",DH="↩",zH="↪",FH="𝕙",HH="ℍ",BH="―",WH="─",qH="𝒽",jH="ℋ",UH="ℏ",VH="Ħ",GH="ħ",KH="≎",XH="≏",YH="⁃",ZH="‐",JH="Í",QH="í",e3="⁣",t3="Î",n3="î",r3="И",i3="и",o3="İ",s3="Е",l3="е",a3="¡",c3="⇔",u3="𝔦",f3="ℑ",d3="Ì",h3="ì",p3="ⅈ",g3="⨌",v3="∭",m3="⧜",y3="℩",b3="IJ",w3="ij",x3="Ī",S3="ī",_3="ℑ",k3="ⅈ",T3="ℐ",C3="ℑ",E3="ı",A3="ℑ",L3="⊷",M3="Ƶ",N3="⇒",O3="℅",R3="∞",P3="⧝",I3="ı",$3="⊺",D3="∫",z3="∬",F3="ℤ",H3="∫",B3="⊺",W3="⋂",q3="⨗",j3="⨼",U3="⁣",V3="⁢",G3="Ё",K3="ё",X3="Į",Y3="į",Z3="𝕀",J3="𝕚",Q3="Ι",eB="ι",tB="⨼",nB="¿",rB="𝒾",iB="ℐ",oB="∈",sB="⋵",lB="⋹",aB="⋴",cB="⋳",uB="∈",fB="⁢",dB="Ĩ",hB="ĩ",pB="І",gB="і",vB="Ï",mB="ï",yB="Ĵ",bB="ĵ",wB="Й",xB="й",SB="𝔍",_B="𝔧",kB="ȷ",TB="𝕁",CB="𝕛",EB="𝒥",AB="𝒿",LB="Ј",MB="ј",NB="Є",OB="є",RB="Κ",PB="κ",IB="ϰ",$B="Ķ",DB="ķ",zB="К",FB="к",HB="𝔎",BB="𝔨",WB="ĸ",qB="Х",jB="х",UB="Ќ",VB="ќ",GB="𝕂",KB="𝕜",XB="𝒦",YB="𝓀",ZB="⇚",JB="Ĺ",QB="ĺ",e5="⦴",t5="ℒ",n5="Λ",r5="λ",i5="⟨",o5="⟪",s5="⦑",l5="⟨",a5="⪅",c5="ℒ",u5="«",f5="⇤",d5="⤟",h5="←",p5="↞",g5="⇐",v5="⤝",m5="↩",y5="↫",b5="⤹",w5="⥳",x5="↢",S5="⤙",_5="⤛",k5="⪫",T5="⪭",C5="⪭︀",E5="⤌",A5="⤎",L5="❲",M5="{",N5="[",O5="⦋",R5="⦏",P5="⦍",I5="Ľ",$5="ľ",D5="Ļ",z5="ļ",F5="⌈",H5="{",B5="Л",W5="л",q5="⤶",j5="“",U5="„",V5="⥧",G5="⥋",K5="↲",X5="≤",Y5="≦",Z5="⟨",J5="⇤",Q5="←",e8="←",t8="⇐",n8="⇆",r8="↢",i8="⌈",o8="⟦",s8="⥡",l8="⥙",a8="⇃",c8="⌊",u8="↽",f8="↼",d8="⇇",h8="↔",p8="↔",g8="⇔",v8="⇆",m8="⇋",y8="↭",b8="⥎",w8="↤",x8="⊣",S8="⥚",_8="⋋",k8="⧏",T8="⊲",C8="⊴",E8="⥑",A8="⥠",L8="⥘",M8="↿",N8="⥒",O8="↼",R8="⪋",P8="⋚",I8="≤",$8="≦",D8="⩽",z8="⪨",F8="⩽",H8="⩿",B8="⪁",W8="⪃",q8="⋚︀",j8="⪓",U8="⪅",V8="⋖",G8="⋚",K8="⪋",X8="⋚",Y8="≦",Z8="≶",J8="≶",Q8="⪡",eW="≲",tW="⩽",nW="≲",rW="⥼",iW="⌊",oW="𝔏",sW="𝔩",lW="≶",aW="⪑",cW="⥢",uW="↽",fW="↼",dW="⥪",hW="▄",pW="Љ",gW="љ",vW="⇇",mW="≪",yW="⋘",bW="⌞",wW="⇚",xW="⥫",SW="◺",_W="Ŀ",kW="ŀ",TW="⎰",CW="⎰",EW="⪉",AW="⪉",LW="⪇",MW="≨",NW="⪇",OW="≨",RW="⋦",PW="⟬",IW="⇽",$W="⟦",DW="⟵",zW="⟵",FW="⟸",HW="⟷",BW="⟷",WW="⟺",qW="⟼",jW="⟶",UW="⟶",VW="⟹",GW="↫",KW="↬",XW="⦅",YW="𝕃",ZW="𝕝",JW="⨭",QW="⨴",e4="∗",t4="_",n4="↙",r4="↘",i4="◊",o4="◊",s4="⧫",l4="(",a4="⦓",c4="⇆",u4="⌟",f4="⇋",d4="⥭",h4="‎",p4="⊿",g4="‹",v4="𝓁",m4="ℒ",y4="↰",b4="↰",w4="≲",x4="⪍",S4="⪏",_4="[",k4="‘",T4="‚",C4="Ł",E4="ł",A4="⪦",L4="⩹",M4="<",N4="<",O4="≪",R4="⋖",P4="⋋",I4="⋉",$4="⥶",D4="⩻",z4="◃",F4="⊴",H4="◂",B4="⦖",W4="⥊",q4="⥦",j4="≨︀",U4="≨︀",V4="¯",G4="♂",K4="✠",X4="✠",Y4="↦",Z4="↦",J4="↧",Q4="↤",eq="↥",tq="▮",nq="⨩",rq="М",iq="м",oq="—",sq="∺",lq="∡",aq=" ",cq="ℳ",uq="𝔐",fq="𝔪",dq="℧",hq="µ",pq="*",gq="⫰",vq="∣",mq="·",yq="⊟",bq="−",wq="∸",xq="⨪",Sq="∓",_q="⫛",kq="…",Tq="∓",Cq="⊧",Eq="𝕄",Aq="𝕞",Lq="∓",Mq="𝓂",Nq="ℳ",Oq="∾",Rq="Μ",Pq="μ",Iq="⊸",$q="⊸",Dq="∇",zq="Ń",Fq="ń",Hq="∠⃒",Bq="≉",Wq="⩰̸",qq="≋̸",jq="ʼn",Uq="≉",Vq="♮",Gq="ℕ",Kq="♮",Xq=" ",Yq="≎̸",Zq="≏̸",Jq="⩃",Qq="Ň",ej="ň",tj="Ņ",nj="ņ",rj="≇",ij="⩭̸",oj="⩂",sj="Н",lj="н",aj="–",cj="⤤",uj="↗",fj="⇗",dj="↗",hj="≠",pj="≐̸",gj="​",vj="​",mj="​",yj="​",bj="≢",wj="⤨",xj="≂̸",Sj="≫",_j="≪",kj=`
43
- `,Tj="∄",Cj="∄",Ej="𝔑",Aj="𝔫",Lj="≧̸",Mj="≱",Nj="≱",Oj="≧̸",Rj="⩾̸",Pj="⩾̸",Ij="⋙̸",$j="≵",Dj="≫⃒",zj="≯",Fj="≯",Hj="≫̸",Bj="↮",Wj="⇎",qj="⫲",jj="∋",Uj="⋼",Vj="⋺",Gj="∋",Kj="Њ",Xj="њ",Yj="↚",Zj="⇍",Jj="‥",Qj="≦̸",eU="≰",tU="↚",nU="⇍",rU="↮",iU="⇎",oU="≰",sU="≦̸",lU="⩽̸",aU="⩽̸",cU="≮",uU="⋘̸",fU="≴",dU="≪⃒",hU="≮",pU="⋪",gU="⋬",vU="≪̸",mU="∤",yU="⁠",bU=" ",wU="𝕟",xU="ℕ",SU="⫬",_U="¬",kU="≢",TU="≭",CU="∦",EU="∉",AU="≠",LU="≂̸",MU="∄",NU="≯",OU="≱",RU="≧̸",PU="≫̸",IU="≹",$U="⩾̸",DU="≵",zU="≎̸",FU="≏̸",HU="∉",BU="⋵̸",WU="⋹̸",qU="∉",jU="⋷",UU="⋶",VU="⧏̸",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="≄",A6="≇",L6="≉",M6="∤",N6="∦",O6="∦",R6="⫽⃥",P6="∂̸",I6="⨔",$6="⊀",D6="⋠",z6="⊀",F6="⪯̸",H6="⪯̸",B6="⤳̸",W6="↛",q6="⇏",j6="↝̸",U6="↛",V6="⇏",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="⋪",AV="⋬",LV="⋫",MV="⋭",NV="Ν",OV="ν",RV="#",PV="№",IV=" ",$V="≍⃒",DV="⊬",zV="⊭",FV="⊮",HV="⊯",BV="≥⃒",WV=">⃒",qV="⤄",jV="⧞",UV="⤂",VV="≤⃒",GV="<⃒",KV="⊴⃒",XV="⤃",YV="⊵⃒",ZV="∼⃒",JV="⤣",QV="↖",eG="⇖",tG="↖",nG="⤧",rG="Ó",iG="ó",oG="⊛",sG="Ô",lG="ô",aG="⊚",cG="О",uG="о",fG="⊝",dG="Ő",hG="ő",pG="⨸",gG="⊙",vG="⦼",mG="Œ",yG="œ",bG="⦿",wG="𝔒",xG="𝔬",SG="˛",_G="Ò",kG="ò",TG="⧁",CG="⦵",EG="Ω",AG="∮",LG="↺",MG="⦾",NG="⦻",OG="‾",RG="⧀",PG="Ō",IG="ō",$G="Ω",DG="ω",zG="Ο",FG="ο",HG="⦶",BG="⊖",WG="𝕆",qG="𝕠",jG="⦷",UG="“",VG="‘",GG="⦹",KG="⊕",XG="↻",YG="⩔",ZG="∨",JG="⩝",QG="ℴ",e9="ℴ",t9="ª",n9="º",r9="⊶",i9="⩖",o9="⩗",s9="⩛",l9="Ⓢ",a9="𝒪",c9="ℴ",u9="Ø",f9="ø",d9="⊘",h9="Õ",p9="õ",g9="⨶",v9="⨷",m9="⊗",y9="Ö",b9="ö",w9="⌽",x9="‾",S9="⏞",_9="⎴",k9="⏜",T9="¶",C9="∥",E9="∥",A9="⫳",L9="⫽",M9="∂",N9="∂",O9="П",R9="п",P9="%",I9=".",$9="‰",D9="⊥",z9="‱",F9="𝔓",H9="𝔭",B9="Φ",W9="φ",q9="ϕ",j9="ℳ",U9="☎",V9="Π",G9="π",K9="⋔",X9="ϖ",Y9="ℏ",Z9="ℎ",J9="ℏ",Q9="⨣",e7="⊞",t7="⨢",n7="+",r7="∔",i7="⨥",o7="⩲",s7="±",l7="±",a7="⨦",c7="⨧",u7="±",f7="ℌ",d7="⨕",h7="𝕡",p7="ℙ",g7="£",v7="⪷",m7="⪻",y7="≺",b7="≼",w7="⪷",x7="≺",S7="≼",_7="≺",k7="⪯",T7="≼",C7="≾",E7="⪯",A7="⪹",L7="⪵",M7="⋨",N7="⪯",O7="⪳",R7="≾",P7="′",I7="″",$7="ℙ",D7="⪹",z7="⪵",F7="⋨",H7="∏",B7="∏",W7="⌮",q7="⌒",j7="⌓",U7="∝",V7="∝",G7="∷",K7="∝",X7="≾",Y7="⊰",Z7="𝒫",J7="𝓅",Q7="Ψ",eK="ψ",tK=" ",nK="𝔔",rK="𝔮",iK="⨌",oK="𝕢",sK="ℚ",lK="⁗",aK="𝒬",cK="𝓆",uK="ℍ",fK="⨖",dK="?",hK="≟",pK='"',gK='"',vK="⇛",mK="∽̱",yK="Ŕ",bK="ŕ",wK="√",xK="⦳",SK="⟩",_K="⟫",kK="⦒",TK="⦥",CK="⟩",EK="»",AK="⥵",LK="⇥",MK="⤠",NK="⤳",OK="→",RK="↠",PK="⇒",IK="⤞",$K="↪",DK="↬",zK="⥅",FK="⥴",HK="⤖",BK="↣",WK="↝",qK="⤚",jK="⤜",UK="∶",VK="ℚ",GK="⤍",KK="⤏",XK="⤐",YK="❳",ZK="}",JK="]",QK="⦌",eX="⦎",tX="⦐",nX="Ř",rX="ř",iX="Ŗ",oX="ŗ",sX="⌉",lX="}",aX="Р",cX="р",uX="⤷",fX="⥩",dX="”",hX="”",pX="↳",gX="ℜ",vX="ℛ",mX="ℜ",yX="ℝ",bX="ℜ",wX="▭",xX="®",SX="®",_X="∋",kX="⇋",TX="⥯",CX="⥽",EX="⌋",AX="𝔯",LX="ℜ",MX="⥤",NX="⇁",OX="⇀",RX="⥬",PX="Ρ",IX="ρ",$X="ϱ",DX="⟩",zX="⇥",FX="→",HX="→",BX="⇒",WX="⇄",qX="↣",jX="⌉",UX="⟧",VX="⥝",GX="⥕",KX="⇂",XX="⌋",YX="⇁",ZX="⇀",JX="⇄",QX="⇌",eY="⇉",tY="↝",nY="↦",rY="⊢",iY="⥛",oY="⋌",sY="⧐",lY="⊳",aY="⊵",cY="⥏",uY="⥜",fY="⥔",dY="↾",hY="⥓",pY="⇀",gY="˚",vY="≓",mY="⇄",yY="⇌",bY="‏",wY="⎱",xY="⎱",SY="⫮",_Y="⟭",kY="⇾",TY="⟧",CY="⦆",EY="𝕣",AY="ℝ",LY="⨮",MY="⨵",NY="⥰",OY=")",RY="⦔",PY="⨒",IY="⇉",$Y="⇛",DY="›",zY="𝓇",FY="ℛ",HY="↱",BY="↱",WY="]",qY="’",jY="’",UY="⋌",VY="⋊",GY="▹",KY="⊵",XY="▸",YY="⧎",ZY="⧴",JY="⥨",QY="℞",eZ="Ś",tZ="ś",nZ="‚",rZ="⪸",iZ="Š",oZ="š",sZ="⪼",lZ="≻",aZ="≽",cZ="⪰",uZ="⪴",fZ="Ş",dZ="ş",hZ="Ŝ",pZ="ŝ",gZ="⪺",vZ="⪶",mZ="⋩",yZ="⨓",bZ="≿",wZ="С",xZ="с",SZ="⊡",_Z="⋅",kZ="⩦",TZ="⤥",CZ="↘",EZ="⇘",AZ="↘",LZ="§",MZ=";",NZ="⤩",OZ="∖",RZ="∖",PZ="✶",IZ="𝔖",$Z="𝔰",DZ="⌢",zZ="♯",FZ="Щ",HZ="щ",BZ="Ш",WZ="ш",qZ="↓",jZ="←",UZ="∣",VZ="∥",GZ="→",KZ="↑",XZ="­",YZ="Σ",ZZ="σ",JZ="ς",QZ="ς",eJ="∼",tJ="⩪",nJ="≃",rJ="≃",iJ="⪞",oJ="⪠",sJ="⪝",lJ="⪟",aJ="≆",cJ="⨤",uJ="⥲",fJ="←",dJ="∘",hJ="∖",pJ="⨳",gJ="⧤",vJ="∣",mJ="⌣",yJ="⪪",bJ="⪬",wJ="⪬︀",xJ="Ь",SJ="ь",_J="⌿",kJ="⧄",TJ="/",CJ="𝕊",EJ="𝕤",AJ="♠",LJ="♠",MJ="∥",NJ="⊓",OJ="⊓︀",RJ="⊔",PJ="⊔︀",IJ="√",$J="⊏",DJ="⊑",zJ="⊏",FJ="⊑",HJ="⊐",BJ="⊒",WJ="⊐",qJ="⊒",jJ="□",UJ="□",VJ="⊓",GJ="⊏",KJ="⊑",XJ="⊐",YJ="⊒",ZJ="⊔",JJ="▪",QJ="□",eQ="▪",tQ="→",nQ="𝒮",rQ="𝓈",iQ="∖",oQ="⌣",sQ="⋆",lQ="⋆",aQ="☆",cQ="★",uQ="ϵ",fQ="ϕ",dQ="¯",hQ="⊂",pQ="⋐",gQ="⪽",vQ="⫅",mQ="⊆",yQ="⫃",bQ="⫁",wQ="⫋",xQ="⊊",SQ="⪿",_Q="⥹",kQ="⊂",TQ="⋐",CQ="⊆",EQ="⫅",AQ="⊆",LQ="⊊",MQ="⫋",NQ="⫇",OQ="⫕",RQ="⫓",PQ="⪸",IQ="≻",$Q="≽",DQ="≻",zQ="⪰",FQ="≽",HQ="≿",BQ="⪰",WQ="⪺",qQ="⪶",jQ="⋩",UQ="≿",VQ="∋",GQ="∑",KQ="∑",XQ="♪",YQ="¹",ZQ="²",JQ="³",QQ="⊃",eee="⋑",tee="⪾",nee="⫘",ree="⫆",iee="⊇",oee="⫄",see="⊃",lee="⊇",aee="⟉",cee="⫗",uee="⥻",fee="⫂",dee="⫌",hee="⊋",pee="⫀",gee="⊃",vee="⋑",mee="⊇",yee="⫆",bee="⊋",wee="⫌",xee="⫈",See="⫔",_ee="⫖",kee="⤦",Tee="↙",Cee="⇙",Eee="↙",Aee="⤪",Lee="ß",Mee=" ",Nee="⌖",Oee="Τ",Ree="τ",Pee="⎴",Iee="Ť",$ee="ť",Dee="Ţ",zee="ţ",Fee="Т",Hee="т",Bee="⃛",Wee="⌕",qee="𝔗",jee="𝔱",Uee="∴",Vee="∴",Gee="∴",Kee="Θ",Xee="θ",Yee="ϑ",Zee="ϑ",Jee="≈",Qee="∼",ete="  ",tte=" ",nte=" ",rte="≈",ite="∼",ote="Þ",ste="þ",lte="˜",ate="∼",cte="≃",ute="≅",fte="≈",dte="⨱",hte="⊠",pte="×",gte="⨰",vte="∭",mte="⤨",yte="⌶",bte="⫱",wte="⊤",xte="𝕋",Ste="𝕥",_te="⫚",kte="⤩",Tte="‴",Cte="™",Ete="™",Ate="▵",Lte="▿",Mte="◃",Nte="⊴",Ote="≜",Rte="▹",Pte="⊵",Ite="◬",$te="≜",Dte="⨺",zte="⃛",Fte="⨹",Hte="⧍",Bte="⨻",Wte="⏢",qte="𝒯",jte="𝓉",Ute="Ц",Vte="ц",Gte="Ћ",Kte="ћ",Xte="Ŧ",Yte="ŧ",Zte="≬",Jte="↞",Qte="↠",ene="Ú",tne="ú",nne="↑",rne="↟",ine="⇑",one="⥉",sne="Ў",lne="ў",ane="Ŭ",cne="ŭ",une="Û",fne="û",dne="У",hne="у",pne="⇅",gne="Ű",vne="ű",mne="⥮",yne="⥾",bne="𝔘",wne="𝔲",xne="Ù",Sne="ù",_ne="⥣",kne="↿",Tne="↾",Cne="▀",Ene="⌜",Ane="⌜",Lne="⌏",Mne="◸",Nne="Ū",One="ū",Rne="¨",Pne="_",Ine="⏟",$ne="⎵",Dne="⏝",zne="⋃",Fne="⊎",Hne="Ų",Bne="ų",Wne="𝕌",qne="𝕦",jne="⤒",Une="↑",Vne="↑",Gne="⇑",Kne="⇅",Xne="↕",Yne="↕",Zne="⇕",Jne="⥮",Qne="↿",ere="↾",tre="⊎",nre="↖",rre="↗",ire="υ",ore="ϒ",sre="ϒ",lre="Υ",are="υ",cre="↥",ure="⊥",fre="⇈",dre="⌝",hre="⌝",pre="⌎",gre="Ů",vre="ů",mre="◹",yre="𝒰",bre="𝓊",wre="⋰",xre="Ũ",Sre="ũ",_re="▵",kre="▴",Tre="⇈",Cre="Ü",Ere="ü",Are="⦧",Lre="⦜",Mre="ϵ",Nre="ϰ",Ore="∅",Rre="ϕ",Pre="ϖ",Ire="∝",$re="↕",Dre="⇕",zre="ϱ",Fre="ς",Hre="⊊︀",Bre="⫋︀",Wre="⊋︀",qre="⫌︀",jre="ϑ",Ure="⊲",Vre="⊳",Gre="⫨",Kre="⫫",Xre="⫩",Yre="В",Zre="в",Jre="⊢",Qre="⊨",eie="⊩",tie="⊫",nie="⫦",rie="⊻",iie="∨",oie="⋁",sie="≚",lie="⋮",aie="|",cie="‖",uie="|",fie="‖",die="∣",hie="|",pie="❘",gie="≀",vie=" ",mie="𝔙",yie="𝔳",bie="⊲",wie="⊂⃒",xie="⊃⃒",Sie="𝕍",_ie="𝕧",kie="∝",Tie="⊳",Cie="𝒱",Eie="𝓋",Aie="⫋︀",Lie="⊊︀",Mie="⫌︀",Nie="⊋︀",Oie="⊪",Rie="⦚",Pie="Ŵ",Iie="ŵ",$ie="⩟",Die="∧",zie="⋀",Fie="≙",Hie="℘",Bie="𝔚",Wie="𝔴",qie="𝕎",jie="𝕨",Uie="℘",Vie="≀",Gie="≀",Kie="𝒲",Xie="𝓌",Yie="⋂",Zie="◯",Jie="⋃",Qie="▽",eoe="𝔛",toe="𝔵",noe="⟷",roe="⟺",ioe="Ξ",ooe="ξ",soe="⟵",loe="⟸",aoe="⟼",coe="⋻",uoe="⨀",foe="𝕏",doe="𝕩",hoe="⨁",poe="⨂",goe="⟶",voe="⟹",moe="𝒳",yoe="𝓍",boe="⨆",woe="⨄",xoe="△",Soe="⋁",_oe="⋀",koe="Ý",Toe="ý",Coe="Я",Eoe="я",Aoe="Ŷ",Loe="ŷ",Moe="Ы",Noe="ы",Ooe="¥",Roe="𝔜",Poe="𝔶",Ioe="Ї",$oe="ї",Doe="𝕐",zoe="𝕪",Foe="𝒴",Hoe="𝓎",Boe="Ю",Woe="ю",qoe="ÿ",joe="Ÿ",Uoe="Ź",Voe="ź",Goe="Ž",Koe="ž",Xoe="З",Yoe="з",Zoe="Ż",Joe="ż",Qoe="ℨ",ese="​",tse="Ζ",nse="ζ",rse="𝔷",ise="ℨ",ose="Ж",sse="ж",lse="⇝",ase="𝕫",cse="ℤ",use="𝒵",fse="𝓏",dse="‍",hse="‌",$w={Aacute:ZA,aacute:JA,Abreve:QA,abreve:eL,ac:tL,acd:nL,acE:rL,Acirc:iL,acirc:oL,acute:sL,Acy:lL,acy:aL,AElig:cL,aelig:uL,af:fL,Afr:dL,afr:hL,Agrave:pL,agrave:gL,alefsym:vL,aleph:mL,Alpha:yL,alpha:bL,Amacr:wL,amacr:xL,amalg:SL,amp:_L,AMP:kL,andand:TL,And:CL,and:EL,andd:AL,andslope:LL,andv:ML,ang:NL,ange:OL,angle:RL,angmsdaa:PL,angmsdab:IL,angmsdac:$L,angmsdad:DL,angmsdae:zL,angmsdaf:FL,angmsdag:HL,angmsdah:BL,angmsd:WL,angrt:qL,angrtvb:jL,angrtvbd:UL,angsph:VL,angst:GL,angzarr:KL,Aogon:XL,aogon:YL,Aopf:ZL,aopf:JL,apacir:QL,ap:eM,apE:tM,ape:nM,apid:rM,apos:iM,ApplyFunction:oM,approx:sM,approxeq:lM,Aring:aM,aring:cM,Ascr:uM,ascr:fM,Assign:dM,ast:hM,asymp:pM,asympeq:gM,Atilde:vM,atilde:mM,Auml:yM,auml:bM,awconint:wM,awint:xM,backcong:SM,backepsilon:_M,backprime:kM,backsim:TM,backsimeq:CM,Backslash:EM,Barv:AM,barvee:LM,barwed:MM,Barwed:NM,barwedge:OM,bbrk:RM,bbrktbrk:PM,bcong:IM,Bcy:$M,bcy:DM,bdquo:zM,becaus:FM,because:HM,Because:BM,bemptyv:WM,bepsi:qM,bernou:jM,Bernoullis:UM,Beta:VM,beta:GM,beth:KM,between:XM,Bfr:YM,bfr:ZM,bigcap:JM,bigcirc:QM,bigcup:eN,bigodot:tN,bigoplus:nN,bigotimes:rN,bigsqcup:iN,bigstar:oN,bigtriangledown:sN,bigtriangleup:lN,biguplus:aN,bigvee:cN,bigwedge:uN,bkarow:fN,blacklozenge:dN,blacksquare:hN,blacktriangle:pN,blacktriangledown:gN,blacktriangleleft:vN,blacktriangleright:mN,blank:yN,blk12:bN,blk14:wN,blk34:xN,block:SN,bne:_N,bnequiv:kN,bNot:TN,bnot:CN,Bopf:EN,bopf:AN,bot:LN,bottom:MN,bowtie:NN,boxbox:ON,boxdl:RN,boxdL:PN,boxDl:IN,boxDL:$N,boxdr:DN,boxdR:zN,boxDr:FN,boxDR:HN,boxh:BN,boxH:WN,boxhd:qN,boxHd:jN,boxhD:UN,boxHD:VN,boxhu:GN,boxHu:KN,boxhU:XN,boxHU:YN,boxminus:ZN,boxplus:JN,boxtimes:QN,boxul:eO,boxuL:tO,boxUl:nO,boxUL:rO,boxur:iO,boxuR:oO,boxUr:sO,boxUR:lO,boxv:aO,boxV:cO,boxvh:uO,boxvH:fO,boxVh:dO,boxVH:hO,boxvl:pO,boxvL:gO,boxVl:vO,boxVL:mO,boxvr:yO,boxvR:bO,boxVr:wO,boxVR:xO,bprime:SO,breve:_O,Breve:kO,brvbar:TO,bscr:CO,Bscr:EO,bsemi:AO,bsim:LO,bsime:MO,bsolb:NO,bsol:OO,bsolhsub:RO,bull:PO,bullet:IO,bump:$O,bumpE:DO,bumpe:zO,Bumpeq:FO,bumpeq:HO,Cacute:BO,cacute:WO,capand:qO,capbrcup:jO,capcap:UO,cap:VO,Cap:GO,capcup:KO,capdot:XO,CapitalDifferentialD:YO,caps:ZO,caret:JO,caron:QO,Cayleys:eR,ccaps:tR,Ccaron:nR,ccaron:rR,Ccedil:iR,ccedil:oR,Ccirc:sR,ccirc:lR,Cconint:aR,ccups:cR,ccupssm:uR,Cdot:fR,cdot:dR,cedil:hR,Cedilla:pR,cemptyv:gR,cent:vR,centerdot:mR,CenterDot:yR,cfr:bR,Cfr:wR,CHcy:xR,chcy:SR,check:_R,checkmark:kR,Chi:TR,chi:CR,circ:ER,circeq:AR,circlearrowleft:LR,circlearrowright:MR,circledast:NR,circledcirc:OR,circleddash:RR,CircleDot:PR,circledR:IR,circledS:$R,CircleMinus:DR,CirclePlus:zR,CircleTimes:FR,cir:HR,cirE:BR,cire:WR,cirfnint:qR,cirmid:jR,cirscir:UR,ClockwiseContourIntegral:VR,CloseCurlyDoubleQuote:GR,CloseCurlyQuote:KR,clubs:XR,clubsuit:YR,colon:ZR,Colon:JR,Colone:QR,colone:e2,coloneq:t2,comma:n2,commat:r2,comp:i2,compfn:o2,complement:s2,complexes:l2,cong:a2,congdot:c2,Congruent:u2,conint:f2,Conint:d2,ContourIntegral:h2,copf:p2,Copf:g2,coprod:v2,Coproduct:m2,copy:y2,COPY:b2,copysr:w2,CounterClockwiseContourIntegral:x2,crarr:S2,cross:_2,Cross:k2,Cscr:T2,cscr:C2,csub:E2,csube:A2,csup:L2,csupe:M2,ctdot:N2,cudarrl:O2,cudarrr:R2,cuepr:P2,cuesc:I2,cularr:$2,cularrp:D2,cupbrcap:z2,cupcap:F2,CupCap:H2,cup:B2,Cup:W2,cupcup:q2,cupdot:j2,cupor:U2,cups:V2,curarr:G2,curarrm:K2,curlyeqprec:X2,curlyeqsucc:Y2,curlyvee:Z2,curlywedge:J2,curren:Q2,curvearrowleft:eP,curvearrowright:tP,cuvee:nP,cuwed:rP,cwconint:iP,cwint:oP,cylcty:sP,dagger:lP,Dagger:aP,daleth:cP,darr:uP,Darr:fP,dArr:dP,dash:hP,Dashv:pP,dashv:gP,dbkarow:vP,dblac:mP,Dcaron:yP,dcaron:bP,Dcy:wP,dcy:xP,ddagger:SP,ddarr:_P,DD:kP,dd:TP,DDotrahd:CP,ddotseq:EP,deg:AP,Del:LP,Delta:MP,delta:NP,demptyv:OP,dfisht:RP,Dfr:PP,dfr:IP,dHar:$P,dharl:DP,dharr:zP,DiacriticalAcute:FP,DiacriticalDot:HP,DiacriticalDoubleAcute:BP,DiacriticalGrave:WP,DiacriticalTilde:qP,diam:jP,diamond:UP,Diamond:VP,diamondsuit:GP,diams:KP,die:XP,DifferentialD:YP,digamma:ZP,disin:JP,div:QP,divide:eI,divideontimes:tI,divonx:nI,DJcy:rI,djcy:iI,dlcorn:oI,dlcrop:sI,dollar:lI,Dopf:aI,dopf:cI,Dot:uI,dot:fI,DotDot:dI,doteq:hI,doteqdot:pI,DotEqual:gI,dotminus:vI,dotplus:mI,dotsquare:yI,doublebarwedge:bI,DoubleContourIntegral:wI,DoubleDot:xI,DoubleDownArrow:SI,DoubleLeftArrow:_I,DoubleLeftRightArrow:kI,DoubleLeftTee:TI,DoubleLongLeftArrow:CI,DoubleLongLeftRightArrow:EI,DoubleLongRightArrow:AI,DoubleRightArrow:LI,DoubleRightTee:MI,DoubleUpArrow:NI,DoubleUpDownArrow:OI,DoubleVerticalBar:RI,DownArrowBar:PI,downarrow:II,DownArrow:$I,Downarrow:DI,DownArrowUpArrow:zI,DownBreve:FI,downdownarrows:HI,downharpoonleft:BI,downharpoonright:WI,DownLeftRightVector:qI,DownLeftTeeVector:jI,DownLeftVectorBar:UI,DownLeftVector:VI,DownRightTeeVector:GI,DownRightVectorBar:KI,DownRightVector:XI,DownTeeArrow:YI,DownTee:ZI,drbkarow:JI,drcorn:QI,drcrop:e$,Dscr:t$,dscr:n$,DScy:r$,dscy:i$,dsol:o$,Dstrok:s$,dstrok:l$,dtdot:a$,dtri:c$,dtrif:u$,duarr:f$,duhar:d$,dwangle:h$,DZcy:p$,dzcy:g$,dzigrarr:v$,Eacute:m$,eacute:y$,easter:b$,Ecaron:w$,ecaron:x$,Ecirc:S$,ecirc:_$,ecir:k$,ecolon:T$,Ecy:C$,ecy:E$,eDDot:A$,Edot:L$,edot:M$,eDot:N$,ee:O$,efDot:R$,Efr:P$,efr:I$,eg:$$,Egrave:D$,egrave:z$,egs:F$,egsdot:H$,el:B$,Element:W$,elinters:q$,ell:j$,els:U$,elsdot:V$,Emacr:G$,emacr:K$,empty:X$,emptyset:Y$,EmptySmallSquare:Z$,emptyv:J$,EmptyVerySmallSquare:Q$,emsp13:eD,emsp14:tD,emsp:nD,ENG:rD,eng:iD,ensp:oD,Eogon:sD,eogon:lD,Eopf:aD,eopf:cD,epar:uD,eparsl:fD,eplus:dD,epsi:hD,Epsilon:pD,epsilon:gD,epsiv:vD,eqcirc:mD,eqcolon:yD,eqsim:bD,eqslantgtr:wD,eqslantless:xD,Equal:SD,equals:_D,EqualTilde:kD,equest:TD,Equilibrium:CD,equiv:ED,equivDD:AD,eqvparsl:LD,erarr:MD,erDot:ND,escr:OD,Escr:RD,esdot:PD,Esim:ID,esim:$D,Eta:DD,eta:zD,ETH:FD,eth:HD,Euml:BD,euml:WD,euro:qD,excl:jD,exist:UD,Exists:VD,expectation:GD,exponentiale:KD,ExponentialE:XD,fallingdotseq:YD,Fcy:ZD,fcy:JD,female:QD,ffilig:ez,fflig:tz,ffllig:nz,Ffr:rz,ffr:iz,filig:oz,FilledSmallSquare:sz,FilledVerySmallSquare:lz,fjlig:az,flat:cz,fllig:uz,fltns:fz,fnof:dz,Fopf:hz,fopf:pz,forall:gz,ForAll:vz,fork:mz,forkv:yz,Fouriertrf:bz,fpartint:wz,frac12:xz,frac13:Sz,frac14:_z,frac15:kz,frac16:Tz,frac18:Cz,frac23:Ez,frac25:Az,frac34:Lz,frac35:Mz,frac38:Nz,frac45:Oz,frac56:Rz,frac58:Pz,frac78:Iz,frasl:$z,frown:Dz,fscr:zz,Fscr:Fz,gacute:Hz,Gamma:Bz,gamma:Wz,Gammad:qz,gammad:jz,gap:Uz,Gbreve:Vz,gbreve:Gz,Gcedil:Kz,Gcirc:Xz,gcirc:Yz,Gcy:Zz,gcy:Jz,Gdot:Qz,gdot:eF,ge:tF,gE:nF,gEl:rF,gel:iF,geq:oF,geqq:sF,geqslant:lF,gescc:aF,ges:cF,gesdot:uF,gesdoto:fF,gesdotol:dF,gesl:hF,gesles:pF,Gfr:gF,gfr:vF,gg:mF,Gg:yF,ggg:bF,gimel:wF,GJcy:xF,gjcy:SF,gla:_F,gl:kF,glE:TF,glj:CF,gnap:EF,gnapprox:AF,gne:LF,gnE:MF,gneq:NF,gneqq:OF,gnsim:RF,Gopf:PF,gopf:IF,grave:$F,GreaterEqual:DF,GreaterEqualLess:zF,GreaterFullEqual:FF,GreaterGreater:HF,GreaterLess:BF,GreaterSlantEqual:WF,GreaterTilde:qF,Gscr:jF,gscr:UF,gsim:VF,gsime:GF,gsiml:KF,gtcc:XF,gtcir:YF,gt:ZF,GT:JF,Gt:QF,gtdot:eH,gtlPar:tH,gtquest:nH,gtrapprox:rH,gtrarr:iH,gtrdot:oH,gtreqless:sH,gtreqqless:lH,gtrless:aH,gtrsim:cH,gvertneqq:uH,gvnE:fH,Hacek:dH,hairsp:hH,half:pH,hamilt:gH,HARDcy:vH,hardcy:mH,harrcir:yH,harr:bH,hArr:wH,harrw:xH,Hat:SH,hbar:_H,Hcirc:kH,hcirc:TH,hearts:CH,heartsuit:EH,hellip:AH,hercon:LH,hfr:MH,Hfr:NH,HilbertSpace:OH,hksearow:RH,hkswarow:PH,hoarr:IH,homtht:$H,hookleftarrow:DH,hookrightarrow:zH,hopf:FH,Hopf:HH,horbar:BH,HorizontalLine:WH,hscr:qH,Hscr:jH,hslash:UH,Hstrok:VH,hstrok:GH,HumpDownHump:KH,HumpEqual:XH,hybull:YH,hyphen:ZH,Iacute:JH,iacute:QH,ic:e3,Icirc:t3,icirc:n3,Icy:r3,icy:i3,Idot:o3,IEcy:s3,iecy:l3,iexcl:a3,iff:c3,ifr:u3,Ifr:f3,Igrave:d3,igrave:h3,ii:p3,iiiint:g3,iiint:v3,iinfin:m3,iiota:y3,IJlig:b3,ijlig:w3,Imacr:x3,imacr:S3,image:_3,ImaginaryI:k3,imagline:T3,imagpart:C3,imath:E3,Im:A3,imof:L3,imped:M3,Implies:N3,incare:O3,in:"∈",infin:R3,infintie:P3,inodot:I3,intcal:$3,int:D3,Int:z3,integers:F3,Integral:H3,intercal:B3,Intersection:W3,intlarhk:q3,intprod:j3,InvisibleComma:U3,InvisibleTimes:V3,IOcy:G3,iocy:K3,Iogon:X3,iogon:Y3,Iopf:Z3,iopf:J3,Iota:Q3,iota:eB,iprod:tB,iquest:nB,iscr:rB,Iscr:iB,isin:oB,isindot:sB,isinE:lB,isins:aB,isinsv:cB,isinv:uB,it:fB,Itilde:dB,itilde:hB,Iukcy:pB,iukcy:gB,Iuml:vB,iuml:mB,Jcirc:yB,jcirc:bB,Jcy:wB,jcy:xB,Jfr:SB,jfr:_B,jmath:kB,Jopf:TB,jopf:CB,Jscr:EB,jscr:AB,Jsercy:LB,jsercy:MB,Jukcy:NB,jukcy:OB,Kappa:RB,kappa:PB,kappav:IB,Kcedil:$B,kcedil:DB,Kcy:zB,kcy:FB,Kfr:HB,kfr:BB,kgreen:WB,KHcy:qB,khcy:jB,KJcy:UB,kjcy:VB,Kopf:GB,kopf:KB,Kscr:XB,kscr:YB,lAarr:ZB,Lacute:JB,lacute:QB,laemptyv:e5,lagran:t5,Lambda:n5,lambda:r5,lang:i5,Lang:o5,langd:s5,langle:l5,lap:a5,Laplacetrf:c5,laquo:u5,larrb:f5,larrbfs:d5,larr:h5,Larr:p5,lArr:g5,larrfs:v5,larrhk:m5,larrlp:y5,larrpl:b5,larrsim:w5,larrtl:x5,latail:S5,lAtail:_5,lat:k5,late:T5,lates:C5,lbarr:E5,lBarr:A5,lbbrk:L5,lbrace:M5,lbrack:N5,lbrke:O5,lbrksld:R5,lbrkslu:P5,Lcaron:I5,lcaron:$5,Lcedil:D5,lcedil:z5,lceil:F5,lcub:H5,Lcy:B5,lcy:W5,ldca:q5,ldquo:j5,ldquor:U5,ldrdhar:V5,ldrushar:G5,ldsh:K5,le:X5,lE:Y5,LeftAngleBracket:Z5,LeftArrowBar:J5,leftarrow:Q5,LeftArrow:e8,Leftarrow:t8,LeftArrowRightArrow:n8,leftarrowtail:r8,LeftCeiling:i8,LeftDoubleBracket:o8,LeftDownTeeVector:s8,LeftDownVectorBar:l8,LeftDownVector:a8,LeftFloor:c8,leftharpoondown:u8,leftharpoonup:f8,leftleftarrows:d8,leftrightarrow:h8,LeftRightArrow:p8,Leftrightarrow:g8,leftrightarrows:v8,leftrightharpoons:m8,leftrightsquigarrow:y8,LeftRightVector:b8,LeftTeeArrow:w8,LeftTee:x8,LeftTeeVector:S8,leftthreetimes:_8,LeftTriangleBar:k8,LeftTriangle:T8,LeftTriangleEqual:C8,LeftUpDownVector:E8,LeftUpTeeVector:A8,LeftUpVectorBar:L8,LeftUpVector:M8,LeftVectorBar:N8,LeftVector:O8,lEg:R8,leg:P8,leq:I8,leqq:$8,leqslant:D8,lescc:z8,les:F8,lesdot:H8,lesdoto:B8,lesdotor:W8,lesg:q8,lesges:j8,lessapprox:U8,lessdot:V8,lesseqgtr:G8,lesseqqgtr:K8,LessEqualGreater:X8,LessFullEqual:Y8,LessGreater:Z8,lessgtr:J8,LessLess:Q8,lesssim:eW,LessSlantEqual:tW,LessTilde:nW,lfisht:rW,lfloor:iW,Lfr:oW,lfr:sW,lg:lW,lgE:aW,lHar:cW,lhard:uW,lharu:fW,lharul:dW,lhblk:hW,LJcy:pW,ljcy:gW,llarr:vW,ll:mW,Ll:yW,llcorner:bW,Lleftarrow:wW,llhard:xW,lltri:SW,Lmidot:_W,lmidot:kW,lmoustache:TW,lmoust:CW,lnap:EW,lnapprox:AW,lne:LW,lnE:MW,lneq:NW,lneqq:OW,lnsim:RW,loang:PW,loarr:IW,lobrk:$W,longleftarrow:DW,LongLeftArrow:zW,Longleftarrow:FW,longleftrightarrow:HW,LongLeftRightArrow:BW,Longleftrightarrow:WW,longmapsto:qW,longrightarrow:jW,LongRightArrow:UW,Longrightarrow:VW,looparrowleft:GW,looparrowright:KW,lopar:XW,Lopf:YW,lopf:ZW,loplus:JW,lotimes:QW,lowast:e4,lowbar:t4,LowerLeftArrow:n4,LowerRightArrow:r4,loz:i4,lozenge:o4,lozf:s4,lpar:l4,lparlt:a4,lrarr:c4,lrcorner:u4,lrhar:f4,lrhard:d4,lrm:h4,lrtri:p4,lsaquo:g4,lscr:v4,Lscr:m4,lsh:y4,Lsh:b4,lsim:w4,lsime:x4,lsimg:S4,lsqb:_4,lsquo:k4,lsquor:T4,Lstrok:C4,lstrok:E4,ltcc:A4,ltcir:L4,lt:M4,LT:N4,Lt:O4,ltdot:R4,lthree:P4,ltimes:I4,ltlarr:$4,ltquest:D4,ltri:z4,ltrie:F4,ltrif:H4,ltrPar:B4,lurdshar:W4,luruhar:q4,lvertneqq:j4,lvnE:U4,macr:V4,male:G4,malt:K4,maltese:X4,Map:"⤅",map:Y4,mapsto:Z4,mapstodown:J4,mapstoleft:Q4,mapstoup:eq,marker:tq,mcomma:nq,Mcy:rq,mcy:iq,mdash:oq,mDDot:sq,measuredangle:lq,MediumSpace:aq,Mellintrf:cq,Mfr:uq,mfr:fq,mho:dq,micro:hq,midast:pq,midcir:gq,mid:vq,middot:mq,minusb:yq,minus:bq,minusd:wq,minusdu:xq,MinusPlus:Sq,mlcp:_q,mldr:kq,mnplus:Tq,models:Cq,Mopf:Eq,mopf:Aq,mp:Lq,mscr:Mq,Mscr:Nq,mstpos:Oq,Mu:Rq,mu:Pq,multimap:Iq,mumap:$q,nabla:Dq,Nacute:zq,nacute:Fq,nang:Hq,nap:Bq,napE:Wq,napid:qq,napos:jq,napprox:Uq,natural:Vq,naturals:Gq,natur:Kq,nbsp:Xq,nbump:Yq,nbumpe:Zq,ncap:Jq,Ncaron:Qq,ncaron:ej,Ncedil:tj,ncedil:nj,ncong:rj,ncongdot:ij,ncup:oj,Ncy:sj,ncy:lj,ndash:aj,nearhk:cj,nearr:uj,neArr:fj,nearrow:dj,ne:hj,nedot:pj,NegativeMediumSpace:gj,NegativeThickSpace:vj,NegativeThinSpace:mj,NegativeVeryThinSpace:yj,nequiv:bj,nesear:wj,nesim:xj,NestedGreaterGreater:Sj,NestedLessLess:_j,NewLine:kj,nexist:Tj,nexists:Cj,Nfr:Ej,nfr:Aj,ngE:Lj,nge:Mj,ngeq:Nj,ngeqq:Oj,ngeqslant:Rj,nges:Pj,nGg:Ij,ngsim:$j,nGt:Dj,ngt:zj,ngtr:Fj,nGtv:Hj,nharr:Bj,nhArr:Wj,nhpar:qj,ni:jj,nis:Uj,nisd:Vj,niv:Gj,NJcy:Kj,njcy:Xj,nlarr:Yj,nlArr:Zj,nldr:Jj,nlE:Qj,nle:eU,nleftarrow:tU,nLeftarrow:nU,nleftrightarrow:rU,nLeftrightarrow:iU,nleq:oU,nleqq:sU,nleqslant:lU,nles:aU,nless:cU,nLl:uU,nlsim:fU,nLt:dU,nlt:hU,nltri:pU,nltrie:gU,nLtv:vU,nmid:mU,NoBreak:yU,NonBreakingSpace:bU,nopf:wU,Nopf:xU,Not:SU,not:_U,NotCongruent:kU,NotCupCap:TU,NotDoubleVerticalBar:CU,NotElement:EU,NotEqual:AU,NotEqualTilde:LU,NotExists:MU,NotGreater:NU,NotGreaterEqual:OU,NotGreaterFullEqual:RU,NotGreaterGreater:PU,NotGreaterLess:IU,NotGreaterSlantEqual:$U,NotGreaterTilde:DU,NotHumpDownHump:zU,NotHumpEqual:FU,notin:HU,notindot:BU,notinE:WU,notinva:qU,notinvb:jU,notinvc:UU,NotLeftTriangleBar:VU,NotLeftTriangle:GU,NotLeftTriangleEqual:KU,NotLess:XU,NotLessEqual:YU,NotLessGreater:ZU,NotLessLess:JU,NotLessSlantEqual:QU,NotLessTilde:e6,NotNestedGreaterGreater:t6,NotNestedLessLess:n6,notni:r6,notniva:i6,notnivb:o6,notnivc:s6,NotPrecedes:l6,NotPrecedesEqual:a6,NotPrecedesSlantEqual:c6,NotReverseElement:u6,NotRightTriangleBar:f6,NotRightTriangle:d6,NotRightTriangleEqual:h6,NotSquareSubset:p6,NotSquareSubsetEqual:g6,NotSquareSuperset:v6,NotSquareSupersetEqual:m6,NotSubset:y6,NotSubsetEqual:b6,NotSucceeds:w6,NotSucceedsEqual:x6,NotSucceedsSlantEqual:S6,NotSucceedsTilde:_6,NotSuperset:k6,NotSupersetEqual:T6,NotTilde:C6,NotTildeEqual:E6,NotTildeFullEqual:A6,NotTildeTilde:L6,NotVerticalBar:M6,nparallel:N6,npar:O6,nparsl:R6,npart:P6,npolint:I6,npr:$6,nprcue:D6,nprec:z6,npreceq:F6,npre:H6,nrarrc:B6,nrarr:W6,nrArr:q6,nrarrw:j6,nrightarrow:U6,nRightarrow:V6,nrtri:G6,nrtrie:K6,nsc:X6,nsccue:Y6,nsce:Z6,Nscr:J6,nscr:Q6,nshortmid:eV,nshortparallel:tV,nsim:nV,nsime:rV,nsimeq:iV,nsmid:oV,nspar:sV,nsqsube:lV,nsqsupe:aV,nsub:cV,nsubE:uV,nsube:fV,nsubset:dV,nsubseteq:hV,nsubseteqq:pV,nsucc:gV,nsucceq:vV,nsup:mV,nsupE:yV,nsupe:bV,nsupset:wV,nsupseteq:xV,nsupseteqq:SV,ntgl:_V,Ntilde:kV,ntilde:TV,ntlg:CV,ntriangleleft:EV,ntrianglelefteq:AV,ntriangleright:LV,ntrianglerighteq:MV,Nu:NV,nu:OV,num:RV,numero:PV,numsp:IV,nvap:$V,nvdash:DV,nvDash:zV,nVdash:FV,nVDash:HV,nvge:BV,nvgt:WV,nvHarr:qV,nvinfin:jV,nvlArr:UV,nvle:VV,nvlt:GV,nvltrie:KV,nvrArr:XV,nvrtrie:YV,nvsim:ZV,nwarhk:JV,nwarr:QV,nwArr:eG,nwarrow:tG,nwnear:nG,Oacute:rG,oacute:iG,oast:oG,Ocirc:sG,ocirc:lG,ocir:aG,Ocy:cG,ocy:uG,odash:fG,Odblac:dG,odblac:hG,odiv:pG,odot:gG,odsold:vG,OElig:mG,oelig:yG,ofcir:bG,Ofr:wG,ofr:xG,ogon:SG,Ograve:_G,ograve:kG,ogt:TG,ohbar:CG,ohm:EG,oint:AG,olarr:LG,olcir:MG,olcross:NG,oline:OG,olt:RG,Omacr:PG,omacr:IG,Omega:$G,omega:DG,Omicron:zG,omicron:FG,omid:HG,ominus:BG,Oopf:WG,oopf:qG,opar:jG,OpenCurlyDoubleQuote:UG,OpenCurlyQuote:VG,operp:GG,oplus:KG,orarr:XG,Or:YG,or:ZG,ord:JG,order:QG,orderof:e9,ordf:t9,ordm:n9,origof:r9,oror:i9,orslope:o9,orv:s9,oS:l9,Oscr:a9,oscr:c9,Oslash:u9,oslash:f9,osol:d9,Otilde:h9,otilde:p9,otimesas:g9,Otimes:v9,otimes:m9,Ouml:y9,ouml:b9,ovbar:w9,OverBar:x9,OverBrace:S9,OverBracket:_9,OverParenthesis:k9,para:T9,parallel:C9,par:E9,parsim:A9,parsl:L9,part:M9,PartialD:N9,Pcy:O9,pcy:R9,percnt:P9,period:I9,permil:$9,perp:D9,pertenk:z9,Pfr:F9,pfr:H9,Phi:B9,phi:W9,phiv:q9,phmmat:j9,phone:U9,Pi:V9,pi:G9,pitchfork:K9,piv:X9,planck:Y9,planckh:Z9,plankv:J9,plusacir:Q9,plusb:e7,pluscir:t7,plus:n7,plusdo:r7,plusdu:i7,pluse:o7,PlusMinus:s7,plusmn:l7,plussim:a7,plustwo:c7,pm:u7,Poincareplane:f7,pointint:d7,popf:h7,Popf:p7,pound:g7,prap:v7,Pr:m7,pr:y7,prcue:b7,precapprox:w7,prec:x7,preccurlyeq:S7,Precedes:_7,PrecedesEqual:k7,PrecedesSlantEqual:T7,PrecedesTilde:C7,preceq:E7,precnapprox:A7,precneqq:L7,precnsim:M7,pre:N7,prE:O7,precsim:R7,prime:P7,Prime:I7,primes:$7,prnap:D7,prnE:z7,prnsim:F7,prod:H7,Product:B7,profalar:W7,profline:q7,profsurf:j7,prop:U7,Proportional:V7,Proportion:G7,propto:K7,prsim:X7,prurel:Y7,Pscr:Z7,pscr:J7,Psi:Q7,psi:eK,puncsp:tK,Qfr:nK,qfr:rK,qint:iK,qopf:oK,Qopf:sK,qprime:lK,Qscr:aK,qscr:cK,quaternions:uK,quatint:fK,quest:dK,questeq:hK,quot:pK,QUOT:gK,rAarr:vK,race:mK,Racute:yK,racute:bK,radic:wK,raemptyv:xK,rang:SK,Rang:_K,rangd:kK,range:TK,rangle:CK,raquo:EK,rarrap:AK,rarrb:LK,rarrbfs:MK,rarrc:NK,rarr:OK,Rarr:RK,rArr:PK,rarrfs:IK,rarrhk:$K,rarrlp:DK,rarrpl:zK,rarrsim:FK,Rarrtl:HK,rarrtl:BK,rarrw:WK,ratail:qK,rAtail:jK,ratio:UK,rationals:VK,rbarr:GK,rBarr:KK,RBarr:XK,rbbrk:YK,rbrace:ZK,rbrack:JK,rbrke:QK,rbrksld:eX,rbrkslu:tX,Rcaron:nX,rcaron:rX,Rcedil:iX,rcedil:oX,rceil:sX,rcub:lX,Rcy:aX,rcy:cX,rdca:uX,rdldhar:fX,rdquo:dX,rdquor:hX,rdsh:pX,real:gX,realine:vX,realpart:mX,reals:yX,Re:bX,rect:wX,reg:xX,REG:SX,ReverseElement:_X,ReverseEquilibrium:kX,ReverseUpEquilibrium:TX,rfisht:CX,rfloor:EX,rfr:AX,Rfr:LX,rHar:MX,rhard:NX,rharu:OX,rharul:RX,Rho:PX,rho:IX,rhov:$X,RightAngleBracket:DX,RightArrowBar:zX,rightarrow:FX,RightArrow:HX,Rightarrow:BX,RightArrowLeftArrow:WX,rightarrowtail:qX,RightCeiling:jX,RightDoubleBracket:UX,RightDownTeeVector:VX,RightDownVectorBar:GX,RightDownVector:KX,RightFloor:XX,rightharpoondown:YX,rightharpoonup:ZX,rightleftarrows:JX,rightleftharpoons:QX,rightrightarrows:eY,rightsquigarrow:tY,RightTeeArrow:nY,RightTee:rY,RightTeeVector:iY,rightthreetimes:oY,RightTriangleBar:sY,RightTriangle:lY,RightTriangleEqual:aY,RightUpDownVector:cY,RightUpTeeVector:uY,RightUpVectorBar:fY,RightUpVector:dY,RightVectorBar:hY,RightVector:pY,ring:gY,risingdotseq:vY,rlarr:mY,rlhar:yY,rlm:bY,rmoustache:wY,rmoust:xY,rnmid:SY,roang:_Y,roarr:kY,robrk:TY,ropar:CY,ropf:EY,Ropf:AY,roplus:LY,rotimes:MY,RoundImplies:NY,rpar:OY,rpargt:RY,rppolint:PY,rrarr:IY,Rrightarrow:$Y,rsaquo:DY,rscr:zY,Rscr:FY,rsh:HY,Rsh:BY,rsqb:WY,rsquo:qY,rsquor:jY,rthree:UY,rtimes:VY,rtri:GY,rtrie:KY,rtrif:XY,rtriltri:YY,RuleDelayed:ZY,ruluhar:JY,rx:QY,Sacute:eZ,sacute:tZ,sbquo:nZ,scap:rZ,Scaron:iZ,scaron:oZ,Sc:sZ,sc:lZ,sccue:aZ,sce:cZ,scE:uZ,Scedil:fZ,scedil:dZ,Scirc:hZ,scirc:pZ,scnap:gZ,scnE:vZ,scnsim:mZ,scpolint:yZ,scsim:bZ,Scy:wZ,scy:xZ,sdotb:SZ,sdot:_Z,sdote:kZ,searhk:TZ,searr:CZ,seArr:EZ,searrow:AZ,sect:LZ,semi:MZ,seswar:NZ,setminus:OZ,setmn:RZ,sext:PZ,Sfr:IZ,sfr:$Z,sfrown:DZ,sharp:zZ,SHCHcy:FZ,shchcy:HZ,SHcy:BZ,shcy:WZ,ShortDownArrow:qZ,ShortLeftArrow:jZ,shortmid:UZ,shortparallel:VZ,ShortRightArrow:GZ,ShortUpArrow:KZ,shy:XZ,Sigma:YZ,sigma:ZZ,sigmaf:JZ,sigmav:QZ,sim:eJ,simdot:tJ,sime:nJ,simeq:rJ,simg:iJ,simgE:oJ,siml:sJ,simlE:lJ,simne:aJ,simplus:cJ,simrarr:uJ,slarr:fJ,SmallCircle:dJ,smallsetminus:hJ,smashp:pJ,smeparsl:gJ,smid:vJ,smile:mJ,smt:yJ,smte:bJ,smtes:wJ,SOFTcy:xJ,softcy:SJ,solbar:_J,solb:kJ,sol:TJ,Sopf:CJ,sopf:EJ,spades:AJ,spadesuit:LJ,spar:MJ,sqcap:NJ,sqcaps:OJ,sqcup:RJ,sqcups:PJ,Sqrt:IJ,sqsub:$J,sqsube:DJ,sqsubset:zJ,sqsubseteq:FJ,sqsup:HJ,sqsupe:BJ,sqsupset:WJ,sqsupseteq:qJ,square:jJ,Square:UJ,SquareIntersection:VJ,SquareSubset:GJ,SquareSubsetEqual:KJ,SquareSuperset:XJ,SquareSupersetEqual:YJ,SquareUnion:ZJ,squarf:JJ,squ:QJ,squf:eQ,srarr:tQ,Sscr:nQ,sscr:rQ,ssetmn:iQ,ssmile:oQ,sstarf:sQ,Star:lQ,star:aQ,starf:cQ,straightepsilon:uQ,straightphi:fQ,strns:dQ,sub:hQ,Sub:pQ,subdot:gQ,subE:vQ,sube:mQ,subedot:yQ,submult:bQ,subnE:wQ,subne:xQ,subplus:SQ,subrarr:_Q,subset:kQ,Subset:TQ,subseteq:CQ,subseteqq:EQ,SubsetEqual:AQ,subsetneq:LQ,subsetneqq:MQ,subsim:NQ,subsub:OQ,subsup:RQ,succapprox:PQ,succ:IQ,succcurlyeq:$Q,Succeeds:DQ,SucceedsEqual:zQ,SucceedsSlantEqual:FQ,SucceedsTilde:HQ,succeq:BQ,succnapprox:WQ,succneqq:qQ,succnsim:jQ,succsim:UQ,SuchThat:VQ,sum:GQ,Sum:KQ,sung:XQ,sup1:YQ,sup2:ZQ,sup3:JQ,sup:QQ,Sup:eee,supdot:tee,supdsub:nee,supE:ree,supe:iee,supedot:oee,Superset:see,SupersetEqual:lee,suphsol:aee,suphsub:cee,suplarr:uee,supmult:fee,supnE:dee,supne:hee,supplus:pee,supset:gee,Supset:vee,supseteq:mee,supseteqq:yee,supsetneq:bee,supsetneqq:wee,supsim:xee,supsub:See,supsup:_ee,swarhk:kee,swarr:Tee,swArr:Cee,swarrow:Eee,swnwar:Aee,szlig:Lee,Tab:Mee,target:Nee,Tau:Oee,tau:Ree,tbrk:Pee,Tcaron:Iee,tcaron:$ee,Tcedil:Dee,tcedil:zee,Tcy:Fee,tcy:Hee,tdot:Bee,telrec:Wee,Tfr:qee,tfr:jee,there4:Uee,therefore:Vee,Therefore:Gee,Theta:Kee,theta:Xee,thetasym:Yee,thetav:Zee,thickapprox:Jee,thicksim:Qee,ThickSpace:ete,ThinSpace:tte,thinsp:nte,thkap:rte,thksim:ite,THORN:ote,thorn:ste,tilde:lte,Tilde:ate,TildeEqual:cte,TildeFullEqual:ute,TildeTilde:fte,timesbar:dte,timesb:hte,times:pte,timesd:gte,tint:vte,toea:mte,topbot:yte,topcir:bte,top:wte,Topf:xte,topf:Ste,topfork:_te,tosa:kte,tprime:Tte,trade:Cte,TRADE:Ete,triangle:Ate,triangledown:Lte,triangleleft:Mte,trianglelefteq:Nte,triangleq:Ote,triangleright:Rte,trianglerighteq:Pte,tridot:Ite,trie:$te,triminus:Dte,TripleDot:zte,triplus:Fte,trisb:Hte,tritime:Bte,trpezium:Wte,Tscr:qte,tscr:jte,TScy:Ute,tscy:Vte,TSHcy:Gte,tshcy:Kte,Tstrok:Xte,tstrok:Yte,twixt:Zte,twoheadleftarrow:Jte,twoheadrightarrow:Qte,Uacute:ene,uacute:tne,uarr:nne,Uarr:rne,uArr:ine,Uarrocir:one,Ubrcy:sne,ubrcy:lne,Ubreve:ane,ubreve:cne,Ucirc:une,ucirc:fne,Ucy:dne,ucy:hne,udarr:pne,Udblac:gne,udblac:vne,udhar:mne,ufisht:yne,Ufr:bne,ufr:wne,Ugrave:xne,ugrave:Sne,uHar:_ne,uharl:kne,uharr:Tne,uhblk:Cne,ulcorn:Ene,ulcorner:Ane,ulcrop:Lne,ultri:Mne,Umacr:Nne,umacr:One,uml:Rne,UnderBar:Pne,UnderBrace:Ine,UnderBracket:$ne,UnderParenthesis:Dne,Union:zne,UnionPlus:Fne,Uogon:Hne,uogon:Bne,Uopf:Wne,uopf:qne,UpArrowBar:jne,uparrow:Une,UpArrow:Vne,Uparrow:Gne,UpArrowDownArrow:Kne,updownarrow:Xne,UpDownArrow:Yne,Updownarrow:Zne,UpEquilibrium:Jne,upharpoonleft:Qne,upharpoonright:ere,uplus:tre,UpperLeftArrow:nre,UpperRightArrow:rre,upsi:ire,Upsi:ore,upsih:sre,Upsilon:lre,upsilon:are,UpTeeArrow:cre,UpTee:ure,upuparrows:fre,urcorn:dre,urcorner:hre,urcrop:pre,Uring:gre,uring:vre,urtri:mre,Uscr:yre,uscr:bre,utdot:wre,Utilde:xre,utilde:Sre,utri:_re,utrif:kre,uuarr:Tre,Uuml:Cre,uuml:Ere,uwangle:Are,vangrt:Lre,varepsilon:Mre,varkappa:Nre,varnothing:Ore,varphi:Rre,varpi:Pre,varpropto:Ire,varr:$re,vArr:Dre,varrho:zre,varsigma:Fre,varsubsetneq:Hre,varsubsetneqq:Bre,varsupsetneq:Wre,varsupsetneqq:qre,vartheta:jre,vartriangleleft:Ure,vartriangleright:Vre,vBar:Gre,Vbar:Kre,vBarv:Xre,Vcy:Yre,vcy:Zre,vdash:Jre,vDash:Qre,Vdash:eie,VDash:tie,Vdashl:nie,veebar:rie,vee:iie,Vee:oie,veeeq:sie,vellip:lie,verbar:aie,Verbar:cie,vert:uie,Vert:fie,VerticalBar:die,VerticalLine:hie,VerticalSeparator:pie,VerticalTilde:gie,VeryThinSpace:vie,Vfr:mie,vfr:yie,vltri:bie,vnsub:wie,vnsup:xie,Vopf:Sie,vopf:_ie,vprop:kie,vrtri:Tie,Vscr:Cie,vscr:Eie,vsubnE:Aie,vsubne:Lie,vsupnE:Mie,vsupne:Nie,Vvdash:Oie,vzigzag:Rie,Wcirc:Pie,wcirc:Iie,wedbar:$ie,wedge:Die,Wedge:zie,wedgeq:Fie,weierp:Hie,Wfr:Bie,wfr:Wie,Wopf:qie,wopf:jie,wp:Uie,wr:Vie,wreath:Gie,Wscr:Kie,wscr:Xie,xcap:Yie,xcirc:Zie,xcup:Jie,xdtri:Qie,Xfr:eoe,xfr:toe,xharr:noe,xhArr:roe,Xi:ioe,xi:ooe,xlarr:soe,xlArr:loe,xmap:aoe,xnis:coe,xodot:uoe,Xopf:foe,xopf:doe,xoplus:hoe,xotime:poe,xrarr:goe,xrArr:voe,Xscr:moe,xscr:yoe,xsqcup:boe,xuplus:woe,xutri:xoe,xvee:Soe,xwedge:_oe,Yacute:koe,yacute:Toe,YAcy:Coe,yacy:Eoe,Ycirc:Aoe,ycirc:Loe,Ycy:Moe,ycy:Noe,yen:Ooe,Yfr:Roe,yfr:Poe,YIcy:Ioe,yicy:$oe,Yopf:Doe,yopf:zoe,Yscr:Foe,yscr:Hoe,YUcy:Boe,yucy:Woe,yuml:qoe,Yuml:joe,Zacute:Uoe,zacute:Voe,Zcaron:Goe,zcaron:Koe,Zcy:Xoe,zcy:Yoe,Zdot:Zoe,zdot:Joe,zeetrf:Qoe,ZeroWidthSpace:ese,Zeta:tse,zeta:nse,zfr:rse,Zfr:ise,ZHcy:ose,zhcy:sse,zigrarr:lse,zopf:ase,Zopf:cse,Zscr:use,zscr:fse,zwj:dse,zwnj:hse},pse="Á",gse="á",vse="Â",mse="â",yse="´",bse="Æ",wse="æ",xse="À",Sse="à",_se="&",kse="&",Tse="Å",Cse="å",Ese="Ã",Ase="ã",Lse="Ä",Mse="ä",Nse="¦",Ose="Ç",Rse="ç",Pse="¸",Ise="¢",$se="©",Dse="©",zse="¤",Fse="°",Hse="÷",Bse="É",Wse="é",qse="Ê",jse="ê",Use="È",Vse="è",Gse="Ð",Kse="ð",Xse="Ë",Yse="ë",Zse="½",Jse="¼",Qse="¾",ele=">",tle=">",nle="Í",rle="í",ile="Î",ole="î",sle="¡",lle="Ì",ale="ì",cle="¿",ule="Ï",fle="ï",dle="«",hle="<",ple="<",gle="¯",vle="µ",mle="·",yle=" ",ble="¬",wle="Ñ",xle="ñ",Sle="Ó",_le="ó",kle="Ô",Tle="ô",Cle="Ò",Ele="ò",Ale="ª",Lle="º",Mle="Ø",Nle="ø",Ole="Õ",Rle="õ",Ple="Ö",Ile="ö",$le="¶",Dle="±",zle="£",Fle='"',Hle='"',Ble="»",Wle="®",qle="®",jle="§",Ule="­",Vle="¹",Gle="²",Kle="³",Xle="ß",Yle="Þ",Zle="þ",Jle="×",Qle="Ú",eae="ú",tae="Û",nae="û",rae="Ù",iae="ù",oae="¨",sae="Ü",lae="ü",aae="Ý",cae="ý",uae="¥",fae="ÿ",dae={Aacute:pse,aacute:gse,Acirc:vse,acirc:mse,acute:yse,AElig:bse,aelig:wse,Agrave:xse,agrave:Sse,amp:_se,AMP:kse,Aring:Tse,aring:Cse,Atilde:Ese,atilde:Ase,Auml:Lse,auml:Mse,brvbar:Nse,Ccedil:Ose,ccedil:Rse,cedil:Pse,cent:Ise,copy:$se,COPY:Dse,curren:zse,deg:Fse,divide:Hse,Eacute:Bse,eacute:Wse,Ecirc:qse,ecirc:jse,Egrave:Use,egrave:Vse,ETH:Gse,eth:Kse,Euml:Xse,euml:Yse,frac12:Zse,frac14:Jse,frac34:Qse,gt:ele,GT:tle,Iacute:nle,iacute:rle,Icirc:ile,icirc:ole,iexcl:sle,Igrave:lle,igrave:ale,iquest:cle,Iuml:ule,iuml:fle,laquo:dle,lt:hle,LT:ple,macr:gle,micro:vle,middot:mle,nbsp:yle,not:ble,Ntilde:wle,ntilde:xle,Oacute:Sle,oacute:_le,Ocirc:kle,ocirc:Tle,Ograve:Cle,ograve:Ele,ordf:Ale,ordm:Lle,Oslash:Mle,oslash:Nle,Otilde:Ole,otilde:Rle,Ouml:Ple,ouml:Ile,para:$le,plusmn:Dle,pound:zle,quot:Fle,QUOT:Hle,raquo:Ble,reg:Wle,REG:qle,sect:jle,shy:Ule,sup1:Vle,sup2:Gle,sup3:Kle,szlig:Xle,THORN:Yle,thorn:Zle,times:Jle,Uacute:Qle,uacute:eae,Ucirc:tae,ucirc:nae,Ugrave:rae,ugrave:iae,uml:oae,Uuml:sae,uuml:lae,Yacute:aae,yacute:cae,yen:uae,yuml:fae},hae="&",pae="'",gae=">",vae="<",mae='"',Dw={amp:hae,apos:pae,gt:gae,lt:vae,quot:mae};var ys={};const yae={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 Km;function bae(){if(Km)return ys;Km=1;var e=ys&&ys.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ys,"__esModule",{value:!0});var t=e(yae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ys.default=o,ys}var Xm;function Ym(){if(Xm)return Tr;Xm=1;var e=Tr&&Tr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.decodeHTML=Tr.decodeHTMLStrict=Tr.decodeXML=void 0;var t=e($w),r=e(dae),o=e(Dw),s=e(bae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tr.decodeXML=f(o.default),Tr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};Tr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var x=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=h(t.default);function L(M){return M.substr(-1)!==";"&&(M+=";"),C(M)}return function(M){return String(M).replace(x,L)}})();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return Tr}var Mn={},Zm;function Jm(){if(Zm)return Mn;Zm=1;var e=Mn&&Mn.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.escapeUTF8=Mn.escape=Mn.encodeNonAsciiHTML=Mn.encodeHTML=Mn.encodeXML=void 0;var t=e(Dw),r=d(t.default),o=h(r);Mn.encodeXML=M(r);var s=e($w),c=d(s.default),f=h(c);Mn.encodeHTML=b(c,f),Mn.encodeNonAsciiHTML=M(c);function d(A){return Object.keys(A).sort().reduce(function(R,W){return R[A[W]]="&"+W+";",R},{})}function h(A){for(var R=[],W=[],E=0,B=Object.keys(A);E<B.length;E++){var U=B[E];U.length===1?R.push("\\"+U):W.push(U)}R.sort();for(var oe=0;oe<R.length-1;oe++){for(var te=oe;te<R.length-1&&R[te].charCodeAt(1)+1===R[te+1].charCodeAt(1);)te+=1;var Z=1+te-oe;Z<3||R.splice(oe,Z,R[oe]+"-"+R[te])}return W.unshift("["+R.join("")+"]"),new RegExp(W.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(A){return A.codePointAt(0)}:function(A){return(A.charCodeAt(0)-55296)*1024+A.charCodeAt(1)-56320+65536};function m(A){return"&#x"+(A.length>1?v(A):A.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(A,R){return function(W){return W.replace(R,function(E){return A[E]}).replace(p,m)}}var x=new RegExp(o.source+"|"+p.source,"g");function C(A){return A.replace(x,m)}Mn.escape=C;function L(A){return A.replace(o,m)}Mn.escapeUTF8=L;function M(A){return function(R){return R.replace(x,function(W){return A[W]||m(W)})}}return Mn}var Qm;function wae(){return Qm||(Qm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Ym(),r=Jm();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=Jm();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=Ym();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}})})(pd)),pd}var gd,e0;function xae(){if(e0)return gd;e0=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var N=0;N<O.length;N++){var _=O[N];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(P,_.key,_)}}function r(P,O,N){return O&&t(P.prototype,O),P}function o(P,O){var N=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!N){if(Array.isArray(P)||(N=s(P))||O){N&&(P=N);var _=0,z=function(){};return{s:z,n:function(){return _>=P.length?{done:!0}:{done:!1,value:P[_++]}},e:function(Pe){throw Pe},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
44
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,re=!1,ve;return{s:function(){N=N.call(P)},n:function(){var Pe=N.next();return H=Pe.done,Pe},e:function(Pe){re=!0,ve=Pe},f:function(){try{!H&&N.return!=null&&N.return()}finally{if(re)throw ve}}}}function s(P,O){if(P){if(typeof P=="string")return c(P,O);var N=Object.prototype.toString.call(P).slice(8,-1);if(N==="Object"&&P.constructor&&(N=P.constructor.name),N==="Map"||N==="Set")return Array.from(P);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return c(P,O)}}function c(P,O){(O==null||O>P.length)&&(O=P.length);for(var N=0,_=new Array(O);N<O;N++)_[N]=P[N];return _}var f=wae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return M(0,5).forEach(function(O){M(0,5).forEach(function(N){M(0,5).forEach(function(_){return p(O,N,_,P)})})}),M(0,23).forEach(function(O){var N=O+232,_=v(O*10+8);P[N]="#"+_+_+_}),P}function p(P,O,N,_){var z=16+P*36+O*6+N,H=P>0?P*40+55:0,re=O>0?O*40+55:0,ve=N>0?N*40+55:0;_[z]=m([H,re,ve])}function v(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function m(P){var O=[],N=o(P),_;try{for(N.s();!(_=N.n()).done;){var z=_.value;O.push(v(z))}}catch(H){N.e(H)}finally{N.f()}return"#"+O.join("")}function b(P,O,N,_){var z;return O==="text"?z=W(N,_):O==="display"?z=C(P,N,_):O==="xterm256Foreground"?z=U(P,_.colors[N]):O==="xterm256Background"?z=oe(P,_.colors[N]):O==="rgb"&&(z=x(P,N)),z}function x(P,O){O=O.substring(2).slice(0,-1);var N=+O.substr(0,2),_=O.substring(5).split(";"),z=_.map(function(H){return("0"+Number(H).toString(16)).substr(-2)}).join("");return B(P,(N===38?"color:#":"background-color:#")+z)}function C(P,O,N){O=parseInt(O,10);var _={"-1":function(){return"<br/>"},0:function(){return P.length&&L(P)},1:function(){return E(P,"b")},3:function(){return E(P,"i")},4:function(){return E(P,"u")},8:function(){return B(P,"display:none")},9:function(){return E(P,"strike")},22:function(){return B(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return te(P,"i")},24:function(){return te(P,"u")},39:function(){return U(P,N.fg)},49:function(){return oe(P,N.bg)},53:function(){return B(P,"text-decoration:overline")}},z;return _[O]?z=_[O]():4<O&&O<7?z=E(P,"blink"):29<O&&O<38?z=U(P,N.colors[O-30]):39<O&&O<48?z=oe(P,N.colors[O-40]):89<O&&O<98?z=U(P,N.colors[8+(O-90)]):99<O&&O<108&&(z=oe(P,N.colors[8+(O-100)])),z}function L(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(N){return"</"+N+">"}).join("")}function M(P,O){for(var N=[],_=P;_<=O;_++)N.push(_);return N}function A(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function R(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function W(P,O){return O.escapeXML?f.encodeXML(P):P}function E(P,O,N){return N||(N=""),P.push(O),"<".concat(O).concat(N?' style="'.concat(N,'"'):"",">")}function B(P,O){return E(P,"span",O)}function U(P,O){return E(P,"span","color:"+O)}function oe(P,O){return E(P,"span","background-color:"+O)}function te(P,O){var N;if(P.slice(-1)[0]===O&&(N=P.pop()),N)return"</"+O+">"}function Z(P,O,N){var _=!1,z=3;function H(){return""}function re(F,X){return N("xterm256Foreground",X),""}function ve(F,X){return N("xterm256Background",X),""}function we(F){return O.newline?N("display",-1):N("text",F),""}function Pe(F,X){_=!0,X.trim().length===0&&(X="0"),X=X.trimRight(";").split(";");var ue=o(X),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;N("display",de)}}catch(_e){ue.e(_e)}finally{ue.f()}return""}function je(F){return N("text",F),""}function Qe(F){return N("rgb",F),""}var Ye=[{pattern:/^\x08+/,sub:H},{pattern:/^\x1b\[[012]?K/,sub:H},{pattern:/^\x1b\[\(B/,sub:H},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Qe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:we},{pattern:/^\r+\n/,sub:we},{pattern:/^\r/,sub:we},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:H},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:H},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:H},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:je}];function ze(F,X){X>z&&_||(_=!1,P=P.replace(F.pattern,F.sub))}var Me=[],$=P,G=$.length;e:for(;G>0;){for(var Q=0,le=0,ie=Ye.length;le<ie;Q=++le){var I=Ye[Q];if(ze(I,Q),P.length!==G){G=P.length;continue e}}if(P.length===G)break;Me.push(0),G=P.length}return Me}function K(P,O,N){return O!=="text"&&(P=P.filter(A(R(N))),P.push({token:O,data:N,category:R(N)})),P}var V=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(P,[{key:"toHtml",value:function(N){var _=this;N=typeof N=="string"?[N]:N;var z=this.stack,H=this.options,re=[];return this.stickyStack.forEach(function(ve){var we=b(z,ve.token,ve.data,H);we&&re.push(we)}),Z(N.join(""),H,function(ve,we){var Pe=b(z,ve,we,H);Pe&&re.push(Pe),H.stream&&(_.stickyStack=K(_.stickyStack,ve,we))}),z.length&&re.push(L(z)),re.join("")}}]),P})();return gd=V,gd}var Sae=xae();const _ae=Iw(Sae);function ea(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function kae(e,t){return t&&e.endsWith(t)}async function ip(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function op(e){return new _ae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Tae(e){return e===null||typeof e!="function"&&typeof e!="object"}function zw(e){let t=e;if(Tae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=qE(t.stack||"",{ignoreStackEntries:[]}),t}function Cae(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(ea(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(ea(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(ea(t.stack))}`),r.length>0?r:null}function Fw(e,t){const r=op(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>Cae(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Ia=hE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),ao=qo(Ia,"file"),fn=qo(Ia,"view"),Hw=qo(Ia,"line"),Bw=qo(Ia,"column"),Ps=qo(Ia,"test");var t0={exports:{}},n0;function Ww(){return n0||(n0=1,(function(e,t){(function(r){r(Qs())})(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(Kt){return{type:Kt,style:"keyword"}}var q=T("keyword a"),fe=T("keyword b"),be=T("keyword c"),ae=T("keyword d"),Ae=T("operator"),pt={type:"atom",style:"atom"};return{if:T("if"),while:q,with:q,else:fe,do:fe,try:fe,finally:fe,return:ae,break:ae,continue:ae,new:T("new"),delete:be,void:be,throw:be,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:Ae,typeof:Ae,instanceof:Ae,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:T("this"),class:T("class"),super:T("atom"),yield:be,export:T("export"),import:T("import"),extends:be,await:be}})(),x=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(T){for(var q=!1,fe,be=!1;(fe=T.next())!=null;){if(!q){if(fe=="/"&&!be)return;fe=="["?be=!0:be&&fe=="]"&&(be=!1)}q=!q&&fe=="\\"}}var M,A;function R(T,q,fe){return M=T,A=fe,q}function W(T,q){var fe=T.next();if(fe=='"'||fe=="'")return q.tokenize=E(fe),q.tokenize(T,q);if(fe=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(fe=="."&&T.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return R(fe);if(fe=="="&&T.eat(">"))return R("=>","operator");if(fe=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(fe))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(fe=="/")return T.eat("*")?(q.tokenize=B,B(T,q)):T.eat("/")?(T.skipToEnd(),R("comment","comment")):Jn(T,q,1)?(L(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(T.eat("="),R("operator","operator",T.current()));if(fe=="`")return q.tokenize=U,U(T,q);if(fe=="#"&&T.peek()=="!")return T.skipToEnd(),R("meta","meta");if(fe=="#"&&T.eatWhile(m))return R("variable","property");if(fe=="<"&&T.match("!--")||fe=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),R("comment","comment");if(x.test(fe))return(fe!=">"||!q.lexical||q.lexical.type!=">")&&(T.eat("=")?(fe=="!"||fe=="=")&&T.eat("="):/[<>*+\-|&?]/.test(fe)&&(T.eat(fe),fe==">"&&T.eat(fe))),fe=="?"&&T.eat(".")?R("."):R("operator","operator",T.current());if(m.test(fe)){T.eatWhile(m);var be=T.current();if(q.lastType!="."){if(b.propertyIsEnumerable(be)){var ae=b[be];return R(ae.type,ae.style,be)}if(be=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",be)}return R("variable","variable",be)}}function E(T){return function(q,fe){var be=!1,ae;if(d&&q.peek()=="@"&&q.match(C))return fe.tokenize=W,R("jsonld-keyword","meta");for(;(ae=q.next())!=null&&!(ae==T&&!be);)be=!be&&ae=="\\";return be||(fe.tokenize=W),R("string","string")}}function B(T,q){for(var fe=!1,be;be=T.next();){if(be=="/"&&fe){q.tokenize=W;break}fe=be=="*"}return R("comment","comment")}function U(T,q){for(var fe=!1,be;(be=T.next())!=null;){if(!fe&&(be=="`"||be=="$"&&T.eat("{"))){q.tokenize=W;break}fe=!fe&&be=="\\"}return R("quasi","string-2",T.current())}var oe="([{}])";function te(T,q){q.fatArrowAt&&(q.fatArrowAt=null);var fe=T.string.indexOf("=>",T.start);if(!(fe<0)){if(v){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,fe));be&&(fe=be.index)}for(var ae=0,Ae=!1,pt=fe-1;pt>=0;--pt){var Kt=T.string.charAt(pt),kn=oe.indexOf(Kt);if(kn>=0&&kn<3){if(!ae){++pt;break}if(--ae==0){Kt=="("&&(Ae=!0);break}}else if(kn>=3&&kn<6)++ae;else if(m.test(Kt))Ae=!0;else if(/["'\/`]/.test(Kt))for(;;--pt){if(pt==0)return;var Zo=T.string.charAt(pt-1);if(Zo==Kt&&T.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ae&&!ae){++pt;break}}Ae&&!ae&&(q.fatArrowAt=pt)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(T,q,fe,be,ae,Ae){this.indented=T,this.column=q,this.type=fe,this.prev=ae,this.info=Ae,be!=null&&(this.align=be)}function V(T,q){if(!p)return!1;for(var fe=T.localVars;fe;fe=fe.next)if(fe.name==q)return!0;for(var be=T.context;be;be=be.prev)for(var fe=be.vars;fe;fe=fe.next)if(fe.name==q)return!0}function P(T,q,fe,be,ae){var Ae=T.cc;for(O.state=T,O.stream=ae,O.marked=null,O.cc=Ae,O.style=q,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var pt=Ae.length?Ae.pop():h?ie:Q;if(pt(fe,be)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return O.marked?O.marked:fe=="variable"&&V(T,be)?"variable-2":q}}}var O={state:null,marked:null,cc:null};function N(){for(var T=arguments.length-1;T>=0;T--)O.cc.push(arguments[T])}function _(){return N.apply(null,arguments),!0}function z(T,q){for(var fe=q;fe;fe=fe.next)if(fe.name==T)return!0;return!1}function H(T){var q=O.state;if(O.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var fe=re(T,q.context);if(fe!=null){q.context=fe;return}}else if(!z(T,q.localVars)){q.localVars=new Pe(T,q.localVars);return}}s.globalVars&&!z(T,q.globalVars)&&(q.globalVars=new Pe(T,q.globalVars))}}function re(T,q){if(q)if(q.block){var fe=re(T,q.prev);return fe?fe==q.prev?q:new we(fe,q.vars,!0):null}else return z(T,q.vars)?q:new we(q.prev,new Pe(T,q.vars),!1);else return null}function ve(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function we(T,q,fe){this.prev=T,this.vars=q,this.block=fe}function Pe(T,q){this.name=T,this.next=q}var je=new Pe("this",new Pe("arguments",null));function Qe(){O.state.context=new we(O.state.context,O.state.localVars,!1),O.state.localVars=je}function Ye(){O.state.context=new we(O.state.context,O.state.localVars,!0),O.state.localVars=null}Qe.lex=Ye.lex=!0;function ze(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}ze.lex=!0;function Me(T,q){var fe=function(){var be=O.state,ae=be.indented;if(be.lexical.type=="stat")ae=be.lexical.indented;else for(var Ae=be.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)ae=Ae.indented;be.lexical=new K(ae,O.stream.column(),T,null,be.lexical,q)};return fe.lex=!0,fe}function $(){var T=O.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}$.lex=!0;function G(T){function q(fe){return fe==T?_():T==";"||fe=="}"||fe==")"||fe=="]"?N():_(q)}return q}function Q(T,q){return T=="var"?_(Me("vardef",q),jo,G(";"),$):T=="keyword a"?_(Me("form"),F,Q,$):T=="keyword b"?_(Me("form"),Q,$):T=="keyword d"?O.stream.match(/^\s*$/,!1)?_():_(Me("stat"),ue,G(";"),$):T=="debugger"?_(G(";")):T=="{"?_(Me("}"),Ye,Bt,$,ze):T==";"?_():T=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==$&&O.state.cc.pop()(),_(Me("form"),F,Q,$,Uo)):T=="function"?_(ar):T=="for"?_(Me("form"),Ye,Ha,Q,ze,$):T=="class"||v&&q=="interface"?(O.marked="keyword",_(Me("form",T=="class"?T:q),Vo,$)):T=="variable"?v&&q=="declare"?(O.marked="keyword",_(Q)):v&&(q=="module"||q=="enum"||q=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",q=="enum"?_(Ie):q=="type"?_(Ba,G("operator"),tt,G(";")):_(Me("form"),_n,G("{"),Me("}"),Bt,$,$)):v&&q=="namespace"?(O.marked="keyword",_(Me("form"),ie,Q,$)):v&&q=="abstract"?(O.marked="keyword",_(Q)):_(Me("stat"),Ge):T=="switch"?_(Me("form"),F,G("{"),Me("}","switch"),Ye,Bt,$,$,ze):T=="case"?_(ie,G(":")):T=="default"?_(G(":")):T=="catch"?_(Me("form"),Qe,le,Q,$,ze):T=="export"?_(Me("stat"),Go,$):T=="import"?_(Me("stat"),Ni,$):T=="async"?_(Q):q=="@"?_(ie,Q):N(Me("stat"),ie,G(";"),$)}function le(T){if(T=="(")return _(yr,G(")"))}function ie(T,q){return X(T,q,!1)}function I(T,q){return X(T,q,!0)}function F(T){return T!="("?N():_(Me(")"),ue,G(")"),$)}function X(T,q,fe){if(O.state.fatArrowAt==O.stream.start){var be=fe?ye:ge;if(T=="(")return _(Qe,Me(")"),at(yr,")"),$,G("=>"),be,ze);if(T=="variable")return N(Qe,_n,G("=>"),be,ze)}var ae=fe?de:he;return Z.hasOwnProperty(T)?_(ae):T=="function"?_(ar,ae):T=="class"||v&&q=="interface"?(O.marked="keyword",_(Me("form"),rf,$)):T=="keyword c"||T=="async"?_(fe?I:ie):T=="("?_(Me(")"),ue,G(")"),$,ae):T=="operator"||T=="spread"?_(fe?I:ie):T=="["?_(Me("]"),It,$,ae):T=="{"?Gt(lt,"}",null,ae):T=="quasi"?N(_e,ae):T=="new"?_(qe(fe)):_()}function ue(T){return T.match(/[;\}\)\],]/)?N():N(ie)}function he(T,q){return T==","?_(ue):de(T,q,!1)}function de(T,q,fe){var be=fe==!1?he:de,ae=fe==!1?ie:I;if(T=="=>")return _(Qe,fe?ye:ge,ze);if(T=="operator")return/\+\+|--/.test(q)||v&&q=="!"?_(be):v&&q=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(Me(">"),at(tt,">"),$,be):q=="?"?_(ie,G(":"),ae):_(ae);if(T=="quasi")return N(_e,be);if(T!=";"){if(T=="(")return Gt(I,")","call",be);if(T==".")return _(rt,be);if(T=="[")return _(Me("]"),ue,G("]"),$,be);if(v&&q=="as")return O.marked="keyword",_(tt,be);if(T=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),_(ae)}}function _e(T,q){return T!="quasi"?N():q.slice(q.length-2)!="${"?_(_e):_(ue,Ce)}function Ce(T){if(T=="}")return O.marked="string-2",O.state.tokenize=U,_(_e)}function ge(T){return te(O.stream,O.state),N(T=="{"?Q:ie)}function ye(T){return te(O.stream,O.state),N(T=="{"?Q:I)}function qe(T){return function(q){return q=="."?_(T?Fe:Ne):q=="variable"&&v?_(Bn,T?de:he):N(T?I:ie)}}function Ne(T,q){if(q=="target")return O.marked="keyword",_(he)}function Fe(T,q){if(q=="target")return O.marked="keyword",_(de)}function Ge(T){return T==":"?_($,Q):N(he,G(";"),$)}function rt(T){if(T=="variable")return O.marked="property",_()}function lt(T,q){if(T=="async")return O.marked="property",_(lt);if(T=="variable"||O.style=="keyword"){if(O.marked="property",q=="get"||q=="set")return _(ut);var fe;return v&&O.state.fatArrowAt==O.stream.start&&(fe=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+fe[0].length),_(Mt)}else{if(T=="number"||T=="string")return O.marked=d?"property":O.style+" property",_(Mt);if(T=="jsonld-keyword")return _(Mt);if(v&&ve(q))return O.marked="keyword",_(lt);if(T=="[")return _(ie,Fn,G("]"),Mt);if(T=="spread")return _(I,Mt);if(q=="*")return O.marked="keyword",_(lt);if(T==":")return N(Mt)}}function ut(T){return T!="variable"?N(Mt):(O.marked="property",_(ar))}function Mt(T){if(T==":")return _(I);if(T=="(")return N(ar)}function at(T,q,fe){function be(ae,Ae){if(fe?fe.indexOf(ae)>-1:ae==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),_(function(Kt,kn){return Kt==q||kn==q?N():N(T)},be)}return ae==q||Ae==q?_():fe&&fe.indexOf(";")>-1?N(T):_(G(q))}return function(ae,Ae){return ae==q||Ae==q?_():N(T,be)}}function Gt(T,q,fe){for(var be=3;be<arguments.length;be++)O.cc.push(arguments[be]);return _(Me(q,fe),at(T,q),$)}function Bt(T){return T=="}"?_():N(Q,Bt)}function Fn(T,q){if(v){if(T==":")return _(tt);if(q=="?")return _(Fn)}}function Fr(T,q){if(v&&(T==":"||q=="in"))return _(tt)}function zt(T){if(v&&T==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?_(ie,Hn,tt):_(tt)}function Hn(T,q){if(q=="is")return O.marked="keyword",_()}function tt(T,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return O.marked="keyword",_(q=="typeof"?I:tt);if(T=="variable"||q=="void")return O.marked="type",_(lr);if(q=="|"||q=="&")return _(tt);if(T=="string"||T=="number"||T=="atom")return _(lr);if(T=="[")return _(Me("]"),at(tt,"]",","),$,lr);if(T=="{")return _(Me("}"),He,$,lr);if(T=="(")return _(at(Pt,")"),ho,lr);if(T=="<")return _(at(tt,">"),tt);if(T=="quasi")return N(ln,lr)}function ho(T){if(T=="=>")return _(tt)}function He(T){return T.match(/[\}\)\]]/)?_():T==","||T==";"?_(He):N(ei,He)}function ei(T,q){if(T=="variable"||O.style=="keyword")return O.marked="property",_(ei);if(q=="?"||T=="number"||T=="string")return _(ei);if(T==":")return _(tt);if(T=="[")return _(G("variable"),Fr,G("]"),ei);if(T=="(")return N(Mi,ei);if(!T.match(/[;\}\)\],]/))return _()}function ln(T,q){return T!="quasi"?N():q.slice(q.length-2)!="${"?_(ln):_(tt,Rt)}function Rt(T){if(T=="}")return O.marked="string-2",O.state.tokenize=U,_(ln)}function Pt(T,q){return T=="variable"&&O.stream.match(/^\s*[?:]/,!1)||q=="?"?_(Pt):T==":"?_(tt):T=="spread"?_(Pt):N(tt)}function lr(T,q){if(q=="<")return _(Me(">"),at(tt,">"),$,lr);if(q=="|"||T=="."||q=="&")return _(tt);if(T=="[")return _(tt,G("]"),lr);if(q=="extends"||q=="implements")return O.marked="keyword",_(tt);if(q=="?")return _(tt,G(":"),tt)}function Bn(T,q){if(q=="<")return _(Me(">"),at(tt,">"),$,lr)}function vr(){return N(tt,an)}function an(T,q){if(q=="=")return _(tt)}function jo(T,q){return q=="enum"?(O.marked="keyword",_(Ie)):N(_n,Fn,mr,nf)}function _n(T,q){if(v&&ve(q))return O.marked="keyword",_(_n);if(T=="variable")return H(q),_();if(T=="spread")return _(_n);if(T=="[")return Gt(tl,"]");if(T=="{")return Gt(Ai,"}")}function Ai(T,q){return T=="variable"&&!O.stream.match(/^\s*:/,!1)?(H(q),_(mr)):(T=="variable"&&(O.marked="property"),T=="spread"?_(_n):T=="}"?N():T=="["?_(ie,G("]"),G(":"),Ai):_(G(":"),_n,mr))}function tl(){return N(_n,mr)}function mr(T,q){if(q=="=")return _(I)}function nf(T){if(T==",")return _(jo)}function Uo(T,q){if(T=="keyword b"&&q=="else")return _(Me("form","else"),Q,$)}function Ha(T,q){if(q=="await")return _(Ha);if(T=="(")return _(Me(")"),nl,$)}function nl(T){return T=="var"?_(jo,Li):T=="variable"?_(Li):N(Li)}function Li(T,q){return T==")"?_():T==";"?_(Li):q=="in"||q=="of"?(O.marked="keyword",_(ie,Li)):N(ie,Li)}function ar(T,q){if(q=="*")return O.marked="keyword",_(ar);if(T=="variable")return H(q),_(ar);if(T=="(")return _(Qe,Me(")"),at(yr,")"),$,zt,Q,ze);if(v&&q=="<")return _(Me(">"),at(vr,">"),$,ar)}function Mi(T,q){if(q=="*")return O.marked="keyword",_(Mi);if(T=="variable")return H(q),_(Mi);if(T=="(")return _(Qe,Me(")"),at(yr,")"),$,zt,ze);if(v&&q=="<")return _(Me(">"),at(vr,">"),$,Mi)}function Ba(T,q){if(T=="keyword"||T=="variable")return O.marked="type",_(Ba);if(q=="<")return _(Me(">"),at(vr,">"),$)}function yr(T,q){return q=="@"&&_(ie,yr),T=="spread"?_(yr):v&&ve(q)?(O.marked="keyword",_(yr)):v&&T=="this"?_(Fn,mr):N(_n,Fn,mr)}function rf(T,q){return T=="variable"?Vo(T,q):br(T,q)}function Vo(T,q){if(T=="variable")return H(q),_(br)}function br(T,q){if(q=="<")return _(Me(">"),at(vr,">"),$,br);if(q=="extends"||q=="implements"||v&&T==",")return q=="implements"&&(O.marked="keyword"),_(v?tt:ie,br);if(T=="{")return _(Me("}"),wr,$)}function wr(T,q){if(T=="async"||T=="variable"&&(q=="static"||q=="get"||q=="set"||v&&ve(q))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",_(wr);if(T=="variable"||O.style=="keyword")return O.marked="property",_(po,wr);if(T=="number"||T=="string")return _(po,wr);if(T=="[")return _(ie,Fn,G("]"),po,wr);if(q=="*")return O.marked="keyword",_(wr);if(v&&T=="(")return N(Mi,wr);if(T==";"||T==",")return _(wr);if(T=="}")return _();if(q=="@")return _(ie,wr)}function po(T,q){if(q=="!"||q=="?")return _(po);if(T==":")return _(tt,mr);if(q=="=")return _(I);var fe=O.state.lexical.prev,be=fe&&fe.info=="interface";return N(be?Mi:ar)}function Go(T,q){return q=="*"?(O.marked="keyword",_(Yo,G(";"))):q=="default"?(O.marked="keyword",_(ie,G(";"))):T=="{"?_(at(Ko,"}"),Yo,G(";")):N(Q)}function Ko(T,q){if(q=="as")return O.marked="keyword",_(G("variable"));if(T=="variable")return N(I,Ko)}function Ni(T){return T=="string"?_():T=="("?N(ie):T=="."?N(he):N(Xo,Hr,Yo)}function Xo(T,q){return T=="{"?Gt(Xo,"}"):(T=="variable"&&H(q),q=="*"&&(O.marked="keyword"),_(rl))}function Hr(T){if(T==",")return _(Xo,Hr)}function rl(T,q){if(q=="as")return O.marked="keyword",_(Xo)}function Yo(T,q){if(q=="from")return O.marked="keyword",_(ie)}function It(T){return T=="]"?_():N(at(I,"]"))}function Ie(){return N(Me("form"),_n,G("{"),Me("}"),at(ti,"}"),$,$)}function ti(){return N(_n,mr)}function il(T,q){return T.lastType=="operator"||T.lastType==","||x.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Jn(T,q,fe){return q.tokenize==W&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(fe||0)))}return{startState:function(T){var q={tokenize:W,lastType:"sof",cc:[],lexical:new K((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(q.globalVars=s.globalVars),q},token:function(T,q){if(T.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=T.indentation(),te(T,q)),q.tokenize!=B&&T.eatSpace())return null;var fe=q.tokenize(T,q);return M=="comment"?fe:(q.lastType=M=="operator"&&(A=="++"||A=="--")?"incdec":M,P(q,fe,M,A,T))},indent:function(T,q){if(T.tokenize==B||T.tokenize==U)return r.Pass;if(T.tokenize!=W)return 0;var fe=q&&q.charAt(0),be=T.lexical,ae;if(!/^\s*else\b/.test(q))for(var Ae=T.cc.length-1;Ae>=0;--Ae){var pt=T.cc[Ae];if(pt==$)be=be.prev;else if(pt!=Uo&&pt!=ze)break}for(;(be.type=="stat"||be.type=="form")&&(fe=="}"||(ae=T.cc[T.cc.length-1])&&(ae==he||ae==de)&&!/^[,\.=+\-*:?[\(]/.test(q));)be=be.prev;f&&be.type==")"&&be.prev.type=="stat"&&(be=be.prev);var Kt=be.type,kn=fe==Kt;return Kt=="vardef"?be.indented+(T.lastType=="operator"||T.lastType==","?be.info.length+1:0):Kt=="form"&&fe=="{"?be.indented:Kt=="form"?be.indented+c:Kt=="stat"?be.indented+(il(T,q)?f||c:0):be.info=="switch"&&!kn&&s.doubleIndentSwitch!=!1?be.indented+(/^(?:case|default)\b/.test(q)?c:2*c):be.align?be.column+(kn?0:1):be.indented+(kn?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:Jn,skipExpression:function(T){P(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})})})()),t0.exports}Ww();var r0={exports:{}},i0;function qw(){return i0||(i0=1,(function(e,t){(function(r){r(Qs())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function x(_,z){function H(we){return z.tokenize=we,we(_,z)}var re=_.next();if(re=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?H(M("atom","]]>")):null:_.match("--")?H(M("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),H(A(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),z.tokenize=M("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",z.tokenize=C,"tag bracket");if(re=="&"){var ve;return _.eat("#")?_.eat("x")?ve=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):ve=_.eatWhile(/[\d]/)&&_.eat(";"):ve=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),ve?"atom":"error"}else return _.eatWhile(/[^&<]/),null}x.isInText=!0;function C(_,z){var H=_.next();if(H==">"||H=="/"&&_.eat(">"))return z.tokenize=x,m=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return m="equals",null;if(H=="<"){z.tokenize=x,z.state=U,z.tagName=z.tagStart=null;var re=z.tokenize(_,z);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(H)?(z.tokenize=L(H),z.stringStartCol=_.column(),z.tokenize(_,z)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(_){var z=function(H,re){for(;!H.eol();)if(H.next()==_){re.tokenize=C;break}return"string"};return z.isInAttribute=!0,z}function M(_,z){return function(H,re){for(;!H.eol();){if(H.match(z)){re.tokenize=x;break}H.next()}return _}}function A(_){return function(z,H){for(var re;(re=z.next())!=null;){if(re=="<")return H.tokenize=A(_+1),H.tokenize(z,H);if(re==">")if(_==1){H.tokenize=x;break}else return H.tokenize=A(_-1),H.tokenize(z,H)}return"meta"}}function R(_){return _&&_.toLowerCase()}function W(_,z,H){this.prev=_.context,this.tagName=z||"",this.indent=_.indented,this.startOfLine=H,(h.doNotIndent.hasOwnProperty(z)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function E(_){_.context&&(_.context=_.context.prev)}function B(_,z){for(var H;;){if(!_.context||(H=_.context.tagName,!h.contextGrabbers.hasOwnProperty(R(H))||!h.contextGrabbers[R(H)].hasOwnProperty(R(z))))return;E(_)}}function U(_,z,H){return _=="openTag"?(H.tagStart=z.column(),oe):_=="closeTag"?te:U}function oe(_,z,H){return _=="word"?(H.tagName=z.current(),b="tag",V):h.allowMissingTagName&&_=="endTag"?(b="tag bracket",V(_,z,H)):(b="error",oe)}function te(_,z,H){if(_=="word"){var re=z.current();return H.context&&H.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(R(H.context.tagName))&&E(H),H.context&&H.context.tagName==re||h.matchClosing===!1?(b="tag",Z):(b="tag error",K)}else return h.allowMissingTagName&&_=="endTag"?(b="tag bracket",Z(_,z,H)):(b="error",K)}function Z(_,z,H){return _!="endTag"?(b="error",Z):(E(H),U)}function K(_,z,H){return b="error",Z(_,z,H)}function V(_,z,H){if(_=="word")return b="attribute",P;if(_=="endTag"||_=="selfcloseTag"){var re=H.tagName,ve=H.tagStart;return H.tagName=H.tagStart=null,_=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(re))?B(H,re):(B(H,re),H.context=new W(H,re,ve==H.indented)),U}return b="error",V}function P(_,z,H){return _=="equals"?O:(h.allowMissing||(b="error"),V(_,z,H))}function O(_,z,H){return _=="string"?N:_=="word"&&h.allowUnquoted?(b="string",V):(b="error",V(_,z,H))}function N(_,z,H){return _=="string"?N:V(_,z,H)}return{startState:function(_){var z={tokenize:x,state:U,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(z.baseIndent=_),z},token:function(_,z){if(!z.tagName&&_.sol()&&(z.indented=_.indentation()),_.eatSpace())return null;m=null;var H=z.tokenize(_,z);return(H||m)&&H!="comment"&&(b=null,z.state=z.state(m||H,_,z),b&&(H=b=="error"?H+" error":b)),H},indent:function(_,z,H){var re=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+d;if(re&&re.noIndent)return r.Pass;if(_.tokenize!=C&&_.tokenize!=x)return H?H.match(/^(\s*)/)[0].length:0;if(_.tagName)return h.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var ve=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(ve&&ve[1])for(;re;)if(re.tagName==ve[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(R(re.tagName)))re=re.prev;else break;else if(ve)for(;re;){var we=h.contextGrabbers[R(re.tagName)];if(we&&we.hasOwnProperty(R(ve[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(_){_.state==O&&(_.state=V)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var z=[],H=_.context;H;H=H.prev)z.push(H.tagName);return z.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),r0.exports}qw();var o0={exports:{}},s0;function Eae(){return s0||(s0=1,(function(e,t){(function(r){r(Qs(),qw(),Ww())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var C=x.tagName;x.tagName=null;var L=d.indent(x,"","");return x.tagName=C,L}function v(x,C){return C.context.mode==d?m(x,C,C.context):b(x,C,C.context)}function m(x,C,L){if(L.depth==2)return x.match(/^.*?\*\//)?L.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(L.state);var M=p(L.state),A=L.state.context;if(A&&x.match(/^[^>]*>\s*$/,!1)){for(;A.prev&&!A.startOfLine;)A=A.prev;A.startOfLine?M-=c.indentUnit:L.prev.state.lexical&&(M=L.prev.state.lexical.indented)}else L.depth==1&&(M+=c.indentUnit);return C.context=new o(r.startState(h,M),h,0,C.context),null}if(L.depth==1){if(x.peek()=="<")return d.skipAttribute(L.state),C.context=new o(r.startState(d,p(L.state)),d,0,C.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return L.depth=2,v(x,C)}var R=d.token(x,L.state),W=x.current(),E;return/\btag\b/.test(R)?/>$/.test(W)?L.state.context?L.depth=0:C.context=C.context.prev:/^</.test(W)&&(L.depth=1):!R&&(E=W.indexOf("{"))>-1&&x.backUp(W.length-E),R}function b(x,C,L){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,L.state))return C.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,C.context),h.skipExpression(L.state),null;var M=h.token(x,L.state);if(!M&&L.depth!=null){var A=x.current();A=="{"?L.depth++:A=="}"&&--L.depth==0&&(C.context=C.context.prev)}return M}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,C,L){return x.context.mode.indent(x.context.state,C,L)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),o0.exports}Eae();var l0={exports:{}},a0;function Aae(){return a0||(a0=1,(function(e,t){(function(r){r(Qs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),l0.exports}Aae();var c0={exports:{}},u0;function Lae(){return u0||(u0=1,(function(e,t){(function(r){r(Qs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",x=m[b],C=p.pos;function L(){r.off(document,"mousemove",M),r.off(document,"mouseup",L)}function M(A){if(A.which!=1)return L();p.moveTo(C+(A[b]-x)*(p.total/p.size))}r.on(document,"mousemove",M),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=m.clientX<b.left?-1:m.clientX>b.right?1:0:x=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),c0.exports}Lae();const On=nn();function Mae(e,t,r={}){const o=YA.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),_t(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}),$u(()=>{On.value=void 0}),Ih(o)}async function jw(e){ba({file:e.file.id,line:e.location?.line??0,view:"editor",test:e.id,column:null})}function Nae(e,t){ba({file:e,column:t.column-1,line:t.line,view:"editor",test:Ps.value})}function Oae(e,t){if(!t.location)return;const{line:r,column:o,file:s}=t.location;if(e.file.filepath!==s)return ip(s,r,o);ba({file:e.file.id,column:o-1,line:r,view:"editor",test:Ps.value})}const Vs=Ve(),Is=Ve(!0),co=Ve(!1),vu=Ve(!0),_s=Se(()=>Gs.value?.coverage),th=Se(()=>_s.value?.enabled),ks=Se(()=>th.value&&!!_s.value.htmlReporter),$s=Gu("vitest-ui_splitpanes-mainSizes",[33,67]),ro=Gu("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:$s.value[0],details:{size:$s.value[1],browser:ro.value[0],main:ro.value[1]}}),f0=Se(()=>{if(ks.value){const e=_s.value.reportsDirectory.lastIndexOf("/"),t=_s.value.htmlReporter?.subdir;return t?`/${_s.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${_s.value.reportsDirectory.slice(e+1)}/index.html`}});_t(Yu,e=>{vu.value=e==="running"},{immediate:!0});function Rae(){const e=ao.value;if(e&&e.length>0){const t=gr(e);t?(Vs.value=t,Is.value=!1,co.value=!1):JC(()=>dt.state.getFiles(),()=>{Vs.value=gr(e),Is.value=!1,co.value=!1})}return Is}function mu(e){Is.value=e,co.value=!1,e&&(Vs.value=void 0,ao.value="")}function ba({file:e,line:t,view:r,test:o,column:s}){ao.value=e,Hw.value=t,Bw.value=s,fn.value=r,Ps.value=o,Vs.value=gr(e),mu(!1)}function Pae(e){e.type==="test"?fn.value==="editor"?jw(e):ba({file:e.file.id,line:null,column:null,view:fn.value,test:e.id}):ba({file:e.file.id,test:null,line:null,view:fn.value,column:null})}function Iae(){co.value=!0,Is.value=!1,Vs.value=void 0,ao.value=""}function $ae(){At.details.browser=100,At.details.main=0,ro.value=[100,0]}function Uw(){if(Yn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function Dae(){At.details.browser=Uw(),At.details.main=100-At.details.browser,ro.value=[At.details.browser,At.details.main]}function zae(){At.navigation=33,At.details.size=67,$s.value=[33,67]}function Vw(){At.details.main!==0&&(At.details.browser=Uw(),At.details.main=100-At.details.browser,ro.value=[At.details.browser,At.details.main])}const Fae={setCurrentFileId(e){ao.value=e,Vs.value=gr(e),mu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Yn?.provider==="webdriverio"&&Vw(),await new Promise(r=>requestAnimationFrame(r))}},Hae=location.port,Bae=[location.hostname,Hae].filter(Boolean).join(":"),Wae=`${location.protocol==="https:"?"wss:":"ws:"}//${Bae}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var rr=Uint8Array,Ts=Uint16Array,qae=Int32Array,Gw=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Kw=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),jae=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xw=function(e,t){for(var r=new Ts(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new qae(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}},Yw=Xw(Gw,2),Zw=Yw.b,Uae=Yw.r;Zw[28]=258,Uae[258]=28;var Vae=Xw(Kw,0),Gae=Vae.b,nh=new Ts(32768);for(var Lt=0;Lt<32768;++Lt){var Wi=(Lt&43690)>>1|(Lt&21845)<<1;Wi=(Wi&52428)>>2|(Wi&13107)<<2,Wi=(Wi&61680)>>4|(Wi&3855)<<4,nh[Lt]=((Wi&65280)>>8|(Wi&255)<<8)>>1}var ta=(function(e,t,r){for(var o=e.length,s=0,c=new Ts(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Ts(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Ts(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[nh[m]>>h]=p}else for(d=new Ts(o),s=0;s<o;++s)e[s]&&(d[s]=nh[f[e[s]-1]++]>>15-e[s]);return d}),$a=new rr(288);for(var Lt=0;Lt<144;++Lt)$a[Lt]=8;for(var Lt=144;Lt<256;++Lt)$a[Lt]=9;for(var Lt=256;Lt<280;++Lt)$a[Lt]=7;for(var Lt=280;Lt<288;++Lt)$a[Lt]=8;var Jw=new rr(32);for(var Lt=0;Lt<32;++Lt)Jw[Lt]=5;var Kae=ta($a,9,1),Xae=ta(Jw,5,1),vd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Cr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},md=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Yae=function(e){return(e+7)/8|0},Qw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},Zae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],jn=function(e,t,r){var o=new Error(t||Zae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,jn),!r)throw o;return o},sp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(ie){var I=r.length;if(ie>I){var F=new rr(Math.max(I*2,ie));F.set(r),r=F}},v=t.f||0,m=t.p||0,b=t.b||0,x=t.l,C=t.d,L=t.m,M=t.n,A=s*8;do{if(!x){v=Cr(e,m,1);var R=Cr(e,m+1,3);if(m+=3,R)if(R==1)x=Kae,C=Xae,L=9,M=5;else if(R==2){var U=Cr(e,m,31)+257,oe=Cr(e,m+10,15)+4,te=U+Cr(e,m+5,31)+1;m+=14;for(var Z=new rr(te),K=new rr(19),V=0;V<oe;++V)K[jae[V]]=Cr(e,m+V*3,7);m+=oe*3;for(var P=vd(K),O=(1<<P)-1,N=ta(K,P,1),V=0;V<te;){var _=N[Cr(e,m,O)];m+=_&15;var W=_>>4;if(W<16)Z[V++]=W;else{var z=0,H=0;for(W==16?(H=3+Cr(e,m,3),m+=2,z=Z[V-1]):W==17?(H=3+Cr(e,m,7),m+=3):W==18&&(H=11+Cr(e,m,127),m+=7);H--;)Z[V++]=z}}var re=Z.subarray(0,U),ve=Z.subarray(U);L=vd(re),M=vd(ve),x=ta(re,L,1),C=ta(ve,M,1)}else jn(1);else{var W=Yae(m)+4,E=e[W-4]|e[W-3]<<8,B=W+E;if(B>s){h&&jn(0);break}d&&p(b+E),r.set(e.subarray(W,B),b),t.b=b+=E,t.p=m=B*8,t.f=v;continue}if(m>A){h&&jn(0);break}}d&&p(b+131072);for(var we=(1<<L)-1,Pe=(1<<M)-1,je=m;;je=m){var z=x[md(e,m)&we],Qe=z>>4;if(m+=z&15,m>A){h&&jn(0);break}if(z||jn(2),Qe<256)r[b++]=Qe;else if(Qe==256){je=m,x=null;break}else{var Ye=Qe-254;if(Qe>264){var V=Qe-257,ze=Gw[V];Ye=Cr(e,m,(1<<ze)-1)+Zw[V],m+=ze}var Me=C[md(e,m)&Pe],$=Me>>4;Me||jn(3),m+=Me&15;var ve=Gae[$];if($>3){var ze=Kw[$];ve+=md(e,m)&(1<<ze)-1,m+=ze}if(m>A){h&&jn(0);break}d&&p(b+131072);var G=b+Ye;if(b<ve){var Q=c-ve,le=Math.min(ve,G);for(Q+b<0&&jn(3);b<le;++b)r[b]=o[Q+b]}for(;b<G;++b)r[b]=r[b-ve]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=L,t.d=C,t.n=M)}while(!v);return b!=r.length&&f?Qw(r,0,b):r.subarray(0,b)},Jae=new rr(0),Qae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&jn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},ece=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},tce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&jn(6,"invalid zlib data"),(e[1]>>5&1)==1&&jn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function nce(e,t){return sp(e,{i:2},t,t)}function rce(e,t){var r=Qae(e);return r+8>e.length&&jn(6,"invalid gzip data"),sp(e.subarray(r,-8),{i:2},new rr(ece(e)),t)}function ice(e,t){return sp(e.subarray(tce(e),-4),{i:2},t,t)}function oce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?rce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?nce(e,t):ice(e,t)}var rh=typeof TextDecoder<"u"&&new TextDecoder,sce=0;try{rh.decode(Jae,{stream:!0}),sce=1}catch{}var lce=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:Qw(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 ace(e,t){var r;if(rh)return rh.decode(e);var o=lce(e),s=o.s,r=o.r;return r.length&&jn(8),s}const yd=()=>{},mn=()=>Promise.resolve();function cce(){const e=ir({state:new _w,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:mn,onDone:yd,onTaskUpdate:yd,writeFile:mn,rerun:mn,rerunTask:mn,updateSnapshot:mn,resolveSnapshotPath:mn,snapshotSaved:mn,onAfterSuiteRun:mn,onCancel:mn,getCountOfFailedTests:()=>0,sendLog:mn,resolveSnapshotRawPath:mn,readSnapshotFile:mn,saveSnapshotFile:mn,readTestFile:async d=>t.sources[d],removeSnapshotFile:mn,onUnhandledError:yd,saveTestFile:mn,getProvidedContext:()=>({}),getTestFiles:mn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=d.headers.get("content-type")?.toLowerCase()||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await d.arrayBuffer()),m=ace(oce(v));t=Yd(m)}else t=Yd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const dt=(function(){return pr?cce():vA(Wae,{reactive:(t,r)=>r==="state"?ir(t):nn(t),handlers:{onTestAnnotate(t,r){Ee.annotateTest(t,r)},onTaskUpdate(t,r){Ee.resumeRun(t,r),Yu.value="running"},onSpecsCollected(t,r){Ee.startTime=r||performance.now()},onFinished(t,r,o,s){Ee.endRun(s),Ki.value=(r||[]).map(zw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),Gs=nn({}),Po=Ve("CONNECTING"),jt=Se(()=>{const e=ao.value;return e?gr(e):void 0}),ex=Se(()=>ep(jt.value).map(e=>e?.logs||[]).flat()||[]);function gr(e){const t=dt.state.idMap.get(e);return t||void 0}const uce=Se(()=>Po.value==="OPEN"),bd=Se(()=>Po.value==="CONNECTING");Se(()=>Po.value==="CLOSED");function fce(){return lp(dt.state.getFiles())}function tx(e){delete e.result;const t=Ee.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ra(e)))for(const r of e.tasks)tx(r)}function dce(e){const t=Ee.nodes;e.forEach(r=>{delete r.result,ep(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,$n(o)&&(o.collectDuration=void 0))})}function lp(e){return dce(e),Ee.startRun(),dt.rpc.rerun(e.map(t=>t.filepath),!0)}function hce(e){return tx(e),Ee.startRun(),dt.rpc.rerunTask(e.id)}const Yn=window.__vitest_browser_runner__;window.__vitest_ui_api__=Fae;_t(()=>dt.ws,e=>{Po.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Po.value="OPEN",dt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([dt.rpc.getFiles(),dt.rpc.getConfig(),dt.rpc.getUnhandledErrors(),dt.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await dt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=gw(h,d,f);return p.mode="skip",p})),Ee.loadFiles(t,s),dt.state.collectFiles(t),Ee.startRun(),Ki.value=(o||[]).map(zw),Gs.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Po.value==="CONNECTING"&&(Po.value="CLOSED")},1e3)})},{immediate:!0});const pce=["aria-label","opacity","disabled","hover"],Et=ot({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(se(),me("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Sn(t.$slots,"default",{},()=>[ne("span",{class:st(e.icon),ma:"",block:""},null,2)])],10,pce))}}),gce={h:"full",flex:"~ col"},vce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},mce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},yce={class:"pointer-events-none","text-sm":""},bce={key:0},wce={id:"tester-container",relative:""},xce=["data-scale"],d0=20,Sce=100,_ce=ot({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return tr.value[0]===v[0]&&tr.value[1]===v[1]}const{width:o,height:s}=aw();async function c(p){tr.value=t[p],Yn?.provider==="webdriverio"&&Vw()}const f=Se(()=>{if(Yn?.provider==="webdriverio"){const[x,C]=tr.value;return{width:x,height:C}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-d0,b=s.value-Sce;return{width:m,height:b}}),d=Se(()=>{if(Yn?.provider==="webdriverio")return 1;const[p,v]=tr.value,{width:m,height:b}=f.value,x=m>p?1:m/p,C=b>v?1:b/v;return Math.min(1,x,C)}),h=Se(()=>{const p=f.value.width,v=tr.value[0];return`${Math.trunc((p+d0-v)/2)}px`});return(p,v)=>{const m=Dr("tooltip");return se(),me("div",gce,[ne("div",vce,[ct(Re(Et,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=b=>J(zae)())},null,512),[[Zi,J(At).navigation<=15],[m,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ne("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ne("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Re(Et,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=b=>J($ae)())},null,512),[[Zi,J(At).details.main>0],[m,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=b=>J(Dae)())},null,512),[[Zi,J(At).details.main===0],[m,"Show Right Panel",void 0,{bottom:!0}]])]),ne("div",mce,[ct(Re(Et,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=b=>c("small-mobile"))},null,8,["active"]),[[m,"Small mobile",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=b=>c("large-mobile"))},null,8,["active"]),[[m,"Large mobile",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=b=>c("tablet"))},null,8,["active"]),[[m,"Tablet",void 0,{bottom:!0}]]),ne("span",yce,[ht($e(J(tr)[0])+"x"+$e(J(tr)[1])+"px ",1),d.value<1?(se(),me("span",bce,"("+$e((d.value*100).toFixed(0))+"%)",1)):Ue("",!0)])]),ne("div",wce,[ne("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:tn({"--viewport-width":`${J(tr)[0]}px`,"--viewport-height":`${J(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,xce)])])}}}),kce=Ei(_ce,[["__scopeId","data-v-2e86b8c3"]]),Tce={"text-2xl":""},Cce={"text-lg":"",op50:""},Ece=ot({__name:"ConnectionOverlay",setup(e){return(t,r)=>J(uce)?Ue("",!0):(se(),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)=>J(dt).reconnect&&J(dt).reconnect(...o))},[ne("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(J(bd)?"animate-pulse":"")},[ne("div",{text:"5xl",class:st(J(bd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ne("div",Tce,$e(J(bd)?"Connecting...":"Disconnected"),1),ne("div",Cce," Check your terminal or start a new server with `"+$e(J(Yn)?`vitest --browser=${J(Yn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Ace={h:"full",flex:"~ col"},Lce={"flex-auto":"","py-1":"","bg-white":""},Mce=["src"],h0=ot({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(se(),me("div",Ace,[r[0]||(r[0]=ne("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ne("div",{class:"i-carbon:folder-details-reference"}),ne("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ne("div",Lce,[ne("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,Mce)])]))}}),Nce={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Oce={"font-bold":""},Rce={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Pce=["font-bold"],Ice={text:"red500/70"},$ce={key:1,text:"sm","mb-2":""},Dce={"font-bold":""},zce={key:2,text:"sm","mb-2":""},Fce={"font-bold":""},Hce=ot({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(se(),me(nt,null,[ne("h4",Nce,[ne("span",Oce,[ht($e(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(se(),me(nt,{key:0},[ht(":")],64)):Ue("",!0)]),ht(" "+$e(e.error.message),1)]),e.error.stacks?.length?(se(),me("p",Rce,[(se(!0),me(nt,null,hr(e.error.stacks,(o,s)=>(se(),me("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[ht("❯ "+$e(o.method)+" "+$e(o.file)+":",1),ne("span",Ice,$e(o.line)+":"+$e(o.column),1),r[0]||(r[0]=ne("br",null,null,-1))],8,Pce))),128))])):Ue("",!0),e.error.VITEST_TEST_PATH?(se(),me("p",$ce,[r[1]||(r[1]=ht(" This error originated in ",-1)),ne("span",Dce,$e(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=ht(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Ue("",!0),e.error.VITEST_TEST_NAME?(se(),me("div",zce,[r[3]||(r[3]=ht(" The latest test that might've caused the error is ",-1)),ne("span",Fce,$e(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=ht(". It might mean one of the following:",-1)),r[5]||(r[5]=ne("br",null,null,-1)),r[6]||(r[6]=ne("ul",null,[ne("li",null," The error was thrown, while Vitest was running this test. "),ne("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ue("",!0)],64))}}),Bce={"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:""},Wce={class:"number","data-testid":"num-files"},qce={class:"number"},jce={class:"number","text-red5":""},Uce={class:"number","text-red5":""},Vce={class:"number","text-red5":""},Gce={class:"number","data-testid":"run-time"},Kce={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Xce={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Yce={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Zce=ot({__name:"TestFilesEntry",setup(e){return(t,r)=>(se(),me(nt,null,[ne("div",Bce,[r[8]||(r[8]=ne("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ne("div",null,"Files",-1)),ne("div",Wce,$e(J(Ee).summary.files),1),J(Ee).summary.filesSuccess?(se(),me(nt,{key:0},[r[0]||(r[0]=ne("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ne("div",null,"Pass",-1)),ne("div",qce,$e(J(Ee).summary.filesSuccess),1)],64)):Ue("",!0),J(Ee).summary.filesFailed?(se(),me(nt,{key:1},[r[2]||(r[2]=ne("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ne("div",null," Fail ",-1)),ne("div",jce,$e(J(Ee).summary.filesFailed),1)],64)):Ue("",!0),J(Ee).summary.filesSnapshotFailed?(se(),me(nt,{key:2},[r[4]||(r[4]=ne("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ne("div",null," Snapshot Fail ",-1)),ne("div",Uce,$e(J(Ee).summary.filesSnapshotFailed),1)],64)):Ue("",!0),J(Ki).length?(se(),me(nt,{key:3},[r[6]||(r[6]=ne("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ne("div",null," Errors ",-1)),ne("div",Vce,$e(J(Ki).length),1)],64)):Ue("",!0),r[10]||(r[10]=ne("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ne("div",null,"Time",-1)),ne("div",Gce,$e(J(Ee).summary.time),1)]),J(Ki).length?(se(),me("div",Kce,[r[15]||(r[15]=ne("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ne("p",Xce,[ht(" Vitest caught "+$e(J(Ki).length)+" error"+$e(J(Ki).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ne("br",null,null,-1)),r[13]||(r[13]=ht(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),ne("details",Yce,[r[14]||(r[14]=ne("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(se(!0),me(nt,null,hr(J(Ki),(o,s)=>(se(),Je(Hce,{key:s,error:o},null,8,["error"]))),128))])])):Ue("",!0)],64))}}),Jce=Ei(Zce,[["__scopeId","data-v-1bd0f2ea"]]),Qce={"p-2":"","text-center":"",flex:""},eue={"text-4xl":"","min-w-2em":""},tue={"text-md":""},$l=ot({__name:"DashboardEntry",setup(e){return(t,r)=>(se(),me("div",Qce,[ne("div",null,[ne("div",eue,[Sn(t.$slots,"body")]),ne("div",tue,[Sn(t.$slots,"header")])])]))}}),nue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},rue=ot({__name:"TestsEntry",setup(e){function t(r){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,r!=="total"&&(Ze[r]=!0)}return(r,o)=>(se(),me("div",nue,[Re($l,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:it(()=>[...o[4]||(o[4]=[ht(" Pass ",-1)])]),body:it(()=>[ht($e(J(Ee).summary.testsSuccess),1)]),_:1}),Re($l,{class:st({"text-red5":J(Ee).summary.testsFailed,op50:!J(Ee).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:it(()=>[...o[5]||(o[5]=[ht(" Fail ",-1)])]),body:it(()=>[ht($e(J(Ee).summary.testsFailed),1)]),_:1},8,["class"]),J(Ee).summary.testsSkipped?(se(),Je($l,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:it(()=>[...o[6]||(o[6]=[ht(" Skip ",-1)])]),body:it(()=>[ht($e(J(Ee).summary.testsSkipped),1)]),_:1})):Ue("",!0),J(Ee).summary.testsTodo?(se(),Je($l,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>[...o[7]||(o[7]=[ht(" Todo ",-1)])]),body:it(()=>[ht($e(J(Ee).summary.testsTodo),1)]),_:1})):Ue("",!0),Re($l,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:it(()=>[...o[8]||(o[8]=[ht(" Total ",-1)])]),body:it(()=>[ht($e(J(Ee).summary.totalTests),1)]),_:1})]))}}),iue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},oue={key:0,class:"text-gray-5"},sue={"aria-labelledby":"tests",m:"y-4 x-2"},lue=ot({__name:"TestsFilesContainer",setup(e){return(t,r)=>(se(),me("div",iue,[J(Ee).summary.files===0&&J(Ss)?(se(),me("div",oue," No tests found ")):Ue("",!0),ne("section",sue,[Re(rue)]),Re(Jce)]))}}),aue={h:"full",flex:"~ col"},cue={class:"scrolls","flex-auto":"","py-1":""},p0=ot({__name:"Dashboard",setup(e){return(t,r)=>(se(),me("div",aue,[r[0]||(r[0]=ne("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ne("div",{class:"i-carbon-dashboard"}),ne("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ne("div",cue,[Re(lue)])]))}});function uue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var ih="http://www.w3.org/1999/xhtml";const g0={svg:"http://www.w3.org/2000/svg",xhtml:ih,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),g0.hasOwnProperty(t)?{space:g0[t],local:e}:e}function fue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ih&&t.documentElement.namespaceURI===ih?t.createElement(e):t.createElementNS(r,e)}}function due(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nx(e){var t=Zu(e);return(t.local?due:fue)(t)}function hue(){}function ap(e){return e==null?hue:function(){return this.querySelector(e)}}function pue(e){typeof e!="function"&&(e=ap(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 sr(o,this._parents)}function gue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vue(){return[]}function rx(e){return e==null?vue:function(){return this.querySelectorAll(e)}}function mue(e){return function(){return gue(e.apply(this,arguments))}}function yue(e){typeof e=="function"?e=mue(e):e=rx(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 sr(o,s)}function ix(e){return function(){return this.matches(e)}}function ox(e){return function(t){return t.matches(e)}}var bue=Array.prototype.find;function wue(e){return function(){return bue.call(this.children,e)}}function xue(){return this.firstElementChild}function Sue(e){return this.select(e==null?xue:wue(typeof e=="function"?e:ox(e)))}var _ue=Array.prototype.filter;function kue(){return Array.from(this.children)}function Tue(e){return function(){return _ue.call(this.children,e)}}function Cue(e){return this.selectAll(e==null?kue:Tue(typeof e=="function"?e:ox(e)))}function Eue(e){typeof e!="function"&&(e=ix(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 sr(o,this._parents)}function sx(e){return new Array(e.length)}function Aue(){return new sr(this._enter||this._groups.map(sx),this._parents)}function yu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}yu.prototype={constructor:yu,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 Lue(e){return function(){return e}}function Mue(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 yu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Nue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<m;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new yu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Oue(e){return e.__data__}function Rue(e,t){if(!arguments.length)return Array.from(this,Oue);var r=t?Nue:Mue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Lue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,x=Pue(e.call(v,v&&v.__data__,p,o)),C=x.length,L=d[p]=new Array(C),M=f[p]=new Array(C),A=h[p]=new Array(b);r(v,m,L,M,A,x,t);for(var R=0,W=0,E,B;R<C;++R)if(E=L[R]){for(R>=W&&(W=R+1);!(B=M[W])&&++W<C;);E._next=B||null}}return f=new sr(f,o),f._enter=d,f._exit=h,f}function Pue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Iue(){return new sr(this._exit||this._groups.map(sx),this._parents)}function $ue(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 Due(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),x,C=0;C<m;++C)(x=p[C]||v[C])&&(b[C]=x);for(;h<s;++h)d[h]=r[h];return new sr(d,this._parents)}function zue(){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 Fue(e){e||(e=Hue);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 sr(s,this._parents).order()}function Hue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Bue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Wue(){return Array.from(this)}function que(){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 jue(){let e=0;for(const t of this)++e;return e}function Uue(){return!this.node()}function Vue(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 Gue(e){return function(){this.removeAttribute(e)}}function Kue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Xue(e,t){return function(){this.setAttribute(e,t)}}function Yue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Jue(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 Que(e,t){var r=Zu(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?Kue:Gue:typeof t=="function"?r.local?Jue:Zue:r.local?Yue:Xue)(r,t))}function lx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function efe(e){return function(){this.style.removeProperty(e)}}function tfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function nfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function rfe(e,t,r){return arguments.length>1?this.each((t==null?efe:typeof t=="function"?nfe:tfe)(e,t,r??"")):Ks(this.node(),e)}function Ks(e,t){return e.style.getPropertyValue(t)||lx(e).getComputedStyle(e,null).getPropertyValue(t)}function ife(e){return function(){delete this[e]}}function ofe(e,t){return function(){this[e]=t}}function sfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function lfe(e,t){return arguments.length>1?this.each((t==null?ife:typeof t=="function"?sfe:ofe)(e,t)):this.node()[e]}function ax(e){return e.trim().split(/^|\s+/)}function cp(e){return e.classList||new cx(e)}function cx(e){this._node=e,this._names=ax(e.getAttribute("class")||"")}cx.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 ux(e,t){for(var r=cp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function fx(e,t){for(var r=cp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function afe(e){return function(){ux(this,e)}}function cfe(e){return function(){fx(this,e)}}function ufe(e,t){return function(){(t.apply(this,arguments)?ux:fx)(this,e)}}function ffe(e,t){var r=ax(e+"");if(arguments.length<2){for(var o=cp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?ufe:t?afe:cfe)(r,t))}function dfe(){this.textContent=""}function hfe(e){return function(){this.textContent=e}}function pfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function gfe(e){return arguments.length?this.each(e==null?dfe:(typeof e=="function"?pfe:hfe)(e)):this.node().textContent}function vfe(){this.innerHTML=""}function mfe(e){return function(){this.innerHTML=e}}function yfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function bfe(e){return arguments.length?this.each(e==null?vfe:(typeof e=="function"?yfe:mfe)(e)):this.node().innerHTML}function wfe(){this.nextSibling&&this.parentNode.appendChild(this)}function xfe(){return this.each(wfe)}function Sfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _fe(){return this.each(Sfe)}function kfe(e){var t=typeof e=="function"?e:nx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Tfe(){return null}function Cfe(e,t){var r=typeof e=="function"?e:nx(e),o=t==null?Tfe:typeof t=="function"?t:ap(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Efe(){var e=this.parentNode;e&&e.removeChild(this)}function Afe(){return this.each(Efe)}function Lfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nfe(e){return this.select(e?Mfe:Lfe)}function Ofe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Rfe(e){return function(t){e.call(this,t,this.__data__)}}function Pfe(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 Ife(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 $fe(e,t,r){return function(){var o=this.__on,s,c=Rfe(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 Dfe(e,t,r){var o=Pfe(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?$fe:Ife,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function dx(e,t,r){var o=lx(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 zfe(e,t){return function(){return dx(this,e,t)}}function Ffe(e,t){return function(){return dx(this,e,t.apply(this,arguments))}}function Hfe(e,t){return this.each((typeof t=="function"?Ffe:zfe)(e,t))}function*Bfe(){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 hx=[null];function sr(e,t){this._groups=e,this._parents=t}function Da(){return new sr([[document.documentElement]],hx)}function Wfe(){return this}sr.prototype=Da.prototype={constructor:sr,select:pue,selectAll:yue,selectChild:Sue,selectChildren:Cue,filter:Eue,data:Rue,enter:Aue,exit:Iue,join:$ue,merge:Due,selection:Wfe,order:zue,sort:Fue,call:Bue,nodes:Wue,node:que,size:jue,empty:Uue,each:Vue,attr:Que,style:rfe,property:lfe,classed:ffe,text:gfe,html:bfe,raise:xfe,lower:_fe,append:kfe,insert:Cfe,remove:Afe,clone:Nfe,datum:Ofe,on:Dfe,dispatch:Hfe,[Symbol.iterator]:Bfe};function Gn(e){return typeof e=="string"?new sr([[document.querySelector(e)]],[document.documentElement]):new sr([[e]],hx)}function qfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pi(e,t){if(e=qfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Xs=class di{x;y;static of([t,r]){return new di(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new di(this.x+t.x,this.y+t.y)}subtract(t){return new di(this.x-t.x,this.y-t.y)}multiply(t){return new di(this.x*t,this.y*t)}divide(t){return new di(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 di(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 di(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new di(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},jfe={value:()=>{}};function za(){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 Wc(r)}function Wc(e){this._=e}function Ufe(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}})}Wc.prototype=za.prototype={constructor:Wc,on:function(e,t){var r=this._,o=Ufe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Vfe(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]=v0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=v0(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 Wc(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 Vfe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function v0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=jfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Gfe={passive:!1},wa={capture:!0,passive:!1};function wd(e){e.stopImmediatePropagation()}function Ds(e){e.preventDefault(),e.stopImmediatePropagation()}function px(e){var t=e.document.documentElement,r=Gn(e).on("dragstart.drag",Ds,wa);"onselectstart"in t?r.on("selectstart.drag",Ds,wa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function gx(e,t){var r=e.document.documentElement,o=Gn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ds,wa),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 Lc=e=>()=>e;function oh(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}})}oh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Kfe(e){return!e.ctrlKey&&!e.button}function Xfe(){return this.parentNode}function Yfe(e,t){return t??{x:e.x,y:e.y}}function Zfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jfe(){var e=Kfe,t=Xfe,r=Yfe,o=Zfe,s={},c=za("start","drag","end"),f=0,d,h,p,v,m=0;function b(E){E.on("mousedown.drag",x).filter(o).on("touchstart.drag",M).on("touchmove.drag",A,Gfe).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(E,B){if(!(v||!e.call(this,E,B))){var U=W(this,t.call(this,E,B),E,B,"mouse");U&&(Gn(E.view).on("mousemove.drag",C,wa).on("mouseup.drag",L,wa),px(E.view),wd(E),p=!1,d=E.clientX,h=E.clientY,U("start",E))}}function C(E){if(Ds(E),!p){var B=E.clientX-d,U=E.clientY-h;p=B*B+U*U>m}s.mouse("drag",E)}function L(E){Gn(E.view).on("mousemove.drag mouseup.drag",null),gx(E.view,p),Ds(E),s.mouse("end",E)}function M(E,B){if(e.call(this,E,B)){var U=E.changedTouches,oe=t.call(this,E,B),te=U.length,Z,K;for(Z=0;Z<te;++Z)(K=W(this,oe,E,B,U[Z].identifier,U[Z]))&&(wd(E),K("start",E,U[Z]))}}function A(E){var B=E.changedTouches,U=B.length,oe,te;for(oe=0;oe<U;++oe)(te=s[B[oe].identifier])&&(Ds(E),te("drag",E,B[oe]))}function R(E){var B=E.changedTouches,U=B.length,oe,te;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),oe=0;oe<U;++oe)(te=s[B[oe].identifier])&&(wd(E),te("end",E,B[oe]))}function W(E,B,U,oe,te,Z){var K=c.copy(),V=pi(Z||U,B),P,O,N;if((N=r.call(E,new oh("beforestart",{sourceEvent:U,target:b,identifier:te,active:f,x:V[0],y:V[1],dx:0,dy:0,dispatch:K}),oe))!=null)return P=N.x-V[0]||0,O=N.y-V[1]||0,function _(z,H,re){var ve=V,we;switch(z){case"start":s[te]=_,we=f++;break;case"end":delete s[te],--f;case"drag":V=pi(re||H,B),we=f;break}K.call(z,E,new oh(z,{sourceEvent:H,subject:N,target:b,identifier:te,active:we,x:V[0]+P,y:V[1]+O,dx:V[0]-ve[0],dy:V[1]-ve[1],dispatch:K}),oe)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:Lc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:Lc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Lc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Lc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(m=(E=+E)*E,b):Math.sqrt(m)},b}function up(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Fa(){}var xa=.7,bu=1/xa,zs="\\s*([+-]?\\d+)\\s*",Sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qfe=/^#([0-9a-f]{3,8})$/,ede=new RegExp(`^rgb\\(${zs},${zs},${zs}\\)$`),tde=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),nde=new RegExp(`^rgba\\(${zs},${zs},${zs},${Sa}\\)$`),rde=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${Sa}\\)$`),ide=new RegExp(`^hsl\\(${Sa},${Zr},${Zr}\\)$`),ode=new RegExp(`^hsla\\(${Sa},${Zr},${Zr},${Sa}\\)$`),m0={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};up(Fa,_a,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:y0,formatHex:y0,formatHex8:sde,formatHsl:lde,formatRgb:b0,toString:b0});function y0(){return this.rgb().formatHex()}function sde(){return this.rgb().formatHex8()}function lde(){return mx(this).formatHsl()}function b0(){return this.rgb().formatRgb()}function _a(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Qfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?w0(t):r===3?new Xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Mc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Mc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ede.exec(e))?new Xn(t[1],t[2],t[3],1):(t=tde.exec(e))?new Xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nde.exec(e))?Mc(t[1],t[2],t[3],t[4]):(t=rde.exec(e))?Mc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ide.exec(e))?_0(t[1],t[2]/100,t[3]/100,1):(t=ode.exec(e))?_0(t[1],t[2]/100,t[3]/100,t[4]):m0.hasOwnProperty(e)?w0(m0[e]):e==="transparent"?new Xn(NaN,NaN,NaN,0):null}function w0(e){return new Xn(e>>16&255,e>>8&255,e&255,1)}function Mc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Xn(e,t,r,o)}function ade(e){return e instanceof Fa||(e=_a(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function sh(e,t,r,o){return arguments.length===1?ade(e):new Xn(e,t,r,o??1)}function Xn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}up(Xn,sh,vx(Fa,{brighter(e){return e=e==null?bu:Math.pow(bu,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(Fo(this.r),Fo(this.g),Fo(this.b),wu(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:x0,formatHex:x0,formatHex8:cde,formatRgb:S0,toString:S0}));function x0(){return`#${Io(this.r)}${Io(this.g)}${Io(this.b)}`}function cde(){return`#${Io(this.r)}${Io(this.g)}${Io(this.b)}${Io((isNaN(this.opacity)?1:this.opacity)*255)}`}function S0(){const e=wu(this.opacity);return`${e===1?"rgb(":"rgba("}${Fo(this.r)}, ${Fo(this.g)}, ${Fo(this.b)}${e===1?")":`, ${e})`}`}function wu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Io(e){return e=Fo(e),(e<16?"0":"")+e.toString(16)}function _0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,r,o)}function mx(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof Fa||(e=_a(e)),!e)return new Lr;if(e instanceof Lr)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 Lr(f,d,h,e.opacity)}function ude(e,t,r,o){return arguments.length===1?mx(e):new Lr(e,t,r,o??1)}function Lr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}up(Lr,ude,vx(Fa,{brighter(e){return e=e==null?bu:Math.pow(bu,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Lr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Xn(xd(e>=240?e-240:e+120,s,o),xd(e,s,o),xd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Lr(k0(this.h),Nc(this.s),Nc(this.l),wu(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=wu(this.opacity);return`${e===1?"hsl(":"hsla("}${k0(this.h)}, ${Nc(this.s)*100}%, ${Nc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function k0(e){return e=(e||0)%360,e<0?e+360:e}function Nc(e){return Math.max(0,Math.min(1,e||0))}function xd(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 yx=e=>()=>e;function fde(e,t){return function(r){return e+r*t}}function dde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function hde(e){return(e=+e)==1?bx:function(t,r){return r-t?dde(t,r,e):yx(isNaN(t)?r:t)}}function bx(e,t){var r=t-e;return r?fde(e,r):yx(isNaN(e)?t:e)}const T0=(function e(t){var r=hde(t);function o(s,c){var f=r((s=sh(s)).r,(c=sh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=bx(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 Xi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var lh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sd=new RegExp(lh.source,"g");function pde(e){return function(){return e}}function gde(e){return function(t){return e(t)+""}}function vde(e,t){var r=lh.lastIndex=Sd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=lh.exec(e))&&(s=Sd.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:Xi(o,s)})),r=Sd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?gde(h[0].x):pde(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 C0=180/Math.PI,ah={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wx(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)*C0,skewX:Math.atan(h)*C0,scaleX:f,scaleY:d}}var Oc;function mde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ah:wx(t.a,t.b,t.c,t.d,t.e,t.f)}function yde(e){return e==null||(Oc||(Oc=document.createElementNS("http://www.w3.org/2000/svg","g")),Oc.setAttribute("transform",e),!(e=Oc.transform.baseVal.consolidate()))?ah:(e=e.matrix,wx(e.a,e.b,e.c,e.d,e.e,e.f))}function xx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,C){if(p!==m||v!==b){var L=x.push("translate(",null,t,null,r);C.push({i:L-4,x:Xi(p,m)},{i:L-2,x:Xi(v,b)})}else(m||b)&&x.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Xi(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:Xi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,x,C){if(p!==m||v!==b){var L=x.push(s(x)+"scale(",null,",",null,")");C.push({i:L-4,x:Xi(p,m)},{i:L-2,x:Xi(v,b)})}else(m!==1||b!==1)&&x.push(s(x)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(x){for(var C=-1,L=b.length,M;++C<L;)m[(M=b[C]).i]=M.x(x);return m.join("")}}}var bde=xx(mde,"px, ","px)","deg)"),wde=xx(yde,", ",")",")"),xde=1e-12;function E0(e){return((e=Math.exp(e))+1/e)/2}function Sde(e){return((e=Math.exp(e))-1/e)/2}function _de(e){return((e=Math.exp(2*e))-1)/(e+1)}const kde=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],x=v-d,C=m-h,L=x*x+C*C,M,A;if(L<xde)A=Math.log(b/p)/t,M=function(oe){return[d+oe*x,h+oe*C,p*Math.exp(t*oe*A)]};else{var R=Math.sqrt(L),W=(b*b-p*p+o*L)/(2*p*r*R),E=(b*b-p*p-o*L)/(2*b*r*R),B=Math.log(Math.sqrt(W*W+1)-W),U=Math.log(Math.sqrt(E*E+1)-E);A=(U-B)/t,M=function(oe){var te=oe*A,Z=E0(B),K=p/(r*R)*(Z*_de(t*te+B)-Sde(B));return[d+K*x,h+K*C,p*Z/E0(t*te+B)]}}return M.duration=A*1e3*t/Math.SQRT2,M}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s})(Math.SQRT2,2,4);var Ys=0,Bl=0,Dl=0,Sx=1e3,xu,Wl,Su=0,Bo=0,Ju=0,ka=typeof performance=="object"&&performance.now?performance:Date,_x=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function fp(){return Bo||(_x(Tde),Bo=ka.now()+Ju)}function Tde(){Bo=0}function _u(){this._call=this._time=this._next=null}_u.prototype=dp.prototype={constructor:_u,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?fp():+r)+(t==null?0:+t),!this._next&&Wl!==this&&(Wl?Wl._next=this:xu=this,Wl=this),this._call=e,this._time=r,ch()},stop:function(){this._call&&(this._call=null,this._time=1/0,ch())}};function dp(e,t,r){var o=new _u;return o.restart(e,t,r),o}function Cde(){fp(),++Ys;for(var e=xu,t;e;)(t=Bo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ys}function A0(){Bo=(Su=ka.now())+Ju,Ys=Bl=0;try{Cde()}finally{Ys=0,Ade(),Bo=0}}function Ede(){var e=ka.now(),t=e-Su;t>Sx&&(Ju-=t,Su=e)}function Ade(){for(var e,t=xu,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:xu=r);Wl=e,ch(o)}function ch(e){if(!Ys){Bl&&(Bl=clearTimeout(Bl));var t=e-Bo;t>24?(e<1/0&&(Bl=setTimeout(A0,e-ka.now()-Ju)),Dl&&(Dl=clearInterval(Dl))):(Dl||(Su=ka.now(),Dl=setInterval(Ede,Sx)),Ys=1,_x(A0))}}function L0(e,t,r){var o=new _u;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Lde=za("start","end","cancel","interrupt"),Mde=[],kx=0,M0=1,uh=2,qc=3,N0=4,fh=5,jc=6;function Qu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Nde(e,r,{name:t,index:o,group:s,on:Lde,tween:Mde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:kx})}function hp(e,t){var r=zr(e,t);if(r.state>kx)throw new Error("too late; already scheduled");return r}function Qr(e,t){var r=zr(e,t);if(r.state>qc)throw new Error("too late; already running");return r}function zr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Nde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=dp(c,0,r.time);function c(p){r.state=M0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,x;if(r.state!==M0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===qc)return L0(f);x.state===N0?(x.state=jc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=jc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(L0(function(){r.state===qc&&(r.state=N0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=uh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===uh){for(r.state=qc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=x);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=fh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===fh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=jc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Uc(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>uh&&o.state<fh,o.state=jc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Ode(e){return this.each(function(){Uc(this,e)})}function Rde(e,t){var r,o;return function(){var s=Qr(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 Pde(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Qr(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 Ide(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=zr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Rde:Pde)(r,e,t))}function pp(e,t,r){var o=e._id;return e.each(function(){var s=Qr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return zr(s,o).value[t]}}function Tx(e,t){var r;return(typeof t=="number"?Xi:t instanceof _a?T0:(r=_a(t))?(t=r,T0):vde)(e,t)}function $de(e){return function(){this.removeAttribute(e)}}function Dde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zde(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 Fde(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 Hde(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 Bde(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 Wde(e,t){var r=Zu(e),o=r==="transform"?wde:Tx;return this.attrTween(e,typeof t=="function"?(r.local?Bde:Hde)(r,o,pp(this,"attr."+e,t)):t==null?(r.local?Dde:$de)(r):(r.local?Fde:zde)(r,o,t))}function qde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function jde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ude(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&jde(e,c)),r}return s._value=t,s}function Vde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&qde(e,c)),r}return s._value=t,s}function Gde(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=Zu(e);return this.tween(r,(o.local?Ude:Vde)(o,t))}function Kde(e,t){return function(){hp(this,e).delay=+t.apply(this,arguments)}}function Xde(e,t){return t=+t,function(){hp(this,e).delay=t}}function Yde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Kde:Xde)(t,e)):zr(this.node(),t).delay}function Zde(e,t){return function(){Qr(this,e).duration=+t.apply(this,arguments)}}function Jde(e,t){return t=+t,function(){Qr(this,e).duration=t}}function Qde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Zde:Jde)(t,e)):zr(this.node(),t).duration}function ehe(e,t){if(typeof t!="function")throw new Error;return function(){Qr(this,e).ease=t}}function the(e){var t=this._id;return arguments.length?this.each(ehe(t,e)):zr(this.node(),t).ease}function nhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Qr(this,e).ease=r}}function rhe(e){if(typeof e!="function")throw new Error;return this.each(nhe(this._id,e))}function ihe(e){typeof e!="function"&&(e=ix(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 _i(o,this._parents,this._name,this._id)}function ohe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(m[x]=b);for(;d<o;++d)f[d]=t[d];return new _i(f,this._parents,this._name,this._id)}function she(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 lhe(e,t,r){var o,s,c=she(t)?hp:Qr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function ahe(e,t){var r=this._id;return arguments.length<2?zr(this.node(),r).on.on(e):this.each(lhe(r,e,t))}function che(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function uhe(){return this.on("end.remove",che(this._id))}function fhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ap(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,Qu(p[b],t,r,b,p,zr(v,r)));return new _i(c,this._parents,t,r)}function dhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=rx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),x,C=zr(v,r),L=0,M=b.length;L<M;++L)(x=b[L])&&Qu(x,t,r,L,b,C);c.push(b),f.push(v)}return new _i(c,f,t,r)}var hhe=Da.prototype.constructor;function phe(){return new hhe(this._groups,this._parents)}function ghe(e,t){var r,o,s;return function(){var c=Ks(this,e),f=(this.style.removeProperty(e),Ks(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Cx(e){return function(){this.style.removeProperty(e)}}function vhe(e,t,r){var o,s=r+"",c;return function(){var f=Ks(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function mhe(e,t,r){var o,s,c;return function(){var f=Ks(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ks(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function yhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Qr(this,e),p=h.on,v=h.value[c]==null?d||(d=Cx(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function bhe(e,t,r){var o=(e+="")=="transform"?bde:Tx;return t==null?this.styleTween(e,ghe(e,o)).on("end.style."+e,Cx(e)):typeof t=="function"?this.styleTween(e,mhe(e,o,pp(this,"style."+e,t))).each(yhe(this._id,e)):this.styleTween(e,vhe(e,o,t),r).on("end.style."+e,null)}function whe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function xhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&whe(e,f,r)),o}return c._value=t,c}function She(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,xhe(e,t,r??""))}function _he(e){return function(){this.textContent=e}}function khe(e){return function(){var t=e(this);this.textContent=t??""}}function The(e){return this.tween("text",typeof e=="function"?khe(pp(this,"text",e)):_he(e==null?"":e+""))}function Che(e){return function(t){this.textContent=e.call(this,t)}}function Ehe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Che(s)),t}return o._value=e,o}function Ahe(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,Ehe(e))}function Lhe(){for(var e=this._name,t=this._id,r=Ex(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=zr(h,t);Qu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new _i(o,this._parents,e,r)}function Mhe(){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=Qr(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 Nhe=0;function _i(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Ex(){return++Nhe}var ui=Da.prototype;_i.prototype={constructor:_i,select:fhe,selectAll:dhe,selectChild:ui.selectChild,selectChildren:ui.selectChildren,filter:ihe,merge:ohe,selection:phe,transition:Lhe,call:ui.call,nodes:ui.nodes,node:ui.node,size:ui.size,empty:ui.empty,each:ui.each,on:ahe,attr:Wde,attrTween:Gde,style:bhe,styleTween:She,text:The,textTween:Ahe,remove:uhe,tween:Ide,delay:Yde,duration:Qde,ease:the,easeVarying:rhe,end:Mhe,[Symbol.iterator]:ui[Symbol.iterator]};function Ohe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Rhe={time:null,delay:0,duration:250,ease:Ohe};function Phe(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 Ihe(e){var t,r;e instanceof _i?(t=e._id,e=e._name):(t=Ex(),(r=Rhe).time=fp(),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])&&Qu(h,e,t,p,f,r||Phe(h,t));return new _i(o,this._parents,e,t)}Da.prototype.interrupt=Ode;Da.prototype.transition=Ihe;const Rc=e=>()=>e;function $he(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 yi(e,t,r){this.k=e,this.x=t,this.y=r}yi.prototype={constructor:yi,scale:function(e){return e===1?this:new yi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new yi(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 gp=new yi(1,0,0);yi.prototype;function _d(e){e.stopImmediatePropagation()}function zl(e){e.preventDefault(),e.stopImmediatePropagation()}function Dhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function zhe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function O0(){return this.__zoom||gp}function Fhe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Hhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bhe(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 Whe(){var e=Dhe,t=zhe,r=Bhe,o=Fhe,s=Hhe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=kde,p=za("start","zoom","end"),v,m,b,x=500,C=150,L=0,M=10;function A(N){N.property("__zoom",O0).on("wheel.zoom",te,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",K).filter(s).on("touchstart.zoom",V).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(N,_,z,H){var re=N.selection?N.selection():N;re.property("__zoom",O0),N!==re?B(N,_,z,H):re.interrupt().each(function(){U(this,arguments).event(H).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},A.scaleBy=function(N,_,z,H){A.scaleTo(N,function(){var re=this.__zoom.k,ve=typeof _=="function"?_.apply(this,arguments):_;return re*ve},z,H)},A.scaleTo=function(N,_,z,H){A.transform(N,function(){var re=t.apply(this,arguments),ve=this.__zoom,we=z==null?E(re):typeof z=="function"?z.apply(this,arguments):z,Pe=ve.invert(we),je=typeof _=="function"?_.apply(this,arguments):_;return r(W(R(ve,je),we,Pe),re,f)},z,H)},A.translateBy=function(N,_,z,H){A.transform(N,function(){return r(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),f)},null,H)},A.translateTo=function(N,_,z,H,re){A.transform(N,function(){var ve=t.apply(this,arguments),we=this.__zoom,Pe=H==null?E(ve):typeof H=="function"?H.apply(this,arguments):H;return r(gp.translate(Pe[0],Pe[1]).scale(we.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof z=="function"?-z.apply(this,arguments):-z),ve,f)},H,re)};function R(N,_){return _=Math.max(c[0],Math.min(c[1],_)),_===N.k?N:new yi(_,N.x,N.y)}function W(N,_,z){var H=_[0]-z[0]*N.k,re=_[1]-z[1]*N.k;return H===N.x&&re===N.y?N:new yi(N.k,H,re)}function E(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function B(N,_,z,H){N.on("start.zoom",function(){U(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(H).end()}).tween("zoom",function(){var re=this,ve=arguments,we=U(re,ve).event(H),Pe=t.apply(re,ve),je=z==null?E(Pe):typeof z=="function"?z.apply(re,ve):z,Qe=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ye=re.__zoom,ze=typeof _=="function"?_.apply(re,ve):_,Me=h(Ye.invert(je).concat(Qe/Ye.k),ze.invert(je).concat(Qe/ze.k));return function($){if($===1)$=ze;else{var G=Me($),Q=Qe/G[2];$=new yi(Q,je[0]-G[0]*Q,je[1]-G[1]*Q)}we.zoom(null,$)}})}function U(N,_,z){return!z&&N.__zooming||new oe(N,_)}function oe(N,_){this.that=N,this.args=_,this.active=0,this.sourceEvent=null,this.extent=t.apply(N,_),this.taps=0}oe.prototype={event:function(N){return N&&(this.sourceEvent=N),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(N,_){return this.mouse&&N!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&N!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&N!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(N){var _=Gn(this.that).datum();p.call(N,this.that,new $he(N,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),_)}};function te(N,..._){if(!e.apply(this,arguments))return;var z=U(this,_).event(N),H=this.__zoom,re=Math.max(c[0],Math.min(c[1],H.k*Math.pow(2,o.apply(this,arguments)))),ve=pi(N);if(z.wheel)(z.mouse[0][0]!==ve[0]||z.mouse[0][1]!==ve[1])&&(z.mouse[1]=H.invert(z.mouse[0]=ve)),clearTimeout(z.wheel);else{if(H.k===re)return;z.mouse=[ve,H.invert(ve)],Uc(this),z.start()}zl(N),z.wheel=setTimeout(we,C),z.zoom("mouse",r(W(R(H,re),z.mouse[0],z.mouse[1]),z.extent,f));function we(){z.wheel=null,z.end()}}function Z(N,..._){if(b||!e.apply(this,arguments))return;var z=N.currentTarget,H=U(this,_,!0).event(N),re=Gn(N.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",Qe,!0),ve=pi(N,z),we=N.clientX,Pe=N.clientY;px(N.view),_d(N),H.mouse=[ve,this.__zoom.invert(ve)],Uc(this),H.start();function je(Ye){if(zl(Ye),!H.moved){var ze=Ye.clientX-we,Me=Ye.clientY-Pe;H.moved=ze*ze+Me*Me>L}H.event(Ye).zoom("mouse",r(W(H.that.__zoom,H.mouse[0]=pi(Ye,z),H.mouse[1]),H.extent,f))}function Qe(Ye){re.on("mousemove.zoom mouseup.zoom",null),gx(Ye.view,H.moved),zl(Ye),H.event(Ye).end()}}function K(N,..._){if(e.apply(this,arguments)){var z=this.__zoom,H=pi(N.changedTouches?N.changedTouches[0]:N,this),re=z.invert(H),ve=z.k*(N.shiftKey?.5:2),we=r(W(R(z,ve),H,re),t.apply(this,_),f);zl(N),d>0?Gn(this).transition().duration(d).call(B,we,H,N):Gn(this).call(A.transform,we,H,N)}}function V(N,..._){if(e.apply(this,arguments)){var z=N.touches,H=z.length,re=U(this,_,N.changedTouches.length===H).event(N),ve,we,Pe,je;for(_d(N),we=0;we<H;++we)Pe=z[we],je=pi(Pe,this),je=[je,this.__zoom.invert(je),Pe.identifier],re.touch0?!re.touch1&&re.touch0[2]!==je[2]&&(re.touch1=je,re.taps=0):(re.touch0=je,ve=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),ve&&(re.taps<2&&(m=je[0],v=setTimeout(function(){v=null},x)),Uc(this),re.start())}}function P(N,..._){if(this.__zooming){var z=U(this,_).event(N),H=N.changedTouches,re=H.length,ve,we,Pe,je;for(zl(N),ve=0;ve<re;++ve)we=H[ve],Pe=pi(we,this),z.touch0&&z.touch0[2]===we.identifier?z.touch0[0]=Pe:z.touch1&&z.touch1[2]===we.identifier&&(z.touch1[0]=Pe);if(we=z.that.__zoom,z.touch1){var Qe=z.touch0[0],Ye=z.touch0[1],ze=z.touch1[0],Me=z.touch1[1],$=($=ze[0]-Qe[0])*$+($=ze[1]-Qe[1])*$,G=(G=Me[0]-Ye[0])*G+(G=Me[1]-Ye[1])*G;we=R(we,Math.sqrt($/G)),Pe=[(Qe[0]+ze[0])/2,(Qe[1]+ze[1])/2],je=[(Ye[0]+Me[0])/2,(Ye[1]+Me[1])/2]}else if(z.touch0)Pe=z.touch0[0],je=z.touch0[1];else return;z.zoom("touch",r(W(we,Pe,je),z.extent,f))}}function O(N,..._){if(this.__zooming){var z=U(this,_).event(N),H=N.changedTouches,re=H.length,ve,we;for(_d(N),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ve=0;ve<re;++ve)we=H[ve],z.touch0&&z.touch0[2]===we.identifier?delete z.touch0:z.touch1&&z.touch1[2]===we.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(we=pi(we,this),Math.hypot(m[0]-we[0],m[1]-we[1])<M)){var Pe=Gn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return A.wheelDelta=function(N){return arguments.length?(o=typeof N=="function"?N:Rc(+N),A):o},A.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Rc(!!N),A):e},A.touchable=function(N){return arguments.length?(s=typeof N=="function"?N:Rc(!!N),A):s},A.extent=function(N){return arguments.length?(t=typeof N=="function"?N:Rc([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),A):t},A.scaleExtent=function(N){return arguments.length?(c[0]=+N[0],c[1]=+N[1],A):[c[0],c[1]]},A.translateExtent=function(N){return arguments.length?(f[0][0]=+N[0][0],f[1][0]=+N[1][0],f[0][1]=+N[0][1],f[1][1]=+N[1][1],A):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},A.constrain=function(N){return arguments.length?(r=N,A):r},A.duration=function(N){return arguments.length?(d=+N,A):d},A.interpolate=function(N){return arguments.length?(h=N,A):h},A.on=function(){var N=p.on.apply(p,arguments);return N===p?A:N},A.clickDistance=function(N){return arguments.length?(L=(N=+N)*N,A):Math.sqrt(L)},A.tapDistance=function(N){return arguments.length?(M=+N,A):M},A}function qhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Ax(this.cover(t,r),t,r,e)}function Ax(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,x,C,L,M,A,R;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[A=M<<1|L]))return s[A]=f,e;if(x=+e._x.call(null,c.data),C=+e._y.call(null,c.data),t===x&&r===C)return f.next=c,s?s[A]=f:e._root=f,e;do s=s?s[A]=new Array(4):e._root=new Array(4),(L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b;while((A=M<<1|L)===(R=(C>=b)<<1|x>=m));return s[R]=c,s[A]=f,e}function jhe(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)Ax(this,f[r],d[r],e[r]);return this}function Uhe(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 Vhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ghe(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 In(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Khe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],x=this._root,C,L;for(x&&b.push(new In(x,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);C=b.pop();)if(!(!(x=C.node)||(f=C.x0)>v||(d=C.y0)>m||(h=C.x1)<s||(p=C.y1)<c))if(x.length){var M=(f+h)/2,A=(d+p)/2;b.push(new In(x[3],M,A,h,p),new In(x[2],f,A,M,p),new In(x[1],M,d,h,A),new In(x[0],f,d,M,A)),(L=(t>=A)<<1|e>=M)&&(C=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=C)}else{var R=e-+this._x.call(null,x.data),W=t-+this._y.call(null,x.data),E=R*R+W*W;if(E<r){var B=Math.sqrt(r=E);s=e-B,c=t-B,v=e+B,m=t+B,o=x.data}}return o}function Xhe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,x,C,L,M,A;if(!r)return this;if(r.length)for(;;){if((C=v>=(b=(f+h)/2))?f=b:h=b,(L=m>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[M=L<<1|C]))return this;if(!r.length)break;(t[M+1&3]||t[M+2&3]||t[M+3&3])&&(o=t,A=M)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[M]=c:delete t[M],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[A]=r:this._root=r),this):(this._root=c,this)}function Yhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Zhe(){return this._root}function Jhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Qhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new In(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 In(s,p,v,d,h)),(s=o[2])&&t.push(new In(s,c,v,p,h)),(s=o[1])&&t.push(new In(s,p,f,d,v)),(s=o[0])&&t.push(new In(s,c,f,p,v))}return this}function epe(e){var t=[],r=[],o;for(this._root&&t.push(new In(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 In(c,f,d,v,m)),(c=s[1])&&t.push(new In(c,v,d,h,m)),(c=s[2])&&t.push(new In(c,f,m,v,p)),(c=s[3])&&t.push(new In(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function tpe(e){return e[0]}function npe(e){return arguments.length?(this._x=e,this):this._x}function rpe(e){return e[1]}function ipe(e){return arguments.length?(this._y=e,this):this._y}function vp(e,t,r){var o=new mp(t??tpe,r??rpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function mp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function R0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=vp.prototype=mp.prototype;zn.copy=function(){var e=new mp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=R0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=R0(o));return e};zn.add=qhe;zn.addAll=jhe;zn.cover=Uhe;zn.data=Vhe;zn.extent=Ghe;zn.find=Khe;zn.remove=Xhe;zn.removeAll=Yhe;zn.root=Zhe;zn.size=Jhe;zn.visit=Qhe;zn.visitAfter=epe;zn.x=npe;zn.y=ipe;function Dn(e){return function(){return e}}function Ji(e){return(e()-.5)*1e-6}function ope(e){return e.x+e.vx}function spe(e){return e.y+e.vy}function lpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Dn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,x,C,L,M,A=0;A<c;++A)for(m=vp(t,ope,spe).visitAfter(d),p=0;p<v;++p)b=t[p],L=r[b.index],M=L*L,x=b.x+b.vx,C=b.y+b.vy,m.visit(R);function R(W,E,B,U,oe){var te=W.data,Z=W.r,K=L+Z;if(te){if(te.index>b.index){var V=x-te.x-te.vx,P=C-te.y-te.vy,O=V*V+P*P;O<K*K&&(V===0&&(V=Ji(o),O+=V*V),P===0&&(P=Ji(o),O+=P*P),O=(K-(O=Math.sqrt(O)))/O*s,b.vx+=(V*=O)*(K=(Z*=Z)/(M+Z)),b.vy+=(P*=O)*K,te.vx-=V*(K=1-K),te.vy-=P*K)}return}return E>x+K||U<x-K||B>C+K||oe<C-K}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Dn(+p),h(),f):e},f}function ape(e){return e.index}function P0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function cpe(e){var t=ape,r=m,o,s=Dn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(M){return 1/Math.min(d[M.source.index],d[M.target.index])}function b(M){for(var A=0,R=e.length;A<v;++A)for(var W=0,E,B,U,oe,te,Z,K;W<R;++W)E=e[W],B=E.source,U=E.target,oe=U.x+U.vx-B.x-B.vx||Ji(p),te=U.y+U.vy-B.y-B.vy||Ji(p),Z=Math.sqrt(oe*oe+te*te),Z=(Z-c[W])/Z*M*o[W],oe*=Z,te*=Z,U.vx-=oe*(K=h[W]),U.vy-=te*K,B.vx+=oe*(K=1-K),B.vy+=te*K}function x(){if(f){var M,A=f.length,R=e.length,W=new Map(f.map((B,U)=>[t(B,U,f),B])),E;for(M=0,d=new Array(A);M<R;++M)E=e[M],E.index=M,typeof E.source!="object"&&(E.source=P0(W,E.source)),typeof E.target!="object"&&(E.target=P0(W,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(M=0,h=new Array(R);M<R;++M)E=e[M],h[M]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array(R),C(),c=new Array(R),L()}}function C(){if(f)for(var M=0,A=e.length;M<A;++M)o[M]=+r(e[M],M,e)}function L(){if(f)for(var M=0,A=e.length;M<A;++M)c[M]=+s(e[M],M,e)}return b.initialize=function(M,A){f=M,p=A,x()},b.links=function(M){return arguments.length?(e=M,x(),b):e},b.id=function(M){return arguments.length?(t=M,b):t},b.iterations=function(M){return arguments.length?(v=+M,b):v},b.strength=function(M){return arguments.length?(r=typeof M=="function"?M:Dn(+M),C(),b):r},b.distance=function(M){return arguments.length?(s=typeof M=="function"?M:Dn(+M),L(),b):s},b}const upe=1664525,fpe=1013904223,I0=4294967296;function dpe(){let e=1;return()=>(e=(upe*e+fpe)%I0)/I0}function hpe(e){return e.x}function ppe(e){return e.y}var gpe=10,vpe=Math.PI*(3-Math.sqrt(5));function mpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=dp(m),p=za("tick","end"),v=dpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var M,A=e.length,R;L===void 0&&(L=1);for(var W=0;W<L;++W)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),M=0;M<A;++M)R=e[M],R.fx==null?R.x+=R.vx*=f:(R.x=R.fx,R.vx=0),R.fy==null?R.y+=R.vy*=f:(R.y=R.fy,R.vy=0);return t}function x(){for(var L=0,M=e.length,A;L<M;++L){if(A=e[L],A.index=L,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var R=gpe*Math.sqrt(.5+L),W=L*vpe;A.x=R*Math.cos(W),A.y=R*Math.sin(W)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function C(L){return L.initialize&&L.initialize(e,v),L}return x(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,x(),d.forEach(C),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(v=L,d.forEach(C),t):v},force:function(L,M){return arguments.length>1?(M==null?d.delete(L):d.set(L,C(M)),t):d.get(L)},find:function(L,M,A){var R=0,W=e.length,E,B,U,oe,te;for(A==null?A=1/0:A*=A,R=0;R<W;++R)oe=e[R],E=L-oe.x,B=M-oe.y,U=E*E+B*B,U<A&&(te=oe,A=U);return te},on:function(L,M){return arguments.length>1?(p.on(L,M),t):p.on(L)}}}function ype(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(x){var C,L=e.length,M=vp(e,hpe,ppe).visitAfter(m);for(o=x,C=0;C<L;++C)t=e[C],M.visit(b)}function v(){if(e){var x,C=e.length,L;for(c=new Array(C),x=0;x<C;++x)L=e[x],c[L.index]=+s(L,x,e)}}function m(x){var C=0,L,M,A=0,R,W,E;if(x.length){for(R=W=E=0;E<4;++E)(L=x[E])&&(M=Math.abs(L.value))&&(C+=L.value,A+=M,R+=M*L.x,W+=M*L.y);x.x=R/A,x.y=W/A}else{L=x,L.x=L.data.x,L.y=L.data.y;do C+=c[L.data.index];while(L=L.next)}x.value=C}function b(x,C,L,M){if(!x.value)return!0;var A=x.x-t.x,R=x.y-t.y,W=M-C,E=A*A+R*R;if(W*W/h<E)return E<d&&(A===0&&(A=Ji(r),E+=A*A),R===0&&(R=Ji(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)),t.vx+=A*x.value*o/E,t.vy+=R*x.value*o/E),!0;if(x.length||E>=d)return;(x.data!==t||x.next)&&(A===0&&(A=Ji(r),E+=A*A),R===0&&(R=Ji(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)));do x.data!==t&&(W=c[x.data.index]*o/E,t.vx+=A*W,t.vy+=R*W);while(x=x.next)}return p.initialize=function(x,C){e=x,r=C,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Dn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function bpe(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,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:Dn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function wpe(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,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:Dn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function xpe(){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 $0(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 Qi(...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]=Qi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:$0(t[o])&&$0(r[o])?t[o]=Qi(t[o],r[o]):t[o]=r[o])}),t},{})}const Lx={mergeArrays:!0};Qi.options=Lx;Qi.withOptions=(e,...t)=>{Qi.options={mergeArrays:!0,...e};const r=Qi(...t);return Qi.options=Lx,r};var Spe=Qi;function _pe(){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 kpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Mx(e){e.preventDefault(),e.stopPropagation()}function Nx(e){return typeof e=="number"}function uo(e,t){return Nx(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Tpe(e){return`${e.source.id}-${e.target.id}`}function Ox(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Cpe(e){return`url(#${Ox(e.color)})`}function Epe(e){return{size:e,padding:(t,r)=>uo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Rx={Arrow:e=>Epe(e)},Ape=(e,t,r)=>[t/2,r/2],Lpe=(e,t,r)=>[D0(0,t),D0(0,r)];function D0(e,t){return Math.random()*(t-e)+e}const dh={Centered:Ape,Randomized:Lpe};function Mpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:kpe(),nodeRadius:16,marker:Rx.Arrow(4),modifiers:{},positionInitializer:dh.Centered,simulation:{alphas:xpe(),forces:_pe()},zoom:{initial:1,min:.1,max:2}}}function Npe(e={}){return Spe.withOptions({mergeArrays:!1},Mpe(),e)}function Ope({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=>Mx(v)).on("dblclick",v=>r?.(v)).on("dblclick.zoom",null).on("pointermove",v=>o?.(v)).on("pointerup",v=>s?.(v)).style("cursor","grab");return e&&p.call(h.transform,gp.translate(c,f).scale(d)),p.append("g")}function Rpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function Ppe({config:e,onDragStart:t,onDragEnd:r}){const o=Jfe().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Gn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Gn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function Ipe({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}:$pe({links:c},r)}function $pe(e,t){const r=[...Dpe(e,t),...zpe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Dpe(e,t){return Px(e,t,(r,o)=>r.target.id===o.id)}function zpe(e,t){return Px(e,t,(r,o)=>r.source.id===o.id)}function Px(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 hh(e){return e.x??0}function ph(e){return e.y??0}function yp({source:e,target:t}){const r=new Xs(hh(e),ph(e)),o=new Xs(hh(t),ph(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function Ix({center:e,node:t}){const r=new Xs(hh(t),ph(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Xs(0,1))),{n:r,c:o}}function $x({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=yp({source:t,target:r});return{start:o.add(c.multiply(uo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function Fpe(e){const{start:t,end:r}=$x(e);return`M${t.x},${t.y}
43
+ `,Tj="∄",Cj="∄",Ej="𝔑",Aj="𝔫",Lj="≧̸",Mj="≱",Nj="≱",Oj="≧̸",Rj="⩾̸",Pj="⩾̸",Ij="⋙̸",$j="≵",Dj="≫⃒",zj="≯",Fj="≯",Hj="≫̸",Bj="↮",Wj="⇎",qj="⫲",jj="∋",Uj="⋼",Vj="⋺",Gj="∋",Kj="Њ",Xj="њ",Yj="↚",Zj="⇍",Jj="‥",Qj="≦̸",eU="≰",tU="↚",nU="⇍",rU="↮",iU="⇎",oU="≰",sU="≦̸",lU="⩽̸",aU="⩽̸",cU="≮",uU="⋘̸",fU="≴",dU="≪⃒",hU="≮",pU="⋪",gU="⋬",vU="≪̸",mU="∤",yU="⁠",bU=" ",wU="𝕟",xU="ℕ",SU="⫬",_U="¬",kU="≢",TU="≭",CU="∦",EU="∉",AU="≠",LU="≂̸",MU="∄",NU="≯",OU="≱",RU="≧̸",PU="≫̸",IU="≹",$U="⩾̸",DU="≵",zU="≎̸",FU="≏̸",HU="∉",BU="⋵̸",WU="⋹̸",qU="∉",jU="⋷",UU="⋶",VU="⧏̸",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="≄",A6="≇",L6="≉",M6="∤",N6="∦",O6="∦",R6="⫽⃥",P6="∂̸",I6="⨔",$6="⊀",D6="⋠",z6="⊀",F6="⪯̸",H6="⪯̸",B6="⤳̸",W6="↛",q6="⇏",j6="↝̸",U6="↛",V6="⇏",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="⋪",AV="⋬",LV="⋫",MV="⋭",NV="Ν",OV="ν",RV="#",PV="№",IV=" ",$V="≍⃒",DV="⊬",zV="⊭",FV="⊮",HV="⊯",BV="≥⃒",WV=">⃒",qV="⤄",jV="⧞",UV="⤂",VV="≤⃒",GV="<⃒",KV="⊴⃒",XV="⤃",YV="⊵⃒",ZV="∼⃒",JV="⤣",QV="↖",eG="⇖",tG="↖",nG="⤧",rG="Ó",iG="ó",oG="⊛",sG="Ô",lG="ô",aG="⊚",cG="О",uG="о",fG="⊝",dG="Ő",hG="ő",pG="⨸",gG="⊙",vG="⦼",mG="Œ",yG="œ",bG="⦿",wG="𝔒",xG="𝔬",SG="˛",_G="Ò",kG="ò",TG="⧁",CG="⦵",EG="Ω",AG="∮",LG="↺",MG="⦾",NG="⦻",OG="‾",RG="⧀",PG="Ō",IG="ō",$G="Ω",DG="ω",zG="Ο",FG="ο",HG="⦶",BG="⊖",WG="𝕆",qG="𝕠",jG="⦷",UG="“",VG="‘",GG="⦹",KG="⊕",XG="↻",YG="⩔",ZG="∨",JG="⩝",QG="ℴ",e9="ℴ",t9="ª",n9="º",r9="⊶",i9="⩖",o9="⩗",s9="⩛",l9="Ⓢ",a9="𝒪",c9="ℴ",u9="Ø",f9="ø",d9="⊘",h9="Õ",p9="õ",g9="⨶",v9="⨷",m9="⊗",y9="Ö",b9="ö",w9="⌽",x9="‾",S9="⏞",_9="⎴",k9="⏜",T9="¶",C9="∥",E9="∥",A9="⫳",L9="⫽",M9="∂",N9="∂",O9="П",R9="п",P9="%",I9=".",$9="‰",D9="⊥",z9="‱",F9="𝔓",H9="𝔭",B9="Φ",W9="φ",q9="ϕ",j9="ℳ",U9="☎",V9="Π",G9="π",K9="⋔",X9="ϖ",Y9="ℏ",Z9="ℎ",J9="ℏ",Q9="⨣",e7="⊞",t7="⨢",n7="+",r7="∔",i7="⨥",o7="⩲",s7="±",l7="±",a7="⨦",c7="⨧",u7="±",f7="ℌ",d7="⨕",h7="𝕡",p7="ℙ",g7="£",v7="⪷",m7="⪻",y7="≺",b7="≼",w7="⪷",x7="≺",S7="≼",_7="≺",k7="⪯",T7="≼",C7="≾",E7="⪯",A7="⪹",L7="⪵",M7="⋨",N7="⪯",O7="⪳",R7="≾",P7="′",I7="″",$7="ℙ",D7="⪹",z7="⪵",F7="⋨",H7="∏",B7="∏",W7="⌮",q7="⌒",j7="⌓",U7="∝",V7="∝",G7="∷",K7="∝",X7="≾",Y7="⊰",Z7="𝒫",J7="𝓅",Q7="Ψ",eK="ψ",tK=" ",nK="𝔔",rK="𝔮",iK="⨌",oK="𝕢",sK="ℚ",lK="⁗",aK="𝒬",cK="𝓆",uK="ℍ",fK="⨖",dK="?",hK="≟",pK='"',gK='"',vK="⇛",mK="∽̱",yK="Ŕ",bK="ŕ",wK="√",xK="⦳",SK="⟩",_K="⟫",kK="⦒",TK="⦥",CK="⟩",EK="»",AK="⥵",LK="⇥",MK="⤠",NK="⤳",OK="→",RK="↠",PK="⇒",IK="⤞",$K="↪",DK="↬",zK="⥅",FK="⥴",HK="⤖",BK="↣",WK="↝",qK="⤚",jK="⤜",UK="∶",VK="ℚ",GK="⤍",KK="⤏",XK="⤐",YK="❳",ZK="}",JK="]",QK="⦌",eX="⦎",tX="⦐",nX="Ř",rX="ř",iX="Ŗ",oX="ŗ",sX="⌉",lX="}",aX="Р",cX="р",uX="⤷",fX="⥩",dX="”",hX="”",pX="↳",gX="ℜ",vX="ℛ",mX="ℜ",yX="ℝ",bX="ℜ",wX="▭",xX="®",SX="®",_X="∋",kX="⇋",TX="⥯",CX="⥽",EX="⌋",AX="𝔯",LX="ℜ",MX="⥤",NX="⇁",OX="⇀",RX="⥬",PX="Ρ",IX="ρ",$X="ϱ",DX="⟩",zX="⇥",FX="→",HX="→",BX="⇒",WX="⇄",qX="↣",jX="⌉",UX="⟧",VX="⥝",GX="⥕",KX="⇂",XX="⌋",YX="⇁",ZX="⇀",JX="⇄",QX="⇌",eY="⇉",tY="↝",nY="↦",rY="⊢",iY="⥛",oY="⋌",sY="⧐",lY="⊳",aY="⊵",cY="⥏",uY="⥜",fY="⥔",dY="↾",hY="⥓",pY="⇀",gY="˚",vY="≓",mY="⇄",yY="⇌",bY="‏",wY="⎱",xY="⎱",SY="⫮",_Y="⟭",kY="⇾",TY="⟧",CY="⦆",EY="𝕣",AY="ℝ",LY="⨮",MY="⨵",NY="⥰",OY=")",RY="⦔",PY="⨒",IY="⇉",$Y="⇛",DY="›",zY="𝓇",FY="ℛ",HY="↱",BY="↱",WY="]",qY="’",jY="’",UY="⋌",VY="⋊",GY="▹",KY="⊵",XY="▸",YY="⧎",ZY="⧴",JY="⥨",QY="℞",eZ="Ś",tZ="ś",nZ="‚",rZ="⪸",iZ="Š",oZ="š",sZ="⪼",lZ="≻",aZ="≽",cZ="⪰",uZ="⪴",fZ="Ş",dZ="ş",hZ="Ŝ",pZ="ŝ",gZ="⪺",vZ="⪶",mZ="⋩",yZ="⨓",bZ="≿",wZ="С",xZ="с",SZ="⊡",_Z="⋅",kZ="⩦",TZ="⤥",CZ="↘",EZ="⇘",AZ="↘",LZ="§",MZ=";",NZ="⤩",OZ="∖",RZ="∖",PZ="✶",IZ="𝔖",$Z="𝔰",DZ="⌢",zZ="♯",FZ="Щ",HZ="щ",BZ="Ш",WZ="ш",qZ="↓",jZ="←",UZ="∣",VZ="∥",GZ="→",KZ="↑",XZ="­",YZ="Σ",ZZ="σ",JZ="ς",QZ="ς",eJ="∼",tJ="⩪",nJ="≃",rJ="≃",iJ="⪞",oJ="⪠",sJ="⪝",lJ="⪟",aJ="≆",cJ="⨤",uJ="⥲",fJ="←",dJ="∘",hJ="∖",pJ="⨳",gJ="⧤",vJ="∣",mJ="⌣",yJ="⪪",bJ="⪬",wJ="⪬︀",xJ="Ь",SJ="ь",_J="⌿",kJ="⧄",TJ="/",CJ="𝕊",EJ="𝕤",AJ="♠",LJ="♠",MJ="∥",NJ="⊓",OJ="⊓︀",RJ="⊔",PJ="⊔︀",IJ="√",$J="⊏",DJ="⊑",zJ="⊏",FJ="⊑",HJ="⊐",BJ="⊒",WJ="⊐",qJ="⊒",jJ="□",UJ="□",VJ="⊓",GJ="⊏",KJ="⊑",XJ="⊐",YJ="⊒",ZJ="⊔",JJ="▪",QJ="□",eQ="▪",tQ="→",nQ="𝒮",rQ="𝓈",iQ="∖",oQ="⌣",sQ="⋆",lQ="⋆",aQ="☆",cQ="★",uQ="ϵ",fQ="ϕ",dQ="¯",hQ="⊂",pQ="⋐",gQ="⪽",vQ="⫅",mQ="⊆",yQ="⫃",bQ="⫁",wQ="⫋",xQ="⊊",SQ="⪿",_Q="⥹",kQ="⊂",TQ="⋐",CQ="⊆",EQ="⫅",AQ="⊆",LQ="⊊",MQ="⫋",NQ="⫇",OQ="⫕",RQ="⫓",PQ="⪸",IQ="≻",$Q="≽",DQ="≻",zQ="⪰",FQ="≽",HQ="≿",BQ="⪰",WQ="⪺",qQ="⪶",jQ="⋩",UQ="≿",VQ="∋",GQ="∑",KQ="∑",XQ="♪",YQ="¹",ZQ="²",JQ="³",QQ="⊃",eee="⋑",tee="⪾",nee="⫘",ree="⫆",iee="⊇",oee="⫄",see="⊃",lee="⊇",aee="⟉",cee="⫗",uee="⥻",fee="⫂",dee="⫌",hee="⊋",pee="⫀",gee="⊃",vee="⋑",mee="⊇",yee="⫆",bee="⊋",wee="⫌",xee="⫈",See="⫔",_ee="⫖",kee="⤦",Tee="↙",Cee="⇙",Eee="↙",Aee="⤪",Lee="ß",Mee=" ",Nee="⌖",Oee="Τ",Ree="τ",Pee="⎴",Iee="Ť",$ee="ť",Dee="Ţ",zee="ţ",Fee="Т",Hee="т",Bee="⃛",Wee="⌕",qee="𝔗",jee="𝔱",Uee="∴",Vee="∴",Gee="∴",Kee="Θ",Xee="θ",Yee="ϑ",Zee="ϑ",Jee="≈",Qee="∼",ete="  ",tte=" ",nte=" ",rte="≈",ite="∼",ote="Þ",ste="þ",lte="˜",ate="∼",cte="≃",ute="≅",fte="≈",dte="⨱",hte="⊠",pte="×",gte="⨰",vte="∭",mte="⤨",yte="⌶",bte="⫱",wte="⊤",xte="𝕋",Ste="𝕥",_te="⫚",kte="⤩",Tte="‴",Cte="™",Ete="™",Ate="▵",Lte="▿",Mte="◃",Nte="⊴",Ote="≜",Rte="▹",Pte="⊵",Ite="◬",$te="≜",Dte="⨺",zte="⃛",Fte="⨹",Hte="⧍",Bte="⨻",Wte="⏢",qte="𝒯",jte="𝓉",Ute="Ц",Vte="ц",Gte="Ћ",Kte="ћ",Xte="Ŧ",Yte="ŧ",Zte="≬",Jte="↞",Qte="↠",ene="Ú",tne="ú",nne="↑",rne="↟",ine="⇑",one="⥉",sne="Ў",lne="ў",ane="Ŭ",cne="ŭ",une="Û",fne="û",dne="У",hne="у",pne="⇅",gne="Ű",vne="ű",mne="⥮",yne="⥾",bne="𝔘",wne="𝔲",xne="Ù",Sne="ù",_ne="⥣",kne="↿",Tne="↾",Cne="▀",Ene="⌜",Ane="⌜",Lne="⌏",Mne="◸",Nne="Ū",One="ū",Rne="¨",Pne="_",Ine="⏟",$ne="⎵",Dne="⏝",zne="⋃",Fne="⊎",Hne="Ų",Bne="ų",Wne="𝕌",qne="𝕦",jne="⤒",Une="↑",Vne="↑",Gne="⇑",Kne="⇅",Xne="↕",Yne="↕",Zne="⇕",Jne="⥮",Qne="↿",ere="↾",tre="⊎",nre="↖",rre="↗",ire="υ",ore="ϒ",sre="ϒ",lre="Υ",are="υ",cre="↥",ure="⊥",fre="⇈",dre="⌝",hre="⌝",pre="⌎",gre="Ů",vre="ů",mre="◹",yre="𝒰",bre="𝓊",wre="⋰",xre="Ũ",Sre="ũ",_re="▵",kre="▴",Tre="⇈",Cre="Ü",Ere="ü",Are="⦧",Lre="⦜",Mre="ϵ",Nre="ϰ",Ore="∅",Rre="ϕ",Pre="ϖ",Ire="∝",$re="↕",Dre="⇕",zre="ϱ",Fre="ς",Hre="⊊︀",Bre="⫋︀",Wre="⊋︀",qre="⫌︀",jre="ϑ",Ure="⊲",Vre="⊳",Gre="⫨",Kre="⫫",Xre="⫩",Yre="В",Zre="в",Jre="⊢",Qre="⊨",eie="⊩",tie="⊫",nie="⫦",rie="⊻",iie="∨",oie="⋁",sie="≚",lie="⋮",aie="|",cie="‖",uie="|",fie="‖",die="∣",hie="|",pie="❘",gie="≀",vie=" ",mie="𝔙",yie="𝔳",bie="⊲",wie="⊂⃒",xie="⊃⃒",Sie="𝕍",_ie="𝕧",kie="∝",Tie="⊳",Cie="𝒱",Eie="𝓋",Aie="⫋︀",Lie="⊊︀",Mie="⫌︀",Nie="⊋︀",Oie="⊪",Rie="⦚",Pie="Ŵ",Iie="ŵ",$ie="⩟",Die="∧",zie="⋀",Fie="≙",Hie="℘",Bie="𝔚",Wie="𝔴",qie="𝕎",jie="𝕨",Uie="℘",Vie="≀",Gie="≀",Kie="𝒲",Xie="𝓌",Yie="⋂",Zie="◯",Jie="⋃",Qie="▽",eoe="𝔛",toe="𝔵",noe="⟷",roe="⟺",ioe="Ξ",ooe="ξ",soe="⟵",loe="⟸",aoe="⟼",coe="⋻",uoe="⨀",foe="𝕏",doe="𝕩",hoe="⨁",poe="⨂",goe="⟶",voe="⟹",moe="𝒳",yoe="𝓍",boe="⨆",woe="⨄",xoe="△",Soe="⋁",_oe="⋀",koe="Ý",Toe="ý",Coe="Я",Eoe="я",Aoe="Ŷ",Loe="ŷ",Moe="Ы",Noe="ы",Ooe="¥",Roe="𝔜",Poe="𝔶",Ioe="Ї",$oe="ї",Doe="𝕐",zoe="𝕪",Foe="𝒴",Hoe="𝓎",Boe="Ю",Woe="ю",qoe="ÿ",joe="Ÿ",Uoe="Ź",Voe="ź",Goe="Ž",Koe="ž",Xoe="З",Yoe="з",Zoe="Ż",Joe="ż",Qoe="ℨ",ese="​",tse="Ζ",nse="ζ",rse="𝔷",ise="ℨ",ose="Ж",sse="ж",lse="⇝",ase="𝕫",cse="ℤ",use="𝒵",fse="𝓏",dse="‍",hse="‌",$w={Aacute:ZA,aacute:JA,Abreve:QA,abreve:eL,ac:tL,acd:nL,acE:rL,Acirc:iL,acirc:oL,acute:sL,Acy:lL,acy:aL,AElig:cL,aelig:uL,af:fL,Afr:dL,afr:hL,Agrave:pL,agrave:gL,alefsym:vL,aleph:mL,Alpha:yL,alpha:bL,Amacr:wL,amacr:xL,amalg:SL,amp:_L,AMP:kL,andand:TL,And:CL,and:EL,andd:AL,andslope:LL,andv:ML,ang:NL,ange:OL,angle:RL,angmsdaa:PL,angmsdab:IL,angmsdac:$L,angmsdad:DL,angmsdae:zL,angmsdaf:FL,angmsdag:HL,angmsdah:BL,angmsd:WL,angrt:qL,angrtvb:jL,angrtvbd:UL,angsph:VL,angst:GL,angzarr:KL,Aogon:XL,aogon:YL,Aopf:ZL,aopf:JL,apacir:QL,ap:eM,apE:tM,ape:nM,apid:rM,apos:iM,ApplyFunction:oM,approx:sM,approxeq:lM,Aring:aM,aring:cM,Ascr:uM,ascr:fM,Assign:dM,ast:hM,asymp:pM,asympeq:gM,Atilde:vM,atilde:mM,Auml:yM,auml:bM,awconint:wM,awint:xM,backcong:SM,backepsilon:_M,backprime:kM,backsim:TM,backsimeq:CM,Backslash:EM,Barv:AM,barvee:LM,barwed:MM,Barwed:NM,barwedge:OM,bbrk:RM,bbrktbrk:PM,bcong:IM,Bcy:$M,bcy:DM,bdquo:zM,becaus:FM,because:HM,Because:BM,bemptyv:WM,bepsi:qM,bernou:jM,Bernoullis:UM,Beta:VM,beta:GM,beth:KM,between:XM,Bfr:YM,bfr:ZM,bigcap:JM,bigcirc:QM,bigcup:eN,bigodot:tN,bigoplus:nN,bigotimes:rN,bigsqcup:iN,bigstar:oN,bigtriangledown:sN,bigtriangleup:lN,biguplus:aN,bigvee:cN,bigwedge:uN,bkarow:fN,blacklozenge:dN,blacksquare:hN,blacktriangle:pN,blacktriangledown:gN,blacktriangleleft:vN,blacktriangleright:mN,blank:yN,blk12:bN,blk14:wN,blk34:xN,block:SN,bne:_N,bnequiv:kN,bNot:TN,bnot:CN,Bopf:EN,bopf:AN,bot:LN,bottom:MN,bowtie:NN,boxbox:ON,boxdl:RN,boxdL:PN,boxDl:IN,boxDL:$N,boxdr:DN,boxdR:zN,boxDr:FN,boxDR:HN,boxh:BN,boxH:WN,boxhd:qN,boxHd:jN,boxhD:UN,boxHD:VN,boxhu:GN,boxHu:KN,boxhU:XN,boxHU:YN,boxminus:ZN,boxplus:JN,boxtimes:QN,boxul:eO,boxuL:tO,boxUl:nO,boxUL:rO,boxur:iO,boxuR:oO,boxUr:sO,boxUR:lO,boxv:aO,boxV:cO,boxvh:uO,boxvH:fO,boxVh:dO,boxVH:hO,boxvl:pO,boxvL:gO,boxVl:vO,boxVL:mO,boxvr:yO,boxvR:bO,boxVr:wO,boxVR:xO,bprime:SO,breve:_O,Breve:kO,brvbar:TO,bscr:CO,Bscr:EO,bsemi:AO,bsim:LO,bsime:MO,bsolb:NO,bsol:OO,bsolhsub:RO,bull:PO,bullet:IO,bump:$O,bumpE:DO,bumpe:zO,Bumpeq:FO,bumpeq:HO,Cacute:BO,cacute:WO,capand:qO,capbrcup:jO,capcap:UO,cap:VO,Cap:GO,capcup:KO,capdot:XO,CapitalDifferentialD:YO,caps:ZO,caret:JO,caron:QO,Cayleys:eR,ccaps:tR,Ccaron:nR,ccaron:rR,Ccedil:iR,ccedil:oR,Ccirc:sR,ccirc:lR,Cconint:aR,ccups:cR,ccupssm:uR,Cdot:fR,cdot:dR,cedil:hR,Cedilla:pR,cemptyv:gR,cent:vR,centerdot:mR,CenterDot:yR,cfr:bR,Cfr:wR,CHcy:xR,chcy:SR,check:_R,checkmark:kR,Chi:TR,chi:CR,circ:ER,circeq:AR,circlearrowleft:LR,circlearrowright:MR,circledast:NR,circledcirc:OR,circleddash:RR,CircleDot:PR,circledR:IR,circledS:$R,CircleMinus:DR,CirclePlus:zR,CircleTimes:FR,cir:HR,cirE:BR,cire:WR,cirfnint:qR,cirmid:jR,cirscir:UR,ClockwiseContourIntegral:VR,CloseCurlyDoubleQuote:GR,CloseCurlyQuote:KR,clubs:XR,clubsuit:YR,colon:ZR,Colon:JR,Colone:QR,colone:e2,coloneq:t2,comma:n2,commat:r2,comp:i2,compfn:o2,complement:s2,complexes:l2,cong:a2,congdot:c2,Congruent:u2,conint:f2,Conint:d2,ContourIntegral:h2,copf:p2,Copf:g2,coprod:v2,Coproduct:m2,copy:y2,COPY:b2,copysr:w2,CounterClockwiseContourIntegral:x2,crarr:S2,cross:_2,Cross:k2,Cscr:T2,cscr:C2,csub:E2,csube:A2,csup:L2,csupe:M2,ctdot:N2,cudarrl:O2,cudarrr:R2,cuepr:P2,cuesc:I2,cularr:$2,cularrp:D2,cupbrcap:z2,cupcap:F2,CupCap:H2,cup:B2,Cup:W2,cupcup:q2,cupdot:j2,cupor:U2,cups:V2,curarr:G2,curarrm:K2,curlyeqprec:X2,curlyeqsucc:Y2,curlyvee:Z2,curlywedge:J2,curren:Q2,curvearrowleft:eP,curvearrowright:tP,cuvee:nP,cuwed:rP,cwconint:iP,cwint:oP,cylcty:sP,dagger:lP,Dagger:aP,daleth:cP,darr:uP,Darr:fP,dArr:dP,dash:hP,Dashv:pP,dashv:gP,dbkarow:vP,dblac:mP,Dcaron:yP,dcaron:bP,Dcy:wP,dcy:xP,ddagger:SP,ddarr:_P,DD:kP,dd:TP,DDotrahd:CP,ddotseq:EP,deg:AP,Del:LP,Delta:MP,delta:NP,demptyv:OP,dfisht:RP,Dfr:PP,dfr:IP,dHar:$P,dharl:DP,dharr:zP,DiacriticalAcute:FP,DiacriticalDot:HP,DiacriticalDoubleAcute:BP,DiacriticalGrave:WP,DiacriticalTilde:qP,diam:jP,diamond:UP,Diamond:VP,diamondsuit:GP,diams:KP,die:XP,DifferentialD:YP,digamma:ZP,disin:JP,div:QP,divide:eI,divideontimes:tI,divonx:nI,DJcy:rI,djcy:iI,dlcorn:oI,dlcrop:sI,dollar:lI,Dopf:aI,dopf:cI,Dot:uI,dot:fI,DotDot:dI,doteq:hI,doteqdot:pI,DotEqual:gI,dotminus:vI,dotplus:mI,dotsquare:yI,doublebarwedge:bI,DoubleContourIntegral:wI,DoubleDot:xI,DoubleDownArrow:SI,DoubleLeftArrow:_I,DoubleLeftRightArrow:kI,DoubleLeftTee:TI,DoubleLongLeftArrow:CI,DoubleLongLeftRightArrow:EI,DoubleLongRightArrow:AI,DoubleRightArrow:LI,DoubleRightTee:MI,DoubleUpArrow:NI,DoubleUpDownArrow:OI,DoubleVerticalBar:RI,DownArrowBar:PI,downarrow:II,DownArrow:$I,Downarrow:DI,DownArrowUpArrow:zI,DownBreve:FI,downdownarrows:HI,downharpoonleft:BI,downharpoonright:WI,DownLeftRightVector:qI,DownLeftTeeVector:jI,DownLeftVectorBar:UI,DownLeftVector:VI,DownRightTeeVector:GI,DownRightVectorBar:KI,DownRightVector:XI,DownTeeArrow:YI,DownTee:ZI,drbkarow:JI,drcorn:QI,drcrop:e$,Dscr:t$,dscr:n$,DScy:r$,dscy:i$,dsol:o$,Dstrok:s$,dstrok:l$,dtdot:a$,dtri:c$,dtrif:u$,duarr:f$,duhar:d$,dwangle:h$,DZcy:p$,dzcy:g$,dzigrarr:v$,Eacute:m$,eacute:y$,easter:b$,Ecaron:w$,ecaron:x$,Ecirc:S$,ecirc:_$,ecir:k$,ecolon:T$,Ecy:C$,ecy:E$,eDDot:A$,Edot:L$,edot:M$,eDot:N$,ee:O$,efDot:R$,Efr:P$,efr:I$,eg:$$,Egrave:D$,egrave:z$,egs:F$,egsdot:H$,el:B$,Element:W$,elinters:q$,ell:j$,els:U$,elsdot:V$,Emacr:G$,emacr:K$,empty:X$,emptyset:Y$,EmptySmallSquare:Z$,emptyv:J$,EmptyVerySmallSquare:Q$,emsp13:eD,emsp14:tD,emsp:nD,ENG:rD,eng:iD,ensp:oD,Eogon:sD,eogon:lD,Eopf:aD,eopf:cD,epar:uD,eparsl:fD,eplus:dD,epsi:hD,Epsilon:pD,epsilon:gD,epsiv:vD,eqcirc:mD,eqcolon:yD,eqsim:bD,eqslantgtr:wD,eqslantless:xD,Equal:SD,equals:_D,EqualTilde:kD,equest:TD,Equilibrium:CD,equiv:ED,equivDD:AD,eqvparsl:LD,erarr:MD,erDot:ND,escr:OD,Escr:RD,esdot:PD,Esim:ID,esim:$D,Eta:DD,eta:zD,ETH:FD,eth:HD,Euml:BD,euml:WD,euro:qD,excl:jD,exist:UD,Exists:VD,expectation:GD,exponentiale:KD,ExponentialE:XD,fallingdotseq:YD,Fcy:ZD,fcy:JD,female:QD,ffilig:ez,fflig:tz,ffllig:nz,Ffr:rz,ffr:iz,filig:oz,FilledSmallSquare:sz,FilledVerySmallSquare:lz,fjlig:az,flat:cz,fllig:uz,fltns:fz,fnof:dz,Fopf:hz,fopf:pz,forall:gz,ForAll:vz,fork:mz,forkv:yz,Fouriertrf:bz,fpartint:wz,frac12:xz,frac13:Sz,frac14:_z,frac15:kz,frac16:Tz,frac18:Cz,frac23:Ez,frac25:Az,frac34:Lz,frac35:Mz,frac38:Nz,frac45:Oz,frac56:Rz,frac58:Pz,frac78:Iz,frasl:$z,frown:Dz,fscr:zz,Fscr:Fz,gacute:Hz,Gamma:Bz,gamma:Wz,Gammad:qz,gammad:jz,gap:Uz,Gbreve:Vz,gbreve:Gz,Gcedil:Kz,Gcirc:Xz,gcirc:Yz,Gcy:Zz,gcy:Jz,Gdot:Qz,gdot:eF,ge:tF,gE:nF,gEl:rF,gel:iF,geq:oF,geqq:sF,geqslant:lF,gescc:aF,ges:cF,gesdot:uF,gesdoto:fF,gesdotol:dF,gesl:hF,gesles:pF,Gfr:gF,gfr:vF,gg:mF,Gg:yF,ggg:bF,gimel:wF,GJcy:xF,gjcy:SF,gla:_F,gl:kF,glE:TF,glj:CF,gnap:EF,gnapprox:AF,gne:LF,gnE:MF,gneq:NF,gneqq:OF,gnsim:RF,Gopf:PF,gopf:IF,grave:$F,GreaterEqual:DF,GreaterEqualLess:zF,GreaterFullEqual:FF,GreaterGreater:HF,GreaterLess:BF,GreaterSlantEqual:WF,GreaterTilde:qF,Gscr:jF,gscr:UF,gsim:VF,gsime:GF,gsiml:KF,gtcc:XF,gtcir:YF,gt:ZF,GT:JF,Gt:QF,gtdot:eH,gtlPar:tH,gtquest:nH,gtrapprox:rH,gtrarr:iH,gtrdot:oH,gtreqless:sH,gtreqqless:lH,gtrless:aH,gtrsim:cH,gvertneqq:uH,gvnE:fH,Hacek:dH,hairsp:hH,half:pH,hamilt:gH,HARDcy:vH,hardcy:mH,harrcir:yH,harr:bH,hArr:wH,harrw:xH,Hat:SH,hbar:_H,Hcirc:kH,hcirc:TH,hearts:CH,heartsuit:EH,hellip:AH,hercon:LH,hfr:MH,Hfr:NH,HilbertSpace:OH,hksearow:RH,hkswarow:PH,hoarr:IH,homtht:$H,hookleftarrow:DH,hookrightarrow:zH,hopf:FH,Hopf:HH,horbar:BH,HorizontalLine:WH,hscr:qH,Hscr:jH,hslash:UH,Hstrok:VH,hstrok:GH,HumpDownHump:KH,HumpEqual:XH,hybull:YH,hyphen:ZH,Iacute:JH,iacute:QH,ic:e3,Icirc:t3,icirc:n3,Icy:r3,icy:i3,Idot:o3,IEcy:s3,iecy:l3,iexcl:a3,iff:c3,ifr:u3,Ifr:f3,Igrave:d3,igrave:h3,ii:p3,iiiint:g3,iiint:v3,iinfin:m3,iiota:y3,IJlig:b3,ijlig:w3,Imacr:x3,imacr:S3,image:_3,ImaginaryI:k3,imagline:T3,imagpart:C3,imath:E3,Im:A3,imof:L3,imped:M3,Implies:N3,incare:O3,in:"∈",infin:R3,infintie:P3,inodot:I3,intcal:$3,int:D3,Int:z3,integers:F3,Integral:H3,intercal:B3,Intersection:W3,intlarhk:q3,intprod:j3,InvisibleComma:U3,InvisibleTimes:V3,IOcy:G3,iocy:K3,Iogon:X3,iogon:Y3,Iopf:Z3,iopf:J3,Iota:Q3,iota:eB,iprod:tB,iquest:nB,iscr:rB,Iscr:iB,isin:oB,isindot:sB,isinE:lB,isins:aB,isinsv:cB,isinv:uB,it:fB,Itilde:dB,itilde:hB,Iukcy:pB,iukcy:gB,Iuml:vB,iuml:mB,Jcirc:yB,jcirc:bB,Jcy:wB,jcy:xB,Jfr:SB,jfr:_B,jmath:kB,Jopf:TB,jopf:CB,Jscr:EB,jscr:AB,Jsercy:LB,jsercy:MB,Jukcy:NB,jukcy:OB,Kappa:RB,kappa:PB,kappav:IB,Kcedil:$B,kcedil:DB,Kcy:zB,kcy:FB,Kfr:HB,kfr:BB,kgreen:WB,KHcy:qB,khcy:jB,KJcy:UB,kjcy:VB,Kopf:GB,kopf:KB,Kscr:XB,kscr:YB,lAarr:ZB,Lacute:JB,lacute:QB,laemptyv:e5,lagran:t5,Lambda:n5,lambda:r5,lang:i5,Lang:o5,langd:s5,langle:l5,lap:a5,Laplacetrf:c5,laquo:u5,larrb:f5,larrbfs:d5,larr:h5,Larr:p5,lArr:g5,larrfs:v5,larrhk:m5,larrlp:y5,larrpl:b5,larrsim:w5,larrtl:x5,latail:S5,lAtail:_5,lat:k5,late:T5,lates:C5,lbarr:E5,lBarr:A5,lbbrk:L5,lbrace:M5,lbrack:N5,lbrke:O5,lbrksld:R5,lbrkslu:P5,Lcaron:I5,lcaron:$5,Lcedil:D5,lcedil:z5,lceil:F5,lcub:H5,Lcy:B5,lcy:W5,ldca:q5,ldquo:j5,ldquor:U5,ldrdhar:V5,ldrushar:G5,ldsh:K5,le:X5,lE:Y5,LeftAngleBracket:Z5,LeftArrowBar:J5,leftarrow:Q5,LeftArrow:e8,Leftarrow:t8,LeftArrowRightArrow:n8,leftarrowtail:r8,LeftCeiling:i8,LeftDoubleBracket:o8,LeftDownTeeVector:s8,LeftDownVectorBar:l8,LeftDownVector:a8,LeftFloor:c8,leftharpoondown:u8,leftharpoonup:f8,leftleftarrows:d8,leftrightarrow:h8,LeftRightArrow:p8,Leftrightarrow:g8,leftrightarrows:v8,leftrightharpoons:m8,leftrightsquigarrow:y8,LeftRightVector:b8,LeftTeeArrow:w8,LeftTee:x8,LeftTeeVector:S8,leftthreetimes:_8,LeftTriangleBar:k8,LeftTriangle:T8,LeftTriangleEqual:C8,LeftUpDownVector:E8,LeftUpTeeVector:A8,LeftUpVectorBar:L8,LeftUpVector:M8,LeftVectorBar:N8,LeftVector:O8,lEg:R8,leg:P8,leq:I8,leqq:$8,leqslant:D8,lescc:z8,les:F8,lesdot:H8,lesdoto:B8,lesdotor:W8,lesg:q8,lesges:j8,lessapprox:U8,lessdot:V8,lesseqgtr:G8,lesseqqgtr:K8,LessEqualGreater:X8,LessFullEqual:Y8,LessGreater:Z8,lessgtr:J8,LessLess:Q8,lesssim:eW,LessSlantEqual:tW,LessTilde:nW,lfisht:rW,lfloor:iW,Lfr:oW,lfr:sW,lg:lW,lgE:aW,lHar:cW,lhard:uW,lharu:fW,lharul:dW,lhblk:hW,LJcy:pW,ljcy:gW,llarr:vW,ll:mW,Ll:yW,llcorner:bW,Lleftarrow:wW,llhard:xW,lltri:SW,Lmidot:_W,lmidot:kW,lmoustache:TW,lmoust:CW,lnap:EW,lnapprox:AW,lne:LW,lnE:MW,lneq:NW,lneqq:OW,lnsim:RW,loang:PW,loarr:IW,lobrk:$W,longleftarrow:DW,LongLeftArrow:zW,Longleftarrow:FW,longleftrightarrow:HW,LongLeftRightArrow:BW,Longleftrightarrow:WW,longmapsto:qW,longrightarrow:jW,LongRightArrow:UW,Longrightarrow:VW,looparrowleft:GW,looparrowright:KW,lopar:XW,Lopf:YW,lopf:ZW,loplus:JW,lotimes:QW,lowast:e4,lowbar:t4,LowerLeftArrow:n4,LowerRightArrow:r4,loz:i4,lozenge:o4,lozf:s4,lpar:l4,lparlt:a4,lrarr:c4,lrcorner:u4,lrhar:f4,lrhard:d4,lrm:h4,lrtri:p4,lsaquo:g4,lscr:v4,Lscr:m4,lsh:y4,Lsh:b4,lsim:w4,lsime:x4,lsimg:S4,lsqb:_4,lsquo:k4,lsquor:T4,Lstrok:C4,lstrok:E4,ltcc:A4,ltcir:L4,lt:M4,LT:N4,Lt:O4,ltdot:R4,lthree:P4,ltimes:I4,ltlarr:$4,ltquest:D4,ltri:z4,ltrie:F4,ltrif:H4,ltrPar:B4,lurdshar:W4,luruhar:q4,lvertneqq:j4,lvnE:U4,macr:V4,male:G4,malt:K4,maltese:X4,Map:"⤅",map:Y4,mapsto:Z4,mapstodown:J4,mapstoleft:Q4,mapstoup:eq,marker:tq,mcomma:nq,Mcy:rq,mcy:iq,mdash:oq,mDDot:sq,measuredangle:lq,MediumSpace:aq,Mellintrf:cq,Mfr:uq,mfr:fq,mho:dq,micro:hq,midast:pq,midcir:gq,mid:vq,middot:mq,minusb:yq,minus:bq,minusd:wq,minusdu:xq,MinusPlus:Sq,mlcp:_q,mldr:kq,mnplus:Tq,models:Cq,Mopf:Eq,mopf:Aq,mp:Lq,mscr:Mq,Mscr:Nq,mstpos:Oq,Mu:Rq,mu:Pq,multimap:Iq,mumap:$q,nabla:Dq,Nacute:zq,nacute:Fq,nang:Hq,nap:Bq,napE:Wq,napid:qq,napos:jq,napprox:Uq,natural:Vq,naturals:Gq,natur:Kq,nbsp:Xq,nbump:Yq,nbumpe:Zq,ncap:Jq,Ncaron:Qq,ncaron:ej,Ncedil:tj,ncedil:nj,ncong:rj,ncongdot:ij,ncup:oj,Ncy:sj,ncy:lj,ndash:aj,nearhk:cj,nearr:uj,neArr:fj,nearrow:dj,ne:hj,nedot:pj,NegativeMediumSpace:gj,NegativeThickSpace:vj,NegativeThinSpace:mj,NegativeVeryThinSpace:yj,nequiv:bj,nesear:wj,nesim:xj,NestedGreaterGreater:Sj,NestedLessLess:_j,NewLine:kj,nexist:Tj,nexists:Cj,Nfr:Ej,nfr:Aj,ngE:Lj,nge:Mj,ngeq:Nj,ngeqq:Oj,ngeqslant:Rj,nges:Pj,nGg:Ij,ngsim:$j,nGt:Dj,ngt:zj,ngtr:Fj,nGtv:Hj,nharr:Bj,nhArr:Wj,nhpar:qj,ni:jj,nis:Uj,nisd:Vj,niv:Gj,NJcy:Kj,njcy:Xj,nlarr:Yj,nlArr:Zj,nldr:Jj,nlE:Qj,nle:eU,nleftarrow:tU,nLeftarrow:nU,nleftrightarrow:rU,nLeftrightarrow:iU,nleq:oU,nleqq:sU,nleqslant:lU,nles:aU,nless:cU,nLl:uU,nlsim:fU,nLt:dU,nlt:hU,nltri:pU,nltrie:gU,nLtv:vU,nmid:mU,NoBreak:yU,NonBreakingSpace:bU,nopf:wU,Nopf:xU,Not:SU,not:_U,NotCongruent:kU,NotCupCap:TU,NotDoubleVerticalBar:CU,NotElement:EU,NotEqual:AU,NotEqualTilde:LU,NotExists:MU,NotGreater:NU,NotGreaterEqual:OU,NotGreaterFullEqual:RU,NotGreaterGreater:PU,NotGreaterLess:IU,NotGreaterSlantEqual:$U,NotGreaterTilde:DU,NotHumpDownHump:zU,NotHumpEqual:FU,notin:HU,notindot:BU,notinE:WU,notinva:qU,notinvb:jU,notinvc:UU,NotLeftTriangleBar:VU,NotLeftTriangle:GU,NotLeftTriangleEqual:KU,NotLess:XU,NotLessEqual:YU,NotLessGreater:ZU,NotLessLess:JU,NotLessSlantEqual:QU,NotLessTilde:e6,NotNestedGreaterGreater:t6,NotNestedLessLess:n6,notni:r6,notniva:i6,notnivb:o6,notnivc:s6,NotPrecedes:l6,NotPrecedesEqual:a6,NotPrecedesSlantEqual:c6,NotReverseElement:u6,NotRightTriangleBar:f6,NotRightTriangle:d6,NotRightTriangleEqual:h6,NotSquareSubset:p6,NotSquareSubsetEqual:g6,NotSquareSuperset:v6,NotSquareSupersetEqual:m6,NotSubset:y6,NotSubsetEqual:b6,NotSucceeds:w6,NotSucceedsEqual:x6,NotSucceedsSlantEqual:S6,NotSucceedsTilde:_6,NotSuperset:k6,NotSupersetEqual:T6,NotTilde:C6,NotTildeEqual:E6,NotTildeFullEqual:A6,NotTildeTilde:L6,NotVerticalBar:M6,nparallel:N6,npar:O6,nparsl:R6,npart:P6,npolint:I6,npr:$6,nprcue:D6,nprec:z6,npreceq:F6,npre:H6,nrarrc:B6,nrarr:W6,nrArr:q6,nrarrw:j6,nrightarrow:U6,nRightarrow:V6,nrtri:G6,nrtrie:K6,nsc:X6,nsccue:Y6,nsce:Z6,Nscr:J6,nscr:Q6,nshortmid:eV,nshortparallel:tV,nsim:nV,nsime:rV,nsimeq:iV,nsmid:oV,nspar:sV,nsqsube:lV,nsqsupe:aV,nsub:cV,nsubE:uV,nsube:fV,nsubset:dV,nsubseteq:hV,nsubseteqq:pV,nsucc:gV,nsucceq:vV,nsup:mV,nsupE:yV,nsupe:bV,nsupset:wV,nsupseteq:xV,nsupseteqq:SV,ntgl:_V,Ntilde:kV,ntilde:TV,ntlg:CV,ntriangleleft:EV,ntrianglelefteq:AV,ntriangleright:LV,ntrianglerighteq:MV,Nu:NV,nu:OV,num:RV,numero:PV,numsp:IV,nvap:$V,nvdash:DV,nvDash:zV,nVdash:FV,nVDash:HV,nvge:BV,nvgt:WV,nvHarr:qV,nvinfin:jV,nvlArr:UV,nvle:VV,nvlt:GV,nvltrie:KV,nvrArr:XV,nvrtrie:YV,nvsim:ZV,nwarhk:JV,nwarr:QV,nwArr:eG,nwarrow:tG,nwnear:nG,Oacute:rG,oacute:iG,oast:oG,Ocirc:sG,ocirc:lG,ocir:aG,Ocy:cG,ocy:uG,odash:fG,Odblac:dG,odblac:hG,odiv:pG,odot:gG,odsold:vG,OElig:mG,oelig:yG,ofcir:bG,Ofr:wG,ofr:xG,ogon:SG,Ograve:_G,ograve:kG,ogt:TG,ohbar:CG,ohm:EG,oint:AG,olarr:LG,olcir:MG,olcross:NG,oline:OG,olt:RG,Omacr:PG,omacr:IG,Omega:$G,omega:DG,Omicron:zG,omicron:FG,omid:HG,ominus:BG,Oopf:WG,oopf:qG,opar:jG,OpenCurlyDoubleQuote:UG,OpenCurlyQuote:VG,operp:GG,oplus:KG,orarr:XG,Or:YG,or:ZG,ord:JG,order:QG,orderof:e9,ordf:t9,ordm:n9,origof:r9,oror:i9,orslope:o9,orv:s9,oS:l9,Oscr:a9,oscr:c9,Oslash:u9,oslash:f9,osol:d9,Otilde:h9,otilde:p9,otimesas:g9,Otimes:v9,otimes:m9,Ouml:y9,ouml:b9,ovbar:w9,OverBar:x9,OverBrace:S9,OverBracket:_9,OverParenthesis:k9,para:T9,parallel:C9,par:E9,parsim:A9,parsl:L9,part:M9,PartialD:N9,Pcy:O9,pcy:R9,percnt:P9,period:I9,permil:$9,perp:D9,pertenk:z9,Pfr:F9,pfr:H9,Phi:B9,phi:W9,phiv:q9,phmmat:j9,phone:U9,Pi:V9,pi:G9,pitchfork:K9,piv:X9,planck:Y9,planckh:Z9,plankv:J9,plusacir:Q9,plusb:e7,pluscir:t7,plus:n7,plusdo:r7,plusdu:i7,pluse:o7,PlusMinus:s7,plusmn:l7,plussim:a7,plustwo:c7,pm:u7,Poincareplane:f7,pointint:d7,popf:h7,Popf:p7,pound:g7,prap:v7,Pr:m7,pr:y7,prcue:b7,precapprox:w7,prec:x7,preccurlyeq:S7,Precedes:_7,PrecedesEqual:k7,PrecedesSlantEqual:T7,PrecedesTilde:C7,preceq:E7,precnapprox:A7,precneqq:L7,precnsim:M7,pre:N7,prE:O7,precsim:R7,prime:P7,Prime:I7,primes:$7,prnap:D7,prnE:z7,prnsim:F7,prod:H7,Product:B7,profalar:W7,profline:q7,profsurf:j7,prop:U7,Proportional:V7,Proportion:G7,propto:K7,prsim:X7,prurel:Y7,Pscr:Z7,pscr:J7,Psi:Q7,psi:eK,puncsp:tK,Qfr:nK,qfr:rK,qint:iK,qopf:oK,Qopf:sK,qprime:lK,Qscr:aK,qscr:cK,quaternions:uK,quatint:fK,quest:dK,questeq:hK,quot:pK,QUOT:gK,rAarr:vK,race:mK,Racute:yK,racute:bK,radic:wK,raemptyv:xK,rang:SK,Rang:_K,rangd:kK,range:TK,rangle:CK,raquo:EK,rarrap:AK,rarrb:LK,rarrbfs:MK,rarrc:NK,rarr:OK,Rarr:RK,rArr:PK,rarrfs:IK,rarrhk:$K,rarrlp:DK,rarrpl:zK,rarrsim:FK,Rarrtl:HK,rarrtl:BK,rarrw:WK,ratail:qK,rAtail:jK,ratio:UK,rationals:VK,rbarr:GK,rBarr:KK,RBarr:XK,rbbrk:YK,rbrace:ZK,rbrack:JK,rbrke:QK,rbrksld:eX,rbrkslu:tX,Rcaron:nX,rcaron:rX,Rcedil:iX,rcedil:oX,rceil:sX,rcub:lX,Rcy:aX,rcy:cX,rdca:uX,rdldhar:fX,rdquo:dX,rdquor:hX,rdsh:pX,real:gX,realine:vX,realpart:mX,reals:yX,Re:bX,rect:wX,reg:xX,REG:SX,ReverseElement:_X,ReverseEquilibrium:kX,ReverseUpEquilibrium:TX,rfisht:CX,rfloor:EX,rfr:AX,Rfr:LX,rHar:MX,rhard:NX,rharu:OX,rharul:RX,Rho:PX,rho:IX,rhov:$X,RightAngleBracket:DX,RightArrowBar:zX,rightarrow:FX,RightArrow:HX,Rightarrow:BX,RightArrowLeftArrow:WX,rightarrowtail:qX,RightCeiling:jX,RightDoubleBracket:UX,RightDownTeeVector:VX,RightDownVectorBar:GX,RightDownVector:KX,RightFloor:XX,rightharpoondown:YX,rightharpoonup:ZX,rightleftarrows:JX,rightleftharpoons:QX,rightrightarrows:eY,rightsquigarrow:tY,RightTeeArrow:nY,RightTee:rY,RightTeeVector:iY,rightthreetimes:oY,RightTriangleBar:sY,RightTriangle:lY,RightTriangleEqual:aY,RightUpDownVector:cY,RightUpTeeVector:uY,RightUpVectorBar:fY,RightUpVector:dY,RightVectorBar:hY,RightVector:pY,ring:gY,risingdotseq:vY,rlarr:mY,rlhar:yY,rlm:bY,rmoustache:wY,rmoust:xY,rnmid:SY,roang:_Y,roarr:kY,robrk:TY,ropar:CY,ropf:EY,Ropf:AY,roplus:LY,rotimes:MY,RoundImplies:NY,rpar:OY,rpargt:RY,rppolint:PY,rrarr:IY,Rrightarrow:$Y,rsaquo:DY,rscr:zY,Rscr:FY,rsh:HY,Rsh:BY,rsqb:WY,rsquo:qY,rsquor:jY,rthree:UY,rtimes:VY,rtri:GY,rtrie:KY,rtrif:XY,rtriltri:YY,RuleDelayed:ZY,ruluhar:JY,rx:QY,Sacute:eZ,sacute:tZ,sbquo:nZ,scap:rZ,Scaron:iZ,scaron:oZ,Sc:sZ,sc:lZ,sccue:aZ,sce:cZ,scE:uZ,Scedil:fZ,scedil:dZ,Scirc:hZ,scirc:pZ,scnap:gZ,scnE:vZ,scnsim:mZ,scpolint:yZ,scsim:bZ,Scy:wZ,scy:xZ,sdotb:SZ,sdot:_Z,sdote:kZ,searhk:TZ,searr:CZ,seArr:EZ,searrow:AZ,sect:LZ,semi:MZ,seswar:NZ,setminus:OZ,setmn:RZ,sext:PZ,Sfr:IZ,sfr:$Z,sfrown:DZ,sharp:zZ,SHCHcy:FZ,shchcy:HZ,SHcy:BZ,shcy:WZ,ShortDownArrow:qZ,ShortLeftArrow:jZ,shortmid:UZ,shortparallel:VZ,ShortRightArrow:GZ,ShortUpArrow:KZ,shy:XZ,Sigma:YZ,sigma:ZZ,sigmaf:JZ,sigmav:QZ,sim:eJ,simdot:tJ,sime:nJ,simeq:rJ,simg:iJ,simgE:oJ,siml:sJ,simlE:lJ,simne:aJ,simplus:cJ,simrarr:uJ,slarr:fJ,SmallCircle:dJ,smallsetminus:hJ,smashp:pJ,smeparsl:gJ,smid:vJ,smile:mJ,smt:yJ,smte:bJ,smtes:wJ,SOFTcy:xJ,softcy:SJ,solbar:_J,solb:kJ,sol:TJ,Sopf:CJ,sopf:EJ,spades:AJ,spadesuit:LJ,spar:MJ,sqcap:NJ,sqcaps:OJ,sqcup:RJ,sqcups:PJ,Sqrt:IJ,sqsub:$J,sqsube:DJ,sqsubset:zJ,sqsubseteq:FJ,sqsup:HJ,sqsupe:BJ,sqsupset:WJ,sqsupseteq:qJ,square:jJ,Square:UJ,SquareIntersection:VJ,SquareSubset:GJ,SquareSubsetEqual:KJ,SquareSuperset:XJ,SquareSupersetEqual:YJ,SquareUnion:ZJ,squarf:JJ,squ:QJ,squf:eQ,srarr:tQ,Sscr:nQ,sscr:rQ,ssetmn:iQ,ssmile:oQ,sstarf:sQ,Star:lQ,star:aQ,starf:cQ,straightepsilon:uQ,straightphi:fQ,strns:dQ,sub:hQ,Sub:pQ,subdot:gQ,subE:vQ,sube:mQ,subedot:yQ,submult:bQ,subnE:wQ,subne:xQ,subplus:SQ,subrarr:_Q,subset:kQ,Subset:TQ,subseteq:CQ,subseteqq:EQ,SubsetEqual:AQ,subsetneq:LQ,subsetneqq:MQ,subsim:NQ,subsub:OQ,subsup:RQ,succapprox:PQ,succ:IQ,succcurlyeq:$Q,Succeeds:DQ,SucceedsEqual:zQ,SucceedsSlantEqual:FQ,SucceedsTilde:HQ,succeq:BQ,succnapprox:WQ,succneqq:qQ,succnsim:jQ,succsim:UQ,SuchThat:VQ,sum:GQ,Sum:KQ,sung:XQ,sup1:YQ,sup2:ZQ,sup3:JQ,sup:QQ,Sup:eee,supdot:tee,supdsub:nee,supE:ree,supe:iee,supedot:oee,Superset:see,SupersetEqual:lee,suphsol:aee,suphsub:cee,suplarr:uee,supmult:fee,supnE:dee,supne:hee,supplus:pee,supset:gee,Supset:vee,supseteq:mee,supseteqq:yee,supsetneq:bee,supsetneqq:wee,supsim:xee,supsub:See,supsup:_ee,swarhk:kee,swarr:Tee,swArr:Cee,swarrow:Eee,swnwar:Aee,szlig:Lee,Tab:Mee,target:Nee,Tau:Oee,tau:Ree,tbrk:Pee,Tcaron:Iee,tcaron:$ee,Tcedil:Dee,tcedil:zee,Tcy:Fee,tcy:Hee,tdot:Bee,telrec:Wee,Tfr:qee,tfr:jee,there4:Uee,therefore:Vee,Therefore:Gee,Theta:Kee,theta:Xee,thetasym:Yee,thetav:Zee,thickapprox:Jee,thicksim:Qee,ThickSpace:ete,ThinSpace:tte,thinsp:nte,thkap:rte,thksim:ite,THORN:ote,thorn:ste,tilde:lte,Tilde:ate,TildeEqual:cte,TildeFullEqual:ute,TildeTilde:fte,timesbar:dte,timesb:hte,times:pte,timesd:gte,tint:vte,toea:mte,topbot:yte,topcir:bte,top:wte,Topf:xte,topf:Ste,topfork:_te,tosa:kte,tprime:Tte,trade:Cte,TRADE:Ete,triangle:Ate,triangledown:Lte,triangleleft:Mte,trianglelefteq:Nte,triangleq:Ote,triangleright:Rte,trianglerighteq:Pte,tridot:Ite,trie:$te,triminus:Dte,TripleDot:zte,triplus:Fte,trisb:Hte,tritime:Bte,trpezium:Wte,Tscr:qte,tscr:jte,TScy:Ute,tscy:Vte,TSHcy:Gte,tshcy:Kte,Tstrok:Xte,tstrok:Yte,twixt:Zte,twoheadleftarrow:Jte,twoheadrightarrow:Qte,Uacute:ene,uacute:tne,uarr:nne,Uarr:rne,uArr:ine,Uarrocir:one,Ubrcy:sne,ubrcy:lne,Ubreve:ane,ubreve:cne,Ucirc:une,ucirc:fne,Ucy:dne,ucy:hne,udarr:pne,Udblac:gne,udblac:vne,udhar:mne,ufisht:yne,Ufr:bne,ufr:wne,Ugrave:xne,ugrave:Sne,uHar:_ne,uharl:kne,uharr:Tne,uhblk:Cne,ulcorn:Ene,ulcorner:Ane,ulcrop:Lne,ultri:Mne,Umacr:Nne,umacr:One,uml:Rne,UnderBar:Pne,UnderBrace:Ine,UnderBracket:$ne,UnderParenthesis:Dne,Union:zne,UnionPlus:Fne,Uogon:Hne,uogon:Bne,Uopf:Wne,uopf:qne,UpArrowBar:jne,uparrow:Une,UpArrow:Vne,Uparrow:Gne,UpArrowDownArrow:Kne,updownarrow:Xne,UpDownArrow:Yne,Updownarrow:Zne,UpEquilibrium:Jne,upharpoonleft:Qne,upharpoonright:ere,uplus:tre,UpperLeftArrow:nre,UpperRightArrow:rre,upsi:ire,Upsi:ore,upsih:sre,Upsilon:lre,upsilon:are,UpTeeArrow:cre,UpTee:ure,upuparrows:fre,urcorn:dre,urcorner:hre,urcrop:pre,Uring:gre,uring:vre,urtri:mre,Uscr:yre,uscr:bre,utdot:wre,Utilde:xre,utilde:Sre,utri:_re,utrif:kre,uuarr:Tre,Uuml:Cre,uuml:Ere,uwangle:Are,vangrt:Lre,varepsilon:Mre,varkappa:Nre,varnothing:Ore,varphi:Rre,varpi:Pre,varpropto:Ire,varr:$re,vArr:Dre,varrho:zre,varsigma:Fre,varsubsetneq:Hre,varsubsetneqq:Bre,varsupsetneq:Wre,varsupsetneqq:qre,vartheta:jre,vartriangleleft:Ure,vartriangleright:Vre,vBar:Gre,Vbar:Kre,vBarv:Xre,Vcy:Yre,vcy:Zre,vdash:Jre,vDash:Qre,Vdash:eie,VDash:tie,Vdashl:nie,veebar:rie,vee:iie,Vee:oie,veeeq:sie,vellip:lie,verbar:aie,Verbar:cie,vert:uie,Vert:fie,VerticalBar:die,VerticalLine:hie,VerticalSeparator:pie,VerticalTilde:gie,VeryThinSpace:vie,Vfr:mie,vfr:yie,vltri:bie,vnsub:wie,vnsup:xie,Vopf:Sie,vopf:_ie,vprop:kie,vrtri:Tie,Vscr:Cie,vscr:Eie,vsubnE:Aie,vsubne:Lie,vsupnE:Mie,vsupne:Nie,Vvdash:Oie,vzigzag:Rie,Wcirc:Pie,wcirc:Iie,wedbar:$ie,wedge:Die,Wedge:zie,wedgeq:Fie,weierp:Hie,Wfr:Bie,wfr:Wie,Wopf:qie,wopf:jie,wp:Uie,wr:Vie,wreath:Gie,Wscr:Kie,wscr:Xie,xcap:Yie,xcirc:Zie,xcup:Jie,xdtri:Qie,Xfr:eoe,xfr:toe,xharr:noe,xhArr:roe,Xi:ioe,xi:ooe,xlarr:soe,xlArr:loe,xmap:aoe,xnis:coe,xodot:uoe,Xopf:foe,xopf:doe,xoplus:hoe,xotime:poe,xrarr:goe,xrArr:voe,Xscr:moe,xscr:yoe,xsqcup:boe,xuplus:woe,xutri:xoe,xvee:Soe,xwedge:_oe,Yacute:koe,yacute:Toe,YAcy:Coe,yacy:Eoe,Ycirc:Aoe,ycirc:Loe,Ycy:Moe,ycy:Noe,yen:Ooe,Yfr:Roe,yfr:Poe,YIcy:Ioe,yicy:$oe,Yopf:Doe,yopf:zoe,Yscr:Foe,yscr:Hoe,YUcy:Boe,yucy:Woe,yuml:qoe,Yuml:joe,Zacute:Uoe,zacute:Voe,Zcaron:Goe,zcaron:Koe,Zcy:Xoe,zcy:Yoe,Zdot:Zoe,zdot:Joe,zeetrf:Qoe,ZeroWidthSpace:ese,Zeta:tse,zeta:nse,zfr:rse,Zfr:ise,ZHcy:ose,zhcy:sse,zigrarr:lse,zopf:ase,Zopf:cse,Zscr:use,zscr:fse,zwj:dse,zwnj:hse},pse="Á",gse="á",vse="Â",mse="â",yse="´",bse="Æ",wse="æ",xse="À",Sse="à",_se="&",kse="&",Tse="Å",Cse="å",Ese="Ã",Ase="ã",Lse="Ä",Mse="ä",Nse="¦",Ose="Ç",Rse="ç",Pse="¸",Ise="¢",$se="©",Dse="©",zse="¤",Fse="°",Hse="÷",Bse="É",Wse="é",qse="Ê",jse="ê",Use="È",Vse="è",Gse="Ð",Kse="ð",Xse="Ë",Yse="ë",Zse="½",Jse="¼",Qse="¾",ele=">",tle=">",nle="Í",rle="í",ile="Î",ole="î",sle="¡",lle="Ì",ale="ì",cle="¿",ule="Ï",fle="ï",dle="«",hle="<",ple="<",gle="¯",vle="µ",mle="·",yle=" ",ble="¬",wle="Ñ",xle="ñ",Sle="Ó",_le="ó",kle="Ô",Tle="ô",Cle="Ò",Ele="ò",Ale="ª",Lle="º",Mle="Ø",Nle="ø",Ole="Õ",Rle="õ",Ple="Ö",Ile="ö",$le="¶",Dle="±",zle="£",Fle='"',Hle='"',Ble="»",Wle="®",qle="®",jle="§",Ule="­",Vle="¹",Gle="²",Kle="³",Xle="ß",Yle="Þ",Zle="þ",Jle="×",Qle="Ú",eae="ú",tae="Û",nae="û",rae="Ù",iae="ù",oae="¨",sae="Ü",lae="ü",aae="Ý",cae="ý",uae="¥",fae="ÿ",dae={Aacute:pse,aacute:gse,Acirc:vse,acirc:mse,acute:yse,AElig:bse,aelig:wse,Agrave:xse,agrave:Sse,amp:_se,AMP:kse,Aring:Tse,aring:Cse,Atilde:Ese,atilde:Ase,Auml:Lse,auml:Mse,brvbar:Nse,Ccedil:Ose,ccedil:Rse,cedil:Pse,cent:Ise,copy:$se,COPY:Dse,curren:zse,deg:Fse,divide:Hse,Eacute:Bse,eacute:Wse,Ecirc:qse,ecirc:jse,Egrave:Use,egrave:Vse,ETH:Gse,eth:Kse,Euml:Xse,euml:Yse,frac12:Zse,frac14:Jse,frac34:Qse,gt:ele,GT:tle,Iacute:nle,iacute:rle,Icirc:ile,icirc:ole,iexcl:sle,Igrave:lle,igrave:ale,iquest:cle,Iuml:ule,iuml:fle,laquo:dle,lt:hle,LT:ple,macr:gle,micro:vle,middot:mle,nbsp:yle,not:ble,Ntilde:wle,ntilde:xle,Oacute:Sle,oacute:_le,Ocirc:kle,ocirc:Tle,Ograve:Cle,ograve:Ele,ordf:Ale,ordm:Lle,Oslash:Mle,oslash:Nle,Otilde:Ole,otilde:Rle,Ouml:Ple,ouml:Ile,para:$le,plusmn:Dle,pound:zle,quot:Fle,QUOT:Hle,raquo:Ble,reg:Wle,REG:qle,sect:jle,shy:Ule,sup1:Vle,sup2:Gle,sup3:Kle,szlig:Xle,THORN:Yle,thorn:Zle,times:Jle,Uacute:Qle,uacute:eae,Ucirc:tae,ucirc:nae,Ugrave:rae,ugrave:iae,uml:oae,Uuml:sae,uuml:lae,Yacute:aae,yacute:cae,yen:uae,yuml:fae},hae="&",pae="'",gae=">",vae="<",mae='"',Dw={amp:hae,apos:pae,gt:gae,lt:vae,quot:mae};var ys={};const yae={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 Km;function bae(){if(Km)return ys;Km=1;var e=ys&&ys.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ys,"__esModule",{value:!0});var t=e(yae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ys.default=o,ys}var Xm;function Ym(){if(Xm)return Tr;Xm=1;var e=Tr&&Tr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.decodeHTML=Tr.decodeHTMLStrict=Tr.decodeXML=void 0;var t=e($w),r=e(dae),o=e(Dw),s=e(bae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tr.decodeXML=f(o.default),Tr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};Tr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var x=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=h(t.default);function L(M){return M.substr(-1)!==";"&&(M+=";"),C(M)}return function(M){return String(M).replace(x,L)}})();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return Tr}var Mn={},Zm;function Jm(){if(Zm)return Mn;Zm=1;var e=Mn&&Mn.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.escapeUTF8=Mn.escape=Mn.encodeNonAsciiHTML=Mn.encodeHTML=Mn.encodeXML=void 0;var t=e(Dw),r=d(t.default),o=h(r);Mn.encodeXML=M(r);var s=e($w),c=d(s.default),f=h(c);Mn.encodeHTML=b(c,f),Mn.encodeNonAsciiHTML=M(c);function d(A){return Object.keys(A).sort().reduce(function(R,B){return R[A[B]]="&"+B+";",R},{})}function h(A){for(var R=[],B=[],E=0,W=Object.keys(A);E<W.length;E++){var U=W[E];U.length===1?R.push("\\"+U):B.push(U)}R.sort();for(var oe=0;oe<R.length-1;oe++){for(var te=oe;te<R.length-1&&R[te].charCodeAt(1)+1===R[te+1].charCodeAt(1);)te+=1;var Z=1+te-oe;Z<3||R.splice(oe,Z,R[oe]+"-"+R[te])}return B.unshift("["+R.join("")+"]"),new RegExp(B.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(A){return A.codePointAt(0)}:function(A){return(A.charCodeAt(0)-55296)*1024+A.charCodeAt(1)-56320+65536};function m(A){return"&#x"+(A.length>1?v(A):A.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(A,R){return function(B){return B.replace(R,function(E){return A[E]}).replace(p,m)}}var x=new RegExp(o.source+"|"+p.source,"g");function C(A){return A.replace(x,m)}Mn.escape=C;function L(A){return A.replace(o,m)}Mn.escapeUTF8=L;function M(A){return function(R){return R.replace(x,function(B){return A[B]||m(B)})}}return Mn}var Qm;function wae(){return Qm||(Qm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Ym(),r=Jm();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=Jm();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=Ym();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}})})(pd)),pd}var gd,e0;function xae(){if(e0)return gd;e0=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var N=0;N<O.length;N++){var _=O[N];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(P,_.key,_)}}function r(P,O,N){return O&&t(P.prototype,O),P}function o(P,O){var N=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!N){if(Array.isArray(P)||(N=s(P))||O){N&&(P=N);var _=0,z=function(){};return{s:z,n:function(){return _>=P.length?{done:!0}:{done:!1,value:P[_++]}},e:function(Pe){throw Pe},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
44
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,re=!1,ve;return{s:function(){N=N.call(P)},n:function(){var Pe=N.next();return H=Pe.done,Pe},e:function(Pe){re=!0,ve=Pe},f:function(){try{!H&&N.return!=null&&N.return()}finally{if(re)throw ve}}}}function s(P,O){if(P){if(typeof P=="string")return c(P,O);var N=Object.prototype.toString.call(P).slice(8,-1);if(N==="Object"&&P.constructor&&(N=P.constructor.name),N==="Map"||N==="Set")return Array.from(P);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return c(P,O)}}function c(P,O){(O==null||O>P.length)&&(O=P.length);for(var N=0,_=new Array(O);N<O;N++)_[N]=P[N];return _}var f=wae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return M(0,5).forEach(function(O){M(0,5).forEach(function(N){M(0,5).forEach(function(_){return p(O,N,_,P)})})}),M(0,23).forEach(function(O){var N=O+232,_=v(O*10+8);P[N]="#"+_+_+_}),P}function p(P,O,N,_){var z=16+P*36+O*6+N,H=P>0?P*40+55:0,re=O>0?O*40+55:0,ve=N>0?N*40+55:0;_[z]=m([H,re,ve])}function v(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function m(P){var O=[],N=o(P),_;try{for(N.s();!(_=N.n()).done;){var z=_.value;O.push(v(z))}}catch(H){N.e(H)}finally{N.f()}return"#"+O.join("")}function b(P,O,N,_){var z;return O==="text"?z=B(N,_):O==="display"?z=C(P,N,_):O==="xterm256Foreground"?z=U(P,_.colors[N]):O==="xterm256Background"?z=oe(P,_.colors[N]):O==="rgb"&&(z=x(P,N)),z}function x(P,O){O=O.substring(2).slice(0,-1);var N=+O.substr(0,2),_=O.substring(5).split(";"),z=_.map(function(H){return("0"+Number(H).toString(16)).substr(-2)}).join("");return W(P,(N===38?"color:#":"background-color:#")+z)}function C(P,O,N){O=parseInt(O,10);var _={"-1":function(){return"<br/>"},0:function(){return P.length&&L(P)},1:function(){return E(P,"b")},3:function(){return E(P,"i")},4:function(){return E(P,"u")},8:function(){return W(P,"display:none")},9:function(){return E(P,"strike")},22:function(){return W(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return te(P,"i")},24:function(){return te(P,"u")},39:function(){return U(P,N.fg)},49:function(){return oe(P,N.bg)},53:function(){return W(P,"text-decoration:overline")}},z;return _[O]?z=_[O]():4<O&&O<7?z=E(P,"blink"):29<O&&O<38?z=U(P,N.colors[O-30]):39<O&&O<48?z=oe(P,N.colors[O-40]):89<O&&O<98?z=U(P,N.colors[8+(O-90)]):99<O&&O<108&&(z=oe(P,N.colors[8+(O-100)])),z}function L(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(N){return"</"+N+">"}).join("")}function M(P,O){for(var N=[],_=P;_<=O;_++)N.push(_);return N}function A(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function R(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function B(P,O){return O.escapeXML?f.encodeXML(P):P}function E(P,O,N){return N||(N=""),P.push(O),"<".concat(O).concat(N?' style="'.concat(N,'"'):"",">")}function W(P,O){return E(P,"span",O)}function U(P,O){return E(P,"span","color:"+O)}function oe(P,O){return E(P,"span","background-color:"+O)}function te(P,O){var N;if(P.slice(-1)[0]===O&&(N=P.pop()),N)return"</"+O+">"}function Z(P,O,N){var _=!1,z=3;function H(){return""}function re(F,X){return N("xterm256Foreground",X),""}function ve(F,X){return N("xterm256Background",X),""}function we(F){return O.newline?N("display",-1):N("text",F),""}function Pe(F,X){_=!0,X.trim().length===0&&(X="0"),X=X.trimRight(";").split(";");var ue=o(X),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;N("display",de)}}catch(_e){ue.e(_e)}finally{ue.f()}return""}function je(F){return N("text",F),""}function Qe(F){return N("rgb",F),""}var Ye=[{pattern:/^\x08+/,sub:H},{pattern:/^\x1b\[[012]?K/,sub:H},{pattern:/^\x1b\[\(B/,sub:H},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Qe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:we},{pattern:/^\r+\n/,sub:we},{pattern:/^\r/,sub:we},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:H},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:H},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:H},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:je}];function ze(F,X){X>z&&_||(_=!1,P=P.replace(F.pattern,F.sub))}var Me=[],$=P,G=$.length;e:for(;G>0;){for(var Q=0,le=0,ie=Ye.length;le<ie;Q=++le){var I=Ye[Q];if(ze(I,Q),P.length!==G){G=P.length;continue e}}if(P.length===G)break;Me.push(0),G=P.length}return Me}function K(P,O,N){return O!=="text"&&(P=P.filter(A(R(N))),P.push({token:O,data:N,category:R(N)})),P}var V=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(P,[{key:"toHtml",value:function(N){var _=this;N=typeof N=="string"?[N]:N;var z=this.stack,H=this.options,re=[];return this.stickyStack.forEach(function(ve){var we=b(z,ve.token,ve.data,H);we&&re.push(we)}),Z(N.join(""),H,function(ve,we){var Pe=b(z,ve,we,H);Pe&&re.push(Pe),H.stream&&(_.stickyStack=K(_.stickyStack,ve,we))}),z.length&&re.push(L(z)),re.join("")}}]),P})();return gd=V,gd}var Sae=xae();const _ae=Iw(Sae);function ea(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function kae(e,t){return t&&e.endsWith(t)}async function ip(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function op(e){return new _ae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Tae(e){return e===null||typeof e!="function"&&typeof e!="object"}function zw(e){let t=e;if(Tae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=qE(t.stack||"",{ignoreStackEntries:[]}),t}function Cae(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(ea(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(ea(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(ea(t.stack))}`),r.length>0?r:null}function Fw(e,t){const r=op(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>Cae(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Ia=hE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),ao=qo(Ia,"file"),fn=qo(Ia,"view"),Hw=qo(Ia,"line"),Bw=qo(Ia,"column"),Ps=qo(Ia,"test");var t0={exports:{}},n0;function Ww(){return n0||(n0=1,(function(e,t){(function(r){r(Qs())})(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(Kt){return{type:Kt,style:"keyword"}}var q=T("keyword a"),fe=T("keyword b"),be=T("keyword c"),ae=T("keyword d"),Ae=T("operator"),pt={type:"atom",style:"atom"};return{if:T("if"),while:q,with:q,else:fe,do:fe,try:fe,finally:fe,return:ae,break:ae,continue:ae,new:T("new"),delete:be,void:be,throw:be,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:Ae,typeof:Ae,instanceof:Ae,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:T("this"),class:T("class"),super:T("atom"),yield:be,export:T("export"),import:T("import"),extends:be,await:be}})(),x=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(T){for(var q=!1,fe,be=!1;(fe=T.next())!=null;){if(!q){if(fe=="/"&&!be)return;fe=="["?be=!0:be&&fe=="]"&&(be=!1)}q=!q&&fe=="\\"}}var M,A;function R(T,q,fe){return M=T,A=fe,q}function B(T,q){var fe=T.next();if(fe=='"'||fe=="'")return q.tokenize=E(fe),q.tokenize(T,q);if(fe=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(fe=="."&&T.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return R(fe);if(fe=="="&&T.eat(">"))return R("=>","operator");if(fe=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(fe))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(fe=="/")return T.eat("*")?(q.tokenize=W,W(T,q)):T.eat("/")?(T.skipToEnd(),R("comment","comment")):Jn(T,q,1)?(L(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(T.eat("="),R("operator","operator",T.current()));if(fe=="`")return q.tokenize=U,U(T,q);if(fe=="#"&&T.peek()=="!")return T.skipToEnd(),R("meta","meta");if(fe=="#"&&T.eatWhile(m))return R("variable","property");if(fe=="<"&&T.match("!--")||fe=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),R("comment","comment");if(x.test(fe))return(fe!=">"||!q.lexical||q.lexical.type!=">")&&(T.eat("=")?(fe=="!"||fe=="=")&&T.eat("="):/[<>*+\-|&?]/.test(fe)&&(T.eat(fe),fe==">"&&T.eat(fe))),fe=="?"&&T.eat(".")?R("."):R("operator","operator",T.current());if(m.test(fe)){T.eatWhile(m);var be=T.current();if(q.lastType!="."){if(b.propertyIsEnumerable(be)){var ae=b[be];return R(ae.type,ae.style,be)}if(be=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",be)}return R("variable","variable",be)}}function E(T){return function(q,fe){var be=!1,ae;if(d&&q.peek()=="@"&&q.match(C))return fe.tokenize=B,R("jsonld-keyword","meta");for(;(ae=q.next())!=null&&!(ae==T&&!be);)be=!be&&ae=="\\";return be||(fe.tokenize=B),R("string","string")}}function W(T,q){for(var fe=!1,be;be=T.next();){if(be=="/"&&fe){q.tokenize=B;break}fe=be=="*"}return R("comment","comment")}function U(T,q){for(var fe=!1,be;(be=T.next())!=null;){if(!fe&&(be=="`"||be=="$"&&T.eat("{"))){q.tokenize=B;break}fe=!fe&&be=="\\"}return R("quasi","string-2",T.current())}var oe="([{}])";function te(T,q){q.fatArrowAt&&(q.fatArrowAt=null);var fe=T.string.indexOf("=>",T.start);if(!(fe<0)){if(v){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,fe));be&&(fe=be.index)}for(var ae=0,Ae=!1,pt=fe-1;pt>=0;--pt){var Kt=T.string.charAt(pt),kn=oe.indexOf(Kt);if(kn>=0&&kn<3){if(!ae){++pt;break}if(--ae==0){Kt=="("&&(Ae=!0);break}}else if(kn>=3&&kn<6)++ae;else if(m.test(Kt))Ae=!0;else if(/["'\/`]/.test(Kt))for(;;--pt){if(pt==0)return;var Zo=T.string.charAt(pt-1);if(Zo==Kt&&T.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ae&&!ae){++pt;break}}Ae&&!ae&&(q.fatArrowAt=pt)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(T,q,fe,be,ae,Ae){this.indented=T,this.column=q,this.type=fe,this.prev=ae,this.info=Ae,be!=null&&(this.align=be)}function V(T,q){if(!p)return!1;for(var fe=T.localVars;fe;fe=fe.next)if(fe.name==q)return!0;for(var be=T.context;be;be=be.prev)for(var fe=be.vars;fe;fe=fe.next)if(fe.name==q)return!0}function P(T,q,fe,be,ae){var Ae=T.cc;for(O.state=T,O.stream=ae,O.marked=null,O.cc=Ae,O.style=q,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var pt=Ae.length?Ae.pop():h?ie:Q;if(pt(fe,be)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return O.marked?O.marked:fe=="variable"&&V(T,be)?"variable-2":q}}}var O={state:null,marked:null,cc:null};function N(){for(var T=arguments.length-1;T>=0;T--)O.cc.push(arguments[T])}function _(){return N.apply(null,arguments),!0}function z(T,q){for(var fe=q;fe;fe=fe.next)if(fe.name==T)return!0;return!1}function H(T){var q=O.state;if(O.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var fe=re(T,q.context);if(fe!=null){q.context=fe;return}}else if(!z(T,q.localVars)){q.localVars=new Pe(T,q.localVars);return}}s.globalVars&&!z(T,q.globalVars)&&(q.globalVars=new Pe(T,q.globalVars))}}function re(T,q){if(q)if(q.block){var fe=re(T,q.prev);return fe?fe==q.prev?q:new we(fe,q.vars,!0):null}else return z(T,q.vars)?q:new we(q.prev,new Pe(T,q.vars),!1);else return null}function ve(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function we(T,q,fe){this.prev=T,this.vars=q,this.block=fe}function Pe(T,q){this.name=T,this.next=q}var je=new Pe("this",new Pe("arguments",null));function Qe(){O.state.context=new we(O.state.context,O.state.localVars,!1),O.state.localVars=je}function Ye(){O.state.context=new we(O.state.context,O.state.localVars,!0),O.state.localVars=null}Qe.lex=Ye.lex=!0;function ze(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}ze.lex=!0;function Me(T,q){var fe=function(){var be=O.state,ae=be.indented;if(be.lexical.type=="stat")ae=be.lexical.indented;else for(var Ae=be.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)ae=Ae.indented;be.lexical=new K(ae,O.stream.column(),T,null,be.lexical,q)};return fe.lex=!0,fe}function $(){var T=O.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}$.lex=!0;function G(T){function q(fe){return fe==T?_():T==";"||fe=="}"||fe==")"||fe=="]"?N():_(q)}return q}function Q(T,q){return T=="var"?_(Me("vardef",q),jo,G(";"),$):T=="keyword a"?_(Me("form"),F,Q,$):T=="keyword b"?_(Me("form"),Q,$):T=="keyword d"?O.stream.match(/^\s*$/,!1)?_():_(Me("stat"),ue,G(";"),$):T=="debugger"?_(G(";")):T=="{"?_(Me("}"),Ye,Bt,$,ze):T==";"?_():T=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==$&&O.state.cc.pop()(),_(Me("form"),F,Q,$,Uo)):T=="function"?_(ar):T=="for"?_(Me("form"),Ye,Ha,Q,ze,$):T=="class"||v&&q=="interface"?(O.marked="keyword",_(Me("form",T=="class"?T:q),Vo,$)):T=="variable"?v&&q=="declare"?(O.marked="keyword",_(Q)):v&&(q=="module"||q=="enum"||q=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",q=="enum"?_(Ie):q=="type"?_(Ba,G("operator"),tt,G(";")):_(Me("form"),_n,G("{"),Me("}"),Bt,$,$)):v&&q=="namespace"?(O.marked="keyword",_(Me("form"),ie,Q,$)):v&&q=="abstract"?(O.marked="keyword",_(Q)):_(Me("stat"),Ge):T=="switch"?_(Me("form"),F,G("{"),Me("}","switch"),Ye,Bt,$,$,ze):T=="case"?_(ie,G(":")):T=="default"?_(G(":")):T=="catch"?_(Me("form"),Qe,le,Q,$,ze):T=="export"?_(Me("stat"),Go,$):T=="import"?_(Me("stat"),Ni,$):T=="async"?_(Q):q=="@"?_(ie,Q):N(Me("stat"),ie,G(";"),$)}function le(T){if(T=="(")return _(yr,G(")"))}function ie(T,q){return X(T,q,!1)}function I(T,q){return X(T,q,!0)}function F(T){return T!="("?N():_(Me(")"),ue,G(")"),$)}function X(T,q,fe){if(O.state.fatArrowAt==O.stream.start){var be=fe?ye:ge;if(T=="(")return _(Qe,Me(")"),at(yr,")"),$,G("=>"),be,ze);if(T=="variable")return N(Qe,_n,G("=>"),be,ze)}var ae=fe?de:he;return Z.hasOwnProperty(T)?_(ae):T=="function"?_(ar,ae):T=="class"||v&&q=="interface"?(O.marked="keyword",_(Me("form"),rf,$)):T=="keyword c"||T=="async"?_(fe?I:ie):T=="("?_(Me(")"),ue,G(")"),$,ae):T=="operator"||T=="spread"?_(fe?I:ie):T=="["?_(Me("]"),It,$,ae):T=="{"?Gt(lt,"}",null,ae):T=="quasi"?N(_e,ae):T=="new"?_(qe(fe)):_()}function ue(T){return T.match(/[;\}\)\],]/)?N():N(ie)}function he(T,q){return T==","?_(ue):de(T,q,!1)}function de(T,q,fe){var be=fe==!1?he:de,ae=fe==!1?ie:I;if(T=="=>")return _(Qe,fe?ye:ge,ze);if(T=="operator")return/\+\+|--/.test(q)||v&&q=="!"?_(be):v&&q=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(Me(">"),at(tt,">"),$,be):q=="?"?_(ie,G(":"),ae):_(ae);if(T=="quasi")return N(_e,be);if(T!=";"){if(T=="(")return Gt(I,")","call",be);if(T==".")return _(rt,be);if(T=="[")return _(Me("]"),ue,G("]"),$,be);if(v&&q=="as")return O.marked="keyword",_(tt,be);if(T=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),_(ae)}}function _e(T,q){return T!="quasi"?N():q.slice(q.length-2)!="${"?_(_e):_(ue,Ee)}function Ee(T){if(T=="}")return O.marked="string-2",O.state.tokenize=U,_(_e)}function ge(T){return te(O.stream,O.state),N(T=="{"?Q:ie)}function ye(T){return te(O.stream,O.state),N(T=="{"?Q:I)}function qe(T){return function(q){return q=="."?_(T?Fe:Ne):q=="variable"&&v?_(Bn,T?de:he):N(T?I:ie)}}function Ne(T,q){if(q=="target")return O.marked="keyword",_(he)}function Fe(T,q){if(q=="target")return O.marked="keyword",_(de)}function Ge(T){return T==":"?_($,Q):N(he,G(";"),$)}function rt(T){if(T=="variable")return O.marked="property",_()}function lt(T,q){if(T=="async")return O.marked="property",_(lt);if(T=="variable"||O.style=="keyword"){if(O.marked="property",q=="get"||q=="set")return _(ut);var fe;return v&&O.state.fatArrowAt==O.stream.start&&(fe=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+fe[0].length),_(Mt)}else{if(T=="number"||T=="string")return O.marked=d?"property":O.style+" property",_(Mt);if(T=="jsonld-keyword")return _(Mt);if(v&&ve(q))return O.marked="keyword",_(lt);if(T=="[")return _(ie,Fn,G("]"),Mt);if(T=="spread")return _(I,Mt);if(q=="*")return O.marked="keyword",_(lt);if(T==":")return N(Mt)}}function ut(T){return T!="variable"?N(Mt):(O.marked="property",_(ar))}function Mt(T){if(T==":")return _(I);if(T=="(")return N(ar)}function at(T,q,fe){function be(ae,Ae){if(fe?fe.indexOf(ae)>-1:ae==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),_(function(Kt,kn){return Kt==q||kn==q?N():N(T)},be)}return ae==q||Ae==q?_():fe&&fe.indexOf(";")>-1?N(T):_(G(q))}return function(ae,Ae){return ae==q||Ae==q?_():N(T,be)}}function Gt(T,q,fe){for(var be=3;be<arguments.length;be++)O.cc.push(arguments[be]);return _(Me(q,fe),at(T,q),$)}function Bt(T){return T=="}"?_():N(Q,Bt)}function Fn(T,q){if(v){if(T==":")return _(tt);if(q=="?")return _(Fn)}}function Fr(T,q){if(v&&(T==":"||q=="in"))return _(tt)}function zt(T){if(v&&T==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?_(ie,Hn,tt):_(tt)}function Hn(T,q){if(q=="is")return O.marked="keyword",_()}function tt(T,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return O.marked="keyword",_(q=="typeof"?I:tt);if(T=="variable"||q=="void")return O.marked="type",_(lr);if(q=="|"||q=="&")return _(tt);if(T=="string"||T=="number"||T=="atom")return _(lr);if(T=="[")return _(Me("]"),at(tt,"]",","),$,lr);if(T=="{")return _(Me("}"),He,$,lr);if(T=="(")return _(at(Pt,")"),ho,lr);if(T=="<")return _(at(tt,">"),tt);if(T=="quasi")return N(ln,lr)}function ho(T){if(T=="=>")return _(tt)}function He(T){return T.match(/[\}\)\]]/)?_():T==","||T==";"?_(He):N(ei,He)}function ei(T,q){if(T=="variable"||O.style=="keyword")return O.marked="property",_(ei);if(q=="?"||T=="number"||T=="string")return _(ei);if(T==":")return _(tt);if(T=="[")return _(G("variable"),Fr,G("]"),ei);if(T=="(")return N(Mi,ei);if(!T.match(/[;\}\)\],]/))return _()}function ln(T,q){return T!="quasi"?N():q.slice(q.length-2)!="${"?_(ln):_(tt,Rt)}function Rt(T){if(T=="}")return O.marked="string-2",O.state.tokenize=U,_(ln)}function Pt(T,q){return T=="variable"&&O.stream.match(/^\s*[?:]/,!1)||q=="?"?_(Pt):T==":"?_(tt):T=="spread"?_(Pt):N(tt)}function lr(T,q){if(q=="<")return _(Me(">"),at(tt,">"),$,lr);if(q=="|"||T=="."||q=="&")return _(tt);if(T=="[")return _(tt,G("]"),lr);if(q=="extends"||q=="implements")return O.marked="keyword",_(tt);if(q=="?")return _(tt,G(":"),tt)}function Bn(T,q){if(q=="<")return _(Me(">"),at(tt,">"),$,lr)}function vr(){return N(tt,an)}function an(T,q){if(q=="=")return _(tt)}function jo(T,q){return q=="enum"?(O.marked="keyword",_(Ie)):N(_n,Fn,mr,nf)}function _n(T,q){if(v&&ve(q))return O.marked="keyword",_(_n);if(T=="variable")return H(q),_();if(T=="spread")return _(_n);if(T=="[")return Gt(tl,"]");if(T=="{")return Gt(Ai,"}")}function Ai(T,q){return T=="variable"&&!O.stream.match(/^\s*:/,!1)?(H(q),_(mr)):(T=="variable"&&(O.marked="property"),T=="spread"?_(_n):T=="}"?N():T=="["?_(ie,G("]"),G(":"),Ai):_(G(":"),_n,mr))}function tl(){return N(_n,mr)}function mr(T,q){if(q=="=")return _(I)}function nf(T){if(T==",")return _(jo)}function Uo(T,q){if(T=="keyword b"&&q=="else")return _(Me("form","else"),Q,$)}function Ha(T,q){if(q=="await")return _(Ha);if(T=="(")return _(Me(")"),nl,$)}function nl(T){return T=="var"?_(jo,Li):T=="variable"?_(Li):N(Li)}function Li(T,q){return T==")"?_():T==";"?_(Li):q=="in"||q=="of"?(O.marked="keyword",_(ie,Li)):N(ie,Li)}function ar(T,q){if(q=="*")return O.marked="keyword",_(ar);if(T=="variable")return H(q),_(ar);if(T=="(")return _(Qe,Me(")"),at(yr,")"),$,zt,Q,ze);if(v&&q=="<")return _(Me(">"),at(vr,">"),$,ar)}function Mi(T,q){if(q=="*")return O.marked="keyword",_(Mi);if(T=="variable")return H(q),_(Mi);if(T=="(")return _(Qe,Me(")"),at(yr,")"),$,zt,ze);if(v&&q=="<")return _(Me(">"),at(vr,">"),$,Mi)}function Ba(T,q){if(T=="keyword"||T=="variable")return O.marked="type",_(Ba);if(q=="<")return _(Me(">"),at(vr,">"),$)}function yr(T,q){return q=="@"&&_(ie,yr),T=="spread"?_(yr):v&&ve(q)?(O.marked="keyword",_(yr)):v&&T=="this"?_(Fn,mr):N(_n,Fn,mr)}function rf(T,q){return T=="variable"?Vo(T,q):br(T,q)}function Vo(T,q){if(T=="variable")return H(q),_(br)}function br(T,q){if(q=="<")return _(Me(">"),at(vr,">"),$,br);if(q=="extends"||q=="implements"||v&&T==",")return q=="implements"&&(O.marked="keyword"),_(v?tt:ie,br);if(T=="{")return _(Me("}"),wr,$)}function wr(T,q){if(T=="async"||T=="variable"&&(q=="static"||q=="get"||q=="set"||v&&ve(q))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",_(wr);if(T=="variable"||O.style=="keyword")return O.marked="property",_(po,wr);if(T=="number"||T=="string")return _(po,wr);if(T=="[")return _(ie,Fn,G("]"),po,wr);if(q=="*")return O.marked="keyword",_(wr);if(v&&T=="(")return N(Mi,wr);if(T==";"||T==",")return _(wr);if(T=="}")return _();if(q=="@")return _(ie,wr)}function po(T,q){if(q=="!"||q=="?")return _(po);if(T==":")return _(tt,mr);if(q=="=")return _(I);var fe=O.state.lexical.prev,be=fe&&fe.info=="interface";return N(be?Mi:ar)}function Go(T,q){return q=="*"?(O.marked="keyword",_(Yo,G(";"))):q=="default"?(O.marked="keyword",_(ie,G(";"))):T=="{"?_(at(Ko,"}"),Yo,G(";")):N(Q)}function Ko(T,q){if(q=="as")return O.marked="keyword",_(G("variable"));if(T=="variable")return N(I,Ko)}function Ni(T){return T=="string"?_():T=="("?N(ie):T=="."?N(he):N(Xo,Hr,Yo)}function Xo(T,q){return T=="{"?Gt(Xo,"}"):(T=="variable"&&H(q),q=="*"&&(O.marked="keyword"),_(rl))}function Hr(T){if(T==",")return _(Xo,Hr)}function rl(T,q){if(q=="as")return O.marked="keyword",_(Xo)}function Yo(T,q){if(q=="from")return O.marked="keyword",_(ie)}function It(T){return T=="]"?_():N(at(I,"]"))}function Ie(){return N(Me("form"),_n,G("{"),Me("}"),at(ti,"}"),$,$)}function ti(){return N(_n,mr)}function il(T,q){return T.lastType=="operator"||T.lastType==","||x.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Jn(T,q,fe){return q.tokenize==B&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(fe||0)))}return{startState:function(T){var q={tokenize:B,lastType:"sof",cc:[],lexical:new K((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(q.globalVars=s.globalVars),q},token:function(T,q){if(T.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=T.indentation(),te(T,q)),q.tokenize!=W&&T.eatSpace())return null;var fe=q.tokenize(T,q);return M=="comment"?fe:(q.lastType=M=="operator"&&(A=="++"||A=="--")?"incdec":M,P(q,fe,M,A,T))},indent:function(T,q){if(T.tokenize==W||T.tokenize==U)return r.Pass;if(T.tokenize!=B)return 0;var fe=q&&q.charAt(0),be=T.lexical,ae;if(!/^\s*else\b/.test(q))for(var Ae=T.cc.length-1;Ae>=0;--Ae){var pt=T.cc[Ae];if(pt==$)be=be.prev;else if(pt!=Uo&&pt!=ze)break}for(;(be.type=="stat"||be.type=="form")&&(fe=="}"||(ae=T.cc[T.cc.length-1])&&(ae==he||ae==de)&&!/^[,\.=+\-*:?[\(]/.test(q));)be=be.prev;f&&be.type==")"&&be.prev.type=="stat"&&(be=be.prev);var Kt=be.type,kn=fe==Kt;return Kt=="vardef"?be.indented+(T.lastType=="operator"||T.lastType==","?be.info.length+1:0):Kt=="form"&&fe=="{"?be.indented:Kt=="form"?be.indented+c:Kt=="stat"?be.indented+(il(T,q)?f||c:0):be.info=="switch"&&!kn&&s.doubleIndentSwitch!=!1?be.indented+(/^(?:case|default)\b/.test(q)?c:2*c):be.align?be.column+(kn?0:1):be.indented+(kn?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:Jn,skipExpression:function(T){P(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})})})()),t0.exports}Ww();var r0={exports:{}},i0;function qw(){return i0||(i0=1,(function(e,t){(function(r){r(Qs())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function x(_,z){function H(we){return z.tokenize=we,we(_,z)}var re=_.next();if(re=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?H(M("atom","]]>")):null:_.match("--")?H(M("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),H(A(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),z.tokenize=M("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",z.tokenize=C,"tag bracket");if(re=="&"){var ve;return _.eat("#")?_.eat("x")?ve=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):ve=_.eatWhile(/[\d]/)&&_.eat(";"):ve=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),ve?"atom":"error"}else return _.eatWhile(/[^&<]/),null}x.isInText=!0;function C(_,z){var H=_.next();if(H==">"||H=="/"&&_.eat(">"))return z.tokenize=x,m=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return m="equals",null;if(H=="<"){z.tokenize=x,z.state=U,z.tagName=z.tagStart=null;var re=z.tokenize(_,z);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(H)?(z.tokenize=L(H),z.stringStartCol=_.column(),z.tokenize(_,z)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(_){var z=function(H,re){for(;!H.eol();)if(H.next()==_){re.tokenize=C;break}return"string"};return z.isInAttribute=!0,z}function M(_,z){return function(H,re){for(;!H.eol();){if(H.match(z)){re.tokenize=x;break}H.next()}return _}}function A(_){return function(z,H){for(var re;(re=z.next())!=null;){if(re=="<")return H.tokenize=A(_+1),H.tokenize(z,H);if(re==">")if(_==1){H.tokenize=x;break}else return H.tokenize=A(_-1),H.tokenize(z,H)}return"meta"}}function R(_){return _&&_.toLowerCase()}function B(_,z,H){this.prev=_.context,this.tagName=z||"",this.indent=_.indented,this.startOfLine=H,(h.doNotIndent.hasOwnProperty(z)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function E(_){_.context&&(_.context=_.context.prev)}function W(_,z){for(var H;;){if(!_.context||(H=_.context.tagName,!h.contextGrabbers.hasOwnProperty(R(H))||!h.contextGrabbers[R(H)].hasOwnProperty(R(z))))return;E(_)}}function U(_,z,H){return _=="openTag"?(H.tagStart=z.column(),oe):_=="closeTag"?te:U}function oe(_,z,H){return _=="word"?(H.tagName=z.current(),b="tag",V):h.allowMissingTagName&&_=="endTag"?(b="tag bracket",V(_,z,H)):(b="error",oe)}function te(_,z,H){if(_=="word"){var re=z.current();return H.context&&H.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(R(H.context.tagName))&&E(H),H.context&&H.context.tagName==re||h.matchClosing===!1?(b="tag",Z):(b="tag error",K)}else return h.allowMissingTagName&&_=="endTag"?(b="tag bracket",Z(_,z,H)):(b="error",K)}function Z(_,z,H){return _!="endTag"?(b="error",Z):(E(H),U)}function K(_,z,H){return b="error",Z(_,z,H)}function V(_,z,H){if(_=="word")return b="attribute",P;if(_=="endTag"||_=="selfcloseTag"){var re=H.tagName,ve=H.tagStart;return H.tagName=H.tagStart=null,_=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(re))?W(H,re):(W(H,re),H.context=new B(H,re,ve==H.indented)),U}return b="error",V}function P(_,z,H){return _=="equals"?O:(h.allowMissing||(b="error"),V(_,z,H))}function O(_,z,H){return _=="string"?N:_=="word"&&h.allowUnquoted?(b="string",V):(b="error",V(_,z,H))}function N(_,z,H){return _=="string"?N:V(_,z,H)}return{startState:function(_){var z={tokenize:x,state:U,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(z.baseIndent=_),z},token:function(_,z){if(!z.tagName&&_.sol()&&(z.indented=_.indentation()),_.eatSpace())return null;m=null;var H=z.tokenize(_,z);return(H||m)&&H!="comment"&&(b=null,z.state=z.state(m||H,_,z),b&&(H=b=="error"?H+" error":b)),H},indent:function(_,z,H){var re=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+d;if(re&&re.noIndent)return r.Pass;if(_.tokenize!=C&&_.tokenize!=x)return H?H.match(/^(\s*)/)[0].length:0;if(_.tagName)return h.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var ve=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(ve&&ve[1])for(;re;)if(re.tagName==ve[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(R(re.tagName)))re=re.prev;else break;else if(ve)for(;re;){var we=h.contextGrabbers[R(re.tagName)];if(we&&we.hasOwnProperty(R(ve[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(_){_.state==O&&(_.state=V)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var z=[],H=_.context;H;H=H.prev)z.push(H.tagName);return z.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),r0.exports}qw();var o0={exports:{}},s0;function Eae(){return s0||(s0=1,(function(e,t){(function(r){r(Qs(),qw(),Ww())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var C=x.tagName;x.tagName=null;var L=d.indent(x,"","");return x.tagName=C,L}function v(x,C){return C.context.mode==d?m(x,C,C.context):b(x,C,C.context)}function m(x,C,L){if(L.depth==2)return x.match(/^.*?\*\//)?L.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(L.state);var M=p(L.state),A=L.state.context;if(A&&x.match(/^[^>]*>\s*$/,!1)){for(;A.prev&&!A.startOfLine;)A=A.prev;A.startOfLine?M-=c.indentUnit:L.prev.state.lexical&&(M=L.prev.state.lexical.indented)}else L.depth==1&&(M+=c.indentUnit);return C.context=new o(r.startState(h,M),h,0,C.context),null}if(L.depth==1){if(x.peek()=="<")return d.skipAttribute(L.state),C.context=new o(r.startState(d,p(L.state)),d,0,C.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return L.depth=2,v(x,C)}var R=d.token(x,L.state),B=x.current(),E;return/\btag\b/.test(R)?/>$/.test(B)?L.state.context?L.depth=0:C.context=C.context.prev:/^</.test(B)&&(L.depth=1):!R&&(E=B.indexOf("{"))>-1&&x.backUp(B.length-E),R}function b(x,C,L){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,L.state))return C.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,C.context),h.skipExpression(L.state),null;var M=h.token(x,L.state);if(!M&&L.depth!=null){var A=x.current();A=="{"?L.depth++:A=="}"&&--L.depth==0&&(C.context=C.context.prev)}return M}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,C,L){return x.context.mode.indent(x.context.state,C,L)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),o0.exports}Eae();var l0={exports:{}},a0;function Aae(){return a0||(a0=1,(function(e,t){(function(r){r(Qs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),l0.exports}Aae();var c0={exports:{}},u0;function Lae(){return u0||(u0=1,(function(e,t){(function(r){r(Qs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",x=m[b],C=p.pos;function L(){r.off(document,"mousemove",M),r.off(document,"mouseup",L)}function M(A){if(A.which!=1)return L();p.moveTo(C+(A[b]-x)*(p.total/p.size))}r.on(document,"mousemove",M),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=m.clientX<b.left?-1:m.clientX>b.right?1:0:x=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),c0.exports}Lae();const On=nn();function Mae(e,t,r={}){const o=YA.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),_t(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}),$u(()=>{On.value=void 0}),Ih(o)}async function jw(e){ba({file:e.file.id,line:e.location?.line??0,view:"editor",test:e.id,column:null})}function Nae(e,t){ba({file:e,column:t.column-1,line:t.line,view:"editor",test:Ps.value})}function Oae(e,t){if(!t.location)return;const{line:r,column:o,file:s}=t.location;if(e.file.filepath!==s)return ip(s,r,o);ba({file:e.file.id,column:o-1,line:r,view:"editor",test:Ps.value})}const Vs=Ve(),Is=Ve(!0),co=Ve(!1),vu=Ve(!0),_s=Se(()=>Gs.value?.coverage),th=Se(()=>_s.value?.enabled),ks=Se(()=>th.value&&!!_s.value.htmlReporter),$s=Gu("vitest-ui_splitpanes-mainSizes",[33,67]),ro=Gu("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:$s.value[0],details:{size:$s.value[1],browser:ro.value[0],main:ro.value[1]}}),f0=Se(()=>{if(ks.value){const e=_s.value.reportsDirectory.lastIndexOf("/"),t=_s.value.htmlReporter?.subdir;return t?`/${_s.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${_s.value.reportsDirectory.slice(e+1)}/index.html`}});_t(Yu,e=>{vu.value=e==="running"},{immediate:!0});function Rae(){const e=ao.value;if(e&&e.length>0){const t=gr(e);t?(Vs.value=t,Is.value=!1,co.value=!1):JC(()=>dt.state.getFiles(),()=>{Vs.value=gr(e),Is.value=!1,co.value=!1})}return Is}function mu(e){Is.value=e,co.value=!1,e&&(Vs.value=void 0,ao.value="")}function ba({file:e,line:t,view:r,test:o,column:s}){ao.value=e,Hw.value=t,Bw.value=s,fn.value=r,Ps.value=o,Vs.value=gr(e),mu(!1)}function Pae(e){e.type==="test"?fn.value==="editor"?jw(e):ba({file:e.file.id,line:null,column:null,view:fn.value,test:e.id}):ba({file:e.file.id,test:null,line:null,view:fn.value,column:null})}function Iae(){co.value=!0,Is.value=!1,Vs.value=void 0,ao.value=""}function $ae(){At.details.browser=100,At.details.main=0,ro.value=[100,0]}function Uw(){if(Yn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function Dae(){At.details.browser=Uw(),At.details.main=100-At.details.browser,ro.value=[At.details.browser,At.details.main]}function zae(){At.navigation=33,At.details.size=67,$s.value=[33,67]}function Vw(){At.details.main!==0&&(At.details.browser=Uw(),At.details.main=100-At.details.browser,ro.value=[At.details.browser,At.details.main])}const Fae={setCurrentFileId(e){ao.value=e,Vs.value=gr(e),mu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Yn?.provider==="webdriverio"&&Vw(),await new Promise(r=>requestAnimationFrame(r))}},Hae=location.port,Bae=[location.hostname,Hae].filter(Boolean).join(":"),Wae=`${location.protocol==="https:"?"wss:":"ws:"}//${Bae}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var rr=Uint8Array,Ts=Uint16Array,qae=Int32Array,Gw=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Kw=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),jae=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xw=function(e,t){for(var r=new Ts(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new qae(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}},Yw=Xw(Gw,2),Zw=Yw.b,Uae=Yw.r;Zw[28]=258,Uae[258]=28;var Vae=Xw(Kw,0),Gae=Vae.b,nh=new Ts(32768);for(var Lt=0;Lt<32768;++Lt){var Wi=(Lt&43690)>>1|(Lt&21845)<<1;Wi=(Wi&52428)>>2|(Wi&13107)<<2,Wi=(Wi&61680)>>4|(Wi&3855)<<4,nh[Lt]=((Wi&65280)>>8|(Wi&255)<<8)>>1}var ta=(function(e,t,r){for(var o=e.length,s=0,c=new Ts(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Ts(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Ts(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[nh[m]>>h]=p}else for(d=new Ts(o),s=0;s<o;++s)e[s]&&(d[s]=nh[f[e[s]-1]++]>>15-e[s]);return d}),$a=new rr(288);for(var Lt=0;Lt<144;++Lt)$a[Lt]=8;for(var Lt=144;Lt<256;++Lt)$a[Lt]=9;for(var Lt=256;Lt<280;++Lt)$a[Lt]=7;for(var Lt=280;Lt<288;++Lt)$a[Lt]=8;var Jw=new rr(32);for(var Lt=0;Lt<32;++Lt)Jw[Lt]=5;var Kae=ta($a,9,1),Xae=ta(Jw,5,1),vd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Cr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},md=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Yae=function(e){return(e+7)/8|0},Qw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},Zae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],jn=function(e,t,r){var o=new Error(t||Zae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,jn),!r)throw o;return o},sp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(ie){var I=r.length;if(ie>I){var F=new rr(Math.max(I*2,ie));F.set(r),r=F}},v=t.f||0,m=t.p||0,b=t.b||0,x=t.l,C=t.d,L=t.m,M=t.n,A=s*8;do{if(!x){v=Cr(e,m,1);var R=Cr(e,m+1,3);if(m+=3,R)if(R==1)x=Kae,C=Xae,L=9,M=5;else if(R==2){var U=Cr(e,m,31)+257,oe=Cr(e,m+10,15)+4,te=U+Cr(e,m+5,31)+1;m+=14;for(var Z=new rr(te),K=new rr(19),V=0;V<oe;++V)K[jae[V]]=Cr(e,m+V*3,7);m+=oe*3;for(var P=vd(K),O=(1<<P)-1,N=ta(K,P,1),V=0;V<te;){var _=N[Cr(e,m,O)];m+=_&15;var B=_>>4;if(B<16)Z[V++]=B;else{var z=0,H=0;for(B==16?(H=3+Cr(e,m,3),m+=2,z=Z[V-1]):B==17?(H=3+Cr(e,m,7),m+=3):B==18&&(H=11+Cr(e,m,127),m+=7);H--;)Z[V++]=z}}var re=Z.subarray(0,U),ve=Z.subarray(U);L=vd(re),M=vd(ve),x=ta(re,L,1),C=ta(ve,M,1)}else jn(1);else{var B=Yae(m)+4,E=e[B-4]|e[B-3]<<8,W=B+E;if(W>s){h&&jn(0);break}d&&p(b+E),r.set(e.subarray(B,W),b),t.b=b+=E,t.p=m=W*8,t.f=v;continue}if(m>A){h&&jn(0);break}}d&&p(b+131072);for(var we=(1<<L)-1,Pe=(1<<M)-1,je=m;;je=m){var z=x[md(e,m)&we],Qe=z>>4;if(m+=z&15,m>A){h&&jn(0);break}if(z||jn(2),Qe<256)r[b++]=Qe;else if(Qe==256){je=m,x=null;break}else{var Ye=Qe-254;if(Qe>264){var V=Qe-257,ze=Gw[V];Ye=Cr(e,m,(1<<ze)-1)+Zw[V],m+=ze}var Me=C[md(e,m)&Pe],$=Me>>4;Me||jn(3),m+=Me&15;var ve=Gae[$];if($>3){var ze=Kw[$];ve+=md(e,m)&(1<<ze)-1,m+=ze}if(m>A){h&&jn(0);break}d&&p(b+131072);var G=b+Ye;if(b<ve){var Q=c-ve,le=Math.min(ve,G);for(Q+b<0&&jn(3);b<le;++b)r[b]=o[Q+b]}for(;b<G;++b)r[b]=r[b-ve]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=L,t.d=C,t.n=M)}while(!v);return b!=r.length&&f?Qw(r,0,b):r.subarray(0,b)},Jae=new rr(0),Qae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&jn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},ece=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},tce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&jn(6,"invalid zlib data"),(e[1]>>5&1)==1&&jn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function nce(e,t){return sp(e,{i:2},t,t)}function rce(e,t){var r=Qae(e);return r+8>e.length&&jn(6,"invalid gzip data"),sp(e.subarray(r,-8),{i:2},new rr(ece(e)),t)}function ice(e,t){return sp(e.subarray(tce(e),-4),{i:2},t,t)}function oce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?rce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?nce(e,t):ice(e,t)}var rh=typeof TextDecoder<"u"&&new TextDecoder,sce=0;try{rh.decode(Jae,{stream:!0}),sce=1}catch{}var lce=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:Qw(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 ace(e,t){var r;if(rh)return rh.decode(e);var o=lce(e),s=o.s,r=o.r;return r.length&&jn(8),s}const yd=()=>{},mn=()=>Promise.resolve();function cce(){const e=ir({state:new _w,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:mn,onDone:yd,onTaskUpdate:yd,writeFile:mn,rerun:mn,rerunTask:mn,updateSnapshot:mn,resolveSnapshotPath:mn,snapshotSaved:mn,onAfterSuiteRun:mn,onCancel:mn,getCountOfFailedTests:()=>0,sendLog:mn,resolveSnapshotRawPath:mn,readSnapshotFile:mn,saveSnapshotFile:mn,readTestFile:async d=>t.sources[d],removeSnapshotFile:mn,onUnhandledError:yd,saveTestFile:mn,getProvidedContext:()=>({}),getTestFiles:mn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=d.headers.get("content-type")?.toLowerCase()||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await d.arrayBuffer()),m=ace(oce(v));t=Yd(m)}else t=Yd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const dt=(function(){return pr?cce():vA(Wae,{reactive:(t,r)=>r==="state"?ir(t):nn(t),handlers:{onTestAnnotate(t,r){Ce.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Ce.recordTestArtifact(t,r)},onTaskUpdate(t,r){Ce.resumeRun(t,r),Yu.value="running"},onSpecsCollected(t,r){Ce.startTime=r||performance.now()},onFinished(t,r,o,s){Ce.endRun(s),Ki.value=(r||[]).map(zw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),Gs=nn({}),Po=Ve("CONNECTING"),jt=Se(()=>{const e=ao.value;return e?gr(e):void 0}),ex=Se(()=>ep(jt.value).map(e=>e?.logs||[]).flat()||[]);function gr(e){const t=dt.state.idMap.get(e);return t||void 0}const uce=Se(()=>Po.value==="OPEN"),bd=Se(()=>Po.value==="CONNECTING");Se(()=>Po.value==="CLOSED");function fce(){return lp(dt.state.getFiles())}function tx(e){delete e.result;const t=Ce.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ra(e)))for(const r of e.tasks)tx(r)}function dce(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,ep(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,$n(o)&&(o.collectDuration=void 0))})}function lp(e){return dce(e),Ce.startRun(),dt.rpc.rerun(e.map(t=>t.filepath),!0)}function hce(e){return tx(e),Ce.startRun(),dt.rpc.rerunTask(e.id)}const Yn=window.__vitest_browser_runner__;window.__vitest_ui_api__=Fae;_t(()=>dt.ws,e=>{Po.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Po.value="OPEN",dt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([dt.rpc.getFiles(),dt.rpc.getConfig(),dt.rpc.getUnhandledErrors(),dt.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await dt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=gw(h,d,f);return p.mode="skip",p})),Ce.loadFiles(t,s),dt.state.collectFiles(t),Ce.startRun(),Ki.value=(o||[]).map(zw),Gs.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Po.value==="CONNECTING"&&(Po.value="CLOSED")},1e3)})},{immediate:!0});const pce=["aria-label","opacity","disabled","hover"],Et=ot({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(se(),me("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Sn(t.$slots,"default",{},()=>[ne("span",{class:st(e.icon),ma:"",block:""},null,2)])],10,pce))}}),gce={h:"full",flex:"~ col"},vce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},mce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},yce={class:"pointer-events-none","text-sm":""},bce={key:0},wce={id:"tester-container",relative:""},xce=["data-scale"],d0=20,Sce=100,_ce=ot({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return tr.value[0]===v[0]&&tr.value[1]===v[1]}const{width:o,height:s}=aw();async function c(p){tr.value=t[p],Yn?.provider==="webdriverio"&&Vw()}const f=Se(()=>{if(Yn?.provider==="webdriverio"){const[x,C]=tr.value;return{width:x,height:C}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-d0,b=s.value-Sce;return{width:m,height:b}}),d=Se(()=>{if(Yn?.provider==="webdriverio")return 1;const[p,v]=tr.value,{width:m,height:b}=f.value,x=m>p?1:m/p,C=b>v?1:b/v;return Math.min(1,x,C)}),h=Se(()=>{const p=f.value.width,v=tr.value[0];return`${Math.trunc((p+d0-v)/2)}px`});return(p,v)=>{const m=Dr("tooltip");return se(),me("div",gce,[ne("div",vce,[ct(Re(Et,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=b=>J(zae)())},null,512),[[Zi,J(At).navigation<=15],[m,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ne("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ne("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Re(Et,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=b=>J($ae)())},null,512),[[Zi,J(At).details.main>0],[m,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=b=>J(Dae)())},null,512),[[Zi,J(At).details.main===0],[m,"Show Right Panel",void 0,{bottom:!0}]])]),ne("div",mce,[ct(Re(Et,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=b=>c("small-mobile"))},null,8,["active"]),[[m,"Small mobile",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=b=>c("large-mobile"))},null,8,["active"]),[[m,"Large mobile",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=b=>c("tablet"))},null,8,["active"]),[[m,"Tablet",void 0,{bottom:!0}]]),ne("span",yce,[ht($e(J(tr)[0])+"x"+$e(J(tr)[1])+"px ",1),d.value<1?(se(),me("span",bce,"("+$e((d.value*100).toFixed(0))+"%)",1)):Ue("",!0)])]),ne("div",wce,[ne("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:tn({"--viewport-width":`${J(tr)[0]}px`,"--viewport-height":`${J(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,xce)])])}}}),kce=Ei(_ce,[["__scopeId","data-v-2e86b8c3"]]),Tce={"text-2xl":""},Cce={"text-lg":"",op50:""},Ece=ot({__name:"ConnectionOverlay",setup(e){return(t,r)=>J(uce)?Ue("",!0):(se(),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)=>J(dt).reconnect&&J(dt).reconnect(...o))},[ne("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(J(bd)?"animate-pulse":"")},[ne("div",{text:"5xl",class:st(J(bd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ne("div",Tce,$e(J(bd)?"Connecting...":"Disconnected"),1),ne("div",Cce," Check your terminal or start a new server with `"+$e(J(Yn)?`vitest --browser=${J(Yn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Ace={h:"full",flex:"~ col"},Lce={"flex-auto":"","py-1":"","bg-white":""},Mce=["src"],h0=ot({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(se(),me("div",Ace,[r[0]||(r[0]=ne("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ne("div",{class:"i-carbon:folder-details-reference"}),ne("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ne("div",Lce,[ne("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,Mce)])]))}}),Nce={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Oce={"font-bold":""},Rce={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Pce=["font-bold"],Ice={text:"red500/70"},$ce={key:1,text:"sm","mb-2":""},Dce={"font-bold":""},zce={key:2,text:"sm","mb-2":""},Fce={"font-bold":""},Hce=ot({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(se(),me(nt,null,[ne("h4",Nce,[ne("span",Oce,[ht($e(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(se(),me(nt,{key:0},[ht(":")],64)):Ue("",!0)]),ht(" "+$e(e.error.message),1)]),e.error.stacks?.length?(se(),me("p",Rce,[(se(!0),me(nt,null,hr(e.error.stacks,(o,s)=>(se(),me("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[ht("❯ "+$e(o.method)+" "+$e(o.file)+":",1),ne("span",Ice,$e(o.line)+":"+$e(o.column),1),r[0]||(r[0]=ne("br",null,null,-1))],8,Pce))),128))])):Ue("",!0),e.error.VITEST_TEST_PATH?(se(),me("p",$ce,[r[1]||(r[1]=ht(" This error originated in ",-1)),ne("span",Dce,$e(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=ht(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Ue("",!0),e.error.VITEST_TEST_NAME?(se(),me("div",zce,[r[3]||(r[3]=ht(" The latest test that might've caused the error is ",-1)),ne("span",Fce,$e(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=ht(". It might mean one of the following:",-1)),r[5]||(r[5]=ne("br",null,null,-1)),r[6]||(r[6]=ne("ul",null,[ne("li",null," The error was thrown, while Vitest was running this test. "),ne("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ue("",!0)],64))}}),Bce={"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:""},Wce={class:"number","data-testid":"num-files"},qce={class:"number"},jce={class:"number","text-red5":""},Uce={class:"number","text-red5":""},Vce={class:"number","text-red5":""},Gce={class:"number","data-testid":"run-time"},Kce={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Xce={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Yce={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Zce=ot({__name:"TestFilesEntry",setup(e){return(t,r)=>(se(),me(nt,null,[ne("div",Bce,[r[8]||(r[8]=ne("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ne("div",null,"Files",-1)),ne("div",Wce,$e(J(Ce).summary.files),1),J(Ce).summary.filesSuccess?(se(),me(nt,{key:0},[r[0]||(r[0]=ne("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ne("div",null,"Pass",-1)),ne("div",qce,$e(J(Ce).summary.filesSuccess),1)],64)):Ue("",!0),J(Ce).summary.filesFailed?(se(),me(nt,{key:1},[r[2]||(r[2]=ne("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ne("div",null," Fail ",-1)),ne("div",jce,$e(J(Ce).summary.filesFailed),1)],64)):Ue("",!0),J(Ce).summary.filesSnapshotFailed?(se(),me(nt,{key:2},[r[4]||(r[4]=ne("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ne("div",null," Snapshot Fail ",-1)),ne("div",Uce,$e(J(Ce).summary.filesSnapshotFailed),1)],64)):Ue("",!0),J(Ki).length?(se(),me(nt,{key:3},[r[6]||(r[6]=ne("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ne("div",null," Errors ",-1)),ne("div",Vce,$e(J(Ki).length),1)],64)):Ue("",!0),r[10]||(r[10]=ne("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ne("div",null,"Time",-1)),ne("div",Gce,$e(J(Ce).summary.time),1)]),J(Ki).length?(se(),me("div",Kce,[r[15]||(r[15]=ne("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ne("p",Xce,[ht(" Vitest caught "+$e(J(Ki).length)+" error"+$e(J(Ki).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ne("br",null,null,-1)),r[13]||(r[13]=ht(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),ne("details",Yce,[r[14]||(r[14]=ne("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(se(!0),me(nt,null,hr(J(Ki),(o,s)=>(se(),Je(Hce,{key:s,error:o},null,8,["error"]))),128))])])):Ue("",!0)],64))}}),Jce=Ei(Zce,[["__scopeId","data-v-1bd0f2ea"]]),Qce={"p-2":"","text-center":"",flex:""},eue={"text-4xl":"","min-w-2em":""},tue={"text-md":""},$l=ot({__name:"DashboardEntry",setup(e){return(t,r)=>(se(),me("div",Qce,[ne("div",null,[ne("div",eue,[Sn(t.$slots,"body")]),ne("div",tue,[Sn(t.$slots,"header")])])]))}}),nue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},rue=ot({__name:"TestsEntry",setup(e){function t(r){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,r!=="total"&&(Ze[r]=!0)}return(r,o)=>(se(),me("div",nue,[Re($l,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:it(()=>[...o[4]||(o[4]=[ht(" Pass ",-1)])]),body:it(()=>[ht($e(J(Ce).summary.testsSuccess),1)]),_:1}),Re($l,{class:st({"text-red5":J(Ce).summary.testsFailed,op50:!J(Ce).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:it(()=>[...o[5]||(o[5]=[ht(" Fail ",-1)])]),body:it(()=>[ht($e(J(Ce).summary.testsFailed),1)]),_:1},8,["class"]),J(Ce).summary.testsSkipped?(se(),Je($l,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:it(()=>[...o[6]||(o[6]=[ht(" Skip ",-1)])]),body:it(()=>[ht($e(J(Ce).summary.testsSkipped),1)]),_:1})):Ue("",!0),J(Ce).summary.testsTodo?(se(),Je($l,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>[...o[7]||(o[7]=[ht(" Todo ",-1)])]),body:it(()=>[ht($e(J(Ce).summary.testsTodo),1)]),_:1})):Ue("",!0),Re($l,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:it(()=>[...o[8]||(o[8]=[ht(" Total ",-1)])]),body:it(()=>[ht($e(J(Ce).summary.totalTests),1)]),_:1})]))}}),iue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},oue={key:0,class:"text-gray-5"},sue={"aria-labelledby":"tests",m:"y-4 x-2"},lue=ot({__name:"TestsFilesContainer",setup(e){return(t,r)=>(se(),me("div",iue,[J(Ce).summary.files===0&&J(Ss)?(se(),me("div",oue," No tests found ")):Ue("",!0),ne("section",sue,[Re(rue)]),Re(Jce)]))}}),aue={h:"full",flex:"~ col"},cue={class:"scrolls","flex-auto":"","py-1":""},p0=ot({__name:"Dashboard",setup(e){return(t,r)=>(se(),me("div",aue,[r[0]||(r[0]=ne("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ne("div",{class:"i-carbon-dashboard"}),ne("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ne("div",cue,[Re(lue)])]))}});function uue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var ih="http://www.w3.org/1999/xhtml";const g0={svg:"http://www.w3.org/2000/svg",xhtml:ih,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),g0.hasOwnProperty(t)?{space:g0[t],local:e}:e}function fue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ih&&t.documentElement.namespaceURI===ih?t.createElement(e):t.createElementNS(r,e)}}function due(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nx(e){var t=Zu(e);return(t.local?due:fue)(t)}function hue(){}function ap(e){return e==null?hue:function(){return this.querySelector(e)}}function pue(e){typeof e!="function"&&(e=ap(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 sr(o,this._parents)}function gue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vue(){return[]}function rx(e){return e==null?vue:function(){return this.querySelectorAll(e)}}function mue(e){return function(){return gue(e.apply(this,arguments))}}function yue(e){typeof e=="function"?e=mue(e):e=rx(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 sr(o,s)}function ix(e){return function(){return this.matches(e)}}function ox(e){return function(t){return t.matches(e)}}var bue=Array.prototype.find;function wue(e){return function(){return bue.call(this.children,e)}}function xue(){return this.firstElementChild}function Sue(e){return this.select(e==null?xue:wue(typeof e=="function"?e:ox(e)))}var _ue=Array.prototype.filter;function kue(){return Array.from(this.children)}function Tue(e){return function(){return _ue.call(this.children,e)}}function Cue(e){return this.selectAll(e==null?kue:Tue(typeof e=="function"?e:ox(e)))}function Eue(e){typeof e!="function"&&(e=ix(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 sr(o,this._parents)}function sx(e){return new Array(e.length)}function Aue(){return new sr(this._enter||this._groups.map(sx),this._parents)}function yu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}yu.prototype={constructor:yu,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 Lue(e){return function(){return e}}function Mue(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 yu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Nue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<m;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new yu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Oue(e){return e.__data__}function Rue(e,t){if(!arguments.length)return Array.from(this,Oue);var r=t?Nue:Mue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Lue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,x=Pue(e.call(v,v&&v.__data__,p,o)),C=x.length,L=d[p]=new Array(C),M=f[p]=new Array(C),A=h[p]=new Array(b);r(v,m,L,M,A,x,t);for(var R=0,B=0,E,W;R<C;++R)if(E=L[R]){for(R>=B&&(B=R+1);!(W=M[B])&&++B<C;);E._next=W||null}}return f=new sr(f,o),f._enter=d,f._exit=h,f}function Pue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Iue(){return new sr(this._exit||this._groups.map(sx),this._parents)}function $ue(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 Due(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),x,C=0;C<m;++C)(x=p[C]||v[C])&&(b[C]=x);for(;h<s;++h)d[h]=r[h];return new sr(d,this._parents)}function zue(){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 Fue(e){e||(e=Hue);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 sr(s,this._parents).order()}function Hue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Bue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Wue(){return Array.from(this)}function que(){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 jue(){let e=0;for(const t of this)++e;return e}function Uue(){return!this.node()}function Vue(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 Gue(e){return function(){this.removeAttribute(e)}}function Kue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Xue(e,t){return function(){this.setAttribute(e,t)}}function Yue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Jue(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 Que(e,t){var r=Zu(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?Kue:Gue:typeof t=="function"?r.local?Jue:Zue:r.local?Yue:Xue)(r,t))}function lx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function efe(e){return function(){this.style.removeProperty(e)}}function tfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function nfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function rfe(e,t,r){return arguments.length>1?this.each((t==null?efe:typeof t=="function"?nfe:tfe)(e,t,r??"")):Ks(this.node(),e)}function Ks(e,t){return e.style.getPropertyValue(t)||lx(e).getComputedStyle(e,null).getPropertyValue(t)}function ife(e){return function(){delete this[e]}}function ofe(e,t){return function(){this[e]=t}}function sfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function lfe(e,t){return arguments.length>1?this.each((t==null?ife:typeof t=="function"?sfe:ofe)(e,t)):this.node()[e]}function ax(e){return e.trim().split(/^|\s+/)}function cp(e){return e.classList||new cx(e)}function cx(e){this._node=e,this._names=ax(e.getAttribute("class")||"")}cx.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 ux(e,t){for(var r=cp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function fx(e,t){for(var r=cp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function afe(e){return function(){ux(this,e)}}function cfe(e){return function(){fx(this,e)}}function ufe(e,t){return function(){(t.apply(this,arguments)?ux:fx)(this,e)}}function ffe(e,t){var r=ax(e+"");if(arguments.length<2){for(var o=cp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?ufe:t?afe:cfe)(r,t))}function dfe(){this.textContent=""}function hfe(e){return function(){this.textContent=e}}function pfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function gfe(e){return arguments.length?this.each(e==null?dfe:(typeof e=="function"?pfe:hfe)(e)):this.node().textContent}function vfe(){this.innerHTML=""}function mfe(e){return function(){this.innerHTML=e}}function yfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function bfe(e){return arguments.length?this.each(e==null?vfe:(typeof e=="function"?yfe:mfe)(e)):this.node().innerHTML}function wfe(){this.nextSibling&&this.parentNode.appendChild(this)}function xfe(){return this.each(wfe)}function Sfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _fe(){return this.each(Sfe)}function kfe(e){var t=typeof e=="function"?e:nx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Tfe(){return null}function Cfe(e,t){var r=typeof e=="function"?e:nx(e),o=t==null?Tfe:typeof t=="function"?t:ap(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Efe(){var e=this.parentNode;e&&e.removeChild(this)}function Afe(){return this.each(Efe)}function Lfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nfe(e){return this.select(e?Mfe:Lfe)}function Ofe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Rfe(e){return function(t){e.call(this,t,this.__data__)}}function Pfe(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 Ife(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 $fe(e,t,r){return function(){var o=this.__on,s,c=Rfe(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 Dfe(e,t,r){var o=Pfe(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?$fe:Ife,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function dx(e,t,r){var o=lx(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 zfe(e,t){return function(){return dx(this,e,t)}}function Ffe(e,t){return function(){return dx(this,e,t.apply(this,arguments))}}function Hfe(e,t){return this.each((typeof t=="function"?Ffe:zfe)(e,t))}function*Bfe(){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 hx=[null];function sr(e,t){this._groups=e,this._parents=t}function Da(){return new sr([[document.documentElement]],hx)}function Wfe(){return this}sr.prototype=Da.prototype={constructor:sr,select:pue,selectAll:yue,selectChild:Sue,selectChildren:Cue,filter:Eue,data:Rue,enter:Aue,exit:Iue,join:$ue,merge:Due,selection:Wfe,order:zue,sort:Fue,call:Bue,nodes:Wue,node:que,size:jue,empty:Uue,each:Vue,attr:Que,style:rfe,property:lfe,classed:ffe,text:gfe,html:bfe,raise:xfe,lower:_fe,append:kfe,insert:Cfe,remove:Afe,clone:Nfe,datum:Ofe,on:Dfe,dispatch:Hfe,[Symbol.iterator]:Bfe};function Gn(e){return typeof e=="string"?new sr([[document.querySelector(e)]],[document.documentElement]):new sr([[e]],hx)}function qfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pi(e,t){if(e=qfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Xs=class di{x;y;static of([t,r]){return new di(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new di(this.x+t.x,this.y+t.y)}subtract(t){return new di(this.x-t.x,this.y-t.y)}multiply(t){return new di(this.x*t,this.y*t)}divide(t){return new di(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 di(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 di(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new di(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},jfe={value:()=>{}};function za(){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 Wc(r)}function Wc(e){this._=e}function Ufe(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}})}Wc.prototype=za.prototype={constructor:Wc,on:function(e,t){var r=this._,o=Ufe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Vfe(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]=v0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=v0(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 Wc(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 Vfe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function v0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=jfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Gfe={passive:!1},wa={capture:!0,passive:!1};function wd(e){e.stopImmediatePropagation()}function Ds(e){e.preventDefault(),e.stopImmediatePropagation()}function px(e){var t=e.document.documentElement,r=Gn(e).on("dragstart.drag",Ds,wa);"onselectstart"in t?r.on("selectstart.drag",Ds,wa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function gx(e,t){var r=e.document.documentElement,o=Gn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ds,wa),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 Lc=e=>()=>e;function oh(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}})}oh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Kfe(e){return!e.ctrlKey&&!e.button}function Xfe(){return this.parentNode}function Yfe(e,t){return t??{x:e.x,y:e.y}}function Zfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jfe(){var e=Kfe,t=Xfe,r=Yfe,o=Zfe,s={},c=za("start","drag","end"),f=0,d,h,p,v,m=0;function b(E){E.on("mousedown.drag",x).filter(o).on("touchstart.drag",M).on("touchmove.drag",A,Gfe).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(E,W){if(!(v||!e.call(this,E,W))){var U=B(this,t.call(this,E,W),E,W,"mouse");U&&(Gn(E.view).on("mousemove.drag",C,wa).on("mouseup.drag",L,wa),px(E.view),wd(E),p=!1,d=E.clientX,h=E.clientY,U("start",E))}}function C(E){if(Ds(E),!p){var W=E.clientX-d,U=E.clientY-h;p=W*W+U*U>m}s.mouse("drag",E)}function L(E){Gn(E.view).on("mousemove.drag mouseup.drag",null),gx(E.view,p),Ds(E),s.mouse("end",E)}function M(E,W){if(e.call(this,E,W)){var U=E.changedTouches,oe=t.call(this,E,W),te=U.length,Z,K;for(Z=0;Z<te;++Z)(K=B(this,oe,E,W,U[Z].identifier,U[Z]))&&(wd(E),K("start",E,U[Z]))}}function A(E){var W=E.changedTouches,U=W.length,oe,te;for(oe=0;oe<U;++oe)(te=s[W[oe].identifier])&&(Ds(E),te("drag",E,W[oe]))}function R(E){var W=E.changedTouches,U=W.length,oe,te;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),oe=0;oe<U;++oe)(te=s[W[oe].identifier])&&(wd(E),te("end",E,W[oe]))}function B(E,W,U,oe,te,Z){var K=c.copy(),V=pi(Z||U,W),P,O,N;if((N=r.call(E,new oh("beforestart",{sourceEvent:U,target:b,identifier:te,active:f,x:V[0],y:V[1],dx:0,dy:0,dispatch:K}),oe))!=null)return P=N.x-V[0]||0,O=N.y-V[1]||0,function _(z,H,re){var ve=V,we;switch(z){case"start":s[te]=_,we=f++;break;case"end":delete s[te],--f;case"drag":V=pi(re||H,W),we=f;break}K.call(z,E,new oh(z,{sourceEvent:H,subject:N,target:b,identifier:te,active:we,x:V[0]+P,y:V[1]+O,dx:V[0]-ve[0],dy:V[1]-ve[1],dispatch:K}),oe)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:Lc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:Lc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Lc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Lc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(m=(E=+E)*E,b):Math.sqrt(m)},b}function up(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Fa(){}var xa=.7,bu=1/xa,zs="\\s*([+-]?\\d+)\\s*",Sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qfe=/^#([0-9a-f]{3,8})$/,ede=new RegExp(`^rgb\\(${zs},${zs},${zs}\\)$`),tde=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),nde=new RegExp(`^rgba\\(${zs},${zs},${zs},${Sa}\\)$`),rde=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${Sa}\\)$`),ide=new RegExp(`^hsl\\(${Sa},${Zr},${Zr}\\)$`),ode=new RegExp(`^hsla\\(${Sa},${Zr},${Zr},${Sa}\\)$`),m0={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};up(Fa,_a,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:y0,formatHex:y0,formatHex8:sde,formatHsl:lde,formatRgb:b0,toString:b0});function y0(){return this.rgb().formatHex()}function sde(){return this.rgb().formatHex8()}function lde(){return mx(this).formatHsl()}function b0(){return this.rgb().formatRgb()}function _a(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Qfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?w0(t):r===3?new Xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Mc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Mc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ede.exec(e))?new Xn(t[1],t[2],t[3],1):(t=tde.exec(e))?new Xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nde.exec(e))?Mc(t[1],t[2],t[3],t[4]):(t=rde.exec(e))?Mc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ide.exec(e))?_0(t[1],t[2]/100,t[3]/100,1):(t=ode.exec(e))?_0(t[1],t[2]/100,t[3]/100,t[4]):m0.hasOwnProperty(e)?w0(m0[e]):e==="transparent"?new Xn(NaN,NaN,NaN,0):null}function w0(e){return new Xn(e>>16&255,e>>8&255,e&255,1)}function Mc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Xn(e,t,r,o)}function ade(e){return e instanceof Fa||(e=_a(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function sh(e,t,r,o){return arguments.length===1?ade(e):new Xn(e,t,r,o??1)}function Xn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}up(Xn,sh,vx(Fa,{brighter(e){return e=e==null?bu:Math.pow(bu,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(Fo(this.r),Fo(this.g),Fo(this.b),wu(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:x0,formatHex:x0,formatHex8:cde,formatRgb:S0,toString:S0}));function x0(){return`#${Io(this.r)}${Io(this.g)}${Io(this.b)}`}function cde(){return`#${Io(this.r)}${Io(this.g)}${Io(this.b)}${Io((isNaN(this.opacity)?1:this.opacity)*255)}`}function S0(){const e=wu(this.opacity);return`${e===1?"rgb(":"rgba("}${Fo(this.r)}, ${Fo(this.g)}, ${Fo(this.b)}${e===1?")":`, ${e})`}`}function wu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Io(e){return e=Fo(e),(e<16?"0":"")+e.toString(16)}function _0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,r,o)}function mx(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof Fa||(e=_a(e)),!e)return new Lr;if(e instanceof Lr)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 Lr(f,d,h,e.opacity)}function ude(e,t,r,o){return arguments.length===1?mx(e):new Lr(e,t,r,o??1)}function Lr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}up(Lr,ude,vx(Fa,{brighter(e){return e=e==null?bu:Math.pow(bu,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Lr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Xn(xd(e>=240?e-240:e+120,s,o),xd(e,s,o),xd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Lr(k0(this.h),Nc(this.s),Nc(this.l),wu(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=wu(this.opacity);return`${e===1?"hsl(":"hsla("}${k0(this.h)}, ${Nc(this.s)*100}%, ${Nc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function k0(e){return e=(e||0)%360,e<0?e+360:e}function Nc(e){return Math.max(0,Math.min(1,e||0))}function xd(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 yx=e=>()=>e;function fde(e,t){return function(r){return e+r*t}}function dde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function hde(e){return(e=+e)==1?bx:function(t,r){return r-t?dde(t,r,e):yx(isNaN(t)?r:t)}}function bx(e,t){var r=t-e;return r?fde(e,r):yx(isNaN(e)?t:e)}const T0=(function e(t){var r=hde(t);function o(s,c){var f=r((s=sh(s)).r,(c=sh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=bx(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 Xi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var lh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sd=new RegExp(lh.source,"g");function pde(e){return function(){return e}}function gde(e){return function(t){return e(t)+""}}function vde(e,t){var r=lh.lastIndex=Sd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=lh.exec(e))&&(s=Sd.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:Xi(o,s)})),r=Sd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?gde(h[0].x):pde(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 C0=180/Math.PI,ah={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wx(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)*C0,skewX:Math.atan(h)*C0,scaleX:f,scaleY:d}}var Oc;function mde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ah:wx(t.a,t.b,t.c,t.d,t.e,t.f)}function yde(e){return e==null||(Oc||(Oc=document.createElementNS("http://www.w3.org/2000/svg","g")),Oc.setAttribute("transform",e),!(e=Oc.transform.baseVal.consolidate()))?ah:(e=e.matrix,wx(e.a,e.b,e.c,e.d,e.e,e.f))}function xx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,C){if(p!==m||v!==b){var L=x.push("translate(",null,t,null,r);C.push({i:L-4,x:Xi(p,m)},{i:L-2,x:Xi(v,b)})}else(m||b)&&x.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Xi(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:Xi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,x,C){if(p!==m||v!==b){var L=x.push(s(x)+"scale(",null,",",null,")");C.push({i:L-4,x:Xi(p,m)},{i:L-2,x:Xi(v,b)})}else(m!==1||b!==1)&&x.push(s(x)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(x){for(var C=-1,L=b.length,M;++C<L;)m[(M=b[C]).i]=M.x(x);return m.join("")}}}var bde=xx(mde,"px, ","px)","deg)"),wde=xx(yde,", ",")",")"),xde=1e-12;function E0(e){return((e=Math.exp(e))+1/e)/2}function Sde(e){return((e=Math.exp(e))-1/e)/2}function _de(e){return((e=Math.exp(2*e))-1)/(e+1)}const kde=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],x=v-d,C=m-h,L=x*x+C*C,M,A;if(L<xde)A=Math.log(b/p)/t,M=function(oe){return[d+oe*x,h+oe*C,p*Math.exp(t*oe*A)]};else{var R=Math.sqrt(L),B=(b*b-p*p+o*L)/(2*p*r*R),E=(b*b-p*p-o*L)/(2*b*r*R),W=Math.log(Math.sqrt(B*B+1)-B),U=Math.log(Math.sqrt(E*E+1)-E);A=(U-W)/t,M=function(oe){var te=oe*A,Z=E0(W),K=p/(r*R)*(Z*_de(t*te+W)-Sde(W));return[d+K*x,h+K*C,p*Z/E0(t*te+W)]}}return M.duration=A*1e3*t/Math.SQRT2,M}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s})(Math.SQRT2,2,4);var Ys=0,Bl=0,Dl=0,Sx=1e3,xu,Wl,Su=0,Bo=0,Ju=0,ka=typeof performance=="object"&&performance.now?performance:Date,_x=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function fp(){return Bo||(_x(Tde),Bo=ka.now()+Ju)}function Tde(){Bo=0}function _u(){this._call=this._time=this._next=null}_u.prototype=dp.prototype={constructor:_u,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?fp():+r)+(t==null?0:+t),!this._next&&Wl!==this&&(Wl?Wl._next=this:xu=this,Wl=this),this._call=e,this._time=r,ch()},stop:function(){this._call&&(this._call=null,this._time=1/0,ch())}};function dp(e,t,r){var o=new _u;return o.restart(e,t,r),o}function Cde(){fp(),++Ys;for(var e=xu,t;e;)(t=Bo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ys}function A0(){Bo=(Su=ka.now())+Ju,Ys=Bl=0;try{Cde()}finally{Ys=0,Ade(),Bo=0}}function Ede(){var e=ka.now(),t=e-Su;t>Sx&&(Ju-=t,Su=e)}function Ade(){for(var e,t=xu,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:xu=r);Wl=e,ch(o)}function ch(e){if(!Ys){Bl&&(Bl=clearTimeout(Bl));var t=e-Bo;t>24?(e<1/0&&(Bl=setTimeout(A0,e-ka.now()-Ju)),Dl&&(Dl=clearInterval(Dl))):(Dl||(Su=ka.now(),Dl=setInterval(Ede,Sx)),Ys=1,_x(A0))}}function L0(e,t,r){var o=new _u;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Lde=za("start","end","cancel","interrupt"),Mde=[],kx=0,M0=1,uh=2,qc=3,N0=4,fh=5,jc=6;function Qu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Nde(e,r,{name:t,index:o,group:s,on:Lde,tween:Mde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:kx})}function hp(e,t){var r=zr(e,t);if(r.state>kx)throw new Error("too late; already scheduled");return r}function Qr(e,t){var r=zr(e,t);if(r.state>qc)throw new Error("too late; already running");return r}function zr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Nde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=dp(c,0,r.time);function c(p){r.state=M0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,x;if(r.state!==M0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===qc)return L0(f);x.state===N0?(x.state=jc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=jc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(L0(function(){r.state===qc&&(r.state=N0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=uh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===uh){for(r.state=qc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=x);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=fh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===fh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=jc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Uc(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>uh&&o.state<fh,o.state=jc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Ode(e){return this.each(function(){Uc(this,e)})}function Rde(e,t){var r,o;return function(){var s=Qr(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 Pde(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Qr(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 Ide(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=zr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Rde:Pde)(r,e,t))}function pp(e,t,r){var o=e._id;return e.each(function(){var s=Qr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return zr(s,o).value[t]}}function Tx(e,t){var r;return(typeof t=="number"?Xi:t instanceof _a?T0:(r=_a(t))?(t=r,T0):vde)(e,t)}function $de(e){return function(){this.removeAttribute(e)}}function Dde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zde(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 Fde(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 Hde(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 Bde(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 Wde(e,t){var r=Zu(e),o=r==="transform"?wde:Tx;return this.attrTween(e,typeof t=="function"?(r.local?Bde:Hde)(r,o,pp(this,"attr."+e,t)):t==null?(r.local?Dde:$de)(r):(r.local?Fde:zde)(r,o,t))}function qde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function jde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ude(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&jde(e,c)),r}return s._value=t,s}function Vde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&qde(e,c)),r}return s._value=t,s}function Gde(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=Zu(e);return this.tween(r,(o.local?Ude:Vde)(o,t))}function Kde(e,t){return function(){hp(this,e).delay=+t.apply(this,arguments)}}function Xde(e,t){return t=+t,function(){hp(this,e).delay=t}}function Yde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Kde:Xde)(t,e)):zr(this.node(),t).delay}function Zde(e,t){return function(){Qr(this,e).duration=+t.apply(this,arguments)}}function Jde(e,t){return t=+t,function(){Qr(this,e).duration=t}}function Qde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Zde:Jde)(t,e)):zr(this.node(),t).duration}function ehe(e,t){if(typeof t!="function")throw new Error;return function(){Qr(this,e).ease=t}}function the(e){var t=this._id;return arguments.length?this.each(ehe(t,e)):zr(this.node(),t).ease}function nhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Qr(this,e).ease=r}}function rhe(e){if(typeof e!="function")throw new Error;return this.each(nhe(this._id,e))}function ihe(e){typeof e!="function"&&(e=ix(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 _i(o,this._parents,this._name,this._id)}function ohe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(m[x]=b);for(;d<o;++d)f[d]=t[d];return new _i(f,this._parents,this._name,this._id)}function she(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 lhe(e,t,r){var o,s,c=she(t)?hp:Qr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function ahe(e,t){var r=this._id;return arguments.length<2?zr(this.node(),r).on.on(e):this.each(lhe(r,e,t))}function che(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function uhe(){return this.on("end.remove",che(this._id))}function fhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ap(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,Qu(p[b],t,r,b,p,zr(v,r)));return new _i(c,this._parents,t,r)}function dhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=rx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),x,C=zr(v,r),L=0,M=b.length;L<M;++L)(x=b[L])&&Qu(x,t,r,L,b,C);c.push(b),f.push(v)}return new _i(c,f,t,r)}var hhe=Da.prototype.constructor;function phe(){return new hhe(this._groups,this._parents)}function ghe(e,t){var r,o,s;return function(){var c=Ks(this,e),f=(this.style.removeProperty(e),Ks(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Cx(e){return function(){this.style.removeProperty(e)}}function vhe(e,t,r){var o,s=r+"",c;return function(){var f=Ks(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function mhe(e,t,r){var o,s,c;return function(){var f=Ks(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ks(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function yhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Qr(this,e),p=h.on,v=h.value[c]==null?d||(d=Cx(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function bhe(e,t,r){var o=(e+="")=="transform"?bde:Tx;return t==null?this.styleTween(e,ghe(e,o)).on("end.style."+e,Cx(e)):typeof t=="function"?this.styleTween(e,mhe(e,o,pp(this,"style."+e,t))).each(yhe(this._id,e)):this.styleTween(e,vhe(e,o,t),r).on("end.style."+e,null)}function whe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function xhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&whe(e,f,r)),o}return c._value=t,c}function She(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,xhe(e,t,r??""))}function _he(e){return function(){this.textContent=e}}function khe(e){return function(){var t=e(this);this.textContent=t??""}}function The(e){return this.tween("text",typeof e=="function"?khe(pp(this,"text",e)):_he(e==null?"":e+""))}function Che(e){return function(t){this.textContent=e.call(this,t)}}function Ehe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Che(s)),t}return o._value=e,o}function Ahe(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,Ehe(e))}function Lhe(){for(var e=this._name,t=this._id,r=Ex(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=zr(h,t);Qu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new _i(o,this._parents,e,r)}function Mhe(){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=Qr(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 Nhe=0;function _i(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Ex(){return++Nhe}var ui=Da.prototype;_i.prototype={constructor:_i,select:fhe,selectAll:dhe,selectChild:ui.selectChild,selectChildren:ui.selectChildren,filter:ihe,merge:ohe,selection:phe,transition:Lhe,call:ui.call,nodes:ui.nodes,node:ui.node,size:ui.size,empty:ui.empty,each:ui.each,on:ahe,attr:Wde,attrTween:Gde,style:bhe,styleTween:She,text:The,textTween:Ahe,remove:uhe,tween:Ide,delay:Yde,duration:Qde,ease:the,easeVarying:rhe,end:Mhe,[Symbol.iterator]:ui[Symbol.iterator]};function Ohe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Rhe={time:null,delay:0,duration:250,ease:Ohe};function Phe(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 Ihe(e){var t,r;e instanceof _i?(t=e._id,e=e._name):(t=Ex(),(r=Rhe).time=fp(),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])&&Qu(h,e,t,p,f,r||Phe(h,t));return new _i(o,this._parents,e,t)}Da.prototype.interrupt=Ode;Da.prototype.transition=Ihe;const Rc=e=>()=>e;function $he(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 yi(e,t,r){this.k=e,this.x=t,this.y=r}yi.prototype={constructor:yi,scale:function(e){return e===1?this:new yi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new yi(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 gp=new yi(1,0,0);yi.prototype;function _d(e){e.stopImmediatePropagation()}function zl(e){e.preventDefault(),e.stopImmediatePropagation()}function Dhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function zhe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function O0(){return this.__zoom||gp}function Fhe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Hhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bhe(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 Whe(){var e=Dhe,t=zhe,r=Bhe,o=Fhe,s=Hhe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=kde,p=za("start","zoom","end"),v,m,b,x=500,C=150,L=0,M=10;function A(N){N.property("__zoom",O0).on("wheel.zoom",te,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",K).filter(s).on("touchstart.zoom",V).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(N,_,z,H){var re=N.selection?N.selection():N;re.property("__zoom",O0),N!==re?W(N,_,z,H):re.interrupt().each(function(){U(this,arguments).event(H).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},A.scaleBy=function(N,_,z,H){A.scaleTo(N,function(){var re=this.__zoom.k,ve=typeof _=="function"?_.apply(this,arguments):_;return re*ve},z,H)},A.scaleTo=function(N,_,z,H){A.transform(N,function(){var re=t.apply(this,arguments),ve=this.__zoom,we=z==null?E(re):typeof z=="function"?z.apply(this,arguments):z,Pe=ve.invert(we),je=typeof _=="function"?_.apply(this,arguments):_;return r(B(R(ve,je),we,Pe),re,f)},z,H)},A.translateBy=function(N,_,z,H){A.transform(N,function(){return r(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),f)},null,H)},A.translateTo=function(N,_,z,H,re){A.transform(N,function(){var ve=t.apply(this,arguments),we=this.__zoom,Pe=H==null?E(ve):typeof H=="function"?H.apply(this,arguments):H;return r(gp.translate(Pe[0],Pe[1]).scale(we.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof z=="function"?-z.apply(this,arguments):-z),ve,f)},H,re)};function R(N,_){return _=Math.max(c[0],Math.min(c[1],_)),_===N.k?N:new yi(_,N.x,N.y)}function B(N,_,z){var H=_[0]-z[0]*N.k,re=_[1]-z[1]*N.k;return H===N.x&&re===N.y?N:new yi(N.k,H,re)}function E(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function W(N,_,z,H){N.on("start.zoom",function(){U(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(H).end()}).tween("zoom",function(){var re=this,ve=arguments,we=U(re,ve).event(H),Pe=t.apply(re,ve),je=z==null?E(Pe):typeof z=="function"?z.apply(re,ve):z,Qe=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ye=re.__zoom,ze=typeof _=="function"?_.apply(re,ve):_,Me=h(Ye.invert(je).concat(Qe/Ye.k),ze.invert(je).concat(Qe/ze.k));return function($){if($===1)$=ze;else{var G=Me($),Q=Qe/G[2];$=new yi(Q,je[0]-G[0]*Q,je[1]-G[1]*Q)}we.zoom(null,$)}})}function U(N,_,z){return!z&&N.__zooming||new oe(N,_)}function oe(N,_){this.that=N,this.args=_,this.active=0,this.sourceEvent=null,this.extent=t.apply(N,_),this.taps=0}oe.prototype={event:function(N){return N&&(this.sourceEvent=N),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(N,_){return this.mouse&&N!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&N!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&N!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(N){var _=Gn(this.that).datum();p.call(N,this.that,new $he(N,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),_)}};function te(N,..._){if(!e.apply(this,arguments))return;var z=U(this,_).event(N),H=this.__zoom,re=Math.max(c[0],Math.min(c[1],H.k*Math.pow(2,o.apply(this,arguments)))),ve=pi(N);if(z.wheel)(z.mouse[0][0]!==ve[0]||z.mouse[0][1]!==ve[1])&&(z.mouse[1]=H.invert(z.mouse[0]=ve)),clearTimeout(z.wheel);else{if(H.k===re)return;z.mouse=[ve,H.invert(ve)],Uc(this),z.start()}zl(N),z.wheel=setTimeout(we,C),z.zoom("mouse",r(B(R(H,re),z.mouse[0],z.mouse[1]),z.extent,f));function we(){z.wheel=null,z.end()}}function Z(N,..._){if(b||!e.apply(this,arguments))return;var z=N.currentTarget,H=U(this,_,!0).event(N),re=Gn(N.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",Qe,!0),ve=pi(N,z),we=N.clientX,Pe=N.clientY;px(N.view),_d(N),H.mouse=[ve,this.__zoom.invert(ve)],Uc(this),H.start();function je(Ye){if(zl(Ye),!H.moved){var ze=Ye.clientX-we,Me=Ye.clientY-Pe;H.moved=ze*ze+Me*Me>L}H.event(Ye).zoom("mouse",r(B(H.that.__zoom,H.mouse[0]=pi(Ye,z),H.mouse[1]),H.extent,f))}function Qe(Ye){re.on("mousemove.zoom mouseup.zoom",null),gx(Ye.view,H.moved),zl(Ye),H.event(Ye).end()}}function K(N,..._){if(e.apply(this,arguments)){var z=this.__zoom,H=pi(N.changedTouches?N.changedTouches[0]:N,this),re=z.invert(H),ve=z.k*(N.shiftKey?.5:2),we=r(B(R(z,ve),H,re),t.apply(this,_),f);zl(N),d>0?Gn(this).transition().duration(d).call(W,we,H,N):Gn(this).call(A.transform,we,H,N)}}function V(N,..._){if(e.apply(this,arguments)){var z=N.touches,H=z.length,re=U(this,_,N.changedTouches.length===H).event(N),ve,we,Pe,je;for(_d(N),we=0;we<H;++we)Pe=z[we],je=pi(Pe,this),je=[je,this.__zoom.invert(je),Pe.identifier],re.touch0?!re.touch1&&re.touch0[2]!==je[2]&&(re.touch1=je,re.taps=0):(re.touch0=je,ve=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),ve&&(re.taps<2&&(m=je[0],v=setTimeout(function(){v=null},x)),Uc(this),re.start())}}function P(N,..._){if(this.__zooming){var z=U(this,_).event(N),H=N.changedTouches,re=H.length,ve,we,Pe,je;for(zl(N),ve=0;ve<re;++ve)we=H[ve],Pe=pi(we,this),z.touch0&&z.touch0[2]===we.identifier?z.touch0[0]=Pe:z.touch1&&z.touch1[2]===we.identifier&&(z.touch1[0]=Pe);if(we=z.that.__zoom,z.touch1){var Qe=z.touch0[0],Ye=z.touch0[1],ze=z.touch1[0],Me=z.touch1[1],$=($=ze[0]-Qe[0])*$+($=ze[1]-Qe[1])*$,G=(G=Me[0]-Ye[0])*G+(G=Me[1]-Ye[1])*G;we=R(we,Math.sqrt($/G)),Pe=[(Qe[0]+ze[0])/2,(Qe[1]+ze[1])/2],je=[(Ye[0]+Me[0])/2,(Ye[1]+Me[1])/2]}else if(z.touch0)Pe=z.touch0[0],je=z.touch0[1];else return;z.zoom("touch",r(B(we,Pe,je),z.extent,f))}}function O(N,..._){if(this.__zooming){var z=U(this,_).event(N),H=N.changedTouches,re=H.length,ve,we;for(_d(N),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ve=0;ve<re;++ve)we=H[ve],z.touch0&&z.touch0[2]===we.identifier?delete z.touch0:z.touch1&&z.touch1[2]===we.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(we=pi(we,this),Math.hypot(m[0]-we[0],m[1]-we[1])<M)){var Pe=Gn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return A.wheelDelta=function(N){return arguments.length?(o=typeof N=="function"?N:Rc(+N),A):o},A.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Rc(!!N),A):e},A.touchable=function(N){return arguments.length?(s=typeof N=="function"?N:Rc(!!N),A):s},A.extent=function(N){return arguments.length?(t=typeof N=="function"?N:Rc([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),A):t},A.scaleExtent=function(N){return arguments.length?(c[0]=+N[0],c[1]=+N[1],A):[c[0],c[1]]},A.translateExtent=function(N){return arguments.length?(f[0][0]=+N[0][0],f[1][0]=+N[1][0],f[0][1]=+N[0][1],f[1][1]=+N[1][1],A):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},A.constrain=function(N){return arguments.length?(r=N,A):r},A.duration=function(N){return arguments.length?(d=+N,A):d},A.interpolate=function(N){return arguments.length?(h=N,A):h},A.on=function(){var N=p.on.apply(p,arguments);return N===p?A:N},A.clickDistance=function(N){return arguments.length?(L=(N=+N)*N,A):Math.sqrt(L)},A.tapDistance=function(N){return arguments.length?(M=+N,A):M},A}function qhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Ax(this.cover(t,r),t,r,e)}function Ax(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,x,C,L,M,A,R;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[A=M<<1|L]))return s[A]=f,e;if(x=+e._x.call(null,c.data),C=+e._y.call(null,c.data),t===x&&r===C)return f.next=c,s?s[A]=f:e._root=f,e;do s=s?s[A]=new Array(4):e._root=new Array(4),(L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b;while((A=M<<1|L)===(R=(C>=b)<<1|x>=m));return s[R]=c,s[A]=f,e}function jhe(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)Ax(this,f[r],d[r],e[r]);return this}function Uhe(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 Vhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ghe(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 In(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Khe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],x=this._root,C,L;for(x&&b.push(new In(x,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);C=b.pop();)if(!(!(x=C.node)||(f=C.x0)>v||(d=C.y0)>m||(h=C.x1)<s||(p=C.y1)<c))if(x.length){var M=(f+h)/2,A=(d+p)/2;b.push(new In(x[3],M,A,h,p),new In(x[2],f,A,M,p),new In(x[1],M,d,h,A),new In(x[0],f,d,M,A)),(L=(t>=A)<<1|e>=M)&&(C=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=C)}else{var R=e-+this._x.call(null,x.data),B=t-+this._y.call(null,x.data),E=R*R+B*B;if(E<r){var W=Math.sqrt(r=E);s=e-W,c=t-W,v=e+W,m=t+W,o=x.data}}return o}function Xhe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,x,C,L,M,A;if(!r)return this;if(r.length)for(;;){if((C=v>=(b=(f+h)/2))?f=b:h=b,(L=m>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[M=L<<1|C]))return this;if(!r.length)break;(t[M+1&3]||t[M+2&3]||t[M+3&3])&&(o=t,A=M)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[M]=c:delete t[M],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[A]=r:this._root=r),this):(this._root=c,this)}function Yhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Zhe(){return this._root}function Jhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Qhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new In(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 In(s,p,v,d,h)),(s=o[2])&&t.push(new In(s,c,v,p,h)),(s=o[1])&&t.push(new In(s,p,f,d,v)),(s=o[0])&&t.push(new In(s,c,f,p,v))}return this}function epe(e){var t=[],r=[],o;for(this._root&&t.push(new In(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 In(c,f,d,v,m)),(c=s[1])&&t.push(new In(c,v,d,h,m)),(c=s[2])&&t.push(new In(c,f,m,v,p)),(c=s[3])&&t.push(new In(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function tpe(e){return e[0]}function npe(e){return arguments.length?(this._x=e,this):this._x}function rpe(e){return e[1]}function ipe(e){return arguments.length?(this._y=e,this):this._y}function vp(e,t,r){var o=new mp(t??tpe,r??rpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function mp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function R0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=vp.prototype=mp.prototype;zn.copy=function(){var e=new mp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=R0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=R0(o));return e};zn.add=qhe;zn.addAll=jhe;zn.cover=Uhe;zn.data=Vhe;zn.extent=Ghe;zn.find=Khe;zn.remove=Xhe;zn.removeAll=Yhe;zn.root=Zhe;zn.size=Jhe;zn.visit=Qhe;zn.visitAfter=epe;zn.x=npe;zn.y=ipe;function Dn(e){return function(){return e}}function Ji(e){return(e()-.5)*1e-6}function ope(e){return e.x+e.vx}function spe(e){return e.y+e.vy}function lpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Dn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,x,C,L,M,A=0;A<c;++A)for(m=vp(t,ope,spe).visitAfter(d),p=0;p<v;++p)b=t[p],L=r[b.index],M=L*L,x=b.x+b.vx,C=b.y+b.vy,m.visit(R);function R(B,E,W,U,oe){var te=B.data,Z=B.r,K=L+Z;if(te){if(te.index>b.index){var V=x-te.x-te.vx,P=C-te.y-te.vy,O=V*V+P*P;O<K*K&&(V===0&&(V=Ji(o),O+=V*V),P===0&&(P=Ji(o),O+=P*P),O=(K-(O=Math.sqrt(O)))/O*s,b.vx+=(V*=O)*(K=(Z*=Z)/(M+Z)),b.vy+=(P*=O)*K,te.vx-=V*(K=1-K),te.vy-=P*K)}return}return E>x+K||U<x-K||W>C+K||oe<C-K}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Dn(+p),h(),f):e},f}function ape(e){return e.index}function P0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function cpe(e){var t=ape,r=m,o,s=Dn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(M){return 1/Math.min(d[M.source.index],d[M.target.index])}function b(M){for(var A=0,R=e.length;A<v;++A)for(var B=0,E,W,U,oe,te,Z,K;B<R;++B)E=e[B],W=E.source,U=E.target,oe=U.x+U.vx-W.x-W.vx||Ji(p),te=U.y+U.vy-W.y-W.vy||Ji(p),Z=Math.sqrt(oe*oe+te*te),Z=(Z-c[B])/Z*M*o[B],oe*=Z,te*=Z,U.vx-=oe*(K=h[B]),U.vy-=te*K,W.vx+=oe*(K=1-K),W.vy+=te*K}function x(){if(f){var M,A=f.length,R=e.length,B=new Map(f.map((W,U)=>[t(W,U,f),W])),E;for(M=0,d=new Array(A);M<R;++M)E=e[M],E.index=M,typeof E.source!="object"&&(E.source=P0(B,E.source)),typeof E.target!="object"&&(E.target=P0(B,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(M=0,h=new Array(R);M<R;++M)E=e[M],h[M]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array(R),C(),c=new Array(R),L()}}function C(){if(f)for(var M=0,A=e.length;M<A;++M)o[M]=+r(e[M],M,e)}function L(){if(f)for(var M=0,A=e.length;M<A;++M)c[M]=+s(e[M],M,e)}return b.initialize=function(M,A){f=M,p=A,x()},b.links=function(M){return arguments.length?(e=M,x(),b):e},b.id=function(M){return arguments.length?(t=M,b):t},b.iterations=function(M){return arguments.length?(v=+M,b):v},b.strength=function(M){return arguments.length?(r=typeof M=="function"?M:Dn(+M),C(),b):r},b.distance=function(M){return arguments.length?(s=typeof M=="function"?M:Dn(+M),L(),b):s},b}const upe=1664525,fpe=1013904223,I0=4294967296;function dpe(){let e=1;return()=>(e=(upe*e+fpe)%I0)/I0}function hpe(e){return e.x}function ppe(e){return e.y}var gpe=10,vpe=Math.PI*(3-Math.sqrt(5));function mpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=dp(m),p=za("tick","end"),v=dpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var M,A=e.length,R;L===void 0&&(L=1);for(var B=0;B<L;++B)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),M=0;M<A;++M)R=e[M],R.fx==null?R.x+=R.vx*=f:(R.x=R.fx,R.vx=0),R.fy==null?R.y+=R.vy*=f:(R.y=R.fy,R.vy=0);return t}function x(){for(var L=0,M=e.length,A;L<M;++L){if(A=e[L],A.index=L,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var R=gpe*Math.sqrt(.5+L),B=L*vpe;A.x=R*Math.cos(B),A.y=R*Math.sin(B)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function C(L){return L.initialize&&L.initialize(e,v),L}return x(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,x(),d.forEach(C),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(v=L,d.forEach(C),t):v},force:function(L,M){return arguments.length>1?(M==null?d.delete(L):d.set(L,C(M)),t):d.get(L)},find:function(L,M,A){var R=0,B=e.length,E,W,U,oe,te;for(A==null?A=1/0:A*=A,R=0;R<B;++R)oe=e[R],E=L-oe.x,W=M-oe.y,U=E*E+W*W,U<A&&(te=oe,A=U);return te},on:function(L,M){return arguments.length>1?(p.on(L,M),t):p.on(L)}}}function ype(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(x){var C,L=e.length,M=vp(e,hpe,ppe).visitAfter(m);for(o=x,C=0;C<L;++C)t=e[C],M.visit(b)}function v(){if(e){var x,C=e.length,L;for(c=new Array(C),x=0;x<C;++x)L=e[x],c[L.index]=+s(L,x,e)}}function m(x){var C=0,L,M,A=0,R,B,E;if(x.length){for(R=B=E=0;E<4;++E)(L=x[E])&&(M=Math.abs(L.value))&&(C+=L.value,A+=M,R+=M*L.x,B+=M*L.y);x.x=R/A,x.y=B/A}else{L=x,L.x=L.data.x,L.y=L.data.y;do C+=c[L.data.index];while(L=L.next)}x.value=C}function b(x,C,L,M){if(!x.value)return!0;var A=x.x-t.x,R=x.y-t.y,B=M-C,E=A*A+R*R;if(B*B/h<E)return E<d&&(A===0&&(A=Ji(r),E+=A*A),R===0&&(R=Ji(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)),t.vx+=A*x.value*o/E,t.vy+=R*x.value*o/E),!0;if(x.length||E>=d)return;(x.data!==t||x.next)&&(A===0&&(A=Ji(r),E+=A*A),R===0&&(R=Ji(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)));do x.data!==t&&(B=c[x.data.index]*o/E,t.vx+=A*B,t.vy+=R*B);while(x=x.next)}return p.initialize=function(x,C){e=x,r=C,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Dn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function bpe(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,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:Dn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function wpe(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,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:Dn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function xpe(){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 $0(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 Qi(...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]=Qi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:$0(t[o])&&$0(r[o])?t[o]=Qi(t[o],r[o]):t[o]=r[o])}),t},{})}const Lx={mergeArrays:!0};Qi.options=Lx;Qi.withOptions=(e,...t)=>{Qi.options={mergeArrays:!0,...e};const r=Qi(...t);return Qi.options=Lx,r};var Spe=Qi;function _pe(){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 kpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Mx(e){e.preventDefault(),e.stopPropagation()}function Nx(e){return typeof e=="number"}function uo(e,t){return Nx(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Tpe(e){return`${e.source.id}-${e.target.id}`}function Ox(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Cpe(e){return`url(#${Ox(e.color)})`}function Epe(e){return{size:e,padding:(t,r)=>uo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Rx={Arrow:e=>Epe(e)},Ape=(e,t,r)=>[t/2,r/2],Lpe=(e,t,r)=>[D0(0,t),D0(0,r)];function D0(e,t){return Math.random()*(t-e)+e}const dh={Centered:Ape,Randomized:Lpe};function Mpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:kpe(),nodeRadius:16,marker:Rx.Arrow(4),modifiers:{},positionInitializer:dh.Centered,simulation:{alphas:xpe(),forces:_pe()},zoom:{initial:1,min:.1,max:2}}}function Npe(e={}){return Spe.withOptions({mergeArrays:!1},Mpe(),e)}function Ope({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=>Mx(v)).on("dblclick",v=>r?.(v)).on("dblclick.zoom",null).on("pointermove",v=>o?.(v)).on("pointerup",v=>s?.(v)).style("cursor","grab");return e&&p.call(h.transform,gp.translate(c,f).scale(d)),p.append("g")}function Rpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function Ppe({config:e,onDragStart:t,onDragEnd:r}){const o=Jfe().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Gn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Gn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function Ipe({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}:$pe({links:c},r)}function $pe(e,t){const r=[...Dpe(e,t),...zpe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Dpe(e,t){return Px(e,t,(r,o)=>r.target.id===o.id)}function zpe(e,t){return Px(e,t,(r,o)=>r.source.id===o.id)}function Px(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 hh(e){return e.x??0}function ph(e){return e.y??0}function yp({source:e,target:t}){const r=new Xs(hh(e),ph(e)),o=new Xs(hh(t),ph(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function Ix({center:e,node:t}){const r=new Xs(hh(t),ph(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Xs(0,1))),{n:r,c:o}}function $x({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=yp({source:t,target:r});return{start:o.add(c.multiply(uo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function Fpe(e){const{start:t,end:r}=$x(e);return`M${t.x},${t.y}
45
45
  L${r.x},${r.y}`}function Hpe(e){const{start:t,end:r}=$x(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Bpe({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=yp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(uo(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(uo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
46
46
  A${m},${m},0,0,1,${v.x},${v.y}`}function Wpe({center:e,config:t,node:r}){const{n:o,c:s}=Ix({center:e,node:r}),c=uo(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 qpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=yp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function jpe({center:e,config:t,node:r}){const{n:o,c:s}=Ix({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*uo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Fs={line:{labelTransform:Hpe,path:Fpe},arc:{labelTransform:qpe,path:Bpe},reflexive:{labelTransform:jpe,path:Wpe}};function Upe(e){return e.append("g").classed("links",!0).selectAll("path")}function Vpe({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>Tpe(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>Cpe(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Gpe(e){Kpe(e),Xpe(e)}function Kpe({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Fs.reflexive.path({config:t,node:s.source,center:e}):Dx(r,s.source,s.target)?Fs.arc.path({config:t,source:s.source,target:s.target}):Fs.line.path({config:t,source:s.source,target:s.target}))}function Xpe({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Fs.reflexive.labelTransform({config:e,node:s.source,center:t}):Dx(r,s.source,s.target)?Fs.arc.labelTransform({config:e,source:s.source,target:s.target}):Fs.line.labelTransform({config:e,source:s.source,target:s.target}))}function Dx(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 Ype(e){return e.append("defs").selectAll("marker")}function Zpe({config:e,graph:t,selection:r}){return r?.data(Jpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Ox(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",Qpe(e.marker.path)),s})}function Jpe(e){return[...new Set(e.links.map(t=>t.color))]}function Qpe(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 ege(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function tge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",b=>uo(e,b)).on("contextmenu",(b,x)=>{Mx(b),o(x)}).on("pointerdown",(b,x)=>rge(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(m),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const nge=500;function rge(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>nge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function ige(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function oge({center:e,config:t,graph:r,onTick:o}){const s=mpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",bpe(()=>e().x).strength(p)).force("y",wpe(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",ype().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",lpe().radius(p=>d.radiusMultiplier*uo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",cpe(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function sge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=Whe().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var lge=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(uue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Xs.of([this.width,this.height]).divide(2).subtract(Xs.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(Nx(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Zpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Vpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=tge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=oge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=sge({config:this.config,canvasContainer:()=>Gn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Ope({applyZoom:this.scale!==1,container:Gn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Upe(this.canvas),this.nodeSelection=ege(this.canvas),this.markerSelection=Ype(this.canvas),this.drag=Ppe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){ige(this.nodeSelection),Gpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Gn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Rpe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=Ipe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function z0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function age(e){return{...e}}function zx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function cge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:v,candidate:m}=c;t.set(v,m);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function uge(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 fge(e){const t=e.map(o=>uge(o)),r=cge(t);return t.map(({raw:o,id:s})=>zx({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 dge(e,t){return zx({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 hge(e,t){if(!e)return z0({});const r=fge(e.externalized),o=e.inlined.map(d=>dge(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 age({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return z0({nodes:s,links:f})}const pge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},gge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},vge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},mge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},yge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},bge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Fx=ot({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Dr("tooltip");return e.state==="pass"?(se(),me("div",pge)):e.failedSnapshot?ct((se(),me("div",gge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(se(),me("div",vge)):e.mode==="todo"?ct((se(),me("div",mge,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?ct((se(),me("div",yge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(se(),me("div",bge))}}}),el=dE(),wge=YC(el),xge={border:"b base","p-4":""},Sge=["innerHTML"],_ge=ot({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(se(),me("div",xge,[ne("div",{"text-xs":"","mb-1":"",class:st(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},$e(t(e.time))+" | "+$e(e.taskName)+" | "+$e(e.type),3),ne("pre",{"data-type":"html",innerHTML:e.content},null,8,Sge)]))}}),kge={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Tge={key:1,p6:""},Cge=ot({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const o=ex.value;if(o){const s=op(el.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ea(h))}))}});function r(o){const s=o&&dt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?nA(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(se(),me("div",kge,[(se(!0),me(nt,null,hr(t.value,({taskId:c,type:f,time:d,content:h})=>(se(),me("div",{key:c,"font-mono":""},[Re(_ge,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(se(),me("div",Tge,[...s[0]||(s[0]=[ht(" Log something in your test and it would print here. (e.g. ",-1),ne("pre",{inline:""},"console.log(foo)",-1),ht(") ",-1)])]))}}),Hx={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Hx);var ur=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},ws,ql,Oo;class Ege{constructor(...t){ws.set(this,new Map),ql.set(this,new Map),Oo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),ur(this,Oo,"f").has(o)||ur(this,Oo,"f").set(o,new Set);const c=ur(this,Oo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&ur(this,ql,"f").set(o,d),f=!1,h)continue;const p=ur(this,ws,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);ur(this,ws,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:ur(this,ws,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&ur(this,ql,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:ur(this,Oo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of ur(this,Oo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:ur(this,ws,"f"),extensions:ur(this,ql,"f")}}}ws=new WeakMap,ql=new WeakMap,Oo=new WeakMap;const Age=new Ege(Hx)._freeze();function ku(e){if(pr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Bx(e,t){const r=t?Age.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function Lge(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const Vc=ot({__name:"CodeMirrorContainer",props:la({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:la(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=zu(e,"modelValue"),s=bk(),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=Ve();return fo(async()=>{const d=Mae(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),On.value=d,setTimeout(()=>On.value.refresh(),100)}),(d,h)=>(se(),me("div",{relative:"","font-mono":"","text-sm":"",class:st(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[ne("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Mge=ot({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ve(""),c=nn(void 0),f=Ve(!1),d=Ve(!0),h=Ve(!1),p=Ve();_t(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await dt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Z){console.error("cannot fetch file",Z)}await Ct(),d.value=!1}},{immediate:!0}),_t(()=>[d.value,h.value,r.file,Hw.value,Bw.value],([Z,K,V,P,O])=>{!Z&&!K&&(P!=null?Ct(()=>{const N=p.value,_=N??{line:(P??1)-1,ch:O??0};N?p.value=void 0:(On.value?.scrollIntoView(_,100),Ct(()=>{On.value?.focus(),On.value?.setCursor(_)}))}):Ct(()=>{On.value?.focus()}))},{flush:"post"});const v=Se(()=>r.file?.filepath?.split(/\./g).pop()||"js"),m=Ve(),b=Se(()=>{const Z=[];function K(V){V.result?.errors&&Z.push(...V.result.errors),V.type==="suite"&&V.tasks.forEach(K)}return r.file?.tasks.forEach(K),Z}),x=Se(()=>{const Z=[];function K(V){V.type==="test"&&Z.push(...V.annotations),V.type==="suite"&&V.tasks.forEach(K)}return r.file?.tasks.forEach(K),Z}),C=[],L=[],M=[],A=Ve(!1);function R(){M.forEach(([Z,K,V])=>{Z.removeEventListener("click",K),V()}),M.length=0}lw(m,()=>{On.value?.refresh()});function W(){f.value=c.value!==On.value.getValue()}_t(f,Z=>{o("draft",Z)},{immediate:!0});function E(Z){const V=(Z?.stacks||[]).filter(z=>z.file&&z.file===r.file?.filepath)?.[0];if(!V)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(V.column)}^ ${Z.name}: ${Z?.message||""}`,P.appendChild(O);const N=document.createElement("span");N.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",N.tabIndex=0,N.ariaLabel="Open in Editor",Kb(N,{content:"Open in Editor",placement:"bottom"},!1);const _=async()=>{await ip(V.file,V.line,V.column)};N.addEventListener("click",_),P.appendChild(N),M.push([N,_,()=>Xh(N)]),L.push(On.value.addLineClass(V.line-1,"wrap","bg-red-500/10")),C.push(On.value.addLineWidget(V.line-1,P))}function B(Z){if(!Z.location)return;const{line:K,file:V}=Z.location;if(V!==r.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const N=document.createElement("span");N.textContent=`${Z.type}: `,N.classList.add("font-bold");const _=document.createElement("span");_.classList.add("whitespace-pre"),_.textContent=Z.message.replace(/[^\r]\n/,`\r
48
- `),O.append(N,_),P.append(O);const z=Z.attachment;if(z?.path||z?.body)if(z.contentType?.startsWith("image/")){const H=document.createElement("a"),re=document.createElement("img");H.classList.add("inline-block","mt-3"),H.style.maxWidth="50vw";const ve=z.path||z.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(re.setAttribute("src",ve),H.referrerPolicy="no-referrer"):re.setAttribute("src",ku(z)),H.target="_blank",H.href=re.src,H.append(re),P.append(H)}else{const H=document.createElement("a");H.href=ku(z),H.download=Bx(Z.message,z.contentType),H.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const re=document.createElement("div");re.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",H.append(re,ve),P.append(H)}C.push(On.value.addLineWidget(K-1,P))}const{pause:U,resume:oe}=_t([On,b,x,Ss],([Z,K,V,P])=>{if(!Z){C.length=0,L.length=0,R();return}P&&(Z.off("changes",W),R(),C.forEach(O=>O.clear()),L.forEach(O=>Z?.removeLineClass(O,"wrap")),C.length=0,L.length=0,setTimeout(()=>{K.forEach(E),V.forEach(B),A.value||Z.clearHistory(),Z.on("changes",W)},100))},{flush:"post"});Jh(()=>[Ss.value,h.value,p.value],([Z,K],V)=>{Z&&!K&&V&&V[2]&&On.value?.setCursor(V[2])},{debounce:100,flush:"post"});async function te(Z){if(h.value)return;U(),h.value=!0,await Ct();const K=On.value;K&&(K.setOption("readOnly",!0),await Ct(),K.refresh()),p.value=K?.getCursor(),K?.off("changes",W),R(),C.forEach(V=>V.clear()),L.forEach(V=>K?.removeLineClass(V,"wrap")),C.length=0,L.length=0;try{A.value=!0,await dt.rpc.saveTestFile(r.file.filepath,Z),c.value=Z,f.value=!1}catch(V){console.error("error saving file",V)}A.value||K?.clearHistory();try{await Em(Ss).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Em(Ss).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(E),x.value.forEach(B),K?.on("changes",W),h.value=!1,await Ct(),K&&(K.setOption("readOnly",!1),await Ct(),K.refresh()),oe()}return La(R),(Z,K)=>(se(),Je(Vc,bi({ref_key:"editor",ref:m,modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=V=>s.value=V),"h-full":""},{lineNumbers:!0,readOnly:J(pr),saving:h.value},{mode:v.value,"data-testid":"code-mirror",onSave:te}),null,16,["modelValue","mode"]))}}),bp=ot({__name:"Modal",props:la({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=zu(e,"modelValue"),r=Se(()=>{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=Se(()=>{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)=>(se(),me("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ne("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ne("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:tn(t.value?{}:{transform:o.value})},[Sn(c.$slots,"default")],6)],2))}}),Nge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Oge={"p-4":"",relative:""},Rge={op50:"","font-mono":"","text-sm":""},Pge={key:0,"p-5":""},Ige={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},$ge={key:0},Dge={p:"x3 y-1","bg-overlay":"",border:"base b t"},zge=ot({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=QC(()=>dt.rpc.getTransformResult(r.projectName,r.id,!!Yn)),c=Se(()=>r.id?.split(/\./g).pop()||"js"),f=Se(()=>s.value?.source?.trim()||""),d=Se(()=>s.value?.code?.replace(/\/\/# sourceMappingURL=.*\n/,"").trim()||""),h=Se(()=>({mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}));return rw("Escape",()=>{o("close")}),(p,v)=>(se(),me("div",Nge,[ne("div",Oge,[v[1]||(v[1]=ne("p",null,"Module Info",-1)),ne("p",Rge,$e(e.id),1),Re(Et,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=m=>o("close"))})]),J(s)?(se(),me(nt,{key:1},[ne("div",Ige,[v[2]||(v[2]=ne("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ne("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Re(Vc,bi({"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"]),Re(Vc,bi({"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])]),h.value.mappings!==""?(se(),me("div",$ge,[ne("div",Dge," Source map (v"+$e(h.value.version)+") ",1),Re(Vc,bi({"model-value":h.value.mappings,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])])):Ue("",!0)],64)):(se(),me("div",Pge," No transform result found for this module. "))]))}}),Fge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Hge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Bge={flex:"~ gap-1","items-center":"","select-none":""},Wge=["id","checked","onChange"],qge=["for"],jge=ot({__name:"ViewModuleGraph",props:la({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=zu(e,"modelValue"),{graph:o}=j_(t),s=Ve(),c=Ve(!1),f=Ve(),d=Ve();Bh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),fo(()=>{v()}),$u(()=>{d.value?.shutdown()}),_t(o,()=>v());function h(x,C){d.value?.filterNodesByType(C,x)}function p(x){f.value=x,c.value=!0}function v(x=!1){if(d.value?.shutdown(),x&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new lge(s.value,o.value,Npe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:C,newWidth:L})=>C===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Rx.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?dh.Randomized:dh.Centered,zoom:{min:.5,max:2}})))}const m=x=>x.button===0;function b(x){if(pr)return;let C=0,L=0,M=0;x.on("pointerdown",(A,R)=>{R.type!=="external"&&(!R.x||!R.y||!m(A)||(C=R.x,L=R.y,M=Date.now()))}).on("pointerup",(A,R)=>{if(R.type==="external"||!R.x||!R.y||!m(A)||Date.now()-M>500)return;const W=R.x-C,E=R.y-L;W**2+E**2<100&&p(R.id)})}return(x,C)=>{const L=Dr("tooltip");return se(),me("div",Fge,[ne("div",null,[ne("div",Hge,[ne("div",Bge,[ct(ne("input",{id:"hide-node-modules","onUpdate:modelValue":C[0]||(C[0]=M=>r.value=M),type:"checkbox"},null,512),[[Cb,r.value]]),C[4]||(C[4]=ne("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(se(!0),me(nt,null,hr(d.value?.nodeTypes.sort(),M=>(se(),me("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ne("input",{id:`type-${M}`,type:"checkbox",checked:d.value?.nodeTypeFilter.includes(M),onChange:A=>h(M,A.target.checked)},null,40,Wge),ne("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${M}`,"border-b-2":"",style:tn({"border-color":`var(--color-node-${M})`})},$e(M)+" Modules",13,qge)]))),128)),C[5]||(C[5]=ne("div",{"flex-auto":""},null,-1)),ne("div",null,[ct(Re(Et,{icon:"i-carbon-reset",onClick:C[1]||(C[1]=M=>v(!0))},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ne("div",{ref_key:"el",ref:s},null,512),Re(bp,{modelValue:c.value,"onUpdate:modelValue":C[3]||(C[3]=M=>c.value=M),direction:"right"},{default:it(()=>[f.value?(se(),Je(qh,{key:0},{default:it(()=>[Re(zge,{id:f.value,"project-name":e.projectName,onClose:C[2]||(C[2]=M=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])])}}});function Wx(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function qx(){const e=Ve(!1),t=Ve(Date.now()),r=Ve(),o=Se(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Uge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Vge={"p-4":"",relative:"",border:"base b"},Gge={op50:"","font-mono":"","text-sm":""},Kge={op50:"","font-mono":"","text-sm":""},Xge={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Yge=["src","alt"],Zge={key:1},Jge=ot({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return rw("Escape",()=>{r("close")}),(o,s)=>(se(),me("div",Uge,[ne("div",Vge,[s[1]||(s[1]=ne("p",null,"Screenshot error",-1)),ne("p",Gge,$e(e.file),1),ne("p",Kge,$e(e.name),1),Re(Et,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),ne("div",Xge,[e.url?(se(),me("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,Yge)):(se(),me("div",Zge," Something was wrong, the image cannot be resolved. "))])]))}}),jx=Ei(Jge,[["__scopeId","data-v-08ce44b7"]]),Qge={class:"scrolls scrolls-rounded task-error"},eve=["onClickPassive"],tve=["innerHTML"],nve=ot({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=Se(()=>op(el.value)),s=Se(()=>!!t.error?.diff),c=Se(()=>t.error.diff?o.value.toHtml(ea(t.error.diff)):void 0);function f(d){return kae(d.file,t.filename)?Nae(t.fileId,d):ip(d.file,d.line,d.column)}return(d,h)=>{const p=Dr("tooltip");return se(),me("div",Qge,[ne("pre",null,[ne("b",null,$e(e.error.name),1),ht(": "+$e(e.error.message),1)]),(se(!0),me(nt,null,hr(e.error.stacks,(v,m)=>(se(),me("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ne("pre",null," - "+$e(r(v.file))+":"+$e(v.line)+":"+$e(v.column),1),ct(ne("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(v)},null,40,eve),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(se(),me("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,tve)):Ue("",!0)])}}}),Ux=Ei(nve,[["__scopeId","data-v-1fcfe7a4"]]),rve={"h-full":"",class:"scrolls"},ive=["id"],ove={flex:"~ gap-2 items-center"},sve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lve=["innerHTML"],ave={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cve=ot({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>r(v,p+1))]}const o=Se(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],v=h.result;if(v?.errors?.[0]){const b={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(b)}return p.length>0?Fw(el.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=qx();return(h,p)=>{const v=Dr("tooltip");return se(),me("div",rve,[o.value.length?(se(!0),me(nt,{key:0},hr(o.value,m=>(se(),me("div",{id:m.id,key:m.id},[ne("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:tn({"margin-left":`${m.result?.htmlError?.5:2*m.level+.5}rem`})},[ne("div",ove,[ne("span",null,$e(m.name),1),J(Yn)&&m.meta?.failScreenshotPath?(se(),me(nt,{key:0},[ct(Re(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>J(f)(m)},null,8,["onClick"]),[[v,"View screenshot error",void 0,{bottom:!0}]]),ct(Re(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>J(Wx)(m)},null,8,["onClick"]),[[v,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ue("",!0)]),m.result?.htmlError?(se(),me("div",sve,[ne("pre",{innerHTML:m.result.htmlError},null,8,lve)])):m.result?.errors?(se(!0),me(nt,{key:1},hr(m.result.errors,(b,x)=>(se(),Je(Ux,{key:x,error:b,filename:e.file.name,root:J(Gs).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Ue("",!0)],4)],8,ive))),128)):(se(),me("div",ave," All tests passed in this file ")),J(Yn)?(se(),Je(bp,{key:2,modelValue:J(c),"onUpdate:modelValue":p[1]||(p[1]=m=>Ot(c)?c.value=m:null),direction:"right"},{default:it(()=>[J(s)?(se(),Je(qh,{key:0},{default:it(()=>[Re(jx,{file:J(s).file.filepath,name:J(s).name,url:J(d),onClose:p[0]||(p[0]=m=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])):Ue("",!0)])}}}),uve=Ei(cve,[["__scopeId","data-v-677d9ffc"]]),fve=["href","referrerPolicy"],dve=["src"],hve=ot({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=Se(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:ku(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(se(),me("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:J(Lge)(e.annotation.attachment)?"no-referrer":void 0},[ne("img",{src:r.value},null,8,dve)],8,fve)):Ue("",!0)}}),pve={"h-full":"",class:"scrolls"},gve={key:0},vve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},mve={flex:"~ gap-2 items-center"},yve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},bve=["innerHTML"],wve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},xve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Sve={class:"flex gap-2","overflow-hidden":""},_ve={class:"font-bold","ws-nowrap":"",truncate:""},kve=["href","download"],Tve=["onClick"],Cve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Eve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ave={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},Lve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Mve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Nve=ot({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=Se(()=>!t.test.result||!t.test.result.errors?.length?null:Fw(el.value,[t.test])[0]);function o(m){return Oae(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=qx();function h(m){return`${pw(Gs.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=Se(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{const x=Dr("tooltip");return se(),me("div",pve,[r.value?(se(),me("div",gve,[ne("div",vve,[ne("div",mve,[J(Yn)&&e.test.meta?.failScreenshotPath?(se(),me(nt,{key:0},[ct(Re(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=C=>J(f)(e.test))},null,512),[[x,"View screenshot error",void 0,{bottom:!0}]]),ct(Re(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=C=>J(Wx)(e.test))},null,512),[[x,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ue("",!0)]),e.test.result?.htmlError?(se(),me("div",yve,[ne("pre",{innerHTML:e.test.result.htmlError},null,8,bve)])):e.test.result?.errors?(se(!0),me(nt,{key:1},hr(e.test.result.errors,(C,L)=>(se(),Je(Ux,{key:L,"file-id":e.test.file.id,error:C,filename:e.test.file.name,root:J(Gs).root},null,8,["file-id","error","filename","root"]))),128)):Ue("",!0)])])):(se(),me("div",wve," All tests passed in this file ")),e.test.annotations.length?(se(),me(nt,{key:2},[b[5]||(b[5]=ne("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),me(nt,null,hr(e.test.annotations,C=>(se(),me("div",{key:C.type+C.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[ne("div",xve,[ne("div",Sve,[ne("span",_ve,$e(C.type),1),C.attachment&&!C.attachment.contentType?.startsWith("image/")?(se(),me("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:J(ku)(C.attachment),download:J(Bx)(C.message,C.attachment.contentType)},[...b[4]||(b[4]=[ne("span",{class:"i-carbon:download block"},null,-1),ht(" Download ",-1)])],8,kve)):Ue("",!0)]),ne("div",null,[C.location&&C.location.file===e.test.file.filepath?ct((se(),me("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(C)},[ht($e(h(C.location)),1)],8,Tve)),[[x,"Open in Editor",void 0,{bottom:!0}]]):C.location&&C.location.file!==e.test.file.filepath?(se(),me("span",Cve,$e(h(C.location)),1)):Ue("",!0)])]),ne("div",Eve,$e(C.message),1),Re(hve,{annotation:C},null,8,["annotation"])]))),128))],64)):Ue("",!0),v.value.length?(se(),me(nt,{key:3},[b[6]||(b[6]=ne("h1",{"m-2":""}," Test Meta ",-1)),ne("div",Ave,[(se(!0),me(nt,null,hr(v.value,([C,L])=>(se(),me(nt,{key:C},[ne("div",Lve,$e(C),1),ne("pre",Mve,$e(L),1)],64))),128))])],64)):Ue("",!0),J(Yn)?(se(),Je(bp,{key:4,modelValue:J(c),"onUpdate:modelValue":b[3]||(b[3]=C=>Ot(c)?c.value=C:null),direction:"right"},{default:it(()=>[J(s)?(se(),Je(qh,{key:0},{default:it(()=>[Re(jx,{file:J(s).file.filepath,name:J(s).name,url:J(d),onClose:b[2]||(b[2]=C=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])):Ue("",!0)])}}}),Ove=Ei(Nve,[["__scopeId","data-v-cf8dfa39"]]),Rve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Pve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ive={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},$ve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Dve={class:"flex text-lg"},zve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Fve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Hve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Bve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Wve=["flex-1"],F0=ot({__name:"FileDetails",setup(e){const t=Ve({nodes:[],links:[]}),r=Ve(!1),o=Ve(!1),s=Ve(!1),c=Ve(void 0),f=Ve(!0),d=Se(()=>Ps.value?dt.state.idMap.get(Ps.value):void 0),h=Se(()=>{const E=jt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),p=Se(()=>jt.value&&rp(jt.value)),v=Se(()=>!!jt.value?.meta?.typecheck);function m(){const E=jt.value?.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function b(E){E==="graph"&&(o.value=!0),fn.value=E}const x=Se(()=>ex.value?.reduce((E,{size:B})=>E+B,0)??0);function C(E){r.value=E}const L=/[/\\]node_modules[/\\]/;async function M(E=!1){if(!(s.value||h.value?.filepath===c.value&&!E)){s.value=!0,await Ct();try{const B=h.value;if(!B){s.value=!1;return}if(E||!c.value||B.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let U=await dt.rpc.getModuleGraph(B.projectName,B.filepath,!!Yn);f.value&&(pr&&(U=typeof window.structuredClone<"u"?window.structuredClone(U):gA(U)),U.inlined=U.inlined.filter(oe=>!L.test(oe)),U.externalized=U.externalized.filter(oe=>!L.test(oe))),t.value=hge(U,B.filepath),c.value=B.filepath}b("graph")}finally{await new Promise(B=>setTimeout(B,100)),s.value=!1}}}Jh(()=>[h.value,fn.value,f.value],([,E,B],U)=>{E==="graph"&&M(U&&B!==U[2])},{debounce:100,immediate:!0});const A=Se(()=>{const E=jt.value?.file.projectName||"";return Ee.colors.get(E)||Cw(jt.value?.file.projectName)}),R=Se(()=>Ew(A.value)),W=Se(()=>{const E=Ps.value;if(!E)return jt.value?.name;const B=[];let U=dt.state.idMap.get(E);for(;U;)B.push(U.name),U=U.suite?U.suite:U===U.file?void 0:U.file;return B.reverse().join(" > ")});return(E,B)=>{const U=Dr("tooltip");return J(jt)?(se(),me("div",Rve,[ne("div",null,[ne("div",Pve,[Re(Fx,{state:J(jt).result?.state,mode:J(jt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),v.value?ct((se(),me("div",Ive,null,512)),[[U,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ue("",!0),J(jt)?.file.projectName?(se(),me("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:tn({backgroundColor:A.value,color:R.value})},$e(J(jt).file.projectName),5)):Ue("",!0),ne("div",$ve,$e(W.value),1),ne("div",Dve,[J(pr)?Ue("",!0):ct((se(),Je(Et,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!J(jt)?.filepath,onClick:m},null,8,["disabled"])),[[U,"Open in editor",void 0,{bottom:!0}]])])]),ne("div",zve,[ne("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==null}]),"data-testid":"btn-report",onClick:B[0]||(B[0]=oe=>b(null))},[...B[5]||(B[5]=[ne("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ht(" Report ",-1)])],2),ne("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==="graph"}]),onClick:B[1]||(B[1]=oe=>b("graph"))},[s.value?(se(),me("span",Fve)):(se(),me("span",Hve)),B[6]||(B[6]=ht(" Module Graph ",-1))],2),ne("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==="editor"}]),onClick:B[2]||(B[2]=oe=>b("editor"))},[B[7]||(B[7]=ne("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),ht(" "+$e(r.value?"* ":"")+"Code ",1)],2),ne("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==="console",op20:J(fn)!=="console"&&x.value===0}]),onClick:B[3]||(B[3]=oe=>b("console"))},[B[8]||(B[8]=ne("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),ht(" Console ("+$e(x.value)+") ",1)],2)])]),ne("div",Bve,[o.value?(se(),me("div",{key:0,"flex-1":J(fn)==="graph"&&""},[ct(Re(jge,{modelValue:f.value,"onUpdate:modelValue":B[4]||(B[4]=oe=>f.value=oe),graph:t.value,"data-testid":"graph","project-name":J(jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Zi,J(fn)==="graph"&&!s.value]])],8,Wve)):Ue("",!0),J(fn)==="editor"?(se(),Je(Mge,{key:J(jt).id,file:J(jt),"data-testid":"editor",onDraft:C},null,8,["file"])):J(fn)==="console"?(se(),Je(Cge,{key:2,file:J(jt),"data-testid":"console"},null,8,["file"])):!J(fn)&&!d.value&&J(jt)?(se(),Je(uve,{key:3,file:J(jt),"data-testid":"report"},null,8,["file"])):!J(fn)&&d.value?(se(),Je(Ove,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):Ue("",!0)])])):Ue("",!0)}}}),qve=""+new URL("../favicon.svg",import.meta.url).href;function jve(){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 Gc;function gh(){gh.init||(gh.init=!0,Gc=jve()!==-1)}var ef={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){gh(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Gc&&this.$el.appendChild(e),e.data="about:blank",Gc||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&&(!Gc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Uve=Fy();Dy("data-v-b329ee4c");const Vve={class:"resize-observer",tabindex:"-1"};zy();const Gve=Uve((e,t,r,o,s,c)=>(se(),Je("div",Vve)));ef.render=Gve;ef.__scopeId="data-v-b329ee4c";ef.__file="src/components/ResizeObserver.vue";function Kc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kc=function(t){return typeof t}:Kc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kc(e)}function Kve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xve(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 Yve(e,t,r){return t&&Xve(e.prototype,t),e}function H0(e){return Zve(e)||Jve(e)||Qve(e)||eme()}function Zve(e){if(Array.isArray(e))return vh(e)}function Jve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Qve(e,t){if(e){if(typeof e=="string")return vh(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 vh(e,t)}}function vh(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 eme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function nme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(H0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(H0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function Vx(e,t){if(e===t)return!0;if(Kc(e)==="object"){for(var r in e)if(!Vx(e[r],t[r]))return!1;return!0}return!1}var rme=(function(){function e(t,r,o){Kve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Yve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=tme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=nme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Ct(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Gx(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 rme(e,o,r);e._vue_visibilityState=s}}function ime(e,t,r){var o=t.value,s=t.oldValue;if(!Vx(o,s)){var c=e._vue_visibilityState;if(!o){Kx(e);return}c?c.createObserver(o,r):Gx(e,{value:o},r)}}function Kx(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ome={beforeMount:Gx,updated:ime,unmounted:Kx},sme={itemsLimit:1e3},lme=/(auto|scroll)/;function Xx(e,t){return e.parentNode===null?t:Xx(e.parentNode,t.concat([e]))}var kd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},ame=function(t){return kd(t,"overflow")+kd(t,"overflow-y")+kd(t,"overflow-x")},cme=function(t){return lme.test(ame(t))};function B0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Xx(e.parentNode,[]),r=0;r<t.length;r+=1)if(cme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function mh(e){"@babel/helpers - typeof";return mh=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},mh(e)}var ume={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 fme(){return this.items.length&&mh(this.items[0])!=="object"}var yh=!1;if(typeof window<"u"){yh=!1;try{var dme=Object.defineProperty({},"passive",{get:function(){yh=!0}});window.addEventListener("test",null,dme)}catch{}}let hme=0;var wp={name:"RecycleScroller",components:{ResizeObserver:ef},directives:{ObserveVisibility:ome},props:{...ume,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:fme,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=Ih({id:hme++,index:t,used:!0,key:o,type:s}),f=Oh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,x=this.pool,C=this.itemIndexByKey;let L,M,A,R,W;if(!p)L=M=R=W=A=0;else if(this.$_prerender)L=R=0,M=W=Math.min(this.prerender,h.length),A=null;else{const K=this.getScroll();if(t){let O=K.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=K.start;const V=this.buffer;K.start-=V,K.end+=V;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,K.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;K.end+=O}if(r===null){let O,N=0,_=p-1,z=~~(p/2),H;do H=z,O=v[z].accumulator,O<K.start?N=z:z<p-1&&v[z+1].accumulator>K.start&&(_=z),z=~~((N+_)/2);while(z!==H);for(z<0&&(z=0),L=z,A=v[p-1].accumulator,M=z;M<p&&v[M].accumulator<K.end;M++);for(M===-1?M=h.length-1:(M++,M>p&&(M=p)),R=L;R<p&&P+v[R].accumulator<K.start;R++);for(W=R;W<p&&P+v[W].accumulator<K.end;W++);}else{L=~~(K.start/r*o);const O=L%o;L-=O,M=Math.ceil(K.end/r*o),R=Math.max(0,Math.floor((K.start-P)/r*o)),W=Math.floor((K.end-P)/r*o),L<0&&(L=0),M>p&&(M=p),R<0&&(R=0),W>p&&(W=p),A=Math.ceil(p/o)*r}}M-L>sme.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let E;const B=L<=this.$_endIndex&&M>=this.$_startIndex;if(B)for(let K=0,V=x.length;K<V;K++)E=x[K],E.nr.used&&(e&&(E.nr.index=C[E.item[d]]),(E.nr.index==null||E.nr.index<L||E.nr.index>=M)&&this.unuseView(E));const U=B?null:new Map;let oe,te,Z;for(let K=L;K<M;K++){oe=h[K];const V=d?oe[d]:oe;if(V==null)throw new Error(`Key is ${V} on item (keyField is '${d}')`);if(E=m.get(V),!r&&!v[K].size){E&&this.unuseView(E);continue}te=oe[f];let P=b.get(te),O=!1;if(!E)B?P&&P.length?E=P.pop():E=this.addView(x,K,oe,V,te):(Z=U.get(te)||0,(!P||Z>=P.length)&&(E=this.addView(x,K,oe,V,te),this.unuseView(E,!0),P=b.get(te)),E=P[Z],U.set(te,Z+1)),m.delete(E.nr.key),E.nr.used=!0,E.nr.index=K,E.nr.key=V,E.nr.type=te,m.set(V,E),O=!0;else if(!E.nr.used&&(E.nr.used=!0,O=!0,P)){const N=P.indexOf(E);N!==-1&&P.splice(N,1)}E.item=oe,O&&(K===h.length-1&&this.$emit("scroll-end"),K===0&&this.$emit("scroll-start")),r===null?(E.position=v[K-1].accumulator,E.offset=0):(E.position=Math.floor(K/o)*r,E.offset=K%o*s)}return this.$_startIndex=L,this.$_endIndex=M,this.emitUpdate&&this.$emit("update",L,M,R,W),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=B0(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,yh?{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=B0(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 pme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},gme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function vme(e,t,r,o,s,c){const f=Ho("ResizeObserver"),d=Dr("observe-visibility");return ct((se(),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?(se(),me("div",pme,[Sn(e.$slots,"before")],512)):Ue("v-if",!0),(se(),Je(Pd(r.listTag),{ref:"wrapper",style:tn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:it(()=>[(se(!0),me(nt,null,hr(s.pool,h=>(se(),Je(Pd(r.itemTag),bi({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}]]},vk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[Sn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Sn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(se(),me("div",gme,[Sn(e.$slots,"after")],512)):Ue("v-if",!0),Re(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}wp.render=vme;wp.__file="src/components/RecycleScroller.vue";function mme(e){const t=Se(()=>Jd.value?!1:!Ze.onlyTests),r=Se(()=>Un.value===""),o=Ve(Un.value);Jh(()=>Un.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Un.value="",h&&e.value?.focus()}function c(h){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Us.value&&(hn.value.search=h?.trim()??"",hn.value.failed=p,hn.value.success=v,hn.value.skipped=m,hn.value.onlyTests=b)}return _t(()=>[o.value,Ze.failed,Ze.success,Ze.skipped,Ze.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ee.filterNodes()},{flush:"post"}),_t(()=>Ir.value.length,h=>{h&&(hn.value.expandAll=void 0)},{flush:"post"}),{initialized:Us,filter:Ze,search:Un,disableFilter:t,isFiltered:Tw,isFilteredByStatus:Jd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Xu,testsTotal:bA,uiEntries:Zn}}const yme=["open"],bme=ot({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ve(!0);return(r,o)=>(se(),me("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ne("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ne("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Sn(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=ne("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Sn(r.$slots,"default")],40,yme))}}),wme={"flex-1":"","ms-2":"","select-none":""},Pc=ot({__name:"FilterStatus",props:la({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=zu(e,"modelValue");return(r,o)=>(se(),me("label",bi({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]=Fc(s=>t.value=!t.value,["prevent"]))}),[ne("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(ne("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[Cb,t.value]]),ne("span",wme,$e(e.label),1)],16))}}),xme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Sme=ot({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(se(),me("button",xme,[ne("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),_me=["aria-label","data-current"],kme={key:1,"w-4":""},Tme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Cme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Eme={"text-sm":"",truncate:"","font-light":""},Ame=["text","innerHTML"],Lme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Mme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Nme={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Ome={key:1},Rme=ot({__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=Se(()=>dt.state.idMap.get(e.taskId)),r=Se(()=>{if(pr)return!1;const M=t.value;return M&&rp(M)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Ee.collapseNode(e.taskId):Ee.expandNode(e.taskId)}async function s(M){e.onItemClick?.(M),ks.value&&(vu.value=!0,await Ct()),e.type==="file"?await lp([M.file]):await hce(M)}function c(M){return dt.rpc.updateSnapshot(M.file)}const f=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(M,A)=>`${e.taskId}-${A}`)),d=Se(()=>{const M=f.value,A=[];return(e.type==="file"||e.type==="suite")&&A.push("min-content"),A.push("min-content"),e.type==="suite"&&e.typecheck&&A.push("min-content"),A.push("minmax(0, 1fr)"),A.push("min-content"),`grid-template-columns: ${M.map(()=>"1rem").join(" ")} ${A.join(" ")};`}),h=Se(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>kw(e.name)),v=Se(()=>{const M=yA.value,A=p.value;return M?A.replace(M,R=>`<span class="highlight">${R}</span>`):A}),m=Se(()=>e.type!=="file"&&e.disableTaskLocation),b=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=Se(()=>m.value?"color-red5 dark:color-#f43f5e":null);function C(){const M=t.value;e.type==="file"?e.onItemClick?.(M):jw(M)}const L=Se(()=>Ew(e.projectNameColor));return(M,A)=>{const R=Dr("tooltip");return t.value?(se(),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:tn(d.value),"aria-label":e.name,"data-current":e.current,onClick:A[2]||(A[2]=W=>o())},[e.indent>0?(se(!0),me(nt,{key:0},hr(f.value,W=>(se(),me("div",{key:W,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ue("",!0),e.type==="file"||e.type==="suite"?(se(),me("div",kme,[ne("div",{class:st(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ue("",!0),Re(Fx,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),ne("div",Tme,[e.type==="file"&&e.typecheck?ct((se(),me("div",Cme,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ue("",!0),ne("span",Eme,[e.type==="file"&&e.projectName?(se(),me("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:tn({backgroundColor:e.projectNameColor,color:L.value})},$e(e.projectName),5)):Ue("",!0),ne("span",{text:e.state==="fail"?"red-500":"",innerHTML:v.value},null,8,Ame)]),typeof e.duration=="number"?(se(),me("span",Lme,$e(e.duration>0?e.duration:"< 1")+"ms ",1)):Ue("",!0)]),ne("div",Mme,[!J(pr)&&r.value?ct((se(),Je(Sme,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:A[0]||(A[0]=Fc(W=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ue("",!0),Re(J(Xb),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",x.value])},{popper:it(()=>[m.value?(se(),me("div",Nme,[A[5]||(A[5]=ne("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ne("div",null,[ht($e(b.value)+": this feature is not available, you have disabled ",1),A[3]||(A[3]=ne("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),A[4]||(A[4]=ht(" in your configuration file.",-1))]),A[6]||(A[6]=ne("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(se(),me("div",Ome,$e(b.value),1))]),default:it(()=>[Re(Et,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fc(C,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),J(pr)?Ue("",!0):ct((se(),Je(Et,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:A[1]||(A[1]=Fc(W=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[R,h.value,void 0,{bottom:!0}]])])],12,_me)):Ue("",!0)}}}),Pme=Ei(Rme,[["__scopeId","data-v-58d301d8"]]),Ime={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},$me={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Dme=["op"],zme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Fme={"text-red5":""},Hme={"text-yellow5":""},Bme={"text-green5":""},Wme={class:"text-purple5:50"},qme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},jme=["disabled"],Ume=["disabled"],Vme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Gme=ot({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Se(()=>Gs.value.includeTaskLocation),s=Ve(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:x,clearFilter:C,filteredFiles:L,testsTotal:M,uiEntries:A}=mme(s),R=Ve("grid-cols-2"),W=Ve("grid-col-span-2"),E=Ve();return lw(()=>E.value,([{contentRect:B}])=>{B.width<420?(R.value="grid-cols-2",W.value="grid-col-span-2"):(R.value="grid-cols-4",W.value="grid-col-span-4")}),(B,U)=>{const oe=Dr("tooltip");return se(),me("div",{ref_key:"testExplorerRef",ref:E,h:"full",flex:"~ col"},[ne("div",null,[ne("div",Ime,[Sn(B.$slots,"header",{filteredFiles:J(p)||J(v)?J(L):void 0})]),ne("div",$me,[U[13]||(U[13]=ne("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(ne("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=te=>Ot(d)?d.value=te:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:J(d).length?"100":"50",onKeydown:[U[1]||(U[1]=qd(te=>J(x)(!1),["esc"])),U[2]||(U[2]=qd(te=>r("run",J(p)||J(v)?J(L):void 0),["enter"]))]},null,40,Dme),[[IT,J(d)]]),ct(Re(Et,{disabled:J(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=te=>J(x)(!0))},null,8,["disabled"]),[[oe,"Clear search",void 0,{bottom:!0}]])]),ne("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(R.value)},[ne("div",{class:st(W.value),flex:"~ gap-2 items-center"},[U[14]||(U[14]=ne("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=ne("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Re(Et,{disabled:J(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=te=>J(C)(!1))},null,8,["disabled"]),[[oe,"Clear Filter",void 0,{bottom:!0}]])],2),Re(Pc,{modelValue:J(f).failed,"onUpdate:modelValue":U[5]||(U[5]=te=>J(f).failed=te),label:"Fail"},null,8,["modelValue"]),Re(Pc,{modelValue:J(f).success,"onUpdate:modelValue":U[6]||(U[6]=te=>J(f).success=te),label:"Pass"},null,8,["modelValue"]),Re(Pc,{modelValue:J(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=te=>J(f).skipped=te),label:"Skip"},null,8,["modelValue"]),Re(Pc,{modelValue:J(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=te=>J(f).onlyTests=te),label:"Only Tests"},null,8,["modelValue"])],2)]),ne("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...te)=>J(_m)&&J(_m)(...te))},[Re(bme,null,gk({default:it(()=>[(J(p)||J(v))&&J(A).length===0?(se(),me(nt,{key:0},[J(c)?(se(),me("div",qme,[U[18]||(U[18]=ne("div",{op30:""}," No matched test ",-1)),ne("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(J(m)?null:"hover:op100"),disabled:J(m),onClickPassive:U[9]||(U[9]=te=>J(x)(!0))}," Clear Search ",42,jme),ne("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(J(h)?null:"hover:op100"),disabled:J(h),onClickPassive:U[10]||(U[10]=te=>J(C)(!0))}," Clear Filter ",42,Ume),ne("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]=(...te)=>J(b)&&J(b)(...te))}," Clear All ",32)])):(se(),me("div",Vme,[...U[19]||(U[19]=[ne("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ne("div",{op30:""}," Loading... ",-1)])]))],64)):(se(),Je(J(wp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:J(A),buffer:100},{default:it(({item:te})=>[Re(Pme,{class:st(["h-28px m-0 p-0",J(ao)===te.id?"bg-active":""]),"task-id":te.id,expandable:te.expandable,type:te.type,current:J(ao)===te.id,indent:te.indent,name:te.name,typecheck:te.typecheck===!0,"project-name":te.projectName??"","project-name-color":te.projectNameColor??"",state:te.state,duration:te.duration,opened:te.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[J(c)?{name:"summary",fn:it(()=>[ne("div",zme,[ne("span",Fme," FAIL ("+$e(J(M).failed)+") ",1),U[16]||(U[16]=ne("span",null,"/",-1)),ne("span",Hme," RUNNING ("+$e(J(M).running)+") ",1),ne("span",Bme," PASS ("+$e(J(M).success)+") ",1),U[17]||(U[17]=ne("span",null,"/",-1)),ne("span",Wme," SKIP ("+$e(J(f).onlyTests?J(M).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Kme={class:"flex text-lg"},Xme=ot({__name:"Navigation",setup(e){function t(){return dt.rpc.updateSnapshot()}const r=Se(()=>el.value?"light":"dark");async function o(f){ks.value&&(vu.value=!0,await Ct(),co.value&&(mu(!0),await Ct())),f?.length?await lp(f):await fce()}function s(){Ee.collapseAllNodes()}function c(){Ee.expandAllNodes()}return(f,d)=>{const h=Dr("tooltip");return se(),Je(Gme,{border:"r base","on-item-click":J(Pae),nested:!0,onRun:o},{header:it(({filteredFiles:p})=>[d[8]||(d[8]=ne("img",{"w-6":"","h-6":"",src:qve,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ne("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ne("div",Kme,[ct(Re(Et,{title:"Collapse tests",disabled:!J(Us),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=v=>s())},null,8,["disabled"]),[[Zi,!J(qm)],[h,"Collapse tests",void 0,{bottom:!0}]]),ct(Re(Et,{disabled:!J(Us),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=v=>c())},null,8,["disabled"]),[[Zi,J(qm)],[h,"Expand tests",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=v=>J(mu)(!0))},null,512),[[Zi,J(th)&&!J(ks)||!J(Is)],[h,"Dashboard",void 0,{bottom:!0}]]),J(th)&&!J(ks)?(se(),Je(J(Xb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:it(()=>[...d[6]||(d[6]=[ne("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ne("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ne("div",null,"Coverage enabled but missing html reporter."),ne("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:it(()=>[d[7]||(d[7]=ne("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ue("",!0),J(ks)?ct((se(),Je(Et,{key:1,disabled:J(vu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=v=>J(Iae)())},null,8,["disabled"])),[[Zi,!J(co)],[h,"Coverage",void 0,{bottom:!0}]]):Ue("",!0),J(Ee).summary.failedSnapshot&&!J(pr)?ct((se(),Je(Et,{key:2,icon:"i-carbon:result-old",disabled:!J(Ee).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=v=>J(Ee).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ue("",!0),J(pr)?Ue("",!0):ct((se(),Je(Et,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:v=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ct(Re(Et,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=v=>J(wge)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Yme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Zme=ot({__name:"ProgressBar",setup(e){const{width:t}=aw(),r=Se(()=>[Ee.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ss.value&&"in-progress"].filter(Boolean).join(" ")),o=Se(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesSuccess/d:0}),s=Se(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesFailed/d:0}),c=Se(()=>Ee.summary.files-Ee.summary.filesFailed-Ee.summary.filesSuccess),f=Se(()=>{const d=Ee.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(se(),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(r.value)},[ne("div",Yme,[ne("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(r.value),style:tn(`width: ${s.value}px;`)},"   ",6),ne("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(r.value),style:tn(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),ne("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(r.value),style:tn(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),Jme=Ei(Zme,[["__scopeId","data-v-5320005b"]]),Qme={"h-screen":"","w-screen":"",overflow:"hidden"},e0e=ot({__name:"index",setup(e){const t=Rae(),r=kc(({panes:v})=>{h(),d(v)},0),o=kc(({panes:v})=>{v.forEach((m,b)=>{$s.value[b]=m.size}),f(v),p()},0),s=kc(({panes:v})=>{v.forEach((m,b)=>{ro.value[b]=m.size}),d(v),p()},0),c=kc(({panes:v})=>{f(v),h()},0);function f(v){At.navigation=v[0].size,At.details.size=v[1].size}function d(v){At.details.browser=v[0].size,At.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>(se(),me(nt,null,[Re(Jme),ne("div",Qme,[Re(J(Lm),{class:"pt-4px",onResized:J(o),onResize:J(c)},{default:it(()=>[Re(J(Ec),{size:J($s)[0]},{default:it(()=>[Re(Xme)]),_:1},8,["size"]),Re(J(Ec),{size:J($s)[1]},{default:it(()=>[J(Yn)?(se(),Je(J(Lm),{id:"details-splitpanes",key:"browser-detail",onResize:J(r),onResized:J(s)},{default:it(()=>[Re(J(Ec),{size:J(ro)[0],"min-size":"10"},{default:it(()=>[m[0]||(Ws(-1,!0),(m[0]=Re(kce)).cacheIndex=0,Ws(1),m[0])]),_:1},8,["size"]),Re(J(Ec),{size:J(ro)[1]},{default:it(()=>[J(t)?(se(),Je(p0,{key:"summary"})):J(co)?(se(),Je(h0,{key:"coverage",src:J(f0)},null,8,["src"])):(se(),Je(F0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(se(),Je(gT,{key:"ui-detail"},{default:it(()=>[J(t)?(se(),Je(p0,{key:"summary"})):J(co)?(se(),Je(h0,{key:"coverage",src:J(f0)},null,8,["src"])):(se(),Je(F0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Re(Ece)],64))}}),t0e=[{name:"index",path:"/",component:e0e,props:!0}];/*!
47
+ A${c},${c},0,1,0,${v.x},${v.y}`}function qpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=yp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function jpe({center:e,config:t,node:r}){const{n:o,c:s}=Ix({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*uo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Fs={line:{labelTransform:Hpe,path:Fpe},arc:{labelTransform:qpe,path:Bpe},reflexive:{labelTransform:jpe,path:Wpe}};function Upe(e){return e.append("g").classed("links",!0).selectAll("path")}function Vpe({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>Tpe(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>Cpe(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Gpe(e){Kpe(e),Xpe(e)}function Kpe({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Fs.reflexive.path({config:t,node:s.source,center:e}):Dx(r,s.source,s.target)?Fs.arc.path({config:t,source:s.source,target:s.target}):Fs.line.path({config:t,source:s.source,target:s.target}))}function Xpe({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Fs.reflexive.labelTransform({config:e,node:s.source,center:t}):Dx(r,s.source,s.target)?Fs.arc.labelTransform({config:e,source:s.source,target:s.target}):Fs.line.labelTransform({config:e,source:s.source,target:s.target}))}function Dx(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 Ype(e){return e.append("defs").selectAll("marker")}function Zpe({config:e,graph:t,selection:r}){return r?.data(Jpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Ox(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",Qpe(e.marker.path)),s})}function Jpe(e){return[...new Set(e.links.map(t=>t.color))]}function Qpe(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 ege(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function tge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",b=>uo(e,b)).on("contextmenu",(b,x)=>{Mx(b),o(x)}).on("pointerdown",(b,x)=>rge(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(m),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const nge=500;function rge(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>nge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function ige(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function oge({center:e,config:t,graph:r,onTick:o}){const s=mpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",bpe(()=>e().x).strength(p)).force("y",wpe(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",ype().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",lpe().radius(p=>d.radiusMultiplier*uo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",cpe(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function sge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=Whe().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var lge=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(uue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Xs.of([this.width,this.height]).divide(2).subtract(Xs.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(Nx(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Zpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Vpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=tge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=oge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=sge({config:this.config,canvasContainer:()=>Gn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Ope({applyZoom:this.scale!==1,container:Gn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Upe(this.canvas),this.nodeSelection=ege(this.canvas),this.markerSelection=Ype(this.canvas),this.drag=Ppe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){ige(this.nodeSelection),Gpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Gn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Rpe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=Ipe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function z0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function age(e){return{...e}}function zx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function cge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:v,candidate:m}=c;t.set(v,m);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function uge(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 fge(e){const t=e.map(o=>uge(o)),r=cge(t);return t.map(({raw:o,id:s})=>zx({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 dge(e,t){return zx({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 hge(e,t){if(!e)return z0({});const r=fge(e.externalized),o=e.inlined.map(d=>dge(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 age({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return z0({nodes:s,links:f})}const pge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},gge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},vge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},mge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},yge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},bge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Fx=ot({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Dr("tooltip");return e.state==="pass"?(se(),me("div",pge)):e.failedSnapshot?ct((se(),me("div",gge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(se(),me("div",vge)):e.mode==="todo"?ct((se(),me("div",mge,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?ct((se(),me("div",yge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(se(),me("div",bge))}}}),el=dE(),wge=YC(el),xge={border:"b base","p-4":""},Sge=["innerHTML"],_ge=ot({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(se(),me("div",xge,[ne("div",{"text-xs":"","mb-1":"",class:st(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},$e(t(e.time))+" | "+$e(e.taskName)+" | "+$e(e.type),3),ne("pre",{"data-type":"html",innerHTML:e.content},null,8,Sge)]))}}),kge={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Tge={key:1,p6:""},Cge=ot({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const o=ex.value;if(o){const s=op(el.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ea(h))}))}});function r(o){const s=o&&dt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?nA(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(se(),me("div",kge,[(se(!0),me(nt,null,hr(t.value,({taskId:c,type:f,time:d,content:h})=>(se(),me("div",{key:c,"font-mono":""},[Re(_ge,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(se(),me("div",Tge,[...s[0]||(s[0]=[ht(" Log something in your test and it would print here. (e.g. ",-1),ne("pre",{inline:""},"console.log(foo)",-1),ht(") ",-1)])]))}}),Hx={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Hx);var ur=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},ws,ql,Oo;class Ege{constructor(...t){ws.set(this,new Map),ql.set(this,new Map),Oo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),ur(this,Oo,"f").has(o)||ur(this,Oo,"f").set(o,new Set);const c=ur(this,Oo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&ur(this,ql,"f").set(o,d),f=!1,h)continue;const p=ur(this,ws,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);ur(this,ws,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:ur(this,ws,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&ur(this,ql,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:ur(this,Oo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of ur(this,Oo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:ur(this,ws,"f"),extensions:ur(this,ql,"f")}}}ws=new WeakMap,ql=new WeakMap,Oo=new WeakMap;const Age=new Ege(Hx)._freeze();function ku(e){if(pr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Bx(e,t){const r=t?Age.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function Lge(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const Vc=ot({__name:"CodeMirrorContainer",props:la({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:la(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=zu(e,"modelValue"),s=bk(),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=Ve();return fo(async()=>{const d=Mae(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),On.value=d,setTimeout(()=>On.value.refresh(),100)}),(d,h)=>(se(),me("div",{relative:"","font-mono":"","text-sm":"",class:st(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[ne("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Mge=ot({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ve(""),c=nn(void 0),f=Ve(!1),d=Ve(!0),h=Ve(!1),p=Ve();_t(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await dt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Z){console.error("cannot fetch file",Z)}await Ct(),d.value=!1}},{immediate:!0}),_t(()=>[d.value,h.value,r.file,Hw.value,Bw.value],([Z,K,V,P,O])=>{!Z&&!K&&(P!=null?Ct(()=>{const N=p.value,_=N??{line:(P??1)-1,ch:O??0};N?p.value=void 0:(On.value?.scrollIntoView(_,100),Ct(()=>{On.value?.focus(),On.value?.setCursor(_)}))}):Ct(()=>{On.value?.focus()}))},{flush:"post"});const v=Se(()=>r.file?.filepath?.split(/\./g).pop()||"js"),m=Ve(),b=Se(()=>{const Z=[];function K(V){V.result?.errors&&Z.push(...V.result.errors),V.type==="suite"&&V.tasks.forEach(K)}return r.file?.tasks.forEach(K),Z}),x=Se(()=>{const Z=[];function K(V){V.type==="test"&&Z.push(...V.annotations),V.type==="suite"&&V.tasks.forEach(K)}return r.file?.tasks.forEach(K),Z}),C=[],L=[],M=[],A=Ve(!1);function R(){M.forEach(([Z,K,V])=>{Z.removeEventListener("click",K),V()}),M.length=0}lw(m,()=>{On.value?.refresh()});function B(){f.value=c.value!==On.value.getValue()}_t(f,Z=>{o("draft",Z)},{immediate:!0});function E(Z){const V=(Z?.stacks||[]).filter(z=>z.file&&z.file===r.file?.filepath)?.[0];if(!V)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(V.column)}^ ${Z.name}: ${Z?.message||""}`,P.appendChild(O);const N=document.createElement("span");N.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",N.tabIndex=0,N.ariaLabel="Open in Editor",Kb(N,{content:"Open in Editor",placement:"bottom"},!1);const _=async()=>{await ip(V.file,V.line,V.column)};N.addEventListener("click",_),P.appendChild(N),M.push([N,_,()=>Xh(N)]),L.push(On.value.addLineClass(V.line-1,"wrap","bg-red-500/10")),C.push(On.value.addLineWidget(V.line-1,P))}function W(Z){if(!Z.location)return;const{line:K,file:V}=Z.location;if(V!==r.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const N=document.createElement("span");N.textContent=`${Z.type}: `,N.classList.add("font-bold");const _=document.createElement("span");_.classList.add("whitespace-pre"),_.textContent=Z.message.replace(/[^\r]\n/,`\r
48
+ `),O.append(N,_),P.append(O);const z=Z.attachment;if(z?.path||z?.body)if(z.contentType?.startsWith("image/")){const H=document.createElement("a"),re=document.createElement("img");H.classList.add("inline-block","mt-3"),H.style.maxWidth="50vw";const ve=z.path||z.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(re.setAttribute("src",ve),H.referrerPolicy="no-referrer"):re.setAttribute("src",ku(z)),H.target="_blank",H.href=re.src,H.append(re),P.append(H)}else{const H=document.createElement("a");H.href=ku(z),H.download=Bx(Z.message,z.contentType),H.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const re=document.createElement("div");re.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",H.append(re,ve),P.append(H)}C.push(On.value.addLineWidget(K-1,P))}const{pause:U,resume:oe}=_t([On,b,x,Ss],([Z,K,V,P])=>{if(!Z){C.length=0,L.length=0,R();return}P&&(Z.off("changes",B),R(),C.forEach(O=>O.clear()),L.forEach(O=>Z?.removeLineClass(O,"wrap")),C.length=0,L.length=0,setTimeout(()=>{K.forEach(E),V.forEach(W),A.value||Z.clearHistory(),Z.on("changes",B)},100))},{flush:"post"});Jh(()=>[Ss.value,h.value,p.value],([Z,K],V)=>{Z&&!K&&V&&V[2]&&On.value?.setCursor(V[2])},{debounce:100,flush:"post"});async function te(Z){if(h.value)return;U(),h.value=!0,await Ct();const K=On.value;K&&(K.setOption("readOnly",!0),await Ct(),K.refresh()),p.value=K?.getCursor(),K?.off("changes",B),R(),C.forEach(V=>V.clear()),L.forEach(V=>K?.removeLineClass(V,"wrap")),C.length=0,L.length=0;try{A.value=!0,await dt.rpc.saveTestFile(r.file.filepath,Z),c.value=Z,f.value=!1}catch(V){console.error("error saving file",V)}A.value||K?.clearHistory();try{await Em(Ss).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Em(Ss).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(E),x.value.forEach(W),K?.on("changes",B),h.value=!1,await Ct(),K&&(K.setOption("readOnly",!1),await Ct(),K.refresh()),oe()}return La(R),(Z,K)=>(se(),Je(Vc,bi({ref_key:"editor",ref:m,modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=V=>s.value=V),"h-full":""},{lineNumbers:!0,readOnly:J(pr),saving:h.value},{mode:v.value,"data-testid":"code-mirror",onSave:te}),null,16,["modelValue","mode"]))}}),bp=ot({__name:"Modal",props:la({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=zu(e,"modelValue"),r=Se(()=>{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=Se(()=>{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)=>(se(),me("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ne("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ne("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:tn(t.value?{}:{transform:o.value})},[Sn(c.$slots,"default")],6)],2))}}),Nge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Oge={"p-4":"",relative:""},Rge={op50:"","font-mono":"","text-sm":""},Pge={key:0,"p-5":""},Ige={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},$ge={key:0},Dge={p:"x3 y-1","bg-overlay":"",border:"base b t"},zge=ot({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=QC(()=>dt.rpc.getTransformResult(r.projectName,r.id,!!Yn)),c=Se(()=>r.id?.split(/\./g).pop()||"js"),f=Se(()=>s.value?.source?.trim()||""),d=Se(()=>s.value?.code?.replace(/\/\/# sourceMappingURL=.*\n/,"").trim()||""),h=Se(()=>({mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}));return rw("Escape",()=>{o("close")}),(p,v)=>(se(),me("div",Nge,[ne("div",Oge,[v[1]||(v[1]=ne("p",null,"Module Info",-1)),ne("p",Rge,$e(e.id),1),Re(Et,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=m=>o("close"))})]),J(s)?(se(),me(nt,{key:1},[ne("div",Ige,[v[2]||(v[2]=ne("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ne("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Re(Vc,bi({"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"]),Re(Vc,bi({"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])]),h.value.mappings!==""?(se(),me("div",$ge,[ne("div",Dge," Source map (v"+$e(h.value.version)+") ",1),Re(Vc,bi({"model-value":h.value.mappings,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])])):Ue("",!0)],64)):(se(),me("div",Pge," No transform result found for this module. "))]))}}),Fge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Hge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Bge={flex:"~ gap-1","items-center":"","select-none":""},Wge=["id","checked","onChange"],qge=["for"],jge=ot({__name:"ViewModuleGraph",props:la({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=zu(e,"modelValue"),{graph:o}=j_(t),s=Ve(),c=Ve(!1),f=Ve(),d=Ve();Bh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),fo(()=>{v()}),$u(()=>{d.value?.shutdown()}),_t(o,()=>v());function h(x,C){d.value?.filterNodesByType(C,x)}function p(x){f.value=x,c.value=!0}function v(x=!1){if(d.value?.shutdown(),x&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new lge(s.value,o.value,Npe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:C,newWidth:L})=>C===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Rx.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?dh.Randomized:dh.Centered,zoom:{min:.5,max:2}})))}const m=x=>x.button===0;function b(x){if(pr)return;let C=0,L=0,M=0;x.on("pointerdown",(A,R)=>{R.type!=="external"&&(!R.x||!R.y||!m(A)||(C=R.x,L=R.y,M=Date.now()))}).on("pointerup",(A,R)=>{if(R.type==="external"||!R.x||!R.y||!m(A)||Date.now()-M>500)return;const B=R.x-C,E=R.y-L;B**2+E**2<100&&p(R.id)})}return(x,C)=>{const L=Dr("tooltip");return se(),me("div",Fge,[ne("div",null,[ne("div",Hge,[ne("div",Bge,[ct(ne("input",{id:"hide-node-modules","onUpdate:modelValue":C[0]||(C[0]=M=>r.value=M),type:"checkbox"},null,512),[[Cb,r.value]]),C[4]||(C[4]=ne("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(se(!0),me(nt,null,hr(d.value?.nodeTypes.sort(),M=>(se(),me("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ne("input",{id:`type-${M}`,type:"checkbox",checked:d.value?.nodeTypeFilter.includes(M),onChange:A=>h(M,A.target.checked)},null,40,Wge),ne("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${M}`,"border-b-2":"",style:tn({"border-color":`var(--color-node-${M})`})},$e(M)+" Modules",13,qge)]))),128)),C[5]||(C[5]=ne("div",{"flex-auto":""},null,-1)),ne("div",null,[ct(Re(Et,{icon:"i-carbon-reset",onClick:C[1]||(C[1]=M=>v(!0))},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ne("div",{ref_key:"el",ref:s},null,512),Re(bp,{modelValue:c.value,"onUpdate:modelValue":C[3]||(C[3]=M=>c.value=M),direction:"right"},{default:it(()=>[f.value?(se(),Je(qh,{key:0},{default:it(()=>[Re(zge,{id:f.value,"project-name":e.projectName,onClose:C[2]||(C[2]=M=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])])}}});function Wx(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function qx(){const e=Ve(!1),t=Ve(Date.now()),r=Ve(),o=Se(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Uge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Vge={"p-4":"",relative:"",border:"base b"},Gge={op50:"","font-mono":"","text-sm":""},Kge={op50:"","font-mono":"","text-sm":""},Xge={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Yge=["src","alt"],Zge={key:1},Jge=ot({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return rw("Escape",()=>{r("close")}),(o,s)=>(se(),me("div",Uge,[ne("div",Vge,[s[1]||(s[1]=ne("p",null,"Screenshot error",-1)),ne("p",Gge,$e(e.file),1),ne("p",Kge,$e(e.name),1),Re(Et,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),ne("div",Xge,[e.url?(se(),me("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,Yge)):(se(),me("div",Zge," Something was wrong, the image cannot be resolved. "))])]))}}),jx=Ei(Jge,[["__scopeId","data-v-08ce44b7"]]),Qge={class:"scrolls scrolls-rounded task-error"},eve=["onClickPassive"],tve=["innerHTML"],nve=ot({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=Se(()=>op(el.value)),s=Se(()=>!!t.error?.diff),c=Se(()=>t.error.diff?o.value.toHtml(ea(t.error.diff)):void 0);function f(d){return kae(d.file,t.filename)?Nae(t.fileId,d):ip(d.file,d.line,d.column)}return(d,h)=>{const p=Dr("tooltip");return se(),me("div",Qge,[ne("pre",null,[ne("b",null,$e(e.error.name),1),ht(": "+$e(e.error.message),1)]),(se(!0),me(nt,null,hr(e.error.stacks,(v,m)=>(se(),me("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ne("pre",null," - "+$e(r(v.file))+":"+$e(v.line)+":"+$e(v.column),1),ct(ne("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(v)},null,40,eve),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(se(),me("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,tve)):Ue("",!0)])}}}),Ux=Ei(nve,[["__scopeId","data-v-1fcfe7a4"]]),rve={"h-full":"",class:"scrolls"},ive=["id"],ove={flex:"~ gap-2 items-center"},sve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lve=["innerHTML"],ave={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cve=ot({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>r(v,p+1))]}const o=Se(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],v=h.result;if(v?.errors?.[0]){const b={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(b)}return p.length>0?Fw(el.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=qx();return(h,p)=>{const v=Dr("tooltip");return se(),me("div",rve,[o.value.length?(se(!0),me(nt,{key:0},hr(o.value,m=>(se(),me("div",{id:m.id,key:m.id},[ne("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:tn({"margin-left":`${m.result?.htmlError?.5:2*m.level+.5}rem`})},[ne("div",ove,[ne("span",null,$e(m.name),1),J(Yn)&&m.meta?.failScreenshotPath?(se(),me(nt,{key:0},[ct(Re(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>J(f)(m)},null,8,["onClick"]),[[v,"View screenshot error",void 0,{bottom:!0}]]),ct(Re(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>J(Wx)(m)},null,8,["onClick"]),[[v,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ue("",!0)]),m.result?.htmlError?(se(),me("div",sve,[ne("pre",{innerHTML:m.result.htmlError},null,8,lve)])):m.result?.errors?(se(!0),me(nt,{key:1},hr(m.result.errors,(b,x)=>(se(),Je(Ux,{key:x,error:b,filename:e.file.name,root:J(Gs).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Ue("",!0)],4)],8,ive))),128)):(se(),me("div",ave," All tests passed in this file ")),J(Yn)?(se(),Je(bp,{key:2,modelValue:J(c),"onUpdate:modelValue":p[1]||(p[1]=m=>Ot(c)?c.value=m:null),direction:"right"},{default:it(()=>[J(s)?(se(),Je(qh,{key:0},{default:it(()=>[Re(jx,{file:J(s).file.filepath,name:J(s).name,url:J(d),onClose:p[0]||(p[0]=m=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])):Ue("",!0)])}}}),uve=Ei(cve,[["__scopeId","data-v-677d9ffc"]]),fve=["href","referrerPolicy"],dve=["src"],hve=ot({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=Se(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:ku(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(se(),me("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:J(Lge)(e.annotation.attachment)?"no-referrer":void 0},[ne("img",{src:r.value},null,8,dve)],8,fve)):Ue("",!0)}}),pve={"h-full":"",class:"scrolls"},gve={key:0},vve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},mve={flex:"~ gap-2 items-center"},yve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},bve=["innerHTML"],wve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},xve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Sve={class:"flex gap-2","overflow-hidden":""},_ve={class:"font-bold","ws-nowrap":"",truncate:""},kve=["href","download"],Tve=["onClick"],Cve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Eve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ave={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},Lve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Mve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Nve=ot({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=Se(()=>!t.test.result||!t.test.result.errors?.length?null:Fw(el.value,[t.test])[0]);function o(m){return Oae(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=qx();function h(m){return`${pw(Gs.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=Se(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{const x=Dr("tooltip");return se(),me("div",pve,[r.value?(se(),me("div",gve,[ne("div",vve,[ne("div",mve,[J(Yn)&&e.test.meta?.failScreenshotPath?(se(),me(nt,{key:0},[ct(Re(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=C=>J(f)(e.test))},null,512),[[x,"View screenshot error",void 0,{bottom:!0}]]),ct(Re(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=C=>J(Wx)(e.test))},null,512),[[x,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ue("",!0)]),e.test.result?.htmlError?(se(),me("div",yve,[ne("pre",{innerHTML:e.test.result.htmlError},null,8,bve)])):e.test.result?.errors?(se(!0),me(nt,{key:1},hr(e.test.result.errors,(C,L)=>(se(),Je(Ux,{key:L,"file-id":e.test.file.id,error:C,filename:e.test.file.name,root:J(Gs).root},null,8,["file-id","error","filename","root"]))),128)):Ue("",!0)])])):(se(),me("div",wve," All tests passed in this file ")),e.test.annotations.length?(se(),me(nt,{key:2},[b[5]||(b[5]=ne("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),me(nt,null,hr(e.test.annotations,C=>(se(),me("div",{key:C.type+C.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[ne("div",xve,[ne("div",Sve,[ne("span",_ve,$e(C.type),1),C.attachment&&!C.attachment.contentType?.startsWith("image/")?(se(),me("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:J(ku)(C.attachment),download:J(Bx)(C.message,C.attachment.contentType)},[...b[4]||(b[4]=[ne("span",{class:"i-carbon:download block"},null,-1),ht(" Download ",-1)])],8,kve)):Ue("",!0)]),ne("div",null,[C.location&&C.location.file===e.test.file.filepath?ct((se(),me("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(C)},[ht($e(h(C.location)),1)],8,Tve)),[[x,"Open in Editor",void 0,{bottom:!0}]]):C.location&&C.location.file!==e.test.file.filepath?(se(),me("span",Cve,$e(h(C.location)),1)):Ue("",!0)])]),ne("div",Eve,$e(C.message),1),Re(hve,{annotation:C},null,8,["annotation"])]))),128))],64)):Ue("",!0),v.value.length?(se(),me(nt,{key:3},[b[6]||(b[6]=ne("h1",{"m-2":""}," Test Meta ",-1)),ne("div",Ave,[(se(!0),me(nt,null,hr(v.value,([C,L])=>(se(),me(nt,{key:C},[ne("div",Lve,$e(C),1),ne("pre",Mve,$e(L),1)],64))),128))])],64)):Ue("",!0),J(Yn)?(se(),Je(bp,{key:4,modelValue:J(c),"onUpdate:modelValue":b[3]||(b[3]=C=>Ot(c)?c.value=C:null),direction:"right"},{default:it(()=>[J(s)?(se(),Je(qh,{key:0},{default:it(()=>[Re(jx,{file:J(s).file.filepath,name:J(s).name,url:J(d),onClose:b[2]||(b[2]=C=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])):Ue("",!0)])}}}),Ove=Ei(Nve,[["__scopeId","data-v-cf8dfa39"]]),Rve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Pve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ive={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},$ve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Dve={class:"flex text-lg"},zve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Fve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Hve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Bve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Wve=["flex-1"],F0=ot({__name:"FileDetails",setup(e){const t=Ve({nodes:[],links:[]}),r=Ve(!1),o=Ve(!1),s=Ve(!1),c=Ve(void 0),f=Ve(!0),d=Se(()=>Ps.value?dt.state.idMap.get(Ps.value):void 0),h=Se(()=>{const E=jt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),p=Se(()=>jt.value&&rp(jt.value)),v=Se(()=>!!jt.value?.meta?.typecheck);function m(){const E=jt.value?.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function b(E){E==="graph"&&(o.value=!0),fn.value=E}const x=Se(()=>ex.value?.reduce((E,{size:W})=>E+W,0)??0);function C(E){r.value=E}const L=/[/\\]node_modules[/\\]/;async function M(E=!1){if(!(s.value||h.value?.filepath===c.value&&!E)){s.value=!0,await Ct();try{const W=h.value;if(!W){s.value=!1;return}if(E||!c.value||W.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let U=await dt.rpc.getModuleGraph(W.projectName,W.filepath,!!Yn);f.value&&(pr&&(U=typeof window.structuredClone<"u"?window.structuredClone(U):gA(U)),U.inlined=U.inlined.filter(oe=>!L.test(oe)),U.externalized=U.externalized.filter(oe=>!L.test(oe))),t.value=hge(U,W.filepath),c.value=W.filepath}b("graph")}finally{await new Promise(W=>setTimeout(W,100)),s.value=!1}}}Jh(()=>[h.value,fn.value,f.value],([,E,W],U)=>{E==="graph"&&M(U&&W!==U[2])},{debounce:100,immediate:!0});const A=Se(()=>{const E=jt.value?.file.projectName||"";return Ce.colors.get(E)||Cw(jt.value?.file.projectName)}),R=Se(()=>Ew(A.value)),B=Se(()=>{const E=Ps.value;if(!E)return jt.value?.name;const W=[];let U=dt.state.idMap.get(E);for(;U;)W.push(U.name),U=U.suite?U.suite:U===U.file?void 0:U.file;return W.reverse().join(" > ")});return(E,W)=>{const U=Dr("tooltip");return J(jt)?(se(),me("div",Rve,[ne("div",null,[ne("div",Pve,[Re(Fx,{state:J(jt).result?.state,mode:J(jt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),v.value?ct((se(),me("div",Ive,null,512)),[[U,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ue("",!0),J(jt)?.file.projectName?(se(),me("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:tn({backgroundColor:A.value,color:R.value})},$e(J(jt).file.projectName),5)):Ue("",!0),ne("div",$ve,$e(B.value),1),ne("div",Dve,[J(pr)?Ue("",!0):ct((se(),Je(Et,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!J(jt)?.filepath,onClick:m},null,8,["disabled"])),[[U,"Open in editor",void 0,{bottom:!0}]])])]),ne("div",zve,[ne("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==null}]),"data-testid":"btn-report",onClick:W[0]||(W[0]=oe=>b(null))},[...W[5]||(W[5]=[ne("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ht(" Report ",-1)])],2),ne("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==="graph"}]),onClick:W[1]||(W[1]=oe=>b("graph"))},[s.value?(se(),me("span",Fve)):(se(),me("span",Hve)),W[6]||(W[6]=ht(" Module Graph ",-1))],2),ne("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==="editor"}]),onClick:W[2]||(W[2]=oe=>b("editor"))},[W[7]||(W[7]=ne("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),ht(" "+$e(r.value?"* ":"")+"Code ",1)],2),ne("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":J(fn)==="console",op20:J(fn)!=="console"&&x.value===0}]),onClick:W[3]||(W[3]=oe=>b("console"))},[W[8]||(W[8]=ne("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),ht(" Console ("+$e(x.value)+") ",1)],2)])]),ne("div",Bve,[o.value?(se(),me("div",{key:0,"flex-1":J(fn)==="graph"&&""},[ct(Re(jge,{modelValue:f.value,"onUpdate:modelValue":W[4]||(W[4]=oe=>f.value=oe),graph:t.value,"data-testid":"graph","project-name":J(jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Zi,J(fn)==="graph"&&!s.value]])],8,Wve)):Ue("",!0),J(fn)==="editor"?(se(),Je(Mge,{key:J(jt).id,file:J(jt),"data-testid":"editor",onDraft:C},null,8,["file"])):J(fn)==="console"?(se(),Je(Cge,{key:2,file:J(jt),"data-testid":"console"},null,8,["file"])):!J(fn)&&!d.value&&J(jt)?(se(),Je(uve,{key:3,file:J(jt),"data-testid":"report"},null,8,["file"])):!J(fn)&&d.value?(se(),Je(Ove,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):Ue("",!0)])])):Ue("",!0)}}}),qve=""+new URL("../favicon.svg",import.meta.url).href;function jve(){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 Gc;function gh(){gh.init||(gh.init=!0,Gc=jve()!==-1)}var ef={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){gh(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Gc&&this.$el.appendChild(e),e.data="about:blank",Gc||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&&(!Gc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Uve=Fy();Dy("data-v-b329ee4c");const Vve={class:"resize-observer",tabindex:"-1"};zy();const Gve=Uve((e,t,r,o,s,c)=>(se(),Je("div",Vve)));ef.render=Gve;ef.__scopeId="data-v-b329ee4c";ef.__file="src/components/ResizeObserver.vue";function Kc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kc=function(t){return typeof t}:Kc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kc(e)}function Kve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xve(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 Yve(e,t,r){return t&&Xve(e.prototype,t),e}function H0(e){return Zve(e)||Jve(e)||Qve(e)||eme()}function Zve(e){if(Array.isArray(e))return vh(e)}function Jve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Qve(e,t){if(e){if(typeof e=="string")return vh(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 vh(e,t)}}function vh(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 eme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function nme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(H0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(H0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function Vx(e,t){if(e===t)return!0;if(Kc(e)==="object"){for(var r in e)if(!Vx(e[r],t[r]))return!1;return!0}return!1}var rme=(function(){function e(t,r,o){Kve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Yve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=tme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=nme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Ct(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Gx(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 rme(e,o,r);e._vue_visibilityState=s}}function ime(e,t,r){var o=t.value,s=t.oldValue;if(!Vx(o,s)){var c=e._vue_visibilityState;if(!o){Kx(e);return}c?c.createObserver(o,r):Gx(e,{value:o},r)}}function Kx(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ome={beforeMount:Gx,updated:ime,unmounted:Kx},sme={itemsLimit:1e3},lme=/(auto|scroll)/;function Xx(e,t){return e.parentNode===null?t:Xx(e.parentNode,t.concat([e]))}var kd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},ame=function(t){return kd(t,"overflow")+kd(t,"overflow-y")+kd(t,"overflow-x")},cme=function(t){return lme.test(ame(t))};function B0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Xx(e.parentNode,[]),r=0;r<t.length;r+=1)if(cme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function mh(e){"@babel/helpers - typeof";return mh=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},mh(e)}var ume={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 fme(){return this.items.length&&mh(this.items[0])!=="object"}var yh=!1;if(typeof window<"u"){yh=!1;try{var dme=Object.defineProperty({},"passive",{get:function(){yh=!0}});window.addEventListener("test",null,dme)}catch{}}let hme=0;var wp={name:"RecycleScroller",components:{ResizeObserver:ef},directives:{ObserveVisibility:ome},props:{...ume,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:fme,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=Ih({id:hme++,index:t,used:!0,key:o,type:s}),f=Oh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,x=this.pool,C=this.itemIndexByKey;let L,M,A,R,B;if(!p)L=M=R=B=A=0;else if(this.$_prerender)L=R=0,M=B=Math.min(this.prerender,h.length),A=null;else{const K=this.getScroll();if(t){let O=K.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=K.start;const V=this.buffer;K.start-=V,K.end+=V;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,K.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;K.end+=O}if(r===null){let O,N=0,_=p-1,z=~~(p/2),H;do H=z,O=v[z].accumulator,O<K.start?N=z:z<p-1&&v[z+1].accumulator>K.start&&(_=z),z=~~((N+_)/2);while(z!==H);for(z<0&&(z=0),L=z,A=v[p-1].accumulator,M=z;M<p&&v[M].accumulator<K.end;M++);for(M===-1?M=h.length-1:(M++,M>p&&(M=p)),R=L;R<p&&P+v[R].accumulator<K.start;R++);for(B=R;B<p&&P+v[B].accumulator<K.end;B++);}else{L=~~(K.start/r*o);const O=L%o;L-=O,M=Math.ceil(K.end/r*o),R=Math.max(0,Math.floor((K.start-P)/r*o)),B=Math.floor((K.end-P)/r*o),L<0&&(L=0),M>p&&(M=p),R<0&&(R=0),B>p&&(B=p),A=Math.ceil(p/o)*r}}M-L>sme.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let E;const W=L<=this.$_endIndex&&M>=this.$_startIndex;if(W)for(let K=0,V=x.length;K<V;K++)E=x[K],E.nr.used&&(e&&(E.nr.index=C[E.item[d]]),(E.nr.index==null||E.nr.index<L||E.nr.index>=M)&&this.unuseView(E));const U=W?null:new Map;let oe,te,Z;for(let K=L;K<M;K++){oe=h[K];const V=d?oe[d]:oe;if(V==null)throw new Error(`Key is ${V} on item (keyField is '${d}')`);if(E=m.get(V),!r&&!v[K].size){E&&this.unuseView(E);continue}te=oe[f];let P=b.get(te),O=!1;if(!E)W?P&&P.length?E=P.pop():E=this.addView(x,K,oe,V,te):(Z=U.get(te)||0,(!P||Z>=P.length)&&(E=this.addView(x,K,oe,V,te),this.unuseView(E,!0),P=b.get(te)),E=P[Z],U.set(te,Z+1)),m.delete(E.nr.key),E.nr.used=!0,E.nr.index=K,E.nr.key=V,E.nr.type=te,m.set(V,E),O=!0;else if(!E.nr.used&&(E.nr.used=!0,O=!0,P)){const N=P.indexOf(E);N!==-1&&P.splice(N,1)}E.item=oe,O&&(K===h.length-1&&this.$emit("scroll-end"),K===0&&this.$emit("scroll-start")),r===null?(E.position=v[K-1].accumulator,E.offset=0):(E.position=Math.floor(K/o)*r,E.offset=K%o*s)}return this.$_startIndex=L,this.$_endIndex=M,this.emitUpdate&&this.$emit("update",L,M,R,B),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:W}},getListenerTarget(){let e=B0(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,yh?{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=B0(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 pme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},gme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function vme(e,t,r,o,s,c){const f=Ho("ResizeObserver"),d=Dr("observe-visibility");return ct((se(),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?(se(),me("div",pme,[Sn(e.$slots,"before")],512)):Ue("v-if",!0),(se(),Je(Pd(r.listTag),{ref:"wrapper",style:tn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:it(()=>[(se(!0),me(nt,null,hr(s.pool,h=>(se(),Je(Pd(r.itemTag),bi({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}]]},vk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[Sn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Sn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(se(),me("div",gme,[Sn(e.$slots,"after")],512)):Ue("v-if",!0),Re(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}wp.render=vme;wp.__file="src/components/RecycleScroller.vue";function mme(e){const t=Se(()=>Jd.value?!1:!Ze.onlyTests),r=Se(()=>Un.value===""),o=Ve(Un.value);Jh(()=>Un.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Un.value="",h&&e.value?.focus()}function c(h){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Us.value&&(hn.value.search=h?.trim()??"",hn.value.failed=p,hn.value.success=v,hn.value.skipped=m,hn.value.onlyTests=b)}return _t(()=>[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"}),_t(()=>Ir.value.length,h=>{h&&(hn.value.expandAll=void 0)},{flush:"post"}),{initialized:Us,filter:Ze,search:Un,disableFilter:t,isFiltered:Tw,isFilteredByStatus:Jd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Xu,testsTotal:bA,uiEntries:Zn}}const yme=["open"],bme=ot({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ve(!0);return(r,o)=>(se(),me("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ne("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ne("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Sn(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=ne("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Sn(r.$slots,"default")],40,yme))}}),wme={"flex-1":"","ms-2":"","select-none":""},Pc=ot({__name:"FilterStatus",props:la({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=zu(e,"modelValue");return(r,o)=>(se(),me("label",bi({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]=Fc(s=>t.value=!t.value,["prevent"]))}),[ne("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(ne("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[Cb,t.value]]),ne("span",wme,$e(e.label),1)],16))}}),xme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Sme=ot({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(se(),me("button",xme,[ne("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),_me=["aria-label","data-current"],kme={key:1,"w-4":""},Tme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Cme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Eme={"text-sm":"",truncate:"","font-light":""},Ame=["text","innerHTML"],Lme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Mme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Nme={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Ome={key:1},Rme=ot({__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=Se(()=>dt.state.idMap.get(e.taskId)),r=Se(()=>{if(pr)return!1;const M=t.value;return M&&rp(M)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId)}async function s(M){e.onItemClick?.(M),ks.value&&(vu.value=!0,await Ct()),e.type==="file"?await lp([M.file]):await hce(M)}function c(M){return dt.rpc.updateSnapshot(M.file)}const f=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(M,A)=>`${e.taskId}-${A}`)),d=Se(()=>{const M=f.value,A=[];return(e.type==="file"||e.type==="suite")&&A.push("min-content"),A.push("min-content"),e.type==="suite"&&e.typecheck&&A.push("min-content"),A.push("minmax(0, 1fr)"),A.push("min-content"),`grid-template-columns: ${M.map(()=>"1rem").join(" ")} ${A.join(" ")};`}),h=Se(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>kw(e.name)),v=Se(()=>{const M=yA.value,A=p.value;return M?A.replace(M,R=>`<span class="highlight">${R}</span>`):A}),m=Se(()=>e.type!=="file"&&e.disableTaskLocation),b=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=Se(()=>m.value?"color-red5 dark:color-#f43f5e":null);function C(){const M=t.value;e.type==="file"?e.onItemClick?.(M):jw(M)}const L=Se(()=>Ew(e.projectNameColor));return(M,A)=>{const R=Dr("tooltip");return t.value?(se(),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:tn(d.value),"aria-label":e.name,"data-current":e.current,onClick:A[2]||(A[2]=B=>o())},[e.indent>0?(se(!0),me(nt,{key:0},hr(f.value,B=>(se(),me("div",{key:B,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ue("",!0),e.type==="file"||e.type==="suite"?(se(),me("div",kme,[ne("div",{class:st(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ue("",!0),Re(Fx,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),ne("div",Tme,[e.type==="file"&&e.typecheck?ct((se(),me("div",Cme,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ue("",!0),ne("span",Eme,[e.type==="file"&&e.projectName?(se(),me("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:tn({backgroundColor:e.projectNameColor,color:L.value})},$e(e.projectName),5)):Ue("",!0),ne("span",{text:e.state==="fail"?"red-500":"",innerHTML:v.value},null,8,Ame)]),typeof e.duration=="number"?(se(),me("span",Lme,$e(e.duration>0?e.duration:"< 1")+"ms ",1)):Ue("",!0)]),ne("div",Mme,[!J(pr)&&r.value?ct((se(),Je(Sme,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:A[0]||(A[0]=Fc(B=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ue("",!0),Re(J(Xb),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",x.value])},{popper:it(()=>[m.value?(se(),me("div",Nme,[A[5]||(A[5]=ne("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ne("div",null,[ht($e(b.value)+": this feature is not available, you have disabled ",1),A[3]||(A[3]=ne("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),A[4]||(A[4]=ht(" in your configuration file.",-1))]),A[6]||(A[6]=ne("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(se(),me("div",Ome,$e(b.value),1))]),default:it(()=>[Re(Et,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fc(C,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),J(pr)?Ue("",!0):ct((se(),Je(Et,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:A[1]||(A[1]=Fc(B=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[R,h.value,void 0,{bottom:!0}]])])],12,_me)):Ue("",!0)}}}),Pme=Ei(Rme,[["__scopeId","data-v-58d301d8"]]),Ime={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},$me={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Dme=["op"],zme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Fme={"text-red5":""},Hme={"text-yellow5":""},Bme={"text-green5":""},Wme={class:"text-purple5:50"},qme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},jme=["disabled"],Ume=["disabled"],Vme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Gme=ot({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Se(()=>Gs.value.includeTaskLocation),s=Ve(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:x,clearFilter:C,filteredFiles:L,testsTotal:M,uiEntries:A}=mme(s),R=Ve("grid-cols-2"),B=Ve("grid-col-span-2"),E=Ve();return lw(()=>E.value,([{contentRect:W}])=>{W.width<420?(R.value="grid-cols-2",B.value="grid-col-span-2"):(R.value="grid-cols-4",B.value="grid-col-span-4")}),(W,U)=>{const oe=Dr("tooltip");return se(),me("div",{ref_key:"testExplorerRef",ref:E,h:"full",flex:"~ col"},[ne("div",null,[ne("div",Ime,[Sn(W.$slots,"header",{filteredFiles:J(p)||J(v)?J(L):void 0})]),ne("div",$me,[U[13]||(U[13]=ne("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(ne("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=te=>Ot(d)?d.value=te:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:J(d).length?"100":"50",onKeydown:[U[1]||(U[1]=qd(te=>J(x)(!1),["esc"])),U[2]||(U[2]=qd(te=>r("run",J(p)||J(v)?J(L):void 0),["enter"]))]},null,40,Dme),[[IT,J(d)]]),ct(Re(Et,{disabled:J(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=te=>J(x)(!0))},null,8,["disabled"]),[[oe,"Clear search",void 0,{bottom:!0}]])]),ne("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(R.value)},[ne("div",{class:st(B.value),flex:"~ gap-2 items-center"},[U[14]||(U[14]=ne("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=ne("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Re(Et,{disabled:J(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=te=>J(C)(!1))},null,8,["disabled"]),[[oe,"Clear Filter",void 0,{bottom:!0}]])],2),Re(Pc,{modelValue:J(f).failed,"onUpdate:modelValue":U[5]||(U[5]=te=>J(f).failed=te),label:"Fail"},null,8,["modelValue"]),Re(Pc,{modelValue:J(f).success,"onUpdate:modelValue":U[6]||(U[6]=te=>J(f).success=te),label:"Pass"},null,8,["modelValue"]),Re(Pc,{modelValue:J(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=te=>J(f).skipped=te),label:"Skip"},null,8,["modelValue"]),Re(Pc,{modelValue:J(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=te=>J(f).onlyTests=te),label:"Only Tests"},null,8,["modelValue"])],2)]),ne("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...te)=>J(_m)&&J(_m)(...te))},[Re(bme,null,gk({default:it(()=>[(J(p)||J(v))&&J(A).length===0?(se(),me(nt,{key:0},[J(c)?(se(),me("div",qme,[U[18]||(U[18]=ne("div",{op30:""}," No matched test ",-1)),ne("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(J(m)?null:"hover:op100"),disabled:J(m),onClickPassive:U[9]||(U[9]=te=>J(x)(!0))}," Clear Search ",42,jme),ne("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(J(h)?null:"hover:op100"),disabled:J(h),onClickPassive:U[10]||(U[10]=te=>J(C)(!0))}," Clear Filter ",42,Ume),ne("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]=(...te)=>J(b)&&J(b)(...te))}," Clear All ",32)])):(se(),me("div",Vme,[...U[19]||(U[19]=[ne("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ne("div",{op30:""}," Loading... ",-1)])]))],64)):(se(),Je(J(wp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:J(A),buffer:100},{default:it(({item:te})=>[Re(Pme,{class:st(["h-28px m-0 p-0",J(ao)===te.id?"bg-active":""]),"task-id":te.id,expandable:te.expandable,type:te.type,current:J(ao)===te.id,indent:te.indent,name:te.name,typecheck:te.typecheck===!0,"project-name":te.projectName??"","project-name-color":te.projectNameColor??"",state:te.state,duration:te.duration,opened:te.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[J(c)?{name:"summary",fn:it(()=>[ne("div",zme,[ne("span",Fme," FAIL ("+$e(J(M).failed)+") ",1),U[16]||(U[16]=ne("span",null,"/",-1)),ne("span",Hme," RUNNING ("+$e(J(M).running)+") ",1),ne("span",Bme," PASS ("+$e(J(M).success)+") ",1),U[17]||(U[17]=ne("span",null,"/",-1)),ne("span",Wme," SKIP ("+$e(J(f).onlyTests?J(M).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Kme={class:"flex text-lg"},Xme=ot({__name:"Navigation",setup(e){function t(){return dt.rpc.updateSnapshot()}const r=Se(()=>el.value?"light":"dark");async function o(f){ks.value&&(vu.value=!0,await Ct(),co.value&&(mu(!0),await Ct())),f?.length?await lp(f):await fce()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=Dr("tooltip");return se(),Je(Gme,{border:"r base","on-item-click":J(Pae),nested:!0,onRun:o},{header:it(({filteredFiles:p})=>[d[8]||(d[8]=ne("img",{"w-6":"","h-6":"",src:qve,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ne("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ne("div",Kme,[ct(Re(Et,{title:"Collapse tests",disabled:!J(Us),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=v=>s())},null,8,["disabled"]),[[Zi,!J(qm)],[h,"Collapse tests",void 0,{bottom:!0}]]),ct(Re(Et,{disabled:!J(Us),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=v=>c())},null,8,["disabled"]),[[Zi,J(qm)],[h,"Expand tests",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=v=>J(mu)(!0))},null,512),[[Zi,J(th)&&!J(ks)||!J(Is)],[h,"Dashboard",void 0,{bottom:!0}]]),J(th)&&!J(ks)?(se(),Je(J(Xb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:it(()=>[...d[6]||(d[6]=[ne("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ne("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ne("div",null,"Coverage enabled but missing html reporter."),ne("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:it(()=>[d[7]||(d[7]=ne("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ue("",!0),J(ks)?ct((se(),Je(Et,{key:1,disabled:J(vu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=v=>J(Iae)())},null,8,["disabled"])),[[Zi,!J(co)],[h,"Coverage",void 0,{bottom:!0}]]):Ue("",!0),J(Ce).summary.failedSnapshot&&!J(pr)?ct((se(),Je(Et,{key:2,icon:"i-carbon:result-old",disabled:!J(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=v=>J(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ue("",!0),J(pr)?Ue("",!0):ct((se(),Je(Et,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:v=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ct(Re(Et,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=v=>J(wge)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Yme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Zme=ot({__name:"ProgressBar",setup(e){const{width:t}=aw(),r=Se(()=>[Ce.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ss.value&&"in-progress"].filter(Boolean).join(" ")),o=Se(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=Se(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=Se(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=Se(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(se(),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(r.value)},[ne("div",Yme,[ne("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(r.value),style:tn(`width: ${s.value}px;`)},"   ",6),ne("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(r.value),style:tn(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),ne("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(r.value),style:tn(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),Jme=Ei(Zme,[["__scopeId","data-v-5320005b"]]),Qme={"h-screen":"","w-screen":"",overflow:"hidden"},e0e=ot({__name:"index",setup(e){const t=Rae(),r=kc(({panes:v})=>{h(),d(v)},0),o=kc(({panes:v})=>{v.forEach((m,b)=>{$s.value[b]=m.size}),f(v),p()},0),s=kc(({panes:v})=>{v.forEach((m,b)=>{ro.value[b]=m.size}),d(v),p()},0),c=kc(({panes:v})=>{f(v),h()},0);function f(v){At.navigation=v[0].size,At.details.size=v[1].size}function d(v){At.details.browser=v[0].size,At.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>(se(),me(nt,null,[Re(Jme),ne("div",Qme,[Re(J(Lm),{class:"pt-4px",onResized:J(o),onResize:J(c)},{default:it(()=>[Re(J(Ec),{size:J($s)[0]},{default:it(()=>[Re(Xme)]),_:1},8,["size"]),Re(J(Ec),{size:J($s)[1]},{default:it(()=>[J(Yn)?(se(),Je(J(Lm),{id:"details-splitpanes",key:"browser-detail",onResize:J(r),onResized:J(s)},{default:it(()=>[Re(J(Ec),{size:J(ro)[0],"min-size":"10"},{default:it(()=>[m[0]||(Ws(-1,!0),(m[0]=Re(kce)).cacheIndex=0,Ws(1),m[0])]),_:1},8,["size"]),Re(J(Ec),{size:J(ro)[1]},{default:it(()=>[J(t)?(se(),Je(p0,{key:"summary"})):J(co)?(se(),Je(h0,{key:"coverage",src:J(f0)},null,8,["src"])):(se(),Je(F0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(se(),Je(gT,{key:"ui-detail"},{default:it(()=>[J(t)?(se(),Je(p0,{key:"summary"})):J(co)?(se(),Je(h0,{key:"coverage",src:J(f0)},null,8,["src"])):(se(),Je(F0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Re(Ece)],64))}}),t0e=[{name:"index",path:"/",component:e0e,props:!0}];/*!
50
50
  * vue-router v4.6.3
51
51
  * (c) 2025 Eduardo San Martin Morote
52
52
  * @license MIT
@@ -54,4 +54,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
54
54
  * vue-router v4.6.3
55
55
  * (c) 2025 Eduardo San Martin Morote
56
56
  * @license MIT
57
- */let $0e=()=>location.protocol+"//"+location.host;function s1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),q0(d,"")}return q0(r,e)+o+s}function D0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=s1(e,location),C=r.value,L=t.value;let M=0;if(b){if(r.value=x,t.value=b,f&&f===C){f=null;return}M=L?b.position-L.position:0}else o(x);s.forEach(A=>{A(r.value,C,{delta:M,type:wh.pop,direction:M?M>0?Ed.forward:Ed.back:Ed.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const C=s.indexOf(b);C>-1&&s.splice(C,1)};return c.push(x),x}function v(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:tf()}),"")}}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",v),document.removeEventListener("visibilitychange",v)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",v),document.addEventListener("visibilitychange",v),{pauseListeners:h,listen:p,destroy:m}}function K0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?tf():null}}function z0e(e){const{history:t,location:r}=window,o={value:s1(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:$0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,K0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:tf()});c(v.current,v,!0),c(h,bt({},K0(o.value,h,null),{position:v.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function F0e(e){e=S0e(e);const t=z0e(e),r=D0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:k0e.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 H0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),F0e(e)}let $o=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var en=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(en||{});const B0e={type:$o.Static,value:""},W0e=/[a-zA-Z0-9_]/;function q0e(e){if(!e)return[[]];if(e==="/")return[[B0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=en.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===en.Static?c.push({type:$o.Static,value:p}):r===en.Param||r===en.ParamRegExp||r===en.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:$o.Param,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==en.ParamRegExp){o=r,r=en.EscapeNext;continue}switch(r){case en.Static:h==="/"?(p&&m(),f()):h===":"?(m(),r=en.Param):b();break;case en.EscapeNext:b(),r=o;break;case en.Param:h==="("?r=en.ParamRegExp:W0e.test(h)?b():(m(),r=en.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case en.ParamRegExp:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=en.ParamRegExpEnd:v+=h;break;case en.ParamRegExpEnd:m(),r=en.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===en.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}const X0="[^/]+?",j0e={sensitive:!1,strict:!1,start:!0,end:!0};var Rn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Rn||{});const U0e=/[.+*?^${}()[\]/\\]/g;function V0e(e,t){const r=bt({},j0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[Rn.Root];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let x=Rn.Segment+(r.sensitive?Rn.BonusCaseSensitive:0);if(b.type===$o.Static)m||(s+="/"),s+=b.value.replace(U0e,"\\$&"),x+=Rn.Static;else if(b.type===$o.Param){const{value:C,repeatable:L,optional:M,regexp:A}=b;c.push({name:C,repeatable:L,optional:M});const R=A||X0;if(R!==X0){x+=Rn.BonusCustomRegExp;try{`${R}`}catch(E){throw new Error(`Invalid custom RegExp for param "${C}" (${R}): `+E.message)}}let W=L?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;m||(W=M&&p.length<2?`(?:/${W})`:"/"+W),M&&(W+="?"),s+=W,x+=Rn.Dynamic,M&&(x+=Rn.BonusOptional),L&&(x+=Rn.BonusRepeatable),R===".*"&&(x+=Rn.BonusWildcard)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=Rn.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",C=c[b-1];m[C.name]=x&&C.repeatable?x.split("/"):x}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const x of b)if(x.type===$o.Static)v+=x.value;else if(x.type===$o.Param){const{value:C,repeatable:L,optional:M}=x,A=C in p?p[C]:"";if($r(A)&&!L)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const R=$r(A)?A.join("/"):A;if(!R)if(M)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${C}"`);v+=R}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function G0e(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]===Rn.Static+Rn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Rn.Static+Rn.Segment?1:-1:0}function l1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=G0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(Y0(o))return 1;if(Y0(s))return-1}return s.length-o.length}function Y0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const K0e={strict:!1,end:!0,sensitive:!1};function X0e(e,t,r){const o=V0e(q0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Y0e(e,t){const r=[],o=new Map;t=W0(K0e,t);function s(m){return o.get(m)}function c(m,b,x){const C=!x,L=J0(m);L.aliasOf=x&&x.record;const M=W0(t,m),A=[L];if("alias"in m){const E=typeof m.alias=="string"?[m.alias]:m.alias;for(const B of E)A.push(J0(bt({},L,{components:x?x.record.components:L.components,path:B,aliasOf:x?x.record:L})))}let R,W;for(const E of A){const{path:B}=E;if(b&&B[0]!=="/"){const U=b.record.path,oe=U[U.length-1]==="/"?"":"/";E.path=b.record.path+(B&&oe+B)}if(R=X0e(E,b,M),x?x.alias.push(R):(W=W||R,W!==R&&W.alias.push(R),C&&m.name&&!Q0(R)&&f(m.name)),a1(R)&&h(R),L.children){const U=L.children;for(let oe=0;oe<U.length;oe++)c(U[oe],R,x&&x.children[oe])}x=x||R}return W?()=>{f(W)}:na}function f(m){if(r1(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=Q0e(m,r);r.splice(b,0,m),m.record.name&&!Q0(m)&&o.set(m.record.name,m)}function p(m,b){let x,C={},L,M;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Js(Ht.MATCHER_NOT_FOUND,{location:m});M=x.record.name,C=bt(Z0(b.params,x.keys.filter(W=>!W.optional).concat(x.parent?x.parent.keys.filter(W=>W.optional):[]).map(W=>W.name)),m.params&&Z0(m.params,x.keys.map(W=>W.name))),L=x.stringify(C)}else if(m.path!=null)L=m.path,x=r.find(W=>W.re.test(L)),x&&(C=x.parse(L),M=x.record.name);else{if(x=b.name?o.get(b.name):r.find(W=>W.re.test(b.path)),!x)throw Js(Ht.MATCHER_NOT_FOUND,{location:m,currentLocation:b});M=x.record.name,C=bt({},b.params,m.params),L=x.stringify(C)}const A=[];let R=x;for(;R;)A.unshift(R.record),R=R.parent;return{name:M,path:L,params:C,matched:A,meta:J0e(A)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function Z0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function J0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Z0e(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 Z0e(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 Q0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function J0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function Q0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;l1(e,t[c])<0?o=c:r=c+1}const s=eye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function eye(e){let t=e;for(;t=t.parent;)if(a1(t)&&l1(e,t)===0)return t}function a1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ey(e){const t=wn(Sp),r=wn(o1),o=Se(()=>{const h=J(e.to);return t.resolve(h)}),s=Se(()=>{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(Zs.bind(null,v));if(b>-1)return b;const x=ty(h[p-2]);return p>1&&ty(v)===x&&m[m.length-1].path!==x?m.findIndex(Zs.bind(null,h[p-2])):b}),c=Se(()=>s.value>-1&&oye(r.params,o.value.params)),f=Se(()=>s.value>-1&&s.value===r.matched.length-1&&n1(r.params,o.value.params));function d(h={}){if(iye(h)){const p=t[J(e.replace)?"replace":"push"](J(e.to)).catch(na);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Se(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function tye(e){return e.length===1?e[0]:e}const nye=ot({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ey,setup(e,{slots:t}){const r=ir(ey(e)),{options:o}=wn(Sp),s=Se(()=>({[ny(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[ny(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&tye(t.default(r));return e.custom?c:Na("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),rye=nye;function iye(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 oye(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(!$r(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function ty(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ny=(e,t,r)=>e??t??r,sye=ot({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=wn(Sh),s=Se(()=>e.route||o.value),c=wn(G0,0),f=Se(()=>{let p=J(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Se(()=>s.value.matched[f.value]);Er(G0,Se(()=>f.value+1)),Er(P0e,d),Er(Sh,s);const h=Ve();return _t(()=>[h.value,d.value,e.name],([p,v,m],[b,x,C])=>{v&&(v.instances[m]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!Zs(v,x)||!b)&&(v.enterCallbacks[m]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return ry(r.default,{Component:b,route:p});const x=m.props[v],C=x?x===!0?p.params:typeof x=="function"?x(p):x:null,M=Na(b,bt({},C,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return ry(r.default,{Component:M,route:p})||M}}});function ry(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const lye=sye;function aye(e){const t=Y0e(e.routes,e),r=e.parseQuery||O0e,o=e.stringifyQuery||V0,s=e.history,c=Fl(),f=Fl(),d=Fl(),h=nn(qi);let p=qi;xs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Td.bind(null,$=>""+$),m=Td.bind(null,g0e),b=Td.bind(null,Ta);function x($,G){let Q,le;return r1($)?(Q=t.getRecordMatcher($),le=G):le=$,t.addRoute(le,Q)}function C($){const G=t.getRecordMatcher($);G&&t.removeRoute(G)}function L(){return t.getRoutes().map($=>$.record)}function M($){return!!t.getRecordMatcher($)}function A($,G){if(G=bt({},G||h.value),typeof $=="string"){const X=Cd(r,$,G.path),ue=t.resolve({path:X.path},G),he=s.createHref(X.fullPath);return bt(X,ue,{params:b(ue.params),hash:Ta(X.hash),redirectedFrom:void 0,href:he})}let Q;if($.path!=null)Q=bt({},$,{path:Cd(r,$.path,G.path).path});else{const X=bt({},$.params);for(const ue in X)X[ue]==null&&delete X[ue];Q=bt({},$,{params:m(X)}),G.params=m(G.params)}const le=t.resolve(Q,G),ie=$.hash||"";le.params=v(b(le.params));const I=y0e(o,bt({},$,{hash:d0e(ie),path:le.path})),F=s.createHref(I);return bt({fullPath:I,hash:ie,query:o===V0?R0e($.query):$.query||{}},le,{redirectedFrom:void 0,href:F})}function R($){return typeof $=="string"?Cd(r,$,h.value.path):bt({},$)}function W($,G){if(p!==$)return Js(Ht.NAVIGATION_CANCELLED,{from:G,to:$})}function E($){return oe($)}function B($){return E(bt(R($),{replace:!0}))}function U($,G){const Q=$.matched[$.matched.length-1];if(Q&&Q.redirect){const{redirect:le}=Q;let ie=typeof le=="function"?le($,G):le;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=R(ie):{path:ie},ie.params={}),bt({query:$.query,hash:$.hash,params:ie.path!=null?{}:$.params},ie)}}function oe($,G){const Q=p=A($),le=h.value,ie=$.state,I=$.force,F=$.replace===!0,X=U(Q,le);if(X)return oe(bt(R(X),{state:typeof X=="object"?bt({},ie,X.state):ie,force:I,replace:F}),G||Q);const ue=Q;ue.redirectedFrom=G;let he;return!I&&b0e(o,le,Q)&&(he=Js(Ht.NAVIGATION_DUPLICATED,{to:ue,from:le}),Pe(le,le,!0,!1)),(he?Promise.resolve(he):K(ue,le)).catch(de=>fi(de)?fi(de,Ht.NAVIGATION_GUARD_REDIRECT)?de:we(de):re(de,ue,le)).then(de=>{if(de){if(fi(de,Ht.NAVIGATION_GUARD_REDIRECT))return oe(bt({replace:F},R(de.to),{state:typeof de.to=="object"?bt({},ie,de.to.state):ie,force:I}),G||ue)}else de=P(ue,le,!0,F,ie);return V(ue,le,de),de})}function te($,G){const Q=W($,G);return Q?Promise.reject(Q):Promise.resolve()}function Z($){const G=Ye.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext($):$()}function K($,G){let Q;const[le,ie,I]=I0e($,G);Q=Ad(le.reverse(),"beforeRouteLeave",$,G);for(const X of le)X.leaveGuards.forEach(ue=>{Q.push(Yi(ue,$,G))});const F=te.bind(null,$,G);return Q.push(F),Me(Q).then(()=>{Q=[];for(const X of c.list())Q.push(Yi(X,$,G));return Q.push(F),Me(Q)}).then(()=>{Q=Ad(ie,"beforeRouteUpdate",$,G);for(const X of ie)X.updateGuards.forEach(ue=>{Q.push(Yi(ue,$,G))});return Q.push(F),Me(Q)}).then(()=>{Q=[];for(const X of I)if(X.beforeEnter)if($r(X.beforeEnter))for(const ue of X.beforeEnter)Q.push(Yi(ue,$,G));else Q.push(Yi(X.beforeEnter,$,G));return Q.push(F),Me(Q)}).then(()=>($.matched.forEach(X=>X.enterCallbacks={}),Q=Ad(I,"beforeRouteEnter",$,G,Z),Q.push(F),Me(Q))).then(()=>{Q=[];for(const X of f.list())Q.push(Yi(X,$,G));return Q.push(F),Me(Q)}).catch(X=>fi(X,Ht.NAVIGATION_CANCELLED)?X:Promise.reject(X))}function V($,G,Q){d.list().forEach(le=>Z(()=>le($,G,Q)))}function P($,G,Q,le,ie){const I=W($,G);if(I)return I;const F=G===qi,X=xs?history.state:{};Q&&(le||F?s.replace($.fullPath,bt({scroll:F&&X&&X.scroll},ie)):s.push($.fullPath,ie)),h.value=$,Pe($,G,Q,F),we()}let O;function N(){O||(O=s.listen(($,G,Q)=>{if(!ze.listening)return;const le=A($),ie=U(le,ze.currentRoute.value);if(ie){oe(bt(ie,{replace:!0,force:!0}),le).catch(na);return}p=le;const I=h.value;xs&&E0e(U0(I.fullPath,Q.delta),tf()),K(le,I).catch(F=>fi(F,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_CANCELLED)?F:fi(F,Ht.NAVIGATION_GUARD_REDIRECT)?(oe(bt(R(F.to),{force:!0}),le).then(X=>{fi(X,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===wh.pop&&s.go(-1,!1)}).catch(na),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),re(F,le,I))).then(F=>{F=F||P(le,I,!1),F&&(Q.delta&&!fi(F,Ht.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===wh.pop&&fi(F,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),V(le,I,F)}).catch(na)}))}let _=Fl(),z=Fl(),H;function re($,G,Q){we($);const le=z.list();return le.length?le.forEach(ie=>ie($,G,Q)):console.error($),Promise.reject($)}function ve(){return H&&h.value!==qi?Promise.resolve():new Promise(($,G)=>{_.add([$,G])})}function we($){return H||(H=!$,N(),_.list().forEach(([G,Q])=>$?Q($):G()),_.reset()),$}function Pe($,G,Q,le){const{scrollBehavior:ie}=e;if(!xs||!ie)return Promise.resolve();const I=!Q&&A0e(U0($.fullPath,0))||(le||!Q)&&history.state&&history.state.scroll||null;return Ct().then(()=>ie($,G,I)).then(F=>F&&C0e(F)).catch(F=>re(F,$,G))}const je=$=>s.go($);let Qe;const Ye=new Set,ze={currentRoute:h,listening:!0,addRoute:x,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:L,resolve:A,options:e,push:E,replace:B,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:z.add,isReady:ve,install($){$.component("RouterLink",rye),$.component("RouterView",lye),$.config.globalProperties.$router=ze,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>J(h)}),xs&&!Qe&&h.value===qi&&(Qe=!0,E(s.location).catch(le=>{}));const G={};for(const le in qi)Object.defineProperty(G,le,{get:()=>h.value[le],enumerable:!0});$.provide(Sp,ze),$.provide(o1,Oh(G)),$.provide(Sh,h);const Q=$.unmount;Ye.add($),$.unmount=function(){Ye.delete($),Ye.size<1&&(p=qi,O&&O(),O=null,h.value=qi,Qe=!1,H=!1),Q()}}};function Me($){return $.reduce((G,Q)=>G.then(()=>Z(Q)),Promise.resolve())}return ze}const cye={tooltip:qC};Yb.options.instantMove=!0;Yb.options.distance=10;function uye(){return aye({history:H0e(),routes:t0e})}const fye=[uye],_p=Ab(VT);fye.forEach(e=>{_p.use(e())});Object.entries(cye).forEach(([e,t])=>{_p.directive(e,t)});_p.mount("#app");
57
+ */let $0e=()=>location.protocol+"//"+location.host;function s1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),q0(d,"")}return q0(r,e)+o+s}function D0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=s1(e,location),C=r.value,L=t.value;let M=0;if(b){if(r.value=x,t.value=b,f&&f===C){f=null;return}M=L?b.position-L.position:0}else o(x);s.forEach(A=>{A(r.value,C,{delta:M,type:wh.pop,direction:M?M>0?Ed.forward:Ed.back:Ed.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const C=s.indexOf(b);C>-1&&s.splice(C,1)};return c.push(x),x}function v(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:tf()}),"")}}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",v),document.removeEventListener("visibilitychange",v)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",v),document.addEventListener("visibilitychange",v),{pauseListeners:h,listen:p,destroy:m}}function K0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?tf():null}}function z0e(e){const{history:t,location:r}=window,o={value:s1(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:$0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,K0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:tf()});c(v.current,v,!0),c(h,bt({},K0(o.value,h,null),{position:v.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function F0e(e){e=S0e(e);const t=z0e(e),r=D0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:k0e.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 H0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),F0e(e)}let $o=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var en=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(en||{});const B0e={type:$o.Static,value:""},W0e=/[a-zA-Z0-9_]/;function q0e(e){if(!e)return[[]];if(e==="/")return[[B0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=en.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===en.Static?c.push({type:$o.Static,value:p}):r===en.Param||r===en.ParamRegExp||r===en.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:$o.Param,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==en.ParamRegExp){o=r,r=en.EscapeNext;continue}switch(r){case en.Static:h==="/"?(p&&m(),f()):h===":"?(m(),r=en.Param):b();break;case en.EscapeNext:b(),r=o;break;case en.Param:h==="("?r=en.ParamRegExp:W0e.test(h)?b():(m(),r=en.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case en.ParamRegExp:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=en.ParamRegExpEnd:v+=h;break;case en.ParamRegExpEnd:m(),r=en.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===en.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}const X0="[^/]+?",j0e={sensitive:!1,strict:!1,start:!0,end:!0};var Rn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Rn||{});const U0e=/[.+*?^${}()[\]/\\]/g;function V0e(e,t){const r=bt({},j0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[Rn.Root];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let x=Rn.Segment+(r.sensitive?Rn.BonusCaseSensitive:0);if(b.type===$o.Static)m||(s+="/"),s+=b.value.replace(U0e,"\\$&"),x+=Rn.Static;else if(b.type===$o.Param){const{value:C,repeatable:L,optional:M,regexp:A}=b;c.push({name:C,repeatable:L,optional:M});const R=A||X0;if(R!==X0){x+=Rn.BonusCustomRegExp;try{`${R}`}catch(E){throw new Error(`Invalid custom RegExp for param "${C}" (${R}): `+E.message)}}let B=L?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;m||(B=M&&p.length<2?`(?:/${B})`:"/"+B),M&&(B+="?"),s+=B,x+=Rn.Dynamic,M&&(x+=Rn.BonusOptional),L&&(x+=Rn.BonusRepeatable),R===".*"&&(x+=Rn.BonusWildcard)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=Rn.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",C=c[b-1];m[C.name]=x&&C.repeatable?x.split("/"):x}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const x of b)if(x.type===$o.Static)v+=x.value;else if(x.type===$o.Param){const{value:C,repeatable:L,optional:M}=x,A=C in p?p[C]:"";if($r(A)&&!L)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const R=$r(A)?A.join("/"):A;if(!R)if(M)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${C}"`);v+=R}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function G0e(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]===Rn.Static+Rn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Rn.Static+Rn.Segment?1:-1:0}function l1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=G0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(Y0(o))return 1;if(Y0(s))return-1}return s.length-o.length}function Y0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const K0e={strict:!1,end:!0,sensitive:!1};function X0e(e,t,r){const o=V0e(q0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Y0e(e,t){const r=[],o=new Map;t=W0(K0e,t);function s(m){return o.get(m)}function c(m,b,x){const C=!x,L=J0(m);L.aliasOf=x&&x.record;const M=W0(t,m),A=[L];if("alias"in m){const E=typeof m.alias=="string"?[m.alias]:m.alias;for(const W of E)A.push(J0(bt({},L,{components:x?x.record.components:L.components,path:W,aliasOf:x?x.record:L})))}let R,B;for(const E of A){const{path:W}=E;if(b&&W[0]!=="/"){const U=b.record.path,oe=U[U.length-1]==="/"?"":"/";E.path=b.record.path+(W&&oe+W)}if(R=X0e(E,b,M),x?x.alias.push(R):(B=B||R,B!==R&&B.alias.push(R),C&&m.name&&!Q0(R)&&f(m.name)),a1(R)&&h(R),L.children){const U=L.children;for(let oe=0;oe<U.length;oe++)c(U[oe],R,x&&x.children[oe])}x=x||R}return B?()=>{f(B)}:na}function f(m){if(r1(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=Q0e(m,r);r.splice(b,0,m),m.record.name&&!Q0(m)&&o.set(m.record.name,m)}function p(m,b){let x,C={},L,M;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Js(Ht.MATCHER_NOT_FOUND,{location:m});M=x.record.name,C=bt(Z0(b.params,x.keys.filter(B=>!B.optional).concat(x.parent?x.parent.keys.filter(B=>B.optional):[]).map(B=>B.name)),m.params&&Z0(m.params,x.keys.map(B=>B.name))),L=x.stringify(C)}else if(m.path!=null)L=m.path,x=r.find(B=>B.re.test(L)),x&&(C=x.parse(L),M=x.record.name);else{if(x=b.name?o.get(b.name):r.find(B=>B.re.test(b.path)),!x)throw Js(Ht.MATCHER_NOT_FOUND,{location:m,currentLocation:b});M=x.record.name,C=bt({},b.params,m.params),L=x.stringify(C)}const A=[];let R=x;for(;R;)A.unshift(R.record),R=R.parent;return{name:M,path:L,params:C,matched:A,meta:J0e(A)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function Z0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function J0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Z0e(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 Z0e(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 Q0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function J0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function Q0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;l1(e,t[c])<0?o=c:r=c+1}const s=eye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function eye(e){let t=e;for(;t=t.parent;)if(a1(t)&&l1(e,t)===0)return t}function a1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ey(e){const t=wn(Sp),r=wn(o1),o=Se(()=>{const h=J(e.to);return t.resolve(h)}),s=Se(()=>{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(Zs.bind(null,v));if(b>-1)return b;const x=ty(h[p-2]);return p>1&&ty(v)===x&&m[m.length-1].path!==x?m.findIndex(Zs.bind(null,h[p-2])):b}),c=Se(()=>s.value>-1&&oye(r.params,o.value.params)),f=Se(()=>s.value>-1&&s.value===r.matched.length-1&&n1(r.params,o.value.params));function d(h={}){if(iye(h)){const p=t[J(e.replace)?"replace":"push"](J(e.to)).catch(na);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Se(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function tye(e){return e.length===1?e[0]:e}const nye=ot({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ey,setup(e,{slots:t}){const r=ir(ey(e)),{options:o}=wn(Sp),s=Se(()=>({[ny(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[ny(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&tye(t.default(r));return e.custom?c:Na("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),rye=nye;function iye(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 oye(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(!$r(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function ty(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ny=(e,t,r)=>e??t??r,sye=ot({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=wn(Sh),s=Se(()=>e.route||o.value),c=wn(G0,0),f=Se(()=>{let p=J(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Se(()=>s.value.matched[f.value]);Er(G0,Se(()=>f.value+1)),Er(P0e,d),Er(Sh,s);const h=Ve();return _t(()=>[h.value,d.value,e.name],([p,v,m],[b,x,C])=>{v&&(v.instances[m]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!Zs(v,x)||!b)&&(v.enterCallbacks[m]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return ry(r.default,{Component:b,route:p});const x=m.props[v],C=x?x===!0?p.params:typeof x=="function"?x(p):x:null,M=Na(b,bt({},C,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return ry(r.default,{Component:M,route:p})||M}}});function ry(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const lye=sye;function aye(e){const t=Y0e(e.routes,e),r=e.parseQuery||O0e,o=e.stringifyQuery||V0,s=e.history,c=Fl(),f=Fl(),d=Fl(),h=nn(qi);let p=qi;xs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Td.bind(null,$=>""+$),m=Td.bind(null,g0e),b=Td.bind(null,Ta);function x($,G){let Q,le;return r1($)?(Q=t.getRecordMatcher($),le=G):le=$,t.addRoute(le,Q)}function C($){const G=t.getRecordMatcher($);G&&t.removeRoute(G)}function L(){return t.getRoutes().map($=>$.record)}function M($){return!!t.getRecordMatcher($)}function A($,G){if(G=bt({},G||h.value),typeof $=="string"){const X=Cd(r,$,G.path),ue=t.resolve({path:X.path},G),he=s.createHref(X.fullPath);return bt(X,ue,{params:b(ue.params),hash:Ta(X.hash),redirectedFrom:void 0,href:he})}let Q;if($.path!=null)Q=bt({},$,{path:Cd(r,$.path,G.path).path});else{const X=bt({},$.params);for(const ue in X)X[ue]==null&&delete X[ue];Q=bt({},$,{params:m(X)}),G.params=m(G.params)}const le=t.resolve(Q,G),ie=$.hash||"";le.params=v(b(le.params));const I=y0e(o,bt({},$,{hash:d0e(ie),path:le.path})),F=s.createHref(I);return bt({fullPath:I,hash:ie,query:o===V0?R0e($.query):$.query||{}},le,{redirectedFrom:void 0,href:F})}function R($){return typeof $=="string"?Cd(r,$,h.value.path):bt({},$)}function B($,G){if(p!==$)return Js(Ht.NAVIGATION_CANCELLED,{from:G,to:$})}function E($){return oe($)}function W($){return E(bt(R($),{replace:!0}))}function U($,G){const Q=$.matched[$.matched.length-1];if(Q&&Q.redirect){const{redirect:le}=Q;let ie=typeof le=="function"?le($,G):le;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=R(ie):{path:ie},ie.params={}),bt({query:$.query,hash:$.hash,params:ie.path!=null?{}:$.params},ie)}}function oe($,G){const Q=p=A($),le=h.value,ie=$.state,I=$.force,F=$.replace===!0,X=U(Q,le);if(X)return oe(bt(R(X),{state:typeof X=="object"?bt({},ie,X.state):ie,force:I,replace:F}),G||Q);const ue=Q;ue.redirectedFrom=G;let he;return!I&&b0e(o,le,Q)&&(he=Js(Ht.NAVIGATION_DUPLICATED,{to:ue,from:le}),Pe(le,le,!0,!1)),(he?Promise.resolve(he):K(ue,le)).catch(de=>fi(de)?fi(de,Ht.NAVIGATION_GUARD_REDIRECT)?de:we(de):re(de,ue,le)).then(de=>{if(de){if(fi(de,Ht.NAVIGATION_GUARD_REDIRECT))return oe(bt({replace:F},R(de.to),{state:typeof de.to=="object"?bt({},ie,de.to.state):ie,force:I}),G||ue)}else de=P(ue,le,!0,F,ie);return V(ue,le,de),de})}function te($,G){const Q=B($,G);return Q?Promise.reject(Q):Promise.resolve()}function Z($){const G=Ye.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext($):$()}function K($,G){let Q;const[le,ie,I]=I0e($,G);Q=Ad(le.reverse(),"beforeRouteLeave",$,G);for(const X of le)X.leaveGuards.forEach(ue=>{Q.push(Yi(ue,$,G))});const F=te.bind(null,$,G);return Q.push(F),Me(Q).then(()=>{Q=[];for(const X of c.list())Q.push(Yi(X,$,G));return Q.push(F),Me(Q)}).then(()=>{Q=Ad(ie,"beforeRouteUpdate",$,G);for(const X of ie)X.updateGuards.forEach(ue=>{Q.push(Yi(ue,$,G))});return Q.push(F),Me(Q)}).then(()=>{Q=[];for(const X of I)if(X.beforeEnter)if($r(X.beforeEnter))for(const ue of X.beforeEnter)Q.push(Yi(ue,$,G));else Q.push(Yi(X.beforeEnter,$,G));return Q.push(F),Me(Q)}).then(()=>($.matched.forEach(X=>X.enterCallbacks={}),Q=Ad(I,"beforeRouteEnter",$,G,Z),Q.push(F),Me(Q))).then(()=>{Q=[];for(const X of f.list())Q.push(Yi(X,$,G));return Q.push(F),Me(Q)}).catch(X=>fi(X,Ht.NAVIGATION_CANCELLED)?X:Promise.reject(X))}function V($,G,Q){d.list().forEach(le=>Z(()=>le($,G,Q)))}function P($,G,Q,le,ie){const I=B($,G);if(I)return I;const F=G===qi,X=xs?history.state:{};Q&&(le||F?s.replace($.fullPath,bt({scroll:F&&X&&X.scroll},ie)):s.push($.fullPath,ie)),h.value=$,Pe($,G,Q,F),we()}let O;function N(){O||(O=s.listen(($,G,Q)=>{if(!ze.listening)return;const le=A($),ie=U(le,ze.currentRoute.value);if(ie){oe(bt(ie,{replace:!0,force:!0}),le).catch(na);return}p=le;const I=h.value;xs&&E0e(U0(I.fullPath,Q.delta),tf()),K(le,I).catch(F=>fi(F,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_CANCELLED)?F:fi(F,Ht.NAVIGATION_GUARD_REDIRECT)?(oe(bt(R(F.to),{force:!0}),le).then(X=>{fi(X,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===wh.pop&&s.go(-1,!1)}).catch(na),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),re(F,le,I))).then(F=>{F=F||P(le,I,!1),F&&(Q.delta&&!fi(F,Ht.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===wh.pop&&fi(F,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),V(le,I,F)}).catch(na)}))}let _=Fl(),z=Fl(),H;function re($,G,Q){we($);const le=z.list();return le.length?le.forEach(ie=>ie($,G,Q)):console.error($),Promise.reject($)}function ve(){return H&&h.value!==qi?Promise.resolve():new Promise(($,G)=>{_.add([$,G])})}function we($){return H||(H=!$,N(),_.list().forEach(([G,Q])=>$?Q($):G()),_.reset()),$}function Pe($,G,Q,le){const{scrollBehavior:ie}=e;if(!xs||!ie)return Promise.resolve();const I=!Q&&A0e(U0($.fullPath,0))||(le||!Q)&&history.state&&history.state.scroll||null;return Ct().then(()=>ie($,G,I)).then(F=>F&&C0e(F)).catch(F=>re(F,$,G))}const je=$=>s.go($);let Qe;const Ye=new Set,ze={currentRoute:h,listening:!0,addRoute:x,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:L,resolve:A,options:e,push:E,replace:W,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:z.add,isReady:ve,install($){$.component("RouterLink",rye),$.component("RouterView",lye),$.config.globalProperties.$router=ze,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>J(h)}),xs&&!Qe&&h.value===qi&&(Qe=!0,E(s.location).catch(le=>{}));const G={};for(const le in qi)Object.defineProperty(G,le,{get:()=>h.value[le],enumerable:!0});$.provide(Sp,ze),$.provide(o1,Oh(G)),$.provide(Sh,h);const Q=$.unmount;Ye.add($),$.unmount=function(){Ye.delete($),Ye.size<1&&(p=qi,O&&O(),O=null,h.value=qi,Qe=!1,H=!1),Q()}}};function Me($){return $.reduce((G,Q)=>G.then(()=>Z(Q)),Promise.resolve())}return ze}const cye={tooltip:qC};Yb.options.instantMove=!0;Yb.options.distance=10;function uye(){return aye({history:H0e(),routes:t0e})}const fye=[uye],_p=Ab(VT);fye.forEach(e=>{_p.use(e())});Object.entries(cye).forEach(([e,t])=>{_p.directive(e,t)});_p.mount("#app");