@vitest/browser 0.31.0 → 0.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ var c$=Object.defineProperty;var f$=(e,t,n)=>t in e?c$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fi=(e,t,n)=>(f$(e,typeof t!="symbol"?t+"":t,n),n);function h$(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 I0(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(He(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=Wt(i)?v$(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 d$=/;(?![^(]*\))/g,p$=/:([^]+)/,g$=/\/\*.*?\*\//gs;function v$(e){const t={};return e.replace(g$,"").split(d$).forEach(n=>{if(n){const i=n.split(p$);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function yt(e){let t="";if(Wt(e))t=e;else if(He(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 m$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",y$=I0(m$);function NA(e){return!!e||e===""}const Je=e=>Wt(e)?e:e==null?"":He(e)||St(e)&&(e.toString===zA||!Ve(e.toString))?JSON.stringify(e,IA,2):String(e),IA=(e,t)=>t&&t.__v_isRef?IA(e,t.value):Xo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:RA(t)?{[`Set(${t.size})`]:[...t.values()]}:St(t)&&!He(t)&&!UA(t)?String(t):t,Ct={},Ko=[],_r=()=>{},b$=()=>!1,w$=/^on[^a-z]/,Kf=e=>w$.test(e),R0=e=>e.startsWith("onUpdate:"),fn=Object.assign,M0=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},D$=Object.prototype.hasOwnProperty,ot=(e,t)=>D$.call(e,t),He=Array.isArray,Xo=e=>Xf(e)==="[object Map]",RA=e=>Xf(e)==="[object Set]",Ve=e=>typeof e=="function",Wt=e=>typeof e=="string",z0=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",MA=e=>St(e)&&Ve(e.then)&&Ve(e.catch),zA=Object.prototype.toString,Xf=e=>zA.call(e),A$=e=>Xf(e).slice(8,-1),UA=e=>Xf(e)==="[object Object]",U0=e=>Wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xc=I0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},x$=/-(\w)/g,Qr=Qf(e=>e.replace(x$,(t,n)=>n?n.toUpperCase():"")),E$=/\B([A-Z])/g,no=Qf(e=>e.replace(E$,"-$1").toLowerCase()),Yf=Qf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vd=Qf(e=>e?`on${Yf(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})},Tp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qA=e=>{const t=Wt(e)?Number(e):NaN;return isNaN(t)?e:t};let c1;const C$=()=>c1||(c1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Kn;class _${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 S$(e,t=Kn){t&&t.active&&t.effects.push(e)}function HA(){return Kn}function F$(e){Kn&&Kn.cleanups.push(e)}const q0=e=>{const t=new Set(e);return t.w=0,t.n=0,t},jA=e=>(e.w&fs)>0,VA=e=>(e.n&fs)>0,$$=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=fs},T$=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const o=t[i];jA(o)&&!VA(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 kp=30;let Dr;const Gs=Symbol(""),Lp=Symbol("");class H0{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,S$(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<=kp?$$(this):f1(this),this.fn()}finally{Cu<=kp&&T$(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&&(f1(this),this.onStop&&this.onStop(),this.active=!1)}}function f1(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 WA=[];function xa(){WA.push(us),us=!1}function Ea(){const e=WA.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=q0()),GA(o)}}function GA(e,t){let n=!1;Cu<=kp?VA(e)||(e.n|=fs,n=!jA(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"&&He(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":He(e)?U0(n)&&h.push(c.get("length")):(h.push(c.get(Gs)),Xo(e)&&h.push(c.get(Lp)));break;case"delete":He(e)||(h.push(c.get(Gs)),Xo(e)&&h.push(c.get(Lp)));break;case"set":Xo(e)&&h.push(c.get(Gs));break}if(h.length===1)h[0]&&Bp(h[0]);else{const d=[];for(const p of h)p&&d.push(...p);Bp(q0(d))}}function Bp(e,t){const n=He(e)?e:[...e];for(const i of n)i.computed&&h1(i);for(const i of n)i.computed||h1(i)}function h1(e,t){(e!==Dr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function k$(e,t){var n;return(n=gf.get(e))===null||n===void 0?void 0:n.get(t)}const L$=I0("__proto__,__v_isRef,__isVue"),KA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(z0)),B$=j0(),O$=j0(!1,!0),P$=j0(!0),d1=N$();function N$(){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){xa();const i=at(this)[t].apply(this,n);return Ea(),i}}),e}function I$(e){const t=at(this);return jn(t,"has",e),t.hasOwnProperty(e)}function j0(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$:JA:t?ZA:YA).get(i))return i;const c=He(i);if(!e){if(c&&ot(d1,o))return Reflect.get(d1,o,a);if(o==="hasOwnProperty")return I$}const h=Reflect.get(i,o,a);return(z0(o)?KA.has(o):L$(o))||(e||jn(i,"get",o),t)?h:Nt(h)?c&&U0(o)?h:h.value:St(h)?e?Jf(h):Zn(h):h}}const R$=XA(),M$=XA(!0);function XA(e=!1){return function(n,i,o,a){let c=n[i];if(aa(c)&&Nt(c)&&!Nt(o))return!1;if(!e&&(!vf(o)&&!aa(o)&&(c=at(c),o=at(o)),!He(n)&&Nt(c)&&!Nt(o)))return c.value=o,!0;const h=He(n)&&U0(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 z$(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 U$(e,t){const n=Reflect.has(e,t);return(!z0(t)||!KA.has(t))&&jn(e,"has",t),n}function q$(e){return jn(e,"iterate",He(e)?"length":Gs),Reflect.ownKeys(e)}const QA={get:B$,set:R$,deleteProperty:z$,has:U$,ownKeys:q$},H$={get:P$,set(e,t){return!0},deleteProperty(e,t){return!0}},j$=fn({},QA,{get:O$,set:M$}),V0=e=>e,Zf=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}=Zf(o),h=i?V0:n?X0: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",Gs),Reflect.get(e,"size",e)}function p1(e){e=at(e);const t=at(this);return Zf(t).has.call(t,e)||(t.add(e),Ei(t,"add",e,e)),this}function g1(e,t){t=at(t);const n=at(this),{has:i,get:o}=Zf(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 v1(e){const t=at(this),{has:n,get:i}=Zf(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 m1(){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?V0:e?X0:Ru;return!e&&jn(h,"iterate",Gs),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=Xo(a),h=e==="entries"||e===Symbol.iterator&&c,d=e==="keys"&&c,p=o[e](...i),g=n?V0:t?X0:Ru;return!t&&jn(a,"iterate",d?Lp:Gs),{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 V$(){const e={get(a){return vc(this,a)},get size(){return yc(this)},has:mc,add:p1,set:g1,delete:v1,clear:m1,forEach:bc(!1,!1)},t={get(a){return vc(this,a,!1,!0)},get size(){return yc(this)},has:mc,add:p1,set:g1,delete:v1,clear:m1,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[W$,G$,K$,X$]=V$();function W0(e,t){const n=t?e?X$:K$:e?G$:W$;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 Q$={get:W0(!1,!1)},Y$={get:W0(!1,!0)},Z$={get:W0(!0,!1)},YA=new WeakMap,ZA=new WeakMap,JA=new WeakMap,J$=new WeakMap;function eT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tT(e){return e.__v_skip||!Object.isExtensible(e)?0:eT(A$(e))}function Zn(e){return aa(e)?e:G0(e,!1,QA,Q$,YA)}function nT(e){return G0(e,!1,j$,Y$,ZA)}function Jf(e){return G0(e,!0,H$,Z$,JA)}function G0(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=tT(e);if(c===0)return e;const h=new Proxy(e,c===2?i:n);return o.set(e,h),h}function Qo(e){return aa(e)?Qo(e.__v_raw):!!(e&&e.__v_isReactive)}function aa(e){return!!(e&&e.__v_isReadonly)}function vf(e){return!!(e&&e.__v_isShallow)}function ex(e){return Qo(e)||aa(e)}function at(e){const t=e&&e.__v_raw;return t?at(t):e}function K0(e){return pf(e,"__v_skip",!0),e}const Ru=e=>St(e)?Zn(e):e,X0=e=>St(e)?Jf(e):e;function Q0(e){us&&Dr&&(e=at(e),GA(e.dep||(e.dep=q0())))}function Y0(e,t){e=at(e);const n=e.dep;n&&Bp(n)}function Nt(e){return!!(e&&e.__v_isRef===!0)}function Ke(e){return tx(e,!1)}function Ca(e){return tx(e,!0)}function tx(e,t){return Nt(e)?e:new rT(e,t)}class rT{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 Q0(this),this._value}set value(t){const n=this.__v_isShallow||vf(t)||aa(t);t=n?t:at(t),Iu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ru(t),Y0(this))}}function Q(e){return Nt(e)?e.value:e}const iT={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 nx(e){return Qo(e)?e:new Proxy(e,iT)}class sT{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Q0(this),()=>Y0(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function oT(e){return new sT(e)}function aT(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=eh(e,n);return t}class uT{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 k$(at(this._object),this._key)}}function eh(e,t,n){const i=e[t];return Nt(i)?i:new uT(e,t,n)}var rx;class lT{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rx]=!1,this._dirty=!0,this.effect=new H0(t,()=>{this._dirty||(this._dirty=!0,Y0(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=at(this);return Q0(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rx="__v_isReadonly";function cT(e,t,n=!1){let i,o;const a=Ve(e);return a?(i=e,o=_r):(i=e.get,o=e.set),new lT(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&&MA(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}}fT(e,n,o,i)}function fT(e,t,n,i=!0){console.error(e)}let Mu=!1,Op=!1;const mn=[];let qr=0;const Yo=[];let vi=null,Is=0;const ix=Promise.resolve();let Z0=null;function Ci(e){const t=Z0||ix;return e?t.then(this?e.bind(this):e):t}function hT(e){let t=qr+1,n=mn.length;for(;t<n;){const i=t+n>>>1;zu(mn[i])<e?t=i+1:n=i}return t}function J0(e){(!mn.length||!mn.includes(e,Mu&&e.allowRecurse?qr+1:qr))&&(e.id==null?mn.push(e):mn.splice(hT(e.id),0,e),sx())}function sx(){!Mu&&!Op&&(Op=!0,Z0=ix.then(ux))}function dT(e){const t=mn.indexOf(e);t>qr&&mn.splice(t,1)}function ox(e){He(e)?Yo.push(...e):(!vi||!vi.includes(e,e.allowRecurse?Is+1:Is))&&Yo.push(e),sx()}function y1(e,t=Mu?qr+1:0){for(;t<mn.length;t++){const n=mn[t];n&&n.pre&&(mn.splice(t,1),t--,n())}}function ax(e){if(Yo.length){const t=[...new Set(Yo)];if(Yo.length=0,vi){vi.push(...t);return}for(vi=t,vi.sort((n,i)=>zu(n)-zu(i)),Is=0;Is<vi.length;Is++)vi[Is]();vi=null,Is=0}}const zu=e=>e.id==null?1/0:e.id,pT=(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 ux(e){Op=!1,Mu=!0,mn.sort(pT);const t=_r;try{for(qr=0;qr<mn.length;qr++){const n=mn[qr];n&&n.active!==!1&&ls(n,null,14)}}finally{qr=0,mn.length=0,ax(),Mu=!1,Z0=null,(mn.length||Yo.length)&&ux()}}function gT(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(Tp))}let h,d=i[h=Vd(t)]||i[h=Vd(Qr(t))];!d&&a&&(d=i[h=Vd(no(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 lx(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=lx(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):(He(a)?a.forEach(d=>c[d]=null):fn(c,a),St(e)&&i.set(e,c),c)}function th(e,t){return!e||!Kf(t)?!1:(t=t.slice(2).replace(/Once$/,""),ot(e,t[0].toLowerCase()+t.slice(1))||ot(e,no(t))||ot(e,t))}let cn=null,nh=null;function mf(e){const t=cn;return cn=e,nh=e&&e.type.__scopeId||null,t}function cx(e){nh=e}function fx(){nh=null}const vT=e=>Ye;function Ye(e,t=cn,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&$1(-1);const a=mf(t);let c;try{c=e(...o)}finally{mf(a),i._d&&$1(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function Wd(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 C,E;const S=mf(e);try{if(n.shapeFlag&4){const B=o||i;C=wr(g.call(B,B,y,a,w,m,$)),E=d}else{const B=t;C=wr(B.length>1?B(a,{attrs:d,slots:h,emit:p}):B(a,null)),E=t.props?d:yT(d)}}catch(B){Tu.length=0,nl(B,e,1),C=Me(qn)}let O=C;if(E&&L!==!1){const B=Object.keys(E),{shapeFlag:k}=O;B.length&&k&7&&(c&&B.some(R0)&&(E=bT(E,c)),O=hs(O,E))}return n.dirs&&(O=hs(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),C=O,mf(S),C}function mT(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(qu(i)){if(i.type!==qn||i.children==="v-if"){if(t)return;t=i}}else return}return t}const yT=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kf(n))&&((t||(t={}))[n]=e[n]);return t},bT=(e,t)=>{const n={};for(const i in e)(!R0(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function wT(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?b1(i,c,p):!!c;if(d&8){const g=t.dynamicProps;for(let y=0;y<g.length;y++){const m=g[y];if(c[m]!==i[m]&&!th(p,m))return!0}}}else return(o||h)&&(!h||!h.$stable)?!0:i===c?!1:i?c?b1(i,c,p):!0:!!c;return!1}function b1(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]&&!th(n,a))return!0}return!1}function eg({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const DT=e=>e.__isSuspense,AT={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,a,c,h,d,p){e==null?ET(t,n,i,o,a,c,h,d,p):CT(e,t,n,i,o,c,h,d,p)},hydrate:_T,create:tg,normalize:ST},xT=AT;function Uu(e,t){const n=e.props&&e.props[t];Ve(n)&&n()}function ET(e,t,n,i,o,a,c,h,d){const{p,o:{createElement:g}}=d,y=g("div"),m=e.suspense=tg(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),Zo(m,e.ssFallback)):m.resolve()}function CT(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:C,isHydrating:E}=y;if(L)y.pendingBranch=m,Hr(m,L)?(d(L,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():C&&(d($,w,n,i,o,null,a,c,h),Zo(y,w))):(y.pendingId++,E?(y.isHydrating=!1,y.activeBranch=L):p(L,o,y),y.deps=0,y.effects.length=0,y.hiddenContainer=g("div"),C?(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),Zo(y,w))):$&&Hr(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($&&Hr(m,$))d($,m,n,i,o,y,a,c,h),Zo(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 tg(e,t,n,i,o,a,c,h,d,p,g=!1){const{p:y,m,um:w,n:$,o:{parentNode:L,remove:C}}=p,E=e.props?qA(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 E=="number"?E:-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)}Zo(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||ox(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),Zo(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;qp(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&&C(ne),eg(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 _T(e,t,n,i,o,a,c,h,d){const p=t.suspense=tg(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 ST(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=w1(i?n.default:n),e.ssFallback=i?w1(n.fallback):Me(qn)}function w1(e){let t;if(Ve(e)){const n=ua&&e._c;n&&(e._d=!1,de()),e=e(),n&&(e._d=!0,t=ar,$x())}return He(e)&&(e=mT(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function FT(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):ox(e)}function Zo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,o=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=o,eg(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 ng(e,t){return rg(e,null,t)}const Dc={};function Vt(e,t,n){return rg(e,t,n)}function rg(e,t,{immediate:n,deep:i,flush:o,onTrack:a,onTrigger:c}=Ct){const h=HA()===(Ut==null?void 0:Ut.scope)?Ut:null;let d,p=!1,g=!1;if(Nt(e)?(d=()=>e.value,p=vf(e)):Qo(e)?(d=()=>e,i=!0):He(e)?(g=!0,p=e.some(O=>Qo(O)||vf(O)),d=()=>e.map(O=>{if(Nt(O))return O.value;if(Qo(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=E.onStop=()=>{ls(O,h,4)}},w;if(Hu)if(m=_r,t?n&&lr(t,h,3,[d(),g?[]:void 0,m]):d(),o==="sync"){const O=wk();w=O.__watcherHandles||(O.__watcherHandles=[])}else return _r;let $=g?new Array(e.length).fill(Dc):Dc;const L=()=>{if(E.active)if(t){const O=E.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 E.run()};L.allowRecurse=!!t;let C;o==="sync"?C=L:o==="post"?C=()=>In(L,h&&h.suspense):(L.pre=!0,h&&(L.id=h.uid),C=()=>J0(L));const E=new H0(d,C);t?n?L():$=E.run():o==="post"?In(E.run.bind(E),h&&h.suspense):E.run();const S=()=>{E.stop(),h&&h.scope&&M0(h.scope.effects,E)};return w&&w.push(S),S}function $T(e,t,n){const i=this.proxy,o=Wt(e)?e.includes(".")?hx(i,e):()=>i[e]:e.bind(i,i);let a;Ve(t)?a=t:(a=t.handler,n=t);const c=Ut;la(this);const h=rg(o,a.bind(i),n);return c?la(c):Ks(),h}function hx(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(He(e))for(let n=0;n<e.length;n++)qs(e[n],t);else if(RA(e)||Xo(e))e.forEach(n=>{qs(n,t)});else if(UA(e))for(const n in e)qs(e[n],t);return e}function TT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _a(()=>{e.isMounted=!0}),mx(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],kT={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=TT();let o;return()=>{const a=t.default&&gx(t.default(),!0);if(!a||!a.length)return;let c=a[0];if(a.length>1){for(const L of a)if(L.type!==qn){c=L;break}}const h=at(e),{mode:d}=h;if(i.isLeaving)return Gd(c);const p=D1(c);if(!p)return Gd(c);const g=Pp(p,h,i,n);Np(p,g);const y=n.subTree,m=y&&D1(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!==qn&&(!Hr(p,m)||w)){const L=Pp(m,h,i,n);if(Np(m,L),d==="out-in")return i.isLeaving=!0,L.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},Gd(c);d==="in-out"&&p.type!==qn&&(L.delayLeave=(C,E,S)=>{const O=px(i,m);O[String(m.key)]=m,C._leaveCb=()=>{E(),C._leaveCb=void 0,delete g.delayedLeave},g.delayedLeave=S})}return c}}},dx=kT;function px(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 Pp(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:C,onAfterAppear:E,onAppearCancelled:S}=t,O=String(e.key),B=px(n,e),k=(j,ne)=>{j&&lr(j,i,9,ne)},M=(j,ne)=>{const oe=ne[1];k(j,ne),He(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&&Hr(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=C||d,oe=E||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 Pp(j,t,n,i)}};return U}function Gd(e){if(rh(e))return e=hs(e),e.children=null,e}function D1(e){return rh(e)?e.children?e.children[0]:void 0:e}function Np(e,t){e.shapeFlag&6&&e.component?Np(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 gx(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(gx(c.children,t,h))):(t||c.type!==qn)&&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,rh=e=>e.type.__isKeepAlive;function LT(e,t){vx(e,"a",t)}function BT(e,t){vx(e,"da",t)}function vx(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(ih(t,i,n),n){let o=n.parent;for(;o&&o.parent;)rh(o.parent.vnode)&&OT(i,t,n,o),o=o.parent}}function OT(e,t,n,i){const o=ih(t,e,i,!0);ig(()=>{M0(i[t],o)},n)}function ih(e,t,n=Ut,i=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...c)=>{if(n.isUnmounted)return;xa(),la(n);const h=lr(t,n,e,c);return Ks(),Ea(),h});return i?o.unshift(a):o.push(a),a}}const Li=e=>(t,n=Ut)=>(!Hu||e==="sp")&&ih(e,(...i)=>t(...i),n),PT=Li("bm"),_a=Li("m"),NT=Li("bu"),IT=Li("u"),mx=Li("bum"),ig=Li("um"),RT=Li("sp"),MT=Li("rtg"),zT=Li("rtc");function UT(e,t=Ut){ih("ec",e,t)}function yn(e,t){const n=cn;if(n===null)return e;const i=ah(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 Fs(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&&(xa(),lr(d,n,8,[e.el,h,e,t]),Ea())}}const yx="components",qT="directives";function Ys(e,t){return bx(yx,e,!0,t)||e}const HT=Symbol();function ro(e){return bx(qT,e)}function bx(e,t,n=!0,i=!1){const o=cn||Ut;if(o){const a=o.type;if(e===yx){const h=gk(a,!1);if(h&&(h===t||h===Qr(t)||h===Yf(Qr(t))))return a}const c=A1(o[e]||a[e],t)||A1(o.appContext[e],t);return!c&&i?a:c}}function A1(e,t){return e&&(e[t]||e[Qr(t)]||e[Yf(Qr(t))])}function Ar(e,t,n,i){let o;const a=n&&n[i];if(He(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&&wx(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 wx(e){return e.some(t=>qu(t)?!(t.type===qn||t.type===ht&&!wx(t.children)):!0)?e:null}const Ip=e=>e?Lx(e)?ah(e)||e.proxy:Ip(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=>Ip(e.parent),$root:e=>Ip(e.root),$emit:e=>e.emit,$options:e=>sg(e),$forceUpdate:e=>e.f||(e.f=()=>J0(e.update)),$nextTick:e=>e.n||(e.n=Ci.bind(e.proxy)),$watch:e=>$T.bind(e)}),Kd=(e,t)=>e!==Ct&&!e.__isScriptSetup&&ot(e,t),jT={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(Kd(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];Rp&&(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 Kd(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)||Kd(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 Rp=!0;function VT(e){const t=sg(e),n=e.proxy,i=e.ctx;Rp=!1,t.beforeCreate&&x1(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:C,beforeDestroy:E,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&&WT(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(Rp=!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)Dx(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&&x1(g,e,"c");function R(V,Z){He(Z)?Z.forEach(ue=>V(ue.bind(n))):Z&&V(Z.bind(n))}if(R(PT,y),R(_a,m),R(NT,w),R(IT,$),R(LT,L),R(BT,C),R(UT,j),R(zT,M),R(MT,U),R(mx,S),R(ig,B),R(RT,ne),He(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 WT(e,t,n=_r,i=!1){He(e)&&(e=Mp(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 x1(e,t,n){lr(He(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dx(e,t,n,i){const o=i.includes(".")?hx(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(He(e))e.forEach(a=>Dx(a,t,n,i));else{const a=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(a)&&Vt(o,a,e)}}function sg(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=GT[c]||n&&n[c];e[c]=h?h(e[c],t[c]):t[c]}return e}const GT={data:E1,props:Os,emits:Os,methods:Os,computed:Os,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:Os,directives:Os,watch:XT,provide:E1,inject:KT};function E1(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 KT(e,t){return Os(Mp(e),Mp(t))}function Mp(e){if(He(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 Os(e,t){return e?fn(fn(Object.create(null),e),t):t}function XT(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 QT(e,t,n,i=!1){const o={},a={};pf(a,oh,1),e.propsDefaults=Object.create(null),Ax(e,t,o,a);for(const c in e.propsOptions[0])c in o||(o[c]=void 0);n?e.props=i?o:nT(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function YT(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(th(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[$]=zp(d,h,$,w,e,!1)}else w!==a[m]&&(a[m]=w,p=!0)}}}else{Ax(e,t,o,a)&&(p=!0);let g;for(const y in h)(!t||!ot(t,y)&&((g=no(y))===y||!ot(t,g)))&&(d?n&&(n[y]!==void 0||n[g]!==void 0)&&(o[y]=zp(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 Ax(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:th(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]=zp(o,d,y,p[y],e,!ot(p,y))}}return c}function zp(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]:(la(o),i=p[n]=d.call(null,t),Ks())}else i=d}c[0]&&(a&&!h?i=!1:c[1]&&(i===""||i===no(n))&&(i=!0))}return i}function xx(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]=xx(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,Ko),Ko;if(He(a))for(let g=0;g<a.length;g++){const y=Qr(a[g]);C1(y)&&(c[y]=Ct)}else if(a)for(const g in a){const y=Qr(g);if(C1(y)){const m=a[g],w=c[y]=He(m)||Ve(m)?{type:m}:Object.assign({},m);if(w){const $=F1(Boolean,w.type),L=F1(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 C1(e){return e[0]!=="$"}function _1(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function S1(e,t){return _1(e)===_1(t)}function F1(e,t){return He(t)?t.findIndex(n=>S1(n,e)):Ve(t)&&S1(t,e)?0:-1}const Ex=e=>e[0]==="_"||e==="$stable",og=e=>He(e)?e.map(wr):[wr(e)],ZT=(e,t,n)=>{if(t._n)return t;const i=Ye((...o)=>og(t(...o)),n);return i._c=!1,i},Cx=(e,t,n)=>{const i=e._ctx;for(const o in e){if(Ex(o))continue;const a=e[o];if(Ve(a))t[o]=ZT(o,a,i);else if(a!=null){const c=og(a);t[o]=()=>c}}},_x=(e,t)=>{const n=og(t);e.slots.default=()=>n},JT=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=at(t),pf(t,"_",n)):Cx(t,e.slots={})}else e.slots={},t&&_x(e,t);pf(e.slots,oh,1)},ek=(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,Cx(t,o)),c=t}else t&&(_x(e,t),c={default:1});if(a)for(const h in o)!Ex(h)&&!(h in c)&&delete o[h]};function Sx(){return{app:null,config:{isNativeTag:b$,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let tk=0;function nk(e,t){return function(i,o=null){Ve(i)||(i=Object.assign({},i)),o!=null&&!St(o)&&(o=null);const a=Sx(),c=new Set;let h=!1;const d=a.app={_uid:tk++,_component:i,_props:o,_container:null,_context:a,_instance:null,version:Dk,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,ah(m.component)||m.component.proxy}},unmount(){h&&(e(null,d._container),delete d._container.__vue_app__)},provide(p,g){return a.provides[p]=g,d}};return d}}function Up(e,t,n,i,o=!1){if(He(e)){e.forEach((m,w)=>Up(m,t&&(He(t)?t[w]:t),n,i,o));return}if(Fu(i)&&!o)return;const a=i.shapeFlag&4?ah(i.component)||i.component.proxy:i.el,c=o?null:a,{i:h,r:d}=e,p=t&&t.r,g=h.refs===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?He(L)&&M0(L,a):He(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=FT;function rk(e){return ik(e)}function ik(e,t){const n=C$();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&&!Hr(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 sh:C(I,G,re,ae);break;case qn:E(I,G,re,ae);break;case Xd: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&&Up(Ne,I&&I.ref,ye,G||I,!G)},C=(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)}},E=(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&&Fs(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&&Fs(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&&Fs(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&&$s(re,!1),(Re=Pe.onVnodeBeforeUpdate)&&Mr(Re,re,G,I),Ne&&Fs(G,I,re,"beforeUpdate"),re&&$s(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&&Fs(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||!Hr(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)&&Fx(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=fk(I,ae,ce);if(rh(I)&&(be.ctx.renderer=Se),hk(be),be.asyncDep){if(ce&&ce.registerDep(be,R),!I.el){const Ee=be.subTree=Me(qn);E(null,Ee,G,re)}return}R(be,I,G,re,ce,ye,he)},D=(I,G,re)=>{const ae=G.component=I.component;if(wT(I,G,re))if(ae.asyncDep&&!ae.asyncResolved){V(ae,G,re);return}else ae.next=G,dT(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;$s(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),$s(I,!0);const ft=Wd(I),et=I.subTree;I.subTree=ft,L(et,ft,y(et.el),J(et),I,ce,ye),Ne.el=ft.el,it===null&&eg(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($s(I,!1),Re&&Qc(Re),!tt&&(Ne=Pe&&Pe.onVnodeBeforeMount)&&Mr(Ne,it,G),$s(I,!0),Be&&ke){const ft=()=>{I.subTree=Wd(I),ke(Be,I.subTree,I,ce,null)};tt?G.type.__asyncLoader().then(()=>!I.isUnmounted&&ft()):ft()}else{const ft=I.subTree=Wd(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,()=>J0(ve),I.scope),ve=I.update=()=>Ee.run();ve.id=I.uid,$s(I,!0),ve()},V=(I,G,re)=>{G.component=I;const ae=I.vnode.props;I.vnode=G,I.next=null,YT(I,G.props,ae,re),ek(I,G.children,re),xa(),y1(),Ea()},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||Ko,G=G||Ko;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(Hr(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(Hr(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&&Hr(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 lo=Bn?sk(tn):Ko;for(tt=lo.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!==lo[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===Xd){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&&Up(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&&Fs(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&&Fs(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===Xd){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),y1(),ax(),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:nk(fe,vt)}}function $s({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Fx(e,t,n=!1){const i=e.children,o=t.children;if(He(i)&&He(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||Fx(c,h)),h.type===sh&&(h.el=c.el)}}function sk(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 ok=e=>e.__isTeleport,ht=Symbol(void 0),sh=Symbol(void 0),qn=Symbol(void 0),Xd=Symbol(void 0),Tu=[];let ar=null;function de(e=!1){Tu.push(ar=e?null:[])}function $x(){Tu.pop(),ar=Tu[Tu.length-1]||null}let ua=1;function $1(e){ua+=e}function Tx(e){return e.dynamicChildren=ua>0?ar||Ko:null,$x(),ua>0&&ar&&ar.push(e),e}function Te(e,t,n,i,o,a){return Tx(pe(e,t,n,i,o,a,!0))}function Ze(e,t,n,i,o){return Tx(Me(e,t,n,i,o,!0))}function qu(e){return e?e.__v_isVNode===!0:!1}function Hr(e,t){return e.type===t.type&&e.key===t.key}const oh="__vInternal",kx=({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&&kx(t),ref:t&&Zc(t),scopeId:nh,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?(ag(d,n),a&128&&e.normalize(d)):n&&(d.shapeFlag|=Wt(n)?8:16),ua>0&&!c&&ar&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&ar.push(d),d}const Me=ak;function ak(e,t=null,n=null,i=0,o=null,a=!1){if((!e||e===HT)&&(e=qn),qu(e)){const h=hs(e,t,!0);return n&&ag(h,n),ua>0&&!a&&ar&&(h.shapeFlag&6?ar[ar.indexOf(e)]=h:ar.push(h)),h.patchFlag|=-2,h}if(vk(e)&&(e=e.__vccOpts),t){t=uk(t);let{class:h,style:d}=t;h&&!Wt(h)&&(t.class=yt(h)),St(d)&&(ex(d)&&!He(d)&&(d=fn({},d)),t.style=Un(d))}const c=Wt(e)?1:DT(e)?128:ok(e)?64:St(e)?4:Ve(e)?2:0;return pe(e,t,n,i,o,c,a,!0)}function uk(e){return e?ex(e)||oh 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&&kx(h),ref:t&&t.ref?n&&o?He(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(sh,null,e,t)}function nt(e="",t=!1){return t?(de(),Ze(qn,null,e)):Me(qn,null,e)}function wr(e){return e==null||typeof e=="boolean"?Me(qn):He(e)?Me(ht,null,e.slice()):typeof e=="object"?ts(e):Me(sh,null,String(e))}function ts(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function ag(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),ag(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(oh 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(Kf(o)){const a=t[o],c=i[o];c&&a!==c&&!(He(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 lk=Sx();let ck=0;function fk(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||lk,a={uid:ck++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new _$(!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:xx(i,o),emitsOptions:lx(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=gT.bind(null,a),e.ce&&e.ce(a),a}let Ut=null;const rl=()=>Ut||cn,la=e=>{Ut=e,e.scope.on()},Ks=()=>{Ut&&Ut.scope.off(),Ut=null};function Lx(e){return e.vnode.shapeFlag&4}let Hu=!1;function hk(e,t=!1){Hu=t;const{props:n,children:i}=e.vnode,o=Lx(e);QT(e,n,o,t),JT(e,i);const a=o?dk(e,t):void 0;return Hu=!1,a}function dk(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=K0(new Proxy(e.ctx,jT));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?Ox(e):null;la(e),xa();const a=ls(i,e,0,[e.props,o]);if(Ea(),Ks(),MA(a)){if(a.then(Ks,Ks),t)return a.then(c=>{qp(e,c,t)}).catch(c=>{nl(c,e,0)});e.asyncDep=a}else qp(e,a,t)}else Bx(e,t)}function qp(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=nx(t)),Bx(e,n)}let T1;function Bx(e,t,n){const i=e.type;if(!e.render){if(!t&&T1&&!i.render){const o=i.template||sg(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=T1(o,p)}}e.render=i.render||_r}la(e),xa(),VT(e),Ea(),Ks()}function pk(e){return new Proxy(e.attrs,{get(t,n){return jn(e,"get","$attrs"),t[n]}})}function Ox(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=pk(e))},slots:e.slots,emit:e.emit,expose:t}}function ah(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(nx(K0(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 gk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function vk(e){return Ve(e)&&"__vccOpts"in e}const xe=(e,t)=>cT(e,t,Hu);function mk(){return yk().attrs}function yk(){const e=rl();return e.setupContext||(e.setupContext=Ox(e))}function il(e,t,n){const i=arguments.length;return i===2?St(t)&&!He(t)?qu(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&qu(n)&&(n=[n]),Me(e,t,n))}const bk=Symbol(""),wk=()=>Ai(bk),Dk="3.2.47",Ak="http://www.w3.org/2000/svg",Rs=typeof document<"u"?document:null,k1=Rs&&Rs.createElement("template"),xk={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?Rs.createElementNS(Ak,e):Rs.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Rs.createTextNode(e),createComment:e=>Rs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rs.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{k1.innerHTML=i?`<svg>${e}</svg>`:e;const h=k1.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 Ek(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 Ck(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 L1=/\s*!important$/;function Hp(e,t,n){if(He(n))n.forEach(i=>Hp(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=_k(e,t);L1.test(n)?e.setProperty(no(i),n.replace(L1,""),"important"):e[i]=n}}const B1=["Webkit","Moz","ms"],Qd={};function _k(e,t){const n=Qd[t];if(n)return n;let i=Qr(t);if(i!=="filter"&&i in e)return Qd[t]=i;i=Yf(i);for(let o=0;o<B1.length;o++){const a=B1[o]+i;if(a in e)return Qd[t]=a}return t}const O1="http://www.w3.org/1999/xlink";function Sk(e,t,n,i,o){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(O1,t.slice(6,t.length)):e.setAttributeNS(O1,t,n);else{const a=y$(t);n==null||a&&!NA(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function Fk(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=NA(n):n==null&&d==="string"?(n="",h=!0):d==="number"&&(n=0,h=!0)}try{e[t]=n}catch{}h&&e.removeAttribute(t)}function Ho(e,t,n,i){e.addEventListener(t,n,i)}function $k(e,t,n,i){e.removeEventListener(t,n,i)}function Tk(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]=kk(t);if(i){const p=a[t]=Ok(i,o);Ho(e,h,p,d)}else c&&($k(e,h,c,d),a[t]=void 0)}}const P1=/(?:Once|Passive|Capture)$/;function kk(e){let t;if(P1.test(e)){t={};let i;for(;i=e.match(P1);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):no(e.slice(2)),t]}let Yd=0;const Lk=Promise.resolve(),Bk=()=>Yd||(Lk.then(()=>Yd=0),Yd=Date.now());function Ok(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;lr(Pk(i,n.value),t,5,[i])};return n.value=e,n.attached=Bk(),n}function Pk(e,t){if(He(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 N1=/^on[a-z]/,Nk=(e,t,n,i,o=!1,a,c,h,d)=>{t==="class"?Ek(e,i,o):t==="style"?Ck(e,n,i):Kf(t)?R0(t)||Tk(e,t,n,i,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ik(e,t,i,o))?Fk(e,t,i,a,c,h,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Sk(e,t,i,o))};function Ik(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&N1.test(t)&&Ve(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||N1.test(t)&&Wt(n)?!1:t in e}const Qi="transition",gu="animation",ug=(e,{slots:t})=>il(dx,Rk(e),t);ug.displayName="Transition";const Px={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};ug.props=fn({},dx.props,Px);const Ts=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},I1=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function Rk(e){const t={};for(const z in e)z in Px||(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,$=Mk(o),L=$&&$[0],C=$&&$[1],{onBeforeEnter:E,onEnter:S,onEnterCancelled:O,onLeave:B,onLeaveCancelled:k,onBeforeAppear:M=E,onAppear:U=S,onAppearCancelled:j=O}=t,ne=(z,P,F)=>{ks(z,P?g:h),ks(z,P?p:c),F&&F()},oe=(z,P)=>{z._isLeaving=!1,ks(z,y),ks(z,w),ks(z,m),P&&P()},Y=z=>(P,F)=>{const D=z?U:S,R=()=>ne(P,z,F);Ts(D,[P,R]),R1(()=>{ks(P,z?d:a),Yi(P,z?g:h),I1(D)||M1(P,i,L,R)})};return fn(t,{onBeforeEnter(z){Ts(E,[z]),Yi(z,a),Yi(z,c)},onBeforeAppear(z){Ts(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),qk(),Yi(z,m),R1(()=>{z._isLeaving&&(ks(z,y),Yi(z,w),I1(B)||M1(z,i,C,F))}),Ts(B,[z,F])},onEnterCancelled(z){ne(z,!1),Ts(O,[z])},onAppearCancelled(z){ne(z,!0),Ts(j,[z])},onLeaveCancelled(z){oe(z),Ts(k,[z])}})}function Mk(e){if(e==null)return null;if(St(e))return[Zd(e.enter),Zd(e.leave)];{const t=Zd(e);return[t,t]}}function Zd(e){return qA(e)}function Yi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ks(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 R1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zk=0;function M1(e,t,n,i){const o=e._endId=++zk,a=()=>{o===e._endId&&i()};if(n)return setTimeout(a,n);const{type:c,timeout:h,propCount:d}=Uk(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 Uk(e,t){const n=window.getComputedStyle(e),i=$=>(n[$]||"").split(", "),o=i(`${Qi}Delay`),a=i(`${Qi}Duration`),c=z1(o,a),h=i(`${gu}Delay`),d=i(`${gu}Duration`),p=z1(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 z1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>U1(n)+U1(e[i])))}function U1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function qk(){return document.body.offsetHeight}const q1=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>Qc(t,n):t};function Hk(e){e.target.composing=!0}function H1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const jk={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e._assign=q1(o);const a=i||o.props&&o.props.type==="number";Ho(e,t?"change":"input",c=>{if(c.target.composing)return;let h=e.value;n&&(h=h.trim()),a&&(h=Tp(h)),e._assign(h)}),n&&Ho(e,"change",()=>{e.value=e.value.trim()}),t||(Ho(e,"compositionstart",Hk),Ho(e,"compositionend",H1),Ho(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=q1(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(o||e.type==="number")&&Tp(e.value)===t))return;const c=t??"";e.value!==c&&(e.value=c)}},Vk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jp=(e,t)=>n=>{if(!("key"in n))return;const i=no(n.key);if(t.some(o=>o===i||Vk[o]===i))return e(n)},Vp={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 Wk=fn({patchProp:Nk},xk);let j1;function Gk(){return j1||(j1=rk(Wk))}const Nx=(...e)=>{const t=Gk().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Kk(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 Kk(e){return Wt(e)?document.querySelector(e):e}const io=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Xk={};function Qk(e,t){const n=Ys("RouterView");return de(),Ze(n)}const Yk=io(Xk,[["render",Qk]]);/*!
2
+ * vue-router v4.1.6
3
+ * (c) 2022 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const jo=typeof window<"u";function Zk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const gt=Object.assign;function Jd(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=/\/$/,eL=e=>e.replace(Jk,"");function ep(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=iL(i??t,n),{fullPath:i+(a&&"?")+a+c,path:i,query:o,hash:c}}function tL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function V1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function nL(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&ca(t.matched[i],n.matched[o])&&Ix(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ca(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ix(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!rL(e[n],t[n]))return!1;return!0}function rL(e,t){return Fr(e)?W1(e,t):Fr(t)?W1(t,e):e===t}function W1(e,t){return Fr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function iL(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 sL(e){if(!e)if(jo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eL(e)}const oL=/^[^#]+#/;function aL(e,t){return e.replace(oL,"#")+t}function uL(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 uh=()=>({left:window.pageXOffset,top:window.pageYOffset});function lL(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=uL(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 G1(e,t){return(history.state?history.state.position-t:-1)+e}const Wp=new Map;function cL(e,t){Wp.set(e,t)}function fL(e){const t=Wp.get(e);return Wp.delete(e),t}let hL=()=>location.protocol+"//"+location.host;function Rx(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),V1(d,"")}return V1(n,e)+i+o}function dL(e,t,n,i){let o=[],a=[],c=null;const h=({state:m})=>{const w=Rx(e,location),$=n.value,L=t.value;let C=0;if(m){if(n.value=w,t.value=m,c&&c===$){c=null;return}C=L?m.position-L.position:0}else i(w);o.forEach(E=>{E(n.value,$,{delta:C,type:ju.pop,direction:C?C>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:uh()}),"")}function y(){for(const m of a)m();a=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",g),{pauseListeners:d,listen:p,destroy:y}}function K1(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?uh():null}}function pL(e){const{history:t,location:n}=window,i={value:Rx(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:hL()+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,K1(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:uh()});a(g.current,g,!0);const y=gt({},K1(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 gL(e){e=sL(e);const t=pL(e),n=dL(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:aL.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 vL(e){return typeof e=="string"||e&&typeof e=="object"}function Mx(e){return typeof e=="string"||typeof e=="symbol"}const Zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},zx=Symbol("");var X1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(X1||(X1={}));function fa(e,t){return gt(new Error,{type:e,[zx]:!0},t)}function hi(e,t){return e instanceof Error&&zx in e&&(t==null||!!(e.type&t))}const Q1="[^/]+?",mL={sensitive:!1,strict:!1,start:!0,end:!0},yL=/[.+*?^${}()[\]/\\]/g;function bL(e,t){const n=gt({},mL,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(yL,"\\$&"),w+=40;else if(m.type===1){const{value:$,repeatable:L,optional:C,regexp:E}=m;a.push({name:$,repeatable:L,optional:C});const S=E||Q1;if(S!==Q1){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=C&&p.length<2?`(?:/${O})`:"/"+O),C&&(O+="?"),o+=O,w+=20,C&&(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:C}=w,E=$ in p?p[$]:"";if(Fr(E)&&!L)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const S=Fr(E)?E.join("/"):E;if(!S)if(C)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 wL(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 DL(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const a=wL(i[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-i.length)===1){if(Y1(i))return 1;if(Y1(o))return-1}return o.length-i.length}function Y1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const AL={type:0,value:""},xL=/[a-zA-Z0-9_]/;function EL(e){if(!e)return[[]];if(e==="/")return[[AL]];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:xL.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 CL(e,t,n){const i=bL(EL(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 _L(e,t){const n=[],i=new Map;t=eb({strict:!1,end:!0,sensitive:!1},t);function o(g){return i.get(g)}function a(g,y,m){const w=!m,$=SL(g);$.aliasOf=m&&m.record;const L=eb(t,g),C=[$];if("alias"in g){const O=typeof g.alias=="string"?[g.alias]:g.alias;for(const B of O)C.push(gt({},$,{components:m?m.record.components:$.components,path:B,aliasOf:m?m.record:$}))}let E,S;for(const O of C){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(E=CL(O,y,L),m?m.alias.push(E):(S=S||E,S!==E&&S.alias.push(E),w&&g.name&&!J1(E)&&c(g.name)),$.children){const k=$.children;for(let M=0;M<k.length;M++)a(k[M],E,m&&m.children[M])}m=m||E,(E.record.components&&Object.keys(E.record.components).length||E.record.name||E.record.redirect)&&d(E)}return S?()=>{c(S)}:ku}function c(g){if(Mx(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&&DL(g,n[y])>=0&&(g.record.path!==n[y].record.path||!Ux(g,n[y]));)y++;n.splice(y,0,g),g.record.name&&!J1(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 fa(1,{location:g});L=m.record.name,w=gt(Z1(y.params,m.keys.filter(S=>!S.optional).map(S=>S.name)),g.params&&Z1(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 fa(1,{location:g,currentLocation:y});L=m.record.name,w=gt({},y.params,g.params),$=m.stringify(w)}const C=[];let E=m;for(;E;)C.unshift(E.record),E=E.parent;return{name:L,path:$,params:w,matched:C,meta:$L(C)}}return e.forEach(g=>a(g)),{addRoute:a,resolve:p,removeRoute:c,getRoutes:h,getRecordMatcher:o}}function Z1(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function SL(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:FL(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 FL(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 J1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $L(e){return e.reduce((t,n)=>gt(t,n.meta),{})}function eb(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Ux(e,t){return t.children.some(n=>n===e||Ux(e,n))}const qx=/#/g,TL=/&/g,kL=/\//g,LL=/=/g,BL=/\?/g,Hx=/\+/g,OL=/%5B/g,PL=/%5D/g,jx=/%5E/g,NL=/%60/g,Vx=/%7B/g,IL=/%7C/g,Wx=/%7D/g,RL=/%20/g;function lg(e){return encodeURI(""+e).replace(IL,"|").replace(OL,"[").replace(PL,"]")}function ML(e){return lg(e).replace(Vx,"{").replace(Wx,"}").replace(jx,"^")}function Gp(e){return lg(e).replace(Hx,"%2B").replace(RL,"+").replace(qx,"%23").replace(TL,"%26").replace(NL,"`").replace(Vx,"{").replace(Wx,"}").replace(jx,"^")}function zL(e){return Gp(e).replace(LL,"%3D")}function UL(e){return lg(e).replace(qx,"%23").replace(BL,"%3F")}function qL(e){return e==null?"":UL(e).replace(kL,"%2F")}function bf(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function HL(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(Hx," "),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 tb(e){let t="";for(let n in e){const i=e[n];if(n=zL(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Fr(i)?i.map(a=>a&&Gp(a)):[i&&Gp(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function jL(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 VL=Symbol(""),nb=Symbol(""),cg=Symbol(""),Gx=Symbol(""),Kp=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(fa(4,{from:n,to:t})):y instanceof Error?h(y):vL(y)?h(fa(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 tp(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(WL(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=Zk(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 WL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function rb(e){const t=Ai(cg),n=Ai(Gx),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(ca.bind(null,g));if(m>-1)return m;const w=ib(d[p-2]);return p>1&&ib(g)===w&&y[y.length-1].path!==w?y.findIndex(ca.bind(null,d[p-2])):m}),a=xe(()=>o.value>-1&&QL(n.params,i.value.params)),c=xe(()=>o.value>-1&&o.value===n.matched.length-1&&Ix(n.params,i.value.params));function h(d={}){return XL(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 GL=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:rb,setup(e,{slots:t}){const n=Zn(rb(e)),{options:i}=Ai(cg),o=xe(()=>({[sb(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[sb(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)}}}),KL=GL;function XL(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 QL(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 ib(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sb=(e,t,n)=>e??t??n,YL=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(Kp),o=xe(()=>e.route||i.value),a=Ai(nb,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(nb,xe(()=>c.value+1)),Yc(VL,h),Yc(Kp,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||!ca(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 ob(n.default,{Component:m,route:p});const w=y.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=il(m,gt({},$,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(y.instances[g]=null)},ref:d}));return ob(n.default,{Component:C,route:p})||C}}});function ob(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ZL=YL;function JL(e){const t=_L(e.routes,e),n=e.parseQuery||HL,i=e.stringifyQuery||tb,o=e.history,a=mu(),c=mu(),h=mu(),d=Ca(Zi);let p=Zi;jo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Jd.bind(null,ie=>""+ie),y=Jd.bind(null,qL),m=Jd.bind(null,bf);function w(ie,se){let J,fe;return Mx(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 C(ie){return!!t.getRecordMatcher(ie)}function E(ie,se){if(se=gt({},se||d.value),typeof ie=="string"){const I=ep(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:ep(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=tL(i,gt({},ie,{hash:ML(Se),path:fe.path})),ke=o.createHref(vt);return gt({fullPath:vt,hash:Se,query:i===tb?jL(ie.query):ie.query||{}},fe,{redirectedFrom:void 0,href:ke})}function S(ie){return typeof ie=="string"?ep(n,ie,d.value.path):gt({},ie)}function O(ie,se){if(p!==ie)return fa(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=E(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&&nL(i,fe,J)&&(re=fa(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]=eB(ie,se);J=tp(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),Bo(J).then(()=>{J=[];for(const I of a.list())J.push(ns(I,ie,se));return J.push(ke),Bo(J)}).then(()=>{J=tp(Se,"beforeRouteUpdate",ie,se);for(const I of Se)I.updateGuards.forEach(G=>{J.push(ns(G,ie,se))});return J.push(ke),Bo(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),Bo(J)}).then(()=>(ie.matched.forEach(I=>I.enterCallbacks={}),J=tp(vt,"beforeRouteEnter",ie,se),J.push(ke),Bo(J))).then(()=>{J=[];for(const I of c.list())J.push(ns(I,ie,se));return J.push(ke),Bo(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=jo?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=E(ie),Se=M(fe);if(Se){U(gt(Se,{replace:!0}),fe).catch(ku);return}p=fe;const vt=d.value;jo&&cL(G1(vt.fullPath,J.delta),uh()),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(!jo||!Se)return Promise.resolve();const vt=!J&&fL(G1(ie.fullPath,0))||(fe||!J)&&history.state&&history.state.scroll||null;return Ci().then(()=>Se(ie,se,vt)).then(ke=>ke&&lL(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:C,getRoutes:L,resolve:E,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",KL),ie.component("RouterView",ZL),ie.config.globalProperties.$router=se,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(d)}),jo&&!_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(cg,se),ie.provide(Gx,Zn(J)),ie.provide(Kp,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 Bo(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function eB(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=>ca(p,h))?i.push(h):n.push(h));const d=e.matched[c];d&&(t.matched.find(p=>ca(p,d))||o.push(d))}return[n,i,o]}function Bi(e){return e.split("-")[0]}function Jo(e){return e.split("-")[1]}function sl(e){return["top","bottom"].includes(Bi(e))?"x":"y"}function fg(e){return e==="y"?"height":"width"}function ab(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=fg(h);switch(Jo(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 tB=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}=ab({...h,placement:i}),g=i,y={};for(let m=0;m<a.length;m++){const{name:w,fn:$}=a[m],{x:L,y:C,data:E,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=C??p,y={...y,[w]:E??{}},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}=ab({...h,placement:g})),m=-1;continue}}return{x:d,y:p,placement:g,strategy:o,middlewareData:y}};function nB(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kx(e){return typeof e!="number"?nB(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function lh(e,t){t===void 0&&(t={});const{x: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=Kx(m),L=c[y?g==="floating"?"reference":"floating":g],C=await o.getClippingClientRect({element:await o.isElement(L)?L:L.contextElement||await o.getDocumentElement({element:c.floating}),boundary:d,rootBoundary:p}),E=Xp(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:C.top-E.top+w.top,bottom:E.bottom-C.bottom+w.bottom,left:C.left-E.left+w.left,right:E.right-C.right+w.right}}const rB=Math.min,Ps=Math.max;function Qp(e,t,n){return Ps(e,rB(t,n))}const iB=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=Kx(i),g={x:o,y:a},y=Bi(c),m=sl(y),w=fg(m),$=await d.getDimensions({element:n}),L=m==="y"?"top":"left",C=m==="y"?"bottom":"right",E=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=E/2-S/2,M=p[L],U=B-$[w]-p[C],j=B/2-$[w]/2+k,ne=Qp(M,j,U);return{data:{[m]:ne,centerOffset:j-ne}}}}),sB={left:"right",right:"left",bottom:"top",top:"bottom"};function wf(e){return e.replace(/left|right|bottom|top/g,t=>sB[t])}function Xx(e,t){const n=Jo(e)==="start",i=sl(e),o=fg(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 oB={start:"end",end:"start"};function Yp(e){return e.replace(/start|end/g,t=>oB[t])}const aB=["top","right","bottom","left"],uB=aB.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function lB(e,t,n){return(e?[...n.filter(o=>Jo(o)===e),...n.filter(o=>Jo(o)!==e)]:n.filter(o=>Bi(o)===o)).filter(o=>e?Jo(o)===e||(t?Yp(o)!==o:!1):!0)}const cB=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:$=uB,autoAlignment:L=!0,...C}=e;if((n=y.autoPlacement)!=null&&n.skip)return{};const E=lB(w,L,$),S=await lh(t,C),O=(i=(o=y.autoPlacement)==null?void 0:o.index)!=null?i:0,B=E[O],{main:k,cross:M}=Xx(B,g);if(m!==B)return{x:d,y:p,reset:{placement:E[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=E[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 fB(e){const t=wf(e);return[Yp(e),t,Yp(t)]}const hB=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),C=g||($===h||!m?[wf(h)]:fB(h)),E=[h,...C],S=await lh(t,w),O=[];let B=((i=a.flip)==null?void 0:i.overflows)||[];if(d&&O.push(S[$]),p){const{main:j,cross:ne}=Xx(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=E[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 dB(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 pB=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=dB({placement:o,rects:a,value:e});return{x:n+c.x,y:i+c.y,data:c}}}};function gB(e){return e==="x"?"y":"x"}const vB=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:C=>{let{x:E,y:S}=C;return{x:E,y:S}}},...d}=e,p={x:n,y:i},g=await lh(t,d),y=sl(Bi(o)),m=gB(y);let w=p[y],$=p[m];if(a){const C=y==="y"?"top":"left",E=y==="y"?"bottom":"right",S=w+g[C],O=w-g[E];w=Qp(S,w,O)}if(c){const C=m==="y"?"top":"left",E=m==="y"?"bottom":"right",S=$+g[C],O=$-g[E];$=Qp(S,$,O)}const L=h.fn({...t,[y]:w,[m]:$});return{...L,data:{x:L.x-n,y:L.y-i}}}}},mB=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 lh(t,h),p=Bi(i),g=Jo(i)==="end";let y,m;p==="top"||p==="bottom"?(y=p,m=g?"left":"right"):(m=p,y=g?"top":"bottom");const w=Ps(d.left,0),$=Ps(d.right,0),L=Ps(d.top,0),C=Ps(d.bottom,0),E={height:o.floating.height-(["left","right"].includes(i)?2*(L!==0||C!==0?L+C:Ps(d.top,d.bottom)):d[y]),width:o.floating.width-(["top","bottom"].includes(i)?2*(w!==0||$!==0?w+$:Ps(d.left,d.right)):d[m])};return c==null||c({...E,...o}),{data:{skip:!0},reset:{rects:!0}}}}};function hg(e){return(e==null?void 0:e.toString())==="[object Window]"}function ps(e){if(e==null)return window;if(!hg(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ch(e){return ps(e).getComputedStyle(e)}function _i(e){return hg(e)?"":e?(e.nodeName||"").toLowerCase():""}function Si(e){return e instanceof ps(e).HTMLElement}function Df(e){return e instanceof ps(e).Element}function yB(e){return e instanceof ps(e).Node}function Qx(e){const t=ps(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fh(e){const{overflow:t,overflowX:n,overflowY:i}=ch(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function bB(e){return["table","td","th"].includes(_i(e))}function Yx(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=ch(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 ub=Math.min,Bu=Math.max,Af=Math.round;function ha(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 gs(e){return((yB(e)?e.ownerDocument:e.document)||window.document).documentElement}function hh(e){return hg(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zx(e){return ha(gs(e)).left+hh(e).scrollLeft}function wB(e){const t=ha(e);return Af(t.width)!==e.offsetWidth||Af(t.height)!==e.offsetHeight}function DB(e,t,n){const i=Si(t),o=gs(t),a=ha(e,i&&wB(t));let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(i||!i&&n!=="fixed")if((_i(t)!=="body"||fh(o))&&(c=hh(t)),Si(t)){const d=ha(t,!0);h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}else o&&(h.x=Zx(o));return{x:a.left+c.scrollLeft-h.x,y:a.top+c.scrollTop-h.y,width:a.width,height:a.height}}function dh(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(Qx(e)?e.host:null)||gs(e)}function lb(e){return!Si(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function AB(e){let t=dh(e);for(;Si(t)&&!["html","body"].includes(_i(t));){if(Yx(t))return t;t=t.parentNode}return null}function Zp(e){const t=ps(e);let n=lb(e);for(;n&&bB(n)&&getComputedStyle(n).position==="static";)n=lb(n);return n&&(_i(n)==="html"||_i(n)==="body"&&getComputedStyle(n).position==="static"&&!Yx(n))?t:n||AB(e)||t}function cb(e){return{width:e.offsetWidth,height:e.offsetHeight}}function xB(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=Si(n),a=gs(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"||fh(a))&&(c=hh(n)),Si(n))){const d=ha(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 EB(e){const t=ps(e),n=gs(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 CB(e){var t;const n=gs(e),i=hh(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+Zx(e);const d=-i.scrollTop;return ch(o||n).direction==="rtl"&&(h+=Bu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:c,x:h,y:d}}function Jx(e){return["html","body","#document"].includes(_i(e))?e.ownerDocument.body:Si(e)&&fh(e)?e:Jx(dh(e))}function xf(e,t){var n;t===void 0&&(t=[]);const i=Jx(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=ps(i),c=o?[a].concat(a.visualViewport||[],fh(i)?i:[]):i,h=t.concat(c);return o?h:h.concat(xf(dh(c)))}function _B(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Qx(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function SB(e){const t=ha(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 fb(e,t){return t==="viewport"?Xp(EB(e)):Df(t)?SB(t):Xp(CB(gs(e)))}function FB(e){const t=xf(dh(e)),i=["absolute","fixed"].includes(ch(e).position)&&Si(e)?Zp(e):e;return Df(i)?t.filter(o=>Df(o)&&_B(o,i)&&_i(o)!=="body"):[]}function $B(e){let{element:t,boundary:n,rootBoundary:i}=e;const a=[...n==="clippingParents"?FB(t):[].concat(n),i],c=a[0],h=a.reduce((d,p)=>{const g=fb(t,p);return d.top=Bu(g.top,d.top),d.right=ub(g.right,d.right),d.bottom=ub(g.bottom,d.bottom),d.left=Bu(g.left,d.left),d},fb(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 TB={getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:DB(t,Zp(n),i),floating:{...cb(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>xB(e),getOffsetParent:e=>{let{element:t}=e;return Zp(t)},isElement:e=>Df(e),getDocumentElement:e=>{let{element:t}=e;return gs(t)},getClippingClientRect:e=>$B(e),getDimensions:e=>{let{element:t}=e;return cb(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},kB=(e,t,n)=>tB(e,t,{platform:TB,...n});var LB=Object.defineProperty,BB=Object.defineProperties,OB=Object.getOwnPropertyDescriptors,hb=Object.getOwnPropertySymbols,PB=Object.prototype.hasOwnProperty,NB=Object.prototype.propertyIsEnumerable,db=(e,t,n)=>t in e?LB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wi=(e,t)=>{for(var n in t||(t={}))PB.call(t,n)&&db(e,n,t[n]);if(hb)for(var n of hb(t))NB.call(t,n)&&db(e,n,t[n]);return e},ol=(e,t)=>BB(e,OB(t));function eE(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?eE(e[n],t[n]):e[n]=t[n])}const Xs={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 da(e,t){let n=Xs.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=Xs.themes[n.$extend]||{}:(n=null,i=Xs[t]):n=null;while(n);return i}function IB(e){const t=[e];let n=Xs.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Xs.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}let pa=!1;if(typeof window<"u"){pa=!1;try{const e=Object.defineProperty({},"passive",{get(){pa=!0}});window.addEventListener("test",null,e)}catch{}}let tE=!1;typeof window<"u"&&typeof navigator<"u"&&(tE=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const nE=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),pb={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},gb={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function RB(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function np(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Wr=[];let Oo=null,Jp=function(){};typeof window<"u"&&(Jp=window.Element);function pt(e){return function(t){return da(t.theme,e)}}var rE=()=>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=>nE.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,Jp,Boolean],default:pt("container")},boundary:{type:[String,Jp],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(pB({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");n?t.middleware.push(cB({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(vB({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(hB({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(iB({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(mB({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 kB(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),Oo&&this.instantMove&&Oo.instantMove){Oo.$_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&&(Oo=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 np(),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 np(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(e=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,RB(Wr,this),Oo===this&&(Oo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=da(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 np(),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,pa?{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,pb,this.triggers,this.showTriggers,n),t([this.$_popperNode],pb,this.popperTriggers,this.popperShowTriggers,n);const i=o=>{o.usedByTooltip||this.hide({event:o})};t(this.$_targetNodes,gb,this.triggers,this.hideTriggers,i),t([this.$_popperNode],gb,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"&&(tE?(document.addEventListener("touchstart",vb,pa?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",zB,pa?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",vb,!0),window.addEventListener("click",MB,!0)),window.addEventListener("resize",UB));function vb(e){for(let t=0;t<Wr.length;t++){const n=Wr[t],i=n.popperNode();n.$_mouseDownContains=i.contains(e.target)}}function MB(e){iE(e)}function zB(e){iE(e,!0)}function iE(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 UB(e){for(let t=0;t<Wr.length;t++)Wr[t].$_computePosition(e)}function qB(){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 e0(){e0.init||(e0.init=!0,Jc=qB()!==-1)}var ph={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){e0(),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 HB=vT();cx("data-v-b329ee4c");const jB={class:"resize-observer",tabindex:"-1"};fx();const VB=HB((e,t,n,i,o,a)=>(de(),Ze("div",jB)));ph.render=VB;ph.__scopeId="data-v-b329ee4c";ph.__file="src/components/ResizeObserver.vue";var sE={computed:{themeClass(){return IB(this.theme)}}},dg=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const WB=rt({name:"VPopperContent",components:{ResizeObserver:ph},mixins:[sE],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}}}),GB=["id","aria-hidden","tabindex","data-popper-placement"],KB={ref:"inner",class:"v-popper__inner"},XB=pe("div",{class:"v-popper__arrow-outer"},null,-1),QB=pe("div",{class:"v-popper__arrow-inner"},null,-1),YB=[XB,QB];function ZB(e,t,n,i,o,a){const c=Ys("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]=jp(h=>e.autoHide&&e.$emit("hide"),["esc"]))},[pe("div",{class:"v-popper__wrapper",style:Un({transformOrigin:e.result.transformOrigin})},[pe("div",KB,[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)})},YB,4)],4)],46,GB)}var oE=dg(WB,[["render",ZB]]),aE={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:rE(),PopperContent:oE},mixins:[aE,sE],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 e3(e,t,n,i,o,a){const c=Ys("PopperContent"),h=Ys("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:C,classes:E,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:E,result:S,onHide:$,onResize:C},{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 pg=dg(JB,[["render",e3]]);const mb=rt(ol(wi({},pg),{name:"VDropdown",vPopperTheme:"dropdown"})),yb=rt(ol(wi({},pg),{name:"VMenu",vPopperTheme:"menu"})),t0=rt(ol(wi({},pg),{name:"VTooltip",vPopperTheme:"tooltip"})),t3=rt({name:"VTooltipDirective",components:{Popper:rE(),PopperContent:oE},mixins:[aE],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>da(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>da(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}}}),n3=["innerHTML"],r3=["textContent"];function i3(e,t,n,i,o,a){const c=Ys("PopperContent"),h=Ys("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:C,result:E})=>[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:C,result:E,onHide:w,onResize:L},{default:Ye(()=>[e.html?(de(),Te("div",{key:0,innerHTML:e.finalContent},null,8,n3)):(de(),Te("div",{key:1,textContent:Je(e.finalContent)},null,8,r3))]),_: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 s3=dg(t3,[["render",i3]]);const uE="v-popper--has-tooltip";function o3(e,t){let n=e.placement;if(!n&&t)for(const i of nE)t[i]&&(n=i);return n||(n=da(e.theme||"tooltip","placement")),n}function lE(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=o3(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let rp,Vu,a3=0;function u3(){if(rp)return;Vu=Ke([]),rp=Nx({name:"VTooltipDirectiveApp",setup(){return{directives:Vu}},render(){return this.directives.map(t=>il(s3,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),rp.mount(e)}function cE(e,t,n){u3();const i=Ke(lE(e,t,n)),o=Ke(!1),a={id:a3++,options:i,shown:o};return Vu.value.push(a),e.classList&&e.classList.add(uE),e.$_popper={options:i,item:a,show(){o.value=!0},hide(){o.value=!1}}}function gg(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(uE)}function bb(e,{value:t,oldValue:n,modifiers:i}){const o=lE(e,t,i);if(!o.content||da(o.theme||"tooltip","disabled"))gg(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=cE(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var fE={beforeMount:bb,updated:bb,beforeUnmount(e){gg(e)}};function wb(e){e.addEventListener("click",hE),e.addEventListener("touchstart",dE,pa?{passive:!0}:!1)}function Db(e){e.removeEventListener("click",hE),e.removeEventListener("touchstart",dE),e.removeEventListener("touchend",pE),e.removeEventListener("touchcancel",gE)}function hE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function dE(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",pE),t.addEventListener("touchcancel",gE)}}function pE(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 gE(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var l3={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&wb(e)},updated(e,{value:t,oldValue:n,modifiers:i}){e.$_closePopoverModifiers=i,t!==n&&(typeof t>"u"||t?wb(e):Db(e))},beforeUnmount(e){Db(e)}};const c3=fE,f3=t0;function h3(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,eE(Xs,t),e.directive("tooltip",fE),e.directive("close-popper",l3),e.component("v-tooltip",t0),e.component("VTooltip",t0),e.component("v-dropdown",mb),e.component("VDropdown",mb),e.component("v-menu",yb),e.component("VMenu",yb))}const vE={version:"2.0.0-y.0",install:h3,options:Xs},d3=6e4;function mE(e){return e}const p3=mE,{setTimeout:g3}=globalThis,v3=Math.random.bind(Math);function m3(e,t){const{post:n,on:i,eventNames:o=[],serialize:a=mE,deserialize:c=p3,resolver:h,timeout:d=d3}=t,p=new Map;let g;const y=new Proxy({},{get(m,w){if(w==="$functions")return e;const $=(...C)=>{n(a({m:w,a:C,t:"q"}))};if(o.includes(w))return $.asEvent=$,$;const L=async(...C)=>(await g,new Promise((E,S)=>{const O=b3();p.set(O,{resolve:E,reject:S}),n(a({m:w,a:C,i:O,t:"q"})),d>=0&&g3(()=>{S(new Error(`[birpc] timeout on calling "${w}"`)),p.delete(O)},d)}));return L.asEvent=$,L}});return g=i(async(m,...w)=>{const $=c(m);if($.t==="q"){const{m:L,a:C}=$;let E,S;const O=h?h(L,e[L]):e[L];if(!O)S=new Error(`[birpc] function "${L}" not found`);else try{E=await O.apply(y,C)}catch(B){S=B}$.i&&(S&&t.onError&&t.onError(S,L,C),n(a({t:"s",i:$.i,r:E,e:S}),...w))}else{const{i:L,r:C,e:E}=$,S=p.get(L);S&&(E?S.reject(E):S.resolve(C)),p.delete(L)}}),y}const y3="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function b3(e=21){let t="",n=e;for(;n--;)t+=y3[v3()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:w3,stringify:D3}=JSON,{keys:A3}=Object,Wu=String,yE="string",Ab={},Ef="object",bE=(e,t)=>t,x3=e=>e instanceof Wu?Wu(e):e,E3=(e,t)=>typeof t===yE?new Wu(t):t,wE=(e,t,n,i)=>{const o=[];for(let a=A3(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]=Ab,o.push({k:d,a:[e,t,g,i]})):n[d]=i.call(n,d,g)}else n[d]!==Ab&&(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,wE.apply(null,d))}return n},xb=(e,t,n)=>{const i=Wu(t.push(n)-1);return e.set(n,i),i},n0=(e,t)=>{const n=w3(e,E3).map(x3),i=n[0],o=t||bE,a=typeof i===Ef&&i?wE(n,new Set,i,o):i;return o.call({"":a},"",a)},C3=(e,t,n)=>{const i=t&&typeof t===Ef?(g,y)=>g===""||-1<t.indexOf(g)?y:void 0:t||bE,o=new Map,a=[],c=[];let h=+xb(o,a,i.call({"":e},"",e)),d=!h;for(;h<a.length;)d=!0,c[h]=D3(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 yE:return o.get(m)||xb(o,a,m)}return m}};function _3(e=""){return!e||!e.includes("\\")?e:e.replace(/\\/g,"/")}const S3=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function F3(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const Eb=function(...e){e=e.map(i=>_3(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:F3();!o||o.length===0||(t=`${o}/${t}`,n=Cb(o))}return t=$3(t,!n),n&&!Cb(t)?`/${t}`:t.length>0?t:"."};function $3(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 Cb=function(e){return S3.test(e)},T3=function(e,t){const n=Eb(e).split("/"),i=Eb(t).split("/"),o=[...n];for(const a of o){if(i[0]!==a)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")};function k3(e){return typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e}class DE{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(k3(t))return t.errors.forEach(i=>this.catchError(i,n));t===Object(t)?t.type=n:t={type:n,message:t},this.errorsSet.add(t)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(t){this.processTimeoutCauses.add(t)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(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,o]of t){const a=this.idMap.get(n);a&&(a.result=i,a.meta=o)}}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:T3(n,i),id:i,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[]})))}}function AE(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:{};function L3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const B3=Symbol("vitest:SAFE_COLORS"),O3={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"]},P3=Object.entries(O3);function vg(e){return String(e)}vg.open="";vg.close="";const N3=P3.reduce((e,[t])=>(e[t]=vg,e),{isColorSupported:!1});function xE(){return globalThis[B3]||N3}var cr={},mg={};let I3=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 yg=I3;const R3=Symbol("AMBIGUOUS"),M3=Symbol("DEEP_EQUAL"),z3=Symbol("SHALLOW_EQUAL"),U3=Symbol("UNEQUAL");var bt={AMBIGUOUS:R3,DEEP_EQUAL:M3,SHALLOW_EQUAL:z3,UNEQUAL:U3};let q3=class{constructor(){this.counter=0,this.map=new WeakMap}has(t){return this.map.has(t)}get(t){return this.map.get(t).descriptor}alloc(t){const i={descriptor:null,index:++this.counter};return this.map.set(t,i),i}};var H3=q3,Sa={},Jt={},qt={};const xr=Symbol("lineBuilder.gutters.ACTUAL"),jr=Symbol("lineBuilder.gutters.EXPECTED");function j3(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:j3(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 _b(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 _b(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 _b(e,jr)}}};const Vo=en;function ef(e,t){return e.open+t+e.close}qt.wrap=ef;function r0(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}qt.formatCtorAndStringTag=r0;let V3=class{constructor(t,n,i){this.object=t,this.theme=n,this.indent=i,this.increaseIndent=!0,this.innerLines=Vo.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?"":r0(this.theme,this.object)+" ";return this.innerLines.isEmpty?Vo.single(o+t.openBracket+t.closeBracket):Vo.first(o+t.openBracket).concat(this.innerLines.withFirstPrefixed(this.indent.increase()).stripFlags()).append(Vo.last(this.indent+t.closeBracket))}maxDepth(){const t=this.object.isList?this.theme.list:this.theme.object;return Vo.single(r0(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}};qt.ObjectFormatter=V3;class W3{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(Vo.single(this.theme.maxDepth))}}qt.SingleValueFormatter=W3;function G3(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 K3=G3,X3=9007199254740991;function Q3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=X3}var bg=Q3;const Y3=bg,Z3=Object.prototype.hasOwnProperty;function J3(e){return Array.isArray(e)||Z3.call(e,"length")&&Y3(e.length)&&(e.length===0||"0"in e)}var eO=J3,fr={},$t={};const i0={size:0,next(){return null}};$t.NOOP_RECURSOR=i0;function tO(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=tO;function nO(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=nO;function rO(e,t){return()=>{const n=e();return n===null?null:t(n)}}$t.map=rO;function iO(e,t){if(!e){const a=t();a===i0?e=a:e=Object.assign({buffer:[],done:!1},a)}if(e===i0)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=iO;function sO(e,t){let n=!0;return()=>{if(n){const i=e();if(i!==null)return i;n=!1}return t()}}$t.sequence=sO;function oO(e){let t=!1;return()=>t?null:(t=!0,e)}$t.singleValue=oO;function aO(e,t){return()=>{if(t!==null){const n=t;return t=null,n}return e()}}$t.unshift=aO;const EE=bt,uO=en,Po=$t,wg=EE.DEEP_EQUAL,Dg=EE.UNEQUAL;function lO(e){return new Cg(e.size)}fr.describeIterableRecursor=lO;function cO(e){return new _g(e.size)}fr.describeListRecursor=cO;function fO(e){return new Sg(e.size)}fr.describePropertyRecursor=fO;function hO(e){return new Cg(e)}fr.deserializeIterableStats=hO;function dO(e){return new _g(e)}fr.deserializeListStats=dO;function pO(e){return new Sg(e)}fr.deserializePropertyStats=pO;const Ag=Symbol("IterableStats");fr.iterableTag=Ag;const xg=Symbol("ListStats");fr.listTag=xg;const Eg=Symbol("PropertyStats");fr.propertyTag=Eg;class gh{constructor(t){this.size=t}formatDeep(t){return uO.single(t.stats.separator)}prepareDiff(t,n,i,o){if(t.isStats!==!0||t.tag===this.tag)return null;const a=Po.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:Po.unshift(n,this),rhsRecursor:Po.unshift(i,t)};const d=Po.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:Po.unshift(n,p),rhsRecursor:Po.unshift(a.recursor,c)}:null}serialize(){return this.size}}Object.defineProperty(gh.prototype,"isStats",{value:!0});class Cg extends gh{compare(t){return t.tag===Ag&&this.size===t.size?wg:Dg}}Object.defineProperty(Cg.prototype,"tag",{value:Ag});class _g extends gh{compare(t){return t.tag===xg&&this.size===t.size?wg:Dg}}Object.defineProperty(_g.prototype,"tag",{value:xg});class Sg extends gh{compare(t){return t.tag===Eg&&this.size===t.size?wg:Dg}}Object.defineProperty(Sg.prototype,"tag",{value:Eg});const Fg=bt,gO=qt.ObjectFormatter,vO=K3,mO=eO,ip=fr,yr=$t,yO=Fg.DEEP_EQUAL,bO=Fg.SHALLOW_EQUAL,Sb=Fg.UNEQUAL;function wO(e){const t=e.stringTag==="Array",n=e.value;return new AO(Object.assign({isArray:t,isIterable:n[Symbol.iterator]!==void 0,isList:t||mO(n)},e))}Jt.describe=wO;function DO(e,t){return new xO(e,t)}Jt.deserialize=DO;const CE=Symbol("ObjectValue");Jt.tag=CE;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)?Sb:bO}hasSameCtor(t){return this.ctor===t.ctor}formatShallow(t,n){return new gO(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:CE});Jt.ObjectValue=al;const AO=_E(al),xO=SE(al);function _E(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?yO:super.compare(t)}createPropertyRecursor(){const t=vO(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=ip.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=ip.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=ip.describeListRecursor(o))}while(o!==null&&a===null);return a}}}}Jt.DescribedMixin=_E;function SE(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=SE;const FE=bt,$g=Jt,EO=FE.AMBIGUOUS,$E=FE.UNEQUAL;function CO(e){return new SO(Object.assign({isArray:!0,isList:!0},e,{ctor:"Arguments"}))}Sa.describe=CO;function _O(e,t){return new FO(e,t)}Sa.deserialize=_O;const TE=Symbol("ArgumentsValue");Sa.tag=TE;class Tg extends $g.ObjectValue{compare(t){return t.isComplex!==!0?$E:t.stringTag==="Array"?EO:super.compare(t)}}Object.defineProperty(Tg.prototype,"tag",{value:TE});const SO=$g.DescribedMixin(Tg);class FO extends $g.DeserializedMixin(Tg){compare(t){return t.isComplex===!0&&t.stringTag==="Array"?$E:super.compare(t)}}var ul={},er={};const kE=bt,$O=qt,yu=en,TO=fr.propertyTag,Fb=$t,kg=Jt,kO=kE.DEEP_EQUAL,LO=kE.UNEQUAL;function LE(e){const t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength?t.slice(e.byteOffset,e.byteOffset+e.byteLength):t}er.getBuffer=LE;function BO(e){return new NO(Object.assign({buffer:LE(e.value),isArray:!0,isList:!0},e))}er.describe=BO;function OO(e,t){return new IO(e,t)}er.deserialize=OO;function PO(e){return new Lg(e)}er.deserializeBytes=PO;const vh=Symbol("Bytes");er.bytesTag=vh;const BE=Symbol("TypedArrayValue");er.tag=BE;class Lg{constructor(t){this.buffer=t}compare(t){return t.tag===vh&&this.buffer.equals(t.buffer)?kO:LO}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+=$O.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(Lg.prototype,"tag",{value:vh});class mh extends kg.ObjectValue{constructor(t){super(t),this.buffer=t.buffer}formatShallow(t,n){return super.formatShallow(t,n).customize({shouldFormat(i){return i.tag===TO?i.size>1:i.isProperty===!0?i.key.value!=="byteLength":i.tag===vh?i.buffer.byteLength>0:!0}})}}Object.defineProperty(mh.prototype,"tag",{value:BE});er.TypedArrayValue=mh;function OE(e){return class extends kg.DescribedMixin(e){createListRecursor(){return Fb.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 Fb.unshift(super.createRecursor(),new Lg(this.buffer))}}}er.DescribedMixin=OE;const NO=OE(mh);function PE(e){return class extends kg.DeserializedMixin(e){constructor(t,n){super(t,n);const i=this.createRecursor()();this.buffer=i.buffer}}}er.DeserializedMixin=PE;const IO=PE(mh),Bg=er;function RO(e){return new zO(Object.assign({buffer:Buffer.from(e.value),isArray:!0,isList:!0},e))}ul.describe=RO;function MO(e,t){return new UO(e,t)}ul.deserialize=MO;const NE=Symbol("ArrayBufferValue");ul.tag=NE;class Og extends Bg.TypedArrayValue{}Object.defineProperty(Og.prototype,"tag",{value:NE});const zO=Bg.DescribedMixin(Og),UO=Bg.DeserializedMixin(Og);var ll={},so={},tf={},s0={},qO={get exports(){return s0},set exports(e){s0=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}qO.exports={isExpression:e,isStatement:n,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}})();var Cf={},HO={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(C){return 48<=C&&C<=57}function h(C){return 48<=C&&C<=57||97<=C&&C<=102||65<=C&&C<=70}function d(C){return C>=48&&C<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function p(C){return C===32||C===9||C===11||C===12||C===160||C>=5760&&n.indexOf(C)>=0}function g(C){return C===10||C===13||C===8232||C===8233}function y(C){if(C<=65535)return String.fromCharCode(C);var E=String.fromCharCode(Math.floor((C-65536)/1024)+55296),S=String.fromCharCode((C-65536)%1024+56320);return E+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(C){return C<128?i[C]:t.NonAsciiIdentifierStart.test(y(C))}function w(C){return C<128?o[C]:t.NonAsciiIdentifierPart.test(y(C))}function $(C){return C<128?i[C]:e.NonAsciiIdentifierStart.test(y(C))}function L(C){return C<128?o[C]:e.NonAsciiIdentifierPart.test(y(C))}HO.exports={isDecimalDigit:c,isHexDigit:h,isOctalDigit:d,isWhiteSpace:p,isLineTerminator:g,isIdentifierStartES5:m,isIdentifierPartES5:w,isIdentifierStartES6:$,isIdentifierPartES6:L}})();var o0={},jO={get exports(){return o0},set exports(e){o0=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,C,E;if(m.length===0)return!1;for(E=e.isIdentifierStartES6,w=0,$=m.length;w<$;++w){if(L=m.charCodeAt(w),55296<=L&&L<=56319){if(++w,w>=$||(C=m.charCodeAt(w),!(56320<=C&&C<=57343)))return!1;L=d(L,C)}if(!E(L))return!1;E=e.isIdentifierPartES6}return!0}function g(m,w){return h(m)&&!o(m,w)}function y(m,w){return p(m)&&!a(m,w)}jO.exports={isKeywordES5:n,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:c,isIdentifierNameES5:h,isIdentifierNameES6:p,isIdentifierES5:g,isIdentifierES6:y}})();(function(){tf.ast=s0,tf.code=Cf,tf.keyword=o0})();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=XO(e,t,n);if(o)return o}var a=Pg(e,t),c=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=Ng(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=VO(e,t);return c&&d.unshift([Rn,c]),h&&d.push([Rn,h]),IE(d,i),d}function VO(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=GO(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 WO(e,t)}function WO(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,C=0;C<o;C++){for(var E=-C+m;E<=C-w;E+=2){var S=a+E,O;E===-C||E!==C&&h[S-1]<h[S+1]?O=h[S+1]:O=h[S-1]+1;for(var B=O-E;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-E;if(k>=0&&k<c&&d[k]!==-1){var M=n-d[k];if(O>=M)return $b(e,t,O,B)}}}for(var U=-C+$;U<=C-L;U+=2){var k=a+U,M;U===-C||U!==C&&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 $b(e,t,O,B)}}}}return[[Gr,e],[Cr,t]]}function $b(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 Pg(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 RE(e.charCodeAt(o-1))&&o--,o}function Ng(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 ME(e.charCodeAt(e.length-o))&&o--,o}function GO(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 C=w.substring(L,L+Math.floor(w.length/4)),E=-1,S="",O,B,k,M;(E=$.indexOf(C,E+1))!==-1;){var U=Pg(w.substring(L),$.substring(E)),j=Ng(w.substring(0,L),$.substring(0,E));S.length<j+U&&(S=$.substring(E-j,E)+$.substring(E,E+U),O=w.substring(0,L-j),B=w.substring(L+U),k=$.substring(0,E-j),M=$.substring(E+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 IE(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&&UE(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(zE(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=Pg(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=Ng(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&&IE(e,t)}function RE(e){return e>=55296&&e<=56319}function ME(e){return e>=56320&&e<=57343}function zE(e){return ME(e.charCodeAt(0))}function UE(e){return RE(e.charCodeAt(e.length-1))}function KO(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function sp(e,t,n,i){return UE(e)||zE(i)?null:KO([[Rn,e],[Gr,t],[Cr,n],[Rn,i]])}function XO(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,$),C=m.slice(0,$);if(L!==C)break e;var E=d.slice($),S=m.slice($);return sp(L,E,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 E=p.slice(0,p.length-B),S=w.slice(0,w.length-B);return sp(d,E,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 C=t.slice(0,$),M=t.slice(c-B);if(L!==C||k!==M)break e;var E=e.slice($,a-B),S=t.slice($,c-B);return sp(L,E,S,k)}return null}function yh(e,t,n){return Gu(e,t,n,!0)}yh.INSERT=Cr;yh.DELETE=Gr;yh.EQUAL=Rn;var QO=yh;const YO=tf.keyword,Ac=QO,qE=bt,vn=qt,Bt=en,ZO=qE.DEEP_EQUAL,JO=qE.UNEQUAL;function HE(e){return new Ig(e)}so.describe=HE;so.deserialize=HE;const _f=Symbol("StringValue");so.tag=_f;function xc(e){return e.replace(/\\/g,"\\\\")}const eP="␍␊",jE="␊",a0="␍",VE=new RegExp(`${a0}|${jE}|${a0}`,"g");function tP(e){return e===`\r
7
+ `?eP:e===`
8
+ `?jE:e==="\r"?a0:e}function u0(e,t,n){return n.replace(VE,i=>t.close+vn.wrap(e.string.controlPicture,i)+t.open)}const nP=/'/g,rP=/"/g,iP=/`/g;function No(e,t){const n=e.escapeQuote;return n==="'"?t.replace(nP,"\\'"):n==='"'?t.replace(rP,'\\"'):n==="`"?t.replace(iP,"\\`"):t}function op(e){return e.includes("\r")||e.includes(`
9
+ `)}function Tb(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&&VE.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,u0(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 sP=/\r\n|\r|\n/g;function ap(e){const t=[];let n=0;for(let i;i=sP.exec(e);n=i.index+i[0].length)t.push(e.slice(n,i.index)+tP(i[0]));return t.push(e.slice(n)),t}class Ig{constructor(t){this.value=t}compare(t){return t.tag===_f&&this.value===t.value?ZO:JO}get includesLinebreaks(){return op(this.value)}formatDeep(t,n){let i=xc(this.value);if(!this.includesLinebreaks)return i=No(t.string.line,i),Bt.single(vn.wrap(t.string.line,vn.wrap(t.string,i)));i=No(t.string.multiline,i);const o=ap(i).map(h=>vn.wrap(t.string,u0(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(YO.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(!op(a)&&!op(c)){const C=Tb(n,No(n.string.line,a),No(n.string.line,c),o);return Bt.actual.single(vn.wrap(n.string.line,C[0])).concat(Bt.expected.single(vn.wrap(n.string.line,C[1])))}const h=ap(No(n.string.multiline,a)),d=ap(No(n.string.multiline,c)),p=i,g=Bt.buffer(),y=h.length-1,m=d.length-1;let w=[],$=[],L=!1;for(let C=0,E=0,S=0;C<h.length;){if(h[C]===d[E]){g.append(w),g.append($),w=[],$=[];let k=h[C];k=u0(n,n.string.diff.equal,k),k=vn.wrap(n.string.diff.equal,k),C===0?g.append(Bt.first(n.string.multiline.start+k)):C===y&&E===m?g.append(Bt.last(p+k+n.string.multiline.end)):g.append(Bt.line(p+k)),C++,E++;continue}let O=!1;{const k=h[C];for(let M=E;!O&&M<d.length;M++)O=k===d[M]}let B=C-S>m||E>m;if(!B){const k=d[E];for(let M=C;!B&&M<h.length;M++)B=k===h[M];!B&&C-S===m&&C<y&&(B=!0)}if(B&&!O){const k=o?n.string.diff.insertLine:n.string.diff.deleteLine,M=vn.wrap(k,h[C]);C===0?(w.push(Bt.actual.first(n.string.multiline.start+M)),L=!0):C===y?w.push(Bt.actual.last(p+M+n.string.multiline.end)):w.push(Bt.actual.line(p+M)),C++,S++}else if(O&&!B){const k=o?n.string.diff.deleteLine:n.string.diff.insertLine,M=vn.wrap(k,d[E]);L?($.push(Bt.expected.first(n.string.multiline.start+M)),L=!1):E===m?$.push(Bt.expected.last(p+M+n.string.multiline.end)):$.push(Bt.expected.line(p+M)),E++}else{const k=Tb(n,h[C],d[E],o);C===0?(w.push(Bt.actual.first(n.string.multiline.start+k[0])),L=!0):C===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):E===m?$.push(Bt.expected.last(p+k[1]+n.string.multiline.end)):$.push(Bt.expected.line(p+k[1])),C++,E++}}return g.append(w),g.append($),g}serialize(){return this.value}}Object.defineProperty(Ig.prototype,"isPrimitive",{value:!0});Object.defineProperty(Ig.prototype,"tag",{value:_f});const oP=so.tag,kb=$t,Rg=Jt;function aP(e){return new lP(e)}ll.describe=aP;function uP(e,t){return new cP(e,t)}ll.deserialize=uP;const WE=Symbol("BoxedValue");ll.tag=WE;class Mg extends Rg.ObjectValue{}Object.defineProperty(Mg.prototype,"tag",{value:WE});class lP extends Rg.DescribedMixin(Mg){constructor(t){super(t),this.unboxed=t.unboxed}createListRecursor(){return kb.NOOP_RECURSOR}createPropertyRecursor(){if(this.unboxed.tag!==oP)return super.createPropertyRecursor();try{return this.isList=!0,super.createPropertyRecursor()}finally{this.isList=!1}}createRecursor(){return kb.unshift(super.createRecursor(),this.unboxed)}}const cP=Rg.DeserializedMixin(Mg);var cl={};const bh=er;function fP(e){return new dP(Object.assign({buffer:bh.getBuffer(e.value),isArray:!0,isList:!0},e))}cl.describe=fP;function hP(e,t){return new pP(e,t)}cl.deserialize=hP;const GE=Symbol("DataViewValue");cl.tag=GE;class zg extends bh.TypedArrayValue{}Object.defineProperty(zg.prototype,"tag",{value:GE});const dP=bh.DescribedMixin(zg),pP=bh.DeserializedMixin(zg);var fl={},Sf={},gP={get exports(){return Sf},set exports(e){Sf=e}},vP=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 mP=vP,KE=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?mP(t):"")),e.showMilliseconds&&t.getUTCMilliseconds()>0&&(n=` ${t.getUTCMilliseconds()}ms${n}`),t.toISOString().replace(/T/," ").replace(/\..+/,n)};gP.exports=KE;Sf.default=KE;const yP=Sf,XE=bt,Lb=qt,Ec=en,Ug=Jt,Bb=XE.SHALLOW_EQUAL,bP=XE.UNEQUAL;function wP(e){const t=e.value,n=isNaN(t.valueOf());return new xP(Object.assign({},e,{invalid:n}))}fl.describe=wP;function DP(e,t){return new EP(e,t)}fl.deserialize=DP;const QE=Symbol("DateValue");fl.tag=QE;function AP(e){return yP({date:e,local:!1,showTimeZone:!0,showMilliseconds:!0})}class qg extends Ug.ObjectValue{constructor(t){super(t),this.invalid=t.invalid}compare(t){const n=super.compare(t);return n!==Bb?n:this.invalid&&t.invalid||Object.is(this.value.getTime(),t.value.getTime())?Bb:bP}formatShallow(t,n){const i=Lb.formatCtorAndStringTag(t,this)+" "+(this.invalid?t.date.invalid:Lb.wrap(t.date.value,AP(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(qg.prototype,"tag",{value:QE});const xP=Ug.DescribedMixin(qg);class EP extends Ug.DeserializedMixin(qg){constructor(t,n){super(t[2],n),this.invalid=t[0],this.value=new Date(this.invalid?NaN:t[1])}}var hl={};function CP(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable}var YE=CP;const _P=bt,Cc=qt,Ob=YE,_c=en,SP=$t.NOOP_RECURSOR,Hg=Jt,FP=_P.UNEQUAL;function $P(e){const t=e.value;return new kP(Object.assign({nameIsEnumerable:Ob(t,"name"),name:t.name,messageIsEnumerable:Ob(t,"message"),message:t.message},e))}hl.describe=$P;function TP(e,t){return new LP(e,t)}hl.deserialize=TP;const ZE=Symbol("ErrorValue");hl.tag=ZE;class jg 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):FP}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(jg.prototype,"tag",{value:ZE});class kP extends Hg.DescribedMixin(jg){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 SP;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 LP extends Hg.DeserializedMixin(jg){constructor(t,n){super(t[1],n),this.name=t[0]}}var dl={};const JE=bt,Pb=qt,BP=YE,Sc=en,OP=$t.NOOP_RECURSOR,Vg=Jt,ea=JE.UNEQUAL,PP=JE.SHALLOW_EQUAL;function NP(e){const t=e.value;return new RP(Object.assign({nameIsEnumerable:BP(t,"name"),name:typeof t.name=="string"?t.name:null},e))}dl.describe=NP;function IP(e,t){return new MP(e,t)}dl.deserialize=IP;const eC=Symbol("FunctionValue");dl.tag=eC;class Wg extends Vg.ObjectValue{constructor(t){super(t),this.name=t.name}formatShallow(t,n){const i=Pb.wrap(t.function.stringTag,this.stringTag)+(this.name?" "+Pb.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(Wg.prototype,"tag",{value:eC});class RP extends Vg.DescribedMixin(Wg){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?ea: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 OP;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 MP extends Vg.DeserializedMixin(Wg){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?ea:PP}serialize(){return[this.name,super.serialize()]}}var pl={};const tC=bt,zP=qt,UP=en,qP=tC.DEEP_EQUAL,HP=tC.UNEQUAL;function nC(){return new Gg}pl.describe=nC;pl.deserialize=nC;const rC=Symbol("GlobalValue");pl.tag=rC;class Gg{compare(t){return this.tag===t.tag?qP:HP}formatDeep(t){return UP.single(zP.wrap(t.global,"Global")+" "+t.object.openBracket+t.object.closeBracket)}}Object.defineProperty(Gg.prototype,"isComplex",{value:!0});Object.defineProperty(Gg.prototype,"tag",{value:rC});var gl={};const iC=bt,jP=$t,Kg=Jt,Nb=iC.SHALLOW_EQUAL,VP=iC.UNEQUAL;function WP(e){return new KP(Object.assign({size:e.value.size},e))}gl.describe=WP;function GP(e,t){return new XP(e,t)}gl.deserialize=GP;const sC=Symbol("MapValue");gl.tag=sC;class Xg extends Kg.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==Nb?n:this.size===t.size?Nb:VP}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(Xg.prototype,"tag",{value:sC});class KP extends Kg.DescribedMixin(Xg){createIterableRecursor(){const t=this.size;if(t===0)return jP.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 XP extends Kg.DeserializedMixin(Xg){constructor(t,n){super(t[1],n),this.size=t[0]}}var vl={};const oC=bt,Qg=Jt,Ib=oC.DEEP_EQUAL,QP=oC.UNEQUAL;function YP(e){return new JP(e)}vl.describe=YP;function ZP(e){return new e8(e)}vl.deserialize=ZP;const aC=Symbol("PromiseValue");vl.tag=aC;class Yg extends Qg.ObjectValue{}Object.defineProperty(Yg.prototype,"tag",{value:aC});class JP extends Qg.DescribedMixin(Yg){compare(t){return super.compare(t)===Ib?Ib:QP}}class e8 extends Qg.DeserializedMixin(Yg){compare(t){return super.compare(t)}}var ml={};const t8=bt,Fc=qt,Io=en,Zg=Jt,n8=t8.UNEQUAL;function r8(e){const t=e.value;return new o8(Object.assign({flags:s8(t),source:t.source},e))}ml.describe=r8;function i8(e,t){return new a8(e,t)}ml.deserialize=i8;const uC=Symbol("RegexpValue");ml.tag=uC;function s8(e){return(e.flags||String(e).slice(e.source.length+2)).split("").sort().join("")}class Jg extends Zg.ObjectValue{constructor(t){super(t),this.flags=t.flags,this.source=t.source}compare(t){return this.tag===t.tag&&this.flags===t.flags&&this.source===t.source?super.compare(t):n8}formatShallow(t,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 Io.single(o);const c=n.increase(),h=Io.first(Fc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket).concat(Io.line(c+o));return a.isEmpty||(h.append(Io.line(c+t.regexp.separator)),h.append(a.withFirstPrefixed(c).stripFlags())),h.append(Io.last(n+t.object.closeBracket))},maxDepth:()=>Io.single(Fc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket+" "+o+" "+t.maxDepth+" "+t.object.closeBracket)})}serialize(){return[this.flags,this.source,super.serialize()]}}Object.defineProperty(Jg.prototype,"tag",{value:uC});const o8=Zg.DescribedMixin(Jg);class a8 extends Zg.DeserializedMixin(Jg){constructor(t,n){super(t[2],n),this.flags=t[0],this.source=t[1]}}var yl={};const lC=bt,u8=$t,ev=Jt,Rb=lC.SHALLOW_EQUAL,l8=lC.UNEQUAL;function c8(e){return new h8(Object.assign({size:e.value.size},e))}yl.describe=c8;function f8(e,t){return new d8(e,t)}yl.deserialize=f8;const cC=Symbol("SetValue");yl.tag=cC;class tv extends ev.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==Rb?n:this.size===t.size?Rb:l8}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(tv.prototype,"tag",{value:cC});class h8 extends ev.DescribedMixin(tv){createIterableRecursor(){const t=this.size;if(t===0)return u8.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 d8 extends ev.DeserializedMixin(tv){constructor(t,n){super(t[1],n),this.size=t[0]}}const p8=Object.prototype.hasOwnProperty;function g8(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(!p8.call(t,n))return null;return e}return null}var v8=g8,l0={},Mb={get exports(){return l0},set exports(e){l0=e}};const m8=Object.prototype.toString;function up(e){return m8.call(e).slice(8,-1)}const fC=Function.prototype.toString,y8=fC.call(Promise),b8=e=>{if(!e.constructor)return!1;try{return fC.call(e.constructor)===y8}catch{return!1}};if(up(Promise.resolve())==="Promise")Mb.exports=up;else{const e=t=>{const n=up(t);return n==="Object"&&b8(t)?"Promise":n};Mb.exports=e}var Oi={};const hC=bt,w8=qt,sr=$t,c0=hC.DEEP_EQUAL,Wo=hC.UNEQUAL;function D8(e,t){return new wh(e,t)}Oi.describeComplex=D8;function A8(e,t){const n=t();return new wh(e,n)}Oi.deserializeComplex=A8;function x8(e,t){return new Dh(e,t)}Oi.describePrimitive=x8;function E8(e){const t=e[0],n=e[1];return new Dh(t,n)}Oi.deserializePrimitive=E8;const rs=Symbol("ComplexItem");Oi.complexTag=rs;const ga=Symbol("PrimitiveItem");Oi.primitiveTag=ga;class wh{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):Wo}formatShallow(t,n){const i=t.item.increaseValueIndent===!0;return new w8.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:Wo};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)!==Wo),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)!==Wo),m=c.shared()}else if(d.tag===ga){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===ga&&(g=d.value.compare(m.value)===c0),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)!==Wo;return{mustRecurse:y,isUnequal:!y,lhsRecursor:c.recursor,rhsRecursor:h.recursor}}serialize(){return this.index}}Object.defineProperty(wh.prototype,"isItem",{value:!0});Object.defineProperty(wh.prototype,"tag",{value:rs});class Dh{constructor(t,n){this.index=t,this.value=n}compare(t){return t.tag===ga&&this.index===t.index?this.value.compare(t.value):Wo}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===c0)return{compareResult:c};if(t.tag===ga&&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)===c0)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(Dh.prototype,"isItem",{value:!0});Object.defineProperty(Dh.prototype,"tag",{value:ga});var bl={},Ro={};function C8(){this.__data__=[],this.size=0}var _8=C8;function S8(e,t){return e===t||e!==e&&t!==t}var Ah=S8,F8=Ah;function $8(e,t){for(var n=e.length;n--;)if(F8(e[n][0],t))return n;return-1}var xh=$8,T8=xh,k8=Array.prototype,L8=k8.splice;function B8(e){var t=this.__data__,n=T8(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():L8.call(t,n,1),--this.size,!0}var O8=B8,P8=xh;function N8(e){var t=this.__data__,n=P8(t,e);return n<0?void 0:t[n][1]}var I8=N8,R8=xh;function M8(e){return R8(this.__data__,e)>-1}var z8=M8,U8=xh;function q8(e,t){var n=this.__data__,i=U8(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var H8=q8,j8=_8,V8=O8,W8=I8,G8=z8,K8=H8;function Fa(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])}}Fa.prototype.clear=j8;Fa.prototype.delete=V8;Fa.prototype.get=W8;Fa.prototype.has=G8;Fa.prototype.set=K8;var Eh=Fa,X8=Eh;function Q8(){this.__data__=new X8,this.size=0}var Y8=Q8;function Z8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var J8=Z8;function eN(e){return this.__data__.get(e)}var tN=eN;function nN(e){return this.__data__.has(e)}var rN=nN,iN=typeof ur=="object"&&ur&&ur.Object===Object&&ur,dC=iN,sN=dC,oN=typeof self=="object"&&self&&self.Object===Object&&self,aN=sN||oN||Function("return this")(),Zr=aN,uN=Zr,lN=uN.Symbol,Ch=lN,zb=Ch,pC=Object.prototype,cN=pC.hasOwnProperty,fN=pC.toString,bu=zb?zb.toStringTag:void 0;function hN(e){var t=cN.call(e,bu),n=e[bu];try{e[bu]=void 0;var i=!0}catch{}var o=fN.call(e);return i&&(t?e[bu]=n:delete e[bu]),o}var dN=hN,pN=Object.prototype,gN=pN.toString;function vN(e){return gN.call(e)}var mN=vN,Ub=Ch,yN=dN,bN=mN,wN="[object Null]",DN="[object Undefined]",qb=Ub?Ub.toStringTag:void 0;function AN(e){return e==null?e===void 0?DN:wN:qb&&qb in Object(e)?yN(e):bN(e)}var wl=AN;function xN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vs=xN,EN=wl,CN=vs,_N="[object AsyncFunction]",SN="[object Function]",FN="[object GeneratorFunction]",$N="[object Proxy]";function TN(e){if(!CN(e))return!1;var t=EN(e);return t==SN||t==FN||t==_N||t==$N}var nv=TN,kN=Zr,LN=kN["__core-js_shared__"],BN=LN,lp=BN,Hb=function(){var e=/[^.]+$/.exec(lp&&lp.keys&&lp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ON(e){return!!Hb&&Hb in e}var PN=ON,NN=Function.prototype,IN=NN.toString;function RN(e){if(e!=null){try{return IN.call(e)}catch{}try{return e+""}catch{}}return""}var gC=RN,MN=nv,zN=PN,UN=vs,qN=gC,HN=/[\\^$.*+?()[\]{}|]/g,jN=/^\[object .+?Constructor\]$/,VN=Function.prototype,WN=Object.prototype,GN=VN.toString,KN=WN.hasOwnProperty,XN=RegExp("^"+GN.call(KN).replace(HN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QN(e){if(!UN(e)||zN(e))return!1;var t=MN(e)?XN:jN;return t.test(qN(e))}var YN=QN;function ZN(e,t){return e==null?void 0:e[t]}var JN=ZN,eI=YN,tI=JN;function nI(e,t){var n=tI(e,t);return eI(n)?n:void 0}var oo=nI,rI=oo,iI=Zr,sI=rI(iI,"Map"),rv=sI,oI=oo,aI=oI(Object,"create"),_h=aI,jb=_h;function uI(){this.__data__=jb?jb(null):{},this.size=0}var lI=uI;function cI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fI=cI,hI=_h,dI="__lodash_hash_undefined__",pI=Object.prototype,gI=pI.hasOwnProperty;function vI(e){var t=this.__data__;if(hI){var n=t[e];return n===dI?void 0:n}return gI.call(t,e)?t[e]:void 0}var mI=vI,yI=_h,bI=Object.prototype,wI=bI.hasOwnProperty;function DI(e){var t=this.__data__;return yI?t[e]!==void 0:wI.call(t,e)}var AI=DI,xI=_h,EI="__lodash_hash_undefined__";function CI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xI&&t===void 0?EI:t,this}var _I=CI,SI=lI,FI=fI,$I=mI,TI=AI,kI=_I;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=SI;$a.prototype.delete=FI;$a.prototype.get=$I;$a.prototype.has=TI;$a.prototype.set=kI;var LI=$a,Vb=LI,BI=Eh,OI=rv;function PI(){this.size=0,this.__data__={hash:new Vb,map:new(OI||BI),string:new Vb}}var NI=PI;function II(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var RI=II,MI=RI;function zI(e,t){var n=e.__data__;return MI(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Sh=zI,UI=Sh;function qI(e){var t=UI(this,e).delete(e);return this.size-=t?1:0,t}var HI=qI,jI=Sh;function VI(e){return jI(this,e).get(e)}var WI=VI,GI=Sh;function KI(e){return GI(this,e).has(e)}var XI=KI,QI=Sh;function YI(e,t){var n=QI(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var ZI=YI,JI=NI,eR=HI,tR=WI,nR=XI,rR=ZI;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=JI;Ta.prototype.delete=eR;Ta.prototype.get=tR;Ta.prototype.has=nR;Ta.prototype.set=rR;var iR=Ta,sR=Eh,oR=rv,aR=iR,uR=200;function lR(e,t){var n=this.__data__;if(n instanceof sR){var i=n.__data__;if(!oR||i.length<uR-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new aR(i)}return n.set(e,t),this.size=n.size,this}var cR=lR,fR=Eh,hR=Y8,dR=J8,pR=tN,gR=rN,vR=cR;function ka(e){var t=this.__data__=new fR(e);this.size=t.size}ka.prototype.clear=hR;ka.prototype.delete=dR;ka.prototype.get=pR;ka.prototype.has=gR;ka.prototype.set=vR;var vC=ka;function mR(e,t){for(var n=-1,i=e==null?0:e.length;++n<i&&t(e[n],n,e)!==!1;);return e}var yR=mR,bR=oo,wR=function(){try{var e=bR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),mC=wR,Wb=mC;function DR(e,t,n){t=="__proto__"&&Wb?Wb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var iv=DR,AR=iv,xR=Ah,ER=Object.prototype,CR=ER.hasOwnProperty;function _R(e,t,n){var i=e[t];(!(CR.call(e,t)&&xR(i,n))||n===void 0&&!(t in e))&&AR(e,t,n)}var yC=_R,SR=yC,FR=iv;function $R(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?FR(n,h,d):SR(n,h,d)}return n}var Dl=$R;function TR(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var kR=TR;function LR(e){return e!=null&&typeof e=="object"}var ao=LR,BR=wl,OR=ao,PR="[object Arguments]";function NR(e){return OR(e)&&BR(e)==PR}var IR=NR,Gb=IR,RR=ao,bC=Object.prototype,MR=bC.hasOwnProperty,zR=bC.propertyIsEnumerable,UR=Gb(function(){return arguments}())?Gb:function(e){return RR(e)&&MR.call(e,"callee")&&!zR.call(e,"callee")},sv=UR,qR=Array.isArray,Al=qR,va={},HR={get exports(){return va},set exports(e){va=e}};function jR(){return!1}var VR=jR;(function(e,t){var n=Zr,i=VR,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})(HR,va);var WR=9007199254740991,GR=/^(?:0|[1-9]\d*)$/;function KR(e,t){var n=typeof e;return t=t??WR,!!t&&(n=="number"||n!="symbol"&&GR.test(e))&&e>-1&&e%1==0&&e<t}var wC=KR,XR=wl,QR=bg,YR=ao,ZR="[object Arguments]",JR="[object Array]",eM="[object Boolean]",tM="[object Date]",nM="[object Error]",rM="[object Function]",iM="[object Map]",sM="[object Number]",oM="[object Object]",aM="[object RegExp]",uM="[object Set]",lM="[object String]",cM="[object WeakMap]",fM="[object ArrayBuffer]",hM="[object DataView]",dM="[object Float32Array]",pM="[object Float64Array]",gM="[object Int8Array]",vM="[object Int16Array]",mM="[object Int32Array]",yM="[object Uint8Array]",bM="[object Uint8ClampedArray]",wM="[object Uint16Array]",DM="[object Uint32Array]",Et={};Et[dM]=Et[pM]=Et[gM]=Et[vM]=Et[mM]=Et[yM]=Et[bM]=Et[wM]=Et[DM]=!0;Et[ZR]=Et[JR]=Et[fM]=Et[eM]=Et[hM]=Et[tM]=Et[nM]=Et[rM]=Et[iM]=Et[sM]=Et[oM]=Et[aM]=Et[uM]=Et[lM]=Et[cM]=!1;function AM(e){return YR(e)&&QR(e.length)&&!!Et[XR(e)]}var xM=AM;function EM(e){return function(t){return e(t)}}var ov=EM,ma={},CM={get exports(){return ma},set exports(e){ma=e}};(function(e,t){var n=dC,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})(CM,ma);var _M=xM,SM=ov,Kb=ma,Xb=Kb&&Kb.isTypedArray,FM=Xb?SM(Xb):_M,DC=FM,$M=kR,TM=sv,kM=Al,LM=va,BM=wC,OM=DC,PM=Object.prototype,NM=PM.hasOwnProperty;function IM(e,t){var n=kM(e),i=!n&&TM(e),o=!n&&!i&&LM(e),a=!n&&!i&&!o&&OM(e),c=n||i||o||a,h=c?$M(e.length,String):[],d=h.length;for(var p in e)(t||NM.call(e,p))&&!(c&&(p=="length"||o&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||BM(p,d)))&&h.push(p);return h}var AC=IM,RM=Object.prototype;function MM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||RM;return e===n}var av=MM;function zM(e,t){return function(n){return e(t(n))}}var xC=zM,UM=xC,qM=UM(Object.keys,Object),HM=qM,jM=av,VM=HM,WM=Object.prototype,GM=WM.hasOwnProperty;function KM(e){if(!jM(e))return VM(e);var t=[];for(var n in Object(e))GM.call(e,n)&&n!="constructor"&&t.push(n);return t}var XM=KM,QM=nv,YM=bg;function ZM(e){return e!=null&&YM(e.length)&&!QM(e)}var Fh=ZM,JM=AC,e5=XM,t5=Fh;function n5(e){return t5(e)?JM(e):e5(e)}var uv=n5,r5=Dl,i5=uv;function s5(e,t){return e&&r5(t,i5(t),e)}var o5=s5;function a5(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var u5=a5,l5=vs,c5=av,f5=u5,h5=Object.prototype,d5=h5.hasOwnProperty;function p5(e){if(!l5(e))return f5(e);var t=c5(e),n=[];for(var i in e)i=="constructor"&&(t||!d5.call(e,i))||n.push(i);return n}var g5=p5,v5=AC,m5=g5,y5=Fh;function b5(e){return y5(e)?v5(e,!0):m5(e)}var xl=b5,w5=Dl,D5=xl;function A5(e,t){return e&&w5(t,D5(t),e)}var x5=A5,Ku={},E5={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})(E5,Ku);function C5(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}var EC=C5;function _5(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 S5=_5;function F5(){return[]}var CC=F5,$5=S5,T5=CC,k5=Object.prototype,L5=k5.propertyIsEnumerable,Qb=Object.getOwnPropertySymbols,B5=Qb?function(e){return e==null?[]:(e=Object(e),$5(Qb(e),function(t){return L5.call(e,t)}))}:T5,lv=B5,O5=Dl,P5=lv;function N5(e,t){return O5(e,P5(e),t)}var I5=N5;function R5(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}var cv=R5,M5=xC,z5=M5(Object.getPrototypeOf,Object),fv=z5,U5=cv,q5=fv,H5=lv,j5=CC,V5=Object.getOwnPropertySymbols,W5=V5?function(e){for(var t=[];e;)U5(t,H5(e)),e=q5(e);return t}:j5,_C=W5,G5=Dl,K5=_C;function X5(e,t){return G5(e,K5(e),t)}var Q5=X5,Y5=cv,Z5=Al;function J5(e,t,n){var i=t(e);return Z5(e)?i:Y5(i,n(e))}var SC=J5,e6=SC,t6=lv,n6=uv;function r6(e){return e6(e,n6,t6)}var i6=r6,s6=SC,o6=_C,a6=xl;function u6(e){return s6(e,a6,o6)}var l6=u6,c6=oo,f6=Zr,h6=c6(f6,"DataView"),d6=h6,p6=oo,g6=Zr,v6=p6(g6,"Promise"),m6=v6,y6=oo,b6=Zr,w6=y6(b6,"Set"),D6=w6,A6=oo,x6=Zr,E6=A6(x6,"WeakMap"),C6=E6,f0=d6,h0=rv,d0=m6,p0=D6,g0=C6,FC=wl,La=gC,Yb="[object Map]",_6="[object Object]",Zb="[object Promise]",Jb="[object Set]",ew="[object WeakMap]",tw="[object DataView]",S6=La(f0),F6=La(h0),$6=La(d0),T6=La(p0),k6=La(g0),Ns=FC;(f0&&Ns(new f0(new ArrayBuffer(1)))!=tw||h0&&Ns(new h0)!=Yb||d0&&Ns(d0.resolve())!=Zb||p0&&Ns(new p0)!=Jb||g0&&Ns(new g0)!=ew)&&(Ns=function(e){var t=FC(e),n=t==_6?e.constructor:void 0,i=n?La(n):"";if(i)switch(i){case S6:return tw;case F6:return Yb;case $6:return Zb;case T6:return Jb;case k6:return ew}return t});var hv=Ns,L6=Object.prototype,B6=L6.hasOwnProperty;function O6(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&B6.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var P6=O6,N6=Zr,I6=N6.Uint8Array,R6=I6,nw=R6;function M6(e){var t=new e.constructor(e.byteLength);return new nw(t).set(new nw(e)),t}var dv=M6,z6=dv;function U6(e,t){var n=t?z6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var q6=U6,H6=/\w*$/;function j6(e){var t=new e.constructor(e.source,H6.exec(e));return t.lastIndex=e.lastIndex,t}var V6=j6,rw=Ch,iw=rw?rw.prototype:void 0,sw=iw?iw.valueOf:void 0;function W6(e){return sw?Object(sw.call(e)):{}}var G6=W6,K6=dv;function X6(e,t){var n=t?K6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $C=X6,Q6=dv,Y6=q6,Z6=V6,J6=G6,e4=$C,t4="[object Boolean]",n4="[object Date]",r4="[object Map]",i4="[object Number]",s4="[object RegExp]",o4="[object Set]",a4="[object String]",u4="[object Symbol]",l4="[object ArrayBuffer]",c4="[object DataView]",f4="[object Float32Array]",h4="[object Float64Array]",d4="[object Int8Array]",p4="[object Int16Array]",g4="[object Int32Array]",v4="[object Uint8Array]",m4="[object Uint8ClampedArray]",y4="[object Uint16Array]",b4="[object Uint32Array]";function w4(e,t,n){var i=e.constructor;switch(t){case l4:return Q6(e);case t4:case n4:return new i(+e);case c4:return Y6(e,n);case f4:case h4:case d4:case p4:case g4:case v4:case m4:case y4:case b4:return e4(e,n);case r4:return new i;case i4:case a4:return new i(e);case s4:return Z6(e);case o4:return new i;case u4:return J6(e)}}var D4=w4,A4=vs,ow=Object.create,x4=function(){function e(){}return function(t){if(!A4(t))return{};if(ow)return ow(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),E4=x4,C4=E4,_4=fv,S4=av;function F4(e){return typeof e.constructor=="function"&&!S4(e)?C4(_4(e)):{}}var TC=F4,$4=hv,T4=ao,k4="[object Map]";function L4(e){return T4(e)&&$4(e)==k4}var B4=L4,O4=B4,P4=ov,aw=ma,uw=aw&&aw.isMap,N4=uw?P4(uw):O4,I4=N4,R4=hv,M4=ao,z4="[object Set]";function U4(e){return M4(e)&&R4(e)==z4}var q4=U4,H4=q4,j4=ov,lw=ma,cw=lw&&lw.isSet,V4=cw?j4(cw):H4,W4=V4,G4=vC,K4=yR,X4=yC,Q4=o5,Y4=x5,Z4=Ku,J4=EC,ez=I5,tz=Q5,nz=i6,rz=l6,iz=hv,sz=P6,oz=D4,az=TC,uz=Al,lz=va,cz=I4,fz=vs,hz=W4,dz=uv,pz=xl,gz=1,vz=2,mz=4,kC="[object Arguments]",yz="[object Array]",bz="[object Boolean]",wz="[object Date]",Dz="[object Error]",LC="[object Function]",Az="[object GeneratorFunction]",xz="[object Map]",Ez="[object Number]",BC="[object Object]",Cz="[object RegExp]",_z="[object Set]",Sz="[object String]",Fz="[object Symbol]",$z="[object WeakMap]",Tz="[object ArrayBuffer]",kz="[object DataView]",Lz="[object Float32Array]",Bz="[object Float64Array]",Oz="[object Int8Array]",Pz="[object Int16Array]",Nz="[object Int32Array]",Iz="[object Uint8Array]",Rz="[object Uint8ClampedArray]",Mz="[object Uint16Array]",zz="[object Uint32Array]",At={};At[kC]=At[yz]=At[Tz]=At[kz]=At[bz]=At[wz]=At[Lz]=At[Bz]=At[Oz]=At[Pz]=At[Nz]=At[xz]=At[Ez]=At[BC]=At[Cz]=At[_z]=At[Sz]=At[Fz]=At[Iz]=At[Rz]=At[Mz]=At[zz]=!0;At[Dz]=At[LC]=At[$z]=!1;function nf(e,t,n,i,o,a){var c,h=t&gz,d=t&vz,p=t&mz;if(n&&(c=o?n(e,i,o,a):n(e)),c!==void 0)return c;if(!fz(e))return e;var g=uz(e);if(g){if(c=sz(e),!h)return J4(e,c)}else{var y=iz(e),m=y==LC||y==Az;if(lz(e))return Z4(e,h);if(y==BC||y==kC||m&&!o){if(c=d||m?{}:az(e),!h)return d?tz(e,Y4(c,e)):ez(e,Q4(c,e))}else{if(!At[y])return o?e:{};c=oz(e,y,h)}}a||(a=new G4);var w=a.get(e);if(w)return w;a.set(e,c),hz(e)?e.forEach(function(C){c.add(nf(C,t,n,C,e,a))}):cz(e)&&e.forEach(function(C,E){c.set(E,nf(C,t,n,E,e,a))});var $=p?d?rz:nz:d?pz:dz,L=g?void 0:$(e);return K4(L||e,function(C,E){L&&(E=C,C=e[E]),X4(c,E,nf(C,t,n,E,e,a))}),c}var Uz=nf,qz=Uz,Hz=1,jz=4;function Vz(e){return qz(e,Hz|jz)}var Wz=Vz,Gz=iv,Kz=Ah;function Xz(e,t,n){(n!==void 0&&!Kz(e[t],n)||n===void 0&&!(t in e))&&Gz(e,t,n)}var OC=Xz;function Qz(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 Yz=Qz,Zz=Yz,Jz=Zz(),e9=Jz,t9=Fh,n9=ao;function r9(e){return n9(e)&&t9(e)}var i9=r9,s9=wl,o9=fv,a9=ao,u9="[object Object]",l9=Function.prototype,c9=Object.prototype,PC=l9.toString,f9=c9.hasOwnProperty,h9=PC.call(Object);function d9(e){if(!a9(e)||s9(e)!=u9)return!1;var t=o9(e);if(t===null)return!0;var n=f9.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&PC.call(n)==h9}var p9=d9;function g9(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var NC=g9,v9=Dl,m9=xl;function y9(e){return v9(e,m9(e))}var b9=y9,fw=OC,w9=Ku,D9=$C,A9=EC,x9=TC,hw=sv,dw=Al,E9=i9,C9=va,_9=nv,S9=vs,F9=p9,$9=DC,pw=NC,T9=b9;function k9(e,t,n,i,o,a,c){var h=pw(e,n),d=pw(t,n),p=c.get(d);if(p){fw(e,n,p);return}var g=a?a(h,d,n+"",e,t,c):void 0,y=g===void 0;if(y){var m=dw(d),w=!m&&C9(d),$=!m&&!w&&$9(d);g=d,m||w||$?dw(h)?g=h:E9(h)?g=A9(h):w?(y=!1,g=w9(d,!0)):$?(y=!1,g=D9(d,!0)):g=[]:F9(d)||hw(d)?(g=h,hw(h)?g=T9(h):(!S9(h)||_9(h))&&(g=x9(d))):y=!1}y&&(c.set(d,g),o(g,d,i,a,c),c.delete(d)),fw(e,n,g)}var L9=k9,B9=vC,O9=OC,P9=e9,N9=L9,I9=vs,R9=xl,M9=NC;function IC(e,t,n,i,o){e!==t&&P9(t,function(a,c){if(o||(o=new B9),I9(a))N9(e,t,c,n,IC,i,o);else{var h=i?i(M9(e,c),a,c+"",e,t,o):void 0;h===void 0&&(h=a),O9(e,c,h)}},R9)}var z9=IC;function U9(e){return e}var RC=U9;function q9(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 H9=q9,j9=H9,gw=Math.max;function V9(e,t,n){return t=gw(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=gw(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),j9(e,this,h)}}var W9=V9;function G9(e){return function(){return e}}var K9=G9,X9=K9,vw=mC,Q9=RC,Y9=vw?function(e,t){return vw(e,"toString",{configurable:!0,enumerable:!1,value:X9(t),writable:!0})}:Q9,Z9=Y9,J9=800,e7=16,t7=Date.now;function n7(e){var t=0,n=0;return function(){var i=t7(),o=e7-(i-n);if(n=i,o>0){if(++t>=J9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r7=n7,i7=Z9,s7=r7,o7=s7(i7),a7=o7,u7=RC,l7=W9,c7=a7;function f7(e,t){return c7(l7(e,t,u7),e+"")}var h7=f7,d7=Ah,p7=Fh,g7=wC,v7=vs;function m7(e,t,n){if(!v7(n))return!1;var i=typeof t;return(i=="number"?p7(n)&&g7(t,n.length):i=="string"&&t in n)?d7(n[t],e):!1}var y7=m7,b7=h7,w7=y7;function D7(e){return b7(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&&w7(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 A7=D7,x7=z9,E7=A7,C7=E7(function(e,t,n){x7(e,t,n)}),_7=C7,Ls={},Fi={},S7={get exports(){return Fi},set exports(e){Fi=e}};const F7="2.0.0",$7=256,T7=Number.MAX_SAFE_INTEGER||9007199254740991,k7=16;var $h={SEMVER_SPEC_VERSION:F7,MAX_LENGTH:$7,MAX_SAFE_INTEGER:T7,MAX_SAFE_COMPONENT_LENGTH:k7};const L7=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Th=L7;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=$h,i=Th;t=e.exports={};const o=t.re=[],a=t.src=[],c=t.t={};let h=0;const d=(p,g,y)=>{const m=h++;i(p,m,g),c[p]=m,a[m]=g,o[m]=new RegExp(g,y?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","[0-9]+"),d("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),d("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${a[c.NUMERICIDENTIFIER]}|${a[c.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NUMERICIDENTIFIERLOOSE]}|${a[c.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER","[0-9A-Za-z-]+"),d("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`),d("FULL",`^${a[c.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`),d("LOOSE",`^${a[c.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`),d("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`),d("COERCE",`(^|[^\\d])(\\d{1,${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*$")})(S7,Fi);const B7=["includePrerelease","loose","rtl"],O7=e=>e?typeof e!="object"?{loose:!0}:B7.filter(t=>e[t]).reduce((t,n)=>(t[n]=!0,t),{}):{};var kh=O7;const mw=/^[0-9]+$/,MC=(e,t)=>{const n=mw.test(e),i=mw.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},P7=(e,t)=>MC(t,e);var zC={compareIdentifiers:MC,rcompareIdentifiers:P7};const $c=Th,{MAX_LENGTH:yw,MAX_SAFE_INTEGER:Tc}=$h,{re:bw,t:ww}=Fi,N7=kh,{compareIdentifiers:Mo}=zC;let I7=class Ur{constructor(t,n){if(n=N7(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>yw)throw new TypeError(`version is longer than ${yw} characters`);$c("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const i=t.trim().match(n.loose?bw[ww.LOOSE]:bw[ww.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)),Mo(this.major,t.major)||Mo(this.minor,t.minor)||Mo(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 Mo(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 Mo(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&&(Mo(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=I7;const{MAX_LENGTH:R7}=$h,{re:Dw,t:Aw}=Fi,xw=kn,M7=kh,z7=(e,t)=>{if(t=M7(t),e instanceof xw)return e;if(typeof e!="string"||e.length>R7||!(t.loose?Dw[Aw.LOOSE]:Dw[Aw.FULL]).test(e))return null;try{return new xw(e,t)}catch{return null}};var Ba=z7;const U7=Ba,q7=(e,t)=>{const n=U7(e,t);return n?n.version:null};var H7=q7;const j7=Ba,V7=(e,t)=>{const n=j7(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var W7=V7;const Ew=kn,G7=(e,t,n,i)=>{typeof n=="string"&&(i=n,n=void 0);try{return new Ew(e instanceof Ew?e.version:e,n).inc(t,i).version}catch{return null}};var K7=G7;const Cw=kn,X7=(e,t,n)=>new Cw(e,n).compare(new Cw(t,n));var $r=X7;const Q7=$r,Y7=(e,t,n)=>Q7(e,t,n)===0;var pv=Y7;const _w=Ba,Z7=pv,J7=(e,t)=>{if(Z7(e,t))return null;{const n=_w(e),i=_w(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 eU=J7;const tU=kn,nU=(e,t)=>new tU(e,t).major;var rU=nU;const iU=kn,sU=(e,t)=>new iU(e,t).minor;var oU=sU;const aU=kn,uU=(e,t)=>new aU(e,t).patch;var lU=uU;const cU=Ba,fU=(e,t)=>{const n=cU(e,t);return n&&n.prerelease.length?n.prerelease:null};var hU=fU;const dU=$r,pU=(e,t,n)=>dU(t,e,n);var gU=pU;const vU=$r,mU=(e,t)=>vU(e,t,!0);var yU=mU;const Sw=kn,bU=(e,t,n)=>{const i=new Sw(e,n),o=new Sw(t,n);return i.compare(o)||i.compareBuild(o)};var gv=bU;const wU=gv,DU=(e,t)=>e.sort((n,i)=>wU(n,i,t));var AU=DU;const xU=gv,EU=(e,t)=>e.sort((n,i)=>xU(i,n,t));var CU=EU;const _U=$r,SU=(e,t,n)=>_U(e,t,n)>0;var Lh=SU;const FU=$r,$U=(e,t,n)=>FU(e,t,n)<0;var vv=$U;const TU=$r,kU=(e,t,n)=>TU(e,t,n)!==0;var UC=kU;const LU=$r,BU=(e,t,n)=>LU(e,t,n)>=0;var mv=BU;const OU=$r,PU=(e,t,n)=>OU(e,t,n)<=0;var yv=PU;const NU=pv,IU=UC,RU=Lh,MU=mv,zU=vv,UU=yv,qU=(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 NU(e,n,i);case"!=":return IU(e,n,i);case">":return RU(e,n,i);case">=":return MU(e,n,i);case"<":return zU(e,n,i);case"<=":return UU(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};var qC=qU;const HU=kn,jU=Ba,{re:kc,t:Lc}=Fi,VU=(e,t)=>{if(e instanceof HU)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:jU(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var WU=VU,cp,Fw;function GU(){return Fw||(Fw=1,cp=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),cp}var KU=ct;ct.Node=Zs;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++)QU(this,arguments[e]);return this.length};ct.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)YU(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=XU(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 XU(e,t,n){var i=t===e.head?new Zs(n,null,t,e):new Zs(n,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function QU(e,t){e.tail=new Zs(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function YU(e,t){e.head=new Zs(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Zs(e,t,n,i){if(!(this instanceof Zs))return new Zs(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{GU()(ct)}catch{}const ZU=KU,Ms=Symbol("max"),bi=Symbol("length"),zo=Symbol("lengthCalculator"),Ou=Symbol("allowStale"),Hs=Symbol("maxAge"),mi=Symbol("dispose"),$w=Symbol("noDisposeOnSet"),rn=Symbol("lruList"),br=Symbol("cache"),HC=Symbol("updateAgeOnGet"),fp=()=>1;class JU{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[Ms]=t.max||1/0;const n=t.length||fp;if(this[zo]=typeof n!="function"?fp:n,this[Ou]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Hs]=t.maxAge||0,this[mi]=t.dispose,this[$w]=t.noDisposeOnSet||!1,this[HC]=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[Ms]=t||1/0,wu(this)}get max(){return this[Ms]}set allowStale(t){this[Ou]=!!t}get allowStale(){return this[Ou]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Hs]=t,wu(this)}get maxAge(){return this[Hs]}set lengthCalculator(t){typeof t!="function"&&(t=fp),t!==this[zo]&&(this[zo]=t,this[bi]=0,this[rn].forEach(n=>{n.length=this[zo](n.value,n.key),this[bi]+=n.length})),wu(this)}get lengthCalculator(){return this[zo]}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;Tw(this,t,i,n),i=o}}forEach(t,n){n=n||this;for(let i=this[rn].head;i!==null;){const o=i.next;Tw(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 ZU,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[Hs],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const o=i?Date.now():0,a=this[zo](n,t);if(this[br].has(t)){if(a>this[Ms])return ta(this,this[br].get(t)),!1;const d=this[br].get(t).value;return this[mi]&&(this[$w]||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 eq(t,n,a,o,i);return c.length>this[Ms]?(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 hp(this,t,!0)}peek(t){return hp(this,t,!1)}pop(){const t=this[rn].tail;return t?(ta(this,t),t.value):null}del(t){ta(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)=>hp(this,n,!1))}}const hp=(e,t,n)=>{const i=e[br].get(t);if(i){const o=i.value;if(Ff(e,o)){if(ta(e,i),!e[Ou])return}else n&&(e[HC]&&(i.value.now=Date.now()),e[rn].unshiftNode(i));return o.value}},Ff=(e,t)=>{if(!t||!t.maxAge&&!e[Hs])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Hs]&&n>e[Hs]},wu=e=>{if(e[bi]>e[Ms])for(let t=e[rn].tail;e[bi]>e[Ms]&&t!==null;){const n=t.prev;ta(e,t),t=n}},ta=(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 eq{constructor(t,n,i,o,a){this.key=t,this.value=n,this.length=i,this.now=o,this.maxAge=a||0}}const Tw=(e,t,n,i)=>{let o=n.value;Ff(e,o)&&(ta(e,n),e[Ou]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};var tq=JU,dp,kw;function Tr(){if(kw)return dp;kw=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}}dp=e;const t=tq,n=new t({max:1e3}),i=kh,o=Bh(),a=Th,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=E(Y,z),a("tildes",Y),Y=k(Y,z),a("xrange",Y),Y=U(Y,z),a("stars",Y),Y),C=Y=>!Y||Y.toLowerCase()==="x"||Y==="*",E=(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 C(D)?ue="":C(R)?ue=`>=${D}.0.0 <${+D+1}.0.0-0`:C(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 C(R)?ge="":C(V)?ge=`>=${R}.0.0${F} <${+R+1}.0.0-0`:C(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=C(R),$e=ge||C(V),_e=$e||C(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)=>(C(F)?P="":C(D)?P=`>=${F}.0.0${Y?"-0":""}`:C(R)?P=`>=${F}.${D}.0${Y?"-0":""}`:V?P=`>=${P}`:P=`>=${P}${Y?"-0":""}`,C(ge)?ue="":C($e)?ue=`<${+ge+1}.0.0-0`:C(_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 dp}var pp,Lw;function Bh(){if(Lw)return pp;Lw=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==="<="),C=a(this.semver,"<",g.semver,y)&&(this.operator===">="||this.operator===">")&&(g.operator==="<="||g.operator==="<"),E=a(this.semver,">",g.semver,y)&&(this.operator==="<="||this.operator==="<")&&(g.operator===">="||g.operator===">");return m||w||$&&L||C||E}}pp=t;const n=kh,{re:i,t:o}=Fi,a=qC,c=Th,h=kn,d=Tr();return pp}const nq=Tr(),rq=(e,t,n)=>{try{t=new nq(t,n)}catch{return!1}return t.test(e)};var Oh=rq;const iq=Tr(),sq=(e,t)=>new iq(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));var oq=sq;const aq=kn,uq=Tr(),lq=(e,t,n)=>{let i=null,o=null,a=null;try{a=new uq(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new aq(i,n))}),i};var cq=lq;const fq=kn,hq=Tr(),dq=(e,t,n)=>{let i=null,o=null,a=null;try{a=new hq(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new fq(i,n))}),i};var pq=dq;const gp=kn,gq=Tr(),Bw=Lh,vq=(e,t)=>{e=new gq(e,t);let n=new gp("0.0.0");if(e.test(n)||(n=new gp("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 gp(c.semver.version);switch(c.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!a||Bw(h,a))&&(a=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),a&&(!n||Bw(n,a))&&(n=a)}return n&&e.test(n)?n:null};var mq=vq;const yq=Tr(),bq=(e,t)=>{try{return new yq(e,t).range||"*"}catch{return null}};var wq=bq;const Dq=kn,jC=Bh(),{ANY:Aq}=jC,xq=Tr(),Eq=Oh,Ow=Lh,Pw=vv,Cq=yv,_q=mv,Sq=(e,t,n,i)=>{e=new Dq(e,i),t=new xq(t,i);let o,a,c,h,d;switch(n){case">":o=Ow,a=Cq,c=Pw,h=">",d=">=";break;case"<":o=Pw,a=_q,c=Ow,h="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Eq(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===Aq&&(w=new jC(">=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 bv=Sq;const Fq=bv,$q=(e,t,n)=>Fq(e,t,">",n);var Tq=$q;const kq=bv,Lq=(e,t,n)=>kq(e,t,"<",n);var Bq=Lq;const Nw=Tr(),Oq=(e,t,n)=>(e=new Nw(e,n),t=new Nw(t,n),e.intersects(t));var Pq=Oq;const Nq=Oh,Iq=$r;var Rq=(e,t,n)=>{const i=[];let o=null,a=null;const c=e.sort((g,y)=>Iq(g,y,n));for(const g of c)Nq(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 Iw=Tr(),rf=Bh(),{ANY:vp}=rf,Du=Oh,wv=$r,Mq=(e,t,n={})=>{if(e===t)return!0;e=new Iw(e,n),t=new Iw(t,n);let i=!1;e:for(const o of e.set){for(const a of t.set){const c=zq(o,a,n);if(i=i||c!==null,c)continue e}if(i)return!1}return!0},zq=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===vp){if(t.length===1&&t[0].semver===vp)return!0;n.includePrerelease?e=[new rf(">=0.0.0-0")]:e=[new rf(">=0.0.0")]}if(t.length===1&&t[0].semver===vp){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=Rw(o,w,n):w.operator==="<"||w.operator==="<="?a=Mw(a,w,n):i.add(w.semver);if(i.size>1)return null;let c;if(o&&a){if(c=wv(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=Rw(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=Mw(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)},Rw=(e,t,n)=>{if(!e)return t;const i=wv(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},Mw=(e,t,n)=>{if(!e)return t;const i=wv(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var Uq=Mq;const mp=Fi,qq=$h,Hq=kn,zw=zC,jq=Ba,Vq=H7,Wq=W7,Gq=K7,Kq=eU,Xq=rU,Qq=oU,Yq=lU,Zq=hU,Jq=$r,eH=gU,tH=yU,nH=gv,rH=AU,iH=CU,sH=Lh,oH=vv,aH=pv,uH=UC,lH=mv,cH=yv,fH=qC,hH=WU,dH=Bh(),pH=Tr(),gH=Oh,vH=oq,mH=cq,yH=pq,bH=mq,wH=wq,DH=bv,AH=Tq,xH=Bq,EH=Pq,CH=Rq,_H=Uq;var SH={parse:jq,valid:Vq,clean:Wq,inc:Gq,diff:Kq,major:Xq,minor:Qq,patch:Yq,prerelease:Zq,compare:Jq,rcompare:eH,compareLoose:tH,compareBuild:nH,sort:rH,rsort:iH,gt:sH,lt:oH,eq:aH,neq:uH,gte:lH,lte:cH,cmp:fH,coerce:hH,Comparator:dH,Range:pH,satisfies:gH,toComparators:vH,maxSatisfying:mH,minSatisfying:yH,minVersion:bH,validRange:wH,outside:DH,gtr:AH,ltr:xH,intersects:EH,simplifyRange:CH,subset:_H,SemVer:Hq,re:mp.re,src:mp.src,tokens:mp.t,SEMVER_SPEC_VERSION:qq.SEMVER_SPEC_VERSION,compareIdentifiers:zw.compareIdentifiers,rcompareIdentifiers:zw.rcompareIdentifiers};const FH="concordance",$H="5.0.4",TH="Compare, format, diff and serialize any JavaScript value",kH="index.js",LH=["lib","index.js"],BH={node:">=10.18.0 <11 || >=12.14.0 <13 || >=14"},OH={test:"as-i-preach && c8 ava"},PH={type:"git",url:"git+https://github.com/concordancejs/concordance.git"},NH="Mark Wubben (https://novemberborn.net/)",IH="ISC",RH={url:"https://github.com/concordancejs/concordance/issues"},MH="https://github.com/concordancejs/concordance#readme",zH={"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"},UH={"@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"},qH={name:FH,version:$H,description:TH,main:kH,files:LH,engines:BH,scripts:OH,repository:PH,author:NH,license:IH,bugs:RH,homepage:MH,dependencies:zH,devDependencies:UH};var Pi={},Oa={},HH=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"}})},Dv={};const VC=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]));Dv.isWellKnown=e=>VC.has(e);Dv.getLabel=e=>VC.get(e);const WC=HH,Uw=Dv,GC=bt,yp=qt,jH=en,$f=GC.DEEP_EQUAL,na=GC.UNEQUAL;function VH(e){let t=null;const n=Symbol.keyFor(e);return n!==void 0?t=`Symbol.for(${WC(n)})`:Uw.isWellKnown(e)&&(t=Uw.getLabel(e)),new Nh({stringCompare:t,value:e})}Oa.describe=VH;function WH(e){const t=e[0],n=e[1]||e[0];return new GH({string:n,stringCompare:t,value:null})}Oa.deserialize=WH;const Ph=Symbol("SymbolValue");Oa.tag=Ph;class Nh{constructor(t){this.stringCompare=t.stringCompare,this.value=t.value}compare(t){return t.tag!==Ph?na:this.stringCompare!==null?this.stringCompare===t.stringCompare?$f:na:this.value===t.value?$f:na}formatString(){return this.stringCompare!==null?this.stringCompare:WC(this.value.toString())}formatDeep(t){return jH.single(yp.wrap(t.symbol,this.formatString()))}formatAsKey(t){return yp.wrap(t.property.keyBracket,yp.wrap(t.symbol,this.formatString()))}serialize(){const t=this.formatString();return this.stringCompare===t?[this.stringCompare]:[this.stringCompare,t]}}Object.defineProperty(Nh.prototype,"isPrimitive",{value:!0});Object.defineProperty(Nh.prototype,"tag",{value:Ph});class GH extends Nh{constructor(t){super(t),this.string=t.string}compare(t){return t.tag!==Ph?na:this.stringCompare!==null?this.stringCompare===t.stringCompare?$f:na:this.string===t.formatString()?$f:na}formatString(){return this.string}}const Av=bt,KH=qt,qw=Oa.tag,sf=$t,XH=Av.AMBIGUOUS,Tf=Av.DEEP_EQUAL,ya=Av.UNEQUAL;function QH(e,t){return new Ev(e,t)}Pi.describeComplex=QH;function YH(e,t){const n=t();return new Ev(e,n)}Pi.deserializeComplex=YH;function ZH(e,t){return new Cv(e,t)}Pi.describePrimitive=ZH;function JH(e){const t=e[0],n=e[1];return new Cv(t,n)}Pi.deserializePrimitive=JH;const KC=Symbol("ComplexProperty");Pi.complexTag=KC;const XC=Symbol("PrimitiveProperty");Pi.primitiveTag=XC;class xv{constructor(t){this.key=t}compareKeys(t){const n=this.key.compare(t.key);return n===ya&&this.key.tag===qw&&t.key.tag===qw?XH:n}prepareDiff(t,n,i,o,a){if(a(this.value)||a(t.value))return{compareResult:ya};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(xv.prototype,"isProperty",{value:!0});class Ev extends xv{constructor(t,n){super(t),this.value=n}createRecursor(){return sf.singleValue(this.value)}compare(t){if(t.isProperty!==!0)return ya;const n=this.compareKeys(t);return n!==Tf?n:this.tag===t.tag?this.value.compare(t.value):ya}formatShallow(t,n){const i=t.property.increaseValueIndent===!0;return new KH.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(Ev.prototype,"tag",{value:KC});class Cv extends xv{constructor(t,n){super(t),this.value=n}compare(t){if(t.isProperty!==!0)return ya;const n=this.compareKeys(t);return n!==Tf?n:this.tag!==t.tag?ya: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(Cv.prototype,"tag",{value:XC});var Hw;function _v(){if(Hw)return Ls;Hw=1;const e=SH,t=qH,n=Jt,i=bt,o=qt,a=en,c=Oi,h=Pi,d=so,p=$t,g=Ih(),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 C extends TypeError{constructor(D,R){super(D),this.name="PluginTypeError",this.plugin=R}}class E 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 C("Plugin must have a `name`",F);if(F.apiVersion!==y)throw new E(F);if("minimalConcordanceVersion"in F){if(!e.valid(F.minimalConcordanceVersion))throw new C("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}Ls.add=ne;function oe(F){return F.map(D=>{const R=ne(D);return{id2deserialize:R.id2deserialize,name:R.name,serializerVersion:R.serializerVersion}})}Ls.getDeserializers=oe;function Y(F){return F.map(D=>{const R=ne(D);return{name:R.name,theme:R.theme}})}Ls.getThemes=Y;function z(F){return F.map(D=>ne(D).tryDescribeValue)}Ls.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 Ls.resolveDescriptorRef=P,Ls}var jw;function Ih(){if(jw)return Ro;jw=1;const e=Wz,t=_7,n=_v();function i(C){const E=[C];for(;E.length>0;){const S=E.shift();Object.freeze(S);for(const O of Object.keys(S)){const B=S[O];B!==null&&typeof B=="object"&&E.push(B)}}return C}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(C){if(!Array.isArray(C)||C.length===0)return null;const E=[],S=[];for(const k of n.getThemes(C))a.has(k.name)||a.set(k.name,a.count++),E.push(a.get(k.name)),S.push(k.theme);const O=E.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(C){C=Object.assign({plugins:[],theme:null},C);const E=h(C.plugins);if(!C.theme)return E?E.theme:o;const S=d.get(C.theme)||{theme:null,withPlugins:new Map};if(d.has(C.theme)||d.set(C.theme,S),E){if(S.withPlugins.has(E.ref))return S.withPlugins.get(E.ref);const O=i(t(e(E.theme),C.theme));return S.withPlugins.set(E.ref,O),O}return S.theme||(S.theme=i(t(e(o),C.theme))),S.theme}Ro.normalize=p;const g=new WeakMap;function y(C,E){g.has(C)?g.get(C).add(E):g.set(C,new Set([E]))}Ro.addModifier=y;const m=new WeakMap,w=new WeakMap;function $(C,E){return g.has(C)?Array.from(g.get(C)).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,E),k},E):E}Ro.applyModifiers=$;function L(C,E){return $(C,w.get(E)||E)}return Ro.applyModifiersToOriginal=L,Ro}const Sv=bt,Vw=en,Bc=$t,Oc=Ih(),Au=Sv.DEEP_EQUAL,di=Sv.UNEQUAL,Ww=Sv.SHALLOW_EQUAL;function ej(e,t){const n=e.isPrimitive===!0,i=t.isPrimitive===!0;return new Rh(e,t,n,i)}bl.describe=ej;function tj(e,t){const n=e[0],i=e[1],o=t(),a=t();return new Rh(o,a,n,i)}bl.deserialize=tj;const QC=Symbol("MapEntry");bl.tag=QC;function bp(e,t,n){const i=Vw.buffer(),o=Vw.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 Rh{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 Ww;const n=this.key.compare(t.key);return n!==Au?n:this.valueIsPrimitive?this.value.compare(t.value):Ww}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 bp(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 bp(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 bp(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(Rh.prototype,"isMapEntry",{value:!0});Object.defineProperty(Rh.prototype,"tag",{value:QC});var El={};const YC=bt,nj=qt,rj=en,ij=YC.DEEP_EQUAL,sj=YC.UNEQUAL;function ZC(e){return new $v(e)}El.describe=ZC;El.deserialize=ZC;const Fv=Symbol("BigIntValue");El.tag=Fv;class $v{constructor(t){this.value=t}compare(t){return t.tag===Fv&&Object.is(this.value,t.value)?ij:sj}formatDeep(t){return rj.single(nj.wrap(t.bigInt,`${this.value}n`))}serialize(){return this.value}}Object.defineProperty($v.prototype,"isPrimitive",{value:!0});Object.defineProperty($v.prototype,"tag",{value:Fv});var Cl={};const JC=bt,oj=qt,aj=en,uj=JC.DEEP_EQUAL,lj=JC.UNEQUAL;function e_(e){return new Tv(e)}Cl.describe=e_;Cl.deserialize=e_;const t_=Symbol("BooleanValue");Cl.tag=t_;class Tv{constructor(t){this.value=t}compare(t){return this.tag===t.tag&&this.value===t.value?uj:lj}formatDeep(t){return aj.single(oj.wrap(t.boolean,this.value===!0?"true":"false"))}serialize(){return this.value}}Object.defineProperty(Tv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Tv.prototype,"tag",{value:t_});var _l={};const n_=bt,cj=qt,fj=en,hj=n_.DEEP_EQUAL,dj=n_.UNEQUAL;function r_(){return new Lv}_l.describe=r_;_l.deserialize=r_;const kv=Symbol("NullValue");_l.tag=kv;class Lv{compare(t){return t.tag===kv?hj:dj}formatDeep(t){return fj.single(cj.wrap(t.null,"null"))}}Object.defineProperty(Lv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Lv.prototype,"tag",{value:kv});var Sl={};const i_=bt,pj=qt,gj=en,vj=i_.DEEP_EQUAL,mj=i_.UNEQUAL;function s_(e){return new Ov(e)}Sl.describe=s_;Sl.deserialize=s_;const Bv=Symbol("NumberValue");Sl.tag=Bv;class Ov{constructor(t){this.value=t}compare(t){return t.tag===Bv&&Object.is(this.value,t.value)?vj:mj}formatDeep(t){const n=Object.is(this.value,-0)?"-0":String(this.value);return gj.single(pj.wrap(t.number,n))}serialize(){return this.value}}Object.defineProperty(Ov.prototype,"isPrimitive",{value:!0});Object.defineProperty(Ov.prototype,"tag",{value:Bv});var Fl={};const o_=bt,yj=qt,bj=en,wj=o_.DEEP_EQUAL,Dj=o_.UNEQUAL;function a_(){return new Nv}Fl.describe=a_;Fl.deserialize=a_;const Pv=Symbol("UndefinedValue");Fl.tag=Pv;class Nv{compare(t){return t.tag===Pv?wj:Dj}formatDeep(t){return bj.single(yj.wrap(t.undefined,"undefined"))}}Object.defineProperty(Nv.prototype,"isPrimitive",{value:!0});Object.defineProperty(Nv.prototype,"tag",{value:Pv});const Aj=H3,xj=Sa,Ej=ul,Cj=ll,_j=cl,Sj=fl,Fj=hl,Gw=dl,$j=pl,Tj=gl,kj=Jt,Lj=vl,Bj=ml,Oj=yl,pi=er,Pj=v8,Nj=l0,Kw=Oi,Ij=bl,Xw=Pi,Rj=_v(),Mj=El,zj=Cl,Uj=_l,qj=Sl,Hj=so,jj=Oa,Vj=Fl,Qw=new Map([["Arguments",xj.describe],["ArrayBuffer",Ej.describe],["DataView",_j.describe],["Date",Sj.describe],["Error",Fj.describe],["Float32Array",pi.describe],["Float64Array",pi.describe],["Function",Gw.describe],["GeneratorFunction",Gw.describe],["global",$j.describe],["Int16Array",pi.describe],["Int32Array",pi.describe],["Int8Array",pi.describe],["Map",Tj.describe],["Promise",Lj.describe],["RegExp",Bj.describe],["Set",Oj.describe],["Uint16Array",pi.describe],["Uint32Array",pi.describe],["Uint8Array",pi.describe],["Uint8ClampedArray",pi.describe]]);function of(e){if(e===null)return Uj.describe();if(e===void 0)return Vj.describe();if(e===!0||e===!1)return zj.describe(e);const t=typeof e;return t==="bigint"?Mj.describe(e):t==="number"?qj.describe(e):t==="string"?Hj.describe(e):t==="symbol"?jj.describe(e):null}function Wj(e,t){if(typeof t.valueOf=="function"){const n=t.valueOf();if(n!==t)return of(n)}return null}function Gj(e){if(!Array.isArray(e)||e.length===0)return()=>null;const t=Rj.getTryDescribeValues(e);return(n,i,o)=>{for(const a of t){const c=a(n,i,o);if(c)return c}return null}}function Kj(e,t,n,i,o,a,c){if(t.has(e))return t.get(e);const h=Nj(e),d=Pj(h,e),p=t.alloc(e);let g,y=n(e,h,d);y===null&&(Qw.has(h)?y=Qw.get(h):(g=Wj(h,e),g!==null?y=Cj.describe:y=kj.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 Xj=(e,t)=>t.isPrimitive===!0?Kw.describePrimitive(e,t):Kw.describeComplex(e,t),Qj=(e,t)=>Ij.describe(e,t);function Yj(e,t){const n=of(e);if(n!==null)return n;const i=new Aj,o=Gj(t&&t.plugins),a=d=>Kj(d,i,o,c,Xj,Qj,h),c=d=>{const p=of(d);return p!==null?p:a(d)},h=(d,p)=>{const g=of(d);return p.isPrimitive===!0?Xw.describePrimitive(g,p):Xw.describeComplex(g,p)};return a(e)}var Mh=Yj;const Zj=Sa.tag,u_=bt,Jj=u_.AMBIGUOUS,eV=u_.SHALLOW_EQUAL;function tV(e,t,n){return e===eV?!0:e!==Jj?!1:t.tag===Zj||t.isProperty===!0}var l_=tV,zh={};const Iv=bt,nV=$t,Yw=Iv.DEEP_EQUAL,rV=Iv.SHALLOW_EQUAL,Zw=Iv.UNEQUAL;class Rv{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 Zw;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)===Yw){a=!1,i.add(c.key),n.push(c);break}if(a)return Zw}return t.ordered=n,rV}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)===Yw){c=!1,o.add(h.key),i.push(a);break}c&&n.push(a)}return t.ordered=i.concat(n),{mustRecurse:!0}}}Object.defineProperty(Rv.prototype,"isSymbolPropertiesComparable",{value:!0});zh.Comparable=Rv;class c_{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 nV.singleValue(new Rv(this.properties))}}Object.defineProperty(c_.prototype,"isSymbolPropertiesCollector",{value:!0});zh.Collector=c_;const Jw=yg,Mv=bt,eD=Mh,tD=$t,iV=l_,nD=zh,sV=Mv.AMBIGUOUS,rD=Mv.DEEP_EQUAL,wp=Mv.UNEQUAL;function iD(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 f_(e,t){const n=new Jw,i=new Jw,o=[],a=[];let c=-1;do{let h;if(n.has(e)?h=n.get(e)===i.get(t)?rD:wp:i.has(t)?h=wp:h=e.compare(t),h===wp)return!1;if(h!==rD){if(!iV(h,e))return!1;h===sV&&e.isProperty===!0&&(e=new nD.Collector(e,o[c].recursor),t=new nD.Collector(t,a[c].recursor),o[c].recursor=tD.unshift(o[c].recursor,e.collectAll()),a[c].recursor=tD.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}mg.compareDescriptors=f_;function oV(e,t,n){if(Object.is(e,t))return{pass:!0};if(iD(e)||iD(t))return{pass:!1};e=eD(e,n),t=eD(t,n);const i=f_(e,t);return{actual:e,expected:t,pass:i}}mg.compare=oV;var zv={};let aV=class v0{constructor(t,n){this.level=t,this.step=n,this.value=n.repeat(t)}increase(){return new v0(this.level+1,this.step)}decrease(){return new v0(this.level-1,this.step)}toString(){return this.value}};var h_=aV;const sD=yg,uV=h_,Uh=bt,oD=Mh,ir=en,Go=$t,m0=l_,kf=zh,Bs=Ih(),y0=Uh.AMBIGUOUS,Pu=Uh.DEEP_EQUAL,zs=Uh.UNEQUAL,lV=Uh.SHALLOW_EQUAL,aD=Symbol("NOOP"),Dp=()=>!0;function cV(e,t){let n=e.compare(t);if(n===Pu)return Pu;if(n===zs||!m0(n,e))return zs;let i=!1,o=e.createRecursor(),a=t.createRecursor();do{if(e=o(),t=a(),e===null&&t===null)return lV;if(e===null||t===null||(n=e.compare(t),n===zs))return zs;if(n===y0&&e.isProperty===!0&&!i&&m0(n,e)){i=!0;const c=new kf.Collector(e,o),h=new kf.Collector(t,a);o=Go.sequence(c.createRecursor(),Go.unshift(o,c.collectAll())),a=Go.sequence(h.createRecursor(),Go.unshift(a,h.collectAll()))}}while(!0)}function d_(e,t,n){const i=Bs.normalize(n),o=n?n.invert===!0:!1,a=new sD,c=new sD,h=n&&n.maxDepth||0;let d=new uV(0," ");const p=[],g=[];let y=-1;const m=ir.buffer(),w=[];let $=-1;const L=E=>a.has(E)||c.has(E),C=(E,S,O,B=0)=>{if($>=0&&!w[$].shouldFormat(S))return;if(O.has(S)){w[$].formatter.append(E.single(i.circular));return}const k=[];let M=-1;do{if(O.has(S))k[M].formatter.append(E.single(i.circular),S);else{let U=!1;if(typeof S.formatDeep=="function"){let j=S.formatDeep(Bs.applyModifiers(S,i),d);j!==null&&(U=!0,M===-1?(j=E.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(Bs.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=E.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||Dp,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=E.setDefaultGutter(j),$===-1?m.append(j):w[$].formatter.append(j,U.subject)):k[M].formatter.append(j,U.subject)}}while(M>=0)};do{let E=aD;a.has(e)?E=a.get(e)===c.get(t)?Pu:zs:c.has(t)&&(E=zs);let S=!1;if(e.isProperty===!0&&(E=e.compare(t),E===y0)){const k=p[y].subject;S=k.isSymbolPropertiesCollector!==!0&&k.isSymbolPropertiesComparable!==!0}let O=!1,B=!1;if(E!==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,cV,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&&(E=U.compareResult),U.mustRecurse===!0)B=!0;else if(U.actualIsExtraneous===!0)C(ir.actual,e,a),O=!0;else if(U.multipleAreExtraneous===!0){for(const j of U.descriptors)C(ir.actual,j,a);O=!0}else if(U.expectedIsMissing===!0)C(ir.expected,t,c),O=!0;else if(U.multipleAreMissing===!0){for(const j of U.descriptors)C(ir.expected,j,c);O=!0}else if(U.isUnequal===!0)C(ir.actual,e,a),C(ir.expected,t,c),O=!0;else if(!U.compareResult)throw new Error("Illegal result of prepareDiff()")}}if(!O)if(E===aD&&(E=e.compare(t)),B||(B=m0(E,e)),E===Pu)C(ir,e,a);else if(B){if(E===y0&&e.isProperty===!0&&(e=new kf.Collector(e,p[y].recursor),t=new kf.Collector(t,g[y].recursor),p[y].recursor=Go.unshift(p[y].recursor,e.collectAll()),g[y].recursor=Go.unshift(g[y].recursor,t.collectAll())),typeof e.diffShallow=="function"){const k=e.diffShallow(t,Bs.applyModifiers(e,i),d);w.push({formatter:k,origin:e,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||Dp}),$++,k.increaseIndent&&(d=d.increase())}else if(typeof e.formatShallow=="function"){const k=e.formatShallow(Bs.applyModifiers(e,i),d);w.push({formatter:k,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||Dp,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,Bs.applyModifiers(e,i),d,o):null;k===null?(C(ir.actual,e,a),C(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(Bs.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 C(k,j,M,d.level),j=U[y].recursor();while(j!==null)}}while(y>=0);return m.toString({diff:!0,invert:o,theme:i})}zv.diffDescriptors=d_;function fV(e,t,n){return d_(oD(e,n),oD(t,n),n)}zv.diff=fV;var Uv={};const hV=yg,dV=h_,pV=Mh,uD=en,Pc=Ih(),gV=()=>!0,lD=new dV(0," ");function p_(e,t){const n=Pc.normalize(t);if(e.isPrimitive===!0)return e.formatDeep(Pc.applyModifiers(e,n),lD).toString({diff:!1});const i=new hV,o=t&&t.maxDepth||0;let a=lD;const c=uD.buffer(),h=[];let d=-1;do{if(i.has(e))h[d].formatter.append(uD.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||gV,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})}Uv.formatDescriptor=p_;function vV(e,t){return p_(pV(e,t),t)}Uv.format=vV;var qv={},b0={},mV={get exports(){return b0},set exports(e){b0=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 C(k){return m(L(k))}function E(k){return $(C(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?C(k):E(k)}e.exports?e.exports=B:t.md5=B})(ur)})(mV);const yV=b0;var bV=e=>(Array.isArray(e)&&(e=e.join("")),yV(e)),uo={},cD=Ch,wV=sv,DV=Al,fD=cD?cD.isConcatSpreadable:void 0;function AV(e){return DV(e)||wV(e)||!!(fD&&e&&e[fD])}var xV=AV,EV=cv,CV=xV;function g_(e,t,n,i,o){var a=-1,c=e.length;for(n||(n=CV),o||(o=[]);++a<c;){var h=e[a];t>0&&n(h)?t>1?g_(h,t-1,n,i,o):EV(o,h):i||(o[o.length]=h)}return o}var _V=g_,SV=_V,FV=1/0;function $V(e){var t=e==null?0:e.length;return t?SV(e,FV):[]}var TV=$V;const kV=TV,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");uo.descriptorSymbol=Hv;function Uo(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 Uo(je.int8,e);if(e>=-32768&&e<32768)return Uo(je.int16,e);if(e>=-8388608&&e<8388608)return Uo(je.int24,e);if(e>=-2147483648&&e<2147483648)return Uo(je.int32,e);if(e>=-549755813888&&e<549755813888)return Uo(je.int40,e);if(e>=-0x800000000000&&e<0x800000000000)return Uo(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=kV(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 LV(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)}uo.encode=LV;function BV(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}uo.decodePlugins=BV;function v_(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}}uo.decodeRecord=v_;function OV(e){return e.readUInt16LE(0)}uo.extractVersion=OV;function PV(e){const t=e.readUInt32LE(2),n=e.slice(6,t),i=v_(e,t);return{pluginBuffer:n,rootRecord:i}}uo.decode=PV;var qh={};const NV=bt.UNEQUAL;function m_(e){return new jv(e)}qh.describe=m_;qh.deserialize=m_;const y_=Symbol("Pointer");qh.tag=y_;class jv{constructor(t){this.index=t}compare(t){return NV}serialize(){return this.index}}Object.defineProperty(jv.prototype,"isPointer",{value:!0});Object.defineProperty(jv.prototype,"tag",{value:y_});const IV=bV,hD=Sa,dD=ul,pD=ll,gD=cl,vD=fl,mD=hl,yD=dl,bD=pl,wD=gl,DD=Jt,AD=vl,xD=ml,ED=yl,Ic=er,Js=uo,Rc=Oi,CD=bl,w0=qh,Mc=Pi,qo=fr,b_=_v(),_D=El,SD=Cl,FD=_l,$D=Sl,TD=so,kD=Oa,LD=Fl,RV=$t,w_=3,D_=[[1,_D.tag,_D.deserialize],[2,SD.tag,SD.deserialize],[3,FD.tag,FD.deserialize],[4,$D.tag,$D.deserialize],[5,TD.tag,TD.deserialize],[6,kD.tag,kD.deserialize],[7,LD.tag,LD.deserialize],[8,DD.tag,DD.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,w0.tag,w0.deserialize],[17,wD.tag,wD.deserialize],[18,CD.tag,CD.deserialize],[19,hD.tag,hD.deserialize],[20,dD.tag,dD.deserialize],[21,pD.tag,pD.deserialize],[22,gD.tag,gD.deserialize],[23,vD.tag,vD.deserialize],[24,mD.tag,mD.deserialize],[25,yD.tag,yD.deserialize],[26,bD.tag,bD.deserialize],[27,AD.tag,AD.deserialize],[28,xD.tag,xD.deserialize],[29,ED.tag,ED.deserialize],[30,Ic.tag,Ic.deserialize],[31,Ic.bytesTag,Ic.deserializeBytes]],Lf=new Map(D_.map(e=>[e[1],e[0]])),MV=new Map(D_.map(e=>[e[0],e[2]]));class zV extends Error{constructor(t){super("Could not serialize descriptor"),this.name="DescriptorSerializationError",this.descriptor=t}}class UV extends Error{constructor(t){super(`Could not deserialize buffer: missing plugin ${JSON.stringify(t)}`),this.name="MissingPluginError",this.pluginName=t}}class qV extends Error{constructor(t){super(`Could not deserialize buffer: pointer ${t} could not be resolved`),this.name="PointerLookupError",this.index=t}}class HV 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 jV extends Error{constructor(t){super("Could not deserialize buffer: a different serialization was expected"),this.name="UnsupportedVersion",this.serializerVersion=t}}function A_(e,t){if(e.serialize)return x_(e.serialize(),t)}function x_(e,t){if(Array.isArray(e))return e.map(n=>x_(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,A_(e,t)];return o[Js.descriptorSymbol]=!0,o}}return e}function VV(e){const t=new Map,n=h=>{const d=b_.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=w0.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 zV(e);h=g.id,d=g.pluginIndex}const p={id:h,pluginIndex:d,children:[],state:A_(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 Js.encode(w_,c,t)}qv.serialize=VV;function E_(e,t){return e&&e[Js.descriptorSymbol]===!0?WV(e,t):Array.isArray(e)?e.map(n=>E_(n,t)):e}function WV(e,t){return t(e[0],e[1])(e[2])}function C_(e,t,n){const i=t(e.pluginIndex,e.id),o=E_(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=Js.decodeRecord(n,e.pointerAddresses[c++]);return C_(d,t,n)})}function GV(e,t){const n=t&&t.deserializedPluginsCache,i=IV(e);if(n&&n.has(i))return n.get(i);const o=Js.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 b_.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 UV(p);if(g!==a.get(p).serializerVersion)throw new HV(p,g);c.set(h,a.get(p).id2deserialize)}return n&&n.set(i,c),c}function KV(e,t){const n=Js.extractVersion(e);if(n!==w_)throw new jV(n);const i=Js.decode(e),o=GV(i.pluginBuffer,t),a=new Map,c=p=>{if(p.isPointer===!0){if(a.has(p.index)||typeof d.createRecursor=="function"&&(RV.consumeDeep(d.createRecursor()),a.has(p.index)))return a.get(p.index);throw new qV(p.index)}return p.isComplex===!0&&a.set(p.pointer,p),p},h=(p,g)=>(y,m)=>{const w=p===0?MV.get(g):o.get(p).get(g);return c(w(y,m))},d=C_(i.rootRecord,h,e);return d}qv.deserialize=KV;const __=mg,XV=Mh,S_=zv,F_=Uv,$_=qv;var QV=cr.compare=__.compare,YV=cr.compareDescriptors=__.compareDescriptors,ZV=cr.describe=XV,JV=cr.diff=S_.diff,eW=cr.diffDescriptors=S_.diffDescriptors,tW=cr.format=F_.format,nW=cr.formatDescriptor=F_.formatDescriptor,rW=cr.serialize=$_.serialize,iW=cr.deserialize=$_.deserialize;const BD=h$({__proto__:null,compare:QV,compareDescriptors:YV,default:cr,describe:ZV,deserialize:iW,diff:JV,diffDescriptors:eW,format:tW,formatDescriptor:nW,serialize:rW},[cr]),sW="default"in BD?cr:BD;function oW(){const e=xE();return{boolean:e.yellow,circular:e.gray("[Circular]"),date:{invalid:e.red("invalid"),value:e.blue},diffGutters:{actual:` ${e.green("-")} `,expected:` ${e.red("+")} `,padding:" "},error:{ctor:{open:`${e.gray.open}(`,close:`)${e.gray.close}`},name:e.magenta},function:{name:e.blue,stringTag:e.magenta},global:e.magenta,item:{after:e.gray(",")},list:{openBracket:e.gray("["),closeBracket:e.gray("]")},mapEntry:{after:e.gray(",")},maxDepth:e.gray("…"),null:e.yellow,number:e.yellow,object:{openBracket:e.gray("{"),closeBracket:e.gray("}"),ctor:e.magenta,stringTag:{open:`${e.magenta.open}@`,close:e.magenta.close},secondaryStringTag:{open:`${e.gray.open}@`,close:e.gray.close}},property:{after:e.gray(","),keyBracket:{open:e.gray("["),close:e.gray("]")},valueFallback:e.gray("…")},regexp:{source:{open:`${e.blue.open}/`,close:`/${e.blue.close}`},flags:e.yellow},stats:{separator:e.gray("---")},string:{open:e.blue.open,close:e.blue.close,line:{open:e.blue("'"),close:e.blue("'")},multiline:{start:e.blue("`"),end:e.blue("`")},controlPicture:e.gray,diff:{insert:{open:e.bgGreen.open+e.black.open,close:e.black.close+e.bgGreen.close},delete:{open:e.bgRed.open+e.black.open,close:e.black.close+e.bgRed.close},equal:e.blue,insertLine:{open:e.green.open,close:e.green.close},deleteLine:{open:e.red.open,close:e.red.close}}},symbol:e.yellow,typedArray:{bytes:e.yellow},undefined:e.yellow}}function aW(e,t,n){return sW.diff(t,e,n)}function uW(e,t,n={}){const i=oW(),o=aW(e,t,{theme:i}),{showLegend:a=!0}=n,c={"+":0,"-":0},h=xE(),d=i.diffGutters.actual,p=` ${h.green("+")}`;if(o.split(/\r?\n/g).forEach(m=>{m.startsWith(d)?c["+"]++:m.startsWith(p)&&c["-"]++}),c["+"]===0&&c["-"]===0)return"";let y="";return a&&(y=` ${h.green(`- Expected - ${c["-"]}`)}
11
+ ${h.red(`+ Received + ${c["+"]}`)}
12
+
13
+ `),y+o.replace(/␊\s*$/mg,"")}function D0(e){return e.type==="test"||e.type==="custom"}function T_(e){return AE(e).flatMap(t=>D0(t)?[t]:t.tasks.flatMap(n=>D0(n)?[n]:T_(n)))}function Vv(e=[]){return AE(e).flatMap(t=>D0(t)?[t]:[t,...Vv(t.tasks)])}function lW(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 Hh(e){return T_(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 cW(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:a=10,reactive:c=E=>E,WebSocketConstructor:h=globalThis.WebSocket}=t;let d=a;const p=c({ws:new h(e),state:new DE,waitForConnection:C,reconnect:$});p.state.filesMap=c(p.state.filesMap),p.state.idMap=c(p.state.idMap);let g;const y={onPathsCollected(E){var S;p.state.collectPaths(E),(S=n.onPathsCollected)==null||S.call(n,E)},onCollected(E){var S;p.state.collectFiles(E),(S=n.onCollected)==null||S.call(n,E)},onTaskUpdate(E){var S;p.state.updateTasks(E),(S=n.onTaskUpdate)==null||S.call(n,E)},onUserConsoleLog(E){p.state.updateUserLog(E)},onFinished(E){var S;(S=n.onFinished)==null||S.call(n,E)},onCancel(E){var S;(S=n.onCancel)==null||S.call(n,E)}},m={post:E=>p.ws.send(E),on:E=>g=E,serialize:C3,deserialize:n0};p.rpc=m3(y,m);let w;function $(E=!1){E&&(d=a),p.ws=new h(e),L()}function L(){w=new Promise(E=>{p.ws.addEventListener("open",()=>{d=a,E()})}),p.ws.addEventListener("message",E=>{g(E.data)}),p.ws.addEventListener("close",()=>{d-=1,i&&d>0&&setTimeout($,o)})}L();function C(){return w}return p}const fW=location.port,hW=[location.hostname,fW].filter(Boolean).join(":"),dW=`${location.protocol==="https:"?"wss:":"ws:"}//${hW}/__vitest_api__`,Yr=!!window.METADATA_PATH,pW=Yr?"./":"/__vitest__/";function Wv(e){return HA()?(F$(e),!0):!1}function $i(e){return typeof e=="function"?e():Q(e)}const gW=typeof window<"u",vW=e=>typeof e<"u",eo=()=>{};function Gv(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 k_=e=>e();function L_(e,t={}){let n,i,o=eo;const a=h=>{clearTimeout(h),o(),o=eo};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 mW(e,t=!0,n=!0,i=!1){let o=0,a,c=!0,h=eo,d;const p=()=>{a&&(clearTimeout(a),a=void 0,h(),h=eo)};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,C)=>{h=i?C: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 yW(e=k_){const t=Ke(!0);function n(){t.value=!1}function i(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:Jf(t),pause:n,resume:i,eventFilter:o}}function B_(...e){if(e.length!==1)return eh(...e);const t=e[0];return typeof t=="function"?Jf(oT(()=>({get:t,set:eo}))):Ke(t)}function OD(e,t=200,n={}){return Gv(L_(t,n),e)}function bW(e,t=200,n=!1,i=!0,o=!1){return Gv(mW(t,n,i,o),e)}function wW(e,t=200,n=!0,i=!0){if(t<=0)return e;const o=Ke(e.value),a=bW(()=>{o.value=e.value},t,n,i);return Vt(e,()=>a()),o}function O_(e,t=!0){rl()?_a(e):t?e():Ci(e)}function DW(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 PD=Object.getOwnPropertySymbols,AW=Object.prototype.hasOwnProperty,xW=Object.prototype.propertyIsEnumerable,EW=(e,t)=>{var n={};for(var i in e)AW.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&PD)for(var i of PD(e))t.indexOf(i)<0&&xW.call(e,i)&&(n[i]=e[i]);return n};function P_(e,t,n={}){const i=n,{eventFilter:o=k_}=i,a=EW(i,["eventFilter"]);return Vt(e,Gv(o,t),a)}var CW=Object.defineProperty,_W=Object.defineProperties,SW=Object.getOwnPropertyDescriptors,Bf=Object.getOwnPropertySymbols,N_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,ND=(e,t,n)=>t in e?CW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FW=(e,t)=>{for(var n in t||(t={}))N_.call(t,n)&&ND(e,n,t[n]);if(Bf)for(var n of Bf(t))I_.call(t,n)&&ND(e,n,t[n]);return e},$W=(e,t)=>_W(e,SW(t)),TW=(e,t)=>{var n={};for(var i in e)N_.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&&I_.call(e,i)&&(n[i]=e[i]);return n};function kW(e,t,n={}){const i=n,{debounce:o=0,maxWait:a=void 0}=i,c=TW(i,["debounce","maxWait"]);return P_(e,t,$W(FW({},c),{eventFilter:L_(o,{maxWait:a})}))}function LW(e,t,n){const i=Vt(e,(...o)=>(Ci(()=>i()),t(...o)),n)}var BW=Object.defineProperty,OW=Object.defineProperties,PW=Object.getOwnPropertyDescriptors,Of=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,M_=Object.prototype.propertyIsEnumerable,ID=(e,t,n)=>t in e?BW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NW=(e,t)=>{for(var n in t||(t={}))R_.call(t,n)&&ID(e,n,t[n]);if(Of)for(var n of Of(t))M_.call(t,n)&&ID(e,n,t[n]);return e},IW=(e,t)=>OW(e,PW(t)),RW=(e,t)=>{var n={};for(var i in e)R_.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&&M_.call(e,i)&&(n[i]=e[i]);return n};function z_(e,t,n={}){const i=n,{eventFilter:o}=i,a=RW(i,["eventFilter"]),{eventFilter:c,pause:h,resume:d,isActive:p}=yW(o);return{stop:P_(e,t,IW(NW({},a),{eventFilter:c})),pause:h,resume:d,isActive:p}}function MW(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=eo}=i,d=Ke(!o),p=c?Ca(t):Ke(t);let g=0;return ng(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=gW?window:void 0;function ba(...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 eo;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 Wv(p),p}function zW(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function UW(...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=zW(t);return ba(o,a,g=>{g.repeat&&$i(h)||d(g)&&n(g)},c)}function qW(){const e=Ke(!1);return rl()&&_a(()=>{e.value=!0}),e}function U_(e){const t=qW();return xe(()=>(t.value,!!e()))}function q_(e,t={}){const{window:n=Ti}=t,i=U_(()=>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(B_(e).value),a.value=!!(o!=null&&o.matches),o&&("addEventListener"in o?o.addEventListener("change",h):o.addListener(h)))};return ng(h),Wv(()=>c()),a}function HW(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__",jW=VW();function VW(){return Uc in zc||(zc[Uc]=zc[Uc]||{}),zc[Uc]}function H_(e,t){return jW[e]||t}function WW(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 GW=Object.defineProperty,RD=Object.getOwnPropertySymbols,KW=Object.prototype.hasOwnProperty,XW=Object.prototype.propertyIsEnumerable,MD=(e,t,n)=>t in e?GW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zD=(e,t)=>{for(var n in t||(t={}))KW.call(t,n)&&MD(e,n,t[n]);if(RD)for(var n of RD(t))XW.call(t,n)&&MD(e,n,t[n]);return e};const QW={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()}},UD="vueuse-storage";function YW(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?Ca:Ke)(t);if(!n)try{n=H_("getDefaultStorage",()=>{var j;return(j=Ti)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!n)return $;const L=$i(t),C=WW(L),E=(o=i.serializer)!=null?o:QW[C],{pause:S,resume:O}=z_($,()=>B($.value),{flush:a,deep:c,eventFilter:m});return y&&h&&(ba(y,"storage",U),ba(y,UD,M)),U(),$;function B(j){try{if(j==null)n.removeItem(e);else{const ne=E.write(j),oe=n.getItem(e);oe!==ne&&(n.setItem(e,ne),y&&y.dispatchEvent(new CustomEvent(UD,{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,E.write(L)),L;if(!j&&p){const oe=E.read(ne);return typeof p=="function"?p(oe,L):C==="object"&&!Array.isArray(oe)?zD(zD({},L),oe):oe}else return typeof ne!="string"?ne:E.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 ZW(e){return q_("(prefers-color-scheme: dark)",e)}var JW=Object.defineProperty,qD=Object.getOwnPropertySymbols,eG=Object.prototype.hasOwnProperty,tG=Object.prototype.propertyIsEnumerable,HD=(e,t,n)=>t in e?JW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nG=(e,t)=>{for(var n in t||(t={}))eG.call(t,n)&&HD(e,n,t[n]);if(qD)for(var n of qD(t))tG.call(t,n)&&HD(e,n,t[n]);return e};function rG(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=nG({auto:"",light:"light",dark:"dark"},e.modes||{}),m=ZW({window:o}),w=xe(()=>m.value?"dark":"light"),$=d||(c==null?B_(i):YW(c,i,a,{window:o,listenToStorageChanges:h})),L=xe(()=>$.value==="auto"?w.value:$.value),C=H_("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 E(B){var k;C(t,n,(k=y[B])!=null?k:B)}function S(B){e.onChanged?e.onChanged(B,E):E(B)}Vt(L,S,{flush:"post",immediate:!0}),O_(()=>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 iG=Object.defineProperty,sG=Object.defineProperties,oG=Object.getOwnPropertyDescriptors,jD=Object.getOwnPropertySymbols,aG=Object.prototype.hasOwnProperty,uG=Object.prototype.propertyIsEnumerable,VD=(e,t,n)=>t in e?iG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lG=(e,t)=>{for(var n in t||(t={}))aG.call(t,n)&&VD(e,n,t[n]);if(jD)for(var n of jD(t))uG.call(t,n)&&VD(e,n,t[n]);return e},cG=(e,t)=>sG(e,oG(t));function fG(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=rG(cG(lG({},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 WD=Object.getOwnPropertySymbols,hG=Object.prototype.hasOwnProperty,dG=Object.prototype.propertyIsEnumerable,pG=(e,t)=>{var n={};for(var i in e)hG.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&WD)for(var i of WD(e))t.indexOf(i)<0&&dG.call(e,i)&&(n[i]=e[i]);return n};function gG(e,t,n={}){const i=n,{window:o=Ti}=i,a=pG(i,["window"]);let c;const h=U_(()=>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 Wv(y),{isSupported:h,stop:y}}function vG(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 E=c.location.hash||"",S=E.indexOf("?");return S>0?E.slice(S):""}else return(c.location.hash||"").replace(/^#/,"")}function p(E){const S=E.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(E){const S=new Set(Object.keys(h));for(const O of E.keys()){const B=E.getAll(O);h[O]=B.length>1?B:E.get(O)||"",S.delete(O)}Array.from(S).forEach(O=>delete h[O])}const{pause:m,resume:w}=z_(h,()=>{const E=new URLSearchParams("");Object.keys(h).forEach(S=>{const O=h[S];Array.isArray(O)?O.forEach(B=>E.append(S,B)):i&&O==null||o&&!O?E.delete(S):E.set(S,O)}),$(E)},{deep:!0});function $(E,S){m(),S&&y(E),c.history.replaceState(c.history.state,c.document.title,c.location.pathname+p(E)),w()}function L(){a&&$(g(),!0)}ba(c,"popstate",L,!1),e!=="history"&&ba(c,"hashchange",L,!1);const C=g();return C.keys().next().value?y(C):Object.assign(h,n),h}function mG(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 C=O=>h?typeof h=="function"?h(O):HW(O):O,E=()=>vW(e[t])?C(e[t]):y,S=O=>{m?m(O)&&$(L,O):$(L,O)};if(d){const O=E(),B=Ke(O);return Vt(()=>e[t],k=>B.value=C(k)),Vt(B,k=>{(k!==e[t]||g)&&S(k)},{deep:g}),B}else return xe({get(){return E()},set(O){S(O)}})}function yG(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(),O_(d),ba("resize",d,{passive:!0}),o){const p=q_("(orientation: portrait)");Vt(p,()=>d())}return{width:c,height:h}}const j_=vG("hash-params",{initialValue:{file:"",view:null}}),Vr=eh(j_,"file"),zr=eh(j_,"view");var Qn=Uint8Array,js=Uint16Array,V_=Uint32Array,W_=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]),G_=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]),bG=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),K_=function(e,t){for(var n=new js(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new V_(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]},X_=K_(W_,2),Q_=X_[0],wG=X_[1];Q_[28]=258,wG[258]=28;var DG=K_(G_,0),AG=DG[0],A0=new js(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,A0[_t]=((Ji&65280)>>>8|(Ji&255)<<8)>>>1}var Nu=function(e,t,n){for(var i=e.length,o=0,a=new js(t);o<i;++o)e[o]&&++a[e[o]-1];var c=new js(t);for(o=0;o<t;++o)c[o]=c[o-1]+a[o-1]<<1;var h;if(n){h=new js(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[A0[y]>>>d]=p}else for(h=new js(i),o=0;o<i;++o)e[o]&&(h[o]=A0[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 Y_=new Qn(32);for(var _t=0;_t<32;++_t)Y_[_t]=5;var xG=Nu($l,9,1),EG=Nu(Y_,5,1),Ap=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},xp=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},CG=function(e){return(e+7)/8|0},Z_=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?js:e.BYTES_PER_ELEMENT==4?V_:Qn)(n-t);return i.set(e.subarray(t,n)),i},_G=["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||_G[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,or),!n)throw i;return i},Kv=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=xG,y=EG,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[bG[j]]=mr(e,d+j*3,7);d+=B*3;for(var ne=Ap(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 C=z>>>4;if(C<16)M[j++]=C;else{var P=0,F=0;for(C==16?(F=3+mr(e,d,3),d+=2,P=M[j-1]):C==17?(F=3+mr(e,d,7),d+=3):C==18&&(F=11+mr(e,d,127),d+=7);F--;)M[j++]=P}}var D=M.subarray(0,O),R=M.subarray(O);m=Ap(D),w=Ap(R),g=Nu(D,m,1),y=Nu(R,w,1)}else or(1);else{var C=CG(d)+4,E=e[C-4]|e[C-3]<<8,S=C+E;if(S>i){a&&or(0);break}o&&c(p+E),t.set(e.subarray(C,S),p),n.b=p+=E,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[xp(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=W_[j];$e=mr(e,d,(1<<_e)-1)+Q_[j],d+=_e}var ze=y[xp(e,d)&Z],Xe=ze>>>4;ze||or(3),d+=ze&15;var R=AG[Xe];if(Xe>3){var _e=G_[Xe];R+=xp(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:Z_(t,0,p)},SG=new Qn(0),FG=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)},$G=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},TG=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 kG(e,t){return Kv(e,t)}function LG(e,t){return Kv(e.subarray(FG(e),-8),t||new Qn($G(e)))}function BG(e,t){return Kv((TG(e),e.subarray(2,-4)),t)}function OG(e,t){return e[0]==31&&e[1]==139&&e[2]==8?LG(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?kG(e,t):BG(e,t)}var x0=typeof TextDecoder<"u"&&new TextDecoder,PG=0;try{x0.decode(SG,{stream:!0}),PG=1}catch{}var NG=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,Z_(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 IG(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(x0)return x0.decode(e);var o=NG(e),a=o[0],c=o[1];return c.length&&or(8),a}}const GD=()=>{},es=()=>Promise.resolve();function RG(){const e=Zn({state:new DE,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:GD,onCollected:es,onTaskUpdate:GD,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),d=((g=h.headers.get("content-type"))==null?void 0:g.toLowerCase())||"";if(d.includes("application/gzip")||d.includes("application/x-gzip")){const y=new Uint8Array(await h.arrayBuffer()),m=IG(OG(y));t=n0(m)}else t=n0(await h.text());const p=new Event("open");e.ws.dispatchEvent(p)}a();function c(){return i}return e}const Xu=Ke("idle"),sn=function(){return Yr?RG():cW(dW,{reactive:Zn,handlers:{onTaskUpdate(){Xu.value="running"},onFinished(){Xu.value="idle"}}})}(),Tl=Ca({}),Vs=Ke("CONNECTING"),Hn=xe(()=>sn.state.getFiles()),Pt=xe(()=>Hn.value.find(e=>e.id===Vr.value)),J_=xe(()=>Vv(Pt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function Nf(e){return Hn.value.find(t=>t.id===e)}const MG=xe(()=>Vs.value==="OPEN"),Ep=xe(()=>Vs.value==="CONNECTING");xe(()=>Vs.value==="CLOSED");function KD(e=sn.state.getFiles()){return eS(e)}function eS(e){return e.forEach(t=>{delete t.result,Vv(t).forEach(n=>delete n.result)}),sn.rpc.rerun(e.map(t=>t.filepath))}function zG(){if(Pt.value)return eS([Pt.value])}Vt(()=>sn.ws,e=>{Vs.value=Yr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Vs.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(()=>{Vs.value==="CONNECTING"&&(Vs.value="CLOSED")},1e3)})},{immediate:!0});const UG={"text-2xl":""},qG=pe("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),HG=rt({__name:"ConnectionOverlay",setup(e){return(t,n)=>Q(MG)?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(Ep)?"animate-pulse":"")},[pe("div",{text:"5xl",class:yt(Q(Ep)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),pe("div",UG,Je(Q(Ep)?"Connecting...":"Disconnected"),1),qG],2)]))}});var tS={},xi={};const 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="⍼",qK="Ą",HK="ą",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="ℶ",qX="≬",HX="𝔅",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="╧",qQ="╨",HQ="╩",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="⩇",qY="⩀",HY="ⅅ",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="’",qZ="♣",HZ="♣",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="⤼",qJ="⋞",HJ="⋟",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="♦",qee="¨",Hee="ⅆ",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="⥗",qte="⇁",Hte="↧",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="ē",qne="∅",Hne="∅",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="Ë",Pre="ë",Nre="€",Ire="!",Rre="∃",Mre="∃",zre="ℰ",Ure="ⅇ",qre="ⅇ",Hre="≒",jre="Ф",Vre="ф",Wre="♀",Gre="ffi",Kre="ff",Xre="ffl",Qre="𝔉",Yre="𝔣",Zre="fi",Jre="◼",eie="▪",tie="fj",nie="♭",rie="fl",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="Ģ",qie="Ĝ",Hie="ĝ",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="⪐",qse="⪧",Hse="⩺",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="≎",qoe="≏",Hoe="⁃",joe="‐",Voe="Í",Woe="í",Goe="⁣",Koe="Î",Xoe="î",Qoe="И",Yoe="и",Zoe="İ",Joe="Е",eae="е",tae="¡",nae="⇔",rae="𝔦",iae="ℑ",sae="Ì",oae="ì",aae="ⅈ",uae="⨌",lae="∭",cae="⧜",fae="℩",hae="IJ",dae="ij",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="ё",qae="Į",Hae="į",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="𝕜",que="𝒦",Hue="𝓀",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="↲",qle="≤",Hle="≦",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="⪋",qce="⋚",Hce="≦",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="↬",qfe="⦅",Hfe="𝕃",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="✠",qhe="✠",Hhe="↦",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="ℳ",Cde="∾",_de="Μ",Sde="μ",Fde="⊸",$de="⊸",Tde="∇",kde="Ń",Lde="ń",Bde="∠⃒",Ode="≉",Pde="⩰̸",Nde="≋̸",Ide="ʼn",Rde="≉",Mde="♮",zde="ℕ",Ude="♮",qde=" ",Hde="≎̸",jde="≏̸",Vde="⩃",Wde="Ň",Gde="ň",Kde="Ņ",Xde="ņ",Qde="≇",Yde="⩭̸",Zde="⩂",Jde="Н",epe="н",tpe="–",npe="⤤",rpe="↗",ipe="⇗",spe="↗",ope="≠",ape="≐̸",upe="​",lpe="​",cpe="​",fpe="​",hpe="≢",dpe="⤨",ppe="≂̸",gpe="≫",vpe="≪",mpe=`
14
+ `,ype="∄",bpe="∄",wpe="𝔑",Dpe="𝔫",Ape="≧̸",xpe="≱",Epe="≱",Cpe="≧̸",_pe="⩾̸",Spe="⩾̸",Fpe="⋙̸",$pe="≵",Tpe="≫⃒",kpe="≯",Lpe="≯",Bpe="≫̸",Ope="↮",Ppe="⇎",Npe="⫲",Ipe="∋",Rpe="⋼",Mpe="⋺",zpe="∋",Upe="Њ",qpe="њ",Hpe="↚",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="⋬",q0e="≮",H0e="≰",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="⋭",qge="⊁",Hge="⋡",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="⊴⃒",qve="⤃",Hve="⊵⃒",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="⊕",qme="↻",Hme="⩔",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="⋔",qye="ϖ",Hye="ℏ",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="∝",q1e="≾",H1e="⊰",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="⤏",qbe="⤐",Hbe="❳",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="⇂",qwe="⌋",Hwe="⇁",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="⊵",qDe="▸",HDe="⧎",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="↑",qAe="­",HAe="Σ",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="⊑",qxe="⊐",Hxe="⊒",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="∑",qEe="♪",HEe="¹",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="Θ",qCe="θ",HCe="ϑ",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="ћ",q_e="Ŧ",H_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="⇅",qSe="↕",HSe="↕",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="⫫",qFe="⫩",HFe="В",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="𝒲",q2e="𝓌",H2e="⋂",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="ž",q$e="З",H$e="з",j$e="Ż",V$e="ż",W$e="ℨ",G$e="​",K$e="Ζ",X$e="ζ",Q$e="𝔷",Y$e="ℨ",Z$e="Ж",J$e="ж",eTe="⇝",tTe="𝕫",nTe="ℤ",rTe="𝒵",iTe="𝓏",sTe="‍",oTe="‌",nS={Aacute:jG,aacute:VG,Abreve:WG,abreve:GG,ac:KG,acd:XG,acE:QG,Acirc:YG,acirc:ZG,acute:JG,Acy:eK,acy:tK,AElig:nK,aelig:rK,af:iK,Afr:sK,afr:oK,Agrave:aK,agrave:uK,alefsym:lK,aleph:cK,Alpha:fK,alpha:hK,Amacr:dK,amacr:pK,amalg:gK,amp:vK,AMP:mK,andand:yK,And:bK,and:wK,andd:DK,andslope:AK,andv:xK,ang:EK,ange:CK,angle:_K,angmsdaa:SK,angmsdab:FK,angmsdac:$K,angmsdad:TK,angmsdae:kK,angmsdaf:LK,angmsdag:BK,angmsdah:OK,angmsd:PK,angrt:NK,angrtvb:IK,angrtvbd:RK,angsph:MK,angst:zK,angzarr:UK,Aogon:qK,aogon:HK,Aopf:jK,aopf:VK,apacir:WK,ap:GK,apE:KK,ape:XK,apid:QK,apos:YK,ApplyFunction:ZK,approx:JK,approxeq:eX,Aring:tX,aring:nX,Ascr:rX,ascr:iX,Assign:sX,ast:oX,asymp:aX,asympeq:uX,Atilde:lX,atilde:cX,Auml:fX,auml:hX,awconint:dX,awint:pX,backcong:gX,backepsilon:vX,backprime:mX,backsim:yX,backsimeq:bX,Backslash:wX,Barv:DX,barvee:AX,barwed:xX,Barwed:EX,barwedge:CX,bbrk:_X,bbrktbrk:SX,bcong:FX,Bcy:$X,bcy:TX,bdquo:kX,becaus:LX,because:BX,Because:OX,bemptyv:PX,bepsi:NX,bernou:IX,Bernoullis:RX,Beta:MX,beta:zX,beth:UX,between:qX,Bfr:HX,bfr:jX,bigcap:VX,bigcirc:WX,bigcup:GX,bigodot:KX,bigoplus:XX,bigotimes:QX,bigsqcup:YX,bigstar:ZX,bigtriangledown:JX,bigtriangleup:eQ,biguplus:tQ,bigvee:nQ,bigwedge:rQ,bkarow:iQ,blacklozenge:sQ,blacksquare:oQ,blacktriangle:aQ,blacktriangledown:uQ,blacktriangleleft:lQ,blacktriangleright:cQ,blank:fQ,blk12:hQ,blk14:dQ,blk34:pQ,block:gQ,bne:vQ,bnequiv:mQ,bNot:yQ,bnot:bQ,Bopf:wQ,bopf:DQ,bot:AQ,bottom:xQ,bowtie:EQ,boxbox:CQ,boxdl:_Q,boxdL:SQ,boxDl:FQ,boxDL:$Q,boxdr:TQ,boxdR:kQ,boxDr:LQ,boxDR:BQ,boxh:OQ,boxH:PQ,boxhd:NQ,boxHd:IQ,boxhD:RQ,boxHD:MQ,boxhu:zQ,boxHu:UQ,boxhU:qQ,boxHU:HQ,boxminus:jQ,boxplus:VQ,boxtimes:WQ,boxul:GQ,boxuL:KQ,boxUl:XQ,boxUL:QQ,boxur:YQ,boxuR:ZQ,boxUr:JQ,boxUR:eY,boxv:tY,boxV:nY,boxvh:rY,boxvH:iY,boxVh:sY,boxVH:oY,boxvl:aY,boxvL:uY,boxVl:lY,boxVL:cY,boxvr:fY,boxvR:hY,boxVr:dY,boxVR:pY,bprime:gY,breve:vY,Breve:mY,brvbar:yY,bscr:bY,Bscr:wY,bsemi:DY,bsim:AY,bsime:xY,bsolb:EY,bsol:CY,bsolhsub:_Y,bull:SY,bullet:FY,bump:$Y,bumpE:TY,bumpe:kY,Bumpeq:LY,bumpeq:BY,Cacute:OY,cacute:PY,capand:NY,capbrcup:IY,capcap:RY,cap:MY,Cap:zY,capcup:UY,capdot:qY,CapitalDifferentialD:HY,caps:jY,caret:VY,caron:WY,Cayleys:GY,ccaps:KY,Ccaron:XY,ccaron:QY,Ccedil:YY,ccedil:ZY,Ccirc:JY,ccirc:eZ,Cconint:tZ,ccups:nZ,ccupssm:rZ,Cdot:iZ,cdot:sZ,cedil:oZ,Cedilla:aZ,cemptyv:uZ,cent:lZ,centerdot:cZ,CenterDot:fZ,cfr:hZ,Cfr:dZ,CHcy:pZ,chcy:gZ,check:vZ,checkmark:mZ,Chi:yZ,chi:bZ,circ:wZ,circeq:DZ,circlearrowleft:AZ,circlearrowright:xZ,circledast:EZ,circledcirc:CZ,circleddash:_Z,CircleDot:SZ,circledR:FZ,circledS:$Z,CircleMinus:TZ,CirclePlus:kZ,CircleTimes:LZ,cir:BZ,cirE:OZ,cire:PZ,cirfnint:NZ,cirmid:IZ,cirscir:RZ,ClockwiseContourIntegral:MZ,CloseCurlyDoubleQuote:zZ,CloseCurlyQuote:UZ,clubs:qZ,clubsuit:HZ,colon:jZ,Colon:VZ,Colone:WZ,colone:GZ,coloneq:KZ,comma:XZ,commat:QZ,comp:YZ,compfn:ZZ,complement:JZ,complexes:eJ,cong:tJ,congdot:nJ,Congruent:rJ,conint:iJ,Conint:sJ,ContourIntegral:oJ,copf:aJ,Copf:uJ,coprod:lJ,Coproduct:cJ,copy:fJ,COPY:hJ,copysr:dJ,CounterClockwiseContourIntegral:pJ,crarr:gJ,cross:vJ,Cross:mJ,Cscr:yJ,cscr:bJ,csub:wJ,csube:DJ,csup:AJ,csupe:xJ,ctdot:EJ,cudarrl:CJ,cudarrr:_J,cuepr:SJ,cuesc:FJ,cularr:$J,cularrp:TJ,cupbrcap:kJ,cupcap:LJ,CupCap:BJ,cup:OJ,Cup:PJ,cupcup:NJ,cupdot:IJ,cupor:RJ,cups:MJ,curarr:zJ,curarrm:UJ,curlyeqprec:qJ,curlyeqsucc:HJ,curlyvee:jJ,curlywedge:VJ,curren:WJ,curvearrowleft:GJ,curvearrowright:KJ,cuvee:XJ,cuwed:QJ,cwconint:YJ,cwint:ZJ,cylcty:JJ,dagger:eee,Dagger:tee,daleth:nee,darr:ree,Darr:iee,dArr:see,dash:oee,Dashv:aee,dashv:uee,dbkarow:lee,dblac:cee,Dcaron:fee,dcaron:hee,Dcy:dee,dcy:pee,ddagger:gee,ddarr:vee,DD:mee,dd:yee,DDotrahd:bee,ddotseq:wee,deg:Dee,Del:Aee,Delta:xee,delta:Eee,demptyv:Cee,dfisht:_ee,Dfr:See,dfr:Fee,dHar:$ee,dharl:Tee,dharr:kee,DiacriticalAcute:Lee,DiacriticalDot:Bee,DiacriticalDoubleAcute:Oee,DiacriticalGrave:Pee,DiacriticalTilde:Nee,diam:Iee,diamond:Ree,Diamond:Mee,diamondsuit:zee,diams:Uee,die:qee,DifferentialD:Hee,digamma:jee,disin:Vee,div:Wee,divide:Gee,divideontimes:Kee,divonx:Xee,DJcy:Qee,djcy:Yee,dlcorn:Zee,dlcrop:Jee,dollar:ete,Dopf:tte,dopf:nte,Dot:rte,dot:ite,DotDot:ste,doteq:ote,doteqdot:ate,DotEqual:ute,dotminus:lte,dotplus:cte,dotsquare:fte,doublebarwedge:hte,DoubleContourIntegral:dte,DoubleDot:pte,DoubleDownArrow:gte,DoubleLeftArrow:vte,DoubleLeftRightArrow:mte,DoubleLeftTee:yte,DoubleLongLeftArrow:bte,DoubleLongLeftRightArrow:wte,DoubleLongRightArrow:Dte,DoubleRightArrow:Ate,DoubleRightTee:xte,DoubleUpArrow:Ete,DoubleUpDownArrow:Cte,DoubleVerticalBar:_te,DownArrowBar:Ste,downarrow:Fte,DownArrow:$te,Downarrow:Tte,DownArrowUpArrow:kte,DownBreve:Lte,downdownarrows:Bte,downharpoonleft:Ote,downharpoonright:Pte,DownLeftRightVector:Nte,DownLeftTeeVector:Ite,DownLeftVectorBar:Rte,DownLeftVector:Mte,DownRightTeeVector:zte,DownRightVectorBar:Ute,DownRightVector:qte,DownTeeArrow:Hte,DownTee:jte,drbkarow:Vte,drcorn:Wte,drcrop:Gte,Dscr:Kte,dscr:Xte,DScy:Qte,dscy:Yte,dsol:Zte,Dstrok:Jte,dstrok:ene,dtdot:tne,dtri:nne,dtrif:rne,duarr:ine,duhar:sne,dwangle:one,DZcy:ane,dzcy:une,dzigrarr:lne,Eacute:cne,eacute:fne,easter:hne,Ecaron:dne,ecaron:pne,Ecirc:gne,ecirc:vne,ecir:mne,ecolon:yne,Ecy:bne,ecy:wne,eDDot:Dne,Edot:Ane,edot:xne,eDot:Ene,ee:Cne,efDot:_ne,Efr:Sne,efr:Fne,eg:$ne,Egrave:Tne,egrave:kne,egs:Lne,egsdot:Bne,el:One,Element:Pne,elinters:Nne,ell:Ine,els:Rne,elsdot:Mne,Emacr:zne,emacr:Une,empty:qne,emptyset:Hne,EmptySmallSquare:jne,emptyv:Vne,EmptyVerySmallSquare:Wne,emsp13:Gne,emsp14:Kne,emsp:Xne,ENG:Qne,eng:Yne,ensp:Zne,Eogon:Jne,eogon:ere,Eopf:tre,eopf:nre,epar:rre,eparsl:ire,eplus:sre,epsi:ore,Epsilon:are,epsilon:ure,epsiv:lre,eqcirc:cre,eqcolon:fre,eqsim:hre,eqslantgtr:dre,eqslantless:pre,Equal:gre,equals:vre,EqualTilde:mre,equest:yre,Equilibrium:bre,equiv:wre,equivDD:Dre,eqvparsl:Are,erarr:xre,erDot:Ere,escr:Cre,Escr:_re,esdot:Sre,Esim:Fre,esim:$re,Eta:Tre,eta:kre,ETH:Lre,eth:Bre,Euml:Ore,euml:Pre,euro:Nre,excl:Ire,exist:Rre,Exists:Mre,expectation:zre,exponentiale:Ure,ExponentialE:qre,fallingdotseq:Hre,Fcy:jre,fcy:Vre,female:Wre,ffilig:Gre,fflig:Kre,ffllig:Xre,Ffr:Qre,ffr:Yre,filig:Zre,FilledSmallSquare:Jre,FilledVerySmallSquare:eie,fjlig:tie,flat:nie,fllig:rie,fltns:iie,fnof:sie,Fopf:oie,fopf:aie,forall:uie,ForAll:lie,fork:cie,forkv:fie,Fouriertrf:hie,fpartint:die,frac12:pie,frac13:gie,frac14:vie,frac15:mie,frac16:yie,frac18:bie,frac23:wie,frac25:Die,frac34:Aie,frac35:xie,frac38:Eie,frac45:Cie,frac56:_ie,frac58:Sie,frac78:Fie,frasl:$ie,frown:Tie,fscr:kie,Fscr:Lie,gacute:Bie,Gamma:Oie,gamma:Pie,Gammad:Nie,gammad:Iie,gap:Rie,Gbreve:Mie,gbreve:zie,Gcedil:Uie,Gcirc:qie,gcirc:Hie,Gcy:jie,gcy:Vie,Gdot:Wie,gdot:Gie,ge:Kie,gE:Xie,gEl:Qie,gel:Yie,geq:Zie,geqq:Jie,geqslant:ese,gescc:tse,ges:nse,gesdot:rse,gesdoto:ise,gesdotol:sse,gesl:ose,gesles:ase,Gfr:use,gfr:lse,gg:cse,Gg:fse,ggg:hse,gimel:dse,GJcy:pse,gjcy:gse,gla:vse,gl:mse,glE:yse,glj:bse,gnap:wse,gnapprox:Dse,gne:Ase,gnE:xse,gneq:Ese,gneqq:Cse,gnsim:_se,Gopf:Sse,gopf:Fse,grave:$se,GreaterEqual:Tse,GreaterEqualLess:kse,GreaterFullEqual:Lse,GreaterGreater:Bse,GreaterLess:Ose,GreaterSlantEqual:Pse,GreaterTilde:Nse,Gscr:Ise,gscr:Rse,gsim:Mse,gsime:zse,gsiml:Use,gtcc:qse,gtcir:Hse,gt:jse,GT:Vse,Gt:Wse,gtdot:Gse,gtlPar:Kse,gtquest:Xse,gtrapprox:Qse,gtrarr:Yse,gtrdot:Zse,gtreqless:Jse,gtreqqless:eoe,gtrless:toe,gtrsim:noe,gvertneqq:roe,gvnE:ioe,Hacek:soe,hairsp:ooe,half:aoe,hamilt:uoe,HARDcy:loe,hardcy:coe,harrcir:foe,harr:hoe,hArr:doe,harrw:poe,Hat:goe,hbar:voe,Hcirc:moe,hcirc:yoe,hearts:boe,heartsuit:woe,hellip:Doe,hercon:Aoe,hfr:xoe,Hfr:Eoe,HilbertSpace:Coe,hksearow:_oe,hkswarow:Soe,hoarr:Foe,homtht:$oe,hookleftarrow:Toe,hookrightarrow:koe,hopf:Loe,Hopf:Boe,horbar:Ooe,HorizontalLine:Poe,hscr:Noe,Hscr:Ioe,hslash:Roe,Hstrok:Moe,hstrok:zoe,HumpDownHump:Uoe,HumpEqual:qoe,hybull:Hoe,hyphen:joe,Iacute:Voe,iacute:Woe,ic:Goe,Icirc:Koe,icirc:Xoe,Icy:Qoe,icy:Yoe,Idot:Zoe,IEcy:Joe,iecy:eae,iexcl:tae,iff:nae,ifr:rae,Ifr:iae,Igrave:sae,igrave:oae,ii:aae,iiiint:uae,iiint:lae,iinfin:cae,iiota:fae,IJlig:hae,ijlig:dae,Imacr:pae,imacr:gae,image:vae,ImaginaryI:mae,imagline:yae,imagpart:bae,imath:wae,Im:Dae,imof:Aae,imped:xae,Implies:Eae,incare:Cae,in:"∈",infin:_ae,infintie:Sae,inodot:Fae,intcal:$ae,int:Tae,Int:kae,integers:Lae,Integral:Bae,intercal:Oae,Intersection:Pae,intlarhk:Nae,intprod:Iae,InvisibleComma:Rae,InvisibleTimes:Mae,IOcy:zae,iocy:Uae,Iogon:qae,iogon:Hae,Iopf:jae,iopf:Vae,Iota:Wae,iota:Gae,iprod:Kae,iquest:Xae,iscr:Qae,Iscr:Yae,isin:Zae,isindot:Jae,isinE:eue,isins:tue,isinsv:nue,isinv:rue,it:iue,Itilde:sue,itilde:oue,Iukcy:aue,iukcy:uue,Iuml:lue,iuml:cue,Jcirc:fue,jcirc:hue,Jcy:due,jcy:pue,Jfr:gue,jfr:vue,jmath:mue,Jopf:yue,jopf:bue,Jscr:wue,jscr:Due,Jsercy:Aue,jsercy:xue,Jukcy:Eue,jukcy:Cue,Kappa:_ue,kappa:Sue,kappav:Fue,Kcedil:$ue,kcedil:Tue,Kcy:kue,kcy:Lue,Kfr:Bue,kfr:Oue,kgreen:Pue,KHcy:Nue,khcy:Iue,KJcy:Rue,kjcy:Mue,Kopf:zue,kopf:Uue,Kscr:que,kscr:Hue,lAarr:jue,Lacute:Vue,lacute:Wue,laemptyv:Gue,lagran:Kue,Lambda:Xue,lambda:Que,lang:Yue,Lang:Zue,langd:Jue,langle:ele,lap:tle,Laplacetrf:nle,laquo:rle,larrb:ile,larrbfs:sle,larr:ole,Larr:ale,lArr:ule,larrfs:lle,larrhk:cle,larrlp:fle,larrpl:hle,larrsim:dle,larrtl:ple,latail:gle,lAtail:vle,lat:mle,late:yle,lates:ble,lbarr:wle,lBarr:Dle,lbbrk:Ale,lbrace:xle,lbrack:Ele,lbrke:Cle,lbrksld:_le,lbrkslu:Sle,Lcaron:Fle,lcaron:$le,Lcedil:Tle,lcedil:kle,lceil:Lle,lcub:Ble,Lcy:Ole,lcy:Ple,ldca:Nle,ldquo:Ile,ldquor:Rle,ldrdhar:Mle,ldrushar:zle,ldsh:Ule,le:qle,lE:Hle,LeftAngleBracket:jle,LeftArrowBar:Vle,leftarrow:Wle,LeftArrow:Gle,Leftarrow:Kle,LeftArrowRightArrow:Xle,leftarrowtail:Qle,LeftCeiling:Yle,LeftDoubleBracket:Zle,LeftDownTeeVector:Jle,LeftDownVectorBar:ece,LeftDownVector:tce,LeftFloor:nce,leftharpoondown:rce,leftharpoonup:ice,leftleftarrows:sce,leftrightarrow:oce,LeftRightArrow:ace,Leftrightarrow:uce,leftrightarrows:lce,leftrightharpoons:cce,leftrightsquigarrow:fce,LeftRightVector:hce,LeftTeeArrow:dce,LeftTee:pce,LeftTeeVector:gce,leftthreetimes:vce,LeftTriangleBar:mce,LeftTriangle:yce,LeftTriangleEqual:bce,LeftUpDownVector:wce,LeftUpTeeVector:Dce,LeftUpVectorBar:Ace,LeftUpVector:xce,LeftVectorBar:Ece,LeftVector:Cce,lEg:_ce,leg:Sce,leq:Fce,leqq:$ce,leqslant:Tce,lescc:kce,les:Lce,lesdot:Bce,lesdoto:Oce,lesdotor:Pce,lesg:Nce,lesges:Ice,lessapprox:Rce,lessdot:Mce,lesseqgtr:zce,lesseqqgtr:Uce,LessEqualGreater:qce,LessFullEqual:Hce,LessGreater:jce,lessgtr:Vce,LessLess:Wce,lesssim:Gce,LessSlantEqual:Kce,LessTilde:Xce,lfisht:Qce,lfloor:Yce,Lfr:Zce,lfr:Jce,lg:efe,lgE:tfe,lHar:nfe,lhard:rfe,lharu:ife,lharul:sfe,lhblk:ofe,LJcy:afe,ljcy:ufe,llarr:lfe,ll:cfe,Ll:ffe,llcorner:hfe,Lleftarrow:dfe,llhard:pfe,lltri:gfe,Lmidot:vfe,lmidot:mfe,lmoustache:yfe,lmoust:bfe,lnap:wfe,lnapprox:Dfe,lne:Afe,lnE:xfe,lneq:Efe,lneqq:Cfe,lnsim:_fe,loang:Sfe,loarr:Ffe,lobrk:$fe,longleftarrow:Tfe,LongLeftArrow:kfe,Longleftarrow:Lfe,longleftrightarrow:Bfe,LongLeftRightArrow:Ofe,Longleftrightarrow:Pfe,longmapsto:Nfe,longrightarrow:Ife,LongRightArrow:Rfe,Longrightarrow:Mfe,looparrowleft:zfe,looparrowright:Ufe,lopar:qfe,Lopf:Hfe,lopf:jfe,loplus:Vfe,lotimes:Wfe,lowast:Gfe,lowbar:Kfe,LowerLeftArrow:Xfe,LowerRightArrow:Qfe,loz:Yfe,lozenge:Zfe,lozf:Jfe,lpar:ehe,lparlt:the,lrarr:nhe,lrcorner:rhe,lrhar:ihe,lrhard:she,lrm:ohe,lrtri:ahe,lsaquo:uhe,lscr:lhe,Lscr:che,lsh:fhe,Lsh:hhe,lsim:dhe,lsime:phe,lsimg:ghe,lsqb:vhe,lsquo:mhe,lsquor:yhe,Lstrok:bhe,lstrok:whe,ltcc:Dhe,ltcir:Ahe,lt:xhe,LT:Ehe,Lt:Che,ltdot:_he,lthree:She,ltimes:Fhe,ltlarr:$he,ltquest:The,ltri:khe,ltrie:Lhe,ltrif:Bhe,ltrPar:Ohe,lurdshar:Phe,luruhar:Nhe,lvertneqq:Ihe,lvnE:Rhe,macr:Mhe,male:zhe,malt:Uhe,maltese:qhe,Map:"⤅",map:Hhe,mapsto:jhe,mapstodown:Vhe,mapstoleft:Whe,mapstoup:Ghe,marker:Khe,mcomma:Xhe,Mcy:Qhe,mcy:Yhe,mdash:Zhe,mDDot:Jhe,measuredangle:ede,MediumSpace:tde,Mellintrf:nde,Mfr:rde,mfr:ide,mho:sde,micro:ode,midast:ade,midcir:ude,mid:lde,middot:cde,minusb:fde,minus:hde,minusd:dde,minusdu:pde,MinusPlus:gde,mlcp:vde,mldr:mde,mnplus:yde,models:bde,Mopf:wde,mopf:Dde,mp:Ade,mscr:xde,Mscr:Ede,mstpos:Cde,Mu:_de,mu:Sde,multimap:Fde,mumap:$de,nabla:Tde,Nacute:kde,nacute:Lde,nang:Bde,nap:Ode,napE:Pde,napid:Nde,napos:Ide,napprox:Rde,natural:Mde,naturals:zde,natur:Ude,nbsp:qde,nbump:Hde,nbumpe:jde,ncap:Vde,Ncaron:Wde,ncaron:Gde,Ncedil:Kde,ncedil:Xde,ncong:Qde,ncongdot:Yde,ncup:Zde,Ncy:Jde,ncy:epe,ndash:tpe,nearhk:npe,nearr:rpe,neArr:ipe,nearrow:spe,ne:ope,nedot:ape,NegativeMediumSpace:upe,NegativeThickSpace:lpe,NegativeThinSpace:cpe,NegativeVeryThinSpace:fpe,nequiv:hpe,nesear:dpe,nesim:ppe,NestedGreaterGreater:gpe,NestedLessLess:vpe,NewLine:mpe,nexist:ype,nexists:bpe,Nfr:wpe,nfr:Dpe,ngE:Ape,nge:xpe,ngeq:Epe,ngeqq:Cpe,ngeqslant:_pe,nges:Spe,nGg:Fpe,ngsim:$pe,nGt:Tpe,ngt:kpe,ngtr:Lpe,nGtv:Bpe,nharr:Ope,nhArr:Ppe,nhpar:Npe,ni:Ipe,nis:Rpe,nisd:Mpe,niv:zpe,NJcy:Upe,njcy:qpe,nlarr:Hpe,nlArr:jpe,nldr:Vpe,nlE:Wpe,nle:Gpe,nleftarrow:Kpe,nLeftarrow:Xpe,nleftrightarrow:Qpe,nLeftrightarrow:Ype,nleq:Zpe,nleqq:Jpe,nleqslant:e0e,nles:t0e,nless:n0e,nLl:r0e,nlsim:i0e,nLt:s0e,nlt:o0e,nltri:a0e,nltrie:u0e,nLtv:l0e,nmid:c0e,NoBreak:f0e,NonBreakingSpace:h0e,nopf:d0e,Nopf:p0e,Not:g0e,not:v0e,NotCongruent:m0e,NotCupCap:y0e,NotDoubleVerticalBar:b0e,NotElement:w0e,NotEqual:D0e,NotEqualTilde:A0e,NotExists:x0e,NotGreater:E0e,NotGreaterEqual:C0e,NotGreaterFullEqual:_0e,NotGreaterGreater:S0e,NotGreaterLess:F0e,NotGreaterSlantEqual:$0e,NotGreaterTilde:T0e,NotHumpDownHump:k0e,NotHumpEqual:L0e,notin:B0e,notindot:O0e,notinE:P0e,notinva:N0e,notinvb:I0e,notinvc:R0e,NotLeftTriangleBar:M0e,NotLeftTriangle:z0e,NotLeftTriangleEqual:U0e,NotLess:q0e,NotLessEqual:H0e,NotLessGreater:j0e,NotLessLess:V0e,NotLessSlantEqual:W0e,NotLessTilde:G0e,NotNestedGreaterGreater:K0e,NotNestedLessLess:X0e,notni:Q0e,notniva:Y0e,notnivb:Z0e,notnivc:J0e,NotPrecedes:ege,NotPrecedesEqual:tge,NotPrecedesSlantEqual:nge,NotReverseElement:rge,NotRightTriangleBar:ige,NotRightTriangle:sge,NotRightTriangleEqual:oge,NotSquareSubset:age,NotSquareSubsetEqual:uge,NotSquareSuperset:lge,NotSquareSupersetEqual:cge,NotSubset:fge,NotSubsetEqual:hge,NotSucceeds:dge,NotSucceedsEqual:pge,NotSucceedsSlantEqual:gge,NotSucceedsTilde:vge,NotSuperset:mge,NotSupersetEqual:yge,NotTilde:bge,NotTildeEqual:wge,NotTildeFullEqual:Dge,NotTildeTilde:Age,NotVerticalBar:xge,nparallel:Ege,npar:Cge,nparsl:_ge,npart:Sge,npolint:Fge,npr:$ge,nprcue:Tge,nprec:kge,npreceq:Lge,npre:Bge,nrarrc:Oge,nrarr:Pge,nrArr:Nge,nrarrw:Ige,nrightarrow:Rge,nRightarrow:Mge,nrtri:zge,nrtrie:Uge,nsc:qge,nsccue:Hge,nsce:jge,Nscr:Vge,nscr:Wge,nshortmid:Gge,nshortparallel:Kge,nsim:Xge,nsime:Qge,nsimeq:Yge,nsmid:Zge,nspar:Jge,nsqsube:eve,nsqsupe:tve,nsub:nve,nsubE:rve,nsube:ive,nsubset:sve,nsubseteq:ove,nsubseteqq:ave,nsucc:uve,nsucceq:lve,nsup:cve,nsupE:fve,nsupe:hve,nsupset:dve,nsupseteq:pve,nsupseteqq:gve,ntgl:vve,Ntilde:mve,ntilde:yve,ntlg:bve,ntriangleleft:wve,ntrianglelefteq:Dve,ntriangleright:Ave,ntrianglerighteq:xve,Nu:Eve,nu:Cve,num:_ve,numero:Sve,numsp:Fve,nvap:$ve,nvdash:Tve,nvDash:kve,nVdash:Lve,nVDash:Bve,nvge:Ove,nvgt:Pve,nvHarr:Nve,nvinfin:Ive,nvlArr:Rve,nvle:Mve,nvlt:zve,nvltrie:Uve,nvrArr:qve,nvrtrie:Hve,nvsim:jve,nwarhk:Vve,nwarr:Wve,nwArr:Gve,nwarrow:Kve,nwnear:Xve,Oacute:Qve,oacute:Yve,oast:Zve,Ocirc:Jve,ocirc:eme,ocir:tme,Ocy:nme,ocy:rme,odash:ime,Odblac:sme,odblac:ome,odiv:ame,odot:ume,odsold:lme,OElig:cme,oelig:fme,ofcir:hme,Ofr:dme,ofr:pme,ogon:gme,Ograve:vme,ograve:mme,ogt:yme,ohbar:bme,ohm:wme,oint:Dme,olarr:Ame,olcir:xme,olcross:Eme,oline:Cme,olt:_me,Omacr:Sme,omacr:Fme,Omega:$me,omega:Tme,Omicron:kme,omicron:Lme,omid:Bme,ominus:Ome,Oopf:Pme,oopf:Nme,opar:Ime,OpenCurlyDoubleQuote:Rme,OpenCurlyQuote:Mme,operp:zme,oplus:Ume,orarr:qme,Or:Hme,or:jme,ord:Vme,order:Wme,orderof:Gme,ordf:Kme,ordm:Xme,origof:Qme,oror:Yme,orslope:Zme,orv:Jme,oS:eye,Oscr:tye,oscr:nye,Oslash:rye,oslash:iye,osol:sye,Otilde:oye,otilde:aye,otimesas:uye,Otimes:lye,otimes:cye,Ouml:fye,ouml:hye,ovbar:dye,OverBar:pye,OverBrace:gye,OverBracket:vye,OverParenthesis:mye,para:yye,parallel:bye,par:wye,parsim:Dye,parsl:Aye,part:xye,PartialD:Eye,Pcy:Cye,pcy:_ye,percnt:Sye,period:Fye,permil:$ye,perp:Tye,pertenk:kye,Pfr:Lye,pfr:Bye,Phi:Oye,phi:Pye,phiv:Nye,phmmat:Iye,phone:Rye,Pi:Mye,pi:zye,pitchfork:Uye,piv:qye,planck:Hye,planckh:jye,plankv:Vye,plusacir:Wye,plusb:Gye,pluscir:Kye,plus:Xye,plusdo:Qye,plusdu:Yye,pluse:Zye,PlusMinus:Jye,plusmn:e1e,plussim:t1e,plustwo:n1e,pm:r1e,Poincareplane:i1e,pointint:s1e,popf:o1e,Popf:a1e,pound:u1e,prap:l1e,Pr:c1e,pr:f1e,prcue:h1e,precapprox:d1e,prec:p1e,preccurlyeq:g1e,Precedes:v1e,PrecedesEqual:m1e,PrecedesSlantEqual:y1e,PrecedesTilde:b1e,preceq:w1e,precnapprox:D1e,precneqq:A1e,precnsim:x1e,pre:E1e,prE:C1e,precsim:_1e,prime:S1e,Prime:F1e,primes:$1e,prnap:T1e,prnE:k1e,prnsim:L1e,prod:B1e,Product:O1e,profalar:P1e,profline:N1e,profsurf:I1e,prop:R1e,Proportional:M1e,Proportion:z1e,propto:U1e,prsim:q1e,prurel:H1e,Pscr:j1e,pscr:V1e,Psi:W1e,psi:G1e,puncsp:K1e,Qfr:X1e,qfr:Q1e,qint:Y1e,qopf:Z1e,Qopf:J1e,qprime:ebe,Qscr:tbe,qscr:nbe,quaternions:rbe,quatint:ibe,quest:sbe,questeq:obe,quot:abe,QUOT:ube,rAarr:lbe,race:cbe,Racute:fbe,racute:hbe,radic:dbe,raemptyv:pbe,rang:gbe,Rang:vbe,rangd:mbe,range:ybe,rangle:bbe,raquo:wbe,rarrap:Dbe,rarrb:Abe,rarrbfs:xbe,rarrc:Ebe,rarr:Cbe,Rarr:_be,rArr:Sbe,rarrfs:Fbe,rarrhk:$be,rarrlp:Tbe,rarrpl:kbe,rarrsim:Lbe,Rarrtl:Bbe,rarrtl:Obe,rarrw:Pbe,ratail:Nbe,rAtail:Ibe,ratio:Rbe,rationals:Mbe,rbarr:zbe,rBarr:Ube,RBarr:qbe,rbbrk:Hbe,rbrace:jbe,rbrack:Vbe,rbrke:Wbe,rbrksld:Gbe,rbrkslu:Kbe,Rcaron:Xbe,rcaron:Qbe,Rcedil:Ybe,rcedil:Zbe,rceil:Jbe,rcub:ewe,Rcy:twe,rcy:nwe,rdca:rwe,rdldhar:iwe,rdquo:swe,rdquor:owe,rdsh:awe,real:uwe,realine:lwe,realpart:cwe,reals:fwe,Re:hwe,rect:dwe,reg:pwe,REG:gwe,ReverseElement:vwe,ReverseEquilibrium:mwe,ReverseUpEquilibrium:ywe,rfisht:bwe,rfloor:wwe,rfr:Dwe,Rfr:Awe,rHar:xwe,rhard:Ewe,rharu:Cwe,rharul:_we,Rho:Swe,rho:Fwe,rhov:$we,RightAngleBracket:Twe,RightArrowBar:kwe,rightarrow:Lwe,RightArrow:Bwe,Rightarrow:Owe,RightArrowLeftArrow:Pwe,rightarrowtail:Nwe,RightCeiling:Iwe,RightDoubleBracket:Rwe,RightDownTeeVector:Mwe,RightDownVectorBar:zwe,RightDownVector:Uwe,RightFloor:qwe,rightharpoondown:Hwe,rightharpoonup:jwe,rightleftarrows:Vwe,rightleftharpoons:Wwe,rightrightarrows:Gwe,rightsquigarrow:Kwe,RightTeeArrow:Xwe,RightTee:Qwe,RightTeeVector:Ywe,rightthreetimes:Zwe,RightTriangleBar:Jwe,RightTriangle:eDe,RightTriangleEqual:tDe,RightUpDownVector:nDe,RightUpTeeVector:rDe,RightUpVectorBar:iDe,RightUpVector:sDe,RightVectorBar:oDe,RightVector:aDe,ring:uDe,risingdotseq:lDe,rlarr:cDe,rlhar:fDe,rlm:hDe,rmoustache:dDe,rmoust:pDe,rnmid:gDe,roang:vDe,roarr:mDe,robrk:yDe,ropar:bDe,ropf:wDe,Ropf:DDe,roplus:ADe,rotimes:xDe,RoundImplies:EDe,rpar:CDe,rpargt:_De,rppolint:SDe,rrarr:FDe,Rrightarrow:$De,rsaquo:TDe,rscr:kDe,Rscr:LDe,rsh:BDe,Rsh:ODe,rsqb:PDe,rsquo:NDe,rsquor:IDe,rthree:RDe,rtimes:MDe,rtri:zDe,rtrie:UDe,rtrif:qDe,rtriltri:HDe,RuleDelayed:jDe,ruluhar:VDe,rx:WDe,Sacute:GDe,sacute:KDe,sbquo:XDe,scap:QDe,Scaron:YDe,scaron:ZDe,Sc:JDe,sc:eAe,sccue:tAe,sce:nAe,scE:rAe,Scedil:iAe,scedil:sAe,Scirc:oAe,scirc:aAe,scnap:uAe,scnE:lAe,scnsim:cAe,scpolint:fAe,scsim:hAe,Scy:dAe,scy:pAe,sdotb:gAe,sdot:vAe,sdote:mAe,searhk:yAe,searr:bAe,seArr:wAe,searrow:DAe,sect:AAe,semi:xAe,seswar:EAe,setminus:CAe,setmn:_Ae,sext:SAe,Sfr:FAe,sfr:$Ae,sfrown:TAe,sharp:kAe,SHCHcy:LAe,shchcy:BAe,SHcy:OAe,shcy:PAe,ShortDownArrow:NAe,ShortLeftArrow:IAe,shortmid:RAe,shortparallel:MAe,ShortRightArrow:zAe,ShortUpArrow:UAe,shy:qAe,Sigma:HAe,sigma:jAe,sigmaf:VAe,sigmav:WAe,sim:GAe,simdot:KAe,sime:XAe,simeq:QAe,simg:YAe,simgE:ZAe,siml:JAe,simlE:exe,simne:txe,simplus:nxe,simrarr:rxe,slarr:ixe,SmallCircle:sxe,smallsetminus:oxe,smashp:axe,smeparsl:uxe,smid:lxe,smile:cxe,smt:fxe,smte:hxe,smtes:dxe,SOFTcy:pxe,softcy:gxe,solbar:vxe,solb:mxe,sol:yxe,Sopf:bxe,sopf:wxe,spades:Dxe,spadesuit:Axe,spar:xxe,sqcap:Exe,sqcaps:Cxe,sqcup:_xe,sqcups:Sxe,Sqrt:Fxe,sqsub:$xe,sqsube:Txe,sqsubset:kxe,sqsubseteq:Lxe,sqsup:Bxe,sqsupe:Oxe,sqsupset:Pxe,sqsupseteq:Nxe,square:Ixe,Square:Rxe,SquareIntersection:Mxe,SquareSubset:zxe,SquareSubsetEqual:Uxe,SquareSuperset:qxe,SquareSupersetEqual:Hxe,SquareUnion:jxe,squarf:Vxe,squ:Wxe,squf:Gxe,srarr:Kxe,Sscr:Xxe,sscr:Qxe,ssetmn:Yxe,ssmile:Zxe,sstarf:Jxe,Star:eEe,star:tEe,starf:nEe,straightepsilon:rEe,straightphi:iEe,strns:sEe,sub:oEe,Sub:aEe,subdot:uEe,subE:lEe,sube:cEe,subedot:fEe,submult:hEe,subnE:dEe,subne:pEe,subplus:gEe,subrarr:vEe,subset:mEe,Subset:yEe,subseteq:bEe,subseteqq:wEe,SubsetEqual:DEe,subsetneq:AEe,subsetneqq:xEe,subsim:EEe,subsub:CEe,subsup:_Ee,succapprox:SEe,succ:FEe,succcurlyeq:$Ee,Succeeds:TEe,SucceedsEqual:kEe,SucceedsSlantEqual:LEe,SucceedsTilde:BEe,succeq:OEe,succnapprox:PEe,succneqq:NEe,succnsim:IEe,succsim:REe,SuchThat:MEe,sum:zEe,Sum:UEe,sung:qEe,sup1:HEe,sup2:jEe,sup3:VEe,sup:WEe,Sup:GEe,supdot:KEe,supdsub:XEe,supE:QEe,supe:YEe,supedot:ZEe,Superset:JEe,SupersetEqual:eCe,suphsol:tCe,suphsub:nCe,suplarr:rCe,supmult:iCe,supnE:sCe,supne:oCe,supplus:aCe,supset:uCe,Supset:lCe,supseteq:cCe,supseteqq:fCe,supsetneq:hCe,supsetneqq:dCe,supsim:pCe,supsub:gCe,supsup:vCe,swarhk:mCe,swarr:yCe,swArr:bCe,swarrow:wCe,swnwar:DCe,szlig:ACe,Tab:xCe,target:ECe,Tau:CCe,tau:_Ce,tbrk:SCe,Tcaron:FCe,tcaron:$Ce,Tcedil:TCe,tcedil:kCe,Tcy:LCe,tcy:BCe,tdot:OCe,telrec:PCe,Tfr:NCe,tfr:ICe,there4:RCe,therefore:MCe,Therefore:zCe,Theta:UCe,theta:qCe,thetasym:HCe,thetav:jCe,thickapprox:VCe,thicksim:WCe,ThickSpace:GCe,ThinSpace:KCe,thinsp:XCe,thkap:QCe,thksim:YCe,THORN:ZCe,thorn:JCe,tilde:e_e,Tilde:t_e,TildeEqual:n_e,TildeFullEqual:r_e,TildeTilde:i_e,timesbar:s_e,timesb:o_e,times:a_e,timesd:u_e,tint:l_e,toea:c_e,topbot:f_e,topcir:h_e,top:d_e,Topf:p_e,topf:g_e,topfork:v_e,tosa:m_e,tprime:y_e,trade:b_e,TRADE:w_e,triangle:D_e,triangledown:A_e,triangleleft:x_e,trianglelefteq:E_e,triangleq:C_e,triangleright:__e,trianglerighteq:S_e,tridot:F_e,trie:$_e,triminus:T_e,TripleDot:k_e,triplus:L_e,trisb:B_e,tritime:O_e,trpezium:P_e,Tscr:N_e,tscr:I_e,TScy:R_e,tscy:M_e,TSHcy:z_e,tshcy:U_e,Tstrok:q_e,tstrok:H_e,twixt:j_e,twoheadleftarrow:V_e,twoheadrightarrow:W_e,Uacute:G_e,uacute:K_e,uarr:X_e,Uarr:Q_e,uArr:Y_e,Uarrocir:Z_e,Ubrcy:J_e,ubrcy:eSe,Ubreve:tSe,ubreve:nSe,Ucirc:rSe,ucirc:iSe,Ucy:sSe,ucy:oSe,udarr:aSe,Udblac:uSe,udblac:lSe,udhar:cSe,ufisht:fSe,Ufr:hSe,ufr:dSe,Ugrave:pSe,ugrave:gSe,uHar:vSe,uharl:mSe,uharr:ySe,uhblk:bSe,ulcorn:wSe,ulcorner:DSe,ulcrop:ASe,ultri:xSe,Umacr:ESe,umacr:CSe,uml:_Se,UnderBar:SSe,UnderBrace:FSe,UnderBracket:$Se,UnderParenthesis:TSe,Union:kSe,UnionPlus:LSe,Uogon:BSe,uogon:OSe,Uopf:PSe,uopf:NSe,UpArrowBar:ISe,uparrow:RSe,UpArrow:MSe,Uparrow:zSe,UpArrowDownArrow:USe,updownarrow:qSe,UpDownArrow:HSe,Updownarrow:jSe,UpEquilibrium:VSe,upharpoonleft:WSe,upharpoonright:GSe,uplus:KSe,UpperLeftArrow:XSe,UpperRightArrow:QSe,upsi:YSe,Upsi:ZSe,upsih:JSe,Upsilon:eFe,upsilon:tFe,UpTeeArrow:nFe,UpTee:rFe,upuparrows:iFe,urcorn:sFe,urcorner:oFe,urcrop:aFe,Uring:uFe,uring:lFe,urtri:cFe,Uscr:fFe,uscr:hFe,utdot:dFe,Utilde:pFe,utilde:gFe,utri:vFe,utrif:mFe,uuarr:yFe,Uuml:bFe,uuml:wFe,uwangle:DFe,vangrt:AFe,varepsilon:xFe,varkappa:EFe,varnothing:CFe,varphi:_Fe,varpi:SFe,varpropto:FFe,varr:$Fe,vArr:TFe,varrho:kFe,varsigma:LFe,varsubsetneq:BFe,varsubsetneqq:OFe,varsupsetneq:PFe,varsupsetneqq:NFe,vartheta:IFe,vartriangleleft:RFe,vartriangleright:MFe,vBar:zFe,Vbar:UFe,vBarv:qFe,Vcy:HFe,vcy:jFe,vdash:VFe,vDash:WFe,Vdash:GFe,VDash:KFe,Vdashl:XFe,veebar:QFe,vee:YFe,Vee:ZFe,veeeq:JFe,vellip:e2e,verbar:t2e,Verbar:n2e,vert:r2e,Vert:i2e,VerticalBar:s2e,VerticalLine:o2e,VerticalSeparator:a2e,VerticalTilde:u2e,VeryThinSpace:l2e,Vfr:c2e,vfr:f2e,vltri:h2e,vnsub:d2e,vnsup:p2e,Vopf:g2e,vopf:v2e,vprop:m2e,vrtri:y2e,Vscr:b2e,vscr:w2e,vsubnE:D2e,vsubne:A2e,vsupnE:x2e,vsupne:E2e,Vvdash:C2e,vzigzag:_2e,Wcirc:S2e,wcirc:F2e,wedbar:$2e,wedge:T2e,Wedge:k2e,wedgeq:L2e,weierp:B2e,Wfr:O2e,wfr:P2e,Wopf:N2e,wopf:I2e,wp:R2e,wr:M2e,wreath:z2e,Wscr:U2e,wscr:q2e,xcap:H2e,xcirc:j2e,xcup:V2e,xdtri:W2e,Xfr:G2e,xfr:K2e,xharr:X2e,xhArr:Q2e,Xi:Y2e,xi:Z2e,xlarr:J2e,xlArr:e$e,xmap:t$e,xnis:n$e,xodot:r$e,Xopf:i$e,xopf:s$e,xoplus:o$e,xotime:a$e,xrarr:u$e,xrArr:l$e,Xscr:c$e,xscr:f$e,xsqcup:h$e,xuplus:d$e,xutri:p$e,xvee:g$e,xwedge:v$e,Yacute:m$e,yacute:y$e,YAcy:b$e,yacy:w$e,Ycirc:D$e,ycirc:A$e,Ycy:x$e,ycy:E$e,yen:C$e,Yfr:_$e,yfr:S$e,YIcy:F$e,yicy:$$e,Yopf:T$e,yopf:k$e,Yscr:L$e,yscr:B$e,YUcy:O$e,yucy:P$e,yuml:N$e,Yuml:I$e,Zacute:R$e,zacute:M$e,Zcaron:z$e,zcaron:U$e,Zcy:q$e,zcy:H$e,Zdot:j$e,zdot:V$e,zeetrf:W$e,ZeroWidthSpace:G$e,Zeta:K$e,zeta:X$e,zfr:Q$e,Zfr:Y$e,ZHcy:Z$e,zhcy:J$e,zigrarr:eTe,zopf:tTe,Zopf:nTe,Zscr:rTe,zscr:iTe,zwj:sTe,zwnj: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="ð",qTe="Ë",HTe="ë",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="³",qke="ß",Hke="Þ",jke="þ",Vke="×",Wke="Ú",Gke="ú",Kke="Û",Xke="û",Qke="Ù",Yke="ù",Zke="¨",Jke="Ü",eLe="ü",tLe="Ý",nLe="ý",rLe="¥",iLe="ÿ",sLe={Aacute:aTe,aacute:uTe,Acirc:lTe,acirc:cTe,acute:fTe,AElig:hTe,aelig:dTe,Agrave:pTe,agrave:gTe,amp:vTe,AMP:mTe,Aring:yTe,aring:bTe,Atilde:wTe,atilde:DTe,Auml:ATe,auml:xTe,brvbar:ETe,Ccedil:CTe,ccedil:_Te,cedil:STe,cent:FTe,copy:$Te,COPY:TTe,curren:kTe,deg:LTe,divide:BTe,Eacute:OTe,eacute:PTe,Ecirc:NTe,ecirc:ITe,Egrave:RTe,egrave:MTe,ETH:zTe,eth:UTe,Euml:qTe,euml:HTe,frac12:jTe,frac14:VTe,frac34:WTe,gt:GTe,GT:KTe,Iacute:XTe,iacute:QTe,Icirc:YTe,icirc:ZTe,iexcl:JTe,Igrave:eke,igrave:tke,iquest:nke,Iuml:rke,iuml:ike,laquo:ske,lt:oke,LT:ake,macr:uke,micro:lke,middot:cke,nbsp:fke,not:hke,Ntilde:dke,ntilde:pke,Oacute:gke,oacute:vke,Ocirc:mke,ocirc:yke,Ograve:bke,ograve:wke,ordf:Dke,ordm:Ake,Oslash:xke,oslash:Eke,Otilde:Cke,otilde:_ke,Ouml:Ske,ouml:Fke,para:$ke,plusmn:Tke,pound:kke,quot:Lke,QUOT:Bke,raquo:Oke,reg:Pke,REG:Nke,sect:Ike,shy:Rke,sup1:Mke,sup2:zke,sup3:Uke,szlig:qke,THORN:Hke,thorn:jke,times:Vke,Uacute:Wke,uacute:Gke,Ucirc:Kke,ucirc:Xke,Ugrave:Qke,ugrave:Yke,uml:Zke,Uuml:Jke,uuml:eLe,Yacute:tLe,yacute:nLe,yen:rLe,yuml:iLe},oLe="&",aLe="'",uLe=">",lLe="<",cLe='"',rS={amp:oLe,apos:aLe,gt:uLe,lt:lLe,quot:cLe};var Xv={};const fLe={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 hLe=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xv,"__esModule",{value:!0});var XD=hLe(fLe),dLe=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 pLe(e){return e>=55296&&e<=57343||e>1114111?"�":(e in XD.default&&(e=XD.default[e]),dLe(e))}Xv.default=pLe;var jh=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 E0=jh(nS),gLe=jh(sLe),vLe=jh(rS),QD=jh(Xv),mLe=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;xi.decodeXML=iS(vLe.default);xi.decodeHTMLStrict=iS(E0.default);function iS(e){var t=sS(e);return function(n){return String(n).replace(mLe,t)}}var YD=function(e,t){return e<t?1:-1};xi.decodeHTML=function(){for(var e=Object.keys(gLe.default).sort(YD),t=Object.keys(E0.default).sort(YD),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=sS(E0.default);function c(h){return h.substr(-1)!==";"&&(h+=";"),a(h)}return function(h){return String(h).replace(o,c)}}();function sS(e){return function(n){if(n.charAt(1)==="#"){var i=n.charAt(2);return i==="X"||i==="x"?QD.default(parseInt(n.substr(3),16)):QD.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}var Yn={},oS=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 yLe=oS(rS),aS=lS(yLe.default),uS=cS(aS);Yn.encodeXML=dS(aS);var bLe=oS(nS),Qv=lS(bLe.default),wLe=cS(Qv);Yn.encodeHTML=ALe(Qv,wLe);Yn.encodeNonAsciiHTML=dS(Qv);function lS(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function cS(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 fS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,DLe=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Vh(e){return"&#x"+(e.length>1?DLe(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function ALe(e,t){return function(n){return n.replace(t,function(i){return e[i]}).replace(fS,Vh)}}var hS=new RegExp(uS.source+"|"+fS.source,"g");function xLe(e){return e.replace(hS,Vh)}Yn.escape=xLe;function ELe(e){return e.replace(uS,Vh)}Yn.escapeUTF8=ELe;function dS(e){return function(t){return t.replace(hS,function(n){return e[n]||Vh(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}})})(tS);function CLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZD(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 _Le(e,t,n){return t&&ZD(e.prototype,t),n&&ZD(e,n),e}function pS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=SLe(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 SLe(e,t){if(e){if(typeof e=="string")return JD(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 JD(e,t)}}function JD(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 FLe=tS,eA={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:$Le()};function $Le(){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 qc(0,5).forEach(function(t){qc(0,5).forEach(function(n){qc(0,5).forEach(function(i){return TLe(t,n,i,e)})})}),qc(0,23).forEach(function(t){var n=t+232,i=gS(t*10+8);e[n]="#"+i+i+i}),e}function TLe(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]=kLe([a,c,h])}function gS(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function kLe(e){var t=[],n=pS(e),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;t.push(gS(o))}}catch(a){n.e(a)}finally{n.f()}return"#"+t.join("")}function tA(e,t,n,i){var o;return t==="text"?o=PLe(n,i):t==="display"?o=BLe(e,n,i):t==="xterm256Foreground"?o=uf(e,i.colors[n]):t==="xterm256Background"?o=lf(e,i.colors[n]):t==="rgb"&&(o=LLe(e,n)),o}function LLe(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 BLe(e,t,n){t=parseInt(t,10);var i={"-1":function(){return"<br/>"},0:function(){return e.length&&vS(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 rA(e,"i")},24:function(){return rA(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 vS(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(n){return"</"+n+">"}).join("")}function qc(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n}function OLe(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function nA(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 PLe(e,t){return t.escapeXML?FLe.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 rA(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return"</"+t+">"}function NLe(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=pS(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,C=L.length;e:for(;C>0;){for(var E=0,S=0,O=m.length;S<O;E=++S){var B=m[E];if(w(B,E),e.length!==C){C=e.length;continue e}}if(e.length===C)break;$.push(0),C=e.length}return $}function ILe(e,t,n){return t!=="text"&&(e=e.filter(OLe(nA(n))),e.push({token:t,data:n,category:nA(n)})),e}var RLe=function(){function e(t){CLe(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},eA.colors,t.colors)),this.options=Object.assign({},eA,t),this.stack=[],this.stickyStack=[]}return _Le(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=tA(o,h.token,h.data,a);d&&c.push(d)}),NLe(n.join(""),a,function(h,d){var p=tA(o,h,d,a);p&&c.push(p),a.stream&&(i.stickyStack=ILe(i.stickyStack,h,d))}),o.length&&c.push(vS(o)),c.join("")}}]),e}(),MLe=RLe;function zLe(e,t){return t&&e.endsWith(t)}async function mS(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function yS(e){return new MLe({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}const ULe={class:"scrolls scrolls-rounded task-error"},qLe=["onClickPassive"],HLe={key:0},jLe=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 uW(t.error.actual,t.error.expected)}return(a,c)=>{const h=ro("tooltip");return de(),Te("div",ULe,[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(zLe)(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(mS)(d.file,d.line,d.column)},null,40,qLe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):nt("",!0)]))),128)),Q(i)?(de(),Te("pre",HLe," "+Je(`
16
+ ${o()}`)+`
17
+ `,1)):nt("",!0)])}}});const VLe=io(jLe,[["__scopeId","data-v-b52f98f6"]]),Wh=fG(),WLe=DW(Wh),GLe={"h-full":"",class:"scrolls"},KLe={key:0,class:"scrolls scrolls-rounded task-error"},XLe=["innerHTML"],QLe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},YLe=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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function o(h,d){var y,m;let p="";d.message.includes("\x1B")&&(p=`<b>${d.nameStr||d.name}</b>: ${h.toHtml(i(d.message))}`);const g=(y=d.stackStr)==null?void 0:y.includes("\x1B");return(g||(m=d.stack)!=null&&m.includes("\x1B"))&&(p.length>0?p+=h.toHtml(i(g?d.stackStr:d.stack)):p=`<b>${d.nameStr||d.name}</b>: ${d.message}${h.toHtml(i(g?d.stackStr:d.stack))}`),p.length>0?p:null}function a(h,d){const p=yS(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(Wh.value,d):d});return(h,d)=>(de(),Te("div",GLe,[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",KLe,[pe("pre",{innerHTML:p.result.htmlError},null,8,XLe)])):(m=p.result)!=null&&m.errors?(de(!0),Te(ht,{key:1},Ar(p.result.errors,(w,$)=>{var L;return de(),Ze(VLe,{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",QLe," All tests passed in this file "))]))}});const ZLe=io(YLe,[["__scopeId","data-v-1988b97e"]]),JLe={border:"b base","p-4":""},eBe=["innerHTML"],tBe=["textContent"],nBe=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",JLe,[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,eBe)):(de(),Te("pre",{key:1,"data-type":"text",textContent:Je(t.content)},null,8,tBe))]))}}),rBe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},iBe={key:1,p6:""},sBe=pe("pre",{inline:""},"console.log(foo)",-1),oBe=rt({__name:"ViewConsoleOutput",setup(e){const t=xe(()=>{const i=J_.value;if(i){const o=yS(Wh.value);return i.map(({taskId:a,type:c,time:h,content:d})=>{const p=d.trim(),g=o.toHtml(p);return g!==p?{taskId:a,type:c,time:h,html:!0,content:g}:{taskId:a,type:c,time:h,html:!1,content:d}})}});function n(i){const o=i&&sn.state.idMap.get(i);return(o?lW(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>{var c;const a=nBe;return(c=Q(t))!=null&&c.length?(de(),Te("div",rBe,[(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",iBe,[Sn(" Log something in your test and it would print here. (e.g. "),sBe,Sn(") ")]))}}});var If={},aBe={get exports(){return If},set exports(e){If=e}},iA;function Pa(){return iA||(iA=1,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),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/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 lo=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,q){this.level=_,this.from=N,this.to=q}return function(_,N){var q=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=q;le<X;++le){var we=K[le];we=="m"?K[le]=me:me=we}for(var Ce=0,De=q;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=q;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]:q)=="L",Cn=(Rt<X?K[Rt]:q)=="L",ko=Lt==Cn?Lt?"L":"R":q,Ki=jt;Ki<Rt;++Ki)K[Ki]=ko;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,_s=ln.length,Ss=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(_s,0,new x(1,ci,gn)),_s+=Ss);var Lo=gn;for(++gn;gn<Yt&&A.test(K[gn]);++gn);ln.splice(_s,0,new x(2,Lo,gn)),_s+=Ss,ci=gn}else++gn;ci<Yt&&ln.splice(_s,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=lo(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 ms(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),ms(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 Qh=function(){if(d&&p<9)return!1;var r=D("div");return"draggable"in r||"dragDrop"in r}(),tr;function Yh(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 co;function Nl(r){if(co!=null)return co;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:co=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 fo(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 ho(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 H(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 Ht(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 qe(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):fF(s,Le(r,s.line).text.length)}function fF(r,s){var l=r.ch;return l==null||l>s?W(r.line,s):l<0?W(r.line,0):r}function hm(r,s){for(var l=[],u=0;u<s.length;u++)l[u]=qe(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 dm(r,s,l,u){var f=[r.state.modeGen],v={};bm(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[_],q=1,X=0;l.state=!0,bm(r,s.text,N.mode,l,function(K,te){for(var le=q;X<K;){var me=f[q];me>K&&f.splice(q,1,K,f[q+1],me),q+=2,X=Math.min(K,me)}if(te)if(N.opaque)f.splice(le,q-le,K,"overlay "+te),q=le+2;else for(;le<q;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 pm(r,s,l){if(!s.styles||s.styles[0]!=r.state.modeGen){var u=qa(r,ut(s)),f=s.text.length>r.options.maxHighlightLength&&ri(r.doc.mode,u.state),v=dm(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 qa(r,s,l){var u=r.doc,f=r.display;if(!u.mode.startState)return new Pr(u,!0,s);var v=hF(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){Zh(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 Zh(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==""&&gm(f,l.state);!v.eol();)Jh(f,v,l.state),v.start=v.pos}function gm(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 Jh(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 vm=function(r,s,l){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=l};function mm(r,s,l,u){var f=r.doc,v=f.mode,b;s=qe(f,s);var A=Le(f,s.line),x=qa(r,s.line,l),_=new kt(A.text,r.options.tabSize,x),N;for(u&&(N=[]);(u||_.pos<s.ch)&&!_.eol();)_.start=_.pos,b=Jh(v,_,x.state),u&&N.push(new vm(_,b,ri(f.mode,x.state)));return u?N:new vm(_,b,x.state)}function ym(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 bm(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),q,X=r.options.addModeClass&&[null];for(s==""&&ym(gm(l,u.state),v);!N.eol();){if(N.pos>r.options.maxHighlightLength?(A=!1,b&&Zh(r,s,u,N.pos),N.pos=s.length,q=null):q=ym(Jh(l,N,u.state,X),v),X){var K=X[0].name;K&&(q="m-"+(q?K+" "+q:K))}if(!A||_!=q){for(;x<N.start;)x=Math.min(N.start,x+5e3),f(x,_);_=q}N.start=N.pos}for(;x<N.pos;){var te=Math.min(N.pos,x+5e3);f(te,_),x=te}}function hF(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 dF(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 wm=!1,si=!1;function pF(){wm=!0}function gF(){si=!0}function Ul(r,s,l){this.marker=r,this.from=s,this.to=l}function Ha(r,s){if(r)for(var l=0;l<r.length;++l){var u=r[l];if(u.marker==s)return u}}function vF(r,s){for(var l,u=0;u<r.length;++u)r[u]!=s&&(l||(l=[])).push(r[u]);return l}function mF(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 yF(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 bF(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 ed(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=yF(l,f,b),x=bF(u,v,b),_=s.text.length==1,N=he(s.text).length+(_?f:0);if(A)for(var q=0;q<A.length;++q){var X=A[q];if(X.to==null){var K=Ha(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=Ha(A,le.marker);me||(le.from=N,_&&(A||(A=[])).push(le))}else le.from+=N,_&&(A||(A=[])).push(le)}A&&(A=Dm(A)),x&&x!=A&&(x=Dm(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 Dm(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 wF(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],q=ee(_.from,A.from),X=ee(_.to,A.to);(q<0||!b.inclusiveLeft&&!q)&&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 Am(r){var s=r.markedSpans;if(s){for(var l=0;l<s.length;++l)s[l].marker.detachLine(r);r.markedSpans=null}}function xm(r,s){if(s){for(var l=0;l<s.length;++l)s[l].marker.attachLine(r);r.markedSpans=s}}function ql(r){return r.inclusiveLeft?-1:0}function Hl(r){return r.inclusiveRight?1:0}function td(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)||ql(r)-ql(s);if(v)return-v;var b=ee(u.to,f.to)||Hl(r)-Hl(s);return b||s.id-r.id}function Em(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||td(u,f.marker)<0)&&(u=f.marker);return u}function Cm(r){return Em(r,!0)}function jl(r){return Em(r,!1)}function DF(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||td(u,v.marker)<0)&&(u=v.marker)}return u}function _m(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)||ql(x.marker)-ql(f),q=ee(_.to,u)||Hl(x.marker)-Hl(f);if(!(N>=0&&q<=0||N<=0&&q>=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=Cm(r);)r=s.find(-1,!0).line;return r}function AF(r){for(var s;s=jl(r);)r=s.find(1,!0).line;return r}function xF(r){for(var s,l;s=jl(r);)r=s.find(1,!0).line,(l||(l=[])).push(r);return l}function nd(r,s){var l=Le(r,s),u=dr(l);return l==u?s:ut(u)}function Sm(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&&rd(r,s,u))return!0}}}function rd(r,s,l){if(l.to==null){var u=l.marker.find(1,!0);return rd(r,u.line,Ha(u.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==s.text.length)return!0;for(var f=void 0,v=0;v<s.markedSpans.length;++v)if(f=s.markedSpans[v],f.marker.collapsed&&!f.marker.widgetNode&&f.from==l.to&&(f.to==null||f.to!=l.from)&&(f.marker.inclusiveLeft||l.marker.inclusiveRight)&&rd(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=Cm(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 id(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 po=function(r,s,l){this.text=r,xm(this,s),this.height=l?l(this):1};po.prototype.lineNo=function(){return ut(this)},dn(po);function EF(r,s,l,u){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),Am(r),xm(r,l);var f=u?u(r):1;f!=r.height&&nr(r,f)}function CF(r){r.parent=null,Am(r)}var _F={},SF={};function Fm(r,s){if(!r||/^\s*$/.test(r))return null;var l=s.addModeClass?SF:_F;return l[r]||(l[r]=r.replace(/\S+/g,"cm-$&"))}function $m(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=$F,Nl(r.display.measure)&&(b=Dt(v,r.doc.direction))&&(u.addToken=kF(u.addToken,b)),u.map=[];var A=s!=r.display.externalMeasured&&ut(v);LF(v,u,pm(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(Yh(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 FF(r){var s=D("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function $F(r,s,l,u,f,v,b){if(s){var A=r.splitSpaces?TF(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 q=0;;){x.lastIndex=q;var X=x.exec(s),K=X?X.index-q:s.length-q;if(K){var te=document.createTextNode(A.slice(q,q+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;q+=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 TF(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 kF(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 q=void 0,X=0;X<s.length&&(q=s[X],!(q.to>_&&q.from<=_));X++);if(q.to>=N)return r(l,u,f,v,b,A,x);r(l,u.slice(0,q.to-_),f,v,null,A,x),v=null,u=u.slice(q.to-_),_=q.to}}}function Tm(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 LF(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]),Fm(l[b+1],s.cm.options));return}for(var A=f.length,x=0,_=1,N="",q,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||td(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)Tm(s,0,De[Ft]);if(we&&(we.from||0)==x){if(Tm(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,q?q+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[_++]),q=Fm(l[_++],s.cm.options)}}}function km(r,s,l){this.line=s,this.rest=xF(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 km(r.doc,Le(r.doc,v),v);f=v+b.size,u.push(b)}return u}var go=null;function BF(r){go?go.ops.push(r):r.ownsGroup=go={ops:[r],delayedCallbacks:[]}}function OF(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 PF(r,s){var l=r.ownsGroup;if(l)try{OF(l)}finally{go=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;go?f=go.delayedCallbacks:ja?f=ja:(f=ja=[],setTimeout(NF,0));for(var v=function(A){f.push(function(){return l[A].apply(null,u)})},b=0;b<l.length;++b)v(b)}}function NF(){var r=ja;ja=null;for(var s=0;s<r.length;++s)r[s]()}function Lm(r,s,l,u){for(var f=0;f<s.changes.length;f++){var v=s.changes[f];v=="text"?RF(r,s):v=="gutter"?Om(r,s,l,u):v=="class"?sd(r,s):v=="widget"&&MF(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 IF(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 Bm(r,s){var l=r.display.externalMeasured;return l&&l.line==s.line?(r.display.externalMeasured=null,s.measure=l.measure,l.built):$m(r,s)}function RF(r,s){var l=s.text.className,u=Bm(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,sd(r,s)):l&&(s.text.className=l)}function sd(r,s){IF(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 Om(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",H(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 MF(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);Pm(r,s,l)}function zF(r,s,l,u){var f=Bm(r,s);return s.text=s.node=f.pre,f.bgClass&&(s.bgClass=f.bgClass),f.textClass&&(s.textClass=f.textClass),sd(r,s),Om(r,s,l,u),Pm(r,s,u),s.node}function Pm(r,s,l){if(Nm(r,s.line,s,l,!0),s.rest)for(var u=0;u<s.rest.length;u++)Nm(r,s.rest[u],s,l,!1)}function Nm(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"),UF(x,_,l,u),r.display.input.setUneditable(_),f&&x.above?v.insertBefore(_,l.gutter||l.text):v.appendChild(_),Gt(x,"redraw")}}function UF(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 od(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function Im(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 ys(r){return r.display.scroller.clientWidth-Nr(r)-r.display.barWidth}function ad(r){return r.display.scroller.clientHeight-Nr(r)-r.display.barHeight}function qF(r,s,l){var u=r.options.lineWrapping,f=u&&ys(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 Rm(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 HF(r,s){s=dr(s);var l=ut(s),u=r.display.externalMeasured=new km(r.doc,s,l);u.lineN=l;var f=u.built=$m(r,u);return u.text=f.pre,F(r.display.lineMeasure,f.pre),u}function Mm(r,s,l,u){return Ir(r,vo(r,s),l,u)}function ud(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[Ds(r,s)];var l=r.display.externalMeasured;if(l&&s>=l.lineN&&s<l.lineN+l.size)return l}function vo(r,s){var l=ut(s),u=ud(r,l);u&&!u.text?u=null:u&&u.changes&&(Lm(r,u,l,dd(r)),r.curOp.forceUpdate=!0),u||(u=HF(r,s));var f=Rm(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||(qF(r,s.view,s.rect),s.hasHeights=!0),b=VF(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 zm={left:0,right:0,top:0,bottom:0};function Um(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 jF(r,s){var l=zm;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 VF(r,s,l,u){var f=Um(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():_=jF(V(v,b,A).getClientRects(),u),_.left||_.right||b==0)break;A=b,b=b-1,x="right"}d&&p<11&&(_=WF(r.display.measure,_))}else{b>0&&(x=u="right");var q;r.options.lineWrapping&&(q=v.getClientRects()).length>1?_=q[u=="right"?q.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+yo(r.display),top:X.top,bottom:X.bottom}:_=zm}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 WF(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 qm(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++)qm(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 jm(r){return m&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function Vm(r){return m&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function ld(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=ld(s);l.top+=v,l.bottom+=v}if(u=="line")return l;u||(u="local");var b=oi(s);if(u=="local"?b+=Gl(r.display):b-=r.display.viewOffset,u=="page"||u=="window"){var A=r.display.lineSpace.getBoundingClientRect();b+=A.top+(u=="window"?0:Vm(ze(r)));var x=A.left+(u=="window"?0:jm(ze(r)));l.left+=x,l.right+=x}return l.top+=b,l.bottom+=b,l}function Wm(r,s,l){if(l=="div")return s;var u=s.left,f=s.top;if(l=="page")u-=jm(ze(r)),f-=Vm(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,Mm(r,u,s.ch,f),l)}function pr(r,s,l,u,f,v){u=u||Le(r.doc,s.line),f||(f=vo(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 q=tn(A,x,_),X=Vn,K=N(x,q,_=="before");return X!=null&&(K.other=N(x,X,_!="before")),K}function Gm(r,s){var l=0;s=qe(r.doc,s),r.options.lineWrapping||(l=yo(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 cd(r,s,l,u,f){var v=W(r,s,l);return v.xRel=f,u&&(v.outside=u),v}function fd(r,s,l){var u=r.doc;if(l+=r.display.viewOffset,l<0)return cd(u.first,0,null,-1,-1);var f=Or(u,l),v=u.first+u.size-1;if(f>v)return cd(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=GF(r,b,f,s,l),x=DF(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 Km(r,s,l,u){u-=ld(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 Xm(r,s,l,u){l||(l=vo(r,s));var f=Kl(r,s,Ir(r,l,u),"line").top;return Km(r,s,l,f)}function hd(r,s,l,u){return r.bottom<=l?!1:r.top>l?!0:(u?r.left:r.right)>s}function GF(r,s,l,u,f){f-=oi(s);var v=vo(r,s),b=ld(s),A=0,x=s.text.length,_=!0,N=Dt(s,r.doc.direction);if(N){var q=(r.options.lineWrapping?XF:KF)(r,s,l,v,N,u,f);_=q.level!=1,A=_?q.from:q.to-1,x=_?q.to:q.from-1}var X=null,K=null,te=et(function(Ie){var Oe=Ir(r,v,Ie);return Oe.top+=b,Oe.bottom+=b,hd(Oe,u,f,!1)?(Oe.top<=f&&Oe.left<=u&&(X=Ie,K=Oe),!0):!1},A,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),cd(l,te,me,we,u-le)}function KF(r,s,l,u,f,v,b){var A=et(function(q){var X=f[q],K=X.level!=1;return hd(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);hd(N,v,b,!0)&&N.top>b&&(x=f[A-1])}return x}function XF(r,s,l,u,f,v,b){var A=Km(r,s,u,b),x=A.begin,_=A.end;/\s/.test(s.text.charAt(_-1))&&_--;for(var N=null,q=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||q>me)&&(N=K,q=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 bs;function mo(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(bs==null){bs=D("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)bs.appendChild(document.createTextNode("x")),bs.appendChild(D("br"));bs.appendChild(document.createTextNode("x"))}F(r.measure,bs);var l=bs.offsetHeight/50;return l>3&&(r.cachedTextHeight=l),P(r.measure),l||1}function yo(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 dd(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:pd(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:l,gutterWidth:u,wrapperWidth:s.wrapper.clientWidth}}function pd(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Qm(r){var s=mo(r.display),l=r.options.lineWrapping,u=l&&Math.max(5,r.display.scroller.clientWidth/yo(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 gd(r){var s=r.doc,l=Qm(r);s.iter(function(u){var f=l(u);f!=u.height&&nr(u,f)})}function ws(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=fd(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-Im(r.display).left)/yo(r.display))-N))}return x}function Ds(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&&nd(r.doc,s)<f.viewTo&&qi(r);else if(l<=f.viewFrom)si&&Sm(r.doc,l+u)>f.viewFrom?qi(r):(f.viewFrom+=u,f.viewTo+=u);else if(s<=f.viewFrom&&l>=f.viewTo)qi(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):qi(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):qi(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):qi(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[Ds(r,s)];if(v.node!=null){var b=v.changes||(v.changes=[]);Se(b,l)==-1&&b.push(l)}}}function qi(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=Ds(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(;nd(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 QF(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(Ds(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,Ds(r,l)))),u.viewTo=l}function Ym(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 Zm(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&&vd(r,N,f)}else(_||r.options.showCursorWhenSelecting)&&vd(r,x.head,f);_||YF(r,x,v)}}return u}function vd(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 YF(r,s,l){var u=r.display,f=r.doc,v=document.createDocumentFragment(),b=Im(r.display),A=b.left,x=Math.max(u.sizerWidth,ys(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 q(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=Xm(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"),ko=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=(_?ko:Ki)&&ln,Hd=(_?Ki:ko)&&Rr,ci=Yt?A:(Rt?Lt:Cn).left,_s=Hd?x:(Rt?Cn:Lt).right;N(ci,Lt.top,_s-ci,Lt.bottom)}else{var Ss,gn,Lo,jd;Rt?(Ss=_&&ko&&ln?A:Lt.left,gn=_?x:Nn(It,nn,"before"),Lo=_?A:Nn(En,nn,"after"),jd=_&&Ki&&Rr?x:Cn.right):(Ss=_?Nn(It,nn,"before"):A,gn=!_&&ko&&ln?x:Lt.right,Lo=!_&&Ki&&Rr?A:Cn.left,jd=_?Nn(En,nn,"after"):x),N(Ss,Lt.top,gn-Ss,Lt.bottom),Lt.bottom<Cn.top&&N(A,Lt.bottom,null,Cn.top),N(Lo,Cn.top,jd-Lo,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)q(X.line,X.ch,K.ch);else{var te=Le(f,X.line),le=Le(f,K.line),me=dr(te)==dr(le),we=q(X.line,X.ch,me?te.text.length+1:null).end,Ce=q(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 md(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()||bo(r),s.cursorDiv.style.visibility=(l=!l)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function Jm(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||bd(r))}function yd(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&bo(r))},100)}function bd(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()),md(r))}function bo(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 q=A.node.offsetTop+A.node.offsetHeight;_=q-l,l=q}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,_),ey(A.line),A.rest))for(var te=0;te<A.rest.length;te++)ey(A.rest[te]);if(N>r.display.sizerWidth){var le=Math.ceil(N/yo(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 ey(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 ZF(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&&!E){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 _=wd(r,f),N=r.doc.scrollTop,q=r.doc.scrollLeft;if(_.scrollTop!=null&&(Qa(r,_.scrollTop),Math.abs(r.doc.scrollTop-N)>1&&(b=!0)),_.scrollLeft!=null&&(As(r,_.scrollLeft),Math.abs(r.doc.scrollLeft-q)>1&&(b=!0)),!b)break}return f}function e2(r,s){var l=wd(r,s);l.scrollTop!=null&&Qa(r,l.scrollTop),l.scrollLeft!=null&&As(r,l.scrollLeft)}function wd(r,s){var l=r.display,u=mo(r.display);s.top<0&&(s.top=0);var f=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:l.scroller.scrollTop,v=ad(r),b={};s.bottom-s.top>v&&(s.bottom=s.top+v);var A=r.doc.height+od(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 q=r.options.fixedGutter?0:l.gutters.offsetWidth,X=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:l.scroller.scrollLeft-q,K=ys(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+q-(te?0:10)):s.right>K+X-3&&(b.scrollLeft=s.right+(te?0:10)-K),b}function Dd(r,s){s!=null&&(ec(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function wo(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 t2(r,s){ec(r),r.curOp.scrollToPos=s}function ec(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var l=Gm(r,s.from),u=Gm(r,s.to);ty(r,l,u,s.margin)}}function ty(r,s,l,u){var f=wd(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||xd(r,{top:s}),ny(r,s,!0),o&&xd(r),Ja(r,100))}function ny(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 As(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,ay(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+od(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 xs=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")};xs.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}},xs.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xs.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xs.prototype.zeroWidthHack=function(){var r=k&&!C?"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},xs.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)},xs.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 Do(r,s){s||(s=Ya(r));var l=r.display.barWidth,u=r.display.barHeight;ry(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),ry(r,Ya(r)),l=r.display.barWidth,u=r.display.barHeight}function ry(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 iy={native:xs,null:Za};function sy(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&z(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new iy[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"?As(r,s):Qa(r,s)},r),r.display.scrollbars.addClass&&ge(r.display.wrapper,r.display.scrollbars.addClass)}var n2=0;function Es(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:++n2,markArrays:null},BF(r.curOp)}function Cs(r){var s=r.curOp;s&&PF(s,function(l){for(var u=0;u<l.ops.length;u++)l.ops[u].cm.curOp=null;r2(l)})}function r2(r){for(var s=r.ops,l=0;l<s.length;l++)i2(s[l]);for(var u=0;u<s.length;u++)s2(s[u]);for(var f=0;f<s.length;f++)o2(s[f]);for(var v=0;v<s.length;v++)a2(s[v]);for(var b=0;b<s.length;b++)u2(s[b])}function i2(r){var s=r.cm,l=s.display;c2(s),r.updateMaxLine&&id(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 s2(r){r.updatedDisplay=r.mustUpdate&&Ad(r.cm,r.update)}function o2(r){var s=r.cm,l=s.display;r.updatedDisplay&&Zl(s),r.barMeasure=Ya(s),l.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=Mm(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-ys(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=l.input.prepareSelection())}function a2(r){var s=r.cm;r.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<s.doc.scrollLeft&&As(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)&&Do(s,r.barMeasure),r.updatedDisplay&&Cd(s,r.barMeasure),r.selectionChanged&&md(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),l&&Jm(r.cm)}function u2(r){var s=r.cm,l=s.display,u=s.doc;if(r.updatedDisplay&&oy(s,r.update),l.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),r.scrollTop!=null&&ny(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&As(s,r.scrollLeft,!0,!0),r.scrollToPos){var f=JF(s,qe(u,r.scrollToPos.from),qe(u,r.scrollToPos.to),r.scrollToPos.margin);ZF(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();Es(r);try{return s()}finally{Cs(r)}}function Kt(r,s){return function(){if(r.curOp)return s.apply(r,arguments);Es(r);try{return s.apply(r,arguments)}finally{Cs(r)}}}function pn(r){return function(){if(this.curOp)return r.apply(this,arguments);Es(this);try{return r.apply(this,arguments)}finally{Cs(this)}}}function Xt(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);Es(s);try{return r.apply(this,arguments)}finally{Cs(s)}}}function Ja(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,ie(l2,r))}function l2(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var l=+new Date+r.options.workTime,u=qa(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=dm(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 q=!b||b.length!=v.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),X=0;!q&&X<b.length;++X)q=b[X]!=v.styles[X];q&&f.push(u.line),v.stateAfter=u.save(),u.nextLine()}else v.text.length<=r.options.maxHighlightLength&&Zh(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=ys(r),this.force=l,this.dims=dd(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 c2(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 f2(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 h2(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 Ad(r,s){var l=r.display,u=r.doc;if(s.editorIsHidden)return qi(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&&Ym(r)==0)return!1;uy(r)&&(qi(r),s.dims=dd(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=nd(r.doc,v),b=Sm(r.doc,b));var A=v!=l.viewFrom||b!=l.viewTo||l.lastWrapHeight!=s.wrapperHeight||l.lastWrapWidth!=s.wrapperWidth;QF(r,v,b),l.viewOffset=oi(Le(r.doc,l.viewFrom)),r.display.mover.style.top=l.viewOffset+"px";var x=Ym(r);if(!A&&x==0&&!s.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=f2(r);return x>4&&(l.lineDiv.style.display="none"),d2(r,l.updateLineNumbers,s.dims),x>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,h2(_),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 oy(r,s){for(var l=s.viewport,u=!0;;u=!1){if(!u||!r.options.lineWrapping||s.oldDisplayWidth==ys(r)){if(l&&l.top!=null&&(l={top:Math.min(r.doc.height+od(r.display)-ad(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(!Ad(r,s))break;Zl(r);var f=Ya(r);Ka(r),Do(r,f),Cd(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 xd(r,s){var l=new tc(r,s);if(Ad(r,l)){Zl(r),oy(r,l);var u=Ya(r);Ka(r),Do(r,u),Cd(r,u),l.finish()}}function d2(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 q=x[N];if(!q.hidden)if(!q.node||q.node.parentNode!=v){var X=zF(r,q,_,l);v.insertBefore(X,b)}else{for(;b!=q.node;)b=A(b);var K=f&&s!=null&&s<=_&&q.lineNumber;q.changes&&(Se(q.changes,"gutter")>-1&&(K=!1),Lm(r,q,_,l)),K&&(P(q.lineNumber),q.lineNumber.appendChild(document.createTextNode(H(r.options,_)))),b=q.node.nextSibling}_+=q.size}for(;b;)b=A(b)}function Ed(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",Gt(r,"gutterChanged",r)}function Cd(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 ay(r){var s=r.display,l=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var u=pd(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 uy(r){if(!r.options.lineNumbers)return!1;var s=r.doc,l=H(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",Ed(r.display),!0}return!1}function _d(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 ly(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",Ed(r)}function eu(r){ly(r.display),Dn(r),ay(r)}function p2(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=_d(u.gutters,u.lineNumbers),ly(f),l.init(f)}var nc=0,ui=null;d?ui=-.53:o?ui=15:m?ui=-.7:L&&(ui=-1/3);function cy(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 g2(r){var s=cy(r);return s.x*=ui,s.y*=ui,s}function fy(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=cy(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,q=b.view;N!=A;N=N.parentNode)for(var X=0;X<q.length;X++)if(q[X].node==N){r.display.currentWheelTarget=N;break e}}if(u&&!o&&!$&&v!=null){f&&_&&Qa(r,Math.max(0,A.scrollTop+f*v)),As(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),xd(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 Ht(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 _=Ht(A.from(),b.from()),N=st(A.to(),b.to()),q=A.empty()?b.from()==b.head:A.from()==A.head;v<=l&&--l,s.splice(--v,2,new lt(q?N:_,q?_:N))}}return new Gn(s,l)}function Hi(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 hy(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 Sd(r,s){for(var l=[],u=0;u<r.sel.ranges.length;u++){var f=r.sel.ranges[u];l.push(new lt(hy(f.anchor,s),hy(f.head,s)))}return gr(r.cm,l,r.sel.primIndex)}function dy(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 v2(r,s,l){for(var u=[],f=W(r.first,0),v=f,b=0;b<s.length;b++){var A=s[b],x=dy(A.from,f,v),_=dy(ji(A),f,v);if(f=A.to,v=_,l=="around"){var N=r.sel.ranges[b],q=ee(N.head,N.anchor)<0;u[b]=new lt(q?_:x,q?x:_)}else u[b]=new lt(x,x)}return new Gn(u,r.sel.primIndex)}function Fd(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 py(r,s){return s.from.ch==0&&s.to.ch==0&&he(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function $d(r,s,l,u){function f(Ce){return l?l[Ce]:null}function v(Ce,De,Fe){EF(Ce,De,Fe,u),Gt(Ce,"change",Ce,s)}function b(Ce,De){for(var Fe=[],Ie=Ce;Ie<De;++Ie)Fe.push(new po(_[Ie],f(Ie),u));return Fe}var A=s.from,x=s.to,_=s.text,N=Le(r,A.line),q=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(py(r,s)){var le=b(0,_.length-1);v(q,q.text,K),te&&r.remove(A.line,te),le.length&&r.insert(A.line,le)}else if(N==q)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 po(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]+q.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(q,X+q.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 gy(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,gd(r),Fd(r),vy(r),r.options.direction=s.direction,r.options.lineWrapping||id(r),r.options.mode=s.modeOption,Dn(r)}function vy(r){(r.doc.direction=="rtl"?ge:z)(r.display.lineDiv,"CodeMirror-rtl")}function m2(r){Pn(r,function(){vy(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 Td(r,s){var l={from:Qe(s.from),to:ji(s),text:ii(r,s.from,s.to)};return by(r,l,s.from.line,s.to.line+1),Vi(r,function(u){return by(u,l,s.from.line,s.to.line+1)},!0),l}function my(r){for(;r.length;){var s=he(r);if(s.ranges)r.pop();else break}}function y2(r,s){if(s)return my(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 yy(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=y2(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(Td(r,s));else{var x=he(f.done);for((!x||!x.ranges)&&ic(r.sel,f.done),b={changes:[Td(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 b2(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 w2(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||b2(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&&my(f.undone)}function ic(r,s){var l=he(s);l&&l.ranges&&l.equals(r)||s.push(r)}function by(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 D2(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 A2(r,s){var l=s["spans_"+r.id];if(!l)return null;for(var u=[],f=0;f<s.text.length;++f)u.push(D2(l[f]));return u}function wy(r,s){var l=A2(r,s),u=ed(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 Ao(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 q in _)(N=q.match(/^spans_(\d+)$/))&&Se(s,Number(N[1]))>-1&&(he(A)[q]=_[q],delete _[q])}}return u}function kd(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([kd(r.sel.primary(),s,l,f)],0),u)}function Dy(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]=kd(r.sel.ranges[v],s[v],null,f);var b=gr(r.cm,u,r.sel.primIndex);un(r,b,l)}function Ld(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 Ay(r,s,l,u){un(r,Hi(s,l),u)}function x2(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(qe(r,f[v].anchor),qe(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 xy(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),w2(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=x2(r,s,l));var u=l&&l.bias||(ee(s.primary().head,r.sel.primary().head)<0?-1:1);Ey(r,_y(r,s,u,!0)),!(l&&l.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&wo(r.cm)}function Ey(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 Cy(r){Ey(r,_y(r,r.sel,null,!1))}function _y(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 xo(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 q=x.find(u<0?1:-1),X=void 0;if((u<0?N:_)&&(q=Sy(r,q,-u,q&&q.line==s.line?v:null)),q&&q.line==s.line&&(X=ee(q,l))&&(u<0?X<0:X>0))return xo(r,q,s,u,f)}var K=x.find(u<0?-1:1);return(u<0?_:N)&&(K=Sy(r,K,u,K.line==s.line?v:null)),K?xo(r,K,s,u,f):null}}return s}function ac(r,s,l,u,f){var v=u||1,b=xo(r,s,l,v,f)||!f&&xo(r,s,l,v,!0)||xo(r,s,l,-v,f)||!f&&xo(r,s,l,-v,!0);return b||(r.cantEdit=!0,W(r.first,0))}function Sy(r,s,l,u){return l<0&&s.ch==0?s.line>r.first?qe(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 Fy(r){r.setSelection(W(r.firstLine(),0),W(r.lastLine()),I)}function $y(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=qe(r,f)),v&&(u.to=qe(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 Eo(r,s,l){if(r.cm){if(!r.cm.curOp)return Kt(r.cm,Eo)(r,s,l);if(r.cm.state.suppressEdits)return}if(!((hn(r,"beforeChange")||r.cm&&hn(r.cm,"beforeChange"))&&(s=$y(r,s,!0),!s))){var u=wm&&!l&&wF(r,s.from,s.to);if(u)for(var f=u.length-1;f>=0;--f)Ty(r,{from:u[f].from,to:u[f].to,text:f?[""]:s.text,origin:s.origin});else Ty(r,s)}}function Ty(r,s){if(!(s.text.length==1&&s.text[0]==""&&ee(s.from,s.to)==0)){var l=Sd(r,s);yy(r,s,l,r.cm?r.cm.curOp.id:NaN),nu(r,s,l,ed(r,s));var u=[];Vi(r,function(f,v){!v&&Se(u,f.history)==-1&&(Oy(f.history,s),u.push(f.history)),nu(f,s,null,ed(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 q=hn(r,"beforeChange")||r.cm&&hn(r.cm,"beforeChange"),X=function(le){var me=v.changes[le];if(me.origin=s,q&&!$y(r,me,!1))return A.length=0,{};N.push(Td(r,me));var we=le?Sd(r,me):he(A);nu(r,me,we,wy(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&&(Oy(De.history,me),Ce.push(De.history)),nu(De,me,null,wy(De,me))})},K=v.changes.length-1;K>=0;--K){var te=X(K);if(te)return te.v}}}}function ky(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){ky(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);ky(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=Sd(r,s)),r.cm?E2(r.cm,s,u):$d(r,s,u),oc(r,l,I),r.cantEdit&&ac(r,W(r.firstLine(),0))&&(r.cantEdit=!1)}}function E2(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),$d(u,s,l,Qm(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)),dF(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&&!py(r.doc,s)?Ui(r,v.line,"text"):Dn(r,v.line,b.line+1,_);var N=hn(r,"changes"),q=hn(r,"change");if(q||N){var X={from:v,to:b,text:s.text,removed:s.removed,origin:s.origin};q&&Gt(r,"change",r,X),N&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(X)}r.display.selForContextMenu=null}function Co(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)),Eo(r,{from:l,to:u,text:s,origin:f})}function Ly(r,s,l,u){l<r.line?r.line+=u:s<r.line&&(r.line=s,r.ch=0)}function By(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++)Ly(v.ranges[A].anchor,s,l,u),Ly(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 Oy(r,s){var l=s.from.line,u=s.to.line,f=s.text.length-(u-l)-1;By(r.done,l,u,f),By(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,CF(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(){Py(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,Py(l,u,f),Gt(l,"lineWidgetChanged",l,r,ut(u))}))},dn(ou);function Py(r,s,l){oi(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&Dd(r,l)}function C2(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&&Dd(v,f.height),v.curOp.forceUpdate=!0}return!0}),v&&Gt(v,"lineWidgetAdded",v,f,typeof s=="number"?s:ut(s)),f}var Ny=0,Wi=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++Ny};Wi.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&Es(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=Ha(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=vF(b.markedSpans,A),A.from==null&&this.collapsed&&!zi(this.doc,b)&&r&&nr(b,mo(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&&Cy(r.doc)),r&&Gt(r,"markerCleared",r,this,u,f),s&&Cs(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=Ha(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=ud(u,v);if(b&&(qm(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 _o(r,s,l,u,f){if(u&&u.shared)return _2(r,s,l,u,f);if(r.cm&&!r.cm.curOp)return Kt(r.cm,_o)(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(_m(r,s.line,s,l,v)||s.line!=l.line&&_m(r,l.line,s,l,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");gF()}v.addToHistory&&yy(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(q){x&&v.collapsed&&!x.options.lineWrapping&&dr(q)==x.display.maxLine&&(_=!0),v.collapsed&&A!=s.line&&nr(q,0),mF(q,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(q){zi(r,q)&&nr(q,0)}),v.clearOnEnter&&Ae(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(pF(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),v.collapsed&&(v.id=++Ny,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&&Cy(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 _2(r,s,l,u,f){u=se(u),u.shared=!1;var v=[_o(r,s,l,u,f)],b=v[0],A=u.widgetNode;return Vi(r,function(x){A&&(u.widgetNode=A.cloneNode(!0)),v.push(_o(x,qe(x,s),qe(x,l),u,f));for(var _=0;_<x.linked.length;++_)if(x.linked[_].isParent)return;b=he(v)}),new au(v,b)}function Iy(r){return r.findMarks(W(r.first,0),r.clipPos(W(r.lastLine())),function(s){return s.parent})}function S2(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=_o(r,v,b,u.primary,u.primary.type);u.markers.push(A),A.parent=u}}}function F2(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 $2=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 po("",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=Hi(v),this.history=new rc(null),this.id=++$2,this.modeOption=s,this.lineSep=u,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),$d(this,{from:v,to:v,text:r}),un(this,Hi(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=ho(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;Eo(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,Hi(s),I)}),replaceRange:function(r,s,l,u){s=qe(this,s),l=l?qe(this,l):s,Co(this,r,s,l,u)},getRange:function(r,s,l){var u=ii(this,qe(this,r),qe(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 qe(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){Ay(this,qe(this,typeof r=="number"?W(r,s||0):r),null,l)}),setSelection:Xt(function(r,s,l){Ay(this,qe(this,r),qe(this,s||r),l)}),extendSelection:Xt(function(r,s,l){sc(this,qe(this,r),s&&qe(this,s),l)}),extendSelections:Xt(function(r,s){Dy(this,hm(this,r),s)}),extendSelectionsBy:Xt(function(r,s){var l=be(this.sel.ranges,r);Dy(this,hm(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(qe(this,r[f].anchor),qe(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(qe(this,r),qe(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"&&v2(this,u,s),x=u.length-1;x>=0;x--)Eo(this,u[x]);A?xy(this,A):this.cm&&wo(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:Ao(this.history.done),undone:Ao(this.history.undone)}},setHistory:function(r){var s=this.history=new rc(this.history);s.done=Ao(r.done.slice(0),null,!0),s.undone=Ao(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 C2(this,r,s,l)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,l){return _o(this,qe(this,r),qe(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=qe(this,r),_o(this,r,r,l,"bookmark")},findMarksAt:function(r){r=qe(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=qe(this,r),s=qe(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}),qe(this,W(l,s))},indexFromPos:function(r){r=qe(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(ho(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(ho(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}],S2(u,Iy(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),F2(Iy(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=Ao(this.history.done,u),r.history.undone=Ao(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&&m2(this.cm))})}),An.prototype.eachLine=An.prototype.iter;var Ry=0;function T2(r){var s=this;if(My(s),!(Tt(s,r)||ai(s.display,r))){an(r),d&&(Ry=+new Date);var l=ws(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=qe(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"};Eo(s.doc,K),xy(s.doc,Hi(qe(s.doc,l),qe(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 q;if(s.state.draggingText&&!s.state.draggingText.copy&&(q=s.listSelections()),oc(s.doc,Hi(l,l)),q)for(var X=0;X<q.length;++X)Co(s.doc,"",q[X].anchor,q[X].head,"drag");s.replaceSelection(N,"around","paste"),s.display.input.focus()}}catch{}}}}function k2(r,s){if(d&&(!r.state.draggingText||+new Date-Ry<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 L2(r,s){var l=ws(r,s);if(l){var u=document.createDocumentFragment();vd(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 My(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function zy(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 Uy=!1;function B2(){Uy||(O2(),Uy=!0)}function O2(){var r;Ae(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,zy(P2)},100))}),Ae(window,"blur",function(){return zy(bo)})}function P2(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 N2(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 I2(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(" "),N2),v=0;v<f.length;v++){var b=void 0,A=void 0;v==f.length-1?(A=f.join(" "),b=u):(A=f.slice(0,v+1).join(" "),b="...");var 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 So(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 So(r,s.fallthrough,l,u);for(var v=0;v<s.fallthrough.length;v++){var b=So(r,s.fallthrough[v],l,u);if(b)return b}}}function qy(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 jy(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 Fo(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--)Co(r.doc,"",u[A].from,u[A].to,"+delete");wo(r)})}function Bd(r,s,l){var u=ft(r.text,s+l,l);return u<0||u>r.text.length?null:u}function Od(r,s,l){var u=Bd(r,s.ch,l);return u==null?null:new W(s.line,u,l<0?"after":"before")}function Pd(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=vo(s,l);_=f<0?l.text.length-1:0;var q=Ir(s,N,_).top;_=et(function(X){return Ir(s,N,X).top==q},f<0==(b.level==1)?b.from:b.to-1,_),x=="before"&&(_=Bd(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 R2(r,s,l,u){var f=Dt(s,r.doc.direction);if(!f)return Od(s,l,u);l.ch>=s.text.length?(l.ch=s.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var v=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 Od(s,l,u);var A=function(we,Ce){return Bd(s,we instanceof W?we.ch:we,Ce)},x,_=function(we){return r.options.lineWrapping?(x=x||vo(r,s),Xm(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 q=b.level==1==u<0,X=A(l,q?1:-1);if(X!=null&&(q?X<=b.to&&X<=N.end:X>=b.from&&X>=N.begin)){var K=q?"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:Fy,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),I)},killLine:function(r){return Fo(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 Fo(r,function(s){return{from:W(s.from().line,0),to:qe(r.doc,W(s.to().line+1,0))}})},delLineLeft:function(r){return Fo(r,function(s){return{from:W(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return Fo(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 Fo(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 Vy(r,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(s){return Wy(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return M2(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/)?Wy(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);wo(r)})},openLine:function(r){return r.replaceSelection(`
28
+ `,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function Vy(r,s){var l=Le(r.doc,s),u=dr(l);return u!=l&&(s=ut(u)),Pd(!0,r,u,s,1)}function M2(r,s){var l=Le(r.doc,s),u=AF(l);return u!=l&&(s=ut(u)),Pd(!0,r,l,s,-1)}function Wy(r,s){var l=Vy(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 z2(r,s,l){for(var u=0;u<r.state.keyMaps.length;u++){var f=So(s,r.state.keyMaps[u],l,r);if(f)return f}return r.options.extraKeys&&So(s,r.options.extraKeys,l,r)||So(s,r.options.keyMap,l,r)}var U2=new fe;function fu(r,s,l,u){var f=r.state.keySeq;if(f){if(qy(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:U2.set(50,function(){r.state.keySeq==f&&(r.state.keySeq=null,r.display.input.reset())}),Gy(r,f+" "+s,l,u))return!0}return Gy(r,s,l,u)}function Gy(r,s,l,u){var f=z2(r,s,u);return f=="multi"&&(r.state.keySeq=s),f=="handled"&&Gt(r,"keyHandled",r,s,l),(f=="handled"||f=="multi")&&(an(l),md(r)),!!f}function Ky(r,s){var l=jy(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 q2(r,s,l){return fu(r,"'"+l+"'",s,function(u){return fc(r,u,!0)})}var Nd=null;function Xy(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=Ky(s,r);$&&(Nd=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)&&H2(s)}}function H2(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 Qy(r){r.keyCode==16&&(this.doc.sel.shift=!1),Tt(this,r)}function Yy(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==Nd){Nd=null,an(r);return}if(!($&&(!r.which||r.which<10)&&Ky(s,r))){var f=String.fromCharCode(u??l);f!="\b"&&(q2(s,r,f)||s.display.input.onKeyPress(r))}}}var j2=400,Id=function(r,s,l){this.time=r,this.pos=s,this.button=l};Id.prototype.compare=function(r,s,l){return this.time+j2>r&&ee(s,this.pos)==0&&l==this.button};var hu,du;function V2(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 Id(l,r,s),hu=null,"double"):(hu=new Id(l,r,s),du=null,"single")}function Zy(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(!Rd(s,r)){var u=ws(s,r),f=Ma(r),v=u?V2(u,f):"single";Xe(s).focus(),f==1&&s.state.selectingText&&s.state.selectingText(r),!(u&&W2(s,f,u,v,r))&&(f==1?u?K2(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):yd(s)))}}}function W2(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 G2(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 K2(r,s,l,u){d?setTimeout(ie(Jm,r),0):r.curOp.focus=ue(ze(r));var f=G2(r,l,u),v=r.doc.sel,b;r.options.dragDrop&&Qh&&!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)?X2(r,u,s,f):Q2(r,u,s,f)}function X2(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:yd(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 Jy(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),qe(r.doc,W(s.line+1,0)));var u=l(r,s);return new lt(u.from,u.to)}function Q2(r,s,l,u){d&&yd(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=ws(r,s,!0,!0),A=-1;else{var N=Jy(r,l,u.unit);u.extend?b=kd(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):Ld(v,A,b,G):(A=0,un(v,new Gn([b],0),G),x=v.sel);var q=l;function X(De){if(ee(q,De)!=0)if(q=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=Jy(r,De,u.unit),jt=En.anchor,Rt;ee(nn.anchor,jt)>0?(Rt=nn.head,jt=Ht(En.from(),nn.anchor)):(Rt=nn.anchor,jt=st(En.to(),nn.head));var Lt=x.ranges.slice(0);Lt[A]=Y2(r,new lt(qe(v,jt),Rt)),un(v,gr(r,Lt,A),G)}}var K=f.wrapper.getBoundingClientRect(),te=0;function le(De){var Fe=++te,Ie=ws(r,De,!0,u.unit=="rectangle");if(Ie)if(ee(Ie,q)!=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 Y2(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),q=N-b||(u.ch-l.ch)*(A.level==1?-1:1);N==x-1||N==x?_=q<0:_=q>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 e1(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),q=r.display.gutterSpecs[x];return wt(r,l,r,N,q.className,s),Ra(s)}}}function Rd(r,s){return e1(r,s,"gutterClick",!0)}function t1(r,s){ai(r.display,s)||Z2(r,s)||Tt(r,s,"contextmenu")||oe||r.display.input.onContextMenu(s)}function Z2(r,s){return hn(r,"gutterContextMenu")?e1(r,s,"gutterContextMenu",!1):!1}function n1(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 $o={toString:function(){return"CodeMirror.Init"}},r1={},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,_){_!=$o&&v(A,x,_)}:v)}r.defineOption=l,r.Init=$o,l("value","",function(u,f){return u.setValue(f)},!0),l("mode",null,function(u,f){u.doc.modeOption=f,Fd(u)},!0),l("indentUnit",2,Fd,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(u){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--)Co(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!=$o&&u.refresh()}),l("specialCharPlaceholder",FF,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){n1(u),eu(u)},!0),l("keyMap","default",function(u,f,v){var b=cc(f),A=v!=$o&&cc(v);A&&A.detach&&A.detach(u,b),b.attach&&b.attach(u,A||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,t$,!0),l("gutters",[],function(u,f){u.display.gutterSpecs=_d(f,u.options.lineNumbers),eu(u)},!0),l("fixedGutter",!0,function(u,f){u.display.gutters.style.left=f?pd(u.display)+"px":"0",u.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(u){return Do(u)},!0),l("scrollbarStyle","native",function(u){sy(u),Do(u),u.display.scrollbars.setScrollTop(u.doc.scrollTop),u.display.scrollbars.setScrollLeft(u.doc.scrollLeft)},!0),l("lineNumbers",!1,function(u,f){u.display.gutterSpecs=_d(u.options.gutters,f),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"&&(bo(u),u.display.input.blur()),u.display.input.readOnlyChanged(f)}),l("screenReaderLabel",null,function(u,f){f=f===""?null:f,u.display.input.screenReaderLabelChanged(f)}),l("disableInput",!1,function(u,f){f||u.display.input.reset()},!0),l("dragDrop",!0,e$),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,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 e$(r,s,l){var u=l&&l!=$o;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 t$(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"),id(r)),gd(r),Dn(r),Ga(r),setTimeout(function(){return Do(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(r1,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 p2(r,u,f,s);v.wrapper.CodeMirror=this,n1(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),sy(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),n$(this),B2(),Es(this),this.curOp.forceUpdate=!0,gy(this,u),s.autofocus&&!B||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&bd(l)},20):bo(this);for(var b in hc)hc.hasOwnProperty(b)&&hc[b](this,s[b],$o);uy(this),s.finishInit&&s.finishInit(this);for(var A=0;A<Md.length;++A)Md[A](this);Cs(this),g&&s.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}xt.defaults=r1,xt.optionHandlers=hc;function n$(r){var s=r.display;Ae(s.scroller,"mousedown",Kt(r,Zy)),d&&p<11?Ae(s.scroller,"dblclick",Kt(r,function(x){if(!Tt(r,x)){var _=ws(r,x);if(!(!_||Rd(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 t1(r,x)}),Ae(s.input.getField(),"contextmenu",function(x){s.scroller.contains(x.target)||t1(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,q=_.top-x.top;return N*N+q*q>20*20}Ae(s.scroller,"touchstart",function(x){if(!Tt(r,x)&&!v(x)&&!Rd(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"),q;!_.prev||b(_,_.prev)?q=new lt(N,N):!_.prev.prev||b(_,_.prev.prev)?q=r.findWordAt(N):q=new lt(W(N.line,0),qe(r.doc,W(N.line+1,0))),r.setSelection(q.anchor,q.head),r.focus(),an(x)}f()}),Ae(s.scroller,"touchcancel",f),Ae(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Qa(r,s.scroller.scrollTop),As(r,s.scroller.scrollLeft,!0),wt(r,"scroll",r))}),Ae(s.scroller,"mousewheel",function(x){return fy(r,x)}),Ae(s.scroller,"DOMMouseScroll",function(x){return fy(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)||(L2(r,x),ti(x))},start:function(x){return k2(r,x)},drop:Kt(r,T2),leave:function(x){Tt(r,x)||My(r)}};var A=s.input.getField();Ae(A,"keyup",function(x){return Qy.call(r,x)}),Ae(A,"keydown",Kt(r,Xy)),Ae(A,"keypress",Kt(r,Yy)),Ae(A,"focus",function(x){return bd(r,x)}),Ae(A,"blur",function(x){return bo(r,x)})}var Md=[];xt.defineInitHook=function(r){return Md.push(r)};function pu(r,s,l,u){var f=r.doc,v;l==null&&(l="add"),l=="smart"&&(f.mode.indent?v=qa(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 q="",X=0;if(r.options.indentWithTabs)for(var K=Math.floor(N/b);K;--K)X+=b,q+=" ";if(X<N&&(q+=ye(N-X)),q!=_)return Co(f,q,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);Ld(f,te,new lt(me,me));break}}}var vr=null;function dc(r){vr=r}function zd(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 q=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")};Eo(r.doc,me),Gt(r,"inputRead",r,me)}s&&!A&&s1(r,s),wo(r),r.curOp.updateInput<2&&(r.curOp.updateInput=q),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function i1(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 zd(s,l,0,null,"paste")}),!0}function s1(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 o1(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 Ud(r,s,l,u){r.setAttribute("autocorrect",l?"on":"off"),r.setAttribute("autocapitalize",u?"on":"off"),r.setAttribute("spellcheck",!!s)}function a1(){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 r$(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&&wo(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 q=N;q<v;++q)pu(this,q,u);var X=this.doc.sel.ranges;x.ch==0&&f.length==X.length&&X[b].from().ch>0&&Ld(this.doc,b,new lt(x,X[b].to()),I)}}}),getTokenAt:function(u,f){return mm(this,u,f)},getLineTokens:function(u,f){return mm(this,W(u),f,!0)},getTokenTypeAt:function(u){u=qe(this.doc,u);var f=pm(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 q=b._global[N];q.pred(A,this)&&Se(v,q.val)==-1&&v.push(q.val)}return v},getStateAfter:function(u,f){var v=this.doc;return u=Wn(v,u??v.first+v.size-1),qa(this,u+1,f).state},cursorCoords:function(u,f){var v,b=this.doc.sel.primary();return u==null?v=b.head:typeof u=="object"?v=qe(this.doc,u):v=u?b.from():b.to(),pr(this,v,f||"page")},charCoords:function(u,f){return Xl(this,qe(this.doc,u),f||"page")},coordsChar:function(u,f){return u=Wm(this,u,f||"page"),fd(this,u.left,u.top)},lineAtHeight:function(u,f){return u=Wm(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 mo(this.display)},defaultCharWidth:function(){return yo(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,qe(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 q=Math.max(x.wrapper.clientHeight,this.doc.height),X=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(b=="above"||u.bottom+f.offsetHeight>q)&&u.top>f.offsetHeight?_=u.top-f.offsetHeight:u.bottom+f.offsetHeight<=q&&(_=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&&e2(this,{left:N,top:_,right:N+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:pn(Xy),triggerOnKeyPress:pn(Yy),triggerOnKeyUp:Qy,triggerOnMouseDown:pn(Zy),execCommand:function(u){if(cu.hasOwnProperty(u))return cu[u].call(null,this)},triggerElectric:pn(function(u){s1(this,u)}),findPosH:function(u,f,v,b){var A=1;f<0&&(A=-1,f=-f);for(var x=qe(this.doc,u),_=0;_<f&&(x=qd(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()?qd(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"):Fo(this,function(A){var x=qd(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 _=qe(this.doc,u),N=0;N<f;++N){var q=pr(this,_,"div");if(x==null?x=q.left:q.left=x,_=u1(this,q,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 q=pr(v,N.head,"div");N.goalColumn!=null&&(q.left=N.goalColumn),A.push(q.left);var X=u1(v,q,u,f);return f=="page"&&N==b.sel.primary()&&Dd(v,Xl(v,X,"div").top-q.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(q){return Re(q,x)}:/\s/.test(_)?function(q){return/\s/.test(q)}:function(q){return!/\s/.test(q)&&!Re(q)};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:ad(this),clientWidth:ys(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?t2(this,u):ty(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 Es(this)},endOperation:function(){return Cs(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),Ed(this.display),(u==null||Math.abs(u-mo(this.display))>.5||this.options.lineWrapping)&&gd(this),wt(this,"refresh",this)}),swapDoc:pn(function(u){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),gy(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 qd(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=R2(r.cm,A,s,l):De=Od(A,s,l);if(De==null)if(!Ce&&_())s=Pd(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 q=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"),q&&q!=me){l<0&&(l=1,N(),s.sticky="after");break}if(me&&(q=me),l>0&&!N(!te))break}var we=ac(r,s,v,b,!0);return Ue(v,we)&&(we.hitSide=!0),we}function u1(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*mo(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 _;_=fd(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,Ud(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)||i1(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=o1(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=a1(),q=N.firstChild;Ud(q),u.display.lineSpace.insertBefore(N,u.display.lineSpace.firstChild),q.value=vr.text.join(`
35
+ `);var X=ue(f.ownerDocument);_e(q),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=Zm(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(Ht(v,b),u)==0&&ee(st(v,b),f)==0)){var A=s.display.view,x=u.line>=s.display.viewFrom&&l1(s,u)||{node:A[0].measure.map[2],offset:0},_=f.line<s.display.viewTo&&l1(s,f);if(!_){var N=A[A.length-1].measure,q=N.maps?N.maps[N.maps.length-1]:N.map;_={node:q[q.length-1],offset:q[q.length-2]-q[q.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&&i$(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,Hi(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=Ds(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=Ds(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 q=r.doc.splitLines(s$(r,A,N,b,_)),X=ii(r.doc,W(b,0),W(_,Le(r.doc,_).text.length));q.length>1&&X.length>1;)if(he(q)==he(X))q.pop(),X.pop(),_--;else if(q[0]==X[0])q.shift(),X.shift(),b++;else break;for(var K=0,te=0,le=q[0],me=X[0],we=Math.min(le.length,me.length);K<we&&le.charCodeAt(K)==me.charCodeAt(K);)++K;for(var Ce=he(q),De=he(X),Fe=Math.min(Ce.length-(q.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(q.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++;q[q.length-1]=Ce.slice(0,Ce.length-te).replace(/^\u200b+/,""),q[0]=q[0].slice(K).replace(/\u200b+$/,"");var Ie=W(b,K),Oe=W(_,X.length?he(X).length-te:0);if(q.length>1||q[0]||ee(Ie,Oe))return Co(r.doc,q,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,zd)(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 l1(r,s){var l=ud(r,s.line);if(!l||l.hidden)return null;var u=Le(r.doc,s.line),f=Rm(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=Um(f.map,s.ch,b);return x.offset=x.collapse=="right"?x.end:x.start,x}function i$(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function To(r,s){return s&&(r.bad=!0),r}function s$(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 q(K){K&&(N(),v+=K)}function X(K){if(K.nodeType==1){var te=K.getAttribute("cm-text");if(te){q(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))&&q(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&&q(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 To(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 o$(v,s,l)}}function o$(r,s,l){var u=r.text.firstChild,f=!1;if(!s||!Z(u,s))return To(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 To(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 q=N(b,A,l);if(q)return To(q,f);for(var X=A.nextSibling,K=b?b.nodeValue.length-l:0;X;X=X.nextSibling){if(q=N(X,X.firstChild,0),q)return To(W(q.line,q.ch-K),f);K+=X.textContent.length}for(var te=A.previousSibling,le=l;te;te=te.previousSibling){if(q=N(te,te.firstChild,-1),q)return To(W(q.line,q.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)||i1(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=o1(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=a1(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;Ud(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=Zm(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(){zd(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=ws(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,Hi(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 q;g&&(q=f.ownerDocument.defaultView.scrollY),u.input.focus(),g&&f.ownerDocument.defaultView.scrollTo(null,q),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,Fy)(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 a$(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 u$(r){r.off=on,r.on=Ae,r.wheelEventPixels=g2,r.Doc=An,r.splitLines=za,r.countColumn=J,r.findColumn=ae,r.isWordChar=Pe,r.Pass=ke,r.signal=wt,r.Line=po,r.changeEnd=ji,r.scrollbarModel=iy,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=jy,r.isModifierKey=qy,r.lookupKey=So,r.normalizeKeyMap=I2,r.StringStream=kt,r.SharedTextMarker=au,r.TextMarker=Wi,r.LineWidget=ou,r.e_preventDefault=an,r.e_stopPropagation=ms,r.e_stop=ti,r.addClass=ge,r.contains=Z,r.rmClass=z,r.keyNames=Gi}J2(xt),r$(xt);var l$="iter insert remove copy getEditor constructor".split(" ");for(var gc in An.prototype)An.prototype.hasOwnProperty(gc)&&Se(l$,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=fo,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=a$,u$(xt),xt.version="5.65.13",xt})}(aBe)),If}var uBe=Pa();const lBe=L3(uBe);var sA={},oA;function bS(){return oA||(oA=1,function(e,t){(function(n){n(Pa())})(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(Ht){return{type:Ht,style:"keyword"}}var H=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:H,with:H,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 H=!1,W,ee=!1;(W=T.next())!=null;){if(!H){if(W=="/"&&!ee)return;W=="["?ee=!0:ee&&W=="]"&&(ee=!1)}H=!H&&W=="\\"}}var C,E;function S(T,H,W){return C=T,E=W,H}function O(T,H){var W=T.next();if(W=='"'||W=="'")return H.tokenize=B(W),H.tokenize(T,H);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("*")?(H.tokenize=k,k(T,H)):T.eat("/")?(T.skipToEnd(),S("comment","comment")):Or(T,H,1)?(L(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(T.eat("="),S("operator","operator",T.current()));if(W=="`")return H.tokenize=M,M(T,H);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!=">"||!H.lexical||H.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(H.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(H,W){var ee=!1,Ue;if(h&&H.peek()=="@"&&H.match($))return W.tokenize=O,S("jsonld-keyword","meta");for(;(Ue=H.next())!=null&&!(Ue==T&&!ee);)ee=!ee&&Ue=="\\";return ee||(W.tokenize=O),S("string","string")}}function k(T,H){for(var W=!1,ee;ee=T.next();){if(ee=="/"&&W){H.tokenize=O;break}W=ee=="*"}return S("comment","comment")}function M(T,H){for(var W=!1,ee;(ee=T.next())!=null;){if(!W&&(ee=="`"||ee=="$"&&T.eat("{"))){H.tokenize=O;break}W=!W&&ee=="\\"}return S("quasi","string-2",T.current())}var U="([{}])";function j(T,H){H.fatArrowAt&&(H.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 Ht=T.string.charAt(st),Wn=U.indexOf(Ht);if(Wn>=0&&Wn<3){if(!Ue){++st;break}if(--Ue==0){Ht=="("&&(Qe=!0);break}}else if(Wn>=3&&Wn<6)++Ue;else if(y.test(Ht))Qe=!0;else if(/["'\/`]/.test(Ht))for(;;--st){if(st==0)return;var qe=T.string.charAt(st-1);if(qe==Ht&&T.string.charAt(st-2)!="\\"){st--;break}}else if(Qe&&!Ue){++st;break}}Qe&&!Ue&&(H.fatArrowAt=st)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function oe(T,H,W,ee,Ue,Qe){this.indented=T,this.column=H,this.type=W,this.prev=Ue,this.info=Qe,ee!=null&&(this.align=ee)}function Y(T,H){if(!p)return!1;for(var W=T.localVars;W;W=W.next)if(W.name==H)return!0;for(var ee=T.context;ee;ee=ee.prev)for(var W=ee.vars;W;W=W.next)if(W.name==H)return!0}function z(T,H,W,ee,Ue){var Qe=T.cc;for(P.state=T,P.stream=Ue,P.marked=null,P.cc=Qe,P.style=H,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":H}}}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,H){for(var W=H;W;W=W.next)if(W.name==T)return!0;return!1}function V(T){var H=P.state;if(P.marked="def",!!p){if(H.context){if(H.lexical.info=="var"&&H.context&&H.context.block){var W=Z(T,H.context);if(W!=null){H.context=W;return}}else if(!R(T,H.localVars)){H.localVars=new $e(T,H.localVars);return}}o.globalVars&&!R(T,H.globalVars)&&(H.globalVars=new $e(T,H.globalVars))}}function Z(T,H){if(H)if(H.block){var W=Z(T,H.prev);return W?W==H.prev?H:new ge(W,H.vars,!0):null}else return R(T,H.vars)?H:new ge(H.prev,new $e(T,H.vars),!1);else return null}function ue(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function ge(T,H,W){this.prev=T,this.vars=H,this.block=W}function $e(T,H){this.name=T,this.next=H}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,H){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,H)};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 H(W){return W==T?D():T==";"||W=="}"||W==")"||W=="]"?F():D(H)}return H}function Se(T,H){return T=="var"?D(se("vardef",H),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,co)):T=="function"?D(Lr):T=="for"?D(se("form"),Xe,Nl,Se,ie,J):T=="class"||g&&H=="interface"?(P.marked="keyword",D(se("form",T=="class"?T:H),Rl,J)):T=="variable"?g&&H=="declare"?(P.marked="keyword",D(Se)):g&&(H=="module"||H=="enum"||H=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",H=="enum"?D(ho):H=="type"?D(Il,fe("operator"),Ae,fe(";")):D(se("form"),wn,fe("{"),se("}"),Vn,J,J)):g&&H=="namespace"?(P.marked="keyword",D(se("form"),ke,Se,J)):g&&H=="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):H=="@"?D(ke,Se):F(se("stat"),ke,fe(";"),J)}function vt(T){if(T=="(")return D(hr,fe(")"))}function ke(T,H){return re(T,H,!1)}function I(T,H){return re(T,H,!0)}function G(T){return T!="("?F():D(se(")"),ae,fe(")"),J)}function re(T,H,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&&H=="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,H){return T==","?D(ae):ye(T,H,!1)}function ye(T,H,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(H)||g&&H=="!"?D(ee):g&&H=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?D(se(">"),et(Ae,">"),J,ee):H=="?"?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&&H=="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,H){return T!="quasi"?F():H.slice(H.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(H){return H=="."?D(T?Pe:Be):H=="variable"&&g?D(an,T?ye:ce):F(T?I:ke)}}function Be(T,H){if(H=="target")return P.marked="keyword",D(ce)}function Pe(T,H){if(H=="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,H){if(T=="async")return P.marked="property",D(it);if(T=="variable"||P.style=="keyword"){if(P.marked="property",H=="get"||H=="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(H))return P.marked="keyword",D(it);if(T=="[")return D(ke,tn,fe("]"),ft);if(T=="spread")return D(I,ft);if(H=="*")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,H,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(Ht,Wn){return Ht==H||Wn==H?F():F(T)},ee)}return Ue==H||Qe==H?D():W&&W.indexOf(";")>-1?F(T):D(fe(H))}return function(Ue,Qe){return Ue==H||Qe==H?D():F(T,ee)}}function Bn(T,H,W){for(var ee=3;ee<arguments.length;ee++)P.cc.push(arguments[ee]);return D(se(H,W),et(T,H),J)}function Vn(T){return T=="}"?D():F(Se,Vn)}function tn(T,H){if(g){if(T==":")return D(Ae);if(H=="?")return D(tn)}}function lo(T,H){if(g&&(T==":"||H=="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,H){if(H=="is")return P.marked="keyword",D()}function Ae(T,H){if(H=="keyof"||H=="typeof"||H=="infer"||H=="readonly")return P.marked="keyword",D(H=="typeof"?I:Ae);if(T=="variable"||H=="void")return P.marked="type",D(dn);if(H=="|"||H=="&")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,H){if(T=="variable"||P.style=="keyword")return P.marked="property",D(wt);if(H=="?"||T=="number"||T=="string")return D(wt);if(T==":")return D(Ae);if(T=="[")return D(fe("variable"),lo,fe("]"),wt);if(T=="(")return F(Br,wt);if(!T.match(/[;\}\)\],]/))return D()}function Tt(T,H){return T!="quasi"?F():H.slice(H.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,H){return T=="variable"&&P.stream.match(/^\s*[?:]/,!1)||H=="?"?D(hn):T==":"?D(Ae):T=="spread"?D(hn):F(Ae)}function dn(T,H){if(H=="<")return D(se(">"),et(Ae,">"),J,dn);if(H=="|"||T=="."||H=="&")return D(Ae);if(T=="[")return D(Ae,fe("]"),dn);if(H=="extends"||H=="implements")return P.marked="keyword",D(Ae);if(H=="?")return D(Ae,fe(":"),Ae)}function an(T,H){if(H=="<")return D(se(">"),et(Ae,">"),J,dn)}function ms(){return F(Ae,Ra)}function Ra(T,H){if(H=="=")return D(Ae)}function ti(T,H){return H=="enum"?(P.marked="keyword",D(ho)):F(wn,tn,tr,Yh)}function wn(T,H){if(g&&ue(H))return P.marked="keyword",D(wn);if(T=="variable")return V(H),D();if(T=="spread")return D(wn);if(T=="[")return Bn(Qh,"]");if(T=="{")return Bn(Ma,"}")}function Ma(T,H){return T=="variable"&&!P.stream.match(/^\s*:/,!1)?(V(H),D(tr)):(T=="variable"&&(P.marked="property"),T=="spread"?D(wn):T=="}"?F():T=="["?D(ke,fe("]"),fe(":"),Ma):D(fe(":"),wn,tr))}function Qh(){return F(wn,tr)}function tr(T,H){if(H=="=")return D(I)}function Yh(T){if(T==",")return D(ti)}function co(T,H){if(T=="keyword b"&&H=="else")return D(se("form","else"),Se,J)}function Nl(T,H){if(H=="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,H){return T==")"?D():T==";"?D(Ni):H=="in"||H=="of"?(P.marked="keyword",D(ke,Ni)):F(ke,Ni)}function Lr(T,H){if(H=="*")return P.marked="keyword",D(Lr);if(T=="variable")return V(H),D(Lr);if(T=="(")return D(ze,se(")"),et(hr,")"),J,Dt,Se,ie);if(g&&H=="<")return D(se(">"),et(ms,">"),J,Lr)}function Br(T,H){if(H=="*")return P.marked="keyword",D(Br);if(T=="variable")return V(H),D(Br);if(T=="(")return D(ze,se(")"),et(hr,")"),J,Dt,ie);if(g&&H=="<")return D(se(">"),et(ms,">"),J,Br)}function Il(T,H){if(T=="keyword"||T=="variable")return P.marked="type",D(Il);if(H=="<")return D(se(">"),et(ms,">"),J)}function hr(T,H){return H=="@"&&D(ke,hr),T=="spread"?D(hr):g&&ue(H)?(P.marked="keyword",D(hr)):g&&T=="this"?D(tn,tr):F(wn,tn,tr)}function Ii(T,H){return T=="variable"?Rl(T,H):fo(T,H)}function Rl(T,H){if(T=="variable")return V(H),D(fo)}function fo(T,H){if(H=="<")return D(se(">"),et(ms,">"),J,fo);if(H=="extends"||H=="implements"||g&&T==",")return H=="implements"&&(P.marked="keyword"),D(g?Ae:ke,fo);if(T=="{")return D(se("}"),On,J)}function On(T,H){if(T=="async"||T=="variable"&&(H=="static"||H=="get"||H=="set"||g&&ue(H))&&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(H=="*")return P.marked="keyword",D(On);if(g&&T=="(")return F(Br,On);if(T==";"||T==",")return D(On);if(T=="}")return D();if(H=="@")return D(ke,On)}function ni(T,H){if(H=="!"||H=="?")return D(ni);if(T==":")return D(Ae,tr);if(H=="=")return D(I);var W=P.state.lexical.prev,ee=W&&W.info=="interface";return F(ee?Br:Lr)}function Ri(T,H){return H=="*"?(P.marked="keyword",D(Le,fe(";"))):H=="default"?(P.marked="keyword",D(ke,fe(";"))):T=="{"?D(et(Ml,"}"),Le,fe(";")):F(Se)}function Ml(T,H){if(H=="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,H){return T=="{"?Bn(Mi,"}"):(T=="variable"&&V(H),H=="*"&&(P.marked="keyword"),D(kt))}function Ua(T){if(T==",")return D(Mi,Ua)}function kt(T,H){if(H=="as")return P.marked="keyword",D(Mi)}function Le(T,H){if(H=="from")return P.marked="keyword",D(ke)}function ii(T){return T=="]"?D():F(et(I,"]"))}function ho(){return F(se("form"),wn,fe("{"),se("}"),et(nr,"}"),J,J)}function nr(){return F(wn,tr)}function ut(T,H){return T.lastType=="operator"||T.lastType==","||w.test(H.charAt(0))||/[,.]/.test(H.charAt(0))}function Or(T,H,W){return H.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(H.lastType)||H.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(W||0)))}return{startState:function(T){var H={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"&&(H.globalVars=o.globalVars),H},token:function(T,H){if(T.sol()&&(H.lexical.hasOwnProperty("align")||(H.lexical.align=!1),H.indented=T.indentation(),j(T,H)),H.tokenize!=k&&T.eatSpace())return null;var W=H.tokenize(T,H);return C=="comment"?W:(H.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,z(H,W,C,E,T))},indent:function(T,H){if(T.tokenize==k||T.tokenize==M)return n.Pass;if(T.tokenize!=O)return 0;var W=H&&H.charAt(0),ee=T.lexical,Ue;if(!/^\s*else\b/.test(H))for(var Qe=T.cc.length-1;Qe>=0;--Qe){var st=T.cc[Qe];if(st==J)ee=ee.prev;else if(st!=co&&st!=ie)break}for(;(ee.type=="stat"||ee.type=="form")&&(W=="}"||(Ue=T.cc[T.cc.length-1])&&(Ue==ce||Ue==ye)&&!/^[,\.=+\-*:?[\(]/.test(H));)ee=ee.prev;c&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var Ht=ee.type,Wn=W==Ht;return Ht=="vardef"?ee.indented+(T.lastType=="operator"||T.lastType==","?ee.info.length+1:0):Ht=="form"&&W=="{"?ee.indented:Ht=="form"?ee.indented+a:Ht=="stat"?ee.indented+(ut(T,H)?c||a:0):ee.info=="switch"&&!Wn&&o.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(H)?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})})}()),sA}bS();var aA={},uA;function wS(){return uA||(uA=1,function(e,t){(function(n){n(Pa())})(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(C("atom","]]>")):null:D.match("--")?V(C("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),V(E(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),R.tokenize=C("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 C(D,R){return function(V,Z){for(;!V.eol();){if(V.match(R)){Z.tokenize=w;break}V.next()}return D}}function E(D){return function(R,V){for(var Z;(Z=R.next())!=null;){if(Z=="<")return V.tokenize=E(D+1),V.tokenize(R,V);if(Z==">")if(D==1){V.tokenize=w;break}else return V.tokenize=E(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})})}()),aA}wS();(function(e,t){(function(n){n(Pa(),wS(),bS())})(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 C=p(L.state),E=L.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=a.indentUnit:L.prev.state.lexical&&(C=L.prev.state.lexical.indented)}else L.depth==1&&(C+=a.indentUnit);return $.context=new i(n.startState(d,C),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 C=d.token(w,L.state);if(!C&&L.depth!=null){var E=w.current();E=="{"?L.depth++:E=="}"&&--L.depth==0&&($.context=$.context.prev)}return C}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(Pa())})(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(Pa())})(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",C),n.off(document,"mouseup",L)}function C(E){if(E.which!=1)return L();p.moveTo($+(E[m]-w)*(p.total/p.size))}n.on(document,"mousemove",C),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 cBe(e,t,n={}){const i=lBe.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}),K0(i)}const fBe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},DS=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=mk(),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=mG(i,"modelValue",n,{passive:!0}),d=Ca();return t({cm:d}),_a(async()=>{d.value=cBe(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",fBe,[pe("textarea",{ref_key:"el",ref:c},null,512)]))}}),hBe=rt({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(e,{emit:t}){const n=e,i=Ke(""),o=Ca(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}gG(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 C(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",cE(U,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await mS(B.file,B.line,B.column)};k.appendChild(U),m.push([U,j,()=>gg(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(C)}),w.value||S.clearHistory()},100)},{flush:"post"});async function E(S){w.value=!0,await sn.rpc.writeFile(n.file.filepath,S),o.value=S,a.value=!1}return(S,O)=>{const B=DS;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:E}),null,16,["modelValue","mode"])}}}),dBe=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))}}),pBe=["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,pBe))}}),gBe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},vBe={"p-4":"",relative:""},mBe=pe("p",null,"Module Info",-1),yBe={op50:"","font-mono":"","text-sm":""},bBe={key:0,"p-5":""},wBe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},DBe=pe("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),ABe=pe("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),xBe={key:0},EBe={p:"x3 y-1","bg-overlay":"",border:"base b t"},CBe=rt({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(e,{emit:t}){const n=e,i=MW(()=>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 UW("Escape",()=>{t("close")}),(d,p)=>{const g=Na,y=DS;return de(),Te("div",gBe,[pe("div",vBe,[mBe,pe("p",yBe,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",wBe,[DBe,ABe,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",xBe,[pe("div",EBe," 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",bBe," No transform result found for this module. "))])}}});var C0="http://www.w3.org/1999/xhtml";const lA={svg:"http://www.w3.org/2000/svg",xhtml:C0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gh(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),lA.hasOwnProperty(t)?{space:lA[t],local:e}:e}function _Be(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===C0&&t.documentElement.namespaceURI===C0?t.createElement(e):t.createElementNS(n,e)}}function SBe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function AS(e){var t=Gh(e);return(t.local?SBe:_Be)(t)}function FBe(){}function Yv(e){return e==null?FBe:function(){return this.querySelector(e)}}function $Be(e){typeof e!="function"&&(e=Yv(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 TBe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kBe(){return[]}function xS(e){return e==null?kBe:function(){return this.querySelectorAll(e)}}function LBe(e){return function(){return TBe(e.apply(this,arguments))}}function BBe(e){typeof e=="function"?e=LBe(e):e=xS(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 ES(e){return function(){return this.matches(e)}}function CS(e){return function(t){return t.matches(e)}}var OBe=Array.prototype.find;function PBe(e){return function(){return OBe.call(this.children,e)}}function NBe(){return this.firstElementChild}function IBe(e){return this.select(e==null?NBe:PBe(typeof e=="function"?e:CS(e)))}var RBe=Array.prototype.filter;function MBe(){return Array.from(this.children)}function zBe(e){return function(){return RBe.call(this.children,e)}}function UBe(e){return this.selectAll(e==null?MBe:zBe(typeof e=="function"?e:CS(e)))}function qBe(e){typeof e!="function"&&(e=ES(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 _S(e){return new Array(e.length)}function HBe(){return new Jn(this._enter||this._groups.map(_S),this._parents)}function Rf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Rf.prototype={constructor:Rf,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 jBe(e){return function(){return e}}function VBe(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 Rf(e,a[c]);for(;c<d;++c)(h=t[c])&&(o[c]=h)}function WBe(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 Rf(e,a[h]);for(h=0;h<g;++h)(d=t[h])&&p.get(m[h])===d&&(o[h]=d)}function GBe(e){return e.__data__}function KBe(e,t){if(!arguments.length)return Array.from(this,GBe);var n=t?WBe:VBe,i=this._parents,o=this._groups;typeof e!="function"&&(e=jBe(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=XBe(e.call(g,g&&g.__data__,p,i)),$=w.length,L=h[p]=new Array($),C=c[p]=new Array($),E=d[p]=new Array(m);n(g,y,L,C,E,w,t);for(var S=0,O=0,B,k;S<$;++S)if(B=L[S]){for(S>=O&&(O=S+1);!(k=C[O])&&++O<$;);B._next=k||null}}return c=new Jn(c,i),c._enter=h,c._exit=d,c}function XBe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function QBe(){return new Jn(this._exit||this._groups.map(_S),this._parents)}function YBe(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 JBe(){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 e3e(e){e||(e=t3e);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 t3e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function n3e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function r3e(){return Array.from(this)}function i3e(){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 s3e(){let e=0;for(const t of this)++e;return e}function o3e(){return!this.node()}function a3e(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 u3e(e){return function(){this.removeAttribute(e)}}function l3e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function c3e(e,t){return function(){this.setAttribute(e,t)}}function f3e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function h3e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function d3e(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 p3e(e,t){var n=Gh(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?l3e:u3e:typeof t=="function"?n.local?d3e:h3e:n.local?f3e:c3e)(n,t))}function SS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function g3e(e){return function(){this.style.removeProperty(e)}}function v3e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function m3e(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function y3e(e,t,n){return arguments.length>1?this.each((t==null?g3e:typeof t=="function"?m3e:v3e)(e,t,n??"")):wa(this.node(),e)}function wa(e,t){return e.style.getPropertyValue(t)||SS(e).getComputedStyle(e,null).getPropertyValue(t)}function b3e(e){return function(){delete this[e]}}function w3e(e,t){return function(){this[e]=t}}function D3e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function A3e(e,t){return arguments.length>1?this.each((t==null?b3e:typeof t=="function"?D3e:w3e)(e,t)):this.node()[e]}function FS(e){return e.trim().split(/^|\s+/)}function Zv(e){return e.classList||new $S(e)}function $S(e){this._node=e,this._names=FS(e.getAttribute("class")||"")}$S.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function TS(e,t){for(var n=Zv(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function kS(e,t){for(var n=Zv(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function x3e(e){return function(){TS(this,e)}}function E3e(e){return function(){kS(this,e)}}function C3e(e,t){return function(){(t.apply(this,arguments)?TS:kS)(this,e)}}function _3e(e,t){var n=FS(e+"");if(arguments.length<2){for(var i=Zv(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?C3e:t?x3e:E3e)(n,t))}function S3e(){this.textContent=""}function F3e(e){return function(){this.textContent=e}}function $3e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function T3e(e){return arguments.length?this.each(e==null?S3e:(typeof e=="function"?$3e:F3e)(e)):this.node().textContent}function k3e(){this.innerHTML=""}function L3e(e){return function(){this.innerHTML=e}}function B3e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function O3e(e){return arguments.length?this.each(e==null?k3e:(typeof e=="function"?B3e:L3e)(e)):this.node().innerHTML}function P3e(){this.nextSibling&&this.parentNode.appendChild(this)}function N3e(){return this.each(P3e)}function I3e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R3e(){return this.each(I3e)}function M3e(e){var t=typeof e=="function"?e:AS(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function z3e(){return null}function U3e(e,t){var n=typeof e=="function"?e:AS(e),i=t==null?z3e:typeof t=="function"?t:Yv(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function q3e(){var e=this.parentNode;e&&e.removeChild(this)}function H3e(){return this.each(q3e)}function j3e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function V3e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W3e(e){return this.select(e?V3e:j3e)}function G3e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function K3e(e){return function(t){e.call(this,t,this.__data__)}}function X3e(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 Q3e(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 Y3e(e,t,n){return function(){var i=this.__on,o,a=K3e(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=X3e(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?Y3e:Q3e,o=0;o<a;++o)this.each(h(i[o],t,n));return this}function LS(e,t,n){var i=SS(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 J3e(e,t){return function(){return LS(this,e,t)}}function eOe(e,t){return function(){return LS(this,e,t.apply(this,arguments))}}function tOe(e,t){return this.each((typeof t=="function"?eOe:J3e)(e,t))}function*nOe(){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 BS=[null];function Jn(e,t){this._groups=e,this._parents=t}function kl(){return new Jn([[document.documentElement]],BS)}function rOe(){return this}Jn.prototype=kl.prototype={constructor:Jn,select:$Be,selectAll:BBe,selectChild:IBe,selectChildren:UBe,filter:qBe,data:KBe,enter:HBe,exit:QBe,join:YBe,merge:ZBe,selection:rOe,order:JBe,sort:e3e,call:n3e,nodes:r3e,node:i3e,size:s3e,empty:o3e,each:a3e,attr:p3e,style:y3e,property:A3e,classed:_3e,text:T3e,html:O3e,raise:N3e,lower:R3e,append:M3e,insert:U3e,remove:H3e,clone:W3e,datum:G3e,on:Z3e,dispatch:tOe,[Symbol.iterator]:nOe};function Mn(e){return typeof e=="string"?new Jn([[document.querySelector(e)]],[document.documentElement]):new Jn([[e]],BS)}function iOe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function yi(e,t){if(e=iOe(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 sOe={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 oOe(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=oOe(e+"",n),o,a=-1,c=i.length;if(arguments.length<2){for(;++a<c;)if((o=(e=i[a]).type)&&(o=aOe(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]=cA(n[o],e.name,t);else if(t==null)for(o in n)n[o]=cA(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 aOe(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function cA(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=sOe,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const uOe={passive:!1},Qu={capture:!0,passive:!1};function Cp(e){e.stopImmediatePropagation()}function ra(e){e.preventDefault(),e.stopImmediatePropagation()}function OS(e){var t=e.document.documentElement,n=Mn(e).on("dragstart.drag",ra,Qu);"onselectstart"in t?n.on("selectstart.drag",ra,Qu):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function PS(e,t){var n=e.document.documentElement,i=Mn(e).on("dragstart.drag",null);t&&(i.on("click.drag",ra,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 Hc=e=>()=>e;function _0(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}})}_0.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function lOe(e){return!e.ctrlKey&&!e.button}function cOe(){return this.parentNode}function fOe(e,t){return t??{x:e.x,y:e.y}}function hOe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dOe(){var e=lOe,t=cOe,n=fOe,i=hOe,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",C).on("touchmove.drag",E,uOe).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),OS(B.view),Cp(B),p=!1,h=B.clientX,d=B.clientY,M("start",B))}}function $(B){if(ra(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),PS(B.view,p),ra(B),o.mouse("end",B)}function C(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]))&&(Cp(B),oe("start",B,M[ne]))}}function E(B){var k=B.changedTouches,M=k.length,U,j;for(U=0;U<M;++U)(j=o[k[U].identifier])&&(ra(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])&&(Cp(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 _0("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 _0(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:Hc(!!B),m):e},m.container=function(B){return arguments.length?(t=typeof B=="function"?B:Hc(B),m):t},m.subject=function(B){return arguments.length?(n=typeof B=="function"?B:Hc(B),m):n},m.touchable=function(B){return arguments.length?(i=typeof B=="function"?B:Hc(!!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 Jv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function NS(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Bl(){}var Yu=.7,Mf=1/Yu,ia="\\s*([+-]?\\d+)\\s*",Zu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pOe=/^#([0-9a-f]{3,8})$/,gOe=new RegExp(`^rgb\\(${ia},${ia},${ia}\\)$`),vOe=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),mOe=new RegExp(`^rgba\\(${ia},${ia},${ia},${Zu}\\)$`),yOe=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Zu}\\)$`),bOe=new RegExp(`^hsl\\(${Zu},${Xr},${Xr}\\)$`),wOe=new RegExp(`^hsla\\(${Zu},${Xr},${Xr},${Zu}\\)$`),fA={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};Jv(Bl,Ju,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:hA,formatHex:hA,formatHex8:DOe,formatHsl:AOe,formatRgb:dA,toString:dA});function hA(){return this.rgb().formatHex()}function DOe(){return this.rgb().formatHex8()}function AOe(){return IS(this).formatHsl()}function dA(){return this.rgb().formatRgb()}function Ju(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pOe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?pA(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=gOe.exec(e))?new zn(t[1],t[2],t[3],1):(t=vOe.exec(e))?new zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mOe.exec(e))?jc(t[1],t[2],t[3],t[4]):(t=yOe.exec(e))?jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bOe.exec(e))?mA(t[1],t[2]/100,t[3]/100,1):(t=wOe.exec(e))?mA(t[1],t[2]/100,t[3]/100,t[4]):fA.hasOwnProperty(e)?pA(fA[e]):e==="transparent"?new zn(NaN,NaN,NaN,0):null}function pA(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 xOe(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 S0(e,t,n,i){return arguments.length===1?xOe(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}Jv(zn,S0,NS(Bl,{brighter(e){return e=e==null?Mf:Math.pow(Mf,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(Qs(this.r),Qs(this.g),Qs(this.b),zf(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:gA,formatHex:gA,formatHex8:EOe,formatRgb:vA,toString:vA}));function gA(){return`#${Ws(this.r)}${Ws(this.g)}${Ws(this.b)}`}function EOe(){return`#${Ws(this.r)}${Ws(this.g)}${Ws(this.b)}${Ws((isNaN(this.opacity)?1:this.opacity)*255)}`}function vA(){const e=zf(this.opacity);return`${e===1?"rgb(":"rgba("}${Qs(this.r)}, ${Qs(this.g)}, ${Qs(this.b)}${e===1?")":`, ${e})`}`}function zf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ws(e){return e=Qs(e),(e<16?"0":"")+e.toString(16)}function mA(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 IS(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 COe(e,t,n,i){return arguments.length===1?IS(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}Jv(Er,COe,NS(Bl,{brighter(e){return e=e==null?Mf:Math.pow(Mf,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(_p(e>=240?e-240:e+120,o,i),_p(e,o,i),_p(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Er(yA(this.h),Vc(this.s),Vc(this.l),zf(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=zf(this.opacity);return`${e===1?"hsl(":"hsla("}${yA(this.h)}, ${Vc(this.s)*100}%, ${Vc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yA(e){return e=(e||0)%360,e<0?e+360:e}function Vc(e){return Math.max(0,Math.min(1,e||0))}function _p(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const RS=e=>()=>e;function _Oe(e,t){return function(n){return e+n*t}}function SOe(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 FOe(e){return(e=+e)==1?MS:function(t,n){return n-t?SOe(t,n,e):RS(isNaN(t)?n:t)}}function MS(e,t){var n=t-e;return n?_Oe(e,n):RS(isNaN(e)?t:e)}const bA=function e(t){var n=FOe(t);function i(o,a){var c=n((o=S0(o)).r,(a=S0(a)).r),h=n(o.g,a.g),d=n(o.b,a.b),p=MS(o.opacity,a.opacity);return function(g){return o.r=c(g),o.g=h(g),o.b=d(g),o.opacity=p(g),o+""}}return i.gamma=e,i}(1);function is(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var F0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sp=new RegExp(F0.source,"g");function $Oe(e){return function(){return e}}function TOe(e){return function(t){return e(t)+""}}function kOe(e,t){var n=F0.lastIndex=Sp.lastIndex=0,i,o,a,c=-1,h=[],d=[];for(e=e+"",t=t+"";(i=F0.exec(e))&&(o=Sp.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=Sp.lastIndex;return n<t.length&&(a=t.slice(n),h[c]?h[c]+=a:h[++c]=a),h.length<2?d[0]?TOe(d[0].x):$Oe(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 wA=180/Math.PI,$0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zS(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)*wA,skewX:Math.atan(d)*wA,scaleX:c,scaleY:h}}var Wc;function LOe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$0:zS(t.a,t.b,t.c,t.d,t.e,t.f)}function BOe(e){return e==null||(Wc||(Wc=document.createElementNS("http://www.w3.org/2000/svg","g")),Wc.setAttribute("transform",e),!(e=Wc.transform.baseVal.consolidate()))?$0:(e=e.matrix,zS(e.a,e.b,e.c,e.d,e.e,e.f))}function US(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,C;++$<L;)y[(C=m[$]).i]=C.x(w);return y.join("")}}}var OOe=US(LOe,"px, ","px)","deg)"),POe=US(BOe,", ",")",")"),NOe=1e-12;function DA(e){return((e=Math.exp(e))+1/e)/2}function IOe(e){return((e=Math.exp(e))-1/e)/2}function ROe(e){return((e=Math.exp(2*e))-1)/(e+1)}const MOe=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+$*$,C,E;if(L<NOe)E=Math.log(m/p)/t,C=function(U){return[h+U*w,d+U*$,p*Math.exp(t*U*E)]};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);E=(M-k)/t,C=function(U){var j=U*E,ne=DA(k),oe=p/(n*S)*(ne*ROe(t*j+k)-IOe(k));return[h+oe*w,d+oe*$,p*ne/DA(t*j+k)]}}return C.duration=E*1e3*t/Math.SQRT2,C}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 Da=0,_u=0,xu=0,qS=1e3,Uf,Su,qf=0,to=0,Kh=0,el=typeof performance=="object"&&performance.now?performance:Date,HS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function em(){return to||(HS(zOe),to=el.now()+Kh)}function zOe(){to=0}function Hf(){this._call=this._time=this._next=null}Hf.prototype=tm.prototype={constructor:Hf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?em():+n)+(t==null?0:+t),!this._next&&Su!==this&&(Su?Su._next=this:Uf=this,Su=this),this._call=e,this._time=n,T0()},stop:function(){this._call&&(this._call=null,this._time=1/0,T0())}};function tm(e,t,n){var i=new Hf;return i.restart(e,t,n),i}function UOe(){em(),++Da;for(var e=Uf,t;e;)(t=to-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Da}function AA(){to=(qf=el.now())+Kh,Da=_u=0;try{UOe()}finally{Da=0,HOe(),to=0}}function qOe(){var e=el.now(),t=e-qf;t>qS&&(Kh-=t,qf=e)}function HOe(){for(var e,t=Uf,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:Uf=n);Su=e,T0(i)}function T0(e){if(!Da){_u&&(_u=clearTimeout(_u));var t=e-to;t>24?(e<1/0&&(_u=setTimeout(AA,e-el.now()-Kh)),xu&&(xu=clearInterval(xu))):(xu||(qf=el.now(),xu=setInterval(qOe,qS)),Da=1,HS(AA))}}function xA(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 jOe=Ll("start","end","cancel","interrupt"),VOe=[],jS=0,EA=1,k0=2,ff=3,CA=4,L0=5,hf=6;function Xh(e,t,n,i,o,a){var c=e.__transition;if(!c)e.__transition={};else if(n in c)return;WOe(e,n,{name:t,index:i,group:o,on:jOe,tween:VOe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:jS})}function nm(e,t){var n=kr(e,t);if(n.state>jS)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 WOe(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=tm(a,0,n.time);function a(p){n.state=EA,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!==EA)return d();for(g in i)if(w=i[g],w.name===n.name){if(w.state===ff)return xA(c);w.state===CA?(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(xA(function(){n.state===ff&&(n.state=CA,n.timer.restart(h,n.delay,n.time),h(p))}),n.state=k0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===k0){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=L0,1),y=-1,m=o.length;++y<m;)o[y].call(e,g);n.state===L0&&(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>k0&&i.state<L0,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 GOe(e){return this.each(function(){df(this,e)})}function KOe(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 XOe(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 QOe(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?KOe:XOe)(n,e,t))}function rm(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 VS(e,t){var n;return(typeof t=="number"?is:t instanceof Ju?bA:(n=Ju(t))?(t=n,bA):kOe)(e,t)}function YOe(e){return function(){this.removeAttribute(e)}}function ZOe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function JOe(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 ePe(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 tPe(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 nPe(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 rPe(e,t){var n=Gh(e),i=n==="transform"?POe:VS;return this.attrTween(e,typeof t=="function"?(n.local?nPe:tPe)(n,i,rm(this,"attr."+e,t)):t==null?(n.local?ZOe:YOe)(n):(n.local?ePe:JOe)(n,i,t))}function iPe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function sPe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function oPe(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&sPe(e,a)),n}return o._value=t,o}function aPe(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&iPe(e,a)),n}return o._value=t,o}function uPe(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=Gh(e);return this.tween(n,(i.local?oPe:aPe)(i,t))}function lPe(e,t){return function(){nm(this,e).delay=+t.apply(this,arguments)}}function cPe(e,t){return t=+t,function(){nm(this,e).delay=t}}function fPe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?lPe:cPe)(t,e)):kr(this.node(),t).delay}function hPe(e,t){return function(){Jr(this,e).duration=+t.apply(this,arguments)}}function dPe(e,t){return t=+t,function(){Jr(this,e).duration=t}}function pPe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hPe:dPe)(t,e)):kr(this.node(),t).duration}function gPe(e,t){if(typeof t!="function")throw new Error;return function(){Jr(this,e).ease=t}}function vPe(e){var t=this._id;return arguments.length?this.each(gPe(t,e)):kr(this.node(),t).ease}function mPe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Jr(this,e).ease=n}}function yPe(e){if(typeof e!="function")throw new Error;return this.each(mPe(this._id,e))}function bPe(e){typeof e!="function"&&(e=ES(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 wPe(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 DPe(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 APe(e,t,n){var i,o,a=DPe(t)?nm:Jr;return function(){var c=a(this,e),h=c.on;h!==i&&(o=(i=h).copy()).on(t,n),c.on=o}}function xPe(e,t){var n=this._id;return arguments.length<2?kr(this.node(),n).on.on(e):this.each(APe(n,e,t))}function EPe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function CPe(){return this.on("end.remove",EPe(this._id))}function _Pe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Yv(e));for(var i=this._groups,o=i.length,a=new Array(o),c=0;c<o;++c)for(var h=i[c],d=h.length,p=a[c]=new Array(d),g,y,m=0;m<d;++m)(g=h[m])&&(y=e.call(g,g.__data__,m,h))&&("__data__"in g&&(y.__data__=g.__data__),p[m]=y,Xh(p[m],t,n,m,p,kr(g,n)));return new ki(a,this._parents,t,n)}function SPe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=xS(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,C=m.length;L<C;++L)(w=m[L])&&Xh(w,t,n,L,m,$);a.push(m),c.push(g)}return new ki(a,c,t,n)}var FPe=kl.prototype.constructor;function $Pe(){return new FPe(this._groups,this._parents)}function TPe(e,t){var n,i,o;return function(){var a=wa(this,e),c=(this.style.removeProperty(e),wa(this,e));return a===c?null:a===n&&c===i?o:o=t(n=a,i=c)}}function WS(e){return function(){this.style.removeProperty(e)}}function kPe(e,t,n){var i,o=n+"",a;return function(){var c=wa(this,e);return c===o?null:c===i?a:a=t(i=c,n)}}function LPe(e,t,n){var i,o,a;return function(){var c=wa(this,e),h=n(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(e),wa(this,e))),c===d?null:c===i&&d===o?a:(o=d,a=t(i=c,h))}}function BPe(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=WS(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(c,o=g),d.on=i}}function OPe(e,t,n){var i=(e+="")=="transform"?OOe:VS;return t==null?this.styleTween(e,TPe(e,i)).on("end.style."+e,WS(e)):typeof t=="function"?this.styleTween(e,LPe(e,i,rm(this,"style."+e,t))).each(BPe(this._id,e)):this.styleTween(e,kPe(e,i,t),n).on("end.style."+e,null)}function PPe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function NPe(e,t,n){var i,o;function a(){var c=t.apply(this,arguments);return c!==o&&(i=(o=c)&&PPe(e,c,n)),i}return a._value=t,a}function IPe(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,NPe(e,t,n??""))}function RPe(e){return function(){this.textContent=e}}function MPe(e){return function(){var t=e(this);this.textContent=t??""}}function zPe(e){return this.tween("text",typeof e=="function"?MPe(rm(this,"text",e)):RPe(e==null?"":e+""))}function UPe(e){return function(t){this.textContent=e.call(this,t)}}function qPe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&UPe(o)),t}return i._value=e,i}function HPe(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,qPe(e))}function jPe(){for(var e=this._name,t=this._id,n=GS(),i=this._groups,o=i.length,a=0;a<o;++a)for(var c=i[a],h=c.length,d,p=0;p<h;++p)if(d=c[p]){var g=kr(d,t);Xh(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 VPe(){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 WPe=0;function ki(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function GS(){return++WPe}var gi=kl.prototype;ki.prototype={constructor:ki,select:_Pe,selectAll:SPe,selectChild:gi.selectChild,selectChildren:gi.selectChildren,filter:bPe,merge:wPe,selection:$Pe,transition:jPe,call:gi.call,nodes:gi.nodes,node:gi.node,size:gi.size,empty:gi.empty,each:gi.each,on:xPe,attr:rPe,attrTween:uPe,style:OPe,styleTween:IPe,text:zPe,textTween:HPe,remove:CPe,tween:QOe,delay:fPe,duration:pPe,ease:vPe,easeVarying:yPe,end:VPe,[Symbol.iterator]:gi[Symbol.iterator]};function GPe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var KPe={time:null,delay:0,duration:250,ease:GPe};function XPe(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 QPe(e){var t,n;e instanceof ki?(t=e._id,e=e._name):(t=GS(),(n=KPe).time=em(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var c=i[a],h=c.length,d,p=0;p<h;++p)(d=c[p])&&Xh(d,e,t,p,c,n||XPe(d,t));return new ki(i,this._parents,e,t)}kl.prototype.interrupt=GOe;kl.prototype.transition=QPe;const Gc=e=>()=>e;function YPe(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 im=new Di(1,0,0);Di.prototype;function Fp(e){e.stopImmediatePropagation()}function Eu(e){e.preventDefault(),e.stopImmediatePropagation()}function ZPe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function JPe(){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 _A(){return this.__zoom||im}function e8e(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function t8e(){return navigator.maxTouchPoints||"ontouchstart"in this}function n8e(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 r8e(){var e=ZPe,t=JPe,n=n8e,i=e8e,o=t8e,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],h=250,d=MOe,p=Ll("start","zoom","end"),g,y,m,w=500,$=150,L=0,C=10;function E(F){F.property("__zoom",_A).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)")}E.transform=function(F,D,R,V){var Z=F.selection?F.selection():F;Z.property("__zoom",_A),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()})},E.scaleBy=function(F,D,R,V){E.scaleTo(F,function(){var Z=this.__zoom.k,ue=typeof D=="function"?D.apply(this,arguments):D;return Z*ue},R,V)},E.scaleTo=function(F,D,R,V){E.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)},E.translateBy=function(F,D,R,V){E.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)},E.translateTo=function(F,D,R,V,Z){E.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(im.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 YPe(F,{sourceEvent:this.sourceEvent,target:E,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;OS(F.view),Fp(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),PS(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(E.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(Fp(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(Fp(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])<C)){var $e=Mn(this).on("dblclick.zoom");$e&&$e.apply(this,arguments)}}}return E.wheelDelta=function(F){return arguments.length?(i=typeof F=="function"?F:Gc(+F),E):i},E.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Gc(!!F),E):e},E.touchable=function(F){return arguments.length?(o=typeof F=="function"?F:Gc(!!F),E):o},E.extent=function(F){return arguments.length?(t=typeof F=="function"?F:Gc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),E):t},E.scaleExtent=function(F){return arguments.length?(a[0]=+F[0],a[1]=+F[1],E):[a[0],a[1]]},E.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],E):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},E.constrain=function(F){return arguments.length?(n=F,E):n},E.duration=function(F){return arguments.length?(h=+F,E):h},E.interpolate=function(F){return arguments.length?(d=F,E):d},E.on=function(){var F=p.on.apply(p,arguments);return F===p?E:F},E.clickDistance=function(F){return arguments.length?(L=(F=+F)*F,E):Math.sqrt(L)},E.tapDistance=function(F){return arguments.length?(C=+F,E):C},E}function i8e(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return KS(this.cover(t,n),t,n,e)}function KS(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,C,E,S;if(!a)return e._root=c,e;for(;a.length;)if((L=t>=(y=(h+p)/2))?h=y:p=y,(C=n>=(m=(d+g)/2))?d=m:g=m,o=a,!(a=a[E=C<<1|L]))return o[E]=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[E]=c:e._root=c,e;do o=o?o[E]=new Array(4):e._root=new Array(4),(L=t>=(y=(h+p)/2))?h=y:p=y,(C=n>=(m=(d+g)/2))?d=m:g=m;while((E=C<<1|L)===(S=($>=m)<<1|w>=y));return o[S]=a,o[E]=c,e}function s8e(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)KS(this,c[n],h[n],e[n]);return this}function o8e(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 a8e(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function u8e(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 l8e(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 C=(c+d)/2,E=(h+p)/2;m.push(new $n(w[3],C,E,d,p),new $n(w[2],c,E,C,p),new $n(w[1],C,h,d,E),new $n(w[0],c,h,C,E)),(L=(t>=E)<<1|e>=C)&&($=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 c8e(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,C,E;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[C=L<<1|$]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}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[C]=a:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=a,this)}function f8e(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function h8e(){return this._root}function d8e(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function p8e(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 g8e(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 v8e(e){return e[0]}function m8e(e){return arguments.length?(this._x=e,this):this._x}function y8e(e){return e[1]}function b8e(e){return arguments.length?(this._y=e,this):this._y}function sm(e,t,n){var i=new om(t??v8e,n??y8e,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function om(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 SA(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ln=sm.prototype=om.prototype;Ln.copy=function(){var e=new om(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=SA(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]=SA(i));return e};Ln.add=i8e;Ln.addAll=s8e;Ln.cover=o8e;Ln.data=a8e;Ln.extent=u8e;Ln.find=l8e;Ln.remove=c8e;Ln.removeAll=f8e;Ln.root=h8e;Ln.size=d8e;Ln.visit=p8e;Ln.visitAfter=g8e;Ln.x=m8e;Ln.y=b8e;function Tn(e){return function(){return e}}function os(e){return(e()-.5)*1e-6}function w8e(e){return e.x+e.vx}function D8e(e){return e.y+e.vy}function A8e(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,C,E=0;E<a;++E)for(y=sm(t,w8e,D8e).visitAfter(h),p=0;p<g;++p)m=t[p],L=n[m.index],C=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)/(C+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 x8e(e){return e.index}function FA(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function E8e(e){var t=x8e,n=y,i,o=Tn(30),a,c,h,d,p,g=1;e==null&&(e=[]);function y(C){return 1/Math.min(h[C.source.index],h[C.target.index])}function m(C){for(var E=0,S=e.length;E<g;++E)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*C*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 C,E=c.length,S=e.length,O=new Map(c.map((k,M)=>[t(k,M,c),k])),B;for(C=0,h=new Array(E);C<S;++C)B=e[C],B.index=C,typeof B.source!="object"&&(B.source=FA(O,B.source)),typeof B.target!="object"&&(B.target=FA(O,B.target)),h[B.source.index]=(h[B.source.index]||0)+1,h[B.target.index]=(h[B.target.index]||0)+1;for(C=0,d=new Array(S);C<S;++C)B=e[C],d[C]=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 C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function L(){if(c)for(var C=0,E=e.length;C<E;++C)a[C]=+o(e[C],C,e)}return m.initialize=function(C,E){c=C,p=E,w()},m.links=function(C){return arguments.length?(e=C,w(),m):e},m.id=function(C){return arguments.length?(t=C,m):t},m.iterations=function(C){return arguments.length?(g=+C,m):g},m.strength=function(C){return arguments.length?(n=typeof C=="function"?C:Tn(+C),$(),m):n},m.distance=function(C){return arguments.length?(o=typeof C=="function"?C:Tn(+C),L(),m):o},m}const C8e=1664525,_8e=1013904223,$A=4294967296;function S8e(){let e=1;return()=>(e=(C8e*e+_8e)%$A)/$A}function F8e(e){return e.x}function $8e(e){return e.y}var T8e=10,k8e=Math.PI*(3-Math.sqrt(5));function L8e(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),a=0,c=.6,h=new Map,d=tm(y),p=Ll("tick","end"),g=S8e();e==null&&(e=[]);function y(){m(),p.call("tick",t),n<i&&(d.stop(),p.call("end",t))}function m(L){var C,E=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)}),C=0;C<E;++C)S=e[C],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,C=e.length,E;L<C;++L){if(E=e[L],E.index=L,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var S=T8e*Math.sqrt(.5+L),O=L*k8e;E.x=S*Math.cos(O),E.y=S*Math.sin(O)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.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,C){return arguments.length>1?(C==null?h.delete(L):h.set(L,$(C)),t):h.get(L)},find:function(L,C,E){var S=0,O=e.length,B,k,M,U,j;for(E==null?E=1/0:E*=E,S=0;S<O;++S)U=e[S],B=L-U.x,k=C-U.y,M=B*B+k*k,M<E&&(j=U,E=M);return j},on:function(L,C){return arguments.length>1?(p.on(L,C),t):p.on(L)}}}function B8e(){var e,t,n,i,o=Tn(-30),a,c=1,h=1/0,d=.81;function p(w){var $,L=e.length,C=sm(e,F8e,$8e).visitAfter(y);for(i=w,$=0;$<L;++$)t=e[$],C.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,C,E=0,S,O,B;if(w.length){for(S=O=B=0;B<4;++B)(L=w[B])&&(C=Math.abs(L.value))&&($+=L.value,E+=C,S+=C*L.x,O+=C*L.y);w.x=S/E,w.y=O/E}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,C){if(!w.value)return!0;var E=w.x-t.x,S=w.y-t.y,O=C-$,B=E*E+S*S;if(O*O/d<B)return B<h&&(E===0&&(E=os(n),B+=E*E),S===0&&(S=os(n),B+=S*S),B<c&&(B=Math.sqrt(c*B)),t.vx+=E*w.value*i/B,t.vy+=S*w.value*i/B),!0;if(w.length||B>=h)return;(w.data!==t||w.next)&&(E===0&&(E=os(n),B+=E*E),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+=E*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 O8e(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 P8e(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 N8e=Object.defineProperty,I8e=(e,t,n)=>t in e?N8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t,n)=>(I8e(e,typeof t!="symbol"?t+"":t,n),n);function R8e(){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 TA=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]:TA(t[i])&&TA(n[i])?t[i]=as(t[i],n[i]):t[i]=n[i])}),t},{}),XS={mergeArrays:!0};as.options=XS;as.withOptions=(e,...t)=>{as.options={mergeArrays:!0,...e};const n=as(...t);return as.options=XS,n};function M8e(){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 z8e(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function QS(e){e.preventDefault(),e.stopPropagation()}function YS(e){return typeof e=="number"}function ds(e,t){return YS(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function U8e(e){return`${e.source.id}-${e.target.id}`}function ZS(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function q8e(e){return`url(#${ZS(e.color)})`}function H8e(e){return{size:e,padding:(t,n)=>ds(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=>H8e(e)},j8e=(e,t,n)=>[t/2,n/2],eF=(e,t,n)=>[kA(0,t),kA(0,n)];function kA(e,t){return Math.random()*(t-e)+e}function V8e(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?eF(n,i,o):[a,c]}}const B0={Centered:j8e,Randomized:eF,Stable:V8e};function W8e(){return{autoResize:!1,callbacks:{},hooks:{},initial:z8e(),nodeRadius:16,marker:JS.Arrow(4),modifiers:{},positionInitializer:B0.Centered,simulation:{alphas:R8e(),forces:M8e()},zoom:{initial:1,min:.1,max:2}}}function G8e(e={}){return as.withOptions({mergeArrays:!1},W8e(),e)}function K8e(e,t){let n;return()=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(),t)}}function X8e({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=>QS(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,im.translate(a,c).scale(h)),p.append("g")}function Q8e({canvas:e,scale:t,xOffset:n,yOffset:i}){e==null||e.attr("transform",`translate(${n},${i})scale(${t})`)}function Y8e({config:e,onDragStart:t,onDragEnd:n}){var i,o;const a=dOe().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}:J8e({nodes:h,links:a},n)}function J8e(e,t){const n=[...eNe(e,t),...tNe(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function eNe(e,t){return tF(e,t,(n,i)=>n.target.id===i.id)}function tNe(e,t){return tF(e,t,(n,i)=>n.source.id===i.id)}function tF(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 O0(e){return e.x??0}function P0(e){return e.y??0}function am({source:e,target:t}){const n=new Fn(O0(e),P0(e)),i=new Fn(O0(t),P0(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 nF({center:e,node:t}){const n=new Fn(O0(t),P0(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Fn(0,1))),{n,c:i}}function rF({config:e,source:t,target:n}){const{s:i,t:o,norm:a}=am({config:e,source:t,target:n}),c=i.add(a.multiply(ds(e,t)-1)),h=o.subtract(a.multiply(e.marker.padding(n,e)));return{start:c,end:h}}function nNe(e){const{start:t,end:n}=rF(e);return`M${t.x},${t.y}
41
+ L${n.x},${n.y}`}function rNe(e){const{start:t,end:n}=rF(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function iNe({config:e,source:t,target:n}){const{s:i,t:o,dist:a,norm:c,endNorm:h}=am({config:e,source:t,target:n}),d=10,p=c.rotateByDegrees(-d).multiply(ds(e,t)-1).add(i),g=h.rotateByDegrees(d).multiply(ds(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 sNe({center:e,config:t,node:n}){const{n:i,c:o}=nF({center:e,config:t,node:n}),a=ds(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 oNe({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:a}=am({config:e,source:t,target:n}),c=10,h=a.rotateByDegrees(c).multiply(.5*o).add(i);return`translate(${h.x},${h.y})`}function aNe({center:e,config:t,node:n}){const{n:i,c:o}=nF({center:e,config:t,node:n}),a=i.subtract(o),c=a.multiply(1/a.length()).multiply(3*ds(t,n)+8).add(i);return`translate(${c.x},${c.y})`}const sa={line:{labelTransform:rNe,path:nNe},arc:{labelTransform:oNe,path:iNe},reflexive:{labelTransform:aNe,path:sNe}};function uNe(e){return e.append("g").classed("links",!0).selectAll("path")}function lNe({config:e,graph:t,selection:n,showLabels:i}){const o=n==null?void 0:n.data(t.links,a=>U8e(a)).join(a=>{var c,h,d,p;const g=a.append("g"),y=g.append("path").classed("link",!0).style("marker-end",w=>q8e(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 cNe(e){fNe(e),hNe(e)}function fNe({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?sa.reflexive.path({config:t,node:o.source,center:e}):iF(n,o.source,o.target)?sa.arc.path({config:t,source:o.source,target:o.target}):sa.line.path({config:t,source:o.source,target:o.target}))}function hNe({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?sa.reflexive.labelTransform({config:e,node:o.source,center:t}):iF(n,o.source,o.target)?sa.arc.labelTransform({config:e,source:o.source,target:o.target}):sa.line.labelTransform({config:e,source:o.source,target:o.target}))}function iF(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 dNe(e){return e.append("defs").selectAll("marker")}function pNe({config:e,graph:t,selection:n}){return n==null?void 0:n.data(gNe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",a=>ZS(a)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",a=>a);return o.append("path").attr("d",vNe(e.marker.path)),o})}function gNe(e){return[...new Set(e.links.map(t=>t.color))]}function vNe(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 mNe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function yNe({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",C=>ds(e,C)).on("contextmenu",(C,E)=>{QS(C),i(E)}).on("pointerdown",(C,E)=>wNe(C,E,o??i)).style("fill",C=>C.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",C=>C.label?C.label.color:null).style("font-size",C=>C.label?C.label.fontSize:null).style("stroke","none").text(C=>C.label?C.label.text:null);return(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 bNe=500;function wNe(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>bNe){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function DNe(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function ANe({center:e,config:t,graph:n,onTick:i}){var o,a;const c=L8e(n.nodes),h=t.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;c.force("x",O8e(()=>e().x).strength(y)).force("y",P8e(()=>e().y).strength(y))}const d=t.simulation.forces.charge;d&&d.enabled&&c.force("charge",B8e().strength(d.strength));const p=t.simulation.forces.collision;p&&p.enabled&&c.force("collision",A8e().radius(y=>p.radiusMultiplier*ds(t,y)));const g=t.simulation.forces.link;return g&&g.enabled&&c.force("link",E8e(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 xNe({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){var a,c;const h=r8e().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 ENe{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(K8e(()=>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(YS(h)?h:h({oldWidth:t,oldHeight:n,newWidth:i,newHeight:o}))}restart(t){var n;this.markerSelection=pNe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=lNe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=yNe({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=ANe({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=xNe({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=X8e({applyZoom:this.scale!==1,container:Mn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=uNe(this.canvas),this.nodeSelection=mNe(this.canvas),this.markerSelection=dNe(this.canvas),this.drag=Y8e({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(){DNe(this.nodeSelection),cNe({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(){Q8e({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 LA({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function CNe(e){return{...e}}function sF(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const _Ne={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},SNe={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},FNe=["id","checked","onChange"],$Ne=["for"],TNe=pe("div",{"flex-auto":""},null,-1),kNe=rt({__name:"ViewModuleGraph",props:{graph:null},setup(e){const t=e,{graph:n}=aT(t),i=Ke(),o=Ke(!1),a=Ke(),c=Ke();ng(()=>{o.value===!1&&setTimeout(()=>a.value=void 0,300)},{flush:"post"}),_a(()=>{p()}),ig(()=>{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 ENe(i.value,n.value,G8e({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?B0.Randomized:B0.Centered,zoom:{min:.5,max:2}})))}function g(y){if(Yr)return;const m=C=>C.button===0;let w=0,$=0,L=0;y.on("pointerdown",(C,E)=>{E.type!=="external"&&(!E.x||!E.y||!m(C)||(w=E.x,$=E.y,L=Date.now()))}).on("pointerup",(C,E)=>{if(E.type==="external"||!E.x||!E.y||!m(C)||Date.now()-L>500)return;const S=E.x-w,O=E.y-$;S**2+O**2<100&&d(E.id)})}return(y,m)=>{var E;const w=Na,$=CBe,L=dBe,C=ro("tooltip");return de(),Te("div",_Ne,[pe("div",null,[pe("div",SNe,[(de(!0),Te(ht,null,Ar((E=Q(c))==null?void 0:E.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,FNe),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,$Ne)])}),128)),TNe,pe("div",null,[yn(Me(w,{icon:"i-carbon-reset",onClick:p},null,512),[[C,"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(xT,{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 LNe={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},BNe={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},ONe={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},PNe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},NNe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},INe={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},um=rt({__name:"StatusIcon",props:{task:null},setup(e){return(t,n)=>{var o,a,c;const i=ro("tooltip");return((o=e.task.result)==null?void 0:o.state)==="pass"?(de(),Te("div",LNe)):Q(Hh)(e.task)?yn((de(),Te("div",BNe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):((a=e.task.result)==null?void 0:a.state)==="fail"?(de(),Te("div",ONe)):e.task.mode==="todo"?yn((de(),Te("div",PNe,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",NNe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(de(),Te("div",INe))}}});function RNe(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 MNe(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 zNe(e){const t=e.map(i=>MNe(i)),n=RNe(t);return t.map(({raw:i,id:o})=>sF({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 UNe(e,t){return sF({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function qNe(e,t){if(!e)return LA({});const n=zNe(e.externalized),i=e.inlined.map(h=>UNe(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 CNe({source:g,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return LA({nodes:o,links:c})}const HNe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},jNe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},VNe={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},WNe={class:"flex text-lg"},GNe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},KNe={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},XNe={key:0,"flex-1":""},QNe=rt({__name:"FileDetails",setup(e){const t=Ke({externalized:[],graph:{},inlined:[]}),n=Ke({nodes:[],links:[]}),i=Ke(!1),o=Ke(!1);kW(Pt,async(p,g)=>{p&&p.filepath!==(g==null?void 0:g.filepath)&&(t.value=await sn.rpc.getModuleGraph(p.filepath),n.value=qNe(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=J_.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=um,m=Na,w=kNe,$=hBe,L=oBe,C=ZLe,E=ro("tooltip");return Q(Pt)?(de(),Te("div",HNe,[pe("div",null,[pe("div",jNe,[Me(y,{task:Q(Pt)},null,8,["task"]),pe("div",VNe,Je((S=Q(Pt))==null?void 0:S.filepath),1),pe("div",WNe,[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"])),[[E,"Open in editor",void 0,{bottom:!0}]])])]),pe("div",GNe,[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",KNe,[Q(o)?(de(),Te("div",XNe,[yn(Me(w,{graph:Q(n),"data-testid":"graph"},null,8,["graph"]),[[Vp,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(C,{key:3,file:Q(Pt),"data-testid":"report"},null,8,["file"]))])])):nt("",!0)}}}),YNe=["open"],ZNe=pe("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),JNe=pe("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),eIe=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)}),JNe],2),Sr(n.$slots,"default")],40,YNe))}});const tIe={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},nIe=["text"],rIe={"text-sm":"",truncate:"","font-light":""},iIe={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},sIe=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=um;return e.task?(de(),Te("div",tIe,[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",rIe,Je(e.task.name),1),typeof Q(n)=="number"?(de(),Te("span",iIe,Je(Q(n)>0?Q(n):"< 1")+"ms ",1)):nt("",!0)],8,nIe)])):nt("",!0)}}});function oIe(e){return Object.hasOwnProperty.call(e,"tasks")}function oF(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}const aIe={key:1},uIe={inheritAttrs:!1},lIe=rt({...uIe,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(e){return(t,n)=>{const i=sIe,o=Ys("TaskTree",!0);return de(),Te(ht,null,[!e.search||Q(oF)(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",aIe,[(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)}}}),cIe={h:"full",flex:"~ col"},fIe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},hIe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},dIe=pe("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),pIe=["op"],gIe={class:"scrolls","flex-auto":"","py-1":""},vIe={"text-red5":""},mIe={"text-yellow5":""},yIe={"text-green5":""},bIe={class:"text-purple5:50"},wIe={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},DIe=pe("div",{op30:""}," No matched test ",-1),AIe={inheritAttrs:!1},aF=rt({...AIe,__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(C,E){let S=!1;for(let O=0;O<C.length;O++){const B=C[O];if(oF(B.name,E)){S=!0;break}if(oIe(B)&&B.tasks&&(S=c(B.tasks,E),S))break}return S}const h=xe(()=>i.value.trim()?n.tasks.filter(C=>c([C],i.value)):n.tasks),d=xe(()=>a.value?h.value.map(C=>Nf(C.id)).filter(Boolean):[]),p=xe(()=>h.value.filter(C=>{var E;return((E=C.result)==null?void 0:E.state)==="fail"})),g=xe(()=>h.value.filter(C=>{var E;return((E=C.result)==null?void 0:E.state)==="pass"})),y=xe(()=>h.value.filter(C=>C.mode==="skip"||C.mode==="todo")),m=xe(()=>h.value.filter(C=>!p.value.includes(C)&&!g.value.includes(C)&&!y.value.includes(C))),w=wW(m,250);function $(C){var E;i.value="",C&&((E=o.value)==null||E.focus())}const L=xe(()=>i.value==="");return(C,E)=>{const S=Na,O=lIe,B=eIe,k=ro("tooltip");return de(),Te("div",cIe,[pe("div",null,[pe("div",fIe,[Sr(C.$slots,"header",{filteredTests:Q(a)?Q(d):void 0})]),pe("div",hIe,[dIe,yn(pe("input",{ref_key:"searchBox",ref:o,"onUpdate:modelValue":E[0]||(E[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:[E[1]||(E[1]=jp(M=>$(!1),["esc"])),E[2]||(E[2]=jp(M=>t("run",Q(a)?Q(d):void 0),["enter"]))]},null,40,pIe),[[jk,Q(i)]]),yn(Me(S,{disabled:Q(L),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:E[3]||(E[3]=M=>$(!0))},null,8,["disabled"]),[[k,"Clear search",void 0,{bottom:!0}]])])]),pe("div",gIe,[e.groupByType?(de(),Te(ht,{key:0},[Q(p).length?(de(),Ze(B,{key:0},{summary:Ye(()=>[pe("div",vIe," 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",mIe," 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",yIe," 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",bIe," 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",wIe,[DIe,pe("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:E[4]||(E[4]=M=>$(!0))}," Clear ",32)])):nt("",!0)])])}}}),tl=Ke(),oa=Ke(!0),Aa=Ke(!1),jf=Ke(!0),Vf=xe(()=>{var e;return(e=Tl.value)==null?void 0:e.coverage}),N0=xe(()=>{var e,t,n;return(t=(e=Tl.value)==null?void 0:e.api)!=null&&t.port?(n=Vf.value)==null?void 0:n.enabled:!1}),Us=xe(()=>N0.value&&Vf.value.reporter.map(([e])=>e).includes("html")),xIe=xe(()=>{if(Us.value){const e=`${window.location.protocol}//${window.location.hostname}:${Tl.value.api.port}`,t=Vf.value.reportsDirectory.lastIndexOf("/");return`${e}/${Vf.value.reportsDirectory.slice(t+1)}/index.html`}});Vt(Xu,e=>{jf.value=e==="running"},{immediate:!0});function EIe(){const e=Vr.value;if(e&&e.length>0){const t=Nf(e);t?(tl.value=t,oa.value=!1,Aa.value=!1):LW(()=>sn.state.getFiles(),()=>{tl.value=Nf(e),oa.value=!1,Aa.value=!1})}return oa}function $p(e){oa.value=e,Aa.value=!1,e&&(tl.value=void 0,Vr.value="")}function CIe(){Aa.value=!0,oa.value=!1,tl.value=void 0,Vr.value=""}const _Ie={key:0,"h-full":""},SIe={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},FIe={class:"flex text-lg"},$Ie=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)&&Hh((c=Pt.value)==null?void 0:c.tasks)});function i(){return Pt.value&&sn.rpc.updateSnapshot(Pt.value)}async function o(){Us.value&&(jf.value=!0,await Ci()),await zG()}return(a,c)=>{const h=um,d=Na,p=aF,g=ro("tooltip");return Q(Pt)?(de(),Te("div",_Ie,[Me(p,{tasks:Q(Pt).tasks,nested:!0},{header:Ye(()=>[Me(h,{"mx-1":"",task:Q(Pt)},null,8,["task"]),pe("span",SIe,Je(Q(t)),1),pe("div",FIe,[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)}}}),TIe={h:"full",flex:"~ col"},kIe=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),LIe={"flex-auto":"","py-1":"","bg-white":""},BIe=["src"],OIe=rt({__name:"Coverage",props:{src:null},setup(e){return(t,n)=>(de(),Te("div",TIe,[kIe,pe("div",LIe,[pe("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,BIe)])]))}});const Wf=xe(()=>Hn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),Gf=xe(()=>Hn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),lm=xe(()=>Hn.value.filter(e=>e.mode==="skip"||e.mode==="todo"));xe(()=>Hn.value.filter(e=>!Wf.value.includes(e)&&!Gf.value.includes(e)&&!lm.value.includes(e)));xe(()=>lm.value.filter(e=>e.mode==="skip"));const BA=xe(()=>Hn.value.filter(Hh));xe(()=>lm.value.filter(e=>e.mode==="todo"));const PIe=xe(()=>Xu.value==="idle"),Ol=xe(()=>cm(Hn.value)),uF=xe(()=>Ol.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),lF=xe(()=>Ol.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),cF=xe(()=>Ol.value.filter(e=>e.mode==="skip"||e.mode==="todo")),NIe=xe(()=>cF.value.filter(e=>e.mode==="skip")),IIe=xe(()=>cF.value.filter(e=>e.mode==="todo"));xe(()=>uF.value.length+lF.value.length);const RIe=xe(()=>{const e=cm(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 MIe(e){return e=e||[],Array.isArray(e)?e:[e]}function OA(e){return e.type==="test"||e.type==="benchmark"||e.type==="typecheck"}function cm(e){return MIe(e).flatMap(t=>OA(t)?[t]:t.tasks.flatMap(n=>OA(n)?[n]:cm(n)))}const ei=e=>(cx("data-v-6679a536"),e=e(),fx(),e),zIe={"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:""},UIe=ei(()=>pe("div",{"i-carbon-document":""},null,-1)),qIe=ei(()=>pe("div",null,"Files",-1)),HIe={class:"number","data-testid":"num-files"},jIe=ei(()=>pe("div",{"i-carbon-checkmark":""},null,-1)),VIe=ei(()=>pe("div",null,"Pass",-1)),WIe={class:"number"},GIe=ei(()=>pe("div",{"i-carbon-close":""},null,-1)),KIe=ei(()=>pe("div",null," Fail ",-1)),XIe={class:"number","text-red5":""},QIe=ei(()=>pe("div",{"i-carbon-compare":""},null,-1)),YIe=ei(()=>pe("div",null," Snapshot Fail ",-1)),ZIe={class:"number","text-red5":""},JIe=ei(()=>pe("div",{"i-carbon-timer":""},null,-1)),eRe=ei(()=>pe("div",null,"Time",-1)),tRe={class:"number","data-testid":"run-time"},nRe=rt({__name:"TestFilesEntry",setup(e){return(t,n)=>(de(),Te("div",zIe,[UIe,qIe,pe("div",HIe,Je(Q(Hn).length),1),Q(Gf).length?(de(),Te(ht,{key:0},[jIe,VIe,pe("div",WIe,Je(Q(Gf).length),1)],64)):nt("",!0),Q(Wf).length?(de(),Te(ht,{key:1},[GIe,KIe,pe("div",XIe,Je(Q(Wf).length),1)],64)):nt("",!0),Q(BA).length?(de(),Te(ht,{key:2},[QIe,YIe,pe("div",ZIe,Je(Q(BA).length),1)],64)):nt("",!0),JIe,eRe,pe("div",tRe,Je(Q(RIe)),1)]))}});const rRe=io(nRe,[["__scopeId","data-v-6679a536"]]),iRe={"p-2":"","text-center":"",flex:""},sRe={"text-4xl":"","min-w-2em":""},oRe={"text-md":""},aRe=rt({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(e){return(t,n)=>(de(),Te("div",iRe,[pe("div",null,[pe("div",sRe,[Sr(t.$slots,"body")]),pe("div",oRe,[Sr(t.$slots,"header")])])]))}}),uRe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},lRe=rt({__name:"TestsEntry",setup(e){const t=xe(()=>Ol.value.length),n=xe(()=>lF.value.length),i=xe(()=>uF.value.length),o=xe(()=>NIe.value.length),a=xe(()=>IIe.value.length);return(c,h)=>{const d=aRe;return de(),Te("div",uRe,[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})])}}}),cRe={},fRe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},hRe={"aria-labelledby":"tests",m:"y-4 x-2"};function dRe(e,t){const n=lRe,i=rRe;return de(),Te("div",fRe,[pe("section",hRe,[Me(n)]),Me(i)])}const pRe=io(cRe,[["render",dRe]]),gRe={},vRe={h:"full",flex:"~ col"},mRe=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),yRe={class:"scrolls","flex-auto":"","py-1":""};function bRe(e,t){const n=pRe;return de(),Te("div",vRe,[mRe,pe("div",yRe,[Me(n)])])}const wRe=io(gRe,[["render",bRe]]),DRe=""+new URL("../favicon.svg",import.meta.url).href,ARe=pe("img",{"w-6":"","h-6":"",src:DRe,alt:"Vitest logo"},null,-1),xRe=pe("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),ERe={class:"flex text-lg"},CRe=pe("div",{class:"i-carbon:folder-off ma"},null,-1),_Re=pe("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[pe("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),pe("div",null,"Coverage enabled but missing html reporter."),pe("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),SRe=rt({__name:"Navigation",setup(e){const t=xe(()=>Hn.value&&Hh(Hn.value));function n(){return sn.rpc.updateSnapshot()}function i(c){Vr.value=c.id,tl.value=Nf(c.id),$p(!1)}const o=xe(()=>Wh.value?"light":"dark");async function a(c){Us.value&&(jf.value=!0,await Ci(),Us.value&&($p(!0),await Ci())),await KD(c)}return(c,h)=>{const d=Na,p=aF,g=ro("tooltip");return de(),Ze(p,{border:"r base",tasks:Q(Hn),"on-item-click":i,"group-by-type":!0,onRun:a},{header:Ye(({filteredTests:y})=>[ARe,xRe,pe("div",ERe,[yn(Me(d,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=m=>Q($p)(!0))},null,512),[[Vp,Q(N0)&&!Q(Us)||!Q(oa)],[g,"Dashboard",void 0,{bottom:!0}]]),Q(N0)&&!Q(Us)?(de(),Ze(Q(f3),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:Ye(()=>[_Re]),default:Ye(()=>[CRe]),_:1})):nt("",!0),Q(Us)?yn((de(),Ze(d,{key:1,disabled:Q(jf),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=m=>Q(CIe)())},null,8,["disabled"])),[[Vp,!Q(Aa)],[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(KD)(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(WLe)())},null,512),[[g,`Toggle to ${Q(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),FRe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},$Re=rt({__name:"ProgressBar",setup(e){const{width:t}=yG(),n=xe(()=>Hn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":PIe.value?null:"in-progress"),i=xe(()=>Hn.value.length),o=xe(()=>Gf.value.length),a=xe(()=>Wf.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",FRe,[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 TRe=io($Re,[["__scopeId","data-v-f967c1fe"]]),PA={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())}},kRe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},LRe={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 BRe(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=kRe(LRe,[["render",BRe]]),ORe={"h-screen":"","w-screen":"",overflow:"hidden"},PRe=rt({__name:"index",setup(e){const t=EIe(),n=Zn([33,67]),i=Zn([33,67]),o=OD(h=>{h.forEach((d,p)=>{n[p]=d.size})},0),a=OD(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=TRe,g=SRe,y=wRe,m=OIe,w=$Ie,$=QNe,L=HG;return de(),Te(ht,null,[Me(p),pe("div",ORe,[Me(Q(PA),{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(ug,null,{default:Ye(()=>[Q(t)?(de(),Ze(y,{key:"summary"})):Q(Aa)?(de(),Ze(m,{key:"coverage",src:Q(xIe)},null,8,["src"])):(de(),Ze(Q(PA),{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)}}}),NRe=[{name:"index",path:"/",component:PRe,props:!0}];const IRe={tooltip:c3};vE.options.instantMove=!0;vE.options.distance=10;function RRe(){return JL({history:gL(pW),routes:NRe})}const MRe=[RRe],fm=Nx(Yk);MRe.forEach(e=>{fm.use(e())});Object.entries(IRe).forEach(([e,t])=>{fm.directive(e,t)});fm.mount("#app");