@vitest/browser 0.31.0 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ var c$=Object.defineProperty;var f$=(e,t,r)=>t in e?c$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fi=(e,t,r)=>(f$(e,typeof t!="symbol"?t+"":t,r),r);function h$(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(i,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();function R0(e,t){const r=Object.create(null),i=e.split(",");for(let o=0;o<i.length;o++)r[i[o]]=!0;return t?o=>!!r[o.toLowerCase()]:o=>!!r[o]}const _t={},Go=[],_n=()=>{},d$=()=>!1,p$=/^on[^a-z]/,Xf=e=>p$.test(e),M0=e=>e.startsWith("onUpdate:"),Vt=Object.assign,z0=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},g$=Object.prototype.hasOwnProperty,at=(e,t)=>g$.call(e,t),Me=Array.isArray,Ko=e=>Qf(e)==="[object Map]",RA=e=>Qf(e)==="[object Set]",Ve=e=>typeof e=="function",Wt=e=>typeof e=="string",U0=e=>typeof e=="symbol",Et=e=>e!==null&&typeof e=="object",MA=e=>Et(e)&&Ve(e.then)&&Ve(e.catch),zA=Object.prototype.toString,Qf=e=>zA.call(e),v$=e=>Qf(e).slice(8,-1),UA=e=>Qf(e)==="[object Object]",H0=e=>Wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xc=R0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yf=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},m$=/-(\w)/g,Qn=Yf(e=>e.replace(m$,(t,r)=>r?r.toUpperCase():"")),y$=/\B([A-Z])/g,to=Yf(e=>e.replace(y$,"-$1").toLowerCase()),Zf=Yf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vd=Yf(e=>e?`on${Zf(e)}`:""),Iu=(e,t)=>!Object.is(e,t),Qc=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},pf=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Tp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},HA=e=>{const t=Wt(e)?Number(e):NaN;return isNaN(t)?e:t};let d1;const kp=()=>d1||(d1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zr(e){if(Me(e)){const t={};for(let r=0;r<e.length;r++){const i=e[r],o=Wt(i)?A$(i):zr(i);if(o)for(const a in o)t[a]=o[a]}return t}else{if(Wt(e))return e;if(Et(e))return e}}const b$=/;(?![^(]*\))/g,w$=/:([^]+)/,D$=new RegExp("\\/\\*.*?\\*\\/","gs");function A$(e){const t={};return e.replace(D$,"").split(b$).forEach(r=>{if(r){const i=r.split(w$);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function yt(e){let t="";if(Wt(e))t=e;else if(Me(e))for(let r=0;r<e.length;r++){const i=yt(e[r]);i&&(t+=i+" ")}else if(Et(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const E$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",x$=R0(E$);function qA(e){return!!e||e===""}const Je=e=>Wt(e)?e:e==null?"":Me(e)||Et(e)&&(e.toString===zA||!Ve(e.toString))?JSON.stringify(e,jA,2):String(e),jA=(e,t)=>t&&t.__v_isRef?jA(e,t.value):Ko(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,o])=>(r[`${i} =>`]=o,r),{})}:RA(t)?{[`Set(${t.size})`]:[...t.values()]}:Et(t)&&!Me(t)&&!UA(t)?String(t):t;let Gr;class C${constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Gr,!t&&Gr&&(this.index=(Gr.scopes||(Gr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Gr;try{return Gr=this,t()}finally{Gr=r}}}on(){Gr=this}off(){Gr=this.parent}stop(t){if(this._active){let r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.scopes)for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function _$(e,t=Gr){t&&t.active&&t.effects.push(e)}function VA(){return Gr}function S$(e){Gr&&Gr.cleanups.push(e)}const q0=e=>{const t=new Set(e);return t.w=0,t.n=0,t},WA=e=>(e.w&fs)>0,GA=e=>(e.n&fs)>0,F$=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=fs},$$=e=>{const{deps:t}=e;if(t.length){let r=0;for(let i=0;i<t.length;i++){const o=t[i];WA(o)&&!GA(o)?o.delete(e):t[r++]=o,o.w&=~fs,o.n&=~fs}t.length=r}},gf=new WeakMap;let xu=0,fs=1;const Lp=30;let Dn;const Ws=Symbol(""),Bp=Symbol("");class j0{constructor(t,r=null,i){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,_$(this,i)}run(){if(!this.active)return this.fn();let t=Dn,r=us;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Dn,Dn=this,us=!0,fs=1<<++xu,xu<=Lp?F$(this):p1(this),this.fn()}finally{xu<=Lp&&$$(this),fs=1<<--xu,Dn=this.parent,us=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Dn===this?this.deferStop=!0:this.active&&(p1(this),this.onStop&&this.onStop(),this.active=!1)}}function p1(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let us=!0;const KA=[];function Aa(){KA.push(us),us=!1}function Ea(){const e=KA.pop();us=e===void 0?!0:e}function qr(e,t,r){if(us&&Dn){let i=gf.get(e);i||gf.set(e,i=new Map);let o=i.get(r);o||i.set(r,o=q0()),XA(o)}}function XA(e,t){let r=!1;xu<=Lp?GA(e)||(e.n|=fs,r=!WA(e)):r=!e.has(Dn),r&&(e.add(Dn),Dn.deps.push(e))}function xi(e,t,r,i,o,a){const c=gf.get(e);if(!c)return;let h=[];if(t==="clear")h=[...c.values()];else if(r==="length"&&Me(e)){const d=Number(i);c.forEach((p,g)=>{(g==="length"||g>=d)&&h.push(p)})}else switch(r!==void 0&&h.push(c.get(r)),t){case"add":Me(e)?H0(r)&&h.push(c.get("length")):(h.push(c.get(Ws)),Ko(e)&&h.push(c.get(Bp)));break;case"delete":Me(e)||(h.push(c.get(Ws)),Ko(e)&&h.push(c.get(Bp)));break;case"set":Ko(e)&&h.push(c.get(Ws));break}if(h.length===1)h[0]&&Op(h[0]);else{const d=[];for(const p of h)p&&d.push(...p);Op(q0(d))}}function Op(e,t){const r=Me(e)?e:[...e];for(const i of r)i.computed&&g1(i);for(const i of r)i.computed||g1(i)}function g1(e,t){(e!==Dn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function T$(e,t){var r;return(r=gf.get(e))==null?void 0:r.get(t)}const k$=R0("__proto__,__v_isRef,__isVue"),QA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(U0)),L$=V0(),B$=V0(!1,!0),O$=V0(!0),v1=P$();function P$(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const i=ut(this);for(let a=0,c=this.length;a<c;a++)qr(i,"get",a+"");const o=i[t](...r);return o===-1||o===!1?i[t](...r.map(ut)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Aa();const i=ut(this)[t].apply(this,r);return Ea(),i}}),e}function N$(e){const t=ut(this);return qr(t,"has",e),t.hasOwnProperty(e)}function V0(e=!1,t=!1){return function(i,o,a){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&a===(e?t?Z$:tE:t?eE:JA).get(i))return i;const c=Me(i);if(!e){if(c&&at(v1,o))return Reflect.get(v1,o,a);if(o==="hasOwnProperty")return N$}const h=Reflect.get(i,o,a);return(U0(o)?QA.has(o):k$(o))||(e||qr(i,"get",o),t)?h:Ot(h)?c&&H0(o)?h:h.value:Et(h)?e?eh(h):Yr(h):h}}const I$=YA(),R$=YA(!0);function YA(e=!1){return function(r,i,o,a){let c=r[i];if(oa(c)&&Ot(c)&&!Ot(o))return!1;if(!e&&(!vf(o)&&!oa(o)&&(c=ut(c),o=ut(o)),!Me(r)&&Ot(c)&&!Ot(o)))return c.value=o,!0;const h=Me(r)&&H0(i)?Number(i)<r.length:at(r,i),d=Reflect.set(r,i,o,a);return r===ut(a)&&(h?Iu(o,c)&&xi(r,"set",i,o):xi(r,"add",i,o)),d}}function M$(e,t){const r=at(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&r&&xi(e,"delete",t,void 0),i}function z$(e,t){const r=Reflect.has(e,t);return(!U0(t)||!QA.has(t))&&qr(e,"has",t),r}function U$(e){return qr(e,"iterate",Me(e)?"length":Ws),Reflect.ownKeys(e)}const ZA={get:L$,set:I$,deleteProperty:M$,has:z$,ownKeys:U$},H$={get:O$,set(e,t){return!0},deleteProperty(e,t){return!0}},q$=Vt({},ZA,{get:B$,set:R$}),W0=e=>e,Jf=e=>Reflect.getPrototypeOf(e);function vc(e,t,r=!1,i=!1){e=e.__v_raw;const o=ut(e),a=ut(t);r||(t!==a&&qr(o,"get",t),qr(o,"get",a));const{has:c}=Jf(o),h=i?W0:r?Q0:Ru;if(c.call(o,t))return h(e.get(t));if(c.call(o,a))return h(e.get(a));e!==o&&e.get(t)}function mc(e,t=!1){const r=this.__v_raw,i=ut(r),o=ut(e);return t||(e!==o&&qr(i,"has",e),qr(i,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function yc(e,t=!1){return e=e.__v_raw,!t&&qr(ut(e),"iterate",Ws),Reflect.get(e,"size",e)}function m1(e){e=ut(e);const t=ut(this);return Jf(t).has.call(t,e)||(t.add(e),xi(t,"add",e,e)),this}function y1(e,t){t=ut(t);const r=ut(this),{has:i,get:o}=Jf(r);let a=i.call(r,e);a||(e=ut(e),a=i.call(r,e));const c=o.call(r,e);return r.set(e,t),a?Iu(t,c)&&xi(r,"set",e,t):xi(r,"add",e,t),this}function b1(e){const t=ut(this),{has:r,get:i}=Jf(t);let o=r.call(t,e);o||(e=ut(e),o=r.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return o&&xi(t,"delete",e,void 0),a}function w1(){const e=ut(this),t=e.size!==0,r=e.clear();return t&&xi(e,"clear",void 0,void 0),r}function bc(e,t){return function(i,o){const a=this,c=a.__v_raw,h=ut(c),d=t?W0:e?Q0:Ru;return!e&&qr(h,"iterate",Ws),c.forEach((p,g)=>i.call(o,d(p),d(g),a))}}function wc(e,t,r){return function(...i){const o=this.__v_raw,a=ut(o),c=Ko(a),h=e==="entries"||e===Symbol.iterator&&c,d=e==="keys"&&c,p=o[e](...i),g=r?W0:t?Q0:Ru;return!t&&qr(a,"iterate",d?Bp:Ws),{next(){const{value:y,done:m}=p.next();return m?{value:y,done:m}:{value:h?[g(y[0]),g(y[1])]:g(y),done:m}},[Symbol.iterator](){return this}}}}function Xi(e){return function(...t){return e==="delete"?!1:this}}function j$(){const e={get(a){return vc(this,a)},get size(){return yc(this)},has:mc,add:m1,set:y1,delete:b1,clear:w1,forEach:bc(!1,!1)},t={get(a){return vc(this,a,!1,!0)},get size(){return yc(this)},has:mc,add:m1,set:y1,delete:b1,clear:w1,forEach:bc(!1,!0)},r={get(a){return vc(this,a,!0)},get size(){return yc(this,!0)},has(a){return mc.call(this,a,!0)},add:Xi("add"),set:Xi("set"),delete:Xi("delete"),clear:Xi("clear"),forEach:bc(!0,!1)},i={get(a){return vc(this,a,!0,!0)},get size(){return yc(this,!0)},has(a){return mc.call(this,a,!0)},add:Xi("add"),set:Xi("set"),delete:Xi("delete"),clear:Xi("clear"),forEach:bc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=wc(a,!1,!1),r[a]=wc(a,!0,!1),t[a]=wc(a,!1,!0),i[a]=wc(a,!0,!0)}),[e,r,t,i]}const[V$,W$,G$,K$]=j$();function G0(e,t){const r=t?e?K$:G$:e?W$:V$;return(i,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(at(r,o)&&o in i?r:i,o,a)}const X$={get:G0(!1,!1)},Q$={get:G0(!1,!0)},Y$={get:G0(!0,!1)},JA=new WeakMap,eE=new WeakMap,tE=new WeakMap,Z$=new WeakMap;function J$(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function eT(e){return e.__v_skip||!Object.isExtensible(e)?0:J$(v$(e))}function Yr(e){return oa(e)?e:K0(e,!1,ZA,X$,JA)}function tT(e){return K0(e,!1,q$,Q$,eE)}function eh(e){return K0(e,!0,H$,Y$,tE)}function K0(e,t,r,i,o){if(!Et(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const c=eT(e);if(c===0)return e;const h=new Proxy(e,c===2?i:r);return o.set(e,h),h}function Xo(e){return oa(e)?Xo(e.__v_raw):!!(e&&e.__v_isReactive)}function oa(e){return!!(e&&e.__v_isReadonly)}function vf(e){return!!(e&&e.__v_isShallow)}function rE(e){return Xo(e)||oa(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function X0(e){return pf(e,"__v_skip",!0),e}const Ru=e=>Et(e)?Yr(e):e,Q0=e=>Et(e)?eh(e):e;function Y0(e){us&&Dn&&(e=ut(e),XA(e.dep||(e.dep=q0())))}function Z0(e,t){e=ut(e);const r=e.dep;r&&Op(r)}function Ot(e){return!!(e&&e.__v_isRef===!0)}function Xe(e){return nE(e,!1)}function xa(e){return nE(e,!0)}function nE(e,t){return Ot(e)?e:new rT(e,t)}class rT{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ut(t),this._value=r?t:Ru(t)}get value(){return Y0(this),this._value}set value(t){const r=this.__v_isShallow||vf(t)||oa(t);t=r?t:ut(t),Iu(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Ru(t),Z0(this))}}function Y(e){return Ot(e)?e.value:e}const nT={get:(e,t,r)=>Y(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const o=e[t];return Ot(o)&&!Ot(r)?(o.value=r,!0):Reflect.set(e,t,r,i)}};function iE(e){return Xo(e)?e:new Proxy(e,nT)}class iT{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:i}=t(()=>Y0(this),()=>Z0(this));this._get=r,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function sT(e){return new iT(e)}function oT(e){const t=Me(e)?new Array(e.length):{};for(const r in e)t[r]=sE(e,r);return t}class aT{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return T$(ut(this._object),this._key)}}class uT{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function J0(e,t,r){return Ot(e)?e:Ve(e)?new uT(e):Et(e)&&arguments.length>1?sE(e,t,r):Xe(e)}function sE(e,t,r){const i=e[t];return Ot(i)?i:new aT(e,t,r)}class lT{constructor(t,r,i,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new j0(t,()=>{this._dirty||(this._dirty=!0,Z0(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=ut(this);return Y0(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function cT(e,t,r=!1){let i,o;const a=Ve(e);return a?(i=e,o=_n):(i=e.get,o=e.set),new lT(i,o,a||!o,r)}function ls(e,t,r,i){let o;try{o=i?e(...i):e()}catch(a){rl(a,t,r)}return o}function ln(e,t,r,i){if(Ve(e)){const a=ls(e,t,r,i);return a&&MA(a)&&a.catch(c=>{rl(c,t,r)}),a}const o=[];for(let a=0;a<e.length;a++)o.push(ln(e[a],t,r,i));return o}function rl(e,t,r,i=!0){const o=t?t.vnode:null;if(t){let a=t.parent;const c=t.proxy,h=r;for(;a;){const p=a.ec;if(p){for(let g=0;g<p.length;g++)if(p[g](e,c,h)===!1)return}a=a.parent}const d=t.appContext.config.errorHandler;if(d){ls(d,null,10,[e,c,h]);return}}fT(e,r,o,i)}function fT(e,t,r,i=!0){console.error(e)}let Mu=!1,Pp=!1;const vr=[];let Hn=0;const Qo=[];let vi=null,Ns=0;const oE=Promise.resolve();let eg=null;function Ci(e){const t=eg||oE;return e?t.then(this?e.bind(this):e):t}function hT(e){let t=Hn+1,r=vr.length;for(;t<r;){const i=t+r>>>1;zu(vr[i])<e?t=i+1:r=i}return t}function tg(e){(!vr.length||!vr.includes(e,Mu&&e.allowRecurse?Hn+1:Hn))&&(e.id==null?vr.push(e):vr.splice(hT(e.id),0,e),aE())}function aE(){!Mu&&!Pp&&(Pp=!0,eg=oE.then(cE))}function dT(e){const t=vr.indexOf(e);t>Hn&&vr.splice(t,1)}function uE(e){Me(e)?Qo.push(...e):(!vi||!vi.includes(e,e.allowRecurse?Ns+1:Ns))&&Qo.push(e),aE()}function D1(e,t=Mu?Hn+1:0){for(;t<vr.length;t++){const r=vr[t];r&&r.pre&&(vr.splice(t,1),t--,r())}}function lE(e){if(Qo.length){const t=[...new Set(Qo)];if(Qo.length=0,vi){vi.push(...t);return}for(vi=t,vi.sort((r,i)=>zu(r)-zu(i)),Ns=0;Ns<vi.length;Ns++)vi[Ns]();vi=null,Ns=0}}const zu=e=>e.id==null?1/0:e.id,pT=(e,t)=>{const r=zu(e)-zu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function cE(e){Pp=!1,Mu=!0,vr.sort(pT);const t=_n;try{for(Hn=0;Hn<vr.length;Hn++){const r=vr[Hn];r&&r.active!==!1&&ls(r,null,14)}}finally{Hn=0,vr.length=0,lE(),Mu=!1,eg=null,(vr.length||Qo.length)&&cE()}}function gT(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||_t;let o=r;const a=t.startsWith("update:"),c=a&&t.slice(7);if(c&&c in i){const g=`${c==="modelValue"?"model":c}Modifiers`,{number:y,trim:m}=i[g]||_t;m&&(o=r.map(w=>Wt(w)?w.trim():w)),y&&(o=r.map(Tp))}let h,d=i[h=Vd(t)]||i[h=Vd(Qn(t))];!d&&a&&(d=i[h=Vd(to(t))]),d&&ln(d,e,6,o);const p=i[h+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[h])return;e.emitted[h]=!0,ln(p,e,6,o)}}function fE(e,t,r=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const a=e.emits;let c={},h=!1;if(!Ve(e)){const d=p=>{const g=fE(p,t,!0);g&&(h=!0,Vt(c,g))};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!a&&!h?(Et(e)&&i.set(e,null),null):(Me(a)?a.forEach(d=>c[d]=null):Vt(c,a),Et(e)&&i.set(e,c),c)}function th(e,t){return!e||!Xf(t)?!1:(t=t.slice(2).replace(/Once$/,""),at(e,t[0].toLowerCase()+t.slice(1))||at(e,to(t))||at(e,t))}let cr=null,rh=null;function mf(e){const t=cr;return cr=e,rh=e&&e.type.__scopeId||null,t}function hE(e){rh=e}function dE(){rh=null}const vT=e=>Ye;function Ye(e,t=cr,r){if(!t||e._n)return e;const i=(...o)=>{i._d&&O1(-1);const a=mf(t);let c;try{c=e(...o)}finally{mf(a),i._d&&O1(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function Wd(e){const{type:t,vnode:r,proxy:i,withProxy:o,props:a,propsOptions:[c],slots:h,attrs:d,emit:p,render:g,renderCache:y,data:m,setupState:w,ctx:$,inheritAttrs:B}=e;let x,C;const S=mf(e);try{if(r.shapeFlag&4){const L=o||i;x=wn(g.call(L,L,y,a,w,m,$)),C=d}else{const L=t;x=wn(L.length>1?L(a,{attrs:d,slots:h,emit:p}):L(a,null)),C=t.props?d:yT(d)}}catch(L){Tu.length=0,rl(L,e,1),x=ze(Ur)}let N=x;if(C&&B!==!1){const L=Object.keys(C),{shapeFlag:T}=N;L.length&&T&7&&(c&&L.some(M0)&&(C=bT(C,c)),N=hs(N,C))}return r.dirs&&(N=hs(N),N.dirs=N.dirs?N.dirs.concat(r.dirs):r.dirs),r.transition&&(N.transition=r.transition),x=N,mf(S),x}function mT(e){let t;for(let r=0;r<e.length;r++){const i=e[r];if(Hu(i)){if(i.type!==Ur||i.children==="v-if"){if(t)return;t=i}}else return}return t}const yT=e=>{let t;for(const r in e)(r==="class"||r==="style"||Xf(r))&&((t||(t={}))[r]=e[r]);return t},bT=(e,t)=>{const r={};for(const i in e)(!M0(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function wT(e,t,r){const{props:i,children:o,component:a}=e,{props:c,children:h,patchFlag:d}=t,p=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return i?A1(i,c,p):!!c;if(d&8){const g=t.dynamicProps;for(let y=0;y<g.length;y++){const m=g[y];if(c[m]!==i[m]&&!th(p,m))return!0}}}else return(o||h)&&(!h||!h.$stable)?!0:i===c?!1:i?c?A1(i,c,p):!0:!!c;return!1}function A1(e,t,r){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const a=i[o];if(t[a]!==e[a]&&!th(r,a))return!0}return!1}function rg({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const DT=e=>e.__isSuspense,AT={name:"Suspense",__isSuspense:!0,process(e,t,r,i,o,a,c,h,d,p){e==null?xT(t,r,i,o,a,c,h,d,p):CT(e,t,r,i,o,c,h,d,p)},hydrate:_T,create:ng,normalize:ST},ET=AT;function Uu(e,t){const r=e.props&&e.props[t];Ve(r)&&r()}function xT(e,t,r,i,o,a,c,h,d){const{p,o:{createElement:g}}=d,y=g("div"),m=e.suspense=ng(e,o,i,t,y,r,a,c,h,d);p(null,m.pendingBranch=e.ssContent,y,null,i,m,a,c),m.deps>0?(Uu(e,"onPending"),Uu(e,"onFallback"),p(null,e.ssFallback,t,r,i,null,a,c),Yo(m,e.ssFallback)):m.resolve(!1,!0)}function CT(e,t,r,i,o,a,c,h,{p:d,um:p,o:{createElement:g}}){const y=t.suspense=e.suspense;y.vnode=t,t.el=e.el;const m=t.ssContent,w=t.ssFallback,{activeBranch:$,pendingBranch:B,isInFallback:x,isHydrating:C}=y;if(B)y.pendingBranch=m,qn(m,B)?(d(B,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():x&&(d($,w,r,i,o,null,a,c,h),Yo(y,w))):(y.pendingId++,C?(y.isHydrating=!1,y.activeBranch=B):p(B,o,y),y.deps=0,y.effects.length=0,y.hiddenContainer=g("div"),x?(d(null,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():(d($,w,r,i,o,null,a,c,h),Yo(y,w))):$&&qn(m,$)?(d($,m,r,i,o,y,a,c,h),y.resolve(!0)):(d(null,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0&&y.resolve()));else if($&&qn(m,$))d($,m,r,i,o,y,a,c,h),Yo(y,m);else if(Uu(t,"onPending"),y.pendingBranch=m,y.pendingId++,d(null,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0)y.resolve();else{const{timeout:S,pendingId:N}=y;S>0?setTimeout(()=>{y.pendingId===N&&y.fallback(w)},S):S===0&&y.fallback(w)}}function ng(e,t,r,i,o,a,c,h,d,p,g=!1){const{p:y,m,um:w,n:$,o:{parentNode:B,remove:x}}=p;let C;const S=$T(e);S&&t!=null&&t.pendingBranch&&(C=t.pendingId,t.deps++);const N=e.props?HA(e.props.timeout):void 0,L={vnode:e,parent:t,parentComponent:r,isSVG:c,container:i,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:typeof N=="number"?N:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:g,isUnmounted:!1,effects:[],resolve(T=!1,R=!1){const{vnode:M,activeBranch:j,pendingBranch:te,pendingId:ie,effects:ee,parentComponent:z,container:O}=L;if(L.isHydrating)L.isHydrating=!1;else if(!T){const I=j&&te.transition&&te.transition.mode==="out-in";I&&(j.transition.afterLeave=()=>{ie===L.pendingId&&m(te,O,V,0)});let{anchor:V}=L;j&&(V=$(j),w(j,z,L,!0)),I||m(te,O,V,0)}Yo(L,te),L.pendingBranch=null,L.isInFallback=!1;let F=L.parent,D=!1;for(;F;){if(F.pendingBranch){F.effects.push(...ee),D=!0;break}F=F.parent}D||uE(ee),L.effects=[],S&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!R&&t.resolve()),Uu(M,"onResolve")},fallback(T){if(!L.pendingBranch)return;const{vnode:R,activeBranch:M,parentComponent:j,container:te,isSVG:ie}=L;Uu(R,"onFallback");const ee=$(M),z=()=>{L.isInFallback&&(y(null,T,te,ee,j,null,ie,h,d),Yo(L,T))},O=T.transition&&T.transition.mode==="out-in";O&&(M.transition.afterLeave=z),L.isInFallback=!0,w(M,j,null,!0),O||z()},move(T,R,M){L.activeBranch&&m(L.activeBranch,T,R,M),L.container=T},next(){return L.activeBranch&&$(L.activeBranch)},registerDep(T,R){const M=!!L.pendingBranch;M&&L.deps++;const j=T.vnode.el;T.asyncDep.catch(te=>{rl(te,T,0)}).then(te=>{if(T.isUnmounted||L.isUnmounted||L.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:ie}=T;qp(T,te,!1),j&&(ie.el=j);const ee=!j&&T.subTree.el;R(T,ie,B(j||T.subTree.el),j?null:$(T.subTree),L,c,d),ee&&x(ee),rg(T,ie.el),M&&--L.deps===0&&L.resolve()})},unmount(T,R){L.isUnmounted=!0,L.activeBranch&&w(L.activeBranch,r,T,R),L.pendingBranch&&w(L.pendingBranch,r,T,R)}};return L}function _T(e,t,r,i,o,a,c,h,d){const p=t.suspense=ng(t,i,r,e.parentNode,document.createElement("div"),null,o,a,c,h,!0),g=d(e,p.pendingBranch=t.ssContent,r,p,a,c);return p.deps===0&&p.resolve(!1,!0),g}function ST(e){const{shapeFlag:t,children:r}=e,i=t&32;e.ssContent=E1(i?r.default:r),e.ssFallback=i?E1(r.fallback):ze(Ur)}function E1(e){let t;if(Ve(e)){const r=aa&&e._c;r&&(e._d=!1,de()),e=e(),r&&(e._d=!0,t=an,kE())}return Me(e)&&(e=mT(e)),e=wn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function FT(e,t){t&&t.pendingBranch?Me(e)?t.effects.push(...e):t.effects.push(e):uE(e)}function Yo(e,t){e.activeBranch=t;const{vnode:r,parentComponent:i}=e,o=r.el=t.el;i&&i.subTree===r&&(i.vnode.el=o,rg(i,o))}function $T(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function ig(e,t){return sg(e,null,t)}const Dc={};function jt(e,t,r){return sg(e,t,r)}function sg(e,t,{immediate:r,deep:i,flush:o,onTrack:a,onTrigger:c}=_t){var h;const d=VA()===((h=ir)==null?void 0:h.scope)?ir:null;let p,g=!1,y=!1;if(Ot(e)?(p=()=>e.value,g=vf(e)):Xo(e)?(p=()=>e,i=!0):Me(e)?(y=!0,g=e.some(L=>Xo(L)||vf(L)),p=()=>e.map(L=>{if(Ot(L))return L.value;if(Xo(L))return Us(L);if(Ve(L))return ls(L,d,2)})):Ve(e)?t?p=()=>ls(e,d,2):p=()=>{if(!(d&&d.isUnmounted))return m&&m(),ln(e,d,3,[w])}:p=_n,t&&i){const L=p;p=()=>Us(L())}let m,w=L=>{m=S.onStop=()=>{ls(L,d,4)}},$;if(qu)if(w=_n,t?r&&ln(t,d,3,[p(),y?[]:void 0,w]):p(),o==="sync"){const L=Ak();$=L.__watcherHandles||(L.__watcherHandles=[])}else return _n;let B=y?new Array(e.length).fill(Dc):Dc;const x=()=>{if(S.active)if(t){const L=S.run();(i||g||(y?L.some((T,R)=>Iu(T,B[R])):Iu(L,B)))&&(m&&m(),ln(t,d,3,[L,B===Dc?void 0:y&&B[0]===Dc?[]:B,w]),B=L)}else S.run()};x.allowRecurse=!!t;let C;o==="sync"?C=x:o==="post"?C=()=>Nr(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>tg(x));const S=new j0(p,C);t?r?x():B=S.run():o==="post"?Nr(S.run.bind(S),d&&d.suspense):S.run();const N=()=>{S.stop(),d&&d.scope&&z0(d.scope.effects,S)};return $&&$.push(N),N}function TT(e,t,r){const i=this.proxy,o=Wt(e)?e.includes(".")?pE(i,e):()=>i[e]:e.bind(i,i);let a;Ve(t)?a=t:(a=t.handler,r=t);const c=ir;ua(this);const h=sg(o,a.bind(i),r);return c?ua(c):Gs(),h}function pE(e,t){const r=t.split(".");return()=>{let i=e;for(let o=0;o<r.length&&i;o++)i=i[r[o]];return i}}function Us(e,t){if(!Et(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ot(e))Us(e.value,t);else if(Me(e))for(let r=0;r<e.length;r++)Us(e[r],t);else if(RA(e)||Ko(e))e.forEach(r=>{Us(r,t)});else if(UA(e))for(const r in e)Us(e[r],t);return e}function mr(e,t){const r=cr;if(r===null)return e;const i=ah(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[c,h,d,p=_t]=t[a];c&&(Ve(c)&&(c={mounted:c,updated:c}),c.deep&&Us(h),o.push({dir:c,instance:i,value:h,oldValue:void 0,arg:d,modifiers:p}))}return e}function Fs(e,t,r,i){const o=e.dirs,a=t&&t.dirs;for(let c=0;c<o.length;c++){const h=o[c];a&&(h.oldValue=a[c].value);let d=h.dir[i];d&&(Aa(),ln(d,r,8,[e.el,h,e,t]),Ea())}}function kT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ca(()=>{e.isMounted=!0}),bE(()=>{e.isUnmounting=!0}),e}const rn=[Function,Array],gE={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rn,onEnter:rn,onAfterEnter:rn,onEnterCancelled:rn,onBeforeLeave:rn,onLeave:rn,onAfterLeave:rn,onLeaveCancelled:rn,onBeforeAppear:rn,onAppear:rn,onAfterAppear:rn,onAppearCancelled:rn},LT={name:"BaseTransition",props:gE,setup(e,{slots:t}){const r=nl(),i=kT();let o;return()=>{const a=t.default&&mE(t.default(),!0);if(!a||!a.length)return;let c=a[0];if(a.length>1){for(const B of a)if(B.type!==Ur){c=B;break}}const h=ut(e),{mode:d}=h;if(i.isLeaving)return Gd(c);const p=x1(c);if(!p)return Gd(c);const g=Np(p,h,i,r);Ip(p,g);const y=r.subTree,m=y&&x1(y);let w=!1;const{getTransitionKey:$}=p.type;if($){const B=$();o===void 0?o=B:B!==o&&(o=B,w=!0)}if(m&&m.type!==Ur&&(!qn(p,m)||w)){const B=Np(m,h,i,r);if(Ip(m,B),d==="out-in")return i.isLeaving=!0,B.afterLeave=()=>{i.isLeaving=!1,r.update.active!==!1&&r.update()},Gd(c);d==="in-out"&&p.type!==Ur&&(B.delayLeave=(x,C,S)=>{const N=vE(i,m);N[String(m.key)]=m,x._leaveCb=()=>{C(),x._leaveCb=void 0,delete g.delayedLeave},g.delayedLeave=S})}return c}}},BT=LT;function vE(e,t){const{leavingVNodes:r}=e;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function Np(e,t,r,i){const{appear:o,mode:a,persisted:c=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:p,onEnterCancelled:g,onBeforeLeave:y,onLeave:m,onAfterLeave:w,onLeaveCancelled:$,onBeforeAppear:B,onAppear:x,onAfterAppear:C,onAppearCancelled:S}=t,N=String(e.key),L=vE(r,e),T=(j,te)=>{j&&ln(j,i,9,te)},R=(j,te)=>{const ie=te[1];T(j,te),Me(j)?j.every(ee=>ee.length<=1)&&ie():j.length<=1&&ie()},M={mode:a,persisted:c,beforeEnter(j){let te=h;if(!r.isMounted)if(o)te=B||h;else return;j._leaveCb&&j._leaveCb(!0);const ie=L[N];ie&&qn(e,ie)&&ie.el._leaveCb&&ie.el._leaveCb(),T(te,[j])},enter(j){let te=d,ie=p,ee=g;if(!r.isMounted)if(o)te=x||d,ie=C||p,ee=S||g;else return;let z=!1;const O=j._enterCb=F=>{z||(z=!0,F?T(ee,[j]):T(ie,[j]),M.delayedLeave&&M.delayedLeave(),j._enterCb=void 0)};te?R(te,[j,O]):O()},leave(j,te){const ie=String(e.key);if(j._enterCb&&j._enterCb(!0),r.isUnmounting)return te();T(y,[j]);let ee=!1;const z=j._leaveCb=O=>{ee||(ee=!0,te(),O?T($,[j]):T(w,[j]),j._leaveCb=void 0,L[ie]===e&&delete L[ie])};L[ie]=e,m?R(m,[j,z]):z()},clone(j){return Np(j,t,r,i)}};return M}function Gd(e){if(nh(e))return e=hs(e),e.children=null,e}function x1(e){return nh(e)?e.children?e.children[0]:void 0:e}function Ip(e,t){e.shapeFlag&6&&e.component?Ip(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 mE(e,t=!1,r){let i=[],o=0;for(let a=0;a<e.length;a++){let c=e[a];const h=r==null?c.key:String(r)+String(c.key!=null?c.key:a);c.type===dt?(c.patchFlag&128&&o++,i=i.concat(mE(c.children,t,h))):(t||c.type!==Ur)&&i.push(h!=null?hs(c,{key:h}):c)}if(o>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}function it(e,t){return Ve(e)?(()=>Vt({name:e.name},t,{setup:e}))():e}const Fu=e=>!!e.type.__asyncLoader,nh=e=>e.type.__isKeepAlive;function OT(e,t){yE(e,"a",t)}function PT(e,t){yE(e,"da",t)}function yE(e,t,r=ir){const i=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ih(t,i,r),r){let o=r.parent;for(;o&&o.parent;)nh(o.parent.vnode)&&NT(i,t,r,o),o=o.parent}}function NT(e,t,r,i){const o=ih(t,e,i,!0);og(()=>{z0(i[t],o)},r)}function ih(e,t,r=ir,i=!1){if(r){const o=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...c)=>{if(r.isUnmounted)return;Aa(),ua(r);const h=ln(t,r,e,c);return Gs(),Ea(),h});return i?o.unshift(a):o.push(a),a}}const Li=e=>(t,r=ir)=>(!qu||e==="sp")&&ih(e,(...i)=>t(...i),r),IT=Li("bm"),Ca=Li("m"),RT=Li("bu"),MT=Li("u"),bE=Li("bum"),og=Li("um"),zT=Li("sp"),UT=Li("rtg"),HT=Li("rtc");function qT(e,t=ir){ih("ec",e,t)}const wE="components",jT="directives";function Qs(e,t){return DE(wE,e,!0,t)||e}const VT=Symbol.for("v-ndc");function ro(e){return DE(jT,e)}function DE(e,t,r=!0,i=!1){const o=cr||ir;if(o){const a=o.type;if(e===wE){const h=bk(a,!1);if(h&&(h===t||h===Qn(t)||h===Zf(Qn(t))))return a}const c=C1(o[e]||a[e],t)||C1(o.appContext[e],t);return!c&&i?a:c}}function C1(e,t){return e&&(e[t]||e[Qn(t)]||e[Zf(Qn(t))])}function An(e,t,r,i){let o;const a=r&&r[i];if(Me(e)||Wt(e)){o=new Array(e.length);for(let c=0,h=e.length;c<h;c++)o[c]=t(e[c],c,void 0,a&&a[c])}else if(typeof e=="number"){o=new Array(e);for(let c=0;c<e;c++)o[c]=t(c+1,c,void 0,a&&a[c])}else if(Et(e))if(e[Symbol.iterator])o=Array.from(e,(c,h)=>t(c,h,void 0,a&&a[h]));else{const c=Object.keys(e);o=new Array(c.length);for(let h=0,d=c.length;h<d;h++){const p=c[h];o[h]=t(e[p],p,h,a&&a[h])}}else o=[];return r&&(r[i]=o),o}function Sn(e,t,r={},i,o){if(cr.isCE||cr.parent&&Fu(cr.parent)&&cr.parent.isCE)return t!=="default"&&(r.name=t),ze("slot",r,i&&i());let a=e[t];a&&a._c&&(a._d=!1),de();const c=a&&AE(a(r)),h=Ze(dt,{key:r.key||c&&c.key||`_${t}`},c||(i?i():[]),c&&e._===1?64:-2);return!o&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),a&&a._c&&(a._d=!0),h}function AE(e){return e.some(t=>Hu(t)?!(t.type===Ur||t.type===dt&&!AE(t.children)):!0)?e:null}const Rp=e=>e?OE(e)?ah(e)||e.proxy:Rp(e.parent):null,$u=Vt(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=>Rp(e.parent),$root:e=>Rp(e.root),$emit:e=>e.emit,$options:e=>ag(e),$forceUpdate:e=>e.f||(e.f=()=>tg(e.update)),$nextTick:e=>e.n||(e.n=Ci.bind(e.proxy)),$watch:e=>TT.bind(e)}),Kd=(e,t)=>e!==_t&&!e.__isScriptSetup&&at(e,t),WT={get({_:e},t){const{ctx:r,setupState:i,data:o,props:a,accessCache:c,type:h,appContext:d}=e;let p;if(t[0]!=="$"){const w=c[t];if(w!==void 0)switch(w){case 1:return i[t];case 2:return o[t];case 4:return r[t];case 3:return a[t]}else{if(Kd(i,t))return c[t]=1,i[t];if(o!==_t&&at(o,t))return c[t]=2,o[t];if((p=e.propsOptions[0])&&at(p,t))return c[t]=3,a[t];if(r!==_t&&at(r,t))return c[t]=4,r[t];Mp&&(c[t]=0)}}const g=$u[t];let y,m;if(g)return t==="$attrs"&&qr(e,"get",t),g(e);if((y=h.__cssModules)&&(y=y[t]))return y;if(r!==_t&&at(r,t))return c[t]=4,r[t];if(m=d.config.globalProperties,at(m,t))return m[t]},set({_:e},t,r){const{data:i,setupState:o,ctx:a}=e;return Kd(o,t)?(o[t]=r,!0):i!==_t&&at(i,t)?(i[t]=r,!0):at(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:o,propsOptions:a}},c){let h;return!!r[c]||e!==_t&&at(e,c)||Kd(t,c)||(h=a[0])&&at(h,c)||at(i,c)||at($u,c)||at(o.config.globalProperties,c)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:at(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function GT(){return KT().attrs}function KT(){const e=nl();return e.setupContext||(e.setupContext=NE(e))}function _1(e){return Me(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Mp=!0;function XT(e){const t=ag(e),r=e.proxy,i=e.ctx;Mp=!1,t.beforeCreate&&S1(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:c,watch:h,provide:d,inject:p,created:g,beforeMount:y,mounted:m,beforeUpdate:w,updated:$,activated:B,deactivated:x,beforeDestroy:C,beforeUnmount:S,destroyed:N,unmounted:L,render:T,renderTracked:R,renderTriggered:M,errorCaptured:j,serverPrefetch:te,expose:ie,inheritAttrs:ee,components:z,directives:O,filters:F}=t;if(p&&QT(p,i,null),c)for(const V in c){const J=c[V];Ve(J)&&(i[V]=J.bind(r))}if(o){const V=o.call(r,r);Et(V)&&(e.data=Yr(V))}if(Mp=!0,a)for(const V in a){const J=a[V],oe=Ve(J)?J.bind(r,r):Ve(J.get)?J.get.bind(r,r):_n,ge=!Ve(J)&&Ve(J.set)?J.set.bind(r):_n,Fe=Ae({get:oe,set:ge});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:_e=>Fe.value=_e})}if(h)for(const V in h)EE(h[V],i,r,V);if(d){const V=Ve(d)?d.call(r):d;Reflect.ownKeys(V).forEach(J=>{Yc(J,V[J])})}g&&S1(g,e,"c");function I(V,J){Me(J)?J.forEach(oe=>V(oe.bind(r))):J&&V(J.bind(r))}if(I(IT,y),I(Ca,m),I(RT,w),I(MT,$),I(OT,B),I(PT,x),I(qT,j),I(HT,R),I(UT,M),I(bE,S),I(og,L),I(zT,te),Me(ie))if(ie.length){const V=e.exposed||(e.exposed={});ie.forEach(J=>{Object.defineProperty(V,J,{get:()=>r[J],set:oe=>r[J]=oe})})}else e.exposed||(e.exposed={});T&&e.render===_n&&(e.render=T),ee!=null&&(e.inheritAttrs=ee),z&&(e.components=z),O&&(e.directives=O)}function QT(e,t,r=_n){Me(e)&&(e=zp(e));for(const i in e){const o=e[i];let a;Et(o)?"default"in o?a=Ai(o.from||i,o.default,!0):a=Ai(o.from||i):a=Ai(o),Ot(a)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:c=>a.value=c}):t[i]=a}}function S1(e,t,r){ln(Me(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function EE(e,t,r,i){const o=i.includes(".")?pE(r,i):()=>r[i];if(Wt(e)){const a=t[e];Ve(a)&&jt(o,a)}else if(Ve(e))jt(o,e.bind(r));else if(Et(e))if(Me(e))e.forEach(a=>EE(a,t,r,i));else{const a=Ve(e.handler)?e.handler.bind(r):t[e.handler];Ve(a)&&jt(o,a,e)}}function ag(e){const t=e.type,{mixins:r,extends:i}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:c}}=e.appContext,h=a.get(t);let d;return h?d=h:!o.length&&!r&&!i?d=t:(d={},o.length&&o.forEach(p=>yf(d,p,c,!0)),yf(d,t,c)),Et(t)&&a.set(t,d),d}function yf(e,t,r,i=!1){const{mixins:o,extends:a}=t;a&&yf(e,a,r,!0),o&&o.forEach(c=>yf(e,c,r,!0));for(const c in t)if(!(i&&c==="expose")){const h=YT[c]||r&&r[c];e[c]=h?h(e[c],t[c]):t[c]}return e}const YT={data:F1,props:$1,emits:$1,methods:Cu,computed:Cu,beforeCreate:Cr,created:Cr,beforeMount:Cr,mounted:Cr,beforeUpdate:Cr,updated:Cr,beforeDestroy:Cr,beforeUnmount:Cr,destroyed:Cr,unmounted:Cr,activated:Cr,deactivated:Cr,errorCaptured:Cr,serverPrefetch:Cr,components:Cu,directives:Cu,watch:JT,provide:F1,inject:ZT};function F1(e,t){return t?e?function(){return Vt(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function ZT(e,t){return Cu(zp(e),zp(t))}function zp(e){if(Me(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Cr(e,t){return e?[...new Set([].concat(e,t))]:t}function Cu(e,t){return e?Vt(Object.create(null),e,t):t}function $1(e,t){return e?Me(e)&&Me(t)?[...new Set([...e,...t])]:Vt(Object.create(null),_1(e),_1(t??{})):t}function JT(e,t){if(!e)return t;if(!t)return e;const r=Vt(Object.create(null),e);for(const i in t)r[i]=Cr(e[i],t[i]);return r}function xE(){return{app:null,config:{isNativeTag:d$,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 ek=0;function tk(e,t){return function(i,o=null){Ve(i)||(i=Vt({},i)),o!=null&&!Et(o)&&(o=null);const a=xE(),c=new Set;let h=!1;const d=a.app={_uid:ek++,_component:i,_props:o,_container:null,_context:a,_instance:null,version:Ek,get config(){return a.config},set config(p){},use(p,...g){return c.has(p)||(p&&Ve(p.install)?(c.add(p),p.install(d,...g)):Ve(p)&&(c.add(p),p(d,...g))),d},mixin(p){return a.mixins.includes(p)||a.mixins.push(p),d},component(p,g){return g?(a.components[p]=g,d):a.components[p]},directive(p,g){return g?(a.directives[p]=g,d):a.directives[p]},mount(p,g,y){if(!h){const m=ze(i,o);return m.appContext=a,g&&t?t(m,p):e(m,p,y),h=!0,d._container=p,p.__vue_app__=d,ah(m.component)||m.component.proxy}},unmount(){h&&(e(null,d._container),delete d._container.__vue_app__)},provide(p,g){return a.provides[p]=g,d},runWithContext(p){bf=d;try{return p()}finally{bf=null}}};return d}}let bf=null;function Yc(e,t){if(ir){let r=ir.provides;const i=ir.parent&&ir.parent.provides;i===r&&(r=ir.provides=Object.create(i)),r[e]=t}}function Ai(e,t,r=!1){const i=ir||cr;if(i||bf){const o=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:bf._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return r&&Ve(t)?t.call(i&&i.proxy):t}}function rk(e,t,r,i=!1){const o={},a={};pf(a,oh,1),e.propsDefaults=Object.create(null),CE(e,t,o,a);for(const c in e.propsOptions[0])c in o||(o[c]=void 0);r?e.props=i?o:tT(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function nk(e,t,r,i){const{props:o,attrs:a,vnode:{patchFlag:c}}=e,h=ut(o),[d]=e.propsOptions;let p=!1;if((i||c>0)&&!(c&16)){if(c&8){const g=e.vnode.dynamicProps;for(let y=0;y<g.length;y++){let m=g[y];if(th(e.emitsOptions,m))continue;const w=t[m];if(d)if(at(a,m))w!==a[m]&&(a[m]=w,p=!0);else{const $=Qn(m);o[$]=Up(d,h,$,w,e,!1)}else w!==a[m]&&(a[m]=w,p=!0)}}}else{CE(e,t,o,a)&&(p=!0);let g;for(const y in h)(!t||!at(t,y)&&((g=to(y))===y||!at(t,g)))&&(d?r&&(r[y]!==void 0||r[g]!==void 0)&&(o[y]=Up(d,h,y,void 0,e,!0)):delete o[y]);if(a!==h)for(const y in a)(!t||!at(t,y))&&(delete a[y],p=!0)}p&&xi(e,"set","$attrs")}function CE(e,t,r,i){const[o,a]=e.propsOptions;let c=!1,h;if(t)for(let d in t){if(Xc(d))continue;const p=t[d];let g;o&&at(o,g=Qn(d))?!a||!a.includes(g)?r[g]=p:(h||(h={}))[g]=p:th(e.emitsOptions,d)||(!(d in i)||p!==i[d])&&(i[d]=p,c=!0)}if(a){const d=ut(r),p=h||_t;for(let g=0;g<a.length;g++){const y=a[g];r[y]=Up(o,d,y,p[y],e,!at(p,y))}}return c}function Up(e,t,r,i,o,a){const c=e[r];if(c!=null){const h=at(c,"default");if(h&&i===void 0){const d=c.default;if(c.type!==Function&&!c.skipFactory&&Ve(d)){const{propsDefaults:p}=o;r in p?i=p[r]:(ua(o),i=p[r]=d.call(null,t),Gs())}else i=d}c[0]&&(a&&!h?i=!1:c[1]&&(i===""||i===to(r))&&(i=!0))}return i}function _E(e,t,r=!1){const i=t.propsCache,o=i.get(e);if(o)return o;const a=e.props,c={},h=[];let d=!1;if(!Ve(e)){const g=y=>{d=!0;const[m,w]=_E(y,t,!0);Vt(c,m),w&&h.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!a&&!d)return Et(e)&&i.set(e,Go),Go;if(Me(a))for(let g=0;g<a.length;g++){const y=Qn(a[g]);T1(y)&&(c[y]=_t)}else if(a)for(const g in a){const y=Qn(g);if(T1(y)){const m=a[g],w=c[y]=Me(m)||Ve(m)?{type:m}:Vt({},m);if(w){const $=B1(Boolean,w.type),B=B1(String,w.type);w[0]=$>-1,w[1]=B<0||$<B,($>-1||at(w,"default"))&&h.push(y)}}}const p=[c,h];return Et(e)&&i.set(e,p),p}function T1(e){return e[0]!=="$"}function k1(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function L1(e,t){return k1(e)===k1(t)}function B1(e,t){return Me(t)?t.findIndex(r=>L1(r,e)):Ve(t)&&L1(t,e)?0:-1}const SE=e=>e[0]==="_"||e==="$stable",ug=e=>Me(e)?e.map(wn):[wn(e)],ik=(e,t,r)=>{if(t._n)return t;const i=Ye((...o)=>ug(t(...o)),r);return i._c=!1,i},FE=(e,t,r)=>{const i=e._ctx;for(const o in e){if(SE(o))continue;const a=e[o];if(Ve(a))t[o]=ik(o,a,i);else if(a!=null){const c=ug(a);t[o]=()=>c}}},$E=(e,t)=>{const r=ug(t);e.slots.default=()=>r},sk=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ut(t),pf(t,"_",r)):FE(t,e.slots={})}else e.slots={},t&&$E(e,t);pf(e.slots,oh,1)},ok=(e,t,r)=>{const{vnode:i,slots:o}=e;let a=!0,c=_t;if(i.shapeFlag&32){const h=t._;h?r&&h===1?a=!1:(Vt(o,t),!r&&h===1&&delete o._):(a=!t.$stable,FE(t,o)),c=t}else t&&($E(e,t),c={default:1});if(a)for(const h in o)!SE(h)&&!(h in c)&&delete o[h]};function Hp(e,t,r,i,o=!1){if(Me(e)){e.forEach((m,w)=>Hp(m,t&&(Me(t)?t[w]:t),r,i,o));return}if(Fu(i)&&!o)return;const a=i.shapeFlag&4?ah(i.component)||i.component.proxy:i.el,c=o?null:a,{i:h,r:d}=e,p=t&&t.r,g=h.refs===_t?h.refs={}:h.refs,y=h.setupState;if(p!=null&&p!==d&&(Wt(p)?(g[p]=null,at(y,p)&&(y[p]=null)):Ot(p)&&(p.value=null)),Ve(d))ls(d,h,12,[c,g]);else{const m=Wt(d),w=Ot(d);if(m||w){const $=()=>{if(e.f){const B=m?at(y,d)?y[d]:g[d]:d.value;o?Me(B)&&z0(B,a):Me(B)?B.includes(a)||B.push(a):m?(g[d]=[a],at(y,d)&&(y[d]=g[d])):(d.value=[a],e.k&&(g[e.k]=d.value))}else m?(g[d]=c,at(y,d)&&(y[d]=c)):w&&(d.value=c,e.k&&(g[e.k]=c))};c?($.id=-1,Nr($,r)):$()}}}const Nr=FT;function ak(e){return uk(e)}function uk(e,t){const r=kp();r.__VUE__=!0;const{insert:i,remove:o,patchProp:a,createElement:c,createText:h,createComment:d,setText:p,setElementText:g,parentNode:y,nextSibling:m,setScopeId:w=_n,insertStaticContent:$}=e,B=(U,G,Z,se=null,ue=null,fe=null,he=!1,ye=null,Ee=!!G.dynamicChildren)=>{if(U===G)return;U&&!qn(U,G)&&(se=Q(U),_e(U,ue,fe,!0),U=null),G.patchFlag===-2&&(Ee=!1,G.dynamicChildren=null);const{type:ve,ref:Ne,shapeFlag:ke}=G;switch(ve){case sh:x(U,G,Z,se);break;case Ur:C(U,G,Z,se);break;case Xd:U==null&&S(G,Z,se,he);break;case dt:z(U,G,Z,se,ue,fe,he,ye,Ee);break;default:ke&1?T(U,G,Z,se,ue,fe,he,ye,Ee):ke&6?O(U,G,Z,se,ue,fe,he,ye,Ee):(ke&64||ke&128)&&ve.process(U,G,Z,se,ue,fe,he,ye,Ee,ce)}Ne!=null&&ue&&Hp(Ne,U&&U.ref,fe,G||U,!G)},x=(U,G,Z,se)=>{if(U==null)i(G.el=h(G.children),Z,se);else{const ue=G.el=U.el;G.children!==U.children&&p(ue,G.children)}},C=(U,G,Z,se)=>{U==null?i(G.el=d(G.children||""),Z,se):G.el=U.el},S=(U,G,Z,se)=>{[U.el,U.anchor]=$(U.children,G,Z,se,U.el,U.anchor)},N=({el:U,anchor:G},Z,se)=>{let ue;for(;U&&U!==G;)ue=m(U),i(U,Z,se),U=ue;i(G,Z,se)},L=({el:U,anchor:G})=>{let Z;for(;U&&U!==G;)Z=m(U),o(U),U=Z;o(G)},T=(U,G,Z,se,ue,fe,he,ye,Ee)=>{he=he||G.type==="svg",U==null?R(G,Z,se,ue,fe,he,ye,Ee):te(U,G,ue,fe,he,ye,Ee)},R=(U,G,Z,se,ue,fe,he,ye)=>{let Ee,ve;const{type:Ne,props:ke,shapeFlag:Pe,transition:Re,dirs:Ge}=U;if(Ee=U.el=c(U.type,fe,ke&&ke.is,ke),Pe&8?g(Ee,U.children):Pe&16&&j(U.children,Ee,null,se,ue,fe&&Ne!=="foreignObject",he,ye),Ge&&Fs(U,null,se,"created"),M(Ee,U,U.scopeId,he,se),ke){for(const rt in ke)rt!=="value"&&!Xc(rt)&&a(Ee,rt,null,ke[rt],fe,U.children,se,ue,xe);"value"in ke&&a(Ee,"value",null,ke.value),(ve=ke.onVnodeBeforeMount)&&Mn(ve,se,U)}Ge&&Fs(U,null,se,"beforeMount");const st=(!ue||ue&&!ue.pendingBranch)&&Re&&!Re.persisted;st&&Re.beforeEnter(Ee),i(Ee,G,Z),((ve=ke&&ke.onVnodeMounted)||st||Ge)&&Nr(()=>{ve&&Mn(ve,se,U),st&&Re.enter(Ee),Ge&&Fs(U,null,se,"mounted")},ue)},M=(U,G,Z,se,ue)=>{if(Z&&w(U,Z),se)for(let fe=0;fe<se.length;fe++)w(U,se[fe]);if(ue){let fe=ue.subTree;if(G===fe){const he=ue.vnode;M(U,he,he.scopeId,he.slotScopeIds,ue.parent)}}},j=(U,G,Z,se,ue,fe,he,ye,Ee=0)=>{for(let ve=Ee;ve<U.length;ve++){const Ne=U[ve]=ye?ts(U[ve]):wn(U[ve]);B(null,Ne,G,Z,se,ue,fe,he,ye)}},te=(U,G,Z,se,ue,fe,he)=>{const ye=G.el=U.el;let{patchFlag:Ee,dynamicChildren:ve,dirs:Ne}=G;Ee|=U.patchFlag&16;const ke=U.props||_t,Pe=G.props||_t;let Re;Z&&$s(Z,!1),(Re=Pe.onVnodeBeforeUpdate)&&Mn(Re,Z,G,U),Ne&&Fs(G,U,Z,"beforeUpdate"),Z&&$s(Z,!0);const Ge=ue&&G.type!=="foreignObject";if(ve?ie(U.dynamicChildren,ve,ye,Z,se,Ge,fe):he||J(U,G,ye,null,Z,se,Ge,fe,!1),Ee>0){if(Ee&16)ee(ye,G,ke,Pe,Z,se,ue);else if(Ee&2&&ke.class!==Pe.class&&a(ye,"class",null,Pe.class,ue),Ee&4&&a(ye,"style",ke.style,Pe.style,ue),Ee&8){const st=G.dynamicProps;for(let rt=0;rt<st.length;rt++){const ht=st[rt],tt=ke[ht],Lr=Pe[ht];(Lr!==tt||ht==="value")&&a(ye,ht,tt,Lr,ue,U.children,Z,se,xe)}}Ee&1&&U.children!==G.children&&g(ye,G.children)}else!he&&ve==null&&ee(ye,G,ke,Pe,Z,se,ue);((Re=Pe.onVnodeUpdated)||Ne)&&Nr(()=>{Re&&Mn(Re,Z,G,U),Ne&&Fs(G,U,Z,"updated")},se)},ie=(U,G,Z,se,ue,fe,he)=>{for(let ye=0;ye<G.length;ye++){const Ee=U[ye],ve=G[ye],Ne=Ee.el&&(Ee.type===dt||!qn(Ee,ve)||Ee.shapeFlag&70)?y(Ee.el):Z;B(Ee,ve,Ne,null,se,ue,fe,he,!0)}},ee=(U,G,Z,se,ue,fe,he)=>{if(Z!==se){if(Z!==_t)for(const ye in Z)!Xc(ye)&&!(ye in se)&&a(U,ye,Z[ye],null,he,G.children,ue,fe,xe);for(const ye in se){if(Xc(ye))continue;const Ee=se[ye],ve=Z[ye];Ee!==ve&&ye!=="value"&&a(U,ye,ve,Ee,he,G.children,ue,fe,xe)}"value"in se&&a(U,"value",Z.value,se.value)}},z=(U,G,Z,se,ue,fe,he,ye,Ee)=>{const ve=G.el=U?U.el:h(""),Ne=G.anchor=U?U.anchor:h("");let{patchFlag:ke,dynamicChildren:Pe,slotScopeIds:Re}=G;Re&&(ye=ye?ye.concat(Re):Re),U==null?(i(ve,Z,se),i(Ne,Z,se),j(G.children,Z,Ne,ue,fe,he,ye,Ee)):ke>0&&ke&64&&Pe&&U.dynamicChildren?(ie(U.dynamicChildren,Pe,Z,ue,fe,he,ye),(G.key!=null||ue&&G===ue.subTree)&&TE(U,G,!0)):J(U,G,Z,Ne,ue,fe,he,ye,Ee)},O=(U,G,Z,se,ue,fe,he,ye,Ee)=>{G.slotScopeIds=ye,U==null?G.shapeFlag&512?ue.ctx.activate(G,Z,se,he,Ee):F(G,Z,se,ue,fe,he,Ee):D(U,G,Ee)},F=(U,G,Z,se,ue,fe,he)=>{const ye=U.component=gk(U,se,ue);if(nh(U)&&(ye.ctx.renderer=ce),vk(ye),ye.asyncDep){if(ue&&ue.registerDep(ye,I),!U.el){const Ee=ye.subTree=ze(Ur);C(null,Ee,G,Z)}return}I(ye,U,G,Z,ue,fe,he)},D=(U,G,Z)=>{const se=G.component=U.component;if(wT(U,G,Z))if(se.asyncDep&&!se.asyncResolved){V(se,G,Z);return}else se.next=G,dT(se.update),se.update();else G.el=U.el,se.vnode=G},I=(U,G,Z,se,ue,fe,he)=>{const ye=()=>{if(U.isMounted){let{next:Ne,bu:ke,u:Pe,parent:Re,vnode:Ge}=U,st=Ne,rt;$s(U,!1),Ne?(Ne.el=Ge.el,V(U,Ne,he)):Ne=Ge,ke&&Qc(ke),(rt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Mn(rt,Re,Ne,Ge),$s(U,!0);const ht=Wd(U),tt=U.subTree;U.subTree=ht,B(tt,ht,y(tt.el),Q(tt),U,ue,fe),Ne.el=ht.el,st===null&&rg(U,ht.el),Pe&&Nr(Pe,ue),(rt=Ne.props&&Ne.props.onVnodeUpdated)&&Nr(()=>Mn(rt,Re,Ne,Ge),ue)}else{let Ne;const{el:ke,props:Pe}=G,{bm:Re,m:Ge,parent:st}=U,rt=Fu(G);if($s(U,!1),Re&&Qc(Re),!rt&&(Ne=Pe&&Pe.onVnodeBeforeMount)&&Mn(Ne,st,G),$s(U,!0),ke&&Be){const ht=()=>{U.subTree=Wd(U),Be(ke,U.subTree,U,ue,null)};rt?G.type.__asyncLoader().then(()=>!U.isUnmounted&&ht()):ht()}else{const ht=U.subTree=Wd(U);B(null,ht,Z,se,U,ue,fe),G.el=ht.el}if(Ge&&Nr(Ge,ue),!rt&&(Ne=Pe&&Pe.onVnodeMounted)){const ht=G;Nr(()=>Mn(Ne,st,ht),ue)}(G.shapeFlag&256||st&&Fu(st.vnode)&&st.vnode.shapeFlag&256)&&U.a&&Nr(U.a,ue),U.isMounted=!0,G=Z=se=null}},Ee=U.effect=new j0(ye,()=>tg(ve),U.scope),ve=U.update=()=>Ee.run();ve.id=U.uid,$s(U,!0),ve()},V=(U,G,Z)=>{G.component=U;const se=U.vnode.props;U.vnode=G,U.next=null,nk(U,G.props,se,Z),ok(U,G.children,Z),Aa(),D1(),Ea()},J=(U,G,Z,se,ue,fe,he,ye,Ee=!1)=>{const ve=U&&U.children,Ne=U?U.shapeFlag:0,ke=G.children,{patchFlag:Pe,shapeFlag:Re}=G;if(Pe>0){if(Pe&128){ge(ve,ke,Z,se,ue,fe,he,ye,Ee);return}else if(Pe&256){oe(ve,ke,Z,se,ue,fe,he,ye,Ee);return}}Re&8?(Ne&16&&xe(ve,ue,fe),ke!==ve&&g(Z,ke)):Ne&16?Re&16?ge(ve,ke,Z,se,ue,fe,he,ye,Ee):xe(ve,ue,fe,!0):(Ne&8&&g(Z,""),Re&16&&j(ke,Z,se,ue,fe,he,ye,Ee))},oe=(U,G,Z,se,ue,fe,he,ye,Ee)=>{U=U||Go,G=G||Go;const ve=U.length,Ne=G.length,ke=Math.min(ve,Ne);let Pe;for(Pe=0;Pe<ke;Pe++){const Re=G[Pe]=Ee?ts(G[Pe]):wn(G[Pe]);B(U[Pe],Re,Z,null,ue,fe,he,ye,Ee)}ve>Ne?xe(U,ue,fe,!0,!1,ke):j(G,Z,se,ue,fe,he,ye,Ee,ke)},ge=(U,G,Z,se,ue,fe,he,ye,Ee)=>{let ve=0;const Ne=G.length;let ke=U.length-1,Pe=Ne-1;for(;ve<=ke&&ve<=Pe;){const Re=U[ve],Ge=G[ve]=Ee?ts(G[ve]):wn(G[ve]);if(qn(Re,Ge))B(Re,Ge,Z,null,ue,fe,he,ye,Ee);else break;ve++}for(;ve<=ke&&ve<=Pe;){const Re=U[ke],Ge=G[Pe]=Ee?ts(G[Pe]):wn(G[Pe]);if(qn(Re,Ge))B(Re,Ge,Z,null,ue,fe,he,ye,Ee);else break;ke--,Pe--}if(ve>ke){if(ve<=Pe){const Re=Pe+1,Ge=Re<Ne?G[Re].el:se;for(;ve<=Pe;)B(null,G[ve]=Ee?ts(G[ve]):wn(G[ve]),Z,Ge,ue,fe,he,ye,Ee),ve++}}else if(ve>Pe)for(;ve<=ke;)_e(U[ve],ue,fe,!0),ve++;else{const Re=ve,Ge=ve,st=new Map;for(ve=Ge;ve<=Pe;ve++){const Dt=G[ve]=Ee?ts(G[ve]):wn(G[ve]);Dt.key!=null&&st.set(Dt.key,ve)}let rt,ht=0;const tt=Pe-Ge+1;let Lr=!1,jr=0;const tr=new Array(tt);for(ve=0;ve<tt;ve++)tr[ve]=0;for(ve=Re;ve<=ke;ve++){const Dt=U[ve];if(ht>=tt){_e(Dt,ue,fe,!0);continue}let yr;if(Dt.key!=null)yr=st.get(Dt.key);else for(rt=Ge;rt<=Pe;rt++)if(tr[rt-Ge]===0&&qn(Dt,G[rt])){yr=rt;break}yr===void 0?_e(Dt,ue,fe,!0):(tr[yr-Ge]=ve+1,yr>=jr?jr=yr:Lr=!0,B(Dt,G[yr],Z,null,ue,fe,he,ye,Ee),ht++)}const uo=Lr?lk(tr):Go;for(rt=uo.length-1,ve=tt-1;ve>=0;ve--){const Dt=Ge+ve,yr=G[Dt],De=Dt+1<Ne?G[Dt+1].el:se;tr[ve]===0?B(null,yr,Z,De,ue,fe,he,ye,Ee):Lr&&(rt<0||ve!==uo[rt]?Fe(yr,Z,De,2):rt--)}}},Fe=(U,G,Z,se,ue=null)=>{const{el:fe,type:he,transition:ye,children:Ee,shapeFlag:ve}=U;if(ve&6){Fe(U.component.subTree,G,Z,se);return}if(ve&128){U.suspense.move(G,Z,se);return}if(ve&64){he.move(U,G,Z,ce);return}if(he===dt){i(fe,G,Z);for(let ke=0;ke<Ee.length;ke++)Fe(Ee[ke],G,Z,se);i(U.anchor,G,Z);return}if(he===Xd){N(U,G,Z);return}if(se!==2&&ve&1&&ye)if(se===0)ye.beforeEnter(fe),i(fe,G,Z),Nr(()=>ye.enter(fe),ue);else{const{leave:ke,delayLeave:Pe,afterLeave:Re}=ye,Ge=()=>i(fe,G,Z),st=()=>{ke(fe,()=>{Ge(),Re&&Re()})};Pe?Pe(fe,Ge,st):st()}else i(fe,G,Z)},_e=(U,G,Z,se=!1,ue=!1)=>{const{type:fe,props:he,ref:ye,children:Ee,dynamicChildren:ve,shapeFlag:Ne,patchFlag:ke,dirs:Pe}=U;if(ye!=null&&Hp(ye,null,Z,U,!0),Ne&256){G.ctx.deactivate(U);return}const Re=Ne&1&&Pe,Ge=!Fu(U);let st;if(Ge&&(st=he&&he.onVnodeBeforeUnmount)&&Mn(st,G,U),Ne&6)et(U.component,Z,se);else{if(Ne&128){U.suspense.unmount(Z,se);return}Re&&Fs(U,null,G,"beforeUnmount"),Ne&64?U.type.remove(U,G,Z,ue,ce,se):ve&&(fe!==dt||ke>0&&ke&64)?xe(ve,G,Z,!1,!0):(fe===dt&&ke&384||!ue&&Ne&16)&&xe(Ee,G,Z),se&&Ue(U)}(Ge&&(st=he&&he.onVnodeUnmounted)||Re)&&Nr(()=>{st&&Mn(st,G,U),Re&&Fs(U,null,G,"unmounted")},Z)},Ue=U=>{const{type:G,el:Z,anchor:se,transition:ue}=U;if(G===dt){Ke(Z,se);return}if(G===Xd){L(U);return}const fe=()=>{o(Z),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(U.shapeFlag&1&&ue&&!ue.persisted){const{leave:he,delayLeave:ye}=ue,Ee=()=>he(Z,fe);ye?ye(U.el,fe,Ee):Ee()}else fe()},Ke=(U,G)=>{let Z;for(;U!==G;)Z=m(U),o(U),U=Z;o(G)},et=(U,G,Z)=>{const{bum:se,scope:ue,update:fe,subTree:he,um:ye}=U;se&&Qc(se),ue.stop(),fe&&(fe.active=!1,_e(he,U,G,Z)),ye&&Nr(ye,G),Nr(()=>{U.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},xe=(U,G,Z,se=!1,ue=!1,fe=0)=>{for(let he=fe;he<U.length;he++)_e(U[he],G,Z,se,ue)},Q=U=>U.shapeFlag&6?Q(U.component.subTree):U.shapeFlag&128?U.suspense.next():m(U.anchor||U.el),ae=(U,G,Z)=>{U==null?G._vnode&&_e(G._vnode,null,null,!0):B(G._vnode||null,U,G,null,null,null,Z),D1(),lE(),G._vnode=U},ce={p:B,um:_e,m:Fe,r:Ue,mt:F,mc:j,pc:J,pbc:ie,n:Q,o:e};let Le,Be;return t&&([Le,Be]=t(ce)),{render:ae,hydrate:Le,createApp:tk(ae,Le)}}function $s({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function TE(e,t,r=!1){const i=e.children,o=t.children;if(Me(i)&&Me(o))for(let a=0;a<i.length;a++){const c=i[a];let h=o[a];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=o[a]=ts(o[a]),h.el=c.el),r||TE(c,h)),h.type===sh&&(h.el=c.el)}}function lk(e){const t=e.slice(),r=[0];let i,o,a,c,h;const d=e.length;for(i=0;i<d;i++){const p=e[i];if(p!==0){if(o=r[r.length-1],e[o]<p){t[i]=o,r.push(i);continue}for(a=0,c=r.length-1;a<c;)h=a+c>>1,e[r[h]]<p?a=h+1:c=h;p<e[r[a]]&&(a>0&&(t[i]=r[a-1]),r[a]=i)}}for(a=r.length,c=r[a-1];a-- >0;)r[a]=c,c=t[c];return r}const ck=e=>e.__isTeleport,dt=Symbol.for("v-fgt"),sh=Symbol.for("v-txt"),Ur=Symbol.for("v-cmt"),Xd=Symbol.for("v-stc"),Tu=[];let an=null;function de(e=!1){Tu.push(an=e?null:[])}function kE(){Tu.pop(),an=Tu[Tu.length-1]||null}let aa=1;function O1(e){aa+=e}function LE(e){return e.dynamicChildren=aa>0?an||Go:null,kE(),aa>0&&an&&an.push(e),e}function $e(e,t,r,i,o,a){return LE(pe(e,t,r,i,o,a,!0))}function Ze(e,t,r,i,o){return LE(ze(e,t,r,i,o,!0))}function Hu(e){return e?e.__v_isVNode===!0:!1}function qn(e,t){return e.type===t.type&&e.key===t.key}const oh="__vInternal",BE=({key:e})=>e??null,Zc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Wt(e)||Ot(e)||Ve(e)?{i:cr,r:e,k:t,f:!!r}:e:null);function pe(e,t=null,r=null,i=0,o=null,a=e===dt?0:1,c=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&BE(t),ref:t&&Zc(t),scopeId:rh,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:cr};return h?(lg(d,r),a&128&&e.normalize(d)):r&&(d.shapeFlag|=Wt(r)?8:16),aa>0&&!c&&an&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&an.push(d),d}const ze=fk;function fk(e,t=null,r=null,i=0,o=null,a=!1){if((!e||e===VT)&&(e=Ur),Hu(e)){const h=hs(e,t,!0);return r&&lg(h,r),aa>0&&!a&&an&&(h.shapeFlag&6?an[an.indexOf(e)]=h:an.push(h)),h.patchFlag|=-2,h}if(wk(e)&&(e=e.__vccOpts),t){t=hk(t);let{class:h,style:d}=t;h&&!Wt(h)&&(t.class=yt(h)),Et(d)&&(rE(d)&&!Me(d)&&(d=Vt({},d)),t.style=zr(d))}const c=Wt(e)?1:DT(e)?128:ck(e)?64:Et(e)?4:Ve(e)?2:0;return pe(e,t,r,i,o,c,a,!0)}function hk(e){return e?rE(e)||oh in e?Vt({},e):e:null}function hs(e,t,r=!1){const{props:i,ref:o,patchFlag:a,children:c}=e,h=t?cs(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&BE(h),ref:t&&t.ref?r&&o?Me(o)?o.concat(Zc(t)):[o,Zc(t)]:Zc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==dt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hs(e.ssContent),ssFallback:e.ssFallback&&hs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _r(e=" ",t=0){return ze(sh,null,e,t)}function nt(e="",t=!1){return t?(de(),Ze(Ur,null,e)):ze(Ur,null,e)}function wn(e){return e==null||typeof e=="boolean"?ze(Ur):Me(e)?ze(dt,null,e.slice()):typeof e=="object"?ts(e):ze(sh,null,String(e))}function ts(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function lg(e,t){let r=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Me(t))r=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),lg(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(oh in t)?t._ctx=cr:o===3&&cr&&(cr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:cr},r=32):(t=String(t),i&64?(r=16,t=[_r(t)]):r=8);e.children=t,e.shapeFlag|=r}function cs(...e){const t={};for(let r=0;r<e.length;r++){const i=e[r];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=yt([t.class,i.class]));else if(o==="style")t.style=zr([t.style,i.style]);else if(Xf(o)){const a=t[o],c=i[o];c&&a!==c&&!(Me(a)&&a.includes(c))&&(t[o]=a?[].concat(a,c):c)}else o!==""&&(t[o]=i[o])}return t}function Mn(e,t,r,i=null){ln(e,t,7,[r,i])}const dk=xE();let pk=0;function gk(e,t,r){const i=e.type,o=(t?t.appContext:e.appContext)||dk,a={uid:pk++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new C$(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_E(i,o),emitsOptions:fE(i,o),emit:null,emitted:null,propsDefaults:_t,inheritAttrs:i.inheritAttrs,ctx:_t,data:_t,props:_t,attrs:_t,slots:_t,refs:_t,setupState:_t,setupContext:null,attrsProxy:null,slotsProxy: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 a.ctx={_:a},a.root=t?t.root:a,a.emit=gT.bind(null,a),e.ce&&e.ce(a),a}let ir=null;const nl=()=>ir||cr;let cg,Lo,P1="__VUE_INSTANCE_SETTERS__";(Lo=kp()[P1])||(Lo=kp()[P1]=[]),Lo.push(e=>ir=e),cg=e=>{Lo.length>1?Lo.forEach(t=>t(e)):Lo[0](e)};const ua=e=>{cg(e),e.scope.on()},Gs=()=>{ir&&ir.scope.off(),cg(null)};function OE(e){return e.vnode.shapeFlag&4}let qu=!1;function vk(e,t=!1){qu=t;const{props:r,children:i}=e.vnode,o=OE(e);rk(e,r,o,t),sk(e,i);const a=o?mk(e,t):void 0;return qu=!1,a}function mk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=X0(new Proxy(e.ctx,WT));const{setup:i}=r;if(i){const o=e.setupContext=i.length>1?NE(e):null;ua(e),Aa();const a=ls(i,e,0,[e.props,o]);if(Ea(),Gs(),MA(a)){if(a.then(Gs,Gs),t)return a.then(c=>{qp(e,c,t)}).catch(c=>{rl(c,e,0)});e.asyncDep=a}else qp(e,a,t)}else PE(e,t)}function qp(e,t,r){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Et(t)&&(e.setupState=iE(t)),PE(e,r)}let N1;function PE(e,t,r){const i=e.type;if(!e.render){if(!t&&N1&&!i.render){const o=i.template||ag(e).template;if(o){const{isCustomElement:a,compilerOptions:c}=e.appContext.config,{delimiters:h,compilerOptions:d}=i,p=Vt(Vt({isCustomElement:a,delimiters:h},c),d);i.render=N1(o,p)}}e.render=i.render||_n}ua(e),Aa(),XT(e),Ea(),Gs()}function yk(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return qr(e,"get","$attrs"),t[r]}}))}function NE(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return yk(e)},slots:e.slots,emit:e.emit,expose:t}}function ah(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(iE(X0(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in $u)return $u[r](e)},has(t,r){return r in t||r in $u}}))}function bk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function wk(e){return Ve(e)&&"__vccOpts"in e}const Ae=(e,t)=>cT(e,t,qu);function il(e,t,r){const i=arguments.length;return i===2?Et(t)&&!Me(t)?Hu(t)?ze(e,null,[t]):ze(e,t):ze(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Hu(r)&&(r=[r]),ze(e,t,r))}const Dk=Symbol.for("v-scx"),Ak=()=>Ai(Dk),Ek="3.3.2",xk="http://www.w3.org/2000/svg",Is=typeof document<"u"?document:null,I1=Is&&Is.createElement("template"),Ck={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{const o=t?Is.createElementNS(xk,e):Is.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Is.createTextNode(e),createComment:e=>Is.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Is.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,i,o,a){const c=r?r.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===a||!(o=o.nextSibling)););else{I1.innerHTML=i?`<svg>${e}</svg>`:e;const h=I1.content;if(i){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}t.insertBefore(h,r)}return[c?c.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function _k(e,t,r){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Sk(e,t,r){const i=e.style,o=Wt(r);if(r&&!o){if(t&&!Wt(t))for(const a in t)r[a]==null&&jp(i,a,"");for(const a in r)jp(i,a,r[a])}else{const a=i.display;o?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=a)}}const R1=/\s*!important$/;function jp(e,t,r){if(Me(r))r.forEach(i=>jp(e,t,i));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const i=Fk(e,t);R1.test(r)?e.setProperty(to(i),r.replace(R1,""),"important"):e[i]=r}}const M1=["Webkit","Moz","ms"],Qd={};function Fk(e,t){const r=Qd[t];if(r)return r;let i=Qn(t);if(i!=="filter"&&i in e)return Qd[t]=i;i=Zf(i);for(let o=0;o<M1.length;o++){const a=M1[o]+i;if(a in e)return Qd[t]=a}return t}const z1="http://www.w3.org/1999/xlink";function $k(e,t,r,i,o){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(z1,t.slice(6,t.length)):e.setAttributeNS(z1,t,r);else{const a=x$(t);r==null||a&&!qA(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function Tk(e,t,r,i,o,a,c){if(t==="innerHTML"||t==="textContent"){i&&c(i,o,a),e[t]=r??"";return}const h=e.tagName;if(t==="value"&&h!=="PROGRESS"&&!h.includes("-")){e._value=r;const p=h==="OPTION"?e.getAttribute("value"):e.value,g=r??"";p!==g&&(e.value=g),r==null&&e.removeAttribute(t);return}let d=!1;if(r===""||r==null){const p=typeof e[t];p==="boolean"?r=qA(r):r==null&&p==="string"?(r="",d=!0):p==="number"&&(r=0,d=!0)}try{e[t]=r}catch{}d&&e.removeAttribute(t)}function Ho(e,t,r,i){e.addEventListener(t,r,i)}function kk(e,t,r,i){e.removeEventListener(t,r,i)}function Lk(e,t,r,i,o=null){const a=e._vei||(e._vei={}),c=a[t];if(i&&c)c.value=i;else{const[h,d]=Bk(t);if(i){const p=a[t]=Nk(i,o);Ho(e,h,p,d)}else c&&(kk(e,h,c,d),a[t]=void 0)}}const U1=/(?:Once|Passive|Capture)$/;function Bk(e){let t;if(U1.test(e)){t={};let i;for(;i=e.match(U1);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):to(e.slice(2)),t]}let Yd=0;const Ok=Promise.resolve(),Pk=()=>Yd||(Ok.then(()=>Yd=0),Yd=Date.now());function Nk(e,t){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;ln(Ik(i,r.value),t,5,[i])};return r.value=e,r.attached=Pk(),r}function Ik(e,t){if(Me(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const H1=/^on[a-z]/,Rk=(e,t,r,i,o=!1,a,c,h,d)=>{t==="class"?_k(e,i,o):t==="style"?Sk(e,r,i):Xf(t)?M0(t)||Lk(e,t,r,i,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mk(e,t,i,o))?Tk(e,t,i,a,c,h,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),$k(e,t,i,o))};function Mk(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&H1.test(t)&&Ve(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||H1.test(t)&&Wt(r)?!1:t in e}const Qi="transition",pu="animation",fg=(e,{slots:t})=>il(BT,zk(e),t);fg.displayName="Transition";const IE={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};fg.props=Vt({},gE,IE);const Ts=(e,t=[])=>{Me(e)?e.forEach(r=>r(...t)):e&&e(...t)},q1=e=>e?Me(e)?e.some(t=>t.length>1):e.length>1:!1;function zk(e){const t={};for(const z in e)z in IE||(t[z]=e[z]);if(e.css===!1)return t;const{name:r="v",type:i,duration:o,enterFromClass:a=`${r}-enter-from`,enterActiveClass:c=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:d=a,appearActiveClass:p=c,appearToClass:g=h,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,$=Uk(o),B=$&&$[0],x=$&&$[1],{onBeforeEnter:C,onEnter:S,onEnterCancelled:N,onLeave:L,onLeaveCancelled:T,onBeforeAppear:R=C,onAppear:M=S,onAppearCancelled:j=N}=t,te=(z,O,F)=>{ks(z,O?g:h),ks(z,O?p:c),F&&F()},ie=(z,O)=>{z._isLeaving=!1,ks(z,y),ks(z,w),ks(z,m),O&&O()},ee=z=>(O,F)=>{const D=z?M:S,I=()=>te(O,z,F);Ts(D,[O,I]),j1(()=>{ks(O,z?d:a),Yi(O,z?g:h),q1(D)||V1(O,i,B,I)})};return Vt(t,{onBeforeEnter(z){Ts(C,[z]),Yi(z,a),Yi(z,c)},onBeforeAppear(z){Ts(R,[z]),Yi(z,d),Yi(z,p)},onEnter:ee(!1),onAppear:ee(!0),onLeave(z,O){z._isLeaving=!0;const F=()=>ie(z,O);Yi(z,y),jk(),Yi(z,m),j1(()=>{z._isLeaving&&(ks(z,y),Yi(z,w),q1(L)||V1(z,i,x,F))}),Ts(L,[z,F])},onEnterCancelled(z){te(z,!1),Ts(N,[z])},onAppearCancelled(z){te(z,!0),Ts(j,[z])},onLeaveCancelled(z){ie(z),Ts(T,[z])}})}function Uk(e){if(e==null)return null;if(Et(e))return[Zd(e.enter),Zd(e.leave)];{const t=Zd(e);return[t,t]}}function Zd(e){return HA(e)}function Yi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ks(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function j1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hk=0;function V1(e,t,r,i){const o=e._endId=++Hk,a=()=>{o===e._endId&&i()};if(r)return setTimeout(a,r);const{type:c,timeout:h,propCount:d}=qk(e,t);if(!c)return i();const p=c+"end";let g=0;const y=()=>{e.removeEventListener(p,m),a()},m=w=>{w.target===e&&++g>=d&&y()};setTimeout(()=>{g<d&&y()},h+1),e.addEventListener(p,m)}function qk(e,t){const r=window.getComputedStyle(e),i=$=>(r[$]||"").split(", "),o=i(`${Qi}Delay`),a=i(`${Qi}Duration`),c=W1(o,a),h=i(`${pu}Delay`),d=i(`${pu}Duration`),p=W1(h,d);let g=null,y=0,m=0;t===Qi?c>0&&(g=Qi,y=c,m=a.length):t===pu?p>0&&(g=pu,y=p,m=d.length):(y=Math.max(c,p),g=y>0?c>p?Qi:pu:null,m=g?g===Qi?a.length:d.length:0);const w=g===Qi&&/\b(transform|all)(,|$)/.test(i(`${Qi}Property`).toString());return{type:g,timeout:y,propCount:m,hasTransform:w}}function W1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,i)=>G1(r)+G1(e[i])))}function G1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function jk(){return document.body.offsetHeight}const K1=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Me(t)?r=>Qc(t,r):t};function Vk(e){e.target.composing=!0}function X1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wk={created(e,{modifiers:{lazy:t,trim:r,number:i}},o){e._assign=K1(o);const a=i||o.props&&o.props.type==="number";Ho(e,t?"change":"input",c=>{if(c.target.composing)return;let h=e.value;r&&(h=h.trim()),a&&(h=Tp(h)),e._assign(h)}),r&&Ho(e,"change",()=>{e.value=e.value.trim()}),t||(Ho(e,"compositionstart",Vk),Ho(e,"compositionend",X1),Ho(e,"change",X1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:i,number:o}},a){if(e._assign=K1(a),e.composing||document.activeElement===e&&e.type!=="range"&&(r||i&&e.value.trim()===t||(o||e.type==="number")&&Tp(e.value)===t))return;const c=t??"";e.value!==c&&(e.value=c)}},Gk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vp=(e,t)=>r=>{if(!("key"in r))return;const i=to(r.key);if(t.some(o=>o===i||Gk[o]===i))return e(r)},Wp={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):gu(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(e),gu(e,!0),i.enter(e)):i.leave(e,()=>{gu(e,!1)}):gu(e,t))},beforeUnmount(e,{value:t}){gu(e,t)}};function gu(e,t){e.style.display=t?e._vod:"none"}const Kk=Vt({patchProp:Rk},Ck);let Q1;function Xk(){return Q1||(Q1=ak(Kk))}const RE=(...e)=>{const t=Xk().createApp(...e),{mount:r}=t;return t.mount=i=>{const o=Qk(i);if(!o)return;const a=t._component;!Ve(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.innerHTML="";const c=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),c},t};function Qk(e){return Wt(e)?document.querySelector(e):e}const no=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},Yk={};function Zk(e,t){const r=Qs("RouterView");return de(),Ze(r)}const Jk=no(Yk,[["render",Zk]]);/*!
2
+ * vue-router v4.2.0
3
+ * (c) 2023 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const qo=typeof window<"u";function eL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const vt=Object.assign;function Jd(e,t){const r={};for(const i in t){const o=t[i];r[i]=Fn(o)?o.map(e):e(o)}return r}const ku=()=>{},Fn=Array.isArray,tL=/\/$/,rL=e=>e.replace(tL,"");function ep(e,t,r="/"){let i,o={},a="",c="";const h=t.indexOf("#");let d=t.indexOf("?");return h<d&&h>=0&&(d=-1),d>-1&&(i=t.slice(0,d),a=t.slice(d+1,h>-1?h:t.length),o=e(a)),h>-1&&(i=i||t.slice(0,h),c=t.slice(h,t.length)),i=oL(i??t,r),{fullPath:i+(a&&"?")+a+c,path:i,query:o,hash:c}}function nL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Y1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iL(e,t,r){const i=t.matched.length-1,o=r.matched.length-1;return i>-1&&i===o&&la(t.matched[i],r.matched[o])&&ME(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function la(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ME(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!sL(e[r],t[r]))return!1;return!0}function sL(e,t){return Fn(e)?Z1(e,t):Fn(t)?Z1(t,e):e===t}function Z1(e,t){return Fn(t)?e.length===t.length&&e.every((r,i)=>r===t[i]):e.length===1&&e[0]===t}function oL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let a=r.length-1,c,h;for(c=0;c<i.length;c++)if(h=i[c],h!==".")if(h==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+i.slice(c-(c===i.length?1:0)).join("/")}var ju;(function(e){e.pop="pop",e.push="push"})(ju||(ju={}));var Lu;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Lu||(Lu={}));function aL(e){if(!e)if(qo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rL(e)}const uL=/^[^#]+#/;function lL(e,t){return e.replace(uL,"#")+t}function cL(e,t){const r=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-r.left-(t.left||0),top:i.top-r.top-(t.top||0)}}const uh=()=>({left:window.pageXOffset,top:window.pageYOffset});function fL(e){let t;if("el"in e){const r=e.el,i=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?i?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=cL(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function J1(e,t){return(history.state?history.state.position-t:-1)+e}const Gp=new Map;function hL(e,t){Gp.set(e,t)}function dL(e){const t=Gp.get(e);return Gp.delete(e),t}let pL=()=>location.protocol+"//"+location.host;function zE(e,t){const{pathname:r,search:i,hash:o}=t,a=e.indexOf("#");if(a>-1){let h=o.includes(e.slice(a))?e.slice(a).length:1,d=o.slice(h);return d[0]!=="/"&&(d="/"+d),Y1(d,"")}return Y1(r,e)+i+o}function gL(e,t,r,i){let o=[],a=[],c=null;const h=({state:m})=>{const w=zE(e,location),$=r.value,B=t.value;let x=0;if(m){if(r.value=w,t.value=m,c&&c===$){c=null;return}x=B?m.position-B.position:0}else i(w);o.forEach(C=>{C(r.value,$,{delta:x,type:ju.pop,direction:x?x>0?Lu.forward:Lu.back:Lu.unknown})})};function d(){c=r.value}function p(m){o.push(m);const w=()=>{const $=o.indexOf(m);$>-1&&o.splice($,1)};return a.push(w),w}function g(){const{history:m}=window;m.state&&m.replaceState(vt({},m.state,{scroll:uh()}),"")}function y(){for(const m of a)m();a=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:d,listen:p,destroy:y}}function eb(e,t,r,i=!1,o=!1){return{back:e,current:t,forward:r,replaced:i,position:window.history.length,scroll:o?uh():null}}function vL(e){const{history:t,location:r}=window,i={value:zE(e,r)},o={value:t.state};o.value||a(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(d,p,g){const y=e.indexOf("#"),m=y>-1?(r.host&&document.querySelector("base")?e:e.slice(y))+d:pL()+e+d;try{t[g?"replaceState":"pushState"](p,"",m),o.value=p}catch(w){console.error(w),r[g?"replace":"assign"](m)}}function c(d,p){const g=vt({},t.state,eb(o.value.back,d,o.value.forward,!0),p,{position:o.value.position});a(d,g,!0),i.value=d}function h(d,p){const g=vt({},o.value,t.state,{forward:d,scroll:uh()});a(g.current,g,!0);const y=vt({},eb(i.value,d,null),{position:g.position+1},p);a(d,y,!1),i.value=d}return{location:i,state:o,push:h,replace:c}}function mL(e){e=aL(e);const t=vL(e),r=gL(e,t.state,t.location,t.replace);function i(a,c=!0){c||r.pauseListeners(),history.go(a)}const o=vt({location:"",base:e,go:i,createHref:lL.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function yL(e){return typeof e=="string"||e&&typeof e=="object"}function UE(e){return typeof e=="string"||typeof e=="symbol"}const Zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},HE=Symbol("");var tb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(tb||(tb={}));function ca(e,t){return vt(new Error,{type:e,[HE]:!0},t)}function hi(e,t){return e instanceof Error&&HE in e&&(t==null||!!(e.type&t))}const rb="[^/]+?",bL={sensitive:!1,strict:!1,start:!0,end:!0},wL=/[.+*?^${}()[\]/\\]/g;function DL(e,t){const r=vt({},bL,t),i=[];let o=r.start?"^":"";const a=[];for(const p of e){const g=p.length?[]:[90];r.strict&&!p.length&&(o+="/");for(let y=0;y<p.length;y++){const m=p[y];let w=40+(r.sensitive?.25:0);if(m.type===0)y||(o+="/"),o+=m.value.replace(wL,"\\$&"),w+=40;else if(m.type===1){const{value:$,repeatable:B,optional:x,regexp:C}=m;a.push({name:$,repeatable:B,optional:x});const S=C||rb;if(S!==rb){w+=10;try{new RegExp(`(${S})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${$}" (${S}): `+L.message)}}let N=B?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;y||(N=x&&p.length<2?`(?:/${N})`:"/"+N),x&&(N+="?"),o+=N,w+=20,x&&(w+=-8),B&&(w+=-20),S===".*"&&(w+=-50)}g.push(w)}i.push(g)}if(r.strict&&r.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}r.strict||(o+="/?"),r.end?o+="$":r.strict&&(o+="(?:/|$)");const c=new RegExp(o,r.sensitive?"":"i");function h(p){const g=p.match(c),y={};if(!g)return null;for(let m=1;m<g.length;m++){const w=g[m]||"",$=a[m-1];y[$.name]=w&&$.repeatable?w.split("/"):w}return y}function d(p){let g="",y=!1;for(const m of e){(!y||!g.endsWith("/"))&&(g+="/"),y=!1;for(const w of m)if(w.type===0)g+=w.value;else if(w.type===1){const{value:$,repeatable:B,optional:x}=w,C=$ in p?p[$]:"";if(Fn(C)&&!B)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const S=Fn(C)?C.join("/"):C;if(!S)if(x)m.length<2&&(g.endsWith("/")?g=g.slice(0,-1):y=!0);else throw new Error(`Missing required param "${$}"`);g+=S}}return g||"/"}return{re:c,score:i,keys:a,parse:h,stringify:d}}function AL(e,t){let r=0;for(;r<e.length&&r<t.length;){const i=t[r]-e[r];if(i)return i;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function EL(e,t){let r=0;const i=e.score,o=t.score;for(;r<i.length&&r<o.length;){const a=AL(i[r],o[r]);if(a)return a;r++}if(Math.abs(o.length-i.length)===1){if(nb(i))return 1;if(nb(o))return-1}return o.length-i.length}function nb(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const xL={type:0,value:""},CL=/[a-zA-Z0-9_]/;function _L(e){if(!e)return[[]];if(e==="/")return[[xL]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,i=r;const o=[];let a;function c(){a&&o.push(a),a=[]}let h=0,d,p="",g="";function y(){p&&(r===0?a.push({type:0,value:p}):r===1||r===2||r===3?(a.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:g,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),p="")}function m(){p+=d}for(;h<e.length;){if(d=e[h++],d==="\\"&&r!==2){i=r,r=4;continue}switch(r){case 0:d==="/"?(p&&y(),c()):d===":"?(y(),r=1):m();break;case 4:m(),r=i;break;case 1:d==="("?r=2:CL.test(d)?m():(y(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--);break;case 2:d===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+d:r=3:g+=d;break;case 3:y(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--,g="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),c(),o}function SL(e,t,r){const i=DL(_L(e.path),r),o=vt(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function FL(e,t){const r=[],i=new Map;t=ob({strict:!1,end:!0,sensitive:!1},t);function o(g){return i.get(g)}function a(g,y,m){const w=!m,$=$L(g);$.aliasOf=m&&m.record;const B=ob(t,g),x=[$];if("alias"in g){const N=typeof g.alias=="string"?[g.alias]:g.alias;for(const L of N)x.push(vt({},$,{components:m?m.record.components:$.components,path:L,aliasOf:m?m.record:$}))}let C,S;for(const N of x){const{path:L}=N;if(y&&L[0]!=="/"){const T=y.record.path,R=T[T.length-1]==="/"?"":"/";N.path=y.record.path+(L&&R+L)}if(C=SL(N,y,B),m?m.alias.push(C):(S=S||C,S!==C&&S.alias.push(C),w&&g.name&&!sb(C)&&c(g.name)),$.children){const T=$.children;for(let R=0;R<T.length;R++)a(T[R],C,m&&m.children[R])}m=m||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&d(C)}return S?()=>{c(S)}:ku}function c(g){if(UE(g)){const y=i.get(g);y&&(i.delete(g),r.splice(r.indexOf(y),1),y.children.forEach(c),y.alias.forEach(c))}else{const y=r.indexOf(g);y>-1&&(r.splice(y,1),g.record.name&&i.delete(g.record.name),g.children.forEach(c),g.alias.forEach(c))}}function h(){return r}function d(g){let y=0;for(;y<r.length&&EL(g,r[y])>=0&&(g.record.path!==r[y].record.path||!qE(g,r[y]));)y++;r.splice(y,0,g),g.record.name&&!sb(g)&&i.set(g.record.name,g)}function p(g,y){let m,w={},$,B;if("name"in g&&g.name){if(m=i.get(g.name),!m)throw ca(1,{location:g});B=m.record.name,w=vt(ib(y.params,m.keys.filter(S=>!S.optional).map(S=>S.name)),g.params&&ib(g.params,m.keys.map(S=>S.name))),$=m.stringify(w)}else if("path"in g)$=g.path,m=r.find(S=>S.re.test($)),m&&(w=m.parse($),B=m.record.name);else{if(m=y.name?i.get(y.name):r.find(S=>S.re.test(y.path)),!m)throw ca(1,{location:g,currentLocation:y});B=m.record.name,w=vt({},y.params,g.params),$=m.stringify(w)}const x=[];let C=m;for(;C;)x.unshift(C.record),C=C.parent;return{name:B,path:$,params:w,matched:x,meta:kL(x)}}return e.forEach(g=>a(g)),{addRoute:a,resolve:p,removeRoute:c,getRoutes:h,getRecordMatcher:o}}function ib(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}function $L(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:TL(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function TL(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const i in e.components)t[i]=typeof r=="boolean"?r:r[i];return t}function sb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function kL(e){return e.reduce((t,r)=>vt(t,r.meta),{})}function ob(e,t){const r={};for(const i in e)r[i]=i in t?t[i]:e[i];return r}function qE(e,t){return t.children.some(r=>r===e||qE(e,r))}const jE=/#/g,LL=/&/g,BL=/\//g,OL=/=/g,PL=/\?/g,VE=/\+/g,NL=/%5B/g,IL=/%5D/g,WE=/%5E/g,RL=/%60/g,GE=/%7B/g,ML=/%7C/g,KE=/%7D/g,zL=/%20/g;function hg(e){return encodeURI(""+e).replace(ML,"|").replace(NL,"[").replace(IL,"]")}function UL(e){return hg(e).replace(GE,"{").replace(KE,"}").replace(WE,"^")}function Kp(e){return hg(e).replace(VE,"%2B").replace(zL,"+").replace(jE,"%23").replace(LL,"%26").replace(RL,"`").replace(GE,"{").replace(KE,"}").replace(WE,"^")}function HL(e){return Kp(e).replace(OL,"%3D")}function qL(e){return hg(e).replace(jE,"%23").replace(PL,"%3F")}function jL(e){return e==null?"":qL(e).replace(BL,"%2F")}function wf(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function VL(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<i.length;++o){const a=i[o].replace(VE," "),c=a.indexOf("="),h=wf(c<0?a:a.slice(0,c)),d=c<0?null:wf(a.slice(c+1));if(h in t){let p=t[h];Fn(p)||(p=t[h]=[p]),p.push(d)}else t[h]=d}return t}function ab(e){let t="";for(let r in e){const i=e[r];if(r=HL(r),i==null){i!==void 0&&(t+=(t.length?"&":"")+r);continue}(Fn(i)?i.map(a=>a&&Kp(a)):[i&&Kp(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function WL(e){const t={};for(const r in e){const i=e[r];i!==void 0&&(t[r]=Fn(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const GL=Symbol(""),ub=Symbol(""),dg=Symbol(""),XE=Symbol(""),Xp=Symbol("");function vu(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function rs(e,t,r,i,o){const a=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((c,h)=>{const d=y=>{y===!1?h(ca(4,{from:r,to:t})):y instanceof Error?h(y):yL(y)?h(ca(2,{from:t,to:y})):(a&&i.enterCallbacks[o]===a&&typeof y=="function"&&a.push(y),c())},p=e.call(i&&i.instances[o],t,r,d);let g=Promise.resolve(p);e.length<3&&(g=g.then(d)),g.catch(y=>h(y))})}function tp(e,t,r,i){const o=[];for(const a of e)for(const c in a.components){let h=a.components[c];if(!(t!=="beforeRouteEnter"&&!a.instances[c]))if(KL(h)){const p=(h.__vccOpts||h)[t];p&&o.push(rs(p,r,i,a,c))}else{let d=h();o.push(()=>d.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${a.path}"`));const g=eL(p)?p.default:p;a.components[c]=g;const m=(g.__vccOpts||g)[t];return m&&rs(m,r,i,a,c)()}))}}return o}function KL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lb(e){const t=Ai(dg),r=Ai(XE),i=Ae(()=>t.resolve(Y(e.to))),o=Ae(()=>{const{matched:d}=i.value,{length:p}=d,g=d[p-1],y=r.matched;if(!g||!y.length)return-1;const m=y.findIndex(la.bind(null,g));if(m>-1)return m;const w=cb(d[p-2]);return p>1&&cb(g)===w&&y[y.length-1].path!==w?y.findIndex(la.bind(null,d[p-2])):m}),a=Ae(()=>o.value>-1&&ZL(r.params,i.value.params)),c=Ae(()=>o.value>-1&&o.value===r.matched.length-1&&ME(r.params,i.value.params));function h(d={}){return YL(d)?t[Y(e.replace)?"replace":"push"](Y(e.to)).catch(ku):Promise.resolve()}return{route:i,href:Ae(()=>i.value.href),isActive:a,isExactActive:c,navigate:h}}const XL=it({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:lb,setup(e,{slots:t}){const r=Yr(lb(e)),{options:i}=Ai(dg),o=Ae(()=>({[fb(e.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[fb(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:il("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},a)}}}),QL=XL;function YL(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 ZL(e,t){for(const r in t){const i=t[r],o=e[r];if(typeof i=="string"){if(i!==o)return!1}else if(!Fn(o)||o.length!==i.length||i.some((a,c)=>a!==o[c]))return!1}return!0}function cb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fb=(e,t,r)=>e??t??r,JL=it({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const i=Ai(Xp),o=Ae(()=>e.route||i.value),a=Ai(ub,0),c=Ae(()=>{let p=Y(a);const{matched:g}=o.value;let y;for(;(y=g[p])&&!y.components;)p++;return p}),h=Ae(()=>o.value.matched[c.value]);Yc(ub,Ae(()=>c.value+1)),Yc(GL,h),Yc(Xp,o);const d=Xe();return jt(()=>[d.value,h.value,e.name],([p,g,y],[m,w,$])=>{g&&(g.instances[y]=p,w&&w!==g&&p&&p===m&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!la(g,w)||!m)&&(g.enterCallbacks[y]||[]).forEach(B=>B(p))},{flush:"post"}),()=>{const p=o.value,g=e.name,y=h.value,m=y&&y.components[g];if(!m)return hb(r.default,{Component:m,route:p});const w=y.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,x=il(m,vt({},$,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(y.instances[g]=null)},ref:d}));return hb(r.default,{Component:x,route:p})||x}}});function hb(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const eB=JL;function tB(e){const t=FL(e.routes,e),r=e.parseQuery||VL,i=e.stringifyQuery||ab,o=e.history,a=vu(),c=vu(),h=vu(),d=xa(Zi);let p=Zi;qo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Jd.bind(null,Q=>""+Q),y=Jd.bind(null,jL),m=Jd.bind(null,wf);function w(Q,ae){let ce,Le;return UE(Q)?(ce=t.getRecordMatcher(Q),Le=ae):Le=Q,t.addRoute(Le,ce)}function $(Q){const ae=t.getRecordMatcher(Q);ae&&t.removeRoute(ae)}function B(){return t.getRoutes().map(Q=>Q.record)}function x(Q){return!!t.getRecordMatcher(Q)}function C(Q,ae){if(ae=vt({},ae||d.value),typeof Q=="string"){const Z=ep(r,Q,ae.path),se=t.resolve({path:Z.path},ae),ue=o.createHref(Z.fullPath);return vt(Z,se,{params:m(se.params),hash:wf(Z.hash),redirectedFrom:void 0,href:ue})}let ce;if("path"in Q)ce=vt({},Q,{path:ep(r,Q.path,ae.path).path});else{const Z=vt({},Q.params);for(const se in Z)Z[se]==null&&delete Z[se];ce=vt({},Q,{params:y(Z)}),ae.params=y(ae.params)}const Le=t.resolve(ce,ae),Be=Q.hash||"";Le.params=g(m(Le.params));const U=nL(i,vt({},Q,{hash:UL(Be),path:Le.path})),G=o.createHref(U);return vt({fullPath:U,hash:Be,query:i===ab?WL(Q.query):Q.query||{}},Le,{redirectedFrom:void 0,href:G})}function S(Q){return typeof Q=="string"?ep(r,Q,d.value.path):vt({},Q)}function N(Q,ae){if(p!==Q)return ca(8,{from:ae,to:Q})}function L(Q){return M(Q)}function T(Q){return L(vt(S(Q),{replace:!0}))}function R(Q){const ae=Q.matched[Q.matched.length-1];if(ae&&ae.redirect){const{redirect:ce}=ae;let Le=typeof ce=="function"?ce(Q):ce;return typeof Le=="string"&&(Le=Le.includes("?")||Le.includes("#")?Le=S(Le):{path:Le},Le.params={}),vt({query:Q.query,hash:Q.hash,params:"path"in Le?{}:Q.params},Le)}}function M(Q,ae){const ce=p=C(Q),Le=d.value,Be=Q.state,U=Q.force,G=Q.replace===!0,Z=R(ce);if(Z)return M(vt(S(Z),{state:typeof Z=="object"?vt({},Be,Z.state):Be,force:U,replace:G}),ae||ce);const se=ce;se.redirectedFrom=ae;let ue;return!U&&iL(i,Le,ce)&&(ue=ca(16,{to:se,from:Le}),Fe(Le,Le,!0,!1)),(ue?Promise.resolve(ue):ie(se,Le)).catch(fe=>hi(fe)?hi(fe,2)?fe:ge(fe):J(fe,se,Le)).then(fe=>{if(fe){if(hi(fe,2))return M(vt({replace:G},S(fe.to),{state:typeof fe.to=="object"?vt({},Be,fe.to.state):Be,force:U}),ae||se)}else fe=z(se,Le,!0,G,Be);return ee(se,Le,fe),fe})}function j(Q,ae){const ce=N(Q,ae);return ce?Promise.reject(ce):Promise.resolve()}function te(Q){const ae=Ke.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(Q):Q()}function ie(Q,ae){let ce;const[Le,Be,U]=rB(Q,ae);ce=tp(Le.reverse(),"beforeRouteLeave",Q,ae);for(const Z of Le)Z.leaveGuards.forEach(se=>{ce.push(rs(se,Q,ae))});const G=j.bind(null,Q,ae);return ce.push(G),xe(ce).then(()=>{ce=[];for(const Z of a.list())ce.push(rs(Z,Q,ae));return ce.push(G),xe(ce)}).then(()=>{ce=tp(Be,"beforeRouteUpdate",Q,ae);for(const Z of Be)Z.updateGuards.forEach(se=>{ce.push(rs(se,Q,ae))});return ce.push(G),xe(ce)}).then(()=>{ce=[];for(const Z of Q.matched)if(Z.beforeEnter&&!ae.matched.includes(Z))if(Fn(Z.beforeEnter))for(const se of Z.beforeEnter)ce.push(rs(se,Q,ae));else ce.push(rs(Z.beforeEnter,Q,ae));return ce.push(G),xe(ce)}).then(()=>(Q.matched.forEach(Z=>Z.enterCallbacks={}),ce=tp(U,"beforeRouteEnter",Q,ae),ce.push(G),xe(ce))).then(()=>{ce=[];for(const Z of c.list())ce.push(rs(Z,Q,ae));return ce.push(G),xe(ce)}).catch(Z=>hi(Z,8)?Z:Promise.reject(Z))}function ee(Q,ae,ce){for(const Le of h.list())te(()=>Le(Q,ae,ce))}function z(Q,ae,ce,Le,Be){const U=N(Q,ae);if(U)return U;const G=ae===Zi,Z=qo?history.state:{};ce&&(Le||G?o.replace(Q.fullPath,vt({scroll:G&&Z&&Z.scroll},Be)):o.push(Q.fullPath,Be)),d.value=Q,Fe(Q,ae,ce,G),ge()}let O;function F(){O||(O=o.listen((Q,ae,ce)=>{if(!et.listening)return;const Le=C(Q),Be=R(Le);if(Be){M(vt(Be,{replace:!0}),Le).catch(ku);return}p=Le;const U=d.value;qo&&hL(J1(U.fullPath,ce.delta),uh()),ie(Le,U).catch(G=>hi(G,12)?G:hi(G,2)?(M(G.to,Le).then(Z=>{hi(Z,20)&&!ce.delta&&ce.type===ju.pop&&o.go(-1,!1)}).catch(ku),Promise.reject()):(ce.delta&&o.go(-ce.delta,!1),J(G,Le,U))).then(G=>{G=G||z(Le,U,!1),G&&(ce.delta&&!hi(G,8)?o.go(-ce.delta,!1):ce.type===ju.pop&&hi(G,20)&&o.go(-1,!1)),ee(Le,U,G)}).catch(ku)}))}let D=vu(),I=vu(),V;function J(Q,ae,ce){ge(Q);const Le=I.list();return Le.length?Le.forEach(Be=>Be(Q,ae,ce)):console.error(Q),Promise.reject(Q)}function oe(){return V&&d.value!==Zi?Promise.resolve():new Promise((Q,ae)=>{D.add([Q,ae])})}function ge(Q){return V||(V=!Q,F(),D.list().forEach(([ae,ce])=>Q?ce(Q):ae()),D.reset()),Q}function Fe(Q,ae,ce,Le){const{scrollBehavior:Be}=e;if(!qo||!Be)return Promise.resolve();const U=!ce&&dL(J1(Q.fullPath,0))||(Le||!ce)&&history.state&&history.state.scroll||null;return Ci().then(()=>Be(Q,ae,U)).then(G=>G&&fL(G)).catch(G=>J(G,Q,ae))}const _e=Q=>o.go(Q);let Ue;const Ke=new Set,et={currentRoute:d,listening:!0,addRoute:w,removeRoute:$,hasRoute:x,getRoutes:B,resolve:C,options:e,push:L,replace:T,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:a.add,beforeResolve:c.add,afterEach:h.add,onError:I.add,isReady:oe,install(Q){const ae=this;Q.component("RouterLink",QL),Q.component("RouterView",eB),Q.config.globalProperties.$router=ae,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>Y(d)}),qo&&!Ue&&d.value===Zi&&(Ue=!0,L(o.location).catch(Be=>{}));const ce={};for(const Be in Zi)ce[Be]=Ae(()=>d.value[Be]);Q.provide(dg,ae),Q.provide(XE,Yr(ce)),Q.provide(Xp,d);const Le=Q.unmount;Ke.add(Q),Q.unmount=function(){Ke.delete(Q),Ke.size<1&&(p=Zi,O&&O(),O=null,d.value=Zi,Ue=!1,V=!1),Le()}}};function xe(Q){return Q.reduce((ae,ce)=>ae.then(()=>te(ce)),Promise.resolve())}return et}function rB(e,t){const r=[],i=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let c=0;c<a;c++){const h=t.matched[c];h&&(e.matched.find(p=>la(p,h))?i.push(h):r.push(h));const d=e.matched[c];d&&(t.matched.find(p=>la(p,d))||o.push(d))}return[r,i,o]}function Bi(e){return e.split("-")[0]}function Zo(e){return e.split("-")[1]}function sl(e){return["top","bottom"].includes(Bi(e))?"x":"y"}function pg(e){return e==="y"?"height":"width"}function db(e){let{reference:t,floating:r,placement:i}=e;const o=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2;let c;switch(Bi(i)){case"top":c={x:o,y:t.y-r.height};break;case"bottom":c={x:o,y:t.y+t.height};break;case"right":c={x:t.x+t.width,y:a};break;case"left":c={x:t.x-r.width,y:a};break;default:c={x:t.x,y:t.y}}const h=sl(i),d=pg(h);switch(Zo(i)){case"start":c[h]=c[h]-(t[d]/2-r[d]/2);break;case"end":c[h]=c[h]+(t[d]/2-r[d]/2);break}return c}const nB=async(e,t,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:a=[],platform:c}=r;let h=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=db({...h,placement:i}),g=i,y={};for(let m=0;m<a.length;m++){const{name:w,fn:$}=a[m],{x:B,y:x,data:C,reset:S}=await $({x:d,y:p,initialPlacement:i,placement:g,strategy:o,middlewareData:y,rects:h,platform:c,elements:{reference:e,floating:t}});if(d=B??d,p=x??p,y={...y,[w]:C??{}},S){typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(h=S.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:p}=db({...h,placement:g})),m=-1;continue}}return{x:d,y:p,placement:g,strategy:o,middlewareData:y}};function iB(e){return{top:0,right:0,bottom:0,left:0,...e}}function QE(e){return typeof e!="number"?iB(e):{top:e,right:e,bottom:e,left:e}}function Qp(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function lh(e,t){t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:h}=e,{boundary:d="clippingParents",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:y=!1,padding:m=0}=t,w=QE(m),B=c[y?g==="floating"?"reference":"floating":g],x=await o.getClippingClientRect({element:await o.isElement(B)?B:B.contextElement||await o.getDocumentElement({element:c.floating}),boundary:d,rootBoundary:p}),C=Qp(await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g==="floating"?{...a.floating,x:r,y:i}:a.reference,offsetParent:await o.getOffsetParent({element:c.floating}),strategy:h}));return{top:x.top-C.top+w.top,bottom:C.bottom-x.bottom+w.bottom,left:x.left-C.left+w.left,right:C.right-x.right+w.right}}const sB=Math.min,Os=Math.max;function Yp(e,t,r){return Os(e,sB(t,r))}const oB=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:i=0}=e??{},{x:o,y:a,placement:c,rects:h,platform:d}=t;if(r==null)return{};const p=QE(i),g={x:o,y:a},y=Bi(c),m=sl(y),w=pg(m),$=await d.getDimensions({element:r}),B=m==="y"?"top":"left",x=m==="y"?"bottom":"right",C=h.reference[w]+h.reference[m]-g[m]-h.floating[w],S=g[m]-h.reference[m],N=await d.getOffsetParent({element:r}),L=N?m==="y"?N.clientHeight||0:N.clientWidth||0:0,T=C/2-S/2,R=p[B],M=L-$[w]-p[x],j=L/2-$[w]/2+T,te=Yp(R,j,M);return{data:{[m]:te,centerOffset:j-te}}}}),aB={left:"right",right:"left",bottom:"top",top:"bottom"};function Df(e){return e.replace(/left|right|bottom|top/g,t=>aB[t])}function YE(e,t){const r=Zo(e)==="start",i=sl(e),o=pg(i);let a=i==="x"?r?"right":"left":r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Df(a)),{main:a,cross:Df(a)}}const uB={start:"end",end:"start"};function Zp(e){return e.replace(/start|end/g,t=>uB[t])}const lB=["top","right","bottom","left"],cB=lB.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function fB(e,t,r){return(e?[...r.filter(o=>Zo(o)===e),...r.filter(o=>Zo(o)!==e)]:r.filter(o=>Bi(o)===o)).filter(o=>e?Zo(o)===e||(t?Zp(o)!==o:!1):!0)}const hB=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,o,a,c,h;const{x:d,y:p,rects:g,middlewareData:y,placement:m}=t,{alignment:w=null,allowedPlacements:$=cB,autoAlignment:B=!0,...x}=e;if((r=y.autoPlacement)!=null&&r.skip)return{};const C=fB(w,B,$),S=await lh(t,x),N=(i=(o=y.autoPlacement)==null?void 0:o.index)!=null?i:0,L=C[N],{main:T,cross:R}=YE(L,g);if(m!==L)return{x:d,y:p,reset:{placement:C[0]}};const M=[S[Bi(L)],S[T],S[R]],j=[...(a=(c=y.autoPlacement)==null?void 0:c.overflows)!=null?a:[],{placement:L,overflows:M}],te=C[N+1];if(te)return{data:{index:N+1,overflows:j},reset:{placement:te}};const ie=j.slice().sort((z,O)=>z.overflows[0]-O.overflows[0]),ee=(h=ie.find(z=>{let{overflows:O}=z;return O.every(F=>F<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:ee??ie[0].placement}}}}};function dB(e){const t=Df(e);return[Zp(e),t,Zp(t)]}const pB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;const{placement:o,middlewareData:a,rects:c,initialPlacement:h}=t;if((r=a.flip)!=null&&r.skip)return{};const{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",flipAlignment:m=!0,...w}=e,$=Bi(o),x=g||($===h||!m?[Df(h)]:dB(h)),C=[h,...x],S=await lh(t,w),N=[];let L=((i=a.flip)==null?void 0:i.overflows)||[];if(d&&N.push(S[$]),p){const{main:j,cross:te}=YE(o,c);N.push(S[j],S[te])}if(L=[...L,{placement:o,overflows:N}],!N.every(j=>j<=0)){var T,R;const j=((T=(R=a.flip)==null?void 0:R.index)!=null?T:0)+1,te=C[j];if(te)return{data:{index:j,overflows:L},reset:{placement:te}};let ie="bottom";switch(y){case"bestFit":{var M;const ee=(M=L.slice().sort((z,O)=>z.overflows.filter(F=>F>0).reduce((F,D)=>F+D,0)-O.overflows.filter(F=>F>0).reduce((F,D)=>F+D,0))[0])==null?void 0:M.placement;ee&&(ie=ee);break}case"initialPlacement":ie=h;break}return{data:{skip:!0},reset:{placement:ie}}}return{}}}};function gB(e){let{placement:t,rects:r,value:i}=e;const o=Bi(t),a=["left","top"].includes(o)?-1:1,c=typeof i=="function"?i({...r,placement:t}):i,{mainAxis:h,crossAxis:d}=typeof c=="number"?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};return sl(o)==="x"?{x:d,y:h*a}:{x:h*a,y:d}}const vB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:r,y:i,placement:o,rects:a}=t,c=gB({placement:o,rects:a,value:e});return{x:r+c.x,y:i+c.y,data:c}}}};function mB(e){return e==="x"?"y":"x"}const yB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:h={fn:x=>{let{x:C,y:S}=x;return{x:C,y:S}}},...d}=e,p={x:r,y:i},g=await lh(t,d),y=sl(Bi(o)),m=mB(y);let w=p[y],$=p[m];if(a){const x=y==="y"?"top":"left",C=y==="y"?"bottom":"right",S=w+g[x],N=w-g[C];w=Yp(S,w,N)}if(c){const x=m==="y"?"top":"left",C=m==="y"?"bottom":"right",S=$+g[x],N=$-g[C];$=Yp(S,$,N)}const B=h.fn({...t,[y]:w,[m]:$});return{...B,data:{x:B.x-r,y:B.y-i}}}}},bB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r;const{placement:i,rects:o,middlewareData:a}=t,{apply:c,...h}=e;if((r=a.size)!=null&&r.skip)return{};const d=await lh(t,h),p=Bi(i),g=Zo(i)==="end";let y,m;p==="top"||p==="bottom"?(y=p,m=g?"left":"right"):(m=p,y=g?"top":"bottom");const w=Os(d.left,0),$=Os(d.right,0),B=Os(d.top,0),x=Os(d.bottom,0),C={height:o.floating.height-(["left","right"].includes(i)?2*(B!==0||x!==0?B+x:Os(d.top,d.bottom)):d[y]),width:o.floating.width-(["top","bottom"].includes(i)?2*(w!==0||$!==0?w+$:Os(d.left,d.right)):d[m])};return c==null||c({...C,...o}),{data:{skip:!0},reset:{rects:!0}}}}};function gg(e){return(e==null?void 0:e.toString())==="[object Window]"}function ps(e){if(e==null)return window;if(!gg(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ch(e){return ps(e).getComputedStyle(e)}function _i(e){return gg(e)?"":e?(e.nodeName||"").toLowerCase():""}function Si(e){return e instanceof ps(e).HTMLElement}function Af(e){return e instanceof ps(e).Element}function wB(e){return e instanceof ps(e).Node}function ZE(e){const t=ps(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fh(e){const{overflow:t,overflowX:r,overflowY:i}=ch(e);return/auto|scroll|overlay|hidden/.test(t+i+r)}function DB(e){return["table","td","th"].includes(_i(e))}function JE(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),r=ch(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}const pb=Math.min,Bu=Math.max,Ef=Math.round;function fa(e,t){t===void 0&&(t=!1);const r=e.getBoundingClientRect();let i=1,o=1;return t&&Si(e)&&(i=e.offsetWidth>0&&Ef(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ef(r.height)/e.offsetHeight||1),{width:r.width/i,height:r.height/o,top:r.top/o,right:r.right/i,bottom:r.bottom/o,left:r.left/i,x:r.left/i,y:r.top/o}}function gs(e){return((wB(e)?e.ownerDocument:e.document)||window.document).documentElement}function hh(e){return gg(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ex(e){return fa(gs(e)).left+hh(e).scrollLeft}function AB(e){const t=fa(e);return Ef(t.width)!==e.offsetWidth||Ef(t.height)!==e.offsetHeight}function EB(e,t,r){const i=Si(t),o=gs(t),a=fa(e,i&&AB(t));let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(i||!i&&r!=="fixed")if((_i(t)!=="body"||fh(o))&&(c=hh(t)),Si(t)){const d=fa(t,!0);h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}else o&&(h.x=ex(o));return{x:a.left+c.scrollLeft-h.x,y:a.top+c.scrollTop-h.y,width:a.width,height:a.height}}function dh(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(ZE(e)?e.host:null)||gs(e)}function gb(e){return!Si(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function xB(e){let t=dh(e);for(;Si(t)&&!["html","body"].includes(_i(t));){if(JE(t))return t;t=t.parentNode}return null}function Jp(e){const t=ps(e);let r=gb(e);for(;r&&DB(r)&&getComputedStyle(r).position==="static";)r=gb(r);return r&&(_i(r)==="html"||_i(r)==="body"&&getComputedStyle(r).position==="static"&&!JE(r))?t:r||xB(e)||t}function vb(e){return{width:e.offsetWidth,height:e.offsetHeight}}function CB(e){let{rect:t,offsetParent:r,strategy:i}=e;const o=Si(r),a=gs(r);if(r===a)return t;let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((o||!o&&i!=="fixed")&&((_i(r)!=="body"||fh(a))&&(c=hh(r)),Si(r))){const d=fa(r,!0);h.x=d.x+r.clientLeft,h.y=d.y+r.clientTop}return{...t,x:t.x-c.scrollLeft+h.x,y:t.y-c.scrollTop+h.y}}function _B(e){const t=ps(e),r=gs(e),i=t.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,h=0;return i&&(o=i.width,a=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(c=i.offsetLeft,h=i.offsetTop)),{width:o,height:a,x:c,y:h}}function SB(e){var t;const r=gs(e),i=hh(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Bu(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Bu(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let h=-i.scrollLeft+ex(e);const d=-i.scrollTop;return ch(o||r).direction==="rtl"&&(h+=Bu(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:c,x:h,y:d}}function tx(e){return["html","body","#document"].includes(_i(e))?e.ownerDocument.body:Si(e)&&fh(e)?e:tx(dh(e))}function xf(e,t){var r;t===void 0&&(t=[]);const i=tx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=ps(i),c=o?[a].concat(a.visualViewport||[],fh(i)?i:[]):i,h=t.concat(c);return o?h:h.concat(xf(dh(c)))}function FB(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&ZE(r)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function $B(e){const t=fa(e),r=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function mb(e,t){return t==="viewport"?Qp(_B(e)):Af(t)?$B(t):Qp(SB(gs(e)))}function TB(e){const t=xf(dh(e)),i=["absolute","fixed"].includes(ch(e).position)&&Si(e)?Jp(e):e;return Af(i)?t.filter(o=>Af(o)&&FB(o,i)&&_i(o)!=="body"):[]}function kB(e){let{element:t,boundary:r,rootBoundary:i}=e;const a=[...r==="clippingParents"?TB(t):[].concat(r),i],c=a[0],h=a.reduce((d,p)=>{const g=mb(t,p);return d.top=Bu(g.top,d.top),d.right=pb(g.right,d.right),d.bottom=pb(g.bottom,d.bottom),d.left=Bu(g.left,d.left),d},mb(t,c));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const LB={getElementRects:e=>{let{reference:t,floating:r,strategy:i}=e;return{reference:EB(t,Jp(r),i),floating:{...vb(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>CB(e),getOffsetParent:e=>{let{element:t}=e;return Jp(t)},isElement:e=>Af(e),getDocumentElement:e=>{let{element:t}=e;return gs(t)},getClippingClientRect:e=>kB(e),getDimensions:e=>{let{element:t}=e;return vb(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},BB=(e,t,r)=>nB(e,t,{platform:LB,...r});var OB=Object.defineProperty,PB=Object.defineProperties,NB=Object.getOwnPropertyDescriptors,yb=Object.getOwnPropertySymbols,IB=Object.prototype.hasOwnProperty,RB=Object.prototype.propertyIsEnumerable,bb=(e,t,r)=>t in e?OB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wi=(e,t)=>{for(var r in t||(t={}))IB.call(t,r)&&bb(e,r,t[r]);if(yb)for(var r of yb(t))RB.call(t,r)&&bb(e,r,t[r]);return e},ol=(e,t)=>PB(e,NB(t));function rx(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?rx(e[r],t[r]):e[r]=t[r])}const Ks={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,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","focus"],delay:{show:0,hide:400}}}};function ha(e,t){let r=Ks.themes[e]||{},i;do i=r[t],typeof i>"u"?r.$extend?r=Ks.themes[r.$extend]||{}:(r=null,i=Ks[t]):r=null;while(r);return i}function MB(e){const t=[e];let r=Ks.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Ks.themes[r.$extend]||{}):r=null;while(r);return t.map(i=>`v-popper--theme-${i}`)}let da=!1;if(typeof window<"u"){da=!1;try{const e=Object.defineProperty({},"passive",{get(){da=!0}});window.addEventListener("test",null,e)}catch{}}let nx=!1;typeof window<"u"&&typeof navigator<"u"&&(nx=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const ix=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),wb={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Db={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function zB(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function rp(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Wn=[];let Bo=null,e0=function(){};typeof window<"u"&&(e0=window.Element);function gt(e){return function(t){return ha(t.theme,e)}}var sx=()=>it({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:gt("disabled")},placement:{type:String,default:gt("placement"),validator:e=>ix.includes(e)},delay:{type:[String,Number,Object],default:gt("delay")},distance:{type:[Number,String],default:gt("distance")},skidding:{type:[Number,String],default:gt("skidding")},triggers:{type:Array,default:gt("triggers")},showTriggers:{type:[Array,Function],default:gt("showTriggers")},hideTriggers:{type:[Array,Function],default:gt("hideTriggers")},popperTriggers:{type:Array,default:gt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:gt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:gt("popperHideTriggers")},container:{type:[String,Object,e0,Boolean],default:gt("container")},boundary:{type:[String,e0],default:gt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:gt("strategy")},autoHide:{type:Boolean,default:gt("autoHide")},handleResize:{type:Boolean,default:gt("handleResize")},instantMove:{type:Boolean,default:gt("instantMove")},eagerMount:{type:Boolean,default:gt("eagerMount")},popperClass:{type:[String,Array,Object],default:gt("popperClass")},computeTransformOrigin:{type:Boolean,default:gt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:gt("autoMinSize")},autoMaxSize:{type:Boolean,default:gt("autoMaxSize")},preventOverflow:{type:Boolean,default:gt("preventOverflow")},overflowPadding:{type:[Number,String],default:gt("overflowPadding")},arrowPadding:{type:[Number,String],default:gt("arrowPadding")},arrowOverflow:{type:Boolean,default:gt("arrowOverflow")},flip:{type:Boolean,default:gt("flip")},shift:{type:Boolean,default:gt("shift")},shiftCrossAxis:{type:Boolean,default:gt("shiftCrossAxis")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],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}}},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:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:ol(wi({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:wi({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())}},["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`},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}={}){(r||!this.disabled)&&(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}={}){this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.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.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(vB({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?t.middleware.push(hB({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(yB({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&t.middleware.push(pB({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(oB({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:a,middlewareData:c})=>{let h;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?h=Math.abs(d)>a.reference.width/2:h=Math.abs(d)>a.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&t.middleware.push({name:"autoMinSize",fn:({rects:o,placement:a,middlewareData:c})=>{var h;if((h=c.autoMinSize)!=null&&h.skip)return{};let d,p;return a.startsWith("top")||a.startsWith("bottom")?d=o.reference.width:p=o.reference.height,this.$_innerNode.style.minWidth=d!=null?`${d}px`:null,this.$_innerNode.style.minHeight=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&t.middleware.push(bB({boundary:this.boundary,padding:this.overflowPadding,apply:({width:o,height:a})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}}));const i=await BB(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:wi(wi({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Bo&&this.instantMove&&Bo.instantMove){Bo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Bo=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 rp(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),i=r.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(i.left+r.offsetLeft),a=t.y+t.height/2-(i.top+r.offsetTop);this.result.transformOrigin=`${o}px ${a}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<Wn.length;r++)t=Wn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Wn.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await rp(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(e=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,zB(Wn,this),Bo===this&&(Bo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=ha(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await rp(),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=(o,a,c)=>{this.$_events.push({targetNodes:o,eventType:a,handler:c}),o.forEach(h=>h.addEventListener(a,c,da?{passive:!0}:void 0))},t=(o,a,c,h,d)=>{let p=c;h!=null&&(p=typeof h=="function"?h(p):h),p.forEach(g=>{const y=a[g];y&&e(o,y,d)})},r=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};t(this.$_targetNodes,wb,this.triggers,this.showTriggers,r),t([this.$_popperNode],wb,this.popperTriggers,this.popperShowTriggers,r);const i=o=>{o.usedByTooltip||this.hide({event:o})};t(this.$_targetNodes,Db,this.triggers,this.hideTriggers,i),t([this.$_popperNode],Db,this.popperTriggers,this.popperHideTriggers,i),e([...xf(this.$_referenceNode),...xf(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:e,eventType:t,handler:r})=>{e.forEach(i=>i.removeEventListener(t,r))}),this.$_events=[]},$_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 i=r.getAttribute(e);i&&(r.removeAttribute(e),r.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const i=e[r];i==null?t.removeAttribute(r):t.setAttribute(r,i)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(nx?(document.addEventListener("touchstart",Ab,da?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",HB,da?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Ab,!0),window.addEventListener("click",UB,!0)),window.addEventListener("resize",qB));function Ab(e){for(let t=0;t<Wn.length;t++){const r=Wn[t],i=r.popperNode();r.$_mouseDownContains=i.contains(e.target)}}function UB(e){ox(e)}function HB(e){ox(e,!0)}function ox(e,t=!1){for(let r=0;r<Wn.length;r++){const i=Wn[r],o=i.popperNode(),a=i.$_mouseDownContains||o.contains(e.target);requestAnimationFrame(()=>{(e.closeAllPopover||e.closePopover&&a||i.autoHide&&!a)&&i.$_handleGlobalClose(e,t)})}}function qB(e){for(let t=0;t<Wn.length;t++)Wn[t].$_computePosition(e)}function jB(){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 i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Jc;function t0(){t0.init||(t0.init=!0,Jc=jB()!==-1)}var ph={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){t0(),Ci(()=>{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",Jc&&this.$el.appendChild(e),e.data="about:blank",Jc||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&&(!Jc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const VB=vT();hE("data-v-b329ee4c");const WB={class:"resize-observer",tabindex:"-1"};dE();const GB=VB((e,t,r,i,o,a)=>(de(),Ze("div",WB)));ph.render=GB;ph.__scopeId="data-v-b329ee4c";ph.__file="src/components/ResizeObserver.vue";var ax={computed:{themeClass(){return MB(this.theme)}}},vg=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r};const KB=it({name:"VPopperContent",components:{ResizeObserver:ph},mixins:[ax],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}}}),XB=["id","aria-hidden","tabindex","data-popper-placement"],QB={ref:"inner",class:"v-popper__inner"},YB=pe("div",{class:"v-popper__arrow-outer"},null,-1),ZB=pe("div",{class:"v-popper__arrow-inner"},null,-1),JB=[YB,ZB];function e3(e,t,r,i,o,a){const c=Qs("ResizeObserver");return de(),$e("div",{id:e.popperId,ref:"popover",class:yt(["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.arrow.overflow}]]),style:zr({position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result.placement,onKeyup:t[1]||(t[1]=Vp(h=>e.autoHide&&e.$emit("hide"),["esc"]))},[pe("div",{class:"v-popper__wrapper",style:zr({transformOrigin:e.result.transformOrigin})},[pe("div",QB,[e.mounted?(de(),$e(dt,{key:0},[pe("div",null,[Sn(e.$slots,"default")]),e.handleResize?(de(),Ze(c,{key:0,onNotify:t[0]||(t[0]=h=>e.$emit("resize",h))})):nt("",!0)],64)):nt("",!0)],512),pe("div",{ref:"arrow",class:"v-popper__arrow-container",style:zr({left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)})},JB,4)],4)],46,XB)}var ux=vg(KB,[["render",e3]]),lx={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)}}};const t3=it({name:"VPopperWrapper",components:{Popper:sx(),PopperContent:ux},mixins:[lx,ax],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme},popperAttrs(){const e=wi({},this.$attrs);return delete e.class,delete e.style,e}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function r3(e,t,r,i,o,a){const c=Qs("PopperContent"),h=Qs("Popper");return de(),Ze(h,cs({ref:"popper"},e.popperAttrs,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"reference-node":()=>e.$refs.reference,"popper-node":()=>e.$refs.popperContent.$el}),{default:Ye(({popperId:d,isShown:p,shouldMountContent:g,skipTransition:y,autoHide:m,show:w,hide:$,handleResize:B,onResize:x,classes:C,result:S})=>[pe("div",{ref:"reference",class:yt(["v-popper",[e.$attrs.class,e.themeClass,{"v-popper--shown":p}]]),style:zr(e.$attrs.style)},[Sn(e.$slots,"default",{shown:p,show:w,hide:$}),ze(c,{ref:"popperContent","popper-id":d,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":y,"auto-hide":m,"handle-resize":B,classes:C,result:S,onHide:$,onResize:x},{default:Ye(()=>[Sn(e.$slots,"popper",{shown:p,hide:$})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])],6)]),_:3},16,["theme","target-nodes","reference-node","popper-node"])}var mg=vg(t3,[["render",r3]]);const Eb=it(ol(wi({},mg),{name:"VDropdown",vPopperTheme:"dropdown"})),xb=it(ol(wi({},mg),{name:"VMenu",vPopperTheme:"menu"})),r0=it(ol(wi({},mg),{name:"VTooltip",vPopperTheme:"tooltip"})),n3=it({name:"VTooltipDirective",components:{Popper:sx(),PopperContent:ux},mixins:[lx],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ha(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ha(e.theme,"loadingContent")}},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(i=>this.onResult(t,i)):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}}}),i3=["innerHTML"],s3=["textContent"];function o3(e,t,r,i,o,a){const c=Qs("PopperContent"),h=Qs("Popper");return de(),Ze(h,cs({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ye(({popperId:d,isShown:p,shouldMountContent:g,skipTransition:y,autoHide:m,hide:w,handleResize:$,onResize:B,classes:x,result:C})=>[ze(c,{ref:"popperContent",class:yt({"v-popper--tooltip-loading":e.loading}),"popper-id":d,theme:e.theme,shown:p,mounted:g,"skip-transition":y,"auto-hide":m,"handle-resize":$,classes:x,result:C,onHide:w,onResize:B},{default:Ye(()=>[e.html?(de(),$e("div",{key:0,innerHTML:e.finalContent},null,8,i3)):(de(),$e("div",{key:1,textContent:Je(e.finalContent)},null,8,s3))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var a3=vg(n3,[["render",o3]]);const cx="v-popper--has-tooltip";function u3(e,t){let r=e.placement;if(!r&&t)for(const i of ix)t[i]&&(r=i);return r||(r=ha(e.theme||"tooltip","placement")),r}function fx(e,t,r){let i;const o=typeof t;return o==="string"?i={content:t}:t&&o==="object"?i=t:i={content:!1},i.placement=u3(i,r),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let np,Vu,l3=0;function c3(){if(np)return;Vu=Xe([]),np=RE({name:"VTooltipDirectiveApp",setup(){return{directives:Vu}},render(){return this.directives.map(t=>il(a3,ol(wi({},t.options),{shown:t.shown.value||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),np.mount(e)}function hx(e,t,r){c3();const i=Xe(fx(e,t,r)),o=Xe(!1),a={id:l3++,options:i,shown:o};return Vu.value.push(a),e.classList&&e.classList.add(cx),e.$_popper={options:i,item:a,show(){o.value=!0},hide(){o.value=!1}}}function yg(e){if(e.$_popper){const t=Vu.value.indexOf(e.$_popper.item);t!==-1&&Vu.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(cx)}function Cb(e,{value:t,oldValue:r,modifiers:i}){const o=fx(e,t,i);if(!o.content||ha(o.theme||"tooltip","disabled"))yg(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=hx(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var dx={beforeMount:Cb,updated:Cb,beforeUnmount(e){yg(e)}};function _b(e){e.addEventListener("click",px),e.addEventListener("touchstart",gx,da?{passive:!0}:!1)}function Sb(e){e.removeEventListener("click",px),e.removeEventListener("touchstart",gx),e.removeEventListener("touchend",vx),e.removeEventListener("touchcancel",mx)}function px(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function gx(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",vx),t.addEventListener("touchcancel",mx)}}function vx(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-i.screenY)<20&&Math.abs(r.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function mx(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var f3={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&_b(e)},updated(e,{value:t,oldValue:r,modifiers:i}){e.$_closePopoverModifiers=i,t!==r&&(typeof t>"u"||t?_b(e):Sb(e))},beforeUnmount(e){Sb(e)}};const h3=dx,d3=r0;function p3(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,rx(Ks,t),e.directive("tooltip",dx),e.directive("close-popper",f3),e.component("v-tooltip",r0),e.component("VTooltip",r0),e.component("v-dropdown",Eb),e.component("VDropdown",Eb),e.component("v-menu",xb),e.component("VMenu",xb))}const yx={version:"2.0.0-y.0",install:p3,options:Ks},g3=6e4;function bx(e){return e}const v3=bx,{setTimeout:m3}=globalThis;function y3(e,t){const{post:r,on:i,eventNames:o=[],serialize:a=bx,deserialize:c=v3,resolver:h,timeout:d=g3}=t,p=new Map;let g;const y=new Proxy({},{get(m,w){if(w==="$functions")return e;const $=(...x)=>{r(a({m:w,a:x,t:"q"}))};if(o.includes(w))return $.asEvent=$,$;const B=async(...x)=>(await g,new Promise((C,S)=>{const N=w3();p.set(N,{resolve:C,reject:S}),r(a({m:w,a:x,i:N,t:"q"})),d>=0&&m3(()=>{S(new Error(`[birpc] timeout on calling "${w}"`)),p.delete(N)},d)}));return B.asEvent=$,B}});return g=i(async(m,...w)=>{const $=c(m);if($.t==="q"){const{m:B,a:x}=$;let C,S;const N=h?h(B,e[B]):e[B];if(!N)S=new Error(`[birpc] function "${B}" not found`);else try{C=await N.apply(y,x)}catch(L){S=L}$.i&&(S&&t.onError&&t.onError(S,B,x),r(a({t:"s",i:$.i,r:C,e:S}),...w))}else{const{i:B,r:x,e:C}=$,S=p.get(B);S&&(C?S.reject(C):S.resolve(x)),p.delete(B)}}),y}const b3="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function w3(e=21){let t="",r=e;for(;r--;)t+=b3[Math.random()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:D3,stringify:A3}=JSON,{keys:E3}=Object,Wu=String,wx="string",Fb={},Cf="object",Dx=(e,t)=>t,x3=e=>e instanceof Wu?Wu(e):e,C3=(e,t)=>typeof t===wx?new Wu(t):t,Ax=(e,t,r,i)=>{const o=[];for(let a=E3(r),{length:c}=a,h=0;h<c;h++){const d=a[h],p=r[d];if(p instanceof Wu){const g=e[p];typeof g===Cf&&!t.has(g)?(t.add(g),r[d]=Fb,o.push({k:d,a:[e,t,g,i]})):r[d]=i.call(r,d,g)}else r[d]!==Fb&&(r[d]=i.call(r,d,p))}for(let{length:a}=o,c=0;c<a;c++){const{k:h,a:d}=o[c];r[h]=i.call(r,h,Ax.apply(null,d))}return r},$b=(e,t,r)=>{const i=Wu(t.push(r)-1);return e.set(r,i),i},n0=(e,t)=>{const r=D3(e,C3).map(x3),i=r[0],o=t||Dx,a=typeof i===Cf&&i?Ax(r,new Set,i,o):i;return o.call({"":a},"",a)},_3=(e,t,r)=>{const i=t&&typeof t===Cf?(g,y)=>g===""||-1<t.indexOf(g)?y:void 0:t||Dx,o=new Map,a=[],c=[];let h=+$b(o,a,i.call({"":e},"",e)),d=!h;for(;h<a.length;)d=!0,c[h]=A3(a[h++],p,r);return"["+c.join(",")+"]";function p(g,y){if(d)return d=!d,y;const m=i.call(this,g,y);switch(typeof m){case Cf:if(m===null)return m;case wx:return o.get(m)||$b(o,a,m)}return m}};function S3(e=""){return!e||!e.includes("\\")?e:e.replace(/\\/g,"/")}const F3=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function $3(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const Tb=function(...e){e=e.map(i=>S3(i));let t="",r=!1;for(let i=e.length-1;i>=-1&&!r;i--){const o=i>=0?e[i]:$3();!o||o.length===0||(t=`${o}/${t}`,r=kb(o))}return t=T3(t,!r),r&&!kb(t)?`/${t}`:t.length>0?t:"."};function T3(e,t){let r="",i=0,o=-1,a=0,c=null;for(let h=0;h<=e.length;++h){if(h<e.length)c=e[h];else{if(c==="/")break;c="/"}if(c==="/"){if(!(o===h-1||a===1))if(a===2){if(r.length<2||i!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const d=r.lastIndexOf("/");d===-1?(r="",i=0):(r=r.slice(0,d),i=r.length-1-r.lastIndexOf("/")),o=h,a=0;continue}else if(r.length>0){r="",i=0,o=h,a=0;continue}}t&&(r+=r.length>0?"/..":"..",i=2)}else r.length>0?r+=`/${e.slice(o+1,h)}`:r=e.slice(o+1,h),i=h-o-1;o=h,a=0}else c==="."&&a!==-1?++a:a=-1}return r}const kb=function(e){return F3.test(e)},k3=function(e,t){const r=Tb(e).split("/"),i=Tb(t).split("/"),o=[...r];for(const a of o){if(i[0]!==a)break;r.shift(),i.shift()}return[...r.map(()=>".."),...i].join("/")};function L3(e){return typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e}class Ex{constructor(){fi(this,"filesMap",new Map);fi(this,"pathsSet",new Set);fi(this,"collectingPromise");fi(this,"browserTestPromises",new Map);fi(this,"idMap",new Map);fi(this,"taskFileMap",new WeakMap);fi(this,"errorsSet",new Set);fi(this,"processTimeoutCauses",new Set)}catchError(t,r){if(L3(t))return t.errors.forEach(i=>this.catchError(i,r));t===Object(t)?t.type=r:t={type:r,message:t},this.errorsSet.add(t)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(t){this.processTimeoutCauses.add(t)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=(this.filesMap.get(r.filepath)||[]).filter(a=>a.projectName!==r.projectName);o.push(r),this.filesMap.set(r.filepath,o),this.updateId(r)})}clearFiles(t,r=[]){r.forEach(i=>{const o=this.filesMap.get(i);if(!o)return;const a=o.filter(c=>c.projectName!==t.config.name);a.length?this.filesMap.set(i,a):this.filesMap.delete(i)})}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,i]of t)this.idMap.has(r)&&(this.idMap.get(r).result=i)}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(t,r){this.collectFiles(t.map(i=>({filepath:i,name:k3(r,i),id:i,mode:"skip",type:"suite",result:{state:"skip"},tasks:[]})))}}function xx(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}var un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function B3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const O3=Symbol("vitest:SAFE_COLORS"),P3={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},N3=Object.entries(P3);function bg(e){return String(e)}bg.open="";bg.close="";const I3=N3.reduce((e,[t])=>(e[t]=bg,e),{isColorSupported:!1});function Cx(){return globalThis[O3]||I3}var cn={},wg={};let R3=class{constructor(){this.stack=new Map}add(t){if(this.stack.has(t))throw new Error("Already in stack");return t.isItem!==!0&&t.isMapEntry!==!0&&t.isProperty!==!0&&this.stack.set(t,this.stack.size+1),this}delete(t){if(this.stack.has(t)){if(this.stack.get(t)!==this.stack.size)throw new Error("Not on top of stack");this.stack.delete(t)}return this}has(t){return this.stack.has(t)}get(t){return this.stack.has(t)?this.stack.get(t):0}};var Dg=R3;const M3=Symbol("AMBIGUOUS"),z3=Symbol("DEEP_EQUAL"),U3=Symbol("SHALLOW_EQUAL"),H3=Symbol("UNEQUAL");var bt={AMBIGUOUS:M3,DEEP_EQUAL:z3,SHALLOW_EQUAL:U3,UNEQUAL:H3};let q3=class{constructor(){this.counter=0,this.map=new WeakMap}has(t){return this.map.has(t)}get(t){return this.map.get(t).descriptor}alloc(t){const i={descriptor:null,index:++this.counter};return this.map.set(t,i),i}};var j3=q3,_a={},Jt={},Ut={};const En=Symbol("lineBuilder.gutters.ACTUAL"),jn=Symbol("lineBuilder.gutters.EXPECTED");function V3(e,t,r){if(t){if(r===En)return e.diffGutters.expected;if(r===jn)return e.diffGutters.actual}else{if(r===En)return e.diffGutters.actual;if(r===jn)return e.diffGutters.expected}return e.diffGutters.padding}class Zt{constructor(t,r,i,o){this.isFirst=t,this.isLast=r,this.gutter=i,this.stringValue=o}*[Symbol.iterator](){yield this}get isEmpty(){return!1}get hasGutter(){return this.gutter!==null}get isSingle(){return this.isFirst&&this.isLast}append(t){return this.concat(t)}concat(t){return new zt().append(this).append(t)}toString(t){return t.diff===!1?this.stringValue:V3(t.theme,t.invert,this.gutter)+this.stringValue}mergeWithInfix(t,r){return r.isLine!==!0?new zt().append(this).mergeWithInfix(t,r):new Zt(this.isFirst,r.isLast,r.gutter,this.stringValue+t+r.stringValue)}withFirstPrefixed(t){return this.isFirst?new Zt(!0,this.isLast,this.gutter,t+this.stringValue):this}withLastPostfixed(t){return this.isLast?new Zt(this.isFirst,!0,this.gutter,this.stringValue+t):this}stripFlags(){return new Zt(!1,!1,this.gutter,this.stringValue)}decompose(){return new zt().append(this).decompose()}}Object.defineProperty(Zt.prototype,"isLine",{value:!0});class zt{constructor(){this.buffer=[]}*[Symbol.iterator](){for(const t of this.buffer)for(const r of t)yield r}get isEmpty(){return this.buffer.length===0}get hasGutter(){for(const t of this)if(t.hasGutter)return!0;return!1}get isSingle(){const t=this[Symbol.iterator]();return t.next(),t.next().done===!0}append(t){return t.isEmpty||this.buffer.push(t),this}concat(t){return new zt().append(this).append(t)}toString(t){let r=this;if(t.invert){r=new zt;let i=new zt,o=null;for(const a of this)a.gutter===En?(o!==null&&o.gutter!==En&&!i.isEmpty&&(r.append(i),i=new zt),i.append(a)):(a.gutter===jn||i.isEmpty||(r.append(i),i=new zt),r.append(a)),o=a;r.append(i)}return Array.from(r,i=>i.toString(t)).join(`
6
+ `)}mergeWithInfix(t,r){if(r.isEmpty)throw new Error("Cannot merge, `from` is empty.");const i=Array.from(r);if(!i[0].isFirst)throw new Error("Cannot merge, `from` has no first line.");const o=new zt;let a=!1;for(const c of this){if(a)throw new Error("Cannot merge line, the last line has already been seen.");if(!c.isLast){o.append(c);continue}a=!0;for(const h of i)h.isFirst?o.append(c.mergeWithInfix(t,h)):o.append(h)}return o}withFirstPrefixed(t){return new zt().append(Array.from(this,r=>r.withFirstPrefixed(t)))}withLastPostfixed(t){return new zt().append(Array.from(this,r=>r.withLastPostfixed(t)))}stripFlags(){return new zt().append(Array.from(this,t=>t.stripFlags()))}decompose(){const t={actual:new zt,expected:new zt},r={actual:new zt,expected:new zt},i=new zt;for(const o of this)o.isFirst&&o.gutter===En?t.actual.append(o):o.isFirst&&o.gutter===jn?t.expected.append(o):o.isLast&&o.gutter===En?r.actual.append(o):o.isLast&&o.gutter===jn?r.expected.append(o):i.append(o);return{first:t,last:r,remaining:i}}}Object.defineProperty(zt.prototype,"isCollection",{value:!0});function Lb(e,t){return new zt().append(Array.from(e,r=>r.gutter===null?new Zt(r.isFirst,r.isLast,t,r.stringValue):r))}var er={buffer(){return new zt},first(e){return new Zt(!0,!1,null,e)},last(e){return new Zt(!1,!0,null,e)},line(e){return new Zt(!1,!1,null,e)},single(e){return new Zt(!0,!0,null,e)},setDefaultGutter(e){return e},actual:{first(e){return new Zt(!0,!1,En,e)},last(e){return new Zt(!1,!0,En,e)},line(e){return new Zt(!1,!1,En,e)},single(e){return new Zt(!0,!0,En,e)},setDefaultGutter(e){return Lb(e,En)}},expected:{first(e){return new Zt(!0,!1,jn,e)},last(e){return new Zt(!1,!0,jn,e)},line(e){return new Zt(!1,!1,jn,e)},single(e){return new Zt(!0,!0,jn,e)},setDefaultGutter(e){return Lb(e,jn)}}};const jo=er;function ef(e,t){return e.open+t+e.close}Ut.wrap=ef;function i0(e,t){if(!t.ctor)return ef(e.object.stringTag,t.stringTag);let r=ef(e.object.ctor,t.ctor);return t.stringTag&&t.stringTag!==t.ctor&&t.stringTag!=="Object"&&(r+=" "+ef(e.object.secondaryStringTag,t.stringTag)),r}Ut.formatCtorAndStringTag=i0;let W3=class{constructor(t,r,i){this.object=t,this.theme=r,this.indent=i,this.increaseIndent=!0,this.innerLines=jo.buffer(),this.pendingStats=null}append(t,r){r.isStats===!0?this.pendingStats=t:(this.pendingStats!==null&&(this.innerLines.isEmpty||this.innerLines.append(this.pendingStats),this.pendingStats=null),this.innerLines.append(t))}finalize(){const t=this.object.isList?this.theme.list:this.theme.object,r=this.object.ctor,i=this.object.stringTag,o=(r==="Array"||r==="Object")&&r===i?"":i0(this.theme,this.object)+" ";return this.innerLines.isEmpty?jo.single(o+t.openBracket+t.closeBracket):jo.first(o+t.openBracket).concat(this.innerLines.withFirstPrefixed(this.indent.increase()).stripFlags()).append(jo.last(this.indent+t.closeBracket))}maxDepth(){const t=this.object.isList?this.theme.list:this.theme.object;return jo.single(i0(this.theme,this.object)+" "+t.openBracket+" "+this.theme.maxDepth+" "+t.closeBracket)}shouldFormat(){return!0}customize(t){return t.finalize&&(this.finalize=()=>t.finalize(this.innerLines)),t.maxDepth&&(this.maxDepth=t.maxDepth),t.shouldFormat&&(this.shouldFormat=t.shouldFormat),this}};Ut.ObjectFormatter=W3;class G3{constructor(t,r,i){this.theme=t,this.finalizeFn=r,this.hasValue=!1,this.increaseIndent=i===!0,this.value=null}append(t){if(this.hasValue)throw new Error("Formatter buffer can only take one formatted value.");this.hasValue=!0,this.value=t}finalize(){if(!this.hasValue)throw new Error("Formatter buffer never received a formatted value.");return this.finalizeFn(this.value)}maxDepth(){return this.finalizeFn(jo.single(this.theme.maxDepth))}}Ut.SingleValueFormatter=G3;function K3(e,t){const r=[];let i=0;const o=Object.getOwnPropertyNames(e).sort(),a=Object.getOwnPropertySymbols(e);for(const c of o){let h=!0;if(t>0){const d=Number(c);h=!Number.isInteger(d)||d<0||d>=t}h&&Object.getOwnPropertyDescriptor(e,c).enumerable&&(r[i++]=c)}for(const c of a)Object.getOwnPropertyDescriptor(e,c).enumerable&&(r[i++]=c);return{keys:r,size:i}}var X3=K3,Q3=9007199254740991;function Y3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q3}var Ag=Y3;const Z3=Ag,J3=Object.prototype.hasOwnProperty;function eO(e){return Array.isArray(e)||J3.call(e,"length")&&Z3(e.length)&&(e.length===0||"0"in e)}var tO=eO,fn={},$t={};const s0={size:0,next(){return null}};$t.NOOP_RECURSOR=s0;function rO(e){const t=[];return{shared(){const r=e();return r!==null&&t.push(r),r},recursor(){return t.length>0?t.shift():e()}}}$t.fork=rO;function nO(e){const t=[e];for(;t.length>0;){const r=t[t.length-1]();if(r===null){t.pop();continue}typeof r.createRecursor=="function"&&t.push(r.createRecursor())}}$t.consumeDeep=nO;function iO(e,t){return()=>{const r=e();return r===null?null:t(r)}}$t.map=iO;function sO(e,t){if(!e){const a=t();a===s0?e=a:e=Object.assign({buffer:[],done:!1},a)}if(e===s0)return{state:e,recursor:e};let r=!1,i=0;return{state:e,recursor:{next:()=>{if(r)return null;let a=e.buffer[i];return a===void 0&&(a=e.buffer[i]=e.next()),i++,a===null&&(r=!0),a},size:e.size}}}$t.replay=sO;function oO(e,t){let r=!0;return()=>{if(r){const i=e();if(i!==null)return i;r=!1}return t()}}$t.sequence=oO;function aO(e){let t=!1;return()=>t?null:(t=!0,e)}$t.singleValue=aO;function uO(e,t){return()=>{if(t!==null){const r=t;return t=null,r}return e()}}$t.unshift=uO;const _x=bt,lO=er,Oo=$t,Eg=_x.DEEP_EQUAL,xg=_x.UNEQUAL;function cO(e){return new Fg(e.size)}fn.describeIterableRecursor=cO;function fO(e){return new $g(e.size)}fn.describeListRecursor=fO;function hO(e){return new Tg(e.size)}fn.describePropertyRecursor=hO;function dO(e){return new Fg(e)}fn.deserializeIterableStats=dO;function pO(e){return new $g(e)}fn.deserializeListStats=pO;function gO(e){return new Tg(e)}fn.deserializePropertyStats=gO;const Cg=Symbol("IterableStats");fn.iterableTag=Cg;const _g=Symbol("ListStats");fn.listTag=_g;const Sg=Symbol("PropertyStats");fn.propertyTag=Sg;class gh{constructor(t){this.size=t}formatDeep(t){return lO.single(t.stats.separator)}prepareDiff(t,r,i,o){if(t.isStats!==!0||t.tag===this.tag)return null;const a=Oo.fork(i),c=t,h=[];for(;t!==null&&this.tag!==t.tag;)h.push(t),t=a.shared();if(t!==null&&h.length>0)return{multipleAreMissing:!0,descriptors:h,lhsRecursor:Oo.unshift(r,this),rhsRecursor:Oo.unshift(i,t)};const d=Oo.fork(r);let p=this;const g=[];for(;p!==null&&p.tag!==c.tag;)g.push(p),p=d.shared();return p!==null&&g.length>0?{multipleAreExtraneous:!0,descriptors:g,lhsRecursor:Oo.unshift(r,p),rhsRecursor:Oo.unshift(a.recursor,c)}:null}serialize(){return this.size}}Object.defineProperty(gh.prototype,"isStats",{value:!0});class Fg extends gh{compare(t){return t.tag===Cg&&this.size===t.size?Eg:xg}}Object.defineProperty(Fg.prototype,"tag",{value:Cg});class $g extends gh{compare(t){return t.tag===_g&&this.size===t.size?Eg:xg}}Object.defineProperty($g.prototype,"tag",{value:_g});class Tg extends gh{compare(t){return t.tag===Sg&&this.size===t.size?Eg:xg}}Object.defineProperty(Tg.prototype,"tag",{value:Sg});const kg=bt,vO=Ut.ObjectFormatter,mO=X3,yO=tO,ip=fn,yn=$t,bO=kg.DEEP_EQUAL,wO=kg.SHALLOW_EQUAL,Bb=kg.UNEQUAL;function DO(e){const t=e.stringTag==="Array",r=e.value;return new EO(Object.assign({isArray:t,isIterable:r[Symbol.iterator]!==void 0,isList:t||yO(r)},e))}Jt.describe=DO;function AO(e,t){return new xO(e,t)}Jt.deserialize=AO;const Sx=Symbol("ObjectValue");Jt.tag=Sx;class al{constructor(t){this.ctor=t.ctor,this.pointer=t.pointer,this.stringTag=t.stringTag,this.isArray=t.isArray===!0,this.isIterable=t.isIterable===!0,this.isList=t.isList===!0}compare(t){return this.tag!==t.tag||this.stringTag!==t.stringTag||!this.hasSameCtor(t)?Bb:wO}hasSameCtor(t){return this.ctor===t.ctor}formatShallow(t,r){return new vO(this,t,r)}serialize(){return[this.ctor,this.pointer,this.stringTag,this.isArray,this.isIterable,this.isList]}}Object.defineProperty(al.prototype,"isComplex",{value:!0});Object.defineProperty(al.prototype,"tag",{value:Sx});Jt.ObjectValue=al;const EO=Fx(al),xO=$x(al);function Fx(e){return class extends e{constructor(t){super(t),this.value=t.value,this.describeAny=t.describeAny,this.describeItem=t.describeItem,this.describeMapEntry=t.describeMapEntry,this.describeProperty=t.describeProperty,this.iterableState=null,this.listState=null,this.propertyState=null}compare(t){return this.value===t.value?bO:super.compare(t)}createPropertyRecursor(){const t=mO(this.value,this.isList?this.value.length:0),r=t.size;if(r===0)return yn.NOOP_RECURSOR;let i=0;return{size:r,next:()=>{if(i===r)return null;const a=t.keys[i++];return this.describeProperty(a,this.describeAny(this.value[a]))}}}createListRecursor(){if(!this.isList)return yn.NOOP_RECURSOR;const t=this.value.length;if(t===0)return yn.NOOP_RECURSOR;let r=0;return{size:t,next:()=>{if(r===t)return null;const o=r;return r++,this.describeItem(o,this.describeAny(this.value[o]))}}}createIterableRecursor(){if(this.isArray||!this.isIterable)return yn.NOOP_RECURSOR;const t=this.value[Symbol.iterator]();let r=t.next(),i=!1,o=-1;r.done&&(r.value===void 0?(o=0,i=!0):o=1);let a=0;return{size:o,next:()=>{if(i)return null;for(;!i;){const h=r||t.next();h===r&&(r=null),h.done&&(i=!0);const d=h.value;if(i&&d===void 0)return null;if(this.isList&&this.value[a]===d)a++;else return this.describeItem(a++,this.describeAny(d))}}}}createRecursor(){let t=!1,r=!1,i=!1,o=null;return()=>{let a=null;do for(o!==null&&(a=o.next(),a===null&&(o=null));o===null&&(!r||!t||!i);)if(r)if(t){if(!i){const c=yn.replay(this.iterableState,()=>this.createIterableRecursor());this.iterableState=c.state,o=c.recursor,i=!0,o!==yn.NOOP_RECURSOR&&(a=ip.describeIterableRecursor(o))}}else{const c=yn.replay(this.propertyState,()=>this.createPropertyRecursor());this.propertyState=c.state,o=c.recursor,t=!0,o!==yn.NOOP_RECURSOR&&(a=ip.describePropertyRecursor(o))}else{const c=yn.replay(this.listState,()=>this.createListRecursor());this.listState=c.state,o=c.recursor,r=!0,o!==yn.NOOP_RECURSOR&&(a=ip.describeListRecursor(o))}while(o!==null&&a===null);return a}}}}Jt.DescribedMixin=Fx;function $x(e){return class extends e{constructor(t,r){super({ctor:t[0],pointer:t[1],stringTag:t[2],isArray:t[3],isIterable:t[4],isList:t[5]}),this.deserializedRecursor=r,this.replayState=null}createRecursor(){if(!this.deserializedRecursor)return()=>null;const t=yn.replay(this.replayState,()=>({size:-1,next:this.deserializedRecursor}));return this.replayState=t.state,t.recursor.next}hasSameCtor(t){return this.ctor===t.ctor}}}Jt.DeserializedMixin=$x;const Tx=bt,Lg=Jt,CO=Tx.AMBIGUOUS,kx=Tx.UNEQUAL;function _O(e){return new FO(Object.assign({isArray:!0,isList:!0},e,{ctor:"Arguments"}))}_a.describe=_O;function SO(e,t){return new $O(e,t)}_a.deserialize=SO;const Lx=Symbol("ArgumentsValue");_a.tag=Lx;class Bg extends Lg.ObjectValue{compare(t){return t.isComplex!==!0?kx:t.stringTag==="Array"?CO:super.compare(t)}}Object.defineProperty(Bg.prototype,"tag",{value:Lx});const FO=Lg.DescribedMixin(Bg);class $O extends Lg.DeserializedMixin(Bg){compare(t){return t.isComplex===!0&&t.stringTag==="Array"?kx:super.compare(t)}}var ul={},Jr={};const Bx=bt,TO=Ut,mu=er,kO=fn.propertyTag,Ob=$t,Og=Jt,LO=Bx.DEEP_EQUAL,BO=Bx.UNEQUAL;function Ox(e){const t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength?t.slice(e.byteOffset,e.byteOffset+e.byteLength):t}Jr.getBuffer=Ox;function OO(e){return new IO(Object.assign({buffer:Ox(e.value),isArray:!0,isList:!0},e))}Jr.describe=OO;function PO(e,t){return new RO(e,t)}Jr.deserialize=PO;function NO(e){return new Pg(e)}Jr.deserializeBytes=NO;const vh=Symbol("Bytes");Jr.bytesTag=vh;const Px=Symbol("TypedArrayValue");Jr.tag=Px;class Pg{constructor(t){this.buffer=t}compare(t){return t.tag===vh&&this.buffer.equals(t.buffer)?LO:BO}formatDeep(t,r){const i=r,o=mu.buffer();let a="",c=!0;for(let h=0;h<this.buffer.length;h+=4)h>0&&(h%32===0?(c?(o.append(mu.first(a)),c=!1):o.append(mu.line(a)),a=String(i)):a+=" "),a+=TO.wrap(t.typedArray.bytes,this.buffer.toString("hex",h,h+4));return c?mu.single(a):o.append(mu.last(a))}serialize(){return this.buffer}}Object.defineProperty(Pg.prototype,"tag",{value:vh});class mh extends Og.ObjectValue{constructor(t){super(t),this.buffer=t.buffer}formatShallow(t,r){return super.formatShallow(t,r).customize({shouldFormat(i){return i.tag===kO?i.size>1:i.isProperty===!0?i.key.value!=="byteLength":i.tag===vh?i.buffer.byteLength>0:!0}})}}Object.defineProperty(mh.prototype,"tag",{value:Px});Jr.TypedArrayValue=mh;function Nx(e){return class extends Og.DescribedMixin(e){createListRecursor(){return Ob.NOOP_RECURSOR}createPropertyRecursor(){const t=super.createPropertyRecursor(),r=t.size+1;let i=!1;return{size:r,next:()=>{if(i)return null;const a=t.next();return a||(i=!0,this.describeProperty("byteLength",this.describeAny(this.buffer.byteLength)))}}}createRecursor(){return Ob.unshift(super.createRecursor(),new Pg(this.buffer))}}}Jr.DescribedMixin=Nx;const IO=Nx(mh);function Ix(e){return class extends Og.DeserializedMixin(e){constructor(t,r){super(t,r);const i=this.createRecursor()();this.buffer=i.buffer}}}Jr.DeserializedMixin=Ix;const RO=Ix(mh),Ng=Jr;function MO(e){return new UO(Object.assign({buffer:Buffer.from(e.value),isArray:!0,isList:!0},e))}ul.describe=MO;function zO(e,t){return new HO(e,t)}ul.deserialize=zO;const Rx=Symbol("ArrayBufferValue");ul.tag=Rx;class Ig extends Ng.TypedArrayValue{}Object.defineProperty(Ig.prototype,"tag",{value:Rx});const UO=Ng.DescribedMixin(Ig),HO=Ng.DeserializedMixin(Ig);var ll={},io={},tf={},o0={},qO={get exports(){return o0},set exports(e){o0=e}};(function(){function e(c){if(c==null)return!1;switch(c.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(c){if(c==null)return!1;switch(c.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(c){if(c==null)return!1;switch(c.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(c){return r(c)||c!=null&&c.type==="FunctionDeclaration"}function o(c){switch(c.type){case"IfStatement":return c.alternate!=null?c.alternate:c.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return c.body}return null}function a(c){var h;if(c.type!=="IfStatement"||c.alternate==null)return!1;h=c.consequent;do{if(h.type==="IfStatement"&&h.alternate==null)return!0;h=o(h)}while(h);return!1}qO.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}})();var _f={},jO={get exports(){return _f},set exports(e){_f=e}};(function(){var e,t,r,i,o,a;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function c(x){return 48<=x&&x<=57}function h(x){return 48<=x&&x<=57||97<=x&&x<=102||65<=x&&x<=70}function d(x){return x>=48&&x<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function p(x){return x===32||x===9||x===11||x===12||x===160||x>=5760&&r.indexOf(x)>=0}function g(x){return x===10||x===13||x===8232||x===8233}function y(x){if(x<=65535)return String.fromCharCode(x);var C=String.fromCharCode(Math.floor((x-65536)/1024)+55296),S=String.fromCharCode((x-65536)%1024+56320);return C+S}for(i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||a===36||a===95;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===36||a===95;function m(x){return x<128?i[x]:t.NonAsciiIdentifierStart.test(y(x))}function w(x){return x<128?o[x]:t.NonAsciiIdentifierPart.test(y(x))}function $(x){return x<128?i[x]:e.NonAsciiIdentifierStart.test(y(x))}function B(x){return x<128?o[x]:e.NonAsciiIdentifierPart.test(y(x))}jO.exports={isDecimalDigit:c,isHexDigit:h,isOctalDigit:d,isWhiteSpace:p,isLineTerminator:g,isIdentifierStartES5:m,isIdentifierPartES5:w,isIdentifierStartES6:$,isIdentifierPartES6:B}})();var a0={},VO={get exports(){return a0},set exports(e){a0=e}};(function(){var e=_f;function t(m){switch(m){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(m,w){return!w&&m==="yield"?!1:i(m,w)}function i(m,w){if(w&&t(m))return!0;switch(m.length){case 2:return m==="if"||m==="in"||m==="do";case 3:return m==="var"||m==="for"||m==="new"||m==="try";case 4:return m==="this"||m==="else"||m==="case"||m==="void"||m==="with"||m==="enum";case 5:return m==="while"||m==="break"||m==="catch"||m==="throw"||m==="const"||m==="yield"||m==="class"||m==="super";case 6:return m==="return"||m==="typeof"||m==="delete"||m==="switch"||m==="export"||m==="import";case 7:return m==="default"||m==="finally"||m==="extends";case 8:return m==="function"||m==="continue"||m==="debugger";case 10:return m==="instanceof";default:return!1}}function o(m,w){return m==="null"||m==="true"||m==="false"||r(m,w)}function a(m,w){return m==="null"||m==="true"||m==="false"||i(m,w)}function c(m){return m==="eval"||m==="arguments"}function h(m){var w,$,B;if(m.length===0||(B=m.charCodeAt(0),!e.isIdentifierStartES5(B)))return!1;for(w=1,$=m.length;w<$;++w)if(B=m.charCodeAt(w),!e.isIdentifierPartES5(B))return!1;return!0}function d(m,w){return(m-55296)*1024+(w-56320)+65536}function p(m){var w,$,B,x,C;if(m.length===0)return!1;for(C=e.isIdentifierStartES6,w=0,$=m.length;w<$;++w){if(B=m.charCodeAt(w),55296<=B&&B<=56319){if(++w,w>=$||(x=m.charCodeAt(w),!(56320<=x&&x<=57343)))return!1;B=d(B,x)}if(!C(B))return!1;C=e.isIdentifierPartES6}return!0}function g(m,w){return h(m)&&!o(m,w)}function y(m,w){return p(m)&&!a(m,w)}VO.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:c,isIdentifierNameES5:h,isIdentifierNameES6:p,isIdentifierES5:g,isIdentifierES6:y}})();(function(){tf.ast=o0,tf.code=_f,tf.keyword=a0})();var Gn=-1,Cn=1,Ir=0;function Gu(e,t,r,i){if(e===t)return e?[[Ir,e]]:[];if(r!=null){var o=QO(e,t,r);if(o)return o}var a=Rg(e,t),c=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=Mg(e,t);var h=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var d=WO(e,t);return c&&d.unshift([Ir,c]),h&&d.push([Ir,h]),Mx(d,i),d}function WO(e,t){var r;if(!e)return[[Cn,t]];if(!t)return[[Gn,e]];var i=e.length>t.length?e:t,o=e.length>t.length?t:e,a=i.indexOf(o);if(a!==-1)return r=[[Cn,i.substring(0,a)],[Ir,o],[Cn,i.substring(a+o.length)]],e.length>t.length&&(r[0][0]=r[2][0]=Gn),r;if(o.length===1)return[[Gn,e],[Cn,t]];var c=KO(e,t);if(c){var h=c[0],d=c[1],p=c[2],g=c[3],y=c[4],m=Gu(h,p),w=Gu(d,g);return m.concat([[Ir,y]],w)}return GO(e,t)}function GO(e,t){for(var r=e.length,i=t.length,o=Math.ceil((r+i)/2),a=o,c=2*o,h=new Array(c),d=new Array(c),p=0;p<c;p++)h[p]=-1,d[p]=-1;h[a+1]=0,d[a+1]=0;for(var g=r-i,y=g%2!==0,m=0,w=0,$=0,B=0,x=0;x<o;x++){for(var C=-x+m;C<=x-w;C+=2){var S=a+C,N;C===-x||C!==x&&h[S-1]<h[S+1]?N=h[S+1]:N=h[S-1]+1;for(var L=N-C;N<r&&L<i&&e.charAt(N)===t.charAt(L);)N++,L++;if(h[S]=N,N>r)w+=2;else if(L>i)m+=2;else if(y){var T=a+g-C;if(T>=0&&T<c&&d[T]!==-1){var R=r-d[T];if(N>=R)return Pb(e,t,N,L)}}}for(var M=-x+$;M<=x-B;M+=2){var T=a+M,R;M===-x||M!==x&&d[T-1]<d[T+1]?R=d[T+1]:R=d[T-1]+1;for(var j=R-M;R<r&&j<i&&e.charAt(r-R-1)===t.charAt(i-j-1);)R++,j++;if(d[T]=R,R>r)B+=2;else if(j>i)$+=2;else if(!y){var S=a+g-M;if(S>=0&&S<c&&h[S]!==-1){var N=h[S],L=a+N-S;if(R=r-R,N>=R)return Pb(e,t,N,L)}}}}return[[Gn,e],[Cn,t]]}function Pb(e,t,r,i){var o=e.substring(0,r),a=t.substring(0,i),c=e.substring(r),h=t.substring(i),d=Gu(o,a),p=Gu(c,h);return d.concat(p)}function Rg(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var r=0,i=Math.min(e.length,t.length),o=i,a=0;r<o;)e.substring(a,o)==t.substring(a,o)?(r=o,a=r):i=o,o=Math.floor((i-r)/2+r);return zx(e.charCodeAt(o-1))&&o--,o}function Mg(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var r=0,i=Math.min(e.length,t.length),o=i,a=0;r<o;)e.substring(e.length-o,e.length-a)==t.substring(t.length-o,t.length-a)?(r=o,a=r):i=o,o=Math.floor((i-r)/2+r);return Ux(e.charCodeAt(e.length-o))&&o--,o}function KO(e,t){var r=e.length>t.length?e:t,i=e.length>t.length?t:e;if(r.length<4||i.length*2<r.length)return null;function o(w,$,B){for(var x=w.substring(B,B+Math.floor(w.length/4)),C=-1,S="",N,L,T,R;(C=$.indexOf(x,C+1))!==-1;){var M=Rg(w.substring(B),$.substring(C)),j=Mg(w.substring(0,B),$.substring(0,C));S.length<j+M&&(S=$.substring(C-j,C)+$.substring(C,C+M),N=w.substring(0,B-j),L=w.substring(B+M),T=$.substring(0,C-j),R=$.substring(C+M))}return S.length*2>=w.length?[N,L,T,R,S]:null}var a=o(r,i,Math.ceil(r.length/4)),c=o(r,i,Math.ceil(r.length/2)),h;if(!a&&!c)return null;c?a?h=a[4].length>c[4].length?a:c:h=c:h=a;var d,p,g,y;e.length>t.length?(d=h[0],p=h[1],g=h[2],y=h[3]):(g=h[0],y=h[1],d=h[2],p=h[3]);var m=h[4];return[d,p,g,y,m]}function Mx(e,t){e.push([Ir,""]);for(var r=0,i=0,o=0,a="",c="",h;r<e.length;){if(r<e.length-1&&!e[r][1]){e.splice(r,1);continue}switch(e[r][0]){case Cn:o++,c+=e[r][1],r++;break;case Gn:i++,a+=e[r][1],r++;break;case Ir:var d=r-o-i-1;if(t){if(d>=0&&qx(e[d][1])){var p=e[d][1].slice(-1);if(e[d][1]=e[d][1].slice(0,-1),a=p+a,c=p+c,!e[d][1]){e.splice(d,1),r--;var g=d-1;e[g]&&e[g][0]===Cn&&(o++,c=e[g][1]+c,g--),e[g]&&e[g][0]===Gn&&(i++,a=e[g][1]+a,g--),d=g}}if(Hx(e[r][1])){var p=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),a+=p,c+=p}}if(r<e.length-1&&!e[r][1]){e.splice(r,1);break}if(a.length>0||c.length>0){a.length>0&&c.length>0&&(h=Rg(c,a),h!==0&&(d>=0?e[d][1]+=c.substring(0,h):(e.splice(0,0,[Ir,c.substring(0,h)]),r++),c=c.substring(h),a=a.substring(h)),h=Mg(c,a),h!==0&&(e[r][1]=c.substring(c.length-h)+e[r][1],c=c.substring(0,c.length-h),a=a.substring(0,a.length-h)));var y=o+i;a.length===0&&c.length===0?(e.splice(r-y,y),r=r-y):a.length===0?(e.splice(r-y,y,[Cn,c]),r=r-y+1):c.length===0?(e.splice(r-y,y,[Gn,a]),r=r-y+1):(e.splice(r-y,y,[Gn,a],[Cn,c]),r=r-y+2)}r!==0&&e[r-1][0]===Ir?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,i=0,a="",c="";break}}e[e.length-1][1]===""&&e.pop();var m=!1;for(r=1;r<e.length-1;)e[r-1][0]===Ir&&e[r+1][0]===Ir&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)===e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),m=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),m=!0)),r++;m&&Mx(e,t)}function zx(e){return e>=55296&&e<=56319}function Ux(e){return e>=56320&&e<=57343}function Hx(e){return Ux(e.charCodeAt(0))}function qx(e){return zx(e.charCodeAt(e.length-1))}function XO(e){for(var t=[],r=0;r<e.length;r++)e[r][1].length>0&&t.push(e[r]);return t}function sp(e,t,r,i){return qx(e)||Hx(i)?null:XO([[Ir,e],[Gn,t],[Cn,r],[Ir,i]])}function QO(e,t,r){var i=typeof r=="number"?{index:r,length:0}:r.oldRange,o=typeof r=="number"?null:r.newRange,a=e.length,c=t.length;if(i.length===0&&(o===null||o.length===0)){var h=i.index,d=e.slice(0,h),p=e.slice(h),g=o?o.index:null;e:{var y=h+c-a;if(g!==null&&g!==y||y<0||y>c)break e;var m=t.slice(0,y),w=t.slice(y);if(w!==p)break e;var $=Math.min(h,y),B=d.slice(0,$),x=m.slice(0,$);if(B!==x)break e;var C=d.slice($),S=m.slice($);return sp(B,C,S,p)}e:{if(g!==null&&g!==h)break e;var N=h,m=t.slice(0,N),w=t.slice(N);if(m!==d)break e;var L=Math.min(a-N,c-N),T=p.slice(p.length-L),R=w.slice(w.length-L);if(T!==R)break e;var C=p.slice(0,p.length-L),S=w.slice(0,w.length-L);return sp(d,C,S,T)}}if(i.length>0&&o&&o.length===0)e:{var B=e.slice(0,i.index),T=e.slice(i.index+i.length),$=B.length,L=T.length;if(c<$+L)break e;var x=t.slice(0,$),R=t.slice(c-L);if(B!==x||T!==R)break e;var C=e.slice($,a-L),S=t.slice($,c-L);return sp(B,C,S,T)}return null}function yh(e,t,r){return Gu(e,t,r,!0)}yh.INSERT=Cn;yh.DELETE=Gn;yh.EQUAL=Ir;var YO=yh;const ZO=tf.keyword,Ac=YO,jx=bt,gr=Ut,Bt=er,JO=jx.DEEP_EQUAL,eP=jx.UNEQUAL;function Vx(e){return new zg(e)}io.describe=Vx;io.deserialize=Vx;const Sf=Symbol("StringValue");io.tag=Sf;function Ec(e){return e.replace(/\\/g,"\\\\")}const tP="␍␊",Wx="␊",u0="␍",Gx=new RegExp(`${u0}|${Wx}|${u0}`,"g");function rP(e){return e===`\r
7
+ `?tP:e===`
8
+ `?Wx:e==="\r"?u0:e}function l0(e,t,r){return r.replace(Gx,i=>t.close+gr.wrap(e.string.controlPicture,i)+t.open)}const nP=/'/g,iP=/"/g,sP=/`/g;function Po(e,t){const r=e.escapeQuote;return r==="'"?t.replace(nP,"\\'"):r==='"'?t.replace(iP,'\\"'):r==="`"?t.replace(sP,"\\`"):t}function op(e){return e.includes("\r")||e.includes(`
9
+ `)}function Nb(e,t,r,i){const o=Ac(t,r),a=!(o.length===2&&o[0][1]===t&&o[1][1]===r||o.length===3&&o[2][0]===Ac.EQUAL&&Gx.test(o[2][1])&&o[0][1]+o[2][1]===t&&o[1][1]+o[2][1]===r);let c="",h="";const d={open:"",close:""};let p=a?e.string.diff.delete:d,g=a?e.string.diff.insert:d;const y=a?e.string.diff.equal:d;i&&([p,g]=[g,p]);for(const m of o)if(m[0]===Ac.DELETE)c+=gr.wrap(p,m[1]);else if(m[0]===Ac.INSERT)h+=gr.wrap(g,m[1]);else{const w=gr.wrap(y,l0(e,y,m[1]));c+=w,h+=w}if(!a){const m=i?e.string.diff.insertLine:e.string.diff.deleteLine,w=i?e.string.diff.deleteLine:e.string.diff.insertLine;c=gr.wrap(m,c),h=gr.wrap(w,h)}return[c,h]}const oP=/\r\n|\r|\n/g;function ap(e){const t=[];let r=0;for(let i;i=oP.exec(e);r=i.index+i[0].length)t.push(e.slice(r,i.index)+rP(i[0]));return t.push(e.slice(r)),t}class zg{constructor(t){this.value=t}compare(t){return t.tag===Sf&&this.value===t.value?JO:eP}get includesLinebreaks(){return op(this.value)}formatDeep(t,r){let i=Ec(this.value);if(!this.includesLinebreaks)return i=Po(t.string.line,i),Bt.single(gr.wrap(t.string.line,gr.wrap(t.string,i)));i=Po(t.string.multiline,i);const o=ap(i).map(h=>gr.wrap(t.string,l0(t,t.string,h))),a=o.length-1,c=r;return Bt.buffer().append(o.map((h,d)=>d===0?Bt.first(t.string.multiline.start+h):d===a?Bt.last(c+h+t.string.multiline.end):Bt.line(c+h)))}formatAsKey(t){const r=this.value;if(ZO.isIdentifierNameES6(r,!0)||String(parseInt(r,10))===r)return r;const i=Ec(r).replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/'/g,"\\'");return gr.wrap(t.string.line,gr.wrap(t.string,i))}diffDeep(t,r,i,o){if(t.tag!==Sf)return null;const a=Ec(this.value),c=Ec(t.value);if(!op(a)&&!op(c)){const x=Nb(r,Po(r.string.line,a),Po(r.string.line,c),o);return Bt.actual.single(gr.wrap(r.string.line,x[0])).concat(Bt.expected.single(gr.wrap(r.string.line,x[1])))}const h=ap(Po(r.string.multiline,a)),d=ap(Po(r.string.multiline,c)),p=i,g=Bt.buffer(),y=h.length-1,m=d.length-1;let w=[],$=[],B=!1;for(let x=0,C=0,S=0;x<h.length;){if(h[x]===d[C]){g.append(w),g.append($),w=[],$=[];let T=h[x];T=l0(r,r.string.diff.equal,T),T=gr.wrap(r.string.diff.equal,T),x===0?g.append(Bt.first(r.string.multiline.start+T)):x===y&&C===m?g.append(Bt.last(p+T+r.string.multiline.end)):g.append(Bt.line(p+T)),x++,C++;continue}let N=!1;{const T=h[x];for(let R=C;!N&&R<d.length;R++)N=T===d[R]}let L=x-S>m||C>m;if(!L){const T=d[C];for(let R=x;!L&&R<h.length;R++)L=T===h[R];!L&&x-S===m&&x<y&&(L=!0)}if(L&&!N){const T=o?r.string.diff.insertLine:r.string.diff.deleteLine,R=gr.wrap(T,h[x]);x===0?(w.push(Bt.actual.first(r.string.multiline.start+R)),B=!0):x===y?w.push(Bt.actual.last(p+R+r.string.multiline.end)):w.push(Bt.actual.line(p+R)),x++,S++}else if(N&&!L){const T=o?r.string.diff.deleteLine:r.string.diff.insertLine,R=gr.wrap(T,d[C]);B?($.push(Bt.expected.first(r.string.multiline.start+R)),B=!1):C===m?$.push(Bt.expected.last(p+R+r.string.multiline.end)):$.push(Bt.expected.line(p+R)),C++}else{const T=Nb(r,h[x],d[C],o);x===0?(w.push(Bt.actual.first(r.string.multiline.start+T[0])),B=!0):x===y?w.push(Bt.actual.last(p+T[0]+r.string.multiline.end)):w.push(Bt.actual.line(p+T[0])),B?($.push(Bt.expected.first(r.string.multiline.start+T[1])),B=!1):C===m?$.push(Bt.expected.last(p+T[1]+r.string.multiline.end)):$.push(Bt.expected.line(p+T[1])),x++,C++}}return g.append(w),g.append($),g}serialize(){return this.value}}Object.defineProperty(zg.prototype,"isPrimitive",{value:!0});Object.defineProperty(zg.prototype,"tag",{value:Sf});const aP=io.tag,Ib=$t,Ug=Jt;function uP(e){return new cP(e)}ll.describe=uP;function lP(e,t){return new fP(e,t)}ll.deserialize=lP;const Kx=Symbol("BoxedValue");ll.tag=Kx;class Hg extends Ug.ObjectValue{}Object.defineProperty(Hg.prototype,"tag",{value:Kx});class cP extends Ug.DescribedMixin(Hg){constructor(t){super(t),this.unboxed=t.unboxed}createListRecursor(){return Ib.NOOP_RECURSOR}createPropertyRecursor(){if(this.unboxed.tag!==aP)return super.createPropertyRecursor();try{return this.isList=!0,super.createPropertyRecursor()}finally{this.isList=!1}}createRecursor(){return Ib.unshift(super.createRecursor(),this.unboxed)}}const fP=Ug.DeserializedMixin(Hg);var cl={};const bh=Jr;function hP(e){return new pP(Object.assign({buffer:bh.getBuffer(e.value),isArray:!0,isList:!0},e))}cl.describe=hP;function dP(e,t){return new gP(e,t)}cl.deserialize=dP;const Xx=Symbol("DataViewValue");cl.tag=Xx;class qg extends bh.TypedArrayValue{}Object.defineProperty(qg.prototype,"tag",{value:Xx});const pP=bh.DescribedMixin(qg),gP=bh.DeserializedMixin(qg);var fl={},Ff={},vP={get exports(){return Ff},set exports(e){Ff=e}},mP=e=>{const t=(e||new Date).getTimezoneOffset(),r=Math.abs(t),i=Math.floor(r/60),o=r%60,a=o>0?":"+("0"+o).slice(-2):"";return(t<0?"+":"-")+i+a};const yP=mP,Qx=e=>{e=Object.assign({date:new Date,local:!0,showTimeZone:!1,showMilliseconds:!1},e);let{date:t}=e;e.local&&(t=new Date(t.getTime()-t.getTimezoneOffset()*6e4));let r="";return e.showTimeZone&&(r=" UTC"+(e.local?yP(t):"")),e.showMilliseconds&&t.getUTCMilliseconds()>0&&(r=` ${t.getUTCMilliseconds()}ms${r}`),t.toISOString().replace(/T/," ").replace(/\..+/,r)};vP.exports=Qx;Ff.default=Qx;const bP=Ff,Yx=bt,Rb=Ut,xc=er,jg=Jt,Mb=Yx.SHALLOW_EQUAL,wP=Yx.UNEQUAL;function DP(e){const t=e.value,r=isNaN(t.valueOf());return new xP(Object.assign({},e,{invalid:r}))}fl.describe=DP;function AP(e,t){return new CP(e,t)}fl.deserialize=AP;const Zx=Symbol("DateValue");fl.tag=Zx;function EP(e){return bP({date:e,local:!1,showTimeZone:!0,showMilliseconds:!0})}class Vg extends jg.ObjectValue{constructor(t){super(t),this.invalid=t.invalid}compare(t){const r=super.compare(t);return r!==Mb?r:this.invalid&&t.invalid||Object.is(this.value.getTime(),t.value.getTime())?Mb:wP}formatShallow(t,r){const i=Rb.formatCtorAndStringTag(t,this)+" "+(this.invalid?t.date.invalid:Rb.wrap(t.date.value,EP(this.value)))+" "+t.object.openBracket;return super.formatShallow(t,r).customize({finalize(o){return o.isEmpty?xc.single(i+t.object.closeBracket):xc.first(i).concat(o.withFirstPrefixed(r.increase()).stripFlags()).append(xc.last(r+t.object.closeBracket))},maxDepth(){return xc.single(i+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){const t=this.invalid?null:this.value.toISOString();return[this.invalid,t,super.serialize()]}}Object.defineProperty(Vg.prototype,"tag",{value:Zx});const xP=jg.DescribedMixin(Vg);class CP extends jg.DeserializedMixin(Vg){constructor(t,r){super(t[2],r),this.invalid=t[0],this.value=new Date(this.invalid?NaN:t[1])}}var hl={};function _P(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return r&&r.enumerable}var Jx=_P;const SP=bt,Cc=Ut,zb=Jx,_c=er,FP=$t.NOOP_RECURSOR,Wg=Jt,$P=SP.UNEQUAL;function TP(e){const t=e.value;return new LP(Object.assign({nameIsEnumerable:zb(t,"name"),name:t.name,messageIsEnumerable:zb(t,"message"),message:t.message},e))}hl.describe=TP;function kP(e,t){return new BP(e,t)}hl.deserialize=kP;const eC=Symbol("ErrorValue");hl.tag=eC;class Gg extends Wg.ObjectValue{constructor(t){super(t),this.name=t.name}compare(t){return this.tag===t.tag&&this.name===t.name?super.compare(t):$P}formatShallow(t,r){const i=this.name||this.ctor;let o=i?Cc.wrap(t.error.name,i):Cc.wrap(t.object.stringTag,this.stringTag);return this.ctor&&this.ctor!==i&&(o+=" "+Cc.wrap(t.error.ctor,this.ctor)),this.stringTag&&this.stringTag!==this.ctor&&this.name&&!this.name.includes(this.stringTag)&&(o+=" "+Cc.wrap(t.object.secondaryStringTag,this.stringTag)),o+=" "+t.object.openBracket,super.formatShallow(t,r).customize({finalize(a){return a.isEmpty?_c.single(o+t.object.closeBracket):_c.first(o).concat(a.withFirstPrefixed(r.increase()).stripFlags()).append(_c.last(r+t.object.closeBracket))},maxDepth(){return _c.single(o+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){return[this.name,super.serialize()]}}Object.defineProperty(Gg.prototype,"tag",{value:eC});class LP extends Wg.DescribedMixin(Gg){constructor(t){super(t),this.nameIsEnumerable=t.nameIsEnumerable,this.messageIsEnumerable=t.messageIsEnumerable,this.message=t.message}createPropertyRecursor(){const t=super.createPropertyRecursor();let r=this.nameIsEnumerable,i=!this.messageIsEnumerable,o=t.size;if(r&&o>0&&(o-=1),i&&(o+=1),o===0)return FP;let a=!1;const c=()=>{if(a)return null;const h=t.next();return h?r&&h.key.value==="name"?(r=!1,c()):h:i?(i=!1,this.describeProperty("message",this.describeAny(this.message))):(a=!0,null)};return{size:o,next:c}}}class BP extends Wg.DeserializedMixin(Gg){constructor(t,r){super(t[1],r),this.name=t[0]}}var dl={};const tC=bt,Ub=Ut,OP=Jx,Sc=er,PP=$t.NOOP_RECURSOR,Kg=Jt,Jo=tC.UNEQUAL,NP=tC.SHALLOW_EQUAL;function IP(e){const t=e.value;return new MP(Object.assign({nameIsEnumerable:OP(t,"name"),name:typeof t.name=="string"?t.name:null},e))}dl.describe=IP;function RP(e,t){return new zP(e,t)}dl.deserialize=RP;const rC=Symbol("FunctionValue");dl.tag=rC;class Xg extends Kg.ObjectValue{constructor(t){super(t),this.name=t.name}formatShallow(t,r){const i=Ub.wrap(t.function.stringTag,this.stringTag)+(this.name?" "+Ub.wrap(t.function.name,this.name):"")+" "+t.object.openBracket;return super.formatShallow(t,r).customize({finalize(o){return o.isEmpty?Sc.single(i+t.object.closeBracket):Sc.first(i).concat(o.withFirstPrefixed(r.increase()).stripFlags()).append(Sc.last(r+t.object.closeBracket))},maxDepth(){return Sc.single(i+" "+t.maxDepth+" "+t.object.closeBracket)}})}}Object.defineProperty(Xg.prototype,"tag",{value:rC});class MP extends Kg.DescribedMixin(Xg){constructor(t){super(t),this.nameIsEnumerable=t.nameIsEnumerable}compare(t){return this.tag!==t.tag||this.name!==t.name||this.value&&t.value&&this.value!==t.value?Jo:super.compare(t)}createPropertyRecursor(){const t=super.createPropertyRecursor(),r=this.nameIsEnumerable;if(!r)return t;let i=t.size;if(r&&(i-=1),i===0)return PP;const o=()=>{const a=t.next();return a?r&&a.key.value==="name"?o():a:null};return{size:i,next:o}}serialize(){return[this.name,super.serialize()]}}class zP extends Kg.DeserializedMixin(Xg){constructor(t,r){super(t[1],r),this.name=t[0]}compare(t){return this.tag!==t.tag||this.name!==t.name||this.stringTag!==t.stringTag?Jo:NP}serialize(){return[this.name,super.serialize()]}}var pl={};const nC=bt,UP=Ut,HP=er,qP=nC.DEEP_EQUAL,jP=nC.UNEQUAL;function iC(){return new Qg}pl.describe=iC;pl.deserialize=iC;const sC=Symbol("GlobalValue");pl.tag=sC;class Qg{compare(t){return this.tag===t.tag?qP:jP}formatDeep(t){return HP.single(UP.wrap(t.global,"Global")+" "+t.object.openBracket+t.object.closeBracket)}}Object.defineProperty(Qg.prototype,"isComplex",{value:!0});Object.defineProperty(Qg.prototype,"tag",{value:sC});var gl={};const oC=bt,VP=$t,Yg=Jt,Hb=oC.SHALLOW_EQUAL,WP=oC.UNEQUAL;function GP(e){return new XP(Object.assign({size:e.value.size},e))}gl.describe=GP;function KP(e,t){return new QP(e,t)}gl.deserialize=KP;const aC=Symbol("MapValue");gl.tag=aC;class Zg extends Yg.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const r=super.compare(t);return r!==Hb?r:this.size===t.size?Hb:WP}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(Zg.prototype,"tag",{value:aC});class XP extends Yg.DescribedMixin(Zg){createIterableRecursor(){const t=this.size;if(t===0)return VP.NOOP_RECURSOR;let r=0,i;return{size:t,next:()=>{if(r===t)return null;i||(i=Array.from(this.value));const a=i[r++];return this.describeMapEntry(this.describeAny(a[0]),this.describeAny(a[1]))}}}}class QP extends Yg.DeserializedMixin(Zg){constructor(t,r){super(t[1],r),this.size=t[0]}}var vl={};const uC=bt,Jg=Jt,qb=uC.DEEP_EQUAL,YP=uC.UNEQUAL;function ZP(e){return new e8(e)}vl.describe=ZP;function JP(e){return new t8(e)}vl.deserialize=JP;const lC=Symbol("PromiseValue");vl.tag=lC;class ev extends Jg.ObjectValue{}Object.defineProperty(ev.prototype,"tag",{value:lC});class e8 extends Jg.DescribedMixin(ev){compare(t){return super.compare(t)===qb?qb:YP}}class t8 extends Jg.DeserializedMixin(ev){compare(t){return super.compare(t)}}var ml={};const r8=bt,Fc=Ut,No=er,tv=Jt,n8=r8.UNEQUAL;function i8(e){const t=e.value;return new a8(Object.assign({flags:o8(t),source:t.source},e))}ml.describe=i8;function s8(e,t){return new u8(e,t)}ml.deserialize=s8;const cC=Symbol("RegexpValue");ml.tag=cC;function o8(e){return(e.flags||String(e).slice(e.source.length+2)).split("").sort().join("")}class rv extends tv.ObjectValue{constructor(t){super(t),this.flags=t.flags,this.source=t.source}compare(t){return this.tag===t.tag&&this.flags===t.flags&&this.source===t.source?super.compare(t):n8}formatShallow(t,r){const i=this.ctor||this.stringTag,o=Fc.wrap(t.regexp.source,this.source)+Fc.wrap(t.regexp.flags,this.flags);return super.formatShallow(t,r).customize({finalize:a=>{if(i==="RegExp"&&a.isEmpty)return No.single(o);const c=r.increase(),h=No.first(Fc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket).concat(No.line(c+o));return a.isEmpty||(h.append(No.line(c+t.regexp.separator)),h.append(a.withFirstPrefixed(c).stripFlags())),h.append(No.last(r+t.object.closeBracket))},maxDepth:()=>No.single(Fc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket+" "+o+" "+t.maxDepth+" "+t.object.closeBracket)})}serialize(){return[this.flags,this.source,super.serialize()]}}Object.defineProperty(rv.prototype,"tag",{value:cC});const a8=tv.DescribedMixin(rv);class u8 extends tv.DeserializedMixin(rv){constructor(t,r){super(t[2],r),this.flags=t[0],this.source=t[1]}}var yl={};const fC=bt,l8=$t,nv=Jt,jb=fC.SHALLOW_EQUAL,c8=fC.UNEQUAL;function f8(e){return new d8(Object.assign({size:e.value.size},e))}yl.describe=f8;function h8(e,t){return new p8(e,t)}yl.deserialize=h8;const hC=Symbol("SetValue");yl.tag=hC;class iv extends nv.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const r=super.compare(t);return r!==jb?r:this.size===t.size?jb:c8}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(iv.prototype,"tag",{value:hC});class d8 extends nv.DescribedMixin(iv){createIterableRecursor(){const t=this.size;if(t===0)return l8.NOOP_RECURSOR;let r=0,i;return{size:t,next:()=>{if(r===t)return null;i||(i=Array.from(this.value));const a=i[r];return this.describeItem(r++,this.describeAny(a))}}}}class p8 extends nv.DeserializedMixin(iv){constructor(t,r){super(t[1],r),this.size=t[0]}}const g8=Object.prototype.hasOwnProperty;function v8(e,t){if(t.constructor){const i=t.constructor.name;return typeof i=="string"&&i!==""?i:null}if(t.constructor===void 0){if(e!=="Object"||t instanceof Object)return null;for(var r in t)if(!g8.call(t,r))return null;return e}return null}var m8=v8,c0={},Vb={get exports(){return c0},set exports(e){c0=e}};const y8=Object.prototype.toString;function up(e){return y8.call(e).slice(8,-1)}const dC=Function.prototype.toString,b8=dC.call(Promise),w8=e=>{if(!e.constructor)return!1;try{return dC.call(e.constructor)===b8}catch{return!1}};if(up(Promise.resolve())==="Promise")Vb.exports=up;else{const e=t=>{const r=up(t);return r==="Object"&&w8(t)?"Promise":r};Vb.exports=e}var Oi={};const pC=bt,D8=Ut,sn=$t,f0=pC.DEEP_EQUAL,Vo=pC.UNEQUAL;function A8(e,t){return new wh(e,t)}Oi.describeComplex=A8;function E8(e,t){const r=t();return new wh(e,r)}Oi.deserializeComplex=E8;function x8(e,t){return new Dh(e,t)}Oi.describePrimitive=x8;function C8(e){const t=e[0],r=e[1];return new Dh(t,r)}Oi.deserializePrimitive=C8;const ns=Symbol("ComplexItem");Oi.complexTag=ns;const pa=Symbol("PrimitiveItem");Oi.primitiveTag=pa;class wh{constructor(t,r){this.index=t,this.value=r}createRecursor(){return sn.singleValue(this.value)}compare(t){return t.tag===ns&&this.index===t.index?this.value.compare(t.value):Vo}formatShallow(t,r){const i=t.item.increaseValueIndent===!0;return new D8.SingleValueFormatter(t,o=>typeof t.item.customFormat=="function"?t.item.customFormat(t,r,o):o.withLastPostfixed(t.item.after),i)}prepareDiff(t,r,i,o,a){if(a(this.value)||a(t.value))return{compareResult:Vo};const c=sn.fork(r),h=sn.fork(i),d=t;let p=!1;for(;!p&&t!==null&&t.isItem===!0;)t.tag===ns&&(p=o(this.value,t.value)!==Vo),t=h.shared();let g=!1;if(d.tag===ns){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===ns&&(g=o(m.value,d.value)!==Vo),m=c.shared()}else if(d.tag===pa){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===pa&&(g=d.value.compare(m.value)===f0),m=c.shared()}if(g&&!p)return{actualIsExtraneous:!0,lhsRecursor:c.recursor,rhsRecursor:sn.map(sn.unshift(h.recursor,d),m=>(m.isItem!==!0||m.index++,m))};if(p&&!g)return{expectedIsMissing:!0,lhsRecursor:sn.map(sn.unshift(c.recursor,this),m=>(m.isItem!==!0||m.index++,m)),rhsRecursor:h.recursor};const y=this.tag===ns&&d.tag===ns&&this.value.compare(d.value)!==Vo;return{mustRecurse:y,isUnequal:!y,lhsRecursor:c.recursor,rhsRecursor:h.recursor}}serialize(){return this.index}}Object.defineProperty(wh.prototype,"isItem",{value:!0});Object.defineProperty(wh.prototype,"tag",{value:ns});class Dh{constructor(t,r){this.index=t,this.value=r}compare(t){return t.tag===pa&&this.index===t.index?this.value.compare(t.value):Vo}formatDeep(t,r){const o=t.item.increaseValueIndent===!0?r.increase():r,a=this.value.formatDeep(t,o);return typeof t.item.customFormat=="function"?t.item.customFormat(t,r,a):a.withLastPostfixed(t.item.after)}prepareDiff(t,r,i,o,a){const c=this.compare(t);if(c===f0)return{compareResult:c};if(t.tag===pa&&this.value.tag===t.value.tag&&typeof this.value.diffDeep=="function")return{compareResult:c};const h=sn.fork(i),d=t;do{if(t===null||t.isItem!==!0)return{actualIsExtraneous:!0,rhsRecursor:sn.map(sn.unshift(h.recursor,d),p=>(p.isItem!==!0||p.index++,p))};if(this.value.compare(t.value)===f0)return{expectedIsMissing:!0,lhsRecursor:sn.map(sn.unshift(r,this),p=>(p.isItem!==!0||p.index++,p)),rhsRecursor:h.recursor};t=h.shared()}while(!0)}diffDeep(t,r,i,o){if(this.tag!==t.tag||typeof this.value.diffDeep!="function")return null;const c=r.property.increaseValueIndent===!0?i.increase():i,h=this.value.diffDeep(t.value,r,c,o);return h===null?null:typeof r.item.customFormat=="function"?r.item.customFormat(r,i,h):h.withLastPostfixed(r.item.after)}serialize(){return[this.index,this.value]}}Object.defineProperty(Dh.prototype,"isItem",{value:!0});Object.defineProperty(Dh.prototype,"tag",{value:pa});var bl={},Io={};function _8(){this.__data__=[],this.size=0}var S8=_8;function F8(e,t){return e===t||e!==e&&t!==t}var Ah=F8,$8=Ah;function T8(e,t){for(var r=e.length;r--;)if($8(e[r][0],t))return r;return-1}var Eh=T8,k8=Eh,L8=Array.prototype,B8=L8.splice;function O8(e){var t=this.__data__,r=k8(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():B8.call(t,r,1),--this.size,!0}var P8=O8,N8=Eh;function I8(e){var t=this.__data__,r=N8(t,e);return r<0?void 0:t[r][1]}var R8=I8,M8=Eh;function z8(e){return M8(this.__data__,e)>-1}var U8=z8,H8=Eh;function q8(e,t){var r=this.__data__,i=H8(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var j8=q8,V8=S8,W8=P8,G8=R8,K8=U8,X8=j8;function Sa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Sa.prototype.clear=V8;Sa.prototype.delete=W8;Sa.prototype.get=G8;Sa.prototype.has=K8;Sa.prototype.set=X8;var xh=Sa,Q8=xh;function Y8(){this.__data__=new Q8,this.size=0}var Z8=Y8;function J8(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var eN=J8;function tN(e){return this.__data__.get(e)}var rN=tN;function nN(e){return this.__data__.has(e)}var iN=nN,sN=typeof un=="object"&&un&&un.Object===Object&&un,gC=sN,oN=gC,aN=typeof self=="object"&&self&&self.Object===Object&&self,uN=oN||aN||Function("return this")(),Zn=uN,lN=Zn,cN=lN.Symbol,Ch=cN,Wb=Ch,vC=Object.prototype,fN=vC.hasOwnProperty,hN=vC.toString,yu=Wb?Wb.toStringTag:void 0;function dN(e){var t=fN.call(e,yu),r=e[yu];try{e[yu]=void 0;var i=!0}catch{}var o=hN.call(e);return i&&(t?e[yu]=r:delete e[yu]),o}var pN=dN,gN=Object.prototype,vN=gN.toString;function mN(e){return vN.call(e)}var yN=mN,Gb=Ch,bN=pN,wN=yN,DN="[object Null]",AN="[object Undefined]",Kb=Gb?Gb.toStringTag:void 0;function EN(e){return e==null?e===void 0?AN:DN:Kb&&Kb in Object(e)?bN(e):wN(e)}var wl=EN;function xN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vs=xN,CN=wl,_N=vs,SN="[object AsyncFunction]",FN="[object Function]",$N="[object GeneratorFunction]",TN="[object Proxy]";function kN(e){if(!_N(e))return!1;var t=CN(e);return t==FN||t==$N||t==SN||t==TN}var sv=kN,LN=Zn,BN=LN["__core-js_shared__"],ON=BN,lp=ON,Xb=function(){var e=/[^.]+$/.exec(lp&&lp.keys&&lp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function PN(e){return!!Xb&&Xb in e}var NN=PN,IN=Function.prototype,RN=IN.toString;function MN(e){if(e!=null){try{return RN.call(e)}catch{}try{return e+""}catch{}}return""}var mC=MN,zN=sv,UN=NN,HN=vs,qN=mC,jN=/[\\^$.*+?()[\]{}|]/g,VN=/^\[object .+?Constructor\]$/,WN=Function.prototype,GN=Object.prototype,KN=WN.toString,XN=GN.hasOwnProperty,QN=RegExp("^"+KN.call(XN).replace(jN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YN(e){if(!HN(e)||UN(e))return!1;var t=zN(e)?QN:VN;return t.test(qN(e))}var ZN=YN;function JN(e,t){return e==null?void 0:e[t]}var eI=JN,tI=ZN,rI=eI;function nI(e,t){var r=rI(e,t);return tI(r)?r:void 0}var so=nI,iI=so,sI=Zn,oI=iI(sI,"Map"),ov=oI,aI=so,uI=aI(Object,"create"),_h=uI,Qb=_h;function lI(){this.__data__=Qb?Qb(null):{},this.size=0}var cI=lI;function fI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hI=fI,dI=_h,pI="__lodash_hash_undefined__",gI=Object.prototype,vI=gI.hasOwnProperty;function mI(e){var t=this.__data__;if(dI){var r=t[e];return r===pI?void 0:r}return vI.call(t,e)?t[e]:void 0}var yI=mI,bI=_h,wI=Object.prototype,DI=wI.hasOwnProperty;function AI(e){var t=this.__data__;return bI?t[e]!==void 0:DI.call(t,e)}var EI=AI,xI=_h,CI="__lodash_hash_undefined__";function _I(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xI&&t===void 0?CI:t,this}var SI=_I,FI=cI,$I=hI,TI=yI,kI=EI,LI=SI;function Fa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Fa.prototype.clear=FI;Fa.prototype.delete=$I;Fa.prototype.get=TI;Fa.prototype.has=kI;Fa.prototype.set=LI;var BI=Fa,Yb=BI,OI=xh,PI=ov;function NI(){this.size=0,this.__data__={hash:new Yb,map:new(PI||OI),string:new Yb}}var II=NI;function RI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var MI=RI,zI=MI;function UI(e,t){var r=e.__data__;return zI(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Sh=UI,HI=Sh;function qI(e){var t=HI(this,e).delete(e);return this.size-=t?1:0,t}var jI=qI,VI=Sh;function WI(e){return VI(this,e).get(e)}var GI=WI,KI=Sh;function XI(e){return KI(this,e).has(e)}var QI=XI,YI=Sh;function ZI(e,t){var r=YI(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var JI=ZI,eR=II,tR=jI,rR=GI,nR=QI,iR=JI;function $a(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}$a.prototype.clear=eR;$a.prototype.delete=tR;$a.prototype.get=rR;$a.prototype.has=nR;$a.prototype.set=iR;var sR=$a,oR=xh,aR=ov,uR=sR,lR=200;function cR(e,t){var r=this.__data__;if(r instanceof oR){var i=r.__data__;if(!aR||i.length<lR-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new uR(i)}return r.set(e,t),this.size=r.size,this}var fR=cR,hR=xh,dR=Z8,pR=eN,gR=rN,vR=iN,mR=fR;function Ta(e){var t=this.__data__=new hR(e);this.size=t.size}Ta.prototype.clear=dR;Ta.prototype.delete=pR;Ta.prototype.get=gR;Ta.prototype.has=vR;Ta.prototype.set=mR;var yC=Ta;function yR(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var bR=yR,wR=so,DR=function(){try{var e=wR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),bC=DR,Zb=bC;function AR(e,t,r){t=="__proto__"&&Zb?Zb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var av=AR,ER=av,xR=Ah,CR=Object.prototype,_R=CR.hasOwnProperty;function SR(e,t,r){var i=e[t];(!(_R.call(e,t)&&xR(i,r))||r===void 0&&!(t in e))&&ER(e,t,r)}var wC=SR,FR=wC,$R=av;function TR(e,t,r,i){var o=!r;r||(r={});for(var a=-1,c=t.length;++a<c;){var h=t[a],d=i?i(r[h],e[h],h,r,e):void 0;d===void 0&&(d=e[h]),o?$R(r,h,d):FR(r,h,d)}return r}var Dl=TR;function kR(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var LR=kR;function BR(e){return e!=null&&typeof e=="object"}var oo=BR,OR=wl,PR=oo,NR="[object Arguments]";function IR(e){return PR(e)&&OR(e)==NR}var RR=IR,Jb=RR,MR=oo,DC=Object.prototype,zR=DC.hasOwnProperty,UR=DC.propertyIsEnumerable,HR=Jb(function(){return arguments}())?Jb:function(e){return MR(e)&&zR.call(e,"callee")&&!UR.call(e,"callee")},uv=HR,qR=Array.isArray,Al=qR,ga={},jR={get exports(){return ga},set exports(e){ga=e}};function VR(){return!1}var WR=VR;(function(e,t){var r=Zn,i=WR,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,c=a&&a.exports===o,h=c?r.Buffer:void 0,d=h?h.isBuffer:void 0,p=d||i;e.exports=p})(jR,ga);var GR=9007199254740991,KR=/^(?:0|[1-9]\d*)$/;function XR(e,t){var r=typeof e;return t=t??GR,!!t&&(r=="number"||r!="symbol"&&KR.test(e))&&e>-1&&e%1==0&&e<t}var AC=XR,QR=wl,YR=Ag,ZR=oo,JR="[object Arguments]",eM="[object Array]",tM="[object Boolean]",rM="[object Date]",nM="[object Error]",iM="[object Function]",sM="[object Map]",oM="[object Number]",aM="[object Object]",uM="[object RegExp]",lM="[object Set]",cM="[object String]",fM="[object WeakMap]",hM="[object ArrayBuffer]",dM="[object DataView]",pM="[object Float32Array]",gM="[object Float64Array]",vM="[object Int8Array]",mM="[object Int16Array]",yM="[object Int32Array]",bM="[object Uint8Array]",wM="[object Uint8ClampedArray]",DM="[object Uint16Array]",AM="[object Uint32Array]",Ct={};Ct[pM]=Ct[gM]=Ct[vM]=Ct[mM]=Ct[yM]=Ct[bM]=Ct[wM]=Ct[DM]=Ct[AM]=!0;Ct[JR]=Ct[eM]=Ct[hM]=Ct[tM]=Ct[dM]=Ct[rM]=Ct[nM]=Ct[iM]=Ct[sM]=Ct[oM]=Ct[aM]=Ct[uM]=Ct[lM]=Ct[cM]=Ct[fM]=!1;function EM(e){return ZR(e)&&YR(e.length)&&!!Ct[QR(e)]}var xM=EM;function CM(e){return function(t){return e(t)}}var lv=CM,va={},_M={get exports(){return va},set exports(e){va=e}};(function(e,t){var r=gC,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,c=a&&r.process,h=function(){try{var d=o&&o.require&&o.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=h})(_M,va);var SM=xM,FM=lv,ew=va,tw=ew&&ew.isTypedArray,$M=tw?FM(tw):SM,EC=$M,TM=LR,kM=uv,LM=Al,BM=ga,OM=AC,PM=EC,NM=Object.prototype,IM=NM.hasOwnProperty;function RM(e,t){var r=LM(e),i=!r&&kM(e),o=!r&&!i&&BM(e),a=!r&&!i&&!o&&PM(e),c=r||i||o||a,h=c?TM(e.length,String):[],d=h.length;for(var p in e)(t||IM.call(e,p))&&!(c&&(p=="length"||o&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||OM(p,d)))&&h.push(p);return h}var xC=RM,MM=Object.prototype;function zM(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||MM;return e===r}var cv=zM;function UM(e,t){return function(r){return e(t(r))}}var CC=UM,HM=CC,qM=HM(Object.keys,Object),jM=qM,VM=cv,WM=jM,GM=Object.prototype,KM=GM.hasOwnProperty;function XM(e){if(!VM(e))return WM(e);var t=[];for(var r in Object(e))KM.call(e,r)&&r!="constructor"&&t.push(r);return t}var QM=XM,YM=sv,ZM=Ag;function JM(e){return e!=null&&ZM(e.length)&&!YM(e)}var Fh=JM,e5=xC,t5=QM,r5=Fh;function n5(e){return r5(e)?e5(e):t5(e)}var fv=n5,i5=Dl,s5=fv;function o5(e,t){return e&&i5(t,s5(t),e)}var a5=o5;function u5(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var l5=u5,c5=vs,f5=cv,h5=l5,d5=Object.prototype,p5=d5.hasOwnProperty;function g5(e){if(!c5(e))return h5(e);var t=f5(e),r=[];for(var i in e)i=="constructor"&&(t||!p5.call(e,i))||r.push(i);return r}var v5=g5,m5=xC,y5=v5,b5=Fh;function w5(e){return b5(e)?m5(e,!0):y5(e)}var El=w5,D5=Dl,A5=El;function E5(e,t){return e&&D5(t,A5(t),e)}var x5=E5,Ku={},C5={get exports(){return Ku},set exports(e){Ku=e}};(function(e,t){var r=Zn,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,c=a?r.Buffer:void 0,h=c?c.allocUnsafe:void 0;function d(p,g){if(g)return p.slice();var y=p.length,m=h?h(y):new p.constructor(y);return p.copy(m),m}e.exports=d})(C5,Ku);function _5(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var _C=_5;function S5(e,t){for(var r=-1,i=e==null?0:e.length,o=0,a=[];++r<i;){var c=e[r];t(c,r,e)&&(a[o++]=c)}return a}var F5=S5;function $5(){return[]}var SC=$5,T5=F5,k5=SC,L5=Object.prototype,B5=L5.propertyIsEnumerable,rw=Object.getOwnPropertySymbols,O5=rw?function(e){return e==null?[]:(e=Object(e),T5(rw(e),function(t){return B5.call(e,t)}))}:k5,hv=O5,P5=Dl,N5=hv;function I5(e,t){return P5(e,N5(e),t)}var R5=I5;function M5(e,t){for(var r=-1,i=t.length,o=e.length;++r<i;)e[o+r]=t[r];return e}var dv=M5,z5=CC,U5=z5(Object.getPrototypeOf,Object),pv=U5,H5=dv,q5=pv,j5=hv,V5=SC,W5=Object.getOwnPropertySymbols,G5=W5?function(e){for(var t=[];e;)H5(t,j5(e)),e=q5(e);return t}:V5,FC=G5,K5=Dl,X5=FC;function Q5(e,t){return K5(e,X5(e),t)}var Y5=Q5,Z5=dv,J5=Al;function e6(e,t,r){var i=t(e);return J5(e)?i:Z5(i,r(e))}var $C=e6,t6=$C,r6=hv,n6=fv;function i6(e){return t6(e,n6,r6)}var s6=i6,o6=$C,a6=FC,u6=El;function l6(e){return o6(e,u6,a6)}var c6=l6,f6=so,h6=Zn,d6=f6(h6,"DataView"),p6=d6,g6=so,v6=Zn,m6=g6(v6,"Promise"),y6=m6,b6=so,w6=Zn,D6=b6(w6,"Set"),A6=D6,E6=so,x6=Zn,C6=E6(x6,"WeakMap"),_6=C6,h0=p6,d0=ov,p0=y6,g0=A6,v0=_6,TC=wl,ka=mC,nw="[object Map]",S6="[object Object]",iw="[object Promise]",sw="[object Set]",ow="[object WeakMap]",aw="[object DataView]",F6=ka(h0),$6=ka(d0),T6=ka(p0),k6=ka(g0),L6=ka(v0),Ps=TC;(h0&&Ps(new h0(new ArrayBuffer(1)))!=aw||d0&&Ps(new d0)!=nw||p0&&Ps(p0.resolve())!=iw||g0&&Ps(new g0)!=sw||v0&&Ps(new v0)!=ow)&&(Ps=function(e){var t=TC(e),r=t==S6?e.constructor:void 0,i=r?ka(r):"";if(i)switch(i){case F6:return aw;case $6:return nw;case T6:return iw;case k6:return sw;case L6:return ow}return t});var gv=Ps,B6=Object.prototype,O6=B6.hasOwnProperty;function P6(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&O6.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var N6=P6,I6=Zn,R6=I6.Uint8Array,M6=R6,uw=M6;function z6(e){var t=new e.constructor(e.byteLength);return new uw(t).set(new uw(e)),t}var vv=z6,U6=vv;function H6(e,t){var r=t?U6(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var q6=H6,j6=/\w*$/;function V6(e){var t=new e.constructor(e.source,j6.exec(e));return t.lastIndex=e.lastIndex,t}var W6=V6,lw=Ch,cw=lw?lw.prototype:void 0,fw=cw?cw.valueOf:void 0;function G6(e){return fw?Object(fw.call(e)):{}}var K6=G6,X6=vv;function Q6(e,t){var r=t?X6(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var kC=Q6,Y6=vv,Z6=q6,J6=W6,e4=K6,t4=kC,r4="[object Boolean]",n4="[object Date]",i4="[object Map]",s4="[object Number]",o4="[object RegExp]",a4="[object Set]",u4="[object String]",l4="[object Symbol]",c4="[object ArrayBuffer]",f4="[object DataView]",h4="[object Float32Array]",d4="[object Float64Array]",p4="[object Int8Array]",g4="[object Int16Array]",v4="[object Int32Array]",m4="[object Uint8Array]",y4="[object Uint8ClampedArray]",b4="[object Uint16Array]",w4="[object Uint32Array]";function D4(e,t,r){var i=e.constructor;switch(t){case c4:return Y6(e);case r4:case n4:return new i(+e);case f4:return Z6(e,r);case h4:case d4:case p4:case g4:case v4:case m4:case y4:case b4:case w4:return t4(e,r);case i4:return new i;case s4:case u4:return new i(e);case o4:return J6(e);case a4:return new i;case l4:return e4(e)}}var A4=D4,E4=vs,hw=Object.create,x4=function(){function e(){}return function(t){if(!E4(t))return{};if(hw)return hw(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),C4=x4,_4=C4,S4=pv,F4=cv;function $4(e){return typeof e.constructor=="function"&&!F4(e)?_4(S4(e)):{}}var LC=$4,T4=gv,k4=oo,L4="[object Map]";function B4(e){return k4(e)&&T4(e)==L4}var O4=B4,P4=O4,N4=lv,dw=va,pw=dw&&dw.isMap,I4=pw?N4(pw):P4,R4=I4,M4=gv,z4=oo,U4="[object Set]";function H4(e){return z4(e)&&M4(e)==U4}var q4=H4,j4=q4,V4=lv,gw=va,vw=gw&&gw.isSet,W4=vw?V4(vw):j4,G4=W4,K4=yC,X4=bR,Q4=wC,Y4=a5,Z4=x5,J4=Ku,ez=_C,tz=R5,rz=Y5,nz=s6,iz=c6,sz=gv,oz=N6,az=A4,uz=LC,lz=Al,cz=ga,fz=R4,hz=vs,dz=G4,pz=fv,gz=El,vz=1,mz=2,yz=4,BC="[object Arguments]",bz="[object Array]",wz="[object Boolean]",Dz="[object Date]",Az="[object Error]",OC="[object Function]",Ez="[object GeneratorFunction]",xz="[object Map]",Cz="[object Number]",PC="[object Object]",_z="[object RegExp]",Sz="[object Set]",Fz="[object String]",$z="[object Symbol]",Tz="[object WeakMap]",kz="[object ArrayBuffer]",Lz="[object DataView]",Bz="[object Float32Array]",Oz="[object Float64Array]",Pz="[object Int8Array]",Nz="[object Int16Array]",Iz="[object Int32Array]",Rz="[object Uint8Array]",Mz="[object Uint8ClampedArray]",zz="[object Uint16Array]",Uz="[object Uint32Array]",At={};At[BC]=At[bz]=At[kz]=At[Lz]=At[wz]=At[Dz]=At[Bz]=At[Oz]=At[Pz]=At[Nz]=At[Iz]=At[xz]=At[Cz]=At[PC]=At[_z]=At[Sz]=At[Fz]=At[$z]=At[Rz]=At[Mz]=At[zz]=At[Uz]=!0;At[Az]=At[OC]=At[Tz]=!1;function rf(e,t,r,i,o,a){var c,h=t&vz,d=t&mz,p=t&yz;if(r&&(c=o?r(e,i,o,a):r(e)),c!==void 0)return c;if(!hz(e))return e;var g=lz(e);if(g){if(c=oz(e),!h)return ez(e,c)}else{var y=sz(e),m=y==OC||y==Ez;if(cz(e))return J4(e,h);if(y==PC||y==BC||m&&!o){if(c=d||m?{}:uz(e),!h)return d?rz(e,Z4(c,e)):tz(e,Y4(c,e))}else{if(!At[y])return o?e:{};c=az(e,y,h)}}a||(a=new K4);var w=a.get(e);if(w)return w;a.set(e,c),dz(e)?e.forEach(function(x){c.add(rf(x,t,r,x,e,a))}):fz(e)&&e.forEach(function(x,C){c.set(C,rf(x,t,r,C,e,a))});var $=p?d?iz:nz:d?gz:pz,B=g?void 0:$(e);return X4(B||e,function(x,C){B&&(C=x,x=e[C]),Q4(c,C,rf(x,t,r,C,e,a))}),c}var Hz=rf,qz=Hz,jz=1,Vz=4;function Wz(e){return qz(e,jz|Vz)}var Gz=Wz,Kz=av,Xz=Ah;function Qz(e,t,r){(r!==void 0&&!Xz(e[t],r)||r===void 0&&!(t in e))&&Kz(e,t,r)}var NC=Qz;function Yz(e){return function(t,r,i){for(var o=-1,a=Object(t),c=i(t),h=c.length;h--;){var d=c[e?h:++o];if(r(a[d],d,a)===!1)break}return t}}var Zz=Yz,Jz=Zz,e9=Jz(),t9=e9,r9=Fh,n9=oo;function i9(e){return n9(e)&&r9(e)}var s9=i9,o9=wl,a9=pv,u9=oo,l9="[object Object]",c9=Function.prototype,f9=Object.prototype,IC=c9.toString,h9=f9.hasOwnProperty,d9=IC.call(Object);function p9(e){if(!u9(e)||o9(e)!=l9)return!1;var t=a9(e);if(t===null)return!0;var r=h9.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&IC.call(r)==d9}var g9=p9;function v9(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var RC=v9,m9=Dl,y9=El;function b9(e){return m9(e,y9(e))}var w9=b9,mw=NC,D9=Ku,A9=kC,E9=_C,x9=LC,yw=uv,bw=Al,C9=s9,_9=ga,S9=sv,F9=vs,$9=g9,T9=EC,ww=RC,k9=w9;function L9(e,t,r,i,o,a,c){var h=ww(e,r),d=ww(t,r),p=c.get(d);if(p){mw(e,r,p);return}var g=a?a(h,d,r+"",e,t,c):void 0,y=g===void 0;if(y){var m=bw(d),w=!m&&_9(d),$=!m&&!w&&T9(d);g=d,m||w||$?bw(h)?g=h:C9(h)?g=E9(h):w?(y=!1,g=D9(d,!0)):$?(y=!1,g=A9(d,!0)):g=[]:$9(d)||yw(d)?(g=h,yw(h)?g=k9(h):(!F9(h)||S9(h))&&(g=x9(d))):y=!1}y&&(c.set(d,g),o(g,d,i,a,c),c.delete(d)),mw(e,r,g)}var B9=L9,O9=yC,P9=NC,N9=t9,I9=B9,R9=vs,M9=El,z9=RC;function MC(e,t,r,i,o){e!==t&&N9(t,function(a,c){if(o||(o=new O9),R9(a))I9(e,t,c,r,MC,i,o);else{var h=i?i(z9(e,c),a,c+"",e,t,o):void 0;h===void 0&&(h=a),P9(e,c,h)}},M9)}var U9=MC;function H9(e){return e}var zC=H9;function q9(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var j9=q9,V9=j9,Dw=Math.max;function W9(e,t,r){return t=Dw(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=Dw(i.length-t,0),c=Array(a);++o<a;)c[o]=i[t+o];o=-1;for(var h=Array(t+1);++o<t;)h[o]=i[o];return h[t]=r(c),V9(e,this,h)}}var G9=W9;function K9(e){return function(){return e}}var X9=K9,Q9=X9,Aw=bC,Y9=zC,Z9=Aw?function(e,t){return Aw(e,"toString",{configurable:!0,enumerable:!1,value:Q9(t),writable:!0})}:Y9,J9=Z9,e7=800,t7=16,r7=Date.now;function n7(e){var t=0,r=0;return function(){var i=r7(),o=t7-(i-r);if(r=i,o>0){if(++t>=e7)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i7=n7,s7=J9,o7=i7,a7=o7(s7),u7=a7,l7=zC,c7=G9,f7=u7;function h7(e,t){return f7(c7(e,t,l7),e+"")}var d7=h7,p7=Ah,g7=Fh,v7=AC,m7=vs;function y7(e,t,r){if(!m7(r))return!1;var i=typeof t;return(i=="number"?g7(r)&&v7(t,r.length):i=="string"&&t in r)?p7(r[t],e):!1}var b7=y7,w7=d7,D7=b7;function A7(e){return w7(function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,c=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,c&&D7(r[0],r[1],c)&&(a=o<3?void 0:a,o=1),t=Object(t);++i<o;){var h=r[i];h&&e(t,h,i,a)}return t})}var E7=A7,x7=U9,C7=E7,_7=C7(function(e,t,r){x7(e,t,r)}),S7=_7,Ls={},Fi={},F7={get exports(){return Fi},set exports(e){Fi=e}};const $7="2.0.0",T7=256,k7=Number.MAX_SAFE_INTEGER||9007199254740991,L7=16;var $h={SEMVER_SPEC_VERSION:$7,MAX_LENGTH:T7,MAX_SAFE_INTEGER:k7,MAX_SAFE_COMPONENT_LENGTH:L7};const B7=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Th=B7;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=$h,i=Th;t=e.exports={};const o=t.re=[],a=t.src=[],c=t.t={};let h=0;const d=(p,g,y)=>{const m=h++;i(p,m,g),c[p]=m,a[m]=g,o[m]=new RegExp(g,y?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","[0-9]+"),d("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),d("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${a[c.NUMERICIDENTIFIER]}|${a[c.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NUMERICIDENTIFIERLOOSE]}|${a[c.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER","[0-9A-Za-z-]+"),d("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`),d("FULL",`^${a[c.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`),d("LOOSE",`^${a[c.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`),d("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`),d("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),d("COERCERTL",a[c.COERCE],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(F7,Fi);const O7=["includePrerelease","loose","rtl"],P7=e=>e?typeof e!="object"?{loose:!0}:O7.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var kh=P7;const Ew=/^[0-9]+$/,UC=(e,t)=>{const r=Ew.test(e),i=Ew.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},N7=(e,t)=>UC(t,e);var HC={compareIdentifiers:UC,rcompareIdentifiers:N7};const $c=Th,{MAX_LENGTH:xw,MAX_SAFE_INTEGER:Tc}=$h,{re:Cw,t:_w}=Fi,I7=kh,{compareIdentifiers:Ro}=HC;let R7=class Un{constructor(t,r){if(r=I7(r),t instanceof Un){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>xw)throw new TypeError(`version is longer than ${xw} characters`);$c("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?Cw[_w.LOOSE]:Cw[_w.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Tc||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Tc||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Tc||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const a=+o;if(a>=0&&a<Tc)return a}return o}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if($c("SemVer.compare",this.version,this.options,t),!(t instanceof Un)){if(typeof t=="string"&&t===this.version)return 0;t=new Un(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Un||(t=new Un(t,this.options)),Ro(this.major,t.major)||Ro(this.minor,t.minor)||Ro(this.patch,t.patch)}comparePre(t){if(t instanceof Un||(t=new Un(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const i=this.prerelease[r],o=t.prerelease[r];if($c("prerelease compare",r,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return Ro(i,o)}while(++r)}compareBuild(t){t instanceof Un||(t=new Un(t,this.options));let r=0;do{const i=this.build[r],o=t.build[r];if($c("prerelease compare",r,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return Ro(i,o)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}r&&(Ro(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var Tr=R7;const{MAX_LENGTH:M7}=$h,{re:Sw,t:Fw}=Fi,$w=Tr,z7=kh,U7=(e,t)=>{if(t=z7(t),e instanceof $w)return e;if(typeof e!="string"||e.length>M7||!(t.loose?Sw[Fw.LOOSE]:Sw[Fw.FULL]).test(e))return null;try{return new $w(e,t)}catch{return null}};var La=U7;const H7=La,q7=(e,t)=>{const r=H7(e,t);return r?r.version:null};var j7=q7;const V7=La,W7=(e,t)=>{const r=V7(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var G7=W7;const Tw=Tr,K7=(e,t,r,i)=>{typeof r=="string"&&(i=r,r=void 0);try{return new Tw(e instanceof Tw?e.version:e,r).inc(t,i).version}catch{return null}};var X7=K7;const kw=Tr,Q7=(e,t,r)=>new kw(e,r).compare(new kw(t,r));var $n=Q7;const Y7=$n,Z7=(e,t,r)=>Y7(e,t,r)===0;var mv=Z7;const Lw=La,J7=mv,eU=(e,t)=>{if(J7(e,t))return null;{const r=Lw(e),i=Lw(t),o=r.prerelease.length||i.prerelease.length,a=o?"pre":"",c=o?"prerelease":"";for(const h in r)if((h==="major"||h==="minor"||h==="patch")&&r[h]!==i[h])return a+h;return c}};var tU=eU;const rU=Tr,nU=(e,t)=>new rU(e,t).major;var iU=nU;const sU=Tr,oU=(e,t)=>new sU(e,t).minor;var aU=oU;const uU=Tr,lU=(e,t)=>new uU(e,t).patch;var cU=lU;const fU=La,hU=(e,t)=>{const r=fU(e,t);return r&&r.prerelease.length?r.prerelease:null};var dU=hU;const pU=$n,gU=(e,t,r)=>pU(t,e,r);var vU=gU;const mU=$n,yU=(e,t)=>mU(e,t,!0);var bU=yU;const Bw=Tr,wU=(e,t,r)=>{const i=new Bw(e,r),o=new Bw(t,r);return i.compare(o)||i.compareBuild(o)};var yv=wU;const DU=yv,AU=(e,t)=>e.sort((r,i)=>DU(r,i,t));var EU=AU;const xU=yv,CU=(e,t)=>e.sort((r,i)=>xU(i,r,t));var _U=CU;const SU=$n,FU=(e,t,r)=>SU(e,t,r)>0;var Lh=FU;const $U=$n,TU=(e,t,r)=>$U(e,t,r)<0;var bv=TU;const kU=$n,LU=(e,t,r)=>kU(e,t,r)!==0;var qC=LU;const BU=$n,OU=(e,t,r)=>BU(e,t,r)>=0;var wv=OU;const PU=$n,NU=(e,t,r)=>PU(e,t,r)<=0;var Dv=NU;const IU=mv,RU=qC,MU=Lh,zU=wv,UU=bv,HU=Dv,qU=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return IU(e,r,i);case"!=":return RU(e,r,i);case">":return MU(e,r,i);case">=":return zU(e,r,i);case"<":return UU(e,r,i);case"<=":return HU(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}};var jC=qU;const jU=Tr,VU=La,{re:kc,t:Lc}=Fi,WU=(e,t)=>{if(e instanceof jU)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(kc[Lc.COERCE]);else{let i;for(;(i=kc[Lc.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),kc[Lc.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;kc[Lc.COERCERTL].lastIndex=-1}return r===null?null:VU(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var GU=WU,cp,Ow;function KU(){return Ow||(Ow=1,cp=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),cp}var XU=ft;ft.Node=Ys;ft.create=ft;function ft(e){var t=this;if(t instanceof ft||(t=new ft),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}ft.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ft.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ft.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ft.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)YU(this,arguments[e]);return this.length};ft.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)ZU(this,arguments[e]);return this.length};ft.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ft.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ft.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,i=0;r!==null;i++)e.call(t,r.value,i,this),r=r.next};ft.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,i=this.length-1;r!==null;i--)e.call(t,r.value,i,this),r=r.prev};ft.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};ft.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};ft.prototype.map=function(e,t){t=t||this;for(var r=new ft,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r};ft.prototype.mapReverse=function(e,t){t=t||this;for(var r=new ft,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r};ft.prototype.reduce=function(e,t){var r,i=this.head;if(arguments.length>1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;i!==null;o++)r=e(r,i.value,o),i=i.next;return r};ft.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;i!==null;o--)r=e(r,i.value,o),i=i.prev;return r};ft.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};ft.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};ft.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ft;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;o!==null&&i<e;i++)o=o.next;for(;o!==null&&i<t;i++,o=o.next)r.push(o.value);return r};ft.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ft;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;o!==null&&i>t;i--)o=o.prev;for(;o!==null&&i>e;i--,o=o.prev)r.push(o.value);return r};ft.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;o!==null&&i<e;i++)o=o.next;for(var a=[],i=0;o&&i<t;i++)a.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<r.length;i++)o=QU(this,o,r[i]);return a};ft.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=t,this.tail=e,this};function QU(e,t,r){var i=t===e.head?new Ys(r,null,t,e):new Ys(r,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function YU(e,t){e.tail=new Ys(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function ZU(e,t){e.head=new Ys(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Ys(e,t,r,i){if(!(this instanceof Ys))return new Ys(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{KU()(ft)}catch{}const JU=XU,Rs=Symbol("max"),bi=Symbol("length"),Mo=Symbol("lengthCalculator"),Ou=Symbol("allowStale"),Hs=Symbol("maxAge"),mi=Symbol("dispose"),Pw=Symbol("noDisposeOnSet"),nr=Symbol("lruList"),bn=Symbol("cache"),VC=Symbol("updateAgeOnGet"),fp=()=>1;class eH{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Rs]=t.max||1/0;const r=t.length||fp;if(this[Mo]=typeof r!="function"?fp:r,this[Ou]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Hs]=t.maxAge||0,this[mi]=t.dispose,this[Pw]=t.noDisposeOnSet||!1,this[VC]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Rs]=t||1/0,bu(this)}get max(){return this[Rs]}set allowStale(t){this[Ou]=!!t}get allowStale(){return this[Ou]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Hs]=t,bu(this)}get maxAge(){return this[Hs]}set lengthCalculator(t){typeof t!="function"&&(t=fp),t!==this[Mo]&&(this[Mo]=t,this[bi]=0,this[nr].forEach(r=>{r.length=this[Mo](r.value,r.key),this[bi]+=r.length})),bu(this)}get lengthCalculator(){return this[Mo]}get length(){return this[bi]}get itemCount(){return this[nr].length}rforEach(t,r){r=r||this;for(let i=this[nr].tail;i!==null;){const o=i.prev;Nw(this,t,i,r),i=o}}forEach(t,r){r=r||this;for(let i=this[nr].head;i!==null;){const o=i.next;Nw(this,t,i,r),i=o}}keys(){return this[nr].toArray().map(t=>t.key)}values(){return this[nr].toArray().map(t=>t.value)}reset(){this[mi]&&this[nr]&&this[nr].length&&this[nr].forEach(t=>this[mi](t.key,t.value)),this[bn]=new Map,this[nr]=new JU,this[bi]=0}dump(){return this[nr].map(t=>$f(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[nr]}set(t,r,i){if(i=i||this[Hs],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const o=i?Date.now():0,a=this[Mo](r,t);if(this[bn].has(t)){if(a>this[Rs])return ea(this,this[bn].get(t)),!1;const d=this[bn].get(t).value;return this[mi]&&(this[Pw]||this[mi](t,d.value)),d.now=o,d.maxAge=i,d.value=r,this[bi]+=a-d.length,d.length=a,this.get(t),bu(this),!0}const c=new tH(t,r,a,o,i);return c.length>this[Rs]?(this[mi]&&this[mi](t,r),!1):(this[bi]+=c.length,this[nr].unshift(c),this[bn].set(t,this[nr].head),bu(this),!0)}has(t){if(!this[bn].has(t))return!1;const r=this[bn].get(t).value;return!$f(this,r)}get(t){return hp(this,t,!0)}peek(t){return hp(this,t,!1)}pop(){const t=this[nr].tail;return t?(ea(this,t),t.value):null}del(t){ea(this,this[bn].get(t))}load(t){this.reset();const r=Date.now();for(let i=t.length-1;i>=0;i--){const o=t[i],a=o.e||0;if(a===0)this.set(o.k,o.v);else{const c=a-r;c>0&&this.set(o.k,o.v,c)}}}prune(){this[bn].forEach((t,r)=>hp(this,r,!1))}}const hp=(e,t,r)=>{const i=e[bn].get(t);if(i){const o=i.value;if($f(e,o)){if(ea(e,i),!e[Ou])return}else r&&(e[VC]&&(i.value.now=Date.now()),e[nr].unshiftNode(i));return o.value}},$f=(e,t)=>{if(!t||!t.maxAge&&!e[Hs])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Hs]&&r>e[Hs]},bu=e=>{if(e[bi]>e[Rs])for(let t=e[nr].tail;e[bi]>e[Rs]&&t!==null;){const r=t.prev;ea(e,t),t=r}},ea=(e,t)=>{if(t){const r=t.value;e[mi]&&e[mi](r.key,r.value),e[bi]-=r.length,e[bn].delete(r.key),e[nr].removeNode(t)}};class tH{constructor(t,r,i,o,a){this.key=t,this.value=r,this.length=i,this.now=o,this.maxAge=a||0}}const Nw=(e,t,r,i)=>{let o=r.value;$f(e,o)&&(ea(e,r),e[Ou]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};var rH=eH,dp,Iw;function Tn(){if(Iw)return dp;Iw=1;class e{constructor(z,O){if(O=i(O),z instanceof e)return z.loose===!!O.loose&&z.includePrerelease===!!O.includePrerelease?z:new e(z.raw,O);if(z instanceof o)return this.raw=z.value,this.set=[[z]],this.format(),this;if(this.options=O,this.loose=!!O.loose,this.includePrerelease=!!O.includePrerelease,this.raw=z,this.set=z.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${z}`);if(this.set.length>1){const F=this.set[0];if(this.set=this.set.filter(D=>!m(D[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(const D of this.set)if(D.length===1&&w(D[0])){this.set=[D];break}}}this.format()}format(){return this.range=this.set.map(z=>z.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(z){z=z.trim();const F=`parseRange:${Object.keys(this.options).join(",")}:${z}`,D=r.get(F);if(D)return D;const I=this.options.loose,V=I?h[d.HYPHENRANGELOOSE]:h[d.HYPHENRANGE];z=z.replace(V,te(this.options.includePrerelease)),a("hyphen replace",z),z=z.replace(h[d.COMPARATORTRIM],p),a("comparator trim",z),z=z.replace(h[d.TILDETRIM],g),z=z.replace(h[d.CARETTRIM],y),z=z.split(/\s+/).join(" ");let J=z.split(" ").map(_e=>B(_e,this.options)).join(" ").split(/\s+/).map(_e=>j(_e,this.options));I&&(J=J.filter(_e=>(a("loose invalid filter",_e,this.options),!!_e.match(h[d.COMPARATORLOOSE])))),a("range list",J);const oe=new Map,ge=J.map(_e=>new o(_e,this.options));for(const _e of ge){if(m(_e))return[_e];oe.set(_e.value,_e)}oe.size>1&&oe.has("")&&oe.delete("");const Fe=[...oe.values()];return r.set(F,Fe),Fe}intersects(z,O){if(!(z instanceof e))throw new TypeError("a Range is required");return this.set.some(F=>$(F,O)&&z.set.some(D=>$(D,O)&&F.every(I=>D.every(V=>I.intersects(V,O)))))}test(z){if(!z)return!1;if(typeof z=="string")try{z=new c(z,this.options)}catch{return!1}for(let O=0;O<this.set.length;O++)if(ie(this.set[O],z,this.options))return!0;return!1}}dp=e;const t=rH,r=new t({max:1e3}),i=kh,o=Bh(),a=Th,c=Tr,{re:h,t:d,comparatorTrimReplace:p,tildeTrimReplace:g,caretTrimReplace:y}=Fi,m=ee=>ee.value==="<0.0.0-0",w=ee=>ee.value==="",$=(ee,z)=>{let O=!0;const F=ee.slice();let D=F.pop();for(;O&&F.length;)O=F.every(I=>D.intersects(I,z)),D=F.pop();return O},B=(ee,z)=>(a("comp",ee,z),ee=N(ee,z),a("caret",ee),ee=C(ee,z),a("tildes",ee),ee=T(ee,z),a("xrange",ee),ee=M(ee,z),a("stars",ee),ee),x=ee=>!ee||ee.toLowerCase()==="x"||ee==="*",C=(ee,z)=>ee.trim().split(/\s+/).map(O=>S(O,z)).join(" "),S=(ee,z)=>{const O=z.loose?h[d.TILDELOOSE]:h[d.TILDE];return ee.replace(O,(F,D,I,V,J)=>{a("tilde",ee,F,D,I,V,J);let oe;return x(D)?oe="":x(I)?oe=`>=${D}.0.0 <${+D+1}.0.0-0`:x(V)?oe=`>=${D}.${I}.0 <${D}.${+I+1}.0-0`:J?(a("replaceTilde pr",J),oe=`>=${D}.${I}.${V}-${J} <${D}.${+I+1}.0-0`):oe=`>=${D}.${I}.${V} <${D}.${+I+1}.0-0`,a("tilde return",oe),oe})},N=(ee,z)=>ee.trim().split(/\s+/).map(O=>L(O,z)).join(" "),L=(ee,z)=>{a("caret",ee,z);const O=z.loose?h[d.CARETLOOSE]:h[d.CARET],F=z.includePrerelease?"-0":"";return ee.replace(O,(D,I,V,J,oe)=>{a("caret",ee,D,I,V,J,oe);let ge;return x(I)?ge="":x(V)?ge=`>=${I}.0.0${F} <${+I+1}.0.0-0`:x(J)?I==="0"?ge=`>=${I}.${V}.0${F} <${I}.${+V+1}.0-0`:ge=`>=${I}.${V}.0${F} <${+I+1}.0.0-0`:oe?(a("replaceCaret pr",oe),I==="0"?V==="0"?ge=`>=${I}.${V}.${J}-${oe} <${I}.${V}.${+J+1}-0`:ge=`>=${I}.${V}.${J}-${oe} <${I}.${+V+1}.0-0`:ge=`>=${I}.${V}.${J}-${oe} <${+I+1}.0.0-0`):(a("no pr"),I==="0"?V==="0"?ge=`>=${I}.${V}.${J}${F} <${I}.${V}.${+J+1}-0`:ge=`>=${I}.${V}.${J}${F} <${I}.${+V+1}.0-0`:ge=`>=${I}.${V}.${J} <${+I+1}.0.0-0`),a("caret return",ge),ge})},T=(ee,z)=>(a("replaceXRanges",ee,z),ee.split(/\s+/).map(O=>R(O,z)).join(" ")),R=(ee,z)=>{ee=ee.trim();const O=z.loose?h[d.XRANGELOOSE]:h[d.XRANGE];return ee.replace(O,(F,D,I,V,J,oe)=>{a("xRange",ee,F,D,I,V,J,oe);const ge=x(I),Fe=ge||x(V),_e=Fe||x(J),Ue=_e;return D==="="&&Ue&&(D=""),oe=z.includePrerelease?"-0":"",ge?D===">"||D==="<"?F="<0.0.0-0":F="*":D&&Ue?(Fe&&(V=0),J=0,D===">"?(D=">=",Fe?(I=+I+1,V=0,J=0):(V=+V+1,J=0)):D==="<="&&(D="<",Fe?I=+I+1:V=+V+1),D==="<"&&(oe="-0"),F=`${D+I}.${V}.${J}${oe}`):Fe?F=`>=${I}.0.0${oe} <${+I+1}.0.0-0`:_e&&(F=`>=${I}.${V}.0${oe} <${I}.${+V+1}.0-0`),a("xRange return",F),F})},M=(ee,z)=>(a("replaceStars",ee,z),ee.trim().replace(h[d.STAR],"")),j=(ee,z)=>(a("replaceGTE0",ee,z),ee.trim().replace(h[z.includePrerelease?d.GTE0PRE:d.GTE0],"")),te=ee=>(z,O,F,D,I,V,J,oe,ge,Fe,_e,Ue,Ke)=>(x(F)?O="":x(D)?O=`>=${F}.0.0${ee?"-0":""}`:x(I)?O=`>=${F}.${D}.0${ee?"-0":""}`:V?O=`>=${O}`:O=`>=${O}${ee?"-0":""}`,x(ge)?oe="":x(Fe)?oe=`<${+ge+1}.0.0-0`:x(_e)?oe=`<${ge}.${+Fe+1}.0-0`:Ue?oe=`<=${ge}.${Fe}.${_e}-${Ue}`:ee?oe=`<${ge}.${Fe}.${+_e+1}-0`:oe=`<=${oe}`,`${O} ${oe}`.trim()),ie=(ee,z,O)=>{for(let F=0;F<ee.length;F++)if(!ee[F].test(z))return!1;if(z.prerelease.length&&!O.includePrerelease){for(let F=0;F<ee.length;F++)if(a(ee[F].semver),ee[F].semver!==o.ANY&&ee[F].semver.prerelease.length>0){const D=ee[F].semver;if(D.major===z.major&&D.minor===z.minor&&D.patch===z.patch)return!0}return!1}return!0};return dp}var pp,Rw;function Bh(){if(Rw)return pp;Rw=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(g,y){if(y=r(y),g instanceof t){if(g.loose===!!y.loose)return g;g=g.value}c("comparator",g,y),this.options=y,this.loose=!!y.loose,this.parse(g),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(g){const y=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],m=g.match(y);if(!m)throw new TypeError(`Invalid comparator: ${g}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new h(m[2],this.options.loose):this.semver=e}toString(){return this.value}test(g){if(c("Comparator.test",g,this.options.loose),this.semver===e||g===e)return!0;if(typeof g=="string")try{g=new h(g,this.options)}catch{return!1}return a(g,this.operator,this.semver,this.options)}intersects(g,y){if(!(g instanceof t))throw new TypeError("a Comparator is required");if((!y||typeof y!="object")&&(y={loose:!!y,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new d(g.value,y).test(this.value);if(g.operator==="")return g.value===""?!0:new d(this.value,y).test(g.semver);const m=(this.operator===">="||this.operator===">")&&(g.operator===">="||g.operator===">"),w=(this.operator==="<="||this.operator==="<")&&(g.operator==="<="||g.operator==="<"),$=this.semver.version===g.semver.version,B=(this.operator===">="||this.operator==="<=")&&(g.operator===">="||g.operator==="<="),x=a(this.semver,"<",g.semver,y)&&(this.operator===">="||this.operator===">")&&(g.operator==="<="||g.operator==="<"),C=a(this.semver,">",g.semver,y)&&(this.operator==="<="||this.operator==="<")&&(g.operator===">="||g.operator===">");return m||w||$&&B||x||C}}pp=t;const r=kh,{re:i,t:o}=Fi,a=jC,c=Th,h=Tr,d=Tn();return pp}const nH=Tn(),iH=(e,t,r)=>{try{t=new nH(t,r)}catch{return!1}return t.test(e)};var Oh=iH;const sH=Tn(),oH=(e,t)=>new sH(e,t).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));var aH=oH;const uH=Tr,lH=Tn(),cH=(e,t,r)=>{let i=null,o=null,a=null;try{a=new lH(t,r)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new uH(i,r))}),i};var fH=cH;const hH=Tr,dH=Tn(),pH=(e,t,r)=>{let i=null,o=null,a=null;try{a=new dH(t,r)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new hH(i,r))}),i};var gH=pH;const gp=Tr,vH=Tn(),Mw=Lh,mH=(e,t)=>{e=new vH(e,t);let r=new gp("0.0.0");if(e.test(r)||(r=new gp("0.0.0-0"),e.test(r)))return r;r=null;for(let i=0;i<e.set.length;++i){const o=e.set[i];let a=null;o.forEach(c=>{const h=new gp(c.semver.version);switch(c.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!a||Mw(h,a))&&(a=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),a&&(!r||Mw(r,a))&&(r=a)}return r&&e.test(r)?r:null};var yH=mH;const bH=Tn(),wH=(e,t)=>{try{return new bH(e,t).range||"*"}catch{return null}};var DH=wH;const AH=Tr,WC=Bh(),{ANY:EH}=WC,xH=Tn(),CH=Oh,zw=Lh,Uw=bv,_H=Dv,SH=wv,FH=(e,t,r,i)=>{e=new AH(e,i),t=new xH(t,i);let o,a,c,h,d;switch(r){case">":o=zw,a=_H,c=Uw,h=">",d=">=";break;case"<":o=Uw,a=SH,c=zw,h="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(CH(e,t,i))return!1;for(let p=0;p<t.set.length;++p){const g=t.set[p];let y=null,m=null;if(g.forEach(w=>{w.semver===EH&&(w=new WC(">=0.0.0")),y=y||w,m=m||w,o(w.semver,y.semver,i)?y=w:c(w.semver,m.semver,i)&&(m=w)}),y.operator===h||y.operator===d||(!m.operator||m.operator===h)&&a(e,m.semver))return!1;if(m.operator===d&&c(e,m.semver))return!1}return!0};var Av=FH;const $H=Av,TH=(e,t,r)=>$H(e,t,">",r);var kH=TH;const LH=Av,BH=(e,t,r)=>LH(e,t,"<",r);var OH=BH;const Hw=Tn(),PH=(e,t,r)=>(e=new Hw(e,r),t=new Hw(t,r),e.intersects(t));var NH=PH;const IH=Oh,RH=$n;var MH=(e,t,r)=>{const i=[];let o=null,a=null;const c=e.sort((g,y)=>RH(g,y,r));for(const g of c)IH(g,t,r)?(a=g,o||(o=g)):(a&&i.push([o,a]),a=null,o=null);o&&i.push([o,null]);const h=[];for(const[g,y]of i)g===y?h.push(g):!y&&g===c[0]?h.push("*"):y?g===c[0]?h.push(`<=${y}`):h.push(`${g} - ${y}`):h.push(`>=${g}`);const d=h.join(" || "),p=typeof t.raw=="string"?t.raw:String(t);return d.length<p.length?d:t};const qw=Tn(),nf=Bh(),{ANY:vp}=nf,wu=Oh,Ev=$n,zH=(e,t,r={})=>{if(e===t)return!0;e=new qw(e,r),t=new qw(t,r);let i=!1;e:for(const o of e.set){for(const a of t.set){const c=UH(o,a,r);if(i=i||c!==null,c)continue e}if(i)return!1}return!0},UH=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===vp){if(t.length===1&&t[0].semver===vp)return!0;r.includePrerelease?e=[new nf(">=0.0.0-0")]:e=[new nf(">=0.0.0")]}if(t.length===1&&t[0].semver===vp){if(r.includePrerelease)return!0;t=[new nf(">=0.0.0")]}const i=new Set;let o,a;for(const w of e)w.operator===">"||w.operator===">="?o=jw(o,w,r):w.operator==="<"||w.operator==="<="?a=Vw(a,w,r):i.add(w.semver);if(i.size>1)return null;let c;if(o&&a){if(c=Ev(o.semver,a.semver,r),c>0)return null;if(c===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const w of i){if(o&&!wu(w,String(o),r)||a&&!wu(w,String(a),r))return null;for(const $ of t)if(!wu(w,String($),r))return!1;return!0}let h,d,p,g,y=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,m=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;y&&y.prerelease.length===1&&a.operator==="<"&&y.prerelease[0]===0&&(y=!1);for(const w of t){if(g=g||w.operator===">"||w.operator===">=",p=p||w.operator==="<"||w.operator==="<=",o){if(m&&w.semver.prerelease&&w.semver.prerelease.length&&w.semver.major===m.major&&w.semver.minor===m.minor&&w.semver.patch===m.patch&&(m=!1),w.operator===">"||w.operator===">="){if(h=jw(o,w,r),h===w&&h!==o)return!1}else if(o.operator===">="&&!wu(o.semver,String(w),r))return!1}if(a){if(y&&w.semver.prerelease&&w.semver.prerelease.length&&w.semver.major===y.major&&w.semver.minor===y.minor&&w.semver.patch===y.patch&&(y=!1),w.operator==="<"||w.operator==="<="){if(d=Vw(a,w,r),d===w&&d!==a)return!1}else if(a.operator==="<="&&!wu(a.semver,String(w),r))return!1}if(!w.operator&&(a||o)&&c!==0)return!1}return!(o&&p&&!a&&c!==0||a&&g&&!o&&c!==0||m||y)},jw=(e,t,r)=>{if(!e)return t;const i=Ev(e.semver,t.semver,r);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},Vw=(e,t,r)=>{if(!e)return t;const i=Ev(e.semver,t.semver,r);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var HH=zH;const mp=Fi,qH=$h,jH=Tr,Ww=HC,VH=La,WH=j7,GH=G7,KH=X7,XH=tU,QH=iU,YH=aU,ZH=cU,JH=dU,eq=$n,tq=vU,rq=bU,nq=yv,iq=EU,sq=_U,oq=Lh,aq=bv,uq=mv,lq=qC,cq=wv,fq=Dv,hq=jC,dq=GU,pq=Bh(),gq=Tn(),vq=Oh,mq=aH,yq=fH,bq=gH,wq=yH,Dq=DH,Aq=Av,Eq=kH,xq=OH,Cq=NH,_q=MH,Sq=HH;var Fq={parse:VH,valid:WH,clean:GH,inc:KH,diff:XH,major:QH,minor:YH,patch:ZH,prerelease:JH,compare:eq,rcompare:tq,compareLoose:rq,compareBuild:nq,sort:iq,rsort:sq,gt:oq,lt:aq,eq:uq,neq:lq,gte:cq,lte:fq,cmp:hq,coerce:dq,Comparator:pq,Range:gq,satisfies:vq,toComparators:mq,maxSatisfying:yq,minSatisfying:bq,minVersion:wq,validRange:Dq,outside:Aq,gtr:Eq,ltr:xq,intersects:Cq,simplifyRange:_q,subset:Sq,SemVer:jH,re:mp.re,src:mp.src,tokens:mp.t,SEMVER_SPEC_VERSION:qH.SEMVER_SPEC_VERSION,compareIdentifiers:Ww.compareIdentifiers,rcompareIdentifiers:Ww.rcompareIdentifiers};const $q="concordance",Tq="5.0.4",kq="Compare, format, diff and serialize any JavaScript value",Lq="index.js",Bq=["lib","index.js"],Oq={node:">=10.18.0 <11 || >=12.14.0 <13 || >=14"},Pq={test:"as-i-preach && c8 ava"},Nq={type:"git",url:"git+https://github.com/concordancejs/concordance.git"},Iq="Mark Wubben (https://novemberborn.net/)",Rq="ISC",Mq={url:"https://github.com/concordancejs/concordance/issues"},zq="https://github.com/concordancejs/concordance#readme",Uq={"date-time":"^3.1.0",esutils:"^2.0.3","fast-diff":"^1.2.0","js-string-escape":"^1.0.1",lodash:"^4.17.15","md5-hex":"^3.0.1",semver:"^7.3.2","well-known-symbols":"^2.0.0"},Hq={"@novemberborn/eslint-plugin-as-i-preach":"^12.0.0",ava:"^3.15.0",c8:"^7.1.2",eslint:"^6.8.0","eslint-plugin-ava":"^10.3.0","eslint-plugin-import":"^2.20.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-security":"^1.4.0","eslint-plugin-standard":"^4.0.1","eslint-plugin-unicorn":"^17.2.0",proxyquire:"^2.1.3"},qq={name:$q,version:Tq,description:kq,main:Lq,files:Bq,engines:Oq,scripts:Pq,repository:Nq,author:Iq,license:Rq,bugs:Mq,homepage:zq,dependencies:Uq,devDependencies:Hq};var Pi={},Ba={},jq=function(e){return(""+e).replace(/["'\\\n\r\u2028\u2029]/g,function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case`
10
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})},xv={};const GC=new Map([[Symbol.iterator,"Symbol.iterator"],[Symbol.asyncIterator,"Symbol.asyncIterator"],[Symbol.match,"Symbol.match"],[Symbol.replace,"Symbol.replace"],[Symbol.search,"Symbol.search"],[Symbol.split,"Symbol.split"],[Symbol.hasInstance,"Symbol.hasInstance"],[Symbol.isConcatSpreadable,"Symbol.isConcatSpreadable"],[Symbol.unscopables,"Symbol.unscopables"],[Symbol.species,"Symbol.species"],[Symbol.toPrimitive,"Symbol.toPrimitive"],[Symbol.toStringTag,"Symbol.toStringTag"]].filter(e=>e[0]));xv.isWellKnown=e=>GC.has(e);xv.getLabel=e=>GC.get(e);const KC=jq,Gw=xv,XC=bt,yp=Ut,Vq=er,Tf=XC.DEEP_EQUAL,ta=XC.UNEQUAL;function Wq(e){let t=null;const r=Symbol.keyFor(e);return r!==void 0?t=`Symbol.for(${KC(r)})`:Gw.isWellKnown(e)&&(t=Gw.getLabel(e)),new Nh({stringCompare:t,value:e})}Ba.describe=Wq;function Gq(e){const t=e[0],r=e[1]||e[0];return new Kq({string:r,stringCompare:t,value:null})}Ba.deserialize=Gq;const Ph=Symbol("SymbolValue");Ba.tag=Ph;class Nh{constructor(t){this.stringCompare=t.stringCompare,this.value=t.value}compare(t){return t.tag!==Ph?ta:this.stringCompare!==null?this.stringCompare===t.stringCompare?Tf:ta:this.value===t.value?Tf:ta}formatString(){return this.stringCompare!==null?this.stringCompare:KC(this.value.toString())}formatDeep(t){return Vq.single(yp.wrap(t.symbol,this.formatString()))}formatAsKey(t){return yp.wrap(t.property.keyBracket,yp.wrap(t.symbol,this.formatString()))}serialize(){const t=this.formatString();return this.stringCompare===t?[this.stringCompare]:[this.stringCompare,t]}}Object.defineProperty(Nh.prototype,"isPrimitive",{value:!0});Object.defineProperty(Nh.prototype,"tag",{value:Ph});class Kq extends Nh{constructor(t){super(t),this.string=t.string}compare(t){return t.tag!==Ph?ta:this.stringCompare!==null?this.stringCompare===t.stringCompare?Tf:ta:this.string===t.formatString()?Tf:ta}formatString(){return this.string}}const Cv=bt,Xq=Ut,Kw=Ba.tag,sf=$t,Qq=Cv.AMBIGUOUS,kf=Cv.DEEP_EQUAL,ma=Cv.UNEQUAL;function Yq(e,t){return new Sv(e,t)}Pi.describeComplex=Yq;function Zq(e,t){const r=t();return new Sv(e,r)}Pi.deserializeComplex=Zq;function Jq(e,t){return new Fv(e,t)}Pi.describePrimitive=Jq;function ej(e){const t=e[0],r=e[1];return new Fv(t,r)}Pi.deserializePrimitive=ej;const QC=Symbol("ComplexProperty");Pi.complexTag=QC;const YC=Symbol("PrimitiveProperty");Pi.primitiveTag=YC;class _v{constructor(t){this.key=t}compareKeys(t){const r=this.key.compare(t.key);return r===ma&&this.key.tag===Kw&&t.key.tag===Kw?Qq:r}prepareDiff(t,r,i,o,a){if(a(this.value)||a(t.value))return{compareResult:ma};const c=sf.fork(i),h=t;do{if(t===null||t.isProperty!==!0)return{actualIsExtraneous:!0,rhsRecursor:sf.unshift(c.recursor,h)};if(this.key.compare(t.key)===kf)return t===h?null:{expectedIsMissing:!0,lhsRecursor:sf.unshift(r,this),rhsRecursor:c.recursor};t=c.shared()}while(!0)}}Object.defineProperty(_v.prototype,"isProperty",{value:!0});class Sv extends _v{constructor(t,r){super(t),this.value=r}createRecursor(){return sf.singleValue(this.value)}compare(t){if(t.isProperty!==!0)return ma;const r=this.compareKeys(t);return r!==kf?r:this.tag===t.tag?this.value.compare(t.value):ma}formatShallow(t,r){const i=t.property.increaseValueIndent===!0;return new Xq.SingleValueFormatter(t,o=>typeof t.property.customFormat=="function"?t.property.customFormat(t,r,this.key,o):o.withFirstPrefixed(this.key.formatAsKey(t)+t.property.separator).withLastPostfixed(t.property.after),i)}serialize(){return this.key}}Object.defineProperty(Sv.prototype,"tag",{value:QC});class Fv extends _v{constructor(t,r){super(t),this.value=r}compare(t){if(t.isProperty!==!0)return ma;const r=this.compareKeys(t);return r!==kf?r:this.tag!==t.tag?ma:this.value.compare(t.value)}formatDeep(t,r){const o=t.property.increaseValueIndent===!0?r.increase():r,a=this.value.formatDeep(t,o);return typeof t.property.customFormat=="function"?t.property.customFormat(t,r,this.key,a):a.withFirstPrefixed(this.key.formatAsKey(t)+t.property.separator).withLastPostfixed(t.property.after)}diffDeep(t,r,i,o){if(this.tag!==t.tag||typeof this.value.diffDeep!="function"||this.key.compare(t.key)!==kf)return null;const c=r.property.increaseValueIndent===!0?i.increase():i,h=this.value.diffDeep(t.value,r,c,o);return h===null?null:typeof r.property.customFormat=="function"?r.property.customFormat(r,i,this.key,h):h.withFirstPrefixed(this.key.formatAsKey(r)+r.property.separator).withLastPostfixed(r.property.after)}serialize(){return[this.key,this.value]}}Object.defineProperty(Fv.prototype,"tag",{value:YC});var Xw;function $v(){if(Xw)return Ls;Xw=1;const e=Fq,t=qq,r=Jt,i=bt,o=Ut,a=er,c=Oi,h=Pi,d=io,p=$t,g=Ih(),y=1,m=t.version,w=new Map,$=new Map;class B extends Error{constructor(D,I){super(D),this.name="PluginError",this.plugin=I}}class x extends TypeError{constructor(D,I){super(D),this.name="PluginTypeError",this.plugin=I}}class C extends B{constructor(D){super("Plugin requires an unsupported API version",D),this.name="UnsupportedApiError"}}class S extends B{constructor(D){super("Plugin does not support this version of Concordance",D),this.name="UnsupportedError"}}class N extends B{constructor(D,I){super(`Could not add descriptor: tag ${String(D)} has already been registered`,I),this.name="DuplicateDescriptorTagError",this.tag=D}}class L extends B{constructor(D,I){const V=typeof D=="number"?`0x${D.toString(16).toUpperCase()}`:String(D);super(`Could not add descriptor: id ${V} has already been registered`,I),this.name="DuplicateDescriptorIdError",this.id=D}}function T(F){if(typeof F.name!="string"||!F.name)throw new x("Plugin must have a `name`",F);if(F.apiVersion!==y)throw new C(F);if("minimalConcordanceVersion"in F){if(!e.valid(F.minimalConcordanceVersion))throw new x("If specified, `minimalConcordanceVersion` must be a valid SemVer version",F);const D=`>=${F.minimalConcordanceVersion}`;if(!e.satisfies(m,D))throw new S(F)}}const R=Object.freeze({complexItem:c.complexTag,primitiveItem:c.primitiveTag,primitiveProperty:h.primitiveTag,string:d.tag}),M=Object.freeze({buffer:a.buffer,first:a.first,last:a.last,line:a.line,single:a.single,actual:Object.freeze({buffer:a.actual.buffer,first:a.actual.first,last:a.actual.last,line:a.actual.line,single:a.actual.single}),expected:Object.freeze({buffer:a.expected.buffer,first:a.expected.first,last:a.expected.last,line:a.expected.line,single:a.expected.single})});function j(F,D){return g.addModifier(F,D),F}function te(F){T(F);const D=F.name;if($.has(D))return $.get(D);const I=new Map,V=new Map,J=(Fe,_e,Ue)=>{if(I.has(Fe))throw new L(Fe,F);if(w.has(_e)||V.has(_e))throw new N(_e,F);I.set(Fe,Ue),V.set(_e,Fe)},oe=F.register({UNEQUAL:i.UNEQUAL,SHALLOW_EQUAL:i.SHALLOW_EQUAL,DEEP_EQUAL:i.DEEP_EQUAL,ObjectValue:r.ObjectValue,DescribedMixin:r.DescribedMixin,DeserializedMixin:r.DeserializedMixin,addDescriptor:J,applyThemeModifiers:g.applyModifiers,descriptorTags:R,lineBuilder:M,mapRecursor:p.map,modifyTheme:j,wrapFromTheme:o.wrap}),ge={id2deserialize:I,serializerVersion:F.serializerVersion,name:D,tag2id:V,theme:F.theme||{},tryDescribeValue:oe};$.set(D,ge);for(const Fe of V.keys())w.set(Fe,ge);return ge}Ls.add=te;function ie(F){return F.map(D=>{const I=te(D);return{id2deserialize:I.id2deserialize,name:I.name,serializerVersion:I.serializerVersion}})}Ls.getDeserializers=ie;function ee(F){return F.map(D=>{const I=te(D);return{name:I.name,theme:I.theme}})}Ls.getThemes=ee;function z(F){return F.map(D=>te(D).tryDescribeValue)}Ls.getTryDescribeValues=z;function O(F){if(!w.has(F))return null;const D=w.get(F);return{id:D.tag2id.get(F),name:D.name,serialization:{serializerVersion:D.serializerVersion}}}return Ls.resolveDescriptorRef=O,Ls}var Qw;function Ih(){if(Qw)return Io;Qw=1;const e=Gz,t=S7,r=$v();function i(x){const C=[x];for(;C.length>0;){const S=C.shift();Object.freeze(S);for(const N of Object.keys(S)){const L=S[N];L!==null&&typeof L=="object"&&C.push(L)}}return x}const o=i({bigInt:{open:"",close:""},boolean:{open:"",close:""},circular:"[Circular]",date:{invalid:"invalid",value:{open:"",close:""}},diffGutters:{actual:"- ",expected:"+ ",padding:" "},error:{ctor:{open:"(",close:")"},name:{open:"",close:""}},function:{name:{open:"",close:""},stringTag:{open:"",close:""}},global:{open:"",close:""},item:{after:",",customFormat:null,increaseValueIndent:!1},list:{openBracket:"[",closeBracket:"]"},mapEntry:{after:",",separator:" => "},maxDepth:"…",null:{open:"",close:""},number:{open:"",close:""},object:{openBracket:"{",closeBracket:"}",ctor:{open:"",close:""},stringTag:{open:"@",close:""},secondaryStringTag:{open:"@",close:""}},property:{after:",",customFormat:null,keyBracket:{open:"[",close:"]"},separator:": ",increaseValueIndent:!1},regexp:{source:{open:"/",close:"/"},flags:{open:"",close:""},separator:"---"},stats:{separator:"---"},string:{open:"",close:"",line:{open:"'",close:"'",escapeQuote:"'"},multiline:{start:"`",end:"`",escapeQuote:"`"},controlPicture:{open:"",close:""},diff:{insert:{open:"",close:""},delete:{open:"",close:""},equal:{open:"",close:""},insertLine:{open:"",close:""},deleteLine:{open:"",close:""}}},symbol:{open:"",close:""},typedArray:{bytes:{open:"",close:""}},undefined:{open:"",close:""}}),a=new Map;a.count=0;const c=new Map;function h(x){if(!Array.isArray(x)||x.length===0)return null;const C=[],S=[];for(const T of r.getThemes(x))a.has(T.name)||a.set(T.name,a.count++),C.push(a.get(T.name)),S.push(T.theme);const N=C.join(".");if(c.has(N))return{ref:N,theme:c.get(N)};const L=i(S.reduce((T,R)=>t(T,R),e(o)));return c.set(N,L),{ref:N,theme:L}}const d=new WeakMap;function p(x){x=Object.assign({plugins:[],theme:null},x);const C=h(x.plugins);if(!x.theme)return C?C.theme:o;const S=d.get(x.theme)||{theme:null,withPlugins:new Map};if(d.has(x.theme)||d.set(x.theme,S),C){if(S.withPlugins.has(C.ref))return S.withPlugins.get(C.ref);const N=i(t(e(C.theme),x.theme));return S.withPlugins.set(C.ref,N),N}return S.theme||(S.theme=i(t(e(o),x.theme))),S.theme}Io.normalize=p;const g=new WeakMap;function y(x,C){g.has(x)?g.get(x).add(C):g.set(x,new Set([C]))}Io.addModifier=y;const m=new WeakMap,w=new WeakMap;function $(x,C){return g.has(x)?Array.from(g.get(x)).reduce((S,N)=>{const L=m.get(N)||new WeakMap;if(m.has(N)||m.set(N,L),L.has(S))return L.get(S);const T=e(S);return N(T),i(T),L.set(S,T),w.set(T,C),T},C):C}Io.applyModifiers=$;function B(x,C){return $(x,w.get(C)||C)}return Io.applyModifiersToOriginal=B,Io}const Tv=bt,Yw=er,Bc=$t,Oc=Ih(),Du=Tv.DEEP_EQUAL,di=Tv.UNEQUAL,Zw=Tv.SHALLOW_EQUAL;function tj(e,t){const r=e.isPrimitive===!0,i=t.isPrimitive===!0;return new Rh(e,t,r,i)}bl.describe=tj;function rj(e,t){const r=e[0],i=e[1],o=t(),a=t();return new Rh(o,a,r,i)}bl.deserialize=rj;const ZC=Symbol("MapEntry");bl.tag=ZC;function bp(e,t,r){const i=Yw.buffer(),o=Yw.buffer();for(const a of t)!a.isLast&&!a.hasGutter?i.append(a):o.append(a);for(const a of r)i.append(o.mergeWithInfix(e.mapEntry.separator,a).withLastPostfixed(e.mapEntry.after));return i}class Rh{constructor(t,r,i,o){this.key=t,this.value=r,this.keyIsPrimitive=i,this.valueIsPrimitive=o}createRecursor(){let t=!0,r=!0;return()=>t?(t=!1,this.key):r?(r=!1,this.value):null}compare(t){if(this.tag!==t.tag||this.keyIsPrimitive!==t.keyIsPrimitive||this.valueIsPrimitive!==t.valueIsPrimitive)return di;if(!this.keyIsPrimitive)return Zw;const r=this.key.compare(t.key);return r!==Du?r:this.valueIsPrimitive?this.value.compare(t.value):Zw}formatDeep(t,r){if(!this.keyIsPrimitive||typeof this.value.formatDeep!="function")return null;const i=this.value.formatDeep(Oc.applyModifiersToOriginal(this.value,t),r);if(i===null)return null;const o=this.key.formatDeep(Oc.applyModifiersToOriginal(this.key,t),r);return bp(t,o,[i])}formatShallow(t,r){let i=null;const o=[];return{append:(a,c)=>{this.key===c?i=a:o.push(a)},finalize(){return bp(t,i,o)}}}diffDeep(t,r,i,o){if(this.tag!==t.tag||typeof this.value.diffDeep!="function"||!this.keyIsPrimitive||!t.keyIsPrimitive||this.key.compare(t.key)!==Du)return null;const a=this.value.diffDeep(t.value,Oc.applyModifiersToOriginal(this.value,r),i,o);if(a===null)return null;const c=this.key.formatDeep(Oc.applyModifiersToOriginal(this.key,r),i,"");return bp(r,c,[a])}prepareDiff(t,r,i,o,a){if(a(this.value)||a(t.value))return{compareResult:di};const c=this.compare(t),h=this.tag===t.tag&&this.key.compare(t.key)===Du;if(c===Du||h)return{compareResult:c};const d=Bc.fork(r),p=Bc.fork(i),g=t;let y=!1;for(;!y&&t!==null&&this.tag===t.tag;)t.keyIsPrimitive?y=this.key.compare(t.key)!==di:y=o(this.key,t.key)!==di,t=p.shared();let m=!1;if(this.tag===g.tag)if(g.keyIsPrimitive){let $=this;for(;!m&&$!==null&&this.tag===$.tag;)$.keyIsPrimitive&&(m=g.key.compare($.key)===Du),$=d.shared()}else{let $=this;for(;!m&&$!==null&&this.tag===$.tag;)$.keyIsPrimitive||(m=o($.key,g.key)!==di),$=d.shared()}if(m&&!y)return{actualIsExtraneous:!0,lhsRecursor:d.recursor,rhsRecursor:Bc.unshift(p.recursor,g)};if(y&&!m)return{expectedIsMissing:!0,lhsRecursor:Bc.unshift(d.recursor,this),rhsRecursor:p.recursor};let w=!1;return!this.keyIsPrimitive&&!g.keyIsPrimitive&&(this.valueIsPrimitive||g.valueIsPrimitive?w=this.value.compare(g.value)!==di:w=o(this.value,g.value)!==di),{mustRecurse:w,isUnequal:!w,lhsRecursor:d.recursor,rhsRecursor:p.recursor}}serialize(){return[this.keyIsPrimitive,this.valueIsPrimitive]}}Object.defineProperty(Rh.prototype,"isMapEntry",{value:!0});Object.defineProperty(Rh.prototype,"tag",{value:ZC});var xl={};const JC=bt,nj=Ut,ij=er,sj=JC.DEEP_EQUAL,oj=JC.UNEQUAL;function e_(e){return new Lv(e)}xl.describe=e_;xl.deserialize=e_;const kv=Symbol("BigIntValue");xl.tag=kv;class Lv{constructor(t){this.value=t}compare(t){return t.tag===kv&&Object.is(this.value,t.value)?sj:oj}formatDeep(t){return ij.single(nj.wrap(t.bigInt,`${this.value}n`))}serialize(){return this.value}}Object.defineProperty(Lv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Lv.prototype,"tag",{value:kv});var Cl={};const t_=bt,aj=Ut,uj=er,lj=t_.DEEP_EQUAL,cj=t_.UNEQUAL;function r_(e){return new Bv(e)}Cl.describe=r_;Cl.deserialize=r_;const n_=Symbol("BooleanValue");Cl.tag=n_;class Bv{constructor(t){this.value=t}compare(t){return this.tag===t.tag&&this.value===t.value?lj:cj}formatDeep(t){return uj.single(aj.wrap(t.boolean,this.value===!0?"true":"false"))}serialize(){return this.value}}Object.defineProperty(Bv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Bv.prototype,"tag",{value:n_});var _l={};const i_=bt,fj=Ut,hj=er,dj=i_.DEEP_EQUAL,pj=i_.UNEQUAL;function s_(){return new Pv}_l.describe=s_;_l.deserialize=s_;const Ov=Symbol("NullValue");_l.tag=Ov;class Pv{compare(t){return t.tag===Ov?dj:pj}formatDeep(t){return hj.single(fj.wrap(t.null,"null"))}}Object.defineProperty(Pv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Pv.prototype,"tag",{value:Ov});var Sl={};const o_=bt,gj=Ut,vj=er,mj=o_.DEEP_EQUAL,yj=o_.UNEQUAL;function a_(e){return new Iv(e)}Sl.describe=a_;Sl.deserialize=a_;const Nv=Symbol("NumberValue");Sl.tag=Nv;class Iv{constructor(t){this.value=t}compare(t){return t.tag===Nv&&Object.is(this.value,t.value)?mj:yj}formatDeep(t){const r=Object.is(this.value,-0)?"-0":String(this.value);return vj.single(gj.wrap(t.number,r))}serialize(){return this.value}}Object.defineProperty(Iv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Iv.prototype,"tag",{value:Nv});var Fl={};const u_=bt,bj=Ut,wj=er,Dj=u_.DEEP_EQUAL,Aj=u_.UNEQUAL;function l_(){return new Mv}Fl.describe=l_;Fl.deserialize=l_;const Rv=Symbol("UndefinedValue");Fl.tag=Rv;class Mv{compare(t){return t.tag===Rv?Dj:Aj}formatDeep(t){return wj.single(bj.wrap(t.undefined,"undefined"))}}Object.defineProperty(Mv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Mv.prototype,"tag",{value:Rv});const Ej=j3,xj=_a,Cj=ul,_j=ll,Sj=cl,Fj=fl,$j=hl,Jw=dl,Tj=pl,kj=gl,Lj=Jt,Bj=vl,Oj=ml,Pj=yl,pi=Jr,Nj=m8,Ij=c0,eD=Oi,Rj=bl,tD=Pi,Mj=$v(),zj=xl,Uj=Cl,Hj=_l,qj=Sl,jj=io,Vj=Ba,Wj=Fl,rD=new Map([["Arguments",xj.describe],["ArrayBuffer",Cj.describe],["DataView",Sj.describe],["Date",Fj.describe],["Error",$j.describe],["Float32Array",pi.describe],["Float64Array",pi.describe],["Function",Jw.describe],["GeneratorFunction",Jw.describe],["global",Tj.describe],["Int16Array",pi.describe],["Int32Array",pi.describe],["Int8Array",pi.describe],["Map",kj.describe],["Promise",Bj.describe],["RegExp",Oj.describe],["Set",Pj.describe],["Uint16Array",pi.describe],["Uint32Array",pi.describe],["Uint8Array",pi.describe],["Uint8ClampedArray",pi.describe]]);function of(e){if(e===null)return Hj.describe();if(e===void 0)return Wj.describe();if(e===!0||e===!1)return Uj.describe(e);const t=typeof e;return t==="bigint"?zj.describe(e):t==="number"?qj.describe(e):t==="string"?jj.describe(e):t==="symbol"?Vj.describe(e):null}function Gj(e,t){if(typeof t.valueOf=="function"){const r=t.valueOf();if(r!==t)return of(r)}return null}function Kj(e){if(!Array.isArray(e)||e.length===0)return()=>null;const t=Mj.getTryDescribeValues(e);return(r,i,o)=>{for(const a of t){const c=a(r,i,o);if(c)return c}return null}}function Xj(e,t,r,i,o,a,c){if(t.has(e))return t.get(e);const h=Ij(e),d=Nj(h,e),p=t.alloc(e);let g,y=r(e,h,d);y===null&&(rD.has(h)?y=rD.get(h):(g=Gj(h,e),g!==null?y=_j.describe:y=Lj.describe));const m=y({ctor:d,describeAny:i,describeItem:o,describeMapEntry:a,describeProperty:c,pointer:p.index,stringTag:h,unboxed:g,value:e});return p.descriptor=m,m}const Qj=(e,t)=>t.isPrimitive===!0?eD.describePrimitive(e,t):eD.describeComplex(e,t),Yj=(e,t)=>Rj.describe(e,t);function Zj(e,t){const r=of(e);if(r!==null)return r;const i=new Ej,o=Kj(t&&t.plugins),a=d=>Xj(d,i,o,c,Qj,Yj,h),c=d=>{const p=of(d);return p!==null?p:a(d)},h=(d,p)=>{const g=of(d);return p.isPrimitive===!0?tD.describePrimitive(g,p):tD.describeComplex(g,p)};return a(e)}var Mh=Zj;const Jj=_a.tag,c_=bt,eV=c_.AMBIGUOUS,tV=c_.SHALLOW_EQUAL;function rV(e,t,r){return e===tV?!0:e!==eV?!1:t.tag===Jj||t.isProperty===!0}var f_=rV,zh={};const zv=bt,nV=$t,nD=zv.DEEP_EQUAL,iV=zv.SHALLOW_EQUAL,iD=zv.UNEQUAL;class Uv{constructor(t){this.properties=t,this.ordered=t.slice()}createRecursor(){const t=this.ordered.length;let r=0;return()=>r===t?null:this.ordered[r++]}compare(t){if(this.properties.length!==t.properties.length)return iD;const r=[],i=new Set;for(const o of this.properties){let a=!0;for(const c of t.properties)if(!i.has(c.key)&&o.key.compare(c.key)===nD){a=!1,i.add(c.key),r.push(c);break}if(a)return iD}return t.ordered=r,iV}prepareDiff(t){const r=[],i=[],o=new Set;for(const a of t.properties){let c=!0;for(const h of this.properties)if(!o.has(h.key)&&h.key.compare(a.key)===nD){c=!1,o.add(h.key),i.push(a);break}c&&r.push(a)}return t.ordered=i.concat(r),{mustRecurse:!0}}}Object.defineProperty(Uv.prototype,"isSymbolPropertiesComparable",{value:!0});zh.Comparable=Uv;class h_{constructor(t,r){this.properties=[t],this.recursor=r,this.remainder=null}collectAll(){do{const t=this.recursor();if(t&&t.isProperty===!0)this.properties.push(t);else return t}while(!0)}createRecursor(){return nV.singleValue(new Uv(this.properties))}}Object.defineProperty(h_.prototype,"isSymbolPropertiesCollector",{value:!0});zh.Collector=h_;const sD=Dg,Hv=bt,oD=Mh,aD=$t,sV=f_,uD=zh,oV=Hv.AMBIGUOUS,lD=Hv.DEEP_EQUAL,wp=Hv.UNEQUAL;function cD(e){if(e==null||e===!0||e===!1)return!0;const t=typeof e;return t==="string"||t==="symbol"?!0:t==="number"?!isNaN(e):!1}function d_(e,t){const r=new sD,i=new sD,o=[],a=[];let c=-1;do{let h;if(r.has(e)?h=r.get(e)===i.get(t)?lD:wp:i.has(t)?h=wp:h=e.compare(t),h===wp)return!1;if(h!==lD){if(!sV(h,e))return!1;h===oV&&e.isProperty===!0&&(e=new uD.Collector(e,o[c].recursor),t=new uD.Collector(t,a[c].recursor),o[c].recursor=aD.unshift(o[c].recursor,e.collectAll()),a[c].recursor=aD.unshift(a[c].recursor,t.collectAll())),r.add(e),i.add(t),o.push({subject:e,recursor:e.createRecursor()}),a.push({subject:t,recursor:t.createRecursor()}),c++}for(;c>=0&&(e=o[c].recursor(),t=a[c].recursor(),!(e!==null&&t!==null));)if(e===null&&t===null){const d=o.pop(),p=a.pop();r.delete(d.subject),i.delete(p.subject),c--}else return!1}while(c>=0);return!0}wg.compareDescriptors=d_;function aV(e,t,r){if(Object.is(e,t))return{pass:!0};if(cD(e)||cD(t))return{pass:!1};e=oD(e,r),t=oD(t,r);const i=d_(e,t);return{actual:e,expected:t,pass:i}}wg.compare=aV;var qv={};let uV=class m0{constructor(t,r){this.level=t,this.step=r,this.value=r.repeat(t)}increase(){return new m0(this.level+1,this.step)}decrease(){return new m0(this.level-1,this.step)}toString(){return this.value}};var p_=uV;const fD=Dg,lV=p_,Uh=bt,hD=Mh,nn=er,Wo=$t,y0=f_,Lf=zh,Bs=Ih(),b0=Uh.AMBIGUOUS,Pu=Uh.DEEP_EQUAL,Ms=Uh.UNEQUAL,cV=Uh.SHALLOW_EQUAL,dD=Symbol("NOOP"),Dp=()=>!0;function fV(e,t){let r=e.compare(t);if(r===Pu)return Pu;if(r===Ms||!y0(r,e))return Ms;let i=!1,o=e.createRecursor(),a=t.createRecursor();do{if(e=o(),t=a(),e===null&&t===null)return cV;if(e===null||t===null||(r=e.compare(t),r===Ms))return Ms;if(r===b0&&e.isProperty===!0&&!i&&y0(r,e)){i=!0;const c=new Lf.Collector(e,o),h=new Lf.Collector(t,a);o=Wo.sequence(c.createRecursor(),Wo.unshift(o,c.collectAll())),a=Wo.sequence(h.createRecursor(),Wo.unshift(a,h.collectAll()))}}while(!0)}function g_(e,t,r){const i=Bs.normalize(r),o=r?r.invert===!0:!1,a=new fD,c=new fD,h=r&&r.maxDepth||0;let d=new lV(0," ");const p=[],g=[];let y=-1;const m=nn.buffer(),w=[];let $=-1;const B=C=>a.has(C)||c.has(C),x=(C,S,N,L=0)=>{if($>=0&&!w[$].shouldFormat(S))return;if(N.has(S)){w[$].formatter.append(C.single(i.circular));return}const T=[];let R=-1;do{if(N.has(S))T[R].formatter.append(C.single(i.circular),S);else{let M=!1;if(typeof S.formatDeep=="function"){let j=S.formatDeep(Bs.applyModifiers(S,i),d);j!==null&&(M=!0,R===-1?(j=C.setDefaultGutter(j),$===-1?m.append(j):w[$].formatter.append(j,S)):T[R].formatter.append(j,S))}if(!M&&typeof S.formatShallow=="function"){const j=S.formatShallow(Bs.applyModifiers(S,i),d),te=S.createRecursor();if(j.increaseIndent&&h>0&&d.level===h+L){let ee=!(te()===null)&&typeof j.maxDepth=="function"?j.maxDepth():j.finalize();R===-1?(ee=C.setDefaultGutter(ee),w[$].formatter.append(ee,S)):T[R].formatter.append(ee,S)}else T.push({formatter:j,recursor:te,decreaseIndent:j.increaseIndent,shouldFormat:j.shouldFormat||Dp,subject:S}),R++,j.increaseIndent&&(d=d.increase()),N.add(S)}}for(;R>=0;){do S=T[R].recursor();while(S&&!T[R].shouldFormat(S));if(S)break;const M=T.pop();R--,M.decreaseIndent&&(d=d.decrease()),N.delete(M.subject);let j=M.formatter.finalize();R===-1?(j=C.setDefaultGutter(j),$===-1?m.append(j):w[$].formatter.append(j,M.subject)):T[R].formatter.append(j,M.subject)}}while(R>=0)};do{let C=dD;a.has(e)?C=a.get(e)===c.get(t)?Pu:Ms:c.has(t)&&(C=Ms);let S=!1;if(e.isProperty===!0&&(C=e.compare(t),C===b0)){const T=p[y].subject;S=T.isSymbolPropertiesCollector!==!0&&T.isSymbolPropertiesComparable!==!0}let N=!1,L=!1;if(C!==Pu&&!S&&typeof e.prepareDiff=="function"){const T=y===-1?null:p[y].recursor,R=y===-1?null:g[y].recursor,M=e.prepareDiff(t,T,R,fV,B);if(M!==null){if(y>=0&&(typeof M.lhsRecursor=="function"&&(p[y].recursor=M.lhsRecursor),typeof M.rhsRecursor=="function"&&(g[y].recursor=M.rhsRecursor)),M.compareResult&&(C=M.compareResult),M.mustRecurse===!0)L=!0;else if(M.actualIsExtraneous===!0)x(nn.actual,e,a),N=!0;else if(M.multipleAreExtraneous===!0){for(const j of M.descriptors)x(nn.actual,j,a);N=!0}else if(M.expectedIsMissing===!0)x(nn.expected,t,c),N=!0;else if(M.multipleAreMissing===!0){for(const j of M.descriptors)x(nn.expected,j,c);N=!0}else if(M.isUnequal===!0)x(nn.actual,e,a),x(nn.expected,t,c),N=!0;else if(!M.compareResult)throw new Error("Illegal result of prepareDiff()")}}if(!N)if(C===dD&&(C=e.compare(t)),L||(L=y0(C,e)),C===Pu)x(nn,e,a);else if(L){if(C===b0&&e.isProperty===!0&&(e=new Lf.Collector(e,p[y].recursor),t=new Lf.Collector(t,g[y].recursor),p[y].recursor=Wo.unshift(p[y].recursor,e.collectAll()),g[y].recursor=Wo.unshift(g[y].recursor,t.collectAll())),typeof e.diffShallow=="function"){const T=e.diffShallow(t,Bs.applyModifiers(e,i),d);w.push({formatter:T,origin:e,decreaseIndent:T.increaseIndent,exceedsMaxDepth:T.increaseIndent&&h>0&&d.level>=h,shouldFormat:T.shouldFormat||Dp}),$++,T.increaseIndent&&(d=d.increase())}else if(typeof e.formatShallow=="function"){const T=e.formatShallow(Bs.applyModifiers(e,i),d);w.push({formatter:T,decreaseIndent:T.increaseIndent,exceedsMaxDepth:T.increaseIndent&&h>0&&d.level>=h,shouldFormat:T.shouldFormat||Dp,subject:e}),$++,T.increaseIndent&&(d=d.increase())}a.add(e),c.add(t),p.push({diffIndex:$,subject:e,recursor:e.createRecursor()}),g.push({diffIndex:$,subject:t,recursor:t.createRecursor()}),y++}else{const T=typeof e.diffDeep=="function"?e.diffDeep(t,Bs.applyModifiers(e,i),d,o):null;T===null?(x(nn.actual,e,a),x(nn.expected,t,c)):$===-1?m.append(T):w[$].formatter.append(T,e)}for(;y>=0&&(e=p[y].recursor(),t=g[y].recursor(),!(e!==null&&t!==null));)if(e===null&&t===null){const T=p.pop(),R=g.pop();if(a.delete(T.subject),c.delete(R.subject),y--,T.diffIndex===$){const M=w.pop();$--,M.decreaseIndent&&(d=d.decrease());let j=M.formatter.finalize();if(M.exceedsMaxDepth&&!j.hasGutter){const te=T.subject,ie=te.formatShallow(Bs.applyModifiers(te,i),d);j=!(te.createRecursor()()===null)&&typeof ie.maxDepth=="function"?ie.maxDepth():ie.finalize()}$===-1?m.append(j):w[$].formatter.append(j,M.subject)}}else{let T,R,M,j;e===null?(T=nn.expected,R=c,M=g,j=t):(T=nn.actual,R=a,M=p,j=e);do x(T,j,R,d.level),j=M[y].recursor();while(j!==null)}}while(y>=0);return m.toString({diff:!0,invert:o,theme:i})}qv.diffDescriptors=g_;function hV(e,t,r){return g_(hD(e,r),hD(t,r),r)}qv.diff=hV;var jv={};const dV=Dg,pV=p_,gV=Mh,pD=er,Pc=Ih(),vV=()=>!0,gD=new pV(0," ");function v_(e,t){const r=Pc.normalize(t);if(e.isPrimitive===!0)return e.formatDeep(Pc.applyModifiers(e,r),gD).toString({diff:!1});const i=new dV,o=t&&t.maxDepth||0;let a=gD;const c=pD.buffer(),h=[];let d=-1;do{if(i.has(e))h[d].formatter.append(pD.single(r.circular),e);else{let p=!1;if(typeof e.formatDeep=="function"){const g=e.formatDeep(Pc.applyModifiers(e,r),a);g!==null&&(p=!0,d===-1?c.append(g):h[d].formatter.append(g,e))}if(!p&&typeof e.formatShallow=="function"){const g=e.formatShallow(Pc.applyModifiers(e,r),a),y=e.createRecursor();if(g.increaseIndent&&o>0&&a.level===o){const w=!(y()===null)&&typeof g.maxDepth=="function"?g.maxDepth():g.finalize();h[d].formatter.append(w,e)}else h.push({formatter:g,recursor:y,decreaseIndent:g.increaseIndent,shouldFormat:g.shouldFormat||vV,subject:e}),d++,g.increaseIndent&&(a=a.increase()),i.add(e)}}for(;d>=0;){do e=h[d].recursor();while(e&&!h[d].shouldFormat(e));if(e)break;const p=h.pop();d--,p.decreaseIndent&&(a=a.decrease()),i.delete(p.subject);const g=p.formatter.finalize();d===-1?c.append(g):h[d].formatter.append(g,p.subject)}}while(d>=0);return c.toString({diff:!1})}jv.formatDescriptor=v_;function mV(e,t){return v_(gV(e,t),t)}jv.format=mV;var Vv={},w0={},yV={get exports(){return w0},set exports(e){w0=e}};(function(e){(function(t){function r(T,R){var M=(T&65535)+(R&65535),j=(T>>16)+(R>>16)+(M>>16);return j<<16|M&65535}function i(T,R){return T<<R|T>>>32-R}function o(T,R,M,j,te,ie){return r(i(r(r(R,T),r(j,ie)),te),M)}function a(T,R,M,j,te,ie,ee){return o(R&M|~R&j,T,R,te,ie,ee)}function c(T,R,M,j,te,ie,ee){return o(R&j|M&~j,T,R,te,ie,ee)}function h(T,R,M,j,te,ie,ee){return o(R^M^j,T,R,te,ie,ee)}function d(T,R,M,j,te,ie,ee){return o(M^(R|~j),T,R,te,ie,ee)}function p(T,R){T[R>>5]|=128<<R%32,T[(R+64>>>9<<4)+14]=R;var M,j,te,ie,ee,z=1732584193,O=-271733879,F=-1732584194,D=271733878;for(M=0;M<T.length;M+=16)j=z,te=O,ie=F,ee=D,z=a(z,O,F,D,T[M],7,-680876936),D=a(D,z,O,F,T[M+1],12,-389564586),F=a(F,D,z,O,T[M+2],17,606105819),O=a(O,F,D,z,T[M+3],22,-1044525330),z=a(z,O,F,D,T[M+4],7,-176418897),D=a(D,z,O,F,T[M+5],12,1200080426),F=a(F,D,z,O,T[M+6],17,-1473231341),O=a(O,F,D,z,T[M+7],22,-45705983),z=a(z,O,F,D,T[M+8],7,1770035416),D=a(D,z,O,F,T[M+9],12,-1958414417),F=a(F,D,z,O,T[M+10],17,-42063),O=a(O,F,D,z,T[M+11],22,-1990404162),z=a(z,O,F,D,T[M+12],7,1804603682),D=a(D,z,O,F,T[M+13],12,-40341101),F=a(F,D,z,O,T[M+14],17,-1502002290),O=a(O,F,D,z,T[M+15],22,1236535329),z=c(z,O,F,D,T[M+1],5,-165796510),D=c(D,z,O,F,T[M+6],9,-1069501632),F=c(F,D,z,O,T[M+11],14,643717713),O=c(O,F,D,z,T[M],20,-373897302),z=c(z,O,F,D,T[M+5],5,-701558691),D=c(D,z,O,F,T[M+10],9,38016083),F=c(F,D,z,O,T[M+15],14,-660478335),O=c(O,F,D,z,T[M+4],20,-405537848),z=c(z,O,F,D,T[M+9],5,568446438),D=c(D,z,O,F,T[M+14],9,-1019803690),F=c(F,D,z,O,T[M+3],14,-187363961),O=c(O,F,D,z,T[M+8],20,1163531501),z=c(z,O,F,D,T[M+13],5,-1444681467),D=c(D,z,O,F,T[M+2],9,-51403784),F=c(F,D,z,O,T[M+7],14,1735328473),O=c(O,F,D,z,T[M+12],20,-1926607734),z=h(z,O,F,D,T[M+5],4,-378558),D=h(D,z,O,F,T[M+8],11,-2022574463),F=h(F,D,z,O,T[M+11],16,1839030562),O=h(O,F,D,z,T[M+14],23,-35309556),z=h(z,O,F,D,T[M+1],4,-1530992060),D=h(D,z,O,F,T[M+4],11,1272893353),F=h(F,D,z,O,T[M+7],16,-155497632),O=h(O,F,D,z,T[M+10],23,-1094730640),z=h(z,O,F,D,T[M+13],4,681279174),D=h(D,z,O,F,T[M],11,-358537222),F=h(F,D,z,O,T[M+3],16,-722521979),O=h(O,F,D,z,T[M+6],23,76029189),z=h(z,O,F,D,T[M+9],4,-640364487),D=h(D,z,O,F,T[M+12],11,-421815835),F=h(F,D,z,O,T[M+15],16,530742520),O=h(O,F,D,z,T[M+2],23,-995338651),z=d(z,O,F,D,T[M],6,-198630844),D=d(D,z,O,F,T[M+7],10,1126891415),F=d(F,D,z,O,T[M+14],15,-1416354905),O=d(O,F,D,z,T[M+5],21,-57434055),z=d(z,O,F,D,T[M+12],6,1700485571),D=d(D,z,O,F,T[M+3],10,-1894986606),F=d(F,D,z,O,T[M+10],15,-1051523),O=d(O,F,D,z,T[M+1],21,-2054922799),z=d(z,O,F,D,T[M+8],6,1873313359),D=d(D,z,O,F,T[M+15],10,-30611744),F=d(F,D,z,O,T[M+6],15,-1560198380),O=d(O,F,D,z,T[M+13],21,1309151649),z=d(z,O,F,D,T[M+4],6,-145523070),D=d(D,z,O,F,T[M+11],10,-1120210379),F=d(F,D,z,O,T[M+2],15,718787259),O=d(O,F,D,z,T[M+9],21,-343485551),z=r(z,j),O=r(O,te),F=r(F,ie),D=r(D,ee);return[z,O,F,D]}function g(T){var R,M="",j=T.length*32;for(R=0;R<j;R+=8)M+=String.fromCharCode(T[R>>5]>>>R%32&255);return M}function y(T){var R,M=[];for(M[(T.length>>2)-1]=void 0,R=0;R<M.length;R+=1)M[R]=0;var j=T.length*8;for(R=0;R<j;R+=8)M[R>>5]|=(T.charCodeAt(R/8)&255)<<R%32;return M}function m(T){return g(p(y(T),T.length*8))}function w(T,R){var M,j=y(T),te=[],ie=[],ee;for(te[15]=ie[15]=void 0,j.length>16&&(j=p(j,T.length*8)),M=0;M<16;M+=1)te[M]=j[M]^909522486,ie[M]=j[M]^1549556828;return ee=p(te.concat(y(R)),512+R.length*8),g(p(ie.concat(ee),512+128))}function $(T){var R="0123456789abcdef",M="",j,te;for(te=0;te<T.length;te+=1)j=T.charCodeAt(te),M+=R.charAt(j>>>4&15)+R.charAt(j&15);return M}function B(T){return unescape(encodeURIComponent(T))}function x(T){return m(B(T))}function C(T){return $(x(T))}function S(T,R){return w(B(T),B(R))}function N(T,R){return $(S(T,R))}function L(T,R,M){return R?M?S(R,T):N(R,T):M?x(T):C(T)}e.exports?e.exports=L:t.md5=L})(un)})(yV);const bV=w0;var wV=e=>(Array.isArray(e)&&(e=e.join("")),bV(e)),ao={},vD=Ch,DV=uv,AV=Al,mD=vD?vD.isConcatSpreadable:void 0;function EV(e){return AV(e)||DV(e)||!!(mD&&e&&e[mD])}var xV=EV,CV=dv,_V=xV;function m_(e,t,r,i,o){var a=-1,c=e.length;for(r||(r=_V),o||(o=[]);++a<c;){var h=e[a];t>0&&r(h)?t>1?m_(h,t-1,r,i,o):CV(o,h):i||(o[o.length]=h)}return o}var SV=m_,FV=SV,$V=1/0;function TV(e){var t=e==null?0:e.length;return t?FV(e,$V):[]}var kV=TV;const LV=kV,je={zero:0,int8:1,int16:2,int24:3,int32:4,int40:5,int48:6,numberString:7,negativeZero:8,notANumber:9,infinity:10,negativeInfinity:11,bigInt:12,undefined:13,null:14,true:15,false:16,utf8:17,bytes:18,list:19,descriptor:20},Wv=Symbol("descriptor");ao.descriptorSymbol=Wv;function zo(e,t){const r=Buffer.alloc(e);return r.writeIntLE(t,0,e),[e,r]}function Kr(e){if(Object.is(e,0))return je.zero;if(Object.is(e,-0))return je.negativeZero;if(Object.is(e,NaN))return je.notANumber;if(e===1/0)return je.infinity;if(e===-1/0)return je.negativeInfinity;if(e===void 0)return je.undefined;if(e===null)return je.null;if(e===!0)return je.true;if(e===!1)return je.false;const t=typeof e;if(t==="number"){if(Number.isInteger(e)){if(e>=-128&&e<128)return zo(je.int8,e);if(e>=-32768&&e<32768)return zo(je.int16,e);if(e>=-8388608&&e<8388608)return zo(je.int24,e);if(e>=-2147483648&&e<2147483648)return zo(je.int32,e);if(e>=-549755813888&&e<549755813888)return zo(je.int40,e);if(e>=-0x800000000000&&e<0x800000000000)return zo(je.int48,e)}const i=Buffer.from(String(e),"utf8");return[je.numberString,Kr(i.length),i]}if(t==="string"){const i=Buffer.from(e,"utf8");return[je.utf8,Kr(i.length),i]}if(t==="bigint"){const i=Buffer.from(String(e),"utf8");return[je.bigInt,Kr(i.length),i]}if(Buffer.isBuffer(e))return[je.bytes,Kr(e.byteLength),e];if(Array.isArray(e))return[e[Wv]===!0?je.descriptor:je.list,Kr(e.length),e.map(i=>Kr(i))];const r=`0x${t.toString(16).toUpperCase()}`;throw new TypeError(`Unexpected value with type ${r}`)}function Kn(e,t){const r=e.readUInt8(t);if(t+=1,r===je.zero)return{byteOffset:t,value:0};if(r===je.negativeZero)return{byteOffset:t,value:-0};if(r===je.notANumber)return{byteOffset:t,value:NaN};if(r===je.infinity)return{byteOffset:t,value:1/0};if(r===je.negativeInfinity)return{byteOffset:t,value:-1/0};if(r===je.undefined)return{byteOffset:t,value:void 0};if(r===je.null)return{byteOffset:t,value:null};if(r===je.true)return{byteOffset:t,value:!0};if(r===je.false)return{byteOffset:t,value:!1};if(r===je.int8||r===je.int16||r===je.int24||r===je.int32||r===je.int40||r===je.int48){const o=e.readIntLE(t,r);return t+=r,{byteOffset:t,value:o}}if(r===je.numberString||r===je.utf8||r===je.bytes||r===je.bigInt){const o=Kn(e,t),a=o.byteOffset,c=a+o.value;if(r===je.numberString){const d=Number(e.toString("utf8",a,c));return{byteOffset:c,value:d}}if(r===je.utf8){const d=e.toString("utf8",a,c);return{byteOffset:c,value:d}}if(r===je.bigInt){const d=BigInt(e.toString("utf8",a,c));return{byteOffset:c,value:d}}const h=e.slice(a,c);return{byteOffset:c,value:h}}if(r===je.list||r===je.descriptor){const o=Kn(e,t);t=o.byteOffset;const a=new Array(o.value);r===je.descriptor&&(a[Wv]=!0);for(let c=0;c<o.value;c++){const h=Kn(e,t);t=h.byteOffset,a[c]=h.value}return{byteOffset:t,value:a}}const i=`0x${r.toString(16).toUpperCase()}`;throw new TypeError(`Could not decode type ${i}`)}function Nc(e){if(typeof e=="number"){const o=Buffer.alloc(1);return o.writeUInt8(e),o}const t=LV(e),r=new Array(t.length);let i=0;for(const[o,a]of t.entries())if(typeof a=="number"){i+=1;const c=Buffer.alloc(1);c.writeUInt8(a),r[o]=c}else i+=a.byteLength,r[o]=a;return Buffer.concat(r,i)}function BV(e,t,r){const i=[];let o=0;const a=Buffer.alloc(2);a.writeUInt16LE(e),i.push(a),o+=a.byteLength;const c=Buffer.alloc(4);i.push(c),o+=c.byteLength;const h=Nc(Kr(r.size));i.push(h),o+=h.byteLength;for(const g of r.keys()){const y=r.get(g),m=Nc([Kr(g),Kr(y.serializerVersion)]);i.push(m),o+=m.byteLength}const d=[t],p=[c];for(;d.length>0;){p.shift().writeUInt32LE(o,0);const g=d.shift(),y=Nc([Kr(g.pluginIndex),Kr(g.id),Kr(g.children.length)]);i.push(y),o+=y.byteLength;for(const w of g.children){d.push(w);const $=Buffer.alloc(4);p.push($),i.push($),o+=4}const m=Nc(Kr(g.state));i.push(m),o+=m.byteLength}return Buffer.concat(i,o)}ao.encode=BV;function OV(e){const t=Kn(e,0);let r=t.byteOffset;const i=new Map,o=t.value;for(let a=1;a<=o;a++){const c=Kn(e,r),h=c.value;r=c.byteOffset;const d=Kn(e,r).value;i.set(a,{name:h,serializerVersion:d})}return i}ao.decodePlugins=OV;function y_(e,t){const r=Kn(e,t),i=r.value;t=r.byteOffset;const o=Kn(e,t),a=o.value;t=o.byteOffset;const c=Kn(e,t),h=c.value;t=c.byteOffset;const d=new Array(h);for(let g=0;g<h;g++)d[g]=e.readUInt32LE(t),t+=4;const p=Kn(e,t).value;return{id:a,pluginIndex:i,state:p,pointerAddresses:d}}ao.decodeRecord=y_;function PV(e){return e.readUInt16LE(0)}ao.extractVersion=PV;function NV(e){const t=e.readUInt32LE(2),r=e.slice(6,t),i=y_(e,t);return{pluginBuffer:r,rootRecord:i}}ao.decode=NV;var Hh={};const IV=bt.UNEQUAL;function b_(e){return new Gv(e)}Hh.describe=b_;Hh.deserialize=b_;const w_=Symbol("Pointer");Hh.tag=w_;class Gv{constructor(t){this.index=t}compare(t){return IV}serialize(){return this.index}}Object.defineProperty(Gv.prototype,"isPointer",{value:!0});Object.defineProperty(Gv.prototype,"tag",{value:w_});const RV=wV,yD=_a,bD=ul,wD=ll,DD=cl,AD=fl,ED=hl,xD=dl,CD=pl,_D=gl,SD=Jt,FD=vl,$D=ml,TD=yl,Ic=Jr,Zs=ao,Rc=Oi,kD=bl,D0=Hh,Mc=Pi,Uo=fn,D_=$v(),LD=xl,BD=Cl,OD=_l,PD=Sl,ND=io,ID=Ba,RD=Fl,MV=$t,A_=3,E_=[[1,LD.tag,LD.deserialize],[2,BD.tag,BD.deserialize],[3,OD.tag,OD.deserialize],[4,PD.tag,PD.deserialize],[5,ND.tag,ND.deserialize],[6,ID.tag,ID.deserialize],[7,RD.tag,RD.deserialize],[8,SD.tag,SD.deserialize],[9,Uo.iterableTag,Uo.deserializeIterableStats],[10,Uo.listTag,Uo.deserializeListStats],[11,Rc.complexTag,Rc.deserializeComplex],[12,Rc.primitiveTag,Rc.deserializePrimitive],[13,Uo.propertyTag,Uo.deserializePropertyStats],[14,Mc.complexTag,Mc.deserializeComplex],[15,Mc.primitiveTag,Mc.deserializePrimitive],[16,D0.tag,D0.deserialize],[17,_D.tag,_D.deserialize],[18,kD.tag,kD.deserialize],[19,yD.tag,yD.deserialize],[20,bD.tag,bD.deserialize],[21,wD.tag,wD.deserialize],[22,DD.tag,DD.deserialize],[23,AD.tag,AD.deserialize],[24,ED.tag,ED.deserialize],[25,xD.tag,xD.deserialize],[26,CD.tag,CD.deserialize],[27,FD.tag,FD.deserialize],[28,$D.tag,$D.deserialize],[29,TD.tag,TD.deserialize],[30,Ic.tag,Ic.deserialize],[31,Ic.bytesTag,Ic.deserializeBytes]],Bf=new Map(E_.map(e=>[e[1],e[0]])),zV=new Map(E_.map(e=>[e[0],e[2]]));class UV extends Error{constructor(t){super("Could not serialize descriptor"),this.name="DescriptorSerializationError",this.descriptor=t}}class HV extends Error{constructor(t){super(`Could not deserialize buffer: missing plugin ${JSON.stringify(t)}`),this.name="MissingPluginError",this.pluginName=t}}class qV extends Error{constructor(t){super(`Could not deserialize buffer: pointer ${t} could not be resolved`),this.name="PointerLookupError",this.index=t}}class jV extends Error{constructor(t,r){super(`Could not deserialize buffer: plugin ${JSON.stringify(t)} expects a different serialization`),this.name="UnsupportedPluginError",this.pluginName=t,this.serializerVersion=r}}class VV extends Error{constructor(t){super("Could not deserialize buffer: a different serialization was expected"),this.name="UnsupportedVersion",this.serializerVersion=t}}function x_(e,t){if(e.serialize)return C_(e.serialize(),t)}function C_(e,t){if(Array.isArray(e))return e.map(r=>C_(r));if(e&&e.tag){let r,i;if(Bf.has(e.tag))r=Bf.get(e.tag),i=0;else{const o=t(e.tag);o&&(r=o.id,i=o.pluginIndex)}if(r!==void 0){const o=[i,r,x_(e,t)];return o[Zs.descriptorSymbol]=!0,o}}return e}function WV(e){const t=new Map,r=h=>{const d=D_.resolveDescriptorRef(h);if(!d)return null;if(!t.has(d.name)){const p=t.size+1;t.set(d.name,Object.assign({index:p},d.serialization))}return{id:d.id,pluginIndex:t.get(d.name).index}},i=new Set,o=[];let a=-1,c;do{e.isComplex===!0&&(i.has(e.pointer)?e=D0.describe(e.pointer):i.add(e.pointer));let h,d=0;if(Bf.has(e.tag))h=Bf.get(e.tag);else{const g=r(e.tag);if(!g)throw new UV(e);h=g.id,d=g.pluginIndex}const p={id:h,pluginIndex:d,children:[],state:x_(e,r)};for(c?o[a].children.push(p):c=p,e.createRecursor&&(o.push({recursor:e.createRecursor(),children:p.children}),a++);a>=0&&(e=o[a].recursor(),e===null);)o.pop(),a--}while(a>=0);return Zs.encode(A_,c,t)}Vv.serialize=WV;function __(e,t){return e&&e[Zs.descriptorSymbol]===!0?GV(e,t):Array.isArray(e)?e.map(r=>__(r,t)):e}function GV(e,t){return t(e[0],e[1])(e[2])}function S_(e,t,r){const i=t(e.pluginIndex,e.id),o=__(e.state,t);if(e.pointerAddresses.length===0)return i(o);const a=e.pointerAddresses.length;let c=0;return i(o,()=>{if(c===a)return null;const d=Zs.decodeRecord(r,e.pointerAddresses[c++]);return S_(d,t,r)})}function KV(e,t){const r=t&&t.deserializedPluginsCache,i=RV(e);if(r&&r.has(i))return r.get(i);const o=Zs.decodePlugins(e);if(o.size===0){const h=new Map;return r&&r.set(i,h),h}const a=new Map;if(Array.isArray(t&&t.plugins))for(const h of D_.getDeserializers(t.plugins))a.set(h.name,h);const c=new Map;for(const h of o.keys()){const d=o.get(h),p=d.name,g=d.serializerVersion;if(!a.has(p))throw new HV(p);if(g!==a.get(p).serializerVersion)throw new jV(p,g);c.set(h,a.get(p).id2deserialize)}return r&&r.set(i,c),c}function XV(e,t){const r=Zs.extractVersion(e);if(r!==A_)throw new VV(r);const i=Zs.decode(e),o=KV(i.pluginBuffer,t),a=new Map,c=p=>{if(p.isPointer===!0){if(a.has(p.index)||typeof d.createRecursor=="function"&&(MV.consumeDeep(d.createRecursor()),a.has(p.index)))return a.get(p.index);throw new qV(p.index)}return p.isComplex===!0&&a.set(p.pointer,p),p},h=(p,g)=>(y,m)=>{const w=p===0?zV.get(g):o.get(p).get(g);return c(w(y,m))},d=S_(i.rootRecord,h,e);return d}Vv.deserialize=XV;const F_=wg,QV=Mh,$_=qv,T_=jv,k_=Vv;var YV=cn.compare=F_.compare,ZV=cn.compareDescriptors=F_.compareDescriptors,JV=cn.describe=QV,eW=cn.diff=$_.diff,tW=cn.diffDescriptors=$_.diffDescriptors,rW=cn.format=T_.format,nW=cn.formatDescriptor=T_.formatDescriptor,iW=cn.serialize=k_.serialize,sW=cn.deserialize=k_.deserialize;const MD=h$({__proto__:null,compare:YV,compareDescriptors:ZV,default:cn,describe:JV,deserialize:sW,diff:eW,diffDescriptors:tW,format:rW,formatDescriptor:nW,serialize:iW},[cn]),oW="default"in MD?cn:MD;function aW(){const e=Cx();return{boolean:e.yellow,circular:e.gray("[Circular]"),date:{invalid:e.red("invalid"),value:e.blue},diffGutters:{actual:` ${e.green("-")} `,expected:` ${e.red("+")} `,padding:" "},error:{ctor:{open:`${e.gray.open}(`,close:`)${e.gray.close}`},name:e.magenta},function:{name:e.blue,stringTag:e.magenta},global:e.magenta,item:{after:e.gray(",")},list:{openBracket:e.gray("["),closeBracket:e.gray("]")},mapEntry:{after:e.gray(",")},maxDepth:e.gray("…"),null:e.yellow,number:e.yellow,object:{openBracket:e.gray("{"),closeBracket:e.gray("}"),ctor:e.magenta,stringTag:{open:`${e.magenta.open}@`,close:e.magenta.close},secondaryStringTag:{open:`${e.gray.open}@`,close:e.gray.close}},property:{after:e.gray(","),keyBracket:{open:e.gray("["),close:e.gray("]")},valueFallback:e.gray("…")},regexp:{source:{open:`${e.blue.open}/`,close:`/${e.blue.close}`},flags:e.yellow},stats:{separator:e.gray("---")},string:{open:e.blue.open,close:e.blue.close,line:{open:e.blue("'"),close:e.blue("'")},multiline:{start:e.blue("`"),end:e.blue("`")},controlPicture:e.gray,diff:{insert:{open:e.bgGreen.open+e.black.open,close:e.black.close+e.bgGreen.close},delete:{open:e.bgRed.open+e.black.open,close:e.black.close+e.bgRed.close},equal:e.blue,insertLine:{open:e.green.open,close:e.green.close},deleteLine:{open:e.red.open,close:e.red.close}}},symbol:e.yellow,typedArray:{bytes:e.yellow},undefined:e.yellow}}function uW(e,t,r){return oW.diff(t,e,r)}function lW(e,t,r={}){const i=aW(),o=uW(e,t,{theme:i}),{showLegend:a=!0}=r,c={"+":0,"-":0},h=Cx(),d=i.diffGutters.actual,p=` ${h.green("+")}`;o.split(/\r?\n/g).forEach(m=>{m.startsWith(d)?c["+"]++:m.startsWith(p)&&c["-"]++});let y="";return a&&(y=` ${h.green(`- Expected - ${c["-"]}`)}
11
+ ${h.red(`+ Received + ${c["+"]}`)}
12
+
13
+ `),y+o.replace(/␊\s*$/mg,"")}function A0(e){return e.type==="test"||e.type==="custom"}function L_(e){return xx(e).flatMap(t=>A0(t)?[t]:t.tasks.flatMap(r=>A0(r)?[r]:L_(r)))}function Kv(e=[]){return xx(e).flatMap(t=>A0(t)?[t]:[t,...Kv(t.tasks)])}function cW(e){const t=[e.name];let r=e;for(;r!=null&&r.suite||r!=null&&r.file;)r=r.suite||r.file,r!=null&&r.name&&t.unshift(r.name);return t}function qh(e){return L_(e).some(t=>{var r,i;return(i=(r=t.result)==null?void 0:r.errors)==null?void 0:i.some(o=>o&&o.message&&o.message.match(/Snapshot .* mismatched/))})}function fW(e,t={}){const{handlers:r={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:a=10,reactive:c=C=>C,WebSocketConstructor:h=globalThis.WebSocket}=t;let d=a;const p=c({ws:new h(e),state:new Ex,waitForConnection:x,reconnect:$});p.state.filesMap=c(p.state.filesMap),p.state.idMap=c(p.state.idMap);let g;const y={onPathsCollected(C){var S;p.state.collectPaths(C),(S=r.onPathsCollected)==null||S.call(r,C)},onCollected(C){var S;p.state.collectFiles(C),(S=r.onCollected)==null||S.call(r,C)},onTaskUpdate(C){var S;p.state.updateTasks(C),(S=r.onTaskUpdate)==null||S.call(r,C)},onUserConsoleLog(C){p.state.updateUserLog(C)},onFinished(C){var S;(S=r.onFinished)==null||S.call(r,C)},onCancel(C){var S;(S=r.onCancel)==null||S.call(r,C)}},m={post:C=>p.ws.send(C),on:C=>g=C,serialize:_3,deserialize:n0};p.rpc=y3(y,m);let w;function $(C=!1){C&&(d=a),p.ws=new h(e),B()}function B(){w=new Promise(C=>{p.ws.addEventListener("open",()=>{d=a,C()})}),p.ws.addEventListener("message",C=>{g(C.data)}),p.ws.addEventListener("close",()=>{d-=1,i&&d>0&&setTimeout($,o)})}B();function x(){return w}return p}const hW=location.port,dW=[location.hostname,hW].filter(Boolean).join(":"),pW=`${location.protocol==="https:"?"wss:":"ws:"}//${dW}/__vitest_api__`,Yn=!!window.METADATA_PATH,gW=Yn?"./":"/__vitest__/";function Xv(e){return VA()?(S$(e),!0):!1}function $i(e){return typeof e=="function"?e():Y(e)}const vW=typeof window<"u",mW=e=>typeof e<"u",Js=()=>{};function Qv(e,t){function r(...i){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(a)})}return r}const B_=e=>e();function O_(e,t={}){let r,i,o=Js;const a=h=>{clearTimeout(h),o(),o=Js};return h=>{const d=$i(e),p=$i(t.maxWait);return r&&a(r),d<=0||p!==void 0&&p<=0?(i&&(a(i),i=null),Promise.resolve(h())):new Promise((g,y)=>{o=t.rejectOnCancel?y:g,p&&!i&&(i=setTimeout(()=>{r&&a(r),i=null,g(h())},p)),r=setTimeout(()=>{i&&a(i),i=null,g(h())},d)})}}function yW(e,t=!0,r=!0,i=!1){let o=0,a,c=!0,h=Js,d;const p=()=>{a&&(clearTimeout(a),a=void 0,h(),h=Js)};return y=>{const m=$i(e),w=Date.now()-o,$=()=>d=y();return p(),m<=0?(o=Date.now(),$()):(w>m&&(r||!c)?(o=Date.now(),$()):t&&(d=new Promise((B,x)=>{h=i?x:B,a=setTimeout(()=>{o=Date.now(),c=!0,B($()),p()},Math.max(0,m-w))})),!r&&!a&&(a=setTimeout(()=>c=!0,m)),c=!1,d)}}function bW(e=B_){const t=Xe(!0);function r(){t.value=!1}function i(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:eh(t),pause:r,resume:i,eventFilter:o}}function P_(...e){if(e.length!==1)return J0(...e);const t=e[0];return typeof t=="function"?eh(sT(()=>({get:t,set:Js}))):Xe(t)}function zD(e,t=200,r={}){return Qv(O_(t,r),e)}function wW(e,t=200,r=!1,i=!0,o=!1){return Qv(yW(t,r,i,o),e)}function DW(e,t=200,r=!0,i=!0){if(t<=0)return e;const o=Xe(e.value),a=wW(()=>{o.value=e.value},t,r,i);return jt(e,()=>a()),o}function N_(e,t=!0){nl()?Ca(e):t?e():Ci(e)}function AW(e=!1,t={}){const{truthyValue:r=!0,falsyValue:i=!1}=t,o=Ot(e),a=Xe(e);function c(h){if(arguments.length)return a.value=h,a.value;{const d=$i(r);return a.value=a.value===d?$i(i):d,a.value}}return o?c:[a,c]}var UD=Object.getOwnPropertySymbols,EW=Object.prototype.hasOwnProperty,xW=Object.prototype.propertyIsEnumerable,CW=(e,t)=>{var r={};for(var i in e)EW.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&UD)for(var i of UD(e))t.indexOf(i)<0&&xW.call(e,i)&&(r[i]=e[i]);return r};function I_(e,t,r={}){const i=r,{eventFilter:o=B_}=i,a=CW(i,["eventFilter"]);return jt(e,Qv(o,t),a)}var _W=Object.defineProperty,SW=Object.defineProperties,FW=Object.getOwnPropertyDescriptors,Of=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,M_=Object.prototype.propertyIsEnumerable,HD=(e,t,r)=>t in e?_W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$W=(e,t)=>{for(var r in t||(t={}))R_.call(t,r)&&HD(e,r,t[r]);if(Of)for(var r of Of(t))M_.call(t,r)&&HD(e,r,t[r]);return e},TW=(e,t)=>SW(e,FW(t)),kW=(e,t)=>{var r={};for(var i in e)R_.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Of)for(var i of Of(e))t.indexOf(i)<0&&M_.call(e,i)&&(r[i]=e[i]);return r};function LW(e,t,r={}){const i=r,{debounce:o=0,maxWait:a=void 0}=i,c=kW(i,["debounce","maxWait"]);return I_(e,t,TW($W({},c),{eventFilter:O_(o,{maxWait:a})}))}function BW(e,t,r){const i=jt(e,(...o)=>(Ci(()=>i()),t(...o)),r)}var OW=Object.defineProperty,PW=Object.defineProperties,NW=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,U_=Object.prototype.propertyIsEnumerable,qD=(e,t,r)=>t in e?OW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,IW=(e,t)=>{for(var r in t||(t={}))z_.call(t,r)&&qD(e,r,t[r]);if(Pf)for(var r of Pf(t))U_.call(t,r)&&qD(e,r,t[r]);return e},RW=(e,t)=>PW(e,NW(t)),MW=(e,t)=>{var r={};for(var i in e)z_.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Pf)for(var i of Pf(e))t.indexOf(i)<0&&U_.call(e,i)&&(r[i]=e[i]);return r};function H_(e,t,r={}){const i=r,{eventFilter:o}=i,a=MW(i,["eventFilter"]),{eventFilter:c,pause:h,resume:d,isActive:p}=bW(o);return{stop:I_(e,t,RW(IW({},a),{eventFilter:c})),pause:h,resume:d,isActive:p}}function zW(e,t,r){let i;Ot(r)?i={evaluating:r}:i=r||{};const{lazy:o=!1,evaluating:a=void 0,shallow:c=!0,onError:h=Js}=i,d=Xe(!o),p=c?xa(t):Xe(t);let g=0;return ig(async y=>{if(!d.value)return;g++;const m=g;let w=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const $=await e(B=>{y(()=>{a&&(a.value=!1),w||B()})});m===g&&(p.value=$)}catch($){h($)}finally{a&&m===g&&(a.value=!1),w=!0}}),o?Ae(()=>(d.value=!0,p.value)):p}function Nf(e){var t;const r=$i(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Ti=vW?window:void 0;function ya(...e){let t,r,i,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,i,o]=e,t=Ti):[t,r,i,o]=e,!t)return Js;Array.isArray(r)||(r=[r]),Array.isArray(i)||(i=[i]);const a=[],c=()=>{a.forEach(g=>g()),a.length=0},h=(g,y,m,w)=>(g.addEventListener(y,m,w),()=>g.removeEventListener(y,m,w)),d=jt(()=>[Nf(t),$i(o)],([g,y])=>{c(),g&&a.push(...r.flatMap(m=>i.map(w=>h(g,m,w,y))))},{immediate:!0,flush:"post"}),p=()=>{d(),c()};return Xv(p),p}function UW(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function HW(...e){let t,r,i={};e.length===3?(t=e[0],r=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],i=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:o=Ti,eventName:a="keydown",passive:c=!1,dedupe:h=!1}=i,d=UW(t);return ya(o,a,g=>{g.repeat&&$i(h)||d(g)&&r(g)},c)}function qW(){const e=Xe(!1);return nl()&&Ca(()=>{e.value=!0}),e}function q_(e){const t=qW();return Ae(()=>(t.value,!!e()))}function j_(e,t={}){const{window:r=Ti}=t,i=q_(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let o;const a=Xe(!1),c=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",h):o.removeListener(h))},h=()=>{i.value&&(c(),o=r.matchMedia(P_(e).value),a.value=!!(o!=null&&o.matches),o&&("addEventListener"in o?o.addEventListener("change",h):o.addListener(h)))};return ig(h),Xv(()=>c()),a}function jW(e){return JSON.parse(JSON.stringify(e))}const zc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Uc="__vueuse_ssr_handlers__",VW=WW();function WW(){return Uc in zc||(zc[Uc]=zc[Uc]||{}),zc[Uc]}function V_(e,t){return VW[e]||t}function GW(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"}var KW=Object.defineProperty,jD=Object.getOwnPropertySymbols,XW=Object.prototype.hasOwnProperty,QW=Object.prototype.propertyIsEnumerable,VD=(e,t,r)=>t in e?KW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WD=(e,t)=>{for(var r in t||(t={}))XW.call(t,r)&&VD(e,r,t[r]);if(jD)for(var r of jD(t))QW.call(t,r)&&VD(e,r,t[r]);return e};const YW={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()}},GD="vueuse-storage";function ZW(e,t,r,i={}){var o;const{flush:a="pre",deep:c=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:p=!1,shallow:g,window:y=Ti,eventFilter:m,onError:w=j=>{console.error(j)}}=i,$=(g?xa:Xe)(t);if(!r)try{r=V_("getDefaultStorage",()=>{var j;return(j=Ti)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!r)return $;const B=$i(t),x=GW(B),C=(o=i.serializer)!=null?o:YW[x],{pause:S,resume:N}=H_($,()=>L($.value),{flush:a,deep:c,eventFilter:m});return y&&h&&(ya(y,"storage",M),ya(y,GD,R)),M(),$;function L(j){try{if(j==null)r.removeItem(e);else{const te=C.write(j),ie=r.getItem(e);ie!==te&&(r.setItem(e,te),y&&y.dispatchEvent(new CustomEvent(GD,{detail:{key:e,oldValue:ie,newValue:te,storageArea:r}})))}}catch(te){w(te)}}function T(j){const te=j?j.newValue:r.getItem(e);if(te==null)return d&&B!==null&&r.setItem(e,C.write(B)),B;if(!j&&p){const ie=C.read(te);return typeof p=="function"?p(ie,B):x==="object"&&!Array.isArray(ie)?WD(WD({},B),ie):ie}else return typeof te!="string"?te:C.read(te)}function R(j){M(j.detail)}function M(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){$.value=B;return}if(!(j&&j.key!==e)){S();try{$.value=T(j)}catch(te){w(te)}finally{j?Ci(N):N()}}}}}function JW(e){return j_("(prefers-color-scheme: dark)",e)}var eG=Object.defineProperty,KD=Object.getOwnPropertySymbols,tG=Object.prototype.hasOwnProperty,rG=Object.prototype.propertyIsEnumerable,XD=(e,t,r)=>t in e?eG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nG=(e,t)=>{for(var r in t||(t={}))tG.call(t,r)&&XD(e,r,t[r]);if(KD)for(var r of KD(t))rG.call(t,r)&&XD(e,r,t[r]);return e};function iG(e={}){const{selector:t="html",attribute:r="class",initialValue:i="auto",window:o=Ti,storage:a,storageKey:c="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:p,disableTransition:g=!0}=e,y=nG({auto:"",light:"light",dark:"dark"},e.modes||{}),m=JW({window:o}),w=Ae(()=>m.value?"dark":"light"),$=d||(c==null?P_(i):ZW(c,i,a,{window:o,listenToStorageChanges:h})),B=Ae(()=>$.value==="auto"?w.value:$.value),x=V_("updateHTMLAttrs",(L,T,R)=>{const M=typeof L=="string"?o==null?void 0:o.document.querySelector(L):Nf(L);if(!M)return;let j;if(g&&(j=o.document.createElement("style"),j.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),o.document.head.appendChild(j)),T==="class"){const te=R.split(/\s/g);Object.values(y).flatMap(ie=>(ie||"").split(/\s/g)).filter(Boolean).forEach(ie=>{te.includes(ie)?M.classList.add(ie):M.classList.remove(ie)})}else M.setAttribute(T,R);g&&(o.getComputedStyle(j).opacity,document.head.removeChild(j))});function C(L){var T;x(t,r,(T=y[L])!=null?T:L)}function S(L){e.onChanged?e.onChanged(L,C):C(L)}jt(B,S,{flush:"post",immediate:!0}),N_(()=>S(B.value));const N=Ae({get(){return p?$.value:B.value},set(L){$.value=L}});try{return Object.assign(N,{store:$,system:w,state:B})}catch{return N}}var sG=Object.defineProperty,oG=Object.defineProperties,aG=Object.getOwnPropertyDescriptors,QD=Object.getOwnPropertySymbols,uG=Object.prototype.hasOwnProperty,lG=Object.prototype.propertyIsEnumerable,YD=(e,t,r)=>t in e?sG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cG=(e,t)=>{for(var r in t||(t={}))uG.call(t,r)&&YD(e,r,t[r]);if(QD)for(var r of QD(t))lG.call(t,r)&&YD(e,r,t[r]);return e},fG=(e,t)=>oG(e,aG(t));function hG(e={}){const{valueDark:t="dark",valueLight:r=""}=e,i=iG(fG(cG({},e),{onChanged:(a,c)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,a==="dark",c,a):c(a)},modes:{dark:t,light:r}}));return Ae({get(){return i.value==="dark"},set(a){const c=a?"dark":"light";i.system.value===c?i.value="auto":i.value=c}})}var ZD=Object.getOwnPropertySymbols,dG=Object.prototype.hasOwnProperty,pG=Object.prototype.propertyIsEnumerable,gG=(e,t)=>{var r={};for(var i in e)dG.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&ZD)for(var i of ZD(e))t.indexOf(i)<0&&pG.call(e,i)&&(r[i]=e[i]);return r};function vG(e,t,r={}){const i=r,{window:o=Ti}=i,a=gG(i,["window"]);let c;const h=q_(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},p=Ae(()=>Array.isArray(e)?e.map(m=>Nf(m)):[Nf(e)]),g=jt(p,m=>{if(d(),h.value&&o){c=new ResizeObserver(t);for(const w of m)w&&c.observe(w,a)}},{immediate:!0,flush:"post",deep:!0}),y=()=>{d(),g()};return Xv(y),{isSupported:h,stop:y}}function mG(e="history",t={}){const{initialValue:r={},removeNullishValues:i=!0,removeFalsyValues:o=!1,write:a=!0,window:c=Ti}=t;if(!c)return Yr(r);const h=Yr({});function d(){if(e==="history")return c.location.search||"";if(e==="hash"){const C=c.location.hash||"",S=C.indexOf("?");return S>0?C.slice(S):""}else return(c.location.hash||"").replace(/^#/,"")}function p(C){const S=C.toString();if(e==="history")return`${S?`?${S}`:""}${c.location.hash||""}`;if(e==="hash-params")return`${c.location.search||""}${S?`#${S}`:""}`;const N=c.location.hash||"#",L=N.indexOf("?");return L>0?`${N.slice(0,L)}${S?`?${S}`:""}`:`${N}${S?`?${S}`:""}`}function g(){return new URLSearchParams(d())}function y(C){const S=new Set(Object.keys(h));for(const N of C.keys()){const L=C.getAll(N);h[N]=L.length>1?L:C.get(N)||"",S.delete(N)}Array.from(S).forEach(N=>delete h[N])}const{pause:m,resume:w}=H_(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach(S=>{const N=h[S];Array.isArray(N)?N.forEach(L=>C.append(S,L)):i&&N==null||o&&!N?C.delete(S):C.set(S,N)}),$(C)},{deep:!0});function $(C,S){m(),S&&y(C),c.history.replaceState(c.history.state,c.document.title,c.location.pathname+p(C)),w()}function B(){a&&$(g(),!0)}ya(c,"popstate",B,!1),e!=="history"&&ya(c,"hashchange",B,!1);const x=g();return x.keys().next().value?y(x):Object.assign(h,r),h}function yG(e,t,r,i={}){var o,a,c;const{clone:h=!1,passive:d=!1,eventName:p,deep:g=!1,defaultValue:y,shouldEmit:m}=i,w=nl(),$=r||(w==null?void 0:w.emit)||((o=w==null?void 0:w.$emit)==null?void 0:o.bind(w))||((c=(a=w==null?void 0:w.proxy)==null?void 0:a.$emit)==null?void 0:c.bind(w==null?void 0:w.proxy));let B=p;t||(t="modelValue"),B=p||B||`update:${t.toString()}`;const x=N=>h?typeof h=="function"?h(N):jW(N):N,C=()=>mW(e[t])?x(e[t]):y,S=N=>{m?m(N)&&$(B,N):$(B,N)};if(d){const N=C(),L=Xe(N);return jt(()=>e[t],T=>L.value=x(T)),jt(L,T=>{(T!==e[t]||g)&&S(T)},{deep:g}),L}else return Ae({get(){return C()},set(N){S(N)}})}function bG(e={}){const{window:t=Ti,initialWidth:r=1/0,initialHeight:i=1/0,listenOrientation:o=!0,includeScrollbar:a=!0}=e,c=Xe(r),h=Xe(i),d=()=>{t&&(a?(c.value=t.innerWidth,h.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};if(d(),N_(d),ya("resize",d,{passive:!0}),o){const p=j_("(orientation: portrait)");jt(p,()=>d())}return{width:c,height:h}}const W_=mG("hash-params",{initialValue:{file:"",view:null}}),Vn=J0(W_,"file"),zn=J0(W_,"view");var Xr=Uint8Array,qs=Uint16Array,G_=Uint32Array,K_=new Xr([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]),X_=new Xr([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]),wG=new Xr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Q_=function(e,t){for(var r=new qs(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var o=new G_(r[30]),i=1;i<30;++i)for(var a=r[i];a<r[i+1];++a)o[a]=a-r[i]<<5|i;return[r,o]},Y_=Q_(K_,2),Z_=Y_[0],DG=Y_[1];Z_[28]=258,DG[258]=28;var AG=Q_(X_,0),EG=AG[0],E0=new qs(32768);for(var St=0;St<32768;++St){var Ji=(St&43690)>>>1|(St&21845)<<1;Ji=(Ji&52428)>>>2|(Ji&13107)<<2,Ji=(Ji&61680)>>>4|(Ji&3855)<<4,E0[St]=((Ji&65280)>>>8|(Ji&255)<<8)>>>1}var Nu=function(e,t,r){for(var i=e.length,o=0,a=new qs(t);o<i;++o)e[o]&&++a[e[o]-1];var c=new qs(t);for(o=0;o<t;++o)c[o]=c[o-1]+a[o-1]<<1;var h;if(r){h=new qs(1<<t);var d=15-t;for(o=0;o<i;++o)if(e[o])for(var p=o<<4|e[o],g=t-e[o],y=c[e[o]-1]++<<g,m=y|(1<<g)-1;y<=m;++y)h[E0[y]>>>d]=p}else for(h=new qs(i),o=0;o<i;++o)e[o]&&(h[o]=E0[c[e[o]-1]++]>>>15-e[o]);return h},$l=new Xr(288);for(var St=0;St<144;++St)$l[St]=8;for(var St=144;St<256;++St)$l[St]=9;for(var St=256;St<280;++St)$l[St]=7;for(var St=280;St<288;++St)$l[St]=8;var J_=new Xr(32);for(var St=0;St<32;++St)J_[St]=5;var xG=Nu($l,9,1),CG=Nu(J_,5,1),Ap=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},mn=function(e,t,r){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&r},Ep=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},_G=function(e){return(e+7)/8|0},eS=function(e,t,r){(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length);var i=new(e.BYTES_PER_ELEMENT==2?qs:e.BYTES_PER_ELEMENT==4?G_:Xr)(r-t);return i.set(e.subarray(t,r)),i},SG=["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"],on=function(e,t,r){var i=new Error(t||SG[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,on),!r)throw i;return i},Yv=function(e,t,r){var i=e.length;if(!i||r&&r.f&&!r.l)return t||new Xr(0);var o=!t||r,a=!r||r.i;r||(r={}),t||(t=new Xr(i*3));var c=function(xe){var Q=t.length;if(xe>Q){var ae=new Xr(Math.max(Q*2,xe));ae.set(t),t=ae}},h=r.f||0,d=r.p||0,p=r.b||0,g=r.l,y=r.d,m=r.m,w=r.n,$=i*8;do{if(!g){h=mn(e,d,1);var B=mn(e,d+1,3);if(d+=3,B)if(B==1)g=xG,y=CG,m=9,w=5;else if(B==2){var N=mn(e,d,31)+257,L=mn(e,d+10,15)+4,T=N+mn(e,d+5,31)+1;d+=14;for(var R=new Xr(T),M=new Xr(19),j=0;j<L;++j)M[wG[j]]=mn(e,d+j*3,7);d+=L*3;for(var te=Ap(M),ie=(1<<te)-1,ee=Nu(M,te,1),j=0;j<T;){var z=ee[mn(e,d,ie)];d+=z&15;var x=z>>>4;if(x<16)R[j++]=x;else{var O=0,F=0;for(x==16?(F=3+mn(e,d,3),d+=2,O=R[j-1]):x==17?(F=3+mn(e,d,7),d+=3):x==18&&(F=11+mn(e,d,127),d+=7);F--;)R[j++]=O}}var D=R.subarray(0,N),I=R.subarray(N);m=Ap(D),w=Ap(I),g=Nu(D,m,1),y=Nu(I,w,1)}else on(1);else{var x=_G(d)+4,C=e[x-4]|e[x-3]<<8,S=x+C;if(S>i){a&&on(0);break}o&&c(p+C),t.set(e.subarray(x,S),p),r.b=p+=C,r.p=d=S*8,r.f=h;continue}if(d>$){a&&on(0);break}}o&&c(p+131072);for(var V=(1<<m)-1,J=(1<<w)-1,oe=d;;oe=d){var O=g[Ep(e,d)&V],ge=O>>>4;if(d+=O&15,d>$){a&&on(0);break}if(O||on(2),ge<256)t[p++]=ge;else if(ge==256){oe=d,g=null;break}else{var Fe=ge-254;if(ge>264){var j=ge-257,_e=K_[j];Fe=mn(e,d,(1<<_e)-1)+Z_[j],d+=_e}var Ue=y[Ep(e,d)&J],Ke=Ue>>>4;Ue||on(3),d+=Ue&15;var I=EG[Ke];if(Ke>3){var _e=X_[Ke];I+=Ep(e,d)&(1<<_e)-1,d+=_e}if(d>$){a&&on(0);break}o&&c(p+131072);for(var et=p+Fe;p<et;p+=4)t[p]=t[p-I],t[p+1]=t[p+1-I],t[p+2]=t[p+2-I],t[p+3]=t[p+3-I];p=et}}r.l=g,r.p=oe,r.b=p,r.f=h,g&&(h=1,r.m=m,r.d=y,r.n=w)}while(!h);return p==t.length?t:eS(t,0,p)},FG=new Xr(0),$G=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&on(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=e[10]|(e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[r++]);return r+(t&2)},TG=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},kG=function(e){((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)&&on(6,"invalid zlib data"),e[1]&32&&on(6,"invalid zlib data: preset dictionaries not supported")};function LG(e,t){return Yv(e,t)}function BG(e,t){return Yv(e.subarray($G(e),-8),t||new Xr(TG(e)))}function OG(e,t){return Yv((kG(e),e.subarray(2,-4)),t)}function PG(e,t){return e[0]==31&&e[1]==139&&e[2]==8?BG(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?LG(e,t):OG(e,t)}var x0=typeof TextDecoder<"u"&&new TextDecoder,NG=0;try{x0.decode(FG,{stream:!0}),NG=1}catch{}var IG=function(e){for(var t="",r=0;;){var i=e[r++],o=(i>127)+(i>223)+(i>239);if(r+o>e.length)return[t,eS(e,r-1)];o?o==3?(i=((i&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[r++]&63):t+=String.fromCharCode((i&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(i)}};function RG(e,t){if(t){for(var r="",i=0;i<e.length;i+=16384)r+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return r}else{if(x0)return x0.decode(e);var o=IG(e),a=o[0],c=o[1];return c.length&&on(8),a}}const JD=()=>{},es=()=>Promise.resolve();function MG(){const e=Yr({state:new Ex,waitForConnection:c,reconnect:o,ws:new EventTarget});e.state.filesMap=Yr(e.state.filesMap),e.state.idMap=Yr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async h=>t.moduleGraph[h],getTransformResult:async h=>({code:h,source:""}),readFile:async h=>Promise.resolve(h),onDone:JD,onCollected:es,onTaskUpdate:JD,writeFile:es,rerun:es,updateSnapshot:es,removeFile:es,createDirectory:es,resolveSnapshotPath:es,snapshotSaved:es};e.rpc=r;let i;function o(){a()}async function a(){var g;const h=await fetch(window.METADATA_PATH),d=((g=h.headers.get("content-type"))==null?void 0:g.toLowerCase())||"";if(d.includes("application/gzip")||d.includes("application/x-gzip")){const y=new Uint8Array(await h.arrayBuffer()),m=RG(PG(y));t=n0(m)}else t=n0(await h.text());const p=new Event("open");e.ws.dispatchEvent(p)}a();function c(){return i}return e}const Xu=Xe("idle"),sr=function(){return Yn?MG():fW(pW,{reactive:Yr,handlers:{onTaskUpdate(){Xu.value="running"},onFinished(){Xu.value="idle"}}})}(),Tl=xa({}),js=Xe("CONNECTING"),Hr=Ae(()=>sr.state.getFiles()),Nt=Ae(()=>Hr.value.find(e=>e.id===Vn.value)),tS=Ae(()=>Kv(Nt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function If(e){return Hr.value.find(t=>t.id===e)}const zG=Ae(()=>js.value==="OPEN"),xp=Ae(()=>js.value==="CONNECTING");Ae(()=>js.value==="CLOSED");function eA(e=sr.state.getFiles()){return rS(e)}function rS(e){return e.forEach(t=>{delete t.result,Kv(t).forEach(r=>delete r.result)}),sr.rpc.rerun(e.map(t=>t.filepath))}function UG(){if(Nt.value)return rS([Nt.value])}jt(()=>sr.ws,e=>{js.value=Yn?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{js.value="OPEN",sr.state.filesMap.clear();const[t,r]=await Promise.all([sr.rpc.getFiles(),sr.rpc.getConfig()]);sr.state.collectFiles(t),Tl.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{js.value==="CONNECTING"&&(js.value="CLOSED")},1e3)})},{immediate:!0});const HG={"text-2xl":""},qG=pe("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),jG=it({__name:"ConnectionOverlay",setup(e){return(t,r)=>Y(zG)?nt("",!0):(de(),$e("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]=(...i)=>Y(sr).reconnect&&Y(sr).reconnect(...i))},[pe("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:yt(Y(xp)?"animate-pulse":"")},[pe("div",{text:"5xl",class:yt(Y(xp)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),pe("div",HG,Je(Y(xp)?"Connecting...":"Disconnected"),1),qG],2)]))}});var nS={},Ei={};const VG="Á",WG="á",GG="Ă",KG="ă",XG="∾",QG="∿",YG="∾̳",ZG="Â",JG="â",eK="´",tK="А",rK="а",nK="Æ",iK="æ",sK="⁡",oK="𝔄",aK="𝔞",uK="À",lK="à",cK="ℵ",fK="ℵ",hK="Α",dK="α",pK="Ā",gK="ā",vK="⨿",mK="&",yK="&",bK="⩕",wK="⩓",DK="∧",AK="⩜",EK="⩘",xK="⩚",CK="∠",_K="⦤",SK="∠",FK="⦨",$K="⦩",TK="⦪",kK="⦫",LK="⦬",BK="⦭",OK="⦮",PK="⦯",NK="∡",IK="∟",RK="⊾",MK="⦝",zK="∢",UK="Å",HK="⍼",qK="Ą",jK="ą",VK="𝔸",WK="𝕒",GK="⩯",KK="≈",XK="⩰",QK="≊",YK="≋",ZK="'",JK="⁡",eX="≈",tX="≊",rX="Å",nX="å",iX="𝒜",sX="𝒶",oX="≔",aX="*",uX="≈",lX="≍",cX="Ã",fX="ã",hX="Ä",dX="ä",pX="∳",gX="⨑",vX="≌",mX="϶",yX="‵",bX="∽",wX="⋍",DX="∖",AX="⫧",EX="⊽",xX="⌅",CX="⌆",_X="⌅",SX="⎵",FX="⎶",$X="≌",TX="Б",kX="б",LX="„",BX="∵",OX="∵",PX="∵",NX="⦰",IX="϶",RX="ℬ",MX="ℬ",zX="Β",UX="β",HX="ℶ",qX="≬",jX="𝔅",VX="𝔟",WX="⋂",GX="◯",KX="⋃",XX="⨀",QX="⨁",YX="⨂",ZX="⨆",JX="★",eQ="▽",tQ="△",rQ="⨄",nQ="⋁",iQ="⋀",sQ="⤍",oQ="⧫",aQ="▪",uQ="▴",lQ="▾",cQ="◂",fQ="▸",hQ="␣",dQ="▒",pQ="░",gQ="▓",vQ="█",mQ="=⃥",yQ="≡⃥",bQ="⫭",wQ="⌐",DQ="𝔹",AQ="𝕓",EQ="⊥",xQ="⊥",CQ="⋈",_Q="⧉",SQ="┐",FQ="╕",$Q="╖",TQ="╗",kQ="┌",LQ="╒",BQ="╓",OQ="╔",PQ="─",NQ="═",IQ="┬",RQ="╤",MQ="╥",zQ="╦",UQ="┴",HQ="╧",qQ="╨",jQ="╩",VQ="⊟",WQ="⊞",GQ="⊠",KQ="┘",XQ="╛",QQ="╜",YQ="╝",ZQ="└",JQ="╘",eY="╙",tY="╚",rY="│",nY="║",iY="┼",sY="╪",oY="╫",aY="╬",uY="┤",lY="╡",cY="╢",fY="╣",hY="├",dY="╞",pY="╟",gY="╠",vY="‵",mY="˘",yY="˘",bY="¦",wY="𝒷",DY="ℬ",AY="⁏",EY="∽",xY="⋍",CY="⧅",_Y="\\",SY="⟈",FY="•",$Y="•",TY="≎",kY="⪮",LY="≏",BY="≎",OY="≏",PY="Ć",NY="ć",IY="⩄",RY="⩉",MY="⩋",zY="∩",UY="⋒",HY="⩇",qY="⩀",jY="ⅅ",VY="∩︀",WY="⁁",GY="ˇ",KY="ℭ",XY="⩍",QY="Č",YY="č",ZY="Ç",JY="ç",eZ="Ĉ",tZ="ĉ",rZ="∰",nZ="⩌",iZ="⩐",sZ="Ċ",oZ="ċ",aZ="¸",uZ="¸",lZ="⦲",cZ="¢",fZ="·",hZ="·",dZ="𝔠",pZ="ℭ",gZ="Ч",vZ="ч",mZ="✓",yZ="✓",bZ="Χ",wZ="χ",DZ="ˆ",AZ="≗",EZ="↺",xZ="↻",CZ="⊛",_Z="⊚",SZ="⊝",FZ="⊙",$Z="®",TZ="Ⓢ",kZ="⊖",LZ="⊕",BZ="⊗",OZ="○",PZ="⧃",NZ="≗",IZ="⨐",RZ="⫯",MZ="⧂",zZ="∲",UZ="”",HZ="’",qZ="♣",jZ="♣",VZ=":",WZ="∷",GZ="⩴",KZ="≔",XZ="≔",QZ=",",YZ="@",ZZ="∁",JZ="∘",eJ="∁",tJ="ℂ",rJ="≅",nJ="⩭",iJ="≡",sJ="∮",oJ="∯",aJ="∮",uJ="𝕔",lJ="ℂ",cJ="∐",fJ="∐",hJ="©",dJ="©",pJ="℗",gJ="∳",vJ="↵",mJ="✗",yJ="⨯",bJ="𝒞",wJ="𝒸",DJ="⫏",AJ="⫑",EJ="⫐",xJ="⫒",CJ="⋯",_J="⤸",SJ="⤵",FJ="⋞",$J="⋟",TJ="↶",kJ="⤽",LJ="⩈",BJ="⩆",OJ="≍",PJ="∪",NJ="⋓",IJ="⩊",RJ="⊍",MJ="⩅",zJ="∪︀",UJ="↷",HJ="⤼",qJ="⋞",jJ="⋟",VJ="⋎",WJ="⋏",GJ="¤",KJ="↶",XJ="↷",QJ="⋎",YJ="⋏",ZJ="∲",JJ="∱",eee="⌭",tee="†",ree="‡",nee="ℸ",iee="↓",see="↡",oee="⇓",aee="‐",uee="⫤",lee="⊣",cee="⤏",fee="˝",hee="Ď",dee="ď",pee="Д",gee="д",vee="‡",mee="⇊",yee="ⅅ",bee="ⅆ",wee="⤑",Dee="⩷",Aee="°",Eee="∇",xee="Δ",Cee="δ",_ee="⦱",See="⥿",Fee="𝔇",$ee="𝔡",Tee="⥥",kee="⇃",Lee="⇂",Bee="´",Oee="˙",Pee="˝",Nee="`",Iee="˜",Ree="⋄",Mee="⋄",zee="⋄",Uee="♦",Hee="♦",qee="¨",jee="ⅆ",Vee="ϝ",Wee="⋲",Gee="÷",Kee="÷",Xee="⋇",Qee="⋇",Yee="Ђ",Zee="ђ",Jee="⌞",ete="⌍",tte="$",rte="𝔻",nte="𝕕",ite="¨",ste="˙",ote="⃜",ate="≐",ute="≑",lte="≐",cte="∸",fte="∔",hte="⊡",dte="⌆",pte="∯",gte="¨",vte="⇓",mte="⇐",yte="⇔",bte="⫤",wte="⟸",Dte="⟺",Ate="⟹",Ete="⇒",xte="⊨",Cte="⇑",_te="⇕",Ste="∥",Fte="⤓",$te="↓",Tte="↓",kte="⇓",Lte="⇵",Bte="̑",Ote="⇊",Pte="⇃",Nte="⇂",Ite="⥐",Rte="⥞",Mte="⥖",zte="↽",Ute="⥟",Hte="⥗",qte="⇁",jte="↧",Vte="⊤",Wte="⤐",Gte="⌟",Kte="⌌",Xte="𝒟",Qte="𝒹",Yte="Ѕ",Zte="ѕ",Jte="⧶",ere="Đ",tre="đ",rre="⋱",nre="▿",ire="▾",sre="⇵",ore="⥯",are="⦦",ure="Џ",lre="џ",cre="⟿",fre="É",hre="é",dre="⩮",pre="Ě",gre="ě",vre="Ê",mre="ê",yre="≖",bre="≕",wre="Э",Dre="э",Are="⩷",Ere="Ė",xre="ė",Cre="≑",_re="ⅇ",Sre="≒",Fre="𝔈",$re="𝔢",Tre="⪚",kre="È",Lre="è",Bre="⪖",Ore="⪘",Pre="⪙",Nre="∈",Ire="⏧",Rre="ℓ",Mre="⪕",zre="⪗",Ure="Ē",Hre="ē",qre="∅",jre="∅",Vre="◻",Wre="∅",Gre="▫",Kre=" ",Xre=" ",Qre=" ",Yre="Ŋ",Zre="ŋ",Jre=" ",ene="Ę",tne="ę",rne="𝔼",nne="𝕖",ine="⋕",sne="⧣",one="⩱",ane="ε",une="Ε",lne="ε",cne="ϵ",fne="≖",hne="≕",dne="≂",pne="⪖",gne="⪕",vne="⩵",mne="=",yne="≂",bne="≟",wne="⇌",Dne="≡",Ane="⩸",Ene="⧥",xne="⥱",Cne="≓",_ne="ℯ",Sne="ℰ",Fne="≐",$ne="⩳",Tne="≂",kne="Η",Lne="η",Bne="Ð",One="ð",Pne="Ë",Nne="ë",Ine="€",Rne="!",Mne="∃",zne="∃",Une="ℰ",Hne="ⅇ",qne="ⅇ",jne="≒",Vne="Ф",Wne="ф",Gne="♀",Kne="ffi",Xne="ff",Qne="ffl",Yne="𝔉",Zne="𝔣",Jne="fi",eie="◼",tie="▪",rie="fj",nie="♭",iie="fl",sie="▱",oie="ƒ",aie="𝔽",uie="𝕗",lie="∀",cie="∀",fie="⋔",hie="⫙",die="ℱ",pie="⨍",gie="½",vie="⅓",mie="¼",yie="⅕",bie="⅙",wie="⅛",Die="⅔",Aie="⅖",Eie="¾",xie="⅗",Cie="⅜",_ie="⅘",Sie="⅚",Fie="⅝",$ie="⅞",Tie="⁄",kie="⌢",Lie="𝒻",Bie="ℱ",Oie="ǵ",Pie="Γ",Nie="γ",Iie="Ϝ",Rie="ϝ",Mie="⪆",zie="Ğ",Uie="ğ",Hie="Ģ",qie="Ĝ",jie="ĝ",Vie="Г",Wie="г",Gie="Ġ",Kie="ġ",Xie="≥",Qie="≧",Yie="⪌",Zie="⋛",Jie="≥",ese="≧",tse="⩾",rse="⪩",nse="⩾",ise="⪀",sse="⪂",ose="⪄",ase="⋛︀",use="⪔",lse="𝔊",cse="𝔤",fse="≫",hse="⋙",dse="⋙",pse="ℷ",gse="Ѓ",vse="ѓ",mse="⪥",yse="≷",bse="⪒",wse="⪤",Dse="⪊",Ase="⪊",Ese="⪈",xse="≩",Cse="⪈",_se="≩",Sse="⋧",Fse="𝔾",$se="𝕘",Tse="`",kse="≥",Lse="⋛",Bse="≧",Ose="⪢",Pse="≷",Nse="⩾",Ise="≳",Rse="𝒢",Mse="ℊ",zse="≳",Use="⪎",Hse="⪐",qse="⪧",jse="⩺",Vse=">",Wse=">",Gse="≫",Kse="⋗",Xse="⦕",Qse="⩼",Yse="⪆",Zse="⥸",Jse="⋗",eoe="⋛",toe="⪌",roe="≷",noe="≳",ioe="≩︀",soe="≩︀",ooe="ˇ",aoe=" ",uoe="½",loe="ℋ",coe="Ъ",foe="ъ",hoe="⥈",doe="↔",poe="⇔",goe="↭",voe="^",moe="ℏ",yoe="Ĥ",boe="ĥ",woe="♥",Doe="♥",Aoe="…",Eoe="⊹",xoe="𝔥",Coe="ℌ",_oe="ℋ",Soe="⤥",Foe="⤦",$oe="⇿",Toe="∻",koe="↩",Loe="↪",Boe="𝕙",Ooe="ℍ",Poe="―",Noe="─",Ioe="𝒽",Roe="ℋ",Moe="ℏ",zoe="Ħ",Uoe="ħ",Hoe="≎",qoe="≏",joe="⁃",Voe="‐",Woe="Í",Goe="í",Koe="⁣",Xoe="Î",Qoe="î",Yoe="И",Zoe="и",Joe="İ",eae="Е",tae="е",rae="¡",nae="⇔",iae="𝔦",sae="ℑ",oae="Ì",aae="ì",uae="ⅈ",lae="⨌",cae="∭",fae="⧜",hae="℩",dae="IJ",pae="ij",gae="Ī",vae="ī",mae="ℑ",yae="ⅈ",bae="ℐ",wae="ℑ",Dae="ı",Aae="ℑ",Eae="⊷",xae="Ƶ",Cae="⇒",_ae="℅",Sae="∞",Fae="⧝",$ae="ı",Tae="⊺",kae="∫",Lae="∬",Bae="ℤ",Oae="∫",Pae="⊺",Nae="⋂",Iae="⨗",Rae="⨼",Mae="⁣",zae="⁢",Uae="Ё",Hae="ё",qae="Į",jae="į",Vae="𝕀",Wae="𝕚",Gae="Ι",Kae="ι",Xae="⨼",Qae="¿",Yae="𝒾",Zae="ℐ",Jae="∈",eue="⋵",tue="⋹",rue="⋴",nue="⋳",iue="∈",sue="⁢",oue="Ĩ",aue="ĩ",uue="І",lue="і",cue="Ï",fue="ï",hue="Ĵ",due="ĵ",pue="Й",gue="й",vue="𝔍",mue="𝔧",yue="ȷ",bue="𝕁",wue="𝕛",Due="𝒥",Aue="𝒿",Eue="Ј",xue="ј",Cue="Є",_ue="є",Sue="Κ",Fue="κ",$ue="ϰ",Tue="Ķ",kue="ķ",Lue="К",Bue="к",Oue="𝔎",Pue="𝔨",Nue="ĸ",Iue="Х",Rue="х",Mue="Ќ",zue="ќ",Uue="𝕂",Hue="𝕜",que="𝒦",jue="𝓀",Vue="⇚",Wue="Ĺ",Gue="ĺ",Kue="⦴",Xue="ℒ",Que="Λ",Yue="λ",Zue="⟨",Jue="⟪",ele="⦑",tle="⟨",rle="⪅",nle="ℒ",ile="«",sle="⇤",ole="⤟",ale="←",ule="↞",lle="⇐",cle="⤝",fle="↩",hle="↫",dle="⤹",ple="⥳",gle="↢",vle="⤙",mle="⤛",yle="⪫",ble="⪭",wle="⪭︀",Dle="⤌",Ale="⤎",Ele="❲",xle="{",Cle="[",_le="⦋",Sle="⦏",Fle="⦍",$le="Ľ",Tle="ľ",kle="Ļ",Lle="ļ",Ble="⌈",Ole="{",Ple="Л",Nle="л",Ile="⤶",Rle="“",Mle="„",zle="⥧",Ule="⥋",Hle="↲",qle="≤",jle="≦",Vle="⟨",Wle="⇤",Gle="←",Kle="←",Xle="⇐",Qle="⇆",Yle="↢",Zle="⌈",Jle="⟦",ece="⥡",tce="⥙",rce="⇃",nce="⌊",ice="↽",sce="↼",oce="⇇",ace="↔",uce="↔",lce="⇔",cce="⇆",fce="⇋",hce="↭",dce="⥎",pce="↤",gce="⊣",vce="⥚",mce="⋋",yce="⧏",bce="⊲",wce="⊴",Dce="⥑",Ace="⥠",Ece="⥘",xce="↿",Cce="⥒",_ce="↼",Sce="⪋",Fce="⋚",$ce="≤",Tce="≦",kce="⩽",Lce="⪨",Bce="⩽",Oce="⩿",Pce="⪁",Nce="⪃",Ice="⋚︀",Rce="⪓",Mce="⪅",zce="⋖",Uce="⋚",Hce="⪋",qce="⋚",jce="≦",Vce="≶",Wce="≶",Gce="⪡",Kce="≲",Xce="⩽",Qce="≲",Yce="⥼",Zce="⌊",Jce="𝔏",efe="𝔩",tfe="≶",rfe="⪑",nfe="⥢",ife="↽",sfe="↼",ofe="⥪",afe="▄",ufe="Љ",lfe="љ",cfe="⇇",ffe="≪",hfe="⋘",dfe="⌞",pfe="⇚",gfe="⥫",vfe="◺",mfe="Ŀ",yfe="ŀ",bfe="⎰",wfe="⎰",Dfe="⪉",Afe="⪉",Efe="⪇",xfe="≨",Cfe="⪇",_fe="≨",Sfe="⋦",Ffe="⟬",$fe="⇽",Tfe="⟦",kfe="⟵",Lfe="⟵",Bfe="⟸",Ofe="⟷",Pfe="⟷",Nfe="⟺",Ife="⟼",Rfe="⟶",Mfe="⟶",zfe="⟹",Ufe="↫",Hfe="↬",qfe="⦅",jfe="𝕃",Vfe="𝕝",Wfe="⨭",Gfe="⨴",Kfe="∗",Xfe="_",Qfe="↙",Yfe="↘",Zfe="◊",Jfe="◊",ehe="⧫",the="(",rhe="⦓",nhe="⇆",ihe="⌟",she="⇋",ohe="⥭",ahe="‎",uhe="⊿",lhe="‹",che="𝓁",fhe="ℒ",hhe="↰",dhe="↰",phe="≲",ghe="⪍",vhe="⪏",mhe="[",yhe="‘",bhe="‚",whe="Ł",Dhe="ł",Ahe="⪦",Ehe="⩹",xhe="<",Che="<",_he="≪",She="⋖",Fhe="⋋",$he="⋉",The="⥶",khe="⩻",Lhe="◃",Bhe="⊴",Ohe="◂",Phe="⦖",Nhe="⥊",Ihe="⥦",Rhe="≨︀",Mhe="≨︀",zhe="¯",Uhe="♂",Hhe="✠",qhe="✠",jhe="↦",Vhe="↦",Whe="↧",Ghe="↤",Khe="↥",Xhe="▮",Qhe="⨩",Yhe="М",Zhe="м",Jhe="—",ede="∺",tde="∡",rde=" ",nde="ℳ",ide="𝔐",sde="𝔪",ode="℧",ade="µ",ude="*",lde="⫰",cde="∣",fde="·",hde="⊟",dde="−",pde="∸",gde="⨪",vde="∓",mde="⫛",yde="…",bde="∓",wde="⊧",Dde="𝕄",Ade="𝕞",Ede="∓",xde="𝓂",Cde="ℳ",_de="∾",Sde="Μ",Fde="μ",$de="⊸",Tde="⊸",kde="∇",Lde="Ń",Bde="ń",Ode="∠⃒",Pde="≉",Nde="⩰̸",Ide="≋̸",Rde="ʼn",Mde="≉",zde="♮",Ude="ℕ",Hde="♮",qde=" ",jde="≎̸",Vde="≏̸",Wde="⩃",Gde="Ň",Kde="ň",Xde="Ņ",Qde="ņ",Yde="≇",Zde="⩭̸",Jde="⩂",epe="Н",tpe="н",rpe="–",npe="⤤",ipe="↗",spe="⇗",ope="↗",ape="≠",upe="≐̸",lpe="​",cpe="​",fpe="​",hpe="​",dpe="≢",ppe="⤨",gpe="≂̸",vpe="≫",mpe="≪",ype=`
14
+ `,bpe="∄",wpe="∄",Dpe="𝔑",Ape="𝔫",Epe="≧̸",xpe="≱",Cpe="≱",_pe="≧̸",Spe="⩾̸",Fpe="⩾̸",$pe="⋙̸",Tpe="≵",kpe="≫⃒",Lpe="≯",Bpe="≯",Ope="≫̸",Ppe="↮",Npe="⇎",Ipe="⫲",Rpe="∋",Mpe="⋼",zpe="⋺",Upe="∋",Hpe="Њ",qpe="њ",jpe="↚",Vpe="⇍",Wpe="‥",Gpe="≦̸",Kpe="≰",Xpe="↚",Qpe="⇍",Ype="↮",Zpe="⇎",Jpe="≰",e0e="≦̸",t0e="⩽̸",r0e="⩽̸",n0e="≮",i0e="⋘̸",s0e="≴",o0e="≪⃒",a0e="≮",u0e="⋪",l0e="⋬",c0e="≪̸",f0e="∤",h0e="⁠",d0e=" ",p0e="𝕟",g0e="ℕ",v0e="⫬",m0e="¬",y0e="≢",b0e="≭",w0e="∦",D0e="∉",A0e="≠",E0e="≂̸",x0e="∄",C0e="≯",_0e="≱",S0e="≧̸",F0e="≫̸",$0e="≹",T0e="⩾̸",k0e="≵",L0e="≎̸",B0e="≏̸",O0e="∉",P0e="⋵̸",N0e="⋹̸",I0e="∉",R0e="⋷",M0e="⋶",z0e="⧏̸",U0e="⋪",H0e="⋬",q0e="≮",j0e="≰",V0e="≸",W0e="≪̸",G0e="⩽̸",K0e="≴",X0e="⪢̸",Q0e="⪡̸",Y0e="∌",Z0e="∌",J0e="⋾",ege="⋽",tge="⊀",rge="⪯̸",nge="⋠",ige="∌",sge="⧐̸",oge="⋫",age="⋭",uge="⊏̸",lge="⋢",cge="⊐̸",fge="⋣",hge="⊂⃒",dge="⊈",pge="⊁",gge="⪰̸",vge="⋡",mge="≿̸",yge="⊃⃒",bge="⊉",wge="≁",Dge="≄",Age="≇",Ege="≉",xge="∤",Cge="∦",_ge="∦",Sge="⫽⃥",Fge="∂̸",$ge="⨔",Tge="⊀",kge="⋠",Lge="⊀",Bge="⪯̸",Oge="⪯̸",Pge="⤳̸",Nge="↛",Ige="⇏",Rge="↝̸",Mge="↛",zge="⇏",Uge="⋫",Hge="⋭",qge="⊁",jge="⋡",Vge="⪰̸",Wge="𝒩",Gge="𝓃",Kge="∤",Xge="∦",Qge="≁",Yge="≄",Zge="≄",Jge="∤",eve="∦",tve="⋢",rve="⋣",nve="⊄",ive="⫅̸",sve="⊈",ove="⊂⃒",ave="⊈",uve="⫅̸",lve="⊁",cve="⪰̸",fve="⊅",hve="⫆̸",dve="⊉",pve="⊃⃒",gve="⊉",vve="⫆̸",mve="≹",yve="Ñ",bve="ñ",wve="≸",Dve="⋪",Ave="⋬",Eve="⋫",xve="⋭",Cve="Ν",_ve="ν",Sve="#",Fve="№",$ve=" ",Tve="≍⃒",kve="⊬",Lve="⊭",Bve="⊮",Ove="⊯",Pve="≥⃒",Nve=">⃒",Ive="⤄",Rve="⧞",Mve="⤂",zve="≤⃒",Uve="<⃒",Hve="⊴⃒",qve="⤃",jve="⊵⃒",Vve="∼⃒",Wve="⤣",Gve="↖",Kve="⇖",Xve="↖",Qve="⤧",Yve="Ó",Zve="ó",Jve="⊛",eme="Ô",tme="ô",rme="⊚",nme="О",ime="о",sme="⊝",ome="Ő",ame="ő",ume="⨸",lme="⊙",cme="⦼",fme="Œ",hme="œ",dme="⦿",pme="𝔒",gme="𝔬",vme="˛",mme="Ò",yme="ò",bme="⧁",wme="⦵",Dme="Ω",Ame="∮",Eme="↺",xme="⦾",Cme="⦻",_me="‾",Sme="⧀",Fme="Ō",$me="ō",Tme="Ω",kme="ω",Lme="Ο",Bme="ο",Ome="⦶",Pme="⊖",Nme="𝕆",Ime="𝕠",Rme="⦷",Mme="“",zme="‘",Ume="⦹",Hme="⊕",qme="↻",jme="⩔",Vme="∨",Wme="⩝",Gme="ℴ",Kme="ℴ",Xme="ª",Qme="º",Yme="⊶",Zme="⩖",Jme="⩗",eye="⩛",tye="Ⓢ",rye="𝒪",nye="ℴ",iye="Ø",sye="ø",oye="⊘",aye="Õ",uye="õ",lye="⨶",cye="⨷",fye="⊗",hye="Ö",dye="ö",pye="⌽",gye="‾",vye="⏞",mye="⎴",yye="⏜",bye="¶",wye="∥",Dye="∥",Aye="⫳",Eye="⫽",xye="∂",Cye="∂",_ye="П",Sye="п",Fye="%",$ye=".",Tye="‰",kye="⊥",Lye="‱",Bye="𝔓",Oye="𝔭",Pye="Φ",Nye="φ",Iye="ϕ",Rye="ℳ",Mye="☎",zye="Π",Uye="π",Hye="⋔",qye="ϖ",jye="ℏ",Vye="ℎ",Wye="ℏ",Gye="⨣",Kye="⊞",Xye="⨢",Qye="+",Yye="∔",Zye="⨥",Jye="⩲",e1e="±",t1e="±",r1e="⨦",n1e="⨧",i1e="±",s1e="ℌ",o1e="⨕",a1e="𝕡",u1e="ℙ",l1e="£",c1e="⪷",f1e="⪻",h1e="≺",d1e="≼",p1e="⪷",g1e="≺",v1e="≼",m1e="≺",y1e="⪯",b1e="≼",w1e="≾",D1e="⪯",A1e="⪹",E1e="⪵",x1e="⋨",C1e="⪯",_1e="⪳",S1e="≾",F1e="′",$1e="″",T1e="ℙ",k1e="⪹",L1e="⪵",B1e="⋨",O1e="∏",P1e="∏",N1e="⌮",I1e="⌒",R1e="⌓",M1e="∝",z1e="∝",U1e="∷",H1e="∝",q1e="≾",j1e="⊰",V1e="𝒫",W1e="𝓅",G1e="Ψ",K1e="ψ",X1e=" ",Q1e="𝔔",Y1e="𝔮",Z1e="⨌",J1e="𝕢",ebe="ℚ",tbe="⁗",rbe="𝒬",nbe="𝓆",ibe="ℍ",sbe="⨖",obe="?",abe="≟",ube='"',lbe='"',cbe="⇛",fbe="∽̱",hbe="Ŕ",dbe="ŕ",pbe="√",gbe="⦳",vbe="⟩",mbe="⟫",ybe="⦒",bbe="⦥",wbe="⟩",Dbe="»",Abe="⥵",Ebe="⇥",xbe="⤠",Cbe="⤳",_be="→",Sbe="↠",Fbe="⇒",$be="⤞",Tbe="↪",kbe="↬",Lbe="⥅",Bbe="⥴",Obe="⤖",Pbe="↣",Nbe="↝",Ibe="⤚",Rbe="⤜",Mbe="∶",zbe="ℚ",Ube="⤍",Hbe="⤏",qbe="⤐",jbe="❳",Vbe="}",Wbe="]",Gbe="⦌",Kbe="⦎",Xbe="⦐",Qbe="Ř",Ybe="ř",Zbe="Ŗ",Jbe="ŗ",ewe="⌉",twe="}",rwe="Р",nwe="р",iwe="⤷",swe="⥩",owe="”",awe="”",uwe="↳",lwe="ℜ",cwe="ℛ",fwe="ℜ",hwe="ℝ",dwe="ℜ",pwe="▭",gwe="®",vwe="®",mwe="∋",ywe="⇋",bwe="⥯",wwe="⥽",Dwe="⌋",Awe="𝔯",Ewe="ℜ",xwe="⥤",Cwe="⇁",_we="⇀",Swe="⥬",Fwe="Ρ",$we="ρ",Twe="ϱ",kwe="⟩",Lwe="⇥",Bwe="→",Owe="→",Pwe="⇒",Nwe="⇄",Iwe="↣",Rwe="⌉",Mwe="⟧",zwe="⥝",Uwe="⥕",Hwe="⇂",qwe="⌋",jwe="⇁",Vwe="⇀",Wwe="⇄",Gwe="⇌",Kwe="⇉",Xwe="↝",Qwe="↦",Ywe="⊢",Zwe="⥛",Jwe="⋌",eDe="⧐",tDe="⊳",rDe="⊵",nDe="⥏",iDe="⥜",sDe="⥔",oDe="↾",aDe="⥓",uDe="⇀",lDe="˚",cDe="≓",fDe="⇄",hDe="⇌",dDe="‏",pDe="⎱",gDe="⎱",vDe="⫮",mDe="⟭",yDe="⇾",bDe="⟧",wDe="⦆",DDe="𝕣",ADe="ℝ",EDe="⨮",xDe="⨵",CDe="⥰",_De=")",SDe="⦔",FDe="⨒",$De="⇉",TDe="⇛",kDe="›",LDe="𝓇",BDe="ℛ",ODe="↱",PDe="↱",NDe="]",IDe="’",RDe="’",MDe="⋌",zDe="⋊",UDe="▹",HDe="⊵",qDe="▸",jDe="⧎",VDe="⧴",WDe="⥨",GDe="℞",KDe="Ś",XDe="ś",QDe="‚",YDe="⪸",ZDe="Š",JDe="š",eAe="⪼",tAe="≻",rAe="≽",nAe="⪰",iAe="⪴",sAe="Ş",oAe="ş",aAe="Ŝ",uAe="ŝ",lAe="⪺",cAe="⪶",fAe="⋩",hAe="⨓",dAe="≿",pAe="С",gAe="с",vAe="⊡",mAe="⋅",yAe="⩦",bAe="⤥",wAe="↘",DAe="⇘",AAe="↘",EAe="§",xAe=";",CAe="⤩",_Ae="∖",SAe="∖",FAe="✶",$Ae="𝔖",TAe="𝔰",kAe="⌢",LAe="♯",BAe="Щ",OAe="щ",PAe="Ш",NAe="ш",IAe="↓",RAe="←",MAe="∣",zAe="∥",UAe="→",HAe="↑",qAe="­",jAe="Σ",VAe="σ",WAe="ς",GAe="ς",KAe="∼",XAe="⩪",QAe="≃",YAe="≃",ZAe="⪞",JAe="⪠",eEe="⪝",tEe="⪟",rEe="≆",nEe="⨤",iEe="⥲",sEe="←",oEe="∘",aEe="∖",uEe="⨳",lEe="⧤",cEe="∣",fEe="⌣",hEe="⪪",dEe="⪬",pEe="⪬︀",gEe="Ь",vEe="ь",mEe="⌿",yEe="⧄",bEe="/",wEe="𝕊",DEe="𝕤",AEe="♠",EEe="♠",xEe="∥",CEe="⊓",_Ee="⊓︀",SEe="⊔",FEe="⊔︀",$Ee="√",TEe="⊏",kEe="⊑",LEe="⊏",BEe="⊑",OEe="⊐",PEe="⊒",NEe="⊐",IEe="⊒",REe="□",MEe="□",zEe="⊓",UEe="⊏",HEe="⊑",qEe="⊐",jEe="⊒",VEe="⊔",WEe="▪",GEe="□",KEe="▪",XEe="→",QEe="𝒮",YEe="𝓈",ZEe="∖",JEe="⌣",exe="⋆",txe="⋆",rxe="☆",nxe="★",ixe="ϵ",sxe="ϕ",oxe="¯",axe="⊂",uxe="⋐",lxe="⪽",cxe="⫅",fxe="⊆",hxe="⫃",dxe="⫁",pxe="⫋",gxe="⊊",vxe="⪿",mxe="⥹",yxe="⊂",bxe="⋐",wxe="⊆",Dxe="⫅",Axe="⊆",Exe="⊊",xxe="⫋",Cxe="⫇",_xe="⫕",Sxe="⫓",Fxe="⪸",$xe="≻",Txe="≽",kxe="≻",Lxe="⪰",Bxe="≽",Oxe="≿",Pxe="⪰",Nxe="⪺",Ixe="⪶",Rxe="⋩",Mxe="≿",zxe="∋",Uxe="∑",Hxe="∑",qxe="♪",jxe="¹",Vxe="²",Wxe="³",Gxe="⊃",Kxe="⋑",Xxe="⪾",Qxe="⫘",Yxe="⫆",Zxe="⊇",Jxe="⫄",eCe="⊃",tCe="⊇",rCe="⟉",nCe="⫗",iCe="⥻",sCe="⫂",oCe="⫌",aCe="⊋",uCe="⫀",lCe="⊃",cCe="⋑",fCe="⊇",hCe="⫆",dCe="⊋",pCe="⫌",gCe="⫈",vCe="⫔",mCe="⫖",yCe="⤦",bCe="↙",wCe="⇙",DCe="↙",ACe="⤪",ECe="ß",xCe=" ",CCe="⌖",_Ce="Τ",SCe="τ",FCe="⎴",$Ce="Ť",TCe="ť",kCe="Ţ",LCe="ţ",BCe="Т",OCe="т",PCe="⃛",NCe="⌕",ICe="𝔗",RCe="𝔱",MCe="∴",zCe="∴",UCe="∴",HCe="Θ",qCe="θ",jCe="ϑ",VCe="ϑ",WCe="≈",GCe="∼",KCe="  ",XCe=" ",QCe=" ",YCe="≈",ZCe="∼",JCe="Þ",e_e="þ",t_e="˜",r_e="∼",n_e="≃",i_e="≅",s_e="≈",o_e="⨱",a_e="⊠",u_e="×",l_e="⨰",c_e="∭",f_e="⤨",h_e="⌶",d_e="⫱",p_e="⊤",g_e="𝕋",v_e="𝕥",m_e="⫚",y_e="⤩",b_e="‴",w_e="™",D_e="™",A_e="▵",E_e="▿",x_e="◃",C_e="⊴",__e="≜",S_e="▹",F_e="⊵",$_e="◬",T_e="≜",k_e="⨺",L_e="⃛",B_e="⨹",O_e="⧍",P_e="⨻",N_e="⏢",I_e="𝒯",R_e="𝓉",M_e="Ц",z_e="ц",U_e="Ћ",H_e="ћ",q_e="Ŧ",j_e="ŧ",V_e="≬",W_e="↞",G_e="↠",K_e="Ú",X_e="ú",Q_e="↑",Y_e="↟",Z_e="⇑",J_e="⥉",eSe="Ў",tSe="ў",rSe="Ŭ",nSe="ŭ",iSe="Û",sSe="û",oSe="У",aSe="у",uSe="⇅",lSe="Ű",cSe="ű",fSe="⥮",hSe="⥾",dSe="𝔘",pSe="𝔲",gSe="Ù",vSe="ù",mSe="⥣",ySe="↿",bSe="↾",wSe="▀",DSe="⌜",ASe="⌜",ESe="⌏",xSe="◸",CSe="Ū",_Se="ū",SSe="¨",FSe="_",$Se="⏟",TSe="⎵",kSe="⏝",LSe="⋃",BSe="⊎",OSe="Ų",PSe="ų",NSe="𝕌",ISe="𝕦",RSe="⤒",MSe="↑",zSe="↑",USe="⇑",HSe="⇅",qSe="↕",jSe="↕",VSe="⇕",WSe="⥮",GSe="↿",KSe="↾",XSe="⊎",QSe="↖",YSe="↗",ZSe="υ",JSe="ϒ",eFe="ϒ",tFe="Υ",rFe="υ",nFe="↥",iFe="⊥",sFe="⇈",oFe="⌝",aFe="⌝",uFe="⌎",lFe="Ů",cFe="ů",fFe="◹",hFe="𝒰",dFe="𝓊",pFe="⋰",gFe="Ũ",vFe="ũ",mFe="▵",yFe="▴",bFe="⇈",wFe="Ü",DFe="ü",AFe="⦧",EFe="⦜",xFe="ϵ",CFe="ϰ",_Fe="∅",SFe="ϕ",FFe="ϖ",$Fe="∝",TFe="↕",kFe="⇕",LFe="ϱ",BFe="ς",OFe="⊊︀",PFe="⫋︀",NFe="⊋︀",IFe="⫌︀",RFe="ϑ",MFe="⊲",zFe="⊳",UFe="⫨",HFe="⫫",qFe="⫩",jFe="В",VFe="в",WFe="⊢",GFe="⊨",KFe="⊩",XFe="⊫",QFe="⫦",YFe="⊻",ZFe="∨",JFe="⋁",e2e="≚",t2e="⋮",r2e="|",n2e="‖",i2e="|",s2e="‖",o2e="∣",a2e="|",u2e="❘",l2e="≀",c2e=" ",f2e="𝔙",h2e="𝔳",d2e="⊲",p2e="⊂⃒",g2e="⊃⃒",v2e="𝕍",m2e="𝕧",y2e="∝",b2e="⊳",w2e="𝒱",D2e="𝓋",A2e="⫋︀",E2e="⊊︀",x2e="⫌︀",C2e="⊋︀",_2e="⊪",S2e="⦚",F2e="Ŵ",$2e="ŵ",T2e="⩟",k2e="∧",L2e="⋀",B2e="≙",O2e="℘",P2e="𝔚",N2e="𝔴",I2e="𝕎",R2e="𝕨",M2e="℘",z2e="≀",U2e="≀",H2e="𝒲",q2e="𝓌",j2e="⋂",V2e="◯",W2e="⋃",G2e="▽",K2e="𝔛",X2e="𝔵",Q2e="⟷",Y2e="⟺",Z2e="Ξ",J2e="ξ",e$e="⟵",t$e="⟸",r$e="⟼",n$e="⋻",i$e="⨀",s$e="𝕏",o$e="𝕩",a$e="⨁",u$e="⨂",l$e="⟶",c$e="⟹",f$e="𝒳",h$e="𝓍",d$e="⨆",p$e="⨄",g$e="△",v$e="⋁",m$e="⋀",y$e="Ý",b$e="ý",w$e="Я",D$e="я",A$e="Ŷ",E$e="ŷ",x$e="Ы",C$e="ы",_$e="¥",S$e="𝔜",F$e="𝔶",$$e="Ї",T$e="ї",k$e="𝕐",L$e="𝕪",B$e="𝒴",O$e="𝓎",P$e="Ю",N$e="ю",I$e="ÿ",R$e="Ÿ",M$e="Ź",z$e="ź",U$e="Ž",H$e="ž",q$e="З",j$e="з",V$e="Ż",W$e="ż",G$e="ℨ",K$e="​",X$e="Ζ",Q$e="ζ",Y$e="𝔷",Z$e="ℨ",J$e="Ж",eTe="ж",tTe="⇝",rTe="𝕫",nTe="ℤ",iTe="𝒵",sTe="𝓏",oTe="‍",aTe="‌",iS={Aacute:VG,aacute:WG,Abreve:GG,abreve:KG,ac:XG,acd:QG,acE:YG,Acirc:ZG,acirc:JG,acute:eK,Acy:tK,acy:rK,AElig:nK,aelig:iK,af:sK,Afr:oK,afr:aK,Agrave:uK,agrave:lK,alefsym:cK,aleph:fK,Alpha:hK,alpha:dK,Amacr:pK,amacr:gK,amalg:vK,amp:mK,AMP:yK,andand:bK,And:wK,and:DK,andd:AK,andslope:EK,andv:xK,ang:CK,ange:_K,angle:SK,angmsdaa:FK,angmsdab:$K,angmsdac:TK,angmsdad:kK,angmsdae:LK,angmsdaf:BK,angmsdag:OK,angmsdah:PK,angmsd:NK,angrt:IK,angrtvb:RK,angrtvbd:MK,angsph:zK,angst:UK,angzarr:HK,Aogon:qK,aogon:jK,Aopf:VK,aopf:WK,apacir:GK,ap:KK,apE:XK,ape:QK,apid:YK,apos:ZK,ApplyFunction:JK,approx:eX,approxeq:tX,Aring:rX,aring:nX,Ascr:iX,ascr:sX,Assign:oX,ast:aX,asymp:uX,asympeq:lX,Atilde:cX,atilde:fX,Auml:hX,auml:dX,awconint:pX,awint:gX,backcong:vX,backepsilon:mX,backprime:yX,backsim:bX,backsimeq:wX,Backslash:DX,Barv:AX,barvee:EX,barwed:xX,Barwed:CX,barwedge:_X,bbrk:SX,bbrktbrk:FX,bcong:$X,Bcy:TX,bcy:kX,bdquo:LX,becaus:BX,because:OX,Because:PX,bemptyv:NX,bepsi:IX,bernou:RX,Bernoullis:MX,Beta:zX,beta:UX,beth:HX,between:qX,Bfr:jX,bfr:VX,bigcap:WX,bigcirc:GX,bigcup:KX,bigodot:XX,bigoplus:QX,bigotimes:YX,bigsqcup:ZX,bigstar:JX,bigtriangledown:eQ,bigtriangleup:tQ,biguplus:rQ,bigvee:nQ,bigwedge:iQ,bkarow:sQ,blacklozenge:oQ,blacksquare:aQ,blacktriangle:uQ,blacktriangledown:lQ,blacktriangleleft:cQ,blacktriangleright:fQ,blank:hQ,blk12:dQ,blk14:pQ,blk34:gQ,block:vQ,bne:mQ,bnequiv:yQ,bNot:bQ,bnot:wQ,Bopf:DQ,bopf:AQ,bot:EQ,bottom:xQ,bowtie:CQ,boxbox:_Q,boxdl:SQ,boxdL:FQ,boxDl:$Q,boxDL:TQ,boxdr:kQ,boxdR:LQ,boxDr:BQ,boxDR:OQ,boxh:PQ,boxH:NQ,boxhd:IQ,boxHd:RQ,boxhD:MQ,boxHD:zQ,boxhu:UQ,boxHu:HQ,boxhU:qQ,boxHU:jQ,boxminus:VQ,boxplus:WQ,boxtimes:GQ,boxul:KQ,boxuL:XQ,boxUl:QQ,boxUL:YQ,boxur:ZQ,boxuR:JQ,boxUr:eY,boxUR:tY,boxv:rY,boxV:nY,boxvh:iY,boxvH:sY,boxVh:oY,boxVH:aY,boxvl:uY,boxvL:lY,boxVl:cY,boxVL:fY,boxvr:hY,boxvR:dY,boxVr:pY,boxVR:gY,bprime:vY,breve:mY,Breve:yY,brvbar:bY,bscr:wY,Bscr:DY,bsemi:AY,bsim:EY,bsime:xY,bsolb:CY,bsol:_Y,bsolhsub:SY,bull:FY,bullet:$Y,bump:TY,bumpE:kY,bumpe:LY,Bumpeq:BY,bumpeq:OY,Cacute:PY,cacute:NY,capand:IY,capbrcup:RY,capcap:MY,cap:zY,Cap:UY,capcup:HY,capdot:qY,CapitalDifferentialD:jY,caps:VY,caret:WY,caron:GY,Cayleys:KY,ccaps:XY,Ccaron:QY,ccaron:YY,Ccedil:ZY,ccedil:JY,Ccirc:eZ,ccirc:tZ,Cconint:rZ,ccups:nZ,ccupssm:iZ,Cdot:sZ,cdot:oZ,cedil:aZ,Cedilla:uZ,cemptyv:lZ,cent:cZ,centerdot:fZ,CenterDot:hZ,cfr:dZ,Cfr:pZ,CHcy:gZ,chcy:vZ,check:mZ,checkmark:yZ,Chi:bZ,chi:wZ,circ:DZ,circeq:AZ,circlearrowleft:EZ,circlearrowright:xZ,circledast:CZ,circledcirc:_Z,circleddash:SZ,CircleDot:FZ,circledR:$Z,circledS:TZ,CircleMinus:kZ,CirclePlus:LZ,CircleTimes:BZ,cir:OZ,cirE:PZ,cire:NZ,cirfnint:IZ,cirmid:RZ,cirscir:MZ,ClockwiseContourIntegral:zZ,CloseCurlyDoubleQuote:UZ,CloseCurlyQuote:HZ,clubs:qZ,clubsuit:jZ,colon:VZ,Colon:WZ,Colone:GZ,colone:KZ,coloneq:XZ,comma:QZ,commat:YZ,comp:ZZ,compfn:JZ,complement:eJ,complexes:tJ,cong:rJ,congdot:nJ,Congruent:iJ,conint:sJ,Conint:oJ,ContourIntegral:aJ,copf:uJ,Copf:lJ,coprod:cJ,Coproduct:fJ,copy:hJ,COPY:dJ,copysr:pJ,CounterClockwiseContourIntegral:gJ,crarr:vJ,cross:mJ,Cross:yJ,Cscr:bJ,cscr:wJ,csub:DJ,csube:AJ,csup:EJ,csupe:xJ,ctdot:CJ,cudarrl:_J,cudarrr:SJ,cuepr:FJ,cuesc:$J,cularr:TJ,cularrp:kJ,cupbrcap:LJ,cupcap:BJ,CupCap:OJ,cup:PJ,Cup:NJ,cupcup:IJ,cupdot:RJ,cupor:MJ,cups:zJ,curarr:UJ,curarrm:HJ,curlyeqprec:qJ,curlyeqsucc:jJ,curlyvee:VJ,curlywedge:WJ,curren:GJ,curvearrowleft:KJ,curvearrowright:XJ,cuvee:QJ,cuwed:YJ,cwconint:ZJ,cwint:JJ,cylcty:eee,dagger:tee,Dagger:ree,daleth:nee,darr:iee,Darr:see,dArr:oee,dash:aee,Dashv:uee,dashv:lee,dbkarow:cee,dblac:fee,Dcaron:hee,dcaron:dee,Dcy:pee,dcy:gee,ddagger:vee,ddarr:mee,DD:yee,dd:bee,DDotrahd:wee,ddotseq:Dee,deg:Aee,Del:Eee,Delta:xee,delta:Cee,demptyv:_ee,dfisht:See,Dfr:Fee,dfr:$ee,dHar:Tee,dharl:kee,dharr:Lee,DiacriticalAcute:Bee,DiacriticalDot:Oee,DiacriticalDoubleAcute:Pee,DiacriticalGrave:Nee,DiacriticalTilde:Iee,diam:Ree,diamond:Mee,Diamond:zee,diamondsuit:Uee,diams:Hee,die:qee,DifferentialD:jee,digamma:Vee,disin:Wee,div:Gee,divide:Kee,divideontimes:Xee,divonx:Qee,DJcy:Yee,djcy:Zee,dlcorn:Jee,dlcrop:ete,dollar:tte,Dopf:rte,dopf:nte,Dot:ite,dot:ste,DotDot:ote,doteq:ate,doteqdot:ute,DotEqual:lte,dotminus:cte,dotplus:fte,dotsquare:hte,doublebarwedge:dte,DoubleContourIntegral:pte,DoubleDot:gte,DoubleDownArrow:vte,DoubleLeftArrow:mte,DoubleLeftRightArrow:yte,DoubleLeftTee:bte,DoubleLongLeftArrow:wte,DoubleLongLeftRightArrow:Dte,DoubleLongRightArrow:Ate,DoubleRightArrow:Ete,DoubleRightTee:xte,DoubleUpArrow:Cte,DoubleUpDownArrow:_te,DoubleVerticalBar:Ste,DownArrowBar:Fte,downarrow:$te,DownArrow:Tte,Downarrow:kte,DownArrowUpArrow:Lte,DownBreve:Bte,downdownarrows:Ote,downharpoonleft:Pte,downharpoonright:Nte,DownLeftRightVector:Ite,DownLeftTeeVector:Rte,DownLeftVectorBar:Mte,DownLeftVector:zte,DownRightTeeVector:Ute,DownRightVectorBar:Hte,DownRightVector:qte,DownTeeArrow:jte,DownTee:Vte,drbkarow:Wte,drcorn:Gte,drcrop:Kte,Dscr:Xte,dscr:Qte,DScy:Yte,dscy:Zte,dsol:Jte,Dstrok:ere,dstrok:tre,dtdot:rre,dtri:nre,dtrif:ire,duarr:sre,duhar:ore,dwangle:are,DZcy:ure,dzcy:lre,dzigrarr:cre,Eacute:fre,eacute:hre,easter:dre,Ecaron:pre,ecaron:gre,Ecirc:vre,ecirc:mre,ecir:yre,ecolon:bre,Ecy:wre,ecy:Dre,eDDot:Are,Edot:Ere,edot:xre,eDot:Cre,ee:_re,efDot:Sre,Efr:Fre,efr:$re,eg:Tre,Egrave:kre,egrave:Lre,egs:Bre,egsdot:Ore,el:Pre,Element:Nre,elinters:Ire,ell:Rre,els:Mre,elsdot:zre,Emacr:Ure,emacr:Hre,empty:qre,emptyset:jre,EmptySmallSquare:Vre,emptyv:Wre,EmptyVerySmallSquare:Gre,emsp13:Kre,emsp14:Xre,emsp:Qre,ENG:Yre,eng:Zre,ensp:Jre,Eogon:ene,eogon:tne,Eopf:rne,eopf:nne,epar:ine,eparsl:sne,eplus:one,epsi:ane,Epsilon:une,epsilon:lne,epsiv:cne,eqcirc:fne,eqcolon:hne,eqsim:dne,eqslantgtr:pne,eqslantless:gne,Equal:vne,equals:mne,EqualTilde:yne,equest:bne,Equilibrium:wne,equiv:Dne,equivDD:Ane,eqvparsl:Ene,erarr:xne,erDot:Cne,escr:_ne,Escr:Sne,esdot:Fne,Esim:$ne,esim:Tne,Eta:kne,eta:Lne,ETH:Bne,eth:One,Euml:Pne,euml:Nne,euro:Ine,excl:Rne,exist:Mne,Exists:zne,expectation:Une,exponentiale:Hne,ExponentialE:qne,fallingdotseq:jne,Fcy:Vne,fcy:Wne,female:Gne,ffilig:Kne,fflig:Xne,ffllig:Qne,Ffr:Yne,ffr:Zne,filig:Jne,FilledSmallSquare:eie,FilledVerySmallSquare:tie,fjlig:rie,flat:nie,fllig:iie,fltns:sie,fnof:oie,Fopf:aie,fopf:uie,forall:lie,ForAll:cie,fork:fie,forkv:hie,Fouriertrf:die,fpartint:pie,frac12:gie,frac13:vie,frac14:mie,frac15:yie,frac16:bie,frac18:wie,frac23:Die,frac25:Aie,frac34:Eie,frac35:xie,frac38:Cie,frac45:_ie,frac56:Sie,frac58:Fie,frac78:$ie,frasl:Tie,frown:kie,fscr:Lie,Fscr:Bie,gacute:Oie,Gamma:Pie,gamma:Nie,Gammad:Iie,gammad:Rie,gap:Mie,Gbreve:zie,gbreve:Uie,Gcedil:Hie,Gcirc:qie,gcirc:jie,Gcy:Vie,gcy:Wie,Gdot:Gie,gdot:Kie,ge:Xie,gE:Qie,gEl:Yie,gel:Zie,geq:Jie,geqq:ese,geqslant:tse,gescc:rse,ges:nse,gesdot:ise,gesdoto:sse,gesdotol:ose,gesl:ase,gesles:use,Gfr:lse,gfr:cse,gg:fse,Gg:hse,ggg:dse,gimel:pse,GJcy:gse,gjcy:vse,gla:mse,gl:yse,glE:bse,glj:wse,gnap:Dse,gnapprox:Ase,gne:Ese,gnE:xse,gneq:Cse,gneqq:_se,gnsim:Sse,Gopf:Fse,gopf:$se,grave:Tse,GreaterEqual:kse,GreaterEqualLess:Lse,GreaterFullEqual:Bse,GreaterGreater:Ose,GreaterLess:Pse,GreaterSlantEqual:Nse,GreaterTilde:Ise,Gscr:Rse,gscr:Mse,gsim:zse,gsime:Use,gsiml:Hse,gtcc:qse,gtcir:jse,gt:Vse,GT:Wse,Gt:Gse,gtdot:Kse,gtlPar:Xse,gtquest:Qse,gtrapprox:Yse,gtrarr:Zse,gtrdot:Jse,gtreqless:eoe,gtreqqless:toe,gtrless:roe,gtrsim:noe,gvertneqq:ioe,gvnE:soe,Hacek:ooe,hairsp:aoe,half:uoe,hamilt:loe,HARDcy:coe,hardcy:foe,harrcir:hoe,harr:doe,hArr:poe,harrw:goe,Hat:voe,hbar:moe,Hcirc:yoe,hcirc:boe,hearts:woe,heartsuit:Doe,hellip:Aoe,hercon:Eoe,hfr:xoe,Hfr:Coe,HilbertSpace:_oe,hksearow:Soe,hkswarow:Foe,hoarr:$oe,homtht:Toe,hookleftarrow:koe,hookrightarrow:Loe,hopf:Boe,Hopf:Ooe,horbar:Poe,HorizontalLine:Noe,hscr:Ioe,Hscr:Roe,hslash:Moe,Hstrok:zoe,hstrok:Uoe,HumpDownHump:Hoe,HumpEqual:qoe,hybull:joe,hyphen:Voe,Iacute:Woe,iacute:Goe,ic:Koe,Icirc:Xoe,icirc:Qoe,Icy:Yoe,icy:Zoe,Idot:Joe,IEcy:eae,iecy:tae,iexcl:rae,iff:nae,ifr:iae,Ifr:sae,Igrave:oae,igrave:aae,ii:uae,iiiint:lae,iiint:cae,iinfin:fae,iiota:hae,IJlig:dae,ijlig:pae,Imacr:gae,imacr:vae,image:mae,ImaginaryI:yae,imagline:bae,imagpart:wae,imath:Dae,Im:Aae,imof:Eae,imped:xae,Implies:Cae,incare:_ae,in:"∈",infin:Sae,infintie:Fae,inodot:$ae,intcal:Tae,int:kae,Int:Lae,integers:Bae,Integral:Oae,intercal:Pae,Intersection:Nae,intlarhk:Iae,intprod:Rae,InvisibleComma:Mae,InvisibleTimes:zae,IOcy:Uae,iocy:Hae,Iogon:qae,iogon:jae,Iopf:Vae,iopf:Wae,Iota:Gae,iota:Kae,iprod:Xae,iquest:Qae,iscr:Yae,Iscr:Zae,isin:Jae,isindot:eue,isinE:tue,isins:rue,isinsv:nue,isinv:iue,it:sue,Itilde:oue,itilde:aue,Iukcy:uue,iukcy:lue,Iuml:cue,iuml:fue,Jcirc:hue,jcirc:due,Jcy:pue,jcy:gue,Jfr:vue,jfr:mue,jmath:yue,Jopf:bue,jopf:wue,Jscr:Due,jscr:Aue,Jsercy:Eue,jsercy:xue,Jukcy:Cue,jukcy:_ue,Kappa:Sue,kappa:Fue,kappav:$ue,Kcedil:Tue,kcedil:kue,Kcy:Lue,kcy:Bue,Kfr:Oue,kfr:Pue,kgreen:Nue,KHcy:Iue,khcy:Rue,KJcy:Mue,kjcy:zue,Kopf:Uue,kopf:Hue,Kscr:que,kscr:jue,lAarr:Vue,Lacute:Wue,lacute:Gue,laemptyv:Kue,lagran:Xue,Lambda:Que,lambda:Yue,lang:Zue,Lang:Jue,langd:ele,langle:tle,lap:rle,Laplacetrf:nle,laquo:ile,larrb:sle,larrbfs:ole,larr:ale,Larr:ule,lArr:lle,larrfs:cle,larrhk:fle,larrlp:hle,larrpl:dle,larrsim:ple,larrtl:gle,latail:vle,lAtail:mle,lat:yle,late:ble,lates:wle,lbarr:Dle,lBarr:Ale,lbbrk:Ele,lbrace:xle,lbrack:Cle,lbrke:_le,lbrksld:Sle,lbrkslu:Fle,Lcaron:$le,lcaron:Tle,Lcedil:kle,lcedil:Lle,lceil:Ble,lcub:Ole,Lcy:Ple,lcy:Nle,ldca:Ile,ldquo:Rle,ldquor:Mle,ldrdhar:zle,ldrushar:Ule,ldsh:Hle,le:qle,lE:jle,LeftAngleBracket:Vle,LeftArrowBar:Wle,leftarrow:Gle,LeftArrow:Kle,Leftarrow:Xle,LeftArrowRightArrow:Qle,leftarrowtail:Yle,LeftCeiling:Zle,LeftDoubleBracket:Jle,LeftDownTeeVector:ece,LeftDownVectorBar:tce,LeftDownVector:rce,LeftFloor:nce,leftharpoondown:ice,leftharpoonup:sce,leftleftarrows:oce,leftrightarrow:ace,LeftRightArrow:uce,Leftrightarrow:lce,leftrightarrows:cce,leftrightharpoons:fce,leftrightsquigarrow:hce,LeftRightVector:dce,LeftTeeArrow:pce,LeftTee:gce,LeftTeeVector:vce,leftthreetimes:mce,LeftTriangleBar:yce,LeftTriangle:bce,LeftTriangleEqual:wce,LeftUpDownVector:Dce,LeftUpTeeVector:Ace,LeftUpVectorBar:Ece,LeftUpVector:xce,LeftVectorBar:Cce,LeftVector:_ce,lEg:Sce,leg:Fce,leq:$ce,leqq:Tce,leqslant:kce,lescc:Lce,les:Bce,lesdot:Oce,lesdoto:Pce,lesdotor:Nce,lesg:Ice,lesges:Rce,lessapprox:Mce,lessdot:zce,lesseqgtr:Uce,lesseqqgtr:Hce,LessEqualGreater:qce,LessFullEqual:jce,LessGreater:Vce,lessgtr:Wce,LessLess:Gce,lesssim:Kce,LessSlantEqual:Xce,LessTilde:Qce,lfisht:Yce,lfloor:Zce,Lfr:Jce,lfr:efe,lg:tfe,lgE:rfe,lHar:nfe,lhard:ife,lharu:sfe,lharul:ofe,lhblk:afe,LJcy:ufe,ljcy:lfe,llarr:cfe,ll:ffe,Ll:hfe,llcorner:dfe,Lleftarrow:pfe,llhard:gfe,lltri:vfe,Lmidot:mfe,lmidot:yfe,lmoustache:bfe,lmoust:wfe,lnap:Dfe,lnapprox:Afe,lne:Efe,lnE:xfe,lneq:Cfe,lneqq:_fe,lnsim:Sfe,loang:Ffe,loarr:$fe,lobrk:Tfe,longleftarrow:kfe,LongLeftArrow:Lfe,Longleftarrow:Bfe,longleftrightarrow:Ofe,LongLeftRightArrow:Pfe,Longleftrightarrow:Nfe,longmapsto:Ife,longrightarrow:Rfe,LongRightArrow:Mfe,Longrightarrow:zfe,looparrowleft:Ufe,looparrowright:Hfe,lopar:qfe,Lopf:jfe,lopf:Vfe,loplus:Wfe,lotimes:Gfe,lowast:Kfe,lowbar:Xfe,LowerLeftArrow:Qfe,LowerRightArrow:Yfe,loz:Zfe,lozenge:Jfe,lozf:ehe,lpar:the,lparlt:rhe,lrarr:nhe,lrcorner:ihe,lrhar:she,lrhard:ohe,lrm:ahe,lrtri:uhe,lsaquo:lhe,lscr:che,Lscr:fhe,lsh:hhe,Lsh:dhe,lsim:phe,lsime:ghe,lsimg:vhe,lsqb:mhe,lsquo:yhe,lsquor:bhe,Lstrok:whe,lstrok:Dhe,ltcc:Ahe,ltcir:Ehe,lt:xhe,LT:Che,Lt:_he,ltdot:She,lthree:Fhe,ltimes:$he,ltlarr:The,ltquest:khe,ltri:Lhe,ltrie:Bhe,ltrif:Ohe,ltrPar:Phe,lurdshar:Nhe,luruhar:Ihe,lvertneqq:Rhe,lvnE:Mhe,macr:zhe,male:Uhe,malt:Hhe,maltese:qhe,Map:"⤅",map:jhe,mapsto:Vhe,mapstodown:Whe,mapstoleft:Ghe,mapstoup:Khe,marker:Xhe,mcomma:Qhe,Mcy:Yhe,mcy:Zhe,mdash:Jhe,mDDot:ede,measuredangle:tde,MediumSpace:rde,Mellintrf:nde,Mfr:ide,mfr:sde,mho:ode,micro:ade,midast:ude,midcir:lde,mid:cde,middot:fde,minusb:hde,minus:dde,minusd:pde,minusdu:gde,MinusPlus:vde,mlcp:mde,mldr:yde,mnplus:bde,models:wde,Mopf:Dde,mopf:Ade,mp:Ede,mscr:xde,Mscr:Cde,mstpos:_de,Mu:Sde,mu:Fde,multimap:$de,mumap:Tde,nabla:kde,Nacute:Lde,nacute:Bde,nang:Ode,nap:Pde,napE:Nde,napid:Ide,napos:Rde,napprox:Mde,natural:zde,naturals:Ude,natur:Hde,nbsp:qde,nbump:jde,nbumpe:Vde,ncap:Wde,Ncaron:Gde,ncaron:Kde,Ncedil:Xde,ncedil:Qde,ncong:Yde,ncongdot:Zde,ncup:Jde,Ncy:epe,ncy:tpe,ndash:rpe,nearhk:npe,nearr:ipe,neArr:spe,nearrow:ope,ne:ape,nedot:upe,NegativeMediumSpace:lpe,NegativeThickSpace:cpe,NegativeThinSpace:fpe,NegativeVeryThinSpace:hpe,nequiv:dpe,nesear:ppe,nesim:gpe,NestedGreaterGreater:vpe,NestedLessLess:mpe,NewLine:ype,nexist:bpe,nexists:wpe,Nfr:Dpe,nfr:Ape,ngE:Epe,nge:xpe,ngeq:Cpe,ngeqq:_pe,ngeqslant:Spe,nges:Fpe,nGg:$pe,ngsim:Tpe,nGt:kpe,ngt:Lpe,ngtr:Bpe,nGtv:Ope,nharr:Ppe,nhArr:Npe,nhpar:Ipe,ni:Rpe,nis:Mpe,nisd:zpe,niv:Upe,NJcy:Hpe,njcy:qpe,nlarr:jpe,nlArr:Vpe,nldr:Wpe,nlE:Gpe,nle:Kpe,nleftarrow:Xpe,nLeftarrow:Qpe,nleftrightarrow:Ype,nLeftrightarrow:Zpe,nleq:Jpe,nleqq:e0e,nleqslant:t0e,nles:r0e,nless:n0e,nLl:i0e,nlsim:s0e,nLt:o0e,nlt:a0e,nltri:u0e,nltrie:l0e,nLtv:c0e,nmid:f0e,NoBreak:h0e,NonBreakingSpace:d0e,nopf:p0e,Nopf:g0e,Not:v0e,not:m0e,NotCongruent:y0e,NotCupCap:b0e,NotDoubleVerticalBar:w0e,NotElement:D0e,NotEqual:A0e,NotEqualTilde:E0e,NotExists:x0e,NotGreater:C0e,NotGreaterEqual:_0e,NotGreaterFullEqual:S0e,NotGreaterGreater:F0e,NotGreaterLess:$0e,NotGreaterSlantEqual:T0e,NotGreaterTilde:k0e,NotHumpDownHump:L0e,NotHumpEqual:B0e,notin:O0e,notindot:P0e,notinE:N0e,notinva:I0e,notinvb:R0e,notinvc:M0e,NotLeftTriangleBar:z0e,NotLeftTriangle:U0e,NotLeftTriangleEqual:H0e,NotLess:q0e,NotLessEqual:j0e,NotLessGreater:V0e,NotLessLess:W0e,NotLessSlantEqual:G0e,NotLessTilde:K0e,NotNestedGreaterGreater:X0e,NotNestedLessLess:Q0e,notni:Y0e,notniva:Z0e,notnivb:J0e,notnivc:ege,NotPrecedes:tge,NotPrecedesEqual:rge,NotPrecedesSlantEqual:nge,NotReverseElement:ige,NotRightTriangleBar:sge,NotRightTriangle:oge,NotRightTriangleEqual:age,NotSquareSubset:uge,NotSquareSubsetEqual:lge,NotSquareSuperset:cge,NotSquareSupersetEqual:fge,NotSubset:hge,NotSubsetEqual:dge,NotSucceeds:pge,NotSucceedsEqual:gge,NotSucceedsSlantEqual:vge,NotSucceedsTilde:mge,NotSuperset:yge,NotSupersetEqual:bge,NotTilde:wge,NotTildeEqual:Dge,NotTildeFullEqual:Age,NotTildeTilde:Ege,NotVerticalBar:xge,nparallel:Cge,npar:_ge,nparsl:Sge,npart:Fge,npolint:$ge,npr:Tge,nprcue:kge,nprec:Lge,npreceq:Bge,npre:Oge,nrarrc:Pge,nrarr:Nge,nrArr:Ige,nrarrw:Rge,nrightarrow:Mge,nRightarrow:zge,nrtri:Uge,nrtrie:Hge,nsc:qge,nsccue:jge,nsce:Vge,Nscr:Wge,nscr:Gge,nshortmid:Kge,nshortparallel:Xge,nsim:Qge,nsime:Yge,nsimeq:Zge,nsmid:Jge,nspar:eve,nsqsube:tve,nsqsupe:rve,nsub:nve,nsubE:ive,nsube:sve,nsubset:ove,nsubseteq:ave,nsubseteqq:uve,nsucc:lve,nsucceq:cve,nsup:fve,nsupE:hve,nsupe:dve,nsupset:pve,nsupseteq:gve,nsupseteqq:vve,ntgl:mve,Ntilde:yve,ntilde:bve,ntlg:wve,ntriangleleft:Dve,ntrianglelefteq:Ave,ntriangleright:Eve,ntrianglerighteq:xve,Nu:Cve,nu:_ve,num:Sve,numero:Fve,numsp:$ve,nvap:Tve,nvdash:kve,nvDash:Lve,nVdash:Bve,nVDash:Ove,nvge:Pve,nvgt:Nve,nvHarr:Ive,nvinfin:Rve,nvlArr:Mve,nvle:zve,nvlt:Uve,nvltrie:Hve,nvrArr:qve,nvrtrie:jve,nvsim:Vve,nwarhk:Wve,nwarr:Gve,nwArr:Kve,nwarrow:Xve,nwnear:Qve,Oacute:Yve,oacute:Zve,oast:Jve,Ocirc:eme,ocirc:tme,ocir:rme,Ocy:nme,ocy:ime,odash:sme,Odblac:ome,odblac:ame,odiv:ume,odot:lme,odsold:cme,OElig:fme,oelig:hme,ofcir:dme,Ofr:pme,ofr:gme,ogon:vme,Ograve:mme,ograve:yme,ogt:bme,ohbar:wme,ohm:Dme,oint:Ame,olarr:Eme,olcir:xme,olcross:Cme,oline:_me,olt:Sme,Omacr:Fme,omacr:$me,Omega:Tme,omega:kme,Omicron:Lme,omicron:Bme,omid:Ome,ominus:Pme,Oopf:Nme,oopf:Ime,opar:Rme,OpenCurlyDoubleQuote:Mme,OpenCurlyQuote:zme,operp:Ume,oplus:Hme,orarr:qme,Or:jme,or:Vme,ord:Wme,order:Gme,orderof:Kme,ordf:Xme,ordm:Qme,origof:Yme,oror:Zme,orslope:Jme,orv:eye,oS:tye,Oscr:rye,oscr:nye,Oslash:iye,oslash:sye,osol:oye,Otilde:aye,otilde:uye,otimesas:lye,Otimes:cye,otimes:fye,Ouml:hye,ouml:dye,ovbar:pye,OverBar:gye,OverBrace:vye,OverBracket:mye,OverParenthesis:yye,para:bye,parallel:wye,par:Dye,parsim:Aye,parsl:Eye,part:xye,PartialD:Cye,Pcy:_ye,pcy:Sye,percnt:Fye,period:$ye,permil:Tye,perp:kye,pertenk:Lye,Pfr:Bye,pfr:Oye,Phi:Pye,phi:Nye,phiv:Iye,phmmat:Rye,phone:Mye,Pi:zye,pi:Uye,pitchfork:Hye,piv:qye,planck:jye,planckh:Vye,plankv:Wye,plusacir:Gye,plusb:Kye,pluscir:Xye,plus:Qye,plusdo:Yye,plusdu:Zye,pluse:Jye,PlusMinus:e1e,plusmn:t1e,plussim:r1e,plustwo:n1e,pm:i1e,Poincareplane:s1e,pointint:o1e,popf:a1e,Popf:u1e,pound:l1e,prap:c1e,Pr:f1e,pr:h1e,prcue:d1e,precapprox:p1e,prec:g1e,preccurlyeq:v1e,Precedes:m1e,PrecedesEqual:y1e,PrecedesSlantEqual:b1e,PrecedesTilde:w1e,preceq:D1e,precnapprox:A1e,precneqq:E1e,precnsim:x1e,pre:C1e,prE:_1e,precsim:S1e,prime:F1e,Prime:$1e,primes:T1e,prnap:k1e,prnE:L1e,prnsim:B1e,prod:O1e,Product:P1e,profalar:N1e,profline:I1e,profsurf:R1e,prop:M1e,Proportional:z1e,Proportion:U1e,propto:H1e,prsim:q1e,prurel:j1e,Pscr:V1e,pscr:W1e,Psi:G1e,psi:K1e,puncsp:X1e,Qfr:Q1e,qfr:Y1e,qint:Z1e,qopf:J1e,Qopf:ebe,qprime:tbe,Qscr:rbe,qscr:nbe,quaternions:ibe,quatint:sbe,quest:obe,questeq:abe,quot:ube,QUOT:lbe,rAarr:cbe,race:fbe,Racute:hbe,racute:dbe,radic:pbe,raemptyv:gbe,rang:vbe,Rang:mbe,rangd:ybe,range:bbe,rangle:wbe,raquo:Dbe,rarrap:Abe,rarrb:Ebe,rarrbfs:xbe,rarrc:Cbe,rarr:_be,Rarr:Sbe,rArr:Fbe,rarrfs:$be,rarrhk:Tbe,rarrlp:kbe,rarrpl:Lbe,rarrsim:Bbe,Rarrtl:Obe,rarrtl:Pbe,rarrw:Nbe,ratail:Ibe,rAtail:Rbe,ratio:Mbe,rationals:zbe,rbarr:Ube,rBarr:Hbe,RBarr:qbe,rbbrk:jbe,rbrace:Vbe,rbrack:Wbe,rbrke:Gbe,rbrksld:Kbe,rbrkslu:Xbe,Rcaron:Qbe,rcaron:Ybe,Rcedil:Zbe,rcedil:Jbe,rceil:ewe,rcub:twe,Rcy:rwe,rcy:nwe,rdca:iwe,rdldhar:swe,rdquo:owe,rdquor:awe,rdsh:uwe,real:lwe,realine:cwe,realpart:fwe,reals:hwe,Re:dwe,rect:pwe,reg:gwe,REG:vwe,ReverseElement:mwe,ReverseEquilibrium:ywe,ReverseUpEquilibrium:bwe,rfisht:wwe,rfloor:Dwe,rfr:Awe,Rfr:Ewe,rHar:xwe,rhard:Cwe,rharu:_we,rharul:Swe,Rho:Fwe,rho:$we,rhov:Twe,RightAngleBracket:kwe,RightArrowBar:Lwe,rightarrow:Bwe,RightArrow:Owe,Rightarrow:Pwe,RightArrowLeftArrow:Nwe,rightarrowtail:Iwe,RightCeiling:Rwe,RightDoubleBracket:Mwe,RightDownTeeVector:zwe,RightDownVectorBar:Uwe,RightDownVector:Hwe,RightFloor:qwe,rightharpoondown:jwe,rightharpoonup:Vwe,rightleftarrows:Wwe,rightleftharpoons:Gwe,rightrightarrows:Kwe,rightsquigarrow:Xwe,RightTeeArrow:Qwe,RightTee:Ywe,RightTeeVector:Zwe,rightthreetimes:Jwe,RightTriangleBar:eDe,RightTriangle:tDe,RightTriangleEqual:rDe,RightUpDownVector:nDe,RightUpTeeVector:iDe,RightUpVectorBar:sDe,RightUpVector:oDe,RightVectorBar:aDe,RightVector:uDe,ring:lDe,risingdotseq:cDe,rlarr:fDe,rlhar:hDe,rlm:dDe,rmoustache:pDe,rmoust:gDe,rnmid:vDe,roang:mDe,roarr:yDe,robrk:bDe,ropar:wDe,ropf:DDe,Ropf:ADe,roplus:EDe,rotimes:xDe,RoundImplies:CDe,rpar:_De,rpargt:SDe,rppolint:FDe,rrarr:$De,Rrightarrow:TDe,rsaquo:kDe,rscr:LDe,Rscr:BDe,rsh:ODe,Rsh:PDe,rsqb:NDe,rsquo:IDe,rsquor:RDe,rthree:MDe,rtimes:zDe,rtri:UDe,rtrie:HDe,rtrif:qDe,rtriltri:jDe,RuleDelayed:VDe,ruluhar:WDe,rx:GDe,Sacute:KDe,sacute:XDe,sbquo:QDe,scap:YDe,Scaron:ZDe,scaron:JDe,Sc:eAe,sc:tAe,sccue:rAe,sce:nAe,scE:iAe,Scedil:sAe,scedil:oAe,Scirc:aAe,scirc:uAe,scnap:lAe,scnE:cAe,scnsim:fAe,scpolint:hAe,scsim:dAe,Scy:pAe,scy:gAe,sdotb:vAe,sdot:mAe,sdote:yAe,searhk:bAe,searr:wAe,seArr:DAe,searrow:AAe,sect:EAe,semi:xAe,seswar:CAe,setminus:_Ae,setmn:SAe,sext:FAe,Sfr:$Ae,sfr:TAe,sfrown:kAe,sharp:LAe,SHCHcy:BAe,shchcy:OAe,SHcy:PAe,shcy:NAe,ShortDownArrow:IAe,ShortLeftArrow:RAe,shortmid:MAe,shortparallel:zAe,ShortRightArrow:UAe,ShortUpArrow:HAe,shy:qAe,Sigma:jAe,sigma:VAe,sigmaf:WAe,sigmav:GAe,sim:KAe,simdot:XAe,sime:QAe,simeq:YAe,simg:ZAe,simgE:JAe,siml:eEe,simlE:tEe,simne:rEe,simplus:nEe,simrarr:iEe,slarr:sEe,SmallCircle:oEe,smallsetminus:aEe,smashp:uEe,smeparsl:lEe,smid:cEe,smile:fEe,smt:hEe,smte:dEe,smtes:pEe,SOFTcy:gEe,softcy:vEe,solbar:mEe,solb:yEe,sol:bEe,Sopf:wEe,sopf:DEe,spades:AEe,spadesuit:EEe,spar:xEe,sqcap:CEe,sqcaps:_Ee,sqcup:SEe,sqcups:FEe,Sqrt:$Ee,sqsub:TEe,sqsube:kEe,sqsubset:LEe,sqsubseteq:BEe,sqsup:OEe,sqsupe:PEe,sqsupset:NEe,sqsupseteq:IEe,square:REe,Square:MEe,SquareIntersection:zEe,SquareSubset:UEe,SquareSubsetEqual:HEe,SquareSuperset:qEe,SquareSupersetEqual:jEe,SquareUnion:VEe,squarf:WEe,squ:GEe,squf:KEe,srarr:XEe,Sscr:QEe,sscr:YEe,ssetmn:ZEe,ssmile:JEe,sstarf:exe,Star:txe,star:rxe,starf:nxe,straightepsilon:ixe,straightphi:sxe,strns:oxe,sub:axe,Sub:uxe,subdot:lxe,subE:cxe,sube:fxe,subedot:hxe,submult:dxe,subnE:pxe,subne:gxe,subplus:vxe,subrarr:mxe,subset:yxe,Subset:bxe,subseteq:wxe,subseteqq:Dxe,SubsetEqual:Axe,subsetneq:Exe,subsetneqq:xxe,subsim:Cxe,subsub:_xe,subsup:Sxe,succapprox:Fxe,succ:$xe,succcurlyeq:Txe,Succeeds:kxe,SucceedsEqual:Lxe,SucceedsSlantEqual:Bxe,SucceedsTilde:Oxe,succeq:Pxe,succnapprox:Nxe,succneqq:Ixe,succnsim:Rxe,succsim:Mxe,SuchThat:zxe,sum:Uxe,Sum:Hxe,sung:qxe,sup1:jxe,sup2:Vxe,sup3:Wxe,sup:Gxe,Sup:Kxe,supdot:Xxe,supdsub:Qxe,supE:Yxe,supe:Zxe,supedot:Jxe,Superset:eCe,SupersetEqual:tCe,suphsol:rCe,suphsub:nCe,suplarr:iCe,supmult:sCe,supnE:oCe,supne:aCe,supplus:uCe,supset:lCe,Supset:cCe,supseteq:fCe,supseteqq:hCe,supsetneq:dCe,supsetneqq:pCe,supsim:gCe,supsub:vCe,supsup:mCe,swarhk:yCe,swarr:bCe,swArr:wCe,swarrow:DCe,swnwar:ACe,szlig:ECe,Tab:xCe,target:CCe,Tau:_Ce,tau:SCe,tbrk:FCe,Tcaron:$Ce,tcaron:TCe,Tcedil:kCe,tcedil:LCe,Tcy:BCe,tcy:OCe,tdot:PCe,telrec:NCe,Tfr:ICe,tfr:RCe,there4:MCe,therefore:zCe,Therefore:UCe,Theta:HCe,theta:qCe,thetasym:jCe,thetav:VCe,thickapprox:WCe,thicksim:GCe,ThickSpace:KCe,ThinSpace:XCe,thinsp:QCe,thkap:YCe,thksim:ZCe,THORN:JCe,thorn:e_e,tilde:t_e,Tilde:r_e,TildeEqual:n_e,TildeFullEqual:i_e,TildeTilde:s_e,timesbar:o_e,timesb:a_e,times:u_e,timesd:l_e,tint:c_e,toea:f_e,topbot:h_e,topcir:d_e,top:p_e,Topf:g_e,topf:v_e,topfork:m_e,tosa:y_e,tprime:b_e,trade:w_e,TRADE:D_e,triangle:A_e,triangledown:E_e,triangleleft:x_e,trianglelefteq:C_e,triangleq:__e,triangleright:S_e,trianglerighteq:F_e,tridot:$_e,trie:T_e,triminus:k_e,TripleDot:L_e,triplus:B_e,trisb:O_e,tritime:P_e,trpezium:N_e,Tscr:I_e,tscr:R_e,TScy:M_e,tscy:z_e,TSHcy:U_e,tshcy:H_e,Tstrok:q_e,tstrok:j_e,twixt:V_e,twoheadleftarrow:W_e,twoheadrightarrow:G_e,Uacute:K_e,uacute:X_e,uarr:Q_e,Uarr:Y_e,uArr:Z_e,Uarrocir:J_e,Ubrcy:eSe,ubrcy:tSe,Ubreve:rSe,ubreve:nSe,Ucirc:iSe,ucirc:sSe,Ucy:oSe,ucy:aSe,udarr:uSe,Udblac:lSe,udblac:cSe,udhar:fSe,ufisht:hSe,Ufr:dSe,ufr:pSe,Ugrave:gSe,ugrave:vSe,uHar:mSe,uharl:ySe,uharr:bSe,uhblk:wSe,ulcorn:DSe,ulcorner:ASe,ulcrop:ESe,ultri:xSe,Umacr:CSe,umacr:_Se,uml:SSe,UnderBar:FSe,UnderBrace:$Se,UnderBracket:TSe,UnderParenthesis:kSe,Union:LSe,UnionPlus:BSe,Uogon:OSe,uogon:PSe,Uopf:NSe,uopf:ISe,UpArrowBar:RSe,uparrow:MSe,UpArrow:zSe,Uparrow:USe,UpArrowDownArrow:HSe,updownarrow:qSe,UpDownArrow:jSe,Updownarrow:VSe,UpEquilibrium:WSe,upharpoonleft:GSe,upharpoonright:KSe,uplus:XSe,UpperLeftArrow:QSe,UpperRightArrow:YSe,upsi:ZSe,Upsi:JSe,upsih:eFe,Upsilon:tFe,upsilon:rFe,UpTeeArrow:nFe,UpTee:iFe,upuparrows:sFe,urcorn:oFe,urcorner:aFe,urcrop:uFe,Uring:lFe,uring:cFe,urtri:fFe,Uscr:hFe,uscr:dFe,utdot:pFe,Utilde:gFe,utilde:vFe,utri:mFe,utrif:yFe,uuarr:bFe,Uuml:wFe,uuml:DFe,uwangle:AFe,vangrt:EFe,varepsilon:xFe,varkappa:CFe,varnothing:_Fe,varphi:SFe,varpi:FFe,varpropto:$Fe,varr:TFe,vArr:kFe,varrho:LFe,varsigma:BFe,varsubsetneq:OFe,varsubsetneqq:PFe,varsupsetneq:NFe,varsupsetneqq:IFe,vartheta:RFe,vartriangleleft:MFe,vartriangleright:zFe,vBar:UFe,Vbar:HFe,vBarv:qFe,Vcy:jFe,vcy:VFe,vdash:WFe,vDash:GFe,Vdash:KFe,VDash:XFe,Vdashl:QFe,veebar:YFe,vee:ZFe,Vee:JFe,veeeq:e2e,vellip:t2e,verbar:r2e,Verbar:n2e,vert:i2e,Vert:s2e,VerticalBar:o2e,VerticalLine:a2e,VerticalSeparator:u2e,VerticalTilde:l2e,VeryThinSpace:c2e,Vfr:f2e,vfr:h2e,vltri:d2e,vnsub:p2e,vnsup:g2e,Vopf:v2e,vopf:m2e,vprop:y2e,vrtri:b2e,Vscr:w2e,vscr:D2e,vsubnE:A2e,vsubne:E2e,vsupnE:x2e,vsupne:C2e,Vvdash:_2e,vzigzag:S2e,Wcirc:F2e,wcirc:$2e,wedbar:T2e,wedge:k2e,Wedge:L2e,wedgeq:B2e,weierp:O2e,Wfr:P2e,wfr:N2e,Wopf:I2e,wopf:R2e,wp:M2e,wr:z2e,wreath:U2e,Wscr:H2e,wscr:q2e,xcap:j2e,xcirc:V2e,xcup:W2e,xdtri:G2e,Xfr:K2e,xfr:X2e,xharr:Q2e,xhArr:Y2e,Xi:Z2e,xi:J2e,xlarr:e$e,xlArr:t$e,xmap:r$e,xnis:n$e,xodot:i$e,Xopf:s$e,xopf:o$e,xoplus:a$e,xotime:u$e,xrarr:l$e,xrArr:c$e,Xscr:f$e,xscr:h$e,xsqcup:d$e,xuplus:p$e,xutri:g$e,xvee:v$e,xwedge:m$e,Yacute:y$e,yacute:b$e,YAcy:w$e,yacy:D$e,Ycirc:A$e,ycirc:E$e,Ycy:x$e,ycy:C$e,yen:_$e,Yfr:S$e,yfr:F$e,YIcy:$$e,yicy:T$e,Yopf:k$e,yopf:L$e,Yscr:B$e,yscr:O$e,YUcy:P$e,yucy:N$e,yuml:I$e,Yuml:R$e,Zacute:M$e,zacute:z$e,Zcaron:U$e,zcaron:H$e,Zcy:q$e,zcy:j$e,Zdot:V$e,zdot:W$e,zeetrf:G$e,ZeroWidthSpace:K$e,Zeta:X$e,zeta:Q$e,zfr:Y$e,Zfr:Z$e,ZHcy:J$e,zhcy:eTe,zigrarr:tTe,zopf:rTe,Zopf:nTe,Zscr:iTe,zscr:sTe,zwj:oTe,zwnj:aTe},uTe="Á",lTe="á",cTe="Â",fTe="â",hTe="´",dTe="Æ",pTe="æ",gTe="À",vTe="à",mTe="&",yTe="&",bTe="Å",wTe="å",DTe="Ã",ATe="ã",ETe="Ä",xTe="ä",CTe="¦",_Te="Ç",STe="ç",FTe="¸",$Te="¢",TTe="©",kTe="©",LTe="¤",BTe="°",OTe="÷",PTe="É",NTe="é",ITe="Ê",RTe="ê",MTe="È",zTe="è",UTe="Ð",HTe="ð",qTe="Ë",jTe="ë",VTe="½",WTe="¼",GTe="¾",KTe=">",XTe=">",QTe="Í",YTe="í",ZTe="Î",JTe="î",eke="¡",tke="Ì",rke="ì",nke="¿",ike="Ï",ske="ï",oke="«",ake="<",uke="<",lke="¯",cke="µ",fke="·",hke=" ",dke="¬",pke="Ñ",gke="ñ",vke="Ó",mke="ó",yke="Ô",bke="ô",wke="Ò",Dke="ò",Ake="ª",Eke="º",xke="Ø",Cke="ø",_ke="Õ",Ske="õ",Fke="Ö",$ke="ö",Tke="¶",kke="±",Lke="£",Bke='"',Oke='"',Pke="»",Nke="®",Ike="®",Rke="§",Mke="­",zke="¹",Uke="²",Hke="³",qke="ß",jke="Þ",Vke="þ",Wke="×",Gke="Ú",Kke="ú",Xke="Û",Qke="û",Yke="Ù",Zke="ù",Jke="¨",eLe="Ü",tLe="ü",rLe="Ý",nLe="ý",iLe="¥",sLe="ÿ",oLe={Aacute:uTe,aacute:lTe,Acirc:cTe,acirc:fTe,acute:hTe,AElig:dTe,aelig:pTe,Agrave:gTe,agrave:vTe,amp:mTe,AMP:yTe,Aring:bTe,aring:wTe,Atilde:DTe,atilde:ATe,Auml:ETe,auml:xTe,brvbar:CTe,Ccedil:_Te,ccedil:STe,cedil:FTe,cent:$Te,copy:TTe,COPY:kTe,curren:LTe,deg:BTe,divide:OTe,Eacute:PTe,eacute:NTe,Ecirc:ITe,ecirc:RTe,Egrave:MTe,egrave:zTe,ETH:UTe,eth:HTe,Euml:qTe,euml:jTe,frac12:VTe,frac14:WTe,frac34:GTe,gt:KTe,GT:XTe,Iacute:QTe,iacute:YTe,Icirc:ZTe,icirc:JTe,iexcl:eke,Igrave:tke,igrave:rke,iquest:nke,Iuml:ike,iuml:ske,laquo:oke,lt:ake,LT:uke,macr:lke,micro:cke,middot:fke,nbsp:hke,not:dke,Ntilde:pke,ntilde:gke,Oacute:vke,oacute:mke,Ocirc:yke,ocirc:bke,Ograve:wke,ograve:Dke,ordf:Ake,ordm:Eke,Oslash:xke,oslash:Cke,Otilde:_ke,otilde:Ske,Ouml:Fke,ouml:$ke,para:Tke,plusmn:kke,pound:Lke,quot:Bke,QUOT:Oke,raquo:Pke,reg:Nke,REG:Ike,sect:Rke,shy:Mke,sup1:zke,sup2:Uke,sup3:Hke,szlig:qke,THORN:jke,thorn:Vke,times:Wke,Uacute:Gke,uacute:Kke,Ucirc:Xke,ucirc:Qke,Ugrave:Yke,ugrave:Zke,uml:Jke,Uuml:eLe,uuml:tLe,Yacute:rLe,yacute:nLe,yen:iLe,yuml:sLe},aLe="&",uLe="'",lLe=">",cLe="<",fLe='"',sS={amp:aLe,apos:uLe,gt:lLe,lt:cLe,quot:fLe};var Zv={};const hLe={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 dLe=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zv,"__esModule",{value:!0});var tA=dLe(hLe),pLe=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function gLe(e){return e>=55296&&e<=57343||e>1114111?"�":(e in tA.default&&(e=tA.default[e]),pLe(e))}Zv.default=gLe;var jh=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.decodeHTML=Ei.decodeHTMLStrict=Ei.decodeXML=void 0;var C0=jh(iS),vLe=jh(oLe),mLe=jh(sS),rA=jh(Zv),yLe=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Ei.decodeXML=oS(mLe.default);Ei.decodeHTMLStrict=oS(C0.default);function oS(e){var t=aS(e);return function(r){return String(r).replace(yLe,t)}}var nA=function(e,t){return e<t?1:-1};Ei.decodeHTML=function(){for(var e=Object.keys(vLe.default).sort(nA),t=Object.keys(C0.default).sort(nA),r=0,i=0;r<t.length;r++)e[i]===t[r]?(t[r]+=";?",i++):t[r]+=";";var o=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=aS(C0.default);function c(h){return h.substr(-1)!==";"&&(h+=";"),a(h)}return function(h){return String(h).replace(o,c)}}();function aS(e){return function(r){if(r.charAt(1)==="#"){var i=r.charAt(2);return i==="X"||i==="x"?rA.default(parseInt(r.substr(3),16)):rA.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Qr={},uS=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.escapeUTF8=Qr.escape=Qr.encodeNonAsciiHTML=Qr.encodeHTML=Qr.encodeXML=void 0;var bLe=uS(sS),lS=fS(bLe.default),cS=hS(lS);Qr.encodeXML=gS(lS);var wLe=uS(iS),Jv=fS(wLe.default),DLe=hS(Jv);Qr.encodeHTML=ELe(Jv,DLe);Qr.encodeNonAsciiHTML=gS(Jv);function fS(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function hS(e){for(var t=[],r=[],i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];a.length===1?t.push("\\"+a):r.push(a)}t.sort();for(var c=0;c<t.length-1;c++){for(var h=c;h<t.length-1&&t[h].charCodeAt(1)+1===t[h+1].charCodeAt(1);)h+=1;var d=1+h-c;d<3||t.splice(c,d,t[c]+"-"+t[h])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var dS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,ALe=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Vh(e){return"&#x"+(e.length>1?ALe(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function ELe(e,t){return function(r){return r.replace(t,function(i){return e[i]}).replace(dS,Vh)}}var pS=new RegExp(cS.source+"|"+dS.source,"g");function xLe(e){return e.replace(pS,Vh)}Qr.escape=xLe;function CLe(e){return e.replace(cS,Vh)}Qr.escapeUTF8=CLe;function gS(e){return function(t){return t.replace(pS,function(r){return e[r]||Vh(r)})}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Ei,r=Qr;function i(d,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(d)}e.decode=i;function o(d,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(d)}e.decodeStrict=o;function a(d,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(d)}e.encode=a;var c=Qr;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var h=Ei;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(nS);function _Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iA(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function SLe(e,t,r){return t&&iA(e.prototype,t),r&&iA(e,r),e}function vS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=FLe(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,c=!1,h;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return a=p.done,p},e:function(p){c=!0,h=p},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(c)throw h}}}}function FLe(e,t){if(e){if(typeof e=="string")return sA(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 sA(e,t)}}function sA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var $Le=nS,oA={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:TLe()};function TLe(){var e={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return Hc(0,5).forEach(function(t){Hc(0,5).forEach(function(r){Hc(0,5).forEach(function(i){return kLe(t,r,i,e)})})}),Hc(0,23).forEach(function(t){var r=t+232,i=mS(t*10+8);e[r]="#"+i+i+i}),e}function kLe(e,t,r,i){var o=16+e*36+t*6+r,a=e>0?e*40+55:0,c=t>0?t*40+55:0,h=r>0?r*40+55:0;i[o]=LLe([a,c,h])}function mS(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function LLe(e){var t=[],r=vS(e),i;try{for(r.s();!(i=r.n()).done;){var o=i.value;t.push(mS(o))}}catch(a){r.e(a)}finally{r.f()}return"#"+t.join("")}function aA(e,t,r,i){var o;return t==="text"?o=NLe(r,i):t==="display"?o=OLe(e,r,i):t==="xterm256Foreground"?o=uf(e,i.colors[r]):t==="xterm256Background"?o=lf(e,i.colors[r]):t==="rgb"&&(o=BLe(e,r)),o}function BLe(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),i=t.substring(5).split(";"),o=i.map(function(a){return("0"+Number(a).toString(16)).substr(-2)}).join("");return af(e,(r===38?"color:#":"background-color:#")+o)}function OLe(e,t,r){t=parseInt(t,10);var i={"-1":function(){return"<br/>"},0:function(){return e.length&&yS(e)},1:function(){return ss(e,"b")},3:function(){return ss(e,"i")},4:function(){return ss(e,"u")},8:function(){return af(e,"display:none")},9:function(){return ss(e,"strike")},22:function(){return af(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return lA(e,"i")},24:function(){return lA(e,"u")},39:function(){return uf(e,r.fg)},49:function(){return lf(e,r.bg)},53:function(){return af(e,"text-decoration:overline")}},o;return i[t]?o=i[t]():4<t&&t<7?o=ss(e,"blink"):29<t&&t<38?o=uf(e,r.colors[t-30]):39<t&&t<48?o=lf(e,r.colors[t-40]):89<t&&t<98?o=uf(e,r.colors[8+(t-90)]):99<t&&t<108&&(o=lf(e,r.colors[8+(t-100)])),o}function yS(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function Hc(e,t){for(var r=[],i=e;i<=t;i++)r.push(i);return r}function PLe(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function uA(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function NLe(e,t){return t.escapeXML?$Le.encodeXML(e):e}function ss(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function af(e,t){return ss(e,"span",t)}function uf(e,t){return ss(e,"span","color:"+t)}function lf(e,t){return ss(e,"span","background-color:"+t)}function lA(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function ILe(e,t,r){var i=!1,o=3;function a(){return""}function c(T,R){return r("xterm256Foreground",R),""}function h(T,R){return r("xterm256Background",R),""}function d(T){return t.newline?r("display",-1):r("text",T),""}function p(T,R){i=!0,R.trim().length===0&&(R="0"),R=R.trimRight(";").split(";");var M=vS(R),j;try{for(M.s();!(j=M.n()).done;){var te=j.value;r("display",te)}}catch(ie){M.e(ie)}finally{M.f()}return""}function g(T){return r("text",T),""}function y(T){return r("rgb",T),""}var m=[{pattern:/^\x08+/,sub:a},{pattern:/^\x1b\[[012]?K/,sub:a},{pattern:/^\x1b\[\(B/,sub:a},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:c},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:d},{pattern:/^\r+\n/,sub:d},{pattern:/^\r/,sub:d},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:a},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:a},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:a},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:g}];function w(T,R){R>o&&i||(i=!1,e=e.replace(T.pattern,T.sub))}var $=[],B=e,x=B.length;e:for(;x>0;){for(var C=0,S=0,N=m.length;S<N;C=++S){var L=m[C];if(w(L,C),e.length!==x){x=e.length;continue e}}if(e.length===x)break;$.push(0),x=e.length}return $}function RLe(e,t,r){return t!=="text"&&(e=e.filter(PLe(uA(r))),e.push({token:t,data:r,category:uA(r)})),e}var MLe=function(){function e(t){_Le(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},oA.colors,t.colors)),this.options=Object.assign({},oA,t),this.stack=[],this.stickyStack=[]}return SLe(e,[{key:"toHtml",value:function(r){var i=this;r=typeof r=="string"?[r]:r;var o=this.stack,a=this.options,c=[];return this.stickyStack.forEach(function(h){var d=aA(o,h.token,h.data,a);d&&c.push(d)}),ILe(r.join(""),a,function(h,d){var p=aA(o,h,d,a);p&&c.push(p),a.stream&&(i.stickyStack=RLe(i.stickyStack,h,d))}),o.length&&c.push(yS(o)),c.join("")}}]),e}(),zLe=MLe;function ULe(e,t){return t&&e.endsWith(t)}async function bS(e,t,r){const i=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${i}`)}function wS(e){return new zLe({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}const HLe={class:"scrolls scrolls-rounded task-error"},qLe=["onClickPassive"],jLe={key:0},VLe=it({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(a){return a.startsWith(t.root)?a.slice(t.root.length):a}const i=Ae(()=>{var a,c;return((a=t.error)==null?void 0:a.expected)&&((c=t.error)==null?void 0:c.actual)});function o(){return lW(t.error.actual,t.error.expected)}return(a,c)=>{const h=ro("tooltip");return de(),$e("div",HLe,[pe("pre",null,[pe("b",null,Je(a.error.name||a.error.nameStr),1),_r(": "+Je(a.error.message),1)]),(de(!0),$e(dt,null,An(a.error.stacks,(d,p)=>(de(),$e("div",{key:p,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[pe("pre",null," - "+Je(r(d.file))+":"+Je(d.line)+":"+Je(d.column),1),Y(ULe)(d.file,a.filename)?mr((de(),$e("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:g=>Y(bS)(d.file,d.line,d.column)},null,40,qLe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):nt("",!0)]))),128)),Y(i)?(de(),$e("pre",jLe," "+Je(`
16
+ ${o()}`)+`
17
+ `,1)):nt("",!0)])}}});const WLe=no(VLe,[["__scopeId","data-v-b52f98f6"]]),Wh=hG(),GLe=AW(Wh),KLe={"h-full":"",class:"scrolls"},XLe={key:0,class:"scrolls scrolls-rounded task-error"},QLe=["innerHTML"],YLe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},ZLe=it({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,d){var p;return((p=h.result)==null?void 0:p.state)!=="fail"?[]:h.type==="test"||h.type==="custom"?[{...h,level:d}]:[{...h,level:d},...h.tasks.flatMap(g=>r(g,d+1))]}function i(h){return h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function o(h,d){var y,m;let p="";d.message.includes("\x1B")&&(p=`<b>${d.nameStr||d.name}</b>: ${h.toHtml(i(d.message))}`);const g=(y=d.stackStr)==null?void 0:y.includes("\x1B");return(g||(m=d.stack)!=null&&m.includes("\x1B"))&&(p.length>0?p+=h.toHtml(i(g?d.stackStr:d.stack)):p=`<b>${d.nameStr||d.name}</b>: ${d.message}${h.toHtml(i(g?d.stackStr:d.stack))}`),p.length>0?p:null}function a(h,d){const p=wS(h);return d.map(g=>{var w;const y=g.result;if(!y)return g;const m=(w=y.errors)==null?void 0:w.map($=>o(p,$)).filter($=>$!=null).join("<br><br>");return m!=null&&m.length&&(y.htmlError=m),g})}const c=Ae(()=>{var y,m;const h=t.file,d=((y=h==null?void 0:h.tasks)==null?void 0:y.flatMap(w=>r(w,0)))??[],p=h==null?void 0:h.result;if((m=p==null?void 0:p.errors)==null?void 0:m[0]){const w={id:h.id,name:h.name,level:0,type:"suite",mode:"run",tasks:[],result:p};d.unshift(w)}return d.length>0?a(Wh.value,d):d});return(h,d)=>(de(),$e("div",KLe,[Y(c).length?(de(!0),$e(dt,{key:0},An(Y(c),p=>{var g,y,m;return de(),$e("div",{key:p.id},[pe("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:zr({"margin-left":`${(g=p.result)!=null&&g.htmlError?.5:2*p.level+.5}rem`})},[_r(Je(p.name)+" ",1),(y=p.result)!=null&&y.htmlError?(de(),$e("div",XLe,[pe("pre",{innerHTML:p.result.htmlError},null,8,QLe)])):(m=p.result)!=null&&m.errors?(de(!0),$e(dt,{key:1},An(p.result.errors,(w,$)=>{var B;return de(),Ze(WLe,{key:$,error:w,filename:(B=h.file)==null?void 0:B.name,root:Y(Tl).root},null,8,["error","filename","root"])}),128)):nt("",!0)],4)])}),128)):(de(),$e("div",YLe," All tests passed in this file "))]))}});const JLe=no(ZLe,[["__scopeId","data-v-1988b97e"]]),eBe={border:"b base","p-4":""},tBe=["innerHTML"],rBe=["textContent"],nBe=it({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{},html:{type:Boolean}},setup(e){const t=e;function r(i){return new Date(i).toLocaleTimeString()}return(i,o)=>(de(),$e("div",eBe,[pe("div",{"text-xs":"","mb-1":"",class:yt(t.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Je(r(t.time))+" | "+Je(t.taskName)+" | "+Je(t.type),3),t.html?(de(),$e("pre",{key:0,"data-type":"html",innerHTML:t.content},null,8,tBe)):(de(),$e("pre",{key:1,"data-type":"text",textContent:Je(t.content)},null,8,rBe))]))}}),iBe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},sBe={key:1,p6:""},oBe=pe("pre",{inline:""},"console.log(foo)",-1),aBe=it({__name:"ViewConsoleOutput",setup(e){const t=Ae(()=>{const i=tS.value;if(i){const o=wS(Wh.value);return i.map(({taskId:a,type:c,time:h,content:d})=>{const p=d.trim(),g=o.toHtml(p);return g!==p?{taskId:a,type:c,time:h,html:!0,content:g}:{taskId:a,type:c,time:h,html:!1,content:d}})}});function r(i){const o=i&&sr.state.idMap.get(i);return(o?cW(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>{var c;const a=nBe;return(c=Y(t))!=null&&c.length?(de(),$e("div",iBe,[(de(!0),$e(dt,null,An(Y(t),({taskId:h,type:d,time:p,html:g,content:y})=>(de(),$e("div",{key:h,"font-mono":""},[ze(a,{"task-name":r(h),type:d,time:p,content:y,html:g},null,8,["task-name","type","time","content","html"])]))),128))])):(de(),$e("p",sBe,[_r(" Log something in your test and it would print here. (e.g. "),oBe,_r(") ")]))}}});var Rf={},uBe={get exports(){return Rf},set exports(e){Rf=e}},cA;function Oa(){return cA||(cA=1,function(e,t){(function(r,i){e.exports=i()})(un,function(){var r=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(r),a=/MSIE \d/.test(r),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),d=a||c||h,p=d&&(a?document.documentMode||6:+(h||c)[1]),g=!h&&/WebKit\//.test(r),y=g&&/Qt\/\d+\.\d+/.test(r),m=!h&&/Chrome\/(\d+)/.exec(r),w=m&&+m[1],$=/Opera\//.test(r),B=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),S=B&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),N=/Android/.test(r),L=S||N||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),T=S||/Mac/.test(i),R=/\bCrOS\b/.test(r),M=/win/i.test(i),j=$&&r.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&($=!1,g=!0);var te=T&&(y||$&&(j==null||j<12.11)),ie=o||d&&p>=9;function ee(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var z=function(n,s){var l=n.className,u=ee(s).exec(l);if(u){var f=l.slice(u.index+u[0].length);n.className=l.slice(0,u.index)+(f?u[1]+f:"")}};function O(n){for(var s=n.childNodes.length;s>0;--s)n.removeChild(n.firstChild);return n}function F(n,s){return O(n).appendChild(s)}function D(n,s,l,u){var f=document.createElement(n);if(l&&(f.className=l),u&&(f.style.cssText=u),typeof s=="string")f.appendChild(document.createTextNode(s));else if(s)for(var v=0;v<s.length;++v)f.appendChild(s[v]);return f}function I(n,s,l,u){var f=D(n,s,l,u);return f.setAttribute("role","presentation"),f}var V;document.createRange?V=function(n,s,l,u){var f=document.createRange();return f.setEnd(u||n,l),f.setStart(n,s),f}:V=function(n,s,l){var u=document.body.createTextRange();try{u.moveToElementText(n.parentNode)}catch{return u}return u.collapse(!0),u.moveEnd("character",l),u.moveStart("character",s),u};function J(n,s){if(s.nodeType==3&&(s=s.parentNode),n.contains)return n.contains(s);do if(s.nodeType==11&&(s=s.host),s==n)return!0;while(s=s.parentNode)}function oe(n){var s;try{s=n.activeElement}catch{s=n.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function ge(n,s){var l=n.className;ee(s).test(l)||(n.className+=(l?" ":"")+s)}function Fe(n,s){for(var l=n.split(" "),u=0;u<l.length;u++)l[u]&&!ee(l[u]).test(s)&&(s+=" "+l[u]);return s}var _e=function(n){n.select()};S?_e=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:d&&(_e=function(n){try{n.select()}catch{}});function Ue(n){return n.display.wrapper.ownerDocument}function Ke(n){return Ue(n).defaultView}function et(n){var s=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,s)}}function xe(n,s,l){s||(s={});for(var u in n)n.hasOwnProperty(u)&&(l!==!1||!s.hasOwnProperty(u))&&(s[u]=n[u]);return s}function Q(n,s,l,u,f){s==null&&(s=n.search(/[^\s\u00a0]/),s==-1&&(s=n.length));for(var v=u||0,b=f||0;;){var A=n.indexOf(" ",v);if(A<0||A>=s)return b+(s-v);b+=A-v,b+=l-b%l,v=A+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=et(this.onTimeout,this)};ae.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},ae.prototype.set=function(n,s){this.f=s;var l=+new Date+n;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=l)};function ce(n,s){for(var l=0;l<n.length;++l)if(n[l]==s)return l;return-1}var Le=50,Be={toString:function(){return"CodeMirror.Pass"}},U={scroll:!1},G={origin:"*mouse"},Z={origin:"+move"};function se(n,s,l){for(var u=0,f=0;;){var v=n.indexOf(" ",u);v==-1&&(v=n.length);var b=v-u;if(v==n.length||f+b>=s)return u+Math.min(b,s-f);if(f+=v-u,f+=l-f%l,u=v+1,f>=s)return u}}var ue=[""];function fe(n){for(;ue.length<=n;)ue.push(he(ue)+" ");return ue[n]}function he(n){return n[n.length-1]}function ye(n,s){for(var l=[],u=0;u<n.length;u++)l[u]=s(n[u],u);return l}function Ee(n,s,l){for(var u=0,f=l(s);u<n.length&&l(n[u])<=f;)u++;n.splice(u,0,s)}function ve(){}function Ne(n,s){var l;return Object.create?l=Object.create(n):(ve.prototype=n,l=new ve),s&&xe(s,l),l}var ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Pe(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||ke.test(n))}function Re(n,s){return s?s.source.indexOf("\\w")>-1&&Pe(n)?!0:s.test(n):Pe(n)}function Ge(n){for(var s in n)if(n.hasOwnProperty(s)&&n[s])return!1;return!0}var st=/[\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 rt(n){return n.charCodeAt(0)>=768&&st.test(n)}function ht(n,s,l){for(;(l<0?s>0:s<n.length)&&rt(n.charAt(s));)s+=l;return s}function tt(n,s,l){for(var u=s>l?-1:1;;){if(s==l)return s;var f=(s+l)/2,v=u<0?Math.ceil(f):Math.floor(f);if(v==s)return n(v)?s:l;n(v)?l=v:s=v+u}}function Lr(n,s,l,u){if(!n)return u(s,l,"ltr",0);for(var f=!1,v=0;v<n.length;++v){var b=n[v];(b.from<l&&b.to>s||s==l&&b.to==s)&&(u(Math.max(b.from,s),Math.min(b.to,l),b.level==1?"rtl":"ltr",v),f=!0)}f||u(s,l,"ltr")}var jr=null;function tr(n,s,l){var u;jr=null;for(var f=0;f<n.length;++f){var v=n[f];if(v.from<s&&v.to>s)return f;v.to==s&&(v.from!=v.to&&l=="before"?u=f:jr=f),v.from==s&&(v.from!=v.to&&l!="before"?u=f:jr=f)}return u??jr}var uo=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?s.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var u=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,v=/[LRr]/,b=/[Lb1n]/,A=/[1n]/;function E(_,P,H){this.level=_,this.from=P,this.to=H}return function(_,P){var H=P=="ltr"?"L":"R";if(_.length==0||P=="ltr"&&!u.test(_))return!1;for(var X=_.length,K=[],ne=0;ne<X;++ne)K.push(l(_.charCodeAt(ne)));for(var le=0,me=H;le<X;++le){var be=K[le];be=="m"?K[le]=me:me=be}for(var Ce=0,we=H;Ce<X;++Ce){var Se=K[Ce];Se=="1"&&we=="r"?K[Ce]="n":v.test(Se)&&(we=Se,Se=="r"&&(K[Ce]="R"))}for(var Ie=1,Oe=K[0];Ie<X-1;++Ie){var We=K[Ie];We=="+"&&Oe=="1"&&K[Ie+1]=="1"?K[Ie]="1":We==","&&Oe==K[Ie+1]&&(Oe=="1"||Oe=="n")&&(K[Ie]=Oe),Oe=We}for(var mt=0;mt<X;++mt){var Qt=K[mt];if(Qt==",")K[mt]="N";else if(Qt=="%"){var Ft=void 0;for(Ft=mt+1;Ft<X&&K[Ft]=="%";++Ft);for(var Pr=mt&&K[mt-1]=="!"||Ft<X&&K[Ft]=="1"?"1":"N",Ar=mt;Ar<Ft;++Ar)K[Ar]=Pr;mt=Ft-1}}for(var It=0,Er=H;It<X;++It){var rr=K[It];Er=="L"&&rr=="1"?K[It]="L":v.test(rr)&&(Er=rr)}for(var qt=0;qt<X;++qt)if(f.test(K[qt])){var Rt=void 0;for(Rt=qt+1;Rt<X&&f.test(K[Rt]);++Rt);for(var Lt=(qt?K[qt-1]:H)=="L",xr=(Rt<X?K[Rt]:H)=="L",To=Lt==xr?Lt?"L":"R":H,Ki=qt;Ki<Rt;++Ki)K[Ki]=To;qt=Rt-1}for(var lr=[],Rn,Yt=0;Yt<X;)if(b.test(K[Yt])){var qd=Yt;for(++Yt;Yt<X&&b.test(K[Yt]);++Yt);lr.push(new E(0,qd,Yt))}else{var ci=Yt,_s=lr.length,Ss=P=="rtl"?1:0;for(++Yt;Yt<X&&K[Yt]!="L";++Yt);for(var pr=ci;pr<Yt;)if(A.test(K[pr])){ci<pr&&(lr.splice(_s,0,new E(1,ci,pr)),_s+=Ss);var ko=pr;for(++pr;pr<Yt&&A.test(K[pr]);++pr);lr.splice(_s,0,new E(2,ko,pr)),_s+=Ss,ci=pr}else++pr;ci<Yt&&lr.splice(_s,0,new E(1,ci,Yt))}return P=="ltr"&&(lr[0].level==1&&(Rn=_.match(/^\s+/))&&(lr[0].from=Rn[0].length,lr.unshift(new E(0,0,Rn[0].length))),he(lr).level==1&&(Rn=_.match(/\s+$/))&&(he(lr).to-=Rn[0].length,lr.push(new E(0,X-Rn[0].length,X)))),P=="rtl"?lr.reverse():lr}}();function Dt(n,s){var l=n.order;return l==null&&(l=n.order=uo(n.text,s)),l}var yr=[],De=function(n,s,l){if(n.addEventListener)n.addEventListener(s,l,!1);else if(n.attachEvent)n.attachEvent("on"+s,l);else{var u=n._handlers||(n._handlers={});u[s]=(u[s]||yr).concat(l)}};function Na(n,s){return n._handlers&&n._handlers[s]||yr}function or(n,s,l){if(n.removeEventListener)n.removeEventListener(s,l,!1);else if(n.detachEvent)n.detachEvent("on"+s,l);else{var u=n._handlers,f=u&&u[s];if(f){var v=ce(f,l);v>-1&&(u[s]=f.slice(0,v).concat(f.slice(v+1)))}}}function wt(n,s){var l=Na(n,s);if(l.length)for(var u=Array.prototype.slice.call(arguments,2),f=0;f<l.length;++f)l[f].apply(null,u)}function Tt(n,s,l){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),wt(n,l||s.type,n,s),Ia(s)||s.codemirrorIgnore}function Pl(n){var s=n._handlers&&n._handlers.cursorActivity;if(s)for(var l=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),u=0;u<s.length;++u)ce(l,s[u])==-1&&l.push(s[u])}function fr(n,s){return Na(n,s).length>0}function hr(n){n.prototype.on=function(s,l){De(this,s,l)},n.prototype.off=function(s,l){or(this,s,l)}}function ar(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function ms(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Ia(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function ti(n){ar(n),ms(n)}function br(n){return n.target||n.srcElement}function Ra(n){var s=n.which;return s==null&&(n.button&1?s=1:n.button&2?s=3:n.button&4&&(s=2)),T&&n.ctrlKey&&s==1&&(s=3),s}var Qh=function(){if(d&&p<9)return!1;var n=D("div");return"draggable"in n||"dragDrop"in n}(),en;function Yh(n){if(en==null){var s=D("span","​");F(n,D("span",[s,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(en=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&p<8))}var l=en?D("span","​"):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var lo;function Nl(n){if(lo!=null)return lo;var s=F(n,document.createTextNode("AخA")),l=V(s,0,1).getBoundingClientRect(),u=V(s,1,2).getBoundingClientRect();return O(n),!l||l.left==l.right?!1:lo=u.right-l.right<3}var Ma=`
18
+
19
+ b`.split(/\n/).length!=3?function(n){for(var s=0,l=[],u=n.length;s<=u;){var f=n.indexOf(`
20
+ `,s);f==-1&&(f=n.length);var v=n.slice(s,n.charAt(f-1)=="\r"?f-1:f),b=v.indexOf("\r");b!=-1?(l.push(v.slice(0,b)),s+=b+1):(l.push(v),s=f+1)}return l}:function(n){return n.split(/\r\n?|\n/)},Ni=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var s;try{s=n.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=n?!1:s.compareEndPoints("StartToEnd",s)!=0},Ln=function(){var n=D("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Bn=null;function Il(n){if(Bn!=null)return Bn;var s=F(n,D("span","x")),l=s.getBoundingClientRect(),u=V(s,0,1).getBoundingClientRect();return Bn=Math.abs(l.left-u.left)>1}var hn={},Ii={};function Rl(n,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),hn[n]=s}function co(n,s){Ii[n]=s}function Br(n){if(typeof n=="string"&&Ii.hasOwnProperty(n))n=Ii[n];else if(n&&typeof n.name=="string"&&Ii.hasOwnProperty(n.name)){var s=Ii[n.name];typeof s=="string"&&(s={name:s}),n=Ne(s,n),n.name=s.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Br("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Br("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function ri(n,s){s=Br(s);var l=hn[s.name];if(!l)return ri(n,"text/plain");var u=l(n,s);if(Ri.hasOwnProperty(s.name)){var f=Ri[s.name];for(var v in f)f.hasOwnProperty(v)&&(u.hasOwnProperty(v)&&(u["_"+v]=u[v]),u[v]=f[v])}if(u.name=s.name,s.helperType&&(u.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)u[b]=s.modeProps[b];return u}var Ri={};function Ml(n,s){var l=Ri.hasOwnProperty(n)?Ri[n]:Ri[n]={};xe(s,l)}function ni(n,s){if(s===!0)return s;if(n.copyState)return n.copyState(s);var l={};for(var u in s){var f=s[u];f instanceof Array&&(f=f.concat([])),l[u]=f}return l}function Mi(n,s){for(var l;n.innerMode&&(l=n.innerMode(s),!(!l||l.mode==n));)s=l.state,n=l.mode;return l||{mode:n,state:s}}function za(n,s,l){return n.startState?n.startState(s,l):!0}var kt=function(n,s,l){this.pos=this.start=0,this.string=n,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};kt.prototype.eol=function(){return this.pos>=this.string.length},kt.prototype.sol=function(){return this.pos==this.lineStart},kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},kt.prototype.eat=function(n){var s=this.string.charAt(this.pos),l;if(typeof n=="string"?l=s==n:l=s&&(n.test?n.test(s):n(s)),l)return++this.pos,s},kt.prototype.eatWhile=function(n){for(var s=this.pos;this.eat(n););return this.pos>s},kt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},kt.prototype.skipToEnd=function(){this.pos=this.string.length},kt.prototype.skipTo=function(n){var s=this.string.indexOf(n,this.pos);if(s>-1)return this.pos=s,!0},kt.prototype.backUp=function(n){this.pos-=n},kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},kt.prototype.indentation=function(){return Q(this.string,null,this.tabSize)-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},kt.prototype.match=function(n,s,l){if(typeof n=="string"){var u=function(b){return l?b.toLowerCase():b},f=this.string.substr(this.pos,n.length);if(u(f)==u(n))return s!==!1&&(this.pos+=n.length),!0}else{var v=this.string.slice(this.pos).match(n);return v&&v.index>0?null:(v&&s!==!1&&(this.pos+=v[0].length),v)}},kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},kt.prototype.hideFirstChars=function(n,s){this.lineStart+=n;try{return s()}finally{this.lineStart-=n}},kt.prototype.lookAhead=function(n){var s=this.lineOracle;return s&&s.lookAhead(n)},kt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Te(n,s){if(s-=n.first,s<0||s>=n.size)throw new Error("There is no line "+(s+n.first)+" in the document.");for(var l=n;!l.lines;)for(var u=0;;++u){var f=l.children[u],v=f.chunkSize();if(s<v){l=f;break}s-=v}return l.lines[s]}function ii(n,s,l){var u=[],f=s.line;return n.iter(s.line,l.line+1,function(v){var b=v.text;f==l.line&&(b=b.slice(0,l.ch)),f==s.line&&(b=b.slice(s.ch)),u.push(b),++f}),u}function fo(n,s,l){var u=[];return n.iter(s,l,function(f){u.push(f.text)}),u}function tn(n,s){var l=s-n.height;if(l)for(var u=n;u;u=u.parent)u.height+=l}function lt(n){if(n.parent==null)return null;for(var s=n.parent,l=ce(s.lines,n),u=s.parent;u;s=u,u=u.parent)for(var f=0;u.children[f]!=s;++f)l+=u.children[f].chunkSize();return l+s.first}function On(n,s){var l=n.first;e:do{for(var u=0;u<n.children.length;++u){var f=n.children[u],v=f.height;if(s<v){n=f;continue e}s-=v,l+=f.chunkSize()}return l}while(!n.lines);for(var b=0;b<n.lines.length;++b){var A=n.lines[b],E=A.height;if(s<E)break;s-=E}return l+b}function k(n,s){return s>=n.first&&s<n.first+n.size}function q(n,s){return String(n.lineNumberFormatter(s+n.firstLineNumber))}function W(n,s,l){if(l===void 0&&(l=null),!(this instanceof W))return new W(n,s,l);this.line=n,this.ch=s,this.sticky=l}function re(n,s){return n.line-s.line||n.ch-s.ch}function He(n,s){return n.sticky==s.sticky&&re(n,s)==0}function Qe(n){return W(n.line,n.ch)}function ot(n,s){return re(n,s)<0?s:n}function Ht(n,s){return re(n,s)<0?n:s}function Vr(n,s){return Math.max(n.first,Math.min(s,n.first+n.size-1))}function qe(n,s){if(s.line<n.first)return W(n.first,0);var l=n.first+n.size-1;return s.line>l?W(l,Te(n,l).text.length):fF(s,Te(n,s.line).text.length)}function fF(n,s){var l=n.ch;return l==null||l>s?W(n.line,s):l<0?W(n.line,0):n}function gm(n,s){for(var l=[],u=0;u<s.length;u++)l[u]=qe(n,s[u]);return l}var zl=function(n,s){this.state=n,this.lookAhead=s},Pn=function(n,s,l,u){this.state=s,this.doc=n,this.line=l,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};Pn.prototype.lookAhead=function(n){var s=this.doc.getLine(this.line+n);return s!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),s},Pn.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Pn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pn.fromSaved=function(n,s,l){return s instanceof zl?new Pn(n,ni(n.mode,s.state),l,s.lookAhead):new Pn(n,ni(n.mode,s),l)},Pn.prototype.save=function(n){var s=n!==!1?ni(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zl(s,this.maxLookAhead):s};function vm(n,s,l,u){var f=[n.state.modeGen],v={};Am(n,s.text,n.doc.mode,l,function(_,P){return f.push(_,P)},v,u);for(var b=l.state,A=function(_){l.baseTokens=f;var P=n.state.overlays[_],H=1,X=0;l.state=!0,Am(n,s.text,P.mode,l,function(K,ne){for(var le=H;X<K;){var me=f[H];me>K&&f.splice(H,1,K,f[H+1],me),H+=2,X=Math.min(K,me)}if(ne)if(P.opaque)f.splice(le,H-le,K,"overlay "+ne),H=le+2;else for(;le<H;le+=2){var be=f[le+1];f[le+1]=(be?be+" ":"")+"overlay "+ne}},v),l.state=b,l.baseTokens=null,l.baseTokenPos=1},E=0;E<n.state.overlays.length;++E)A(E);return{styles:f,classes:v.bgClass||v.textClass?v:null}}function mm(n,s,l){if(!s.styles||s.styles[0]!=n.state.modeGen){var u=Ua(n,lt(s)),f=s.text.length>n.options.maxHighlightLength&&ni(n.doc.mode,u.state),v=vm(n,s,u);f&&(u.state=f),s.stateAfter=u.save(!f),s.styles=v.styles,v.classes?s.styleClasses=v.classes:s.styleClasses&&(s.styleClasses=null),l===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return s.styles}function Ua(n,s,l){var u=n.doc,f=n.display;if(!u.mode.startState)return new Pn(u,!0,s);var v=hF(n,s,l),b=v>u.first&&Te(u,v-1).stateAfter,A=b?Pn.fromSaved(u,b,v):new Pn(u,za(u.mode),v);return u.iter(v,s,function(E){Zh(n,E.text,A);var _=A.line;E.stateAfter=_==s-1||_%5==0||_>=f.viewFrom&&_<f.viewTo?A.save():null,A.nextLine()}),l&&(u.modeFrontier=A.line),A}function Zh(n,s,l,u){var f=n.doc.mode,v=new kt(s,n.options.tabSize,l);for(v.start=v.pos=u||0,s==""&&ym(f,l.state);!v.eol();)Jh(f,v,l.state),v.start=v.pos}function ym(n,s){if(n.blankLine)return n.blankLine(s);if(n.innerMode){var l=Mi(n,s);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Jh(n,s,l,u){for(var f=0;f<10;f++){u&&(u[0]=Mi(n,l).mode);var v=n.token(s,l);if(s.pos>s.start)return v}throw new Error("Mode "+n.name+" failed to advance stream.")}var bm=function(n,s,l){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=s||null,this.state=l};function wm(n,s,l,u){var f=n.doc,v=f.mode,b;s=qe(f,s);var A=Te(f,s.line),E=Ua(n,s.line,l),_=new kt(A.text,n.options.tabSize,E),P;for(u&&(P=[]);(u||_.pos<s.ch)&&!_.eol();)_.start=_.pos,b=Jh(v,_,E.state),u&&P.push(new bm(_,b,ni(f.mode,E.state)));return u?P:new bm(_,b,E.state)}function Dm(n,s){if(n)for(;;){var l=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;n=n.slice(0,l.index)+n.slice(l.index+l[0].length);var u=l[1]?"bgClass":"textClass";s[u]==null?s[u]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(s[u])||(s[u]+=" "+l[2])}return n}function Am(n,s,l,u,f,v,b){var A=l.flattenSpans;A==null&&(A=n.options.flattenSpans);var E=0,_=null,P=new kt(s,n.options.tabSize,u),H,X=n.options.addModeClass&&[null];for(s==""&&Dm(ym(l,u.state),v);!P.eol();){if(P.pos>n.options.maxHighlightLength?(A=!1,b&&Zh(n,s,u,P.pos),P.pos=s.length,H=null):H=Dm(Jh(l,P,u.state,X),v),X){var K=X[0].name;K&&(H="m-"+(H?K+" "+H:K))}if(!A||_!=H){for(;E<P.start;)E=Math.min(P.start,E+5e3),f(E,_);_=H}P.start=P.pos}for(;E<P.pos;){var ne=Math.min(P.pos,E+5e3);f(ne,_),E=ne}}function hF(n,s,l){for(var u,f,v=n.doc,b=l?-1:s-(n.doc.mode.innerMode?1e3:100),A=s;A>b;--A){if(A<=v.first)return v.first;var E=Te(v,A-1),_=E.stateAfter;if(_&&(!l||A+(_ instanceof zl?_.lookAhead:0)<=v.modeFrontier))return A;var P=Q(E.text,null,n.options.tabSize);(f==null||u>P)&&(f=A-1,u=P)}return f}function dF(n,s){if(n.modeFrontier=Math.min(n.modeFrontier,s),!(n.highlightFrontier<s-10)){for(var l=n.first,u=s-1;u>l;u--){var f=Te(n,u).stateAfter;if(f&&(!(f instanceof zl)||u+f.lookAhead<s)){l=u+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,l)}}var Em=!1,si=!1;function pF(){Em=!0}function gF(){si=!0}function Ul(n,s,l){this.marker=n,this.from=s,this.to=l}function Ha(n,s){if(n)for(var l=0;l<n.length;++l){var u=n[l];if(u.marker==s)return u}}function vF(n,s){for(var l,u=0;u<n.length;++u)n[u]!=s&&(l||(l=[])).push(n[u]);return l}function mF(n,s,l){var u=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));u&&n.markedSpans&&u.has(n.markedSpans)?n.markedSpans.push(s):(n.markedSpans=n.markedSpans?n.markedSpans.concat([s]):[s],u&&u.add(n.markedSpans)),s.marker.attachLine(n)}function yF(n,s,l){var u;if(n)for(var f=0;f<n.length;++f){var v=n[f],b=v.marker,A=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);if(A||v.from==s&&b.type=="bookmark"&&(!l||!v.marker.insertLeft)){var E=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);(u||(u=[])).push(new Ul(b,v.from,E?null:v.to))}}return u}function bF(n,s,l){var u;if(n)for(var f=0;f<n.length;++f){var v=n[f],b=v.marker,A=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);if(A||v.from==s&&b.type=="bookmark"&&(!l||v.marker.insertLeft)){var E=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);(u||(u=[])).push(new Ul(b,E?null:v.from-s,v.to==null?null:v.to-s))}}return u}function ed(n,s){if(s.full)return null;var l=k(n,s.from.line)&&Te(n,s.from.line).markedSpans,u=k(n,s.to.line)&&Te(n,s.to.line).markedSpans;if(!l&&!u)return null;var f=s.from.ch,v=s.to.ch,b=re(s.from,s.to)==0,A=yF(l,f,b),E=bF(u,v,b),_=s.text.length==1,P=he(s.text).length+(_?f:0);if(A)for(var H=0;H<A.length;++H){var X=A[H];if(X.to==null){var K=Ha(E,X.marker);K?_&&(X.to=K.to==null?null:K.to+P):X.to=f}}if(E)for(var ne=0;ne<E.length;++ne){var le=E[ne];if(le.to!=null&&(le.to+=P),le.from==null){var me=Ha(A,le.marker);me||(le.from=P,_&&(A||(A=[])).push(le))}else le.from+=P,_&&(A||(A=[])).push(le)}A&&(A=xm(A)),E&&E!=A&&(E=xm(E));var be=[A];if(!_){var Ce=s.text.length-2,we;if(Ce>0&&A)for(var Se=0;Se<A.length;++Se)A[Se].to==null&&(we||(we=[])).push(new Ul(A[Se].marker,null,null));for(var Ie=0;Ie<Ce;++Ie)be.push(we);be.push(E)}return be}function xm(n){for(var s=0;s<n.length;++s){var l=n[s];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&n.splice(s--,1)}return n.length?n:null}function wF(n,s,l){var u=null;if(n.iter(s.line,l.line+1,function(K){if(K.markedSpans)for(var ne=0;ne<K.markedSpans.length;++ne){var le=K.markedSpans[ne].marker;le.readOnly&&(!u||ce(u,le)==-1)&&(u||(u=[])).push(le)}}),!u)return null;for(var f=[{from:s,to:l}],v=0;v<u.length;++v)for(var b=u[v],A=b.find(0),E=0;E<f.length;++E){var _=f[E];if(!(re(_.to,A.from)<0||re(_.from,A.to)>0)){var P=[E,1],H=re(_.from,A.from),X=re(_.to,A.to);(H<0||!b.inclusiveLeft&&!H)&&P.push({from:_.from,to:A.from}),(X>0||!b.inclusiveRight&&!X)&&P.push({from:A.to,to:_.to}),f.splice.apply(f,P),E+=P.length-3}}return f}function Cm(n){var s=n.markedSpans;if(s){for(var l=0;l<s.length;++l)s[l].marker.detachLine(n);n.markedSpans=null}}function _m(n,s){if(s){for(var l=0;l<s.length;++l)s[l].marker.attachLine(n);n.markedSpans=s}}function Hl(n){return n.inclusiveLeft?-1:0}function ql(n){return n.inclusiveRight?1:0}function td(n,s){var l=n.lines.length-s.lines.length;if(l!=0)return l;var u=n.find(),f=s.find(),v=re(u.from,f.from)||Hl(n)-Hl(s);if(v)return-v;var b=re(u.to,f.to)||ql(n)-ql(s);return b||s.id-n.id}function Sm(n,s){var l=si&&n.markedSpans,u;if(l)for(var f=void 0,v=0;v<l.length;++v)f=l[v],f.marker.collapsed&&(s?f.from:f.to)==null&&(!u||td(u,f.marker)<0)&&(u=f.marker);return u}function Fm(n){return Sm(n,!0)}function jl(n){return Sm(n,!1)}function DF(n,s){var l=si&&n.markedSpans,u;if(l)for(var f=0;f<l.length;++f){var v=l[f];v.marker.collapsed&&(v.from==null||v.from<s)&&(v.to==null||v.to>s)&&(!u||td(u,v.marker)<0)&&(u=v.marker)}return u}function $m(n,s,l,u,f){var v=Te(n,s),b=si&&v.markedSpans;if(b)for(var A=0;A<b.length;++A){var E=b[A];if(E.marker.collapsed){var _=E.marker.find(0),P=re(_.from,l)||Hl(E.marker)-Hl(f),H=re(_.to,u)||ql(E.marker)-ql(f);if(!(P>=0&&H<=0||P<=0&&H>=0)&&(P<=0&&(E.marker.inclusiveRight&&f.inclusiveLeft?re(_.to,l)>=0:re(_.to,l)>0)||P>=0&&(E.marker.inclusiveRight&&f.inclusiveLeft?re(_.from,u)<=0:re(_.from,u)<0)))return!0}}}function dn(n){for(var s;s=Fm(n);)n=s.find(-1,!0).line;return n}function AF(n){for(var s;s=jl(n);)n=s.find(1,!0).line;return n}function EF(n){for(var s,l;s=jl(n);)n=s.find(1,!0).line,(l||(l=[])).push(n);return l}function rd(n,s){var l=Te(n,s),u=dn(l);return l==u?s:lt(u)}function Tm(n,s){if(s>n.lastLine())return s;var l=Te(n,s),u;if(!zi(n,l))return s;for(;u=jl(l);)l=u.find(1,!0).line;return lt(l)+1}function zi(n,s){var l=si&&s.markedSpans;if(l){for(var u=void 0,f=0;f<l.length;++f)if(u=l[f],!!u.marker.collapsed){if(u.from==null)return!0;if(!u.marker.widgetNode&&u.from==0&&u.marker.inclusiveLeft&&nd(n,s,u))return!0}}}function nd(n,s,l){if(l.to==null){var u=l.marker.find(1,!0);return nd(n,u.line,Ha(u.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==s.text.length)return!0;for(var f=void 0,v=0;v<s.markedSpans.length;++v)if(f=s.markedSpans[v],f.marker.collapsed&&!f.marker.widgetNode&&f.from==l.to&&(f.to==null||f.to!=l.from)&&(f.marker.inclusiveLeft||l.marker.inclusiveRight)&&nd(n,s,f))return!0}function oi(n){n=dn(n);for(var s=0,l=n.parent,u=0;u<l.lines.length;++u){var f=l.lines[u];if(f==n)break;s+=f.height}for(var v=l.parent;v;l=v,v=l.parent)for(var b=0;b<v.children.length;++b){var A=v.children[b];if(A==l)break;s+=A.height}return s}function Vl(n){if(n.height==0)return 0;for(var s=n.text.length,l,u=n;l=Fm(u);){var f=l.find(0,!0);u=f.from.line,s+=f.from.ch-f.to.ch}for(u=n;l=jl(u);){var v=l.find(0,!0);s-=u.text.length-v.from.ch,u=v.to.line,s+=u.text.length-v.to.ch}return s}function id(n){var s=n.display,l=n.doc;s.maxLine=Te(l,l.first),s.maxLineLength=Vl(s.maxLine),s.maxLineChanged=!0,l.iter(function(u){var f=Vl(u);f>s.maxLineLength&&(s.maxLineLength=f,s.maxLine=u)})}var ho=function(n,s,l){this.text=n,_m(this,s),this.height=l?l(this):1};ho.prototype.lineNo=function(){return lt(this)},hr(ho);function xF(n,s,l,u){n.text=s,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Cm(n),_m(n,l);var f=u?u(n):1;f!=n.height&&tn(n,f)}function CF(n){n.parent=null,Cm(n)}var _F={},SF={};function km(n,s){if(!n||/^\s*$/.test(n))return null;var l=s.addModeClass?SF:_F;return l[n]||(l[n]=n.replace(/\S+/g,"cm-$&"))}function Lm(n,s){var l=I("span",null,null,g?"padding-right: .1px":null),u={pre:I("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};s.measure={};for(var f=0;f<=(s.rest?s.rest.length:0);f++){var v=f?s.rest[f-1]:s.line,b=void 0;u.pos=0,u.addToken=$F,Nl(n.display.measure)&&(b=Dt(v,n.doc.direction))&&(u.addToken=kF(u.addToken,b)),u.map=[];var A=s!=n.display.externalMeasured&&lt(v);LF(v,u,mm(n,v,A)),v.styleClasses&&(v.styleClasses.bgClass&&(u.bgClass=Fe(v.styleClasses.bgClass,u.bgClass||"")),v.styleClasses.textClass&&(u.textClass=Fe(v.styleClasses.textClass,u.textClass||""))),u.map.length==0&&u.map.push(0,0,u.content.appendChild(Yh(n.display.measure))),f==0?(s.measure.map=u.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(u.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(g){var E=u.content.lastChild;(/\bcm-tab\b/.test(E.className)||E.querySelector&&E.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return wt(n,"renderLine",n,s.line,u.pre),u.pre.className&&(u.textClass=Fe(u.pre.className,u.textClass||"")),u}function FF(n){var s=D("span","•","cm-invalidchar");return s.title="\\u"+n.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function $F(n,s,l,u,f,v,b){if(s){var A=n.splitSpaces?TF(s,n.trailingSpace):s,E=n.cm.state.specialChars,_=!1,P;if(!E.test(s))n.col+=s.length,P=document.createTextNode(A),n.map.push(n.pos,n.pos+s.length,P),d&&p<9&&(_=!0),n.pos+=s.length;else{P=document.createDocumentFragment();for(var H=0;;){E.lastIndex=H;var X=E.exec(s),K=X?X.index-H:s.length-H;if(K){var ne=document.createTextNode(A.slice(H,H+K));d&&p<9?P.appendChild(D("span",[ne])):P.appendChild(ne),n.map.push(n.pos,n.pos+K,ne),n.col+=K,n.pos+=K}if(!X)break;H+=K+1;var le=void 0;if(X[0]==" "){var me=n.cm.options.tabSize,be=me-n.col%me;le=P.appendChild(D("span",fe(be),"cm-tab")),le.setAttribute("role","presentation"),le.setAttribute("cm-text"," "),n.col+=be}else X[0]=="\r"||X[0]==`
21
+ `?(le=P.appendChild(D("span",X[0]=="\r"?"␍":"␤","cm-invalidchar")),le.setAttribute("cm-text",X[0]),n.col+=1):(le=n.cm.options.specialCharPlaceholder(X[0]),le.setAttribute("cm-text",X[0]),d&&p<9?P.appendChild(D("span",[le])):P.appendChild(le),n.col+=1);n.map.push(n.pos,n.pos+1,le),n.pos++}}if(n.trailingSpace=A.charCodeAt(s.length-1)==32,l||u||f||_||v||b){var Ce=l||"";u&&(Ce+=u),f&&(Ce+=f);var we=D("span",[P],Ce,v);if(b)for(var Se in b)b.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&we.setAttribute(Se,b[Se]);return n.content.appendChild(we)}n.content.appendChild(P)}}function TF(n,s){if(n.length>1&&!/ /.test(n))return n;for(var l=s,u="",f=0;f<n.length;f++){var v=n.charAt(f);v==" "&&l&&(f==n.length-1||n.charCodeAt(f+1)==32)&&(v=" "),u+=v,l=v==" "}return u}function kF(n,s){return function(l,u,f,v,b,A,E){f=f?f+" cm-force-border":"cm-force-border";for(var _=l.pos,P=_+u.length;;){for(var H=void 0,X=0;X<s.length&&(H=s[X],!(H.to>_&&H.from<=_));X++);if(H.to>=P)return n(l,u,f,v,b,A,E);n(l,u.slice(0,H.to-_),f,v,null,A,E),v=null,u=u.slice(H.to-_),_=H.to}}}function Bm(n,s,l,u){var f=!u&&l.widgetNode;f&&n.map.push(n.pos,n.pos+s,f),!u&&n.cm.display.input.needsContentAttribute&&(f||(f=n.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",l.id)),f&&(n.cm.display.input.setUneditable(f),n.content.appendChild(f)),n.pos+=s,n.trailingSpace=!1}function LF(n,s,l){var u=n.markedSpans,f=n.text,v=0;if(!u){for(var b=1;b<l.length;b+=2)s.addToken(s,f.slice(v,v=l[b]),km(l[b+1],s.cm.options));return}for(var A=f.length,E=0,_=1,P="",H,X,K=0,ne,le,me,be,Ce;;){if(K==E){ne=le=me=X="",Ce=null,be=null,K=1/0;for(var we=[],Se=void 0,Ie=0;Ie<u.length;++Ie){var Oe=u[Ie],We=Oe.marker;if(We.type=="bookmark"&&Oe.from==E&&We.widgetNode)we.push(We);else if(Oe.from<=E&&(Oe.to==null||Oe.to>E||We.collapsed&&Oe.to==E&&Oe.from==E)){if(Oe.to!=null&&Oe.to!=E&&K>Oe.to&&(K=Oe.to,le=""),We.className&&(ne+=" "+We.className),We.css&&(X=(X?X+";":"")+We.css),We.startStyle&&Oe.from==E&&(me+=" "+We.startStyle),We.endStyle&&Oe.to==K&&(Se||(Se=[])).push(We.endStyle,Oe.to),We.title&&((Ce||(Ce={})).title=We.title),We.attributes)for(var mt in We.attributes)(Ce||(Ce={}))[mt]=We.attributes[mt];We.collapsed&&(!be||td(be.marker,We)<0)&&(be=Oe)}else Oe.from>E&&K>Oe.from&&(K=Oe.from)}if(Se)for(var Qt=0;Qt<Se.length;Qt+=2)Se[Qt+1]==K&&(le+=" "+Se[Qt]);if(!be||be.from==E)for(var Ft=0;Ft<we.length;++Ft)Bm(s,0,we[Ft]);if(be&&(be.from||0)==E){if(Bm(s,(be.to==null?A+1:be.to)-E,be.marker,be.from==null),be.to==null)return;be.to==E&&(be=!1)}}if(E>=A)break;for(var Pr=Math.min(A,K);;){if(P){var Ar=E+P.length;if(!be){var It=Ar>Pr?P.slice(0,Pr-E):P;s.addToken(s,It,H?H+ne:ne,me,E+It.length==K?le:"",X,Ce)}if(Ar>=Pr){P=P.slice(Pr-E),E=Pr;break}E=Ar,me=""}P=f.slice(v,v=l[_++]),H=km(l[_++],s.cm.options)}}}function Om(n,s,l){this.line=s,this.rest=EF(s),this.size=this.rest?lt(he(this.rest))-l+1:1,this.node=this.text=null,this.hidden=zi(n,s)}function Wl(n,s,l){for(var u=[],f,v=s;v<l;v=f){var b=new Om(n.doc,Te(n.doc,v),v);f=v+b.size,u.push(b)}return u}var po=null;function BF(n){po?po.ops.push(n):n.ownsGroup=po={ops:[n],delayedCallbacks:[]}}function OF(n){var s=n.delayedCallbacks,l=0;do{for(;l<s.length;l++)s[l].call(null);for(var u=0;u<n.ops.length;u++){var f=n.ops[u];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(l<s.length)}function PF(n,s){var l=n.ownsGroup;if(l)try{OF(l)}finally{po=null,s(l)}}var qa=null;function Gt(n,s){var l=Na(n,s);if(l.length){var u=Array.prototype.slice.call(arguments,2),f;po?f=po.delayedCallbacks:qa?f=qa:(f=qa=[],setTimeout(NF,0));for(var v=function(A){f.push(function(){return l[A].apply(null,u)})},b=0;b<l.length;++b)v(b)}}function NF(){var n=qa;qa=null;for(var s=0;s<n.length;++s)n[s]()}function Pm(n,s,l,u){for(var f=0;f<s.changes.length;f++){var v=s.changes[f];v=="text"?RF(n,s):v=="gutter"?Im(n,s,l,u):v=="class"?sd(n,s):v=="widget"&&MF(n,s,u)}s.changes=null}function ja(n){return n.node==n.text&&(n.node=D("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),d&&p<8&&(n.node.style.zIndex=2)),n.node}function IF(n,s){var l=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),s.background)l?s.background.className=l:(s.background.parentNode.removeChild(s.background),s.background=null);else if(l){var u=ja(s);s.background=u.insertBefore(D("div",null,l),u.firstChild),n.display.input.setUneditable(s.background)}}function Nm(n,s){var l=n.display.externalMeasured;return l&&l.line==s.line?(n.display.externalMeasured=null,s.measure=l.measure,l.built):Lm(n,s)}function RF(n,s){var l=s.text.className,u=Nm(n,s);s.text==s.node&&(s.node=u.pre),s.text.parentNode.replaceChild(u.pre,s.text),s.text=u.pre,u.bgClass!=s.bgClass||u.textClass!=s.textClass?(s.bgClass=u.bgClass,s.textClass=u.textClass,sd(n,s)):l&&(s.text.className=l)}function sd(n,s){IF(n,s),s.line.wrapClass?ja(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var l=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=l||""}function Im(n,s,l,u){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var f=ja(s);s.gutterBackground=D("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(n.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px; width: "+u.gutterTotalWidth+"px"),n.display.input.setUneditable(s.gutterBackground),f.insertBefore(s.gutterBackground,s.text)}var v=s.line.gutterMarkers;if(n.options.lineNumbers||v){var b=ja(s),A=s.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(A.setAttribute("aria-hidden","true"),n.display.input.setUneditable(A),b.insertBefore(A,s.text),s.line.gutterClass&&(A.className+=" "+s.line.gutterClass),n.options.lineNumbers&&(!v||!v["CodeMirror-linenumbers"])&&(s.lineNumber=A.appendChild(D("div",q(n.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),v)for(var E=0;E<n.display.gutterSpecs.length;++E){var _=n.display.gutterSpecs[E].className,P=v.hasOwnProperty(_)&&v[_];P&&A.appendChild(D("div",[P],"CodeMirror-gutter-elt","left: "+u.gutterLeft[_]+"px; width: "+u.gutterWidth[_]+"px"))}}}function MF(n,s,l){s.alignable&&(s.alignable=null);for(var u=ee("CodeMirror-linewidget"),f=s.node.firstChild,v=void 0;f;f=v)v=f.nextSibling,u.test(f.className)&&s.node.removeChild(f);Rm(n,s,l)}function zF(n,s,l,u){var f=Nm(n,s);return s.text=s.node=f.pre,f.bgClass&&(s.bgClass=f.bgClass),f.textClass&&(s.textClass=f.textClass),sd(n,s),Im(n,s,l,u),Rm(n,s,u),s.node}function Rm(n,s,l){if(Mm(n,s.line,s,l,!0),s.rest)for(var u=0;u<s.rest.length;u++)Mm(n,s.rest[u],s,l,!1)}function Mm(n,s,l,u,f){if(s.widgets)for(var v=ja(l),b=0,A=s.widgets;b<A.length;++b){var E=A[b],_=D("div",[E.node],"CodeMirror-linewidget"+(E.className?" "+E.className:""));E.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),UF(E,_,l,u),n.display.input.setUneditable(_),f&&E.above?v.insertBefore(_,l.gutter||l.text):v.appendChild(_),Gt(E,"redraw")}}function UF(n,s,l,u){if(n.noHScroll){(l.alignable||(l.alignable=[])).push(s);var f=u.wrapperWidth;s.style.left=u.fixedPos+"px",n.coverGutter||(f-=u.gutterTotalWidth,s.style.paddingLeft=u.gutterTotalWidth+"px"),s.style.width=f+"px"}n.coverGutter&&(s.style.zIndex=5,s.style.position="relative",n.noHScroll||(s.style.marginLeft=-u.gutterTotalWidth+"px"))}function Va(n){if(n.height!=null)return n.height;var s=n.doc.cm;if(!s)return 0;if(!J(document.body,n.node)){var l="position: relative;";n.coverGutter&&(l+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),n.noHScroll&&(l+="width: "+s.display.wrapper.clientWidth+"px;"),F(s.display.measure,D("div",[n.node],null,l))}return n.height=n.node.parentNode.offsetHeight}function ai(n,s){for(var l=br(s);l!=n.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==n.sizer&&l!=n.mover)return!0}function Gl(n){return n.lineSpace.offsetTop}function od(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function zm(n){if(n.cachedPaddingH)return n.cachedPaddingH;var s=F(n.measure,D("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,u={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(u.left)&&!isNaN(u.right)&&(n.cachedPaddingH=u),u}function Nn(n){return Le-n.display.nativeBarWidth}function ys(n){return n.display.scroller.clientWidth-Nn(n)-n.display.barWidth}function ad(n){return n.display.scroller.clientHeight-Nn(n)-n.display.barHeight}function HF(n,s,l){var u=n.options.lineWrapping,f=u&&ys(n);if(!s.measure.heights||u&&s.measure.width!=f){var v=s.measure.heights=[];if(u){s.measure.width=f;for(var b=s.text.firstChild.getClientRects(),A=0;A<b.length-1;A++){var E=b[A],_=b[A+1];Math.abs(E.bottom-_.bottom)>2&&v.push((E.bottom+_.top)/2-l.top)}}v.push(l.bottom-l.top)}}function Um(n,s,l){if(n.line==s)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var u=0;u<n.rest.length;u++)if(n.rest[u]==s)return{map:n.measure.maps[u],cache:n.measure.caches[u]};for(var f=0;f<n.rest.length;f++)if(lt(n.rest[f])>l)return{map:n.measure.maps[f],cache:n.measure.caches[f],before:!0}}}function qF(n,s){s=dn(s);var l=lt(s),u=n.display.externalMeasured=new Om(n.doc,s,l);u.lineN=l;var f=u.built=Lm(n,u);return u.text=f.pre,F(n.display.lineMeasure,f.pre),u}function Hm(n,s,l,u){return In(n,go(n,s),l,u)}function ud(n,s){if(s>=n.display.viewFrom&&s<n.display.viewTo)return n.display.view[Ds(n,s)];var l=n.display.externalMeasured;if(l&&s>=l.lineN&&s<l.lineN+l.size)return l}function go(n,s){var l=lt(s),u=ud(n,l);u&&!u.text?u=null:u&&u.changes&&(Pm(n,u,l,dd(n)),n.curOp.forceUpdate=!0),u||(u=qF(n,s));var f=Um(u,s,l);return{line:s,view:u,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function In(n,s,l,u,f){s.before&&(l=-1);var v=l+(u||""),b;return s.cache.hasOwnProperty(v)?b=s.cache[v]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(HF(n,s.view,s.rect),s.hasHeights=!0),b=VF(n,s,l,u),b.bogus||(s.cache[v]=b)),{left:b.left,right:b.right,top:f?b.rtop:b.top,bottom:f?b.rbottom:b.bottom}}var qm={left:0,right:0,top:0,bottom:0};function jm(n,s,l){for(var u,f,v,b,A,E,_=0;_<n.length;_+=3)if(A=n[_],E=n[_+1],s<A?(f=0,v=1,b="left"):s<E?(f=s-A,v=f+1):(_==n.length-3||s==E&&n[_+3]>s)&&(v=E-A,f=v-1,s>=E&&(b="right")),f!=null){if(u=n[_+2],A==E&&l==(u.insertLeft?"left":"right")&&(b=l),l=="left"&&f==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)u=n[(_-=3)+2],b="left";if(l=="right"&&f==E-A)for(;_<n.length-3&&n[_+3]==n[_+4]&&!n[_+5].insertLeft;)u=n[(_+=3)+2],b="right";break}return{node:u,start:f,end:v,collapse:b,coverStart:A,coverEnd:E}}function jF(n,s){var l=qm;if(s=="left")for(var u=0;u<n.length&&(l=n[u]).left==l.right;u++);else for(var f=n.length-1;f>=0&&(l=n[f]).left==l.right;f--);return l}function VF(n,s,l,u){var f=jm(s.map,l,u),v=f.node,b=f.start,A=f.end,E=f.collapse,_;if(v.nodeType==3){for(var P=0;P<4;P++){for(;b&&rt(s.line.text.charAt(f.coverStart+b));)--b;for(;f.coverStart+A<f.coverEnd&&rt(s.line.text.charAt(f.coverStart+A));)++A;if(d&&p<9&&b==0&&A==f.coverEnd-f.coverStart?_=v.parentNode.getBoundingClientRect():_=jF(V(v,b,A).getClientRects(),u),_.left||_.right||b==0)break;A=b,b=b-1,E="right"}d&&p<11&&(_=WF(n.display.measure,_))}else{b>0&&(E=u="right");var H;n.options.lineWrapping&&(H=v.getClientRects()).length>1?_=H[u=="right"?H.length-1:0]:_=v.getBoundingClientRect()}if(d&&p<9&&!b&&(!_||!_.left&&!_.right)){var X=v.parentNode.getClientRects()[0];X?_={left:X.left,right:X.left+mo(n.display),top:X.top,bottom:X.bottom}:_=qm}for(var K=_.top-s.rect.top,ne=_.bottom-s.rect.top,le=(K+ne)/2,me=s.view.measure.heights,be=0;be<me.length-1&&!(le<me[be]);be++);var Ce=be?me[be-1]:0,we=me[be],Se={left:(E=="right"?_.right:_.left)-s.rect.left,right:(E=="left"?_.left:_.right)-s.rect.left,top:Ce,bottom:we};return!_.left&&!_.right&&(Se.bogus=!0),n.options.singleCursorHeightPerLine||(Se.rtop=K,Se.rbottom=ne),Se}function WF(n,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Il(n))return s;var l=screen.logicalXDPI/screen.deviceXDPI,u=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*l,right:s.right*l,top:s.top*u,bottom:s.bottom*u}}function Vm(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var s=0;s<n.rest.length;s++)n.measure.caches[s]={}}function Wm(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var s=0;s<n.display.view.length;s++)Vm(n.display.view[s])}function Wa(n){Wm(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Gm(n){return m&&N?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Km(n){return m&&N?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function ld(n){var s=dn(n),l=s.widgets,u=0;if(l)for(var f=0;f<l.length;++f)l[f].above&&(u+=Va(l[f]));return u}function Kl(n,s,l,u,f){if(!f){var v=ld(s);l.top+=v,l.bottom+=v}if(u=="line")return l;u||(u="local");var b=oi(s);if(u=="local"?b+=Gl(n.display):b-=n.display.viewOffset,u=="page"||u=="window"){var A=n.display.lineSpace.getBoundingClientRect();b+=A.top+(u=="window"?0:Km(Ue(n)));var E=A.left+(u=="window"?0:Gm(Ue(n)));l.left+=E,l.right+=E}return l.top+=b,l.bottom+=b,l}function Xm(n,s,l){if(l=="div")return s;var u=s.left,f=s.top;if(l=="page")u-=Gm(Ue(n)),f-=Km(Ue(n));else if(l=="local"||!l){var v=n.display.sizer.getBoundingClientRect();u+=v.left,f+=v.top}var b=n.display.lineSpace.getBoundingClientRect();return{left:u-b.left,top:f-b.top}}function Xl(n,s,l,u,f){return u||(u=Te(n.doc,s.line)),Kl(n,u,Hm(n,u,s.ch,f),l)}function pn(n,s,l,u,f,v){u=u||Te(n.doc,s.line),f||(f=go(n,u));function b(ne,le){var me=In(n,f,ne,le?"right":"left",v);return le?me.left=me.right:me.right=me.left,Kl(n,u,me,l)}var A=Dt(u,n.doc.direction),E=s.ch,_=s.sticky;if(E>=u.text.length?(E=u.text.length,_="before"):E<=0&&(E=0,_="after"),!A)return b(_=="before"?E-1:E,_=="before");function P(ne,le,me){var be=A[le],Ce=be.level==1;return b(me?ne-1:ne,Ce!=me)}var H=tr(A,E,_),X=jr,K=P(E,H,_=="before");return X!=null&&(K.other=P(E,X,_!="before")),K}function Qm(n,s){var l=0;s=qe(n.doc,s),n.options.lineWrapping||(l=mo(n.display)*s.ch);var u=Te(n.doc,s.line),f=oi(u)+Gl(n.display);return{left:l,right:l,top:f,bottom:f+u.height}}function cd(n,s,l,u,f){var v=W(n,s,l);return v.xRel=f,u&&(v.outside=u),v}function fd(n,s,l){var u=n.doc;if(l+=n.display.viewOffset,l<0)return cd(u.first,0,null,-1,-1);var f=On(u,l),v=u.first+u.size-1;if(f>v)return cd(u.first+u.size-1,Te(u,v).text.length,null,1,1);s<0&&(s=0);for(var b=Te(u,f);;){var A=GF(n,b,f,s,l),E=DF(b,A.ch+(A.xRel>0||A.outside>0?1:0));if(!E)return A;var _=E.find(1);if(_.line==f)return _;b=Te(u,f=_.line)}}function Ym(n,s,l,u){u-=ld(s);var f=s.text.length,v=tt(function(b){return In(n,l,b-1).bottom<=u},f,0);return f=tt(function(b){return In(n,l,b).top>u},v,f),{begin:v,end:f}}function Zm(n,s,l,u){l||(l=go(n,s));var f=Kl(n,s,In(n,l,u),"line").top;return Ym(n,s,l,f)}function hd(n,s,l,u){return n.bottom<=l?!1:n.top>l?!0:(u?n.left:n.right)>s}function GF(n,s,l,u,f){f-=oi(s);var v=go(n,s),b=ld(s),A=0,E=s.text.length,_=!0,P=Dt(s,n.doc.direction);if(P){var H=(n.options.lineWrapping?XF:KF)(n,s,l,v,P,u,f);_=H.level!=1,A=_?H.from:H.to-1,E=_?H.to:H.from-1}var X=null,K=null,ne=tt(function(Ie){var Oe=In(n,v,Ie);return Oe.top+=b,Oe.bottom+=b,hd(Oe,u,f,!1)?(Oe.top<=f&&Oe.left<=u&&(X=Ie,K=Oe),!0):!1},A,E),le,me,be=!1;if(K){var Ce=u-K.left<K.right-u,we=Ce==_;ne=X+(we?0:1),me=we?"after":"before",le=Ce?K.left:K.right}else{!_&&(ne==E||ne==A)&&ne++,me=ne==0?"after":ne==s.text.length?"before":In(n,v,ne-(_?1:0)).bottom+b<=f==_?"after":"before";var Se=pn(n,W(l,ne,me),"line",s,v);le=Se.left,be=f<Se.top?-1:f>=Se.bottom?1:0}return ne=ht(s.text,ne,1),cd(l,ne,me,be,u-le)}function KF(n,s,l,u,f,v,b){var A=tt(function(H){var X=f[H],K=X.level!=1;return hd(pn(n,W(l,K?X.to:X.from,K?"before":"after"),"line",s,u),v,b,!0)},0,f.length-1),E=f[A];if(A>0){var _=E.level!=1,P=pn(n,W(l,_?E.from:E.to,_?"after":"before"),"line",s,u);hd(P,v,b,!0)&&P.top>b&&(E=f[A-1])}return E}function XF(n,s,l,u,f,v,b){var A=Ym(n,s,u,b),E=A.begin,_=A.end;/\s/.test(s.text.charAt(_-1))&&_--;for(var P=null,H=null,X=0;X<f.length;X++){var K=f[X];if(!(K.from>=_||K.to<=E)){var ne=K.level!=1,le=In(n,u,ne?Math.min(_,K.to)-1:Math.max(E,K.from)).right,me=le<v?v-le+1e9:le-v;(!P||H>me)&&(P=K,H=me)}}return P||(P=f[f.length-1]),P.from<E&&(P={from:E,to:P.to,level:P.level}),P.to>_&&(P={from:P.from,to:_,level:P.level}),P}var bs;function vo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(bs==null){bs=D("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)bs.appendChild(document.createTextNode("x")),bs.appendChild(D("br"));bs.appendChild(document.createTextNode("x"))}F(n.measure,bs);var l=bs.offsetHeight/50;return l>3&&(n.cachedTextHeight=l),O(n.measure),l||1}function mo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var s=D("span","xxxxxxxxxx"),l=D("pre",[s],"CodeMirror-line-like");F(n.measure,l);var u=s.getBoundingClientRect(),f=(u.right-u.left)/10;return f>2&&(n.cachedCharWidth=f),f||10}function dd(n){for(var s=n.display,l={},u={},f=s.gutters.clientLeft,v=s.gutters.firstChild,b=0;v;v=v.nextSibling,++b){var A=n.display.gutterSpecs[b].className;l[A]=v.offsetLeft+v.clientLeft+f,u[A]=v.clientWidth}return{fixedPos:pd(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:l,gutterWidth:u,wrapperWidth:s.wrapper.clientWidth}}function pd(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Jm(n){var s=vo(n.display),l=n.options.lineWrapping,u=l&&Math.max(5,n.display.scroller.clientWidth/mo(n.display)-3);return function(f){if(zi(n.doc,f))return 0;var v=0;if(f.widgets)for(var b=0;b<f.widgets.length;b++)f.widgets[b].height&&(v+=f.widgets[b].height);return l?v+(Math.ceil(f.text.length/u)||1)*s:v+s}}function gd(n){var s=n.doc,l=Jm(n);s.iter(function(u){var f=l(u);f!=u.height&&tn(u,f)})}function ws(n,s,l,u){var f=n.display;if(!l&&br(s).getAttribute("cm-not-content")=="true")return null;var v,b,A=f.lineSpace.getBoundingClientRect();try{v=s.clientX-A.left,b=s.clientY-A.top}catch{return null}var E=fd(n,v,b),_;if(u&&E.xRel>0&&(_=Te(n.doc,E.line).text).length==E.ch){var P=Q(_,_.length,n.options.tabSize)-_.length;E=W(E.line,Math.max(0,Math.round((v-zm(n.display).left)/mo(n.display))-P))}return E}function Ds(n,s){if(s>=n.display.viewTo||(s-=n.display.viewFrom,s<0))return null;for(var l=n.display.view,u=0;u<l.length;u++)if(s-=l[u].size,s<0)return u}function wr(n,s,l,u){s==null&&(s=n.doc.first),l==null&&(l=n.doc.first+n.doc.size),u||(u=0);var f=n.display;if(u&&l<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>s)&&(f.updateLineNumbers=s),n.curOp.viewChanged=!0,s>=f.viewTo)si&&rd(n.doc,s)<f.viewTo&&Hi(n);else if(l<=f.viewFrom)si&&Tm(n.doc,l+u)>f.viewFrom?Hi(n):(f.viewFrom+=u,f.viewTo+=u);else if(s<=f.viewFrom&&l>=f.viewTo)Hi(n);else if(s<=f.viewFrom){var v=Ql(n,l,l+u,1);v?(f.view=f.view.slice(v.index),f.viewFrom=v.lineN,f.viewTo+=u):Hi(n)}else if(l>=f.viewTo){var b=Ql(n,s,s,-1);b?(f.view=f.view.slice(0,b.index),f.viewTo=b.lineN):Hi(n)}else{var A=Ql(n,s,s,-1),E=Ql(n,l,l+u,1);A&&E?(f.view=f.view.slice(0,A.index).concat(Wl(n,A.lineN,E.lineN)).concat(f.view.slice(E.index)),f.viewTo+=u):Hi(n)}var _=f.externalMeasured;_&&(l<_.lineN?_.lineN+=u:s<_.lineN+_.size&&(f.externalMeasured=null))}function Ui(n,s,l){n.curOp.viewChanged=!0;var u=n.display,f=n.display.externalMeasured;if(f&&s>=f.lineN&&s<f.lineN+f.size&&(u.externalMeasured=null),!(s<u.viewFrom||s>=u.viewTo)){var v=u.view[Ds(n,s)];if(v.node!=null){var b=v.changes||(v.changes=[]);ce(b,l)==-1&&b.push(l)}}}function Hi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ql(n,s,l,u){var f=Ds(n,s),v,b=n.display.view;if(!si||l==n.doc.first+n.doc.size)return{index:f,lineN:l};for(var A=n.display.viewFrom,E=0;E<f;E++)A+=b[E].size;if(A!=s){if(u>0){if(f==b.length-1)return null;v=A+b[f].size-s,f++}else v=A-s;s+=v,l+=v}for(;rd(n.doc,l)!=l;){if(f==(u<0?0:b.length-1))return null;l+=u*b[f-(u<0?1:0)].size,f+=u}return{index:f,lineN:l}}function QF(n,s,l){var u=n.display,f=u.view;f.length==0||s>=u.viewTo||l<=u.viewFrom?(u.view=Wl(n,s,l),u.viewFrom=s):(u.viewFrom>s?u.view=Wl(n,s,u.viewFrom).concat(u.view):u.viewFrom<s&&(u.view=u.view.slice(Ds(n,s))),u.viewFrom=s,u.viewTo<l?u.view=u.view.concat(Wl(n,u.viewTo,l)):u.viewTo>l&&(u.view=u.view.slice(0,Ds(n,l)))),u.viewTo=l}function ey(n){for(var s=n.display.view,l=0,u=0;u<s.length;u++){var f=s[u];!f.hidden&&(!f.node||f.changes)&&++l}return l}function Ga(n){n.display.input.showSelection(n.display.input.prepareSelection())}function ty(n,s){s===void 0&&(s=!0);var l=n.doc,u={},f=u.cursors=document.createDocumentFragment(),v=u.selection=document.createDocumentFragment(),b=n.options.$customCursor;b&&(s=!0);for(var A=0;A<l.sel.ranges.length;A++)if(!(!s&&A==l.sel.primIndex)){var E=l.sel.ranges[A];if(!(E.from().line>=n.display.viewTo||E.to().line<n.display.viewFrom)){var _=E.empty();if(b){var P=b(n,E);P&&vd(n,P,f)}else(_||n.options.showCursorWhenSelecting)&&vd(n,E.head,f);_||YF(n,E,v)}}return u}function vd(n,s,l){var u=pn(n,s,"div",null,null,!n.options.singleCursorHeightPerLine),f=l.appendChild(D("div"," ","CodeMirror-cursor"));if(f.style.left=u.left+"px",f.style.top=u.top+"px",f.style.height=Math.max(0,u.bottom-u.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var v=Xl(n,s,"div",null,null),b=v.right-v.left;f.style.width=(b>0?b:n.defaultCharWidth())+"px"}if(u.other){var A=l.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));A.style.display="",A.style.left=u.other.left+"px",A.style.top=u.other.top+"px",A.style.height=(u.other.bottom-u.other.top)*.85+"px"}}function Yl(n,s){return n.top-s.top||n.left-s.left}function YF(n,s,l){var u=n.display,f=n.doc,v=document.createDocumentFragment(),b=zm(n.display),A=b.left,E=Math.max(u.sizerWidth,ys(n)-u.sizer.offsetLeft)-b.right,_=f.direction=="ltr";function P(we,Se,Ie,Oe){Se<0&&(Se=0),Se=Math.round(Se),Oe=Math.round(Oe),v.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+we+`px;
22
+ top: `+Se+"px; width: "+(Ie??E-we)+`px;
23
+ height: `+(Oe-Se)+"px"))}function H(we,Se,Ie){var Oe=Te(f,we),We=Oe.text.length,mt,Qt;function Ft(It,Er){return Xl(n,W(we,It),"div",Oe,Er)}function Pr(It,Er,rr){var qt=Zm(n,Oe,null,It),Rt=Er=="ltr"==(rr=="after")?"left":"right",Lt=rr=="after"?qt.begin:qt.end-(/\s/.test(Oe.text.charAt(qt.end-1))?2:1);return Ft(Lt,Rt)[Rt]}var Ar=Dt(Oe,f.direction);return Lr(Ar,Se||0,Ie??We,function(It,Er,rr,qt){var Rt=rr=="ltr",Lt=Ft(It,Rt?"left":"right"),xr=Ft(Er-1,Rt?"right":"left"),To=Se==null&&It==0,Ki=Ie==null&&Er==We,lr=qt==0,Rn=!Ar||qt==Ar.length-1;if(xr.top-Lt.top<=3){var Yt=(_?To:Ki)&&lr,qd=(_?Ki:To)&&Rn,ci=Yt?A:(Rt?Lt:xr).left,_s=qd?E:(Rt?xr:Lt).right;P(ci,Lt.top,_s-ci,Lt.bottom)}else{var Ss,pr,ko,jd;Rt?(Ss=_&&To&&lr?A:Lt.left,pr=_?E:Pr(It,rr,"before"),ko=_?A:Pr(Er,rr,"after"),jd=_&&Ki&&Rn?E:xr.right):(Ss=_?Pr(It,rr,"before"):A,pr=!_&&To&&lr?E:Lt.right,ko=!_&&Ki&&Rn?A:xr.left,jd=_?Pr(Er,rr,"after"):E),P(Ss,Lt.top,pr-Ss,Lt.bottom),Lt.bottom<xr.top&&P(A,Lt.bottom,null,xr.top),P(ko,xr.top,jd-ko,xr.bottom)}(!mt||Yl(Lt,mt)<0)&&(mt=Lt),Yl(xr,mt)<0&&(mt=xr),(!Qt||Yl(Lt,Qt)<0)&&(Qt=Lt),Yl(xr,Qt)<0&&(Qt=xr)}),{start:mt,end:Qt}}var X=s.from(),K=s.to();if(X.line==K.line)H(X.line,X.ch,K.ch);else{var ne=Te(f,X.line),le=Te(f,K.line),me=dn(ne)==dn(le),be=H(X.line,X.ch,me?ne.text.length+1:null).end,Ce=H(K.line,me?0:null,K.ch).start;me&&(be.top<Ce.top-2?(P(be.right,be.top,null,be.bottom),P(A,Ce.top,Ce.left,Ce.bottom)):P(be.right,be.top,Ce.left-be.right,be.bottom)),be.bottom<Ce.top&&P(A,be.bottom,null,Ce.top)}l.appendChild(v)}function md(n){if(n.state.focused){var s=n.display;clearInterval(s.blinker);var l=!0;s.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?s.blinker=setInterval(function(){n.hasFocus()||yo(n),s.cursorDiv.style.visibility=(l=!l)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function ry(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||bd(n))}function yd(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&yo(n))},100)}function bd(n,s){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(wt(n,"focus",n,s),n.state.focused=!0,ge(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()),md(n))}function yo(n,s){n.state.delayingBlurEvent||(n.state.focused&&(wt(n,"blur",n,s),n.state.focused=!1,z(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Zl(n){for(var s=n.display,l=s.lineDiv.offsetTop,u=Math.max(0,s.scroller.getBoundingClientRect().top),f=s.lineDiv.getBoundingClientRect().top,v=0,b=0;b<s.view.length;b++){var A=s.view[b],E=n.options.lineWrapping,_=void 0,P=0;if(!A.hidden){if(f+=A.line.height,d&&p<8){var H=A.node.offsetTop+A.node.offsetHeight;_=H-l,l=H}else{var X=A.node.getBoundingClientRect();_=X.bottom-X.top,!E&&A.text.firstChild&&(P=A.text.firstChild.getBoundingClientRect().right-X.left-1)}var K=A.line.height-_;if((K>.005||K<-.005)&&(f<u&&(v-=K),tn(A.line,_),ny(A.line),A.rest))for(var ne=0;ne<A.rest.length;ne++)ny(A.rest[ne]);if(P>n.display.sizerWidth){var le=Math.ceil(P/mo(n.display));le>n.display.maxLineLength&&(n.display.maxLineLength=le,n.display.maxLine=A.line,n.display.maxLineChanged=!0)}}}Math.abs(v)>2&&(s.scroller.scrollTop+=v)}function ny(n){if(n.widgets)for(var s=0;s<n.widgets.length;++s){var l=n.widgets[s],u=l.node.parentNode;u&&(l.height=u.offsetHeight)}}function Jl(n,s,l){var u=l&&l.top!=null?Math.max(0,l.top):n.scroller.scrollTop;u=Math.floor(u-Gl(n));var f=l&&l.bottom!=null?l.bottom:u+n.wrapper.clientHeight,v=On(s,u),b=On(s,f);if(l&&l.ensure){var A=l.ensure.from.line,E=l.ensure.to.line;A<v?(v=A,b=On(s,oi(Te(s,A))+n.wrapper.clientHeight)):Math.min(E,s.lastLine())>=b&&(v=On(s,oi(Te(s,E))-n.wrapper.clientHeight),b=E)}return{from:v,to:Math.max(b,v+1)}}function ZF(n,s){if(!Tt(n,"scrollCursorIntoView")){var l=n.display,u=l.sizer.getBoundingClientRect(),f=null,v=l.wrapper.ownerDocument;if(s.top+u.top<0?f=!0:s.bottom+u.top>(v.defaultView.innerHeight||v.documentElement.clientHeight)&&(f=!1),f!=null&&!C){var b=D("div","​",null,`position: absolute;
24
+ top: `+(s.top-l.viewOffset-Gl(n.display))+`px;
25
+ height: `+(s.bottom-s.top+Nn(n)+l.barHeight)+`px;
26
+ left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");n.display.lineSpace.appendChild(b),b.scrollIntoView(f),n.display.lineSpace.removeChild(b)}}}function JF(n,s,l,u){u==null&&(u=0);var f;!n.options.lineWrapping&&s==l&&(l=s.sticky=="before"?W(s.line,s.ch+1,"before"):s,s=s.ch?W(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var v=0;v<5;v++){var b=!1,A=pn(n,s),E=!l||l==s?A:pn(n,l);f={left:Math.min(A.left,E.left),top:Math.min(A.top,E.top)-u,right:Math.max(A.left,E.left),bottom:Math.max(A.bottom,E.bottom)+u};var _=wd(n,f),P=n.doc.scrollTop,H=n.doc.scrollLeft;if(_.scrollTop!=null&&(Xa(n,_.scrollTop),Math.abs(n.doc.scrollTop-P)>1&&(b=!0)),_.scrollLeft!=null&&(As(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-H)>1&&(b=!0)),!b)break}return f}function e2(n,s){var l=wd(n,s);l.scrollTop!=null&&Xa(n,l.scrollTop),l.scrollLeft!=null&&As(n,l.scrollLeft)}function wd(n,s){var l=n.display,u=vo(n.display);s.top<0&&(s.top=0);var f=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:l.scroller.scrollTop,v=ad(n),b={};s.bottom-s.top>v&&(s.bottom=s.top+v);var A=n.doc.height+od(l),E=s.top<u,_=s.bottom>A-u;if(s.top<f)b.scrollTop=E?0:s.top;else if(s.bottom>f+v){var P=Math.min(s.top,(_?A:s.bottom)-v);P!=f&&(b.scrollTop=P)}var H=n.options.fixedGutter?0:l.gutters.offsetWidth,X=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:l.scroller.scrollLeft-H,K=ys(n)-l.gutters.offsetWidth,ne=s.right-s.left>K;return ne&&(s.right=s.left+K),s.left<10?b.scrollLeft=0:s.left<X?b.scrollLeft=Math.max(0,s.left+H-(ne?0:10)):s.right>K+X-3&&(b.scrollLeft=s.right+(ne?0:10)-K),b}function Dd(n,s){s!=null&&(ec(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+s)}function bo(n){ec(n);var s=n.getCursor();n.curOp.scrollToPos={from:s,to:s,margin:n.options.cursorScrollMargin}}function Ka(n,s,l){(s!=null||l!=null)&&ec(n),s!=null&&(n.curOp.scrollLeft=s),l!=null&&(n.curOp.scrollTop=l)}function t2(n,s){ec(n),n.curOp.scrollToPos=s}function ec(n){var s=n.curOp.scrollToPos;if(s){n.curOp.scrollToPos=null;var l=Qm(n,s.from),u=Qm(n,s.to);iy(n,l,u,s.margin)}}function iy(n,s,l,u){var f=wd(n,{left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-u,right:Math.max(s.right,l.right),bottom:Math.max(s.bottom,l.bottom)+u});Ka(n,f.scrollLeft,f.scrollTop)}function Xa(n,s){Math.abs(n.doc.scrollTop-s)<2||(o||Ed(n,{top:s}),sy(n,s,!0),o&&Ed(n),Za(n,100))}function sy(n,s,l){s=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,s)),!(n.display.scroller.scrollTop==s&&!l)&&(n.doc.scrollTop=s,n.display.scrollbars.setScrollTop(s),n.display.scroller.scrollTop!=s&&(n.display.scroller.scrollTop=s))}function As(n,s,l,u){s=Math.max(0,Math.min(s,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((l?s==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-s)<2)&&!u)&&(n.doc.scrollLeft=s,cy(n),n.display.scroller.scrollLeft!=s&&(n.display.scroller.scrollLeft=s),n.display.scrollbars.setScrollLeft(s))}function Qa(n){var s=n.display,l=s.gutters.offsetWidth,u=Math.round(n.doc.height+od(n.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:n.options.fixedGutter?l:0,docHeight:u,scrollHeight:u+Nn(n)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:l}}var Es=function(n,s,l){this.cm=l;var u=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");u.tabIndex=f.tabIndex=-1,n(u),n(f),De(u,"scroll",function(){u.clientHeight&&s(u.scrollTop,"vertical")}),De(f,"scroll",function(){f.clientWidth&&s(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Es.prototype.update=function(n){var s=n.scrollWidth>n.clientWidth+1,l=n.scrollHeight>n.clientHeight+1,u=n.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=s?u+"px":"0";var f=n.viewHeight-(s?u:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=l?u+"px":"0",this.horiz.style.left=n.barLeft+"px";var v=n.viewWidth-n.barLeft-(l?u:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+v)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(u==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?u:0,bottom:s?u:0}},Es.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Es.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Es.prototype.zeroWidthHack=function(){var n=T&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ae,this.disableVert=new ae},Es.prototype.enableZeroWidthBar=function(n,s,l){n.style.visibility="";function u(){var f=n.getBoundingClientRect(),v=l=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);v!=n?n.style.visibility="hidden":s.set(1e3,u)}s.set(1e3,u)},Es.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Ya=function(){};Ya.prototype.update=function(){return{bottom:0,right:0}},Ya.prototype.setScrollLeft=function(){},Ya.prototype.setScrollTop=function(){},Ya.prototype.clear=function(){};function wo(n,s){s||(s=Qa(n));var l=n.display.barWidth,u=n.display.barHeight;oy(n,s);for(var f=0;f<4&&l!=n.display.barWidth||u!=n.display.barHeight;f++)l!=n.display.barWidth&&n.options.lineWrapping&&Zl(n),oy(n,Qa(n)),l=n.display.barWidth,u=n.display.barHeight}function oy(n,s){var l=n.display,u=l.scrollbars.update(s);l.sizer.style.paddingRight=(l.barWidth=u.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=u.bottom)+"px",l.heightForcer.style.borderBottom=u.bottom+"px solid transparent",u.right&&u.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=u.bottom+"px",l.scrollbarFiller.style.width=u.right+"px"):l.scrollbarFiller.style.display="",u.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=u.bottom+"px",l.gutterFiller.style.width=s.gutterWidth+"px"):l.gutterFiller.style.display=""}var ay={native:Es,null:Ya};function uy(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&z(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ay[n.options.scrollbarStyle](function(s){n.display.wrapper.insertBefore(s,n.display.scrollbarFiller),De(s,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,l){l=="horizontal"?As(n,s):Xa(n,s)},n),n.display.scrollbars.addClass&&ge(n.display.wrapper,n.display.scrollbars.addClass)}var r2=0;function xs(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:++r2,markArrays:null},BF(n.curOp)}function Cs(n){var s=n.curOp;s&&PF(s,function(l){for(var u=0;u<l.ops.length;u++)l.ops[u].cm.curOp=null;n2(l)})}function n2(n){for(var s=n.ops,l=0;l<s.length;l++)i2(s[l]);for(var u=0;u<s.length;u++)s2(s[u]);for(var f=0;f<s.length;f++)o2(s[f]);for(var v=0;v<s.length;v++)a2(s[v]);for(var b=0;b<s.length;b++)u2(s[b])}function i2(n){var s=n.cm,l=s.display;c2(s),n.updateMaxLine&&id(s),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<l.viewFrom||n.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&s.options.lineWrapping,n.update=n.mustUpdate&&new tc(s,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function s2(n){n.updatedDisplay=n.mustUpdate&&Ad(n.cm,n.update)}function o2(n){var s=n.cm,l=s.display;n.updatedDisplay&&Zl(s),n.barMeasure=Qa(s),l.maxLineChanged&&!s.options.lineWrapping&&(n.adjustWidthTo=Hm(s,l.maxLine,l.maxLine.text.length).left+3,s.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+n.adjustWidthTo+Nn(s)+s.display.barWidth),n.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+n.adjustWidthTo-ys(s))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=l.input.prepareSelection())}function a2(n){var s=n.cm;n.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<s.doc.scrollLeft&&As(s,Math.min(s.display.scroller.scrollLeft,n.maxScrollLeft),!0),s.display.maxLineChanged=!1);var l=n.focus&&n.focus==oe(Ue(s));n.preparedSelection&&s.display.input.showSelection(n.preparedSelection,l),(n.updatedDisplay||n.startHeight!=s.doc.height)&&wo(s,n.barMeasure),n.updatedDisplay&&Cd(s,n.barMeasure),n.selectionChanged&&md(s),s.state.focused&&n.updateInput&&s.display.input.reset(n.typing),l&&ry(n.cm)}function u2(n){var s=n.cm,l=s.display,u=s.doc;if(n.updatedDisplay&&ly(s,n.update),l.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),n.scrollTop!=null&&sy(s,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&As(s,n.scrollLeft,!0,!0),n.scrollToPos){var f=JF(s,qe(u,n.scrollToPos.from),qe(u,n.scrollToPos.to),n.scrollToPos.margin);ZF(s,f)}var v=n.maybeHiddenMarkers,b=n.maybeUnhiddenMarkers;if(v)for(var A=0;A<v.length;++A)v[A].lines.length||wt(v[A],"hide");if(b)for(var E=0;E<b.length;++E)b[E].lines.length&&wt(b[E],"unhide");l.wrapper.offsetHeight&&(u.scrollTop=s.display.scroller.scrollTop),n.changeObjs&&wt(s,"changes",s,n.changeObjs),n.update&&n.update.finish()}function Or(n,s){if(n.curOp)return s();xs(n);try{return s()}finally{Cs(n)}}function Kt(n,s){return function(){if(n.curOp)return s.apply(n,arguments);xs(n);try{return s.apply(n,arguments)}finally{Cs(n)}}}function dr(n){return function(){if(this.curOp)return n.apply(this,arguments);xs(this);try{return n.apply(this,arguments)}finally{Cs(this)}}}function Xt(n){return function(){var s=this.cm;if(!s||s.curOp)return n.apply(this,arguments);xs(s);try{return n.apply(this,arguments)}finally{Cs(s)}}}function Za(n,s){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(s,et(l2,n))}function l2(n){var s=n.doc;if(!(s.highlightFrontier>=n.display.viewTo)){var l=+new Date+n.options.workTime,u=Ua(n,s.highlightFrontier),f=[];s.iter(u.line,Math.min(s.first+s.size,n.display.viewTo+500),function(v){if(u.line>=n.display.viewFrom){var b=v.styles,A=v.text.length>n.options.maxHighlightLength?ni(s.mode,u.state):null,E=vm(n,v,u,!0);A&&(u.state=A),v.styles=E.styles;var _=v.styleClasses,P=E.classes;P?v.styleClasses=P:_&&(v.styleClasses=null);for(var H=!b||b.length!=v.styles.length||_!=P&&(!_||!P||_.bgClass!=P.bgClass||_.textClass!=P.textClass),X=0;!H&&X<b.length;++X)H=b[X]!=v.styles[X];H&&f.push(u.line),v.stateAfter=u.save(),u.nextLine()}else v.text.length<=n.options.maxHighlightLength&&Zh(n,v.text,u),v.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>l)return Za(n,n.options.workDelay),!0}),s.highlightFrontier=u.line,s.modeFrontier=Math.max(s.modeFrontier,u.line),f.length&&Or(n,function(){for(var v=0;v<f.length;v++)Ui(n,f[v],"text")})}}var tc=function(n,s,l){var u=n.display;this.viewport=s,this.visible=Jl(u,n.doc,s),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=ys(n),this.force=l,this.dims=dd(n),this.events=[]};tc.prototype.signal=function(n,s){fr(n,s)&&this.events.push(arguments)},tc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)wt.apply(null,this.events[n])};function c2(n){var s=n.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=Nn(n)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=Nn(n)+"px",s.scrollbarsClipped=!0)}function f2(n){if(n.hasFocus())return null;var s=oe(Ue(n));if(!s||!J(n.display.lineDiv,s))return null;var l={activeElt:s};if(window.getSelection){var u=Ke(n).getSelection();u.anchorNode&&u.extend&&J(n.display.lineDiv,u.anchorNode)&&(l.anchorNode=u.anchorNode,l.anchorOffset=u.anchorOffset,l.focusNode=u.focusNode,l.focusOffset=u.focusOffset)}return l}function h2(n){if(!(!n||!n.activeElt||n.activeElt==oe(n.activeElt.ownerDocument))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&J(document.body,n.anchorNode)&&J(document.body,n.focusNode))){var s=n.activeElt.ownerDocument,l=s.defaultView.getSelection(),u=s.createRange();u.setEnd(n.anchorNode,n.anchorOffset),u.collapse(!1),l.removeAllRanges(),l.addRange(u),l.extend(n.focusNode,n.focusOffset)}}function Ad(n,s){var l=n.display,u=n.doc;if(s.editorIsHidden)return Hi(n),!1;if(!s.force&&s.visible.from>=l.viewFrom&&s.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&ey(n)==0)return!1;fy(n)&&(Hi(n),s.dims=dd(n));var f=u.first+u.size,v=Math.max(s.visible.from-n.options.viewportMargin,u.first),b=Math.min(f,s.visible.to+n.options.viewportMargin);l.viewFrom<v&&v-l.viewFrom<20&&(v=Math.max(u.first,l.viewFrom)),l.viewTo>b&&l.viewTo-b<20&&(b=Math.min(f,l.viewTo)),si&&(v=rd(n.doc,v),b=Tm(n.doc,b));var A=v!=l.viewFrom||b!=l.viewTo||l.lastWrapHeight!=s.wrapperHeight||l.lastWrapWidth!=s.wrapperWidth;QF(n,v,b),l.viewOffset=oi(Te(n.doc,l.viewFrom)),n.display.mover.style.top=l.viewOffset+"px";var E=ey(n);if(!A&&E==0&&!s.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=f2(n);return E>4&&(l.lineDiv.style.display="none"),d2(n,l.updateLineNumbers,s.dims),E>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,h2(_),O(l.cursorDiv),O(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,A&&(l.lastWrapHeight=s.wrapperHeight,l.lastWrapWidth=s.wrapperWidth,Za(n,400)),l.updateLineNumbers=null,!0}function ly(n,s){for(var l=s.viewport,u=!0;;u=!1){if(!u||!n.options.lineWrapping||s.oldDisplayWidth==ys(n)){if(l&&l.top!=null&&(l={top:Math.min(n.doc.height+od(n.display)-ad(n),l.top)}),s.visible=Jl(n.display,n.doc,l),s.visible.from>=n.display.viewFrom&&s.visible.to<=n.display.viewTo)break}else u&&(s.visible=Jl(n.display,n.doc,l));if(!Ad(n,s))break;Zl(n);var f=Qa(n);Ga(n),wo(n,f),Cd(n,f),s.force=!1}s.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(s.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function Ed(n,s){var l=new tc(n,s);if(Ad(n,l)){Zl(n),ly(n,l);var u=Qa(n);Ga(n),wo(n,u),Cd(n,u),l.finish()}}function d2(n,s,l){var u=n.display,f=n.options.lineNumbers,v=u.lineDiv,b=v.firstChild;function A(ne){var le=ne.nextSibling;return g&&T&&n.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),le}for(var E=u.view,_=u.viewFrom,P=0;P<E.length;P++){var H=E[P];if(!H.hidden)if(!H.node||H.node.parentNode!=v){var X=zF(n,H,_,l);v.insertBefore(X,b)}else{for(;b!=H.node;)b=A(b);var K=f&&s!=null&&s<=_&&H.lineNumber;H.changes&&(ce(H.changes,"gutter")>-1&&(K=!1),Pm(n,H,_,l)),K&&(O(H.lineNumber),H.lineNumber.appendChild(document.createTextNode(q(n.options,_)))),b=H.node.nextSibling}_+=H.size}for(;b;)b=A(b)}function xd(n){var s=n.gutters.offsetWidth;n.sizer.style.marginLeft=s+"px",Gt(n,"gutterChanged",n)}function Cd(n,s){n.display.sizer.style.minHeight=s.docHeight+"px",n.display.heightForcer.style.top=s.docHeight+"px",n.display.gutters.style.height=s.docHeight+n.display.barHeight+Nn(n)+"px"}function cy(n){var s=n.display,l=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!n.options.fixedGutter))){for(var u=pd(s)-s.scroller.scrollLeft+n.doc.scrollLeft,f=s.gutters.offsetWidth,v=u+"px",b=0;b<l.length;b++)if(!l[b].hidden){n.options.fixedGutter&&(l[b].gutter&&(l[b].gutter.style.left=v),l[b].gutterBackground&&(l[b].gutterBackground.style.left=v));var A=l[b].alignable;if(A)for(var E=0;E<A.length;E++)A[E].style.left=v}n.options.fixedGutter&&(s.gutters.style.left=u+f+"px")}}function fy(n){if(!n.options.lineNumbers)return!1;var s=n.doc,l=q(n.options,s.first+s.size-1),u=n.display;if(l.length!=u.lineNumChars){var f=u.measure.appendChild(D("div",[D("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),v=f.firstChild.offsetWidth,b=f.offsetWidth-v;return u.lineGutter.style.width="",u.lineNumInnerWidth=Math.max(v,u.lineGutter.offsetWidth-b)+1,u.lineNumWidth=u.lineNumInnerWidth+b,u.lineNumChars=u.lineNumInnerWidth?l.length:-1,u.lineGutter.style.width=u.lineNumWidth+"px",xd(n.display),!0}return!1}function _d(n,s){for(var l=[],u=!1,f=0;f<n.length;f++){var v=n[f],b=null;if(typeof v!="string"&&(b=v.style,v=v.className),v=="CodeMirror-linenumbers")if(s)u=!0;else continue;l.push({className:v,style:b})}return s&&!u&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function hy(n){var s=n.gutters,l=n.gutterSpecs;O(s),n.lineGutter=null;for(var u=0;u<l.length;++u){var f=l[u],v=f.className,b=f.style,A=s.appendChild(D("div",null,"CodeMirror-gutter "+v));b&&(A.style.cssText=b),v=="CodeMirror-linenumbers"&&(n.lineGutter=A,A.style.width=(n.lineNumWidth||1)+"px")}s.style.display=l.length?"":"none",xd(n)}function Ja(n){hy(n.display),wr(n),cy(n)}function p2(n,s,l,u){var f=this;this.input=l,f.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=I("div",null,"CodeMirror-code"),f.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=D("div",null,"CodeMirror-cursors"),f.measure=D("div",null,"CodeMirror-measure"),f.lineMeasure=D("div",null,"CodeMirror-measure"),f.lineSpace=I("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var v=I("div",[f.lineSpace],"CodeMirror-lines");f.mover=D("div",[v],null,"position: relative"),f.sizer=D("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=D("div",null,null,"position: absolute; height: "+Le+"px; width: 1px;"),f.gutters=D("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=D("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=D("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),m&&w>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),d&&p<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(o&&L)&&(f.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(f.wrapper):n(f.wrapper)),f.viewFrom=f.viewTo=s.first,f.reportedViewFrom=f.reportedViewTo=s.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=_d(u.gutters,u.lineNumbers),hy(f),l.init(f)}var rc=0,ui=null;d?ui=-.53:o?ui=15:m?ui=-.7:B&&(ui=-1/3);function dy(n){var s=n.wheelDeltaX,l=n.wheelDeltaY;return s==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(s=n.detail),l==null&&n.detail&&n.axis==n.VERTICAL_AXIS?l=n.detail:l==null&&(l=n.wheelDelta),{x:s,y:l}}function g2(n){var s=dy(n);return s.x*=ui,s.y*=ui,s}function py(n,s){m&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var l=dy(s),u=l.x,f=l.y,v=ui;s.deltaMode===0&&(u=s.deltaX,f=s.deltaY,v=1);var b=n.display,A=b.scroller,E=A.scrollWidth>A.clientWidth,_=A.scrollHeight>A.clientHeight;if(u&&E||f&&_){if(f&&T&&g){e:for(var P=s.target,H=b.view;P!=A;P=P.parentNode)for(var X=0;X<H.length;X++)if(H[X].node==P){n.display.currentWheelTarget=P;break e}}if(u&&!o&&!$&&v!=null){f&&_&&Xa(n,Math.max(0,A.scrollTop+f*v)),As(n,Math.max(0,A.scrollLeft+u*v)),(!f||f&&_)&&ar(s),b.wheelStartX=null;return}if(f&&v!=null){var K=f*v,ne=n.doc.scrollTop,le=ne+b.wrapper.clientHeight;K<0?ne=Math.max(0,ne+K-50):le=Math.min(n.doc.height,le+K+50),Ed(n,{top:ne,bottom:le})}rc<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=A.scrollLeft,b.wheelStartY=A.scrollTop,b.wheelDX=u,b.wheelDY=f,setTimeout(function(){if(b.wheelStartX!=null){var me=A.scrollLeft-b.wheelStartX,be=A.scrollTop-b.wheelStartY,Ce=be&&b.wheelDY&&be/b.wheelDY||me&&b.wheelDX&&me/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ce&&(ui=(ui*rc+Ce)/(rc+1),++rc)}},200)):(b.wheelDX+=u,b.wheelDY+=f))}}var Wr=function(n,s){this.ranges=n,this.primIndex=s};Wr.prototype.primary=function(){return this.ranges[this.primIndex]},Wr.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var l=this.ranges[s],u=n.ranges[s];if(!He(l.anchor,u.anchor)||!He(l.head,u.head))return!1}return!0},Wr.prototype.deepCopy=function(){for(var n=[],s=0;s<this.ranges.length;s++)n[s]=new ct(Qe(this.ranges[s].anchor),Qe(this.ranges[s].head));return new Wr(n,this.primIndex)},Wr.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Wr.prototype.contains=function(n,s){s||(s=n);for(var l=0;l<this.ranges.length;l++){var u=this.ranges[l];if(re(s,u.from())>=0&&re(n,u.to())<=0)return l}return-1};var ct=function(n,s){this.anchor=n,this.head=s};ct.prototype.from=function(){return Ht(this.anchor,this.head)},ct.prototype.to=function(){return ot(this.anchor,this.head)},ct.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function gn(n,s,l){var u=n&&n.options.selectionsMayTouch,f=s[l];s.sort(function(X,K){return re(X.from(),K.from())}),l=ce(s,f);for(var v=1;v<s.length;v++){var b=s[v],A=s[v-1],E=re(A.to(),b.from());if(u&&!b.empty()?E>0:E>=0){var _=Ht(A.from(),b.from()),P=ot(A.to(),b.to()),H=A.empty()?b.from()==b.head:A.from()==A.head;v<=l&&--l,s.splice(--v,2,new ct(H?P:_,H?_:P))}}return new Wr(s,l)}function qi(n,s){return new Wr([new ct(n,s||n)],0)}function ji(n){return n.text?W(n.from.line+n.text.length-1,he(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function gy(n,s){if(re(n,s.from)<0)return n;if(re(n,s.to)<=0)return ji(s);var l=n.line+s.text.length-(s.to.line-s.from.line)-1,u=n.ch;return n.line==s.to.line&&(u+=ji(s).ch-s.to.ch),W(l,u)}function Sd(n,s){for(var l=[],u=0;u<n.sel.ranges.length;u++){var f=n.sel.ranges[u];l.push(new ct(gy(f.anchor,s),gy(f.head,s)))}return gn(n.cm,l,n.sel.primIndex)}function vy(n,s,l){return n.line==s.line?W(l.line,n.ch-s.ch+l.ch):W(l.line+(n.line-s.line),n.ch)}function v2(n,s,l){for(var u=[],f=W(n.first,0),v=f,b=0;b<s.length;b++){var A=s[b],E=vy(A.from,f,v),_=vy(ji(A),f,v);if(f=A.to,v=_,l=="around"){var P=n.sel.ranges[b],H=re(P.head,P.anchor)<0;u[b]=new ct(H?_:E,H?E:_)}else u[b]=new ct(E,E)}return new Wr(u,n.sel.primIndex)}function Fd(n){n.doc.mode=ri(n.options,n.doc.modeOption),eu(n)}function eu(n){n.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,Za(n,100),n.state.modeGen++,n.curOp&&wr(n)}function my(n,s){return s.from.ch==0&&s.to.ch==0&&he(s.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function $d(n,s,l,u){function f(Ce){return l?l[Ce]:null}function v(Ce,we,Se){xF(Ce,we,Se,u),Gt(Ce,"change",Ce,s)}function b(Ce,we){for(var Se=[],Ie=Ce;Ie<we;++Ie)Se.push(new ho(_[Ie],f(Ie),u));return Se}var A=s.from,E=s.to,_=s.text,P=Te(n,A.line),H=Te(n,E.line),X=he(_),K=f(_.length-1),ne=E.line-A.line;if(s.full)n.insert(0,b(0,_.length)),n.remove(_.length,n.size-_.length);else if(my(n,s)){var le=b(0,_.length-1);v(H,H.text,K),ne&&n.remove(A.line,ne),le.length&&n.insert(A.line,le)}else if(P==H)if(_.length==1)v(P,P.text.slice(0,A.ch)+X+P.text.slice(E.ch),K);else{var me=b(1,_.length-1);me.push(new ho(X+P.text.slice(E.ch),K,u)),v(P,P.text.slice(0,A.ch)+_[0],f(0)),n.insert(A.line+1,me)}else if(_.length==1)v(P,P.text.slice(0,A.ch)+_[0]+H.text.slice(E.ch),f(0)),n.remove(A.line+1,ne);else{v(P,P.text.slice(0,A.ch)+_[0],f(0)),v(H,X+H.text.slice(E.ch),K);var be=b(1,_.length-1);ne>1&&n.remove(A.line+1,ne-1),n.insert(A.line+1,be)}Gt(n,"change",n,s)}function Vi(n,s,l){function u(f,v,b){if(f.linked)for(var A=0;A<f.linked.length;++A){var E=f.linked[A];if(E.doc!=v){var _=b&&E.sharedHist;l&&!_||(s(E.doc,_),u(E.doc,f,_))}}}u(n,null,!0)}function yy(n,s){if(s.cm)throw new Error("This document is already in use.");n.doc=s,s.cm=n,gd(n),Fd(n),by(n),n.options.direction=s.direction,n.options.lineWrapping||id(n),n.options.mode=s.modeOption,wr(n)}function by(n){(n.doc.direction=="rtl"?ge:z)(n.display.lineDiv,"CodeMirror-rtl")}function m2(n){Or(n,function(){by(n),wr(n)})}function nc(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 Td(n,s){var l={from:Qe(s.from),to:ji(s),text:ii(n,s.from,s.to)};return Ay(n,l,s.from.line,s.to.line+1),Vi(n,function(u){return Ay(u,l,s.from.line,s.to.line+1)},!0),l}function wy(n){for(;n.length;){var s=he(n);if(s.ranges)n.pop();else break}}function y2(n,s){if(s)return wy(n.done),he(n.done);if(n.done.length&&!he(n.done).ranges)return he(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),he(n.done)}function Dy(n,s,l,u){var f=n.history;f.undone.length=0;var v=+new Date,b,A;if((f.lastOp==u||f.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&f.lastModTime>v-(n.cm?n.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(b=y2(f,f.lastOp==u)))A=he(b.changes),re(s.from,s.to)==0&&re(s.from,A.to)==0?A.to=ji(s):b.changes.push(Td(n,s));else{var E=he(f.done);for((!E||!E.ranges)&&ic(n.sel,f.done),b={changes:[Td(n,s)],generation:f.generation},f.done.push(b);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(l),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=v,f.lastOp=f.lastSelOp=u,f.lastOrigin=f.lastSelOrigin=s.origin,A||wt(n,"historyAdded")}function b2(n,s,l,u){var f=s.charAt(0);return f=="*"||f=="+"&&l.ranges.length==u.ranges.length&&l.somethingSelected()==u.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function w2(n,s,l,u){var f=n.history,v=u&&u.origin;l==f.lastSelOp||v&&f.lastSelOrigin==v&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==v||b2(n,v,he(f.done),s))?f.done[f.done.length-1]=s:ic(s,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=v,f.lastSelOp=l,u&&u.clearRedo!==!1&&wy(f.undone)}function ic(n,s){var l=he(s);l&&l.ranges&&l.equals(n)||s.push(n)}function Ay(n,s,l,u){var f=s["spans_"+n.id],v=0;n.iter(Math.max(n.first,l),Math.min(n.first+n.size,u),function(b){b.markedSpans&&((f||(f=s["spans_"+n.id]={}))[v]=b.markedSpans),++v})}function D2(n){if(!n)return null;for(var s,l=0;l<n.length;++l)n[l].marker.explicitlyCleared?s||(s=n.slice(0,l)):s&&s.push(n[l]);return s?s.length?s:null:n}function A2(n,s){var l=s["spans_"+n.id];if(!l)return null;for(var u=[],f=0;f<s.text.length;++f)u.push(D2(l[f]));return u}function Ey(n,s){var l=A2(n,s),u=ed(n,s);if(!l)return u;if(!u)return l;for(var f=0;f<l.length;++f){var v=l[f],b=u[f];if(v&&b)e:for(var A=0;A<b.length;++A){for(var E=b[A],_=0;_<v.length;++_)if(v[_].marker==E.marker)continue e;v.push(E)}else b&&(l[f]=b)}return l}function Do(n,s,l){for(var u=[],f=0;f<n.length;++f){var v=n[f];if(v.ranges){u.push(l?Wr.prototype.deepCopy.call(v):v);continue}var b=v.changes,A=[];u.push({changes:A});for(var E=0;E<b.length;++E){var _=b[E],P=void 0;if(A.push({from:_.from,to:_.to,text:_.text}),s)for(var H in _)(P=H.match(/^spans_(\d+)$/))&&ce(s,Number(P[1]))>-1&&(he(A)[H]=_[H],delete _[H])}}return u}function kd(n,s,l,u){if(u){var f=n.anchor;if(l){var v=re(s,f)<0;v!=re(l,f)<0?(f=s,s=l):v!=re(s,l)<0&&(s=l)}return new ct(f,s)}else return new ct(l||s,s)}function sc(n,s,l,u,f){f==null&&(f=n.cm&&(n.cm.display.shift||n.extend)),ur(n,new Wr([kd(n.sel.primary(),s,l,f)],0),u)}function xy(n,s,l){for(var u=[],f=n.cm&&(n.cm.display.shift||n.extend),v=0;v<n.sel.ranges.length;v++)u[v]=kd(n.sel.ranges[v],s[v],null,f);var b=gn(n.cm,u,n.sel.primIndex);ur(n,b,l)}function Ld(n,s,l,u){var f=n.sel.ranges.slice(0);f[s]=l,ur(n,gn(n.cm,f,n.sel.primIndex),u)}function Cy(n,s,l,u){ur(n,qi(s,l),u)}function E2(n,s,l){var u={ranges:s.ranges,update:function(f){this.ranges=[];for(var v=0;v<f.length;v++)this.ranges[v]=new ct(qe(n,f[v].anchor),qe(n,f[v].head))},origin:l&&l.origin};return wt(n,"beforeSelectionChange",n,u),n.cm&&wt(n.cm,"beforeSelectionChange",n.cm,u),u.ranges!=s.ranges?gn(n.cm,u.ranges,u.ranges.length-1):s}function _y(n,s,l){var u=n.history.done,f=he(u);f&&f.ranges?(u[u.length-1]=s,oc(n,s,l)):ur(n,s,l)}function ur(n,s,l){oc(n,s,l),w2(n,n.sel,n.cm?n.cm.curOp.id:NaN,l)}function oc(n,s,l){(fr(n,"beforeSelectionChange")||n.cm&&fr(n.cm,"beforeSelectionChange"))&&(s=E2(n,s,l));var u=l&&l.bias||(re(s.primary().head,n.sel.primary().head)<0?-1:1);Sy(n,$y(n,s,u,!0)),!(l&&l.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&bo(n.cm)}function Sy(n,s){s.equals(n.sel)||(n.sel=s,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Pl(n.cm)),Gt(n,"cursorActivity",n))}function Fy(n){Sy(n,$y(n,n.sel,null,!1))}function $y(n,s,l,u){for(var f,v=0;v<s.ranges.length;v++){var b=s.ranges[v],A=s.ranges.length==n.sel.ranges.length&&n.sel.ranges[v],E=ac(n,b.anchor,A&&A.anchor,l,u),_=b.head==b.anchor?E:ac(n,b.head,A&&A.head,l,u);(f||E!=b.anchor||_!=b.head)&&(f||(f=s.ranges.slice(0,v)),f[v]=new ct(E,_))}return f?gn(n.cm,f,s.primIndex):s}function Ao(n,s,l,u,f){var v=Te(n,s.line);if(v.markedSpans)for(var b=0;b<v.markedSpans.length;++b){var A=v.markedSpans[b],E=A.marker,_="selectLeft"in E?!E.selectLeft:E.inclusiveLeft,P="selectRight"in E?!E.selectRight:E.inclusiveRight;if((A.from==null||(_?A.from<=s.ch:A.from<s.ch))&&(A.to==null||(P?A.to>=s.ch:A.to>s.ch))){if(f&&(wt(E,"beforeCursorEnter"),E.explicitlyCleared))if(v.markedSpans){--b;continue}else break;if(!E.atomic)continue;if(l){var H=E.find(u<0?1:-1),X=void 0;if((u<0?P:_)&&(H=Ty(n,H,-u,H&&H.line==s.line?v:null)),H&&H.line==s.line&&(X=re(H,l))&&(u<0?X<0:X>0))return Ao(n,H,s,u,f)}var K=E.find(u<0?-1:1);return(u<0?_:P)&&(K=Ty(n,K,u,K.line==s.line?v:null)),K?Ao(n,K,s,u,f):null}}return s}function ac(n,s,l,u,f){var v=u||1,b=Ao(n,s,l,v,f)||!f&&Ao(n,s,l,v,!0)||Ao(n,s,l,-v,f)||!f&&Ao(n,s,l,-v,!0);return b||(n.cantEdit=!0,W(n.first,0))}function Ty(n,s,l,u){return l<0&&s.ch==0?s.line>n.first?qe(n,W(s.line-1)):null:l>0&&s.ch==(u||Te(n,s.line)).text.length?s.line<n.first+n.size-1?W(s.line+1,0):null:new W(s.line,s.ch+l)}function ky(n){n.setSelection(W(n.firstLine(),0),W(n.lastLine()),U)}function Ly(n,s,l){var u={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return u.canceled=!0}};return l&&(u.update=function(f,v,b,A){f&&(u.from=qe(n,f)),v&&(u.to=qe(n,v)),b&&(u.text=b),A!==void 0&&(u.origin=A)}),wt(n,"beforeChange",n,u),n.cm&&wt(n.cm,"beforeChange",n.cm,u),u.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:u.from,to:u.to,text:u.text,origin:u.origin}}function Eo(n,s,l){if(n.cm){if(!n.cm.curOp)return Kt(n.cm,Eo)(n,s,l);if(n.cm.state.suppressEdits)return}if(!((fr(n,"beforeChange")||n.cm&&fr(n.cm,"beforeChange"))&&(s=Ly(n,s,!0),!s))){var u=Em&&!l&&wF(n,s.from,s.to);if(u)for(var f=u.length-1;f>=0;--f)By(n,{from:u[f].from,to:u[f].to,text:f?[""]:s.text,origin:s.origin});else By(n,s)}}function By(n,s){if(!(s.text.length==1&&s.text[0]==""&&re(s.from,s.to)==0)){var l=Sd(n,s);Dy(n,s,l,n.cm?n.cm.curOp.id:NaN),tu(n,s,l,ed(n,s));var u=[];Vi(n,function(f,v){!v&&ce(u,f.history)==-1&&(Iy(f.history,s),u.push(f.history)),tu(f,s,null,ed(f,s))})}}function uc(n,s,l){var u=n.cm&&n.cm.state.suppressEdits;if(!(u&&!l)){for(var f=n.history,v,b=n.sel,A=s=="undo"?f.done:f.undone,E=s=="undo"?f.undone:f.done,_=0;_<A.length&&(v=A[_],!(l?v.ranges&&!v.equals(n.sel):!v.ranges));_++);if(_!=A.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(v=A.pop(),v.ranges){if(ic(v,E),l&&!v.equals(n.sel)){ur(n,v,{clearRedo:!1});return}b=v}else if(u){A.push(v);return}else break;var P=[];ic(b,E),E.push({changes:P,generation:f.generation}),f.generation=v.generation||++f.maxGeneration;for(var H=fr(n,"beforeChange")||n.cm&&fr(n.cm,"beforeChange"),X=function(le){var me=v.changes[le];if(me.origin=s,H&&!Ly(n,me,!1))return A.length=0,{};P.push(Td(n,me));var be=le?Sd(n,me):he(A);tu(n,me,be,Ey(n,me)),!le&&n.cm&&n.cm.scrollIntoView({from:me.from,to:ji(me)});var Ce=[];Vi(n,function(we,Se){!Se&&ce(Ce,we.history)==-1&&(Iy(we.history,me),Ce.push(we.history)),tu(we,me,null,Ey(we,me))})},K=v.changes.length-1;K>=0;--K){var ne=X(K);if(ne)return ne.v}}}}function Oy(n,s){if(s!=0&&(n.first+=s,n.sel=new Wr(ye(n.sel.ranges,function(f){return new ct(W(f.anchor.line+s,f.anchor.ch),W(f.head.line+s,f.head.ch))}),n.sel.primIndex),n.cm)){wr(n.cm,n.first,n.first-s,s);for(var l=n.cm.display,u=l.viewFrom;u<l.viewTo;u++)Ui(n.cm,u,"gutter")}}function tu(n,s,l,u){if(n.cm&&!n.cm.curOp)return Kt(n.cm,tu)(n,s,l,u);if(s.to.line<n.first){Oy(n,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>n.lastLine())){if(s.from.line<n.first){var f=s.text.length-1-(n.first-s.from.line);Oy(n,f),s={from:W(n.first,0),to:W(s.to.line+f,s.to.ch),text:[he(s.text)],origin:s.origin}}var v=n.lastLine();s.to.line>v&&(s={from:s.from,to:W(v,Te(n,v).text.length),text:[s.text[0]],origin:s.origin}),s.removed=ii(n,s.from,s.to),l||(l=Sd(n,s)),n.cm?x2(n.cm,s,u):$d(n,s,u),oc(n,l,U),n.cantEdit&&ac(n,W(n.firstLine(),0))&&(n.cantEdit=!1)}}function x2(n,s,l){var u=n.doc,f=n.display,v=s.from,b=s.to,A=!1,E=v.line;n.options.lineWrapping||(E=lt(dn(Te(u,v.line))),u.iter(E,b.line+1,function(K){if(K==f.maxLine)return A=!0,!0})),u.sel.contains(s.from,s.to)>-1&&Pl(n),$d(u,s,l,Jm(n)),n.options.lineWrapping||(u.iter(E,v.line+s.text.length,function(K){var ne=Vl(K);ne>f.maxLineLength&&(f.maxLine=K,f.maxLineLength=ne,f.maxLineChanged=!0,A=!1)}),A&&(n.curOp.updateMaxLine=!0)),dF(u,v.line),Za(n,400);var _=s.text.length-(b.line-v.line)-1;s.full?wr(n):v.line==b.line&&s.text.length==1&&!my(n.doc,s)?Ui(n,v.line,"text"):wr(n,v.line,b.line+1,_);var P=fr(n,"changes"),H=fr(n,"change");if(H||P){var X={from:v,to:b,text:s.text,removed:s.removed,origin:s.origin};H&&Gt(n,"change",n,X),P&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(X)}n.display.selForContextMenu=null}function xo(n,s,l,u,f){var v;u||(u=l),re(u,l)<0&&(v=[u,l],l=v[0],u=v[1]),typeof s=="string"&&(s=n.splitLines(s)),Eo(n,{from:l,to:u,text:s,origin:f})}function Py(n,s,l,u){l<n.line?n.line+=u:s<n.line&&(n.line=s,n.ch=0)}function Ny(n,s,l,u){for(var f=0;f<n.length;++f){var v=n[f],b=!0;if(v.ranges){v.copied||(v=n[f]=v.deepCopy(),v.copied=!0);for(var A=0;A<v.ranges.length;A++)Py(v.ranges[A].anchor,s,l,u),Py(v.ranges[A].head,s,l,u);continue}for(var E=0;E<v.changes.length;++E){var _=v.changes[E];if(l<_.from.line)_.from=W(_.from.line+u,_.from.ch),_.to=W(_.to.line+u,_.to.ch);else if(s<=_.to.line){b=!1;break}}b||(n.splice(0,f+1),f=0)}}function Iy(n,s){var l=s.from.line,u=s.to.line,f=s.text.length-(u-l)-1;Ny(n.done,l,u,f),Ny(n.undone,l,u,f)}function ru(n,s,l,u){var f=s,v=s;return typeof s=="number"?v=Te(n,Vr(n,s)):f=lt(s),f==null?null:(u(v,f)&&n.cm&&Ui(n.cm,f,l),v)}function nu(n){this.lines=n,this.parent=null;for(var s=0,l=0;l<n.length;++l)n[l].parent=this,s+=n[l].height;this.height=s}nu.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,s){for(var l=n,u=n+s;l<u;++l){var f=this.lines[l];this.height-=f.height,CF(f),Gt(f,"delete")}this.lines.splice(n,s)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,s,l){this.height+=l,this.lines=this.lines.slice(0,n).concat(s).concat(this.lines.slice(n));for(var u=0;u<s.length;++u)s[u].parent=this},iterN:function(n,s,l){for(var u=n+s;n<u;++n)if(l(this.lines[n]))return!0}};function iu(n){this.children=n;for(var s=0,l=0,u=0;u<n.length;++u){var f=n[u];s+=f.chunkSize(),l+=f.height,f.parent=this}this.size=s,this.height=l,this.parent=null}iu.prototype={chunkSize:function(){return this.size},removeInner:function(n,s){this.size-=s;for(var l=0;l<this.children.length;++l){var u=this.children[l],f=u.chunkSize();if(n<f){var v=Math.min(s,f-n),b=u.height;if(u.removeInner(n,v),this.height-=b-u.height,f==v&&(this.children.splice(l--,1),u.parent=null),(s-=v)==0)break;n=0}else n-=f}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof nu))){var A=[];this.collapse(A),this.children=[new nu(A)],this.children[0].parent=this}},collapse:function(n){for(var s=0;s<this.children.length;++s)this.children[s].collapse(n)},insertInner:function(n,s,l){this.size+=s.length,this.height+=l;for(var u=0;u<this.children.length;++u){var f=this.children[u],v=f.chunkSize();if(n<=v){if(f.insertInner(n,s,l),f.lines&&f.lines.length>50){for(var b=f.lines.length%25+25,A=b;A<f.lines.length;){var E=new nu(f.lines.slice(A,A+=25));f.height-=E.height,this.children.splice(++u,0,E),E.parent=this}f.lines=f.lines.slice(0,b),this.maybeSpill()}break}n-=v}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var s=n.children.splice(n.children.length-5,5),l=new iu(s);if(n.parent){n.size-=l.size,n.height-=l.height;var f=ce(n.parent.children,n);n.parent.children.splice(f+1,0,l)}else{var u=new iu(n.children);u.parent=n,n.children=[u,l],n=u}l.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,s,l){for(var u=0;u<this.children.length;++u){var f=this.children[u],v=f.chunkSize();if(n<v){var b=Math.min(s,v-n);if(f.iterN(n,b,l))return!0;if((s-=b)==0)break;n=0}else n-=v}}};var su=function(n,s,l){if(l)for(var u in l)l.hasOwnProperty(u)&&(this[u]=l[u]);this.doc=n,this.node=s};su.prototype.clear=function(){var n=this.doc.cm,s=this.line.widgets,l=this.line,u=lt(l);if(!(u==null||!s)){for(var f=0;f<s.length;++f)s[f]==this&&s.splice(f--,1);s.length||(l.widgets=null);var v=Va(this);tn(l,Math.max(0,l.height-v)),n&&(Or(n,function(){Ry(n,l,-v),Ui(n,u,"widget")}),Gt(n,"lineWidgetCleared",n,this,u))}},su.prototype.changed=function(){var n=this,s=this.height,l=this.doc.cm,u=this.line;this.height=null;var f=Va(this)-s;f&&(zi(this.doc,u)||tn(u,u.height+f),l&&Or(l,function(){l.curOp.forceUpdate=!0,Ry(l,u,f),Gt(l,"lineWidgetChanged",l,n,lt(u))}))},hr(su);function Ry(n,s,l){oi(s)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Dd(n,l)}function C2(n,s,l,u){var f=new su(n,l,u),v=n.cm;return v&&f.noHScroll&&(v.display.alignWidgets=!0),ru(n,s,"widget",function(b){var A=b.widgets||(b.widgets=[]);if(f.insertAt==null?A.push(f):A.splice(Math.min(A.length,Math.max(0,f.insertAt)),0,f),f.line=b,v&&!zi(n,b)){var E=oi(b)<n.scrollTop;tn(b,b.height+Va(f)),E&&Dd(v,f.height),v.curOp.forceUpdate=!0}return!0}),v&&Gt(v,"lineWidgetAdded",v,f,typeof s=="number"?s:lt(s)),f}var My=0,Wi=function(n,s){this.lines=[],this.type=s,this.doc=n,this.id=++My};Wi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,s=n&&!n.curOp;if(s&&xs(n),fr(this,"clear")){var l=this.find();l&&Gt(this,"clear",l.from,l.to)}for(var u=null,f=null,v=0;v<this.lines.length;++v){var b=this.lines[v],A=Ha(b.markedSpans,this);n&&!this.collapsed?Ui(n,lt(b),"text"):n&&(A.to!=null&&(f=lt(b)),A.from!=null&&(u=lt(b))),b.markedSpans=vF(b.markedSpans,A),A.from==null&&this.collapsed&&!zi(this.doc,b)&&n&&tn(b,vo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var E=0;E<this.lines.length;++E){var _=dn(this.lines[E]),P=Vl(_);P>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=P,n.display.maxLineChanged=!0)}u!=null&&n&&this.collapsed&&wr(n,u,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Fy(n.doc)),n&&Gt(n,"markerCleared",n,this,u,f),s&&Cs(n),this.parent&&this.parent.clear()}},Wi.prototype.find=function(n,s){n==null&&this.type=="bookmark"&&(n=1);for(var l,u,f=0;f<this.lines.length;++f){var v=this.lines[f],b=Ha(v.markedSpans,this);if(b.from!=null&&(l=W(s?v:lt(v),b.from),n==-1))return l;if(b.to!=null&&(u=W(s?v:lt(v),b.to),n==1))return u}return l&&{from:l,to:u}},Wi.prototype.changed=function(){var n=this,s=this.find(-1,!0),l=this,u=this.doc.cm;!s||!u||Or(u,function(){var f=s.line,v=lt(s.line),b=ud(u,v);if(b&&(Vm(b),u.curOp.selectionChanged=u.curOp.forceUpdate=!0),u.curOp.updateMaxLine=!0,!zi(l.doc,f)&&l.height!=null){var A=l.height;l.height=null;var E=Va(l)-A;E&&tn(f,f.height+E)}Gt(u,"markerChanged",u,n)})},Wi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||ce(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.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 s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},hr(Wi);function Co(n,s,l,u,f){if(u&&u.shared)return _2(n,s,l,u,f);if(n.cm&&!n.cm.curOp)return Kt(n.cm,Co)(n,s,l,u,f);var v=new Wi(n,f),b=re(s,l);if(u&&xe(u,v,!1),b>0||b==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=I("span",[v.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if($m(n,s.line,s,l,v)||s.line!=l.line&&$m(n,l.line,s,l,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");gF()}v.addToHistory&&Dy(n,{from:s,to:l,origin:"markText"},n.sel,NaN);var A=s.line,E=n.cm,_;if(n.iter(A,l.line+1,function(H){E&&v.collapsed&&!E.options.lineWrapping&&dn(H)==E.display.maxLine&&(_=!0),v.collapsed&&A!=s.line&&tn(H,0),mF(H,new Ul(v,A==s.line?s.ch:null,A==l.line?l.ch:null),n.cm&&n.cm.curOp),++A}),v.collapsed&&n.iter(s.line,l.line+1,function(H){zi(n,H)&&tn(H,0)}),v.clearOnEnter&&De(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(pF(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),v.collapsed&&(v.id=++My,v.atomic=!0),E){if(_&&(E.curOp.updateMaxLine=!0),v.collapsed)wr(E,s.line,l.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var P=s.line;P<=l.line;P++)Ui(E,P,"text");v.atomic&&Fy(E.doc),Gt(E,"markerAdded",E,v)}return v}var ou=function(n,s){this.markers=n,this.primary=s;for(var l=0;l<n.length;++l)n[l].parent=this};ou.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Gt(this,"clear")}},ou.prototype.find=function(n,s){return this.primary.find(n,s)},hr(ou);function _2(n,s,l,u,f){u=xe(u),u.shared=!1;var v=[Co(n,s,l,u,f)],b=v[0],A=u.widgetNode;return Vi(n,function(E){A&&(u.widgetNode=A.cloneNode(!0)),v.push(Co(E,qe(E,s),qe(E,l),u,f));for(var _=0;_<E.linked.length;++_)if(E.linked[_].isParent)return;b=he(v)}),new ou(v,b)}function zy(n){return n.findMarks(W(n.first,0),n.clipPos(W(n.lastLine())),function(s){return s.parent})}function S2(n,s){for(var l=0;l<s.length;l++){var u=s[l],f=u.find(),v=n.clipPos(f.from),b=n.clipPos(f.to);if(re(v,b)){var A=Co(n,v,b,u.primary,u.primary.type);u.markers.push(A),A.parent=u}}}function F2(n){for(var s=function(u){var f=n[u],v=[f.primary.doc];Vi(f.primary.doc,function(E){return v.push(E)});for(var b=0;b<f.markers.length;b++){var A=f.markers[b];ce(v,A.doc)==-1&&(A.parent=null,f.markers.splice(b--,1))}},l=0;l<n.length;l++)s(l)}var $2=0,Dr=function(n,s,l,u,f){if(!(this instanceof Dr))return new Dr(n,s,l,u,f);l==null&&(l=0),iu.call(this,[new nu([new ho("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var v=W(l,0);this.sel=qi(v),this.history=new nc(null),this.id=++$2,this.modeOption=s,this.lineSep=u,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),$d(this,{from:v,to:v,text:n}),ur(this,qi(v),U)};Dr.prototype=Ne(iu.prototype,{constructor:Dr,iter:function(n,s,l){l?this.iterN(n-this.first,s-n,l):this.iterN(this.first,this.first+this.size,n)},insert:function(n,s){for(var l=0,u=0;u<s.length;++u)l+=s[u].height;this.insertInner(n-this.first,s,l)},remove:function(n,s){this.removeInner(n-this.first,s)},getValue:function(n){var s=fo(this,this.first,this.first+this.size);return n===!1?s:s.join(n||this.lineSeparator())},setValue:Xt(function(n){var s=W(this.first,0),l=this.first+this.size-1;Eo(this,{from:s,to:W(l,Te(this,l).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Ka(this.cm,0,0),ur(this,qi(s),U)}),replaceRange:function(n,s,l,u){s=qe(this,s),l=l?qe(this,l):s,xo(this,n,s,l,u)},getRange:function(n,s,l){var u=ii(this,qe(this,n),qe(this,s));return l===!1?u:l===""?u.join(""):u.join(l||this.lineSeparator())},getLine:function(n){var s=this.getLineHandle(n);return s&&s.text},getLineHandle:function(n){if(k(this,n))return Te(this,n)},getLineNumber:function(n){return lt(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Te(this,n)),dn(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return qe(this,n)},getCursor:function(n){var s=this.sel.primary(),l;return n==null||n=="head"?l=s.head:n=="anchor"?l=s.anchor:n=="end"||n=="to"||n===!1?l=s.to():l=s.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xt(function(n,s,l){Cy(this,qe(this,typeof n=="number"?W(n,s||0):n),null,l)}),setSelection:Xt(function(n,s,l){Cy(this,qe(this,n),qe(this,s||n),l)}),extendSelection:Xt(function(n,s,l){sc(this,qe(this,n),s&&qe(this,s),l)}),extendSelections:Xt(function(n,s){xy(this,gm(this,n),s)}),extendSelectionsBy:Xt(function(n,s){var l=ye(this.sel.ranges,n);xy(this,gm(this,l),s)}),setSelections:Xt(function(n,s,l){if(n.length){for(var u=[],f=0;f<n.length;f++)u[f]=new ct(qe(this,n[f].anchor),qe(this,n[f].head||n[f].anchor));s==null&&(s=Math.min(n.length-1,this.sel.primIndex)),ur(this,gn(this.cm,u,s),l)}}),addSelection:Xt(function(n,s,l){var u=this.sel.ranges.slice(0);u.push(new ct(qe(this,n),qe(this,s||n))),ur(this,gn(this.cm,u,u.length-1),l)}),getSelection:function(n){for(var s=this.sel.ranges,l,u=0;u<s.length;u++){var f=ii(this,s[u].from(),s[u].to());l=l?l.concat(f):f}return n===!1?l:l.join(n||this.lineSeparator())},getSelections:function(n){for(var s=[],l=this.sel.ranges,u=0;u<l.length;u++){var f=ii(this,l[u].from(),l[u].to());n!==!1&&(f=f.join(n||this.lineSeparator())),s[u]=f}return s},replaceSelection:function(n,s,l){for(var u=[],f=0;f<this.sel.ranges.length;f++)u[f]=n;this.replaceSelections(u,s,l||"+input")},replaceSelections:Xt(function(n,s,l){for(var u=[],f=this.sel,v=0;v<f.ranges.length;v++){var b=f.ranges[v];u[v]={from:b.from(),to:b.to(),text:this.splitLines(n[v]),origin:l}}for(var A=s&&s!="end"&&v2(this,u,s),E=u.length-1;E>=0;E--)Eo(this,u[E]);A?_y(this,A):this.cm&&bo(this.cm)}),undo:Xt(function(){uc(this,"undo")}),redo:Xt(function(){uc(this,"redo")}),undoSelection:Xt(function(){uc(this,"undo",!0)}),redoSelection:Xt(function(){uc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,s=0,l=0,u=0;u<n.done.length;u++)n.done[u].ranges||++s;for(var f=0;f<n.undone.length;f++)n.undone[f].ranges||++l;return{undo:s,redo:l}},clearHistory:function(){var n=this;this.history=new nc(this.history),Vi(this,function(s){return s.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:Do(this.history.done),undone:Do(this.history.undone)}},setHistory:function(n){var s=this.history=new nc(this.history);s.done=Do(n.done.slice(0),null,!0),s.undone=Do(n.undone.slice(0),null,!0)},setGutterMarker:Xt(function(n,s,l){return ru(this,n,"gutter",function(u){var f=u.gutterMarkers||(u.gutterMarkers={});return f[s]=l,!l&&Ge(f)&&(u.gutterMarkers=null),!0})}),clearGutter:Xt(function(n){var s=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[n]&&ru(s,l,"gutter",function(){return l.gutterMarkers[n]=null,Ge(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(n){var s;if(typeof n=="number"){if(!k(this,n)||(s=n,n=Te(this,n),!n))return null}else if(s=lt(n),s==null)return null;return{line:s,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Xt(function(n,s,l){return ru(this,n,s=="gutter"?"gutter":"class",function(u){var f=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!u[f])u[f]=l;else{if(ee(l).test(u[f]))return!1;u[f]+=" "+l}return!0})}),removeLineClass:Xt(function(n,s,l){return ru(this,n,s=="gutter"?"gutter":"class",function(u){var f=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",v=u[f];if(v)if(l==null)u[f]=null;else{var b=v.match(ee(l));if(!b)return!1;var A=b.index+b[0].length;u[f]=v.slice(0,b.index)+(!b.index||A==v.length?"":" ")+v.slice(A)||null}else return!1;return!0})}),addLineWidget:Xt(function(n,s,l){return C2(this,n,s,l)}),removeLineWidget:function(n){n.clear()},markText:function(n,s,l){return Co(this,qe(this,n),qe(this,s),l,l&&l.type||"range")},setBookmark:function(n,s){var l={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return n=qe(this,n),Co(this,n,n,l,"bookmark")},findMarksAt:function(n){n=qe(this,n);var s=[],l=Te(this,n.line).markedSpans;if(l)for(var u=0;u<l.length;++u){var f=l[u];(f.from==null||f.from<=n.ch)&&(f.to==null||f.to>=n.ch)&&s.push(f.marker.parent||f.marker)}return s},findMarks:function(n,s,l){n=qe(this,n),s=qe(this,s);var u=[],f=n.line;return this.iter(n.line,s.line+1,function(v){var b=v.markedSpans;if(b)for(var A=0;A<b.length;A++){var E=b[A];!(E.to!=null&&f==n.line&&n.ch>=E.to||E.from==null&&f!=n.line||E.from!=null&&f==s.line&&E.from>=s.ch)&&(!l||l(E.marker))&&u.push(E.marker.parent||E.marker)}++f}),u},getAllMarks:function(){var n=[];return this.iter(function(s){var l=s.markedSpans;if(l)for(var u=0;u<l.length;++u)l[u].from!=null&&n.push(l[u].marker)}),n},posFromIndex:function(n){var s,l=this.first,u=this.lineSeparator().length;return this.iter(function(f){var v=f.text.length+u;if(v>n)return s=n,!0;n-=v,++l}),qe(this,W(l,s))},indexFromPos:function(n){n=qe(this,n);var s=n.ch;if(n.line<this.first||n.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,n.line,function(u){s+=u.text.length+l}),s},copy:function(n){var s=new Dr(fo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,n&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(n){n||(n={});var s=this.first,l=this.first+this.size;n.from!=null&&n.from>s&&(s=n.from),n.to!=null&&n.to<l&&(l=n.to);var u=new Dr(fo(this,s,l),n.mode||this.modeOption,s,this.lineSep,this.direction);return n.sharedHist&&(u.history=this.history),(this.linked||(this.linked=[])).push({doc:u,sharedHist:n.sharedHist}),u.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],S2(u,zy(this)),u},unlinkDoc:function(n){if(n instanceof xt&&(n=n.doc),this.linked)for(var s=0;s<this.linked.length;++s){var l=this.linked[s];if(l.doc==n){this.linked.splice(s,1),n.unlinkDoc(this),F2(zy(this));break}}if(n.history==this.history){var u=[n.id];Vi(n,function(f){return u.push(f.id)},!0),n.history=new nc(null),n.history.done=Do(this.history.done,u),n.history.undone=Do(this.history.undone,u)}},iterLinkedDocs:function(n){Vi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Ma(n)},lineSeparator:function(){return this.lineSep||`
27
+ `},setDirection:Xt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(s){return s.order=null}),this.cm&&m2(this.cm))})}),Dr.prototype.eachLine=Dr.prototype.iter;var Uy=0;function T2(n){var s=this;if(Hy(s),!(Tt(s,n)||ai(s.display,n))){ar(n),d&&(Uy=+new Date);var l=ws(s,n,!0),u=n.dataTransfer.files;if(!(!l||s.isReadOnly()))if(u&&u.length&&window.FileReader&&window.File)for(var f=u.length,v=Array(f),b=0,A=function(){++b==f&&Kt(s,function(){l=qe(s.doc,l);var K={from:l,to:l,text:s.doc.splitLines(v.filter(function(ne){return ne!=null}).join(s.doc.lineSeparator())),origin:"paste"};Eo(s.doc,K),_y(s.doc,qi(qe(s.doc,l),qe(s.doc,ji(K))))})()},E=function(K,ne){if(s.options.allowDropFileTypes&&ce(s.options.allowDropFileTypes,K.type)==-1){A();return}var le=new FileReader;le.onerror=function(){return A()},le.onload=function(){var me=le.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(me)){A();return}v[ne]=me,A()},le.readAsText(K)},_=0;_<u.length;_++)E(u[_],_);else{if(s.state.draggingText&&s.doc.sel.contains(l)>-1){s.state.draggingText(n),setTimeout(function(){return s.display.input.focus()},20);return}try{var P=n.dataTransfer.getData("Text");if(P){var H;if(s.state.draggingText&&!s.state.draggingText.copy&&(H=s.listSelections()),oc(s.doc,qi(l,l)),H)for(var X=0;X<H.length;++X)xo(s.doc,"",H[X].anchor,H[X].head,"drag");s.replaceSelection(P,"around","paste"),s.display.input.focus()}}catch{}}}}function k2(n,s){if(d&&(!n.state.draggingText||+new Date-Uy<100)){ti(s);return}if(!(Tt(n,s)||ai(n.display,s))&&(s.dataTransfer.setData("Text",n.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!B)){var l=D("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(l.width=l.height=1,n.display.wrapper.appendChild(l),l._top=l.offsetTop),s.dataTransfer.setDragImage(l,0,0),$&&l.parentNode.removeChild(l)}}function L2(n,s){var l=ws(n,s);if(l){var u=document.createDocumentFragment();vd(n,l,u),n.display.dragCursor||(n.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),F(n.display.dragCursor,u)}}function Hy(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function qy(n){if(document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),l=[],u=0;u<s.length;u++){var f=s[u].CodeMirror;f&&l.push(f)}l.length&&l[0].operation(function(){for(var v=0;v<l.length;v++)n(l[v])})}}var jy=!1;function B2(){jy||(O2(),jy=!0)}function O2(){var n;De(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,qy(P2)},100))}),De(window,"blur",function(){return qy(yo)})}function P2(n){var s=n.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,n.setSize()}for(var Gi={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"},au=0;au<10;au++)Gi[au+48]=Gi[au+96]=String(au);for(var lc=65;lc<=90;lc++)Gi[lc]=String.fromCharCode(lc);for(var uu=1;uu<=12;uu++)Gi[uu+111]=Gi[uu+63235]="F"+uu;var li={};li.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"},li.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"},li.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"},li.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"]},li.default=T?li.macDefault:li.pcDefault;function N2(n){var s=n.split(/-(?!$)/);n=s[s.length-1];for(var l,u,f,v,b=0;b<s.length-1;b++){var A=s[b];if(/^(cmd|meta|m)$/i.test(A))v=!0;else if(/^a(lt)?$/i.test(A))l=!0;else if(/^(c|ctrl|control)$/i.test(A))u=!0;else if(/^s(hift)?$/i.test(A))f=!0;else throw new Error("Unrecognized modifier name: "+A)}return l&&(n="Alt-"+n),u&&(n="Ctrl-"+n),v&&(n="Cmd-"+n),f&&(n="Shift-"+n),n}function I2(n){var s={};for(var l in n)if(n.hasOwnProperty(l)){var u=n[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(u=="..."){delete n[l];continue}for(var f=ye(l.split(" "),N2),v=0;v<f.length;v++){var b=void 0,A=void 0;v==f.length-1?(A=f.join(" "),b=u):(A=f.slice(0,v+1).join(" "),b="...");var E=s[A];if(!E)s[A]=b;else if(E!=b)throw new Error("Inconsistent bindings for "+A)}delete n[l]}for(var _ in s)n[_]=s[_];return n}function _o(n,s,l,u){s=cc(s);var f=s.call?s.call(n,u):s[n];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&l(f))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return _o(n,s.fallthrough,l,u);for(var v=0;v<s.fallthrough.length;v++){var b=_o(n,s.fallthrough[v],l,u);if(b)return b}}}function Vy(n){var s=typeof n=="string"?n:Gi[n.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function Wy(n,s,l){var u=n;return s.altKey&&u!="Alt"&&(n="Alt-"+n),(te?s.metaKey:s.ctrlKey)&&u!="Ctrl"&&(n="Ctrl-"+n),(te?s.ctrlKey:s.metaKey)&&u!="Mod"&&(n="Cmd-"+n),!l&&s.shiftKey&&u!="Shift"&&(n="Shift-"+n),n}function Gy(n,s){if($&&n.keyCode==34&&n.char)return!1;var l=Gi[n.keyCode];return l==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(l=n.code),Wy(l,n,s))}function cc(n){return typeof n=="string"?li[n]:n}function So(n,s){for(var l=n.doc.sel.ranges,u=[],f=0;f<l.length;f++){for(var v=s(l[f]);u.length&&re(v.from,he(u).to)<=0;){var b=u.pop();if(re(b.from,v.from)<0){v.from=b.from;break}}u.push(v)}Or(n,function(){for(var A=u.length-1;A>=0;A--)xo(n.doc,"",u[A].from,u[A].to,"+delete");bo(n)})}function Bd(n,s,l){var u=ht(n.text,s+l,l);return u<0||u>n.text.length?null:u}function Od(n,s,l){var u=Bd(n,s.ch,l);return u==null?null:new W(s.line,u,l<0?"after":"before")}function Pd(n,s,l,u,f){if(n){s.doc.direction=="rtl"&&(f=-f);var v=Dt(l,s.doc.direction);if(v){var b=f<0?he(v):v[0],A=f<0==(b.level==1),E=A?"after":"before",_;if(b.level>0||s.doc.direction=="rtl"){var P=go(s,l);_=f<0?l.text.length-1:0;var H=In(s,P,_).top;_=tt(function(X){return In(s,P,X).top==H},f<0==(b.level==1)?b.from:b.to-1,_),E=="before"&&(_=Bd(l,_,1))}else _=f<0?b.to:b.from;return new W(u,_,E)}}return new W(u,f<0?l.text.length:0,f<0?"before":"after")}function R2(n,s,l,u){var f=Dt(s,n.doc.direction);if(!f)return Od(s,l,u);l.ch>=s.text.length?(l.ch=s.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var v=tr(f,l.ch,l.sticky),b=f[v];if(n.doc.direction=="ltr"&&b.level%2==0&&(u>0?b.to>l.ch:b.from<l.ch))return Od(s,l,u);var A=function(be,Ce){return Bd(s,be instanceof W?be.ch:be,Ce)},E,_=function(be){return n.options.lineWrapping?(E=E||go(n,s),Zm(n,s,E,be)):{begin:0,end:s.text.length}},P=_(l.sticky=="before"?A(l,-1):l.ch);if(n.doc.direction=="rtl"||b.level==1){var H=b.level==1==u<0,X=A(l,H?1:-1);if(X!=null&&(H?X<=b.to&&X<=P.end:X>=b.from&&X>=P.begin)){var K=H?"before":"after";return new W(l.line,X,K)}}var ne=function(be,Ce,we){for(var Se=function(mt,Qt){return Qt?new W(l.line,A(mt,1),"before"):new W(l.line,mt,"after")};be>=0&&be<f.length;be+=Ce){var Ie=f[be],Oe=Ce>0==(Ie.level!=1),We=Oe?we.begin:A(we.end,-1);if(Ie.from<=We&&We<Ie.to||(We=Oe?Ie.from:A(Ie.to,-1),we.begin<=We&&We<we.end))return Se(We,Oe)}},le=ne(v+u,u,P);if(le)return le;var me=u>0?P.end:A(P.begin,-1);return me!=null&&!(u>0&&me==s.text.length)&&(le=ne(u>0?0:f.length-1,u,_(me)),le)?le:null}var lu={selectAll:ky,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),U)},killLine:function(n){return So(n,function(s){if(s.empty()){var l=Te(n.doc,s.head.line).text.length;return s.head.ch==l&&s.head.line<n.lastLine()?{from:s.head,to:W(s.head.line+1,0)}:{from:s.head,to:W(s.head.line,l)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(n){return So(n,function(s){return{from:W(s.from().line,0),to:qe(n.doc,W(s.to().line+1,0))}})},delLineLeft:function(n){return So(n,function(s){return{from:W(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(n){return So(n,function(s){var l=n.charCoords(s.head,"div").top+5,u=n.coordsChar({left:0,top:l},"div");return{from:u,to:s.from()}})},delWrappedLineRight:function(n){return So(n,function(s){var l=n.charCoords(s.head,"div").top+5,u=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:l},"div");return{from:s.from(),to:u}})},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(W(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(W(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(s){return Ky(n,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(s){return Xy(n,s.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(s){return M2(n,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(s){var l=n.cursorCoords(s.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:l},"div")},Z)},goLineLeft:function(n){return n.extendSelectionsBy(function(s){var l=n.cursorCoords(s.head,"div").top+5;return n.coordsChar({left:0,top:l},"div")},Z)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(s){var l=n.cursorCoords(s.head,"div").top+5,u=n.coordsChar({left:0,top:l},"div");return u.ch<n.getLine(u.line).search(/\S/)?Xy(n,s.head):u},Z)},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 s=[],l=n.listSelections(),u=n.options.tabSize,f=0;f<l.length;f++){var v=l[f].from(),b=Q(n.getLine(v.line),v.ch,u);s.push(fe(u-b%u))}n.replaceSelections(s)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Or(n,function(){for(var s=n.listSelections(),l=[],u=0;u<s.length;u++)if(s[u].empty()){var f=s[u].head,v=Te(n.doc,f.line).text;if(v){if(f.ch==v.length&&(f=new W(f.line,f.ch-1)),f.ch>0)f=new W(f.line,f.ch+1),n.replaceRange(v.charAt(f.ch-1)+v.charAt(f.ch-2),W(f.line,f.ch-2),f,"+transpose");else if(f.line>n.doc.first){var b=Te(n.doc,f.line-1).text;b&&(f=new W(f.line,1),n.replaceRange(v.charAt(0)+n.doc.lineSeparator()+b.charAt(b.length-1),W(f.line-1,b.length-1),f,"+transpose"))}}l.push(new ct(f,f))}n.setSelections(l)})},newlineAndIndent:function(n){return Or(n,function(){for(var s=n.listSelections(),l=s.length-1;l>=0;l--)n.replaceRange(n.doc.lineSeparator(),s[l].anchor,s[l].head,"+input");s=n.listSelections();for(var u=0;u<s.length;u++)n.indentLine(s[u].from().line,null,!0);bo(n)})},openLine:function(n){return n.replaceSelection(`
28
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Ky(n,s){var l=Te(n.doc,s),u=dn(l);return u!=l&&(s=lt(u)),Pd(!0,n,u,s,1)}function M2(n,s){var l=Te(n.doc,s),u=AF(l);return u!=l&&(s=lt(u)),Pd(!0,n,l,s,-1)}function Xy(n,s){var l=Ky(n,s.line),u=Te(n.doc,l.line),f=Dt(u,n.doc.direction);if(!f||f[0].level==0){var v=Math.max(l.ch,u.text.search(/\S/)),b=s.line==l.line&&s.ch<=v&&s.ch;return W(l.line,b?0:v,l.sticky)}return l}function fc(n,s,l){if(typeof s=="string"&&(s=lu[s],!s))return!1;n.display.input.ensurePolled();var u=n.display.shift,f=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),l&&(n.display.shift=!1),f=s(n)!=Be}finally{n.display.shift=u,n.state.suppressEdits=!1}return f}function z2(n,s,l){for(var u=0;u<n.state.keyMaps.length;u++){var f=_o(s,n.state.keyMaps[u],l,n);if(f)return f}return n.options.extraKeys&&_o(s,n.options.extraKeys,l,n)||_o(s,n.options.keyMap,l,n)}var U2=new ae;function cu(n,s,l,u){var f=n.state.keySeq;if(f){if(Vy(s))return"handled";if(/\'$/.test(s)?n.state.keySeq=null:U2.set(50,function(){n.state.keySeq==f&&(n.state.keySeq=null,n.display.input.reset())}),Qy(n,f+" "+s,l,u))return!0}return Qy(n,s,l,u)}function Qy(n,s,l,u){var f=z2(n,s,u);return f=="multi"&&(n.state.keySeq=s),f=="handled"&&Gt(n,"keyHandled",n,s,l),(f=="handled"||f=="multi")&&(ar(l),md(n)),!!f}function Yy(n,s){var l=Gy(s,!0);return l?s.shiftKey&&!n.state.keySeq?cu(n,"Shift-"+l,s,function(u){return fc(n,u,!0)})||cu(n,l,s,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return fc(n,u)}):cu(n,l,s,function(u){return fc(n,u)}):!1}function H2(n,s,l){return cu(n,"'"+l+"'",s,function(u){return fc(n,u,!0)})}var Nd=null;function Zy(n){var s=this;if(!(n.target&&n.target!=s.display.input.getField())&&(s.curOp.focus=oe(Ue(s)),!Tt(s,n))){d&&p<11&&n.keyCode==27&&(n.returnValue=!1);var l=n.keyCode;s.display.shift=l==16||n.shiftKey;var u=Yy(s,n);$&&(Nd=u?l:null,!u&&l==88&&!Ln&&(T?n.metaKey:n.ctrlKey)&&s.replaceSelection("",null,"cut")),o&&!T&&!u&&l==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&q2(s)}}function q2(n){var s=n.display.lineDiv;ge(s,"CodeMirror-crosshair");function l(u){(u.keyCode==18||!u.altKey)&&(z(s,"CodeMirror-crosshair"),or(document,"keyup",l),or(document,"mouseover",l))}De(document,"keyup",l),De(document,"mouseover",l)}function Jy(n){n.keyCode==16&&(this.doc.sel.shift=!1),Tt(this,n)}function e1(n){var s=this;if(!(n.target&&n.target!=s.display.input.getField())&&!(ai(s.display,n)||Tt(s,n)||n.ctrlKey&&!n.altKey||T&&n.metaKey)){var l=n.keyCode,u=n.charCode;if($&&l==Nd){Nd=null,ar(n);return}if(!($&&(!n.which||n.which<10)&&Yy(s,n))){var f=String.fromCharCode(u??l);f!="\b"&&(H2(s,n,f)||s.display.input.onKeyPress(n))}}}var j2=400,Id=function(n,s,l){this.time=n,this.pos=s,this.button=l};Id.prototype.compare=function(n,s,l){return this.time+j2>n&&re(s,this.pos)==0&&l==this.button};var fu,hu;function V2(n,s){var l=+new Date;return hu&&hu.compare(l,n,s)?(fu=hu=null,"triple"):fu&&fu.compare(l,n,s)?(hu=new Id(l,n,s),fu=null,"double"):(fu=new Id(l,n,s),hu=null,"single")}function t1(n){var s=this,l=s.display;if(!(Tt(s,n)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=n.shiftKey,ai(l,n)){g||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!Rd(s,n)){var u=ws(s,n),f=Ra(n),v=u?V2(u,f):"single";Ke(s).focus(),f==1&&s.state.selectingText&&s.state.selectingText(n),!(u&&W2(s,f,u,v,n))&&(f==1?u?K2(s,u,v,n):br(n)==l.scroller&&ar(n):f==2?(u&&sc(s.doc,u),setTimeout(function(){return l.input.focus()},20)):f==3&&(ie?s.display.input.onContextMenu(n):yd(s)))}}}function W2(n,s,l,u,f){var v="Click";return u=="double"?v="Double"+v:u=="triple"&&(v="Triple"+v),v=(s==1?"Left":s==2?"Middle":"Right")+v,cu(n,Wy(v,f),f,function(b){if(typeof b=="string"&&(b=lu[b]),!b)return!1;var A=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),A=b(n,l)!=Be}finally{n.state.suppressEdits=!1}return A})}function G2(n,s,l){var u=n.getOption("configureMouse"),f=u?u(n,s,l):{};if(f.unit==null){var v=R?l.shiftKey&&l.metaKey:l.altKey;f.unit=v?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(f.extend==null||n.doc.extend)&&(f.extend=n.doc.extend||l.shiftKey),f.addNew==null&&(f.addNew=T?l.metaKey:l.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(T?l.altKey:l.ctrlKey)),f}function K2(n,s,l,u){d?setTimeout(et(ry,n),0):n.curOp.focus=oe(Ue(n));var f=G2(n,l,u),v=n.doc.sel,b;n.options.dragDrop&&Qh&&!n.isReadOnly()&&l=="single"&&(b=v.contains(s))>-1&&(re((b=v.ranges[b]).from(),s)<0||s.xRel>0)&&(re(b.to(),s)>0||s.xRel<0)?X2(n,u,s,f):Q2(n,u,s,f)}function X2(n,s,l,u){var f=n.display,v=!1,b=Kt(n,function(_){g&&(f.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:yd(n)),or(f.wrapper.ownerDocument,"mouseup",b),or(f.wrapper.ownerDocument,"mousemove",A),or(f.scroller,"dragstart",E),or(f.scroller,"drop",b),v||(ar(_),u.addNew||sc(n.doc,l,null,null,u.extend),g&&!B||d&&p==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),A=function(_){v=v||Math.abs(s.clientX-_.clientX)+Math.abs(s.clientY-_.clientY)>=10},E=function(){return v=!0};g&&(f.scroller.draggable=!0),n.state.draggingText=b,b.copy=!u.moveOnDrag,De(f.wrapper.ownerDocument,"mouseup",b),De(f.wrapper.ownerDocument,"mousemove",A),De(f.scroller,"dragstart",E),De(f.scroller,"drop",b),n.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function r1(n,s,l){if(l=="char")return new ct(s,s);if(l=="word")return n.findWordAt(s);if(l=="line")return new ct(W(s.line,0),qe(n.doc,W(s.line+1,0)));var u=l(n,s);return new ct(u.from,u.to)}function Q2(n,s,l,u){d&&yd(n);var f=n.display,v=n.doc;ar(s);var b,A,E=v.sel,_=E.ranges;if(u.addNew&&!u.extend?(A=v.sel.contains(l),A>-1?b=_[A]:b=new ct(l,l)):(b=v.sel.primary(),A=v.sel.primIndex),u.unit=="rectangle")u.addNew||(b=new ct(l,l)),l=ws(n,s,!0,!0),A=-1;else{var P=r1(n,l,u.unit);u.extend?b=kd(b,P.anchor,P.head,u.extend):b=P}u.addNew?A==-1?(A=_.length,ur(v,gn(n,_.concat([b]),A),{scroll:!1,origin:"*mouse"})):_.length>1&&_[A].empty()&&u.unit=="char"&&!u.extend?(ur(v,gn(n,_.slice(0,A).concat(_.slice(A+1)),0),{scroll:!1,origin:"*mouse"}),E=v.sel):Ld(v,A,b,G):(A=0,ur(v,new Wr([b],0),G),E=v.sel);var H=l;function X(we){if(re(H,we)!=0)if(H=we,u.unit=="rectangle"){for(var Se=[],Ie=n.options.tabSize,Oe=Q(Te(v,l.line).text,l.ch,Ie),We=Q(Te(v,we.line).text,we.ch,Ie),mt=Math.min(Oe,We),Qt=Math.max(Oe,We),Ft=Math.min(l.line,we.line),Pr=Math.min(n.lastLine(),Math.max(l.line,we.line));Ft<=Pr;Ft++){var Ar=Te(v,Ft).text,It=se(Ar,mt,Ie);mt==Qt?Se.push(new ct(W(Ft,It),W(Ft,It))):Ar.length>It&&Se.push(new ct(W(Ft,It),W(Ft,se(Ar,Qt,Ie))))}Se.length||Se.push(new ct(l,l)),ur(v,gn(n,E.ranges.slice(0,A).concat(Se),A),{origin:"*mouse",scroll:!1}),n.scrollIntoView(we)}else{var Er=b,rr=r1(n,we,u.unit),qt=Er.anchor,Rt;re(rr.anchor,qt)>0?(Rt=rr.head,qt=Ht(Er.from(),rr.anchor)):(Rt=rr.anchor,qt=ot(Er.to(),rr.head));var Lt=E.ranges.slice(0);Lt[A]=Y2(n,new ct(qe(v,qt),Rt)),ur(v,gn(n,Lt,A),G)}}var K=f.wrapper.getBoundingClientRect(),ne=0;function le(we){var Se=++ne,Ie=ws(n,we,!0,u.unit=="rectangle");if(Ie)if(re(Ie,H)!=0){n.curOp.focus=oe(Ue(n)),X(Ie);var Oe=Jl(f,v);(Ie.line>=Oe.to||Ie.line<Oe.from)&&setTimeout(Kt(n,function(){ne==Se&&le(we)}),150)}else{var We=we.clientY<K.top?-20:we.clientY>K.bottom?20:0;We&&setTimeout(Kt(n,function(){ne==Se&&(f.scroller.scrollTop+=We,le(we))}),50)}}function me(we){n.state.selectingText=!1,ne=1/0,we&&(ar(we),f.input.focus()),or(f.wrapper.ownerDocument,"mousemove",be),or(f.wrapper.ownerDocument,"mouseup",Ce),v.history.lastSelOrigin=null}var be=Kt(n,function(we){we.buttons===0||!Ra(we)?me(we):le(we)}),Ce=Kt(n,me);n.state.selectingText=Ce,De(f.wrapper.ownerDocument,"mousemove",be),De(f.wrapper.ownerDocument,"mouseup",Ce)}function Y2(n,s){var l=s.anchor,u=s.head,f=Te(n.doc,l.line);if(re(l,u)==0&&l.sticky==u.sticky)return s;var v=Dt(f);if(!v)return s;var b=tr(v,l.ch,l.sticky),A=v[b];if(A.from!=l.ch&&A.to!=l.ch)return s;var E=b+(A.from==l.ch==(A.level!=1)?0:1);if(E==0||E==v.length)return s;var _;if(u.line!=l.line)_=(u.line-l.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var P=tr(v,u.ch,u.sticky),H=P-b||(u.ch-l.ch)*(A.level==1?-1:1);P==E-1||P==E?_=H<0:_=H>0}var X=v[E+(_?-1:0)],K=_==(X.level==1),ne=K?X.from:X.to,le=K?"after":"before";return l.ch==ne&&l.sticky==le?s:new ct(new W(l.line,ne,le),u)}function n1(n,s,l,u){var f,v;if(s.touches)f=s.touches[0].clientX,v=s.touches[0].clientY;else try{f=s.clientX,v=s.clientY}catch{return!1}if(f>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;u&&ar(s);var b=n.display,A=b.lineDiv.getBoundingClientRect();if(v>A.bottom||!fr(n,l))return Ia(s);v-=A.top-b.viewOffset;for(var E=0;E<n.display.gutterSpecs.length;++E){var _=b.gutters.childNodes[E];if(_&&_.getBoundingClientRect().right>=f){var P=On(n.doc,v),H=n.display.gutterSpecs[E];return wt(n,l,n,P,H.className,s),Ia(s)}}}function Rd(n,s){return n1(n,s,"gutterClick",!0)}function i1(n,s){ai(n.display,s)||Z2(n,s)||Tt(n,s,"contextmenu")||ie||n.display.input.onContextMenu(s)}function Z2(n,s){return fr(n,"gutterContextMenu")?n1(n,s,"gutterContextMenu",!1):!1}function s1(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Wa(n)}var Fo={toString:function(){return"CodeMirror.Init"}},o1={},hc={};function J2(n){var s=n.optionHandlers;function l(u,f,v,b){n.defaults[u]=f,v&&(s[u]=b?function(A,E,_){_!=Fo&&v(A,E,_)}:v)}n.defineOption=l,n.Init=Fo,l("value","",function(u,f){return u.setValue(f)},!0),l("mode",null,function(u,f){u.doc.modeOption=f,Fd(u)},!0),l("indentUnit",2,Fd,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(u){eu(u),Wa(u),wr(u)},!0),l("lineSeparator",null,function(u,f){if(u.doc.lineSep=f,!!f){var v=[],b=u.doc.first;u.doc.iter(function(E){for(var _=0;;){var P=E.text.indexOf(f,_);if(P==-1)break;_=P+f.length,v.push(W(b,P))}b++});for(var A=v.length-1;A>=0;A--)xo(u.doc,f,v[A],W(v[A].line,v[A].ch+f.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(u,f,v){u.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),v!=Fo&&u.refresh()}),l("specialCharPlaceholder",FF,function(u){return u.refresh()},!0),l("electricChars",!0),l("inputStyle",L?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(u,f){return u.getInputField().spellcheck=f},!0),l("autocorrect",!1,function(u,f){return u.getInputField().autocorrect=f},!0),l("autocapitalize",!1,function(u,f){return u.getInputField().autocapitalize=f},!0),l("rtlMoveVisually",!M),l("wholeLineUpdateBefore",!0),l("theme","default",function(u){s1(u),Ja(u)},!0),l("keyMap","default",function(u,f,v){var b=cc(f),A=v!=Fo&&cc(v);A&&A.detach&&A.detach(u,b),b.attach&&b.attach(u,A||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,t$,!0),l("gutters",[],function(u,f){u.display.gutterSpecs=_d(f,u.options.lineNumbers),Ja(u)},!0),l("fixedGutter",!0,function(u,f){u.display.gutters.style.left=f?pd(u.display)+"px":"0",u.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(u){return wo(u)},!0),l("scrollbarStyle","native",function(u){uy(u),wo(u),u.display.scrollbars.setScrollTop(u.doc.scrollTop),u.display.scrollbars.setScrollLeft(u.doc.scrollLeft)},!0),l("lineNumbers",!1,function(u,f){u.display.gutterSpecs=_d(u.options.gutters,f),Ja(u)},!0),l("firstLineNumber",1,Ja,!0),l("lineNumberFormatter",function(u){return u},Ja,!0),l("showCursorWhenSelecting",!1,Ga,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(u,f){f=="nocursor"&&(yo(u),u.display.input.blur()),u.display.input.readOnlyChanged(f)}),l("screenReaderLabel",null,function(u,f){f=f===""?null:f,u.display.input.screenReaderLabelChanged(f)}),l("disableInput",!1,function(u,f){f||u.display.input.reset()},!0),l("dragDrop",!0,e$),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Ga,!0),l("singleCursorHeightPerLine",!0,Ga,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,eu,!0),l("addModeClass",!1,eu,!0),l("pollInterval",100),l("undoDepth",200,function(u,f){return u.doc.history.undoDepth=f}),l("historyEventDelay",1250),l("viewportMargin",10,function(u){return u.refresh()},!0),l("maxHighlightLength",1e4,eu,!0),l("moveInputWithCursor",!0,function(u,f){f||u.display.input.resetPosition()}),l("tabindex",null,function(u,f){return u.display.input.getField().tabIndex=f||""}),l("autofocus",null),l("direction","ltr",function(u,f){return u.doc.setDirection(f)},!0),l("phrases",null)}function e$(n,s,l){var u=l&&l!=Fo;if(!s!=!u){var f=n.display.dragFunctions,v=s?De:or;v(n.display.scroller,"dragstart",f.start),v(n.display.scroller,"dragenter",f.enter),v(n.display.scroller,"dragover",f.over),v(n.display.scroller,"dragleave",f.leave),v(n.display.scroller,"drop",f.drop)}}function t$(n){n.options.lineWrapping?(ge(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(z(n.display.wrapper,"CodeMirror-wrap"),id(n)),gd(n),wr(n),Wa(n),setTimeout(function(){return wo(n)},100)}function xt(n,s){var l=this;if(!(this instanceof xt))return new xt(n,s);this.options=s=s?xe(s):{},xe(o1,s,!1);var u=s.value;typeof u=="string"?u=new Dr(u,s.mode,null,s.lineSeparator,s.direction):s.mode&&(u.modeOption=s.mode),this.doc=u;var f=new xt.inputStyles[s.inputStyle](this),v=this.display=new p2(n,u,f,s);v.wrapper.CodeMirror=this,s1(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),uy(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 ae,keySeq:null,specialChars:null},s.autofocus&&!L&&v.input.focus(),d&&p<11&&setTimeout(function(){return l.display.input.reset(!0)},20),r$(this),B2(),xs(this),this.curOp.forceUpdate=!0,yy(this,u),s.autofocus&&!L||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&bd(l)},20):yo(this);for(var b in hc)hc.hasOwnProperty(b)&&hc[b](this,s[b],Fo);fy(this),s.finishInit&&s.finishInit(this);for(var A=0;A<Md.length;++A)Md[A](this);Cs(this),g&&s.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}xt.defaults=o1,xt.optionHandlers=hc;function r$(n){var s=n.display;De(s.scroller,"mousedown",Kt(n,t1)),d&&p<11?De(s.scroller,"dblclick",Kt(n,function(E){if(!Tt(n,E)){var _=ws(n,E);if(!(!_||Rd(n,E)||ai(n.display,E))){ar(E);var P=n.findWordAt(_);sc(n.doc,P.anchor,P.head)}}})):De(s.scroller,"dblclick",function(E){return Tt(n,E)||ar(E)}),De(s.scroller,"contextmenu",function(E){return i1(n,E)}),De(s.input.getField(),"contextmenu",function(E){s.scroller.contains(E.target)||i1(n,E)});var l,u={end:0};function f(){s.activeTouch&&(l=setTimeout(function(){return s.activeTouch=null},1e3),u=s.activeTouch,u.end=+new Date)}function v(E){if(E.touches.length!=1)return!1;var _=E.touches[0];return _.radiusX<=1&&_.radiusY<=1}function b(E,_){if(_.left==null)return!0;var P=_.left-E.left,H=_.top-E.top;return P*P+H*H>20*20}De(s.scroller,"touchstart",function(E){if(!Tt(n,E)&&!v(E)&&!Rd(n,E)){s.input.ensurePolled(),clearTimeout(l);var _=+new Date;s.activeTouch={start:_,moved:!1,prev:_-u.end<=300?u:null},E.touches.length==1&&(s.activeTouch.left=E.touches[0].pageX,s.activeTouch.top=E.touches[0].pageY)}}),De(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),De(s.scroller,"touchend",function(E){var _=s.activeTouch;if(_&&!ai(s,E)&&_.left!=null&&!_.moved&&new Date-_.start<300){var P=n.coordsChar(s.activeTouch,"page"),H;!_.prev||b(_,_.prev)?H=new ct(P,P):!_.prev.prev||b(_,_.prev.prev)?H=n.findWordAt(P):H=new ct(W(P.line,0),qe(n.doc,W(P.line+1,0))),n.setSelection(H.anchor,H.head),n.focus(),ar(E)}f()}),De(s.scroller,"touchcancel",f),De(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Xa(n,s.scroller.scrollTop),As(n,s.scroller.scrollLeft,!0),wt(n,"scroll",n))}),De(s.scroller,"mousewheel",function(E){return py(n,E)}),De(s.scroller,"DOMMouseScroll",function(E){return py(n,E)}),De(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(E){Tt(n,E)||ti(E)},over:function(E){Tt(n,E)||(L2(n,E),ti(E))},start:function(E){return k2(n,E)},drop:Kt(n,T2),leave:function(E){Tt(n,E)||Hy(n)}};var A=s.input.getField();De(A,"keyup",function(E){return Jy.call(n,E)}),De(A,"keydown",Kt(n,Zy)),De(A,"keypress",Kt(n,e1)),De(A,"focus",function(E){return bd(n,E)}),De(A,"blur",function(E){return yo(n,E)})}var Md=[];xt.defineInitHook=function(n){return Md.push(n)};function du(n,s,l,u){var f=n.doc,v;l==null&&(l="add"),l=="smart"&&(f.mode.indent?v=Ua(n,s).state:l="prev");var b=n.options.tabSize,A=Te(f,s),E=Q(A.text,null,b);A.stateAfter&&(A.stateAfter=null);var _=A.text.match(/^\s*/)[0],P;if(!u&&!/\S/.test(A.text))P=0,l="not";else if(l=="smart"&&(P=f.mode.indent(v,A.text.slice(_.length),A.text),P==Be||P>150)){if(!u)return;l="prev"}l=="prev"?s>f.first?P=Q(Te(f,s-1).text,null,b):P=0:l=="add"?P=E+n.options.indentUnit:l=="subtract"?P=E-n.options.indentUnit:typeof l=="number"&&(P=E+l),P=Math.max(0,P);var H="",X=0;if(n.options.indentWithTabs)for(var K=Math.floor(P/b);K;--K)X+=b,H+=" ";if(X<P&&(H+=fe(P-X)),H!=_)return xo(f,H,W(s,0),W(s,_.length),"+input"),A.stateAfter=null,!0;for(var ne=0;ne<f.sel.ranges.length;ne++){var le=f.sel.ranges[ne];if(le.head.line==s&&le.head.ch<_.length){var me=W(s,_.length);Ld(f,ne,new ct(me,me));break}}}var vn=null;function dc(n){vn=n}function zd(n,s,l,u,f){var v=n.doc;n.display.shift=!1,u||(u=v.sel);var b=+new Date-200,A=f=="paste"||n.state.pasteIncoming>b,E=Ma(s),_=null;if(A&&u.ranges.length>1)if(vn&&vn.text.join(`
29
+ `)==s){if(u.ranges.length%vn.text.length==0){_=[];for(var P=0;P<vn.text.length;P++)_.push(v.splitLines(vn.text[P]))}}else E.length==u.ranges.length&&n.options.pasteLinesPerSelection&&(_=ye(E,function(be){return[be]}));for(var H=n.curOp.updateInput,X=u.ranges.length-1;X>=0;X--){var K=u.ranges[X],ne=K.from(),le=K.to();K.empty()&&(l&&l>0?ne=W(ne.line,ne.ch-l):n.state.overwrite&&!A?le=W(le.line,Math.min(Te(v,le.line).text.length,le.ch+he(E).length)):A&&vn&&vn.lineWise&&vn.text.join(`
30
+ `)==E.join(`
31
+ `)&&(ne=le=W(ne.line,0)));var me={from:ne,to:le,text:_?_[X%_.length]:E,origin:f||(A?"paste":n.state.cutIncoming>b?"cut":"+input")};Eo(n.doc,me),Gt(n,"inputRead",n,me)}s&&!A&&u1(n,s),bo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=H),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function a1(n,s){var l=n.clipboardData&&n.clipboardData.getData("Text");if(l)return n.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Or(s,function(){return zd(s,l,0,null,"paste")}),!0}function u1(n,s){if(!(!n.options.electricChars||!n.options.smartIndent))for(var l=n.doc.sel,u=l.ranges.length-1;u>=0;u--){var f=l.ranges[u];if(!(f.head.ch>100||u&&l.ranges[u-1].head.line==f.head.line)){var v=n.getModeAt(f.head),b=!1;if(v.electricChars){for(var A=0;A<v.electricChars.length;A++)if(s.indexOf(v.electricChars.charAt(A))>-1){b=du(n,f.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(Te(n.doc,f.head.line).text.slice(0,f.head.ch))&&(b=du(n,f.head.line,"smart"));b&&Gt(n,"electricInput",n,f.head.line)}}}function l1(n){for(var s=[],l=[],u=0;u<n.doc.sel.ranges.length;u++){var f=n.doc.sel.ranges[u].head.line,v={anchor:W(f,0),head:W(f+1,0)};l.push(v),s.push(n.getRange(v.anchor,v.head))}return{text:s,ranges:l}}function Ud(n,s,l,u){n.setAttribute("autocorrect",l?"on":"off"),n.setAttribute("autocapitalize",u?"on":"off"),n.setAttribute("spellcheck",!!s)}function c1(){var n=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=D("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?n.style.width="1000px":n.setAttribute("wrap","off"),S&&(n.style.border="1px solid black"),s}function n$(n){var s=n.optionHandlers,l=n.helpers={};n.prototype={constructor:n,focus:function(){Ke(this).focus(),this.display.input.focus()},setOption:function(u,f){var v=this.options,b=v[u];v[u]==f&&u!="mode"||(v[u]=f,s.hasOwnProperty(u)&&Kt(this,s[u])(this,f,b),wt(this,"optionChange",this,u))},getOption:function(u){return this.options[u]},getDoc:function(){return this.doc},addKeyMap:function(u,f){this.state.keyMaps[f?"push":"unshift"](cc(u))},removeKeyMap:function(u){for(var f=this.state.keyMaps,v=0;v<f.length;++v)if(f[v]==u||f[v].name==u)return f.splice(v,1),!0},addOverlay:dr(function(u,f){var v=u.token?u:n.getMode(this.options,u);if(v.startState)throw new Error("Overlays may not be stateful.");Ee(this.state.overlays,{mode:v,modeSpec:u,opaque:f&&f.opaque,priority:f&&f.priority||0},function(b){return b.priority}),this.state.modeGen++,wr(this)}),removeOverlay:dr(function(u){for(var f=this.state.overlays,v=0;v<f.length;++v){var b=f[v].modeSpec;if(b==u||typeof u=="string"&&b.name==u){f.splice(v,1),this.state.modeGen++,wr(this);return}}}),indentLine:dr(function(u,f,v){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),k(this.doc,u)&&du(this,u,f,v)}),indentSelection:dr(function(u){for(var f=this.doc.sel.ranges,v=-1,b=0;b<f.length;b++){var A=f[b];if(A.empty())A.head.line>v&&(du(this,A.head.line,u,!0),v=A.head.line,b==this.doc.sel.primIndex&&bo(this));else{var E=A.from(),_=A.to(),P=Math.max(v,E.line);v=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var H=P;H<v;++H)du(this,H,u);var X=this.doc.sel.ranges;E.ch==0&&f.length==X.length&&X[b].from().ch>0&&Ld(this.doc,b,new ct(E,X[b].to()),U)}}}),getTokenAt:function(u,f){return wm(this,u,f)},getLineTokens:function(u,f){return wm(this,W(u),f,!0)},getTokenTypeAt:function(u){u=qe(this.doc,u);var f=mm(this,Te(this.doc,u.line)),v=0,b=(f.length-1)/2,A=u.ch,E;if(A==0)E=f[2];else for(;;){var _=v+b>>1;if((_?f[_*2-1]:0)>=A)b=_;else if(f[_*2+1]<A)v=_+1;else{E=f[_*2+2];break}}var P=E?E.indexOf("overlay "):-1;return P<0?E:P==0?null:E.slice(0,P-1)},getModeAt:function(u){var f=this.doc.mode;return f.innerMode?n.innerMode(f,this.getTokenAt(u).state).mode:f},getHelper:function(u,f){return this.getHelpers(u,f)[0]},getHelpers:function(u,f){var v=[];if(!l.hasOwnProperty(f))return v;var b=l[f],A=this.getModeAt(u);if(typeof A[f]=="string")b[A[f]]&&v.push(b[A[f]]);else if(A[f])for(var E=0;E<A[f].length;E++){var _=b[A[f][E]];_&&v.push(_)}else A.helperType&&b[A.helperType]?v.push(b[A.helperType]):b[A.name]&&v.push(b[A.name]);for(var P=0;P<b._global.length;P++){var H=b._global[P];H.pred(A,this)&&ce(v,H.val)==-1&&v.push(H.val)}return v},getStateAfter:function(u,f){var v=this.doc;return u=Vr(v,u??v.first+v.size-1),Ua(this,u+1,f).state},cursorCoords:function(u,f){var v,b=this.doc.sel.primary();return u==null?v=b.head:typeof u=="object"?v=qe(this.doc,u):v=u?b.from():b.to(),pn(this,v,f||"page")},charCoords:function(u,f){return Xl(this,qe(this.doc,u),f||"page")},coordsChar:function(u,f){return u=Xm(this,u,f||"page"),fd(this,u.left,u.top)},lineAtHeight:function(u,f){return u=Xm(this,{top:u,left:0},f||"page").top,On(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,f,v){var b=!1,A;if(typeof u=="number"){var E=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>E&&(u=E,b=!0),A=Te(this.doc,u)}else A=u;return Kl(this,A,{top:0,left:0},f||"page",v||b).top+(b?this.doc.height-oi(A):0)},defaultTextHeight:function(){return vo(this.display)},defaultCharWidth:function(){return mo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,f,v,b,A){var E=this.display;u=pn(this,qe(this.doc,u));var _=u.bottom,P=u.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),E.sizer.appendChild(f),b=="over")_=u.top;else if(b=="above"||b=="near"){var H=Math.max(E.wrapper.clientHeight,this.doc.height),X=Math.max(E.sizer.clientWidth,E.lineSpace.clientWidth);(b=="above"||u.bottom+f.offsetHeight>H)&&u.top>f.offsetHeight?_=u.top-f.offsetHeight:u.bottom+f.offsetHeight<=H&&(_=u.bottom),P+f.offsetWidth>X&&(P=X-f.offsetWidth)}f.style.top=_+"px",f.style.left=f.style.right="",A=="right"?(P=E.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(A=="left"?P=0:A=="middle"&&(P=(E.sizer.clientWidth-f.offsetWidth)/2),f.style.left=P+"px"),v&&e2(this,{left:P,top:_,right:P+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:dr(Zy),triggerOnKeyPress:dr(e1),triggerOnKeyUp:Jy,triggerOnMouseDown:dr(t1),execCommand:function(u){if(lu.hasOwnProperty(u))return lu[u].call(null,this)},triggerElectric:dr(function(u){u1(this,u)}),findPosH:function(u,f,v,b){var A=1;f<0&&(A=-1,f=-f);for(var E=qe(this.doc,u),_=0;_<f&&(E=Hd(this.doc,E,A,v,b),!E.hitSide);++_);return E},moveH:dr(function(u,f){var v=this;this.extendSelectionsBy(function(b){return v.display.shift||v.doc.extend||b.empty()?Hd(v.doc,b.head,u,f,v.options.rtlMoveVisually):u<0?b.from():b.to()},Z)}),deleteH:dr(function(u,f){var v=this.doc.sel,b=this.doc;v.somethingSelected()?b.replaceSelection("",null,"+delete"):So(this,function(A){var E=Hd(b,A.head,u,f,!1);return u<0?{from:E,to:A.head}:{from:A.head,to:E}})}),findPosV:function(u,f,v,b){var A=1,E=b;f<0&&(A=-1,f=-f);for(var _=qe(this.doc,u),P=0;P<f;++P){var H=pn(this,_,"div");if(E==null?E=H.left:H.left=E,_=f1(this,H,A,v),_.hitSide)break}return _},moveV:dr(function(u,f){var v=this,b=this.doc,A=[],E=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(P){if(E)return u<0?P.from():P.to();var H=pn(v,P.head,"div");P.goalColumn!=null&&(H.left=P.goalColumn),A.push(H.left);var X=f1(v,H,u,f);return f=="page"&&P==b.sel.primary()&&Dd(v,Xl(v,X,"div").top-H.top),X},Z),A.length)for(var _=0;_<b.sel.ranges.length;_++)b.sel.ranges[_].goalColumn=A[_]}),findWordAt:function(u){var f=this.doc,v=Te(f,u.line).text,b=u.ch,A=u.ch;if(v){var E=this.getHelper(u,"wordChars");(u.sticky=="before"||A==v.length)&&b?--b:++A;for(var _=v.charAt(b),P=Re(_,E)?function(H){return Re(H,E)}:/\s/.test(_)?function(H){return/\s/.test(H)}:function(H){return!/\s/.test(H)&&!Re(H)};b>0&&P(v.charAt(b-1));)--b;for(;A<v.length&&P(v.charAt(A));)++A}return new ct(W(u.line,b),W(u.line,A))},toggleOverwrite:function(u){u!=null&&u==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ge(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==oe(Ue(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dr(function(u,f){Ka(this,u,f)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-Nn(this)-this.display.barHeight,width:u.scrollWidth-Nn(this)-this.display.barWidth,clientHeight:ad(this),clientWidth:ys(this)}},scrollIntoView:dr(function(u,f){u==null?(u={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof u=="number"?u={from:W(u,0),to:null}:u.from==null&&(u={from:u,to:null}),u.to||(u.to=u.from),u.margin=f||0,u.from.line!=null?t2(this,u):iy(this,u.from,u.to,u.margin)}),setSize:dr(function(u,f){var v=this,b=function(E){return typeof E=="number"||/^\d+$/.test(String(E))?E+"px":E};u!=null&&(this.display.wrapper.style.width=b(u)),f!=null&&(this.display.wrapper.style.height=b(f)),this.options.lineWrapping&&Wm(this);var A=this.display.viewFrom;this.doc.iter(A,this.display.viewTo,function(E){if(E.widgets){for(var _=0;_<E.widgets.length;_++)if(E.widgets[_].noHScroll){Ui(v,A,"widget");break}}++A}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(u){return Or(this,u)},startOperation:function(){return xs(this)},endOperation:function(){return Cs(this)},refresh:dr(function(){var u=this.display.cachedTextHeight;wr(this),this.curOp.forceUpdate=!0,Wa(this),Ka(this,this.doc.scrollLeft,this.doc.scrollTop),xd(this.display),(u==null||Math.abs(u-vo(this.display))>.5||this.options.lineWrapping)&&gd(this),wt(this,"refresh",this)}),swapDoc:dr(function(u){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),yy(this,u),Wa(this),this.display.input.reset(),Ka(this,u.scrollLeft,u.scrollTop),this.curOp.forceScroll=!0,Gt(this,"swapDoc",this,f),f}),phrase:function(u){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,u)?f[u]:u},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}},hr(n),n.registerHelper=function(u,f,v){l.hasOwnProperty(u)||(l[u]=n[u]={_global:[]}),l[u][f]=v},n.registerGlobalHelper=function(u,f,v,b){n.registerHelper(u,f,b),l[u]._global.push({pred:v,val:b})}}function Hd(n,s,l,u,f){var v=s,b=l,A=Te(n,s.line),E=f&&n.direction=="rtl"?-l:l;function _(){var Ce=s.line+E;return Ce<n.first||Ce>=n.first+n.size?!1:(s=new W(Ce,s.ch,s.sticky),A=Te(n,Ce))}function P(Ce){var we;if(u=="codepoint"){var Se=A.text.charCodeAt(s.ch+(l>0?0:-1));if(isNaN(Se))we=null;else{var Ie=l>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;we=new W(s.line,Math.max(0,Math.min(A.text.length,s.ch+l*(Ie?2:1))),-l)}}else f?we=R2(n.cm,A,s,l):we=Od(A,s,l);if(we==null)if(!Ce&&_())s=Pd(f,n.cm,A,s.line,E);else return!1;else s=we;return!0}if(u=="char"||u=="codepoint")P();else if(u=="column")P(!0);else if(u=="word"||u=="group")for(var H=null,X=u=="group",K=n.cm&&n.cm.getHelper(s,"wordChars"),ne=!0;!(l<0&&!P(!ne));ne=!1){var le=A.text.charAt(s.ch)||`
32
+ `,me=Re(le,K)?"w":X&&le==`
33
+ `?"n":!X||/\s/.test(le)?null:"p";if(X&&!ne&&!me&&(me="s"),H&&H!=me){l<0&&(l=1,P(),s.sticky="after");break}if(me&&(H=me),l>0&&!P(!ne))break}var be=ac(n,s,v,b,!0);return He(v,be)&&(be.hitSide=!0),be}function f1(n,s,l,u){var f=n.doc,v=s.left,b;if(u=="page"){var A=Math.min(n.display.wrapper.clientHeight,Ke(n).innerHeight||f(n).documentElement.clientHeight),E=Math.max(A-.5*vo(n.display),3);b=(l>0?s.bottom:s.top)+l*E}else u=="line"&&(b=l>0?s.bottom+3:s.top-3);for(var _;_=fd(n,v,b),!!_.outside;){if(l<0?b<=0:b>=f.height){_.hitSide=!0;break}b+=l*5}return _}var pt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};pt.prototype.init=function(n){var s=this,l=this,u=l.cm,f=l.div=n.lineDiv;f.contentEditable=!0,Ud(f,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function v(A){for(var E=A.target;E;E=E.parentNode){if(E==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(E.className))break}return!1}De(f,"paste",function(A){!v(A)||Tt(u,A)||a1(A,u)||p<=11&&setTimeout(Kt(u,function(){return s.updateFromDOM()}),20)}),De(f,"compositionstart",function(A){s.composing={data:A.data,done:!1}}),De(f,"compositionupdate",function(A){s.composing||(s.composing={data:A.data,done:!1})}),De(f,"compositionend",function(A){s.composing&&(A.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),De(f,"touchstart",function(){return l.forceCompositionEnd()}),De(f,"input",function(){s.composing||s.readFromDOMSoon()});function b(A){if(!(!v(A)||Tt(u,A))){if(u.somethingSelected())dc({lineWise:!1,text:u.getSelections()}),A.type=="cut"&&u.replaceSelection("",null,"cut");else if(u.options.lineWiseCopyCut){var E=l1(u);dc({lineWise:!0,text:E.text}),A.type=="cut"&&u.operation(function(){u.setSelections(E.ranges,0,U),u.replaceSelection("",null,"cut")})}else return;if(A.clipboardData){A.clipboardData.clearData();var _=vn.text.join(`
34
+ `);if(A.clipboardData.setData("Text",_),A.clipboardData.getData("Text")==_){A.preventDefault();return}}var P=c1(),H=P.firstChild;Ud(H),u.display.lineSpace.insertBefore(P,u.display.lineSpace.firstChild),H.value=vn.text.join(`
35
+ `);var X=oe(f.ownerDocument);_e(H),setTimeout(function(){u.display.lineSpace.removeChild(P),X.focus(),X==f&&l.showPrimarySelection()},50)}}De(f,"copy",b),De(f,"cut",b)},pt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},pt.prototype.prepareSelection=function(){var n=ty(this.cm,!1);return n.focus=oe(this.div.ownerDocument)==this.div,n},pt.prototype.showSelection=function(n,s){!n||!this.cm.display.view.length||((n.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(n))},pt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},pt.prototype.showPrimarySelection=function(){var n=this.getSelection(),s=this.cm,l=s.doc.sel.primary(),u=l.from(),f=l.to();if(s.display.viewTo==s.display.viewFrom||u.line>=s.display.viewTo||f.line<s.display.viewFrom){n.removeAllRanges();return}var v=pc(s,n.anchorNode,n.anchorOffset),b=pc(s,n.focusNode,n.focusOffset);if(!(v&&!v.bad&&b&&!b.bad&&re(Ht(v,b),u)==0&&re(ot(v,b),f)==0)){var A=s.display.view,E=u.line>=s.display.viewFrom&&h1(s,u)||{node:A[0].measure.map[2],offset:0},_=f.line<s.display.viewTo&&h1(s,f);if(!_){var P=A[A.length-1].measure,H=P.maps?P.maps[P.maps.length-1]:P.map;_={node:H[H.length-1],offset:H[H.length-2]-H[H.length-3]}}if(!E||!_){n.removeAllRanges();return}var X=n.rangeCount&&n.getRangeAt(0),K;try{K=V(E.node,E.offset,_.offset,_.node)}catch{}K&&(!o&&s.state.focused?(n.collapse(E.node,E.offset),K.collapsed||(n.removeAllRanges(),n.addRange(K))):(n.removeAllRanges(),n.addRange(K)),X&&n.anchorNode==null?n.addRange(X):o&&this.startGracePeriod()),this.rememberSelection()}},pt.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)},pt.prototype.showMultipleSelections=function(n){F(this.cm.display.cursorDiv,n.cursors),F(this.cm.display.selectionDiv,n.selection)},pt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},pt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var s=n.getRangeAt(0).commonAncestorContainer;return J(this.div,s)},pt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||oe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},pt.prototype.blur=function(){this.div.blur()},pt.prototype.getField=function(){return this.div},pt.prototype.supportsTouch=function(){return!0},pt.prototype.receivedFocus=function(){var n=this,s=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Or(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function l(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},pt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},pt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),s=this.cm;if(N&&m&&this.cm.display.gutterSpecs.length&&i$(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=pc(s,n.anchorNode,n.anchorOffset),u=pc(s,n.focusNode,n.focusOffset);l&&u&&Or(s,function(){ur(s.doc,qi(l,u),U),(l.bad||u.bad)&&(s.curOp.selectionChanged=!0)})}}},pt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,s=n.display,l=n.doc.sel.primary(),u=l.from(),f=l.to();if(u.ch==0&&u.line>n.firstLine()&&(u=W(u.line-1,Te(n.doc,u.line-1).length)),f.ch==Te(n.doc,f.line).text.length&&f.line<n.lastLine()&&(f=W(f.line+1,0)),u.line<s.viewFrom||f.line>s.viewTo-1)return!1;var v,b,A;u.line==s.viewFrom||(v=Ds(n,u.line))==0?(b=lt(s.view[0].line),A=s.view[0].node):(b=lt(s.view[v].line),A=s.view[v-1].node.nextSibling);var E=Ds(n,f.line),_,P;if(E==s.view.length-1?(_=s.viewTo-1,P=s.lineDiv.lastChild):(_=lt(s.view[E+1].line)-1,P=s.view[E+1].node.previousSibling),!A)return!1;for(var H=n.doc.splitLines(s$(n,A,P,b,_)),X=ii(n.doc,W(b,0),W(_,Te(n.doc,_).text.length));H.length>1&&X.length>1;)if(he(H)==he(X))H.pop(),X.pop(),_--;else if(H[0]==X[0])H.shift(),X.shift(),b++;else break;for(var K=0,ne=0,le=H[0],me=X[0],be=Math.min(le.length,me.length);K<be&&le.charCodeAt(K)==me.charCodeAt(K);)++K;for(var Ce=he(H),we=he(X),Se=Math.min(Ce.length-(H.length==1?K:0),we.length-(X.length==1?K:0));ne<Se&&Ce.charCodeAt(Ce.length-ne-1)==we.charCodeAt(we.length-ne-1);)++ne;if(H.length==1&&X.length==1&&b==u.line)for(;K&&K>u.ch&&Ce.charCodeAt(Ce.length-ne-1)==we.charCodeAt(we.length-ne-1);)K--,ne++;H[H.length-1]=Ce.slice(0,Ce.length-ne).replace(/^\u200b+/,""),H[0]=H[0].slice(K).replace(/\u200b+$/,"");var Ie=W(b,K),Oe=W(_,X.length?he(X).length-ne:0);if(H.length>1||H[0]||re(Ie,Oe))return xo(n.doc,H,Ie,Oe,"+input"),!0},pt.prototype.ensurePolled=function(){this.forceCompositionEnd()},pt.prototype.reset=function(){this.forceCompositionEnd()},pt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},pt.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))},pt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Or(this.cm,function(){return wr(n.cm)})},pt.prototype.setUneditable=function(n){n.contentEditable="false"},pt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,zd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},pt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},pt.prototype.onContextMenu=function(){},pt.prototype.resetPosition=function(){},pt.prototype.needsContentAttribute=!0;function h1(n,s){var l=ud(n,s.line);if(!l||l.hidden)return null;var u=Te(n.doc,s.line),f=Um(l,u,s.line),v=Dt(u,n.doc.direction),b="left";if(v){var A=tr(v,s.ch);b=A%2?"right":"left"}var E=jm(f.map,s.ch,b);return E.offset=E.collapse=="right"?E.end:E.start,E}function i$(n){for(var s=n;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function $o(n,s){return s&&(n.bad=!0),n}function s$(n,s,l,u,f){var v="",b=!1,A=n.doc.lineSeparator(),E=!1;function _(K){return function(ne){return ne.id==K}}function P(){b&&(v+=A,E&&(v+=A),b=E=!1)}function H(K){K&&(P(),v+=K)}function X(K){if(K.nodeType==1){var ne=K.getAttribute("cm-text");if(ne){H(ne);return}var le=K.getAttribute("cm-marker"),me;if(le){var be=n.findMarks(W(u,0),W(f+1,0),_(+le));be.length&&(me=be[0].find(0))&&H(ii(n.doc,me.from,me.to).join(A));return}if(K.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;Ce&&P();for(var we=0;we<K.childNodes.length;we++)X(K.childNodes[we]);/^(pre|p)$/i.test(K.nodeName)&&(E=!0),Ce&&(b=!0)}else K.nodeType==3&&H(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;X(s),s!=l;)s=s.nextSibling,E=!1;return v}function pc(n,s,l){var u;if(s==n.display.lineDiv){if(u=n.display.lineDiv.childNodes[l],!u)return $o(n.clipPos(W(n.display.viewTo-1)),!0);s=null,l=0}else for(u=s;;u=u.parentNode){if(!u||u==n.display.lineDiv)return null;if(u.parentNode&&u.parentNode==n.display.lineDiv)break}for(var f=0;f<n.display.view.length;f++){var v=n.display.view[f];if(v.node==u)return o$(v,s,l)}}function o$(n,s,l){var u=n.text.firstChild,f=!1;if(!s||!J(u,s))return $o(W(lt(n.line),0),!0);if(s==u&&(f=!0,s=u.childNodes[l],l=0,!s)){var v=n.rest?he(n.rest):n.line;return $o(W(lt(v),v.text.length),f)}var b=s.nodeType==3?s:null,A=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,l&&(l=b.nodeValue.length));A.parentNode!=u;)A=A.parentNode;var E=n.measure,_=E.maps;function P(me,be,Ce){for(var we=-1;we<(_?_.length:0);we++)for(var Se=we<0?E.map:_[we],Ie=0;Ie<Se.length;Ie+=3){var Oe=Se[Ie+2];if(Oe==me||Oe==be){var We=lt(we<0?n.line:n.rest[we]),mt=Se[Ie]+Ce;return(Ce<0||Oe!=me)&&(mt=Se[Ie+(Ce?1:0)]),W(We,mt)}}}var H=P(b,A,l);if(H)return $o(H,f);for(var X=A.nextSibling,K=b?b.nodeValue.length-l:0;X;X=X.nextSibling){if(H=P(X,X.firstChild,0),H)return $o(W(H.line,H.ch-K),f);K+=X.textContent.length}for(var ne=A.previousSibling,le=l;ne;ne=ne.previousSibling){if(H=P(ne,ne.firstChild,-1),H)return $o(W(H.line,H.ch+le),f);le+=ne.textContent.length}}var Pt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null,this.resetting=!1};Pt.prototype.init=function(n){var s=this,l=this,u=this.cm;this.createField(n);var f=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),S&&(f.style.width="0px"),De(f,"input",function(){d&&p>=9&&s.hasSelection&&(s.hasSelection=null),l.poll()}),De(f,"paste",function(b){Tt(u,b)||a1(b,u)||(u.state.pasteIncoming=+new Date,l.fastPoll())});function v(b){if(!Tt(u,b)){if(u.somethingSelected())dc({lineWise:!1,text:u.getSelections()});else if(u.options.lineWiseCopyCut){var A=l1(u);dc({lineWise:!0,text:A.text}),b.type=="cut"?u.setSelections(A.ranges,null,U):(l.prevInput="",f.value=A.text.join(`
36
+ `),_e(f))}else return;b.type=="cut"&&(u.state.cutIncoming=+new Date)}}De(f,"cut",v),De(f,"copy",v),De(n.scroller,"paste",function(b){if(!(ai(n,b)||Tt(u,b))){if(!f.dispatchEvent){u.state.pasteIncoming=+new Date,l.focus();return}var A=new Event("paste");A.clipboardData=b.clipboardData,f.dispatchEvent(A)}}),De(n.lineSpace,"selectstart",function(b){ai(n,b)||ar(b)}),De(f,"compositionstart",function(){var b=u.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:b,range:u.markText(b,u.getCursor("to"),{className:"CodeMirror-composing"})}}),De(f,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Pt.prototype.createField=function(n){this.wrapper=c1(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;Ud(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},Pt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Pt.prototype.prepareSelection=function(){var n=this.cm,s=n.display,l=n.doc,u=ty(n);if(n.options.moveInputWithCursor){var f=pn(n,l.sel.primary().head,"div"),v=s.wrapper.getBoundingClientRect(),b=s.lineDiv.getBoundingClientRect();u.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,f.top+b.top-v.top)),u.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,f.left+b.left-v.left))}return u},Pt.prototype.showSelection=function(n){var s=this.cm,l=s.display;F(l.cursorDiv,n.cursors),F(l.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Pt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var l=s.getSelection();this.textarea.value=l,s.state.focused&&_e(this.textarea),d&&p>=9&&(this.hasSelection=l)}else n||(this.prevInput=this.textarea.value="",d&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Pt.prototype.getField=function(){return this.textarea},Pt.prototype.supportsTouch=function(){return!1},Pt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||oe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Pt.prototype.blur=function(){this.textarea.blur()},Pt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Pt.prototype.receivedFocus=function(){this.slowPoll()},Pt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Pt.prototype.fastPoll=function(){var n=!1,s=this;s.pollingFast=!0;function l(){var u=s.poll();!u&&!n?(n=!0,s.polling.set(60,l)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,l)},Pt.prototype.poll=function(){var n=this,s=this.cm,l=this.textarea,u=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Ni(l)&&!u&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var f=l.value;if(f==u&&!s.somethingSelected())return!1;if(d&&p>=9&&this.hasSelection===f||T&&/[\uf700-\uf7ff]/.test(f))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var v=f.charCodeAt(0);if(v==8203&&!u&&(u="​"),v==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,A=Math.min(u.length,f.length);b<A&&u.charCodeAt(b)==f.charCodeAt(b);)++b;return Or(s,function(){zd(s,f.slice(b),u.length-b,null,n.composing?"*compose":null),f.length>1e3||f.indexOf(`
37
+ `)>-1?l.value=n.prevInput="":n.prevInput=f,n.composing&&(n.composing.range.clear(),n.composing.range=s.markText(n.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Pt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Pt.prototype.onKeyPress=function(){d&&p>=9&&(this.hasSelection=null),this.fastPoll()},Pt.prototype.onContextMenu=function(n){var s=this,l=s.cm,u=l.display,f=s.textarea;s.contextMenuPending&&s.contextMenuPending();var v=ws(l,n),b=u.scroller.scrollTop;if(!v||$)return;var A=l.options.resetSelectionOnContextMenu;A&&l.doc.sel.contains(v)==-1&&Kt(l,ur)(l.doc,qi(v),U);var E=f.style.cssText,_=s.wrapper.style.cssText,P=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
38
+ top: `+(n.clientY-P.top-5)+"px; left: "+(n.clientX-P.left-5)+`px;
39
+ z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
40
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var H;g&&(H=f.ownerDocument.defaultView.scrollY),u.input.focus(),g&&f.ownerDocument.defaultView.scrollTo(null,H),u.input.reset(),l.somethingSelected()||(f.value=s.prevInput=" "),s.contextMenuPending=K,u.selForContextMenu=l.doc.sel,clearTimeout(u.detectingSelectAll);function X(){if(f.selectionStart!=null){var le=l.somethingSelected(),me="​"+(le?f.value:"");f.value="⇚",f.value=me,s.prevInput=le?"":"​",f.selectionStart=1,f.selectionEnd=me.length,u.selForContextMenu=l.doc.sel}}function K(){if(s.contextMenuPending==K&&(s.contextMenuPending=!1,s.wrapper.style.cssText=_,f.style.cssText=E,d&&p<9&&u.scrollbars.setScrollTop(u.scroller.scrollTop=b),f.selectionStart!=null)){(!d||d&&p<9)&&X();var le=0,me=function(){u.selForContextMenu==l.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&s.prevInput=="​"?Kt(l,ky)(l):le++<10?u.detectingSelectAll=setTimeout(me,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(me,200)}}if(d&&p>=9&&X(),ie){ti(n);var ne=function(){or(window,"mouseup",ne),setTimeout(K,20)};De(window,"mouseup",ne)}else setTimeout(K,50)},Pt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Pt.prototype.setUneditable=function(){},Pt.prototype.needsContentAttribute=!1;function a$(n,s){if(s=s?xe(s):{},s.value=n.value,!s.tabindex&&n.tabIndex&&(s.tabindex=n.tabIndex),!s.placeholder&&n.placeholder&&(s.placeholder=n.placeholder),s.autofocus==null){var l=oe(n.ownerDocument);s.autofocus=l==n||n.getAttribute("autofocus")!=null&&l==document.body}function u(){n.value=A.getValue()}var f;if(n.form&&(De(n.form,"submit",u),!s.leaveSubmitMethodAlone)){var v=n.form;f=v.submit;try{var b=v.submit=function(){u(),v.submit=f,v.submit(),v.submit=b}}catch{}}s.finishInit=function(E){E.save=u,E.getTextArea=function(){return n},E.toTextArea=function(){E.toTextArea=isNaN,u(),n.parentNode.removeChild(E.getWrapperElement()),n.style.display="",n.form&&(or(n.form,"submit",u),!s.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=f))}},n.style.display="none";var A=xt(function(E){return n.parentNode.insertBefore(E,n.nextSibling)},s);return A}function u$(n){n.off=or,n.on=De,n.wheelEventPixels=g2,n.Doc=Dr,n.splitLines=Ma,n.countColumn=Q,n.findColumn=se,n.isWordChar=Pe,n.Pass=Be,n.signal=wt,n.Line=ho,n.changeEnd=ji,n.scrollbarModel=ay,n.Pos=W,n.cmpPos=re,n.modes=hn,n.mimeModes=Ii,n.resolveMode=Br,n.getMode=ri,n.modeExtensions=Ri,n.extendMode=Ml,n.copyState=ni,n.startState=za,n.innerMode=Mi,n.commands=lu,n.keyMap=li,n.keyName=Gy,n.isModifierKey=Vy,n.lookupKey=_o,n.normalizeKeyMap=I2,n.StringStream=kt,n.SharedTextMarker=ou,n.TextMarker=Wi,n.LineWidget=su,n.e_preventDefault=ar,n.e_stopPropagation=ms,n.e_stop=ti,n.addClass=ge,n.contains=J,n.rmClass=z,n.keyNames=Gi}J2(xt),n$(xt);var l$="iter insert remove copy getEditor constructor".split(" ");for(var gc in Dr.prototype)Dr.prototype.hasOwnProperty(gc)&&ce(l$,gc)<0&&(xt.prototype[gc]=function(n){return function(){return n.apply(this.doc,arguments)}}(Dr.prototype[gc]));return hr(Dr),xt.inputStyles={textarea:Pt,contenteditable:pt},xt.defineMode=function(n){!xt.defaults.mode&&n!="null"&&(xt.defaults.mode=n),Rl.apply(this,arguments)},xt.defineMIME=co,xt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),xt.defineMIME("text/plain","null"),xt.defineExtension=function(n,s){xt.prototype[n]=s},xt.defineDocExtension=function(n,s){Dr.prototype[n]=s},xt.fromTextArea=a$,u$(xt),xt.version="5.65.13",xt})}(uBe)),Rf}var lBe=Oa();const cBe=B3(lBe);var fBe={};(function(e,t){(function(r){r(Oa())})(function(r){r.defineMode("javascript",function(i,o){var a=i.indentUnit,c=o.statementIndent,h=o.jsonld,d=o.json||h,p=o.trackScope!==!1,g=o.typescript,y=o.wordCharacters||/[\w$\xa1-\uffff]/,m=function(){function k(Ht){return{type:Ht,style:"keyword"}}var q=k("keyword a"),W=k("keyword b"),re=k("keyword c"),He=k("keyword d"),Qe=k("operator"),ot={type:"atom",style:"atom"};return{if:k("if"),while:q,with:q,else:W,do:W,try:W,finally:W,return:He,break:He,continue:He,new:k("new"),delete:re,void:re,throw:re,debugger:k("debugger"),var:k("var"),const:k("var"),let:k("var"),function:k("function"),catch:k("catch"),for:k("for"),switch:k("switch"),case:k("case"),default:k("default"),in:Qe,typeof:Qe,instanceof:Qe,true:ot,false:ot,null:ot,undefined:ot,NaN:ot,Infinity:ot,this:k("this"),class:k("class"),super:k("atom"),yield:re,export:k("export"),import:k("import"),extends:re,await:re}}(),w=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function B(k){for(var q=!1,W,re=!1;(W=k.next())!=null;){if(!q){if(W=="/"&&!re)return;W=="["?re=!0:re&&W=="]"&&(re=!1)}q=!q&&W=="\\"}}var x,C;function S(k,q,W){return x=k,C=W,q}function N(k,q){var W=k.next();if(W=='"'||W=="'")return q.tokenize=L(W),q.tokenize(k,q);if(W=="."&&k.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(W=="."&&k.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(W))return S(W);if(W=="="&&k.eat(">"))return S("=>","operator");if(W=="0"&&k.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(W))return k.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(W=="/")return k.eat("*")?(q.tokenize=T,T(k,q)):k.eat("/")?(k.skipToEnd(),S("comment","comment")):On(k,q,1)?(B(k),k.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(k.eat("="),S("operator","operator",k.current()));if(W=="`")return q.tokenize=R,R(k,q);if(W=="#"&&k.peek()=="!")return k.skipToEnd(),S("meta","meta");if(W=="#"&&k.eatWhile(y))return S("variable","property");if(W=="<"&&k.match("!--")||W=="-"&&k.match("->")&&!/\S/.test(k.string.slice(0,k.start)))return k.skipToEnd(),S("comment","comment");if(w.test(W))return(W!=">"||!q.lexical||q.lexical.type!=">")&&(k.eat("=")?(W=="!"||W=="=")&&k.eat("="):/[<>*+\-|&?]/.test(W)&&(k.eat(W),W==">"&&k.eat(W))),W=="?"&&k.eat(".")?S("."):S("operator","operator",k.current());if(y.test(W)){k.eatWhile(y);var re=k.current();if(q.lastType!="."){if(m.propertyIsEnumerable(re)){var He=m[re];return S(He.type,He.style,re)}if(re=="async"&&k.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",re)}return S("variable","variable",re)}}function L(k){return function(q,W){var re=!1,He;if(h&&q.peek()=="@"&&q.match($))return W.tokenize=N,S("jsonld-keyword","meta");for(;(He=q.next())!=null&&!(He==k&&!re);)re=!re&&He=="\\";return re||(W.tokenize=N),S("string","string")}}function T(k,q){for(var W=!1,re;re=k.next();){if(re=="/"&&W){q.tokenize=N;break}W=re=="*"}return S("comment","comment")}function R(k,q){for(var W=!1,re;(re=k.next())!=null;){if(!W&&(re=="`"||re=="$"&&k.eat("{"))){q.tokenize=N;break}W=!W&&re=="\\"}return S("quasi","string-2",k.current())}var M="([{}])";function j(k,q){q.fatArrowAt&&(q.fatArrowAt=null);var W=k.string.indexOf("=>",k.start);if(!(W<0)){if(g){var re=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(k.string.slice(k.start,W));re&&(W=re.index)}for(var He=0,Qe=!1,ot=W-1;ot>=0;--ot){var Ht=k.string.charAt(ot),Vr=M.indexOf(Ht);if(Vr>=0&&Vr<3){if(!He){++ot;break}if(--He==0){Ht=="("&&(Qe=!0);break}}else if(Vr>=3&&Vr<6)++He;else if(y.test(Ht))Qe=!0;else if(/["'\/`]/.test(Ht))for(;;--ot){if(ot==0)return;var qe=k.string.charAt(ot-1);if(qe==Ht&&k.string.charAt(ot-2)!="\\"){ot--;break}}else if(Qe&&!He){++ot;break}}Qe&&!He&&(q.fatArrowAt=ot)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(k,q,W,re,He,Qe){this.indented=k,this.column=q,this.type=W,this.prev=He,this.info=Qe,re!=null&&(this.align=re)}function ee(k,q){if(!p)return!1;for(var W=k.localVars;W;W=W.next)if(W.name==q)return!0;for(var re=k.context;re;re=re.prev)for(var W=re.vars;W;W=W.next)if(W.name==q)return!0}function z(k,q,W,re,He){var Qe=k.cc;for(O.state=k,O.stream=He,O.marked=null,O.cc=Qe,O.style=q,k.lexical.hasOwnProperty("align")||(k.lexical.align=!0);;){var ot=Qe.length?Qe.pop():d?Be:ce;if(ot(W,re)){for(;Qe.length&&Qe[Qe.length-1].lex;)Qe.pop()();return O.marked?O.marked:W=="variable"&&ee(k,re)?"variable-2":q}}}var O={state:null,column:null,marked:null,cc:null};function F(){for(var k=arguments.length-1;k>=0;k--)O.cc.push(arguments[k])}function D(){return F.apply(null,arguments),!0}function I(k,q){for(var W=q;W;W=W.next)if(W.name==k)return!0;return!1}function V(k){var q=O.state;if(O.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var W=J(k,q.context);if(W!=null){q.context=W;return}}else if(!I(k,q.localVars)){q.localVars=new Fe(k,q.localVars);return}}o.globalVars&&!I(k,q.globalVars)&&(q.globalVars=new Fe(k,q.globalVars))}}function J(k,q){if(q)if(q.block){var W=J(k,q.prev);return W?W==q.prev?q:new ge(W,q.vars,!0):null}else return I(k,q.vars)?q:new ge(q.prev,new Fe(k,q.vars),!1);else return null}function oe(k){return k=="public"||k=="private"||k=="protected"||k=="abstract"||k=="readonly"}function ge(k,q,W){this.prev=k,this.vars=q,this.block=W}function Fe(k,q){this.name=k,this.next=q}var _e=new Fe("this",new Fe("arguments",null));function Ue(){O.state.context=new ge(O.state.context,O.state.localVars,!1),O.state.localVars=_e}function Ke(){O.state.context=new ge(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ue.lex=Ke.lex=!0;function et(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}et.lex=!0;function xe(k,q){var W=function(){var re=O.state,He=re.indented;if(re.lexical.type=="stat")He=re.lexical.indented;else for(var Qe=re.lexical;Qe&&Qe.type==")"&&Qe.align;Qe=Qe.prev)He=Qe.indented;re.lexical=new ie(He,O.stream.column(),k,null,re.lexical,q)};return W.lex=!0,W}function Q(){var k=O.state;k.lexical.prev&&(k.lexical.type==")"&&(k.indented=k.lexical.indented),k.lexical=k.lexical.prev)}Q.lex=!0;function ae(k){function q(W){return W==k?D():k==";"||W=="}"||W==")"||W=="]"?F():D(q)}return q}function ce(k,q){return k=="var"?D(xe("vardef",q),ti,ae(";"),Q):k=="keyword a"?D(xe("form"),G,ce,Q):k=="keyword b"?D(xe("form"),ce,Q):k=="keyword d"?O.stream.match(/^\s*$/,!1)?D():D(xe("stat"),se,ae(";"),Q):k=="debugger"?D(ae(";")):k=="{"?D(xe("}"),Ke,jr,Q,et):k==";"?D():k=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==Q&&O.state.cc.pop()(),D(xe("form"),G,ce,Q,lo)):k=="function"?D(Ln):k=="for"?D(xe("form"),Ke,Nl,ce,et,Q):k=="class"||g&&q=="interface"?(O.marked="keyword",D(xe("form",k=="class"?k:q),Rl,Q)):k=="variable"?g&&q=="declare"?(O.marked="keyword",D(ce)):g&&(q=="module"||q=="enum"||q=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",q=="enum"?D(fo):q=="type"?D(Il,ae("operator"),De,ae(";")):D(xe("form"),br,ae("{"),xe("}"),jr,Q,Q)):g&&q=="namespace"?(O.marked="keyword",D(xe("form"),Be,ce,Q)):g&&q=="abstract"?(O.marked="keyword",D(ce)):D(xe("stat"),Re):k=="switch"?D(xe("form"),G,ae("{"),xe("}","switch"),Ke,jr,Q,Q,et):k=="case"?D(Be,ae(":")):k=="default"?D(ae(":")):k=="catch"?D(xe("form"),Ue,Le,ce,Q,et):k=="export"?D(xe("stat"),Ri,Q):k=="import"?D(xe("stat"),ni,Q):k=="async"?D(ce):q=="@"?D(Be,ce):F(xe("stat"),Be,ae(";"),Q)}function Le(k){if(k=="(")return D(hn,ae(")"))}function Be(k,q){return Z(k,q,!1)}function U(k,q){return Z(k,q,!0)}function G(k){return k!="("?F():D(xe(")"),se,ae(")"),Q)}function Z(k,q,W){if(O.state.fatArrowAt==O.stream.start){var re=W?ve:Ee;if(k=="(")return D(Ue,xe(")"),tt(hn,")"),Q,ae("=>"),re,et);if(k=="variable")return F(Ue,br,ae("=>"),re,et)}var He=W?fe:ue;return te.hasOwnProperty(k)?D(He):k=="function"?D(Ln,He):k=="class"||g&&q=="interface"?(O.marked="keyword",D(xe("form"),Ii,Q)):k=="keyword c"||k=="async"?D(W?U:Be):k=="("?D(xe(")"),se,ae(")"),Q,He):k=="operator"||k=="spread"?D(W?U:Be):k=="["?D(xe("]"),ii,Q,He):k=="{"?Lr(st,"}",null,He):k=="quasi"?F(he,He):k=="new"?D(Ne(W)):D()}function se(k){return k.match(/[;\}\)\],]/)?F():F(Be)}function ue(k,q){return k==","?D(se):fe(k,q,!1)}function fe(k,q,W){var re=W==!1?ue:fe,He=W==!1?Be:U;if(k=="=>")return D(Ue,W?ve:Ee,et);if(k=="operator")return/\+\+|--/.test(q)||g&&q=="!"?D(re):g&&q=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?D(xe(">"),tt(De,">"),Q,re):q=="?"?D(Be,ae(":"),He):D(He);if(k=="quasi")return F(he,re);if(k!=";"){if(k=="(")return Lr(U,")","call",re);if(k==".")return D(Ge,re);if(k=="[")return D(xe("]"),se,ae("]"),Q,re);if(g&&q=="as")return O.marked="keyword",D(De,re);if(k=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),D(He)}}function he(k,q){return k!="quasi"?F():q.slice(q.length-2)!="${"?D(he):D(se,ye)}function ye(k){if(k=="}")return O.marked="string-2",O.state.tokenize=R,D(he)}function Ee(k){return j(O.stream,O.state),F(k=="{"?ce:Be)}function ve(k){return j(O.stream,O.state),F(k=="{"?ce:U)}function Ne(k){return function(q){return q=="."?D(k?Pe:ke):q=="variable"&&g?D(ar,k?fe:ue):F(k?U:Be)}}function ke(k,q){if(q=="target")return O.marked="keyword",D(ue)}function Pe(k,q){if(q=="target")return O.marked="keyword",D(fe)}function Re(k){return k==":"?D(Q,ce):F(ue,ae(";"),Q)}function Ge(k){if(k=="variable")return O.marked="property",D()}function st(k,q){if(k=="async")return O.marked="property",D(st);if(k=="variable"||O.style=="keyword"){if(O.marked="property",q=="get"||q=="set")return D(rt);var W;return g&&O.state.fatArrowAt==O.stream.start&&(W=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+W[0].length),D(ht)}else{if(k=="number"||k=="string")return O.marked=h?"property":O.style+" property",D(ht);if(k=="jsonld-keyword")return D(ht);if(g&&oe(q))return O.marked="keyword",D(st);if(k=="[")return D(Be,tr,ae("]"),ht);if(k=="spread")return D(U,ht);if(q=="*")return O.marked="keyword",D(st);if(k==":")return F(ht)}}function rt(k){return k!="variable"?F(ht):(O.marked="property",D(Ln))}function ht(k){if(k==":")return D(U);if(k=="(")return F(Ln)}function tt(k,q,W){function re(He,Qe){if(W?W.indexOf(He)>-1:He==","){var ot=O.state.lexical;return ot.info=="call"&&(ot.pos=(ot.pos||0)+1),D(function(Ht,Vr){return Ht==q||Vr==q?F():F(k)},re)}return He==q||Qe==q?D():W&&W.indexOf(";")>-1?F(k):D(ae(q))}return function(He,Qe){return He==q||Qe==q?D():F(k,re)}}function Lr(k,q,W){for(var re=3;re<arguments.length;re++)O.cc.push(arguments[re]);return D(xe(q,W),tt(k,q),Q)}function jr(k){return k=="}"?D():F(ce,jr)}function tr(k,q){if(g){if(k==":")return D(De);if(q=="?")return D(tr)}}function uo(k,q){if(g&&(k==":"||q=="in"))return D(De)}function Dt(k){if(g&&k==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?D(Be,yr,De):D(De)}function yr(k,q){if(q=="is")return O.marked="keyword",D()}function De(k,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return O.marked="keyword",D(q=="typeof"?U:De);if(k=="variable"||q=="void")return O.marked="type",D(hr);if(q=="|"||q=="&")return D(De);if(k=="string"||k=="number"||k=="atom")return D(hr);if(k=="[")return D(xe("]"),tt(De,"]",","),Q,hr);if(k=="{")return D(xe("}"),or,Q,hr);if(k=="(")return D(tt(fr,")"),Na,hr);if(k=="<")return D(tt(De,">"),De);if(k=="quasi")return F(Tt,hr)}function Na(k){if(k=="=>")return D(De)}function or(k){return k.match(/[\}\)\]]/)?D():k==","||k==";"?D(or):F(wt,or)}function wt(k,q){if(k=="variable"||O.style=="keyword")return O.marked="property",D(wt);if(q=="?"||k=="number"||k=="string")return D(wt);if(k==":")return D(De);if(k=="[")return D(ae("variable"),uo,ae("]"),wt);if(k=="(")return F(Bn,wt);if(!k.match(/[;\}\)\],]/))return D()}function Tt(k,q){return k!="quasi"?F():q.slice(q.length-2)!="${"?D(Tt):D(De,Pl)}function Pl(k){if(k=="}")return O.marked="string-2",O.state.tokenize=R,D(Tt)}function fr(k,q){return k=="variable"&&O.stream.match(/^\s*[?:]/,!1)||q=="?"?D(fr):k==":"?D(De):k=="spread"?D(fr):F(De)}function hr(k,q){if(q=="<")return D(xe(">"),tt(De,">"),Q,hr);if(q=="|"||k=="."||q=="&")return D(De);if(k=="[")return D(De,ae("]"),hr);if(q=="extends"||q=="implements")return O.marked="keyword",D(De);if(q=="?")return D(De,ae(":"),De)}function ar(k,q){if(q=="<")return D(xe(">"),tt(De,">"),Q,hr)}function ms(){return F(De,Ia)}function Ia(k,q){if(q=="=")return D(De)}function ti(k,q){return q=="enum"?(O.marked="keyword",D(fo)):F(br,tr,en,Yh)}function br(k,q){if(g&&oe(q))return O.marked="keyword",D(br);if(k=="variable")return V(q),D();if(k=="spread")return D(br);if(k=="[")return Lr(Qh,"]");if(k=="{")return Lr(Ra,"}")}function Ra(k,q){return k=="variable"&&!O.stream.match(/^\s*:/,!1)?(V(q),D(en)):(k=="variable"&&(O.marked="property"),k=="spread"?D(br):k=="}"?F():k=="["?D(Be,ae("]"),ae(":"),Ra):D(ae(":"),br,en))}function Qh(){return F(br,en)}function en(k,q){if(q=="=")return D(U)}function Yh(k){if(k==",")return D(ti)}function lo(k,q){if(k=="keyword b"&&q=="else")return D(xe("form","else"),ce,Q)}function Nl(k,q){if(q=="await")return D(Nl);if(k=="(")return D(xe(")"),Ma,Q)}function Ma(k){return k=="var"?D(ti,Ni):k=="variable"?D(Ni):F(Ni)}function Ni(k,q){return k==")"?D():k==";"?D(Ni):q=="in"||q=="of"?(O.marked="keyword",D(Be,Ni)):F(Be,Ni)}function Ln(k,q){if(q=="*")return O.marked="keyword",D(Ln);if(k=="variable")return V(q),D(Ln);if(k=="(")return D(Ue,xe(")"),tt(hn,")"),Q,Dt,ce,et);if(g&&q=="<")return D(xe(">"),tt(ms,">"),Q,Ln)}function Bn(k,q){if(q=="*")return O.marked="keyword",D(Bn);if(k=="variable")return V(q),D(Bn);if(k=="(")return D(Ue,xe(")"),tt(hn,")"),Q,Dt,et);if(g&&q=="<")return D(xe(">"),tt(ms,">"),Q,Bn)}function Il(k,q){if(k=="keyword"||k=="variable")return O.marked="type",D(Il);if(q=="<")return D(xe(">"),tt(ms,">"),Q)}function hn(k,q){return q=="@"&&D(Be,hn),k=="spread"?D(hn):g&&oe(q)?(O.marked="keyword",D(hn)):g&&k=="this"?D(tr,en):F(br,tr,en)}function Ii(k,q){return k=="variable"?Rl(k,q):co(k,q)}function Rl(k,q){if(k=="variable")return V(q),D(co)}function co(k,q){if(q=="<")return D(xe(">"),tt(ms,">"),Q,co);if(q=="extends"||q=="implements"||g&&k==",")return q=="implements"&&(O.marked="keyword"),D(g?De:Be,co);if(k=="{")return D(xe("}"),Br,Q)}function Br(k,q){if(k=="async"||k=="variable"&&(q=="static"||q=="get"||q=="set"||g&&oe(q))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",D(Br);if(k=="variable"||O.style=="keyword")return O.marked="property",D(ri,Br);if(k=="number"||k=="string")return D(ri,Br);if(k=="[")return D(Be,tr,ae("]"),ri,Br);if(q=="*")return O.marked="keyword",D(Br);if(g&&k=="(")return F(Bn,Br);if(k==";"||k==",")return D(Br);if(k=="}")return D();if(q=="@")return D(Be,Br)}function ri(k,q){if(q=="!"||q=="?")return D(ri);if(k==":")return D(De,en);if(q=="=")return D(U);var W=O.state.lexical.prev,re=W&&W.info=="interface";return F(re?Bn:Ln)}function Ri(k,q){return q=="*"?(O.marked="keyword",D(Te,ae(";"))):q=="default"?(O.marked="keyword",D(Be,ae(";"))):k=="{"?D(tt(Ml,"}"),Te,ae(";")):F(ce)}function Ml(k,q){if(q=="as")return O.marked="keyword",D(ae("variable"));if(k=="variable")return F(U,Ml)}function ni(k){return k=="string"?D():k=="("?F(Be):k=="."?F(ue):F(Mi,za,Te)}function Mi(k,q){return k=="{"?Lr(Mi,"}"):(k=="variable"&&V(q),q=="*"&&(O.marked="keyword"),D(kt))}function za(k){if(k==",")return D(Mi,za)}function kt(k,q){if(q=="as")return O.marked="keyword",D(Mi)}function Te(k,q){if(q=="from")return O.marked="keyword",D(Be)}function ii(k){return k=="]"?D():F(tt(U,"]"))}function fo(){return F(xe("form"),br,ae("{"),xe("}"),tt(tn,"}"),Q,Q)}function tn(){return F(br,en)}function lt(k,q){return k.lastType=="operator"||k.lastType==","||w.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function On(k,q,W){return q.tokenize==N&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(k.string.slice(0,k.pos-(W||0)))}return{startState:function(k){var q={tokenize:N,lastType:"sof",cc:[],lexical:new ie((k||0)-a,0,"block",!1),localVars:o.localVars,context:o.localVars&&new ge(null,null,!1),indented:k||0};return o.globalVars&&typeof o.globalVars=="object"&&(q.globalVars=o.globalVars),q},token:function(k,q){if(k.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=k.indentation(),j(k,q)),q.tokenize!=T&&k.eatSpace())return null;var W=q.tokenize(k,q);return x=="comment"?W:(q.lastType=x=="operator"&&(C=="++"||C=="--")?"incdec":x,z(q,W,x,C,k))},indent:function(k,q){if(k.tokenize==T||k.tokenize==R)return r.Pass;if(k.tokenize!=N)return 0;var W=q&&q.charAt(0),re=k.lexical,He;if(!/^\s*else\b/.test(q))for(var Qe=k.cc.length-1;Qe>=0;--Qe){var ot=k.cc[Qe];if(ot==Q)re=re.prev;else if(ot!=lo&&ot!=et)break}for(;(re.type=="stat"||re.type=="form")&&(W=="}"||(He=k.cc[k.cc.length-1])&&(He==ue||He==fe)&&!/^[,\.=+\-*:?[\(]/.test(q));)re=re.prev;c&&re.type==")"&&re.prev.type=="stat"&&(re=re.prev);var Ht=re.type,Vr=W==Ht;return Ht=="vardef"?re.indented+(k.lastType=="operator"||k.lastType==","?re.info.length+1:0):Ht=="form"&&W=="{"?re.indented:Ht=="form"?re.indented+a:Ht=="stat"?re.indented+(lt(k,q)?c||a:0):re.info=="switch"&&!Vr&&o.doubleIndentSwitch!=!1?re.indented+(/^(?:case|default)\b/.test(q)?a:2*a):re.align?re.column+(Vr?0:1):re.indented+(Vr?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:h,jsonMode:d,expressionAllowed:On,skipExpression:function(k){z(k,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var hBe={};(function(e,t){(function(r){r(Oa())})(function(r){var i={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},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(a,c){var h=a.indentUnit,d={},p=c.htmlMode?i:o;for(var g in p)d[g]=p[g];for(var g in c)d[g]=c[g];var y,m;function w(D,I){function V(ge){return I.tokenize=ge,ge(D,I)}var J=D.next();if(J=="<")return D.eat("!")?D.eat("[")?D.match("CDATA[")?V(x("atom","]]>")):null:D.match("--")?V(x("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),V(C(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),I.tokenize=x("meta","?>"),"meta"):(y=D.eat("/")?"closeTag":"openTag",I.tokenize=$,"tag bracket");if(J=="&"){var oe;return D.eat("#")?D.eat("x")?oe=D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):oe=D.eatWhile(/[\d]/)&&D.eat(";"):oe=D.eatWhile(/[\w\.\-:]/)&&D.eat(";"),oe?"atom":"error"}else return D.eatWhile(/[^&<]/),null}w.isInText=!0;function $(D,I){var V=D.next();if(V==">"||V=="/"&&D.eat(">"))return I.tokenize=w,y=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return y="equals",null;if(V=="<"){I.tokenize=w,I.state=R,I.tagName=I.tagStart=null;var J=I.tokenize(D,I);return J?J+" tag error":"tag error"}else return/[\'\"]/.test(V)?(I.tokenize=B(V),I.stringStartCol=D.column(),I.tokenize(D,I)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function B(D){var I=function(V,J){for(;!V.eol();)if(V.next()==D){J.tokenize=$;break}return"string"};return I.isInAttribute=!0,I}function x(D,I){return function(V,J){for(;!V.eol();){if(V.match(I)){J.tokenize=w;break}V.next()}return D}}function C(D){return function(I,V){for(var J;(J=I.next())!=null;){if(J=="<")return V.tokenize=C(D+1),V.tokenize(I,V);if(J==">")if(D==1){V.tokenize=w;break}else return V.tokenize=C(D-1),V.tokenize(I,V)}return"meta"}}function S(D){return D&&D.toLowerCase()}function N(D,I,V){this.prev=D.context,this.tagName=I||"",this.indent=D.indented,this.startOfLine=V,(d.doNotIndent.hasOwnProperty(I)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function L(D){D.context&&(D.context=D.context.prev)}function T(D,I){for(var V;;){if(!D.context||(V=D.context.tagName,!d.contextGrabbers.hasOwnProperty(S(V))||!d.contextGrabbers[S(V)].hasOwnProperty(S(I))))return;L(D)}}function R(D,I,V){return D=="openTag"?(V.tagStart=I.column(),M):D=="closeTag"?j:R}function M(D,I,V){return D=="word"?(V.tagName=I.current(),m="tag",ee):d.allowMissingTagName&&D=="endTag"?(m="tag bracket",ee(D,I,V)):(m="error",M)}function j(D,I,V){if(D=="word"){var J=I.current();return V.context&&V.context.tagName!=J&&d.implicitlyClosed.hasOwnProperty(S(V.context.tagName))&&L(V),V.context&&V.context.tagName==J||d.matchClosing===!1?(m="tag",te):(m="tag error",ie)}else return d.allowMissingTagName&&D=="endTag"?(m="tag bracket",te(D,I,V)):(m="error",ie)}function te(D,I,V){return D!="endTag"?(m="error",te):(L(V),R)}function ie(D,I,V){return m="error",te(D,I,V)}function ee(D,I,V){if(D=="word")return m="attribute",z;if(D=="endTag"||D=="selfcloseTag"){var J=V.tagName,oe=V.tagStart;return V.tagName=V.tagStart=null,D=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(S(J))?T(V,J):(T(V,J),V.context=new N(V,J,oe==V.indented)),R}return m="error",ee}function z(D,I,V){return D=="equals"?O:(d.allowMissing||(m="error"),ee(D,I,V))}function O(D,I,V){return D=="string"?F:D=="word"&&d.allowUnquoted?(m="string",ee):(m="error",ee(D,I,V))}function F(D,I,V){return D=="string"?F:ee(D,I,V)}return{startState:function(D){var I={tokenize:w,state:R,indented:D||0,tagName:null,tagStart:null,context:null};return D!=null&&(I.baseIndent=D),I},token:function(D,I){if(!I.tagName&&D.sol()&&(I.indented=D.indentation()),D.eatSpace())return null;y=null;var V=I.tokenize(D,I);return(V||y)&&V!="comment"&&(m=null,I.state=I.state(y||V,D,I),m&&(V=m=="error"?V+" error":m)),V},indent:function(D,I,V){var J=D.context;if(D.tokenize.isInAttribute)return D.tagStart==D.indented?D.stringStartCol+1:D.indented+h;if(J&&J.noIndent)return r.Pass;if(D.tokenize!=$&&D.tokenize!=w)return V?V.match(/^(\s*)/)[0].length:0;if(D.tagName)return d.multilineTagIndentPastTag!==!1?D.tagStart+D.tagName.length+2:D.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(I))return 0;var oe=I&&/^<(\/)?([\w_:\.-]*)/.exec(I);if(oe&&oe[1])for(;J;)if(J.tagName==oe[2]){J=J.prev;break}else if(d.implicitlyClosed.hasOwnProperty(S(J.tagName)))J=J.prev;else break;else if(oe)for(;J;){var ge=d.contextGrabbers[S(J.tagName)];if(ge&&ge.hasOwnProperty(S(oe[2])))J=J.prev;else break}for(;J&&J.prev&&!J.startOfLine;)J=J.prev;return J?J.indent+h:D.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(D){D.state==O&&(D.state=ee)},xmlCurrentTag:function(D){return D.tagName?{name:D.tagName,close:D.type=="closeTag"}:null},xmlCurrentContext:function(D){for(var I=[],V=D.context;V;V=V.prev)I.push(V.tagName);return I.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(e,t){(function(r){r(Oa(),hBe,fBe)})(function(r){function i(a,c,h,d){this.state=a,this.mode=c,this.depth=h,this.prev=d}function o(a){return new i(r.copyState(a.mode,a.state),a.mode,a.depth,a.prev&&o(a.prev))}r.defineMode("jsx",function(a,c){var h=r.getMode(a,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=r.getMode(a,c&&c.base||"javascript");function p(w){var $=w.tagName;w.tagName=null;var B=h.indent(w,"","");return w.tagName=$,B}function g(w,$){return $.context.mode==h?y(w,$,$.context):m(w,$,$.context)}function y(w,$,B){if(B.depth==2)return w.match(/^.*?\*\//)?B.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){h.skipAttribute(B.state);var x=p(B.state),C=B.state.context;if(C&&w.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?x-=a.indentUnit:B.prev.state.lexical&&(x=B.prev.state.lexical.indented)}else B.depth==1&&(x+=a.indentUnit);return $.context=new i(r.startState(d,x),d,0,$.context),null}if(B.depth==1){if(w.peek()=="<")return h.skipAttribute(B.state),$.context=new i(r.startState(h,p(B.state)),h,0,$.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return B.depth=2,g(w,$)}var S=h.token(w,B.state),N=w.current(),L;return/\btag\b/.test(S)?/>$/.test(N)?B.state.context?B.depth=0:$.context=$.context.prev:/^</.test(N)&&(B.depth=1):!S&&(L=N.indexOf("{"))>-1&&w.backUp(N.length-L),S}function m(w,$,B){if(w.peek()=="<"&&d.expressionAllowed(w,B.state))return $.context=new i(r.startState(h,d.indent(B.state,"","")),h,0,$.context),d.skipExpression(B.state),null;var x=d.token(w,B.state);if(!x&&B.depth!=null){var C=w.current();C=="{"?B.depth++:C=="}"&&--B.depth==0&&($.context=$.context.prev)}return x}return{startState:function(){return{context:new i(r.startState(d),d)}},copyState:function(w){return{context:o(w.context)}},token:g,indent:function(w,$,B){return w.context.mode.indent(w.context.state,$,B)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(Oa())})(function(r){r.defineOption("placeholder","",function(p,g,y){var m=y&&y!=r.Init;if(g&&!m)p.on("blur",c),p.on("change",h),p.on("swapDoc",h),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){a(p)}),h(p);else if(!g&&m){p.off("blur",c),p.off("change",h),p.off("swapDoc",h),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&c(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function o(p){i(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 y=p.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),g.appendChild(y),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function a(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var y=p.getInputField();g=y.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}g?o(p):i(p)},20)}function c(p){d(p)&&o(p)}function h(p){var g=p.getWrapperElement(),y=d(p);g.className=g.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?o(p):i(p)}function d(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(Oa())})(function(r){function i(c,h,d){this.orientation=h,this.scroll=d,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=c+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var m=p.orientation=="horizontal"?"pageX":"pageY",w=y[m],$=p.pos;function B(){r.off(document,"mousemove",x),r.off(document,"mouseup",B)}function x(C){if(C.which!=1)return B();p.moveTo($+(C[m]-w)*(p.total/p.size))}r.on(document,"mousemove",x),r.on(document,"mouseup",B)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var m=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=y.clientX<m.left?-1:y.clientX>m.right?1:0:w=y.clientY<m.top?-1:y.clientY>m.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(y){var m=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+m),p.pos!=w&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(c,h){return c<0&&(c=0),c>this.total-this.screen&&(c=this.total-this.screen),!h&&c==this.pos?!1:(this.pos=c,this.inner.style[this.orientation=="horizontal"?"left":"top"]=c*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(c){this.setPos(c)&&this.scroll(c,this.orientation)};var o=10;i.prototype.update=function(c,h,d){var p=this.screen!=h||this.total!=c||this.size!=d;p&&(this.screen=h,this.total=c,this.size=d);var g=this.screen*(this.size/this.total);g<o&&(this.size-=o-g,g=o),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function a(c,h,d){this.addClass=c,this.horiz=new i(c,"horizontal",d),h(this.horiz.node),this.vert=new i(c,"vertical",d),h(this.vert.node),this.width=null}a.prototype.update=function(c){if(this.width==null){var h=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;h&&(this.width=parseInt(h.height))}var d=this.width||0,p=c.scrollWidth>c.clientWidth+1,g=c.scrollHeight>c.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(c.scrollHeight,c.clientHeight,c.viewHeight-(p?d:0)),this.vert.node.style.bottom=p?d+"px":"0"),p&&(this.horiz.update(c.scrollWidth,c.clientWidth,c.viewWidth-(g?d:0)-c.barLeft),this.horiz.node.style.right=g?d+"px":"0",this.horiz.node.style.left=c.barLeft+"px"),{right:g?d:0,bottom:p?d:0}},a.prototype.setScrollTop=function(c){this.vert.setPos(c)},a.prototype.setScrollLeft=function(c){this.horiz.setPos(c)},a.prototype.clear=function(){var c=this.horiz.node.parentNode;c.removeChild(this.horiz.node),c.removeChild(this.vert.node)},r.scrollbarModel.simple=function(c,h){return new a("CodeMirror-simplescroll",c,h)},r.scrollbarModel.overlay=function(c,h){return new a("CodeMirror-overlayscroll",c,h)}})})();function dBe(e,t,r={}){const i=cBe.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),jt(t,a=>{if(a!==i.getValue()){o=!0;const c=i.listSelections();i.replaceRange(a,i.posFromIndex(0),i.posFromIndex(1/0)),i.setSelections(c)}},{immediate:!0}),X0(i)}const pBe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},DS=it({__name:"CodeMirror",props:{modelValue:{},mode:{},readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(e,{expose:t,emit:r}){const i=e,o=GT(),a={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}},c=Xe(),h=yG(i,"modelValue",r,{passive:!0}),d=xa();return t({cm:d}),Ca(async()=>{d.value=dBe(c,h,{...i,...o,mode:a[i.mode||""]||i.mode,readOnly:i.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(p){r("save",p.getValue())},"Ctrl-S":function(p){r("save",p.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(p,g)=>(de(),$e("div",pBe,[pe("textarea",{ref_key:"el",ref:c},null,512)]))}}),gBe=it({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,i=Xe(""),o=xa(void 0),a=Xe(!1);jt(()=>r.file,async()=>{var S;if(!r.file||!((S=r.file)!=null&&S.filepath)){i.value="",o.value=i.value,a.value=!1;return}i.value=await sr.rpc.readFile(r.file.filepath)||"",o.value=i.value,a.value=!1},{immediate:!0});const c=Ae(()=>{var S,N;return((N=(S=r.file)==null?void 0:S.filepath)==null?void 0:N.split(/\./g).pop())||"js"}),h=Xe(),d=Ae(()=>{var S;return(S=h.value)==null?void 0:S.cm}),p=Ae(()=>{var S;return((S=r.file)==null?void 0:S.tasks.filter(N=>{var L;return((L=N.result)==null?void 0:L.state)==="fail"}))||[]}),g=[],y=[],m=[],w=Xe(!1);function $(){m.forEach(([S,N,L])=>{S.removeEventListener("click",N),L()}),m.length=0}vG(h,()=>{var S;(S=d.value)==null||S.refresh()});function B(){a.value=o.value!==d.value.getValue()}jt(a,S=>{t("draft",S)},{immediate:!0});function x(S){const N=((S==null?void 0:S.stacks)||[]).filter(te=>{var ie;return te.file&&te.file===((ie=r.file)==null?void 0:ie.filepath)}),L=N==null?void 0:N[0];if(!L)return;const T=document.createElement("div");T.className="op80 flex gap-x-2 items-center";const R=document.createElement("pre");R.className="c-red-600 dark:c-red-400",R.textContent=`${" ".repeat(L.column)}^ ${S==null?void 0:S.nameStr}: ${S==null?void 0:S.message}`,T.appendChild(R);const M=document.createElement("span");M.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",M.tabIndex=0,M.ariaLabel="Open in Editor",hx(M,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await bS(L.file,L.line,L.column)};T.appendChild(M),m.push([M,j,()=>yg(M)]),y.push(d.value.addLineClass(L.line-1,"wrap","bg-red-500/10")),g.push(d.value.addLineWidget(L.line-1,T))}jt([d,p],([S])=>{if(!S){$();return}setTimeout(()=>{$(),g.forEach(N=>N.clear()),y.forEach(N=>{var L;return(L=d.value)==null?void 0:L.removeLineClass(N,"wrap")}),g.length=0,y.length=0,S.on("changes",B),p.value.forEach(N=>{var L,T;(T=(L=N.result)==null?void 0:L.errors)==null||T.forEach(x)}),w.value||S.clearHistory()},100)},{flush:"post"});async function C(S){w.value=!0,await sr.rpc.writeFile(r.file.filepath,S),o.value=S,a.value=!1}return(S,N)=>{const L=DS;return de(),Ze(L,cs({ref_key:"editor",ref:h,modelValue:Y(i),"onUpdate:modelValue":N[0]||(N[0]=T=>Ot(i)?i.value=T:null),"h-full":""},{lineNumbers:!0},{mode:Y(c),"data-testid":"code-mirror",onSave:C}),null,16,["modelValue","mode"])}}}),vBe=it({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(e){const t=e,r=Ae(()=>{switch(t.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""}}),i=Ae(()=>{switch(t.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}});return(o,a)=>(de(),$e("div",{class:yt(["fixed inset-0 z-40",o.modelValue?"":"pointer-events-none"])},[pe("div",{class:yt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",o.modelValue?"opacity-50":"opacity-0"]),onClick:a[0]||(a[0]=c=>o.$emit("update:modelValue",!1))},null,2),pe("div",{class:yt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[Y(r)]]),style:zr(o.modelValue?{}:{transform:Y(i)})},[Sn(o.$slots,"default")],6)],2))}}),mBe=["aria-label","opacity","disabled","hover"],Pa=it({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(e){return(t,r)=>(de(),$e("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[Sn(t.$slots,"default",{},()=>[pe("div",{class:yt(t.icon),ma:""},null,2)])],8,mBe))}}),yBe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},bBe={"p-4":"",relative:""},wBe=pe("p",null,"Module Info",-1),DBe={op50:"","font-mono":"","text-sm":""},ABe={key:0,"p-5":""},EBe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},xBe=pe("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),CBe=pe("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),_Be={key:0},SBe={p:"x3 y-1","bg-overlay":"",border:"base b t"},FBe=it({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(e,{emit:t}){const r=e,i=zW(()=>sr.rpc.getTransformResult(r.id)),o=Ae(()=>{var d;return((d=r.id)==null?void 0:d.split(/\./g).pop())||"js"}),a=Ae(()=>{var d,p;return((p=(d=i.value)==null?void 0:d.source)==null?void 0:p.trim())||""}),c=Ae(()=>{var d,p;return((p=(d=i.value)==null?void 0:d.code)==null?void 0:p.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Ae(()=>{var d,p,g,y;return{mappings:((p=(d=i.value)==null?void 0:d.map)==null?void 0:p.mappings)??"",version:(y=(g=i.value)==null?void 0:g.map)==null?void 0:y.version}});return HW("Escape",()=>{t("close")}),(d,p)=>{const g=Pa,y=DS;return de(),$e("div",yBe,[pe("div",bBe,[wBe,pe("p",DBe,Je(d.id),1),ze(g,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:p[0]||(p[0]=m=>t("close"))})]),Y(i)?(de(),$e(dt,{key:1},[pe("div",EBe,[xBe,CBe,ze(y,cs({"h-full":"","model-value":Y(a),"read-only":""},{lineNumbers:!0},{mode:Y(o)}),null,16,["model-value","mode"]),ze(y,cs({"h-full":"","model-value":Y(c),"read-only":""},{lineNumbers:!0},{mode:Y(o)}),null,16,["model-value","mode"])]),Y(h).mappings!==""?(de(),$e("div",_Be,[pe("div",SBe," Source map (v"+Je(Y(h).version)+") ",1),ze(y,cs({"model-value":Y(h).mappings,"read-only":""},{lineNumbers:!0},{mode:Y(o)}),null,16,["model-value","mode"])])):nt("",!0)],64)):(de(),$e("div",ABe," No transform result found for this module. "))])}}});var _0="http://www.w3.org/1999/xhtml";const fA={svg:"http://www.w3.org/2000/svg",xhtml:_0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gh(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),fA.hasOwnProperty(t)?{space:fA[t],local:e}:e}function $Be(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===_0&&t.documentElement.namespaceURI===_0?t.createElement(e):t.createElementNS(r,e)}}function TBe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function AS(e){var t=Gh(e);return(t.local?TBe:$Be)(t)}function kBe(){}function em(e){return e==null?kBe:function(){return this.querySelector(e)}}function LBe(e){typeof e!="function"&&(e=em(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o)for(var a=t[o],c=a.length,h=i[o]=new Array(c),d,p,g=0;g<c;++g)(d=a[g])&&(p=e.call(d,d.__data__,g,a))&&("__data__"in d&&(p.__data__=d.__data__),h[g]=p);return new Zr(i,this._parents)}function BBe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function OBe(){return[]}function ES(e){return e==null?OBe:function(){return this.querySelectorAll(e)}}function PBe(e){return function(){return BBe(e.apply(this,arguments))}}function NBe(e){typeof e=="function"?e=PBe(e):e=ES(e);for(var t=this._groups,r=t.length,i=[],o=[],a=0;a<r;++a)for(var c=t[a],h=c.length,d,p=0;p<h;++p)(d=c[p])&&(i.push(e.call(d,d.__data__,p,c)),o.push(d));return new Zr(i,o)}function xS(e){return function(){return this.matches(e)}}function CS(e){return function(t){return t.matches(e)}}var IBe=Array.prototype.find;function RBe(e){return function(){return IBe.call(this.children,e)}}function MBe(){return this.firstElementChild}function zBe(e){return this.select(e==null?MBe:RBe(typeof e=="function"?e:CS(e)))}var UBe=Array.prototype.filter;function HBe(){return Array.from(this.children)}function qBe(e){return function(){return UBe.call(this.children,e)}}function jBe(e){return this.selectAll(e==null?HBe:qBe(typeof e=="function"?e:CS(e)))}function VBe(e){typeof e!="function"&&(e=xS(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o)for(var a=t[o],c=a.length,h=i[o]=[],d,p=0;p<c;++p)(d=a[p])&&e.call(d,d.__data__,p,a)&&h.push(d);return new Zr(i,this._parents)}function _S(e){return new Array(e.length)}function WBe(){return new Zr(this._enter||this._groups.map(_S),this._parents)}function Mf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Mf.prototype={constructor:Mf,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 GBe(e){return function(){return e}}function KBe(e,t,r,i,o,a){for(var c=0,h,d=t.length,p=a.length;c<p;++c)(h=t[c])?(h.__data__=a[c],i[c]=h):r[c]=new Mf(e,a[c]);for(;c<d;++c)(h=t[c])&&(o[c]=h)}function XBe(e,t,r,i,o,a,c){var h,d,p=new Map,g=t.length,y=a.length,m=new Array(g),w;for(h=0;h<g;++h)(d=t[h])&&(m[h]=w=c.call(d,d.__data__,h,t)+"",p.has(w)?o[h]=d:p.set(w,d));for(h=0;h<y;++h)w=c.call(e,a[h],h,a)+"",(d=p.get(w))?(i[h]=d,d.__data__=a[h],p.delete(w)):r[h]=new Mf(e,a[h]);for(h=0;h<g;++h)(d=t[h])&&p.get(m[h])===d&&(o[h]=d)}function QBe(e){return e.__data__}function YBe(e,t){if(!arguments.length)return Array.from(this,QBe);var r=t?XBe:KBe,i=this._parents,o=this._groups;typeof e!="function"&&(e=GBe(e));for(var a=o.length,c=new Array(a),h=new Array(a),d=new Array(a),p=0;p<a;++p){var g=i[p],y=o[p],m=y.length,w=ZBe(e.call(g,g&&g.__data__,p,i)),$=w.length,B=h[p]=new Array($),x=c[p]=new Array($),C=d[p]=new Array(m);r(g,y,B,x,C,w,t);for(var S=0,N=0,L,T;S<$;++S)if(L=B[S]){for(S>=N&&(N=S+1);!(T=x[N])&&++N<$;);L._next=T||null}}return c=new Zr(c,i),c._enter=h,c._exit=d,c}function ZBe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function JBe(){return new Zr(this._exit||this._groups.map(_S),this._parents)}function e3e(e,t,r){var i=this.enter(),o=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),r==null?a.remove():r(a),i&&o?i.merge(o).order():o}function t3e(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,o=r.length,a=i.length,c=Math.min(o,a),h=new Array(o),d=0;d<c;++d)for(var p=r[d],g=i[d],y=p.length,m=h[d]=new Array(y),w,$=0;$<y;++$)(w=p[$]||g[$])&&(m[$]=w);for(;d<o;++d)h[d]=r[d];return new Zr(h,this._parents)}function r3e(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],o=i.length-1,a=i[o],c;--o>=0;)(c=i[o])&&(a&&c.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(c,a),a=c);return this}function n3e(e){e||(e=i3e);function t(y,m){return y&&m?e(y.__data__,m.__data__):!y-!m}for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a){for(var c=r[a],h=c.length,d=o[a]=new Array(h),p,g=0;g<h;++g)(p=c[g])&&(d[g]=p);d.sort(t)}return new Zr(o,this._parents).order()}function i3e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function s3e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function o3e(){return Array.from(this)}function a3e(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],o=0,a=i.length;o<a;++o){var c=i[o];if(c)return c}return null}function u3e(){let e=0;for(const t of this)++e;return e}function l3e(){return!this.node()}function c3e(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var o=t[r],a=0,c=o.length,h;a<c;++a)(h=o[a])&&e.call(h,h.__data__,a,o);return this}function f3e(e){return function(){this.removeAttribute(e)}}function h3e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function d3e(e,t){return function(){this.setAttribute(e,t)}}function p3e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function g3e(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function v3e(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 m3e(e,t){var r=Gh(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?h3e:f3e:typeof t=="function"?r.local?v3e:g3e:r.local?p3e:d3e)(r,t))}function SS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function y3e(e){return function(){this.style.removeProperty(e)}}function b3e(e,t,r){return function(){this.style.setProperty(e,t,r)}}function w3e(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function D3e(e,t,r){return arguments.length>1?this.each((t==null?y3e:typeof t=="function"?w3e:b3e)(e,t,r??"")):ba(this.node(),e)}function ba(e,t){return e.style.getPropertyValue(t)||SS(e).getComputedStyle(e,null).getPropertyValue(t)}function A3e(e){return function(){delete this[e]}}function E3e(e,t){return function(){this[e]=t}}function x3e(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function C3e(e,t){return arguments.length>1?this.each((t==null?A3e:typeof t=="function"?x3e:E3e)(e,t)):this.node()[e]}function FS(e){return e.trim().split(/^|\s+/)}function tm(e){return e.classList||new $S(e)}function $S(e){this._node=e,this._names=FS(e.getAttribute("class")||"")}$S.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 TS(e,t){for(var r=tm(e),i=-1,o=t.length;++i<o;)r.add(t[i])}function kS(e,t){for(var r=tm(e),i=-1,o=t.length;++i<o;)r.remove(t[i])}function _3e(e){return function(){TS(this,e)}}function S3e(e){return function(){kS(this,e)}}function F3e(e,t){return function(){(t.apply(this,arguments)?TS:kS)(this,e)}}function $3e(e,t){var r=FS(e+"");if(arguments.length<2){for(var i=tm(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof t=="function"?F3e:t?_3e:S3e)(r,t))}function T3e(){this.textContent=""}function k3e(e){return function(){this.textContent=e}}function L3e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function B3e(e){return arguments.length?this.each(e==null?T3e:(typeof e=="function"?L3e:k3e)(e)):this.node().textContent}function O3e(){this.innerHTML=""}function P3e(e){return function(){this.innerHTML=e}}function N3e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function I3e(e){return arguments.length?this.each(e==null?O3e:(typeof e=="function"?N3e:P3e)(e)):this.node().innerHTML}function R3e(){this.nextSibling&&this.parentNode.appendChild(this)}function M3e(){return this.each(R3e)}function z3e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function U3e(){return this.each(z3e)}function H3e(e){var t=typeof e=="function"?e:AS(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function q3e(){return null}function j3e(e,t){var r=typeof e=="function"?e:AS(e),i=t==null?q3e:typeof t=="function"?t:em(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function V3e(){var e=this.parentNode;e&&e.removeChild(this)}function W3e(){return this.each(V3e)}function G3e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function K3e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function X3e(e){return this.select(e?K3e:G3e)}function Q3e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Y3e(e){return function(t){e.call(this,t,this.__data__)}}function Z3e(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function J3e(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,o=t.length,a;r<o;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function eOe(e,t,r){return function(){var i=this.__on,o,a=Y3e(t);if(i){for(var c=0,h=i.length;c<h;++c)if((o=i[c]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=r),o.value=t;return}}this.addEventListener(e.type,a,r),o={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(o):this.__on=[o]}}function tOe(e,t,r){var i=Z3e(e+""),o,a=i.length,c;if(arguments.length<2){var h=this.node().__on;if(h){for(var d=0,p=h.length,g;d<p;++d)for(o=0,g=h[d];o<a;++o)if((c=i[o]).type===g.type&&c.name===g.name)return g.value}return}for(h=t?eOe:J3e,o=0;o<a;++o)this.each(h(i[o],t,r));return this}function LS(e,t,r){var i=SS(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,r):(o=i.document.createEvent("Event"),r?(o.initEvent(t,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function rOe(e,t){return function(){return LS(this,e,t)}}function nOe(e,t){return function(){return LS(this,e,t.apply(this,arguments))}}function iOe(e,t){return this.each((typeof t=="function"?nOe:rOe)(e,t))}function*sOe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],o=0,a=i.length,c;o<a;++o)(c=i[o])&&(yield c)}var BS=[null];function Zr(e,t){this._groups=e,this._parents=t}function kl(){return new Zr([[document.documentElement]],BS)}function oOe(){return this}Zr.prototype=kl.prototype={constructor:Zr,select:LBe,selectAll:NBe,selectChild:zBe,selectChildren:jBe,filter:VBe,data:YBe,enter:WBe,exit:JBe,join:e3e,merge:t3e,selection:oOe,order:r3e,sort:n3e,call:s3e,nodes:o3e,node:a3e,size:u3e,empty:l3e,each:c3e,attr:m3e,style:D3e,property:C3e,classed:$3e,text:B3e,html:I3e,raise:M3e,lower:U3e,append:H3e,insert:j3e,remove:W3e,clone:X3e,datum:Q3e,on:tOe,dispatch:iOe,[Symbol.iterator]:sOe};function Rr(e){return typeof e=="string"?new Zr([[document.querySelector(e)]],[document.documentElement]):new Zr([[e]],BS)}function aOe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function yi(e,t){if(e=aOe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}class Sr{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new Sr(t,r)}add(t){return new Sr(this.x+t.x,this.y+t.y)}subtract(t){return new Sr(this.x-t.x,this.y-t.y)}multiply(t){return new Sr(this.x*t,this.y*t)}divide(t){return new Sr(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 Sr(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 Sr(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),i=Math.sin(t);return new Sr(this.x*r-this.y*i,this.x*i+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var uOe={value:()=>{}};function Ll(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new cf(r)}function cf(e){this._=e}function lOe(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}cf.prototype=Ll.prototype={constructor:cf,on:function(e,t){var r=this._,i=lOe(e+"",r),o,a=-1,c=i.length;if(arguments.length<2){for(;++a<c;)if((o=(e=i[a]).type)&&(o=cOe(r[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<c;)if(o=(e=i[a]).type)r[o]=hA(r[o],e.name,t);else if(t==null)for(o in r)r[o]=hA(r[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new cf(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,a;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(t,r)}};function cOe(e,t){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===t)return o.value}function hA(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=uOe,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}const fOe={passive:!1},Qu={capture:!0,passive:!1};function Cp(e){e.stopImmediatePropagation()}function ra(e){e.preventDefault(),e.stopImmediatePropagation()}function OS(e){var t=e.document.documentElement,r=Rr(e).on("dragstart.drag",ra,Qu);"onselectstart"in t?r.on("selectstart.drag",ra,Qu):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function PS(e,t){var r=e.document.documentElement,i=Rr(e).on("dragstart.drag",null);t&&(i.on("click.drag",ra,Qu),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const qc=e=>()=>e;function S0(e,{sourceEvent:t,subject:r,target:i,identifier:o,active:a,x:c,y:h,dx:d,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:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}S0.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function hOe(e){return!e.ctrlKey&&!e.button}function dOe(){return this.parentNode}function pOe(e,t){return t??{x:e.x,y:e.y}}function gOe(){return navigator.maxTouchPoints||"ontouchstart"in this}function vOe(){var e=hOe,t=dOe,r=pOe,i=gOe,o={},a=Ll("start","drag","end"),c=0,h,d,p,g,y=0;function m(L){L.on("mousedown.drag",w).filter(i).on("touchstart.drag",x).on("touchmove.drag",C,fOe).on("touchend.drag touchcancel.drag",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(L,T){if(!(g||!e.call(this,L,T))){var R=N(this,t.call(this,L,T),L,T,"mouse");R&&(Rr(L.view).on("mousemove.drag",$,Qu).on("mouseup.drag",B,Qu),OS(L.view),Cp(L),p=!1,h=L.clientX,d=L.clientY,R("start",L))}}function $(L){if(ra(L),!p){var T=L.clientX-h,R=L.clientY-d;p=T*T+R*R>y}o.mouse("drag",L)}function B(L){Rr(L.view).on("mousemove.drag mouseup.drag",null),PS(L.view,p),ra(L),o.mouse("end",L)}function x(L,T){if(e.call(this,L,T)){var R=L.changedTouches,M=t.call(this,L,T),j=R.length,te,ie;for(te=0;te<j;++te)(ie=N(this,M,L,T,R[te].identifier,R[te]))&&(Cp(L),ie("start",L,R[te]))}}function C(L){var T=L.changedTouches,R=T.length,M,j;for(M=0;M<R;++M)(j=o[T[M].identifier])&&(ra(L),j("drag",L,T[M]))}function S(L){var T=L.changedTouches,R=T.length,M,j;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),M=0;M<R;++M)(j=o[T[M].identifier])&&(Cp(L),j("end",L,T[M]))}function N(L,T,R,M,j,te){var ie=a.copy(),ee=yi(te||R,T),z,O,F;if((F=r.call(L,new S0("beforestart",{sourceEvent:R,target:m,identifier:j,active:c,x:ee[0],y:ee[1],dx:0,dy:0,dispatch:ie}),M))!=null)return z=F.x-ee[0]||0,O=F.y-ee[1]||0,function D(I,V,J){var oe=ee,ge;switch(I){case"start":o[j]=D,ge=c++;break;case"end":delete o[j],--c;case"drag":ee=yi(J||V,T),ge=c;break}ie.call(I,L,new S0(I,{sourceEvent:V,subject:F,target:m,identifier:j,active:ge,x:ee[0]+z,y:ee[1]+O,dx:ee[0]-oe[0],dy:ee[1]-oe[1],dispatch:ie}),M)}}return m.filter=function(L){return arguments.length?(e=typeof L=="function"?L:qc(!!L),m):e},m.container=function(L){return arguments.length?(t=typeof L=="function"?L:qc(L),m):t},m.subject=function(L){return arguments.length?(r=typeof L=="function"?L:qc(L),m):r},m.touchable=function(L){return arguments.length?(i=typeof L=="function"?L:qc(!!L),m):i},m.on=function(){var L=a.on.apply(a,arguments);return L===a?m:L},m.clickDistance=function(L){return arguments.length?(y=(L=+L)*L,m):Math.sqrt(y)},m}function rm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function NS(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Bl(){}var Yu=.7,zf=1/Yu,na="\\s*([+-]?\\d+)\\s*",Zu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mOe=/^#([0-9a-f]{3,8})$/,yOe=new RegExp(`^rgb\\(${na},${na},${na}\\)$`),bOe=new RegExp(`^rgb\\(${Xn},${Xn},${Xn}\\)$`),wOe=new RegExp(`^rgba\\(${na},${na},${na},${Zu}\\)$`),DOe=new RegExp(`^rgba\\(${Xn},${Xn},${Xn},${Zu}\\)$`),AOe=new RegExp(`^hsl\\(${Zu},${Xn},${Xn}\\)$`),EOe=new RegExp(`^hsla\\(${Zu},${Xn},${Xn},${Zu}\\)$`),dA={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};rm(Bl,Ju,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pA,formatHex:pA,formatHex8:xOe,formatHsl:COe,formatRgb:gA,toString:gA});function pA(){return this.rgb().formatHex()}function xOe(){return this.rgb().formatHex8()}function COe(){return IS(this).formatHsl()}function gA(){return this.rgb().formatRgb()}function Ju(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=mOe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?vA(t):r===3?new Mr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jc(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=yOe.exec(e))?new Mr(t[1],t[2],t[3],1):(t=bOe.exec(e))?new Mr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=wOe.exec(e))?jc(t[1],t[2],t[3],t[4]):(t=DOe.exec(e))?jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=AOe.exec(e))?bA(t[1],t[2]/100,t[3]/100,1):(t=EOe.exec(e))?bA(t[1],t[2]/100,t[3]/100,t[4]):dA.hasOwnProperty(e)?vA(dA[e]):e==="transparent"?new Mr(NaN,NaN,NaN,0):null}function vA(e){return new Mr(e>>16&255,e>>8&255,e&255,1)}function jc(e,t,r,i){return i<=0&&(e=t=r=NaN),new Mr(e,t,r,i)}function _Oe(e){return e instanceof Bl||(e=Ju(e)),e?(e=e.rgb(),new Mr(e.r,e.g,e.b,e.opacity)):new Mr}function F0(e,t,r,i){return arguments.length===1?_Oe(e):new Mr(e,t,r,i??1)}function Mr(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}rm(Mr,F0,NS(Bl,{brighter(e){return e=e==null?zf:Math.pow(zf,e),new Mr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yu:Math.pow(Yu,e),new Mr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mr(Xs(this.r),Xs(this.g),Xs(this.b),Uf(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:mA,formatHex:mA,formatHex8:SOe,formatRgb:yA,toString:yA}));function mA(){return`#${Vs(this.r)}${Vs(this.g)}${Vs(this.b)}`}function SOe(){return`#${Vs(this.r)}${Vs(this.g)}${Vs(this.b)}${Vs((isNaN(this.opacity)?1:this.opacity)*255)}`}function yA(){const e=Uf(this.opacity);return`${e===1?"rgb(":"rgba("}${Xs(this.r)}, ${Xs(this.g)}, ${Xs(this.b)}${e===1?")":`, ${e})`}`}function Uf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vs(e){return e=Xs(e),(e<16?"0":"")+e.toString(16)}function bA(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xn(e,t,r,i)}function IS(e){if(e instanceof xn)return new xn(e.h,e.s,e.l,e.opacity);if(e instanceof Bl||(e=Ju(e)),!e)return new xn;if(e instanceof xn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(t,r,i),a=Math.max(t,r,i),c=NaN,h=a-o,d=(a+o)/2;return h?(t===a?c=(r-i)/h+(r<i)*6:r===a?c=(i-t)/h+2:c=(t-r)/h+4,h/=d<.5?a+o:2-a-o,c*=60):h=d>0&&d<1?0:c,new xn(c,h,d,e.opacity)}function FOe(e,t,r,i){return arguments.length===1?IS(e):new xn(e,t,r,i??1)}function xn(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}rm(xn,FOe,NS(Bl,{brighter(e){return e=e==null?zf:Math.pow(zf,e),new xn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yu:Math.pow(Yu,e),new xn(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,i=r+(r<.5?r:1-r)*t,o=2*r-i;return new Mr(_p(e>=240?e-240:e+120,o,i),_p(e,o,i),_p(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new xn(wA(this.h),Vc(this.s),Vc(this.l),Uf(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=Uf(this.opacity);return`${e===1?"hsl(":"hsla("}${wA(this.h)}, ${Vc(this.s)*100}%, ${Vc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wA(e){return e=(e||0)%360,e<0?e+360:e}function Vc(e){return Math.max(0,Math.min(1,e||0))}function _p(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 RS=e=>()=>e;function $Oe(e,t){return function(r){return e+r*t}}function TOe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function kOe(e){return(e=+e)==1?MS:function(t,r){return r-t?TOe(t,r,e):RS(isNaN(t)?r:t)}}function MS(e,t){var r=t-e;return r?$Oe(e,r):RS(isNaN(e)?t:e)}const DA=function e(t){var r=kOe(t);function i(o,a){var c=r((o=F0(o)).r,(a=F0(a)).r),h=r(o.g,a.g),d=r(o.b,a.b),p=MS(o.opacity,a.opacity);return function(g){return o.r=c(g),o.g=h(g),o.b=d(g),o.opacity=p(g),o+""}}return i.gamma=e,i}(1);function is(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var $0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sp=new RegExp($0.source,"g");function LOe(e){return function(){return e}}function BOe(e){return function(t){return e(t)+""}}function OOe(e,t){var r=$0.lastIndex=Sp.lastIndex=0,i,o,a,c=-1,h=[],d=[];for(e=e+"",t=t+"";(i=$0.exec(e))&&(o=Sp.exec(t));)(a=o.index)>r&&(a=t.slice(r,a),h[c]?h[c]+=a:h[++c]=a),(i=i[0])===(o=o[0])?h[c]?h[c]+=o:h[++c]=o:(h[++c]=null,d.push({i:c,x:is(i,o)})),r=Sp.lastIndex;return r<t.length&&(a=t.slice(r),h[c]?h[c]+=a:h[++c]=a),h.length<2?d[0]?BOe(d[0].x):LOe(t):(t=d.length,function(p){for(var g=0,y;g<t;++g)h[(y=d[g]).i]=y.x(p);return h.join("")})}var AA=180/Math.PI,T0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zS(e,t,r,i,o,a){var c,h,d;return(c=Math.sqrt(e*e+t*t))&&(e/=c,t/=c),(d=e*r+t*i)&&(r-=e*d,i-=t*d),(h=Math.sqrt(r*r+i*i))&&(r/=h,i/=h,d/=h),e*i<t*r&&(e=-e,t=-t,d=-d,c=-c),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*AA,skewX:Math.atan(d)*AA,scaleX:c,scaleY:h}}var Wc;function POe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?T0:zS(t.a,t.b,t.c,t.d,t.e,t.f)}function NOe(e){return e==null||(Wc||(Wc=document.createElementNS("http://www.w3.org/2000/svg","g")),Wc.setAttribute("transform",e),!(e=Wc.transform.baseVal.consolidate()))?T0:(e=e.matrix,zS(e.a,e.b,e.c,e.d,e.e,e.f))}function US(e,t,r,i){function o(p){return p.length?p.pop()+" ":""}function a(p,g,y,m,w,$){if(p!==y||g!==m){var B=w.push("translate(",null,t,null,r);$.push({i:B-4,x:is(p,y)},{i:B-2,x:is(g,m)})}else(y||m)&&w.push("translate("+y+t+m+r)}function c(p,g,y,m){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),m.push({i:y.push(o(y)+"rotate(",null,i)-2,x:is(p,g)})):g&&y.push(o(y)+"rotate("+g+i)}function h(p,g,y,m){p!==g?m.push({i:y.push(o(y)+"skewX(",null,i)-2,x:is(p,g)}):g&&y.push(o(y)+"skewX("+g+i)}function d(p,g,y,m,w,$){if(p!==y||g!==m){var B=w.push(o(w)+"scale(",null,",",null,")");$.push({i:B-4,x:is(p,y)},{i:B-2,x:is(g,m)})}else(y!==1||m!==1)&&w.push(o(w)+"scale("+y+","+m+")")}return function(p,g){var y=[],m=[];return p=e(p),g=e(g),a(p.translateX,p.translateY,g.translateX,g.translateY,y,m),c(p.rotate,g.rotate,y,m),h(p.skewX,g.skewX,y,m),d(p.scaleX,p.scaleY,g.scaleX,g.scaleY,y,m),p=g=null,function(w){for(var $=-1,B=m.length,x;++$<B;)y[(x=m[$]).i]=x.x(w);return y.join("")}}}var IOe=US(POe,"px, ","px)","deg)"),ROe=US(NOe,", ",")",")"),MOe=1e-12;function EA(e){return((e=Math.exp(e))+1/e)/2}function zOe(e){return((e=Math.exp(e))-1/e)/2}function UOe(e){return((e=Math.exp(2*e))-1)/(e+1)}const HOe=function e(t,r,i){function o(a,c){var h=a[0],d=a[1],p=a[2],g=c[0],y=c[1],m=c[2],w=g-h,$=y-d,B=w*w+$*$,x,C;if(B<MOe)C=Math.log(m/p)/t,x=function(M){return[h+M*w,d+M*$,p*Math.exp(t*M*C)]};else{var S=Math.sqrt(B),N=(m*m-p*p+i*B)/(2*p*r*S),L=(m*m-p*p-i*B)/(2*m*r*S),T=Math.log(Math.sqrt(N*N+1)-N),R=Math.log(Math.sqrt(L*L+1)-L);C=(R-T)/t,x=function(M){var j=M*C,te=EA(T),ie=p/(r*S)*(te*UOe(t*j+T)-zOe(T));return[h+ie*w,d+ie*$,p*te/EA(t*j+T)]}}return x.duration=C*1e3*t/Math.SQRT2,x}return o.rho=function(a){var c=Math.max(.001,+a),h=c*c,d=h*h;return e(c,h,d)},o}(Math.SQRT2,2,4);var wa=0,_u=0,Au=0,HS=1e3,Hf,Su,qf=0,eo=0,Kh=0,el=typeof performance=="object"&&performance.now?performance:Date,qS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function nm(){return eo||(qS(qOe),eo=el.now()+Kh)}function qOe(){eo=0}function jf(){this._call=this._time=this._next=null}jf.prototype=im.prototype={constructor:jf,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?nm():+r)+(t==null?0:+t),!this._next&&Su!==this&&(Su?Su._next=this:Hf=this,Su=this),this._call=e,this._time=r,k0()},stop:function(){this._call&&(this._call=null,this._time=1/0,k0())}};function im(e,t,r){var i=new jf;return i.restart(e,t,r),i}function jOe(){nm(),++wa;for(var e=Hf,t;e;)(t=eo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--wa}function xA(){eo=(qf=el.now())+Kh,wa=_u=0;try{jOe()}finally{wa=0,WOe(),eo=0}}function VOe(){var e=el.now(),t=e-qf;t>HS&&(Kh-=t,qf=e)}function WOe(){for(var e,t=Hf,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Hf=r);Su=e,k0(i)}function k0(e){if(!wa){_u&&(_u=clearTimeout(_u));var t=e-eo;t>24?(e<1/0&&(_u=setTimeout(xA,e-el.now()-Kh)),Au&&(Au=clearInterval(Au))):(Au||(qf=el.now(),Au=setInterval(VOe,HS)),wa=1,qS(xA))}}function CA(e,t,r){var i=new jf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,r),i}var GOe=Ll("start","end","cancel","interrupt"),KOe=[],jS=0,_A=1,L0=2,ff=3,SA=4,B0=5,hf=6;function Xh(e,t,r,i,o,a){var c=e.__transition;if(!c)e.__transition={};else if(r in c)return;XOe(e,r,{name:t,index:i,group:o,on:GOe,tween:KOe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:jS})}function sm(e,t){var r=kn(e,t);if(r.state>jS)throw new Error("too late; already scheduled");return r}function Jn(e,t){var r=kn(e,t);if(r.state>ff)throw new Error("too late; already running");return r}function kn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function XOe(e,t,r){var i=e.__transition,o;i[t]=r,r.timer=im(a,0,r.time);function a(p){r.state=_A,r.timer.restart(c,r.delay,r.time),r.delay<=p&&c(p-r.delay)}function c(p){var g,y,m,w;if(r.state!==_A)return d();for(g in i)if(w=i[g],w.name===r.name){if(w.state===ff)return CA(c);w.state===SA?(w.state=hf,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=hf,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(CA(function(){r.state===ff&&(r.state=SA,r.timer.restart(h,r.delay,r.time),h(p))}),r.state=L0,r.on.call("start",e,e.__data__,r.index,r.group),r.state===L0){for(r.state=ff,o=new Array(m=r.tween.length),g=0,y=-1;g<m;++g)(w=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(o[++y]=w);o.length=y+1}}function h(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(d),r.state=B0,1),y=-1,m=o.length;++y<m;)o[y].call(e,g);r.state===B0&&(r.on.call("end",e,e.__data__,r.index,r.group),d())}function d(){r.state=hf,r.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function df(e,t){var r=e.__transition,i,o,a=!0,c;if(r){t=t==null?null:t+"";for(c in r){if((i=r[c]).name!==t){a=!1;continue}o=i.state>L0&&i.state<B0,i.state=hf,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[c]}a&&delete e.__transition}}function QOe(e){return this.each(function(){df(this,e)})}function YOe(e,t){var r,i;return function(){var o=Jn(this,e),a=o.tween;if(a!==r){i=r=a;for(var c=0,h=i.length;c<h;++c)if(i[c].name===t){i=i.slice(),i.splice(c,1);break}}o.tween=i}}function ZOe(e,t,r){var i,o;if(typeof r!="function")throw new Error;return function(){var a=Jn(this,e),c=a.tween;if(c!==i){o=(i=c).slice();for(var h={name:t,value:r},d=0,p=o.length;d<p;++d)if(o[d].name===t){o[d]=h;break}d===p&&o.push(h)}a.tween=o}}function JOe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=kn(this.node(),r).tween,o=0,a=i.length,c;o<a;++o)if((c=i[o]).name===e)return c.value;return null}return this.each((t==null?YOe:ZOe)(r,e,t))}function om(e,t,r){var i=e._id;return e.each(function(){var o=Jn(this,i);(o.value||(o.value={}))[t]=r.apply(this,arguments)}),function(o){return kn(o,i).value[t]}}function VS(e,t){var r;return(typeof t=="number"?is:t instanceof Ju?DA:(r=Ju(t))?(t=r,DA):OOe)(e,t)}function ePe(e){return function(){this.removeAttribute(e)}}function tPe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rPe(e,t,r){var i,o=r+"",a;return function(){var c=this.getAttribute(e);return c===o?null:c===i?a:a=t(i=c,r)}}function nPe(e,t,r){var i,o=r+"",a;return function(){var c=this.getAttributeNS(e.space,e.local);return c===o?null:c===i?a:a=t(i=c,r)}}function iPe(e,t,r){var i,o,a;return function(){var c,h=r(this),d;return h==null?void this.removeAttribute(e):(c=this.getAttribute(e),d=h+"",c===d?null:c===i&&d===o?a:(o=d,a=t(i=c,h)))}}function sPe(e,t,r){var i,o,a;return function(){var c,h=r(this),d;return h==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),d=h+"",c===d?null:c===i&&d===o?a:(o=d,a=t(i=c,h)))}}function oPe(e,t){var r=Gh(e),i=r==="transform"?ROe:VS;return this.attrTween(e,typeof t=="function"?(r.local?sPe:iPe)(r,i,om(this,"attr."+e,t)):t==null?(r.local?tPe:ePe)(r):(r.local?nPe:rPe)(r,i,t))}function aPe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function uPe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function lPe(e,t){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&uPe(e,a)),r}return o._value=t,o}function cPe(e,t){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&aPe(e,a)),r}return o._value=t,o}function fPe(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 i=Gh(e);return this.tween(r,(i.local?lPe:cPe)(i,t))}function hPe(e,t){return function(){sm(this,e).delay=+t.apply(this,arguments)}}function dPe(e,t){return t=+t,function(){sm(this,e).delay=t}}function pPe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hPe:dPe)(t,e)):kn(this.node(),t).delay}function gPe(e,t){return function(){Jn(this,e).duration=+t.apply(this,arguments)}}function vPe(e,t){return t=+t,function(){Jn(this,e).duration=t}}function mPe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?gPe:vPe)(t,e)):kn(this.node(),t).duration}function yPe(e,t){if(typeof t!="function")throw new Error;return function(){Jn(this,e).ease=t}}function bPe(e){var t=this._id;return arguments.length?this.each(yPe(t,e)):kn(this.node(),t).ease}function wPe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Jn(this,e).ease=r}}function DPe(e){if(typeof e!="function")throw new Error;return this.each(wPe(this._id,e))}function APe(e){typeof e!="function"&&(e=xS(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o)for(var a=t[o],c=a.length,h=i[o]=[],d,p=0;p<c;++p)(d=a[p])&&e.call(d,d.__data__,p,a)&&h.push(d);return new ki(i,this._parents,this._name,this._id)}function EPe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,o=r.length,a=Math.min(i,o),c=new Array(i),h=0;h<a;++h)for(var d=t[h],p=r[h],g=d.length,y=c[h]=new Array(g),m,w=0;w<g;++w)(m=d[w]||p[w])&&(y[w]=m);for(;h<i;++h)c[h]=t[h];return new ki(c,this._parents,this._name,this._id)}function xPe(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 CPe(e,t,r){var i,o,a=xPe(t)?sm:Jn;return function(){var c=a(this,e),h=c.on;h!==i&&(o=(i=h).copy()).on(t,r),c.on=o}}function _Pe(e,t){var r=this._id;return arguments.length<2?kn(this.node(),r).on.on(e):this.each(CPe(r,e,t))}function SPe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function FPe(){return this.on("end.remove",SPe(this._id))}function $Pe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=em(e));for(var i=this._groups,o=i.length,a=new Array(o),c=0;c<o;++c)for(var h=i[c],d=h.length,p=a[c]=new Array(d),g,y,m=0;m<d;++m)(g=h[m])&&(y=e.call(g,g.__data__,m,h))&&("__data__"in g&&(y.__data__=g.__data__),p[m]=y,Xh(p[m],t,r,m,p,kn(g,r)));return new ki(a,this._parents,t,r)}function TPe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ES(e));for(var i=this._groups,o=i.length,a=[],c=[],h=0;h<o;++h)for(var d=i[h],p=d.length,g,y=0;y<p;++y)if(g=d[y]){for(var m=e.call(g,g.__data__,y,d),w,$=kn(g,r),B=0,x=m.length;B<x;++B)(w=m[B])&&Xh(w,t,r,B,m,$);a.push(m),c.push(g)}return new ki(a,c,t,r)}var kPe=kl.prototype.constructor;function LPe(){return new kPe(this._groups,this._parents)}function BPe(e,t){var r,i,o;return function(){var a=ba(this,e),c=(this.style.removeProperty(e),ba(this,e));return a===c?null:a===r&&c===i?o:o=t(r=a,i=c)}}function WS(e){return function(){this.style.removeProperty(e)}}function OPe(e,t,r){var i,o=r+"",a;return function(){var c=ba(this,e);return c===o?null:c===i?a:a=t(i=c,r)}}function PPe(e,t,r){var i,o,a;return function(){var c=ba(this,e),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(e),ba(this,e))),c===d?null:c===i&&d===o?a:(o=d,a=t(i=c,h))}}function NPe(e,t){var r,i,o,a="style."+t,c="end."+a,h;return function(){var d=Jn(this,e),p=d.on,g=d.value[a]==null?h||(h=WS(t)):void 0;(p!==r||o!==g)&&(i=(r=p).copy()).on(c,o=g),d.on=i}}function IPe(e,t,r){var i=(e+="")=="transform"?IOe:VS;return t==null?this.styleTween(e,BPe(e,i)).on("end.style."+e,WS(e)):typeof t=="function"?this.styleTween(e,PPe(e,i,om(this,"style."+e,t))).each(NPe(this._id,e)):this.styleTween(e,OPe(e,i,t),r).on("end.style."+e,null)}function RPe(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function MPe(e,t,r){var i,o;function a(){var c=t.apply(this,arguments);return c!==o&&(i=(o=c)&&RPe(e,c,r)),i}return a._value=t,a}function zPe(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,MPe(e,t,r??""))}function UPe(e){return function(){this.textContent=e}}function HPe(e){return function(){var t=e(this);this.textContent=t??""}}function qPe(e){return this.tween("text",typeof e=="function"?HPe(om(this,"text",e)):UPe(e==null?"":e+""))}function jPe(e){return function(t){this.textContent=e.call(this,t)}}function VPe(e){var t,r;function i(){var o=e.apply(this,arguments);return o!==r&&(t=(r=o)&&jPe(o)),t}return i._value=e,i}function WPe(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,VPe(e))}function GPe(){for(var e=this._name,t=this._id,r=GS(),i=this._groups,o=i.length,a=0;a<o;++a)for(var c=i[a],h=c.length,d,p=0;p<h;++p)if(d=c[p]){var g=kn(d,t);Xh(d,e,r,p,c,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new ki(i,this._parents,e,r)}function KPe(){var e,t,r=this,i=r._id,o=r.size();return new Promise(function(a,c){var h={value:c},d={value:function(){--o===0&&a()}};r.each(function(){var p=Jn(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(h),t._.interrupt.push(h),t._.end.push(d)),p.on=t}),o===0&&a()})}var XPe=0;function ki(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function GS(){return++XPe}var gi=kl.prototype;ki.prototype={constructor:ki,select:$Pe,selectAll:TPe,selectChild:gi.selectChild,selectChildren:gi.selectChildren,filter:APe,merge:EPe,selection:LPe,transition:GPe,call:gi.call,nodes:gi.nodes,node:gi.node,size:gi.size,empty:gi.empty,each:gi.each,on:_Pe,attr:oPe,attrTween:fPe,style:IPe,styleTween:zPe,text:qPe,textTween:WPe,remove:FPe,tween:JOe,delay:pPe,duration:mPe,ease:bPe,easeVarying:DPe,end:KPe,[Symbol.iterator]:gi[Symbol.iterator]};function QPe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YPe={time:null,delay:0,duration:250,ease:QPe};function ZPe(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 JPe(e){var t,r;e instanceof ki?(t=e._id,e=e._name):(t=GS(),(r=YPe).time=nm(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var c=i[a],h=c.length,d,p=0;p<h;++p)(d=c[p])&&Xh(d,e,t,p,c,r||ZPe(d,t));return new ki(i,this._parents,e,t)}kl.prototype.interrupt=QOe;kl.prototype.transition=JPe;const Gc=e=>()=>e;function e8e(e,{sourceEvent:t,target:r,transform:i,dispatch:o}){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:i,enumerable:!0,configurable:!0},_:{value:o}})}function Di(e,t,r){this.k=e,this.x=t,this.y=r}Di.prototype={constructor:Di,scale:function(e){return e===1?this:new Di(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Di(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var am=new Di(1,0,0);Di.prototype;function Fp(e){e.stopImmediatePropagation()}function Eu(e){e.preventDefault(),e.stopImmediatePropagation()}function t8e(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function r8e(){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 FA(){return this.__zoom||am}function n8e(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function i8e(){return navigator.maxTouchPoints||"ontouchstart"in this}function s8e(e,t,r){var i=e.invertX(t[0][0])-r[0][0],o=e.invertX(t[1][0])-r[1][0],a=e.invertY(t[0][1])-r[0][1],c=e.invertY(t[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),c>a?(a+c)/2:Math.min(0,a)||Math.max(0,c))}function o8e(){var e=t8e,t=r8e,r=s8e,i=n8e,o=i8e,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],h=250,d=HOe,p=Ll("start","zoom","end"),g,y,m,w=500,$=150,B=0,x=10;function C(F){F.property("__zoom",FA).on("wheel.zoom",j,{passive:!1}).on("mousedown.zoom",te).on("dblclick.zoom",ie).filter(o).on("touchstart.zoom",ee).on("touchmove.zoom",z).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(F,D,I,V){var J=F.selection?F.selection():F;J.property("__zoom",FA),F!==J?T(F,D,I,V):J.interrupt().each(function(){R(this,arguments).event(V).start().zoom(null,typeof D=="function"?D.apply(this,arguments):D).end()})},C.scaleBy=function(F,D,I,V){C.scaleTo(F,function(){var J=this.__zoom.k,oe=typeof D=="function"?D.apply(this,arguments):D;return J*oe},I,V)},C.scaleTo=function(F,D,I,V){C.transform(F,function(){var J=t.apply(this,arguments),oe=this.__zoom,ge=I==null?L(J):typeof I=="function"?I.apply(this,arguments):I,Fe=oe.invert(ge),_e=typeof D=="function"?D.apply(this,arguments):D;return r(N(S(oe,_e),ge,Fe),J,c)},I,V)},C.translateBy=function(F,D,I,V){C.transform(F,function(){return r(this.__zoom.translate(typeof D=="function"?D.apply(this,arguments):D,typeof I=="function"?I.apply(this,arguments):I),t.apply(this,arguments),c)},null,V)},C.translateTo=function(F,D,I,V,J){C.transform(F,function(){var oe=t.apply(this,arguments),ge=this.__zoom,Fe=V==null?L(oe):typeof V=="function"?V.apply(this,arguments):V;return r(am.translate(Fe[0],Fe[1]).scale(ge.k).translate(typeof D=="function"?-D.apply(this,arguments):-D,typeof I=="function"?-I.apply(this,arguments):-I),oe,c)},V,J)};function S(F,D){return D=Math.max(a[0],Math.min(a[1],D)),D===F.k?F:new Di(D,F.x,F.y)}function N(F,D,I){var V=D[0]-I[0]*F.k,J=D[1]-I[1]*F.k;return V===F.x&&J===F.y?F:new Di(F.k,V,J)}function L(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function T(F,D,I,V){F.on("start.zoom",function(){R(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(V).end()}).tween("zoom",function(){var J=this,oe=arguments,ge=R(J,oe).event(V),Fe=t.apply(J,oe),_e=I==null?L(Fe):typeof I=="function"?I.apply(J,oe):I,Ue=Math.max(Fe[1][0]-Fe[0][0],Fe[1][1]-Fe[0][1]),Ke=J.__zoom,et=typeof D=="function"?D.apply(J,oe):D,xe=d(Ke.invert(_e).concat(Ue/Ke.k),et.invert(_e).concat(Ue/et.k));return function(Q){if(Q===1)Q=et;else{var ae=xe(Q),ce=Ue/ae[2];Q=new Di(ce,_e[0]-ae[0]*ce,_e[1]-ae[1]*ce)}ge.zoom(null,Q)}})}function R(F,D,I){return!I&&F.__zooming||new M(F,D)}function M(F,D){this.that=F,this.args=D,this.active=0,this.sourceEvent=null,this.extent=t.apply(F,D),this.taps=0}M.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,D){return this.mouse&&F!=="mouse"&&(this.mouse[1]=D.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=D.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=D.invert(this.touch1[0])),this.that.__zoom=D,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var D=Rr(this.that).datum();p.call(F,this.that,new e8e(F,{sourceEvent:this.sourceEvent,target:C,type:F,transform:this.that.__zoom,dispatch:p}),D)}};function j(F,...D){if(!e.apply(this,arguments))return;var I=R(this,D).event(F),V=this.__zoom,J=Math.max(a[0],Math.min(a[1],V.k*Math.pow(2,i.apply(this,arguments)))),oe=yi(F);if(I.wheel)(I.mouse[0][0]!==oe[0]||I.mouse[0][1]!==oe[1])&&(I.mouse[1]=V.invert(I.mouse[0]=oe)),clearTimeout(I.wheel);else{if(V.k===J)return;I.mouse=[oe,V.invert(oe)],df(this),I.start()}Eu(F),I.wheel=setTimeout(ge,$),I.zoom("mouse",r(N(S(V,J),I.mouse[0],I.mouse[1]),I.extent,c));function ge(){I.wheel=null,I.end()}}function te(F,...D){if(m||!e.apply(this,arguments))return;var I=F.currentTarget,V=R(this,D,!0).event(F),J=Rr(F.view).on("mousemove.zoom",_e,!0).on("mouseup.zoom",Ue,!0),oe=yi(F,I),ge=F.clientX,Fe=F.clientY;OS(F.view),Fp(F),V.mouse=[oe,this.__zoom.invert(oe)],df(this),V.start();function _e(Ke){if(Eu(Ke),!V.moved){var et=Ke.clientX-ge,xe=Ke.clientY-Fe;V.moved=et*et+xe*xe>B}V.event(Ke).zoom("mouse",r(N(V.that.__zoom,V.mouse[0]=yi(Ke,I),V.mouse[1]),V.extent,c))}function Ue(Ke){J.on("mousemove.zoom mouseup.zoom",null),PS(Ke.view,V.moved),Eu(Ke),V.event(Ke).end()}}function ie(F,...D){if(e.apply(this,arguments)){var I=this.__zoom,V=yi(F.changedTouches?F.changedTouches[0]:F,this),J=I.invert(V),oe=I.k*(F.shiftKey?.5:2),ge=r(N(S(I,oe),V,J),t.apply(this,D),c);Eu(F),h>0?Rr(this).transition().duration(h).call(T,ge,V,F):Rr(this).call(C.transform,ge,V,F)}}function ee(F,...D){if(e.apply(this,arguments)){var I=F.touches,V=I.length,J=R(this,D,F.changedTouches.length===V).event(F),oe,ge,Fe,_e;for(Fp(F),ge=0;ge<V;++ge)Fe=I[ge],_e=yi(Fe,this),_e=[_e,this.__zoom.invert(_e),Fe.identifier],J.touch0?!J.touch1&&J.touch0[2]!==_e[2]&&(J.touch1=_e,J.taps=0):(J.touch0=_e,oe=!0,J.taps=1+!!g);g&&(g=clearTimeout(g)),oe&&(J.taps<2&&(y=_e[0],g=setTimeout(function(){g=null},w)),df(this),J.start())}}function z(F,...D){if(this.__zooming){var I=R(this,D).event(F),V=F.changedTouches,J=V.length,oe,ge,Fe,_e;for(Eu(F),oe=0;oe<J;++oe)ge=V[oe],Fe=yi(ge,this),I.touch0&&I.touch0[2]===ge.identifier?I.touch0[0]=Fe:I.touch1&&I.touch1[2]===ge.identifier&&(I.touch1[0]=Fe);if(ge=I.that.__zoom,I.touch1){var Ue=I.touch0[0],Ke=I.touch0[1],et=I.touch1[0],xe=I.touch1[1],Q=(Q=et[0]-Ue[0])*Q+(Q=et[1]-Ue[1])*Q,ae=(ae=xe[0]-Ke[0])*ae+(ae=xe[1]-Ke[1])*ae;ge=S(ge,Math.sqrt(Q/ae)),Fe=[(Ue[0]+et[0])/2,(Ue[1]+et[1])/2],_e=[(Ke[0]+xe[0])/2,(Ke[1]+xe[1])/2]}else if(I.touch0)Fe=I.touch0[0],_e=I.touch0[1];else return;I.zoom("touch",r(N(ge,Fe,_e),I.extent,c))}}function O(F,...D){if(this.__zooming){var I=R(this,D).event(F),V=F.changedTouches,J=V.length,oe,ge;for(Fp(F),m&&clearTimeout(m),m=setTimeout(function(){m=null},w),oe=0;oe<J;++oe)ge=V[oe],I.touch0&&I.touch0[2]===ge.identifier?delete I.touch0:I.touch1&&I.touch1[2]===ge.identifier&&delete I.touch1;if(I.touch1&&!I.touch0&&(I.touch0=I.touch1,delete I.touch1),I.touch0)I.touch0[1]=this.__zoom.invert(I.touch0[0]);else if(I.end(),I.taps===2&&(ge=yi(ge,this),Math.hypot(y[0]-ge[0],y[1]-ge[1])<x)){var Fe=Rr(this).on("dblclick.zoom");Fe&&Fe.apply(this,arguments)}}}return C.wheelDelta=function(F){return arguments.length?(i=typeof F=="function"?F:Gc(+F),C):i},C.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Gc(!!F),C):e},C.touchable=function(F){return arguments.length?(o=typeof F=="function"?F:Gc(!!F),C):o},C.extent=function(F){return arguments.length?(t=typeof F=="function"?F:Gc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),C):t},C.scaleExtent=function(F){return arguments.length?(a[0]=+F[0],a[1]=+F[1],C):[a[0],a[1]]},C.translateExtent=function(F){return arguments.length?(c[0][0]=+F[0][0],c[1][0]=+F[1][0],c[0][1]=+F[0][1],c[1][1]=+F[1][1],C):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},C.constrain=function(F){return arguments.length?(r=F,C):r},C.duration=function(F){return arguments.length?(h=+F,C):h},C.interpolate=function(F){return arguments.length?(d=F,C):d},C.on=function(){var F=p.on.apply(p,arguments);return F===p?C:F},C.clickDistance=function(F){return arguments.length?(B=(F=+F)*F,C):Math.sqrt(B)},C.tapDistance=function(F){return arguments.length?(x=+F,C):x},C}function a8e(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return KS(this.cover(t,r),t,r,e)}function KS(e,t,r,i){if(isNaN(t)||isNaN(r))return e;var o,a=e._root,c={data:i},h=e._x0,d=e._y0,p=e._x1,g=e._y1,y,m,w,$,B,x,C,S;if(!a)return e._root=c,e;for(;a.length;)if((B=t>=(y=(h+p)/2))?h=y:p=y,(x=r>=(m=(d+g)/2))?d=m:g=m,o=a,!(a=a[C=x<<1|B]))return o[C]=c,e;if(w=+e._x.call(null,a.data),$=+e._y.call(null,a.data),t===w&&r===$)return c.next=a,o?o[C]=c:e._root=c,e;do o=o?o[C]=new Array(4):e._root=new Array(4),(B=t>=(y=(h+p)/2))?h=y:p=y,(x=r>=(m=(d+g)/2))?d=m:g=m;while((C=x<<1|B)===(S=($>=m)<<1|w>=y));return o[S]=a,o[C]=c,e}function u8e(e){var t,r,i=e.length,o,a,c=new Array(i),h=new Array(i),d=1/0,p=1/0,g=-1/0,y=-1/0;for(r=0;r<i;++r)isNaN(o=+this._x.call(null,t=e[r]))||isNaN(a=+this._y.call(null,t))||(c[r]=o,h[r]=a,o<d&&(d=o),o>g&&(g=o),a<p&&(p=a),a>y&&(y=a));if(d>g||p>y)return this;for(this.cover(d,p).cover(g,y),r=0;r<i;++r)KS(this,c[r],h[r],e[r]);return this}function l8e(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(r))o=(r=Math.floor(e))+1,a=(i=Math.floor(t))+1;else{for(var c=o-r||1,h=this._root,d,p;r>e||e>=o||i>t||t>=a;)switch(p=(t<i)<<1|e<r,d=new Array(4),d[p]=h,h=d,c*=2,p){case 0:o=r+c,a=i+c;break;case 1:r=o-c,a=i+c;break;case 2:o=r+c,i=a-c;break;case 3:r=o-c,i=a-c;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=i,this._x1=o,this._y1=a,this}function c8e(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function f8e(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 Fr(e,t,r,i,o){this.node=e,this.x0=t,this.y0=r,this.x1=i,this.y1=o}function h8e(e,t,r){var i,o=this._x0,a=this._y0,c,h,d,p,g=this._x1,y=this._y1,m=[],w=this._root,$,B;for(w&&m.push(new Fr(w,o,a,g,y)),r==null?r=1/0:(o=e-r,a=t-r,g=e+r,y=t+r,r*=r);$=m.pop();)if(!(!(w=$.node)||(c=$.x0)>g||(h=$.y0)>y||(d=$.x1)<o||(p=$.y1)<a))if(w.length){var x=(c+d)/2,C=(h+p)/2;m.push(new Fr(w[3],x,C,d,p),new Fr(w[2],c,C,x,p),new Fr(w[1],x,h,d,C),new Fr(w[0],c,h,x,C)),(B=(t>=C)<<1|e>=x)&&($=m[m.length-1],m[m.length-1]=m[m.length-1-B],m[m.length-1-B]=$)}else{var S=e-+this._x.call(null,w.data),N=t-+this._y.call(null,w.data),L=S*S+N*N;if(L<r){var T=Math.sqrt(r=L);o=e-T,a=t-T,g=e+T,y=t+T,i=w.data}}return i}function d8e(e){if(isNaN(g=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,r=this._root,i,o,a,c=this._x0,h=this._y0,d=this._x1,p=this._y1,g,y,m,w,$,B,x,C;if(!r)return this;if(r.length)for(;;){if(($=g>=(m=(c+d)/2))?c=m:d=m,(B=y>=(w=(h+p)/2))?h=w:p=w,t=r,!(r=r[x=B<<1|$]))return this;if(!r.length)break;(t[x+1&3]||t[x+2&3]||t[x+3&3])&&(i=t,C=x)}for(;r.data!==e;)if(o=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,o?(a?o.next=a:delete o.next,this):t?(a?t[x]=a:delete t[x],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(i?i[C]=r:this._root=r),this):(this._root=a,this)}function p8e(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function g8e(){return this._root}function v8e(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function m8e(e){var t=[],r,i=this._root,o,a,c,h,d;for(i&&t.push(new Fr(i,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(i=r.node,a=r.x0,c=r.y0,h=r.x1,d=r.y1)&&i.length){var p=(a+h)/2,g=(c+d)/2;(o=i[3])&&t.push(new Fr(o,p,g,h,d)),(o=i[2])&&t.push(new Fr(o,a,g,p,d)),(o=i[1])&&t.push(new Fr(o,p,c,h,g)),(o=i[0])&&t.push(new Fr(o,a,c,p,g))}return this}function y8e(e){var t=[],r=[],i;for(this._root&&t.push(new Fr(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var o=i.node;if(o.length){var a,c=i.x0,h=i.y0,d=i.x1,p=i.y1,g=(c+d)/2,y=(h+p)/2;(a=o[0])&&t.push(new Fr(a,c,h,g,y)),(a=o[1])&&t.push(new Fr(a,g,h,d,y)),(a=o[2])&&t.push(new Fr(a,c,y,g,p)),(a=o[3])&&t.push(new Fr(a,g,y,d,p))}r.push(i)}for(;i=r.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function b8e(e){return e[0]}function w8e(e){return arguments.length?(this._x=e,this):this._x}function D8e(e){return e[1]}function A8e(e){return arguments.length?(this._y=e,this):this._y}function um(e,t,r){var i=new lm(t??b8e,r??D8e,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function lm(e,t,r,i,o,a){this._x=e,this._y=t,this._x0=r,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function $A(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var kr=um.prototype=lm.prototype;kr.copy=function(){var e=new lm(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,i;if(!t)return e;if(!t.length)return e._root=$A(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var o=0;o<4;++o)(i=t.source[o])&&(i.length?r.push({source:i,target:t.target[o]=new Array(4)}):t.target[o]=$A(i));return e};kr.add=a8e;kr.addAll=u8e;kr.cover=l8e;kr.data=c8e;kr.extent=f8e;kr.find=h8e;kr.remove=d8e;kr.removeAll=p8e;kr.root=g8e;kr.size=v8e;kr.visit=m8e;kr.visitAfter=y8e;kr.x=w8e;kr.y=A8e;function $r(e){return function(){return e}}function os(e){return(e()-.5)*1e-6}function E8e(e){return e.x+e.vx}function x8e(e){return e.y+e.vy}function C8e(e){var t,r,i,o=1,a=1;typeof e!="function"&&(e=$r(e==null?1:+e));function c(){for(var p,g=t.length,y,m,w,$,B,x,C=0;C<a;++C)for(y=um(t,E8e,x8e).visitAfter(h),p=0;p<g;++p)m=t[p],B=r[m.index],x=B*B,w=m.x+m.vx,$=m.y+m.vy,y.visit(S);function S(N,L,T,R,M){var j=N.data,te=N.r,ie=B+te;if(j){if(j.index>m.index){var ee=w-j.x-j.vx,z=$-j.y-j.vy,O=ee*ee+z*z;O<ie*ie&&(ee===0&&(ee=os(i),O+=ee*ee),z===0&&(z=os(i),O+=z*z),O=(ie-(O=Math.sqrt(O)))/O*o,m.vx+=(ee*=O)*(ie=(te*=te)/(x+te)),m.vy+=(z*=O)*ie,j.vx-=ee*(ie=1-ie),j.vy-=z*ie)}return}return L>w+ie||R<w-ie||T>$+ie||M<$-ie}}function h(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 d(){if(t){var p,g=t.length,y;for(r=new Array(g),p=0;p<g;++p)y=t[p],r[y.index]=+e(y,p,t)}}return c.initialize=function(p,g){t=p,i=g,d()},c.iterations=function(p){return arguments.length?(a=+p,c):a},c.strength=function(p){return arguments.length?(o=+p,c):o},c.radius=function(p){return arguments.length?(e=typeof p=="function"?p:$r(+p),d(),c):e},c}function _8e(e){return e.index}function TA(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function S8e(e){var t=_8e,r=y,i,o=$r(30),a,c,h,d,p,g=1;e==null&&(e=[]);function y(x){return 1/Math.min(h[x.source.index],h[x.target.index])}function m(x){for(var C=0,S=e.length;C<g;++C)for(var N=0,L,T,R,M,j,te,ie;N<S;++N)L=e[N],T=L.source,R=L.target,M=R.x+R.vx-T.x-T.vx||os(p),j=R.y+R.vy-T.y-T.vy||os(p),te=Math.sqrt(M*M+j*j),te=(te-a[N])/te*x*i[N],M*=te,j*=te,R.vx-=M*(ie=d[N]),R.vy-=j*ie,T.vx+=M*(ie=1-ie),T.vy+=j*ie}function w(){if(c){var x,C=c.length,S=e.length,N=new Map(c.map((T,R)=>[t(T,R,c),T])),L;for(x=0,h=new Array(C);x<S;++x)L=e[x],L.index=x,typeof L.source!="object"&&(L.source=TA(N,L.source)),typeof L.target!="object"&&(L.target=TA(N,L.target)),h[L.source.index]=(h[L.source.index]||0)+1,h[L.target.index]=(h[L.target.index]||0)+1;for(x=0,d=new Array(S);x<S;++x)L=e[x],d[x]=h[L.source.index]/(h[L.source.index]+h[L.target.index]);i=new Array(S),$(),a=new Array(S),B()}}function $(){if(c)for(var x=0,C=e.length;x<C;++x)i[x]=+r(e[x],x,e)}function B(){if(c)for(var x=0,C=e.length;x<C;++x)a[x]=+o(e[x],x,e)}return m.initialize=function(x,C){c=x,p=C,w()},m.links=function(x){return arguments.length?(e=x,w(),m):e},m.id=function(x){return arguments.length?(t=x,m):t},m.iterations=function(x){return arguments.length?(g=+x,m):g},m.strength=function(x){return arguments.length?(r=typeof x=="function"?x:$r(+x),$(),m):r},m.distance=function(x){return arguments.length?(o=typeof x=="function"?x:$r(+x),B(),m):o},m}const F8e=1664525,$8e=1013904223,kA=4294967296;function T8e(){let e=1;return()=>(e=(F8e*e+$8e)%kA)/kA}function k8e(e){return e.x}function L8e(e){return e.y}var B8e=10,O8e=Math.PI*(3-Math.sqrt(5));function P8e(e){var t,r=1,i=.001,o=1-Math.pow(i,1/300),a=0,c=.6,h=new Map,d=im(y),p=Ll("tick","end"),g=T8e();e==null&&(e=[]);function y(){m(),p.call("tick",t),r<i&&(d.stop(),p.call("end",t))}function m(B){var x,C=e.length,S;B===void 0&&(B=1);for(var N=0;N<B;++N)for(r+=(a-r)*o,h.forEach(function(L){L(r)}),x=0;x<C;++x)S=e[x],S.fx==null?S.x+=S.vx*=c:(S.x=S.fx,S.vx=0),S.fy==null?S.y+=S.vy*=c:(S.y=S.fy,S.vy=0);return t}function w(){for(var B=0,x=e.length,C;B<x;++B){if(C=e[B],C.index=B,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var S=B8e*Math.sqrt(.5+B),N=B*O8e;C.x=S*Math.cos(N),C.y=S*Math.sin(N)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function $(B){return B.initialize&&B.initialize(e,g),B}return w(),t={tick:m,restart:function(){return d.restart(y),t},stop:function(){return d.stop(),t},nodes:function(B){return arguments.length?(e=B,w(),h.forEach($),t):e},alpha:function(B){return arguments.length?(r=+B,t):r},alphaMin:function(B){return arguments.length?(i=+B,t):i},alphaDecay:function(B){return arguments.length?(o=+B,t):+o},alphaTarget:function(B){return arguments.length?(a=+B,t):a},velocityDecay:function(B){return arguments.length?(c=1-B,t):1-c},randomSource:function(B){return arguments.length?(g=B,h.forEach($),t):g},force:function(B,x){return arguments.length>1?(x==null?h.delete(B):h.set(B,$(x)),t):h.get(B)},find:function(B,x,C){var S=0,N=e.length,L,T,R,M,j;for(C==null?C=1/0:C*=C,S=0;S<N;++S)M=e[S],L=B-M.x,T=x-M.y,R=L*L+T*T,R<C&&(j=M,C=R);return j},on:function(B,x){return arguments.length>1?(p.on(B,x),t):p.on(B)}}}function N8e(){var e,t,r,i,o=$r(-30),a,c=1,h=1/0,d=.81;function p(w){var $,B=e.length,x=um(e,k8e,L8e).visitAfter(y);for(i=w,$=0;$<B;++$)t=e[$],x.visit(m)}function g(){if(e){var w,$=e.length,B;for(a=new Array($),w=0;w<$;++w)B=e[w],a[B.index]=+o(B,w,e)}}function y(w){var $=0,B,x,C=0,S,N,L;if(w.length){for(S=N=L=0;L<4;++L)(B=w[L])&&(x=Math.abs(B.value))&&($+=B.value,C+=x,S+=x*B.x,N+=x*B.y);w.x=S/C,w.y=N/C}else{B=w,B.x=B.data.x,B.y=B.data.y;do $+=a[B.data.index];while(B=B.next)}w.value=$}function m(w,$,B,x){if(!w.value)return!0;var C=w.x-t.x,S=w.y-t.y,N=x-$,L=C*C+S*S;if(N*N/d<L)return L<h&&(C===0&&(C=os(r),L+=C*C),S===0&&(S=os(r),L+=S*S),L<c&&(L=Math.sqrt(c*L)),t.vx+=C*w.value*i/L,t.vy+=S*w.value*i/L),!0;if(w.length||L>=h)return;(w.data!==t||w.next)&&(C===0&&(C=os(r),L+=C*C),S===0&&(S=os(r),L+=S*S),L<c&&(L=Math.sqrt(c*L)));do w.data!==t&&(N=a[w.data.index]*i/L,t.vx+=C*N,t.vy+=S*N);while(w=w.next)}return p.initialize=function(w,$){e=w,r=$,g()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:$r(+w),g(),p):o},p.distanceMin=function(w){return arguments.length?(c=w*w,p):Math.sqrt(c)},p.distanceMax=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p.theta=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p}function I8e(e){var t=$r(.1),r,i,o;typeof e!="function"&&(e=$r(e==null?0:+e));function a(h){for(var d=0,p=r.length,g;d<p;++d)g=r[d],g.vx+=(o[d]-g.x)*i[d]*h}function c(){if(r){var h,d=r.length;for(i=new Array(d),o=new Array(d),h=0;h<d;++h)i[h]=isNaN(o[h]=+e(r[h],h,r))?0:+t(r[h],h,r)}}return a.initialize=function(h){r=h,c()},a.strength=function(h){return arguments.length?(t=typeof h=="function"?h:$r(+h),c(),a):t},a.x=function(h){return arguments.length?(e=typeof h=="function"?h:$r(+h),c(),a):e},a}function R8e(e){var t=$r(.1),r,i,o;typeof e!="function"&&(e=$r(e==null?0:+e));function a(h){for(var d=0,p=r.length,g;d<p;++d)g=r[d],g.vy+=(o[d]-g.y)*i[d]*h}function c(){if(r){var h,d=r.length;for(i=new Array(d),o=new Array(d),h=0;h<d;++h)i[h]=isNaN(o[h]=+e(r[h],h,r))?0:+t(r[h],h,r)}}return a.initialize=function(h){r=h,c()},a.strength=function(h){return arguments.length?(t=typeof h=="function"?h:$r(+h),c(),a):t},a.y=function(h){return arguments.length?(e=typeof h=="function"?h:$r(+h),c(),a):e},a}var M8e=Object.defineProperty,z8e=(e,t,r)=>t in e?M8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mt=(e,t,r)=>(z8e(e,typeof t!="symbol"?t+"":t,r),r);function U8e(){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}}const LA=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},as=(...e)=>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(i=>{["__proto__","constructor","prototype"].includes(i)||(Array.isArray(t[i])&&Array.isArray(r[i])?t[i]=as.options.mergeArrays?Array.from(new Set(t[i].concat(r[i]))):r[i]:LA(t[i])&&LA(r[i])?t[i]=as(t[i],r[i]):t[i]=r[i])}),t},{}),XS={mergeArrays:!0};as.options=XS;as.withOptions=(e,...t)=>{as.options={mergeArrays:!0,...e};const r=as(...t);return as.options=XS,r};function H8e(){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 q8e(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function QS(e){e.preventDefault(),e.stopPropagation()}function YS(e){return typeof e=="number"}function ds(e,t){return YS(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function j8e(e){return`${e.source.id}-${e.target.id}`}function ZS(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function V8e(e){return`url(#${ZS(e.color)})`}function W8e(e){return{size:e,padding:(t,r)=>ds(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const JS={Arrow:e=>W8e(e)},G8e=(e,t,r)=>[t/2,r/2],eF=(e,t,r)=>[BA(0,t),BA(0,r)];function BA(e,t){return Math.random()*(t-e)+e}function K8e(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,i,o)=>{const[a,c]=t[r.id]??[];return!a||!c?eF(r,i,o):[a,c]}}const O0={Centered:G8e,Randomized:eF,Stable:K8e};function X8e(){return{autoResize:!1,callbacks:{},hooks:{},initial:q8e(),nodeRadius:16,marker:JS.Arrow(4),modifiers:{},positionInitializer:O0.Centered,simulation:{alphas:U8e(),forces:H8e()},zoom:{initial:1,min:.1,max:2}}}function Q8e(e={}){return as.withOptions({mergeArrays:!1},X8e(),e)}function Y8e(e,t){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(),t)}}function Z8e({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:i,onPointerUp:o,offset:[a,c],scale:h,zoom:d}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",g=>QS(g)).on("dblclick",g=>r==null?void 0:r(g)).on("dblclick.zoom",null).on("pointermove",g=>i==null?void 0:i(g)).on("pointerup",g=>o==null?void 0:o(g)).style("cursor","grab");return e&&p.call(d.transform,am.translate(a,c).scale(h)),p.append("g")}function J8e({canvas:e,scale:t,xOffset:r,yOffset:i}){e==null||e.attr("transform",`translate(${r},${i})scale(${t})`)}function eNe({config:e,onDragStart:t,onDragEnd:r}){var i,o;const a=vOe().filter(c=>c.type==="mousedown"?c.button===0:c.type==="touchstart"?c.touches.length===1:!1).on("start",(c,h)=>{c.active===0&&t(c,h),Rr(c.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(c,h)=>{h.fx=c.x,h.fy=c.y}).on("end",(c,h)=>{c.active===0&&r(c,h),Rr(c.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(o=(i=e.modifiers).drag)==null||o.call(i,a),a}function tNe({graph:e,filter:t,focusedNode:r,includeUnlinked:i,linkFilter:o}){const a=e.links.filter(d=>t.includes(d.source.type)&&t.includes(d.target.type)&&o(d)),c=d=>a.find(p=>p.source.id===d.id||p.target.id===d.id)!==void 0,h=e.nodes.filter(d=>t.includes(d.type)&&(i||c(d)));return r===void 0||!t.includes(r.type)?{nodes:h,links:a}:rNe({nodes:h,links:a},r)}function rNe(e,t){const r=[...nNe(e,t),...iNe(e,t)],i=r.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(r)]}}function nNe(e,t){return tF(e,t,(r,i)=>r.target.id===i.id)}function iNe(e,t){return tF(e,t,(r,i)=>r.source.id===i.id)}function tF(e,t,r){const i=new Set(e.links),o=new Set([t]),a=[];for(;i.size>0;){const c=[...i].filter(h=>[...o].some(d=>r(h,d)));if(c.length===0)return a;c.forEach(h=>{o.add(h.source),o.add(h.target),a.push(h),i.delete(h)})}return a}function P0(e){return e.x??0}function N0(e){return e.y??0}function cm({source:e,target:t}){const r=new Sr(P0(e),N0(e)),i=new Sr(P0(t),N0(t)),o=i.subtract(r),a=o.length(),c=o.normalize(),h=c.multiply(-1);return{s:r,t:i,dist:a,norm:c,endNorm:h}}function rF({center:e,node:t}){const r=new Sr(P0(t),N0(t));let i=e;return r.x===i.x&&r.y===i.y&&(i=i.add(new Sr(0,1))),{n:r,c:i}}function nF({config:e,source:t,target:r}){const{s:i,t:o,norm:a}=cm({config:e,source:t,target:r}),c=i.add(a.multiply(ds(e,t)-1)),h=o.subtract(a.multiply(e.marker.padding(r,e)));return{start:c,end:h}}function sNe(e){const{start:t,end:r}=nF(e);return`M${t.x},${t.y}
41
+ L${r.x},${r.y}`}function oNe(e){const{start:t,end:r}=nF(e),i=r.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function aNe({config:e,source:t,target:r}){const{s:i,t:o,dist:a,norm:c,endNorm:h}=cm({config:e,source:t,target:r}),d=10,p=c.rotateByDegrees(-d).multiply(ds(e,t)-1).add(i),g=h.rotateByDegrees(d).multiply(ds(e,r)).add(o).add(h.rotateByDegrees(d).multiply(2*e.marker.size)),y=1.2*a;return`M${p.x},${p.y}
42
+ A${y},${y},0,0,1,${g.x},${g.y}`}function uNe({center:e,config:t,node:r}){const{n:i,c:o}=rF({center:e,config:t,node:r}),a=ds(t,r),c=i.subtract(o),h=c.multiply(1/c.length()),d=40,p=h.rotateByDegrees(d).multiply(a-1).add(i),g=h.rotateByDegrees(-d).multiply(a).add(i).add(h.rotateByDegrees(-d).multiply(2*t.marker.size));return`M${p.x},${p.y}
43
+ A${a},${a},0,1,0,${g.x},${g.y}`}function lNe({config:e,source:t,target:r}){const{t:i,dist:o,endNorm:a}=cm({config:e,source:t,target:r}),c=10,h=a.rotateByDegrees(c).multiply(.5*o).add(i);return`translate(${h.x},${h.y})`}function cNe({center:e,config:t,node:r}){const{n:i,c:o}=rF({center:e,config:t,node:r}),a=i.subtract(o),c=a.multiply(1/a.length()).multiply(3*ds(t,r)+8).add(i);return`translate(${c.x},${c.y})`}const ia={line:{labelTransform:oNe,path:sNe},arc:{labelTransform:lNe,path:aNe},reflexive:{labelTransform:cNe,path:uNe}};function fNe(e){return e.append("g").classed("links",!0).selectAll("path")}function hNe({config:e,graph:t,selection:r,showLabels:i}){const o=r==null?void 0:r.data(t.links,a=>j8e(a)).join(a=>{var c,h,d,p;const g=a.append("g"),y=g.append("path").classed("link",!0).style("marker-end",w=>V8e(w)).style("stroke",w=>w.color);(h=(c=e.modifiers).link)==null||h.call(c,y);const m=g.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(d=e.modifiers).linkLabel)==null||p.call(d,m),g});return o==null||o.select(".link__label").attr("opacity",a=>a.label&&i?1:0),o}function dNe(e){pNe(e),gNe(e)}function pNe({center:e,config:t,graph:r,selection:i}){i==null||i.selectAll("path").attr("d",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"":o.source.id===o.target.id?ia.reflexive.path({config:t,node:o.source,center:e}):iF(r,o.source,o.target)?ia.arc.path({config:t,source:o.source,target:o.target}):ia.line.path({config:t,source:o.source,target:o.target}))}function gNe({config:e,center:t,graph:r,selection:i}){i==null||i.select(".link__label").attr("transform",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"translate(0, 0)":o.source.id===o.target.id?ia.reflexive.labelTransform({config:e,node:o.source,center:t}):iF(r,o.source,o.target)?ia.arc.labelTransform({config:e,source:o.source,target:o.target}):ia.line.labelTransform({config:e,source:o.source,target:o.target}))}function iF(e,t,r){return t.id!==r.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===r.id)&&e.links.some(i=>i.target.id===r.id&&i.source.id===t.id)}function vNe(e){return e.append("defs").selectAll("marker")}function mNe({config:e,graph:t,selection:r}){return r==null?void 0:r.data(yNe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",a=>ZS(a)).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",a=>a);return o.append("path").attr("d",bNe(e.marker.path)),o})}function yNe(e){return[...new Set(e.links.map(t=>t.color))]}function bNe(e){const[t,...r]=e;if(!t)return"M0,0";const[i,o]=t;return r.reduce((a,[c,h])=>`${a}L${c},${h}`,`M${i},${o}`)}function wNe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function DNe({config:e,drag:t,graph:r,onNodeContext:i,onNodeSelected:o,selection:a,showLabels:c}){const h=a==null?void 0:a.data(r.nodes,d=>d.id).join(d=>{var p,g,y,m;const w=d.append("g");t!==void 0&&w.call(t);const $=w.append("circle").classed("node",!0).attr("r",x=>ds(e,x)).on("contextmenu",(x,C)=>{QS(x),i(C)}).on("pointerdown",(x,C)=>ENe(x,C,o??i)).style("fill",x=>x.color);(g=(p=e.modifiers).node)==null||g.call(p,$);const B=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).style("stroke","none").text(x=>x.label?x.label.text:null);return(m=(y=e.modifiers).nodeLabel)==null||m.call(y,B),w});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",c?1:0),h}const ANe=500;function ENe(e,t,r){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,o=Date.now();if(i===void 0||o-i>ANe){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,r(t)}function xNe(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function CNe({center:e,config:t,graph:r,onTick:i}){var o,a;const c=P8e(r.nodes),h=t.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;c.force("x",I8e(()=>e().x).strength(y)).force("y",R8e(()=>e().y).strength(y))}const d=t.simulation.forces.charge;d&&d.enabled&&c.force("charge",N8e().strength(d.strength));const p=t.simulation.forces.collision;p&&p.enabled&&c.force("collision",C8e().radius(y=>p.radiusMultiplier*ds(t,y)));const g=t.simulation.forces.link;return g&&g.enabled&&c.force("link",S8e(r.links).id(y=>y.id).distance(t.simulation.forces.link.length).strength(g.strength)),c.on("tick",()=>i()),(a=(o=t.modifiers).simulation)==null||a.call(o,c),c}function _Ne({canvasContainer:e,config:t,min:r,max:i,onZoom:o}){var a,c;const h=o8e().scaleExtent([r,i]).filter(d=>{var p;return d.button===0||((p=d.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",d=>o(d)).on("end",()=>e().classed("grabbed",!1));return(c=(a=t.modifiers).zoom)==null||c.call(a,h),h}class SNe{constructor(t,r,i){if(Mt(this,"nodeTypes"),Mt(this,"_nodeTypeFilter"),Mt(this,"_includeUnlinked",!0),Mt(this,"_linkFilter",()=>!0),Mt(this,"_showLinkLabels",!0),Mt(this,"_showNodeLabels",!0),Mt(this,"filteredGraph"),Mt(this,"width",0),Mt(this,"height",0),Mt(this,"simulation"),Mt(this,"canvas"),Mt(this,"linkSelection"),Mt(this,"nodeSelection"),Mt(this,"markerSelection"),Mt(this,"zoom"),Mt(this,"drag"),Mt(this,"xOffset",0),Mt(this,"yOffset",0),Mt(this,"scale"),Mt(this,"focusedNode"),Mt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=i,this.scale=i.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[a,c]=i.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??a,o.y=o.y??c}),this.nodeTypes=[...new Set(r.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],i.initial){const{includeUnlinked:o,nodeTypeFilter:a,linkFilter:c,showLinkLabels:h,showNodeLabels:d}=i.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=a??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(i.simulation.alphas.initialize),i.autoResize&&(this.resizeObserver=new ResizeObserver(Y8e(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:i}=this.config.simulation.alphas.filter.unlinked,o=t?r:i;this.restart(o)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:i}=this.config.simulation.alphas.labels.nodes,o=t?i:r;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:i}=this.config.simulation.alphas.labels.links,o=t?i:r;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Sr.of([this.width,this.height]).divide(2).subtract(Sr.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,i=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,a=t.toFixed()!==i.toFixed(),c=r.toFixed()!==o.toFixed();if(!a&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(YS(h)?h:h({oldWidth:t,oldHeight:r,newWidth:i,newHeight:o}))}restart(t){var r;this.markerSelection=mNe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=hNe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=DNe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:i=>this.toggleNodeFocus(i),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=CNe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(i=>i!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=_Ne({config:this.config,canvasContainer:()=>Rr(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Z8e({applyZoom:this.scale!==1,container:Rr(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=fNe(this.canvas),this.nodeSelection=wNe(this.canvas),this.markerSelection=vNe(this.canvas),this.drag=eNe({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){xNe(this.nodeSelection),dNe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Rr(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,i,o;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(i=(r=this.config.hooks).afterZoom)==null||i.call(r,this.scale,this.xOffset,this.yOffset),(o=this.simulation)==null||o.restart()}applyZoom(){J8e({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=tNe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function OA({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function FNe(e){return{...e}}function sF(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const $Ne={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},TNe={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},kNe=["id","checked","onChange"],LNe=["for"],BNe=pe("div",{"flex-auto":""},null,-1),ONe=it({__name:"ViewModuleGraph",props:{graph:{}},setup(e){const t=e,{graph:r}=oT(t),i=Xe(),o=Xe(!1),a=Xe(),c=Xe();ig(()=>{o.value===!1&&setTimeout(()=>a.value=void 0,300)},{flush:"post"}),Ca(()=>{p()}),og(()=>{var y;(y=c.value)==null||y.shutdown()}),jt(r,p);function h(y,m){var w;(w=c.value)==null||w.filterNodesByType(m,y)}function d(y){a.value=y,o.value=!0}function p(){var y;(y=c.value)==null||y.shutdown(),!(!r.value||!i.value)&&(c.value=new SNe(i.value,r.value,Q8e({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:m,newWidth:w})=>m===0&&w===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:JS.Arrow(2),modifiers:{node:g},positionInitializer:r.value.nodes.length>1?O0.Randomized:O0.Centered,zoom:{min:.5,max:2}})))}function g(y){if(Yn)return;const m=x=>x.button===0;let w=0,$=0,B=0;y.on("pointerdown",(x,C)=>{C.type!=="external"&&(!C.x||!C.y||!m(x)||(w=C.x,$=C.y,B=Date.now()))}).on("pointerup",(x,C)=>{if(C.type==="external"||!C.x||!C.y||!m(x)||Date.now()-B>500)return;const S=C.x-w,N=C.y-$;S**2+N**2<100&&d(C.id)})}return(y,m)=>{var C;const w=Pa,$=FBe,B=vBe,x=ro("tooltip");return de(),$e("div",$Ne,[pe("div",null,[pe("div",TNe,[(de(!0),$e(dt,null,An((C=Y(c))==null?void 0:C.nodeTypes.sort(),S=>{var N;return de(),$e("div",{key:S,flex:"~ gap-1","items-center":"","select-none":""},[pe("input",{id:`type-${S}`,type:"checkbox",checked:(N=Y(c))==null?void 0:N.nodeTypeFilter.includes(S),onChange:L=>h(S,L.target.checked)},null,40,kNe),pe("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${S}`,"border-b-2":"",style:zr({"border-color":`var(--color-node-${S})`})},Je(S)+" Modules",13,LNe)])}),128)),BNe,pe("div",null,[mr(ze(w,{icon:"i-carbon-reset",onClick:p},null,512),[[x,"Reset",void 0,{bottom:!0}]])])])]),pe("div",{ref_key:"el",ref:i},null,512),ze(B,{modelValue:Y(o),"onUpdate:modelValue":m[1]||(m[1]=S=>Ot(o)?o.value=S:null),direction:"right"},{default:Ye(()=>[Y(a)?(de(),Ze(ET,{key:0},{default:Ye(()=>[ze($,{id:Y(a),onClose:m[0]||(m[0]=S=>o.value=!1)},null,8,["id"])]),_:1})):nt("",!0)]),_:1},8,["modelValue"])])}}});const PNe={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},NNe={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},INe={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},RNe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},MNe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},zNe={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},fm=it({__name:"StatusIcon",props:{task:{}},setup(e){return(t,r)=>{var o,a,c;const i=ro("tooltip");return((o=t.task.result)==null?void 0:o.state)==="pass"?(de(),$e("div",PNe)):Y(qh)(t.task)?mr((de(),$e("div",NNe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):((a=t.task.result)==null?void 0:a.state)==="fail"?(de(),$e("div",INe)):t.task.mode==="todo"?mr((de(),$e("div",RNe,null,512)),[[i,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((c=t.task.result)==null?void 0:c.state)==="skip"?mr((de(),$e("div",MNe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(de(),$e("div",zNe))}}});function UNe(e){const t=new Map,r=new Map,i=[];for(;;){let o=0;if(e.forEach((a,c)=>{var g;const{splits:h,finished:d}=a;if(d){o++;const{raw:y,candidate:m}=a;t.set(y,m);return}if(h.length===0){a.finished=!0;return}const p=h[0];r.has(p)?(a.candidate+=a.candidate===""?p:`/${p}`,(g=r.get(p))==null||g.push(c),h.shift()):(r.set(p,[c]),i.push(c))}),i.forEach(a=>{const c=e[a],h=c.splits.shift();c.candidate+=c.candidate===""?h:`/${h}`}),r.forEach(a=>{if(a.length===1){const c=a[0];e[c].finished=!0}}),r.clear(),i.length=0,o===e.length)break}return t}function HNe(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 qNe(e){const t=e.map(i=>HNe(i)),r=UNe(t);return t.map(({raw:i,id:o})=>sF({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(i)??""},isFocused:!1,id:o,type:"external"}))}function jNe(e,t){return sF({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 VNe(e,t){if(!e)return OA({});const r=qNe(e.externalized),i=e.inlined.map(h=>jNe(h,h===t))??[],o=[...r,...i],a=Object.fromEntries(o.map(h=>[h.id,h])),c=Object.entries(e.graph).flatMap(([h,d])=>d.map(p=>{const g=a[h],y=a[p];if(!(g===void 0||y===void 0))return FNe({source:g,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return OA({nodes:o,links:c})}const WNe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},GNe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},KNe={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},XNe={class:"flex text-lg"},QNe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},YNe={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},ZNe={key:0,"flex-1":""},JNe=it({__name:"FileDetails",setup(e){const t=Xe({externalized:[],graph:{},inlined:[]}),r=Xe({nodes:[],links:[]}),i=Xe(!1),o=Xe(!1);LW(Nt,async(p,g)=>{p&&p.filepath!==(g==null?void 0:g.filepath)&&(t.value=await sr.rpc.getModuleGraph(p.filepath),r.value=VNe(t.value,p.filepath))},{debounce:100,immediate:!0});function a(){var g;const p=(g=Nt.value)==null?void 0:g.filepath;p&&fetch(`/__open-in-editor?file=${encodeURIComponent(p)}`)}function c(p){p==="graph"&&(o.value=!0),zn.value=p}const h=Ae(()=>{var p;return((p=tS.value)==null?void 0:p.reduce((g,{size:y})=>g+y,0))??0});function d(p){i.value=p}return(p,g)=>{var S,N;const y=fm,m=Pa,w=ONe,$=gBe,B=aBe,x=JLe,C=ro("tooltip");return Y(Nt)?(de(),$e("div",WNe,[pe("div",null,[pe("div",GNe,[ze(y,{task:Y(Nt)},null,8,["task"]),pe("div",KNe,Je((S=Y(Nt))==null?void 0:S.filepath),1),pe("div",XNe,[Y(Yn)?nt("",!0):mr((de(),Ze(m,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((N=Y(Nt))!=null&&N.filepath),onClick:a},null,8,["disabled"])),[[C,"Open in editor",void 0,{bottom:!0}]])])]),pe("div",QNe,[pe("button",{"tab-button":"",class:yt({"tab-button-active":Y(zn)==null}),"data-testid":"btn-report",onClick:g[0]||(g[0]=L=>c(null))}," Report ",2),pe("button",{"tab-button":"","data-testid":"btn-graph",class:yt({"tab-button-active":Y(zn)==="graph"}),onClick:g[1]||(g[1]=L=>c("graph"))}," Module Graph ",2),Y(Yn)?nt("",!0):(de(),$e("button",{key:0,"tab-button":"","data-testid":"btn-code",class:yt({"tab-button-active":Y(zn)==="editor"}),onClick:g[2]||(g[2]=L=>c("editor"))},Je(Y(i)?"* ":"")+"Code ",3)),pe("button",{"tab-button":"","data-testid":"btn-console",class:yt({"tab-button-active":Y(zn)==="console",op20:Y(zn)!=="console"&&Y(h)===0}),onClick:g[3]||(g[3]=L=>c("console"))}," Console ("+Je(Y(h))+") ",3)])]),pe("div",YNe,[Y(o)?(de(),$e("div",ZNe,[mr(ze(w,{graph:Y(r),"data-testid":"graph"},null,8,["graph"]),[[Wp,Y(zn)==="graph"]])])):nt("",!0),Y(zn)==="editor"?(de(),Ze($,{key:Y(Nt).filepath,file:Y(Nt),"data-testid":"editor",onDraft:d},null,8,["file"])):Y(zn)==="console"?(de(),Ze(B,{key:2,file:Y(Nt),"data-testid":"console"},null,8,["file"])):Y(zn)?nt("",!0):(de(),Ze(x,{key:3,file:Y(Nt),"data-testid":"report"},null,8,["file"]))])])):nt("",!0)}}}),eIe=["open"],tIe=pe("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),rIe=pe("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),nIe=it({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Xe(!0);return(r,i)=>(de(),$e("div",{open:Y(t),class:"details-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[pe("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:yt(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[tIe,Sn(r.$slots,"summary",{open:Y(t)}),rIe],2),Sn(r.$slots,"default")],40,eIe))}});const iIe={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},sIe=["text"],oIe={"text-sm":"",truncate:"","font-light":""},aIe={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},uIe=it({__name:"TaskItem",props:{task:{}},setup(e){const t=e,r=Ae(()=>{const{result:i}=t.task;return i&&Math.round(i.duration||0)});return(i,o)=>{var c,h;const a=fm;return i.task?(de(),$e("div",iIe,[ze(a,{task:i.task,"mr-2":""},null,8,["task"]),pe("div",{flex:"","items-end":"","gap-2":"",text:((h=(c=i.task)==null?void 0:c.result)==null?void 0:h.state)==="fail"?"red-500":""},[pe("span",oIe,Je(i.task.name),1),typeof Y(r)=="number"?(de(),$e("span",aIe,Je(Y(r)>0?Y(r):"< 1")+"ms ",1)):nt("",!0)],8,sIe)])):nt("",!0)}}});function lIe(e){return Object.hasOwnProperty.call(e,"tasks")}function oF(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}const cIe={key:1},fIe={inheritAttrs:!1},hIe=it({...fIe,__name:"TaskTree",props:{task:{},indent:{default:0},nested:{type:Boolean,default:!1},search:{},onItemClick:{}},setup(e){return(t,r)=>{const i=uIe,o=Qs("TaskTree",!0);return de(),$e(dt,null,[!t.search||Y(oF)(t.task.name,t.search)?(de(),Ze(i,cs({key:0},t.$attrs,{task:t.task,style:{paddingLeft:`${t.indent*.75+1}rem`},onClick:r[0]||(r[0]=a=>t.onItemClick&&t.onItemClick(t.task))}),null,16,["task","style"])):nt("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(de(),$e("div",cIe,[(de(!0),$e(dt,null,An(t.task.tasks,a=>(de(),Ze(o,{key:a.id,task:a,nested:t.nested,indent:t.indent+1,search:t.search,"on-item-click":t.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):nt("",!0)],64)}}}),dIe={h:"full",flex:"~ col"},pIe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},gIe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},vIe=pe("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),mIe=["op"],yIe={class:"scrolls","flex-auto":"","py-1":""},bIe={"text-red5":""},wIe={"text-yellow5":""},DIe={"text-green5":""},AIe={class:"text-purple5:50"},EIe={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},xIe=pe("div",{op30:""}," No matched test ",-1),CIe={inheritAttrs:!1},aF=it({...CIe,__name:"TasksList",props:{tasks:{},indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{}},emits:["run"],setup(e,{emit:t}){const r=e,i=Xe(""),o=Xe(),a=Ae(()=>i.value.trim()!=="");function c(x,C){let S=!1;for(let N=0;N<x.length;N++){const L=x[N];if(oF(L.name,C)){S=!0;break}if(lIe(L)&&L.tasks&&(S=c(L.tasks,C),S))break}return S}const h=Ae(()=>i.value.trim()?r.tasks.filter(x=>c([x],i.value)):r.tasks),d=Ae(()=>a.value?h.value.map(x=>If(x.id)).filter(Boolean):[]),p=Ae(()=>h.value.filter(x=>{var C;return((C=x.result)==null?void 0:C.state)==="fail"})),g=Ae(()=>h.value.filter(x=>{var C;return((C=x.result)==null?void 0:C.state)==="pass"})),y=Ae(()=>h.value.filter(x=>x.mode==="skip"||x.mode==="todo")),m=Ae(()=>h.value.filter(x=>!p.value.includes(x)&&!g.value.includes(x)&&!y.value.includes(x))),w=DW(m,250);function $(x){var C;i.value="",x&&((C=o.value)==null||C.focus())}const B=Ae(()=>i.value==="");return(x,C)=>{const S=Pa,N=hIe,L=nIe,T=ro("tooltip");return de(),$e("div",dIe,[pe("div",null,[pe("div",pIe,[Sn(x.$slots,"header",{filteredTests:Y(a)?Y(d):void 0})]),pe("div",gIe,[vIe,mr(pe("input",{ref_key:"searchBox",ref:o,"onUpdate:modelValue":C[0]||(C[0]=R=>Ot(i)?i.value=R:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:Y(i).length?"100":"50",onKeydown:[C[1]||(C[1]=Vp(R=>$(!1),["esc"])),C[2]||(C[2]=Vp(R=>t("run",Y(a)?Y(d):void 0),["enter"]))]},null,40,mIe),[[Wk,Y(i)]]),mr(ze(S,{disabled:Y(B),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=R=>$(!0))},null,8,["disabled"]),[[T,"Clear search",void 0,{bottom:!0}]])])]),pe("div",yIe,[x.groupByType?(de(),$e(dt,{key:0},[Y(p).length?(de(),Ze(L,{key:0},{summary:Ye(()=>[pe("div",bIe," FAIL ("+Je(Y(p).length)+") ",1)]),default:Ye(()=>[(de(!0),$e(dt,null,An(Y(p),R=>(de(),Ze(N,{key:R.id,task:R,nested:x.nested,search:Y(i),class:yt(Y(Vn)===R.id?"bg-active":""),"on-item-click":x.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0),Y(m).length||Y(Xu)==="running"?(de(),Ze(L,{key:1},{summary:Ye(()=>[pe("div",wIe," RUNNING ("+Je(Y(w).length)+") ",1)]),default:Ye(()=>[(de(!0),$e(dt,null,An(Y(w),R=>(de(),Ze(N,{key:R.id,task:R,nested:x.nested,search:Y(i),class:yt(Y(Vn)===R.id?"bg-active":""),"on-item-click":x.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0),Y(g).length?(de(),Ze(L,{key:2},{summary:Ye(()=>[pe("div",DIe," PASS ("+Je(Y(g).length)+") ",1)]),default:Ye(()=>[(de(!0),$e(dt,null,An(Y(g),R=>(de(),Ze(N,{key:R.id,task:R,nested:x.nested,search:Y(i),class:yt(Y(Vn)===R.id?"bg-active":""),"on-item-click":x.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0),Y(y).length?(de(),Ze(L,{key:3},{summary:Ye(()=>[pe("div",AIe," SKIP ("+Je(Y(y).length)+") ",1)]),default:Ye(()=>[(de(!0),$e(dt,null,An(Y(y),R=>(de(),Ze(N,{key:R.id,task:R,nested:x.nested,search:Y(i),class:yt(Y(Vn)===R.id?"bg-active":""),"on-item-click":x.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0)],64)):(de(!0),$e(dt,{key:1},An(Y(h),R=>(de(),Ze(N,{key:R.id,task:R,nested:x.nested,search:Y(i),class:yt(Y(Vn)===R.id?"bg-active":""),"on-item-click":x.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),Y(a)&&Y(h).length===0?(de(),$e("div",EIe,[xIe,pe("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:C[4]||(C[4]=R=>$(!0))}," Clear ",32)])):nt("",!0)])])}}}),tl=Xe(),sa=Xe(!0),Da=Xe(!1),Vf=Xe(!0),Wf=Ae(()=>{var e;return(e=Tl.value)==null?void 0:e.coverage}),I0=Ae(()=>{var e,t,r;return(t=(e=Tl.value)==null?void 0:e.api)!=null&&t.port?(r=Wf.value)==null?void 0:r.enabled:!1}),zs=Ae(()=>I0.value&&Wf.value.reporter.map(([e])=>e).includes("html")),_Ie=Ae(()=>{if(zs.value){const e=`${window.location.protocol}//${window.location.hostname}:${Tl.value.api.port}`,t=Wf.value.reportsDirectory.lastIndexOf("/");return`${e}/${Wf.value.reportsDirectory.slice(t+1)}/index.html`}});jt(Xu,e=>{Vf.value=e==="running"},{immediate:!0});function SIe(){const e=Vn.value;if(e&&e.length>0){const t=If(e);t?(tl.value=t,sa.value=!1,Da.value=!1):BW(()=>sr.state.getFiles(),()=>{tl.value=If(e),sa.value=!1,Da.value=!1})}return sa}function $p(e){sa.value=e,Da.value=!1,e&&(tl.value=void 0,Vn.value="")}function FIe(){Da.value=!0,sa.value=!1,tl.value=void 0,Vn.value=""}const $Ie={key:0,"h-full":""},TIe={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},kIe={class:"flex text-lg"},LIe=it({__name:"Suites",setup(e){const t=Ae(()=>{var a;return(a=Nt.value)==null?void 0:a.name.split(/\//g).pop()}),r=Ae(()=>{var a,c;return((a=Nt.value)==null?void 0:a.tasks)&&qh((c=Nt.value)==null?void 0:c.tasks)});function i(){return Nt.value&&sr.rpc.updateSnapshot(Nt.value)}async function o(){zs.value&&(Vf.value=!0,await Ci()),await UG()}return(a,c)=>{const h=fm,d=Pa,p=aF,g=ro("tooltip");return Y(Nt)?(de(),$e("div",$Ie,[ze(p,{tasks:Y(Nt).tasks,nested:!0},{header:Ye(()=>[ze(h,{"mx-1":"",task:Y(Nt)},null,8,["task"]),pe("span",TIe,Je(Y(t)),1),pe("div",kIe,[Y(r)&&!Y(Yn)?mr((de(),Ze(d,{key:0,icon:"i-carbon-result-old",onClick:c[0]||(c[0]=y=>i())},null,512)),[[g,`Update failed snapshot(s) of ${Y(Nt).name}`,void 0,{bottom:!0}]]):nt("",!0),Y(Yn)?nt("",!0):mr((de(),Ze(d,{key:1,icon:"i-carbon-play",onClick:c[1]||(c[1]=y=>o())},null,512)),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):nt("",!0)}}}),BIe={h:"full",flex:"~ col"},OIe=pe("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[pe("div",{class:"i-carbon:folder-details-reference"}),pe("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),PIe={"flex-auto":"","py-1":"","bg-white":""},NIe=["src"],IIe=it({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(de(),$e("div",BIe,[OIe,pe("div",PIe,[pe("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,NIe)])]))}});const Gf=Ae(()=>Hr.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),Kf=Ae(()=>Hr.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),hm=Ae(()=>Hr.value.filter(e=>e.mode==="skip"||e.mode==="todo"));Ae(()=>Hr.value.filter(e=>!Gf.value.includes(e)&&!Kf.value.includes(e)&&!hm.value.includes(e)));Ae(()=>hm.value.filter(e=>e.mode==="skip"));const PA=Ae(()=>Hr.value.filter(qh));Ae(()=>hm.value.filter(e=>e.mode==="todo"));const RIe=Ae(()=>Xu.value==="idle"),Ol=Ae(()=>dm(Hr.value)),uF=Ae(()=>Ol.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),lF=Ae(()=>Ol.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),cF=Ae(()=>Ol.value.filter(e=>e.mode==="skip"||e.mode==="todo")),MIe=Ae(()=>cF.value.filter(e=>e.mode==="skip")),zIe=Ae(()=>cF.value.filter(e=>e.mode==="todo"));Ae(()=>uF.value.length+lF.value.length);const UIe=Ae(()=>{const e=dm(Ol.value).reduce((t,r)=>{var i;return(i=r.result)!=null&&i.duration&&(t+=r.result.duration),t},0);return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`});function HIe(e){return e=e||[],Array.isArray(e)?e:[e]}function NA(e){return e.type==="test"||e.type==="benchmark"||e.type==="typecheck"}function dm(e){return HIe(e).flatMap(t=>NA(t)?[t]:t.tasks.flatMap(r=>NA(r)?[r]:dm(r)))}const ei=e=>(hE("data-v-6679a536"),e=e(),dE(),e),qIe={"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:""},jIe=ei(()=>pe("div",{"i-carbon-document":""},null,-1)),VIe=ei(()=>pe("div",null,"Files",-1)),WIe={class:"number","data-testid":"num-files"},GIe=ei(()=>pe("div",{"i-carbon-checkmark":""},null,-1)),KIe=ei(()=>pe("div",null,"Pass",-1)),XIe={class:"number"},QIe=ei(()=>pe("div",{"i-carbon-close":""},null,-1)),YIe=ei(()=>pe("div",null," Fail ",-1)),ZIe={class:"number","text-red5":""},JIe=ei(()=>pe("div",{"i-carbon-compare":""},null,-1)),eRe=ei(()=>pe("div",null," Snapshot Fail ",-1)),tRe={class:"number","text-red5":""},rRe=ei(()=>pe("div",{"i-carbon-timer":""},null,-1)),nRe=ei(()=>pe("div",null,"Time",-1)),iRe={class:"number","data-testid":"run-time"},sRe=it({__name:"TestFilesEntry",setup(e){return(t,r)=>(de(),$e("div",qIe,[jIe,VIe,pe("div",WIe,Je(Y(Hr).length),1),Y(Kf).length?(de(),$e(dt,{key:0},[GIe,KIe,pe("div",XIe,Je(Y(Kf).length),1)],64)):nt("",!0),Y(Gf).length?(de(),$e(dt,{key:1},[QIe,YIe,pe("div",ZIe,Je(Y(Gf).length),1)],64)):nt("",!0),Y(PA).length?(de(),$e(dt,{key:2},[JIe,eRe,pe("div",tRe,Je(Y(PA).length),1)],64)):nt("",!0),rRe,nRe,pe("div",iRe,Je(Y(UIe)),1)]))}});const oRe=no(sRe,[["__scopeId","data-v-6679a536"]]),aRe={"p-2":"","text-center":"",flex:""},uRe={"text-4xl":"","min-w-2em":""},lRe={"text-md":""},cRe=it({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(e){return(t,r)=>(de(),$e("div",aRe,[pe("div",null,[pe("div",uRe,[Sn(t.$slots,"body")]),pe("div",lRe,[Sn(t.$slots,"header")])])]))}}),fRe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},hRe=it({__name:"TestsEntry",setup(e){const t=Ae(()=>Ol.value.length),r=Ae(()=>lF.value.length),i=Ae(()=>uF.value.length),o=Ae(()=>MIe.value.length),a=Ae(()=>zIe.value.length);return(c,h)=>{const d=cRe;return de(),$e("div",fRe,[ze(d,{"text-green5":"","data-testid":"pass-entry"},{header:Ye(()=>[_r(" Pass ")]),body:Ye(()=>[_r(Je(Y(r)),1)]),_:1}),ze(d,{class:yt({"text-red5":Y(i),op50:!Y(i)}),"data-testid":"fail-entry"},{header:Ye(()=>[_r(" Fail ")]),body:Ye(()=>[_r(Je(Y(i)),1)]),_:1},8,["class"]),Y(o)?(de(),Ze(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Ye(()=>[_r(" Skip ")]),body:Ye(()=>[_r(Je(Y(o)),1)]),_:1})):nt("",!0),Y(a)?(de(),Ze(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Ye(()=>[_r(" Todo ")]),body:Ye(()=>[_r(Je(Y(a)),1)]),_:1})):nt("",!0),ze(d,{tail:!0,"data-testid":"total-entry"},{header:Ye(()=>[_r(" Total ")]),body:Ye(()=>[_r(Je(Y(t)),1)]),_:1})])}}}),dRe={},pRe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},gRe={"aria-labelledby":"tests",m:"y-4 x-2"};function vRe(e,t){const r=hRe,i=oRe;return de(),$e("div",pRe,[pe("section",gRe,[ze(r)]),ze(i)])}const mRe=no(dRe,[["render",vRe]]),yRe={},bRe={h:"full",flex:"~ col"},wRe=pe("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[pe("div",{class:"i-carbon-dashboard"}),pe("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),DRe={class:"scrolls","flex-auto":"","py-1":""};function ARe(e,t){const r=mRe;return de(),$e("div",bRe,[wRe,pe("div",DRe,[ze(r)])])}const ERe=no(yRe,[["render",ARe]]),xRe=""+new URL("../favicon.svg",import.meta.url).href,CRe=pe("img",{"w-6":"","h-6":"",src:xRe,alt:"Vitest logo"},null,-1),_Re=pe("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),SRe={class:"flex text-lg"},FRe=pe("div",{class:"i-carbon:folder-off ma"},null,-1),$Re=pe("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[pe("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),pe("div",null,"Coverage enabled but missing html reporter."),pe("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),TRe=it({__name:"Navigation",setup(e){const t=Ae(()=>Hr.value&&qh(Hr.value));function r(){return sr.rpc.updateSnapshot()}function i(c){Vn.value=c.id,tl.value=If(c.id),$p(!1)}const o=Ae(()=>Wh.value?"light":"dark");async function a(c){zs.value&&(Vf.value=!0,await Ci(),zs.value&&($p(!0),await Ci())),await eA(c)}return(c,h)=>{const d=Pa,p=aF,g=ro("tooltip");return de(),Ze(p,{border:"r base",tasks:Y(Hr),"on-item-click":i,"group-by-type":!0,onRun:a},{header:Ye(({filteredTests:y})=>[CRe,_Re,pe("div",SRe,[mr(ze(d,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=m=>Y($p)(!0))},null,512),[[Wp,Y(I0)&&!Y(zs)||!Y(sa)],[g,"Dashboard",void 0,{bottom:!0}]]),Y(I0)&&!Y(zs)?(de(),Ze(Y(d3),{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:Ye(()=>[$Re]),default:Ye(()=>[FRe]),_:1})):nt("",!0),Y(zs)?mr((de(),Ze(d,{key:1,disabled:Y(Vf),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=m=>Y(FIe)())},null,8,["disabled"])),[[Wp,!Y(Da)],[g,"Coverage",void 0,{bottom:!0}]]):nt("",!0),Y(t)&&!Y(Yn)?mr((de(),Ze(d,{key:2,icon:"i-carbon:result-old",onClick:h[2]||(h[2]=m=>r())},null,512)),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):nt("",!0),Y(Yn)?nt("",!0):mr((de(),Ze(d,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:m=>Y(eA)(y)},null,8,["disabled","onClick"])),[[g,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),mr(ze(d,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=m=>Y(GLe)())},null,512),[[g,`Toggle to ${Y(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),kRe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},LRe=it({__name:"ProgressBar",setup(e){const{width:t}=bG(),r=Ae(()=>Hr.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":RIe.value?null:"in-progress"),i=Ae(()=>Hr.value.length),o=Ae(()=>Kf.value.length),a=Ae(()=>Gf.value.length),c=Ae(()=>{const g=Y(i);return g>0?t.value*o.value/g:0}),h=Ae(()=>{const g=Y(i);return g>0?t.value*a.value/g:0}),d=Ae(()=>Y(i)-a.value-o.value),p=Ae(()=>{const g=Y(i);return g>0?t.value*d.value/g:0});return(g,y)=>(de(),$e("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:yt(Y(r))},[pe("div",kRe,[pe("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:yt(Y(r)),style:zr(`width: ${Y(h)}px;`)},"   ",6),pe("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:yt(Y(r)),style:zr(`left: ${Y(h)}px; width: ${Y(c)}px;`)},"   ",6),pe("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:yt(Y(r)),style:zr(`left: ${Y(c)+Y(h)}px; width: ${Y(p)}px;`)},"   ",6)])],2))}});const BRe=no(LRe,[["__scopeId","data-v-f967c1fe"]]),IA={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((i,o)=>(i.size=o===t?i.max:i.min,o!==t&&(r+=i.min),i)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:r.prevPanesSize),o=100-(this.pushOtherPanes?0:r.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),o),i);let c=[t,t+1],h=this.panes[c[0]]||null,d=this.panes[c[1]]||null;const p=h.max<100&&a>=h.max+r.prevPanesSize,g=d.max<100&&a<=100-(d.max+this.sumNextPanesSize(t+1));if(p||g){p?(h.size=h.max,d.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-d.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),d.size=d.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,a);if(!y)return;({sums:r,panesToResize:c}=y),h=this.panes[c[0]]||null,d=this.panes[c[1]]||null}h!==null&&(h.size=Math.min(Math.max(a-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-a-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,i=[r,r+1];return t<e.prevPanesSize+this.panes[i[0]].min&&(i[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,i[0]<r&&this.panes.forEach((o,a)=>{a>i[0]&&a<=r&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((o,a)=>{a>0&&a<=r&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,i[1]>r+1&&this.panes.forEach((o,a)=>{a>r&&a<i[1]&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),e.nextPanesSize=this.sumNextPanesSize(i[1]-1),i[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((o,a)=>{a<this.panesCount-1&&a>=r+1&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,r,i)=>t+(i<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,i)=>t+(i>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const i=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),r||(o.onmousedown=a=>this.onMouseDown(a,i),typeof window<"u"&&"ontouchstart"in window&&(o.ontouchstart=a=>this.onMouseDown(a,i)),o.onclick=a=>this.onSplitterClick(a,i+1)),this.dblClickSplitter&&(o.ondblclick=a=>this.onSplitterDblClick(a,i+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([i,o])=>r[i]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(o=>(o.className.includes("splitpanes__pane")&&t++,o===e.$el));const r=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(i)?100:i,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((o,a)=>o.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(i=>i.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((i,o)=>i.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],i=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&i.push(o.id)}),t>.1&&this.readjustSizes(t,r,i)},initialPanesSizing(){let e=100;const t=[],r=[];let i=0;this.panes.forEach(a=>{e-=a.size,a.size!==null&&i++,a.size>=a.max&&t.push(a.id),a.size<=a.min&&r.push(a.id)});let o=100;e>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(e/(this.panesCount-i),a.max),a.min)),o-=a.size}),o>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,i=0;const o=[],a=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(c=>{i-=c.size,c.size>=c.max&&o.push(c.id),c.size<=c.min&&a.push(c.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(c=>{e&&e.givenSize!==null&&e.id===c.id||(c.size=Math.max(Math.min(r,c.max),c.min)),i-=c.size,c.size>=c.max&&o.push(c.id),c.size<=c.min&&a.push(c.id)}),i>.1&&this.readjustSizes(i,o,a))},readjustSizes(e,t,r){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-r.length),this.panes.forEach((o,a)=>{if(e>0&&!t.includes(o.id)){const c=Math.max(Math.min(o.size+i,o.max),o.min),h=c-o.size;e-=h,o.size=c}else if(!r.includes(o.id)){const c=Math.max(Math.min(o.size+i,o.max),o.min),h=c-o.size;e-=h,o.size=c}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?i=>this.onSplitterDblClick(i,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return il("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},ORe=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},PRe={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function NRe(e,t,r,i,o,a){return de(),$e("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=c=>a.onPaneClick(c,e._.uid)),style:zr(e.style)},[Sn(e.$slots,"default")],4)}const Kc=ORe(PRe,[["render",NRe]]),IRe={"h-screen":"","w-screen":"",overflow:"hidden"},RRe=it({__name:"index",setup(e){const t=SIe(),r=Yr([33,67]),i=Yr([33,67]),o=zD(h=>{h.forEach((d,p)=>{r[p]=d.size})},0),a=zD(h=>{h.forEach((d,p)=>{i[p]=d.size})},0);function c(){const h=window.innerWidth,d=Math.min(h/3,300);r[0]=100*d/h,r[1]=100-r[0],i[0]=100*d/(h-d),i[1]=100-i[0]}return(h,d)=>{const p=BRe,g=TRe,y=ERe,m=IIe,w=LIe,$=JNe,B=jG;return de(),$e(dt,null,[ze(p),pe("div",IRe,[ze(Y(IA),{class:"pt-4px",onResized:Y(o),onReady:c},{default:Ye(()=>[ze(Y(Kc),{size:Y(r)[0]},{default:Ye(()=>[ze(g)]),_:1},8,["size"]),ze(Y(Kc),{size:Y(r)[1]},{default:Ye(()=>[ze(fg,null,{default:Ye(()=>[Y(t)?(de(),Ze(y,{key:"summary"})):Y(Da)?(de(),Ze(m,{key:"coverage",src:Y(_Ie)},null,8,["src"])):(de(),Ze(Y(IA),{key:"detail",onResized:Y(a)},{default:Ye(()=>[ze(Y(Kc),{size:Y(i)[0]},{default:Ye(()=>[ze(w)]),_:1},8,["size"]),ze(Y(Kc),{size:Y(i)[1]},{default:Ye(()=>[ze($)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),ze(B)],64)}}}),MRe=[{name:"index",path:"/",component:RRe,props:!0}];const zRe={tooltip:h3};yx.options.instantMove=!0;yx.options.distance=10;function URe(){return tB({history:mL(gW),routes:MRe})}const HRe=[URe],pm=RE(Jk);HRe.forEach(e=>{pm.use(e())});Object.entries(zRe).forEach(([e,t])=>{pm.directive(e,t)});pm.mount("#app");