@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.
- package/dist/client/__vitest__/assets/index-22e8477a.js +43 -0
- package/dist/client/__vitest__/assets/{index-412667a2.css → index-8c3757f8.css} +1 -1
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/assets/{index-5fc20d62.js → index-0f520297.js} +38 -15
- package/dist/client/index.html +1 -1
- package/dist/index.js +3 -7
- package/package.json +7 -7
- package/dist/client/__vitest__/assets/index-ee62cb59.js +0 -43
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var t$=Object.defineProperty;var n$=(e,t,n)=>t in e?t$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fi=(e,t,n)=>(n$(e,typeof t!="symbol"?t+"":t,n),n);function r$(e,t){for(var n=0;n<t.length;n++){const i=t[n];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 n(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=n(o);fetch(o.href,a)}})();function N0(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o<i.length;o++)n[i[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Un(e){if(qe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=Wt(i)?a$(i):Un(i);if(o)for(const a in o)t[a]=o[a]}return t}else{if(Wt(e))return e;if(St(e))return e}}const i$=/;(?![^(]*\))/g,s$=/:([^]+)/,o$=/\/\*.*?\*\//gs;function a$(e){const t={};return e.replace(o$,"").split(i$).forEach(n=>{if(n){const i=n.split(s$);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function yt(e){let t="";if(Wt(e))t=e;else if(qe(e))for(let n=0;n<e.length;n++){const i=yt(e[n]);i&&(t+=i+" ")}else if(St(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const u$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",l$=N0(u$);function TA(e){return!!e||e===""}const Je=e=>Wt(e)?e:e==null?"":qe(e)||St(e)&&(e.toString===OA||!Ve(e.toString))?JSON.stringify(e,kA,2):String(e),kA=(e,t)=>t&&t.__v_isRef?kA(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:LA(t)?{[`Set(${t.size})`]:[...t.values()]}:St(t)&&!qe(t)&&!PA(t)?String(t):t,Ct={},Xo=[],_r=()=>{},c$=()=>!1,f$=/^on[^a-z]/,Gf=e=>f$.test(e),I0=e=>e.startsWith("onUpdate:"),fn=Object.assign,R0=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h$=Object.prototype.hasOwnProperty,ot=(e,t)=>h$.call(e,t),qe=Array.isArray,Qo=e=>Kf(e)==="[object Map]",LA=e=>Kf(e)==="[object Set]",Ve=e=>typeof e=="function",Wt=e=>typeof e=="string",M0=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",BA=e=>St(e)&&Ve(e.then)&&Ve(e.catch),OA=Object.prototype.toString,Kf=e=>OA.call(e),d$=e=>Kf(e).slice(8,-1),PA=e=>Kf(e)==="[object Object]",z0=e=>Wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xc=N0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},p$=/-(\w)/g,Qr=Xf(e=>e.replace(p$,(t,n)=>n?n.toUpperCase():"")),g$=/\B([A-Z])/g,ro=Xf(e=>e.replace(g$,"-$1").toLowerCase()),Qf=Xf(e=>e.charAt(0).toUpperCase()+e.slice(1)),jd=Xf(e=>e?`on${Qf(e)}`:""),Iu=(e,t)=>!Object.is(e,t),Qc=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},pf=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$p=e=>{const t=parseFloat(e);return isNaN(t)?e:t},NA=e=>{const t=Wt(e)?Number(e):NaN;return isNaN(t)?e:t};let l1;const v$=()=>l1||(l1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Kn;class m${constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kn,!t&&Kn&&(this.index=(Kn.scopes||(Kn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Kn;try{return Kn=this,t()}finally{Kn=n}}}on(){Kn=this}off(){Kn=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].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 y$(e,t=Kn){t&&t.active&&t.effects.push(e)}function IA(){return Kn}function b$(e){Kn&&Kn.cleanups.push(e)}const U0=e=>{const t=new Set(e);return t.w=0,t.n=0,t},RA=e=>(e.w&fs)>0,MA=e=>(e.n&fs)>0,w$=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=fs},D$=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const o=t[i];RA(o)&&!MA(o)?o.delete(e):t[n++]=o,o.w&=~fs,o.n&=~fs}t.length=n}},gf=new WeakMap;let Cu=0,fs=1;const Tp=30;let Dr;const Ks=Symbol(""),kp=Symbol("");class H0{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,y$(this,i)}run(){if(!this.active)return this.fn();let t=Dr,n=us;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Dr,Dr=this,us=!0,fs=1<<++Cu,Cu<=Tp?w$(this):c1(this),this.fn()}finally{Cu<=Tp&&D$(this),fs=1<<--Cu,Dr=this.parent,us=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Dr===this?this.deferStop=!0:this.active&&(c1(this),this.onStop&&this.onStop(),this.active=!1)}}function c1(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let us=!0;const zA=[];function Ea(){zA.push(us),us=!1}function Ca(){const e=zA.pop();us=e===void 0?!0:e}function jn(e,t,n){if(us&&Dr){let i=gf.get(e);i||gf.set(e,i=new Map);let o=i.get(n);o||i.set(n,o=U0()),UA(o)}}function UA(e,t){let n=!1;Cu<=Tp?MA(e)||(e.n|=fs,n=!RA(e)):n=!e.has(Dr),n&&(e.add(Dr),Dr.deps.push(e))}function Ei(e,t,n,i,o,a){const c=gf.get(e);if(!c)return;let h=[];if(t==="clear")h=[...c.values()];else if(n==="length"&&qe(e)){const d=Number(i);c.forEach((p,g)=>{(g==="length"||g>=d)&&h.push(p)})}else switch(n!==void 0&&h.push(c.get(n)),t){case"add":qe(e)?z0(n)&&h.push(c.get("length")):(h.push(c.get(Ks)),Qo(e)&&h.push(c.get(kp)));break;case"delete":qe(e)||(h.push(c.get(Ks)),Qo(e)&&h.push(c.get(kp)));break;case"set":Qo(e)&&h.push(c.get(Ks));break}if(h.length===1)h[0]&&Lp(h[0]);else{const d=[];for(const p of h)p&&d.push(...p);Lp(U0(d))}}function Lp(e,t){const n=qe(e)?e:[...e];for(const i of n)i.computed&&f1(i);for(const i of n)i.computed||f1(i)}function f1(e,t){(e!==Dr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function A$(e,t){var n;return(n=gf.get(e))===null||n===void 0?void 0:n.get(t)}const x$=N0("__proto__,__v_isRef,__isVue"),HA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(M0)),E$=q0(),C$=q0(!1,!0),_$=q0(!0),h1=S$();function S$(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=at(this);for(let a=0,c=this.length;a<c;a++)jn(i,"get",a+"");const o=i[t](...n);return o===-1||o===!1?i[t](...n.map(at)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ea();const i=at(this)[t].apply(this,n);return Ca(),i}}),e}function F$(e){const t=at(this);return jn(t,"has",e),t.hasOwnProperty(e)}function q0(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?j$:GA:t?WA:VA).get(i))return i;const c=qe(i);if(!e){if(c&&ot(h1,o))return Reflect.get(h1,o,a);if(o==="hasOwnProperty")return F$}const h=Reflect.get(i,o,a);return(M0(o)?HA.has(o):x$(o))||(e||jn(i,"get",o),t)?h:Nt(h)?c&&z0(o)?h:h.value:St(h)?e?Zf(h):Zn(h):h}}const $$=qA(),T$=qA(!0);function qA(e=!1){return function(n,i,o,a){let c=n[i];if(ua(c)&&Nt(c)&&!Nt(o))return!1;if(!e&&(!vf(o)&&!ua(o)&&(c=at(c),o=at(o)),!qe(n)&&Nt(c)&&!Nt(o)))return c.value=o,!0;const h=qe(n)&&z0(i)?Number(i)<n.length:ot(n,i),d=Reflect.set(n,i,o,a);return n===at(a)&&(h?Iu(o,c)&&Ei(n,"set",i,o):Ei(n,"add",i,o)),d}}function k$(e,t){const n=ot(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&Ei(e,"delete",t,void 0),i}function L$(e,t){const n=Reflect.has(e,t);return(!M0(t)||!HA.has(t))&&jn(e,"has",t),n}function B$(e){return jn(e,"iterate",qe(e)?"length":Ks),Reflect.ownKeys(e)}const jA={get:E$,set:$$,deleteProperty:k$,has:L$,ownKeys:B$},O$={get:_$,set(e,t){return!0},deleteProperty(e,t){return!0}},P$=fn({},jA,{get:C$,set:T$}),j0=e=>e,Yf=e=>Reflect.getPrototypeOf(e);function vc(e,t,n=!1,i=!1){e=e.__v_raw;const o=at(e),a=at(t);n||(t!==a&&jn(o,"get",t),jn(o,"get",a));const{has:c}=Yf(o),h=i?j0:n?K0: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 n=this.__v_raw,i=at(n),o=at(e);return t||(e!==o&&jn(i,"has",e),jn(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function yc(e,t=!1){return e=e.__v_raw,!t&&jn(at(e),"iterate",Ks),Reflect.get(e,"size",e)}function d1(e){e=at(e);const t=at(this);return Yf(t).has.call(t,e)||(t.add(e),Ei(t,"add",e,e)),this}function p1(e,t){t=at(t);const n=at(this),{has:i,get:o}=Yf(n);let a=i.call(n,e);a||(e=at(e),a=i.call(n,e));const c=o.call(n,e);return n.set(e,t),a?Iu(t,c)&&Ei(n,"set",e,t):Ei(n,"add",e,t),this}function g1(e){const t=at(this),{has:n,get:i}=Yf(t);let o=n.call(t,e);o||(e=at(e),o=n.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return o&&Ei(t,"delete",e,void 0),a}function v1(){const e=at(this),t=e.size!==0,n=e.clear();return t&&Ei(e,"clear",void 0,void 0),n}function bc(e,t){return function(i,o){const a=this,c=a.__v_raw,h=at(c),d=t?j0:e?K0:Ru;return!e&&jn(h,"iterate",Ks),c.forEach((p,g)=>i.call(o,d(p),d(g),a))}}function wc(e,t,n){return function(...i){const o=this.__v_raw,a=at(o),c=Qo(a),h=e==="entries"||e===Symbol.iterator&&c,d=e==="keys"&&c,p=o[e](...i),g=n?j0:t?K0:Ru;return!t&&jn(a,"iterate",d?kp:Ks),{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 N$(){const e={get(a){return vc(this,a)},get size(){return yc(this)},has:mc,add:d1,set:p1,delete:g1,clear:v1,forEach:bc(!1,!1)},t={get(a){return vc(this,a,!1,!0)},get size(){return yc(this)},has:mc,add:d1,set:p1,delete:g1,clear:v1,forEach:bc(!1,!0)},n={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),n[a]=wc(a,!0,!1),t[a]=wc(a,!1,!0),i[a]=wc(a,!0,!0)}),[e,n,t,i]}const[I$,R$,M$,z$]=N$();function V0(e,t){const n=t?e?z$:M$:e?R$:I$;return(i,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(ot(n,o)&&o in i?n:i,o,a)}const U$={get:V0(!1,!1)},H$={get:V0(!1,!0)},q$={get:V0(!0,!1)},VA=new WeakMap,WA=new WeakMap,GA=new WeakMap,j$=new WeakMap;function V$(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function W$(e){return e.__v_skip||!Object.isExtensible(e)?0:V$(d$(e))}function Zn(e){return ua(e)?e:W0(e,!1,jA,U$,VA)}function G$(e){return W0(e,!1,P$,H$,WA)}function Zf(e){return W0(e,!0,O$,q$,GA)}function W0(e,t,n,i,o){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const c=W$(e);if(c===0)return e;const h=new Proxy(e,c===2?i:n);return o.set(e,h),h}function Yo(e){return ua(e)?Yo(e.__v_raw):!!(e&&e.__v_isReactive)}function ua(e){return!!(e&&e.__v_isReadonly)}function vf(e){return!!(e&&e.__v_isShallow)}function KA(e){return Yo(e)||ua(e)}function at(e){const t=e&&e.__v_raw;return t?at(t):e}function G0(e){return pf(e,"__v_skip",!0),e}const Ru=e=>St(e)?Zn(e):e,K0=e=>St(e)?Zf(e):e;function X0(e){us&&Dr&&(e=at(e),UA(e.dep||(e.dep=U0())))}function Q0(e,t){e=at(e);const n=e.dep;n&&Lp(n)}function Nt(e){return!!(e&&e.__v_isRef===!0)}function Ke(e){return XA(e,!1)}function _a(e){return XA(e,!0)}function XA(e,t){return Nt(e)?e:new K$(e,t)}class K${constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:at(t),this._value=n?t:Ru(t)}get value(){return X0(this),this._value}set value(t){const n=this.__v_isShallow||vf(t)||ua(t);t=n?t:at(t),Iu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ru(t),Q0(this))}}function Q(e){return Nt(e)?e.value:e}const X$={get:(e,t,n)=>Q(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Nt(o)&&!Nt(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function QA(e){return Yo(e)?e:new Proxy(e,X$)}class Q${constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>X0(this),()=>Q0(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Y$(e){return new Q$(e)}function Z$(e){const t=qe(e)?new Array(e.length):{};for(const n in e)t[n]=YA(e,n);return t}class J${constructor(t,n,i){this._object=t,this._key=n,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 A$(at(this._object),this._key)}}function YA(e,t,n){const i=e[t];return Nt(i)?i:new J$(e,t,n)}var ZA;class eT{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[ZA]=!1,this._dirty=!0,this.effect=new H0(t,()=>{this._dirty||(this._dirty=!0,Q0(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=at(this);return X0(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}ZA="__v_isReadonly";function tT(e,t,n=!1){let i,o;const a=Ve(e);return a?(i=e,o=_r):(i=e.get,o=e.set),new eT(i,o,a||!o,n)}function ls(e,t,n,i){let o;try{o=i?e(...i):e()}catch(a){nl(a,t,n)}return o}function lr(e,t,n,i){if(Ve(e)){const a=ls(e,t,n,i);return a&&BA(a)&&a.catch(c=>{nl(c,t,n)}),a}const o=[];for(let a=0;a<e.length;a++)o.push(lr(e[a],t,n,i));return o}function nl(e,t,n,i=!0){const o=t?t.vnode:null;if(t){let a=t.parent;const c=t.proxy,h=n;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}}nT(e,n,o,i)}function nT(e,t,n,i=!0){console.error(e)}let Mu=!1,Bp=!1;const mn=[];let Hr=0;const Zo=[];let vi=null,Rs=0;const JA=Promise.resolve();let Y0=null;function Ci(e){const t=Y0||JA;return e?t.then(this?e.bind(this):e):t}function rT(e){let t=Hr+1,n=mn.length;for(;t<n;){const i=t+n>>>1;zu(mn[i])<e?t=i+1:n=i}return t}function Z0(e){(!mn.length||!mn.includes(e,Mu&&e.allowRecurse?Hr+1:Hr))&&(e.id==null?mn.push(e):mn.splice(rT(e.id),0,e),ex())}function ex(){!Mu&&!Bp&&(Bp=!0,Y0=JA.then(rx))}function iT(e){const t=mn.indexOf(e);t>Hr&&mn.splice(t,1)}function tx(e){qe(e)?Zo.push(...e):(!vi||!vi.includes(e,e.allowRecurse?Rs+1:Rs))&&Zo.push(e),ex()}function m1(e,t=Mu?Hr+1:0){for(;t<mn.length;t++){const n=mn[t];n&&n.pre&&(mn.splice(t,1),t--,n())}}function nx(e){if(Zo.length){const t=[...new Set(Zo)];if(Zo.length=0,vi){vi.push(...t);return}for(vi=t,vi.sort((n,i)=>zu(n)-zu(i)),Rs=0;Rs<vi.length;Rs++)vi[Rs]();vi=null,Rs=0}}const zu=e=>e.id==null?1/0:e.id,sT=(e,t)=>{const n=zu(e)-zu(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function rx(e){Bp=!1,Mu=!0,mn.sort(sT);const t=_r;try{for(Hr=0;Hr<mn.length;Hr++){const n=mn[Hr];n&&n.active!==!1&&ls(n,null,14)}}finally{Hr=0,mn.length=0,nx(),Mu=!1,Y0=null,(mn.length||Zo.length)&&rx()}}function oT(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Ct;let o=n;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]||Ct;m&&(o=n.map(w=>Wt(w)?w.trim():w)),y&&(o=n.map($p))}let h,d=i[h=jd(t)]||i[h=jd(Qr(t))];!d&&a&&(d=i[h=jd(ro(t))]),d&&lr(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,lr(p,e,6,o)}}function ix(e,t,n=!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=ix(p,t,!0);g&&(h=!0,fn(c,g))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!a&&!h?(St(e)&&i.set(e,null),null):(qe(a)?a.forEach(d=>c[d]=null):fn(c,a),St(e)&&i.set(e,c),c)}function Jf(e,t){return!e||!Gf(t)?!1:(t=t.slice(2).replace(/Once$/,""),ot(e,t[0].toLowerCase()+t.slice(1))||ot(e,ro(t))||ot(e,t))}let cn=null,eh=null;function mf(e){const t=cn;return cn=e,eh=e&&e.type.__scopeId||null,t}function sx(e){eh=e}function ox(){eh=null}const aT=e=>Ye;function Ye(e,t=cn,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&F1(-1);const a=mf(t);let c;try{c=e(...o)}finally{mf(a),i._d&&F1(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function Vd(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[c],slots:h,attrs:d,emit:p,render:g,renderCache:y,data:m,setupState:w,ctx:$,inheritAttrs:L}=e;let E,C;const S=mf(e);try{if(n.shapeFlag&4){const B=o||i;E=wr(g.call(B,B,y,a,w,m,$)),C=d}else{const B=t;E=wr(B.length>1?B(a,{attrs:d,slots:h,emit:p}):B(a,null)),C=t.props?d:lT(d)}}catch(B){Tu.length=0,nl(B,e,1),E=Me(Hn)}let O=E;if(C&&L!==!1){const B=Object.keys(C),{shapeFlag:k}=O;B.length&&k&7&&(c&&B.some(I0)&&(C=cT(C,c)),O=hs(O,C))}return n.dirs&&(O=hs(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),E=O,mf(S),E}function uT(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Hu(i)){if(i.type!==Hn||i.children==="v-if"){if(t)return;t=i}}else return}return t}const lT=e=>{let t;for(const n in e)(n==="class"||n==="style"||Gf(n))&&((t||(t={}))[n]=e[n]);return t},cT=(e,t)=>{const n={};for(const i in e)(!I0(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function fT(e,t,n){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(n&&d>=0){if(d&1024)return!0;if(d&16)return i?y1(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]&&!Jf(p,m))return!0}}}else return(o||h)&&(!h||!h.$stable)?!0:i===c?!1:i?c?y1(i,c,p):!0:!!c;return!1}function y1(e,t,n){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]&&!Jf(n,a))return!0}return!1}function J0({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const hT=e=>e.__isSuspense,dT={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,a,c,h,d,p){e==null?gT(t,n,i,o,a,c,h,d,p):vT(e,t,n,i,o,c,h,d,p)},hydrate:mT,create:eg,normalize:yT},pT=dT;function Uu(e,t){const n=e.props&&e.props[t];Ve(n)&&n()}function gT(e,t,n,i,o,a,c,h,d){const{p,o:{createElement:g}}=d,y=g("div"),m=e.suspense=eg(e,o,i,t,y,n,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,n,i,null,a,c),Jo(m,e.ssFallback)):m.resolve()}function vT(e,t,n,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:L,isInFallback:E,isHydrating:C}=y;if(L)y.pendingBranch=m,qr(m,L)?(d(L,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():E&&(d($,w,n,i,o,null,a,c,h),Jo(y,w))):(y.pendingId++,C?(y.isHydrating=!1,y.activeBranch=L):p(L,o,y),y.deps=0,y.effects.length=0,y.hiddenContainer=g("div"),E?(d(null,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():(d($,w,n,i,o,null,a,c,h),Jo(y,w))):$&&qr(m,$)?(d($,m,n,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($&&qr(m,$))d($,m,n,i,o,y,a,c,h),Jo(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:O}=y;S>0?setTimeout(()=>{y.pendingId===O&&y.fallback(w)},S):S===0&&y.fallback(w)}}function eg(e,t,n,i,o,a,c,h,d,p,g=!1){const{p:y,m,um:w,n:$,o:{parentNode:L,remove:E}}=p,C=e.props?NA(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:c,container:i,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:g,isUnmounted:!1,effects:[],resolve(O=!1){const{vnode:B,activeBranch:k,pendingBranch:M,pendingId:U,effects:j,parentComponent:ne,container:oe}=S;if(S.isHydrating)S.isHydrating=!1;else if(!O){const P=k&&M.transition&&M.transition.mode==="out-in";P&&(k.transition.afterLeave=()=>{U===S.pendingId&&m(M,oe,F,0)});let{anchor:F}=S;k&&(F=$(k),w(k,ne,S,!0)),P||m(M,oe,F,0)}Jo(S,M),S.pendingBranch=null,S.isInFallback=!1;let Y=S.parent,z=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...j),z=!0;break}Y=Y.parent}z||tx(j),S.effects=[],Uu(B,"onResolve")},fallback(O){if(!S.pendingBranch)return;const{vnode:B,activeBranch:k,parentComponent:M,container:U,isSVG:j}=S;Uu(B,"onFallback");const ne=$(k),oe=()=>{S.isInFallback&&(y(null,O,U,ne,M,null,j,h,d),Jo(S,O))},Y=O.transition&&O.transition.mode==="out-in";Y&&(k.transition.afterLeave=oe),S.isInFallback=!0,w(k,M,null,!0),Y||oe()},move(O,B,k){S.activeBranch&&m(S.activeBranch,O,B,k),S.container=O},next(){return S.activeBranch&&$(S.activeBranch)},registerDep(O,B){const k=!!S.pendingBranch;k&&S.deps++;const M=O.vnode.el;O.asyncDep.catch(U=>{nl(U,O,0)}).then(U=>{if(O.isUnmounted||S.isUnmounted||S.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:j}=O;Up(O,U,!1),M&&(j.el=M);const ne=!M&&O.subTree.el;B(O,j,L(M||O.subTree.el),M?null:$(O.subTree),S,c,d),ne&&E(ne),J0(O,j.el),k&&--S.deps===0&&S.resolve()})},unmount(O,B){S.isUnmounted=!0,S.activeBranch&&w(S.activeBranch,n,O,B),S.pendingBranch&&w(S.pendingBranch,n,O,B)}};return S}function mT(e,t,n,i,o,a,c,h,d){const p=t.suspense=eg(t,i,n,e.parentNode,document.createElement("div"),null,o,a,c,h,!0),g=d(e,p.pendingBranch=t.ssContent,n,p,a,c);return p.deps===0&&p.resolve(),g}function yT(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=b1(i?n.default:n),e.ssFallback=i?b1(n.fallback):Me(Hn)}function b1(e){let t;if(Ve(e)){const n=la&&e._c;n&&(e._d=!1,de()),e=e(),n&&(e._d=!0,t=ar,Ex())}return qe(e)&&(e=uT(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function bT(e,t){t&&t.pendingBranch?qe(e)?t.effects.push(...e):t.effects.push(e):tx(e)}function Jo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,o=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=o,J0(i,o))}function Yc(e,t){if(Ut){let n=Ut.provides;const i=Ut.parent&&Ut.parent.provides;i===n&&(n=Ut.provides=Object.create(i)),n[e]=t}}function Ai(e,t,n=!1){const i=Ut||cn;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ve(t)?t.call(i.proxy):t}}function tg(e,t){return ng(e,null,t)}const Dc={};function Vt(e,t,n){return ng(e,t,n)}function ng(e,t,{immediate:n,deep:i,flush:o,onTrack:a,onTrigger:c}=Ct){const h=IA()===(Ut==null?void 0:Ut.scope)?Ut:null;let d,p=!1,g=!1;if(Nt(e)?(d=()=>e.value,p=vf(e)):Yo(e)?(d=()=>e,i=!0):qe(e)?(g=!0,p=e.some(O=>Yo(O)||vf(O)),d=()=>e.map(O=>{if(Nt(O))return O.value;if(Yo(O))return qs(O);if(Ve(O))return ls(O,h,2)})):Ve(e)?t?d=()=>ls(e,h,2):d=()=>{if(!(h&&h.isUnmounted))return y&&y(),lr(e,h,3,[m])}:d=_r,t&&i){const O=d;d=()=>qs(O())}let y,m=O=>{y=C.onStop=()=>{ls(O,h,4)}},w;if(qu)if(m=_r,t?n&&lr(t,h,3,[d(),g?[]:void 0,m]):d(),o==="sync"){const O=fk();w=O.__watcherHandles||(O.__watcherHandles=[])}else return _r;let $=g?new Array(e.length).fill(Dc):Dc;const L=()=>{if(C.active)if(t){const O=C.run();(i||p||(g?O.some((B,k)=>Iu(B,$[k])):Iu(O,$)))&&(y&&y(),lr(t,h,3,[O,$===Dc?void 0:g&&$[0]===Dc?[]:$,m]),$=O)}else C.run()};L.allowRecurse=!!t;let E;o==="sync"?E=L:o==="post"?E=()=>In(L,h&&h.suspense):(L.pre=!0,h&&(L.id=h.uid),E=()=>Z0(L));const C=new H0(d,E);t?n?L():$=C.run():o==="post"?In(C.run.bind(C),h&&h.suspense):C.run();const S=()=>{C.stop(),h&&h.scope&&R0(h.scope.effects,C)};return w&&w.push(S),S}function wT(e,t,n){const i=this.proxy,o=Wt(e)?e.includes(".")?ax(i,e):()=>i[e]:e.bind(i,i);let a;Ve(t)?a=t:(a=t.handler,n=t);const c=Ut;ca(this);const h=ng(o,a.bind(i),n);return c?ca(c):Xs(),h}function ax(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o<n.length&&i;o++)i=i[n[o]];return i}}function qs(e,t){if(!St(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Nt(e))qs(e.value,t);else if(qe(e))for(let n=0;n<e.length;n++)qs(e[n],t);else if(LA(e)||Qo(e))e.forEach(n=>{qs(n,t)});else if(PA(e))for(const n in e)qs(e[n],t);return e}function DT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Sa(()=>{e.isMounted=!0}),hx(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],AT={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},setup(e,{slots:t}){const n=rl(),i=DT();let o;return()=>{const a=t.default&&cx(t.default(),!0);if(!a||!a.length)return;let c=a[0];if(a.length>1){for(const L of a)if(L.type!==Hn){c=L;break}}const h=at(e),{mode:d}=h;if(i.isLeaving)return Wd(c);const p=w1(c);if(!p)return Wd(c);const g=Op(p,h,i,n);Pp(p,g);const y=n.subTree,m=y&&w1(y);let w=!1;const{getTransitionKey:$}=p.type;if($){const L=$();o===void 0?o=L:L!==o&&(o=L,w=!0)}if(m&&m.type!==Hn&&(!qr(p,m)||w)){const L=Op(m,h,i,n);if(Pp(m,L),d==="out-in")return i.isLeaving=!0,L.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},Wd(c);d==="in-out"&&p.type!==Hn&&(L.delayLeave=(E,C,S)=>{const O=lx(i,m);O[String(m.key)]=m,E._leaveCb=()=>{C(),E._leaveCb=void 0,delete g.delayedLeave},g.delayedLeave=S})}return c}}},ux=AT;function lx(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Op(e,t,n,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:L,onAppear:E,onAfterAppear:C,onAppearCancelled:S}=t,O=String(e.key),B=lx(n,e),k=(j,ne)=>{j&&lr(j,i,9,ne)},M=(j,ne)=>{const oe=ne[1];k(j,ne),qe(j)?j.every(Y=>Y.length<=1)&&oe():j.length<=1&&oe()},U={mode:a,persisted:c,beforeEnter(j){let ne=h;if(!n.isMounted)if(o)ne=L||h;else return;j._leaveCb&&j._leaveCb(!0);const oe=B[O];oe&&qr(e,oe)&&oe.el._leaveCb&&oe.el._leaveCb(),k(ne,[j])},enter(j){let ne=d,oe=p,Y=g;if(!n.isMounted)if(o)ne=E||d,oe=C||p,Y=S||g;else return;let z=!1;const P=j._enterCb=F=>{z||(z=!0,F?k(Y,[j]):k(oe,[j]),U.delayedLeave&&U.delayedLeave(),j._enterCb=void 0)};ne?M(ne,[j,P]):P()},leave(j,ne){const oe=String(e.key);if(j._enterCb&&j._enterCb(!0),n.isUnmounting)return ne();k(y,[j]);let Y=!1;const z=j._leaveCb=P=>{Y||(Y=!0,ne(),P?k($,[j]):k(w,[j]),j._leaveCb=void 0,B[oe]===e&&delete B[oe])};B[oe]=e,m?M(m,[j,z]):z()},clone(j){return Op(j,t,n,i)}};return U}function Wd(e){if(th(e))return e=hs(e),e.children=null,e}function w1(e){return th(e)?e.children?e.children[0]:void 0:e}function Pp(e,t){e.shapeFlag&6&&e.component?Pp(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 cx(e,t=!1,n){let i=[],o=0;for(let a=0;a<e.length;a++){let c=e[a];const h=n==null?c.key:String(n)+String(c.key!=null?c.key:a);c.type===ht?(c.patchFlag&128&&o++,i=i.concat(cx(c.children,t,h))):(t||c.type!==Hn)&&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 rt(e){return Ve(e)?{setup:e,name:e.name}:e}const Fu=e=>!!e.type.__asyncLoader,th=e=>e.type.__isKeepAlive;function xT(e,t){fx(e,"a",t)}function ET(e,t){fx(e,"da",t)}function fx(e,t,n=Ut){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(nh(t,i,n),n){let o=n.parent;for(;o&&o.parent;)th(o.parent.vnode)&&CT(i,t,n,o),o=o.parent}}function CT(e,t,n,i){const o=nh(t,e,i,!0);rg(()=>{R0(i[t],o)},n)}function nh(e,t,n=Ut,i=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...c)=>{if(n.isUnmounted)return;Ea(),ca(n);const h=lr(t,n,e,c);return Xs(),Ca(),h});return i?o.unshift(a):o.push(a),a}}const Li=e=>(t,n=Ut)=>(!qu||e==="sp")&&nh(e,(...i)=>t(...i),n),_T=Li("bm"),Sa=Li("m"),ST=Li("bu"),FT=Li("u"),hx=Li("bum"),rg=Li("um"),$T=Li("sp"),TT=Li("rtg"),kT=Li("rtc");function LT(e,t=Ut){nh("ec",e,t)}function yn(e,t){const n=cn;if(n===null)return e;const i=sh(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[c,h,d,p=Ct]=t[a];c&&(Ve(c)&&(c={mounted:c,updated:c}),c.deep&&qs(h),o.push({dir:c,instance:i,value:h,oldValue:void 0,arg:d,modifiers:p}))}return e}function $s(e,t,n,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&&(Ea(),lr(d,n,8,[e.el,h,e,t]),Ca())}}const dx="components",BT="directives";function Zs(e,t){return px(dx,e,!0,t)||e}const OT=Symbol();function io(e){return px(BT,e)}function px(e,t,n=!0,i=!1){const o=cn||Ut;if(o){const a=o.type;if(e===dx){const h=ok(a,!1);if(h&&(h===t||h===Qr(t)||h===Qf(Qr(t))))return a}const c=D1(o[e]||a[e],t)||D1(o.appContext[e],t);return!c&&i?a:c}}function D1(e,t){return e&&(e[t]||e[Qr(t)]||e[Qf(Qr(t))])}function Ar(e,t,n,i){let o;const a=n&&n[i];if(qe(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(St(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 n&&(n[i]=o),o}function Sr(e,t,n={},i,o){if(cn.isCE||cn.parent&&Fu(cn.parent)&&cn.parent.isCE)return t!=="default"&&(n.name=t),Me("slot",n,i&&i());let a=e[t];a&&a._c&&(a._d=!1),de();const c=a&&gx(a(n)),h=Ze(ht,{key:n.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 gx(e){return e.some(t=>Hu(t)?!(t.type===Hn||t.type===ht&&!gx(t.children)):!0)?e:null}const Np=e=>e?Sx(e)?sh(e)||e.proxy:Np(e.parent):null,$u=fn(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=>Np(e.parent),$root:e=>Np(e.root),$emit:e=>e.emit,$options:e=>ig(e),$forceUpdate:e=>e.f||(e.f=()=>Z0(e.update)),$nextTick:e=>e.n||(e.n=Ci.bind(e.proxy)),$watch:e=>wT.bind(e)}),Gd=(e,t)=>e!==Ct&&!e.__isScriptSetup&&ot(e,t),PT={get({_:e},t){const{ctx:n,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 n[t];case 3:return a[t]}else{if(Gd(i,t))return c[t]=1,i[t];if(o!==Ct&&ot(o,t))return c[t]=2,o[t];if((p=e.propsOptions[0])&&ot(p,t))return c[t]=3,a[t];if(n!==Ct&&ot(n,t))return c[t]=4,n[t];Ip&&(c[t]=0)}}const g=$u[t];let y,m;if(g)return t==="$attrs"&&jn(e,"get",t),g(e);if((y=h.__cssModules)&&(y=y[t]))return y;if(n!==Ct&&ot(n,t))return c[t]=4,n[t];if(m=d.config.globalProperties,ot(m,t))return m[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return Gd(o,t)?(o[t]=n,!0):i!==Ct&&ot(i,t)?(i[t]=n,!0):ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:a}},c){let h;return!!n[c]||e!==Ct&&ot(e,c)||Gd(t,c)||(h=a[0])&&ot(h,c)||ot(i,c)||ot($u,c)||ot(o.config.globalProperties,c)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Ip=!0;function NT(e){const t=ig(e),n=e.proxy,i=e.ctx;Ip=!1,t.beforeCreate&&A1(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:L,deactivated:E,beforeDestroy:C,beforeUnmount:S,destroyed:O,unmounted:B,render:k,renderTracked:M,renderTriggered:U,errorCaptured:j,serverPrefetch:ne,expose:oe,inheritAttrs:Y,components:z,directives:P,filters:F}=t;if(p&&IT(p,i,null,e.appContext.config.unwrapInjectedRef),c)for(const V in c){const Z=c[V];Ve(Z)&&(i[V]=Z.bind(n))}if(o){const V=o.call(n,n);St(V)&&(e.data=Zn(V))}if(Ip=!0,a)for(const V in a){const Z=a[V],ue=Ve(Z)?Z.bind(n,n):Ve(Z.get)?Z.get.bind(n,n):_r,ge=!Ve(Z)&&Ve(Z.set)?Z.set.bind(n):_r,$e=xe({get:ue,set:ge});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>$e.value,set:_e=>$e.value=_e})}if(h)for(const V in h)vx(h[V],i,n,V);if(d){const V=Ve(d)?d.call(n):d;Reflect.ownKeys(V).forEach(Z=>{Yc(Z,V[Z])})}g&&A1(g,e,"c");function R(V,Z){qe(Z)?Z.forEach(ue=>V(ue.bind(n))):Z&&V(Z.bind(n))}if(R(_T,y),R(Sa,m),R(ST,w),R(FT,$),R(xT,L),R(ET,E),R(LT,j),R(kT,M),R(TT,U),R(hx,S),R(rg,B),R($T,ne),qe(oe))if(oe.length){const V=e.exposed||(e.exposed={});oe.forEach(Z=>{Object.defineProperty(V,Z,{get:()=>n[Z],set:ue=>n[Z]=ue})})}else e.exposed||(e.exposed={});k&&e.render===_r&&(e.render=k),Y!=null&&(e.inheritAttrs=Y),z&&(e.components=z),P&&(e.directives=P)}function IT(e,t,n=_r,i=!1){qe(e)&&(e=Rp(e));for(const o in e){const a=e[o];let c;St(a)?"default"in a?c=Ai(a.from||o,a.default,!0):c=Ai(a.from||o):c=Ai(a),Nt(c)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:h=>c.value=h}):t[o]=c}}function A1(e,t,n){lr(qe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function vx(e,t,n,i){const o=i.includes(".")?ax(n,i):()=>n[i];if(Wt(e)){const a=t[e];Ve(a)&&Vt(o,a)}else if(Ve(e))Vt(o,e.bind(n));else if(St(e))if(qe(e))e.forEach(a=>vx(a,t,n,i));else{const a=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(a)&&Vt(o,a,e)}}function ig(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:c}}=e.appContext,h=a.get(t);let d;return h?d=h:!o.length&&!n&&!i?d=t:(d={},o.length&&o.forEach(p=>yf(d,p,c,!0)),yf(d,t,c)),St(t)&&a.set(t,d),d}function yf(e,t,n,i=!1){const{mixins:o,extends:a}=t;a&&yf(e,a,n,!0),o&&o.forEach(c=>yf(e,c,n,!0));for(const c in t)if(!(i&&c==="expose")){const h=RT[c]||n&&n[c];e[c]=h?h(e[c],t[c]):t[c]}return e}const RT={data:x1,props:Ps,emits:Ps,methods:Ps,computed:Ps,beforeCreate:_n,created:_n,beforeMount:_n,mounted:_n,beforeUpdate:_n,updated:_n,beforeDestroy:_n,beforeUnmount:_n,destroyed:_n,unmounted:_n,activated:_n,deactivated:_n,errorCaptured:_n,serverPrefetch:_n,components:Ps,directives:Ps,watch:zT,provide:x1,inject:MT};function x1(e,t){return t?e?function(){return fn(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function MT(e,t){return Ps(Rp(e),Rp(t))}function Rp(e){if(qe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _n(e,t){return e?[...new Set([].concat(e,t))]:t}function Ps(e,t){return e?fn(fn(Object.create(null),e),t):t}function zT(e,t){if(!e)return t;if(!t)return e;const n=fn(Object.create(null),e);for(const i in t)n[i]=_n(e[i],t[i]);return n}function UT(e,t,n,i=!1){const o={},a={};pf(a,ih,1),e.propsDefaults=Object.create(null),mx(e,t,o,a);for(const c in e.propsOptions[0])c in o||(o[c]=void 0);n?e.props=i?o:G$(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function HT(e,t,n,i){const{props:o,attrs:a,vnode:{patchFlag:c}}=e,h=at(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(Jf(e.emitsOptions,m))continue;const w=t[m];if(d)if(ot(a,m))w!==a[m]&&(a[m]=w,p=!0);else{const $=Qr(m);o[$]=Mp(d,h,$,w,e,!1)}else w!==a[m]&&(a[m]=w,p=!0)}}}else{mx(e,t,o,a)&&(p=!0);let g;for(const y in h)(!t||!ot(t,y)&&((g=ro(y))===y||!ot(t,g)))&&(d?n&&(n[y]!==void 0||n[g]!==void 0)&&(o[y]=Mp(d,h,y,void 0,e,!0)):delete o[y]);if(a!==h)for(const y in a)(!t||!ot(t,y))&&(delete a[y],p=!0)}p&&Ei(e,"set","$attrs")}function mx(e,t,n,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&&ot(o,g=Qr(d))?!a||!a.includes(g)?n[g]=p:(h||(h={}))[g]=p:Jf(e.emitsOptions,d)||(!(d in i)||p!==i[d])&&(i[d]=p,c=!0)}if(a){const d=at(n),p=h||Ct;for(let g=0;g<a.length;g++){const y=a[g];n[y]=Mp(o,d,y,p[y],e,!ot(p,y))}}return c}function Mp(e,t,n,i,o,a){const c=e[n];if(c!=null){const h=ot(c,"default");if(h&&i===void 0){const d=c.default;if(c.type!==Function&&Ve(d)){const{propsDefaults:p}=o;n in p?i=p[n]:(ca(o),i=p[n]=d.call(null,t),Xs())}else i=d}c[0]&&(a&&!h?i=!1:c[1]&&(i===""||i===ro(n))&&(i=!0))}return i}function yx(e,t,n=!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]=yx(y,t,!0);fn(c,m),w&&h.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!a&&!d)return St(e)&&i.set(e,Xo),Xo;if(qe(a))for(let g=0;g<a.length;g++){const y=Qr(a[g]);E1(y)&&(c[y]=Ct)}else if(a)for(const g in a){const y=Qr(g);if(E1(y)){const m=a[g],w=c[y]=qe(m)||Ve(m)?{type:m}:Object.assign({},m);if(w){const $=S1(Boolean,w.type),L=S1(String,w.type);w[0]=$>-1,w[1]=L<0||$<L,($>-1||ot(w,"default"))&&h.push(y)}}}const p=[c,h];return St(e)&&i.set(e,p),p}function E1(e){return e[0]!=="$"}function C1(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function _1(e,t){return C1(e)===C1(t)}function S1(e,t){return qe(t)?t.findIndex(n=>_1(n,e)):Ve(t)&&_1(t,e)?0:-1}const bx=e=>e[0]==="_"||e==="$stable",sg=e=>qe(e)?e.map(wr):[wr(e)],qT=(e,t,n)=>{if(t._n)return t;const i=Ye((...o)=>sg(t(...o)),n);return i._c=!1,i},wx=(e,t,n)=>{const i=e._ctx;for(const o in e){if(bx(o))continue;const a=e[o];if(Ve(a))t[o]=qT(o,a,i);else if(a!=null){const c=sg(a);t[o]=()=>c}}},Dx=(e,t)=>{const n=sg(t);e.slots.default=()=>n},jT=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=at(t),pf(t,"_",n)):wx(t,e.slots={})}else e.slots={},t&&Dx(e,t);pf(e.slots,ih,1)},VT=(e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,c=Ct;if(i.shapeFlag&32){const h=t._;h?n&&h===1?a=!1:(fn(o,t),!n&&h===1&&delete o._):(a=!t.$stable,wx(t,o)),c=t}else t&&(Dx(e,t),c={default:1});if(a)for(const h in o)!bx(h)&&!(h in c)&&delete o[h]};function Ax(){return{app:null,config:{isNativeTag:c$,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 WT=0;function GT(e,t){return function(i,o=null){Ve(i)||(i=Object.assign({},i)),o!=null&&!St(o)&&(o=null);const a=Ax(),c=new Set;let h=!1;const d=a.app={_uid:WT++,_component:i,_props:o,_container:null,_context:a,_instance:null,version:hk,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=Me(i,o);return m.appContext=a,g&&t?t(m,p):e(m,p,y),h=!0,d._container=p,p.__vue_app__=d,sh(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}};return d}}function zp(e,t,n,i,o=!1){if(qe(e)){e.forEach((m,w)=>zp(m,t&&(qe(t)?t[w]:t),n,i,o));return}if(Fu(i)&&!o)return;const a=i.shapeFlag&4?sh(i.component)||i.component.proxy:i.el,c=o?null:a,{i:h,r:d}=e,p=t&&t.r,g=h.refs===Ct?h.refs={}:h.refs,y=h.setupState;if(p!=null&&p!==d&&(Wt(p)?(g[p]=null,ot(y,p)&&(y[p]=null)):Nt(p)&&(p.value=null)),Ve(d))ls(d,h,12,[c,g]);else{const m=Wt(d),w=Nt(d);if(m||w){const $=()=>{if(e.f){const L=m?ot(y,d)?y[d]:g[d]:d.value;o?qe(L)&&R0(L,a):qe(L)?L.includes(a)||L.push(a):m?(g[d]=[a],ot(y,d)&&(y[d]=g[d])):(d.value=[a],e.k&&(g[e.k]=d.value))}else m?(g[d]=c,ot(y,d)&&(y[d]=c)):w&&(d.value=c,e.k&&(g[e.k]=c))};c?($.id=-1,In($,n)):$()}}}const In=bT;function KT(e){return XT(e)}function XT(e,t){const n=v$();n.__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=_r,insertStaticContent:$}=e,L=(I,G,re,ae=null,ce=null,ye=null,he=!1,be=null,Ee=!!G.dynamicChildren)=>{if(I===G)return;I&&!qr(I,G)&&(ae=J(I),_e(I,ce,ye,!0),I=null),G.patchFlag===-2&&(Ee=!1,G.dynamicChildren=null);const{type:ve,ref:Ne,shapeFlag:Be}=G;switch(ve){case rh:E(I,G,re,ae);break;case Hn:C(I,G,re,ae);break;case Kd:I==null&&S(G,re,ae,he);break;case ht:z(I,G,re,ae,ce,ye,he,be,Ee);break;default:Be&1?k(I,G,re,ae,ce,ye,he,be,Ee):Be&6?P(I,G,re,ae,ce,ye,he,be,Ee):(Be&64||Be&128)&&ve.process(I,G,re,ae,ce,ye,he,be,Ee,Se)}Ne!=null&&ce&&zp(Ne,I&&I.ref,ye,G||I,!G)},E=(I,G,re,ae)=>{if(I==null)i(G.el=h(G.children),re,ae);else{const ce=G.el=I.el;G.children!==I.children&&p(ce,G.children)}},C=(I,G,re,ae)=>{I==null?i(G.el=d(G.children||""),re,ae):G.el=I.el},S=(I,G,re,ae)=>{[I.el,I.anchor]=$(I.children,G,re,ae,I.el,I.anchor)},O=({el:I,anchor:G},re,ae)=>{let ce;for(;I&&I!==G;)ce=m(I),i(I,re,ae),I=ce;i(G,re,ae)},B=({el:I,anchor:G})=>{let re;for(;I&&I!==G;)re=m(I),o(I),I=re;o(G)},k=(I,G,re,ae,ce,ye,he,be,Ee)=>{he=he||G.type==="svg",I==null?M(G,re,ae,ce,ye,he,be,Ee):ne(I,G,ce,ye,he,be,Ee)},M=(I,G,re,ae,ce,ye,he,be)=>{let Ee,ve;const{type:Ne,props:Be,shapeFlag:Pe,transition:Re,dirs:Ge}=I;if(Ee=I.el=c(I.type,ye,Be&&Be.is,Be),Pe&8?g(Ee,I.children):Pe&16&&j(I.children,Ee,null,ae,ce,ye&&Ne!=="foreignObject",he,be),Ge&&$s(I,null,ae,"created"),U(Ee,I,I.scopeId,he,ae),Be){for(const tt in Be)tt!=="value"&&!Xc(tt)&&a(Ee,tt,null,Be[tt],ye,I.children,ae,ce,se);"value"in Be&&a(Ee,"value",null,Be.value),(ve=Be.onVnodeBeforeMount)&&Mr(ve,ae,I)}Ge&&$s(I,null,ae,"beforeMount");const it=(!ce||ce&&!ce.pendingBranch)&&Re&&!Re.persisted;it&&Re.beforeEnter(Ee),i(Ee,G,re),((ve=Be&&Be.onVnodeMounted)||it||Ge)&&In(()=>{ve&&Mr(ve,ae,I),it&&Re.enter(Ee),Ge&&$s(I,null,ae,"mounted")},ce)},U=(I,G,re,ae,ce)=>{if(re&&w(I,re),ae)for(let ye=0;ye<ae.length;ye++)w(I,ae[ye]);if(ce){let ye=ce.subTree;if(G===ye){const he=ce.vnode;U(I,he,he.scopeId,he.slotScopeIds,ce.parent)}}},j=(I,G,re,ae,ce,ye,he,be,Ee=0)=>{for(let ve=Ee;ve<I.length;ve++){const Ne=I[ve]=be?ts(I[ve]):wr(I[ve]);L(null,Ne,G,re,ae,ce,ye,he,be)}},ne=(I,G,re,ae,ce,ye,he)=>{const be=G.el=I.el;let{patchFlag:Ee,dynamicChildren:ve,dirs:Ne}=G;Ee|=I.patchFlag&16;const Be=I.props||Ct,Pe=G.props||Ct;let Re;re&&Ts(re,!1),(Re=Pe.onVnodeBeforeUpdate)&&Mr(Re,re,G,I),Ne&&$s(G,I,re,"beforeUpdate"),re&&Ts(re,!0);const Ge=ce&&G.type!=="foreignObject";if(ve?oe(I.dynamicChildren,ve,be,re,ae,Ge,ye):he||Z(I,G,be,null,re,ae,Ge,ye,!1),Ee>0){if(Ee&16)Y(be,G,Be,Pe,re,ae,ce);else if(Ee&2&&Be.class!==Pe.class&&a(be,"class",null,Pe.class,ce),Ee&4&&a(be,"style",Be.style,Pe.style,ce),Ee&8){const it=G.dynamicProps;for(let tt=0;tt<it.length;tt++){const ft=it[tt],et=Be[ft],Bn=Pe[ft];(Bn!==et||ft==="value")&&a(be,ft,et,Bn,ce,I.children,re,ae,se)}}Ee&1&&I.children!==G.children&&g(be,G.children)}else!he&&ve==null&&Y(be,G,Be,Pe,re,ae,ce);((Re=Pe.onVnodeUpdated)||Ne)&&In(()=>{Re&&Mr(Re,re,G,I),Ne&&$s(G,I,re,"updated")},ae)},oe=(I,G,re,ae,ce,ye,he)=>{for(let be=0;be<G.length;be++){const Ee=I[be],ve=G[be],Ne=Ee.el&&(Ee.type===ht||!qr(Ee,ve)||Ee.shapeFlag&70)?y(Ee.el):re;L(Ee,ve,Ne,null,ae,ce,ye,he,!0)}},Y=(I,G,re,ae,ce,ye,he)=>{if(re!==ae){if(re!==Ct)for(const be in re)!Xc(be)&&!(be in ae)&&a(I,be,re[be],null,he,G.children,ce,ye,se);for(const be in ae){if(Xc(be))continue;const Ee=ae[be],ve=re[be];Ee!==ve&&be!=="value"&&a(I,be,ve,Ee,he,G.children,ce,ye,se)}"value"in ae&&a(I,"value",re.value,ae.value)}},z=(I,G,re,ae,ce,ye,he,be,Ee)=>{const ve=G.el=I?I.el:h(""),Ne=G.anchor=I?I.anchor:h("");let{patchFlag:Be,dynamicChildren:Pe,slotScopeIds:Re}=G;Re&&(be=be?be.concat(Re):Re),I==null?(i(ve,re,ae),i(Ne,re,ae),j(G.children,re,Ne,ce,ye,he,be,Ee)):Be>0&&Be&64&&Pe&&I.dynamicChildren?(oe(I.dynamicChildren,Pe,re,ce,ye,he,be),(G.key!=null||ce&&G===ce.subTree)&&xx(I,G,!0)):Z(I,G,re,Ne,ce,ye,he,be,Ee)},P=(I,G,re,ae,ce,ye,he,be,Ee)=>{G.slotScopeIds=be,I==null?G.shapeFlag&512?ce.ctx.activate(G,re,ae,he,Ee):F(G,re,ae,ce,ye,he,Ee):D(I,G,Ee)},F=(I,G,re,ae,ce,ye,he)=>{const be=I.component=nk(I,ae,ce);if(th(I)&&(be.ctx.renderer=Se),rk(be),be.asyncDep){if(ce&&ce.registerDep(be,R),!I.el){const Ee=be.subTree=Me(Hn);C(null,Ee,G,re)}return}R(be,I,G,re,ce,ye,he)},D=(I,G,re)=>{const ae=G.component=I.component;if(fT(I,G,re))if(ae.asyncDep&&!ae.asyncResolved){V(ae,G,re);return}else ae.next=G,iT(ae.update),ae.update();else G.el=I.el,ae.vnode=G},R=(I,G,re,ae,ce,ye,he)=>{const be=()=>{if(I.isMounted){let{next:Ne,bu:Be,u:Pe,parent:Re,vnode:Ge}=I,it=Ne,tt;Ts(I,!1),Ne?(Ne.el=Ge.el,V(I,Ne,he)):Ne=Ge,Be&&Qc(Be),(tt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Mr(tt,Re,Ne,Ge),Ts(I,!0);const ft=Vd(I),et=I.subTree;I.subTree=ft,L(et,ft,y(et.el),J(et),I,ce,ye),Ne.el=ft.el,it===null&&J0(I,ft.el),Pe&&In(Pe,ce),(tt=Ne.props&&Ne.props.onVnodeUpdated)&&In(()=>Mr(tt,Re,Ne,Ge),ce)}else{let Ne;const{el:Be,props:Pe}=G,{bm:Re,m:Ge,parent:it}=I,tt=Fu(G);if(Ts(I,!1),Re&&Qc(Re),!tt&&(Ne=Pe&&Pe.onVnodeBeforeMount)&&Mr(Ne,it,G),Ts(I,!0),Be&&ke){const ft=()=>{I.subTree=Vd(I),ke(Be,I.subTree,I,ce,null)};tt?G.type.__asyncLoader().then(()=>!I.isUnmounted&&ft()):ft()}else{const ft=I.subTree=Vd(I);L(null,ft,re,ae,I,ce,ye),G.el=ft.el}if(Ge&&In(Ge,ce),!tt&&(Ne=Pe&&Pe.onVnodeMounted)){const ft=G;In(()=>Mr(Ne,it,ft),ce)}(G.shapeFlag&256||it&&Fu(it.vnode)&&it.vnode.shapeFlag&256)&&I.a&&In(I.a,ce),I.isMounted=!0,G=re=ae=null}},Ee=I.effect=new H0(be,()=>Z0(ve),I.scope),ve=I.update=()=>Ee.run();ve.id=I.uid,Ts(I,!0),ve()},V=(I,G,re)=>{G.component=I;const ae=I.vnode.props;I.vnode=G,I.next=null,HT(I,G.props,ae,re),VT(I,G.children,re),Ea(),m1(),Ca()},Z=(I,G,re,ae,ce,ye,he,be,Ee=!1)=>{const ve=I&&I.children,Ne=I?I.shapeFlag:0,Be=G.children,{patchFlag:Pe,shapeFlag:Re}=G;if(Pe>0){if(Pe&128){ge(ve,Be,re,ae,ce,ye,he,be,Ee);return}else if(Pe&256){ue(ve,Be,re,ae,ce,ye,he,be,Ee);return}}Re&8?(Ne&16&&se(ve,ce,ye),Be!==ve&&g(re,Be)):Ne&16?Re&16?ge(ve,Be,re,ae,ce,ye,he,be,Ee):se(ve,ce,ye,!0):(Ne&8&&g(re,""),Re&16&&j(Be,re,ae,ce,ye,he,be,Ee))},ue=(I,G,re,ae,ce,ye,he,be,Ee)=>{I=I||Xo,G=G||Xo;const ve=I.length,Ne=G.length,Be=Math.min(ve,Ne);let Pe;for(Pe=0;Pe<Be;Pe++){const Re=G[Pe]=Ee?ts(G[Pe]):wr(G[Pe]);L(I[Pe],Re,re,null,ce,ye,he,be,Ee)}ve>Ne?se(I,ce,ye,!0,!1,Be):j(G,re,ae,ce,ye,he,be,Ee,Be)},ge=(I,G,re,ae,ce,ye,he,be,Ee)=>{let ve=0;const Ne=G.length;let Be=I.length-1,Pe=Ne-1;for(;ve<=Be&&ve<=Pe;){const Re=I[ve],Ge=G[ve]=Ee?ts(G[ve]):wr(G[ve]);if(qr(Re,Ge))L(Re,Ge,re,null,ce,ye,he,be,Ee);else break;ve++}for(;ve<=Be&&ve<=Pe;){const Re=I[Be],Ge=G[Pe]=Ee?ts(G[Pe]):wr(G[Pe]);if(qr(Re,Ge))L(Re,Ge,re,null,ce,ye,he,be,Ee);else break;Be--,Pe--}if(ve>Be){if(ve<=Pe){const Re=Pe+1,Ge=Re<Ne?G[Re].el:ae;for(;ve<=Pe;)L(null,G[ve]=Ee?ts(G[ve]):wr(G[ve]),re,Ge,ce,ye,he,be,Ee),ve++}}else if(ve>Pe)for(;ve<=Be;)_e(I[ve],ce,ye,!0),ve++;else{const Re=ve,Ge=ve,it=new Map;for(ve=Ge;ve<=Pe;ve++){const Dt=G[ve]=Ee?ts(G[ve]):wr(G[ve]);Dt.key!=null&&it.set(Dt.key,ve)}let tt,ft=0;const et=Pe-Ge+1;let Bn=!1,Vn=0;const tn=new Array(et);for(ve=0;ve<et;ve++)tn[ve]=0;for(ve=Re;ve<=Be;ve++){const Dt=I[ve];if(ft>=et){_e(Dt,ce,ye,!0);continue}let bn;if(Dt.key!=null)bn=it.get(Dt.key);else for(tt=Ge;tt<=Pe;tt++)if(tn[tt-Ge]===0&&qr(Dt,G[tt])){bn=tt;break}bn===void 0?_e(Dt,ce,ye,!0):(tn[bn-Ge]=ve+1,bn>=Vn?Vn=bn:Bn=!0,L(Dt,G[bn],re,null,ce,ye,he,be,Ee),ft++)}const co=Bn?QT(tn):Xo;for(tt=co.length-1,ve=et-1;ve>=0;ve--){const Dt=Ge+ve,bn=G[Dt],Ae=Dt+1<Ne?G[Dt+1].el:ae;tn[ve]===0?L(null,bn,re,Ae,ce,ye,he,be,Ee):Bn&&(tt<0||ve!==co[tt]?$e(bn,re,Ae,2):tt--)}}},$e=(I,G,re,ae,ce=null)=>{const{el:ye,type:he,transition:be,children:Ee,shapeFlag:ve}=I;if(ve&6){$e(I.component.subTree,G,re,ae);return}if(ve&128){I.suspense.move(G,re,ae);return}if(ve&64){he.move(I,G,re,Se);return}if(he===ht){i(ye,G,re);for(let Be=0;Be<Ee.length;Be++)$e(Ee[Be],G,re,ae);i(I.anchor,G,re);return}if(he===Kd){O(I,G,re);return}if(ae!==2&&ve&1&&be)if(ae===0)be.beforeEnter(ye),i(ye,G,re),In(()=>be.enter(ye),ce);else{const{leave:Be,delayLeave:Pe,afterLeave:Re}=be,Ge=()=>i(ye,G,re),it=()=>{Be(ye,()=>{Ge(),Re&&Re()})};Pe?Pe(ye,Ge,it):it()}else i(ye,G,re)},_e=(I,G,re,ae=!1,ce=!1)=>{const{type:ye,props:he,ref:be,children:Ee,dynamicChildren:ve,shapeFlag:Ne,patchFlag:Be,dirs:Pe}=I;if(be!=null&&zp(be,null,re,I,!0),Ne&256){G.ctx.deactivate(I);return}const Re=Ne&1&&Pe,Ge=!Fu(I);let it;if(Ge&&(it=he&&he.onVnodeBeforeUnmount)&&Mr(it,G,I),Ne&6)ie(I.component,re,ae);else{if(Ne&128){I.suspense.unmount(re,ae);return}Re&&$s(I,null,G,"beforeUnmount"),Ne&64?I.type.remove(I,G,re,ce,Se,ae):ve&&(ye!==ht||Be>0&&Be&64)?se(ve,G,re,!1,!0):(ye===ht&&Be&384||!ce&&Ne&16)&&se(Ee,G,re),ae&&ze(I)}(Ge&&(it=he&&he.onVnodeUnmounted)||Re)&&In(()=>{it&&Mr(it,G,I),Re&&$s(I,null,G,"unmounted")},re)},ze=I=>{const{type:G,el:re,anchor:ae,transition:ce}=I;if(G===ht){Xe(re,ae);return}if(G===Kd){B(I);return}const ye=()=>{o(re),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(I.shapeFlag&1&&ce&&!ce.persisted){const{leave:he,delayLeave:be}=ce,Ee=()=>he(re,ye);be?be(I.el,ye,Ee):Ee()}else ye()},Xe=(I,G)=>{let re;for(;I!==G;)re=m(I),o(I),I=re;o(G)},ie=(I,G,re)=>{const{bum:ae,scope:ce,update:ye,subTree:he,um:be}=I;ae&&Qc(ae),ce.stop(),ye&&(ye.active=!1,_e(he,I,G,re)),be&&In(be,G),In(()=>{I.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},se=(I,G,re,ae=!1,ce=!1,ye=0)=>{for(let he=ye;he<I.length;he++)_e(I[he],G,re,ae,ce)},J=I=>I.shapeFlag&6?J(I.component.subTree):I.shapeFlag&128?I.suspense.next():m(I.anchor||I.el),fe=(I,G,re)=>{I==null?G._vnode&&_e(G._vnode,null,null,!0):L(G._vnode||null,I,G,null,null,null,re),m1(),nx(),G._vnode=I},Se={p:L,um:_e,m:$e,r:ze,mt:F,mc:j,pc:Z,pbc:oe,n:J,o:e};let vt,ke;return t&&([vt,ke]=t(Se)),{render:fe,hydrate:vt,createApp:GT(fe,vt)}}function Ts({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xx(e,t,n=!1){const i=e.children,o=t.children;if(qe(i)&&qe(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),n||xx(c,h)),h.type===rh&&(h.el=c.el)}}function QT(e){const t=e.slice(),n=[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=n[n.length-1],e[o]<p){t[i]=o,n.push(i);continue}for(a=0,c=n.length-1;a<c;)h=a+c>>1,e[n[h]]<p?a=h+1:c=h;p<e[n[a]]&&(a>0&&(t[i]=n[a-1]),n[a]=i)}}for(a=n.length,c=n[a-1];a-- >0;)n[a]=c,c=t[c];return n}const YT=e=>e.__isTeleport,ht=Symbol(void 0),rh=Symbol(void 0),Hn=Symbol(void 0),Kd=Symbol(void 0),Tu=[];let ar=null;function de(e=!1){Tu.push(ar=e?null:[])}function Ex(){Tu.pop(),ar=Tu[Tu.length-1]||null}let la=1;function F1(e){la+=e}function Cx(e){return e.dynamicChildren=la>0?ar||Xo:null,Ex(),la>0&&ar&&ar.push(e),e}function Te(e,t,n,i,o,a){return Cx(pe(e,t,n,i,o,a,!0))}function Ze(e,t,n,i,o){return Cx(Me(e,t,n,i,o,!0))}function Hu(e){return e?e.__v_isVNode===!0:!1}function qr(e,t){return e.type===t.type&&e.key===t.key}const ih="__vInternal",_x=({key:e})=>e??null,Zc=({ref:e,ref_key:t,ref_for:n})=>e!=null?Wt(e)||Nt(e)||Ve(e)?{i:cn,r:e,k:t,f:!!n}:e:null;function pe(e,t=null,n=null,i=0,o=null,a=e===ht?0:1,c=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_x(t),ref:t&&Zc(t),scopeId:eh,slotScopeIds:null,children:n,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:cn};return h?(og(d,n),a&128&&e.normalize(d)):n&&(d.shapeFlag|=Wt(n)?8:16),la>0&&!c&&ar&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&ar.push(d),d}const Me=ZT;function ZT(e,t=null,n=null,i=0,o=null,a=!1){if((!e||e===OT)&&(e=Hn),Hu(e)){const h=hs(e,t,!0);return n&&og(h,n),la>0&&!a&&ar&&(h.shapeFlag&6?ar[ar.indexOf(e)]=h:ar.push(h)),h.patchFlag|=-2,h}if(ak(e)&&(e=e.__vccOpts),t){t=JT(t);let{class:h,style:d}=t;h&&!Wt(h)&&(t.class=yt(h)),St(d)&&(KA(d)&&!qe(d)&&(d=fn({},d)),t.style=Un(d))}const c=Wt(e)?1:hT(e)?128:YT(e)?64:St(e)?4:Ve(e)?2:0;return pe(e,t,n,i,o,c,a,!0)}function JT(e){return e?KA(e)||ih in e?fn({},e):e:null}function hs(e,t,n=!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&&_x(h),ref:t&&t.ref?n&&o?qe(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!==ht?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 Sn(e=" ",t=0){return Me(rh,null,e,t)}function nt(e="",t=!1){return t?(de(),Ze(Hn,null,e)):Me(Hn,null,e)}function wr(e){return e==null||typeof e=="boolean"?Me(Hn):qe(e)?Me(ht,null,e.slice()):typeof e=="object"?ts(e):Me(rh,null,String(e))}function ts(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function og(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(qe(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),og(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ih in t)?t._ctx=cn:o===3&&cn&&(cn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:cn},n=32):(t=String(t),i&64?(n=16,t=[Sn(t)]):n=8);e.children=t,e.shapeFlag|=n}function cs(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];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=Un([t.style,i.style]);else if(Gf(o)){const a=t[o],c=i[o];c&&a!==c&&!(qe(a)&&a.includes(c))&&(t[o]=a?[].concat(a,c):c)}else o!==""&&(t[o]=i[o])}return t}function Mr(e,t,n,i=null){lr(e,t,7,[n,i])}const ek=Ax();let tk=0;function nk(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||ek,a={uid:tk++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new m$(!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:yx(i,o),emitsOptions:ix(i,o),emit:null,emitted:null,propsDefaults:Ct,inheritAttrs:i.inheritAttrs,ctx:Ct,data:Ct,props:Ct,attrs:Ct,slots:Ct,refs:Ct,setupState:Ct,setupContext:null,suspense:n,suspenseId:n?n.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=oT.bind(null,a),e.ce&&e.ce(a),a}let Ut=null;const rl=()=>Ut||cn,ca=e=>{Ut=e,e.scope.on()},Xs=()=>{Ut&&Ut.scope.off(),Ut=null};function Sx(e){return e.vnode.shapeFlag&4}let qu=!1;function rk(e,t=!1){qu=t;const{props:n,children:i}=e.vnode,o=Sx(e);UT(e,n,o,t),jT(e,i);const a=o?ik(e,t):void 0;return qu=!1,a}function ik(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=G0(new Proxy(e.ctx,PT));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?$x(e):null;ca(e),Ea();const a=ls(i,e,0,[e.props,o]);if(Ca(),Xs(),BA(a)){if(a.then(Xs,Xs),t)return a.then(c=>{Up(e,c,t)}).catch(c=>{nl(c,e,0)});e.asyncDep=a}else Up(e,a,t)}else Fx(e,t)}function Up(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=QA(t)),Fx(e,n)}let $1;function Fx(e,t,n){const i=e.type;if(!e.render){if(!t&&$1&&!i.render){const o=i.template||ig(e).template;if(o){const{isCustomElement:a,compilerOptions:c}=e.appContext.config,{delimiters:h,compilerOptions:d}=i,p=fn(fn({isCustomElement:a,delimiters:h},c),d);i.render=$1(o,p)}}e.render=i.render||_r}ca(e),Ea(),NT(e),Ca(),Xs()}function sk(e){return new Proxy(e.attrs,{get(t,n){return jn(e,"get","$attrs"),t[n]}})}function $x(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=sk(e))},slots:e.slots,emit:e.emit,expose:t}}function sh(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(QA(G0(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in $u)return $u[n](e)},has(t,n){return n in t||n in $u}}))}function ok(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function ak(e){return Ve(e)&&"__vccOpts"in e}const xe=(e,t)=>tT(e,t,qu);function uk(){return lk().attrs}function lk(){const e=rl();return e.setupContext||(e.setupContext=$x(e))}function il(e,t,n){const i=arguments.length;return i===2?St(t)&&!qe(t)?Hu(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Hu(n)&&(n=[n]),Me(e,t,n))}const ck=Symbol(""),fk=()=>Ai(ck),hk="3.2.47",dk="http://www.w3.org/2000/svg",Ms=typeof document<"u"?document:null,T1=Ms&&Ms.createElement("template"),pk={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?Ms.createElementNS(dk,e):Ms.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Ms.createTextNode(e),createComment:e=>Ms.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ms.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,a){const c=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{T1.innerHTML=i?`<svg>${e}</svg>`:e;const h=T1.content;if(i){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}t.insertBefore(h,n)}return[c?c.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function gk(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function vk(e,t,n){const i=e.style,o=Wt(n);if(n&&!o){if(t&&!Wt(t))for(const a in t)n[a]==null&&Hp(i,a,"");for(const a in n)Hp(i,a,n[a])}else{const a=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=a)}}const k1=/\s*!important$/;function Hp(e,t,n){if(qe(n))n.forEach(i=>Hp(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=mk(e,t);k1.test(n)?e.setProperty(ro(i),n.replace(k1,""),"important"):e[i]=n}}const L1=["Webkit","Moz","ms"],Xd={};function mk(e,t){const n=Xd[t];if(n)return n;let i=Qr(t);if(i!=="filter"&&i in e)return Xd[t]=i;i=Qf(i);for(let o=0;o<L1.length;o++){const a=L1[o]+i;if(a in e)return Xd[t]=a}return t}const B1="http://www.w3.org/1999/xlink";function yk(e,t,n,i,o){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(B1,t.slice(6,t.length)):e.setAttributeNS(B1,t,n);else{const a=l$(t);n==null||a&&!TA(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function bk(e,t,n,i,o,a,c){if(t==="innerHTML"||t==="textContent"){i&&c(i,o,a),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const d=n??"";(e.value!==d||e.tagName==="OPTION")&&(e.value=d),n==null&&e.removeAttribute(t);return}let h=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=TA(n):n==null&&d==="string"?(n="",h=!0):d==="number"&&(n=0,h=!0)}try{e[t]=n}catch{}h&&e.removeAttribute(t)}function jo(e,t,n,i){e.addEventListener(t,n,i)}function wk(e,t,n,i){e.removeEventListener(t,n,i)}function Dk(e,t,n,i,o=null){const a=e._vei||(e._vei={}),c=a[t];if(i&&c)c.value=i;else{const[h,d]=Ak(t);if(i){const p=a[t]=Ck(i,o);jo(e,h,p,d)}else c&&(wk(e,h,c,d),a[t]=void 0)}}const O1=/(?:Once|Passive|Capture)$/;function Ak(e){let t;if(O1.test(e)){t={};let i;for(;i=e.match(O1);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ro(e.slice(2)),t]}let Qd=0;const xk=Promise.resolve(),Ek=()=>Qd||(xk.then(()=>Qd=0),Qd=Date.now());function Ck(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;lr(_k(i,n.value),t,5,[i])};return n.value=e,n.attached=Ek(),n}function _k(e,t){if(qe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const P1=/^on[a-z]/,Sk=(e,t,n,i,o=!1,a,c,h,d)=>{t==="class"?gk(e,i,o):t==="style"?vk(e,n,i):Gf(t)?I0(t)||Dk(e,t,n,i,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fk(e,t,i,o))?bk(e,t,i,a,c,h,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),yk(e,t,i,o))};function Fk(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&P1.test(t)&&Ve(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||P1.test(t)&&Wt(n)?!1:t in e}const Qi="transition",gu="animation",ag=(e,{slots:t})=>il(ux,$k(e),t);ag.displayName="Transition";const Tx={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};ag.props=fn({},ux.props,Tx);const ks=(e,t=[])=>{qe(e)?e.forEach(n=>n(...t)):e&&e(...t)},N1=e=>e?qe(e)?e.some(t=>t.length>1):e.length>1:!1;function $k(e){const t={};for(const z in e)z in Tx||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:c=`${n}-enter-active`,enterToClass:h=`${n}-enter-to`,appearFromClass:d=a,appearActiveClass:p=c,appearToClass:g=h,leaveFromClass:y=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,$=Tk(o),L=$&&$[0],E=$&&$[1],{onBeforeEnter:C,onEnter:S,onEnterCancelled:O,onLeave:B,onLeaveCancelled:k,onBeforeAppear:M=C,onAppear:U=S,onAppearCancelled:j=O}=t,ne=(z,P,F)=>{Ls(z,P?g:h),Ls(z,P?p:c),F&&F()},oe=(z,P)=>{z._isLeaving=!1,Ls(z,y),Ls(z,w),Ls(z,m),P&&P()},Y=z=>(P,F)=>{const D=z?U:S,R=()=>ne(P,z,F);ks(D,[P,R]),I1(()=>{Ls(P,z?d:a),Yi(P,z?g:h),N1(D)||R1(P,i,L,R)})};return fn(t,{onBeforeEnter(z){ks(C,[z]),Yi(z,a),Yi(z,c)},onBeforeAppear(z){ks(M,[z]),Yi(z,d),Yi(z,p)},onEnter:Y(!1),onAppear:Y(!0),onLeave(z,P){z._isLeaving=!0;const F=()=>oe(z,P);Yi(z,y),Bk(),Yi(z,m),I1(()=>{z._isLeaving&&(Ls(z,y),Yi(z,w),N1(B)||R1(z,i,E,F))}),ks(B,[z,F])},onEnterCancelled(z){ne(z,!1),ks(O,[z])},onAppearCancelled(z){ne(z,!0),ks(j,[z])},onLeaveCancelled(z){oe(z),ks(k,[z])}})}function Tk(e){if(e==null)return null;if(St(e))return[Yd(e.enter),Yd(e.leave)];{const t=Yd(e);return[t,t]}}function Yd(e){return NA(e)}function Yi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ls(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function I1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kk=0;function R1(e,t,n,i){const o=e._endId=++kk,a=()=>{o===e._endId&&i()};if(n)return setTimeout(a,n);const{type:c,timeout:h,propCount:d}=Lk(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 Lk(e,t){const n=window.getComputedStyle(e),i=$=>(n[$]||"").split(", "),o=i(`${Qi}Delay`),a=i(`${Qi}Duration`),c=M1(o,a),h=i(`${gu}Delay`),d=i(`${gu}Duration`),p=M1(h,d);let g=null,y=0,m=0;t===Qi?c>0&&(g=Qi,y=c,m=a.length):t===gu?p>0&&(g=gu,y=p,m=d.length):(y=Math.max(c,p),g=y>0?c>p?Qi:gu: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 M1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>z1(n)+z1(e[i])))}function z1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Bk(){return document.body.offsetHeight}const U1=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qe(t)?n=>Qc(t,n):t};function Ok(e){e.target.composing=!0}function H1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pk={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e._assign=U1(o);const a=i||o.props&&o.props.type==="number";jo(e,t?"change":"input",c=>{if(c.target.composing)return;let h=e.value;n&&(h=h.trim()),a&&(h=$p(h)),e._assign(h)}),n&&jo(e,"change",()=>{e.value=e.value.trim()}),t||(jo(e,"compositionstart",Ok),jo(e,"compositionend",H1),jo(e,"change",H1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:o}},a){if(e._assign=U1(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(o||e.type==="number")&&$p(e.value)===t))return;const c=t??"";e.value!==c&&(e.value=c)}},Nk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},qp=(e,t)=>n=>{if(!("key"in n))return;const i=ro(n.key);if(t.some(o=>o===i||Nk[o]===i))return e(n)},jp={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):vu(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),vu(e,!0),i.enter(e)):i.leave(e,()=>{vu(e,!1)}):vu(e,t))},beforeUnmount(e,{value:t}){vu(e,t)}};function vu(e,t){e.style.display=t?e._vod:"none"}const Ik=fn({patchProp:Sk},pk);let q1;function Rk(){return q1||(q1=KT(Ik))}const kx=(...e)=>{const t=Rk().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Mk(i);if(!o)return;const a=t._component;!Ve(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.innerHTML="";const c=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),c},t};function Mk(e){return Wt(e)?document.querySelector(e):e}const so=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},zk={};function Uk(e,t){const n=Zs("RouterView");return de(),Ze(n)}const Hk=so(zk,[["render",Uk]]);/*!
|
|
2
|
-
* vue-router v4.1.6
|
|
3
|
-
* (c) 2022 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/const Vo=typeof window<"u";function qk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const gt=Object.assign;function Zd(e,t){const n={};for(const i in t){const o=t[i];n[i]=Fr(o)?o.map(e):e(o)}return n}const ku=()=>{},Fr=Array.isArray,jk=/\/$/,Vk=e=>e.replace(jk,"");function Jd(e,t,n="/"){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=Xk(i??t,n),{fullPath:i+(a&&"?")+a+c,path:i,query:o,hash:c}}function Wk(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function j1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gk(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&fa(t.matched[i],n.matched[o])&&Lx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Lx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Kk(e[n],t[n]))return!1;return!0}function Kk(e,t){return Fr(e)?V1(e,t):Fr(t)?V1(t,e):e===t}function V1(e,t){return Fr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Xk(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o=n.length-1,a,c;for(a=0;a<i.length;a++)if(c=i[a],c!==".")if(c==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(a-(a===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 Qk(e){if(!e)if(Vo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vk(e)}const Yk=/^[^#]+#/;function Zk(e,t){return e.replace(Yk,"#")+t}function Jk(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const oh=()=>({left:window.pageXOffset,top:window.pageYOffset});function eL(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Jk(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 W1(e,t){return(history.state?history.state.position-t:-1)+e}const Vp=new Map;function tL(e,t){Vp.set(e,t)}function nL(e){const t=Vp.get(e);return Vp.delete(e),t}let rL=()=>location.protocol+"//"+location.host;function Bx(e,t){const{pathname:n,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),j1(d,"")}return j1(n,e)+i+o}function iL(e,t,n,i){let o=[],a=[],c=null;const h=({state:m})=>{const w=Bx(e,location),$=n.value,L=t.value;let E=0;if(m){if(n.value=w,t.value=m,c&&c===$){c=null;return}E=L?m.position-L.position:0}else i(w);o.forEach(C=>{C(n.value,$,{delta:E,type:ju.pop,direction:E?E>0?Lu.forward:Lu.back:Lu.unknown})})};function d(){c=n.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(gt({},m.state,{scroll:oh()}),"")}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),{pauseListeners:d,listen:p,destroy:y}}function G1(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?oh():null}}function sL(e){const{history:t,location:n}=window,i={value:Bx(e,n)},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?(n.host&&document.querySelector("base")?e:e.slice(y))+d:rL()+e+d;try{t[g?"replaceState":"pushState"](p,"",m),o.value=p}catch(w){console.error(w),n[g?"replace":"assign"](m)}}function c(d,p){const g=gt({},t.state,G1(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=gt({},o.value,t.state,{forward:d,scroll:oh()});a(g.current,g,!0);const y=gt({},G1(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 oL(e){e=Qk(e);const t=sL(e),n=iL(e,t.state,t.location,t.replace);function i(a,c=!0){c||n.pauseListeners(),history.go(a)}const o=gt({location:"",base:e,go:i,createHref:Zk.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function aL(e){return typeof e=="string"||e&&typeof e=="object"}function Ox(e){return typeof e=="string"||typeof e=="symbol"}const Zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Px=Symbol("");var K1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(K1||(K1={}));function ha(e,t){return gt(new Error,{type:e,[Px]:!0},t)}function hi(e,t){return e instanceof Error&&Px in e&&(t==null||!!(e.type&t))}const X1="[^/]+?",uL={sensitive:!1,strict:!1,start:!0,end:!0},lL=/[.+*?^${}()[\]/\\]/g;function cL(e,t){const n=gt({},uL,t),i=[];let o=n.start?"^":"";const a=[];for(const p of e){const g=p.length?[]:[90];n.strict&&!p.length&&(o+="/");for(let y=0;y<p.length;y++){const m=p[y];let w=40+(n.sensitive?.25:0);if(m.type===0)y||(o+="/"),o+=m.value.replace(lL,"\\$&"),w+=40;else if(m.type===1){const{value:$,repeatable:L,optional:E,regexp:C}=m;a.push({name:$,repeatable:L,optional:E});const S=C||X1;if(S!==X1){w+=10;try{new RegExp(`(${S})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${$}" (${S}): `+B.message)}}let O=L?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;y||(O=E&&p.length<2?`(?:/${O})`:"/"+O),E&&(O+="?"),o+=O,w+=20,E&&(w+=-8),L&&(w+=-20),S===".*"&&(w+=-50)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const c=new RegExp(o,n.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:L,optional:E}=w,C=$ in p?p[$]:"";if(Fr(C)&&!L)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const S=Fr(C)?C.join("/"):C;if(!S)if(E)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 fL(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}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 hL(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const a=fL(i[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-i.length)===1){if(Q1(i))return 1;if(Q1(o))return-1}return o.length-i.length}function Q1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const dL={type:0,value:""},pL=/[a-zA-Z0-9_]/;function gL(e){if(!e)return[[]];if(e==="/")return[[dL]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=0,i=n;const o=[];let a;function c(){a&&o.push(a),a=[]}let h=0,d,p="",g="";function y(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===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==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:d==="/"?(p&&y(),c()):d===":"?(y(),n=1):m();break;case 4:m(),n=i;break;case 1:d==="("?n=2:pL.test(d)?m():(y(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&h--);break;case 2:d===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+d:n=3:g+=d;break;case 3:y(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&h--,g="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),c(),o}function vL(e,t,n){const i=cL(gL(e.path),n),o=gt(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function mL(e,t){const n=[],i=new Map;t=J1({strict:!1,end:!0,sensitive:!1},t);function o(g){return i.get(g)}function a(g,y,m){const w=!m,$=yL(g);$.aliasOf=m&&m.record;const L=J1(t,g),E=[$];if("alias"in g){const O=typeof g.alias=="string"?[g.alias]:g.alias;for(const B of O)E.push(gt({},$,{components:m?m.record.components:$.components,path:B,aliasOf:m?m.record:$}))}let C,S;for(const O of E){const{path:B}=O;if(y&&B[0]!=="/"){const k=y.record.path,M=k[k.length-1]==="/"?"":"/";O.path=y.record.path+(B&&M+B)}if(C=vL(O,y,L),m?m.alias.push(C):(S=S||C,S!==C&&S.alias.push(C),w&&g.name&&!Z1(C)&&c(g.name)),$.children){const k=$.children;for(let M=0;M<k.length;M++)a(k[M],C,m&&m.children[M])}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(Ox(g)){const y=i.get(g);y&&(i.delete(g),n.splice(n.indexOf(y),1),y.children.forEach(c),y.alias.forEach(c))}else{const y=n.indexOf(g);y>-1&&(n.splice(y,1),g.record.name&&i.delete(g.record.name),g.children.forEach(c),g.alias.forEach(c))}}function h(){return n}function d(g){let y=0;for(;y<n.length&&hL(g,n[y])>=0&&(g.record.path!==n[y].record.path||!Nx(g,n[y]));)y++;n.splice(y,0,g),g.record.name&&!Z1(g)&&i.set(g.record.name,g)}function p(g,y){let m,w={},$,L;if("name"in g&&g.name){if(m=i.get(g.name),!m)throw ha(1,{location:g});L=m.record.name,w=gt(Y1(y.params,m.keys.filter(S=>!S.optional).map(S=>S.name)),g.params&&Y1(g.params,m.keys.map(S=>S.name))),$=m.stringify(w)}else if("path"in g)$=g.path,m=n.find(S=>S.re.test($)),m&&(w=m.parse($),L=m.record.name);else{if(m=y.name?i.get(y.name):n.find(S=>S.re.test(y.path)),!m)throw ha(1,{location:g,currentLocation:y});L=m.record.name,w=gt({},y.params,g.params),$=m.stringify(w)}const E=[];let C=m;for(;C;)E.unshift(C.record),C=C.parent;return{name:L,path:$,params:w,matched:E,meta:wL(E)}}return e.forEach(g=>a(g)),{addRoute:a,resolve:p,removeRoute:c,getRoutes:h,getRecordMatcher:o}}function Y1(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function yL(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bL(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 bL(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="boolean"?n:n[i];return t}function Z1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wL(e){return e.reduce((t,n)=>gt(t,n.meta),{})}function J1(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Nx(e,t){return t.children.some(n=>n===e||Nx(e,n))}const Ix=/#/g,DL=/&/g,AL=/\//g,xL=/=/g,EL=/\?/g,Rx=/\+/g,CL=/%5B/g,_L=/%5D/g,Mx=/%5E/g,SL=/%60/g,zx=/%7B/g,FL=/%7C/g,Ux=/%7D/g,$L=/%20/g;function ug(e){return encodeURI(""+e).replace(FL,"|").replace(CL,"[").replace(_L,"]")}function TL(e){return ug(e).replace(zx,"{").replace(Ux,"}").replace(Mx,"^")}function Wp(e){return ug(e).replace(Rx,"%2B").replace($L,"+").replace(Ix,"%23").replace(DL,"%26").replace(SL,"`").replace(zx,"{").replace(Ux,"}").replace(Mx,"^")}function kL(e){return Wp(e).replace(xL,"%3D")}function LL(e){return ug(e).replace(Ix,"%23").replace(EL,"%3F")}function BL(e){return e==null?"":LL(e).replace(AL,"%2F")}function bf(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function OL(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(Rx," "),c=a.indexOf("="),h=bf(c<0?a:a.slice(0,c)),d=c<0?null:bf(a.slice(c+1));if(h in t){let p=t[h];Fr(p)||(p=t[h]=[p]),p.push(d)}else t[h]=d}return t}function eb(e){let t="";for(let n in e){const i=e[n];if(n=kL(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Fr(i)?i.map(a=>a&&Wp(a)):[i&&Wp(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function PL(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Fr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const NL=Symbol(""),tb=Symbol(""),lg=Symbol(""),Hx=Symbol(""),Gp=Symbol("");function mu(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ns(e,t,n,i,o){const a=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((c,h)=>{const d=y=>{y===!1?h(ha(4,{from:n,to:t})):y instanceof Error?h(y):aL(y)?h(ha(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,n,d);let g=Promise.resolve(p);e.length<3&&(g=g.then(d)),g.catch(y=>h(y))})}function ep(e,t,n,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(IL(h)){const p=(h.__vccOpts||h)[t];p&&o.push(ns(p,n,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=qk(p)?p.default:p;a.components[c]=g;const m=(g.__vccOpts||g)[t];return m&&ns(m,n,i,a,c)()}))}}return o}function IL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nb(e){const t=Ai(lg),n=Ai(Hx),i=xe(()=>t.resolve(Q(e.to))),o=xe(()=>{const{matched:d}=i.value,{length:p}=d,g=d[p-1],y=n.matched;if(!g||!y.length)return-1;const m=y.findIndex(fa.bind(null,g));if(m>-1)return m;const w=rb(d[p-2]);return p>1&&rb(g)===w&&y[y.length-1].path!==w?y.findIndex(fa.bind(null,d[p-2])):m}),a=xe(()=>o.value>-1&&UL(n.params,i.value.params)),c=xe(()=>o.value>-1&&o.value===n.matched.length-1&&Lx(n.params,i.value.params));function h(d={}){return zL(d)?t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(ku):Promise.resolve()}return{route:i,href:xe(()=>i.value.href),isActive:a,isExactActive:c,navigate:h}}const RL=rt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:nb,setup(e,{slots:t}){const n=Zn(nb(e)),{options:i}=Ai(lg),o=xe(()=>({[ib(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[ib(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:il("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),ML=RL;function zL(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 UL(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Fr(o)||o.length!==i.length||i.some((a,c)=>a!==o[c]))return!1}return!0}function rb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ib=(e,t,n)=>e??t??n,HL=rt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Ai(Gp),o=xe(()=>e.route||i.value),a=Ai(tb,0),c=xe(()=>{let p=Q(a);const{matched:g}=o.value;let y;for(;(y=g[p])&&!y.components;)p++;return p}),h=xe(()=>o.value.matched[c.value]);Yc(tb,xe(()=>c.value+1)),Yc(NL,h),Yc(Gp,o);const d=Ke();return Vt(()=>[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||!fa(g,w)||!m)&&(g.enterCallbacks[y]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=o.value,g=e.name,y=h.value,m=y&&y.components[g];if(!m)return sb(n.default,{Component:m,route:p});const w=y.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,E=il(m,gt({},$,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(y.instances[g]=null)},ref:d}));return sb(n.default,{Component:E,route:p})||E}}});function sb(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qL=HL;function jL(e){const t=mL(e.routes,e),n=e.parseQuery||OL,i=e.stringifyQuery||eb,o=e.history,a=mu(),c=mu(),h=mu(),d=_a(Zi);let p=Zi;Vo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Zd.bind(null,ie=>""+ie),y=Zd.bind(null,BL),m=Zd.bind(null,bf);function w(ie,se){let J,fe;return Ox(ie)?(J=t.getRecordMatcher(ie),fe=se):fe=ie,t.addRoute(fe,J)}function $(ie){const se=t.getRecordMatcher(ie);se&&t.removeRoute(se)}function L(){return t.getRoutes().map(ie=>ie.record)}function E(ie){return!!t.getRecordMatcher(ie)}function C(ie,se){if(se=gt({},se||d.value),typeof ie=="string"){const I=Jd(n,ie,se.path),G=t.resolve({path:I.path},se),re=o.createHref(I.fullPath);return gt(I,G,{params:m(G.params),hash:bf(I.hash),redirectedFrom:void 0,href:re})}let J;if("path"in ie)J=gt({},ie,{path:Jd(n,ie.path,se.path).path});else{const I=gt({},ie.params);for(const G in I)I[G]==null&&delete I[G];J=gt({},ie,{params:y(ie.params)}),se.params=y(se.params)}const fe=t.resolve(J,se),Se=ie.hash||"";fe.params=g(m(fe.params));const vt=Wk(i,gt({},ie,{hash:TL(Se),path:fe.path})),ke=o.createHref(vt);return gt({fullPath:vt,hash:Se,query:i===eb?PL(ie.query):ie.query||{}},fe,{redirectedFrom:void 0,href:ke})}function S(ie){return typeof ie=="string"?Jd(n,ie,d.value.path):gt({},ie)}function O(ie,se){if(p!==ie)return ha(8,{from:se,to:ie})}function B(ie){return U(ie)}function k(ie){return B(gt(S(ie),{replace:!0}))}function M(ie){const se=ie.matched[ie.matched.length-1];if(se&&se.redirect){const{redirect:J}=se;let fe=typeof J=="function"?J(ie):J;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=S(fe):{path:fe},fe.params={}),gt({query:ie.query,hash:ie.hash,params:"path"in fe?{}:ie.params},fe)}}function U(ie,se){const J=p=C(ie),fe=d.value,Se=ie.state,vt=ie.force,ke=ie.replace===!0,I=M(J);if(I)return U(gt(S(I),{state:typeof I=="object"?gt({},Se,I.state):Se,force:vt,replace:ke}),se||J);const G=J;G.redirectedFrom=se;let re;return!vt&&Gk(i,fe,J)&&(re=ha(16,{to:G,from:fe}),ge(fe,fe,!0,!1)),(re?Promise.resolve(re):ne(G,fe)).catch(ae=>hi(ae)?hi(ae,2)?ae:ue(ae):V(ae,G,fe)).then(ae=>{if(ae){if(hi(ae,2))return U(gt({replace:ke},S(ae.to),{state:typeof ae.to=="object"?gt({},Se,ae.to.state):Se,force:vt}),se||G)}else ae=Y(G,fe,!0,ke,Se);return oe(G,fe,ae),ae})}function j(ie,se){const J=O(ie,se);return J?Promise.reject(J):Promise.resolve()}function ne(ie,se){let J;const[fe,Se,vt]=VL(ie,se);J=ep(fe.reverse(),"beforeRouteLeave",ie,se);for(const I of fe)I.leaveGuards.forEach(G=>{J.push(ns(G,ie,se))});const ke=j.bind(null,ie,se);return J.push(ke),Oo(J).then(()=>{J=[];for(const I of a.list())J.push(ns(I,ie,se));return J.push(ke),Oo(J)}).then(()=>{J=ep(Se,"beforeRouteUpdate",ie,se);for(const I of Se)I.updateGuards.forEach(G=>{J.push(ns(G,ie,se))});return J.push(ke),Oo(J)}).then(()=>{J=[];for(const I of ie.matched)if(I.beforeEnter&&!se.matched.includes(I))if(Fr(I.beforeEnter))for(const G of I.beforeEnter)J.push(ns(G,ie,se));else J.push(ns(I.beforeEnter,ie,se));return J.push(ke),Oo(J)}).then(()=>(ie.matched.forEach(I=>I.enterCallbacks={}),J=ep(vt,"beforeRouteEnter",ie,se),J.push(ke),Oo(J))).then(()=>{J=[];for(const I of c.list())J.push(ns(I,ie,se));return J.push(ke),Oo(J)}).catch(I=>hi(I,8)?I:Promise.reject(I))}function oe(ie,se,J){for(const fe of h.list())fe(ie,se,J)}function Y(ie,se,J,fe,Se){const vt=O(ie,se);if(vt)return vt;const ke=se===Zi,I=Vo?history.state:{};J&&(fe||ke?o.replace(ie.fullPath,gt({scroll:ke&&I&&I.scroll},Se)):o.push(ie.fullPath,Se)),d.value=ie,ge(ie,se,J,ke),ue()}let z;function P(){z||(z=o.listen((ie,se,J)=>{if(!Xe.listening)return;const fe=C(ie),Se=M(fe);if(Se){U(gt(Se,{replace:!0}),fe).catch(ku);return}p=fe;const vt=d.value;Vo&&tL(W1(vt.fullPath,J.delta),oh()),ne(fe,vt).catch(ke=>hi(ke,12)?ke:hi(ke,2)?(U(ke.to,fe).then(I=>{hi(I,20)&&!J.delta&&J.type===ju.pop&&o.go(-1,!1)}).catch(ku),Promise.reject()):(J.delta&&o.go(-J.delta,!1),V(ke,fe,vt))).then(ke=>{ke=ke||Y(fe,vt,!1),ke&&(J.delta&&!hi(ke,8)?o.go(-J.delta,!1):J.type===ju.pop&&hi(ke,20)&&o.go(-1,!1)),oe(fe,vt,ke)}).catch(ku)}))}let F=mu(),D=mu(),R;function V(ie,se,J){ue(ie);const fe=D.list();return fe.length?fe.forEach(Se=>Se(ie,se,J)):console.error(ie),Promise.reject(ie)}function Z(){return R&&d.value!==Zi?Promise.resolve():new Promise((ie,se)=>{F.add([ie,se])})}function ue(ie){return R||(R=!ie,P(),F.list().forEach(([se,J])=>ie?J(ie):se()),F.reset()),ie}function ge(ie,se,J,fe){const{scrollBehavior:Se}=e;if(!Vo||!Se)return Promise.resolve();const vt=!J&&nL(W1(ie.fullPath,0))||(fe||!J)&&history.state&&history.state.scroll||null;return Ci().then(()=>Se(ie,se,vt)).then(ke=>ke&&eL(ke)).catch(ke=>V(ke,ie,se))}const $e=ie=>o.go(ie);let _e;const ze=new Set,Xe={currentRoute:d,listening:!0,addRoute:w,removeRoute:$,hasRoute:E,getRoutes:L,resolve:C,options:e,push:B,replace:k,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:a.add,beforeResolve:c.add,afterEach:h.add,onError:D.add,isReady:Z,install(ie){const se=this;ie.component("RouterLink",ML),ie.component("RouterView",qL),ie.config.globalProperties.$router=se,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(d)}),Vo&&!_e&&d.value===Zi&&(_e=!0,B(o.location).catch(Se=>{}));const J={};for(const Se in Zi)J[Se]=xe(()=>d.value[Se]);ie.provide(lg,se),ie.provide(Hx,Zn(J)),ie.provide(Gp,d);const fe=ie.unmount;ze.add(ie),ie.unmount=function(){ze.delete(ie),ze.size<1&&(p=Zi,z&&z(),z=null,d.value=Zi,_e=!1,R=!1),fe()}}};return Xe}function Oo(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function VL(e,t){const n=[],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=>fa(p,h))?i.push(h):n.push(h));const d=e.matched[c];d&&(t.matched.find(p=>fa(p,d))||o.push(d))}return[n,i,o]}function Bi(e){return e.split("-")[0]}function ea(e){return e.split("-")[1]}function sl(e){return["top","bottom"].includes(Bi(e))?"x":"y"}function cg(e){return e==="y"?"height":"width"}function ob(e){let{reference:t,floating:n,placement:i}=e;const o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2;let c;switch(Bi(i)){case"top":c={x:o,y:t.y-n.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-n.width,y:a};break;default:c={x:t.x,y:t.y}}const h=sl(i),d=cg(h);switch(ea(i)){case"start":c[h]=c[h]-(t[d]/2-n[d]/2);break;case"end":c[h]=c[h]+(t[d]/2-n[d]/2);break}return c}const WL=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:a=[],platform:c}=n;let h=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=ob({...h,placement:i}),g=i,y={};for(let m=0;m<a.length;m++){const{name:w,fn:$}=a[m],{x:L,y:E,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=L??d,p=E??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}=ob({...h,placement:g})),m=-1;continue}}return{x:d,y:p,placement:g,strategy:o,middlewareData:y}};function GL(e){return{top:0,right:0,bottom:0,left:0,...e}}function qx(e){return typeof e!="number"?GL(e):{top:e,right:e,bottom:e,left:e}}function Kp(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ah(e,t){t===void 0&&(t={});const{x:n,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=qx(m),L=c[y?g==="floating"?"reference":"floating":g],E=await o.getClippingClientRect({element:await o.isElement(L)?L:L.contextElement||await o.getDocumentElement({element:c.floating}),boundary:d,rootBoundary:p}),C=Kp(await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g==="floating"?{...a.floating,x:n,y:i}:a.reference,offsetParent:await o.getOffsetParent({element:c.floating}),strategy:h}));return{top:E.top-C.top+w.top,bottom:C.bottom-E.bottom+w.bottom,left:E.left-C.left+w.left,right:C.right-E.right+w.right}}const KL=Math.min,Ns=Math.max;function Xp(e,t,n){return Ns(e,KL(t,n))}const XL=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e??{},{x:o,y:a,placement:c,rects:h,platform:d}=t;if(n==null)return{};const p=qx(i),g={x:o,y:a},y=Bi(c),m=sl(y),w=cg(m),$=await d.getDimensions({element:n}),L=m==="y"?"top":"left",E=m==="y"?"bottom":"right",C=h.reference[w]+h.reference[m]-g[m]-h.floating[w],S=g[m]-h.reference[m],O=await d.getOffsetParent({element:n}),B=O?m==="y"?O.clientHeight||0:O.clientWidth||0:0,k=C/2-S/2,M=p[L],U=B-$[w]-p[E],j=B/2-$[w]/2+k,ne=Xp(M,j,U);return{data:{[m]:ne,centerOffset:j-ne}}}}),QL={left:"right",right:"left",bottom:"top",top:"bottom"};function wf(e){return e.replace(/left|right|bottom|top/g,t=>QL[t])}function jx(e,t){const n=ea(e)==="start",i=sl(e),o=cg(i);let a=i==="x"?n?"right":"left":n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=wf(a)),{main:a,cross:wf(a)}}const YL={start:"end",end:"start"};function Qp(e){return e.replace(/start|end/g,t=>YL[t])}const ZL=["top","right","bottom","left"],JL=ZL.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function eB(e,t,n){return(e?[...n.filter(o=>ea(o)===e),...n.filter(o=>ea(o)!==e)]:n.filter(o=>Bi(o)===o)).filter(o=>e?ea(o)===e||(t?Qp(o)!==o:!1):!0)}const tB=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o,a,c,h;const{x:d,y:p,rects:g,middlewareData:y,placement:m}=t,{alignment:w=null,allowedPlacements:$=JL,autoAlignment:L=!0,...E}=e;if((n=y.autoPlacement)!=null&&n.skip)return{};const C=eB(w,L,$),S=await ah(t,E),O=(i=(o=y.autoPlacement)==null?void 0:o.index)!=null?i:0,B=C[O],{main:k,cross:M}=jx(B,g);if(m!==B)return{x:d,y:p,reset:{placement:C[0]}};const U=[S[Bi(B)],S[k],S[M]],j=[...(a=(c=y.autoPlacement)==null?void 0:c.overflows)!=null?a:[],{placement:B,overflows:U}],ne=C[O+1];if(ne)return{data:{index:O+1,overflows:j},reset:{placement:ne}};const oe=j.slice().sort((z,P)=>z.overflows[0]-P.overflows[0]),Y=(h=oe.find(z=>{let{overflows:P}=z;return P.every(F=>F<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:Y??oe[0].placement}}}}};function nB(e){const t=wf(e);return[Qp(e),t,Qp(t)]}const rB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:a,rects:c,initialPlacement:h}=t;if((n=a.flip)!=null&&n.skip)return{};const{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",flipAlignment:m=!0,...w}=e,$=Bi(o),E=g||($===h||!m?[wf(h)]:nB(h)),C=[h,...E],S=await ah(t,w),O=[];let B=((i=a.flip)==null?void 0:i.overflows)||[];if(d&&O.push(S[$]),p){const{main:j,cross:ne}=jx(o,c);O.push(S[j],S[ne])}if(B=[...B,{placement:o,overflows:O}],!O.every(j=>j<=0)){var k,M;const j=((k=(M=a.flip)==null?void 0:M.index)!=null?k:0)+1,ne=C[j];if(ne)return{data:{index:j,overflows:B},reset:{placement:ne}};let oe="bottom";switch(y){case"bestFit":{var U;const Y=(U=B.slice().sort((z,P)=>z.overflows.filter(F=>F>0).reduce((F,D)=>F+D,0)-P.overflows.filter(F=>F>0).reduce((F,D)=>F+D,0))[0])==null?void 0:U.placement;Y&&(oe=Y);break}case"initialPlacement":oe=h;break}return{data:{skip:!0},reset:{placement:oe}}}return{}}}};function iB(e){let{placement:t,rects:n,value:i}=e;const o=Bi(t),a=["left","top"].includes(o)?-1:1,c=typeof i=="function"?i({...n,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 sB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:i,placement:o,rects:a}=t,c=iB({placement:o,rects:a,value:e});return{x:n+c.x,y:i+c.y,data:c}}}};function oB(e){return e==="x"?"y":"x"}const aB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:h={fn:E=>{let{x:C,y:S}=E;return{x:C,y:S}}},...d}=e,p={x:n,y:i},g=await ah(t,d),y=sl(Bi(o)),m=oB(y);let w=p[y],$=p[m];if(a){const E=y==="y"?"top":"left",C=y==="y"?"bottom":"right",S=w+g[E],O=w-g[C];w=Xp(S,w,O)}if(c){const E=m==="y"?"top":"left",C=m==="y"?"bottom":"right",S=$+g[E],O=$-g[C];$=Xp(S,$,O)}const L=h.fn({...t,[y]:w,[m]:$});return{...L,data:{x:L.x-n,y:L.y-i}}}}},uB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:i,rects:o,middlewareData:a}=t,{apply:c,...h}=e;if((n=a.size)!=null&&n.skip)return{};const d=await ah(t,h),p=Bi(i),g=ea(i)==="end";let y,m;p==="top"||p==="bottom"?(y=p,m=g?"left":"right"):(m=p,y=g?"top":"bottom");const w=Ns(d.left,0),$=Ns(d.right,0),L=Ns(d.top,0),E=Ns(d.bottom,0),C={height:o.floating.height-(["left","right"].includes(i)?2*(L!==0||E!==0?L+E:Ns(d.top,d.bottom)):d[y]),width:o.floating.width-(["top","bottom"].includes(i)?2*(w!==0||$!==0?w+$:Ns(d.left,d.right)):d[m])};return c==null||c({...C,...o}),{data:{skip:!0},reset:{rects:!0}}}}};function fg(e){return(e==null?void 0:e.toString())==="[object Window]"}function gs(e){if(e==null)return window;if(!fg(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function uh(e){return gs(e).getComputedStyle(e)}function _i(e){return fg(e)?"":e?(e.nodeName||"").toLowerCase():""}function Si(e){return e instanceof gs(e).HTMLElement}function Df(e){return e instanceof gs(e).Element}function lB(e){return e instanceof gs(e).Node}function Vx(e){const t=gs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lh(e){const{overflow:t,overflowX:n,overflowY:i}=uh(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function cB(e){return["table","td","th"].includes(_i(e))}function Wx(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=uh(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}const ab=Math.min,Bu=Math.max,Af=Math.round;function da(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let i=1,o=1;return t&&Si(e)&&(i=e.offsetWidth>0&&Af(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Af(n.height)/e.offsetHeight||1),{width:n.width/i,height:n.height/o,top:n.top/o,right:n.right/i,bottom:n.bottom/o,left:n.left/i,x:n.left/i,y:n.top/o}}function vs(e){return((lB(e)?e.ownerDocument:e.document)||window.document).documentElement}function ch(e){return fg(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gx(e){return da(vs(e)).left+ch(e).scrollLeft}function fB(e){const t=da(e);return Af(t.width)!==e.offsetWidth||Af(t.height)!==e.offsetHeight}function hB(e,t,n){const i=Si(t),o=vs(t),a=da(e,i&&fB(t));let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(i||!i&&n!=="fixed")if((_i(t)!=="body"||lh(o))&&(c=ch(t)),Si(t)){const d=da(t,!0);h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}else o&&(h.x=Gx(o));return{x:a.left+c.scrollLeft-h.x,y:a.top+c.scrollTop-h.y,width:a.width,height:a.height}}function fh(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(Vx(e)?e.host:null)||vs(e)}function ub(e){return!Si(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function dB(e){let t=fh(e);for(;Si(t)&&!["html","body"].includes(_i(t));){if(Wx(t))return t;t=t.parentNode}return null}function Yp(e){const t=gs(e);let n=ub(e);for(;n&&cB(n)&&getComputedStyle(n).position==="static";)n=ub(n);return n&&(_i(n)==="html"||_i(n)==="body"&&getComputedStyle(n).position==="static"&&!Wx(n))?t:n||dB(e)||t}function lb(e){return{width:e.offsetWidth,height:e.offsetHeight}}function pB(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=Si(n),a=vs(n);if(n===a)return t;let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((o||!o&&i!=="fixed")&&((_i(n)!=="body"||lh(a))&&(c=ch(n)),Si(n))){const d=da(n,!0);h.x=d.x+n.clientLeft,h.y=d.y+n.clientTop}return{...t,x:t.x-c.scrollLeft+h.x,y:t.y-c.scrollTop+h.y}}function gB(e){const t=gs(e),n=vs(e),i=t.visualViewport;let o=n.clientWidth,a=n.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 vB(e){var t;const n=vs(e),i=ch(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Bu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Bu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let h=-i.scrollLeft+Gx(e);const d=-i.scrollTop;return uh(o||n).direction==="rtl"&&(h+=Bu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:c,x:h,y:d}}function Kx(e){return["html","body","#document"].includes(_i(e))?e.ownerDocument.body:Si(e)&&lh(e)?e:Kx(fh(e))}function xf(e,t){var n;t===void 0&&(t=[]);const i=Kx(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=gs(i),c=o?[a].concat(a.visualViewport||[],lh(i)?i:[]):i,h=t.concat(c);return o?h:h.concat(xf(fh(c)))}function mB(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Vx(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function yB(e){const t=da(e),n=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function cb(e,t){return t==="viewport"?Kp(gB(e)):Df(t)?yB(t):Kp(vB(vs(e)))}function bB(e){const t=xf(fh(e)),i=["absolute","fixed"].includes(uh(e).position)&&Si(e)?Yp(e):e;return Df(i)?t.filter(o=>Df(o)&&mB(o,i)&&_i(o)!=="body"):[]}function wB(e){let{element:t,boundary:n,rootBoundary:i}=e;const a=[...n==="clippingParents"?bB(t):[].concat(n),i],c=a[0],h=a.reduce((d,p)=>{const g=cb(t,p);return d.top=Bu(g.top,d.top),d.right=ab(g.right,d.right),d.bottom=ab(g.bottom,d.bottom),d.left=Bu(g.left,d.left),d},cb(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 DB={getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:hB(t,Yp(n),i),floating:{...lb(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>pB(e),getOffsetParent:e=>{let{element:t}=e;return Yp(t)},isElement:e=>Df(e),getDocumentElement:e=>{let{element:t}=e;return vs(t)},getClippingClientRect:e=>wB(e),getDimensions:e=>{let{element:t}=e;return lb(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},AB=(e,t,n)=>WL(e,t,{platform:DB,...n});var xB=Object.defineProperty,EB=Object.defineProperties,CB=Object.getOwnPropertyDescriptors,fb=Object.getOwnPropertySymbols,_B=Object.prototype.hasOwnProperty,SB=Object.prototype.propertyIsEnumerable,hb=(e,t,n)=>t in e?xB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wi=(e,t)=>{for(var n in t||(t={}))_B.call(t,n)&&hb(e,n,t[n]);if(fb)for(var n of fb(t))SB.call(t,n)&&hb(e,n,t[n]);return e},ol=(e,t)=>EB(e,CB(t));function Xx(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Xx(e[n],t[n]):e[n]=t[n])}const Qs={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 pa(e,t){let n=Qs.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=Qs.themes[n.$extend]||{}:(n=null,i=Qs[t]):n=null;while(n);return i}function FB(e){const t=[e];let n=Qs.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Qs.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}let ga=!1;if(typeof window<"u"){ga=!1;try{const e=Object.defineProperty({},"passive",{get(){ga=!0}});window.addEventListener("test",null,e)}catch{}}let Qx=!1;typeof window<"u"&&typeof navigator<"u"&&(Qx=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Yx=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),db={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},pb={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function $B(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function tp(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Wr=[];let Po=null,Zp=function(){};typeof window<"u"&&(Zp=window.Element);function pt(e){return function(t){return pa(t.theme,e)}}var Zx=()=>rt({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:pt("disabled")},placement:{type:String,default:pt("placement"),validator:e=>Yx.includes(e)},delay:{type:[String,Number,Object],default:pt("delay")},distance:{type:[Number,String],default:pt("distance")},skidding:{type:[Number,String],default:pt("skidding")},triggers:{type:Array,default:pt("triggers")},showTriggers:{type:[Array,Function],default:pt("showTriggers")},hideTriggers:{type:[Array,Function],default:pt("hideTriggers")},popperTriggers:{type:Array,default:pt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:pt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:pt("popperHideTriggers")},container:{type:[String,Object,Zp,Boolean],default:pt("container")},boundary:{type:[String,Zp],default:pt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:pt("strategy")},autoHide:{type:Boolean,default:pt("autoHide")},handleResize:{type:Boolean,default:pt("handleResize")},instantMove:{type:Boolean,default:pt("instantMove")},eagerMount:{type:Boolean,default:pt("eagerMount")},popperClass:{type:[String,Array,Object],default:pt("popperClass")},computeTransformOrigin:{type:Boolean,default:pt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:pt("autoMinSize")},autoMaxSize:{type:Boolean,default:pt("autoMaxSize")},preventOverflow:{type:Boolean,default:pt("preventOverflow")},overflowPadding:{type:[Number,String],default:pt("overflowPadding")},arrowPadding:{type:[Number,String],default:pt("arrowPadding")},arrowOverflow:{type:Boolean,default:pt("arrowOverflow")},flip:{type:Boolean,default:pt("flip")},shift:{type:Boolean,default:pt("shift")},shiftCrossAxis:{type:Boolean,default:pt("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:n=!1}={}){(n||!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(sB({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");n?t.middleware.push(tB({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(aB({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(rB({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(XL({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(uB({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 AB(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),Po&&this.instantMove&&Po.instantMove){Po.$_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&&(Po=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await tp(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(i.left+n.offsetLeft),a=t.y+t.height/2-(i.top+n.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 n=0;n<Wr.length;n++)t=Wr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Wr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await tp(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(e=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,$B(Wr,this),Po===this&&(Po=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=pa(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 tp(),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,ga?{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)})},n=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};t(this.$_targetNodes,db,this.triggers,this.showTriggers,n),t([this.$_popperNode],db,this.popperTriggers,this.popperShowTriggers,n);const i=o=>{o.usedByTooltip||this.hide({event:o})};t(this.$_targetNodes,pb,this.triggers,this.hideTriggers,i),t([this.$_popperNode],pb,this.popperTriggers,this.popperHideTriggers,i),e([...xf(this.$_referenceNode),...xf(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:e,eventType:t,handler:n})=>{e.forEach(i=>i.removeEventListener(t,n))}),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 n of this.$_targetNodes){const i=n.getAttribute(e);i&&(n.removeAttribute(e),n.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const i=e[n];i==null?t.removeAttribute(n):t.setAttribute(n,i)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(Qx?(document.addEventListener("touchstart",gb,ga?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",kB,ga?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",gb,!0),window.addEventListener("click",TB,!0)),window.addEventListener("resize",LB));function gb(e){for(let t=0;t<Wr.length;t++){const n=Wr[t],i=n.popperNode();n.$_mouseDownContains=i.contains(e.target)}}function TB(e){Jx(e)}function kB(e){Jx(e,!0)}function Jx(e,t=!1){for(let n=0;n<Wr.length;n++){const i=Wr[n],o=i.popperNode(),a=i.$_mouseDownContains||o.contains(e.target);requestAnimationFrame(()=>{(e.closeAllPopover||e.closePopover&&a||i.autoHide&&!a)&&i.$_handleGlobalClose(e,t)})}}function LB(e){for(let t=0;t<Wr.length;t++)Wr[t].$_computePosition(e)}function BB(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>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 Jp(){Jp.init||(Jp.init=!0,Jc=BB()!==-1)}var hh={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Jp(),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 OB=aT();sx("data-v-b329ee4c");const PB={class:"resize-observer",tabindex:"-1"};ox();const NB=OB((e,t,n,i,o,a)=>(de(),Ze("div",PB)));hh.render=NB;hh.__scopeId="data-v-b329ee4c";hh.__file="src/components/ResizeObserver.vue";var eE={computed:{themeClass(){return FB(this.theme)}}},hg=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const IB=rt({name:"VPopperContent",components:{ResizeObserver:hh},mixins:[eE],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}}}),RB=["id","aria-hidden","tabindex","data-popper-placement"],MB={ref:"inner",class:"v-popper__inner"},zB=pe("div",{class:"v-popper__arrow-outer"},null,-1),UB=pe("div",{class:"v-popper__arrow-inner"},null,-1),HB=[zB,UB];function qB(e,t,n,i,o,a){const c=Zs("ResizeObserver");return de(),Te("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:Un({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]=qp(h=>e.autoHide&&e.$emit("hide"),["esc"]))},[pe("div",{class:"v-popper__wrapper",style:Un({transformOrigin:e.result.transformOrigin})},[pe("div",MB,[e.mounted?(de(),Te(ht,{key:0},[pe("div",null,[Sr(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:Un({left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)})},HB,4)],4)],46,RB)}var tE=hg(IB,[["render",qB]]),nE={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 jB=rt({name:"VPopperWrapper",components:{Popper:Zx(),PopperContent:tE},mixins:[nE,eE],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 VB(e,t,n,i,o,a){const c=Zs("PopperContent"),h=Zs("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:L,onResize:E,classes:C,result:S})=>[pe("div",{ref:"reference",class:yt(["v-popper",[e.$attrs.class,e.themeClass,{"v-popper--shown":p}]]),style:Un(e.$attrs.style)},[Sr(e.$slots,"default",{shown:p,show:w,hide:$}),Me(c,{ref:"popperContent","popper-id":d,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":y,"auto-hide":m,"handle-resize":L,classes:C,result:S,onHide:$,onResize:E},{default:Ye(()=>[Sr(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 dg=hg(jB,[["render",VB]]);const vb=rt(ol(wi({},dg),{name:"VDropdown",vPopperTheme:"dropdown"})),mb=rt(ol(wi({},dg),{name:"VMenu",vPopperTheme:"menu"})),e0=rt(ol(wi({},dg),{name:"VTooltip",vPopperTheme:"tooltip"})),WB=rt({name:"VTooltipDirective",components:{Popper:Zx(),PopperContent:tE},mixins:[nE],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>pa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>pa(e.theme,"loadingContent")}},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,n=this.content(this);n.then?n.then(i=>this.onResult(t,i)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),GB=["innerHTML"],KB=["textContent"];function XB(e,t,n,i,o,a){const c=Zs("PopperContent"),h=Zs("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:L,classes:E,result:C})=>[Me(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:E,result:C,onHide:w,onResize:L},{default:Ye(()=>[e.html?(de(),Te("div",{key:0,innerHTML:e.finalContent},null,8,GB)):(de(),Te("div",{key:1,textContent:Je(e.finalContent)},null,8,KB))]),_: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 QB=hg(WB,[["render",XB]]);const rE="v-popper--has-tooltip";function YB(e,t){let n=e.placement;if(!n&&t)for(const i of Yx)t[i]&&(n=i);return n||(n=pa(e.theme||"tooltip","placement")),n}function iE(e,t,n){let i;const o=typeof t;return o==="string"?i={content:t}:t&&o==="object"?i=t:i={content:!1},i.placement=YB(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let np,Vu,ZB=0;function JB(){if(np)return;Vu=Ke([]),np=kx({name:"VTooltipDirectiveApp",setup(){return{directives:Vu}},render(){return this.directives.map(t=>il(QB,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 sE(e,t,n){JB();const i=Ke(iE(e,t,n)),o=Ke(!1),a={id:ZB++,options:i,shown:o};return Vu.value.push(a),e.classList&&e.classList.add(rE),e.$_popper={options:i,item:a,show(){o.value=!0},hide(){o.value=!1}}}function pg(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(rE)}function yb(e,{value:t,oldValue:n,modifiers:i}){const o=iE(e,t,i);if(!o.content||pa(o.theme||"tooltip","disabled"))pg(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=sE(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var oE={beforeMount:yb,updated:yb,beforeUnmount(e){pg(e)}};function bb(e){e.addEventListener("click",aE),e.addEventListener("touchstart",uE,ga?{passive:!0}:!1)}function wb(e){e.removeEventListener("click",aE),e.removeEventListener("touchstart",uE),e.removeEventListener("touchend",lE),e.removeEventListener("touchcancel",cE)}function aE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function uE(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",lE),t.addEventListener("touchcancel",cE)}}function lE(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-i.screenY)<20&&Math.abs(n.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function cE(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var e3={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&bb(e)},updated(e,{value:t,oldValue:n,modifiers:i}){e.$_closePopoverModifiers=i,t!==n&&(typeof t>"u"||t?bb(e):wb(e))},beforeUnmount(e){wb(e)}};const t3=oE,n3=e0;function r3(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Xx(Qs,t),e.directive("tooltip",oE),e.directive("close-popper",e3),e.component("v-tooltip",e0),e.component("VTooltip",e0),e.component("v-dropdown",vb),e.component("VDropdown",vb),e.component("v-menu",mb),e.component("VMenu",mb))}const fE={version:"2.0.0-y.0",install:r3,options:Qs},i3=6e4;function s3(e,t){const{post:n,on:i,eventNames:o=[],serialize:a=g=>g,deserialize:c=g=>g,timeout:h=i3}=t,d=new Map,p=new Proxy({},{get(g,y){const m=(...$)=>{n(a({m:y,a:$,t:"q"}))};if(o.includes(y))return m.asEvent=m,m;const w=(...$)=>new Promise((L,E)=>{const C=a3();d.set(C,{resolve:L,reject:E}),n(a({m:y,a:$,i:C,t:"q"})),h>=0&&setTimeout(()=>{E(new Error(`[birpc] timeout on calling "${y}"`)),d.delete(C)},h)});return w.asEvent=m,w}});return i(async(g,...y)=>{const m=c(g);if(m.t==="q"){const{m:w,a:$}=m;let L,E;try{L=await e[w].apply(p,$)}catch(C){E=C}m.i&&n(a({t:"s",i:m.i,r:L,e:E}),...y)}else{const{i:w,r:$,e:L}=m,E=d.get(w);L?E==null||E.reject(L):E==null||E.resolve($),d.delete(w)}}),p}const o3="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function a3(e=21){let t="",n=e;for(;n--;)t+=o3[Math.random()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:u3,stringify:l3}=JSON,{keys:c3}=Object,Wu=String,hE="string",Db={},Ef="object",dE=(e,t)=>t,f3=e=>e instanceof Wu?Wu(e):e,h3=(e,t)=>typeof t===hE?new Wu(t):t,pE=(e,t,n,i)=>{const o=[];for(let a=c3(n),{length:c}=a,h=0;h<c;h++){const d=a[h],p=n[d];if(p instanceof Wu){const g=e[p];typeof g===Ef&&!t.has(g)?(t.add(g),n[d]=Db,o.push({k:d,a:[e,t,g,i]})):n[d]=i.call(n,d,g)}else n[d]!==Db&&(n[d]=i.call(n,d,p))}for(let{length:a}=o,c=0;c<a;c++){const{k:h,a:d}=o[c];n[h]=i.call(n,h,pE.apply(null,d))}return n},Ab=(e,t,n)=>{const i=Wu(t.push(n)-1);return e.set(n,i),i},t0=(e,t)=>{const n=u3(e,h3).map(f3),i=n[0],o=t||dE,a=typeof i===Ef&&i?pE(n,new Set,i,o):i;return o.call({"":a},"",a)},d3=(e,t,n)=>{const i=t&&typeof t===Ef?(g,y)=>g===""||-1<t.indexOf(g)?y:void 0:t||dE,o=new Map,a=[],c=[];let h=+Ab(o,a,i.call({"":e},"",e)),d=!h;for(;h<a.length;)d=!0,c[h]=l3(a[h++],p,n);return"["+c.join(",")+"]";function p(g,y){if(d)return d=!d,y;const m=i.call(this,g,y);switch(typeof m){case Ef:if(m===null)return m;case hE:return o.get(m)||Ab(o,a,m)}return m}};function p3(e=""){return!e||!e.includes("\\")?e:e.replace(/\\/g,"/")}const g3=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function v3(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const xb=function(...e){e=e.map(i=>p3(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:v3();!o||o.length===0||(t=`${o}/${t}`,n=Eb(o))}return t=m3(t,!n),n&&!Eb(t)?`/${t}`:t.length>0?t:"."};function m3(e,t){let n="",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(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const d=n.lastIndexOf("/");d===-1?(n="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),o=h,a=0;continue}else if(n.length>0){n="",i=0,o=h,a=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,h)}`:n=e.slice(o+1,h),i=h-o-1;o=h,a=0}else c==="."&&a!==-1?++a:a=-1}return n}const Eb=function(e){return g3.test(e)},y3=function(e,t){const n=xb(e).split("/"),i=xb(t).split("/"),o=[...n];for(const a of o){if(i[0]!==a)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")};function b3(e){return typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e}class gE{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,n){if(b3(t))return t.errors.forEach(i=>this.catchError(i,n));t.type=n,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(n=>this.filesMap.get(n)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const o=(this.filesMap.get(n.filepath)||[]).filter(a=>a.projectName!==n.projectName);o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){n.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(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i]of t)this.idMap.has(n)&&(this.idMap.get(n).result=i)}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"}).length}cancelFiles(t,n){this.collectFiles(t.map(i=>({filepath:i,name:y3(n,i),id:i,mode:"skip",type:"suite",result:{state:"skip"},tasks:[]})))}}function vE(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const w3=Symbol("vitest:SAFE_COLORS"),D3={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"]},A3=Object.entries(D3);function gg(e){return String(e)}gg.open="";gg.close="";const x3=A3.reduce((e,[t])=>(e[t]=gg,e),{isColorSupported:!1});function mE(){return globalThis[w3]||x3}var cr={},vg={};let E3=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 mg=E3;const C3=Symbol("AMBIGUOUS"),_3=Symbol("DEEP_EQUAL"),S3=Symbol("SHALLOW_EQUAL"),F3=Symbol("UNEQUAL");var bt={AMBIGUOUS:C3,DEEP_EQUAL:_3,SHALLOW_EQUAL:S3,UNEQUAL:F3};let $3=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 T3=$3,Fa={},Jt={},Ht={};const xr=Symbol("lineBuilder.gutters.ACTUAL"),jr=Symbol("lineBuilder.gutters.EXPECTED");function k3(e,t,n){if(t){if(n===xr)return e.diffGutters.expected;if(n===jr)return e.diffGutters.actual}else{if(n===xr)return e.diffGutters.actual;if(n===jr)return e.diffGutters.expected}return e.diffGutters.padding}class Zt{constructor(t,n,i,o){this.isFirst=t,this.isLast=n,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:k3(t.theme,t.invert,this.gutter)+this.stringValue}mergeWithInfix(t,n){return n.isLine!==!0?new zt().append(this).mergeWithInfix(t,n):new Zt(this.isFirst,n.isLast,n.gutter,this.stringValue+t+n.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 n of t)yield n}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 n=this;if(t.invert){n=new zt;let i=new zt,o=null;for(const a of this)a.gutter===xr?(o!==null&&o.gutter!==xr&&!i.isEmpty&&(n.append(i),i=new zt),i.append(a)):(a.gutter===jr||i.isEmpty||(n.append(i),i=new zt),n.append(a)),o=a;n.append(i)}return Array.from(n,i=>i.toString(t)).join(`
|
|
6
|
-
`)}mergeWithInfix(t,n){if(n.isEmpty)throw new Error("Cannot merge, `from` is empty.");const i=Array.from(n);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,n=>n.withFirstPrefixed(t)))}withLastPostfixed(t){return new zt().append(Array.from(this,n=>n.withLastPostfixed(t)))}stripFlags(){return new zt().append(Array.from(this,t=>t.stripFlags()))}decompose(){const t={actual:new zt,expected:new zt},n={actual:new zt,expected:new zt},i=new zt;for(const o of this)o.isFirst&&o.gutter===xr?t.actual.append(o):o.isFirst&&o.gutter===jr?t.expected.append(o):o.isLast&&o.gutter===xr?n.actual.append(o):o.isLast&&o.gutter===jr?n.expected.append(o):i.append(o);return{first:t,last:n,remaining:i}}}Object.defineProperty(zt.prototype,"isCollection",{value:!0});function Cb(e,t){return new zt().append(Array.from(e,n=>n.gutter===null?new Zt(n.isFirst,n.isLast,t,n.stringValue):n))}var en={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,xr,e)},last(e){return new Zt(!1,!0,xr,e)},line(e){return new Zt(!1,!1,xr,e)},single(e){return new Zt(!0,!0,xr,e)},setDefaultGutter(e){return Cb(e,xr)}},expected:{first(e){return new Zt(!0,!1,jr,e)},last(e){return new Zt(!1,!0,jr,e)},line(e){return new Zt(!1,!1,jr,e)},single(e){return new Zt(!0,!0,jr,e)},setDefaultGutter(e){return Cb(e,jr)}}};const Wo=en;function ef(e,t){return e.open+t+e.close}Ht.wrap=ef;function n0(e,t){if(!t.ctor)return ef(e.object.stringTag,t.stringTag);let n=ef(e.object.ctor,t.ctor);return t.stringTag&&t.stringTag!==t.ctor&&t.stringTag!=="Object"&&(n+=" "+ef(e.object.secondaryStringTag,t.stringTag)),n}Ht.formatCtorAndStringTag=n0;let L3=class{constructor(t,n,i){this.object=t,this.theme=n,this.indent=i,this.increaseIndent=!0,this.innerLines=Wo.buffer(),this.pendingStats=null}append(t,n){n.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,n=this.object.ctor,i=this.object.stringTag,o=(n==="Array"||n==="Object")&&n===i?"":n0(this.theme,this.object)+" ";return this.innerLines.isEmpty?Wo.single(o+t.openBracket+t.closeBracket):Wo.first(o+t.openBracket).concat(this.innerLines.withFirstPrefixed(this.indent.increase()).stripFlags()).append(Wo.last(this.indent+t.closeBracket))}maxDepth(){const t=this.object.isList?this.theme.list:this.theme.object;return Wo.single(n0(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}};Ht.ObjectFormatter=L3;class B3{constructor(t,n,i){this.theme=t,this.finalizeFn=n,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(Wo.single(this.theme.maxDepth))}}Ht.SingleValueFormatter=B3;function O3(e,t){const n=[];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&&(n[i++]=c)}for(const c of a)Object.getOwnPropertyDescriptor(e,c).enumerable&&(n[i++]=c);return{keys:n,size:i}}var P3=O3,N3=9007199254740991;function I3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=N3}var yg=I3;const R3=yg,M3=Object.prototype.hasOwnProperty;function z3(e){return Array.isArray(e)||M3.call(e,"length")&&R3(e.length)&&(e.length===0||"0"in e)}var U3=z3,fr={},$t={};const r0={size:0,next(){return null}};$t.NOOP_RECURSOR=r0;function H3(e){const t=[];return{shared(){const n=e();return n!==null&&t.push(n),n},recursor(){return t.length>0?t.shift():e()}}}$t.fork=H3;function q3(e){const t=[e];for(;t.length>0;){const n=t[t.length-1]();if(n===null){t.pop();continue}typeof n.createRecursor=="function"&&t.push(n.createRecursor())}}$t.consumeDeep=q3;function j3(e,t){return()=>{const n=e();return n===null?null:t(n)}}$t.map=j3;function V3(e,t){if(!e){const a=t();a===r0?e=a:e=Object.assign({buffer:[],done:!1},a)}if(e===r0)return{state:e,recursor:e};let n=!1,i=0;return{state:e,recursor:{next:()=>{if(n)return null;let a=e.buffer[i];return a===void 0&&(a=e.buffer[i]=e.next()),i++,a===null&&(n=!0),a},size:e.size}}}$t.replay=V3;function W3(e,t){let n=!0;return()=>{if(n){const i=e();if(i!==null)return i;n=!1}return t()}}$t.sequence=W3;function G3(e){let t=!1;return()=>t?null:(t=!0,e)}$t.singleValue=G3;function K3(e,t){return()=>{if(t!==null){const n=t;return t=null,n}return e()}}$t.unshift=K3;const yE=bt,X3=en,No=$t,bg=yE.DEEP_EQUAL,wg=yE.UNEQUAL;function Q3(e){return new Eg(e.size)}fr.describeIterableRecursor=Q3;function Y3(e){return new Cg(e.size)}fr.describeListRecursor=Y3;function Z3(e){return new _g(e.size)}fr.describePropertyRecursor=Z3;function J3(e){return new Eg(e)}fr.deserializeIterableStats=J3;function eO(e){return new Cg(e)}fr.deserializeListStats=eO;function tO(e){return new _g(e)}fr.deserializePropertyStats=tO;const Dg=Symbol("IterableStats");fr.iterableTag=Dg;const Ag=Symbol("ListStats");fr.listTag=Ag;const xg=Symbol("PropertyStats");fr.propertyTag=xg;class dh{constructor(t){this.size=t}formatDeep(t){return X3.single(t.stats.separator)}prepareDiff(t,n,i,o){if(t.isStats!==!0||t.tag===this.tag)return null;const a=No.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:No.unshift(n,this),rhsRecursor:No.unshift(i,t)};const d=No.fork(n);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:No.unshift(n,p),rhsRecursor:No.unshift(a.recursor,c)}:null}serialize(){return this.size}}Object.defineProperty(dh.prototype,"isStats",{value:!0});class Eg extends dh{compare(t){return t.tag===Dg&&this.size===t.size?bg:wg}}Object.defineProperty(Eg.prototype,"tag",{value:Dg});class Cg extends dh{compare(t){return t.tag===Ag&&this.size===t.size?bg:wg}}Object.defineProperty(Cg.prototype,"tag",{value:Ag});class _g extends dh{compare(t){return t.tag===xg&&this.size===t.size?bg:wg}}Object.defineProperty(_g.prototype,"tag",{value:xg});const Sg=bt,nO=Ht.ObjectFormatter,rO=P3,iO=U3,rp=fr,yr=$t,sO=Sg.DEEP_EQUAL,oO=Sg.SHALLOW_EQUAL,_b=Sg.UNEQUAL;function aO(e){const t=e.stringTag==="Array",n=e.value;return new lO(Object.assign({isArray:t,isIterable:n[Symbol.iterator]!==void 0,isList:t||iO(n)},e))}Jt.describe=aO;function uO(e,t){return new cO(e,t)}Jt.deserialize=uO;const bE=Symbol("ObjectValue");Jt.tag=bE;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)?_b:oO}hasSameCtor(t){return this.ctor===t.ctor}formatShallow(t,n){return new nO(this,t,n)}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:bE});Jt.ObjectValue=al;const lO=wE(al),cO=DE(al);function wE(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?sO:super.compare(t)}createPropertyRecursor(){const t=rO(this.value,this.isList?this.value.length:0),n=t.size;if(n===0)return yr.NOOP_RECURSOR;let i=0;return{size:n,next:()=>{if(i===n)return null;const a=t.keys[i++];return this.describeProperty(a,this.describeAny(this.value[a]))}}}createListRecursor(){if(!this.isList)return yr.NOOP_RECURSOR;const t=this.value.length;if(t===0)return yr.NOOP_RECURSOR;let n=0;return{size:t,next:()=>{if(n===t)return null;const o=n;return n++,this.describeItem(o,this.describeAny(this.value[o]))}}}createIterableRecursor(){if(this.isArray||!this.isIterable)return yr.NOOP_RECURSOR;const t=this.value[Symbol.iterator]();let n=t.next(),i=!1,o=-1;n.done&&(n.value===void 0?(o=0,i=!0):o=1);let a=0;return{size:o,next:()=>{if(i)return null;for(;!i;){const h=n||t.next();h===n&&(n=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,n=!1,i=!1,o=null;return()=>{let a=null;do for(o!==null&&(a=o.next(),a===null&&(o=null));o===null&&(!n||!t||!i);)if(n)if(t){if(!i){const c=yr.replay(this.iterableState,()=>this.createIterableRecursor());this.iterableState=c.state,o=c.recursor,i=!0,o!==yr.NOOP_RECURSOR&&(a=rp.describeIterableRecursor(o))}}else{const c=yr.replay(this.propertyState,()=>this.createPropertyRecursor());this.propertyState=c.state,o=c.recursor,t=!0,o!==yr.NOOP_RECURSOR&&(a=rp.describePropertyRecursor(o))}else{const c=yr.replay(this.listState,()=>this.createListRecursor());this.listState=c.state,o=c.recursor,n=!0,o!==yr.NOOP_RECURSOR&&(a=rp.describeListRecursor(o))}while(o!==null&&a===null);return a}}}}Jt.DescribedMixin=wE;function DE(e){return class extends e{constructor(t,n){super({ctor:t[0],pointer:t[1],stringTag:t[2],isArray:t[3],isIterable:t[4],isList:t[5]}),this.deserializedRecursor=n,this.replayState=null}createRecursor(){if(!this.deserializedRecursor)return()=>null;const t=yr.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=DE;const AE=bt,Fg=Jt,fO=AE.AMBIGUOUS,xE=AE.UNEQUAL;function hO(e){return new pO(Object.assign({isArray:!0,isList:!0},e,{ctor:"Arguments"}))}Fa.describe=hO;function dO(e,t){return new gO(e,t)}Fa.deserialize=dO;const EE=Symbol("ArgumentsValue");Fa.tag=EE;class $g extends Fg.ObjectValue{compare(t){return t.isComplex!==!0?xE:t.stringTag==="Array"?fO:super.compare(t)}}Object.defineProperty($g.prototype,"tag",{value:EE});const pO=Fg.DescribedMixin($g);class gO extends Fg.DeserializedMixin($g){compare(t){return t.isComplex===!0&&t.stringTag==="Array"?xE:super.compare(t)}}var ul={},er={};const CE=bt,vO=Ht,yu=en,mO=fr.propertyTag,Sb=$t,Tg=Jt,yO=CE.DEEP_EQUAL,bO=CE.UNEQUAL;function _E(e){const t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength?t.slice(e.byteOffset,e.byteOffset+e.byteLength):t}er.getBuffer=_E;function wO(e){return new xO(Object.assign({buffer:_E(e.value),isArray:!0,isList:!0},e))}er.describe=wO;function DO(e,t){return new EO(e,t)}er.deserialize=DO;function AO(e){return new kg(e)}er.deserializeBytes=AO;const ph=Symbol("Bytes");er.bytesTag=ph;const SE=Symbol("TypedArrayValue");er.tag=SE;class kg{constructor(t){this.buffer=t}compare(t){return t.tag===ph&&this.buffer.equals(t.buffer)?yO:bO}formatDeep(t,n){const i=n,o=yu.buffer();let a="",c=!0;for(let h=0;h<this.buffer.length;h+=4)h>0&&(h%32===0?(c?(o.append(yu.first(a)),c=!1):o.append(yu.line(a)),a=String(i)):a+=" "),a+=vO.wrap(t.typedArray.bytes,this.buffer.toString("hex",h,h+4));return c?yu.single(a):o.append(yu.last(a))}serialize(){return this.buffer}}Object.defineProperty(kg.prototype,"tag",{value:ph});class gh extends Tg.ObjectValue{constructor(t){super(t),this.buffer=t.buffer}formatShallow(t,n){return super.formatShallow(t,n).customize({shouldFormat(i){return i.tag===mO?i.size>1:i.isProperty===!0?i.key.value!=="byteLength":i.tag===ph?i.buffer.byteLength>0:!0}})}}Object.defineProperty(gh.prototype,"tag",{value:SE});er.TypedArrayValue=gh;function FE(e){return class extends Tg.DescribedMixin(e){createListRecursor(){return Sb.NOOP_RECURSOR}createPropertyRecursor(){const t=super.createPropertyRecursor(),n=t.size+1;let i=!1;return{size:n,next:()=>{if(i)return null;const a=t.next();return a||(i=!0,this.describeProperty("byteLength",this.describeAny(this.buffer.byteLength)))}}}createRecursor(){return Sb.unshift(super.createRecursor(),new kg(this.buffer))}}}er.DescribedMixin=FE;const xO=FE(gh);function $E(e){return class extends Tg.DeserializedMixin(e){constructor(t,n){super(t,n);const i=this.createRecursor()();this.buffer=i.buffer}}}er.DeserializedMixin=$E;const EO=$E(gh),Lg=er;function CO(e){return new SO(Object.assign({buffer:Buffer.from(e.value),isArray:!0,isList:!0},e))}ul.describe=CO;function _O(e,t){return new FO(e,t)}ul.deserialize=_O;const TE=Symbol("ArrayBufferValue");ul.tag=TE;class Bg extends Lg.TypedArrayValue{}Object.defineProperty(Bg.prototype,"tag",{value:TE});const SO=Lg.DescribedMixin(Bg),FO=Lg.DeserializedMixin(Bg);var ll={},oo={},tf={},i0={},$O={get exports(){return i0},set exports(e){i0=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 n(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 n(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}$O.exports={isExpression:e,isStatement:n,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}})();var Cf={},TO={get exports(){return Cf},set exports(e){Cf=e}};(function(){var e,t,n,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(E){return 48<=E&&E<=57}function h(E){return 48<=E&&E<=57||97<=E&&E<=102||65<=E&&E<=70}function d(E){return E>=48&&E<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function p(E){return E===32||E===9||E===11||E===12||E===160||E>=5760&&n.indexOf(E)>=0}function g(E){return E===10||E===13||E===8232||E===8233}function y(E){if(E<=65535)return String.fromCharCode(E);var C=String.fromCharCode(Math.floor((E-65536)/1024)+55296),S=String.fromCharCode((E-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(E){return E<128?i[E]:t.NonAsciiIdentifierStart.test(y(E))}function w(E){return E<128?o[E]:t.NonAsciiIdentifierPart.test(y(E))}function $(E){return E<128?i[E]:e.NonAsciiIdentifierStart.test(y(E))}function L(E){return E<128?o[E]:e.NonAsciiIdentifierPart.test(y(E))}TO.exports={isDecimalDigit:c,isHexDigit:h,isOctalDigit:d,isWhiteSpace:p,isLineTerminator:g,isIdentifierStartES5:m,isIdentifierPartES5:w,isIdentifierStartES6:$,isIdentifierPartES6:L}})();var s0={},kO={get exports(){return s0},set exports(e){s0=e}};(function(){var e=Cf;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 n(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"||n(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,$,L;if(m.length===0||(L=m.charCodeAt(0),!e.isIdentifierStartES5(L)))return!1;for(w=1,$=m.length;w<$;++w)if(L=m.charCodeAt(w),!e.isIdentifierPartES5(L))return!1;return!0}function d(m,w){return(m-55296)*1024+(w-56320)+65536}function p(m){var w,$,L,E,C;if(m.length===0)return!1;for(C=e.isIdentifierStartES6,w=0,$=m.length;w<$;++w){if(L=m.charCodeAt(w),55296<=L&&L<=56319){if(++w,w>=$||(E=m.charCodeAt(w),!(56320<=E&&E<=57343)))return!1;L=d(L,E)}if(!C(L))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)}kO.exports={isKeywordES5:n,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:c,isIdentifierNameES5:h,isIdentifierNameES6:p,isIdentifierES5:g,isIdentifierES6:y}})();(function(){tf.ast=i0,tf.code=Cf,tf.keyword=s0})();var Gr=-1,Cr=1,Rn=0;function Gu(e,t,n,i){if(e===t)return e?[[Rn,e]]:[];if(n!=null){var o=NO(e,t,n);if(o)return o}var a=Og(e,t),c=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=Pg(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=LO(e,t);return c&&d.unshift([Rn,c]),h&&d.push([Rn,h]),kE(d,i),d}function LO(e,t){var n;if(!e)return[[Cr,t]];if(!t)return[[Gr,e]];var i=e.length>t.length?e:t,o=e.length>t.length?t:e,a=i.indexOf(o);if(a!==-1)return n=[[Cr,i.substring(0,a)],[Rn,o],[Cr,i.substring(a+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Gr),n;if(o.length===1)return[[Gr,e],[Cr,t]];var c=OO(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([[Rn,y]],w)}return BO(e,t)}function BO(e,t){for(var n=e.length,i=t.length,o=Math.ceil((n+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=n-i,y=g%2!==0,m=0,w=0,$=0,L=0,E=0;E<o;E++){for(var C=-E+m;C<=E-w;C+=2){var S=a+C,O;C===-E||C!==E&&h[S-1]<h[S+1]?O=h[S+1]:O=h[S-1]+1;for(var B=O-C;O<n&&B<i&&e.charAt(O)===t.charAt(B);)O++,B++;if(h[S]=O,O>n)w+=2;else if(B>i)m+=2;else if(y){var k=a+g-C;if(k>=0&&k<c&&d[k]!==-1){var M=n-d[k];if(O>=M)return Fb(e,t,O,B)}}}for(var U=-E+$;U<=E-L;U+=2){var k=a+U,M;U===-E||U!==E&&d[k-1]<d[k+1]?M=d[k+1]:M=d[k-1]+1;for(var j=M-U;M<n&&j<i&&e.charAt(n-M-1)===t.charAt(i-j-1);)M++,j++;if(d[k]=M,M>n)L+=2;else if(j>i)$+=2;else if(!y){var S=a+g-U;if(S>=0&&S<c&&h[S]!==-1){var O=h[S],B=a+O-S;if(M=n-M,O>=M)return Fb(e,t,O,B)}}}}return[[Gr,e],[Cr,t]]}function Fb(e,t,n,i){var o=e.substring(0,n),a=t.substring(0,i),c=e.substring(n),h=t.substring(i),d=Gu(o,a),p=Gu(c,h);return d.concat(p)}function Og(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,a=0;n<o;)e.substring(a,o)==t.substring(a,o)?(n=o,a=n):i=o,o=Math.floor((i-n)/2+n);return LE(e.charCodeAt(o-1))&&o--,o}function Pg(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,a=0;n<o;)e.substring(e.length-o,e.length-a)==t.substring(t.length-o,t.length-a)?(n=o,a=n):i=o,o=Math.floor((i-n)/2+n);return BE(e.charCodeAt(e.length-o))&&o--,o}function OO(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||i.length*2<n.length)return null;function o(w,$,L){for(var E=w.substring(L,L+Math.floor(w.length/4)),C=-1,S="",O,B,k,M;(C=$.indexOf(E,C+1))!==-1;){var U=Og(w.substring(L),$.substring(C)),j=Pg(w.substring(0,L),$.substring(0,C));S.length<j+U&&(S=$.substring(C-j,C)+$.substring(C,C+U),O=w.substring(0,L-j),B=w.substring(L+U),k=$.substring(0,C-j),M=$.substring(C+U))}return S.length*2>=w.length?[O,B,k,M,S]:null}var a=o(n,i,Math.ceil(n.length/4)),c=o(n,i,Math.ceil(n.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 kE(e,t){e.push([Rn,""]);for(var n=0,i=0,o=0,a="",c="",h;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Cr:o++,c+=e[n][1],n++;break;case Gr:i++,a+=e[n][1],n++;break;case Rn:var d=n-o-i-1;if(t){if(d>=0&&PE(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),n--;var g=d-1;e[g]&&e[g][0]===Cr&&(o++,c=e[g][1]+c,g--),e[g]&&e[g][0]===Gr&&(i++,a=e[g][1]+a,g--),d=g}}if(OE(e[n][1])){var p=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),a+=p,c+=p}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(a.length>0||c.length>0){a.length>0&&c.length>0&&(h=Og(c,a),h!==0&&(d>=0?e[d][1]+=c.substring(0,h):(e.splice(0,0,[Rn,c.substring(0,h)]),n++),c=c.substring(h),a=a.substring(h)),h=Pg(c,a),h!==0&&(e[n][1]=c.substring(c.length-h)+e[n][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(n-y,y),n=n-y):a.length===0?(e.splice(n-y,y,[Cr,c]),n=n-y+1):c.length===0?(e.splice(n-y,y,[Gr,a]),n=n-y+1):(e.splice(n-y,y,[Gr,a],[Cr,c]),n=n-y+2)}n!==0&&e[n-1][0]===Rn?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,i=0,a="",c="";break}}e[e.length-1][1]===""&&e.pop();var m=!1;for(n=1;n<e.length-1;)e[n-1][0]===Rn&&e[n+1][0]===Rn&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),m=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),m=!0)),n++;m&&kE(e,t)}function LE(e){return e>=55296&&e<=56319}function BE(e){return e>=56320&&e<=57343}function OE(e){return BE(e.charCodeAt(0))}function PE(e){return LE(e.charCodeAt(e.length-1))}function PO(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function ip(e,t,n,i){return PE(e)||OE(i)?null:PO([[Rn,e],[Gr,t],[Cr,n],[Rn,i]])}function NO(e,t,n){var i=typeof n=="number"?{index:n,length:0}:n.oldRange,o=typeof n=="number"?null:n.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),L=d.slice(0,$),E=m.slice(0,$);if(L!==E)break e;var C=d.slice($),S=m.slice($);return ip(L,C,S,p)}e:{if(g!==null&&g!==h)break e;var O=h,m=t.slice(0,O),w=t.slice(O);if(m!==d)break e;var B=Math.min(a-O,c-O),k=p.slice(p.length-B),M=w.slice(w.length-B);if(k!==M)break e;var C=p.slice(0,p.length-B),S=w.slice(0,w.length-B);return ip(d,C,S,k)}}if(i.length>0&&o&&o.length===0)e:{var L=e.slice(0,i.index),k=e.slice(i.index+i.length),$=L.length,B=k.length;if(c<$+B)break e;var E=t.slice(0,$),M=t.slice(c-B);if(L!==E||k!==M)break e;var C=e.slice($,a-B),S=t.slice($,c-B);return ip(L,C,S,k)}return null}function vh(e,t,n){return Gu(e,t,n,!0)}vh.INSERT=Cr;vh.DELETE=Gr;vh.EQUAL=Rn;var IO=vh;const RO=tf.keyword,Ac=IO,NE=bt,vn=Ht,Bt=en,MO=NE.DEEP_EQUAL,zO=NE.UNEQUAL;function IE(e){return new Ng(e)}oo.describe=IE;oo.deserialize=IE;const _f=Symbol("StringValue");oo.tag=_f;function xc(e){return e.replace(/\\/g,"\\\\")}const UO="␍␊",RE="␊",o0="␍",ME=new RegExp(`${o0}|${RE}|${o0}`,"g");function HO(e){return e===`\r
|
|
7
|
-
`?UO:e===`
|
|
8
|
-
`?RE:e==="\r"?o0:e}function a0(e,t,n){return n.replace(ME,i=>t.close+vn.wrap(e.string.controlPicture,i)+t.open)}const qO=/'/g,jO=/"/g,VO=/`/g;function Io(e,t){const n=e.escapeQuote;return n==="'"?t.replace(qO,"\\'"):n==='"'?t.replace(jO,'\\"'):n==="`"?t.replace(VO,"\\`"):t}function sp(e){return e.includes("\r")||e.includes(`
|
|
9
|
-
`)}function $b(e,t,n,i){const o=Ac(t,n),a=!(o.length===2&&o[0][1]===t&&o[1][1]===n||o.length===3&&o[2][0]===Ac.EQUAL&&ME.test(o[2][1])&&o[0][1]+o[2][1]===t&&o[1][1]+o[2][1]===n);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+=vn.wrap(p,m[1]);else if(m[0]===Ac.INSERT)h+=vn.wrap(g,m[1]);else{const w=vn.wrap(y,a0(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=vn.wrap(m,c),h=vn.wrap(w,h)}return[c,h]}const WO=/\r\n|\r|\n/g;function op(e){const t=[];let n=0;for(let i;i=WO.exec(e);n=i.index+i[0].length)t.push(e.slice(n,i.index)+HO(i[0]));return t.push(e.slice(n)),t}class Ng{constructor(t){this.value=t}compare(t){return t.tag===_f&&this.value===t.value?MO:zO}get includesLinebreaks(){return sp(this.value)}formatDeep(t,n){let i=xc(this.value);if(!this.includesLinebreaks)return i=Io(t.string.line,i),Bt.single(vn.wrap(t.string.line,vn.wrap(t.string,i)));i=Io(t.string.multiline,i);const o=op(i).map(h=>vn.wrap(t.string,a0(t,t.string,h))),a=o.length-1,c=n;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 n=this.value;if(RO.isIdentifierNameES6(n,!0)||String(parseInt(n,10))===n)return n;const i=xc(n).replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/'/g,"\\'");return vn.wrap(t.string.line,vn.wrap(t.string,i))}diffDeep(t,n,i,o){if(t.tag!==_f)return null;const a=xc(this.value),c=xc(t.value);if(!sp(a)&&!sp(c)){const E=$b(n,Io(n.string.line,a),Io(n.string.line,c),o);return Bt.actual.single(vn.wrap(n.string.line,E[0])).concat(Bt.expected.single(vn.wrap(n.string.line,E[1])))}const h=op(Io(n.string.multiline,a)),d=op(Io(n.string.multiline,c)),p=i,g=Bt.buffer(),y=h.length-1,m=d.length-1;let w=[],$=[],L=!1;for(let E=0,C=0,S=0;E<h.length;){if(h[E]===d[C]){g.append(w),g.append($),w=[],$=[];let k=h[E];k=a0(n,n.string.diff.equal,k),k=vn.wrap(n.string.diff.equal,k),E===0?g.append(Bt.first(n.string.multiline.start+k)):E===y&&C===m?g.append(Bt.last(p+k+n.string.multiline.end)):g.append(Bt.line(p+k)),E++,C++;continue}let O=!1;{const k=h[E];for(let M=C;!O&&M<d.length;M++)O=k===d[M]}let B=E-S>m||C>m;if(!B){const k=d[C];for(let M=E;!B&&M<h.length;M++)B=k===h[M];!B&&E-S===m&&E<y&&(B=!0)}if(B&&!O){const k=o?n.string.diff.insertLine:n.string.diff.deleteLine,M=vn.wrap(k,h[E]);E===0?(w.push(Bt.actual.first(n.string.multiline.start+M)),L=!0):E===y?w.push(Bt.actual.last(p+M+n.string.multiline.end)):w.push(Bt.actual.line(p+M)),E++,S++}else if(O&&!B){const k=o?n.string.diff.deleteLine:n.string.diff.insertLine,M=vn.wrap(k,d[C]);L?($.push(Bt.expected.first(n.string.multiline.start+M)),L=!1):C===m?$.push(Bt.expected.last(p+M+n.string.multiline.end)):$.push(Bt.expected.line(p+M)),C++}else{const k=$b(n,h[E],d[C],o);E===0?(w.push(Bt.actual.first(n.string.multiline.start+k[0])),L=!0):E===y?w.push(Bt.actual.last(p+k[0]+n.string.multiline.end)):w.push(Bt.actual.line(p+k[0])),L?($.push(Bt.expected.first(n.string.multiline.start+k[1])),L=!1):C===m?$.push(Bt.expected.last(p+k[1]+n.string.multiline.end)):$.push(Bt.expected.line(p+k[1])),E++,C++}}return g.append(w),g.append($),g}serialize(){return this.value}}Object.defineProperty(Ng.prototype,"isPrimitive",{value:!0});Object.defineProperty(Ng.prototype,"tag",{value:_f});const GO=oo.tag,Tb=$t,Ig=Jt;function KO(e){return new QO(e)}ll.describe=KO;function XO(e,t){return new YO(e,t)}ll.deserialize=XO;const zE=Symbol("BoxedValue");ll.tag=zE;class Rg extends Ig.ObjectValue{}Object.defineProperty(Rg.prototype,"tag",{value:zE});class QO extends Ig.DescribedMixin(Rg){constructor(t){super(t),this.unboxed=t.unboxed}createListRecursor(){return Tb.NOOP_RECURSOR}createPropertyRecursor(){if(this.unboxed.tag!==GO)return super.createPropertyRecursor();try{return this.isList=!0,super.createPropertyRecursor()}finally{this.isList=!1}}createRecursor(){return Tb.unshift(super.createRecursor(),this.unboxed)}}const YO=Ig.DeserializedMixin(Rg);var cl={};const mh=er;function ZO(e){return new eP(Object.assign({buffer:mh.getBuffer(e.value),isArray:!0,isList:!0},e))}cl.describe=ZO;function JO(e,t){return new tP(e,t)}cl.deserialize=JO;const UE=Symbol("DataViewValue");cl.tag=UE;class Mg extends mh.TypedArrayValue{}Object.defineProperty(Mg.prototype,"tag",{value:UE});const eP=mh.DescribedMixin(Mg),tP=mh.DeserializedMixin(Mg);var fl={},Sf={},nP={get exports(){return Sf},set exports(e){Sf=e}},rP=e=>{const t=(e||new Date).getTimezoneOffset(),n=Math.abs(t),i=Math.floor(n/60),o=n%60,a=o>0?":"+("0"+o).slice(-2):"";return(t<0?"+":"-")+i+a};const iP=rP,HE=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 n="";return e.showTimeZone&&(n=" UTC"+(e.local?iP(t):"")),e.showMilliseconds&&t.getUTCMilliseconds()>0&&(n=` ${t.getUTCMilliseconds()}ms${n}`),t.toISOString().replace(/T/," ").replace(/\..+/,n)};nP.exports=HE;Sf.default=HE;const sP=Sf,qE=bt,kb=Ht,Ec=en,zg=Jt,Lb=qE.SHALLOW_EQUAL,oP=qE.UNEQUAL;function aP(e){const t=e.value,n=isNaN(t.valueOf());return new cP(Object.assign({},e,{invalid:n}))}fl.describe=aP;function uP(e,t){return new fP(e,t)}fl.deserialize=uP;const jE=Symbol("DateValue");fl.tag=jE;function lP(e){return sP({date:e,local:!1,showTimeZone:!0,showMilliseconds:!0})}class Ug extends zg.ObjectValue{constructor(t){super(t),this.invalid=t.invalid}compare(t){const n=super.compare(t);return n!==Lb?n:this.invalid&&t.invalid||Object.is(this.value.getTime(),t.value.getTime())?Lb:oP}formatShallow(t,n){const i=kb.formatCtorAndStringTag(t,this)+" "+(this.invalid?t.date.invalid:kb.wrap(t.date.value,lP(this.value)))+" "+t.object.openBracket;return super.formatShallow(t,n).customize({finalize(o){return o.isEmpty?Ec.single(i+t.object.closeBracket):Ec.first(i).concat(o.withFirstPrefixed(n.increase()).stripFlags()).append(Ec.last(n+t.object.closeBracket))},maxDepth(){return Ec.single(i+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){const t=this.invalid?null:this.value.toISOString();return[this.invalid,t,super.serialize()]}}Object.defineProperty(Ug.prototype,"tag",{value:jE});const cP=zg.DescribedMixin(Ug);class fP extends zg.DeserializedMixin(Ug){constructor(t,n){super(t[2],n),this.invalid=t[0],this.value=new Date(this.invalid?NaN:t[1])}}var hl={};function hP(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable}var VE=hP;const dP=bt,Cc=Ht,Bb=VE,_c=en,pP=$t.NOOP_RECURSOR,Hg=Jt,gP=dP.UNEQUAL;function vP(e){const t=e.value;return new yP(Object.assign({nameIsEnumerable:Bb(t,"name"),name:t.name,messageIsEnumerable:Bb(t,"message"),message:t.message},e))}hl.describe=vP;function mP(e,t){return new bP(e,t)}hl.deserialize=mP;const WE=Symbol("ErrorValue");hl.tag=WE;class qg extends Hg.ObjectValue{constructor(t){super(t),this.name=t.name}compare(t){return this.tag===t.tag&&this.name===t.name?super.compare(t):gP}formatShallow(t,n){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,n).customize({finalize(a){return a.isEmpty?_c.single(o+t.object.closeBracket):_c.first(o).concat(a.withFirstPrefixed(n.increase()).stripFlags()).append(_c.last(n+t.object.closeBracket))},maxDepth(){return _c.single(o+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){return[this.name,super.serialize()]}}Object.defineProperty(qg.prototype,"tag",{value:WE});class yP extends Hg.DescribedMixin(qg){constructor(t){super(t),this.nameIsEnumerable=t.nameIsEnumerable,this.messageIsEnumerable=t.messageIsEnumerable,this.message=t.message}createPropertyRecursor(){const t=super.createPropertyRecursor();let n=this.nameIsEnumerable,i=!this.messageIsEnumerable,o=t.size;if(n&&o>0&&(o-=1),i&&(o+=1),o===0)return pP;let a=!1;const c=()=>{if(a)return null;const h=t.next();return h?n&&h.key.value==="name"?(n=!1,c()):h:i?(i=!1,this.describeProperty("message",this.describeAny(this.message))):(a=!0,null)};return{size:o,next:c}}}class bP extends Hg.DeserializedMixin(qg){constructor(t,n){super(t[1],n),this.name=t[0]}}var dl={};const GE=bt,Ob=Ht,wP=VE,Sc=en,DP=$t.NOOP_RECURSOR,jg=Jt,ta=GE.UNEQUAL,AP=GE.SHALLOW_EQUAL;function xP(e){const t=e.value;return new CP(Object.assign({nameIsEnumerable:wP(t,"name"),name:typeof t.name=="string"?t.name:null},e))}dl.describe=xP;function EP(e,t){return new _P(e,t)}dl.deserialize=EP;const KE=Symbol("FunctionValue");dl.tag=KE;class Vg extends jg.ObjectValue{constructor(t){super(t),this.name=t.name}formatShallow(t,n){const i=Ob.wrap(t.function.stringTag,this.stringTag)+(this.name?" "+Ob.wrap(t.function.name,this.name):"")+" "+t.object.openBracket;return super.formatShallow(t,n).customize({finalize(o){return o.isEmpty?Sc.single(i+t.object.closeBracket):Sc.first(i).concat(o.withFirstPrefixed(n.increase()).stripFlags()).append(Sc.last(n+t.object.closeBracket))},maxDepth(){return Sc.single(i+" "+t.maxDepth+" "+t.object.closeBracket)}})}}Object.defineProperty(Vg.prototype,"tag",{value:KE});class CP extends jg.DescribedMixin(Vg){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?ta:super.compare(t)}createPropertyRecursor(){const t=super.createPropertyRecursor(),n=this.nameIsEnumerable;if(!n)return t;let i=t.size;if(n&&(i-=1),i===0)return DP;const o=()=>{const a=t.next();return a?n&&a.key.value==="name"?o():a:null};return{size:i,next:o}}serialize(){return[this.name,super.serialize()]}}class _P extends jg.DeserializedMixin(Vg){constructor(t,n){super(t[1],n),this.name=t[0]}compare(t){return this.tag!==t.tag||this.name!==t.name||this.stringTag!==t.stringTag?ta:AP}serialize(){return[this.name,super.serialize()]}}var pl={};const XE=bt,SP=Ht,FP=en,$P=XE.DEEP_EQUAL,TP=XE.UNEQUAL;function QE(){return new Wg}pl.describe=QE;pl.deserialize=QE;const YE=Symbol("GlobalValue");pl.tag=YE;class Wg{compare(t){return this.tag===t.tag?$P:TP}formatDeep(t){return FP.single(SP.wrap(t.global,"Global")+" "+t.object.openBracket+t.object.closeBracket)}}Object.defineProperty(Wg.prototype,"isComplex",{value:!0});Object.defineProperty(Wg.prototype,"tag",{value:YE});var gl={};const ZE=bt,kP=$t,Gg=Jt,Pb=ZE.SHALLOW_EQUAL,LP=ZE.UNEQUAL;function BP(e){return new PP(Object.assign({size:e.value.size},e))}gl.describe=BP;function OP(e,t){return new NP(e,t)}gl.deserialize=OP;const JE=Symbol("MapValue");gl.tag=JE;class Kg extends Gg.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==Pb?n:this.size===t.size?Pb:LP}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(Kg.prototype,"tag",{value:JE});class PP extends Gg.DescribedMixin(Kg){createIterableRecursor(){const t=this.size;if(t===0)return kP.NOOP_RECURSOR;let n=0,i;return{size:t,next:()=>{if(n===t)return null;i||(i=Array.from(this.value));const a=i[n++];return this.describeMapEntry(this.describeAny(a[0]),this.describeAny(a[1]))}}}}class NP extends Gg.DeserializedMixin(Kg){constructor(t,n){super(t[1],n),this.size=t[0]}}var vl={};const eC=bt,Xg=Jt,Nb=eC.DEEP_EQUAL,IP=eC.UNEQUAL;function RP(e){return new zP(e)}vl.describe=RP;function MP(e){return new UP(e)}vl.deserialize=MP;const tC=Symbol("PromiseValue");vl.tag=tC;class Qg extends Xg.ObjectValue{}Object.defineProperty(Qg.prototype,"tag",{value:tC});class zP extends Xg.DescribedMixin(Qg){compare(t){return super.compare(t)===Nb?Nb:IP}}class UP extends Xg.DeserializedMixin(Qg){compare(t){return super.compare(t)}}var ml={};const HP=bt,Fc=Ht,Ro=en,Yg=Jt,qP=HP.UNEQUAL;function jP(e){const t=e.value;return new GP(Object.assign({flags:WP(t),source:t.source},e))}ml.describe=jP;function VP(e,t){return new KP(e,t)}ml.deserialize=VP;const nC=Symbol("RegexpValue");ml.tag=nC;function WP(e){return(e.flags||String(e).slice(e.source.length+2)).split("").sort().join("")}class Zg extends Yg.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):qP}formatShallow(t,n){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,n).customize({finalize:a=>{if(i==="RegExp"&&a.isEmpty)return Ro.single(o);const c=n.increase(),h=Ro.first(Fc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket).concat(Ro.line(c+o));return a.isEmpty||(h.append(Ro.line(c+t.regexp.separator)),h.append(a.withFirstPrefixed(c).stripFlags())),h.append(Ro.last(n+t.object.closeBracket))},maxDepth:()=>Ro.single(Fc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket+" "+o+" "+t.maxDepth+" "+t.object.closeBracket)})}serialize(){return[this.flags,this.source,super.serialize()]}}Object.defineProperty(Zg.prototype,"tag",{value:nC});const GP=Yg.DescribedMixin(Zg);class KP extends Yg.DeserializedMixin(Zg){constructor(t,n){super(t[2],n),this.flags=t[0],this.source=t[1]}}var yl={};const rC=bt,XP=$t,Jg=Jt,Ib=rC.SHALLOW_EQUAL,QP=rC.UNEQUAL;function YP(e){return new JP(Object.assign({size:e.value.size},e))}yl.describe=YP;function ZP(e,t){return new e8(e,t)}yl.deserialize=ZP;const iC=Symbol("SetValue");yl.tag=iC;class ev extends Jg.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==Ib?n:this.size===t.size?Ib:QP}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(ev.prototype,"tag",{value:iC});class JP extends Jg.DescribedMixin(ev){createIterableRecursor(){const t=this.size;if(t===0)return XP.NOOP_RECURSOR;let n=0,i;return{size:t,next:()=>{if(n===t)return null;i||(i=Array.from(this.value));const a=i[n];return this.describeItem(n++,this.describeAny(a))}}}}class e8 extends Jg.DeserializedMixin(ev){constructor(t,n){super(t[1],n),this.size=t[0]}}const t8=Object.prototype.hasOwnProperty;function n8(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 n in t)if(!t8.call(t,n))return null;return e}return null}var r8=n8,u0={},Rb={get exports(){return u0},set exports(e){u0=e}};const i8=Object.prototype.toString;function ap(e){return i8.call(e).slice(8,-1)}const sC=Function.prototype.toString,s8=sC.call(Promise),o8=e=>{if(!e.constructor)return!1;try{return sC.call(e.constructor)===s8}catch{return!1}};if(ap(Promise.resolve())==="Promise")Rb.exports=ap;else{const e=t=>{const n=ap(t);return n==="Object"&&o8(t)?"Promise":n};Rb.exports=e}var Oi={};const oC=bt,a8=Ht,sr=$t,l0=oC.DEEP_EQUAL,Go=oC.UNEQUAL;function u8(e,t){return new yh(e,t)}Oi.describeComplex=u8;function l8(e,t){const n=t();return new yh(e,n)}Oi.deserializeComplex=l8;function c8(e,t){return new bh(e,t)}Oi.describePrimitive=c8;function f8(e){const t=e[0],n=e[1];return new bh(t,n)}Oi.deserializePrimitive=f8;const rs=Symbol("ComplexItem");Oi.complexTag=rs;const va=Symbol("PrimitiveItem");Oi.primitiveTag=va;class yh{constructor(t,n){this.index=t,this.value=n}createRecursor(){return sr.singleValue(this.value)}compare(t){return t.tag===rs&&this.index===t.index?this.value.compare(t.value):Go}formatShallow(t,n){const i=t.item.increaseValueIndent===!0;return new a8.SingleValueFormatter(t,o=>typeof t.item.customFormat=="function"?t.item.customFormat(t,n,o):o.withLastPostfixed(t.item.after),i)}prepareDiff(t,n,i,o,a){if(a(this.value)||a(t.value))return{compareResult:Go};const c=sr.fork(n),h=sr.fork(i),d=t;let p=!1;for(;!p&&t!==null&&t.isItem===!0;)t.tag===rs&&(p=o(this.value,t.value)!==Go),t=h.shared();let g=!1;if(d.tag===rs){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===rs&&(g=o(m.value,d.value)!==Go),m=c.shared()}else if(d.tag===va){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===va&&(g=d.value.compare(m.value)===l0),m=c.shared()}if(g&&!p)return{actualIsExtraneous:!0,lhsRecursor:c.recursor,rhsRecursor:sr.map(sr.unshift(h.recursor,d),m=>(m.isItem!==!0||m.index++,m))};if(p&&!g)return{expectedIsMissing:!0,lhsRecursor:sr.map(sr.unshift(c.recursor,this),m=>(m.isItem!==!0||m.index++,m)),rhsRecursor:h.recursor};const y=this.tag===rs&&d.tag===rs&&this.value.compare(d.value)!==Go;return{mustRecurse:y,isUnequal:!y,lhsRecursor:c.recursor,rhsRecursor:h.recursor}}serialize(){return this.index}}Object.defineProperty(yh.prototype,"isItem",{value:!0});Object.defineProperty(yh.prototype,"tag",{value:rs});class bh{constructor(t,n){this.index=t,this.value=n}compare(t){return t.tag===va&&this.index===t.index?this.value.compare(t.value):Go}formatDeep(t,n){const o=t.item.increaseValueIndent===!0?n.increase():n,a=this.value.formatDeep(t,o);return typeof t.item.customFormat=="function"?t.item.customFormat(t,n,a):a.withLastPostfixed(t.item.after)}prepareDiff(t,n,i,o,a){const c=this.compare(t);if(c===l0)return{compareResult:c};if(t.tag===va&&this.value.tag===t.value.tag&&typeof this.value.diffDeep=="function")return{compareResult:c};const h=sr.fork(i),d=t;do{if(t===null||t.isItem!==!0)return{actualIsExtraneous:!0,rhsRecursor:sr.map(sr.unshift(h.recursor,d),p=>(p.isItem!==!0||p.index++,p))};if(this.value.compare(t.value)===l0)return{expectedIsMissing:!0,lhsRecursor:sr.map(sr.unshift(n,this),p=>(p.isItem!==!0||p.index++,p)),rhsRecursor:h.recursor};t=h.shared()}while(!0)}diffDeep(t,n,i,o){if(this.tag!==t.tag||typeof this.value.diffDeep!="function")return null;const c=n.property.increaseValueIndent===!0?i.increase():i,h=this.value.diffDeep(t.value,n,c,o);return h===null?null:typeof n.item.customFormat=="function"?n.item.customFormat(n,i,h):h.withLastPostfixed(n.item.after)}serialize(){return[this.index,this.value]}}Object.defineProperty(bh.prototype,"isItem",{value:!0});Object.defineProperty(bh.prototype,"tag",{value:va});var bl={},Mo={};function h8(){this.__data__=[],this.size=0}var d8=h8;function p8(e,t){return e===t||e!==e&&t!==t}var wh=p8,g8=wh;function v8(e,t){for(var n=e.length;n--;)if(g8(e[n][0],t))return n;return-1}var Dh=v8,m8=Dh,y8=Array.prototype,b8=y8.splice;function w8(e){var t=this.__data__,n=m8(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():b8.call(t,n,1),--this.size,!0}var D8=w8,A8=Dh;function x8(e){var t=this.__data__,n=A8(t,e);return n<0?void 0:t[n][1]}var E8=x8,C8=Dh;function _8(e){return C8(this.__data__,e)>-1}var S8=_8,F8=Dh;function $8(e,t){var n=this.__data__,i=F8(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var T8=$8,k8=d8,L8=D8,B8=E8,O8=S8,P8=T8;function $a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}$a.prototype.clear=k8;$a.prototype.delete=L8;$a.prototype.get=B8;$a.prototype.has=O8;$a.prototype.set=P8;var Ah=$a,N8=Ah;function I8(){this.__data__=new N8,this.size=0}var R8=I8;function M8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var z8=M8;function U8(e){return this.__data__.get(e)}var H8=U8;function q8(e){return this.__data__.has(e)}var j8=q8,V8=typeof ur=="object"&&ur&&ur.Object===Object&&ur,aC=V8,W8=aC,G8=typeof self=="object"&&self&&self.Object===Object&&self,K8=W8||G8||Function("return this")(),Zr=K8,X8=Zr,Q8=X8.Symbol,xh=Q8,Mb=xh,uC=Object.prototype,Y8=uC.hasOwnProperty,Z8=uC.toString,bu=Mb?Mb.toStringTag:void 0;function J8(e){var t=Y8.call(e,bu),n=e[bu];try{e[bu]=void 0;var i=!0}catch{}var o=Z8.call(e);return i&&(t?e[bu]=n:delete e[bu]),o}var eN=J8,tN=Object.prototype,nN=tN.toString;function rN(e){return nN.call(e)}var iN=rN,zb=xh,sN=eN,oN=iN,aN="[object Null]",uN="[object Undefined]",Ub=zb?zb.toStringTag:void 0;function lN(e){return e==null?e===void 0?uN:aN:Ub&&Ub in Object(e)?sN(e):oN(e)}var wl=lN;function cN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ms=cN,fN=wl,hN=ms,dN="[object AsyncFunction]",pN="[object Function]",gN="[object GeneratorFunction]",vN="[object Proxy]";function mN(e){if(!hN(e))return!1;var t=fN(e);return t==pN||t==gN||t==dN||t==vN}var tv=mN,yN=Zr,bN=yN["__core-js_shared__"],wN=bN,up=wN,Hb=function(){var e=/[^.]+$/.exec(up&&up.keys&&up.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DN(e){return!!Hb&&Hb in e}var AN=DN,xN=Function.prototype,EN=xN.toString;function CN(e){if(e!=null){try{return EN.call(e)}catch{}try{return e+""}catch{}}return""}var lC=CN,_N=tv,SN=AN,FN=ms,$N=lC,TN=/[\\^$.*+?()[\]{}|]/g,kN=/^\[object .+?Constructor\]$/,LN=Function.prototype,BN=Object.prototype,ON=LN.toString,PN=BN.hasOwnProperty,NN=RegExp("^"+ON.call(PN).replace(TN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IN(e){if(!FN(e)||SN(e))return!1;var t=_N(e)?NN:kN;return t.test($N(e))}var RN=IN;function MN(e,t){return e==null?void 0:e[t]}var zN=MN,UN=RN,HN=zN;function qN(e,t){var n=HN(e,t);return UN(n)?n:void 0}var ao=qN,jN=ao,VN=Zr,WN=jN(VN,"Map"),nv=WN,GN=ao,KN=GN(Object,"create"),Eh=KN,qb=Eh;function XN(){this.__data__=qb?qb(null):{},this.size=0}var QN=XN;function YN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZN=YN,JN=Eh,eI="__lodash_hash_undefined__",tI=Object.prototype,nI=tI.hasOwnProperty;function rI(e){var t=this.__data__;if(JN){var n=t[e];return n===eI?void 0:n}return nI.call(t,e)?t[e]:void 0}var iI=rI,sI=Eh,oI=Object.prototype,aI=oI.hasOwnProperty;function uI(e){var t=this.__data__;return sI?t[e]!==void 0:aI.call(t,e)}var lI=uI,cI=Eh,fI="__lodash_hash_undefined__";function hI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=cI&&t===void 0?fI:t,this}var dI=hI,pI=QN,gI=ZN,vI=iI,mI=lI,yI=dI;function Ta(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ta.prototype.clear=pI;Ta.prototype.delete=gI;Ta.prototype.get=vI;Ta.prototype.has=mI;Ta.prototype.set=yI;var bI=Ta,jb=bI,wI=Ah,DI=nv;function AI(){this.size=0,this.__data__={hash:new jb,map:new(DI||wI),string:new jb}}var xI=AI;function EI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CI=EI,_I=CI;function SI(e,t){var n=e.__data__;return _I(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ch=SI,FI=Ch;function $I(e){var t=FI(this,e).delete(e);return this.size-=t?1:0,t}var TI=$I,kI=Ch;function LI(e){return kI(this,e).get(e)}var BI=LI,OI=Ch;function PI(e){return OI(this,e).has(e)}var NI=PI,II=Ch;function RI(e,t){var n=II(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var MI=RI,zI=xI,UI=TI,HI=BI,qI=NI,jI=MI;function ka(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ka.prototype.clear=zI;ka.prototype.delete=UI;ka.prototype.get=HI;ka.prototype.has=qI;ka.prototype.set=jI;var VI=ka,WI=Ah,GI=nv,KI=VI,XI=200;function QI(e,t){var n=this.__data__;if(n instanceof WI){var i=n.__data__;if(!GI||i.length<XI-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new KI(i)}return n.set(e,t),this.size=n.size,this}var YI=QI,ZI=Ah,JI=R8,eR=z8,tR=H8,nR=j8,rR=YI;function La(e){var t=this.__data__=new ZI(e);this.size=t.size}La.prototype.clear=JI;La.prototype.delete=eR;La.prototype.get=tR;La.prototype.has=nR;La.prototype.set=rR;var cC=La;function iR(e,t){for(var n=-1,i=e==null?0:e.length;++n<i&&t(e[n],n,e)!==!1;);return e}var sR=iR,oR=ao,aR=function(){try{var e=oR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),fC=aR,Vb=fC;function uR(e,t,n){t=="__proto__"&&Vb?Vb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var rv=uR,lR=rv,cR=wh,fR=Object.prototype,hR=fR.hasOwnProperty;function dR(e,t,n){var i=e[t];(!(hR.call(e,t)&&cR(i,n))||n===void 0&&!(t in e))&&lR(e,t,n)}var hC=dR,pR=hC,gR=rv;function vR(e,t,n,i){var o=!n;n||(n={});for(var a=-1,c=t.length;++a<c;){var h=t[a],d=i?i(n[h],e[h],h,n,e):void 0;d===void 0&&(d=e[h]),o?gR(n,h,d):pR(n,h,d)}return n}var Dl=vR;function mR(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var yR=mR;function bR(e){return e!=null&&typeof e=="object"}var uo=bR,wR=wl,DR=uo,AR="[object Arguments]";function xR(e){return DR(e)&&wR(e)==AR}var ER=xR,Wb=ER,CR=uo,dC=Object.prototype,_R=dC.hasOwnProperty,SR=dC.propertyIsEnumerable,FR=Wb(function(){return arguments}())?Wb:function(e){return CR(e)&&_R.call(e,"callee")&&!SR.call(e,"callee")},iv=FR,$R=Array.isArray,Al=$R,ma={},TR={get exports(){return ma},set exports(e){ma=e}};function kR(){return!1}var LR=kR;(function(e,t){var n=Zr,i=LR,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,c=a&&a.exports===o,h=c?n.Buffer:void 0,d=h?h.isBuffer:void 0,p=d||i;e.exports=p})(TR,ma);var BR=9007199254740991,OR=/^(?:0|[1-9]\d*)$/;function PR(e,t){var n=typeof e;return t=t??BR,!!t&&(n=="number"||n!="symbol"&&OR.test(e))&&e>-1&&e%1==0&&e<t}var pC=PR,NR=wl,IR=yg,RR=uo,MR="[object Arguments]",zR="[object Array]",UR="[object Boolean]",HR="[object Date]",qR="[object Error]",jR="[object Function]",VR="[object Map]",WR="[object Number]",GR="[object Object]",KR="[object RegExp]",XR="[object Set]",QR="[object String]",YR="[object WeakMap]",ZR="[object ArrayBuffer]",JR="[object DataView]",eM="[object Float32Array]",tM="[object Float64Array]",nM="[object Int8Array]",rM="[object Int16Array]",iM="[object Int32Array]",sM="[object Uint8Array]",oM="[object Uint8ClampedArray]",aM="[object Uint16Array]",uM="[object Uint32Array]",Et={};Et[eM]=Et[tM]=Et[nM]=Et[rM]=Et[iM]=Et[sM]=Et[oM]=Et[aM]=Et[uM]=!0;Et[MR]=Et[zR]=Et[ZR]=Et[UR]=Et[JR]=Et[HR]=Et[qR]=Et[jR]=Et[VR]=Et[WR]=Et[GR]=Et[KR]=Et[XR]=Et[QR]=Et[YR]=!1;function lM(e){return RR(e)&&IR(e.length)&&!!Et[NR(e)]}var cM=lM;function fM(e){return function(t){return e(t)}}var sv=fM,ya={},hM={get exports(){return ya},set exports(e){ya=e}};(function(e,t){var n=aC,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,c=a&&n.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})(hM,ya);var dM=cM,pM=sv,Gb=ya,Kb=Gb&&Gb.isTypedArray,gM=Kb?pM(Kb):dM,gC=gM,vM=yR,mM=iv,yM=Al,bM=ma,wM=pC,DM=gC,AM=Object.prototype,xM=AM.hasOwnProperty;function EM(e,t){var n=yM(e),i=!n&&mM(e),o=!n&&!i&&bM(e),a=!n&&!i&&!o&&DM(e),c=n||i||o||a,h=c?vM(e.length,String):[],d=h.length;for(var p in e)(t||xM.call(e,p))&&!(c&&(p=="length"||o&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||wM(p,d)))&&h.push(p);return h}var vC=EM,CM=Object.prototype;function _M(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CM;return e===n}var ov=_M;function SM(e,t){return function(n){return e(t(n))}}var mC=SM,FM=mC,$M=FM(Object.keys,Object),TM=$M,kM=ov,LM=TM,BM=Object.prototype,OM=BM.hasOwnProperty;function PM(e){if(!kM(e))return LM(e);var t=[];for(var n in Object(e))OM.call(e,n)&&n!="constructor"&&t.push(n);return t}var NM=PM,IM=tv,RM=yg;function MM(e){return e!=null&&RM(e.length)&&!IM(e)}var _h=MM,zM=vC,UM=NM,HM=_h;function qM(e){return HM(e)?zM(e):UM(e)}var av=qM,jM=Dl,VM=av;function WM(e,t){return e&&jM(t,VM(t),e)}var GM=WM;function KM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var XM=KM,QM=ms,YM=ov,ZM=XM,JM=Object.prototype,e5=JM.hasOwnProperty;function t5(e){if(!QM(e))return ZM(e);var t=YM(e),n=[];for(var i in e)i=="constructor"&&(t||!e5.call(e,i))||n.push(i);return n}var n5=t5,r5=vC,i5=n5,s5=_h;function o5(e){return s5(e)?r5(e,!0):i5(e)}var xl=o5,a5=Dl,u5=xl;function l5(e,t){return e&&a5(t,u5(t),e)}var c5=l5,Ku={},f5={get exports(){return Ku},set exports(e){Ku=e}};(function(e,t){var n=Zr,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,c=a?n.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})(f5,Ku);function h5(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}var yC=h5;function d5(e,t){for(var n=-1,i=e==null?0:e.length,o=0,a=[];++n<i;){var c=e[n];t(c,n,e)&&(a[o++]=c)}return a}var p5=d5;function g5(){return[]}var bC=g5,v5=p5,m5=bC,y5=Object.prototype,b5=y5.propertyIsEnumerable,Xb=Object.getOwnPropertySymbols,w5=Xb?function(e){return e==null?[]:(e=Object(e),v5(Xb(e),function(t){return b5.call(e,t)}))}:m5,uv=w5,D5=Dl,A5=uv;function x5(e,t){return D5(e,A5(e),t)}var E5=x5;function C5(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}var lv=C5,_5=mC,S5=_5(Object.getPrototypeOf,Object),cv=S5,F5=lv,$5=cv,T5=uv,k5=bC,L5=Object.getOwnPropertySymbols,B5=L5?function(e){for(var t=[];e;)F5(t,T5(e)),e=$5(e);return t}:k5,wC=B5,O5=Dl,P5=wC;function N5(e,t){return O5(e,P5(e),t)}var I5=N5,R5=lv,M5=Al;function z5(e,t,n){var i=t(e);return M5(e)?i:R5(i,n(e))}var DC=z5,U5=DC,H5=uv,q5=av;function j5(e){return U5(e,q5,H5)}var V5=j5,W5=DC,G5=wC,K5=xl;function X5(e){return W5(e,K5,G5)}var Q5=X5,Y5=ao,Z5=Zr,J5=Y5(Z5,"DataView"),e6=J5,t6=ao,n6=Zr,r6=t6(n6,"Promise"),i6=r6,s6=ao,o6=Zr,a6=s6(o6,"Set"),u6=a6,l6=ao,c6=Zr,f6=l6(c6,"WeakMap"),h6=f6,c0=e6,f0=nv,h0=i6,d0=u6,p0=h6,AC=wl,Ba=lC,Qb="[object Map]",d6="[object Object]",Yb="[object Promise]",Zb="[object Set]",Jb="[object WeakMap]",ew="[object DataView]",p6=Ba(c0),g6=Ba(f0),v6=Ba(h0),m6=Ba(d0),y6=Ba(p0),Is=AC;(c0&&Is(new c0(new ArrayBuffer(1)))!=ew||f0&&Is(new f0)!=Qb||h0&&Is(h0.resolve())!=Yb||d0&&Is(new d0)!=Zb||p0&&Is(new p0)!=Jb)&&(Is=function(e){var t=AC(e),n=t==d6?e.constructor:void 0,i=n?Ba(n):"";if(i)switch(i){case p6:return ew;case g6:return Qb;case v6:return Yb;case m6:return Zb;case y6:return Jb}return t});var fv=Is,b6=Object.prototype,w6=b6.hasOwnProperty;function D6(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&w6.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var A6=D6,x6=Zr,E6=x6.Uint8Array,C6=E6,tw=C6;function _6(e){var t=new e.constructor(e.byteLength);return new tw(t).set(new tw(e)),t}var hv=_6,S6=hv;function F6(e,t){var n=t?S6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var $6=F6,T6=/\w*$/;function k6(e){var t=new e.constructor(e.source,T6.exec(e));return t.lastIndex=e.lastIndex,t}var L6=k6,nw=xh,rw=nw?nw.prototype:void 0,iw=rw?rw.valueOf:void 0;function B6(e){return iw?Object(iw.call(e)):{}}var O6=B6,P6=hv;function N6(e,t){var n=t?P6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var xC=N6,I6=hv,R6=$6,M6=L6,z6=O6,U6=xC,H6="[object Boolean]",q6="[object Date]",j6="[object Map]",V6="[object Number]",W6="[object RegExp]",G6="[object Set]",K6="[object String]",X6="[object Symbol]",Q6="[object ArrayBuffer]",Y6="[object DataView]",Z6="[object Float32Array]",J6="[object Float64Array]",e4="[object Int8Array]",t4="[object Int16Array]",n4="[object Int32Array]",r4="[object Uint8Array]",i4="[object Uint8ClampedArray]",s4="[object Uint16Array]",o4="[object Uint32Array]";function a4(e,t,n){var i=e.constructor;switch(t){case Q6:return I6(e);case H6:case q6:return new i(+e);case Y6:return R6(e,n);case Z6:case J6:case e4:case t4:case n4:case r4:case i4:case s4:case o4:return U6(e,n);case j6:return new i;case V6:case K6:return new i(e);case W6:return M6(e);case G6:return new i;case X6:return z6(e)}}var u4=a4,l4=ms,sw=Object.create,c4=function(){function e(){}return function(t){if(!l4(t))return{};if(sw)return sw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),f4=c4,h4=f4,d4=cv,p4=ov;function g4(e){return typeof e.constructor=="function"&&!p4(e)?h4(d4(e)):{}}var EC=g4,v4=fv,m4=uo,y4="[object Map]";function b4(e){return m4(e)&&v4(e)==y4}var w4=b4,D4=w4,A4=sv,ow=ya,aw=ow&&ow.isMap,x4=aw?A4(aw):D4,E4=x4,C4=fv,_4=uo,S4="[object Set]";function F4(e){return _4(e)&&C4(e)==S4}var $4=F4,T4=$4,k4=sv,uw=ya,lw=uw&&uw.isSet,L4=lw?k4(lw):T4,B4=L4,O4=cC,P4=sR,N4=hC,I4=GM,R4=c5,M4=Ku,z4=yC,U4=E5,H4=I5,q4=V5,j4=Q5,V4=fv,W4=A6,G4=u4,K4=EC,X4=Al,Q4=ma,Y4=E4,Z4=ms,J4=B4,ez=av,tz=xl,nz=1,rz=2,iz=4,CC="[object Arguments]",sz="[object Array]",oz="[object Boolean]",az="[object Date]",uz="[object Error]",_C="[object Function]",lz="[object GeneratorFunction]",cz="[object Map]",fz="[object Number]",SC="[object Object]",hz="[object RegExp]",dz="[object Set]",pz="[object String]",gz="[object Symbol]",vz="[object WeakMap]",mz="[object ArrayBuffer]",yz="[object DataView]",bz="[object Float32Array]",wz="[object Float64Array]",Dz="[object Int8Array]",Az="[object Int16Array]",xz="[object Int32Array]",Ez="[object Uint8Array]",Cz="[object Uint8ClampedArray]",_z="[object Uint16Array]",Sz="[object Uint32Array]",At={};At[CC]=At[sz]=At[mz]=At[yz]=At[oz]=At[az]=At[bz]=At[wz]=At[Dz]=At[Az]=At[xz]=At[cz]=At[fz]=At[SC]=At[hz]=At[dz]=At[pz]=At[gz]=At[Ez]=At[Cz]=At[_z]=At[Sz]=!0;At[uz]=At[_C]=At[vz]=!1;function nf(e,t,n,i,o,a){var c,h=t&nz,d=t&rz,p=t&iz;if(n&&(c=o?n(e,i,o,a):n(e)),c!==void 0)return c;if(!Z4(e))return e;var g=X4(e);if(g){if(c=W4(e),!h)return z4(e,c)}else{var y=V4(e),m=y==_C||y==lz;if(Q4(e))return M4(e,h);if(y==SC||y==CC||m&&!o){if(c=d||m?{}:K4(e),!h)return d?H4(e,R4(c,e)):U4(e,I4(c,e))}else{if(!At[y])return o?e:{};c=G4(e,y,h)}}a||(a=new O4);var w=a.get(e);if(w)return w;a.set(e,c),J4(e)?e.forEach(function(E){c.add(nf(E,t,n,E,e,a))}):Y4(e)&&e.forEach(function(E,C){c.set(C,nf(E,t,n,C,e,a))});var $=p?d?j4:q4:d?tz:ez,L=g?void 0:$(e);return P4(L||e,function(E,C){L&&(C=E,E=e[C]),N4(c,C,nf(E,t,n,C,e,a))}),c}var Fz=nf,$z=Fz,Tz=1,kz=4;function Lz(e){return $z(e,Tz|kz)}var Bz=Lz,Oz=rv,Pz=wh;function Nz(e,t,n){(n!==void 0&&!Pz(e[t],n)||n===void 0&&!(t in e))&&Oz(e,t,n)}var FC=Nz;function Iz(e){return function(t,n,i){for(var o=-1,a=Object(t),c=i(t),h=c.length;h--;){var d=c[e?h:++o];if(n(a[d],d,a)===!1)break}return t}}var Rz=Iz,Mz=Rz,zz=Mz(),Uz=zz,Hz=_h,qz=uo;function jz(e){return qz(e)&&Hz(e)}var Vz=jz,Wz=wl,Gz=cv,Kz=uo,Xz="[object Object]",Qz=Function.prototype,Yz=Object.prototype,$C=Qz.toString,Zz=Yz.hasOwnProperty,Jz=$C.call(Object);function e9(e){if(!Kz(e)||Wz(e)!=Xz)return!1;var t=Gz(e);if(t===null)return!0;var n=Zz.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$C.call(n)==Jz}var t9=e9;function n9(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var TC=n9,r9=Dl,i9=xl;function s9(e){return r9(e,i9(e))}var o9=s9,cw=FC,a9=Ku,u9=xC,l9=yC,c9=EC,fw=iv,hw=Al,f9=Vz,h9=ma,d9=tv,p9=ms,g9=t9,v9=gC,dw=TC,m9=o9;function y9(e,t,n,i,o,a,c){var h=dw(e,n),d=dw(t,n),p=c.get(d);if(p){cw(e,n,p);return}var g=a?a(h,d,n+"",e,t,c):void 0,y=g===void 0;if(y){var m=hw(d),w=!m&&h9(d),$=!m&&!w&&v9(d);g=d,m||w||$?hw(h)?g=h:f9(h)?g=l9(h):w?(y=!1,g=a9(d,!0)):$?(y=!1,g=u9(d,!0)):g=[]:g9(d)||fw(d)?(g=h,fw(h)?g=m9(h):(!p9(h)||d9(h))&&(g=c9(d))):y=!1}y&&(c.set(d,g),o(g,d,i,a,c),c.delete(d)),cw(e,n,g)}var b9=y9,w9=cC,D9=FC,A9=Uz,x9=b9,E9=ms,C9=xl,_9=TC;function kC(e,t,n,i,o){e!==t&&A9(t,function(a,c){if(o||(o=new w9),E9(a))x9(e,t,c,n,kC,i,o);else{var h=i?i(_9(e,c),a,c+"",e,t,o):void 0;h===void 0&&(h=a),D9(e,c,h)}},C9)}var S9=kC;function F9(e){return e}var LC=F9;function $9(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var T9=$9,k9=T9,pw=Math.max;function L9(e,t,n){return t=pw(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=pw(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]=n(c),k9(e,this,h)}}var B9=L9;function O9(e){return function(){return e}}var P9=O9,N9=P9,gw=fC,I9=LC,R9=gw?function(e,t){return gw(e,"toString",{configurable:!0,enumerable:!1,value:N9(t),writable:!0})}:I9,M9=R9,z9=800,U9=16,H9=Date.now;function q9(e){var t=0,n=0;return function(){var i=H9(),o=U9-(i-n);if(n=i,o>0){if(++t>=z9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var j9=q9,V9=M9,W9=j9,G9=W9(V9),K9=G9,X9=LC,Q9=B9,Y9=K9;function Z9(e,t){return Y9(Q9(e,t,X9),e+"")}var J9=Z9,e7=wh,t7=_h,n7=pC,r7=ms;function i7(e,t,n){if(!r7(n))return!1;var i=typeof t;return(i=="number"?t7(n)&&n7(t,n.length):i=="string"&&t in n)?e7(n[t],e):!1}var s7=i7,o7=J9,a7=s7;function u7(e){return o7(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,c=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,c&&a7(n[0],n[1],c)&&(a=o<3?void 0:a,o=1),t=Object(t);++i<o;){var h=n[i];h&&e(t,h,i,a)}return t})}var l7=u7,c7=S9,f7=l7,h7=f7(function(e,t,n){c7(e,t,n)}),d7=h7,Bs={},Fi={},p7={get exports(){return Fi},set exports(e){Fi=e}};const g7="2.0.0",v7=256,m7=Number.MAX_SAFE_INTEGER||9007199254740991,y7=16;var Sh={SEMVER_SPEC_VERSION:g7,MAX_LENGTH:v7,MAX_SAFE_INTEGER:m7,MAX_SAFE_COMPONENT_LENGTH:y7};const b7=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Fh=b7;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Sh,i=Fh;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,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\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*$")})(p7,Fi);const w7=["includePrerelease","loose","rtl"],D7=e=>e?typeof e!="object"?{loose:!0}:w7.filter(t=>e[t]).reduce((t,n)=>(t[n]=!0,t),{}):{};var $h=D7;const vw=/^[0-9]+$/,BC=(e,t)=>{const n=vw.test(e),i=vw.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},A7=(e,t)=>BC(t,e);var OC={compareIdentifiers:BC,rcompareIdentifiers:A7};const $c=Fh,{MAX_LENGTH:mw,MAX_SAFE_INTEGER:Tc}=Sh,{re:yw,t:bw}=Fi,x7=$h,{compareIdentifiers:zo}=OC;let E7=class Ur{constructor(t,n){if(n=x7(n),t instanceof Ur){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>mw)throw new TypeError(`version is longer than ${mw} characters`);$c("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const i=t.trim().match(n.loose?yw[bw.LOOSE]:yw[bw.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 Ur)){if(typeof t=="string"&&t===this.version)return 0;t=new Ur(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Ur||(t=new Ur(t,this.options)),zo(this.major,t.major)||zo(this.minor,t.minor)||zo(this.patch,t.patch)}comparePre(t){if(t instanceof Ur||(t=new Ur(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 n=0;do{const i=this.prerelease[n],o=t.prerelease[n];if($c("prerelease compare",n,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 zo(i,o)}while(++n)}compareBuild(t){t instanceof Ur||(t=new Ur(t,this.options));let n=0;do{const i=this.build[n],o=t.build[n];if($c("prerelease compare",n,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 zo(i,o)}while(++n)}inc(t,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);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)}n&&(zo(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var kn=E7;const{MAX_LENGTH:C7}=Sh,{re:ww,t:Dw}=Fi,Aw=kn,_7=$h,S7=(e,t)=>{if(t=_7(t),e instanceof Aw)return e;if(typeof e!="string"||e.length>C7||!(t.loose?ww[Dw.LOOSE]:ww[Dw.FULL]).test(e))return null;try{return new Aw(e,t)}catch{return null}};var Oa=S7;const F7=Oa,$7=(e,t)=>{const n=F7(e,t);return n?n.version:null};var T7=$7;const k7=Oa,L7=(e,t)=>{const n=k7(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var B7=L7;const xw=kn,O7=(e,t,n,i)=>{typeof n=="string"&&(i=n,n=void 0);try{return new xw(e instanceof xw?e.version:e,n).inc(t,i).version}catch{return null}};var P7=O7;const Ew=kn,N7=(e,t,n)=>new Ew(e,n).compare(new Ew(t,n));var $r=N7;const I7=$r,R7=(e,t,n)=>I7(e,t,n)===0;var dv=R7;const Cw=Oa,M7=dv,z7=(e,t)=>{if(M7(e,t))return null;{const n=Cw(e),i=Cw(t),o=n.prerelease.length||i.prerelease.length,a=o?"pre":"",c=o?"prerelease":"";for(const h in n)if((h==="major"||h==="minor"||h==="patch")&&n[h]!==i[h])return a+h;return c}};var U7=z7;const H7=kn,q7=(e,t)=>new H7(e,t).major;var j7=q7;const V7=kn,W7=(e,t)=>new V7(e,t).minor;var G7=W7;const K7=kn,X7=(e,t)=>new K7(e,t).patch;var Q7=X7;const Y7=Oa,Z7=(e,t)=>{const n=Y7(e,t);return n&&n.prerelease.length?n.prerelease:null};var J7=Z7;const eU=$r,tU=(e,t,n)=>eU(t,e,n);var nU=tU;const rU=$r,iU=(e,t)=>rU(e,t,!0);var sU=iU;const _w=kn,oU=(e,t,n)=>{const i=new _w(e,n),o=new _w(t,n);return i.compare(o)||i.compareBuild(o)};var pv=oU;const aU=pv,uU=(e,t)=>e.sort((n,i)=>aU(n,i,t));var lU=uU;const cU=pv,fU=(e,t)=>e.sort((n,i)=>cU(i,n,t));var hU=fU;const dU=$r,pU=(e,t,n)=>dU(e,t,n)>0;var Th=pU;const gU=$r,vU=(e,t,n)=>gU(e,t,n)<0;var gv=vU;const mU=$r,yU=(e,t,n)=>mU(e,t,n)!==0;var PC=yU;const bU=$r,wU=(e,t,n)=>bU(e,t,n)>=0;var vv=wU;const DU=$r,AU=(e,t,n)=>DU(e,t,n)<=0;var mv=AU;const xU=dv,EU=PC,CU=Th,_U=vv,SU=gv,FU=mv,$U=(e,t,n,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return xU(e,n,i);case"!=":return EU(e,n,i);case">":return CU(e,n,i);case">=":return _U(e,n,i);case"<":return SU(e,n,i);case"<=":return FU(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};var NC=$U;const TU=kn,kU=Oa,{re:kc,t:Lc}=Fi,LU=(e,t)=>{if(e instanceof TU)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(kc[Lc.COERCE]);else{let i;for(;(i=kc[Lc.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||i.index+i[0].length!==n.index+n[0].length)&&(n=i),kc[Lc.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;kc[Lc.COERCERTL].lastIndex=-1}return n===null?null:kU(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var BU=LU,lp,Sw;function OU(){return Sw||(Sw=1,lp=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),lp}var PU=ct;ct.Node=Js;ct.create=ct;function ct(e){var t=this;if(t instanceof ct||(t=new ct),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 n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}ct.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ct.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++}};ct.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++}};ct.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)IU(this,arguments[e]);return this.length};ct.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)RU(this,arguments[e]);return this.length};ct.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}};ct.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}};ct.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,i=0;n!==null;i++)e.call(t,n.value,i,this),n=n.next};ct.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,i=this.length-1;n!==null;i--)e.call(t,n.value,i,this),n=n.prev};ct.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};ct.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};ct.prototype.map=function(e,t){t=t||this;for(var n=new ct,i=this.head;i!==null;)n.push(e.call(t,i.value,this)),i=i.next;return n};ct.prototype.mapReverse=function(e,t){t=t||this;for(var n=new ct,i=this.tail;i!==null;)n.push(e.call(t,i.value,this)),i=i.prev;return n};ct.prototype.reduce=function(e,t){var n,i=this.head;if(arguments.length>1)n=t;else if(this.head)i=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;i!==null;o++)n=e(n,i.value,o),i=i.next;return n};ct.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else if(this.tail)i=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;i!==null;o--)n=e(n,i.value,o),i=i.prev;return n};ct.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};ct.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};ct.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new ct;if(t<e||t<0)return n;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)n.push(o.value);return n};ct.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new ct;if(t<e||t<0)return n;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)n.push(o.value);return n};ct.prototype.splice=function(e,t,...n){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<n.length;i++)o=NU(this,o,n[i]);return a};ct.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=e,this};function NU(e,t,n){var i=t===e.head?new Js(n,null,t,e):new Js(n,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function IU(e,t){e.tail=new Js(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function RU(e,t){e.head=new Js(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Js(e,t,n,i){if(!(this instanceof Js))return new Js(e,t,n,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{OU()(ct)}catch{}const MU=PU,zs=Symbol("max"),bi=Symbol("length"),Uo=Symbol("lengthCalculator"),Ou=Symbol("allowStale"),js=Symbol("maxAge"),mi=Symbol("dispose"),Fw=Symbol("noDisposeOnSet"),rn=Symbol("lruList"),br=Symbol("cache"),IC=Symbol("updateAgeOnGet"),cp=()=>1;class zU{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[zs]=t.max||1/0;const n=t.length||cp;if(this[Uo]=typeof n!="function"?cp:n,this[Ou]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[js]=t.maxAge||0,this[mi]=t.dispose,this[Fw]=t.noDisposeOnSet||!1,this[IC]=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[zs]=t||1/0,wu(this)}get max(){return this[zs]}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[js]=t,wu(this)}get maxAge(){return this[js]}set lengthCalculator(t){typeof t!="function"&&(t=cp),t!==this[Uo]&&(this[Uo]=t,this[bi]=0,this[rn].forEach(n=>{n.length=this[Uo](n.value,n.key),this[bi]+=n.length})),wu(this)}get lengthCalculator(){return this[Uo]}get length(){return this[bi]}get itemCount(){return this[rn].length}rforEach(t,n){n=n||this;for(let i=this[rn].tail;i!==null;){const o=i.prev;$w(this,t,i,n),i=o}}forEach(t,n){n=n||this;for(let i=this[rn].head;i!==null;){const o=i.next;$w(this,t,i,n),i=o}}keys(){return this[rn].toArray().map(t=>t.key)}values(){return this[rn].toArray().map(t=>t.value)}reset(){this[mi]&&this[rn]&&this[rn].length&&this[rn].forEach(t=>this[mi](t.key,t.value)),this[br]=new Map,this[rn]=new MU,this[bi]=0}dump(){return this[rn].map(t=>Ff(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[rn]}set(t,n,i){if(i=i||this[js],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const o=i?Date.now():0,a=this[Uo](n,t);if(this[br].has(t)){if(a>this[zs])return na(this,this[br].get(t)),!1;const d=this[br].get(t).value;return this[mi]&&(this[Fw]||this[mi](t,d.value)),d.now=o,d.maxAge=i,d.value=n,this[bi]+=a-d.length,d.length=a,this.get(t),wu(this),!0}const c=new UU(t,n,a,o,i);return c.length>this[zs]?(this[mi]&&this[mi](t,n),!1):(this[bi]+=c.length,this[rn].unshift(c),this[br].set(t,this[rn].head),wu(this),!0)}has(t){if(!this[br].has(t))return!1;const n=this[br].get(t).value;return!Ff(this,n)}get(t){return fp(this,t,!0)}peek(t){return fp(this,t,!1)}pop(){const t=this[rn].tail;return t?(na(this,t),t.value):null}del(t){na(this,this[br].get(t))}load(t){this.reset();const n=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-n;c>0&&this.set(o.k,o.v,c)}}}prune(){this[br].forEach((t,n)=>fp(this,n,!1))}}const fp=(e,t,n)=>{const i=e[br].get(t);if(i){const o=i.value;if(Ff(e,o)){if(na(e,i),!e[Ou])return}else n&&(e[IC]&&(i.value.now=Date.now()),e[rn].unshiftNode(i));return o.value}},Ff=(e,t)=>{if(!t||!t.maxAge&&!e[js])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[js]&&n>e[js]},wu=e=>{if(e[bi]>e[zs])for(let t=e[rn].tail;e[bi]>e[zs]&&t!==null;){const n=t.prev;na(e,t),t=n}},na=(e,t)=>{if(t){const n=t.value;e[mi]&&e[mi](n.key,n.value),e[bi]-=n.length,e[br].delete(n.key),e[rn].removeNode(t)}};class UU{constructor(t,n,i,o,a){this.key=t,this.value=n,this.length=i,this.now=o,this.maxAge=a||0}}const $w=(e,t,n,i)=>{let o=n.value;Ff(e,o)&&(na(e,n),e[Ou]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};var HU=zU,hp,Tw;function Tr(){if(Tw)return hp;Tw=1;class e{constructor(z,P){if(P=i(P),z instanceof e)return z.loose===!!P.loose&&z.includePrerelease===!!P.includePrerelease?z:new e(z.raw,P);if(z instanceof o)return this.raw=z.value,this.set=[[z]],this.format(),this;if(this.options=P,this.loose=!!P.loose,this.includePrerelease=!!P.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=n.get(F);if(D)return D;const R=this.options.loose,V=R?h[d.HYPHENRANGELOOSE]:h[d.HYPHENRANGE];z=z.replace(V,ne(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 Z=z.split(" ").map(_e=>L(_e,this.options)).join(" ").split(/\s+/).map(_e=>j(_e,this.options));R&&(Z=Z.filter(_e=>(a("loose invalid filter",_e,this.options),!!_e.match(h[d.COMPARATORLOOSE])))),a("range list",Z);const ue=new Map,ge=Z.map(_e=>new o(_e,this.options));for(const _e of ge){if(m(_e))return[_e];ue.set(_e.value,_e)}ue.size>1&&ue.has("")&&ue.delete("");const $e=[...ue.values()];return n.set(F,$e),$e}intersects(z,P){if(!(z instanceof e))throw new TypeError("a Range is required");return this.set.some(F=>$(F,P)&&z.set.some(D=>$(D,P)&&F.every(R=>D.every(V=>R.intersects(V,P)))))}test(z){if(!z)return!1;if(typeof z=="string")try{z=new c(z,this.options)}catch{return!1}for(let P=0;P<this.set.length;P++)if(oe(this.set[P],z,this.options))return!0;return!1}}hp=e;const t=HU,n=new t({max:1e3}),i=$h,o=kh(),a=Fh,c=kn,{re:h,t:d,comparatorTrimReplace:p,tildeTrimReplace:g,caretTrimReplace:y}=Fi,m=Y=>Y.value==="<0.0.0-0",w=Y=>Y.value==="",$=(Y,z)=>{let P=!0;const F=Y.slice();let D=F.pop();for(;P&&F.length;)P=F.every(R=>D.intersects(R,z)),D=F.pop();return P},L=(Y,z)=>(a("comp",Y,z),Y=O(Y,z),a("caret",Y),Y=C(Y,z),a("tildes",Y),Y=k(Y,z),a("xrange",Y),Y=U(Y,z),a("stars",Y),Y),E=Y=>!Y||Y.toLowerCase()==="x"||Y==="*",C=(Y,z)=>Y.trim().split(/\s+/).map(P=>S(P,z)).join(" "),S=(Y,z)=>{const P=z.loose?h[d.TILDELOOSE]:h[d.TILDE];return Y.replace(P,(F,D,R,V,Z)=>{a("tilde",Y,F,D,R,V,Z);let ue;return E(D)?ue="":E(R)?ue=`>=${D}.0.0 <${+D+1}.0.0-0`:E(V)?ue=`>=${D}.${R}.0 <${D}.${+R+1}.0-0`:Z?(a("replaceTilde pr",Z),ue=`>=${D}.${R}.${V}-${Z} <${D}.${+R+1}.0-0`):ue=`>=${D}.${R}.${V} <${D}.${+R+1}.0-0`,a("tilde return",ue),ue})},O=(Y,z)=>Y.trim().split(/\s+/).map(P=>B(P,z)).join(" "),B=(Y,z)=>{a("caret",Y,z);const P=z.loose?h[d.CARETLOOSE]:h[d.CARET],F=z.includePrerelease?"-0":"";return Y.replace(P,(D,R,V,Z,ue)=>{a("caret",Y,D,R,V,Z,ue);let ge;return E(R)?ge="":E(V)?ge=`>=${R}.0.0${F} <${+R+1}.0.0-0`:E(Z)?R==="0"?ge=`>=${R}.${V}.0${F} <${R}.${+V+1}.0-0`:ge=`>=${R}.${V}.0${F} <${+R+1}.0.0-0`:ue?(a("replaceCaret pr",ue),R==="0"?V==="0"?ge=`>=${R}.${V}.${Z}-${ue} <${R}.${V}.${+Z+1}-0`:ge=`>=${R}.${V}.${Z}-${ue} <${R}.${+V+1}.0-0`:ge=`>=${R}.${V}.${Z}-${ue} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?V==="0"?ge=`>=${R}.${V}.${Z}${F} <${R}.${V}.${+Z+1}-0`:ge=`>=${R}.${V}.${Z}${F} <${R}.${+V+1}.0-0`:ge=`>=${R}.${V}.${Z} <${+R+1}.0.0-0`),a("caret return",ge),ge})},k=(Y,z)=>(a("replaceXRanges",Y,z),Y.split(/\s+/).map(P=>M(P,z)).join(" ")),M=(Y,z)=>{Y=Y.trim();const P=z.loose?h[d.XRANGELOOSE]:h[d.XRANGE];return Y.replace(P,(F,D,R,V,Z,ue)=>{a("xRange",Y,F,D,R,V,Z,ue);const ge=E(R),$e=ge||E(V),_e=$e||E(Z),ze=_e;return D==="="&&ze&&(D=""),ue=z.includePrerelease?"-0":"",ge?D===">"||D==="<"?F="<0.0.0-0":F="*":D&&ze?($e&&(V=0),Z=0,D===">"?(D=">=",$e?(R=+R+1,V=0,Z=0):(V=+V+1,Z=0)):D==="<="&&(D="<",$e?R=+R+1:V=+V+1),D==="<"&&(ue="-0"),F=`${D+R}.${V}.${Z}${ue}`):$e?F=`>=${R}.0.0${ue} <${+R+1}.0.0-0`:_e&&(F=`>=${R}.${V}.0${ue} <${R}.${+V+1}.0-0`),a("xRange return",F),F})},U=(Y,z)=>(a("replaceStars",Y,z),Y.trim().replace(h[d.STAR],"")),j=(Y,z)=>(a("replaceGTE0",Y,z),Y.trim().replace(h[z.includePrerelease?d.GTE0PRE:d.GTE0],"")),ne=Y=>(z,P,F,D,R,V,Z,ue,ge,$e,_e,ze,Xe)=>(E(F)?P="":E(D)?P=`>=${F}.0.0${Y?"-0":""}`:E(R)?P=`>=${F}.${D}.0${Y?"-0":""}`:V?P=`>=${P}`:P=`>=${P}${Y?"-0":""}`,E(ge)?ue="":E($e)?ue=`<${+ge+1}.0.0-0`:E(_e)?ue=`<${ge}.${+$e+1}.0-0`:ze?ue=`<=${ge}.${$e}.${_e}-${ze}`:Y?ue=`<${ge}.${$e}.${+_e+1}-0`:ue=`<=${ue}`,`${P} ${ue}`.trim()),oe=(Y,z,P)=>{for(let F=0;F<Y.length;F++)if(!Y[F].test(z))return!1;if(z.prerelease.length&&!P.includePrerelease){for(let F=0;F<Y.length;F++)if(a(Y[F].semver),Y[F].semver!==o.ANY&&Y[F].semver.prerelease.length>0){const D=Y[F].semver;if(D.major===z.major&&D.minor===z.minor&&D.patch===z.patch)return!0}return!1}return!0};return hp}var dp,kw;function kh(){if(kw)return dp;kw=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(g,y){if(y=n(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,L=(this.operator===">="||this.operator==="<=")&&(g.operator===">="||g.operator==="<="),E=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||$&&L||E||C}}dp=t;const n=$h,{re:i,t:o}=Fi,a=NC,c=Fh,h=kn,d=Tr();return dp}const qU=Tr(),jU=(e,t,n)=>{try{t=new qU(t,n)}catch{return!1}return t.test(e)};var Lh=jU;const VU=Tr(),WU=(e,t)=>new VU(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));var GU=WU;const KU=kn,XU=Tr(),QU=(e,t,n)=>{let i=null,o=null,a=null;try{a=new XU(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new KU(i,n))}),i};var YU=QU;const ZU=kn,JU=Tr(),eH=(e,t,n)=>{let i=null,o=null,a=null;try{a=new JU(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new ZU(i,n))}),i};var tH=eH;const pp=kn,nH=Tr(),Lw=Th,rH=(e,t)=>{e=new nH(e,t);let n=new pp("0.0.0");if(e.test(n)||(n=new pp("0.0.0-0"),e.test(n)))return n;n=null;for(let i=0;i<e.set.length;++i){const o=e.set[i];let a=null;o.forEach(c=>{const h=new pp(c.semver.version);switch(c.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!a||Lw(h,a))&&(a=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),a&&(!n||Lw(n,a))&&(n=a)}return n&&e.test(n)?n:null};var iH=rH;const sH=Tr(),oH=(e,t)=>{try{return new sH(e,t).range||"*"}catch{return null}};var aH=oH;const uH=kn,RC=kh(),{ANY:lH}=RC,cH=Tr(),fH=Lh,Bw=Th,Ow=gv,hH=mv,dH=vv,pH=(e,t,n,i)=>{e=new uH(e,i),t=new cH(t,i);let o,a,c,h,d;switch(n){case">":o=Bw,a=hH,c=Ow,h=">",d=">=";break;case"<":o=Ow,a=dH,c=Bw,h="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(fH(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===lH&&(w=new RC(">=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 yv=pH;const gH=yv,vH=(e,t,n)=>gH(e,t,">",n);var mH=vH;const yH=yv,bH=(e,t,n)=>yH(e,t,"<",n);var wH=bH;const Pw=Tr(),DH=(e,t,n)=>(e=new Pw(e,n),t=new Pw(t,n),e.intersects(t));var AH=DH;const xH=Lh,EH=$r;var CH=(e,t,n)=>{const i=[];let o=null,a=null;const c=e.sort((g,y)=>EH(g,y,n));for(const g of c)xH(g,t,n)?(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 Nw=Tr(),rf=kh(),{ANY:gp}=rf,Du=Lh,bv=$r,_H=(e,t,n={})=>{if(e===t)return!0;e=new Nw(e,n),t=new Nw(t,n);let i=!1;e:for(const o of e.set){for(const a of t.set){const c=SH(o,a,n);if(i=i||c!==null,c)continue e}if(i)return!1}return!0},SH=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===gp){if(t.length===1&&t[0].semver===gp)return!0;n.includePrerelease?e=[new rf(">=0.0.0-0")]:e=[new rf(">=0.0.0")]}if(t.length===1&&t[0].semver===gp){if(n.includePrerelease)return!0;t=[new rf(">=0.0.0")]}const i=new Set;let o,a;for(const w of e)w.operator===">"||w.operator===">="?o=Iw(o,w,n):w.operator==="<"||w.operator==="<="?a=Rw(a,w,n):i.add(w.semver);if(i.size>1)return null;let c;if(o&&a){if(c=bv(o.semver,a.semver,n),c>0)return null;if(c===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const w of i){if(o&&!Du(w,String(o),n)||a&&!Du(w,String(a),n))return null;for(const $ of t)if(!Du(w,String($),n))return!1;return!0}let h,d,p,g,y=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,m=o&&!n.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=Iw(o,w,n),h===w&&h!==o)return!1}else if(o.operator===">="&&!Du(o.semver,String(w),n))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=Rw(a,w,n),d===w&&d!==a)return!1}else if(a.operator==="<="&&!Du(a.semver,String(w),n))return!1}if(!w.operator&&(a||o)&&c!==0)return!1}return!(o&&p&&!a&&c!==0||a&&g&&!o&&c!==0||m||y)},Iw=(e,t,n)=>{if(!e)return t;const i=bv(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},Rw=(e,t,n)=>{if(!e)return t;const i=bv(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var FH=_H;const vp=Fi,$H=Sh,TH=kn,Mw=OC,kH=Oa,LH=T7,BH=B7,OH=P7,PH=U7,NH=j7,IH=G7,RH=Q7,MH=J7,zH=$r,UH=nU,HH=sU,qH=pv,jH=lU,VH=hU,WH=Th,GH=gv,KH=dv,XH=PC,QH=vv,YH=mv,ZH=NC,JH=BU,eq=kh(),tq=Tr(),nq=Lh,rq=GU,iq=YU,sq=tH,oq=iH,aq=aH,uq=yv,lq=mH,cq=wH,fq=AH,hq=CH,dq=FH;var pq={parse:kH,valid:LH,clean:BH,inc:OH,diff:PH,major:NH,minor:IH,patch:RH,prerelease:MH,compare:zH,rcompare:UH,compareLoose:HH,compareBuild:qH,sort:jH,rsort:VH,gt:WH,lt:GH,eq:KH,neq:XH,gte:QH,lte:YH,cmp:ZH,coerce:JH,Comparator:eq,Range:tq,satisfies:nq,toComparators:rq,maxSatisfying:iq,minSatisfying:sq,minVersion:oq,validRange:aq,outside:uq,gtr:lq,ltr:cq,intersects:fq,simplifyRange:hq,subset:dq,SemVer:TH,re:vp.re,src:vp.src,tokens:vp.t,SEMVER_SPEC_VERSION:$H.SEMVER_SPEC_VERSION,compareIdentifiers:Mw.compareIdentifiers,rcompareIdentifiers:Mw.rcompareIdentifiers};const gq="concordance",vq="5.0.4",mq="Compare, format, diff and serialize any JavaScript value",yq="index.js",bq=["lib","index.js"],wq={node:">=10.18.0 <11 || >=12.14.0 <13 || >=14"},Dq={test:"as-i-preach && c8 ava"},Aq={type:"git",url:"git+https://github.com/concordancejs/concordance.git"},xq="Mark Wubben (https://novemberborn.net/)",Eq="ISC",Cq={url:"https://github.com/concordancejs/concordance/issues"},_q="https://github.com/concordancejs/concordance#readme",Sq={"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"},Fq={"@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"},$q={name:gq,version:vq,description:mq,main:yq,files:bq,engines:wq,scripts:Dq,repository:Aq,author:xq,license:Eq,bugs:Cq,homepage:_q,dependencies:Sq,devDependencies:Fq};var Pi={},Pa={},Tq=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"}})},wv={};const MC=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]));wv.isWellKnown=e=>MC.has(e);wv.getLabel=e=>MC.get(e);const zC=Tq,zw=wv,UC=bt,mp=Ht,kq=en,$f=UC.DEEP_EQUAL,ra=UC.UNEQUAL;function Lq(e){let t=null;const n=Symbol.keyFor(e);return n!==void 0?t=`Symbol.for(${zC(n)})`:zw.isWellKnown(e)&&(t=zw.getLabel(e)),new Oh({stringCompare:t,value:e})}Pa.describe=Lq;function Bq(e){const t=e[0],n=e[1]||e[0];return new Oq({string:n,stringCompare:t,value:null})}Pa.deserialize=Bq;const Bh=Symbol("SymbolValue");Pa.tag=Bh;class Oh{constructor(t){this.stringCompare=t.stringCompare,this.value=t.value}compare(t){return t.tag!==Bh?ra:this.stringCompare!==null?this.stringCompare===t.stringCompare?$f:ra:this.value===t.value?$f:ra}formatString(){return this.stringCompare!==null?this.stringCompare:zC(this.value.toString())}formatDeep(t){return kq.single(mp.wrap(t.symbol,this.formatString()))}formatAsKey(t){return mp.wrap(t.property.keyBracket,mp.wrap(t.symbol,this.formatString()))}serialize(){const t=this.formatString();return this.stringCompare===t?[this.stringCompare]:[this.stringCompare,t]}}Object.defineProperty(Oh.prototype,"isPrimitive",{value:!0});Object.defineProperty(Oh.prototype,"tag",{value:Bh});class Oq extends Oh{constructor(t){super(t),this.string=t.string}compare(t){return t.tag!==Bh?ra:this.stringCompare!==null?this.stringCompare===t.stringCompare?$f:ra:this.string===t.formatString()?$f:ra}formatString(){return this.string}}const Dv=bt,Pq=Ht,Uw=Pa.tag,sf=$t,Nq=Dv.AMBIGUOUS,Tf=Dv.DEEP_EQUAL,ba=Dv.UNEQUAL;function Iq(e,t){return new xv(e,t)}Pi.describeComplex=Iq;function Rq(e,t){const n=t();return new xv(e,n)}Pi.deserializeComplex=Rq;function Mq(e,t){return new Ev(e,t)}Pi.describePrimitive=Mq;function zq(e){const t=e[0],n=e[1];return new Ev(t,n)}Pi.deserializePrimitive=zq;const HC=Symbol("ComplexProperty");Pi.complexTag=HC;const qC=Symbol("PrimitiveProperty");Pi.primitiveTag=qC;class Av{constructor(t){this.key=t}compareKeys(t){const n=this.key.compare(t.key);return n===ba&&this.key.tag===Uw&&t.key.tag===Uw?Nq:n}prepareDiff(t,n,i,o,a){if(a(this.value)||a(t.value))return{compareResult:ba};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)===Tf)return t===h?null:{expectedIsMissing:!0,lhsRecursor:sf.unshift(n,this),rhsRecursor:c.recursor};t=c.shared()}while(!0)}}Object.defineProperty(Av.prototype,"isProperty",{value:!0});class xv extends Av{constructor(t,n){super(t),this.value=n}createRecursor(){return sf.singleValue(this.value)}compare(t){if(t.isProperty!==!0)return ba;const n=this.compareKeys(t);return n!==Tf?n:this.tag===t.tag?this.value.compare(t.value):ba}formatShallow(t,n){const i=t.property.increaseValueIndent===!0;return new Pq.SingleValueFormatter(t,o=>typeof t.property.customFormat=="function"?t.property.customFormat(t,n,this.key,o):o.withFirstPrefixed(this.key.formatAsKey(t)+t.property.separator).withLastPostfixed(t.property.after),i)}serialize(){return this.key}}Object.defineProperty(xv.prototype,"tag",{value:HC});class Ev extends Av{constructor(t,n){super(t),this.value=n}compare(t){if(t.isProperty!==!0)return ba;const n=this.compareKeys(t);return n!==Tf?n:this.tag!==t.tag?ba:this.value.compare(t.value)}formatDeep(t,n){const o=t.property.increaseValueIndent===!0?n.increase():n,a=this.value.formatDeep(t,o);return typeof t.property.customFormat=="function"?t.property.customFormat(t,n,this.key,a):a.withFirstPrefixed(this.key.formatAsKey(t)+t.property.separator).withLastPostfixed(t.property.after)}diffDeep(t,n,i,o){if(this.tag!==t.tag||typeof this.value.diffDeep!="function"||this.key.compare(t.key)!==Tf)return null;const c=n.property.increaseValueIndent===!0?i.increase():i,h=this.value.diffDeep(t.value,n,c,o);return h===null?null:typeof n.property.customFormat=="function"?n.property.customFormat(n,i,this.key,h):h.withFirstPrefixed(this.key.formatAsKey(n)+n.property.separator).withLastPostfixed(n.property.after)}serialize(){return[this.key,this.value]}}Object.defineProperty(Ev.prototype,"tag",{value:qC});var Hw;function Cv(){if(Hw)return Bs;Hw=1;const e=pq,t=$q,n=Jt,i=bt,o=Ht,a=en,c=Oi,h=Pi,d=oo,p=$t,g=Ph(),y=1,m=t.version,w=new Map,$=new Map;class L extends Error{constructor(D,R){super(D),this.name="PluginError",this.plugin=R}}class E extends TypeError{constructor(D,R){super(D),this.name="PluginTypeError",this.plugin=R}}class C extends L{constructor(D){super("Plugin requires an unsupported API version",D),this.name="UnsupportedApiError"}}class S extends L{constructor(D){super("Plugin does not support this version of Concordance",D),this.name="UnsupportedError"}}class O extends L{constructor(D,R){super(`Could not add descriptor: tag ${String(D)} has already been registered`,R),this.name="DuplicateDescriptorTagError",this.tag=D}}class B extends L{constructor(D,R){const V=typeof D=="number"?`0x${D.toString(16).toUpperCase()}`:String(D);super(`Could not add descriptor: id ${V} has already been registered`,R),this.name="DuplicateDescriptorIdError",this.id=D}}function k(F){if(typeof F.name!="string"||!F.name)throw new E("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 E("If specified, `minimalConcordanceVersion` must be a valid SemVer version",F);const D=`>=${F.minimalConcordanceVersion}`;if(!e.satisfies(m,D))throw new S(F)}}const M=Object.freeze({complexItem:c.complexTag,primitiveItem:c.primitiveTag,primitiveProperty:h.primitiveTag,string:d.tag}),U=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 ne(F){k(F);const D=F.name;if($.has(D))return $.get(D);const R=new Map,V=new Map,Z=($e,_e,ze)=>{if(R.has($e))throw new B($e,F);if(w.has(_e)||V.has(_e))throw new O(_e,F);R.set($e,ze),V.set(_e,$e)},ue=F.register({UNEQUAL:i.UNEQUAL,SHALLOW_EQUAL:i.SHALLOW_EQUAL,DEEP_EQUAL:i.DEEP_EQUAL,ObjectValue:n.ObjectValue,DescribedMixin:n.DescribedMixin,DeserializedMixin:n.DeserializedMixin,addDescriptor:Z,applyThemeModifiers:g.applyModifiers,descriptorTags:M,lineBuilder:U,mapRecursor:p.map,modifyTheme:j,wrapFromTheme:o.wrap}),ge={id2deserialize:R,serializerVersion:F.serializerVersion,name:D,tag2id:V,theme:F.theme||{},tryDescribeValue:ue};$.set(D,ge);for(const $e of V.keys())w.set($e,ge);return ge}Bs.add=ne;function oe(F){return F.map(D=>{const R=ne(D);return{id2deserialize:R.id2deserialize,name:R.name,serializerVersion:R.serializerVersion}})}Bs.getDeserializers=oe;function Y(F){return F.map(D=>{const R=ne(D);return{name:R.name,theme:R.theme}})}Bs.getThemes=Y;function z(F){return F.map(D=>ne(D).tryDescribeValue)}Bs.getTryDescribeValues=z;function P(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 Bs.resolveDescriptorRef=P,Bs}var qw;function Ph(){if(qw)return Mo;qw=1;const e=Bz,t=d7,n=Cv();function i(E){const C=[E];for(;C.length>0;){const S=C.shift();Object.freeze(S);for(const O of Object.keys(S)){const B=S[O];B!==null&&typeof B=="object"&&C.push(B)}}return E}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(E){if(!Array.isArray(E)||E.length===0)return null;const C=[],S=[];for(const k of n.getThemes(E))a.has(k.name)||a.set(k.name,a.count++),C.push(a.get(k.name)),S.push(k.theme);const O=C.join(".");if(c.has(O))return{ref:O,theme:c.get(O)};const B=i(S.reduce((k,M)=>t(k,M),e(o)));return c.set(O,B),{ref:O,theme:B}}const d=new WeakMap;function p(E){E=Object.assign({plugins:[],theme:null},E);const C=h(E.plugins);if(!E.theme)return C?C.theme:o;const S=d.get(E.theme)||{theme:null,withPlugins:new Map};if(d.has(E.theme)||d.set(E.theme,S),C){if(S.withPlugins.has(C.ref))return S.withPlugins.get(C.ref);const O=i(t(e(C.theme),E.theme));return S.withPlugins.set(C.ref,O),O}return S.theme||(S.theme=i(t(e(o),E.theme))),S.theme}Mo.normalize=p;const g=new WeakMap;function y(E,C){g.has(E)?g.get(E).add(C):g.set(E,new Set([C]))}Mo.addModifier=y;const m=new WeakMap,w=new WeakMap;function $(E,C){return g.has(E)?Array.from(g.get(E)).reduce((S,O)=>{const B=m.get(O)||new WeakMap;if(m.has(O)||m.set(O,B),B.has(S))return B.get(S);const k=e(S);return O(k),i(k),B.set(S,k),w.set(k,C),k},C):C}Mo.applyModifiers=$;function L(E,C){return $(E,w.get(C)||C)}return Mo.applyModifiersToOriginal=L,Mo}const _v=bt,jw=en,Bc=$t,Oc=Ph(),Au=_v.DEEP_EQUAL,di=_v.UNEQUAL,Vw=_v.SHALLOW_EQUAL;function Uq(e,t){const n=e.isPrimitive===!0,i=t.isPrimitive===!0;return new Nh(e,t,n,i)}bl.describe=Uq;function Hq(e,t){const n=e[0],i=e[1],o=t(),a=t();return new Nh(o,a,n,i)}bl.deserialize=Hq;const jC=Symbol("MapEntry");bl.tag=jC;function yp(e,t,n){const i=jw.buffer(),o=jw.buffer();for(const a of t)!a.isLast&&!a.hasGutter?i.append(a):o.append(a);for(const a of n)i.append(o.mergeWithInfix(e.mapEntry.separator,a).withLastPostfixed(e.mapEntry.after));return i}class Nh{constructor(t,n,i,o){this.key=t,this.value=n,this.keyIsPrimitive=i,this.valueIsPrimitive=o}createRecursor(){let t=!0,n=!0;return()=>t?(t=!1,this.key):n?(n=!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 Vw;const n=this.key.compare(t.key);return n!==Au?n:this.valueIsPrimitive?this.value.compare(t.value):Vw}formatDeep(t,n){if(!this.keyIsPrimitive||typeof this.value.formatDeep!="function")return null;const i=this.value.formatDeep(Oc.applyModifiersToOriginal(this.value,t),n);if(i===null)return null;const o=this.key.formatDeep(Oc.applyModifiersToOriginal(this.key,t),n);return yp(t,o,[i])}formatShallow(t,n){let i=null;const o=[];return{append:(a,c)=>{this.key===c?i=a:o.push(a)},finalize(){return yp(t,i,o)}}}diffDeep(t,n,i,o){if(this.tag!==t.tag||typeof this.value.diffDeep!="function"||!this.keyIsPrimitive||!t.keyIsPrimitive||this.key.compare(t.key)!==Au)return null;const a=this.value.diffDeep(t.value,Oc.applyModifiersToOriginal(this.value,n),i,o);if(a===null)return null;const c=this.key.formatDeep(Oc.applyModifiersToOriginal(this.key,n),i,"");return yp(n,c,[a])}prepareDiff(t,n,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)===Au;if(c===Au||h)return{compareResult:c};const d=Bc.fork(n),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)===Au),$=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(Nh.prototype,"isMapEntry",{value:!0});Object.defineProperty(Nh.prototype,"tag",{value:jC});var El={};const VC=bt,qq=Ht,jq=en,Vq=VC.DEEP_EQUAL,Wq=VC.UNEQUAL;function WC(e){return new Fv(e)}El.describe=WC;El.deserialize=WC;const Sv=Symbol("BigIntValue");El.tag=Sv;class Fv{constructor(t){this.value=t}compare(t){return t.tag===Sv&&Object.is(this.value,t.value)?Vq:Wq}formatDeep(t){return jq.single(qq.wrap(t.bigInt,`${this.value}n`))}serialize(){return this.value}}Object.defineProperty(Fv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Fv.prototype,"tag",{value:Sv});var Cl={};const GC=bt,Gq=Ht,Kq=en,Xq=GC.DEEP_EQUAL,Qq=GC.UNEQUAL;function KC(e){return new $v(e)}Cl.describe=KC;Cl.deserialize=KC;const XC=Symbol("BooleanValue");Cl.tag=XC;class $v{constructor(t){this.value=t}compare(t){return this.tag===t.tag&&this.value===t.value?Xq:Qq}formatDeep(t){return Kq.single(Gq.wrap(t.boolean,this.value===!0?"true":"false"))}serialize(){return this.value}}Object.defineProperty($v.prototype,"isPrimitive",{value:!0});Object.defineProperty($v.prototype,"tag",{value:XC});var _l={};const QC=bt,Yq=Ht,Zq=en,Jq=QC.DEEP_EQUAL,ej=QC.UNEQUAL;function YC(){return new kv}_l.describe=YC;_l.deserialize=YC;const Tv=Symbol("NullValue");_l.tag=Tv;class kv{compare(t){return t.tag===Tv?Jq:ej}formatDeep(t){return Zq.single(Yq.wrap(t.null,"null"))}}Object.defineProperty(kv.prototype,"isPrimitive",{value:!0});Object.defineProperty(kv.prototype,"tag",{value:Tv});var Sl={};const ZC=bt,tj=Ht,nj=en,rj=ZC.DEEP_EQUAL,ij=ZC.UNEQUAL;function JC(e){return new Bv(e)}Sl.describe=JC;Sl.deserialize=JC;const Lv=Symbol("NumberValue");Sl.tag=Lv;class Bv{constructor(t){this.value=t}compare(t){return t.tag===Lv&&Object.is(this.value,t.value)?rj:ij}formatDeep(t){const n=Object.is(this.value,-0)?"-0":String(this.value);return nj.single(tj.wrap(t.number,n))}serialize(){return this.value}}Object.defineProperty(Bv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Bv.prototype,"tag",{value:Lv});var Fl={};const e_=bt,sj=Ht,oj=en,aj=e_.DEEP_EQUAL,uj=e_.UNEQUAL;function t_(){return new Pv}Fl.describe=t_;Fl.deserialize=t_;const Ov=Symbol("UndefinedValue");Fl.tag=Ov;class Pv{compare(t){return t.tag===Ov?aj:uj}formatDeep(t){return oj.single(sj.wrap(t.undefined,"undefined"))}}Object.defineProperty(Pv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Pv.prototype,"tag",{value:Ov});const lj=T3,cj=Fa,fj=ul,hj=ll,dj=cl,pj=fl,gj=hl,Ww=dl,vj=pl,mj=gl,yj=Jt,bj=vl,wj=ml,Dj=yl,pi=er,Aj=r8,xj=u0,Gw=Oi,Ej=bl,Kw=Pi,Cj=Cv(),_j=El,Sj=Cl,Fj=_l,$j=Sl,Tj=oo,kj=Pa,Lj=Fl,Xw=new Map([["Arguments",cj.describe],["ArrayBuffer",fj.describe],["DataView",dj.describe],["Date",pj.describe],["Error",gj.describe],["Float32Array",pi.describe],["Float64Array",pi.describe],["Function",Ww.describe],["GeneratorFunction",Ww.describe],["global",vj.describe],["Int16Array",pi.describe],["Int32Array",pi.describe],["Int8Array",pi.describe],["Map",mj.describe],["Promise",bj.describe],["RegExp",wj.describe],["Set",Dj.describe],["Uint16Array",pi.describe],["Uint32Array",pi.describe],["Uint8Array",pi.describe],["Uint8ClampedArray",pi.describe]]);function of(e){if(e===null)return Fj.describe();if(e===void 0)return Lj.describe();if(e===!0||e===!1)return Sj.describe(e);const t=typeof e;return t==="bigint"?_j.describe(e):t==="number"?$j.describe(e):t==="string"?Tj.describe(e):t==="symbol"?kj.describe(e):null}function Bj(e,t){if(typeof t.valueOf=="function"){const n=t.valueOf();if(n!==t)return of(n)}return null}function Oj(e){if(!Array.isArray(e)||e.length===0)return()=>null;const t=Cj.getTryDescribeValues(e);return(n,i,o)=>{for(const a of t){const c=a(n,i,o);if(c)return c}return null}}function Pj(e,t,n,i,o,a,c){if(t.has(e))return t.get(e);const h=xj(e),d=Aj(h,e),p=t.alloc(e);let g,y=n(e,h,d);y===null&&(Xw.has(h)?y=Xw.get(h):(g=Bj(h,e),g!==null?y=hj.describe:y=yj.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 Nj=(e,t)=>t.isPrimitive===!0?Gw.describePrimitive(e,t):Gw.describeComplex(e,t),Ij=(e,t)=>Ej.describe(e,t);function Rj(e,t){const n=of(e);if(n!==null)return n;const i=new lj,o=Oj(t&&t.plugins),a=d=>Pj(d,i,o,c,Nj,Ij,h),c=d=>{const p=of(d);return p!==null?p:a(d)},h=(d,p)=>{const g=of(d);return p.isPrimitive===!0?Kw.describePrimitive(g,p):Kw.describeComplex(g,p)};return a(e)}var Ih=Rj;const Mj=Fa.tag,n_=bt,zj=n_.AMBIGUOUS,Uj=n_.SHALLOW_EQUAL;function Hj(e,t,n){return e===Uj?!0:e!==zj?!1:t.tag===Mj||t.isProperty===!0}var r_=Hj,Rh={};const Nv=bt,qj=$t,Qw=Nv.DEEP_EQUAL,jj=Nv.SHALLOW_EQUAL,Yw=Nv.UNEQUAL;class Iv{constructor(t){this.properties=t,this.ordered=t.slice()}createRecursor(){const t=this.ordered.length;let n=0;return()=>n===t?null:this.ordered[n++]}compare(t){if(this.properties.length!==t.properties.length)return Yw;const n=[],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)===Qw){a=!1,i.add(c.key),n.push(c);break}if(a)return Yw}return t.ordered=n,jj}prepareDiff(t){const n=[],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)===Qw){c=!1,o.add(h.key),i.push(a);break}c&&n.push(a)}return t.ordered=i.concat(n),{mustRecurse:!0}}}Object.defineProperty(Iv.prototype,"isSymbolPropertiesComparable",{value:!0});Rh.Comparable=Iv;class i_{constructor(t,n){this.properties=[t],this.recursor=n,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 qj.singleValue(new Iv(this.properties))}}Object.defineProperty(i_.prototype,"isSymbolPropertiesCollector",{value:!0});Rh.Collector=i_;const Zw=mg,Rv=bt,Jw=Ih,eD=$t,Vj=r_,tD=Rh,Wj=Rv.AMBIGUOUS,nD=Rv.DEEP_EQUAL,bp=Rv.UNEQUAL;function rD(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 s_(e,t){const n=new Zw,i=new Zw,o=[],a=[];let c=-1;do{let h;if(n.has(e)?h=n.get(e)===i.get(t)?nD:bp:i.has(t)?h=bp:h=e.compare(t),h===bp)return!1;if(h!==nD){if(!Vj(h,e))return!1;h===Wj&&e.isProperty===!0&&(e=new tD.Collector(e,o[c].recursor),t=new tD.Collector(t,a[c].recursor),o[c].recursor=eD.unshift(o[c].recursor,e.collectAll()),a[c].recursor=eD.unshift(a[c].recursor,t.collectAll())),n.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();n.delete(d.subject),i.delete(p.subject),c--}else return!1}while(c>=0);return!0}vg.compareDescriptors=s_;function Gj(e,t,n){if(Object.is(e,t))return{pass:!0};if(rD(e)||rD(t))return{pass:!1};e=Jw(e,n),t=Jw(t,n);const i=s_(e,t);return{actual:e,expected:t,pass:i}}vg.compare=Gj;var Mv={};let Kj=class g0{constructor(t,n){this.level=t,this.step=n,this.value=n.repeat(t)}increase(){return new g0(this.level+1,this.step)}decrease(){return new g0(this.level-1,this.step)}toString(){return this.value}};var o_=Kj;const iD=mg,Xj=o_,Mh=bt,sD=Ih,ir=en,Ko=$t,v0=r_,kf=Rh,Os=Ph(),m0=Mh.AMBIGUOUS,Pu=Mh.DEEP_EQUAL,Us=Mh.UNEQUAL,Qj=Mh.SHALLOW_EQUAL,oD=Symbol("NOOP"),wp=()=>!0;function Yj(e,t){let n=e.compare(t);if(n===Pu)return Pu;if(n===Us||!v0(n,e))return Us;let i=!1,o=e.createRecursor(),a=t.createRecursor();do{if(e=o(),t=a(),e===null&&t===null)return Qj;if(e===null||t===null||(n=e.compare(t),n===Us))return Us;if(n===m0&&e.isProperty===!0&&!i&&v0(n,e)){i=!0;const c=new kf.Collector(e,o),h=new kf.Collector(t,a);o=Ko.sequence(c.createRecursor(),Ko.unshift(o,c.collectAll())),a=Ko.sequence(h.createRecursor(),Ko.unshift(a,h.collectAll()))}}while(!0)}function a_(e,t,n){const i=Os.normalize(n),o=n?n.invert===!0:!1,a=new iD,c=new iD,h=n&&n.maxDepth||0;let d=new Xj(0," ");const p=[],g=[];let y=-1;const m=ir.buffer(),w=[];let $=-1;const L=C=>a.has(C)||c.has(C),E=(C,S,O,B=0)=>{if($>=0&&!w[$].shouldFormat(S))return;if(O.has(S)){w[$].formatter.append(C.single(i.circular));return}const k=[];let M=-1;do{if(O.has(S))k[M].formatter.append(C.single(i.circular),S);else{let U=!1;if(typeof S.formatDeep=="function"){let j=S.formatDeep(Os.applyModifiers(S,i),d);j!==null&&(U=!0,M===-1?(j=C.setDefaultGutter(j),$===-1?m.append(j):w[$].formatter.append(j,S)):k[M].formatter.append(j,S))}if(!U&&typeof S.formatShallow=="function"){const j=S.formatShallow(Os.applyModifiers(S,i),d),ne=S.createRecursor();if(j.increaseIndent&&h>0&&d.level===h+B){let Y=!(ne()===null)&&typeof j.maxDepth=="function"?j.maxDepth():j.finalize();M===-1?(Y=C.setDefaultGutter(Y),w[$].formatter.append(Y,S)):k[M].formatter.append(Y,S)}else k.push({formatter:j,recursor:ne,decreaseIndent:j.increaseIndent,shouldFormat:j.shouldFormat||wp,subject:S}),M++,j.increaseIndent&&(d=d.increase()),O.add(S)}}for(;M>=0;){do S=k[M].recursor();while(S&&!k[M].shouldFormat(S));if(S)break;const U=k.pop();M--,U.decreaseIndent&&(d=d.decrease()),O.delete(U.subject);let j=U.formatter.finalize();M===-1?(j=C.setDefaultGutter(j),$===-1?m.append(j):w[$].formatter.append(j,U.subject)):k[M].formatter.append(j,U.subject)}}while(M>=0)};do{let C=oD;a.has(e)?C=a.get(e)===c.get(t)?Pu:Us:c.has(t)&&(C=Us);let S=!1;if(e.isProperty===!0&&(C=e.compare(t),C===m0)){const k=p[y].subject;S=k.isSymbolPropertiesCollector!==!0&&k.isSymbolPropertiesComparable!==!0}let O=!1,B=!1;if(C!==Pu&&!S&&typeof e.prepareDiff=="function"){const k=y===-1?null:p[y].recursor,M=y===-1?null:g[y].recursor,U=e.prepareDiff(t,k,M,Yj,L);if(U!==null){if(y>=0&&(typeof U.lhsRecursor=="function"&&(p[y].recursor=U.lhsRecursor),typeof U.rhsRecursor=="function"&&(g[y].recursor=U.rhsRecursor)),U.compareResult&&(C=U.compareResult),U.mustRecurse===!0)B=!0;else if(U.actualIsExtraneous===!0)E(ir.actual,e,a),O=!0;else if(U.multipleAreExtraneous===!0){for(const j of U.descriptors)E(ir.actual,j,a);O=!0}else if(U.expectedIsMissing===!0)E(ir.expected,t,c),O=!0;else if(U.multipleAreMissing===!0){for(const j of U.descriptors)E(ir.expected,j,c);O=!0}else if(U.isUnequal===!0)E(ir.actual,e,a),E(ir.expected,t,c),O=!0;else if(!U.compareResult)throw new Error("Illegal result of prepareDiff()")}}if(!O)if(C===oD&&(C=e.compare(t)),B||(B=v0(C,e)),C===Pu)E(ir,e,a);else if(B){if(C===m0&&e.isProperty===!0&&(e=new kf.Collector(e,p[y].recursor),t=new kf.Collector(t,g[y].recursor),p[y].recursor=Ko.unshift(p[y].recursor,e.collectAll()),g[y].recursor=Ko.unshift(g[y].recursor,t.collectAll())),typeof e.diffShallow=="function"){const k=e.diffShallow(t,Os.applyModifiers(e,i),d);w.push({formatter:k,origin:e,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||wp}),$++,k.increaseIndent&&(d=d.increase())}else if(typeof e.formatShallow=="function"){const k=e.formatShallow(Os.applyModifiers(e,i),d);w.push({formatter:k,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||wp,subject:e}),$++,k.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 k=typeof e.diffDeep=="function"?e.diffDeep(t,Os.applyModifiers(e,i),d,o):null;k===null?(E(ir.actual,e,a),E(ir.expected,t,c)):$===-1?m.append(k):w[$].formatter.append(k,e)}for(;y>=0&&(e=p[y].recursor(),t=g[y].recursor(),!(e!==null&&t!==null));)if(e===null&&t===null){const k=p.pop(),M=g.pop();if(a.delete(k.subject),c.delete(M.subject),y--,k.diffIndex===$){const U=w.pop();$--,U.decreaseIndent&&(d=d.decrease());let j=U.formatter.finalize();if(U.exceedsMaxDepth&&!j.hasGutter){const ne=k.subject,oe=ne.formatShallow(Os.applyModifiers(ne,i),d);j=!(ne.createRecursor()()===null)&&typeof oe.maxDepth=="function"?oe.maxDepth():oe.finalize()}$===-1?m.append(j):w[$].formatter.append(j,U.subject)}}else{let k,M,U,j;e===null?(k=ir.expected,M=c,U=g,j=t):(k=ir.actual,M=a,U=p,j=e);do E(k,j,M,d.level),j=U[y].recursor();while(j!==null)}}while(y>=0);return m.toString({diff:!0,invert:o,theme:i})}Mv.diffDescriptors=a_;function Zj(e,t,n){return a_(sD(e,n),sD(t,n),n)}Mv.diff=Zj;var zv={};const Jj=mg,eV=o_,tV=Ih,aD=en,Pc=Ph(),nV=()=>!0,uD=new eV(0," ");function u_(e,t){const n=Pc.normalize(t);if(e.isPrimitive===!0)return e.formatDeep(Pc.applyModifiers(e,n),uD).toString({diff:!1});const i=new Jj,o=t&&t.maxDepth||0;let a=uD;const c=aD.buffer(),h=[];let d=-1;do{if(i.has(e))h[d].formatter.append(aD.single(n.circular),e);else{let p=!1;if(typeof e.formatDeep=="function"){const g=e.formatDeep(Pc.applyModifiers(e,n),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,n),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||nV,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})}zv.formatDescriptor=u_;function rV(e,t){return u_(tV(e,t),t)}zv.format=rV;var Uv={},y0={},iV={get exports(){return y0},set exports(e){y0=e}};(function(e){(function(t){function n(k,M){var U=(k&65535)+(M&65535),j=(k>>16)+(M>>16)+(U>>16);return j<<16|U&65535}function i(k,M){return k<<M|k>>>32-M}function o(k,M,U,j,ne,oe){return n(i(n(n(M,k),n(j,oe)),ne),U)}function a(k,M,U,j,ne,oe,Y){return o(M&U|~M&j,k,M,ne,oe,Y)}function c(k,M,U,j,ne,oe,Y){return o(M&j|U&~j,k,M,ne,oe,Y)}function h(k,M,U,j,ne,oe,Y){return o(M^U^j,k,M,ne,oe,Y)}function d(k,M,U,j,ne,oe,Y){return o(U^(M|~j),k,M,ne,oe,Y)}function p(k,M){k[M>>5]|=128<<M%32,k[(M+64>>>9<<4)+14]=M;var U,j,ne,oe,Y,z=1732584193,P=-271733879,F=-1732584194,D=271733878;for(U=0;U<k.length;U+=16)j=z,ne=P,oe=F,Y=D,z=a(z,P,F,D,k[U],7,-680876936),D=a(D,z,P,F,k[U+1],12,-389564586),F=a(F,D,z,P,k[U+2],17,606105819),P=a(P,F,D,z,k[U+3],22,-1044525330),z=a(z,P,F,D,k[U+4],7,-176418897),D=a(D,z,P,F,k[U+5],12,1200080426),F=a(F,D,z,P,k[U+6],17,-1473231341),P=a(P,F,D,z,k[U+7],22,-45705983),z=a(z,P,F,D,k[U+8],7,1770035416),D=a(D,z,P,F,k[U+9],12,-1958414417),F=a(F,D,z,P,k[U+10],17,-42063),P=a(P,F,D,z,k[U+11],22,-1990404162),z=a(z,P,F,D,k[U+12],7,1804603682),D=a(D,z,P,F,k[U+13],12,-40341101),F=a(F,D,z,P,k[U+14],17,-1502002290),P=a(P,F,D,z,k[U+15],22,1236535329),z=c(z,P,F,D,k[U+1],5,-165796510),D=c(D,z,P,F,k[U+6],9,-1069501632),F=c(F,D,z,P,k[U+11],14,643717713),P=c(P,F,D,z,k[U],20,-373897302),z=c(z,P,F,D,k[U+5],5,-701558691),D=c(D,z,P,F,k[U+10],9,38016083),F=c(F,D,z,P,k[U+15],14,-660478335),P=c(P,F,D,z,k[U+4],20,-405537848),z=c(z,P,F,D,k[U+9],5,568446438),D=c(D,z,P,F,k[U+14],9,-1019803690),F=c(F,D,z,P,k[U+3],14,-187363961),P=c(P,F,D,z,k[U+8],20,1163531501),z=c(z,P,F,D,k[U+13],5,-1444681467),D=c(D,z,P,F,k[U+2],9,-51403784),F=c(F,D,z,P,k[U+7],14,1735328473),P=c(P,F,D,z,k[U+12],20,-1926607734),z=h(z,P,F,D,k[U+5],4,-378558),D=h(D,z,P,F,k[U+8],11,-2022574463),F=h(F,D,z,P,k[U+11],16,1839030562),P=h(P,F,D,z,k[U+14],23,-35309556),z=h(z,P,F,D,k[U+1],4,-1530992060),D=h(D,z,P,F,k[U+4],11,1272893353),F=h(F,D,z,P,k[U+7],16,-155497632),P=h(P,F,D,z,k[U+10],23,-1094730640),z=h(z,P,F,D,k[U+13],4,681279174),D=h(D,z,P,F,k[U],11,-358537222),F=h(F,D,z,P,k[U+3],16,-722521979),P=h(P,F,D,z,k[U+6],23,76029189),z=h(z,P,F,D,k[U+9],4,-640364487),D=h(D,z,P,F,k[U+12],11,-421815835),F=h(F,D,z,P,k[U+15],16,530742520),P=h(P,F,D,z,k[U+2],23,-995338651),z=d(z,P,F,D,k[U],6,-198630844),D=d(D,z,P,F,k[U+7],10,1126891415),F=d(F,D,z,P,k[U+14],15,-1416354905),P=d(P,F,D,z,k[U+5],21,-57434055),z=d(z,P,F,D,k[U+12],6,1700485571),D=d(D,z,P,F,k[U+3],10,-1894986606),F=d(F,D,z,P,k[U+10],15,-1051523),P=d(P,F,D,z,k[U+1],21,-2054922799),z=d(z,P,F,D,k[U+8],6,1873313359),D=d(D,z,P,F,k[U+15],10,-30611744),F=d(F,D,z,P,k[U+6],15,-1560198380),P=d(P,F,D,z,k[U+13],21,1309151649),z=d(z,P,F,D,k[U+4],6,-145523070),D=d(D,z,P,F,k[U+11],10,-1120210379),F=d(F,D,z,P,k[U+2],15,718787259),P=d(P,F,D,z,k[U+9],21,-343485551),z=n(z,j),P=n(P,ne),F=n(F,oe),D=n(D,Y);return[z,P,F,D]}function g(k){var M,U="",j=k.length*32;for(M=0;M<j;M+=8)U+=String.fromCharCode(k[M>>5]>>>M%32&255);return U}function y(k){var M,U=[];for(U[(k.length>>2)-1]=void 0,M=0;M<U.length;M+=1)U[M]=0;var j=k.length*8;for(M=0;M<j;M+=8)U[M>>5]|=(k.charCodeAt(M/8)&255)<<M%32;return U}function m(k){return g(p(y(k),k.length*8))}function w(k,M){var U,j=y(k),ne=[],oe=[],Y;for(ne[15]=oe[15]=void 0,j.length>16&&(j=p(j,k.length*8)),U=0;U<16;U+=1)ne[U]=j[U]^909522486,oe[U]=j[U]^1549556828;return Y=p(ne.concat(y(M)),512+M.length*8),g(p(oe.concat(Y),512+128))}function $(k){var M="0123456789abcdef",U="",j,ne;for(ne=0;ne<k.length;ne+=1)j=k.charCodeAt(ne),U+=M.charAt(j>>>4&15)+M.charAt(j&15);return U}function L(k){return unescape(encodeURIComponent(k))}function E(k){return m(L(k))}function C(k){return $(E(k))}function S(k,M){return w(L(k),L(M))}function O(k,M){return $(S(k,M))}function B(k,M,U){return M?U?S(M,k):O(M,k):U?E(k):C(k)}e.exports?e.exports=B:t.md5=B})(ur)})(iV);const sV=y0;var oV=e=>(Array.isArray(e)&&(e=e.join("")),sV(e)),lo={},lD=xh,aV=iv,uV=Al,cD=lD?lD.isConcatSpreadable:void 0;function lV(e){return uV(e)||aV(e)||!!(cD&&e&&e[cD])}var cV=lV,fV=lv,hV=cV;function l_(e,t,n,i,o){var a=-1,c=e.length;for(n||(n=hV),o||(o=[]);++a<c;){var h=e[a];t>0&&n(h)?t>1?l_(h,t-1,n,i,o):fV(o,h):i||(o[o.length]=h)}return o}var dV=l_,pV=dV,gV=1/0;function vV(e){var t=e==null?0:e.length;return t?pV(e,gV):[]}var mV=vV;const yV=mV,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},Hv=Symbol("descriptor");lo.descriptorSymbol=Hv;function Ho(e,t){const n=Buffer.alloc(e);return n.writeIntLE(t,0,e),[e,n]}function Xn(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 Ho(je.int8,e);if(e>=-32768&&e<32768)return Ho(je.int16,e);if(e>=-8388608&&e<8388608)return Ho(je.int24,e);if(e>=-2147483648&&e<2147483648)return Ho(je.int32,e);if(e>=-549755813888&&e<549755813888)return Ho(je.int40,e);if(e>=-0x800000000000&&e<0x800000000000)return Ho(je.int48,e)}const i=Buffer.from(String(e),"utf8");return[je.numberString,Xn(i.length),i]}if(t==="string"){const i=Buffer.from(e,"utf8");return[je.utf8,Xn(i.length),i]}if(t==="bigint"){const i=Buffer.from(String(e),"utf8");return[je.bigInt,Xn(i.length),i]}if(Buffer.isBuffer(e))return[je.bytes,Xn(e.byteLength),e];if(Array.isArray(e))return[e[Hv]===!0?je.descriptor:je.list,Xn(e.length),e.map(i=>Xn(i))];const n=`0x${t.toString(16).toUpperCase()}`;throw new TypeError(`Unexpected value with type ${n}`)}function Kr(e,t){const n=e.readUInt8(t);if(t+=1,n===je.zero)return{byteOffset:t,value:0};if(n===je.negativeZero)return{byteOffset:t,value:-0};if(n===je.notANumber)return{byteOffset:t,value:NaN};if(n===je.infinity)return{byteOffset:t,value:1/0};if(n===je.negativeInfinity)return{byteOffset:t,value:-1/0};if(n===je.undefined)return{byteOffset:t,value:void 0};if(n===je.null)return{byteOffset:t,value:null};if(n===je.true)return{byteOffset:t,value:!0};if(n===je.false)return{byteOffset:t,value:!1};if(n===je.int8||n===je.int16||n===je.int24||n===je.int32||n===je.int40||n===je.int48){const o=e.readIntLE(t,n);return t+=n,{byteOffset:t,value:o}}if(n===je.numberString||n===je.utf8||n===je.bytes||n===je.bigInt){const o=Kr(e,t),a=o.byteOffset,c=a+o.value;if(n===je.numberString){const d=Number(e.toString("utf8",a,c));return{byteOffset:c,value:d}}if(n===je.utf8){const d=e.toString("utf8",a,c);return{byteOffset:c,value:d}}if(n===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(n===je.list||n===je.descriptor){const o=Kr(e,t);t=o.byteOffset;const a=new Array(o.value);n===je.descriptor&&(a[Hv]=!0);for(let c=0;c<o.value;c++){const h=Kr(e,t);t=h.byteOffset,a[c]=h.value}return{byteOffset:t,value:a}}const i=`0x${n.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=yV(e),n=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),n[o]=c}else i+=a.byteLength,n[o]=a;return Buffer.concat(n,i)}function bV(e,t,n){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(Xn(n.size));i.push(h),o+=h.byteLength;for(const g of n.keys()){const y=n.get(g),m=Nc([Xn(g),Xn(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([Xn(g.pluginIndex),Xn(g.id),Xn(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(Xn(g.state));i.push(m),o+=m.byteLength}return Buffer.concat(i,o)}lo.encode=bV;function wV(e){const t=Kr(e,0);let n=t.byteOffset;const i=new Map,o=t.value;for(let a=1;a<=o;a++){const c=Kr(e,n),h=c.value;n=c.byteOffset;const d=Kr(e,n).value;i.set(a,{name:h,serializerVersion:d})}return i}lo.decodePlugins=wV;function c_(e,t){const n=Kr(e,t),i=n.value;t=n.byteOffset;const o=Kr(e,t),a=o.value;t=o.byteOffset;const c=Kr(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=Kr(e,t).value;return{id:a,pluginIndex:i,state:p,pointerAddresses:d}}lo.decodeRecord=c_;function DV(e){return e.readUInt16LE(0)}lo.extractVersion=DV;function AV(e){const t=e.readUInt32LE(2),n=e.slice(6,t),i=c_(e,t);return{pluginBuffer:n,rootRecord:i}}lo.decode=AV;var zh={};const xV=bt.UNEQUAL;function f_(e){return new qv(e)}zh.describe=f_;zh.deserialize=f_;const h_=Symbol("Pointer");zh.tag=h_;class qv{constructor(t){this.index=t}compare(t){return xV}serialize(){return this.index}}Object.defineProperty(qv.prototype,"isPointer",{value:!0});Object.defineProperty(qv.prototype,"tag",{value:h_});const EV=oV,fD=Fa,hD=ul,dD=ll,pD=cl,gD=fl,vD=hl,mD=dl,yD=pl,bD=gl,wD=Jt,DD=vl,AD=ml,xD=yl,Ic=er,eo=lo,Rc=Oi,ED=bl,b0=zh,Mc=Pi,qo=fr,d_=Cv(),CD=El,_D=Cl,SD=_l,FD=Sl,$D=oo,TD=Pa,kD=Fl,CV=$t,p_=3,g_=[[1,CD.tag,CD.deserialize],[2,_D.tag,_D.deserialize],[3,SD.tag,SD.deserialize],[4,FD.tag,FD.deserialize],[5,$D.tag,$D.deserialize],[6,TD.tag,TD.deserialize],[7,kD.tag,kD.deserialize],[8,wD.tag,wD.deserialize],[9,qo.iterableTag,qo.deserializeIterableStats],[10,qo.listTag,qo.deserializeListStats],[11,Rc.complexTag,Rc.deserializeComplex],[12,Rc.primitiveTag,Rc.deserializePrimitive],[13,qo.propertyTag,qo.deserializePropertyStats],[14,Mc.complexTag,Mc.deserializeComplex],[15,Mc.primitiveTag,Mc.deserializePrimitive],[16,b0.tag,b0.deserialize],[17,bD.tag,bD.deserialize],[18,ED.tag,ED.deserialize],[19,fD.tag,fD.deserialize],[20,hD.tag,hD.deserialize],[21,dD.tag,dD.deserialize],[22,pD.tag,pD.deserialize],[23,gD.tag,gD.deserialize],[24,vD.tag,vD.deserialize],[25,mD.tag,mD.deserialize],[26,yD.tag,yD.deserialize],[27,DD.tag,DD.deserialize],[28,AD.tag,AD.deserialize],[29,xD.tag,xD.deserialize],[30,Ic.tag,Ic.deserialize],[31,Ic.bytesTag,Ic.deserializeBytes]],Lf=new Map(g_.map(e=>[e[1],e[0]])),_V=new Map(g_.map(e=>[e[0],e[2]]));class SV extends Error{constructor(t){super("Could not serialize descriptor"),this.name="DescriptorSerializationError",this.descriptor=t}}class FV extends Error{constructor(t){super(`Could not deserialize buffer: missing plugin ${JSON.stringify(t)}`),this.name="MissingPluginError",this.pluginName=t}}class $V extends Error{constructor(t){super(`Could not deserialize buffer: pointer ${t} could not be resolved`),this.name="PointerLookupError",this.index=t}}class TV extends Error{constructor(t,n){super(`Could not deserialize buffer: plugin ${JSON.stringify(t)} expects a different serialization`),this.name="UnsupportedPluginError",this.pluginName=t,this.serializerVersion=n}}class kV extends Error{constructor(t){super("Could not deserialize buffer: a different serialization was expected"),this.name="UnsupportedVersion",this.serializerVersion=t}}function v_(e,t){if(e.serialize)return m_(e.serialize(),t)}function m_(e,t){if(Array.isArray(e))return e.map(n=>m_(n));if(e&&e.tag){let n,i;if(Lf.has(e.tag))n=Lf.get(e.tag),i=0;else{const o=t(e.tag);o&&(n=o.id,i=o.pluginIndex)}if(n!==void 0){const o=[i,n,v_(e,t)];return o[eo.descriptorSymbol]=!0,o}}return e}function LV(e){const t=new Map,n=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=b0.describe(e.pointer):i.add(e.pointer));let h,d=0;if(Lf.has(e.tag))h=Lf.get(e.tag);else{const g=n(e.tag);if(!g)throw new SV(e);h=g.id,d=g.pluginIndex}const p={id:h,pluginIndex:d,children:[],state:v_(e,n)};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 eo.encode(p_,c,t)}Uv.serialize=LV;function y_(e,t){return e&&e[eo.descriptorSymbol]===!0?BV(e,t):Array.isArray(e)?e.map(n=>y_(n,t)):e}function BV(e,t){return t(e[0],e[1])(e[2])}function b_(e,t,n){const i=t(e.pluginIndex,e.id),o=y_(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=eo.decodeRecord(n,e.pointerAddresses[c++]);return b_(d,t,n)})}function OV(e,t){const n=t&&t.deserializedPluginsCache,i=EV(e);if(n&&n.has(i))return n.get(i);const o=eo.decodePlugins(e);if(o.size===0){const h=new Map;return n&&n.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 FV(p);if(g!==a.get(p).serializerVersion)throw new TV(p,g);c.set(h,a.get(p).id2deserialize)}return n&&n.set(i,c),c}function PV(e,t){const n=eo.extractVersion(e);if(n!==p_)throw new kV(n);const i=eo.decode(e),o=OV(i.pluginBuffer,t),a=new Map,c=p=>{if(p.isPointer===!0){if(a.has(p.index)||typeof d.createRecursor=="function"&&(CV.consumeDeep(d.createRecursor()),a.has(p.index)))return a.get(p.index);throw new $V(p.index)}return p.isComplex===!0&&a.set(p.pointer,p),p},h=(p,g)=>(y,m)=>{const w=p===0?_V.get(g):o.get(p).get(g);return c(w(y,m))},d=b_(i.rootRecord,h,e);return d}Uv.deserialize=PV;const w_=vg,NV=Ih,D_=Mv,A_=zv,x_=Uv;var IV=cr.compare=w_.compare,RV=cr.compareDescriptors=w_.compareDescriptors,MV=cr.describe=NV,zV=cr.diff=D_.diff,UV=cr.diffDescriptors=D_.diffDescriptors,HV=cr.format=A_.format,qV=cr.formatDescriptor=A_.formatDescriptor,jV=cr.serialize=x_.serialize,VV=cr.deserialize=x_.deserialize;const LD=r$({__proto__:null,compare:IV,compareDescriptors:RV,default:cr,describe:MV,deserialize:VV,diff:zV,diffDescriptors:UV,format:HV,formatDescriptor:qV,serialize:jV},[cr]),WV="default"in LD?cr:LD;function GV(){const e=mE();return{boolean:e.yellow,circular:e.gray("[Circular]"),date:{invalid:e.red("invalid"),value:e.blue},diffGutters:{actual:` ${e.red("-")} `,expected:` ${e.green("+")} `,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 KV(e,t,n){return WV.diff(t,e,n)}function XV(e,t,n={}){const i=GV(),o=KV(e,t,{theme:i}),{showLegend:a=!0}=n,c={"+":0,"-":0},h=mE(),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 w0(e){return e.type==="test"||e.type==="custom"}function E_(e){return vE(e).flatMap(t=>w0(t)?[t]:t.tasks.flatMap(n=>w0(n)?[n]:E_(n)))}function jv(e=[]){return vE(e).flatMap(t=>w0(t)?[t]:[t,...jv(t.tasks)])}function QV(e){const t=[e.name];let n=e;for(;n!=null&&n.suite||n!=null&&n.file;)n=n.suite||n.file,n!=null&&n.name&&t.unshift(n.name);return t}function Uh(e){return E_(e).some(t=>{var n,i;return(i=(n=t.result)==null?void 0:n.errors)==null?void 0:i.some(o=>o&&o.message&&o.message.match(/Snapshot .* mismatched/))})}function YV(e,t={}){const{handlers:n={},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 gE,waitForConnection:E,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=n.onPathsCollected)==null||S.call(n,C)},onCollected(C){var S;p.state.collectFiles(C),(S=n.onCollected)==null||S.call(n,C)},onTaskUpdate(C){var S;p.state.updateTasks(C),(S=n.onTaskUpdate)==null||S.call(n,C)},onUserConsoleLog(C){p.state.updateUserLog(C)},onFinished(C){var S;(S=n.onFinished)==null||S.call(n,C)},onCancel(C){var S;(S=n.onCancel)==null||S.call(n,C)}},m={post:C=>p.ws.send(C),on:C=>g=C,serialize:d3,deserialize:t0};p.rpc=s3(y,m);let w;function $(C=!1){C&&(d=a),p.ws=new h(e),L()}function L(){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)})}L();function E(){return w}return p}const ZV=location.port,JV=[location.hostname,ZV].filter(Boolean).join(":"),eW=`${location.protocol==="https:"?"wss:":"ws:"}//${JV}/__vitest_api__`,Yr=!!window.METADATA_PATH,tW=Yr?"./":"/__vitest__/";function Vv(e){return IA()?(b$(e),!0):!1}function $i(e){return typeof e=="function"?e():Q(e)}const nW=typeof window<"u",rW=e=>typeof e<"u",to=()=>{};function Wv(e,t){function n(...i){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(a)})}return n}const C_=e=>e();function __(e,t={}){let n,i,o=to;const a=h=>{clearTimeout(h),o(),o=to};return h=>{const d=$i(e),p=$i(t.maxWait);return n&&a(n),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(()=>{n&&a(n),i=null,g(h())},p)),n=setTimeout(()=>{i&&a(i),i=null,g(h())},d)})}}function iW(e,t=!0,n=!0,i=!1){let o=0,a,c=!0,h=to,d;const p=()=>{a&&(clearTimeout(a),a=void 0,h(),h=to)};return y=>{const m=$i(e),w=Date.now()-o,$=()=>d=y();return p(),m<=0?(o=Date.now(),$()):(w>m&&(n||!c)?(o=Date.now(),$()):t&&(d=new Promise((L,E)=>{h=i?E:L,a=setTimeout(()=>{o=Date.now(),c=!0,L($()),p()},Math.max(0,m-w))})),!n&&!a&&(a=setTimeout(()=>c=!0,m)),c=!1,d)}}function sW(e=C_){const t=Ke(!0);function n(){t.value=!1}function i(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:Zf(t),pause:n,resume:i,eventFilter:o}}function Hh(...e){if(e.length!==1)return YA(...e);const t=e[0];return typeof t=="function"?Zf(Y$(()=>({get:t,set:to}))):Ke(t)}function BD(e,t=200,n={}){return Wv(__(t,n),e)}function oW(e,t=200,n=!1,i=!0,o=!1){return Wv(iW(t,n,i,o),e)}function aW(e,t=200,n=!0,i=!0){if(t<=0)return e;const o=Ke(e.value),a=oW(()=>{o.value=e.value},t,n,i);return Vt(e,()=>a()),o}function S_(e,t=!0){rl()?Sa(e):t?e():Ci(e)}function uW(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,o=Nt(e),a=Ke(e);function c(h){if(arguments.length)return a.value=h,a.value;{const d=$i(n);return a.value=a.value===d?$i(i):d,a.value}}return o?c:[a,c]}var OD=Object.getOwnPropertySymbols,lW=Object.prototype.hasOwnProperty,cW=Object.prototype.propertyIsEnumerable,fW=(e,t)=>{var n={};for(var i in e)lW.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&OD)for(var i of OD(e))t.indexOf(i)<0&&cW.call(e,i)&&(n[i]=e[i]);return n};function F_(e,t,n={}){const i=n,{eventFilter:o=C_}=i,a=fW(i,["eventFilter"]);return Vt(e,Wv(o,t),a)}var hW=Object.defineProperty,dW=Object.defineProperties,pW=Object.getOwnPropertyDescriptors,Bf=Object.getOwnPropertySymbols,$_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable,PD=(e,t,n)=>t in e?hW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gW=(e,t)=>{for(var n in t||(t={}))$_.call(t,n)&&PD(e,n,t[n]);if(Bf)for(var n of Bf(t))T_.call(t,n)&&PD(e,n,t[n]);return e},vW=(e,t)=>dW(e,pW(t)),mW=(e,t)=>{var n={};for(var i in e)$_.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Bf)for(var i of Bf(e))t.indexOf(i)<0&&T_.call(e,i)&&(n[i]=e[i]);return n};function yW(e,t,n={}){const i=n,{debounce:o=0,maxWait:a=void 0}=i,c=mW(i,["debounce","maxWait"]);return F_(e,t,vW(gW({},c),{eventFilter:__(o,{maxWait:a})}))}function bW(e,t,n){const i=Vt(e,(...o)=>(Ci(()=>i()),t(...o)),n)}var wW=Object.defineProperty,DW=Object.defineProperties,AW=Object.getOwnPropertyDescriptors,Of=Object.getOwnPropertySymbols,k_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,ND=(e,t,n)=>t in e?wW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xW=(e,t)=>{for(var n in t||(t={}))k_.call(t,n)&&ND(e,n,t[n]);if(Of)for(var n of Of(t))L_.call(t,n)&&ND(e,n,t[n]);return e},EW=(e,t)=>DW(e,AW(t)),CW=(e,t)=>{var n={};for(var i in e)k_.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Of)for(var i of Of(e))t.indexOf(i)<0&&L_.call(e,i)&&(n[i]=e[i]);return n};function B_(e,t,n={}){const i=n,{eventFilter:o}=i,a=CW(i,["eventFilter"]),{eventFilter:c,pause:h,resume:d,isActive:p}=sW(o);return{stop:F_(e,t,EW(xW({},a),{eventFilter:c})),pause:h,resume:d,isActive:p}}function _W(e,t,n){let i;Nt(n)?i={evaluating:n}:i=n||{};const{lazy:o=!1,evaluating:a=void 0,shallow:c=!0,onError:h=to}=i,d=Ke(!o),p=c?_a(t):Ke(t);let g=0;return tg(async y=>{if(!d.value)return;g++;const m=g;let w=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const $=await e(L=>{y(()=>{a&&(a.value=!1),w||L()})});m===g&&(p.value=$)}catch($){h($)}finally{a&&m===g&&(a.value=!1),w=!0}}),o?xe(()=>(d.value=!0,p.value)):p}function Pf(e){var t;const n=$i(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ti=nW?window:void 0;function wa(...e){let t,n,i,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,o]=e,t=Ti):[t,n,i,o]=e,!t)return to;Array.isArray(n)||(n=[n]),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=Vt(()=>[Pf(t),$i(o)],([g,y])=>{c(),g&&a.push(...n.flatMap(m=>i.map(w=>h(g,m,w,y))))},{immediate:!0,flush:"post"}),p=()=>{d(),c()};return Vv(p),p}function SW(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function FW(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=Ti,eventName:a="keydown",passive:c=!1,dedupe:h=!1}=i,d=SW(t);return wa(o,a,g=>{g.repeat&&$i(h)||d(g)&&n(g)},c)}function $W(){const e=Ke(!1);return rl()&&Sa(()=>{e.value=!0}),e}function O_(e){const t=$W();return xe(()=>(t.value,!!e()))}function P_(e,t={}){const{window:n=Ti}=t,i=O_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const a=Ke(!1),c=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",h):o.removeListener(h))},h=()=>{i.value&&(c(),o=n.matchMedia(Hh(e).value),a.value=!!(o!=null&&o.matches),o&&("addEventListener"in o?o.addEventListener("change",h):o.addListener(h)))};return tg(h),Vv(()=>c()),a}function TW(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__",kW=LW();function LW(){return Uc in zc||(zc[Uc]=zc[Uc]||{}),zc[Uc]}function N_(e,t){return kW[e]||t}function BW(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 OW=Object.defineProperty,ID=Object.getOwnPropertySymbols,PW=Object.prototype.hasOwnProperty,NW=Object.prototype.propertyIsEnumerable,RD=(e,t,n)=>t in e?OW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MD=(e,t)=>{for(var n in t||(t={}))PW.call(t,n)&&RD(e,n,t[n]);if(ID)for(var n of ID(t))NW.call(t,n)&&RD(e,n,t[n]);return e};const IW={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()}},zD="vueuse-storage";function RW(e,t,n,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?_a:Ke)(t);if(!n)try{n=N_("getDefaultStorage",()=>{var j;return(j=Ti)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!n)return $;const L=$i(t),E=BW(L),C=(o=i.serializer)!=null?o:IW[E],{pause:S,resume:O}=B_($,()=>B($.value),{flush:a,deep:c,eventFilter:m});return y&&h&&(wa(y,"storage",U),wa(y,zD,M)),U(),$;function B(j){try{if(j==null)n.removeItem(e);else{const ne=C.write(j),oe=n.getItem(e);oe!==ne&&(n.setItem(e,ne),y&&y.dispatchEvent(new CustomEvent(zD,{detail:{key:e,oldValue:oe,newValue:ne,storageArea:n}})))}}catch(ne){w(ne)}}function k(j){const ne=j?j.newValue:n.getItem(e);if(ne==null)return d&&L!==null&&n.setItem(e,C.write(L)),L;if(!j&&p){const oe=C.read(ne);return typeof p=="function"?p(oe,L):E==="object"&&!Array.isArray(oe)?MD(MD({},L),oe):oe}else return typeof ne!="string"?ne:C.read(ne)}function M(j){U(j.detail)}function U(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){$.value=L;return}if(!(j&&j.key!==e)){S();try{$.value=k(j)}catch(ne){w(ne)}finally{j?Ci(O):O()}}}}}function MW(e){return P_("(prefers-color-scheme: dark)",e)}var zW=Object.defineProperty,UD=Object.getOwnPropertySymbols,UW=Object.prototype.hasOwnProperty,HW=Object.prototype.propertyIsEnumerable,HD=(e,t,n)=>t in e?zW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qW=(e,t)=>{for(var n in t||(t={}))UW.call(t,n)&&HD(e,n,t[n]);if(UD)for(var n of UD(t))HW.call(t,n)&&HD(e,n,t[n]);return e};function jW(e={}){const{selector:t="html",attribute:n="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=qW({auto:"",light:"light",dark:"dark"},e.modes||{}),m=MW({window:o}),w=xe(()=>m.value?"dark":"light"),$=d||(c==null?Hh(i):RW(c,i,a,{window:o,listenToStorageChanges:h})),L=xe(()=>$.value==="auto"?w.value:$.value),E=N_("updateHTMLAttrs",(B,k,M)=>{const U=typeof B=="string"?o==null?void 0:o.document.querySelector(B):Pf(B);if(!U)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)),k==="class"){const ne=M.split(/\s/g);Object.values(y).flatMap(oe=>(oe||"").split(/\s/g)).filter(Boolean).forEach(oe=>{ne.includes(oe)?U.classList.add(oe):U.classList.remove(oe)})}else U.setAttribute(k,M);g&&(o.getComputedStyle(j).opacity,document.head.removeChild(j))});function C(B){var k;E(t,n,(k=y[B])!=null?k:B)}function S(B){e.onChanged?e.onChanged(B,C):C(B)}Vt(L,S,{flush:"post",immediate:!0}),S_(()=>S(L.value));const O=xe({get(){return p?$.value:L.value},set(B){$.value=B}});try{return Object.assign(O,{store:$,system:w,state:L})}catch{return O}}var VW=Object.defineProperty,WW=Object.defineProperties,GW=Object.getOwnPropertyDescriptors,qD=Object.getOwnPropertySymbols,KW=Object.prototype.hasOwnProperty,XW=Object.prototype.propertyIsEnumerable,jD=(e,t,n)=>t in e?VW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QW=(e,t)=>{for(var n in t||(t={}))KW.call(t,n)&&jD(e,n,t[n]);if(qD)for(var n of qD(t))XW.call(t,n)&&jD(e,n,t[n]);return e},YW=(e,t)=>WW(e,GW(t));function ZW(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=jW(YW(QW({},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:n}}));return xe({get(){return i.value==="dark"},set(a){const c=a?"dark":"light";i.system.value===c?i.value="auto":i.value=c}})}var VD=Object.getOwnPropertySymbols,JW=Object.prototype.hasOwnProperty,eG=Object.prototype.propertyIsEnumerable,tG=(e,t)=>{var n={};for(var i in e)JW.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&VD)for(var i of VD(e))t.indexOf(i)<0&&eG.call(e,i)&&(n[i]=e[i]);return n};function nG(e,t,n={}){const i=n,{window:o=Ti}=i,a=tG(i,["window"]);let c;const h=O_(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},p=xe(()=>Array.isArray(e)?e.map(m=>Pf(m)):[Pf(e)]),g=Vt(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 Vv(y),{isSupported:h,stop:y}}function rG(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:o=!1,write:a=!0,window:c=Ti}=t;if(!c)return Zn(n);const h=Zn({});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 O=c.location.hash||"#",B=O.indexOf("?");return B>0?`${O.slice(0,B)}${S?`?${S}`:""}`:`${O}${S?`?${S}`:""}`}function g(){return new URLSearchParams(d())}function y(C){const S=new Set(Object.keys(h));for(const O of C.keys()){const B=C.getAll(O);h[O]=B.length>1?B:C.get(O)||"",S.delete(O)}Array.from(S).forEach(O=>delete h[O])}const{pause:m,resume:w}=B_(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach(S=>{const O=h[S];Array.isArray(O)?O.forEach(B=>C.append(S,B)):i&&O==null||o&&!O?C.delete(S):C.set(S,O)}),$(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 L(){a&&$(g(),!0)}wa(c,"popstate",L,!1),e!=="history"&&wa(c,"hashchange",L,!1);const E=g();return E.keys().next().value?y(E):Object.assign(h,n),h}function iG(e,t,n,i={}){var o,a,c;const{clone:h=!1,passive:d=!1,eventName:p,deep:g=!1,defaultValue:y,shouldEmit:m}=i,w=rl(),$=n||(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 L=p;t||(t="modelValue"),L=p||L||`update:${t.toString()}`;const E=O=>h?typeof h=="function"?h(O):TW(O):O,C=()=>rW(e[t])?E(e[t]):y,S=O=>{m?m(O)&&$(L,O):$(L,O)};if(d){const O=C(),B=Ke(O);return Vt(()=>e[t],k=>B.value=E(k)),Vt(B,k=>{(k!==e[t]||g)&&S(k)},{deep:g}),B}else return xe({get(){return C()},set(O){S(O)}})}function sG(e={}){const{window:t=Ti,initialWidth:n=1/0,initialHeight:i=1/0,listenOrientation:o=!0,includeScrollbar:a=!0}=e,c=Ke(n),h=Ke(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(),S_(d),wa("resize",d,{passive:!0}),o){const p=P_("(orientation: portrait)");Vt(p,()=>d())}return{width:c,height:h}}const I_=rG("hash-params",{initialValue:{file:"",view:null}}),Vr=Hh(I_,"file"),zr=Hh(I_,"view");var Qn=Uint8Array,Vs=Uint16Array,R_=Uint32Array,M_=new Qn([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]),z_=new Qn([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]),oG=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),U_=function(e,t){for(var n=new Vs(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new R_(n[30]),i=1;i<30;++i)for(var a=n[i];a<n[i+1];++a)o[a]=a-n[i]<<5|i;return[n,o]},H_=U_(M_,2),q_=H_[0],aG=H_[1];q_[28]=258,aG[258]=28;var uG=U_(z_,0),lG=uG[0],D0=new Vs(32768);for(var _t=0;_t<32768;++_t){var Ji=(_t&43690)>>>1|(_t&21845)<<1;Ji=(Ji&52428)>>>2|(Ji&13107)<<2,Ji=(Ji&61680)>>>4|(Ji&3855)<<4,D0[_t]=((Ji&65280)>>>8|(Ji&255)<<8)>>>1}var Nu=function(e,t,n){for(var i=e.length,o=0,a=new Vs(t);o<i;++o)e[o]&&++a[e[o]-1];var c=new Vs(t);for(o=0;o<t;++o)c[o]=c[o-1]+a[o-1]<<1;var h;if(n){h=new Vs(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[D0[y]>>>d]=p}else for(h=new Vs(i),o=0;o<i;++o)e[o]&&(h[o]=D0[c[e[o]-1]++]>>>15-e[o]);return h},$l=new Qn(288);for(var _t=0;_t<144;++_t)$l[_t]=8;for(var _t=144;_t<256;++_t)$l[_t]=9;for(var _t=256;_t<280;++_t)$l[_t]=7;for(var _t=280;_t<288;++_t)$l[_t]=8;var j_=new Qn(32);for(var _t=0;_t<32;++_t)j_[_t]=5;var cG=Nu($l,9,1),fG=Nu(j_,5,1),Dp=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},mr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Ap=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},hG=function(e){return(e+7)/8|0},V_=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var i=new(e.BYTES_PER_ELEMENT==2?Vs:e.BYTES_PER_ELEMENT==4?R_:Qn)(n-t);return i.set(e.subarray(t,n)),i},dG=["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"],or=function(e,t,n){var i=new Error(t||dG[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,or),!n)throw i;return i},Gv=function(e,t,n){var i=e.length;if(!i||n&&n.f&&!n.l)return t||new Qn(0);var o=!t||n,a=!n||n.i;n||(n={}),t||(t=new Qn(i*3));var c=function(se){var J=t.length;if(se>J){var fe=new Qn(Math.max(J*2,se));fe.set(t),t=fe}},h=n.f||0,d=n.p||0,p=n.b||0,g=n.l,y=n.d,m=n.m,w=n.n,$=i*8;do{if(!g){h=mr(e,d,1);var L=mr(e,d+1,3);if(d+=3,L)if(L==1)g=cG,y=fG,m=9,w=5;else if(L==2){var O=mr(e,d,31)+257,B=mr(e,d+10,15)+4,k=O+mr(e,d+5,31)+1;d+=14;for(var M=new Qn(k),U=new Qn(19),j=0;j<B;++j)U[oG[j]]=mr(e,d+j*3,7);d+=B*3;for(var ne=Dp(U),oe=(1<<ne)-1,Y=Nu(U,ne,1),j=0;j<k;){var z=Y[mr(e,d,oe)];d+=z&15;var E=z>>>4;if(E<16)M[j++]=E;else{var P=0,F=0;for(E==16?(F=3+mr(e,d,3),d+=2,P=M[j-1]):E==17?(F=3+mr(e,d,7),d+=3):E==18&&(F=11+mr(e,d,127),d+=7);F--;)M[j++]=P}}var D=M.subarray(0,O),R=M.subarray(O);m=Dp(D),w=Dp(R),g=Nu(D,m,1),y=Nu(R,w,1)}else or(1);else{var E=hG(d)+4,C=e[E-4]|e[E-3]<<8,S=E+C;if(S>i){a&&or(0);break}o&&c(p+C),t.set(e.subarray(E,S),p),n.b=p+=C,n.p=d=S*8,n.f=h;continue}if(d>$){a&&or(0);break}}o&&c(p+131072);for(var V=(1<<m)-1,Z=(1<<w)-1,ue=d;;ue=d){var P=g[Ap(e,d)&V],ge=P>>>4;if(d+=P&15,d>$){a&&or(0);break}if(P||or(2),ge<256)t[p++]=ge;else if(ge==256){ue=d,g=null;break}else{var $e=ge-254;if(ge>264){var j=ge-257,_e=M_[j];$e=mr(e,d,(1<<_e)-1)+q_[j],d+=_e}var ze=y[Ap(e,d)&Z],Xe=ze>>>4;ze||or(3),d+=ze&15;var R=lG[Xe];if(Xe>3){var _e=z_[Xe];R+=Ap(e,d)&(1<<_e)-1,d+=_e}if(d>$){a&&or(0);break}o&&c(p+131072);for(var ie=p+$e;p<ie;p+=4)t[p]=t[p-R],t[p+1]=t[p+1-R],t[p+2]=t[p+2-R],t[p+3]=t[p+3-R];p=ie}}n.l=g,n.p=ue,n.b=p,n.f=h,g&&(h=1,n.m=m,n.d=y,n.n=w)}while(!h);return p==t.length?t:V_(t,0,p)},pG=new Qn(0),gG=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&or(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=e[10]|(e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},vG=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},mG=function(e){((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)&&or(6,"invalid zlib data"),e[1]&32&&or(6,"invalid zlib data: preset dictionaries not supported")};function yG(e,t){return Gv(e,t)}function bG(e,t){return Gv(e.subarray(gG(e),-8),t||new Qn(vG(e)))}function wG(e,t){return Gv((mG(e),e.subarray(2,-4)),t)}function DG(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?yG(e,t):wG(e,t)}var A0=typeof TextDecoder<"u"&&new TextDecoder,AG=0;try{A0.decode(pG,{stream:!0}),AG=1}catch{}var xG=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return[t,V_(e,n-1)];o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function EG(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}else{if(A0)return A0.decode(e);var o=xG(e),a=o[0],c=o[1];return c.length&&or(8),a}}const WD=()=>{},es=()=>Promise.resolve();function CG(){const e=Zn({state:new gE,waitForConnection:c,reconnect:o,ws:new EventTarget});e.state.filesMap=Zn(e.state.filesMap),e.state.idMap=Zn(e.state.idMap);let t;const n={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:WD,onCollected:es,onTaskUpdate:WD,writeFile:es,rerun:es,updateSnapshot:es,removeFile:es,createDirectory:es,resolveSnapshotPath:es,snapshotSaved:es};e.rpc=n;let i;function o(){a()}async function a(){var g;const h=await fetch(window.METADATA_PATH);if((((g=h.headers.get("content-type"))==null?void 0:g.toLowerCase())||"").includes("application/gzip")){const y=new Uint8Array(await h.arrayBuffer()),m=EG(DG(y));t=t0(m)}else t=t0(await h.text());const p=new Event("open");e.ws.dispatchEvent(p)}a();function c(){return i}return e}const Xu=Ke("idle"),sn=function(){return Yr?CG():YV(eW,{reactive:Zn,handlers:{onTaskUpdate(){Xu.value="running"},onFinished(){Xu.value="idle"}}})}(),Tl=_a({}),Ws=Ke("CONNECTING"),qn=xe(()=>sn.state.getFiles()),Pt=xe(()=>qn.value.find(e=>e.id===Vr.value)),W_=xe(()=>jv(Pt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function Nf(e){return qn.value.find(t=>t.id===e)}const _G=xe(()=>Ws.value==="OPEN"),xp=xe(()=>Ws.value==="CONNECTING");xe(()=>Ws.value==="CLOSED");function GD(e=sn.state.getFiles()){return G_(e)}function G_(e){return e.forEach(t=>{delete t.result,jv(t).forEach(n=>delete n.result)}),sn.rpc.rerun(e.map(t=>t.filepath))}function SG(){if(Pt.value)return G_([Pt.value])}Vt(()=>sn.ws,e=>{Ws.value=Yr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Ws.value="OPEN",sn.state.filesMap.clear();const[t,n]=await Promise.all([sn.rpc.getFiles(),sn.rpc.getConfig()]);sn.state.collectFiles(t),Tl.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{Ws.value==="CONNECTING"&&(Ws.value="CLOSED")},1e3)})},{immediate:!0});const FG={"text-2xl":""},$G=pe("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),TG=rt({__name:"ConnectionOverlay",setup(e){return(t,n)=>Q(_G)?nt("",!0):(de(),Te("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>Q(sn).reconnect&&Q(sn).reconnect(...i))},[pe("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:yt(Q(xp)?"animate-pulse":"")},[pe("div",{text:"5xl",class:yt(Q(xp)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),pe("div",FG,Je(Q(xp)?"Connecting...":"Disconnected"),1),$G],2)]))}});var K_={},xi={};const kG="Á",LG="á",BG="Ă",OG="ă",PG="∾",NG="∿",IG="∾̳",RG="Â",MG="â",zG="´",UG="А",HG="а",qG="Æ",jG="æ",VG="",WG="𝔄",GG="𝔞",KG="À",XG="à",QG="ℵ",YG="ℵ",ZG="Α",JG="α",eK="Ā",tK="ā",nK="⨿",rK="&",iK="&",sK="⩕",oK="⩓",aK="∧",uK="⩜",lK="⩘",cK="⩚",fK="∠",hK="⦤",dK="∠",pK="⦨",gK="⦩",vK="⦪",mK="⦫",yK="⦬",bK="⦭",wK="⦮",DK="⦯",AK="∡",xK="∟",EK="⊾",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="⨑",nX="≌",rX="϶",iX="‵",sX="∽",oX="⋍",aX="∖",uX="⫧",lX="⊽",cX="⌅",fX="⌆",hX="⌅",dX="⎵",pX="⎶",gX="≌",vX="Б",mX="б",yX="„",bX="∵",wX="∵",DX="∵",AX="⦰",xX="϶",EX="ℬ",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="▓",nQ="█",rQ="=⃥",iQ="≡⃥",sQ="⫭",oQ="⌐",aQ="𝔹",uQ="𝕓",lQ="⊥",cQ="⊥",fQ="⋈",hQ="⧉",dQ="┐",pQ="╕",gQ="╖",vQ="╗",mQ="┌",yQ="╒",bQ="╓",wQ="╔",DQ="─",AQ="═",xQ="┬",EQ="╤",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="╠",nY="‵",rY="˘",iY="˘",sY="¦",oY="𝒷",aY="ℬ",uY="⁏",lY="∽",cY="⋍",fY="⧅",hY="\\",dY="⟈",pY="•",gY="•",vY="≎",mY="⪮",yY="≏",bY="≎",wY="≏",DY="Ć",AY="ć",xY="⩄",EY="⩉",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="Ч",nZ="ч",rZ="✓",iZ="✓",sZ="Χ",oZ="χ",aZ="ˆ",uZ="≗",lZ="↺",cZ="↻",fZ="⊛",hZ="⊚",dZ="⊝",pZ="⊙",gZ="®",vZ="Ⓢ",mZ="⊖",yZ="⊕",bZ="⊗",wZ="○",DZ="⧃",AZ="≗",xZ="⨐",EZ="⫯",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="∳",nJ="↵",rJ="✗",iJ="⨯",sJ="𝒞",oJ="𝒸",aJ="⫏",uJ="⫑",lJ="⫐",cJ="⫒",fJ="⋯",hJ="⤸",dJ="⤵",pJ="⋞",gJ="⋟",vJ="↶",mJ="⤽",yJ="⩈",bJ="⩆",wJ="≍",DJ="∪",AJ="⋓",xJ="⩊",EJ="⊍",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="д",nee="‡",ree="⇊",iee="ⅅ",see="ⅆ",oee="⤑",aee="⩷",uee="°",lee="∇",cee="Δ",fee="δ",hee="⦱",dee="⥿",pee="𝔇",gee="𝔡",vee="⥥",mee="⇃",yee="⇂",bee="´",wee="˙",Dee="˝",Aee="`",xee="˜",Eee="⋄",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="¨",nte="⇓",rte="⇐",ite="⇔",ste="⫤",ote="⟸",ate="⟺",ute="⟹",lte="⇒",cte="⊨",fte="⇑",hte="⇕",dte="∥",pte="⤓",gte="↓",vte="↓",mte="⇓",yte="⇵",bte="̑",wte="⇊",Dte="⇃",Ate="⇂",xte="⥐",Ete="⥞",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="⩮",ene="Ě",tne="ě",nne="Ê",rne="ê",ine="≖",sne="≕",one="Э",ane="э",une="⩷",lne="Ė",cne="ė",fne="≑",hne="ⅇ",dne="≒",pne="𝔈",gne="𝔢",vne="⪚",mne="È",yne="è",bne="⪖",wne="⪘",Dne="⪙",Ane="∈",xne="⏧",Ene="ℓ",Cne="⪕",_ne="⪗",Sne="Ē",Fne="ē",$ne="∅",Tne="∅",kne="◻",Lne="∅",Bne="▫",One=" ",Pne=" ",Nne=" ",Ine="Ŋ",Rne="ŋ",Mne=" ",zne="Ę",Une="ę",Hne="𝔼",qne="𝕖",jne="⋕",Vne="⧣",Wne="⩱",Gne="ε",Kne="Ε",Xne="ε",Qne="ϵ",Yne="≖",Zne="≕",Jne="≂",ere="⪖",tre="⪕",nre="⩵",rre="=",ire="≂",sre="≟",ore="⇌",are="≡",ure="⩸",lre="⧥",cre="⥱",fre="≓",hre="ℯ",dre="ℰ",pre="≐",gre="⩳",vre="≂",mre="Η",yre="η",bre="Ð",wre="ð",Dre="Ë",Are="ë",xre="€",Ere="!",Cre="∃",_re="∃",Sre="ℰ",Fre="ⅇ",$re="ⅇ",Tre="≒",kre="Ф",Lre="ф",Bre="♀",Ore="ffi",Pre="ff",Nre="ffl",Ire="𝔉",Rre="𝔣",Mre="fi",zre="◼",Ure="▪",Hre="fj",qre="♭",jre="fl",Vre="▱",Wre="ƒ",Gre="𝔽",Kre="𝕗",Xre="∀",Qre="∀",Yre="⋔",Zre="⫙",Jre="ℱ",eie="⨍",tie="½",nie="⅓",rie="¼",iie="⅕",sie="⅙",oie="⅛",aie="⅔",uie="⅖",lie="¾",cie="⅗",fie="⅜",hie="⅘",die="⅚",pie="⅝",gie="⅞",vie="⁄",mie="⌢",yie="𝒻",bie="ℱ",wie="ǵ",Die="Γ",Aie="γ",xie="Ϝ",Eie="ϝ",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="Ѓ",nse="ѓ",rse="⪥",ise="≷",sse="⪒",ose="⪤",ase="⪊",use="⪊",lse="⪈",cse="≩",fse="⪈",hse="≩",dse="⋧",pse="𝔾",gse="𝕘",vse="`",mse="≥",yse="⋛",bse="≧",wse="⪢",Dse="≷",Ase="⩾",xse="≳",Ese="𝒢",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="↭",noe="^",roe="ℏ",ioe="Ĥ",soe="ĥ",ooe="♥",aoe="♥",uoe="…",loe="⊹",coe="𝔥",foe="ℌ",hoe="ℋ",doe="⤥",poe="⤦",goe="⇿",voe="∻",moe="↩",yoe="↪",boe="𝕙",woe="ℍ",Doe="―",Aoe="─",xoe="𝒽",Eoe="ℋ",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="IJ",eae="ij",tae="Ī",nae="ī",rae="ℑ",iae="ⅈ",sae="ℐ",oae="ℑ",aae="ı",uae="ℑ",lae="⊷",cae="Ƶ",fae="⇒",hae="℅",dae="∞",pae="⧝",gae="ı",vae="⊺",mae="∫",yae="∬",bae="ℤ",wae="∫",Dae="⊺",Aae="⋂",xae="⨗",Eae="⨼",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="й",nue="𝔍",rue="𝔧",iue="ȷ",sue="𝕁",oue="𝕛",aue="𝒥",uue="𝒿",lue="Ј",cue="ј",fue="Є",hue="є",due="Κ",pue="κ",gue="ϰ",vue="Ķ",mue="ķ",yue="К",bue="к",wue="𝔎",Due="𝔨",Aue="ĸ",xue="Х",Eue="х",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="↢",nle="⤙",rle="⤛",ile="⪫",sle="⪭",ole="⪭︀",ale="⤌",ule="⤎",lle="❲",cle="{",fle="[",hle="⦋",dle="⦏",ple="⦍",gle="Ľ",vle="ľ",mle="Ļ",yle="ļ",ble="⌈",wle="{",Dle="Л",Ale="л",xle="⤶",Ele="“",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="⊣",nce="⥚",rce="⋋",ice="⧏",sce="⊲",oce="⊴",ace="⥑",uce="⥠",lce="⥘",cce="↿",fce="⥒",hce="↼",dce="⪋",pce="⋚",gce="≤",vce="≦",mce="⩽",yce="⪨",bce="⩽",wce="⩿",Dce="⪁",Ace="⪃",xce="⋚︀",Ece="⪓",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="⥫",nfe="◺",rfe="Ŀ",ife="ŀ",sfe="⎰",ofe="⎰",afe="⪉",ufe="⪉",lfe="⪇",cfe="≨",ffe="⪇",hfe="≨",dfe="⋦",pfe="⟬",gfe="⇽",vfe="⟦",mfe="⟵",yfe="⟵",bfe="⟸",wfe="⟷",Dfe="⟷",Afe="⟺",xfe="⟼",Efe="⟶",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="⪍",nhe="⪏",rhe="[",ihe="‘",she="‚",ohe="Ł",ahe="ł",uhe="⪦",lhe="⩹",che="<",fhe="<",hhe="≪",dhe="⋖",phe="⋋",ghe="⋉",vhe="⥶",mhe="⩻",yhe="◃",bhe="⊴",whe="◂",Dhe="⦖",Ahe="⥊",xhe="⥦",Ehe="≨︀",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="⨪",nde="∓",rde="⫛",ide="…",sde="∓",ode="⊧",ade="𝕄",ude="𝕞",lde="∓",cde="𝓂",fde="ℳ",hde="∾",dde="Μ",pde="μ",gde="⊸",vde="⊸",mde="∇",yde="Ń",bde="ń",wde="∠⃒",Dde="≉",Ade="⩰̸",xde="≋̸",Ede="ʼn",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="≢",epe="⤨",tpe="≂̸",npe="≫",rpe="≪",ipe=`
|
|
14
|
-
`,spe="∄",ope="∄",ape="𝔑",upe="𝔫",lpe="≧̸",cpe="≱",fpe="≱",hpe="≧̸",dpe="⩾̸",ppe="⩾̸",gpe="⋙̸",vpe="≵",mpe="≫⃒",ype="≯",bpe="≯",wpe="≫̸",Dpe="↮",Ape="⇎",xpe="⫲",Epe="∋",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="ℕ",n0e="⫬",r0e="¬",i0e="≢",s0e="≭",o0e="∦",a0e="∉",u0e="≠",l0e="≂̸",c0e="∄",f0e="≯",h0e="≱",d0e="≧̸",p0e="≫̸",g0e="≹",v0e="⩾̸",m0e="≵",y0e="≎̸",b0e="≏̸",w0e="∉",D0e="⋵̸",A0e="⋹̸",x0e="∉",E0e="⋷",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="⪰̸",nge="⋡",rge="≿̸",ige="⊃⃒",sge="⊉",oge="≁",age="≄",uge="≇",lge="≉",cge="∤",fge="∦",hge="∦",dge="⫽⃥",pge="∂̸",gge="⨔",vge="⊀",mge="⋠",yge="⊀",bge="⪯̸",wge="⪯̸",Dge="⤳̸",Age="↛",xge="⇏",Ege="↝̸",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="⊉",nve="⫆̸",rve="≹",ive="Ñ",sve="ñ",ove="≸",ave="⋪",uve="⋬",lve="⋫",cve="⋭",fve="Ν",hve="ν",dve="#",pve="№",gve=" ",vve="≍⃒",mve="⊬",yve="⊭",bve="⊮",wve="⊯",Dve="≥⃒",Ave=">⃒",xve="⤄",Eve="⧞",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="𝔬",nme="˛",rme="Ò",ime="ò",sme="⧁",ome="⦵",ame="Ω",ume="∮",lme="↺",cme="⦾",fme="⦻",hme="‾",dme="⧀",pme="Ō",gme="ō",vme="Ω",mme="ω",yme="Ο",bme="ο",wme="⦶",Dme="⊖",Ame="𝕆",xme="𝕠",Eme="⦷",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="‾",nye="⏞",rye="⎴",iye="⏜",sye="¶",oye="∥",aye="∥",uye="⫳",lye="⫽",cye="∂",fye="∂",hye="П",dye="п",pye="%",gye=".",vye="‰",mye="⊥",yye="‱",bye="𝔓",wye="𝔭",Dye="Φ",Aye="φ",xye="ϕ",Eye="ℳ",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="≺",n1e="≼",r1e="≺",i1e="⪯",s1e="≼",o1e="≾",a1e="⪯",u1e="⪹",l1e="⪵",c1e="⋨",f1e="⪯",h1e="⪳",d1e="≾",p1e="′",g1e="″",v1e="ℙ",m1e="⪹",y1e="⪵",b1e="⋨",w1e="∏",D1e="∏",A1e="⌮",x1e="⌒",E1e="⌓",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="⦳",nbe="⟩",rbe="⟫",ibe="⦒",sbe="⦥",obe="⟩",abe="»",ube="⥵",lbe="⇥",cbe="⤠",fbe="⤳",hbe="→",dbe="↠",pbe="⇒",gbe="⤞",vbe="↪",mbe="↬",ybe="⥅",bbe="⥴",wbe="⤖",Dbe="↣",Abe="↝",xbe="⤚",Ebe="⤜",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="®",nwe="®",rwe="∋",iwe="⇋",swe="⥯",owe="⥽",awe="⌋",uwe="𝔯",lwe="ℜ",cwe="⥤",fwe="⇁",hwe="⇀",dwe="⥬",pwe="Ρ",gwe="ρ",vwe="ϱ",mwe="⟩",ywe="⇥",bwe="→",wwe="→",Dwe="⇒",Awe="⇄",xwe="↣",Ewe="⌉",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="⎱",nDe="⫮",rDe="⟭",iDe="⇾",sDe="⟧",oDe="⦆",aDe="𝕣",uDe="ℝ",lDe="⨮",cDe="⨵",fDe="⥰",hDe=")",dDe="⦔",pDe="⨒",gDe="⇉",vDe="⇛",mDe="›",yDe="𝓇",bDe="ℛ",wDe="↱",DDe="↱",ADe="]",xDe="’",EDe="’",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="с",nAe="⊡",rAe="⋅",iAe="⩦",sAe="⤥",oAe="↘",aAe="⇘",uAe="↘",lAe="§",cAe=";",fAe="⤩",hAe="∖",dAe="∖",pAe="✶",gAe="𝔖",vAe="𝔰",mAe="⌢",yAe="♯",bAe="Щ",wAe="щ",DAe="Ш",AAe="ш",xAe="↓",EAe="←",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="⪬",exe="⪬︀",txe="Ь",nxe="ь",rxe="⌿",ixe="⧄",sxe="/",oxe="𝕊",axe="𝕤",uxe="♠",lxe="♠",cxe="∥",fxe="⊓",hxe="⊓︀",dxe="⊔",pxe="⊔︀",gxe="√",vxe="⊏",mxe="⊑",yxe="⊏",bxe="⊑",wxe="⊐",Dxe="⊒",Axe="⊐",xxe="⊒",Exe="□",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="⫁",eEe="⫋",tEe="⊊",nEe="⪿",rEe="⥹",iEe="⊂",sEe="⋐",oEe="⊆",aEe="⫅",uEe="⊆",lEe="⊊",cEe="⫋",fEe="⫇",hEe="⫕",dEe="⫓",pEe="⪸",gEe="≻",vEe="≽",mEe="≻",yEe="⪰",bEe="≽",wEe="≿",DEe="⪰",AEe="⪺",xEe="⪶",EEe="⋩",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="⊋",eCe="⫌",tCe="⫈",nCe="⫔",rCe="⫖",iCe="⤦",sCe="↙",oCe="⇙",aCe="↙",uCe="⤪",lCe="ß",cCe=" ",fCe="⌖",hCe="Τ",dCe="τ",pCe="⎴",gCe="Ť",vCe="ť",mCe="Ţ",yCe="ţ",bCe="Т",wCe="т",DCe="⃛",ACe="⌕",xCe="𝔗",ECe="𝔱",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="𝕋",n_e="𝕥",r_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="⏢",x_e="𝒯",E_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="Ù",nSe="ù",rSe="⥣",iSe="↿",sSe="↾",oSe="▀",aSe="⌜",uSe="⌜",lSe="⌏",cSe="◸",fSe="Ū",hSe="ū",dSe="¨",pSe="_",gSe="⏟",vSe="⎵",mSe="⏝",ySe="⋃",bSe="⊎",wSe="Ų",DSe="ų",ASe="𝕌",xSe="𝕦",ESe="⤒",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="Ũ",nFe="ũ",rFe="▵",iFe="▴",sFe="⇈",oFe="Ü",aFe="ü",uFe="⦧",lFe="⦜",cFe="ϵ",fFe="ϰ",hFe="∅",dFe="ϕ",pFe="ϖ",gFe="∝",vFe="↕",mFe="⇕",yFe="ϱ",bFe="ς",wFe="⊊︀",DFe="⫋︀",AFe="⊋︀",xFe="⫌︀",EFe="ϑ",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="⊃⃒",n2e="𝕍",r2e="𝕧",i2e="∝",s2e="⊳",o2e="𝒱",a2e="𝓋",u2e="⫋︀",l2e="⊊︀",c2e="⫌︀",f2e="⊋︀",h2e="⊪",d2e="⦚",p2e="Ŵ",g2e="ŵ",v2e="⩟",m2e="∧",y2e="⋀",b2e="≙",w2e="℘",D2e="𝔚",A2e="𝔴",x2e="𝕎",E2e="𝕨",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="△",n$e="⋁",r$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="ю",x$e="ÿ",E$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="",X_={Aacute:kG,aacute:LG,Abreve:BG,abreve:OG,ac:PG,acd:NG,acE:IG,Acirc:RG,acirc:MG,acute:zG,Acy:UG,acy:HG,AElig:qG,aelig:jG,af:VG,Afr:WG,afr:GG,Agrave:KG,agrave:XG,alefsym:QG,aleph:YG,Alpha:ZG,alpha:JG,Amacr:eK,amacr:tK,amalg:nK,amp:rK,AMP:iK,andand:sK,And:oK,and:aK,andd:uK,andslope:lK,andv:cK,ang:fK,ange:hK,angle:dK,angmsdaa:pK,angmsdab:gK,angmsdac:vK,angmsdad:mK,angmsdae:yK,angmsdaf:bK,angmsdag:wK,angmsdah:DK,angmsd:AK,angrt:xK,angrtvb:EK,angrtvbd:CK,angsph:_K,angst:SK,angzarr:FK,Aogon:$K,aogon:TK,Aopf:kK,aopf:LK,apacir:BK,ap:OK,apE:PK,ape:NK,apid:IK,apos:RK,ApplyFunction:MK,approx:zK,approxeq:UK,Aring:HK,aring:qK,Ascr:jK,ascr:VK,Assign:WK,ast:GK,asymp:KK,asympeq:XK,Atilde:QK,atilde:YK,Auml:ZK,auml:JK,awconint:eX,awint:tX,backcong:nX,backepsilon:rX,backprime:iX,backsim:sX,backsimeq:oX,Backslash:aX,Barv:uX,barvee:lX,barwed:cX,Barwed:fX,barwedge:hX,bbrk:dX,bbrktbrk:pX,bcong:gX,Bcy:vX,bcy:mX,bdquo:yX,becaus:bX,because:wX,Because:DX,bemptyv:AX,bepsi:xX,bernou:EX,Bernoullis:CX,Beta:_X,beta:SX,beth:FX,between:$X,Bfr:TX,bfr:kX,bigcap:LX,bigcirc:BX,bigcup:OX,bigodot:PX,bigoplus:NX,bigotimes:IX,bigsqcup:RX,bigstar:MX,bigtriangledown:zX,bigtriangleup:UX,biguplus:HX,bigvee:qX,bigwedge:jX,bkarow:VX,blacklozenge:WX,blacksquare:GX,blacktriangle:KX,blacktriangledown:XX,blacktriangleleft:QX,blacktriangleright:YX,blank:ZX,blk12:JX,blk14:eQ,blk34:tQ,block:nQ,bne:rQ,bnequiv:iQ,bNot:sQ,bnot:oQ,Bopf:aQ,bopf:uQ,bot:lQ,bottom:cQ,bowtie:fQ,boxbox:hQ,boxdl:dQ,boxdL:pQ,boxDl:gQ,boxDL:vQ,boxdr:mQ,boxdR:yQ,boxDr:bQ,boxDR:wQ,boxh:DQ,boxH:AQ,boxhd:xQ,boxHd:EQ,boxhD:CQ,boxHD:_Q,boxhu:SQ,boxHu:FQ,boxhU:$Q,boxHU:TQ,boxminus:kQ,boxplus:LQ,boxtimes:BQ,boxul:OQ,boxuL:PQ,boxUl:NQ,boxUL:IQ,boxur:RQ,boxuR:MQ,boxUr:zQ,boxUR:UQ,boxv:HQ,boxV:qQ,boxvh:jQ,boxvH:VQ,boxVh:WQ,boxVH:GQ,boxvl:KQ,boxvL:XQ,boxVl:QQ,boxVL:YQ,boxvr:ZQ,boxvR:JQ,boxVr:eY,boxVR:tY,bprime:nY,breve:rY,Breve:iY,brvbar:sY,bscr:oY,Bscr:aY,bsemi:uY,bsim:lY,bsime:cY,bsolb:fY,bsol:hY,bsolhsub:dY,bull:pY,bullet:gY,bump:vY,bumpE:mY,bumpe:yY,Bumpeq:bY,bumpeq:wY,Cacute:DY,cacute:AY,capand:xY,capbrcup:EY,capcap:CY,cap:_Y,Cap:SY,capcup:FY,capdot:$Y,CapitalDifferentialD:TY,caps:kY,caret:LY,caron:BY,Cayleys:OY,ccaps:PY,Ccaron:NY,ccaron:IY,Ccedil:RY,ccedil:MY,Ccirc:zY,ccirc:UY,Cconint:HY,ccups:qY,ccupssm:jY,Cdot:VY,cdot:WY,cedil:GY,Cedilla:KY,cemptyv:XY,cent:QY,centerdot:YY,CenterDot:ZY,cfr:JY,Cfr:eZ,CHcy:tZ,chcy:nZ,check:rZ,checkmark:iZ,Chi:sZ,chi:oZ,circ:aZ,circeq:uZ,circlearrowleft:lZ,circlearrowright:cZ,circledast:fZ,circledcirc:hZ,circleddash:dZ,CircleDot:pZ,circledR:gZ,circledS:vZ,CircleMinus:mZ,CirclePlus:yZ,CircleTimes:bZ,cir:wZ,cirE:DZ,cire:AZ,cirfnint:xZ,cirmid:EZ,cirscir:CZ,ClockwiseContourIntegral:_Z,CloseCurlyDoubleQuote:SZ,CloseCurlyQuote:FZ,clubs:$Z,clubsuit:TZ,colon:kZ,Colon:LZ,Colone:BZ,colone:OZ,coloneq:PZ,comma:NZ,commat:IZ,comp:RZ,compfn:MZ,complement:zZ,complexes:UZ,cong:HZ,congdot:qZ,Congruent:jZ,conint:VZ,Conint:WZ,ContourIntegral:GZ,copf:KZ,Copf:XZ,coprod:QZ,Coproduct:YZ,copy:ZZ,COPY:JZ,copysr:eJ,CounterClockwiseContourIntegral:tJ,crarr:nJ,cross:rJ,Cross:iJ,Cscr:sJ,cscr:oJ,csub:aJ,csube:uJ,csup:lJ,csupe:cJ,ctdot:fJ,cudarrl:hJ,cudarrr:dJ,cuepr:pJ,cuesc:gJ,cularr:vJ,cularrp:mJ,cupbrcap:yJ,cupcap:bJ,CupCap:wJ,cup:DJ,Cup:AJ,cupcup:xJ,cupdot:EJ,cupor:CJ,cups:_J,curarr:SJ,curarrm:FJ,curlyeqprec:$J,curlyeqsucc:TJ,curlyvee:kJ,curlywedge:LJ,curren:BJ,curvearrowleft:OJ,curvearrowright:PJ,cuvee:NJ,cuwed:IJ,cwconint:RJ,cwint:MJ,cylcty:zJ,dagger:UJ,Dagger:HJ,daleth:qJ,darr:jJ,Darr:VJ,dArr:WJ,dash:GJ,Dashv:KJ,dashv:XJ,dbkarow:QJ,dblac:YJ,Dcaron:ZJ,dcaron:JJ,Dcy:eee,dcy:tee,ddagger:nee,ddarr:ree,DD:iee,dd:see,DDotrahd:oee,ddotseq:aee,deg:uee,Del:lee,Delta:cee,delta:fee,demptyv:hee,dfisht:dee,Dfr:pee,dfr:gee,dHar:vee,dharl:mee,dharr:yee,DiacriticalAcute:bee,DiacriticalDot:wee,DiacriticalDoubleAcute:Dee,DiacriticalGrave:Aee,DiacriticalTilde:xee,diam:Eee,diamond:Cee,Diamond:_ee,diamondsuit:See,diams:Fee,die:$ee,DifferentialD:Tee,digamma:kee,disin:Lee,div:Bee,divide:Oee,divideontimes:Pee,divonx:Nee,DJcy:Iee,djcy:Ree,dlcorn:Mee,dlcrop:zee,dollar:Uee,Dopf:Hee,dopf:qee,Dot:jee,dot:Vee,DotDot:Wee,doteq:Gee,doteqdot:Kee,DotEqual:Xee,dotminus:Qee,dotplus:Yee,dotsquare:Zee,doublebarwedge:Jee,DoubleContourIntegral:ete,DoubleDot:tte,DoubleDownArrow:nte,DoubleLeftArrow:rte,DoubleLeftRightArrow:ite,DoubleLeftTee:ste,DoubleLongLeftArrow:ote,DoubleLongLeftRightArrow:ate,DoubleLongRightArrow:ute,DoubleRightArrow:lte,DoubleRightTee:cte,DoubleUpArrow:fte,DoubleUpDownArrow:hte,DoubleVerticalBar:dte,DownArrowBar:pte,downarrow:gte,DownArrow:vte,Downarrow:mte,DownArrowUpArrow:yte,DownBreve:bte,downdownarrows:wte,downharpoonleft:Dte,downharpoonright:Ate,DownLeftRightVector:xte,DownLeftTeeVector:Ete,DownLeftVectorBar:Cte,DownLeftVector:_te,DownRightTeeVector:Ste,DownRightVectorBar:Fte,DownRightVector:$te,DownTeeArrow:Tte,DownTee:kte,drbkarow:Lte,drcorn:Bte,drcrop:Ote,Dscr:Pte,dscr:Nte,DScy:Ite,dscy:Rte,dsol:Mte,Dstrok:zte,dstrok:Ute,dtdot:Hte,dtri:qte,dtrif:jte,duarr:Vte,duhar:Wte,dwangle:Gte,DZcy:Kte,dzcy:Xte,dzigrarr:Qte,Eacute:Yte,eacute:Zte,easter:Jte,Ecaron:ene,ecaron:tne,Ecirc:nne,ecirc:rne,ecir:ine,ecolon:sne,Ecy:one,ecy:ane,eDDot:une,Edot:lne,edot:cne,eDot:fne,ee:hne,efDot:dne,Efr:pne,efr:gne,eg:vne,Egrave:mne,egrave:yne,egs:bne,egsdot:wne,el:Dne,Element:Ane,elinters:xne,ell:Ene,els:Cne,elsdot:_ne,Emacr:Sne,emacr:Fne,empty:$ne,emptyset:Tne,EmptySmallSquare:kne,emptyv:Lne,EmptyVerySmallSquare:Bne,emsp13:One,emsp14:Pne,emsp:Nne,ENG:Ine,eng:Rne,ensp:Mne,Eogon:zne,eogon:Une,Eopf:Hne,eopf:qne,epar:jne,eparsl:Vne,eplus:Wne,epsi:Gne,Epsilon:Kne,epsilon:Xne,epsiv:Qne,eqcirc:Yne,eqcolon:Zne,eqsim:Jne,eqslantgtr:ere,eqslantless:tre,Equal:nre,equals:rre,EqualTilde:ire,equest:sre,Equilibrium:ore,equiv:are,equivDD:ure,eqvparsl:lre,erarr:cre,erDot:fre,escr:hre,Escr:dre,esdot:pre,Esim:gre,esim:vre,Eta:mre,eta:yre,ETH:bre,eth:wre,Euml:Dre,euml:Are,euro:xre,excl:Ere,exist:Cre,Exists:_re,expectation:Sre,exponentiale:Fre,ExponentialE:$re,fallingdotseq:Tre,Fcy:kre,fcy:Lre,female:Bre,ffilig:Ore,fflig:Pre,ffllig:Nre,Ffr:Ire,ffr:Rre,filig:Mre,FilledSmallSquare:zre,FilledVerySmallSquare:Ure,fjlig:Hre,flat:qre,fllig:jre,fltns:Vre,fnof:Wre,Fopf:Gre,fopf:Kre,forall:Xre,ForAll:Qre,fork:Yre,forkv:Zre,Fouriertrf:Jre,fpartint:eie,frac12:tie,frac13:nie,frac14:rie,frac15:iie,frac16:sie,frac18:oie,frac23:aie,frac25:uie,frac34:lie,frac35:cie,frac38:fie,frac45:hie,frac56:die,frac58:pie,frac78:gie,frasl:vie,frown:mie,fscr:yie,Fscr:bie,gacute:wie,Gamma:Die,gamma:Aie,Gammad:xie,gammad:Eie,gap:Cie,Gbreve:_ie,gbreve:Sie,Gcedil:Fie,Gcirc:$ie,gcirc:Tie,Gcy:kie,gcy:Lie,Gdot:Bie,gdot:Oie,ge:Pie,gE:Nie,gEl:Iie,gel:Rie,geq:Mie,geqq:zie,geqslant:Uie,gescc:Hie,ges:qie,gesdot:jie,gesdoto:Vie,gesdotol:Wie,gesl:Gie,gesles:Kie,Gfr:Xie,gfr:Qie,gg:Yie,Gg:Zie,ggg:Jie,gimel:ese,GJcy:tse,gjcy:nse,gla:rse,gl:ise,glE:sse,glj:ose,gnap:ase,gnapprox:use,gne:lse,gnE:cse,gneq:fse,gneqq:hse,gnsim:dse,Gopf:pse,gopf:gse,grave:vse,GreaterEqual:mse,GreaterEqualLess:yse,GreaterFullEqual:bse,GreaterGreater:wse,GreaterLess:Dse,GreaterSlantEqual:Ase,GreaterTilde:xse,Gscr:Ese,gscr:Cse,gsim:_se,gsime:Sse,gsiml:Fse,gtcc:$se,gtcir:Tse,gt:kse,GT:Lse,Gt:Bse,gtdot:Ose,gtlPar:Pse,gtquest:Nse,gtrapprox:Ise,gtrarr:Rse,gtrdot:Mse,gtreqless:zse,gtreqqless:Use,gtrless:Hse,gtrsim:qse,gvertneqq:jse,gvnE:Vse,Hacek:Wse,hairsp:Gse,half:Kse,hamilt:Xse,HARDcy:Qse,hardcy:Yse,harrcir:Zse,harr:Jse,hArr:eoe,harrw:toe,Hat:noe,hbar:roe,Hcirc:ioe,hcirc:soe,hearts:ooe,heartsuit:aoe,hellip:uoe,hercon:loe,hfr:coe,Hfr:foe,HilbertSpace:hoe,hksearow:doe,hkswarow:poe,hoarr:goe,homtht:voe,hookleftarrow:moe,hookrightarrow:yoe,hopf:boe,Hopf:woe,horbar:Doe,HorizontalLine:Aoe,hscr:xoe,Hscr:Eoe,hslash:Coe,Hstrok:_oe,hstrok:Soe,HumpDownHump:Foe,HumpEqual:$oe,hybull:Toe,hyphen:koe,Iacute:Loe,iacute:Boe,ic:Ooe,Icirc:Poe,icirc:Noe,Icy:Ioe,icy:Roe,Idot:Moe,IEcy:zoe,iecy:Uoe,iexcl:Hoe,iff:qoe,ifr:joe,Ifr:Voe,Igrave:Woe,igrave:Goe,ii:Koe,iiiint:Xoe,iiint:Qoe,iinfin:Yoe,iiota:Zoe,IJlig:Joe,ijlig:eae,Imacr:tae,imacr:nae,image:rae,ImaginaryI:iae,imagline:sae,imagpart:oae,imath:aae,Im:uae,imof:lae,imped:cae,Implies:fae,incare:hae,in:"∈",infin:dae,infintie:pae,inodot:gae,intcal:vae,int:mae,Int:yae,integers:bae,Integral:wae,intercal:Dae,Intersection:Aae,intlarhk:xae,intprod:Eae,InvisibleComma:Cae,InvisibleTimes:_ae,IOcy:Sae,iocy:Fae,Iogon:$ae,iogon:Tae,Iopf:kae,iopf:Lae,Iota:Bae,iota:Oae,iprod:Pae,iquest:Nae,iscr:Iae,Iscr:Rae,isin:Mae,isindot:zae,isinE:Uae,isins:Hae,isinsv:qae,isinv:jae,it:Vae,Itilde:Wae,itilde:Gae,Iukcy:Kae,iukcy:Xae,Iuml:Qae,iuml:Yae,Jcirc:Zae,jcirc:Jae,Jcy:eue,jcy:tue,Jfr:nue,jfr:rue,jmath:iue,Jopf:sue,jopf:oue,Jscr:aue,jscr:uue,Jsercy:lue,jsercy:cue,Jukcy:fue,jukcy:hue,Kappa:due,kappa:pue,kappav:gue,Kcedil:vue,kcedil:mue,Kcy:yue,kcy:bue,Kfr:wue,kfr:Due,kgreen:Aue,KHcy:xue,khcy:Eue,KJcy:Cue,kjcy:_ue,Kopf:Sue,kopf:Fue,Kscr:$ue,kscr:Tue,lAarr:kue,Lacute:Lue,lacute:Bue,laemptyv:Oue,lagran:Pue,Lambda:Nue,lambda:Iue,lang:Rue,Lang:Mue,langd:zue,langle:Uue,lap:Hue,Laplacetrf:que,laquo:jue,larrb:Vue,larrbfs:Wue,larr:Gue,Larr:Kue,lArr:Xue,larrfs:Que,larrhk:Yue,larrlp:Zue,larrpl:Jue,larrsim:ele,larrtl:tle,latail:nle,lAtail:rle,lat:ile,late:sle,lates:ole,lbarr:ale,lBarr:ule,lbbrk:lle,lbrace:cle,lbrack:fle,lbrke:hle,lbrksld:dle,lbrkslu:ple,Lcaron:gle,lcaron:vle,Lcedil:mle,lcedil:yle,lceil:ble,lcub:wle,Lcy:Dle,lcy:Ale,ldca:xle,ldquo:Ele,ldquor:Cle,ldrdhar:_le,ldrushar:Sle,ldsh:Fle,le:$le,lE:Tle,LeftAngleBracket:kle,LeftArrowBar:Lle,leftarrow:Ble,LeftArrow:Ole,Leftarrow:Ple,LeftArrowRightArrow:Nle,leftarrowtail:Ile,LeftCeiling:Rle,LeftDoubleBracket:Mle,LeftDownTeeVector:zle,LeftDownVectorBar:Ule,LeftDownVector:Hle,LeftFloor:qle,leftharpoondown:jle,leftharpoonup:Vle,leftleftarrows:Wle,leftrightarrow:Gle,LeftRightArrow:Kle,Leftrightarrow:Xle,leftrightarrows:Qle,leftrightharpoons:Yle,leftrightsquigarrow:Zle,LeftRightVector:Jle,LeftTeeArrow:ece,LeftTee:tce,LeftTeeVector:nce,leftthreetimes:rce,LeftTriangleBar:ice,LeftTriangle:sce,LeftTriangleEqual:oce,LeftUpDownVector:ace,LeftUpTeeVector:uce,LeftUpVectorBar:lce,LeftUpVector:cce,LeftVectorBar:fce,LeftVector:hce,lEg:dce,leg:pce,leq:gce,leqq:vce,leqslant:mce,lescc:yce,les:bce,lesdot:wce,lesdoto:Dce,lesdotor:Ace,lesg:xce,lesges:Ece,lessapprox:Cce,lessdot:_ce,lesseqgtr:Sce,lesseqqgtr:Fce,LessEqualGreater:$ce,LessFullEqual:Tce,LessGreater:kce,lessgtr:Lce,LessLess:Bce,lesssim:Oce,LessSlantEqual:Pce,LessTilde:Nce,lfisht:Ice,lfloor:Rce,Lfr:Mce,lfr:zce,lg:Uce,lgE:Hce,lHar:qce,lhard:jce,lharu:Vce,lharul:Wce,lhblk:Gce,LJcy:Kce,ljcy:Xce,llarr:Qce,ll:Yce,Ll:Zce,llcorner:Jce,Lleftarrow:efe,llhard:tfe,lltri:nfe,Lmidot:rfe,lmidot:ife,lmoustache:sfe,lmoust:ofe,lnap:afe,lnapprox:ufe,lne:lfe,lnE:cfe,lneq:ffe,lneqq:hfe,lnsim:dfe,loang:pfe,loarr:gfe,lobrk:vfe,longleftarrow:mfe,LongLeftArrow:yfe,Longleftarrow:bfe,longleftrightarrow:wfe,LongLeftRightArrow:Dfe,Longleftrightarrow:Afe,longmapsto:xfe,longrightarrow:Efe,LongRightArrow:Cfe,Longrightarrow:_fe,looparrowleft:Sfe,looparrowright:Ffe,lopar:$fe,Lopf:Tfe,lopf:kfe,loplus:Lfe,lotimes:Bfe,lowast:Ofe,lowbar:Pfe,LowerLeftArrow:Nfe,LowerRightArrow:Ife,loz:Rfe,lozenge:Mfe,lozf:zfe,lpar:Ufe,lparlt:Hfe,lrarr:qfe,lrcorner:jfe,lrhar:Vfe,lrhard:Wfe,lrm:Gfe,lrtri:Kfe,lsaquo:Xfe,lscr:Qfe,Lscr:Yfe,lsh:Zfe,Lsh:Jfe,lsim:ehe,lsime:the,lsimg:nhe,lsqb:rhe,lsquo:ihe,lsquor:she,Lstrok:ohe,lstrok:ahe,ltcc:uhe,ltcir:lhe,lt:che,LT:fhe,Lt:hhe,ltdot:dhe,lthree:phe,ltimes:ghe,ltlarr:vhe,ltquest:mhe,ltri:yhe,ltrie:bhe,ltrif:whe,ltrPar:Dhe,lurdshar:Ahe,luruhar:xhe,lvertneqq:Ehe,lvnE:Che,macr:_he,male:She,malt:Fhe,maltese:$he,Map:"⤅",map:The,mapsto:khe,mapstodown:Lhe,mapstoleft:Bhe,mapstoup:Ohe,marker:Phe,mcomma:Nhe,Mcy:Ihe,mcy:Rhe,mdash:Mhe,mDDot:zhe,measuredangle:Uhe,MediumSpace:Hhe,Mellintrf:qhe,Mfr:jhe,mfr:Vhe,mho:Whe,micro:Ghe,midast:Khe,midcir:Xhe,mid:Qhe,middot:Yhe,minusb:Zhe,minus:Jhe,minusd:ede,minusdu:tde,MinusPlus:nde,mlcp:rde,mldr:ide,mnplus:sde,models:ode,Mopf:ade,mopf:ude,mp:lde,mscr:cde,Mscr:fde,mstpos:hde,Mu:dde,mu:pde,multimap:gde,mumap:vde,nabla:mde,Nacute:yde,nacute:bde,nang:wde,nap:Dde,napE:Ade,napid:xde,napos:Ede,napprox:Cde,natural:_de,naturals:Sde,natur:Fde,nbsp:$de,nbump:Tde,nbumpe:kde,ncap:Lde,Ncaron:Bde,ncaron:Ode,Ncedil:Pde,ncedil:Nde,ncong:Ide,ncongdot:Rde,ncup:Mde,Ncy:zde,ncy:Ude,ndash:Hde,nearhk:qde,nearr:jde,neArr:Vde,nearrow:Wde,ne:Gde,nedot:Kde,NegativeMediumSpace:Xde,NegativeThickSpace:Qde,NegativeThinSpace:Yde,NegativeVeryThinSpace:Zde,nequiv:Jde,nesear:epe,nesim:tpe,NestedGreaterGreater:npe,NestedLessLess:rpe,NewLine:ipe,nexist:spe,nexists:ope,Nfr:ape,nfr:upe,ngE:lpe,nge:cpe,ngeq:fpe,ngeqq:hpe,ngeqslant:dpe,nges:ppe,nGg:gpe,ngsim:vpe,nGt:mpe,ngt:ype,ngtr:bpe,nGtv:wpe,nharr:Dpe,nhArr:Ape,nhpar:xpe,ni:Epe,nis:Cpe,nisd:_pe,niv:Spe,NJcy:Fpe,njcy:$pe,nlarr:Tpe,nlArr:kpe,nldr:Lpe,nlE:Bpe,nle:Ope,nleftarrow:Ppe,nLeftarrow:Npe,nleftrightarrow:Ipe,nLeftrightarrow:Rpe,nleq:Mpe,nleqq:zpe,nleqslant:Upe,nles:Hpe,nless:qpe,nLl:jpe,nlsim:Vpe,nLt:Wpe,nlt:Gpe,nltri:Kpe,nltrie:Xpe,nLtv:Qpe,nmid:Ype,NoBreak:Zpe,NonBreakingSpace:Jpe,nopf:e0e,Nopf:t0e,Not:n0e,not:r0e,NotCongruent:i0e,NotCupCap:s0e,NotDoubleVerticalBar:o0e,NotElement:a0e,NotEqual:u0e,NotEqualTilde:l0e,NotExists:c0e,NotGreater:f0e,NotGreaterEqual:h0e,NotGreaterFullEqual:d0e,NotGreaterGreater:p0e,NotGreaterLess:g0e,NotGreaterSlantEqual:v0e,NotGreaterTilde:m0e,NotHumpDownHump:y0e,NotHumpEqual:b0e,notin:w0e,notindot:D0e,notinE:A0e,notinva:x0e,notinvb:E0e,notinvc:C0e,NotLeftTriangleBar:_0e,NotLeftTriangle:S0e,NotLeftTriangleEqual:F0e,NotLess:$0e,NotLessEqual:T0e,NotLessGreater:k0e,NotLessLess:L0e,NotLessSlantEqual:B0e,NotLessTilde:O0e,NotNestedGreaterGreater:P0e,NotNestedLessLess:N0e,notni:I0e,notniva:R0e,notnivb:M0e,notnivc:z0e,NotPrecedes:U0e,NotPrecedesEqual:H0e,NotPrecedesSlantEqual:q0e,NotReverseElement:j0e,NotRightTriangleBar:V0e,NotRightTriangle:W0e,NotRightTriangleEqual:G0e,NotSquareSubset:K0e,NotSquareSubsetEqual:X0e,NotSquareSuperset:Q0e,NotSquareSupersetEqual:Y0e,NotSubset:Z0e,NotSubsetEqual:J0e,NotSucceeds:ege,NotSucceedsEqual:tge,NotSucceedsSlantEqual:nge,NotSucceedsTilde:rge,NotSuperset:ige,NotSupersetEqual:sge,NotTilde:oge,NotTildeEqual:age,NotTildeFullEqual:uge,NotTildeTilde:lge,NotVerticalBar:cge,nparallel:fge,npar:hge,nparsl:dge,npart:pge,npolint:gge,npr:vge,nprcue:mge,nprec:yge,npreceq:bge,npre:wge,nrarrc:Dge,nrarr:Age,nrArr:xge,nrarrw:Ege,nrightarrow:Cge,nRightarrow:_ge,nrtri:Sge,nrtrie:Fge,nsc:$ge,nsccue:Tge,nsce:kge,Nscr:Lge,nscr:Bge,nshortmid:Oge,nshortparallel:Pge,nsim:Nge,nsime:Ige,nsimeq:Rge,nsmid:Mge,nspar:zge,nsqsube:Uge,nsqsupe:Hge,nsub:qge,nsubE:jge,nsube:Vge,nsubset:Wge,nsubseteq:Gge,nsubseteqq:Kge,nsucc:Xge,nsucceq:Qge,nsup:Yge,nsupE:Zge,nsupe:Jge,nsupset:eve,nsupseteq:tve,nsupseteqq:nve,ntgl:rve,Ntilde:ive,ntilde:sve,ntlg:ove,ntriangleleft:ave,ntrianglelefteq:uve,ntriangleright:lve,ntrianglerighteq:cve,Nu:fve,nu:hve,num:dve,numero:pve,numsp:gve,nvap:vve,nvdash:mve,nvDash:yve,nVdash:bve,nVDash:wve,nvge:Dve,nvgt:Ave,nvHarr:xve,nvinfin:Eve,nvlArr:Cve,nvle:_ve,nvlt:Sve,nvltrie:Fve,nvrArr:$ve,nvrtrie:Tve,nvsim:kve,nwarhk:Lve,nwarr:Bve,nwArr:Ove,nwarrow:Pve,nwnear:Nve,Oacute:Ive,oacute:Rve,oast:Mve,Ocirc:zve,ocirc:Uve,ocir:Hve,Ocy:qve,ocy:jve,odash:Vve,Odblac:Wve,odblac:Gve,odiv:Kve,odot:Xve,odsold:Qve,OElig:Yve,oelig:Zve,ofcir:Jve,Ofr:eme,ofr:tme,ogon:nme,Ograve:rme,ograve:ime,ogt:sme,ohbar:ome,ohm:ame,oint:ume,olarr:lme,olcir:cme,olcross:fme,oline:hme,olt:dme,Omacr:pme,omacr:gme,Omega:vme,omega:mme,Omicron:yme,omicron:bme,omid:wme,ominus:Dme,Oopf:Ame,oopf:xme,opar:Eme,OpenCurlyDoubleQuote:Cme,OpenCurlyQuote:_me,operp:Sme,oplus:Fme,orarr:$me,Or:Tme,or:kme,ord:Lme,order:Bme,orderof:Ome,ordf:Pme,ordm:Nme,origof:Ime,oror:Rme,orslope:Mme,orv:zme,oS:Ume,Oscr:Hme,oscr:qme,Oslash:jme,oslash:Vme,osol:Wme,Otilde:Gme,otilde:Kme,otimesas:Xme,Otimes:Qme,otimes:Yme,Ouml:Zme,ouml:Jme,ovbar:eye,OverBar:tye,OverBrace:nye,OverBracket:rye,OverParenthesis:iye,para:sye,parallel:oye,par:aye,parsim:uye,parsl:lye,part:cye,PartialD:fye,Pcy:hye,pcy:dye,percnt:pye,period:gye,permil:vye,perp:mye,pertenk:yye,Pfr:bye,pfr:wye,Phi:Dye,phi:Aye,phiv:xye,phmmat:Eye,phone:Cye,Pi:_ye,pi:Sye,pitchfork:Fye,piv:$ye,planck:Tye,planckh:kye,plankv:Lye,plusacir:Bye,plusb:Oye,pluscir:Pye,plus:Nye,plusdo:Iye,plusdu:Rye,pluse:Mye,PlusMinus:zye,plusmn:Uye,plussim:Hye,plustwo:qye,pm:jye,Poincareplane:Vye,pointint:Wye,popf:Gye,Popf:Kye,pound:Xye,prap:Qye,Pr:Yye,pr:Zye,prcue:Jye,precapprox:e1e,prec:t1e,preccurlyeq:n1e,Precedes:r1e,PrecedesEqual:i1e,PrecedesSlantEqual:s1e,PrecedesTilde:o1e,preceq:a1e,precnapprox:u1e,precneqq:l1e,precnsim:c1e,pre:f1e,prE:h1e,precsim:d1e,prime:p1e,Prime:g1e,primes:v1e,prnap:m1e,prnE:y1e,prnsim:b1e,prod:w1e,Product:D1e,profalar:A1e,profline:x1e,profsurf:E1e,prop:C1e,Proportional:_1e,Proportion:S1e,propto:F1e,prsim:$1e,prurel:T1e,Pscr:k1e,pscr:L1e,Psi:B1e,psi:O1e,puncsp:P1e,Qfr:N1e,qfr:I1e,qint:R1e,qopf:M1e,Qopf:z1e,qprime:U1e,Qscr:H1e,qscr:q1e,quaternions:j1e,quatint:V1e,quest:W1e,questeq:G1e,quot:K1e,QUOT:X1e,rAarr:Q1e,race:Y1e,Racute:Z1e,racute:J1e,radic:ebe,raemptyv:tbe,rang:nbe,Rang:rbe,rangd:ibe,range:sbe,rangle:obe,raquo:abe,rarrap:ube,rarrb:lbe,rarrbfs:cbe,rarrc:fbe,rarr:hbe,Rarr:dbe,rArr:pbe,rarrfs:gbe,rarrhk:vbe,rarrlp:mbe,rarrpl:ybe,rarrsim:bbe,Rarrtl:wbe,rarrtl:Dbe,rarrw:Abe,ratail:xbe,rAtail:Ebe,ratio:Cbe,rationals:_be,rbarr:Sbe,rBarr:Fbe,RBarr:$be,rbbrk:Tbe,rbrace:kbe,rbrack:Lbe,rbrke:Bbe,rbrksld:Obe,rbrkslu:Pbe,Rcaron:Nbe,rcaron:Ibe,Rcedil:Rbe,rcedil:Mbe,rceil:zbe,rcub:Ube,Rcy:Hbe,rcy:qbe,rdca:jbe,rdldhar:Vbe,rdquo:Wbe,rdquor:Gbe,rdsh:Kbe,real:Xbe,realine:Qbe,realpart:Ybe,reals:Zbe,Re:Jbe,rect:ewe,reg:twe,REG:nwe,ReverseElement:rwe,ReverseEquilibrium:iwe,ReverseUpEquilibrium:swe,rfisht:owe,rfloor:awe,rfr:uwe,Rfr:lwe,rHar:cwe,rhard:fwe,rharu:hwe,rharul:dwe,Rho:pwe,rho:gwe,rhov:vwe,RightAngleBracket:mwe,RightArrowBar:ywe,rightarrow:bwe,RightArrow:wwe,Rightarrow:Dwe,RightArrowLeftArrow:Awe,rightarrowtail:xwe,RightCeiling:Ewe,RightDoubleBracket:Cwe,RightDownTeeVector:_we,RightDownVectorBar:Swe,RightDownVector:Fwe,RightFloor:$we,rightharpoondown:Twe,rightharpoonup:kwe,rightleftarrows:Lwe,rightleftharpoons:Bwe,rightrightarrows:Owe,rightsquigarrow:Pwe,RightTeeArrow:Nwe,RightTee:Iwe,RightTeeVector:Rwe,rightthreetimes:Mwe,RightTriangleBar:zwe,RightTriangle:Uwe,RightTriangleEqual:Hwe,RightUpDownVector:qwe,RightUpTeeVector:jwe,RightUpVectorBar:Vwe,RightUpVector:Wwe,RightVectorBar:Gwe,RightVector:Kwe,ring:Xwe,risingdotseq:Qwe,rlarr:Ywe,rlhar:Zwe,rlm:Jwe,rmoustache:eDe,rmoust:tDe,rnmid:nDe,roang:rDe,roarr:iDe,robrk:sDe,ropar:oDe,ropf:aDe,Ropf:uDe,roplus:lDe,rotimes:cDe,RoundImplies:fDe,rpar:hDe,rpargt:dDe,rppolint:pDe,rrarr:gDe,Rrightarrow:vDe,rsaquo:mDe,rscr:yDe,Rscr:bDe,rsh:wDe,Rsh:DDe,rsqb:ADe,rsquo:xDe,rsquor:EDe,rthree:CDe,rtimes:_De,rtri:SDe,rtrie:FDe,rtrif:$De,rtriltri:TDe,RuleDelayed:kDe,ruluhar:LDe,rx:BDe,Sacute:ODe,sacute:PDe,sbquo:NDe,scap:IDe,Scaron:RDe,scaron:MDe,Sc:zDe,sc:UDe,sccue:HDe,sce:qDe,scE:jDe,Scedil:VDe,scedil:WDe,Scirc:GDe,scirc:KDe,scnap:XDe,scnE:QDe,scnsim:YDe,scpolint:ZDe,scsim:JDe,Scy:eAe,scy:tAe,sdotb:nAe,sdot:rAe,sdote:iAe,searhk:sAe,searr:oAe,seArr:aAe,searrow:uAe,sect:lAe,semi:cAe,seswar:fAe,setminus:hAe,setmn:dAe,sext:pAe,Sfr:gAe,sfr:vAe,sfrown:mAe,sharp:yAe,SHCHcy:bAe,shchcy:wAe,SHcy:DAe,shcy:AAe,ShortDownArrow:xAe,ShortLeftArrow:EAe,shortmid:CAe,shortparallel:_Ae,ShortRightArrow:SAe,ShortUpArrow:FAe,shy:$Ae,Sigma:TAe,sigma:kAe,sigmaf:LAe,sigmav:BAe,sim:OAe,simdot:PAe,sime:NAe,simeq:IAe,simg:RAe,simgE:MAe,siml:zAe,simlE:UAe,simne:HAe,simplus:qAe,simrarr:jAe,slarr:VAe,SmallCircle:WAe,smallsetminus:GAe,smashp:KAe,smeparsl:XAe,smid:QAe,smile:YAe,smt:ZAe,smte:JAe,smtes:exe,SOFTcy:txe,softcy:nxe,solbar:rxe,solb:ixe,sol:sxe,Sopf:oxe,sopf:axe,spades:uxe,spadesuit:lxe,spar:cxe,sqcap:fxe,sqcaps:hxe,sqcup:dxe,sqcups:pxe,Sqrt:gxe,sqsub:vxe,sqsube:mxe,sqsubset:yxe,sqsubseteq:bxe,sqsup:wxe,sqsupe:Dxe,sqsupset:Axe,sqsupseteq:xxe,square:Exe,Square:Cxe,SquareIntersection:_xe,SquareSubset:Sxe,SquareSubsetEqual:Fxe,SquareSuperset:$xe,SquareSupersetEqual:Txe,SquareUnion:kxe,squarf:Lxe,squ:Bxe,squf:Oxe,srarr:Pxe,Sscr:Nxe,sscr:Ixe,ssetmn:Rxe,ssmile:Mxe,sstarf:zxe,Star:Uxe,star:Hxe,starf:qxe,straightepsilon:jxe,straightphi:Vxe,strns:Wxe,sub:Gxe,Sub:Kxe,subdot:Xxe,subE:Qxe,sube:Yxe,subedot:Zxe,submult:Jxe,subnE:eEe,subne:tEe,subplus:nEe,subrarr:rEe,subset:iEe,Subset:sEe,subseteq:oEe,subseteqq:aEe,SubsetEqual:uEe,subsetneq:lEe,subsetneqq:cEe,subsim:fEe,subsub:hEe,subsup:dEe,succapprox:pEe,succ:gEe,succcurlyeq:vEe,Succeeds:mEe,SucceedsEqual:yEe,SucceedsSlantEqual:bEe,SucceedsTilde:wEe,succeq:DEe,succnapprox:AEe,succneqq:xEe,succnsim:EEe,succsim:CEe,SuchThat:_Ee,sum:SEe,Sum:FEe,sung:$Ee,sup1:TEe,sup2:kEe,sup3:LEe,sup:BEe,Sup:OEe,supdot:PEe,supdsub:NEe,supE:IEe,supe:REe,supedot:MEe,Superset:zEe,SupersetEqual:UEe,suphsol:HEe,suphsub:qEe,suplarr:jEe,supmult:VEe,supnE:WEe,supne:GEe,supplus:KEe,supset:XEe,Supset:QEe,supseteq:YEe,supseteqq:ZEe,supsetneq:JEe,supsetneqq:eCe,supsim:tCe,supsub:nCe,supsup:rCe,swarhk:iCe,swarr:sCe,swArr:oCe,swarrow:aCe,swnwar:uCe,szlig:lCe,Tab:cCe,target:fCe,Tau:hCe,tau:dCe,tbrk:pCe,Tcaron:gCe,tcaron:vCe,Tcedil:mCe,tcedil:yCe,Tcy:bCe,tcy:wCe,tdot:DCe,telrec:ACe,Tfr:xCe,tfr:ECe,there4:CCe,therefore:_Ce,Therefore:SCe,Theta:FCe,theta:$Ce,thetasym:TCe,thetav:kCe,thickapprox:LCe,thicksim:BCe,ThickSpace:OCe,ThinSpace:PCe,thinsp:NCe,thkap:ICe,thksim:RCe,THORN:MCe,thorn:zCe,tilde:UCe,Tilde:HCe,TildeEqual:qCe,TildeFullEqual:jCe,TildeTilde:VCe,timesbar:WCe,timesb:GCe,times:KCe,timesd:XCe,tint:QCe,toea:YCe,topbot:ZCe,topcir:JCe,top:e_e,Topf:t_e,topf:n_e,topfork:r_e,tosa:i_e,tprime:s_e,trade:o_e,TRADE:a_e,triangle:u_e,triangledown:l_e,triangleleft:c_e,trianglelefteq:f_e,triangleq:h_e,triangleright:d_e,trianglerighteq:p_e,tridot:g_e,trie:v_e,triminus:m_e,TripleDot:y_e,triplus:b_e,trisb:w_e,tritime:D_e,trpezium:A_e,Tscr:x_e,tscr:E_e,TScy:C_e,tscy:__e,TSHcy:S_e,tshcy:F_e,Tstrok:$_e,tstrok:T_e,twixt:k_e,twoheadleftarrow:L_e,twoheadrightarrow:B_e,Uacute:O_e,uacute:P_e,uarr:N_e,Uarr:I_e,uArr:R_e,Uarrocir:M_e,Ubrcy:z_e,ubrcy:U_e,Ubreve:H_e,ubreve:q_e,Ucirc:j_e,ucirc:V_e,Ucy:W_e,ucy:G_e,udarr:K_e,Udblac:X_e,udblac:Q_e,udhar:Y_e,ufisht:Z_e,Ufr:J_e,ufr:eSe,Ugrave:tSe,ugrave:nSe,uHar:rSe,uharl:iSe,uharr:sSe,uhblk:oSe,ulcorn:aSe,ulcorner:uSe,ulcrop:lSe,ultri:cSe,Umacr:fSe,umacr:hSe,uml:dSe,UnderBar:pSe,UnderBrace:gSe,UnderBracket:vSe,UnderParenthesis:mSe,Union:ySe,UnionPlus:bSe,Uogon:wSe,uogon:DSe,Uopf:ASe,uopf:xSe,UpArrowBar:ESe,uparrow:CSe,UpArrow:_Se,Uparrow:SSe,UpArrowDownArrow:FSe,updownarrow:$Se,UpDownArrow:TSe,Updownarrow:kSe,UpEquilibrium:LSe,upharpoonleft:BSe,upharpoonright:OSe,uplus:PSe,UpperLeftArrow:NSe,UpperRightArrow:ISe,upsi:RSe,Upsi:MSe,upsih:zSe,Upsilon:USe,upsilon:HSe,UpTeeArrow:qSe,UpTee:jSe,upuparrows:VSe,urcorn:WSe,urcorner:GSe,urcrop:KSe,Uring:XSe,uring:QSe,urtri:YSe,Uscr:ZSe,uscr:JSe,utdot:eFe,Utilde:tFe,utilde:nFe,utri:rFe,utrif:iFe,uuarr:sFe,Uuml:oFe,uuml:aFe,uwangle:uFe,vangrt:lFe,varepsilon:cFe,varkappa:fFe,varnothing:hFe,varphi:dFe,varpi:pFe,varpropto:gFe,varr:vFe,vArr:mFe,varrho:yFe,varsigma:bFe,varsubsetneq:wFe,varsubsetneqq:DFe,varsupsetneq:AFe,varsupsetneqq:xFe,vartheta:EFe,vartriangleleft:CFe,vartriangleright:_Fe,vBar:SFe,Vbar:FFe,vBarv:$Fe,Vcy:TFe,vcy:kFe,vdash:LFe,vDash:BFe,Vdash:OFe,VDash:PFe,Vdashl:NFe,veebar:IFe,vee:RFe,Vee:MFe,veeeq:zFe,vellip:UFe,verbar:HFe,Verbar:qFe,vert:jFe,Vert:VFe,VerticalBar:WFe,VerticalLine:GFe,VerticalSeparator:KFe,VerticalTilde:XFe,VeryThinSpace:QFe,Vfr:YFe,vfr:ZFe,vltri:JFe,vnsub:e2e,vnsup:t2e,Vopf:n2e,vopf:r2e,vprop:i2e,vrtri:s2e,Vscr:o2e,vscr:a2e,vsubnE:u2e,vsubne:l2e,vsupnE:c2e,vsupne:f2e,Vvdash:h2e,vzigzag:d2e,Wcirc:p2e,wcirc:g2e,wedbar:v2e,wedge:m2e,Wedge:y2e,wedgeq:b2e,weierp:w2e,Wfr:D2e,wfr:A2e,Wopf:x2e,wopf:E2e,wp:C2e,wr:_2e,wreath:S2e,Wscr:F2e,wscr:$2e,xcap:T2e,xcirc:k2e,xcup:L2e,xdtri:B2e,Xfr:O2e,xfr:P2e,xharr:N2e,xhArr:I2e,Xi:R2e,xi:M2e,xlarr:z2e,xlArr:U2e,xmap:H2e,xnis:q2e,xodot:j2e,Xopf:V2e,xopf:W2e,xoplus:G2e,xotime:K2e,xrarr:X2e,xrArr:Q2e,Xscr:Y2e,xscr:Z2e,xsqcup:J2e,xuplus:e$e,xutri:t$e,xvee:n$e,xwedge:r$e,Yacute:i$e,yacute:s$e,YAcy:o$e,yacy:a$e,Ycirc:u$e,ycirc:l$e,Ycy:c$e,ycy:f$e,yen:h$e,Yfr:d$e,yfr:p$e,YIcy:g$e,yicy:v$e,Yopf:m$e,yopf:y$e,Yscr:b$e,yscr:w$e,YUcy:D$e,yucy:A$e,yuml:x$e,Yuml:E$e,Zacute:C$e,zacute:_$e,Zcaron:S$e,zcaron:F$e,Zcy:$$e,zcy:T$e,Zdot:k$e,zdot:L$e,zeetrf:B$e,ZeroWidthSpace:O$e,Zeta:P$e,zeta:N$e,zfr:I$e,Zfr:R$e,ZHcy:M$e,zhcy:z$e,zigrarr:U$e,zopf:H$e,Zopf:q$e,Zscr:j$e,zscr:V$e,zwj:W$e,zwnj:G$e},K$e="Á",X$e="á",Q$e="Â",Y$e="â",Z$e="´",J$e="Æ",eTe="æ",tTe="À",nTe="à",rTe="&",iTe="&",sTe="Å",oTe="å",aTe="Ã",uTe="ã",lTe="Ä",cTe="ä",fTe="¦",hTe="Ç",dTe="ç",pTe="¸",gTe="¢",vTe="©",mTe="©",yTe="¤",bTe="°",wTe="÷",DTe="É",ATe="é",xTe="Ê",ETe="ê",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="ñ",nke="Ó",rke="ó",ike="Ô",ske="ô",oke="Ò",ake="ò",uke="ª",lke="º",cke="Ø",fke="ø",hke="Õ",dke="õ",pke="Ö",gke="ö",vke="¶",mke="±",yke="£",bke='"',wke='"',Dke="»",Ake="®",xke="®",Eke="§",Cke="",_ke="¹",Ske="²",Fke="³",$ke="ß",Tke="Þ",kke="þ",Lke="×",Bke="Ú",Oke="ú",Pke="Û",Nke="û",Ike="Ù",Rke="ù",Mke="¨",zke="Ü",Uke="ü",Hke="Ý",qke="ý",jke="¥",Vke="ÿ",Wke={Aacute:K$e,aacute:X$e,Acirc:Q$e,acirc:Y$e,acute:Z$e,AElig:J$e,aelig:eTe,Agrave:tTe,agrave:nTe,amp:rTe,AMP:iTe,Aring:sTe,aring:oTe,Atilde:aTe,atilde:uTe,Auml:lTe,auml:cTe,brvbar:fTe,Ccedil:hTe,ccedil:dTe,cedil:pTe,cent:gTe,copy:vTe,COPY:mTe,curren:yTe,deg:bTe,divide:wTe,Eacute:DTe,eacute:ATe,Ecirc:xTe,ecirc:ETe,Egrave:CTe,egrave:_Te,ETH:STe,eth:FTe,Euml:$Te,euml:TTe,frac12:kTe,frac14:LTe,frac34:BTe,gt:OTe,GT:PTe,Iacute:NTe,iacute:ITe,Icirc:RTe,icirc:MTe,iexcl:zTe,Igrave:UTe,igrave:HTe,iquest:qTe,Iuml:jTe,iuml:VTe,laquo:WTe,lt:GTe,LT:KTe,macr:XTe,micro:QTe,middot:YTe,nbsp:ZTe,not:JTe,Ntilde:eke,ntilde:tke,Oacute:nke,oacute:rke,Ocirc:ike,ocirc:ske,Ograve:oke,ograve:ake,ordf:uke,ordm:lke,Oslash:cke,oslash:fke,Otilde:hke,otilde:dke,Ouml:pke,ouml:gke,para:vke,plusmn:mke,pound:yke,quot:bke,QUOT:wke,raquo:Dke,reg:Ake,REG:xke,sect:Eke,shy:Cke,sup1:_ke,sup2:Ske,sup3:Fke,szlig:$ke,THORN:Tke,thorn:kke,times:Lke,Uacute:Bke,uacute:Oke,Ucirc:Pke,ucirc:Nke,Ugrave:Ike,ugrave:Rke,uml:Mke,Uuml:zke,uuml:Uke,Yacute:Hke,yacute:qke,yen:jke,yuml:Vke},Gke="&",Kke="'",Xke=">",Qke="<",Yke='"',Q_={amp:Gke,apos:Kke,gt:Xke,lt:Qke,quot:Yke};var Kv={};const Zke={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 Jke=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kv,"__esModule",{value:!0});var KD=Jke(Zke),eLe=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 tLe(e){return e>=55296&&e<=57343||e>1114111?"�":(e in KD.default&&(e=KD.default[e]),eLe(e))}Kv.default=tLe;var qh=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xi,"__esModule",{value:!0});xi.decodeHTML=xi.decodeHTMLStrict=xi.decodeXML=void 0;var x0=qh(X_),nLe=qh(Wke),rLe=qh(Q_),XD=qh(Kv),iLe=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;xi.decodeXML=Y_(rLe.default);xi.decodeHTMLStrict=Y_(x0.default);function Y_(e){var t=Z_(e);return function(n){return String(n).replace(iLe,t)}}var QD=function(e,t){return e<t?1:-1};xi.decodeHTML=function(){for(var e=Object.keys(nLe.default).sort(QD),t=Object.keys(x0.default).sort(QD),n=0,i=0;n<t.length;n++)e[i]===t[n]?(t[n]+=";?",i++):t[n]+=";";var o=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=Z_(x0.default);function c(h){return h.substr(-1)!==";"&&(h+=";"),a(h)}return function(h){return String(h).replace(o,c)}}();function Z_(e){return function(n){if(n.charAt(1)==="#"){var i=n.charAt(2);return i==="X"||i==="x"?XD.default(parseInt(n.substr(3),16)):XD.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}var Yn={},J_=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.escapeUTF8=Yn.escape=Yn.encodeNonAsciiHTML=Yn.encodeHTML=Yn.encodeXML=void 0;var sLe=J_(Q_),eS=nS(sLe.default),tS=rS(eS);Yn.encodeXML=oS(eS);var oLe=J_(X_),Xv=nS(oLe.default),aLe=rS(Xv);Yn.encodeHTML=lLe(Xv,aLe);Yn.encodeNonAsciiHTML=oS(Xv);function nS(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function rS(e){for(var t=[],n=[],i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];a.length===1?t.push("\\"+a):n.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 n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var iS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,uLe=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function jh(e){return"&#x"+(e.length>1?uLe(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function lLe(e,t){return function(n){return n.replace(t,function(i){return e[i]}).replace(iS,jh)}}var sS=new RegExp(tS.source+"|"+iS.source,"g");function cLe(e){return e.replace(sS,jh)}Yn.escape=cLe;function fLe(e){return e.replace(tS,jh)}Yn.escapeUTF8=fLe;function oS(e){return function(t){return t.replace(sS,function(n){return e[n]||jh(n)})}}(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=xi,n=Yn;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?n.encodeXML:n.encodeHTML)(d)}e.encode=a;var c=Yn;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=xi;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}})})(K_);function hLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function dLe(e,t,n){return t&&YD(e.prototype,t),n&&YD(e,n),e}function aS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=pLe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);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(){n=n.call(e)},n:function(){var p=n.next();return a=p.done,p},e:function(p){c=!0,h=p},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(c)throw h}}}}function pLe(e,t){if(e){if(typeof e=="string")return ZD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZD(e,t)}}function ZD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var gLe=K_,JD={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:vLe()};function vLe(){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(n){Hc(0,5).forEach(function(i){return mLe(t,n,i,e)})})}),Hc(0,23).forEach(function(t){var n=t+232,i=uS(t*10+8);e[n]="#"+i+i+i}),e}function mLe(e,t,n,i){var o=16+e*36+t*6+n,a=e>0?e*40+55:0,c=t>0?t*40+55:0,h=n>0?n*40+55:0;i[o]=yLe([a,c,h])}function uS(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function yLe(e){var t=[],n=aS(e),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;t.push(uS(o))}}catch(a){n.e(a)}finally{n.f()}return"#"+t.join("")}function eA(e,t,n,i){var o;return t==="text"?o=ALe(n,i):t==="display"?o=wLe(e,n,i):t==="xterm256Foreground"?o=uf(e,i.colors[n]):t==="xterm256Background"?o=lf(e,i.colors[n]):t==="rgb"&&(o=bLe(e,n)),o}function bLe(e,t){t=t.substring(2).slice(0,-1);var n=+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,(n===38?"color:#":"background-color:#")+o)}function wLe(e,t,n){t=parseInt(t,10);var i={"-1":function(){return"<br/>"},0:function(){return e.length&&lS(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 nA(e,"i")},24:function(){return nA(e,"u")},39:function(){return uf(e,n.fg)},49:function(){return lf(e,n.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,n.colors[t-30]):39<t&&t<48?o=lf(e,n.colors[t-40]):89<t&&t<98?o=uf(e,n.colors[8+(t-90)]):99<t&&t<108&&(o=lf(e,n.colors[8+(t-100)])),o}function lS(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(n){return"</"+n+">"}).join("")}function Hc(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n}function DLe(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function tA(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 ALe(e,t){return t.escapeXML?gLe.encodeXML(e):e}function ss(e,t,n){return n||(n=""),e.push(t),"<".concat(t).concat(n?' style="'.concat(n,'"'):"",">")}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 nA(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return"</"+t+">"}function xLe(e,t,n){var i=!1,o=3;function a(){return""}function c(k,M){return n("xterm256Foreground",M),""}function h(k,M){return n("xterm256Background",M),""}function d(k){return t.newline?n("display",-1):n("text",k),""}function p(k,M){i=!0,M.trim().length===0&&(M="0"),M=M.trimRight(";").split(";");var U=aS(M),j;try{for(U.s();!(j=U.n()).done;){var ne=j.value;n("display",ne)}}catch(oe){U.e(oe)}finally{U.f()}return""}function g(k){return n("text",k),""}function y(k){return n("rgb",k),""}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(k,M){M>o&&i||(i=!1,e=e.replace(k.pattern,k.sub))}var $=[],L=e,E=L.length;e:for(;E>0;){for(var C=0,S=0,O=m.length;S<O;C=++S){var B=m[C];if(w(B,C),e.length!==E){E=e.length;continue e}}if(e.length===E)break;$.push(0),E=e.length}return $}function ELe(e,t,n){return t!=="text"&&(e=e.filter(DLe(tA(n))),e.push({token:t,data:n,category:tA(n)})),e}var CLe=function(){function e(t){hLe(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},JD.colors,t.colors)),this.options=Object.assign({},JD,t),this.stack=[],this.stickyStack=[]}return dLe(e,[{key:"toHtml",value:function(n){var i=this;n=typeof n=="string"?[n]:n;var o=this.stack,a=this.options,c=[];return this.stickyStack.forEach(function(h){var d=eA(o,h.token,h.data,a);d&&c.push(d)}),xLe(n.join(""),a,function(h,d){var p=eA(o,h,d,a);p&&c.push(p),a.stream&&(i.stickyStack=ELe(i.stickyStack,h,d))}),o.length&&c.push(lS(o)),c.join("")}}]),e}(),_Le=CLe;function SLe(e,t){return t&&e.endsWith(t)}async function cS(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function fS(e){return new _Le({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}const FLe={class:"scrolls scrolls-rounded task-error"},$Le=["onClickPassive"],TLe={key:0},kLe=rt({__name:"ViewReportError",props:{root:null,filename:null,error:null},setup(e){const t=e;function n(a){return a.startsWith(t.root)?a.slice(t.root.length):a}const i=xe(()=>{var a,c;return((a=t.error)==null?void 0:a.expected)&&((c=t.error)==null?void 0:c.actual)});function o(){return XV(t.error.actual,t.error.expected)}return(a,c)=>{const h=io("tooltip");return de(),Te("div",FLe,[pe("pre",null,[pe("b",null,Je(e.error.name||e.error.nameStr),1),Sn(": "+Je(e.error.message),1)]),(de(!0),Te(ht,null,Ar(e.error.stacks,(d,p)=>(de(),Te("div",{key:p,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[pe("pre",null," - "+Je(n(d.file))+":"+Je(d.line)+":"+Je(d.column),1),Q(SLe)(d.file,e.filename)?yn((de(),Te("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=>Q(cS)(d.file,d.line,d.column)},null,40,$Le)),[[h,"Open in Editor",void 0,{bottom:!0}]]):nt("",!0)]))),128)),Q(i)?(de(),Te("pre",TLe," "+Je(`
|
|
16
|
-
${o()}`)+`
|
|
17
|
-
`,1)):nt("",!0)])}}});const LLe=so(kLe,[["__scopeId","data-v-b52f98f6"]]),Vh=ZW(),BLe=uW(Vh),OLe={"h-full":"",class:"scrolls"},PLe={key:0,class:"scrolls scrolls-rounded task-error"},NLe=["innerHTML"],ILe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},RLe=rt({__name:"ViewReport",props:{file:null},setup(e){const t=e;function n(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=>n(g,d+1))]}function i(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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=fS(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=xe(()=>{var y,m;const h=t.file,d=((y=h==null?void 0:h.tasks)==null?void 0:y.flatMap(w=>n(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(Vh.value,d):d});return(h,d)=>(de(),Te("div",OLe,[Q(c).length?(de(!0),Te(ht,{key:0},Ar(Q(c),p=>{var g,y,m;return de(),Te("div",{key:p.id},[pe("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Un({"margin-left":`${(g=p.result)!=null&&g.htmlError?.5:2*p.level+.5}rem`})},[Sn(Je(p.name)+" ",1),(y=p.result)!=null&&y.htmlError?(de(),Te("div",PLe,[pe("pre",{innerHTML:p.result.htmlError},null,8,NLe)])):(m=p.result)!=null&&m.errors?(de(!0),Te(ht,{key:1},Ar(p.result.errors,(w,$)=>{var L;return de(),Ze(LLe,{key:$,error:w,filename:(L=e.file)==null?void 0:L.name,root:Q(Tl).root},null,8,["error","filename","root"])}),128)):nt("",!0)],4)])}),128)):(de(),Te("div",ILe," All tests passed in this file "))]))}});const MLe=so(RLe,[["__scopeId","data-v-1988b97e"]]),zLe={border:"b base","p-4":""},ULe=["innerHTML"],HLe=["textContent"],qLe=rt({__name:"ViewConsoleOutputEntry",props:{taskName:null,type:null,time:null,content:null,html:{type:Boolean}},setup(e){const t=e;function n(i){return new Date(i).toLocaleTimeString()}return(i,o)=>(de(),Te("div",zLe,[pe("div",{"text-xs":"","mb-1":"",class:yt(t.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Je(n(t.time))+" | "+Je(t.taskName)+" | "+Je(t.type),3),t.html?(de(),Te("pre",{key:0,"data-type":"html",innerHTML:t.content},null,8,ULe)):(de(),Te("pre",{key:1,"data-type":"text",textContent:Je(t.content)},null,8,HLe))]))}}),jLe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},VLe={key:1,p6:""},WLe=pe("pre",{inline:""},"console.log(foo)",-1),GLe=rt({__name:"ViewConsoleOutput",setup(e){const t=xe(()=>{const i=W_.value;if(i){const o=fS(Vh.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 n(i){const o=i&&sn.state.idMap.get(i);return(o?QV(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>{var c;const a=qLe;return(c=Q(t))!=null&&c.length?(de(),Te("div",jLe,[(de(!0),Te(ht,null,Ar(Q(t),({taskId:h,type:d,time:p,html:g,content:y})=>(de(),Te("div",{key:h,"font-mono":""},[Me(a,{"task-name":n(h),type:d,time:p,content:y,html:g},null,8,["task-name","type","time","content","html"])]))),128))])):(de(),Te("p",VLe,[Sn(" Log something in your test and it would print here. (e.g. "),WLe,Sn(") ")]))}}});var ds={},KLe={get exports(){return ds},set exports(e){ds=e}};(function(e,t){(function(n,i){e.exports=i()})(ur,function(){var n=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(n),a=/MSIE \d/.test(n),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),h=/Edge\/(\d+)/.exec(n),d=a||c||h,p=d&&(a?document.documentMode||6:+(h||c)[1]),g=!h&&/WebKit\//.test(n),y=g&&/Qt\/\d+\.\d+/.test(n),m=!h&&/Chrome\/(\d+)/.exec(n),w=m&&+m[1],$=/Opera\//.test(n),L=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),C=/PhantomJS/.test(n),S=L&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),B=S||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),k=S||/Mac/.test(i),M=/\bCrOS\b/.test(n),U=/win/i.test(i),j=$&&n.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&($=!1,g=!0);var ne=k&&(y||$&&(j==null||j<12.11)),oe=o||d&&p>=9;function Y(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var z=function(r,s){var l=r.className,u=Y(s).exec(l);if(u){var f=l.slice(u.index+u[0].length);r.className=l.slice(0,u.index)+(f?u[1]+f:"")}};function P(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function F(r,s){return P(r).appendChild(s)}function D(r,s,l,u){var f=document.createElement(r);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 R(r,s,l,u){var f=D(r,s,l,u);return f.setAttribute("role","presentation"),f}var V;document.createRange?V=function(r,s,l,u){var f=document.createRange();return f.setEnd(u||r,l),f.setStart(r,s),f}:V=function(r,s,l){var u=document.body.createTextRange();try{u.moveToElementText(r.parentNode)}catch{return u}return u.collapse(!0),u.moveEnd("character",l),u.moveStart("character",s),u};function Z(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function ue(r){var s;try{s=r.activeElement}catch{s=r.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function ge(r,s){var l=r.className;Y(s).test(l)||(r.className+=(l?" ":"")+s)}function $e(r,s){for(var l=r.split(" "),u=0;u<l.length;u++)l[u]&&!Y(l[u]).test(s)&&(s+=" "+l[u]);return s}var _e=function(r){r.select()};S?_e=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:d&&(_e=function(r){try{r.select()}catch{}});function ze(r){return r.display.wrapper.ownerDocument}function Xe(r){return ze(r).defaultView}function ie(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function se(r,s,l){s||(s={});for(var u in r)r.hasOwnProperty(u)&&(l!==!1||!s.hasOwnProperty(u))&&(s[u]=r[u]);return s}function J(r,s,l,u,f){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var v=u||0,b=f||0;;){var A=r.indexOf(" ",v);if(A<0||A>=s)return b+(s-v);b+=A-v,b+=l-b%l,v=A+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=ie(this.onTimeout,this)};fe.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},fe.prototype.set=function(r,s){this.f=s;var l=+new Date+r;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=l)};function Se(r,s){for(var l=0;l<r.length;++l)if(r[l]==s)return l;return-1}var vt=50,ke={toString:function(){return"CodeMirror.Pass"}},I={scroll:!1},G={origin:"*mouse"},re={origin:"+move"};function ae(r,s,l){for(var u=0,f=0;;){var v=r.indexOf(" ",u);v==-1&&(v=r.length);var b=v-u;if(v==r.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 ce=[""];function ye(r){for(;ce.length<=r;)ce.push(he(ce)+" ");return ce[r]}function he(r){return r[r.length-1]}function be(r,s){for(var l=[],u=0;u<r.length;u++)l[u]=s(r[u],u);return l}function Ee(r,s,l){for(var u=0,f=l(s);u<r.length&&l(r[u])<=f;)u++;r.splice(u,0,s)}function ve(){}function Ne(r,s){var l;return Object.create?l=Object.create(r):(ve.prototype=r,l=new ve),s&&se(s,l),l}var Be=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Pe(r){return/\w/.test(r)||r>""&&(r.toUpperCase()!=r.toLowerCase()||Be.test(r))}function Re(r,s){return s?s.source.indexOf("\\w")>-1&&Pe(r)?!0:s.test(r):Pe(r)}function Ge(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var it=/[\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 tt(r){return r.charCodeAt(0)>=768&&it.test(r)}function ft(r,s,l){for(;(l<0?s>0:s<r.length)&&tt(r.charAt(s));)s+=l;return s}function et(r,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 r(v)?s:l;r(v)?l=v:s=v+u}}function Bn(r,s,l,u){if(!r)return u(s,l,"ltr",0);for(var f=!1,v=0;v<r.length;++v){var b=r[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 Vn=null;function tn(r,s,l){var u;Vn=null;for(var f=0;f<r.length;++f){var v=r[f];if(v.from<s&&v.to>s)return f;v.to==s&&(v.from!=v.to&&l=="before"?u=f:Vn=f),v.from==s&&(v.from!=v.to&&l!="before"?u=f:Vn=f)}return u??Vn}var co=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){return _<=247?r.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 x(_,N,H){this.level=_,this.from=N,this.to=H}return function(_,N){var H=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!u.test(_))return!1;for(var X=_.length,K=[],te=0;te<X;++te)K.push(l(_.charCodeAt(te)));for(var le=0,me=H;le<X;++le){var we=K[le];we=="m"?K[le]=me:me=we}for(var Ce=0,De=H;Ce<X;++Ce){var Fe=K[Ce];Fe=="1"&&De=="r"?K[Ce]="n":v.test(Fe)&&(De=Fe,Fe=="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 Nn=mt&&K[mt-1]=="!"||Ft<X&&K[Ft]=="1"?"1":"N",xn=mt;xn<Ft;++xn)K[xn]=Nn;mt=Ft-1}}for(var It=0,En=H;It<X;++It){var nn=K[It];En=="L"&&nn=="1"?K[It]="L":v.test(nn)&&(En=nn)}for(var jt=0;jt<X;++jt)if(f.test(K[jt])){var Rt=void 0;for(Rt=jt+1;Rt<X&&f.test(K[Rt]);++Rt);for(var Lt=(jt?K[jt-1]:H)=="L",Cn=(Rt<X?K[Rt]:H)=="L",Lo=Lt==Cn?Lt?"L":"R":H,Ki=jt;Ki<Rt;++Ki)K[Ki]=Lo;jt=Rt-1}for(var ln=[],Rr,Yt=0;Yt<X;)if(b.test(K[Yt])){var Hd=Yt;for(++Yt;Yt<X&&b.test(K[Yt]);++Yt);ln.push(new x(0,Hd,Yt))}else{var ci=Yt,Ss=ln.length,Fs=N=="rtl"?1:0;for(++Yt;Yt<X&&K[Yt]!="L";++Yt);for(var gn=ci;gn<Yt;)if(A.test(K[gn])){ci<gn&&(ln.splice(Ss,0,new x(1,ci,gn)),Ss+=Fs);var Bo=gn;for(++gn;gn<Yt&&A.test(K[gn]);++gn);ln.splice(Ss,0,new x(2,Bo,gn)),Ss+=Fs,ci=gn}else++gn;ci<Yt&&ln.splice(Ss,0,new x(1,ci,Yt))}return N=="ltr"&&(ln[0].level==1&&(Rr=_.match(/^\s+/))&&(ln[0].from=Rr[0].length,ln.unshift(new x(0,0,Rr[0].length))),he(ln).level==1&&(Rr=_.match(/\s+$/))&&(he(ln).to-=Rr[0].length,ln.push(new x(0,X-Rr[0].length,X)))),N=="rtl"?ln.reverse():ln}}();function Dt(r,s){var l=r.order;return l==null&&(l=r.order=co(r.text,s)),l}var bn=[],Ae=function(r,s,l){if(r.addEventListener)r.addEventListener(s,l,!1);else if(r.attachEvent)r.attachEvent("on"+s,l);else{var u=r._handlers||(r._handlers={});u[s]=(u[s]||bn).concat(l)}};function Ia(r,s){return r._handlers&&r._handlers[s]||bn}function on(r,s,l){if(r.removeEventListener)r.removeEventListener(s,l,!1);else if(r.detachEvent)r.detachEvent("on"+s,l);else{var u=r._handlers,f=u&&u[s];if(f){var v=Se(f,l);v>-1&&(u[s]=f.slice(0,v).concat(f.slice(v+1)))}}}function wt(r,s){var l=Ia(r,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(r,s,l){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),wt(r,l||s.type,r,s),Ra(s)||s.codemirrorIgnore}function Pl(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var l=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),u=0;u<s.length;++u)Se(l,s[u])==-1&&l.push(s[u])}function hn(r,s){return Ia(r,s).length>0}function dn(r){r.prototype.on=function(s,l){Ae(this,s,l)},r.prototype.off=function(s,l){on(this,s,l)}}function an(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function ys(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function Ra(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function ti(r){an(r),ys(r)}function wn(r){return r.target||r.srcElement}function Ma(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),k&&r.ctrlKey&&s==1&&(s=3),s}var Xh=function(){if(d&&p<9)return!1;var r=D("div");return"draggable"in r||"dragDrop"in r}(),tr;function Qh(r){if(tr==null){var s=D("span","");F(r,D("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(tr=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&p<8))}var l=tr?D("span",""):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var fo;function Nl(r){if(fo!=null)return fo;var s=F(r,document.createTextNode("AخA")),l=V(s,0,1).getBoundingClientRect(),u=V(s,1,2).getBoundingClientRect();return P(r),!l||l.left==l.right?!1:fo=u.right-l.right<3}var za=`
|
|
18
|
-
|
|
19
|
-
b`.split(/\n/).length!=3?function(r){for(var s=0,l=[],u=r.length;s<=u;){var f=r.indexOf(`
|
|
20
|
-
`,s);f==-1&&(f=r.length);var v=r.slice(s,r.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(r){return r.split(/\r\n?|\n/)},Ni=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var s;try{s=r.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=r?!1:s.compareEndPoints("StartToEnd",s)!=0},Lr=function(){var r=D("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),Br=null;function Il(r){if(Br!=null)return Br;var s=F(r,D("span","x")),l=s.getBoundingClientRect(),u=V(s,0,1).getBoundingClientRect();return Br=Math.abs(l.left-u.left)>1}var hr={},Ii={};function Rl(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),hr[r]=s}function ho(r,s){Ii[r]=s}function On(r){if(typeof r=="string"&&Ii.hasOwnProperty(r))r=Ii[r];else if(r&&typeof r.name=="string"&&Ii.hasOwnProperty(r.name)){var s=Ii[r.name];typeof s=="string"&&(s={name:s}),r=Ne(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return On("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return On("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function ni(r,s){s=On(s);var l=hr[s.name];if(!l)return ni(r,"text/plain");var u=l(r,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(r,s){var l=Ri.hasOwnProperty(r)?Ri[r]:Ri[r]={};se(s,l)}function ri(r,s){if(s===!0)return s;if(r.copyState)return r.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(r,s){for(var l;r.innerMode&&(l=r.innerMode(s),!(!l||l.mode==r));)s=l.state,r=l.mode;return l||{mode:r,state:s}}function Ua(r,s,l){return r.startState?r.startState(s,l):!0}var kt=function(r,s,l){this.pos=this.start=0,this.string=r,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(r){var s=this.string.charAt(this.pos),l;if(typeof r=="string"?l=s==r:l=s&&(r.test?r.test(s):r(s)),l)return++this.pos,s},kt.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},kt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},kt.prototype.skipToEnd=function(){this.pos=this.string.length},kt.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},kt.prototype.backUp=function(r){this.pos-=r},kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=J(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},kt.prototype.indentation=function(){return J(this.string,null,this.tabSize)-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},kt.prototype.match=function(r,s,l){if(typeof r=="string"){var u=function(b){return l?b.toLowerCase():b},f=this.string.substr(this.pos,r.length);if(u(f)==u(r))return s!==!1&&(this.pos+=r.length),!0}else{var v=this.string.slice(this.pos).match(r);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(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},kt.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},kt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function Le(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var l=r;!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(r,s,l){var u=[],f=s.line;return r.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 po(r,s,l){var u=[];return r.iter(s,l,function(f){u.push(f.text)}),u}function nr(r,s){var l=s-r.height;if(l)for(var u=r;u;u=u.parent)u.height+=l}function ut(r){if(r.parent==null)return null;for(var s=r.parent,l=Se(s.lines,r),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 Or(r,s){var l=r.first;e:do{for(var u=0;u<r.children.length;++u){var f=r.children[u],v=f.height;if(s<v){r=f;continue e}s-=v,l+=f.chunkSize()}return l}while(!r.lines);for(var b=0;b<r.lines.length;++b){var A=r.lines[b],x=A.height;if(s<x)break;s-=x}return l+b}function T(r,s){return s>=r.first&&s<r.first+r.size}function q(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function W(r,s,l){if(l===void 0&&(l=null),!(this instanceof W))return new W(r,s,l);this.line=r,this.ch=s,this.sticky=l}function ee(r,s){return r.line-s.line||r.ch-s.ch}function Ue(r,s){return r.sticky==s.sticky&&ee(r,s)==0}function Qe(r){return W(r.line,r.ch)}function st(r,s){return ee(r,s)<0?s:r}function qt(r,s){return ee(r,s)<0?r:s}function Wn(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function He(r,s){if(s.line<r.first)return W(r.first,0);var l=r.first+r.size-1;return s.line>l?W(l,Le(r,l).text.length):nF(s,Le(r,s.line).text.length)}function nF(r,s){var l=r.ch;return l==null||l>s?W(r.line,s):l<0?W(r.line,0):r}function fm(r,s){for(var l=[],u=0;u<s.length;u++)l[u]=He(r,s[u]);return l}var zl=function(r,s){this.state=r,this.lookAhead=s},Pr=function(r,s,l,u){this.state=s,this.doc=r,this.line=l,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},Pr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(r,s,l){return s instanceof zl?new Pr(r,ri(r.mode,s.state),l,s.lookAhead):new Pr(r,ri(r.mode,s),l)},Pr.prototype.save=function(r){var s=r!==!1?ri(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zl(s,this.maxLookAhead):s};function hm(r,s,l,u){var f=[r.state.modeGen],v={};ym(r,s.text,r.doc.mode,l,function(_,N){return f.push(_,N)},v,u);for(var b=l.state,A=function(_){l.baseTokens=f;var N=r.state.overlays[_],H=1,X=0;l.state=!0,ym(r,s.text,N.mode,l,function(K,te){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(te)if(N.opaque)f.splice(le,H-le,K,"overlay "+te),H=le+2;else for(;le<H;le+=2){var we=f[le+1];f[le+1]=(we?we+" ":"")+"overlay "+te}},v),l.state=b,l.baseTokens=null,l.baseTokenPos=1},x=0;x<r.state.overlays.length;++x)A(x);return{styles:f,classes:v.bgClass||v.textClass?v:null}}function dm(r,s,l){if(!s.styles||s.styles[0]!=r.state.modeGen){var u=Ha(r,ut(s)),f=s.text.length>r.options.maxHighlightLength&&ri(r.doc.mode,u.state),v=hm(r,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===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return s.styles}function Ha(r,s,l){var u=r.doc,f=r.display;if(!u.mode.startState)return new Pr(u,!0,s);var v=rF(r,s,l),b=v>u.first&&Le(u,v-1).stateAfter,A=b?Pr.fromSaved(u,b,v):new Pr(u,Ua(u.mode),v);return u.iter(v,s,function(x){Yh(r,x.text,A);var _=A.line;x.stateAfter=_==s-1||_%5==0||_>=f.viewFrom&&_<f.viewTo?A.save():null,A.nextLine()}),l&&(u.modeFrontier=A.line),A}function Yh(r,s,l,u){var f=r.doc.mode,v=new kt(s,r.options.tabSize,l);for(v.start=v.pos=u||0,s==""&&pm(f,l.state);!v.eol();)Zh(f,v,l.state),v.start=v.pos}function pm(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var l=Mi(r,s);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Zh(r,s,l,u){for(var f=0;f<10;f++){u&&(u[0]=Mi(r,l).mode);var v=r.token(s,l);if(s.pos>s.start)return v}throw new Error("Mode "+r.name+" failed to advance stream.")}var gm=function(r,s,l){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=l};function vm(r,s,l,u){var f=r.doc,v=f.mode,b;s=He(f,s);var A=Le(f,s.line),x=Ha(r,s.line,l),_=new kt(A.text,r.options.tabSize,x),N;for(u&&(N=[]);(u||_.pos<s.ch)&&!_.eol();)_.start=_.pos,b=Zh(v,_,x.state),u&&N.push(new gm(_,b,ri(f.mode,x.state)));return u?N:new gm(_,b,x.state)}function mm(r,s){if(r)for(;;){var l=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;r=r.slice(0,l.index)+r.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 r}function ym(r,s,l,u,f,v,b){var A=l.flattenSpans;A==null&&(A=r.options.flattenSpans);var x=0,_=null,N=new kt(s,r.options.tabSize,u),H,X=r.options.addModeClass&&[null];for(s==""&&mm(pm(l,u.state),v);!N.eol();){if(N.pos>r.options.maxHighlightLength?(A=!1,b&&Yh(r,s,u,N.pos),N.pos=s.length,H=null):H=mm(Zh(l,N,u.state,X),v),X){var K=X[0].name;K&&(H="m-"+(H?K+" "+H:K))}if(!A||_!=H){for(;x<N.start;)x=Math.min(N.start,x+5e3),f(x,_);_=H}N.start=N.pos}for(;x<N.pos;){var te=Math.min(N.pos,x+5e3);f(te,_),x=te}}function rF(r,s,l){for(var u,f,v=r.doc,b=l?-1:s-(r.doc.mode.innerMode?1e3:100),A=s;A>b;--A){if(A<=v.first)return v.first;var x=Le(v,A-1),_=x.stateAfter;if(_&&(!l||A+(_ instanceof zl?_.lookAhead:0)<=v.modeFrontier))return A;var N=J(x.text,null,r.options.tabSize);(f==null||u>N)&&(f=A-1,u=N)}return f}function iF(r,s){if(r.modeFrontier=Math.min(r.modeFrontier,s),!(r.highlightFrontier<s-10)){for(var l=r.first,u=s-1;u>l;u--){var f=Le(r,u).stateAfter;if(f&&(!(f instanceof zl)||u+f.lookAhead<s)){l=u+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,l)}}var bm=!1,si=!1;function sF(){bm=!0}function oF(){si=!0}function Ul(r,s,l){this.marker=r,this.from=s,this.to=l}function qa(r,s){if(r)for(var l=0;l<r.length;++l){var u=r[l];if(u.marker==s)return u}}function aF(r,s){for(var l,u=0;u<r.length;++u)r[u]!=s&&(l||(l=[])).push(r[u]);return l}function uF(r,s,l){var u=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));u&&r.markedSpans&&u.has(r.markedSpans)?r.markedSpans.push(s):(r.markedSpans=r.markedSpans?r.markedSpans.concat([s]):[s],u&&u.add(r.markedSpans)),s.marker.attachLine(r)}function lF(r,s,l){var u;if(r)for(var f=0;f<r.length;++f){var v=r[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 x=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);(u||(u=[])).push(new Ul(b,v.from,x?null:v.to))}}return u}function cF(r,s,l){var u;if(r)for(var f=0;f<r.length;++f){var v=r[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 x=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);(u||(u=[])).push(new Ul(b,x?null:v.from-s,v.to==null?null:v.to-s))}}return u}function Jh(r,s){if(s.full)return null;var l=T(r,s.from.line)&&Le(r,s.from.line).markedSpans,u=T(r,s.to.line)&&Le(r,s.to.line).markedSpans;if(!l&&!u)return null;var f=s.from.ch,v=s.to.ch,b=ee(s.from,s.to)==0,A=lF(l,f,b),x=cF(u,v,b),_=s.text.length==1,N=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=qa(x,X.marker);K?_&&(X.to=K.to==null?null:K.to+N):X.to=f}}if(x)for(var te=0;te<x.length;++te){var le=x[te];if(le.to!=null&&(le.to+=N),le.from==null){var me=qa(A,le.marker);me||(le.from=N,_&&(A||(A=[])).push(le))}else le.from+=N,_&&(A||(A=[])).push(le)}A&&(A=wm(A)),x&&x!=A&&(x=wm(x));var we=[A];if(!_){var Ce=s.text.length-2,De;if(Ce>0&&A)for(var Fe=0;Fe<A.length;++Fe)A[Fe].to==null&&(De||(De=[])).push(new Ul(A[Fe].marker,null,null));for(var Ie=0;Ie<Ce;++Ie)we.push(De);we.push(x)}return we}function wm(r){for(var s=0;s<r.length;++s){var l=r[s];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&r.splice(s--,1)}return r.length?r:null}function fF(r,s,l){var u=null;if(r.iter(s.line,l.line+1,function(K){if(K.markedSpans)for(var te=0;te<K.markedSpans.length;++te){var le=K.markedSpans[te].marker;le.readOnly&&(!u||Se(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),x=0;x<f.length;++x){var _=f[x];if(!(ee(_.to,A.from)<0||ee(_.from,A.to)>0)){var N=[x,1],H=ee(_.from,A.from),X=ee(_.to,A.to);(H<0||!b.inclusiveLeft&&!H)&&N.push({from:_.from,to:A.from}),(X>0||!b.inclusiveRight&&!X)&&N.push({from:A.to,to:_.to}),f.splice.apply(f,N),x+=N.length-3}}return f}function Dm(r){var s=r.markedSpans;if(s){for(var l=0;l<s.length;++l)s[l].marker.detachLine(r);r.markedSpans=null}}function Am(r,s){if(s){for(var l=0;l<s.length;++l)s[l].marker.attachLine(r);r.markedSpans=s}}function Hl(r){return r.inclusiveLeft?-1:0}function ql(r){return r.inclusiveRight?1:0}function ed(r,s){var l=r.lines.length-s.lines.length;if(l!=0)return l;var u=r.find(),f=s.find(),v=ee(u.from,f.from)||Hl(r)-Hl(s);if(v)return-v;var b=ee(u.to,f.to)||ql(r)-ql(s);return b||s.id-r.id}function xm(r,s){var l=si&&r.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||ed(u,f.marker)<0)&&(u=f.marker);return u}function Em(r){return xm(r,!0)}function jl(r){return xm(r,!1)}function hF(r,s){var l=si&&r.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||ed(u,v.marker)<0)&&(u=v.marker)}return u}function Cm(r,s,l,u,f){var v=Le(r,s),b=si&&v.markedSpans;if(b)for(var A=0;A<b.length;++A){var x=b[A];if(x.marker.collapsed){var _=x.marker.find(0),N=ee(_.from,l)||Hl(x.marker)-Hl(f),H=ee(_.to,u)||ql(x.marker)-ql(f);if(!(N>=0&&H<=0||N<=0&&H>=0)&&(N<=0&&(x.marker.inclusiveRight&&f.inclusiveLeft?ee(_.to,l)>=0:ee(_.to,l)>0)||N>=0&&(x.marker.inclusiveRight&&f.inclusiveLeft?ee(_.from,u)<=0:ee(_.from,u)<0)))return!0}}}function dr(r){for(var s;s=Em(r);)r=s.find(-1,!0).line;return r}function dF(r){for(var s;s=jl(r);)r=s.find(1,!0).line;return r}function pF(r){for(var s,l;s=jl(r);)r=s.find(1,!0).line,(l||(l=[])).push(r);return l}function td(r,s){var l=Le(r,s),u=dr(l);return l==u?s:ut(u)}function _m(r,s){if(s>r.lastLine())return s;var l=Le(r,s),u;if(!zi(r,l))return s;for(;u=jl(l);)l=u.find(1,!0).line;return ut(l)+1}function zi(r,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(r,s,u))return!0}}}function nd(r,s,l){if(l.to==null){var u=l.marker.find(1,!0);return nd(r,u.line,qa(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(r,s,f))return!0}function oi(r){r=dr(r);for(var s=0,l=r.parent,u=0;u<l.lines.length;++u){var f=l.lines[u];if(f==r)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(r){if(r.height==0)return 0;for(var s=r.text.length,l,u=r;l=Em(u);){var f=l.find(0,!0);u=f.from.line,s+=f.from.ch-f.to.ch}for(u=r;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 rd(r){var s=r.display,l=r.doc;s.maxLine=Le(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 go=function(r,s,l){this.text=r,Am(this,s),this.height=l?l(this):1};go.prototype.lineNo=function(){return ut(this)},dn(go);function gF(r,s,l,u){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),Dm(r),Am(r,l);var f=u?u(r):1;f!=r.height&&nr(r,f)}function vF(r){r.parent=null,Dm(r)}var mF={},yF={};function Sm(r,s){if(!r||/^\s*$/.test(r))return null;var l=s.addModeClass?yF:mF;return l[r]||(l[r]=r.replace(/\S+/g,"cm-$&"))}function Fm(r,s){var l=R("span",null,null,g?"padding-right: .1px":null),u={pre:R("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.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=wF,Nl(r.display.measure)&&(b=Dt(v,r.doc.direction))&&(u.addToken=AF(u.addToken,b)),u.map=[];var A=s!=r.display.externalMeasured&&ut(v);xF(v,u,dm(r,v,A)),v.styleClasses&&(v.styleClasses.bgClass&&(u.bgClass=$e(v.styleClasses.bgClass,u.bgClass||"")),v.styleClasses.textClass&&(u.textClass=$e(v.styleClasses.textClass,u.textClass||""))),u.map.length==0&&u.map.push(0,0,u.content.appendChild(Qh(r.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 x=u.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return wt(r,"renderLine",r,s.line,u.pre),u.pre.className&&(u.textClass=$e(u.pre.className,u.textClass||"")),u}function bF(r){var s=D("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function wF(r,s,l,u,f,v,b){if(s){var A=r.splitSpaces?DF(s,r.trailingSpace):s,x=r.cm.state.specialChars,_=!1,N;if(!x.test(s))r.col+=s.length,N=document.createTextNode(A),r.map.push(r.pos,r.pos+s.length,N),d&&p<9&&(_=!0),r.pos+=s.length;else{N=document.createDocumentFragment();for(var H=0;;){x.lastIndex=H;var X=x.exec(s),K=X?X.index-H:s.length-H;if(K){var te=document.createTextNode(A.slice(H,H+K));d&&p<9?N.appendChild(D("span",[te])):N.appendChild(te),r.map.push(r.pos,r.pos+K,te),r.col+=K,r.pos+=K}if(!X)break;H+=K+1;var le=void 0;if(X[0]==" "){var me=r.cm.options.tabSize,we=me-r.col%me;le=N.appendChild(D("span",ye(we),"cm-tab")),le.setAttribute("role","presentation"),le.setAttribute("cm-text"," "),r.col+=we}else X[0]=="\r"||X[0]==`
|
|
21
|
-
`?(le=N.appendChild(D("span",X[0]=="\r"?"␍":"","cm-invalidchar")),le.setAttribute("cm-text",X[0]),r.col+=1):(le=r.cm.options.specialCharPlaceholder(X[0]),le.setAttribute("cm-text",X[0]),d&&p<9?N.appendChild(D("span",[le])):N.appendChild(le),r.col+=1);r.map.push(r.pos,r.pos+1,le),r.pos++}}if(r.trailingSpace=A.charCodeAt(s.length-1)==32,l||u||f||_||v||b){var Ce=l||"";u&&(Ce+=u),f&&(Ce+=f);var De=D("span",[N],Ce,v);if(b)for(var Fe in b)b.hasOwnProperty(Fe)&&Fe!="style"&&Fe!="class"&&De.setAttribute(Fe,b[Fe]);return r.content.appendChild(De)}r.content.appendChild(N)}}function DF(r,s){if(r.length>1&&!/ /.test(r))return r;for(var l=s,u="",f=0;f<r.length;f++){var v=r.charAt(f);v==" "&&l&&(f==r.length-1||r.charCodeAt(f+1)==32)&&(v=" "),u+=v,l=v==" "}return u}function AF(r,s){return function(l,u,f,v,b,A,x){f=f?f+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+u.length;;){for(var H=void 0,X=0;X<s.length&&(H=s[X],!(H.to>_&&H.from<=_));X++);if(H.to>=N)return r(l,u,f,v,b,A,x);r(l,u.slice(0,H.to-_),f,v,null,A,x),v=null,u=u.slice(H.to-_),_=H.to}}}function $m(r,s,l,u){var f=!u&&l.widgetNode;f&&r.map.push(r.pos,r.pos+s,f),!u&&r.cm.display.input.needsContentAttribute&&(f||(f=r.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",l.id)),f&&(r.cm.display.input.setUneditable(f),r.content.appendChild(f)),r.pos+=s,r.trailingSpace=!1}function xF(r,s,l){var u=r.markedSpans,f=r.text,v=0;if(!u){for(var b=1;b<l.length;b+=2)s.addToken(s,f.slice(v,v=l[b]),Sm(l[b+1],s.cm.options));return}for(var A=f.length,x=0,_=1,N="",H,X,K=0,te,le,me,we,Ce;;){if(K==x){te=le=me=X="",Ce=null,we=null,K=1/0;for(var De=[],Fe=void 0,Ie=0;Ie<u.length;++Ie){var Oe=u[Ie],We=Oe.marker;if(We.type=="bookmark"&&Oe.from==x&&We.widgetNode)De.push(We);else if(Oe.from<=x&&(Oe.to==null||Oe.to>x||We.collapsed&&Oe.to==x&&Oe.from==x)){if(Oe.to!=null&&Oe.to!=x&&K>Oe.to&&(K=Oe.to,le=""),We.className&&(te+=" "+We.className),We.css&&(X=(X?X+";":"")+We.css),We.startStyle&&Oe.from==x&&(me+=" "+We.startStyle),We.endStyle&&Oe.to==K&&(Fe||(Fe=[])).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&&(!we||ed(we.marker,We)<0)&&(we=Oe)}else Oe.from>x&&K>Oe.from&&(K=Oe.from)}if(Fe)for(var Qt=0;Qt<Fe.length;Qt+=2)Fe[Qt+1]==K&&(le+=" "+Fe[Qt]);if(!we||we.from==x)for(var Ft=0;Ft<De.length;++Ft)$m(s,0,De[Ft]);if(we&&(we.from||0)==x){if($m(s,(we.to==null?A+1:we.to)-x,we.marker,we.from==null),we.to==null)return;we.to==x&&(we=!1)}}if(x>=A)break;for(var Nn=Math.min(A,K);;){if(N){var xn=x+N.length;if(!we){var It=xn>Nn?N.slice(0,Nn-x):N;s.addToken(s,It,H?H+te:te,me,x+It.length==K?le:"",X,Ce)}if(xn>=Nn){N=N.slice(Nn-x),x=Nn;break}x=xn,me=""}N=f.slice(v,v=l[_++]),H=Sm(l[_++],s.cm.options)}}}function Tm(r,s,l){this.line=s,this.rest=pF(s),this.size=this.rest?ut(he(this.rest))-l+1:1,this.node=this.text=null,this.hidden=zi(r,s)}function Wl(r,s,l){for(var u=[],f,v=s;v<l;v=f){var b=new Tm(r.doc,Le(r.doc,v),v);f=v+b.size,u.push(b)}return u}var vo=null;function EF(r){vo?vo.ops.push(r):r.ownsGroup=vo={ops:[r],delayedCallbacks:[]}}function CF(r){var s=r.delayedCallbacks,l=0;do{for(;l<s.length;l++)s[l].call(null);for(var u=0;u<r.ops.length;u++){var f=r.ops[u];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(l<s.length)}function _F(r,s){var l=r.ownsGroup;if(l)try{CF(l)}finally{vo=null,s(l)}}var ja=null;function Gt(r,s){var l=Ia(r,s);if(l.length){var u=Array.prototype.slice.call(arguments,2),f;vo?f=vo.delayedCallbacks:ja?f=ja:(f=ja=[],setTimeout(SF,0));for(var v=function(A){f.push(function(){return l[A].apply(null,u)})},b=0;b<l.length;++b)v(b)}}function SF(){var r=ja;ja=null;for(var s=0;s<r.length;++s)r[s]()}function km(r,s,l,u){for(var f=0;f<s.changes.length;f++){var v=s.changes[f];v=="text"?$F(r,s):v=="gutter"?Bm(r,s,l,u):v=="class"?id(r,s):v=="widget"&&TF(r,s,u)}s.changes=null}function Va(r){return r.node==r.text&&(r.node=D("div",null,null,"position: relative"),r.text.parentNode&&r.text.parentNode.replaceChild(r.node,r.text),r.node.appendChild(r.text),d&&p<8&&(r.node.style.zIndex=2)),r.node}function FF(r,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=Va(s);s.background=u.insertBefore(D("div",null,l),u.firstChild),r.display.input.setUneditable(s.background)}}function Lm(r,s){var l=r.display.externalMeasured;return l&&l.line==s.line?(r.display.externalMeasured=null,s.measure=l.measure,l.built):Fm(r,s)}function $F(r,s){var l=s.text.className,u=Lm(r,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,id(r,s)):l&&(s.text.className=l)}function id(r,s){FF(r,s),s.line.wrapClass?Va(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 Bm(r,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=Va(s);s.gutterBackground=D("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(r.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px; width: "+u.gutterTotalWidth+"px"),r.display.input.setUneditable(s.gutterBackground),f.insertBefore(s.gutterBackground,s.text)}var v=s.line.gutterMarkers;if(r.options.lineNumbers||v){var b=Va(s),A=s.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(A.setAttribute("aria-hidden","true"),r.display.input.setUneditable(A),b.insertBefore(A,s.text),s.line.gutterClass&&(A.className+=" "+s.line.gutterClass),r.options.lineNumbers&&(!v||!v["CodeMirror-linenumbers"])&&(s.lineNumber=A.appendChild(D("div",q(r.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),v)for(var x=0;x<r.display.gutterSpecs.length;++x){var _=r.display.gutterSpecs[x].className,N=v.hasOwnProperty(_)&&v[_];N&&A.appendChild(D("div",[N],"CodeMirror-gutter-elt","left: "+u.gutterLeft[_]+"px; width: "+u.gutterWidth[_]+"px"))}}}function TF(r,s,l){s.alignable&&(s.alignable=null);for(var u=Y("CodeMirror-linewidget"),f=s.node.firstChild,v=void 0;f;f=v)v=f.nextSibling,u.test(f.className)&&s.node.removeChild(f);Om(r,s,l)}function kF(r,s,l,u){var f=Lm(r,s);return s.text=s.node=f.pre,f.bgClass&&(s.bgClass=f.bgClass),f.textClass&&(s.textClass=f.textClass),id(r,s),Bm(r,s,l,u),Om(r,s,u),s.node}function Om(r,s,l){if(Pm(r,s.line,s,l,!0),s.rest)for(var u=0;u<s.rest.length;u++)Pm(r,s.rest[u],s,l,!1)}function Pm(r,s,l,u,f){if(s.widgets)for(var v=Va(l),b=0,A=s.widgets;b<A.length;++b){var x=A[b],_=D("div",[x.node],"CodeMirror-linewidget"+(x.className?" "+x.className:""));x.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),LF(x,_,l,u),r.display.input.setUneditable(_),f&&x.above?v.insertBefore(_,l.gutter||l.text):v.appendChild(_),Gt(x,"redraw")}}function LF(r,s,l,u){if(r.noHScroll){(l.alignable||(l.alignable=[])).push(s);var f=u.wrapperWidth;s.style.left=u.fixedPos+"px",r.coverGutter||(f-=u.gutterTotalWidth,s.style.paddingLeft=u.gutterTotalWidth+"px"),s.style.width=f+"px"}r.coverGutter&&(s.style.zIndex=5,s.style.position="relative",r.noHScroll||(s.style.marginLeft=-u.gutterTotalWidth+"px"))}function Wa(r){if(r.height!=null)return r.height;var s=r.doc.cm;if(!s)return 0;if(!Z(document.body,r.node)){var l="position: relative;";r.coverGutter&&(l+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),r.noHScroll&&(l+="width: "+s.display.wrapper.clientWidth+"px;"),F(s.display.measure,D("div",[r.node],null,l))}return r.height=r.node.parentNode.offsetHeight}function ai(r,s){for(var l=wn(s);l!=r.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==r.sizer&&l!=r.mover)return!0}function Gl(r){return r.lineSpace.offsetTop}function sd(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function Nm(r){if(r.cachedPaddingH)return r.cachedPaddingH;var s=F(r.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)&&(r.cachedPaddingH=u),u}function Nr(r){return vt-r.display.nativeBarWidth}function bs(r){return r.display.scroller.clientWidth-Nr(r)-r.display.barWidth}function od(r){return r.display.scroller.clientHeight-Nr(r)-r.display.barHeight}function BF(r,s,l){var u=r.options.lineWrapping,f=u&&bs(r);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 x=b[A],_=b[A+1];Math.abs(x.bottom-_.bottom)>2&&v.push((x.bottom+_.top)/2-l.top)}}v.push(l.bottom-l.top)}}function Im(r,s,l){if(r.line==s)return{map:r.measure.map,cache:r.measure.cache};if(r.rest){for(var u=0;u<r.rest.length;u++)if(r.rest[u]==s)return{map:r.measure.maps[u],cache:r.measure.caches[u]};for(var f=0;f<r.rest.length;f++)if(ut(r.rest[f])>l)return{map:r.measure.maps[f],cache:r.measure.caches[f],before:!0}}}function OF(r,s){s=dr(s);var l=ut(s),u=r.display.externalMeasured=new Tm(r.doc,s,l);u.lineN=l;var f=u.built=Fm(r,u);return u.text=f.pre,F(r.display.lineMeasure,f.pre),u}function Rm(r,s,l,u){return Ir(r,mo(r,s),l,u)}function ad(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[As(r,s)];var l=r.display.externalMeasured;if(l&&s>=l.lineN&&s<l.lineN+l.size)return l}function mo(r,s){var l=ut(s),u=ad(r,l);u&&!u.text?u=null:u&&u.changes&&(km(r,u,l,hd(r)),r.curOp.forceUpdate=!0),u||(u=OF(r,s));var f=Im(u,s,l);return{line:s,view:u,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Ir(r,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||(BF(r,s.view,s.rect),s.hasHeights=!0),b=NF(r,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 Mm={left:0,right:0,top:0,bottom:0};function zm(r,s,l){for(var u,f,v,b,A,x,_=0;_<r.length;_+=3)if(A=r[_],x=r[_+1],s<A?(f=0,v=1,b="left"):s<x?(f=s-A,v=f+1):(_==r.length-3||s==x&&r[_+3]>s)&&(v=x-A,f=v-1,s>=x&&(b="right")),f!=null){if(u=r[_+2],A==x&&l==(u.insertLeft?"left":"right")&&(b=l),l=="left"&&f==0)for(;_&&r[_-2]==r[_-3]&&r[_-1].insertLeft;)u=r[(_-=3)+2],b="left";if(l=="right"&&f==x-A)for(;_<r.length-3&&r[_+3]==r[_+4]&&!r[_+5].insertLeft;)u=r[(_+=3)+2],b="right";break}return{node:u,start:f,end:v,collapse:b,coverStart:A,coverEnd:x}}function PF(r,s){var l=Mm;if(s=="left")for(var u=0;u<r.length&&(l=r[u]).left==l.right;u++);else for(var f=r.length-1;f>=0&&(l=r[f]).left==l.right;f--);return l}function NF(r,s,l,u){var f=zm(s.map,l,u),v=f.node,b=f.start,A=f.end,x=f.collapse,_;if(v.nodeType==3){for(var N=0;N<4;N++){for(;b&&tt(s.line.text.charAt(f.coverStart+b));)--b;for(;f.coverStart+A<f.coverEnd&&tt(s.line.text.charAt(f.coverStart+A));)++A;if(d&&p<9&&b==0&&A==f.coverEnd-f.coverStart?_=v.parentNode.getBoundingClientRect():_=PF(V(v,b,A).getClientRects(),u),_.left||_.right||b==0)break;A=b,b=b-1,x="right"}d&&p<11&&(_=IF(r.display.measure,_))}else{b>0&&(x=u="right");var H;r.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+bo(r.display),top:X.top,bottom:X.bottom}:_=Mm}for(var K=_.top-s.rect.top,te=_.bottom-s.rect.top,le=(K+te)/2,me=s.view.measure.heights,we=0;we<me.length-1&&!(le<me[we]);we++);var Ce=we?me[we-1]:0,De=me[we],Fe={left:(x=="right"?_.right:_.left)-s.rect.left,right:(x=="left"?_.left:_.right)-s.rect.left,top:Ce,bottom:De};return!_.left&&!_.right&&(Fe.bogus=!0),r.options.singleCursorHeightPerLine||(Fe.rtop=K,Fe.rbottom=te),Fe}function IF(r,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Il(r))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 Um(r){if(r.measure&&(r.measure.cache={},r.measure.heights=null,r.rest))for(var s=0;s<r.rest.length;s++)r.measure.caches[s]={}}function Hm(r){r.display.externalMeasure=null,P(r.display.lineMeasure);for(var s=0;s<r.display.view.length;s++)Um(r.display.view[s])}function Ga(r){Hm(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function qm(r){return m&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function jm(r){return m&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function ud(r){var s=dr(r),l=s.widgets,u=0;if(l)for(var f=0;f<l.length;++f)l[f].above&&(u+=Wa(l[f]));return u}function Kl(r,s,l,u,f){if(!f){var v=ud(s);l.top+=v,l.bottom+=v}if(u=="line")return l;u||(u="local");var b=oi(s);if(u=="local"?b+=Gl(r.display):b-=r.display.viewOffset,u=="page"||u=="window"){var A=r.display.lineSpace.getBoundingClientRect();b+=A.top+(u=="window"?0:jm(ze(r)));var x=A.left+(u=="window"?0:qm(ze(r)));l.left+=x,l.right+=x}return l.top+=b,l.bottom+=b,l}function Vm(r,s,l){if(l=="div")return s;var u=s.left,f=s.top;if(l=="page")u-=qm(ze(r)),f-=jm(ze(r));else if(l=="local"||!l){var v=r.display.sizer.getBoundingClientRect();u+=v.left,f+=v.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:u-b.left,top:f-b.top}}function Xl(r,s,l,u,f){return u||(u=Le(r.doc,s.line)),Kl(r,u,Rm(r,u,s.ch,f),l)}function pr(r,s,l,u,f,v){u=u||Le(r.doc,s.line),f||(f=mo(r,u));function b(te,le){var me=Ir(r,f,te,le?"right":"left",v);return le?me.left=me.right:me.right=me.left,Kl(r,u,me,l)}var A=Dt(u,r.doc.direction),x=s.ch,_=s.sticky;if(x>=u.text.length?(x=u.text.length,_="before"):x<=0&&(x=0,_="after"),!A)return b(_=="before"?x-1:x,_=="before");function N(te,le,me){var we=A[le],Ce=we.level==1;return b(me?te-1:te,Ce!=me)}var H=tn(A,x,_),X=Vn,K=N(x,H,_=="before");return X!=null&&(K.other=N(x,X,_!="before")),K}function Wm(r,s){var l=0;s=He(r.doc,s),r.options.lineWrapping||(l=bo(r.display)*s.ch);var u=Le(r.doc,s.line),f=oi(u)+Gl(r.display);return{left:l,right:l,top:f,bottom:f+u.height}}function ld(r,s,l,u,f){var v=W(r,s,l);return v.xRel=f,u&&(v.outside=u),v}function cd(r,s,l){var u=r.doc;if(l+=r.display.viewOffset,l<0)return ld(u.first,0,null,-1,-1);var f=Or(u,l),v=u.first+u.size-1;if(f>v)return ld(u.first+u.size-1,Le(u,v).text.length,null,1,1);s<0&&(s=0);for(var b=Le(u,f);;){var A=RF(r,b,f,s,l),x=hF(b,A.ch+(A.xRel>0||A.outside>0?1:0));if(!x)return A;var _=x.find(1);if(_.line==f)return _;b=Le(u,f=_.line)}}function Gm(r,s,l,u){u-=ud(s);var f=s.text.length,v=et(function(b){return Ir(r,l,b-1).bottom<=u},f,0);return f=et(function(b){return Ir(r,l,b).top>u},v,f),{begin:v,end:f}}function Km(r,s,l,u){l||(l=mo(r,s));var f=Kl(r,s,Ir(r,l,u),"line").top;return Gm(r,s,l,f)}function fd(r,s,l,u){return r.bottom<=l?!1:r.top>l?!0:(u?r.left:r.right)>s}function RF(r,s,l,u,f){f-=oi(s);var v=mo(r,s),b=ud(s),A=0,x=s.text.length,_=!0,N=Dt(s,r.doc.direction);if(N){var H=(r.options.lineWrapping?zF:MF)(r,s,l,v,N,u,f);_=H.level!=1,A=_?H.from:H.to-1,x=_?H.to:H.from-1}var X=null,K=null,te=et(function(Ie){var Oe=Ir(r,v,Ie);return Oe.top+=b,Oe.bottom+=b,fd(Oe,u,f,!1)?(Oe.top<=f&&Oe.left<=u&&(X=Ie,K=Oe),!0):!1},A,x),le,me,we=!1;if(K){var Ce=u-K.left<K.right-u,De=Ce==_;te=X+(De?0:1),me=De?"after":"before",le=Ce?K.left:K.right}else{!_&&(te==x||te==A)&&te++,me=te==0?"after":te==s.text.length?"before":Ir(r,v,te-(_?1:0)).bottom+b<=f==_?"after":"before";var Fe=pr(r,W(l,te,me),"line",s,v);le=Fe.left,we=f<Fe.top?-1:f>=Fe.bottom?1:0}return te=ft(s.text,te,1),ld(l,te,me,we,u-le)}function MF(r,s,l,u,f,v,b){var A=et(function(H){var X=f[H],K=X.level!=1;return fd(pr(r,W(l,K?X.to:X.from,K?"before":"after"),"line",s,u),v,b,!0)},0,f.length-1),x=f[A];if(A>0){var _=x.level!=1,N=pr(r,W(l,_?x.from:x.to,_?"after":"before"),"line",s,u);fd(N,v,b,!0)&&N.top>b&&(x=f[A-1])}return x}function zF(r,s,l,u,f,v,b){var A=Gm(r,s,u,b),x=A.begin,_=A.end;/\s/.test(s.text.charAt(_-1))&&_--;for(var N=null,H=null,X=0;X<f.length;X++){var K=f[X];if(!(K.from>=_||K.to<=x)){var te=K.level!=1,le=Ir(r,u,te?Math.min(_,K.to)-1:Math.max(x,K.from)).right,me=le<v?v-le+1e9:le-v;(!N||H>me)&&(N=K,H=me)}}return N||(N=f[f.length-1]),N.from<x&&(N={from:x,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var ws;function yo(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(ws==null){ws=D("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)ws.appendChild(document.createTextNode("x")),ws.appendChild(D("br"));ws.appendChild(document.createTextNode("x"))}F(r.measure,ws);var l=ws.offsetHeight/50;return l>3&&(r.cachedTextHeight=l),P(r.measure),l||1}function bo(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var s=D("span","xxxxxxxxxx"),l=D("pre",[s],"CodeMirror-line-like");F(r.measure,l);var u=s.getBoundingClientRect(),f=(u.right-u.left)/10;return f>2&&(r.cachedCharWidth=f),f||10}function hd(r){for(var s=r.display,l={},u={},f=s.gutters.clientLeft,v=s.gutters.firstChild,b=0;v;v=v.nextSibling,++b){var A=r.display.gutterSpecs[b].className;l[A]=v.offsetLeft+v.clientLeft+f,u[A]=v.clientWidth}return{fixedPos:dd(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:l,gutterWidth:u,wrapperWidth:s.wrapper.clientWidth}}function dd(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Xm(r){var s=yo(r.display),l=r.options.lineWrapping,u=l&&Math.max(5,r.display.scroller.clientWidth/bo(r.display)-3);return function(f){if(zi(r.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 pd(r){var s=r.doc,l=Xm(r);s.iter(function(u){var f=l(u);f!=u.height&&nr(u,f)})}function Ds(r,s,l,u){var f=r.display;if(!l&&wn(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 x=cd(r,v,b),_;if(u&&x.xRel>0&&(_=Le(r.doc,x.line).text).length==x.ch){var N=J(_,_.length,r.options.tabSize)-_.length;x=W(x.line,Math.max(0,Math.round((v-Nm(r.display).left)/bo(r.display))-N))}return x}function As(r,s){if(s>=r.display.viewTo||(s-=r.display.viewFrom,s<0))return null;for(var l=r.display.view,u=0;u<l.length;u++)if(s-=l[u].size,s<0)return u}function Dn(r,s,l,u){s==null&&(s=r.doc.first),l==null&&(l=r.doc.first+r.doc.size),u||(u=0);var f=r.display;if(u&&l<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>s)&&(f.updateLineNumbers=s),r.curOp.viewChanged=!0,s>=f.viewTo)si&&td(r.doc,s)<f.viewTo&&Hi(r);else if(l<=f.viewFrom)si&&_m(r.doc,l+u)>f.viewFrom?Hi(r):(f.viewFrom+=u,f.viewTo+=u);else if(s<=f.viewFrom&&l>=f.viewTo)Hi(r);else if(s<=f.viewFrom){var v=Ql(r,l,l+u,1);v?(f.view=f.view.slice(v.index),f.viewFrom=v.lineN,f.viewTo+=u):Hi(r)}else if(l>=f.viewTo){var b=Ql(r,s,s,-1);b?(f.view=f.view.slice(0,b.index),f.viewTo=b.lineN):Hi(r)}else{var A=Ql(r,s,s,-1),x=Ql(r,l,l+u,1);A&&x?(f.view=f.view.slice(0,A.index).concat(Wl(r,A.lineN,x.lineN)).concat(f.view.slice(x.index)),f.viewTo+=u):Hi(r)}var _=f.externalMeasured;_&&(l<_.lineN?_.lineN+=u:s<_.lineN+_.size&&(f.externalMeasured=null))}function Ui(r,s,l){r.curOp.viewChanged=!0;var u=r.display,f=r.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[As(r,s)];if(v.node!=null){var b=v.changes||(v.changes=[]);Se(b,l)==-1&&b.push(l)}}}function Hi(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function Ql(r,s,l,u){var f=As(r,s),v,b=r.display.view;if(!si||l==r.doc.first+r.doc.size)return{index:f,lineN:l};for(var A=r.display.viewFrom,x=0;x<f;x++)A+=b[x].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(;td(r.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 UF(r,s,l){var u=r.display,f=u.view;f.length==0||s>=u.viewTo||l<=u.viewFrom?(u.view=Wl(r,s,l),u.viewFrom=s):(u.viewFrom>s?u.view=Wl(r,s,u.viewFrom).concat(u.view):u.viewFrom<s&&(u.view=u.view.slice(As(r,s))),u.viewFrom=s,u.viewTo<l?u.view=u.view.concat(Wl(r,u.viewTo,l)):u.viewTo>l&&(u.view=u.view.slice(0,As(r,l)))),u.viewTo=l}function Qm(r){for(var s=r.display.view,l=0,u=0;u<s.length;u++){var f=s[u];!f.hidden&&(!f.node||f.changes)&&++l}return l}function Ka(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Ym(r,s){s===void 0&&(s=!0);var l=r.doc,u={},f=u.cursors=document.createDocumentFragment(),v=u.selection=document.createDocumentFragment(),b=r.options.$customCursor;b&&(s=!0);for(var A=0;A<l.sel.ranges.length;A++)if(!(!s&&A==l.sel.primIndex)){var x=l.sel.ranges[A];if(!(x.from().line>=r.display.viewTo||x.to().line<r.display.viewFrom)){var _=x.empty();if(b){var N=b(r,x);N&&gd(r,N,f)}else(_||r.options.showCursorWhenSelecting)&&gd(r,x.head,f);_||HF(r,x,v)}}return u}function gd(r,s,l){var u=pr(r,s,"div",null,null,!r.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)*r.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(r.getWrapperElement().className)){var v=Xl(r,s,"div",null,null),b=v.right-v.left;f.style.width=(b>0?b:r.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(r,s){return r.top-s.top||r.left-s.left}function HF(r,s,l){var u=r.display,f=r.doc,v=document.createDocumentFragment(),b=Nm(r.display),A=b.left,x=Math.max(u.sizerWidth,bs(r)-u.sizer.offsetLeft)-b.right,_=f.direction=="ltr";function N(De,Fe,Ie,Oe){Fe<0&&(Fe=0),Fe=Math.round(Fe),Oe=Math.round(Oe),v.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+De+`px;
|
|
22
|
-
top: `+Fe+"px; width: "+(Ie??x-De)+`px;
|
|
23
|
-
height: `+(Oe-Fe)+"px"))}function H(De,Fe,Ie){var Oe=Le(f,De),We=Oe.text.length,mt,Qt;function Ft(It,En){return Xl(r,W(De,It),"div",Oe,En)}function Nn(It,En,nn){var jt=Km(r,Oe,null,It),Rt=En=="ltr"==(nn=="after")?"left":"right",Lt=nn=="after"?jt.begin:jt.end-(/\s/.test(Oe.text.charAt(jt.end-1))?2:1);return Ft(Lt,Rt)[Rt]}var xn=Dt(Oe,f.direction);return Bn(xn,Fe||0,Ie??We,function(It,En,nn,jt){var Rt=nn=="ltr",Lt=Ft(It,Rt?"left":"right"),Cn=Ft(En-1,Rt?"right":"left"),Lo=Fe==null&&It==0,Ki=Ie==null&&En==We,ln=jt==0,Rr=!xn||jt==xn.length-1;if(Cn.top-Lt.top<=3){var Yt=(_?Lo:Ki)&&ln,Hd=(_?Ki:Lo)&&Rr,ci=Yt?A:(Rt?Lt:Cn).left,Ss=Hd?x:(Rt?Cn:Lt).right;N(ci,Lt.top,Ss-ci,Lt.bottom)}else{var Fs,gn,Bo,qd;Rt?(Fs=_&&Lo&&ln?A:Lt.left,gn=_?x:Nn(It,nn,"before"),Bo=_?A:Nn(En,nn,"after"),qd=_&&Ki&&Rr?x:Cn.right):(Fs=_?Nn(It,nn,"before"):A,gn=!_&&Lo&&ln?x:Lt.right,Bo=!_&&Ki&&Rr?A:Cn.left,qd=_?Nn(En,nn,"after"):x),N(Fs,Lt.top,gn-Fs,Lt.bottom),Lt.bottom<Cn.top&&N(A,Lt.bottom,null,Cn.top),N(Bo,Cn.top,qd-Bo,Cn.bottom)}(!mt||Yl(Lt,mt)<0)&&(mt=Lt),Yl(Cn,mt)<0&&(mt=Cn),(!Qt||Yl(Lt,Qt)<0)&&(Qt=Lt),Yl(Cn,Qt)<0&&(Qt=Cn)}),{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 te=Le(f,X.line),le=Le(f,K.line),me=dr(te)==dr(le),we=H(X.line,X.ch,me?te.text.length+1:null).end,Ce=H(K.line,me?0:null,K.ch).start;me&&(we.top<Ce.top-2?(N(we.right,we.top,null,we.bottom),N(A,Ce.top,Ce.left,Ce.bottom)):N(we.right,we.top,Ce.left-we.right,we.bottom)),we.bottom<Ce.top&&N(A,we.bottom,null,Ce.top)}l.appendChild(v)}function vd(r){if(r.state.focused){var s=r.display;clearInterval(s.blinker);var l=!0;s.cursorDiv.style.visibility="",r.options.cursorBlinkRate>0?s.blinker=setInterval(function(){r.hasFocus()||wo(r),s.cursorDiv.style.visibility=(l=!l)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function Zm(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||yd(r))}function md(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&wo(r))},100)}function yd(r,s){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(wt(r,"focus",r,s),r.state.focused=!0,ge(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),g&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),vd(r))}function wo(r,s){r.state.delayingBlurEvent||(r.state.focused&&(wt(r,"blur",r,s),r.state.focused=!1,z(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function Zl(r){for(var s=r.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],x=r.options.lineWrapping,_=void 0,N=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,!x&&A.text.firstChild&&(N=A.text.firstChild.getBoundingClientRect().right-X.left-1)}var K=A.line.height-_;if((K>.005||K<-.005)&&(f<u&&(v-=K),nr(A.line,_),Jm(A.line),A.rest))for(var te=0;te<A.rest.length;te++)Jm(A.rest[te]);if(N>r.display.sizerWidth){var le=Math.ceil(N/bo(r.display));le>r.display.maxLineLength&&(r.display.maxLineLength=le,r.display.maxLine=A.line,r.display.maxLineChanged=!0)}}}Math.abs(v)>2&&(s.scroller.scrollTop+=v)}function Jm(r){if(r.widgets)for(var s=0;s<r.widgets.length;++s){var l=r.widgets[s],u=l.node.parentNode;u&&(l.height=u.offsetHeight)}}function Jl(r,s,l){var u=l&&l.top!=null?Math.max(0,l.top):r.scroller.scrollTop;u=Math.floor(u-Gl(r));var f=l&&l.bottom!=null?l.bottom:u+r.wrapper.clientHeight,v=Or(s,u),b=Or(s,f);if(l&&l.ensure){var A=l.ensure.from.line,x=l.ensure.to.line;A<v?(v=A,b=Or(s,oi(Le(s,A))+r.wrapper.clientHeight)):Math.min(x,s.lastLine())>=b&&(v=Or(s,oi(Le(s,x))-r.wrapper.clientHeight),b=x)}return{from:v,to:Math.max(b,v+1)}}function qF(r,s){if(!Tt(r,"scrollCursorIntoView")){var l=r.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(r.display))+`px;
|
|
25
|
-
height: `+(s.bottom-s.top+Nr(r)+l.barHeight)+`px;
|
|
26
|
-
left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(f),r.display.lineSpace.removeChild(b)}}}function jF(r,s,l,u){u==null&&(u=0);var f;!r.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=pr(r,s),x=!l||l==s?A:pr(r,l);f={left:Math.min(A.left,x.left),top:Math.min(A.top,x.top)-u,right:Math.max(A.left,x.left),bottom:Math.max(A.bottom,x.bottom)+u};var _=bd(r,f),N=r.doc.scrollTop,H=r.doc.scrollLeft;if(_.scrollTop!=null&&(Qa(r,_.scrollTop),Math.abs(r.doc.scrollTop-N)>1&&(b=!0)),_.scrollLeft!=null&&(xs(r,_.scrollLeft),Math.abs(r.doc.scrollLeft-H)>1&&(b=!0)),!b)break}return f}function VF(r,s){var l=bd(r,s);l.scrollTop!=null&&Qa(r,l.scrollTop),l.scrollLeft!=null&&xs(r,l.scrollLeft)}function bd(r,s){var l=r.display,u=yo(r.display);s.top<0&&(s.top=0);var f=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:l.scroller.scrollTop,v=od(r),b={};s.bottom-s.top>v&&(s.bottom=s.top+v);var A=r.doc.height+sd(l),x=s.top<u,_=s.bottom>A-u;if(s.top<f)b.scrollTop=x?0:s.top;else if(s.bottom>f+v){var N=Math.min(s.top,(_?A:s.bottom)-v);N!=f&&(b.scrollTop=N)}var H=r.options.fixedGutter?0:l.gutters.offsetWidth,X=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:l.scroller.scrollLeft-H,K=bs(r)-l.gutters.offsetWidth,te=s.right-s.left>K;return te&&(s.right=s.left+K),s.left<10?b.scrollLeft=0:s.left<X?b.scrollLeft=Math.max(0,s.left+H-(te?0:10)):s.right>K+X-3&&(b.scrollLeft=s.right+(te?0:10)-K),b}function wd(r,s){s!=null&&(ec(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function Do(r){ec(r);var s=r.getCursor();r.curOp.scrollToPos={from:s,to:s,margin:r.options.cursorScrollMargin}}function Xa(r,s,l){(s!=null||l!=null)&&ec(r),s!=null&&(r.curOp.scrollLeft=s),l!=null&&(r.curOp.scrollTop=l)}function WF(r,s){ec(r),r.curOp.scrollToPos=s}function ec(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var l=Wm(r,s.from),u=Wm(r,s.to);ey(r,l,u,s.margin)}}function ey(r,s,l,u){var f=bd(r,{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});Xa(r,f.scrollLeft,f.scrollTop)}function Qa(r,s){Math.abs(r.doc.scrollTop-s)<2||(o||Ad(r,{top:s}),ty(r,s,!0),o&&Ad(r),Ja(r,100))}function ty(r,s,l){s=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,s)),!(r.display.scroller.scrollTop==s&&!l)&&(r.doc.scrollTop=s,r.display.scrollbars.setScrollTop(s),r.display.scroller.scrollTop!=s&&(r.display.scroller.scrollTop=s))}function xs(r,s,l,u){s=Math.max(0,Math.min(s,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((l?s==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-s)<2)&&!u)&&(r.doc.scrollLeft=s,oy(r),r.display.scroller.scrollLeft!=s&&(r.display.scroller.scrollLeft=s),r.display.scrollbars.setScrollLeft(s))}function Ya(r){var s=r.display,l=s.gutters.offsetWidth,u=Math.round(r.doc.height+sd(r.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:r.options.fixedGutter?l:0,docHeight:u,scrollHeight:u+Nr(r)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:l}}var Es=function(r,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,r(u),r(f),Ae(u,"scroll",function(){u.clientHeight&&s(u.scrollTop,"vertical")}),Ae(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(r){var s=r.scrollWidth>r.clientWidth+1,l=r.scrollHeight>r.clientHeight+1,u=r.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=s?u+"px":"0";var f=r.viewHeight-(s?u:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.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=r.barLeft+"px";var v=r.viewWidth-r.barLeft-(l?u:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+v)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(u==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?u:0,bottom:s?u:0}},Es.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Es.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Es.prototype.zeroWidthHack=function(){var r=k&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new fe,this.disableVert=new fe},Es.prototype.enableZeroWidthBar=function(r,s,l){r.style.visibility="";function u(){var f=r.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!=r?r.style.visibility="hidden":s.set(1e3,u)}s.set(1e3,u)},Es.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var Za=function(){};Za.prototype.update=function(){return{bottom:0,right:0}},Za.prototype.setScrollLeft=function(){},Za.prototype.setScrollTop=function(){},Za.prototype.clear=function(){};function Ao(r,s){s||(s=Ya(r));var l=r.display.barWidth,u=r.display.barHeight;ny(r,s);for(var f=0;f<4&&l!=r.display.barWidth||u!=r.display.barHeight;f++)l!=r.display.barWidth&&r.options.lineWrapping&&Zl(r),ny(r,Ya(r)),l=r.display.barWidth,u=r.display.barHeight}function ny(r,s){var l=r.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&&r.options.coverGutterNextToScrollbar&&r.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 ry={native:Es,null:Za};function iy(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&z(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new ry[r.options.scrollbarStyle](function(s){r.display.wrapper.insertBefore(s,r.display.scrollbarFiller),Ae(s,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,l){l=="horizontal"?xs(r,s):Qa(r,s)},r),r.display.scrollbars.addClass&&ge(r.display.wrapper,r.display.scrollbars.addClass)}var GF=0;function Cs(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.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:++GF,markArrays:null},EF(r.curOp)}function _s(r){var s=r.curOp;s&&_F(s,function(l){for(var u=0;u<l.ops.length;u++)l.ops[u].cm.curOp=null;KF(l)})}function KF(r){for(var s=r.ops,l=0;l<s.length;l++)XF(s[l]);for(var u=0;u<s.length;u++)QF(s[u]);for(var f=0;f<s.length;f++)YF(s[f]);for(var v=0;v<s.length;v++)ZF(s[v]);for(var b=0;b<s.length;b++)JF(s[b])}function XF(r){var s=r.cm,l=s.display;t2(s),r.updateMaxLine&&rd(s),r.mustUpdate=r.viewChanged||r.forceUpdate||r.scrollTop!=null||r.scrollToPos&&(r.scrollToPos.from.line<l.viewFrom||r.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&s.options.lineWrapping,r.update=r.mustUpdate&&new tc(s,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function QF(r){r.updatedDisplay=r.mustUpdate&&Dd(r.cm,r.update)}function YF(r){var s=r.cm,l=s.display;r.updatedDisplay&&Zl(s),r.barMeasure=Ya(s),l.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=Rm(s,l.maxLine,l.maxLine.text.length).left+3,s.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+r.adjustWidthTo+Nr(s)+s.display.barWidth),r.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+r.adjustWidthTo-bs(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=l.input.prepareSelection())}function ZF(r){var s=r.cm;r.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<s.doc.scrollLeft&&xs(s,Math.min(s.display.scroller.scrollLeft,r.maxScrollLeft),!0),s.display.maxLineChanged=!1);var l=r.focus&&r.focus==ue(ze(s));r.preparedSelection&&s.display.input.showSelection(r.preparedSelection,l),(r.updatedDisplay||r.startHeight!=s.doc.height)&&Ao(s,r.barMeasure),r.updatedDisplay&&Ed(s,r.barMeasure),r.selectionChanged&&vd(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),l&&Zm(r.cm)}function JF(r){var s=r.cm,l=s.display,u=s.doc;if(r.updatedDisplay&&sy(s,r.update),l.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),r.scrollTop!=null&&ty(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&xs(s,r.scrollLeft,!0,!0),r.scrollToPos){var f=jF(s,He(u,r.scrollToPos.from),He(u,r.scrollToPos.to),r.scrollToPos.margin);qF(s,f)}var v=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(v)for(var A=0;A<v.length;++A)v[A].lines.length||wt(v[A],"hide");if(b)for(var x=0;x<b.length;++x)b[x].lines.length&&wt(b[x],"unhide");l.wrapper.offsetHeight&&(u.scrollTop=s.display.scroller.scrollTop),r.changeObjs&&wt(s,"changes",s,r.changeObjs),r.update&&r.update.finish()}function Pn(r,s){if(r.curOp)return s();Cs(r);try{return s()}finally{_s(r)}}function Kt(r,s){return function(){if(r.curOp)return s.apply(r,arguments);Cs(r);try{return s.apply(r,arguments)}finally{_s(r)}}}function pn(r){return function(){if(this.curOp)return r.apply(this,arguments);Cs(this);try{return r.apply(this,arguments)}finally{_s(this)}}}function Xt(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);Cs(s);try{return r.apply(this,arguments)}finally{_s(s)}}}function Ja(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,ie(e2,r))}function e2(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var l=+new Date+r.options.workTime,u=Ha(r,s.highlightFrontier),f=[];s.iter(u.line,Math.min(s.first+s.size,r.display.viewTo+500),function(v){if(u.line>=r.display.viewFrom){var b=v.styles,A=v.text.length>r.options.maxHighlightLength?ri(s.mode,u.state):null,x=hm(r,v,u,!0);A&&(u.state=A),v.styles=x.styles;var _=v.styleClasses,N=x.classes;N?v.styleClasses=N:_&&(v.styleClasses=null);for(var H=!b||b.length!=v.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.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<=r.options.maxHighlightLength&&Yh(r,v.text,u),v.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>l)return Ja(r,r.options.workDelay),!0}),s.highlightFrontier=u.line,s.modeFrontier=Math.max(s.modeFrontier,u.line),f.length&&Pn(r,function(){for(var v=0;v<f.length;v++)Ui(r,f[v],"text")})}}var tc=function(r,s,l){var u=r.display;this.viewport=s,this.visible=Jl(u,r.doc,s),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=bs(r),this.force=l,this.dims=hd(r),this.events=[]};tc.prototype.signal=function(r,s){hn(r,s)&&this.events.push(arguments)},tc.prototype.finish=function(){for(var r=0;r<this.events.length;r++)wt.apply(null,this.events[r])};function t2(r){var s=r.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=Nr(r)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=Nr(r)+"px",s.scrollbarsClipped=!0)}function n2(r){if(r.hasFocus())return null;var s=ue(ze(r));if(!s||!Z(r.display.lineDiv,s))return null;var l={activeElt:s};if(window.getSelection){var u=Xe(r).getSelection();u.anchorNode&&u.extend&&Z(r.display.lineDiv,u.anchorNode)&&(l.anchorNode=u.anchorNode,l.anchorOffset=u.anchorOffset,l.focusNode=u.focusNode,l.focusOffset=u.focusOffset)}return l}function r2(r){if(!(!r||!r.activeElt||r.activeElt==ue(r.activeElt.ownerDocument))&&(r.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(r.activeElt.nodeName)&&r.anchorNode&&Z(document.body,r.anchorNode)&&Z(document.body,r.focusNode))){var s=r.activeElt.ownerDocument,l=s.defaultView.getSelection(),u=s.createRange();u.setEnd(r.anchorNode,r.anchorOffset),u.collapse(!1),l.removeAllRanges(),l.addRange(u),l.extend(r.focusNode,r.focusOffset)}}function Dd(r,s){var l=r.display,u=r.doc;if(s.editorIsHidden)return Hi(r),!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&&Qm(r)==0)return!1;ay(r)&&(Hi(r),s.dims=hd(r));var f=u.first+u.size,v=Math.max(s.visible.from-r.options.viewportMargin,u.first),b=Math.min(f,s.visible.to+r.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=td(r.doc,v),b=_m(r.doc,b));var A=v!=l.viewFrom||b!=l.viewTo||l.lastWrapHeight!=s.wrapperHeight||l.lastWrapWidth!=s.wrapperWidth;UF(r,v,b),l.viewOffset=oi(Le(r.doc,l.viewFrom)),r.display.mover.style.top=l.viewOffset+"px";var x=Qm(r);if(!A&&x==0&&!s.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=n2(r);return x>4&&(l.lineDiv.style.display="none"),i2(r,l.updateLineNumbers,s.dims),x>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,r2(_),P(l.cursorDiv),P(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,A&&(l.lastWrapHeight=s.wrapperHeight,l.lastWrapWidth=s.wrapperWidth,Ja(r,400)),l.updateLineNumbers=null,!0}function sy(r,s){for(var l=s.viewport,u=!0;;u=!1){if(!u||!r.options.lineWrapping||s.oldDisplayWidth==bs(r)){if(l&&l.top!=null&&(l={top:Math.min(r.doc.height+sd(r.display)-od(r),l.top)}),s.visible=Jl(r.display,r.doc,l),s.visible.from>=r.display.viewFrom&&s.visible.to<=r.display.viewTo)break}else u&&(s.visible=Jl(r.display,r.doc,l));if(!Dd(r,s))break;Zl(r);var f=Ya(r);Ka(r),Ao(r,f),Ed(r,f),s.force=!1}s.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(s.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function Ad(r,s){var l=new tc(r,s);if(Dd(r,l)){Zl(r),sy(r,l);var u=Ya(r);Ka(r),Ao(r,u),Ed(r,u),l.finish()}}function i2(r,s,l){var u=r.display,f=r.options.lineNumbers,v=u.lineDiv,b=v.firstChild;function A(te){var le=te.nextSibling;return g&&k&&r.display.currentWheelTarget==te?te.style.display="none":te.parentNode.removeChild(te),le}for(var x=u.view,_=u.viewFrom,N=0;N<x.length;N++){var H=x[N];if(!H.hidden)if(!H.node||H.node.parentNode!=v){var X=kF(r,H,_,l);v.insertBefore(X,b)}else{for(;b!=H.node;)b=A(b);var K=f&&s!=null&&s<=_&&H.lineNumber;H.changes&&(Se(H.changes,"gutter")>-1&&(K=!1),km(r,H,_,l)),K&&(P(H.lineNumber),H.lineNumber.appendChild(document.createTextNode(q(r.options,_)))),b=H.node.nextSibling}_+=H.size}for(;b;)b=A(b)}function xd(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",Gt(r,"gutterChanged",r)}function Ed(r,s){r.display.sizer.style.minHeight=s.docHeight+"px",r.display.heightForcer.style.top=s.docHeight+"px",r.display.gutters.style.height=s.docHeight+r.display.barHeight+Nr(r)+"px"}function oy(r){var s=r.display,l=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var u=dd(s)-s.scroller.scrollLeft+r.doc.scrollLeft,f=s.gutters.offsetWidth,v=u+"px",b=0;b<l.length;b++)if(!l[b].hidden){r.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 x=0;x<A.length;x++)A[x].style.left=v}r.options.fixedGutter&&(s.gutters.style.left=u+f+"px")}}function ay(r){if(!r.options.lineNumbers)return!1;var s=r.doc,l=q(r.options,s.first+s.size-1),u=r.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(r.display),!0}return!1}function Cd(r,s){for(var l=[],u=!1,f=0;f<r.length;f++){var v=r[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 uy(r){var s=r.gutters,l=r.gutterSpecs;P(s),r.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"&&(r.lineGutter=A,A.style.width=(r.lineNumWidth||1)+"px")}s.style.display=l.length?"":"none",xd(r)}function eu(r){uy(r.display),Dn(r),oy(r)}function s2(r,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=R("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=R("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var v=R("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: "+vt+"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&&B)&&(f.scroller.draggable=!0),r&&(r.appendChild?r.appendChild(f.wrapper):r(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=Cd(u.gutters,u.lineNumbers),uy(f),l.init(f)}var nc=0,ui=null;d?ui=-.53:o?ui=15:m?ui=-.7:L&&(ui=-1/3);function ly(r){var s=r.wheelDeltaX,l=r.wheelDeltaY;return s==null&&r.detail&&r.axis==r.HORIZONTAL_AXIS&&(s=r.detail),l==null&&r.detail&&r.axis==r.VERTICAL_AXIS?l=r.detail:l==null&&(l=r.wheelDelta),{x:s,y:l}}function o2(r){var s=ly(r);return s.x*=ui,s.y*=ui,s}function cy(r,s){m&&w==102&&(r.display.chromeScrollHack==null?r.display.sizer.style.pointerEvents="none":clearTimeout(r.display.chromeScrollHack),r.display.chromeScrollHack=setTimeout(function(){r.display.chromeScrollHack=null,r.display.sizer.style.pointerEvents=""},100));var l=ly(s),u=l.x,f=l.y,v=ui;s.deltaMode===0&&(u=s.deltaX,f=s.deltaY,v=1);var b=r.display,A=b.scroller,x=A.scrollWidth>A.clientWidth,_=A.scrollHeight>A.clientHeight;if(u&&x||f&&_){if(f&&k&&g){e:for(var N=s.target,H=b.view;N!=A;N=N.parentNode)for(var X=0;X<H.length;X++)if(H[X].node==N){r.display.currentWheelTarget=N;break e}}if(u&&!o&&!$&&v!=null){f&&_&&Qa(r,Math.max(0,A.scrollTop+f*v)),xs(r,Math.max(0,A.scrollLeft+u*v)),(!f||f&&_)&&an(s),b.wheelStartX=null;return}if(f&&v!=null){var K=f*v,te=r.doc.scrollTop,le=te+b.wrapper.clientHeight;K<0?te=Math.max(0,te+K-50):le=Math.min(r.doc.height,le+K+50),Ad(r,{top:te,bottom:le})}nc<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,we=A.scrollTop-b.wheelStartY,Ce=we&&b.wheelDY&&we/b.wheelDY||me&&b.wheelDX&&me/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ce&&(ui=(ui*nc+Ce)/(nc+1),++nc)}},200)):(b.wheelDX+=u,b.wheelDY+=f))}}var Gn=function(r,s){this.ranges=r,this.primIndex=s};Gn.prototype.primary=function(){return this.ranges[this.primIndex]},Gn.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var l=this.ranges[s],u=r.ranges[s];if(!Ue(l.anchor,u.anchor)||!Ue(l.head,u.head))return!1}return!0},Gn.prototype.deepCopy=function(){for(var r=[],s=0;s<this.ranges.length;s++)r[s]=new lt(Qe(this.ranges[s].anchor),Qe(this.ranges[s].head));return new Gn(r,this.primIndex)},Gn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},Gn.prototype.contains=function(r,s){s||(s=r);for(var l=0;l<this.ranges.length;l++){var u=this.ranges[l];if(ee(s,u.from())>=0&&ee(r,u.to())<=0)return l}return-1};var lt=function(r,s){this.anchor=r,this.head=s};lt.prototype.from=function(){return qt(this.anchor,this.head)},lt.prototype.to=function(){return st(this.anchor,this.head)},lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function gr(r,s,l){var u=r&&r.options.selectionsMayTouch,f=s[l];s.sort(function(X,K){return ee(X.from(),K.from())}),l=Se(s,f);for(var v=1;v<s.length;v++){var b=s[v],A=s[v-1],x=ee(A.to(),b.from());if(u&&!b.empty()?x>0:x>=0){var _=qt(A.from(),b.from()),N=st(A.to(),b.to()),H=A.empty()?b.from()==b.head:A.from()==A.head;v<=l&&--l,s.splice(--v,2,new lt(H?N:_,H?_:N))}}return new Gn(s,l)}function qi(r,s){return new Gn([new lt(r,s||r)],0)}function ji(r){return r.text?W(r.from.line+r.text.length-1,he(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function fy(r,s){if(ee(r,s.from)<0)return r;if(ee(r,s.to)<=0)return ji(s);var l=r.line+s.text.length-(s.to.line-s.from.line)-1,u=r.ch;return r.line==s.to.line&&(u+=ji(s).ch-s.to.ch),W(l,u)}function _d(r,s){for(var l=[],u=0;u<r.sel.ranges.length;u++){var f=r.sel.ranges[u];l.push(new lt(fy(f.anchor,s),fy(f.head,s)))}return gr(r.cm,l,r.sel.primIndex)}function hy(r,s,l){return r.line==s.line?W(l.line,r.ch-s.ch+l.ch):W(l.line+(r.line-s.line),r.ch)}function a2(r,s,l){for(var u=[],f=W(r.first,0),v=f,b=0;b<s.length;b++){var A=s[b],x=hy(A.from,f,v),_=hy(ji(A),f,v);if(f=A.to,v=_,l=="around"){var N=r.sel.ranges[b],H=ee(N.head,N.anchor)<0;u[b]=new lt(H?_:x,H?x:_)}else u[b]=new lt(x,x)}return new Gn(u,r.sel.primIndex)}function Sd(r){r.doc.mode=ni(r.options,r.doc.modeOption),tu(r)}function tu(r){r.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,Ja(r,100),r.state.modeGen++,r.curOp&&Dn(r)}function dy(r,s){return s.from.ch==0&&s.to.ch==0&&he(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function Fd(r,s,l,u){function f(Ce){return l?l[Ce]:null}function v(Ce,De,Fe){gF(Ce,De,Fe,u),Gt(Ce,"change",Ce,s)}function b(Ce,De){for(var Fe=[],Ie=Ce;Ie<De;++Ie)Fe.push(new go(_[Ie],f(Ie),u));return Fe}var A=s.from,x=s.to,_=s.text,N=Le(r,A.line),H=Le(r,x.line),X=he(_),K=f(_.length-1),te=x.line-A.line;if(s.full)r.insert(0,b(0,_.length)),r.remove(_.length,r.size-_.length);else if(dy(r,s)){var le=b(0,_.length-1);v(H,H.text,K),te&&r.remove(A.line,te),le.length&&r.insert(A.line,le)}else if(N==H)if(_.length==1)v(N,N.text.slice(0,A.ch)+X+N.text.slice(x.ch),K);else{var me=b(1,_.length-1);me.push(new go(X+N.text.slice(x.ch),K,u)),v(N,N.text.slice(0,A.ch)+_[0],f(0)),r.insert(A.line+1,me)}else if(_.length==1)v(N,N.text.slice(0,A.ch)+_[0]+H.text.slice(x.ch),f(0)),r.remove(A.line+1,te);else{v(N,N.text.slice(0,A.ch)+_[0],f(0)),v(H,X+H.text.slice(x.ch),K);var we=b(1,_.length-1);te>1&&r.remove(A.line+1,te-1),r.insert(A.line+1,we)}Gt(r,"change",r,s)}function Vi(r,s,l){function u(f,v,b){if(f.linked)for(var A=0;A<f.linked.length;++A){var x=f.linked[A];if(x.doc!=v){var _=b&&x.sharedHist;l&&!_||(s(x.doc,_),u(x.doc,f,_))}}}u(r,null,!0)}function py(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,pd(r),Sd(r),gy(r),r.options.direction=s.direction,r.options.lineWrapping||rd(r),r.options.mode=s.modeOption,Dn(r)}function gy(r){(r.doc.direction=="rtl"?ge:z)(r.display.lineDiv,"CodeMirror-rtl")}function u2(r){Pn(r,function(){gy(r),Dn(r)})}function rc(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function $d(r,s){var l={from:Qe(s.from),to:ji(s),text:ii(r,s.from,s.to)};return yy(r,l,s.from.line,s.to.line+1),Vi(r,function(u){return yy(u,l,s.from.line,s.to.line+1)},!0),l}function vy(r){for(;r.length;){var s=he(r);if(s.ranges)r.pop();else break}}function l2(r,s){if(s)return vy(r.done),he(r.done);if(r.done.length&&!he(r.done).ranges)return he(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),he(r.done)}function my(r,s,l,u){var f=r.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-(r.cm?r.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(b=l2(f,f.lastOp==u)))A=he(b.changes),ee(s.from,s.to)==0&&ee(s.from,A.to)==0?A.to=ji(s):b.changes.push($d(r,s));else{var x=he(f.done);for((!x||!x.ranges)&&ic(r.sel,f.done),b={changes:[$d(r,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(r,"historyAdded")}function c2(r,s,l,u){var f=s.charAt(0);return f=="*"||f=="+"&&l.ranges.length==u.ranges.length&&l.somethingSelected()==u.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function f2(r,s,l,u){var f=r.history,v=u&&u.origin;l==f.lastSelOp||v&&f.lastSelOrigin==v&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==v||c2(r,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&&vy(f.undone)}function ic(r,s){var l=he(s);l&&l.ranges&&l.equals(r)||s.push(r)}function yy(r,s,l,u){var f=s["spans_"+r.id],v=0;r.iter(Math.max(r.first,l),Math.min(r.first+r.size,u),function(b){b.markedSpans&&((f||(f=s["spans_"+r.id]={}))[v]=b.markedSpans),++v})}function h2(r){if(!r)return null;for(var s,l=0;l<r.length;++l)r[l].marker.explicitlyCleared?s||(s=r.slice(0,l)):s&&s.push(r[l]);return s?s.length?s:null:r}function d2(r,s){var l=s["spans_"+r.id];if(!l)return null;for(var u=[],f=0;f<s.text.length;++f)u.push(h2(l[f]));return u}function by(r,s){var l=d2(r,s),u=Jh(r,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 x=b[A],_=0;_<v.length;++_)if(v[_].marker==x.marker)continue e;v.push(x)}else b&&(l[f]=b)}return l}function xo(r,s,l){for(var u=[],f=0;f<r.length;++f){var v=r[f];if(v.ranges){u.push(l?Gn.prototype.deepCopy.call(v):v);continue}var b=v.changes,A=[];u.push({changes:A});for(var x=0;x<b.length;++x){var _=b[x],N=void 0;if(A.push({from:_.from,to:_.to,text:_.text}),s)for(var H in _)(N=H.match(/^spans_(\d+)$/))&&Se(s,Number(N[1]))>-1&&(he(A)[H]=_[H],delete _[H])}}return u}function Td(r,s,l,u){if(u){var f=r.anchor;if(l){var v=ee(s,f)<0;v!=ee(l,f)<0?(f=s,s=l):v!=ee(s,l)<0&&(s=l)}return new lt(f,s)}else return new lt(l||s,s)}function sc(r,s,l,u,f){f==null&&(f=r.cm&&(r.cm.display.shift||r.extend)),un(r,new Gn([Td(r.sel.primary(),s,l,f)],0),u)}function wy(r,s,l){for(var u=[],f=r.cm&&(r.cm.display.shift||r.extend),v=0;v<r.sel.ranges.length;v++)u[v]=Td(r.sel.ranges[v],s[v],null,f);var b=gr(r.cm,u,r.sel.primIndex);un(r,b,l)}function kd(r,s,l,u){var f=r.sel.ranges.slice(0);f[s]=l,un(r,gr(r.cm,f,r.sel.primIndex),u)}function Dy(r,s,l,u){un(r,qi(s,l),u)}function p2(r,s,l){var u={ranges:s.ranges,update:function(f){this.ranges=[];for(var v=0;v<f.length;v++)this.ranges[v]=new lt(He(r,f[v].anchor),He(r,f[v].head))},origin:l&&l.origin};return wt(r,"beforeSelectionChange",r,u),r.cm&&wt(r.cm,"beforeSelectionChange",r.cm,u),u.ranges!=s.ranges?gr(r.cm,u.ranges,u.ranges.length-1):s}function Ay(r,s,l){var u=r.history.done,f=he(u);f&&f.ranges?(u[u.length-1]=s,oc(r,s,l)):un(r,s,l)}function un(r,s,l){oc(r,s,l),f2(r,r.sel,r.cm?r.cm.curOp.id:NaN,l)}function oc(r,s,l){(hn(r,"beforeSelectionChange")||r.cm&&hn(r.cm,"beforeSelectionChange"))&&(s=p2(r,s,l));var u=l&&l.bias||(ee(s.primary().head,r.sel.primary().head)<0?-1:1);xy(r,Cy(r,s,u,!0)),!(l&&l.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&Do(r.cm)}function xy(r,s){s.equals(r.sel)||(r.sel=s,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,Pl(r.cm)),Gt(r,"cursorActivity",r))}function Ey(r){xy(r,Cy(r,r.sel,null,!1))}function Cy(r,s,l,u){for(var f,v=0;v<s.ranges.length;v++){var b=s.ranges[v],A=s.ranges.length==r.sel.ranges.length&&r.sel.ranges[v],x=ac(r,b.anchor,A&&A.anchor,l,u),_=b.head==b.anchor?x:ac(r,b.head,A&&A.head,l,u);(f||x!=b.anchor||_!=b.head)&&(f||(f=s.ranges.slice(0,v)),f[v]=new lt(x,_))}return f?gr(r.cm,f,s.primIndex):s}function Eo(r,s,l,u,f){var v=Le(r,s.line);if(v.markedSpans)for(var b=0;b<v.markedSpans.length;++b){var A=v.markedSpans[b],x=A.marker,_="selectLeft"in x?!x.selectLeft:x.inclusiveLeft,N="selectRight"in x?!x.selectRight:x.inclusiveRight;if((A.from==null||(_?A.from<=s.ch:A.from<s.ch))&&(A.to==null||(N?A.to>=s.ch:A.to>s.ch))){if(f&&(wt(x,"beforeCursorEnter"),x.explicitlyCleared))if(v.markedSpans){--b;continue}else break;if(!x.atomic)continue;if(l){var H=x.find(u<0?1:-1),X=void 0;if((u<0?N:_)&&(H=_y(r,H,-u,H&&H.line==s.line?v:null)),H&&H.line==s.line&&(X=ee(H,l))&&(u<0?X<0:X>0))return Eo(r,H,s,u,f)}var K=x.find(u<0?-1:1);return(u<0?_:N)&&(K=_y(r,K,u,K.line==s.line?v:null)),K?Eo(r,K,s,u,f):null}}return s}function ac(r,s,l,u,f){var v=u||1,b=Eo(r,s,l,v,f)||!f&&Eo(r,s,l,v,!0)||Eo(r,s,l,-v,f)||!f&&Eo(r,s,l,-v,!0);return b||(r.cantEdit=!0,W(r.first,0))}function _y(r,s,l,u){return l<0&&s.ch==0?s.line>r.first?He(r,W(s.line-1)):null:l>0&&s.ch==(u||Le(r,s.line)).text.length?s.line<r.first+r.size-1?W(s.line+1,0):null:new W(s.line,s.ch+l)}function Sy(r){r.setSelection(W(r.firstLine(),0),W(r.lastLine()),I)}function Fy(r,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=He(r,f)),v&&(u.to=He(r,v)),b&&(u.text=b),A!==void 0&&(u.origin=A)}),wt(r,"beforeChange",r,u),r.cm&&wt(r.cm,"beforeChange",r.cm,u),u.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:u.from,to:u.to,text:u.text,origin:u.origin}}function Co(r,s,l){if(r.cm){if(!r.cm.curOp)return Kt(r.cm,Co)(r,s,l);if(r.cm.state.suppressEdits)return}if(!((hn(r,"beforeChange")||r.cm&&hn(r.cm,"beforeChange"))&&(s=Fy(r,s,!0),!s))){var u=bm&&!l&&fF(r,s.from,s.to);if(u)for(var f=u.length-1;f>=0;--f)$y(r,{from:u[f].from,to:u[f].to,text:f?[""]:s.text,origin:s.origin});else $y(r,s)}}function $y(r,s){if(!(s.text.length==1&&s.text[0]==""&&ee(s.from,s.to)==0)){var l=_d(r,s);my(r,s,l,r.cm?r.cm.curOp.id:NaN),nu(r,s,l,Jh(r,s));var u=[];Vi(r,function(f,v){!v&&Se(u,f.history)==-1&&(By(f.history,s),u.push(f.history)),nu(f,s,null,Jh(f,s))})}}function uc(r,s,l){var u=r.cm&&r.cm.state.suppressEdits;if(!(u&&!l)){for(var f=r.history,v,b=r.sel,A=s=="undo"?f.done:f.undone,x=s=="undo"?f.undone:f.done,_=0;_<A.length&&(v=A[_],!(l?v.ranges&&!v.equals(r.sel):!v.ranges));_++);if(_!=A.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(v=A.pop(),v.ranges){if(ic(v,x),l&&!v.equals(r.sel)){un(r,v,{clearRedo:!1});return}b=v}else if(u){A.push(v);return}else break;var N=[];ic(b,x),x.push({changes:N,generation:f.generation}),f.generation=v.generation||++f.maxGeneration;for(var H=hn(r,"beforeChange")||r.cm&&hn(r.cm,"beforeChange"),X=function(le){var me=v.changes[le];if(me.origin=s,H&&!Fy(r,me,!1))return A.length=0,{};N.push($d(r,me));var we=le?_d(r,me):he(A);nu(r,me,we,by(r,me)),!le&&r.cm&&r.cm.scrollIntoView({from:me.from,to:ji(me)});var Ce=[];Vi(r,function(De,Fe){!Fe&&Se(Ce,De.history)==-1&&(By(De.history,me),Ce.push(De.history)),nu(De,me,null,by(De,me))})},K=v.changes.length-1;K>=0;--K){var te=X(K);if(te)return te.v}}}}function Ty(r,s){if(s!=0&&(r.first+=s,r.sel=new Gn(be(r.sel.ranges,function(f){return new lt(W(f.anchor.line+s,f.anchor.ch),W(f.head.line+s,f.head.ch))}),r.sel.primIndex),r.cm)){Dn(r.cm,r.first,r.first-s,s);for(var l=r.cm.display,u=l.viewFrom;u<l.viewTo;u++)Ui(r.cm,u,"gutter")}}function nu(r,s,l,u){if(r.cm&&!r.cm.curOp)return Kt(r.cm,nu)(r,s,l,u);if(s.to.line<r.first){Ty(r,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>r.lastLine())){if(s.from.line<r.first){var f=s.text.length-1-(r.first-s.from.line);Ty(r,f),s={from:W(r.first,0),to:W(s.to.line+f,s.to.ch),text:[he(s.text)],origin:s.origin}}var v=r.lastLine();s.to.line>v&&(s={from:s.from,to:W(v,Le(r,v).text.length),text:[s.text[0]],origin:s.origin}),s.removed=ii(r,s.from,s.to),l||(l=_d(r,s)),r.cm?g2(r.cm,s,u):Fd(r,s,u),oc(r,l,I),r.cantEdit&&ac(r,W(r.firstLine(),0))&&(r.cantEdit=!1)}}function g2(r,s,l){var u=r.doc,f=r.display,v=s.from,b=s.to,A=!1,x=v.line;r.options.lineWrapping||(x=ut(dr(Le(u,v.line))),u.iter(x,b.line+1,function(K){if(K==f.maxLine)return A=!0,!0})),u.sel.contains(s.from,s.to)>-1&&Pl(r),Fd(u,s,l,Xm(r)),r.options.lineWrapping||(u.iter(x,v.line+s.text.length,function(K){var te=Vl(K);te>f.maxLineLength&&(f.maxLine=K,f.maxLineLength=te,f.maxLineChanged=!0,A=!1)}),A&&(r.curOp.updateMaxLine=!0)),iF(u,v.line),Ja(r,400);var _=s.text.length-(b.line-v.line)-1;s.full?Dn(r):v.line==b.line&&s.text.length==1&&!dy(r.doc,s)?Ui(r,v.line,"text"):Dn(r,v.line,b.line+1,_);var N=hn(r,"changes"),H=hn(r,"change");if(H||N){var X={from:v,to:b,text:s.text,removed:s.removed,origin:s.origin};H&&Gt(r,"change",r,X),N&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(X)}r.display.selForContextMenu=null}function _o(r,s,l,u,f){var v;u||(u=l),ee(u,l)<0&&(v=[u,l],l=v[0],u=v[1]),typeof s=="string"&&(s=r.splitLines(s)),Co(r,{from:l,to:u,text:s,origin:f})}function ky(r,s,l,u){l<r.line?r.line+=u:s<r.line&&(r.line=s,r.ch=0)}function Ly(r,s,l,u){for(var f=0;f<r.length;++f){var v=r[f],b=!0;if(v.ranges){v.copied||(v=r[f]=v.deepCopy(),v.copied=!0);for(var A=0;A<v.ranges.length;A++)ky(v.ranges[A].anchor,s,l,u),ky(v.ranges[A].head,s,l,u);continue}for(var x=0;x<v.changes.length;++x){var _=v.changes[x];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||(r.splice(0,f+1),f=0)}}function By(r,s){var l=s.from.line,u=s.to.line,f=s.text.length-(u-l)-1;Ly(r.done,l,u,f),Ly(r.undone,l,u,f)}function ru(r,s,l,u){var f=s,v=s;return typeof s=="number"?v=Le(r,Wn(r,s)):f=ut(s),f==null?null:(u(v,f)&&r.cm&&Ui(r.cm,f,l),v)}function iu(r){this.lines=r,this.parent=null;for(var s=0,l=0;l<r.length;++l)r[l].parent=this,s+=r[l].height;this.height=s}iu.prototype={chunkSize:function(){return this.lines.length},removeInner:function(r,s){for(var l=r,u=r+s;l<u;++l){var f=this.lines[l];this.height-=f.height,vF(f),Gt(f,"delete")}this.lines.splice(r,s)},collapse:function(r){r.push.apply(r,this.lines)},insertInner:function(r,s,l){this.height+=l,this.lines=this.lines.slice(0,r).concat(s).concat(this.lines.slice(r));for(var u=0;u<s.length;++u)s[u].parent=this},iterN:function(r,s,l){for(var u=r+s;r<u;++r)if(l(this.lines[r]))return!0}};function su(r){this.children=r;for(var s=0,l=0,u=0;u<r.length;++u){var f=r[u];s+=f.chunkSize(),l+=f.height,f.parent=this}this.size=s,this.height=l,this.parent=null}su.prototype={chunkSize:function(){return this.size},removeInner:function(r,s){this.size-=s;for(var l=0;l<this.children.length;++l){var u=this.children[l],f=u.chunkSize();if(r<f){var v=Math.min(s,f-r),b=u.height;if(u.removeInner(r,v),this.height-=b-u.height,f==v&&(this.children.splice(l--,1),u.parent=null),(s-=v)==0)break;r=0}else r-=f}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof iu))){var A=[];this.collapse(A),this.children=[new iu(A)],this.children[0].parent=this}},collapse:function(r){for(var s=0;s<this.children.length;++s)this.children[s].collapse(r)},insertInner:function(r,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(r<=v){if(f.insertInner(r,s,l),f.lines&&f.lines.length>50){for(var b=f.lines.length%25+25,A=b;A<f.lines.length;){var x=new iu(f.lines.slice(A,A+=25));f.height-=x.height,this.children.splice(++u,0,x),x.parent=this}f.lines=f.lines.slice(0,b),this.maybeSpill()}break}r-=v}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var s=r.children.splice(r.children.length-5,5),l=new su(s);if(r.parent){r.size-=l.size,r.height-=l.height;var f=Se(r.parent.children,r);r.parent.children.splice(f+1,0,l)}else{var u=new su(r.children);u.parent=r,r.children=[u,l],r=u}l.parent=r.parent}while(r.children.length>10);r.parent.maybeSpill()}},iterN:function(r,s,l){for(var u=0;u<this.children.length;++u){var f=this.children[u],v=f.chunkSize();if(r<v){var b=Math.min(s,v-r);if(f.iterN(r,b,l))return!0;if((s-=b)==0)break;r=0}else r-=v}}};var ou=function(r,s,l){if(l)for(var u in l)l.hasOwnProperty(u)&&(this[u]=l[u]);this.doc=r,this.node=s};ou.prototype.clear=function(){var r=this.doc.cm,s=this.line.widgets,l=this.line,u=ut(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=Wa(this);nr(l,Math.max(0,l.height-v)),r&&(Pn(r,function(){Oy(r,l,-v),Ui(r,u,"widget")}),Gt(r,"lineWidgetCleared",r,this,u))}},ou.prototype.changed=function(){var r=this,s=this.height,l=this.doc.cm,u=this.line;this.height=null;var f=Wa(this)-s;f&&(zi(this.doc,u)||nr(u,u.height+f),l&&Pn(l,function(){l.curOp.forceUpdate=!0,Oy(l,u,f),Gt(l,"lineWidgetChanged",l,r,ut(u))}))},dn(ou);function Oy(r,s,l){oi(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&wd(r,l)}function v2(r,s,l,u){var f=new ou(r,l,u),v=r.cm;return v&&f.noHScroll&&(v.display.alignWidgets=!0),ru(r,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(r,b)){var x=oi(b)<r.scrollTop;nr(b,b.height+Wa(f)),x&&wd(v,f.height),v.curOp.forceUpdate=!0}return!0}),v&&Gt(v,"lineWidgetAdded",v,f,typeof s=="number"?s:ut(s)),f}var Py=0,Wi=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++Py};Wi.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&Cs(r),hn(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=qa(b.markedSpans,this);r&&!this.collapsed?Ui(r,ut(b),"text"):r&&(A.to!=null&&(f=ut(b)),A.from!=null&&(u=ut(b))),b.markedSpans=aF(b.markedSpans,A),A.from==null&&this.collapsed&&!zi(this.doc,b)&&r&&nr(b,yo(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var _=dr(this.lines[x]),N=Vl(_);N>r.display.maxLineLength&&(r.display.maxLine=_,r.display.maxLineLength=N,r.display.maxLineChanged=!0)}u!=null&&r&&this.collapsed&&Dn(r,u,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&Ey(r.doc)),r&&Gt(r,"markerCleared",r,this,u,f),s&&_s(r),this.parent&&this.parent.clear()}},Wi.prototype.find=function(r,s){r==null&&this.type=="bookmark"&&(r=1);for(var l,u,f=0;f<this.lines.length;++f){var v=this.lines[f],b=qa(v.markedSpans,this);if(b.from!=null&&(l=W(s?v:ut(v),b.from),r==-1))return l;if(b.to!=null&&(u=W(s?v:ut(v),b.to),r==1))return u}return l&&{from:l,to:u}},Wi.prototype.changed=function(){var r=this,s=this.find(-1,!0),l=this,u=this.doc.cm;!s||!u||Pn(u,function(){var f=s.line,v=ut(s.line),b=ad(u,v);if(b&&(Um(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 x=Wa(l)-A;x&&nr(f,f.height+x)}Gt(u,"markerChanged",u,r)})},Wi.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||Se(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},Wi.prototype.detachLine=function(r){if(this.lines.splice(Se(this.lines,r),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},dn(Wi);function So(r,s,l,u,f){if(u&&u.shared)return m2(r,s,l,u,f);if(r.cm&&!r.cm.curOp)return Kt(r.cm,So)(r,s,l,u,f);var v=new Wi(r,f),b=ee(s,l);if(u&&se(u,v,!1),b>0||b==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=R("span",[v.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(Cm(r,s.line,s,l,v)||s.line!=l.line&&Cm(r,l.line,s,l,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");oF()}v.addToHistory&&my(r,{from:s,to:l,origin:"markText"},r.sel,NaN);var A=s.line,x=r.cm,_;if(r.iter(A,l.line+1,function(H){x&&v.collapsed&&!x.options.lineWrapping&&dr(H)==x.display.maxLine&&(_=!0),v.collapsed&&A!=s.line&&nr(H,0),uF(H,new Ul(v,A==s.line?s.ch:null,A==l.line?l.ch:null),r.cm&&r.cm.curOp),++A}),v.collapsed&&r.iter(s.line,l.line+1,function(H){zi(r,H)&&nr(H,0)}),v.clearOnEnter&&Ae(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(sF(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),v.collapsed&&(v.id=++Py,v.atomic=!0),x){if(_&&(x.curOp.updateMaxLine=!0),v.collapsed)Dn(x,s.line,l.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var N=s.line;N<=l.line;N++)Ui(x,N,"text");v.atomic&&Ey(x.doc),Gt(x,"markerAdded",x,v)}return v}var au=function(r,s){this.markers=r,this.primary=s;for(var l=0;l<r.length;++l)r[l].parent=this};au.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();Gt(this,"clear")}},au.prototype.find=function(r,s){return this.primary.find(r,s)},dn(au);function m2(r,s,l,u,f){u=se(u),u.shared=!1;var v=[So(r,s,l,u,f)],b=v[0],A=u.widgetNode;return Vi(r,function(x){A&&(u.widgetNode=A.cloneNode(!0)),v.push(So(x,He(x,s),He(x,l),u,f));for(var _=0;_<x.linked.length;++_)if(x.linked[_].isParent)return;b=he(v)}),new au(v,b)}function Ny(r){return r.findMarks(W(r.first,0),r.clipPos(W(r.lastLine())),function(s){return s.parent})}function y2(r,s){for(var l=0;l<s.length;l++){var u=s[l],f=u.find(),v=r.clipPos(f.from),b=r.clipPos(f.to);if(ee(v,b)){var A=So(r,v,b,u.primary,u.primary.type);u.markers.push(A),A.parent=u}}}function b2(r){for(var s=function(u){var f=r[u],v=[f.primary.doc];Vi(f.primary.doc,function(x){return v.push(x)});for(var b=0;b<f.markers.length;b++){var A=f.markers[b];Se(v,A.doc)==-1&&(A.parent=null,f.markers.splice(b--,1))}},l=0;l<r.length;l++)s(l)}var w2=0,An=function(r,s,l,u,f){if(!(this instanceof An))return new An(r,s,l,u,f);l==null&&(l=0),su.call(this,[new iu([new go("",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 rc(null),this.id=++w2,this.modeOption=s,this.lineSep=u,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),Fd(this,{from:v,to:v,text:r}),un(this,qi(v),I)};An.prototype=Ne(su.prototype,{constructor:An,iter:function(r,s,l){l?this.iterN(r-this.first,s-r,l):this.iterN(this.first,this.first+this.size,r)},insert:function(r,s){for(var l=0,u=0;u<s.length;++u)l+=s[u].height;this.insertInner(r-this.first,s,l)},remove:function(r,s){this.removeInner(r-this.first,s)},getValue:function(r){var s=po(this,this.first,this.first+this.size);return r===!1?s:s.join(r||this.lineSeparator())},setValue:Xt(function(r){var s=W(this.first,0),l=this.first+this.size-1;Co(this,{from:s,to:W(l,Le(this,l).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&Xa(this.cm,0,0),un(this,qi(s),I)}),replaceRange:function(r,s,l,u){s=He(this,s),l=l?He(this,l):s,_o(this,r,s,l,u)},getRange:function(r,s,l){var u=ii(this,He(this,r),He(this,s));return l===!1?u:l===""?u.join(""):u.join(l||this.lineSeparator())},getLine:function(r){var s=this.getLineHandle(r);return s&&s.text},getLineHandle:function(r){if(T(this,r))return Le(this,r)},getLineNumber:function(r){return ut(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=Le(this,r)),dr(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return He(this,r)},getCursor:function(r){var s=this.sel.primary(),l;return r==null||r=="head"?l=s.head:r=="anchor"?l=s.anchor:r=="end"||r=="to"||r===!1?l=s.to():l=s.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xt(function(r,s,l){Dy(this,He(this,typeof r=="number"?W(r,s||0):r),null,l)}),setSelection:Xt(function(r,s,l){Dy(this,He(this,r),He(this,s||r),l)}),extendSelection:Xt(function(r,s,l){sc(this,He(this,r),s&&He(this,s),l)}),extendSelections:Xt(function(r,s){wy(this,fm(this,r),s)}),extendSelectionsBy:Xt(function(r,s){var l=be(this.sel.ranges,r);wy(this,fm(this,l),s)}),setSelections:Xt(function(r,s,l){if(r.length){for(var u=[],f=0;f<r.length;f++)u[f]=new lt(He(this,r[f].anchor),He(this,r[f].head||r[f].anchor));s==null&&(s=Math.min(r.length-1,this.sel.primIndex)),un(this,gr(this.cm,u,s),l)}}),addSelection:Xt(function(r,s,l){var u=this.sel.ranges.slice(0);u.push(new lt(He(this,r),He(this,s||r))),un(this,gr(this.cm,u,u.length-1),l)}),getSelection:function(r){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 r===!1?l:l.join(r||this.lineSeparator())},getSelections:function(r){for(var s=[],l=this.sel.ranges,u=0;u<l.length;u++){var f=ii(this,l[u].from(),l[u].to());r!==!1&&(f=f.join(r||this.lineSeparator())),s[u]=f}return s},replaceSelection:function(r,s,l){for(var u=[],f=0;f<this.sel.ranges.length;f++)u[f]=r;this.replaceSelections(u,s,l||"+input")},replaceSelections:Xt(function(r,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(r[v]),origin:l}}for(var A=s&&s!="end"&&a2(this,u,s),x=u.length-1;x>=0;x--)Co(this,u[x]);A?Ay(this,A):this.cm&&Do(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(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,s=0,l=0,u=0;u<r.done.length;u++)r.done[u].ranges||++s;for(var f=0;f<r.undone.length;f++)r.undone[f].ranges||++l;return{undo:s,redo:l}},clearHistory:function(){var r=this;this.history=new rc(this.history),Vi(this,function(s){return s.history=r.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:xo(this.history.done),undone:xo(this.history.undone)}},setHistory:function(r){var s=this.history=new rc(this.history);s.done=xo(r.done.slice(0),null,!0),s.undone=xo(r.undone.slice(0),null,!0)},setGutterMarker:Xt(function(r,s,l){return ru(this,r,"gutter",function(u){var f=u.gutterMarkers||(u.gutterMarkers={});return f[s]=l,!l&&Ge(f)&&(u.gutterMarkers=null),!0})}),clearGutter:Xt(function(r){var s=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[r]&&ru(s,l,"gutter",function(){return l.gutterMarkers[r]=null,Ge(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(r){var s;if(typeof r=="number"){if(!T(this,r)||(s=r,r=Le(this,r),!r))return null}else if(s=ut(r),s==null)return null;return{line:s,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:Xt(function(r,s,l){return ru(this,r,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(Y(l).test(u[f]))return!1;u[f]+=" "+l}return!0})}),removeLineClass:Xt(function(r,s,l){return ru(this,r,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(Y(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(r,s,l){return v2(this,r,s,l)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,l){return So(this,He(this,r),He(this,s),l,l&&l.type||"range")},setBookmark:function(r,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 r=He(this,r),So(this,r,r,l,"bookmark")},findMarksAt:function(r){r=He(this,r);var s=[],l=Le(this,r.line).markedSpans;if(l)for(var u=0;u<l.length;++u){var f=l[u];(f.from==null||f.from<=r.ch)&&(f.to==null||f.to>=r.ch)&&s.push(f.marker.parent||f.marker)}return s},findMarks:function(r,s,l){r=He(this,r),s=He(this,s);var u=[],f=r.line;return this.iter(r.line,s.line+1,function(v){var b=v.markedSpans;if(b)for(var A=0;A<b.length;A++){var x=b[A];!(x.to!=null&&f==r.line&&r.ch>=x.to||x.from==null&&f!=r.line||x.from!=null&&f==s.line&&x.from>=s.ch)&&(!l||l(x.marker))&&u.push(x.marker.parent||x.marker)}++f}),u},getAllMarks:function(){var r=[];return this.iter(function(s){var l=s.markedSpans;if(l)for(var u=0;u<l.length;++u)l[u].from!=null&&r.push(l[u].marker)}),r},posFromIndex:function(r){var s,l=this.first,u=this.lineSeparator().length;return this.iter(function(f){var v=f.text.length+u;if(v>r)return s=r,!0;r-=v,++l}),He(this,W(l,s))},indexFromPos:function(r){r=He(this,r);var s=r.ch;if(r.line<this.first||r.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,r.line,function(u){s+=u.text.length+l}),s},copy:function(r){var s=new An(po(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,r&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(r){r||(r={});var s=this.first,l=this.first+this.size;r.from!=null&&r.from>s&&(s=r.from),r.to!=null&&r.to<l&&(l=r.to);var u=new An(po(this,s,l),r.mode||this.modeOption,s,this.lineSep,this.direction);return r.sharedHist&&(u.history=this.history),(this.linked||(this.linked=[])).push({doc:u,sharedHist:r.sharedHist}),u.linked=[{doc:this,isParent:!0,sharedHist:r.sharedHist}],y2(u,Ny(this)),u},unlinkDoc:function(r){if(r instanceof xt&&(r=r.doc),this.linked)for(var s=0;s<this.linked.length;++s){var l=this.linked[s];if(l.doc==r){this.linked.splice(s,1),r.unlinkDoc(this),b2(Ny(this));break}}if(r.history==this.history){var u=[r.id];Vi(r,function(f){return u.push(f.id)},!0),r.history=new rc(null),r.history.done=xo(this.history.done,u),r.history.undone=xo(this.history.undone,u)}},iterLinkedDocs:function(r){Vi(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):za(r)},lineSeparator:function(){return this.lineSep||`
|
|
27
|
-
`},setDirection:Xt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(s){return s.order=null}),this.cm&&u2(this.cm))})}),An.prototype.eachLine=An.prototype.iter;var Iy=0;function D2(r){var s=this;if(Ry(s),!(Tt(s,r)||ai(s.display,r))){an(r),d&&(Iy=+new Date);var l=Ds(s,r,!0),u=r.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=He(s.doc,l);var K={from:l,to:l,text:s.doc.splitLines(v.filter(function(te){return te!=null}).join(s.doc.lineSeparator())),origin:"paste"};Co(s.doc,K),Ay(s.doc,qi(He(s.doc,l),He(s.doc,ji(K))))})()},x=function(K,te){if(s.options.allowDropFileTypes&&Se(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[te]=me,A()},le.readAsText(K)},_=0;_<u.length;_++)x(u[_],_);else{if(s.state.draggingText&&s.doc.sel.contains(l)>-1){s.state.draggingText(r),setTimeout(function(){return s.display.input.focus()},20);return}try{var N=r.dataTransfer.getData("Text");if(N){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)_o(s.doc,"",H[X].anchor,H[X].head,"drag");s.replaceSelection(N,"around","paste"),s.display.input.focus()}}catch{}}}}function A2(r,s){if(d&&(!r.state.draggingText||+new Date-Iy<100)){ti(s);return}if(!(Tt(r,s)||ai(r.display,s))&&(s.dataTransfer.setData("Text",r.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!L)){var l=D("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(l.width=l.height=1,r.display.wrapper.appendChild(l),l._top=l.offsetTop),s.dataTransfer.setDragImage(l,0,0),$&&l.parentNode.removeChild(l)}}function x2(r,s){var l=Ds(r,s);if(l){var u=document.createDocumentFragment();gd(r,l,u),r.display.dragCursor||(r.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),F(r.display.dragCursor,u)}}function Ry(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function My(r){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++)r(l[v])})}}var zy=!1;function E2(){zy||(C2(),zy=!0)}function C2(){var r;Ae(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,My(_2)},100))}),Ae(window,"blur",function(){return My(wo)})}function _2(r){var s=r.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,r.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"},uu=0;uu<10;uu++)Gi[uu+48]=Gi[uu+96]=String(uu);for(var lc=65;lc<=90;lc++)Gi[lc]=String.fromCharCode(lc);for(var lu=1;lu<=12;lu++)Gi[lu+111]=Gi[lu+63235]="F"+lu;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=k?li.macDefault:li.pcDefault;function S2(r){var s=r.split(/-(?!$)/);r=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&&(r="Alt-"+r),u&&(r="Ctrl-"+r),v&&(r="Cmd-"+r),f&&(r="Shift-"+r),r}function F2(r){var s={};for(var l in r)if(r.hasOwnProperty(l)){var u=r[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(u=="..."){delete r[l];continue}for(var f=be(l.split(" "),S2),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 x=s[A];if(!x)s[A]=b;else if(x!=b)throw new Error("Inconsistent bindings for "+A)}delete r[l]}for(var _ in s)r[_]=s[_];return r}function Fo(r,s,l,u){s=cc(s);var f=s.call?s.call(r,u):s[r];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 Fo(r,s.fallthrough,l,u);for(var v=0;v<s.fallthrough.length;v++){var b=Fo(r,s.fallthrough[v],l,u);if(b)return b}}}function Uy(r){var s=typeof r=="string"?r:Gi[r.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function Hy(r,s,l){var u=r;return s.altKey&&u!="Alt"&&(r="Alt-"+r),(ne?s.metaKey:s.ctrlKey)&&u!="Ctrl"&&(r="Ctrl-"+r),(ne?s.ctrlKey:s.metaKey)&&u!="Mod"&&(r="Cmd-"+r),!l&&s.shiftKey&&u!="Shift"&&(r="Shift-"+r),r}function qy(r,s){if($&&r.keyCode==34&&r.char)return!1;var l=Gi[r.keyCode];return l==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(l=r.code),Hy(l,r,s))}function cc(r){return typeof r=="string"?li[r]:r}function $o(r,s){for(var l=r.doc.sel.ranges,u=[],f=0;f<l.length;f++){for(var v=s(l[f]);u.length&&ee(v.from,he(u).to)<=0;){var b=u.pop();if(ee(b.from,v.from)<0){v.from=b.from;break}}u.push(v)}Pn(r,function(){for(var A=u.length-1;A>=0;A--)_o(r.doc,"",u[A].from,u[A].to,"+delete");Do(r)})}function Ld(r,s,l){var u=ft(r.text,s+l,l);return u<0||u>r.text.length?null:u}function Bd(r,s,l){var u=Ld(r,s.ch,l);return u==null?null:new W(s.line,u,l<0?"after":"before")}function Od(r,s,l,u,f){if(r){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),x=A?"after":"before",_;if(b.level>0||s.doc.direction=="rtl"){var N=mo(s,l);_=f<0?l.text.length-1:0;var H=Ir(s,N,_).top;_=et(function(X){return Ir(s,N,X).top==H},f<0==(b.level==1)?b.from:b.to-1,_),x=="before"&&(_=Ld(l,_,1))}else _=f<0?b.to:b.from;return new W(u,_,x)}}return new W(u,f<0?l.text.length:0,f<0?"before":"after")}function $2(r,s,l,u){var f=Dt(s,r.doc.direction);if(!f)return Bd(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=tn(f,l.ch,l.sticky),b=f[v];if(r.doc.direction=="ltr"&&b.level%2==0&&(u>0?b.to>l.ch:b.from<l.ch))return Bd(s,l,u);var A=function(we,Ce){return Ld(s,we instanceof W?we.ch:we,Ce)},x,_=function(we){return r.options.lineWrapping?(x=x||mo(r,s),Km(r,s,x,we)):{begin:0,end:s.text.length}},N=_(l.sticky=="before"?A(l,-1):l.ch);if(r.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<=N.end:X>=b.from&&X>=N.begin)){var K=H?"before":"after";return new W(l.line,X,K)}}var te=function(we,Ce,De){for(var Fe=function(mt,Qt){return Qt?new W(l.line,A(mt,1),"before"):new W(l.line,mt,"after")};we>=0&&we<f.length;we+=Ce){var Ie=f[we],Oe=Ce>0==(Ie.level!=1),We=Oe?De.begin:A(De.end,-1);if(Ie.from<=We&&We<Ie.to||(We=Oe?Ie.from:A(Ie.to,-1),De.begin<=We&&We<De.end))return Fe(We,Oe)}},le=te(v+u,u,N);if(le)return le;var me=u>0?N.end:A(N.begin,-1);return me!=null&&!(u>0&&me==s.text.length)&&(le=te(u>0?0:f.length-1,u,_(me)),le)?le:null}var cu={selectAll:Sy,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),I)},killLine:function(r){return $o(r,function(s){if(s.empty()){var l=Le(r.doc,s.head.line).text.length;return s.head.ch==l&&s.head.line<r.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(r){return $o(r,function(s){return{from:W(s.from().line,0),to:He(r.doc,W(s.to().line+1,0))}})},delLineLeft:function(r){return $o(r,function(s){return{from:W(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return $o(r,function(s){var l=r.charCoords(s.head,"div").top+5,u=r.coordsChar({left:0,top:l},"div");return{from:u,to:s.from()}})},delWrappedLineRight:function(r){return $o(r,function(s){var l=r.charCoords(s.head,"div").top+5,u=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:l},"div");return{from:s.from(),to:u}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(W(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(W(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(s){return jy(r,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(s){return Vy(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return T2(r,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(s){var l=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:l},"div")},re)},goLineLeft:function(r){return r.extendSelectionsBy(function(s){var l=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:0,top:l},"div")},re)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(s){var l=r.cursorCoords(s.head,"div").top+5,u=r.coordsChar({left:0,top:l},"div");return u.ch<r.getLine(u.line).search(/\S/)?Vy(r,s.head):u},re)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var s=[],l=r.listSelections(),u=r.options.tabSize,f=0;f<l.length;f++){var v=l[f].from(),b=J(r.getLine(v.line),v.ch,u);s.push(ye(u-b%u))}r.replaceSelections(s)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return Pn(r,function(){for(var s=r.listSelections(),l=[],u=0;u<s.length;u++)if(s[u].empty()){var f=s[u].head,v=Le(r.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),r.replaceRange(v.charAt(f.ch-1)+v.charAt(f.ch-2),W(f.line,f.ch-2),f,"+transpose");else if(f.line>r.doc.first){var b=Le(r.doc,f.line-1).text;b&&(f=new W(f.line,1),r.replaceRange(v.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),W(f.line-1,b.length-1),f,"+transpose"))}}l.push(new lt(f,f))}r.setSelections(l)})},newlineAndIndent:function(r){return Pn(r,function(){for(var s=r.listSelections(),l=s.length-1;l>=0;l--)r.replaceRange(r.doc.lineSeparator(),s[l].anchor,s[l].head,"+input");s=r.listSelections();for(var u=0;u<s.length;u++)r.indentLine(s[u].from().line,null,!0);Do(r)})},openLine:function(r){return r.replaceSelection(`
|
|
28
|
-
`,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function jy(r,s){var l=Le(r.doc,s),u=dr(l);return u!=l&&(s=ut(u)),Od(!0,r,u,s,1)}function T2(r,s){var l=Le(r.doc,s),u=dF(l);return u!=l&&(s=ut(u)),Od(!0,r,l,s,-1)}function Vy(r,s){var l=jy(r,s.line),u=Le(r.doc,l.line),f=Dt(u,r.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(r,s,l){if(typeof s=="string"&&(s=cu[s],!s))return!1;r.display.input.ensurePolled();var u=r.display.shift,f=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),l&&(r.display.shift=!1),f=s(r)!=ke}finally{r.display.shift=u,r.state.suppressEdits=!1}return f}function k2(r,s,l){for(var u=0;u<r.state.keyMaps.length;u++){var f=Fo(s,r.state.keyMaps[u],l,r);if(f)return f}return r.options.extraKeys&&Fo(s,r.options.extraKeys,l,r)||Fo(s,r.options.keyMap,l,r)}var L2=new fe;function fu(r,s,l,u){var f=r.state.keySeq;if(f){if(Uy(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:L2.set(50,function(){r.state.keySeq==f&&(r.state.keySeq=null,r.display.input.reset())}),Wy(r,f+" "+s,l,u))return!0}return Wy(r,s,l,u)}function Wy(r,s,l,u){var f=k2(r,s,u);return f=="multi"&&(r.state.keySeq=s),f=="handled"&&Gt(r,"keyHandled",r,s,l),(f=="handled"||f=="multi")&&(an(l),vd(r)),!!f}function Gy(r,s){var l=qy(s,!0);return l?s.shiftKey&&!r.state.keySeq?fu(r,"Shift-"+l,s,function(u){return fc(r,u,!0)})||fu(r,l,s,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return fc(r,u)}):fu(r,l,s,function(u){return fc(r,u)}):!1}function B2(r,s,l){return fu(r,"'"+l+"'",s,function(u){return fc(r,u,!0)})}var Pd=null;function Ky(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&(s.curOp.focus=ue(ze(s)),!Tt(s,r))){d&&p<11&&r.keyCode==27&&(r.returnValue=!1);var l=r.keyCode;s.display.shift=l==16||r.shiftKey;var u=Gy(s,r);$&&(Pd=u?l:null,!u&&l==88&&!Lr&&(k?r.metaKey:r.ctrlKey)&&s.replaceSelection("",null,"cut")),o&&!k&&!u&&l==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&O2(s)}}function O2(r){var s=r.display.lineDiv;ge(s,"CodeMirror-crosshair");function l(u){(u.keyCode==18||!u.altKey)&&(z(s,"CodeMirror-crosshair"),on(document,"keyup",l),on(document,"mouseover",l))}Ae(document,"keyup",l),Ae(document,"mouseover",l)}function Xy(r){r.keyCode==16&&(this.doc.sel.shift=!1),Tt(this,r)}function Qy(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&!(ai(s.display,r)||Tt(s,r)||r.ctrlKey&&!r.altKey||k&&r.metaKey)){var l=r.keyCode,u=r.charCode;if($&&l==Pd){Pd=null,an(r);return}if(!($&&(!r.which||r.which<10)&&Gy(s,r))){var f=String.fromCharCode(u??l);f!="\b"&&(B2(s,r,f)||s.display.input.onKeyPress(r))}}}var P2=400,Nd=function(r,s,l){this.time=r,this.pos=s,this.button=l};Nd.prototype.compare=function(r,s,l){return this.time+P2>r&&ee(s,this.pos)==0&&l==this.button};var hu,du;function N2(r,s){var l=+new Date;return du&&du.compare(l,r,s)?(hu=du=null,"triple"):hu&&hu.compare(l,r,s)?(du=new Nd(l,r,s),hu=null,"double"):(hu=new Nd(l,r,s),du=null,"single")}function Yy(r){var s=this,l=s.display;if(!(Tt(s,r)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=r.shiftKey,ai(l,r)){g||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!Id(s,r)){var u=Ds(s,r),f=Ma(r),v=u?N2(u,f):"single";Xe(s).focus(),f==1&&s.state.selectingText&&s.state.selectingText(r),!(u&&I2(s,f,u,v,r))&&(f==1?u?M2(s,u,v,r):wn(r)==l.scroller&&an(r):f==2?(u&&sc(s.doc,u),setTimeout(function(){return l.input.focus()},20)):f==3&&(oe?s.display.input.onContextMenu(r):md(s)))}}}function I2(r,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,fu(r,Hy(v,f),f,function(b){if(typeof b=="string"&&(b=cu[b]),!b)return!1;var A=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),A=b(r,l)!=ke}finally{r.state.suppressEdits=!1}return A})}function R2(r,s,l){var u=r.getOption("configureMouse"),f=u?u(r,s,l):{};if(f.unit==null){var v=M?l.shiftKey&&l.metaKey:l.altKey;f.unit=v?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(f.extend==null||r.doc.extend)&&(f.extend=r.doc.extend||l.shiftKey),f.addNew==null&&(f.addNew=k?l.metaKey:l.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(k?l.altKey:l.ctrlKey)),f}function M2(r,s,l,u){d?setTimeout(ie(Zm,r),0):r.curOp.focus=ue(ze(r));var f=R2(r,l,u),v=r.doc.sel,b;r.options.dragDrop&&Xh&&!r.isReadOnly()&&l=="single"&&(b=v.contains(s))>-1&&(ee((b=v.ranges[b]).from(),s)<0||s.xRel>0)&&(ee(b.to(),s)>0||s.xRel<0)?z2(r,u,s,f):U2(r,u,s,f)}function z2(r,s,l,u){var f=r.display,v=!1,b=Kt(r,function(_){g&&(f.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:md(r)),on(f.wrapper.ownerDocument,"mouseup",b),on(f.wrapper.ownerDocument,"mousemove",A),on(f.scroller,"dragstart",x),on(f.scroller,"drop",b),v||(an(_),u.addNew||sc(r.doc,l,null,null,u.extend),g&&!L||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},x=function(){return v=!0};g&&(f.scroller.draggable=!0),r.state.draggingText=b,b.copy=!u.moveOnDrag,Ae(f.wrapper.ownerDocument,"mouseup",b),Ae(f.wrapper.ownerDocument,"mousemove",A),Ae(f.scroller,"dragstart",x),Ae(f.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Zy(r,s,l){if(l=="char")return new lt(s,s);if(l=="word")return r.findWordAt(s);if(l=="line")return new lt(W(s.line,0),He(r.doc,W(s.line+1,0)));var u=l(r,s);return new lt(u.from,u.to)}function U2(r,s,l,u){d&&md(r);var f=r.display,v=r.doc;an(s);var b,A,x=v.sel,_=x.ranges;if(u.addNew&&!u.extend?(A=v.sel.contains(l),A>-1?b=_[A]:b=new lt(l,l)):(b=v.sel.primary(),A=v.sel.primIndex),u.unit=="rectangle")u.addNew||(b=new lt(l,l)),l=Ds(r,s,!0,!0),A=-1;else{var N=Zy(r,l,u.unit);u.extend?b=Td(b,N.anchor,N.head,u.extend):b=N}u.addNew?A==-1?(A=_.length,un(v,gr(r,_.concat([b]),A),{scroll:!1,origin:"*mouse"})):_.length>1&&_[A].empty()&&u.unit=="char"&&!u.extend?(un(v,gr(r,_.slice(0,A).concat(_.slice(A+1)),0),{scroll:!1,origin:"*mouse"}),x=v.sel):kd(v,A,b,G):(A=0,un(v,new Gn([b],0),G),x=v.sel);var H=l;function X(De){if(ee(H,De)!=0)if(H=De,u.unit=="rectangle"){for(var Fe=[],Ie=r.options.tabSize,Oe=J(Le(v,l.line).text,l.ch,Ie),We=J(Le(v,De.line).text,De.ch,Ie),mt=Math.min(Oe,We),Qt=Math.max(Oe,We),Ft=Math.min(l.line,De.line),Nn=Math.min(r.lastLine(),Math.max(l.line,De.line));Ft<=Nn;Ft++){var xn=Le(v,Ft).text,It=ae(xn,mt,Ie);mt==Qt?Fe.push(new lt(W(Ft,It),W(Ft,It))):xn.length>It&&Fe.push(new lt(W(Ft,It),W(Ft,ae(xn,Qt,Ie))))}Fe.length||Fe.push(new lt(l,l)),un(v,gr(r,x.ranges.slice(0,A).concat(Fe),A),{origin:"*mouse",scroll:!1}),r.scrollIntoView(De)}else{var En=b,nn=Zy(r,De,u.unit),jt=En.anchor,Rt;ee(nn.anchor,jt)>0?(Rt=nn.head,jt=qt(En.from(),nn.anchor)):(Rt=nn.anchor,jt=st(En.to(),nn.head));var Lt=x.ranges.slice(0);Lt[A]=H2(r,new lt(He(v,jt),Rt)),un(v,gr(r,Lt,A),G)}}var K=f.wrapper.getBoundingClientRect(),te=0;function le(De){var Fe=++te,Ie=Ds(r,De,!0,u.unit=="rectangle");if(Ie)if(ee(Ie,H)!=0){r.curOp.focus=ue(ze(r)),X(Ie);var Oe=Jl(f,v);(Ie.line>=Oe.to||Ie.line<Oe.from)&&setTimeout(Kt(r,function(){te==Fe&&le(De)}),150)}else{var We=De.clientY<K.top?-20:De.clientY>K.bottom?20:0;We&&setTimeout(Kt(r,function(){te==Fe&&(f.scroller.scrollTop+=We,le(De))}),50)}}function me(De){r.state.selectingText=!1,te=1/0,De&&(an(De),f.input.focus()),on(f.wrapper.ownerDocument,"mousemove",we),on(f.wrapper.ownerDocument,"mouseup",Ce),v.history.lastSelOrigin=null}var we=Kt(r,function(De){De.buttons===0||!Ma(De)?me(De):le(De)}),Ce=Kt(r,me);r.state.selectingText=Ce,Ae(f.wrapper.ownerDocument,"mousemove",we),Ae(f.wrapper.ownerDocument,"mouseup",Ce)}function H2(r,s){var l=s.anchor,u=s.head,f=Le(r.doc,l.line);if(ee(l,u)==0&&l.sticky==u.sticky)return s;var v=Dt(f);if(!v)return s;var b=tn(v,l.ch,l.sticky),A=v[b];if(A.from!=l.ch&&A.to!=l.ch)return s;var x=b+(A.from==l.ch==(A.level!=1)?0:1);if(x==0||x==v.length)return s;var _;if(u.line!=l.line)_=(u.line-l.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var N=tn(v,u.ch,u.sticky),H=N-b||(u.ch-l.ch)*(A.level==1?-1:1);N==x-1||N==x?_=H<0:_=H>0}var X=v[x+(_?-1:0)],K=_==(X.level==1),te=K?X.from:X.to,le=K?"after":"before";return l.ch==te&&l.sticky==le?s:new lt(new W(l.line,te,le),u)}function Jy(r,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(r.display.gutters.getBoundingClientRect().right))return!1;u&&an(s);var b=r.display,A=b.lineDiv.getBoundingClientRect();if(v>A.bottom||!hn(r,l))return Ra(s);v-=A.top-b.viewOffset;for(var x=0;x<r.display.gutterSpecs.length;++x){var _=b.gutters.childNodes[x];if(_&&_.getBoundingClientRect().right>=f){var N=Or(r.doc,v),H=r.display.gutterSpecs[x];return wt(r,l,r,N,H.className,s),Ra(s)}}}function Id(r,s){return Jy(r,s,"gutterClick",!0)}function e1(r,s){ai(r.display,s)||q2(r,s)||Tt(r,s,"contextmenu")||oe||r.display.input.onContextMenu(s)}function q2(r,s){return hn(r,"gutterContextMenu")?Jy(r,s,"gutterContextMenu",!1):!1}function t1(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ga(r)}var To={toString:function(){return"CodeMirror.Init"}},n1={},hc={};function j2(r){var s=r.optionHandlers;function l(u,f,v,b){r.defaults[u]=f,v&&(s[u]=b?function(A,x,_){_!=To&&v(A,x,_)}:v)}r.defineOption=l,r.Init=To,l("value","",function(u,f){return u.setValue(f)},!0),l("mode",null,function(u,f){u.doc.modeOption=f,Sd(u)},!0),l("indentUnit",2,Sd,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(u){tu(u),Ga(u),Dn(u)},!0),l("lineSeparator",null,function(u,f){if(u.doc.lineSep=f,!!f){var v=[],b=u.doc.first;u.doc.iter(function(x){for(var _=0;;){var N=x.text.indexOf(f,_);if(N==-1)break;_=N+f.length,v.push(W(b,N))}b++});for(var A=v.length-1;A>=0;A--)_o(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!=To&&u.refresh()}),l("specialCharPlaceholder",bF,function(u){return u.refresh()},!0),l("electricChars",!0),l("inputStyle",B?"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",!U),l("wholeLineUpdateBefore",!0),l("theme","default",function(u){t1(u),eu(u)},!0),l("keyMap","default",function(u,f,v){var b=cc(f),A=v!=To&&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,W2,!0),l("gutters",[],function(u,f){u.display.gutterSpecs=Cd(f,u.options.lineNumbers),eu(u)},!0),l("fixedGutter",!0,function(u,f){u.display.gutters.style.left=f?dd(u.display)+"px":"0",u.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(u){return Ao(u)},!0),l("scrollbarStyle","native",function(u){iy(u),Ao(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=Cd(u.options.gutters,f),eu(u)},!0),l("firstLineNumber",1,eu,!0),l("lineNumberFormatter",function(u){return u},eu,!0),l("showCursorWhenSelecting",!1,Ka,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(u,f){f=="nocursor"&&(wo(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,V2),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Ka,!0),l("singleCursorHeightPerLine",!0,Ka,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,tu,!0),l("addModeClass",!1,tu,!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,tu,!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 V2(r,s,l){var u=l&&l!=To;if(!s!=!u){var f=r.display.dragFunctions,v=s?Ae:on;v(r.display.scroller,"dragstart",f.start),v(r.display.scroller,"dragenter",f.enter),v(r.display.scroller,"dragover",f.over),v(r.display.scroller,"dragleave",f.leave),v(r.display.scroller,"drop",f.drop)}}function W2(r){r.options.lineWrapping?(ge(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(z(r.display.wrapper,"CodeMirror-wrap"),rd(r)),pd(r),Dn(r),Ga(r),setTimeout(function(){return Ao(r)},100)}function xt(r,s){var l=this;if(!(this instanceof xt))return new xt(r,s);this.options=s=s?se(s):{},se(n1,s,!1);var u=s.value;typeof u=="string"?u=new An(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 s2(r,u,f,s);v.wrapper.CodeMirror=this,t1(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),iy(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 fe,keySeq:null,specialChars:null},s.autofocus&&!B&&v.input.focus(),d&&p<11&&setTimeout(function(){return l.display.input.reset(!0)},20),G2(this),E2(),Cs(this),this.curOp.forceUpdate=!0,py(this,u),s.autofocus&&!B||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&yd(l)},20):wo(this);for(var b in hc)hc.hasOwnProperty(b)&&hc[b](this,s[b],To);ay(this),s.finishInit&&s.finishInit(this);for(var A=0;A<Rd.length;++A)Rd[A](this);_s(this),g&&s.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}xt.defaults=n1,xt.optionHandlers=hc;function G2(r){var s=r.display;Ae(s.scroller,"mousedown",Kt(r,Yy)),d&&p<11?Ae(s.scroller,"dblclick",Kt(r,function(x){if(!Tt(r,x)){var _=Ds(r,x);if(!(!_||Id(r,x)||ai(r.display,x))){an(x);var N=r.findWordAt(_);sc(r.doc,N.anchor,N.head)}}})):Ae(s.scroller,"dblclick",function(x){return Tt(r,x)||an(x)}),Ae(s.scroller,"contextmenu",function(x){return e1(r,x)}),Ae(s.input.getField(),"contextmenu",function(x){s.scroller.contains(x.target)||e1(r,x)});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(x){if(x.touches.length!=1)return!1;var _=x.touches[0];return _.radiusX<=1&&_.radiusY<=1}function b(x,_){if(_.left==null)return!0;var N=_.left-x.left,H=_.top-x.top;return N*N+H*H>20*20}Ae(s.scroller,"touchstart",function(x){if(!Tt(r,x)&&!v(x)&&!Id(r,x)){s.input.ensurePolled(),clearTimeout(l);var _=+new Date;s.activeTouch={start:_,moved:!1,prev:_-u.end<=300?u:null},x.touches.length==1&&(s.activeTouch.left=x.touches[0].pageX,s.activeTouch.top=x.touches[0].pageY)}}),Ae(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Ae(s.scroller,"touchend",function(x){var _=s.activeTouch;if(_&&!ai(s,x)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=r.coordsChar(s.activeTouch,"page"),H;!_.prev||b(_,_.prev)?H=new lt(N,N):!_.prev.prev||b(_,_.prev.prev)?H=r.findWordAt(N):H=new lt(W(N.line,0),He(r.doc,W(N.line+1,0))),r.setSelection(H.anchor,H.head),r.focus(),an(x)}f()}),Ae(s.scroller,"touchcancel",f),Ae(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Qa(r,s.scroller.scrollTop),xs(r,s.scroller.scrollLeft,!0),wt(r,"scroll",r))}),Ae(s.scroller,"mousewheel",function(x){return cy(r,x)}),Ae(s.scroller,"DOMMouseScroll",function(x){return cy(r,x)}),Ae(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(x){Tt(r,x)||ti(x)},over:function(x){Tt(r,x)||(x2(r,x),ti(x))},start:function(x){return A2(r,x)},drop:Kt(r,D2),leave:function(x){Tt(r,x)||Ry(r)}};var A=s.input.getField();Ae(A,"keyup",function(x){return Xy.call(r,x)}),Ae(A,"keydown",Kt(r,Ky)),Ae(A,"keypress",Kt(r,Qy)),Ae(A,"focus",function(x){return yd(r,x)}),Ae(A,"blur",function(x){return wo(r,x)})}var Rd=[];xt.defineInitHook=function(r){return Rd.push(r)};function pu(r,s,l,u){var f=r.doc,v;l==null&&(l="add"),l=="smart"&&(f.mode.indent?v=Ha(r,s).state:l="prev");var b=r.options.tabSize,A=Le(f,s),x=J(A.text,null,b);A.stateAfter&&(A.stateAfter=null);var _=A.text.match(/^\s*/)[0],N;if(!u&&!/\S/.test(A.text))N=0,l="not";else if(l=="smart"&&(N=f.mode.indent(v,A.text.slice(_.length),A.text),N==ke||N>150)){if(!u)return;l="prev"}l=="prev"?s>f.first?N=J(Le(f,s-1).text,null,b):N=0:l=="add"?N=x+r.options.indentUnit:l=="subtract"?N=x-r.options.indentUnit:typeof l=="number"&&(N=x+l),N=Math.max(0,N);var H="",X=0;if(r.options.indentWithTabs)for(var K=Math.floor(N/b);K;--K)X+=b,H+=" ";if(X<N&&(H+=ye(N-X)),H!=_)return _o(f,H,W(s,0),W(s,_.length),"+input"),A.stateAfter=null,!0;for(var te=0;te<f.sel.ranges.length;te++){var le=f.sel.ranges[te];if(le.head.line==s&&le.head.ch<_.length){var me=W(s,_.length);kd(f,te,new lt(me,me));break}}}var vr=null;function dc(r){vr=r}function Md(r,s,l,u,f){var v=r.doc;r.display.shift=!1,u||(u=v.sel);var b=+new Date-200,A=f=="paste"||r.state.pasteIncoming>b,x=za(s),_=null;if(A&&u.ranges.length>1)if(vr&&vr.text.join(`
|
|
29
|
-
`)==s){if(u.ranges.length%vr.text.length==0){_=[];for(var N=0;N<vr.text.length;N++)_.push(v.splitLines(vr.text[N]))}}else x.length==u.ranges.length&&r.options.pasteLinesPerSelection&&(_=be(x,function(we){return[we]}));for(var H=r.curOp.updateInput,X=u.ranges.length-1;X>=0;X--){var K=u.ranges[X],te=K.from(),le=K.to();K.empty()&&(l&&l>0?te=W(te.line,te.ch-l):r.state.overwrite&&!A?le=W(le.line,Math.min(Le(v,le.line).text.length,le.ch+he(x).length)):A&&vr&&vr.lineWise&&vr.text.join(`
|
|
30
|
-
`)==x.join(`
|
|
31
|
-
`)&&(te=le=W(te.line,0)));var me={from:te,to:le,text:_?_[X%_.length]:x,origin:f||(A?"paste":r.state.cutIncoming>b?"cut":"+input")};Co(r.doc,me),Gt(r,"inputRead",r,me)}s&&!A&&i1(r,s),Do(r),r.curOp.updateInput<2&&(r.curOp.updateInput=H),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function r1(r,s){var l=r.clipboardData&&r.clipboardData.getData("Text");if(l)return r.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Pn(s,function(){return Md(s,l,0,null,"paste")}),!0}function i1(r,s){if(!(!r.options.electricChars||!r.options.smartIndent))for(var l=r.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=r.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=pu(r,f.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(Le(r.doc,f.head.line).text.slice(0,f.head.ch))&&(b=pu(r,f.head.line,"smart"));b&&Gt(r,"electricInput",r,f.head.line)}}}function s1(r){for(var s=[],l=[],u=0;u<r.doc.sel.ranges.length;u++){var f=r.doc.sel.ranges[u].head.line,v={anchor:W(f,0),head:W(f+1,0)};l.push(v),s.push(r.getRange(v.anchor,v.head))}return{text:s,ranges:l}}function zd(r,s,l,u){r.setAttribute("autocorrect",l?"on":"off"),r.setAttribute("autocapitalize",u?"on":"off"),r.setAttribute("spellcheck",!!s)}function o1(){var r=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=D("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?r.style.width="1000px":r.setAttribute("wrap","off"),S&&(r.style.border="1px solid black"),s}function K2(r){var s=r.optionHandlers,l=r.helpers={};r.prototype={constructor:r,focus:function(){Xe(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:pn(function(u,f){var v=u.token?u:r.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++,Dn(this)}),removeOverlay:pn(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++,Dn(this);return}}}),indentLine:pn(function(u,f,v){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),T(this.doc,u)&&pu(this,u,f,v)}),indentSelection:pn(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&&(pu(this,A.head.line,u,!0),v=A.head.line,b==this.doc.sel.primIndex&&Do(this));else{var x=A.from(),_=A.to(),N=Math.max(v,x.line);v=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var H=N;H<v;++H)pu(this,H,u);var X=this.doc.sel.ranges;x.ch==0&&f.length==X.length&&X[b].from().ch>0&&kd(this.doc,b,new lt(x,X[b].to()),I)}}}),getTokenAt:function(u,f){return vm(this,u,f)},getLineTokens:function(u,f){return vm(this,W(u),f,!0)},getTokenTypeAt:function(u){u=He(this.doc,u);var f=dm(this,Le(this.doc,u.line)),v=0,b=(f.length-1)/2,A=u.ch,x;if(A==0)x=f[2];else for(;;){var _=v+b>>1;if((_?f[_*2-1]:0)>=A)b=_;else if(f[_*2+1]<A)v=_+1;else{x=f[_*2+2];break}}var N=x?x.indexOf("overlay "):-1;return N<0?x:N==0?null:x.slice(0,N-1)},getModeAt:function(u){var f=this.doc.mode;return f.innerMode?r.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 x=0;x<A[f].length;x++){var _=b[A[f][x]];_&&v.push(_)}else A.helperType&&b[A.helperType]?v.push(b[A.helperType]):b[A.name]&&v.push(b[A.name]);for(var N=0;N<b._global.length;N++){var H=b._global[N];H.pred(A,this)&&Se(v,H.val)==-1&&v.push(H.val)}return v},getStateAfter:function(u,f){var v=this.doc;return u=Wn(v,u??v.first+v.size-1),Ha(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=He(this.doc,u):v=u?b.from():b.to(),pr(this,v,f||"page")},charCoords:function(u,f){return Xl(this,He(this.doc,u),f||"page")},coordsChar:function(u,f){return u=Vm(this,u,f||"page"),cd(this,u.left,u.top)},lineAtHeight:function(u,f){return u=Vm(this,{top:u,left:0},f||"page").top,Or(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,f,v){var b=!1,A;if(typeof u=="number"){var x=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>x&&(u=x,b=!0),A=Le(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 yo(this.display)},defaultCharWidth:function(){return bo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,f,v,b,A){var x=this.display;u=pr(this,He(this.doc,u));var _=u.bottom,N=u.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),x.sizer.appendChild(f),b=="over")_=u.top;else if(b=="above"||b=="near"){var H=Math.max(x.wrapper.clientHeight,this.doc.height),X=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(b=="above"||u.bottom+f.offsetHeight>H)&&u.top>f.offsetHeight?_=u.top-f.offsetHeight:u.bottom+f.offsetHeight<=H&&(_=u.bottom),N+f.offsetWidth>X&&(N=X-f.offsetWidth)}f.style.top=_+"px",f.style.left=f.style.right="",A=="right"?(N=x.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(A=="left"?N=0:A=="middle"&&(N=(x.sizer.clientWidth-f.offsetWidth)/2),f.style.left=N+"px"),v&&VF(this,{left:N,top:_,right:N+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:pn(Ky),triggerOnKeyPress:pn(Qy),triggerOnKeyUp:Xy,triggerOnMouseDown:pn(Yy),execCommand:function(u){if(cu.hasOwnProperty(u))return cu[u].call(null,this)},triggerElectric:pn(function(u){i1(this,u)}),findPosH:function(u,f,v,b){var A=1;f<0&&(A=-1,f=-f);for(var x=He(this.doc,u),_=0;_<f&&(x=Ud(this.doc,x,A,v,b),!x.hitSide);++_);return x},moveH:pn(function(u,f){var v=this;this.extendSelectionsBy(function(b){return v.display.shift||v.doc.extend||b.empty()?Ud(v.doc,b.head,u,f,v.options.rtlMoveVisually):u<0?b.from():b.to()},re)}),deleteH:pn(function(u,f){var v=this.doc.sel,b=this.doc;v.somethingSelected()?b.replaceSelection("",null,"+delete"):$o(this,function(A){var x=Ud(b,A.head,u,f,!1);return u<0?{from:x,to:A.head}:{from:A.head,to:x}})}),findPosV:function(u,f,v,b){var A=1,x=b;f<0&&(A=-1,f=-f);for(var _=He(this.doc,u),N=0;N<f;++N){var H=pr(this,_,"div");if(x==null?x=H.left:H.left=x,_=a1(this,H,A,v),_.hitSide)break}return _},moveV:pn(function(u,f){var v=this,b=this.doc,A=[],x=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(N){if(x)return u<0?N.from():N.to();var H=pr(v,N.head,"div");N.goalColumn!=null&&(H.left=N.goalColumn),A.push(H.left);var X=a1(v,H,u,f);return f=="page"&&N==b.sel.primary()&&wd(v,Xl(v,X,"div").top-H.top),X},re),A.length)for(var _=0;_<b.sel.ranges.length;_++)b.sel.ranges[_].goalColumn=A[_]}),findWordAt:function(u){var f=this.doc,v=Le(f,u.line).text,b=u.ch,A=u.ch;if(v){var x=this.getHelper(u,"wordChars");(u.sticky=="before"||A==v.length)&&b?--b:++A;for(var _=v.charAt(b),N=Re(_,x)?function(H){return Re(H,x)}:/\s/.test(_)?function(H){return/\s/.test(H)}:function(H){return!/\s/.test(H)&&!Re(H)};b>0&&N(v.charAt(b-1));)--b;for(;A<v.length&&N(v.charAt(A));)++A}return new lt(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()==ue(ze(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:pn(function(u,f){Xa(this,u,f)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-Nr(this)-this.display.barHeight,width:u.scrollWidth-Nr(this)-this.display.barWidth,clientHeight:od(this),clientWidth:bs(this)}},scrollIntoView:pn(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?WF(this,u):ey(this,u.from,u.to,u.margin)}),setSize:pn(function(u,f){var v=this,b=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};u!=null&&(this.display.wrapper.style.width=b(u)),f!=null&&(this.display.wrapper.style.height=b(f)),this.options.lineWrapping&&Hm(this);var A=this.display.viewFrom;this.doc.iter(A,this.display.viewTo,function(x){if(x.widgets){for(var _=0;_<x.widgets.length;_++)if(x.widgets[_].noHScroll){Ui(v,A,"widget");break}}++A}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(u){return Pn(this,u)},startOperation:function(){return Cs(this)},endOperation:function(){return _s(this)},refresh:pn(function(){var u=this.display.cachedTextHeight;Dn(this),this.curOp.forceUpdate=!0,Ga(this),Xa(this,this.doc.scrollLeft,this.doc.scrollTop),xd(this.display),(u==null||Math.abs(u-yo(this.display))>.5||this.options.lineWrapping)&&pd(this),wt(this,"refresh",this)}),swapDoc:pn(function(u){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),py(this,u),Ga(this),this.display.input.reset(),Xa(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}},dn(r),r.registerHelper=function(u,f,v){l.hasOwnProperty(u)||(l[u]=r[u]={_global:[]}),l[u][f]=v},r.registerGlobalHelper=function(u,f,v,b){r.registerHelper(u,f,b),l[u]._global.push({pred:v,val:b})}}function Ud(r,s,l,u,f){var v=s,b=l,A=Le(r,s.line),x=f&&r.direction=="rtl"?-l:l;function _(){var Ce=s.line+x;return Ce<r.first||Ce>=r.first+r.size?!1:(s=new W(Ce,s.ch,s.sticky),A=Le(r,Ce))}function N(Ce){var De;if(u=="codepoint"){var Fe=A.text.charCodeAt(s.ch+(l>0?0:-1));if(isNaN(Fe))De=null;else{var Ie=l>0?Fe>=55296&&Fe<56320:Fe>=56320&&Fe<57343;De=new W(s.line,Math.max(0,Math.min(A.text.length,s.ch+l*(Ie?2:1))),-l)}}else f?De=$2(r.cm,A,s,l):De=Bd(A,s,l);if(De==null)if(!Ce&&_())s=Od(f,r.cm,A,s.line,x);else return!1;else s=De;return!0}if(u=="char"||u=="codepoint")N();else if(u=="column")N(!0);else if(u=="word"||u=="group")for(var H=null,X=u=="group",K=r.cm&&r.cm.getHelper(s,"wordChars"),te=!0;!(l<0&&!N(!te));te=!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&&!te&&!me&&(me="s"),H&&H!=me){l<0&&(l=1,N(),s.sticky="after");break}if(me&&(H=me),l>0&&!N(!te))break}var we=ac(r,s,v,b,!0);return Ue(v,we)&&(we.hitSide=!0),we}function a1(r,s,l,u){var f=r.doc,v=s.left,b;if(u=="page"){var A=Math.min(r.display.wrapper.clientHeight,Xe(r).innerHeight||f(r).documentElement.clientHeight),x=Math.max(A-.5*yo(r.display),3);b=(l>0?s.bottom:s.top)+l*x}else u=="line"&&(b=l>0?s.bottom+3:s.top-3);for(var _;_=cd(r,v,b),!!_.outside;){if(l<0?b<=0:b>=f.height){_.hitSide=!0;break}b+=l*5}return _}var dt=function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};dt.prototype.init=function(r){var s=this,l=this,u=l.cm,f=l.div=r.lineDiv;f.contentEditable=!0,zd(f,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function v(A){for(var x=A.target;x;x=x.parentNode){if(x==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}Ae(f,"paste",function(A){!v(A)||Tt(u,A)||r1(A,u)||p<=11&&setTimeout(Kt(u,function(){return s.updateFromDOM()}),20)}),Ae(f,"compositionstart",function(A){s.composing={data:A.data,done:!1}}),Ae(f,"compositionupdate",function(A){s.composing||(s.composing={data:A.data,done:!1})}),Ae(f,"compositionend",function(A){s.composing&&(A.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),Ae(f,"touchstart",function(){return l.forceCompositionEnd()}),Ae(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 x=s1(u);dc({lineWise:!0,text:x.text}),A.type=="cut"&&u.operation(function(){u.setSelections(x.ranges,0,I),u.replaceSelection("",null,"cut")})}else return;if(A.clipboardData){A.clipboardData.clearData();var _=vr.text.join(`
|
|
34
|
-
`);if(A.clipboardData.setData("Text",_),A.clipboardData.getData("Text")==_){A.preventDefault();return}}var N=o1(),H=N.firstChild;zd(H),u.display.lineSpace.insertBefore(N,u.display.lineSpace.firstChild),H.value=vr.text.join(`
|
|
35
|
-
`);var X=ue(f.ownerDocument);_e(H),setTimeout(function(){u.display.lineSpace.removeChild(N),X.focus(),X==f&&l.showPrimarySelection()},50)}}Ae(f,"copy",b),Ae(f,"cut",b)},dt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},dt.prototype.prepareSelection=function(){var r=Ym(this.cm,!1);return r.focus=ue(this.div.ownerDocument)==this.div,r},dt.prototype.showSelection=function(r,s){!r||!this.cm.display.view.length||((r.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(r))},dt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},dt.prototype.showPrimarySelection=function(){var r=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){r.removeAllRanges();return}var v=pc(s,r.anchorNode,r.anchorOffset),b=pc(s,r.focusNode,r.focusOffset);if(!(v&&!v.bad&&b&&!b.bad&&ee(qt(v,b),u)==0&&ee(st(v,b),f)==0)){var A=s.display.view,x=u.line>=s.display.viewFrom&&u1(s,u)||{node:A[0].measure.map[2],offset:0},_=f.line<s.display.viewTo&&u1(s,f);if(!_){var N=A[A.length-1].measure,H=N.maps?N.maps[N.maps.length-1]:N.map;_={node:H[H.length-1],offset:H[H.length-2]-H[H.length-3]}}if(!x||!_){r.removeAllRanges();return}var X=r.rangeCount&&r.getRangeAt(0),K;try{K=V(x.node,x.offset,_.offset,_.node)}catch{}K&&(!o&&s.state.focused?(r.collapse(x.node,x.offset),K.collapsed||(r.removeAllRanges(),r.addRange(K))):(r.removeAllRanges(),r.addRange(K)),X&&r.anchorNode==null?r.addRange(X):o&&this.startGracePeriod()),this.rememberSelection()}},dt.prototype.startGracePeriod=function(){var r=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){r.gracePeriod=!1,r.selectionChanged()&&r.cm.operation(function(){return r.cm.curOp.selectionChanged=!0})},20)},dt.prototype.showMultipleSelections=function(r){F(this.cm.display.cursorDiv,r.cursors),F(this.cm.display.selectionDiv,r.selection)},dt.prototype.rememberSelection=function(){var r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset},dt.prototype.selectionInEditor=function(){var r=this.getSelection();if(!r.rangeCount)return!1;var s=r.getRangeAt(0).commonAncestorContainer;return Z(this.div,s)},dt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ue(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},dt.prototype.blur=function(){this.div.blur()},dt.prototype.getField=function(){return this.div},dt.prototype.supportsTouch=function(){return!0},dt.prototype.receivedFocus=function(){var r=this,s=this;this.selectionInEditor()?setTimeout(function(){return r.pollSelection()},20):Pn(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)},dt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},dt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),s=this.cm;if(O&&m&&this.cm.display.gutterSpecs.length&&X2(r.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,r.anchorNode,r.anchorOffset),u=pc(s,r.focusNode,r.focusOffset);l&&u&&Pn(s,function(){un(s.doc,qi(l,u),I),(l.bad||u.bad)&&(s.curOp.selectionChanged=!0)})}}},dt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,s=r.display,l=r.doc.sel.primary(),u=l.from(),f=l.to();if(u.ch==0&&u.line>r.firstLine()&&(u=W(u.line-1,Le(r.doc,u.line-1).length)),f.ch==Le(r.doc,f.line).text.length&&f.line<r.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=As(r,u.line))==0?(b=ut(s.view[0].line),A=s.view[0].node):(b=ut(s.view[v].line),A=s.view[v-1].node.nextSibling);var x=As(r,f.line),_,N;if(x==s.view.length-1?(_=s.viewTo-1,N=s.lineDiv.lastChild):(_=ut(s.view[x+1].line)-1,N=s.view[x+1].node.previousSibling),!A)return!1;for(var H=r.doc.splitLines(Q2(r,A,N,b,_)),X=ii(r.doc,W(b,0),W(_,Le(r.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,te=0,le=H[0],me=X[0],we=Math.min(le.length,me.length);K<we&&le.charCodeAt(K)==me.charCodeAt(K);)++K;for(var Ce=he(H),De=he(X),Fe=Math.min(Ce.length-(H.length==1?K:0),De.length-(X.length==1?K:0));te<Fe&&Ce.charCodeAt(Ce.length-te-1)==De.charCodeAt(De.length-te-1);)++te;if(H.length==1&&X.length==1&&b==u.line)for(;K&&K>u.ch&&Ce.charCodeAt(Ce.length-te-1)==De.charCodeAt(De.length-te-1);)K--,te++;H[H.length-1]=Ce.slice(0,Ce.length-te).replace(/^\u200b+/,""),H[0]=H[0].slice(K).replace(/\u200b+$/,"");var Ie=W(b,K),Oe=W(_,X.length?he(X).length-te:0);if(H.length>1||H[0]||ee(Ie,Oe))return _o(r.doc,H,Ie,Oe,"+input"),!0},dt.prototype.ensurePolled=function(){this.forceCompositionEnd()},dt.prototype.reset=function(){this.forceCompositionEnd()},dt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},dt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},dt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&Pn(this.cm,function(){return Dn(r.cm)})},dt.prototype.setUneditable=function(r){r.contentEditable="false"},dt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Md)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},dt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},dt.prototype.onContextMenu=function(){},dt.prototype.resetPosition=function(){},dt.prototype.needsContentAttribute=!0;function u1(r,s){var l=ad(r,s.line);if(!l||l.hidden)return null;var u=Le(r.doc,s.line),f=Im(l,u,s.line),v=Dt(u,r.doc.direction),b="left";if(v){var A=tn(v,s.ch);b=A%2?"right":"left"}var x=zm(f.map,s.ch,b);return x.offset=x.collapse=="right"?x.end:x.start,x}function X2(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function ko(r,s){return s&&(r.bad=!0),r}function Q2(r,s,l,u,f){var v="",b=!1,A=r.doc.lineSeparator(),x=!1;function _(K){return function(te){return te.id==K}}function N(){b&&(v+=A,x&&(v+=A),b=x=!1)}function H(K){K&&(N(),v+=K)}function X(K){if(K.nodeType==1){var te=K.getAttribute("cm-text");if(te){H(te);return}var le=K.getAttribute("cm-marker"),me;if(le){var we=r.findMarks(W(u,0),W(f+1,0),_(+le));we.length&&(me=we[0].find(0))&&H(ii(r.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&&N();for(var De=0;De<K.childNodes.length;De++)X(K.childNodes[De]);/^(pre|p)$/i.test(K.nodeName)&&(x=!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,x=!1;return v}function pc(r,s,l){var u;if(s==r.display.lineDiv){if(u=r.display.lineDiv.childNodes[l],!u)return ko(r.clipPos(W(r.display.viewTo-1)),!0);s=null,l=0}else for(u=s;;u=u.parentNode){if(!u||u==r.display.lineDiv)return null;if(u.parentNode&&u.parentNode==r.display.lineDiv)break}for(var f=0;f<r.display.view.length;f++){var v=r.display.view[f];if(v.node==u)return Y2(v,s,l)}}function Y2(r,s,l){var u=r.text.firstChild,f=!1;if(!s||!Z(u,s))return ko(W(ut(r.line),0),!0);if(s==u&&(f=!0,s=u.childNodes[l],l=0,!s)){var v=r.rest?he(r.rest):r.line;return ko(W(ut(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 x=r.measure,_=x.maps;function N(me,we,Ce){for(var De=-1;De<(_?_.length:0);De++)for(var Fe=De<0?x.map:_[De],Ie=0;Ie<Fe.length;Ie+=3){var Oe=Fe[Ie+2];if(Oe==me||Oe==we){var We=ut(De<0?r.line:r.rest[De]),mt=Fe[Ie]+Ce;return(Ce<0||Oe!=me)&&(mt=Fe[Ie+(Ce?1:0)]),W(We,mt)}}}var H=N(b,A,l);if(H)return ko(H,f);for(var X=A.nextSibling,K=b?b.nodeValue.length-l:0;X;X=X.nextSibling){if(H=N(X,X.firstChild,0),H)return ko(W(H.line,H.ch-K),f);K+=X.textContent.length}for(var te=A.previousSibling,le=l;te;te=te.previousSibling){if(H=N(te,te.firstChild,-1),H)return ko(W(H.line,H.ch+le),f);le+=te.textContent.length}}var Ot=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ot.prototype.init=function(r){var s=this,l=this,u=this.cm;this.createField(r);var f=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),S&&(f.style.width="0px"),Ae(f,"input",function(){d&&p>=9&&s.hasSelection&&(s.hasSelection=null),l.poll()}),Ae(f,"paste",function(b){Tt(u,b)||r1(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=s1(u);dc({lineWise:!0,text:A.text}),b.type=="cut"?u.setSelections(A.ranges,null,I):(l.prevInput="",f.value=A.text.join(`
|
|
36
|
-
`),_e(f))}else return;b.type=="cut"&&(u.state.cutIncoming=+new Date)}}Ae(f,"cut",v),Ae(f,"copy",v),Ae(r.scroller,"paste",function(b){if(!(ai(r,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)}}),Ae(r.lineSpace,"selectstart",function(b){ai(r,b)||an(b)}),Ae(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"})}}),Ae(f,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Ot.prototype.createField=function(r){this.wrapper=o1(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;zd(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},Ot.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},Ot.prototype.prepareSelection=function(){var r=this.cm,s=r.display,l=r.doc,u=Ym(r);if(r.options.moveInputWithCursor){var f=pr(r,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},Ot.prototype.showSelection=function(r){var s=this.cm,l=s.display;F(l.cursorDiv,r.cursors),F(l.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},Ot.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){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 r||(this.prevInput=this.textarea.value="",d&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ot.prototype.getField=function(){return this.textarea},Ot.prototype.supportsTouch=function(){return!1},Ot.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!B||ue(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Ot.prototype.blur=function(){this.textarea.blur()},Ot.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ot.prototype.receivedFocus=function(){this.slowPoll()},Ot.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},Ot.prototype.fastPoll=function(){var r=!1,s=this;s.pollingFast=!0;function l(){var u=s.poll();!u&&!r?(r=!0,s.polling.set(60,l)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,l)},Ot.prototype.poll=function(){var r=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||k&&/[\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 Pn(s,function(){Md(s,f.slice(b),u.length-b,null,r.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
37
|
-
`)>-1?l.value=r.prevInput="":r.prevInput=f,r.composing&&(r.composing.range.clear(),r.composing.range=s.markText(r.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ot.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ot.prototype.onKeyPress=function(){d&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ot.prototype.onContextMenu=function(r){var s=this,l=s.cm,u=l.display,f=s.textarea;s.contextMenuPending&&s.contextMenuPending();var v=Ds(l,r),b=u.scroller.scrollTop;if(!v||$)return;var A=l.options.resetSelectionOnContextMenu;A&&l.doc.sel.contains(v)==-1&&Kt(l,un)(l.doc,qi(v),I);var x=f.style.cssText,_=s.wrapper.style.cssText,N=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
38
|
-
top: `+(r.clientY-N.top-5)+"px; left: "+(r.clientX-N.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=x,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,Sy)(l):le++<10?u.detectingSelectAll=setTimeout(me,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(me,200)}}if(d&&p>=9&&X(),oe){ti(r);var te=function(){on(window,"mouseup",te),setTimeout(K,20)};Ae(window,"mouseup",te)}else setTimeout(K,50)},Ot.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},Ot.prototype.setUneditable=function(){},Ot.prototype.needsContentAttribute=!1;function Z2(r,s){if(s=s?se(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var l=ue(r.ownerDocument);s.autofocus=l==r||r.getAttribute("autofocus")!=null&&l==document.body}function u(){r.value=A.getValue()}var f;if(r.form&&(Ae(r.form,"submit",u),!s.leaveSubmitMethodAlone)){var v=r.form;f=v.submit;try{var b=v.submit=function(){u(),v.submit=f,v.submit(),v.submit=b}}catch{}}s.finishInit=function(x){x.save=u,x.getTextArea=function(){return r},x.toTextArea=function(){x.toTextArea=isNaN,u(),r.parentNode.removeChild(x.getWrapperElement()),r.style.display="",r.form&&(on(r.form,"submit",u),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=f))}},r.style.display="none";var A=xt(function(x){return r.parentNode.insertBefore(x,r.nextSibling)},s);return A}function J2(r){r.off=on,r.on=Ae,r.wheelEventPixels=o2,r.Doc=An,r.splitLines=za,r.countColumn=J,r.findColumn=ae,r.isWordChar=Pe,r.Pass=ke,r.signal=wt,r.Line=go,r.changeEnd=ji,r.scrollbarModel=ry,r.Pos=W,r.cmpPos=ee,r.modes=hr,r.mimeModes=Ii,r.resolveMode=On,r.getMode=ni,r.modeExtensions=Ri,r.extendMode=Ml,r.copyState=ri,r.startState=Ua,r.innerMode=Mi,r.commands=cu,r.keyMap=li,r.keyName=qy,r.isModifierKey=Uy,r.lookupKey=Fo,r.normalizeKeyMap=F2,r.StringStream=kt,r.SharedTextMarker=au,r.TextMarker=Wi,r.LineWidget=ou,r.e_preventDefault=an,r.e_stopPropagation=ys,r.e_stop=ti,r.addClass=ge,r.contains=Z,r.rmClass=z,r.keyNames=Gi}j2(xt),K2(xt);var e$="iter insert remove copy getEditor constructor".split(" ");for(var gc in An.prototype)An.prototype.hasOwnProperty(gc)&&Se(e$,gc)<0&&(xt.prototype[gc]=function(r){return function(){return r.apply(this.doc,arguments)}}(An.prototype[gc]));return dn(An),xt.inputStyles={textarea:Ot,contenteditable:dt},xt.defineMode=function(r){!xt.defaults.mode&&r!="null"&&(xt.defaults.mode=r),Rl.apply(this,arguments)},xt.defineMIME=ho,xt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),xt.defineMIME("text/plain","null"),xt.defineExtension=function(r,s){xt.prototype[r]=s},xt.defineDocExtension=function(r,s){An.prototype[r]=s},xt.fromTextArea=Z2,J2(xt),xt.version="5.65.12",xt})})(KLe);const XLe=ds;var QLe={};(function(e,t){(function(n){n(ds)})(function(n){n.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 T(qt){return{type:qt,style:"keyword"}}var q=T("keyword a"),W=T("keyword b"),ee=T("keyword c"),Ue=T("keyword d"),Qe=T("operator"),st={type:"atom",style:"atom"};return{if:T("if"),while:q,with:q,else:W,do:W,try:W,finally:W,return:Ue,break:Ue,continue:Ue,new:T("new"),delete:ee,void:ee,throw:ee,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Qe,typeof:Qe,instanceof:Qe,true:st,false:st,null:st,undefined:st,NaN:st,Infinity:st,this:T("this"),class:T("class"),super:T("atom"),yield:ee,export:T("export"),import:T("import"),extends:ee,await:ee}}(),w=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(T){for(var q=!1,W,ee=!1;(W=T.next())!=null;){if(!q){if(W=="/"&&!ee)return;W=="["?ee=!0:ee&&W=="]"&&(ee=!1)}q=!q&&W=="\\"}}var E,C;function S(T,q,W){return E=T,C=W,q}function O(T,q){var W=T.next();if(W=='"'||W=="'")return q.tokenize=B(W),q.tokenize(T,q);if(W=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(W=="."&&T.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(W))return S(W);if(W=="="&&T.eat(">"))return S("=>","operator");if(W=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(W))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(W=="/")return T.eat("*")?(q.tokenize=k,k(T,q)):T.eat("/")?(T.skipToEnd(),S("comment","comment")):Or(T,q,1)?(L(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(T.eat("="),S("operator","operator",T.current()));if(W=="`")return q.tokenize=M,M(T,q);if(W=="#"&&T.peek()=="!")return T.skipToEnd(),S("meta","meta");if(W=="#"&&T.eatWhile(y))return S("variable","property");if(W=="<"&&T.match("!--")||W=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),S("comment","comment");if(w.test(W))return(W!=">"||!q.lexical||q.lexical.type!=">")&&(T.eat("=")?(W=="!"||W=="=")&&T.eat("="):/[<>*+\-|&?]/.test(W)&&(T.eat(W),W==">"&&T.eat(W))),W=="?"&&T.eat(".")?S("."):S("operator","operator",T.current());if(y.test(W)){T.eatWhile(y);var ee=T.current();if(q.lastType!="."){if(m.propertyIsEnumerable(ee)){var Ue=m[ee];return S(Ue.type,Ue.style,ee)}if(ee=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",ee)}return S("variable","variable",ee)}}function B(T){return function(q,W){var ee=!1,Ue;if(h&&q.peek()=="@"&&q.match($))return W.tokenize=O,S("jsonld-keyword","meta");for(;(Ue=q.next())!=null&&!(Ue==T&&!ee);)ee=!ee&&Ue=="\\";return ee||(W.tokenize=O),S("string","string")}}function k(T,q){for(var W=!1,ee;ee=T.next();){if(ee=="/"&&W){q.tokenize=O;break}W=ee=="*"}return S("comment","comment")}function M(T,q){for(var W=!1,ee;(ee=T.next())!=null;){if(!W&&(ee=="`"||ee=="$"&&T.eat("{"))){q.tokenize=O;break}W=!W&&ee=="\\"}return S("quasi","string-2",T.current())}var U="([{}])";function j(T,q){q.fatArrowAt&&(q.fatArrowAt=null);var W=T.string.indexOf("=>",T.start);if(!(W<0)){if(g){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,W));ee&&(W=ee.index)}for(var Ue=0,Qe=!1,st=W-1;st>=0;--st){var qt=T.string.charAt(st),Wn=U.indexOf(qt);if(Wn>=0&&Wn<3){if(!Ue){++st;break}if(--Ue==0){qt=="("&&(Qe=!0);break}}else if(Wn>=3&&Wn<6)++Ue;else if(y.test(qt))Qe=!0;else if(/["'\/`]/.test(qt))for(;;--st){if(st==0)return;var He=T.string.charAt(st-1);if(He==qt&&T.string.charAt(st-2)!="\\"){st--;break}}else if(Qe&&!Ue){++st;break}}Qe&&!Ue&&(q.fatArrowAt=st)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function oe(T,q,W,ee,Ue,Qe){this.indented=T,this.column=q,this.type=W,this.prev=Ue,this.info=Qe,ee!=null&&(this.align=ee)}function Y(T,q){if(!p)return!1;for(var W=T.localVars;W;W=W.next)if(W.name==q)return!0;for(var ee=T.context;ee;ee=ee.prev)for(var W=ee.vars;W;W=W.next)if(W.name==q)return!0}function z(T,q,W,ee,Ue){var Qe=T.cc;for(P.state=T,P.stream=Ue,P.marked=null,P.cc=Qe,P.style=q,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var st=Qe.length?Qe.pop():d?ke:Se;if(st(W,ee)){for(;Qe.length&&Qe[Qe.length-1].lex;)Qe.pop()();return P.marked?P.marked:W=="variable"&&Y(T,ee)?"variable-2":q}}}var P={state:null,column:null,marked:null,cc:null};function F(){for(var T=arguments.length-1;T>=0;T--)P.cc.push(arguments[T])}function D(){return F.apply(null,arguments),!0}function R(T,q){for(var W=q;W;W=W.next)if(W.name==T)return!0;return!1}function V(T){var q=P.state;if(P.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var W=Z(T,q.context);if(W!=null){q.context=W;return}}else if(!R(T,q.localVars)){q.localVars=new $e(T,q.localVars);return}}o.globalVars&&!R(T,q.globalVars)&&(q.globalVars=new $e(T,q.globalVars))}}function Z(T,q){if(q)if(q.block){var W=Z(T,q.prev);return W?W==q.prev?q:new ge(W,q.vars,!0):null}else return R(T,q.vars)?q:new ge(q.prev,new $e(T,q.vars),!1);else return null}function ue(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function ge(T,q,W){this.prev=T,this.vars=q,this.block=W}function $e(T,q){this.name=T,this.next=q}var _e=new $e("this",new $e("arguments",null));function ze(){P.state.context=new ge(P.state.context,P.state.localVars,!1),P.state.localVars=_e}function Xe(){P.state.context=new ge(P.state.context,P.state.localVars,!0),P.state.localVars=null}ze.lex=Xe.lex=!0;function ie(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}ie.lex=!0;function se(T,q){var W=function(){var ee=P.state,Ue=ee.indented;if(ee.lexical.type=="stat")Ue=ee.lexical.indented;else for(var Qe=ee.lexical;Qe&&Qe.type==")"&&Qe.align;Qe=Qe.prev)Ue=Qe.indented;ee.lexical=new oe(Ue,P.stream.column(),T,null,ee.lexical,q)};return W.lex=!0,W}function J(){var T=P.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}J.lex=!0;function fe(T){function q(W){return W==T?D():T==";"||W=="}"||W==")"||W=="]"?F():D(q)}return q}function Se(T,q){return T=="var"?D(se("vardef",q),ti,fe(";"),J):T=="keyword a"?D(se("form"),G,Se,J):T=="keyword b"?D(se("form"),Se,J):T=="keyword d"?P.stream.match(/^\s*$/,!1)?D():D(se("stat"),ae,fe(";"),J):T=="debugger"?D(fe(";")):T=="{"?D(se("}"),Xe,Vn,J,ie):T==";"?D():T=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==J&&P.state.cc.pop()(),D(se("form"),G,Se,J,fo)):T=="function"?D(Lr):T=="for"?D(se("form"),Xe,Nl,Se,ie,J):T=="class"||g&&q=="interface"?(P.marked="keyword",D(se("form",T=="class"?T:q),Rl,J)):T=="variable"?g&&q=="declare"?(P.marked="keyword",D(Se)):g&&(q=="module"||q=="enum"||q=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",q=="enum"?D(po):q=="type"?D(Il,fe("operator"),Ae,fe(";")):D(se("form"),wn,fe("{"),se("}"),Vn,J,J)):g&&q=="namespace"?(P.marked="keyword",D(se("form"),ke,Se,J)):g&&q=="abstract"?(P.marked="keyword",D(Se)):D(se("stat"),Re):T=="switch"?D(se("form"),G,fe("{"),se("}","switch"),Xe,Vn,J,J,ie):T=="case"?D(ke,fe(":")):T=="default"?D(fe(":")):T=="catch"?D(se("form"),ze,vt,Se,J,ie):T=="export"?D(se("stat"),Ri,J):T=="import"?D(se("stat"),ri,J):T=="async"?D(Se):q=="@"?D(ke,Se):F(se("stat"),ke,fe(";"),J)}function vt(T){if(T=="(")return D(hr,fe(")"))}function ke(T,q){return re(T,q,!1)}function I(T,q){return re(T,q,!0)}function G(T){return T!="("?F():D(se(")"),ae,fe(")"),J)}function re(T,q,W){if(P.state.fatArrowAt==P.stream.start){var ee=W?ve:Ee;if(T=="(")return D(ze,se(")"),et(hr,")"),J,fe("=>"),ee,ie);if(T=="variable")return F(ze,wn,fe("=>"),ee,ie)}var Ue=W?ye:ce;return ne.hasOwnProperty(T)?D(Ue):T=="function"?D(Lr,Ue):T=="class"||g&&q=="interface"?(P.marked="keyword",D(se("form"),Ii,J)):T=="keyword c"||T=="async"?D(W?I:ke):T=="("?D(se(")"),ae,fe(")"),J,Ue):T=="operator"||T=="spread"?D(W?I:ke):T=="["?D(se("]"),ii,J,Ue):T=="{"?Bn(it,"}",null,Ue):T=="quasi"?F(he,Ue):T=="new"?D(Ne(W)):D()}function ae(T){return T.match(/[;\}\)\],]/)?F():F(ke)}function ce(T,q){return T==","?D(ae):ye(T,q,!1)}function ye(T,q,W){var ee=W==!1?ce:ye,Ue=W==!1?ke:I;if(T=="=>")return D(ze,W?ve:Ee,ie);if(T=="operator")return/\+\+|--/.test(q)||g&&q=="!"?D(ee):g&&q=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?D(se(">"),et(Ae,">"),J,ee):q=="?"?D(ke,fe(":"),Ue):D(Ue);if(T=="quasi")return F(he,ee);if(T!=";"){if(T=="(")return Bn(I,")","call",ee);if(T==".")return D(Ge,ee);if(T=="[")return D(se("]"),ae,fe("]"),J,ee);if(g&&q=="as")return P.marked="keyword",D(Ae,ee);if(T=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),D(Ue)}}function he(T,q){return T!="quasi"?F():q.slice(q.length-2)!="${"?D(he):D(ae,be)}function be(T){if(T=="}")return P.marked="string-2",P.state.tokenize=M,D(he)}function Ee(T){return j(P.stream,P.state),F(T=="{"?Se:ke)}function ve(T){return j(P.stream,P.state),F(T=="{"?Se:I)}function Ne(T){return function(q){return q=="."?D(T?Pe:Be):q=="variable"&&g?D(an,T?ye:ce):F(T?I:ke)}}function Be(T,q){if(q=="target")return P.marked="keyword",D(ce)}function Pe(T,q){if(q=="target")return P.marked="keyword",D(ye)}function Re(T){return T==":"?D(J,Se):F(ce,fe(";"),J)}function Ge(T){if(T=="variable")return P.marked="property",D()}function it(T,q){if(T=="async")return P.marked="property",D(it);if(T=="variable"||P.style=="keyword"){if(P.marked="property",q=="get"||q=="set")return D(tt);var W;return g&&P.state.fatArrowAt==P.stream.start&&(W=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+W[0].length),D(ft)}else{if(T=="number"||T=="string")return P.marked=h?"property":P.style+" property",D(ft);if(T=="jsonld-keyword")return D(ft);if(g&&ue(q))return P.marked="keyword",D(it);if(T=="[")return D(ke,tn,fe("]"),ft);if(T=="spread")return D(I,ft);if(q=="*")return P.marked="keyword",D(it);if(T==":")return F(ft)}}function tt(T){return T!="variable"?F(ft):(P.marked="property",D(Lr))}function ft(T){if(T==":")return D(I);if(T=="(")return F(Lr)}function et(T,q,W){function ee(Ue,Qe){if(W?W.indexOf(Ue)>-1:Ue==","){var st=P.state.lexical;return st.info=="call"&&(st.pos=(st.pos||0)+1),D(function(qt,Wn){return qt==q||Wn==q?F():F(T)},ee)}return Ue==q||Qe==q?D():W&&W.indexOf(";")>-1?F(T):D(fe(q))}return function(Ue,Qe){return Ue==q||Qe==q?D():F(T,ee)}}function Bn(T,q,W){for(var ee=3;ee<arguments.length;ee++)P.cc.push(arguments[ee]);return D(se(q,W),et(T,q),J)}function Vn(T){return T=="}"?D():F(Se,Vn)}function tn(T,q){if(g){if(T==":")return D(Ae);if(q=="?")return D(tn)}}function co(T,q){if(g&&(T==":"||q=="in"))return D(Ae)}function Dt(T){if(g&&T==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?D(ke,bn,Ae):D(Ae)}function bn(T,q){if(q=="is")return P.marked="keyword",D()}function Ae(T,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return P.marked="keyword",D(q=="typeof"?I:Ae);if(T=="variable"||q=="void")return P.marked="type",D(dn);if(q=="|"||q=="&")return D(Ae);if(T=="string"||T=="number"||T=="atom")return D(dn);if(T=="[")return D(se("]"),et(Ae,"]",","),J,dn);if(T=="{")return D(se("}"),on,J,dn);if(T=="(")return D(et(hn,")"),Ia,dn);if(T=="<")return D(et(Ae,">"),Ae);if(T=="quasi")return F(Tt,dn)}function Ia(T){if(T=="=>")return D(Ae)}function on(T){return T.match(/[\}\)\]]/)?D():T==","||T==";"?D(on):F(wt,on)}function wt(T,q){if(T=="variable"||P.style=="keyword")return P.marked="property",D(wt);if(q=="?"||T=="number"||T=="string")return D(wt);if(T==":")return D(Ae);if(T=="[")return D(fe("variable"),co,fe("]"),wt);if(T=="(")return F(Br,wt);if(!T.match(/[;\}\)\],]/))return D()}function Tt(T,q){return T!="quasi"?F():q.slice(q.length-2)!="${"?D(Tt):D(Ae,Pl)}function Pl(T){if(T=="}")return P.marked="string-2",P.state.tokenize=M,D(Tt)}function hn(T,q){return T=="variable"&&P.stream.match(/^\s*[?:]/,!1)||q=="?"?D(hn):T==":"?D(Ae):T=="spread"?D(hn):F(Ae)}function dn(T,q){if(q=="<")return D(se(">"),et(Ae,">"),J,dn);if(q=="|"||T=="."||q=="&")return D(Ae);if(T=="[")return D(Ae,fe("]"),dn);if(q=="extends"||q=="implements")return P.marked="keyword",D(Ae);if(q=="?")return D(Ae,fe(":"),Ae)}function an(T,q){if(q=="<")return D(se(">"),et(Ae,">"),J,dn)}function ys(){return F(Ae,Ra)}function Ra(T,q){if(q=="=")return D(Ae)}function ti(T,q){return q=="enum"?(P.marked="keyword",D(po)):F(wn,tn,tr,Qh)}function wn(T,q){if(g&&ue(q))return P.marked="keyword",D(wn);if(T=="variable")return V(q),D();if(T=="spread")return D(wn);if(T=="[")return Bn(Xh,"]");if(T=="{")return Bn(Ma,"}")}function Ma(T,q){return T=="variable"&&!P.stream.match(/^\s*:/,!1)?(V(q),D(tr)):(T=="variable"&&(P.marked="property"),T=="spread"?D(wn):T=="}"?F():T=="["?D(ke,fe("]"),fe(":"),Ma):D(fe(":"),wn,tr))}function Xh(){return F(wn,tr)}function tr(T,q){if(q=="=")return D(I)}function Qh(T){if(T==",")return D(ti)}function fo(T,q){if(T=="keyword b"&&q=="else")return D(se("form","else"),Se,J)}function Nl(T,q){if(q=="await")return D(Nl);if(T=="(")return D(se(")"),za,J)}function za(T){return T=="var"?D(ti,Ni):T=="variable"?D(Ni):F(Ni)}function Ni(T,q){return T==")"?D():T==";"?D(Ni):q=="in"||q=="of"?(P.marked="keyword",D(ke,Ni)):F(ke,Ni)}function Lr(T,q){if(q=="*")return P.marked="keyword",D(Lr);if(T=="variable")return V(q),D(Lr);if(T=="(")return D(ze,se(")"),et(hr,")"),J,Dt,Se,ie);if(g&&q=="<")return D(se(">"),et(ys,">"),J,Lr)}function Br(T,q){if(q=="*")return P.marked="keyword",D(Br);if(T=="variable")return V(q),D(Br);if(T=="(")return D(ze,se(")"),et(hr,")"),J,Dt,ie);if(g&&q=="<")return D(se(">"),et(ys,">"),J,Br)}function Il(T,q){if(T=="keyword"||T=="variable")return P.marked="type",D(Il);if(q=="<")return D(se(">"),et(ys,">"),J)}function hr(T,q){return q=="@"&&D(ke,hr),T=="spread"?D(hr):g&&ue(q)?(P.marked="keyword",D(hr)):g&&T=="this"?D(tn,tr):F(wn,tn,tr)}function Ii(T,q){return T=="variable"?Rl(T,q):ho(T,q)}function Rl(T,q){if(T=="variable")return V(q),D(ho)}function ho(T,q){if(q=="<")return D(se(">"),et(ys,">"),J,ho);if(q=="extends"||q=="implements"||g&&T==",")return q=="implements"&&(P.marked="keyword"),D(g?Ae:ke,ho);if(T=="{")return D(se("}"),On,J)}function On(T,q){if(T=="async"||T=="variable"&&(q=="static"||q=="get"||q=="set"||g&&ue(q))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",D(On);if(T=="variable"||P.style=="keyword")return P.marked="property",D(ni,On);if(T=="number"||T=="string")return D(ni,On);if(T=="[")return D(ke,tn,fe("]"),ni,On);if(q=="*")return P.marked="keyword",D(On);if(g&&T=="(")return F(Br,On);if(T==";"||T==",")return D(On);if(T=="}")return D();if(q=="@")return D(ke,On)}function ni(T,q){if(q=="!"||q=="?")return D(ni);if(T==":")return D(Ae,tr);if(q=="=")return D(I);var W=P.state.lexical.prev,ee=W&&W.info=="interface";return F(ee?Br:Lr)}function Ri(T,q){return q=="*"?(P.marked="keyword",D(Le,fe(";"))):q=="default"?(P.marked="keyword",D(ke,fe(";"))):T=="{"?D(et(Ml,"}"),Le,fe(";")):F(Se)}function Ml(T,q){if(q=="as")return P.marked="keyword",D(fe("variable"));if(T=="variable")return F(I,Ml)}function ri(T){return T=="string"?D():T=="("?F(ke):T=="."?F(ce):F(Mi,Ua,Le)}function Mi(T,q){return T=="{"?Bn(Mi,"}"):(T=="variable"&&V(q),q=="*"&&(P.marked="keyword"),D(kt))}function Ua(T){if(T==",")return D(Mi,Ua)}function kt(T,q){if(q=="as")return P.marked="keyword",D(Mi)}function Le(T,q){if(q=="from")return P.marked="keyword",D(ke)}function ii(T){return T=="]"?D():F(et(I,"]"))}function po(){return F(se("form"),wn,fe("{"),se("}"),et(nr,"}"),J,J)}function nr(){return F(wn,tr)}function ut(T,q){return T.lastType=="operator"||T.lastType==","||w.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Or(T,q,W){return q.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(W||0)))}return{startState:function(T){var q={tokenize:O,lastType:"sof",cc:[],lexical:new oe((T||0)-a,0,"block",!1),localVars:o.localVars,context:o.localVars&&new ge(null,null,!1),indented:T||0};return o.globalVars&&typeof o.globalVars=="object"&&(q.globalVars=o.globalVars),q},token:function(T,q){if(T.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=T.indentation(),j(T,q)),q.tokenize!=k&&T.eatSpace())return null;var W=q.tokenize(T,q);return E=="comment"?W:(q.lastType=E=="operator"&&(C=="++"||C=="--")?"incdec":E,z(q,W,E,C,T))},indent:function(T,q){if(T.tokenize==k||T.tokenize==M)return n.Pass;if(T.tokenize!=O)return 0;var W=q&&q.charAt(0),ee=T.lexical,Ue;if(!/^\s*else\b/.test(q))for(var Qe=T.cc.length-1;Qe>=0;--Qe){var st=T.cc[Qe];if(st==J)ee=ee.prev;else if(st!=fo&&st!=ie)break}for(;(ee.type=="stat"||ee.type=="form")&&(W=="}"||(Ue=T.cc[T.cc.length-1])&&(Ue==ce||Ue==ye)&&!/^[,\.=+\-*:?[\(]/.test(q));)ee=ee.prev;c&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var qt=ee.type,Wn=W==qt;return qt=="vardef"?ee.indented+(T.lastType=="operator"||T.lastType==","?ee.info.length+1:0):qt=="form"&&W=="{"?ee.indented:qt=="form"?ee.indented+a:qt=="stat"?ee.indented+(ut(T,q)?c||a:0):ee.info=="switch"&&!Wn&&o.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(q)?a:2*a):ee.align?ee.column+(Wn?0:1):ee.indented+(Wn?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:Or,skipExpression:function(T){z(T,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var YLe={};(function(e,t){(function(n){n(ds)})(function(n){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};n.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,R){function V(ge){return R.tokenize=ge,ge(D,R)}var Z=D.next();if(Z=="<")return D.eat("!")?D.eat("[")?D.match("CDATA[")?V(E("atom","]]>")):null:D.match("--")?V(E("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),V(C(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),R.tokenize=E("meta","?>"),"meta"):(y=D.eat("/")?"closeTag":"openTag",R.tokenize=$,"tag bracket");if(Z=="&"){var ue;return D.eat("#")?D.eat("x")?ue=D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):ue=D.eatWhile(/[\d]/)&&D.eat(";"):ue=D.eatWhile(/[\w\.\-:]/)&&D.eat(";"),ue?"atom":"error"}else return D.eatWhile(/[^&<]/),null}w.isInText=!0;function $(D,R){var V=D.next();if(V==">"||V=="/"&&D.eat(">"))return R.tokenize=w,y=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return y="equals",null;if(V=="<"){R.tokenize=w,R.state=M,R.tagName=R.tagStart=null;var Z=R.tokenize(D,R);return Z?Z+" tag error":"tag error"}else return/[\'\"]/.test(V)?(R.tokenize=L(V),R.stringStartCol=D.column(),R.tokenize(D,R)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(D){var R=function(V,Z){for(;!V.eol();)if(V.next()==D){Z.tokenize=$;break}return"string"};return R.isInAttribute=!0,R}function E(D,R){return function(V,Z){for(;!V.eol();){if(V.match(R)){Z.tokenize=w;break}V.next()}return D}}function C(D){return function(R,V){for(var Z;(Z=R.next())!=null;){if(Z=="<")return V.tokenize=C(D+1),V.tokenize(R,V);if(Z==">")if(D==1){V.tokenize=w;break}else return V.tokenize=C(D-1),V.tokenize(R,V)}return"meta"}}function S(D){return D&&D.toLowerCase()}function O(D,R,V){this.prev=D.context,this.tagName=R||"",this.indent=D.indented,this.startOfLine=V,(d.doNotIndent.hasOwnProperty(R)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function B(D){D.context&&(D.context=D.context.prev)}function k(D,R){for(var V;;){if(!D.context||(V=D.context.tagName,!d.contextGrabbers.hasOwnProperty(S(V))||!d.contextGrabbers[S(V)].hasOwnProperty(S(R))))return;B(D)}}function M(D,R,V){return D=="openTag"?(V.tagStart=R.column(),U):D=="closeTag"?j:M}function U(D,R,V){return D=="word"?(V.tagName=R.current(),m="tag",Y):d.allowMissingTagName&&D=="endTag"?(m="tag bracket",Y(D,R,V)):(m="error",U)}function j(D,R,V){if(D=="word"){var Z=R.current();return V.context&&V.context.tagName!=Z&&d.implicitlyClosed.hasOwnProperty(S(V.context.tagName))&&B(V),V.context&&V.context.tagName==Z||d.matchClosing===!1?(m="tag",ne):(m="tag error",oe)}else return d.allowMissingTagName&&D=="endTag"?(m="tag bracket",ne(D,R,V)):(m="error",oe)}function ne(D,R,V){return D!="endTag"?(m="error",ne):(B(V),M)}function oe(D,R,V){return m="error",ne(D,R,V)}function Y(D,R,V){if(D=="word")return m="attribute",z;if(D=="endTag"||D=="selfcloseTag"){var Z=V.tagName,ue=V.tagStart;return V.tagName=V.tagStart=null,D=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(S(Z))?k(V,Z):(k(V,Z),V.context=new O(V,Z,ue==V.indented)),M}return m="error",Y}function z(D,R,V){return D=="equals"?P:(d.allowMissing||(m="error"),Y(D,R,V))}function P(D,R,V){return D=="string"?F:D=="word"&&d.allowUnquoted?(m="string",Y):(m="error",Y(D,R,V))}function F(D,R,V){return D=="string"?F:Y(D,R,V)}return{startState:function(D){var R={tokenize:w,state:M,indented:D||0,tagName:null,tagStart:null,context:null};return D!=null&&(R.baseIndent=D),R},token:function(D,R){if(!R.tagName&&D.sol()&&(R.indented=D.indentation()),D.eatSpace())return null;y=null;var V=R.tokenize(D,R);return(V||y)&&V!="comment"&&(m=null,R.state=R.state(y||V,D,R),m&&(V=m=="error"?V+" error":m)),V},indent:function(D,R,V){var Z=D.context;if(D.tokenize.isInAttribute)return D.tagStart==D.indented?D.stringStartCol+1:D.indented+h;if(Z&&Z.noIndent)return n.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(R))return 0;var ue=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ue&&ue[1])for(;Z;)if(Z.tagName==ue[2]){Z=Z.prev;break}else if(d.implicitlyClosed.hasOwnProperty(S(Z.tagName)))Z=Z.prev;else break;else if(ue)for(;Z;){var ge=d.contextGrabbers[S(Z.tagName)];if(ge&&ge.hasOwnProperty(S(ue[2])))Z=Z.prev;else break}for(;Z&&Z.prev&&!Z.startOfLine;)Z=Z.prev;return Z?Z.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==P&&(D.state=Y)},xmlCurrentTag:function(D){return D.tagName?{name:D.tagName,close:D.type=="closeTag"}:null},xmlCurrentContext:function(D){for(var R=[],V=D.context;V;V=V.prev)R.push(V.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(e,t){(function(n){n(ds,YLe,QLe)})(function(n){function i(a,c,h,d){this.state=a,this.mode=c,this.depth=h,this.prev=d}function o(a){return new i(n.copyState(a.mode,a.state),a.mode,a.depth,a.prev&&o(a.prev))}n.defineMode("jsx",function(a,c){var h=n.getMode(a,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=n.getMode(a,c&&c.base||"javascript");function p(w){var $=w.tagName;w.tagName=null;var L=h.indent(w,"","");return w.tagName=$,L}function g(w,$){return $.context.mode==h?y(w,$,$.context):m(w,$,$.context)}function y(w,$,L){if(L.depth==2)return w.match(/^.*?\*\//)?L.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){h.skipAttribute(L.state);var E=p(L.state),C=L.state.context;if(C&&w.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?E-=a.indentUnit:L.prev.state.lexical&&(E=L.prev.state.lexical.indented)}else L.depth==1&&(E+=a.indentUnit);return $.context=new i(n.startState(d,E),d,0,$.context),null}if(L.depth==1){if(w.peek()=="<")return h.skipAttribute(L.state),$.context=new i(n.startState(h,p(L.state)),h,0,$.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return L.depth=2,g(w,$)}var S=h.token(w,L.state),O=w.current(),B;return/\btag\b/.test(S)?/>$/.test(O)?L.state.context?L.depth=0:$.context=$.context.prev:/^</.test(O)&&(L.depth=1):!S&&(B=O.indexOf("{"))>-1&&w.backUp(O.length-B),S}function m(w,$,L){if(w.peek()=="<"&&d.expressionAllowed(w,L.state))return $.context=new i(n.startState(h,d.indent(L.state,"","")),h,0,$.context),d.skipExpression(L.state),null;var E=d.token(w,L.state);if(!E&&L.depth!=null){var C=w.current();C=="{"?L.depth++:C=="}"&&--L.depth==0&&($.context=$.context.prev)}return E}return{startState:function(){return{context:new i(n.startState(d),d)}},copyState:function(w){return{context:o(w.context)}},token:g,indent:function(w,$,L){return w.context.mode.indent(w.context.state,$,L)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(n){n(ds)})(function(n){n.defineOption("placeholder","",function(p,g,y){var m=y&&y!=n.Init;if(g&&!m)p.on("blur",c),p.on("change",h),p.on("swapDoc",h),n.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),n.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(n){n(ds)})(function(n){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;n.on(this.inner,"mousedown",function(y){if(y.which!=1)return;n.e_preventDefault(y);var m=p.orientation=="horizontal"?"pageX":"pageY",w=y[m],$=p.pos;function L(){n.off(document,"mousemove",E),n.off(document,"mouseup",L)}function E(C){if(C.which!=1)return L();p.moveTo($+(C[m]-w)*(p.total/p.size))}n.on(document,"mousemove",E),n.on(document,"mouseup",L)}),n.on(this.node,"click",function(y){n.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=n.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+m),p.pos!=w&&n.e_preventDefault(y)}n.on(this.node,"mousewheel",g),n.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)},n.scrollbarModel.simple=function(c,h){return new a("CodeMirror-simplescroll",c,h)},n.scrollbarModel.overlay=function(c,h){return new a("CodeMirror-overlayscroll",c,h)}})})();function ZLe(e,t,n={}){const i=XLe.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),Vt(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}),G0(i)}const JLe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},hS=rt({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(e,{expose:t,emit:n}){const i=e,o=uk(),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=Ke(),h=iG(i,"modelValue",n,{passive:!0}),d=_a();return t({cm:d}),Sa(async()=>{d.value=ZLe(c,h,{...i,...o,mode:a[i.mode||""]||i.mode,readOnly:i.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(p){n("save",p.getValue())},"Ctrl-S":function(p){n("save",p.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(p,g)=>(de(),Te("div",JLe,[pe("textarea",{ref_key:"el",ref:c},null,512)]))}}),eBe=rt({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(e,{emit:t}){const n=e,i=Ke(""),o=_a(void 0),a=Ke(!1);Vt(()=>n.file,async()=>{var S;if(!n.file||!((S=n.file)!=null&&S.filepath)){i.value="",o.value=i.value,a.value=!1;return}i.value=await sn.rpc.readFile(n.file.filepath)||"",o.value=i.value,a.value=!1},{immediate:!0});const c=xe(()=>{var S,O;return((O=(S=n.file)==null?void 0:S.filepath)==null?void 0:O.split(/\./g).pop())||"js"}),h=Ke(),d=xe(()=>{var S;return(S=h.value)==null?void 0:S.cm}),p=xe(()=>{var S;return((S=n.file)==null?void 0:S.tasks.filter(O=>{var B;return((B=O.result)==null?void 0:B.state)==="fail"}))||[]}),g=[],y=[],m=[],w=Ke(!1);function $(){m.forEach(([S,O,B])=>{S.removeEventListener("click",O),B()}),m.length=0}nG(h,()=>{var S;(S=d.value)==null||S.refresh()});function L(){a.value=o.value!==d.value.getValue()}Vt(a,S=>{t("draft",S)},{immediate:!0});function E(S){const O=((S==null?void 0:S.stacks)||[]).filter(ne=>{var oe;return ne.file&&ne.file===((oe=n.file)==null?void 0:oe.filepath)}),B=O==null?void 0:O[0];if(!B)return;const k=document.createElement("div");k.className="op80 flex gap-x-2 items-center";const M=document.createElement("pre");M.className="c-red-600 dark:c-red-400",M.textContent=`${" ".repeat(B.column)}^ ${S==null?void 0:S.nameStr}: ${S==null?void 0:S.message}`,k.appendChild(M);const U=document.createElement("span");U.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",U.tabIndex=0,U.ariaLabel="Open in Editor",sE(U,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await cS(B.file,B.line,B.column)};k.appendChild(U),m.push([U,j,()=>pg(U)]),y.push(d.value.addLineClass(B.line-1,"wrap","bg-red-500/10")),g.push(d.value.addLineWidget(B.line-1,k))}Vt([d,p],([S])=>{if(!S){$();return}setTimeout(()=>{$(),g.forEach(O=>O.clear()),y.forEach(O=>{var B;return(B=d.value)==null?void 0:B.removeLineClass(O,"wrap")}),g.length=0,y.length=0,S.on("changes",L),p.value.forEach(O=>{var B,k;(k=(B=O.result)==null?void 0:B.errors)==null||k.forEach(E)}),w.value||S.clearHistory()},100)},{flush:"post"});async function C(S){w.value=!0,await sn.rpc.writeFile(n.file.filepath,S),o.value=S,a.value=!1}return(S,O)=>{const B=hS;return de(),Ze(B,cs({ref_key:"editor",ref:h,modelValue:Q(i),"onUpdate:modelValue":O[0]||(O[0]=k=>Nt(i)?i.value=k:null),"h-full":""},{lineNumbers:!0},{mode:Q(c),"data-testid":"code-mirror",onSave:C}),null,16,["modelValue","mode"])}}}),tBe=rt({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(e){const t=e,n=xe(()=>{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=xe(()=>{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(),Te("div",{class:yt(["fixed inset-0 z-40",e.modelValue?"":"pointer-events-none"])},[pe("div",{class:yt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",e.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",[Q(n)]]),style:Un(e.modelValue?{}:{transform:Q(i)})},[Sr(o.$slots,"default")],6)],2))}}),nBe=["aria-label","opacity","disabled","hover"],Na=rt({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(e){return(t,n)=>(de(),Te("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[Sr(t.$slots,"default",{},()=>[pe("div",{class:yt(e.icon),ma:""},null,2)])],8,nBe))}}),rBe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},iBe={"p-4":"",relative:""},sBe=pe("p",null,"Module Info",-1),oBe={op50:"","font-mono":"","text-sm":""},aBe={key:0,"p-5":""},uBe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},lBe=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),fBe={key:0},hBe={p:"x3 y-1","bg-overlay":"",border:"base b t"},dBe=rt({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(e,{emit:t}){const n=e,i=_W(()=>sn.rpc.getTransformResult(n.id)),o=xe(()=>{var d;return((d=n.id)==null?void 0:d.split(/\./g).pop())||"js"}),a=xe(()=>{var d,p;return((p=(d=i.value)==null?void 0:d.source)==null?void 0:p.trim())||""}),c=xe(()=>{var d,p;return((p=(d=i.value)==null?void 0:d.code)==null?void 0:p.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=xe(()=>{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 FW("Escape",()=>{t("close")}),(d,p)=>{const g=Na,y=hS;return de(),Te("div",rBe,[pe("div",iBe,[sBe,pe("p",oBe,Je(e.id),1),Me(g,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:p[0]||(p[0]=m=>t("close"))})]),Q(i)?(de(),Te(ht,{key:1},[pe("div",uBe,[lBe,cBe,Me(y,cs({"h-full":"","model-value":Q(a),"read-only":""},{lineNumbers:!0},{mode:Q(o)}),null,16,["model-value","mode"]),Me(y,cs({"h-full":"","model-value":Q(c),"read-only":""},{lineNumbers:!0},{mode:Q(o)}),null,16,["model-value","mode"])]),Q(h).mappings!==""?(de(),Te("div",fBe,[pe("div",hBe," Source map (v"+Je(Q(h).version)+") ",1),Me(y,cs({"model-value":Q(h).mappings,"read-only":""},{lineNumbers:!0},{mode:Q(o)}),null,16,["model-value","mode"])])):nt("",!0)],64)):(de(),Te("div",aBe," No transform result found for this module. "))])}}});var E0="http://www.w3.org/1999/xhtml";const rA={svg:"http://www.w3.org/2000/svg",xhtml:E0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wh(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),rA.hasOwnProperty(t)?{space:rA[t],local:e}:e}function pBe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===E0&&t.documentElement.namespaceURI===E0?t.createElement(e):t.createElementNS(n,e)}}function gBe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function dS(e){var t=Wh(e);return(t.local?gBe:pBe)(t)}function vBe(){}function Qv(e){return e==null?vBe:function(){return this.querySelector(e)}}function mBe(e){typeof e!="function"&&(e=Qv(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++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 Jn(i,this._parents)}function yBe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function bBe(){return[]}function pS(e){return e==null?bBe:function(){return this.querySelectorAll(e)}}function wBe(e){return function(){return yBe(e.apply(this,arguments))}}function DBe(e){typeof e=="function"?e=wBe(e):e=pS(e);for(var t=this._groups,n=t.length,i=[],o=[],a=0;a<n;++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 Jn(i,o)}function gS(e){return function(){return this.matches(e)}}function vS(e){return function(t){return t.matches(e)}}var ABe=Array.prototype.find;function xBe(e){return function(){return ABe.call(this.children,e)}}function EBe(){return this.firstElementChild}function CBe(e){return this.select(e==null?EBe:xBe(typeof e=="function"?e:vS(e)))}var _Be=Array.prototype.filter;function SBe(){return Array.from(this.children)}function FBe(e){return function(){return _Be.call(this.children,e)}}function $Be(e){return this.selectAll(e==null?SBe:FBe(typeof e=="function"?e:vS(e)))}function TBe(e){typeof e!="function"&&(e=gS(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++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 Jn(i,this._parents)}function mS(e){return new Array(e.length)}function kBe(){return new Jn(this._enter||this._groups.map(mS),this._parents)}function If(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}If.prototype={constructor:If,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 LBe(e){return function(){return e}}function BBe(e,t,n,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):n[c]=new If(e,a[c]);for(;c<d;++c)(h=t[c])&&(o[c]=h)}function OBe(e,t,n,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)):n[h]=new If(e,a[h]);for(h=0;h<g;++h)(d=t[h])&&p.get(m[h])===d&&(o[h]=d)}function PBe(e){return e.__data__}function NBe(e,t){if(!arguments.length)return Array.from(this,PBe);var n=t?OBe:BBe,i=this._parents,o=this._groups;typeof e!="function"&&(e=LBe(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=IBe(e.call(g,g&&g.__data__,p,i)),$=w.length,L=h[p]=new Array($),E=c[p]=new Array($),C=d[p]=new Array(m);n(g,y,L,E,C,w,t);for(var S=0,O=0,B,k;S<$;++S)if(B=L[S]){for(S>=O&&(O=S+1);!(k=E[O])&&++O<$;);B._next=k||null}}return c=new Jn(c,i),c._enter=h,c._exit=d,c}function IBe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function RBe(){return new Jn(this._exit||this._groups.map(mS),this._parents)}function MBe(e,t,n){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())),n==null?a.remove():n(a),i&&o?i.merge(o).order():o}function zBe(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,a=i.length,c=Math.min(o,a),h=new Array(o),d=0;d<c;++d)for(var p=n[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]=n[d];return new Jn(h,this._parents)}function UBe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)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 HBe(e){e||(e=qBe);function t(y,m){return y&&m?e(y.__data__,m.__data__):!y-!m}for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a){for(var c=n[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 Jn(o,this._parents).order()}function qBe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function jBe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function VBe(){return Array.from(this)}function WBe(){for(var e=this._groups,t=0,n=e.length;t<n;++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 GBe(){let e=0;for(const t of this)++e;return e}function KBe(){return!this.node()}function XBe(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],a=0,c=o.length,h;a<c;++a)(h=o[a])&&e.call(h,h.__data__,a,o);return this}function QBe(e){return function(){this.removeAttribute(e)}}function YBe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ZBe(e,t){return function(){this.setAttribute(e,t)}}function JBe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function e3e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function t3e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function n3e(e,t){var n=Wh(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?YBe:QBe:typeof t=="function"?n.local?t3e:e3e:n.local?JBe:ZBe)(n,t))}function yS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function r3e(e){return function(){this.style.removeProperty(e)}}function i3e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function s3e(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function o3e(e,t,n){return arguments.length>1?this.each((t==null?r3e:typeof t=="function"?s3e:i3e)(e,t,n??"")):Da(this.node(),e)}function Da(e,t){return e.style.getPropertyValue(t)||yS(e).getComputedStyle(e,null).getPropertyValue(t)}function a3e(e){return function(){delete this[e]}}function u3e(e,t){return function(){this[e]=t}}function l3e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function c3e(e,t){return arguments.length>1?this.each((t==null?a3e:typeof t=="function"?l3e:u3e)(e,t)):this.node()[e]}function bS(e){return e.trim().split(/^|\s+/)}function Yv(e){return e.classList||new wS(e)}function wS(e){this._node=e,this._names=bS(e.getAttribute("class")||"")}wS.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 DS(e,t){for(var n=Yv(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function AS(e,t){for(var n=Yv(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function f3e(e){return function(){DS(this,e)}}function h3e(e){return function(){AS(this,e)}}function d3e(e,t){return function(){(t.apply(this,arguments)?DS:AS)(this,e)}}function p3e(e,t){var n=bS(e+"");if(arguments.length<2){for(var i=Yv(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?d3e:t?f3e:h3e)(n,t))}function g3e(){this.textContent=""}function v3e(e){return function(){this.textContent=e}}function m3e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function y3e(e){return arguments.length?this.each(e==null?g3e:(typeof e=="function"?m3e:v3e)(e)):this.node().textContent}function b3e(){this.innerHTML=""}function w3e(e){return function(){this.innerHTML=e}}function D3e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function A3e(e){return arguments.length?this.each(e==null?b3e:(typeof e=="function"?D3e:w3e)(e)):this.node().innerHTML}function x3e(){this.nextSibling&&this.parentNode.appendChild(this)}function E3e(){return this.each(x3e)}function C3e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _3e(){return this.each(C3e)}function S3e(e){var t=typeof e=="function"?e:dS(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function F3e(){return null}function $3e(e,t){var n=typeof e=="function"?e:dS(e),i=t==null?F3e:typeof t=="function"?t:Qv(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function T3e(){var e=this.parentNode;e&&e.removeChild(this)}function k3e(){return this.each(T3e)}function L3e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function B3e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function O3e(e){return this.select(e?B3e:L3e)}function P3e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function N3e(e){return function(t){e.call(this,t,this.__data__)}}function I3e(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function R3e(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,a;n<o;++n)a=t[n],(!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 M3e(e,t,n){return function(){var i=this.__on,o,a=N3e(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=n),o.value=t;return}}this.addEventListener(e.type,a,n),o={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(o):this.__on=[o]}}function z3e(e,t,n){var i=I3e(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?M3e:R3e,o=0;o<a;++o)this.each(h(i[o],t,n));return this}function xS(e,t,n){var i=yS(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function U3e(e,t){return function(){return xS(this,e,t)}}function H3e(e,t){return function(){return xS(this,e,t.apply(this,arguments))}}function q3e(e,t){return this.each((typeof t=="function"?H3e:U3e)(e,t))}function*j3e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,a=i.length,c;o<a;++o)(c=i[o])&&(yield c)}var ES=[null];function Jn(e,t){this._groups=e,this._parents=t}function kl(){return new Jn([[document.documentElement]],ES)}function V3e(){return this}Jn.prototype=kl.prototype={constructor:Jn,select:mBe,selectAll:DBe,selectChild:CBe,selectChildren:$Be,filter:TBe,data:NBe,enter:kBe,exit:RBe,join:MBe,merge:zBe,selection:V3e,order:UBe,sort:HBe,call:jBe,nodes:VBe,node:WBe,size:GBe,empty:KBe,each:XBe,attr:n3e,style:o3e,property:c3e,classed:p3e,text:y3e,html:A3e,raise:E3e,lower:_3e,append:S3e,insert:$3e,remove:k3e,clone:O3e,datum:P3e,on:z3e,dispatch:q3e,[Symbol.iterator]:j3e};function Mn(e){return typeof e=="string"?new Jn([[document.querySelector(e)]],[document.documentElement]):new Jn([[e]],ES)}function W3e(e){let t;for(;t=e.sourceEvent;)e=t;return e}function yi(e,t){if(e=W3e(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.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 Fn{constructor(t,n){this.x=t,this.y=n}static of([t,n]){return new Fn(t,n)}add(t){return new Fn(this.x+t.x,this.y+t.y)}subtract(t){return new Fn(this.x-t.x,this.y-t.y)}multiply(t){return new Fn(this.x*t,this.y*t)}divide(t){return new Fn(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 Fn(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 Fn(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Fn(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var G3e={value:()=>{}};function Ll(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new cf(n)}function cf(e){this._=e}function K3e(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}cf.prototype=Ll.prototype={constructor:cf,on:function(e,t){var n=this._,i=K3e(e+"",n),o,a=-1,c=i.length;if(arguments.length<2){for(;++a<c;)if((o=(e=i[a]).type)&&(o=X3e(n[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)n[o]=iA(n[o],e.name,t);else if(t==null)for(o in n)n[o]=iA(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new cf(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,a;i<o;++i)n[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,n)},apply:function(e,t,n){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,n)}};function X3e(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function iA(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=G3e,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const Q3e={passive:!1},Qu={capture:!0,passive:!1};function Ep(e){e.stopImmediatePropagation()}function ia(e){e.preventDefault(),e.stopImmediatePropagation()}function CS(e){var t=e.document.documentElement,n=Mn(e).on("dragstart.drag",ia,Qu);"onselectstart"in t?n.on("selectstart.drag",ia,Qu):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function _S(e,t){var n=e.document.documentElement,i=Mn(e).on("dragstart.drag",null);t&&(i.on("click.drag",ia,Qu),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const qc=e=>()=>e;function C0(e,{sourceEvent:t,subject:n,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:n,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}})}C0.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Y3e(e){return!e.ctrlKey&&!e.button}function Z3e(){return this.parentNode}function J3e(e,t){return t??{x:e.x,y:e.y}}function eOe(){return navigator.maxTouchPoints||"ontouchstart"in this}function tOe(){var e=Y3e,t=Z3e,n=J3e,i=eOe,o={},a=Ll("start","drag","end"),c=0,h,d,p,g,y=0;function m(B){B.on("mousedown.drag",w).filter(i).on("touchstart.drag",E).on("touchmove.drag",C,Q3e).on("touchend.drag touchcancel.drag",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(B,k){if(!(g||!e.call(this,B,k))){var M=O(this,t.call(this,B,k),B,k,"mouse");M&&(Mn(B.view).on("mousemove.drag",$,Qu).on("mouseup.drag",L,Qu),CS(B.view),Ep(B),p=!1,h=B.clientX,d=B.clientY,M("start",B))}}function $(B){if(ia(B),!p){var k=B.clientX-h,M=B.clientY-d;p=k*k+M*M>y}o.mouse("drag",B)}function L(B){Mn(B.view).on("mousemove.drag mouseup.drag",null),_S(B.view,p),ia(B),o.mouse("end",B)}function E(B,k){if(e.call(this,B,k)){var M=B.changedTouches,U=t.call(this,B,k),j=M.length,ne,oe;for(ne=0;ne<j;++ne)(oe=O(this,U,B,k,M[ne].identifier,M[ne]))&&(Ep(B),oe("start",B,M[ne]))}}function C(B){var k=B.changedTouches,M=k.length,U,j;for(U=0;U<M;++U)(j=o[k[U].identifier])&&(ia(B),j("drag",B,k[U]))}function S(B){var k=B.changedTouches,M=k.length,U,j;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),U=0;U<M;++U)(j=o[k[U].identifier])&&(Ep(B),j("end",B,k[U]))}function O(B,k,M,U,j,ne){var oe=a.copy(),Y=yi(ne||M,k),z,P,F;if((F=n.call(B,new C0("beforestart",{sourceEvent:M,target:m,identifier:j,active:c,x:Y[0],y:Y[1],dx:0,dy:0,dispatch:oe}),U))!=null)return z=F.x-Y[0]||0,P=F.y-Y[1]||0,function D(R,V,Z){var ue=Y,ge;switch(R){case"start":o[j]=D,ge=c++;break;case"end":delete o[j],--c;case"drag":Y=yi(Z||V,k),ge=c;break}oe.call(R,B,new C0(R,{sourceEvent:V,subject:F,target:m,identifier:j,active:ge,x:Y[0]+z,y:Y[1]+P,dx:Y[0]-ue[0],dy:Y[1]-ue[1],dispatch:oe}),U)}}return m.filter=function(B){return arguments.length?(e=typeof B=="function"?B:qc(!!B),m):e},m.container=function(B){return arguments.length?(t=typeof B=="function"?B:qc(B),m):t},m.subject=function(B){return arguments.length?(n=typeof B=="function"?B:qc(B),m):n},m.touchable=function(B){return arguments.length?(i=typeof B=="function"?B:qc(!!B),m):i},m.on=function(){var B=a.on.apply(a,arguments);return B===a?m:B},m.clickDistance=function(B){return arguments.length?(y=(B=+B)*B,m):Math.sqrt(y)},m}function Zv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function SS(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Bl(){}var Yu=.7,Rf=1/Yu,sa="\\s*([+-]?\\d+)\\s*",Zu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nOe=/^#([0-9a-f]{3,8})$/,rOe=new RegExp(`^rgb\\(${sa},${sa},${sa}\\)$`),iOe=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),sOe=new RegExp(`^rgba\\(${sa},${sa},${sa},${Zu}\\)$`),oOe=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Zu}\\)$`),aOe=new RegExp(`^hsl\\(${Zu},${Xr},${Xr}\\)$`),uOe=new RegExp(`^hsla\\(${Zu},${Xr},${Xr},${Zu}\\)$`),sA={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};Zv(Bl,Ju,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oA,formatHex:oA,formatHex8:lOe,formatHsl:cOe,formatRgb:aA,toString:aA});function oA(){return this.rgb().formatHex()}function lOe(){return this.rgb().formatHex8()}function cOe(){return FS(this).formatHsl()}function aA(){return this.rgb().formatRgb()}function Ju(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=nOe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uA(t):n===3?new zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===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=rOe.exec(e))?new zn(t[1],t[2],t[3],1):(t=iOe.exec(e))?new zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=sOe.exec(e))?jc(t[1],t[2],t[3],t[4]):(t=oOe.exec(e))?jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aOe.exec(e))?fA(t[1],t[2]/100,t[3]/100,1):(t=uOe.exec(e))?fA(t[1],t[2]/100,t[3]/100,t[4]):sA.hasOwnProperty(e)?uA(sA[e]):e==="transparent"?new zn(NaN,NaN,NaN,0):null}function uA(e){return new zn(e>>16&255,e>>8&255,e&255,1)}function jc(e,t,n,i){return i<=0&&(e=t=n=NaN),new zn(e,t,n,i)}function fOe(e){return e instanceof Bl||(e=Ju(e)),e?(e=e.rgb(),new zn(e.r,e.g,e.b,e.opacity)):new zn}function _0(e,t,n,i){return arguments.length===1?fOe(e):new zn(e,t,n,i??1)}function zn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Zv(zn,_0,SS(Bl,{brighter(e){return e=e==null?Rf:Math.pow(Rf,e),new zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yu:Math.pow(Yu,e),new zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zn(Ys(this.r),Ys(this.g),Ys(this.b),Mf(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:lA,formatHex:lA,formatHex8:hOe,formatRgb:cA,toString:cA}));function lA(){return`#${Gs(this.r)}${Gs(this.g)}${Gs(this.b)}`}function hOe(){return`#${Gs(this.r)}${Gs(this.g)}${Gs(this.b)}${Gs((isNaN(this.opacity)?1:this.opacity)*255)}`}function cA(){const e=Mf(this.opacity);return`${e===1?"rgb(":"rgba("}${Ys(this.r)}, ${Ys(this.g)}, ${Ys(this.b)}${e===1?")":`, ${e})`}`}function Mf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ys(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gs(e){return e=Ys(e),(e<16?"0":"")+e.toString(16)}function fA(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Er(e,t,n,i)}function FS(e){if(e instanceof Er)return new Er(e.h,e.s,e.l,e.opacity);if(e instanceof Bl||(e=Ju(e)),!e)return new Er;if(e instanceof Er)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),a=Math.max(t,n,i),c=NaN,h=a-o,d=(a+o)/2;return h?(t===a?c=(n-i)/h+(n<i)*6:n===a?c=(i-t)/h+2:c=(t-n)/h+4,h/=d<.5?a+o:2-a-o,c*=60):h=d>0&&d<1?0:c,new Er(c,h,d,e.opacity)}function dOe(e,t,n,i){return arguments.length===1?FS(e):new Er(e,t,n,i??1)}function Er(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Zv(Er,dOe,SS(Bl,{brighter(e){return e=e==null?Rf:Math.pow(Rf,e),new Er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yu:Math.pow(Yu,e),new Er(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,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new zn(Cp(e>=240?e-240:e+120,o,i),Cp(e,o,i),Cp(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Er(hA(this.h),Vc(this.s),Vc(this.l),Mf(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=Mf(this.opacity);return`${e===1?"hsl(":"hsla("}${hA(this.h)}, ${Vc(this.s)*100}%, ${Vc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hA(e){return e=(e||0)%360,e<0?e+360:e}function Vc(e){return Math.max(0,Math.min(1,e||0))}function Cp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const $S=e=>()=>e;function pOe(e,t){return function(n){return e+n*t}}function gOe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function vOe(e){return(e=+e)==1?TS:function(t,n){return n-t?gOe(t,n,e):$S(isNaN(t)?n:t)}}function TS(e,t){var n=t-e;return n?pOe(e,n):$S(isNaN(e)?t:e)}const dA=function e(t){var n=vOe(t);function i(o,a){var c=n((o=_0(o)).r,(a=_0(a)).r),h=n(o.g,a.g),d=n(o.b,a.b),p=TS(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(n){return e*(1-n)+t*n}}var S0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_p=new RegExp(S0.source,"g");function mOe(e){return function(){return e}}function yOe(e){return function(t){return e(t)+""}}function bOe(e,t){var n=S0.lastIndex=_p.lastIndex=0,i,o,a,c=-1,h=[],d=[];for(e=e+"",t=t+"";(i=S0.exec(e))&&(o=_p.exec(t));)(a=o.index)>n&&(a=t.slice(n,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)})),n=_p.lastIndex;return n<t.length&&(a=t.slice(n),h[c]?h[c]+=a:h[++c]=a),h.length<2?d[0]?yOe(d[0].x):mOe(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 pA=180/Math.PI,F0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kS(e,t,n,i,o,a){var c,h,d;return(c=Math.sqrt(e*e+t*t))&&(e/=c,t/=c),(d=e*n+t*i)&&(n-=e*d,i-=t*d),(h=Math.sqrt(n*n+i*i))&&(n/=h,i/=h,d/=h),e*i<t*n&&(e=-e,t=-t,d=-d,c=-c),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*pA,skewX:Math.atan(d)*pA,scaleX:c,scaleY:h}}var Wc;function wOe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?F0:kS(t.a,t.b,t.c,t.d,t.e,t.f)}function DOe(e){return e==null||(Wc||(Wc=document.createElementNS("http://www.w3.org/2000/svg","g")),Wc.setAttribute("transform",e),!(e=Wc.transform.baseVal.consolidate()))?F0:(e=e.matrix,kS(e.a,e.b,e.c,e.d,e.e,e.f))}function LS(e,t,n,i){function o(p){return p.length?p.pop()+" ":""}function a(p,g,y,m,w,$){if(p!==y||g!==m){var L=w.push("translate(",null,t,null,n);$.push({i:L-4,x:is(p,y)},{i:L-2,x:is(g,m)})}else(y||m)&&w.push("translate("+y+t+m+n)}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 L=w.push(o(w)+"scale(",null,",",null,")");$.push({i:L-4,x:is(p,y)},{i:L-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,L=m.length,E;++$<L;)y[(E=m[$]).i]=E.x(w);return y.join("")}}}var AOe=LS(wOe,"px, ","px)","deg)"),xOe=LS(DOe,", ",")",")"),EOe=1e-12;function gA(e){return((e=Math.exp(e))+1/e)/2}function COe(e){return((e=Math.exp(e))-1/e)/2}function _Oe(e){return((e=Math.exp(2*e))-1)/(e+1)}const SOe=function e(t,n,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,L=w*w+$*$,E,C;if(L<EOe)C=Math.log(m/p)/t,E=function(U){return[h+U*w,d+U*$,p*Math.exp(t*U*C)]};else{var S=Math.sqrt(L),O=(m*m-p*p+i*L)/(2*p*n*S),B=(m*m-p*p-i*L)/(2*m*n*S),k=Math.log(Math.sqrt(O*O+1)-O),M=Math.log(Math.sqrt(B*B+1)-B);C=(M-k)/t,E=function(U){var j=U*C,ne=gA(k),oe=p/(n*S)*(ne*_Oe(t*j+k)-COe(k));return[h+oe*w,d+oe*$,p*ne/gA(t*j+k)]}}return E.duration=C*1e3*t/Math.SQRT2,E}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 Aa=0,_u=0,xu=0,BS=1e3,zf,Su,Uf=0,no=0,Gh=0,el=typeof performance=="object"&&performance.now?performance:Date,OS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Jv(){return no||(OS(FOe),no=el.now()+Gh)}function FOe(){no=0}function Hf(){this._call=this._time=this._next=null}Hf.prototype=em.prototype={constructor:Hf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Jv():+n)+(t==null?0:+t),!this._next&&Su!==this&&(Su?Su._next=this:zf=this,Su=this),this._call=e,this._time=n,$0()},stop:function(){this._call&&(this._call=null,this._time=1/0,$0())}};function em(e,t,n){var i=new Hf;return i.restart(e,t,n),i}function $Oe(){Jv(),++Aa;for(var e=zf,t;e;)(t=no-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Aa}function vA(){no=(Uf=el.now())+Gh,Aa=_u=0;try{$Oe()}finally{Aa=0,kOe(),no=0}}function TOe(){var e=el.now(),t=e-Uf;t>BS&&(Gh-=t,Uf=e)}function kOe(){for(var e,t=zf,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:zf=n);Su=e,$0(i)}function $0(e){if(!Aa){_u&&(_u=clearTimeout(_u));var t=e-no;t>24?(e<1/0&&(_u=setTimeout(vA,e-el.now()-Gh)),xu&&(xu=clearInterval(xu))):(xu||(Uf=el.now(),xu=setInterval(TOe,BS)),Aa=1,OS(vA))}}function mA(e,t,n){var i=new Hf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var LOe=Ll("start","end","cancel","interrupt"),BOe=[],PS=0,yA=1,T0=2,ff=3,bA=4,k0=5,hf=6;function Kh(e,t,n,i,o,a){var c=e.__transition;if(!c)e.__transition={};else if(n in c)return;OOe(e,n,{name:t,index:i,group:o,on:LOe,tween:BOe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:PS})}function tm(e,t){var n=kr(e,t);if(n.state>PS)throw new Error("too late; already scheduled");return n}function Jr(e,t){var n=kr(e,t);if(n.state>ff)throw new Error("too late; already running");return n}function kr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function OOe(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=em(a,0,n.time);function a(p){n.state=yA,n.timer.restart(c,n.delay,n.time),n.delay<=p&&c(p-n.delay)}function c(p){var g,y,m,w;if(n.state!==yA)return d();for(g in i)if(w=i[g],w.name===n.name){if(w.state===ff)return mA(c);w.state===bA?(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(mA(function(){n.state===ff&&(n.state=bA,n.timer.restart(h,n.delay,n.time),h(p))}),n.state=T0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===T0){for(n.state=ff,o=new Array(m=n.tween.length),g=0,y=-1;g<m;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(o[++y]=w);o.length=y+1}}function h(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(d),n.state=k0,1),y=-1,m=o.length;++y<m;)o[y].call(e,g);n.state===k0&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=hf,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function df(e,t){var n=e.__transition,i,o,a=!0,c;if(n){t=t==null?null:t+"";for(c in n){if((i=n[c]).name!==t){a=!1;continue}o=i.state>T0&&i.state<k0,i.state=hf,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[c]}a&&delete e.__transition}}function POe(e){return this.each(function(){df(this,e)})}function NOe(e,t){var n,i;return function(){var o=Jr(this,e),a=o.tween;if(a!==n){i=n=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 IOe(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var a=Jr(this,e),c=a.tween;if(c!==i){o=(i=c).slice();for(var h={name:t,value:n},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 ROe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=kr(this.node(),n).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?NOe:IOe)(n,e,t))}function nm(e,t,n){var i=e._id;return e.each(function(){var o=Jr(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return kr(o,i).value[t]}}function NS(e,t){var n;return(typeof t=="number"?is:t instanceof Ju?dA:(n=Ju(t))?(t=n,dA):bOe)(e,t)}function MOe(e){return function(){this.removeAttribute(e)}}function zOe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function UOe(e,t,n){var i,o=n+"",a;return function(){var c=this.getAttribute(e);return c===o?null:c===i?a:a=t(i=c,n)}}function HOe(e,t,n){var i,o=n+"",a;return function(){var c=this.getAttributeNS(e.space,e.local);return c===o?null:c===i?a:a=t(i=c,n)}}function qOe(e,t,n){var i,o,a;return function(){var c,h=n(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 jOe(e,t,n){var i,o,a;return function(){var c,h=n(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 VOe(e,t){var n=Wh(e),i=n==="transform"?xOe:NS;return this.attrTween(e,typeof t=="function"?(n.local?jOe:qOe)(n,i,nm(this,"attr."+e,t)):t==null?(n.local?zOe:MOe)(n):(n.local?HOe:UOe)(n,i,t))}function WOe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function GOe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function KOe(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&GOe(e,a)),n}return o._value=t,o}function XOe(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&WOe(e,a)),n}return o._value=t,o}function QOe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=Wh(e);return this.tween(n,(i.local?KOe:XOe)(i,t))}function YOe(e,t){return function(){tm(this,e).delay=+t.apply(this,arguments)}}function ZOe(e,t){return t=+t,function(){tm(this,e).delay=t}}function JOe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?YOe:ZOe)(t,e)):kr(this.node(),t).delay}function ePe(e,t){return function(){Jr(this,e).duration=+t.apply(this,arguments)}}function tPe(e,t){return t=+t,function(){Jr(this,e).duration=t}}function nPe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ePe:tPe)(t,e)):kr(this.node(),t).duration}function rPe(e,t){if(typeof t!="function")throw new Error;return function(){Jr(this,e).ease=t}}function iPe(e){var t=this._id;return arguments.length?this.each(rPe(t,e)):kr(this.node(),t).ease}function sPe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Jr(this,e).ease=n}}function oPe(e){if(typeof e!="function")throw new Error;return this.each(sPe(this._id,e))}function aPe(e){typeof e!="function"&&(e=gS(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++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 uPe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,a=Math.min(i,o),c=new Array(i),h=0;h<a;++h)for(var d=t[h],p=n[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 lPe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function cPe(e,t,n){var i,o,a=lPe(t)?tm:Jr;return function(){var c=a(this,e),h=c.on;h!==i&&(o=(i=h).copy()).on(t,n),c.on=o}}function fPe(e,t){var n=this._id;return arguments.length<2?kr(this.node(),n).on.on(e):this.each(cPe(n,e,t))}function hPe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function dPe(){return this.on("end.remove",hPe(this._id))}function pPe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Qv(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,Kh(p[m],t,n,m,p,kr(g,n)));return new ki(a,this._parents,t,n)}function gPe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=pS(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,$=kr(g,n),L=0,E=m.length;L<E;++L)(w=m[L])&&Kh(w,t,n,L,m,$);a.push(m),c.push(g)}return new ki(a,c,t,n)}var vPe=kl.prototype.constructor;function mPe(){return new vPe(this._groups,this._parents)}function yPe(e,t){var n,i,o;return function(){var a=Da(this,e),c=(this.style.removeProperty(e),Da(this,e));return a===c?null:a===n&&c===i?o:o=t(n=a,i=c)}}function IS(e){return function(){this.style.removeProperty(e)}}function bPe(e,t,n){var i,o=n+"",a;return function(){var c=Da(this,e);return c===o?null:c===i?a:a=t(i=c,n)}}function wPe(e,t,n){var i,o,a;return function(){var c=Da(this,e),h=n(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(e),Da(this,e))),c===d?null:c===i&&d===o?a:(o=d,a=t(i=c,h))}}function DPe(e,t){var n,i,o,a="style."+t,c="end."+a,h;return function(){var d=Jr(this,e),p=d.on,g=d.value[a]==null?h||(h=IS(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(c,o=g),d.on=i}}function APe(e,t,n){var i=(e+="")=="transform"?AOe:NS;return t==null?this.styleTween(e,yPe(e,i)).on("end.style."+e,IS(e)):typeof t=="function"?this.styleTween(e,wPe(e,i,nm(this,"style."+e,t))).each(DPe(this._id,e)):this.styleTween(e,bPe(e,i,t),n).on("end.style."+e,null)}function xPe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function EPe(e,t,n){var i,o;function a(){var c=t.apply(this,arguments);return c!==o&&(i=(o=c)&&xPe(e,c,n)),i}return a._value=t,a}function CPe(e,t,n){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,EPe(e,t,n??""))}function _Pe(e){return function(){this.textContent=e}}function SPe(e){return function(){var t=e(this);this.textContent=t??""}}function FPe(e){return this.tween("text",typeof e=="function"?SPe(nm(this,"text",e)):_Pe(e==null?"":e+""))}function $Pe(e){return function(t){this.textContent=e.call(this,t)}}function TPe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&$Pe(o)),t}return i._value=e,i}function kPe(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,TPe(e))}function LPe(){for(var e=this._name,t=this._id,n=RS(),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=kr(d,t);Kh(d,e,n,p,c,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new ki(i,this._parents,e,n)}function BPe(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(a,c){var h={value:c},d={value:function(){--o===0&&a()}};n.each(function(){var p=Jr(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 OPe=0;function ki(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function RS(){return++OPe}var gi=kl.prototype;ki.prototype={constructor:ki,select:pPe,selectAll:gPe,selectChild:gi.selectChild,selectChildren:gi.selectChildren,filter:aPe,merge:uPe,selection:mPe,transition:LPe,call:gi.call,nodes:gi.nodes,node:gi.node,size:gi.size,empty:gi.empty,each:gi.each,on:fPe,attr:VOe,attrTween:QOe,style:APe,styleTween:CPe,text:FPe,textTween:kPe,remove:dPe,tween:ROe,delay:JOe,duration:nPe,ease:iPe,easeVarying:oPe,end:BPe,[Symbol.iterator]:gi[Symbol.iterator]};function PPe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var NPe={time:null,delay:0,duration:250,ease:PPe};function IPe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function RPe(e){var t,n;e instanceof ki?(t=e._id,e=e._name):(t=RS(),(n=NPe).time=Jv(),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])&&Kh(d,e,t,p,c,n||IPe(d,t));return new ki(i,this._parents,e,t)}kl.prototype.interrupt=POe;kl.prototype.transition=RPe;const Gc=e=>()=>e;function MPe(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Di(e,t,n){this.k=e,this.x=t,this.y=n}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 rm=new Di(1,0,0);Di.prototype;function Sp(e){e.stopImmediatePropagation()}function Eu(e){e.preventDefault(),e.stopImmediatePropagation()}function zPe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function UPe(){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 wA(){return this.__zoom||rm}function HPe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function qPe(){return navigator.maxTouchPoints||"ontouchstart"in this}function jPe(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],c=e.invertY(t[1][1])-n[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 VPe(){var e=zPe,t=UPe,n=jPe,i=HPe,o=qPe,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],h=250,d=SOe,p=Ll("start","zoom","end"),g,y,m,w=500,$=150,L=0,E=10;function C(F){F.property("__zoom",wA).on("wheel.zoom",j,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",oe).filter(o).on("touchstart.zoom",Y).on("touchmove.zoom",z).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(F,D,R,V){var Z=F.selection?F.selection():F;Z.property("__zoom",wA),F!==Z?k(F,D,R,V):Z.interrupt().each(function(){M(this,arguments).event(V).start().zoom(null,typeof D=="function"?D.apply(this,arguments):D).end()})},C.scaleBy=function(F,D,R,V){C.scaleTo(F,function(){var Z=this.__zoom.k,ue=typeof D=="function"?D.apply(this,arguments):D;return Z*ue},R,V)},C.scaleTo=function(F,D,R,V){C.transform(F,function(){var Z=t.apply(this,arguments),ue=this.__zoom,ge=R==null?B(Z):typeof R=="function"?R.apply(this,arguments):R,$e=ue.invert(ge),_e=typeof D=="function"?D.apply(this,arguments):D;return n(O(S(ue,_e),ge,$e),Z,c)},R,V)},C.translateBy=function(F,D,R,V){C.transform(F,function(){return n(this.__zoom.translate(typeof D=="function"?D.apply(this,arguments):D,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),c)},null,V)},C.translateTo=function(F,D,R,V,Z){C.transform(F,function(){var ue=t.apply(this,arguments),ge=this.__zoom,$e=V==null?B(ue):typeof V=="function"?V.apply(this,arguments):V;return n(rm.translate($e[0],$e[1]).scale(ge.k).translate(typeof D=="function"?-D.apply(this,arguments):-D,typeof R=="function"?-R.apply(this,arguments):-R),ue,c)},V,Z)};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 O(F,D,R){var V=D[0]-R[0]*F.k,Z=D[1]-R[1]*F.k;return V===F.x&&Z===F.y?F:new Di(F.k,V,Z)}function B(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function k(F,D,R,V){F.on("start.zoom",function(){M(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).event(V).end()}).tween("zoom",function(){var Z=this,ue=arguments,ge=M(Z,ue).event(V),$e=t.apply(Z,ue),_e=R==null?B($e):typeof R=="function"?R.apply(Z,ue):R,ze=Math.max($e[1][0]-$e[0][0],$e[1][1]-$e[0][1]),Xe=Z.__zoom,ie=typeof D=="function"?D.apply(Z,ue):D,se=d(Xe.invert(_e).concat(ze/Xe.k),ie.invert(_e).concat(ze/ie.k));return function(J){if(J===1)J=ie;else{var fe=se(J),Se=ze/fe[2];J=new Di(Se,_e[0]-fe[0]*Se,_e[1]-fe[1]*Se)}ge.zoom(null,J)}})}function M(F,D,R){return!R&&F.__zooming||new U(F,D)}function U(F,D){this.that=F,this.args=D,this.active=0,this.sourceEvent=null,this.extent=t.apply(F,D),this.taps=0}U.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,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=Mn(this.that).datum();p.call(F,this.that,new MPe(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 R=M(this,D).event(F),V=this.__zoom,Z=Math.max(a[0],Math.min(a[1],V.k*Math.pow(2,i.apply(this,arguments)))),ue=yi(F);if(R.wheel)(R.mouse[0][0]!==ue[0]||R.mouse[0][1]!==ue[1])&&(R.mouse[1]=V.invert(R.mouse[0]=ue)),clearTimeout(R.wheel);else{if(V.k===Z)return;R.mouse=[ue,V.invert(ue)],df(this),R.start()}Eu(F),R.wheel=setTimeout(ge,$),R.zoom("mouse",n(O(S(V,Z),R.mouse[0],R.mouse[1]),R.extent,c));function ge(){R.wheel=null,R.end()}}function ne(F,...D){if(m||!e.apply(this,arguments))return;var R=F.currentTarget,V=M(this,D,!0).event(F),Z=Mn(F.view).on("mousemove.zoom",_e,!0).on("mouseup.zoom",ze,!0),ue=yi(F,R),ge=F.clientX,$e=F.clientY;CS(F.view),Sp(F),V.mouse=[ue,this.__zoom.invert(ue)],df(this),V.start();function _e(Xe){if(Eu(Xe),!V.moved){var ie=Xe.clientX-ge,se=Xe.clientY-$e;V.moved=ie*ie+se*se>L}V.event(Xe).zoom("mouse",n(O(V.that.__zoom,V.mouse[0]=yi(Xe,R),V.mouse[1]),V.extent,c))}function ze(Xe){Z.on("mousemove.zoom mouseup.zoom",null),_S(Xe.view,V.moved),Eu(Xe),V.event(Xe).end()}}function oe(F,...D){if(e.apply(this,arguments)){var R=this.__zoom,V=yi(F.changedTouches?F.changedTouches[0]:F,this),Z=R.invert(V),ue=R.k*(F.shiftKey?.5:2),ge=n(O(S(R,ue),V,Z),t.apply(this,D),c);Eu(F),h>0?Mn(this).transition().duration(h).call(k,ge,V,F):Mn(this).call(C.transform,ge,V,F)}}function Y(F,...D){if(e.apply(this,arguments)){var R=F.touches,V=R.length,Z=M(this,D,F.changedTouches.length===V).event(F),ue,ge,$e,_e;for(Sp(F),ge=0;ge<V;++ge)$e=R[ge],_e=yi($e,this),_e=[_e,this.__zoom.invert(_e),$e.identifier],Z.touch0?!Z.touch1&&Z.touch0[2]!==_e[2]&&(Z.touch1=_e,Z.taps=0):(Z.touch0=_e,ue=!0,Z.taps=1+!!g);g&&(g=clearTimeout(g)),ue&&(Z.taps<2&&(y=_e[0],g=setTimeout(function(){g=null},w)),df(this),Z.start())}}function z(F,...D){if(this.__zooming){var R=M(this,D).event(F),V=F.changedTouches,Z=V.length,ue,ge,$e,_e;for(Eu(F),ue=0;ue<Z;++ue)ge=V[ue],$e=yi(ge,this),R.touch0&&R.touch0[2]===ge.identifier?R.touch0[0]=$e:R.touch1&&R.touch1[2]===ge.identifier&&(R.touch1[0]=$e);if(ge=R.that.__zoom,R.touch1){var ze=R.touch0[0],Xe=R.touch0[1],ie=R.touch1[0],se=R.touch1[1],J=(J=ie[0]-ze[0])*J+(J=ie[1]-ze[1])*J,fe=(fe=se[0]-Xe[0])*fe+(fe=se[1]-Xe[1])*fe;ge=S(ge,Math.sqrt(J/fe)),$e=[(ze[0]+ie[0])/2,(ze[1]+ie[1])/2],_e=[(Xe[0]+se[0])/2,(Xe[1]+se[1])/2]}else if(R.touch0)$e=R.touch0[0],_e=R.touch0[1];else return;R.zoom("touch",n(O(ge,$e,_e),R.extent,c))}}function P(F,...D){if(this.__zooming){var R=M(this,D).event(F),V=F.changedTouches,Z=V.length,ue,ge;for(Sp(F),m&&clearTimeout(m),m=setTimeout(function(){m=null},w),ue=0;ue<Z;++ue)ge=V[ue],R.touch0&&R.touch0[2]===ge.identifier?delete R.touch0:R.touch1&&R.touch1[2]===ge.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(ge=yi(ge,this),Math.hypot(y[0]-ge[0],y[1]-ge[1])<E)){var $e=Mn(this).on("dblclick.zoom");$e&&$e.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?(n=F,C):n},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?(L=(F=+F)*F,C):Math.sqrt(L)},C.tapDistance=function(F){return arguments.length?(E=+F,C):E},C}function WPe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return MS(this.cover(t,n),t,n,e)}function MS(e,t,n,i){if(isNaN(t)||isNaN(n))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,$,L,E,C,S;if(!a)return e._root=c,e;for(;a.length;)if((L=t>=(y=(h+p)/2))?h=y:p=y,(E=n>=(m=(d+g)/2))?d=m:g=m,o=a,!(a=a[C=E<<1|L]))return o[C]=c,e;if(w=+e._x.call(null,a.data),$=+e._y.call(null,a.data),t===w&&n===$)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),(L=t>=(y=(h+p)/2))?h=y:p=y,(E=n>=(m=(d+g)/2))?d=m:g=m;while((C=E<<1|L)===(S=($>=m)<<1|w>=y));return o[S]=a,o[C]=c,e}function GPe(e){var t,n,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(n=0;n<i;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(c[n]=o,h[n]=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),n=0;n<i;++n)MS(this,c[n],h[n],e[n]);return this}function KPe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,a=(i=Math.floor(t))+1;else{for(var c=o-n||1,h=this._root,d,p;n>e||e>=o||i>t||t>=a;)switch(p=(t<i)<<1|e<n,d=new Array(4),d[p]=h,h=d,c*=2,p){case 0:o=n+c,a=i+c;break;case 1:n=o-c,a=i+c;break;case 2:o=n+c,i=a-c;break;case 3:n=o-c,i=a-c;break}this._root&&this._root.length&&(this._root=h)}return this._x0=n,this._y0=i,this._x1=o,this._y1=a,this}function XPe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function QPe(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 $n(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function YPe(e,t,n){var i,o=this._x0,a=this._y0,c,h,d,p,g=this._x1,y=this._y1,m=[],w=this._root,$,L;for(w&&m.push(new $n(w,o,a,g,y)),n==null?n=1/0:(o=e-n,a=t-n,g=e+n,y=t+n,n*=n);$=m.pop();)if(!(!(w=$.node)||(c=$.x0)>g||(h=$.y0)>y||(d=$.x1)<o||(p=$.y1)<a))if(w.length){var E=(c+d)/2,C=(h+p)/2;m.push(new $n(w[3],E,C,d,p),new $n(w[2],c,C,E,p),new $n(w[1],E,h,d,C),new $n(w[0],c,h,E,C)),(L=(t>=C)<<1|e>=E)&&($=m[m.length-1],m[m.length-1]=m[m.length-1-L],m[m.length-1-L]=$)}else{var S=e-+this._x.call(null,w.data),O=t-+this._y.call(null,w.data),B=S*S+O*O;if(B<n){var k=Math.sqrt(n=B);o=e-k,a=t-k,g=e+k,y=t+k,i=w.data}}return i}function ZPe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,n=this._root,i,o,a,c=this._x0,h=this._y0,d=this._x1,p=this._y1,g,y,m,w,$,L,E,C;if(!n)return this;if(n.length)for(;;){if(($=g>=(m=(c+d)/2))?c=m:d=m,(L=y>=(w=(h+p)/2))?h=w:p=w,t=n,!(n=n[E=L<<1|$]))return this;if(!n.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(i=t,C=E)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,o?(a?o.next=a:delete o.next,this):t?(a?t[E]=a:delete t[E],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[C]=n:this._root=n),this):(this._root=a,this)}function JPe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function e8e(){return this._root}function t8e(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function n8e(e){var t=[],n,i=this._root,o,a,c,h,d;for(i&&t.push(new $n(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,a=n.x0,c=n.y0,h=n.x1,d=n.y1)&&i.length){var p=(a+h)/2,g=(c+d)/2;(o=i[3])&&t.push(new $n(o,p,g,h,d)),(o=i[2])&&t.push(new $n(o,a,g,p,d)),(o=i[1])&&t.push(new $n(o,p,c,h,g)),(o=i[0])&&t.push(new $n(o,a,c,p,g))}return this}function r8e(e){var t=[],n=[],i;for(this._root&&t.push(new $n(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 $n(a,c,h,g,y)),(a=o[1])&&t.push(new $n(a,g,h,d,y)),(a=o[2])&&t.push(new $n(a,c,y,g,p)),(a=o[3])&&t.push(new $n(a,g,y,d,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function i8e(e){return e[0]}function s8e(e){return arguments.length?(this._x=e,this):this._x}function o8e(e){return e[1]}function a8e(e){return arguments.length?(this._y=e,this):this._y}function im(e,t,n){var i=new sm(t??i8e,n??o8e,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function sm(e,t,n,i,o,a){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function DA(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ln=im.prototype=sm.prototype;Ln.copy=function(){var e=new sm(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=DA(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(i=t.source[o])&&(i.length?n.push({source:i,target:t.target[o]=new Array(4)}):t.target[o]=DA(i));return e};Ln.add=WPe;Ln.addAll=GPe;Ln.cover=KPe;Ln.data=XPe;Ln.extent=QPe;Ln.find=YPe;Ln.remove=ZPe;Ln.removeAll=JPe;Ln.root=e8e;Ln.size=t8e;Ln.visit=n8e;Ln.visitAfter=r8e;Ln.x=s8e;Ln.y=a8e;function Tn(e){return function(){return e}}function os(e){return(e()-.5)*1e-6}function u8e(e){return e.x+e.vx}function l8e(e){return e.y+e.vy}function c8e(e){var t,n,i,o=1,a=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function c(){for(var p,g=t.length,y,m,w,$,L,E,C=0;C<a;++C)for(y=im(t,u8e,l8e).visitAfter(h),p=0;p<g;++p)m=t[p],L=n[m.index],E=L*L,w=m.x+m.vx,$=m.y+m.vy,y.visit(S);function S(O,B,k,M,U){var j=O.data,ne=O.r,oe=L+ne;if(j){if(j.index>m.index){var Y=w-j.x-j.vx,z=$-j.y-j.vy,P=Y*Y+z*z;P<oe*oe&&(Y===0&&(Y=os(i),P+=Y*Y),z===0&&(z=os(i),P+=z*z),P=(oe-(P=Math.sqrt(P)))/P*o,m.vx+=(Y*=P)*(oe=(ne*=ne)/(E+ne)),m.vy+=(z*=P)*oe,j.vx-=Y*(oe=1-oe),j.vy-=z*oe)}return}return B>w+oe||M<w-oe||k>$+oe||U<$-oe}}function h(p){if(p.data)return p.r=n[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(n=new Array(g),p=0;p<g;++p)y=t[p],n[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:Tn(+p),d(),c):e},c}function f8e(e){return e.index}function AA(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function h8e(e){var t=f8e,n=y,i,o=Tn(30),a,c,h,d,p,g=1;e==null&&(e=[]);function y(E){return 1/Math.min(h[E.source.index],h[E.target.index])}function m(E){for(var C=0,S=e.length;C<g;++C)for(var O=0,B,k,M,U,j,ne,oe;O<S;++O)B=e[O],k=B.source,M=B.target,U=M.x+M.vx-k.x-k.vx||os(p),j=M.y+M.vy-k.y-k.vy||os(p),ne=Math.sqrt(U*U+j*j),ne=(ne-a[O])/ne*E*i[O],U*=ne,j*=ne,M.vx-=U*(oe=d[O]),M.vy-=j*oe,k.vx+=U*(oe=1-oe),k.vy+=j*oe}function w(){if(c){var E,C=c.length,S=e.length,O=new Map(c.map((k,M)=>[t(k,M,c),k])),B;for(E=0,h=new Array(C);E<S;++E)B=e[E],B.index=E,typeof B.source!="object"&&(B.source=AA(O,B.source)),typeof B.target!="object"&&(B.target=AA(O,B.target)),h[B.source.index]=(h[B.source.index]||0)+1,h[B.target.index]=(h[B.target.index]||0)+1;for(E=0,d=new Array(S);E<S;++E)B=e[E],d[E]=h[B.source.index]/(h[B.source.index]+h[B.target.index]);i=new Array(S),$(),a=new Array(S),L()}}function $(){if(c)for(var E=0,C=e.length;E<C;++E)i[E]=+n(e[E],E,e)}function L(){if(c)for(var E=0,C=e.length;E<C;++E)a[E]=+o(e[E],E,e)}return m.initialize=function(E,C){c=E,p=C,w()},m.links=function(E){return arguments.length?(e=E,w(),m):e},m.id=function(E){return arguments.length?(t=E,m):t},m.iterations=function(E){return arguments.length?(g=+E,m):g},m.strength=function(E){return arguments.length?(n=typeof E=="function"?E:Tn(+E),$(),m):n},m.distance=function(E){return arguments.length?(o=typeof E=="function"?E:Tn(+E),L(),m):o},m}const d8e=1664525,p8e=1013904223,xA=4294967296;function g8e(){let e=1;return()=>(e=(d8e*e+p8e)%xA)/xA}function v8e(e){return e.x}function m8e(e){return e.y}var y8e=10,b8e=Math.PI*(3-Math.sqrt(5));function w8e(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),a=0,c=.6,h=new Map,d=em(y),p=Ll("tick","end"),g=g8e();e==null&&(e=[]);function y(){m(),p.call("tick",t),n<i&&(d.stop(),p.call("end",t))}function m(L){var E,C=e.length,S;L===void 0&&(L=1);for(var O=0;O<L;++O)for(n+=(a-n)*o,h.forEach(function(B){B(n)}),E=0;E<C;++E)S=e[E],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 L=0,E=e.length,C;L<E;++L){if(C=e[L],C.index=L,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var S=y8e*Math.sqrt(.5+L),O=L*b8e;C.x=S*Math.cos(O),C.y=S*Math.sin(O)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function $(L){return L.initialize&&L.initialize(e,g),L}return w(),t={tick:m,restart:function(){return d.restart(y),t},stop:function(){return d.stop(),t},nodes:function(L){return arguments.length?(e=L,w(),h.forEach($),t):e},alpha:function(L){return arguments.length?(n=+L,t):n},alphaMin:function(L){return arguments.length?(i=+L,t):i},alphaDecay:function(L){return arguments.length?(o=+L,t):+o},alphaTarget:function(L){return arguments.length?(a=+L,t):a},velocityDecay:function(L){return arguments.length?(c=1-L,t):1-c},randomSource:function(L){return arguments.length?(g=L,h.forEach($),t):g},force:function(L,E){return arguments.length>1?(E==null?h.delete(L):h.set(L,$(E)),t):h.get(L)},find:function(L,E,C){var S=0,O=e.length,B,k,M,U,j;for(C==null?C=1/0:C*=C,S=0;S<O;++S)U=e[S],B=L-U.x,k=E-U.y,M=B*B+k*k,M<C&&(j=U,C=M);return j},on:function(L,E){return arguments.length>1?(p.on(L,E),t):p.on(L)}}}function D8e(){var e,t,n,i,o=Tn(-30),a,c=1,h=1/0,d=.81;function p(w){var $,L=e.length,E=im(e,v8e,m8e).visitAfter(y);for(i=w,$=0;$<L;++$)t=e[$],E.visit(m)}function g(){if(e){var w,$=e.length,L;for(a=new Array($),w=0;w<$;++w)L=e[w],a[L.index]=+o(L,w,e)}}function y(w){var $=0,L,E,C=0,S,O,B;if(w.length){for(S=O=B=0;B<4;++B)(L=w[B])&&(E=Math.abs(L.value))&&($+=L.value,C+=E,S+=E*L.x,O+=E*L.y);w.x=S/C,w.y=O/C}else{L=w,L.x=L.data.x,L.y=L.data.y;do $+=a[L.data.index];while(L=L.next)}w.value=$}function m(w,$,L,E){if(!w.value)return!0;var C=w.x-t.x,S=w.y-t.y,O=E-$,B=C*C+S*S;if(O*O/d<B)return B<h&&(C===0&&(C=os(n),B+=C*C),S===0&&(S=os(n),B+=S*S),B<c&&(B=Math.sqrt(c*B)),t.vx+=C*w.value*i/B,t.vy+=S*w.value*i/B),!0;if(w.length||B>=h)return;(w.data!==t||w.next)&&(C===0&&(C=os(n),B+=C*C),S===0&&(S=os(n),B+=S*S),B<c&&(B=Math.sqrt(c*B)));do w.data!==t&&(O=a[w.data.index]*i/B,t.vx+=C*O,t.vy+=S*O);while(w=w.next)}return p.initialize=function(w,$){e=w,n=$,g()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:Tn(+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 A8e(e){var t=Tn(.1),n,i,o;typeof e!="function"&&(e=Tn(e==null?0:+e));function a(h){for(var d=0,p=n.length,g;d<p;++d)g=n[d],g.vx+=(o[d]-g.x)*i[d]*h}function c(){if(n){var h,d=n.length;for(i=new Array(d),o=new Array(d),h=0;h<d;++h)i[h]=isNaN(o[h]=+e(n[h],h,n))?0:+t(n[h],h,n)}}return a.initialize=function(h){n=h,c()},a.strength=function(h){return arguments.length?(t=typeof h=="function"?h:Tn(+h),c(),a):t},a.x=function(h){return arguments.length?(e=typeof h=="function"?h:Tn(+h),c(),a):e},a}function x8e(e){var t=Tn(.1),n,i,o;typeof e!="function"&&(e=Tn(e==null?0:+e));function a(h){for(var d=0,p=n.length,g;d<p;++d)g=n[d],g.vy+=(o[d]-g.y)*i[d]*h}function c(){if(n){var h,d=n.length;for(i=new Array(d),o=new Array(d),h=0;h<d;++h)i[h]=isNaN(o[h]=+e(n[h],h,n))?0:+t(n[h],h,n)}}return a.initialize=function(h){n=h,c()},a.strength=function(h){return arguments.length?(t=typeof h=="function"?h:Tn(+h),c(),a):t},a.y=function(h){return arguments.length?(e=typeof h=="function"?h:Tn(+h),c(),a):e},a}var E8e=Object.defineProperty,C8e=(e,t,n)=>t in e?E8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t,n)=>(C8e(e,typeof t!="symbol"?t+"":t,n),n);function _8e(){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 EA=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,n)=>{if(Array.isArray(n))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(n).forEach(i=>{["__proto__","constructor","prototype"].includes(i)||(Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=as.options.mergeArrays?Array.from(new Set(t[i].concat(n[i]))):n[i]:EA(t[i])&&EA(n[i])?t[i]=as(t[i],n[i]):t[i]=n[i])}),t},{}),zS={mergeArrays:!0};as.options=zS;as.withOptions=(e,...t)=>{as.options={mergeArrays:!0,...e};const n=as(...t);return as.options=zS,n};function S8e(){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 F8e(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function US(e){e.preventDefault(),e.stopPropagation()}function HS(e){return typeof e=="number"}function ps(e,t){return HS(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function $8e(e){return`${e.source.id}-${e.target.id}`}function qS(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function T8e(e){return`url(#${qS(e.color)})`}function k8e(e){return{size:e,padding:(t,n)=>ps(n,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=>k8e(e)},L8e=(e,t,n)=>[t/2,n/2],VS=(e,t,n)=>[CA(0,t),CA(0,n)];function CA(e,t){return Math.random()*(t-e)+e}function B8e(e){const t=Object.fromEntries(e.nodes.map(n=>[n.id,[n.x,n.y]]));return(n,i,o)=>{const[a,c]=t[n.id]??[];return!a||!c?VS(n,i,o):[a,c]}}const L0={Centered:L8e,Randomized:VS,Stable:B8e};function O8e(){return{autoResize:!1,callbacks:{},hooks:{},initial:F8e(),nodeRadius:16,marker:jS.Arrow(4),modifiers:{},positionInitializer:L0.Centered,simulation:{alphas:_8e(),forces:S8e()},zoom:{initial:1,min:.1,max:2}}}function P8e(e={}){return as.withOptions({mergeArrays:!1},O8e(),e)}function N8e(e,t){let n;return()=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(),t)}}function I8e({applyZoom:e,container:t,onDoubleClick:n,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=>US(g)).on("dblclick",g=>n==null?void 0:n(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,rm.translate(a,c).scale(h)),p.append("g")}function R8e({canvas:e,scale:t,xOffset:n,yOffset:i}){e==null||e.attr("transform",`translate(${n},${i})scale(${t})`)}function M8e({config:e,onDragStart:t,onDragEnd:n}){var i,o;const a=tOe().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),Mn(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&&n(c,h),Mn(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 z8e({graph:e,filter:t,focusedNode:n,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 n===void 0||!t.includes(n.type)?{nodes:h,links:a}:U8e({nodes:h,links:a},n)}function U8e(e,t){const n=[...H8e(e,t),...q8e(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function H8e(e,t){return WS(e,t,(n,i)=>n.target.id===i.id)}function q8e(e,t){return WS(e,t,(n,i)=>n.source.id===i.id)}function WS(e,t,n){const i=new Set(e.links),o=new Set([t]),a=[];for(;i.size>0;){const c=[...i].filter(h=>[...o].some(d=>n(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 B0(e){return e.x??0}function O0(e){return e.y??0}function om({source:e,target:t}){const n=new Fn(B0(e),O0(e)),i=new Fn(B0(t),O0(t)),o=i.subtract(n),a=o.length(),c=o.normalize(),h=c.multiply(-1);return{s:n,t:i,dist:a,norm:c,endNorm:h}}function GS({center:e,node:t}){const n=new Fn(B0(t),O0(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Fn(0,1))),{n,c:i}}function KS({config:e,source:t,target:n}){const{s:i,t:o,norm:a}=om({config:e,source:t,target:n}),c=i.add(a.multiply(ps(e,t)-1)),h=o.subtract(a.multiply(e.marker.padding(n,e)));return{start:c,end:h}}function j8e(e){const{start:t,end:n}=KS(e);return`M${t.x},${t.y}
|
|
41
|
-
L${n.x},${n.y}`}function V8e(e){const{start:t,end:n}=KS(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function W8e({config:e,source:t,target:n}){const{s:i,t:o,dist:a,norm:c,endNorm:h}=om({config:e,source:t,target:n}),d=10,p=c.rotateByDegrees(-d).multiply(ps(e,t)-1).add(i),g=h.rotateByDegrees(d).multiply(ps(e,n)).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 G8e({center:e,config:t,node:n}){const{n:i,c:o}=GS({center:e,config:t,node:n}),a=ps(t,n),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 K8e({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:a}=om({config:e,source:t,target:n}),c=10,h=a.rotateByDegrees(c).multiply(.5*o).add(i);return`translate(${h.x},${h.y})`}function X8e({center:e,config:t,node:n}){const{n:i,c:o}=GS({center:e,config:t,node:n}),a=i.subtract(o),c=a.multiply(1/a.length()).multiply(3*ps(t,n)+8).add(i);return`translate(${c.x},${c.y})`}const oa={line:{labelTransform:V8e,path:j8e},arc:{labelTransform:K8e,path:W8e},reflexive:{labelTransform:X8e,path:G8e}};function Q8e(e){return e.append("g").classed("links",!0).selectAll("path")}function Y8e({config:e,graph:t,selection:n,showLabels:i}){const o=n==null?void 0:n.data(t.links,a=>$8e(a)).join(a=>{var c,h,d,p;const g=a.append("g"),y=g.append("path").classed("link",!0).style("marker-end",w=>T8e(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 Z8e(e){J8e(e),eNe(e)}function J8e({center:e,config:t,graph:n,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?oa.reflexive.path({config:t,node:o.source,center:e}):XS(n,o.source,o.target)?oa.arc.path({config:t,source:o.source,target:o.target}):oa.line.path({config:t,source:o.source,target:o.target}))}function eNe({config:e,center:t,graph:n,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?oa.reflexive.labelTransform({config:e,node:o.source,center:t}):XS(n,o.source,o.target)?oa.arc.labelTransform({config:e,source:o.source,target:o.target}):oa.line.labelTransform({config:e,source:o.source,target:o.target}))}function XS(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function tNe(e){return e.append("defs").selectAll("marker")}function nNe({config:e,graph:t,selection:n}){return n==null?void 0:n.data(rNe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",a=>qS(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",iNe(e.marker.path)),o})}function rNe(e){return[...new Set(e.links.map(t=>t.color))]}function iNe(e){const[t,...n]=e;if(!t)return"M0,0";const[i,o]=t;return n.reduce((a,[c,h])=>`${a}L${c},${h}`,`M${i},${o}`)}function sNe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function oNe({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:o,selection:a,showLabels:c}){const h=a==null?void 0:a.data(n.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",E=>ps(e,E)).on("contextmenu",(E,C)=>{US(E),i(C)}).on("pointerdown",(E,C)=>uNe(E,C,o??i)).style("fill",E=>E.color);(g=(p=e.modifiers).node)==null||g.call(p,$);const L=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(m=(y=e.modifiers).nodeLabel)==null||m.call(y,L),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 uNe(e,t,n){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,n(t)}function lNe(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function cNe({center:e,config:t,graph:n,onTick:i}){var o,a;const c=w8e(n.nodes),h=t.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;c.force("x",A8e(()=>e().x).strength(y)).force("y",x8e(()=>e().y).strength(y))}const d=t.simulation.forces.charge;d&&d.enabled&&c.force("charge",D8e().strength(d.strength));const p=t.simulation.forces.collision;p&&p.enabled&&c.force("collision",c8e().radius(y=>p.radiusMultiplier*ps(t,y)));const g=t.simulation.forces.link;return g&&g.enabled&&c.force("link",h8e(n.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 fNe({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){var a,c;const h=VPe().scaleExtent([n,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 hNe{constructor(t,n,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=n,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(n.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(N8e(()=>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:n,exclude:i}=this.config.simulation.alphas.filter.unlinked,o=t?n: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:n,show:i}=this.config.simulation.alphas.labels.nodes,o=t?i:n;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:n,show:i}=this.config.simulation.alphas.labels.links,o=t?i:n;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Fn.of([this.width,this.height]).divide(2).subtract(Fn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,n=this.height,i=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,a=t.toFixed()!==i.toFixed(),c=n.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(HS(h)?h:h({oldWidth:t,oldHeight:n,newWidth:i,newHeight:o}))}restart(t){var n;this.markerSelection=nNe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Y8e({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=oNe({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}),(n=this.simulation)==null||n.stop(),this.simulation=cNe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,n){t?this._nodeTypeFilter.push(n):this._nodeTypeFilter=this._nodeTypeFilter.filter(i=>i!==n),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,n;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(n=this.simulation)==null||n.stop()}initGraph(){this.zoom=fNe({config:this.config,canvasContainer:()=>Mn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=I8e({applyZoom:this.scale!==1,container:Mn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Q8e(this.canvas),this.nodeSelection=sNe(this.canvas),this.markerSelection=tNe(this.canvas),this.drag=M8e({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(){lNe(this.nodeSelection),Z8e({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Mn(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 n,i,o;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(i=(n=this.config.hooks).afterZoom)==null||i.call(n,this.scale,this.xOffset,this.yOffset),(o=this.simulation)==null||o.restart()}applyZoom(){R8e({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=z8e({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function _A({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function dNe(e){return{...e}}function QS(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const pNe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},gNe={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},vNe=["id","checked","onChange"],mNe=["for"],yNe=pe("div",{"flex-auto":""},null,-1),bNe=rt({__name:"ViewModuleGraph",props:{graph:null},setup(e){const t=e,{graph:n}=Z$(t),i=Ke(),o=Ke(!1),a=Ke(),c=Ke();tg(()=>{o.value===!1&&setTimeout(()=>a.value=void 0,300)},{flush:"post"}),Sa(()=>{p()}),rg(()=>{var y;(y=c.value)==null||y.shutdown()}),Vt(n,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(),!(!n.value||!i.value)&&(c.value=new hNe(i.value,n.value,P8e({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:n.value.nodes.length>1?L0.Randomized:L0.Centered,zoom:{min:.5,max:2}})))}function g(y){if(Yr)return;const m=E=>E.button===0;let w=0,$=0,L=0;y.on("pointerdown",(E,C)=>{C.type!=="external"&&(!C.x||!C.y||!m(E)||(w=C.x,$=C.y,L=Date.now()))}).on("pointerup",(E,C)=>{if(C.type==="external"||!C.x||!C.y||!m(E)||Date.now()-L>500)return;const S=C.x-w,O=C.y-$;S**2+O**2<100&&d(C.id)})}return(y,m)=>{var C;const w=Na,$=dBe,L=tBe,E=io("tooltip");return de(),Te("div",pNe,[pe("div",null,[pe("div",gNe,[(de(!0),Te(ht,null,Ar((C=Q(c))==null?void 0:C.nodeTypes.sort(),S=>{var O;return de(),Te("div",{key:S,flex:"~ gap-1","items-center":"","select-none":""},[pe("input",{id:`type-${S}`,type:"checkbox",checked:(O=Q(c))==null?void 0:O.nodeTypeFilter.includes(S),onChange:B=>h(S,B.target.checked)},null,40,vNe),pe("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${S}`,"border-b-2":"",style:Un({"border-color":`var(--color-node-${S})`})},Je(S)+" Modules",13,mNe)])}),128)),yNe,pe("div",null,[yn(Me(w,{icon:"i-carbon-reset",onClick:p},null,512),[[E,"Reset",void 0,{bottom:!0}]])])])]),pe("div",{ref_key:"el",ref:i},null,512),Me(L,{modelValue:Q(o),"onUpdate:modelValue":m[1]||(m[1]=S=>Nt(o)?o.value=S:null),direction:"right"},{default:Ye(()=>[Q(a)?(de(),Ze(pT,{key:0},{default:Ye(()=>[Me($,{id:Q(a),onClose:m[0]||(m[0]=S=>o.value=!1)},null,8,["id"])]),_:1})):nt("",!0)]),_:1},8,["modelValue"])])}}});const wNe={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},DNe={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},ANe={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},xNe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},ENe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},CNe={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},am=rt({__name:"StatusIcon",props:{task:null},setup(e){return(t,n)=>{var o,a,c;const i=io("tooltip");return((o=e.task.result)==null?void 0:o.state)==="pass"?(de(),Te("div",wNe)):Q(Uh)(e.task)?yn((de(),Te("div",DNe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):((a=e.task.result)==null?void 0:a.state)==="fail"?(de(),Te("div",ANe)):e.task.mode==="todo"?yn((de(),Te("div",xNe,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((c=e.task.result)==null?void 0:c.state)==="skip"?yn((de(),Te("div",ENe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(de(),Te("div",CNe))}}});function _Ne(e){const t=new Map,n=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];n.has(p)?(a.candidate+=a.candidate===""?p:`/${p}`,(g=n.get(p))==null||g.push(c),h.shift()):(n.set(p,[c]),i.push(c))}),i.forEach(a=>{const c=e[a],h=c.splits.shift();c.candidate+=c.candidate===""?h:`/${h}`}),n.forEach(a=>{if(a.length===1){const c=a[0];e[c].finished=!0}}),n.clear(),i.length=0,o===e.length)break}return t}function SNe(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,candidate:"",finished:!1,id:e}}function FNe(e){const t=e.map(i=>SNe(i)),n=_Ne(t);return t.map(({raw:i,id:o})=>QS({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:n.get(i)??""},isFocused:!1,id:o,type:"external"}))}function $Ne(e,t){return QS({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 TNe(e,t){if(!e)return _A({});const n=FNe(e.externalized),i=e.inlined.map(h=>$Ne(h,h===t))??[],o=[...n,...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 dNe({source:g,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return _A({nodes:o,links:c})}const kNe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},LNe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},BNe={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},ONe={class:"flex text-lg"},PNe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},NNe={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},INe={key:0,"flex-1":""},RNe=rt({__name:"FileDetails",setup(e){const t=Ke({externalized:[],graph:{},inlined:[]}),n=Ke({nodes:[],links:[]}),i=Ke(!1),o=Ke(!1);yW(Pt,async(p,g)=>{p&&p.filepath!==(g==null?void 0:g.filepath)&&(t.value=await sn.rpc.getModuleGraph(p.filepath),n.value=TNe(t.value,p.filepath))},{debounce:100,immediate:!0});function a(){var g;const p=(g=Pt.value)==null?void 0:g.filepath;p&&fetch(`/__open-in-editor?file=${encodeURIComponent(p)}`)}function c(p){p==="graph"&&(o.value=!0),zr.value=p}const h=xe(()=>{var p;return((p=W_.value)==null?void 0:p.reduce((g,{size:y})=>g+y,0))??0});function d(p){i.value=p}return(p,g)=>{var S,O;const y=am,m=Na,w=bNe,$=eBe,L=GLe,E=MLe,C=io("tooltip");return Q(Pt)?(de(),Te("div",kNe,[pe("div",null,[pe("div",LNe,[Me(y,{task:Q(Pt)},null,8,["task"]),pe("div",BNe,Je((S=Q(Pt))==null?void 0:S.filepath),1),pe("div",ONe,[Q(Yr)?nt("",!0):yn((de(),Ze(m,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=Q(Pt))!=null&&O.filepath),onClick:a},null,8,["disabled"])),[[C,"Open in editor",void 0,{bottom:!0}]])])]),pe("div",PNe,[pe("button",{"tab-button":"",class:yt({"tab-button-active":Q(zr)==null}),"data-testid":"btn-report",onClick:g[0]||(g[0]=B=>c(null))}," Report ",2),pe("button",{"tab-button":"","data-testid":"btn-graph",class:yt({"tab-button-active":Q(zr)==="graph"}),onClick:g[1]||(g[1]=B=>c("graph"))}," Module Graph ",2),Q(Yr)?nt("",!0):(de(),Te("button",{key:0,"tab-button":"","data-testid":"btn-code",class:yt({"tab-button-active":Q(zr)==="editor"}),onClick:g[2]||(g[2]=B=>c("editor"))},Je(Q(i)?"* ":"")+"Code ",3)),pe("button",{"tab-button":"","data-testid":"btn-console",class:yt({"tab-button-active":Q(zr)==="console",op20:Q(zr)!=="console"&&Q(h)===0}),onClick:g[3]||(g[3]=B=>c("console"))}," Console ("+Je(Q(h))+") ",3)])]),pe("div",NNe,[Q(o)?(de(),Te("div",INe,[yn(Me(w,{graph:Q(n),"data-testid":"graph"},null,8,["graph"]),[[jp,Q(zr)==="graph"]])])):nt("",!0),Q(zr)==="editor"?(de(),Ze($,{key:Q(Pt).filepath,file:Q(Pt),"data-testid":"editor",onDraft:d},null,8,["file"])):Q(zr)==="console"?(de(),Ze(L,{key:2,file:Q(Pt),"data-testid":"console"},null,8,["file"])):Q(zr)?nt("",!0):(de(),Ze(E,{key:3,file:Q(Pt),"data-testid":"report"},null,8,["file"]))])])):nt("",!0)}}}),MNe=["open"],zNe=pe("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),UNe=pe("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),HNe=rt({__name:"DetailsPanel",props:{color:null},setup(e){const t=Ke(!0);return(n,i)=>(de(),Te("div",{open:Q(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(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[zNe,Sr(n.$slots,"summary",{open:Q(t)}),UNe],2),Sr(n.$slots,"default")],40,MNe))}});const qNe={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},jNe=["text"],VNe={"text-sm":"",truncate:"","font-light":""},WNe={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},GNe=rt({__name:"TaskItem",props:{task:null},setup(e){const t=e,n=xe(()=>{const{result:i}=t.task;return i&&Math.round(i.duration||0)});return(i,o)=>{var c,h;const a=am;return e.task?(de(),Te("div",qNe,[Me(a,{task:e.task,"mr-2":""},null,8,["task"]),pe("div",{flex:"","items-end":"","gap-2":"",text:((h=(c=e.task)==null?void 0:c.result)==null?void 0:h.state)==="fail"?"red-500":""},[pe("span",VNe,Je(e.task.name),1),typeof Q(n)=="number"?(de(),Te("span",WNe,Je(Q(n)>0?Q(n):"< 1")+"ms ",1)):nt("",!0)],8,jNe)])):nt("",!0)}}});function KNe(e){return Object.hasOwnProperty.call(e,"tasks")}function YS(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}const XNe={key:1},QNe={inheritAttrs:!1},YNe=rt({...QNe,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(e){return(t,n)=>{const i=GNe,o=Zs("TaskTree",!0);return de(),Te(ht,null,[!e.search||Q(YS)(e.task.name,e.search)?(de(),Ze(i,cs({key:0},t.$attrs,{task:e.task,style:{paddingLeft:`${e.indent*.75+1}rem`},onClick:n[0]||(n[0]=a=>e.onItemClick&&e.onItemClick(e.task))}),null,16,["task","style"])):nt("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(de(),Te("div",XNe,[(de(!0),Te(ht,null,Ar(e.task.tasks,a=>(de(),Ze(o,{key:a.id,task:a,nested:e.nested,indent:e.indent+1,search:e.search,"on-item-click":e.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):nt("",!0)],64)}}}),ZNe={h:"full",flex:"~ col"},JNe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},eIe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},tIe=pe("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),nIe=["op"],rIe={class:"scrolls","flex-auto":"","py-1":""},iIe={"text-red5":""},sIe={"text-yellow5":""},oIe={"text-green5":""},aIe={class:"text-purple5:50"},uIe={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},lIe=pe("div",{op30:""}," No matched test ",-1),cIe={inheritAttrs:!1},ZS=rt({...cIe,__name:"TasksList",props:{tasks:null,indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:null},emits:["run"],setup(e,{emit:t}){const n=e,i=Ke(""),o=Ke(),a=xe(()=>i.value.trim()!=="");function c(E,C){let S=!1;for(let O=0;O<E.length;O++){const B=E[O];if(YS(B.name,C)){S=!0;break}if(KNe(B)&&B.tasks&&(S=c(B.tasks,C),S))break}return S}const h=xe(()=>i.value.trim()?n.tasks.filter(E=>c([E],i.value)):n.tasks),d=xe(()=>a.value?h.value.map(E=>Nf(E.id)).filter(Boolean):[]),p=xe(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="fail"})),g=xe(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="pass"})),y=xe(()=>h.value.filter(E=>E.mode==="skip"||E.mode==="todo")),m=xe(()=>h.value.filter(E=>!p.value.includes(E)&&!g.value.includes(E)&&!y.value.includes(E))),w=aW(m,250);function $(E){var C;i.value="",E&&((C=o.value)==null||C.focus())}const L=xe(()=>i.value==="");return(E,C)=>{const S=Na,O=YNe,B=HNe,k=io("tooltip");return de(),Te("div",ZNe,[pe("div",null,[pe("div",JNe,[Sr(E.$slots,"header",{filteredTests:Q(a)?Q(d):void 0})]),pe("div",eIe,[tIe,yn(pe("input",{ref_key:"searchBox",ref:o,"onUpdate:modelValue":C[0]||(C[0]=M=>Nt(i)?i.value=M:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:Q(i).length?"100":"50",onKeydown:[C[1]||(C[1]=qp(M=>$(!1),["esc"])),C[2]||(C[2]=qp(M=>t("run",Q(a)?Q(d):void 0),["enter"]))]},null,40,nIe),[[Pk,Q(i)]]),yn(Me(S,{disabled:Q(L),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=M=>$(!0))},null,8,["disabled"]),[[k,"Clear search",void 0,{bottom:!0}]])])]),pe("div",rIe,[e.groupByType?(de(),Te(ht,{key:0},[Q(p).length?(de(),Ze(B,{key:0},{summary:Ye(()=>[pe("div",iIe," FAIL ("+Je(Q(p).length)+") ",1)]),default:Ye(()=>[(de(!0),Te(ht,null,Ar(Q(p),M=>(de(),Ze(O,{key:M.id,task:M,nested:e.nested,search:Q(i),class:yt(Q(Vr)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0),Q(m).length||Q(Xu)==="running"?(de(),Ze(B,{key:1},{summary:Ye(()=>[pe("div",sIe," RUNNING ("+Je(Q(w).length)+") ",1)]),default:Ye(()=>[(de(!0),Te(ht,null,Ar(Q(w),M=>(de(),Ze(O,{key:M.id,task:M,nested:e.nested,search:Q(i),class:yt(Q(Vr)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0),Q(g).length?(de(),Ze(B,{key:2},{summary:Ye(()=>[pe("div",oIe," PASS ("+Je(Q(g).length)+") ",1)]),default:Ye(()=>[(de(!0),Te(ht,null,Ar(Q(g),M=>(de(),Ze(O,{key:M.id,task:M,nested:e.nested,search:Q(i),class:yt(Q(Vr)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0),Q(y).length?(de(),Ze(B,{key:3},{summary:Ye(()=>[pe("div",aIe," SKIP ("+Je(Q(y).length)+") ",1)]),default:Ye(()=>[(de(!0),Te(ht,null,Ar(Q(y),M=>(de(),Ze(O,{key:M.id,task:M,nested:e.nested,search:Q(i),class:yt(Q(Vr)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):nt("",!0)],64)):(de(!0),Te(ht,{key:1},Ar(Q(h),M=>(de(),Ze(O,{key:M.id,task:M,nested:e.nested,search:Q(i),class:yt(Q(Vr)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),Q(a)&&Q(h).length===0?(de(),Te("div",uIe,[lIe,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]=M=>$(!0))}," Clear ",32)])):nt("",!0)])])}}}),tl=Ke(),aa=Ke(!0),xa=Ke(!1),qf=Ke(!0),jf=xe(()=>{var e;return(e=Tl.value)==null?void 0:e.coverage}),P0=xe(()=>{var e,t,n;return(t=(e=Tl.value)==null?void 0:e.api)!=null&&t.port?(n=jf.value)==null?void 0:n.enabled:!1}),Hs=xe(()=>P0.value&&jf.value.reporter.map(([e])=>e).includes("html")),fIe=xe(()=>{if(Hs.value){const e=`${window.location.protocol}//${window.location.hostname}:${Tl.value.api.port}`,t=jf.value.reportsDirectory.lastIndexOf("/");return`${e}/${jf.value.reportsDirectory.slice(t+1)}/index.html`}});Vt(Xu,e=>{qf.value=e==="running"},{immediate:!0});function hIe(){const e=Vr.value;if(e&&e.length>0){const t=Nf(e);t?(tl.value=t,aa.value=!1,xa.value=!1):bW(()=>sn.state.getFiles(),()=>{tl.value=Nf(e),aa.value=!1,xa.value=!1})}return aa}function Fp(e){aa.value=e,xa.value=!1,e&&(tl.value=void 0,Vr.value="")}function dIe(){xa.value=!0,aa.value=!1,tl.value=void 0,Vr.value=""}const pIe={key:0,"h-full":""},gIe={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},vIe={class:"flex text-lg"},mIe=rt({__name:"Suites",setup(e){const t=xe(()=>{var a;return(a=Pt.value)==null?void 0:a.name.split(/\//g).pop()}),n=xe(()=>{var a,c;return((a=Pt.value)==null?void 0:a.tasks)&&Uh((c=Pt.value)==null?void 0:c.tasks)});function i(){return Pt.value&&sn.rpc.updateSnapshot(Pt.value)}async function o(){Hs.value&&(qf.value=!0,await Ci()),await SG()}return(a,c)=>{const h=am,d=Na,p=ZS,g=io("tooltip");return Q(Pt)?(de(),Te("div",pIe,[Me(p,{tasks:Q(Pt).tasks,nested:!0},{header:Ye(()=>[Me(h,{"mx-1":"",task:Q(Pt)},null,8,["task"]),pe("span",gIe,Je(Q(t)),1),pe("div",vIe,[Q(n)&&!Q(Yr)?yn((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 ${Q(Pt).name}`,void 0,{bottom:!0}]]):nt("",!0),Q(Yr)?nt("",!0):yn((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)}}}),yIe={h:"full",flex:"~ col"},bIe=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),wIe={"flex-auto":"","py-1":"","bg-white":""},DIe=["src"],AIe=rt({__name:"Coverage",props:{src:null},setup(e){return(t,n)=>(de(),Te("div",yIe,[bIe,pe("div",wIe,[pe("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,DIe)])]))}});const Vf=xe(()=>qn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),Wf=xe(()=>qn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),um=xe(()=>qn.value.filter(e=>e.mode==="skip"||e.mode==="todo"));xe(()=>qn.value.filter(e=>!Vf.value.includes(e)&&!Wf.value.includes(e)&&!um.value.includes(e)));xe(()=>um.value.filter(e=>e.mode==="skip"));const SA=xe(()=>qn.value.filter(Uh));xe(()=>um.value.filter(e=>e.mode==="todo"));const xIe=xe(()=>Xu.value==="idle"),Ol=xe(()=>lm(qn.value)),JS=xe(()=>Ol.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),eF=xe(()=>Ol.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),tF=xe(()=>Ol.value.filter(e=>e.mode==="skip"||e.mode==="todo")),EIe=xe(()=>tF.value.filter(e=>e.mode==="skip")),CIe=xe(()=>tF.value.filter(e=>e.mode==="todo"));xe(()=>JS.value.length+eF.value.length);const _Ie=xe(()=>{const e=lm(Ol.value).reduce((t,n)=>{var i;return(i=n.result)!=null&&i.duration&&(t+=n.result.duration),t},0);return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`});function SIe(e){return e=e||[],Array.isArray(e)?e:[e]}function FA(e){return e.type==="test"||e.type==="benchmark"||e.type==="typecheck"}function lm(e){return SIe(e).flatMap(t=>FA(t)?[t]:t.tasks.flatMap(n=>FA(n)?[n]:lm(n)))}const ei=e=>(sx("data-v-6679a536"),e=e(),ox(),e),FIe={"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:""},$Ie=ei(()=>pe("div",{"i-carbon-document":""},null,-1)),TIe=ei(()=>pe("div",null,"Files",-1)),kIe={class:"number","data-testid":"num-files"},LIe=ei(()=>pe("div",{"i-carbon-checkmark":""},null,-1)),BIe=ei(()=>pe("div",null,"Pass",-1)),OIe={class:"number"},PIe=ei(()=>pe("div",{"i-carbon-close":""},null,-1)),NIe=ei(()=>pe("div",null," Fail ",-1)),IIe={class:"number","text-red5":""},RIe=ei(()=>pe("div",{"i-carbon-compare":""},null,-1)),MIe=ei(()=>pe("div",null," Snapshot Fail ",-1)),zIe={class:"number","text-red5":""},UIe=ei(()=>pe("div",{"i-carbon-timer":""},null,-1)),HIe=ei(()=>pe("div",null,"Time",-1)),qIe={class:"number","data-testid":"run-time"},jIe=rt({__name:"TestFilesEntry",setup(e){return(t,n)=>(de(),Te("div",FIe,[$Ie,TIe,pe("div",kIe,Je(Q(qn).length),1),Q(Wf).length?(de(),Te(ht,{key:0},[LIe,BIe,pe("div",OIe,Je(Q(Wf).length),1)],64)):nt("",!0),Q(Vf).length?(de(),Te(ht,{key:1},[PIe,NIe,pe("div",IIe,Je(Q(Vf).length),1)],64)):nt("",!0),Q(SA).length?(de(),Te(ht,{key:2},[RIe,MIe,pe("div",zIe,Je(Q(SA).length),1)],64)):nt("",!0),UIe,HIe,pe("div",qIe,Je(Q(_Ie)),1)]))}});const VIe=so(jIe,[["__scopeId","data-v-6679a536"]]),WIe={"p-2":"","text-center":"",flex:""},GIe={"text-4xl":"","min-w-2em":""},KIe={"text-md":""},XIe=rt({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(e){return(t,n)=>(de(),Te("div",WIe,[pe("div",null,[pe("div",GIe,[Sr(t.$slots,"body")]),pe("div",KIe,[Sr(t.$slots,"header")])])]))}}),QIe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},YIe=rt({__name:"TestsEntry",setup(e){const t=xe(()=>Ol.value.length),n=xe(()=>eF.value.length),i=xe(()=>JS.value.length),o=xe(()=>EIe.value.length),a=xe(()=>CIe.value.length);return(c,h)=>{const d=XIe;return de(),Te("div",QIe,[Me(d,{"text-green5":"","data-testid":"pass-entry"},{header:Ye(()=>[Sn(" Pass ")]),body:Ye(()=>[Sn(Je(Q(n)),1)]),_:1}),Me(d,{class:yt({"text-red5":Q(i),op50:!Q(i)}),"data-testid":"fail-entry"},{header:Ye(()=>[Sn(" Fail ")]),body:Ye(()=>[Sn(Je(Q(i)),1)]),_:1},8,["class"]),Q(o)?(de(),Ze(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Ye(()=>[Sn(" Skip ")]),body:Ye(()=>[Sn(Je(Q(o)),1)]),_:1})):nt("",!0),Q(a)?(de(),Ze(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Ye(()=>[Sn(" Todo ")]),body:Ye(()=>[Sn(Je(Q(a)),1)]),_:1})):nt("",!0),Me(d,{tail:!0,"data-testid":"total-entry"},{header:Ye(()=>[Sn(" Total ")]),body:Ye(()=>[Sn(Je(Q(t)),1)]),_:1})])}}}),ZIe={},JIe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},eRe={"aria-labelledby":"tests",m:"y-4 x-2"};function tRe(e,t){const n=YIe,i=VIe;return de(),Te("div",JIe,[pe("section",eRe,[Me(n)]),Me(i)])}const nRe=so(ZIe,[["render",tRe]]),rRe={},iRe={h:"full",flex:"~ col"},sRe=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),oRe={class:"scrolls","flex-auto":"","py-1":""};function aRe(e,t){const n=nRe;return de(),Te("div",iRe,[sRe,pe("div",oRe,[Me(n)])])}const uRe=so(rRe,[["render",aRe]]),lRe=""+new URL("../favicon.svg",import.meta.url).href,cRe=pe("img",{"w-6":"","h-6":"",src:lRe,alt:"Vitest logo"},null,-1),fRe=pe("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),hRe={class:"flex text-lg"},dRe=pe("div",{class:"i-carbon:folder-off ma"},null,-1),pRe=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),gRe=rt({__name:"Navigation",setup(e){const t=xe(()=>qn.value&&Uh(qn.value));function n(){return sn.rpc.updateSnapshot()}function i(c){Vr.value=c.id,tl.value=Nf(c.id),Fp(!1)}const o=xe(()=>Vh.value?"light":"dark");async function a(c){Hs.value&&(qf.value=!0,await Ci(),Hs.value&&(Fp(!0),await Ci())),await GD(c)}return(c,h)=>{const d=Na,p=ZS,g=io("tooltip");return de(),Ze(p,{border:"r base",tasks:Q(qn),"on-item-click":i,"group-by-type":!0,onRun:a},{header:Ye(({filteredTests:y})=>[cRe,fRe,pe("div",hRe,[yn(Me(d,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=m=>Q(Fp)(!0))},null,512),[[jp,Q(P0)&&!Q(Hs)||!Q(aa)],[g,"Dashboard",void 0,{bottom:!0}]]),Q(P0)&&!Q(Hs)?(de(),Ze(Q(n3),{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(()=>[pRe]),default:Ye(()=>[dRe]),_:1})):nt("",!0),Q(Hs)?yn((de(),Ze(d,{key:1,disabled:Q(qf),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=m=>Q(dIe)())},null,8,["disabled"])),[[jp,!Q(xa)],[g,"Coverage",void 0,{bottom:!0}]]):nt("",!0),Q(t)&&!Q(Yr)?yn((de(),Ze(d,{key:2,icon:"i-carbon:result-old",onClick:h[2]||(h[2]=m=>n())},null,512)),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):nt("",!0),Q(Yr)?nt("",!0):yn((de(),Ze(d,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:m=>Q(GD)(y)},null,8,["disabled","onClick"])),[[g,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),yn(Me(d,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=m=>Q(BLe)())},null,512),[[g,`Toggle to ${Q(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),vRe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},mRe=rt({__name:"ProgressBar",setup(e){const{width:t}=sG(),n=xe(()=>qn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":xIe.value?null:"in-progress"),i=xe(()=>qn.value.length),o=xe(()=>Wf.value.length),a=xe(()=>Vf.value.length),c=xe(()=>{const g=Q(i);return g>0?t.value*o.value/g:0}),h=xe(()=>{const g=Q(i);return g>0?t.value*a.value/g:0}),d=xe(()=>Q(i)-a.value-o.value),p=xe(()=>{const g=Q(i);return g>0?t.value*d.value/g:0});return(g,y)=>(de(),Te("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(Q(n))},[pe("div",vRe,[pe("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:yt(Q(n)),style:Un(`width: ${Q(h)}px;`)}," ",6),pe("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:yt(Q(n)),style:Un(`left: ${Q(h)}px; width: ${Q(c)}px;`)}," ",6),pe("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:yt(Q(n)),style:Un(`left: ${Q(c)+Q(h)}px; width: ${Q(p)}px;`)}," ",6)])],2))}});const yRe=so(mRe,[["__scopeId","data-v-f967c1fe"]]),$A={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 n=0;this.panes=this.panes.map((i,o)=>(i.size=o===t?i.max:i.min,o!==t&&(n+=i.min),i)),this.panes[t].size-=n,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:n,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-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 n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.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+n.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-n.prevPanesSize-n.nextPanesSize,0)):(h.size=Math.max(100-d.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),d.size=d.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(n,a);if(!y)return;({sums:n,panesToResize:c}=y),h=this.panes[c[0]]||null,d=this.panes[c[1]]||null}h!==null&&(h.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,i=[n,n+1];return t<e.prevPanesSize+this.panes[i[0]].min&&(i[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,i[0]<n&&this.panes.forEach((o,a)=>{a>i[0]&&a<=n&&(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<=n&&(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(n).index,e.nextReachedMinPanes=0,i[1]>n+1&&this.panes.forEach((o,a)=>{a>n&&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>=n+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,n,i)=>t+(i<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,i)=>t+(i>e+1?n.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"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(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,n=!1){const i=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(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(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([i,o])=>n[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 n=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,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),n=this.panes.splice(t,1)[0];this.panes.forEach((i,o)=>i.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,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 n=[],i=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&i.push(o.id)}),t>.1&&this.readjustSizes(t,n,i)},initialPanesSizing(){let e=100;const t=[],n=[];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&&n.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,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,i=0;const o=[],a=[];e&&e.givenSize!==null&&(n=(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(n,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,n){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-n.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(!n.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,n)=>{t.ondblclick=e?i=>this.onSplitterDblClick(i,n):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())}},bRe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},wRe={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 DRe(e,t,n,i,o,a){return de(),Te("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=c=>a.onPaneClick(c,e._.uid)),style:Un(e.style)},[Sr(e.$slots,"default")],4)}const Kc=bRe(wRe,[["render",DRe]]),ARe={"h-screen":"","w-screen":"",overflow:"hidden"},xRe=rt({__name:"index",setup(e){const t=hIe(),n=Zn([33,67]),i=Zn([33,67]),o=BD(h=>{h.forEach((d,p)=>{n[p]=d.size})},0),a=BD(h=>{h.forEach((d,p)=>{i[p]=d.size})},0);function c(){const h=window.innerWidth,d=Math.min(h/3,300);n[0]=100*d/h,n[1]=100-n[0],i[0]=100*d/(h-d),i[1]=100-i[0]}return(h,d)=>{const p=yRe,g=gRe,y=uRe,m=AIe,w=mIe,$=RNe,L=TG;return de(),Te(ht,null,[Me(p),pe("div",ARe,[Me(Q($A),{class:"pt-4px",onResized:Q(o),onReady:c},{default:Ye(()=>[Me(Q(Kc),{size:Q(n)[0]},{default:Ye(()=>[Me(g)]),_:1},8,["size"]),Me(Q(Kc),{size:Q(n)[1]},{default:Ye(()=>[Me(ag,null,{default:Ye(()=>[Q(t)?(de(),Ze(y,{key:"summary"})):Q(xa)?(de(),Ze(m,{key:"coverage",src:Q(fIe)},null,8,["src"])):(de(),Ze(Q($A),{key:"detail",onResized:Q(a)},{default:Ye(()=>[Me(Q(Kc),{size:Q(i)[0]},{default:Ye(()=>[Me(w)]),_:1},8,["size"]),Me(Q(Kc),{size:Q(i)[1]},{default:Ye(()=>[Me($)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Me(L)],64)}}}),ERe=[{name:"index",path:"/",component:xRe,props:!0}];const CRe={tooltip:t3};fE.options.instantMove=!0;fE.options.distance=10;function _Re(){return jL({history:oL(tW),routes:ERe})}const SRe=[_Re],cm=kx(Hk);SRe.forEach(e=>{cm.use(e())});Object.entries(CRe).forEach(([e,t])=>{cm.directive(e,t)});cm.mount("#app");
|