Files
beenpad/node_modules/@vitest/ui/dist/client/assets/index-CfDzoXo3.js
2025-12-08 10:52:05 -05:00

58 lines
687 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
* @vue/shared v3.5.25
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Fh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},Ps=[],Xr=()=>{},T0=()=>!1,$u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hh=e=>e.startsWith("onUpdate:"),on=Object.assign,Bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},PS=Object.prototype.hasOwnProperty,wt=(e,t)=>PS.call(e,t),Ze=Array.isArray,$s=e=>Oa(e)==="[object Map]",Iu=e=>Oa(e)==="[object Set]",Bm=e=>Oa(e)==="[object Date]",et=e=>typeof e=="function",Ht=e=>typeof e=="string",Rr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",C0=e=>(kt(e)||et(e))&&et(e.then)&&et(e.catch),E0=Object.prototype.toString,Oa=e=>E0.call(e),$S=e=>Oa(e).slice(8,-1),A0=e=>Oa(e)==="[object Object]",Du=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xl=Fh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},IS=/-\w/g,sr=zu(e=>e.replace(IS,t=>t.slice(1).toUpperCase())),DS=/\B([A-Z])/g,Ai=zu(e=>e.replace(DS,"-$1").toLowerCase()),Fu=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),qc=zu(e=>e?`on${Fu(e)}`:""),Gn=(e,t)=>!Object.is(e,t),jc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},L0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Wh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},M0=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let Wm;const Hu=()=>Wm||(Wm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(e){if(Ze(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ht(o)?BS(o):zt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ht(e)||kt(e))return e}const zS=/;(?![^(]*\))/g,FS=/:([^]+)/,HS=/\/\*[^]*?\*\//g;function BS(e){const t={};return e.replace(HS,"").split(zS).forEach(r=>{if(r){const o=r.split(FS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Ht(e))t=e;else if(Ze(e))for(let r=0;r<e.length;r++){const o=ot(e[r]);o&&(t+=o+" ")}else if(kt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function WS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ht(t)&&(e.class=ot(t)),r&&(e.style=zt(r)),e}const qS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jS=Fh(qS);function N0(e){return!!e||e===""}function US(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Bu(e[o],t[o]);return r}function Bu(e,t){if(e===t)return!0;let r=Bm(e),o=Bm(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Rr(e),o=Rr(t),r||o)return e===t;if(r=Ze(e),o=Ze(t),r||o)return r&&o?US(e,t):!1;if(r=kt(e),o=kt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!Bu(e[f],t[f]))return!1}}return String(e)===String(t)}function O0(e,t){return e.findIndex(r=>Bu(r,t))}const R0=e=>!!(e&&e.__v_isRef===!0),Pe=e=>Ht(e)?e:e==null?"":Ze(e)||kt(e)&&(e.toString===E0||!et(e.toString))?R0(e)?Pe(e.value):JSON.stringify(e,P0,2):String(e),P0=(e,t)=>R0(t)?P0(e,t.value):$s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[fd(o,c)+" =>"]=s,r),{})}:Iu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>fd(r))}:Rr(t)?fd(t):kt(t)&&!Ze(t)&&!A0(t)?String(t):t,fd=(e,t="")=>{var r;return Rr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
* @vue/reactivity v3.5.25
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let bn;class VS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=bn;try{return bn=this,t()}finally{bn=r}}}on(){++this._on===1&&(this.prevScope=bn,bn=this)}off(){this._on>0&&--this._on===0&&(bn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function $0(){return bn}function GS(e,t=!1){bn&&bn.cleanups.push(e)}let Tt;const dd=new WeakSet;class I0{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,bn&&bn.active&&bn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,dd.has(this)&&(dd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||z0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qm(this),F0(this);const t=Tt,r=Nr;Tt=this,Nr=!0;try{return this.fn()}finally{H0(this),Tt=t,Nr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Uh(t);this.deps=this.depsTail=void 0,qm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?dd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){jd(this)&&this.run()}get dirty(){return jd(this)}}let D0=0,Yl,Zl;function z0(e,t=!1){if(e.flags|=8,t){e.next=Zl,Zl=e;return}e.next=Yl,Yl=e}function qh(){D0++}function jh(){if(--D0>0)return;if(Zl){let t=Zl;for(Zl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Yl;){let t=Yl;for(Yl=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 F0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function H0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Uh(o),KS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function jd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(B0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function B0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===aa)||(e.globalVersion=aa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jd(e))))return;e.flags|=2;const t=e.dep,r=Tt,o=Nr;Tt=e,Nr=!0;try{F0(e);const s=e.fn(e._value);(t.version===0||Gn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=r,Nr=o,H0(e),e.flags&=-3}}function Uh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Uh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function KS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Nr=!0;const W0=[];function Si(){W0.push(Nr),Nr=!1}function _i(){const e=W0.pop();Nr=e===void 0?!0:e}function qm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Tt;Tt=void 0;try{t()}finally{Tt=r}}}let aa=0;class XS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Tt||!Nr||Tt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Tt)r=this.activeLink=new XS(Tt,this),Tt.deps?(r.prevDep=Tt.depsTail,Tt.depsTail.nextDep=r,Tt.depsTail=r):Tt.deps=Tt.depsTail=r,q0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=Tt.depsTail,r.nextDep=void 0,Tt.depsTail.nextDep=r,Tt.depsTail=r,Tt.deps===r&&(Tt.deps=o)}return r}trigger(t){this.version++,aa++,this.notify(t)}notify(t){qh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{jh()}}}function q0(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)q0(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const iu=new WeakMap,qo=Symbol(""),Ud=Symbol(""),ca=Symbol("");function wn(e,t,r){if(Nr&&Tt){let o=iu.get(e);o||iu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Wu),s.map=o,s.key=r),s.track()}}function bi(e,t,r,o,s,c){const f=iu.get(e);if(!f){aa++;return}const d=h=>{h&&h.trigger()};if(qh(),t==="clear")f.forEach(d);else{const h=Ze(e),p=h&&Du(r);if(h&&r==="length"){const g=Number(o);f.forEach((v,b)=>{(b==="length"||b===ca||!Rr(b)&&b>=g)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ca)),t){case"add":h?p&&d(f.get("length")):(d(f.get(qo)),$s(e)&&d(f.get(Ud)));break;case"delete":h||(d(f.get(qo)),$s(e)&&d(f.get(Ud)));break;case"set":$s(e)&&d(f.get(qo));break}}jh()}function YS(e,t){const r=iu.get(e);return r&&r.get(t)}function _s(e){const t=mt(e);return t===e?t:(wn(t,"iterate",ca),or(e)?t:t.map(Pr))}function qu(e){return wn(e=mt(e),"iterate",ca),e}function Yi(e,t){return Ti(e)?jo(e)?Ks(Pr(t)):Ks(t):Pr(t)}const ZS={__proto__:null,[Symbol.iterator](){return hd(this,Symbol.iterator,e=>Yi(this,e))},concat(...e){return _s(this).concat(...e.map(t=>Ze(t)?_s(t):t))},entries(){return hd(this,"entries",e=>(e[1]=Yi(this,e[1]),e))},every(e,t){return fi(this,"every",e,t,void 0,arguments)},filter(e,t){return fi(this,"filter",e,t,r=>r.map(o=>Yi(this,o)),arguments)},find(e,t){return fi(this,"find",e,t,r=>Yi(this,r),arguments)},findIndex(e,t){return fi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return fi(this,"findLast",e,t,r=>Yi(this,r),arguments)},findLastIndex(e,t){return fi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return fi(this,"forEach",e,t,void 0,arguments)},includes(...e){return pd(this,"includes",e)},indexOf(...e){return pd(this,"indexOf",e)},join(e){return _s(this).join(e)},lastIndexOf(...e){return pd(this,"lastIndexOf",e)},map(e,t){return fi(this,"map",e,t,void 0,arguments)},pop(){return Dl(this,"pop")},push(...e){return Dl(this,"push",e)},reduce(e,...t){return jm(this,"reduce",e,t)},reduceRight(e,...t){return jm(this,"reduceRight",e,t)},shift(){return Dl(this,"shift")},some(e,t){return fi(this,"some",e,t,void 0,arguments)},splice(...e){return Dl(this,"splice",e)},toReversed(){return _s(this).toReversed()},toSorted(e){return _s(this).toSorted(e)},toSpliced(...e){return _s(this).toSpliced(...e)},unshift(...e){return Dl(this,"unshift",e)},values(){return hd(this,"values",e=>Yi(this,e))}};function hd(e,t,r){const o=qu(e),s=o[t]();return o!==e&&!or(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const JS=Array.prototype;function fi(e,t,r,o,s,c){const f=qu(e),d=f!==e&&!or(e),h=f[t];if(h!==JS[t]){const v=h.apply(e,c);return d?Pr(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,Yi(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const g=h.call(f,p,o);return d&&s?s(g):g}function jm(e,t,r,o){const s=qu(e);let c=r;return s!==e&&(or(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,Yi(e,d),h,e)}),s[t](c,...o)}function pd(e,t,r){const o=mt(e);wn(o,"iterate",ca);const s=o[t](...r);return(s===-1||s===!1)&&ju(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function Dl(e,t,r=[]){Si(),qh();const o=mt(e)[t].apply(e,r);return jh(),_i(),o}const QS=Fh("__proto__,__v_isRef,__isVue"),j0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rr));function e_(e){Rr(e)||(e=String(e));const t=mt(this);return wn(t,"has",e),t.hasOwnProperty(e)}class U0{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?u_:X0:c?K0:G0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Ze(t);if(!s){let h;if(f&&(h=ZS[r]))return h;if(r==="hasOwnProperty")return e_}const d=Reflect.get(t,r,Mt(t)?t:o);if((Rr(r)?j0.has(r):QS(r))||(s||wn(t,"get",r),c))return d;if(Mt(d)){const h=f&&Du(r)?d:d.value;return s&&kt(h)?Gs(h):h}return kt(d)?s?Gs(d):ir(d):d}}class V0 extends U0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Ze(t)&&Du(r);if(!this._isShallow){const p=Ti(c);if(!or(o)&&!Ti(o)&&(c=mt(c),o=mt(o)),!f&&Mt(c)&&!Mt(o))return p||(c.value=o),!0}const d=f?Number(r)<t.length:wt(t,r),h=Reflect.set(t,r,o,Mt(t)?t:s);return t===mt(s)&&(d?Gn(o,c)&&bi(t,"set",r,o):bi(t,"add",r,o)),h}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&bi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Rr(r)||!j0.has(r))&&wn(t,"has",r),o}ownKeys(t){return wn(t,"iterate",Ze(t)?"length":qo),Reflect.ownKeys(t)}}class t_ extends U0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const n_=new V0,r_=new t_,i_=new V0(!0);const Vd=e=>e,Tc=e=>Reflect.getPrototypeOf(e);function o_(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=$s(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),g=r?Vd:t?Ks:Pr;return!t&&wn(c,"iterate",h?Ud:qo),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[g(v[0]),g(v[1])]:g(v),done:b}},[Symbol.iterator](){return this}}}}function Cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function s_(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Gn(s,d)&&wn(f,"get",s),wn(f,"get",d));const{has:h}=Tc(f),p=t?Vd:e?Ks:Pr;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&wn(mt(s),"iterate",qo),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Gn(s,d)&&wn(f,"has",s),wn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=mt(d),p=t?Vd:e?Ks:Pr;return!e&&wn(h,"iterate",qo),d.forEach((g,v)=>s.call(c,p(g),p(v),f))}};return on(r,e?{add:Cc("add"),set:Cc("set"),delete:Cc("delete"),clear:Cc("clear")}:{add(s){!t&&!or(s)&&!Ti(s)&&(s=mt(s));const c=mt(this);return Tc(c).has.call(c,s)||(c.add(s),bi(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!Ti(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=Tc(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const g=h.call(f,s);return f.set(s,c),p?Gn(c,g)&&bi(f,"set",s,c):bi(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=Tc(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&bi(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&bi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=o_(s,e,t)}),r}function Vh(e,t){const r=s_(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 l_={get:Vh(!1,!1)},a_={get:Vh(!1,!0)},c_={get:Vh(!0,!1)};const G0=new WeakMap,K0=new WeakMap,X0=new WeakMap,u_=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 d_(e){return e.__v_skip||!Object.isExtensible(e)?0:f_($S(e))}function ir(e){return Ti(e)?e:Kh(e,!1,n_,l_,G0)}function Gh(e){return Kh(e,!1,i_,a_,K0)}function Gs(e){return Kh(e,!0,r_,c_,X0)}function Kh(e,t,r,o,s){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=d_(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 jo(e){return Ti(e)?jo(e.__v_raw):!!(e&&e.__v_isReactive)}function Ti(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function ju(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function Uu(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&L0(e,"__v_skip",!0),e}const Pr=e=>kt(e)?ir(e):e,Ks=e=>kt(e)?Gs(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function Ge(e){return Y0(e,!1)}function Ft(e){return Y0(e,!0)}function Y0(e,t){return Mt(e)?e:new h_(e,t)}class h_{constructor(t,r){this.dep=new Wu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:Pr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||or(t)||Ti(t);t=o?t:mt(t),Gn(t,r)&&(this._rawValue=t,this._value=o?t:Pr(t),this.dep.trigger())}}function K(e){return Mt(e)?e.value:e}function Xt(e){return et(e)?e():K(e)}const p_={get:(e,t,r)=>t==="__v_raw"?e:K(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Mt(s)&&!Mt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function Z0(e){return jo(e)?e:new Proxy(e,p_)}class g_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Wu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function J0(e){return new g_(e)}function m_(e){const t=Ze(e)?new Array(e.length):{};for(const r in e)t[r]=Q0(e,r);return t}class v_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=mt(t);let s=!0,c=t;if(!Ze(t)||!Du(String(r)))do s=!ju(c)||or(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=K(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Mt(this._raw[this._key])){const r=this._object[this._key];if(Mt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return YS(this._raw,this._key)}}class y_{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 b_(e,t,r){return Mt(e)?e:et(e)?new y_(e):kt(e)&&arguments.length>1?Q0(e,t,r):Ge(e)}function Q0(e,t,r){return new v_(e,t,r)}class w_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Wu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=aa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return z0(this,!0),!0}get value(){const t=this.dep.track();return B0(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 et(e)?o=e:(o=e.get,s=e.set),new w_(o,s,r)}const Ec={},ou=new WeakMap;let $o;function k_(e,t=!1,r=$o){if(r){let o=ou.get(r);o||ou.set(r,o=[]),o.push(e)}}function S_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=_=>s?_:or(_)||s===!1||s===0?wi(_,1):wi(_);let g,v,b,x,E=!1,M=!1;if(Mt(e)?(v=()=>e.value,E=or(e)):jo(e)?(v=()=>p(e),E=!0):Ze(e)?(M=!0,E=e.some(_=>jo(_)||or(_)),v=()=>e.map(_=>{if(Mt(_))return _.value;if(jo(_))return p(_);if(et(_))return h?h(_,2):_()})):et(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){Si();try{b()}finally{_i()}}const _=$o;$o=g;try{return h?h(e,3,[x]):e(x)}finally{$o=_}}:v=Xr,t&&s){const _=v,z=s===!0?1/0:s;v=()=>wi(_(),z)}const R=$0(),N=()=>{g.stop(),R&&R.active&&Bh(R.effects,g)};if(c&&t){const _=t;t=(...z)=>{_(...z),N()}}let P=M?new Array(e.length).fill(Ec):Ec;const $=_=>{if(!(!(g.flags&1)||!g.dirty&&!_))if(t){const z=g.run();if(s||E||(M?z.some((j,le)=>Gn(j,P[le])):Gn(z,P))){b&&b();const j=$o;$o=g;try{const le=[z,P===Ec?void 0:M&&P[0]===Ec?[]:P,x];P=z,h?h(t,3,le):t(...le)}finally{$o=j}}}else g.run()};return d&&d($),g=new I0(v),g.scheduler=f?()=>f($,!1):$,x=_=>k_(_,!1,g),b=g.onStop=()=>{const _=ou.get(g);if(_){if(h)h(_,4);else for(const z of _)z();ou.delete(g)}},t?o?$(!0):P=g.run():f?f($.bind(null,!0),!0):g.run(),N.pause=g.pause.bind(g),N.resume=g.resume.bind(g),N.stop=N,N}function wi(e,t=1/0,r){if(t<=0||!kt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Mt(e))wi(e.value,t,r);else if(Ze(e))for(let o=0;o<e.length;o++)wi(e[o],t,r);else if(Iu(e)||$s(e))e.forEach(o=>{wi(o,t,r)});else if(A0(e)){for(const o in e)wi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&wi(e[o],t,r)}return e}/**
* @vue/runtime-core v3.5.25
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ra(e,t,r,o){try{return o?e(...o):e()}catch(s){Pa(s,t,r)}}function $r(e,t,r,o){if(et(e)){const s=Ra(e,t,r,o);return s&&C0(s)&&s.catch(c=>{Pa(c,t,r)}),s}if(Ze(e)){const s=[];for(let c=0;c<e.length;c++)s.push($r(e[c],t,r,o));return s}}function Pa(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const g=d.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}d=d.parent}if(c){Si(),Ra(c,null,10,[e,h,p]),_i();return}}__(e,r,s,o,f)}function __(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Rn=[];let Gr=-1;const Is=[];let Zi=null,Es=0;const eb=Promise.resolve();let su=null;function Et(e){const t=su||eb;return e?t.then(this?e.bind(this):e):t}function T_(e){let t=Gr+1,r=Rn.length;for(;t<r;){const o=t+r>>>1,s=Rn[o],c=ua(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Xh(e){if(!(e.flags&1)){const t=ua(e),r=Rn[Rn.length-1];!r||!(e.flags&2)&&t>=ua(r)?Rn.push(e):Rn.splice(T_(t),0,e),e.flags|=1,tb()}}function tb(){su||(su=eb.then(rb))}function Gd(e){Ze(e)?Is.push(...e):Zi&&e.id===-1?Zi.splice(Es+1,0,e):e.flags&1||(Is.push(e),e.flags|=1),tb()}function Um(e,t,r=Gr+1){for(;r<Rn.length;r++){const o=Rn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Rn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function nb(e){if(Is.length){const t=[...new Set(Is)].sort((r,o)=>ua(r)-ua(o));if(Is.length=0,Zi){Zi.push(...t);return}for(Zi=t,Es=0;Es<Zi.length;Es++){const r=Zi[Es];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Zi=null,Es=0}}const ua=e=>e.id==null?e.flags&2?-1:1/0:e.id;function rb(e){try{for(Gr=0;Gr<Rn.length;Gr++){const t=Rn[Gr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ra(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gr<Rn.length;Gr++){const t=Rn[Gr];t&&(t.flags&=-2)}Gr=-1,Rn.length=0,nb(),su=null,(Rn.length||Is.length)&&rb()}}let mn=null,Vu=null;function lu(e){const t=mn;return mn=e,Vu=e&&e.type.__scopeId||null,t}function ib(e){Vu=e}function ob(){Vu=null}const sb=e=>We;function We(e,t=mn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ys(-1);const c=lu(t);let f;try{f=e(...s)}finally{lu(c),o._d&&Ys(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function at(e,t){if(mn===null)return e;const r=Qu(mn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(et(c)&&(c={mounted:c,updated:c}),c.deep&&wi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function Mo(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&&(Si(),$r(h,r,8,[e.el,d,e,t]),_i())}}const C_=Symbol("_vte"),lb=e=>e.__isTeleport,yi=Symbol("_leaveCb"),Ac=Symbol("_enterCb");function E_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{e.isMounted=!0}),$a(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],ab={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},cb=e=>{const t=e.subTree;return t.component?cb(t.component):t},A_={name:"BaseTransition",props:ab,setup(e,{slots:t}){const r=ti(),o=E_();return()=>{const s=t.default&&db(t.default(),!0);if(!s||!s.length)return;const c=ub(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return gd(c);const h=Vm(c);if(!h)return gd(c);let p=Kd(h,f,o,r,v=>p=v);h.type!==ln&&fa(h,p);let g=r.subTree&&Vm(r.subTree);if(g&&g.type!==ln&&!Kr(g,h)&&cb(r).type!==ln){let v=Kd(g,f,o,r);if(fa(g,v),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},gd(c);d==="in-out"&&h.type!==ln?v.delayLeave=(b,x,E)=>{const M=fb(o,g);M[String(g.key)]=g,b[yi]=()=>{x(),b[yi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{E(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function ub(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ln){t=r;break}}return t}const L_=A_;function fb(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Kd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:x,onAfterLeave:E,onLeaveCancelled:M,onBeforeAppear:R,onAppear:N,onAfterAppear:P,onAppearCancelled:$}=t,_=String(e.key),z=fb(r,e),j=(Y,G)=>{Y&&$r(Y,o,9,G)},le=(Y,G)=>{const W=G[1];j(Y,G),Ze(Y)?Y.every(L=>L.length<=1)&&W():Y.length<=1&&W()},ee={mode:f,persisted:d,beforeEnter(Y){let G=h;if(!r.isMounted)if(c)G=R||h;else return;Y[yi]&&Y[yi](!0);const W=z[_];W&&Kr(e,W)&&W.el[yi]&&W.el[yi](),j(G,[Y])},enter(Y){let G=p,W=g,L=v;if(!r.isMounted)if(c)G=N||p,W=P||g,L=$||v;else return;let O=!1;const C=Y[Ac]=k=>{O||(O=!0,k?j(L,[Y]):j(W,[Y]),ee.delayedLeave&&ee.delayedLeave(),Y[Ac]=void 0)};G?le(G,[Y,C]):C()},leave(Y,G){const W=String(e.key);if(Y[Ac]&&Y[Ac](!0),r.isUnmounting)return G();j(b,[Y]);let L=!1;const O=Y[yi]=C=>{L||(L=!0,G(),C?j(M,[Y]):j(E,[Y]),Y[yi]=void 0,z[W]===e&&delete z[W])};z[W]=e,x?le(x,[Y,O]):O()},clone(Y){const G=Kd(Y,t,r,o,s);return s&&s(G),G}};return ee}function gd(e){if(Gu(e))return e=uo(e),e.children=null,e}function Vm(e){if(!Gu(e))return lb(e.type)&&e.children?ub(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&&et(r.default))return r.default()}}function fa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fa(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 db(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(db(f.children,t,d))):(t||f.type!==ln)&&o.push(d!=null?uo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function rt(e,t){return et(e)?on({name:e.name},t,{setup:e}):e}function Yh(){const e=ti();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function hb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const au=new WeakMap;function Jl(e,t,r,o,s=!1){if(Ze(e)){e.forEach((E,M)=>Jl(E,t&&(Ze(t)?t[M]:t),r,o,s));return}if(Ds(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Jl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Qu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,g=d.refs===vt?d.refs={}:d.refs,v=d.setupState,b=mt(v),x=v===vt?T0:E=>wt(b,E);if(p!=null&&p!==h){if(Gm(t),Ht(p))g[p]=null,x(p)&&(v[p]=null);else if(Mt(p)){p.value=null;const E=t;E.k&&(g[E.k]=null)}}if(et(h))Ra(h,d,12,[f,g]);else{const E=Ht(h),M=Mt(h);if(E||M){const R=()=>{if(e.f){const N=E?x(h)?v[h]:g[h]:h.value;if(s)Ze(N)&&Bh(N,c);else if(Ze(N))N.includes(c)||N.push(c);else if(E)g[h]=[c],x(h)&&(v[h]=g[h]);else{const P=[c];h.value=P,e.k&&(g[e.k]=P)}}else E?(g[h]=f,x(h)&&(v[h]=f)):M&&(h.value=f,e.k&&(g[e.k]=f))};if(f){const N=()=>{R(),au.delete(e)};N.id=-1,au.set(e,N),jn(N,r)}else Gm(e),R()}}}function Gm(e){const t=au.get(e);t&&(t.flags|=8,au.delete(e))}Hu().requestIdleCallback;Hu().cancelIdleCallback;const Ds=e=>!!e.type.__asyncLoader,Gu=e=>e.type.__isKeepAlive;function M_(e,t){pb(e,"a",t)}function N_(e,t){pb(e,"da",t)}function pb(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(Ku(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Gu(s.parent.vnode)&&O_(o,t,r,s),s=s.parent}}function O_(e,t,r,o){const s=Ku(t,e,o,!0);Ia(()=>{Bh(o[t],s)},r)}function Ku(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Si();const d=Da(r),h=$r(t,r,e,f);return d(),_i(),h});return o?s.unshift(c):s.push(c),c}}const Li=e=>(t,r=xn)=>{(!pa||e==="sp")&&Ku(e,(...o)=>t(...o),r)},R_=Li("bm"),Mi=Li("m"),P_=Li("bu"),$_=Li("u"),$a=Li("bum"),Ia=Li("um"),I_=Li("sp"),D_=Li("rtg"),z_=Li("rtc");function F_(e,t=xn){Ku("ec",e,t)}const Zh="components",H_="directives";function Go(e,t){return Jh(Zh,e,!0,t)||e}const gb=Symbol.for("v-ndc");function Xd(e){return Ht(e)?Jh(Zh,e,!1)||e:e||gb}function vr(e){return Jh(H_,e)}function Jh(e,t,r=!0,o=!1){const s=mn||xn;if(s){const c=s.type;if(e===Zh){const d=OT(c,!1);if(d&&(d===t||d===sr(t)||d===Fu(sr(t))))return c}const f=Km(s[e]||c[e],t)||Km(s.appContext[e],t);return!f&&o?c:f}}function Km(e,t){return e&&(e[t]||e[sr(t)]||e[Fu(sr(t))])}function $n(e,t,r,o){let s;const c=r,f=Ze(e);if(f||Ht(e)){const d=f&&jo(e);let h=!1,p=!1;d&&(h=!or(e),p=Ti(e),e=qu(e)),s=new Array(e.length);for(let g=0,v=e.length;g<v;g++)s[g]=t(h?p?Ks(Pr(e[g])):Pr(e[g]):e[g],g,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(kt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const g=d[h];s[h]=t(e[g],g,h,c)}}else s=[];return s}function B_(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Ze(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Dt(e,t,r={},o,s){if(mn.ce||mn.parent&&Ds(mn.parent)&&mn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),re(),Ve(nt,null,[Ne("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),re();const f=c&&mb(c(r)),d=r.key||f&&f.key,h=Ve(nt,{key:(d&&!Rr(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 mb(e){return e.some(t=>Zs(t)?!(t.type===ln||t.type===nt&&!mb(t.children)):!0)?e:null}function W_(e,t){const r={};for(const o in e)r[qc(o)]=e[o];return r}const Yd=e=>e?qb(e)?Qu(e):Yd(e.parent):null,Ql=on(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yd(e.parent),$root:e=>Yd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wb(e),$forceUpdate:e=>e.f||(e.f=()=>{Xh(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>tT.bind(e)}),md=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),q_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(md(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if(wt(c,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Zd&&(f[t]=0)}}const p=Ql[t];let g,v;if(p)return t==="$attrs"&&wn(e.attrs,"get",""),p(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,wt(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return md(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,props:c,type:f}},d){let h;return!!(r[d]||e!==vt&&d[0]!=="$"&&wt(e,d)||md(t,d)||wt(c,d)||wt(o,d)||wt(Ql,d)||wt(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function vb(){return yb().slots}function j_(){return yb().attrs}function yb(e){const t=ti();return t.setupContext||(t.setupContext=Ub(t))}function cu(e){return Ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function da(e,t){return!e||!t?e||t:Ze(e)&&Ze(t)?e.concat(t):on({},cu(e),cu(t))}let Zd=!0;function U_(e){const t=wb(e),r=e.proxy,o=e.ctx;Zd=!1,t.beforeCreate&&Xm(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:g,beforeMount:v,mounted:b,beforeUpdate:x,updated:E,activated:M,deactivated:R,beforeDestroy:N,beforeUnmount:P,destroyed:$,unmounted:_,render:z,renderTracked:j,renderTriggered:le,errorCaptured:ee,serverPrefetch:Y,expose:G,inheritAttrs:W,components:L,directives:O,filters:C}=t;if(p&&V_(p,o,null),f)for(const B in f){const ae=f[B];et(ae)&&(o[B]=ae.bind(r))}if(s){const B=s.call(r,r);kt(B)&&(e.data=ir(B))}if(Zd=!0,c)for(const B in c){const ae=c[B],be=et(ae)?ae.bind(r,r):et(ae.get)?ae.get.bind(r,r):Xr,Se=!et(ae)&&et(ae.set)?ae.set.bind(r):Xr,He=ke({get:be,set:Se});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>He.value,set:Ae=>He.value=Ae})}if(d)for(const B in d)bb(d[B],o,r,B);if(h){const B=et(h)?h.call(r):h;Reflect.ownKeys(B).forEach(ae=>{dr(ae,B[ae])})}g&&Xm(g,e,"c");function D(B,ae){Ze(ae)?ae.forEach(be=>B(be.bind(r))):ae&&B(ae.bind(r))}if(D(R_,v),D(Mi,b),D(P_,x),D($_,E),D(M_,M),D(N_,R),D(F_,ee),D(z_,j),D(D_,le),D($a,P),D(Ia,_),D(I_,Y),Ze(G))if(G.length){const B=e.exposed||(e.exposed={});G.forEach(ae=>{Object.defineProperty(B,ae,{get:()=>r[ae],set:be=>r[ae]=be,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===Xr&&(e.render=z),W!=null&&(e.inheritAttrs=W),L&&(e.components=L),O&&(e.directives=O),Y&&hb(e)}function V_(e,t,r=Xr){Ze(e)&&(e=Jd(e));for(const o in e){const s=e[o];let c;kt(s)?"default"in s?c=pn(s.from||o,s.default,!0):c=pn(s.from||o):c=pn(s),Mt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Xm(e,t,r){$r(Ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function bb(e,t,r,o){let s=o.includes(".")?_b(r,o):()=>r[o];if(Ht(e)){const c=t[e];et(c)&&xt(s,c)}else if(et(e))xt(s,e.bind(r));else if(kt(e))if(Ze(e))e.forEach(c=>bb(c,t,r,o));else{const c=et(e.handler)?e.handler.bind(r):t[e.handler];et(c)&&xt(s,c,e)}}function wb(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>uu(h,p,f,!0)),uu(h,t,f)),kt(t)&&c.set(t,h),h}function uu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&uu(e,c,r,!0),s&&s.forEach(f=>uu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=G_[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const G_={data:Ym,props:Zm,emits:Zm,methods:Ul,computed:Ul,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Ul,directives:Ul,watch:X_,provide:Ym,inject:K_};function Ym(e,t){return t?e?function(){return on(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function K_(e,t){return Ul(Jd(e),Jd(t))}function Jd(e){if(Ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Ul(e,t){return e?on(Object.create(null),e,t):t}function Zm(e,t){return e?Ze(e)&&Ze(t)?[...new Set([...e,...t])]:on(Object.create(null),cu(e),cu(t??{})):t}function X_(e,t){if(!e)return t;if(!t)return e;const r=on(Object.create(null),e);for(const o in t)r[o]=Mn(e[o],t[o]);return r}function xb(){return{app:null,config:{isNativeTag:T0,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 Y_=0;function Z_(e,t){return function(o,s=null){et(o)||(o=on({},o)),s!=null&&!kt(s)&&(s=null);const c=xb(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:Y_++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:PT,get config(){return c.config},set config(g){},use(g,...v){return f.has(g)||(g&&et(g.install)?(f.add(g),g.install(p,...v)):et(g)&&(f.add(g),g(p,...v))),p},mixin(g){return c.mixins.includes(g)||c.mixins.push(g),p},component(g,v){return v?(c.components[g]=v,p):c.components[g]},directive(g,v){return v?(c.directives[g]=v,p):c.directives[g]},mount(g,v,b){if(!h){const x=p._ceVNode||Ne(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,g,b),h=!0,p._container=g,g.__vue_app__=p,Qu(x.component)}},onUnmount(g){d.push(g)},unmount(){h&&($r(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return c.provides[g]=v,p},runWithContext(g){const v=Uo;Uo=p;try{return g()}finally{Uo=v}}};return p}}let Uo=null;function dr(e,t){if(xn){let r=xn.provides;const o=xn.parent&&xn.parent.provides;o===r&&(r=xn.provides=Object.create(o)),r[e]=t}}function pn(e,t,r=!1){const o=ti();if(o||Uo){let s=Uo?Uo._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&&et(t)?t.call(o&&o.proxy):t}}function kb(){return!!(ti()||Uo)}const J_=Symbol.for("v-scx"),Q_=()=>pn(J_);function Sb(e,t){return Xu(e,null,t)}function eT(e,t){return Xu(e,null,{flush:"sync"})}function xt(e,t,r){return Xu(e,t,r)}function Xu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=on({},r),h=t&&o||!t&&c!=="post";let p;if(pa){if(c==="sync"){const x=Q_();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Xr,x.resume=Xr,x.pause=Xr,x}}const g=xn;d.call=(x,E,M)=>$r(x,g,E,M);let v=!1;c==="post"?d.scheduler=x=>{jn(x,g&&g.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(x,E)=>{E?x():Xh(x)}),d.augmentJob=x=>{t&&(x.flags|=4),v&&(x.flags|=2,g&&(x.id=g.uid,x.i=g))};const b=S_(e,t,d);return pa&&(p?p.push(b):h&&b()),b}function tT(e,t,r){const o=this.proxy,s=Ht(e)?e.includes(".")?_b(o,e):()=>o[e]:e.bind(o,o);let c;et(t)?c=t:(c=t.handler,r=t);const f=Da(this),d=Xu(s,c.bind(o),r);return f(),d}function _b(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 Yu(e,t,r=vt){const o=ti(),s=sr(t),c=Ai(t),f=Tb(e,s),d=J0((h,p)=>{let g,v=vt,b;return eT(()=>{const x=e[s];Gn(g,x)&&(g=x,p())}),{get(){return h(),r.get?r.get(g):g},set(x){const E=r.set?r.set(x):x;if(!Gn(E,g)&&!(v!==vt&&Gn(x,v)))return;const M=o.vnode.props;M&&(t in M||s in M||c in M)&&(`onUpdate:${t}`in M||`onUpdate:${s}`in M||`onUpdate:${c}`in M)||(g=x,p()),o.emit(`update:${t}`,E),Gn(x,E)&&Gn(x,v)&&!Gn(E,b)&&p(),v=x,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Tb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sr(t)}Modifiers`]||e[`${Ai(t)}Modifiers`];function nT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Tb(o,t.slice(7));f&&(f.trim&&(s=r.map(g=>Ht(g)?g.trim():g)),f.number&&(s=r.map(Wh)));let d,h=o[d=qc(t)]||o[d=qc(sr(t))];!h&&c&&(h=o[d=qc(Ai(t))]),h&&$r(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,$r(p,e,6,s)}}const rT=new WeakMap;function Cb(e,t,r=!1){const o=r?rT:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!et(e)){const h=p=>{const g=Cb(p,t,!0);g&&(d=!0,on(f,g))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(kt(e)&&o.set(e,null),null):(Ze(c)?c.forEach(h=>f[h]=null):on(f,c),kt(e)&&o.set(e,f),f)}function Zu(e,t){return!e||!$u(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ai(t))||wt(e,t))}function Jm(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:g,props:v,data:b,setupState:x,ctx:E,inheritAttrs:M}=e,R=lu(e);let N,P;try{if(r.shapeFlag&4){const _=s||o,z=_;N=Lr(p.call(z,_,g,v,x,b,E)),P=d}else{const _=t;N=Lr(_.length>1?_(v,{attrs:d,slots:f,emit:h}):_(v,null)),P=t.props?d:oT(d)}}catch(_){ea.length=0,Pa(_,e,1),N=Ne(ln)}let $=N;if(P&&M!==!1){const _=Object.keys(P),{shapeFlag:z}=$;_.length&&z&7&&(c&&_.some(Hh)&&(P=sT(P,c)),$=uo($,P,!1,!0))}return r.dirs&&($=uo($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(r.dirs):r.dirs),r.transition&&fa($,r.transition),N=$,lu(R),N}function iT(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Zs(s)){if(s.type!==ln||s.children==="v-if"){if(r)return;r=s}}else return}return r}const oT=e=>{let t;for(const r in e)(r==="class"||r==="style"||$u(r))&&((t||(t={}))[r]=e[r]);return t},sT=(e,t)=>{const r={};for(const o in e)(!Hh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function lT(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Qm(o,f,p):!!f;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const b=g[v];if(f[b]!==o[b]&&!Zu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Qm(o,f,p):!0:!!f;return!1}function Qm(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Zu(r,c))return!0}return!1}function Qh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Eb={},Ab=()=>Object.create(Eb),Lb=e=>Object.getPrototypeOf(e)===Eb;function aT(e,t,r,o=!1){const s={},c=Ab();e.propsDefaults=Object.create(null),Mb(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function cT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let b=g[v];if(Zu(e.emitsOptions,b))continue;const x=t[b];if(h)if(wt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const E=sr(b);s[E]=Qd(h,d,E,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{Mb(e,t,s,c)&&(p=!0);let g;for(const v in d)(!t||!wt(t,v)&&((g=Ai(v))===v||!wt(t,g)))&&(h?r&&(r[v]!==void 0||r[g]!==void 0)&&(s[v]=Qd(h,d,v,void 0,e,!0)):delete s[v]);if(c!==d)for(const v in c)(!t||!wt(t,v))&&(delete c[v],p=!0)}p&&bi(e.attrs,"set","")}function Mb(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Xl(h))continue;const p=t[h];let g;s&&wt(s,g=sr(h))?!c||!c.includes(g)?r[g]=p:(d||(d={}))[g]=p:Zu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=mt(r),p=d||vt;for(let g=0;g<c.length;g++){const v=c[g];r[v]=Qd(s,h,v,p[v],e,!wt(p,v))}}return f}function Qd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&et(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const g=Da(s);o=p[r]=h.call(null,t),g()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Ai(r))&&(o=!0))}return o}const uT=new WeakMap;function Nb(e,t,r=!1){const o=r?uT:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!et(e)){const g=v=>{h=!0;const[b,x]=Nb(v,t,!0);on(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!c&&!h)return kt(e)&&o.set(e,Ps),Ps;if(Ze(c))for(let g=0;g<c.length;g++){const v=sr(c[g]);ev(v)&&(f[v]=vt)}else if(c)for(const g in c){const v=sr(g);if(ev(v)){const b=c[g],x=f[v]=Ze(b)||et(b)?{type:b}:on({},b),E=x.type;let M=!1,R=!0;if(Ze(E))for(let N=0;N<E.length;++N){const P=E[N],$=et(P)&&P.name;if($==="Boolean"){M=!0;break}else $==="String"&&(R=!1)}else M=et(E)&&E.name==="Boolean";x[0]=M,x[1]=R,(M||wt(x,"default"))&&d.push(v)}}const p=[f,d];return kt(e)&&o.set(e,p),p}function ev(e){return e[0]!=="$"&&!Xl(e)}const ep=e=>e==="_"||e==="_ctx"||e==="$stable",tp=e=>Ze(e)?e.map(Lr):[Lr(e)],fT=(e,t,r)=>{if(t._n)return t;const o=We((...s)=>tp(t(...s)),r);return o._c=!1,o},Ob=(e,t,r)=>{const o=e._ctx;for(const s in e){if(ep(s))continue;const c=e[s];if(et(c))t[s]=fT(s,c,o);else if(c!=null){const f=tp(c);t[s]=()=>f}}},Rb=(e,t)=>{const r=tp(t);e.slots.default=()=>r},Pb=(e,t,r)=>{for(const o in t)(r||!ep(o))&&(e[o]=t[o])},dT=(e,t,r)=>{const o=e.slots=Ab();if(e.vnode.shapeFlag&32){const s=t._;s?(Pb(o,t,r),r&&L0(o,"_",s,!0)):Ob(t,o)}else t&&Rb(e,t)},hT=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Pb(s,t,r):(c=!t.$stable,Ob(t,s)),f=t}else t&&(Rb(e,t),f={default:1});if(c)for(const d in s)!ep(d)&&f[d]==null&&delete s[d]},jn=ST;function pT(e){return gT(e)}function gT(e,t){const r=Hu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:b,setScopeId:x=Xr,insertStaticContent:E}=e,M=(I,q,Q,he=null,de=null,ge=null,Ce=void 0,Ee=null,xe=!!q.dynamicChildren)=>{if(I===q)return;I&&!Kr(I,q)&&(he=F(I),Ae(I,de,ge,!0),I=null),q.patchFlag===-2&&(xe=!1,q.dynamicChildren=null);const{type:ye,ref:J,shapeFlag:ue}=q;switch(ye){case Ju:R(I,q,Q,he);break;case ln:N(I,q,Q,he);break;case yd:I==null&&P(q,Q,he,Ce);break;case nt:L(I,q,Q,he,de,ge,Ce,Ee,xe);break;default:ue&1?z(I,q,Q,he,de,ge,Ce,Ee,xe):ue&6?O(I,q,Q,he,de,ge,Ce,Ee,xe):(ue&64||ue&128)&&ye.process(I,q,Q,he,de,ge,Ce,Ee,xe,se)}J!=null&&de?Jl(J,I&&I.ref,ge,q||I,!q):J==null&&I&&I.ref!=null&&Jl(I.ref,null,ge,I,!0)},R=(I,q,Q,he)=>{if(I==null)o(q.el=d(q.children),Q,he);else{const de=q.el=I.el;q.children!==I.children&&p(de,q.children)}},N=(I,q,Q,he)=>{I==null?o(q.el=h(q.children||""),Q,he):q.el=I.el},P=(I,q,Q,he)=>{[I.el,I.anchor]=E(I.children,q,Q,he,I.el,I.anchor)},$=({el:I,anchor:q},Q,he)=>{let de;for(;I&&I!==q;)de=b(I),o(I,Q,he),I=de;o(q,Q,he)},_=({el:I,anchor:q})=>{let Q;for(;I&&I!==q;)Q=b(I),s(I),I=Q;s(q)},z=(I,q,Q,he,de,ge,Ce,Ee,xe)=>{if(q.type==="svg"?Ce="svg":q.type==="math"&&(Ce="mathml"),I==null)j(q,Q,he,de,ge,Ce,Ee,xe);else{const ye=I.el&&I.el._isVueCE?I.el:null;try{ye&&ye._beginPatch(),Y(I,q,de,ge,Ce,Ee,xe)}finally{ye&&ye._endPatch()}}},j=(I,q,Q,he,de,ge,Ce,Ee)=>{let xe,ye;const{props:J,shapeFlag:ue,transition:ie,dirs:$e}=I;if(xe=I.el=f(I.type,ge,J&&J.is,J),ue&8?g(xe,I.children):ue&16&&ee(I.children,xe,null,he,de,vd(I,ge),Ce,Ee),$e&&Mo(I,null,he,"created"),le(xe,I,I.scopeId,Ce,he),J){for(const ct in J)ct!=="value"&&!Xl(ct)&&c(xe,ct,null,J[ct],ge,he);"value"in J&&c(xe,"value",null,J.value,ge),(ye=J.onVnodeBeforeMount)&&Vr(ye,he,I)}$e&&Mo(I,null,he,"beforeMount");const Je=mT(de,ie);Je&&ie.beforeEnter(xe),o(xe,q,Q),((ye=J&&J.onVnodeMounted)||Je||$e)&&jn(()=>{ye&&Vr(ye,he,I),Je&&ie.enter(xe),$e&&Mo(I,null,he,"mounted")},de)},le=(I,q,Q,he,de)=>{if(Q&&x(I,Q),he)for(let ge=0;ge<he.length;ge++)x(I,he[ge]);if(de){let ge=de.subTree;if(q===ge||Db(ge.type)&&(ge.ssContent===q||ge.ssFallback===q)){const Ce=de.vnode;le(I,Ce,Ce.scopeId,Ce.slotScopeIds,de.parent)}}},ee=(I,q,Q,he,de,ge,Ce,Ee,xe=0)=>{for(let ye=xe;ye<I.length;ye++){const J=I[ye]=Ee?Ji(I[ye]):Lr(I[ye]);M(null,J,q,Q,he,de,ge,Ce,Ee)}},Y=(I,q,Q,he,de,ge,Ce)=>{const Ee=q.el=I.el;let{patchFlag:xe,dynamicChildren:ye,dirs:J}=q;xe|=I.patchFlag&16;const ue=I.props||vt,ie=q.props||vt;let $e;if(Q&&No(Q,!1),($e=ie.onVnodeBeforeUpdate)&&Vr($e,Q,q,I),J&&Mo(q,I,Q,"beforeUpdate"),Q&&No(Q,!0),(ue.innerHTML&&ie.innerHTML==null||ue.textContent&&ie.textContent==null)&&g(Ee,""),ye?G(I.dynamicChildren,ye,Ee,Q,he,vd(q,de),ge):Ce||ae(I,q,Ee,null,Q,he,vd(q,de),ge,!1),xe>0){if(xe&16)W(Ee,ue,ie,Q,de);else if(xe&2&&ue.class!==ie.class&&c(Ee,"class",null,ie.class,de),xe&4&&c(Ee,"style",ue.style,ie.style,de),xe&8){const Je=q.dynamicProps;for(let ct=0;ct<Je.length;ct++){const dt=Je[ct],Nt=ue[dt],ut=ie[dt];(ut!==Nt||dt==="value")&&c(Ee,dt,Nt,ut,de,Q)}}xe&1&&I.children!==q.children&&g(Ee,q.children)}else!Ce&&ye==null&&W(Ee,ue,ie,Q,de);(($e=ie.onVnodeUpdated)||J)&&jn(()=>{$e&&Vr($e,Q,q,I),J&&Mo(q,I,Q,"updated")},he)},G=(I,q,Q,he,de,ge,Ce)=>{for(let Ee=0;Ee<q.length;Ee++){const xe=I[Ee],ye=q[Ee],J=xe.el&&(xe.type===nt||!Kr(xe,ye)||xe.shapeFlag&198)?v(xe.el):Q;M(xe,ye,J,null,he,de,ge,Ce,!0)}},W=(I,q,Q,he,de)=>{if(q!==Q){if(q!==vt)for(const ge in q)!Xl(ge)&&!(ge in Q)&&c(I,ge,q[ge],null,de,he);for(const ge in Q){if(Xl(ge))continue;const Ce=Q[ge],Ee=q[ge];Ce!==Ee&&ge!=="value"&&c(I,ge,Ee,Ce,de,he)}"value"in Q&&c(I,"value",q.value,Q.value,de)}},L=(I,q,Q,he,de,ge,Ce,Ee,xe)=>{const ye=q.el=I?I.el:d(""),J=q.anchor=I?I.anchor:d("");let{patchFlag:ue,dynamicChildren:ie,slotScopeIds:$e}=q;$e&&(Ee=Ee?Ee.concat($e):$e),I==null?(o(ye,Q,he),o(J,Q,he),ee(q.children||[],Q,J,de,ge,Ce,Ee,xe)):ue>0&&ue&64&&ie&&I.dynamicChildren?(G(I.dynamicChildren,ie,Q,de,ge,Ce,Ee),(q.key!=null||de&&q===de.subTree)&&$b(I,q,!0)):ae(I,q,Q,J,de,ge,Ce,Ee,xe)},O=(I,q,Q,he,de,ge,Ce,Ee,xe)=>{q.slotScopeIds=Ee,I==null?q.shapeFlag&512?de.ctx.activate(q,Q,he,Ce,xe):C(q,Q,he,de,ge,Ce,xe):k(I,q,xe)},C=(I,q,Q,he,de,ge,Ce)=>{const Ee=I.component=AT(I,he,de);if(Gu(I)&&(Ee.ctx.renderer=se),LT(Ee,!1,Ce),Ee.asyncDep){if(de&&de.registerDep(Ee,D,Ce),!I.el){const xe=Ee.subTree=Ne(ln);N(null,xe,q,Q),I.placeholder=xe.el}}else D(Ee,I,q,Q,de,ge,Ce)},k=(I,q,Q)=>{const he=q.component=I.component;if(lT(I,q,Q))if(he.asyncDep&&!he.asyncResolved){B(he,q,Q);return}else he.next=q,he.update();else q.el=I.el,he.vnode=q},D=(I,q,Q,he,de,ge,Ce)=>{const Ee=()=>{if(I.isMounted){let{next:ue,bu:ie,u:$e,parent:Je,vnode:ct}=I;{const jt=Ib(I);if(jt){ue&&(ue.el=ct.el,B(I,ue,Ce)),jt.asyncDep.then(()=>{I.isUnmounted||Ee()});return}}let dt=ue,Nt;No(I,!1),ue?(ue.el=ct.el,B(I,ue,Ce)):ue=ct,ie&&jc(ie),(Nt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Vr(Nt,Je,ue,ct),No(I,!0);const ut=Jm(I),Yt=I.subTree;I.subTree=ut,M(Yt,ut,v(Yt.el),F(Yt),I,de,ge),ue.el=ut.el,dt===null&&Qh(I,ut.el),$e&&jn($e,de),(Nt=ue.props&&ue.props.onVnodeUpdated)&&jn(()=>Vr(Nt,Je,ue,ct),de)}else{let ue;const{el:ie,props:$e}=q,{bm:Je,m:ct,parent:dt,root:Nt,type:ut}=I,Yt=Ds(q);No(I,!1),Je&&jc(Je),!Yt&&(ue=$e&&$e.onVnodeBeforeMount)&&Vr(ue,dt,q),No(I,!0);{Nt.ce&&Nt.ce._def.shadowRoot!==!1&&Nt.ce._injectChildStyle(ut);const jt=I.subTree=Jm(I);M(null,jt,Q,he,I,de,ge),q.el=jt.el}if(ct&&jn(ct,de),!Yt&&(ue=$e&&$e.onVnodeMounted)){const jt=q;jn(()=>Vr(ue,dt,jt),de)}(q.shapeFlag&256||dt&&Ds(dt.vnode)&&dt.vnode.shapeFlag&256)&&I.a&&jn(I.a,de),I.isMounted=!0,q=Q=he=null}};I.scope.on();const xe=I.effect=new I0(Ee);I.scope.off();const ye=I.update=xe.run.bind(xe),J=I.job=xe.runIfDirty.bind(xe);J.i=I,J.id=I.uid,xe.scheduler=()=>Xh(J),No(I,!0),ye()},B=(I,q,Q)=>{q.component=I;const he=I.vnode.props;I.vnode=q,I.next=null,cT(I,q.props,he,Q),hT(I,q.children,Q),Si(),Um(I),_i()},ae=(I,q,Q,he,de,ge,Ce,Ee,xe=!1)=>{const ye=I&&I.children,J=I?I.shapeFlag:0,ue=q.children,{patchFlag:ie,shapeFlag:$e}=q;if(ie>0){if(ie&128){Se(ye,ue,Q,he,de,ge,Ce,Ee,xe);return}else if(ie&256){be(ye,ue,Q,he,de,ge,Ce,Ee,xe);return}}$e&8?(J&16&&Re(ye,de,ge),ue!==ye&&g(Q,ue)):J&16?$e&16?Se(ye,ue,Q,he,de,ge,Ce,Ee,xe):Re(ye,de,ge,!0):(J&8&&g(Q,""),$e&16&&ee(ue,Q,he,de,ge,Ce,Ee,xe))},be=(I,q,Q,he,de,ge,Ce,Ee,xe)=>{I=I||Ps,q=q||Ps;const ye=I.length,J=q.length,ue=Math.min(ye,J);let ie;for(ie=0;ie<ue;ie++){const $e=q[ie]=xe?Ji(q[ie]):Lr(q[ie]);M(I[ie],$e,Q,null,de,ge,Ce,Ee,xe)}ye>J?Re(I,de,ge,!0,!1,ue):ee(q,Q,he,de,ge,Ce,Ee,xe,ue)},Se=(I,q,Q,he,de,ge,Ce,Ee,xe)=>{let ye=0;const J=q.length;let ue=I.length-1,ie=J-1;for(;ye<=ue&&ye<=ie;){const $e=I[ye],Je=q[ye]=xe?Ji(q[ye]):Lr(q[ye]);if(Kr($e,Je))M($e,Je,Q,null,de,ge,Ce,Ee,xe);else break;ye++}for(;ye<=ue&&ye<=ie;){const $e=I[ue],Je=q[ie]=xe?Ji(q[ie]):Lr(q[ie]);if(Kr($e,Je))M($e,Je,Q,null,de,ge,Ce,Ee,xe);else break;ue--,ie--}if(ye>ue){if(ye<=ie){const $e=ie+1,Je=$e<J?q[$e].el:he;for(;ye<=ie;)M(null,q[ye]=xe?Ji(q[ye]):Lr(q[ye]),Q,Je,de,ge,Ce,Ee,xe),ye++}}else if(ye>ie)for(;ye<=ue;)Ae(I[ye],de,ge,!0),ye++;else{const $e=ye,Je=ye,ct=new Map;for(ye=Je;ye<=ie;ye++){const Bt=q[ye]=xe?Ji(q[ye]):Lr(q[ye]);Bt.key!=null&&ct.set(Bt.key,ye)}let dt,Nt=0;const ut=ie-Je+1;let Yt=!1,jt=0;const Fn=new Array(ut);for(ye=0;ye<ut;ye++)Fn[ye]=0;for(ye=$e;ye<=ue;ye++){const Bt=I[ye];if(Nt>=ut){Ae(Bt,de,ge,!0);continue}let Hn;if(Bt.key!=null)Hn=ct.get(Bt.key);else for(dt=Je;dt<=ie;dt++)if(Fn[dt-Je]===0&&Kr(Bt,q[dt])){Hn=dt;break}Hn===void 0?Ae(Bt,de,ge,!0):(Fn[Hn-Je]=ye+1,Hn>=jt?jt=Hn:Yt=!0,M(Bt,q[Hn],Q,null,de,ge,Ce,Ee,xe),Nt++)}const Hr=Yt?vT(Fn):Ps;for(dt=Hr.length-1,ye=ut-1;ye>=0;ye--){const Bt=Je+ye,Hn=q[Bt],lt=q[Bt+1],yo=Bt+1<J?lt.el||lt.placeholder:he;Fn[ye]===0?M(null,Hn,Q,yo,de,ge,Ce,Ee,xe):Yt&&(dt<0||ye!==Hr[dt]?He(Hn,Q,yo,2):dt--)}}},He=(I,q,Q,he,de=null)=>{const{el:ge,type:Ce,transition:Ee,children:xe,shapeFlag:ye}=I;if(ye&6){He(I.component.subTree,q,Q,he);return}if(ye&128){I.suspense.move(q,Q,he);return}if(ye&64){Ce.move(I,q,Q,se);return}if(Ce===nt){o(ge,q,Q);for(let ue=0;ue<xe.length;ue++)He(xe[ue],q,Q,he);o(I.anchor,q,Q);return}if(Ce===yd){$(I,q,Q);return}if(he!==2&&ye&1&&Ee)if(he===0)Ee.beforeEnter(ge),o(ge,q,Q),jn(()=>Ee.enter(ge),de);else{const{leave:ue,delayLeave:ie,afterLeave:$e}=Ee,Je=()=>{I.ctx.isUnmounted?s(ge):o(ge,q,Q)},ct=()=>{ge._isLeaving&&ge[yi](!0),ue(ge,()=>{Je(),$e&&$e()})};ie?ie(ge,Je,ct):ct()}else o(ge,q,Q)},Ae=(I,q,Q,he=!1,de=!1)=>{const{type:ge,props:Ce,ref:Ee,children:xe,dynamicChildren:ye,shapeFlag:J,patchFlag:ue,dirs:ie,cacheIndex:$e}=I;if(ue===-2&&(de=!1),Ee!=null&&(Si(),Jl(Ee,null,Q,I,!0),_i()),$e!=null&&(q.renderCache[$e]=void 0),J&256){q.ctx.deactivate(I);return}const Je=J&1&&ie,ct=!Ds(I);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Vr(dt,q,I),J&6)Fe(I.component,Q,he);else{if(J&128){I.suspense.unmount(Q,he);return}Je&&Mo(I,null,q,"beforeUnmount"),J&64?I.type.remove(I,q,Q,se,he):ye&&!ye.hasOnce&&(ge!==nt||ue>0&&ue&64)?Re(ye,q,Q,!1,!0):(ge===nt&&ue&384||!de&&J&16)&&Re(xe,q,Q),he&&Ke(I)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||Je)&&jn(()=>{dt&&Vr(dt,q,I),Je&&Mo(I,null,q,"unmounted")},Q)},Ke=I=>{const{type:q,el:Q,anchor:he,transition:de}=I;if(q===nt){je(Q,he);return}if(q===yd){_(I);return}const ge=()=>{s(Q),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(I.shapeFlag&1&&de&&!de.persisted){const{leave:Ce,delayLeave:Ee}=de,xe=()=>Ce(Q,ge);Ee?Ee(I.el,ge,xe):xe()}else ge()},je=(I,q)=>{let Q;for(;I!==q;)Q=b(I),s(I),I=Q;s(q)},Fe=(I,q,Q)=>{const{bum:he,scope:de,job:ge,subTree:Ce,um:Ee,m:xe,a:ye}=I;tv(xe),tv(ye),he&&jc(he),de.stop(),ge&&(ge.flags|=8,Ae(Ce,I,q,Q)),Ee&&jn(Ee,q),jn(()=>{I.isUnmounted=!0},q)},Re=(I,q,Q,he=!1,de=!1,ge=0)=>{for(let Ce=ge;Ce<I.length;Ce++)Ae(I[Ce],q,Q,he,de)},F=I=>{if(I.shapeFlag&6)return F(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const q=b(I.anchor||I.el),Q=q&&q[C_];return Q?b(Q):q};let Z=!1;const ne=(I,q,Q)=>{I==null?q._vnode&&Ae(q._vnode,null,null,!0):M(q._vnode||null,I,q,null,null,null,Q),q._vnode=I,Z||(Z=!0,Um(),nb(),Z=!1)},se={p:M,um:Ae,m:He,r:Ke,mt:C,mc:ee,pc:ae,pbc:G,n:F,o:e};return{render:ne,hydrate:void 0,createApp:Z_(ne)}}function vd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function No({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function mT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $b(e,t,r=!1){const o=e.children,s=t.children;if(Ze(o)&&Ze(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Ji(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&$b(f,d)),d.type===Ju&&d.patchFlag!==-1&&(d.el=f.el),d.type===ln&&!d.el&&(d.el=f.el)}}function vT(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 Ib(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ib(t)}function tv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Db=e=>e.__isSuspense;let eh=0;const yT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)bT(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}wT(e,t,r,o,s,f,d,h,p)}},hydrate:xT,normalize:kT},np=yT;function ha(e,t){const r=e.props&&e.props[t];et(r)&&r()}function bT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:g}}=h,v=g("div"),b=e.suspense=zb(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(ha(e,"onPending"),ha(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),zs(b,e.ssFallback)):b.resolve(!1,!0)}function wT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:E,pendingBranch:M,isInFallback:R,isHydrating:N}=v;if(M)v.pendingBranch=b,Kr(M,b)?(h(M,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():R&&(N||(h(E,x,r,o,s,null,c,f,d),zs(v,x)))):(v.pendingId=eh++,N?(v.isHydrating=!1,v.activeBranch=M):p(M,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),R?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(E,x,r,o,s,null,c,f,d),zs(v,x))):E&&Kr(E,b)?(h(E,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(E&&Kr(E,b))h(E,b,r,o,s,v,c,f,d),zs(v,b);else if(ha(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=eh++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:P,pendingId:$}=v;P>0?setTimeout(()=>{v.pendingId===$&&v.fallback(x)},P):P===0&&v.fallback(x)}}function zb(e,t,r,o,s,c,f,d,h,p,g=!1){const{p:v,m:b,um:x,n:E,o:{parentNode:M,remove:R}}=p;let N;const P=_T(e);P&&t&&t.pendingBranch&&(N=t.pendingId,t.deps++);const $=e.props?M0(e.props.timeout):void 0,_=c,z={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:eh++,timeout:typeof $=="number"?$:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(j=!1,le=!1){const{vnode:ee,activeBranch:Y,pendingBranch:G,pendingId:W,effects:L,parentComponent:O,container:C,isInFallback:k}=z;let D=!1;z.isHydrating?z.isHydrating=!1:j||(D=Y&&G.transition&&G.transition.mode==="out-in",D&&(Y.transition.afterLeave=()=>{W===z.pendingId&&(b(G,C,c===_?E(Y):c,0),Gd(L),k&&ee.ssFallback&&(ee.ssFallback.el=null))}),Y&&(M(Y.el)===C&&(c=E(Y)),x(Y,O,z,!0),!D&&k&&ee.ssFallback&&jn(()=>ee.ssFallback.el=null,z)),D||b(G,C,c,0)),zs(z,G),z.pendingBranch=null,z.isInFallback=!1;let B=z.parent,ae=!1;for(;B;){if(B.pendingBranch){B.effects.push(...L),ae=!0;break}B=B.parent}!ae&&!D&&Gd(L),z.effects=[],P&&t&&t.pendingBranch&&N===t.pendingId&&(t.deps--,t.deps===0&&!le&&t.resolve()),ha(ee,"onResolve")},fallback(j){if(!z.pendingBranch)return;const{vnode:le,activeBranch:ee,parentComponent:Y,container:G,namespace:W}=z;ha(le,"onFallback");const L=E(ee),O=()=>{z.isInFallback&&(v(null,j,G,L,Y,null,W,d,h),zs(z,j))},C=j.transition&&j.transition.mode==="out-in";C&&(ee.transition.afterLeave=O),z.isInFallback=!0,x(ee,Y,null,!0),C||O()},move(j,le,ee){z.activeBranch&&b(z.activeBranch,j,le,ee),z.container=j},next(){return z.activeBranch&&E(z.activeBranch)},registerDep(j,le,ee){const Y=!!z.pendingBranch;Y&&z.deps++;const G=j.vnode.el;j.asyncDep.catch(W=>{Pa(W,j,0)}).then(W=>{if(j.isUnmounted||z.isUnmounted||z.pendingId!==j.suspenseId)return;j.asyncResolved=!0;const{vnode:L}=j;nh(j,W),G&&(L.el=G);const O=!G&&j.subTree.el;le(j,L,M(G||j.subTree.el),G?null:E(j.subTree),z,f,ee),O&&(L.placeholder=null,R(O)),Qh(j,L.el),Y&&--z.deps===0&&z.resolve()})},unmount(j,le){z.isUnmounted=!0,z.activeBranch&&x(z.activeBranch,r,j,le),z.pendingBranch&&x(z.pendingBranch,r,j,le)}};return z}function xT(e,t,r,o,s,c,f,d,h){const p=t.suspense=zb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),g}function kT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=nv(o?r.default:r),e.ssFallback=o?nv(r.fallback):Ne(ln)}function nv(e){let t;if(et(e)){const r=Xs&&e._c;r&&(e._d=!1,re()),e=e(),r&&(e._d=!0,t=Xn,Fb())}return Ze(e)&&(e=iT(e)),e=Lr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function ST(e,t){t&&t.pendingBranch?Ze(e)?t.effects.push(...e):t.effects.push(e):Gd(e)}function zs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Qh(o,s))}function _T(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Ju=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),yd=Symbol.for("v-stc"),ea=[];let Xn=null;function re(e=!1){ea.push(Xn=e?null:[])}function Fb(){ea.pop(),Xn=ea[ea.length-1]||null}let Xs=1;function Ys(e,t=!1){Xs+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function Hb(e){return e.dynamicChildren=Xs>0?Xn||Ps:null,Fb(),Xs>0&&Xn&&Xn.push(e),e}function ve(e,t,r,o,s,c){return Hb(X(e,t,r,o,s,c,!0))}function Ve(e,t,r,o,s){return Hb(Ne(e,t,r,o,s,!0))}function Zs(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}const Bb=({key:e})=>e??null,Uc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||Mt(e)||et(e)?{i:mn,r:e,k:t,f:!!r}:e:null);function X(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&&Bb(t),ref:t&&Uc(t),scopeId:Vu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:mn};return d?(rp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ht(r)?8:16),Xs>0&&!f&&Xn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ne=TT;function TT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===gb)&&(e=ln),Zs(e)){const d=uo(e,t,!0);return r&&rp(d,r),Xs>0&&!c&&Xn&&(d.shapeFlag&6?Xn[Xn.indexOf(e)]=d:Xn.push(d)),d.patchFlag=-2,d}if(RT(e)&&(e=e.__vccOpts),t){t=Wb(t);let{class:d,style:h}=t;d&&!Ht(d)&&(t.class=ot(d)),kt(h)&&(ju(h)&&!Ze(h)&&(h=on({},h)),t.style=zt(h))}const f=Ht(e)?1:Db(e)?128:lb(e)?64:kt(e)?4:et(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function Wb(e){return e?ju(e)||Lb(e)?on({},e):e:null}function uo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ki(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Bb(p),ref:t&&t.ref?r&&c?Ze(c)?c.concat(Uc(t)):[c,Uc(t)]:Uc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==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&&uo(e.ssContent),ssFallback:e.ssFallback&&uo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&fa(g,h.clone(g)),g}function Qe(e=" ",t=0){return Ne(Ju,null,e,t)}function Be(e="",t=!1){return t?(re(),Ve(ln,null,e)):Ne(ln,null,e)}function Lr(e){return e==null||typeof e=="boolean"?Ne(ln):Ze(e)?Ne(nt,null,e.slice()):Zs(e)?Ji(e):Ne(Ju,null,String(e))}function Ji(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:uo(e)}function rp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ze(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),rp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Lb(t)?t._ctx=mn:s===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:mn},r=32):(t=String(t),o&64?(r=16,t=[Qe(t)]):r=8);e.children=t,e.shapeFlag|=r}function ki(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=ot([t.class,o.class]));else if(s==="style")t.style=zt([t.style,o.style]);else if($u(s)){const c=t[s],f=o[s];f&&c!==f&&!(Ze(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Vr(e,t,r,o=null){$r(e,t,7,[r,o])}const CT=xb();let ET=0;function AT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||CT,c={uid:ET++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new VS(!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:Nb(o,s),emitsOptions:Cb(o,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=nT.bind(null,c),e.ce&&e.ce(c),c}let xn=null;const ti=()=>xn||mn;let fu,th;{const e=Hu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};fu=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),th=t("__VUE_SSR_SETTERS__",r=>pa=r)}const Da=e=>{const t=xn;return fu(e),e.scope.on(),()=>{e.scope.off(),fu(t)}},rv=()=>{xn&&xn.scope.off(),fu(null)};function qb(e){return e.vnode.shapeFlag&4}let pa=!1;function LT(e,t=!1,r=!1){t&&th(t);const{props:o,children:s}=e.vnode,c=qb(e);aT(e,o,c,t),dT(e,s,r||t);const f=c?MT(e,t):void 0;return t&&th(!1),f}function MT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,q_);const{setup:o}=r;if(o){Si();const s=e.setupContext=o.length>1?Ub(e):null,c=Da(e),f=Ra(o,e,0,[e.props,s]),d=C0(f);if(_i(),c(),(d||e.sp)&&!Ds(e)&&hb(e),d){if(f.then(rv,rv),t)return f.then(h=>{nh(e,h)}).catch(h=>{Pa(h,e,0)});e.asyncDep=f}else nh(e,f)}else jb(e)}function nh(e,t,r){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=Z0(t)),jb(e)}function jb(e,t,r){const o=e.type;e.render||(e.render=o.render||Xr);{const s=Da(e);Si();try{U_(e)}finally{_i(),s()}}}const NT={get(e,t){return wn(e,"get",""),e[t]}};function Ub(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,NT),slots:e.slots,emit:e.emit,expose:t}}function Qu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Z0(Uu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ql)return Ql[r](e)},has(t,r){return r in t||r in Ql}})):e.proxy}function OT(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function RT(e){return et(e)&&"__vccOpts"in e}const ke=(e,t)=>x_(e,t,pa);function za(e,t,r){try{Ys(-1);const o=arguments.length;return o===2?kt(t)&&!Ze(t)?Zs(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Zs(r)&&(r=[r]),Ne(e,t,r))}finally{Ys(1)}}const PT="3.5.25";/**
* @vue/runtime-dom v3.5.25
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let rh;const iv=typeof window<"u"&&window.trustedTypes;if(iv)try{rh=iv.createPolicy("vue",{createHTML:e=>e})}catch{}const Vb=rh?e=>rh.createHTML(e):e=>e,$T="http://www.w3.org/2000/svg",IT="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,ov=mi&&mi.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"?mi.createElementNS($T,e):t==="mathml"?mi.createElementNS(IT,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{ov.innerHTML=Vb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ui="transition",zl="animation",ga=Symbol("_vtc"),Gb={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},zT=on({},ab,Gb),FT=e=>(e.displayName="Transition",e.props=zT,e),HT=FT((e,{slots:t})=>za(L_,BT(e),t)),Oo=(e,t=[])=>{Ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},sv=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function BT(e){const t={};for(const L in e)L in Gb||(t[L]=e[L]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,E=WT(s),M=E&&E[0],R=E&&E[1],{onBeforeEnter:N,onEnter:P,onEnterCancelled:$,onLeave:_,onLeaveCancelled:z,onBeforeAppear:j=N,onAppear:le=P,onAppearCancelled:ee=$}=t,Y=(L,O,C,k)=>{L._enterCancelled=k,Ro(L,O?g:d),Ro(L,O?p:f),C&&C()},G=(L,O)=>{L._isLeaving=!1,Ro(L,v),Ro(L,x),Ro(L,b),O&&O()},W=L=>(O,C)=>{const k=L?le:P,D=()=>Y(O,L,C);Oo(k,[O,D]),lv(()=>{Ro(O,L?h:c),di(O,L?g:d),sv(k)||av(O,o,M,D)})};return on(t,{onBeforeEnter(L){Oo(N,[L]),di(L,c),di(L,f)},onBeforeAppear(L){Oo(j,[L]),di(L,h),di(L,p)},onEnter:W(!1),onAppear:W(!0),onLeave(L,O){L._isLeaving=!0;const C=()=>G(L,O);di(L,v),L._enterCancelled?(di(L,b),fv(L)):(fv(L),di(L,b)),lv(()=>{L._isLeaving&&(Ro(L,v),di(L,x),sv(_)||av(L,o,R,C))}),Oo(_,[L,C])},onEnterCancelled(L){Y(L,!1,void 0,!0),Oo($,[L])},onAppearCancelled(L){Y(L,!0,void 0,!0),Oo(ee,[L])},onLeaveCancelled(L){G(L),Oo(z,[L])}})}function WT(e){if(e==null)return null;if(kt(e))return[bd(e.enter),bd(e.leave)];{const t=bd(e);return[t,t]}}function bd(e){return M0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ga]||(e[ga]=new Set)).add(t)}function Ro(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ga];r&&(r.delete(t),r.size||(e[ga]=void 0))}function lv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qT=0;function av(e,t,r,o){const s=e._endId=++qT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=jT(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function jT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Ui}Delay`),c=o(`${Ui}Duration`),f=cv(s,c),d=o(`${zl}Delay`),h=o(`${zl}Duration`),p=cv(d,h);let g=null,v=0,b=0;t===Ui?f>0&&(g=Ui,v=f,b=c.length):t===zl?p>0&&(g=zl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Ui:zl:null,b=g?g===Ui?c.length:h.length:0);const x=g===Ui&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ui}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:x}}function cv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>uv(r)+uv(e[o])))}function uv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fv(e){return(e?e.ownerDocument:document).body.offsetHeight}function UT(e,t,r){const o=e[ga];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const du=Symbol("_vod"),Kb=Symbol("_vsh"),ro={name:"show",beforeMount(e,{value:t},{transition:r}){e[du]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Fl(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),Fl(e,!0),o.enter(e)):o.leave(e,()=>{Fl(e,!1)}):Fl(e,t))},beforeUnmount(e,{value:t}){Fl(e,t)}};function Fl(e,t){e.style.display=t?e[du]:"none",e[Kb]=!t}const VT=Symbol(""),GT=/(?:^|;)\s*display\s*:/;function KT(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Vc(o,d,"")}else for(const f in t)r[f]==null&&Vc(o,f,"");for(const f in r)f==="display"&&(c=!0),Vc(o,f,r[f])}else if(s){if(t!==r){const f=o[VT];f&&(r+=";"+f),o.cssText=r,c=GT.test(r)}}else t&&e.removeAttribute("style");du in e&&(e[du]=c?o.display:"",e[Kb]&&(o.display="none"))}const dv=/\s*!important$/;function Vc(e,t,r){if(Ze(r))r.forEach(o=>Vc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=XT(e,t);dv.test(r)?e.setProperty(Ai(o),r.replace(dv,""),"important"):e[o]=r}}const hv=["Webkit","Moz","ms"],wd={};function XT(e,t){const r=wd[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return wd[t]=o;o=Fu(o);for(let s=0;s<hv.length;s++){const c=hv[s]+o;if(c in e)return wd[t]=c}return t}const pv="http://www.w3.org/1999/xlink";function gv(e,t,r,o,s,c=jS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(pv,t.slice(6,t.length)):e.setAttributeNS(pv,t,r):r==null||c&&!N0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Rr(r)?String(r):r)}function mv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Vb(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=N0(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 zo(e,t,r,o){e.addEventListener(t,r,o)}function YT(e,t,r,o){e.removeEventListener(t,r,o)}const vv=Symbol("_vei");function ZT(e,t,r,o,s=null){const c=e[vv]||(e[vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=JT(t);if(o){const p=c[t]=tC(o,s);zo(e,d,p,h)}else f&&(YT(e,d,f,h),c[t]=void 0)}}const yv=/(?:Once|Passive|Capture)$/;function JT(e){let t;if(yv.test(e)){t={};let o;for(;o=e.match(yv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ai(e.slice(2)),t]}let xd=0;const QT=Promise.resolve(),eC=()=>xd||(QT.then(()=>xd=0),xd=Date.now());function tC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(nC(o,r.value),t,5,[o])};return r.value=e,r.attached=eC(),r}function nC(e,t){if(Ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const bv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,rC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?UT(e,o,f):t==="style"?KT(e,r,o):$u(t)?Hh(t)||ZT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):iC(e,t,o,f))?(mv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?mv(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),gv(e,t,o,f))};function iC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&bv(t)&&et(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return bv(t)&&Ht(r)?!1:t in e}const hu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ze(t)?r=>jc(t,r):t};function oC(e){e.target.composing=!0}function wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fs=Symbol("_assign");function xv(e,t,r){return t&&(e=e.trim()),r&&(e=Wh(e)),e}const Xb={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Fs]=hu(s);const c=o||s.props&&s.props.type==="number";zo(e,t?"change":"input",f=>{f.target.composing||e[Fs](xv(e.value,r,c))}),(r||c)&&zo(e,"change",()=>{e.value=xv(e.value,r,c)}),t||(zo(e,"compositionstart",oC),zo(e,"compositionend",wv),zo(e,"change",wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Fs]=hu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Wh(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},Yb={deep:!0,created(e,t,r){e[Fs]=hu(r),zo(e,"change",()=>{const o=e._modelValue,s=sC(e),c=e.checked,f=e[Fs];if(Ze(o)){const d=O0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Iu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Zb(e,c))})},mounted:kv,beforeUpdate(e,t,r){e[Fs]=hu(r),kv(e,t,r)}};function kv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Ze(t))s=O0(t,o.props.value)>-1;else if(Iu(t))s=t.has(o.props.value);else{if(t===r)return;s=Bu(t,Zb(e,!0))}e.checked!==s&&(e.checked=s)}function sC(e){return"_value"in e?e._value:e.value}function Zb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const lC=["ctrl","shift","alt","meta"],aC={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)=>lC.some(r=>e[`${r}Key`]&&!t.includes(r))},Gc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=aC[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},cC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ih=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ai(s.key);if(t.some(f=>f===c||cC[f]===c))return e(s)}))},uC=on({patchProp:rC},DT);let Sv;function fC(){return Sv||(Sv=pT(uC))}const Jb=((...e)=>{const t=fC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=hC(o);if(!s)return;const c=t._component;!et(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,dC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function dC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function hC(e){return Ht(e)?document.querySelector(e):e}const Ni=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},pC={};function gC(e,t){const r=Go("RouterView");return re(),Ve(r)}const mC=Ni(pC,[["render",gC]]),vC=["top","right","bottom","left"],_v=["start","end"],Tv=vC.reduce((e,t)=>e.concat(t,t+"-"+_v[0],t+"-"+_v[1]),[]),ma=Math.min,Io=Math.max,yC={left:"right",right:"left",bottom:"top",top:"bottom"},bC={start:"end",end:"start"};function oh(e,t,r){return Io(e,ma(t,r))}function Xo(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function Qb(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function Fa(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function op(e){return Qb(Fa(e))}function ew(e,t,r){r===void 0&&(r=!1);const o=Or(e),s=op(e),c=ip(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=gu(f)),[f,gu(f)]}function wC(e){const t=gu(e);return[pu(e),t,pu(t)]}function pu(e){return e.replace(/start|end/g,t=>bC[t])}function xC(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 kC(e,t,r,o){const s=Or(e);let c=xC(Qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(pu)))),c}function gu(e){return e.replace(/left|right|bottom|top/g,t=>yC[t])}function SC(e){return{top:0,right:0,bottom:0,left:0,...e}}function tw(e){return typeof e!="number"?SC(e):{top:e,right:e,bottom:e,left:e}}function ta(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Cv(e,t,r){let{reference:o,floating:s}=e;const c=Fa(t),f=op(t),d=ip(f),h=Qr(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:g,y:o.y-s.height};break;case"bottom":x={x:g,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:v};break;case"left":x={x:o.x-s.width,y:v};break;default:x={x:o.x,y:o.y}}switch(Or(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const _C=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Cv(p,o,h),b=o,x={},E=0;for(let M=0;M<d.length;M++){const{name:R,fn:N}=d[M],{x:P,y:$,data:_,reset:z}=await N({x:g,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});g=P??g,v=$??v,x={...x,[R]:{...x[R],..._}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:g,y:v}=Cv(p,b,h)),M=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:x}};async function ef(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:x=0}=Xo(t,e),E=tw(x),R=d[b?v==="floating"?"reference":"floating":v],N=ta(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(R)))==null||r?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),P=v==="floating"?{...f.floating,x:o,y:s}:f.reference,$=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),_=await(c.isElement==null?void 0:c.isElement($))?await(c.getScale==null?void 0:c.getScale($))||{x:1,y:1}:{x:1,y:1},z=ta(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:P,offsetParent:$,strategy:h}):P);return{top:(N.top-z.top+E.top)/_.y,bottom:(z.bottom-N.bottom+E.bottom)/_.y,left:(N.left-z.left+E.left)/_.x,right:(z.right-N.right+E.right)/_.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:g=0}=Xo(e,t)||{};if(p==null)return{};const v=tw(g),b={x:r,y:o},x=op(s),E=ip(x),M=await f.getDimensions(p),R=x==="y",N=R?"top":"left",P=R?"bottom":"right",$=R?"clientHeight":"clientWidth",_=c.reference[E]+c.reference[x]-b[x]-c.floating[E],z=b[x]-c.reference[x],j=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let le=j?j[$]:0;(!le||!await(f.isElement==null?void 0:f.isElement(j)))&&(le=d.floating[$]||c.floating[E]);const ee=_/2-z/2,Y=le/2-M[E]/2-1,G=ma(v[N],Y),W=ma(v[P],Y),L=G,O=le-M[E]-W,C=le/2-M[E]/2+ee,k=oh(L,C,O),D=!h.arrow&&Or(s)!=null&&C!==k&&c.reference[E]/2-(C<L?G:W)-M[E]/2<0,B=D?C<L?C-L:C-O:0;return{[x]:b[x]+B,data:{[x]:k,centerOffset:C-k-B,...D&&{alignmentOffset:B}},reset:D}}});function CC(e,t,r){return(e?[...r.filter(s=>Or(s)===e),...r.filter(s=>Or(s)!==e)]:r.filter(s=>Qr(s)===s)).filter(s=>e?Or(s)===e||(t?pu(s)!==s:!1):!0)}const EC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:b=Tv,autoAlignment:x=!0,...E}=Xo(e,t),M=v!==void 0||b===Tv?CC(v||null,x,b):b,R=await ef(t,E),N=((r=f.autoPlacement)==null?void 0:r.index)||0,P=M[N];if(P==null)return{};const $=ew(P,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==P)return{reset:{placement:M[0]}};const _=[R[Qr(P)],R[$[0]],R[$[1]]],z=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:P,overflows:_}],j=M[N+1];if(j)return{data:{index:N+1,overflows:z},reset:{placement:j}};const le=z.map(G=>{const W=Or(G.placement);return[G.placement,W&&g?G.overflows.slice(0,2).reduce((L,O)=>L+O,0):G.overflows[0],G.overflows]}).sort((G,W)=>G[1]-W[1]),Y=((s=le.filter(G=>G[2].slice(0,Or(G[0])?2:3).every(W=>W<=0))[0])==null?void 0:s[0])||le[0][0];return Y!==d?{data:{index:N+1,overflows:z},reset:{placement:Y}}:{}}}},AC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:M=!0,...R}=Xo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const N=Qr(s),P=Qr(d)===d,$=await(h.isRTL==null?void 0:h.isRTL(p.floating)),_=b||(P||!M?[gu(d)]:wC(d));!b&&E!=="none"&&_.push(...kC(d,M,E,$));const z=[d,..._],j=await ef(t,R),le=[];let ee=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&le.push(j[N]),v){const L=ew(s,f,$);le.push(j[L[0]],j[L[1]])}if(ee=[...ee,{placement:s,overflows:le}],!le.every(L=>L<=0)){var Y,G;const L=(((Y=c.flip)==null?void 0:Y.index)||0)+1,O=z[L];if(O)return{data:{index:L,overflows:ee},reset:{placement:O}};let C=(G=ee.filter(k=>k.overflows[0]<=0).sort((k,D)=>k.overflows[1]-D.overflows[1])[0])==null?void 0:G.placement;if(!C)switch(x){case"bestFit":{var W;const k=(W=ee.map(D=>[D.placement,D.overflows.filter(B=>B>0).reduce((B,ae)=>B+ae,0)]).sort((D,B)=>D[1]-B[1])[0])==null?void 0:W[0];k&&(C=k);break}case"initialPlacement":C=d;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function LC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Qr(r),d=Or(r),h=Fa(r)==="y",p=["left","top"].includes(f)?-1:1,g=c&&h?-1:1,v=Xo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return d&&typeof E=="number"&&(x=d==="end"?E*-1:E),h?{x:x*g,y:b*p}:{x:b*p,y:x*g}}const MC=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 LC(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}}}}},NC=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:R=>{let{x:N,y:P}=R;return{x:N,y:P}}},...h}=Xo(e,t),p={x:r,y:o},g=await ef(t,h),v=Fa(Qr(s)),b=Qb(v);let x=p[b],E=p[v];if(c){const R=b==="y"?"top":"left",N=b==="y"?"bottom":"right",P=x+g[R],$=x-g[N];x=oh(P,x,$)}if(f){const R=v==="y"?"top":"left",N=v==="y"?"bottom":"right",P=E+g[R],$=E-g[N];E=oh(P,E,$)}const M=d.fn({...t,[b]:x,[v]:E});return{...M,data:{x:M.x-r,y:M.y-o}}}}},OC=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}=Xo(e,t),h=await ef(t,d),p=Qr(r),g=Or(r),v=Fa(r)==="y",{width:b,height:x}=o.floating;let E,M;p==="top"||p==="bottom"?(E=p,M=g===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(M=p,E=g==="end"?"top":"bottom");const R=x-h[E],N=b-h[M],P=!t.middlewareData.shift;let $=R,_=N;if(v){const j=b-h.left-h.right;_=g||P?ma(N,j):j}else{const j=x-h.top-h.bottom;$=g||P?ma(R,j):j}if(P&&!g){const j=Io(h.left,0),le=Io(h.right,0),ee=Io(h.top,0),Y=Io(h.bottom,0);v?_=b-2*(j!==0||le!==0?j+le:Io(h.left,h.right)):$=x-2*(ee!==0||Y!==0?ee+Y:Io(h.top,h.bottom))}await f({...t,availableWidth:_,availableHeight:$});const z=await s.getDimensions(c.floating);return b!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yr(e){return hr(e).getComputedStyle(e)}const Ev=Math.min,na=Math.max,mu=Math.round;function nw(e){const t=Yr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=mu(r)!==s||mu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function fo(e){return iw(e)?(e.nodeName||"").toLowerCase():""}let Lc;function rw(){if(Lc)return Lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Lc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Lc):navigator.userAgent}function Zr(e){return e instanceof hr(e).HTMLElement}function so(e){return e instanceof hr(e).Element}function iw(e){return e instanceof hr(e).Node}function Av(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function tf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function RC(e){return["table","td","th"].includes(fo(e))}function sh(e){const t=/firefox/i.test(rw()),r=Yr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function ow(){return!/^((?!chrome|android).)*safari/i.test(rw())}function sp(e){return["html","body","#document"].includes(fo(e))}function sw(e){return so(e)?e:e.contextElement}const lw={x:1,y:1};function Hs(e){const t=sw(e);if(!Zr(t))return lw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=nw(t);let f=(c?mu(r.width):r.width)/o,d=(c?mu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function va(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=sw(e);let h=lw;t&&(o?so(o)&&(h=Hs(o)):h=Hs(e));const p=d?hr(d):window,g=!ow()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,E=f.height/h.y;if(d){const M=hr(d),R=o&&so(o)?hr(o):o;let N=M.frameElement;for(;N&&o&&R!==M;){const P=Hs(N),$=N.getBoundingClientRect(),_=getComputedStyle(N);$.x+=(N.clientLeft+parseFloat(_.paddingLeft))*P.x,$.y+=(N.clientTop+parseFloat(_.paddingTop))*P.y,v*=P.x,b*=P.y,x*=P.x,E*=P.y,v+=$.x,b+=$.y,N=hr(N).frameElement}}return{width:x,height:E,top:b,right:v+x,bottom:b+E,left:v,x:v,y:b}}function lo(e){return((iw(e)?e.ownerDocument:e.document)||window.document).documentElement}function nf(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function aw(e){return va(lo(e)).left+nf(e).scrollLeft}function ya(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Av(e)&&e.host||lo(e);return Av(t)?t.host:t}function cw(e){const t=ya(e);return sp(t)?t.ownerDocument.body:Zr(t)&&tf(t)?t:cw(t)}function vu(e,t){var r;t===void 0&&(t=[]);const o=cw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],tf(o)?o:[]):t.concat(o,vu(o))}function Lv(e,t,r){return t==="viewport"?ta((function(o,s){const c=hr(o),f=lo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=ow();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):so(t)?ta((function(o,s){const c=va(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Zr(o)?Hs(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)):ta((function(o){const s=lo(o),c=nf(o),f=o.ownerDocument.body,d=na(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=na(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+aw(o);const g=-c.scrollTop;return Yr(f).direction==="rtl"&&(p+=na(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(lo(e)))}function Mv(e){return Zr(e)&&Yr(e).position!=="fixed"?e.offsetParent:null}function Nv(e){const t=hr(e);let r=Mv(e);for(;r&&RC(r)&&Yr(r).position==="static";)r=Mv(r);return r&&(fo(r)==="html"||fo(r)==="body"&&Yr(r).position==="static"&&!sh(r))?t:r||(function(o){let s=ya(o);for(;Zr(s)&&!sp(s);){if(sh(s))return s;s=ya(s)}return null})(e)||t}function PC(e,t,r){const o=Zr(t),s=lo(t),c=va(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((fo(t)!=="body"||tf(s))&&(f=nf(t)),Zr(t)){const h=va(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=aw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const $C={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=vu(p).filter((R=>so(R)&&fo(R)!=="body")),x=null;const E=Yr(p).position==="fixed";let M=E?ya(p):p;for(;so(M)&&!sp(M);){const R=Yr(M),N=sh(M);(E?N||x:N||R.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=R:b=b.filter((P=>P!==M)),M=ya(M)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Lv(t,g,s);return p.top=na(v.top,p.top),p.right=Ev(v.right,p.right),p.bottom=Ev(v.bottom,p.bottom),p.left=na(v.left,p.left),p}),Lv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Zr(r),c=lo(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")&&((fo(r)!=="body"||tf(c))&&(f=nf(r)),Zr(r))){const p=va(r);d=Hs(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:so,getDimensions:function(e){return Zr(e)?nw(e):e.getBoundingClientRect()},getOffsetParent:Nv,getDocumentElement:lo,getScale:Hs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Nv,c=this.getDimensions;return{reference:PC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yr(e).direction==="rtl"},IC=(e,t,r)=>{const o=new Map,s={platform:$C,...r},c={...s.platform,_c:o};return _C(e,t,{...s,platform:c})},ao={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 ba(e,t){let r=ao.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=ao.themes[r.$extend]||{}:(r=null,o=ao[t]):r=null;while(r);return o}function DC(e){const t=[e];let r=ao.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Ov(e){const t=[e];let r=ao.themes[e]||{};do r.$extend?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t}let wa=!1;if(typeof window<"u"){wa=!1;try{const e=Object.defineProperty({},"passive",{get(){wa=!0}});window.addEventListener("test",null,e)}catch{}}let uw=!1;typeof window<"u"&&typeof navigator<"u"&&(uw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const fw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Rv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Pv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function $v(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function kd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Po=null;const Iv={};function Dv(e){let t=Iv[e];return t||(t=Iv[e]=[]),t}let lh=function(){};typeof window<"u"&&(lh=window.Element);function ht(e){return function(t){return ba(t.theme,e)}}const Sd="__floating-vue__popper",dw=()=>rt({name:"VPopper",provide(){return{[Sd]:{parentPopper:this}}},inject:{[Sd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>fw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,lh,Boolean],default:ht("container")},boundary:{type:[String,lh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Sd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(MC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(EC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(NC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(AC({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(OC({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 IC(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),Po&&this.instantMove&&Po.instantMove&&Po!==this.parentPopper){Po.$_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&&(Po=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await kd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vu(this.$_referenceNode),...vu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Ov(this.theme))Dv(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await kd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,$v(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Ov(this.theme)){const o=Dv(r);$v(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Po===this&&(Po=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await kd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Rv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Rv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Pv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Pv,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,wa?{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(ra>=e.left&&ra<=e.right&&ia>=e.top&&ia<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ra-Ki,o=ia-Xi,s=t.left+t.width/2-Ki+(t.top+t.height/2)-Xi+t.width+t.height,c=Ki+r*s,f=Xi+o*s;return Mc(Ki,Xi,c,f,t.left,t.top,t.left,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.top,t.right,t.top)||Mc(Ki,Xi,c,f,t.right,t.top,t.right,t.bottom)||Mc(Ki,Xi,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(uw){const e=wa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>zv(t),e),document.addEventListener("touchend",t=>Fv(t,!0),e)}else window.addEventListener("mousedown",e=>zv(e),!0),window.addEventListener("click",e=>Fv(e,!1),!0);window.addEventListener("resize",HC)}function zv(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Fv(e,t){zC(e,t)}function zC(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]&&Hv(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&&Hv(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Hv(e,t,r){return r.closeAllPopover||r.closePopover&&t||FC(e,r)&&!t}function FC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function HC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function Bv(){for(let e=0;e<nr.length;e++)nr[e].hide()}let Ki=0,Xi=0,ra=0,ia=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Ki=ra,Xi=ia,ra=e.clientX,ia=e.clientY},wa?{passive:!0}:void 0);function Mc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const BC={extends:dw()},rf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function WC(e,t,r,o,s,c){return re(),ve("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Dt(e.$slots,"default",WS(Wb(e.slotData)))],2)}const qC=rf(BC,[["render",WC]]);function jC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Kc;function ah(){ah.init||(ah.init=!0,Kc=jC()!==-1)}var of={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ah(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Kc&&this.$el.appendChild(e),e.data="about:blank",Kc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Kc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const UC=sb();ib("data-v-b329ee4c");const VC={class:"resize-observer",tabindex:"-1"};ob();const GC=UC((e,t,r,o,s,c)=>(re(),Ve("div",VC)));of.render=GC;of.__scopeId="data-v-b329ee4c";of.__file="src/components/ResizeObserver.vue";const hw=(e="theme")=>({computed:{themeClass(){return DC(this[e])}}}),KC=rt({name:"VPopperContent",components:{ResizeObserver:of},mixins:[hw()],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}}}),XC=["id","aria-hidden","tabindex","data-popper-placement"],YC={ref:"inner",class:"v-popper__inner"},ZC=X("div",{class:"v-popper__arrow-outer"},null,-1),JC=X("div",{class:"v-popper__arrow-inner"},null,-1),QC=[ZC,JC];function eE(e,t,r,o,s,c){const f=Go("ResizeObserver");return re(),ve("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:zt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=ih(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",YC,[e.mounted?(re(),ve(nt,{key:0},[X("div",null,[Dt(e.$slots,"default")]),e.handleResize?(re(),Ve(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Be("",!0)],64)):Be("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},QC,4)],4)],46,XC)}const pw=rf(KC,[["render",eE]]),gw={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ch=function(){};typeof window<"u"&&(ch=window.Element);const tE=rt({name:"VPopperWrapper",components:{Popper:qC,PopperContent:pw},mixins:[gw,hw("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ch,Boolean],default:void 0},boundary:{type:[String,ch],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function nE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return re(),Ve(d,ki({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:x,hide:E,handleResize:M,onResize:R,classes:N,result:P})=>[Dt(e.$slots,"default",{shown:p,show:x,hide:E}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":M,classes:N,result:P,onHide:E,onResize:R},{default:We(()=>[Dt(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const lp=rf(tE,[["render",nE]]);({...lp});({...lp});const rE={...lp,name:"VTooltip",vPopperTheme:"tooltip"},iE=rt({name:"VTooltipDirective",components:{Popper:dw(),PopperContent:pw},mixins:[gw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ba(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ba(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}}}),oE=["innerHTML"],sE=["textContent"];function lE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return re(),Ve(d,ki({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:x,handleResize:E,onResize:M,classes:R,result:N})=>[Ne(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":E,classes:R,result:N,onHide:x,onResize:M},{default:We(()=>[e.html?(re(),ve("div",{key:0,innerHTML:e.finalContent},null,8,oE)):(re(),ve("div",{key:1,textContent:Pe(e.finalContent)},null,8,sE))]),_: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 aE=rf(iE,[["render",lE]]),mw="v-popper--has-tooltip";function cE(e,t){let r=e.placement;if(!r&&t)for(const o of fw)t[o]&&(r=o);return r||(r=ba(e.theme||"tooltip","placement")),r}function vw(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=cE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let _d,xa,uE=0;function fE(){if(_d)return;xa=Ge([]),_d=Jb({name:"VTooltipDirectiveApp",setup(){return{directives:xa}},render(){return this.directives.map(t=>za(aE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),_d.mount(e)}function yw(e,t,r){fE();const o=Ge(vw(e,t,r)),s=Ge(!1),c={id:uE++,options:o,shown:s};return xa.value.push(c),e.classList&&e.classList.add(mw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function ap(e){if(e.$_popper){const t=xa.value.indexOf(e.$_popper.item);t!==-1&&xa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(mw)}function Wv(e,{value:t,modifiers:r}){const o=vw(e,t,r);if(!o.content||ba(o.theme||"tooltip","disabled"))ap(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=yw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const dE={beforeMount:Wv,updated:Wv,beforeUnmount(e){ap(e)}},hE=dE,Qi=rE,bw={options:ao};function cp(e){return $0()?(GS(e),!0):!1}const Td=new WeakMap,pE=(...e)=>{var t;const r=e[0],o=(t=ti())==null?void 0:t.proxy;if(o==null&&!kb())throw new Error("injectLocal must be called in setup");return o&&Td.has(o)&&r in Td.get(o)?Td.get(o)[r]:pn(...e)},gE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mE=Object.prototype.toString,vE=e=>mE.call(e)==="[object Object]",yE=()=>+Date.now(),yu=()=>{};function up(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const fp=e=>e();function ww(e,t={}){let r,o,s=yu;const c=h=>{clearTimeout(h),s(),s=yu};let f;return h=>{const p=Xt(e),g=Xt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},p)})}}function xw(e=fp,t={}){const{initialState:r="active"}=t,o=Yo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Gs(o),pause:s,resume:c,eventFilter:f}}function qv(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function jv(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function bE(e){return ti()}function Cd(e){return Array.isArray(e)?e:[e]}function Yo(...e){if(e.length!==1)return b_(...e);const t=e[0];return typeof t=="function"?Gs(J0(()=>({get:t,set:yu}))):Ge(t)}function Nc(e,t=200,r={}){return up(ww(t,r),e)}function kw(e,t,r={}){const{eventFilter:o=fp,...s}=r;return xt(e,up(o,t),s)}function Sw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=xw(o,{initialState:s});return{stop:kw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function dp(e,t=!0,r){bE()?Mi(e,r):t?e():Et(e)}function uh(e,t=!1){function r(v,{flush:b="sync",deep:x=!1,timeout:E,throwOnTimeout:M}={}){let R=null;const P=[new Promise($=>{R=xt(e,_=>{v(_)!==t&&(R?R():Et(()=>R?.()),$(_))},{flush:b,deep:x,immediate:!0})})];return E!=null&&P.push(qv(E,M).then(()=>Xt(e)).finally(()=>R?.())),Promise.race(P)}function o(v,b){if(!Mt(v))return r(_=>_===v,b);const{flush:x="sync",deep:E=!1,timeout:M,throwOnTimeout:R}=b??{};let N=null;const $=[new Promise(_=>{N=xt([e,v],([z,j])=>{t!==(z===j)&&(N?N():Et(()=>N?.()),_(z))},{flush:x,deep:E,immediate:!0})})];return M!=null&&$.push(qv(M,R).then(()=>Xt(e)).finally(()=>(N?.(),Xt(e)))),Promise.race($)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(x=>{const E=Array.from(x);return E.includes(v)||E.includes(Xt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let x=-1;return r(()=>(x+=1,x>=v),b)}return Array.isArray(Xt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return uh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return uh(e,!t)}}}function Uv(e){return uh(e)}function wE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=Ft(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Xt(r);return c.value=c.value===h?Xt(o):h,c.value}}return s?f:[c,f]}function hp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return kw(e,t,{...c,eventFilter:ww(o,{maxWait:s})})}function xE(e,t,r={}){const{eventFilter:o=fp,...s}=r,c=up(o,t);let f,d,h;if(s.flush==="sync"){const p=Ft(!1);d=()=>{},f=g=>{p.value=!0,g(),p.value=!1},h=xt(e,(...g)=>{p.value||c(...g)},s)}else{const p=[],g=Ft(0),v=Ft(0);d=()=>{g.value=v.value},p.push(xt(e,()=>{v.value++},{...s,flush:"sync"})),f=b=>{const x=v.value;b(),g.value+=v.value-x},p.push(xt(e,(...b)=>{const x=g.value>0&&g.value===v.value;g.value=0,v.value=0,!x&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function kE(e,t,r){return xt(e,t,{...r,immediate:!0})}function SE(e,t,r){const o=xt(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function _E(e,t,r){let o;Mt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=yu}=o,h=Ft(!s),p=f?Ft(t):Ge(t);let g=0;return Sb(async v=>{if(!h.value)return;g++;const b=g;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(M=>{v(()=>{c&&(c.value=!1),x||M()})});b===g&&(p.value=E)}catch(E){d(E)}finally{c&&b===g&&(c.value=!1),x=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ir=gE?window:void 0;function bu(e){var t;const r=Xt(e);return(t=r?.$el)!=null?t:r}function ho(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=ke(()=>{const d=Cd(Xt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=kE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>bu(p)))!=null?h:[Ir].filter(p=>p!=null),Cd(Xt(s.value?e[1]:e[0])),Cd(K(s.value?e[2]:e[1])),Xt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const v=vE(g)?{...g}:g;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(E=>o(b,x,E,v)))))},{flush:"post"}),f=()=>{c(),r()};return cp(r),f}function TE(){const e=Ft(!1),t=ti();return t&&Mi(()=>{e.value=!0},t),e}function _w(e){const t=TE();return ke(()=>(t.value,!!e()))}function CE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Tw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Ir,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=CE(t);return ho(s,c,g=>{g.repeat&&Xt(d)||h(g)&&r(g)},f)}function EE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ir,once:c=!1}=t,f=Ft(!1),d=ke(()=>o?1e3/Xt(o):null);let h=0,p=null;function g(x){if(!f.value||!s)return;h||(h=x);const E=x-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(g);return}if(h=x,e({delta:E,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(g))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),cp(b),{isActive:Gs(f),pause:b,resume:v}}const AE=Symbol("vueuse-ssr-width");function LE(){const e=kb()?pE(AE,null):null;return typeof e=="number"?e:void 0}function Cw(e,t={}){const{window:r=Ir,ssrWidth:o=LE()}=t,s=_w(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Ft(typeof o=="number"),f=Ft(),d=Ft(!1),h=p=>{d.value=p.matches};return Sb(()=>{if(c.value){c.value=!s.value;const p=Xt(e).split(",");d.value=p.some(g=>{const v=g.includes("not all"),b=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||x);return b&&E&&(E=o>=jv(b[1])),x&&E&&(E=o<=jv(x[1])),v?!E:E});return}s.value&&(f.value=r.matchMedia(Xt(e)),d.value=f.value.matches)}),ho(f,"change",h,{passive:!0}),ke(()=>d.value)}function Ew(e){return JSON.parse(JSON.stringify(e))}const Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rc="__vueuse_ssr_handlers__",ME=NE();function NE(){return Rc in Oc||(Oc[Rc]=Oc[Rc]||{}),Oc[Rc]}function Aw(e,t){return ME[e]||t}function OE(e){return Cw("(prefers-color-scheme: dark)",e)}function RE(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 PE={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()}},Vv="vueuse-storage";function Lw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Ir,eventFilter:b,onError:x=W=>{console.error(W)},initOnMounted:E}=o,M=(g?Ft:Ge)(typeof t=="function"?t():t),R=ke(()=>Xt(e));if(!r)try{r=Aw("getDefaultStorage",()=>{var W;return(W=Ir)==null?void 0:W.localStorage})()}catch(W){x(W)}if(!r)return M;const N=Xt(t),P=RE(N),$=(s=o.serializer)!=null?s:PE[P],{pause:_,resume:z}=Sw(M,()=>le(M.value),{flush:c,deep:f,eventFilter:b});xt(R,()=>Y(),{flush:c}),v&&d&&dp(()=>{r instanceof Storage?ho(v,"storage",Y,{passive:!0}):ho(v,Vv,G),E&&Y()}),E||Y();function j(W,L){if(v){const O={key:R.value,oldValue:W,newValue:L,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Vv,{detail:O}))}}function le(W){try{const L=r.getItem(R.value);if(W==null)j(L,null),r.removeItem(R.value);else{const O=$.write(W);L!==O&&(r.setItem(R.value,O),j(L,O))}}catch(L){x(L)}}function ee(W){const L=W?W.newValue:r.getItem(R.value);if(L==null)return h&&N!=null&&r.setItem(R.value,$.write(N)),N;if(!W&&p){const O=$.read(L);return typeof p=="function"?p(O,N):P==="object"&&!Array.isArray(O)?{...N,...O}:O}else return typeof L!="string"?L:$.read(L)}function Y(W){if(!(W&&W.storageArea!==r)){if(W&&W.key==null){M.value=N;return}if(!(W&&W.key!==R.value)){_();try{W?.newValue!==$.write(M.value)&&(M.value=ee(W))}catch(L){x(L)}finally{W?Et(z):z()}}}}function G(W){Y(W.detail)}return M}const $E="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function IE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ir,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=OE({window:s}),x=ke(()=>b.value?"dark":"light"),E=h||(f==null?Yo(o):Lw(f,o,c,{window:s,listenToStorageChanges:d})),M=ke(()=>E.value==="auto"?x.value:E.value),R=Aw("updateHTMLAttrs",(_,z,j)=>{const le=typeof _=="string"?s?.document.querySelector(_):bu(_);if(!le)return;const ee=new Set,Y=new Set;let G=null;if(z==="class"){const L=j.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{L.includes(O)?ee.add(O):Y.add(O)})}else G={key:z,value:j};if(ee.size===0&&Y.size===0&&G===null)return;let W;g&&(W=s.document.createElement("style"),W.appendChild(document.createTextNode($E)),s.document.head.appendChild(W));for(const L of ee)le.classList.add(L);for(const L of Y)le.classList.remove(L);G&&le.setAttribute(G.key,G.value),g&&(s.getComputedStyle(W).opacity,document.head.removeChild(W))});function N(_){var z;R(t,r,(z=v[_])!=null?z:_)}function P(_){e.onChanged?e.onChanged(_,N):N(_)}xt(M,P,{flush:"post",immediate:!0}),dp(()=>P(M.value));const $=ke({get(){return p?E.value:M.value},set(_){E.value=_}});return Object.assign($,{store:E,system:x,state:M})}function DE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=IE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function Mw(e){return e}function zE(e,t){return e.value=t}function FE(e){return e?typeof e=="function"?e:Ew:Mw}function HE(e){return e?typeof e=="function"?e:Ew:Mw}function BE(e,t={}){const{clone:r=!1,dump:o=FE(r),parse:s=HE(r),setSource:c=zE}=t;function f(){return Uu({snapshot:o(e.value),timestamp:yE()})}const d=Ge(f()),h=Ge([]),p=Ge([]),g=$=>{c(e,s($.snapshot)),d.value=$},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},x=()=>{const $=h.value.shift();$&&(p.value.unshift(d.value),g($))},E=()=>{const $=p.value.shift();$&&(h.value.unshift(d.value),g($))},M=()=>{g(d.value)},R=ke(()=>[d.value,...h.value]),N=ke(()=>h.value.length>0),P=ke(()=>p.value.length>0);return{source:e,undoStack:h,redoStack:p,last:d,history:R,canUndo:N,canRedo:P,clear:b,commit:v,reset:M,undo:x,redo:E}}function WE(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s}=t,{eventFilter:c,pause:f,resume:d,isActive:h}=xw(s),{ignoreUpdates:p,ignorePrevAsyncUpdates:g,stop:v}=xE(e,R,{deep:r,flush:o,eventFilter:c});function b(_,z){g(),p(()=>{_.value=z})}const x=BE(e,{...t,clone:t.clone||r,setSource:b}),{clear:E,commit:M}=x;function R(){g(),M()}function N(_){d(),_&&R()}function P(_){let z=!1;const j=()=>z=!0;p(()=>{_(j)}),z||R()}function $(){v(),E()}return{...x,isTracking:h,pause:f,resume:N,commit:R,batch:P,dispose:$}}function Nw(e,t,r={}){const{window:o=Ir,...s}=r;let c;const f=_w(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const v=Xt(e);return Array.isArray(v)?v.map(b=>bu(b)):[bu(v)]}),p=xt(h,v=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of v)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return cp(g),{isSupported:f,stop:g}}function sf(e,t,r={}){const{window:o=Ir}=r;return Lw(e,t,o?.localStorage,r)}function qE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ir}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const $=d.location.hash||"",_=$.indexOf("?");return _>0?$.slice(_):""}else return(d.location.hash||"").replace(/^#/,"")}function g($){const _=$.toString();if(e==="history")return`${_?`?${_}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${_?`#${_}`:""}`;const z=d.location.hash||"#",j=z.indexOf("?");return j>0?`${d.location.search||""}${z.slice(0,j)}${_?`?${_}`:""}`:`${d.location.search||""}${z}${_?`?${_}`:""}`}function v(){return new URLSearchParams(p())}function b($){const _=new Set(Object.keys(h));for(const z of $.keys()){const j=$.getAll(z);h[z]=j.length>1?j:$.get(z)||"",_.delete(z)}Array.from(_).forEach(z=>delete h[z])}const{pause:x,resume:E}=Sw(h,()=>{const $=new URLSearchParams("");Object.keys(h).forEach(_=>{const z=h[_];Array.isArray(z)?z.forEach(j=>$.append(_,j)):o&&z==null||s&&!z?$.delete(_):$.set(_,z)}),M($,!1)},{deep:!0});function M($,_){x(),_&&b($),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g($)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g($)),E()}function R(){c&&M(v(),!0)}const N={passive:!0};ho(d,"popstate",R,N),e!=="history"&&ho(d,"hashchange",R,N);const P=v();return P.keys().next().value?b(P):Object.assign(h,r),h}function Ow(e={}){const{window:t=Ir,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Ft(r),h=Ft(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:x}=t.visualViewport;d.value=Math.round(v*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(),dp(p);const g={passive:!0};if(ho("resize",p,g),t&&f==="visual"&&t.visualViewport&&ho(t.visualViewport,"resize",p,g),s){const v=Cw("(orientation: portrait)");xt(v,()=>p())}return{width:d,height:h}}const Gv={__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=vb(),c=Ge([]),f=ke(()=>c.value.reduce((F,Z)=>(F[~~Z.id]=Z)&&F,{})),d=ke(()=>c.value.length),h=Ge(null),p=Ge(!1),g=Ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ge({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),x=()=>{document.addEventListener("mousemove",R,{passive:!1}),document.addEventListener("mouseup",N),"ontouchstart"in window&&(document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",N))},E=()=>{document.removeEventListener("mousemove",R,{passive:!1}),document.removeEventListener("mouseup",N),"ontouchstart"in window&&(document.removeEventListener("touchmove",R,{passive:!1}),document.removeEventListener("touchend",N))},M=(F,Z)=>{const ne=F.target.closest(".splitpanes__splitter");if(ne){const{left:se,top:ce}=ne.getBoundingClientRect(),{clientX:I,clientY:q}="ontouchstart"in window&&F.touches?F.touches[0]:F;g.value.cursorOffset=o.horizontal?q-ce:I-se}x(),g.value.mouseDown=!0,g.value.activeSplitter=Z},R=F=>{g.value.mouseDown&&(F.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{le(z(F)),Fe("resize",{event:F},!0)}))},N=F=>{g.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:F},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,E()},100)},P=(F,Z)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===Z?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,$(F,Z),v.value.splitter=null):(v.value.splitter=Z,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||Fe("splitter-click",{event:F,index:Z},!0)},$=(F,Z)=>{if(Fe("splitter-dblclick",{event:F,index:Z},!0),o.maximizePanes){let ne=0;c.value=c.value.map((se,ce)=>(se.size=ce===Z?se.max:se.min,ce!==Z&&(ne+=se.min),se)),c.value[Z].size-=ne,Fe("pane-maximize",{event:F,index:Z,pane:c.value[Z]}),Fe("resized",{event:F,index:Z},!0)}},_=(F,Z)=>{Fe("pane-click",{event:F,index:f.value[Z].index,pane:f.value[Z]})},z=F=>{const Z=h.value.getBoundingClientRect(),{clientX:ne,clientY:se}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:ne-(o.horizontal?0:g.value.cursorOffset)-Z.left,y:se-(o.horizontal?g.value.cursorOffset:0)-Z.top}},j=F=>{F=F[o.horizontal?"y":"x"];const Z=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=Z-F),F*100/Z},le=F=>{const Z=g.value.activeSplitter;let ne={prevPanesSize:Y(Z),nextPanesSize:G(Z),prevReachedMinPanes:0,nextReachedMinPanes:0};const se=0+(o.pushOtherPanes?0:ne.prevPanesSize),ce=100-(o.pushOtherPanes?0:ne.nextPanesSize),I=Math.max(Math.min(j(F),ce),se);let q=[Z,Z+1],Q=c.value[q[0]]||null,he=c.value[q[1]]||null;const de=Q.max<100&&I>=Q.max+ne.prevPanesSize,ge=he.max<100&&I<=100-(he.max+G(Z+1));if(de||ge){de?(Q.size=Q.max,he.size=Math.max(100-Q.max-ne.prevPanesSize-ne.nextPanesSize,0)):(Q.size=Math.max(100-he.max-ne.prevPanesSize-G(Z+1),0),he.size=he.max);return}if(o.pushOtherPanes){const Ce=ee(ne,I);if(!Ce)return;({sums:ne,panesToResize:q}=Ce),Q=c.value[q[0]]||null,he=c.value[q[1]]||null}Q!==null&&(Q.size=Math.min(Math.max(I-ne.prevPanesSize-ne.prevReachedMinPanes,Q.min),Q.max)),he!==null&&(he.size=Math.min(Math.max(100-I-ne.nextPanesSize-ne.nextReachedMinPanes,he.min),he.max))},ee=(F,Z)=>{const ne=g.value.activeSplitter,se=[ne,ne+1];return Z<F.prevPanesSize+c.value[se[0]].min&&(se[0]=W(ne).index,F.prevReachedMinPanes=0,se[0]<ne&&c.value.forEach((ce,I)=>{I>se[0]&&I<=ne&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),F.prevPanesSize=Y(se[0]),se[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ce,I)=>{I>0&&I<=ne&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),c.value[se[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):Z>100-F.nextPanesSize-c.value[se[1]].min&&(se[1]=L(ne).index,F.nextReachedMinPanes=0,se[1]>ne+1&&c.value.forEach((ce,I)=>{I>ne&&I<se[1]&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),F.nextPanesSize=G(se[1]-1),se[1]===void 0)?(F.nextReachedMinPanes=0,c.value.forEach((ce,I)=>{I<d.value-1&&I>=ne+1&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),c.value[se[0]].size=100-F.prevPanesSize-G(se[0]-1),null):{sums:F,panesToResize:se}},Y=F=>c.value.reduce((Z,ne,se)=>Z+(se<F?ne.size:0),0),G=F=>c.value.reduce((Z,ne,se)=>Z+(se>F+1?ne.size:0),0),W=F=>[...c.value].reverse().find(Z=>Z.index<F&&Z.size>Z.min)||{},L=F=>c.value.find(Z=>Z.index>F+1&&Z.size>Z.min)||{},O=()=>{var F;const Z=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const ne of Z){const se=ne.classList.contains("splitpanes__pane"),ce=ne.classList.contains("splitpanes__splitter");!se&&!ce&&(ne.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},C=(F,Z,ne=!1)=>{const se=F-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),ne||(ce.onmousedown=I=>M(I,se),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=I=>M(I,se)),ce.onclick=I=>P(I,se+1)),ce.ondblclick=I=>$(I,se+1),Z.parentNode.insertBefore(ce,Z)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},D=()=>{var F;const Z=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const se of Z)se.className.includes("splitpanes__splitter")&&k(se);let ne=0;for(const se of Z)se.className.includes("splitpanes__pane")&&(!ne&&o.firstSplitter?C(ne,se,!0):ne&&C(ne,se),ne++)},B=({uid:F,...Z})=>{const ne=f.value[F];for(const[se,ce]of Object.entries(Z))ne[se]=ce},ae=F=>{var Z;let ne=-1;Array.from(((Z=h.value)==null?void 0:Z.children)||[]).some(se=>(se.className.includes("splitpanes__pane")&&ne++,se.isSameNode(F.el))),c.value.splice(ne,0,{...F,index:ne}),c.value.forEach((se,ce)=>se.index=ce),p.value&&Et(()=>{D(),Se({addedPane:c.value[ne]}),Fe("pane-add",{pane:c.value[ne]})})},be=F=>{const Z=c.value.findIndex(se=>se.id===F);c.value[Z].el=null;const ne=c.value.splice(Z,1)[0];c.value.forEach((se,ce)=>se.index=ce),Et(()=>{D(),Fe("pane-remove",{pane:ne}),Se({removedPane:{...ne}})})},Se=(F={})=>{!F.addedPane&&!F.removedPane?Ae():c.value.some(Z=>Z.givenSize!==null||Z.min||Z.max<100)?Ke(F):He(),p.value&&Fe("resized")},He=()=>{const F=100/d.value;let Z=0;const ne=[],se=[];for(const ce of c.value)ce.size=Math.max(Math.min(F,ce.max),ce.min),Z-=ce.size,ce.size>=ce.max&&ne.push(ce.id),ce.size<=ce.min&&se.push(ce.id);Z>.1&&je(Z,ne,se)},Ae=()=>{let F=100;const Z=[],ne=[];let se=0;for(const I of c.value)F-=I.size,I.givenSize!==null&&se++,I.size>=I.max&&Z.push(I.id),I.size<=I.min&&ne.push(I.id);let ce=100;if(F>.1){for(const I of c.value)I.givenSize===null&&(I.size=Math.max(Math.min(F/(d.value-se),I.max),I.min)),ce-=I.size;ce>.1&&je(ce,Z,ne)}},Ke=({addedPane:F,removedPane:Z}={})=>{let ne=100/d.value,se=0;const ce=[],I=[];(F?.givenSize??null)!==null&&(ne=(100-F.givenSize)/(d.value-1));for(const q of c.value)se-=q.size,q.size>=q.max&&ce.push(q.id),q.size<=q.min&&I.push(q.id);if(!(Math.abs(se)<.1)){for(const q of c.value)F?.givenSize!==null&&F?.id===q.id||(q.size=Math.max(Math.min(ne,q.max),q.min)),se-=q.size,q.size>=q.max&&ce.push(q.id),q.size<=q.min&&I.push(q.id);se>.1&&je(se,ce,I)}},je=(F,Z,ne)=>{let se;F>0?se=F/(d.value-Z.length):se=F/(d.value-ne.length),c.value.forEach((ce,I)=>{if(F>0&&!Z.includes(ce.id)){const q=Math.max(Math.min(ce.size+se,ce.max),ce.min),Q=q-ce.size;F-=Q,ce.size=q}else if(!ne.includes(ce.id)){const q=Math.max(Math.min(ce.size+se,ce.max),ce.min),Q=q-ce.size;F-=Q,ce.size=q}}),Math.abs(F)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(F,Z=void 0,ne=!1)=>{const se=Z?.index??g.value.activeSplitter??null;r(F,{...Z,...se!==null&&{index:se},...ne&&se!==null&&{prevPane:c.value[se-(o.firstSplitter?1:0)],nextPane:c.value[se+(o.firstSplitter?0:1)]},panes:c.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};xt(()=>o.firstSplitter,()=>D()),Mi(()=>{O(),D(),Se(),Fe("ready"),p.value=!0}),$a(()=>p.value=!1);const Re=()=>{var F;return za("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",ke(()=>o.horizontal)),dr("requestUpdate",B),dr("onPaneAdd",ae),dr("onPaneRemove",be),dr("onPaneClick",_),(F,Z)=>(re(),Ve(Xd(Re)))}},Pc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=pn("requestUpdate"),s=pn("onPaneAdd"),c=pn("horizontal"),f=pn("onPaneRemove"),d=pn("onPaneClick"),h=(t=ti())==null?void 0:t.uid,p=pn("indexedPanes"),g=ke(()=>p.value[h]),v=Ge(null),b=ke(()=>{const R=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(R,E.value),x.value)}),x=ke(()=>{const R=parseFloat(r.minSize);return isNaN(R)?0:R}),E=ke(()=>{const R=parseFloat(r.maxSize);return isNaN(R)?100:R}),M=ke(()=>{var R;return`${c.value?"height":"width"}: ${(R=g.value)==null?void 0:R.size}%`});return xt(()=>b.value,R=>o({uid:h,size:R})),xt(()=>x.value,R=>o({uid:h,min:R})),xt(()=>E.value,R=>o({uid:h,max:R})),Mi(()=>{s({id:h,el:v.value,min:x.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),$a(()=>f(h)),(R,N)=>(re(),ve("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:N[0]||(N[0]=P=>K(d)(P,R._.uid)),style:zt(M.value)},[Dt(R.$slots,"default")],4))}},tr=Ge([414,896]);function Rw(e){return e!=null}function pp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const jE=/^[A-Za-z]:\//;function UE(e=""){return e&&e.replace(/\\/g,"/").replace(jE,t=>t.toUpperCase())}const VE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function GE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Pw=function(...e){e=e.map(o=>UE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:GE();!s||s.length===0||(t=`${s}/${t}`,r=Kv(s))}return t=KE(t,!r),r&&!Kv(t)?`/${t}`:t.length>0?t:"."};function KE(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 Kv=function(e){return VE.test(e)};var XE=44,Xv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YE=new Uint8Array(64),$w=new Uint8Array(128);for(let e=0;e<Xv.length;e++){const t=Xv.charCodeAt(e);YE[e]=t,$w[t]=e}function Hl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=$w[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Yv(e,t){return e.pos>=t?!1:e.peek()!==XE}var ZE=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 JE(e){const{length:t}=e,r=new ZE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos<p;){let x;s=Hl(r,s),s<b&&(v=!1),b=s,Yv(r,p)?(c=Hl(r,c),f=Hl(r,f),d=Hl(r,d),Yv(r,p)?(h=Hl(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],g.push(x),r.pos++}v||QE(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function QE(e){e.sort(eA)}function eA(e,t){return e[0]-t[0]}var lf=0,tA=1,nA=2,rA=3,iA=4,wu=!1;function oA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][lf]-t;if(c===0)return wu=!0,s;c<0?r=s+1:o=s-1}return wu=!1,r-1}function sA(e,t,r){for(let o=r+1;o<e.length&&e[o][lf]===t;r=o++);return r}function lA(e,t,r){for(let o=r-1;o>=0&&e[o][lf]===t;r=o--);return r}function aA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return wu=f!==-1&&e[f][lf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=oA(e,t,d,h)}var cA="`line` must be greater than 0 (lines start at line 1)",uA="`column` must be greater than or equal to 0 (columns start at column 0)",Zv=-1,fA=1;function dA(e){var t;return(t=e)._decoded||(t._decoded=JE(e._encoded))}function hA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(cA);if(o<0)throw new Error(uA);const c=dA(e);if(r>=c.length)return $c(null,null,null,null);const f=c[r],d=pA(f,e._decodedMemo,r,o,s||fA);if(d===-1)return $c(null,null,null,null);const h=f[d];if(h.length===1)return $c(null,null,null,null);const{names:p,resolvedSources:g}=e;return $c(g[h[tA]],h[nA]+1,h[rA],h.length===5?p[h[iA]]:null)}function $c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function pA(e,t,r,o,s){let c=aA(e,o,t,r);return wu?c=(s===Zv?sA:lA)(e,o,c):s===Zv&&c++,c===-1||c===e.length?-1:c}const Iw=/^\s*at .*(?:\S:\d+|\(native\))/m,gA=/^(?:eval@)?(?:\[native code\])?$/,mA=["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 Dw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){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 vA(e){let t=e.trim();if(gA.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]=Dw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function yA(e){let t=e.trim();if(!Iw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=Dw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:Pw(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 bA(e,t={}){const{ignoreStackEntries:r=mA}=t;return(Iw.test(e)?xA(e):wA(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 Jv(r,s.file)?null:s;const d=new kA(f,s.file),h=_A(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let x=v||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),Jv(r,x)?null:p!=null&&g!=null?{line:p,column:g,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function Jv(e,t){return e.some(r=>t.match(r))}function wA(e){return e.split(`
`).map(t=>vA(t)).filter(Rw)}function xA(e){return e.split(`
`).map(t=>yA(t)).filter(Rw)}class kA{_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=SA(),this.url=r,this.resolvedSources=(c||[]).map(f=>Pw(f||"",r))}}function SA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function _A(e,t){const r=hA(e,t);return r.column==null?null:r}const TA=/^[A-Za-z]:\//;function zw(e=""){return e&&e.replace(/\\/g,"/").replace(TA,t=>t.toUpperCase())}const CA=/^[/\\]{2}/,EA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,AA=/^[A-Za-z]:$/,Qv=/^\/([A-Za-z]:)?$/,LA=function(e){if(e.length===0)return".";e=zw(e);const t=e.match(CA),r=xu(e),o=e[e.length-1]==="/";return e=Fw(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),AA.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!xu(e)?`/${e}`:e)},MA=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return LA(t)};function NA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ey=function(...e){e=e.map(o=>zw(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:NA();!s||s.length===0||(t=`${s}/${t}`,r=xu(s))}return t=Fw(t,!r),r&&!xu(t)?`/${t}`:t.length>0?t:"."};function Fw(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const xu=function(e){return EA.test(e)},af=function(e,t){const r=ey(e).replace(Qv,"$1").split("/"),o=ey(t).replace(Qv,"$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 OA(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 Hw(e,t,r,o,s){const c=af(t,e),f={id:RA(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function RA(e,t){return OA(`${e}${t||""}`)}function Js(e){return e.type==="test"}function Bw(e){const t=[],r=pp(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=Bw(s);for(const f of c)t.push(f)}return t}function gp(e=[]){return pp(e).flatMap(t=>Js(t)?[t]:[t,...gp(t.tasks)])}function PA(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 ty="q",ny="s",$A=6e4;function Ww(e){return e}const IA=Ww,{clearTimeout:ry,setTimeout:DA}=globalThis,zA=Math.random.bind(Math);function FA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Ww,deserialize:d=IA,resolver:h,bind:p="rpc",timeout:g=$A}=t;let v=!1;const b=new Map;let x;async function E(ee,Y,G,W){if(v)throw new Error(`[birpc] rpc is closed, cannot call "${ee}"`);const L={m:ee,a:Y,t:ty};W&&(L.o=!0);const O=async Se=>r(f(Se));if(G){await O(L);return}if(x)try{await x}finally{x=void 0}let{promise:C,resolve:k,reject:D}=HA();const B=WA();L.i=B;let ae;async function be(Se=L){return g>=0&&(ae=DA(()=>{try{if(t.onTimeoutError?.(ee,Y)!==!0)throw new Error(`[birpc] timeout on calling "${ee}"`)}catch(He){D(He)}b.delete(B)},g),typeof ae=="object"&&(ae=ae.unref?.())),b.set(B,{resolve:k,reject:D,timeoutId:ae,method:ee}),await O(Se),C}try{t.onRequest?await t.onRequest(L,be,k):await be()}catch(Se){if(t.onGeneralError?.(Se)!==!0)throw Se;return}finally{ry(ae),b.delete(B)}return C}const $={$call:(ee,...Y)=>E(ee,Y,!1),$callOptional:(ee,...Y)=>E(ee,Y,!1,!0),$callEvent:(ee,...Y)=>E(ee,Y,!0),$callRaw:ee=>E(ee.method,ee.args,ee.event,ee.optional),$rejectPendingCalls:j,get $closed(){return v},$close:z,$functions:e},_=new Proxy({},{get(ee,Y){if(Object.prototype.hasOwnProperty.call($,Y))return $[Y];if(Y==="then"&&!c.includes("then")&&!("then"in e))return;const G=(...L)=>E(Y,L,!0);if(c.includes(Y))return G.asEvent=G,G;const W=(...L)=>E(Y,L,!1);return W.asEvent=G,W}});function z(ee){v=!0,b.forEach(({reject:Y,method:G})=>{const W=new Error(`[birpc] rpc is closed, cannot call "${G}"`);if(ee)return ee.cause??=W,Y(ee);Y(W)}),b.clear(),s(le)}function j(ee){const G=Array.from(b.values()).map(({method:W,reject:L})=>ee?ee({method:W,reject:L}):L(new Error(`[birpc]: rejected pending call "${W}".`)));return b.clear(),G}async function le(ee,...Y){let G;try{G=d(ee)}catch(W){if(t.onGeneralError?.(W)!==!0)throw W;return}if(G.t===ty){const{m:W,a:L,o:O}=G;let C,k,D=await(h?h(W,e[W]):e[W]);if(O&&(D||=()=>{}),!D)k=new Error(`[birpc] function "${W}" not found`);else try{C=await D.apply(p==="rpc"?_:e,L)}catch(B){k=B}if(G.i){if(k&&t.onError&&t.onError(k,W,L),k&&t.onFunctionError&&t.onFunctionError(k,W,L)===!0)return;if(!k)try{await r(f({t:ny,i:G.i,r:C}),...Y);return}catch(B){if(k=B,t.onGeneralError?.(B,W,L)!==!0)throw B}try{await r(f({t:ny,i:G.i,e:k}),...Y)}catch(B){if(t.onGeneralError?.(B,W,L)!==!0)throw B}}}else{const{i:W,r:L,e:O}=G,C=b.get(W);C&&(ry(C.timeoutId),O?C.reject(O):C.resolve(L)),b.delete(W)}}return x=o(le),_}function HA(){let e,t;return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const BA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function WA(e=21){let t="",r=e;for(;r--;)t+=BA[zA()*64|0];return t}const{parse:qw,stringify:qA}=JSON,{keys:jA}=Object,ka=String,jw="string",iy={},ku="object",Uw=(e,t)=>t,UA=e=>e instanceof ka?ka(e):e,VA=(e,t)=>typeof t===jw?new ka(t):t,Vw=(e,t,r,o)=>{const s=[];for(let c=jA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ka){const g=e[p];typeof g===ku&&!t.has(g)?(t.add(g),r[h]=iy,s.push({k:h,a:[e,t,g,o]})):r[h]=o.call(r,h,g)}else r[h]!==iy&&(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,Vw.apply(null,h))}return r},oy=(e,t,r)=>{const o=ka(t.push(r)-1);return e.set(r,o),o},fh=(e,t)=>{const r=qw(e,VA).map(UA),o=r[0],s=t||Uw,c=typeof o===ku&&o?Vw(r,new Set,o,s):o;return s.call({"":c},"",c)},Gw=(e,t,r)=>{const o=t&&typeof t===ku?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||Uw,s=new Map,c=[],f=[];let d=+oy(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=qA(c[d++],p,r);return"["+f.join(",")+"]";function p(g,v){if(h)return h=!h,v;const b=o.call(this,g,v);switch(typeof b){case ku:if(b===null)return b;case jw:return s.get(b)||oy(s,c,b)}return b}},GA=e=>qw(Gw(e));class Kw{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=Hw(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 KA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=P=>P,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new Kw,waitForConnection:N,reconnect:M},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(P,$){r.onTestAnnotate?.(P,$)},onTestArtifactRecord(P,$){r.onTestArtifactRecord?.(P,$)},onSpecsCollected(P,$){P?.forEach(([_,z])=>{g.state.clearFiles({config:_},[z])}),r.onSpecsCollected?.(P,$)},onPathsCollected(P){g.state.collectPaths(P),r.onPathsCollected?.(P)},onCollected(P){g.state.collectFiles(P),r.onCollected?.(P)},onTaskUpdate(P,$){g.state.updateTasks(P),r.onTaskUpdate?.(P,$)},onUserConsoleLog(P){g.state.updateUserLog(P),r.onUserConsoleLog?.(P)},onFinished(P,$,_,z){r.onFinished?.(P,$,_,z)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:P=>g.ws.send(P),on:P=>v=P,serialize:P=>Gw(P,($,_)=>_ instanceof Error?{name:_.name,message:_.message,stack:_.stack}:_),deserialize:fh,timeout:-1};g.rpc=FA(b,x);let E;function M(P=!1){P&&(p=c),g.ws=new h(e),R()}function R(){E=new Promise((P,$)=>{const _=setTimeout(()=>{$(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&P(),g.ws.addEventListener("open",()=>{p=c,P(),clearTimeout(_)})}),g.ws.addEventListener("message",P=>{v(P.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(M,s)})}R();function N(){return E}return g}const dh=Ft([]),Jn=Ft([]),Dr=sf("vitest-ui_task-tree-opened",[],{shallow:!0}),Su=ke(()=>new Set(Dr.value)),gn=sf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Vn=Ge(gn.value.search),XA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Xw(e){return e.replace(/[&<>"']/g,t=>XA[t])}const YA=ke(()=>{const e=Vn.value.toLowerCase();return e.length?new RegExp(`(${Xw(e)})`,"gi"):null}),Yw=ke(()=>Vn.value.trim()!==""),it=ir({failed:gn.value.failed,success:gn.value.success,skipped:gn.value.skipped,onlyTests:gn.value.onlyTests}),hh=ke(()=>!!(it.failed||it.success||it.skipped)),cf=Ft([]),Qs=Ge(!1),sy=ke(()=>{const e=gn.value.expandAll;return Dr.value.length>0?e!==!0:e!==!1}),ZA=ke(()=>{const e=Yw.value,t=hh.value,r=it.onlyTests,o=Oe.summary.filesFailed,s=Oe.summary.filesSuccess,c=Oe.summary.filesSkipped,f=Oe.summary.filesRunning,d=cf.value;return Oe.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ha(e){return Object.hasOwn(e,"tasks")}function JA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Fo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Ed(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function QA(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Zw(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 eL(e){return Zw(e).raw}function Xc(e){if(e>=500)return"danger";if(e>=100)return"warning"}function _u(e){const t=Xc(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Jw(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 Qw(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 tL(e){return e.type==="test"}function nL(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Ci(e){return e.type==="file"||e.type==="suite"}function rL(e=Oe.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function Sa(e,t=!1){let r=Oe.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Su.value.size>0&&Su.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Oe.colors.get(e.projectName||"")||Jw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Oe.nodes.set(e.id,r),Oe.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ba(e.id,e.tasks[o],!0)}function ex(e,t){const r=Oe.nodes.get(e);if(!r||!Ci(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Ha(o)))return Ba(r.parentId,o,t&&o.tasks.length>0),[r,o]}function iL(e){const t=Oe.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!Js(r)||Ba(t.parentId,r,!1)}function Ba(e,t,r){const o=Oe.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Oe.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(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:Su.value.size>0&&Su.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Oe.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ha(t)))for(let f=0;f<t.tasks.length;f++)Ba(s.id,t.tasks[f],r)}function oL(e){const t=Oe.nodes.get(e);if(!t||!Ci(t))return;const r=new Set(Dr.value);r.delete(t.id);const o=[...lL(t)];Dr.value=Array.from(r),Jn.value=o}function sL(){ph(Oe.root.tasks);const e=[...Jn.value.filter(In)];ph(e),Dr.value=[],gn.value.expandAll=!0,Jn.value=e}function ph(e){for(const t of e)Ci(t)&&(t.expanded=!1,ph(t.tasks))}function*tx(e,t){if(t&&(yield e.id),Ci(e))for(let r=0;r<e.tasks.length;r++)yield*tx(e.tasks[r],!0)}function*lL(e){const t=e.id,r=new Set(tx(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const uf=Ge("idle"),Ms=ke(()=>uf.value==="idle"),eo=Ge([]);function aL(e,t,r){return e?ix(e,t,r):!1}function mp(e,t){const r=[...nx(e,t)];Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function*nx(e,t){for(const r of rL())yield*rx(r,e,t)}function*rx(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of gh(e,o,x=>ly(x,t,r)))c.push([v,b]);else{for(const[v,b]of gh(e,o,x=>ly(x,t,r)))Ci(b)?(s.set(b.id,v),In(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...uL(c,r.onlyTests,o,d,f)].reverse(),p=Oe.nodes,g=new Set(h.filter(v=>In(v)||Ci(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>In(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function cL(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*uL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Ci(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Oe.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Oe.nodes.get(p.parentId);yield d;continue}if(h){const p=cL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Oe.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function fL(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 ix(e,t,r){if(t.length===0||JA(e.name,t))if(r.success||r.failed||r.skipped){if(fL(e,r))return!0}else return!0;return!1}function*gh(e,t,r){const o=r(e);if(o)if(tL(e)){let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}if(yield[o,e],Ci(e))for(let s=0;s<e.tasks.length;s++)yield*gh(e.tasks[s],t,r)}function ly(e,t,r){const o=ft.state.idMap.get(e.id);return o?ix(o,t,r):!1}function dL(e,t,r){const o=ex(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ba(s.id,p,!1);s.expanded=!0;const f=new Set(Dr.value);f.add(s.id);const d=new Set(rx(s,t,r)),h=[...gL(s,d)];Dr.value=Array.from(f),Jn.value=h}function hL(e,t){vp(Oe.root.tasks,!1);const r=[...nx(e,t)];gn.value.expandAll=!1,Dr.value=[],Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function pL(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&vp(Jn.value.filter(In),!0)}function vp(e,t){for(const r of e)Ci(r)&&(r.expanded=!0,vp(r.tasks,!1));t&&(gn.value.expandAll=!1,Dr.value=[])}function*gL(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function yp(e){return Bw(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function mL(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Sa(s,t)),dh.value=[...Oe.root.tasks],mp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function vL(e){queueMicrotask(()=>{const t=Oe.pendingTasks,r=ft.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function yL(e,t){const r=Oe.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function ay(e,t,r,o,s,c){e&&_L(r);const f=!e;queueMicrotask(()=>{t?xL(f):kL(f)}),queueMicrotask(()=>{TL(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=dh.value&&yp(dh.value.map(d=>mr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{SL(o,s,t)})}function*bL(){yield*Jn.value.filter(nL)}function wL(){const e=ft.state.idMap;let t;for(const r of bL())t=e.get(r.parentId),t&&Ha(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function xL(e){const t=ft.state.getFiles(),r=Oe.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Sa(o[c],e),Tu(o[c].tasks);const s=Oe.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=mr(f.id);!d||(Sa(d,e),!d.tasks?.length)||Tu(d.tasks)}}function kL(e){const t=new Map(Oe.pendingTasks.entries());Oe.pendingTasks.clear();const r=Oe.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>mr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Sa(s,!1),Tu(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Oe.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=mr(h.id);if(!p)continue;const g=t.get(p.id);g&&(Sa(p,e),Tu(Array.from(g,v=>c.get(v)).filter(Boolean)))}}function SL(e,t,r=!1){const o=gn.value.expandAll,s=o!==!0,c=new Set(Dr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{cy(e,t,r)}),Qs.value||queueMicrotask(()=>{(Jn.value.length||r)&&(Qs.value=!0)}),f&&(queueMicrotask(()=>{pL(c,r),s&&(gn.value.expandAll=!1)}),queueMicrotask(()=>{cy(e,t,r)}))}function cy(e,t,r){mp(e,t),r&&(wL(),uf.value="idle")}function Tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ha(t)?ex(t.id,!0):iL(t.id)}function _L(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 TL(e,t){const r=ft.state.idMap,o=new Map(Oe.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,mr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:x}=ox(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,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 ox(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of sx(e))(!r||aL(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 CL(e,t,r,o,s,c){if(t)return r.map(f=>ox(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*sx(e){const t=pp(e);let r;for(let o=0;o<t.length;o++)r=t[o],Js(r)?yield r:yield*sx(r.tasks)}class EL{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=EE(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])),mL(t,!0,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){yL(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){vL(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(()=>{ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return CL(t,r,o,s,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}collapseNode(t){queueMicrotask(()=>{oL(t)})}expandNode(t){queueMicrotask(()=>{dL(t,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{sL()})}expandAllNodes(){queueMicrotask(()=>{hL(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}filterNodes(){queueMicrotask(()=>{mp(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}}const Oe=new EL;function lx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},AL=Yc.exports,uy;function vo(){return uy||(uy=1,(function(e,t){(function(r,o){e.exports=o()})(AL,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],E=/Opera\//.test(r),M=/Apple Computer/.test(navigator.vendor),R=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),N=/PhantomJS/.test(r),P=M&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),$=/Android/.test(r),_=P||$||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),z=P||/Mac/.test(o),j=/\bCrOS\b/.test(r),le=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,g=!0);var Y=z&&(v||E&&(ee==null||ee<12.11)),G=s||h&&p>=9;function W(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var L=function(n,i){var a=n.className,l=W(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 C(n,i){return O(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)u.appendChild(i[m]);return u}function D(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var B;document.createRange?B=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:B=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ae(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function be(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Se(n,i){var a=n.className;W(i).test(a)||(n.className+=(a?" ":"")+i)}function He(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!W(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ae=function(n){n.select()};P?Ae=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ae=function(n){try{n.select()}catch{}});function Ke(n){return n.display.wrapper.ownerDocument}function je(n){return Fe(n.display.wrapper)}function Fe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Re(n){return Ke(n).defaultView}function F(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Z(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function ne(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var m=l||0,y=u||0;;){var w=n.indexOf(" ",m);if(w<0||w>=i)return y+(i-m);y+=w-m,y+=a-y%a,m=w+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};se.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},se.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ce(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,q={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},he={origin:"*mouse"},de={origin:"+move"};function ge(n,i,a){for(var l=0,u=0;;){var m=n.indexOf(" ",l);m==-1&&(m=n.length);var y=m-l;if(m==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function J(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function ue(){}function ie(n,i){var a;return Object.create?a=Object.create(n):(ue.prototype=n,a=new ue),i&&Z(i,a),a}var $e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||$e.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Je(n)?!0:i.test(n):Je(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Yt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;m<n.length;++m){var y=n[m];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",m),u=!0)}u||l(i,a,"ltr")}var Hr=null;function Bt(n,i,a){var l;Hr=null;for(var u=0;u<n.length;++u){var m=n[u];if(m.from<i&&m.to>i)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Hr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Hr=u)}return l??Hr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function S(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var oe=T.length,te=[],pe=0;pe<oe;++pe)te.push(a(T.charCodeAt(pe)));for(var we=0,Te=V;we<oe;++we){var Le=te[we];Le=="m"?te[we]=Te:Te=Le}for(var De=0,Me=V;De<oe;++De){var ze=te[De];ze=="1"&&Me=="r"?te[De]="n":m.test(ze)&&(Me=ze,ze=="r"&&(te[De]="R"))}for(var Ye=1,Ue=te[0];Ye<oe-1;++Ye){var st=te[Ye];st=="+"&&Ue=="1"&&te[Ye+1]=="1"?te[Ye]="1":st==","&&Ue==te[Ye+1]&&(Ue=="1"||Ue=="n")&&(te[Ye]=Ue),Ue=st}for(var St=0;St<oe;++St){var tn=te[St];if(tn==",")te[St]="N";else if(tn=="%"){var Ot=void 0;for(Ot=St+1;Ot<oe&&te[Ot]=="%";++Ot);for(var qn=St&&te[St-1]=="!"||Ot<oe&&te[Ot]=="1"?"1":"N",Cn=St;Cn<Ot;++Cn)te[Cn]=qn;St=Ot-1}}for(var Ut=0,En=V;Ut<oe;++Ut){var sn=te[Ut];En=="L"&&sn=="1"?te[Ut]="L":m.test(sn)&&(En=sn)}for(var Kt=0;Kt<oe;++Kt)if(u.test(te[Kt])){var Vt=void 0;for(Vt=Kt+1;Vt<oe&&u.test(te[Vt]);++Vt);for(var It=(Kt?te[Kt-1]:V)=="L",An=(Vt<oe?te[Vt]:V)=="L",ks=It==An?It?"L":"R":V,ji=Kt;ji<Vt;++ji)te[ji]=ks;Kt=Vt-1}for(var fn=[],Ur,nn=0;nn<oe;)if(y.test(te[nn])){var cd=nn;for(++nn;nn<oe&&y.test(te[nn]);++nn);fn.push(new S(0,cd,nn))}else{var ui=nn,Ao=fn.length,Lo=H=="rtl"?1:0;for(++nn;nn<oe&&te[nn]!="L";++nn);for(var yn=ui;yn<nn;)if(w.test(te[yn])){ui<yn&&(fn.splice(Ao,0,new S(1,ui,yn)),Ao+=Lo);var Ss=yn;for(++yn;yn<nn&&w.test(te[yn]);++yn);fn.splice(Ao,0,new S(2,Ss,yn)),Ao+=Lo,ui=yn}else++yn;ui<nn&&fn.splice(Ao,0,new S(1,ui,nn))}return H=="ltr"&&(fn[0].level==1&&(Ur=T.match(/^\s+/))&&(fn[0].from=Ur[0].length,fn.unshift(new S(0,0,Ur[0].length))),xe(fn).level==1&&(Ur=T.match(/\s+$/))&&(xe(fn).to-=Ur[0].length,fn.push(new S(0,oe-Ur[0].length,oe)))),H=="rtl"?fn.reverse():fn}})();function lt(n,i){var a=n.order;return a==null&&(a=n.order=Hn(n.text,i)),a}var yo=[],Xe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||yo).concat(a)}};function ri(n,i){return n._handlers&&n._handlers[i]||yo}function an(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var m=ce(u,a);m>-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function Rt(n,i){var a=ri(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Pt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Rt(n,a||i.type,n,i),kn(i)||i.codemirrorIgnore}function ar(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)ce(a,i[l])==-1&&a.push(i[l])}function Bn(n,i){return ri(n,i).length>0}function yr(n){n.prototype.on=function(i,a){Xe(this,i,a)},n.prototype.off=function(i,a){an(this,i,a)}}function cn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Zo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function kn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Oi(n){cn(n),Zo(n)}function sl(n){return n.target||n.srcElement}function br(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),z&&n.ctrlKey&&i==1&&(i=3),i}var mf=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),Jo;function Ga(n){if(Jo==null){var i=k("span","");C(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Jo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Jo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ll;function Ri(n){if(ll!=null)return ll;var i=C(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:ll=l.right-a.right<3}var cr=`
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
`,i);u==-1&&(u=n.length);var m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Pi=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ka=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),wr=null;function vf(n){if(wr!=null)return wr;var i=C(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return wr=Math.abs(a.left-l.left)>1}var Qo={},xr={};function kr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Qo[n]=i}function bo(n,i){xr[n]=i}function es(n){if(typeof n=="string"&&xr.hasOwnProperty(n))n=xr[n];else if(n&&typeof n.name=="string"&&xr.hasOwnProperty(n.name)){var i=xr[n.name];typeof i=="string"&&(i={name:i}),n=ie(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return es("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return es("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function ts(n,i){i=es(i);var a=Qo[i.name];if(!a)return ts(n,"text/plain");var l=a(n,i);if($i.hasOwnProperty(i.name)){var u=$i[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var $i={};function ns(n,i){var a=$i.hasOwnProperty(n)?$i[n]:$i[n]={};Z(i,a)}function Br(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function al(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 rs(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return ne(this.string,null,this.tabSize)-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var m=this.string.slice(this.pos).match(n);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function qe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],m=u.chunkSize();if(i<m){a=u;break}i-=m}return a.lines[i]}function ii(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(m){var y=m.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function cl(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Qn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function A(n){if(n.parent==null)return null;for(var i=n.parent,a=ce(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function U(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],m=u.height;if(i<m){n=u;continue e}i-=m,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var w=n.lines[y],S=w.height;if(i<S)break;i-=S}return a+y}function me(n,i){return i>=n.first&&i<n.first+n.size}function _e(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function fe(n,i,a){if(a===void 0&&(a=null),!(this instanceof fe))return new fe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ie(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ie(n,i)==0}function Zt(n){return fe(n.line,n.ch)}function Sn(n,i){return Ie(n,i)<0?i:n}function is(n,i){return Ie(n,i)<0?n:i}function Wp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function tt(n,i){if(i.line<n.first)return fe(n.first,0);var a=n.first+n.size-1;return i.line>a?fe(a,qe(n,a).text.length):$1(i,qe(n,i.line).text.length)}function $1(n,i){var a=n.ch;return a==null||a>i?fe(n.line,i):a<0?fe(n.line,0):n}function qp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=tt(n,i[l]);return a}var Xa=function(n,i){this.state=n,this.lookAhead=i},Wr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Wr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Wr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(n,i,a){return i instanceof Xa?new Wr(n,Br(n.mode,i.state),a,i.lookAhead):new Wr(n,Br(n.mode,i),a)},Wr.prototype.save=function(n){var i=n!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xa(i,this.maxLookAhead):i};function jp(n,i,a,l){var u=[n.state.modeGen],m={};Yp(n,i.text,n.doc.mode,a,function(T,H){return u.push(T,H)},m,l);for(var y=a.state,w=function(T){a.baseTokens=u;var H=n.state.overlays[T],V=1,oe=0;a.state=!0,Yp(n,i.text,H.mode,a,function(te,pe){for(var we=V;oe<te;){var Te=u[V];Te>te&&u.splice(V,1,te,u[V+1],Te),V+=2,oe=Math.min(te,Te)}if(pe)if(H.opaque)u.splice(we,V-we,te,"overlay "+pe),V=we+2;else for(;we<V;we+=2){var Le=u[we+1];u[we+1]=(Le?Le+" ":"")+"overlay "+pe}},m),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)w(S);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function Up(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=ul(n,A(i)),u=i.text.length>n.options.maxHighlightLength&&Br(n.doc.mode,l.state),m=jp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function ul(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Wr(l,!0,i);var m=I1(n,i,a),y=m>l.first&&qe(l,m-1).stateAfter,w=y?Wr.fromSaved(l,y,m):new Wr(l,rs(l.mode),m);return l.iter(m,i,function(S){yf(n,S.text,w);var T=w.line;S.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&T<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function yf(n,i,a,l){var u=n.doc.mode,m=new $t(i,n.options.tabSize,a);for(m.start=m.pos=l||0,i==""&&Vp(u,a.state);!m.eol();)bf(u,m,a.state),m.start=m.pos}function Vp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=al(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function bf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=al(n,a).mode);var m=n.token(i,a);if(i.pos>i.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var Gp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Kp(n,i,a,l){var u=n.doc,m=u.mode,y;i=tt(u,i);var w=qe(u,i.line),S=ul(n,i.line,a),T=new $t(w.text,n.options.tabSize,S),H;for(l&&(H=[]);(l||T.pos<i.ch)&&!T.eol();)T.start=T.pos,y=bf(m,T,S.state),l&&H.push(new Gp(T,y,Br(u.mode,S.state)));return l?H:new Gp(T,y,S.state)}function Xp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function Yp(n,i,a,l,u,m,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var S=0,T=null,H=new $t(i,n.options.tabSize,l),V,oe=n.options.addModeClass&&[null];for(i==""&&Xp(Vp(a,l.state),m);!H.eol();){if(H.pos>n.options.maxHighlightLength?(w=!1,y&&yf(n,i,l,H.pos),H.pos=i.length,V=null):V=Xp(bf(a,H,l.state,oe),m),oe){var te=oe[0].name;te&&(V="m-"+(V?te+" "+V:te))}if(!w||T!=V){for(;S<H.start;)S=Math.min(H.start,S+5e3),u(S,T);T=V}H.start=H.pos}for(;S<H.pos;){var pe=Math.min(H.pos,S+5e3);u(pe,T),S=pe}}function I1(n,i,a){for(var l,u,m=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=m.first)return m.first;var S=qe(m,w-1),T=S.stateAfter;if(T&&(!a||w+(T instanceof Xa?T.lookAhead:0)<=m.modeFrontier))return w;var H=ne(S.text,null,n.options.tabSize);(u==null||l>H)&&(u=w-1,l=H)}return u}function D1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=qe(n,l).stateAfter;if(u&&(!(u instanceof Xa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Zp=!1,oi=!1;function z1(){Zp=!0}function F1(){oi=!0}function Ya(n,i,a){this.marker=n,this.from=i,this.to=a}function fl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function H1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function B1(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 W1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,w=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);if(w||m.from==i&&y.type=="bookmark"&&(!a||!m.marker.insertLeft)){var S=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new Ya(y,m.from,S?null:m.to))}}return l}function q1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,w=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);if(w||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var S=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new Ya(y,S?null:m.from-i,m.to==null?null:m.to-i))}}return l}function wf(n,i){if(i.full)return null;var a=me(n,i.from.line)&&qe(n,i.from.line).markedSpans,l=me(n,i.to.line)&&qe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,m=i.to.ch,y=Ie(i.from,i.to)==0,w=W1(a,u,y),S=q1(l,m,y),T=i.text.length==1,H=xe(i.text).length+(T?u:0);if(w)for(var V=0;V<w.length;++V){var oe=w[V];if(oe.to==null){var te=fl(S,oe.marker);te?T&&(oe.to=te.to==null?null:te.to+H):oe.to=u}}if(S)for(var pe=0;pe<S.length;++pe){var we=S[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=fl(w,we.marker);Te||(we.from=H,T&&(w||(w=[])).push(we))}else we.from+=H,T&&(w||(w=[])).push(we)}w&&(w=Jp(w)),S&&S!=w&&(S=Jp(S));var Le=[w];if(!T){var De=i.text.length-2,Me;if(De>0&&w)for(var ze=0;ze<w.length;++ze)w[ze].to==null&&(Me||(Me=[])).push(new Ya(w[ze].marker,null,null));for(var Ye=0;Ye<De;++Ye)Le.push(Me);Le.push(S)}return Le}function Jp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function j1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(te){if(te.markedSpans)for(var pe=0;pe<te.markedSpans.length;++pe){var we=te.markedSpans[pe].marker;we.readOnly&&(!l||ce(l,we)==-1)&&(l||(l=[])).push(we)}}),!l)return null;for(var u=[{from:i,to:a}],m=0;m<l.length;++m)for(var y=l[m],w=y.find(0),S=0;S<u.length;++S){var T=u[S];if(!(Ie(T.to,w.from)<0||Ie(T.from,w.to)>0)){var H=[S,1],V=Ie(T.from,w.from),oe=Ie(T.to,w.to);(V<0||!y.inclusiveLeft&&!V)&&H.push({from:T.from,to:w.from}),(oe>0||!y.inclusiveRight&&!oe)&&H.push({from:w.to,to:T.to}),u.splice.apply(u,H),S+=H.length-3}}return u}function Qp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function eg(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Za(n){return n.inclusiveLeft?-1:0}function Ja(n){return n.inclusiveRight?1:0}function xf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),m=Ie(l.from,u.from)||Za(n)-Za(i);if(m)return-m;var y=Ie(l.to,u.to)||Ja(n)-Ja(i);return y||i.id-n.id}function tg(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=void 0,m=0;m<a.length;++m)u=a[m],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||xf(l,u.marker)<0)&&(l=u.marker);return l}function ng(n){return tg(n,!0)}function Qa(n){return tg(n,!1)}function U1(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var m=a[u];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||xf(l,m.marker)<0)&&(l=m.marker)}return l}function rg(n,i,a,l,u){var m=qe(n,i),y=oi&&m.markedSpans;if(y)for(var w=0;w<y.length;++w){var S=y[w];if(S.marker.collapsed){var T=S.marker.find(0),H=Ie(T.from,a)||Za(S.marker)-Za(u),V=Ie(T.to,l)||Ja(S.marker)-Ja(u);if(!(H>=0&&V<=0||H<=0&&V>=0)&&(H<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||H>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Sr(n){for(var i;i=ng(n);)n=i.find(-1,!0).line;return n}function V1(n){for(var i;i=Qa(n);)n=i.find(1,!0).line;return n}function G1(n){for(var i,a;i=Qa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function kf(n,i){var a=qe(n,i),l=Sr(a);return a==l?i:A(l)}function ig(n,i){if(i>n.lastLine())return i;var a=qe(n,i),l;if(!Ii(n,a))return i;for(;l=Qa(a);)a=l.find(1,!0).line;return A(a)+1}function Ii(n,i){var a=oi&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Sf(n,i,l))return!0}}}function Sf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Sf(n,l.line,fl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,m=0;m<i.markedSpans.length;++m)if(u=i.markedSpans[m],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Sf(n,i,u))return!0}function si(n){n=Sr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var m=a.parent;m;a=m,m=a.parent)for(var y=0;y<m.children.length;++y){var w=m.children[y];if(w==a)break;i+=w.height}return i}function ec(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=ng(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Qa(l);){var m=a.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function _f(n){var i=n.display,a=n.doc;i.maxLine=qe(a,a.first),i.maxLineLength=ec(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=ec(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var os=function(n,i,a){this.text=n,eg(this,i),this.height=a?a(this):1};os.prototype.lineNo=function(){return A(this)},yr(os);function K1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Qp(n),eg(n,a);var u=l?l(n):1;u!=n.height&&Qn(n,u)}function X1(n){n.parent=null,Qp(n)}var Y1={},Z1={};function og(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?Z1:Y1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function sg(n,i){var a=D("span",null,null,g?"padding-right: .1px":null),l={pre:D("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=Q1,Ri(n.display.measure)&&(y=lt(m,n.doc.direction))&&(l.addToken=tk(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&A(m);nk(m,l,Up(n,m,w)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=He(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=He(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ga(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(g){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Rt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=He(l.pre.className,l.textClass||"")),l}function J1(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Q1(n,i,a,l,u,m,y){if(i){var w=n.splitSpaces?ek(i,n.trailingSpace):i,S=n.cm.state.specialChars,T=!1,H;if(!S.test(i))n.col+=i.length,H=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,H),h&&p<9&&(T=!0),n.pos+=i.length;else{H=document.createDocumentFragment();for(var V=0;;){S.lastIndex=V;var oe=S.exec(i),te=oe?oe.index-V:i.length-V;if(te){var pe=document.createTextNode(w.slice(V,V+te));h&&p<9?H.appendChild(k("span",[pe])):H.appendChild(pe),n.map.push(n.pos,n.pos+te,pe),n.col+=te,n.pos+=te}if(!oe)break;V+=te+1;var we=void 0;if(oe[0]==" "){var Te=n.cm.options.tabSize,Le=Te-n.col%Te;we=H.appendChild(k("span",Ee(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Le}else oe[0]=="\r"||oe[0]==`
`?(we=H.appendChild(k("span",oe[0]=="\r"?"␍":"␤","cm-invalidchar")),we.setAttribute("cm-text",oe[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(oe[0]),we.setAttribute("cm-text",oe[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Me=k("span",[H],De,m);if(y)for(var ze in y)y.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Me.setAttribute(ze,y[ze]);return n.content.appendChild(Me)}n.content.appendChild(H)}}function ek(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var m=n.charAt(u);m==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(m=" "),l+=m,a=m==" "}return l}function tk(n,i){return function(a,l,u,m,y,w,S){u=u?u+" cm-force-border":"cm-force-border";for(var T=a.pos,H=T+l.length;;){for(var V=void 0,oe=0;oe<i.length&&(V=i[oe],!(V.to>T&&V.from<=T));oe++);if(V.to>=H)return n(a,l,u,m,y,w,S);n(a,l.slice(0,V.to-T),u,m,null,w,S),m=null,l=l.slice(V.to-T),T=V.to}}}function lg(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function nk(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(m,m=a[y]),og(a[y+1],i.cm.options));return}for(var w=u.length,S=0,T=1,H="",V,oe,te=0,pe,we,Te,Le,De;;){if(te==S){pe=we=Te=oe="",De=null,Le=null,te=1/0;for(var Me=[],ze=void 0,Ye=0;Ye<l.length;++Ye){var Ue=l[Ye],st=Ue.marker;if(st.type=="bookmark"&&Ue.from==S&&st.widgetNode)Me.push(st);else if(Ue.from<=S&&(Ue.to==null||Ue.to>S||st.collapsed&&Ue.to==S&&Ue.from==S)){if(Ue.to!=null&&Ue.to!=S&&te>Ue.to&&(te=Ue.to,we=""),st.className&&(pe+=" "+st.className),st.css&&(oe=(oe?oe+";":"")+st.css),st.startStyle&&Ue.from==S&&(Te+=" "+st.startStyle),st.endStyle&&Ue.to==te&&(ze||(ze=[])).push(st.endStyle,Ue.to),st.title&&((De||(De={})).title=st.title),st.attributes)for(var St in st.attributes)(De||(De={}))[St]=st.attributes[St];st.collapsed&&(!Le||xf(Le.marker,st)<0)&&(Le=Ue)}else Ue.from>S&&te>Ue.from&&(te=Ue.from)}if(ze)for(var tn=0;tn<ze.length;tn+=2)ze[tn+1]==te&&(we+=" "+ze[tn]);if(!Le||Le.from==S)for(var Ot=0;Ot<Me.length;++Ot)lg(i,0,Me[Ot]);if(Le&&(Le.from||0)==S){if(lg(i,(Le.to==null?w+1:Le.to)-S,Le.marker,Le.from==null),Le.to==null)return;Le.to==S&&(Le=!1)}}if(S>=w)break;for(var qn=Math.min(w,te);;){if(H){var Cn=S+H.length;if(!Le){var Ut=Cn>qn?H.slice(0,qn-S):H;i.addToken(i,Ut,V?V+pe:pe,Te,S+Ut.length==te?we:"",oe,De)}if(Cn>=qn){H=H.slice(qn-S),S=qn;break}S=Cn,Te=""}H=u.slice(m,m=a[T++]),V=og(a[T++],i.cm.options)}}}function ag(n,i,a){this.line=i,this.rest=G1(i),this.size=this.rest?A(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ii(n,i)}function tc(n,i,a){for(var l=[],u,m=i;m<a;m=u){var y=new ag(n.doc,qe(n.doc,m),m);u=m+y.size,l.push(y)}return l}var ss=null;function rk(n){ss?ss.ops.push(n):n.ownsGroup=ss={ops:[n],delayedCallbacks:[]}}function ik(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 ok(n,i){var a=n.ownsGroup;if(a)try{ik(a)}finally{ss=null,i(a)}}var dl=null;function Jt(n,i){var a=ri(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;ss?u=ss.delayedCallbacks:dl?u=dl:(u=dl=[],setTimeout(sk,0));for(var m=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)m(y)}}function sk(){var n=dl;dl=null;for(var i=0;i<n.length;++i)n[i]()}function cg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var m=i.changes[u];m=="text"?ak(n,i):m=="gutter"?fg(n,i,a,l):m=="class"?Tf(n,i):m=="widget"&&ck(n,i,l)}i.changes=null}function hl(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function lk(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=hl(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function ug(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):sg(n,i)}function ak(n,i){var a=i.text.className,l=ug(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,Tf(n,i)):a&&(i.text.className=a)}function Tf(n,i){lk(n,i),i.line.wrapClass?hl(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function fg(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=hl(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(n.options.lineNumbers||m){var y=hl(i),w=i.gutter=k("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&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(k("div",_e(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),m)for(var S=0;S<n.display.gutterSpecs.length;++S){var T=n.display.gutterSpecs[S].className,H=m.hasOwnProperty(T)&&m[T];H&&w.appendChild(k("div",[H],"CodeMirror-gutter-elt","left: "+l.gutterLeft[T]+"px; width: "+l.gutterWidth[T]+"px"))}}}function ck(n,i,a){i.alignable&&(i.alignable=null);for(var l=W("CodeMirror-linewidget"),u=i.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);dg(n,i,a)}function uk(n,i,a,l){var u=ug(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Tf(n,i),fg(n,i,a,l),dg(n,i,l),i.node}function dg(n,i,a){if(hg(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)hg(n,i.rest[l],i,a,!1)}function hg(n,i,a,l,u){if(i.widgets)for(var m=hl(a),y=0,w=i.widgets;y<w.length;++y){var S=w[y],T=k("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),fk(S,T,a,l),n.display.input.setUneditable(T),u&&S.above?m.insertBefore(T,a.gutter||a.text):m.appendChild(T),Jt(S,"redraw")}}function fk(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 pl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ae(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),C(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function li(n,i){for(var a=sl(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function nc(n){return n.lineSpace.offsetTop}function Cf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function pg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=C(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function qr(n){return I-n.display.nativeBarWidth}function wo(n){return n.display.scroller.clientWidth-qr(n)-n.display.barWidth}function Ef(n){return n.display.scroller.clientHeight-qr(n)-n.display.barHeight}function dk(n,i,a){var l=n.options.lineWrapping,u=l&&wo(n);if(!i.measure.heights||l&&i.measure.width!=u){var m=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),w=0;w<y.length-1;w++){var S=y[w],T=y[w+1];Math.abs(S.bottom-T.bottom)>2&&m.push((S.bottom+T.top)/2-a.top)}}m.push(a.bottom-a.top)}}function gg(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(A(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function hk(n,i){i=Sr(i);var a=A(i),l=n.display.externalMeasured=new ag(n.doc,i,a);l.lineN=a;var u=l.built=sg(n,l);return l.text=u.pre,C(n.display.lineMeasure,u.pre),l}function mg(n,i,a,l){return jr(n,ls(n,i),a,l)}function Af(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[So(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function ls(n,i){var a=A(i),l=Af(n,a);l&&!l.text?l=null:l&&l.changes&&(cg(n,l,a,Rf(n)),n.curOp.forceUpdate=!0),l||(l=hk(n,i));var u=gg(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function jr(n,i,a,l,u){i.before&&(a=-1);var m=a+(l||""),y;return i.cache.hasOwnProperty(m)?y=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(dk(n,i.view,i.rect),i.hasHeights=!0),y=gk(n,i,a,l),y.bogus||(i.cache[m]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var vg={left:0,right:0,top:0,bottom:0};function yg(n,i,a){for(var l,u,m,y,w,S,T=0;T<n.length;T+=3)if(w=n[T],S=n[T+1],i<w?(u=0,m=1,y="left"):i<S?(u=i-w,m=u+1):(T==n.length-3||i==S&&n[T+3]>i)&&(m=S-w,u=m-1,i>=S&&(y="right")),u!=null){if(l=n[T+2],w==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==S-w)for(;T<n.length-3&&n[T+3]==n[T+4]&&!n[T+5].insertLeft;)l=n[(T+=3)+2],y="right";break}return{node:l,start:u,end:m,collapse:y,coverStart:w,coverEnd:S}}function pk(n,i){var a=vg;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function gk(n,i,a,l){var u=yg(i.map,a,l),m=u.node,y=u.start,w=u.end,S=u.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&ut(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?T=m.parentNode.getBoundingClientRect():T=pk(B(m,y,w).getClientRects(),l),T.left||T.right||y==0)break;w=y,y=y-1,S="right"}h&&p<11&&(T=mk(n.display.measure,T))}else{y>0&&(S=l="right");var V;n.options.lineWrapping&&(V=m.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var oe=m.parentNode.getClientRects()[0];oe?T={left:oe.left,right:oe.left+cs(n.display),top:oe.top,bottom:oe.bottom}:T=vg}for(var te=T.top-i.rect.top,pe=T.bottom-i.rect.top,we=(te+pe)/2,Te=i.view.measure.heights,Le=0;Le<Te.length-1&&!(we<Te[Le]);Le++);var De=Le?Te[Le-1]:0,Me=Te[Le],ze={left:(S=="right"?T.right:T.left)-i.rect.left,right:(S=="left"?T.left:T.right)-i.rect.left,top:De,bottom:Me};return!T.left&&!T.right&&(ze.bogus=!0),n.options.singleCursorHeightPerLine||(ze.rtop=te,ze.rbottom=pe),ze}function mk(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!vf(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function bg(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function wg(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)bg(n.display.view[i])}function gl(n){wg(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function xg(n){return b&&$?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function kg(n){return b&&$?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Lf(n){var i=Sr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=pl(a[u]));return l}function rc(n,i,a,l,u){if(!u){var m=Lf(i);a.top+=m,a.bottom+=m}if(l=="line")return a;l||(l="local");var y=si(i);if(l=="local"?y+=nc(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:kg(Ke(n)));var S=w.left+(l=="window"?0:xg(Ke(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function Sg(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=xg(Ke(n)),u-=kg(Ke(n));else if(a=="local"||!a){var m=n.display.sizer.getBoundingClientRect();l+=m.left,u+=m.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function ic(n,i,a,l,u){return l||(l=qe(n.doc,i.line)),rc(n,l,mg(n,l,i.ch,u),a)}function _r(n,i,a,l,u,m){l=l||qe(n.doc,i.line),u||(u=ls(n,l));function y(pe,we){var Te=jr(n,u,pe,we?"right":"left",m);return we?Te.left=Te.right:Te.right=Te.left,rc(n,l,Te,a)}var w=lt(l,n.doc.direction),S=i.ch,T=i.sticky;if(S>=l.text.length?(S=l.text.length,T="before"):S<=0&&(S=0,T="after"),!w)return y(T=="before"?S-1:S,T=="before");function H(pe,we,Te){var Le=w[we],De=Le.level==1;return y(Te?pe-1:pe,De!=Te)}var V=Bt(w,S,T),oe=Hr,te=H(S,V,T=="before");return oe!=null&&(te.other=H(S,oe,T!="before")),te}function _g(n,i){var a=0;i=tt(n.doc,i),n.options.lineWrapping||(a=cs(n.display)*i.ch);var l=qe(n.doc,i.line),u=si(l)+nc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Mf(n,i,a,l,u){var m=fe(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function Nf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Mf(l.first,0,null,-1,-1);var u=U(l,a),m=l.first+l.size-1;if(u>m)return Mf(l.first+l.size-1,qe(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=qe(l,u);;){var w=vk(n,y,u,i,a),S=U1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!S)return w;var T=S.find(1);if(T.line==u)return T;y=qe(l,u=T.line)}}function Tg(n,i,a,l){l-=Lf(i);var u=i.text.length,m=jt(function(y){return jr(n,a,y-1).bottom<=l},u,0);return u=jt(function(y){return jr(n,a,y).top>l},m,u),{begin:m,end:u}}function Cg(n,i,a,l){a||(a=ls(n,i));var u=rc(n,i,jr(n,a,l),"line").top;return Tg(n,i,a,u)}function Of(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function vk(n,i,a,l,u){u-=si(i);var m=ls(n,i),y=Lf(i),w=0,S=i.text.length,T=!0,H=lt(i,n.doc.direction);if(H){var V=(n.options.lineWrapping?bk:yk)(n,i,a,m,H,l,u);T=V.level!=1,w=T?V.from:V.to-1,S=T?V.to:V.from-1}var oe=null,te=null,pe=jt(function(Ye){var Ue=jr(n,m,Ye);return Ue.top+=y,Ue.bottom+=y,Of(Ue,l,u,!1)?(Ue.top<=u&&Ue.left<=l&&(oe=Ye,te=Ue),!0):!1},w,S),we,Te,Le=!1;if(te){var De=l-te.left<te.right-l,Me=De==T;pe=oe+(Me?0:1),Te=Me?"after":"before",we=De?te.left:te.right}else{!T&&(pe==S||pe==w)&&pe++,Te=pe==0?"after":pe==i.text.length?"before":jr(n,m,pe-(T?1:0)).bottom+y<=u==T?"after":"before";var ze=_r(n,fe(a,pe,Te),"line",i,m);we=ze.left,Le=u<ze.top?-1:u>=ze.bottom?1:0}return pe=Yt(i.text,pe,1),Mf(a,pe,Te,Le,l-we)}function yk(n,i,a,l,u,m,y){var w=jt(function(V){var oe=u[V],te=oe.level!=1;return Of(_r(n,fe(a,te?oe.to:oe.from,te?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),S=u[w];if(w>0){var T=S.level!=1,H=_r(n,fe(a,T?S.from:S.to,T?"after":"before"),"line",i,l);Of(H,m,y,!0)&&H.top>y&&(S=u[w-1])}return S}function bk(n,i,a,l,u,m,y){var w=Tg(n,i,l,y),S=w.begin,T=w.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var H=null,V=null,oe=0;oe<u.length;oe++){var te=u[oe];if(!(te.from>=T||te.to<=S)){var pe=te.level!=1,we=jr(n,l,pe?Math.min(T,te.to)-1:Math.max(S,te.from)).right,Te=we<m?m-we+1e9:we-m;(!H||V>Te)&&(H=te,V=Te)}}return H||(H=u[u.length-1]),H.from<S&&(H={from:S,to:H.to,level:H.level}),H.to>T&&(H={from:H.from,to:T,level:H.level}),H}var xo;function as(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(xo==null){xo=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)xo.appendChild(document.createTextNode("x")),xo.appendChild(k("br"));xo.appendChild(document.createTextNode("x"))}C(n.measure,xo);var a=xo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function cs(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");C(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Rf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=m.offsetLeft+m.clientLeft+u,l[w]=m.clientWidth}return{fixedPos:Pf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Pf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Eg(n){var i=as(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/cs(n.display)-3);return function(u){if(Ii(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(m+=u.widgets[y].height);return a?m+(Math.ceil(u.text.length/l)||1)*i:m+i}}function $f(n){var i=n.doc,a=Eg(n);i.iter(function(l){var u=a(l);u!=l.height&&Qn(l,u)})}function ko(n,i,a,l){var u=n.display;if(!a&&sl(i).getAttribute("cm-not-content")=="true")return null;var m,y,w=u.lineSpace.getBoundingClientRect();try{m=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var S=Nf(n,m,y),T;if(l&&S.xRel>0&&(T=qe(n.doc,S.line).text).length==S.ch){var H=ne(T,T.length,n.options.tabSize)-T.length;S=fe(S.line,Math.max(0,Math.round((m-pg(n.display).left)/cs(n.display))-H))}return S}function So(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function _n(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)oi&&kf(n.doc,i)<u.viewTo&&zi(n);else if(a<=u.viewFrom)oi&&ig(n.doc,a+l)>u.viewFrom?zi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)zi(n);else if(i<=u.viewFrom){var m=oc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):zi(n)}else if(a>=u.viewTo){var y=oc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):zi(n)}else{var w=oc(n,i,i,-1),S=oc(n,a,a+l,1);w&&S?(u.view=u.view.slice(0,w.index).concat(tc(n,w.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):zi(n)}var T=u.externalMeasured;T&&(a<T.lineN?T.lineN+=l:i<T.lineN+T.size&&(u.externalMeasured=null))}function Di(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[So(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ce(y,a)==-1&&y.push(a)}}}function zi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function oc(n,i,a,l){var u=So(n,i),m,y=n.display.view;if(!oi||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;m=w+y[u].size-i,u++}else m=w-i;i+=m,a+=m}for(;kf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function wk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=tc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=tc(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(So(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(tc(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,So(n,a)))),l.viewTo=a}function Ag(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function ml(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Lg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var 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 T=S.empty();if(y){var H=y(n,S);H&&If(n,H,u)}else(T||n.options.showCursorWhenSelecting)&&If(n,S.head,u);T||xk(n,S,m)}}return l}function If(n,i,a){var l=_r(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var m=ic(n,i,"div",null,null),y=m.right-m.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(k("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 sc(n,i){return n.top-i.top||n.left-i.left}function xk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=pg(n.display),w=y.left,S=Math.max(l.sizerWidth,wo(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function H(Me,ze,Ye,Ue){ze<0&&(ze=0),ze=Math.round(ze),Ue=Math.round(Ue),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Me+`px;
top: `+ze+"px; width: "+(Ye??S-Me)+`px;
height: `+(Ue-ze)+"px"))}function V(Me,ze,Ye){var Ue=qe(u,Me),st=Ue.text.length,St,tn;function Ot(Ut,En){return ic(n,fe(Me,Ut),"div",Ue,En)}function qn(Ut,En,sn){var Kt=Cg(n,Ue,null,Ut),Vt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?Kt.begin:Kt.end-(/\s/.test(Ue.text.charAt(Kt.end-1))?2:1);return Ot(It,Vt)[Vt]}var Cn=lt(Ue,u.direction);return Fn(Cn,ze||0,Ye??st,function(Ut,En,sn,Kt){var Vt=sn=="ltr",It=Ot(Ut,Vt?"left":"right"),An=Ot(En-1,Vt?"right":"left"),ks=ze==null&&Ut==0,ji=Ye==null&&En==st,fn=Kt==0,Ur=!Cn||Kt==Cn.length-1;if(An.top-It.top<=3){var nn=(T?ks:ji)&&fn,cd=(T?ji:ks)&&Ur,ui=nn?w:(Vt?It:An).left,Ao=cd?S:(Vt?An:It).right;H(ui,It.top,Ao-ui,It.bottom)}else{var Lo,yn,Ss,ud;Vt?(Lo=T&&ks&&fn?w:It.left,yn=T?S:qn(Ut,sn,"before"),Ss=T?w:qn(En,sn,"after"),ud=T&&ji&&Ur?S:An.right):(Lo=T?qn(Ut,sn,"before"):w,yn=!T&&ks&&fn?S:It.right,Ss=!T&&ji&&Ur?w:An.left,ud=T?qn(En,sn,"after"):S),H(Lo,It.top,yn-Lo,It.bottom),It.bottom<An.top&&H(w,It.bottom,null,An.top),H(Ss,An.top,ud-Ss,An.bottom)}(!St||sc(It,St)<0)&&(St=It),sc(An,St)<0&&(St=An),(!tn||sc(It,tn)<0)&&(tn=It),sc(An,tn)<0&&(tn=An)}),{start:St,end:tn}}var oe=i.from(),te=i.to();if(oe.line==te.line)V(oe.line,oe.ch,te.ch);else{var pe=qe(u,oe.line),we=qe(u,te.line),Te=Sr(pe)==Sr(we),Le=V(oe.line,oe.ch,Te?pe.text.length+1:null).end,De=V(te.line,Te?0:null,te.ch).start;Te&&(Le.top<De.top-2?(H(Le.right,Le.top,null,Le.bottom),H(w,De.top,De.left,De.bottom)):H(Le.right,Le.top,De.left-Le.right,Le.bottom)),Le.bottom<De.top&&H(w,Le.bottom,null,De.top)}a.appendChild(m)}function Df(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||us(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Mg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Ff(n))}function zf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&us(n))},100)}function Ff(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,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Df(n))}function us(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Rt(n,"blur",n,i),n.state.focused=!1,L(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function lc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y<i.view.length;y++){var w=i.view[y],S=n.options.lineWrapping,T=void 0,H=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var V=w.node.offsetTop+w.node.offsetHeight;T=V-a,a=V}else{var oe=w.node.getBoundingClientRect();T=oe.bottom-oe.top,!S&&w.text.firstChild&&(H=w.text.firstChild.getBoundingClientRect().right-oe.left-1)}var te=w.line.height-T;if((te>.005||te<-.005)&&(u<l&&(m-=te),Qn(w.line,T),Ng(w.line),w.rest))for(var pe=0;pe<w.rest.length;pe++)Ng(w.rest[pe]);if(H>n.display.sizerWidth){var we=Math.ceil(H/cs(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Ng(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function ac(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-nc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,m=U(i,l),y=U(i,u);if(a&&a.ensure){var w=a.ensure.from.line,S=a.ensure.to.line;w<m?(m=w,y=U(i,si(qe(i,w))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(m=U(i,si(qe(i,S))-n.wrapper.clientHeight),y=S)}return{from:m,to:Math.max(y,m+1)}}function kk(n,i){if(!Pt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!N){var y=k("div","",null,`position: absolute;
top: `+(i.top-a.viewOffset-nc(n.display))+`px;
height: `+(i.bottom-i.top+qr(n)+a.barHeight)+`px;
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 Sk(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,w=_r(n,i),S=!a||a==i?w:_r(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 T=Hf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(yl(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&(_o(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function _k(n,i){var a=Hf(n,i);a.scrollTop!=null&&yl(n,a.scrollTop),a.scrollLeft!=null&&_o(n,a.scrollLeft)}function Hf(n,i){var a=n.display,l=as(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=Ef(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var w=n.doc.height+Cf(a),S=i.top<l,T=i.bottom>w-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+m){var H=Math.min(i.top,(T?w:i.bottom)-m);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,oe=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,te=wo(n)-a.gutters.offsetWidth,pe=i.right-i.left>te;return pe&&(i.right=i.left+te),i.left<10?y.scrollLeft=0:i.left<oe?y.scrollLeft=Math.max(0,i.left+V-(pe?0:10)):i.right>te+oe-3&&(y.scrollLeft=i.right+(pe?0:10)-te),y}function Bf(n,i){i!=null&&(cc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function fs(n){cc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function vl(n,i,a){(i!=null||a!=null)&&cc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Tk(n,i){cc(n),n.curOp.scrollToPos=i}function cc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=_g(n,i.from),l=_g(n,i.to);Og(n,a,l,i.margin)}}function Og(n,i,a,l){var u=Hf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});vl(n,u.scrollLeft,u.scrollTop)}function yl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||qf(n,{top:i}),Rg(n,i,!0),s&&qf(n),xl(n,100))}function Rg(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 _o(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function bl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Cf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+qr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var To=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Xe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Xe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};To.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},To.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},To.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},To.prototype.zeroWidthHack=function(){var n=z&&!R?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new se,this.disableVert=new se},To.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},To.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var wl=function(){};wl.prototype.update=function(){return{bottom:0,right:0}},wl.prototype.setScrollLeft=function(){},wl.prototype.setScrollTop=function(){},wl.prototype.clear=function(){};function ds(n,i){i||(i=bl(n));var a=n.display.barWidth,l=n.display.barHeight;Pg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&lc(n),Pg(n,bl(n)),a=n.display.barWidth,l=n.display.barHeight}function Pg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var $g={native:To,null:wl};function Ig(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&L(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new $g[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Xe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?_o(n,i):yl(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var Ck=0;function Co(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:++Ck,markArrays:null},rk(n.curOp)}function Eo(n){var i=n.curOp;i&&ok(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Ek(a)})}function Ek(n){for(var i=n.ops,a=0;a<i.length;a++)Ak(i[a]);for(var l=0;l<i.length;l++)Lk(i[l]);for(var u=0;u<i.length;u++)Mk(i[u]);for(var m=0;m<i.length;m++)Nk(i[m]);for(var y=0;y<i.length;y++)Ok(i[y])}function Ak(n){var i=n.cm,a=i.display;Pk(i),n.updateMaxLine&&_f(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new uc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Lk(n){n.updatedDisplay=n.mustUpdate&&Wf(n.cm,n.update)}function Mk(n){var i=n.cm,a=i.display;n.updatedDisplay&&lc(i),n.barMeasure=bl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=mg(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+qr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-wo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Nk(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&_o(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==be(je(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&ds(i,n.barMeasure),n.updatedDisplay&&Uf(i,n.barMeasure),n.selectionChanged&&Df(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Mg(n.cm)}function Ok(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Dg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Rg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&_o(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Sk(i,tt(l,n.scrollToPos.from),tt(l,n.scrollToPos.to),n.scrollToPos.margin);kk(i,u)}var m=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(m)for(var w=0;w<m.length;++w)m[w].lines.length||Rt(m[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();Co(n);try{return i()}finally{Eo(n)}}function Qt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Co(n);try{return i.apply(n,arguments)}finally{Eo(n)}}}function vn(n){return function(){if(this.curOp)return n.apply(this,arguments);Co(this);try{return n.apply(this,arguments)}finally{Eo(this)}}}function en(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Co(i);try{return n.apply(this,arguments)}finally{Eo(i)}}}function xl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,F(Rk,n))}function Rk(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ul(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,w=m.text.length>n.options.maxHighlightLength?Br(i.mode,l.state):null,S=jp(n,m,l,!0);w&&(l.state=w),m.styles=S.styles;var T=m.styleClasses,H=S.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var V=!y||y.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),oe=0;!V&&oe<y.length;++oe)V=y[oe]!=m.styles[oe];V&&u.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=n.options.maxHighlightLength&&yf(n,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return xl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var m=0;m<u.length;m++)Di(n,u[m],"text")})}}var uc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ac(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=wo(n),this.force=a,this.dims=Rf(n),this.events=[]};uc.prototype.signal=function(n,i){Bn(n,i)&&this.events.push(arguments)},uc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Rt.apply(null,this.events[n])};function Pk(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=qr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=qr(n)+"px",i.scrollbarsClipped=!0)}function $k(n){if(n.hasFocus())return null;var i=be(je(n));if(!i||!ae(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Re(n).getSelection();l.anchorNode&&l.extend&&ae(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Ik(n){if(!(!n||!n.activeElt||n.activeElt==be(Fe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ae(document.body,n.anchorNode)&&ae(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function Wf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return zi(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Ag(n)==0)return!1;Fg(n)&&(zi(n),i.dims=Rf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<m&&m-a.viewFrom<20&&(m=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),oi&&(m=kf(n.doc,m),y=ig(n.doc,y));var w=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;wk(n,m,y),a.viewOffset=si(qe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Ag(n);if(!w&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=$k(n);return S>4&&(a.lineDiv.style.display="none"),Dk(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Ik(T),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,xl(n,400)),a.updateLineNumbers=null,!0}function Dg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==wo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Cf(n.display)-Ef(n),a.top)}),i.visible=ac(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ac(n.display,n.doc,a));if(!Wf(n,i))break;lc(n);var u=bl(n);ml(n),ds(n,u),Uf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function qf(n,i){var a=new uc(n,i);if(Wf(n,a)){lc(n),Dg(n,a);var l=bl(n);ml(n),ds(n,l),Uf(n,l),a.finish()}}function Dk(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function w(pe){var we=pe.nextSibling;return g&&z&&n.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var S=l.view,T=l.viewFrom,H=0;H<S.length;H++){var V=S[H];if(!V.hidden)if(!V.node||V.node.parentNode!=m){var oe=uk(n,V,T,a);m.insertBefore(oe,y)}else{for(;y!=V.node;)y=w(y);var te=u&&i!=null&&i<=T&&V.lineNumber;V.changes&&(ce(V.changes,"gutter")>-1&&(te=!1),cg(n,V,T,a)),te&&(O(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(_e(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=w(y)}function jf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Jt(n,"gutterChanged",n)}function Uf(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+qr(n)+"px"}function zg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Pf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=m),a[y].gutterBackground&&(a[y].gutterBackground.style.left=m));var w=a[y].alignable;if(w)for(var S=0;S<w.length;S++)w[S].style.left=m}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Fg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=_e(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=u.firstChild.offsetWidth,y=u.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",jf(n.display),!0}return!1}function Vf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var m=n[u],y=null;if(typeof m!="string"&&(y=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:m,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Hg(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],m=u.className,y=u.style,w=i.appendChild(k("div",null,"CodeMirror-gutter "+m));y&&(w.style.cssText=y),m=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",jf(n)}function kl(n){Hg(n.display),_n(n),zg(n)}function zk(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=D("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=D("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=D("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[m],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&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),!g&&!(s&&_)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Vf(l.gutters,l.lineNumbers),Hg(u),a.init(u)}var fc=0,ai=null;h?ai=-.53:s?ai=15:b?ai=-.7:M&&(ai=-1/3);function Bg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Fk(n){var i=Bg(n);return i.x*=ai,i.y*=ai,i}function Wg(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=Bg(i),l=a.x,u=a.y,m=ai;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,w=y.scroller,S=w.scrollWidth>w.clientWidth,T=w.scrollHeight>w.clientHeight;if(l&&S||u&&T){if(u&&z&&g){e:for(var H=i.target,V=y.view;H!=w;H=H.parentNode)for(var oe=0;oe<V.length;oe++)if(V[oe].node==H){n.display.currentWheelTarget=H;break e}}if(l&&!s&&!E&&m!=null){u&&T&&yl(n,Math.max(0,w.scrollTop+u*m)),_o(n,Math.max(0,w.scrollLeft+l*m)),(!u||u&&T)&&cn(i),y.wheelStartX=null;return}if(u&&m!=null){var te=u*m,pe=n.doc.scrollTop,we=pe+y.wrapper.clientHeight;te<0?pe=Math.max(0,pe+te-50):we=Math.min(n.doc.height,we+te+50),qf(n,{top:pe,bottom:we})}fc<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var Te=w.scrollLeft-y.wheelStartX,Le=w.scrollTop-y.wheelStartY,De=Le&&y.wheelDY&&Le/y.wheelDY||Te&&y.wheelDX&&Te/y.wheelDX;y.wheelStartX=y.wheelStartY=null,De&&(ai=(ai*fc+De)/(fc+1),++fc)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var er=function(n,i){this.ranges=n,this.primIndex=i};er.prototype.primary=function(){return this.ranges[this.primIndex]},er.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},er.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Zt(this.ranges[i].anchor),Zt(this.ranges[i].head));return new er(n,this.primIndex)},er.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},er.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ie(i,l.from())>=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return is(this.anchor,this.head)},gt.prototype.to=function(){return Sn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Tr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(oe,te){return Ie(oe.from(),te.from())}),a=ce(i,u);for(var m=1;m<i.length;m++){var y=i[m],w=i[m-1],S=Ie(w.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var T=is(w.from(),y.from()),H=Sn(w.to(),y.to()),V=w.empty()?y.from()==y.head:w.from()==w.head;m<=a&&--a,i.splice(--m,2,new gt(V?H:T,V?T:H))}}return new er(i,a)}function Fi(n,i){return new er([new gt(n,i||n)],0)}function Hi(n){return n.text?fe(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function qg(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Hi(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+=Hi(i).ch-i.to.ch),fe(a,l)}function Gf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(qg(u.anchor,i),qg(u.head,i)))}return Tr(n.cm,a,n.sel.primIndex)}function jg(n,i,a){return n.line==i.line?fe(a.line,n.ch-i.ch+a.ch):fe(a.line+(n.line-i.line),n.ch)}function Hk(n,i,a){for(var l=[],u=fe(n.first,0),m=u,y=0;y<i.length;y++){var w=i[y],S=jg(w.from,u,m),T=jg(Hi(w),u,m);if(u=w.to,m=T,a=="around"){var H=n.sel.ranges[y],V=Ie(H.head,H.anchor)<0;l[y]=new gt(V?T:S,V?S:T)}else l[y]=new gt(S,S)}return new er(l,n.sel.primIndex)}function Kf(n){n.doc.mode=ts(n.options,n.doc.modeOption),Sl(n)}function Sl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,xl(n,100),n.state.modeGen++,n.curOp&&_n(n)}function Ug(n,i){return i.from.ch==0&&i.to.ch==0&&xe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Xf(n,i,a,l){function u(De){return a?a[De]:null}function m(De,Me,ze){K1(De,Me,ze,l),Jt(De,"change",De,i)}function y(De,Me){for(var ze=[],Ye=De;Ye<Me;++Ye)ze.push(new os(T[Ye],u(Ye),l));return ze}var w=i.from,S=i.to,T=i.text,H=qe(n,w.line),V=qe(n,S.line),oe=xe(T),te=u(T.length-1),pe=S.line-w.line;if(i.full)n.insert(0,y(0,T.length)),n.remove(T.length,n.size-T.length);else if(Ug(n,i)){var we=y(0,T.length-1);m(V,V.text,te),pe&&n.remove(w.line,pe),we.length&&n.insert(w.line,we)}else if(H==V)if(T.length==1)m(H,H.text.slice(0,w.ch)+oe+H.text.slice(S.ch),te);else{var Te=y(1,T.length-1);Te.push(new os(oe+H.text.slice(S.ch),te,l)),m(H,H.text.slice(0,w.ch)+T[0],u(0)),n.insert(w.line+1,Te)}else if(T.length==1)m(H,H.text.slice(0,w.ch)+T[0]+V.text.slice(S.ch),u(0)),n.remove(w.line+1,pe);else{m(H,H.text.slice(0,w.ch)+T[0],u(0)),m(V,oe+V.text.slice(S.ch),te);var Le=y(1,T.length-1);pe>1&&n.remove(w.line+1,pe-1),n.insert(w.line+1,Le)}Jt(n,"change",n,i)}function Bi(n,i,a){function l(u,m,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var S=u.linked[w];if(S.doc!=m){var T=y&&S.sharedHist;a&&!T||(i(S.doc,T),l(S.doc,u,T))}}}l(n,null,!0)}function Vg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,$f(n),Kf(n),Gg(n),n.options.direction=i.direction,n.options.lineWrapping||_f(n),n.options.mode=i.modeOption,_n(n)}function Gg(n){(n.doc.direction=="rtl"?Se:L)(n.display.lineDiv,"CodeMirror-rtl")}function Bk(n){Wn(n,function(){Gg(n),_n(n)})}function dc(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Yf(n,i){var a={from:Zt(i.from),to:Hi(i),text:ii(n,i.from,i.to)};return Yg(n,a,i.from.line,i.to.line+1),Bi(n,function(l){return Yg(l,a,i.from.line,i.to.line+1)},!0),a}function Kg(n){for(;n.length;){var i=xe(n);if(i.ranges)n.pop();else break}}function Wk(n,i){if(i)return Kg(n.done),xe(n.done);if(n.done.length&&!xe(n.done).ranges)return xe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function Xg(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=Wk(u,u.lastOp==l)))w=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,w.to)==0?w.to=Hi(i):y.changes.push(Yf(n,i));else{var S=xe(u.done);for((!S||!S.ranges)&&hc(n.sel,u.done),y={changes:[Yf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Rt(n,"historyAdded")}function qk(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 jk(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||qk(n,m,xe(u.done),i))?u.done[u.done.length-1]=i:hc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&Kg(u.undone)}function hc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Yg(n,i,a,l){var u=i["spans_"+n.id],m=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[m]=y.markedSpans),++m})}function Uk(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 Vk(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Uk(a[u]));return l}function Zg(n,i){var a=Vk(n,i),l=wf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var m=a[u],y=l[u];if(m&&y)e:for(var w=0;w<y.length;++w){for(var S=y[w],T=0;T<m.length;++T)if(m[T].marker==S.marker)continue e;m.push(S)}else y&&(a[u]=y)}return a}function hs(n,i,a){for(var l=[],u=0;u<n.length;++u){var m=n[u];if(m.ranges){l.push(a?er.prototype.deepCopy.call(m):m);continue}var y=m.changes,w=[];l.push({changes:w});for(var S=0;S<y.length;++S){var T=y[S],H=void 0;if(w.push({from:T.from,to:T.to,text:T.text}),i)for(var V in T)(H=V.match(/^spans_(\d+)$/))&&ce(i,Number(H[1]))>-1&&(xe(w)[V]=T[V],delete T[V])}}return l}function Zf(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function pc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),un(n,new er([Zf(n.sel.primary(),i,a,u)],0),l)}function Jg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m<n.sel.ranges.length;m++)l[m]=Zf(n.sel.ranges[m],i[m],null,u);var y=Tr(n.cm,l,n.sel.primIndex);un(n,y,a)}function Jf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,un(n,Tr(n.cm,u,n.sel.primIndex),l)}function Qg(n,i,a,l){un(n,Fi(i,a),l)}function Gk(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new gt(tt(n,u[m].anchor),tt(n,u[m].head))},origin:a&&a.origin};return Rt(n,"beforeSelectionChange",n,l),n.cm&&Rt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Tr(n.cm,l.ranges,l.ranges.length-1):i}function em(n,i,a){var l=n.history.done,u=xe(l);u&&u.ranges?(l[l.length-1]=i,gc(n,i,a)):un(n,i,a)}function un(n,i,a){gc(n,i,a),jk(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function gc(n,i,a){(Bn(n,"beforeSelectionChange")||n.cm&&Bn(n.cm,"beforeSelectionChange"))&&(i=Gk(n,i,a));var l=a&&a.bias||(Ie(i.primary().head,n.sel.primary().head)<0?-1:1);tm(n,rm(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&fs(n.cm)}function tm(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ar(n.cm)),Jt(n,"cursorActivity",n))}function nm(n){tm(n,rm(n,n.sel,null,!1))}function rm(n,i,a,l){for(var u,m=0;m<i.ranges.length;m++){var y=i.ranges[m],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[m],S=mc(n,y.anchor,w&&w.anchor,a,l),T=y.head==y.anchor?S:mc(n,y.head,w&&w.head,a,l);(u||S!=y.anchor||T!=y.head)&&(u||(u=i.ranges.slice(0,m)),u[m]=new gt(S,T))}return u?Tr(n.cm,u,i.primIndex):i}function ps(n,i,a,l,u){var m=qe(n,i.line);if(m.markedSpans)for(var y=0;y<m.markedSpans.length;++y){var w=m.markedSpans[y],S=w.marker,T="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,H="selectRight"in S?!S.selectRight:S.inclusiveRight;if((w.from==null||(T?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(H?w.to>=i.ch:w.to>i.ch))){if(u&&(Rt(S,"beforeCursorEnter"),S.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var V=S.find(l<0?1:-1),oe=void 0;if((l<0?H:T)&&(V=im(n,V,-l,V&&V.line==i.line?m:null)),V&&V.line==i.line&&(oe=Ie(V,a))&&(l<0?oe<0:oe>0))return ps(n,V,i,l,u)}var te=S.find(l<0?-1:1);return(l<0?T:H)&&(te=im(n,te,l,te.line==i.line?m:null)),te?ps(n,te,i,l,u):null}}return i}function mc(n,i,a,l,u){var m=l||1,y=ps(n,i,a,m,u)||!u&&ps(n,i,a,m,!0)||ps(n,i,a,-m,u)||!u&&ps(n,i,a,-m,!0);return y||(n.cantEdit=!0,fe(n.first,0))}function im(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?tt(n,fe(i.line-1)):null:a>0&&i.ch==(l||qe(n,i.line)).text.length?i.line<n.first+n.size-1?fe(i.line+1,0):null:new fe(i.line,i.ch+a)}function om(n){n.setSelection(fe(n.firstLine(),0),fe(n.lastLine()),Q)}function sm(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,m,y,w){u&&(l.from=tt(n,u)),m&&(l.to=tt(n,m)),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 gs(n,i,a){if(n.cm){if(!n.cm.curOp)return Qt(n.cm,gs)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"))&&(i=sm(n,i,!0),!i))){var l=Zp&&!a&&j1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)lm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else lm(n,i)}}function lm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=Gf(n,i);Xg(n,i,a,n.cm?n.cm.curOp.id:NaN),_l(n,i,a,wf(n,i));var l=[];Bi(n,function(u,m){!m&&ce(l,u.history)==-1&&(fm(u.history,i),l.push(u.history)),_l(u,i,null,wf(u,i))})}}function vc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,w=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,T=0;T<w.length&&(m=w[T],!(a?m.ranges&&!m.equals(n.sel):!m.ranges));T++);if(T!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=w.pop(),m.ranges){if(hc(m,S),a&&!m.equals(n.sel)){un(n,m,{clearRedo:!1});return}y=m}else if(l){w.push(m);return}else break;var H=[];hc(y,S),S.push({changes:H,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var V=Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"),oe=function(we){var Te=m.changes[we];if(Te.origin=i,V&&!sm(n,Te,!1))return w.length=0,{};H.push(Yf(n,Te));var Le=we?Gf(n,Te):xe(w);_l(n,Te,Le,Zg(n,Te)),!we&&n.cm&&n.cm.scrollIntoView({from:Te.from,to:Hi(Te)});var De=[];Bi(n,function(Me,ze){!ze&&ce(De,Me.history)==-1&&(fm(Me.history,Te),De.push(Me.history)),_l(Me,Te,null,Zg(Me,Te))})},te=m.changes.length-1;te>=0;--te){var pe=oe(te);if(pe)return pe.v}}}}function am(n,i){if(i!=0&&(n.first+=i,n.sel=new er(ye(n.sel.ranges,function(u){return new gt(fe(u.anchor.line+i,u.anchor.ch),fe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){_n(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Di(n.cm,l,"gutter")}}function _l(n,i,a,l){if(n.cm&&!n.cm.curOp)return Qt(n.cm,_l)(n,i,a,l);if(i.to.line<n.first){am(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);am(n,u),i={from:fe(n.first,0),to:fe(i.to.line+u,i.to.ch),text:[xe(i.text)],origin:i.origin}}var m=n.lastLine();i.to.line>m&&(i={from:i.from,to:fe(m,qe(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ii(n,i.from,i.to),a||(a=Gf(n,i)),n.cm?Kk(n.cm,i,l):Xf(n,i,l),gc(n,a,Q),n.cantEdit&&mc(n,fe(n.firstLine(),0))&&(n.cantEdit=!1)}}function Kk(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,w=!1,S=m.line;n.options.lineWrapping||(S=A(Sr(qe(l,m.line))),l.iter(S,y.line+1,function(te){if(te==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ar(n),Xf(l,i,a,Eg(n)),n.options.lineWrapping||(l.iter(S,m.line+i.text.length,function(te){var pe=ec(te);pe>u.maxLineLength&&(u.maxLine=te,u.maxLineLength=pe,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),D1(l,m.line),xl(n,400);var T=i.text.length-(y.line-m.line)-1;i.full?_n(n):m.line==y.line&&i.text.length==1&&!Ug(n.doc,i)?Di(n,m.line,"text"):_n(n,m.line,y.line+1,T);var H=Bn(n,"changes"),V=Bn(n,"change");if(V||H){var oe={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&Jt(n,"change",n,oe),H&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(oe)}n.display.selForContextMenu=null}function ms(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),gs(n,{from:a,to:l,text:i,origin:u})}function cm(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function um(n,i,a,l){for(var u=0;u<n.length;++u){var m=n[u],y=!0;if(m.ranges){m.copied||(m=n[u]=m.deepCopy(),m.copied=!0);for(var w=0;w<m.ranges.length;w++)cm(m.ranges[w].anchor,i,a,l),cm(m.ranges[w].head,i,a,l);continue}for(var S=0;S<m.changes.length;++S){var T=m.changes[S];if(a<T.from.line)T.from=fe(T.from.line+l,T.from.ch),T.to=fe(T.to.line+l,T.to.ch);else if(i<=T.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function fm(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;um(n.done,a,l,u),um(n.undone,a,l,u)}function Tl(n,i,a,l){var u=i,m=i;return typeof i=="number"?m=qe(n,Wp(n,i)):u=A(i),u==null?null:(l(m,u)&&n.cm&&Di(n.cm,u,a),m)}function Cl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}Cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,X1(u),Jt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function El(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}El.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var m=Math.min(i,u-n),y=l.height;if(l.removeInner(n,m),this.height-=y-l.height,u==m&&(this.children.splice(a--,1),l.parent=null),(i-=m)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Cl))){var w=[];this.collapse(w),this.children=[new Cl(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],m=u.chunkSize();if(n<=m){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,w=y;w<u.lines.length;){var S=new Cl(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-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new El(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ce(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new El(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],m=u.chunkSize();if(n<m){var y=Math.min(i,m-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=m}}};var Al=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Al.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=A(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var m=pl(this);Qn(a,Math.max(0,a.height-m)),n&&(Wn(n,function(){dm(n,a,-m),Di(n,l,"widget")}),Jt(n,"lineWidgetCleared",n,this,l))}},Al.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=pl(this)-i;u&&(Ii(this.doc,l)||Qn(l,l.height+u),a&&Wn(a,function(){a.curOp.forceUpdate=!0,dm(a,l,u),Jt(a,"lineWidgetChanged",a,n,A(l))}))},yr(Al);function dm(n,i,a){si(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Bf(n,a)}function Xk(n,i,a,l){var u=new Al(n,a,l),m=n.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),Tl(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,m&&!Ii(n,y)){var S=si(y)<n.scrollTop;Qn(y,y.height+pl(u)),S&&Bf(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&Jt(m,"lineWidgetAdded",m,u,typeof i=="number"?i:A(i)),u}var hm=0,Wi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++hm};Wi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Co(n),Bn(this,"clear")){var a=this.find();a&&Jt(this,"clear",a.from,a.to)}for(var l=null,u=null,m=0;m<this.lines.length;++m){var y=this.lines[m],w=fl(y.markedSpans,this);n&&!this.collapsed?Di(n,A(y),"text"):n&&(w.to!=null&&(u=A(y)),w.from!=null&&(l=A(y))),y.markedSpans=H1(y.markedSpans,w),w.from==null&&this.collapsed&&!Ii(this.doc,y)&&n&&Qn(y,as(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var T=Sr(this.lines[S]),H=ec(T);H>n.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=H,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&_n(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&nm(n.doc)),n&&Jt(n,"markerCleared",n,this,l,u),i&&Eo(n),this.parent&&this.parent.clear()}},Wi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var m=this.lines[u],y=fl(m.markedSpans,this);if(y.from!=null&&(a=fe(i?m:A(m),y.from),n==-1))return a;if(y.to!=null&&(l=fe(i?m:A(m),y.to),n==1))return l}return a&&{from:a,to:l}},Wi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Wn(l,function(){var u=i.line,m=A(i.line),y=Af(l,m);if(y&&(bg(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ii(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var S=pl(a)-w;S&&Qn(u,u.height+S)}Jt(l,"markerChanged",l,n)})},Wi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Wi.prototype.detachLine=function(n){if(this.lines.splice(ce(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},yr(Wi);function vs(n,i,a,l,u){if(l&&l.shared)return Yk(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Qt(n.cm,vs)(n,i,a,l,u);var m=new Wi(n,u),y=Ie(i,a);if(l&&Z(l,m,!1),y>0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=D("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(rg(n,i.line,i,a,m)||i.line!=a.line&&rg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");F1()}m.addToHistory&&Xg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,S=n.cm,T;if(n.iter(w,a.line+1,function(V){S&&m.collapsed&&!S.options.lineWrapping&&Sr(V)==S.display.maxLine&&(T=!0),m.collapsed&&w!=i.line&&Qn(V,0),B1(V,new Ya(m,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),m.collapsed&&n.iter(i.line,a.line+1,function(V){Ii(n,V)&&Qn(V,0)}),m.clearOnEnter&&Xe(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(z1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++hm,m.atomic=!0),S){if(T&&(S.curOp.updateMaxLine=!0),m.collapsed)_n(S,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=i.line;H<=a.line;H++)Di(S,H,"text");m.atomic&&nm(S.doc),Jt(S,"markerAdded",S,m)}return m}var Ll=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Ll.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Jt(this,"clear")}},Ll.prototype.find=function(n,i){return this.primary.find(n,i)},yr(Ll);function Yk(n,i,a,l,u){l=Z(l),l.shared=!1;var m=[vs(n,i,a,l,u)],y=m[0],w=l.widgetNode;return Bi(n,function(S){w&&(l.widgetNode=w.cloneNode(!0)),m.push(vs(S,tt(S,i),tt(S,a),l,u));for(var T=0;T<S.linked.length;++T)if(S.linked[T].isParent)return;y=xe(m)}),new Ll(m,y)}function pm(n){return n.findMarks(fe(n.first,0),n.clipPos(fe(n.lastLine())),function(i){return i.parent})}function Zk(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),m=n.clipPos(u.from),y=n.clipPos(u.to);if(Ie(m,y)){var w=vs(n,m,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function Jk(n){for(var i=function(l){var u=n[l],m=[u.primary.doc];Bi(u.primary.doc,function(S){return m.push(S)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];ce(m,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var Qk=0,Tn=function(n,i,a,l,u){if(!(this instanceof Tn))return new Tn(n,i,a,l,u);a==null&&(a=0),El.call(this,[new Cl([new os("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var m=fe(a,0);this.sel=Fi(m),this.history=new dc(null),this.id=++Qk,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Xf(this,{from:m,to:m,text:n}),un(this,Fi(m),Q)};Tn.prototype=ie(El.prototype,{constructor:Tn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=cl(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:en(function(n){var i=fe(this.first,0),a=this.first+this.size-1;gs(this,{from:i,to:fe(a,qe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&vl(this.cm,0,0),un(this,Fi(i),Q)}),replaceRange:function(n,i,a,l){i=tt(this,i),a=a?tt(this,a):i,ms(this,n,i,a,l)},getRange:function(n,i,a){var l=ii(this,tt(this,n),tt(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(me(this,n))return qe(this,n)},getLineNumber:function(n){return A(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=qe(this,n)),Sr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return tt(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:en(function(n,i,a){Qg(this,tt(this,typeof n=="number"?fe(n,i||0):n),null,a)}),setSelection:en(function(n,i,a){Qg(this,tt(this,n),tt(this,i||n),a)}),extendSelection:en(function(n,i,a){pc(this,tt(this,n),i&&tt(this,i),a)}),extendSelections:en(function(n,i){Jg(this,qp(this,n),i)}),extendSelectionsBy:en(function(n,i){var a=ye(this.sel.ranges,n);Jg(this,qp(this,a),i)}),setSelections:en(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(tt(this,n[u].anchor),tt(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),un(this,Tr(this.cm,l,i),a)}}),addSelection:en(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(tt(this,n),tt(this,i||n))),un(this,Tr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=ii(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=ii(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:en(function(n,i,a){for(var l=[],u=this.sel,m=0;m<u.ranges.length;m++){var y=u.ranges[m];l[m]={from:y.from(),to:y.to(),text:this.splitLines(n[m]),origin:a}}for(var w=i&&i!="end"&&Hk(this,l,i),S=l.length-1;S>=0;S--)gs(this,l[S]);w?em(this,w):this.cm&&fs(this.cm)}),undo:en(function(){vc(this,"undo")}),redo:en(function(){vc(this,"redo")}),undoSelection:en(function(){vc(this,"undo",!0)}),redoSelection:en(function(){vc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new dc(this.history),Bi(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:hs(this.history.done),undone:hs(this.history.undone)}},setHistory:function(n){var i=this.history=new dc(this.history);i.done=hs(n.done.slice(0),null,!0),i.undone=hs(n.undone.slice(0),null,!0)},setGutterMarker:en(function(n,i,a){return Tl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&dt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:en(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Tl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,dt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!me(this,n)||(i=n,n=qe(this,n),!n))return null}else if(i=A(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:en(function(n,i,a){return Tl(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(W(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:en(function(n,i,a){return Tl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[u];if(m)if(a==null)l[u]=null;else{var y=m.match(W(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=m.slice(0,y.index)+(!y.index||w==m.length?"":" ")+m.slice(w)||null}else return!1;return!0})}),addLineWidget:en(function(n,i,a){return Xk(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return vs(this,tt(this,n),tt(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=tt(this,n),vs(this,n,n,a,"bookmark")},findMarksAt:function(n){n=tt(this,n);var i=[],a=qe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=tt(this,n),i=tt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.markedSpans;if(y)for(var 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 m=u.text.length+l;if(m>n)return i=n,!0;n-=m,++a}),tt(this,fe(a,i))},indexFromPos:function(n){n=tt(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new Tn(cl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new Tn(cl(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}],Zk(l,pm(this)),l},unlinkDoc:function(n){if(n instanceof Ct&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),Jk(pm(this));break}}if(n.history==this.history){var l=[n.id];Bi(n,function(u){return l.push(u.id)},!0),n.history=new dc(null),n.history.done=hs(this.history.done,l),n.history.undone=hs(this.history.undone,l)}},iterLinkedDocs:function(n){Bi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):cr(n)},lineSeparator:function(){return this.lineSep||`
`},setDirection:en(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Bk(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var gm=0;function eS(n){var i=this;if(mm(i),!(Pt(i,n)||li(i.display,n))){cn(n),h&&(gm=+new Date);var a=ko(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,m=Array(u),y=0,w=function(){++y==u&&Qt(i,function(){a=tt(i.doc,a);var te={from:a,to:a,text:i.doc.splitLines(m.filter(function(pe){return pe!=null}).join(i.doc.lineSeparator())),origin:"paste"};gs(i.doc,te),em(i.doc,Fi(tt(i.doc,a),tt(i.doc,Hi(te))))})()},S=function(te,pe){if(i.options.allowDropFileTypes&&ce(i.options.allowDropFileTypes,te.type)==-1){w();return}var we=new FileReader;we.onerror=function(){return w()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){w();return}m[pe]=Te,w()},we.readAsText(te)},T=0;T<l.length;T++)S(l[T],T);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),gc(i.doc,Fi(a,a)),V)for(var oe=0;oe<V.length;++oe)ms(i.doc,"",V[oe].anchor,V[oe].head,"drag");i.replaceSelection(H,"around","paste"),i.display.input.focus()}}catch{}}}}function tS(n,i){if(h&&(!n.state.draggingText||+new Date-gm<100)){Oi(i);return}if(!(Pt(n,i)||li(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!M)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function nS(n,i){var a=ko(n,i);if(a){var l=document.createDocumentFragment();If(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),C(n.display.dragCursor,l)}}function mm(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function vm(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var m=0;m<a.length;m++)n(a[m])})}}var ym=!1;function rS(){ym||(iS(),ym=!0)}function iS(){var n;Xe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,vm(oS)},100))}),Xe(window,"blur",function(){return vm(us)})}function oS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var qi={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"},Ml=0;Ml<10;Ml++)qi[Ml+48]=qi[Ml+96]=String(Ml);for(var yc=65;yc<=90;yc++)qi[yc]=String.fromCharCode(yc);for(var Nl=1;Nl<=12;Nl++)qi[Nl+111]=qi[Nl+63235]="F"+Nl;var ci={};ci.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ci.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ci.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ci.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ci.default=z?ci.macDefault:ci.pcDefault;function sS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,m,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))m=!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),m&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function lS(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(" "),sS),m=0;m<u.length;m++){var y=void 0,w=void 0;m==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,m+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 T in i)n[T]=i[T];return n}function ys(n,i,a,l){i=bc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ys(n,i.fallthrough,a,l);for(var m=0;m<i.fallthrough.length;m++){var y=ys(n,i.fallthrough[m],a,l);if(y)return y}}}function bm(n){var i=typeof n=="string"?n:qi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function wm(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Y?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Y?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function xm(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=qi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),wm(a,n,i))}function bc(n){return typeof n=="string"?ci[n]:n}function bs(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var m=i(a[u]);l.length&&Ie(m.from,xe(l).to)<=0;){var y=l.pop();if(Ie(y.from,m.from)<0){m.from=y.from;break}}l.push(m)}Wn(n,function(){for(var w=l.length-1;w>=0;w--)ms(n.doc,"",l[w].from,l[w].to,"+delete");fs(n)})}function Qf(n,i,a){var l=Yt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function ed(n,i,a){var l=Qf(n,i.ch,a);return l==null?null:new fe(i.line,l,a<0?"after":"before")}function td(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=lt(a,i.doc.direction);if(m){var y=u<0?xe(m):m[0],w=u<0==(y.level==1),S=w?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var H=ls(i,a);T=u<0?a.text.length-1:0;var V=jr(i,H,T).top;T=jt(function(oe){return jr(i,H,oe).top==V},u<0==(y.level==1)?y.from:y.to-1,T),S=="before"&&(T=Qf(a,T,1))}else T=u<0?y.to:y.from;return new fe(l,T,S)}}return new fe(l,u<0?a.text.length:0,u<0?"before":"after")}function aS(n,i,a,l){var u=lt(i,n.doc.direction);if(!u)return ed(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var m=Bt(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return ed(i,a,l);var w=function(Le,De){return Qf(i,Le instanceof fe?Le.ch:Le,De)},S,T=function(Le){return n.options.lineWrapping?(S=S||ls(n,i),Cg(n,i,S,Le)):{begin:0,end:i.text.length}},H=T(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var V=y.level==1==l<0,oe=w(a,V?1:-1);if(oe!=null&&(V?oe<=y.to&&oe<=H.end:oe>=y.from&&oe>=H.begin)){var te=V?"before":"after";return new fe(a.line,oe,te)}}var pe=function(Le,De,Me){for(var ze=function(St,tn){return tn?new fe(a.line,w(St,1),"before"):new fe(a.line,St,"after")};Le>=0&&Le<u.length;Le+=De){var Ye=u[Le],Ue=De>0==(Ye.level!=1),st=Ue?Me.begin:w(Me.end,-1);if(Ye.from<=st&&st<Ye.to||(st=Ue?Ye.from:w(Ye.to,-1),Me.begin<=st&&st<Me.end))return ze(st,Ue)}},we=pe(m+l,l,H);if(we)return we;var Te=l>0?H.end:w(H.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=pe(l>0?0:u.length-1,l,T(Te)),we)?we:null}var Ol={selectAll:om,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Q)},killLine:function(n){return bs(n,function(i){if(i.empty()){var a=qe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:fe(i.head.line+1,0)}:{from:i.head,to:fe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return bs(n,function(i){return{from:fe(i.from().line,0),to:tt(n.doc,fe(i.to().line+1,0))}})},delLineLeft:function(n){return bs(n,function(i){return{from:fe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return bs(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 bs(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(fe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(fe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return km(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Sm(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return cS(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")},de)},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")},de)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Sm(n,i.head):l},de)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var m=a[u].from(),y=ne(n.getLine(m.line),m.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,m=qe(n.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new fe(u.line,u.ch-1)),u.ch>0)u=new fe(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),fe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=qe(n.doc,u.line-1).text;y&&(u=new fe(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),fe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);fs(n)})},openLine:function(n){return n.replaceSelection(`
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function km(n,i){var a=qe(n.doc,i),l=Sr(a);return l!=a&&(i=A(l)),td(!0,n,l,i,1)}function cS(n,i){var a=qe(n.doc,i),l=V1(a);return l!=a&&(i=A(l)),td(!0,n,a,i,-1)}function Sm(n,i){var a=km(n,i.line),l=qe(n.doc,a.line),u=lt(l,n.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=m&&i.ch;return fe(a.line,y?0:m,a.sticky)}return a}function wc(n,i,a){if(typeof i=="string"&&(i=Ol[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function uS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ys(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ys(i,n.options.extraKeys,a,n)||ys(i,n.options.keyMap,a,n)}var fS=new se;function Rl(n,i,a,l){var u=n.state.keySeq;if(u){if(bm(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:fS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),_m(n,u+" "+i,a,l))return!0}return _m(n,i,a,l)}function _m(n,i,a,l){var u=uS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Jt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(cn(a),Df(n)),!!u}function Tm(n,i){var a=xm(i,!0);return a?i.shiftKey&&!n.state.keySeq?Rl(n,"Shift-"+a,i,function(l){return wc(n,l,!0)})||Rl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return wc(n,l)}):Rl(n,a,i,function(l){return wc(n,l)}):!1}function dS(n,i,a){return Rl(n,"'"+a+"'",i,function(l){return wc(n,l,!0)})}var nd=null;function Cm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=be(je(i)),!Pt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Tm(i,n);E&&(nd=l?a:null,!l&&a==88&&!Ka&&(z?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!z&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&hS(i)}}function hS(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(L(i,"CodeMirror-crosshair"),an(document,"keyup",a),an(document,"mouseover",a))}Xe(document,"keyup",a),Xe(document,"mouseover",a)}function Em(n){n.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,n)}function Am(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(li(i.display,n)||Pt(i,n)||n.ctrlKey&&!n.altKey||z&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==nd){nd=null,cn(n);return}if(!(E&&(!n.which||n.which<10)&&Tm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(dS(i,n,u)||i.display.input.onKeyPress(n))}}}var pS=400,rd=function(n,i,a){this.time=n,this.pos=i,this.button=a};rd.prototype.compare=function(n,i,a){return this.time+pS>n&&Ie(i,this.pos)==0&&a==this.button};var Pl,$l;function gS(n,i){var a=+new Date;return $l&&$l.compare(a,n,i)?(Pl=$l=null,"triple"):Pl&&Pl.compare(a,n,i)?($l=new rd(a,n,i),Pl=null,"double"):(Pl=new rd(a,n,i),$l=null,"single")}function Lm(n){var i=this,a=i.display;if(!(Pt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,li(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!id(i,n)){var l=ko(i,n),u=br(n),m=l?gS(l,u):"single";Re(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&mS(i,u,l,m,n))&&(u==1?l?yS(i,l,m,n):sl(n)==a.scroller&&cn(n):u==2?(l&&pc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):zf(i)))}}}function mS(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Rl(n,wm(m,u),u,function(y){if(typeof y=="string"&&(y=Ol[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=q}finally{n.state.suppressEdits=!1}return w})}function vS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=j?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=z?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(z?a.altKey:a.ctrlKey)),u}function yS(n,i,a,l){h?setTimeout(F(Mg,n),0):n.curOp.focus=be(je(n));var u=vS(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&mf&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?bS(n,l,i,u):wS(n,l,i,u)}function bS(n,i,a,l){var u=n.display,m=!1,y=Qt(n,function(T){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:zf(n)),an(u.wrapper.ownerDocument,"mouseup",y),an(u.wrapper.ownerDocument,"mousemove",w),an(u.scroller,"dragstart",S),an(u.scroller,"drop",y),m||(cn(T),l.addNew||pc(n.doc,a,null,null,l.extend),g&&!M||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(T){m=m||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},S=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Xe(u.wrapper.ownerDocument,"mouseup",y),Xe(u.wrapper.ownerDocument,"mousemove",w),Xe(u.scroller,"dragstart",S),Xe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Mm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(fe(i.line,0),tt(n.doc,fe(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function wS(n,i,a,l){h&&zf(n);var u=n.display,m=n.doc;cn(i);var y,w,S=m.sel,T=S.ranges;if(l.addNew&&!l.extend?(w=m.sel.contains(a),w>-1?y=T[w]:y=new gt(a,a)):(y=m.sel.primary(),w=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=ko(n,i,!0,!0),w=-1;else{var H=Mm(n,a,l.unit);l.extend?y=Zf(y,H.anchor,H.head,l.extend):y=H}l.addNew?w==-1?(w=T.length,un(m,Tr(n,T.concat([y]),w),{scroll:!1,origin:"*mouse"})):T.length>1&&T[w].empty()&&l.unit=="char"&&!l.extend?(un(m,Tr(n,T.slice(0,w).concat(T.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),S=m.sel):Jf(m,w,y,he):(w=0,un(m,new er([y],0),he),S=m.sel);var V=a;function oe(Me){if(Ie(V,Me)!=0)if(V=Me,l.unit=="rectangle"){for(var ze=[],Ye=n.options.tabSize,Ue=ne(qe(m,a.line).text,a.ch,Ye),st=ne(qe(m,Me.line).text,Me.ch,Ye),St=Math.min(Ue,st),tn=Math.max(Ue,st),Ot=Math.min(a.line,Me.line),qn=Math.min(n.lastLine(),Math.max(a.line,Me.line));Ot<=qn;Ot++){var Cn=qe(m,Ot).text,Ut=ge(Cn,St,Ye);St==tn?ze.push(new gt(fe(Ot,Ut),fe(Ot,Ut))):Cn.length>Ut&&ze.push(new gt(fe(Ot,Ut),fe(Ot,ge(Cn,tn,Ye))))}ze.length||ze.push(new gt(a,a)),un(m,Tr(n,S.ranges.slice(0,w).concat(ze),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Me)}else{var En=y,sn=Mm(n,Me,l.unit),Kt=En.anchor,Vt;Ie(sn.anchor,Kt)>0?(Vt=sn.head,Kt=is(En.from(),sn.anchor)):(Vt=sn.anchor,Kt=Sn(En.to(),sn.head));var It=S.ranges.slice(0);It[w]=xS(n,new gt(tt(m,Kt),Vt)),un(m,Tr(n,It,w),he)}}var te=u.wrapper.getBoundingClientRect(),pe=0;function we(Me){var ze=++pe,Ye=ko(n,Me,!0,l.unit=="rectangle");if(Ye)if(Ie(Ye,V)!=0){n.curOp.focus=be(je(n)),oe(Ye);var Ue=ac(u,m);(Ye.line>=Ue.to||Ye.line<Ue.from)&&setTimeout(Qt(n,function(){pe==ze&&we(Me)}),150)}else{var st=Me.clientY<te.top?-20:Me.clientY>te.bottom?20:0;st&&setTimeout(Qt(n,function(){pe==ze&&(u.scroller.scrollTop+=st,we(Me))}),50)}}function Te(Me){n.state.selectingText=!1,pe=1/0,Me&&(cn(Me),u.input.focus()),an(u.wrapper.ownerDocument,"mousemove",Le),an(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Le=Qt(n,function(Me){Me.buttons===0||!br(Me)?Te(Me):we(Me)}),De=Qt(n,Te);n.state.selectingText=De,Xe(u.wrapper.ownerDocument,"mousemove",Le),Xe(u.wrapper.ownerDocument,"mouseup",De)}function xS(n,i){var a=i.anchor,l=i.head,u=qe(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=lt(u);if(!m)return i;var y=Bt(m,a.ch,a.sticky),w=m[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==m.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var H=Bt(m,l.ch,l.sticky),V=H-y||(l.ch-a.ch)*(w.level==1?-1:1);H==S-1||H==S?T=V<0:T=V>0}var oe=m[S+(T?-1:0)],te=T==(oe.level==1),pe=te?oe.from:oe.to,we=te?"after":"before";return a.ch==pe&&a.sticky==we?i:new gt(new fe(a.line,pe,we),l)}function Nm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&cn(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(m>w.bottom||!Bn(n,a))return kn(i);m-=w.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var T=y.gutters.childNodes[S];if(T&&T.getBoundingClientRect().right>=u){var H=U(n.doc,m),V=n.display.gutterSpecs[S];return Rt(n,a,n,H,V.className,i),kn(i)}}}function id(n,i){return Nm(n,i,"gutterClick",!0)}function Om(n,i){li(n.display,i)||kS(n,i)||Pt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function kS(n,i){return Bn(n,"gutterContextMenu")?Nm(n,i,"gutterContextMenu",!1):!1}function Rm(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gl(n)}var ws={toString:function(){return"CodeMirror.Init"}},Pm={},xc={};function SS(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(w,S,T){T!=ws&&m(w,S,T)}:m)}n.defineOption=a,n.Init=ws,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Kf(l)},!0),a("indentUnit",2,Kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Sl(l),gl(l),_n(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(S){for(var T=0;;){var H=S.text.indexOf(u,T);if(H==-1)break;T=H+u.length,m.push(fe(y,H))}y++});for(var w=m.length-1;w>=0;w--)ms(l.doc,u,m[w],fe(m[w].line,m[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,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=ws&&l.refresh()}),a("specialCharPlaceholder",J1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!le),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Rm(l),kl(l)},!0),a("keyMap","default",function(l,u,m){var y=bc(u),w=m!=ws&&bc(m);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,TS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Vf(u,l.options.lineNumbers),kl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Pf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ds(l)},!0),a("scrollbarStyle","native",function(l){Ig(l),ds(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Vf(l.options.gutters,u),kl(l)},!0),a("firstLineNumber",1,kl,!0),a("lineNumberFormatter",function(l){return l},kl,!0),a("showCursorWhenSelecting",!1,ml,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(us(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,_S),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ml,!0),a("singleCursorHeightPerLine",!0,ml,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Sl,!0),a("addModeClass",!1,Sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function _S(n,i,a){var l=a&&a!=ws;if(!i!=!l){var u=n.display.dragFunctions,m=i?Xe:an;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function TS(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(L(n.display.wrapper,"CodeMirror-wrap"),_f(n)),$f(n),_n(n),gl(n),setTimeout(function(){return ds(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?Z(i):{},Z(Pm,i,!1);var l=i.value;typeof l=="string"?l=new Tn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Ct.inputStyles[i.inputStyle](this),m=this.display=new zk(n,l,u,i);m.wrapper.CodeMirror=this,Rm(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ig(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new se,keySeq:null,specialChars:null},i.autofocus&&!_&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),CS(this),rS(),Co(this),this.curOp.forceUpdate=!0,Vg(this,l),i.autofocus&&!_||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Ff(a)},20):us(this);for(var y in xc)xc.hasOwnProperty(y)&&xc[y](this,i[y],ws);Fg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<od.length;++w)od[w](this);Eo(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Ct.defaults=Pm,Ct.optionHandlers=xc;function CS(n){var i=n.display;Xe(i.scroller,"mousedown",Qt(n,Lm)),h&&p<11?Xe(i.scroller,"dblclick",Qt(n,function(S){if(!Pt(n,S)){var T=ko(n,S);if(!(!T||id(n,S)||li(n.display,S))){cn(S);var H=n.findWordAt(T);pc(n.doc,H.anchor,H.head)}}})):Xe(i.scroller,"dblclick",function(S){return Pt(n,S)||cn(S)}),Xe(i.scroller,"contextmenu",function(S){return Om(n,S)}),Xe(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||Om(n,S)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(S){if(S.touches.length!=1)return!1;var T=S.touches[0];return T.radiusX<=1&&T.radiusY<=1}function y(S,T){if(T.left==null)return!0;var H=T.left-S.left,V=T.top-S.top;return H*H+V*V>400}Xe(i.scroller,"touchstart",function(S){if(!Pt(n,S)&&!m(S)&&!id(n,S)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Xe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Xe(i.scroller,"touchend",function(S){var T=i.activeTouch;if(T&&!li(i,S)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new gt(H,H):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(H):V=new gt(fe(H.line,0),tt(n.doc,fe(H.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),cn(S)}u()}),Xe(i.scroller,"touchcancel",u),Xe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yl(n,i.scroller.scrollTop),_o(n,i.scroller.scrollLeft,!0),Rt(n,"scroll",n))}),Xe(i.scroller,"mousewheel",function(S){return Wg(n,S)}),Xe(i.scroller,"DOMMouseScroll",function(S){return Wg(n,S)}),Xe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Pt(n,S)||Oi(S)},over:function(S){Pt(n,S)||(nS(n,S),Oi(S))},start:function(S){return tS(n,S)},drop:Qt(n,eS),leave:function(S){Pt(n,S)||mm(n)}};var w=i.input.getField();Xe(w,"keyup",function(S){return Em.call(n,S)}),Xe(w,"keydown",Qt(n,Cm)),Xe(w,"keypress",Qt(n,Am)),Xe(w,"focus",function(S){return Ff(n,S)}),Xe(w,"blur",function(S){return us(n,S)})}var od=[];Ct.defineInitHook=function(n){return od.push(n)};function Il(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=ul(n,i).state:a="prev");var y=n.options.tabSize,w=qe(u,i),S=ne(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var T=w.text.match(/^\s*/)[0],H;if(!l&&!/\S/.test(w.text))H=0,a="not";else if(a=="smart"&&(H=u.mode.indent(m,w.text.slice(T.length),w.text),H==q||H>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?H=ne(qe(u,i-1).text,null,y):H=0:a=="add"?H=S+n.options.indentUnit:a=="subtract"?H=S-n.options.indentUnit:typeof a=="number"&&(H=S+a),H=Math.max(0,H);var V="",oe=0;if(n.options.indentWithTabs)for(var te=Math.floor(H/y);te;--te)oe+=y,V+=" ";if(oe<H&&(V+=Ee(H-oe)),V!=T)return ms(u,V,fe(i,0),fe(i,T.length),"+input"),w.stateAfter=null,!0;for(var pe=0;pe<u.sel.ranges.length;pe++){var we=u.sel.ranges[pe];if(we.head.line==i&&we.head.ch<T.length){var Te=fe(i,T.length);Jf(u,pe,new gt(Te,Te));break}}}var Cr=null;function kc(n){Cr=n}function sd(n,i,a,l,u){var m=n.doc;n.display.shift=!1,l||(l=m.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,S=cr(i),T=null;if(w&&l.ranges.length>1)if(Cr&&Cr.text.join(`
`)==i){if(l.ranges.length%Cr.text.length==0){T=[];for(var H=0;H<Cr.text.length;H++)T.push(m.splitLines(Cr.text[H]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(T=ye(S,function(Le){return[Le]}));for(var V=n.curOp.updateInput,oe=l.ranges.length-1;oe>=0;oe--){var te=l.ranges[oe],pe=te.from(),we=te.to();te.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!w?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(S).length)):w&&Cr&&Cr.lineWise&&Cr.text.join(`
`)==S.join(`
`)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[oe%T.length]:S,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};gs(n.doc,Te),Jt(n,"inputRead",n,Te)}i&&!w&&Im(n,i),fs(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function $m(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return sd(i,a,0,null,"paste")}),!0}function Im(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var w=0;w<m.electricChars.length;w++)if(i.indexOf(m.electricChars.charAt(w))>-1){y=Il(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Il(n,u.head.line,"smart"));y&&Jt(n,"electricInput",n,u.head.line)}}}function Dm(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,m={anchor:fe(u,0),head:fe(u+1,0)};a.push(m),i.push(n.getRange(m.anchor,m.head))}return{text:i,ranges:a}}function ld(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function zm(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?n.style.width="1000px":n.setAttribute("wrap","off"),P&&(n.style.border="1px solid black"),i}function ES(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Re(this).focus(),this.display.input.focus()},setOption:function(l,u){var m=this.options,y=m[l];m[l]==u&&l!="mode"||(m[l]=u,i.hasOwnProperty(l)&&Qt(this,i[l])(this,u,y),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"](bc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==l||u[m].name==l)return u.splice(m,1),!0},addOverlay:vn(function(l,u){var m=l.token?l:n.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:m,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,_n(this)}),removeOverlay:vn(function(l){for(var u=this.state.overlays,m=0;m<u.length;++m){var y=u[m].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(m,1),this.state.modeGen++,_n(this);return}}}),indentLine:vn(function(l,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),me(this.doc,l)&&Il(this,l,u,m)}),indentSelection:vn(function(l){for(var u=this.doc.sel.ranges,m=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>m&&(Il(this,w.head.line,l,!0),m=w.head.line,y==this.doc.sel.primIndex&&fs(this));else{var S=w.from(),T=w.to(),H=Math.max(m,S.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V<m;++V)Il(this,V,l);var oe=this.doc.sel.ranges;S.ch==0&&u.length==oe.length&&oe[y].from().ch>0&&Jf(this.doc,y,new gt(S,oe[y].to()),Q)}}}),getTokenAt:function(l,u){return Kp(this,l,u)},getLineTokens:function(l,u){return Kp(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=tt(this.doc,l);var u=Up(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,w=l.ch,S;if(w==0)S=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=w)y=T;else if(u[T*2+1]<w)m=T+1;else{S=u[T*2+2];break}}var H=S?S.indexOf("overlay "):-1;return H<0?S:H==0?null:S.slice(0,H-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var m=[];if(!a.hasOwnProperty(u))return m;var y=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&m.push(y[w[u]]);else if(w[u])for(var S=0;S<w[u].length;S++){var T=y[w[u][S]];T&&m.push(T)}else w.helperType&&y[w.helperType]?m.push(y[w.helperType]):y[w.name]&&m.push(y[w.name]);for(var H=0;H<y._global.length;H++){var V=y._global[H];V.pred(w,this)&&ce(m,V.val)==-1&&m.push(V.val)}return m},getStateAfter:function(l,u){var m=this.doc;return l=Wp(m,l??m.first+m.size-1),ul(this,l+1,u).state},cursorCoords:function(l,u){var m,y=this.doc.sel.primary();return l==null?m=y.head:typeof l=="object"?m=tt(this.doc,l):m=l?y.from():y.to(),_r(this,m,u||"page")},charCoords:function(l,u){return ic(this,tt(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Sg(this,l,u||"page"),Nf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Sg(this,{top:l,left:0},u||"page").top,U(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,m){var y=!1,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=qe(this.doc,l)}else w=l;return rc(this,w,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-si(w):0)},defaultTextHeight:function(){return as(this.display)},defaultCharWidth:function(){return cs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,w){var S=this.display;l=_r(this,tt(this.doc,l));var T=l.bottom,H=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(S.wrapper.clientHeight,this.doc.height),oe=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),H+u.offsetWidth>oe&&(H=oe-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",w=="right"?(H=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?H=0:w=="middle"&&(H=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=H+"px"),m&&_k(this,{left:H,top:T,right:H+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:vn(Cm),triggerOnKeyPress:vn(Am),triggerOnKeyUp:Em,triggerOnMouseDown:vn(Lm),execCommand:function(l){if(Ol.hasOwnProperty(l))return Ol[l].call(null,this)},triggerElectric:vn(function(l){Im(this,l)}),findPosH:function(l,u,m,y){var w=1;u<0&&(w=-1,u=-u);for(var S=tt(this.doc,l),T=0;T<u&&(S=ad(this.doc,S,w,m,y),!S.hitSide);++T);return S},moveH:vn(function(l,u){var m=this;this.extendSelectionsBy(function(y){return m.display.shift||m.doc.extend||y.empty()?ad(m.doc,y.head,l,u,m.options.rtlMoveVisually):l<0?y.from():y.to()},de)}),deleteH:vn(function(l,u){var m=this.doc.sel,y=this.doc;m.somethingSelected()?y.replaceSelection("",null,"+delete"):bs(this,function(w){var S=ad(y,w.head,l,u,!1);return l<0?{from:S,to:w.head}:{from:w.head,to:S}})}),findPosV:function(l,u,m,y){var w=1,S=y;u<0&&(w=-1,u=-u);for(var T=tt(this.doc,l),H=0;H<u;++H){var V=_r(this,T,"div");if(S==null?S=V.left:V.left=S,T=Fm(this,V,w,m),T.hitSide)break}return T},moveV:vn(function(l,u){var m=this,y=this.doc,w=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(H){if(S)return l<0?H.from():H.to();var V=_r(m,H.head,"div");H.goalColumn!=null&&(V.left=H.goalColumn),w.push(V.left);var oe=Fm(m,V,l,u);return u=="page"&&H==y.sel.primary()&&Bf(m,ic(m,oe,"div").top-V.top),oe},de),w.length)for(var T=0;T<y.sel.ranges.length;T++)y.sel.ranges[T].goalColumn=w[T]}),findWordAt:function(l){var u=this.doc,m=qe(u,l.line).text,y=l.ch,w=l.ch;if(m){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||w==m.length)&&y?--y:++w;for(var T=m.charAt(y),H=ct(T,S)?function(V){return ct(V,S)}:/\s/.test(T)?function(V){return/\s/.test(V)}:function(V){return!/\s/.test(V)&&!ct(V)};y>0&&H(m.charAt(y-1));)--y;for(;w<m.length&&H(m.charAt(w));)++w}return new gt(fe(l.line,y),fe(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),Rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==be(je(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vn(function(l,u){vl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-qr(this)-this.display.barHeight,width:l.scrollWidth-qr(this)-this.display.barWidth,clientHeight:Ef(this),clientWidth:wo(this)}},scrollIntoView:vn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:fe(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Tk(this,l):Og(this,l.from,l.to,l.margin)}),setSize:vn(function(l,u){var m=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&wg(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(S){if(S.widgets){for(var T=0;T<S.widgets.length;T++)if(S.widgets[T].noHScroll){Di(m,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Rt(this,"refresh",this)}),operation:function(l){return Wn(this,l)},startOperation:function(){return Co(this)},endOperation:function(){return Eo(this)},refresh:vn(function(){var l=this.display.cachedTextHeight;_n(this),this.curOp.forceUpdate=!0,gl(this),vl(this,this.doc.scrollLeft,this.doc.scrollTop),jf(this.display),(l==null||Math.abs(l-as(this.display))>.5||this.options.lineWrapping)&&$f(this),Rt(this,"refresh",this)}),swapDoc:vn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Vg(this,l),gl(this),this.display.input.reset(),vl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},yr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function ad(n,i,a,l,u){var m=i,y=a,w=qe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+S;return De<n.first||De>=n.first+n.size?!1:(i=new fe(De,i.ch,i.sticky),w=qe(n,De))}function H(De){var Me;if(l=="codepoint"){var ze=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(ze))Me=null;else{var Ye=a>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;Me=new fe(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(Ye?2:1))),-a)}}else u?Me=aS(n.cm,w,i,a):Me=ed(w,i,a);if(Me==null)if(!De&&T())i=td(u,n.cm,w,i.line,S);else return!1;else i=Me;return!0}if(l=="char"||l=="codepoint")H();else if(l=="column")H(!0);else if(l=="word"||l=="group")for(var V=null,oe=l=="group",te=n.cm&&n.cm.getHelper(i,"wordChars"),pe=!0;!(a<0&&!H(!pe));pe=!1){var we=w.text.charAt(i.ch)||`
`,Te=ct(we,te)?"w":oe&&we==`
`?"n":!oe||/\s/.test(we)?null:"p";if(oe&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var Le=mc(n,i,m,y,!0);return pt(m,Le)&&(Le.hitSide=!0),Le}function Fm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Re(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(w-.5*as(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=Nf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,ld(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(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}Xe(u,"paste",function(w){!m(w)||Pt(l,w)||$m(w,l)||p<=11&&setTimeout(Qt(l,function(){return i.updateFromDOM()}),20)}),Xe(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Xe(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Xe(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Xe(u,"touchstart",function(){return a.forceCompositionEnd()}),Xe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!m(w)||Pt(l,w))){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Dm(l);kc({lineWise:!0,text:S.text}),w.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,Q),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var T=Cr.text.join(`
`);if(w.clipboardData.setData("Text",T),w.clipboardData.getData("Text")==T){w.preventDefault();return}}var H=zm(),V=H.firstChild;ld(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Cr.text.join(`
`);var oe=be(Fe(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(H),oe.focus(),oe==u&&a.showPrimarySelection()},50)}}Xe(u,"copy",y),Xe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Lg(this.cm,!1);return n.focus=be(Fe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var m=Sc(i,n.anchorNode,n.anchorOffset),y=Sc(i,n.focusNode,n.focusOffset);if(!(m&&!m.bad&&y&&!y.bad&&Ie(is(m,y),l)==0&&Ie(Sn(m,y),u)==0)){var w=i.display.view,S=l.line>=i.display.viewFrom&&Hm(i,l)||{node:w[0].measure.map[2],offset:0},T=u.line<i.display.viewTo&&Hm(i,u);if(!T){var H=w[w.length-1].measure,V=H.maps?H.maps[H.maps.length-1]:H.map;T={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!S||!T){n.removeAllRanges();return}var oe=n.rangeCount&&n.getRangeAt(0),te;try{te=B(S.node,S.offset,T.offset,T.node)}catch{}te&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),te.collapsed||(n.removeAllRanges(),n.addRange(te))):(n.removeAllRanges(),n.addRange(te)),oe&&n.anchorNode==null?n.addRange(oe):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){C(this.cm.display.cursorDiv,n.cursors),C(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ae(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||be(Fe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if($&&b&&this.cm.display.gutterSpecs.length&&AS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Sc(i,n.anchorNode,n.anchorOffset),l=Sc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){un(i.doc,Fi(a,l),Q),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=fe(l.line-1,qe(n.doc,l.line-1).length)),u.ch==qe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=fe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var m,y,w;l.line==i.viewFrom||(m=So(n,l.line))==0?(y=A(i.view[0].line),w=i.view[0].node):(y=A(i.view[m].line),w=i.view[m-1].node.nextSibling);var S=So(n,u.line),T,H;if(S==i.view.length-1?(T=i.viewTo-1,H=i.lineDiv.lastChild):(T=A(i.view[S+1].line)-1,H=i.view[S+1].node.previousSibling),!w)return!1;for(var V=n.doc.splitLines(LS(n,w,H,y,T)),oe=ii(n.doc,fe(y,0),fe(T,qe(n.doc,T).text.length));V.length>1&&oe.length>1;)if(xe(V)==xe(oe))V.pop(),oe.pop(),T--;else if(V[0]==oe[0])V.shift(),oe.shift(),y++;else break;for(var te=0,pe=0,we=V[0],Te=oe[0],Le=Math.min(we.length,Te.length);te<Le&&we.charCodeAt(te)==Te.charCodeAt(te);)++te;for(var De=xe(V),Me=xe(oe),ze=Math.min(De.length-(V.length==1?te:0),Me.length-(oe.length==1?te:0));pe<ze&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)++pe;if(V.length==1&&oe.length==1&&y==l.line)for(;te&&te>l.ch&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)te--,pe++;V[V.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),V[0]=V[0].slice(te).replace(/\u200b+$/,"");var Ye=fe(y,te),Ue=fe(T,oe.length?xe(oe).length-pe:0);if(V.length>1||V[0]||Ie(Ye,Ue))return ms(n.doc,V,Ye,Ue,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return _n(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Qt(this.cm,sd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Hm(n,i){var a=Af(n,i.line);if(!a||a.hidden)return null;var l=qe(n.doc,i.line),u=gg(a,l,i.line),m=lt(l,n.doc.direction),y="left";if(m){var w=Bt(m,i.ch);y=w%2?"right":"left"}var S=yg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function AS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function xs(n,i){return i&&(n.bad=!0),n}function LS(n,i,a,l,u){var m="",y=!1,w=n.doc.lineSeparator(),S=!1;function T(te){return function(pe){return pe.id==te}}function H(){y&&(m+=w,S&&(m+=w),y=S=!1)}function V(te){te&&(H(),m+=te)}function oe(te){if(te.nodeType==1){var pe=te.getAttribute("cm-text");if(pe){V(pe);return}var we=te.getAttribute("cm-marker"),Te;if(we){var Le=n.findMarks(fe(l,0),fe(u+1,0),T(+we));Le.length&&(Te=Le[0].find(0))&&V(ii(n.doc,Te.from,Te.to).join(w));return}if(te.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;De&&H();for(var Me=0;Me<te.childNodes.length;Me++)oe(te.childNodes[Me]);/^(pre|p)$/i.test(te.nodeName)&&(S=!0),De&&(y=!0)}else te.nodeType==3&&V(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;oe(i),i!=a;)i=i.nextSibling,S=!1;return m}function Sc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return xs(n.clipPos(fe(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var m=n.display.view[u];if(m.node==l)return MS(m,i,a)}}function MS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ae(l,i))return xs(fe(A(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var m=n.rest?xe(n.rest):n.line;return xs(fe(A(m),m.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,T=S.maps;function H(Te,Le,De){for(var Me=-1;Me<(T?T.length:0);Me++)for(var ze=Me<0?S.map:T[Me],Ye=0;Ye<ze.length;Ye+=3){var Ue=ze[Ye+2];if(Ue==Te||Ue==Le){var st=A(Me<0?n.line:n.rest[Me]),St=ze[Ye]+De;return(De<0||Ue!=Te)&&(St=ze[Ye+(De?1:0)]),fe(st,St)}}}var V=H(y,w,a);if(V)return xs(V,u);for(var oe=w.nextSibling,te=y?y.nodeValue.length-a:0;oe;oe=oe.nextSibling){if(V=H(oe,oe.firstChild,0),V)return xs(fe(V.line,V.ch-te),u);te+=oe.textContent.length}for(var pe=w.previousSibling,we=a;pe;pe=pe.previousSibling){if(V=H(pe,pe.firstChild,-1),V)return xs(fe(V.line,V.ch+we),u);we+=pe.textContent.length}}var Wt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new se,this.hasSelection=!1,this.composing=null,this.resetting=!1};Wt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),P&&(u.style.width="0px"),Xe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Xe(u,"paste",function(y){Pt(l,y)||$m(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!Pt(l,y)){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=Dm(l);kc({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,Q):(a.prevInput="",u.value=w.text.join(`
`),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Xe(u,"cut",m),Xe(u,"copy",m),Xe(n.scroller,"paste",function(y){if(!(li(n,y)||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)}}),Xe(n.lineSpace,"selectstart",function(y){li(n,y)||cn(y)}),Xe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Wt.prototype.createField=function(n){this.wrapper=zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;ld(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Wt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Lg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},Wt.prototype.showSelection=function(n){var i=this.cm,a=i.display;C(a.cursorDiv,n.cursors),C(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Wt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||be(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Wt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Wt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Pi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||z&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l=""),m==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(){sd(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=ko(a,n),y=l.scroller.scrollTop;if(!m||E)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(m)==-1&&Qt(a,un)(a.doc,Fi(m),Q);var S=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.left-5)+`px;
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=te,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function oe(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te=""+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function te(){if(i.contextMenuPending==te&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&oe();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Qt(a,om)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&oe(),G){Oi(n);var pe=function(){an(window,"mouseup",pe),setTimeout(te,20)};Xe(window,"mouseup",pe)}else setTimeout(te,50)},Wt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function NS(n,i){if(i=i?Z(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=be(Fe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Xe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(an(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return w}function OS(n){n.off=an,n.on=Xe,n.wheelEventPixels=Fk,n.Doc=Tn,n.splitLines=cr,n.countColumn=ne,n.findColumn=ge,n.isWordChar=Je,n.Pass=q,n.signal=Rt,n.Line=os,n.changeEnd=Hi,n.scrollbarModel=$g,n.Pos=fe,n.cmpPos=Ie,n.modes=Qo,n.mimeModes=xr,n.resolveMode=es,n.getMode=ts,n.modeExtensions=$i,n.extendMode=ns,n.copyState=Br,n.startState=rs,n.innerMode=al,n.commands=Ol,n.keyMap=ci,n.keyName=xm,n.isModifierKey=bm,n.lookupKey=ys,n.normalizeKeyMap=lS,n.StringStream=$t,n.SharedTextMarker=Ll,n.TextMarker=Wi,n.LineWidget=Al,n.e_preventDefault=cn,n.e_stopPropagation=Zo,n.e_stop=Oi,n.addClass=Se,n.contains=ae,n.rmClass=L,n.keyNames=qi}SS(Ct),ES(Ct);var RS="iter insert remove copy getEditor constructor".split(" ");for(var _c in Tn.prototype)Tn.prototype.hasOwnProperty(_c)&&ce(RS,_c)<0&&(Ct.prototype[_c]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Tn.prototype[_c]));return yr(Tn),Ct.inputStyles={textarea:Wt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),kr.apply(this,arguments)},Ct.defineMIME=bo,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){Tn.prototype[n]=i},Ct.fromTextArea=NS,OS(Ct),Ct.version="5.65.18",Ct}))})(Yc)),Yc.exports}var LL=vo();const ML=lx(LL);var Ad={},Er={};const NL="Á",OL="á",RL="Ă",PL="ă",$L="∾",IL="∿",DL="∾̳",zL="Â",FL="â",HL="´",BL="А",WL="а",qL="Æ",jL="æ",UL="",VL="𝔄",GL="𝔞",KL="À",XL="à",YL="ℵ",ZL="ℵ",JL="Α",QL="α",eM="Ā",tM="ā",nM="⨿",rM="&",iM="&",oM="⩕",sM="⩓",lM="∧",aM="⩜",cM="⩘",uM="⩚",fM="∠",dM="⦤",hM="∠",pM="⦨",gM="⦩",mM="⦪",vM="⦫",yM="⦬",bM="⦭",wM="⦮",xM="⦯",kM="∡",SM="∟",_M="⊾",TM="⦝",CM="∢",EM="Å",AM="⍼",LM="Ą",MM="ą",NM="𝔸",OM="𝕒",RM="⩯",PM="≈",$M="⩰",IM="≊",DM="≋",zM="'",FM="",HM="≈",BM="≊",WM="Å",qM="å",jM="𝒜",UM="𝒶",VM="≔",GM="*",KM="≈",XM="≍",YM="Ã",ZM="ã",JM="Ä",QM="ä",eN="∳",tN="⨑",nN="≌",rN="϶",iN="",oN="∽",sN="⋍",lN="",aN="⫧",cN="⊽",uN="⌅",fN="⌆",dN="⌅",hN="⎵",pN="⎶",gN="≌",mN="Б",vN="б",yN="„",bN="∵",wN="∵",xN="∵",kN="⦰",SN="϶",_N="",TN="",CN="Β",EN="β",AN="ℶ",LN="≬",MN="𝔅",NN="𝔟",ON="⋂",RN="◯",PN="",$N="⨀",IN="⨁",DN="⨂",zN="⨆",FN="★",HN="▽",BN="△",WN="⨄",qN="",jN="⋀",UN="⤍",VN="⧫",GN="▪",KN="▴",XN="▾",YN="◂",ZN="▸",JN="␣",QN="▒",eO="░",tO="▓",nO="█",rO="=⃥",iO="≡⃥",oO="⫭",sO="⌐",lO="𝔹",aO="𝕓",cO="⊥",uO="⊥",fO="⋈",dO="⧉",hO="┐",pO="╕",gO="╖",mO="╗",vO="┌",yO="╒",bO="╓",wO="╔",xO="─",kO="═",SO="┬",_O="╤",TO="╥",CO="╦",EO="┴",AO="╧",LO="╨",MO="╩",NO="⊟",OO="⊞",RO="⊠",PO="┘",$O="╛",IO="╜",DO="╝",zO="└",FO="╘",HO="╙",BO="╚",WO="│",qO="║",jO="┼",UO="╪",VO="╫",GO="╬",KO="┤",XO="╡",YO="╢",ZO="╣",JO="├",QO="╞",e2="╟",t2="╠",n2="",r2="˘",i2="˘",o2="¦",s2="𝒷",l2="",a2="⁏",c2="∽",u2="⋍",f2="⧅",d2="\\",h2="⟈",p2="•",g2="•",m2="≎",v2="⪮",y2="≏",b2="≎",w2="≏",x2="Ć",k2="ć",S2="⩄",_2="⩉",T2="⩋",C2="∩",E2="⋒",A2="⩇",L2="⩀",M2="",N2="∩︀",O2="",R2="ˇ",P2="",$2="⩍",I2="Č",D2="č",z2="Ç",F2="ç",H2="Ĉ",B2="ĉ",W2="∰",q2="⩌",j2="⩐",U2="Ċ",V2="ċ",G2="¸",K2="¸",X2="⦲",Y2="¢",Z2="·",J2="·",Q2="𝔠",eR="",tR="Ч",nR="ч",rR="✓",iR="✓",oR="Χ",sR="χ",lR="ˆ",aR="≗",cR="↺",uR="↻",fR="⊛",dR="⊚",hR="⊝",pR="⊙",gR="®",mR="Ⓢ",vR="⊖",yR="⊕",bR="⊗",wR="○",xR="⧃",kR="≗",SR="⨐",_R="⫯",TR="⧂",CR="∲",ER="”",AR="",LR="♣",MR="♣",NR=":",OR="∷",RR="⩴",PR="≔",$R="≔",IR=",",DR="@",zR="∁",FR="∘",HR="∁",BR="",WR="≅",qR="⩭",jR="≡",UR="∮",VR="∯",GR="∮",KR="𝕔",XR="",YR="∐",ZR="∐",JR="©",QR="©",eP="℗",tP="∳",nP="↵",rP="✗",iP="",oP="𝒞",sP="𝒸",lP="⫏",aP="⫑",cP="⫐",uP="⫒",fP="⋯",dP="⤸",hP="⤵",pP="⋞",gP="⋟",mP="↶",vP="⤽",yP="⩈",bP="⩆",wP="≍",xP="",kP="⋓",SP="⩊",_P="⊍",TP="⩅",CP="",EP="↷",AP="⤼",LP="⋞",MP="⋟",NP="⋎",OP="⋏",RP="¤",PP="↶",$P="↷",IP="⋎",DP="⋏",zP="∲",FP="∱",HP="⌭",BP="†",WP="‡",qP="ℸ",jP="↓",UP="↡",VP="⇓",GP="",KP="⫤",XP="⊣",YP="⤏",ZP="˝",JP="Ď",QP="ď",e$="Д",t$="д",n$="‡",r$="⇊",i$="",o$="",s$="⤑",l$="⩷",a$="°",c$="∇",u$="Δ",f$="δ",d$="⦱",h$="⥿",p$="𝔇",g$="𝔡",m$="⥥",v$="⇃",y$="⇂",b$="´",w$="˙",x$="˝",k$="`",S$="˜",_$="⋄",T$="⋄",C$="⋄",E$="♦",A$="♦",L$="¨",M$="",N$="ϝ",O$="⋲",R$="÷",P$="÷",$$="⋇",I$="⋇",D$="Ђ",z$="ђ",F$="⌞",H$="⌍",B$="$",W$="𝔻",q$="𝕕",j$="¨",U$="˙",V$="⃜",G$="≐",K$="≑",X$="≐",Y$="∸",Z$="∔",J$="⊡",Q$="⌆",eI="∯",tI="¨",nI="⇓",rI="⇐",iI="⇔",oI="⫤",sI="⟸",lI="⟺",aI="⟹",cI="⇒",uI="⊨",fI="⇑",dI="⇕",hI="∥",pI="⤓",gI="↓",mI="↓",vI="⇓",yI="⇵",bI="̑",wI="⇊",xI="⇃",kI="⇂",SI="⥐",_I="⥞",TI="⥖",CI="↽",EI="⥟",AI="⥗",LI="⇁",MI="↧",NI="",OI="⤐",RI="⌟",PI="⌌",$I="𝒟",II="𝒹",DI="Ѕ",zI="ѕ",FI="⧶",HI="Đ",BI="đ",WI="⋱",qI="▿",jI="▾",UI="⇵",VI="⥯",GI="⦦",KI="Џ",XI="џ",YI="⟿",ZI="É",JI="é",QI="⩮",eD="Ě",tD="ě",nD="Ê",rD="ê",iD="≖",oD="≕",sD="Э",lD="э",aD="⩷",cD="Ė",uD="ė",fD="≑",dD="",hD="≒",pD="𝔈",gD="𝔢",mD="⪚",vD="È",yD="è",bD="⪖",wD="⪘",xD="⪙",kD="∈",SD="⏧",_D="",TD="⪕",CD="⪗",ED="Ē",AD="ē",LD="∅",MD="∅",ND="◻",OD="∅",RD="▫",PD="",$D="",ID="",DD="Ŋ",zD="ŋ",FD="",HD="Ę",BD="ę",WD="𝔼",qD="𝕖",jD="⋕",UD="⧣",VD="⩱",GD="ε",KD="Ε",XD="ε",YD="ϵ",ZD="≖",JD="≕",QD="≂",ez="⪖",tz="⪕",nz="⩵",rz="=",iz="≂",oz="≟",sz="⇌",lz="≡",az="⩸",cz="⧥",uz="⥱",fz="≓",dz="",hz="",pz="≐",gz="⩳",mz="≂",vz="Η",yz="η",bz="Ð",wz="ð",xz="Ë",kz="ë",Sz="€",_z="!",Tz="∃",Cz="∃",Ez="",Az="",Lz="",Mz="≒",Nz="Ф",Oz="ф",Rz="♀",Pz="ffi",$z="ff",Iz="ffl",Dz="𝔉",zz="𝔣",Fz="fi",Hz="◼",Bz="▪",Wz="fj",qz="♭",jz="fl",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="⅞",mF="",vF="⌢",yF="𝒻",bF="",wF="ǵ",xF="Γ",kF="γ",SF="Ϝ",_F="ϝ",TF="⪆",CF="Ğ",EF="ğ",AF="Ģ",LF="Ĝ",MF="ĝ",NF="Г",OF="г",RF="Ġ",PF="ġ",$F="≥",IF="≧",DF="⪌",zF="⋛",FF="≥",HF="≧",BF="⩾",WF="⪩",qF="⩾",jF="⪀",UF="⪂",VF="⪄",GF="⋛︀",KF="⪔",XF="𝔊",YF="𝔤",ZF="≫",JF="⋙",QF="⋙",eH="ℷ",tH="Ѓ",nH="ѓ",rH="⪥",iH="≷",oH="⪒",sH="⪤",lH="⪊",aH="⪊",cH="⪈",uH="≩",fH="⪈",dH="≩",hH="⋧",pH="𝔾",gH="𝕘",mH="`",vH="≥",yH="⋛",bH="≧",wH="⪢",xH="≷",kH="⩾",SH="≳",_H="𝒢",TH="",CH="≳",EH="⪎",AH="⪐",LH="⪧",MH="⩺",NH=">",OH=">",RH="≫",PH="⋗",$H="⦕",IH="⩼",DH="⪆",zH="⥸",FH="⋗",HH="⋛",BH="⪌",WH="≷",qH="≳",jH="≩︀",UH="≩︀",VH="ˇ",GH="",KH="½",XH="",YH="Ъ",ZH="ъ",JH="⥈",QH="↔",e3="⇔",t3="↭",n3="^",r3="ℏ",i3="Ĥ",o3="ĥ",s3="♥",l3="♥",a3="…",c3="⊹",u3="𝔥",f3="",d3="",h3="⤥",p3="⤦",g3="⇿",m3="∻",v3="↩",y3="↪",b3="𝕙",w3="",x3="―",k3="─",S3="𝒽",_3="",T3="ℏ",C3="Ħ",E3="ħ",A3="≎",L3="≏",M3="",N3="",O3="Í",R3="í",P3="",$3="Î",I3="î",D3="И",z3="и",F3="İ",H3="Е",B3="е",W3="¡",q3="⇔",j3="𝔦",U3="",V3="Ì",G3="ì",K3="",X3="⨌",Y3="∭",Z3="⧜",J3="℩",Q3="IJ",eB="ij",tB="Ī",nB="ī",rB="",iB="",oB="",sB="",lB="ı",aB="",cB="⊷",uB="Ƶ",fB="⇒",dB="℅",hB="∞",pB="⧝",gB="ı",mB="⊺",vB="∫",yB="∬",bB="",wB="∫",xB="⊺",kB="⋂",SB="⨗",_B="⨼",TB="",CB="",EB="Ё",AB="ё",LB="Į",MB="į",NB="𝕀",OB="𝕚",RB="Ι",PB="ι",$B="⨼",IB="¿",DB="𝒾",zB="",FB="∈",HB="⋵",BB="⋹",WB="⋴",qB="⋳",jB="∈",UB="",VB="Ĩ",GB="ĩ",KB="І",XB="і",YB="Ï",ZB="ï",JB="Ĵ",QB="ĵ",e5="Й",t5="й",n5="𝔍",r5="𝔧",i5="ȷ",o5="𝕁",s5="𝕛",l5="𝒥",a5="𝒿",c5="Ј",u5="ј",f5="Є",d5="є",h5="Κ",p5="κ",g5="ϰ",m5="Ķ",v5="ķ",y5="К",b5="к",w5="𝔎",x5="𝔨",k5="ĸ",S5="Х",_5="х",T5="Ќ",C5="ќ",E5="𝕂",A5="𝕜",L5="𝒦",M5="𝓀",N5="⇚",O5="Ĺ",R5="ĺ",P5="⦴",$5="",I5="Λ",D5="λ",z5="⟨",F5="⟪",H5="⦑",B5="⟨",W5="⪅",q5="",j5="«",U5="⇤",V5="⤟",G5="←",K5="↞",X5="⇐",Y5="⤝",Z5="↩",J5="↫",Q5="⤹",e8="⥳",t8="↢",n8="⤙",r8="⤛",i8="⪫",o8="⪭",s8="⪭︀",l8="⤌",a8="⤎",c8="",u8="{",f8="[",d8="⦋",h8="⦏",p8="⦍",g8="Ľ",m8="ľ",v8="Ļ",y8="ļ",b8="⌈",w8="{",x8="Л",k8="л",S8="⤶",_8="“",T8="„",C8="⥧",E8="⥋",A8="↲",L8="≤",M8="≦",N8="⟨",O8="⇤",R8="←",P8="←",$8="⇐",I8="⇆",D8="↢",z8="⌈",F8="⟦",H8="⥡",B8="⥙",W8="⇃",q8="⌊",j8="↽",U8="↼",V8="⇇",G8="↔",K8="↔",X8="⇔",Y8="⇆",Z8="⇋",J8="↭",Q8="⥎",eW="↤",tW="⊣",nW="⥚",rW="⋋",iW="⧏",oW="⊲",sW="⊴",lW="⥑",aW="⥠",cW="⥘",uW="↿",fW="⥒",dW="↼",hW="⪋",pW="⋚",gW="≤",mW="≦",vW="⩽",yW="⪨",bW="⩽",wW="⩿",xW="⪁",kW="⪃",SW="⋚︀",_W="⪓",TW="⪅",CW="⋖",EW="⋚",AW="⪋",LW="⋚",MW="≦",NW="≶",OW="≶",RW="⪡",PW="≲",$W="⩽",IW="≲",DW="⥼",zW="⌊",FW="𝔏",HW="𝔩",BW="≶",WW="⪑",qW="⥢",jW="↽",UW="↼",VW="⥪",GW="▄",KW="Љ",XW="љ",YW="⇇",ZW="≪",JW="⋘",QW="⌞",e4="⇚",t4="⥫",n4="◺",r4="Ŀ",i4="ŀ",o4="⎰",s4="⎰",l4="⪉",a4="⪉",c4="⪇",u4="≨",f4="⪇",d4="≨",h4="⋦",p4="⟬",g4="⇽",m4="⟦",v4="⟵",y4="⟵",b4="⟸",w4="⟷",x4="⟷",k4="⟺",S4="⟼",_4="⟶",T4="⟶",C4="⟹",E4="↫",A4="↬",L4="⦅",M4="𝕃",N4="𝕝",O4="⨭",R4="⨴",P4="",$4="_",I4="↙",D4="↘",z4="◊",F4="◊",H4="⧫",B4="(",W4="⦓",q4="⇆",j4="⌟",U4="⇋",V4="⥭",G4="",K4="⊿",X4="",Y4="𝓁",Z4="",J4="↰",Q4="↰",eq="≲",tq="⪍",nq="⪏",rq="[",iq="",oq="",sq="Ł",lq="ł",aq="⪦",cq="⩹",uq="<",fq="<",dq="≪",hq="⋖",pq="⋋",gq="⋉",mq="⥶",vq="⩻",yq="◃",bq="⊴",wq="◂",xq="⦖",kq="⥊",Sq="⥦",_q="≨︀",Tq="≨︀",Cq="¯",Eq="♂",Aq="✠",Lq="✠",Mq="↦",Nq="↦",Oq="↧",Rq="↤",Pq="↥",$q="▮",Iq="⨩",Dq="М",zq="м",Fq="—",Hq="∺",Bq="∡",Wq="",qq="",jq="𝔐",Uq="𝔪",Vq="℧",Gq="µ",Kq="*",Xq="⫰",Yq="",Zq="·",Jq="⊟",Qq="",ej="∸",tj="⨪",nj="∓",rj="⫛",ij="…",oj="∓",sj="⊧",lj="𝕄",aj="𝕞",cj="∓",uj="𝓂",fj="",dj="∾",hj="Μ",pj="μ",gj="⊸",mj="⊸",vj="∇",yj="Ń",bj="ń",wj="∠⃒",xj="≉",kj="⩰̸",Sj="≋̸",_j="ʼn",Tj="≉",Cj="♮",Ej="",Aj="♮",Lj=" ",Mj="≎̸",Nj="≏̸",Oj="⩃",Rj="Ň",Pj="ň",$j="Ņ",Ij="ņ",Dj="≇",zj="⩭̸",Fj="⩂",Hj="Н",Bj="н",Wj="",qj="⤤",jj="↗",Uj="⇗",Vj="↗",Gj="≠",Kj="≐̸",Xj="",Yj="",Zj="",Jj="",Qj="≢",eU="⤨",tU="≂̸",nU="≫",rU="≪",iU=`
`,oU="∄",sU="∄",lU="𝔑",aU="𝔫",cU="≧̸",uU="≱",fU="≱",dU="≧̸",hU="⩾̸",pU="⩾̸",gU="⋙̸",mU="≵",vU="≫⃒",yU="≯",bU="≯",wU="≫̸",xU="↮",kU="⇎",SU="⫲",_U="∋",TU="⋼",CU="⋺",EU="∋",AU="Њ",LU="њ",MU="↚",NU="⇍",OU="‥",RU="≦̸",PU="≰",$U="↚",IU="⇍",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="≹",m6="⩾̸",v6="≵",y6="≎̸",b6="≏̸",w6="∉",x6="⋵̸",k6="⋹̸",S6="∉",_6="⋷",T6="⋶",C6="⧏̸",E6="⋪",A6="⋬",L6="≮",M6="≰",N6="≸",O6="≪̸",R6="⩽̸",P6="≴",$6="⪢̸",I6="⪡̸",D6="∌",z6="∌",F6="⋾",H6="⋽",B6="⊀",W6="⪯̸",q6="⋠",j6="∌",U6="⧐̸",V6="⋫",G6="⋭",K6="⊏̸",X6="⋢",Y6="⊐̸",Z6="⋣",J6="⊂⃒",Q6="⊈",eV="⊁",tV="⪰̸",nV="⋡",rV="≿̸",iV="⊃⃒",oV="⊉",sV="≁",lV="≄",aV="≇",cV="≉",uV="∤",fV="∦",dV="∦",hV="⫽⃥",pV="∂̸",gV="⨔",mV="⊀",vV="⋠",yV="⊀",bV="⪯̸",wV="⪯̸",xV="⤳̸",kV="↛",SV="⇏",_V="↝̸",TV="↛",CV="⇏",EV="⋫",AV="⋭",LV="⊁",MV="⋡",NV="⪰̸",OV="𝒩",RV="𝓃",PV="∤",$V="∦",IV="≁",DV="≄",zV="≄",FV="∤",HV="∦",BV="⋢",WV="⋣",qV="⊄",jV="⫅̸",UV="⊈",VV="⊂⃒",GV="⊈",KV="⫅̸",XV="⊁",YV="⪰̸",ZV="⊅",JV="⫆̸",QV="⊉",eG="⊃⃒",tG="⊉",nG="⫆̸",rG="≹",iG="Ñ",oG="ñ",sG="≸",lG="⋪",aG="⋬",cG="⋫",uG="⋭",fG="Ν",dG="ν",hG="#",pG="№",gG="",mG="≍⃒",vG="⊬",yG="⊭",bG="⊮",wG="⊯",xG="≥⃒",kG=">⃒",SG="⤄",_G="⧞",TG="⤂",CG="≤⃒",EG="<⃒",AG="⊴⃒",LG="⤃",MG="⊵⃒",NG="∼⃒",OG="⤣",RG="↖",PG="⇖",$G="↖",IG="⤧",DG="Ó",zG="ó",FG="⊛",HG="Ô",BG="ô",WG="⊚",qG="О",jG="о",UG="⊝",VG="Ő",GG="ő",KG="⨸",XG="⊙",YG="⦼",ZG="Œ",JG="œ",QG="⦿",e9="𝔒",t9="𝔬",n9="˛",r9="Ò",i9="ò",o9="⧁",s9="⦵",l9="Ω",a9="∮",c9="↺",u9="⦾",f9="⦻",d9="‾",h9="⧀",p9="Ō",g9="ō",m9="Ω",v9="ω",y9="Ο",b9="ο",w9="⦶",x9="⊖",k9="𝕆",S9="𝕠",_9="⦷",T9="“",C9="",E9="⦹",A9="⊕",L9="↻",M9="⩔",N9="",O9="⩝",R9="",P9="",$9="ª",I9="º",D9="⊶",z9="⩖",F9="⩗",H9="⩛",B9="Ⓢ",W9="𝒪",q9="",j9="Ø",U9="ø",V9="⊘",G9="Õ",K9="õ",X9="⨶",Y9="⨷",Z9="⊗",J9="Ö",Q9="ö",eK="⌽",tK="‾",nK="⏞",rK="⎴",iK="⏜",oK="¶",sK="∥",lK="∥",aK="⫳",cK="⫽",uK="∂",fK="∂",dK="П",hK="п",pK="%",gK=".",mK="‰",vK="⊥",yK="‱",bK="𝔓",wK="𝔭",xK="Φ",kK="φ",SK="ϕ",_K="",TK="☎",CK="Π",EK="π",AK="⋔",LK="ϖ",MK="ℏ",NK="",OK="ℏ",RK="⨣",PK="⊞",$K="⨢",IK="+",DK="∔",zK="⨥",FK="⩲",HK="±",BK="±",WK="⨦",qK="⨧",jK="±",UK="",VK="⨕",GK="𝕡",KK="",XK="£",YK="⪷",ZK="⪻",JK="≺",QK="≼",e7="⪷",t7="≺",n7="≼",r7="≺",i7="⪯",o7="≼",s7="≾",l7="⪯",a7="⪹",c7="⪵",u7="⋨",f7="⪯",d7="⪳",h7="≾",p7="",g7="″",m7="",v7="⪹",y7="⪵",b7="⋨",w7="∏",x7="∏",k7="⌮",S7="⌒",_7="⌓",T7="∝",C7="∝",E7="∷",A7="∝",L7="≾",M7="⊰",N7="𝒫",O7="𝓅",R7="Ψ",P7="ψ",$7="",I7="𝔔",D7="𝔮",z7="⨌",F7="𝕢",H7="",B7="⁗",W7="𝒬",q7="𝓆",j7="",U7="⨖",V7="?",G7="≟",K7='"',X7='"',Y7="⇛",Z7="∽̱",J7="Ŕ",Q7="ŕ",eX="√",tX="⦳",nX="⟩",rX="⟫",iX="⦒",oX="⦥",sX="⟩",lX="»",aX="⥵",cX="⇥",uX="⤠",fX="⤳",dX="→",hX="↠",pX="⇒",gX="⤞",mX="↪",vX="↬",yX="⥅",bX="⥴",wX="⤖",xX="↣",kX="↝",SX="⤚",_X="⤜",TX="",CX="",EX="⤍",AX="⤏",LX="⤐",MX="",NX="}",OX="]",RX="⦌",PX="⦎",$X="⦐",IX="Ř",DX="ř",zX="Ŗ",FX="ŗ",HX="⌉",BX="}",WX="Р",qX="р",jX="⤷",UX="⥩",VX="”",GX="”",KX="↳",XX="",YX="",ZX="",JX="",QX="",eY="▭",tY="®",nY="®",rY="∋",iY="⇋",oY="⥯",sY="⥽",lY="⌋",aY="𝔯",cY="",uY="⥤",fY="⇁",dY="⇀",hY="⥬",pY="Ρ",gY="ρ",mY="ϱ",vY="⟩",yY="⇥",bY="→",wY="→",xY="⇒",kY="⇄",SY="↣",_Y="⌉",TY="⟧",CY="⥝",EY="⥕",AY="⇂",LY="⌋",MY="⇁",NY="⇀",OY="⇄",RY="⇌",PY="⇉",$Y="↝",IY="↦",DY="⊢",zY="⥛",FY="⋌",HY="⧐",BY="⊳",WY="⊵",qY="⥏",jY="⥜",UY="⥔",VY="↾",GY="⥓",KY="⇀",XY="˚",YY="≓",ZY="⇄",JY="⇌",QY="",eZ="⎱",tZ="⎱",nZ="⫮",rZ="⟭",iZ="⇾",oZ="⟧",sZ="⦆",lZ="𝕣",aZ="",cZ="⨮",uZ="⨵",fZ="⥰",dZ=")",hZ="⦔",pZ="⨒",gZ="⇉",mZ="⇛",vZ="",yZ="𝓇",bZ="",wZ="↱",xZ="↱",kZ="]",SZ="",_Z="",TZ="⋌",CZ="⋊",EZ="▹",AZ="⊵",LZ="▸",MZ="⧎",NZ="⧴",OZ="⥨",RZ="℞",PZ="Ś",$Z="ś",IZ="",DZ="⪸",zZ="Š",FZ="š",HZ="⪼",BZ="≻",WZ="≽",qZ="⪰",jZ="⪴",UZ="Ş",VZ="ş",GZ="Ŝ",KZ="ŝ",XZ="⪺",YZ="⪶",ZZ="⋩",JZ="⨓",QZ="≿",eJ="С",tJ="с",nJ="⊡",rJ="⋅",iJ="⩦",oJ="⤥",sJ="↘",lJ="⇘",aJ="↘",cJ="§",uJ=";",fJ="⤩",dJ="",hJ="",pJ="✶",gJ="𝔖",mJ="𝔰",vJ="⌢",yJ="♯",bJ="Щ",wJ="щ",xJ="Ш",kJ="ш",SJ="↓",_J="←",TJ="",CJ="∥",EJ="→",AJ="↑",LJ="­",MJ="Σ",NJ="σ",OJ="ς",RJ="ς",PJ="",$J="⩪",IJ="≃",DJ="≃",zJ="⪞",FJ="⪠",HJ="⪝",BJ="⪟",WJ="≆",qJ="⨤",jJ="⥲",UJ="←",VJ="∘",GJ="",KJ="⨳",XJ="⧤",YJ="",ZJ="⌣",JJ="⪪",QJ="⪬",eQ="⪬︀",tQ="Ь",nQ="ь",rQ="⌿",iQ="⧄",oQ="/",sQ="𝕊",lQ="𝕤",aQ="♠",cQ="♠",uQ="∥",fQ="⊓",dQ="⊓︀",hQ="⊔",pQ="⊔︀",gQ="√",mQ="⊏",vQ="⊑",yQ="⊏",bQ="⊑",wQ="⊐",xQ="⊒",kQ="⊐",SQ="⊒",_Q="□",TQ="□",CQ="⊓",EQ="⊏",AQ="⊑",LQ="⊐",MQ="⊒",NQ="⊔",OQ="▪",RQ="□",PQ="▪",$Q="→",IQ="𝒮",DQ="𝓈",zQ="",FQ="⌣",HQ="⋆",BQ="⋆",WQ="☆",qQ="★",jQ="ϵ",UQ="ϕ",VQ="¯",GQ="⊂",KQ="⋐",XQ="⪽",YQ="⫅",ZQ="⊆",JQ="⫃",QQ="⫁",eee="⫋",tee="⊊",nee="⪿",ree="⥹",iee="⊂",oee="⋐",see="⊆",lee="⫅",aee="⊆",cee="⊊",uee="⫋",fee="⫇",dee="⫕",hee="⫓",pee="⪸",gee="≻",mee="≽",vee="≻",yee="⪰",bee="≽",wee="≿",xee="⪰",kee="⪺",See="⪶",_ee="⋩",Tee="≿",Cee="∋",Eee="∑",Aee="∑",Lee="♪",Mee="¹",Nee="²",Oee="³",Ree="⊃",Pee="⋑",$ee="⪾",Iee="⫘",Dee="⫆",zee="⊇",Fee="⫄",Hee="⊃",Bee="⊇",Wee="⟉",qee="⫗",jee="⥻",Uee="⫂",Vee="⫌",Gee="⊋",Kee="⫀",Xee="⊃",Yee="⋑",Zee="⊇",Jee="⫆",Qee="⊋",ete="⫌",tte="⫈",nte="⫔",rte="⫖",ite="⤦",ote="↙",ste="⇙",lte="↙",ate="⤪",cte="ß",ute=" ",fte="⌖",dte="Τ",hte="τ",pte="⎴",gte="Ť",mte="ť",vte="Ţ",yte="ţ",bte="Т",wte="т",xte="⃛",kte="⌕",Ste="𝔗",_te="𝔱",Tte="∴",Cte="∴",Ete="∴",Ate="Θ",Lte="θ",Mte="ϑ",Nte="ϑ",Ote="≈",Rte="",Pte="",$te="",Ite="",Dte="≈",zte="",Fte="Þ",Hte="þ",Bte="˜",Wte="",qte="≃",jte="≅",Ute="≈",Vte="⨱",Gte="⊠",Kte="×",Xte="⨰",Yte="∭",Zte="⤨",Jte="⌶",Qte="⫱",ene="",tne="𝕋",nne="𝕥",rne="⫚",ine="⤩",one="‴",sne="™",lne="™",ane="▵",cne="▿",une="◃",fne="⊴",dne="≜",hne="▹",pne="⊵",gne="◬",mne="≜",vne="⨺",yne="⃛",bne="⨹",wne="⧍",xne="⨻",kne="⏢",Sne="𝒯",_ne="𝓉",Tne="Ц",Cne="ц",Ene="Ћ",Ane="ћ",Lne="Ŧ",Mne="ŧ",Nne="≬",One="↞",Rne="↠",Pne="Ú",$ne="ú",Ine="↑",Dne="↟",zne="⇑",Fne="⥉",Hne="Ў",Bne="ў",Wne="Ŭ",qne="ŭ",jne="Û",Une="û",Vne="У",Gne="у",Kne="⇅",Xne="Ű",Yne="ű",Zne="⥮",Jne="⥾",Qne="𝔘",ere="𝔲",tre="Ù",nre="ù",rre="⥣",ire="↿",ore="↾",sre="▀",lre="⌜",are="⌜",cre="⌏",ure="◸",fre="Ū",dre="ū",hre="¨",pre="_",gre="⏟",mre="⎵",vre="⏝",yre="",bre="⊎",wre="Ų",xre="ų",kre="𝕌",Sre="𝕦",_re="⤒",Tre="↑",Cre="↑",Ere="⇑",Are="⇅",Lre="↕",Mre="↕",Nre="⇕",Ore="⥮",Rre="↿",Pre="↾",$re="⊎",Ire="↖",Dre="↗",zre="υ",Fre="ϒ",Hre="ϒ",Bre="Υ",Wre="υ",qre="↥",jre="⊥",Ure="⇈",Vre="⌝",Gre="⌝",Kre="⌎",Xre="Ů",Yre="ů",Zre="◹",Jre="𝒰",Qre="𝓊",eie="⋰",tie="Ũ",nie="ũ",rie="▵",iie="▴",oie="⇈",sie="Ü",lie="ü",aie="⦧",cie="⦜",uie="ϵ",fie="ϰ",die="∅",hie="ϕ",pie="ϖ",gie="∝",mie="↕",vie="⇕",yie="ϱ",bie="ς",wie="⊊︀",xie="⫋︀",kie="⊋︀",Sie="⫌︀",_ie="ϑ",Tie="⊲",Cie="⊳",Eie="⫨",Aie="⫫",Lie="⫩",Mie="В",Nie="в",Oie="⊢",Rie="⊨",Pie="⊩",$ie="⊫",Iie="⫦",Die="⊻",zie="",Fie="",Hie="≚",Bie="⋮",Wie="|",qie="‖",jie="|",Uie="‖",Vie="",Gie="|",Kie="❘",Xie="≀",Yie="",Zie="𝔙",Jie="𝔳",Qie="⊲",eoe="⊂⃒",toe="⊃⃒",noe="𝕍",roe="𝕧",ioe="∝",ooe="⊳",soe="𝒱",loe="𝓋",aoe="⫋︀",coe="⊊︀",uoe="⫌︀",foe="⊋︀",doe="⊪",hoe="⦚",poe="Ŵ",goe="ŵ",moe="⩟",voe="∧",yoe="⋀",boe="≙",woe="℘",xoe="𝔚",koe="𝔴",Soe="𝕎",_oe="𝕨",Toe="℘",Coe="≀",Eoe="≀",Aoe="𝒲",Loe="𝓌",Moe="⋂",Noe="◯",Ooe="",Roe="▽",Poe="𝔛",$oe="𝔵",Ioe="⟷",Doe="⟺",zoe="Ξ",Foe="ξ",Hoe="⟵",Boe="⟸",Woe="⟼",qoe="⋻",joe="⨀",Uoe="𝕏",Voe="𝕩",Goe="⨁",Koe="⨂",Xoe="⟶",Yoe="⟹",Zoe="𝒳",Joe="𝓍",Qoe="⨆",ese="⨄",tse="△",nse="",rse="⋀",ise="Ý",ose="ý",sse="Я",lse="я",ase="Ŷ",cse="ŷ",use="Ы",fse="ы",dse="¥",hse="𝔜",pse="𝔶",gse="Ї",mse="ї",vse="𝕐",yse="𝕪",bse="𝒴",wse="𝓎",xse="Ю",kse="ю",Sse="ÿ",_se="Ÿ",Tse="Ź",Cse="ź",Ese="Ž",Ase="ž",Lse="З",Mse="з",Nse="Ż",Ose="ż",Rse="",Pse="",$se="Ζ",Ise="ζ",Dse="𝔷",zse="",Fse="Ж",Hse="ж",Bse="⇝",Wse="𝕫",qse="",jse="𝒵",Use="𝓏",Vse="",Gse="",ax={Aacute:NL,aacute:OL,Abreve:RL,abreve:PL,ac:$L,acd:IL,acE:DL,Acirc:zL,acirc:FL,acute:HL,Acy:BL,acy:WL,AElig:qL,aelig:jL,af:UL,Afr:VL,afr:GL,Agrave:KL,agrave:XL,alefsym:YL,aleph:ZL,Alpha:JL,alpha:QL,Amacr:eM,amacr:tM,amalg:nM,amp:rM,AMP:iM,andand:oM,And:sM,and:lM,andd:aM,andslope:cM,andv:uM,ang:fM,ange:dM,angle:hM,angmsdaa:pM,angmsdab:gM,angmsdac:mM,angmsdad:vM,angmsdae:yM,angmsdaf:bM,angmsdag:wM,angmsdah:xM,angmsd:kM,angrt:SM,angrtvb:_M,angrtvbd:TM,angsph:CM,angst:EM,angzarr:AM,Aogon:LM,aogon:MM,Aopf:NM,aopf:OM,apacir:RM,ap:PM,apE:$M,ape:IM,apid:DM,apos:zM,ApplyFunction:FM,approx:HM,approxeq:BM,Aring:WM,aring:qM,Ascr:jM,ascr:UM,Assign:VM,ast:GM,asymp:KM,asympeq:XM,Atilde:YM,atilde:ZM,Auml:JM,auml:QM,awconint:eN,awint:tN,backcong:nN,backepsilon:rN,backprime:iN,backsim:oN,backsimeq:sN,Backslash:lN,Barv:aN,barvee:cN,barwed:uN,Barwed:fN,barwedge:dN,bbrk:hN,bbrktbrk:pN,bcong:gN,Bcy:mN,bcy:vN,bdquo:yN,becaus:bN,because:wN,Because:xN,bemptyv:kN,bepsi:SN,bernou:_N,Bernoullis:TN,Beta:CN,beta:EN,beth:AN,between:LN,Bfr:MN,bfr:NN,bigcap:ON,bigcirc:RN,bigcup:PN,bigodot:$N,bigoplus:IN,bigotimes:DN,bigsqcup:zN,bigstar:FN,bigtriangledown:HN,bigtriangleup:BN,biguplus:WN,bigvee:qN,bigwedge:jN,bkarow:UN,blacklozenge:VN,blacksquare:GN,blacktriangle:KN,blacktriangledown:XN,blacktriangleleft:YN,blacktriangleright:ZN,blank:JN,blk12:QN,blk14:eO,blk34:tO,block:nO,bne:rO,bnequiv:iO,bNot:oO,bnot:sO,Bopf:lO,bopf:aO,bot:cO,bottom:uO,bowtie:fO,boxbox:dO,boxdl:hO,boxdL:pO,boxDl:gO,boxDL:mO,boxdr:vO,boxdR:yO,boxDr:bO,boxDR:wO,boxh:xO,boxH:kO,boxhd:SO,boxHd:_O,boxhD:TO,boxHD:CO,boxhu:EO,boxHu:AO,boxhU:LO,boxHU:MO,boxminus:NO,boxplus:OO,boxtimes:RO,boxul:PO,boxuL:$O,boxUl:IO,boxUL:DO,boxur:zO,boxuR:FO,boxUr:HO,boxUR:BO,boxv:WO,boxV:qO,boxvh:jO,boxvH:UO,boxVh:VO,boxVH:GO,boxvl:KO,boxvL:XO,boxVl:YO,boxVL:ZO,boxvr:JO,boxvR:QO,boxVr:e2,boxVR:t2,bprime:n2,breve:r2,Breve:i2,brvbar:o2,bscr:s2,Bscr:l2,bsemi:a2,bsim:c2,bsime:u2,bsolb:f2,bsol:d2,bsolhsub:h2,bull:p2,bullet:g2,bump:m2,bumpE:v2,bumpe:y2,Bumpeq:b2,bumpeq:w2,Cacute:x2,cacute:k2,capand:S2,capbrcup:_2,capcap:T2,cap:C2,Cap:E2,capcup:A2,capdot:L2,CapitalDifferentialD:M2,caps:N2,caret:O2,caron:R2,Cayleys:P2,ccaps:$2,Ccaron:I2,ccaron:D2,Ccedil:z2,ccedil:F2,Ccirc:H2,ccirc:B2,Cconint:W2,ccups:q2,ccupssm:j2,Cdot:U2,cdot:V2,cedil:G2,Cedilla:K2,cemptyv:X2,cent:Y2,centerdot:Z2,CenterDot:J2,cfr:Q2,Cfr:eR,CHcy:tR,chcy:nR,check:rR,checkmark:iR,Chi:oR,chi:sR,circ:lR,circeq:aR,circlearrowleft:cR,circlearrowright:uR,circledast:fR,circledcirc:dR,circleddash:hR,CircleDot:pR,circledR:gR,circledS:mR,CircleMinus:vR,CirclePlus:yR,CircleTimes:bR,cir:wR,cirE:xR,cire:kR,cirfnint:SR,cirmid:_R,cirscir:TR,ClockwiseContourIntegral:CR,CloseCurlyDoubleQuote:ER,CloseCurlyQuote:AR,clubs:LR,clubsuit:MR,colon:NR,Colon:OR,Colone:RR,colone:PR,coloneq:$R,comma:IR,commat:DR,comp:zR,compfn:FR,complement:HR,complexes:BR,cong:WR,congdot:qR,Congruent:jR,conint:UR,Conint:VR,ContourIntegral:GR,copf:KR,Copf:XR,coprod:YR,Coproduct:ZR,copy:JR,COPY:QR,copysr:eP,CounterClockwiseContourIntegral:tP,crarr:nP,cross:rP,Cross:iP,Cscr:oP,cscr:sP,csub:lP,csube:aP,csup:cP,csupe:uP,ctdot:fP,cudarrl:dP,cudarrr:hP,cuepr:pP,cuesc:gP,cularr:mP,cularrp:vP,cupbrcap:yP,cupcap:bP,CupCap:wP,cup:xP,Cup:kP,cupcup:SP,cupdot:_P,cupor:TP,cups:CP,curarr:EP,curarrm:AP,curlyeqprec:LP,curlyeqsucc:MP,curlyvee:NP,curlywedge:OP,curren:RP,curvearrowleft:PP,curvearrowright:$P,cuvee:IP,cuwed:DP,cwconint:zP,cwint:FP,cylcty:HP,dagger:BP,Dagger:WP,daleth:qP,darr:jP,Darr:UP,dArr:VP,dash:GP,Dashv:KP,dashv:XP,dbkarow:YP,dblac:ZP,Dcaron:JP,dcaron:QP,Dcy:e$,dcy:t$,ddagger:n$,ddarr:r$,DD:i$,dd:o$,DDotrahd:s$,ddotseq:l$,deg:a$,Del:c$,Delta:u$,delta:f$,demptyv:d$,dfisht:h$,Dfr:p$,dfr:g$,dHar:m$,dharl:v$,dharr:y$,DiacriticalAcute:b$,DiacriticalDot:w$,DiacriticalDoubleAcute:x$,DiacriticalGrave:k$,DiacriticalTilde:S$,diam:_$,diamond:T$,Diamond:C$,diamondsuit:E$,diams:A$,die:L$,DifferentialD:M$,digamma:N$,disin:O$,div:R$,divide:P$,divideontimes:$$,divonx:I$,DJcy:D$,djcy:z$,dlcorn:F$,dlcrop:H$,dollar:B$,Dopf:W$,dopf:q$,Dot:j$,dot:U$,DotDot:V$,doteq:G$,doteqdot:K$,DotEqual:X$,dotminus:Y$,dotplus:Z$,dotsquare:J$,doublebarwedge:Q$,DoubleContourIntegral:eI,DoubleDot:tI,DoubleDownArrow:nI,DoubleLeftArrow:rI,DoubleLeftRightArrow:iI,DoubleLeftTee:oI,DoubleLongLeftArrow:sI,DoubleLongLeftRightArrow:lI,DoubleLongRightArrow:aI,DoubleRightArrow:cI,DoubleRightTee:uI,DoubleUpArrow:fI,DoubleUpDownArrow:dI,DoubleVerticalBar:hI,DownArrowBar:pI,downarrow:gI,DownArrow:mI,Downarrow:vI,DownArrowUpArrow:yI,DownBreve:bI,downdownarrows:wI,downharpoonleft:xI,downharpoonright:kI,DownLeftRightVector:SI,DownLeftTeeVector:_I,DownLeftVectorBar:TI,DownLeftVector:CI,DownRightTeeVector:EI,DownRightVectorBar:AI,DownRightVector:LI,DownTeeArrow:MI,DownTee:NI,drbkarow:OI,drcorn:RI,drcrop:PI,Dscr:$I,dscr:II,DScy:DI,dscy:zI,dsol:FI,Dstrok:HI,dstrok:BI,dtdot:WI,dtri:qI,dtrif:jI,duarr:UI,duhar:VI,dwangle:GI,DZcy:KI,dzcy:XI,dzigrarr:YI,Eacute:ZI,eacute:JI,easter:QI,Ecaron:eD,ecaron:tD,Ecirc:nD,ecirc:rD,ecir:iD,ecolon:oD,Ecy:sD,ecy:lD,eDDot:aD,Edot:cD,edot:uD,eDot:fD,ee:dD,efDot:hD,Efr:pD,efr:gD,eg:mD,Egrave:vD,egrave:yD,egs:bD,egsdot:wD,el:xD,Element:kD,elinters:SD,ell:_D,els:TD,elsdot:CD,Emacr:ED,emacr:AD,empty:LD,emptyset:MD,EmptySmallSquare:ND,emptyv:OD,EmptyVerySmallSquare:RD,emsp13:PD,emsp14:$D,emsp:ID,ENG:DD,eng:zD,ensp:FD,Eogon:HD,eogon:BD,Eopf:WD,eopf:qD,epar:jD,eparsl:UD,eplus:VD,epsi:GD,Epsilon:KD,epsilon:XD,epsiv:YD,eqcirc:ZD,eqcolon:JD,eqsim:QD,eqslantgtr:ez,eqslantless:tz,Equal:nz,equals:rz,EqualTilde:iz,equest:oz,Equilibrium:sz,equiv:lz,equivDD:az,eqvparsl:cz,erarr:uz,erDot:fz,escr:dz,Escr:hz,esdot:pz,Esim:gz,esim:mz,Eta:vz,eta:yz,ETH:bz,eth:wz,Euml:xz,euml:kz,euro:Sz,excl:_z,exist:Tz,Exists:Cz,expectation:Ez,exponentiale:Az,ExponentialE:Lz,fallingdotseq:Mz,Fcy:Nz,fcy:Oz,female:Rz,ffilig:Pz,fflig:$z,ffllig:Iz,Ffr:Dz,ffr:zz,filig:Fz,FilledSmallSquare:Hz,FilledVerySmallSquare:Bz,fjlig:Wz,flat:qz,fllig:jz,fltns:Uz,fnof:Vz,Fopf:Gz,fopf:Kz,forall:Xz,ForAll:Yz,fork:Zz,forkv:Jz,Fouriertrf:Qz,fpartint:eF,frac12:tF,frac13:nF,frac14:rF,frac15:iF,frac16:oF,frac18:sF,frac23:lF,frac25:aF,frac34:cF,frac35:uF,frac38:fF,frac45:dF,frac56:hF,frac58:pF,frac78:gF,frasl:mF,frown:vF,fscr:yF,Fscr:bF,gacute:wF,Gamma:xF,gamma:kF,Gammad:SF,gammad:_F,gap:TF,Gbreve:CF,gbreve:EF,Gcedil:AF,Gcirc:LF,gcirc:MF,Gcy:NF,gcy:OF,Gdot:RF,gdot:PF,ge:$F,gE:IF,gEl:DF,gel:zF,geq:FF,geqq:HF,geqslant:BF,gescc:WF,ges:qF,gesdot:jF,gesdoto:UF,gesdotol:VF,gesl:GF,gesles:KF,Gfr:XF,gfr:YF,gg:ZF,Gg:JF,ggg:QF,gimel:eH,GJcy:tH,gjcy:nH,gla:rH,gl:iH,glE:oH,glj:sH,gnap:lH,gnapprox:aH,gne:cH,gnE:uH,gneq:fH,gneqq:dH,gnsim:hH,Gopf:pH,gopf:gH,grave:mH,GreaterEqual:vH,GreaterEqualLess:yH,GreaterFullEqual:bH,GreaterGreater:wH,GreaterLess:xH,GreaterSlantEqual:kH,GreaterTilde:SH,Gscr:_H,gscr:TH,gsim:CH,gsime:EH,gsiml:AH,gtcc:LH,gtcir:MH,gt:NH,GT:OH,Gt:RH,gtdot:PH,gtlPar:$H,gtquest:IH,gtrapprox:DH,gtrarr:zH,gtrdot:FH,gtreqless:HH,gtreqqless:BH,gtrless:WH,gtrsim:qH,gvertneqq:jH,gvnE:UH,Hacek:VH,hairsp:GH,half:KH,hamilt:XH,HARDcy:YH,hardcy:ZH,harrcir:JH,harr:QH,hArr:e3,harrw:t3,Hat:n3,hbar:r3,Hcirc:i3,hcirc:o3,hearts:s3,heartsuit:l3,hellip:a3,hercon:c3,hfr:u3,Hfr:f3,HilbertSpace:d3,hksearow:h3,hkswarow:p3,hoarr:g3,homtht:m3,hookleftarrow:v3,hookrightarrow:y3,hopf:b3,Hopf:w3,horbar:x3,HorizontalLine:k3,hscr:S3,Hscr:_3,hslash:T3,Hstrok:C3,hstrok:E3,HumpDownHump:A3,HumpEqual:L3,hybull:M3,hyphen:N3,Iacute:O3,iacute:R3,ic:P3,Icirc:$3,icirc:I3,Icy:D3,icy:z3,Idot:F3,IEcy:H3,iecy:B3,iexcl:W3,iff:q3,ifr:j3,Ifr:U3,Igrave:V3,igrave:G3,ii:K3,iiiint:X3,iiint:Y3,iinfin:Z3,iiota:J3,IJlig:Q3,ijlig:eB,Imacr:tB,imacr:nB,image:rB,ImaginaryI:iB,imagline:oB,imagpart:sB,imath:lB,Im:aB,imof:cB,imped:uB,Implies:fB,incare:dB,in:"∈",infin:hB,infintie:pB,inodot:gB,intcal:mB,int:vB,Int:yB,integers:bB,Integral:wB,intercal:xB,Intersection:kB,intlarhk:SB,intprod:_B,InvisibleComma:TB,InvisibleTimes:CB,IOcy:EB,iocy:AB,Iogon:LB,iogon:MB,Iopf:NB,iopf:OB,Iota:RB,iota:PB,iprod:$B,iquest:IB,iscr:DB,Iscr:zB,isin:FB,isindot:HB,isinE:BB,isins:WB,isinsv:qB,isinv:jB,it:UB,Itilde:VB,itilde:GB,Iukcy:KB,iukcy:XB,Iuml:YB,iuml:ZB,Jcirc:JB,jcirc:QB,Jcy:e5,jcy:t5,Jfr:n5,jfr:r5,jmath:i5,Jopf:o5,jopf:s5,Jscr:l5,jscr:a5,Jsercy:c5,jsercy:u5,Jukcy:f5,jukcy:d5,Kappa:h5,kappa:p5,kappav:g5,Kcedil:m5,kcedil:v5,Kcy:y5,kcy:b5,Kfr:w5,kfr:x5,kgreen:k5,KHcy:S5,khcy:_5,KJcy:T5,kjcy:C5,Kopf:E5,kopf:A5,Kscr:L5,kscr:M5,lAarr:N5,Lacute:O5,lacute:R5,laemptyv:P5,lagran:$5,Lambda:I5,lambda:D5,lang:z5,Lang:F5,langd:H5,langle:B5,lap:W5,Laplacetrf:q5,laquo:j5,larrb:U5,larrbfs:V5,larr:G5,Larr:K5,lArr:X5,larrfs:Y5,larrhk:Z5,larrlp:J5,larrpl:Q5,larrsim:e8,larrtl:t8,latail:n8,lAtail:r8,lat:i8,late:o8,lates:s8,lbarr:l8,lBarr:a8,lbbrk:c8,lbrace:u8,lbrack:f8,lbrke:d8,lbrksld:h8,lbrkslu:p8,Lcaron:g8,lcaron:m8,Lcedil:v8,lcedil:y8,lceil:b8,lcub:w8,Lcy:x8,lcy:k8,ldca:S8,ldquo:_8,ldquor:T8,ldrdhar:C8,ldrushar:E8,ldsh:A8,le:L8,lE:M8,LeftAngleBracket:N8,LeftArrowBar:O8,leftarrow:R8,LeftArrow:P8,Leftarrow:$8,LeftArrowRightArrow:I8,leftarrowtail:D8,LeftCeiling:z8,LeftDoubleBracket:F8,LeftDownTeeVector:H8,LeftDownVectorBar:B8,LeftDownVector:W8,LeftFloor:q8,leftharpoondown:j8,leftharpoonup:U8,leftleftarrows:V8,leftrightarrow:G8,LeftRightArrow:K8,Leftrightarrow:X8,leftrightarrows:Y8,leftrightharpoons:Z8,leftrightsquigarrow:J8,LeftRightVector:Q8,LeftTeeArrow:eW,LeftTee:tW,LeftTeeVector:nW,leftthreetimes:rW,LeftTriangleBar:iW,LeftTriangle:oW,LeftTriangleEqual:sW,LeftUpDownVector:lW,LeftUpTeeVector:aW,LeftUpVectorBar:cW,LeftUpVector:uW,LeftVectorBar:fW,LeftVector:dW,lEg:hW,leg:pW,leq:gW,leqq:mW,leqslant:vW,lescc:yW,les:bW,lesdot:wW,lesdoto:xW,lesdotor:kW,lesg:SW,lesges:_W,lessapprox:TW,lessdot:CW,lesseqgtr:EW,lesseqqgtr:AW,LessEqualGreater:LW,LessFullEqual:MW,LessGreater:NW,lessgtr:OW,LessLess:RW,lesssim:PW,LessSlantEqual:$W,LessTilde:IW,lfisht:DW,lfloor:zW,Lfr:FW,lfr:HW,lg:BW,lgE:WW,lHar:qW,lhard:jW,lharu:UW,lharul:VW,lhblk:GW,LJcy:KW,ljcy:XW,llarr:YW,ll:ZW,Ll:JW,llcorner:QW,Lleftarrow:e4,llhard:t4,lltri:n4,Lmidot:r4,lmidot:i4,lmoustache:o4,lmoust:s4,lnap:l4,lnapprox:a4,lne:c4,lnE:u4,lneq:f4,lneqq:d4,lnsim:h4,loang:p4,loarr:g4,lobrk:m4,longleftarrow:v4,LongLeftArrow:y4,Longleftarrow:b4,longleftrightarrow:w4,LongLeftRightArrow:x4,Longleftrightarrow:k4,longmapsto:S4,longrightarrow:_4,LongRightArrow:T4,Longrightarrow:C4,looparrowleft:E4,looparrowright:A4,lopar:L4,Lopf:M4,lopf:N4,loplus:O4,lotimes:R4,lowast:P4,lowbar:$4,LowerLeftArrow:I4,LowerRightArrow:D4,loz:z4,lozenge:F4,lozf:H4,lpar:B4,lparlt:W4,lrarr:q4,lrcorner:j4,lrhar:U4,lrhard:V4,lrm:G4,lrtri:K4,lsaquo:X4,lscr:Y4,Lscr:Z4,lsh:J4,Lsh:Q4,lsim:eq,lsime:tq,lsimg:nq,lsqb:rq,lsquo:iq,lsquor:oq,Lstrok:sq,lstrok:lq,ltcc:aq,ltcir:cq,lt:uq,LT:fq,Lt:dq,ltdot:hq,lthree:pq,ltimes:gq,ltlarr:mq,ltquest:vq,ltri:yq,ltrie:bq,ltrif:wq,ltrPar:xq,lurdshar:kq,luruhar:Sq,lvertneqq:_q,lvnE:Tq,macr:Cq,male:Eq,malt:Aq,maltese:Lq,Map:"⤅",map:Mq,mapsto:Nq,mapstodown:Oq,mapstoleft:Rq,mapstoup:Pq,marker:$q,mcomma:Iq,Mcy:Dq,mcy:zq,mdash:Fq,mDDot:Hq,measuredangle:Bq,MediumSpace:Wq,Mellintrf:qq,Mfr:jq,mfr:Uq,mho:Vq,micro:Gq,midast:Kq,midcir:Xq,mid:Yq,middot:Zq,minusb:Jq,minus:Qq,minusd:ej,minusdu:tj,MinusPlus:nj,mlcp:rj,mldr:ij,mnplus:oj,models:sj,Mopf:lj,mopf:aj,mp:cj,mscr:uj,Mscr:fj,mstpos:dj,Mu:hj,mu:pj,multimap:gj,mumap:mj,nabla:vj,Nacute:yj,nacute:bj,nang:wj,nap:xj,napE:kj,napid:Sj,napos:_j,napprox:Tj,natural:Cj,naturals:Ej,natur:Aj,nbsp:Lj,nbump:Mj,nbumpe:Nj,ncap:Oj,Ncaron:Rj,ncaron:Pj,Ncedil:$j,ncedil:Ij,ncong:Dj,ncongdot:zj,ncup:Fj,Ncy:Hj,ncy:Bj,ndash:Wj,nearhk:qj,nearr:jj,neArr:Uj,nearrow:Vj,ne:Gj,nedot:Kj,NegativeMediumSpace:Xj,NegativeThickSpace:Yj,NegativeThinSpace:Zj,NegativeVeryThinSpace:Jj,nequiv:Qj,nesear:eU,nesim:tU,NestedGreaterGreater:nU,NestedLessLess:rU,NewLine:iU,nexist:oU,nexists:sU,Nfr:lU,nfr:aU,ngE:cU,nge:uU,ngeq:fU,ngeqq:dU,ngeqslant:hU,nges:pU,nGg:gU,ngsim:mU,nGt:vU,ngt:yU,ngtr:bU,nGtv:wU,nharr:xU,nhArr:kU,nhpar:SU,ni:_U,nis:TU,nisd:CU,niv:EU,NJcy:AU,njcy:LU,nlarr:MU,nlArr:NU,nldr:OU,nlE:RU,nle:PU,nleftarrow:$U,nLeftarrow:IU,nleftrightarrow:DU,nLeftrightarrow:zU,nleq:FU,nleqq:HU,nleqslant:BU,nles:WU,nless:qU,nLl:jU,nlsim:UU,nLt:VU,nlt:GU,nltri:KU,nltrie:XU,nLtv:YU,nmid:ZU,NoBreak:JU,NonBreakingSpace:QU,nopf:e6,Nopf:t6,Not:n6,not:r6,NotCongruent:i6,NotCupCap:o6,NotDoubleVerticalBar:s6,NotElement:l6,NotEqual:a6,NotEqualTilde:c6,NotExists:u6,NotGreater:f6,NotGreaterEqual:d6,NotGreaterFullEqual:h6,NotGreaterGreater:p6,NotGreaterLess:g6,NotGreaterSlantEqual:m6,NotGreaterTilde:v6,NotHumpDownHump:y6,NotHumpEqual:b6,notin:w6,notindot:x6,notinE:k6,notinva:S6,notinvb:_6,notinvc:T6,NotLeftTriangleBar:C6,NotLeftTriangle:E6,NotLeftTriangleEqual:A6,NotLess:L6,NotLessEqual:M6,NotLessGreater:N6,NotLessLess:O6,NotLessSlantEqual:R6,NotLessTilde:P6,NotNestedGreaterGreater:$6,NotNestedLessLess:I6,notni:D6,notniva:z6,notnivb:F6,notnivc:H6,NotPrecedes:B6,NotPrecedesEqual:W6,NotPrecedesSlantEqual:q6,NotReverseElement:j6,NotRightTriangleBar:U6,NotRightTriangle:V6,NotRightTriangleEqual:G6,NotSquareSubset:K6,NotSquareSubsetEqual:X6,NotSquareSuperset:Y6,NotSquareSupersetEqual:Z6,NotSubset:J6,NotSubsetEqual:Q6,NotSucceeds:eV,NotSucceedsEqual:tV,NotSucceedsSlantEqual:nV,NotSucceedsTilde:rV,NotSuperset:iV,NotSupersetEqual:oV,NotTilde:sV,NotTildeEqual:lV,NotTildeFullEqual:aV,NotTildeTilde:cV,NotVerticalBar:uV,nparallel:fV,npar:dV,nparsl:hV,npart:pV,npolint:gV,npr:mV,nprcue:vV,nprec:yV,npreceq:bV,npre:wV,nrarrc:xV,nrarr:kV,nrArr:SV,nrarrw:_V,nrightarrow:TV,nRightarrow:CV,nrtri:EV,nrtrie:AV,nsc:LV,nsccue:MV,nsce:NV,Nscr:OV,nscr:RV,nshortmid:PV,nshortparallel:$V,nsim:IV,nsime:DV,nsimeq:zV,nsmid:FV,nspar:HV,nsqsube:BV,nsqsupe:WV,nsub:qV,nsubE:jV,nsube:UV,nsubset:VV,nsubseteq:GV,nsubseteqq:KV,nsucc:XV,nsucceq:YV,nsup:ZV,nsupE:JV,nsupe:QV,nsupset:eG,nsupseteq:tG,nsupseteqq:nG,ntgl:rG,Ntilde:iG,ntilde:oG,ntlg:sG,ntriangleleft:lG,ntrianglelefteq:aG,ntriangleright:cG,ntrianglerighteq:uG,Nu:fG,nu:dG,num:hG,numero:pG,numsp:gG,nvap:mG,nvdash:vG,nvDash:yG,nVdash:bG,nVDash:wG,nvge:xG,nvgt:kG,nvHarr:SG,nvinfin:_G,nvlArr:TG,nvle:CG,nvlt:EG,nvltrie:AG,nvrArr:LG,nvrtrie:MG,nvsim:NG,nwarhk:OG,nwarr:RG,nwArr:PG,nwarrow:$G,nwnear:IG,Oacute:DG,oacute:zG,oast:FG,Ocirc:HG,ocirc:BG,ocir:WG,Ocy:qG,ocy:jG,odash:UG,Odblac:VG,odblac:GG,odiv:KG,odot:XG,odsold:YG,OElig:ZG,oelig:JG,ofcir:QG,Ofr:e9,ofr:t9,ogon:n9,Ograve:r9,ograve:i9,ogt:o9,ohbar:s9,ohm:l9,oint:a9,olarr:c9,olcir:u9,olcross:f9,oline:d9,olt:h9,Omacr:p9,omacr:g9,Omega:m9,omega:v9,Omicron:y9,omicron:b9,omid:w9,ominus:x9,Oopf:k9,oopf:S9,opar:_9,OpenCurlyDoubleQuote:T9,OpenCurlyQuote:C9,operp:E9,oplus:A9,orarr:L9,Or:M9,or:N9,ord:O9,order:R9,orderof:P9,ordf:$9,ordm:I9,origof:D9,oror:z9,orslope:F9,orv:H9,oS:B9,Oscr:W9,oscr:q9,Oslash:j9,oslash:U9,osol:V9,Otilde:G9,otilde:K9,otimesas:X9,Otimes:Y9,otimes:Z9,Ouml:J9,ouml:Q9,ovbar:eK,OverBar:tK,OverBrace:nK,OverBracket:rK,OverParenthesis:iK,para:oK,parallel:sK,par:lK,parsim:aK,parsl:cK,part:uK,PartialD:fK,Pcy:dK,pcy:hK,percnt:pK,period:gK,permil:mK,perp:vK,pertenk:yK,Pfr:bK,pfr:wK,Phi:xK,phi:kK,phiv:SK,phmmat:_K,phone:TK,Pi:CK,pi:EK,pitchfork:AK,piv:LK,planck:MK,planckh:NK,plankv:OK,plusacir:RK,plusb:PK,pluscir:$K,plus:IK,plusdo:DK,plusdu:zK,pluse:FK,PlusMinus:HK,plusmn:BK,plussim:WK,plustwo:qK,pm:jK,Poincareplane:UK,pointint:VK,popf:GK,Popf:KK,pound:XK,prap:YK,Pr:ZK,pr:JK,prcue:QK,precapprox:e7,prec:t7,preccurlyeq:n7,Precedes:r7,PrecedesEqual:i7,PrecedesSlantEqual:o7,PrecedesTilde:s7,preceq:l7,precnapprox:a7,precneqq:c7,precnsim:u7,pre:f7,prE:d7,precsim:h7,prime:p7,Prime:g7,primes:m7,prnap:v7,prnE:y7,prnsim:b7,prod:w7,Product:x7,profalar:k7,profline:S7,profsurf:_7,prop:T7,Proportional:C7,Proportion:E7,propto:A7,prsim:L7,prurel:M7,Pscr:N7,pscr:O7,Psi:R7,psi:P7,puncsp:$7,Qfr:I7,qfr:D7,qint:z7,qopf:F7,Qopf:H7,qprime:B7,Qscr:W7,qscr:q7,quaternions:j7,quatint:U7,quest:V7,questeq:G7,quot:K7,QUOT:X7,rAarr:Y7,race:Z7,Racute:J7,racute:Q7,radic:eX,raemptyv:tX,rang:nX,Rang:rX,rangd:iX,range:oX,rangle:sX,raquo:lX,rarrap:aX,rarrb:cX,rarrbfs:uX,rarrc:fX,rarr:dX,Rarr:hX,rArr:pX,rarrfs:gX,rarrhk:mX,rarrlp:vX,rarrpl:yX,rarrsim:bX,Rarrtl:wX,rarrtl:xX,rarrw:kX,ratail:SX,rAtail:_X,ratio:TX,rationals:CX,rbarr:EX,rBarr:AX,RBarr:LX,rbbrk:MX,rbrace:NX,rbrack:OX,rbrke:RX,rbrksld:PX,rbrkslu:$X,Rcaron:IX,rcaron:DX,Rcedil:zX,rcedil:FX,rceil:HX,rcub:BX,Rcy:WX,rcy:qX,rdca:jX,rdldhar:UX,rdquo:VX,rdquor:GX,rdsh:KX,real:XX,realine:YX,realpart:ZX,reals:JX,Re:QX,rect:eY,reg:tY,REG:nY,ReverseElement:rY,ReverseEquilibrium:iY,ReverseUpEquilibrium:oY,rfisht:sY,rfloor:lY,rfr:aY,Rfr:cY,rHar:uY,rhard:fY,rharu:dY,rharul:hY,Rho:pY,rho:gY,rhov:mY,RightAngleBracket:vY,RightArrowBar:yY,rightarrow:bY,RightArrow:wY,Rightarrow:xY,RightArrowLeftArrow:kY,rightarrowtail:SY,RightCeiling:_Y,RightDoubleBracket:TY,RightDownTeeVector:CY,RightDownVectorBar:EY,RightDownVector:AY,RightFloor:LY,rightharpoondown:MY,rightharpoonup:NY,rightleftarrows:OY,rightleftharpoons:RY,rightrightarrows:PY,rightsquigarrow:$Y,RightTeeArrow:IY,RightTee:DY,RightTeeVector:zY,rightthreetimes:FY,RightTriangleBar:HY,RightTriangle:BY,RightTriangleEqual:WY,RightUpDownVector:qY,RightUpTeeVector:jY,RightUpVectorBar:UY,RightUpVector:VY,RightVectorBar:GY,RightVector:KY,ring:XY,risingdotseq:YY,rlarr:ZY,rlhar:JY,rlm:QY,rmoustache:eZ,rmoust:tZ,rnmid:nZ,roang:rZ,roarr:iZ,robrk:oZ,ropar:sZ,ropf:lZ,Ropf:aZ,roplus:cZ,rotimes:uZ,RoundImplies:fZ,rpar:dZ,rpargt:hZ,rppolint:pZ,rrarr:gZ,Rrightarrow:mZ,rsaquo:vZ,rscr:yZ,Rscr:bZ,rsh:wZ,Rsh:xZ,rsqb:kZ,rsquo:SZ,rsquor:_Z,rthree:TZ,rtimes:CZ,rtri:EZ,rtrie:AZ,rtrif:LZ,rtriltri:MZ,RuleDelayed:NZ,ruluhar:OZ,rx:RZ,Sacute:PZ,sacute:$Z,sbquo:IZ,scap:DZ,Scaron:zZ,scaron:FZ,Sc:HZ,sc:BZ,sccue:WZ,sce:qZ,scE:jZ,Scedil:UZ,scedil:VZ,Scirc:GZ,scirc:KZ,scnap:XZ,scnE:YZ,scnsim:ZZ,scpolint:JZ,scsim:QZ,Scy:eJ,scy:tJ,sdotb:nJ,sdot:rJ,sdote:iJ,searhk:oJ,searr:sJ,seArr:lJ,searrow:aJ,sect:cJ,semi:uJ,seswar:fJ,setminus:dJ,setmn:hJ,sext:pJ,Sfr:gJ,sfr:mJ,sfrown:vJ,sharp:yJ,SHCHcy:bJ,shchcy:wJ,SHcy:xJ,shcy:kJ,ShortDownArrow:SJ,ShortLeftArrow:_J,shortmid:TJ,shortparallel:CJ,ShortRightArrow:EJ,ShortUpArrow:AJ,shy:LJ,Sigma:MJ,sigma:NJ,sigmaf:OJ,sigmav:RJ,sim:PJ,simdot:$J,sime:IJ,simeq:DJ,simg:zJ,simgE:FJ,siml:HJ,simlE:BJ,simne:WJ,simplus:qJ,simrarr:jJ,slarr:UJ,SmallCircle:VJ,smallsetminus:GJ,smashp:KJ,smeparsl:XJ,smid:YJ,smile:ZJ,smt:JJ,smte:QJ,smtes:eQ,SOFTcy:tQ,softcy:nQ,solbar:rQ,solb:iQ,sol:oQ,Sopf:sQ,sopf:lQ,spades:aQ,spadesuit:cQ,spar:uQ,sqcap:fQ,sqcaps:dQ,sqcup:hQ,sqcups:pQ,Sqrt:gQ,sqsub:mQ,sqsube:vQ,sqsubset:yQ,sqsubseteq:bQ,sqsup:wQ,sqsupe:xQ,sqsupset:kQ,sqsupseteq:SQ,square:_Q,Square:TQ,SquareIntersection:CQ,SquareSubset:EQ,SquareSubsetEqual:AQ,SquareSuperset:LQ,SquareSupersetEqual:MQ,SquareUnion:NQ,squarf:OQ,squ:RQ,squf:PQ,srarr:$Q,Sscr:IQ,sscr:DQ,ssetmn:zQ,ssmile:FQ,sstarf:HQ,Star:BQ,star:WQ,starf:qQ,straightepsilon:jQ,straightphi:UQ,strns:VQ,sub:GQ,Sub:KQ,subdot:XQ,subE:YQ,sube:ZQ,subedot:JQ,submult:QQ,subnE:eee,subne:tee,subplus:nee,subrarr:ree,subset:iee,Subset:oee,subseteq:see,subseteqq:lee,SubsetEqual:aee,subsetneq:cee,subsetneqq:uee,subsim:fee,subsub:dee,subsup:hee,succapprox:pee,succ:gee,succcurlyeq:mee,Succeeds:vee,SucceedsEqual:yee,SucceedsSlantEqual:bee,SucceedsTilde:wee,succeq:xee,succnapprox:kee,succneqq:See,succnsim:_ee,succsim:Tee,SuchThat:Cee,sum:Eee,Sum:Aee,sung:Lee,sup1:Mee,sup2:Nee,sup3:Oee,sup:Ree,Sup:Pee,supdot:$ee,supdsub:Iee,supE:Dee,supe:zee,supedot:Fee,Superset:Hee,SupersetEqual:Bee,suphsol:Wee,suphsub:qee,suplarr:jee,supmult:Uee,supnE:Vee,supne:Gee,supplus:Kee,supset:Xee,Supset:Yee,supseteq:Zee,supseteqq:Jee,supsetneq:Qee,supsetneqq:ete,supsim:tte,supsub:nte,supsup:rte,swarhk:ite,swarr:ote,swArr:ste,swarrow:lte,swnwar:ate,szlig:cte,Tab:ute,target:fte,Tau:dte,tau:hte,tbrk:pte,Tcaron:gte,tcaron:mte,Tcedil:vte,tcedil:yte,Tcy:bte,tcy:wte,tdot:xte,telrec:kte,Tfr:Ste,tfr:_te,there4:Tte,therefore:Cte,Therefore:Ete,Theta:Ate,theta:Lte,thetasym:Mte,thetav:Nte,thickapprox:Ote,thicksim:Rte,ThickSpace:Pte,ThinSpace:$te,thinsp:Ite,thkap:Dte,thksim:zte,THORN:Fte,thorn:Hte,tilde:Bte,Tilde:Wte,TildeEqual:qte,TildeFullEqual:jte,TildeTilde:Ute,timesbar:Vte,timesb:Gte,times:Kte,timesd:Xte,tint:Yte,toea:Zte,topbot:Jte,topcir:Qte,top:ene,Topf:tne,topf:nne,topfork:rne,tosa:ine,tprime:one,trade:sne,TRADE:lne,triangle:ane,triangledown:cne,triangleleft:une,trianglelefteq:fne,triangleq:dne,triangleright:hne,trianglerighteq:pne,tridot:gne,trie:mne,triminus:vne,TripleDot:yne,triplus:bne,trisb:wne,tritime:xne,trpezium:kne,Tscr:Sne,tscr:_ne,TScy:Tne,tscy:Cne,TSHcy:Ene,tshcy:Ane,Tstrok:Lne,tstrok:Mne,twixt:Nne,twoheadleftarrow:One,twoheadrightarrow:Rne,Uacute:Pne,uacute:$ne,uarr:Ine,Uarr:Dne,uArr:zne,Uarrocir:Fne,Ubrcy:Hne,ubrcy:Bne,Ubreve:Wne,ubreve:qne,Ucirc:jne,ucirc:Une,Ucy:Vne,ucy:Gne,udarr:Kne,Udblac:Xne,udblac:Yne,udhar:Zne,ufisht:Jne,Ufr:Qne,ufr:ere,Ugrave:tre,ugrave:nre,uHar:rre,uharl:ire,uharr:ore,uhblk:sre,ulcorn:lre,ulcorner:are,ulcrop:cre,ultri:ure,Umacr:fre,umacr:dre,uml:hre,UnderBar:pre,UnderBrace:gre,UnderBracket:mre,UnderParenthesis:vre,Union:yre,UnionPlus:bre,Uogon:wre,uogon:xre,Uopf:kre,uopf:Sre,UpArrowBar:_re,uparrow:Tre,UpArrow:Cre,Uparrow:Ere,UpArrowDownArrow:Are,updownarrow:Lre,UpDownArrow:Mre,Updownarrow:Nre,UpEquilibrium:Ore,upharpoonleft:Rre,upharpoonright:Pre,uplus:$re,UpperLeftArrow:Ire,UpperRightArrow:Dre,upsi:zre,Upsi:Fre,upsih:Hre,Upsilon:Bre,upsilon:Wre,UpTeeArrow:qre,UpTee:jre,upuparrows:Ure,urcorn:Vre,urcorner:Gre,urcrop:Kre,Uring:Xre,uring:Yre,urtri:Zre,Uscr:Jre,uscr:Qre,utdot:eie,Utilde:tie,utilde:nie,utri:rie,utrif:iie,uuarr:oie,Uuml:sie,uuml:lie,uwangle:aie,vangrt:cie,varepsilon:uie,varkappa:fie,varnothing:die,varphi:hie,varpi:pie,varpropto:gie,varr:mie,vArr:vie,varrho:yie,varsigma:bie,varsubsetneq:wie,varsubsetneqq:xie,varsupsetneq:kie,varsupsetneqq:Sie,vartheta:_ie,vartriangleleft:Tie,vartriangleright:Cie,vBar:Eie,Vbar:Aie,vBarv:Lie,Vcy:Mie,vcy:Nie,vdash:Oie,vDash:Rie,Vdash:Pie,VDash:$ie,Vdashl:Iie,veebar:Die,vee:zie,Vee:Fie,veeeq:Hie,vellip:Bie,verbar:Wie,Verbar:qie,vert:jie,Vert:Uie,VerticalBar:Vie,VerticalLine:Gie,VerticalSeparator:Kie,VerticalTilde:Xie,VeryThinSpace:Yie,Vfr:Zie,vfr:Jie,vltri:Qie,vnsub:eoe,vnsup:toe,Vopf:noe,vopf:roe,vprop:ioe,vrtri:ooe,Vscr:soe,vscr:loe,vsubnE:aoe,vsubne:coe,vsupnE:uoe,vsupne:foe,Vvdash:doe,vzigzag:hoe,Wcirc:poe,wcirc:goe,wedbar:moe,wedge:voe,Wedge:yoe,wedgeq:boe,weierp:woe,Wfr:xoe,wfr:koe,Wopf:Soe,wopf:_oe,wp:Toe,wr:Coe,wreath:Eoe,Wscr:Aoe,wscr:Loe,xcap:Moe,xcirc:Noe,xcup:Ooe,xdtri:Roe,Xfr:Poe,xfr:$oe,xharr:Ioe,xhArr:Doe,Xi:zoe,xi:Foe,xlarr:Hoe,xlArr:Boe,xmap:Woe,xnis:qoe,xodot:joe,Xopf:Uoe,xopf:Voe,xoplus:Goe,xotime:Koe,xrarr:Xoe,xrArr:Yoe,Xscr:Zoe,xscr:Joe,xsqcup:Qoe,xuplus:ese,xutri:tse,xvee:nse,xwedge:rse,Yacute:ise,yacute:ose,YAcy:sse,yacy:lse,Ycirc:ase,ycirc:cse,Ycy:use,ycy:fse,yen:dse,Yfr:hse,yfr:pse,YIcy:gse,yicy:mse,Yopf:vse,yopf:yse,Yscr:bse,yscr:wse,YUcy:xse,yucy:kse,yuml:Sse,Yuml:_se,Zacute:Tse,zacute:Cse,Zcaron:Ese,zcaron:Ase,Zcy:Lse,zcy:Mse,Zdot:Nse,zdot:Ose,zeetrf:Rse,ZeroWidthSpace:Pse,Zeta:$se,zeta:Ise,zfr:Dse,Zfr:zse,ZHcy:Fse,zhcy:Hse,zigrarr:Bse,zopf:Wse,Zopf:qse,Zscr:jse,zscr:Use,zwj:Vse,zwnj:Gse},Kse="Á",Xse="á",Yse="Â",Zse="â",Jse="´",Qse="Æ",ele="æ",tle="À",nle="à",rle="&",ile="&",ole="Å",sle="å",lle="Ã",ale="ã",cle="Ä",ule="ä",fle="¦",dle="Ç",hle="ç",ple="¸",gle="¢",mle="©",vle="©",yle="¤",ble="°",wle="÷",xle="É",kle="é",Sle="Ê",_le="ê",Tle="È",Cle="è",Ele="Ð",Ale="ð",Lle="Ë",Mle="ë",Nle="½",Ole="¼",Rle="¾",Ple=">",$le=">",Ile="Í",Dle="í",zle="Î",Fle="î",Hle="¡",Ble="Ì",Wle="ì",qle="¿",jle="Ï",Ule="ï",Vle="«",Gle="<",Kle="<",Xle="¯",Yle="µ",Zle="·",Jle=" ",Qle="¬",eae="Ñ",tae="ñ",nae="Ó",rae="ó",iae="Ô",oae="ô",sae="Ò",lae="ò",aae="ª",cae="º",uae="Ø",fae="ø",dae="Õ",hae="õ",pae="Ö",gae="ö",mae="¶",vae="±",yae="£",bae='"',wae='"',xae="»",kae="®",Sae="®",_ae="§",Tae="­",Cae="¹",Eae="²",Aae="³",Lae="ß",Mae="Þ",Nae="þ",Oae="×",Rae="Ú",Pae="ú",$ae="Û",Iae="û",Dae="Ù",zae="ù",Fae="¨",Hae="Ü",Bae="ü",Wae="Ý",qae="ý",jae="¥",Uae="ÿ",Vae={Aacute:Kse,aacute:Xse,Acirc:Yse,acirc:Zse,acute:Jse,AElig:Qse,aelig:ele,Agrave:tle,agrave:nle,amp:rle,AMP:ile,Aring:ole,aring:sle,Atilde:lle,atilde:ale,Auml:cle,auml:ule,brvbar:fle,Ccedil:dle,ccedil:hle,cedil:ple,cent:gle,copy:mle,COPY:vle,curren:yle,deg:ble,divide:wle,Eacute:xle,eacute:kle,Ecirc:Sle,ecirc:_le,Egrave:Tle,egrave:Cle,ETH:Ele,eth:Ale,Euml:Lle,euml:Mle,frac12:Nle,frac14:Ole,frac34:Rle,gt:Ple,GT:$le,Iacute:Ile,iacute:Dle,Icirc:zle,icirc:Fle,iexcl:Hle,Igrave:Ble,igrave:Wle,iquest:qle,Iuml:jle,iuml:Ule,laquo:Vle,lt:Gle,LT:Kle,macr:Xle,micro:Yle,middot:Zle,nbsp:Jle,not:Qle,Ntilde:eae,ntilde:tae,Oacute:nae,oacute:rae,Ocirc:iae,ocirc:oae,Ograve:sae,ograve:lae,ordf:aae,ordm:cae,Oslash:uae,oslash:fae,Otilde:dae,otilde:hae,Ouml:pae,ouml:gae,para:mae,plusmn:vae,pound:yae,quot:bae,QUOT:wae,raquo:xae,reg:kae,REG:Sae,sect:_ae,shy:Tae,sup1:Cae,sup2:Eae,sup3:Aae,szlig:Lae,THORN:Mae,thorn:Nae,times:Oae,Uacute:Rae,uacute:Pae,Ucirc:$ae,ucirc:Iae,Ugrave:Dae,ugrave:zae,uml:Fae,Uuml:Hae,uuml:Bae,Yacute:Wae,yacute:qae,yen:jae,yuml:Uae},Gae="&",Kae="'",Xae=">",Yae="<",Zae='"',cx={amp:Gae,apos:Kae,gt:Xae,lt:Yae,quot:Zae};var Ts={};const Jae={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 fy;function Qae(){if(fy)return Ts;fy=1;var e=Ts&&Ts.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ts,"__esModule",{value:!0});var t=e(Jae),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?"<22>":(s in t.default&&(s=t.default[s]),r(s))}return Ts.default=o,Ts}var dy;function hy(){if(dy)return Er;dy=1;var e=Er&&Er.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Er,"__esModule",{value:!0}),Er.decodeHTML=Er.decodeHTMLStrict=Er.decodeXML=void 0;var t=e(ax),r=e(Vae),o=e(cx),s=e(Qae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Er.decodeXML=f(o.default),Er.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p<g?1:-1};Er.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),g=Object.keys(t.default).sort(d),v=0,b=0;v<g.length;v++)p[b]===g[v]?(g[v]+=";?",b++):g[v]+=";";var x=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=h(t.default);function M(R){return R.substr(-1)!==";"&&(R+=";"),E(R)}return function(R){return String(R).replace(x,M)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var b=v.charAt(2);return b==="X"||b==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Er}var Ln={},py;function gy(){if(py)return Ln;py=1;var e=Ln&&Ln.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(cx),r=d(t.default),o=h(r);Ln.encodeXML=R(r);var s=e(ax),c=d(s.default),f=h(c);Ln.encodeHTML=b(c,f),Ln.encodeNonAsciiHTML=R(c);function d(N){return Object.keys(N).sort().reduce(function(P,$){return P[N[$]]="&"+$+";",P},{})}function h(N){for(var P=[],$=[],_=0,z=Object.keys(N);_<z.length;_++){var j=z[_];j.length===1?P.push("\\"+j):$.push(j)}P.sort();for(var le=0;le<P.length-1;le++){for(var ee=le;ee<P.length-1&&P[ee].charCodeAt(1)+1===P[ee+1].charCodeAt(1);)ee+=1;var Y=1+ee-le;Y<3||P.splice(le,Y,P[le]+"-"+P[ee])}return $.unshift("["+P.join("")+"]"),new RegExp($.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(N){return N.codePointAt(0)}:function(N){return(N.charCodeAt(0)-55296)*1024+N.charCodeAt(1)-56320+65536};function v(N){return"&#x"+(N.length>1?g(N):N.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(N,P){return function($){return $.replace(P,function(_){return N[_]}).replace(p,v)}}var x=new RegExp(o.source+"|"+p.source,"g");function E(N){return N.replace(x,v)}Ln.escape=E;function M(N){return N.replace(o,v)}Ln.escapeUTF8=M;function R(N){return function(P){return P.replace(x,function($){return N[$]||v($)})}}return Ln}var my;function ece(){return my||(my=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=hy(),r=gy();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=gy();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=hy();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Ad)),Ad}var Ld,vy;function tce(){if(vy)return Ld;vy=1;function e(L,O){if(!(L instanceof O))throw new TypeError("Cannot call a class as a function")}function t(L,O){for(var C=0;C<O.length;C++){var k=O[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(L,k.key,k)}}function r(L,O,C){return O&&t(L.prototype,O),L}function o(L,O){var C=typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(!C){if(Array.isArray(L)||(C=s(L))||O){C&&(L=C);var k=0,D=function(){};return{s:D,n:function(){return k>=L.length?{done:!0}:{done:!1,value:L[k++]}},e:function(He){throw He},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ae=!1,be;return{s:function(){C=C.call(L)},n:function(){var He=C.next();return B=He.done,He},e:function(He){ae=!0,be=He},f:function(){try{!B&&C.return!=null&&C.return()}finally{if(ae)throw be}}}}function s(L,O){if(L){if(typeof L=="string")return c(L,O);var C=Object.prototype.toString.call(L).slice(8,-1);if(C==="Object"&&L.constructor&&(C=L.constructor.name),C==="Map"||C==="Set")return Array.from(L);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(L,O)}}function c(L,O){(O==null||O>L.length)&&(O=L.length);for(var C=0,k=new Array(O);C<O;C++)k[C]=L[C];return k}var f=ece(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var L={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 R(0,5).forEach(function(O){R(0,5).forEach(function(C){R(0,5).forEach(function(k){return p(O,C,k,L)})})}),R(0,23).forEach(function(O){var C=O+232,k=g(O*10+8);L[C]="#"+k+k+k}),L}function p(L,O,C,k){var D=16+L*36+O*6+C,B=L>0?L*40+55:0,ae=O>0?O*40+55:0,be=C>0?C*40+55:0;k[D]=v([B,ae,be])}function g(L){for(var O=L.toString(16);O.length<2;)O="0"+O;return O}function v(L){var O=[],C=o(L),k;try{for(C.s();!(k=C.n()).done;){var D=k.value;O.push(g(D))}}catch(B){C.e(B)}finally{C.f()}return"#"+O.join("")}function b(L,O,C,k){var D;return O==="text"?D=$(C,k):O==="display"?D=E(L,C,k):O==="xterm256Foreground"?D=j(L,k.colors[C]):O==="xterm256Background"?D=le(L,k.colors[C]):O==="rgb"&&(D=x(L,C)),D}function x(L,O){O=O.substring(2).slice(0,-1);var C=+O.substr(0,2),k=O.substring(5).split(";"),D=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return z(L,(C===38?"color:#":"background-color:#")+D)}function E(L,O,C){O=parseInt(O,10);var k={"-1":function(){return"<br/>"},0:function(){return L.length&&M(L)},1:function(){return _(L,"b")},3:function(){return _(L,"i")},4:function(){return _(L,"u")},8:function(){return z(L,"display:none")},9:function(){return _(L,"strike")},22:function(){return z(L,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(L,"i")},24:function(){return ee(L,"u")},39:function(){return j(L,C.fg)},49:function(){return le(L,C.bg)},53:function(){return z(L,"text-decoration:overline")}},D;return k[O]?D=k[O]():4<O&&O<7?D=_(L,"blink"):29<O&&O<38?D=j(L,C.colors[O-30]):39<O&&O<48?D=le(L,C.colors[O-40]):89<O&&O<98?D=j(L,C.colors[8+(O-90)]):99<O&&O<108&&(D=le(L,C.colors[8+(O-100)])),D}function M(L){var O=L.slice(0);return L.length=0,O.reverse().map(function(C){return"</"+C+">"}).join("")}function R(L,O){for(var C=[],k=L;k<=O;k++)C.push(k);return C}function N(L){return function(O){return(L===null||O.category!==L)&&L!=="all"}}function P(L){L=parseInt(L,10);var O=null;return L===0?O="all":L===1?O="bold":2<L&&L<5?O="underline":4<L&&L<7?O="blink":L===8?O="hide":L===9?O="strike":29<L&&L<38||L===39||89<L&&L<98?O="foreground-color":(39<L&&L<48||L===49||99<L&&L<108)&&(O="background-color"),O}function $(L,O){return O.escapeXML?f.encodeXML(L):L}function _(L,O,C){return C||(C=""),L.push(O),"<".concat(O).concat(C?' style="'.concat(C,'"'):"",">")}function z(L,O){return _(L,"span",O)}function j(L,O){return _(L,"span","color:"+O)}function le(L,O){return _(L,"span","background-color:"+O)}function ee(L,O){var C;if(L.slice(-1)[0]===O&&(C=L.pop()),C)return"</"+O+">"}function Y(L,O,C){var k=!1,D=3;function B(){return""}function ae(q,Q){return C("xterm256Foreground",Q),""}function be(q,Q){return C("xterm256Background",Q),""}function Se(q){return O.newline?C("display",-1):C("text",q),""}function He(q,Q){k=!0,Q.trim().length===0&&(Q="0"),Q=Q.trimRight(";").split(";");var he=o(Q),de;try{for(he.s();!(de=he.n()).done;){var ge=de.value;C("display",ge)}}catch(Ce){he.e(Ce)}finally{he.f()}return""}function Ae(q){return C("text",q),""}function Ke(q){return C("rgb",q),""}var je=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:be},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:He},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function Fe(q,Q){Q>D&&k||(k=!1,L=L.replace(q.pattern,q.sub))}var Re=[],F=L,Z=F.length;e:for(;Z>0;){for(var ne=0,se=0,ce=je.length;se<ce;ne=++se){var I=je[ne];if(Fe(I,ne),L.length!==Z){Z=L.length;continue e}}if(L.length===Z)break;Re.push(0),Z=L.length}return Re}function G(L,O,C){return O!=="text"&&(L=L.filter(N(P(C))),L.push({token:O,data:C,category:P(C)})),L}var W=(function(){function L(O){e(this,L),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(L,[{key:"toHtml",value:function(C){var k=this;C=typeof C=="string"?[C]:C;var D=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(be){var Se=b(D,be.token,be.data,B);Se&&ae.push(Se)}),Y(C.join(""),B,function(be,Se){var He=b(D,be,Se,B);He&&ae.push(He),B.stream&&(k.stickyStack=G(k.stickyStack,be,Se))}),D.length&&ae.push(M(D)),ae.join("")}}]),L})();return Ld=W,Ld}var nce=tce();const rce=lx(nce);function oa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function ice(e,t){return t&&e.endsWith(t)}async function bp(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function wp(e){return new rce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function oce(e){return e===null||typeof e!="function"&&typeof e!="object"}function ux(e){let t=e;if(oce(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=bA(t.stack||"",{ignoreStackEntries:[]}),t}function sce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(oa(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(oa(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(oa(t.stack))}`),r.length>0?r:null}function fx(e,t){const r=wp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>sce(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Wa=qE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),po=Yo(Wa,"file"),hn=Yo(Wa,"view"),dx=Yo(Wa,"line"),hx=Yo(Wa,"column"),Bs=Yo(Wa,"test");var yy={exports:{}},by;function xp(){return by||(by=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function A(Zt){return{type:Zt,style:"keyword"}}var U=A("keyword a"),me=A("keyword b"),_e=A("keyword c"),fe=A("keyword d"),Ie=A("operator"),pt={type:"atom",style:"atom"};return{if:A("if"),while:U,with:U,else:me,do:me,try:me,finally:me,return:fe,break:fe,continue:fe,new:A("new"),delete:_e,void:_e,throw:_e,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:A("this"),class:A("class"),super:A("atom"),yield:_e,export:A("export"),import:A("import"),extends:_e,await:_e}})(),x=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(A){for(var U=!1,me,_e=!1;(me=A.next())!=null;){if(!U){if(me=="/"&&!_e)return;me=="["?_e=!0:_e&&me=="]"&&(_e=!1)}U=!U&&me=="\\"}}var R,N;function P(A,U,me){return R=A,N=me,U}function $(A,U){var me=A.next();if(me=='"'||me=="'")return U.tokenize=_(me),U.tokenize(A,U);if(me=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return P("number","number");if(me=="."&&A.match(".."))return P("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(me))return P(me);if(me=="="&&A.eat(">"))return P("=>","operator");if(me=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return P("number","number");if(/\d/.test(me))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),P("number","number");if(me=="/")return A.eat("*")?(U.tokenize=z,z(A,U)):A.eat("/")?(A.skipToEnd(),P("comment","comment")):Qn(A,U,1)?(M(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),P("regexp","string-2")):(A.eat("="),P("operator","operator",A.current()));if(me=="`")return U.tokenize=j,j(A,U);if(me=="#"&&A.peek()=="!")return A.skipToEnd(),P("meta","meta");if(me=="#"&&A.eatWhile(v))return P("variable","property");if(me=="<"&&A.match("!--")||me=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),P("comment","comment");if(x.test(me))return(me!=">"||!U.lexical||U.lexical.type!=">")&&(A.eat("=")?(me=="!"||me=="=")&&A.eat("="):/[<>*+\-|&?]/.test(me)&&(A.eat(me),me==">"&&A.eat(me))),me=="?"&&A.eat(".")?P("."):P("operator","operator",A.current());if(v.test(me)){A.eatWhile(v);var _e=A.current();if(U.lastType!="."){if(b.propertyIsEnumerable(_e)){var fe=b[_e];return P(fe.type,fe.style,_e)}if(_e=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return P("async","keyword",_e)}return P("variable","variable",_e)}}function _(A){return function(U,me){var _e=!1,fe;if(d&&U.peek()=="@"&&U.match(E))return me.tokenize=$,P("jsonld-keyword","meta");for(;(fe=U.next())!=null&&!(fe==A&&!_e);)_e=!_e&&fe=="\\";return _e||(me.tokenize=$),P("string","string")}}function z(A,U){for(var me=!1,_e;_e=A.next();){if(_e=="/"&&me){U.tokenize=$;break}me=_e=="*"}return P("comment","comment")}function j(A,U){for(var me=!1,_e;(_e=A.next())!=null;){if(!me&&(_e=="`"||_e=="$"&&A.eat("{"))){U.tokenize=$;break}me=!me&&_e=="\\"}return P("quasi","string-2",A.current())}var le="([{}])";function ee(A,U){U.fatArrowAt&&(U.fatArrowAt=null);var me=A.string.indexOf("=>",A.start);if(!(me<0)){if(g){var _e=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,me));_e&&(me=_e.index)}for(var fe=0,Ie=!1,pt=me-1;pt>=0;--pt){var Zt=A.string.charAt(pt),Sn=le.indexOf(Zt);if(Sn>=0&&Sn<3){if(!fe){++pt;break}if(--fe==0){Zt=="("&&(Ie=!0);break}}else if(Sn>=3&&Sn<6)++fe;else if(v.test(Zt))Ie=!0;else if(/["'\/`]/.test(Zt))for(;;--pt){if(pt==0)return;var is=A.string.charAt(pt-1);if(is==Zt&&A.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!fe){++pt;break}}Ie&&!fe&&(U.fatArrowAt=pt)}}var Y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(A,U,me,_e,fe,Ie){this.indented=A,this.column=U,this.type=me,this.prev=fe,this.info=Ie,_e!=null&&(this.align=_e)}function W(A,U){if(!p)return!1;for(var me=A.localVars;me;me=me.next)if(me.name==U)return!0;for(var _e=A.context;_e;_e=_e.prev)for(var me=_e.vars;me;me=me.next)if(me.name==U)return!0}function L(A,U,me,_e,fe){var Ie=A.cc;for(O.state=A,O.stream=fe,O.marked=null,O.cc=Ie,O.style=U,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ce:ne;if(pt(me,_e)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:me=="variable"&&W(A,_e)?"variable-2":U}}}var O={state:null,marked:null,cc:null};function C(){for(var A=arguments.length-1;A>=0;A--)O.cc.push(arguments[A])}function k(){return C.apply(null,arguments),!0}function D(A,U){for(var me=U;me;me=me.next)if(me.name==A)return!0;return!1}function B(A){var U=O.state;if(O.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var me=ae(A,U.context);if(me!=null){U.context=me;return}}else if(!D(A,U.localVars)){U.localVars=new He(A,U.localVars);return}}s.globalVars&&!D(A,U.globalVars)&&(U.globalVars=new He(A,U.globalVars))}}function ae(A,U){if(U)if(U.block){var me=ae(A,U.prev);return me?me==U.prev?U:new Se(me,U.vars,!0):null}else return D(A,U.vars)?U:new Se(U.prev,new He(A,U.vars),!1);else return null}function be(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function Se(A,U,me){this.prev=A,this.vars=U,this.block=me}function He(A,U){this.name=A,this.next=U}var Ae=new He("this",new He("arguments",null));function Ke(){O.state.context=new Se(O.state.context,O.state.localVars,!1),O.state.localVars=Ae}function je(){O.state.context=new Se(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ke.lex=je.lex=!0;function Fe(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Fe.lex=!0;function Re(A,U){var me=function(){var _e=O.state,fe=_e.indented;if(_e.lexical.type=="stat")fe=_e.lexical.indented;else for(var Ie=_e.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;_e.lexical=new G(fe,O.stream.column(),A,null,_e.lexical,U)};return me.lex=!0,me}function F(){var A=O.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}F.lex=!0;function Z(A){function U(me){return me==A?k():A==";"||me=="}"||me==")"||me=="]"?C():k(U)}return U}function ne(A,U){return A=="var"?k(Re("vardef",U),Zo,Z(";"),F):A=="keyword a"?k(Re("form"),q,ne,F):A=="keyword b"?k(Re("form"),ne,F):A=="keyword d"?O.stream.match(/^\s*$/,!1)?k():k(Re("stat"),he,Z(";"),F):A=="debugger"?k(Z(";")):A=="{"?k(Re("}"),je,jt,F,Fe):A==";"?k():A=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==F&&O.state.cc.pop()(),k(Re("form"),q,ne,F,Jo)):A=="function"?k(cr):A=="for"?k(Re("form"),je,Ga,ne,Fe,F):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Re("form",A=="class"?A:U),Qo,F)):A=="variable"?g&&U=="declare"?(O.marked="keyword",k(ne)):g&&(U=="module"||U=="enum"||U=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",U=="enum"?k(qe):U=="type"?k(Ka,Z("operator"),lt,Z(";")):k(Re("form"),kn,Z("{"),Re("}"),jt,F,F)):g&&U=="namespace"?(O.marked="keyword",k(Re("form"),ce,ne,F)):g&&U=="abstract"?(O.marked="keyword",k(ne)):k(Re("stat"),$e):A=="switch"?k(Re("form"),q,Z("{"),Re("}","switch"),je,jt,F,F,Fe):A=="case"?k(ce,Z(":")):A=="default"?k(Z(":")):A=="catch"?k(Re("form"),Ke,se,ne,F,Fe):A=="export"?k(Re("stat"),es,F):A=="import"?k(Re("stat"),$i,F):A=="async"?k(ne):U=="@"?k(ce,ne):C(Re("stat"),ce,Z(";"),F)}function se(A){if(A=="(")return k(wr,Z(")"))}function ce(A,U){return Q(A,U,!1)}function I(A,U){return Q(A,U,!0)}function q(A){return A!="("?C():k(Re(")"),he,Z(")"),F)}function Q(A,U,me){if(O.state.fatArrowAt==O.stream.start){var _e=me?ye:xe;if(A=="(")return k(Ke,Re(")"),ut(wr,")"),F,Z("=>"),_e,Fe);if(A=="variable")return C(Ke,kn,Z("=>"),_e,Fe)}var fe=me?ge:de;return Y.hasOwnProperty(A)?k(fe):A=="function"?k(cr,fe):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Re("form"),vf,F)):A=="keyword c"||A=="async"?k(me?I:ce):A=="("?k(Re(")"),he,Z(")"),F,fe):A=="operator"||A=="spread"?k(me?I:ce):A=="["?k(Re("]"),$t,F,fe):A=="{"?Yt(ct,"}",null,fe):A=="quasi"?C(Ce,fe):A=="new"?k(J(me)):k()}function he(A){return A.match(/[;\}\)\],]/)?C():C(ce)}function de(A,U){return A==","?k(he):ge(A,U,!1)}function ge(A,U,me){var _e=me==!1?de:ge,fe=me==!1?ce:I;if(A=="=>")return k(Ke,me?ye:xe,Fe);if(A=="operator")return/\+\+|--/.test(U)||g&&U=="!"?k(_e):g&&U=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Re(">"),ut(lt,">"),F,_e):U=="?"?k(ce,Z(":"),fe):k(fe);if(A=="quasi")return C(Ce,_e);if(A!=";"){if(A=="(")return Yt(I,")","call",_e);if(A==".")return k(Je,_e);if(A=="[")return k(Re("]"),he,Z("]"),F,_e);if(g&&U=="as")return O.marked="keyword",k(lt,_e);if(A=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),k(fe)}}function Ce(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(Ce):k(he,Ee)}function Ee(A){if(A=="}")return O.marked="string-2",O.state.tokenize=j,k(Ce)}function xe(A){return ee(O.stream,O.state),C(A=="{"?ne:ce)}function ye(A){return ee(O.stream,O.state),C(A=="{"?ne:I)}function J(A){return function(U){return U=="."?k(A?ie:ue):U=="variable"&&g?k(Bn,A?ge:de):C(A?I:ce)}}function ue(A,U){if(U=="target")return O.marked="keyword",k(de)}function ie(A,U){if(U=="target")return O.marked="keyword",k(ge)}function $e(A){return A==":"?k(F,ne):C(de,Z(";"),F)}function Je(A){if(A=="variable")return O.marked="property",k()}function ct(A,U){if(A=="async")return O.marked="property",k(ct);if(A=="variable"||O.style=="keyword"){if(O.marked="property",U=="get"||U=="set")return k(dt);var me;return g&&O.state.fatArrowAt==O.stream.start&&(me=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+me[0].length),k(Nt)}else{if(A=="number"||A=="string")return O.marked=d?"property":O.style+" property",k(Nt);if(A=="jsonld-keyword")return k(Nt);if(g&&be(U))return O.marked="keyword",k(ct);if(A=="[")return k(ce,Fn,Z("]"),Nt);if(A=="spread")return k(I,Nt);if(U=="*")return O.marked="keyword",k(ct);if(A==":")return C(Nt)}}function dt(A){return A!="variable"?C(Nt):(O.marked="property",k(cr))}function Nt(A){if(A==":")return k(I);if(A=="(")return C(cr)}function ut(A,U,me){function _e(fe,Ie){if(me?me.indexOf(fe)>-1:fe==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Zt,Sn){return Zt==U||Sn==U?C():C(A)},_e)}return fe==U||Ie==U?k():me&&me.indexOf(";")>-1?C(A):k(Z(U))}return function(fe,Ie){return fe==U||Ie==U?k():C(A,_e)}}function Yt(A,U,me){for(var _e=3;_e<arguments.length;_e++)O.cc.push(arguments[_e]);return k(Re(U,me),ut(A,U),F)}function jt(A){return A=="}"?k():C(ne,jt)}function Fn(A,U){if(g){if(A==":")return k(lt);if(U=="?")return k(Fn)}}function Hr(A,U){if(g&&(A==":"||U=="in"))return k(lt)}function Bt(A){if(g&&A==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?k(ce,Hn,lt):k(lt)}function Hn(A,U){if(U=="is")return O.marked="keyword",k()}function lt(A,U){if(U=="keyof"||U=="typeof"||U=="infer"||U=="readonly")return O.marked="keyword",k(U=="typeof"?I:lt);if(A=="variable"||U=="void")return O.marked="type",k(ar);if(U=="|"||U=="&")return k(lt);if(A=="string"||A=="number"||A=="atom")return k(ar);if(A=="[")return k(Re("]"),ut(lt,"]",","),F,ar);if(A=="{")return k(Re("}"),Xe,F,ar);if(A=="(")return k(ut(Pt,")"),yo,ar);if(A=="<")return k(ut(lt,">"),lt);if(A=="quasi")return C(an,ar)}function yo(A){if(A=="=>")return k(lt)}function Xe(A){return A.match(/[\}\)\]]/)?k():A==","||A==";"?k(Xe):C(ri,Xe)}function ri(A,U){if(A=="variable"||O.style=="keyword")return O.marked="property",k(ri);if(U=="?"||A=="number"||A=="string")return k(ri);if(A==":")return k(lt);if(A=="[")return k(Z("variable"),Hr,Z("]"),ri);if(A=="(")return C(Pi,ri);if(!A.match(/[;\}\)\],]/))return k()}function an(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(an):k(lt,Rt)}function Rt(A){if(A=="}")return O.marked="string-2",O.state.tokenize=j,k(an)}function Pt(A,U){return A=="variable"&&O.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Pt):A==":"?k(lt):A=="spread"?k(Pt):C(lt)}function ar(A,U){if(U=="<")return k(Re(">"),ut(lt,">"),F,ar);if(U=="|"||A=="."||U=="&")return k(lt);if(A=="[")return k(lt,Z("]"),ar);if(U=="extends"||U=="implements")return O.marked="keyword",k(lt);if(U=="?")return k(lt,Z(":"),lt)}function Bn(A,U){if(U=="<")return k(Re(">"),ut(lt,">"),F,ar)}function yr(){return C(lt,cn)}function cn(A,U){if(U=="=")return k(lt)}function Zo(A,U){return U=="enum"?(O.marked="keyword",k(qe)):C(kn,Fn,br,mf)}function kn(A,U){if(g&&be(U))return O.marked="keyword",k(kn);if(A=="variable")return B(U),k();if(A=="spread")return k(kn);if(A=="[")return Yt(sl,"]");if(A=="{")return Yt(Oi,"}")}function Oi(A,U){return A=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(U),k(br)):(A=="variable"&&(O.marked="property"),A=="spread"?k(kn):A=="}"?C():A=="["?k(ce,Z("]"),Z(":"),Oi):k(Z(":"),kn,br))}function sl(){return C(kn,br)}function br(A,U){if(U=="=")return k(I)}function mf(A){if(A==",")return k(Zo)}function Jo(A,U){if(A=="keyword b"&&U=="else")return k(Re("form","else"),ne,F)}function Ga(A,U){if(U=="await")return k(Ga);if(A=="(")return k(Re(")"),ll,F)}function ll(A){return A=="var"?k(Zo,Ri):A=="variable"?k(Ri):C(Ri)}function Ri(A,U){return A==")"?k():A==";"?k(Ri):U=="in"||U=="of"?(O.marked="keyword",k(ce,Ri)):C(ce,Ri)}function cr(A,U){if(U=="*")return O.marked="keyword",k(cr);if(A=="variable")return B(U),k(cr);if(A=="(")return k(Ke,Re(")"),ut(wr,")"),F,Bt,ne,Fe);if(g&&U=="<")return k(Re(">"),ut(yr,">"),F,cr)}function Pi(A,U){if(U=="*")return O.marked="keyword",k(Pi);if(A=="variable")return B(U),k(Pi);if(A=="(")return k(Ke,Re(")"),ut(wr,")"),F,Bt,Fe);if(g&&U=="<")return k(Re(">"),ut(yr,">"),F,Pi)}function Ka(A,U){if(A=="keyword"||A=="variable")return O.marked="type",k(Ka);if(U=="<")return k(Re(">"),ut(yr,">"),F)}function wr(A,U){return U=="@"&&k(ce,wr),A=="spread"?k(wr):g&&be(U)?(O.marked="keyword",k(wr)):g&&A=="this"?k(Fn,br):C(kn,Fn,br)}function vf(A,U){return A=="variable"?Qo(A,U):xr(A,U)}function Qo(A,U){if(A=="variable")return B(U),k(xr)}function xr(A,U){if(U=="<")return k(Re(">"),ut(yr,">"),F,xr);if(U=="extends"||U=="implements"||g&&A==",")return U=="implements"&&(O.marked="keyword"),k(g?lt:ce,xr);if(A=="{")return k(Re("}"),kr,F)}function kr(A,U){if(A=="async"||A=="variable"&&(U=="static"||U=="get"||U=="set"||g&&be(U))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",k(kr);if(A=="variable"||O.style=="keyword")return O.marked="property",k(bo,kr);if(A=="number"||A=="string")return k(bo,kr);if(A=="[")return k(ce,Fn,Z("]"),bo,kr);if(U=="*")return O.marked="keyword",k(kr);if(g&&A=="(")return C(Pi,kr);if(A==";"||A==",")return k(kr);if(A=="}")return k();if(U=="@")return k(ce,kr)}function bo(A,U){if(U=="!"||U=="?")return k(bo);if(A==":")return k(lt,br);if(U=="=")return k(I);var me=O.state.lexical.prev,_e=me&&me.info=="interface";return C(_e?Pi:cr)}function es(A,U){return U=="*"?(O.marked="keyword",k(rs,Z(";"))):U=="default"?(O.marked="keyword",k(ce,Z(";"))):A=="{"?k(ut(ts,"}"),rs,Z(";")):C(ne)}function ts(A,U){if(U=="as")return O.marked="keyword",k(Z("variable"));if(A=="variable")return C(I,ts)}function $i(A){return A=="string"?k():A=="("?C(ce):A=="."?C(de):C(ns,Br,rs)}function ns(A,U){return A=="{"?Yt(ns,"}"):(A=="variable"&&B(U),U=="*"&&(O.marked="keyword"),k(al))}function Br(A){if(A==",")return k(ns,Br)}function al(A,U){if(U=="as")return O.marked="keyword",k(ns)}function rs(A,U){if(U=="from")return O.marked="keyword",k(ce)}function $t(A){return A=="]"?k():C(ut(I,"]"))}function qe(){return C(Re("form"),kn,Z("{"),Re("}"),ut(ii,"}"),F,F)}function ii(){return C(kn,br)}function cl(A,U){return A.lastType=="operator"||A.lastType==","||x.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function Qn(A,U,me){return U.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(me||0)))}return{startState:function(A){var U={tokenize:$,lastType:"sof",cc:[],lexical:new G((A||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:A||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(A,U){if(A.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=A.indentation(),ee(A,U)),U.tokenize!=z&&A.eatSpace())return null;var me=U.tokenize(A,U);return R=="comment"?me:(U.lastType=R=="operator"&&(N=="++"||N=="--")?"incdec":R,L(U,me,R,N,A))},indent:function(A,U){if(A.tokenize==z||A.tokenize==j)return r.Pass;if(A.tokenize!=$)return 0;var me=U&&U.charAt(0),_e=A.lexical,fe;if(!/^\s*else\b/.test(U))for(var Ie=A.cc.length-1;Ie>=0;--Ie){var pt=A.cc[Ie];if(pt==F)_e=_e.prev;else if(pt!=Jo&&pt!=Fe)break}for(;(_e.type=="stat"||_e.type=="form")&&(me=="}"||(fe=A.cc[A.cc.length-1])&&(fe==de||fe==ge)&&!/^[,\.=+\-*:?[\(]/.test(U));)_e=_e.prev;f&&_e.type==")"&&_e.prev.type=="stat"&&(_e=_e.prev);var Zt=_e.type,Sn=me==Zt;return Zt=="vardef"?_e.indented+(A.lastType=="operator"||A.lastType==","?_e.info.length+1:0):Zt=="form"&&me=="{"?_e.indented:Zt=="form"?_e.indented+c:Zt=="stat"?_e.indented+(cl(A,U)?f||c:0):_e.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?_e.indented+(/^(?:case|default)\b/.test(U)?c:2*c):_e.align?_e.column+(Sn?0:1):_e.indented+(Sn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Qn,skipExpression:function(A){L(A,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),yy.exports}xp();var wy={exports:{}},xy;function kp(){return xy||(xy=1,(function(e,t){(function(r){r(vo())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function x(k,D){function B(Se){return D.tokenize=Se,Se(k,D)}var ae=k.next();if(ae=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(R("atom","]]>")):null:k.match("--")?B(R("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(N(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),D.tokenize=R("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",D.tokenize=E,"tag bracket");if(ae=="&"){var be;return k.eat("#")?k.eat("x")?be=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):be=k.eatWhile(/[\d]/)&&k.eat(";"):be=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),be?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function E(k,D){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return D.tokenize=x,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){D.tokenize=x,D.state=j,D.tagName=D.tagStart=null;var ae=D.tokenize(k,D);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(D.tokenize=M(B),D.stringStartCol=k.column(),D.tokenize(k,D)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function M(k){var D=function(B,ae){for(;!B.eol();)if(B.next()==k){ae.tokenize=E;break}return"string"};return D.isInAttribute=!0,D}function R(k,D){return function(B,ae){for(;!B.eol();){if(B.match(D)){ae.tokenize=x;break}B.next()}return k}}function N(k){return function(D,B){for(var ae;(ae=D.next())!=null;){if(ae=="<")return B.tokenize=N(k+1),B.tokenize(D,B);if(ae==">")if(k==1){B.tokenize=x;break}else return B.tokenize=N(k-1),B.tokenize(D,B)}return"meta"}}function P(k){return k&&k.toLowerCase()}function $(k,D,B){this.prev=k.context,this.tagName=D||"",this.indent=k.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(D)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function _(k){k.context&&(k.context=k.context.prev)}function z(k,D){for(var B;;){if(!k.context||(B=k.context.tagName,!h.contextGrabbers.hasOwnProperty(P(B))||!h.contextGrabbers[P(B)].hasOwnProperty(P(D))))return;_(k)}}function j(k,D,B){return k=="openTag"?(B.tagStart=D.column(),le):k=="closeTag"?ee:j}function le(k,D,B){return k=="word"?(B.tagName=D.current(),b="tag",W):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",W(k,D,B)):(b="error",le)}function ee(k,D,B){if(k=="word"){var ae=D.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(P(B.context.tagName))&&_(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(b="tag",Y):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Y(k,D,B)):(b="error",G)}function Y(k,D,B){return k!="endTag"?(b="error",Y):(_(B),j)}function G(k,D,B){return b="error",Y(k,D,B)}function W(k,D,B){if(k=="word")return b="attribute",L;if(k=="endTag"||k=="selfcloseTag"){var ae=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(P(ae))?z(B,ae):(z(B,ae),B.context=new $(B,ae,be==B.indented)),j}return b="error",W}function L(k,D,B){return k=="equals"?O:(h.allowMissing||(b="error"),W(k,D,B))}function O(k,D,B){return k=="string"?C:k=="word"&&h.allowUnquoted?(b="string",W):(b="error",W(k,D,B))}function C(k,D,B){return k=="string"?C:W(k,D,B)}return{startState:function(k){var D={tokenize:x,state:j,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(D.baseIndent=k),D},token:function(k,D){if(!D.tagName&&k.sol()&&(D.indented=k.indentation()),k.eatSpace())return null;v=null;var B=D.tokenize(k,D);return(B||v)&&B!="comment"&&(b=null,D.state=D.state(v||B,k,D),b&&(B=b=="error"?B+" error":b)),B},indent:function(k,D,B){var ae=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ae&&ae.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=x)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var be=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(be&&be[1])for(;ae;)if(ae.tagName==be[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(P(ae.tagName)))ae=ae.prev;else break;else if(be)for(;ae;){var Se=h.contextGrabbers[P(ae.tagName)];if(Se&&Se.hasOwnProperty(P(be[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==O&&(k.state=W)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var D=[],B=k.context;B;B=B.prev)D.push(B.tagName);return D.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),wy.exports}kp();var ky={exports:{}},Sy={exports:{}},_y;function lce(){return _y||(_y=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineMode("css",function(G,W){var L=W.inline;W.propertyKeywords||(W=r.resolveMode("text/css"));var O=G.indentUnit,C=W.tokenHooks,k=W.documentTypes||{},D=W.mediaTypes||{},B=W.mediaFeatures||{},ae=W.mediaValueKeywords||{},be=W.propertyKeywords||{},Se=W.nonStandardPropertyKeywords||{},He=W.fontProperties||{},Ae=W.counterDescriptors||{},Ke=W.colorKeywords||{},je=W.valueKeywords||{},Fe=W.allowNested,Re=W.lineComment,F=W.supportsAtComponent===!0,Z=G.highlightNonStandardPropertyKeywords!==!1,ne,se;function ce(J,ue){return ne=ue,J}function I(J,ue){var ie=J.next();if(C[ie]){var $e=C[ie](J,ue);if($e!==!1)return $e}if(ie=="@")return J.eatWhile(/[\w\\\-]/),ce("def",J.current());if(ie=="="||(ie=="~"||ie=="|")&&J.eat("="))return ce(null,"compare");if(ie=='"'||ie=="'")return ue.tokenize=q(ie),ue.tokenize(J,ue);if(ie=="#")return J.eatWhile(/[\w\\\-]/),ce("atom","hash");if(ie=="!")return J.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(ie)||ie=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),ce("number","unit");if(ie==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),ce("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(J.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(ie)?ce(null,"select-op"):ie=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ie)?ce(null,ie):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(ue.tokenize=Q),ce("variable callee","variable")):/[\w\\\-]/.test(ie)?(J.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function q(J){return function(ue,ie){for(var $e=!1,Je;(Je=ue.next())!=null;){if(Je==J&&!$e){J==")"&&ue.backUp(1);break}$e=!$e&&Je=="\\"}return(Je==J||!$e&&J!=")")&&(ie.tokenize=null),ce("string","string")}}function Q(J,ue){return J.next(),J.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=q(")"),ce(null,"(")}function he(J,ue,ie){this.type=J,this.indent=ue,this.prev=ie}function de(J,ue,ie,$e){return J.context=new he(ie,ue.indentation()+($e===!1?0:O),J.context),ie}function ge(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ce(J,ue,ie){return ye[ie.context.type](J,ue,ie)}function Ee(J,ue,ie,$e){for(var Je=$e||1;Je>0;Je--)ie.context=ie.context.prev;return Ce(J,ue,ie)}function xe(J){var ue=J.current().toLowerCase();je.hasOwnProperty(ue)?se="atom":Ke.hasOwnProperty(ue)?se="keyword":se="variable"}var ye={};return ye.top=function(J,ue,ie){if(J=="{")return de(ie,ue,"block");if(J=="}"&&ie.context.prev)return ge(ie);if(F&&/@component/i.test(J))return de(ie,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return de(ie,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return de(ie,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return ie.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return de(ie,ue,"at");if(J=="hash")se="builtin";else if(J=="word")se="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return de(ie,ue,"interpolation");if(J==":")return"pseudo";if(Fe&&J=="(")return de(ie,ue,"parens")}return ie.context.type},ye.block=function(J,ue,ie){if(J=="word"){var $e=ue.current().toLowerCase();return be.hasOwnProperty($e)?(se="property","maybeprop"):Se.hasOwnProperty($e)?(se=Z?"string-2":"property","maybeprop"):Fe?(se=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(se+=" error","maybeprop")}else return J=="meta"?"block":!Fe&&(J=="hash"||J=="qualifier")?(se="error","block"):ye.top(J,ue,ie)},ye.maybeprop=function(J,ue,ie){return J==":"?de(ie,ue,"prop"):Ce(J,ue,ie)},ye.prop=function(J,ue,ie){if(J==";")return ge(ie);if(J=="{"&&Fe)return de(ie,ue,"propBlock");if(J=="}"||J=="{")return Ee(J,ue,ie);if(J=="(")return de(ie,ue,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))se+=" error";else if(J=="word")xe(ue);else if(J=="interpolation")return de(ie,ue,"interpolation");return"prop"},ye.propBlock=function(J,ue,ie){return J=="}"?ge(ie):J=="word"?(se="property","maybeprop"):ie.context.type},ye.parens=function(J,ue,ie){return J=="{"||J=="}"?Ee(J,ue,ie):J==")"?ge(ie):J=="("?de(ie,ue,"parens"):J=="interpolation"?de(ie,ue,"interpolation"):(J=="word"&&xe(ue),"parens")},ye.pseudo=function(J,ue,ie){return J=="meta"?"pseudo":J=="word"?(se="variable-3",ie.context.type):Ce(J,ue,ie)},ye.documentTypes=function(J,ue,ie){return J=="word"&&k.hasOwnProperty(ue.current())?(se="tag",ie.context.type):ye.atBlock(J,ue,ie)},ye.atBlock=function(J,ue,ie){if(J=="(")return de(ie,ue,"atBlock_parens");if(J=="}"||J==";")return Ee(J,ue,ie);if(J=="{")return ge(ie)&&de(ie,ue,Fe?"block":"top");if(J=="interpolation")return de(ie,ue,"interpolation");if(J=="word"){var $e=ue.current().toLowerCase();$e=="only"||$e=="not"||$e=="and"||$e=="or"?se="keyword":D.hasOwnProperty($e)?se="attribute":B.hasOwnProperty($e)?se="property":ae.hasOwnProperty($e)?se="keyword":be.hasOwnProperty($e)?se="property":Se.hasOwnProperty($e)?se=Z?"string-2":"property":je.hasOwnProperty($e)?se="atom":Ke.hasOwnProperty($e)?se="keyword":se="error"}return ie.context.type},ye.atComponentBlock=function(J,ue,ie){return J=="}"?Ee(J,ue,ie):J=="{"?ge(ie)&&de(ie,ue,Fe?"block":"top",!1):(J=="word"&&(se="error"),ie.context.type)},ye.atBlock_parens=function(J,ue,ie){return J==")"?ge(ie):J=="{"||J=="}"?Ee(J,ue,ie,2):ye.atBlock(J,ue,ie)},ye.restricted_atBlock_before=function(J,ue,ie){return J=="{"?de(ie,ue,"restricted_atBlock"):J=="word"&&ie.stateArg=="@counter-style"?(se="variable","restricted_atBlock_before"):Ce(J,ue,ie)},ye.restricted_atBlock=function(J,ue,ie){return J=="}"?(ie.stateArg=null,ge(ie)):J=="word"?(ie.stateArg=="@font-face"&&!He.hasOwnProperty(ue.current().toLowerCase())||ie.stateArg=="@counter-style"&&!Ae.hasOwnProperty(ue.current().toLowerCase())?se="error":se="property","maybeprop"):"restricted_atBlock"},ye.keyframes=function(J,ue,ie){return J=="word"?(se="variable","keyframes"):J=="{"?de(ie,ue,"top"):Ce(J,ue,ie)},ye.at=function(J,ue,ie){return J==";"?ge(ie):J=="{"||J=="}"?Ee(J,ue,ie):(J=="word"?se="tag":J=="hash"&&(se="builtin"),"at")},ye.interpolation=function(J,ue,ie){return J=="}"?ge(ie):J=="{"||J==";"?Ee(J,ue,ie):(J=="word"?se="variable":J!="variable"&&J!="("&&J!=")"&&(se="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:L?"block":"top",stateArg:null,context:new he(L?"block":"top",J||0,null)}},token:function(J,ue){if(!ue.tokenize&&J.eatSpace())return null;var ie=(ue.tokenize||I)(J,ue);return ie&&typeof ie=="object"&&(ne=ie[1],ie=ie[0]),se=ie,ne!="comment"&&(ue.state=ye[ue.state](ne,J,ue)),se},indent:function(J,ue){var ie=J.context,$e=ue&&ue.charAt(0),Je=ie.indent;return ie.type=="prop"&&($e=="}"||$e==")")&&(ie=ie.prev),ie.prev&&($e=="}"&&(ie.type=="block"||ie.type=="top"||ie.type=="interpolation"||ie.type=="restricted_atBlock")?(ie=ie.prev,Je=ie.indent):($e==")"&&(ie.type=="parens"||ie.type=="atBlock_parens")||$e=="{"&&(ie.type=="at"||ie.type=="atBlock"))&&(Je=Math.max(0,ie.indent-O))),Je},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function o(G){for(var W={},L=0;L<G.length;++L)W[G[L].toLowerCase()]=!0;return W}var s=["domain","regexp","url","url-prefix"],c=o(s),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=o(f),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=o(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=o(g),b=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],x=o(b),E=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],M=o(E),R=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],N=o(R),P=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],$=o(P),_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],z=o(_),j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],le=o(j),ee=s.concat(f).concat(h).concat(g).concat(b).concat(E).concat(_).concat(j);r.registerHelper("hintWords","css",ee);function Y(G,W){for(var L=!1,O;(O=G.next())!=null;){if(L&&O=="/"){W.tokenize=null;break}L=O=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:c,mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:M,fontProperties:N,counterDescriptors:$,colorKeywords:z,valueKeywords:le,tokenHooks:{"/":function(G,W){return G.eat("*")?(W.tokenize=Y,Y(G,W)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:M,colorKeywords:z,valueKeywords:le,fontProperties:N,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,W){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(W.tokenize=Y,Y(G,W)):["operator","operator"]},":":function(G){return G.match(/^\s*\{/,!1)?[null,null]:!1},$:function(G){return G.match(/^[\w-]+/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(G){return G.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:M,colorKeywords:z,valueKeywords:le,fontProperties:N,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,W){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(W.tokenize=Y,Y(G,W)):["operator","operator"]},"@":function(G){return G.eat("{")?[null,"interpolation"]:G.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(G.eatWhile(/[\w\\\-]/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:d,mediaFeatures:p,propertyKeywords:x,nonStandardPropertyKeywords:M,fontProperties:N,counterDescriptors:$,colorKeywords:z,valueKeywords:le,supportsAtComponent:!0,tokenHooks:{"/":function(G,W){return G.eat("*")?(W.tokenize=Y,Y(G,W)):!1}},name:"css",helperType:"gss"})})})()),Sy.exports}var Ty;function ace(){return Ty||(Ty=1,(function(e,t){(function(r){r(vo(),kp(),xp(),lce())})(function(r){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,x){var E=v.current(),M=E.search(b);return M>-1?v.backUp(E.length-M):E.match(/<\/?$/)&&(v.backUp(E.length),v.match(b,!1)||v.match(E)),x}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var x=v.match(f(b));return x?/^\s*(.*?)\s*$/.exec(x[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,b){for(var x in v)for(var E=b[x]||(b[x]=[]),M=v[x],R=M.length-1;R>=0;R--)E.unshift(M[R])}function g(v,b){for(var x=0;x<v.length;x++){var E=v[x];if(!E[0]||E[1].test(d(b,E[0])))return E[2]}}r.defineMode("htmlmixed",function(v,b){var x=r.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),E={},M=b&&b.tags,R=b&&b.scriptTypes;if(p(o,E),M&&p(M,E),R)for(var N=R.length-1;N>=0;N--)E.script.unshift(["type",R[N].matches,R[N].mode]);function P($,_){var z=x.token($,_.htmlState),j=/\btag\b/.test(z),le;if(j&&!/[<>\s\/]/.test($.current())&&(le=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(le))_.inTag=le+" ";else if(_.inTag&&j&&/>$/.test($.current())){var ee=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var Y=$.current()==">"&&g(E[ee[1]],ee[2]),G=r.getMode(v,Y),W=h(ee[1],!0),L=h(ee[1],!1);_.token=function(O,C){return O.match(W,!1)?(C.token=P,C.localState=C.localMode=null,null):s(O,L,C.localMode.token(O,C.localState))},_.localMode=G,_.localState=r.startState(G,x.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=$.current(),$.eol()&&(_.inTag+=" "));return z}return{startState:function(){var $=r.startState(x);return{token:P,inTag:null,localMode:null,localState:null,htmlState:$}},copyState:function($){var _;return $.localState&&(_=r.copyState($.localMode,$.localState)),{token:$.token,inTag:$.inTag,localMode:$.localMode,localState:_,htmlState:r.copyState(x,$.htmlState)}},token:function($,_){return _.token($,_)},indent:function($,_,z){return!$.localMode||/^\s*<\//.test(_)?x.indent($.htmlState,_,z):$.localMode.indent?$.localMode.indent($.localState,_,z):r.Pass},innerMode:function($){return{state:$.localState||$.htmlState,mode:$.localMode||x}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),ky.exports}ace();var Cy={exports:{}},Ey;function cce(){return Ey||(Ey=1,(function(e,t){(function(r){r(vo(),kp(),xp())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var E=x.tagName;x.tagName=null;var M=d.indent(x,"","");return x.tagName=E,M}function g(x,E){return E.context.mode==d?v(x,E,E.context):b(x,E,E.context)}function v(x,E,M){if(M.depth==2)return x.match(/^.*?\*\//)?M.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(M.state);var R=p(M.state),N=M.state.context;if(N&&x.match(/^[^>]*>\s*$/,!1)){for(;N.prev&&!N.startOfLine;)N=N.prev;N.startOfLine?R-=c.indentUnit:M.prev.state.lexical&&(R=M.prev.state.lexical.indented)}else M.depth==1&&(R+=c.indentUnit);return E.context=new o(r.startState(h,R),h,0,E.context),null}if(M.depth==1){if(x.peek()=="<")return d.skipAttribute(M.state),E.context=new o(r.startState(d,p(M.state)),d,0,E.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return M.depth=2,g(x,E)}var P=d.token(x,M.state),$=x.current(),_;return/\btag\b/.test(P)?/>$/.test($)?M.state.context?M.depth=0:E.context=E.context.prev:/^</.test($)&&(M.depth=1):!P&&(_=$.indexOf("{"))>-1&&x.backUp($.length-_),P}function b(x,E,M){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,M.state))return E.context=new o(r.startState(d,h.indent(M.state,"","")),d,0,E.context),h.skipExpression(M.state),null;var R=h.token(x,M.state);if(!R&&M.depth!=null){var N=x.current();N=="{"?M.depth++:N=="}"&&--M.depth==0&&(E.context=E.context.prev)}return R}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:g,indent:function(x,E,M){return x.context.mode.indent(x.context.state,E,M)},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}})})})()),Cy.exports}cce();var Ay={exports:{}},Ly;function uce(){return Ly||(Ly=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!g&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Ay.exports}uce();var My={exports:{}},Ny;function fce(){return Ny||(Ny=1,(function(e,t){(function(r){r(vo())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",x=v[b],E=p.pos;function M(){r.off(document,"mousemove",R),r.off(document,"mouseup",M)}function R(N){if(N.which!=1)return M();p.moveTo(E+(N[b]-x)*(p.total/p.size))}r.on(document,"mousemove",R),r.on(document,"mouseup",M)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=v.clientX<b.left?-1:v.clientX>b.right?1:0:x=v.clientY<b.top?-1:v.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),My.exports}fce();const Nn=Ft();function dce(e,t,r={}){const o=ML.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Ia(()=>{Nn.value=void 0}),Uu(o)}async function px(e){_a({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function hce(e,t){_a({file:e,column:t.column-1,line:t.line,view:"editor",test:Bs.value})}function pce(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return bp(s,r,o);_a({file:e.file.id,column:o-1,line:r,view:"editor",test:Bs.value})}const pr=Ge(),Ws=Ge(!0),go=Ge(!1),Cu=Ge(!0),Ns=ke(()=>ei.value?.coverage),mh=ke(()=>Ns.value?.enabled),Os=ke(()=>mh.value&&!!Ns.value.htmlReporter),qs=sf("vitest-ui_splitpanes-mainSizes",[33,67]),co=sf("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:qs.value[0],details:{size:qs.value[1],browser:co.value[0],main:co.value[1]}}),Oy=ke(()=>{if(Os.value){const e=Ns.value.reportsDirectory.lastIndexOf("/"),t=Ns.value.htmlReporter?.subdir;return t?`/${Ns.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${Ns.value.reportsDirectory.slice(e+1)}/index.html`}});xt(uf,e=>{Cu.value=e==="running"},{immediate:!0});function gce(){const e=po.value;if(e&&e.length>0){const t=mr(e);t?(pr.value=t,Ws.value=!1,go.value=!1):SE(()=>ft.state.getFiles(),()=>{pr.value=mr(e),Ws.value=!1,go.value=!1})}return Ws}function Eu(e){Ws.value=e,go.value=!1,e&&(pr.value=void 0,po.value="")}function _a({file:e,line:t,view:r,test:o,column:s}){po.value=e,dx.value=t,hx.value=s,hn.value=r,Bs.value=o,pr.value=mr(e),Eu(!1)}function mce(e){e.type==="test"?hn.value==="editor"?px(e):_a({file:e.file.id,line:null,column:null,view:hn.value,test:e.id}):_a({file:e.file.id,test:null,line:null,view:hn.value,column:null})}function vce(){go.value=!0,Ws.value=!1,pr.value=void 0,po.value=""}function yce(){At.details.browser=100,At.details.main=0,co.value=[100,0]}function gx(){if(Zn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function bce(){At.details.browser=gx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main]}function wce(){At.navigation=33,At.details.size=67,qs.value=[33,67]}function mx(){At.details.main!==0&&(At.details.browser=gx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main])}const xce={setCurrentFileId(e){po.value=e,pr.value=mr(e),Eu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Zn?.provider==="webdriverio"&&mx(),await new Promise(r=>requestAnimationFrame(r))}},kce=location.port,Sce=[location.hostname,kce].filter(Boolean).join(":"),_ce=`${location.protocol==="https:"?"wss:":"ws:"}//${Sce}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,gr=!!window.METADATA_PATH;var rr=Uint8Array,Rs=Uint16Array,Tce=Int32Array,vx=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]),yx=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]),Cce=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bx=function(e,t){for(var r=new Rs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Tce(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}},wx=bx(vx,2),xx=wx.b,Ece=wx.r;xx[28]=258,Ece[258]=28;var Ace=bx(yx,0),Lce=Ace.b,vh=new Rs(32768);for(var Lt=0;Lt<32768;++Lt){var Vi=(Lt&43690)>>1|(Lt&21845)<<1;Vi=(Vi&52428)>>2|(Vi&13107)<<2,Vi=(Vi&61680)>>4|(Vi&3855)<<4,vh[Lt]=((Vi&65280)>>8|(Vi&255)<<8)>>1}var sa=(function(e,t,r){for(var o=e.length,s=0,c=new Rs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Rs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Rs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=f[e[s]-1]++<<g,b=v|(1<<g)-1;v<=b;++v)d[vh[v]>>h]=p}else for(d=new Rs(o),s=0;s<o;++s)e[s]&&(d[s]=vh[f[e[s]-1]++]>>15-e[s]);return d}),qa=new rr(288);for(var Lt=0;Lt<144;++Lt)qa[Lt]=8;for(var Lt=144;Lt<256;++Lt)qa[Lt]=9;for(var Lt=256;Lt<280;++Lt)qa[Lt]=7;for(var Lt=280;Lt<288;++Lt)qa[Lt]=8;var kx=new rr(32);for(var Lt=0;Lt<32;++Lt)kx[Lt]=5;var Mce=sa(qa,9,1),Nce=sa(kx,5,1),Md=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Ar=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Nd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Oce=function(e){return(e+7)/8|0},Sx=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))},Rce=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Un=function(e,t,r){var o=new Error(t||Rce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Un),!r)throw o;return o},Sp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(ce){var I=r.length;if(ce>I){var q=new rr(Math.max(I*2,ce));q.set(r),r=q}},g=t.f||0,v=t.p||0,b=t.b||0,x=t.l,E=t.d,M=t.m,R=t.n,N=s*8;do{if(!x){g=Ar(e,v,1);var P=Ar(e,v+1,3);if(v+=3,P)if(P==1)x=Mce,E=Nce,M=9,R=5;else if(P==2){var j=Ar(e,v,31)+257,le=Ar(e,v+10,15)+4,ee=j+Ar(e,v+5,31)+1;v+=14;for(var Y=new rr(ee),G=new rr(19),W=0;W<le;++W)G[Cce[W]]=Ar(e,v+W*3,7);v+=le*3;for(var L=Md(G),O=(1<<L)-1,C=sa(G,L,1),W=0;W<ee;){var k=C[Ar(e,v,O)];v+=k&15;var $=k>>4;if($<16)Y[W++]=$;else{var D=0,B=0;for($==16?(B=3+Ar(e,v,3),v+=2,D=Y[W-1]):$==17?(B=3+Ar(e,v,7),v+=3):$==18&&(B=11+Ar(e,v,127),v+=7);B--;)Y[W++]=D}}var ae=Y.subarray(0,j),be=Y.subarray(j);M=Md(ae),R=Md(be),x=sa(ae,M,1),E=sa(be,R,1)}else Un(1);else{var $=Oce(v)+4,_=e[$-4]|e[$-3]<<8,z=$+_;if(z>s){h&&Un(0);break}d&&p(b+_),r.set(e.subarray($,z),b),t.b=b+=_,t.p=v=z*8,t.f=g;continue}if(v>N){h&&Un(0);break}}d&&p(b+131072);for(var Se=(1<<M)-1,He=(1<<R)-1,Ae=v;;Ae=v){var D=x[Nd(e,v)&Se],Ke=D>>4;if(v+=D&15,v>N){h&&Un(0);break}if(D||Un(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,x=null;break}else{var je=Ke-254;if(Ke>264){var W=Ke-257,Fe=vx[W];je=Ar(e,v,(1<<Fe)-1)+xx[W],v+=Fe}var Re=E[Nd(e,v)&He],F=Re>>4;Re||Un(3),v+=Re&15;var be=Lce[F];if(F>3){var Fe=yx[F];be+=Nd(e,v)&(1<<Fe)-1,v+=Fe}if(v>N){h&&Un(0);break}d&&p(b+131072);var Z=b+je;if(b<be){var ne=c-be,se=Math.min(be,Z);for(ne+b<0&&Un(3);b<se;++b)r[b]=o[ne+b]}for(;b<Z;++b)r[b]=r[b-be]}}t.l=x,t.p=Ae,t.b=b,t.f=g,x&&(g=1,t.m=M,t.d=E,t.n=R)}while(!g);return b!=r.length&&f?Sx(r,0,b):r.subarray(0,b)},Pce=new rr(0),$ce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Un(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Ice=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Dce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Un(6,"invalid zlib data"),(e[1]>>5&1)==1&&Un(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function zce(e,t){return Sp(e,{i:2},t,t)}function Fce(e,t){var r=$ce(e);return r+8>e.length&&Un(6,"invalid gzip data"),Sp(e.subarray(r,-8),{i:2},new rr(Ice(e)),t)}function Hce(e,t){return Sp(e.subarray(Dce(e),-4),{i:2},t,t)}function Bce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Fce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?zce(e,t):Hce(e,t)}var yh=typeof TextDecoder<"u"&&new TextDecoder,Wce=0;try{yh.decode(Pce,{stream:!0}),Wce=1}catch{}var qce=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:Sx(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 jce(e,t){var r;if(yh)return yh.decode(e);var o=qce(e),s=o.s,r=o.r;return r.length&&Un(8),s}const Od=()=>{},dn=()=>Promise.resolve();function Uce(){const e=ir({state:new Kw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:dn,getTransformResult:dn,onDone:Od,onTaskUpdate:Od,writeFile:dn,rerun:dn,rerunTask:dn,updateSnapshot:dn,resolveSnapshotPath:dn,snapshotSaved:dn,onAfterSuiteRun:dn,onCancel:dn,getCountOfFailedTests:()=>0,sendLog:dn,resolveSnapshotRawPath:dn,readSnapshotFile:dn,saveSnapshotFile:dn,readTestFile:async d=>t.sources[d],removeSnapshotFile:dn,onUnhandledError:Od,saveTestFile:dn,getProvidedContext:()=>({}),getTestFiles:dn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=d.headers.get("content-type")?.toLowerCase()||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const g=new Uint8Array(await d.arrayBuffer()),v=jce(Bce(g));t=fh(v)}else t=fh(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return gr?Uce():KA(_ce,{reactive:(t,r)=>r==="state"?ir(t):Ft(t),handlers:{onTestAnnotate(t,r){Oe.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Oe.recordTestArtifact(t,r)},onTaskUpdate(t,r){Oe.resumeRun(t,r),uf.value="running"},onSpecsCollected(t,r){Oe.startTime=r||performance.now()},onFinished(t,r,o,s){Oe.endRun(s),eo.value=(r||[]).map(ux)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),ei=Ft({}),Ho=Ge("CONNECTING"),Gt=ke(()=>{const e=po.value;return e?mr(e):void 0}),_x=ke(()=>gp(Gt.value).map(e=>e?.logs||[]).flat()||[]);function mr(e){const t=ft.state.idMap.get(e);return t||void 0}const Vce=ke(()=>Ho.value==="OPEN"),Rd=ke(()=>Ho.value==="CONNECTING");ke(()=>Ho.value==="CLOSED");function Gce(){return _p(ft.state.getFiles())}function Tx(e){delete e.result;const t=Oe.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ha(e)))for(const r of e.tasks)Tx(r)}function Kce(e){const t=Oe.nodes;e.forEach(r=>{delete r.result,gp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,In(o)&&(o.collectDuration=void 0))})}function _p(e){return Kce(e),Oe.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Xce(e){return Tx(e),Oe.startRun(),ft.rpc.rerunTask(e.id)}const Zn=window.__vitest_browser_runner__;window.__vitest_ui_api__=xce;xt(()=>ft.ws,e=>{Ho.value=gr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Ho.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Hw(h,d,f);return p.mode="skip",p})),Oe.loadFiles(t,s),ft.state.collectFiles(t),Oe.startRun(),eo.value=(o||[]).map(ux),ei.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Ho.value==="CONNECTING"&&(Ho.value="CLOSED")},1e3)})},{immediate:!0});const Yce=["aria-label","opacity","disabled","hover"],_t=rt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(re(),ve("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Dt(t.$slots,"default",{},()=>[X("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,Yce))}}),Zce={h:"full",flex:"~ col"},Jce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Qce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},eue={class:"pointer-events-none","text-sm":""},tue={key:0},nue={id:"tester-container",relative:""},rue=["data-scale"],Ry=20,iue=100,oue=rt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return tr.value[0]===g[0]&&tr.value[1]===g[1]}const{width:o,height:s}=Ow();async function c(p){tr.value=t[p],Zn?.provider==="webdriverio"&&mx()}const f=ke(()=>{if(Zn?.provider==="webdriverio"){const[x,E]=tr.value;return{width:x,height:E}}const v=o.value*(At.details.size/100)*(At.details.browser/100)-Ry,b=s.value-iue;return{width:v,height:b}}),d=ke(()=>{if(Zn?.provider==="webdriverio")return 1;const[p,g]=tr.value,{width:v,height:b}=f.value,x=v>p?1:v/p,E=b>g?1:b/g;return Math.min(1,x,E)}),h=ke(()=>{const p=f.value.width,g=tr.value[0];return`${Math.trunc((p+Ry-g)/2)}px`});return(p,g)=>{const v=vr("tooltip");return re(),ve("div",Zce,[X("div",Jce,[at(Ne(_t,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>K(wce)())},null,512),[[ro,K(At).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),at(Ne(_t,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=b=>K(yce)())},null,512),[[ro,K(At).details.main>0],[v,"Hide Right Panel",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=b=>K(bce)())},null,512),[[ro,K(At).details.main===0],[v,"Show Right Panel",void 0,{bottom:!0}]])]),X("div",Qce,[at(Ne(_t,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[3]||(g[3]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[4]||(g[4]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[5]||(g[5]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",eue,[Qe(Pe(K(tr)[0])+"x"+Pe(K(tr)[1])+"px ",1),d.value<1?(re(),ve("span",tue,"("+Pe((d.value*100).toFixed(0))+"%)",1)):Be("",!0)])]),X("div",nue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:zt({"--viewport-width":`${K(tr)[0]}px`,"--viewport-height":`${K(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,rue)])])}}}),sue=Ni(oue,[["__scopeId","data-v-2e86b8c3"]]),lue={"text-2xl":""},aue={"text-lg":"",op50:""},cue=rt({__name:"ConnectionOverlay",setup(e){return(t,r)=>K(Vce)?Be("",!0):(re(),ve("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>K(ft).reconnect&&K(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(K(Rd)?"animate-pulse":"")},[X("div",{text:"5xl",class:ot(K(Rd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",lue,Pe(K(Rd)?"Connecting...":"Disconnected"),1),X("div",aue," Check your terminal or start a new server with `"+Pe(K(Zn)?`vitest --browser=${K(Zn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),uue={h:"full",flex:"~ col"},fue={"flex-auto":"","py-1":"","bg-white":""},due=["src"],Py=rt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(re(),ve("div",uue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon:folder-details-reference"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),X("div",fue,[X("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,due)])]))}}),hue={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},pue={"font-bold":""},gue={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},mue=["font-bold"],vue={text:"red500/70"},yue={key:1,text:"sm","mb-2":""},bue={"font-bold":""},wue={key:2,text:"sm","mb-2":""},xue={"font-bold":""},kue=rt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(re(),ve(nt,null,[X("h4",hue,[X("span",pue,[Qe(Pe(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(re(),ve(nt,{key:0},[Qe(":")],64)):Be("",!0)]),Qe(" "+Pe(e.error.message),1)]),e.error.stacks?.length?(re(),ve("p",gue,[(re(!0),ve(nt,null,$n(e.error.stacks,(o,s)=>(re(),ve("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Qe(" "+Pe(o.method)+" "+Pe(o.file)+":",1),X("span",vue,Pe(o.line)+":"+Pe(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,mue))),128))])):Be("",!0),e.error.VITEST_TEST_PATH?(re(),ve("p",yue,[r[1]||(r[1]=Qe(" This error originated in ",-1)),X("span",bue,Pe(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Be("",!0),e.error.VITEST_TEST_NAME?(re(),ve("div",wue,[r[3]||(r[3]=Qe(" The latest test that might've caused the error is ",-1)),X("span",xue,Pe(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Qe(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Be("",!0)],64))}}),Sue={"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:""},_ue={class:"number","data-testid":"num-files"},Tue={class:"number"},Cue={class:"number","text-red5":""},Eue={class:"number","text-red5":""},Aue={class:"number","text-red5":""},Lue={class:"number","data-testid":"run-time"},Mue={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Nue={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Oue={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Rue=rt({__name:"TestFilesEntry",setup(e){return(t,r)=>(re(),ve(nt,null,[X("div",Sue,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",_ue,Pe(K(Oe).summary.files),1),K(Oe).summary.filesSuccess?(re(),ve(nt,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",Tue,Pe(K(Oe).summary.filesSuccess),1)],64)):Be("",!0),K(Oe).summary.filesFailed?(re(),ve(nt,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",Cue,Pe(K(Oe).summary.filesFailed),1)],64)):Be("",!0),K(Oe).summary.filesSnapshotFailed?(re(),ve(nt,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",Eue,Pe(K(Oe).summary.filesSnapshotFailed),1)],64)):Be("",!0),K(eo).length?(re(),ve(nt,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",Aue,Pe(K(eo).length),1)],64)):Be("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",Lue,Pe(K(Oe).summary.time),1)]),K(eo).length?(re(),ve("div",Mue,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",Nue,[Qe(" Vitest caught "+Pe(K(eo).length)+" error"+Pe(K(eo).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",Oue,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(re(!0),ve(nt,null,$n(K(eo),(o,s)=>(re(),Ve(kue,{key:s,error:o},null,8,["error"]))),128))])])):Be("",!0)],64))}}),Pue=Ni(Rue,[["__scopeId","data-v-1bd0f2ea"]]),$ue={"p-2":"","text-center":"",flex:""},Iue={"text-4xl":"","min-w-2em":""},Due={"text-md":""},Bl=rt({__name:"DashboardEntry",setup(e){return(t,r)=>(re(),ve("div",$ue,[X("div",null,[X("div",Iue,[Dt(t.$slots,"body")]),X("div",Due,[Dt(t.$slots,"header")])])]))}}),zue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Fue=rt({__name:"TestsEntry",setup(e){function t(r){it.success=!1,it.failed=!1,it.skipped=!1,r!=="total"&&(it[r]=!0)}return(r,o)=>(re(),ve("div",zue,[Ne(Bl,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:We(()=>[...o[4]||(o[4]=[Qe(" Pass ",-1)])]),body:We(()=>[Qe(Pe(K(Oe).summary.testsSuccess),1)]),_:1}),Ne(Bl,{class:ot({"text-red5":K(Oe).summary.testsFailed,op50:!K(Oe).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:We(()=>[...o[5]||(o[5]=[Qe(" Fail ",-1)])]),body:We(()=>[Qe(Pe(K(Oe).summary.testsFailed),1)]),_:1},8,["class"]),K(Oe).summary.testsSkipped?(re(),Ve(Bl,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:We(()=>[...o[6]||(o[6]=[Qe(" Skip ",-1)])]),body:We(()=>[Qe(Pe(K(Oe).summary.testsSkipped),1)]),_:1})):Be("",!0),K(Oe).summary.testsTodo?(re(),Ve(Bl,{key:1,op50:"","data-testid":"todo-entry"},{header:We(()=>[...o[7]||(o[7]=[Qe(" Todo ",-1)])]),body:We(()=>[Qe(Pe(K(Oe).summary.testsTodo),1)]),_:1})):Be("",!0),Ne(Bl,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:We(()=>[...o[8]||(o[8]=[Qe(" Total ",-1)])]),body:We(()=>[Qe(Pe(K(Oe).summary.totalTests),1)]),_:1})]))}}),Hue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Bue={key:0,class:"text-gray-5"},Wue={"aria-labelledby":"tests",m:"y-4 x-2"},que=rt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(re(),ve("div",Hue,[K(Oe).summary.files===0&&K(Ms)?(re(),ve("div",Bue," No tests found ")):Be("",!0),X("section",Wue,[Ne(Fue)]),Ne(Pue)]))}}),jue={h:"full",flex:"~ col"},Uue={class:"scrolls","flex-auto":"","py-1":""},$y=rt({__name:"Dashboard",setup(e){return(t,r)=>(re(),ve("div",jue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon-dashboard"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),X("div",Uue,[Ne(que)])]))}});function Vue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var bh="http://www.w3.org/1999/xhtml";const Iy={svg:"http://www.w3.org/2000/svg",xhtml:bh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ff(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Iy.hasOwnProperty(t)?{space:Iy[t],local:e}:e}function Gue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===bh&&t.documentElement.namespaceURI===bh?t.createElement(e):t.createElementNS(r,e)}}function Kue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Cx(e){var t=ff(e);return(t.local?Kue:Gue)(t)}function Xue(){}function Tp(e){return e==null?Xue:function(){return this.querySelector(e)}}function Yue(e){typeof e!="function"&&(e=Tp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,g=0;g<f;++g)(h=c[g])&&(p=e.call(h,h.__data__,g,c))&&("__data__"in h&&(p.__data__=h.__data__),d[g]=p);return new lr(o,this._parents)}function Zue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Jue(){return[]}function Ex(e){return e==null?Jue:function(){return this.querySelectorAll(e)}}function Que(e){return function(){return Zue(e.apply(this,arguments))}}function efe(e){typeof e=="function"?e=Que(e):e=Ex(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new lr(o,s)}function Ax(e){return function(){return this.matches(e)}}function Lx(e){return function(t){return t.matches(e)}}var tfe=Array.prototype.find;function nfe(e){return function(){return tfe.call(this.children,e)}}function rfe(){return this.firstElementChild}function ife(e){return this.select(e==null?rfe:nfe(typeof e=="function"?e:Lx(e)))}var ofe=Array.prototype.filter;function sfe(){return Array.from(this.children)}function lfe(e){return function(){return ofe.call(this.children,e)}}function afe(e){return this.selectAll(e==null?sfe:lfe(typeof e=="function"?e:Lx(e)))}function cfe(e){typeof e!="function"&&(e=Ax(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new lr(o,this._parents)}function Mx(e){return new Array(e.length)}function ufe(){return new lr(this._enter||this._groups.map(Mx),this._parents)}function Au(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Au.prototype={constructor:Au,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ffe(e){return function(){return e}}function dfe(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new Au(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function hfe(e,t,r,o,s,c,f){var d,h,p=new Map,g=t.length,v=c.length,b=new Array(g),x;for(d=0;d<g;++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<v;++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 Au(e,c[d]);for(d=0;d<g;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function pfe(e){return e.__data__}function gfe(e,t){if(!arguments.length)return Array.from(this,pfe);var r=t?hfe:dfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=ffe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var g=o[p],v=s[p],b=v.length,x=mfe(e.call(g,g&&g.__data__,p,o)),E=x.length,M=d[p]=new Array(E),R=f[p]=new Array(E),N=h[p]=new Array(b);r(g,v,M,R,N,x,t);for(var P=0,$=0,_,z;P<E;++P)if(_=M[P]){for(P>=$&&($=P+1);!(z=R[$])&&++$<E;);_._next=z||null}}return f=new lr(f,o),f._enter=d,f._exit=h,f}function mfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function vfe(){return new lr(this._exit||this._groups.map(Mx),this._parents)}function yfe(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function bfe(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],g=o[h],v=p.length,b=d[h]=new Array(v),x,E=0;E<v;++E)(x=p[E]||g[E])&&(b[E]=x);for(;h<s;++h)d[h]=r[h];return new lr(d,this._parents)}function wfe(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function xfe(e){e||(e=kfe);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,g=0;g<d;++g)(p=f[g])&&(h[g]=p);h.sort(t)}return new lr(s,this._parents).order()}function kfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Sfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _fe(){return Array.from(this)}function Tfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Cfe(){let e=0;for(const t of this)++e;return e}function Efe(){return!this.node()}function Afe(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 Lfe(e){return function(){this.removeAttribute(e)}}function Mfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nfe(e,t){return function(){this.setAttribute(e,t)}}function Ofe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Rfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Pfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function $fe(e,t){var r=ff(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?Mfe:Lfe:typeof t=="function"?r.local?Pfe:Rfe:r.local?Ofe:Nfe)(r,t))}function Nx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ife(e){return function(){this.style.removeProperty(e)}}function Dfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function zfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Ffe(e,t,r){return arguments.length>1?this.each((t==null?Ife:typeof t=="function"?zfe:Dfe)(e,t,r??"")):el(this.node(),e)}function el(e,t){return e.style.getPropertyValue(t)||Nx(e).getComputedStyle(e,null).getPropertyValue(t)}function Hfe(e){return function(){delete this[e]}}function Bfe(e,t){return function(){this[e]=t}}function Wfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function qfe(e,t){return arguments.length>1?this.each((t==null?Hfe:typeof t=="function"?Wfe:Bfe)(e,t)):this.node()[e]}function Ox(e){return e.trim().split(/^|\s+/)}function Cp(e){return e.classList||new Rx(e)}function Rx(e){this._node=e,this._names=Ox(e.getAttribute("class")||"")}Rx.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 Px(e,t){for(var r=Cp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function $x(e,t){for(var r=Cp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function jfe(e){return function(){Px(this,e)}}function Ufe(e){return function(){$x(this,e)}}function Vfe(e,t){return function(){(t.apply(this,arguments)?Px:$x)(this,e)}}function Gfe(e,t){var r=Ox(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"?Vfe:t?jfe:Ufe)(r,t))}function Kfe(){this.textContent=""}function Xfe(e){return function(){this.textContent=e}}function Yfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Zfe(e){return arguments.length?this.each(e==null?Kfe:(typeof e=="function"?Yfe:Xfe)(e)):this.node().textContent}function Jfe(){this.innerHTML=""}function Qfe(e){return function(){this.innerHTML=e}}function ede(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function tde(e){return arguments.length?this.each(e==null?Jfe:(typeof e=="function"?ede:Qfe)(e)):this.node().innerHTML}function nde(){this.nextSibling&&this.parentNode.appendChild(this)}function rde(){return this.each(nde)}function ide(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ode(){return this.each(ide)}function sde(e){var t=typeof e=="function"?e:Cx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function lde(){return null}function ade(e,t){var r=typeof e=="function"?e:Cx(e),o=t==null?lde:typeof t=="function"?t:Tp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function cde(){var e=this.parentNode;e&&e.removeChild(this)}function ude(){return this.each(cde)}function fde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function dde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function hde(e){return this.select(e?dde:fde)}function pde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function gde(e){return function(t){e.call(this,t,this.__data__)}}function mde(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 vde(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function yde(e,t,r){return function(){var o=this.__on,s,c=gde(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function bde(e,t,r){var o=mde(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,g;h<p;++h)for(s=0,g=d[h];s<c;++s)if((f=o[s]).type===g.type&&f.name===g.name)return g.value}return}for(d=t?yde:vde,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Ix(e,t,r){var o=Nx(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function wde(e,t){return function(){return Ix(this,e,t)}}function xde(e,t){return function(){return Ix(this,e,t.apply(this,arguments))}}function kde(e,t){return this.each((typeof t=="function"?xde:wde)(e,t))}function*Sde(){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 Dx=[null];function lr(e,t){this._groups=e,this._parents=t}function ja(){return new lr([[document.documentElement]],Dx)}function _de(){return this}lr.prototype=ja.prototype={constructor:lr,select:Yue,selectAll:efe,selectChild:ife,selectChildren:afe,filter:cfe,data:gfe,enter:ufe,exit:vfe,join:yfe,merge:bfe,selection:_de,order:wfe,sort:xfe,call:Sfe,nodes:_fe,node:Tfe,size:Cfe,empty:Efe,each:Afe,attr:$fe,style:Ffe,property:qfe,classed:Gfe,text:Zfe,html:tde,raise:rde,lower:ode,append:sde,insert:ade,remove:ude,clone:hde,datum:pde,on:bde,dispatch:kde,[Symbol.iterator]:Sde};function Kn(e){return typeof e=="string"?new lr([[document.querySelector(e)]],[document.documentElement]):new lr([[e]],Dx)}function Tde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function vi(e,t){if(e=Tde(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var tl=class gi{x;y;static of([t,r]){return new gi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new gi(this.x+t.x,this.y+t.y)}subtract(t){return new gi(this.x-t.x,this.y-t.y)}multiply(t){return new gi(this.x*t,this.y*t)}divide(t){return new gi(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new gi(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new gi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new gi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Cde={value:()=>{}};function Ua(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Zc(r)}function Zc(e){this._=e}function Ede(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Zc.prototype=Ua.prototype={constructor:Zc,on:function(e,t){var r=this._,o=Ede(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Ade(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]=Dy(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Dy(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Zc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Ade(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Dy(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Cde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Lde={passive:!1},Ta={capture:!0,passive:!1};function Pd(e){e.stopImmediatePropagation()}function js(e){e.preventDefault(),e.stopImmediatePropagation()}function zx(e){var t=e.document.documentElement,r=Kn(e).on("dragstart.drag",js,Ta);"onselectstart"in t?r.on("selectstart.drag",js,Ta):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Fx(e,t){var r=e.document.documentElement,o=Kn(e).on("dragstart.drag",null);t&&(o.on("click.drag",js,Ta),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Ic=e=>()=>e;function wh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}wh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mde(e){return!e.ctrlKey&&!e.button}function Nde(){return this.parentNode}function Ode(e,t){return t??{x:e.x,y:e.y}}function Rde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pde(){var e=Mde,t=Nde,r=Ode,o=Rde,s={},c=Ua("start","drag","end"),f=0,d,h,p,g,v=0;function b(_){_.on("mousedown.drag",x).filter(o).on("touchstart.drag",R).on("touchmove.drag",N,Lde).on("touchend.drag touchcancel.drag",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(_,z){if(!(g||!e.call(this,_,z))){var j=$(this,t.call(this,_,z),_,z,"mouse");j&&(Kn(_.view).on("mousemove.drag",E,Ta).on("mouseup.drag",M,Ta),zx(_.view),Pd(_),p=!1,d=_.clientX,h=_.clientY,j("start",_))}}function E(_){if(js(_),!p){var z=_.clientX-d,j=_.clientY-h;p=z*z+j*j>v}s.mouse("drag",_)}function M(_){Kn(_.view).on("mousemove.drag mouseup.drag",null),Fx(_.view,p),js(_),s.mouse("end",_)}function R(_,z){if(e.call(this,_,z)){var j=_.changedTouches,le=t.call(this,_,z),ee=j.length,Y,G;for(Y=0;Y<ee;++Y)(G=$(this,le,_,z,j[Y].identifier,j[Y]))&&(Pd(_),G("start",_,j[Y]))}}function N(_){var z=_.changedTouches,j=z.length,le,ee;for(le=0;le<j;++le)(ee=s[z[le].identifier])&&(js(_),ee("drag",_,z[le]))}function P(_){var z=_.changedTouches,j=z.length,le,ee;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),le=0;le<j;++le)(ee=s[z[le].identifier])&&(Pd(_),ee("end",_,z[le]))}function $(_,z,j,le,ee,Y){var G=c.copy(),W=vi(Y||j,z),L,O,C;if((C=r.call(_,new wh("beforestart",{sourceEvent:j,target:b,identifier:ee,active:f,x:W[0],y:W[1],dx:0,dy:0,dispatch:G}),le))!=null)return L=C.x-W[0]||0,O=C.y-W[1]||0,function k(D,B,ae){var be=W,Se;switch(D){case"start":s[ee]=k,Se=f++;break;case"end":delete s[ee],--f;case"drag":W=vi(ae||B,z),Se=f;break}G.call(D,_,new wh(D,{sourceEvent:B,subject:C,target:b,identifier:ee,active:Se,x:W[0]+L,y:W[1]+O,dx:W[0]-be[0],dy:W[1]-be[1],dispatch:G}),le)}}return b.filter=function(_){return arguments.length?(e=typeof _=="function"?_:Ic(!!_),b):e},b.container=function(_){return arguments.length?(t=typeof _=="function"?_:Ic(_),b):t},b.subject=function(_){return arguments.length?(r=typeof _=="function"?_:Ic(_),b):r},b.touchable=function(_){return arguments.length?(o=typeof _=="function"?_:Ic(!!_),b):o},b.on=function(){var _=c.on.apply(c,arguments);return _===c?b:_},b.clickDistance=function(_){return arguments.length?(v=(_=+_)*_,b):Math.sqrt(v)},b}function Ep(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Hx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Va(){}var Ca=.7,Lu=1/Ca,Us="\\s*([+-]?\\d+)\\s*",Ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$de=/^#([0-9a-f]{3,8})$/,Ide=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),Dde=new RegExp(`^rgb\\(${Jr},${Jr},${Jr}\\)$`),zde=new RegExp(`^rgba\\(${Us},${Us},${Us},${Ea}\\)$`),Fde=new RegExp(`^rgba\\(${Jr},${Jr},${Jr},${Ea}\\)$`),Hde=new RegExp(`^hsl\\(${Ea},${Jr},${Jr}\\)$`),Bde=new RegExp(`^hsla\\(${Ea},${Jr},${Jr},${Ea}\\)$`),zy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ep(Va,Aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fy,formatHex:Fy,formatHex8:Wde,formatHsl:qde,formatRgb:Hy,toString:Hy});function Fy(){return this.rgb().formatHex()}function Wde(){return this.rgb().formatHex8()}function qde(){return Bx(this).formatHsl()}function Hy(){return this.rgb().formatRgb()}function Aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$de.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?By(t):r===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ide.exec(e))?new Yn(t[1],t[2],t[3],1):(t=Dde.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zde.exec(e))?Dc(t[1],t[2],t[3],t[4]):(t=Fde.exec(e))?Dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hde.exec(e))?jy(t[1],t[2]/100,t[3]/100,1):(t=Bde.exec(e))?jy(t[1],t[2]/100,t[3]/100,t[4]):zy.hasOwnProperty(e)?By(zy[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function By(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function Dc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Yn(e,t,r,o)}function jde(e){return e instanceof Va||(e=Aa(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function xh(e,t,r,o){return arguments.length===1?jde(e):new Yn(e,t,r,o??1)}function Yn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Ep(Yn,xh,Hx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Vo(this.r),Vo(this.g),Vo(this.b),Mu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wy,formatHex:Wy,formatHex8:Ude,formatRgb:qy,toString:qy}));function Wy(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}`}function Ude(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}${Bo((isNaN(this.opacity)?1:this.opacity)*255)}`}function qy(){const e=Mu(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function Mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function jy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,r,o)}function Bx(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=Aa(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Mr(f,d,h,e.opacity)}function Vde(e,t,r,o){return arguments.length===1?Bx(e):new Mr(e,t,r,o??1)}function Mr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Ep(Mr,Vde,Hx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Yn($d(e>=240?e-240:e+120,s,o),$d(e,s,o),$d(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Mr(Uy(this.h),zc(this.s),zc(this.l),Mu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mu(this.opacity);return`${e===1?"hsl(":"hsla("}${Uy(this.h)}, ${zc(this.s)*100}%, ${zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Uy(e){return e=(e||0)%360,e<0?e+360:e}function zc(e){return Math.max(0,Math.min(1,e||0))}function $d(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Wx=e=>()=>e;function Gde(e,t){return function(r){return e+r*t}}function Kde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function Xde(e){return(e=+e)==1?qx:function(t,r){return r-t?Kde(t,r,e):Wx(isNaN(t)?r:t)}}function qx(e,t){var r=t-e;return r?Gde(e,r):Wx(isNaN(e)?t:e)}const Vy=(function e(t){var r=Xde(t);function o(s,c){var f=r((s=xh(s)).r,(c=xh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=qx(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function to(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Id=new RegExp(kh.source,"g");function Yde(e){return function(){return e}}function Zde(e){return function(t){return e(t)+""}}function Jde(e,t){var r=kh.lastIndex=Id.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=kh.exec(e))&&(s=Id.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:to(o,s)})),r=Id.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Zde(h[0].x):Yde(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)d[(v=h[g]).i]=v.x(p);return d.join("")})}var Gy=180/Math.PI,Sh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jx(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)*Gy,skewX:Math.atan(h)*Gy,scaleX:f,scaleY:d}}var Fc;function Qde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Sh:jx(t.a,t.b,t.c,t.d,t.e,t.f)}function ehe(e){return e==null||(Fc||(Fc=document.createElementNS("http://www.w3.org/2000/svg","g")),Fc.setAttribute("transform",e),!(e=Fc.transform.baseVal.consolidate()))?Sh:(e=e.matrix,jx(e.a,e.b,e.c,e.d,e.e,e.f))}function Ux(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,g,v,b,x,E){if(p!==v||g!==b){var M=x.push("translate(",null,t,null,r);E.push({i:M-4,x:to(p,v)},{i:M-2,x:to(g,b)})}else(v||b)&&x.push("translate("+v+t+b+r)}function f(p,g,v,b){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:to(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:to(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,x,E){if(p!==v||g!==b){var M=x.push(s(x)+"scale(",null,",",null,")");E.push({i:M-4,x:to(p,v)},{i:M-2,x:to(g,b)})}else(v!==1||b!==1)&&x.push(s(x)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(x){for(var E=-1,M=b.length,R;++E<M;)v[(R=b[E]).i]=R.x(x);return v.join("")}}}var the=Ux(Qde,"px, ","px)","deg)"),nhe=Ux(ehe,", ",")",")"),rhe=1e-12;function Ky(e){return((e=Math.exp(e))+1/e)/2}function ihe(e){return((e=Math.exp(e))-1/e)/2}function ohe(e){return((e=Math.exp(2*e))-1)/(e+1)}const she=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],g=f[0],v=f[1],b=f[2],x=g-d,E=v-h,M=x*x+E*E,R,N;if(M<rhe)N=Math.log(b/p)/t,R=function(le){return[d+le*x,h+le*E,p*Math.exp(t*le*N)]};else{var P=Math.sqrt(M),$=(b*b-p*p+o*M)/(2*p*r*P),_=(b*b-p*p-o*M)/(2*b*r*P),z=Math.log(Math.sqrt($*$+1)-$),j=Math.log(Math.sqrt(_*_+1)-_);N=(j-z)/t,R=function(le){var ee=le*N,Y=Ky(z),G=p/(r*P)*(Y*ohe(t*ee+z)-ihe(z));return[d+G*x,h+G*E,p*Y/Ky(t*ee+z)]}}return R.duration=N*1e3*t/Math.SQRT2,R}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 nl=0,Vl=0,Wl=0,Vx=1e3,Nu,Gl,Ou=0,Ko=0,df=0,La=typeof performance=="object"&&performance.now?performance:Date,Gx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ap(){return Ko||(Gx(lhe),Ko=La.now()+df)}function lhe(){Ko=0}function Ru(){this._call=this._time=this._next=null}Ru.prototype=Lp.prototype={constructor:Ru,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Ap():+r)+(t==null?0:+t),!this._next&&Gl!==this&&(Gl?Gl._next=this:Nu=this,Gl=this),this._call=e,this._time=r,_h()},stop:function(){this._call&&(this._call=null,this._time=1/0,_h())}};function Lp(e,t,r){var o=new Ru;return o.restart(e,t,r),o}function ahe(){Ap(),++nl;for(var e=Nu,t;e;)(t=Ko-e._time)>=0&&e._call.call(void 0,t),e=e._next;--nl}function Xy(){Ko=(Ou=La.now())+df,nl=Vl=0;try{ahe()}finally{nl=0,uhe(),Ko=0}}function che(){var e=La.now(),t=e-Ou;t>Vx&&(df-=t,Ou=e)}function uhe(){for(var e,t=Nu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Nu=r);Gl=e,_h(o)}function _h(e){if(!nl){Vl&&(Vl=clearTimeout(Vl));var t=e-Ko;t>24?(e<1/0&&(Vl=setTimeout(Xy,e-La.now()-df)),Wl&&(Wl=clearInterval(Wl))):(Wl||(Ou=La.now(),Wl=setInterval(che,Vx)),nl=1,Gx(Xy))}}function Yy(e,t,r){var o=new Ru;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var fhe=Ua("start","end","cancel","interrupt"),dhe=[],Kx=0,Zy=1,Th=2,Jc=3,Jy=4,Ch=5,Qc=6;function hf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;hhe(e,r,{name:t,index:o,group:s,on:fhe,tween:dhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Kx})}function Mp(e,t){var r=Fr(e,t);if(r.state>Kx)throw new Error("too late; already scheduled");return r}function ni(e,t){var r=Fr(e,t);if(r.state>Jc)throw new Error("too late; already running");return r}function Fr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function hhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Lp(c,0,r.time);function c(p){r.state=Zy,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,x;if(r.state!==Zy)return h();for(g in o)if(x=o[g],x.name===r.name){if(x.state===Jc)return Yy(f);x.state===Jy?(x.state=Qc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[g]):+g<t&&(x.state=Qc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[g])}if(Yy(function(){r.state===Jc&&(r.state=Jy,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Th,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Th){for(r.state=Jc,s=new Array(b=r.tween.length),g=0,v=-1;g<b;++g)(x=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++v]=x);s.length=v+1}}function d(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Ch,1),v=-1,b=s.length;++v<b;)s[v].call(e,g);r.state===Ch&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Qc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function eu(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Th&&o.state<Ch,o.state=Qc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function phe(e){return this.each(function(){eu(this,e)})}function ghe(e,t){var r,o;return function(){var s=ni(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function mhe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=ni(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function vhe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Fr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?ghe:mhe)(r,e,t))}function Np(e,t,r){var o=e._id;return e.each(function(){var s=ni(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Fr(s,o).value[t]}}function Xx(e,t){var r;return(typeof t=="number"?to:t instanceof Aa?Vy:(r=Aa(t))?(t=r,Vy):Jde)(e,t)}function yhe(e){return function(){this.removeAttribute(e)}}function bhe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function whe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function xhe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function khe(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 She(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 _he(e,t){var r=ff(e),o=r==="transform"?nhe:Xx;return this.attrTween(e,typeof t=="function"?(r.local?She:khe)(r,o,Np(this,"attr."+e,t)):t==null?(r.local?bhe:yhe)(r):(r.local?xhe:whe)(r,o,t))}function The(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Che(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ehe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Che(e,c)),r}return s._value=t,s}function Ahe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&The(e,c)),r}return s._value=t,s}function Lhe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=ff(e);return this.tween(r,(o.local?Ehe:Ahe)(o,t))}function Mhe(e,t){return function(){Mp(this,e).delay=+t.apply(this,arguments)}}function Nhe(e,t){return t=+t,function(){Mp(this,e).delay=t}}function Ohe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Mhe:Nhe)(t,e)):Fr(this.node(),t).delay}function Rhe(e,t){return function(){ni(this,e).duration=+t.apply(this,arguments)}}function Phe(e,t){return t=+t,function(){ni(this,e).duration=t}}function $he(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Rhe:Phe)(t,e)):Fr(this.node(),t).duration}function Ihe(e,t){if(typeof t!="function")throw new Error;return function(){ni(this,e).ease=t}}function Dhe(e){var t=this._id;return arguments.length?this.each(Ihe(t,e)):Fr(this.node(),t).ease}function zhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ni(this,e).ease=r}}function Fhe(e){if(typeof e!="function")throw new Error;return this.each(zhe(this._id,e))}function Hhe(e){typeof e!="function"&&(e=Ax(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 Ei(o,this._parents,this._name,this._id)}function Bhe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],g=h.length,v=f[d]=new Array(g),b,x=0;x<g;++x)(b=h[x]||p[x])&&(v[x]=b);for(;d<o;++d)f[d]=t[d];return new Ei(f,this._parents,this._name,this._id)}function Whe(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 qhe(e,t,r){var o,s,c=Whe(t)?Mp:ni;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function jhe(e,t){var r=this._id;return arguments.length<2?Fr(this.node(),r).on.on(e):this.each(qhe(r,e,t))}function Uhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Vhe(){return this.on("end.remove",Uhe(this._id))}function Ghe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Tp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),g,v,b=0;b<h;++b)(g=d[b])&&(v=e.call(g,g.__data__,b,d))&&("__data__"in g&&(v.__data__=g.__data__),p[b]=v,hf(p[b],t,r,b,p,Fr(g,r)));return new Ei(c,this._parents,t,r)}function Khe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Ex(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var b=e.call(g,g.__data__,v,h),x,E=Fr(g,r),M=0,R=b.length;M<R;++M)(x=b[M])&&hf(x,t,r,M,b,E);c.push(b),f.push(g)}return new Ei(c,f,t,r)}var Xhe=ja.prototype.constructor;function Yhe(){return new Xhe(this._groups,this._parents)}function Zhe(e,t){var r,o,s;return function(){var c=el(this,e),f=(this.style.removeProperty(e),el(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Yx(e){return function(){this.style.removeProperty(e)}}function Jhe(e,t,r){var o,s=r+"",c;return function(){var f=el(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Qhe(e,t,r){var o,s,c;return function(){var f=el(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),el(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function epe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=ni(this,e),p=h.on,g=h.value[c]==null?d||(d=Yx(t)):void 0;(p!==r||s!==g)&&(o=(r=p).copy()).on(f,s=g),h.on=o}}function tpe(e,t,r){var o=(e+="")=="transform"?the:Xx;return t==null?this.styleTween(e,Zhe(e,o)).on("end.style."+e,Yx(e)):typeof t=="function"?this.styleTween(e,Qhe(e,o,Np(this,"style."+e,t))).each(epe(this._id,e)):this.styleTween(e,Jhe(e,o,t),r).on("end.style."+e,null)}function npe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function rpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&npe(e,f,r)),o}return c._value=t,c}function ipe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,rpe(e,t,r??""))}function ope(e){return function(){this.textContent=e}}function spe(e){return function(){var t=e(this);this.textContent=t??""}}function lpe(e){return this.tween("text",typeof e=="function"?spe(Np(this,"text",e)):ope(e==null?"":e+""))}function ape(e){return function(t){this.textContent=e.call(this,t)}}function cpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ape(s)),t}return o._value=e,o}function upe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,cpe(e))}function fpe(){for(var e=this._name,t=this._id,r=Zx(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var g=Fr(h,t);hf(h,e,r,p,f,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Ei(o,this._parents,e,r)}function dpe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=ni(this,o),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var hpe=0;function Ei(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Zx(){return++hpe}var hi=ja.prototype;Ei.prototype={constructor:Ei,select:Ghe,selectAll:Khe,selectChild:hi.selectChild,selectChildren:hi.selectChildren,filter:Hhe,merge:Bhe,selection:Yhe,transition:fpe,call:hi.call,nodes:hi.nodes,node:hi.node,size:hi.size,empty:hi.empty,each:hi.each,on:jhe,attr:_he,attrTween:Lhe,style:tpe,styleTween:ipe,text:lpe,textTween:upe,remove:Vhe,tween:vhe,delay:Ohe,duration:$he,ease:Dhe,easeVarying:Fhe,end:dpe,[Symbol.iterator]:hi[Symbol.iterator]};function ppe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var gpe={time:null,delay:0,duration:250,ease:ppe};function mpe(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 vpe(e){var t,r;e instanceof Ei?(t=e._id,e=e._name):(t=Zx(),(r=gpe).time=Ap(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&hf(h,e,t,p,f,r||mpe(h,t));return new Ei(o,this._parents,e,t)}ja.prototype.interrupt=phe;ja.prototype.transition=vpe;const Hc=e=>()=>e;function ype(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function xi(e,t,r){this.k=e,this.x=t,this.y=r}xi.prototype={constructor:xi,scale:function(e){return e===1?this:new xi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Op=new xi(1,0,0);xi.prototype;function Dd(e){e.stopImmediatePropagation()}function ql(e){e.preventDefault(),e.stopImmediatePropagation()}function bpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wpe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Qy(){return this.__zoom||Op}function xpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function kpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Spe(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 _pe(){var e=bpe,t=wpe,r=Spe,o=xpe,s=kpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=she,p=Ua("start","zoom","end"),g,v,b,x=500,E=150,M=0,R=10;function N(C){C.property("__zoom",Qy).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",W).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(C,k,D,B){var ae=C.selection?C.selection():C;ae.property("__zoom",Qy),C!==ae?z(C,k,D,B):ae.interrupt().each(function(){j(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},N.scaleBy=function(C,k,D,B){N.scaleTo(C,function(){var ae=this.__zoom.k,be=typeof k=="function"?k.apply(this,arguments):k;return ae*be},D,B)},N.scaleTo=function(C,k,D,B){N.transform(C,function(){var ae=t.apply(this,arguments),be=this.__zoom,Se=D==null?_(ae):typeof D=="function"?D.apply(this,arguments):D,He=be.invert(Se),Ae=typeof k=="function"?k.apply(this,arguments):k;return r($(P(be,Ae),Se,He),ae,f)},D,B)},N.translateBy=function(C,k,D,B){N.transform(C,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),f)},null,B)},N.translateTo=function(C,k,D,B,ae){N.transform(C,function(){var be=t.apply(this,arguments),Se=this.__zoom,He=B==null?_(be):typeof B=="function"?B.apply(this,arguments):B;return r(Op.translate(He[0],He[1]).scale(Se.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof D=="function"?-D.apply(this,arguments):-D),be,f)},B,ae)};function P(C,k){return k=Math.max(c[0],Math.min(c[1],k)),k===C.k?C:new xi(k,C.x,C.y)}function $(C,k,D){var B=k[0]-D[0]*C.k,ae=k[1]-D[1]*C.k;return B===C.x&&ae===C.y?C:new xi(C.k,B,ae)}function _(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function z(C,k,D,B){C.on("start.zoom",function(){j(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,be=arguments,Se=j(ae,be).event(B),He=t.apply(ae,be),Ae=D==null?_(He):typeof D=="function"?D.apply(ae,be):D,Ke=Math.max(He[1][0]-He[0][0],He[1][1]-He[0][1]),je=ae.__zoom,Fe=typeof k=="function"?k.apply(ae,be):k,Re=h(je.invert(Ae).concat(Ke/je.k),Fe.invert(Ae).concat(Ke/Fe.k));return function(F){if(F===1)F=Fe;else{var Z=Re(F),ne=Ke/Z[2];F=new xi(ne,Ae[0]-Z[0]*ne,Ae[1]-Z[1]*ne)}Se.zoom(null,F)}})}function j(C,k,D){return!D&&C.__zooming||new le(C,k)}function le(C,k){this.that=C,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,k),this.taps=0}le.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,k){return this.mouse&&C!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var k=Kn(this.that).datum();p.call(C,this.that,new ype(C,{sourceEvent:this.sourceEvent,target:N,transform:this.that.__zoom,dispatch:p}),k)}};function ee(C,...k){if(!e.apply(this,arguments))return;var D=j(this,k).event(C),B=this.__zoom,ae=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),be=vi(C);if(D.wheel)(D.mouse[0][0]!==be[0]||D.mouse[0][1]!==be[1])&&(D.mouse[1]=B.invert(D.mouse[0]=be)),clearTimeout(D.wheel);else{if(B.k===ae)return;D.mouse=[be,B.invert(be)],eu(this),D.start()}ql(C),D.wheel=setTimeout(Se,E),D.zoom("mouse",r($(P(B,ae),D.mouse[0],D.mouse[1]),D.extent,f));function Se(){D.wheel=null,D.end()}}function Y(C,...k){if(b||!e.apply(this,arguments))return;var D=C.currentTarget,B=j(this,k,!0).event(C),ae=Kn(C.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),be=vi(C,D),Se=C.clientX,He=C.clientY;zx(C.view),Dd(C),B.mouse=[be,this.__zoom.invert(be)],eu(this),B.start();function Ae(je){if(ql(je),!B.moved){var Fe=je.clientX-Se,Re=je.clientY-He;B.moved=Fe*Fe+Re*Re>M}B.event(je).zoom("mouse",r($(B.that.__zoom,B.mouse[0]=vi(je,D),B.mouse[1]),B.extent,f))}function Ke(je){ae.on("mousemove.zoom mouseup.zoom",null),Fx(je.view,B.moved),ql(je),B.event(je).end()}}function G(C,...k){if(e.apply(this,arguments)){var D=this.__zoom,B=vi(C.changedTouches?C.changedTouches[0]:C,this),ae=D.invert(B),be=D.k*(C.shiftKey?.5:2),Se=r($(P(D,be),B,ae),t.apply(this,k),f);ql(C),d>0?Kn(this).transition().duration(d).call(z,Se,B,C):Kn(this).call(N.transform,Se,B,C)}}function W(C,...k){if(e.apply(this,arguments)){var D=C.touches,B=D.length,ae=j(this,k,C.changedTouches.length===B).event(C),be,Se,He,Ae;for(Dd(C),Se=0;Se<B;++Se)He=D[Se],Ae=vi(He,this),Ae=[Ae,this.__zoom.invert(Ae),He.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ae[2]&&(ae.touch1=Ae,ae.taps=0):(ae.touch0=Ae,be=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),be&&(ae.taps<2&&(v=Ae[0],g=setTimeout(function(){g=null},x)),eu(this),ae.start())}}function L(C,...k){if(this.__zooming){var D=j(this,k).event(C),B=C.changedTouches,ae=B.length,be,Se,He,Ae;for(ql(C),be=0;be<ae;++be)Se=B[be],He=vi(Se,this),D.touch0&&D.touch0[2]===Se.identifier?D.touch0[0]=He:D.touch1&&D.touch1[2]===Se.identifier&&(D.touch1[0]=He);if(Se=D.that.__zoom,D.touch1){var Ke=D.touch0[0],je=D.touch0[1],Fe=D.touch1[0],Re=D.touch1[1],F=(F=Fe[0]-Ke[0])*F+(F=Fe[1]-Ke[1])*F,Z=(Z=Re[0]-je[0])*Z+(Z=Re[1]-je[1])*Z;Se=P(Se,Math.sqrt(F/Z)),He=[(Ke[0]+Fe[0])/2,(Ke[1]+Fe[1])/2],Ae=[(je[0]+Re[0])/2,(je[1]+Re[1])/2]}else if(D.touch0)He=D.touch0[0],Ae=D.touch0[1];else return;D.zoom("touch",r($(Se,He,Ae),D.extent,f))}}function O(C,...k){if(this.__zooming){var D=j(this,k).event(C),B=C.changedTouches,ae=B.length,be,Se;for(Dd(C),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),be=0;be<ae;++be)Se=B[be],D.touch0&&D.touch0[2]===Se.identifier?delete D.touch0:D.touch1&&D.touch1[2]===Se.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(Se=vi(Se,this),Math.hypot(v[0]-Se[0],v[1]-Se[1])<R)){var He=Kn(this).on("dblclick.zoom");He&&He.apply(this,arguments)}}}return N.wheelDelta=function(C){return arguments.length?(o=typeof C=="function"?C:Hc(+C),N):o},N.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Hc(!!C),N):e},N.touchable=function(C){return arguments.length?(s=typeof C=="function"?C:Hc(!!C),N):s},N.extent=function(C){return arguments.length?(t=typeof C=="function"?C:Hc([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),N):t},N.scaleExtent=function(C){return arguments.length?(c[0]=+C[0],c[1]=+C[1],N):[c[0],c[1]]},N.translateExtent=function(C){return arguments.length?(f[0][0]=+C[0][0],f[1][0]=+C[1][0],f[0][1]=+C[0][1],f[1][1]=+C[1][1],N):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},N.constrain=function(C){return arguments.length?(r=C,N):r},N.duration=function(C){return arguments.length?(d=+C,N):d},N.interpolate=function(C){return arguments.length?(h=C,N):h},N.on=function(){var C=p.on.apply(p,arguments);return C===p?N:C},N.clickDistance=function(C){return arguments.length?(M=(C=+C)*C,N):Math.sqrt(M)},N.tapDistance=function(C){return arguments.length?(R=+C,N):R},N}function Tpe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Jx(this.cover(t,r),t,r,e)}function Jx(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,g=e._y1,v,b,x,E,M,R,N,P;if(!c)return e._root=f,e;for(;c.length;)if((M=t>=(v=(d+p)/2))?d=v:p=v,(R=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[N=R<<1|M]))return s[N]=f,e;if(x=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===x&&r===E)return f.next=c,s?s[N]=f:e._root=f,e;do s=s?s[N]=new Array(4):e._root=new Array(4),(M=t>=(v=(d+p)/2))?d=v:p=v,(R=r>=(b=(h+g)/2))?h=b:g=b;while((N=R<<1|M)===(P=(E>=b)<<1|x>=v));return s[P]=c,s[N]=f,e}function Cpe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>g&&(g=s),c<p&&(p=c),c>v&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;r<o;++r)Jx(this,f[r],d[r],e[r]);return this}function Epe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Ape(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Lpe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Pn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Mpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,g=this._x1,v=this._y1,b=[],x=this._root,E,M;for(x&&b.push(new Pn(x,s,c,g,v)),r==null?r=1/0:(s=e-r,c=t-r,g=e+r,v=t+r,r*=r);E=b.pop();)if(!(!(x=E.node)||(f=E.x0)>g||(d=E.y0)>v||(h=E.x1)<s||(p=E.y1)<c))if(x.length){var R=(f+h)/2,N=(d+p)/2;b.push(new Pn(x[3],R,N,h,p),new Pn(x[2],f,N,R,p),new Pn(x[1],R,d,h,N),new Pn(x[0],f,d,R,N)),(M=(t>=N)<<1|e>=R)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-M],b[b.length-1-M]=E)}else{var P=e-+this._x.call(null,x.data),$=t-+this._y.call(null,x.data),_=P*P+$*$;if(_<r){var z=Math.sqrt(r=_);s=e-z,c=t-z,g=e+z,v=t+z,o=x.data}}return o}function Npe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,g,v,b,x,E,M,R,N;if(!r)return this;if(r.length)for(;;){if((E=g>=(b=(f+h)/2))?f=b:h=b,(M=v>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[R=M<<1|E]))return this;if(!r.length)break;(t[R+1&3]||t[R+2&3]||t[R+3&3])&&(o=t,N=R)}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[R]=c:delete t[R],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[N]=r:this._root=r),this):(this._root=c,this)}function Ope(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Rpe(){return this._root}function Ppe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function $pe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Pn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,g=(f+h)/2;(s=o[3])&&t.push(new Pn(s,p,g,d,h)),(s=o[2])&&t.push(new Pn(s,c,g,p,h)),(s=o[1])&&t.push(new Pn(s,p,f,d,g)),(s=o[0])&&t.push(new Pn(s,c,f,p,g))}return this}function Ipe(e){var t=[],r=[],o;for(this._root&&t.push(new Pn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,g=(f+h)/2,v=(d+p)/2;(c=s[0])&&t.push(new Pn(c,f,d,g,v)),(c=s[1])&&t.push(new Pn(c,g,d,h,v)),(c=s[2])&&t.push(new Pn(c,f,v,g,p)),(c=s[3])&&t.push(new Pn(c,g,v,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Dpe(e){return e[0]}function zpe(e){return arguments.length?(this._x=e,this):this._x}function Fpe(e){return e[1]}function Hpe(e){return arguments.length?(this._y=e,this):this._y}function Rp(e,t,r){var o=new Pp(t??Dpe,r??Fpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Pp(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 e0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=Rp.prototype=Pp.prototype;zn.copy=function(){var e=new Pp(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=e0(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]=e0(o));return e};zn.add=Tpe;zn.addAll=Cpe;zn.cover=Epe;zn.data=Ape;zn.extent=Lpe;zn.find=Mpe;zn.remove=Npe;zn.removeAll=Ope;zn.root=Rpe;zn.size=Ppe;zn.visit=$pe;zn.visitAfter=Ipe;zn.x=zpe;zn.y=Hpe;function Dn(e){return function(){return e}}function io(e){return(e()-.5)*1e-6}function Bpe(e){return e.x+e.vx}function Wpe(e){return e.y+e.vy}function qpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Dn(e==null?1:+e));function f(){for(var p,g=t.length,v,b,x,E,M,R,N=0;N<c;++N)for(v=Rp(t,Bpe,Wpe).visitAfter(d),p=0;p<g;++p)b=t[p],M=r[b.index],R=M*M,x=b.x+b.vx,E=b.y+b.vy,v.visit(P);function P($,_,z,j,le){var ee=$.data,Y=$.r,G=M+Y;if(ee){if(ee.index>b.index){var W=x-ee.x-ee.vx,L=E-ee.y-ee.vy,O=W*W+L*L;O<G*G&&(W===0&&(W=io(o),O+=W*W),L===0&&(L=io(o),O+=L*L),O=(G-(O=Math.sqrt(O)))/O*s,b.vx+=(W*=O)*(G=(Y*=Y)/(R+Y)),b.vy+=(L*=O)*G,ee.vx-=W*(G=1-G),ee.vy-=L*G)}return}return _>x+G||j<x-G||z>E+G||le<E-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p<g;++p)v=t[p],r[v.index]=+e(v,p,t)}}return f.initialize=function(p,g){t=p,o=g,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Dn(+p),h(),f):e},f}function jpe(e){return e.index}function t0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Upe(e){var t=jpe,r=v,o,s=Dn(30),c,f,d,h,p,g=1;e==null&&(e=[]);function v(R){return 1/Math.min(d[R.source.index],d[R.target.index])}function b(R){for(var N=0,P=e.length;N<g;++N)for(var $=0,_,z,j,le,ee,Y,G;$<P;++$)_=e[$],z=_.source,j=_.target,le=j.x+j.vx-z.x-z.vx||io(p),ee=j.y+j.vy-z.y-z.vy||io(p),Y=Math.sqrt(le*le+ee*ee),Y=(Y-c[$])/Y*R*o[$],le*=Y,ee*=Y,j.vx-=le*(G=h[$]),j.vy-=ee*G,z.vx+=le*(G=1-G),z.vy+=ee*G}function x(){if(f){var R,N=f.length,P=e.length,$=new Map(f.map((z,j)=>[t(z,j,f),z])),_;for(R=0,d=new Array(N);R<P;++R)_=e[R],_.index=R,typeof _.source!="object"&&(_.source=t0($,_.source)),typeof _.target!="object"&&(_.target=t0($,_.target)),d[_.source.index]=(d[_.source.index]||0)+1,d[_.target.index]=(d[_.target.index]||0)+1;for(R=0,h=new Array(P);R<P;++R)_=e[R],h[R]=d[_.source.index]/(d[_.source.index]+d[_.target.index]);o=new Array(P),E(),c=new Array(P),M()}}function E(){if(f)for(var R=0,N=e.length;R<N;++R)o[R]=+r(e[R],R,e)}function M(){if(f)for(var R=0,N=e.length;R<N;++R)c[R]=+s(e[R],R,e)}return b.initialize=function(R,N){f=R,p=N,x()},b.links=function(R){return arguments.length?(e=R,x(),b):e},b.id=function(R){return arguments.length?(t=R,b):t},b.iterations=function(R){return arguments.length?(g=+R,b):g},b.strength=function(R){return arguments.length?(r=typeof R=="function"?R:Dn(+R),E(),b):r},b.distance=function(R){return arguments.length?(s=typeof R=="function"?R:Dn(+R),M(),b):s},b}const Vpe=1664525,Gpe=1013904223,n0=4294967296;function Kpe(){let e=1;return()=>(e=(Vpe*e+Gpe)%n0)/n0}function Xpe(e){return e.x}function Ype(e){return e.y}var Zpe=10,Jpe=Math.PI*(3-Math.sqrt(5));function Qpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Lp(v),p=Ua("tick","end"),g=Kpe();e==null&&(e=[]);function v(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(M){var R,N=e.length,P;M===void 0&&(M=1);for(var $=0;$<M;++$)for(r+=(c-r)*s,d.forEach(function(_){_(r)}),R=0;R<N;++R)P=e[R],P.fx==null?P.x+=P.vx*=f:(P.x=P.fx,P.vx=0),P.fy==null?P.y+=P.vy*=f:(P.y=P.fy,P.vy=0);return t}function x(){for(var M=0,R=e.length,N;M<R;++M){if(N=e[M],N.index=M,N.fx!=null&&(N.x=N.fx),N.fy!=null&&(N.y=N.fy),isNaN(N.x)||isNaN(N.y)){var P=Zpe*Math.sqrt(.5+M),$=M*Jpe;N.x=P*Math.cos($),N.y=P*Math.sin($)}(isNaN(N.vx)||isNaN(N.vy))&&(N.vx=N.vy=0)}}function E(M){return M.initialize&&M.initialize(e,g),M}return x(),t={tick:b,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(M){return arguments.length?(e=M,x(),d.forEach(E),t):e},alpha:function(M){return arguments.length?(r=+M,t):r},alphaMin:function(M){return arguments.length?(o=+M,t):o},alphaDecay:function(M){return arguments.length?(s=+M,t):+s},alphaTarget:function(M){return arguments.length?(c=+M,t):c},velocityDecay:function(M){return arguments.length?(f=1-M,t):1-f},randomSource:function(M){return arguments.length?(g=M,d.forEach(E),t):g},force:function(M,R){return arguments.length>1?(R==null?d.delete(M):d.set(M,E(R)),t):d.get(M)},find:function(M,R,N){var P=0,$=e.length,_,z,j,le,ee;for(N==null?N=1/0:N*=N,P=0;P<$;++P)le=e[P],_=M-le.x,z=R-le.y,j=_*_+z*z,j<N&&(ee=le,N=j);return ee},on:function(M,R){return arguments.length>1?(p.on(M,R),t):p.on(M)}}}function ege(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(x){var E,M=e.length,R=Rp(e,Xpe,Ype).visitAfter(v);for(o=x,E=0;E<M;++E)t=e[E],R.visit(b)}function g(){if(e){var x,E=e.length,M;for(c=new Array(E),x=0;x<E;++x)M=e[x],c[M.index]=+s(M,x,e)}}function v(x){var E=0,M,R,N=0,P,$,_;if(x.length){for(P=$=_=0;_<4;++_)(M=x[_])&&(R=Math.abs(M.value))&&(E+=M.value,N+=R,P+=R*M.x,$+=R*M.y);x.x=P/N,x.y=$/N}else{M=x,M.x=M.data.x,M.y=M.data.y;do E+=c[M.data.index];while(M=M.next)}x.value=E}function b(x,E,M,R){if(!x.value)return!0;var N=x.x-t.x,P=x.y-t.y,$=R-E,_=N*N+P*P;if($*$/h<_)return _<d&&(N===0&&(N=io(r),_+=N*N),P===0&&(P=io(r),_+=P*P),_<f&&(_=Math.sqrt(f*_)),t.vx+=N*x.value*o/_,t.vy+=P*x.value*o/_),!0;if(x.length||_>=d)return;(x.data!==t||x.next)&&(N===0&&(N=io(r),_+=N*N),P===0&&(P=io(r),_+=P*P),_<f&&(_=Math.sqrt(f*_)));do x.data!==t&&($=c[x.data.index]*o/_,t.vx+=N*$,t.vy+=P*$);while(x=x.next)}return p.initialize=function(x,E){e=x,r=E,g()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Dn(+x),g(),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 tge(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vx+=(s[h]-g.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Dn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function nge(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vy+=(s[h]-g.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Dn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function rge(){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 r0(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 oo(...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]=oo.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:r0(t[o])&&r0(r[o])?t[o]=oo(t[o],r[o]):t[o]=r[o])}),t},{})}const Qx={mergeArrays:!0};oo.options=Qx;oo.withOptions=(e,...t)=>{oo.options={mergeArrays:!0,...e};const r=oo(...t);return oo.options=Qx,r};var ige=oo;function oge(){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 sge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function e1(e){e.preventDefault(),e.stopPropagation()}function t1(e){return typeof e=="number"}function mo(e,t){return t1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function lge(e){return`${e.source.id}-${e.target.id}`}function n1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function age(e){return`url(#${n1(e.color)})`}function cge(e){return{size:e,padding:(t,r)=>mo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const r1={Arrow:e=>cge(e)},uge=(e,t,r)=>[t/2,r/2],fge=(e,t,r)=>[i0(0,t),i0(0,r)];function i0(e,t){return Math.random()*(t-e)+e}const Eh={Centered:uge,Randomized:fge};function dge(){return{autoResize:!1,callbacks:{},hooks:{},initial:sge(),nodeRadius:16,marker:r1.Arrow(4),modifiers:{},positionInitializer:Eh.Centered,simulation:{alphas:rge(),forces:oge()},zoom:{initial:1,min:.1,max:2}}}function hge(e={}){return ige.withOptions({mergeArrays:!1},dge(),e)}function pge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>e1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,Op.translate(c,f).scale(d)),p.append("g")}function gge({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function mge({config:e,onDragStart:t,onDragEnd:r}){const o=Pde().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Kn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Kn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function vge({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}:yge({links:c},r)}function yge(e,t){const r=[...bge(e,t),...wge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function bge(e,t){return i1(e,t,(r,o)=>r.target.id===o.id)}function wge(e,t){return i1(e,t,(r,o)=>r.source.id===o.id)}function i1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function Ah(e){return e.x??0}function Lh(e){return e.y??0}function $p({source:e,target:t}){const r=new tl(Ah(e),Lh(e)),o=new tl(Ah(t),Lh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function o1({center:e,node:t}){const r=new tl(Ah(t),Lh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new tl(0,1))),{n:r,c:o}}function s1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=$p({source:t,target:r});return{start:o.add(c.multiply(mo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function xge(e){const{start:t,end:r}=s1(e);return`M${t.x},${t.y}
L${r.x},${r.y}`}function kge(e){const{start:t,end:r}=s1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Sge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=$p({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(mo(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(mo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y}
A${v},${v},0,0,1,${g.x},${g.y}`}function _ge({center:e,config:t,node:r}){const{n:o,c:s}=o1({center:e,node:r}),c=mo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
A${c},${c},0,1,0,${g.x},${g.y}`}function Tge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=$p({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Cge({center:e,config:t,node:r}){const{n:o,c:s}=o1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*mo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Vs={line:{labelTransform:kge,path:xge},arc:{labelTransform:Tge,path:Sge},reflexive:{labelTransform:Cge,path:_ge}};function Ege(e){return e.append("g").classed("links",!0).selectAll("path")}function Age({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>lge(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>age(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 Lge(e){Mge(e),Nge(e)}function Mge({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?Vs.reflexive.path({config:t,node:s.source,center:e}):l1(r,s.source,s.target)?Vs.arc.path({config:t,source:s.source,target:s.target}):Vs.line.path({config:t,source:s.source,target:s.target}))}function Nge({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?Vs.reflexive.labelTransform({config:e,node:s.source,center:t}):l1(r,s.source,s.target)?Vs.arc.labelTransform({config:e,source:s.source,target:s.target}):Vs.line.labelTransform({config:e,source:s.source,target:s.target}))}function l1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Oge(e){return e.append("defs").selectAll("marker")}function Rge({config:e,graph:t,selection:r}){return r?.data(Pge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>n1(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",$ge(e.marker.path)),s})}function Pge(e){return[...new Set(e.links.map(t=>t.color))]}function $ge(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 Ige(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Dge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",b=>mo(e,b)).on("contextmenu",(b,x)=>{e1(b),o(x)}).on("pointerdown",(b,x)=>Fge(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const zge=500;function Fge(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>zge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Hge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Bge({center:e,config:t,graph:r,onTick:o}){const s=Qpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",tge(()=>e().x).strength(p)).force("y",nge(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",ege().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",qpe().radius(p=>d.radiusMultiplier*mo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Upe(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 Wge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=_pe().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 qge=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(Vue(()=>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 tl.of([this.width,this.height]).divide(2).subtract(tl.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(t1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Rge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Age({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Dge({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=Bge({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=Wge({config:this.config,canvasContainer:()=>Kn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=pge({applyZoom:this.scale!==1,container:Kn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Ege(this.canvas),this.nodeSelection=Ige(this.canvas),this.markerSelection=Oge(this.canvas),this.drag=mge({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){Hge(this.nodeSelection),Lge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Kn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){gge({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=vge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function o0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function jge(e){return{...e}}function Ip(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Uge(e){const t=e.map(o=>Zw(o)),r=QA(t);return t.map(({raw:o,id:s,splits:c})=>Ip({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c.pop()},isFocused:!1,id:s,type:"external"}))}function Vge(e,t){return Ip({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Gge(e,t){if(!e)return o0({});const r=Uge(e.externalized),o=e.inlined.map(d=>Vge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const g=c[d],v=c[p];if(!(g===void 0||v===void 0))return jge({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return o0({nodes:s,links:f})}const Kge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Xge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Yge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Zge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Jge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Qge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},a1=rt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=vr("tooltip");return e.state==="pass"?(re(),ve("div",Kge)):e.failedSnapshot?at((re(),ve("div",Xge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(re(),ve("div",Yge)):e.mode==="todo"?at((re(),ve("div",Zge,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?at((re(),ve("div",Jge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(re(),ve("div",Qge))}}}),ol=DE(),eme=wE(ol),tme={border:"b base","p-4":""},nme=["innerHTML"],rme=rt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(re(),ve("div",tme,[X("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Pe(t(e.time))+" | "+Pe(e.taskName)+" | "+Pe(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,nme)]))}}),ime={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},ome={key:1,p6:""},sme=rt({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=_x.value;if(o){const s=wp(ol.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(oa(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?PA(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(re(),ve("div",ime,[(re(!0),ve(nt,null,$n(t.value,({taskId:c,type:f,time:d,content:h})=>(re(),ve("div",{key:c,"font-mono":""},[Ne(rme,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(re(),ve("div",ome,[...s[0]||(s[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),c1={"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(c1);var fr=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},As,Kl,Do;class lme{constructor(...t){As.set(this,new Map),Kl.set(this,new Map),Do.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),fr(this,Do,"f").has(o)||fr(this,Do,"f").set(o,new Set);const c=fr(this,Do,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&fr(this,Kl,"f").set(o,d),f=!1,h)continue;const p=fr(this,As,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);fr(this,As,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:fr(this,As,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&fr(this,Kl,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:fr(this,Do,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of fr(this,Do,"f").values())Object.freeze(t);return this}_getTestState(){return{types:fr(this,As,"f"),extensions:fr(this,Kl,"f")}}}As=new WeakMap,Kl=new WeakMap,Do=new WeakMap;const ame=new lme(c1)._freeze();function Ma(e){if(gr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function u1(e,t){const r=t?ame.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function f1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Mh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Ma(e)}const tu=rt({__name:"CodeMirrorContainer",props:da({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:da(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Yu(e,"modelValue"),s=j_(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ge();return Mi(async()=>{const d=dce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),Nn.value=d,setTimeout(()=>Nn.value?.refresh(),100)}),(d,h)=>(re(),ve("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),cme=rt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ge(""),c=Ft(void 0),f=Ge(!1),d=Ge(!0),h=Ge(!1),p=Ge();xt(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Y){console.error("cannot fetch file",Y)}await Et(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,dx.value,hx.value],([Y,G,W,L,O])=>{!Y&&!G&&(L!=null?Et(()=>{const C=p.value,k=C??{line:(L??1)-1,ch:O??0};C?p.value=void 0:(Nn.value?.scrollIntoView(k,100),Et(()=>{Nn.value?.focus(),Nn.value?.setCursor(k)}))}):Et(()=>{Nn.value?.focus()}))},{flush:"post"});const g=ke(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ge(),b=ke(()=>{const Y=[];function G(W){W.result?.errors&&Y.push(...W.result.errors),W.type==="suite"&&W.tasks.forEach(G)}return r.file?.tasks.forEach(G),Y}),x=ke(()=>{const Y=[];function G(W){W.type==="test"&&Y.push(...W.annotations),W.type==="suite"&&W.tasks.forEach(G)}return r.file?.tasks.forEach(G),Y}),E=[],M=[],R=[],N=Ge(!1);function P(){R.forEach(([Y,G,W])=>{Y.removeEventListener("click",G),W()}),R.length=0}Nw(v,()=>{Nn.value?.refresh()});function $(){f.value=c.value!==Nn.value.getValue()}xt(f,Y=>{o("draft",Y)},{immediate:!0});function _(Y){const W=(Y?.stacks||[]).filter(D=>D.file&&D.file===r.file?.filepath)?.[0];if(!W)return;const L=document.createElement("div");L.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(W.column)}^ ${Y.name}: ${Y?.message||""}`,L.appendChild(O);const C=document.createElement("span");C.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",C.tabIndex=0,C.ariaLabel="Open in Editor",yw(C,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await bp(W.file,W.line,W.column)};C.addEventListener("click",k),L.appendChild(C),R.push([C,k,()=>ap(C)]),M.push(Nn.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),E.push(Nn.value.addLineWidget(W.line-1,L))}function z(Y){if(!Y.location)return;const{line:G,file:W}=Y.location;if(W!==r.file?.filepath)return;const L=document.createElement("div");L.classList.add("wrap","bg-active","py-3","px-6","my-1"),L.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const C=document.createElement("span");C.textContent=`${Y.type}: `,C.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=Y.message.replace(/[^\r]\n/,`\r
`),O.append(C,k),L.append(O);const D=Y.attachment;if(D?.path||D?.body)if(D.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const be=D.path||D.body;typeof be=="string"&&(be.startsWith("http://")||be.startsWith("https://"))?(ae.setAttribute("src",be),B.referrerPolicy="no-referrer"):ae.setAttribute("src",Ma(D)),B.target="_blank",B.href=ae.src,B.append(ae),L.append(B)}else{const B=document.createElement("a");B.href=Ma(D),B.download=u1(Y.message,D.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const be=document.createElement("span");be.textContent="Download",B.append(ae,be),L.append(B)}E.push(Nn.value.addLineWidget(G-1,L))}const{pause:j,resume:le}=xt([Nn,b,x,Ms],([Y,G,W,L])=>{if(!Y){E.length=0,M.length=0,P();return}L&&(Y.off("changes",$),P(),E.forEach(O=>O.clear()),M.forEach(O=>Y?.removeLineClass(O,"wrap")),E.length=0,M.length=0,setTimeout(()=>{G.forEach(_),W.forEach(z),N.value||Y.clearHistory(),Y.on("changes",$)},100))},{flush:"post"});hp(()=>[Ms.value,h.value,p.value],([Y,G],W)=>{Y&&!G&&W&&W[2]&&Nn.value?.setCursor(W[2])},{debounce:100,flush:"post"});async function ee(Y){if(h.value)return;j(),h.value=!0,await Et();const G=Nn.value;G&&(G.setOption("readOnly",!0),await Et(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",$),P(),E.forEach(W=>W.clear()),M.forEach(W=>G?.removeLineClass(W,"wrap")),E.length=0,M.length=0;try{N.value=!0,await ft.rpc.saveTestFile(r.file.filepath,Y),c.value=Y,f.value=!1}catch(W){console.error("error saving file",W)}N.value||G?.clearHistory();try{await Uv(Ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Uv(Ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(_),x.value.forEach(z),G?.on("changes",$),h.value=!1,await Et(),G&&(G.setOption("readOnly",!1),await Et(),G.refresh()),le()}return $a(P),(Y,G)=>(re(),Ve(tu,ki({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=W=>s.value=W),"h-full":""},{lineNumbers:!0,readOnly:K(gr),saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ee}),null,16,["modelValue","mode"]))}}),Dp=rt({__name:"Modal",props:da({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(re(),ve("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:zt(t.value?{}:{transform:o.value})},[Dt(c.$slots,"default")],6)],2))}}),ume={class:"overflow-auto max-h-120"},fme={"my-2":"","mx-4":""},dme={"op-70":""},hme={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},pme=["onClick"],gme=rt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=Ge(10),s=ke(()=>{const h=pr.value?.importDurations;if(!h)return[];const p=ei.value.root,g=[];for(const b in h){const x=h[b],E=x.external?eL(b):af(p,b);g.push({importedFile:b,relativeFile:f(E),selfTime:x.selfTime,totalTime:x.totalTime,formattedSelfTime:Fo(x.selfTime),formattedTotalTime:Fo(x.totalTime),selfTimeClass:_u(x.selfTime),totalTimeClass:_u(x.totalTime),external:x.external})}return g.sort((b,x)=>x.totalTime-b.totalTime)}),c=ke(()=>s.value.slice(0,o.value));function f(d){return d.length<=45?d:`...${d.slice(-45)}`}return(d,h)=>(re(),ve("div",ume,[X("h1",fme,[h[1]||(h[1]=Qe(" Import Duration Breakdown ",-1)),X("span",dme,"(ordered by Total Time) (Top "+Pe(Math.min(o.value,c.value.length))+")",1)]),X("table",hme,[h[2]||(h[2]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(re(!0),ve(nt,null,$n(c.value,p=>(re(),ve("tr",{key:p.importedFile},[X("td",{class:"cursor-pointer pr-2",style:zt({color:p.external?"var(--color-node-external)":void 0}),onClick:g=>r("select",p.importedFile,p.external?"external":"inline")},Pe(p.relativeFile),13,pme),X("td",{"pr-2":"",class:ot(p.selfTimeClass)},Pe(p.formattedSelfTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Pe(p.formattedTotalTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Pe(Math.round(p.totalTime/s.value[0].totalTime*100))+"% ",3)]))),128))])]),o.value<s.value.length?(re(),ve("button",{key:0,class:"flex w-full justify-center h-8 text-sm z-10 relative font-light",onClick:h[0]||(h[0]=p=>o.value+=5)}," Show more ")):Be("",!0)]))}}),Cs=rt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(re(),ve("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Dt(t.$slots,"default")],2))}}),mme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},vme={"p-4":"",relative:""},yme={flex:"","justify-between":""},bme={"mr-8":"",flex:"","gap-2":"","items-center":""},wme={op50:"","font-mono":"","text-sm":""},xme={key:0,"p-5":""},kme={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},Sme={key:0},_me={p:"x3 y-1","bg-overlay":"",border:"base b t"},Tme=rt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=_E(()=>{if(pr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,pr.value.id,!!Zn);if(r.type==="external")return ft.rpc.getExternalResult(r.id,pr.value.id)}}),c=ke(()=>{const $=pr.value?.importDurations||{};return $[r.id]||$[MA("/@fs/",r.id)]||{}}),f=ke(()=>r.id?.split(/\./g).pop()||"js"),d=ke(()=>s.value?.source?.trim()||""),h=ke(()=>!s.value||!("code"in s.value)||!ei.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=ke(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=ke(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],x=[];function E($,_){const z=$.coordsChar({left:_.clientX,top:_.clientY}),j=$.findMarksAt(z);if(j.length!==1)return;const le=j[0].title;if(le){const ee=j[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",le,ee)}}function M($){const _=document.createElement("div");return _.classList.add("mb-5"),$.forEach(({resolvedId:z,totalTime:j,external:le})=>{const ee=document.createElement("div");ee.append(document.createTextNode("import "));const Y=document.createElement("span"),G=af(ei.value.root,z);Y.textContent=`"/${G}"`,Y.className="hover:underline decoration-gray cursor-pointer select-none",ee.append(Y),Y.addEventListener("click",()=>{o("select",z,le?"external":"inline")});const W=document.createElement("span");W.textContent=` ${Fo(j)}`;const L=_u(j);L&&W.classList.add(L),ee.append(W),_.append(ee)}),_}function R($){const _=document.createElement("div");_.className="flex ml-2",_.textContent=Fo($);const z=_u($);return z&&_.classList.add(z),_}function N($){if(x.forEach(_=>_.clear()),x.length=0,v.forEach(_=>_.remove()),v.length=0,b.forEach(_=>_.clear()),b.length=0,s.value&&"modules"in s.value){$.off("mousedown",E),$.on("mousedown",E);const _=s.value.untrackedModules;if(_?.length){const z=M(_);v.push(z),x.push($.addLineWidget(0,z,{above:!0}))}s.value.modules?.forEach(z=>{const j={line:z.start.line-1,ch:z.start.column},le={line:z.end.line-1,ch:z.end.column},ee=$.markText(j,le,{title:z.resolvedId,attributes:{"data-external":String(z.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(ee);const Y=R(z.totalTime+(z.transformTime||0));_?.length||Y.classList.add("-mt-5"),v.push(Y),$.addWidget({line:z.end.line-1,ch:z.end.column+1},Y,!1)})}}function P(){o("back")}return Tw("Escape",()=>{o("close")}),($,_)=>{const z=vr("tooltip");return re(),ve("div",mme,[X("div",vme,[X("div",yme,[X("p",null,[e.canUndo?at((re(),Ve(_t,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:_[0]||(_[0]=j=>P())},null,512)),[[z,"Go Back",void 0,{bottom:!0}]]):Be("",!0),_[7]||(_[7]=Qe(" Module Info ",-1)),Ne(K(Qi),{class:"inline","cursor-help":""},{popper:We(()=>[Qe(" This is module is "+Pe(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(re(),ve(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(re(),ve(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:We(()=>[Ne(Cs,{type:"custom","ml-1":"",style:zt({backgroundColor:`var(--color-node-${e.type})`})},{default:We(()=>[Qe(Pe(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(re(),Ve(K(Qi),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[..._[4]||(_[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:We(()=>[Ne(Cs,{type:"tip","ml-2":""},{default:We(()=>[..._[3]||(_[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):Be("",!0),h.value===!1?(re(),Ve(K(Qi),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[..._[6]||(_[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:We(()=>[Ne(Cs,{type:"warning","ml-2":""},{default:We(()=>[..._[5]||(_[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):Be("",!0)]),X("div",bme,[c.value.selfTime!=null&&c.value.external!==!0?(re(),Ve(K(Qi),{key:0,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Pe(K(Ed)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(c.value.selfTime)},{default:We(()=>[Qe(" self: "+Pe(K(Fo)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):Be("",!0),c.value.totalTime!=null?(re(),Ve(K(Qi),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Pe(K(Ed)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(c.value.totalTime)},{default:We(()=>[Qe(" total: "+Pe(K(Fo)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):Be("",!0),K(s)&&"transformTime"in K(s)&&K(s).transformTime?(re(),Ve(K(Qi),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Pe(K(Ed)(K(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(K(s).transformTime)},{default:We(()=>[Qe(" transform: "+Pe(K(Fo)(K(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):Be("",!0)])]),X("p",wme,Pe(e.id),1),Ne(_t,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:_[1]||(_[1]=j=>o("close"))})]),K(s)?(re(),ve(nt,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[_[8]||(_[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(re(),ve("div",kme," Transformed ")):Be("",!0),(re(),Ve(tu,ki({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:_[2]||(_[2]=j=>N(j))}),null,16,["model-value","mode"])),p.value!=null?(re(),Ve(tu,ki({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):Be("",!0)],2),g.value.mappings!==""?(re(),ve("div",Sme,[X("div",_me," Source map (v"+Pe(g.value.version)+") ",1),Ne(tu,ki({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):Be("",!0)],64)):(re(),ve("div",xme," No transform result found for this module. "))])}}}),Cme={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Eme={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Ame={flex:"~ gap-1","items-center":"","select-none":""},Lme={class:"pr-2"},Mme=["id","checked","onChange"],Nme=["for"],Ome={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},Rme=rt({__name:"ViewModuleGraph",props:da({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Yu(e,"modelValue"),{graph:o}=m_(t),s=Ge(),c=Ge(!1),f=Ge(),d=WE(f),h=Ge(),p=Ge(null),g=Ft(o.value),v=ke(()=>{let W="";const L=pr.value?.importDurations||{};for(const O in L){const{totalTime:C}=L[O];if(C>=500){W="text-red";break}else C>=100&&(W="text-orange")}return W}),b=Ge(ei.value?.experimental?.printImportBreakdown??v.value==="text-red");Mi(()=>{g.value=M(o.value,null,2),le()}),Ia(()=>{h.value?.shutdown()}),xt(o,()=>{g.value=M(o.value,p.value,2),le()});function x(){g.value=o.value,le()}function E(){b.value=!b.value}function M(W,L,O=2){if(!W.nodes.length||W.nodes.length<=50)return W;const C=new Map;W.nodes.forEach(Ae=>C.set(Ae.id,new Set)),W.links.forEach(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);C.get(Ke)?.add(je),C.get(je)?.add(Ke)});let k;if(L)k=[L];else{const Ae=new Set(W.links.map(je=>typeof je.target=="object"?je.target.id:String(je.target))),Ke=W.nodes.filter(je=>je.type==="inline"&&!Ae.has(je.id));k=Ke.length>0?[Ke[0].id]:[W.nodes[0].id]}const D=new Set,B=k.map(Ae=>({id:Ae,level:0}));for(;B.length>0;){const{id:Ae,level:Ke}=B.shift();D.has(Ae)||Ke>O||(D.add(Ae),Ke<O&&(C.get(Ae)||new Set).forEach(Fe=>{D.has(Fe)||B.push({id:Fe,level:Ke+1})}))}const ae=new Map(W.nodes.map(Ae=>[Ae.id,Ae])),be=Array.from(D).map(Ae=>ae.get(Ae)).filter(Ae=>Ae!==void 0),Se=new Map(be.map(Ae=>[Ae.id,Ae])),He=W.links.map(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);if(D.has(Ke)&&D.has(je)){const Fe=Se.get(Ke),Re=Se.get(je);if(Fe&&Re)return{...Ae,source:Fe,target:Re}}return null}).filter(Ae=>Ae!==null);return{nodes:be,links:He}}function R(W,L){h.value?.filterNodesByType(L,W)}function N(W,L){f.value={id:W,type:L},c.value=!0}function P(){d.undo()}function $(){c.value=!1,d.clear()}function _(W){p.value=W,g.value=M(o.value,W,2),j(),le()}function z(){p.value=null,g.value=M(o.value,null,2),j(),le()}function j(){const W=g.value.nodes.map(C=>{let k,D;return C.id===p.value?(k="var(--color-node-focused)",D="var(--color-node-focused)"):C.type==="inline"?(k=C.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",D=k):(k="var(--color-node-external)",D="var(--color-node-external)"),Ip({...C,color:k,label:C.label?{...C.label,color:D}:C.label})}),L=new Map(W.map(C=>[C.id,C])),O=g.value.links.map(C=>{const k=typeof C.source=="object"?C.source.id:String(C.source),D=typeof C.target=="object"?C.target.id:String(C.target);return{...C,source:L.get(k),target:L.get(D)}});g.value={nodes:W,links:O}}function le(W=!1){if(h.value?.shutdown(),W&&!r.value){r.value=!0;return}if(!g.value||!s.value)return;const L=g.value.nodes.length;let O=1,C=.5;L>300?(O=.3,C=.2):L>200?(O=.4,C=.3):L>100?(O=.5,C=.3):L>50&&(O=.7,O=.4),h.value=new qge(s.value,g.value,hge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:D})=>k===0&&D===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:r1.Arrow(2),modifiers:{node:G},positionInitializer:o.value.nodes.length===1?Eh.Centered:Eh.Randomized,zoom:{initial:O,min:C,max:1.5}}))}const ee=W=>W.button===0,Y=W=>W.button===2;function G(W){if(gr)return;let L=0,O=0,C=0,k=!1;W.on("pointerdown",(D,B)=>{!B.x||!B.y||(k=Y(D),!(!ee(D)&&!k)&&(L=B.x,O=B.y,C=Date.now()))}).on("pointerup",(D,B)=>{if(!B.x||!B.y)return;const ae=Y(D);if(!ee(D)&&!ae||Date.now()-C>500)return;const be=B.x-L,Se=B.y-O;be**2+Se**2<100&&(!ae&&!D.shiftKey?N(B.id,B.type):(ae||D.shiftKey)&&(D.preventDefault(),B.type==="inline"&&_(B.id)))}).on("contextmenu",D=>{D.preventDefault()})}return(W,L)=>{const O=vr("tooltip");return re(),ve("div",Cme,[X("div",null,[X("div",Eme,[X("div",Ame,[X("div",Lme,Pe(g.value.nodes.length)+"/"+Pe(K(o).nodes.length)+" "+Pe(g.value.nodes.length===1?"module":"modules"),1),at(X("input",{id:"hide-node-modules","onUpdate:modelValue":L[0]||(L[0]=C=>r.value=C),type:"checkbox"},null,512),[[Yb,r.value]]),L[9]||(L[9]=X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(re(!0),ve(nt,null,$n(h.value?.nodeTypes.sort(),C=>(re(),ve("div",{key:C,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${C}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(C),onChange:k=>R(C,k.target.checked)},null,40,Mme),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${C}`,"border-b-2":"",style:zt({"border-color":`var(--color-node-${C})`})},Pe(C)+" Modules",13,Nme)]))),128)),L[10]||(L[10]=X("div",{"flex-auto":""},null,-1)),L[11]||(L[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[at(Ne(_t,{icon:"i-carbon-notebook",class:ot(v.value),onClick:L[1]||(L[1]=C=>E())},null,8,["class"]),[[O,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:L[2]||(L[2]=C=>x())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-reset",onClick:L[3]||(L[3]=C=>z())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),b.value?(re(),ve("div",Ome,[Ne(gme,{onSelect:L[4]||(L[4]=(C,k)=>N(C,k))})])):Be("",!0),X("div",{ref_key:"el",ref:s},null,512),Ne(Dp,{modelValue:c.value,"onUpdate:modelValue":L[8]||(L[8]=C=>c.value=C),direction:"right"},{default:We(()=>[f.value?(re(),Ve(np,{key:0},{default:We(()=>[Ne(Tme,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":K(d).undoStack.value.length>1,onClose:L[5]||(L[5]=C=>$()),onSelect:L[6]||(L[6]=(C,k)=>N(C,k)),onBack:L[7]||(L[7]=C=>P())},null,8,["id","project-name","type","can-undo"])]),_:1})):Be("",!0)]),_:1},8,["modelValue"])])}}});function d1(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function h1(){const e=Ge(!1),t=Ge(Date.now()),r=Ge(),o=ke(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Pme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},$me={"p-4":"",relative:"",border:"base b"},Ime={op50:"","font-mono":"","text-sm":""},Dme={op50:"","font-mono":"","text-sm":""},zme={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Fme=["src","alt"],Hme={key:1},Bme=rt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Tw("Escape",()=>{r("close")}),(o,s)=>(re(),ve("div",Pme,[X("div",$me,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",Ime,Pe(e.file),1),X("p",Dme,Pe(e.name),1),Ne(_t,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",zme,[e.url?(re(),ve("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,Fme)):(re(),ve("div",Hme," Something was wrong, the image cannot be resolved. "))])]))}}),p1=Ni(Bme,[["__scopeId","data-v-08ce44b7"]]),Wme={class:"scrolls scrolls-rounded task-error"},qme=["onClickPassive"],jme=["innerHTML"],Ume=rt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=ke(()=>wp(ol.value)),s=ke(()=>!!t.error?.diff),c=ke(()=>t.error.diff?o.value.toHtml(oa(t.error.diff)):void 0);function f(d){return ice(d.file,t.filename)?hce(t.fileId,d):bp(d.file,d.line,d.column)}return(d,h)=>{const p=vr("tooltip");return re(),ve("div",Wme,[X("pre",null,[X("b",null,Pe(e.error.name),1),Qe(": "+Pe(e.error.message),1)]),(re(!0),ve(nt,null,$n(e.error.stacks,(g,v)=>(re(),ve("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Pe(r(g.file))+":"+Pe(g.line)+":"+Pe(g.column),1),at(X("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(g)},null,40,qme),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(re(),ve("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,jme)):Be("",!0)])}}}),g1=Ni(Ume,[["__scopeId","data-v-1fcfe7a4"]]),Vme={"h-full":"",class:"scrolls"},Gme=["id"],Kme={flex:"~ gap-2 items-center"},Xme={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Yme=["innerHTML"],Zme={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Jme=rt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(g=>r(g,p+1))]}const o=ke(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],g=h.result;if(g?.errors?.[0]){const b={id:h.id,file:h,name:h.name,fullName:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(b)}return p.length>0?fx(ol.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=h1();return(h,p)=>{const g=vr("tooltip");return re(),ve("div",Vme,[o.value.length?(re(!0),ve(nt,{key:0},$n(o.value,v=>(re(),ve("div",{id:v.id,key:v.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:zt({"margin-left":`${v.result?.htmlError?.5:2*v.level+.5}rem`})},[X("div",Kme,[X("span",null,Pe(v.name),1),K(Zn)&&v.meta?.failScreenshotPath?(re(),ve(nt,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>K(f)(v)},null,8,["onClick"]),[[g,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>K(d1)(v)},null,8,["onClick"]),[[g,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Be("",!0)]),v.result?.htmlError?(re(),ve("div",Xme,[X("pre",{innerHTML:v.result.htmlError},null,8,Yme)])):v.result?.errors?(re(!0),ve(nt,{key:1},$n(v.result.errors,(b,x)=>(re(),Ve(g1,{key:x,error:b,filename:e.file.name,root:K(ei).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Be("",!0)],4)],8,Gme))),128)):(re(),ve("div",Zme," All tests passed in this file ")),K(Zn)?(re(),Ve(Dp,{key:2,modelValue:K(c),"onUpdate:modelValue":p[1]||(p[1]=v=>Mt(c)?c.value=v:null),direction:"right"},{default:We(()=>[K(s)?(re(),Ve(np,{key:0},{default:We(()=>[Ne(p1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:p[0]||(p[0]=v=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Be("",!0)]),_:1},8,["modelValue"])):Be("",!0)])}}}),Qme=Ni(Jme,[["__scopeId","data-v-9d875d6e"]]),eve=["href","referrerPolicy"],tve=["src"],nve=rt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=ke(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Ma(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(re(),ve("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:K(f1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,tve)],8,eve)):Be("",!0)}}),rve={class:"flex flex-col gap-4"},ive={key:0},ove=rt({__name:"ArtifactTemplate",setup(e){const t=vb();return(r,o)=>(re(),ve("article",rve,[X("h1",null,[Dt(r.$slots,"title")]),K(t).message?(re(),ve("p",ive,[Dt(r.$slots,"message")])):Be("",!0),Dt(r.$slots,"default")]))}}),m1=Symbol("tabContext"),Pu={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},sve={class:"flex flex-col items-center gap-6"},lve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},ave=["id","aria-selected","aria-controls","onClick"],cve=rt({__name:"SmallTabs",setup(e){const t=Ge(null),r=Ge([]),o=Yh();return dr(m1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(re(),ve("div",sve,[X("div",lve,[(re(!0),ve(nt,null,$n(r.value,f=>(re(),ve("button",{id:K(Pu).tab(f.id,K(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":K(Pu).tabpanel(f.id,K(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Pe(f.title),9,ave))),128))]),Dt(s.$slots,"default")]))}}),uve=["id","aria-labelledby","hidden"],Bc=rt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=pn(m1);if(!r)throw new Error("TabPane must be used within Tabs");const o=Yh(),s=ke(()=>r.activeTab.value===o);return Mi(()=>{r.registerTab({...t,id:o})}),Ia(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(re(),ve("div",{id:K(Pu).tabpanel(K(o),K(r).id),role:"tabpanel","aria-labelledby":K(Pu).tab(K(o),K(r).id),hidden:!s.value,class:"max-w-full"},[Dt(c.$slots,"default")],8,uve))}}),v1=rt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(r,o)=>(re(),ve("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:zt({backgroundImage:t})},[Dt(r.$slots,"default")],4))}}),fve=["href","referrerPolicy"],dve=["src"],zd=rt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=ke(()=>Mh(e.attachment));return(r,o)=>(re(),Ve(v1,null,{default:We(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:K(f1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,dve)],8,fve)]),_:1}))}}),hve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},pve=["src"],gve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},mve=["src"],vve=["id"],yve=["for"],bve=rt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=ke(()=>Mh(e.reference)),r=ke(()=>Mh(e.actual)),o=ke(()=>Math.max(e.reference.width,e.actual.width)),s=ke(()=>Math.max(e.reference.height,e.actual.height)),c=Ge(50),f=Yh();return(d,h)=>(re(),Ve(v1,null,{default:We(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:zt({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",hve,[X("img",{src:t.value},null,8,pve)]),X("div",gve,[X("img",{src:r.value},null,8,mve)]),h[1]||(h[1]=X("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),at(X("input",{id:K(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,vve),[[Xb,c.value]]),X("output",{for:K(f),class:"sr-only"}," Showing "+Pe(c.value)+"% reference, "+Pe(100-c.value)+"% actual ",9,yve)],4)]),_:1}))}}),wve=rt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=ke(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(re(),Ve(ove,null,{title:We(()=>[...o[0]||(o[0]=[Qe(" Visual Regression ",-1)])]),message:We(()=>[Qe(Pe(e.regression.message),1)]),default:We(()=>[Ne(cve,null,{default:We(()=>[t.value.diff?(re(),Ve(Bc,{key:t.value.diff.path,title:"Diff"},{default:We(()=>[Ne(zd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):Be("",!0),t.value.reference?(re(),Ve(Bc,{key:t.value.reference.path,title:"Reference"},{default:We(()=>[Ne(zd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):Be("",!0),t.value.actual?(re(),Ve(Bc,{key:t.value.actual.path,title:"Actual"},{default:We(()=>[Ne(zd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):Be("",!0),t.value.reference&&t.value.actual?(re(),Ve(Bc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:We(()=>[Ne(bve,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):Be("",!0)]),_:1})]),_:1}))}}),xve={"h-full":"",class:"scrolls"},kve={key:0},Sve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},_ve={flex:"~ gap-2 items-center"},Tve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Cve=["innerHTML"],Eve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Ave={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Lve={class:"flex gap-2","overflow-hidden":""},Mve={class:"font-bold","ws-nowrap":"",truncate:""},Nve=["href","download"],Ove=["onClick"],Rve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Pve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},$ve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Ive=["onClick"],Dve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},zve={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":""},Fve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Hve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Bve=rt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=ke(()=>!t.test.result||!t.test.result.errors?.length?null:fx(ol.value,[t.test])[0]);function o(v){return pce(t.test,v)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=h1();function h(v){return`${af(ei.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=ke(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,b)=>{const x=vr("tooltip");return re(),ve("div",xve,[r.value?(re(),ve("div",kve,[X("div",Sve,[X("div",_ve,[K(Zn)&&e.test.meta?.failScreenshotPath?(re(),ve(nt,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=E=>K(f)(e.test))},null,512),[[x,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=E=>K(d1)(e.test))},null,512),[[x,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Be("",!0)]),e.test.result?.htmlError?(re(),ve("div",Tve,[X("pre",{innerHTML:e.test.result.htmlError},null,8,Cve)])):e.test.result?.errors?(re(!0),ve(nt,{key:1},$n(e.test.result.errors,(E,M)=>(re(),Ve(g1,{key:M,"file-id":e.test.file.id,error:E,filename:e.test.file.name,root:K(ei).root},null,8,["file-id","error","filename","root"]))),128)):Be("",!0)])])):(re(),ve("div",Eve," All tests passed in this file ")),e.test.annotations.length?(re(),ve(nt,{key:2},[b[5]||(b[5]=X("h1",{"m-2":""}," Test Annotations ",-1)),(re(!0),ve(nt,null,$n(e.test.annotations,E=>(re(),ve("div",{key:E.type+E.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",Ave,[X("div",Lve,[X("span",Mve,Pe(E.type),1),E.attachment&&!E.attachment.contentType?.startsWith("image/")?(re(),ve("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:K(Ma)(E.attachment),download:K(u1)(E.message,E.attachment.contentType)},[...b[4]||(b[4]=[X("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,Nve)):Be("",!0)]),X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((re(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:M=>o(E.location)},[Qe(Pe(h(E.location)),1)],8,Ove)),[[x,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(re(),ve("span",Rve,Pe(h(E.location)),1)):Be("",!0)])]),X("div",Pve,Pe(E.message),1),Ne(nve,{annotation:E},null,8,["annotation"])]))),128))],64)):Be("",!0),e.test.artifacts.length?(re(),ve(nt,{key:3},[b[6]||(b[6]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(re(!0),ve(nt,null,$n(e.test.artifacts,(E,M)=>(re(),ve("div",{key:E.type+M,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",$ve,[X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((re(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:R=>o(E.location)},[Qe(Pe(h(E.location)),1)],8,Ive)),[[x,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(re(),ve("span",Dve,Pe(h(E.location)),1)):Be("",!0)])]),E.type==="internal:toMatchScreenshot"&&E.kind==="visual-regression"?(re(),Ve(wve,{key:0,regression:E},null,8,["regression"])):Be("",!0)]))),128))],64)):Be("",!0),g.value.length?(re(),ve(nt,{key:4},[b[7]||(b[7]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",zve,[(re(!0),ve(nt,null,$n(g.value,([E,M])=>(re(),ve(nt,{key:E},[X("div",Fve,Pe(E),1),X("pre",Hve,Pe(M),1)],64))),128))])],64)):Be("",!0),K(Zn)?(re(),Ve(Dp,{key:5,modelValue:K(c),"onUpdate:modelValue":b[3]||(b[3]=E=>Mt(c)?c.value=E:null),direction:"right"},{default:We(()=>[K(s)?(re(),Ve(np,{key:0},{default:We(()=>[Ne(p1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:b[2]||(b[2]=E=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Be("",!0)]),_:1},8,["modelValue"])):Be("",!0)])}}}),Wve=Ni(Bve,[["__scopeId","data-v-1a68630b"]]),qve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},jve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Uve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Vve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Gve={class:"flex text-lg"},Kve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Xve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Yve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Zve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Jve=["flex-1"],s0=rt({__name:"FileDetails",setup(e){const t=Ge({nodes:[],links:[]}),r=Ge(!1),o=Ge(!1),s=Ge(!1),c=Ge(void 0),f=Ge(!0),d=ke(()=>Bs.value?ft.state.idMap.get(Bs.value):void 0),h=ke(()=>{const _=Gt.value;if(!(!_||!_.filepath))return{filepath:_.filepath,projectName:_.file.projectName||""}}),p=ke(()=>Gt.value&&yp(Gt.value)),g=ke(()=>!!Gt.value?.meta?.typecheck);function v(){const _=Gt.value?.filepath;_&&fetch(`/__open-in-editor?file=${encodeURIComponent(_)}`)}function b(_){_==="graph"&&(o.value=!0),hn.value=_}const x=ke(()=>_x.value?.reduce((_,{size:z})=>_+z,0)??0);function E(_){r.value=_}const M=/[/\\]node_modules[/\\]/;async function R(_=!1){if(!(s.value||h.value?.filepath===c.value&&!_)){s.value=!0,await Et();try{const z=h.value;if(!z){s.value=!1;return}if(_||!c.value||z.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let j=await ft.rpc.getModuleGraph(z.projectName,z.filepath,!!Zn);f.value&&(gr&&(j=typeof window.structuredClone<"u"?window.structuredClone(j):GA(j)),j.inlined=j.inlined.filter(le=>!M.test(le)),j.externalized=j.externalized.filter(le=>!M.test(le))),t.value=Gge(j,z.filepath),c.value=z.filepath}b("graph")}finally{await new Promise(z=>setTimeout(z,100)),s.value=!1}}}hp(()=>[h.value,hn.value,f.value],([,_,z],j)=>{_==="graph"&&R(j&&z!==j[2])},{debounce:100,immediate:!0});const N=ke(()=>{const _=Gt.value?.file.projectName||"";return Oe.colors.get(_)||Jw(Gt.value?.file.projectName)}),P=ke(()=>Qw(N.value)),$=ke(()=>{const _=Bs.value;if(!_)return Gt.value?.name;const z=[];let j=ft.state.idMap.get(_);for(;j;)z.push(j.name),j=j.suite?j.suite:j===j.file?void 0:j.file;return z.reverse().join(" > ")});return(_,z)=>{const j=vr("tooltip");return K(Gt)?(re(),ve("div",qve,[X("div",null,[X("div",jve,[Ne(a1,{state:K(Gt).result?.state,mode:K(Gt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?at((re(),ve("div",Uve,null,512)),[[j,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Be("",!0),K(Gt)?.file.projectName?(re(),ve("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:zt({backgroundColor:N.value,color:P.value})},Pe(K(Gt).file.projectName),5)):Be("",!0),X("div",Vve,Pe($.value),1),X("div",Gve,[K(gr)?Be("",!0):at((re(),Ve(_t,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!K(Gt)?.filepath,onClick:v},null,8,["disabled"])),[[j,"Open in editor",void 0,{bottom:!0}]])])]),X("div",Kve,[X("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==null}]),"data-testid":"btn-report",onClick:z[0]||(z[0]=le=>b(null))},[...z[5]||(z[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="graph"}]),onClick:z[1]||(z[1]=le=>b("graph"))},[s.value?(re(),ve("span",Xve)):(re(),ve("span",Yve)),z[6]||(z[6]=Qe(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="editor"}]),onClick:z[2]||(z[2]=le=>b("editor"))},[z[7]||(z[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Pe(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="console",op20:K(hn)!=="console"&&x.value===0}]),onClick:z[3]||(z[3]=le=>b("console"))},[z[8]||(z[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Pe(x.value)+") ",1)],2)])]),X("div",Zve,[o.value?(re(),ve("div",{key:0,"flex-1":K(hn)==="graph"&&""},[at(Ne(Rme,{modelValue:f.value,"onUpdate:modelValue":z[4]||(z[4]=le=>f.value=le),graph:t.value,"data-testid":"graph","project-name":K(Gt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ro,K(hn)==="graph"&&!s.value]])],8,Jve)):Be("",!0),K(hn)==="editor"?(re(),Ve(cme,{key:K(Gt).id,file:K(Gt),"data-testid":"editor",onDraft:E},null,8,["file"])):K(hn)==="console"?(re(),Ve(sme,{key:2,file:K(Gt),"data-testid":"console"},null,8,["file"])):!K(hn)&&!d.value&&K(Gt)?(re(),Ve(Qme,{key:3,file:K(Gt),"data-testid":"report"},null,8,["file"])):!K(hn)&&d.value?(re(),Ve(Wve,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):Be("",!0)])])):Be("",!0)}}}),Qve=""+new URL("../favicon.svg",import.meta.url).href;function eye(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let nu;function Nh(){Nh.init||(Nh.init=!0,nu=eye()!==-1)}var pf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Nh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",nu&&this.$el.appendChild(e),e.data="about:blank",nu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!nu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tye=sb();ib("data-v-b329ee4c");const nye={class:"resize-observer",tabindex:"-1"};ob();const rye=tye((e,t,r,o,s,c)=>(re(),Ve("div",nye)));pf.render=rye;pf.__scopeId="data-v-b329ee4c";pf.__file="src/components/ResizeObserver.vue";function ru(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(t){return typeof t}:ru=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function iye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oye(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 sye(e,t,r){return t&&oye(e.prototype,t),e}function l0(e){return lye(e)||aye(e)||cye(e)||uye()}function lye(e){if(Array.isArray(e))return Oh(e)}function aye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cye(e,t){if(e){if(typeof e=="string")return Oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oh(e,t)}}function Oh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function uye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function dye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(c=g,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(l0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(l0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function y1(e,t){if(e===t)return!0;if(ru(e)==="object"){for(var r in e)if(!y1(e[r],t[r]))return!1;return!0}return!1}var hye=(function(){function e(t,r,o){iye(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return sye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=fye(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=dye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function b1(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 hye(e,o,r);e._vue_visibilityState=s}}function pye(e,t,r){var o=t.value,s=t.oldValue;if(!y1(o,s)){var c=e._vue_visibilityState;if(!o){w1(e);return}c?c.createObserver(o,r):b1(e,{value:o},r)}}function w1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var gye={beforeMount:b1,updated:pye,unmounted:w1},mye={itemsLimit:1e3},vye=/(auto|scroll)/;function x1(e,t){return e.parentNode===null?t:x1(e.parentNode,t.concat([e]))}var Fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},yye=function(t){return Fd(t,"overflow")+Fd(t,"overflow-y")+Fd(t,"overflow-x")},bye=function(t){return vye.test(yye(t))};function a0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=x1(e.parentNode,[]),r=0;r<t.length;r+=1)if(bye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Rh(e){"@babel/helpers - typeof";return Rh=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},Rh(e)}var wye={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 xye(){return this.items.length&&Rh(this.items[0])!=="object"}var Ph=!1;if(typeof window<"u"){Ph=!1;try{var kye=Object.defineProperty({},"passive",{get:function(){Ph=!0}});window.addEventListener("test",null,kye)}catch{}}let Sye=0;var zp={name:"RecycleScroller",components:{ResizeObserver:pf},directives:{ObserveVisibility:gye},props:{...wye,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:xye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Uu({id:Sye++,index:t,used:!0,key:o,type:s}),f=Gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,b=this.$_unusedViews,x=this.pool,E=this.itemIndexByKey;let M,R,N,P,$;if(!p)M=R=P=$=N=0;else if(this.$_prerender)M=P=0,R=$=Math.min(this.prerender,h.length),N=null;else{const G=this.getScroll();if(t){let O=G.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const W=this.buffer;G.start-=W,G.end+=W;let L=0;if(this.$refs.before&&(L=this.$refs.before.scrollHeight,G.start-=L),this.$refs.after){const O=this.$refs.after.scrollHeight;G.end+=O}if(r===null){let O,C=0,k=p-1,D=~~(p/2),B;do B=D,O=g[D].accumulator,O<G.start?C=D:D<p-1&&g[D+1].accumulator>G.start&&(k=D),D=~~((C+k)/2);while(D!==B);for(D<0&&(D=0),M=D,N=g[p-1].accumulator,R=D;R<p&&g[R].accumulator<G.end;R++);for(R===-1?R=h.length-1:(R++,R>p&&(R=p)),P=M;P<p&&L+g[P].accumulator<G.start;P++);for($=P;$<p&&L+g[$].accumulator<G.end;$++);}else{M=~~(G.start/r*o);const O=M%o;M-=O,R=Math.ceil(G.end/r*o),P=Math.max(0,Math.floor((G.start-L)/r*o)),$=Math.floor((G.end-L)/r*o),M<0&&(M=0),R>p&&(R=p),P<0&&(P=0),$>p&&($=p),N=Math.ceil(p/o)*r}}R-M>mye.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let _;const z=M<=this.$_endIndex&&R>=this.$_startIndex;if(z)for(let G=0,W=x.length;G<W;G++)_=x[G],_.nr.used&&(e&&(_.nr.index=E[_.item[d]]),(_.nr.index==null||_.nr.index<M||_.nr.index>=R)&&this.unuseView(_));const j=z?null:new Map;let le,ee,Y;for(let G=M;G<R;G++){le=h[G];const W=d?le[d]:le;if(W==null)throw new Error(`Key is ${W} on item (keyField is '${d}')`);if(_=v.get(W),!r&&!g[G].size){_&&this.unuseView(_);continue}ee=le[f];let L=b.get(ee),O=!1;if(!_)z?L&&L.length?_=L.pop():_=this.addView(x,G,le,W,ee):(Y=j.get(ee)||0,(!L||Y>=L.length)&&(_=this.addView(x,G,le,W,ee),this.unuseView(_,!0),L=b.get(ee)),_=L[Y],j.set(ee,Y+1)),v.delete(_.nr.key),_.nr.used=!0,_.nr.index=G,_.nr.key=W,_.nr.type=ee,v.set(W,_),O=!0;else if(!_.nr.used&&(_.nr.used=!0,O=!0,L)){const C=L.indexOf(_);C!==-1&&L.splice(C,1)}_.item=le,O&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(_.position=g[G-1].accumulator,_.offset=0):(_.position=Math.floor(G/o)*r,_.offset=G%o*s)}return this.$_startIndex=M,this.$_endIndex=R,this.emitUpdate&&this.$emit("update",M,R,P,$),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=a0(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,Ph?{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=a0(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 _ye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Tye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Cye(e,t,r,o,s,c){const f=Go("ResizeObserver"),d=vr("observe-visibility");return at((re(),ve("div",{class:ot(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(re(),ve("div",_ye,[Dt(e.$slots,"before")],512)):Be("v-if",!0),(re(),Ve(Xd(r.listTag),{ref:"wrapper",style:zt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:We(()=>[(re(!0),ve(nt,null,$n(s.pool,h=>(re(),Ve(Xd(r.itemTag),ki({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}]]},W_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:We(()=>[Dt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Dt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(re(),ve("div",Tye,[Dt(e.$slots,"after")],512)):Be("v-if",!0),Ne(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}zp.render=Cye;zp.__file="src/components/RecycleScroller.vue";function Eye(e){const t=ke(()=>hh.value?!1:!it.onlyTests),r=ke(()=>Vn.value===""),o=Ge(Vn.value);hp(()=>Vn.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Vn.value="",h&&e.value?.focus()}function c(h){it.failed=!1,it.success=!1,it.skipped=!1,it.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,g,v,b){Qs.value&&(gn.value.search=h?.trim()??"",gn.value.failed=p,gn.value.success=g,gn.value.skipped=v,gn.value.onlyTests=b)}return xt(()=>[o.value,it.failed,it.success,it.skipped,it.onlyTests],([h,p,g,v,b])=>{d(h,p,g,v,b),Oe.filterNodes()},{flush:"post"}),xt(()=>Dr.value.length,h=>{h&&(gn.value.expandAll=void 0)},{flush:"post"}),{initialized:Qs,filter:it,search:Vn,disableFilter:t,isFiltered:Yw,isFilteredByStatus:hh,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:cf,testsTotal:ZA,uiEntries:Jn}}const Aye=["open"],Lye=rt({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ge(!0);return(r,o)=>(re(),ve("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Dt(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Dt(r.$slots,"default")],40,Aye))}}),Mye={"flex-1":"","ms-2":"","select-none":""},Wc=rt({__name:"FilterStatus",props:da({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue");return(r,o)=>(re(),ve("label",ki({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Gc(s=>t.value=!t.value,["prevent"]))}),[X("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),at(X("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[Yb,t.value]]),X("span",Mye,Pe(e.label),1)],16))}}),Nye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Oye=rt({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(re(),ve("button",Nye,[X("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Rye=["aria-label","data-current"],Pye={key:1,"w-4":""},$ye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Iye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Dye={"text-sm":"",truncate:"","font-light":""},zye=["text","innerHTML"],Fye={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Hye={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Bye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Wye={key:1},qye=rt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=ke(()=>ft.state.idMap.get(e.taskId)),r=ke(()=>{if(gr)return!1;const R=t.value;return R&&yp(R)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Oe.collapseNode(e.taskId):Oe.expandNode(e.taskId)}async function s(R){e.onItemClick?.(R),Os.value&&(Cu.value=!0,await Et()),e.type==="file"?await _p([R.file]):await Xce(R)}function c(R){return ft.rpc.updateSnapshot(R.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(R,N)=>`${e.taskId}-${N}`)),d=ke(()=>{const R=f.value,N=[];return(e.type==="file"||e.type==="suite")&&N.push("min-content"),N.push("min-content"),e.type==="suite"&&e.typecheck&&N.push("min-content"),N.push("minmax(0, 1fr)"),N.push("min-content"),`grid-template-columns: ${R.map(()=>"1rem").join(" ")} ${N.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Xw(e.name)),g=ke(()=>{const R=YA.value,N=p.value;return R?N.replace(R,P=>`<span class="highlight">${P}</span>`):N}),v=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=ke(()=>v.value?"color-red5 dark:color-#f43f5e":null);function E(){const R=t.value;e.type==="file"?e.onItemClick?.(R):px(R)}const M=ke(()=>Qw(e.projectNameColor));return(R,N)=>{const P=vr("tooltip");return t.value?(re(),ve("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:zt(d.value),"aria-label":e.name,"data-current":e.current,onClick:N[2]||(N[2]=$=>o())},[e.indent>0?(re(!0),ve(nt,{key:0},$n(f.value,$=>(re(),ve("div",{key:$,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Be("",!0),e.type==="file"||e.type==="suite"?(re(),ve("div",Pye,[X("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Be("",!0),Ne(a1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",$ye,[e.type==="file"&&e.typecheck?at((re(),ve("div",Iye,null,512)),[[P,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Be("",!0),X("span",Dye,[e.type==="file"&&e.projectName?(re(),ve("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:zt({backgroundColor:e.projectNameColor,color:M.value})},Pe(e.projectName),5)):Be("",!0),X("span",{text:e.state==="fail"?"red-500":"",innerHTML:g.value},null,8,zye)]),typeof e.duration=="number"?(re(),ve("span",Fye,Pe(e.duration>0?e.duration:"< 1")+"ms ",1)):Be("",!0)]),X("div",Hye,[!K(gr)&&r.value?at((re(),Ve(Oye,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:N[0]||(N[0]=Gc($=>c(t.value),["prevent","stop"]))},null,512)),[[P,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Be("",!0),Ne(K(Qi),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",x.value])},{popper:We(()=>[v.value?(re(),ve("div",Bye,[N[5]||(N[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Qe(Pe(b.value)+": this feature is not available, you have disabled ",1),N[3]||(N[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),N[4]||(N[4]=Qe(" in your configuration file.",-1))]),N[6]||(N[6]=X("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(re(),ve("div",Wye,Pe(b.value),1))]),default:We(()=>[Ne(_t,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Gc(E,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),K(gr)?Be("",!0):at((re(),Ve(_t,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:N[1]||(N[1]=Gc($=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[P,h.value,void 0,{bottom:!0}]])])],12,Rye)):Be("",!0)}}}),jye=Ni(qye,[["__scopeId","data-v-58d301d8"]]),Uye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Vye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Gye=["op"],Kye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Xye={"text-red5":""},Yye={"text-yellow5":""},Zye={"text-green5":""},Jye={class:"text-purple5:50"},Qye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},e0e=["disabled"],t0e=["disabled"],n0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},r0e=rt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>ei.value.includeTaskLocation),s=Ge(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:g,disableClearSearch:v,clearAll:b,clearSearch:x,clearFilter:E,filteredFiles:M,testsTotal:R,uiEntries:N}=Eye(s),P=Ge("grid-cols-2"),$=Ge("grid-col-span-2"),_=Ge();return Nw(()=>_.value,([{contentRect:z}])=>{z.width<420?(P.value="grid-cols-2",$.value="grid-col-span-2"):(P.value="grid-cols-4",$.value="grid-col-span-4")}),(z,j)=>{const le=vr("tooltip");return re(),ve("div",{ref_key:"testExplorerRef",ref:_,h:"full",flex:"~ col"},[X("div",null,[X("div",Uye,[Dt(z.$slots,"header",{filteredFiles:K(p)||K(g)?K(M):void 0})]),X("div",Vye,[j[13]||(j[13]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),at(X("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":j[0]||(j[0]=ee=>Mt(d)?d.value=ee:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:K(d).length?"100":"50",onKeydown:[j[1]||(j[1]=ih(ee=>K(x)(!1),["esc"])),j[2]||(j[2]=ih(ee=>r("run",K(p)||K(g)?K(M):void 0),["enter"]))]},null,40,Gye),[[Xb,K(d)]]),at(Ne(_t,{disabled:K(v),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:j[3]||(j[3]=ee=>K(x)(!0))},null,8,["disabled"]),[[le,"Clear search",void 0,{bottom:!0}]])]),X("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(P.value)},[X("div",{class:ot($.value),flex:"~ gap-2 items-center"},[j[14]||(j[14]=X("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),j[15]||(j[15]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),at(Ne(_t,{disabled:K(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:j[4]||(j[4]=ee=>K(E)(!1))},null,8,["disabled"]),[[le,"Clear Filter",void 0,{bottom:!0}]])],2),Ne(Wc,{modelValue:K(f).failed,"onUpdate:modelValue":j[5]||(j[5]=ee=>K(f).failed=ee),label:"Fail"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).success,"onUpdate:modelValue":j[6]||(j[6]=ee=>K(f).success=ee),label:"Pass"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).skipped,"onUpdate:modelValue":j[7]||(j[7]=ee=>K(f).skipped=ee),label:"Skip"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).onlyTests,"onUpdate:modelValue":j[8]||(j[8]=ee=>K(f).onlyTests=ee),label:"Only Tests"},null,8,["modelValue"])],2)]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:j[12]||(j[12]=(...ee)=>K(Bv)&&K(Bv)(...ee))},[Ne(Lye,null,B_({default:We(()=>[(K(p)||K(g))&&K(N).length===0?(re(),ve(nt,{key:0},[K(c)?(re(),ve("div",Qye,[j[18]||(j[18]=X("div",{op30:""}," No matched test ",-1)),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(v)?null:"hover:op100"),disabled:K(v),onClickPassive:j[9]||(j[9]=ee=>K(x)(!0))}," Clear Search ",42,e0e),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(h)?null:"hover:op100"),disabled:K(h),onClickPassive:j[10]||(j[10]=ee=>K(E)(!0))}," Clear Filter ",42,t0e),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:j[11]||(j[11]=(...ee)=>K(b)&&K(b)(...ee))}," Clear All ",32)])):(re(),ve("div",n0e,[...j[19]||(j[19]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(re(),Ve(K(zp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:K(N),buffer:100},{default:We(({item:ee})=>[Ne(jye,{class:ot(["h-28px m-0 p-0",K(po)===ee.id?"bg-active":""]),"task-id":ee.id,expandable:ee.expandable,type:ee.type,current:K(po)===ee.id,indent:ee.indent,name:ee.name,typecheck:ee.typecheck===!0,"project-name":ee.projectName??"","project-name-color":ee.projectNameColor??"",state:ee.state,duration:ee.duration,opened:ee.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[K(c)?{name:"summary",fn:We(()=>[X("div",Kye,[X("span",Xye," FAIL ("+Pe(K(R).failed)+") ",1),j[16]||(j[16]=X("span",null,"/",-1)),X("span",Yye," RUNNING ("+Pe(K(R).running)+") ",1),X("span",Zye," PASS ("+Pe(K(R).success)+") ",1),j[17]||(j[17]=X("span",null,"/",-1)),X("span",Jye," SKIP ("+Pe(K(f).onlyTests?K(R).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),i0e={class:"flex text-lg"},o0e=rt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=ke(()=>ol.value?"light":"dark");async function o(f){Os.value&&(Cu.value=!0,await Et(),go.value&&(Eu(!0),await Et())),f?.length?await _p(f):await Gce()}function s(){Oe.collapseAllNodes()}function c(){Oe.expandAllNodes()}return(f,d)=>{const h=vr("tooltip");return re(),Ve(r0e,{border:"r base","on-item-click":K(mce),nested:!0,onRun:o},{header:We(({filteredFiles:p})=>[d[8]||(d[8]=X("img",{"w-6":"","h-6":"",src:Qve,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",i0e,[at(Ne(_t,{title:"Collapse tests",disabled:!K(Qs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=g=>s())},null,8,["disabled"]),[[ro,!K(sy)],[h,"Collapse tests",void 0,{bottom:!0}]]),at(Ne(_t,{disabled:!K(Qs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=g=>c())},null,8,["disabled"]),[[ro,K(sy)],[h,"Expand tests",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=g=>K(Eu)(!0))},null,512),[[ro,K(mh)&&!K(Os)||!K(Ws)],[h,"Dashboard",void 0,{bottom:!0}]]),K(mh)&&!K(Os)?(re(),Ve(K(Qi),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:We(()=>[...d[6]||(d[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:We(()=>[d[7]||(d[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Be("",!0),K(Os)?at((re(),Ve(_t,{key:1,disabled:K(Cu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=g=>K(vce)())},null,8,["disabled"])),[[ro,!K(go)],[h,"Coverage",void 0,{bottom:!0}]]):Be("",!0),K(Oe).summary.failedSnapshot&&!K(gr)?at((re(),Ve(_t,{key:2,icon:"i-carbon:result-old",disabled:!K(Oe).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=g=>K(Oe).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Be("",!0),K(gr)?Be("",!0):at((re(),Ve(_t,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:g=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),at(Ne(_t,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=g=>K(eme)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),s0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},l0e=rt({__name:"ProgressBar",setup(e){const{width:t}=Ow(),r=ke(()=>[Oe.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ms.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesSuccess/d:0}),s=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesFailed/d:0}),c=ke(()=>Oe.summary.files-Oe.summary.filesFailed-Oe.summary.filesSuccess),f=ke(()=>{const d=Oe.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(re(),ve("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(r.value)},[X("div",s0e,[X("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(r.value),style:zt(`width: ${s.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),a0e=Ni(l0e,[["__scopeId","data-v-5320005b"]]),c0e={"h-screen":"","w-screen":"",overflow:"hidden"},u0e=rt({__name:"index",setup(e){const t=gce(),r=Nc(({panes:g})=>{h(),d(g)},0),o=Nc(({panes:g})=>{g.forEach((v,b)=>{qs.value[b]=v.size}),f(g),p()},0),s=Nc(({panes:g})=>{g.forEach((v,b)=>{co.value[b]=v.size}),d(g),p()},0),c=Nc(({panes:g})=>{f(g),h()},0);function f(g){At.navigation=g[0].size,At.details.size=g[1].size}function d(g){At.details.browser=g[0].size,At.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(re(),ve(nt,null,[Ne(a0e),X("div",c0e,[Ne(K(Gv),{class:"pt-4px",onResized:K(o),onResize:K(c)},{default:We(()=>[Ne(K(Pc),{size:K(qs)[0]},{default:We(()=>[Ne(o0e)]),_:1},8,["size"]),Ne(K(Pc),{size:K(qs)[1]},{default:We(()=>[K(Zn)?(re(),Ve(K(Gv),{id:"details-splitpanes",key:"browser-detail",onResize:K(r),onResized:K(s)},{default:We(()=>[Ne(K(Pc),{size:K(co)[0],"min-size":"10"},{default:We(()=>[v[0]||(Ys(-1,!0),(v[0]=Ne(sue)).cacheIndex=0,Ys(1),v[0])]),_:1},8,["size"]),Ne(K(Pc),{size:K(co)[1]},{default:We(()=>[K(t)?(re(),Ve($y,{key:"summary"})):K(go)?(re(),Ve(Py,{key:"coverage",src:K(Oy)},null,8,["src"])):(re(),Ve(s0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(re(),Ve(HT,{key:"ui-detail"},{default:We(()=>[K(t)?(re(),Ve($y,{key:"summary"})):K(go)?(re(),Ve(Py,{key:"coverage",src:K(Oy)},null,8,["src"])):(re(),Ve(s0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(cue)],64))}}),f0e=[{name:"index",path:"/",component:u0e,props:!0}];/*!
* vue-router v4.6.3
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Ls=typeof document<"u";function k1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function d0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&k1(e.default)}const bt=Object.assign;function Hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=zr(s)?s.map(e):e(s)}return r}const la=()=>{},zr=Array.isArray;function c0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const S1=/#/g,h0e=/&/g,p0e=/\//g,g0e=/=/g,m0e=/\?/g,_1=/\+/g,v0e=/%5B/g,y0e=/%5D/g,T1=/%5E/g,b0e=/%60/g,C1=/%7B/g,w0e=/%7C/g,E1=/%7D/g,x0e=/%20/g;function Fp(e){return e==null?"":encodeURI(""+e).replace(w0e,"|").replace(v0e,"[").replace(y0e,"]")}function k0e(e){return Fp(e).replace(C1,"{").replace(E1,"}").replace(T1,"^")}function $h(e){return Fp(e).replace(_1,"%2B").replace(x0e,"+").replace(S1,"%23").replace(h0e,"%26").replace(b0e,"`").replace(C1,"{").replace(E1,"}").replace(T1,"^")}function S0e(e){return $h(e).replace(g0e,"%3D")}function _0e(e){return Fp(e).replace(S1,"%23").replace(m0e,"%3F")}function T0e(e){return _0e(e).replace(p0e,"%2F")}function Na(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const C0e=/\/$/,E0e=e=>e.replace(C0e,"");function Bd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=N0e(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Na(f)}}function A0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function u0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function L0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&rl(t.matched[o],r.matched[s])&&A1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function rl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function A1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!M0e(e[r],t[r]))return!1;return!0}function M0e(e,t){return zr(e)?f0(e,t):zr(t)?f0(t,e):e===t}function f0(e,t){return zr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function N0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Gi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ih=(function(e){return e.pop="pop",e.push="push",e})({}),Wd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function O0e(e){if(!e)if(Ls){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),E0e(e)}const R0e=/^[^#]+#/;function P0e(e,t){return e.replace(R0e,"#")+t}function $0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const gf=()=>({left:window.scrollX,top:window.scrollY});function I0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=$0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function d0(e,t){return(history.state?history.state.position-t:-1)+e}const Dh=new Map;function D0e(e,t){Dh.set(e,t)}function z0e(e){const t=Dh.get(e);return Dh.delete(e),t}function F0e(e){return typeof e=="string"||e&&typeof e=="object"}function L1(e){return typeof e=="string"||typeof e=="symbol"}let qt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const M1=Symbol("");qt.MATCHER_NOT_FOUND+"",qt.NAVIGATION_GUARD_REDIRECT+"",qt.NAVIGATION_ABORTED+"",qt.NAVIGATION_CANCELLED+"",qt.NAVIGATION_DUPLICATED+"";function il(e,t){return bt(new Error,{type:e,[M1]:!0},t)}function pi(e,t){return e instanceof Error&&M1 in e&&(t==null||!!(e.type&t))}const H0e=["params","query","hash"];function B0e(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of H0e)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function W0e(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const s=r[o].replace(_1," "),c=s.indexOf("="),f=Na(c<0?s:s.slice(0,c)),d=c<0?null:Na(s.slice(c+1));if(f in t){let h=t[f];zr(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function h0(e){let t="";for(let r in e){const o=e[r];if(r=S0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(zr(o)?o.map(s=>s&&$h(s)):[o&&$h(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function q0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=zr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const j0e=Symbol(""),p0=Symbol(""),Hp=Symbol(""),N1=Symbol(""),zh=Symbol("");function jl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function no(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(il(qt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):F0e(b)?h(il(qt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},g=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function qd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(k1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(no(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=d0e(g)?g.default:g;f.mods[d]=g,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&no(b,r,o,f,d,s)()}))}}return c}function U0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>rl(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>rl(p,h))||s.push(h))}return[r,o,s]}/*!
* vue-router v4.6.3
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let V0e=()=>location.protocol+"//"+location.host;function O1(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),u0(d,"")}return u0(r,e)+o+s}function G0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=O1(e,location),E=r.value,M=t.value;let R=0;if(b){if(r.value=x,t.value=b,f&&f===E){f=null;return}R=M?b.position-M.position:0}else o(x);s.forEach(N=>{N(r.value,E,{delta:R,type:Ih.pop,direction:R?R>0?Wd.forward:Wd.back:Wd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(x),x}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:gf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function g0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?gf():null}}function K0e(e){const{history:t,location:r}=window,o={value:O1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:V0e()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[g?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,g0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:gf()});c(g.current,g,!0),c(h,bt({},g0(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function X0e(e){e=O0e(e);const t=K0e(e),r=G0e(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:P0e.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 Y0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),X0e(e)}let Wo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(rn||{});const Z0e={type:Wo.Static,value:""},J0e=/[a-zA-Z0-9_]/;function Q0e(e){if(!e)return[[]];if(e==="/")return[[Z0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=rn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===rn.Static?c.push({type:Wo.Static,value:p}):r===rn.Param||r===rn.ParamRegExp||r===rn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Wo.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==rn.ParamRegExp){o=r,r=rn.EscapeNext;continue}switch(r){case rn.Static:h==="/"?(p&&v(),f()):h===":"?(v(),r=rn.Param):b();break;case rn.EscapeNext:b(),r=o;break;case rn.Param:h==="("?r=rn.ParamRegExp:J0e.test(h)?b():(v(),r=rn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case rn.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:r=rn.ParamRegExpEnd:g+=h;break;case rn.ParamRegExpEnd:v(),r=rn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,g="";break;default:t("Unknown state");break}}return r===rn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),f(),s}const m0="[^/]+?",ebe={sensitive:!1,strict:!1,start:!0,end:!0};var On=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(On||{});const tbe=/[.+*?^${}()[\]/\\]/g;function nbe(e,t){const r=bt({},ebe,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const g=p.length?[]:[On.Root];r.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const b=p[v];let x=On.Segment+(r.sensitive?On.BonusCaseSensitive:0);if(b.type===Wo.Static)v||(s+="/"),s+=b.value.replace(tbe,"\\$&"),x+=On.Static;else if(b.type===Wo.Param){const{value:E,repeatable:M,optional:R,regexp:N}=b;c.push({name:E,repeatable:M,optional:R});const P=N||m0;if(P!==m0){x+=On.BonusCustomRegExp;try{`${P}`}catch(_){throw new Error(`Invalid custom RegExp for param "${E}" (${P}): `+_.message)}}let $=M?`((?:${P})(?:/(?:${P}))*)`:`(${P})`;v||($=R&&p.length<2?`(?:/${$})`:"/"+$),R&&($+="?"),s+=$,x+=On.Dynamic,R&&(x+=On.BonusOptional),M&&(x+=On.BonusRepeatable),P===".*"&&(x+=On.BonusWildcard)}g.push(x)}o.push(g)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=On.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const g=p.match(f),v={};if(!g)return null;for(let b=1;b<g.length;b++){const x=g[b]||"",E=c[b-1];v[E.name]=x&&E.repeatable?x.split("/"):x}return v}function h(p){let g="",v=!1;for(const b of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const x of b)if(x.type===Wo.Static)g+=x.value;else if(x.type===Wo.Param){const{value:E,repeatable:M,optional:R}=x,N=E in p?p[E]:"";if(zr(N)&&!M)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const P=zr(N)?N.join("/"):N;if(!P)if(R)b.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${E}"`);g+=P}}return g||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function rbe(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===On.Static+On.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===On.Static+On.Segment?1:-1:0}function R1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=rbe(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(v0(o))return 1;if(v0(s))return-1}return s.length-o.length}function v0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ibe={strict:!1,end:!0,sensitive:!1};function obe(e,t,r){const o=nbe(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 sbe(e,t){const r=[],o=new Map;t=c0(ibe,t);function s(v){return o.get(v)}function c(v,b,x){const E=!x,M=b0(v);M.aliasOf=x&&x.record;const R=c0(t,v),N=[M];if("alias"in v){const _=typeof v.alias=="string"?[v.alias]:v.alias;for(const z of _)N.push(b0(bt({},M,{components:x?x.record.components:M.components,path:z,aliasOf:x?x.record:M})))}let P,$;for(const _ of N){const{path:z}=_;if(b&&z[0]!=="/"){const j=b.record.path,le=j[j.length-1]==="/"?"":"/";_.path=b.record.path+(z&&le+z)}if(P=obe(_,b,R),x?x.alias.push(P):($=$||P,$!==P&&$.alias.push(P),E&&v.name&&!w0(P)&&f(v.name)),P1(P)&&h(P),M.children){const j=M.children;for(let le=0;le<j.length;le++)c(j[le],P,x&&x.children[le])}x=x||P}return $?()=>{f($)}:la}function f(v){if(L1(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=cbe(v,r);r.splice(b,0,v),v.record.name&&!w0(v)&&o.set(v.record.name,v)}function p(v,b){let x,E={},M,R;if("name"in v&&v.name){if(x=o.get(v.name),!x)throw il(qt.MATCHER_NOT_FOUND,{location:v});R=x.record.name,E=bt(y0(b.params,x.keys.filter($=>!$.optional).concat(x.parent?x.parent.keys.filter($=>$.optional):[]).map($=>$.name)),v.params&&y0(v.params,x.keys.map($=>$.name))),M=x.stringify(E)}else if(v.path!=null)M=v.path,x=r.find($=>$.re.test(M)),x&&(E=x.parse(M),R=x.record.name);else{if(x=b.name?o.get(b.name):r.find($=>$.re.test(b.path)),!x)throw il(qt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});R=x.record.name,E=bt({},b.params,v.params),M=x.stringify(E)}const N=[];let P=x;for(;P;)N.unshift(P.record),P=P.parent;return{name:R,path:M,params:E,matched:N,meta:abe(N)}}e.forEach(v=>c(v));function g(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function y0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function b0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:lbe(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 lbe(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 w0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function abe(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function cbe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;R1(e,t[c])<0?o=c:r=c+1}const s=ube(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function ube(e){let t=e;for(;t=t.parent;)if(P1(t)&&R1(e,t)===0)return t}function P1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function x0(e){const t=pn(Hp),r=pn(N1),o=ke(()=>{const h=K(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],v=r.matched;if(!g||!v.length)return-1;const b=v.findIndex(rl.bind(null,g));if(b>-1)return b;const x=k0(h[p-2]);return p>1&&k0(g)===x&&v[v.length-1].path!==x?v.findIndex(rl.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&gbe(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&A1(r.params,o.value.params));function d(h={}){if(pbe(h)){const p=t[K(e.replace)?"replace":"push"](K(e.to)).catch(la);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function fbe(e){return e.length===1?e[0]:e}const dbe=rt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:x0,setup(e,{slots:t}){const r=ir(x0(e)),{options:o}=pn(Hp),s=ke(()=>({[S0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[S0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&fbe(t.default(r));return e.custom?c:za("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),hbe=dbe;function pbe(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 gbe(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!zr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function k0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const S0=(e,t,r)=>e??t??r,mbe=rt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=pn(zh),s=ke(()=>e.route||o.value),c=pn(p0,0),f=ke(()=>{let p=K(c);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);dr(p0,ke(()=>f.value+1)),dr(j0e,d),dr(zh,s);const h=Ge();return xt(()=>[h.value,d.value,e.name],([p,g,v],[b,x,E])=>{g&&(g.instances[v]=p,x&&x!==g&&p&&p===b&&(g.leaveGuards.size||(g.leaveGuards=x.leaveGuards),g.updateGuards.size||(g.updateGuards=x.updateGuards))),p&&g&&(!x||!rl(g,x)||!b)&&(g.enterCallbacks[v]||[]).forEach(M=>M(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=d.value,b=v&&v.components[g];if(!b)return _0(r.default,{Component:b,route:p});const x=v.props[g],E=x?x===!0?p.params:typeof x=="function"?x(p):x:null,R=za(b,bt({},E,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return _0(r.default,{Component:R,route:p})||R}}});function _0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const vbe=mbe;function ybe(e){const t=sbe(e.routes,e),r=e.parseQuery||W0e,o=e.stringifyQuery||h0,s=e.history,c=jl(),f=jl(),d=jl(),h=Ft(Gi);let p=Gi;Ls&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Hd.bind(null,F=>""+F),v=Hd.bind(null,T0e),b=Hd.bind(null,Na);function x(F,Z){let ne,se;return L1(F)?(ne=t.getRecordMatcher(F),se=Z):se=F,t.addRoute(se,ne)}function E(F){const Z=t.getRecordMatcher(F);Z&&t.removeRoute(Z)}function M(){return t.getRoutes().map(F=>F.record)}function R(F){return!!t.getRecordMatcher(F)}function N(F,Z){if(Z=bt({},Z||h.value),typeof F=="string"){const Q=Bd(r,F,Z.path),he=t.resolve({path:Q.path},Z),de=s.createHref(Q.fullPath);return bt(Q,he,{params:b(he.params),hash:Na(Q.hash),redirectedFrom:void 0,href:de})}let ne;if(F.path!=null)ne=bt({},F,{path:Bd(r,F.path,Z.path).path});else{const Q=bt({},F.params);for(const he in Q)Q[he]==null&&delete Q[he];ne=bt({},F,{params:v(Q)}),Z.params=v(Z.params)}const se=t.resolve(ne,Z),ce=F.hash||"";se.params=g(b(se.params));const I=A0e(o,bt({},F,{hash:k0e(ce),path:se.path})),q=s.createHref(I);return bt({fullPath:I,hash:ce,query:o===h0?q0e(F.query):F.query||{}},se,{redirectedFrom:void 0,href:q})}function P(F){return typeof F=="string"?Bd(r,F,h.value.path):bt({},F)}function $(F,Z){if(p!==F)return il(qt.NAVIGATION_CANCELLED,{from:Z,to:F})}function _(F){return le(F)}function z(F){return _(bt(P(F),{replace:!0}))}function j(F,Z){const ne=F.matched[F.matched.length-1];if(ne&&ne.redirect){const{redirect:se}=ne;let ce=typeof se=="function"?se(F,Z):se;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=P(ce):{path:ce},ce.params={}),bt({query:F.query,hash:F.hash,params:ce.path!=null?{}:F.params},ce)}}function le(F,Z){const ne=p=N(F),se=h.value,ce=F.state,I=F.force,q=F.replace===!0,Q=j(ne,se);if(Q)return le(bt(P(Q),{state:typeof Q=="object"?bt({},ce,Q.state):ce,force:I,replace:q}),Z||ne);const he=ne;he.redirectedFrom=Z;let de;return!I&&L0e(o,se,ne)&&(de=il(qt.NAVIGATION_DUPLICATED,{to:he,from:se}),He(se,se,!0,!1)),(de?Promise.resolve(de):G(he,se)).catch(ge=>pi(ge)?pi(ge,qt.NAVIGATION_GUARD_REDIRECT)?ge:Se(ge):ae(ge,he,se)).then(ge=>{if(ge){if(pi(ge,qt.NAVIGATION_GUARD_REDIRECT))return le(bt({replace:q},P(ge.to),{state:typeof ge.to=="object"?bt({},ce,ge.to.state):ce,force:I}),Z||he)}else ge=L(he,se,!0,q,ce);return W(he,se,ge),ge})}function ee(F,Z){const ne=$(F,Z);return ne?Promise.reject(ne):Promise.resolve()}function Y(F){const Z=je.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function G(F,Z){let ne;const[se,ce,I]=U0e(F,Z);ne=qd(se.reverse(),"beforeRouteLeave",F,Z);for(const Q of se)Q.leaveGuards.forEach(he=>{ne.push(no(he,F,Z))});const q=ee.bind(null,F,Z);return ne.push(q),Re(ne).then(()=>{ne=[];for(const Q of c.list())ne.push(no(Q,F,Z));return ne.push(q),Re(ne)}).then(()=>{ne=qd(ce,"beforeRouteUpdate",F,Z);for(const Q of ce)Q.updateGuards.forEach(he=>{ne.push(no(he,F,Z))});return ne.push(q),Re(ne)}).then(()=>{ne=[];for(const Q of I)if(Q.beforeEnter)if(zr(Q.beforeEnter))for(const he of Q.beforeEnter)ne.push(no(he,F,Z));else ne.push(no(Q.beforeEnter,F,Z));return ne.push(q),Re(ne)}).then(()=>(F.matched.forEach(Q=>Q.enterCallbacks={}),ne=qd(I,"beforeRouteEnter",F,Z,Y),ne.push(q),Re(ne))).then(()=>{ne=[];for(const Q of f.list())ne.push(no(Q,F,Z));return ne.push(q),Re(ne)}).catch(Q=>pi(Q,qt.NAVIGATION_CANCELLED)?Q:Promise.reject(Q))}function W(F,Z,ne){d.list().forEach(se=>Y(()=>se(F,Z,ne)))}function L(F,Z,ne,se,ce){const I=$(F,Z);if(I)return I;const q=Z===Gi,Q=Ls?history.state:{};ne&&(se||q?s.replace(F.fullPath,bt({scroll:q&&Q&&Q.scroll},ce)):s.push(F.fullPath,ce)),h.value=F,He(F,Z,ne,q),Se()}let O;function C(){O||(O=s.listen((F,Z,ne)=>{if(!Fe.listening)return;const se=N(F),ce=j(se,Fe.currentRoute.value);if(ce){le(bt(ce,{replace:!0,force:!0}),se).catch(la);return}p=se;const I=h.value;Ls&&D0e(d0(I.fullPath,ne.delta),gf()),G(se,I).catch(q=>pi(q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_CANCELLED)?q:pi(q,qt.NAVIGATION_GUARD_REDIRECT)?(le(bt(P(q.to),{force:!0}),se).then(Q=>{pi(Q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&!ne.delta&&ne.type===Ih.pop&&s.go(-1,!1)}).catch(la),Promise.reject()):(ne.delta&&s.go(-ne.delta,!1),ae(q,se,I))).then(q=>{q=q||L(se,I,!1),q&&(ne.delta&&!pi(q,qt.NAVIGATION_CANCELLED)?s.go(-ne.delta,!1):ne.type===Ih.pop&&pi(q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),W(se,I,q)}).catch(la)}))}let k=jl(),D=jl(),B;function ae(F,Z,ne){Se(F);const se=D.list();return se.length?se.forEach(ce=>ce(F,Z,ne)):console.error(F),Promise.reject(F)}function be(){return B&&h.value!==Gi?Promise.resolve():new Promise((F,Z)=>{k.add([F,Z])})}function Se(F){return B||(B=!F,C(),k.list().forEach(([Z,ne])=>F?ne(F):Z()),k.reset()),F}function He(F,Z,ne,se){const{scrollBehavior:ce}=e;if(!Ls||!ce)return Promise.resolve();const I=!ne&&z0e(d0(F.fullPath,0))||(se||!ne)&&history.state&&history.state.scroll||null;return Et().then(()=>ce(F,Z,I)).then(q=>q&&I0e(q)).catch(q=>ae(q,F,Z))}const Ae=F=>s.go(F);let Ke;const je=new Set,Fe={currentRoute:h,listening:!0,addRoute:x,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:M,resolve:N,options:e,push:_,replace:z,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:D.add,isReady:be,install(F){F.component("RouterLink",hbe),F.component("RouterView",vbe),F.config.globalProperties.$router=Fe,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>K(h)}),Ls&&!Ke&&h.value===Gi&&(Ke=!0,_(s.location).catch(se=>{}));const Z={};for(const se in Gi)Object.defineProperty(Z,se,{get:()=>h.value[se],enumerable:!0});F.provide(Hp,Fe),F.provide(N1,Gh(Z)),F.provide(zh,h);const ne=F.unmount;je.add(F),F.unmount=function(){je.delete(F),je.size<1&&(p=Gi,O&&O(),O=null,h.value=Gi,Ke=!1,B=!1),ne()}}};function Re(F){return F.reduce((Z,ne)=>Z.then(()=>Y(ne)),Promise.resolve())}return Fe}const bbe={tooltip:hE};bw.options.instantMove=!0;bw.options.distance=10;function wbe(){return ybe({history:Y0e(),routes:f0e})}const xbe=[wbe],Bp=Jb(mC);xbe.forEach(e=>{Bp.use(e())});Object.entries(bbe).forEach(([e,t])=>{Bp.directive(e,t)});Bp.mount("#app");