@vitest/browser 0.28.4 → 0.28.5
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,41 @@
|
|
|
1
|
+
var F$=Object.defineProperty;var $$=(e,t,n)=>t in e?F$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bs=(e,t,n)=>($$(e,typeof t!="symbol"?t+"":t,n),n);(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 a0(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 zn(e){if(He(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=Xt(i)?B$(i):zn(i);if(o)for(const a in o)t[a]=o[a]}return t}else{if(Xt(e))return e;if(_t(e))return e}}const T$=/;(?![^(]*\))/g,k$=/:([^]+)/,L$=/\/\*.*?\*\//gs;function B$(e){const t={};return e.replace(L$,"").split(T$).forEach(n=>{if(n){const i=n.split(k$);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function yt(e){let t="";if(Xt(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(_t(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const O$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",P$=a0(O$);function rA(e){return!!e||e===""}const Xe=e=>Xt(e)?e:e==null?"":He(e)||_t(e)&&(e.toString===aA||!Ve(e.toString))?JSON.stringify(e,iA,2):String(e),iA=(e,t)=>t&&t.__v_isRef?iA(e,t.value):zo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:sA(t)?{[`Set(${t.size})`]:[...t.values()]}:_t(t)&&!He(t)&&!uA(t)?String(t):t,Ct={},Mo=[],Ar=()=>{},N$=()=>!1,I$=/^on[^a-z]/,$f=e=>I$.test(e),u0=e=>e.startsWith("onUpdate:"),cn=Object.assign,l0=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R$=Object.prototype.hasOwnProperty,it=(e,t)=>R$.call(e,t),He=Array.isArray,zo=e=>Tf(e)==="[object Map]",sA=e=>Tf(e)==="[object Set]",Ve=e=>typeof e=="function",Xt=e=>typeof e=="string",c0=e=>typeof e=="symbol",_t=e=>e!==null&&typeof e=="object",oA=e=>_t(e)&&Ve(e.then)&&Ve(e.catch),aA=Object.prototype.toString,Tf=e=>aA.call(e),M$=e=>Tf(e).slice(8,-1),uA=e=>Tf(e)==="[object Object]",f0=e=>Xt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bc=a0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},z$=/-(\w)/g,jr=kf(e=>e.replace(z$,(t,n)=>n?n.toUpperCase():"")),U$=/\B([A-Z])/g,Ws=kf(e=>e.replace(U$,"-$1").toLowerCase()),Lf=kf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cd=kf(e=>e?`on${Lf(e)}`:""),Cu=(e,t)=>!Object.is(e,t),Oc=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Yc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Yo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Py;const H$=()=>Py||(Py=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Wn;class q${constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Wn,!t&&Wn&&(this.index=(Wn.scopes||(Wn.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Wn;try{return Wn=this,t()}finally{Wn=n}}}on(){Wn=this}off(){Wn=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 j$(e,t=Wn){t&&t.active&&t.effects.push(e)}function V$(){return Wn}function W$(e){Wn&&Wn.cleanups.push(e)}const h0=e=>{const t=new Set(e);return t.w=0,t.n=0,t},lA=e=>(e.w&ts)>0,cA=e=>(e.n&ts)>0,G$=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ts},K$=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const o=t[i];lA(o)&&!cA(o)?o.delete(e):t[n++]=o,o.w&=~ts,o.n&=~ts}t.length=n}},up=new WeakMap;let du=0,ts=1;const lp=30;let mr;const Is=Symbol(""),cp=Symbol("");class d0{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,j$(this,i)}run(){if(!this.active)return this.fn();let t=mr,n=Zi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=mr,mr=this,Zi=!0,ts=1<<++du,du<=lp?G$(this):Ny(this),this.fn()}finally{du<=lp&&K$(this),ts=1<<--du,mr=this.parent,Zi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){mr===this?this.deferStop=!0:this.active&&(Ny(this),this.onStop&&this.onStop(),this.active=!1)}}function Ny(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Zi=!0;const fA=[];function ha(){fA.push(Zi),Zi=!1}function da(){const e=fA.pop();Zi=e===void 0?!0:e}function Xn(e,t,n){if(Zi&&mr){let i=up.get(e);i||up.set(e,i=new Map);let o=i.get(n);o||i.set(n,o=h0()),hA(o)}}function hA(e,t){let n=!1;du<=lp?cA(e)||(e.n|=ts,n=!lA(e)):n=!e.has(mr),n&&(e.add(mr),mr.deps.push(e))}function bi(e,t,n,i,o,a){const c=up.get(e);if(!c)return;let h=[];if(t==="clear")h=[...c.values()];else if(n==="length"&&He(e)){const d=Yo(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)?f0(n)&&h.push(c.get("length")):(h.push(c.get(Is)),zo(e)&&h.push(c.get(cp)));break;case"delete":He(e)||(h.push(c.get(Is)),zo(e)&&h.push(c.get(cp)));break;case"set":zo(e)&&h.push(c.get(Is));break}if(h.length===1)h[0]&&fp(h[0]);else{const d=[];for(const p of h)p&&d.push(...p);fp(h0(d))}}function fp(e,t){const n=He(e)?e:[...e];for(const i of n)i.computed&&Iy(i);for(const i of n)i.computed||Iy(i)}function Iy(e,t){(e!==mr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Q$=a0("__proto__,__v_isRef,__isVue"),dA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(c0)),X$=p0(),Y$=p0(!1,!0),Z$=p0(!0),Ry=J$();function J$(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=ht(this);for(let a=0,c=this.length;a<c;a++)Xn(i,"get",a+"");const o=i[t](...n);return o===-1||o===!1?i[t](...n.map(ht)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ha();const i=ht(this)[t].apply(this,n);return da(),i}}),e}function p0(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?g2:yA:t?mA:vA).get(i))return i;const c=He(i);if(!e&&c&&it(Ry,o))return Reflect.get(Ry,o,a);const h=Reflect.get(i,o,a);return(c0(o)?dA.has(o):Q$(o))||(e||Xn(i,"get",o),t)?h:Pt(h)?c&&f0(o)?h:h.value:_t(h)?e?bA(h):Qn(h):h}}const e2=pA(),t2=pA(!0);function pA(e=!1){return function(n,i,o,a){let c=n[i];if(Zo(c)&&Pt(c)&&!Pt(o))return!1;if(!e&&(!Zc(o)&&!Zo(o)&&(c=ht(c),o=ht(o)),!He(n)&&Pt(c)&&!Pt(o)))return c.value=o,!0;const h=He(n)&&f0(i)?Number(i)<n.length:it(n,i),d=Reflect.set(n,i,o,a);return n===ht(a)&&(h?Cu(o,c)&&bi(n,"set",i,o):bi(n,"add",i,o)),d}}function n2(e,t){const n=it(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&bi(e,"delete",t,void 0),i}function r2(e,t){const n=Reflect.has(e,t);return(!c0(t)||!dA.has(t))&&Xn(e,"has",t),n}function i2(e){return Xn(e,"iterate",He(e)?"length":Is),Reflect.ownKeys(e)}const gA={get:X$,set:e2,deleteProperty:n2,has:r2,ownKeys:i2},s2={get:Z$,set(e,t){return!0},deleteProperty(e,t){return!0}},o2=cn({},gA,{get:Y$,set:t2}),g0=e=>e,Bf=e=>Reflect.getPrototypeOf(e);function nc(e,t,n=!1,i=!1){e=e.__v_raw;const o=ht(e),a=ht(t);n||(t!==a&&Xn(o,"get",t),Xn(o,"get",a));const{has:c}=Bf(o),h=i?g0:n?b0:_u;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 rc(e,t=!1){const n=this.__v_raw,i=ht(n),o=ht(e);return t||(e!==o&&Xn(i,"has",e),Xn(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ic(e,t=!1){return e=e.__v_raw,!t&&Xn(ht(e),"iterate",Is),Reflect.get(e,"size",e)}function My(e){e=ht(e);const t=ht(this);return Bf(t).has.call(t,e)||(t.add(e),bi(t,"add",e,e)),this}function zy(e,t){t=ht(t);const n=ht(this),{has:i,get:o}=Bf(n);let a=i.call(n,e);a||(e=ht(e),a=i.call(n,e));const c=o.call(n,e);return n.set(e,t),a?Cu(t,c)&&bi(n,"set",e,t):bi(n,"add",e,t),this}function Uy(e){const t=ht(this),{has:n,get:i}=Bf(t);let o=n.call(t,e);o||(e=ht(e),o=n.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return o&&bi(t,"delete",e,void 0),a}function Hy(){const e=ht(this),t=e.size!==0,n=e.clear();return t&&bi(e,"clear",void 0,void 0),n}function sc(e,t){return function(i,o){const a=this,c=a.__v_raw,h=ht(c),d=t?g0:e?b0:_u;return!e&&Xn(h,"iterate",Is),c.forEach((p,g)=>i.call(o,d(p),d(g),a))}}function oc(e,t,n){return function(...i){const o=this.__v_raw,a=ht(o),c=zo(a),h=e==="entries"||e===Symbol.iterator&&c,d=e==="keys"&&c,p=o[e](...i),g=n?g0:t?b0:_u;return!t&&Xn(a,"iterate",d?cp:Is),{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 Ui(e){return function(...t){return e==="delete"?!1:this}}function a2(){const e={get(a){return nc(this,a)},get size(){return ic(this)},has:rc,add:My,set:zy,delete:Uy,clear:Hy,forEach:sc(!1,!1)},t={get(a){return nc(this,a,!1,!0)},get size(){return ic(this)},has:rc,add:My,set:zy,delete:Uy,clear:Hy,forEach:sc(!1,!0)},n={get(a){return nc(this,a,!0)},get size(){return ic(this,!0)},has(a){return rc.call(this,a,!0)},add:Ui("add"),set:Ui("set"),delete:Ui("delete"),clear:Ui("clear"),forEach:sc(!0,!1)},i={get(a){return nc(this,a,!0,!0)},get size(){return ic(this,!0)},has(a){return rc.call(this,a,!0)},add:Ui("add"),set:Ui("set"),delete:Ui("delete"),clear:Ui("clear"),forEach:sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=oc(a,!1,!1),n[a]=oc(a,!0,!1),t[a]=oc(a,!1,!0),i[a]=oc(a,!0,!0)}),[e,n,t,i]}const[u2,l2,c2,f2]=a2();function v0(e,t){const n=t?e?f2:c2:e?l2:u2;return(i,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(it(n,o)&&o in i?n:i,o,a)}const h2={get:v0(!1,!1)},d2={get:v0(!1,!0)},p2={get:v0(!0,!1)},vA=new WeakMap,mA=new WeakMap,yA=new WeakMap,g2=new WeakMap;function v2(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function m2(e){return e.__v_skip||!Object.isExtensible(e)?0:v2(M$(e))}function Qn(e){return Zo(e)?e:m0(e,!1,gA,h2,vA)}function y2(e){return m0(e,!1,o2,d2,mA)}function bA(e){return m0(e,!0,s2,p2,yA)}function m0(e,t,n,i,o){if(!_t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const c=m2(e);if(c===0)return e;const h=new Proxy(e,c===2?i:n);return o.set(e,h),h}function Uo(e){return Zo(e)?Uo(e.__v_raw):!!(e&&e.__v_isReactive)}function Zo(e){return!!(e&&e.__v_isReadonly)}function Zc(e){return!!(e&&e.__v_isShallow)}function wA(e){return Uo(e)||Zo(e)}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function y0(e){return Yc(e,"__v_skip",!0),e}const _u=e=>_t(e)?Qn(e):e,b0=e=>_t(e)?bA(e):e;function DA(e){Zi&&mr&&(e=ht(e),hA(e.dep||(e.dep=h0())))}function AA(e,t){e=ht(e),e.dep&&fp(e.dep)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function Qe(e){return EA(e,!1)}function qu(e){return EA(e,!0)}function EA(e,t){return Pt(e)?e:new b2(e,t)}class b2{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ht(t),this._value=n?t:_u(t)}get value(){return DA(this),this._value}set value(t){const n=this.__v_isShallow||Zc(t)||Zo(t);t=n?t:ht(t),Cu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_u(t),AA(this))}}function X(e){return Pt(e)?e.value:e}const w2={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Pt(o)&&!Pt(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function xA(e){return Uo(e)?e:new Proxy(e,w2)}function D2(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=w0(e,n);return t}class A2{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}}function w0(e,t,n){const i=e[t];return Pt(i)?i:new A2(e,t,n)}var CA;class E2{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[CA]=!1,this._dirty=!0,this.effect=new d0(t,()=>{this._dirty||(this._dirty=!0,AA(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=ht(this);return DA(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}CA="__v_isReadonly";function x2(e,t,n=!1){let i,o;const a=Ve(e);return a?(i=e,o=Ar):(i=e.get,o=e.set),new E2(i,o,a||!o,n)}function Ji(e,t,n,i){let o;try{o=i?e(...i):e()}catch(a){ju(a,t,n)}return o}function or(e,t,n,i){if(Ve(e)){const a=Ji(e,t,n,i);return a&&oA(a)&&a.catch(c=>{ju(c,t,n)}),a}const o=[];for(let a=0;a<e.length;a++)o.push(or(e[a],t,n,i));return o}function ju(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){Ji(d,null,10,[e,c,h]);return}}C2(e,n,o,i)}function C2(e,t,n,i=!0){console.error(e)}let Su=!1,hp=!1;const vn=[];let Ir=0;const Ho=[];let ci=null,$s=0;const _A=Promise.resolve();let D0=null;function pa(e){const t=D0||_A;return e?t.then(this?e.bind(this):e):t}function _2(e){let t=Ir+1,n=vn.length;for(;t<n;){const i=t+n>>>1;Fu(vn[i])<e?t=i+1:n=i}return t}function A0(e){(!vn.length||!vn.includes(e,Su&&e.allowRecurse?Ir+1:Ir))&&(e.id==null?vn.push(e):vn.splice(_2(e.id),0,e),SA())}function SA(){!Su&&!hp&&(hp=!0,D0=_A.then(TA))}function S2(e){const t=vn.indexOf(e);t>Ir&&vn.splice(t,1)}function FA(e){He(e)?Ho.push(...e):(!ci||!ci.includes(e,e.allowRecurse?$s+1:$s))&&Ho.push(e),SA()}function qy(e,t=Su?Ir+1:0){for(;t<vn.length;t++){const n=vn[t];n&&n.pre&&(vn.splice(t,1),t--,n())}}function $A(e){if(Ho.length){const t=[...new Set(Ho)];if(Ho.length=0,ci){ci.push(...t);return}for(ci=t,ci.sort((n,i)=>Fu(n)-Fu(i)),$s=0;$s<ci.length;$s++)ci[$s]();ci=null,$s=0}}const Fu=e=>e.id==null?1/0:e.id,F2=(e,t)=>{const n=Fu(e)-Fu(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function TA(e){hp=!1,Su=!0,vn.sort(F2);const t=Ar;try{for(Ir=0;Ir<vn.length;Ir++){const n=vn[Ir];n&&n.active!==!1&&Ji(n,null,14)}}finally{Ir=0,vn.length=0,$A(),Su=!1,D0=null,(vn.length||Ho.length)&&TA()}}function $2(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(A=>Xt(A)?A.trim():A)),y&&(o=n.map(Yo))}let h,d=i[h=Cd(t)]||i[h=Cd(jr(t))];!d&&a&&(d=i[h=Cd(Ws(t))]),d&&or(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,or(p,e,6,o)}}function kA(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=kA(p,t,!0);g&&(h=!0,cn(c,g))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!a&&!h?(_t(e)&&i.set(e,null),null):(He(a)?a.forEach(d=>c[d]=null):cn(c,a),_t(e)&&i.set(e,c),c)}function Of(e,t){return!e||!$f(t)?!1:(t=t.slice(2).replace(/Once$/,""),it(e,t[0].toLowerCase()+t.slice(1))||it(e,Ws(t))||it(e,t))}let ln=null,Pf=null;function Jc(e){const t=ln;return ln=e,Pf=e&&e.type.__scopeId||null,t}function LA(e){Pf=e}function BA(){Pf=null}const T2=e=>Ze;function Ze(e,t=ln,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&e1(-1);const a=Jc(t);let c;try{c=e(...o)}finally{Jc(a),i._d&&e1(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function _d(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:A,ctx:$,inheritAttrs:L}=e;let C,x;const S=Jc(e);try{if(n.shapeFlag&4){const B=o||i;C=vr(g.call(B,B,y,a,A,m,$)),x=d}else{const B=t;C=vr(B.length>1?B(a,{attrs:d,slots:h,emit:p}):B(a,null)),x=t.props?d:L2(d)}}catch(B){yu.length=0,ju(B,e,1),C=Me(Un)}let O=C;if(x&&L!==!1){const B=Object.keys(x),{shapeFlag:k}=O;B.length&&k&7&&(c&&B.some(u0)&&(x=B2(x,c)),O=ns(O,x))}return n.dirs&&(O=ns(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),C=O,Jc(S),C}function k2(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Tu(i)){if(i.type!==Un||i.children==="v-if"){if(t)return;t=i}}else return}return t}const L2=e=>{let t;for(const n in e)(n==="class"||n==="style"||$f(n))&&((t||(t={}))[n]=e[n]);return t},B2=(e,t)=>{const n={};for(const i in e)(!u0(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function O2(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?jy(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]&&!Of(p,m))return!0}}}else return(o||h)&&(!h||!h.$stable)?!0:i===c?!1:i?c?jy(i,c,p):!0:!!c;return!1}function jy(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]&&!Of(n,a))return!0}return!1}function E0({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const P2=e=>e.__isSuspense,N2={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,a,c,h,d,p){e==null?R2(t,n,i,o,a,c,h,d,p):M2(e,t,n,i,o,c,h,d,p)},hydrate:z2,create:x0,normalize:U2},I2=N2;function $u(e,t){const n=e.props&&e.props[t];Ve(n)&&n()}function R2(e,t,n,i,o,a,c,h,d){const{p,o:{createElement:g}}=d,y=g("div"),m=e.suspense=x0(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?($u(e,"onPending"),$u(e,"onFallback"),p(null,e.ssFallback,t,n,i,null,a,c),qo(m,e.ssFallback)):m.resolve()}function M2(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,A=t.ssFallback,{activeBranch:$,pendingBranch:L,isInFallback:C,isHydrating:x}=y;if(L)y.pendingBranch=m,Rr(m,L)?(d(L,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():C&&(d($,A,n,i,o,null,a,c,h),qo(y,A))):(y.pendingId++,x?(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($,A,n,i,o,null,a,c,h),qo(y,A))):$&&Rr(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($&&Rr(m,$))d($,m,n,i,o,y,a,c,h),qo(y,m);else if($u(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(A)},S):S===0&&y.fallback(A)}}function x0(e,t,n,i,o,a,c,h,d,p,g=!1){const{p:y,m,um:A,n:$,o:{parentNode:L,remove:C}}=p,x=Yo(e.props&&e.props.timeout),S={vnode:e,parent:t,parentComponent:n,isSVG:c,container:i,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:g,isUnmounted:!1,effects:[],resolve(O=!1){const{vnode:B,activeBranch:k,pendingBranch:M,pendingId:R,effects:W,parentComponent:ie,container:ce}=S;if(S.isHydrating)S.isHydrating=!1;else if(!O){const P=k&&M.transition&&M.transition.mode==="out-in";P&&(k.transition.afterLeave=()=>{R===S.pendingId&&m(M,ce,F,0)});let{anchor:F}=S;k&&(F=$(k),A(k,ie,S,!0)),P||m(M,ce,F,0)}qo(S,M),S.pendingBranch=null,S.isInFallback=!1;let Y=S.parent,U=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...W),U=!0;break}Y=Y.parent}U||FA(W),S.effects=[],$u(B,"onResolve")},fallback(O){if(!S.pendingBranch)return;const{vnode:B,activeBranch:k,parentComponent:M,container:R,isSVG:W}=S;$u(B,"onFallback");const ie=$(k),ce=()=>{!S.isInFallback||(y(null,O,R,ie,M,null,W,h,d),qo(S,O))},Y=O.transition&&O.transition.mode==="out-in";Y&&(k.transition.afterLeave=ce),S.isInFallback=!0,A(k,M,null,!0),Y||ce()},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(R=>{ju(R,O,0)}).then(R=>{if(O.isUnmounted||S.isUnmounted||S.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:W}=O;wp(O,R,!1),M&&(W.el=M);const ie=!M&&O.subTree.el;B(O,W,L(M||O.subTree.el),M?null:$(O.subTree),S,c,d),ie&&C(ie),E0(O,W.el),k&&--S.deps===0&&S.resolve()})},unmount(O,B){S.isUnmounted=!0,S.activeBranch&&A(S.activeBranch,n,O,B),S.pendingBranch&&A(S.pendingBranch,n,O,B)}};return S}function z2(e,t,n,i,o,a,c,h,d){const p=t.suspense=x0(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 U2(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=Vy(i?n.default:n),e.ssFallback=i?Vy(n.fallback):Me(Un)}function Vy(e){let t;if(Ve(e)){const n=Jo&&e._c;n&&(e._d=!1,de()),e=e(),n&&(e._d=!0,t=ir,YA())}return He(e)&&(e=k2(e)),e=vr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function H2(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):FA(e)}function qo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,o=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=o,E0(i,o))}function Pc(e,t){if(nn){let n=nn.provides;const i=nn.parent&&nn.parent.provides;i===n&&(n=nn.provides=Object.create(i)),n[e]=t}}function mi(e,t,n=!1){const i=nn||ln;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 C0(e,t){return _0(e,null,t)}const ac={};function Qt(e,t,n){return _0(e,t,n)}function _0(e,t,{immediate:n,deep:i,flush:o,onTrack:a,onTrigger:c}=Ct){const h=nn;let d,p=!1,g=!1;if(Pt(e)?(d=()=>e.value,p=Zc(e)):Uo(e)?(d=()=>e,i=!0):He(e)?(g=!0,p=e.some(O=>Uo(O)||Zc(O)),d=()=>e.map(O=>{if(Pt(O))return O.value;if(Uo(O))return Bs(O);if(Ve(O))return Ji(O,h,2)})):Ve(e)?t?d=()=>Ji(e,h,2):d=()=>{if(!(h&&h.isUnmounted))return y&&y(),or(e,h,3,[m])}:d=Ar,t&&i){const O=d;d=()=>Bs(O())}let y,m=O=>{y=x.onStop=()=>{Ji(O,h,4)}},A;if(ku)if(m=Ar,t?n&&or(t,h,3,[d(),g?[]:void 0,m]):d(),o==="sync"){const O=OT();A=O.__watcherHandles||(O.__watcherHandles=[])}else return Ar;let $=g?new Array(e.length).fill(ac):ac;const L=()=>{if(!!x.active)if(t){const O=x.run();(i||p||(g?O.some((B,k)=>Cu(B,$[k])):Cu(O,$)))&&(y&&y(),or(t,h,3,[O,$===ac?void 0:g&&$[0]===ac?[]:$,m]),$=O)}else x.run()};L.allowRecurse=!!t;let C;o==="sync"?C=L:o==="post"?C=()=>Nn(L,h&&h.suspense):(L.pre=!0,h&&(L.id=h.uid),C=()=>A0(L));const x=new d0(d,C);t?n?L():$=x.run():o==="post"?Nn(x.run.bind(x),h&&h.suspense):x.run();const S=()=>{x.stop(),h&&h.scope&&l0(h.scope.effects,x)};return A&&A.push(S),S}function q2(e,t,n){const i=this.proxy,o=Xt(e)?e.includes(".")?OA(i,e):()=>i[e]:e.bind(i,i);let a;Ve(t)?a=t:(a=t.handler,n=t);const c=nn;ea(this);const h=_0(o,a.bind(i),n);return c?ea(c):Rs(),h}function OA(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 Bs(e,t){if(!_t(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Pt(e))Bs(e.value,t);else if(He(e))for(let n=0;n<e.length;n++)Bs(e[n],t);else if(sA(e)||zo(e))e.forEach(n=>{Bs(n,t)});else if(uA(e))for(const n in e)Bs(e[n],t);return e}function j2(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vu(()=>{e.isMounted=!0}),MA(()=>{e.isUnmounting=!0}),e}const tr=[Function,Array],V2={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tr,onEnter:tr,onAfterEnter:tr,onEnterCancelled:tr,onBeforeLeave:tr,onLeave:tr,onAfterLeave:tr,onLeaveCancelled:tr,onBeforeAppear:tr,onAppear:tr,onAfterAppear:tr,onAppearCancelled:tr},setup(e,{slots:t}){const n=zf(),i=j2();let o;return()=>{const a=t.default&&IA(t.default(),!0);if(!a||!a.length)return;let c=a[0];if(a.length>1){for(const L of a)if(L.type!==Un){c=L;break}}const h=ht(e),{mode:d}=h;if(i.isLeaving)return Sd(c);const p=Wy(c);if(!p)return Sd(c);const g=dp(p,h,i,n);pp(p,g);const y=n.subTree,m=y&&Wy(y);let A=!1;const{getTransitionKey:$}=p.type;if($){const L=$();o===void 0?o=L:L!==o&&(o=L,A=!0)}if(m&&m.type!==Un&&(!Rr(p,m)||A)){const L=dp(m,h,i,n);if(pp(m,L),d==="out-in")return i.isLeaving=!0,L.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},Sd(c);d==="in-out"&&p.type!==Un&&(L.delayLeave=(C,x,S)=>{const O=NA(i,m);O[String(m.key)]=m,C._leaveCb=()=>{x(),C._leaveCb=void 0,delete g.delayedLeave},g.delayedLeave=S})}return c}}},PA=V2;function NA(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 dp(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:A,onLeaveCancelled:$,onBeforeAppear:L,onAppear:C,onAfterAppear:x,onAppearCancelled:S}=t,O=String(e.key),B=NA(n,e),k=(W,ie)=>{W&&or(W,i,9,ie)},M=(W,ie)=>{const ce=ie[1];k(W,ie),He(W)?W.every(Y=>Y.length<=1)&&ce():W.length<=1&&ce()},R={mode:a,persisted:c,beforeEnter(W){let ie=h;if(!n.isMounted)if(o)ie=L||h;else return;W._leaveCb&&W._leaveCb(!0);const ce=B[O];ce&&Rr(e,ce)&&ce.el._leaveCb&&ce.el._leaveCb(),k(ie,[W])},enter(W){let ie=d,ce=p,Y=g;if(!n.isMounted)if(o)ie=C||d,ce=x||p,Y=S||g;else return;let U=!1;const P=W._enterCb=F=>{U||(U=!0,F?k(Y,[W]):k(ce,[W]),R.delayedLeave&&R.delayedLeave(),W._enterCb=void 0)};ie?M(ie,[W,P]):P()},leave(W,ie){const ce=String(e.key);if(W._enterCb&&W._enterCb(!0),n.isUnmounting)return ie();k(y,[W]);let Y=!1;const U=W._leaveCb=P=>{Y||(Y=!0,ie(),P?k($,[W]):k(A,[W]),W._leaveCb=void 0,B[ce]===e&&delete B[ce])};B[ce]=e,m?M(m,[W,U]):U()},clone(W){return dp(W,t,n,i)}};return R}function Sd(e){if(Nf(e))return e=ns(e),e.children=null,e}function Wy(e){return Nf(e)?e.children?e.children[0]:void 0:e}function pp(e,t){e.shapeFlag&6&&e.component?pp(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function IA(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===ft?(c.patchFlag&128&&o++,i=i.concat(IA(c.children,t,h))):(t||c.type!==Un)&&i.push(h!=null?ns(c,{key:h}):c)}if(o>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}function st(e){return Ve(e)?{setup:e,name:e.name}:e}const vu=e=>!!e.type.__asyncLoader,Nf=e=>e.type.__isKeepAlive;function W2(e,t){RA(e,"a",t)}function G2(e,t){RA(e,"da",t)}function RA(e,t,n=nn){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(If(t,i,n),n){let o=n.parent;for(;o&&o.parent;)Nf(o.parent.vnode)&&K2(i,t,n,o),o=o.parent}}function K2(e,t,n,i){const o=If(t,e,i,!0);S0(()=>{l0(i[t],o)},n)}function If(e,t,n=nn,i=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...c)=>{if(n.isUnmounted)return;ha(),ea(n);const h=or(t,n,e,c);return Rs(),da(),h});return i?o.unshift(a):o.push(a),a}}const xi=e=>(t,n=nn)=>(!ku||e==="sp")&&If(e,(...i)=>t(...i),n),Q2=xi("bm"),Vu=xi("m"),X2=xi("bu"),Y2=xi("u"),MA=xi("bum"),S0=xi("um"),Z2=xi("sp"),J2=xi("rtg"),eT=xi("rtc");function tT(e,t=nn){If("ec",e,t)}function Fn(e,t){const n=ln;if(n===null)return e;const i=Uf(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&&Bs(h),o.push({dir:c,instance:i,value:h,oldValue:void 0,arg:d,modifiers:p}))}return e}function ws(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&&(ha(),or(d,n,8,[e.el,h,e,t]),da())}}const zA="components",nT="directives";function Us(e,t){return UA(zA,e,!0,t)||e}const rT=Symbol();function Gs(e){return UA(nT,e)}function UA(e,t,n=!0,i=!1){const o=ln||nn;if(o){const a=o.type;if(e===zA){const h=$T(a,!1);if(h&&(h===t||h===jr(t)||h===Lf(jr(t))))return a}const c=Gy(o[e]||a[e],t)||Gy(o.appContext[e],t);return!c&&i?a:c}}function Gy(e,t){return e&&(e[t]||e[jr(t)]||e[Lf(jr(t))])}function yr(e,t,n,i){let o;const a=n&&n[i];if(He(e)||Xt(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(_t(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 Er(e,t,n={},i,o){if(ln.isCE||ln.parent&&vu(ln.parent)&&ln.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&&HA(a(n)),h=et(ft,{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 HA(e){return e.some(t=>Tu(t)?!(t.type===Un||t.type===ft&&!HA(t.children)):!0)?e:null}const gp=e=>e?eE(e)?Uf(e)||e.proxy:gp(e.parent):null,mu=cn(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=>gp(e.parent),$root:e=>gp(e.root),$emit:e=>e.emit,$options:e=>F0(e),$forceUpdate:e=>e.f||(e.f=()=>A0(e.update)),$nextTick:e=>e.n||(e.n=pa.bind(e.proxy)),$watch:e=>q2.bind(e)}),Fd=(e,t)=>e!==Ct&&!e.__isScriptSetup&&it(e,t),iT={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 A=c[t];if(A!==void 0)switch(A){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return a[t]}else{if(Fd(i,t))return c[t]=1,i[t];if(o!==Ct&&it(o,t))return c[t]=2,o[t];if((p=e.propsOptions[0])&&it(p,t))return c[t]=3,a[t];if(n!==Ct&&it(n,t))return c[t]=4,n[t];vp&&(c[t]=0)}}const g=mu[t];let y,m;if(g)return t==="$attrs"&&Xn(e,"get",t),g(e);if((y=h.__cssModules)&&(y=y[t]))return y;if(n!==Ct&&it(n,t))return c[t]=4,n[t];if(m=d.config.globalProperties,it(m,t))return m[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return Fd(o,t)?(o[t]=n,!0):i!==Ct&&it(i,t)?(i[t]=n,!0):it(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&&it(e,c)||Fd(t,c)||(h=a[0])&&it(h,c)||it(i,c)||it(mu,c)||it(o.config.globalProperties,c)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:it(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let vp=!0;function sT(e){const t=F0(e),n=e.proxy,i=e.ctx;vp=!1,t.beforeCreate&&Ky(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:c,watch:h,provide:d,inject:p,created:g,beforeMount:y,mounted:m,beforeUpdate:A,updated:$,activated:L,deactivated:C,beforeDestroy:x,beforeUnmount:S,destroyed:O,unmounted:B,render:k,renderTracked:M,renderTriggered:R,errorCaptured:W,serverPrefetch:ie,expose:ce,inheritAttrs:Y,components:U,directives:P,filters:F}=t;if(p&&oT(p,i,null,e.appContext.config.unwrapInjectedRef),c)for(const j in c){const Z=c[j];Ve(Z)&&(i[j]=Z.bind(n))}if(o){const j=o.call(n,n);_t(j)&&(e.data=Qn(j))}if(vp=!0,a)for(const j in a){const Z=a[j],ae=Ve(Z)?Z.bind(n,n):Ve(Z.get)?Z.get.bind(n,n):Ar,me=!Ve(Z)&&Ve(Z.set)?Z.set.bind(n):Ar,$e=xe({get:ae,set:me});Object.defineProperty(i,j,{enumerable:!0,configurable:!0,get:()=>$e.value,set:Fe=>$e.value=Fe})}if(h)for(const j in h)qA(h[j],i,n,j);if(d){const j=Ve(d)?d.call(n):d;Reflect.ownKeys(j).forEach(Z=>{Pc(Z,j[Z])})}g&&Ky(g,e,"c");function z(j,Z){He(Z)?Z.forEach(ae=>j(ae.bind(n))):Z&&j(Z.bind(n))}if(z(Q2,y),z(Vu,m),z(X2,A),z(Y2,$),z(W2,L),z(G2,C),z(tT,W),z(eT,M),z(J2,R),z(MA,S),z(S0,B),z(Z2,ie),He(ce))if(ce.length){const j=e.exposed||(e.exposed={});ce.forEach(Z=>{Object.defineProperty(j,Z,{get:()=>n[Z],set:ae=>n[Z]=ae})})}else e.exposed||(e.exposed={});k&&e.render===Ar&&(e.render=k),Y!=null&&(e.inheritAttrs=Y),U&&(e.components=U),P&&(e.directives=P)}function oT(e,t,n=Ar,i=!1){He(e)&&(e=mp(e));for(const o in e){const a=e[o];let c;_t(a)?"default"in a?c=mi(a.from||o,a.default,!0):c=mi(a.from||o):c=mi(a),Pt(c)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:h=>c.value=h}):t[o]=c}}function Ky(e,t,n){or(He(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function qA(e,t,n,i){const o=i.includes(".")?OA(n,i):()=>n[i];if(Xt(e)){const a=t[e];Ve(a)&&Qt(o,a)}else if(Ve(e))Qt(o,e.bind(n));else if(_t(e))if(He(e))e.forEach(a=>qA(a,t,n,i));else{const a=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(a)&&Qt(o,a,e)}}function F0(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=>ef(d,p,c,!0)),ef(d,t,c)),_t(t)&&a.set(t,d),d}function ef(e,t,n,i=!1){const{mixins:o,extends:a}=t;a&&ef(e,a,n,!0),o&&o.forEach(c=>ef(e,c,n,!0));for(const c in t)if(!(i&&c==="expose")){const h=aT[c]||n&&n[c];e[c]=h?h(e[c],t[c]):t[c]}return e}const aT={data:Qy,props:_s,emits:_s,methods:_s,computed:_s,beforeCreate:xn,created:xn,beforeMount:xn,mounted:xn,beforeUpdate:xn,updated:xn,beforeDestroy:xn,beforeUnmount:xn,destroyed:xn,unmounted:xn,activated:xn,deactivated:xn,errorCaptured:xn,serverPrefetch:xn,components:_s,directives:_s,watch:lT,provide:Qy,inject:uT};function Qy(e,t){return t?e?function(){return cn(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function uT(e,t){return _s(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 xn(e,t){return e?[...new Set([].concat(e,t))]:t}function _s(e,t){return e?cn(cn(Object.create(null),e),t):t}function lT(e,t){if(!e)return t;if(!t)return e;const n=cn(Object.create(null),e);for(const i in t)n[i]=xn(e[i],t[i]);return n}function cT(e,t,n,i=!1){const o={},a={};Yc(a,Mf,1),e.propsDefaults=Object.create(null),jA(e,t,o,a);for(const c in e.propsOptions[0])c in o||(o[c]=void 0);n?e.props=i?o:y2(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function fT(e,t,n,i){const{props:o,attrs:a,vnode:{patchFlag:c}}=e,h=ht(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(Of(e.emitsOptions,m))continue;const A=t[m];if(d)if(it(a,m))A!==a[m]&&(a[m]=A,p=!0);else{const $=jr(m);o[$]=yp(d,h,$,A,e,!1)}else A!==a[m]&&(a[m]=A,p=!0)}}}else{jA(e,t,o,a)&&(p=!0);let g;for(const y in h)(!t||!it(t,y)&&((g=Ws(y))===y||!it(t,g)))&&(d?n&&(n[y]!==void 0||n[g]!==void 0)&&(o[y]=yp(d,h,y,void 0,e,!0)):delete o[y]);if(a!==h)for(const y in a)(!t||!it(t,y)&&!0)&&(delete a[y],p=!0)}p&&bi(e,"set","$attrs")}function jA(e,t,n,i){const[o,a]=e.propsOptions;let c=!1,h;if(t)for(let d in t){if(Bc(d))continue;const p=t[d];let g;o&&it(o,g=jr(d))?!a||!a.includes(g)?n[g]=p:(h||(h={}))[g]=p:Of(e.emitsOptions,d)||(!(d in i)||p!==i[d])&&(i[d]=p,c=!0)}if(a){const d=ht(n),p=h||Ct;for(let g=0;g<a.length;g++){const y=a[g];n[y]=yp(o,d,y,p[y],e,!it(p,y))}}return c}function yp(e,t,n,i,o,a){const c=e[n];if(c!=null){const h=it(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]:(ea(o),i=p[n]=d.call(null,t),Rs())}else i=d}c[0]&&(a&&!h?i=!1:c[1]&&(i===""||i===Ws(n))&&(i=!0))}return i}function VA(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,A]=VA(y,t,!0);cn(c,m),A&&h.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!a&&!d)return _t(e)&&i.set(e,Mo),Mo;if(He(a))for(let g=0;g<a.length;g++){const y=jr(a[g]);Xy(y)&&(c[y]=Ct)}else if(a)for(const g in a){const y=jr(g);if(Xy(y)){const m=a[g],A=c[y]=He(m)||Ve(m)?{type:m}:Object.assign({},m);if(A){const $=Jy(Boolean,A.type),L=Jy(String,A.type);A[0]=$>-1,A[1]=L<0||$<L,($>-1||it(A,"default"))&&h.push(y)}}}const p=[c,h];return _t(e)&&i.set(e,p),p}function Xy(e){return e[0]!=="$"}function Yy(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Zy(e,t){return Yy(e)===Yy(t)}function Jy(e,t){return He(t)?t.findIndex(n=>Zy(n,e)):Ve(t)&&Zy(t,e)?0:-1}const WA=e=>e[0]==="_"||e==="$stable",$0=e=>He(e)?e.map(vr):[vr(e)],hT=(e,t,n)=>{if(t._n)return t;const i=Ze((...o)=>$0(t(...o)),n);return i._c=!1,i},GA=(e,t,n)=>{const i=e._ctx;for(const o in e){if(WA(o))continue;const a=e[o];if(Ve(a))t[o]=hT(o,a,i);else if(a!=null){const c=$0(a);t[o]=()=>c}}},KA=(e,t)=>{const n=$0(t);e.slots.default=()=>n},dT=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ht(t),Yc(t,"_",n)):GA(t,e.slots={})}else e.slots={},t&&KA(e,t);Yc(e.slots,Mf,1)},pT=(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:(cn(o,t),!n&&h===1&&delete o._):(a=!t.$stable,GA(t,o)),c=t}else t&&(KA(e,t),c={default:1});if(a)for(const h in o)!WA(h)&&!(h in c)&&delete o[h]};function QA(){return{app:null,config:{isNativeTag:N$,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 gT=0;function vT(e,t){return function(i,o=null){Ve(i)||(i=Object.assign({},i)),o!=null&&!_t(o)&&(o=null);const a=QA(),c=new Set;let h=!1;const d=a.app={_uid:gT++,_component:i,_props:o,_container:null,_context:a,_instance:null,version:PT,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,Uf(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 bp(e,t,n,i,o=!1){if(He(e)){e.forEach((m,A)=>bp(m,t&&(He(t)?t[A]:t),n,i,o));return}if(vu(i)&&!o)return;const a=i.shapeFlag&4?Uf(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&&(Xt(p)?(g[p]=null,it(y,p)&&(y[p]=null)):Pt(p)&&(p.value=null)),Ve(d))Ji(d,h,12,[c,g]);else{const m=Xt(d),A=Pt(d);if(m||A){const $=()=>{if(e.f){const L=m?it(y,d)?y[d]:g[d]:d.value;o?He(L)&&l0(L,a):He(L)?L.includes(a)||L.push(a):m?(g[d]=[a],it(y,d)&&(y[d]=g[d])):(d.value=[a],e.k&&(g[e.k]=d.value))}else m?(g[d]=c,it(y,d)&&(y[d]=c)):A&&(d.value=c,e.k&&(g[e.k]=c))};c?($.id=-1,Nn($,n)):$()}}}const Nn=H2;function mT(e){return yT(e)}function yT(e,t){const n=H$();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:A=Ar,insertStaticContent:$}=e,L=(I,G,ne,oe=null,le=null,ye=null,he=!1,be=null,Ee=!!G.dynamicChildren)=>{if(I===G)return;I&&!Rr(I,G)&&(oe=J(I),Fe(I,le,ye,!0),I=null),G.patchFlag===-2&&(Ee=!1,G.dynamicChildren=null);const{type:pe,ref:Ne,shapeFlag:Be}=G;switch(pe){case Rf:C(I,G,ne,oe);break;case Un:x(I,G,ne,oe);break;case $d:I==null&&S(G,ne,oe,he);break;case ft:U(I,G,ne,oe,le,ye,he,be,Ee);break;default:Be&1?k(I,G,ne,oe,le,ye,he,be,Ee):Be&6?P(I,G,ne,oe,le,ye,he,be,Ee):(Be&64||Be&128)&&pe.process(I,G,ne,oe,le,ye,he,be,Ee,_e)}Ne!=null&&le&&bp(Ne,I&&I.ref,ye,G||I,!G)},C=(I,G,ne,oe)=>{if(I==null)i(G.el=h(G.children),ne,oe);else{const le=G.el=I.el;G.children!==I.children&&p(le,G.children)}},x=(I,G,ne,oe)=>{I==null?i(G.el=d(G.children||""),ne,oe):G.el=I.el},S=(I,G,ne,oe)=>{[I.el,I.anchor]=$(I.children,G,ne,oe,I.el,I.anchor)},O=({el:I,anchor:G},ne,oe)=>{let le;for(;I&&I!==G;)le=m(I),i(I,ne,oe),I=le;i(G,ne,oe)},B=({el:I,anchor:G})=>{let ne;for(;I&&I!==G;)ne=m(I),o(I),I=ne;o(G)},k=(I,G,ne,oe,le,ye,he,be,Ee)=>{he=he||G.type==="svg",I==null?M(G,ne,oe,le,ye,he,be,Ee):ie(I,G,le,ye,he,be,Ee)},M=(I,G,ne,oe,le,ye,he,be)=>{let Ee,pe;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&&W(I.children,Ee,null,oe,le,ye&&Ne!=="foreignObject",he,be),Ge&&ws(I,null,oe,"created"),Be){for(const Je in Be)Je!=="value"&&!Bc(Je)&&a(Ee,Je,null,Be[Je],ye,I.children,oe,le,se);"value"in Be&&a(Ee,"value",null,Be.value),(pe=Be.onVnodeBeforeMount)&&Pr(pe,oe,I)}R(Ee,I,I.scopeId,he,oe),Ge&&ws(I,null,oe,"beforeMount");const nt=(!le||le&&!le.pendingBranch)&&Re&&!Re.persisted;nt&&Re.beforeEnter(Ee),i(Ee,G,ne),((pe=Be&&Be.onVnodeMounted)||nt||Ge)&&Nn(()=>{pe&&Pr(pe,oe,I),nt&&Re.enter(Ee),Ge&&ws(I,null,oe,"mounted")},le)},R=(I,G,ne,oe,le)=>{if(ne&&A(I,ne),oe)for(let ye=0;ye<oe.length;ye++)A(I,oe[ye]);if(le){let ye=le.subTree;if(G===ye){const he=le.vnode;R(I,he,he.scopeId,he.slotScopeIds,le.parent)}}},W=(I,G,ne,oe,le,ye,he,be,Ee=0)=>{for(let pe=Ee;pe<I.length;pe++){const Ne=I[pe]=be?Vi(I[pe]):vr(I[pe]);L(null,Ne,G,ne,oe,le,ye,he,be)}},ie=(I,G,ne,oe,le,ye,he)=>{const be=G.el=I.el;let{patchFlag:Ee,dynamicChildren:pe,dirs:Ne}=G;Ee|=I.patchFlag&16;const Be=I.props||Ct,Pe=G.props||Ct;let Re;ne&&Ds(ne,!1),(Re=Pe.onVnodeBeforeUpdate)&&Pr(Re,ne,G,I),Ne&&ws(G,I,ne,"beforeUpdate"),ne&&Ds(ne,!0);const Ge=le&&G.type!=="foreignObject";if(pe?ce(I.dynamicChildren,pe,be,ne,oe,Ge,ye):he||Z(I,G,be,null,ne,oe,Ge,ye,!1),Ee>0){if(Ee&16)Y(be,G,Be,Pe,ne,oe,le);else if(Ee&2&&Be.class!==Pe.class&&a(be,"class",null,Pe.class,le),Ee&4&&a(be,"style",Be.style,Pe.style,le),Ee&8){const nt=G.dynamicProps;for(let Je=0;Je<nt.length;Je++){const ct=nt[Je],Ye=Be[ct],Ln=Pe[ct];(Ln!==Ye||ct==="value")&&a(be,ct,Ye,Ln,le,I.children,ne,oe,se)}}Ee&1&&I.children!==G.children&&g(be,G.children)}else!he&&pe==null&&Y(be,G,Be,Pe,ne,oe,le);((Re=Pe.onVnodeUpdated)||Ne)&&Nn(()=>{Re&&Pr(Re,ne,G,I),Ne&&ws(G,I,ne,"updated")},oe)},ce=(I,G,ne,oe,le,ye,he)=>{for(let be=0;be<G.length;be++){const Ee=I[be],pe=G[be],Ne=Ee.el&&(Ee.type===ft||!Rr(Ee,pe)||Ee.shapeFlag&70)?y(Ee.el):ne;L(Ee,pe,Ne,null,oe,le,ye,he,!0)}},Y=(I,G,ne,oe,le,ye,he)=>{if(ne!==oe){if(ne!==Ct)for(const be in ne)!Bc(be)&&!(be in oe)&&a(I,be,ne[be],null,he,G.children,le,ye,se);for(const be in oe){if(Bc(be))continue;const Ee=oe[be],pe=ne[be];Ee!==pe&&be!=="value"&&a(I,be,pe,Ee,he,G.children,le,ye,se)}"value"in oe&&a(I,"value",ne.value,oe.value)}},U=(I,G,ne,oe,le,ye,he,be,Ee)=>{const pe=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(pe,ne,oe),i(Ne,ne,oe),W(G.children,ne,Ne,le,ye,he,be,Ee)):Be>0&&Be&64&&Pe&&I.dynamicChildren?(ce(I.dynamicChildren,Pe,ne,le,ye,he,be),(G.key!=null||le&&G===le.subTree)&&XA(I,G,!0)):Z(I,G,ne,Ne,le,ye,he,be,Ee)},P=(I,G,ne,oe,le,ye,he,be,Ee)=>{G.slotScopeIds=be,I==null?G.shapeFlag&512?le.ctx.activate(G,ne,oe,he,Ee):F(G,ne,oe,le,ye,he,Ee):D(I,G,Ee)},F=(I,G,ne,oe,le,ye,he)=>{const be=I.component=CT(I,oe,le);if(Nf(I)&&(be.ctx.renderer=_e),_T(be),be.asyncDep){if(le&&le.registerDep(be,z),!I.el){const Ee=be.subTree=Me(Un);x(null,Ee,G,ne)}return}z(be,I,G,ne,le,ye,he)},D=(I,G,ne)=>{const oe=G.component=I.component;if(O2(I,G,ne))if(oe.asyncDep&&!oe.asyncResolved){j(oe,G,ne);return}else oe.next=G,S2(oe.update),oe.update();else G.el=I.el,oe.vnode=G},z=(I,G,ne,oe,le,ye,he)=>{const be=()=>{if(I.isMounted){let{next:Ne,bu:Be,u:Pe,parent:Re,vnode:Ge}=I,nt=Ne,Je;Ds(I,!1),Ne?(Ne.el=Ge.el,j(I,Ne,he)):Ne=Ge,Be&&Oc(Be),(Je=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Pr(Je,Re,Ne,Ge),Ds(I,!0);const ct=_d(I),Ye=I.subTree;I.subTree=ct,L(Ye,ct,y(Ye.el),J(Ye),I,le,ye),Ne.el=ct.el,nt===null&&E0(I,ct.el),Pe&&Nn(Pe,le),(Je=Ne.props&&Ne.props.onVnodeUpdated)&&Nn(()=>Pr(Je,Re,Ne,Ge),le)}else{let Ne;const{el:Be,props:Pe}=G,{bm:Re,m:Ge,parent:nt}=I,Je=vu(G);if(Ds(I,!1),Re&&Oc(Re),!Je&&(Ne=Pe&&Pe.onVnodeBeforeMount)&&Pr(Ne,nt,G),Ds(I,!0),Be&&Te){const ct=()=>{I.subTree=_d(I),Te(Be,I.subTree,I,le,null)};Je?G.type.__asyncLoader().then(()=>!I.isUnmounted&&ct()):ct()}else{const ct=I.subTree=_d(I);L(null,ct,ne,oe,I,le,ye),G.el=ct.el}if(Ge&&Nn(Ge,le),!Je&&(Ne=Pe&&Pe.onVnodeMounted)){const ct=G;Nn(()=>Pr(Ne,nt,ct),le)}(G.shapeFlag&256||nt&&vu(nt.vnode)&&nt.vnode.shapeFlag&256)&&I.a&&Nn(I.a,le),I.isMounted=!0,G=ne=oe=null}},Ee=I.effect=new d0(be,()=>A0(pe),I.scope),pe=I.update=()=>Ee.run();pe.id=I.uid,Ds(I,!0),pe()},j=(I,G,ne)=>{G.component=I;const oe=I.vnode.props;I.vnode=G,I.next=null,fT(I,G.props,oe,ne),pT(I,G.children,ne),ha(),qy(),da()},Z=(I,G,ne,oe,le,ye,he,be,Ee=!1)=>{const pe=I&&I.children,Ne=I?I.shapeFlag:0,Be=G.children,{patchFlag:Pe,shapeFlag:Re}=G;if(Pe>0){if(Pe&128){me(pe,Be,ne,oe,le,ye,he,be,Ee);return}else if(Pe&256){ae(pe,Be,ne,oe,le,ye,he,be,Ee);return}}Re&8?(Ne&16&&se(pe,le,ye),Be!==pe&&g(ne,Be)):Ne&16?Re&16?me(pe,Be,ne,oe,le,ye,he,be,Ee):se(pe,le,ye,!0):(Ne&8&&g(ne,""),Re&16&&W(Be,ne,oe,le,ye,he,be,Ee))},ae=(I,G,ne,oe,le,ye,he,be,Ee)=>{I=I||Mo,G=G||Mo;const pe=I.length,Ne=G.length,Be=Math.min(pe,Ne);let Pe;for(Pe=0;Pe<Be;Pe++){const Re=G[Pe]=Ee?Vi(G[Pe]):vr(G[Pe]);L(I[Pe],Re,ne,null,le,ye,he,be,Ee)}pe>Ne?se(I,le,ye,!0,!1,Be):W(G,ne,oe,le,ye,he,be,Ee,Be)},me=(I,G,ne,oe,le,ye,he,be,Ee)=>{let pe=0;const Ne=G.length;let Be=I.length-1,Pe=Ne-1;for(;pe<=Be&&pe<=Pe;){const Re=I[pe],Ge=G[pe]=Ee?Vi(G[pe]):vr(G[pe]);if(Rr(Re,Ge))L(Re,Ge,ne,null,le,ye,he,be,Ee);else break;pe++}for(;pe<=Be&&pe<=Pe;){const Re=I[Be],Ge=G[Pe]=Ee?Vi(G[Pe]):vr(G[Pe]);if(Rr(Re,Ge))L(Re,Ge,ne,null,le,ye,he,be,Ee);else break;Be--,Pe--}if(pe>Be){if(pe<=Pe){const Re=Pe+1,Ge=Re<Ne?G[Re].el:oe;for(;pe<=Pe;)L(null,G[pe]=Ee?Vi(G[pe]):vr(G[pe]),ne,Ge,le,ye,he,be,Ee),pe++}}else if(pe>Pe)for(;pe<=Be;)Fe(I[pe],le,ye,!0),pe++;else{const Re=pe,Ge=pe,nt=new Map;for(pe=Ge;pe<=Pe;pe++){const Dt=G[pe]=Ee?Vi(G[pe]):vr(G[pe]);Dt.key!=null&&nt.set(Dt.key,pe)}let Je,ct=0;const Ye=Pe-Ge+1;let Ln=!1,qn=0;const Jt=new Array(Ye);for(pe=0;pe<Ye;pe++)Jt[pe]=0;for(pe=Re;pe<=Be;pe++){const Dt=I[pe];if(ct>=Ye){Fe(Dt,le,ye,!0);continue}let mn;if(Dt.key!=null)mn=nt.get(Dt.key);else for(Je=Ge;Je<=Pe;Je++)if(Jt[Je-Ge]===0&&Rr(Dt,G[Je])){mn=Je;break}mn===void 0?Fe(Dt,le,ye,!0):(Jt[mn-Ge]=pe+1,mn>=qn?qn=mn:Ln=!0,L(Dt,G[mn],ne,null,le,ye,he,be,Ee),ct++)}const Js=Ln?bT(Jt):Mo;for(Je=Js.length-1,pe=Ye-1;pe>=0;pe--){const Dt=Ge+pe,mn=G[Dt],Ae=Dt+1<Ne?G[Dt+1].el:oe;Jt[pe]===0?L(null,mn,ne,Ae,le,ye,he,be,Ee):Ln&&(Je<0||pe!==Js[Je]?$e(mn,ne,Ae,2):Je--)}}},$e=(I,G,ne,oe,le=null)=>{const{el:ye,type:he,transition:be,children:Ee,shapeFlag:pe}=I;if(pe&6){$e(I.component.subTree,G,ne,oe);return}if(pe&128){I.suspense.move(G,ne,oe);return}if(pe&64){he.move(I,G,ne,_e);return}if(he===ft){i(ye,G,ne);for(let Be=0;Be<Ee.length;Be++)$e(Ee[Be],G,ne,oe);i(I.anchor,G,ne);return}if(he===$d){O(I,G,ne);return}if(oe!==2&&pe&1&&be)if(oe===0)be.beforeEnter(ye),i(ye,G,ne),Nn(()=>be.enter(ye),le);else{const{leave:Be,delayLeave:Pe,afterLeave:Re}=be,Ge=()=>i(ye,G,ne),nt=()=>{Be(ye,()=>{Ge(),Re&&Re()})};Pe?Pe(ye,Ge,nt):nt()}else i(ye,G,ne)},Fe=(I,G,ne,oe=!1,le=!1)=>{const{type:ye,props:he,ref:be,children:Ee,dynamicChildren:pe,shapeFlag:Ne,patchFlag:Be,dirs:Pe}=I;if(be!=null&&bp(be,null,ne,I,!0),Ne&256){G.ctx.deactivate(I);return}const Re=Ne&1&&Pe,Ge=!vu(I);let nt;if(Ge&&(nt=he&&he.onVnodeBeforeUnmount)&&Pr(nt,G,I),Ne&6)re(I.component,ne,oe);else{if(Ne&128){I.suspense.unmount(ne,oe);return}Re&&ws(I,null,G,"beforeUnmount"),Ne&64?I.type.remove(I,G,ne,le,_e,oe):pe&&(ye!==ft||Be>0&&Be&64)?se(pe,G,ne,!1,!0):(ye===ft&&Be&384||!le&&Ne&16)&&se(Ee,G,ne),oe&&je(I)}(Ge&&(nt=he&&he.onVnodeUnmounted)||Re)&&Nn(()=>{nt&&Pr(nt,G,I),Re&&ws(I,null,G,"unmounted")},ne)},je=I=>{const{type:G,el:ne,anchor:oe,transition:le}=I;if(G===ft){tt(ne,oe);return}if(G===$d){B(I);return}const ye=()=>{o(ne),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(I.shapeFlag&1&&le&&!le.persisted){const{leave:he,delayLeave:be}=le,Ee=()=>he(ne,ye);be?be(I.el,ye,Ee):Ee()}else ye()},tt=(I,G)=>{let ne;for(;I!==G;)ne=m(I),o(I),I=ne;o(G)},re=(I,G,ne)=>{const{bum:oe,scope:le,update:ye,subTree:he,um:be}=I;oe&&Oc(oe),le.stop(),ye&&(ye.active=!1,Fe(he,I,G,ne)),be&&Nn(be,G),Nn(()=>{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,ne,oe=!1,le=!1,ye=0)=>{for(let he=ye;he<I.length;he++)Fe(I[he],G,ne,oe,le)},J=I=>I.shapeFlag&6?J(I.component.subTree):I.shapeFlag&128?I.suspense.next():m(I.anchor||I.el),fe=(I,G,ne)=>{I==null?G._vnode&&Fe(G._vnode,null,null,!0):L(G._vnode||null,I,G,null,null,null,ne),qy(),$A(),G._vnode=I},_e={p:L,um:Fe,m:$e,r:je,mt:F,mc:W,pc:Z,pbc:ce,n:J,o:e};let vt,Te;return t&&([vt,Te]=t(_e)),{render:fe,hydrate:vt,createApp:vT(fe,vt)}}function Ds({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function XA(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]=Vi(o[a]),h.el=c.el),n||XA(c,h)),h.type===Rf&&(h.el=c.el)}}function bT(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 wT=e=>e.__isTeleport,ft=Symbol(void 0),Rf=Symbol(void 0),Un=Symbol(void 0),$d=Symbol(void 0),yu=[];let ir=null;function de(e=!1){yu.push(ir=e?null:[])}function YA(){yu.pop(),ir=yu[yu.length-1]||null}let Jo=1;function e1(e){Jo+=e}function ZA(e){return e.dynamicChildren=Jo>0?ir||Mo:null,YA(),Jo>0&&ir&&ir.push(e),e}function ke(e,t,n,i,o,a){return ZA(ve(e,t,n,i,o,a,!0))}function et(e,t,n,i,o){return ZA(Me(e,t,n,i,o,!0))}function Tu(e){return e?e.__v_isVNode===!0:!1}function Rr(e,t){return e.type===t.type&&e.key===t.key}const Mf="__vInternal",JA=({key:e})=>e??null,Nc=({ref:e,ref_key:t,ref_for:n})=>e!=null?Xt(e)||Pt(e)||Ve(e)?{i:ln,r:e,k:t,f:!!n}:e:null;function ve(e,t=null,n=null,i=0,o=null,a=e===ft?0:1,c=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&JA(t),ref:t&&Nc(t),scopeId:Pf,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:ln};return h?(T0(d,n),a&128&&e.normalize(d)):n&&(d.shapeFlag|=Xt(n)?8:16),Jo>0&&!c&&ir&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&ir.push(d),d}const Me=DT;function DT(e,t=null,n=null,i=0,o=null,a=!1){if((!e||e===rT)&&(e=Un),Tu(e)){const h=ns(e,t,!0);return n&&T0(h,n),Jo>0&&!a&&ir&&(h.shapeFlag&6?ir[ir.indexOf(e)]=h:ir.push(h)),h.patchFlag|=-2,h}if(TT(e)&&(e=e.__vccOpts),t){t=AT(t);let{class:h,style:d}=t;h&&!Xt(h)&&(t.class=yt(h)),_t(d)&&(wA(d)&&!He(d)&&(d=cn({},d)),t.style=zn(d))}const c=Xt(e)?1:P2(e)?128:wT(e)?64:_t(e)?4:Ve(e)?2:0;return ve(e,t,n,i,o,c,a,!0)}function AT(e){return e?wA(e)||Mf in e?cn({},e):e:null}function ns(e,t,n=!1){const{props:i,ref:o,patchFlag:a,children:c}=e,h=t?es(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&JA(h),ref:t&&t.ref?n&&o?He(o)?o.concat(Nc(t)):[o,Nc(t)]:Nc(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!==ft?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&&ns(e.ssContent),ssFallback:e.ssFallback&&ns(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Cn(e=" ",t=0){return Me(Rf,null,e,t)}function ut(e="",t=!1){return t?(de(),et(Un,null,e)):Me(Un,null,e)}function vr(e){return e==null||typeof e=="boolean"?Me(Un):He(e)?Me(ft,null,e.slice()):typeof e=="object"?Vi(e):Me(Rf,null,String(e))}function Vi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ns(e)}function T0(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),T0(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Mf in t)?t._ctx=ln:o===3&&ln&&(ln.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:ln},n=32):(t=String(t),i&64?(n=16,t=[Cn(t)]):n=8);e.children=t,e.shapeFlag|=n}function es(...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=zn([t.style,i.style]);else if($f(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 Pr(e,t,n,i=null){or(e,t,7,[n,i])}const ET=QA();let xT=0;function CT(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||ET,a={uid:xT++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new q$(!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:VA(i,o),emitsOptions:kA(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=$2.bind(null,a),e.ce&&e.ce(a),a}let nn=null;const zf=()=>nn||ln,ea=e=>{nn=e,e.scope.on()},Rs=()=>{nn&&nn.scope.off(),nn=null};function eE(e){return e.vnode.shapeFlag&4}let ku=!1;function _T(e,t=!1){ku=t;const{props:n,children:i}=e.vnode,o=eE(e);cT(e,n,o,t),dT(e,i);const a=o?ST(e,t):void 0;return ku=!1,a}function ST(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=y0(new Proxy(e.ctx,iT));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?nE(e):null;ea(e),ha();const a=Ji(i,e,0,[e.props,o]);if(da(),Rs(),oA(a)){if(a.then(Rs,Rs),t)return a.then(c=>{wp(e,c,t)}).catch(c=>{ju(c,e,0)});e.asyncDep=a}else wp(e,a,t)}else tE(e,t)}function wp(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_t(t)&&(e.setupState=xA(t)),tE(e,n)}let t1;function tE(e,t,n){const i=e.type;if(!e.render){if(!t&&t1&&!i.render){const o=i.template||F0(e).template;if(o){const{isCustomElement:a,compilerOptions:c}=e.appContext.config,{delimiters:h,compilerOptions:d}=i,p=cn(cn({isCustomElement:a,delimiters:h},c),d);i.render=t1(o,p)}}e.render=i.render||Ar}ea(e),ha(),sT(e),da(),Rs()}function FT(e){return new Proxy(e.attrs,{get(t,n){return Xn(e,"get","$attrs"),t[n]}})}function nE(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=FT(e))},slots:e.slots,emit:e.emit,expose:t}}function Uf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(xA(y0(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mu)return mu[n](e)},has(t,n){return n in t||n in mu}}))}function $T(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function TT(e){return Ve(e)&&"__vccOpts"in e}const xe=(e,t)=>x2(e,t,ku);function kT(){return LT().attrs}function LT(){const e=zf();return e.setupContext||(e.setupContext=nE(e))}function Wu(e,t,n){const i=arguments.length;return i===2?_t(t)&&!He(t)?Tu(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Tu(n)&&(n=[n]),Me(e,t,n))}const BT=Symbol(""),OT=()=>mi(BT),PT="3.2.45",NT="http://www.w3.org/2000/svg",Ts=typeof document<"u"?document:null,n1=Ts&&Ts.createElement("template"),IT={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?Ts.createElementNS(NT,e):Ts.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Ts.createTextNode(e),createComment:e=>Ts.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ts.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{n1.innerHTML=i?`<svg>${e}</svg>`:e;const h=n1.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 RT(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 MT(e,t,n){const i=e.style,o=Xt(n);if(n&&!o){for(const a in n)Dp(i,a,n[a]);if(t&&!Xt(t))for(const a in t)n[a]==null&&Dp(i,a,"")}else{const a=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=a)}}const r1=/\s*!important$/;function Dp(e,t,n){if(He(n))n.forEach(i=>Dp(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=zT(e,t);r1.test(n)?e.setProperty(Ws(i),n.replace(r1,""),"important"):e[i]=n}}const i1=["Webkit","Moz","ms"],Td={};function zT(e,t){const n=Td[t];if(n)return n;let i=jr(t);if(i!=="filter"&&i in e)return Td[t]=i;i=Lf(i);for(let o=0;o<i1.length;o++){const a=i1[o]+i;if(a in e)return Td[t]=a}return t}const s1="http://www.w3.org/1999/xlink";function UT(e,t,n,i,o){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(s1,t.slice(6,t.length)):e.setAttributeNS(s1,t,n);else{const a=P$(t);n==null||a&&!rA(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function HT(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=rA(n):n==null&&d==="string"?(n="",h=!0):d==="number"&&(n=0,h=!0)}try{e[t]=n}catch{}h&&e.removeAttribute(t)}function Oo(e,t,n,i){e.addEventListener(t,n,i)}function qT(e,t,n,i){e.removeEventListener(t,n,i)}function jT(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]=VT(t);if(i){const p=a[t]=KT(i,o);Oo(e,h,p,d)}else c&&(qT(e,h,c,d),a[t]=void 0)}}const o1=/(?:Once|Passive|Capture)$/;function VT(e){let t;if(o1.test(e)){t={};let i;for(;i=e.match(o1);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ws(e.slice(2)),t]}let kd=0;const WT=Promise.resolve(),GT=()=>kd||(WT.then(()=>kd=0),kd=Date.now());function KT(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;or(QT(i,n.value),t,5,[i])};return n.value=e,n.attached=GT(),n}function QT(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 a1=/^on[a-z]/,XT=(e,t,n,i,o=!1,a,c,h,d)=>{t==="class"?RT(e,i,o):t==="style"?MT(e,n,i):$f(t)?u0(t)||jT(e,t,n,i,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):YT(e,t,i,o))?HT(e,t,i,a,c,h,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),UT(e,t,i,o))};function YT(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&a1.test(t)&&Ve(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||a1.test(t)&&Xt(n)?!1:t in e}const Hi="transition",ru="animation",k0=(e,{slots:t})=>Wu(PA,ZT(e),t);k0.displayName="Transition";const rE={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};k0.props=cn({},PA.props,rE);const As=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},u1=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function ZT(e){const t={};for(const U in e)U in rE||(t[U]=e[U]);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:A=`${n}-leave-to`}=e,$=JT(o),L=$&&$[0],C=$&&$[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:O,onLeave:B,onLeaveCancelled:k,onBeforeAppear:M=x,onAppear:R=S,onAppearCancelled:W=O}=t,ie=(U,P,F)=>{Es(U,P?g:h),Es(U,P?p:c),F&&F()},ce=(U,P)=>{U._isLeaving=!1,Es(U,y),Es(U,A),Es(U,m),P&&P()},Y=U=>(P,F)=>{const D=U?R:S,z=()=>ie(P,U,F);As(D,[P,z]),l1(()=>{Es(P,U?d:a),qi(P,U?g:h),u1(D)||c1(P,i,L,z)})};return cn(t,{onBeforeEnter(U){As(x,[U]),qi(U,a),qi(U,c)},onBeforeAppear(U){As(M,[U]),qi(U,d),qi(U,p)},onEnter:Y(!1),onAppear:Y(!0),onLeave(U,P){U._isLeaving=!0;const F=()=>ce(U,P);qi(U,y),nk(),qi(U,m),l1(()=>{!U._isLeaving||(Es(U,y),qi(U,A),u1(B)||c1(U,i,C,F))}),As(B,[U,F])},onEnterCancelled(U){ie(U,!1),As(O,[U])},onAppearCancelled(U){ie(U,!0),As(W,[U])},onLeaveCancelled(U){ce(U),As(k,[U])}})}function JT(e){if(e==null)return null;if(_t(e))return[Ld(e.enter),Ld(e.leave)];{const t=Ld(e);return[t,t]}}function Ld(e){return Yo(e)}function qi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Es(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 l1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ek=0;function c1(e,t,n,i){const o=e._endId=++ek,a=()=>{o===e._endId&&i()};if(n)return setTimeout(a,n);const{type:c,timeout:h,propCount:d}=tk(e,t);if(!c)return i();const p=c+"end";let g=0;const y=()=>{e.removeEventListener(p,m),a()},m=A=>{A.target===e&&++g>=d&&y()};setTimeout(()=>{g<d&&y()},h+1),e.addEventListener(p,m)}function tk(e,t){const n=window.getComputedStyle(e),i=$=>(n[$]||"").split(", "),o=i(`${Hi}Delay`),a=i(`${Hi}Duration`),c=f1(o,a),h=i(`${ru}Delay`),d=i(`${ru}Duration`),p=f1(h,d);let g=null,y=0,m=0;t===Hi?c>0&&(g=Hi,y=c,m=a.length):t===ru?p>0&&(g=ru,y=p,m=d.length):(y=Math.max(c,p),g=y>0?c>p?Hi:ru:null,m=g?g===Hi?a.length:d.length:0);const A=g===Hi&&/\b(transform|all)(,|$)/.test(i(`${Hi}Property`).toString());return{type:g,timeout:y,propCount:m,hasTransform:A}}function f1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>h1(n)+h1(e[i])))}function h1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function nk(){return document.body.offsetHeight}const d1=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>Oc(t,n):t};function rk(e){e.target.composing=!0}function p1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ik={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e._assign=d1(o);const a=i||o.props&&o.props.type==="number";Oo(e,t?"change":"input",c=>{if(c.target.composing)return;let h=e.value;n&&(h=h.trim()),a&&(h=Yo(h)),e._assign(h)}),n&&Oo(e,"change",()=>{e.value=e.value.trim()}),t||(Oo(e,"compositionstart",rk),Oo(e,"compositionend",p1),Oo(e,"change",p1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:o}},a){if(e._assign=d1(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(o||e.type==="number")&&Yo(e.value)===t))return;const c=t??"";e.value!==c&&(e.value=c)}},sk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ap=(e,t)=>n=>{if(!("key"in n))return;const i=Ws(n.key);if(t.some(o=>o===i||sk[o]===i))return e(n)},iE={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):iu(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),iu(e,!0),i.enter(e)):i.leave(e,()=>{iu(e,!1)}):iu(e,t))},beforeUnmount(e,{value:t}){iu(e,t)}};function iu(e,t){e.style.display=t?e._vod:"none"}const ok=cn({patchProp:XT},IT);let g1;function ak(){return g1||(g1=mT(ok))}const sE=(...e)=>{const t=ak().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=uk(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 uk(e){return Xt(e)?document.querySelector(e):e}const Ks=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},lk={};function ck(e,t){const n=Us("RouterView");return de(),et(n)}const fk=Ks(lk,[["render",ck]]);const Po=typeof window<"u";function hk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const gt=Object.assign;function Bd(e,t){const n={};for(const i in t){const o=t[i];n[i]=xr(o)?o.map(e):e(o)}return n}const bu=()=>{},xr=Array.isArray,dk=/\/$/,pk=e=>e.replace(dk,"");function Od(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=yk(i??t,n),{fullPath:i+(a&&"?")+a+c,path:i,query:o,hash:c}}function gk(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 vk(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&ta(t.matched[i],n.matched[o])&&oE(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ta(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function oE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mk(e[n],t[n]))return!1;return!0}function mk(e,t){return xr(e)?m1(e,t):xr(t)?m1(t,e):e===t}function m1(e,t){return xr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function yk(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 Lu;(function(e){e.pop="pop",e.push="push"})(Lu||(Lu={}));var wu;(function(e){e.back="back",e.forward="forward",e.unknown=""})(wu||(wu={}));function bk(e){if(!e)if(Po){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pk(e)}const wk=/^[^#]+#/;function Dk(e,t){return e.replace(wk,"#")+t}function Ak(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 Hf=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ek(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=Ak(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 y1(e,t){return(history.state?history.state.position-t:-1)+e}const Ep=new Map;function xk(e,t){Ep.set(e,t)}function Ck(e){const t=Ep.get(e);return Ep.delete(e),t}let _k=()=>location.protocol+"//"+location.host;function aE(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 Sk(e,t,n,i){let o=[],a=[],c=null;const h=({state:m})=>{const A=aE(e,location),$=n.value,L=t.value;let C=0;if(m){if(n.value=A,t.value=m,c&&c===$){c=null;return}C=L?m.position-L.position:0}else i(A);o.forEach(x=>{x(n.value,$,{delta:C,type:Lu.pop,direction:C?C>0?wu.forward:wu.back:wu.unknown})})};function d(){c=n.value}function p(m){o.push(m);const A=()=>{const $=o.indexOf(m);$>-1&&o.splice($,1)};return a.push(A),A}function g(){const{history:m}=window;!m.state||m.replaceState(gt({},m.state,{scroll:Hf()}),"")}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 b1(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?Hf():null}}function Fk(e){const{history:t,location:n}=window,i={value:aE(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:_k()+e+d;try{t[g?"replaceState":"pushState"](p,"",m),o.value=p}catch(A){console.error(A),n[g?"replace":"assign"](m)}}function c(d,p){const g=gt({},t.state,b1(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:Hf()});a(g.current,g,!0);const y=gt({},b1(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 $k(e){e=bk(e);const t=Fk(e),n=Sk(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:Dk.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 Tk(e){return typeof e=="string"||e&&typeof e=="object"}function uE(e){return typeof e=="string"||typeof e=="symbol"}const ji={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},lE=Symbol("");var w1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(w1||(w1={}));function na(e,t){return gt(new Error,{type:e,[lE]:!0},t)}function oi(e,t){return e instanceof Error&&lE in e&&(t==null||!!(e.type&t))}const D1="[^/]+?",kk={sensitive:!1,strict:!1,start:!0,end:!0},Lk=/[.+*?^${}()[\]/\\]/g;function Bk(e,t){const n=gt({},kk,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 A=40+(n.sensitive?.25:0);if(m.type===0)y||(o+="/"),o+=m.value.replace(Lk,"\\$&"),A+=40;else if(m.type===1){const{value:$,repeatable:L,optional:C,regexp:x}=m;a.push({name:$,repeatable:L,optional:C});const S=x||D1;if(S!==D1){A+=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,A+=20,C&&(A+=-8),L&&(A+=-20),S===".*"&&(A+=-50)}g.push(A)}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 A=g[m]||"",$=a[m-1];y[$.name]=A&&$.repeatable?A.split("/"):A}return y}function d(p){let g="",y=!1;for(const m of e){(!y||!g.endsWith("/"))&&(g+="/"),y=!1;for(const A of m)if(A.type===0)g+=A.value;else if(A.type===1){const{value:$,repeatable:L,optional:C}=A,x=$ in p?p[$]:"";if(xr(x)&&!L)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const S=xr(x)?x.join("/"):x;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 Ok(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 Pk(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const a=Ok(i[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-i.length)===1){if(A1(i))return 1;if(A1(o))return-1}return o.length-i.length}function A1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nk={type:0,value:""},Ik=/[a-zA-Z0-9_]/;function Rk(e){if(!e)return[[]];if(e==="/")return[[Nk]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(A){throw new Error(`ERR (${n})/"${p}": ${A}`)}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:Ik.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 Mk(e,t,n){const i=Bk(Rk(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 zk(e,t){const n=[],i=new Map;t=C1({strict:!1,end:!0,sensitive:!1},t);function o(g){return i.get(g)}function a(g,y,m){const A=!m,$=Uk(g);$.aliasOf=m&&m.record;const L=C1(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 x,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(x=Mk(O,y,L),m?m.alias.push(x):(S=S||x,S!==x&&S.alias.push(x),A&&g.name&&!x1(x)&&c(g.name)),$.children){const k=$.children;for(let M=0;M<k.length;M++)a(k[M],x,m&&m.children[M])}m=m||x,(x.record.components&&Object.keys(x.record.components).length||x.record.name||x.record.redirect)&&d(x)}return S?()=>{c(S)}:bu}function c(g){if(uE(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&&Pk(g,n[y])>=0&&(g.record.path!==n[y].record.path||!cE(g,n[y]));)y++;n.splice(y,0,g),g.record.name&&!x1(g)&&i.set(g.record.name,g)}function p(g,y){let m,A={},$,L;if("name"in g&&g.name){if(m=i.get(g.name),!m)throw na(1,{location:g});L=m.record.name,A=gt(E1(y.params,m.keys.filter(S=>!S.optional).map(S=>S.name)),g.params&&E1(g.params,m.keys.map(S=>S.name))),$=m.stringify(A)}else if("path"in g)$=g.path,m=n.find(S=>S.re.test($)),m&&(A=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 na(1,{location:g,currentLocation:y});L=m.record.name,A=gt({},y.params,g.params),$=m.stringify(A)}const C=[];let x=m;for(;x;)C.unshift(x.record),x=x.parent;return{name:L,path:$,params:A,matched:C,meta:qk(C)}}return e.forEach(g=>a(g)),{addRoute:a,resolve:p,removeRoute:c,getRoutes:h,getRecordMatcher:o}}function E1(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Uk(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Hk(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 Hk(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 x1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qk(e){return e.reduce((t,n)=>gt(t,n.meta),{})}function C1(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function cE(e,t){return t.children.some(n=>n===e||cE(e,n))}const fE=/#/g,jk=/&/g,Vk=/\//g,Wk=/=/g,Gk=/\?/g,hE=/\+/g,Kk=/%5B/g,Qk=/%5D/g,dE=/%5E/g,Xk=/%60/g,pE=/%7B/g,Yk=/%7C/g,gE=/%7D/g,Zk=/%20/g;function L0(e){return encodeURI(""+e).replace(Yk,"|").replace(Kk,"[").replace(Qk,"]")}function Jk(e){return L0(e).replace(pE,"{").replace(gE,"}").replace(dE,"^")}function xp(e){return L0(e).replace(hE,"%2B").replace(Zk,"+").replace(fE,"%23").replace(jk,"%26").replace(Xk,"`").replace(pE,"{").replace(gE,"}").replace(dE,"^")}function eL(e){return xp(e).replace(Wk,"%3D")}function tL(e){return L0(e).replace(fE,"%23").replace(Gk,"%3F")}function nL(e){return e==null?"":tL(e).replace(Vk,"%2F")}function tf(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function rL(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(hE," "),c=a.indexOf("="),h=tf(c<0?a:a.slice(0,c)),d=c<0?null:tf(a.slice(c+1));if(h in t){let p=t[h];xr(p)||(p=t[h]=[p]),p.push(d)}else t[h]=d}return t}function _1(e){let t="";for(let n in e){const i=e[n];if(n=eL(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(xr(i)?i.map(a=>a&&xp(a)):[i&&xp(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function iL(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=xr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const sL=Symbol(""),S1=Symbol(""),B0=Symbol(""),vE=Symbol(""),Cp=Symbol("");function su(){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 Wi(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(na(4,{from:n,to:t})):y instanceof Error?h(y):Tk(y)?h(na(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 Pd(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(oL(h)){const p=(h.__vccOpts||h)[t];p&&o.push(Wi(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=hk(p)?p.default:p;a.components[c]=g;const m=(g.__vccOpts||g)[t];return m&&Wi(m,n,i,a,c)()}))}}return o}function oL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function F1(e){const t=mi(B0),n=mi(vE),i=xe(()=>t.resolve(X(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(ta.bind(null,g));if(m>-1)return m;const A=$1(d[p-2]);return p>1&&$1(g)===A&&y[y.length-1].path!==A?y.findIndex(ta.bind(null,d[p-2])):m}),a=xe(()=>o.value>-1&&cL(n.params,i.value.params)),c=xe(()=>o.value>-1&&o.value===n.matched.length-1&&oE(n.params,i.value.params));function h(d={}){return lL(d)?t[X(e.replace)?"replace":"push"](X(e.to)).catch(bu):Promise.resolve()}return{route:i,href:xe(()=>i.value.href),isActive:a,isExactActive:c,navigate:h}}const aL=st({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:F1,setup(e,{slots:t}){const n=Qn(F1(e)),{options:i}=mi(B0),o=xe(()=>({[T1(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[T1(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Wu("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),uL=aL;function lL(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 cL(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(!xr(o)||o.length!==i.length||i.some((a,c)=>a!==o[c]))return!1}return!0}function $1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const T1=(e,t,n)=>e??t??n,fL=st({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=mi(Cp),o=xe(()=>e.route||i.value),a=mi(S1,0),c=xe(()=>{let p=X(a);const{matched:g}=o.value;let y;for(;(y=g[p])&&!y.components;)p++;return p}),h=xe(()=>o.value.matched[c.value]);Pc(S1,xe(()=>c.value+1)),Pc(sL,h),Pc(Cp,o);const d=Qe();return Qt(()=>[d.value,h.value,e.name],([p,g,y],[m,A,$])=>{g&&(g.instances[y]=p,A&&A!==g&&p&&p===m&&(g.leaveGuards.size||(g.leaveGuards=A.leaveGuards),g.updateGuards.size||(g.updateGuards=A.updateGuards))),p&&g&&(!A||!ta(g,A)||!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 k1(n.default,{Component:m,route:p});const A=y.props[g],$=A?A===!0?p.params:typeof A=="function"?A(p):A:null,C=Wu(m,gt({},$,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(y.instances[g]=null)},ref:d}));return k1(n.default,{Component:C,route:p})||C}}});function k1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hL=fL;function dL(e){const t=zk(e.routes,e),n=e.parseQuery||rL,i=e.stringifyQuery||_1,o=e.history,a=su(),c=su(),h=su(),d=qu(ji);let p=ji;Po&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Bd.bind(null,re=>""+re),y=Bd.bind(null,nL),m=Bd.bind(null,tf);function A(re,se){let J,fe;return uE(re)?(J=t.getRecordMatcher(re),fe=se):fe=re,t.addRoute(fe,J)}function $(re){const se=t.getRecordMatcher(re);se&&t.removeRoute(se)}function L(){return t.getRoutes().map(re=>re.record)}function C(re){return!!t.getRecordMatcher(re)}function x(re,se){if(se=gt({},se||d.value),typeof re=="string"){const I=Od(n,re,se.path),G=t.resolve({path:I.path},se),ne=o.createHref(I.fullPath);return gt(I,G,{params:m(G.params),hash:tf(I.hash),redirectedFrom:void 0,href:ne})}let J;if("path"in re)J=gt({},re,{path:Od(n,re.path,se.path).path});else{const I=gt({},re.params);for(const G in I)I[G]==null&&delete I[G];J=gt({},re,{params:y(re.params)}),se.params=y(se.params)}const fe=t.resolve(J,se),_e=re.hash||"";fe.params=g(m(fe.params));const vt=gk(i,gt({},re,{hash:Jk(_e),path:fe.path})),Te=o.createHref(vt);return gt({fullPath:vt,hash:_e,query:i===_1?iL(re.query):re.query||{}},fe,{redirectedFrom:void 0,href:Te})}function S(re){return typeof re=="string"?Od(n,re,d.value.path):gt({},re)}function O(re,se){if(p!==re)return na(8,{from:se,to:re})}function B(re){return R(re)}function k(re){return B(gt(S(re),{replace:!0}))}function M(re){const se=re.matched[re.matched.length-1];if(se&&se.redirect){const{redirect:J}=se;let fe=typeof J=="function"?J(re):J;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=S(fe):{path:fe},fe.params={}),gt({query:re.query,hash:re.hash,params:"path"in fe?{}:re.params},fe)}}function R(re,se){const J=p=x(re),fe=d.value,_e=re.state,vt=re.force,Te=re.replace===!0,I=M(J);if(I)return R(gt(S(I),{state:typeof I=="object"?gt({},_e,I.state):_e,force:vt,replace:Te}),se||J);const G=J;G.redirectedFrom=se;let ne;return!vt&&vk(i,fe,J)&&(ne=na(16,{to:G,from:fe}),me(fe,fe,!0,!1)),(ne?Promise.resolve(ne):ie(G,fe)).catch(oe=>oi(oe)?oi(oe,2)?oe:ae(oe):j(oe,G,fe)).then(oe=>{if(oe){if(oi(oe,2))return R(gt({replace:Te},S(oe.to),{state:typeof oe.to=="object"?gt({},_e,oe.to.state):_e,force:vt}),se||G)}else oe=Y(G,fe,!0,Te,_e);return ce(G,fe,oe),oe})}function W(re,se){const J=O(re,se);return J?Promise.reject(J):Promise.resolve()}function ie(re,se){let J;const[fe,_e,vt]=pL(re,se);J=Pd(fe.reverse(),"beforeRouteLeave",re,se);for(const I of fe)I.leaveGuards.forEach(G=>{J.push(Wi(G,re,se))});const Te=W.bind(null,re,se);return J.push(Te),Eo(J).then(()=>{J=[];for(const I of a.list())J.push(Wi(I,re,se));return J.push(Te),Eo(J)}).then(()=>{J=Pd(_e,"beforeRouteUpdate",re,se);for(const I of _e)I.updateGuards.forEach(G=>{J.push(Wi(G,re,se))});return J.push(Te),Eo(J)}).then(()=>{J=[];for(const I of re.matched)if(I.beforeEnter&&!se.matched.includes(I))if(xr(I.beforeEnter))for(const G of I.beforeEnter)J.push(Wi(G,re,se));else J.push(Wi(I.beforeEnter,re,se));return J.push(Te),Eo(J)}).then(()=>(re.matched.forEach(I=>I.enterCallbacks={}),J=Pd(vt,"beforeRouteEnter",re,se),J.push(Te),Eo(J))).then(()=>{J=[];for(const I of c.list())J.push(Wi(I,re,se));return J.push(Te),Eo(J)}).catch(I=>oi(I,8)?I:Promise.reject(I))}function ce(re,se,J){for(const fe of h.list())fe(re,se,J)}function Y(re,se,J,fe,_e){const vt=O(re,se);if(vt)return vt;const Te=se===ji,I=Po?history.state:{};J&&(fe||Te?o.replace(re.fullPath,gt({scroll:Te&&I&&I.scroll},_e)):o.push(re.fullPath,_e)),d.value=re,me(re,se,J,Te),ae()}let U;function P(){U||(U=o.listen((re,se,J)=>{if(!tt.listening)return;const fe=x(re),_e=M(fe);if(_e){R(gt(_e,{replace:!0}),fe).catch(bu);return}p=fe;const vt=d.value;Po&&xk(y1(vt.fullPath,J.delta),Hf()),ie(fe,vt).catch(Te=>oi(Te,12)?Te:oi(Te,2)?(R(Te.to,fe).then(I=>{oi(I,20)&&!J.delta&&J.type===Lu.pop&&o.go(-1,!1)}).catch(bu),Promise.reject()):(J.delta&&o.go(-J.delta,!1),j(Te,fe,vt))).then(Te=>{Te=Te||Y(fe,vt,!1),Te&&(J.delta&&!oi(Te,8)?o.go(-J.delta,!1):J.type===Lu.pop&&oi(Te,20)&&o.go(-1,!1)),ce(fe,vt,Te)}).catch(bu)}))}let F=su(),D=su(),z;function j(re,se,J){ae(re);const fe=D.list();return fe.length?fe.forEach(_e=>_e(re,se,J)):console.error(re),Promise.reject(re)}function Z(){return z&&d.value!==ji?Promise.resolve():new Promise((re,se)=>{F.add([re,se])})}function ae(re){return z||(z=!re,P(),F.list().forEach(([se,J])=>re?J(re):se()),F.reset()),re}function me(re,se,J,fe){const{scrollBehavior:_e}=e;if(!Po||!_e)return Promise.resolve();const vt=!J&&Ck(y1(re.fullPath,0))||(fe||!J)&&history.state&&history.state.scroll||null;return pa().then(()=>_e(re,se,vt)).then(Te=>Te&&Ek(Te)).catch(Te=>j(Te,re,se))}const $e=re=>o.go(re);let Fe;const je=new Set,tt={currentRoute:d,listening:!0,addRoute:A,removeRoute:$,hasRoute:C,getRoutes:L,resolve:x,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(re){const se=this;re.component("RouterLink",uL),re.component("RouterView",hL),re.config.globalProperties.$router=se,Object.defineProperty(re.config.globalProperties,"$route",{enumerable:!0,get:()=>X(d)}),Po&&!Fe&&d.value===ji&&(Fe=!0,B(o.location).catch(_e=>{}));const J={};for(const _e in ji)J[_e]=xe(()=>d.value[_e]);re.provide(B0,se),re.provide(vE,Qn(J)),re.provide(Cp,d);const fe=re.unmount;je.add(re),re.unmount=function(){je.delete(re),je.size<1&&(p=ji,U&&U(),U=null,d.value=ji,Fe=!1,z=!1),fe()}}};return tt}function Eo(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function pL(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=>ta(p,h))?i.push(h):n.push(h));const d=e.matched[c];d&&(t.matched.find(p=>ta(p,d))||o.push(d))}return[n,i,o]}function Ci(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function Gu(e){return["top","bottom"].includes(Ci(e))?"x":"y"}function O0(e){return e==="y"?"height":"width"}function L1(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(Ci(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=Gu(i),d=O0(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 gL=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}=L1({...h,placement:i}),g=i,y={};for(let m=0;m<a.length;m++){const{name:A,fn:$}=a[m],{x:L,y:C,data:x,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,[A]:x??{}},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}=L1({...h,placement:g})),m=-1;continue}}return{x:d,y:p,placement:g,strategy:o,middlewareData:y}};function vL(e){return{top:0,right:0,bottom:0,left:0,...e}}function mE(e){return typeof e!="number"?vL(e):{top:e,right:e,bottom:e,left:e}}function _p(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function qf(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,A=mE(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}),x=_p(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-x.top+A.top,bottom:x.bottom-C.bottom+A.bottom,left:C.left-x.left+A.left,right:x.right-C.right+A.right}}const mL=Math.min,Ss=Math.max;function Sp(e,t,n){return Ss(e,mL(t,n))}const yL=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=mE(i),g={x:o,y:a},y=Ci(c),m=Gu(y),A=O0(m),$=await d.getDimensions({element:n}),L=m==="y"?"top":"left",C=m==="y"?"bottom":"right",x=h.reference[A]+h.reference[m]-g[m]-h.floating[A],S=g[m]-h.reference[m],O=await d.getOffsetParent({element:n}),B=O?m==="y"?O.clientHeight||0:O.clientWidth||0:0,k=x/2-S/2,M=p[L],R=B-$[A]-p[C],W=B/2-$[A]/2+k,ie=Sp(M,W,R);return{data:{[m]:ie,centerOffset:W-ie}}}}),bL={left:"right",right:"left",bottom:"top",top:"bottom"};function nf(e){return e.replace(/left|right|bottom|top/g,t=>bL[t])}function yE(e,t){const n=jo(e)==="start",i=Gu(e),o=O0(i);let a=i==="x"?n?"right":"left":n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=nf(a)),{main:a,cross:nf(a)}}const wL={start:"end",end:"start"};function Fp(e){return e.replace(/start|end/g,t=>wL[t])}const DL=["top","right","bottom","left"],AL=DL.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function EL(e,t,n){return(e?[...n.filter(o=>jo(o)===e),...n.filter(o=>jo(o)!==e)]:n.filter(o=>Ci(o)===o)).filter(o=>e?jo(o)===e||(t?Fp(o)!==o:!1):!0)}const xL=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:A=null,allowedPlacements:$=AL,autoAlignment:L=!0,...C}=e;if((n=y.autoPlacement)!=null&&n.skip)return{};const x=EL(A,L,$),S=await qf(t,C),O=(i=(o=y.autoPlacement)==null?void 0:o.index)!=null?i:0,B=x[O],{main:k,cross:M}=yE(B,g);if(m!==B)return{x:d,y:p,reset:{placement:x[0]}};const R=[S[Ci(B)],S[k],S[M]],W=[...(a=(c=y.autoPlacement)==null?void 0:c.overflows)!=null?a:[],{placement:B,overflows:R}],ie=x[O+1];if(ie)return{data:{index:O+1,overflows:W},reset:{placement:ie}};const ce=W.slice().sort((U,P)=>U.overflows[0]-P.overflows[0]),Y=(h=ce.find(U=>{let{overflows:P}=U;return P.every(F=>F<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:Y??ce[0].placement}}}}};function CL(e){const t=nf(e);return[Fp(e),t,Fp(t)]}const _L=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,...A}=e,$=Ci(o),C=g||($===h||!m?[nf(h)]:CL(h)),x=[h,...C],S=await qf(t,A),O=[];let B=((i=a.flip)==null?void 0:i.overflows)||[];if(d&&O.push(S[$]),p){const{main:W,cross:ie}=yE(o,c);O.push(S[W],S[ie])}if(B=[...B,{placement:o,overflows:O}],!O.every(W=>W<=0)){var k,M;const W=((k=(M=a.flip)==null?void 0:M.index)!=null?k:0)+1,ie=x[W];if(ie)return{data:{index:W,overflows:B},reset:{placement:ie}};let ce="bottom";switch(y){case"bestFit":{var R;const Y=(R=B.slice().sort((U,P)=>U.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:R.placement;Y&&(ce=Y);break}case"initialPlacement":ce=h;break}return{data:{skip:!0},reset:{placement:ce}}}return{}}}};function SL(e){let{placement:t,rects:n,value:i}=e;const o=Ci(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 Gu(o)==="x"?{x:d,y:h*a}:{x:h*a,y:d}}const FL=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=SL({placement:o,rects:a,value:e});return{x:n+c.x,y:i+c.y,data:c}}}};function $L(e){return e==="x"?"y":"x"}const TL=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,y:S}=C;return{x,y:S}}},...d}=e,p={x:n,y:i},g=await qf(t,d),y=Gu(Ci(o)),m=$L(y);let A=p[y],$=p[m];if(a){const C=y==="y"?"top":"left",x=y==="y"?"bottom":"right",S=A+g[C],O=A-g[x];A=Sp(S,A,O)}if(c){const C=m==="y"?"top":"left",x=m==="y"?"bottom":"right",S=$+g[C],O=$-g[x];$=Sp(S,$,O)}const L=h.fn({...t,[y]:A,[m]:$});return{...L,data:{x:L.x-n,y:L.y-i}}}}},kL=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 qf(t,h),p=Ci(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 A=Ss(d.left,0),$=Ss(d.right,0),L=Ss(d.top,0),C=Ss(d.bottom,0),x={height:o.floating.height-(["left","right"].includes(i)?2*(L!==0||C!==0?L+C:Ss(d.top,d.bottom)):d[y]),width:o.floating.width-(["top","bottom"].includes(i)?2*(A!==0||$!==0?A+$:Ss(d.left,d.right)):d[m])};return c==null||c({...x,...o}),{data:{skip:!0},reset:{rects:!0}}}}};function P0(e){return(e==null?void 0:e.toString())==="[object Window]"}function ss(e){if(e==null)return window;if(!P0(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function jf(e){return ss(e).getComputedStyle(e)}function wi(e){return P0(e)?"":e?(e.nodeName||"").toLowerCase():""}function Di(e){return e instanceof ss(e).HTMLElement}function rf(e){return e instanceof ss(e).Element}function LL(e){return e instanceof ss(e).Node}function bE(e){const t=ss(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vf(e){const{overflow:t,overflowX:n,overflowY:i}=jf(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function BL(e){return["table","td","th"].includes(wi(e))}function wE(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=jf(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 B1=Math.min,Du=Math.max,sf=Math.round;function ra(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let i=1,o=1;return t&&Di(e)&&(i=e.offsetWidth>0&&sf(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&sf(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 os(e){return((LL(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wf(e){return P0(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DE(e){return ra(os(e)).left+Wf(e).scrollLeft}function OL(e){const t=ra(e);return sf(t.width)!==e.offsetWidth||sf(t.height)!==e.offsetHeight}function PL(e,t,n){const i=Di(t),o=os(t),a=ra(e,i&&OL(t));let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(i||!i&&n!=="fixed")if((wi(t)!=="body"||Vf(o))&&(c=Wf(t)),Di(t)){const d=ra(t,!0);h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}else o&&(h.x=DE(o));return{x:a.left+c.scrollLeft-h.x,y:a.top+c.scrollTop-h.y,width:a.width,height:a.height}}function Gf(e){return wi(e)==="html"?e:e.assignedSlot||e.parentNode||(bE(e)?e.host:null)||os(e)}function O1(e){return!Di(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function NL(e){let t=Gf(e);for(;Di(t)&&!["html","body"].includes(wi(t));){if(wE(t))return t;t=t.parentNode}return null}function $p(e){const t=ss(e);let n=O1(e);for(;n&&BL(n)&&getComputedStyle(n).position==="static";)n=O1(n);return n&&(wi(n)==="html"||wi(n)==="body"&&getComputedStyle(n).position==="static"&&!wE(n))?t:n||NL(e)||t}function P1(e){return{width:e.offsetWidth,height:e.offsetHeight}}function IL(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=Di(n),a=os(n);if(n===a)return t;let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((o||!o&&i!=="fixed")&&((wi(n)!=="body"||Vf(a))&&(c=Wf(n)),Di(n))){const d=ra(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 RL(e){const t=ss(e),n=os(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 ML(e){var t;const n=os(e),i=Wf(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Du(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Du(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let h=-i.scrollLeft+DE(e);const d=-i.scrollTop;return jf(o||n).direction==="rtl"&&(h+=Du(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:c,x:h,y:d}}function AE(e){return["html","body","#document"].includes(wi(e))?e.ownerDocument.body:Di(e)&&Vf(e)?e:AE(Gf(e))}function of(e,t){var n;t===void 0&&(t=[]);const i=AE(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=ss(i),c=o?[a].concat(a.visualViewport||[],Vf(i)?i:[]):i,h=t.concat(c);return o?h:h.concat(of(Gf(c)))}function zL(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bE(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function UL(e){const t=ra(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 N1(e,t){return t==="viewport"?_p(RL(e)):rf(t)?UL(t):_p(ML(os(e)))}function HL(e){const t=of(Gf(e)),i=["absolute","fixed"].includes(jf(e).position)&&Di(e)?$p(e):e;return rf(i)?t.filter(o=>rf(o)&&zL(o,i)&&wi(o)!=="body"):[]}function qL(e){let{element:t,boundary:n,rootBoundary:i}=e;const a=[...n==="clippingParents"?HL(t):[].concat(n),i],c=a[0],h=a.reduce((d,p)=>{const g=N1(t,p);return d.top=Du(g.top,d.top),d.right=B1(g.right,d.right),d.bottom=B1(g.bottom,d.bottom),d.left=Du(g.left,d.left),d},N1(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 jL={getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:PL(t,$p(n),i),floating:{...P1(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>IL(e),getOffsetParent:e=>{let{element:t}=e;return $p(t)},isElement:e=>rf(e),getDocumentElement:e=>{let{element:t}=e;return os(t)},getClippingClientRect:e=>qL(e),getDimensions:e=>{let{element:t}=e;return P1(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},VL=(e,t,n)=>gL(e,t,{platform:jL,...n});var WL=Object.defineProperty,GL=Object.defineProperties,KL=Object.getOwnPropertyDescriptors,I1=Object.getOwnPropertySymbols,QL=Object.prototype.hasOwnProperty,XL=Object.prototype.propertyIsEnumerable,R1=(e,t,n)=>t in e?WL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gi=(e,t)=>{for(var n in t||(t={}))QL.call(t,n)&&R1(e,n,t[n]);if(I1)for(var n of I1(t))XL.call(t,n)&&R1(e,n,t[n]);return e},Ku=(e,t)=>GL(e,KL(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 Ms={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 ia(e,t){let n=Ms.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=Ms.themes[n.$extend]||{}:(n=null,i=Ms[t]):n=null;while(n);return i}function YL(e){const t=[e];let n=Ms.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Ms.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}let sa=!1;if(typeof window<"u"){sa=!1;try{const e=Object.defineProperty({},"passive",{get(){sa=!0}});window.addEventListener("test",null,e)}catch{}}let xE=!1;typeof window<"u"&&typeof navigator<"u"&&(xE=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const CE=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),M1={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},z1={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function ZL(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Nd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const zr=[];let xo=null,Tp=function(){};typeof window<"u"&&(Tp=window.Element);function pt(e){return function(t){return ia(t.theme,e)}}var _E=()=>st({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=>CE.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,Tp,Boolean],default:pt("container")},boundary:{type:[String,Tp],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:Ku(gi({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:gi({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(FL({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");n?t.middleware.push(xL({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(TL({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(_L({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(yL({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(kL({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 VL(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:gi(gi({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),xo&&this.instantMove&&xo.instantMove){xo.$_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&&(xo=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 Nd(),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<zr.length;n++)t=zr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}zr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Nd(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(e=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ZL(zr,this),xo===this&&(xo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=ia(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 Nd(),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,sa?{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,M1,this.triggers,this.showTriggers,n),t([this.$_popperNode],M1,this.popperTriggers,this.popperShowTriggers,n);const i=o=>{o.usedByTooltip||this.hide({event:o})};t(this.$_targetNodes,z1,this.triggers,this.hideTriggers,i),t([this.$_popperNode],z1,this.popperTriggers,this.popperHideTriggers,i),e([...of(this.$_referenceNode),...of(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"&&(xE?(document.addEventListener("touchstart",U1,sa?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",eB,sa?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",U1,!0),window.addEventListener("click",JL,!0)),window.addEventListener("resize",tB));function U1(e){for(let t=0;t<zr.length;t++){const n=zr[t],i=n.popperNode();n.$_mouseDownContains=i.contains(e.target)}}function JL(e){SE(e)}function eB(e){SE(e,!0)}function SE(e,t=!1){for(let n=0;n<zr.length;n++){const i=zr[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 tB(e){for(let t=0;t<zr.length;t++)zr[t].$_computePosition(e)}function nB(){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 Ic;function kp(){kp.init||(kp.init=!0,Ic=nB()!==-1)}var Kf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){kp(),pa(()=>{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",Ic&&this.$el.appendChild(e),e.data="about:blank",Ic||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&&(!Ic&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const rB=T2();LA("data-v-b329ee4c");const iB={class:"resize-observer",tabindex:"-1"};BA();const sB=rB((e,t,n,i,o,a)=>(de(),et("div",iB)));Kf.render=sB;Kf.__scopeId="data-v-b329ee4c";Kf.__file="src/components/ResizeObserver.vue";var FE={computed:{themeClass(){return YL(this.theme)}}},N0=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const oB=st({name:"VPopperContent",components:{ResizeObserver:Kf},mixins:[FE],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}}}),aB=["id","aria-hidden","tabindex","data-popper-placement"],uB={ref:"inner",class:"v-popper__inner"},lB=ve("div",{class:"v-popper__arrow-outer"},null,-1),cB=ve("div",{class:"v-popper__arrow-inner"},null,-1),fB=[lB,cB];function hB(e,t,n,i,o,a){const c=Us("ResizeObserver");return de(),ke("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:zn({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]=Ap(h=>e.autoHide&&e.$emit("hide"),["esc"]))},[ve("div",{class:"v-popper__wrapper",style:zn({transformOrigin:e.result.transformOrigin})},[ve("div",uB,[e.mounted?(de(),ke(ft,{key:0},[ve("div",null,[Er(e.$slots,"default")]),e.handleResize?(de(),et(c,{key:0,onNotify:t[0]||(t[0]=h=>e.$emit("resize",h))})):ut("",!0)],64)):ut("",!0)],512),ve("div",{ref:"arrow",class:"v-popper__arrow-container",style:zn({left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)})},fB,4)],4)],46,aB)}var $E=N0(oB,[["render",hB]]),TE={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 dB=st({name:"VPopperWrapper",components:{Popper:_E(),PopperContent:$E},mixins:[TE,FE],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme},popperAttrs(){const e=gi({},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 pB(e,t,n,i,o,a){const c=Us("PopperContent"),h=Us("Popper");return de(),et(h,es({ref:"popper"},e.popperAttrs,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"reference-node":()=>e.$refs.reference,"popper-node":()=>e.$refs.popperContent.$el}),{default:Ze(({popperId:d,isShown:p,shouldMountContent:g,skipTransition:y,autoHide:m,show:A,hide:$,handleResize:L,onResize:C,classes:x,result:S})=>[ve("div",{ref:"reference",class:yt(["v-popper",[e.$attrs.class,e.themeClass,{"v-popper--shown":p}]]),style:zn(e.$attrs.style)},[Er(e.$slots,"default",{shown:p,show:A,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:x,result:S,onHide:$,onResize:C},{default:Ze(()=>[Er(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 I0=N0(dB,[["render",pB]]);const H1=st(Ku(gi({},I0),{name:"VDropdown",vPopperTheme:"dropdown"})),q1=st(Ku(gi({},I0),{name:"VMenu",vPopperTheme:"menu"})),j1=st(Ku(gi({},I0),{name:"VTooltip",vPopperTheme:"tooltip"})),gB=st({name:"VTooltipDirective",components:{Popper:_E(),PopperContent:$E},mixins:[TE],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ia(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ia(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}}}),vB=["innerHTML"],mB=["textContent"];function yB(e,t,n,i,o,a){const c=Us("PopperContent"),h=Us("Popper");return de(),et(h,es({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ze(({popperId:d,isShown:p,shouldMountContent:g,skipTransition:y,autoHide:m,hide:A,handleResize:$,onResize:L,classes:C,result:x})=>[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:x,onHide:A,onResize:L},{default:Ze(()=>[e.html?(de(),ke("div",{key:0,innerHTML:e.finalContent},null,8,vB)):(de(),ke("div",{key:1,textContent:Xe(e.finalContent)},null,8,mB))]),_: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 bB=N0(gB,[["render",yB]]);const kE="v-popper--has-tooltip";function wB(e,t){let n=e.placement;if(!n&&t)for(const i of CE)t[i]&&(n=i);return n||(n=ia(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=wB(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Id,Bu,DB=0;function AB(){if(Id)return;Bu=Qe([]),Id=sE({name:"VTooltipDirectiveApp",setup(){return{directives:Bu}},render(){return this.directives.map(t=>Wu(bB,Ku(gi({},t.options),{shown:t.shown.value||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Id.mount(e)}function BE(e,t,n){AB();const i=Qe(LE(e,t,n)),o=Qe(!1),a={id:DB++,options:i,shown:o};return Bu.value.push(a),e.classList&&e.classList.add(kE),e.$_popper={options:i,item:a,show(){o.value=!0},hide(){o.value=!1}}}function R0(e){if(e.$_popper){const t=Bu.value.indexOf(e.$_popper.item);t!==-1&&Bu.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(kE)}function V1(e,{value:t,oldValue:n,modifiers:i}){const o=LE(e,t,i);if(!o.content||ia(o.theme||"tooltip","disabled"))R0(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=BE(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var OE={beforeMount:V1,updated:V1,beforeUnmount(e){R0(e)}};function W1(e){e.addEventListener("click",PE),e.addEventListener("touchstart",NE,sa?{passive:!0}:!1)}function G1(e){e.removeEventListener("click",PE),e.removeEventListener("touchstart",NE),e.removeEventListener("touchend",IE),e.removeEventListener("touchcancel",RE)}function PE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function NE(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",IE),t.addEventListener("touchcancel",RE)}}function IE(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 RE(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var EB={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&W1(e)},updated(e,{value:t,oldValue:n,modifiers:i}){e.$_closePopoverModifiers=i,t!==n&&(typeof t>"u"||t?W1(e):G1(e))},beforeUnmount(e){G1(e)}};const xB=OE;function CB(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,EE(Ms,t),e.directive("tooltip",OE),e.directive("close-popper",EB),e.component("v-tooltip",j1),e.component("VTooltip",j1),e.component("v-dropdown",H1),e.component("VDropdown",H1),e.component("v-menu",q1),e.component("VMenu",q1))}const ME={version:"2.0.0-y.0",install:CB,options:Ms};var K1;const zE=typeof window<"u",_B=e=>typeof e<"u",UE=e=>typeof e=="function",SB=e=>typeof e=="string",oa=()=>{};zE&&((K1=window==null?void 0:window.navigator)==null?void 0:K1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Hs(e){return typeof e=="function"?e():X(e)}function M0(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 HE=e=>e();function qE(e,t={}){let n,i,o=oa;const a=h=>{clearTimeout(h),o(),o=oa};return h=>{const d=Hs(e),p=Hs(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 FB(e,t=!0,n=!0,i=!1){let o=0,a,c=!0,h=oa,d;const p=()=>{a&&(clearTimeout(a),a=void 0,h(),h=oa)};return y=>{const m=Hs(e),A=Date.now()-o,$=()=>d=y();if(p(),m<=0)return o=Date.now(),$();if(A>m&&(n||!c))o=Date.now(),$();else if(t)return new Promise((L,C)=>{h=i?C:L,a=setTimeout(()=>{o=Date.now(),c=!0,L($()),p()},m-A)});return!n&&!a&&(a=setTimeout(()=>c=!0,m)),c=!1,d}}function $B(e=HE){const t=Qe(!0);function n(){t.value=!1}function i(){t.value=!0}return{isActive:t,pause:n,resume:i,eventFilter:(...a)=>{t.value&&e(...a)}}}function TB(e){return e}function z0(e){return V$()?(W$(e),!0):!1}function Q1(e,t=200,n={}){return M0(qE(t,n),e)}function kB(e,t=200,n=!1,i=!0,o=!1){return M0(FB(t,n,i,o),e)}function LB(e,t=200,n=!0,i=!0){if(t<=0)return e;const o=Qe(e.value),a=kB(()=>{o.value=e.value},t,n,i);return Qt(e,()=>a()),o}function BB(e){return typeof e=="function"?xe(e):Qe(e)}function U0(e,t=!0){zf()?Vu(e):t?e():pa(e)}function OB(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,o=Pt(e),a=Qe(e);function c(h){if(arguments.length)return a.value=h,a.value;{const d=Hs(n);return a.value=a.value===d?Hs(i):d,a.value}}return o?c:[a,c]}var X1=Object.getOwnPropertySymbols,PB=Object.prototype.hasOwnProperty,NB=Object.prototype.propertyIsEnumerable,IB=(e,t)=>{var n={};for(var i in e)PB.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&X1)for(var i of X1(e))t.indexOf(i)<0&&NB.call(e,i)&&(n[i]=e[i]);return n};function jE(e,t,n={}){const i=n,{eventFilter:o=HE}=i,a=IB(i,["eventFilter"]);return Qt(e,M0(o,t),a)}var RB=Object.defineProperty,MB=Object.defineProperties,zB=Object.getOwnPropertyDescriptors,af=Object.getOwnPropertySymbols,VE=Object.prototype.hasOwnProperty,WE=Object.prototype.propertyIsEnumerable,Y1=(e,t,n)=>t in e?RB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UB=(e,t)=>{for(var n in t||(t={}))VE.call(t,n)&&Y1(e,n,t[n]);if(af)for(var n of af(t))WE.call(t,n)&&Y1(e,n,t[n]);return e},HB=(e,t)=>MB(e,zB(t)),qB=(e,t)=>{var n={};for(var i in e)VE.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&af)for(var i of af(e))t.indexOf(i)<0&&WE.call(e,i)&&(n[i]=e[i]);return n};function jB(e,t,n={}){const i=n,{debounce:o=0,maxWait:a=void 0}=i,c=qB(i,["debounce","maxWait"]);return jE(e,t,HB(UB({},c),{eventFilter:qE(o,{maxWait:a})}))}function VB(e,t,n){const i=Qt(e,(...o)=>(pa(()=>i()),t(...o)),n)}var WB=Object.defineProperty,GB=Object.defineProperties,KB=Object.getOwnPropertyDescriptors,uf=Object.getOwnPropertySymbols,GE=Object.prototype.hasOwnProperty,KE=Object.prototype.propertyIsEnumerable,Z1=(e,t,n)=>t in e?WB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QB=(e,t)=>{for(var n in t||(t={}))GE.call(t,n)&&Z1(e,n,t[n]);if(uf)for(var n of uf(t))KE.call(t,n)&&Z1(e,n,t[n]);return e},XB=(e,t)=>GB(e,KB(t)),YB=(e,t)=>{var n={};for(var i in e)GE.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&uf)for(var i of uf(e))t.indexOf(i)<0&&KE.call(e,i)&&(n[i]=e[i]);return n};function QE(e,t,n={}){const i=n,{eventFilter:o}=i,a=YB(i,["eventFilter"]),{eventFilter:c,pause:h,resume:d,isActive:p}=$B(o);return{stop:jE(e,t,XB(QB({},a),{eventFilter:c})),pause:h,resume:d,isActive:p}}function ZB(e,t,n){let i;Pt(n)?i={evaluating:n}:i=n||{};const{lazy:o=!1,evaluating:a=void 0,onError:c=oa}=i,h=Qe(!o),d=Qe(t);let p=0;return C0(async g=>{if(!h.value)return;p++;const y=p;let m=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const A=await e($=>{g(()=>{a&&(a.value=!1),m||$()})});y===p&&(d.value=A)}catch(A){c(A)}finally{a&&y===p&&(a.value=!1),m=!0}}),o?xe(()=>(h.value=!0,d.value)):d}function XE(e){var t;const n=Hs(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vr=zE?window:void 0;function aa(...e){let t,n,i,o;if(SB(e[0])||Array.isArray(e[0])?([n,i,o]=e,t=Vr):[t,n,i,o]=e,!t)return oa;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],c=()=>{a.forEach(g=>g()),a.length=0},h=(g,y,m)=>(g.addEventListener(y,m,o),()=>g.removeEventListener(y,m,o)),d=Qt(()=>XE(t),g=>{c(),g&&a.push(...n.flatMap(y=>i.map(m=>h(g,y,m))))},{immediate:!0,flush:"post"}),p=()=>{d(),c()};return z0(p),p}const JB=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function eO(...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=Vr,eventName:a="keydown",passive:c=!1}=i,h=JB(t);return aa(o,a,p=>{h(p)&&n(p)},c)}function YE(e,t=!1){const n=Qe(),i=()=>n.value=Boolean(e());return i(),U0(i,t),n}function tO(e,t={}){const{window:n=Vr}=t,i=YE(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const a=Qe(!1),c=()=>{!o||("removeEventListener"in o?o.removeEventListener("change",h):o.removeListener(h))},h=()=>{!i.value||(c(),o=n.matchMedia(BB(e).value),a.value=o.matches,"addEventListener"in o?o.addEventListener("change",h):o.addListener(h))};return C0(h),z0(()=>c()),a}function nO(e){return JSON.parse(JSON.stringify(e))}const Lp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Bp="__vueuse_ssr_handlers__";Lp[Bp]=Lp[Bp]||{};const rO=Lp[Bp];function ZE(e,t){return rO[e]||t}function iO(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 sO=Object.defineProperty,J1=Object.getOwnPropertySymbols,oO=Object.prototype.hasOwnProperty,aO=Object.prototype.propertyIsEnumerable,eb=(e,t,n)=>t in e?sO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tb=(e,t)=>{for(var n in t||(t={}))oO.call(t,n)&&eb(e,n,t[n]);if(J1)for(var n of J1(t))aO.call(t,n)&&eb(e,n,t[n]);return e};const uO={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()}};function lO(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=Vr,eventFilter:m,onError:A=R=>{console.error(R)}}=i,$=(g?qu:Qe)(t);if(!n)try{n=ZE("getDefaultStorage",()=>{var R;return(R=Vr)==null?void 0:R.localStorage})()}catch(R){A(R)}if(!n)return $;const L=Hs(t),C=iO(L),x=(o=i.serializer)!=null?o:uO[C],{pause:S,resume:O}=QE($,()=>B($.value),{flush:a,deep:c,eventFilter:m});return y&&h&&aa(y,"storage",M),M(),$;function B(R){try{if(R==null)n.removeItem(e);else{const W=x.write(R),ie=n.getItem(e);ie!==W&&(n.setItem(e,W),y&&(y==null||y.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:ie,newValue:W,storageArea:n}))))}}catch(W){A(W)}}function k(R){const W=R?R.newValue:n.getItem(e);if(W==null)return d&&L!==null&&n.setItem(e,x.write(L)),L;if(!R&&p){const ie=x.read(W);return UE(p)?p(ie,L):C==="object"&&!Array.isArray(ie)?tb(tb({},L),ie):ie}else return typeof W!="string"?W:x.read(W)}function M(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){$.value=L;return}if(!(R&&R.key!==e)){S();try{$.value=k(R)}catch(W){A(W)}finally{R?pa(O):O()}}}}}function JE(e){return tO("(prefers-color-scheme: dark)",e)}var cO=Object.defineProperty,nb=Object.getOwnPropertySymbols,fO=Object.prototype.hasOwnProperty,hO=Object.prototype.propertyIsEnumerable,rb=(e,t,n)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dO=(e,t)=>{for(var n in t||(t={}))fO.call(t,n)&&rb(e,n,t[n]);if(nb)for(var n of nb(t))hO.call(t,n)&&rb(e,n,t[n]);return e};function pO(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:o=Vr,storage:a,storageKey:c="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:p}=e,g=dO({auto:"",light:"light",dark:"dark"},e.modes||{}),y=JE({window:o}),m=xe(()=>y.value?"dark":"light"),A=d||(c==null?Qe(i):lO(c,i,a,{window:o,listenToStorageChanges:h})),$=xe({get(){return A.value==="auto"&&!p?m.value:A.value},set(S){A.value=S}}),L=ZE("updateHTMLAttrs",(S,O,B)=>{const k=o==null?void 0:o.document.querySelector(S);if(!!k)if(O==="class"){const M=B.split(/\s/g);Object.values(g).flatMap(R=>(R||"").split(/\s/g)).filter(Boolean).forEach(R=>{M.includes(R)?k.classList.add(R):k.classList.remove(R)})}else k.setAttribute(O,B)});function C(S){var O;const B=S==="auto"?m.value:S;L(t,n,(O=g[B])!=null?O:B)}function x(S){e.onChanged?e.onChanged(S,C):C(S)}return Qt($,x,{flush:"post",immediate:!0}),p&&Qt(m,()=>x($.value),{flush:"post"}),U0(()=>x($.value)),$}var gO=Object.defineProperty,vO=Object.defineProperties,mO=Object.getOwnPropertyDescriptors,ib=Object.getOwnPropertySymbols,yO=Object.prototype.hasOwnProperty,bO=Object.prototype.propertyIsEnumerable,sb=(e,t,n)=>t in e?gO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wO=(e,t)=>{for(var n in t||(t={}))yO.call(t,n)&&sb(e,n,t[n]);if(ib)for(var n of ib(t))bO.call(t,n)&&sb(e,n,t[n]);return e},DO=(e,t)=>vO(e,mO(t));function AO(e={}){const{valueDark:t="dark",valueLight:n="",window:i=Vr}=e,o=pO(DO(wO({},e),{onChanged:(h,d)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,h==="dark"):d(h)},modes:{dark:t,light:n}})),a=JE({window:i});return xe({get(){return o.value==="dark"},set(h){h===a.value?o.value="auto":o.value=h?"dark":"light"}})}var ob=Object.getOwnPropertySymbols,EO=Object.prototype.hasOwnProperty,xO=Object.prototype.propertyIsEnumerable,CO=(e,t)=>{var n={};for(var i in e)EO.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&ob)for(var i of ob(e))t.indexOf(i)<0&&xO.call(e,i)&&(n[i]=e[i]);return n};function _O(e,t,n={}){const i=n,{window:o=Vr}=i,a=CO(i,["window"]);let c;const h=YE(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},p=Qt(()=>XE(e),y=>{d(),h.value&&o&&y&&(c=new ResizeObserver(t),c.observe(y,a))},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return z0(g),{isSupported:h,stop:g}}var ab;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ab||(ab={}));var SO=Object.defineProperty,ub=Object.getOwnPropertySymbols,FO=Object.prototype.hasOwnProperty,$O=Object.prototype.propertyIsEnumerable,lb=(e,t,n)=>t in e?SO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,TO=(e,t)=>{for(var n in t||(t={}))FO.call(t,n)&&lb(e,n,t[n]);if(ub)for(var n of ub(t))$O.call(t,n)&&lb(e,n,t[n]);return e};const kO={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};TO({linear:TB},kO);function LO(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:o=!1,write:a=!0,window:c=Vr}=t;if(!c)return Qn(n);const h=Qn({});function d(){if(e==="history")return c.location.search||"";if(e==="hash"){const x=c.location.hash||"",S=x.indexOf("?");return S>0?x.slice(S):""}else return(c.location.hash||"").replace(/^#/,"")}function p(x){const S=x.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(x){const S=new Set(Object.keys(h));for(const O of x.keys()){const B=x.getAll(O);h[O]=B.length>1?B:x.get(O)||"",S.delete(O)}Array.from(S).forEach(O=>delete h[O])}const{pause:m,resume:A}=QE(h,()=>{const x=new URLSearchParams("");Object.keys(h).forEach(S=>{const O=h[S];Array.isArray(O)?O.forEach(B=>x.append(S,B)):i&&O==null||o&&!O?x.delete(S):x.set(S,O)}),$(x)},{deep:!0});function $(x,S){m(),S&&y(x),c.history.replaceState(c.history.state,c.document.title,c.location.pathname+p(x)),A()}function L(){!a||$(g(),!0)}aa(c,"popstate",L,!1),e!=="history"&&aa(c,"hashchange",L,!1);const C=g();return C.keys().next().value?y(C):Object.assign(h,n),h}function BO(e,t,n,i={}){var o,a,c;const{clone:h=!1,passive:d=!1,eventName:p,deep:g=!1,defaultValue:y}=i,m=zf(),A=n||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((c=(a=m==null?void 0:m.proxy)==null?void 0:a.$emit)==null?void 0:c.bind(m==null?void 0:m.proxy));let $=p;t||(t="modelValue"),$=p||$||`update:${t.toString()}`;const L=x=>h?UE(h)?h(x):nO(x):x,C=()=>_B(e[t])?L(e[t]):y;if(d){const x=C(),S=Qe(x);return Qt(()=>e[t],O=>S.value=L(O)),Qt(S,O=>{(O!==e[t]||g)&&A($,O)},{deep:g}),S}else return xe({get(){return C()},set(x){A($,x)}})}function OO(e={}){const{window:t=Vr,initialWidth:n=1/0,initialHeight:i=1/0,listenOrientation:o=!0,includeScrollbar:a=!0}=e,c=Qe(n),h=Qe(i),d=()=>{t&&(a?(c.value=t.innerWidth,h.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};return d(),U0(d),aa("resize",d,{passive:!0}),o&&aa("orientationchange",d,{passive:!0}),{width:c,height:h}}const PO=6e4;function NO(e,t){const{post:n,on:i,eventNames:o=[],serialize:a=g=>g,deserialize:c=g=>g,timeout:h=PO}=t,d=new Map,p=new Proxy({},{get(g,y){const m=(...$)=>{n(a({m:y,a:$,t:"q"}))};if(o.includes(y))return m.asEvent=m,m;const A=(...$)=>new Promise((L,C)=>{const x=RO();d.set(x,{resolve:L,reject:C}),n(a({m:y,a:$,i:x,t:"q"})),h>=0&&setTimeout(()=>{C(new Error(`[birpc] timeout on calling "${y}"`)),d.delete(x)},h)});return A.asEvent=m,A}});return i(async(g,...y)=>{const m=c(g);if(m.t==="q"){const{m:A,a:$}=m;let L,C;try{L=await e[A].apply(p,$)}catch(x){C=x}m.i&&n(a({t:"s",i:m.i,r:L,e:C}),...y)}else{const{i:A,r:$,e:L}=m,C=d.get(A);L?C==null||C.reject(L):C==null||C.resolve($),d.delete(A)}}),p}const IO="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function RO(e=21){let t="",n=e;for(;n--;)t+=IO[Math.random()*64|0];return t}const{parse:MO,stringify:zO}=JSON,{keys:UO}=Object,Ou=String,ex="string",cb={},lf="object",tx=(e,t)=>t,HO=e=>e instanceof Ou?Ou(e):e,qO=(e,t)=>typeof t===ex?new Ou(t):t,nx=(e,t,n,i)=>{const o=[];for(let a=UO(n),{length:c}=a,h=0;h<c;h++){const d=a[h],p=n[d];if(p instanceof Ou){const g=e[p];typeof g===lf&&!t.has(g)?(t.add(g),n[d]=cb,o.push({k:d,a:[e,t,g,i]})):n[d]=i.call(n,d,g)}else n[d]!==cb&&(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,nx.apply(null,d))}return n},fb=(e,t,n)=>{const i=Ou(t.push(n)-1);return e.set(n,i),i},rx=(e,t)=>{const n=MO(e,qO).map(HO),i=n[0],o=t||tx,a=typeof i===lf&&i?nx(n,new Set,i,o):i;return o.call({"":a},"",a)},jO=(e,t,n)=>{const i=t&&typeof t===lf?(g,y)=>g===""||-1<t.indexOf(g)?y:void 0:t||tx,o=new Map,a=[],c=[];let h=+fb(o,a,i.call({"":e},"",e)),d=!h;for(;h<a.length;)d=!0,c[h]=zO(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 lf:if(m===null)return m;case ex:return o.get(m)||fb(o,a,m)}return m}},VO=e=>typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e;class ix{constructor(){bs(this,"filesMap",new Map);bs(this,"pathsSet",new Set);bs(this,"collectingPromise");bs(this,"idMap",new Map);bs(this,"taskFileMap",new WeakMap);bs(this,"errorsSet",new Set)}catchError(t,n){if(VO(t))return t.errors.forEach(i=>this.catchError(i,n));t.type=n,this.errorsSet.add(t)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).filter(Boolean):Array.from(this.filesMap.values())}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=>{this.filesMap.set(n.filepath,n),this.updateId(n)})}clearFiles(t=[]){t.forEach(n=>{this.filesMap.delete(n)})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i]of t)this.idMap.has(n)&&(this.idMap.get(n).result=i)}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function sx(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}var sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wr={},H0={};class WO{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 q0=WO;const GO=Symbol("AMBIGUOUS"),KO=Symbol("DEEP_EQUAL"),QO=Symbol("SHALLOW_EQUAL"),XO=Symbol("UNEQUAL");var bt={AMBIGUOUS:GO,DEEP_EQUAL:KO,SHALLOW_EQUAL:QO,UNEQUAL:XO};class YO{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 ZO=YO,ga={},Yt={},zt={};const br=Symbol("lineBuilder.gutters.ACTUAL"),Mr=Symbol("lineBuilder.gutters.EXPECTED");function JO(e,t,n){if(t){if(n===br)return e.diffGutters.expected;if(n===Mr)return e.diffGutters.actual}else{if(n===br)return e.diffGutters.actual;if(n===Mr)return e.diffGutters.expected}return e.diffGutters.padding}class Kt{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 Mt().append(this).append(t)}toString(t){return t.diff===!1?this.stringValue:JO(t.theme,t.invert,this.gutter)+this.stringValue}mergeWithInfix(t,n){return n.isLine!==!0?new Mt().append(this).mergeWithInfix(t,n):new Kt(this.isFirst,n.isLast,n.gutter,this.stringValue+t+n.stringValue)}withFirstPrefixed(t){return this.isFirst?new Kt(!0,this.isLast,this.gutter,t+this.stringValue):this}withLastPostfixed(t){return this.isLast?new Kt(this.isFirst,!0,this.gutter,this.stringValue+t):this}stripFlags(){return new Kt(!1,!1,this.gutter,this.stringValue)}decompose(){return new Mt().append(this).decompose()}}Object.defineProperty(Kt.prototype,"isLine",{value:!0});class Mt{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 Mt().append(this).append(t)}toString(t){let n=this;if(t.invert){n=new Mt;let i=new Mt,o=null;for(const a of this)a.gutter===br?(o!==null&&o.gutter!==br&&!i.isEmpty&&(n.append(i),i=new Mt),i.append(a)):(a.gutter===Mr||i.isEmpty||(n.append(i),i=new Mt),n.append(a)),o=a;n.append(i)}return Array.from(n,i=>i.toString(t)).join(`
|
|
2
|
+
`)}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 Mt;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 Mt().append(Array.from(this,n=>n.withFirstPrefixed(t)))}withLastPostfixed(t){return new Mt().append(Array.from(this,n=>n.withLastPostfixed(t)))}stripFlags(){return new Mt().append(Array.from(this,t=>t.stripFlags()))}decompose(){const t={actual:new Mt,expected:new Mt},n={actual:new Mt,expected:new Mt},i=new Mt;for(const o of this)o.isFirst&&o.gutter===br?t.actual.append(o):o.isFirst&&o.gutter===Mr?t.expected.append(o):o.isLast&&o.gutter===br?n.actual.append(o):o.isLast&&o.gutter===Mr?n.expected.append(o):i.append(o);return{first:t,last:n,remaining:i}}}Object.defineProperty(Mt.prototype,"isCollection",{value:!0});function hb(e,t){return new Mt().append(Array.from(e,n=>n.gutter===null?new Kt(n.isFirst,n.isLast,t,n.stringValue):n))}var Zt={buffer(){return new Mt},first(e){return new Kt(!0,!1,null,e)},last(e){return new Kt(!1,!0,null,e)},line(e){return new Kt(!1,!1,null,e)},single(e){return new Kt(!0,!0,null,e)},setDefaultGutter(e){return e},actual:{first(e){return new Kt(!0,!1,br,e)},last(e){return new Kt(!1,!0,br,e)},line(e){return new Kt(!1,!1,br,e)},single(e){return new Kt(!0,!0,br,e)},setDefaultGutter(e){return hb(e,br)}},expected:{first(e){return new Kt(!0,!1,Mr,e)},last(e){return new Kt(!1,!0,Mr,e)},line(e){return new Kt(!1,!1,Mr,e)},single(e){return new Kt(!0,!0,Mr,e)},setDefaultGutter(e){return hb(e,Mr)}}};const No=Zt;function Rc(e,t){return e.open+t+e.close}zt.wrap=Rc;function Op(e,t){if(!t.ctor)return Rc(e.object.stringTag,t.stringTag);let n=Rc(e.object.ctor,t.ctor);return t.stringTag&&t.stringTag!==t.ctor&&t.stringTag!=="Object"&&(n+=" "+Rc(e.object.secondaryStringTag,t.stringTag)),n}zt.formatCtorAndStringTag=Op;class eP{constructor(t,n,i){this.object=t,this.theme=n,this.indent=i,this.increaseIndent=!0,this.innerLines=No.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?"":Op(this.theme,this.object)+" ";return this.innerLines.isEmpty?No.single(o+t.openBracket+t.closeBracket):No.first(o+t.openBracket).concat(this.innerLines.withFirstPrefixed(this.indent.increase()).stripFlags()).append(No.last(this.indent+t.closeBracket))}maxDepth(){const t=this.object.isList?this.theme.list:this.theme.object;return No.single(Op(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}}zt.ObjectFormatter=eP;class tP{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(No.single(this.theme.maxDepth))}}zt.SingleValueFormatter=tP;function nP(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 rP=nP,iP=9007199254740991;function sP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=iP}var j0=sP;const oP=j0,aP=Object.prototype.hasOwnProperty;function uP(e){return Array.isArray(e)||aP.call(e,"length")&&oP(e.length)&&(e.length===0||"0"in e)}var lP=uP,ar={},Ft={};const Pp={size:0,next(){return null}};Ft.NOOP_RECURSOR=Pp;function cP(e){const t=[];return{shared(){const n=e();return n!==null&&t.push(n),n},recursor(){return t.length>0?t.shift():e()}}}Ft.fork=cP;function fP(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())}}Ft.consumeDeep=fP;function hP(e,t){return()=>{const n=e();return n===null?null:t(n)}}Ft.map=hP;function dP(e,t){if(!e){const a=t();a===Pp?e=a:e=Object.assign({buffer:[],done:!1},a)}if(e===Pp)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}}}Ft.replay=dP;function pP(e,t){let n=!0;return()=>{if(n){const i=e();if(i!==null)return i;n=!1}return t()}}Ft.sequence=pP;function gP(e){let t=!1;return()=>t?null:(t=!0,e)}Ft.singleValue=gP;function vP(e,t){return()=>{if(t!==null){const n=t;return t=null,n}return e()}}Ft.unshift=vP;const ox=bt,mP=Zt,Co=Ft,V0=ox.DEEP_EQUAL,W0=ox.UNEQUAL;function yP(e){return new X0(e.size)}ar.describeIterableRecursor=yP;function bP(e){return new Y0(e.size)}ar.describeListRecursor=bP;function wP(e){return new Z0(e.size)}ar.describePropertyRecursor=wP;function DP(e){return new X0(e)}ar.deserializeIterableStats=DP;function AP(e){return new Y0(e)}ar.deserializeListStats=AP;function EP(e){return new Z0(e)}ar.deserializePropertyStats=EP;const G0=Symbol("IterableStats");ar.iterableTag=G0;const K0=Symbol("ListStats");ar.listTag=K0;const Q0=Symbol("PropertyStats");ar.propertyTag=Q0;class Qf{constructor(t){this.size=t}formatDeep(t){return mP.single(t.stats.separator)}prepareDiff(t,n,i,o){if(t.isStats!==!0||t.tag===this.tag)return null;const a=Co.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:Co.unshift(n,this),rhsRecursor:Co.unshift(i,t)};const d=Co.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:Co.unshift(n,p),rhsRecursor:Co.unshift(a.recursor,c)}:null}serialize(){return this.size}}Object.defineProperty(Qf.prototype,"isStats",{value:!0});class X0 extends Qf{compare(t){return t.tag===G0&&this.size===t.size?V0:W0}}Object.defineProperty(X0.prototype,"tag",{value:G0});class Y0 extends Qf{compare(t){return t.tag===K0&&this.size===t.size?V0:W0}}Object.defineProperty(Y0.prototype,"tag",{value:K0});class Z0 extends Qf{compare(t){return t.tag===Q0&&this.size===t.size?V0:W0}}Object.defineProperty(Z0.prototype,"tag",{value:Q0});const J0=bt,xP=zt.ObjectFormatter,CP=rP,_P=lP,Rd=ar,dr=Ft,SP=J0.DEEP_EQUAL,FP=J0.SHALLOW_EQUAL,db=J0.UNEQUAL;function $P(e){const t=e.stringTag==="Array",n=e.value;return new kP(Object.assign({isArray:t,isIterable:n[Symbol.iterator]!==void 0,isList:t||_P(n)},e))}Yt.describe=$P;function TP(e,t){return new LP(e,t)}Yt.deserialize=TP;const ax=Symbol("ObjectValue");Yt.tag=ax;class Qu{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)?db:FP}hasSameCtor(t){return this.ctor===t.ctor}formatShallow(t,n){return new xP(this,t,n)}serialize(){return[this.ctor,this.pointer,this.stringTag,this.isArray,this.isIterable,this.isList]}}Object.defineProperty(Qu.prototype,"isComplex",{value:!0});Object.defineProperty(Qu.prototype,"tag",{value:ax});Yt.ObjectValue=Qu;const kP=ux(Qu),LP=lx(Qu);function ux(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?SP:super.compare(t)}createPropertyRecursor(){const t=CP(this.value,this.isList?this.value.length:0),n=t.size;if(n===0)return dr.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 dr.NOOP_RECURSOR;const t=this.value.length;if(t===0)return dr.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 dr.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=dr.replay(this.iterableState,()=>this.createIterableRecursor());this.iterableState=c.state,o=c.recursor,i=!0,o!==dr.NOOP_RECURSOR&&(a=Rd.describeIterableRecursor(o))}}else{const c=dr.replay(this.propertyState,()=>this.createPropertyRecursor());this.propertyState=c.state,o=c.recursor,t=!0,o!==dr.NOOP_RECURSOR&&(a=Rd.describePropertyRecursor(o))}else{const c=dr.replay(this.listState,()=>this.createListRecursor());this.listState=c.state,o=c.recursor,n=!0,o!==dr.NOOP_RECURSOR&&(a=Rd.describeListRecursor(o))}while(o!==null&&a===null);return a}}}}Yt.DescribedMixin=ux;function lx(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=dr.replay(this.replayState,()=>({size:-1,next:this.deserializedRecursor}));return this.replayState=t.state,t.recursor.next}hasSameCtor(t){return this.ctor===t.ctor}}}Yt.DeserializedMixin=lx;const cx=bt,eg=Yt,BP=cx.AMBIGUOUS,fx=cx.UNEQUAL;function OP(e){return new NP(Object.assign({isArray:!0,isList:!0},e,{ctor:"Arguments"}))}ga.describe=OP;function PP(e,t){return new IP(e,t)}ga.deserialize=PP;const hx=Symbol("ArgumentsValue");ga.tag=hx;class tg extends eg.ObjectValue{compare(t){return t.isComplex!==!0?fx:t.stringTag==="Array"?BP:super.compare(t)}}Object.defineProperty(tg.prototype,"tag",{value:hx});const NP=eg.DescribedMixin(tg);class IP extends eg.DeserializedMixin(tg){compare(t){return t.isComplex===!0&&t.stringTag==="Array"?fx:super.compare(t)}}var Xu={},Zn={};const dx=bt,RP=zt,ou=Zt,MP=ar.propertyTag,pb=Ft,ng=Yt,zP=dx.DEEP_EQUAL,UP=dx.UNEQUAL;function px(e){const t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength?t.slice(e.byteOffset,e.byteOffset+e.byteLength):t}Zn.getBuffer=px;function HP(e){return new VP(Object.assign({buffer:px(e.value),isArray:!0,isList:!0},e))}Zn.describe=HP;function qP(e,t){return new WP(e,t)}Zn.deserialize=qP;function jP(e){return new rg(e)}Zn.deserializeBytes=jP;const Xf=Symbol("Bytes");Zn.bytesTag=Xf;const gx=Symbol("TypedArrayValue");Zn.tag=gx;class rg{constructor(t){this.buffer=t}compare(t){return t.tag===Xf&&this.buffer.equals(t.buffer)?zP:UP}formatDeep(t,n){const i=n,o=ou.buffer();let a="",c=!0;for(let h=0;h<this.buffer.length;h+=4)h>0&&(h%32===0?(c?(o.append(ou.first(a)),c=!1):o.append(ou.line(a)),a=String(i)):a+=" "),a+=RP.wrap(t.typedArray.bytes,this.buffer.toString("hex",h,h+4));return c?ou.single(a):o.append(ou.last(a))}serialize(){return this.buffer}}Object.defineProperty(rg.prototype,"tag",{value:Xf});class Yf extends ng.ObjectValue{constructor(t){super(t),this.buffer=t.buffer}formatShallow(t,n){return super.formatShallow(t,n).customize({shouldFormat(i){return i.tag===MP?i.size>1:i.isProperty===!0?i.key.value!=="byteLength":i.tag===Xf?i.buffer.byteLength>0:!0}})}}Object.defineProperty(Yf.prototype,"tag",{value:gx});Zn.TypedArrayValue=Yf;function vx(e){return class extends ng.DescribedMixin(e){createListRecursor(){return pb.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 pb.unshift(super.createRecursor(),new rg(this.buffer))}}}Zn.DescribedMixin=vx;const VP=vx(Yf);function mx(e){return class extends ng.DeserializedMixin(e){constructor(t,n){super(t,n);const i=this.createRecursor()();this.buffer=i.buffer}}}Zn.DeserializedMixin=mx;const WP=mx(Yf),ig=Zn;function GP(e){return new QP(Object.assign({buffer:Buffer.from(e.value),isArray:!0,isList:!0},e))}Xu.describe=GP;function KP(e,t){return new XP(e,t)}Xu.deserialize=KP;const yx=Symbol("ArrayBufferValue");Xu.tag=yx;class sg extends ig.TypedArrayValue{}Object.defineProperty(sg.prototype,"tag",{value:yx});const QP=ig.DescribedMixin(sg),XP=ig.DeserializedMixin(sg);var Yu={},Qs={},Mc={},bx={exports:{}};(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}bx.exports={isExpression:e,isStatement:n,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}})();var og={exports:{}};(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 x=String.fromCharCode(Math.floor((C-65536)/1024)+55296),S=String.fromCharCode((C-65536)%1024+56320);return x+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 A(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))}og.exports={isDecimalDigit:c,isHexDigit:h,isOctalDigit:d,isWhiteSpace:p,isLineTerminator:g,isIdentifierStartES5:m,isIdentifierPartES5:A,isIdentifierStartES6:$,isIdentifierPartES6:L}})();var wx={exports:{}};(function(){var e=og.exports;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,A){return!A&&m==="yield"?!1:i(m,A)}function i(m,A){if(A&&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,A){return m==="null"||m==="true"||m==="false"||n(m,A)}function a(m,A){return m==="null"||m==="true"||m==="false"||i(m,A)}function c(m){return m==="eval"||m==="arguments"}function h(m){var A,$,L;if(m.length===0||(L=m.charCodeAt(0),!e.isIdentifierStartES5(L)))return!1;for(A=1,$=m.length;A<$;++A)if(L=m.charCodeAt(A),!e.isIdentifierPartES5(L))return!1;return!0}function d(m,A){return(m-55296)*1024+(A-56320)+65536}function p(m){var A,$,L,C,x;if(m.length===0)return!1;for(x=e.isIdentifierStartES6,A=0,$=m.length;A<$;++A){if(L=m.charCodeAt(A),55296<=L&&L<=56319){if(++A,A>=$||(C=m.charCodeAt(A),!(56320<=C&&C<=57343)))return!1;L=d(L,C)}if(!x(L))return!1;x=e.isIdentifierPartES6}return!0}function g(m,A){return h(m)&&!o(m,A)}function y(m,A){return p(m)&&!a(m,A)}wx.exports={isKeywordES5:n,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:c,isIdentifierNameES5:h,isIdentifierNameES6:p,isIdentifierES5:g,isIdentifierES6:y}})();(function(){Mc.ast=bx.exports,Mc.code=og.exports,Mc.keyword=wx.exports})();var Ur=-1,Dr=1,In=0;function Pu(e,t,n,i){if(e===t)return e?[[In,e]]:[];if(n!=null){var o=t3(e,t,n);if(o)return o}var a=ag(e,t),c=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=ug(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=YP(e,t);return c&&d.unshift([In,c]),h&&d.push([In,h]),Dx(d,i),d}function YP(e,t){var n;if(!e)return[[Dr,t]];if(!t)return[[Ur,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=[[Dr,i.substring(0,a)],[In,o],[Dr,i.substring(a+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Ur),n;if(o.length===1)return[[Ur,e],[Dr,t]];var c=JP(e,t);if(c){var h=c[0],d=c[1],p=c[2],g=c[3],y=c[4],m=Pu(h,p),A=Pu(d,g);return m.concat([[In,y]],A)}return ZP(e,t)}function ZP(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,A=0,$=0,L=0,C=0;C<o;C++){for(var x=-C+m;x<=C-A;x+=2){var S=a+x,O;x===-C||x!==C&&h[S-1]<h[S+1]?O=h[S+1]:O=h[S-1]+1;for(var B=O-x;O<n&&B<i&&e.charAt(O)===t.charAt(B);)O++,B++;if(h[S]=O,O>n)A+=2;else if(B>i)m+=2;else if(y){var k=a+g-x;if(k>=0&&k<c&&d[k]!==-1){var M=n-d[k];if(O>=M)return gb(e,t,O,B)}}}for(var R=-C+$;R<=C-L;R+=2){var k=a+R,M;R===-C||R!==C&&d[k-1]<d[k+1]?M=d[k+1]:M=d[k-1]+1;for(var W=M-R;M<n&&W<i&&e.charAt(n-M-1)===t.charAt(i-W-1);)M++,W++;if(d[k]=M,M>n)L+=2;else if(W>i)$+=2;else if(!y){var S=a+g-R;if(S>=0&&S<c&&h[S]!==-1){var O=h[S],B=a+O-S;if(M=n-M,O>=M)return gb(e,t,O,B)}}}}return[[Ur,e],[Dr,t]]}function gb(e,t,n,i){var o=e.substring(0,n),a=t.substring(0,i),c=e.substring(n),h=t.substring(i),d=Pu(o,a),p=Pu(c,h);return d.concat(p)}function ag(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 Ax(e.charCodeAt(o-1))&&o--,o}function ug(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 Ex(e.charCodeAt(e.length-o))&&o--,o}function JP(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(A,$,L){for(var C=A.substring(L,L+Math.floor(A.length/4)),x=-1,S="",O,B,k,M;(x=$.indexOf(C,x+1))!==-1;){var R=ag(A.substring(L),$.substring(x)),W=ug(A.substring(0,L),$.substring(0,x));S.length<W+R&&(S=$.substring(x-W,x)+$.substring(x,x+R),O=A.substring(0,L-W),B=A.substring(L+R),k=$.substring(0,x-W),M=$.substring(x+R))}return S.length*2>=A.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 Dx(e,t){e.push([In,""]);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 Dr:o++,c+=e[n][1],n++;break;case Ur:i++,a+=e[n][1],n++;break;case In:var d=n-o-i-1;if(t){if(d>=0&&Cx(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]===Dr&&(o++,c=e[g][1]+c,g--),e[g]&&e[g][0]===Ur&&(i++,a=e[g][1]+a,g--),d=g}}if(xx(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=ag(c,a),h!==0&&(d>=0?e[d][1]+=c.substring(0,h):(e.splice(0,0,[In,c.substring(0,h)]),n++),c=c.substring(h),a=a.substring(h)),h=ug(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,[Dr,c]),n=n-y+1):c.length===0?(e.splice(n-y,y,[Ur,a]),n=n-y+1):(e.splice(n-y,y,[Ur,a],[Dr,c]),n=n-y+2)}n!==0&&e[n-1][0]===In?(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]===In&&e[n+1][0]===In&&(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&&Dx(e,t)}function Ax(e){return e>=55296&&e<=56319}function Ex(e){return e>=56320&&e<=57343}function xx(e){return Ex(e.charCodeAt(0))}function Cx(e){return Ax(e.charCodeAt(e.length-1))}function e3(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function Md(e,t,n,i){return Cx(e)||xx(i)?null:e3([[In,e],[Ur,t],[Dr,n],[In,i]])}function t3(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),A=t.slice(y);if(A!==p)break e;var $=Math.min(h,y),L=d.slice(0,$),C=m.slice(0,$);if(L!==C)break e;var x=d.slice($),S=m.slice($);return Md(L,x,S,p)}e:{if(g!==null&&g!==h)break e;var O=h,m=t.slice(0,O),A=t.slice(O);if(m!==d)break e;var B=Math.min(a-O,c-O),k=p.slice(p.length-B),M=A.slice(A.length-B);if(k!==M)break e;var x=p.slice(0,p.length-B),S=A.slice(0,A.length-B);return Md(d,x,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 x=e.slice($,a-B),S=t.slice($,c-B);return Md(L,x,S,k)}}return null}function Zf(e,t,n){return Pu(e,t,n,!0)}Zf.INSERT=Dr;Zf.DELETE=Ur;Zf.EQUAL=In;var n3=Zf;const r3=Mc.keyword,uc=n3,_x=bt,gn=zt,Lt=Zt,i3=_x.DEEP_EQUAL,s3=_x.UNEQUAL;function Sx(e){return new lg(e)}Qs.describe=Sx;Qs.deserialize=Sx;const cf=Symbol("StringValue");Qs.tag=cf;function lc(e){return e.replace(/\\/g,"\\\\")}const o3="␍␊",Fx="␊",Np="␍",$x=new RegExp(`${Np}|${Fx}|${Np}`,"g");function a3(e){return e===`\r
|
|
3
|
+
`?o3:e===`
|
|
4
|
+
`?Fx:e==="\r"?Np:e}function Ip(e,t,n){return n.replace($x,i=>t.close+gn.wrap(e.string.controlPicture,i)+t.open)}const u3=/'/g,l3=/"/g,c3=/`/g;function _o(e,t){const n=e.escapeQuote;return n==="'"?t.replace(u3,"\\'"):n==='"'?t.replace(l3,'\\"'):n==="`"?t.replace(c3,"\\`"):t}function zd(e){return e.includes("\r")||e.includes(`
|
|
5
|
+
`)}function vb(e,t,n,i){const o=uc(t,n),a=!(o.length===2&&o[0][1]===t&&o[1][1]===n||o.length===3&&o[2][0]===uc.EQUAL&&$x.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]===uc.DELETE)c+=gn.wrap(p,m[1]);else if(m[0]===uc.INSERT)h+=gn.wrap(g,m[1]);else{const A=gn.wrap(y,Ip(e,y,m[1]));c+=A,h+=A}if(!a){const m=i?e.string.diff.insertLine:e.string.diff.deleteLine,A=i?e.string.diff.deleteLine:e.string.diff.insertLine;c=gn.wrap(m,c),h=gn.wrap(A,h)}return[c,h]}const f3=/\r\n|\r|\n/g;function Ud(e){const t=[];let n=0;for(let i;i=f3.exec(e);n=i.index+i[0].length)t.push(e.slice(n,i.index)+a3(i[0]));return t.push(e.slice(n)),t}class lg{constructor(t){this.value=t}compare(t){return t.tag===cf&&this.value===t.value?i3:s3}get includesLinebreaks(){return zd(this.value)}formatDeep(t,n){let i=lc(this.value);if(!this.includesLinebreaks)return i=_o(t.string.line,i),Lt.single(gn.wrap(t.string.line,gn.wrap(t.string,i)));i=_o(t.string.multiline,i);const o=Ud(i).map(h=>gn.wrap(t.string,Ip(t,t.string,h))),a=o.length-1,c=n;return Lt.buffer().append(o.map((h,d)=>d===0?Lt.first(t.string.multiline.start+h):d===a?Lt.last(c+h+t.string.multiline.end):Lt.line(c+h)))}formatAsKey(t){const n=this.value;if(r3.isIdentifierNameES6(n,!0)||String(parseInt(n,10))===n)return n;const i=lc(n).replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/'/g,"\\'");return gn.wrap(t.string.line,gn.wrap(t.string,i))}diffDeep(t,n,i,o){if(t.tag!==cf)return null;const a=lc(this.value),c=lc(t.value);if(!zd(a)&&!zd(c)){const C=vb(n,_o(n.string.line,a),_o(n.string.line,c),o);return Lt.actual.single(gn.wrap(n.string.line,C[0])).concat(Lt.expected.single(gn.wrap(n.string.line,C[1])))}const h=Ud(_o(n.string.multiline,a)),d=Ud(_o(n.string.multiline,c)),p=i,g=Lt.buffer(),y=h.length-1,m=d.length-1;let A=[],$=[],L=!1;for(let C=0,x=0,S=0;C<h.length;){if(h[C]===d[x]){g.append(A),g.append($),A=[],$=[];let k=h[C];k=Ip(n,n.string.diff.equal,k),k=gn.wrap(n.string.diff.equal,k),C===0?g.append(Lt.first(n.string.multiline.start+k)):C===y&&x===m?g.append(Lt.last(p+k+n.string.multiline.end)):g.append(Lt.line(p+k)),C++,x++;continue}let O=!1;{const k=h[C];for(let M=x;!O&&M<d.length;M++)O=k===d[M]}let B=C-S>m||x>m;if(!B){const k=d[x];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=gn.wrap(k,h[C]);C===0?(A.push(Lt.actual.first(n.string.multiline.start+M)),L=!0):C===y?A.push(Lt.actual.last(p+M+n.string.multiline.end)):A.push(Lt.actual.line(p+M)),C++,S++}else if(O&&!B){const k=o?n.string.diff.deleteLine:n.string.diff.insertLine,M=gn.wrap(k,d[x]);L?($.push(Lt.expected.first(n.string.multiline.start+M)),L=!1):x===m?$.push(Lt.expected.last(p+M+n.string.multiline.end)):$.push(Lt.expected.line(p+M)),x++}else{const k=vb(n,h[C],d[x],o);C===0?(A.push(Lt.actual.first(n.string.multiline.start+k[0])),L=!0):C===y?A.push(Lt.actual.last(p+k[0]+n.string.multiline.end)):A.push(Lt.actual.line(p+k[0])),L?($.push(Lt.expected.first(n.string.multiline.start+k[1])),L=!1):x===m?$.push(Lt.expected.last(p+k[1]+n.string.multiline.end)):$.push(Lt.expected.line(p+k[1])),C++,x++}}return g.append(A),g.append($),g}serialize(){return this.value}}Object.defineProperty(lg.prototype,"isPrimitive",{value:!0});Object.defineProperty(lg.prototype,"tag",{value:cf});const h3=Qs.tag,mb=Ft,cg=Yt;function d3(e){return new g3(e)}Yu.describe=d3;function p3(e,t){return new v3(e,t)}Yu.deserialize=p3;const Tx=Symbol("BoxedValue");Yu.tag=Tx;class fg extends cg.ObjectValue{}Object.defineProperty(fg.prototype,"tag",{value:Tx});class g3 extends cg.DescribedMixin(fg){constructor(t){super(t),this.unboxed=t.unboxed}createListRecursor(){return mb.NOOP_RECURSOR}createPropertyRecursor(){if(this.unboxed.tag!==h3)return super.createPropertyRecursor();try{return this.isList=!0,super.createPropertyRecursor()}finally{this.isList=!1}}createRecursor(){return mb.unshift(super.createRecursor(),this.unboxed)}}const v3=cg.DeserializedMixin(fg);var Zu={};const Jf=Zn;function m3(e){return new b3(Object.assign({buffer:Jf.getBuffer(e.value),isArray:!0,isList:!0},e))}Zu.describe=m3;function y3(e,t){return new w3(e,t)}Zu.deserialize=y3;const kx=Symbol("DataViewValue");Zu.tag=kx;class hg extends Jf.TypedArrayValue{}Object.defineProperty(hg.prototype,"tag",{value:kx});const b3=Jf.DescribedMixin(hg),w3=Jf.DeserializedMixin(hg);var Ju={},dg={exports:{}},D3=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 A3=D3,Lx=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?A3(t):"")),e.showMilliseconds&&t.getUTCMilliseconds()>0&&(n=` ${t.getUTCMilliseconds()}ms${n}`),t.toISOString().replace(/T/," ").replace(/\..+/,n)};dg.exports=Lx;dg.exports.default=Lx;const E3=dg.exports,Bx=bt,yb=zt,cc=Zt,pg=Yt,bb=Bx.SHALLOW_EQUAL,x3=Bx.UNEQUAL;function C3(e){const t=e.value,n=isNaN(t.valueOf());return new F3(Object.assign({},e,{invalid:n}))}Ju.describe=C3;function _3(e,t){return new $3(e,t)}Ju.deserialize=_3;const Ox=Symbol("DateValue");Ju.tag=Ox;function S3(e){return E3({date:e,local:!1,showTimeZone:!0,showMilliseconds:!0})}class gg extends pg.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:x3}formatShallow(t,n){const i=yb.formatCtorAndStringTag(t,this)+" "+(this.invalid?t.date.invalid:yb.wrap(t.date.value,S3(this.value)))+" "+t.object.openBracket;return super.formatShallow(t,n).customize({finalize(o){return o.isEmpty?cc.single(i+t.object.closeBracket):cc.first(i).concat(o.withFirstPrefixed(n.increase()).stripFlags()).append(cc.last(n+t.object.closeBracket))},maxDepth(){return cc.single(i+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){const t=this.invalid?null:this.value.toISOString();return[this.invalid,t,super.serialize()]}}Object.defineProperty(gg.prototype,"tag",{value:Ox});const F3=pg.DescribedMixin(gg);class $3 extends pg.DeserializedMixin(gg){constructor(t,n){super(t[2],n),this.invalid=t[0],this.value=new Date(this.invalid?NaN:t[1])}}var el={};function T3(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable}var Px=T3;const k3=bt,fc=zt,wb=Px,hc=Zt,L3=Ft.NOOP_RECURSOR,vg=Yt,B3=k3.UNEQUAL;function O3(e){const t=e.value;return new N3(Object.assign({nameIsEnumerable:wb(t,"name"),name:t.name,messageIsEnumerable:wb(t,"message"),message:t.message},e))}el.describe=O3;function P3(e,t){return new I3(e,t)}el.deserialize=P3;const Nx=Symbol("ErrorValue");el.tag=Nx;class mg extends vg.ObjectValue{constructor(t){super(t),this.name=t.name}compare(t){return this.tag===t.tag&&this.name===t.name?super.compare(t):B3}formatShallow(t,n){const i=this.name||this.ctor;let o=i?fc.wrap(t.error.name,i):fc.wrap(t.object.stringTag,this.stringTag);return this.ctor&&this.ctor!==i&&(o+=" "+fc.wrap(t.error.ctor,this.ctor)),this.stringTag&&this.stringTag!==this.ctor&&this.name&&!this.name.includes(this.stringTag)&&(o+=" "+fc.wrap(t.object.secondaryStringTag,this.stringTag)),o+=" "+t.object.openBracket,super.formatShallow(t,n).customize({finalize(a){return a.isEmpty?hc.single(o+t.object.closeBracket):hc.first(o).concat(a.withFirstPrefixed(n.increase()).stripFlags()).append(hc.last(n+t.object.closeBracket))},maxDepth(){return hc.single(o+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){return[this.name,super.serialize()]}}Object.defineProperty(mg.prototype,"tag",{value:Nx});class N3 extends vg.DescribedMixin(mg){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 L3;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 I3 extends vg.DeserializedMixin(mg){constructor(t,n){super(t[1],n),this.name=t[0]}}var tl={};const Ix=bt,Db=zt,R3=Px,dc=Zt,M3=Ft.NOOP_RECURSOR,yg=Yt,Vo=Ix.UNEQUAL,z3=Ix.SHALLOW_EQUAL;function U3(e){const t=e.value;return new q3(Object.assign({nameIsEnumerable:R3(t,"name"),name:typeof t.name=="string"?t.name:null},e))}tl.describe=U3;function H3(e,t){return new j3(e,t)}tl.deserialize=H3;const Rx=Symbol("FunctionValue");tl.tag=Rx;class bg extends yg.ObjectValue{constructor(t){super(t),this.name=t.name}formatShallow(t,n){const i=Db.wrap(t.function.stringTag,this.stringTag)+(this.name?" "+Db.wrap(t.function.name,this.name):"")+" "+t.object.openBracket;return super.formatShallow(t,n).customize({finalize(o){return o.isEmpty?dc.single(i+t.object.closeBracket):dc.first(i).concat(o.withFirstPrefixed(n.increase()).stripFlags()).append(dc.last(n+t.object.closeBracket))},maxDepth(){return dc.single(i+" "+t.maxDepth+" "+t.object.closeBracket)}})}}Object.defineProperty(bg.prototype,"tag",{value:Rx});class q3 extends yg.DescribedMixin(bg){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?Vo: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 M3;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 j3 extends yg.DeserializedMixin(bg){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?Vo:z3}serialize(){return[this.name,super.serialize()]}}var nl={};const Mx=bt,V3=zt,W3=Zt,G3=Mx.DEEP_EQUAL,K3=Mx.UNEQUAL;function zx(){return new wg}nl.describe=zx;nl.deserialize=zx;const Ux=Symbol("GlobalValue");nl.tag=Ux;class wg{compare(t){return this.tag===t.tag?G3:K3}formatDeep(t){return W3.single(V3.wrap(t.global,"Global")+" "+t.object.openBracket+t.object.closeBracket)}}Object.defineProperty(wg.prototype,"isComplex",{value:!0});Object.defineProperty(wg.prototype,"tag",{value:Ux});var rl={};const Hx=bt,Q3=Ft,Dg=Yt,Ab=Hx.SHALLOW_EQUAL,X3=Hx.UNEQUAL;function Y3(e){return new J3(Object.assign({size:e.value.size},e))}rl.describe=Y3;function Z3(e,t){return new e8(e,t)}rl.deserialize=Z3;const qx=Symbol("MapValue");rl.tag=qx;class Ag extends Dg.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==Ab?n:this.size===t.size?Ab:X3}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(Ag.prototype,"tag",{value:qx});class J3 extends Dg.DescribedMixin(Ag){createIterableRecursor(){const t=this.size;if(t===0)return Q3.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 e8 extends Dg.DeserializedMixin(Ag){constructor(t,n){super(t[1],n),this.size=t[0]}}var il={};const jx=bt,Eg=Yt,Eb=jx.DEEP_EQUAL,t8=jx.UNEQUAL;function n8(e){return new i8(e)}il.describe=n8;function r8(e){return new s8(e)}il.deserialize=r8;const Vx=Symbol("PromiseValue");il.tag=Vx;class xg extends Eg.ObjectValue{}Object.defineProperty(xg.prototype,"tag",{value:Vx});class i8 extends Eg.DescribedMixin(xg){compare(t){return super.compare(t)===Eb?Eb:t8}}class s8 extends Eg.DeserializedMixin(xg){compare(t){return super.compare(t)}}var sl={};const o8=bt,pc=zt,So=Zt,Cg=Yt,a8=o8.UNEQUAL;function u8(e){const t=e.value;return new f8(Object.assign({flags:c8(t),source:t.source},e))}sl.describe=u8;function l8(e,t){return new h8(e,t)}sl.deserialize=l8;const Wx=Symbol("RegexpValue");sl.tag=Wx;function c8(e){return(e.flags||String(e).slice(e.source.length+2)).split("").sort().join("")}class _g extends Cg.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):a8}formatShallow(t,n){const i=this.ctor||this.stringTag,o=pc.wrap(t.regexp.source,this.source)+pc.wrap(t.regexp.flags,this.flags);return super.formatShallow(t,n).customize({finalize:a=>{if(i==="RegExp"&&a.isEmpty)return So.single(o);const c=n.increase(),h=So.first(pc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket).concat(So.line(c+o));return a.isEmpty||(h.append(So.line(c+t.regexp.separator)),h.append(a.withFirstPrefixed(c).stripFlags())),h.append(So.last(n+t.object.closeBracket))},maxDepth:()=>So.single(pc.formatCtorAndStringTag(t,this)+" "+t.object.openBracket+" "+o+" "+t.maxDepth+" "+t.object.closeBracket)})}serialize(){return[this.flags,this.source,super.serialize()]}}Object.defineProperty(_g.prototype,"tag",{value:Wx});const f8=Cg.DescribedMixin(_g);class h8 extends Cg.DeserializedMixin(_g){constructor(t,n){super(t[2],n),this.flags=t[0],this.source=t[1]}}var ol={};const Gx=bt,d8=Ft,Sg=Yt,xb=Gx.SHALLOW_EQUAL,p8=Gx.UNEQUAL;function g8(e){return new m8(Object.assign({size:e.value.size},e))}ol.describe=g8;function v8(e,t){return new y8(e,t)}ol.deserialize=v8;const Kx=Symbol("SetValue");ol.tag=Kx;class Fg extends Sg.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==xb?n:this.size===t.size?xb:p8}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(Fg.prototype,"tag",{value:Kx});class m8 extends Sg.DescribedMixin(Fg){createIterableRecursor(){const t=this.size;if(t===0)return d8.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 y8 extends Sg.DeserializedMixin(Fg){constructor(t,n){super(t[1],n),this.size=t[0]}}const b8=Object.prototype.hasOwnProperty;function w8(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(!b8.call(t,n))return null;return e}return null}var D8=w8,Rp={exports:{}};const A8=Object.prototype.toString;function Hd(e){return A8.call(e).slice(8,-1)}const Qx=Function.prototype.toString,E8=Qx.call(Promise),x8=e=>{if(!e.constructor)return!1;try{return Qx.call(e.constructor)===E8}catch{return!1}};if(Hd(Promise.resolve())==="Promise")Rp.exports=Hd;else{const e=t=>{const n=Hd(t);return n==="Object"&&x8(t)?"Promise":n};Rp.exports=e}var _i={};const Xx=bt,C8=zt,rr=Ft,Mp=Xx.DEEP_EQUAL,Io=Xx.UNEQUAL;function _8(e,t){return new eh(e,t)}_i.describeComplex=_8;function S8(e,t){const n=t();return new eh(e,n)}_i.deserializeComplex=S8;function F8(e,t){return new th(e,t)}_i.describePrimitive=F8;function $8(e){const t=e[0],n=e[1];return new th(t,n)}_i.deserializePrimitive=$8;const Gi=Symbol("ComplexItem");_i.complexTag=Gi;const ua=Symbol("PrimitiveItem");_i.primitiveTag=ua;class eh{constructor(t,n){this.index=t,this.value=n}createRecursor(){return rr.singleValue(this.value)}compare(t){return t.tag===Gi&&this.index===t.index?this.value.compare(t.value):Io}formatShallow(t,n){const i=t.item.increaseValueIndent===!0;return new C8.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:Io};const c=rr.fork(n),h=rr.fork(i),d=t;let p=!1;for(;!p&&t!==null&&t.isItem===!0;)t.tag===Gi&&(p=o(this.value,t.value)!==Io),t=h.shared();let g=!1;if(d.tag===Gi){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===Gi&&(g=o(m.value,d.value)!==Io),m=c.shared()}else if(d.tag===ua){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===ua&&(g=d.value.compare(m.value)===Mp),m=c.shared()}if(g&&!p)return{actualIsExtraneous:!0,lhsRecursor:c.recursor,rhsRecursor:rr.map(rr.unshift(h.recursor,d),m=>(m.isItem!==!0||m.index++,m))};if(p&&!g)return{expectedIsMissing:!0,lhsRecursor:rr.map(rr.unshift(c.recursor,this),m=>(m.isItem!==!0||m.index++,m)),rhsRecursor:h.recursor};const y=this.tag===Gi&&d.tag===Gi&&this.value.compare(d.value)!==Io;return{mustRecurse:y,isUnequal:!y,lhsRecursor:c.recursor,rhsRecursor:h.recursor}}serialize(){return this.index}}Object.defineProperty(eh.prototype,"isItem",{value:!0});Object.defineProperty(eh.prototype,"tag",{value:Gi});class th{constructor(t,n){this.index=t,this.value=n}compare(t){return t.tag===ua&&this.index===t.index?this.value.compare(t.value):Io}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===Mp)return{compareResult:c};if(t.tag===ua&&this.value.tag===t.value.tag&&typeof this.value.diffDeep=="function")return{compareResult:c};const h=rr.fork(i),d=t;do{if(t===null||t.isItem!==!0)return{actualIsExtraneous:!0,rhsRecursor:rr.map(rr.unshift(h.recursor,d),p=>(p.isItem!==!0||p.index++,p))};if(this.value.compare(t.value)===Mp)return{expectedIsMissing:!0,lhsRecursor:rr.map(rr.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(th.prototype,"isItem",{value:!0});Object.defineProperty(th.prototype,"tag",{value:ua});var al={},Fo={};function T8(){this.__data__=[],this.size=0}var k8=T8;function L8(e,t){return e===t||e!==e&&t!==t}var nh=L8,B8=nh;function O8(e,t){for(var n=e.length;n--;)if(B8(e[n][0],t))return n;return-1}var rh=O8,P8=rh,N8=Array.prototype,I8=N8.splice;function R8(e){var t=this.__data__,n=P8(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():I8.call(t,n,1),--this.size,!0}var M8=R8,z8=rh;function U8(e){var t=this.__data__,n=z8(t,e);return n<0?void 0:t[n][1]}var H8=U8,q8=rh;function j8(e){return q8(this.__data__,e)>-1}var V8=j8,W8=rh;function G8(e,t){var n=this.__data__,i=W8(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var K8=G8,Q8=k8,X8=M8,Y8=H8,Z8=V8,J8=K8;function va(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])}}va.prototype.clear=Q8;va.prototype.delete=X8;va.prototype.get=Y8;va.prototype.has=Z8;va.prototype.set=J8;var ih=va,eN=ih;function tN(){this.__data__=new eN,this.size=0}var nN=tN;function rN(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var iN=rN;function sN(e){return this.__data__.get(e)}var oN=sN;function aN(e){return this.__data__.has(e)}var uN=aN,lN=typeof sr=="object"&&sr&&sr.Object===Object&&sr,Yx=lN,cN=Yx,fN=typeof self=="object"&&self&&self.Object===Object&&self,hN=cN||fN||Function("return this")(),Gr=hN,dN=Gr,pN=dN.Symbol,sh=pN,Cb=sh,Zx=Object.prototype,gN=Zx.hasOwnProperty,vN=Zx.toString,au=Cb?Cb.toStringTag:void 0;function mN(e){var t=gN.call(e,au),n=e[au];try{e[au]=void 0;var i=!0}catch{}var o=vN.call(e);return i&&(t?e[au]=n:delete e[au]),o}var yN=mN,bN=Object.prototype,wN=bN.toString;function DN(e){return wN.call(e)}var AN=DN,_b=sh,EN=yN,xN=AN,CN="[object Null]",_N="[object Undefined]",Sb=_b?_b.toStringTag:void 0;function SN(e){return e==null?e===void 0?_N:CN:Sb&&Sb in Object(e)?EN(e):xN(e)}var ul=SN;function FN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var as=FN,$N=ul,TN=as,kN="[object AsyncFunction]",LN="[object Function]",BN="[object GeneratorFunction]",ON="[object Proxy]";function PN(e){if(!TN(e))return!1;var t=$N(e);return t==LN||t==BN||t==kN||t==ON}var $g=PN,NN=Gr,IN=NN["__core-js_shared__"],RN=IN,qd=RN,Fb=function(){var e=/[^.]+$/.exec(qd&&qd.keys&&qd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MN(e){return!!Fb&&Fb in e}var zN=MN,UN=Function.prototype,HN=UN.toString;function qN(e){if(e!=null){try{return HN.call(e)}catch{}try{return e+""}catch{}}return""}var Jx=qN,jN=$g,VN=zN,WN=as,GN=Jx,KN=/[\\^$.*+?()[\]{}|]/g,QN=/^\[object .+?Constructor\]$/,XN=Function.prototype,YN=Object.prototype,ZN=XN.toString,JN=YN.hasOwnProperty,eI=RegExp("^"+ZN.call(JN).replace(KN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tI(e){if(!WN(e)||VN(e))return!1;var t=jN(e)?eI:QN;return t.test(GN(e))}var nI=tI;function rI(e,t){return e==null?void 0:e[t]}var iI=rI,sI=nI,oI=iI;function aI(e,t){var n=oI(e,t);return sI(n)?n:void 0}var Xs=aI,uI=Xs,lI=Gr,cI=uI(lI,"Map"),Tg=cI,fI=Xs,hI=fI(Object,"create"),oh=hI,$b=oh;function dI(){this.__data__=$b?$b(null):{},this.size=0}var pI=dI;function gI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vI=gI,mI=oh,yI="__lodash_hash_undefined__",bI=Object.prototype,wI=bI.hasOwnProperty;function DI(e){var t=this.__data__;if(mI){var n=t[e];return n===yI?void 0:n}return wI.call(t,e)?t[e]:void 0}var AI=DI,EI=oh,xI=Object.prototype,CI=xI.hasOwnProperty;function _I(e){var t=this.__data__;return EI?t[e]!==void 0:CI.call(t,e)}var SI=_I,FI=oh,$I="__lodash_hash_undefined__";function TI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=FI&&t===void 0?$I:t,this}var kI=TI,LI=pI,BI=vI,OI=AI,PI=SI,NI=kI;function ma(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])}}ma.prototype.clear=LI;ma.prototype.delete=BI;ma.prototype.get=OI;ma.prototype.has=PI;ma.prototype.set=NI;var II=ma,Tb=II,RI=ih,MI=Tg;function zI(){this.size=0,this.__data__={hash:new Tb,map:new(MI||RI),string:new Tb}}var UI=zI;function HI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qI=HI,jI=qI;function VI(e,t){var n=e.__data__;return jI(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ah=VI,WI=ah;function GI(e){var t=WI(this,e).delete(e);return this.size-=t?1:0,t}var KI=GI,QI=ah;function XI(e){return QI(this,e).get(e)}var YI=XI,ZI=ah;function JI(e){return ZI(this,e).has(e)}var eR=JI,tR=ah;function nR(e,t){var n=tR(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var rR=nR,iR=UI,sR=KI,oR=YI,aR=eR,uR=rR;function ya(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])}}ya.prototype.clear=iR;ya.prototype.delete=sR;ya.prototype.get=oR;ya.prototype.has=aR;ya.prototype.set=uR;var lR=ya,cR=ih,fR=Tg,hR=lR,dR=200;function pR(e,t){var n=this.__data__;if(n instanceof cR){var i=n.__data__;if(!fR||i.length<dR-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new hR(i)}return n.set(e,t),this.size=n.size,this}var gR=pR,vR=ih,mR=nN,yR=iN,bR=oN,wR=uN,DR=gR;function ba(e){var t=this.__data__=new vR(e);this.size=t.size}ba.prototype.clear=mR;ba.prototype.delete=yR;ba.prototype.get=bR;ba.prototype.has=wR;ba.prototype.set=DR;var eC=ba;function AR(e,t){for(var n=-1,i=e==null?0:e.length;++n<i&&t(e[n],n,e)!==!1;);return e}var ER=AR,xR=Xs,CR=function(){try{var e=xR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tC=CR,kb=tC;function _R(e,t,n){t=="__proto__"&&kb?kb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var kg=_R,SR=kg,FR=nh,$R=Object.prototype,TR=$R.hasOwnProperty;function kR(e,t,n){var i=e[t];(!(TR.call(e,t)&&FR(i,n))||n===void 0&&!(t in e))&&SR(e,t,n)}var nC=kR,LR=nC,BR=kg;function OR(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?BR(n,h,d):LR(n,h,d)}return n}var ll=OR;function PR(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var NR=PR;function IR(e){return e!=null&&typeof e=="object"}var Ys=IR,RR=ul,MR=Ys,zR="[object Arguments]";function UR(e){return MR(e)&&RR(e)==zR}var HR=UR,Lb=HR,qR=Ys,rC=Object.prototype,jR=rC.hasOwnProperty,VR=rC.propertyIsEnumerable,WR=Lb(function(){return arguments}())?Lb:function(e){return qR(e)&&jR.call(e,"callee")&&!VR.call(e,"callee")},Lg=WR,GR=Array.isArray,cl=GR,Nu={exports:{}};function KR(){return!1}var QR=KR;(function(e,t){var n=Gr,i=QR,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})(Nu,Nu.exports);var XR=9007199254740991,YR=/^(?:0|[1-9]\d*)$/;function ZR(e,t){var n=typeof e;return t=t??XR,!!t&&(n=="number"||n!="symbol"&&YR.test(e))&&e>-1&&e%1==0&&e<t}var iC=ZR,JR=ul,eM=j0,tM=Ys,nM="[object Arguments]",rM="[object Array]",iM="[object Boolean]",sM="[object Date]",oM="[object Error]",aM="[object Function]",uM="[object Map]",lM="[object Number]",cM="[object Object]",fM="[object RegExp]",hM="[object Set]",dM="[object String]",pM="[object WeakMap]",gM="[object ArrayBuffer]",vM="[object DataView]",mM="[object Float32Array]",yM="[object Float64Array]",bM="[object Int8Array]",wM="[object Int16Array]",DM="[object Int32Array]",AM="[object Uint8Array]",EM="[object Uint8ClampedArray]",xM="[object Uint16Array]",CM="[object Uint32Array]",xt={};xt[mM]=xt[yM]=xt[bM]=xt[wM]=xt[DM]=xt[AM]=xt[EM]=xt[xM]=xt[CM]=!0;xt[nM]=xt[rM]=xt[gM]=xt[iM]=xt[vM]=xt[sM]=xt[oM]=xt[aM]=xt[uM]=xt[lM]=xt[cM]=xt[fM]=xt[hM]=xt[dM]=xt[pM]=!1;function _M(e){return tM(e)&&eM(e.length)&&!!xt[JR(e)]}var SM=_M;function FM(e){return function(t){return e(t)}}var Bg=FM,Iu={exports:{}};(function(e,t){var n=Yx,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})(Iu,Iu.exports);var $M=SM,TM=Bg,Bb=Iu.exports,Ob=Bb&&Bb.isTypedArray,kM=Ob?TM(Ob):$M,sC=kM,LM=NR,BM=Lg,OM=cl,PM=Nu.exports,NM=iC,IM=sC,RM=Object.prototype,MM=RM.hasOwnProperty;function zM(e,t){var n=OM(e),i=!n&&BM(e),o=!n&&!i&&PM(e),a=!n&&!i&&!o&&IM(e),c=n||i||o||a,h=c?LM(e.length,String):[],d=h.length;for(var p in e)(t||MM.call(e,p))&&!(c&&(p=="length"||o&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||NM(p,d)))&&h.push(p);return h}var oC=zM,UM=Object.prototype;function HM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||UM;return e===n}var Og=HM;function qM(e,t){return function(n){return e(t(n))}}var aC=qM,jM=aC,VM=jM(Object.keys,Object),WM=VM,GM=Og,KM=WM,QM=Object.prototype,XM=QM.hasOwnProperty;function YM(e){if(!GM(e))return KM(e);var t=[];for(var n in Object(e))XM.call(e,n)&&n!="constructor"&&t.push(n);return t}var ZM=YM,JM=$g,e5=j0;function t5(e){return e!=null&&e5(e.length)&&!JM(e)}var uh=t5,n5=oC,r5=ZM,i5=uh;function s5(e){return i5(e)?n5(e):r5(e)}var Pg=s5,o5=ll,a5=Pg;function u5(e,t){return e&&o5(t,a5(t),e)}var l5=u5;function c5(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var f5=c5,h5=as,d5=Og,p5=f5,g5=Object.prototype,v5=g5.hasOwnProperty;function m5(e){if(!h5(e))return p5(e);var t=d5(e),n=[];for(var i in e)i=="constructor"&&(t||!v5.call(e,i))||n.push(i);return n}var y5=m5,b5=oC,w5=y5,D5=uh;function A5(e){return D5(e)?b5(e,!0):w5(e)}var fl=A5,E5=ll,x5=fl;function C5(e,t){return e&&E5(t,x5(t),e)}var _5=C5,ff={exports:{}};(function(e,t){var n=Gr,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})(ff,ff.exports);function S5(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}var uC=S5;function F5(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 $5=F5;function T5(){return[]}var lC=T5,k5=$5,L5=lC,B5=Object.prototype,O5=B5.propertyIsEnumerable,Pb=Object.getOwnPropertySymbols,P5=Pb?function(e){return e==null?[]:(e=Object(e),k5(Pb(e),function(t){return O5.call(e,t)}))}:L5,Ng=P5,N5=ll,I5=Ng;function R5(e,t){return N5(e,I5(e),t)}var M5=R5;function z5(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}var Ig=z5,U5=aC,H5=U5(Object.getPrototypeOf,Object),Rg=H5,q5=Ig,j5=Rg,V5=Ng,W5=lC,G5=Object.getOwnPropertySymbols,K5=G5?function(e){for(var t=[];e;)q5(t,V5(e)),e=j5(e);return t}:W5,cC=K5,Q5=ll,X5=cC;function Y5(e,t){return Q5(e,X5(e),t)}var Z5=Y5,J5=Ig,e6=cl;function t6(e,t,n){var i=t(e);return e6(e)?i:J5(i,n(e))}var fC=t6,n6=fC,r6=Ng,i6=Pg;function s6(e){return n6(e,i6,r6)}var o6=s6,a6=fC,u6=cC,l6=fl;function c6(e){return a6(e,l6,u6)}var f6=c6,h6=Xs,d6=Gr,p6=h6(d6,"DataView"),g6=p6,v6=Xs,m6=Gr,y6=v6(m6,"Promise"),b6=y6,w6=Xs,D6=Gr,A6=w6(D6,"Set"),E6=A6,x6=Xs,C6=Gr,_6=x6(C6,"WeakMap"),S6=_6,zp=g6,Up=Tg,Hp=b6,qp=E6,jp=S6,hC=ul,wa=Jx,Nb="[object Map]",F6="[object Object]",Ib="[object Promise]",Rb="[object Set]",Mb="[object WeakMap]",zb="[object DataView]",$6=wa(zp),T6=wa(Up),k6=wa(Hp),L6=wa(qp),B6=wa(jp),Fs=hC;(zp&&Fs(new zp(new ArrayBuffer(1)))!=zb||Up&&Fs(new Up)!=Nb||Hp&&Fs(Hp.resolve())!=Ib||qp&&Fs(new qp)!=Rb||jp&&Fs(new jp)!=Mb)&&(Fs=function(e){var t=hC(e),n=t==F6?e.constructor:void 0,i=n?wa(n):"";if(i)switch(i){case $6:return zb;case T6:return Nb;case k6:return Ib;case L6:return Rb;case B6:return Mb}return t});var Mg=Fs,O6=Object.prototype,P6=O6.hasOwnProperty;function N6(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&P6.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var I6=N6,R6=Gr,M6=R6.Uint8Array,z6=M6,Ub=z6;function U6(e){var t=new e.constructor(e.byteLength);return new Ub(t).set(new Ub(e)),t}var zg=U6,H6=zg;function q6(e,t){var n=t?H6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var j6=q6,V6=/\w*$/;function W6(e){var t=new e.constructor(e.source,V6.exec(e));return t.lastIndex=e.lastIndex,t}var G6=W6,Hb=sh,qb=Hb?Hb.prototype:void 0,jb=qb?qb.valueOf:void 0;function K6(e){return jb?Object(jb.call(e)):{}}var Q6=K6,X6=zg;function Y6(e,t){var n=t?X6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var dC=Y6,Z6=zg,J6=j6,ez=G6,tz=Q6,nz=dC,rz="[object Boolean]",iz="[object Date]",sz="[object Map]",oz="[object Number]",az="[object RegExp]",uz="[object Set]",lz="[object String]",cz="[object Symbol]",fz="[object ArrayBuffer]",hz="[object DataView]",dz="[object Float32Array]",pz="[object Float64Array]",gz="[object Int8Array]",vz="[object Int16Array]",mz="[object Int32Array]",yz="[object Uint8Array]",bz="[object Uint8ClampedArray]",wz="[object Uint16Array]",Dz="[object Uint32Array]";function Az(e,t,n){var i=e.constructor;switch(t){case fz:return Z6(e);case rz:case iz:return new i(+e);case hz:return J6(e,n);case dz:case pz:case gz:case vz:case mz:case yz:case bz:case wz:case Dz:return nz(e,n);case sz:return new i;case oz:case lz:return new i(e);case az:return ez(e);case uz:return new i;case cz:return tz(e)}}var Ez=Az,xz=as,Vb=Object.create,Cz=function(){function e(){}return function(t){if(!xz(t))return{};if(Vb)return Vb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_z=Cz,Sz=_z,Fz=Rg,$z=Og;function Tz(e){return typeof e.constructor=="function"&&!$z(e)?Sz(Fz(e)):{}}var pC=Tz,kz=Mg,Lz=Ys,Bz="[object Map]";function Oz(e){return Lz(e)&&kz(e)==Bz}var Pz=Oz,Nz=Pz,Iz=Bg,Wb=Iu.exports,Gb=Wb&&Wb.isMap,Rz=Gb?Iz(Gb):Nz,Mz=Rz,zz=Mg,Uz=Ys,Hz="[object Set]";function qz(e){return Uz(e)&&zz(e)==Hz}var jz=qz,Vz=jz,Wz=Bg,Kb=Iu.exports,Qb=Kb&&Kb.isSet,Gz=Qb?Wz(Qb):Vz,Kz=Gz,Qz=eC,Xz=ER,Yz=nC,Zz=l5,Jz=_5,e4=ff.exports,t4=uC,n4=M5,r4=Z5,i4=o6,s4=f6,o4=Mg,a4=I6,u4=Ez,l4=pC,c4=cl,f4=Nu.exports,h4=Mz,d4=as,p4=Kz,g4=Pg,v4=fl,m4=1,y4=2,b4=4,gC="[object Arguments]",w4="[object Array]",D4="[object Boolean]",A4="[object Date]",E4="[object Error]",vC="[object Function]",x4="[object GeneratorFunction]",C4="[object Map]",_4="[object Number]",mC="[object Object]",S4="[object RegExp]",F4="[object Set]",$4="[object String]",T4="[object Symbol]",k4="[object WeakMap]",L4="[object ArrayBuffer]",B4="[object DataView]",O4="[object Float32Array]",P4="[object Float64Array]",N4="[object Int8Array]",I4="[object Int16Array]",R4="[object Int32Array]",M4="[object Uint8Array]",z4="[object Uint8ClampedArray]",U4="[object Uint16Array]",H4="[object Uint32Array]",At={};At[gC]=At[w4]=At[L4]=At[B4]=At[D4]=At[A4]=At[O4]=At[P4]=At[N4]=At[I4]=At[R4]=At[C4]=At[_4]=At[mC]=At[S4]=At[F4]=At[$4]=At[T4]=At[M4]=At[z4]=At[U4]=At[H4]=!0;At[E4]=At[vC]=At[k4]=!1;function zc(e,t,n,i,o,a){var c,h=t&m4,d=t&y4,p=t&b4;if(n&&(c=o?n(e,i,o,a):n(e)),c!==void 0)return c;if(!d4(e))return e;var g=c4(e);if(g){if(c=a4(e),!h)return t4(e,c)}else{var y=o4(e),m=y==vC||y==x4;if(f4(e))return e4(e,h);if(y==mC||y==gC||m&&!o){if(c=d||m?{}:l4(e),!h)return d?r4(e,Jz(c,e)):n4(e,Zz(c,e))}else{if(!At[y])return o?e:{};c=u4(e,y,h)}}a||(a=new Qz);var A=a.get(e);if(A)return A;a.set(e,c),p4(e)?e.forEach(function(C){c.add(zc(C,t,n,C,e,a))}):h4(e)&&e.forEach(function(C,x){c.set(x,zc(C,t,n,x,e,a))});var $=p?d?s4:i4:d?v4:g4,L=g?void 0:$(e);return Xz(L||e,function(C,x){L&&(x=C,C=e[x]),Yz(c,x,zc(C,t,n,x,e,a))}),c}var q4=zc,j4=q4,V4=1,W4=4;function G4(e){return j4(e,V4|W4)}var K4=G4,Q4=kg,X4=nh;function Y4(e,t,n){(n!==void 0&&!X4(e[t],n)||n===void 0&&!(t in e))&&Q4(e,t,n)}var yC=Y4;function Z4(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 J4=Z4,e9=J4,t9=e9(),n9=t9,r9=uh,i9=Ys;function s9(e){return i9(e)&&r9(e)}var o9=s9,a9=ul,u9=Rg,l9=Ys,c9="[object Object]",f9=Function.prototype,h9=Object.prototype,bC=f9.toString,d9=h9.hasOwnProperty,p9=bC.call(Object);function g9(e){if(!l9(e)||a9(e)!=c9)return!1;var t=u9(e);if(t===null)return!0;var n=d9.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&bC.call(n)==p9}var v9=g9;function m9(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var wC=m9,y9=ll,b9=fl;function w9(e){return y9(e,b9(e))}var D9=w9,Xb=yC,A9=ff.exports,E9=dC,x9=uC,C9=pC,Yb=Lg,Zb=cl,_9=o9,S9=Nu.exports,F9=$g,$9=as,T9=v9,k9=sC,Jb=wC,L9=D9;function B9(e,t,n,i,o,a,c){var h=Jb(e,n),d=Jb(t,n),p=c.get(d);if(p){Xb(e,n,p);return}var g=a?a(h,d,n+"",e,t,c):void 0,y=g===void 0;if(y){var m=Zb(d),A=!m&&S9(d),$=!m&&!A&&k9(d);g=d,m||A||$?Zb(h)?g=h:_9(h)?g=x9(h):A?(y=!1,g=A9(d,!0)):$?(y=!1,g=E9(d,!0)):g=[]:T9(d)||Yb(d)?(g=h,Yb(h)?g=L9(h):(!$9(h)||F9(h))&&(g=C9(d))):y=!1}y&&(c.set(d,g),o(g,d,i,a,c),c.delete(d)),Xb(e,n,g)}var O9=B9,P9=eC,N9=yC,I9=n9,R9=O9,M9=as,z9=fl,U9=wC;function DC(e,t,n,i,o){e!==t&&I9(t,function(a,c){if(o||(o=new P9),M9(a))R9(e,t,c,n,DC,i,o);else{var h=i?i(U9(e,c),a,c+"",e,t,o):void 0;h===void 0&&(h=a),N9(e,c,h)}},z9)}var H9=DC;function q9(e){return e}var AC=q9;function j9(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 V9=j9,W9=V9,ew=Math.max;function G9(e,t,n){return t=ew(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=ew(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),W9(e,this,h)}}var K9=G9;function Q9(e){return function(){return e}}var X9=Q9,Y9=X9,tw=tC,Z9=AC,J9=tw?function(e,t){return tw(e,"toString",{configurable:!0,enumerable:!1,value:Y9(t),writable:!0})}:Z9,e7=J9,t7=800,n7=16,r7=Date.now;function i7(e){var t=0,n=0;return function(){var i=r7(),o=n7-(i-n);if(n=i,o>0){if(++t>=t7)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var s7=i7,o7=e7,a7=s7,u7=a7(o7),l7=u7,c7=AC,f7=K9,h7=l7;function d7(e,t){return h7(f7(e,t,c7),e+"")}var p7=d7,g7=nh,v7=uh,m7=iC,y7=as;function b7(e,t,n){if(!y7(n))return!1;var i=typeof t;return(i=="number"?v7(n)&&m7(t,n.length):i=="string"&&t in n)?g7(n[t],e):!1}var w7=b7,D7=p7,A7=w7;function E7(e){return D7(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,c=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,c&&A7(n[0],n[1],c)&&(a=o<3?void 0:a,o=1),t=Object(t);++i<o;){var h=n[i];h&&e(t,h,i,a)}return t})}var x7=E7,C7=H9,_7=x7,S7=_7(function(e,t,n){C7(e,t,n)}),F7=S7,xs={},rs={exports:{}};const $7="2.0.0",T7=256,k7=Number.MAX_SAFE_INTEGER||9007199254740991,L7=16;var lh={SEMVER_SPEC_VERSION:$7,MAX_LENGTH:T7,MAX_SAFE_INTEGER:k7,MAX_SAFE_COMPONENT_LENGTH:L7};const B7=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ch=B7;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=lh,i=ch;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*$")})(rs,rs.exports);const O7=["includePrerelease","loose","rtl"],P7=e=>e?typeof e!="object"?{loose:!0}:O7.filter(t=>e[t]).reduce((t,n)=>(t[n]=!0,t),{}):{};var fh=P7;const nw=/^[0-9]+$/,EC=(e,t)=>{const n=nw.test(e),i=nw.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},N7=(e,t)=>EC(t,e);var xC={compareIdentifiers:EC,rcompareIdentifiers:N7};const gc=ch,{MAX_LENGTH:rw,MAX_SAFE_INTEGER:vc}=lh,{re:iw,t:sw}=rs.exports,I7=fh,{compareIdentifiers:$o}=xC;class pr{constructor(t,n){if(n=I7(n),t instanceof pr){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>rw)throw new TypeError(`version is longer than ${rw} characters`);gc("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const i=t.trim().match(n.loose?iw[sw.LOOSE]:iw[sw.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>vc||this.major<0)throw new TypeError("Invalid major version");if(this.minor>vc||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>vc||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<vc)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(gc("SemVer.compare",this.version,this.options,t),!(t instanceof pr)){if(typeof t=="string"&&t===this.version)return 0;t=new pr(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof pr||(t=new pr(t,this.options)),$o(this.major,t.major)||$o(this.minor,t.minor)||$o(this.patch,t.patch)}comparePre(t){if(t instanceof pr||(t=new pr(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(gc("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 $o(i,o)}while(++n)}compareBuild(t){t instanceof pr||(t=new pr(t,this.options));let n=0;do{const i=this.build[n],o=t.build[n];if(gc("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 $o(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&&($o(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 Tn=pr;const{MAX_LENGTH:R7}=lh,{re:ow,t:aw}=rs.exports,uw=Tn,M7=fh,z7=(e,t)=>{if(t=M7(t),e instanceof uw)return e;if(typeof e!="string"||e.length>R7||!(t.loose?ow[aw.LOOSE]:ow[aw.FULL]).test(e))return null;try{return new uw(e,t)}catch{return null}};var Da=z7;const U7=Da,H7=(e,t)=>{const n=U7(e,t);return n?n.version:null};var q7=H7;const j7=Da,V7=(e,t)=>{const n=j7(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var W7=V7;const lw=Tn,G7=(e,t,n,i)=>{typeof n=="string"&&(i=n,n=void 0);try{return new lw(e instanceof lw?e.version:e,n).inc(t,i).version}catch{return null}};var K7=G7;const cw=Tn,Q7=(e,t,n)=>new cw(e,n).compare(new cw(t,n));var Cr=Q7;const X7=Cr,Y7=(e,t,n)=>X7(e,t,n)===0;var Ug=Y7;const fw=Da,Z7=Ug,J7=(e,t)=>{if(Z7(e,t))return null;{const n=fw(e),i=fw(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=Tn,nU=(e,t)=>new tU(e,t).major;var rU=nU;const iU=Tn,sU=(e,t)=>new iU(e,t).minor;var oU=sU;const aU=Tn,uU=(e,t)=>new aU(e,t).patch;var lU=uU;const cU=Da,fU=(e,t)=>{const n=cU(e,t);return n&&n.prerelease.length?n.prerelease:null};var hU=fU;const dU=Cr,pU=(e,t,n)=>dU(t,e,n);var gU=pU;const vU=Cr,mU=(e,t)=>vU(e,t,!0);var yU=mU;const hw=Tn,bU=(e,t,n)=>{const i=new hw(e,n),o=new hw(t,n);return i.compare(o)||i.compareBuild(o)};var Hg=bU;const wU=Hg,DU=(e,t)=>e.sort((n,i)=>wU(n,i,t));var AU=DU;const EU=Hg,xU=(e,t)=>e.sort((n,i)=>EU(i,n,t));var CU=xU;const _U=Cr,SU=(e,t,n)=>_U(e,t,n)>0;var hh=SU;const FU=Cr,$U=(e,t,n)=>FU(e,t,n)<0;var qg=$U;const TU=Cr,kU=(e,t,n)=>TU(e,t,n)!==0;var CC=kU;const LU=Cr,BU=(e,t,n)=>LU(e,t,n)>=0;var jg=BU;const OU=Cr,PU=(e,t,n)=>OU(e,t,n)<=0;var Vg=PU;const NU=Ug,IU=CC,RU=hh,MU=jg,zU=qg,UU=Vg,HU=(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 _C=HU;const qU=Tn,jU=Da,{re:mc,t:yc}=rs.exports,VU=(e,t)=>{if(e instanceof qU)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(mc[yc.COERCE]);else{let i;for(;(i=mc[yc.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||i.index+i[0].length!==n.index+n[0].length)&&(n=i),mc[yc.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;mc[yc.COERCERTL].lastIndex=-1}return n===null?null:jU(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var WU=VU,jd,dw;function GU(){return dw||(dw=1,jd=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),jd}var KU=lt;lt.Node=qs;lt.create=lt;function lt(e){var t=this;if(t instanceof lt||(t=new lt),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}lt.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};lt.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++}};lt.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++}};lt.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)XU(this,arguments[e]);return this.length};lt.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)YU(this,arguments[e]);return this.length};lt.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}};lt.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}};lt.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};lt.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};lt.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};lt.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};lt.prototype.map=function(e,t){t=t||this;for(var n=new lt,i=this.head;i!==null;)n.push(e.call(t,i.value,this)),i=i.next;return n};lt.prototype.mapReverse=function(e,t){t=t||this;for(var n=new lt,i=this.tail;i!==null;)n.push(e.call(t,i.value,this)),i=i.prev;return n};lt.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};lt.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};lt.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};lt.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};lt.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 lt;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};lt.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 lt;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};lt.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=QU(this,o,n[i]);return a};lt.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 QU(e,t,n){var i=t===e.head?new qs(n,null,t,e):new qs(n,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function XU(e,t){e.tail=new qs(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function YU(e,t){e.head=new qs(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function qs(e,t,n,i){if(!(this instanceof qs))return new qs(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()(lt)}catch{}const ZU=KU,ks=Symbol("max"),di=Symbol("length"),To=Symbol("lengthCalculator"),Au=Symbol("allowStale"),Os=Symbol("maxAge"),fi=Symbol("dispose"),pw=Symbol("noDisposeOnSet"),tn=Symbol("lruList"),gr=Symbol("cache"),SC=Symbol("updateAgeOnGet"),Vd=()=>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[ks]=t.max||1/0;const n=t.length||Vd;if(this[To]=typeof n!="function"?Vd:n,this[Au]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Os]=t.maxAge||0,this[fi]=t.dispose,this[pw]=t.noDisposeOnSet||!1,this[SC]=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[ks]=t||1/0,uu(this)}get max(){return this[ks]}set allowStale(t){this[Au]=!!t}get allowStale(){return this[Au]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Os]=t,uu(this)}get maxAge(){return this[Os]}set lengthCalculator(t){typeof t!="function"&&(t=Vd),t!==this[To]&&(this[To]=t,this[di]=0,this[tn].forEach(n=>{n.length=this[To](n.value,n.key),this[di]+=n.length})),uu(this)}get lengthCalculator(){return this[To]}get length(){return this[di]}get itemCount(){return this[tn].length}rforEach(t,n){n=n||this;for(let i=this[tn].tail;i!==null;){const o=i.prev;gw(this,t,i,n),i=o}}forEach(t,n){n=n||this;for(let i=this[tn].head;i!==null;){const o=i.next;gw(this,t,i,n),i=o}}keys(){return this[tn].toArray().map(t=>t.key)}values(){return this[tn].toArray().map(t=>t.value)}reset(){this[fi]&&this[tn]&&this[tn].length&&this[tn].forEach(t=>this[fi](t.key,t.value)),this[gr]=new Map,this[tn]=new ZU,this[di]=0}dump(){return this[tn].map(t=>hf(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[tn]}set(t,n,i){if(i=i||this[Os],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const o=i?Date.now():0,a=this[To](n,t);if(this[gr].has(t)){if(a>this[ks])return Wo(this,this[gr].get(t)),!1;const d=this[gr].get(t).value;return this[fi]&&(this[pw]||this[fi](t,d.value)),d.now=o,d.maxAge=i,d.value=n,this[di]+=a-d.length,d.length=a,this.get(t),uu(this),!0}const c=new eH(t,n,a,o,i);return c.length>this[ks]?(this[fi]&&this[fi](t,n),!1):(this[di]+=c.length,this[tn].unshift(c),this[gr].set(t,this[tn].head),uu(this),!0)}has(t){if(!this[gr].has(t))return!1;const n=this[gr].get(t).value;return!hf(this,n)}get(t){return Wd(this,t,!0)}peek(t){return Wd(this,t,!1)}pop(){const t=this[tn].tail;return t?(Wo(this,t),t.value):null}del(t){Wo(this,this[gr].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[gr].forEach((t,n)=>Wd(this,n,!1))}}const Wd=(e,t,n)=>{const i=e[gr].get(t);if(i){const o=i.value;if(hf(e,o)){if(Wo(e,i),!e[Au])return}else n&&(e[SC]&&(i.value.now=Date.now()),e[tn].unshiftNode(i));return o.value}},hf=(e,t)=>{if(!t||!t.maxAge&&!e[Os])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Os]&&n>e[Os]},uu=e=>{if(e[di]>e[ks])for(let t=e[tn].tail;e[di]>e[ks]&&t!==null;){const n=t.prev;Wo(e,t),t=n}},Wo=(e,t)=>{if(t){const n=t.value;e[fi]&&e[fi](n.key,n.value),e[di]-=n.length,e[gr].delete(n.key),e[tn].removeNode(t)}};class eH{constructor(t,n,i,o,a){this.key=t,this.value=n,this.length=i,this.now=o,this.maxAge=a||0}}const gw=(e,t,n,i)=>{let o=n.value;hf(e,o)&&(Wo(e,n),e[Au]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};var tH=JU,Gd,vw;function _r(){if(vw)return Gd;vw=1;class e{constructor(U,P){if(P=i(P),U instanceof e)return U.loose===!!P.loose&&U.includePrerelease===!!P.includePrerelease?U:new e(U.raw,P);if(U instanceof o)return this.raw=U.value,this.set=[[U]],this.format(),this;if(this.options=P,this.loose=!!P.loose,this.includePrerelease=!!P.includePrerelease,this.raw=U,this.set=U.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${U}`);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&&A(D[0])){this.set=[D];break}}}this.format()}format(){return this.range=this.set.map(U=>U.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(U){U=U.trim();const F=`parseRange:${Object.keys(this.options).join(",")}:${U}`,D=n.get(F);if(D)return D;const z=this.options.loose,j=z?h[d.HYPHENRANGELOOSE]:h[d.HYPHENRANGE];U=U.replace(j,ie(this.options.includePrerelease)),a("hyphen replace",U),U=U.replace(h[d.COMPARATORTRIM],p),a("comparator trim",U),U=U.replace(h[d.TILDETRIM],g),U=U.replace(h[d.CARETTRIM],y),U=U.split(/\s+/).join(" ");let Z=U.split(" ").map(Fe=>L(Fe,this.options)).join(" ").split(/\s+/).map(Fe=>W(Fe,this.options));z&&(Z=Z.filter(Fe=>(a("loose invalid filter",Fe,this.options),!!Fe.match(h[d.COMPARATORLOOSE])))),a("range list",Z);const ae=new Map,me=Z.map(Fe=>new o(Fe,this.options));for(const Fe of me){if(m(Fe))return[Fe];ae.set(Fe.value,Fe)}ae.size>1&&ae.has("")&&ae.delete("");const $e=[...ae.values()];return n.set(F,$e),$e}intersects(U,P){if(!(U instanceof e))throw new TypeError("a Range is required");return this.set.some(F=>$(F,P)&&U.set.some(D=>$(D,P)&&F.every(z=>D.every(j=>z.intersects(j,P)))))}test(U){if(!U)return!1;if(typeof U=="string")try{U=new c(U,this.options)}catch{return!1}for(let P=0;P<this.set.length;P++)if(ce(this.set[P],U,this.options))return!0;return!1}}Gd=e;const t=tH,n=new t({max:1e3}),i=fh,o=dh(),a=ch,c=Tn,{re:h,t:d,comparatorTrimReplace:p,tildeTrimReplace:g,caretTrimReplace:y}=rs.exports,m=Y=>Y.value==="<0.0.0-0",A=Y=>Y.value==="",$=(Y,U)=>{let P=!0;const F=Y.slice();let D=F.pop();for(;P&&F.length;)P=F.every(z=>D.intersects(z,U)),D=F.pop();return P},L=(Y,U)=>(a("comp",Y,U),Y=O(Y,U),a("caret",Y),Y=x(Y,U),a("tildes",Y),Y=k(Y,U),a("xrange",Y),Y=R(Y,U),a("stars",Y),Y),C=Y=>!Y||Y.toLowerCase()==="x"||Y==="*",x=(Y,U)=>Y.trim().split(/\s+/).map(P=>S(P,U)).join(" "),S=(Y,U)=>{const P=U.loose?h[d.TILDELOOSE]:h[d.TILDE];return Y.replace(P,(F,D,z,j,Z)=>{a("tilde",Y,F,D,z,j,Z);let ae;return C(D)?ae="":C(z)?ae=`>=${D}.0.0 <${+D+1}.0.0-0`:C(j)?ae=`>=${D}.${z}.0 <${D}.${+z+1}.0-0`:Z?(a("replaceTilde pr",Z),ae=`>=${D}.${z}.${j}-${Z} <${D}.${+z+1}.0-0`):ae=`>=${D}.${z}.${j} <${D}.${+z+1}.0-0`,a("tilde return",ae),ae})},O=(Y,U)=>Y.trim().split(/\s+/).map(P=>B(P,U)).join(" "),B=(Y,U)=>{a("caret",Y,U);const P=U.loose?h[d.CARETLOOSE]:h[d.CARET],F=U.includePrerelease?"-0":"";return Y.replace(P,(D,z,j,Z,ae)=>{a("caret",Y,D,z,j,Z,ae);let me;return C(z)?me="":C(j)?me=`>=${z}.0.0${F} <${+z+1}.0.0-0`:C(Z)?z==="0"?me=`>=${z}.${j}.0${F} <${z}.${+j+1}.0-0`:me=`>=${z}.${j}.0${F} <${+z+1}.0.0-0`:ae?(a("replaceCaret pr",ae),z==="0"?j==="0"?me=`>=${z}.${j}.${Z}-${ae} <${z}.${j}.${+Z+1}-0`:me=`>=${z}.${j}.${Z}-${ae} <${z}.${+j+1}.0-0`:me=`>=${z}.${j}.${Z}-${ae} <${+z+1}.0.0-0`):(a("no pr"),z==="0"?j==="0"?me=`>=${z}.${j}.${Z}${F} <${z}.${j}.${+Z+1}-0`:me=`>=${z}.${j}.${Z}${F} <${z}.${+j+1}.0-0`:me=`>=${z}.${j}.${Z} <${+z+1}.0.0-0`),a("caret return",me),me})},k=(Y,U)=>(a("replaceXRanges",Y,U),Y.split(/\s+/).map(P=>M(P,U)).join(" ")),M=(Y,U)=>{Y=Y.trim();const P=U.loose?h[d.XRANGELOOSE]:h[d.XRANGE];return Y.replace(P,(F,D,z,j,Z,ae)=>{a("xRange",Y,F,D,z,j,Z,ae);const me=C(z),$e=me||C(j),Fe=$e||C(Z),je=Fe;return D==="="&&je&&(D=""),ae=U.includePrerelease?"-0":"",me?D===">"||D==="<"?F="<0.0.0-0":F="*":D&&je?($e&&(j=0),Z=0,D===">"?(D=">=",$e?(z=+z+1,j=0,Z=0):(j=+j+1,Z=0)):D==="<="&&(D="<",$e?z=+z+1:j=+j+1),D==="<"&&(ae="-0"),F=`${D+z}.${j}.${Z}${ae}`):$e?F=`>=${z}.0.0${ae} <${+z+1}.0.0-0`:Fe&&(F=`>=${z}.${j}.0${ae} <${z}.${+j+1}.0-0`),a("xRange return",F),F})},R=(Y,U)=>(a("replaceStars",Y,U),Y.trim().replace(h[d.STAR],"")),W=(Y,U)=>(a("replaceGTE0",Y,U),Y.trim().replace(h[U.includePrerelease?d.GTE0PRE:d.GTE0],"")),ie=Y=>(U,P,F,D,z,j,Z,ae,me,$e,Fe,je,tt)=>(C(F)?P="":C(D)?P=`>=${F}.0.0${Y?"-0":""}`:C(z)?P=`>=${F}.${D}.0${Y?"-0":""}`:j?P=`>=${P}`:P=`>=${P}${Y?"-0":""}`,C(me)?ae="":C($e)?ae=`<${+me+1}.0.0-0`:C(Fe)?ae=`<${me}.${+$e+1}.0-0`:je?ae=`<=${me}.${$e}.${Fe}-${je}`:Y?ae=`<${me}.${$e}.${+Fe+1}-0`:ae=`<=${ae}`,`${P} ${ae}`.trim()),ce=(Y,U,P)=>{for(let F=0;F<Y.length;F++)if(!Y[F].test(U))return!1;if(U.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===U.major&&D.minor===U.minor&&D.patch===U.patch)return!0}return!1}return!0};return Gd}var Kd,mw;function dh(){if(mw)return Kd;mw=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===">"),A=(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==="<"),x=a(this.semver,">",g.semver,y)&&(this.operator==="<="||this.operator==="<")&&(g.operator===">="||g.operator===">");return m||A||$&&L||C||x}}Kd=t;const n=fh,{re:i,t:o}=rs.exports,a=_C,c=ch,h=Tn,d=_r();return Kd}const nH=_r(),rH=(e,t,n)=>{try{t=new nH(t,n)}catch{return!1}return t.test(e)};var ph=rH;const iH=_r(),sH=(e,t)=>new iH(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));var oH=sH;const aH=Tn,uH=_r(),lH=(e,t,n)=>{let i=null,o=null,a=null;try{a=new uH(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new aH(i,n))}),i};var cH=lH;const fH=Tn,hH=_r(),dH=(e,t,n)=>{let i=null,o=null,a=null;try{a=new hH(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new fH(i,n))}),i};var pH=dH;const Qd=Tn,gH=_r(),yw=hh,vH=(e,t)=>{e=new gH(e,t);let n=new Qd("0.0.0");if(e.test(n)||(n=new Qd("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 Qd(c.semver.version);switch(c.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!a||yw(h,a))&&(a=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),a&&(!n||yw(n,a))&&(n=a)}return n&&e.test(n)?n:null};var mH=vH;const yH=_r(),bH=(e,t)=>{try{return new yH(e,t).range||"*"}catch{return null}};var wH=bH;const DH=Tn,FC=dh(),{ANY:AH}=FC,EH=_r(),xH=ph,bw=hh,ww=qg,CH=Vg,_H=jg,SH=(e,t,n,i)=>{e=new DH(e,i),t=new EH(t,i);let o,a,c,h,d;switch(n){case">":o=bw,a=CH,c=ww,h=">",d=">=";break;case"<":o=ww,a=_H,c=bw,h="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xH(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(A=>{A.semver===AH&&(A=new FC(">=0.0.0")),y=y||A,m=m||A,o(A.semver,y.semver,i)?y=A:c(A.semver,m.semver,i)&&(m=A)}),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 Wg=SH;const FH=Wg,$H=(e,t,n)=>FH(e,t,">",n);var TH=$H;const kH=Wg,LH=(e,t,n)=>kH(e,t,"<",n);var BH=LH;const Dw=_r(),OH=(e,t,n)=>(e=new Dw(e,n),t=new Dw(t,n),e.intersects(t));var PH=OH;const NH=ph,IH=Cr;var RH=(e,t,n)=>{const i=[];let o=null,a=null;const c=e.sort((g,y)=>IH(g,y,n));for(const g of c)NH(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 Aw=_r(),Uc=dh(),{ANY:Xd}=Uc,lu=ph,Gg=Cr,MH=(e,t,n={})=>{if(e===t)return!0;e=new Aw(e,n),t=new Aw(t,n);let i=!1;e:for(const o of e.set){for(const a of t.set){const c=zH(o,a,n);if(i=i||c!==null,c)continue e}if(i)return!1}return!0},zH=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Xd){if(t.length===1&&t[0].semver===Xd)return!0;n.includePrerelease?e=[new Uc(">=0.0.0-0")]:e=[new Uc(">=0.0.0")]}if(t.length===1&&t[0].semver===Xd){if(n.includePrerelease)return!0;t=[new Uc(">=0.0.0")]}const i=new Set;let o,a;for(const A of e)A.operator===">"||A.operator===">="?o=Ew(o,A,n):A.operator==="<"||A.operator==="<="?a=xw(a,A,n):i.add(A.semver);if(i.size>1)return null;let c;if(o&&a){if(c=Gg(o.semver,a.semver,n),c>0)return null;if(c===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const A of i){if(o&&!lu(A,String(o),n)||a&&!lu(A,String(a),n))return null;for(const $ of t)if(!lu(A,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 A of t){if(g=g||A.operator===">"||A.operator===">=",p=p||A.operator==="<"||A.operator==="<=",o){if(m&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===m.major&&A.semver.minor===m.minor&&A.semver.patch===m.patch&&(m=!1),A.operator===">"||A.operator===">="){if(h=Ew(o,A,n),h===A&&h!==o)return!1}else if(o.operator===">="&&!lu(o.semver,String(A),n))return!1}if(a){if(y&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===y.major&&A.semver.minor===y.minor&&A.semver.patch===y.patch&&(y=!1),A.operator==="<"||A.operator==="<="){if(d=xw(a,A,n),d===A&&d!==a)return!1}else if(a.operator==="<="&&!lu(a.semver,String(A),n))return!1}if(!A.operator&&(a||o)&&c!==0)return!1}return!(o&&p&&!a&&c!==0||a&&g&&!o&&c!==0||m||y)},Ew=(e,t,n)=>{if(!e)return t;const i=Gg(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},xw=(e,t,n)=>{if(!e)return t;const i=Gg(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var UH=MH;const Yd=rs.exports,HH=lh,qH=Tn,Cw=xC,jH=Da,VH=q7,WH=W7,GH=K7,KH=eU,QH=rU,XH=oU,YH=lU,ZH=hU,JH=Cr,eq=gU,tq=yU,nq=Hg,rq=AU,iq=CU,sq=hh,oq=qg,aq=Ug,uq=CC,lq=jg,cq=Vg,fq=_C,hq=WU,dq=dh(),pq=_r(),gq=ph,vq=oH,mq=cH,yq=pH,bq=mH,wq=wH,Dq=Wg,Aq=TH,Eq=BH,xq=PH,Cq=RH,_q=UH;var Sq={parse:jH,valid:VH,clean:WH,inc:GH,diff:KH,major:QH,minor:XH,patch:YH,prerelease:ZH,compare:JH,rcompare:eq,compareLoose:tq,compareBuild:nq,sort:rq,rsort:iq,gt:sq,lt:oq,eq:aq,neq:uq,gte:lq,lte:cq,cmp:fq,coerce:hq,Comparator:dq,Range:pq,satisfies:gq,toComparators:vq,maxSatisfying:mq,minSatisfying:yq,minVersion:bq,validRange:wq,outside:Dq,gtr:Aq,ltr:Eq,intersects:xq,simplifyRange:Cq,subset:_q,SemVer:qH,re:Yd.re,src:Yd.src,tokens:Yd.t,SEMVER_SPEC_VERSION:HH.SEMVER_SPEC_VERSION,compareIdentifiers:Cw.compareIdentifiers,rcompareIdentifiers:Cw.rcompareIdentifiers};const Fq="concordance",$q="5.0.4",Tq="Compare, format, diff and serialize any JavaScript value",kq="index.js",Lq=["lib","index.js"],Bq={node:">=10.18.0 <11 || >=12.14.0 <13 || >=14"},Oq={test:"as-i-preach && c8 ava"},Pq={type:"git",url:"git+https://github.com/concordancejs/concordance.git"},Nq="Mark Wubben (https://novemberborn.net/)",Iq="ISC",Rq={url:"https://github.com/concordancejs/concordance/issues"},Mq="https://github.com/concordancejs/concordance#readme",zq={"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"},Uq={"@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"},Hq={name:Fq,version:$q,description:Tq,main:kq,files:Lq,engines:Bq,scripts:Oq,repository:Pq,author:Nq,license:Iq,bugs:Rq,homepage:Mq,dependencies:zq,devDependencies:Uq};var Si={},Aa={},qq=function(e){return(""+e).replace(/["'\\\n\r\u2028\u2029]/g,function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case`
|
|
6
|
+
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})},Kg={};const $C=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]));Kg.isWellKnown=e=>$C.has(e);Kg.getLabel=e=>$C.get(e);const TC=qq,_w=Kg,kC=bt,Zd=zt,jq=Zt,df=kC.DEEP_EQUAL,Go=kC.UNEQUAL;function Vq(e){let t=null;const n=Symbol.keyFor(e);return n!==void 0?t=`Symbol.for(${TC(n)})`:_w.isWellKnown(e)&&(t=_w.getLabel(e)),new vh({stringCompare:t,value:e})}Aa.describe=Vq;function Wq(e){const t=e[0],n=e[1]||e[0];return new Gq({string:n,stringCompare:t,value:null})}Aa.deserialize=Wq;const gh=Symbol("SymbolValue");Aa.tag=gh;class vh{constructor(t){this.stringCompare=t.stringCompare,this.value=t.value}compare(t){return t.tag!==gh?Go:this.stringCompare!==null?this.stringCompare===t.stringCompare?df:Go:this.value===t.value?df:Go}formatString(){return this.stringCompare!==null?this.stringCompare:TC(this.value.toString())}formatDeep(t){return jq.single(Zd.wrap(t.symbol,this.formatString()))}formatAsKey(t){return Zd.wrap(t.property.keyBracket,Zd.wrap(t.symbol,this.formatString()))}serialize(){const t=this.formatString();return this.stringCompare===t?[this.stringCompare]:[this.stringCompare,t]}}Object.defineProperty(vh.prototype,"isPrimitive",{value:!0});Object.defineProperty(vh.prototype,"tag",{value:gh});class Gq extends vh{constructor(t){super(t),this.string=t.string}compare(t){return t.tag!==gh?Go:this.stringCompare!==null?this.stringCompare===t.stringCompare?df:Go:this.string===t.formatString()?df:Go}formatString(){return this.string}}const Qg=bt,Kq=zt,Sw=Aa.tag,Hc=Ft,Qq=Qg.AMBIGUOUS,pf=Qg.DEEP_EQUAL,la=Qg.UNEQUAL;function Xq(e,t){return new Yg(e,t)}Si.describeComplex=Xq;function Yq(e,t){const n=t();return new Yg(e,n)}Si.deserializeComplex=Yq;function Zq(e,t){return new Zg(e,t)}Si.describePrimitive=Zq;function Jq(e){const t=e[0],n=e[1];return new Zg(t,n)}Si.deserializePrimitive=Jq;const LC=Symbol("ComplexProperty");Si.complexTag=LC;const BC=Symbol("PrimitiveProperty");Si.primitiveTag=BC;class Xg{constructor(t){this.key=t}compareKeys(t){const n=this.key.compare(t.key);return n===la&&this.key.tag===Sw&&t.key.tag===Sw?Qq:n}prepareDiff(t,n,i,o,a){if(a(this.value)||a(t.value))return{compareResult:la};const c=Hc.fork(i),h=t;do{if(t===null||t.isProperty!==!0)return{actualIsExtraneous:!0,rhsRecursor:Hc.unshift(c.recursor,h)};if(this.key.compare(t.key)===pf)return t===h?null:{expectedIsMissing:!0,lhsRecursor:Hc.unshift(n,this),rhsRecursor:c.recursor};t=c.shared()}while(!0)}}Object.defineProperty(Xg.prototype,"isProperty",{value:!0});class Yg extends Xg{constructor(t,n){super(t),this.value=n}createRecursor(){return Hc.singleValue(this.value)}compare(t){if(t.isProperty!==!0)return la;const n=this.compareKeys(t);return n!==pf?n:this.tag===t.tag?this.value.compare(t.value):la}formatShallow(t,n){const i=t.property.increaseValueIndent===!0;return new Kq.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(Yg.prototype,"tag",{value:LC});class Zg extends Xg{constructor(t,n){super(t),this.value=n}compare(t){if(t.isProperty!==!0)return la;const n=this.compareKeys(t);return n!==pf?n:this.tag!==t.tag?la: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)!==pf)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(Zg.prototype,"tag",{value:BC});var Fw;function Jg(){if(Fw)return xs;Fw=1;const e=Sq,t=Hq,n=Yt,i=bt,o=zt,a=Zt,c=_i,h=Si,d=Qs,p=Ft,g=mh(),y=1,m=t.version,A=new Map,$=new Map;class L extends Error{constructor(D,z){super(D),this.name="PluginError",this.plugin=z}}class C extends TypeError{constructor(D,z){super(D),this.name="PluginTypeError",this.plugin=z}}class x 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,z){super(`Could not add descriptor: tag ${String(D)} has already been registered`,z),this.name="DuplicateDescriptorTagError",this.tag=D}}class B extends L{constructor(D,z){const j=typeof D=="number"?`0x${D.toString(16).toUpperCase()}`:String(D);super(`Could not add descriptor: id ${j} has already been registered`,z),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 x(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}),R=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 W(F,D){return g.addModifier(F,D),F}function ie(F){k(F);const D=F.name;if($.has(D))return $.get(D);const z=new Map,j=new Map,Z=($e,Fe,je)=>{if(z.has($e))throw new B($e,F);if(A.has(Fe)||j.has(Fe))throw new O(Fe,F);z.set($e,je),j.set(Fe,$e)},ae=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:R,mapRecursor:p.map,modifyTheme:W,wrapFromTheme:o.wrap}),me={id2deserialize:z,serializerVersion:F.serializerVersion,name:D,tag2id:j,theme:F.theme||{},tryDescribeValue:ae};$.set(D,me);for(const $e of j.keys())A.set($e,me);return me}xs.add=ie;function ce(F){return F.map(D=>{const z=ie(D);return{id2deserialize:z.id2deserialize,name:z.name,serializerVersion:z.serializerVersion}})}xs.getDeserializers=ce;function Y(F){return F.map(D=>{const z=ie(D);return{name:z.name,theme:z.theme}})}xs.getThemes=Y;function U(F){return F.map(D=>ie(D).tryDescribeValue)}xs.getTryDescribeValues=U;function P(F){if(!A.has(F))return null;const D=A.get(F);return{id:D.tag2id.get(F),name:D.name,serialization:{serializerVersion:D.serializerVersion}}}return xs.resolveDescriptorRef=P,xs}var $w;function mh(){if($w)return Fo;$w=1;const e=K4,t=F7,n=Jg();function i(C){const x=[C];for(;x.length>0;){const S=x.shift();Object.freeze(S);for(const O of Object.keys(S)){const B=S[O];B!==null&&typeof B=="object"&&x.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 x=[],S=[];for(const k of n.getThemes(C))a.has(k.name)||a.set(k.name,a.count++),x.push(a.get(k.name)),S.push(k.theme);const O=x.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 x=h(C.plugins);if(!C.theme)return x?x.theme:o;const S=d.get(C.theme)||{theme:null,withPlugins:new Map};if(d.has(C.theme)||d.set(C.theme,S),x){if(S.withPlugins.has(x.ref))return S.withPlugins.get(x.ref);const O=i(t(e(x.theme),C.theme));return S.withPlugins.set(x.ref,O),O}return S.theme||(S.theme=i(t(e(o),C.theme))),S.theme}Fo.normalize=p;const g=new WeakMap;function y(C,x){g.has(C)?g.get(C).add(x):g.set(C,new Set([x]))}Fo.addModifier=y;const m=new WeakMap,A=new WeakMap;function $(C,x){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),A.set(k,x),k},x):x}Fo.applyModifiers=$;function L(C,x){return $(C,A.get(x)||x)}return Fo.applyModifiersToOriginal=L,Fo}const ev=bt,Tw=Zt,bc=Ft,wc=mh(),cu=ev.DEEP_EQUAL,ai=ev.UNEQUAL,kw=ev.SHALLOW_EQUAL;function ej(e,t){const n=e.isPrimitive===!0,i=t.isPrimitive===!0;return new yh(e,t,n,i)}al.describe=ej;function tj(e,t){const n=e[0],i=e[1],o=t(),a=t();return new yh(o,a,n,i)}al.deserialize=tj;const OC=Symbol("MapEntry");al.tag=OC;function Jd(e,t,n){const i=Tw.buffer(),o=Tw.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 yh{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 ai;if(!this.keyIsPrimitive)return kw;const n=this.key.compare(t.key);return n!==cu?n:this.valueIsPrimitive?this.value.compare(t.value):kw}formatDeep(t,n){if(!this.keyIsPrimitive||typeof this.value.formatDeep!="function")return null;const i=this.value.formatDeep(wc.applyModifiersToOriginal(this.value,t),n);if(i===null)return null;const o=this.key.formatDeep(wc.applyModifiersToOriginal(this.key,t),n);return Jd(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 Jd(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)!==cu)return null;const a=this.value.diffDeep(t.value,wc.applyModifiersToOriginal(this.value,n),i,o);if(a===null)return null;const c=this.key.formatDeep(wc.applyModifiersToOriginal(this.key,n),i,"");return Jd(n,c,[a])}prepareDiff(t,n,i,o,a){if(a(this.value)||a(t.value))return{compareResult:ai};const c=this.compare(t),h=this.tag===t.tag&&this.key.compare(t.key)===cu;if(c===cu||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)!==ai:y=o(this.key,t.key)!==ai,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)===cu),$=d.shared()}else{let $=this;for(;!m&&$!==null&&this.tag===$.tag;)$.keyIsPrimitive||(m=o($.key,g.key)!==ai),$=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 A=!1;return!this.keyIsPrimitive&&!g.keyIsPrimitive&&(this.valueIsPrimitive||g.valueIsPrimitive?A=this.value.compare(g.value)!==ai:A=o(this.value,g.value)!==ai),{mustRecurse:A,isUnequal:!A,lhsRecursor:d.recursor,rhsRecursor:p.recursor}}serialize(){return[this.keyIsPrimitive,this.valueIsPrimitive]}}Object.defineProperty(yh.prototype,"isMapEntry",{value:!0});Object.defineProperty(yh.prototype,"tag",{value:OC});var hl={};const PC=bt,nj=zt,rj=Zt,ij=PC.DEEP_EQUAL,sj=PC.UNEQUAL;function NC(e){return new nv(e)}hl.describe=NC;hl.deserialize=NC;const tv=Symbol("BigIntValue");hl.tag=tv;class nv{constructor(t){this.value=t}compare(t){return t.tag===tv&&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(nv.prototype,"isPrimitive",{value:!0});Object.defineProperty(nv.prototype,"tag",{value:tv});var dl={};const IC=bt,oj=zt,aj=Zt,uj=IC.DEEP_EQUAL,lj=IC.UNEQUAL;function RC(e){return new rv(e)}dl.describe=RC;dl.deserialize=RC;const MC=Symbol("BooleanValue");dl.tag=MC;class rv{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(rv.prototype,"isPrimitive",{value:!0});Object.defineProperty(rv.prototype,"tag",{value:MC});var pl={};const zC=bt,cj=zt,fj=Zt,hj=zC.DEEP_EQUAL,dj=zC.UNEQUAL;function UC(){return new sv}pl.describe=UC;pl.deserialize=UC;const iv=Symbol("NullValue");pl.tag=iv;class sv{compare(t){return t.tag===iv?hj:dj}formatDeep(t){return fj.single(cj.wrap(t.null,"null"))}}Object.defineProperty(sv.prototype,"isPrimitive",{value:!0});Object.defineProperty(sv.prototype,"tag",{value:iv});var gl={};const HC=bt,pj=zt,gj=Zt,vj=HC.DEEP_EQUAL,mj=HC.UNEQUAL;function qC(e){return new av(e)}gl.describe=qC;gl.deserialize=qC;const ov=Symbol("NumberValue");gl.tag=ov;class av{constructor(t){this.value=t}compare(t){return t.tag===ov&&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(av.prototype,"isPrimitive",{value:!0});Object.defineProperty(av.prototype,"tag",{value:ov});var vl={};const jC=bt,yj=zt,bj=Zt,wj=jC.DEEP_EQUAL,Dj=jC.UNEQUAL;function VC(){return new lv}vl.describe=VC;vl.deserialize=VC;const uv=Symbol("UndefinedValue");vl.tag=uv;class lv{compare(t){return t.tag===uv?wj:Dj}formatDeep(t){return bj.single(yj.wrap(t.undefined,"undefined"))}}Object.defineProperty(lv.prototype,"isPrimitive",{value:!0});Object.defineProperty(lv.prototype,"tag",{value:uv});const Aj=ZO,Ej=ga,xj=Xu,Cj=Yu,_j=Zu,Sj=Ju,Fj=el,Lw=tl,$j=nl,Tj=rl,kj=Yt,Lj=il,Bj=sl,Oj=ol,ui=Zn,Pj=D8,Nj=Rp.exports,Bw=_i,Ij=al,Ow=Si,Rj=Jg(),Mj=hl,zj=dl,Uj=pl,Hj=gl,qj=Qs,jj=Aa,Vj=vl,Pw=new Map([["Arguments",Ej.describe],["ArrayBuffer",xj.describe],["DataView",_j.describe],["Date",Sj.describe],["Error",Fj.describe],["Float32Array",ui.describe],["Float64Array",ui.describe],["Function",Lw.describe],["GeneratorFunction",Lw.describe],["global",$j.describe],["Int16Array",ui.describe],["Int32Array",ui.describe],["Int8Array",ui.describe],["Map",Tj.describe],["Promise",Lj.describe],["RegExp",Bj.describe],["Set",Oj.describe],["Uint16Array",ui.describe],["Uint32Array",ui.describe],["Uint8Array",ui.describe],["Uint8ClampedArray",ui.describe]]);function qc(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"?Hj.describe(e):t==="string"?qj.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 qc(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&&(Pw.has(h)?y=Pw.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 Qj=(e,t)=>t.isPrimitive===!0?Bw.describePrimitive(e,t):Bw.describeComplex(e,t),Xj=(e,t)=>Ij.describe(e,t);function Yj(e,t){const n=qc(e);if(n!==null)return n;const i=new Aj,o=Gj(t&&t.plugins),a=d=>Kj(d,i,o,c,Qj,Xj,h),c=d=>{const p=qc(d);return p!==null?p:a(d)},h=(d,p)=>{const g=qc(d);return p.isPrimitive===!0?Ow.describePrimitive(g,p):Ow.describeComplex(g,p)};return a(e)}var bh=Yj;const Zj=ga.tag,WC=bt,Jj=WC.AMBIGUOUS,eV=WC.SHALLOW_EQUAL;function tV(e,t,n){return e===eV?!0:e!==Jj?!1:t.tag===Zj||t.isProperty===!0}var GC=tV,wh={};const cv=bt,nV=Ft,Nw=cv.DEEP_EQUAL,rV=cv.SHALLOW_EQUAL,Iw=cv.UNEQUAL;class fv{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 Iw;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)===Nw){a=!1,i.add(c.key),n.push(c);break}if(a)return Iw}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)===Nw){c=!1,o.add(h.key),i.push(a);break}c&&n.push(a)}return t.ordered=i.concat(n),{mustRecurse:!0}}}Object.defineProperty(fv.prototype,"isSymbolPropertiesComparable",{value:!0});wh.Comparable=fv;class KC{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 fv(this.properties))}}Object.defineProperty(KC.prototype,"isSymbolPropertiesCollector",{value:!0});wh.Collector=KC;const Rw=q0,hv=bt,Mw=bh,zw=Ft,iV=GC,Uw=wh,sV=hv.AMBIGUOUS,Hw=hv.DEEP_EQUAL,ep=hv.UNEQUAL;function qw(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 QC(e,t){const n=new Rw,i=new Rw,o=[],a=[];let c=-1;do{let h;if(n.has(e)?h=n.get(e)===i.get(t)?Hw:ep:i.has(t)?h=ep:h=e.compare(t),h===ep)return!1;if(h!==Hw){if(!iV(h,e))return!1;h===sV&&e.isProperty===!0&&(e=new Uw.Collector(e,o[c].recursor),t=new Uw.Collector(t,a[c].recursor),o[c].recursor=zw.unshift(o[c].recursor,e.collectAll()),a[c].recursor=zw.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}H0.compareDescriptors=QC;function oV(e,t,n){if(Object.is(e,t))return{pass:!0};if(qw(e)||qw(t))return{pass:!1};e=Mw(e,n),t=Mw(t,n);const i=QC(e,t);return{actual:e,expected:t,pass:i}}H0.compare=oV;var dv={};class gf{constructor(t,n){this.level=t,this.step=n,this.value=n.repeat(t)}increase(){return new gf(this.level+1,this.step)}decrease(){return new gf(this.level-1,this.step)}toString(){return this.value}}var XC=gf;const jw=q0,aV=XC,Dh=bt,Vw=bh,nr=Zt,Ro=Ft,Vp=GC,vf=wh,Cs=mh(),Wp=Dh.AMBIGUOUS,Eu=Dh.DEEP_EQUAL,Ls=Dh.UNEQUAL,uV=Dh.SHALLOW_EQUAL,Ww=Symbol("NOOP"),tp=()=>!0;function lV(e,t){let n=e.compare(t);if(n===Eu)return Eu;if(n===Ls||!Vp(n,e))return Ls;let i=!1,o=e.createRecursor(),a=t.createRecursor();do{if(e=o(),t=a(),e===null&&t===null)return uV;if(e===null||t===null||(n=e.compare(t),n===Ls))return Ls;if(n===Wp&&e.isProperty===!0&&!i&&Vp(n,e)){i=!0;const c=new vf.Collector(e,o),h=new vf.Collector(t,a);o=Ro.sequence(c.createRecursor(),Ro.unshift(o,c.collectAll())),a=Ro.sequence(h.createRecursor(),Ro.unshift(a,h.collectAll()))}}while(!0)}function YC(e,t,n){const i=Cs.normalize(n),o=n?n.invert===!0:!1,a=new jw,c=new jw,h=n&&n.maxDepth||0;let d=new aV(0," ");const p=[],g=[];let y=-1;const m=nr.buffer(),A=[];let $=-1;const L=x=>a.has(x)||c.has(x),C=(x,S,O,B=0)=>{if($>=0&&!A[$].shouldFormat(S))return;if(O.has(S)){A[$].formatter.append(x.single(i.circular));return}const k=[];let M=-1;do{if(O.has(S))k[M].formatter.append(x.single(i.circular),S);else{let R=!1;if(typeof S.formatDeep=="function"){let W=S.formatDeep(Cs.applyModifiers(S,i),d);W!==null&&(R=!0,M===-1?(W=x.setDefaultGutter(W),$===-1?m.append(W):A[$].formatter.append(W,S)):k[M].formatter.append(W,S))}if(!R&&typeof S.formatShallow=="function"){const W=S.formatShallow(Cs.applyModifiers(S,i),d),ie=S.createRecursor();if(W.increaseIndent&&h>0&&d.level===h+B){let Y=!(ie()===null)&&typeof W.maxDepth=="function"?W.maxDepth():W.finalize();M===-1?(Y=x.setDefaultGutter(Y),A[$].formatter.append(Y,S)):k[M].formatter.append(Y,S)}else k.push({formatter:W,recursor:ie,decreaseIndent:W.increaseIndent,shouldFormat:W.shouldFormat||tp,subject:S}),M++,W.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 R=k.pop();M--,R.decreaseIndent&&(d=d.decrease()),O.delete(R.subject);let W=R.formatter.finalize();M===-1?(W=x.setDefaultGutter(W),$===-1?m.append(W):A[$].formatter.append(W,R.subject)):k[M].formatter.append(W,R.subject)}}while(M>=0)};do{let x=Ww;a.has(e)?x=a.get(e)===c.get(t)?Eu:Ls:c.has(t)&&(x=Ls);let S=!1;if(e.isProperty===!0&&(x=e.compare(t),x===Wp)){const k=p[y].subject;S=k.isSymbolPropertiesCollector!==!0&&k.isSymbolPropertiesComparable!==!0}let O=!1,B=!1;if(x!==Eu&&!S&&typeof e.prepareDiff=="function"){const k=y===-1?null:p[y].recursor,M=y===-1?null:g[y].recursor,R=e.prepareDiff(t,k,M,lV,L);if(R!==null){if(y>=0&&(typeof R.lhsRecursor=="function"&&(p[y].recursor=R.lhsRecursor),typeof R.rhsRecursor=="function"&&(g[y].recursor=R.rhsRecursor)),R.compareResult&&(x=R.compareResult),R.mustRecurse===!0)B=!0;else if(R.actualIsExtraneous===!0)C(nr.actual,e,a),O=!0;else if(R.multipleAreExtraneous===!0){for(const W of R.descriptors)C(nr.actual,W,a);O=!0}else if(R.expectedIsMissing===!0)C(nr.expected,t,c),O=!0;else if(R.multipleAreMissing===!0){for(const W of R.descriptors)C(nr.expected,W,c);O=!0}else if(R.isUnequal===!0)C(nr.actual,e,a),C(nr.expected,t,c),O=!0;else if(!R.compareResult)throw new Error("Illegal result of prepareDiff()")}}if(!O)if(x===Ww&&(x=e.compare(t)),B||(B=Vp(x,e)),x===Eu)C(nr,e,a);else if(B){if(x===Wp&&e.isProperty===!0&&(e=new vf.Collector(e,p[y].recursor),t=new vf.Collector(t,g[y].recursor),p[y].recursor=Ro.unshift(p[y].recursor,e.collectAll()),g[y].recursor=Ro.unshift(g[y].recursor,t.collectAll())),typeof e.diffShallow=="function"){const k=e.diffShallow(t,Cs.applyModifiers(e,i),d);A.push({formatter:k,origin:e,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||tp}),$++,k.increaseIndent&&(d=d.increase())}else if(typeof e.formatShallow=="function"){const k=e.formatShallow(Cs.applyModifiers(e,i),d);A.push({formatter:k,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||tp,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,Cs.applyModifiers(e,i),d,o):null;k===null?(C(nr.actual,e,a),C(nr.expected,t,c)):$===-1?m.append(k):A[$].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 R=A.pop();$--,R.decreaseIndent&&(d=d.decrease());let W=R.formatter.finalize();if(R.exceedsMaxDepth&&!W.hasGutter){const ie=k.subject,ce=ie.formatShallow(Cs.applyModifiers(ie,i),d);W=!(ie.createRecursor()()===null)&&typeof ce.maxDepth=="function"?ce.maxDepth():ce.finalize()}$===-1?m.append(W):A[$].formatter.append(W,R.subject)}}else{let k,M,R,W;e===null?(k=nr.expected,M=c,R=g,W=t):(k=nr.actual,M=a,R=p,W=e);do C(k,W,M,d.level),W=R[y].recursor();while(W!==null)}}while(y>=0);return m.toString({diff:!0,invert:o,theme:i})}dv.diffDescriptors=YC;function cV(e,t,n){return YC(Vw(e,n),Vw(t,n),n)}dv.diff=cV;var pv={};const fV=q0,hV=XC,dV=bh,Gw=Zt,Dc=mh(),pV=()=>!0,Kw=new hV(0," ");function ZC(e,t){const n=Dc.normalize(t);if(e.isPrimitive===!0)return e.formatDeep(Dc.applyModifiers(e,n),Kw).toString({diff:!1});const i=new fV,o=t&&t.maxDepth||0;let a=Kw;const c=Gw.buffer(),h=[];let d=-1;do{if(i.has(e))h[d].formatter.append(Gw.single(n.circular),e);else{let p=!1;if(typeof e.formatDeep=="function"){const g=e.formatDeep(Dc.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(Dc.applyModifiers(e,n),a),y=e.createRecursor();if(g.increaseIndent&&o>0&&a.level===o){const A=!(y()===null)&&typeof g.maxDepth=="function"?g.maxDepth():g.finalize();h[d].formatter.append(A,e)}else h.push({formatter:g,recursor:y,decreaseIndent:g.increaseIndent,shouldFormat:g.shouldFormat||pV,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})}pv.formatDescriptor=ZC;function gV(e,t){return ZC(dV(e,t),t)}pv.format=gV;var gv={},JC={exports:{}};(function(e){(function(t){function n(k,M){var R=(k&65535)+(M&65535),W=(k>>16)+(M>>16)+(R>>16);return W<<16|R&65535}function i(k,M){return k<<M|k>>>32-M}function o(k,M,R,W,ie,ce){return n(i(n(n(M,k),n(W,ce)),ie),R)}function a(k,M,R,W,ie,ce,Y){return o(M&R|~M&W,k,M,ie,ce,Y)}function c(k,M,R,W,ie,ce,Y){return o(M&W|R&~W,k,M,ie,ce,Y)}function h(k,M,R,W,ie,ce,Y){return o(M^R^W,k,M,ie,ce,Y)}function d(k,M,R,W,ie,ce,Y){return o(R^(M|~W),k,M,ie,ce,Y)}function p(k,M){k[M>>5]|=128<<M%32,k[(M+64>>>9<<4)+14]=M;var R,W,ie,ce,Y,U=1732584193,P=-271733879,F=-1732584194,D=271733878;for(R=0;R<k.length;R+=16)W=U,ie=P,ce=F,Y=D,U=a(U,P,F,D,k[R],7,-680876936),D=a(D,U,P,F,k[R+1],12,-389564586),F=a(F,D,U,P,k[R+2],17,606105819),P=a(P,F,D,U,k[R+3],22,-1044525330),U=a(U,P,F,D,k[R+4],7,-176418897),D=a(D,U,P,F,k[R+5],12,1200080426),F=a(F,D,U,P,k[R+6],17,-1473231341),P=a(P,F,D,U,k[R+7],22,-45705983),U=a(U,P,F,D,k[R+8],7,1770035416),D=a(D,U,P,F,k[R+9],12,-1958414417),F=a(F,D,U,P,k[R+10],17,-42063),P=a(P,F,D,U,k[R+11],22,-1990404162),U=a(U,P,F,D,k[R+12],7,1804603682),D=a(D,U,P,F,k[R+13],12,-40341101),F=a(F,D,U,P,k[R+14],17,-1502002290),P=a(P,F,D,U,k[R+15],22,1236535329),U=c(U,P,F,D,k[R+1],5,-165796510),D=c(D,U,P,F,k[R+6],9,-1069501632),F=c(F,D,U,P,k[R+11],14,643717713),P=c(P,F,D,U,k[R],20,-373897302),U=c(U,P,F,D,k[R+5],5,-701558691),D=c(D,U,P,F,k[R+10],9,38016083),F=c(F,D,U,P,k[R+15],14,-660478335),P=c(P,F,D,U,k[R+4],20,-405537848),U=c(U,P,F,D,k[R+9],5,568446438),D=c(D,U,P,F,k[R+14],9,-1019803690),F=c(F,D,U,P,k[R+3],14,-187363961),P=c(P,F,D,U,k[R+8],20,1163531501),U=c(U,P,F,D,k[R+13],5,-1444681467),D=c(D,U,P,F,k[R+2],9,-51403784),F=c(F,D,U,P,k[R+7],14,1735328473),P=c(P,F,D,U,k[R+12],20,-1926607734),U=h(U,P,F,D,k[R+5],4,-378558),D=h(D,U,P,F,k[R+8],11,-2022574463),F=h(F,D,U,P,k[R+11],16,1839030562),P=h(P,F,D,U,k[R+14],23,-35309556),U=h(U,P,F,D,k[R+1],4,-1530992060),D=h(D,U,P,F,k[R+4],11,1272893353),F=h(F,D,U,P,k[R+7],16,-155497632),P=h(P,F,D,U,k[R+10],23,-1094730640),U=h(U,P,F,D,k[R+13],4,681279174),D=h(D,U,P,F,k[R],11,-358537222),F=h(F,D,U,P,k[R+3],16,-722521979),P=h(P,F,D,U,k[R+6],23,76029189),U=h(U,P,F,D,k[R+9],4,-640364487),D=h(D,U,P,F,k[R+12],11,-421815835),F=h(F,D,U,P,k[R+15],16,530742520),P=h(P,F,D,U,k[R+2],23,-995338651),U=d(U,P,F,D,k[R],6,-198630844),D=d(D,U,P,F,k[R+7],10,1126891415),F=d(F,D,U,P,k[R+14],15,-1416354905),P=d(P,F,D,U,k[R+5],21,-57434055),U=d(U,P,F,D,k[R+12],6,1700485571),D=d(D,U,P,F,k[R+3],10,-1894986606),F=d(F,D,U,P,k[R+10],15,-1051523),P=d(P,F,D,U,k[R+1],21,-2054922799),U=d(U,P,F,D,k[R+8],6,1873313359),D=d(D,U,P,F,k[R+15],10,-30611744),F=d(F,D,U,P,k[R+6],15,-1560198380),P=d(P,F,D,U,k[R+13],21,1309151649),U=d(U,P,F,D,k[R+4],6,-145523070),D=d(D,U,P,F,k[R+11],10,-1120210379),F=d(F,D,U,P,k[R+2],15,718787259),P=d(P,F,D,U,k[R+9],21,-343485551),U=n(U,W),P=n(P,ie),F=n(F,ce),D=n(D,Y);return[U,P,F,D]}function g(k){var M,R="",W=k.length*32;for(M=0;M<W;M+=8)R+=String.fromCharCode(k[M>>5]>>>M%32&255);return R}function y(k){var M,R=[];for(R[(k.length>>2)-1]=void 0,M=0;M<R.length;M+=1)R[M]=0;var W=k.length*8;for(M=0;M<W;M+=8)R[M>>5]|=(k.charCodeAt(M/8)&255)<<M%32;return R}function m(k){return g(p(y(k),k.length*8))}function A(k,M){var R,W=y(k),ie=[],ce=[],Y;for(ie[15]=ce[15]=void 0,W.length>16&&(W=p(W,k.length*8)),R=0;R<16;R+=1)ie[R]=W[R]^909522486,ce[R]=W[R]^1549556828;return Y=p(ie.concat(y(M)),512+M.length*8),g(p(ce.concat(Y),512+128))}function $(k){var M="0123456789abcdef",R="",W,ie;for(ie=0;ie<k.length;ie+=1)W=k.charCodeAt(ie),R+=M.charAt(W>>>4&15)+M.charAt(W&15);return R}function L(k){return unescape(encodeURIComponent(k))}function C(k){return m(L(k))}function x(k){return $(C(k))}function S(k,M){return A(L(k),L(M))}function O(k,M){return $(S(k,M))}function B(k,M,R){return M?R?S(M,k):O(M,k):R?C(k):x(k)}e.exports?e.exports=B:t.md5=B})(sr)})(JC);const vV=JC.exports;var mV=e=>(Array.isArray(e)&&(e=e.join("")),vV(e)),Zs={},Qw=sh,yV=Lg,bV=cl,Xw=Qw?Qw.isConcatSpreadable:void 0;function wV(e){return bV(e)||yV(e)||!!(Xw&&e&&e[Xw])}var DV=wV,AV=Ig,EV=DV;function e_(e,t,n,i,o){var a=-1,c=e.length;for(n||(n=EV),o||(o=[]);++a<c;){var h=e[a];t>0&&n(h)?t>1?e_(h,t-1,n,i,o):AV(o,h):i||(o[o.length]=h)}return o}var xV=e_,CV=xV,_V=1/0;function SV(e){var t=e==null?0:e.length;return t?CV(e,_V):[]}var FV=SV;const $V=FV,qe={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},vv=Symbol("descriptor");Zs.descriptorSymbol=vv;function ko(e,t){const n=Buffer.alloc(e);return n.writeIntLE(t,0,e),[e,n]}function Gn(e){if(Object.is(e,0))return qe.zero;if(Object.is(e,-0))return qe.negativeZero;if(Object.is(e,NaN))return qe.notANumber;if(e===1/0)return qe.infinity;if(e===-1/0)return qe.negativeInfinity;if(e===void 0)return qe.undefined;if(e===null)return qe.null;if(e===!0)return qe.true;if(e===!1)return qe.false;const t=typeof e;if(t==="number"){if(Number.isInteger(e)){if(e>=-128&&e<128)return ko(qe.int8,e);if(e>=-32768&&e<32768)return ko(qe.int16,e);if(e>=-8388608&&e<8388608)return ko(qe.int24,e);if(e>=-2147483648&&e<2147483648)return ko(qe.int32,e);if(e>=-549755813888&&e<549755813888)return ko(qe.int40,e);if(e>=-0x800000000000&&e<0x800000000000)return ko(qe.int48,e)}const i=Buffer.from(String(e),"utf8");return[qe.numberString,Gn(i.length),i]}if(t==="string"){const i=Buffer.from(e,"utf8");return[qe.utf8,Gn(i.length),i]}if(t==="bigint"){const i=Buffer.from(String(e),"utf8");return[qe.bigInt,Gn(i.length),i]}if(Buffer.isBuffer(e))return[qe.bytes,Gn(e.byteLength),e];if(Array.isArray(e))return[e[vv]===!0?qe.descriptor:qe.list,Gn(e.length),e.map(i=>Gn(i))];const n=`0x${t.toString(16).toUpperCase()}`;throw new TypeError(`Unexpected value with type ${n}`)}function Hr(e,t){const n=e.readUInt8(t);if(t+=1,n===qe.zero)return{byteOffset:t,value:0};if(n===qe.negativeZero)return{byteOffset:t,value:-0};if(n===qe.notANumber)return{byteOffset:t,value:NaN};if(n===qe.infinity)return{byteOffset:t,value:1/0};if(n===qe.negativeInfinity)return{byteOffset:t,value:-1/0};if(n===qe.undefined)return{byteOffset:t,value:void 0};if(n===qe.null)return{byteOffset:t,value:null};if(n===qe.true)return{byteOffset:t,value:!0};if(n===qe.false)return{byteOffset:t,value:!1};if(n===qe.int8||n===qe.int16||n===qe.int24||n===qe.int32||n===qe.int40||n===qe.int48){const o=e.readIntLE(t,n);return t+=n,{byteOffset:t,value:o}}if(n===qe.numberString||n===qe.utf8||n===qe.bytes||n===qe.bigInt){const o=Hr(e,t),a=o.byteOffset,c=a+o.value;if(n===qe.numberString){const d=Number(e.toString("utf8",a,c));return{byteOffset:c,value:d}}if(n===qe.utf8){const d=e.toString("utf8",a,c);return{byteOffset:c,value:d}}if(n===qe.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===qe.list||n===qe.descriptor){const o=Hr(e,t);t=o.byteOffset;const a=new Array(o.value);n===qe.descriptor&&(a[vv]=!0);for(let c=0;c<o.value;c++){const h=Hr(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 Ac(e){if(typeof e=="number"){const o=Buffer.alloc(1);return o.writeUInt8(e),o}const t=$V(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 TV(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=Ac(Gn(n.size));i.push(h),o+=h.byteLength;for(const g of n.keys()){const y=n.get(g),m=Ac([Gn(g),Gn(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=Ac([Gn(g.pluginIndex),Gn(g.id),Gn(g.children.length)]);i.push(y),o+=y.byteLength;for(const A of g.children){d.push(A);const $=Buffer.alloc(4);p.push($),i.push($),o+=4}const m=Ac(Gn(g.state));i.push(m),o+=m.byteLength}return Buffer.concat(i,o)}Zs.encode=TV;function kV(e){const t=Hr(e,0);let n=t.byteOffset;const i=new Map,o=t.value;for(let a=1;a<=o;a++){const c=Hr(e,n),h=c.value;n=c.byteOffset;const d=Hr(e,n).value;i.set(a,{name:h,serializerVersion:d})}return i}Zs.decodePlugins=kV;function t_(e,t){const n=Hr(e,t),i=n.value;t=n.byteOffset;const o=Hr(e,t),a=o.value;t=o.byteOffset;const c=Hr(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=Hr(e,t).value;return{id:a,pluginIndex:i,state:p,pointerAddresses:d}}Zs.decodeRecord=t_;function LV(e){return e.readUInt16LE(0)}Zs.extractVersion=LV;function BV(e){const t=e.readUInt32LE(2),n=e.slice(6,t),i=t_(e,t);return{pluginBuffer:n,rootRecord:i}}Zs.decode=BV;var Ah={};const OV=bt.UNEQUAL;function n_(e){return new mv(e)}Ah.describe=n_;Ah.deserialize=n_;const r_=Symbol("Pointer");Ah.tag=r_;class mv{constructor(t){this.index=t}compare(t){return OV}serialize(){return this.index}}Object.defineProperty(mv.prototype,"isPointer",{value:!0});Object.defineProperty(mv.prototype,"tag",{value:r_});const PV=mV,Yw=ga,Zw=Xu,Jw=Yu,eD=Zu,tD=Ju,nD=el,rD=tl,iD=nl,sD=rl,oD=Yt,aD=il,uD=sl,lD=ol,Ec=Zn,js=Zs,xc=_i,cD=al,Gp=Ah,Cc=Si,Lo=ar,i_=Jg(),fD=hl,hD=dl,dD=pl,pD=gl,gD=Qs,vD=Aa,mD=vl,NV=Ft,s_=3,o_=[[1,fD.tag,fD.deserialize],[2,hD.tag,hD.deserialize],[3,dD.tag,dD.deserialize],[4,pD.tag,pD.deserialize],[5,gD.tag,gD.deserialize],[6,vD.tag,vD.deserialize],[7,mD.tag,mD.deserialize],[8,oD.tag,oD.deserialize],[9,Lo.iterableTag,Lo.deserializeIterableStats],[10,Lo.listTag,Lo.deserializeListStats],[11,xc.complexTag,xc.deserializeComplex],[12,xc.primitiveTag,xc.deserializePrimitive],[13,Lo.propertyTag,Lo.deserializePropertyStats],[14,Cc.complexTag,Cc.deserializeComplex],[15,Cc.primitiveTag,Cc.deserializePrimitive],[16,Gp.tag,Gp.deserialize],[17,sD.tag,sD.deserialize],[18,cD.tag,cD.deserialize],[19,Yw.tag,Yw.deserialize],[20,Zw.tag,Zw.deserialize],[21,Jw.tag,Jw.deserialize],[22,eD.tag,eD.deserialize],[23,tD.tag,tD.deserialize],[24,nD.tag,nD.deserialize],[25,rD.tag,rD.deserialize],[26,iD.tag,iD.deserialize],[27,aD.tag,aD.deserialize],[28,uD.tag,uD.deserialize],[29,lD.tag,lD.deserialize],[30,Ec.tag,Ec.deserialize],[31,Ec.bytesTag,Ec.deserializeBytes]],mf=new Map(o_.map(e=>[e[1],e[0]])),IV=new Map(o_.map(e=>[e[0],e[2]]));class RV extends Error{constructor(t){super("Could not serialize descriptor"),this.name="DescriptorSerializationError",this.descriptor=t}}class MV extends Error{constructor(t){super(`Could not deserialize buffer: missing plugin ${JSON.stringify(t)}`),this.name="MissingPluginError",this.pluginName=t}}class zV extends Error{constructor(t){super(`Could not deserialize buffer: pointer ${t} could not be resolved`),this.name="PointerLookupError",this.index=t}}class UV 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 HV 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 u_(e.serialize(),t)}function u_(e,t){if(Array.isArray(e))return e.map(n=>u_(n));if(e&&e.tag){let n,i;if(mf.has(e.tag))n=mf.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 qV(e){const t=new Map,n=h=>{const d=i_.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=Gp.describe(e.pointer):i.add(e.pointer));let h,d=0;if(mf.has(e.tag))h=mf.get(e.tag);else{const g=n(e.tag);if(!g)throw new RV(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(s_,c,t)}gv.serialize=qV;function l_(e,t){return e&&e[js.descriptorSymbol]===!0?jV(e,t):Array.isArray(e)?e.map(n=>l_(n,t)):e}function jV(e,t){return t(e[0],e[1])(e[2])}function c_(e,t,n){const i=t(e.pluginIndex,e.id),o=l_(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 VV(e,t){const n=t&&t.deserializedPluginsCache,i=PV(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 i_.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 MV(p);if(g!==a.get(p).serializerVersion)throw new UV(p,g);c.set(h,a.get(p).id2deserialize)}return n&&n.set(i,c),c}function WV(e,t){const n=js.extractVersion(e);if(n!==s_)throw new HV(n);const i=js.decode(e),o=VV(i.pluginBuffer,t),a=new Map,c=p=>{if(p.isPointer===!0){if(a.has(p.index)||typeof d.createRecursor=="function"&&(NV.consumeDeep(d.createRecursor()),a.has(p.index)))return a.get(p.index);throw new zV(p.index)}return p.isComplex===!0&&a.set(p.pointer,p),p},h=(p,g)=>(y,m)=>{const A=p===0?IV.get(g):o.get(p).get(g);return c(A(y,m))},d=c_(i.rootRecord,h,e);return d}gv.deserialize=WV;const f_=H0,GV=bh,h_=dv,d_=pv,p_=gv;Wr.compare=f_.compare;Wr.compareDescriptors=f_.compareDescriptors;Wr.describe=GV;Wr.diff=h_.diff;Wr.diffDescriptors=h_.diffDescriptors;Wr.format=d_.format;Wr.formatDescriptor=d_.formatDescriptor;Wr.serialize=p_.serialize;Wr.deserialize=p_.deserialize;const KV=Symbol("vitest:SAFE_COLORS"),QV=["reset","bold","dim","italic","underline","inverse","hidden","strikethrough","black","red","green","yellow","blue","magenta","cyan","white","gray","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite"],yv=e=>String(e);yv.open="";yv.close="";const XV=QV.reduce((e,t)=>(e[t]=yv,e),{});function g_(){return globalThis[KV]||XV}const YV=()=>{const e=g_();return{boolean:e.yellow,circular:e.gray("[Circular]"),date:{invalid:e.red("invalid"),value:e.blue},diffGutters:{actual:` ${e.red("-")} `,expected:` ${e.green("+")} `,padding:" "},error:{ctor:{open:`${e.gray.open}(`,close:`)${e.gray.close}`},name:e.magenta},function:{name:e.blue,stringTag:e.magenta},global:e.magenta,item:{after:e.gray(",")},list:{openBracket:e.gray("["),closeBracket:e.gray("]")},mapEntry:{after:e.gray(",")},maxDepth:e.gray("…"),null:e.yellow,number:e.yellow,object:{openBracket:e.gray("{"),closeBracket:e.gray("}"),ctor:e.magenta,stringTag:{open:`${e.magenta.open}@`,close:e.magenta.close},secondaryStringTag:{open:`${e.gray.open}@`,close:e.gray.close}},property:{after:e.gray(","),keyBracket:{open:e.gray("["),close:e.gray("]")},valueFallback:e.gray("…")},regexp:{source:{open:`${e.blue.open}/`,close:`/${e.blue.close}`},flags:e.yellow},stats:{separator:e.gray("---")},string:{open:e.blue.open,close:e.blue.close,line:{open:e.blue("'"),close:e.blue("'")},multiline:{start:e.blue("`"),end:e.blue("`")},controlPicture:e.gray,diff:{insert:{open:e.bgGreen.open+e.black.open,close:e.black.close+e.bgGreen.close},delete:{open:e.bgRed.open+e.black.open,close:e.black.close+e.bgRed.close},equal:e.blue,insertLine:{open:e.green.open,close:e.green.close},deleteLine:{open:e.red.open,close:e.red.close}}},symbol:e.yellow,typedArray:{bytes:e.yellow},undefined:e.yellow}};function ZV(e,t,n){return Wr.diff(t,e,n)}function JV(e,t,n={}){const i=YV(),o=ZV(e,t,{theme:i}),{showLegend:a=!0}=n,c={"+":0,"-":0},h=g_(),d=i.diffGutters.actual,p=` ${h.green("+")}`,g=o.split(/\r?\n/g);g.forEach(A=>{A.startsWith(d)?c["+"]++:A.startsWith(p)&&c["-"]++});const y=c["+"]===1&&c["-"]===1&&g.length===2;let m="";return a&&(y?m=` Difference:
|
|
7
|
+
|
|
8
|
+
`:m=` ${h.green(`- Expected - ${c["-"]}`)}
|
|
9
|
+
${h.red(`+ Received + ${c["+"]}`)}
|
|
10
|
+
|
|
11
|
+
`),m+o}function Kp(e){return e.type==="test"||e.type==="custom"}function v_(e){return sx(e).flatMap(t=>Kp(t)?[t]:t.tasks.flatMap(n=>Kp(n)?[n]:v_(n)))}function bv(e=[]){return sx(e).flatMap(t=>Kp(t)?[t]:[t,...bv(t.tasks)])}function eW(e){const t=[e.name];let n=e;for(;(n==null?void 0:n.suite)||(n==null?void 0:n.file);)n=n.suite||n.file,n!=null&&n.name&&t.unshift(n.name);return t}function Eh(e){return v_(e).some(t=>{var n,i;return(i=(n=t.result)==null?void 0:n.errors)==null?void 0:i.some(o=>o.message.match(/Snapshot .* mismatched/))})}function tW(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:a=10,reactive:c=x=>x,WebSocketConstructor:h=globalThis.WebSocket}=t;let d=a;const p=c({ws:new h(e),state:new ix,waitForConnection:C,reconnect:$});p.state.filesMap=c(p.state.filesMap),p.state.idMap=c(p.state.idMap);let g;const y={onPathsCollected(x){var S;p.state.collectPaths(x),(S=n.onPathsCollected)==null||S.call(n,x)},onCollected(x){var S;p.state.collectFiles(x),(S=n.onCollected)==null||S.call(n,x)},onTaskUpdate(x){var S;p.state.updateTasks(x),(S=n.onTaskUpdate)==null||S.call(n,x)},onUserConsoleLog(x){p.state.updateUserLog(x)},onFinished(x){var S;(S=n.onFinished)==null||S.call(n,x)}},m={post:x=>p.ws.send(x),on:x=>g=x,serialize:jO,deserialize:rx};p.rpc=NO(y,m);let A;function $(x=!1){x&&(d=a),p.ws=new h(e),L()}function L(){A=new Promise(x=>{p.ws.addEventListener("open",()=>{d=a,x()})}),p.ws.addEventListener("message",x=>{g(x.data)}),p.ws.addEventListener("close",()=>{d-=1,i&&d>0&&setTimeout($,o)})}L();function C(){return A}return p}const m_=LO("hash-params",{initialValue:{file:"",view:null}}),pi=w0(m_,"file"),Nr=w0(m_,"view"),nW=()=>{},Bo=()=>Promise.resolve();function rW(){const e=Qn({state:new ix,waitForConnection:c,reconnect:o,ws:new EventTarget});e.state.filesMap=Qn(e.state.filesMap),e.state.idMap=Qn(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:async()=>t.paths,getConfig:()=>t.config,getModuleGraph:async h=>t.moduleGraph[h],getTransformResult:async h=>({code:h,source:""}),readFile:async h=>Promise.resolve(h),onWatcherStart:Bo,onFinished:Bo,onCollected:Bo,onTaskUpdate:nW,writeFile:Bo,rerun:Bo,updateSnapshot:Bo};e.rpc=n;let i;function o(){a()}async function a(){const h=await fetch(window.METADATA_PATH);t=rx(await h.text());const d=new Event("open");e.ws.dispatchEvent(d)}a();function c(){return i}return e}const iW=location.port,sW=[location.hostname,iW].filter(Boolean).join(":"),oW=`${location.protocol==="https:"?"wss:":"ws:"}//${sW}/__vitest_api__`,Ai=!!window.METADATA_PATH,yf=Qe("idle"),rn=function(){return Ai?rW():tW(oW,{reactive:Qn,handlers:{onTaskUpdate(){yf.value="running"},onFinished(){yf.value="idle"}}})}(),y_=qu({}),Ps=Qe("CONNECTING"),Hn=xe(()=>rn.state.getFiles()),Ot=xe(()=>Hn.value.find(e=>e.id===pi.value)),b_=xe(()=>bv(Ot.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]),bf=e=>Hn.value.find(t=>t.id===e),aW=xe(()=>Ps.value==="OPEN"),np=xe(()=>Ps.value==="CONNECTING");xe(()=>Ps.value==="CLOSED");function yD(e=rn.state.getFiles()){return w_(e)}function w_(e){return e.forEach(t=>{delete t.result,bv(t).forEach(n=>delete n.result)}),rn.rpc.rerun(e.map(t=>t.filepath))}function uW(){if(Ot.value)return w_([Ot.value])}Qt(()=>rn.ws,e=>{Ps.value=Ai?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Ps.value="OPEN",rn.state.filesMap.clear();const[t,n]=await Promise.all([rn.rpc.getFiles(),rn.rpc.getConfig()]);rn.state.collectFiles(t),y_.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{Ps.value==="CONNECTING"&&(Ps.value="CLOSED")},1e3)})},{immediate:!0});const lW={"text-2xl":""},cW=ve("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),fW=st({__name:"ConnectionOverlay",setup(e){return(t,n)=>X(aW)?ut("",!0):(de(),ke("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)=>X(rn).reconnect&&X(rn).reconnect(...i))},[ve("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:yt(X(np)?"animate-pulse":"")},[ve("div",{text:"5xl",class:yt(X(np)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ve("div",lW,Xe(X(np)?"Connecting...":"Disconnected"),1),cW],2)]))}});var D_={},yi={};const hW="Á",dW="á",pW="Ă",gW="ă",vW="∾",mW="∿",yW="∾̳",bW="Â",wW="â",DW="´",AW="А",EW="а",xW="Æ",CW="æ",_W="",SW="𝔄",FW="𝔞",$W="À",TW="à",kW="ℵ",LW="ℵ",BW="Α",OW="α",PW="Ā",NW="ā",IW="⨿",RW="&",MW="&",zW="⩕",UW="⩓",HW="∧",qW="⩜",jW="⩘",VW="⩚",WW="∠",GW="⦤",KW="∠",QW="⦨",XW="⦩",YW="⦪",ZW="⦫",JW="⦬",eG="⦭",tG="⦮",nG="⦯",rG="∡",iG="∟",sG="⊾",oG="⦝",aG="∢",uG="Å",lG="⍼",cG="Ą",fG="ą",hG="𝔸",dG="𝕒",pG="⩯",gG="≈",vG="⩰",mG="≊",yG="≋",bG="'",wG="",DG="≈",AG="≊",EG="Å",xG="å",CG="𝒜",_G="𝒶",SG="≔",FG="*",$G="≈",TG="≍",kG="Ã",LG="ã",BG="Ä",OG="ä",PG="∳",NG="⨑",IG="≌",RG="϶",MG="‵",zG="∽",UG="⋍",HG="∖",qG="⫧",jG="⊽",VG="⌅",WG="⌆",GG="⌅",KG="⎵",QG="⎶",XG="≌",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="△",EK="⨄",xK="⋁",CK="⋀",_K="⤍",SK="⧫",FK="▪",$K="▴",TK="▾",kK="◂",LK="▸",BK="␣",OK="▒",PK="░",NK="▓",IK="█",RK="=⃥",MK="≡⃥",zK="⫭",UK="⌐",HK="𝔹",qK="𝕓",jK="⊥",VK="⊥",WK="⋈",GK="⧉",KK="┐",QK="╕",XK="╖",YK="╗",ZK="┌",JK="╒",eQ="╓",tQ="╔",nQ="─",rQ="═",iQ="┬",sQ="╤",oQ="╥",aQ="╦",uQ="┴",lQ="╧",cQ="╨",fQ="╩",hQ="⊟",dQ="⊞",pQ="⊠",gQ="┘",vQ="╛",mQ="╜",yQ="╝",bQ="└",wQ="╘",DQ="╙",AQ="╚",EQ="│",xQ="║",CQ="┼",_Q="╪",SQ="╫",FQ="╬",$Q="┤",TQ="╡",kQ="╢",LQ="╣",BQ="├",OQ="╞",PQ="╟",NQ="╠",IQ="‵",RQ="˘",MQ="˘",zQ="¦",UQ="𝒷",HQ="ℬ",qQ="⁏",jQ="∽",VQ="⋍",WQ="⧅",GQ="\\",KQ="⟈",QQ="•",XQ="•",YQ="≎",ZQ="⪮",JQ="≏",eX="≎",tX="≏",nX="Ć",rX="ć",iX="⩄",sX="⩉",oX="⩋",aX="∩",uX="⋒",lX="⩇",cX="⩀",fX="ⅅ",hX="∩︀",dX="⁁",pX="ˇ",gX="ℭ",vX="⩍",mX="Č",yX="č",bX="Ç",wX="ç",DX="Ĉ",AX="ĉ",EX="∰",xX="⩌",CX="⩐",_X="Ċ",SX="ċ",FX="¸",$X="¸",TX="⦲",kX="¢",LX="·",BX="·",OX="𝔠",PX="ℭ",NX="Ч",IX="ч",RX="✓",MX="✓",zX="Χ",UX="χ",HX="ˆ",qX="≗",jX="↺",VX="↻",WX="⊛",GX="⊚",KX="⊝",QX="⊙",XX="®",YX="Ⓢ",ZX="⊖",JX="⊕",eY="⊗",tY="○",nY="⧃",rY="≗",iY="⨐",sY="⫯",oY="⧂",aY="∲",uY="”",lY="’",cY="♣",fY="♣",hY=":",dY="∷",pY="⩴",gY="≔",vY="≔",mY=",",yY="@",bY="∁",wY="∘",DY="∁",AY="ℂ",EY="≅",xY="⩭",CY="≡",_Y="∮",SY="∯",FY="∮",$Y="𝕔",TY="ℂ",kY="∐",LY="∐",BY="©",OY="©",PY="℗",NY="∳",IY="↵",RY="✗",MY="⨯",zY="𝒞",UY="𝒸",HY="⫏",qY="⫑",jY="⫐",VY="⫒",WY="⋯",GY="⤸",KY="⤵",QY="⋞",XY="⋟",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="†",EZ="‡",xZ="ℸ",CZ="↓",_Z="↡",SZ="⇓",FZ="‐",$Z="⫤",TZ="⊣",kZ="⤏",LZ="˝",BZ="Ď",OZ="ď",PZ="Д",NZ="д",IZ="‡",RZ="⇊",MZ="ⅅ",zZ="ⅆ",UZ="⤑",HZ="⩷",qZ="°",jZ="∇",VZ="Δ",WZ="δ",GZ="⦱",KZ="⥿",QZ="𝔇",XZ="𝔡",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="$",EJ="𝔻",xJ="𝕕",CJ="¨",_J="˙",SJ="⃜",FJ="≐",$J="≑",TJ="≐",kJ="∸",LJ="∔",BJ="⊡",OJ="⌆",PJ="∯",NJ="¨",IJ="⇓",RJ="⇐",MJ="⇔",zJ="⫤",UJ="⟸",HJ="⟺",qJ="⟹",jJ="⇒",VJ="⊨",WJ="⇑",GJ="⇕",KJ="∥",QJ="⤓",XJ="↓",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="đ",Eee="⋱",xee="▿",Cee="▾",_ee="⇵",See="⥯",Fee="⦦",$ee="Џ",Tee="џ",kee="⟿",Lee="É",Bee="é",Oee="⩮",Pee="Ě",Nee="ě",Iee="Ê",Ree="ê",Mee="≖",zee="≕",Uee="Э",Hee="э",qee="⩷",jee="Ė",Vee="ė",Wee="≑",Gee="ⅇ",Kee="≒",Qee="𝔈",Xee="𝔢",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="ę",Ete="𝔼",xte="𝕖",Cte="⋕",_te="⧣",Ste="⩱",Fte="ε",$te="Ε",Tte="ε",kte="ϵ",Lte="≖",Bte="≕",Ote="≂",Pte="⪖",Nte="⪕",Ite="⩵",Rte="=",Mte="≂",zte="≟",Ute="⇌",Hte="≡",qte="⩸",jte="⧥",Vte="⥱",Wte="≓",Gte="ℯ",Kte="ℰ",Qte="≐",Xte="⩳",Yte="≂",Zte="Η",Jte="η",ene="Ð",tne="ð",nne="Ë",rne="ë",ine="€",sne="!",one="∃",ane="∃",une="ℰ",lne="ⅇ",cne="ⅇ",fne="≒",hne="Ф",dne="ф",pne="♀",gne="ffi",vne="ff",mne="ffl",yne="𝔉",bne="𝔣",wne="fi",Dne="◼",Ane="▪",Ene="fj",xne="♭",Cne="fl",_ne="▱",Sne="ƒ",Fne="𝔽",$ne="𝕗",Tne="∀",kne="∀",Lne="⋔",Bne="⫙",One="ℱ",Pne="⨍",Nne="½",Ine="⅓",Rne="¼",Mne="⅕",zne="⅙",Une="⅛",Hne="⅔",qne="⅖",jne="¾",Vne="⅗",Wne="⅜",Gne="⅘",Kne="⅚",Qne="⅝",Xne="⅞",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="⩾",Ere="⪩",xre="⩾",Cre="⪀",_re="⪂",Sre="⪄",Fre="⋛︀",$re="⪔",Tre="𝔊",kre="𝔤",Lre="≫",Bre="⋙",Ore="⋙",Pre="ℷ",Nre="Ѓ",Ire="ѓ",Rre="⪥",Mre="≷",zre="⪒",Ure="⪤",Hre="⪊",qre="⪊",jre="⪈",Vre="≩",Wre="⪈",Gre="≩",Kre="⋧",Qre="𝔾",Xre="𝕘",Yre="`",Zre="≥",Jre="⋛",eie="≧",tie="⪢",nie="≷",rie="⩾",iie="≳",sie="𝒢",oie="ℊ",aie="≳",uie="⪎",lie="⪐",cie="⪧",fie="⩺",hie=">",die=">",pie="≫",gie="⋗",vie="⦕",mie="⩼",yie="⪆",bie="⥸",wie="⋗",Die="⋛",Aie="⪌",Eie="≷",xie="≳",Cie="≩︀",_ie="≩︀",Sie="ˇ",Fie=" ",$ie="½",Tie="ℋ",kie="Ъ",Lie="ъ",Bie="⥈",Oie="↔",Pie="⇔",Nie="↭",Iie="^",Rie="ℏ",Mie="Ĥ",zie="ĥ",Uie="♥",Hie="♥",qie="…",jie="⊹",Vie="𝔥",Wie="ℌ",Gie="ℋ",Kie="⤥",Qie="⤦",Xie="⇿",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="е",Ese="¡",xse="⇔",Cse="𝔦",_se="ℑ",Sse="Ì",Fse="ì",$se="ⅈ",Tse="⨌",kse="∭",Lse="⧜",Bse="℩",Ose="IJ",Pse="ij",Nse="Ī",Ise="ī",Rse="ℑ",Mse="ⅈ",zse="ℐ",Use="ℑ",Hse="ı",qse="ℑ",jse="⊷",Vse="Ƶ",Wse="⇒",Gse="℅",Kse="∞",Qse="⧝",Xse="ı",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="⋹",Eoe="⋴",xoe="⋳",Coe="∈",_oe="",Soe="Ĩ",Foe="ĩ",$oe="І",Toe="і",koe="Ï",Loe="ï",Boe="Ĵ",Ooe="ĵ",Poe="Й",Noe="й",Ioe="𝔍",Roe="𝔧",Moe="ȷ",zoe="𝕁",Uoe="𝕛",Hoe="𝒥",qoe="𝒿",joe="Ј",Voe="ј",Woe="Є",Goe="є",Koe="Κ",Qoe="κ",Xoe="ϰ",Yoe="Ķ",Zoe="ķ",Joe="К",eae="к",tae="𝔎",nae="𝔨",rae="ĸ",iae="Х",sae="х",oae="Ќ",aae="ќ",uae="𝕂",lae="𝕜",cae="𝒦",fae="𝓀",hae="⇚",dae="Ĺ",pae="ĺ",gae="⦴",vae="ℒ",mae="Λ",yae="λ",bae="⟨",wae="⟪",Dae="⦑",Aae="⟨",Eae="⪅",xae="ℒ",Cae="«",_ae="⇤",Sae="⤟",Fae="←",$ae="↞",Tae="⇐",kae="⤝",Lae="↩",Bae="↫",Oae="⤹",Pae="⥳",Nae="↢",Iae="⤙",Rae="⤛",Mae="⪫",zae="⪭",Uae="⪭︀",Hae="⤌",qae="⤎",jae="❲",Vae="{",Wae="[",Gae="⦋",Kae="⦏",Qae="⦍",Xae="Ľ",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="⥙",Eue="⇃",xue="⌊",Cue="↽",_ue="↼",Sue="⇇",Fue="↔",$ue="↔",Tue="⇔",kue="⇆",Lue="⇋",Bue="↭",Oue="⥎",Pue="↤",Nue="⊣",Iue="⥚",Rue="⋋",Mue="⧏",zue="⊲",Uue="⊴",Hue="⥑",que="⥠",jue="⥘",Vue="↿",Wue="⥒",Gue="↼",Kue="⪋",Que="⋚",Xue="≤",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="≶",Ele="⪑",xle="⥢",Cle="↽",_le="↼",Sle="⥪",Fle="▄",$le="Љ",Tle="љ",kle="⇇",Lle="≪",Ble="⋘",Ole="⌞",Ple="⇚",Nle="⥫",Ile="◺",Rle="Ŀ",Mle="ŀ",zle="⎰",Ule="⎰",Hle="⪉",qle="⪉",jle="⪇",Vle="≨",Wle="⪇",Gle="≨",Kle="⋦",Qle="⟬",Xle="⇽",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="(",Ece="⦓",xce="⇆",Cce="⌟",_ce="⇋",Sce="⥭",Fce="",$ce="⊿",Tce="‹",kce="𝓁",Lce="ℒ",Bce="↰",Oce="↰",Pce="≲",Nce="⪍",Ice="⪏",Rce="[",Mce="‘",zce="‚",Uce="Ł",Hce="ł",qce="⪦",jce="⩹",Vce="<",Wce="<",Gce="≪",Kce="⋖",Qce="⋋",Xce="⋉",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="∡",Efe=" ",xfe="ℳ",Cfe="𝔐",_fe="𝔪",Sfe="℧",Ffe="µ",$fe="*",Tfe="⫰",kfe="∣",Lfe="·",Bfe="⊟",Ofe="−",Pfe="∸",Nfe="⨪",Ife="∓",Rfe="⫛",Mfe="…",zfe="∓",Ufe="⊧",Hfe="𝕄",qfe="𝕞",jfe="∓",Vfe="𝓂",Wfe="ℳ",Gfe="∾",Kfe="Μ",Qfe="μ",Xfe="⊸",Yfe="⊸",Zfe="∇",Jfe="Ń",ehe="ń",the="∠⃒",nhe="≉",rhe="⩰̸",ihe="≋̸",she="ʼn",ohe="≉",ahe="♮",uhe="ℕ",lhe="♮",che=" ",fhe="≎̸",hhe="≏̸",dhe="⩃",phe="Ň",ghe="ň",vhe="Ņ",mhe="ņ",yhe="≇",bhe="⩭̸",whe="⩂",Dhe="Н",Ahe="н",Ehe="–",xhe="⤤",Che="↗",_he="⇗",She="↗",Fhe="≠",$he="≐̸",The="",khe="",Lhe="",Bhe="",Ohe="≢",Phe="⤨",Nhe="≂̸",Ihe="≫",Rhe="≪",Mhe=`
|
|
12
|
+
`,zhe="∄",Uhe="∄",Hhe="𝔑",qhe="𝔫",jhe="≧̸",Vhe="≱",Whe="≱",Ghe="≧̸",Khe="⩾̸",Qhe="⩾̸",Xhe="⋙̸",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="⩽̸",Ede="⩽̸",xde="≮",Cde="⋘̸",_de="≴",Sde="≪⃒",Fde="≮",$de="⋪",Tde="⋬",kde="≪̸",Lde="∤",Bde="",Ode=" ",Pde="𝕟",Nde="ℕ",Ide="⫬",Rde="¬",Mde="≢",zde="≭",Ude="∦",Hde="∉",qde="≠",jde="≂̸",Vde="∄",Wde="≯",Gde="≱",Kde="≧̸",Qde="≫̸",Xde="≹",Yde="⩾̸",Zde="≵",Jde="≎̸",epe="≏̸",tpe="∉",npe="⋵̸",rpe="⋹̸",ipe="∉",spe="⋷",ope="⋶",ape="⧏̸",upe="⋪",lpe="⋬",cpe="≮",fpe="≰",hpe="≸",dpe="≪̸",ppe="⩽̸",gpe="≴",vpe="⪢̸",mpe="⪡̸",ype="∌",bpe="∌",wpe="⋾",Dpe="⋽",Ape="⊀",Epe="⪯̸",xpe="⋠",Cpe="∌",_pe="⧐̸",Spe="⋫",Fpe="⋭",$pe="⊏̸",Tpe="⋢",kpe="⊐̸",Lpe="⋣",Bpe="⊂⃒",Ope="⊈",Ppe="⊁",Npe="⪰̸",Ipe="⋡",Rpe="≿̸",Mpe="⊃⃒",zpe="⊉",Upe="≁",Hpe="≄",qpe="≇",jpe="≉",Vpe="∤",Wpe="∦",Gpe="∦",Kpe="⫽⃥",Qpe="∂̸",Xpe="⨔",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="⋢",E0e="⋣",x0e="⊄",C0e="⫅̸",_0e="⊈",S0e="⊂⃒",F0e="⊈",$0e="⫅̸",T0e="⊁",k0e="⪰̸",L0e="⊅",B0e="⫆̸",O0e="⊉",P0e="⊃⃒",N0e="⊉",I0e="⫆̸",R0e="≹",M0e="Ñ",z0e="ñ",U0e="≸",H0e="⋪",q0e="⋬",j0e="⋫",V0e="⋭",W0e="Ν",G0e="ν",K0e="#",Q0e="№",X0e=" ",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="ô",Ege="⊚",xge="О",Cge="о",_ge="⊝",Sge="Ő",Fge="ő",$ge="⨸",Tge="⊙",kge="⦼",Lge="Œ",Bge="œ",Oge="⦿",Pge="𝔒",Nge="𝔬",Ige="˛",Rge="Ò",Mge="ò",zge="⧁",Uge="⦵",Hge="Ω",qge="∮",jge="↺",Vge="⦾",Wge="⦻",Gge="‾",Kge="⧀",Qge="Ō",Xge="ō",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="Ⓢ",Eve="𝒪",xve="ℴ",Cve="Ø",_ve="ø",Sve="⊘",Fve="Õ",$ve="õ",Tve="⨶",kve="⨷",Lve="⊗",Bve="Ö",Ove="ö",Pve="⌽",Nve="‾",Ive="⏞",Rve="⎴",Mve="⏜",zve="¶",Uve="∥",Hve="∥",qve="⫳",jve="⫽",Vve="∂",Wve="∂",Gve="П",Kve="п",Qve="%",Xve=".",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="±",Eme="⨦",xme="⨧",Cme="±",_me="ℌ",Sme="⨕",Fme="𝕡",$me="ℙ",Tme="£",kme="⪷",Lme="⪻",Bme="≺",Ome="≼",Pme="⪷",Nme="≺",Ime="≼",Rme="≺",Mme="⪯",zme="≼",Ume="≾",Hme="⪯",qme="⪹",jme="⪵",Vme="⋨",Wme="⪯",Gme="⪳",Kme="≾",Qme="′",Xme="″",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="⁗",Eye="𝒬",xye="𝓆",Cye="ℍ",_ye="⨖",Sye="?",Fye="≟",$ye='"',Tye='"',kye="⇛",Lye="∽̱",Bye="Ŕ",Oye="ŕ",Pye="√",Nye="⦳",Iye="⟩",Rye="⟫",Mye="⦒",zye="⦥",Uye="⟩",Hye="»",qye="⥵",jye="⇥",Vye="⤠",Wye="⤳",Gye="→",Kye="↠",Qye="⇒",Xye="⤞",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="}",E1e="Р",x1e="р",C1e="⤷",_1e="⥩",S1e="”",F1e="”",$1e="↳",T1e="ℜ",k1e="ℛ",L1e="ℜ",B1e="ℝ",O1e="ℜ",P1e="▭",N1e="®",I1e="®",R1e="∋",M1e="⇋",z1e="⥯",U1e="⥽",H1e="⌋",q1e="𝔯",j1e="ℜ",V1e="⥤",W1e="⇁",G1e="⇀",K1e="⥬",Q1e="Ρ",X1e="ρ",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="⊳",Ebe="⊵",xbe="⥏",Cbe="⥜",_be="⥔",Sbe="↾",Fbe="⥓",$be="⇀",Tbe="˚",kbe="≓",Lbe="⇄",Bbe="⇌",Obe="",Pbe="⎱",Nbe="⎱",Ibe="⫮",Rbe="⟭",Mbe="⇾",zbe="⟧",Ube="⦆",Hbe="𝕣",qbe="ℝ",jbe="⨮",Vbe="⨵",Wbe="⥰",Gbe=")",Kbe="⦔",Qbe="⨒",Xbe="⇉",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="≻",Ewe="≽",xwe="⪰",Cwe="⪴",_we="Ş",Swe="ş",Fwe="Ŝ",$we="ŝ",Twe="⪺",kwe="⪶",Lwe="⋩",Bwe="⨓",Owe="≿",Pwe="С",Nwe="с",Iwe="⊡",Rwe="⋅",Mwe="⩦",zwe="⤥",Uwe="↘",Hwe="⇘",qwe="↘",jwe="§",Vwe=";",Wwe="⤩",Gwe="∖",Kwe="∖",Qwe="✶",Xwe="𝔖",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="⪟",EDe="≆",xDe="⨤",CDe="⥲",_De="←",SDe="∘",FDe="∖",$De="⨳",TDe="⧤",kDe="∣",LDe="⌣",BDe="⪪",ODe="⪬",PDe="⪬︀",NDe="Ь",IDe="ь",RDe="⌿",MDe="⧄",zDe="/",UDe="𝕊",HDe="𝕤",qDe="♠",jDe="♠",VDe="∥",WDe="⊓",GDe="⊓︀",KDe="⊔",QDe="⊔︀",XDe="√",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="⋆",EAe="☆",xAe="★",CAe="ϵ",_Ae="ϕ",SAe="¯",FAe="⊂",$Ae="⋐",TAe="⪽",kAe="⫅",LAe="⊆",BAe="⫃",OAe="⫁",PAe="⫋",NAe="⊊",IAe="⪿",RAe="⥹",MAe="⊂",zAe="⋐",UAe="⊆",HAe="⫅",qAe="⊆",jAe="⊊",VAe="⫋",WAe="⫇",GAe="⫕",KAe="⫓",QAe="⪸",XAe="≻",YAe="≽",ZAe="≻",JAe="⪰",eEe="≽",tEe="≿",nEe="⪰",rEe="⪺",iEe="⪶",sEe="⋩",oEe="≿",aEe="∋",uEe="∑",lEe="∑",cEe="♪",fEe="¹",hEe="²",dEe="³",pEe="⊃",gEe="⋑",vEe="⪾",mEe="⫘",yEe="⫆",bEe="⊇",wEe="⫄",DEe="⊃",AEe="⊇",EEe="⟉",xEe="⫗",CEe="⥻",_Ee="⫂",SEe="⫌",FEe="⊋",$Ee="⫀",TEe="⊃",kEe="⋑",LEe="⊇",BEe="⫆",OEe="⊋",PEe="⫌",NEe="⫈",IEe="⫔",REe="⫖",MEe="⤦",zEe="↙",UEe="⇙",HEe="↙",qEe="⤪",jEe="ß",VEe=" ",WEe="⌖",GEe="Τ",KEe="τ",QEe="⎴",XEe="Ť",YEe="ť",ZEe="Ţ",JEe="ţ",exe="Т",txe="т",nxe="⃛",rxe="⌕",ixe="𝔗",sxe="𝔱",oxe="∴",axe="∴",uxe="∴",lxe="Θ",cxe="θ",fxe="ϑ",hxe="ϑ",dxe="≈",pxe="∼",gxe=" ",vxe=" ",mxe=" ",yxe="≈",bxe="∼",wxe="Þ",Dxe="þ",Axe="˜",Exe="∼",xxe="≃",Cxe="≅",_xe="≈",Sxe="⨱",Fxe="⊠",$xe="×",Txe="⨰",kxe="∭",Lxe="⤨",Bxe="⌶",Oxe="⫱",Pxe="⊤",Nxe="𝕋",Ixe="𝕥",Rxe="⫚",Mxe="⤩",zxe="‴",Uxe="™",Hxe="™",qxe="▵",jxe="▿",Vxe="◃",Wxe="⊴",Gxe="≜",Kxe="▹",Qxe="⊵",Xxe="◬",Yxe="≜",Zxe="⨺",Jxe="⃛",eCe="⨹",tCe="⧍",nCe="⨻",rCe="⏢",iCe="𝒯",sCe="𝓉",oCe="Ц",aCe="ц",uCe="Ћ",lCe="ћ",cCe="Ŧ",fCe="ŧ",hCe="≬",dCe="↞",pCe="↠",gCe="Ú",vCe="ú",mCe="↑",yCe="↟",bCe="⇑",wCe="⥉",DCe="Ў",ACe="ў",ECe="Ŭ",xCe="ŭ",CCe="Û",_Ce="û",SCe="У",FCe="у",$Ce="⇅",TCe="Ű",kCe="ű",LCe="⥮",BCe="⥾",OCe="𝔘",PCe="𝔲",NCe="Ù",ICe="ù",RCe="⥣",MCe="↿",zCe="↾",UCe="▀",HCe="⌜",qCe="⌜",jCe="⌏",VCe="◸",WCe="Ū",GCe="ū",KCe="¨",QCe="_",XCe="⏟",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="Υ",E_e="υ",x_e="↥",C_e="⊥",__e="⇈",S_e="⌝",F_e="⌝",$_e="⌎",T_e="Ů",k_e="ů",L_e="◹",B_e="𝒰",O_e="𝓊",P_e="⋰",N_e="Ũ",I_e="ũ",R_e="▵",M_e="▴",z_e="⇈",U_e="Ü",H_e="ü",q_e="⦧",j_e="⦜",V_e="ϵ",W_e="ϰ",G_e="∅",K_e="ϕ",Q_e="ϖ",X_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="⋮",ESe="|",xSe="‖",CSe="|",_Se="‖",SSe="∣",FSe="|",$Se="❘",TSe="≀",kSe=" ",LSe="𝔙",BSe="𝔳",OSe="⊲",PSe="⊂⃒",NSe="⊃⃒",ISe="𝕍",RSe="𝕧",MSe="∝",zSe="⊳",USe="𝒱",HSe="𝓋",qSe="⫋︀",jSe="⊊︀",VSe="⫌︀",WSe="⊋︀",GSe="⊪",KSe="⦚",QSe="Ŵ",XSe="ŵ",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="⟸",EFe="⟼",xFe="⋻",CFe="⨀",_Fe="𝕏",SFe="𝕩",FFe="⨁",$Fe="⨂",TFe="⟶",kFe="⟹",LFe="𝒳",BFe="𝓍",OFe="⨆",PFe="⨄",NFe="△",IFe="⋁",RFe="⋀",MFe="Ý",zFe="ý",UFe="Я",HFe="я",qFe="Ŷ",jFe="ŷ",VFe="Ы",WFe="ы",GFe="¥",KFe="𝔜",QFe="𝔶",XFe="Ї",YFe="ї",ZFe="𝕐",JFe="𝕪",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="⇝",E$e="𝕫",x$e="ℤ",C$e="𝒵",_$e="𝓏",S$e="",F$e="",A_={Aacute:hW,aacute:dW,Abreve:pW,abreve:gW,ac:vW,acd:mW,acE:yW,Acirc:bW,acirc:wW,acute:DW,Acy:AW,acy:EW,AElig:xW,aelig:CW,af:_W,Afr:SW,afr:FW,Agrave:$W,agrave:TW,alefsym:kW,aleph:LW,Alpha:BW,alpha:OW,Amacr:PW,amacr:NW,amalg:IW,amp:RW,AMP:MW,andand:zW,And:UW,and:HW,andd:qW,andslope:jW,andv:VW,ang:WW,ange:GW,angle:KW,angmsdaa:QW,angmsdab:XW,angmsdac:YW,angmsdad:ZW,angmsdae:JW,angmsdaf:eG,angmsdag:tG,angmsdah:nG,angmsd:rG,angrt:iG,angrtvb:sG,angrtvbd:oG,angsph:aG,angst:uG,angzarr:lG,Aogon:cG,aogon:fG,Aopf:hG,aopf:dG,apacir:pG,ap:gG,apE:vG,ape:mG,apid:yG,apos:bG,ApplyFunction:wG,approx:DG,approxeq:AG,Aring:EG,aring:xG,Ascr:CG,ascr:_G,Assign:SG,ast:FG,asymp:$G,asympeq:TG,Atilde:kG,atilde:LG,Auml:BG,auml:OG,awconint:PG,awint:NG,backcong:IG,backepsilon:RG,backprime:MG,backsim:zG,backsimeq:UG,Backslash:HG,Barv:qG,barvee:jG,barwed:VG,Barwed:WG,barwedge:GG,bbrk:KG,bbrktbrk:QG,bcong:XG,Bcy:YG,bcy:ZG,bdquo:JG,becaus:eK,because:tK,Because:nK,bemptyv:rK,bepsi:iK,bernou:sK,Bernoullis:oK,Beta:aK,beta:uK,beth:lK,between:cK,Bfr:fK,bfr:hK,bigcap:dK,bigcirc:pK,bigcup:gK,bigodot:vK,bigoplus:mK,bigotimes:yK,bigsqcup:bK,bigstar:wK,bigtriangledown:DK,bigtriangleup:AK,biguplus:EK,bigvee:xK,bigwedge:CK,bkarow:_K,blacklozenge:SK,blacksquare:FK,blacktriangle:$K,blacktriangledown:TK,blacktriangleleft:kK,blacktriangleright:LK,blank:BK,blk12:OK,blk14:PK,blk34:NK,block:IK,bne:RK,bnequiv:MK,bNot:zK,bnot:UK,Bopf:HK,bopf:qK,bot:jK,bottom:VK,bowtie:WK,boxbox:GK,boxdl:KK,boxdL:QK,boxDl:XK,boxDL:YK,boxdr:ZK,boxdR:JK,boxDr:eQ,boxDR:tQ,boxh:nQ,boxH:rQ,boxhd:iQ,boxHd:sQ,boxhD:oQ,boxHD:aQ,boxhu:uQ,boxHu:lQ,boxhU:cQ,boxHU:fQ,boxminus:hQ,boxplus:dQ,boxtimes:pQ,boxul:gQ,boxuL:vQ,boxUl:mQ,boxUL:yQ,boxur:bQ,boxuR:wQ,boxUr:DQ,boxUR:AQ,boxv:EQ,boxV:xQ,boxvh:CQ,boxvH:_Q,boxVh:SQ,boxVH:FQ,boxvl:$Q,boxvL:TQ,boxVl:kQ,boxVL:LQ,boxvr:BQ,boxvR:OQ,boxVr:PQ,boxVR:NQ,bprime:IQ,breve:RQ,Breve:MQ,brvbar:zQ,bscr:UQ,Bscr:HQ,bsemi:qQ,bsim:jQ,bsime:VQ,bsolb:WQ,bsol:GQ,bsolhsub:KQ,bull:QQ,bullet:XQ,bump:YQ,bumpE:ZQ,bumpe:JQ,Bumpeq:eX,bumpeq:tX,Cacute:nX,cacute:rX,capand:iX,capbrcup:sX,capcap:oX,cap:aX,Cap:uX,capcup:lX,capdot:cX,CapitalDifferentialD:fX,caps:hX,caret:dX,caron:pX,Cayleys:gX,ccaps:vX,Ccaron:mX,ccaron:yX,Ccedil:bX,ccedil:wX,Ccirc:DX,ccirc:AX,Cconint:EX,ccups:xX,ccupssm:CX,Cdot:_X,cdot:SX,cedil:FX,Cedilla:$X,cemptyv:TX,cent:kX,centerdot:LX,CenterDot:BX,cfr:OX,Cfr:PX,CHcy:NX,chcy:IX,check:RX,checkmark:MX,Chi:zX,chi:UX,circ:HX,circeq:qX,circlearrowleft:jX,circlearrowright:VX,circledast:WX,circledcirc:GX,circleddash:KX,CircleDot:QX,circledR:XX,circledS:YX,CircleMinus:ZX,CirclePlus:JX,CircleTimes:eY,cir:tY,cirE:nY,cire:rY,cirfnint:iY,cirmid:sY,cirscir:oY,ClockwiseContourIntegral:aY,CloseCurlyDoubleQuote:uY,CloseCurlyQuote:lY,clubs:cY,clubsuit:fY,colon:hY,Colon:dY,Colone:pY,colone:gY,coloneq:vY,comma:mY,commat:yY,comp:bY,compfn:wY,complement:DY,complexes:AY,cong:EY,congdot:xY,Congruent:CY,conint:_Y,Conint:SY,ContourIntegral:FY,copf:$Y,Copf:TY,coprod:kY,Coproduct:LY,copy:BY,COPY:OY,copysr:PY,CounterClockwiseContourIntegral:NY,crarr:IY,cross:RY,Cross:MY,Cscr:zY,cscr:UY,csub:HY,csube:qY,csup:jY,csupe:VY,ctdot:WY,cudarrl:GY,cudarrr:KY,cuepr:QY,cuesc:XY,cularr:YY,cularrp:ZY,cupbrcap:JY,cupcap:eZ,CupCap:tZ,cup:nZ,Cup:rZ,cupcup:iZ,cupdot:sZ,cupor:oZ,cups:aZ,curarr:uZ,curarrm:lZ,curlyeqprec:cZ,curlyeqsucc:fZ,curlyvee:hZ,curlywedge:dZ,curren:pZ,curvearrowleft:gZ,curvearrowright:vZ,cuvee:mZ,cuwed:yZ,cwconint:bZ,cwint:wZ,cylcty:DZ,dagger:AZ,Dagger:EZ,daleth:xZ,darr:CZ,Darr:_Z,dArr:SZ,dash:FZ,Dashv:$Z,dashv:TZ,dbkarow:kZ,dblac:LZ,Dcaron:BZ,dcaron:OZ,Dcy:PZ,dcy:NZ,ddagger:IZ,ddarr:RZ,DD:MZ,dd:zZ,DDotrahd:UZ,ddotseq:HZ,deg:qZ,Del:jZ,Delta:VZ,delta:WZ,demptyv:GZ,dfisht:KZ,Dfr:QZ,dfr:XZ,dHar:YZ,dharl:ZZ,dharr:JZ,DiacriticalAcute:eJ,DiacriticalDot:tJ,DiacriticalDoubleAcute:nJ,DiacriticalGrave:rJ,DiacriticalTilde:iJ,diam:sJ,diamond:oJ,Diamond:aJ,diamondsuit:uJ,diams:lJ,die:cJ,DifferentialD:fJ,digamma:hJ,disin:dJ,div:pJ,divide:gJ,divideontimes:vJ,divonx:mJ,DJcy:yJ,djcy:bJ,dlcorn:wJ,dlcrop:DJ,dollar:AJ,Dopf:EJ,dopf:xJ,Dot:CJ,dot:_J,DotDot:SJ,doteq:FJ,doteqdot:$J,DotEqual:TJ,dotminus:kJ,dotplus:LJ,dotsquare:BJ,doublebarwedge:OJ,DoubleContourIntegral:PJ,DoubleDot:NJ,DoubleDownArrow:IJ,DoubleLeftArrow:RJ,DoubleLeftRightArrow:MJ,DoubleLeftTee:zJ,DoubleLongLeftArrow:UJ,DoubleLongLeftRightArrow:HJ,DoubleLongRightArrow:qJ,DoubleRightArrow:jJ,DoubleRightTee:VJ,DoubleUpArrow:WJ,DoubleUpDownArrow:GJ,DoubleVerticalBar:KJ,DownArrowBar:QJ,downarrow:XJ,DownArrow:YJ,Downarrow:ZJ,DownArrowUpArrow:JJ,DownBreve:eee,downdownarrows:tee,downharpoonleft:nee,downharpoonright:ree,DownLeftRightVector:iee,DownLeftTeeVector:see,DownLeftVectorBar:oee,DownLeftVector:aee,DownRightTeeVector:uee,DownRightVectorBar:lee,DownRightVector:cee,DownTeeArrow:fee,DownTee:hee,drbkarow:dee,drcorn:pee,drcrop:gee,Dscr:vee,dscr:mee,DScy:yee,dscy:bee,dsol:wee,Dstrok:Dee,dstrok:Aee,dtdot:Eee,dtri:xee,dtrif:Cee,duarr:_ee,duhar:See,dwangle:Fee,DZcy:$ee,dzcy:Tee,dzigrarr:kee,Eacute:Lee,eacute:Bee,easter:Oee,Ecaron:Pee,ecaron:Nee,Ecirc:Iee,ecirc:Ree,ecir:Mee,ecolon:zee,Ecy:Uee,ecy:Hee,eDDot:qee,Edot:jee,edot:Vee,eDot:Wee,ee:Gee,efDot:Kee,Efr:Qee,efr:Xee,eg:Yee,Egrave:Zee,egrave:Jee,egs:ete,egsdot:tte,el:nte,Element:rte,elinters:ite,ell:ste,els:ote,elsdot:ate,Emacr:ute,emacr:lte,empty:cte,emptyset:fte,EmptySmallSquare:hte,emptyv:dte,EmptyVerySmallSquare:pte,emsp13:gte,emsp14:vte,emsp:mte,ENG:yte,eng:bte,ensp:wte,Eogon:Dte,eogon:Ate,Eopf:Ete,eopf:xte,epar:Cte,eparsl:_te,eplus:Ste,epsi:Fte,Epsilon:$te,epsilon:Tte,epsiv:kte,eqcirc:Lte,eqcolon:Bte,eqsim:Ote,eqslantgtr:Pte,eqslantless:Nte,Equal:Ite,equals:Rte,EqualTilde:Mte,equest:zte,Equilibrium:Ute,equiv:Hte,equivDD:qte,eqvparsl:jte,erarr:Vte,erDot:Wte,escr:Gte,Escr:Kte,esdot:Qte,Esim:Xte,esim:Yte,Eta:Zte,eta:Jte,ETH:ene,eth:tne,Euml:nne,euml:rne,euro:ine,excl:sne,exist:one,Exists:ane,expectation:une,exponentiale:lne,ExponentialE:cne,fallingdotseq:fne,Fcy:hne,fcy:dne,female:pne,ffilig:gne,fflig:vne,ffllig:mne,Ffr:yne,ffr:bne,filig:wne,FilledSmallSquare:Dne,FilledVerySmallSquare:Ane,fjlig:Ene,flat:xne,fllig:Cne,fltns:_ne,fnof:Sne,Fopf:Fne,fopf:$ne,forall:Tne,ForAll:kne,fork:Lne,forkv:Bne,Fouriertrf:One,fpartint:Pne,frac12:Nne,frac13:Ine,frac14:Rne,frac15:Mne,frac16:zne,frac18:Une,frac23:Hne,frac25:qne,frac34:jne,frac35:Vne,frac38:Wne,frac45:Gne,frac56:Kne,frac58:Qne,frac78:Xne,frasl:Yne,frown:Zne,fscr:Jne,Fscr:ere,gacute:tre,Gamma:nre,gamma:rre,Gammad:ire,gammad:sre,gap:ore,Gbreve:are,gbreve:ure,Gcedil:lre,Gcirc:cre,gcirc:fre,Gcy:hre,gcy:dre,Gdot:pre,gdot:gre,ge:vre,gE:mre,gEl:yre,gel:bre,geq:wre,geqq:Dre,geqslant:Are,gescc:Ere,ges:xre,gesdot:Cre,gesdoto:_re,gesdotol:Sre,gesl:Fre,gesles:$re,Gfr:Tre,gfr:kre,gg:Lre,Gg:Bre,ggg:Ore,gimel:Pre,GJcy:Nre,gjcy:Ire,gla:Rre,gl:Mre,glE:zre,glj:Ure,gnap:Hre,gnapprox:qre,gne:jre,gnE:Vre,gneq:Wre,gneqq:Gre,gnsim:Kre,Gopf:Qre,gopf:Xre,grave:Yre,GreaterEqual:Zre,GreaterEqualLess:Jre,GreaterFullEqual:eie,GreaterGreater:tie,GreaterLess:nie,GreaterSlantEqual:rie,GreaterTilde:iie,Gscr:sie,gscr:oie,gsim:aie,gsime:uie,gsiml:lie,gtcc:cie,gtcir:fie,gt:hie,GT:die,Gt:pie,gtdot:gie,gtlPar:vie,gtquest:mie,gtrapprox:yie,gtrarr:bie,gtrdot:wie,gtreqless:Die,gtreqqless:Aie,gtrless:Eie,gtrsim:xie,gvertneqq:Cie,gvnE:_ie,Hacek:Sie,hairsp:Fie,half:$ie,hamilt:Tie,HARDcy:kie,hardcy:Lie,harrcir:Bie,harr:Oie,hArr:Pie,harrw:Nie,Hat:Iie,hbar:Rie,Hcirc:Mie,hcirc:zie,hearts:Uie,heartsuit:Hie,hellip:qie,hercon:jie,hfr:Vie,Hfr:Wie,HilbertSpace:Gie,hksearow:Kie,hkswarow:Qie,hoarr:Xie,homtht:Yie,hookleftarrow:Zie,hookrightarrow:Jie,hopf:ese,Hopf:tse,horbar:nse,HorizontalLine:rse,hscr:ise,Hscr:sse,hslash:ose,Hstrok:ase,hstrok:use,HumpDownHump:lse,HumpEqual:cse,hybull:fse,hyphen:hse,Iacute:dse,iacute:pse,ic:gse,Icirc:vse,icirc:mse,Icy:yse,icy:bse,Idot:wse,IEcy:Dse,iecy:Ase,iexcl:Ese,iff:xse,ifr:Cse,Ifr:_se,Igrave:Sse,igrave:Fse,ii:$se,iiiint:Tse,iiint:kse,iinfin:Lse,iiota:Bse,IJlig:Ose,ijlig:Pse,Imacr:Nse,imacr:Ise,image:Rse,ImaginaryI:Mse,imagline:zse,imagpart:Use,imath:Hse,Im:qse,imof:jse,imped:Vse,Implies:Wse,incare:Gse,in:"∈",infin:Kse,infintie:Qse,inodot:Xse,intcal:Yse,int:Zse,Int:Jse,integers:eoe,Integral:toe,intercal:noe,Intersection:roe,intlarhk:ioe,intprod:soe,InvisibleComma:ooe,InvisibleTimes:aoe,IOcy:uoe,iocy:loe,Iogon:coe,iogon:foe,Iopf:hoe,iopf:doe,Iota:poe,iota:goe,iprod:voe,iquest:moe,iscr:yoe,Iscr:boe,isin:woe,isindot:Doe,isinE:Aoe,isins:Eoe,isinsv:xoe,isinv:Coe,it:_oe,Itilde:Soe,itilde:Foe,Iukcy:$oe,iukcy:Toe,Iuml:koe,iuml:Loe,Jcirc:Boe,jcirc:Ooe,Jcy:Poe,jcy:Noe,Jfr:Ioe,jfr:Roe,jmath:Moe,Jopf:zoe,jopf:Uoe,Jscr:Hoe,jscr:qoe,Jsercy:joe,jsercy:Voe,Jukcy:Woe,jukcy:Goe,Kappa:Koe,kappa:Qoe,kappav:Xoe,Kcedil:Yoe,kcedil:Zoe,Kcy:Joe,kcy:eae,Kfr:tae,kfr:nae,kgreen:rae,KHcy:iae,khcy:sae,KJcy:oae,kjcy:aae,Kopf:uae,kopf:lae,Kscr:cae,kscr:fae,lAarr:hae,Lacute:dae,lacute:pae,laemptyv:gae,lagran:vae,Lambda:mae,lambda:yae,lang:bae,Lang:wae,langd:Dae,langle:Aae,lap:Eae,Laplacetrf:xae,laquo:Cae,larrb:_ae,larrbfs:Sae,larr:Fae,Larr:$ae,lArr:Tae,larrfs:kae,larrhk:Lae,larrlp:Bae,larrpl:Oae,larrsim:Pae,larrtl:Nae,latail:Iae,lAtail:Rae,lat:Mae,late:zae,lates:Uae,lbarr:Hae,lBarr:qae,lbbrk:jae,lbrace:Vae,lbrack:Wae,lbrke:Gae,lbrksld:Kae,lbrkslu:Qae,Lcaron:Xae,lcaron:Yae,Lcedil:Zae,lcedil:Jae,lceil:eue,lcub:tue,Lcy:nue,lcy:rue,ldca:iue,ldquo:sue,ldquor:oue,ldrdhar:aue,ldrushar:uue,ldsh:lue,le:cue,lE:fue,LeftAngleBracket:hue,LeftArrowBar:due,leftarrow:pue,LeftArrow:gue,Leftarrow:vue,LeftArrowRightArrow:mue,leftarrowtail:yue,LeftCeiling:bue,LeftDoubleBracket:wue,LeftDownTeeVector:Due,LeftDownVectorBar:Aue,LeftDownVector:Eue,LeftFloor:xue,leftharpoondown:Cue,leftharpoonup:_ue,leftleftarrows:Sue,leftrightarrow:Fue,LeftRightArrow:$ue,Leftrightarrow:Tue,leftrightarrows:kue,leftrightharpoons:Lue,leftrightsquigarrow:Bue,LeftRightVector:Oue,LeftTeeArrow:Pue,LeftTee:Nue,LeftTeeVector:Iue,leftthreetimes:Rue,LeftTriangleBar:Mue,LeftTriangle:zue,LeftTriangleEqual:Uue,LeftUpDownVector:Hue,LeftUpTeeVector:que,LeftUpVectorBar:jue,LeftUpVector:Vue,LeftVectorBar:Wue,LeftVector:Gue,lEg:Kue,leg:Que,leq:Xue,leqq:Yue,leqslant:Zue,lescc:Jue,les:ele,lesdot:tle,lesdoto:nle,lesdotor:rle,lesg:ile,lesges:sle,lessapprox:ole,lessdot:ale,lesseqgtr:ule,lesseqqgtr:lle,LessEqualGreater:cle,LessFullEqual:fle,LessGreater:hle,lessgtr:dle,LessLess:ple,lesssim:gle,LessSlantEqual:vle,LessTilde:mle,lfisht:yle,lfloor:ble,Lfr:wle,lfr:Dle,lg:Ale,lgE:Ele,lHar:xle,lhard:Cle,lharu:_le,lharul:Sle,lhblk:Fle,LJcy:$le,ljcy:Tle,llarr:kle,ll:Lle,Ll:Ble,llcorner:Ole,Lleftarrow:Ple,llhard:Nle,lltri:Ile,Lmidot:Rle,lmidot:Mle,lmoustache:zle,lmoust:Ule,lnap:Hle,lnapprox:qle,lne:jle,lnE:Vle,lneq:Wle,lneqq:Gle,lnsim:Kle,loang:Qle,loarr:Xle,lobrk:Yle,longleftarrow:Zle,LongLeftArrow:Jle,Longleftarrow:ece,longleftrightarrow:tce,LongLeftRightArrow:nce,Longleftrightarrow:rce,longmapsto:ice,longrightarrow:sce,LongRightArrow:oce,Longrightarrow:ace,looparrowleft:uce,looparrowright:lce,lopar:cce,Lopf:fce,lopf:hce,loplus:dce,lotimes:pce,lowast:gce,lowbar:vce,LowerLeftArrow:mce,LowerRightArrow:yce,loz:bce,lozenge:wce,lozf:Dce,lpar:Ace,lparlt:Ece,lrarr:xce,lrcorner:Cce,lrhar:_ce,lrhard:Sce,lrm:Fce,lrtri:$ce,lsaquo:Tce,lscr:kce,Lscr:Lce,lsh:Bce,Lsh:Oce,lsim:Pce,lsime:Nce,lsimg:Ice,lsqb:Rce,lsquo:Mce,lsquor:zce,Lstrok:Uce,lstrok:Hce,ltcc:qce,ltcir:jce,lt:Vce,LT:Wce,Lt:Gce,ltdot:Kce,lthree:Qce,ltimes:Xce,ltlarr:Yce,ltquest:Zce,ltri:Jce,ltrie:efe,ltrif:tfe,ltrPar:nfe,lurdshar:rfe,luruhar:ife,lvertneqq:sfe,lvnE:ofe,macr:afe,male:ufe,malt:lfe,maltese:cfe,Map:"⤅",map:ffe,mapsto:hfe,mapstodown:dfe,mapstoleft:pfe,mapstoup:gfe,marker:vfe,mcomma:mfe,Mcy:yfe,mcy:bfe,mdash:wfe,mDDot:Dfe,measuredangle:Afe,MediumSpace:Efe,Mellintrf:xfe,Mfr:Cfe,mfr:_fe,mho:Sfe,micro:Ffe,midast:$fe,midcir:Tfe,mid:kfe,middot:Lfe,minusb:Bfe,minus:Ofe,minusd:Pfe,minusdu:Nfe,MinusPlus:Ife,mlcp:Rfe,mldr:Mfe,mnplus:zfe,models:Ufe,Mopf:Hfe,mopf:qfe,mp:jfe,mscr:Vfe,Mscr:Wfe,mstpos:Gfe,Mu:Kfe,mu:Qfe,multimap:Xfe,mumap:Yfe,nabla:Zfe,Nacute:Jfe,nacute:ehe,nang:the,nap:nhe,napE:rhe,napid:ihe,napos:she,napprox:ohe,natural:ahe,naturals:uhe,natur:lhe,nbsp:che,nbump:fhe,nbumpe:hhe,ncap:dhe,Ncaron:phe,ncaron:ghe,Ncedil:vhe,ncedil:mhe,ncong:yhe,ncongdot:bhe,ncup:whe,Ncy:Dhe,ncy:Ahe,ndash:Ehe,nearhk:xhe,nearr:Che,neArr:_he,nearrow:She,ne:Fhe,nedot:$he,NegativeMediumSpace:The,NegativeThickSpace:khe,NegativeThinSpace:Lhe,NegativeVeryThinSpace:Bhe,nequiv:Ohe,nesear:Phe,nesim:Nhe,NestedGreaterGreater:Ihe,NestedLessLess:Rhe,NewLine:Mhe,nexist:zhe,nexists:Uhe,Nfr:Hhe,nfr:qhe,ngE:jhe,nge:Vhe,ngeq:Whe,ngeqq:Ghe,ngeqslant:Khe,nges:Qhe,nGg:Xhe,ngsim:Yhe,nGt:Zhe,ngt:Jhe,ngtr:ede,nGtv:tde,nharr:nde,nhArr:rde,nhpar:ide,ni:sde,nis:ode,nisd:ade,niv:ude,NJcy:lde,njcy:cde,nlarr:fde,nlArr:hde,nldr:dde,nlE:pde,nle:gde,nleftarrow:vde,nLeftarrow:mde,nleftrightarrow:yde,nLeftrightarrow:bde,nleq:wde,nleqq:Dde,nleqslant:Ade,nles:Ede,nless:xde,nLl:Cde,nlsim:_de,nLt:Sde,nlt:Fde,nltri:$de,nltrie:Tde,nLtv:kde,nmid:Lde,NoBreak:Bde,NonBreakingSpace:Ode,nopf:Pde,Nopf:Nde,Not:Ide,not:Rde,NotCongruent:Mde,NotCupCap:zde,NotDoubleVerticalBar:Ude,NotElement:Hde,NotEqual:qde,NotEqualTilde:jde,NotExists:Vde,NotGreater:Wde,NotGreaterEqual:Gde,NotGreaterFullEqual:Kde,NotGreaterGreater:Qde,NotGreaterLess:Xde,NotGreaterSlantEqual:Yde,NotGreaterTilde:Zde,NotHumpDownHump:Jde,NotHumpEqual:epe,notin:tpe,notindot:npe,notinE:rpe,notinva:ipe,notinvb:spe,notinvc:ope,NotLeftTriangleBar:ape,NotLeftTriangle:upe,NotLeftTriangleEqual:lpe,NotLess:cpe,NotLessEqual:fpe,NotLessGreater:hpe,NotLessLess:dpe,NotLessSlantEqual:ppe,NotLessTilde:gpe,NotNestedGreaterGreater:vpe,NotNestedLessLess:mpe,notni:ype,notniva:bpe,notnivb:wpe,notnivc:Dpe,NotPrecedes:Ape,NotPrecedesEqual:Epe,NotPrecedesSlantEqual:xpe,NotReverseElement:Cpe,NotRightTriangleBar:_pe,NotRightTriangle:Spe,NotRightTriangleEqual:Fpe,NotSquareSubset:$pe,NotSquareSubsetEqual:Tpe,NotSquareSuperset:kpe,NotSquareSupersetEqual:Lpe,NotSubset:Bpe,NotSubsetEqual:Ope,NotSucceeds:Ppe,NotSucceedsEqual:Npe,NotSucceedsSlantEqual:Ipe,NotSucceedsTilde:Rpe,NotSuperset:Mpe,NotSupersetEqual:zpe,NotTilde:Upe,NotTildeEqual:Hpe,NotTildeFullEqual:qpe,NotTildeTilde:jpe,NotVerticalBar:Vpe,nparallel:Wpe,npar:Gpe,nparsl:Kpe,npart:Qpe,npolint:Xpe,npr:Ype,nprcue:Zpe,nprec:Jpe,npreceq:e0e,npre:t0e,nrarrc:n0e,nrarr:r0e,nrArr:i0e,nrarrw:s0e,nrightarrow:o0e,nRightarrow:a0e,nrtri:u0e,nrtrie:l0e,nsc:c0e,nsccue:f0e,nsce:h0e,Nscr:d0e,nscr:p0e,nshortmid:g0e,nshortparallel:v0e,nsim:m0e,nsime:y0e,nsimeq:b0e,nsmid:w0e,nspar:D0e,nsqsube:A0e,nsqsupe:E0e,nsub:x0e,nsubE:C0e,nsube:_0e,nsubset:S0e,nsubseteq:F0e,nsubseteqq:$0e,nsucc:T0e,nsucceq:k0e,nsup:L0e,nsupE:B0e,nsupe:O0e,nsupset:P0e,nsupseteq:N0e,nsupseteqq:I0e,ntgl:R0e,Ntilde:M0e,ntilde:z0e,ntlg:U0e,ntriangleleft:H0e,ntrianglelefteq:q0e,ntriangleright:j0e,ntrianglerighteq:V0e,Nu:W0e,nu:G0e,num:K0e,numero:Q0e,numsp:X0e,nvap:Y0e,nvdash:Z0e,nvDash:J0e,nVdash:ege,nVDash:tge,nvge:nge,nvgt:rge,nvHarr:ige,nvinfin:sge,nvlArr:oge,nvle:age,nvlt:uge,nvltrie:lge,nvrArr:cge,nvrtrie:fge,nvsim:hge,nwarhk:dge,nwarr:pge,nwArr:gge,nwarrow:vge,nwnear:mge,Oacute:yge,oacute:bge,oast:wge,Ocirc:Dge,ocirc:Age,ocir:Ege,Ocy:xge,ocy:Cge,odash:_ge,Odblac:Sge,odblac:Fge,odiv:$ge,odot:Tge,odsold:kge,OElig:Lge,oelig:Bge,ofcir:Oge,Ofr:Pge,ofr:Nge,ogon:Ige,Ograve:Rge,ograve:Mge,ogt:zge,ohbar:Uge,ohm:Hge,oint:qge,olarr:jge,olcir:Vge,olcross:Wge,oline:Gge,olt:Kge,Omacr:Qge,omacr:Xge,Omega:Yge,omega:Zge,Omicron:Jge,omicron:eve,omid:tve,ominus:nve,Oopf:rve,oopf:ive,opar:sve,OpenCurlyDoubleQuote:ove,OpenCurlyQuote:ave,operp:uve,oplus:lve,orarr:cve,Or:fve,or:hve,ord:dve,order:pve,orderof:gve,ordf:vve,ordm:mve,origof:yve,oror:bve,orslope:wve,orv:Dve,oS:Ave,Oscr:Eve,oscr:xve,Oslash:Cve,oslash:_ve,osol:Sve,Otilde:Fve,otilde:$ve,otimesas:Tve,Otimes:kve,otimes:Lve,Ouml:Bve,ouml:Ove,ovbar:Pve,OverBar:Nve,OverBrace:Ive,OverBracket:Rve,OverParenthesis:Mve,para:zve,parallel:Uve,par:Hve,parsim:qve,parsl:jve,part:Vve,PartialD:Wve,Pcy:Gve,pcy:Kve,percnt:Qve,period:Xve,permil:Yve,perp:Zve,pertenk:Jve,Pfr:eme,pfr:tme,Phi:nme,phi:rme,phiv:ime,phmmat:sme,phone:ome,Pi:ame,pi:ume,pitchfork:lme,piv:cme,planck:fme,planckh:hme,plankv:dme,plusacir:pme,plusb:gme,pluscir:vme,plus:mme,plusdo:yme,plusdu:bme,pluse:wme,PlusMinus:Dme,plusmn:Ame,plussim:Eme,plustwo:xme,pm:Cme,Poincareplane:_me,pointint:Sme,popf:Fme,Popf:$me,pound:Tme,prap:kme,Pr:Lme,pr:Bme,prcue:Ome,precapprox:Pme,prec:Nme,preccurlyeq:Ime,Precedes:Rme,PrecedesEqual:Mme,PrecedesSlantEqual:zme,PrecedesTilde:Ume,preceq:Hme,precnapprox:qme,precneqq:jme,precnsim:Vme,pre:Wme,prE:Gme,precsim:Kme,prime:Qme,Prime:Xme,primes:Yme,prnap:Zme,prnE:Jme,prnsim:eye,prod:tye,Product:nye,profalar:rye,profline:iye,profsurf:sye,prop:oye,Proportional:aye,Proportion:uye,propto:lye,prsim:cye,prurel:fye,Pscr:hye,pscr:dye,Psi:pye,psi:gye,puncsp:vye,Qfr:mye,qfr:yye,qint:bye,qopf:wye,Qopf:Dye,qprime:Aye,Qscr:Eye,qscr:xye,quaternions:Cye,quatint:_ye,quest:Sye,questeq:Fye,quot:$ye,QUOT:Tye,rAarr:kye,race:Lye,Racute:Bye,racute:Oye,radic:Pye,raemptyv:Nye,rang:Iye,Rang:Rye,rangd:Mye,range:zye,rangle:Uye,raquo:Hye,rarrap:qye,rarrb:jye,rarrbfs:Vye,rarrc:Wye,rarr:Gye,Rarr:Kye,rArr:Qye,rarrfs:Xye,rarrhk:Yye,rarrlp:Zye,rarrpl:Jye,rarrsim:e1e,Rarrtl:t1e,rarrtl:n1e,rarrw:r1e,ratail:i1e,rAtail:s1e,ratio:o1e,rationals:a1e,rbarr:u1e,rBarr:l1e,RBarr:c1e,rbbrk:f1e,rbrace:h1e,rbrack:d1e,rbrke:p1e,rbrksld:g1e,rbrkslu:v1e,Rcaron:m1e,rcaron:y1e,Rcedil:b1e,rcedil:w1e,rceil:D1e,rcub:A1e,Rcy:E1e,rcy:x1e,rdca:C1e,rdldhar:_1e,rdquo:S1e,rdquor:F1e,rdsh:$1e,real:T1e,realine:k1e,realpart:L1e,reals:B1e,Re:O1e,rect:P1e,reg:N1e,REG:I1e,ReverseElement:R1e,ReverseEquilibrium:M1e,ReverseUpEquilibrium:z1e,rfisht:U1e,rfloor:H1e,rfr:q1e,Rfr:j1e,rHar:V1e,rhard:W1e,rharu:G1e,rharul:K1e,Rho:Q1e,rho:X1e,rhov:Y1e,RightAngleBracket:Z1e,RightArrowBar:J1e,rightarrow:ebe,RightArrow:tbe,Rightarrow:nbe,RightArrowLeftArrow:rbe,rightarrowtail:ibe,RightCeiling:sbe,RightDoubleBracket:obe,RightDownTeeVector:abe,RightDownVectorBar:ube,RightDownVector:lbe,RightFloor:cbe,rightharpoondown:fbe,rightharpoonup:hbe,rightleftarrows:dbe,rightleftharpoons:pbe,rightrightarrows:gbe,rightsquigarrow:vbe,RightTeeArrow:mbe,RightTee:ybe,RightTeeVector:bbe,rightthreetimes:wbe,RightTriangleBar:Dbe,RightTriangle:Abe,RightTriangleEqual:Ebe,RightUpDownVector:xbe,RightUpTeeVector:Cbe,RightUpVectorBar:_be,RightUpVector:Sbe,RightVectorBar:Fbe,RightVector:$be,ring:Tbe,risingdotseq:kbe,rlarr:Lbe,rlhar:Bbe,rlm:Obe,rmoustache:Pbe,rmoust:Nbe,rnmid:Ibe,roang:Rbe,roarr:Mbe,robrk:zbe,ropar:Ube,ropf:Hbe,Ropf:qbe,roplus:jbe,rotimes:Vbe,RoundImplies:Wbe,rpar:Gbe,rpargt:Kbe,rppolint:Qbe,rrarr:Xbe,Rrightarrow:Ybe,rsaquo:Zbe,rscr:Jbe,Rscr:ewe,rsh:twe,Rsh:nwe,rsqb:rwe,rsquo:iwe,rsquor:swe,rthree:owe,rtimes:awe,rtri:uwe,rtrie:lwe,rtrif:cwe,rtriltri:fwe,RuleDelayed:hwe,ruluhar:dwe,rx:pwe,Sacute:gwe,sacute:vwe,sbquo:mwe,scap:ywe,Scaron:bwe,scaron:wwe,Sc:Dwe,sc:Awe,sccue:Ewe,sce:xwe,scE:Cwe,Scedil:_we,scedil:Swe,Scirc:Fwe,scirc:$we,scnap:Twe,scnE:kwe,scnsim:Lwe,scpolint:Bwe,scsim:Owe,Scy:Pwe,scy:Nwe,sdotb:Iwe,sdot:Rwe,sdote:Mwe,searhk:zwe,searr:Uwe,seArr:Hwe,searrow:qwe,sect:jwe,semi:Vwe,seswar:Wwe,setminus:Gwe,setmn:Kwe,sext:Qwe,Sfr:Xwe,sfr:Ywe,sfrown:Zwe,sharp:Jwe,SHCHcy:eDe,shchcy:tDe,SHcy:nDe,shcy:rDe,ShortDownArrow:iDe,ShortLeftArrow:sDe,shortmid:oDe,shortparallel:aDe,ShortRightArrow:uDe,ShortUpArrow:lDe,shy:cDe,Sigma:fDe,sigma:hDe,sigmaf:dDe,sigmav:pDe,sim:gDe,simdot:vDe,sime:mDe,simeq:yDe,simg:bDe,simgE:wDe,siml:DDe,simlE:ADe,simne:EDe,simplus:xDe,simrarr:CDe,slarr:_De,SmallCircle:SDe,smallsetminus:FDe,smashp:$De,smeparsl:TDe,smid:kDe,smile:LDe,smt:BDe,smte:ODe,smtes:PDe,SOFTcy:NDe,softcy:IDe,solbar:RDe,solb:MDe,sol:zDe,Sopf:UDe,sopf:HDe,spades:qDe,spadesuit:jDe,spar:VDe,sqcap:WDe,sqcaps:GDe,sqcup:KDe,sqcups:QDe,Sqrt:XDe,sqsub:YDe,sqsube:ZDe,sqsubset:JDe,sqsubseteq:eAe,sqsup:tAe,sqsupe:nAe,sqsupset:rAe,sqsupseteq:iAe,square:sAe,Square:oAe,SquareIntersection:aAe,SquareSubset:uAe,SquareSubsetEqual:lAe,SquareSuperset:cAe,SquareSupersetEqual:fAe,SquareUnion:hAe,squarf:dAe,squ:pAe,squf:gAe,srarr:vAe,Sscr:mAe,sscr:yAe,ssetmn:bAe,ssmile:wAe,sstarf:DAe,Star:AAe,star:EAe,starf:xAe,straightepsilon:CAe,straightphi:_Ae,strns:SAe,sub:FAe,Sub:$Ae,subdot:TAe,subE:kAe,sube:LAe,subedot:BAe,submult:OAe,subnE:PAe,subne:NAe,subplus:IAe,subrarr:RAe,subset:MAe,Subset:zAe,subseteq:UAe,subseteqq:HAe,SubsetEqual:qAe,subsetneq:jAe,subsetneqq:VAe,subsim:WAe,subsub:GAe,subsup:KAe,succapprox:QAe,succ:XAe,succcurlyeq:YAe,Succeeds:ZAe,SucceedsEqual:JAe,SucceedsSlantEqual:eEe,SucceedsTilde:tEe,succeq:nEe,succnapprox:rEe,succneqq:iEe,succnsim:sEe,succsim:oEe,SuchThat:aEe,sum:uEe,Sum:lEe,sung:cEe,sup1:fEe,sup2:hEe,sup3:dEe,sup:pEe,Sup:gEe,supdot:vEe,supdsub:mEe,supE:yEe,supe:bEe,supedot:wEe,Superset:DEe,SupersetEqual:AEe,suphsol:EEe,suphsub:xEe,suplarr:CEe,supmult:_Ee,supnE:SEe,supne:FEe,supplus:$Ee,supset:TEe,Supset:kEe,supseteq:LEe,supseteqq:BEe,supsetneq:OEe,supsetneqq:PEe,supsim:NEe,supsub:IEe,supsup:REe,swarhk:MEe,swarr:zEe,swArr:UEe,swarrow:HEe,swnwar:qEe,szlig:jEe,Tab:VEe,target:WEe,Tau:GEe,tau:KEe,tbrk:QEe,Tcaron:XEe,tcaron:YEe,Tcedil:ZEe,tcedil:JEe,Tcy:exe,tcy:txe,tdot:nxe,telrec:rxe,Tfr:ixe,tfr:sxe,there4:oxe,therefore:axe,Therefore:uxe,Theta:lxe,theta:cxe,thetasym:fxe,thetav:hxe,thickapprox:dxe,thicksim:pxe,ThickSpace:gxe,ThinSpace:vxe,thinsp:mxe,thkap:yxe,thksim:bxe,THORN:wxe,thorn:Dxe,tilde:Axe,Tilde:Exe,TildeEqual:xxe,TildeFullEqual:Cxe,TildeTilde:_xe,timesbar:Sxe,timesb:Fxe,times:$xe,timesd:Txe,tint:kxe,toea:Lxe,topbot:Bxe,topcir:Oxe,top:Pxe,Topf:Nxe,topf:Ixe,topfork:Rxe,tosa:Mxe,tprime:zxe,trade:Uxe,TRADE:Hxe,triangle:qxe,triangledown:jxe,triangleleft:Vxe,trianglelefteq:Wxe,triangleq:Gxe,triangleright:Kxe,trianglerighteq:Qxe,tridot:Xxe,trie:Yxe,triminus:Zxe,TripleDot:Jxe,triplus:eCe,trisb:tCe,tritime:nCe,trpezium:rCe,Tscr:iCe,tscr:sCe,TScy:oCe,tscy:aCe,TSHcy:uCe,tshcy:lCe,Tstrok:cCe,tstrok:fCe,twixt:hCe,twoheadleftarrow:dCe,twoheadrightarrow:pCe,Uacute:gCe,uacute:vCe,uarr:mCe,Uarr:yCe,uArr:bCe,Uarrocir:wCe,Ubrcy:DCe,ubrcy:ACe,Ubreve:ECe,ubreve:xCe,Ucirc:CCe,ucirc:_Ce,Ucy:SCe,ucy:FCe,udarr:$Ce,Udblac:TCe,udblac:kCe,udhar:LCe,ufisht:BCe,Ufr:OCe,ufr:PCe,Ugrave:NCe,ugrave:ICe,uHar:RCe,uharl:MCe,uharr:zCe,uhblk:UCe,ulcorn:HCe,ulcorner:qCe,ulcrop:jCe,ultri:VCe,Umacr:WCe,umacr:GCe,uml:KCe,UnderBar:QCe,UnderBrace:XCe,UnderBracket:YCe,UnderParenthesis:ZCe,Union:JCe,UnionPlus:e_e,Uogon:t_e,uogon:n_e,Uopf:r_e,uopf:i_e,UpArrowBar:s_e,uparrow:o_e,UpArrow:a_e,Uparrow:u_e,UpArrowDownArrow:l_e,updownarrow:c_e,UpDownArrow:f_e,Updownarrow:h_e,UpEquilibrium:d_e,upharpoonleft:p_e,upharpoonright:g_e,uplus:v_e,UpperLeftArrow:m_e,UpperRightArrow:y_e,upsi:b_e,Upsi:w_e,upsih:D_e,Upsilon:A_e,upsilon:E_e,UpTeeArrow:x_e,UpTee:C_e,upuparrows:__e,urcorn:S_e,urcorner:F_e,urcrop:$_e,Uring:T_e,uring:k_e,urtri:L_e,Uscr:B_e,uscr:O_e,utdot:P_e,Utilde:N_e,utilde:I_e,utri:R_e,utrif:M_e,uuarr:z_e,Uuml:U_e,uuml:H_e,uwangle:q_e,vangrt:j_e,varepsilon:V_e,varkappa:W_e,varnothing:G_e,varphi:K_e,varpi:Q_e,varpropto:X_e,varr:Y_e,vArr:Z_e,varrho:J_e,varsigma:eSe,varsubsetneq:tSe,varsubsetneqq:nSe,varsupsetneq:rSe,varsupsetneqq:iSe,vartheta:sSe,vartriangleleft:oSe,vartriangleright:aSe,vBar:uSe,Vbar:lSe,vBarv:cSe,Vcy:fSe,vcy:hSe,vdash:dSe,vDash:pSe,Vdash:gSe,VDash:vSe,Vdashl:mSe,veebar:ySe,vee:bSe,Vee:wSe,veeeq:DSe,vellip:ASe,verbar:ESe,Verbar:xSe,vert:CSe,Vert:_Se,VerticalBar:SSe,VerticalLine:FSe,VerticalSeparator:$Se,VerticalTilde:TSe,VeryThinSpace:kSe,Vfr:LSe,vfr:BSe,vltri:OSe,vnsub:PSe,vnsup:NSe,Vopf:ISe,vopf:RSe,vprop:MSe,vrtri:zSe,Vscr:USe,vscr:HSe,vsubnE:qSe,vsubne:jSe,vsupnE:VSe,vsupne:WSe,Vvdash:GSe,vzigzag:KSe,Wcirc:QSe,wcirc:XSe,wedbar:YSe,wedge:ZSe,Wedge:JSe,wedgeq:eFe,weierp:tFe,Wfr:nFe,wfr:rFe,Wopf:iFe,wopf:sFe,wp:oFe,wr:aFe,wreath:uFe,Wscr:lFe,wscr:cFe,xcap:fFe,xcirc:hFe,xcup:dFe,xdtri:pFe,Xfr:gFe,xfr:vFe,xharr:mFe,xhArr:yFe,Xi:bFe,xi:wFe,xlarr:DFe,xlArr:AFe,xmap:EFe,xnis:xFe,xodot:CFe,Xopf:_Fe,xopf:SFe,xoplus:FFe,xotime:$Fe,xrarr:TFe,xrArr:kFe,Xscr:LFe,xscr:BFe,xsqcup:OFe,xuplus:PFe,xutri:NFe,xvee:IFe,xwedge:RFe,Yacute:MFe,yacute:zFe,YAcy:UFe,yacy:HFe,Ycirc:qFe,ycirc:jFe,Ycy:VFe,ycy:WFe,yen:GFe,Yfr:KFe,yfr:QFe,YIcy:XFe,yicy:YFe,Yopf:ZFe,yopf:JFe,Yscr:e$e,yscr:t$e,YUcy:n$e,yucy:r$e,yuml:i$e,Yuml:s$e,Zacute:o$e,zacute:a$e,Zcaron:u$e,zcaron:l$e,Zcy:c$e,zcy:f$e,Zdot:h$e,zdot:d$e,zeetrf:p$e,ZeroWidthSpace:g$e,Zeta:v$e,zeta:m$e,zfr:y$e,Zfr:b$e,ZHcy:w$e,zhcy:D$e,zigrarr:A$e,zopf:E$e,Zopf:x$e,Zscr:C$e,zscr:_$e,zwj:S$e,zwnj:F$e},$$e="Á",T$e="á",k$e="Â",L$e="â",B$e="´",O$e="Æ",P$e="æ",N$e="À",I$e="à",R$e="&",M$e="&",z$e="Å",U$e="å",H$e="Ã",q$e="ã",j$e="Ä",V$e="ä",W$e="¦",G$e="Ç",K$e="ç",Q$e="¸",X$e="¢",Y$e="©",Z$e="©",J$e="¤",e2e="°",t2e="÷",n2e="É",r2e="é",i2e="Ê",s2e="ê",o2e="È",a2e="è",u2e="Ð",l2e="ð",c2e="Ë",f2e="ë",h2e="½",d2e="¼",p2e="¾",g2e=">",v2e=">",m2e="Í",y2e="í",b2e="Î",w2e="î",D2e="¡",A2e="Ì",E2e="ì",x2e="¿",C2e="Ï",_2e="ï",S2e="«",F2e="<",$2e="<",T2e="¯",k2e="µ",L2e="·",B2e=" ",O2e="¬",P2e="Ñ",N2e="ñ",I2e="Ó",R2e="ó",M2e="Ô",z2e="ô",U2e="Ò",H2e="ò",q2e="ª",j2e="º",V2e="Ø",W2e="ø",G2e="Õ",K2e="õ",Q2e="Ö",X2e="ö",Y2e="¶",Z2e="±",J2e="£",eTe='"',tTe='"',nTe="»",rTe="®",iTe="®",sTe="§",oTe="",aTe="¹",uTe="²",lTe="³",cTe="ß",fTe="Þ",hTe="þ",dTe="×",pTe="Ú",gTe="ú",vTe="Û",mTe="û",yTe="Ù",bTe="ù",wTe="¨",DTe="Ü",ATe="ü",ETe="Ý",xTe="ý",CTe="¥",_Te="ÿ",STe={Aacute:$$e,aacute:T$e,Acirc:k$e,acirc:L$e,acute:B$e,AElig:O$e,aelig:P$e,Agrave:N$e,agrave:I$e,amp:R$e,AMP:M$e,Aring:z$e,aring:U$e,Atilde:H$e,atilde:q$e,Auml:j$e,auml:V$e,brvbar:W$e,Ccedil:G$e,ccedil:K$e,cedil:Q$e,cent:X$e,copy:Y$e,COPY:Z$e,curren:J$e,deg:e2e,divide:t2e,Eacute:n2e,eacute:r2e,Ecirc:i2e,ecirc:s2e,Egrave:o2e,egrave:a2e,ETH:u2e,eth:l2e,Euml:c2e,euml:f2e,frac12:h2e,frac14:d2e,frac34:p2e,gt:g2e,GT:v2e,Iacute:m2e,iacute:y2e,Icirc:b2e,icirc:w2e,iexcl:D2e,Igrave:A2e,igrave:E2e,iquest:x2e,Iuml:C2e,iuml:_2e,laquo:S2e,lt:F2e,LT:$2e,macr:T2e,micro:k2e,middot:L2e,nbsp:B2e,not:O2e,Ntilde:P2e,ntilde:N2e,Oacute:I2e,oacute:R2e,Ocirc:M2e,ocirc:z2e,Ograve:U2e,ograve:H2e,ordf:q2e,ordm:j2e,Oslash:V2e,oslash:W2e,Otilde:G2e,otilde:K2e,Ouml:Q2e,ouml:X2e,para:Y2e,plusmn:Z2e,pound:J2e,quot:eTe,QUOT:tTe,raquo:nTe,reg:rTe,REG:iTe,sect:sTe,shy:oTe,sup1:aTe,sup2:uTe,sup3:lTe,szlig:cTe,THORN:fTe,thorn:hTe,times:dTe,Uacute:pTe,uacute:gTe,Ucirc:vTe,ucirc:mTe,Ugrave:yTe,ugrave:bTe,uml:wTe,Uuml:DTe,uuml:ATe,Yacute:ETe,yacute:xTe,yen:CTe,yuml:_Te},FTe="&",$Te="'",TTe=">",kTe="<",LTe='"',E_={amp:FTe,apos:$Te,gt:TTe,lt:kTe,quot:LTe};var wv={};const BTe={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 OTe=sr&&sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wv,"__esModule",{value:!0});var bD=OTe(BTe),PTe=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 NTe(e){return e>=55296&&e<=57343||e>1114111?"�":(e in bD.default&&(e=bD.default[e]),PTe(e))}wv.default=NTe;var xh=sr&&sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yi,"__esModule",{value:!0});yi.decodeHTML=yi.decodeHTMLStrict=yi.decodeXML=void 0;var Qp=xh(A_),ITe=xh(STe),RTe=xh(E_),wD=xh(wv),MTe=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;yi.decodeXML=x_(RTe.default);yi.decodeHTMLStrict=x_(Qp.default);function x_(e){var t=C_(e);return function(n){return String(n).replace(MTe,t)}}var DD=function(e,t){return e<t?1:-1};yi.decodeHTML=function(){for(var e=Object.keys(ITe.default).sort(DD),t=Object.keys(Qp.default).sort(DD),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=C_(Qp.default);function c(h){return h.substr(-1)!==";"&&(h+=";"),a(h)}return function(h){return String(h).replace(o,c)}}();function C_(e){return function(n){if(n.charAt(1)==="#"){var i=n.charAt(2);return i==="X"||i==="x"?wD.default(parseInt(n.substr(3),16)):wD.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}var Kn={},__=sr&&sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.escapeUTF8=Kn.escape=Kn.encodeNonAsciiHTML=Kn.encodeHTML=Kn.encodeXML=void 0;var zTe=__(E_),S_=$_(zTe.default),F_=T_(S_);Kn.encodeXML=B_(S_);var UTe=__(A_),Dv=$_(UTe.default),HTe=T_(Dv);Kn.encodeHTML=jTe(Dv,HTe);Kn.encodeNonAsciiHTML=B_(Dv);function $_(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function T_(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 k_=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,qTe=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Ch(e){return"&#x"+(e.length>1?qTe(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function jTe(e,t){return function(n){return n.replace(t,function(i){return e[i]}).replace(k_,Ch)}}var L_=new RegExp(F_.source+"|"+k_.source,"g");function VTe(e){return e.replace(L_,Ch)}Kn.escape=VTe;function WTe(e){return e.replace(F_,Ch)}Kn.escapeUTF8=WTe;function B_(e){return function(t){return t.replace(L_,function(n){return e[n]||Ch(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=yi,n=Kn;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=Kn;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=yi;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}})})(D_);function GTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AD(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 KTe(e,t,n){return t&&AD(e.prototype,t),n&&AD(e,n),e}function O_(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=QTe(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.
|
|
13
|
+
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 QTe(e,t){if(!!e){if(typeof e=="string")return ED(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 ED(e,t)}}function ED(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 XTe=D_,xD={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:YTe()};function YTe(){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 _c(0,5).forEach(function(t){_c(0,5).forEach(function(n){_c(0,5).forEach(function(i){return ZTe(t,n,i,e)})})}),_c(0,23).forEach(function(t){var n=t+232,i=P_(t*10+8);e[n]="#"+i+i+i}),e}function ZTe(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]=JTe([a,c,h])}function P_(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function JTe(e){var t=[],n=O_(e),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;t.push(P_(o))}}catch(a){n.e(a)}finally{n.f()}return"#"+t.join("")}function CD(e,t,n,i){var o;return t==="text"?o=rke(n,i):t==="display"?o=tke(e,n,i):t==="xterm256Foreground"?o=Vc(e,i.colors[n]):t==="xterm256Background"?o=Wc(e,i.colors[n]):t==="rgb"&&(o=eke(e,n)),o}function eke(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 jc(e,(n===38?"color:#":"background-color:#")+o)}function tke(e,t,n){t=parseInt(t,10);var i={"-1":function(){return"<br/>"},0:function(){return e.length&&N_(e)},1:function(){return Qi(e,"b")},3:function(){return Qi(e,"i")},4:function(){return Qi(e,"u")},8:function(){return jc(e,"display:none")},9:function(){return Qi(e,"strike")},22:function(){return jc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return SD(e,"i")},24:function(){return SD(e,"u")},39:function(){return Vc(e,n.fg)},49:function(){return Wc(e,n.bg)},53:function(){return jc(e,"text-decoration:overline")}},o;return i[t]?o=i[t]():4<t&&t<7?o=Qi(e,"blink"):29<t&&t<38?o=Vc(e,n.colors[t-30]):39<t&&t<48?o=Wc(e,n.colors[t-40]):89<t&&t<98?o=Vc(e,n.colors[8+(t-90)]):99<t&&t<108&&(o=Wc(e,n.colors[8+(t-100)])),o}function N_(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(n){return"</"+n+">"}).join("")}function _c(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n}function nke(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function _D(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 rke(e,t){return t.escapeXML?XTe.encodeXML(e):e}function Qi(e,t,n){return n||(n=""),e.push(t),"<".concat(t).concat(n?' style="'.concat(n,'"'):"",">")}function jc(e,t){return Qi(e,"span",t)}function Vc(e,t){return Qi(e,"span","color:"+t)}function Wc(e,t){return Qi(e,"span","background-color:"+t)}function SD(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return"</"+t+">"}function ike(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 R=O_(M),W;try{for(R.s();!(W=R.n()).done;){var ie=W.value;n("display",ie)}}catch(ce){R.e(ce)}finally{R.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 A(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 x=0,S=0,O=m.length;S<O;x=++S){var B=m[x];if(A(B,x),e.length!==C){C=e.length;continue e}}if(e.length===C)break;$.push(0),C=e.length}return $}function ske(e,t,n){return t!=="text"&&(e=e.filter(nke(_D(n))),e.push({token:t,data:n,category:_D(n)})),e}var oke=function(){function e(t){GTe(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},xD.colors,t.colors)),this.options=Object.assign({},xD,t),this.stack=[],this.stickyStack=[]}return KTe(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=CD(o,h.token,h.data,a);d&&c.push(d)}),ike(n.join(""),a,function(h,d){var p=CD(o,h,d,a);p&&c.push(p),a.stream&&(i.stickyStack=ske(i.stickyStack,h,d))}),o.length&&c.push(N_(o)),c.join("")}}]),e}(),ake=oke;function uke(e,t){return t&&e.endsWith(t)}async function I_(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function R_(e){return new ake({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}const lke={class:"scrolls scrolls-rounded task-error"},cke=["onClickPassive"],fke={key:0},hke=st({__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 JV(t.error.actual,t.error.expected)}return(a,c)=>{const h=Gs("tooltip");return de(),ke("div",lke,[ve("pre",null,[ve("b",null,Xe(e.error.name||e.error.nameStr),1),Cn(": "+Xe(e.error.message),1)]),(de(!0),ke(ft,null,yr(e.error.stacks,(d,p)=>(de(),ke("div",{key:p,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ve("pre",null," - "+Xe(n(d.file))+":"+Xe(d.line)+":"+Xe(d.column),1),X(uke)(d.file,e.filename)?Fn((de(),ke("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=>X(I_)(d.file,d.line,d.column)},null,40,cke)),[[h,"Open in Editor",void 0,{bottom:!0}]]):ut("",!0)]))),128)),X(i)?(de(),ke("pre",fke," "+Xe(`
|
|
14
|
+
${o()}`)+`
|
|
15
|
+
`,1)):ut("",!0)])}}});const dke=Ks(hke,[["__scopeId","data-v-b52f98f6"]]),_h=AO(),pke=OB(_h),gke={"h-full":"",class:"scrolls"},vke={key:0,class:"scrolls scrolls-rounded task-error"},mke=["innerHTML"],yke={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},bke=st({__name:"ViewReport",props:{file:null},setup(e){const t=e;function n(h,d){var p;return((p=h.result)==null?void 0:p.state)!=="fail"?[]:h.type==="test"||h.type==="custom"?[{...h,level:d}]:[{...h,level:d},...h.tasks.flatMap(g=>n(g,d+1))]}function i(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(h,d){var y,m;let p="";d.message.includes("\x1B")&&(p=`<b>${d.nameStr||d.name}</b>: ${h.toHtml(i(d.message))}`);const g=(y=d.stackStr)==null?void 0:y.includes("\x1B");return(g||((m=d.stack)==null?void 0: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=R_(h);return d.map(g=>{var A;const y=g.result;if(!y)return g;const m=(A=y.errors)==null?void 0:A.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(A=>n(A,0)))??[],p=h==null?void 0:h.result;if((m=p==null?void 0:p.errors)==null?void 0:m[0]){const A={id:h.id,name:h.name,level:0,type:"suite",mode:"run",tasks:[],result:p};d.unshift(A)}return d.length>0?a(_h.value,d):d});return(h,d)=>(de(),ke("div",gke,[X(c).length?(de(!0),ke(ft,{key:0},yr(X(c),p=>{var g,y,m;return de(),ke("div",{key:p.id},[ve("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:zn({"margin-left":`${(g=p.result)!=null&&g.htmlError?.5:2*p.level+.5}rem`})},[Cn(Xe(p.name)+" ",1),(y=p.result)!=null&&y.htmlError?(de(),ke("div",vke,[ve("pre",{innerHTML:p.result.htmlError},null,8,mke)])):(m=p.result)!=null&&m.errors?(de(!0),ke(ft,{key:1},yr(p.result.errors,(A,$)=>{var L;return de(),et(dke,{key:$,error:A,filename:(L=e.file)==null?void 0:L.name,root:X(y_).root},null,8,["error","filename","root"])}),128)):ut("",!0)],4)])}),128)):(de(),ke("div",yke," All tests passed in this file "))]))}});const wke=Ks(bke,[["__scopeId","data-v-1988b97e"]]),Dke={border:"b base","p-4":""},Ake=["innerHTML"],Eke=["textContent"],xke=st({__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(),ke("div",Dke,[ve("div",{"text-xs":"","mb-1":"",class:yt(t.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Xe(n(t.time))+" | "+Xe(t.taskName)+" | "+Xe(t.type),3),t.html?(de(),ke("pre",{key:0,"data-type":"html",innerHTML:t.content},null,8,Ake)):(de(),ke("pre",{key:1,"data-type":"text",textContent:Xe(t.content)},null,8,Eke))]))}}),Cke={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},_ke={key:1,p6:""},Ske=ve("pre",{inline:""},"console.log(foo)",-1),Fke=st({__name:"ViewConsoleOutput",setup(e){const t=xe(()=>{const i=b_.value;if(i){const o=R_(_h.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&&rn.state.idMap.get(i);return o?eW(o).slice(1).join(" > "):"-"}return(i,o)=>{var c;const a=xke;return(c=X(t))!=null&&c.length?(de(),ke("div",Cke,[(de(!0),ke(ft,null,yr(X(t),({taskId:h,type:d,time:p,html:g,content:y})=>(de(),ke("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(),ke("p",_ke,[Cn(" Log something in your test and it would print here. (e.g. "),Ske,Cn(") ")]))}}});var rp={exports:{}},FD;function Ea(){return FD||(FD=1,function(e,t){(function(n,i){e.exports=i()})(sr,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),A=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),x=/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),R=/win/i.test(i),W=$&&n.match(/Version\/(\d*\.\d*)/);W&&(W=Number(W[1])),W&&W>=15&&($=!1,g=!0);var ie=k&&(y||$&&(W==null||W<12.11)),ce=o||d&&p>=9;function Y(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var U=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 z(r,s,l,u){var f=D(r,s,l,u);return f.setAttribute("role","presentation"),f}var j;document.createRange?j=function(r,s,l,u){var f=document.createRange();return f.setEnd(u||r,l),f.setStart(r,s),f}:j=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 ae(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 me(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 Fe=function(r){r.select()};S?Fe=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:d&&(Fe=function(r){try{r.select()}catch{}});function je(r){return r.display.wrapper.ownerDocument}function tt(r){return je(r).defaultView}function re(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 w=r.indexOf(" ",v);if(w<0||w>=s)return b+(s-v);b+=w-v,b+=l-b%l,v=w+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=re(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 _e(r,s){for(var l=0;l<r.length;++l)if(r[l]==s)return l;return-1}var vt=50,Te={toString:function(){return"CodeMirror.Pass"}},I={scroll:!1},G={origin:"*mouse"},ne={origin:"+move"};function oe(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 le=[""];function ye(r){for(;le.length<=r;)le.push(he(le)+" ");return le[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 pe(){}function Ne(r,s){var l;return Object.create?l=Object.create(r):(pe.prototype=r,l=new pe),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 nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Je(r){return r.charCodeAt(0)>=768&&nt.test(r)}function ct(r,s,l){for(;(l<0?s>0:s<r.length)&&Je(r.charAt(s));)s+=l;return s}function Ye(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 Ln(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 qn=null;function Jt(r,s,l){var u;qn=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:qn=f),v.from==s&&(v.from!=v.to&&l!="before"?u=f:qn=f)}return u??qn}var Js=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]/,w=/[1n]/;function E(_,N,H){this.level=_,this.from=N,this.to=H}return function(_,N){var H=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!u.test(_))return!1;for(var Q=_.length,K=[],te=0;te<Q;++te)K.push(l(_.charCodeAt(te)));for(var ue=0,ge=H;ue<Q;++ue){var we=K[ue];we=="m"?K[ue]=ge:ge=we}for(var Ce=0,De=H;Ce<Q;++Ce){var Se=K[Ce];Se=="1"&&De=="r"?K[Ce]="n":v.test(Se)&&(De=Se,Se=="r"&&(K[Ce]="R"))}for(var Ie=1,Oe=K[0];Ie<Q-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<Q;++mt){var Wt=K[mt];if(Wt==",")K[mt]="N";else if(Wt=="%"){var St=void 0;for(St=mt+1;St<Q&&K[St]=="%";++St);for(var Pn=mt&&K[mt-1]=="!"||St<Q&&K[St]=="1"?"1":"N",Dn=mt;Dn<St;++Dn)K[Dn]=Pn;mt=St-1}}for(var Nt=0,An=H;Nt<Q;++Nt){var en=K[Nt];An=="L"&&en=="1"?K[Nt]="L":v.test(en)&&(An=en)}for(var Ht=0;Ht<Q;++Ht)if(f.test(K[Ht])){var It=void 0;for(It=Ht+1;It<Q&&f.test(K[It]);++It);for(var kt=(Ht?K[Ht-1]:H)=="L",En=(It<Q?K[It]:H)=="L",Do=kt==En?kt?"L":"R":H,zi=Ht;zi<It;++zi)K[zi]=Do;Ht=It-1}for(var un=[],Or,Gt=0;Gt<Q;)if(b.test(K[Gt])){var Ed=Gt;for(++Gt;Gt<Q&&b.test(K[Gt]);++Gt);un.push(new E(0,Ed,Gt))}else{var si=Gt,ms=un.length,ys=N=="rtl"?1:0;for(++Gt;Gt<Q&&K[Gt]!="L";++Gt);for(var pn=si;pn<Gt;)if(w.test(K[pn])){si<pn&&(un.splice(ms,0,new E(1,si,pn)),ms+=ys);var Ao=pn;for(++pn;pn<Gt&&w.test(K[pn]);++pn);un.splice(ms,0,new E(2,Ao,pn)),ms+=ys,si=pn}else++pn;si<Gt&&un.splice(ms,0,new E(1,si,Gt))}return N=="ltr"&&(un[0].level==1&&(Or=_.match(/^\s+/))&&(un[0].from=Or[0].length,un.unshift(new E(0,0,Or[0].length))),he(un).level==1&&(Or=_.match(/\s+$/))&&(he(un).to-=Or[0].length,un.push(new E(0,Q-Or[0].length,Q)))),N=="rtl"?un.reverse():un}}();function Dt(r,s){var l=r.order;return l==null&&(l=r.order=Js(r.text,s)),l}var mn=[],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]||mn).concat(l)}};function Ca(r,s){return r._handlers&&r._handlers[s]||mn}function sn(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=_e(f,l);v>-1&&(u[s]=f.slice(0,v).concat(f.slice(v+1)))}}}function wt(r,s){var l=Ca(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 $t(r,s,l){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),wt(r,l||s.type,r,s),_a(s)||s.codemirrorIgnore}function Dl(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)_e(l,s[u])==-1&&l.push(s[u])}function fn(r,s){return Ca(r,s).length>0}function hn(r){r.prototype.on=function(s,l){Ae(this,s,l)},r.prototype.off=function(s,l){sn(this,s,l)}}function on(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function us(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function _a(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Xr(r){on(r),us(r)}function yn(r){return r.target||r.srcElement}function Sa(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 Th=function(){if(d&&p<9)return!1;var r=D("div");return"draggable"in r||"dragDrop"in r}(),Jn;function kh(r){if(Jn==null){var s=D("span","");F(r,D("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Jn=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&p<8))}var l=Jn?D("span",""):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var eo;function Al(r){if(eo!=null)return eo;var s=F(r,document.createTextNode("AخA")),l=j(s,0,1).getBoundingClientRect(),u=j(s,1,2).getBoundingClientRect();return P(r),!l||l.left==l.right?!1:eo=u.right-l.right<3}var Fa=`
|
|
16
|
+
|
|
17
|
+
b`.split(/\n/).length!=3?function(r){for(var s=0,l=[],u=r.length;s<=u;){var f=r.indexOf(`
|
|
18
|
+
`,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/)},Fi=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},Fr=function(){var r=D("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),$r=null;function El(r){if($r!=null)return $r;var s=F(r,D("span","x")),l=s.getBoundingClientRect(),u=j(s,0,1).getBoundingClientRect();return $r=Math.abs(l.left-u.left)>1}var ur={},$i={};function xl(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),ur[r]=s}function to(r,s){$i[r]=s}function Bn(r){if(typeof r=="string"&&$i.hasOwnProperty(r))r=$i[r];else if(r&&typeof r.name=="string"&&$i.hasOwnProperty(r.name)){var s=$i[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 Bn("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return Bn("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function Yr(r,s){s=Bn(s);var l=ur[s.name];if(!l)return Yr(r,"text/plain");var u=l(r,s);if(Ti.hasOwnProperty(s.name)){var f=Ti[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 Ti={};function Cl(r,s){var l=Ti.hasOwnProperty(r)?Ti[r]:Ti[r]={};se(s,l)}function Zr(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 ki(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 $a(r,s,l){return r.startState?r.startState(s,l):!0}var Tt=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};Tt.prototype.eol=function(){return this.pos>=this.string.length},Tt.prototype.sol=function(){return this.pos==this.lineStart},Tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Tt.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},Tt.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},Tt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},Tt.prototype.skipToEnd=function(){this.pos=this.string.length},Tt.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},Tt.prototype.backUp=function(r){this.pos-=r},Tt.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)},Tt.prototype.indentation=function(){return J(this.string,null,this.tabSize)-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},Tt.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)}},Tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Tt.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},Tt.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},Tt.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 Jr(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 no(r,s,l){var u=[];return r.iter(s,l,function(f){u.push(f.text)}),u}function er(r,s){var l=s-r.height;if(l)for(var u=r;u;u=u.parent)u.height+=l}function ot(r){if(r.parent==null)return null;for(var s=r.parent,l=_e(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 Tr(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 w=r.lines[b],E=w.height;if(s<E)break;s-=E}return l+b}function T(r,s){return s>=r.first&&s<r.first+r.size}function q(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function V(r,s,l){if(l===void 0&&(l=null),!(this instanceof V))return new V(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 ze(r,s){return r.sticky==s.sticky&&ee(r,s)==0}function Ke(r){return V(r.line,r.ch)}function rt(r,s){return ee(r,s)<0?s:r}function Ut(r,s){return ee(r,s)<0?r:s}function jn(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function Ue(r,s){if(s.line<r.first)return V(r.first,0);var l=r.first+r.size-1;return s.line>l?V(l,Le(r,l).text.length):$S(s,Le(r,s.line).text.length)}function $S(r,s){var l=r.ch;return l==null||l>s?V(r.line,s):l<0?V(r.line,0):r}function Iv(r,s){for(var l=[],u=0;u<s.length;u++)l[u]=Ue(r,s[u]);return l}var _l=function(r,s){this.state=r,this.lookAhead=s},kr=function(r,s,l,u){this.state=s,this.doc=r,this.line=l,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};kr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},kr.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}},kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kr.fromSaved=function(r,s,l){return s instanceof _l?new kr(r,Zr(r.mode,s.state),l,s.lookAhead):new kr(r,Zr(r.mode,s),l)},kr.prototype.save=function(r){var s=r!==!1?Zr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _l(s,this.maxLookAhead):s};function Rv(r,s,l,u){var f=[r.state.modeGen],v={};jv(r,s.text,r.doc.mode,l,function(_,N){return f.push(_,N)},v,u);for(var b=l.state,w=function(_){l.baseTokens=f;var N=r.state.overlays[_],H=1,Q=0;l.state=!0,jv(r,s.text,N.mode,l,function(K,te){for(var ue=H;Q<K;){var ge=f[H];ge>K&&f.splice(H,1,K,f[H+1],ge),H+=2,Q=Math.min(K,ge)}if(!!te)if(N.opaque)f.splice(ue,H-ue,K,"overlay "+te),H=ue+2;else for(;ue<H;ue+=2){var we=f[ue+1];f[ue+1]=(we?we+" ":"")+"overlay "+te}},v),l.state=b,l.baseTokens=null,l.baseTokenPos=1},E=0;E<r.state.overlays.length;++E)w(E);return{styles:f,classes:v.bgClass||v.textClass?v:null}}function Mv(r,s,l){if(!s.styles||s.styles[0]!=r.state.modeGen){var u=Ta(r,ot(s)),f=s.text.length>r.options.maxHighlightLength&&Zr(r.doc.mode,u.state),v=Rv(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 Ta(r,s,l){var u=r.doc,f=r.display;if(!u.mode.startState)return new kr(u,!0,s);var v=TS(r,s,l),b=v>u.first&&Le(u,v-1).stateAfter,w=b?kr.fromSaved(u,b,v):new kr(u,$a(u.mode),v);return u.iter(v,s,function(E){Lh(r,E.text,w);var _=w.line;E.stateAfter=_==s-1||_%5==0||_>=f.viewFrom&&_<f.viewTo?w.save():null,w.nextLine()}),l&&(u.modeFrontier=w.line),w}function Lh(r,s,l,u){var f=r.doc.mode,v=new Tt(s,r.options.tabSize,l);for(v.start=v.pos=u||0,s==""&&zv(f,l.state);!v.eol();)Bh(f,v,l.state),v.start=v.pos}function zv(r,s){if(r.blankLine)return r.blankLine(s);if(!!r.innerMode){var l=ki(r,s);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Bh(r,s,l,u){for(var f=0;f<10;f++){u&&(u[0]=ki(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 Uv=function(r,s,l){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=l};function Hv(r,s,l,u){var f=r.doc,v=f.mode,b;s=Ue(f,s);var w=Le(f,s.line),E=Ta(r,s.line,l),_=new Tt(w.text,r.options.tabSize,E),N;for(u&&(N=[]);(u||_.pos<s.ch)&&!_.eol();)_.start=_.pos,b=Bh(v,_,E.state),u&&N.push(new Uv(_,b,Zr(f.mode,E.state)));return u?N:new Uv(_,b,E.state)}function qv(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 jv(r,s,l,u,f,v,b){var w=l.flattenSpans;w==null&&(w=r.options.flattenSpans);var E=0,_=null,N=new Tt(s,r.options.tabSize,u),H,Q=r.options.addModeClass&&[null];for(s==""&&qv(zv(l,u.state),v);!N.eol();){if(N.pos>r.options.maxHighlightLength?(w=!1,b&&Lh(r,s,u,N.pos),N.pos=s.length,H=null):H=qv(Bh(l,N,u.state,Q),v),Q){var K=Q[0].name;K&&(H="m-"+(H?K+" "+H:K))}if(!w||_!=H){for(;E<N.start;)E=Math.min(N.start,E+5e3),f(E,_);_=H}N.start=N.pos}for(;E<N.pos;){var te=Math.min(N.pos,E+5e3);f(te,_),E=te}}function TS(r,s,l){for(var u,f,v=r.doc,b=l?-1:s-(r.doc.mode.innerMode?1e3:100),w=s;w>b;--w){if(w<=v.first)return v.first;var E=Le(v,w-1),_=E.stateAfter;if(_&&(!l||w+(_ instanceof _l?_.lookAhead:0)<=v.modeFrontier))return w;var N=J(E.text,null,r.options.tabSize);(f==null||u>N)&&(f=w-1,u=N)}return f}function kS(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 _l)||u+f.lookAhead<s)){l=u+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,l)}}var Vv=!1,ei=!1;function LS(){Vv=!0}function BS(){ei=!0}function Sl(r,s,l){this.marker=r,this.from=s,this.to=l}function ka(r,s){if(r)for(var l=0;l<r.length;++l){var u=r[l];if(u.marker==s)return u}}function OS(r,s){for(var l,u=0;u<r.length;++u)r[u]!=s&&(l||(l=[])).push(r[u]);return l}function PS(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 NS(r,s,l){var u;if(r)for(var f=0;f<r.length;++f){var v=r[f],b=v.marker,w=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);if(w||v.from==s&&b.type=="bookmark"&&(!l||!v.marker.insertLeft)){var E=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);(u||(u=[])).push(new Sl(b,v.from,E?null:v.to))}}return u}function IS(r,s,l){var u;if(r)for(var f=0;f<r.length;++f){var v=r[f],b=v.marker,w=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);if(w||v.from==s&&b.type=="bookmark"&&(!l||v.marker.insertLeft)){var E=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);(u||(u=[])).push(new Sl(b,E?null:v.from-s,v.to==null?null:v.to-s))}}return u}function Oh(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,w=NS(l,f,b),E=IS(u,v,b),_=s.text.length==1,N=he(s.text).length+(_?f:0);if(w)for(var H=0;H<w.length;++H){var Q=w[H];if(Q.to==null){var K=ka(E,Q.marker);K?_&&(Q.to=K.to==null?null:K.to+N):Q.to=f}}if(E)for(var te=0;te<E.length;++te){var ue=E[te];if(ue.to!=null&&(ue.to+=N),ue.from==null){var ge=ka(w,ue.marker);ge||(ue.from=N,_&&(w||(w=[])).push(ue))}else ue.from+=N,_&&(w||(w=[])).push(ue)}w&&(w=Wv(w)),E&&E!=w&&(E=Wv(E));var we=[w];if(!_){var Ce=s.text.length-2,De;if(Ce>0&&w)for(var Se=0;Se<w.length;++Se)w[Se].to==null&&(De||(De=[])).push(new Sl(w[Se].marker,null,null));for(var Ie=0;Ie<Ce;++Ie)we.push(De);we.push(E)}return we}function Wv(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 RS(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 ue=K.markedSpans[te].marker;ue.readOnly&&(!u||_e(u,ue)==-1)&&(u||(u=[])).push(ue)}}),!u)return null;for(var f=[{from:s,to:l}],v=0;v<u.length;++v)for(var b=u[v],w=b.find(0),E=0;E<f.length;++E){var _=f[E];if(!(ee(_.to,w.from)<0||ee(_.from,w.to)>0)){var N=[E,1],H=ee(_.from,w.from),Q=ee(_.to,w.to);(H<0||!b.inclusiveLeft&&!H)&&N.push({from:_.from,to:w.from}),(Q>0||!b.inclusiveRight&&!Q)&&N.push({from:w.to,to:_.to}),f.splice.apply(f,N),E+=N.length-3}}return f}function Gv(r){var s=r.markedSpans;if(!!s){for(var l=0;l<s.length;++l)s[l].marker.detachLine(r);r.markedSpans=null}}function Kv(r,s){if(!!s){for(var l=0;l<s.length;++l)s[l].marker.attachLine(r);r.markedSpans=s}}function Fl(r){return r.inclusiveLeft?-1:0}function $l(r){return r.inclusiveRight?1:0}function Ph(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)||Fl(r)-Fl(s);if(v)return-v;var b=ee(u.to,f.to)||$l(r)-$l(s);return b||s.id-r.id}function Qv(r,s){var l=ei&&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||Ph(u,f.marker)<0)&&(u=f.marker);return u}function Xv(r){return Qv(r,!0)}function Tl(r){return Qv(r,!1)}function MS(r,s){var l=ei&&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||Ph(u,v.marker)<0)&&(u=v.marker)}return u}function Yv(r,s,l,u,f){var v=Le(r,s),b=ei&&v.markedSpans;if(b)for(var w=0;w<b.length;++w){var E=b[w];if(!!E.marker.collapsed){var _=E.marker.find(0),N=ee(_.from,l)||Fl(E.marker)-Fl(f),H=ee(_.to,u)||$l(E.marker)-$l(f);if(!(N>=0&&H<=0||N<=0&&H>=0)&&(N<=0&&(E.marker.inclusiveRight&&f.inclusiveLeft?ee(_.to,l)>=0:ee(_.to,l)>0)||N>=0&&(E.marker.inclusiveRight&&f.inclusiveLeft?ee(_.from,u)<=0:ee(_.from,u)<0)))return!0}}}function lr(r){for(var s;s=Xv(r);)r=s.find(-1,!0).line;return r}function zS(r){for(var s;s=Tl(r);)r=s.find(1,!0).line;return r}function US(r){for(var s,l;s=Tl(r);)r=s.find(1,!0).line,(l||(l=[])).push(r);return l}function Nh(r,s){var l=Le(r,s),u=lr(l);return l==u?s:ot(u)}function Zv(r,s){if(s>r.lastLine())return s;var l=Le(r,s),u;if(!Li(r,l))return s;for(;u=Tl(l);)l=u.find(1,!0).line;return ot(l)+1}function Li(r,s){var l=ei&&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&&Ih(r,s,u))return!0}}}function Ih(r,s,l){if(l.to==null){var u=l.marker.find(1,!0);return Ih(r,u.line,ka(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)&&Ih(r,s,f))return!0}function ti(r){r=lr(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 w=v.children[b];if(w==l)break;s+=w.height}return s}function kl(r){if(r.height==0)return 0;for(var s=r.text.length,l,u=r;l=Xv(u);){var f=l.find(0,!0);u=f.from.line,s+=f.from.ch-f.to.ch}for(u=r;l=Tl(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 Rh(r){var s=r.display,l=r.doc;s.maxLine=Le(l,l.first),s.maxLineLength=kl(s.maxLine),s.maxLineChanged=!0,l.iter(function(u){var f=kl(u);f>s.maxLineLength&&(s.maxLineLength=f,s.maxLine=u)})}var ro=function(r,s,l){this.text=r,Kv(this,s),this.height=l?l(this):1};ro.prototype.lineNo=function(){return ot(this)},hn(ro);function HS(r,s,l,u){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),Gv(r),Kv(r,l);var f=u?u(r):1;f!=r.height&&er(r,f)}function qS(r){r.parent=null,Gv(r)}var jS={},VS={};function Jv(r,s){if(!r||/^\s*$/.test(r))return null;var l=s.addModeClass?VS:jS;return l[r]||(l[r]=r.replace(/\S+/g,"cm-$&"))}function em(r,s){var l=z("span",null,null,g?"padding-right: .1px":null),u={pre:z("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=GS,Al(r.display.measure)&&(b=Dt(v,r.doc.direction))&&(u.addToken=QS(u.addToken,b)),u.map=[];var w=s!=r.display.externalMeasured&&ot(v);XS(v,u,Mv(r,v,w)),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(kh(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 E=u.content.lastChild;(/\bcm-tab\b/.test(E.className)||E.querySelector&&E.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return wt(r,"renderLine",r,s.line,u.pre),u.pre.className&&(u.textClass=$e(u.pre.className,u.textClass||"")),u}function WS(r){var s=D("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function GS(r,s,l,u,f,v,b){if(!!s){var w=r.splitSpaces?KS(s,r.trailingSpace):s,E=r.cm.state.specialChars,_=!1,N;if(!E.test(s))r.col+=s.length,N=document.createTextNode(w),r.map.push(r.pos,r.pos+s.length,N),d&&p<9&&(_=!0),r.pos+=s.length;else{N=document.createDocumentFragment();for(var H=0;;){E.lastIndex=H;var Q=E.exec(s),K=Q?Q.index-H:s.length-H;if(K){var te=document.createTextNode(w.slice(H,H+K));d&&p<9?N.appendChild(D("span",[te])):N.appendChild(te),r.map.push(r.pos,r.pos+K,te),r.col+=K,r.pos+=K}if(!Q)break;H+=K+1;var ue=void 0;if(Q[0]==" "){var ge=r.cm.options.tabSize,we=ge-r.col%ge;ue=N.appendChild(D("span",ye(we),"cm-tab")),ue.setAttribute("role","presentation"),ue.setAttribute("cm-text"," "),r.col+=we}else Q[0]=="\r"||Q[0]==`
|
|
19
|
+
`?(ue=N.appendChild(D("span",Q[0]=="\r"?"␍":"","cm-invalidchar")),ue.setAttribute("cm-text",Q[0]),r.col+=1):(ue=r.cm.options.specialCharPlaceholder(Q[0]),ue.setAttribute("cm-text",Q[0]),d&&p<9?N.appendChild(D("span",[ue])):N.appendChild(ue),r.col+=1);r.map.push(r.pos,r.pos+1,ue),r.pos++}}if(r.trailingSpace=w.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 Se in b)b.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&De.setAttribute(Se,b[Se]);return r.content.appendChild(De)}r.content.appendChild(N)}}function KS(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 QS(r,s){return function(l,u,f,v,b,w,E){f=f?f+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+u.length;;){for(var H=void 0,Q=0;Q<s.length&&(H=s[Q],!(H.to>_&&H.from<=_));Q++);if(H.to>=N)return r(l,u,f,v,b,w,E);r(l,u.slice(0,H.to-_),f,v,null,w,E),v=null,u=u.slice(H.to-_),_=H.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 XS(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]),Jv(l[b+1],s.cm.options));return}for(var w=f.length,E=0,_=1,N="",H,Q,K=0,te,ue,ge,we,Ce;;){if(K==E){te=ue=ge=Q="",Ce=null,we=null,K=1/0;for(var De=[],Se=void 0,Ie=0;Ie<u.length;++Ie){var Oe=u[Ie],We=Oe.marker;if(We.type=="bookmark"&&Oe.from==E&&We.widgetNode)De.push(We);else if(Oe.from<=E&&(Oe.to==null||Oe.to>E||We.collapsed&&Oe.to==E&&Oe.from==E)){if(Oe.to!=null&&Oe.to!=E&&K>Oe.to&&(K=Oe.to,ue=""),We.className&&(te+=" "+We.className),We.css&&(Q=(Q?Q+";":"")+We.css),We.startStyle&&Oe.from==E&&(ge+=" "+We.startStyle),We.endStyle&&Oe.to==K&&(Se||(Se=[])).push(We.endStyle,Oe.to),We.title&&((Ce||(Ce={})).title=We.title),We.attributes)for(var mt in We.attributes)(Ce||(Ce={}))[mt]=We.attributes[mt];We.collapsed&&(!we||Ph(we.marker,We)<0)&&(we=Oe)}else Oe.from>E&&K>Oe.from&&(K=Oe.from)}if(Se)for(var Wt=0;Wt<Se.length;Wt+=2)Se[Wt+1]==K&&(ue+=" "+Se[Wt]);if(!we||we.from==E)for(var St=0;St<De.length;++St)tm(s,0,De[St]);if(we&&(we.from||0)==E){if(tm(s,(we.to==null?w+1:we.to)-E,we.marker,we.from==null),we.to==null)return;we.to==E&&(we=!1)}}if(E>=w)break;for(var Pn=Math.min(w,K);;){if(N){var Dn=E+N.length;if(!we){var Nt=Dn>Pn?N.slice(0,Pn-E):N;s.addToken(s,Nt,H?H+te:te,ge,E+Nt.length==K?ue:"",Q,Ce)}if(Dn>=Pn){N=N.slice(Pn-E),E=Pn;break}E=Dn,ge=""}N=f.slice(v,v=l[_++]),H=Jv(l[_++],s.cm.options)}}}function nm(r,s,l){this.line=s,this.rest=US(s),this.size=this.rest?ot(he(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Li(r,s)}function Ll(r,s,l){for(var u=[],f,v=s;v<l;v=f){var b=new nm(r.doc,Le(r.doc,v),v);f=v+b.size,u.push(b)}return u}var io=null;function YS(r){io?io.ops.push(r):r.ownsGroup=io={ops:[r],delayedCallbacks:[]}}function ZS(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 JS(r,s){var l=r.ownsGroup;if(!!l)try{ZS(l)}finally{io=null,s(l)}}var La=null;function qt(r,s){var l=Ca(r,s);if(!!l.length){var u=Array.prototype.slice.call(arguments,2),f;io?f=io.delayedCallbacks:La?f=La:(f=La=[],setTimeout(eF,0));for(var v=function(w){f.push(function(){return l[w].apply(null,u)})},b=0;b<l.length;++b)v(b)}}function eF(){var r=La;La=null;for(var s=0;s<r.length;++s)r[s]()}function rm(r,s,l,u){for(var f=0;f<s.changes.length;f++){var v=s.changes[f];v=="text"?nF(r,s):v=="gutter"?sm(r,s,l,u):v=="class"?Mh(r,s):v=="widget"&&rF(r,s,u)}s.changes=null}function Ba(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 tF(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=Ba(s);s.background=u.insertBefore(D("div",null,l),u.firstChild),r.display.input.setUneditable(s.background)}}function im(r,s){var l=r.display.externalMeasured;return l&&l.line==s.line?(r.display.externalMeasured=null,s.measure=l.measure,l.built):em(r,s)}function nF(r,s){var l=s.text.className,u=im(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,Mh(r,s)):l&&(s.text.className=l)}function Mh(r,s){tF(r,s),s.line.wrapClass?Ba(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 sm(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=Ba(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=Ba(s),w=s.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),r.display.input.setUneditable(w),b.insertBefore(w,s.text),s.line.gutterClass&&(w.className+=" "+s.line.gutterClass),r.options.lineNumbers&&(!v||!v["CodeMirror-linenumbers"])&&(s.lineNumber=w.appendChild(D("div",q(r.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),v)for(var E=0;E<r.display.gutterSpecs.length;++E){var _=r.display.gutterSpecs[E].className,N=v.hasOwnProperty(_)&&v[_];N&&w.appendChild(D("div",[N],"CodeMirror-gutter-elt","left: "+u.gutterLeft[_]+"px; width: "+u.gutterWidth[_]+"px"))}}}function rF(r,s,l){s.alignable&&(s.alignable=null);for(var u=Y("CodeMirror-linewidget"),f=s.node.firstChild,v=void 0;f;f=v)v=f.nextSibling,u.test(f.className)&&s.node.removeChild(f);om(r,s,l)}function iF(r,s,l,u){var f=im(r,s);return s.text=s.node=f.pre,f.bgClass&&(s.bgClass=f.bgClass),f.textClass&&(s.textClass=f.textClass),Mh(r,s),sm(r,s,l,u),om(r,s,u),s.node}function om(r,s,l){if(am(r,s.line,s,l,!0),s.rest)for(var u=0;u<s.rest.length;u++)am(r,s.rest[u],s,l,!1)}function am(r,s,l,u,f){if(!!s.widgets)for(var v=Ba(l),b=0,w=s.widgets;b<w.length;++b){var E=w[b],_=D("div",[E.node],"CodeMirror-linewidget"+(E.className?" "+E.className:""));E.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),sF(E,_,l,u),r.display.input.setUneditable(_),f&&E.above?v.insertBefore(_,l.gutter||l.text):v.appendChild(_),qt(E,"redraw")}}function sF(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 Oa(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 ni(r,s){for(var l=yn(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 Bl(r){return r.lineSpace.offsetTop}function zh(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function um(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 Lr(r){return vt-r.display.nativeBarWidth}function ls(r){return r.display.scroller.clientWidth-Lr(r)-r.display.barWidth}function Uh(r){return r.display.scroller.clientHeight-Lr(r)-r.display.barHeight}function oF(r,s,l){var u=r.options.lineWrapping,f=u&&ls(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(),w=0;w<b.length-1;w++){var E=b[w],_=b[w+1];Math.abs(E.bottom-_.bottom)>2&&v.push((E.bottom+_.top)/2-l.top)}}v.push(l.bottom-l.top)}}function lm(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(ot(r.rest[f])>l)return{map:r.measure.maps[f],cache:r.measure.caches[f],before:!0}}}function aF(r,s){s=lr(s);var l=ot(s),u=r.display.externalMeasured=new nm(r.doc,s,l);u.lineN=l;var f=u.built=em(r,u);return u.text=f.pre,F(r.display.lineMeasure,f.pre),u}function cm(r,s,l,u){return Br(r,so(r,s),l,u)}function Hh(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[hs(r,s)];var l=r.display.externalMeasured;if(l&&s>=l.lineN&&s<l.lineN+l.size)return l}function so(r,s){var l=ot(s),u=Hh(r,l);u&&!u.text?u=null:u&&u.changes&&(rm(r,u,l,Gh(r)),r.curOp.forceUpdate=!0),u||(u=aF(r,s));var f=lm(u,s,l);return{line:s,view:u,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Br(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||(oF(r,s.view,s.rect),s.hasHeights=!0),b=lF(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 fm={left:0,right:0,top:0,bottom:0};function hm(r,s,l){for(var u,f,v,b,w,E,_=0;_<r.length;_+=3)if(w=r[_],E=r[_+1],s<w?(f=0,v=1,b="left"):s<E?(f=s-w,v=f+1):(_==r.length-3||s==E&&r[_+3]>s)&&(v=E-w,f=v-1,s>=E&&(b="right")),f!=null){if(u=r[_+2],w==E&&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==E-w)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:w,coverEnd:E}}function uF(r,s){var l=fm;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 lF(r,s,l,u){var f=hm(s.map,l,u),v=f.node,b=f.start,w=f.end,E=f.collapse,_;if(v.nodeType==3){for(var N=0;N<4;N++){for(;b&&Je(s.line.text.charAt(f.coverStart+b));)--b;for(;f.coverStart+w<f.coverEnd&&Je(s.line.text.charAt(f.coverStart+w));)++w;if(d&&p<9&&b==0&&w==f.coverEnd-f.coverStart?_=v.parentNode.getBoundingClientRect():_=uF(j(v,b,w).getClientRects(),u),_.left||_.right||b==0)break;w=b,b=b-1,E="right"}d&&p<11&&(_=cF(r.display.measure,_))}else{b>0&&(E=u="right");var H;r.options.lineWrapping&&(H=v.getClientRects()).length>1?_=H[u=="right"?H.length-1:0]:_=v.getBoundingClientRect()}if(d&&p<9&&!b&&(!_||!_.left&&!_.right)){var Q=v.parentNode.getClientRects()[0];Q?_={left:Q.left,right:Q.left+ao(r.display),top:Q.top,bottom:Q.bottom}:_=fm}for(var K=_.top-s.rect.top,te=_.bottom-s.rect.top,ue=(K+te)/2,ge=s.view.measure.heights,we=0;we<ge.length-1&&!(ue<ge[we]);we++);var Ce=we?ge[we-1]:0,De=ge[we],Se={left:(E=="right"?_.right:_.left)-s.rect.left,right:(E=="left"?_.left:_.right)-s.rect.left,top:Ce,bottom:De};return!_.left&&!_.right&&(Se.bogus=!0),r.options.singleCursorHeightPerLine||(Se.rtop=K,Se.rbottom=te),Se}function cF(r,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!El(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 dm(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 pm(r){r.display.externalMeasure=null,P(r.display.lineMeasure);for(var s=0;s<r.display.view.length;s++)dm(r.display.view[s])}function Pa(r){pm(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function gm(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 qh(r){var s=lr(r),l=s.widgets,u=0;if(l)for(var f=0;f<l.length;++f)l[f].above&&(u+=Oa(l[f]));return u}function Ol(r,s,l,u,f){if(!f){var v=qh(s);l.top+=v,l.bottom+=v}if(u=="line")return l;u||(u="local");var b=ti(s);if(u=="local"?b+=Bl(r.display):b-=r.display.viewOffset,u=="page"||u=="window"){var w=r.display.lineSpace.getBoundingClientRect();b+=w.top+(u=="window"?0:vm(je(r)));var E=w.left+(u=="window"?0:gm(je(r)));l.left+=E,l.right+=E}return l.top+=b,l.bottom+=b,l}function mm(r,s,l){if(l=="div")return s;var u=s.left,f=s.top;if(l=="page")u-=gm(je(r)),f-=vm(je(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 Pl(r,s,l,u,f){return u||(u=Le(r.doc,s.line)),Ol(r,u,cm(r,u,s.ch,f),l)}function cr(r,s,l,u,f,v){u=u||Le(r.doc,s.line),f||(f=so(r,u));function b(te,ue){var ge=Br(r,f,te,ue?"right":"left",v);return ue?ge.left=ge.right:ge.right=ge.left,Ol(r,u,ge,l)}var w=Dt(u,r.doc.direction),E=s.ch,_=s.sticky;if(E>=u.text.length?(E=u.text.length,_="before"):E<=0&&(E=0,_="after"),!w)return b(_=="before"?E-1:E,_=="before");function N(te,ue,ge){var we=w[ue],Ce=we.level==1;return b(ge?te-1:te,Ce!=ge)}var H=Jt(w,E,_),Q=qn,K=N(E,H,_=="before");return Q!=null&&(K.other=N(E,Q,_!="before")),K}function ym(r,s){var l=0;s=Ue(r.doc,s),r.options.lineWrapping||(l=ao(r.display)*s.ch);var u=Le(r.doc,s.line),f=ti(u)+Bl(r.display);return{left:l,right:l,top:f,bottom:f+u.height}}function jh(r,s,l,u,f){var v=V(r,s,l);return v.xRel=f,u&&(v.outside=u),v}function Vh(r,s,l){var u=r.doc;if(l+=r.display.viewOffset,l<0)return jh(u.first,0,null,-1,-1);var f=Tr(u,l),v=u.first+u.size-1;if(f>v)return jh(u.first+u.size-1,Le(u,v).text.length,null,1,1);s<0&&(s=0);for(var b=Le(u,f);;){var w=fF(r,b,f,s,l),E=MS(b,w.ch+(w.xRel>0||w.outside>0?1:0));if(!E)return w;var _=E.find(1);if(_.line==f)return _;b=Le(u,f=_.line)}}function bm(r,s,l,u){u-=qh(s);var f=s.text.length,v=Ye(function(b){return Br(r,l,b-1).bottom<=u},f,0);return f=Ye(function(b){return Br(r,l,b).top>u},v,f),{begin:v,end:f}}function wm(r,s,l,u){l||(l=so(r,s));var f=Ol(r,s,Br(r,l,u),"line").top;return bm(r,s,l,f)}function Wh(r,s,l,u){return r.bottom<=l?!1:r.top>l?!0:(u?r.left:r.right)>s}function fF(r,s,l,u,f){f-=ti(s);var v=so(r,s),b=qh(s),w=0,E=s.text.length,_=!0,N=Dt(s,r.doc.direction);if(N){var H=(r.options.lineWrapping?dF:hF)(r,s,l,v,N,u,f);_=H.level!=1,w=_?H.from:H.to-1,E=_?H.to:H.from-1}var Q=null,K=null,te=Ye(function(Ie){var Oe=Br(r,v,Ie);return Oe.top+=b,Oe.bottom+=b,Wh(Oe,u,f,!1)?(Oe.top<=f&&Oe.left<=u&&(Q=Ie,K=Oe),!0):!1},w,E),ue,ge,we=!1;if(K){var Ce=u-K.left<K.right-u,De=Ce==_;te=Q+(De?0:1),ge=De?"after":"before",ue=Ce?K.left:K.right}else{!_&&(te==E||te==w)&&te++,ge=te==0?"after":te==s.text.length?"before":Br(r,v,te-(_?1:0)).bottom+b<=f==_?"after":"before";var Se=cr(r,V(l,te,ge),"line",s,v);ue=Se.left,we=f<Se.top?-1:f>=Se.bottom?1:0}return te=ct(s.text,te,1),jh(l,te,ge,we,u-ue)}function hF(r,s,l,u,f,v,b){var w=Ye(function(H){var Q=f[H],K=Q.level!=1;return Wh(cr(r,V(l,K?Q.to:Q.from,K?"before":"after"),"line",s,u),v,b,!0)},0,f.length-1),E=f[w];if(w>0){var _=E.level!=1,N=cr(r,V(l,_?E.from:E.to,_?"after":"before"),"line",s,u);Wh(N,v,b,!0)&&N.top>b&&(E=f[w-1])}return E}function dF(r,s,l,u,f,v,b){var w=bm(r,s,u,b),E=w.begin,_=w.end;/\s/.test(s.text.charAt(_-1))&&_--;for(var N=null,H=null,Q=0;Q<f.length;Q++){var K=f[Q];if(!(K.from>=_||K.to<=E)){var te=K.level!=1,ue=Br(r,u,te?Math.min(_,K.to)-1:Math.max(E,K.from)).right,ge=ue<v?v-ue+1e9:ue-v;(!N||H>ge)&&(N=K,H=ge)}}return N||(N=f[f.length-1]),N.from<E&&(N={from:E,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var cs;function oo(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(cs==null){cs=D("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)cs.appendChild(document.createTextNode("x")),cs.appendChild(D("br"));cs.appendChild(document.createTextNode("x"))}F(r.measure,cs);var l=cs.offsetHeight/50;return l>3&&(r.cachedTextHeight=l),P(r.measure),l||1}function ao(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 Gh(r){for(var s=r.display,l={},u={},f=s.gutters.clientLeft,v=s.gutters.firstChild,b=0;v;v=v.nextSibling,++b){var w=r.display.gutterSpecs[b].className;l[w]=v.offsetLeft+v.clientLeft+f,u[w]=v.clientWidth}return{fixedPos:Kh(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:l,gutterWidth:u,wrapperWidth:s.wrapper.clientWidth}}function Kh(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Dm(r){var s=oo(r.display),l=r.options.lineWrapping,u=l&&Math.max(5,r.display.scroller.clientWidth/ao(r.display)-3);return function(f){if(Li(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 Qh(r){var s=r.doc,l=Dm(r);s.iter(function(u){var f=l(u);f!=u.height&&er(u,f)})}function fs(r,s,l,u){var f=r.display;if(!l&&yn(s).getAttribute("cm-not-content")=="true")return null;var v,b,w=f.lineSpace.getBoundingClientRect();try{v=s.clientX-w.left,b=s.clientY-w.top}catch{return null}var E=Vh(r,v,b),_;if(u&&E.xRel>0&&(_=Le(r.doc,E.line).text).length==E.ch){var N=J(_,_.length,r.options.tabSize)-_.length;E=V(E.line,Math.max(0,Math.round((v-um(r.display).left)/ao(r.display))-N))}return E}function hs(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 bn(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)ei&&Nh(r.doc,s)<f.viewTo&&Oi(r);else if(l<=f.viewFrom)ei&&Zv(r.doc,l+u)>f.viewFrom?Oi(r):(f.viewFrom+=u,f.viewTo+=u);else if(s<=f.viewFrom&&l>=f.viewTo)Oi(r);else if(s<=f.viewFrom){var v=Nl(r,l,l+u,1);v?(f.view=f.view.slice(v.index),f.viewFrom=v.lineN,f.viewTo+=u):Oi(r)}else if(l>=f.viewTo){var b=Nl(r,s,s,-1);b?(f.view=f.view.slice(0,b.index),f.viewTo=b.lineN):Oi(r)}else{var w=Nl(r,s,s,-1),E=Nl(r,l,l+u,1);w&&E?(f.view=f.view.slice(0,w.index).concat(Ll(r,w.lineN,E.lineN)).concat(f.view.slice(E.index)),f.viewTo+=u):Oi(r)}var _=f.externalMeasured;_&&(l<_.lineN?_.lineN+=u:s<_.lineN+_.size&&(f.externalMeasured=null))}function Bi(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[hs(r,s)];if(v.node!=null){var b=v.changes||(v.changes=[]);_e(b,l)==-1&&b.push(l)}}}function Oi(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function Nl(r,s,l,u){var f=hs(r,s),v,b=r.display.view;if(!ei||l==r.doc.first+r.doc.size)return{index:f,lineN:l};for(var w=r.display.viewFrom,E=0;E<f;E++)w+=b[E].size;if(w!=s){if(u>0){if(f==b.length-1)return null;v=w+b[f].size-s,f++}else v=w-s;s+=v,l+=v}for(;Nh(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 pF(r,s,l){var u=r.display,f=u.view;f.length==0||s>=u.viewTo||l<=u.viewFrom?(u.view=Ll(r,s,l),u.viewFrom=s):(u.viewFrom>s?u.view=Ll(r,s,u.viewFrom).concat(u.view):u.viewFrom<s&&(u.view=u.view.slice(hs(r,s))),u.viewFrom=s,u.viewTo<l?u.view=u.view.concat(Ll(r,u.viewTo,l)):u.viewTo>l&&(u.view=u.view.slice(0,hs(r,l)))),u.viewTo=l}function Am(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 Na(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Em(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 w=0;w<l.sel.ranges.length;w++)if(!(!s&&w==l.sel.primIndex)){var E=l.sel.ranges[w];if(!(E.from().line>=r.display.viewTo||E.to().line<r.display.viewFrom)){var _=E.empty();if(b){var N=b(r,E);N&&Xh(r,N,f)}else(_||r.options.showCursorWhenSelecting)&&Xh(r,E.head,f);_||gF(r,E,v)}}return u}function Xh(r,s,l){var u=cr(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=Pl(r,s,"div",null,null),b=v.right-v.left;f.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(u.other){var w=l.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=u.other.left+"px",w.style.top=u.other.top+"px",w.style.height=(u.other.bottom-u.other.top)*.85+"px"}}function Il(r,s){return r.top-s.top||r.left-s.left}function gF(r,s,l){var u=r.display,f=r.doc,v=document.createDocumentFragment(),b=um(r.display),w=b.left,E=Math.max(u.sizerWidth,ls(r)-u.sizer.offsetLeft)-b.right,_=f.direction=="ltr";function N(De,Se,Ie,Oe){Se<0&&(Se=0),Se=Math.round(Se),Oe=Math.round(Oe),v.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+De+`px;
|
|
20
|
+
top: `+Se+"px; width: "+(Ie??E-De)+`px;
|
|
21
|
+
height: `+(Oe-Se)+"px"))}function H(De,Se,Ie){var Oe=Le(f,De),We=Oe.text.length,mt,Wt;function St(Nt,An){return Pl(r,V(De,Nt),"div",Oe,An)}function Pn(Nt,An,en){var Ht=wm(r,Oe,null,Nt),It=An=="ltr"==(en=="after")?"left":"right",kt=en=="after"?Ht.begin:Ht.end-(/\s/.test(Oe.text.charAt(Ht.end-1))?2:1);return St(kt,It)[It]}var Dn=Dt(Oe,f.direction);return Ln(Dn,Se||0,Ie??We,function(Nt,An,en,Ht){var It=en=="ltr",kt=St(Nt,It?"left":"right"),En=St(An-1,It?"right":"left"),Do=Se==null&&Nt==0,zi=Ie==null&&An==We,un=Ht==0,Or=!Dn||Ht==Dn.length-1;if(En.top-kt.top<=3){var Gt=(_?Do:zi)&&un,Ed=(_?zi:Do)&&Or,si=Gt?w:(It?kt:En).left,ms=Ed?E:(It?En:kt).right;N(si,kt.top,ms-si,kt.bottom)}else{var ys,pn,Ao,xd;It?(ys=_&&Do&&un?w:kt.left,pn=_?E:Pn(Nt,en,"before"),Ao=_?w:Pn(An,en,"after"),xd=_&&zi&&Or?E:En.right):(ys=_?Pn(Nt,en,"before"):w,pn=!_&&Do&&un?E:kt.right,Ao=!_&&zi&&Or?w:En.left,xd=_?Pn(An,en,"after"):E),N(ys,kt.top,pn-ys,kt.bottom),kt.bottom<En.top&&N(w,kt.bottom,null,En.top),N(Ao,En.top,xd-Ao,En.bottom)}(!mt||Il(kt,mt)<0)&&(mt=kt),Il(En,mt)<0&&(mt=En),(!Wt||Il(kt,Wt)<0)&&(Wt=kt),Il(En,Wt)<0&&(Wt=En)}),{start:mt,end:Wt}}var Q=s.from(),K=s.to();if(Q.line==K.line)H(Q.line,Q.ch,K.ch);else{var te=Le(f,Q.line),ue=Le(f,K.line),ge=lr(te)==lr(ue),we=H(Q.line,Q.ch,ge?te.text.length+1:null).end,Ce=H(K.line,ge?0:null,K.ch).start;ge&&(we.top<Ce.top-2?(N(we.right,we.top,null,we.bottom),N(w,Ce.top,Ce.left,Ce.bottom)):N(we.right,we.top,Ce.left-we.right,we.bottom)),we.bottom<Ce.top&&N(w,we.bottom,null,Ce.top)}l.appendChild(v)}function Yh(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()||uo(r),s.cursorDiv.style.visibility=(l=!l)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function xm(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||Jh(r))}function Zh(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&uo(r))},100)}function Jh(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,me(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()),Yh(r))}function uo(r,s){r.state.delayingBlurEvent||(r.state.focused&&(wt(r,"blur",r,s),r.state.focused=!1,U(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function Rl(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 w=s.view[b],E=r.options.lineWrapping,_=void 0,N=0;if(!w.hidden){if(f+=w.line.height,d&&p<8){var H=w.node.offsetTop+w.node.offsetHeight;_=H-l,l=H}else{var Q=w.node.getBoundingClientRect();_=Q.bottom-Q.top,!E&&w.text.firstChild&&(N=w.text.firstChild.getBoundingClientRect().right-Q.left-1)}var K=w.line.height-_;if((K>.005||K<-.005)&&(f<u&&(v-=K),er(w.line,_),Cm(w.line),w.rest))for(var te=0;te<w.rest.length;te++)Cm(w.rest[te]);if(N>r.display.sizerWidth){var ue=Math.ceil(N/ao(r.display));ue>r.display.maxLineLength&&(r.display.maxLineLength=ue,r.display.maxLine=w.line,r.display.maxLineChanged=!0)}}}Math.abs(v)>2&&(s.scroller.scrollTop+=v)}function Cm(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 Ml(r,s,l){var u=l&&l.top!=null?Math.max(0,l.top):r.scroller.scrollTop;u=Math.floor(u-Bl(r));var f=l&&l.bottom!=null?l.bottom:u+r.wrapper.clientHeight,v=Tr(s,u),b=Tr(s,f);if(l&&l.ensure){var w=l.ensure.from.line,E=l.ensure.to.line;w<v?(v=w,b=Tr(s,ti(Le(s,w))+r.wrapper.clientHeight)):Math.min(E,s.lastLine())>=b&&(v=Tr(s,ti(Le(s,E))-r.wrapper.clientHeight),b=E)}return{from:v,to:Math.max(b,v+1)}}function vF(r,s){if(!$t(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&&!x){var b=D("div","",null,`position: absolute;
|
|
22
|
+
top: `+(s.top-l.viewOffset-Bl(r.display))+`px;
|
|
23
|
+
height: `+(s.bottom-s.top+Lr(r)+l.barHeight)+`px;
|
|
24
|
+
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 mF(r,s,l,u){u==null&&(u=0);var f;!r.options.lineWrapping&&s==l&&(l=s.sticky=="before"?V(s.line,s.ch+1,"before"):s,s=s.ch?V(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var v=0;v<5;v++){var b=!1,w=cr(r,s),E=!l||l==s?w:cr(r,l);f={left:Math.min(w.left,E.left),top:Math.min(w.top,E.top)-u,right:Math.max(w.left,E.left),bottom:Math.max(w.bottom,E.bottom)+u};var _=ed(r,f),N=r.doc.scrollTop,H=r.doc.scrollLeft;if(_.scrollTop!=null&&(Ra(r,_.scrollTop),Math.abs(r.doc.scrollTop-N)>1&&(b=!0)),_.scrollLeft!=null&&(ds(r,_.scrollLeft),Math.abs(r.doc.scrollLeft-H)>1&&(b=!0)),!b)break}return f}function yF(r,s){var l=ed(r,s);l.scrollTop!=null&&Ra(r,l.scrollTop),l.scrollLeft!=null&&ds(r,l.scrollLeft)}function ed(r,s){var l=r.display,u=oo(r.display);s.top<0&&(s.top=0);var f=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:l.scroller.scrollTop,v=Uh(r),b={};s.bottom-s.top>v&&(s.bottom=s.top+v);var w=r.doc.height+zh(l),E=s.top<u,_=s.bottom>w-u;if(s.top<f)b.scrollTop=E?0:s.top;else if(s.bottom>f+v){var N=Math.min(s.top,(_?w:s.bottom)-v);N!=f&&(b.scrollTop=N)}var H=r.options.fixedGutter?0:l.gutters.offsetWidth,Q=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:l.scroller.scrollLeft-H,K=ls(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<Q?b.scrollLeft=Math.max(0,s.left+H-(te?0:10)):s.right>K+Q-3&&(b.scrollLeft=s.right+(te?0:10)-K),b}function td(r,s){s!=null&&(zl(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function lo(r){zl(r);var s=r.getCursor();r.curOp.scrollToPos={from:s,to:s,margin:r.options.cursorScrollMargin}}function Ia(r,s,l){(s!=null||l!=null)&&zl(r),s!=null&&(r.curOp.scrollLeft=s),l!=null&&(r.curOp.scrollTop=l)}function bF(r,s){zl(r),r.curOp.scrollToPos=s}function zl(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var l=ym(r,s.from),u=ym(r,s.to);_m(r,l,u,s.margin)}}function _m(r,s,l,u){var f=ed(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});Ia(r,f.scrollLeft,f.scrollTop)}function Ra(r,s){Math.abs(r.doc.scrollTop-s)<2||(o||rd(r,{top:s}),Sm(r,s,!0),o&&rd(r),Ua(r,100))}function Sm(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 ds(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,Lm(r),r.display.scroller.scrollLeft!=s&&(r.display.scroller.scrollLeft=s),r.display.scrollbars.setScrollLeft(s))}function Ma(r){var s=r.display,l=s.gutters.offsetWidth,u=Math.round(r.doc.height+zh(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+Lr(r)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:l}}var ps=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")};ps.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}},ps.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ps.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ps.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},ps.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)},ps.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 co(r,s){s||(s=Ma(r));var l=r.display.barWidth,u=r.display.barHeight;Fm(r,s);for(var f=0;f<4&&l!=r.display.barWidth||u!=r.display.barHeight;f++)l!=r.display.barWidth&&r.options.lineWrapping&&Rl(r),Fm(r,Ma(r)),l=r.display.barWidth,u=r.display.barHeight}function Fm(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 $m={native:ps,null:za};function Tm(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&U(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new $m[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"?ds(r,s):Ra(r,s)},r),r.display.scrollbars.addClass&&me(r.display.wrapper,r.display.scrollbars.addClass)}var wF=0;function gs(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:++wF,markArrays:null},YS(r.curOp)}function vs(r){var s=r.curOp;s&&JS(s,function(l){for(var u=0;u<l.ops.length;u++)l.ops[u].cm.curOp=null;DF(l)})}function DF(r){for(var s=r.ops,l=0;l<s.length;l++)AF(s[l]);for(var u=0;u<s.length;u++)EF(s[u]);for(var f=0;f<s.length;f++)xF(s[f]);for(var v=0;v<s.length;v++)CF(s[v]);for(var b=0;b<s.length;b++)_F(s[b])}function AF(r){var s=r.cm,l=s.display;FF(s),r.updateMaxLine&&Rh(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 Ul(s,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function EF(r){r.updatedDisplay=r.mustUpdate&&nd(r.cm,r.update)}function xF(r){var s=r.cm,l=s.display;r.updatedDisplay&&Rl(s),r.barMeasure=Ma(s),l.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=cm(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+Lr(s)+s.display.barWidth),r.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+r.adjustWidthTo-ls(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=l.input.prepareSelection())}function CF(r){var s=r.cm;r.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<s.doc.scrollLeft&&ds(s,Math.min(s.display.scroller.scrollLeft,r.maxScrollLeft),!0),s.display.maxLineChanged=!1);var l=r.focus&&r.focus==ae(je(s));r.preparedSelection&&s.display.input.showSelection(r.preparedSelection,l),(r.updatedDisplay||r.startHeight!=s.doc.height)&&co(s,r.barMeasure),r.updatedDisplay&&sd(s,r.barMeasure),r.selectionChanged&&Yh(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),l&&xm(r.cm)}function _F(r){var s=r.cm,l=s.display,u=s.doc;if(r.updatedDisplay&&km(s,r.update),l.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),r.scrollTop!=null&&Sm(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&ds(s,r.scrollLeft,!0,!0),r.scrollToPos){var f=mF(s,Ue(u,r.scrollToPos.from),Ue(u,r.scrollToPos.to),r.scrollToPos.margin);vF(s,f)}var v=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(v)for(var w=0;w<v.length;++w)v[w].lines.length||wt(v[w],"hide");if(b)for(var E=0;E<b.length;++E)b[E].lines.length&&wt(b[E],"unhide");l.wrapper.offsetHeight&&(u.scrollTop=s.display.scroller.scrollTop),r.changeObjs&&wt(s,"changes",s,r.changeObjs),r.update&&r.update.finish()}function On(r,s){if(r.curOp)return s();gs(r);try{return s()}finally{vs(r)}}function jt(r,s){return function(){if(r.curOp)return s.apply(r,arguments);gs(r);try{return s.apply(r,arguments)}finally{vs(r)}}}function dn(r){return function(){if(this.curOp)return r.apply(this,arguments);gs(this);try{return r.apply(this,arguments)}finally{vs(this)}}}function Vt(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);gs(s);try{return r.apply(this,arguments)}finally{vs(s)}}}function Ua(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,re(SF,r))}function SF(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var l=+new Date+r.options.workTime,u=Ta(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,w=v.text.length>r.options.maxHighlightLength?Zr(s.mode,u.state):null,E=Rv(r,v,u,!0);w&&(u.state=w),v.styles=E.styles;var _=v.styleClasses,N=E.classes;N?v.styleClasses=N:_&&(v.styleClasses=null);for(var H=!b||b.length!=v.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),Q=0;!H&&Q<b.length;++Q)H=b[Q]!=v.styles[Q];H&&f.push(u.line),v.stateAfter=u.save(),u.nextLine()}else v.text.length<=r.options.maxHighlightLength&&Lh(r,v.text,u),v.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>l)return Ua(r,r.options.workDelay),!0}),s.highlightFrontier=u.line,s.modeFrontier=Math.max(s.modeFrontier,u.line),f.length&&On(r,function(){for(var v=0;v<f.length;v++)Bi(r,f[v],"text")})}}var Ul=function(r,s,l){var u=r.display;this.viewport=s,this.visible=Ml(u,r.doc,s),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=ls(r),this.force=l,this.dims=Gh(r),this.events=[]};Ul.prototype.signal=function(r,s){fn(r,s)&&this.events.push(arguments)},Ul.prototype.finish=function(){for(var r=0;r<this.events.length;r++)wt.apply(null,this.events[r])};function FF(r){var s=r.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=Lr(r)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=Lr(r)+"px",s.scrollbarsClipped=!0)}function $F(r){if(r.hasFocus())return null;var s=ae(je(r));if(!s||!Z(r.display.lineDiv,s))return null;var l={activeElt:s};if(window.getSelection){var u=tt(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 TF(r){if(!(!r||!r.activeElt||r.activeElt==ae(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 nd(r,s){var l=r.display,u=r.doc;if(s.editorIsHidden)return Oi(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&&Am(r)==0)return!1;Bm(r)&&(Oi(r),s.dims=Gh(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)),ei&&(v=Nh(r.doc,v),b=Zv(r.doc,b));var w=v!=l.viewFrom||b!=l.viewTo||l.lastWrapHeight!=s.wrapperHeight||l.lastWrapWidth!=s.wrapperWidth;pF(r,v,b),l.viewOffset=ti(Le(r.doc,l.viewFrom)),r.display.mover.style.top=l.viewOffset+"px";var E=Am(r);if(!w&&E==0&&!s.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=$F(r);return E>4&&(l.lineDiv.style.display="none"),kF(r,l.updateLineNumbers,s.dims),E>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,TF(_),P(l.cursorDiv),P(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,w&&(l.lastWrapHeight=s.wrapperHeight,l.lastWrapWidth=s.wrapperWidth,Ua(r,400)),l.updateLineNumbers=null,!0}function km(r,s){for(var l=s.viewport,u=!0;;u=!1){if(!u||!r.options.lineWrapping||s.oldDisplayWidth==ls(r)){if(l&&l.top!=null&&(l={top:Math.min(r.doc.height+zh(r.display)-Uh(r),l.top)}),s.visible=Ml(r.display,r.doc,l),s.visible.from>=r.display.viewFrom&&s.visible.to<=r.display.viewTo)break}else u&&(s.visible=Ml(r.display,r.doc,l));if(!nd(r,s))break;Rl(r);var f=Ma(r);Na(r),co(r,f),sd(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 rd(r,s){var l=new Ul(r,s);if(nd(r,l)){Rl(r),km(r,l);var u=Ma(r);Na(r),co(r,u),sd(r,u),l.finish()}}function kF(r,s,l){var u=r.display,f=r.options.lineNumbers,v=u.lineDiv,b=v.firstChild;function w(te){var ue=te.nextSibling;return g&&k&&r.display.currentWheelTarget==te?te.style.display="none":te.parentNode.removeChild(te),ue}for(var E=u.view,_=u.viewFrom,N=0;N<E.length;N++){var H=E[N];if(!H.hidden)if(!H.node||H.node.parentNode!=v){var Q=iF(r,H,_,l);v.insertBefore(Q,b)}else{for(;b!=H.node;)b=w(b);var K=f&&s!=null&&s<=_&&H.lineNumber;H.changes&&(_e(H.changes,"gutter")>-1&&(K=!1),rm(r,H,_,l)),K&&(P(H.lineNumber),H.lineNumber.appendChild(document.createTextNode(q(r.options,_)))),b=H.node.nextSibling}_+=H.size}for(;b;)b=w(b)}function id(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",qt(r,"gutterChanged",r)}function sd(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+Lr(r)+"px"}function Lm(r){var s=r.display,l=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var u=Kh(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 w=l[b].alignable;if(w)for(var E=0;E<w.length;E++)w[E].style.left=v}r.options.fixedGutter&&(s.gutters.style.left=u+f+"px")}}function Bm(r){if(!r.options.lineNumbers)return!1;var s=r.doc,l=q(r.options,s.first+s.size-1),u=r.display;if(l.length!=u.lineNumChars){var f=u.measure.appendChild(D("div",[D("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),v=f.firstChild.offsetWidth,b=f.offsetWidth-v;return u.lineGutter.style.width="",u.lineNumInnerWidth=Math.max(v,u.lineGutter.offsetWidth-b)+1,u.lineNumWidth=u.lineNumInnerWidth+b,u.lineNumChars=u.lineNumInnerWidth?l.length:-1,u.lineGutter.style.width=u.lineNumWidth+"px",id(r.display),!0}return!1}function od(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 Om(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,w=s.appendChild(D("div",null,"CodeMirror-gutter "+v));b&&(w.style.cssText=b),v=="CodeMirror-linenumbers"&&(r.lineGutter=w,w.style.width=(r.lineNumWidth||1)+"px")}s.style.display=l.length?"":"none",id(r)}function Ha(r){Om(r.display),bn(r),Lm(r)}function LF(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=z("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=z("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var v=z("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&&A>=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=od(u.gutters,u.lineNumbers),Om(f),l.init(f)}var Hl=0,ri=null;d?ri=-.53:o?ri=15:m?ri=-.7:L&&(ri=-1/3);function Pm(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 BF(r){var s=Pm(r);return s.x*=ri,s.y*=ri,s}function Nm(r,s){m&&A==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=Pm(s),u=l.x,f=l.y,v=ri;s.deltaMode===0&&(u=s.deltaX,f=s.deltaY,v=1);var b=r.display,w=b.scroller,E=w.scrollWidth>w.clientWidth,_=w.scrollHeight>w.clientHeight;if(!!(u&&E||f&&_)){if(f&&k&&g){e:for(var N=s.target,H=b.view;N!=w;N=N.parentNode)for(var Q=0;Q<H.length;Q++)if(H[Q].node==N){r.display.currentWheelTarget=N;break e}}if(u&&!o&&!$&&v!=null){f&&_&&Ra(r,Math.max(0,w.scrollTop+f*v)),ds(r,Math.max(0,w.scrollLeft+u*v)),(!f||f&&_)&&on(s),b.wheelStartX=null;return}if(f&&v!=null){var K=f*v,te=r.doc.scrollTop,ue=te+b.wrapper.clientHeight;K<0?te=Math.max(0,te+K-50):ue=Math.min(r.doc.height,ue+K+50),rd(r,{top:te,bottom:ue})}Hl<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=w.scrollLeft,b.wheelStartY=w.scrollTop,b.wheelDX=u,b.wheelDY=f,setTimeout(function(){if(b.wheelStartX!=null){var ge=w.scrollLeft-b.wheelStartX,we=w.scrollTop-b.wheelStartY,Ce=we&&b.wheelDY&&we/b.wheelDY||ge&&b.wheelDX&&ge/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ce&&(ri=(ri*Hl+Ce)/(Hl+1),++Hl)}},200)):(b.wheelDX+=u,b.wheelDY+=f))}}var Vn=function(r,s){this.ranges=r,this.primIndex=s};Vn.prototype.primary=function(){return this.ranges[this.primIndex]},Vn.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(!ze(l.anchor,u.anchor)||!ze(l.head,u.head))return!1}return!0},Vn.prototype.deepCopy=function(){for(var r=[],s=0;s<this.ranges.length;s++)r[s]=new at(Ke(this.ranges[s].anchor),Ke(this.ranges[s].head));return new Vn(r,this.primIndex)},Vn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},Vn.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 at=function(r,s){this.anchor=r,this.head=s};at.prototype.from=function(){return Ut(this.anchor,this.head)},at.prototype.to=function(){return rt(this.anchor,this.head)},at.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function fr(r,s,l){var u=r&&r.options.selectionsMayTouch,f=s[l];s.sort(function(Q,K){return ee(Q.from(),K.from())}),l=_e(s,f);for(var v=1;v<s.length;v++){var b=s[v],w=s[v-1],E=ee(w.to(),b.from());if(u&&!b.empty()?E>0:E>=0){var _=Ut(w.from(),b.from()),N=rt(w.to(),b.to()),H=w.empty()?b.from()==b.head:w.from()==w.head;v<=l&&--l,s.splice(--v,2,new at(H?N:_,H?_:N))}}return new Vn(s,l)}function Pi(r,s){return new Vn([new at(r,s||r)],0)}function Ni(r){return r.text?V(r.from.line+r.text.length-1,he(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function Im(r,s){if(ee(r,s.from)<0)return r;if(ee(r,s.to)<=0)return Ni(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+=Ni(s).ch-s.to.ch),V(l,u)}function ad(r,s){for(var l=[],u=0;u<r.sel.ranges.length;u++){var f=r.sel.ranges[u];l.push(new at(Im(f.anchor,s),Im(f.head,s)))}return fr(r.cm,l,r.sel.primIndex)}function Rm(r,s,l){return r.line==s.line?V(l.line,r.ch-s.ch+l.ch):V(l.line+(r.line-s.line),r.ch)}function OF(r,s,l){for(var u=[],f=V(r.first,0),v=f,b=0;b<s.length;b++){var w=s[b],E=Rm(w.from,f,v),_=Rm(Ni(w),f,v);if(f=w.to,v=_,l=="around"){var N=r.sel.ranges[b],H=ee(N.head,N.anchor)<0;u[b]=new at(H?_:E,H?E:_)}else u[b]=new at(E,E)}return new Vn(u,r.sel.primIndex)}function ud(r){r.doc.mode=Yr(r.options,r.doc.modeOption),qa(r)}function qa(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,Ua(r,100),r.state.modeGen++,r.curOp&&bn(r)}function Mm(r,s){return s.from.ch==0&&s.to.ch==0&&he(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function ld(r,s,l,u){function f(Ce){return l?l[Ce]:null}function v(Ce,De,Se){HS(Ce,De,Se,u),qt(Ce,"change",Ce,s)}function b(Ce,De){for(var Se=[],Ie=Ce;Ie<De;++Ie)Se.push(new ro(_[Ie],f(Ie),u));return Se}var w=s.from,E=s.to,_=s.text,N=Le(r,w.line),H=Le(r,E.line),Q=he(_),K=f(_.length-1),te=E.line-w.line;if(s.full)r.insert(0,b(0,_.length)),r.remove(_.length,r.size-_.length);else if(Mm(r,s)){var ue=b(0,_.length-1);v(H,H.text,K),te&&r.remove(w.line,te),ue.length&&r.insert(w.line,ue)}else if(N==H)if(_.length==1)v(N,N.text.slice(0,w.ch)+Q+N.text.slice(E.ch),K);else{var ge=b(1,_.length-1);ge.push(new ro(Q+N.text.slice(E.ch),K,u)),v(N,N.text.slice(0,w.ch)+_[0],f(0)),r.insert(w.line+1,ge)}else if(_.length==1)v(N,N.text.slice(0,w.ch)+_[0]+H.text.slice(E.ch),f(0)),r.remove(w.line+1,te);else{v(N,N.text.slice(0,w.ch)+_[0],f(0)),v(H,Q+H.text.slice(E.ch),K);var we=b(1,_.length-1);te>1&&r.remove(w.line+1,te-1),r.insert(w.line+1,we)}qt(r,"change",r,s)}function Ii(r,s,l){function u(f,v,b){if(f.linked)for(var w=0;w<f.linked.length;++w){var E=f.linked[w];if(E.doc!=v){var _=b&&E.sharedHist;l&&!_||(s(E.doc,_),u(E.doc,f,_))}}}u(r,null,!0)}function zm(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,Qh(r),ud(r),Um(r),r.options.direction=s.direction,r.options.lineWrapping||Rh(r),r.options.mode=s.modeOption,bn(r)}function Um(r){(r.doc.direction=="rtl"?me:U)(r.display.lineDiv,"CodeMirror-rtl")}function PF(r){On(r,function(){Um(r),bn(r)})}function ql(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 cd(r,s){var l={from:Ke(s.from),to:Ni(s),text:Jr(r,s.from,s.to)};return jm(r,l,s.from.line,s.to.line+1),Ii(r,function(u){return jm(u,l,s.from.line,s.to.line+1)},!0),l}function Hm(r){for(;r.length;){var s=he(r);if(s.ranges)r.pop();else break}}function NF(r,s){if(s)return Hm(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 qm(r,s,l,u){var f=r.history;f.undone.length=0;var v=+new Date,b,w;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=NF(f,f.lastOp==u)))w=he(b.changes),ee(s.from,s.to)==0&&ee(s.from,w.to)==0?w.to=Ni(s):b.changes.push(cd(r,s));else{var E=he(f.done);for((!E||!E.ranges)&&jl(r.sel,f.done),b={changes:[cd(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,w||wt(r,"historyAdded")}function IF(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 RF(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||IF(r,v,he(f.done),s))?f.done[f.done.length-1]=s:jl(s,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=v,f.lastSelOp=l,u&&u.clearRedo!==!1&&Hm(f.undone)}function jl(r,s){var l=he(s);l&&l.ranges&&l.equals(r)||s.push(r)}function jm(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 MF(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 zF(r,s){var l=s["spans_"+r.id];if(!l)return null;for(var u=[],f=0;f<s.text.length;++f)u.push(MF(l[f]));return u}function Vm(r,s){var l=zF(r,s),u=Oh(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 w=0;w<b.length;++w){for(var E=b[w],_=0;_<v.length;++_)if(v[_].marker==E.marker)continue e;v.push(E)}}else b&&(l[f]=b)}return l}function fo(r,s,l){for(var u=[],f=0;f<r.length;++f){var v=r[f];if(v.ranges){u.push(l?Vn.prototype.deepCopy.call(v):v);continue}var b=v.changes,w=[];u.push({changes:w});for(var E=0;E<b.length;++E){var _=b[E],N=void 0;if(w.push({from:_.from,to:_.to,text:_.text}),s)for(var H in _)(N=H.match(/^spans_(\d+)$/))&&_e(s,Number(N[1]))>-1&&(he(w)[H]=_[H],delete _[H])}}return u}function fd(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 at(f,s)}else return new at(l||s,s)}function Vl(r,s,l,u,f){f==null&&(f=r.cm&&(r.cm.display.shift||r.extend)),an(r,new Vn([fd(r.sel.primary(),s,l,f)],0),u)}function Wm(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]=fd(r.sel.ranges[v],s[v],null,f);var b=fr(r.cm,u,r.sel.primIndex);an(r,b,l)}function hd(r,s,l,u){var f=r.sel.ranges.slice(0);f[s]=l,an(r,fr(r.cm,f,r.sel.primIndex),u)}function Gm(r,s,l,u){an(r,Pi(s,l),u)}function UF(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 at(Ue(r,f[v].anchor),Ue(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?fr(r.cm,u.ranges,u.ranges.length-1):s}function Km(r,s,l){var u=r.history.done,f=he(u);f&&f.ranges?(u[u.length-1]=s,Wl(r,s,l)):an(r,s,l)}function an(r,s,l){Wl(r,s,l),RF(r,r.sel,r.cm?r.cm.curOp.id:NaN,l)}function Wl(r,s,l){(fn(r,"beforeSelectionChange")||r.cm&&fn(r.cm,"beforeSelectionChange"))&&(s=UF(r,s,l));var u=l&&l.bias||(ee(s.primary().head,r.sel.primary().head)<0?-1:1);Qm(r,Ym(r,s,u,!0)),!(l&&l.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&lo(r.cm)}function Qm(r,s){s.equals(r.sel)||(r.sel=s,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,Dl(r.cm)),qt(r,"cursorActivity",r))}function Xm(r){Qm(r,Ym(r,r.sel,null,!1))}function Ym(r,s,l,u){for(var f,v=0;v<s.ranges.length;v++){var b=s.ranges[v],w=s.ranges.length==r.sel.ranges.length&&r.sel.ranges[v],E=Gl(r,b.anchor,w&&w.anchor,l,u),_=b.head==b.anchor?E:Gl(r,b.head,w&&w.head,l,u);(f||E!=b.anchor||_!=b.head)&&(f||(f=s.ranges.slice(0,v)),f[v]=new at(E,_))}return f?fr(r.cm,f,s.primIndex):s}function ho(r,s,l,u,f){var v=Le(r,s.line);if(v.markedSpans)for(var b=0;b<v.markedSpans.length;++b){var w=v.markedSpans[b],E=w.marker,_="selectLeft"in E?!E.selectLeft:E.inclusiveLeft,N="selectRight"in E?!E.selectRight:E.inclusiveRight;if((w.from==null||(_?w.from<=s.ch:w.from<s.ch))&&(w.to==null||(N?w.to>=s.ch:w.to>s.ch))){if(f&&(wt(E,"beforeCursorEnter"),E.explicitlyCleared))if(v.markedSpans){--b;continue}else break;if(!E.atomic)continue;if(l){var H=E.find(u<0?1:-1),Q=void 0;if((u<0?N:_)&&(H=Zm(r,H,-u,H&&H.line==s.line?v:null)),H&&H.line==s.line&&(Q=ee(H,l))&&(u<0?Q<0:Q>0))return ho(r,H,s,u,f)}var K=E.find(u<0?-1:1);return(u<0?_:N)&&(K=Zm(r,K,u,K.line==s.line?v:null)),K?ho(r,K,s,u,f):null}}return s}function Gl(r,s,l,u,f){var v=u||1,b=ho(r,s,l,v,f)||!f&&ho(r,s,l,v,!0)||ho(r,s,l,-v,f)||!f&&ho(r,s,l,-v,!0);return b||(r.cantEdit=!0,V(r.first,0))}function Zm(r,s,l,u){return l<0&&s.ch==0?s.line>r.first?Ue(r,V(s.line-1)):null:l>0&&s.ch==(u||Le(r,s.line)).text.length?s.line<r.first+r.size-1?V(s.line+1,0):null:new V(s.line,s.ch+l)}function Jm(r){r.setSelection(V(r.firstLine(),0),V(r.lastLine()),I)}function ey(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,w){f&&(u.from=Ue(r,f)),v&&(u.to=Ue(r,v)),b&&(u.text=b),w!==void 0&&(u.origin=w)}),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 po(r,s,l){if(r.cm){if(!r.cm.curOp)return jt(r.cm,po)(r,s,l);if(r.cm.state.suppressEdits)return}if(!((fn(r,"beforeChange")||r.cm&&fn(r.cm,"beforeChange"))&&(s=ey(r,s,!0),!s))){var u=Vv&&!l&&RS(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=ad(r,s);qm(r,s,l,r.cm?r.cm.curOp.id:NaN),ja(r,s,l,Oh(r,s));var u=[];Ii(r,function(f,v){!v&&_e(u,f.history)==-1&&(sy(f.history,s),u.push(f.history)),ja(f,s,null,Oh(f,s))})}}function Kl(r,s,l){var u=r.cm&&r.cm.state.suppressEdits;if(!(u&&!l)){for(var f=r.history,v,b=r.sel,w=s=="undo"?f.done:f.undone,E=s=="undo"?f.undone:f.done,_=0;_<w.length&&(v=w[_],!(l?v.ranges&&!v.equals(r.sel):!v.ranges));_++);if(_!=w.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(v=w.pop(),v.ranges){if(jl(v,E),l&&!v.equals(r.sel)){an(r,v,{clearRedo:!1});return}b=v}else if(u){w.push(v);return}else break;var N=[];jl(b,E),E.push({changes:N,generation:f.generation}),f.generation=v.generation||++f.maxGeneration;for(var H=fn(r,"beforeChange")||r.cm&&fn(r.cm,"beforeChange"),Q=function(ue){var ge=v.changes[ue];if(ge.origin=s,H&&!ey(r,ge,!1))return w.length=0,{};N.push(cd(r,ge));var we=ue?ad(r,ge):he(w);ja(r,ge,we,Vm(r,ge)),!ue&&r.cm&&r.cm.scrollIntoView({from:ge.from,to:Ni(ge)});var Ce=[];Ii(r,function(De,Se){!Se&&_e(Ce,De.history)==-1&&(sy(De.history,ge),Ce.push(De.history)),ja(De,ge,null,Vm(De,ge))})},K=v.changes.length-1;K>=0;--K){var te=Q(K);if(te)return te.v}}}}function ny(r,s){if(s!=0&&(r.first+=s,r.sel=new Vn(be(r.sel.ranges,function(f){return new at(V(f.anchor.line+s,f.anchor.ch),V(f.head.line+s,f.head.ch))}),r.sel.primIndex),r.cm)){bn(r.cm,r.first,r.first-s,s);for(var l=r.cm.display,u=l.viewFrom;u<l.viewTo;u++)Bi(r.cm,u,"gutter")}}function ja(r,s,l,u){if(r.cm&&!r.cm.curOp)return jt(r.cm,ja)(r,s,l,u);if(s.to.line<r.first){ny(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);ny(r,f),s={from:V(r.first,0),to:V(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:V(v,Le(r,v).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Jr(r,s.from,s.to),l||(l=ad(r,s)),r.cm?HF(r.cm,s,u):ld(r,s,u),Wl(r,l,I),r.cantEdit&&Gl(r,V(r.firstLine(),0))&&(r.cantEdit=!1)}}function HF(r,s,l){var u=r.doc,f=r.display,v=s.from,b=s.to,w=!1,E=v.line;r.options.lineWrapping||(E=ot(lr(Le(u,v.line))),u.iter(E,b.line+1,function(K){if(K==f.maxLine)return w=!0,!0})),u.sel.contains(s.from,s.to)>-1&&Dl(r),ld(u,s,l,Dm(r)),r.options.lineWrapping||(u.iter(E,v.line+s.text.length,function(K){var te=kl(K);te>f.maxLineLength&&(f.maxLine=K,f.maxLineLength=te,f.maxLineChanged=!0,w=!1)}),w&&(r.curOp.updateMaxLine=!0)),kS(u,v.line),Ua(r,400);var _=s.text.length-(b.line-v.line)-1;s.full?bn(r):v.line==b.line&&s.text.length==1&&!Mm(r.doc,s)?Bi(r,v.line,"text"):bn(r,v.line,b.line+1,_);var N=fn(r,"changes"),H=fn(r,"change");if(H||N){var Q={from:v,to:b,text:s.text,removed:s.removed,origin:s.origin};H&&qt(r,"change",r,Q),N&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(Q)}r.display.selForContextMenu=null}function go(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)),po(r,{from:l,to:u,text:s,origin:f})}function ry(r,s,l,u){l<r.line?r.line+=u:s<r.line&&(r.line=s,r.ch=0)}function iy(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 w=0;w<v.ranges.length;w++)ry(v.ranges[w].anchor,s,l,u),ry(v.ranges[w].head,s,l,u);continue}for(var E=0;E<v.changes.length;++E){var _=v.changes[E];if(l<_.from.line)_.from=V(_.from.line+u,_.from.ch),_.to=V(_.to.line+u,_.to.ch);else if(s<=_.to.line){b=!1;break}}b||(r.splice(0,f+1),f=0)}}function sy(r,s){var l=s.from.line,u=s.to.line,f=s.text.length-(u-l)-1;iy(r.done,l,u,f),iy(r.undone,l,u,f)}function Va(r,s,l,u){var f=s,v=s;return typeof s=="number"?v=Le(r,jn(r,s)):f=ot(s),f==null?null:(u(v,f)&&r.cm&&Bi(r.cm,f,l),v)}function Wa(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}Wa.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,qS(f),qt(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 Ga(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}Ga.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 Wa))){var w=[];this.collapse(w),this.children=[new Wa(w)],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,w=b;w<f.lines.length;){var E=new Wa(f.lines.slice(w,w+=25));f.height-=E.height,this.children.splice(++u,0,E),E.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 Ga(s);if(r.parent){r.size-=l.size,r.height-=l.height;var f=_e(r.parent.children,r);r.parent.children.splice(f+1,0,l)}else{var u=new Ga(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 Ka=function(r,s,l){if(l)for(var u in l)l.hasOwnProperty(u)&&(this[u]=l[u]);this.doc=r,this.node=s};Ka.prototype.clear=function(){var r=this.doc.cm,s=this.line.widgets,l=this.line,u=ot(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=Oa(this);er(l,Math.max(0,l.height-v)),r&&(On(r,function(){oy(r,l,-v),Bi(r,u,"widget")}),qt(r,"lineWidgetCleared",r,this,u))}},Ka.prototype.changed=function(){var r=this,s=this.height,l=this.doc.cm,u=this.line;this.height=null;var f=Oa(this)-s;!f||(Li(this.doc,u)||er(u,u.height+f),l&&On(l,function(){l.curOp.forceUpdate=!0,oy(l,u,f),qt(l,"lineWidgetChanged",l,r,ot(u))}))},hn(Ka);function oy(r,s,l){ti(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&td(r,l)}function qF(r,s,l,u){var f=new Ka(r,l,u),v=r.cm;return v&&f.noHScroll&&(v.display.alignWidgets=!0),Va(r,s,"widget",function(b){var w=b.widgets||(b.widgets=[]);if(f.insertAt==null?w.push(f):w.splice(Math.min(w.length,Math.max(0,f.insertAt)),0,f),f.line=b,v&&!Li(r,b)){var E=ti(b)<r.scrollTop;er(b,b.height+Oa(f)),E&&td(v,f.height),v.curOp.forceUpdate=!0}return!0}),v&&qt(v,"lineWidgetAdded",v,f,typeof s=="number"?s:ot(s)),f}var ay=0,Ri=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++ay};Ri.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&gs(r),fn(this,"clear")){var l=this.find();l&&qt(this,"clear",l.from,l.to)}for(var u=null,f=null,v=0;v<this.lines.length;++v){var b=this.lines[v],w=ka(b.markedSpans,this);r&&!this.collapsed?Bi(r,ot(b),"text"):r&&(w.to!=null&&(f=ot(b)),w.from!=null&&(u=ot(b))),b.markedSpans=OS(b.markedSpans,w),w.from==null&&this.collapsed&&!Li(this.doc,b)&&r&&er(b,oo(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var E=0;E<this.lines.length;++E){var _=lr(this.lines[E]),N=kl(_);N>r.display.maxLineLength&&(r.display.maxLine=_,r.display.maxLineLength=N,r.display.maxLineChanged=!0)}u!=null&&r&&this.collapsed&&bn(r,u,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&Xm(r.doc)),r&&qt(r,"markerCleared",r,this,u,f),s&&vs(r),this.parent&&this.parent.clear()}},Ri.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=ka(v.markedSpans,this);if(b.from!=null&&(l=V(s?v:ot(v),b.from),r==-1))return l;if(b.to!=null&&(u=V(s?v:ot(v),b.to),r==1))return u}return l&&{from:l,to:u}},Ri.prototype.changed=function(){var r=this,s=this.find(-1,!0),l=this,u=this.doc.cm;!s||!u||On(u,function(){var f=s.line,v=ot(s.line),b=Hh(u,v);if(b&&(dm(b),u.curOp.selectionChanged=u.curOp.forceUpdate=!0),u.curOp.updateMaxLine=!0,!Li(l.doc,f)&&l.height!=null){var w=l.height;l.height=null;var E=Oa(l)-w;E&&er(f,f.height+E)}qt(u,"markerChanged",u,r)})},Ri.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||_e(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},Ri.prototype.detachLine=function(r){if(this.lines.splice(_e(this.lines,r),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},hn(Ri);function vo(r,s,l,u,f){if(u&&u.shared)return jF(r,s,l,u,f);if(r.cm&&!r.cm.curOp)return jt(r.cm,vo)(r,s,l,u,f);var v=new Ri(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=z("span",[v.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(Yv(r,s.line,s,l,v)||s.line!=l.line&&Yv(r,l.line,s,l,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");BS()}v.addToHistory&&qm(r,{from:s,to:l,origin:"markText"},r.sel,NaN);var w=s.line,E=r.cm,_;if(r.iter(w,l.line+1,function(H){E&&v.collapsed&&!E.options.lineWrapping&&lr(H)==E.display.maxLine&&(_=!0),v.collapsed&&w!=s.line&&er(H,0),PS(H,new Sl(v,w==s.line?s.ch:null,w==l.line?l.ch:null),r.cm&&r.cm.curOp),++w}),v.collapsed&&r.iter(s.line,l.line+1,function(H){Li(r,H)&&er(H,0)}),v.clearOnEnter&&Ae(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(LS(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),v.collapsed&&(v.id=++ay,v.atomic=!0),E){if(_&&(E.curOp.updateMaxLine=!0),v.collapsed)bn(E,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++)Bi(E,N,"text");v.atomic&&Xm(E.doc),qt(E,"markerAdded",E,v)}return v}var Qa=function(r,s){this.markers=r,this.primary=s;for(var l=0;l<r.length;++l)r[l].parent=this};Qa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();qt(this,"clear")}},Qa.prototype.find=function(r,s){return this.primary.find(r,s)},hn(Qa);function jF(r,s,l,u,f){u=se(u),u.shared=!1;var v=[vo(r,s,l,u,f)],b=v[0],w=u.widgetNode;return Ii(r,function(E){w&&(u.widgetNode=w.cloneNode(!0)),v.push(vo(E,Ue(E,s),Ue(E,l),u,f));for(var _=0;_<E.linked.length;++_)if(E.linked[_].isParent)return;b=he(v)}),new Qa(v,b)}function uy(r){return r.findMarks(V(r.first,0),r.clipPos(V(r.lastLine())),function(s){return s.parent})}function VF(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 w=vo(r,v,b,u.primary,u.primary.type);u.markers.push(w),w.parent=u}}}function WF(r){for(var s=function(u){var f=r[u],v=[f.primary.doc];Ii(f.primary.doc,function(E){return v.push(E)});for(var b=0;b<f.markers.length;b++){var w=f.markers[b];_e(v,w.doc)==-1&&(w.parent=null,f.markers.splice(b--,1))}},l=0;l<r.length;l++)s(l)}var GF=0,wn=function(r,s,l,u,f){if(!(this instanceof wn))return new wn(r,s,l,u,f);l==null&&(l=0),Ga.call(this,[new Wa([new ro("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var v=V(l,0);this.sel=Pi(v),this.history=new ql(null),this.id=++GF,this.modeOption=s,this.lineSep=u,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),ld(this,{from:v,to:v,text:r}),an(this,Pi(v),I)};wn.prototype=Ne(Ga.prototype,{constructor:wn,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=no(this,this.first,this.first+this.size);return r===!1?s:s.join(r||this.lineSeparator())},setValue:Vt(function(r){var s=V(this.first,0),l=this.first+this.size-1;po(this,{from:s,to:V(l,Le(this,l).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&Ia(this.cm,0,0),an(this,Pi(s),I)}),replaceRange:function(r,s,l,u){s=Ue(this,s),l=l?Ue(this,l):s,go(this,r,s,l,u)},getRange:function(r,s,l){var u=Jr(this,Ue(this,r),Ue(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 ot(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=Le(this,r)),lr(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return Ue(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:Vt(function(r,s,l){Gm(this,Ue(this,typeof r=="number"?V(r,s||0):r),null,l)}),setSelection:Vt(function(r,s,l){Gm(this,Ue(this,r),Ue(this,s||r),l)}),extendSelection:Vt(function(r,s,l){Vl(this,Ue(this,r),s&&Ue(this,s),l)}),extendSelections:Vt(function(r,s){Wm(this,Iv(this,r),s)}),extendSelectionsBy:Vt(function(r,s){var l=be(this.sel.ranges,r);Wm(this,Iv(this,l),s)}),setSelections:Vt(function(r,s,l){if(!!r.length){for(var u=[],f=0;f<r.length;f++)u[f]=new at(Ue(this,r[f].anchor),Ue(this,r[f].head||r[f].anchor));s==null&&(s=Math.min(r.length-1,this.sel.primIndex)),an(this,fr(this.cm,u,s),l)}}),addSelection:Vt(function(r,s,l){var u=this.sel.ranges.slice(0);u.push(new at(Ue(this,r),Ue(this,s||r))),an(this,fr(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=Jr(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=Jr(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:Vt(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 w=s&&s!="end"&&OF(this,u,s),E=u.length-1;E>=0;E--)po(this,u[E]);w?Km(this,w):this.cm&&lo(this.cm)}),undo:Vt(function(){Kl(this,"undo")}),redo:Vt(function(){Kl(this,"redo")}),undoSelection:Vt(function(){Kl(this,"undo",!0)}),redoSelection:Vt(function(){Kl(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 ql(this.history),Ii(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:fo(this.history.done),undone:fo(this.history.undone)}},setHistory:function(r){var s=this.history=new ql(this.history);s.done=fo(r.done.slice(0),null,!0),s.undone=fo(r.undone.slice(0),null,!0)},setGutterMarker:Vt(function(r,s,l){return Va(this,r,"gutter",function(u){var f=u.gutterMarkers||(u.gutterMarkers={});return f[s]=l,!l&&Ge(f)&&(u.gutterMarkers=null),!0})}),clearGutter:Vt(function(r){var s=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[r]&&Va(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=ot(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:Vt(function(r,s,l){return Va(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:Vt(function(r,s,l){return Va(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 w=b.index+b[0].length;u[f]=v.slice(0,b.index)+(!b.index||w==v.length?"":" ")+v.slice(w)||null}else return!1;return!0})}),addLineWidget:Vt(function(r,s,l){return qF(this,r,s,l)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,l){return vo(this,Ue(this,r),Ue(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=Ue(this,r),vo(this,r,r,l,"bookmark")},findMarksAt:function(r){r=Ue(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=Ue(this,r),s=Ue(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 w=0;w<b.length;w++){var E=b[w];!(E.to!=null&&f==r.line&&r.ch>=E.to||E.from==null&&f!=r.line||E.from!=null&&f==s.line&&E.from>=s.ch)&&(!l||l(E.marker))&&u.push(E.marker.parent||E.marker)}++f}),u},getAllMarks:function(){var 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}),Ue(this,V(l,s))},indexFromPos:function(r){r=Ue(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 wn(no(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 wn(no(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}],VF(u,uy(this)),u},unlinkDoc:function(r){if(r instanceof Et&&(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),WF(uy(this));break}}if(r.history==this.history){var u=[r.id];Ii(r,function(f){return u.push(f.id)},!0),r.history=new ql(null),r.history.done=fo(this.history.done,u),r.history.undone=fo(this.history.undone,u)}},iterLinkedDocs:function(r){Ii(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):Fa(r)},lineSeparator:function(){return this.lineSep||`
|
|
25
|
+
`},setDirection:Vt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(s){return s.order=null}),this.cm&&PF(this.cm))})}),wn.prototype.eachLine=wn.prototype.iter;var ly=0;function KF(r){var s=this;if(cy(s),!($t(s,r)||ni(s.display,r))){on(r),d&&(ly=+new Date);var l=fs(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,w=function(){++b==f&&jt(s,function(){l=Ue(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"};po(s.doc,K),Km(s.doc,Pi(Ue(s.doc,l),Ue(s.doc,Ni(K))))})()},E=function(K,te){if(s.options.allowDropFileTypes&&_e(s.options.allowDropFileTypes,K.type)==-1){w();return}var ue=new FileReader;ue.onerror=function(){return w()},ue.onload=function(){var ge=ue.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){w();return}v[te]=ge,w()},ue.readAsText(K)},_=0;_<u.length;_++)E(u[_],_);else{if(s.state.draggingText&&s.doc.sel.contains(l)>-1){s.state.draggingText(r),setTimeout(function(){return s.display.input.focus()},20);return}try{var N=r.dataTransfer.getData("Text");if(N){var H;if(s.state.draggingText&&!s.state.draggingText.copy&&(H=s.listSelections()),Wl(s.doc,Pi(l,l)),H)for(var Q=0;Q<H.length;++Q)go(s.doc,"",H[Q].anchor,H[Q].head,"drag");s.replaceSelection(N,"around","paste"),s.display.input.focus()}}catch{}}}}function QF(r,s){if(d&&(!r.state.draggingText||+new Date-ly<100)){Xr(s);return}if(!($t(r,s)||ni(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 XF(r,s){var l=fs(r,s);if(!!l){var u=document.createDocumentFragment();Xh(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 cy(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function fy(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 hy=!1;function YF(){hy||(ZF(),hy=!0)}function ZF(){var r;Ae(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,fy(JF)},100))}),Ae(window,"blur",function(){return fy(uo)})}function JF(r){var s=r.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,r.setSize()}for(var Mi={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"},Xa=0;Xa<10;Xa++)Mi[Xa+48]=Mi[Xa+96]=String(Xa);for(var Ql=65;Ql<=90;Ql++)Mi[Ql]=String.fromCharCode(Ql);for(var Ya=1;Ya<=12;Ya++)Mi[Ya+111]=Mi[Ya+63235]="F"+Ya;var ii={};ii.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"},ii.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"},ii.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"},ii.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"]},ii.default=k?ii.macDefault:ii.pcDefault;function e$(r){var s=r.split(/-(?!$)/);r=s[s.length-1];for(var l,u,f,v,b=0;b<s.length-1;b++){var w=s[b];if(/^(cmd|meta|m)$/i.test(w))v=!0;else if(/^a(lt)?$/i.test(w))l=!0;else if(/^(c|ctrl|control)$/i.test(w))u=!0;else if(/^s(hift)?$/i.test(w))f=!0;else throw new Error("Unrecognized modifier name: "+w)}return l&&(r="Alt-"+r),u&&(r="Ctrl-"+r),v&&(r="Cmd-"+r),f&&(r="Shift-"+r),r}function t$(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(" "),e$),v=0;v<f.length;v++){var b=void 0,w=void 0;v==f.length-1?(w=f.join(" "),b=u):(w=f.slice(0,v+1).join(" "),b="...");var E=s[w];if(!E)s[w]=b;else if(E!=b)throw new Error("Inconsistent bindings for "+w)}delete r[l]}for(var _ in s)r[_]=s[_];return r}function mo(r,s,l,u){s=Xl(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 mo(r,s.fallthrough,l,u);for(var v=0;v<s.fallthrough.length;v++){var b=mo(r,s.fallthrough[v],l,u);if(b)return b}}}function dy(r){var s=typeof r=="string"?r:Mi[r.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function py(r,s,l){var u=r;return s.altKey&&u!="Alt"&&(r="Alt-"+r),(ie?s.metaKey:s.ctrlKey)&&u!="Ctrl"&&(r="Ctrl-"+r),(ie?s.ctrlKey:s.metaKey)&&u!="Mod"&&(r="Cmd-"+r),!l&&s.shiftKey&&u!="Shift"&&(r="Shift-"+r),r}function gy(r,s){if($&&r.keyCode==34&&r.char)return!1;var l=Mi[r.keyCode];return l==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(l=r.code),py(l,r,s))}function Xl(r){return typeof r=="string"?ii[r]:r}function yo(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)}On(r,function(){for(var w=u.length-1;w>=0;w--)go(r.doc,"",u[w].from,u[w].to,"+delete");lo(r)})}function dd(r,s,l){var u=ct(r.text,s+l,l);return u<0||u>r.text.length?null:u}function pd(r,s,l){var u=dd(r,s.ch,l);return u==null?null:new V(s.line,u,l<0?"after":"before")}function gd(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],w=f<0==(b.level==1),E=w?"after":"before",_;if(b.level>0||s.doc.direction=="rtl"){var N=so(s,l);_=f<0?l.text.length-1:0;var H=Br(s,N,_).top;_=Ye(function(Q){return Br(s,N,Q).top==H},f<0==(b.level==1)?b.from:b.to-1,_),E=="before"&&(_=dd(l,_,1))}else _=f<0?b.to:b.from;return new V(u,_,E)}}return new V(u,f<0?l.text.length:0,f<0?"before":"after")}function n$(r,s,l,u){var f=Dt(s,r.doc.direction);if(!f)return pd(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=Jt(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 pd(s,l,u);var w=function(we,Ce){return dd(s,we instanceof V?we.ch:we,Ce)},E,_=function(we){return r.options.lineWrapping?(E=E||so(r,s),wm(r,s,E,we)):{begin:0,end:s.text.length}},N=_(l.sticky=="before"?w(l,-1):l.ch);if(r.doc.direction=="rtl"||b.level==1){var H=b.level==1==u<0,Q=w(l,H?1:-1);if(Q!=null&&(H?Q<=b.to&&Q<=N.end:Q>=b.from&&Q>=N.begin)){var K=H?"before":"after";return new V(l.line,Q,K)}}var te=function(we,Ce,De){for(var Se=function(mt,Wt){return Wt?new V(l.line,w(mt,1),"before"):new V(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:w(De.end,-1);if(Ie.from<=We&&We<Ie.to||(We=Oe?Ie.from:w(Ie.to,-1),De.begin<=We&&We<De.end))return Se(We,Oe)}},ue=te(v+u,u,N);if(ue)return ue;var ge=u>0?N.end:w(N.begin,-1);return ge!=null&&!(u>0&&ge==s.text.length)&&(ue=te(u>0?0:f.length-1,u,_(ge)),ue)?ue:null}var Za={selectAll:Jm,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),I)},killLine:function(r){return yo(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:V(s.head.line+1,0)}:{from:s.head,to:V(s.head.line,l)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(r){return yo(r,function(s){return{from:V(s.from().line,0),to:Ue(r.doc,V(s.to().line+1,0))}})},delLineLeft:function(r){return yo(r,function(s){return{from:V(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return yo(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 yo(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(V(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(V(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 my(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return r$(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")},ne)},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")},ne)},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/)?my(r,s.head):u},ne)},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 On(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 V(f.line,f.ch-1)),f.ch>0)f=new V(f.line,f.ch+1),r.replaceRange(v.charAt(f.ch-1)+v.charAt(f.ch-2),V(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 V(f.line,1),r.replaceRange(v.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),V(f.line-1,b.length-1),f,"+transpose"))}}l.push(new at(f,f))}r.setSelections(l)})},newlineAndIndent:function(r){return On(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);lo(r)})},openLine:function(r){return r.replaceSelection(`
|
|
26
|
+
`,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function vy(r,s){var l=Le(r.doc,s),u=lr(l);return u!=l&&(s=ot(u)),gd(!0,r,u,s,1)}function r$(r,s){var l=Le(r.doc,s),u=zS(l);return u!=l&&(s=ot(u)),gd(!0,r,l,s,-1)}function my(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 V(l.line,b?0:v,l.sticky)}return l}function Yl(r,s,l){if(typeof s=="string"&&(s=Za[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)!=Te}finally{r.display.shift=u,r.state.suppressEdits=!1}return f}function i$(r,s,l){for(var u=0;u<r.state.keyMaps.length;u++){var f=mo(s,r.state.keyMaps[u],l,r);if(f)return f}return r.options.extraKeys&&mo(s,r.options.extraKeys,l,r)||mo(s,r.options.keyMap,l,r)}var s$=new fe;function Ja(r,s,l,u){var f=r.state.keySeq;if(f){if(dy(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:s$.set(50,function(){r.state.keySeq==f&&(r.state.keySeq=null,r.display.input.reset())}),yy(r,f+" "+s,l,u))return!0}return yy(r,s,l,u)}function yy(r,s,l,u){var f=i$(r,s,u);return f=="multi"&&(r.state.keySeq=s),f=="handled"&&qt(r,"keyHandled",r,s,l),(f=="handled"||f=="multi")&&(on(l),Yh(r)),!!f}function by(r,s){var l=gy(s,!0);return l?s.shiftKey&&!r.state.keySeq?Ja(r,"Shift-"+l,s,function(u){return Yl(r,u,!0)})||Ja(r,l,s,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return Yl(r,u)}):Ja(r,l,s,function(u){return Yl(r,u)}):!1}function o$(r,s,l){return Ja(r,"'"+l+"'",s,function(u){return Yl(r,u,!0)})}var vd=null;function wy(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&(s.curOp.focus=ae(je(s)),!$t(s,r))){d&&p<11&&r.keyCode==27&&(r.returnValue=!1);var l=r.keyCode;s.display.shift=l==16||r.shiftKey;var u=by(s,r);$&&(vd=u?l:null,!u&&l==88&&!Fr&&(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)&&a$(s)}}function a$(r){var s=r.display.lineDiv;me(s,"CodeMirror-crosshair");function l(u){(u.keyCode==18||!u.altKey)&&(U(s,"CodeMirror-crosshair"),sn(document,"keyup",l),sn(document,"mouseover",l))}Ae(document,"keyup",l),Ae(document,"mouseover",l)}function Dy(r){r.keyCode==16&&(this.doc.sel.shift=!1),$t(this,r)}function Ay(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&!(ni(s.display,r)||$t(s,r)||r.ctrlKey&&!r.altKey||k&&r.metaKey)){var l=r.keyCode,u=r.charCode;if($&&l==vd){vd=null,on(r);return}if(!($&&(!r.which||r.which<10)&&by(s,r))){var f=String.fromCharCode(u??l);f!="\b"&&(o$(s,r,f)||s.display.input.onKeyPress(r))}}}var u$=400,md=function(r,s,l){this.time=r,this.pos=s,this.button=l};md.prototype.compare=function(r,s,l){return this.time+u$>r&&ee(s,this.pos)==0&&l==this.button};var eu,tu;function l$(r,s){var l=+new Date;return tu&&tu.compare(l,r,s)?(eu=tu=null,"triple"):eu&&eu.compare(l,r,s)?(tu=new md(l,r,s),eu=null,"double"):(eu=new md(l,r,s),tu=null,"single")}function Ey(r){var s=this,l=s.display;if(!($t(s,r)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=r.shiftKey,ni(l,r)){g||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!yd(s,r)){var u=fs(s,r),f=Sa(r),v=u?l$(u,f):"single";tt(s).focus(),f==1&&s.state.selectingText&&s.state.selectingText(r),!(u&&c$(s,f,u,v,r))&&(f==1?u?h$(s,u,v,r):yn(r)==l.scroller&&on(r):f==2?(u&&Vl(s.doc,u),setTimeout(function(){return l.input.focus()},20)):f==3&&(ce?s.display.input.onContextMenu(r):Zh(s)))}}}function c$(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,Ja(r,py(v,f),f,function(b){if(typeof b=="string"&&(b=Za[b]),!b)return!1;var w=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),w=b(r,l)!=Te}finally{r.state.suppressEdits=!1}return w})}function f$(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 h$(r,s,l,u){d?setTimeout(re(xm,r),0):r.curOp.focus=ae(je(r));var f=f$(r,l,u),v=r.doc.sel,b;r.options.dragDrop&&Th&&!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)?d$(r,u,s,f):p$(r,u,s,f)}function d$(r,s,l,u){var f=r.display,v=!1,b=jt(r,function(_){g&&(f.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:Zh(r)),sn(f.wrapper.ownerDocument,"mouseup",b),sn(f.wrapper.ownerDocument,"mousemove",w),sn(f.scroller,"dragstart",E),sn(f.scroller,"drop",b),v||(on(_),u.addNew||Vl(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())}),w=function(_){v=v||Math.abs(s.clientX-_.clientX)+Math.abs(s.clientY-_.clientY)>=10},E=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",w),Ae(f.scroller,"dragstart",E),Ae(f.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function xy(r,s,l){if(l=="char")return new at(s,s);if(l=="word")return r.findWordAt(s);if(l=="line")return new at(V(s.line,0),Ue(r.doc,V(s.line+1,0)));var u=l(r,s);return new at(u.from,u.to)}function p$(r,s,l,u){d&&Zh(r);var f=r.display,v=r.doc;on(s);var b,w,E=v.sel,_=E.ranges;if(u.addNew&&!u.extend?(w=v.sel.contains(l),w>-1?b=_[w]:b=new at(l,l)):(b=v.sel.primary(),w=v.sel.primIndex),u.unit=="rectangle")u.addNew||(b=new at(l,l)),l=fs(r,s,!0,!0),w=-1;else{var N=xy(r,l,u.unit);u.extend?b=fd(b,N.anchor,N.head,u.extend):b=N}u.addNew?w==-1?(w=_.length,an(v,fr(r,_.concat([b]),w),{scroll:!1,origin:"*mouse"})):_.length>1&&_[w].empty()&&u.unit=="char"&&!u.extend?(an(v,fr(r,_.slice(0,w).concat(_.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),E=v.sel):hd(v,w,b,G):(w=0,an(v,new Vn([b],0),G),E=v.sel);var H=l;function Q(De){if(ee(H,De)!=0)if(H=De,u.unit=="rectangle"){for(var Se=[],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),Wt=Math.max(Oe,We),St=Math.min(l.line,De.line),Pn=Math.min(r.lastLine(),Math.max(l.line,De.line));St<=Pn;St++){var Dn=Le(v,St).text,Nt=oe(Dn,mt,Ie);mt==Wt?Se.push(new at(V(St,Nt),V(St,Nt))):Dn.length>Nt&&Se.push(new at(V(St,Nt),V(St,oe(Dn,Wt,Ie))))}Se.length||Se.push(new at(l,l)),an(v,fr(r,E.ranges.slice(0,w).concat(Se),w),{origin:"*mouse",scroll:!1}),r.scrollIntoView(De)}else{var An=b,en=xy(r,De,u.unit),Ht=An.anchor,It;ee(en.anchor,Ht)>0?(It=en.head,Ht=Ut(An.from(),en.anchor)):(It=en.anchor,Ht=rt(An.to(),en.head));var kt=E.ranges.slice(0);kt[w]=g$(r,new at(Ue(v,Ht),It)),an(v,fr(r,kt,w),G)}}var K=f.wrapper.getBoundingClientRect(),te=0;function ue(De){var Se=++te,Ie=fs(r,De,!0,u.unit=="rectangle");if(!!Ie)if(ee(Ie,H)!=0){r.curOp.focus=ae(je(r)),Q(Ie);var Oe=Ml(f,v);(Ie.line>=Oe.to||Ie.line<Oe.from)&&setTimeout(jt(r,function(){te==Se&&ue(De)}),150)}else{var We=De.clientY<K.top?-20:De.clientY>K.bottom?20:0;We&&setTimeout(jt(r,function(){te==Se&&(f.scroller.scrollTop+=We,ue(De))}),50)}}function ge(De){r.state.selectingText=!1,te=1/0,De&&(on(De),f.input.focus()),sn(f.wrapper.ownerDocument,"mousemove",we),sn(f.wrapper.ownerDocument,"mouseup",Ce),v.history.lastSelOrigin=null}var we=jt(r,function(De){De.buttons===0||!Sa(De)?ge(De):ue(De)}),Ce=jt(r,ge);r.state.selectingText=Ce,Ae(f.wrapper.ownerDocument,"mousemove",we),Ae(f.wrapper.ownerDocument,"mouseup",Ce)}function g$(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=Jt(v,l.ch,l.sticky),w=v[b];if(w.from!=l.ch&&w.to!=l.ch)return s;var E=b+(w.from==l.ch==(w.level!=1)?0:1);if(E==0||E==v.length)return s;var _;if(u.line!=l.line)_=(u.line-l.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var N=Jt(v,u.ch,u.sticky),H=N-b||(u.ch-l.ch)*(w.level==1?-1:1);N==E-1||N==E?_=H<0:_=H>0}var Q=v[E+(_?-1:0)],K=_==(Q.level==1),te=K?Q.from:Q.to,ue=K?"after":"before";return l.ch==te&&l.sticky==ue?s:new at(new V(l.line,te,ue),u)}function Cy(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&&on(s);var b=r.display,w=b.lineDiv.getBoundingClientRect();if(v>w.bottom||!fn(r,l))return _a(s);v-=w.top-b.viewOffset;for(var E=0;E<r.display.gutterSpecs.length;++E){var _=b.gutters.childNodes[E];if(_&&_.getBoundingClientRect().right>=f){var N=Tr(r.doc,v),H=r.display.gutterSpecs[E];return wt(r,l,r,N,H.className,s),_a(s)}}}function yd(r,s){return Cy(r,s,"gutterClick",!0)}function _y(r,s){ni(r.display,s)||v$(r,s)||$t(r,s,"contextmenu")||ce||r.display.input.onContextMenu(s)}function v$(r,s){return fn(r,"gutterContextMenu")?Cy(r,s,"gutterContextMenu",!1):!1}function Sy(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Pa(r)}var bo={toString:function(){return"CodeMirror.Init"}},Fy={},Zl={};function m$(r){var s=r.optionHandlers;function l(u,f,v,b){r.defaults[u]=f,v&&(s[u]=b?function(w,E,_){_!=bo&&v(w,E,_)}:v)}r.defineOption=l,r.Init=bo,l("value","",function(u,f){return u.setValue(f)},!0),l("mode",null,function(u,f){u.doc.modeOption=f,ud(u)},!0),l("indentUnit",2,ud,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(u){qa(u),Pa(u),bn(u)},!0),l("lineSeparator",null,function(u,f){if(u.doc.lineSep=f,!!f){var v=[],b=u.doc.first;u.doc.iter(function(E){for(var _=0;;){var N=E.text.indexOf(f,_);if(N==-1)break;_=N+f.length,v.push(V(b,N))}b++});for(var w=v.length-1;w>=0;w--)go(u.doc,f,v[w],V(v[w].line,v[w].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!=bo&&u.refresh()}),l("specialCharPlaceholder",WS,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",!R),l("wholeLineUpdateBefore",!0),l("theme","default",function(u){Sy(u),Ha(u)},!0),l("keyMap","default",function(u,f,v){var b=Xl(f),w=v!=bo&&Xl(v);w&&w.detach&&w.detach(u,b),b.attach&&b.attach(u,w||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,b$,!0),l("gutters",[],function(u,f){u.display.gutterSpecs=od(f,u.options.lineNumbers),Ha(u)},!0),l("fixedGutter",!0,function(u,f){u.display.gutters.style.left=f?Kh(u.display)+"px":"0",u.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(u){return co(u)},!0),l("scrollbarStyle","native",function(u){Tm(u),co(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=od(u.options.gutters,f),Ha(u)},!0),l("firstLineNumber",1,Ha,!0),l("lineNumberFormatter",function(u){return u},Ha,!0),l("showCursorWhenSelecting",!1,Na,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(u,f){f=="nocursor"&&(uo(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,y$),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Na,!0),l("singleCursorHeightPerLine",!0,Na,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,qa,!0),l("addModeClass",!1,qa,!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,qa,!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 y$(r,s,l){var u=l&&l!=bo;if(!s!=!u){var f=r.display.dragFunctions,v=s?Ae:sn;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 b$(r){r.options.lineWrapping?(me(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(U(r.display.wrapper,"CodeMirror-wrap"),Rh(r)),Qh(r),bn(r),Pa(r),setTimeout(function(){return co(r)},100)}function Et(r,s){var l=this;if(!(this instanceof Et))return new Et(r,s);this.options=s=s?se(s):{},se(Fy,s,!1);var u=s.value;typeof u=="string"?u=new wn(u,s.mode,null,s.lineSeparator,s.direction):s.mode&&(u.modeOption=s.mode),this.doc=u;var f=new Et.inputStyles[s.inputStyle](this),v=this.display=new LF(r,u,f,s);v.wrapper.CodeMirror=this,Sy(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Tm(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),w$(this),YF(),gs(this),this.curOp.forceUpdate=!0,zm(this,u),s.autofocus&&!B||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Jh(l)},20):uo(this);for(var b in Zl)Zl.hasOwnProperty(b)&&Zl[b](this,s[b],bo);Bm(this),s.finishInit&&s.finishInit(this);for(var w=0;w<bd.length;++w)bd[w](this);vs(this),g&&s.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}Et.defaults=Fy,Et.optionHandlers=Zl;function w$(r){var s=r.display;Ae(s.scroller,"mousedown",jt(r,Ey)),d&&p<11?Ae(s.scroller,"dblclick",jt(r,function(E){if(!$t(r,E)){var _=fs(r,E);if(!(!_||yd(r,E)||ni(r.display,E))){on(E);var N=r.findWordAt(_);Vl(r.doc,N.anchor,N.head)}}})):Ae(s.scroller,"dblclick",function(E){return $t(r,E)||on(E)}),Ae(s.scroller,"contextmenu",function(E){return _y(r,E)}),Ae(s.input.getField(),"contextmenu",function(E){s.scroller.contains(E.target)||_y(r,E)});var l,u={end:0};function f(){s.activeTouch&&(l=setTimeout(function(){return s.activeTouch=null},1e3),u=s.activeTouch,u.end=+new Date)}function v(E){if(E.touches.length!=1)return!1;var _=E.touches[0];return _.radiusX<=1&&_.radiusY<=1}function b(E,_){if(_.left==null)return!0;var N=_.left-E.left,H=_.top-E.top;return N*N+H*H>20*20}Ae(s.scroller,"touchstart",function(E){if(!$t(r,E)&&!v(E)&&!yd(r,E)){s.input.ensurePolled(),clearTimeout(l);var _=+new Date;s.activeTouch={start:_,moved:!1,prev:_-u.end<=300?u:null},E.touches.length==1&&(s.activeTouch.left=E.touches[0].pageX,s.activeTouch.top=E.touches[0].pageY)}}),Ae(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Ae(s.scroller,"touchend",function(E){var _=s.activeTouch;if(_&&!ni(s,E)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=r.coordsChar(s.activeTouch,"page"),H;!_.prev||b(_,_.prev)?H=new at(N,N):!_.prev.prev||b(_,_.prev.prev)?H=r.findWordAt(N):H=new at(V(N.line,0),Ue(r.doc,V(N.line+1,0))),r.setSelection(H.anchor,H.head),r.focus(),on(E)}f()}),Ae(s.scroller,"touchcancel",f),Ae(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Ra(r,s.scroller.scrollTop),ds(r,s.scroller.scrollLeft,!0),wt(r,"scroll",r))}),Ae(s.scroller,"mousewheel",function(E){return Nm(r,E)}),Ae(s.scroller,"DOMMouseScroll",function(E){return Nm(r,E)}),Ae(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(E){$t(r,E)||Xr(E)},over:function(E){$t(r,E)||(XF(r,E),Xr(E))},start:function(E){return QF(r,E)},drop:jt(r,KF),leave:function(E){$t(r,E)||cy(r)}};var w=s.input.getField();Ae(w,"keyup",function(E){return Dy.call(r,E)}),Ae(w,"keydown",jt(r,wy)),Ae(w,"keypress",jt(r,Ay)),Ae(w,"focus",function(E){return Jh(r,E)}),Ae(w,"blur",function(E){return uo(r,E)})}var bd=[];Et.defineInitHook=function(r){return bd.push(r)};function nu(r,s,l,u){var f=r.doc,v;l==null&&(l="add"),l=="smart"&&(f.mode.indent?v=Ta(r,s).state:l="prev");var b=r.options.tabSize,w=Le(f,s),E=J(w.text,null,b);w.stateAfter&&(w.stateAfter=null);var _=w.text.match(/^\s*/)[0],N;if(!u&&!/\S/.test(w.text))N=0,l="not";else if(l=="smart"&&(N=f.mode.indent(v,w.text.slice(_.length),w.text),N==Te||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=E+r.options.indentUnit:l=="subtract"?N=E-r.options.indentUnit:typeof l=="number"&&(N=E+l),N=Math.max(0,N);var H="",Q=0;if(r.options.indentWithTabs)for(var K=Math.floor(N/b);K;--K)Q+=b,H+=" ";if(Q<N&&(H+=ye(N-Q)),H!=_)return go(f,H,V(s,0),V(s,_.length),"+input"),w.stateAfter=null,!0;for(var te=0;te<f.sel.ranges.length;te++){var ue=f.sel.ranges[te];if(ue.head.line==s&&ue.head.ch<_.length){var ge=V(s,_.length);hd(f,te,new at(ge,ge));break}}}var hr=null;function Jl(r){hr=r}function wd(r,s,l,u,f){var v=r.doc;r.display.shift=!1,u||(u=v.sel);var b=+new Date-200,w=f=="paste"||r.state.pasteIncoming>b,E=Fa(s),_=null;if(w&&u.ranges.length>1)if(hr&&hr.text.join(`
|
|
27
|
+
`)==s){if(u.ranges.length%hr.text.length==0){_=[];for(var N=0;N<hr.text.length;N++)_.push(v.splitLines(hr.text[N]))}}else E.length==u.ranges.length&&r.options.pasteLinesPerSelection&&(_=be(E,function(we){return[we]}));for(var H=r.curOp.updateInput,Q=u.ranges.length-1;Q>=0;Q--){var K=u.ranges[Q],te=K.from(),ue=K.to();K.empty()&&(l&&l>0?te=V(te.line,te.ch-l):r.state.overwrite&&!w?ue=V(ue.line,Math.min(Le(v,ue.line).text.length,ue.ch+he(E).length)):w&&hr&&hr.lineWise&&hr.text.join(`
|
|
28
|
+
`)==E.join(`
|
|
29
|
+
`)&&(te=ue=V(te.line,0)));var ge={from:te,to:ue,text:_?_[Q%_.length]:E,origin:f||(w?"paste":r.state.cutIncoming>b?"cut":"+input")};po(r.doc,ge),qt(r,"inputRead",r,ge)}s&&!w&&Ty(r,s),lo(r),r.curOp.updateInput<2&&(r.curOp.updateInput=H),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function $y(r,s){var l=r.clipboardData&&r.clipboardData.getData("Text");if(l)return r.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&On(s,function(){return wd(s,l,0,null,"paste")}),!0}function Ty(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 w=0;w<v.electricChars.length;w++)if(s.indexOf(v.electricChars.charAt(w))>-1){b=nu(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=nu(r,f.head.line,"smart"));b&&qt(r,"electricInput",r,f.head.line)}}}function ky(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:V(f,0),head:V(f+1,0)};l.push(v),s.push(r.getRange(v.anchor,v.head))}return{text:s,ranges:l}}function Dd(r,s,l,u){r.setAttribute("autocorrect",l?"on":"off"),r.setAttribute("autocapitalize",u?"on":"off"),r.setAttribute("spellcheck",!!s)}function Ly(){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 D$(r){var s=r.optionHandlers,l=r.helpers={};r.prototype={constructor:r,focus:function(){tt(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)&&jt(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"](Xl(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:dn(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++,bn(this)}),removeOverlay:dn(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++,bn(this);return}}}),indentLine:dn(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)&&nu(this,u,f,v)}),indentSelection:dn(function(u){for(var f=this.doc.sel.ranges,v=-1,b=0;b<f.length;b++){var w=f[b];if(w.empty())w.head.line>v&&(nu(this,w.head.line,u,!0),v=w.head.line,b==this.doc.sel.primIndex&&lo(this));else{var E=w.from(),_=w.to(),N=Math.max(v,E.line);v=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var H=N;H<v;++H)nu(this,H,u);var Q=this.doc.sel.ranges;E.ch==0&&f.length==Q.length&&Q[b].from().ch>0&&hd(this.doc,b,new at(E,Q[b].to()),I)}}}),getTokenAt:function(u,f){return Hv(this,u,f)},getLineTokens:function(u,f){return Hv(this,V(u),f,!0)},getTokenTypeAt:function(u){u=Ue(this.doc,u);var f=Mv(this,Le(this.doc,u.line)),v=0,b=(f.length-1)/2,w=u.ch,E;if(w==0)E=f[2];else for(;;){var _=v+b>>1;if((_?f[_*2-1]:0)>=w)b=_;else if(f[_*2+1]<w)v=_+1;else{E=f[_*2+2];break}}var N=E?E.indexOf("overlay "):-1;return N<0?E:N==0?null:E.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],w=this.getModeAt(u);if(typeof w[f]=="string")b[w[f]]&&v.push(b[w[f]]);else if(w[f])for(var E=0;E<w[f].length;E++){var _=b[w[f][E]];_&&v.push(_)}else w.helperType&&b[w.helperType]?v.push(b[w.helperType]):b[w.name]&&v.push(b[w.name]);for(var N=0;N<b._global.length;N++){var H=b._global[N];H.pred(w,this)&&_e(v,H.val)==-1&&v.push(H.val)}return v},getStateAfter:function(u,f){var v=this.doc;return u=jn(v,u??v.first+v.size-1),Ta(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=Ue(this.doc,u):v=u?b.from():b.to(),cr(this,v,f||"page")},charCoords:function(u,f){return Pl(this,Ue(this.doc,u),f||"page")},coordsChar:function(u,f){return u=mm(this,u,f||"page"),Vh(this,u.left,u.top)},lineAtHeight:function(u,f){return u=mm(this,{top:u,left:0},f||"page").top,Tr(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,f,v){var b=!1,w;if(typeof u=="number"){var E=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>E&&(u=E,b=!0),w=Le(this.doc,u)}else w=u;return Ol(this,w,{top:0,left:0},f||"page",v||b).top+(b?this.doc.height-ti(w):0)},defaultTextHeight:function(){return oo(this.display)},defaultCharWidth:function(){return ao(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,f,v,b,w){var E=this.display;u=cr(this,Ue(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),E.sizer.appendChild(f),b=="over")_=u.top;else if(b=="above"||b=="near"){var H=Math.max(E.wrapper.clientHeight,this.doc.height),Q=Math.max(E.sizer.clientWidth,E.lineSpace.clientWidth);(b=="above"||u.bottom+f.offsetHeight>H)&&u.top>f.offsetHeight?_=u.top-f.offsetHeight:u.bottom+f.offsetHeight<=H&&(_=u.bottom),N+f.offsetWidth>Q&&(N=Q-f.offsetWidth)}f.style.top=_+"px",f.style.left=f.style.right="",w=="right"?(N=E.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(w=="left"?N=0:w=="middle"&&(N=(E.sizer.clientWidth-f.offsetWidth)/2),f.style.left=N+"px"),v&&yF(this,{left:N,top:_,right:N+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:dn(wy),triggerOnKeyPress:dn(Ay),triggerOnKeyUp:Dy,triggerOnMouseDown:dn(Ey),execCommand:function(u){if(Za.hasOwnProperty(u))return Za[u].call(null,this)},triggerElectric:dn(function(u){Ty(this,u)}),findPosH:function(u,f,v,b){var w=1;f<0&&(w=-1,f=-f);for(var E=Ue(this.doc,u),_=0;_<f&&(E=Ad(this.doc,E,w,v,b),!E.hitSide);++_);return E},moveH:dn(function(u,f){var v=this;this.extendSelectionsBy(function(b){return v.display.shift||v.doc.extend||b.empty()?Ad(v.doc,b.head,u,f,v.options.rtlMoveVisually):u<0?b.from():b.to()},ne)}),deleteH:dn(function(u,f){var v=this.doc.sel,b=this.doc;v.somethingSelected()?b.replaceSelection("",null,"+delete"):yo(this,function(w){var E=Ad(b,w.head,u,f,!1);return u<0?{from:E,to:w.head}:{from:w.head,to:E}})}),findPosV:function(u,f,v,b){var w=1,E=b;f<0&&(w=-1,f=-f);for(var _=Ue(this.doc,u),N=0;N<f;++N){var H=cr(this,_,"div");if(E==null?E=H.left:H.left=E,_=By(this,H,w,v),_.hitSide)break}return _},moveV:dn(function(u,f){var v=this,b=this.doc,w=[],E=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(N){if(E)return u<0?N.from():N.to();var H=cr(v,N.head,"div");N.goalColumn!=null&&(H.left=N.goalColumn),w.push(H.left);var Q=By(v,H,u,f);return f=="page"&&N==b.sel.primary()&&td(v,Pl(v,Q,"div").top-H.top),Q},ne),w.length)for(var _=0;_<b.sel.ranges.length;_++)b.sel.ranges[_].goalColumn=w[_]}),findWordAt:function(u){var f=this.doc,v=Le(f,u.line).text,b=u.ch,w=u.ch;if(v){var E=this.getHelper(u,"wordChars");(u.sticky=="before"||w==v.length)&&b?--b:++w;for(var _=v.charAt(b),N=Re(_,E)?function(H){return Re(H,E)}:/\s/.test(_)?function(H){return/\s/.test(H)}:function(H){return!/\s/.test(H)&&!Re(H)};b>0&&N(v.charAt(b-1));)--b;for(;w<v.length&&N(v.charAt(w));)++w}return new at(V(u.line,b),V(u.line,w))},toggleOverwrite:function(u){u!=null&&u==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?me(this.display.cursorDiv,"CodeMirror-overwrite"):U(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ae(je(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dn(function(u,f){Ia(this,u,f)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-Lr(this)-this.display.barHeight,width:u.scrollWidth-Lr(this)-this.display.barWidth,clientHeight:Uh(this),clientWidth:ls(this)}},scrollIntoView:dn(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:V(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?bF(this,u):_m(this,u.from,u.to,u.margin)}),setSize:dn(function(u,f){var v=this,b=function(E){return typeof E=="number"||/^\d+$/.test(String(E))?E+"px":E};u!=null&&(this.display.wrapper.style.width=b(u)),f!=null&&(this.display.wrapper.style.height=b(f)),this.options.lineWrapping&&pm(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(E){if(E.widgets){for(var _=0;_<E.widgets.length;_++)if(E.widgets[_].noHScroll){Bi(v,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(u){return On(this,u)},startOperation:function(){return gs(this)},endOperation:function(){return vs(this)},refresh:dn(function(){var u=this.display.cachedTextHeight;bn(this),this.curOp.forceUpdate=!0,Pa(this),Ia(this,this.doc.scrollLeft,this.doc.scrollTop),id(this.display),(u==null||Math.abs(u-oo(this.display))>.5||this.options.lineWrapping)&&Qh(this),wt(this,"refresh",this)}),swapDoc:dn(function(u){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),zm(this,u),Pa(this),this.display.input.reset(),Ia(this,u.scrollLeft,u.scrollTop),this.curOp.forceScroll=!0,qt(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}},hn(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 Ad(r,s,l,u,f){var v=s,b=l,w=Le(r,s.line),E=f&&r.direction=="rtl"?-l:l;function _(){var Ce=s.line+E;return Ce<r.first||Ce>=r.first+r.size?!1:(s=new V(Ce,s.ch,s.sticky),w=Le(r,Ce))}function N(Ce){var De;if(u=="codepoint"){var Se=w.text.charCodeAt(s.ch+(l>0?0:-1));if(isNaN(Se))De=null;else{var Ie=l>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;De=new V(s.line,Math.max(0,Math.min(w.text.length,s.ch+l*(Ie?2:1))),-l)}}else f?De=n$(r.cm,w,s,l):De=pd(w,s,l);if(De==null)if(!Ce&&_())s=gd(f,r.cm,w,s.line,E);else return!1;else s=De;return!0}if(u=="char"||u=="codepoint")N();else if(u=="column")N(!0);else if(u=="word"||u=="group")for(var H=null,Q=u=="group",K=r.cm&&r.cm.getHelper(s,"wordChars"),te=!0;!(l<0&&!N(!te));te=!1){var ue=w.text.charAt(s.ch)||`
|
|
30
|
+
`,ge=Re(ue,K)?"w":Q&&ue==`
|
|
31
|
+
`?"n":!Q||/\s/.test(ue)?null:"p";if(Q&&!te&&!ge&&(ge="s"),H&&H!=ge){l<0&&(l=1,N(),s.sticky="after");break}if(ge&&(H=ge),l>0&&!N(!te))break}var we=Gl(r,s,v,b,!0);return ze(v,we)&&(we.hitSide=!0),we}function By(r,s,l,u){var f=r.doc,v=s.left,b;if(u=="page"){var w=Math.min(r.display.wrapper.clientHeight,tt(r).innerHeight||f(r).documentElement.clientHeight),E=Math.max(w-.5*oo(r.display),3);b=(l>0?s.bottom:s.top)+l*E}else u=="line"&&(b=l>0?s.bottom+3:s.top-3);for(var _;_=Vh(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,Dd(f,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function v(w){for(var E=w.target;E;E=E.parentNode){if(E==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(E.className))break}return!1}Ae(f,"paste",function(w){!v(w)||$t(u,w)||$y(w,u)||p<=11&&setTimeout(jt(u,function(){return s.updateFromDOM()}),20)}),Ae(f,"compositionstart",function(w){s.composing={data:w.data,done:!1}}),Ae(f,"compositionupdate",function(w){s.composing||(s.composing={data:w.data,done:!1})}),Ae(f,"compositionend",function(w){s.composing&&(w.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(w){if(!(!v(w)||$t(u,w))){if(u.somethingSelected())Jl({lineWise:!1,text:u.getSelections()}),w.type=="cut"&&u.replaceSelection("",null,"cut");else if(u.options.lineWiseCopyCut){var E=ky(u);Jl({lineWise:!0,text:E.text}),w.type=="cut"&&u.operation(function(){u.setSelections(E.ranges,0,I),u.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var _=hr.text.join(`
|
|
32
|
+
`);if(w.clipboardData.setData("Text",_),w.clipboardData.getData("Text")==_){w.preventDefault();return}}var N=Ly(),H=N.firstChild;Dd(H),u.display.lineSpace.insertBefore(N,u.display.lineSpace.firstChild),H.value=hr.text.join(`
|
|
33
|
+
`);var Q=ae(f.ownerDocument);Fe(H),setTimeout(function(){u.display.lineSpace.removeChild(N),Q.focus(),Q==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=Em(this.cm,!1);return r.focus=ae(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=ec(s,r.anchorNode,r.anchorOffset),b=ec(s,r.focusNode,r.focusOffset);if(!(v&&!v.bad&&b&&!b.bad&&ee(Ut(v,b),u)==0&&ee(rt(v,b),f)==0)){var w=s.display.view,E=u.line>=s.display.viewFrom&&Oy(s,u)||{node:w[0].measure.map[2],offset:0},_=f.line<s.display.viewTo&&Oy(s,f);if(!_){var N=w[w.length-1].measure,H=N.maps?N.maps[N.maps.length-1]:N.map;_={node:H[H.length-1],offset:H[H.length-2]-H[H.length-3]}}if(!E||!_){r.removeAllRanges();return}var Q=r.rangeCount&&r.getRangeAt(0),K;try{K=j(E.node,E.offset,_.offset,_.node)}catch{}K&&(!o&&s.state.focused?(r.collapse(E.node,E.offset),K.collapsed||(r.removeAllRanges(),r.addRange(K))):(r.removeAllRanges(),r.addRange(K)),Q&&r.anchorNode==null?r.addRange(Q):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()||ae(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):On(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&&A$(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=ec(s,r.anchorNode,r.anchorOffset),u=ec(s,r.focusNode,r.focusOffset);l&&u&&On(s,function(){an(s.doc,Pi(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=V(u.line-1,Le(r.doc,u.line-1).length)),f.ch==Le(r.doc,f.line).text.length&&f.line<r.lastLine()&&(f=V(f.line+1,0)),u.line<s.viewFrom||f.line>s.viewTo-1)return!1;var v,b,w;u.line==s.viewFrom||(v=hs(r,u.line))==0?(b=ot(s.view[0].line),w=s.view[0].node):(b=ot(s.view[v].line),w=s.view[v-1].node.nextSibling);var E=hs(r,f.line),_,N;if(E==s.view.length-1?(_=s.viewTo-1,N=s.lineDiv.lastChild):(_=ot(s.view[E+1].line)-1,N=s.view[E+1].node.previousSibling),!w)return!1;for(var H=r.doc.splitLines(E$(r,w,N,b,_)),Q=Jr(r.doc,V(b,0),V(_,Le(r.doc,_).text.length));H.length>1&&Q.length>1;)if(he(H)==he(Q))H.pop(),Q.pop(),_--;else if(H[0]==Q[0])H.shift(),Q.shift(),b++;else break;for(var K=0,te=0,ue=H[0],ge=Q[0],we=Math.min(ue.length,ge.length);K<we&&ue.charCodeAt(K)==ge.charCodeAt(K);)++K;for(var Ce=he(H),De=he(Q),Se=Math.min(Ce.length-(H.length==1?K:0),De.length-(Q.length==1?K:0));te<Se&&Ce.charCodeAt(Ce.length-te-1)==De.charCodeAt(De.length-te-1);)++te;if(H.length==1&&Q.length==1&&b==u.line)for(;K&&K>u.ch&&Ce.charCodeAt(Ce.length-te-1)==De.charCodeAt(De.length-te-1);)K--,te++;H[H.length-1]=Ce.slice(0,Ce.length-te).replace(/^\u200b+/,""),H[0]=H[0].slice(K).replace(/\u200b+$/,"");var Ie=V(b,K),Oe=V(_,Q.length?he(Q).length-te:0);if(H.length>1||H[0]||ee(Ie,Oe))return go(r.doc,H,Ie,Oe,"+input"),!0},dt.prototype.ensurePolled=function(){this.forceCompositionEnd()},dt.prototype.reset=function(){this.forceCompositionEnd()},dt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},dt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},dt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&On(this.cm,function(){return bn(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()||jt(this.cm,wd)(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 Oy(r,s){var l=Hh(r,s.line);if(!l||l.hidden)return null;var u=Le(r.doc,s.line),f=lm(l,u,s.line),v=Dt(u,r.doc.direction),b="left";if(v){var w=Jt(v,s.ch);b=w%2?"right":"left"}var E=hm(f.map,s.ch,b);return E.offset=E.collapse=="right"?E.end:E.start,E}function A$(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function wo(r,s){return s&&(r.bad=!0),r}function E$(r,s,l,u,f){var v="",b=!1,w=r.doc.lineSeparator(),E=!1;function _(K){return function(te){return te.id==K}}function N(){b&&(v+=w,E&&(v+=w),b=E=!1)}function H(K){K&&(N(),v+=K)}function Q(K){if(K.nodeType==1){var te=K.getAttribute("cm-text");if(te){H(te);return}var ue=K.getAttribute("cm-marker"),ge;if(ue){var we=r.findMarks(V(u,0),V(f+1,0),_(+ue));we.length&&(ge=we[0].find(0))&&H(Jr(r.doc,ge.from,ge.to).join(w));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++)Q(K.childNodes[De]);/^(pre|p)$/i.test(K.nodeName)&&(E=!0),Ce&&(b=!0)}else K.nodeType==3&&H(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Q(s),s!=l;)s=s.nextSibling,E=!1;return v}function ec(r,s,l){var u;if(s==r.display.lineDiv){if(u=r.display.lineDiv.childNodes[l],!u)return wo(r.clipPos(V(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 x$(v,s,l)}}function x$(r,s,l){var u=r.text.firstChild,f=!1;if(!s||!Z(u,s))return wo(V(ot(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 wo(V(ot(v),v.text.length),f)}var b=s.nodeType==3?s:null,w=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,l&&(l=b.nodeValue.length));w.parentNode!=u;)w=w.parentNode;var E=r.measure,_=E.maps;function N(ge,we,Ce){for(var De=-1;De<(_?_.length:0);De++)for(var Se=De<0?E.map:_[De],Ie=0;Ie<Se.length;Ie+=3){var Oe=Se[Ie+2];if(Oe==ge||Oe==we){var We=ot(De<0?r.line:r.rest[De]),mt=Se[Ie]+Ce;return(Ce<0||Oe!=ge)&&(mt=Se[Ie+(Ce?1:0)]),V(We,mt)}}}var H=N(b,w,l);if(H)return wo(H,f);for(var Q=w.nextSibling,K=b?b.nodeValue.length-l:0;Q;Q=Q.nextSibling){if(H=N(Q,Q.firstChild,0),H)return wo(V(H.line,H.ch-K),f);K+=Q.textContent.length}for(var te=w.previousSibling,ue=l;te;te=te.previousSibling){if(H=N(te,te.firstChild,-1),H)return wo(V(H.line,H.ch+ue),f);ue+=te.textContent.length}}var Bt=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Bt.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){$t(u,b)||$y(b,u)||(u.state.pasteIncoming=+new Date,l.fastPoll())});function v(b){if(!$t(u,b)){if(u.somethingSelected())Jl({lineWise:!1,text:u.getSelections()});else if(u.options.lineWiseCopyCut){var w=ky(u);Jl({lineWise:!0,text:w.text}),b.type=="cut"?u.setSelections(w.ranges,null,I):(l.prevInput="",f.value=w.text.join(`
|
|
34
|
+
`),Fe(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(!(ni(r,b)||$t(u,b))){if(!f.dispatchEvent){u.state.pasteIncoming=+new Date,l.focus();return}var w=new Event("paste");w.clipboardData=b.clipboardData,f.dispatchEvent(w)}}),Ae(r.lineSpace,"selectstart",function(b){ni(r,b)||on(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)})},Bt.prototype.createField=function(r){this.wrapper=Ly(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;Dd(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},Bt.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},Bt.prototype.prepareSelection=function(){var r=this.cm,s=r.display,l=r.doc,u=Em(r);if(r.options.moveInputWithCursor){var f=cr(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},Bt.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")},Bt.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&&Fe(this.textarea),d&&p>=9&&(this.hasSelection=l)}else r||(this.prevInput=this.textarea.value="",d&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Bt.prototype.getField=function(){return this.textarea},Bt.prototype.supportsTouch=function(){return!1},Bt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!B||ae(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Bt.prototype.blur=function(){this.textarea.blur()},Bt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bt.prototype.receivedFocus=function(){this.slowPoll()},Bt.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},Bt.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)},Bt.prototype.poll=function(){var r=this,s=this.cm,l=this.textarea,u=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Fi(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,w=Math.min(u.length,f.length);b<w&&u.charCodeAt(b)==f.charCodeAt(b);)++b;return On(s,function(){wd(s,f.slice(b),u.length-b,null,r.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
35
|
+
`)>-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},Bt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bt.prototype.onKeyPress=function(){d&&p>=9&&(this.hasSelection=null),this.fastPoll()},Bt.prototype.onContextMenu=function(r){var s=this,l=s.cm,u=l.display,f=s.textarea;s.contextMenuPending&&s.contextMenuPending();var v=fs(l,r),b=u.scroller.scrollTop;if(!v||$)return;var w=l.options.resetSelectionOnContextMenu;w&&l.doc.sel.contains(v)==-1&&jt(l,an)(l.doc,Pi(v),I);var E=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;
|
|
36
|
+
top: `+(r.clientY-N.top-5)+"px; left: "+(r.clientX-N.left-5)+`px;
|
|
37
|
+
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
38
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var H;g&&(H=f.ownerDocument.defaultView.scrollY),u.input.focus(),g&&f.ownerDocument.defaultView.scrollTo(null,H),u.input.reset(),l.somethingSelected()||(f.value=s.prevInput=" "),s.contextMenuPending=K,u.selForContextMenu=l.doc.sel,clearTimeout(u.detectingSelectAll);function Q(){if(f.selectionStart!=null){var ue=l.somethingSelected(),ge=""+(ue?f.value:"");f.value="⇚",f.value=ge,s.prevInput=ue?"":"",f.selectionStart=1,f.selectionEnd=ge.length,u.selForContextMenu=l.doc.sel}}function K(){if(s.contextMenuPending==K&&(s.contextMenuPending=!1,s.wrapper.style.cssText=_,f.style.cssText=E,d&&p<9&&u.scrollbars.setScrollTop(u.scroller.scrollTop=b),f.selectionStart!=null)){(!d||d&&p<9)&&Q();var ue=0,ge=function(){u.selForContextMenu==l.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&s.prevInput==""?jt(l,Jm)(l):ue++<10?u.detectingSelectAll=setTimeout(ge,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(ge,200)}}if(d&&p>=9&&Q(),ce){Xr(r);var te=function(){sn(window,"mouseup",te),setTimeout(K,20)};Ae(window,"mouseup",te)}else setTimeout(K,50)},Bt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},Bt.prototype.setUneditable=function(){},Bt.prototype.needsContentAttribute=!1;function C$(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=ae(r.ownerDocument);s.autofocus=l==r||r.getAttribute("autofocus")!=null&&l==document.body}function u(){r.value=w.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(E){E.save=u,E.getTextArea=function(){return r},E.toTextArea=function(){E.toTextArea=isNaN,u(),r.parentNode.removeChild(E.getWrapperElement()),r.style.display="",r.form&&(sn(r.form,"submit",u),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=f))}},r.style.display="none";var w=Et(function(E){return r.parentNode.insertBefore(E,r.nextSibling)},s);return w}function _$(r){r.off=sn,r.on=Ae,r.wheelEventPixels=BF,r.Doc=wn,r.splitLines=Fa,r.countColumn=J,r.findColumn=oe,r.isWordChar=Pe,r.Pass=Te,r.signal=wt,r.Line=ro,r.changeEnd=Ni,r.scrollbarModel=$m,r.Pos=V,r.cmpPos=ee,r.modes=ur,r.mimeModes=$i,r.resolveMode=Bn,r.getMode=Yr,r.modeExtensions=Ti,r.extendMode=Cl,r.copyState=Zr,r.startState=$a,r.innerMode=ki,r.commands=Za,r.keyMap=ii,r.keyName=gy,r.isModifierKey=dy,r.lookupKey=mo,r.normalizeKeyMap=t$,r.StringStream=Tt,r.SharedTextMarker=Qa,r.TextMarker=Ri,r.LineWidget=Ka,r.e_preventDefault=on,r.e_stopPropagation=us,r.e_stop=Xr,r.addClass=me,r.contains=Z,r.rmClass=U,r.keyNames=Mi}m$(Et),D$(Et);var S$="iter insert remove copy getEditor constructor".split(" ");for(var tc in wn.prototype)wn.prototype.hasOwnProperty(tc)&&_e(S$,tc)<0&&(Et.prototype[tc]=function(r){return function(){return r.apply(this.doc,arguments)}}(wn.prototype[tc]));return hn(wn),Et.inputStyles={textarea:Bt,contenteditable:dt},Et.defineMode=function(r){!Et.defaults.mode&&r!="null"&&(Et.defaults.mode=r),xl.apply(this,arguments)},Et.defineMIME=to,Et.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Et.defineMIME("text/plain","null"),Et.defineExtension=function(r,s){Et.prototype[r]=s},Et.defineDocExtension=function(r,s){wn.prototype[r]=s},Et.fromTextArea=C$,_$(Et),Et.version="5.65.11",Et})}(rp)),rp.exports}var $ke=Ea(),Tke={exports:{}};(function(e,t){(function(n){n(Ea())})(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(Ut){return{type:Ut,style:"keyword"}}var q=T("keyword a"),V=T("keyword b"),ee=T("keyword c"),ze=T("keyword d"),Ke=T("operator"),rt={type:"atom",style:"atom"};return{if:T("if"),while:q,with:q,else:V,do:V,try:V,finally:V,return:ze,break:ze,continue:ze,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:Ke,typeof:Ke,instanceof:Ke,true:rt,false:rt,null:rt,undefined:rt,NaN:rt,Infinity:rt,this:T("this"),class:T("class"),super:T("atom"),yield:ee,export:T("export"),import:T("import"),extends:ee,await:ee}}(),A=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(T){for(var q=!1,V,ee=!1;(V=T.next())!=null;){if(!q){if(V=="/"&&!ee)return;V=="["?ee=!0:ee&&V=="]"&&(ee=!1)}q=!q&&V=="\\"}}var C,x;function S(T,q,V){return C=T,x=V,q}function O(T,q){var V=T.next();if(V=='"'||V=="'")return q.tokenize=B(V),q.tokenize(T,q);if(V=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(V=="."&&T.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(V))return S(V);if(V=="="&&T.eat(">"))return S("=>","operator");if(V=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(V))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(V=="/")return T.eat("*")?(q.tokenize=k,k(T,q)):T.eat("/")?(T.skipToEnd(),S("comment","comment")):Tr(T,q,1)?(L(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(T.eat("="),S("operator","operator",T.current()));if(V=="`")return q.tokenize=M,M(T,q);if(V=="#"&&T.peek()=="!")return T.skipToEnd(),S("meta","meta");if(V=="#"&&T.eatWhile(y))return S("variable","property");if(V=="<"&&T.match("!--")||V=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),S("comment","comment");if(A.test(V))return(V!=">"||!q.lexical||q.lexical.type!=">")&&(T.eat("=")?(V=="!"||V=="=")&&T.eat("="):/[<>*+\-|&?]/.test(V)&&(T.eat(V),V==">"&&T.eat(V))),V=="?"&&T.eat(".")?S("."):S("operator","operator",T.current());if(y.test(V)){T.eatWhile(y);var ee=T.current();if(q.lastType!="."){if(m.propertyIsEnumerable(ee)){var ze=m[ee];return S(ze.type,ze.style,ee)}if(ee=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",ee)}return S("variable","variable",ee)}}function B(T){return function(q,V){var ee=!1,ze;if(h&&q.peek()=="@"&&q.match($))return V.tokenize=O,S("jsonld-keyword","meta");for(;(ze=q.next())!=null&&!(ze==T&&!ee);)ee=!ee&&ze=="\\";return ee||(V.tokenize=O),S("string","string")}}function k(T,q){for(var V=!1,ee;ee=T.next();){if(ee=="/"&&V){q.tokenize=O;break}V=ee=="*"}return S("comment","comment")}function M(T,q){for(var V=!1,ee;(ee=T.next())!=null;){if(!V&&(ee=="`"||ee=="$"&&T.eat("{"))){q.tokenize=O;break}V=!V&&ee=="\\"}return S("quasi","string-2",T.current())}var R="([{}])";function W(T,q){q.fatArrowAt&&(q.fatArrowAt=null);var V=T.string.indexOf("=>",T.start);if(!(V<0)){if(g){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,V));ee&&(V=ee.index)}for(var ze=0,Ke=!1,rt=V-1;rt>=0;--rt){var Ut=T.string.charAt(rt),jn=R.indexOf(Ut);if(jn>=0&&jn<3){if(!ze){++rt;break}if(--ze==0){Ut=="("&&(Ke=!0);break}}else if(jn>=3&&jn<6)++ze;else if(y.test(Ut))Ke=!0;else if(/["'\/`]/.test(Ut))for(;;--rt){if(rt==0)return;var Ue=T.string.charAt(rt-1);if(Ue==Ut&&T.string.charAt(rt-2)!="\\"){rt--;break}}else if(Ke&&!ze){++rt;break}}Ke&&!ze&&(q.fatArrowAt=rt)}}var ie={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ce(T,q,V,ee,ze,Ke){this.indented=T,this.column=q,this.type=V,this.prev=ze,this.info=Ke,ee!=null&&(this.align=ee)}function Y(T,q){if(!p)return!1;for(var V=T.localVars;V;V=V.next)if(V.name==q)return!0;for(var ee=T.context;ee;ee=ee.prev)for(var V=ee.vars;V;V=V.next)if(V.name==q)return!0}function U(T,q,V,ee,ze){var Ke=T.cc;for(P.state=T,P.stream=ze,P.marked=null,P.cc=Ke,P.style=q,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var rt=Ke.length?Ke.pop():d?Te:_e;if(rt(V,ee)){for(;Ke.length&&Ke[Ke.length-1].lex;)Ke.pop()();return P.marked?P.marked:V=="variable"&&Y(T,ee)?"variable-2":q}}}var P={state:null,column:null,marked:null,cc:null};function F(){for(var T=arguments.length-1;T>=0;T--)P.cc.push(arguments[T])}function D(){return F.apply(null,arguments),!0}function z(T,q){for(var V=q;V;V=V.next)if(V.name==T)return!0;return!1}function j(T){var q=P.state;if(P.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var V=Z(T,q.context);if(V!=null){q.context=V;return}}else if(!z(T,q.localVars)){q.localVars=new $e(T,q.localVars);return}}o.globalVars&&!z(T,q.globalVars)&&(q.globalVars=new $e(T,q.globalVars))}}function Z(T,q){if(q)if(q.block){var V=Z(T,q.prev);return V?V==q.prev?q:new me(V,q.vars,!0):null}else return z(T,q.vars)?q:new me(q.prev,new $e(T,q.vars),!1);else return null}function ae(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function me(T,q,V){this.prev=T,this.vars=q,this.block=V}function $e(T,q){this.name=T,this.next=q}var Fe=new $e("this",new $e("arguments",null));function je(){P.state.context=new me(P.state.context,P.state.localVars,!1),P.state.localVars=Fe}function tt(){P.state.context=new me(P.state.context,P.state.localVars,!0),P.state.localVars=null}je.lex=tt.lex=!0;function re(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}re.lex=!0;function se(T,q){var V=function(){var ee=P.state,ze=ee.indented;if(ee.lexical.type=="stat")ze=ee.lexical.indented;else for(var Ke=ee.lexical;Ke&&Ke.type==")"&&Ke.align;Ke=Ke.prev)ze=Ke.indented;ee.lexical=new ce(ze,P.stream.column(),T,null,ee.lexical,q)};return V.lex=!0,V}function J(){var T=P.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}J.lex=!0;function fe(T){function q(V){return V==T?D():T==";"||V=="}"||V==")"||V=="]"?F():D(q)}return q}function _e(T,q){return T=="var"?D(se("vardef",q),Xr,fe(";"),J):T=="keyword a"?D(se("form"),G,_e,J):T=="keyword b"?D(se("form"),_e,J):T=="keyword d"?P.stream.match(/^\s*$/,!1)?D():D(se("stat"),oe,fe(";"),J):T=="debugger"?D(fe(";")):T=="{"?D(se("}"),tt,qn,J,re):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,_e,J,eo)):T=="function"?D(Fr):T=="for"?D(se("form"),tt,Al,_e,re,J):T=="class"||g&&q=="interface"?(P.marked="keyword",D(se("form",T=="class"?T:q),xl,J)):T=="variable"?g&&q=="declare"?(P.marked="keyword",D(_e)):g&&(q=="module"||q=="enum"||q=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",q=="enum"?D(no):q=="type"?D(El,fe("operator"),Ae,fe(";")):D(se("form"),yn,fe("{"),se("}"),qn,J,J)):g&&q=="namespace"?(P.marked="keyword",D(se("form"),Te,_e,J)):g&&q=="abstract"?(P.marked="keyword",D(_e)):D(se("stat"),Re):T=="switch"?D(se("form"),G,fe("{"),se("}","switch"),tt,qn,J,J,re):T=="case"?D(Te,fe(":")):T=="default"?D(fe(":")):T=="catch"?D(se("form"),je,vt,_e,J,re):T=="export"?D(se("stat"),Ti,J):T=="import"?D(se("stat"),Zr,J):T=="async"?D(_e):q=="@"?D(Te,_e):F(se("stat"),Te,fe(";"),J)}function vt(T){if(T=="(")return D(ur,fe(")"))}function Te(T,q){return ne(T,q,!1)}function I(T,q){return ne(T,q,!0)}function G(T){return T!="("?F():D(se(")"),oe,fe(")"),J)}function ne(T,q,V){if(P.state.fatArrowAt==P.stream.start){var ee=V?pe:Ee;if(T=="(")return D(je,se(")"),Ye(ur,")"),J,fe("=>"),ee,re);if(T=="variable")return F(je,yn,fe("=>"),ee,re)}var ze=V?ye:le;return ie.hasOwnProperty(T)?D(ze):T=="function"?D(Fr,ze):T=="class"||g&&q=="interface"?(P.marked="keyword",D(se("form"),$i,J)):T=="keyword c"||T=="async"?D(V?I:Te):T=="("?D(se(")"),oe,fe(")"),J,ze):T=="operator"||T=="spread"?D(V?I:Te):T=="["?D(se("]"),Jr,J,ze):T=="{"?Ln(nt,"}",null,ze):T=="quasi"?F(he,ze):T=="new"?D(Ne(V)):D()}function oe(T){return T.match(/[;\}\)\],]/)?F():F(Te)}function le(T,q){return T==","?D(oe):ye(T,q,!1)}function ye(T,q,V){var ee=V==!1?le:ye,ze=V==!1?Te:I;if(T=="=>")return D(je,V?pe:Ee,re);if(T=="operator")return/\+\+|--/.test(q)||g&&q=="!"?D(ee):g&&q=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?D(se(">"),Ye(Ae,">"),J,ee):q=="?"?D(Te,fe(":"),ze):D(ze);if(T=="quasi")return F(he,ee);if(T!=";"){if(T=="(")return Ln(I,")","call",ee);if(T==".")return D(Ge,ee);if(T=="[")return D(se("]"),oe,fe("]"),J,ee);if(g&&q=="as")return P.marked="keyword",D(Ae,ee);if(T=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),D(ze)}}function he(T,q){return T!="quasi"?F():q.slice(q.length-2)!="${"?D(he):D(oe,be)}function be(T){if(T=="}")return P.marked="string-2",P.state.tokenize=M,D(he)}function Ee(T){return W(P.stream,P.state),F(T=="{"?_e:Te)}function pe(T){return W(P.stream,P.state),F(T=="{"?_e:I)}function Ne(T){return function(q){return q=="."?D(T?Pe:Be):q=="variable"&&g?D(on,T?ye:le):F(T?I:Te)}}function Be(T,q){if(q=="target")return P.marked="keyword",D(le)}function Pe(T,q){if(q=="target")return P.marked="keyword",D(ye)}function Re(T){return T==":"?D(J,_e):F(le,fe(";"),J)}function Ge(T){if(T=="variable")return P.marked="property",D()}function nt(T,q){if(T=="async")return P.marked="property",D(nt);if(T=="variable"||P.style=="keyword"){if(P.marked="property",q=="get"||q=="set")return D(Je);var V;return g&&P.state.fatArrowAt==P.stream.start&&(V=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+V[0].length),D(ct)}else{if(T=="number"||T=="string")return P.marked=h?"property":P.style+" property",D(ct);if(T=="jsonld-keyword")return D(ct);if(g&&ae(q))return P.marked="keyword",D(nt);if(T=="[")return D(Te,Jt,fe("]"),ct);if(T=="spread")return D(I,ct);if(q=="*")return P.marked="keyword",D(nt);if(T==":")return F(ct)}}function Je(T){return T!="variable"?F(ct):(P.marked="property",D(Fr))}function ct(T){if(T==":")return D(I);if(T=="(")return F(Fr)}function Ye(T,q,V){function ee(ze,Ke){if(V?V.indexOf(ze)>-1:ze==","){var rt=P.state.lexical;return rt.info=="call"&&(rt.pos=(rt.pos||0)+1),D(function(Ut,jn){return Ut==q||jn==q?F():F(T)},ee)}return ze==q||Ke==q?D():V&&V.indexOf(";")>-1?F(T):D(fe(q))}return function(ze,Ke){return ze==q||Ke==q?D():F(T,ee)}}function Ln(T,q,V){for(var ee=3;ee<arguments.length;ee++)P.cc.push(arguments[ee]);return D(se(q,V),Ye(T,q),J)}function qn(T){return T=="}"?D():F(_e,qn)}function Jt(T,q){if(g){if(T==":")return D(Ae);if(q=="?")return D(Jt)}}function Js(T,q){if(g&&(T==":"||q=="in"))return D(Ae)}function Dt(T){if(g&&T==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?D(Te,mn,Ae):D(Ae)}function mn(T,q){if(q=="is")return P.marked="keyword",D()}function Ae(T,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return P.marked="keyword",D(q=="typeof"?I:Ae);if(T=="variable"||q=="void")return P.marked="type",D(hn);if(q=="|"||q=="&")return D(Ae);if(T=="string"||T=="number"||T=="atom")return D(hn);if(T=="[")return D(se("]"),Ye(Ae,"]",","),J,hn);if(T=="{")return D(se("}"),sn,J,hn);if(T=="(")return D(Ye(fn,")"),Ca,hn);if(T=="<")return D(Ye(Ae,">"),Ae);if(T=="quasi")return F($t,hn)}function Ca(T){if(T=="=>")return D(Ae)}function sn(T){return T.match(/[\}\)\]]/)?D():T==","||T==";"?D(sn):F(wt,sn)}function wt(T,q){if(T=="variable"||P.style=="keyword")return P.marked="property",D(wt);if(q=="?"||T=="number"||T=="string")return D(wt);if(T==":")return D(Ae);if(T=="[")return D(fe("variable"),Js,fe("]"),wt);if(T=="(")return F($r,wt);if(!T.match(/[;\}\)\],]/))return D()}function $t(T,q){return T!="quasi"?F():q.slice(q.length-2)!="${"?D($t):D(Ae,Dl)}function Dl(T){if(T=="}")return P.marked="string-2",P.state.tokenize=M,D($t)}function fn(T,q){return T=="variable"&&P.stream.match(/^\s*[?:]/,!1)||q=="?"?D(fn):T==":"?D(Ae):T=="spread"?D(fn):F(Ae)}function hn(T,q){if(q=="<")return D(se(">"),Ye(Ae,">"),J,hn);if(q=="|"||T=="."||q=="&")return D(Ae);if(T=="[")return D(Ae,fe("]"),hn);if(q=="extends"||q=="implements")return P.marked="keyword",D(Ae);if(q=="?")return D(Ae,fe(":"),Ae)}function on(T,q){if(q=="<")return D(se(">"),Ye(Ae,">"),J,hn)}function us(){return F(Ae,_a)}function _a(T,q){if(q=="=")return D(Ae)}function Xr(T,q){return q=="enum"?(P.marked="keyword",D(no)):F(yn,Jt,Jn,kh)}function yn(T,q){if(g&&ae(q))return P.marked="keyword",D(yn);if(T=="variable")return j(q),D();if(T=="spread")return D(yn);if(T=="[")return Ln(Th,"]");if(T=="{")return Ln(Sa,"}")}function Sa(T,q){return T=="variable"&&!P.stream.match(/^\s*:/,!1)?(j(q),D(Jn)):(T=="variable"&&(P.marked="property"),T=="spread"?D(yn):T=="}"?F():T=="["?D(Te,fe("]"),fe(":"),Sa):D(fe(":"),yn,Jn))}function Th(){return F(yn,Jn)}function Jn(T,q){if(q=="=")return D(I)}function kh(T){if(T==",")return D(Xr)}function eo(T,q){if(T=="keyword b"&&q=="else")return D(se("form","else"),_e,J)}function Al(T,q){if(q=="await")return D(Al);if(T=="(")return D(se(")"),Fa,J)}function Fa(T){return T=="var"?D(Xr,Fi):T=="variable"?D(Fi):F(Fi)}function Fi(T,q){return T==")"?D():T==";"?D(Fi):q=="in"||q=="of"?(P.marked="keyword",D(Te,Fi)):F(Te,Fi)}function Fr(T,q){if(q=="*")return P.marked="keyword",D(Fr);if(T=="variable")return j(q),D(Fr);if(T=="(")return D(je,se(")"),Ye(ur,")"),J,Dt,_e,re);if(g&&q=="<")return D(se(">"),Ye(us,">"),J,Fr)}function $r(T,q){if(q=="*")return P.marked="keyword",D($r);if(T=="variable")return j(q),D($r);if(T=="(")return D(je,se(")"),Ye(ur,")"),J,Dt,re);if(g&&q=="<")return D(se(">"),Ye(us,">"),J,$r)}function El(T,q){if(T=="keyword"||T=="variable")return P.marked="type",D(El);if(q=="<")return D(se(">"),Ye(us,">"),J)}function ur(T,q){return q=="@"&&D(Te,ur),T=="spread"?D(ur):g&&ae(q)?(P.marked="keyword",D(ur)):g&&T=="this"?D(Jt,Jn):F(yn,Jt,Jn)}function $i(T,q){return T=="variable"?xl(T,q):to(T,q)}function xl(T,q){if(T=="variable")return j(q),D(to)}function to(T,q){if(q=="<")return D(se(">"),Ye(us,">"),J,to);if(q=="extends"||q=="implements"||g&&T==",")return q=="implements"&&(P.marked="keyword"),D(g?Ae:Te,to);if(T=="{")return D(se("}"),Bn,J)}function Bn(T,q){if(T=="async"||T=="variable"&&(q=="static"||q=="get"||q=="set"||g&&ae(q))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",D(Bn);if(T=="variable"||P.style=="keyword")return P.marked="property",D(Yr,Bn);if(T=="number"||T=="string")return D(Yr,Bn);if(T=="[")return D(Te,Jt,fe("]"),Yr,Bn);if(q=="*")return P.marked="keyword",D(Bn);if(g&&T=="(")return F($r,Bn);if(T==";"||T==",")return D(Bn);if(T=="}")return D();if(q=="@")return D(Te,Bn)}function Yr(T,q){if(q=="!"||q=="?")return D(Yr);if(T==":")return D(Ae,Jn);if(q=="=")return D(I);var V=P.state.lexical.prev,ee=V&&V.info=="interface";return F(ee?$r:Fr)}function Ti(T,q){return q=="*"?(P.marked="keyword",D(Le,fe(";"))):q=="default"?(P.marked="keyword",D(Te,fe(";"))):T=="{"?D(Ye(Cl,"}"),Le,fe(";")):F(_e)}function Cl(T,q){if(q=="as")return P.marked="keyword",D(fe("variable"));if(T=="variable")return F(I,Cl)}function Zr(T){return T=="string"?D():T=="("?F(Te):T=="."?F(le):F(ki,$a,Le)}function ki(T,q){return T=="{"?Ln(ki,"}"):(T=="variable"&&j(q),q=="*"&&(P.marked="keyword"),D(Tt))}function $a(T){if(T==",")return D(ki,$a)}function Tt(T,q){if(q=="as")return P.marked="keyword",D(ki)}function Le(T,q){if(q=="from")return P.marked="keyword",D(Te)}function Jr(T){return T=="]"?D():F(Ye(I,"]"))}function no(){return F(se("form"),yn,fe("{"),se("}"),Ye(er,"}"),J,J)}function er(){return F(yn,Jn)}function ot(T,q){return T.lastType=="operator"||T.lastType==","||A.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Tr(T,q,V){return q.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(V||0)))}return{startState:function(T){var q={tokenize:O,lastType:"sof",cc:[],lexical:new ce((T||0)-a,0,"block",!1),localVars:o.localVars,context:o.localVars&&new me(null,null,!1),indented:T||0};return o.globalVars&&typeof o.globalVars=="object"&&(q.globalVars=o.globalVars),q},token:function(T,q){if(T.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=T.indentation(),W(T,q)),q.tokenize!=k&&T.eatSpace())return null;var V=q.tokenize(T,q);return C=="comment"?V:(q.lastType=C=="operator"&&(x=="++"||x=="--")?"incdec":C,U(q,V,C,x,T))},indent:function(T,q){if(T.tokenize==k||T.tokenize==M)return n.Pass;if(T.tokenize!=O)return 0;var V=q&&q.charAt(0),ee=T.lexical,ze;if(!/^\s*else\b/.test(q))for(var Ke=T.cc.length-1;Ke>=0;--Ke){var rt=T.cc[Ke];if(rt==J)ee=ee.prev;else if(rt!=eo&&rt!=re)break}for(;(ee.type=="stat"||ee.type=="form")&&(V=="}"||(ze=T.cc[T.cc.length-1])&&(ze==le||ze==ye)&&!/^[,\.=+\-*:?[\(]/.test(q));)ee=ee.prev;c&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var Ut=ee.type,jn=V==Ut;return Ut=="vardef"?ee.indented+(T.lastType=="operator"||T.lastType==","?ee.info.length+1:0):Ut=="form"&&V=="{"?ee.indented:Ut=="form"?ee.indented+a:Ut=="stat"?ee.indented+(ot(T,q)?c||a:0):ee.info=="switch"&&!jn&&o.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(q)?a:2*a):ee.align?ee.column+(jn?0:1):ee.indented+(jn?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:Tr,skipExpression:function(T){U(T,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var kke={exports:{}};(function(e,t){(function(n){n(Ea())})(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 A(D,z){function j(me){return z.tokenize=me,me(D,z)}var Z=D.next();if(Z=="<")return D.eat("!")?D.eat("[")?D.match("CDATA[")?j(C("atom","]]>")):null:D.match("--")?j(C("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),j(x(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),z.tokenize=C("meta","?>"),"meta"):(y=D.eat("/")?"closeTag":"openTag",z.tokenize=$,"tag bracket");if(Z=="&"){var ae;return D.eat("#")?D.eat("x")?ae=D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):ae=D.eatWhile(/[\d]/)&&D.eat(";"):ae=D.eatWhile(/[\w\.\-:]/)&&D.eat(";"),ae?"atom":"error"}else return D.eatWhile(/[^&<]/),null}A.isInText=!0;function $(D,z){var j=D.next();if(j==">"||j=="/"&&D.eat(">"))return z.tokenize=A,y=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return y="equals",null;if(j=="<"){z.tokenize=A,z.state=M,z.tagName=z.tagStart=null;var Z=z.tokenize(D,z);return Z?Z+" tag error":"tag error"}else return/[\'\"]/.test(j)?(z.tokenize=L(j),z.stringStartCol=D.column(),z.tokenize(D,z)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(D){var z=function(j,Z){for(;!j.eol();)if(j.next()==D){Z.tokenize=$;break}return"string"};return z.isInAttribute=!0,z}function C(D,z){return function(j,Z){for(;!j.eol();){if(j.match(z)){Z.tokenize=A;break}j.next()}return D}}function x(D){return function(z,j){for(var Z;(Z=z.next())!=null;){if(Z=="<")return j.tokenize=x(D+1),j.tokenize(z,j);if(Z==">")if(D==1){j.tokenize=A;break}else return j.tokenize=x(D-1),j.tokenize(z,j)}return"meta"}}function S(D){return D&&D.toLowerCase()}function O(D,z,j){this.prev=D.context,this.tagName=z||"",this.indent=D.indented,this.startOfLine=j,(d.doNotIndent.hasOwnProperty(z)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function B(D){D.context&&(D.context=D.context.prev)}function k(D,z){for(var j;;){if(!D.context||(j=D.context.tagName,!d.contextGrabbers.hasOwnProperty(S(j))||!d.contextGrabbers[S(j)].hasOwnProperty(S(z))))return;B(D)}}function M(D,z,j){return D=="openTag"?(j.tagStart=z.column(),R):D=="closeTag"?W:M}function R(D,z,j){return D=="word"?(j.tagName=z.current(),m="tag",Y):d.allowMissingTagName&&D=="endTag"?(m="tag bracket",Y(D,z,j)):(m="error",R)}function W(D,z,j){if(D=="word"){var Z=z.current();return j.context&&j.context.tagName!=Z&&d.implicitlyClosed.hasOwnProperty(S(j.context.tagName))&&B(j),j.context&&j.context.tagName==Z||d.matchClosing===!1?(m="tag",ie):(m="tag error",ce)}else return d.allowMissingTagName&&D=="endTag"?(m="tag bracket",ie(D,z,j)):(m="error",ce)}function ie(D,z,j){return D!="endTag"?(m="error",ie):(B(j),M)}function ce(D,z,j){return m="error",ie(D,z,j)}function Y(D,z,j){if(D=="word")return m="attribute",U;if(D=="endTag"||D=="selfcloseTag"){var Z=j.tagName,ae=j.tagStart;return j.tagName=j.tagStart=null,D=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(S(Z))?k(j,Z):(k(j,Z),j.context=new O(j,Z,ae==j.indented)),M}return m="error",Y}function U(D,z,j){return D=="equals"?P:(d.allowMissing||(m="error"),Y(D,z,j))}function P(D,z,j){return D=="string"?F:D=="word"&&d.allowUnquoted?(m="string",Y):(m="error",Y(D,z,j))}function F(D,z,j){return D=="string"?F:Y(D,z,j)}return{startState:function(D){var z={tokenize:A,state:M,indented:D||0,tagName:null,tagStart:null,context:null};return D!=null&&(z.baseIndent=D),z},token:function(D,z){if(!z.tagName&&D.sol()&&(z.indented=D.indentation()),D.eatSpace())return null;y=null;var j=z.tokenize(D,z);return(j||y)&&j!="comment"&&(m=null,z.state=z.state(y||j,D,z),m&&(j=m=="error"?j+" error":m)),j},indent:function(D,z,j){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!=A)return j?j.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(z))return 0;var ae=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(ae&&ae[1])for(;Z;)if(Z.tagName==ae[2]){Z=Z.prev;break}else if(d.implicitlyClosed.hasOwnProperty(S(Z.tagName)))Z=Z.prev;else break;else if(ae)for(;Z;){var me=d.contextGrabbers[S(Z.tagName)];if(me&&me.hasOwnProperty(S(ae[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 z=[],j=D.context;j;j=j.prev)z.push(j.tagName);return z.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(e,t){(function(n){n(Ea(),kke.exports,Tke.exports)})(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(A){var $=A.tagName;A.tagName=null;var L=h.indent(A,"","");return A.tagName=$,L}function g(A,$){return $.context.mode==h?y(A,$,$.context):m(A,$,$.context)}function y(A,$,L){if(L.depth==2)return A.match(/^.*?\*\//)?L.depth=1:A.skipToEnd(),"comment";if(A.peek()=="{"){h.skipAttribute(L.state);var C=p(L.state),x=L.state.context;if(x&&A.match(/^[^>]*>\s*$/,!1)){for(;x.prev&&!x.startOfLine;)x=x.prev;x.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(A.peek()=="<")return h.skipAttribute(L.state),$.context=new i(n.startState(h,p(L.state)),h,0,$.context),null;if(A.match("//"))return A.skipToEnd(),"comment";if(A.match("/*"))return L.depth=2,g(A,$)}var S=h.token(A,L.state),O=A.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&&A.backUp(O.length-B),S}function m(A,$,L){if(A.peek()=="<"&&d.expressionAllowed(A,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(A,L.state);if(!C&&L.depth!=null){var x=A.current();x=="{"?L.depth++:x=="}"&&--L.depth==0&&($.context=$.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(d),d)}},copyState:function(A){return{context:o(A.context)}},token:g,indent:function(A,$,L){return A.context.mode.indent(A.context.state,$,L)},innerMode:function(A){return A.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(Ea())})(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 A=p.getWrapperElement();A.className=A.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(Ea())})(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",A=y[m],$=p.pos;function L(){n.off(document,"mousemove",C),n.off(document,"mouseup",L)}function C(x){if(x.which!=1)return L();p.moveTo($+(x[m]-A)*(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(),A;p.orientation=="horizontal"?A=y.clientX<m.left?-1:y.clientX>m.right?1:0:A=y.clientY<m.top?-1:y.clientY>m.bottom?1:0,p.moveTo(p.pos+A*p.screen)});function g(y){var m=n.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],A=p.pos;p.moveTo(p.pos+m),p.pos!=A&&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 Lke(e,t,n={}){const i=$ke.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),Qt(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}),y0(i)}const Bke={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},M_=st({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(e,{expose:t,emit:n}){const i=e,o=kT(),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=Qe(),h=BO(i,"modelValue",n,{passive:!0}),d=qu();return t({cm:d}),Vu(async()=>{d.value=Lke(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(),ke("div",Bke,[ve("textarea",{ref_key:"el",ref:c},null,512)]))}}),Oke=st({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(e,{emit:t}){const n=e,i=Qe(""),o=qu(void 0),a=Qe(!1);Qt(()=>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 rn.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=Qe(),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=[],A=Qe(!1),$=()=>{m.forEach(([S,O,B])=>{S.removeEventListener("click",O),B()}),m.length=0};_O(h,()=>{var S;(S=d.value)==null||S.refresh()});function L(){a.value=o.value!==d.value.getValue()}Qt(a,S=>{t("draft",S)},{immediate:!0});function C(S){const O=((S==null?void 0:S.stacks)||[]).filter(ie=>{var ce;return ie.file&&ie.file===((ce=n.file)==null?void 0:ce.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 R=document.createElement("span");R.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",R.tabIndex=0,R.ariaLabel="Open in Editor",BE(R,{content:"Open in Editor",placement:"bottom"},!1);const W=async()=>{await I_(B.file,B.line,B.column)};k.appendChild(R),m.push([R,W,()=>R0(R)]),y.push(d.value.addLineClass(B.line-1,"wrap","bg-red-500/10")),g.push(d.value.addLineWidget(B.line-1,k))}Qt([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)}),A.value||S.clearHistory()},100)},{flush:"post"});async function x(S){A.value=!0,await rn.rpc.writeFile(n.file.filepath,S),o.value=S,a.value=!1}return(S,O)=>{const B=M_;return de(),et(B,es({ref_key:"editor",ref:h,modelValue:X(i),"onUpdate:modelValue":O[0]||(O[0]=k=>Pt(i)?i.value=k:null),"h-full":""},{lineNumbers:!0},{mode:X(c),"data-testid":"code-mirror",onSave:x}),null,16,["modelValue","mode"])}}}),Pke=st({__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(),ke("div",{class:yt(["fixed inset-0 z-40",e.modelValue?"":"pointer-events-none"])},[ve("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),ve("div",{class:yt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[X(n)]]),style:zn(e.modelValue?{}:{transform:X(i)})},[Er(o.$slots,"default")],6)],2))}}),Nke=["aria-label","opacity","disabled","hover"],xa=st({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(e){return(t,n)=>(de(),ke("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"},[Er(t.$slots,"default",{},()=>[ve("div",{class:yt(e.icon),ma:""},null,2)])],8,Nke))}}),Ike={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Rke={"p-4":"",relative:""},Mke=ve("p",null,"Module Info",-1),zke={op50:"","font-mono":"","text-sm":""},Uke={key:0,"p-5":""},Hke={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},qke=ve("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),jke=ve("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Vke={key:0},Wke={p:"x3 y-1","bg-overlay":"",border:"base b t"},Gke=st({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(e,{emit:t}){const n=e,i=ZB(()=>rn.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 eO("Escape",()=>{t("close")}),(d,p)=>{const g=xa,y=M_;return de(),ke("div",Ike,[ve("div",Rke,[Mke,ve("p",zke,Xe(e.id),1),Me(g,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:p[0]||(p[0]=m=>t("close"))})]),X(i)?(de(),ke(ft,{key:1},[ve("div",Hke,[qke,jke,Me(y,es({"h-full":"","model-value":X(a),"read-only":""},{lineNumbers:!0},{mode:X(o)}),null,16,["model-value","mode"]),Me(y,es({"h-full":"","model-value":X(c),"read-only":""},{lineNumbers:!0},{mode:X(o)}),null,16,["model-value","mode"])]),X(h).mappings!==""?(de(),ke("div",Vke,[ve("div",Wke," Source map (v"+Xe(X(h).version)+") ",1),Me(y,es({"model-value":X(h).mappings,"read-only":""},{lineNumbers:!0},{mode:X(o)}),null,16,["model-value","mode"])])):ut("",!0)],64)):(de(),ke("div",Uke," No transform result found for this module. "))])}}});var Xp="http://www.w3.org/1999/xhtml";const $D={svg:"http://www.w3.org/2000/svg",xhtml:Xp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Sh(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),$D.hasOwnProperty(t)?{space:$D[t],local:e}:e}function Kke(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Xp&&t.documentElement.namespaceURI===Xp?t.createElement(e):t.createElementNS(n,e)}}function Qke(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function z_(e){var t=Sh(e);return(t.local?Qke:Kke)(t)}function Xke(){}function Av(e){return e==null?Xke:function(){return this.querySelector(e)}}function Yke(e){typeof e!="function"&&(e=Av(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 Yn(i,this._parents)}function Zke(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Jke(){return[]}function U_(e){return e==null?Jke:function(){return this.querySelectorAll(e)}}function eLe(e){return function(){return Zke(e.apply(this,arguments))}}function tLe(e){typeof e=="function"?e=eLe(e):e=U_(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 Yn(i,o)}function H_(e){return function(){return this.matches(e)}}function q_(e){return function(t){return t.matches(e)}}var nLe=Array.prototype.find;function rLe(e){return function(){return nLe.call(this.children,e)}}function iLe(){return this.firstElementChild}function sLe(e){return this.select(e==null?iLe:rLe(typeof e=="function"?e:q_(e)))}var oLe=Array.prototype.filter;function aLe(){return Array.from(this.children)}function uLe(e){return function(){return oLe.call(this.children,e)}}function lLe(e){return this.selectAll(e==null?aLe:uLe(typeof e=="function"?e:q_(e)))}function cLe(e){typeof e!="function"&&(e=H_(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 Yn(i,this._parents)}function j_(e){return new Array(e.length)}function fLe(){return new Yn(this._enter||this._groups.map(j_),this._parents)}function wf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}wf.prototype={constructor:wf,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 hLe(e){return function(){return e}}function dLe(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 wf(e,a[c]);for(;c<d;++c)(h=t[c])&&(o[c]=h)}function pLe(e,t,n,i,o,a,c){var h,d,p=new Map,g=t.length,y=a.length,m=new Array(g),A;for(h=0;h<g;++h)(d=t[h])&&(m[h]=A=c.call(d,d.__data__,h,t)+"",p.has(A)?o[h]=d:p.set(A,d));for(h=0;h<y;++h)A=c.call(e,a[h],h,a)+"",(d=p.get(A))?(i[h]=d,d.__data__=a[h],p.delete(A)):n[h]=new wf(e,a[h]);for(h=0;h<g;++h)(d=t[h])&&p.get(m[h])===d&&(o[h]=d)}function gLe(e){return e.__data__}function vLe(e,t){if(!arguments.length)return Array.from(this,gLe);var n=t?pLe:dLe,i=this._parents,o=this._groups;typeof e!="function"&&(e=hLe(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,A=mLe(e.call(g,g&&g.__data__,p,i)),$=A.length,L=h[p]=new Array($),C=c[p]=new Array($),x=d[p]=new Array(m);n(g,y,L,C,x,A,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 Yn(c,i),c._enter=h,c._exit=d,c}function mLe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function yLe(){return new Yn(this._exit||this._groups.map(j_),this._parents)}function bLe(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 wLe(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),A,$=0;$<y;++$)(A=p[$]||g[$])&&(m[$]=A);for(;d<o;++d)h[d]=n[d];return new Yn(h,this._parents)}function DLe(){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 ALe(e){e||(e=ELe);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 Yn(o,this._parents).order()}function ELe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xLe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function CLe(){return Array.from(this)}function _Le(){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 SLe(){let e=0;for(const t of this)++e;return e}function FLe(){return!this.node()}function $Le(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 TLe(e){return function(){this.removeAttribute(e)}}function kLe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function LLe(e,t){return function(){this.setAttribute(e,t)}}function BLe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function OLe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function PLe(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 NLe(e,t){var n=Sh(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?kLe:TLe:typeof t=="function"?n.local?PLe:OLe:n.local?BLe:LLe)(n,t))}function V_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ILe(e){return function(){this.style.removeProperty(e)}}function RLe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function MLe(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function zLe(e,t,n){return arguments.length>1?this.each((t==null?ILe:typeof t=="function"?MLe:RLe)(e,t,n??"")):ca(this.node(),e)}function ca(e,t){return e.style.getPropertyValue(t)||V_(e).getComputedStyle(e,null).getPropertyValue(t)}function ULe(e){return function(){delete this[e]}}function HLe(e,t){return function(){this[e]=t}}function qLe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function jLe(e,t){return arguments.length>1?this.each((t==null?ULe:typeof t=="function"?qLe:HLe)(e,t)):this.node()[e]}function W_(e){return e.trim().split(/^|\s+/)}function Ev(e){return e.classList||new G_(e)}function G_(e){this._node=e,this._names=W_(e.getAttribute("class")||"")}G_.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 K_(e,t){for(var n=Ev(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function Q_(e,t){for(var n=Ev(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function VLe(e){return function(){K_(this,e)}}function WLe(e){return function(){Q_(this,e)}}function GLe(e,t){return function(){(t.apply(this,arguments)?K_:Q_)(this,e)}}function KLe(e,t){var n=W_(e+"");if(arguments.length<2){for(var i=Ev(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?GLe:t?VLe:WLe)(n,t))}function QLe(){this.textContent=""}function XLe(e){return function(){this.textContent=e}}function YLe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ZLe(e){return arguments.length?this.each(e==null?QLe:(typeof e=="function"?YLe:XLe)(e)):this.node().textContent}function JLe(){this.innerHTML=""}function eBe(e){return function(){this.innerHTML=e}}function tBe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function nBe(e){return arguments.length?this.each(e==null?JLe:(typeof e=="function"?tBe:eBe)(e)):this.node().innerHTML}function rBe(){this.nextSibling&&this.parentNode.appendChild(this)}function iBe(){return this.each(rBe)}function sBe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function oBe(){return this.each(sBe)}function aBe(e){var t=typeof e=="function"?e:z_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function uBe(){return null}function lBe(e,t){var n=typeof e=="function"?e:z_(e),i=t==null?uBe:typeof t=="function"?t:Av(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function cBe(){var e=this.parentNode;e&&e.removeChild(this)}function fBe(){return this.each(cBe)}function hBe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function dBe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function pBe(e){return this.select(e?dBe:hBe)}function gBe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function vBe(e){return function(t){e.call(this,t,this.__data__)}}function mBe(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 yBe(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 bBe(e,t,n){return function(){var i=this.__on,o,a=vBe(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 wBe(e,t,n){var i=mBe(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?bBe:yBe,o=0;o<a;++o)this.each(h(i[o],t,n));return this}function X_(e,t,n){var i=V_(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 DBe(e,t){return function(){return X_(this,e,t)}}function ABe(e,t){return function(){return X_(this,e,t.apply(this,arguments))}}function EBe(e,t){return this.each((typeof t=="function"?ABe:DBe)(e,t))}function*xBe(){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 Y_=[null];function Yn(e,t){this._groups=e,this._parents=t}function ml(){return new Yn([[document.documentElement]],Y_)}function CBe(){return this}Yn.prototype=ml.prototype={constructor:Yn,select:Yke,selectAll:tLe,selectChild:sLe,selectChildren:lLe,filter:cLe,data:vLe,enter:fLe,exit:yLe,join:bLe,merge:wLe,selection:CBe,order:DLe,sort:ALe,call:xLe,nodes:CLe,node:_Le,size:SLe,empty:FLe,each:$Le,attr:NLe,style:zLe,property:jLe,classed:KLe,text:ZLe,html:nBe,raise:iBe,lower:oBe,append:aBe,insert:lBe,remove:fBe,clone:pBe,datum:gBe,on:wBe,dispatch:EBe,[Symbol.iterator]:xBe};function Rn(e){return typeof e=="string"?new Yn([[document.querySelector(e)]],[document.documentElement]):new Yn([[e]],Y_)}function _Be(e){let t;for(;t=e.sourceEvent;)e=t;return e}function hi(e,t){if(e=_Be(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 _n{constructor(t,n){this.x=t,this.y=n}static of([t,n]){return new _n(t,n)}add(t){return new _n(this.x+t.x,this.y+t.y)}subtract(t){return new _n(this.x-t.x,this.y-t.y)}multiply(t){return new _n(this.x*t,this.y*t)}divide(t){return new _n(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 _n(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 _n(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new _n(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var SBe={value:()=>{}};function yl(){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 Gc(n)}function Gc(e){this._=e}function FBe(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}})}Gc.prototype=yl.prototype={constructor:Gc,on:function(e,t){var n=this._,i=FBe(e+"",n),o,a=-1,c=i.length;if(arguments.length<2){for(;++a<c;)if((o=(e=i[a]).type)&&(o=$Be(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]=TD(n[o],e.name,t);else if(t==null)for(o in n)n[o]=TD(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 Gc(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 $Be(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function TD(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=SBe,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const TBe={passive:!1},Ru={capture:!0,passive:!1};function ip(e){e.stopImmediatePropagation()}function Ko(e){e.preventDefault(),e.stopImmediatePropagation()}function Z_(e){var t=e.document.documentElement,n=Rn(e).on("dragstart.drag",Ko,Ru);"onselectstart"in t?n.on("selectstart.drag",Ko,Ru):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function J_(e,t){var n=e.document.documentElement,i=Rn(e).on("dragstart.drag",null);t&&(i.on("click.drag",Ko,Ru),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 Sc=e=>()=>e;function Yp(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}})}Yp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function kBe(e){return!e.ctrlKey&&!e.button}function LBe(){return this.parentNode}function BBe(e,t){return t??{x:e.x,y:e.y}}function OBe(){return navigator.maxTouchPoints||"ontouchstart"in this}function PBe(){var e=kBe,t=LBe,n=BBe,i=OBe,o={},a=yl("start","drag","end"),c=0,h,d,p,g,y=0;function m(B){B.on("mousedown.drag",A).filter(i).on("touchstart.drag",C).on("touchmove.drag",x,TBe).on("touchend.drag touchcancel.drag",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function A(B,k){if(!(g||!e.call(this,B,k))){var M=O(this,t.call(this,B,k),B,k,"mouse");!M||(Rn(B.view).on("mousemove.drag",$,Ru).on("mouseup.drag",L,Ru),Z_(B.view),ip(B),p=!1,h=B.clientX,d=B.clientY,M("start",B))}}function $(B){if(Ko(B),!p){var k=B.clientX-h,M=B.clientY-d;p=k*k+M*M>y}o.mouse("drag",B)}function L(B){Rn(B.view).on("mousemove.drag mouseup.drag",null),J_(B.view,p),Ko(B),o.mouse("end",B)}function C(B,k){if(!!e.call(this,B,k)){var M=B.changedTouches,R=t.call(this,B,k),W=M.length,ie,ce;for(ie=0;ie<W;++ie)(ce=O(this,R,B,k,M[ie].identifier,M[ie]))&&(ip(B),ce("start",B,M[ie]))}}function x(B){var k=B.changedTouches,M=k.length,R,W;for(R=0;R<M;++R)(W=o[k[R].identifier])&&(Ko(B),W("drag",B,k[R]))}function S(B){var k=B.changedTouches,M=k.length,R,W;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),R=0;R<M;++R)(W=o[k[R].identifier])&&(ip(B),W("end",B,k[R]))}function O(B,k,M,R,W,ie){var ce=a.copy(),Y=hi(ie||M,k),U,P,F;if((F=n.call(B,new Yp("beforestart",{sourceEvent:M,target:m,identifier:W,active:c,x:Y[0],y:Y[1],dx:0,dy:0,dispatch:ce}),R))!=null)return U=F.x-Y[0]||0,P=F.y-Y[1]||0,function D(z,j,Z){var ae=Y,me;switch(z){case"start":o[W]=D,me=c++;break;case"end":delete o[W],--c;case"drag":Y=hi(Z||j,k),me=c;break}ce.call(z,B,new Yp(z,{sourceEvent:j,subject:F,target:m,identifier:W,active:me,x:Y[0]+U,y:Y[1]+P,dx:Y[0]-ae[0],dy:Y[1]-ae[1],dispatch:ce}),R)}}return m.filter=function(B){return arguments.length?(e=typeof B=="function"?B:Sc(!!B),m):e},m.container=function(B){return arguments.length?(t=typeof B=="function"?B:Sc(B),m):t},m.subject=function(B){return arguments.length?(n=typeof B=="function"?B:Sc(B),m):n},m.touchable=function(B){return arguments.length?(i=typeof B=="function"?B:Sc(!!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 xv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eS(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function bl(){}var Mu=.7,Df=1/Mu,Qo="\\s*([+-]?\\d+)\\s*",zu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",NBe=/^#([0-9a-f]{3,8})$/,IBe=new RegExp(`^rgb\\(${Qo},${Qo},${Qo}\\)$`),RBe=new RegExp(`^rgb\\(${qr},${qr},${qr}\\)$`),MBe=new RegExp(`^rgba\\(${Qo},${Qo},${Qo},${zu}\\)$`),zBe=new RegExp(`^rgba\\(${qr},${qr},${qr},${zu}\\)$`),UBe=new RegExp(`^hsl\\(${zu},${qr},${qr}\\)$`),HBe=new RegExp(`^hsla\\(${zu},${qr},${qr},${zu}\\)$`),kD={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};xv(bl,Uu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:LD,formatHex:LD,formatHex8:qBe,formatHsl:jBe,formatRgb:BD,toString:BD});function LD(){return this.rgb().formatHex()}function qBe(){return this.rgb().formatHex8()}function jBe(){return tS(this).formatHsl()}function BD(){return this.rgb().formatRgb()}function Uu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=NBe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?OD(t):n===3?new Mn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Fc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fc(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=IBe.exec(e))?new Mn(t[1],t[2],t[3],1):(t=RBe.exec(e))?new Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=MBe.exec(e))?Fc(t[1],t[2],t[3],t[4]):(t=zBe.exec(e))?Fc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UBe.exec(e))?ID(t[1],t[2]/100,t[3]/100,1):(t=HBe.exec(e))?ID(t[1],t[2]/100,t[3]/100,t[4]):kD.hasOwnProperty(e)?OD(kD[e]):e==="transparent"?new Mn(NaN,NaN,NaN,0):null}function OD(e){return new Mn(e>>16&255,e>>8&255,e&255,1)}function Fc(e,t,n,i){return i<=0&&(e=t=n=NaN),new Mn(e,t,n,i)}function VBe(e){return e instanceof bl||(e=Uu(e)),e?(e=e.rgb(),new Mn(e.r,e.g,e.b,e.opacity)):new Mn}function Zp(e,t,n,i){return arguments.length===1?VBe(e):new Mn(e,t,n,i??1)}function Mn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}xv(Mn,Zp,eS(bl,{brighter(e){return e=e==null?Df:Math.pow(Df,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mu:Math.pow(Mu,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mn(zs(this.r),zs(this.g),zs(this.b),Af(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:PD,formatHex:PD,formatHex8:WBe,formatRgb:ND,toString:ND}));function PD(){return`#${Ns(this.r)}${Ns(this.g)}${Ns(this.b)}`}function WBe(){return`#${Ns(this.r)}${Ns(this.g)}${Ns(this.b)}${Ns((isNaN(this.opacity)?1:this.opacity)*255)}`}function ND(){const e=Af(this.opacity);return`${e===1?"rgb(":"rgba("}${zs(this.r)}, ${zs(this.g)}, ${zs(this.b)}${e===1?")":`, ${e})`}`}function Af(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ns(e){return e=zs(e),(e<16?"0":"")+e.toString(16)}function ID(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wr(e,t,n,i)}function tS(e){if(e instanceof wr)return new wr(e.h,e.s,e.l,e.opacity);if(e instanceof bl||(e=Uu(e)),!e)return new wr;if(e instanceof wr)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 wr(c,h,d,e.opacity)}function GBe(e,t,n,i){return arguments.length===1?tS(e):new wr(e,t,n,i??1)}function wr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}xv(wr,GBe,eS(bl,{brighter(e){return e=e==null?Df:Math.pow(Df,e),new wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mu:Math.pow(Mu,e),new wr(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 Mn(sp(e>=240?e-240:e+120,o,i),sp(e,o,i),sp(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new wr(RD(this.h),$c(this.s),$c(this.l),Af(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=Af(this.opacity);return`${e===1?"hsl(":"hsla("}${RD(this.h)}, ${$c(this.s)*100}%, ${$c(this.l)*100}%${e===1?")":`, ${e})`}`}}));function RD(e){return e=(e||0)%360,e<0?e+360:e}function $c(e){return Math.max(0,Math.min(1,e||0))}function sp(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 nS=e=>()=>e;function KBe(e,t){return function(n){return e+n*t}}function QBe(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 XBe(e){return(e=+e)==1?rS:function(t,n){return n-t?QBe(t,n,e):nS(isNaN(t)?n:t)}}function rS(e,t){var n=t-e;return n?KBe(e,n):nS(isNaN(e)?t:e)}const MD=function e(t){var n=XBe(t);function i(o,a){var c=n((o=Zp(o)).r,(a=Zp(a)).r),h=n(o.g,a.g),d=n(o.b,a.b),p=rS(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 Ki(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Jp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,op=new RegExp(Jp.source,"g");function YBe(e){return function(){return e}}function ZBe(e){return function(t){return e(t)+""}}function JBe(e,t){var n=Jp.lastIndex=op.lastIndex=0,i,o,a,c=-1,h=[],d=[];for(e=e+"",t=t+"";(i=Jp.exec(e))&&(o=op.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:Ki(i,o)})),n=op.lastIndex;return n<t.length&&(a=t.slice(n),h[c]?h[c]+=a:h[++c]=a),h.length<2?d[0]?ZBe(d[0].x):YBe(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 zD=180/Math.PI,e0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function iS(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)*zD,skewX:Math.atan(d)*zD,scaleX:c,scaleY:h}}var Tc;function eOe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?e0:iS(t.a,t.b,t.c,t.d,t.e,t.f)}function tOe(e){return e==null||(Tc||(Tc=document.createElementNS("http://www.w3.org/2000/svg","g")),Tc.setAttribute("transform",e),!(e=Tc.transform.baseVal.consolidate()))?e0:(e=e.matrix,iS(e.a,e.b,e.c,e.d,e.e,e.f))}function sS(e,t,n,i){function o(p){return p.length?p.pop()+" ":""}function a(p,g,y,m,A,$){if(p!==y||g!==m){var L=A.push("translate(",null,t,null,n);$.push({i:L-4,x:Ki(p,y)},{i:L-2,x:Ki(g,m)})}else(y||m)&&A.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:Ki(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:Ki(p,g)}):g&&y.push(o(y)+"skewX("+g+i)}function d(p,g,y,m,A,$){if(p!==y||g!==m){var L=A.push(o(A)+"scale(",null,",",null,")");$.push({i:L-4,x:Ki(p,y)},{i:L-2,x:Ki(g,m)})}else(y!==1||m!==1)&&A.push(o(A)+"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(A){for(var $=-1,L=m.length,C;++$<L;)y[(C=m[$]).i]=C.x(A);return y.join("")}}}var nOe=sS(eOe,"px, ","px)","deg)"),rOe=sS(tOe,", ",")",")"),iOe=1e-12;function UD(e){return((e=Math.exp(e))+1/e)/2}function sOe(e){return((e=Math.exp(e))-1/e)/2}function oOe(e){return((e=Math.exp(2*e))-1)/(e+1)}const aOe=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],A=g-h,$=y-d,L=A*A+$*$,C,x;if(L<iOe)x=Math.log(m/p)/t,C=function(R){return[h+R*A,d+R*$,p*Math.exp(t*R*x)]};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);x=(M-k)/t,C=function(R){var W=R*x,ie=UD(k),ce=p/(n*S)*(ie*oOe(t*W+k)-sOe(k));return[h+ce*A,d+ce*$,p*ie/UD(t*W+k)]}}return C.duration=x*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 fa=0,pu=0,fu=0,oS=1e3,Ef,gu,xf=0,Vs=0,Fh=0,Hu=typeof performance=="object"&&performance.now?performance:Date,aS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cv(){return Vs||(aS(uOe),Vs=Hu.now()+Fh)}function uOe(){Vs=0}function Cf(){this._call=this._time=this._next=null}Cf.prototype=_v.prototype={constructor:Cf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Cv():+n)+(t==null?0:+t),!this._next&&gu!==this&&(gu?gu._next=this:Ef=this,gu=this),this._call=e,this._time=n,t0()},stop:function(){this._call&&(this._call=null,this._time=1/0,t0())}};function _v(e,t,n){var i=new Cf;return i.restart(e,t,n),i}function lOe(){Cv(),++fa;for(var e=Ef,t;e;)(t=Vs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fa}function HD(){Vs=(xf=Hu.now())+Fh,fa=pu=0;try{lOe()}finally{fa=0,fOe(),Vs=0}}function cOe(){var e=Hu.now(),t=e-xf;t>oS&&(Fh-=t,xf=e)}function fOe(){for(var e,t=Ef,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:Ef=n);gu=e,t0(i)}function t0(e){if(!fa){pu&&(pu=clearTimeout(pu));var t=e-Vs;t>24?(e<1/0&&(pu=setTimeout(HD,e-Hu.now()-Fh)),fu&&(fu=clearInterval(fu))):(fu||(xf=Hu.now(),fu=setInterval(cOe,oS)),fa=1,aS(HD))}}function qD(e,t,n){var i=new Cf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var hOe=yl("start","end","cancel","interrupt"),dOe=[],uS=0,jD=1,n0=2,Kc=3,VD=4,r0=5,Qc=6;function $h(e,t,n,i,o,a){var c=e.__transition;if(!c)e.__transition={};else if(n in c)return;pOe(e,n,{name:t,index:i,group:o,on:hOe,tween:dOe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:uS})}function Sv(e,t){var n=Sr(e,t);if(n.state>uS)throw new Error("too late; already scheduled");return n}function Kr(e,t){var n=Sr(e,t);if(n.state>Kc)throw new Error("too late; already running");return n}function Sr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function pOe(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=_v(a,0,n.time);function a(p){n.state=jD,n.timer.restart(c,n.delay,n.time),n.delay<=p&&c(p-n.delay)}function c(p){var g,y,m,A;if(n.state!==jD)return d();for(g in i)if(A=i[g],A.name===n.name){if(A.state===Kc)return qD(c);A.state===VD?(A.state=Qc,A.timer.stop(),A.on.call("interrupt",e,e.__data__,A.index,A.group),delete i[g]):+g<t&&(A.state=Qc,A.timer.stop(),A.on.call("cancel",e,e.__data__,A.index,A.group),delete i[g])}if(qD(function(){n.state===Kc&&(n.state=VD,n.timer.restart(h,n.delay,n.time),h(p))}),n.state=n0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===n0){for(n.state=Kc,o=new Array(m=n.tween.length),g=0,y=-1;g<m;++g)(A=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(o[++y]=A);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=r0,1),y=-1,m=o.length;++y<m;)o[y].call(e,g);n.state===r0&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=Qc,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function Xc(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>n0&&i.state<r0,i.state=Qc,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(){Xc(this,e)})}function vOe(e,t){var n,i;return function(){var o=Kr(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 mOe(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var a=Kr(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 yOe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Sr(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?vOe:mOe)(n,e,t))}function Fv(e,t,n){var i=e._id;return e.each(function(){var o=Kr(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Sr(o,i).value[t]}}function lS(e,t){var n;return(typeof t=="number"?Ki:t instanceof Uu?MD:(n=Uu(t))?(t=n,MD):JBe)(e,t)}function bOe(e){return function(){this.removeAttribute(e)}}function wOe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function DOe(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 AOe(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 EOe(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 xOe(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 COe(e,t){var n=Sh(e),i=n==="transform"?rOe:lS;return this.attrTween(e,typeof t=="function"?(n.local?xOe:EOe)(n,i,Fv(this,"attr."+e,t)):t==null?(n.local?wOe:bOe)(n):(n.local?AOe:DOe)(n,i,t))}function _Oe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function SOe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function FOe(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&SOe(e,a)),n}return o._value=t,o}function $Oe(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&_Oe(e,a)),n}return o._value=t,o}function TOe(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=Sh(e);return this.tween(n,(i.local?FOe:$Oe)(i,t))}function kOe(e,t){return function(){Sv(this,e).delay=+t.apply(this,arguments)}}function LOe(e,t){return t=+t,function(){Sv(this,e).delay=t}}function BOe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?kOe:LOe)(t,e)):Sr(this.node(),t).delay}function OOe(e,t){return function(){Kr(this,e).duration=+t.apply(this,arguments)}}function POe(e,t){return t=+t,function(){Kr(this,e).duration=t}}function NOe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?OOe:POe)(t,e)):Sr(this.node(),t).duration}function IOe(e,t){if(typeof t!="function")throw new Error;return function(){Kr(this,e).ease=t}}function ROe(e){var t=this._id;return arguments.length?this.each(IOe(t,e)):Sr(this.node(),t).ease}function MOe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Kr(this,e).ease=n}}function zOe(e){if(typeof e!="function")throw new Error;return this.each(MOe(this._id,e))}function UOe(e){typeof e!="function"&&(e=H_(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 Ei(i,this._parents,this._name,this._id)}function HOe(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,A=0;A<g;++A)(m=d[A]||p[A])&&(y[A]=m);for(;h<i;++h)c[h]=t[h];return new Ei(c,this._parents,this._name,this._id)}function qOe(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 jOe(e,t,n){var i,o,a=qOe(t)?Sv:Kr;return function(){var c=a(this,e),h=c.on;h!==i&&(o=(i=h).copy()).on(t,n),c.on=o}}function VOe(e,t){var n=this._id;return arguments.length<2?Sr(this.node(),n).on.on(e):this.each(jOe(n,e,t))}function WOe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function GOe(){return this.on("end.remove",WOe(this._id))}function KOe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Av(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,$h(p[m],t,n,m,p,Sr(g,n)));return new Ei(a,this._parents,t,n)}function QOe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=U_(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),A,$=Sr(g,n),L=0,C=m.length;L<C;++L)(A=m[L])&&$h(A,t,n,L,m,$);a.push(m),c.push(g)}return new Ei(a,c,t,n)}var XOe=ml.prototype.constructor;function YOe(){return new XOe(this._groups,this._parents)}function ZOe(e,t){var n,i,o;return function(){var a=ca(this,e),c=(this.style.removeProperty(e),ca(this,e));return a===c?null:a===n&&c===i?o:o=t(n=a,i=c)}}function cS(e){return function(){this.style.removeProperty(e)}}function JOe(e,t,n){var i,o=n+"",a;return function(){var c=ca(this,e);return c===o?null:c===i?a:a=t(i=c,n)}}function ePe(e,t,n){var i,o,a;return function(){var c=ca(this,e),h=n(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(e),ca(this,e))),c===d?null:c===i&&d===o?a:(o=d,a=t(i=c,h))}}function tPe(e,t){var n,i,o,a="style."+t,c="end."+a,h;return function(){var d=Kr(this,e),p=d.on,g=d.value[a]==null?h||(h=cS(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(c,o=g),d.on=i}}function nPe(e,t,n){var i=(e+="")=="transform"?nOe:lS;return t==null?this.styleTween(e,ZOe(e,i)).on("end.style."+e,cS(e)):typeof t=="function"?this.styleTween(e,ePe(e,i,Fv(this,"style."+e,t))).each(tPe(this._id,e)):this.styleTween(e,JOe(e,i,t),n).on("end.style."+e,null)}function rPe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function iPe(e,t,n){var i,o;function a(){var c=t.apply(this,arguments);return c!==o&&(i=(o=c)&&rPe(e,c,n)),i}return a._value=t,a}function sPe(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,iPe(e,t,n??""))}function oPe(e){return function(){this.textContent=e}}function aPe(e){return function(){var t=e(this);this.textContent=t??""}}function uPe(e){return this.tween("text",typeof e=="function"?aPe(Fv(this,"text",e)):oPe(e==null?"":e+""))}function lPe(e){return function(t){this.textContent=e.call(this,t)}}function cPe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&lPe(o)),t}return i._value=e,i}function fPe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,cPe(e))}function hPe(){for(var e=this._name,t=this._id,n=fS(),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=Sr(d,t);$h(d,e,n,p,c,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Ei(i,this._parents,e,n)}function dPe(){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=Kr(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 pPe=0;function Ei(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function fS(){return++pPe}var li=ml.prototype;Ei.prototype={constructor:Ei,select:KOe,selectAll:QOe,selectChild:li.selectChild,selectChildren:li.selectChildren,filter:UOe,merge:HOe,selection:YOe,transition:hPe,call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:VOe,attr:COe,attrTween:TOe,style:nPe,styleTween:sPe,text:uPe,textTween:fPe,remove:GOe,tween:yOe,delay:BOe,duration:NOe,ease:ROe,easeVarying:zOe,end:dPe,[Symbol.iterator]:li[Symbol.iterator]};function gPe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var vPe={time:null,delay:0,duration:250,ease:gPe};function mPe(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 yPe(e){var t,n;e instanceof Ei?(t=e._id,e=e._name):(t=fS(),(n=vPe).time=Cv(),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])&&$h(d,e,t,p,c,n||mPe(d,t));return new Ei(i,this._parents,e,t)}ml.prototype.interrupt=gOe;ml.prototype.transition=yPe;const kc=e=>()=>e;function bPe(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 vi(e,t,n){this.k=e,this.x=t,this.y=n}vi.prototype={constructor:vi,scale:function(e){return e===1?this:new vi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new vi(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 $v=new vi(1,0,0);vi.prototype;function ap(e){e.stopImmediatePropagation()}function hu(e){e.preventDefault(),e.stopImmediatePropagation()}function wPe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function DPe(){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 WD(){return this.__zoom||$v}function APe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function EPe(){return navigator.maxTouchPoints||"ontouchstart"in this}function xPe(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 CPe(){var e=wPe,t=DPe,n=xPe,i=APe,o=EPe,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],h=250,d=aOe,p=yl("start","zoom","end"),g,y,m,A=500,$=150,L=0,C=10;function x(F){F.property("__zoom",WD).on("wheel.zoom",W,{passive:!1}).on("mousedown.zoom",ie).on("dblclick.zoom",ce).filter(o).on("touchstart.zoom",Y).on("touchmove.zoom",U).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}x.transform=function(F,D,z,j){var Z=F.selection?F.selection():F;Z.property("__zoom",WD),F!==Z?k(F,D,z,j):Z.interrupt().each(function(){M(this,arguments).event(j).start().zoom(null,typeof D=="function"?D.apply(this,arguments):D).end()})},x.scaleBy=function(F,D,z,j){x.scaleTo(F,function(){var Z=this.__zoom.k,ae=typeof D=="function"?D.apply(this,arguments):D;return Z*ae},z,j)},x.scaleTo=function(F,D,z,j){x.transform(F,function(){var Z=t.apply(this,arguments),ae=this.__zoom,me=z==null?B(Z):typeof z=="function"?z.apply(this,arguments):z,$e=ae.invert(me),Fe=typeof D=="function"?D.apply(this,arguments):D;return n(O(S(ae,Fe),me,$e),Z,c)},z,j)},x.translateBy=function(F,D,z,j){x.transform(F,function(){return n(this.__zoom.translate(typeof D=="function"?D.apply(this,arguments):D,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),c)},null,j)},x.translateTo=function(F,D,z,j,Z){x.transform(F,function(){var ae=t.apply(this,arguments),me=this.__zoom,$e=j==null?B(ae):typeof j=="function"?j.apply(this,arguments):j;return n($v.translate($e[0],$e[1]).scale(me.k).translate(typeof D=="function"?-D.apply(this,arguments):-D,typeof z=="function"?-z.apply(this,arguments):-z),ae,c)},j,Z)};function S(F,D){return D=Math.max(a[0],Math.min(a[1],D)),D===F.k?F:new vi(D,F.x,F.y)}function O(F,D,z){var j=D[0]-z[0]*F.k,Z=D[1]-z[1]*F.k;return j===F.x&&Z===F.y?F:new vi(F.k,j,Z)}function B(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function k(F,D,z,j){F.on("start.zoom",function(){M(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).event(j).end()}).tween("zoom",function(){var Z=this,ae=arguments,me=M(Z,ae).event(j),$e=t.apply(Z,ae),Fe=z==null?B($e):typeof z=="function"?z.apply(Z,ae):z,je=Math.max($e[1][0]-$e[0][0],$e[1][1]-$e[0][1]),tt=Z.__zoom,re=typeof D=="function"?D.apply(Z,ae):D,se=d(tt.invert(Fe).concat(je/tt.k),re.invert(Fe).concat(je/re.k));return function(J){if(J===1)J=re;else{var fe=se(J),_e=je/fe[2];J=new vi(_e,Fe[0]-fe[0]*_e,Fe[1]-fe[1]*_e)}me.zoom(null,J)}})}function M(F,D,z){return!z&&F.__zooming||new R(F,D)}function R(F,D){this.that=F,this.args=D,this.active=0,this.sourceEvent=null,this.extent=t.apply(F,D),this.taps=0}R.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=Rn(this.that).datum();p.call(F,this.that,new bPe(F,{sourceEvent:this.sourceEvent,target:x,type:F,transform:this.that.__zoom,dispatch:p}),D)}};function W(F,...D){if(!e.apply(this,arguments))return;var z=M(this,D).event(F),j=this.__zoom,Z=Math.max(a[0],Math.min(a[1],j.k*Math.pow(2,i.apply(this,arguments)))),ae=hi(F);if(z.wheel)(z.mouse[0][0]!==ae[0]||z.mouse[0][1]!==ae[1])&&(z.mouse[1]=j.invert(z.mouse[0]=ae)),clearTimeout(z.wheel);else{if(j.k===Z)return;z.mouse=[ae,j.invert(ae)],Xc(this),z.start()}hu(F),z.wheel=setTimeout(me,$),z.zoom("mouse",n(O(S(j,Z),z.mouse[0],z.mouse[1]),z.extent,c));function me(){z.wheel=null,z.end()}}function ie(F,...D){if(m||!e.apply(this,arguments))return;var z=F.currentTarget,j=M(this,D,!0).event(F),Z=Rn(F.view).on("mousemove.zoom",Fe,!0).on("mouseup.zoom",je,!0),ae=hi(F,z),me=F.clientX,$e=F.clientY;Z_(F.view),ap(F),j.mouse=[ae,this.__zoom.invert(ae)],Xc(this),j.start();function Fe(tt){if(hu(tt),!j.moved){var re=tt.clientX-me,se=tt.clientY-$e;j.moved=re*re+se*se>L}j.event(tt).zoom("mouse",n(O(j.that.__zoom,j.mouse[0]=hi(tt,z),j.mouse[1]),j.extent,c))}function je(tt){Z.on("mousemove.zoom mouseup.zoom",null),J_(tt.view,j.moved),hu(tt),j.event(tt).end()}}function ce(F,...D){if(!!e.apply(this,arguments)){var z=this.__zoom,j=hi(F.changedTouches?F.changedTouches[0]:F,this),Z=z.invert(j),ae=z.k*(F.shiftKey?.5:2),me=n(O(S(z,ae),j,Z),t.apply(this,D),c);hu(F),h>0?Rn(this).transition().duration(h).call(k,me,j,F):Rn(this).call(x.transform,me,j,F)}}function Y(F,...D){if(!!e.apply(this,arguments)){var z=F.touches,j=z.length,Z=M(this,D,F.changedTouches.length===j).event(F),ae,me,$e,Fe;for(ap(F),me=0;me<j;++me)$e=z[me],Fe=hi($e,this),Fe=[Fe,this.__zoom.invert(Fe),$e.identifier],Z.touch0?!Z.touch1&&Z.touch0[2]!==Fe[2]&&(Z.touch1=Fe,Z.taps=0):(Z.touch0=Fe,ae=!0,Z.taps=1+!!g);g&&(g=clearTimeout(g)),ae&&(Z.taps<2&&(y=Fe[0],g=setTimeout(function(){g=null},A)),Xc(this),Z.start())}}function U(F,...D){if(!!this.__zooming){var z=M(this,D).event(F),j=F.changedTouches,Z=j.length,ae,me,$e,Fe;for(hu(F),ae=0;ae<Z;++ae)me=j[ae],$e=hi(me,this),z.touch0&&z.touch0[2]===me.identifier?z.touch0[0]=$e:z.touch1&&z.touch1[2]===me.identifier&&(z.touch1[0]=$e);if(me=z.that.__zoom,z.touch1){var je=z.touch0[0],tt=z.touch0[1],re=z.touch1[0],se=z.touch1[1],J=(J=re[0]-je[0])*J+(J=re[1]-je[1])*J,fe=(fe=se[0]-tt[0])*fe+(fe=se[1]-tt[1])*fe;me=S(me,Math.sqrt(J/fe)),$e=[(je[0]+re[0])/2,(je[1]+re[1])/2],Fe=[(tt[0]+se[0])/2,(tt[1]+se[1])/2]}else if(z.touch0)$e=z.touch0[0],Fe=z.touch0[1];else return;z.zoom("touch",n(O(me,$e,Fe),z.extent,c))}}function P(F,...D){if(!!this.__zooming){var z=M(this,D).event(F),j=F.changedTouches,Z=j.length,ae,me;for(ap(F),m&&clearTimeout(m),m=setTimeout(function(){m=null},A),ae=0;ae<Z;++ae)me=j[ae],z.touch0&&z.touch0[2]===me.identifier?delete z.touch0:z.touch1&&z.touch1[2]===me.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(me=hi(me,this),Math.hypot(y[0]-me[0],y[1]-me[1])<C)){var $e=Rn(this).on("dblclick.zoom");$e&&$e.apply(this,arguments)}}}return x.wheelDelta=function(F){return arguments.length?(i=typeof F=="function"?F:kc(+F),x):i},x.filter=function(F){return arguments.length?(e=typeof F=="function"?F:kc(!!F),x):e},x.touchable=function(F){return arguments.length?(o=typeof F=="function"?F:kc(!!F),x):o},x.extent=function(F){return arguments.length?(t=typeof F=="function"?F:kc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),x):t},x.scaleExtent=function(F){return arguments.length?(a[0]=+F[0],a[1]=+F[1],x):[a[0],a[1]]},x.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],x):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},x.constrain=function(F){return arguments.length?(n=F,x):n},x.duration=function(F){return arguments.length?(h=+F,x):h},x.interpolate=function(F){return arguments.length?(d=F,x):d},x.on=function(){var F=p.on.apply(p,arguments);return F===p?x:F},x.clickDistance=function(F){return arguments.length?(L=(F=+F)*F,x):Math.sqrt(L)},x.tapDistance=function(F){return arguments.length?(C=+F,x):C},x}function _Pe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return hS(this.cover(t,n),t,n,e)}function hS(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,A,$,L,C,x,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[x=C<<1|L]))return o[x]=c,e;if(A=+e._x.call(null,a.data),$=+e._y.call(null,a.data),t===A&&n===$)return c.next=a,o?o[x]=c:e._root=c,e;do o=o?o[x]=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((x=C<<1|L)===(S=($>=m)<<1|A>=y));return o[S]=a,o[x]=c,e}function SPe(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)hS(this,c[n],h[n],e[n]);return this}function FPe(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 $Pe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function TPe(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 Sn(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function kPe(e,t,n){var i,o=this._x0,a=this._y0,c,h,d,p,g=this._x1,y=this._y1,m=[],A=this._root,$,L;for(A&&m.push(new Sn(A,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(!(!(A=$.node)||(c=$.x0)>g||(h=$.y0)>y||(d=$.x1)<o||(p=$.y1)<a))if(A.length){var C=(c+d)/2,x=(h+p)/2;m.push(new Sn(A[3],C,x,d,p),new Sn(A[2],c,x,C,p),new Sn(A[1],C,h,d,x),new Sn(A[0],c,h,C,x)),(L=(t>=x)<<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,A.data),O=t-+this._y.call(null,A.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=A.data}}return i}function LPe(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,A,$,L,C,x;if(!n)return this;if(n.length)for(;;){if(($=g>=(m=(c+d)/2))?c=m:d=m,(L=y>=(A=(h+p)/2))?h=A:p=A,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,x=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[x]=n:this._root=n),this):(this._root=a,this)}function BPe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function OPe(){return this._root}function PPe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function NPe(e){var t=[],n,i=this._root,o,a,c,h,d;for(i&&t.push(new Sn(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 Sn(o,p,g,h,d)),(o=i[2])&&t.push(new Sn(o,a,g,p,d)),(o=i[1])&&t.push(new Sn(o,p,c,h,g)),(o=i[0])&&t.push(new Sn(o,a,c,p,g))}return this}function IPe(e){var t=[],n=[],i;for(this._root&&t.push(new Sn(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 Sn(a,c,h,g,y)),(a=o[1])&&t.push(new Sn(a,g,h,d,y)),(a=o[2])&&t.push(new Sn(a,c,y,g,p)),(a=o[3])&&t.push(new Sn(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 RPe(e){return e[0]}function MPe(e){return arguments.length?(this._x=e,this):this._x}function zPe(e){return e[1]}function UPe(e){return arguments.length?(this._y=e,this):this._y}function Tv(e,t,n){var i=new kv(t??RPe,n??zPe,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function kv(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 GD(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var kn=Tv.prototype=kv.prototype;kn.copy=function(){var e=new kv(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=GD(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]=GD(i));return e};kn.add=_Pe;kn.addAll=SPe;kn.cover=FPe;kn.data=$Pe;kn.extent=TPe;kn.find=kPe;kn.remove=LPe;kn.removeAll=BPe;kn.root=OPe;kn.size=PPe;kn.visit=NPe;kn.visitAfter=IPe;kn.x=MPe;kn.y=UPe;function $n(e){return function(){return e}}function Xi(e){return(e()-.5)*1e-6}function HPe(e){return e.x+e.vx}function qPe(e){return e.y+e.vy}function jPe(e){var t,n,i,o=1,a=1;typeof e!="function"&&(e=$n(e==null?1:+e));function c(){for(var p,g=t.length,y,m,A,$,L,C,x=0;x<a;++x)for(y=Tv(t,HPe,qPe).visitAfter(h),p=0;p<g;++p)m=t[p],L=n[m.index],C=L*L,A=m.x+m.vx,$=m.y+m.vy,y.visit(S);function S(O,B,k,M,R){var W=O.data,ie=O.r,ce=L+ie;if(W){if(W.index>m.index){var Y=A-W.x-W.vx,U=$-W.y-W.vy,P=Y*Y+U*U;P<ce*ce&&(Y===0&&(Y=Xi(i),P+=Y*Y),U===0&&(U=Xi(i),P+=U*U),P=(ce-(P=Math.sqrt(P)))/P*o,m.vx+=(Y*=P)*(ce=(ie*=ie)/(C+ie)),m.vy+=(U*=P)*ce,W.vx-=Y*(ce=1-ce),W.vy-=U*ce)}return}return B>A+ce||M<A-ce||k>$+ce||R<$-ce}}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:$n(+p),d(),c):e},c}function VPe(e){return e.index}function KD(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function WPe(e){var t=VPe,n=y,i,o=$n(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 x=0,S=e.length;x<g;++x)for(var O=0,B,k,M,R,W,ie,ce;O<S;++O)B=e[O],k=B.source,M=B.target,R=M.x+M.vx-k.x-k.vx||Xi(p),W=M.y+M.vy-k.y-k.vy||Xi(p),ie=Math.sqrt(R*R+W*W),ie=(ie-a[O])/ie*C*i[O],R*=ie,W*=ie,M.vx-=R*(ce=d[O]),M.vy-=W*ce,k.vx+=R*(ce=1-ce),k.vy+=W*ce}function A(){if(!!c){var C,x=c.length,S=e.length,O=new Map(c.map((k,M)=>[t(k,M,c),k])),B;for(C=0,h=new Array(x);C<S;++C)B=e[C],B.index=C,typeof B.source!="object"&&(B.source=KD(O,B.source)),typeof B.target!="object"&&(B.target=KD(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,x=e.length;C<x;++C)i[C]=+n(e[C],C,e)}function L(){if(!!c)for(var C=0,x=e.length;C<x;++C)a[C]=+o(e[C],C,e)}return m.initialize=function(C,x){c=C,p=x,A()},m.links=function(C){return arguments.length?(e=C,A(),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:$n(+C),$(),m):n},m.distance=function(C){return arguments.length?(o=typeof C=="function"?C:$n(+C),L(),m):o},m}const GPe=1664525,KPe=1013904223,QD=4294967296;function QPe(){let e=1;return()=>(e=(GPe*e+KPe)%QD)/QD}function XPe(e){return e.x}function YPe(e){return e.y}var ZPe=10,JPe=Math.PI*(3-Math.sqrt(5));function e3e(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),a=0,c=.6,h=new Map,d=_v(y),p=yl("tick","end"),g=QPe();e==null&&(e=[]);function y(){m(),p.call("tick",t),n<i&&(d.stop(),p.call("end",t))}function m(L){var C,x=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<x;++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 A(){for(var L=0,C=e.length,x;L<C;++L){if(x=e[L],x.index=L,x.fx!=null&&(x.x=x.fx),x.fy!=null&&(x.y=x.fy),isNaN(x.x)||isNaN(x.y)){var S=ZPe*Math.sqrt(.5+L),O=L*JPe;x.x=S*Math.cos(O),x.y=S*Math.sin(O)}(isNaN(x.vx)||isNaN(x.vy))&&(x.vx=x.vy=0)}}function $(L){return L.initialize&&L.initialize(e,g),L}return A(),t={tick:m,restart:function(){return d.restart(y),t},stop:function(){return d.stop(),t},nodes:function(L){return arguments.length?(e=L,A(),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,x){var S=0,O=e.length,B,k,M,R,W;for(x==null?x=1/0:x*=x,S=0;S<O;++S)R=e[S],B=L-R.x,k=C-R.y,M=B*B+k*k,M<x&&(W=R,x=M);return W},on:function(L,C){return arguments.length>1?(p.on(L,C),t):p.on(L)}}}function t3e(){var e,t,n,i,o=$n(-30),a,c=1,h=1/0,d=.81;function p(A){var $,L=e.length,C=Tv(e,XPe,YPe).visitAfter(y);for(i=A,$=0;$<L;++$)t=e[$],C.visit(m)}function g(){if(!!e){var A,$=e.length,L;for(a=new Array($),A=0;A<$;++A)L=e[A],a[L.index]=+o(L,A,e)}}function y(A){var $=0,L,C,x=0,S,O,B;if(A.length){for(S=O=B=0;B<4;++B)(L=A[B])&&(C=Math.abs(L.value))&&($+=L.value,x+=C,S+=C*L.x,O+=C*L.y);A.x=S/x,A.y=O/x}else{L=A,L.x=L.data.x,L.y=L.data.y;do $+=a[L.data.index];while(L=L.next)}A.value=$}function m(A,$,L,C){if(!A.value)return!0;var x=A.x-t.x,S=A.y-t.y,O=C-$,B=x*x+S*S;if(O*O/d<B)return B<h&&(x===0&&(x=Xi(n),B+=x*x),S===0&&(S=Xi(n),B+=S*S),B<c&&(B=Math.sqrt(c*B)),t.vx+=x*A.value*i/B,t.vy+=S*A.value*i/B),!0;if(A.length||B>=h)return;(A.data!==t||A.next)&&(x===0&&(x=Xi(n),B+=x*x),S===0&&(S=Xi(n),B+=S*S),B<c&&(B=Math.sqrt(c*B)));do A.data!==t&&(O=a[A.data.index]*i/B,t.vx+=x*O,t.vy+=S*O);while(A=A.next)}return p.initialize=function(A,$){e=A,n=$,g()},p.strength=function(A){return arguments.length?(o=typeof A=="function"?A:$n(+A),g(),p):o},p.distanceMin=function(A){return arguments.length?(c=A*A,p):Math.sqrt(c)},p.distanceMax=function(A){return arguments.length?(h=A*A,p):Math.sqrt(h)},p.theta=function(A){return arguments.length?(d=A*A,p):Math.sqrt(d)},p}function n3e(e){var t=$n(.1),n,i,o;typeof e!="function"&&(e=$n(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:$n(+h),c(),a):t},a.x=function(h){return arguments.length?(e=typeof h=="function"?h:$n(+h),c(),a):e},a}function r3e(e){var t=$n(.1),n,i,o;typeof e!="function"&&(e=$n(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:$n(+h),c(),a):t},a.y=function(h){return arguments.length?(e=typeof h=="function"?h:$n(+h),c(),a):e},a}var i3e=Object.defineProperty,s3e=(e,t,n)=>t in e?i3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rt=(e,t,n)=>(s3e(e,typeof t!="symbol"?t+"":t,n),n);function o3e(){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 XD=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},Yi=(...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]=Yi.options.mergeArrays?Array.from(new Set(t[i].concat(n[i]))):n[i]:XD(t[i])&&XD(n[i])?t[i]=Yi(t[i],n[i]):t[i]=n[i])}),t},{}),dS={mergeArrays:!0};Yi.options=dS;Yi.withOptions=(e,...t)=>{Yi.options={mergeArrays:!0,...e};const n=Yi(...t);return Yi.options=dS,n};function a3e(){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 u3e(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function pS(e){e.preventDefault(),e.stopPropagation()}function gS(e){return typeof e=="number"}function is(e,t){return gS(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function l3e(e){return`${e.source.id}-${e.target.id}`}function vS(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function c3e(e){return`url(#${vS(e.color)})`}function f3e(e){return{size:e,padding:(t,n)=>is(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const mS={Arrow:e=>f3e(e)},h3e=(e,t,n)=>[t/2,n/2],yS=(e,t,n)=>[YD(0,t),YD(0,n)];function YD(e,t){return Math.random()*(t-e)+e}function d3e(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?yS(n,i,o):[a,c]}}const i0={Centered:h3e,Randomized:yS,Stable:d3e};function p3e(){return{autoResize:!1,callbacks:{},hooks:{},initial:u3e(),nodeRadius:16,marker:mS.Arrow(4),modifiers:{},positionInitializer:i0.Centered,simulation:{alphas:o3e(),forces:a3e()},zoom:{initial:1,min:.1,max:2}}}function g3e(e={}){return Yi.withOptions({mergeArrays:!1},p3e(),e)}function v3e(e,t){let n;return()=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(),t)}}function m3e({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=>pS(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,$v.translate(a,c).scale(h)),p.append("g")}function y3e({canvas:e,scale:t,xOffset:n,yOffset:i}){e==null||e.attr("transform",`translate(${n},${i})scale(${t})`)}function b3e({config:e,onDragStart:t,onDragEnd:n}){var i,o;const a=PBe().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),Rn(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),Rn(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 w3e({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}:D3e({nodes:h,links:a},n)}function D3e(e,t){const n=[...A3e(e,t),...E3e(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function A3e(e,t){return bS(e,t,(n,i)=>n.target.id===i.id)}function E3e(e,t){return bS(e,t,(n,i)=>n.source.id===i.id)}function bS(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 s0(e){return e.x??0}function o0(e){return e.y??0}function Lv({source:e,target:t}){const n=new _n(s0(e),o0(e)),i=new _n(s0(t),o0(t)),o=i.subtract(n),a=o.length(),c=o.normalize(),h=c.multiply(-1);return{s:n,t:i,dist:a,norm:c,endNorm:h}}function wS({center:e,node:t}){const n=new _n(s0(t),o0(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new _n(0,1))),{n,c:i}}function DS({config:e,source:t,target:n}){const{s:i,t:o,norm:a}=Lv({config:e,source:t,target:n}),c=i.add(a.multiply(is(e,t)-1)),h=o.subtract(a.multiply(e.marker.padding(n,e)));return{start:c,end:h}}function x3e(e){const{start:t,end:n}=DS(e);return`M${t.x},${t.y}
|
|
39
|
+
L${n.x},${n.y}`}function C3e(e){const{start:t,end:n}=DS(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function _3e({config:e,source:t,target:n}){const{s:i,t:o,dist:a,norm:c,endNorm:h}=Lv({config:e,source:t,target:n}),d=10,p=c.rotateByDegrees(-d).multiply(is(e,t)-1).add(i),g=h.rotateByDegrees(d).multiply(is(e,n)).add(o).add(h.rotateByDegrees(d).multiply(2*e.marker.size)),y=1.2*a;return`M${p.x},${p.y}
|
|
40
|
+
A${y},${y},0,0,1,${g.x},${g.y}`}function S3e({center:e,config:t,node:n}){const{n:i,c:o}=wS({center:e,config:t,node:n}),a=is(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}
|
|
41
|
+
A${a},${a},0,1,0,${g.x},${g.y}`}function F3e({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:a}=Lv({config:e,source:t,target:n}),c=10,h=a.rotateByDegrees(c).multiply(.5*o).add(i);return`translate(${h.x},${h.y})`}function $3e({center:e,config:t,node:n}){const{n:i,c:o}=wS({center:e,config:t,node:n}),a=i.subtract(o),c=a.multiply(1/a.length()).multiply(3*is(t,n)+8).add(i);return`translate(${c.x},${c.y})`}const Xo={line:{labelTransform:C3e,path:x3e},arc:{labelTransform:F3e,path:_3e},reflexive:{labelTransform:$3e,path:S3e}};function T3e(e){return e.append("g").classed("links",!0).selectAll("path")}function k3e({config:e,graph:t,selection:n,showLabels:i}){const o=n==null?void 0:n.data(t.links,a=>l3e(a)).join(a=>{var c,h,d,p;const g=a.append("g"),y=g.append("path").classed("link",!0).style("marker-end",A=>c3e(A)).style("stroke",A=>A.color);(h=(c=e.modifiers).link)==null||h.call(c,y);const m=g.append("text").classed("link__label",!0).style("fill",A=>A.label?A.label.color:null).style("font-size",A=>A.label?A.label.fontSize:null).text(A=>A.label?A.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 L3e(e){B3e(e),O3e(e)}function B3e({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?Xo.reflexive.path({config:t,node:o.source,center:e}):AS(n,o.source,o.target)?Xo.arc.path({config:t,source:o.source,target:o.target}):Xo.line.path({config:t,source:o.source,target:o.target}))}function O3e({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?Xo.reflexive.labelTransform({config:e,node:o.source,center:t}):AS(n,o.source,o.target)?Xo.arc.labelTransform({config:e,source:o.source,target:o.target}):Xo.line.labelTransform({config:e,source:o.source,target:o.target}))}function AS(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 P3e(e){return e.append("defs").selectAll("marker")}function N3e({config:e,graph:t,selection:n}){return n==null?void 0:n.data(I3e(t),i=>i).join(i=>{const o=i.append("marker").attr("id",a=>vS(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",R3e(e.marker.path)),o})}function I3e(e){return[...new Set(e.links.map(t=>t.color))]}function R3e(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 M3e(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function z3e({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 A=d.append("g");t!==void 0&&A.call(t);const $=A.append("circle").classed("node",!0).attr("r",C=>is(e,C)).on("contextmenu",(C,x)=>{pS(C),i(x)}).on("pointerdown",(C,x)=>H3e(C,x,o??i)).style("fill",C=>C.color);(g=(p=e.modifiers).node)==null||g.call(p,$);const L=A.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),A});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",c?1:0),h}const U3e=500;function H3e(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>U3e){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function q3e(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function j3e({center:e,config:t,graph:n,onTick:i}){var o,a;const c=e3e(n.nodes),h=t.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;c.force("x",n3e(()=>e().x).strength(y)).force("y",r3e(()=>e().y).strength(y))}const d=t.simulation.forces.charge;d&&d.enabled&&c.force("charge",t3e().strength(d.strength));const p=t.simulation.forces.collision;p&&p.enabled&&c.force("collision",jPe().radius(y=>p.radiusMultiplier*is(t,y)));const g=t.simulation.forces.link;return g&&g.enabled&&c.force("link",WPe(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 V3e({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){var a,c;const h=CPe().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 W3e{constructor(t,n,i){if(Rt(this,"nodeTypes"),Rt(this,"_nodeTypeFilter"),Rt(this,"_includeUnlinked",!0),Rt(this,"_linkFilter",()=>!0),Rt(this,"_showLinkLabels",!0),Rt(this,"_showNodeLabels",!0),Rt(this,"filteredGraph"),Rt(this,"width",0),Rt(this,"height",0),Rt(this,"simulation"),Rt(this,"canvas"),Rt(this,"linkSelection"),Rt(this,"nodeSelection"),Rt(this,"markerSelection"),Rt(this,"zoom"),Rt(this,"drag"),Rt(this,"xOffset",0),Rt(this,"yOffset",0),Rt(this,"scale"),Rt(this,"focusedNode"),Rt(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(v3e(()=>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 _n.of([this.width,this.height]).divide(2).subtract(_n.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(gS(h)?h:h({oldWidth:t,oldHeight:n,newWidth:i,newHeight:o}))}restart(t){var n;this.markerSelection=N3e({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=k3e({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=z3e({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=j3e({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=V3e({config:this.config,canvasContainer:()=>Rn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=m3e({applyZoom:this.scale!==1,container:Rn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=T3e(this.canvas),this.nodeSelection=M3e(this.canvas),this.markerSelection=P3e(this.canvas),this.drag=b3e({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(){q3e(this.nodeSelection),L3e({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Rn(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(){y3e({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=w3e({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function ZD({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function G3e(e){return{...e}}function ES(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const K3e={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Q3e={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},X3e=["id","checked","onChange"],Y3e=["for"],Z3e=ve("div",{"flex-auto":""},null,-1),J3e=st({__name:"ViewModuleGraph",props:{graph:null},setup(e){const t=e,{graph:n}=D2(t),i=Qe(),o=Qe(!1),a=Qe(),c=Qe();C0(()=>{o.value===!1&&setTimeout(()=>a.value=void 0,300)},{flush:"post"}),Vu(()=>{p()}),S0(()=>{var y;(y=c.value)==null||y.shutdown()}),Qt(n,p);function h(y,m){var A;(A=c.value)==null||A.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 W3e(i.value,n.value,g3e({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:m,newWidth:A})=>m===0&&A===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:mS.Arrow(2),modifiers:{node:g},positionInitializer:n.value.nodes.length>1?i0.Randomized:i0.Centered,zoom:{min:.5,max:2}})))}function g(y){if(Ai)return;const m=C=>C.button===0;let A=0,$=0,L=0;y.on("pointerdown",(C,x)=>{x.type!=="external"&&(!x.x||!x.y||!m(C)||(A=x.x,$=x.y,L=Date.now()))}).on("pointerup",(C,x)=>{if(x.type==="external"||!x.x||!x.y||!m(C)||Date.now()-L>500)return;const S=x.x-A,O=x.y-$;S**2+O**2<100&&d(x.id)})}return(y,m)=>{var x;const A=xa,$=Gke,L=Pke,C=Gs("tooltip");return de(),ke("div",K3e,[ve("div",null,[ve("div",Q3e,[(de(!0),ke(ft,null,yr((x=X(c))==null?void 0:x.nodeTypes.sort(),S=>{var O;return de(),ke("div",{key:S,flex:"~ gap-1","items-center":"","select-none":""},[ve("input",{id:`type-${S}`,type:"checkbox",checked:(O=X(c))==null?void 0:O.nodeTypeFilter.includes(S),onChange:B=>h(S,B.target.checked)},null,40,X3e),ve("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${S}`,"border-b-2":"",style:zn({"border-color":`var(--color-node-${S})`})},Xe(S)+" Modules",13,Y3e)])}),128)),Z3e,ve("div",null,[Fn(Me(A,{icon:"i-carbon-reset",onClick:p},null,512),[[C,"Reset",void 0,{bottom:!0}]])])])]),ve("div",{ref_key:"el",ref:i},null,512),Me(L,{modelValue:X(o),"onUpdate:modelValue":m[1]||(m[1]=S=>Pt(o)?o.value=S:null),direction:"right"},{default:Ze(()=>[X(a)?(de(),et(I2,{key:0},{default:Ze(()=>[Me($,{id:X(a),onClose:m[0]||(m[0]=S=>o.value=!1)},null,8,["id"])]),_:1})):ut("",!0)]),_:1},8,["modelValue"])])}}});const e8e={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},t8e={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},n8e={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},r8e={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},i8e={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},s8e={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Bv=st({__name:"StatusIcon",props:{task:null},setup(e){return(t,n)=>{var o,a,c;const i=Gs("tooltip");return((o=e.task.result)==null?void 0:o.state)==="pass"?(de(),ke("div",e8e)):X(Eh)(e.task)?Fn((de(),ke("div",t8e,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):((a=e.task.result)==null?void 0:a.state)==="fail"?(de(),ke("div",n8e)):e.task.mode==="todo"?Fn((de(),ke("div",r8e,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((c=e.task.result)==null?void 0:c.state)==="skip"?Fn((de(),ke("div",i8e,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(de(),ke("div",s8e))}}});function o8e(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 a8e(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 u8e(e){const t=e.map(i=>a8e(i)),n=o8e(t);return t.map(({raw:i,id:o})=>ES({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 l8e(e,t){return ES({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 c8e(e,t){if(!e)return ZD({});const n=u8e(e.externalized),i=e.inlined.map(h=>l8e(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 G3e({source:g,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return ZD({nodes:o,links:c})}const f8e={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},h8e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},d8e={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},p8e={class:"flex text-lg"},g8e={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},v8e={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},m8e={key:0,"flex-1":""},y8e=st({__name:"FileDetails",setup(e){const t=Qe({externalized:[],graph:{},inlined:[]}),n=Qe({nodes:[],links:[]}),i=Qe(!1),o=Qe(!1);jB(Ot,async(p,g)=>{p&&p.filepath!==(g==null?void 0:g.filepath)&&(t.value=await rn.rpc.getModuleGraph(p.filepath),n.value=c8e(t.value,p.filepath))},{debounce:100,immediate:!0});const a=()=>{var g;const p=(g=Ot.value)==null?void 0:g.filepath;p&&fetch(`/__open-in-editor?file=${encodeURIComponent(p)}`)},c=p=>{p==="graph"&&(o.value=!0),Nr.value=p},h=xe(()=>{var p;return((p=b_.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=Bv,m=xa,A=J3e,$=Oke,L=Fke,C=wke,x=Gs("tooltip");return X(Ot)?(de(),ke("div",f8e,[ve("div",null,[ve("div",h8e,[Me(y,{task:X(Ot)},null,8,["task"]),ve("div",d8e,Xe((S=X(Ot))==null?void 0:S.filepath),1),ve("div",p8e,[X(Ai)?ut("",!0):Fn((de(),et(m,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=X(Ot))!=null&&O.filepath),onClick:a},null,8,["disabled"])),[[x,"Open in editor",void 0,{bottom:!0}]])])]),ve("div",g8e,[ve("button",{"tab-button":"",class:yt({"tab-button-active":X(Nr)==null}),onClick:g[0]||(g[0]=B=>c(null))}," Report ",2),ve("button",{"tab-button":"",class:yt({"tab-button-active":X(Nr)==="graph"}),onClick:g[1]||(g[1]=B=>c("graph"))}," Module Graph ",2),X(Ai)?ut("",!0):(de(),ke("button",{key:0,"tab-button":"",class:yt({"tab-button-active":X(Nr)==="editor"}),onClick:g[2]||(g[2]=B=>c("editor"))},Xe(X(i)?"* ":"")+"Code ",3)),ve("button",{"tab-button":"",class:yt({"tab-button-active":X(Nr)==="console",op20:X(Nr)!=="console"&&X(h)===0}),onClick:g[3]||(g[3]=B=>c("console"))}," Console ("+Xe(X(h))+") ",3)])]),ve("div",v8e,[X(o)?(de(),ke("div",m8e,[Fn(Me(A,{graph:X(n)},null,8,["graph"]),[[iE,X(Nr)==="graph"]])])):ut("",!0),X(Nr)==="editor"?(de(),et($,{key:X(Ot).filepath,file:X(Ot),onDraft:d},null,8,["file"])):X(Nr)==="console"?(de(),et(L,{key:2,file:X(Ot)},null,8,["file"])):X(Nr)?ut("",!0):(de(),et(C,{key:3,file:X(Ot)},null,8,["file"]))])])):ut("",!0)}}}),b8e=["open"],w8e=ve("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),D8e=ve("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),A8e=st({__name:"DetailsPanel",props:{color:null},setup(e){const t=Qe(!0);return(n,i)=>(de(),ke("div",{open:X(t),class:"details-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[ve("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"},[w8e,Er(n.$slots,"summary",{open:X(t)}),D8e],2),Er(n.$slots,"default")],40,b8e))}});const E8e={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},x8e=["text"],C8e={"text-sm":"",truncate:"","font-light":""},_8e={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},S8e=st({__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=Bv;return e.task?(de(),ke("div",E8e,[Me(a,{task:e.task,"mr-2":""},null,8,["task"]),ve("div",{flex:"","items-end":"","gap-2":"",text:((h=(c=e.task)==null?void 0:c.result)==null?void 0:h.state)==="fail"?"red-500":""},[ve("span",C8e,Xe(e.task.name),1),typeof X(n)=="number"?(de(),ke("span",_8e,Xe(X(n)>0?X(n):"< 1")+"ms ",1)):ut("",!0)],8,x8e)])):ut("",!0)}}});function F8e(e){return Object.hasOwnProperty.call(e,"tasks")}function xS(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}const $8e={key:1},T8e={inheritAttrs:!1},k8e=st({...T8e,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(e){return(t,n)=>{const i=S8e,o=Us("TaskTree",!0);return de(),ke(ft,null,[!e.search||X(xS)(e.task.name,e.search)?(de(),et(i,es({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"])):ut("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(de(),ke("div",$8e,[(de(!0),ke(ft,null,yr(e.task.tasks,a=>(de(),et(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))])):ut("",!0)],64)}}}),L8e={h:"full",flex:"~ col"},B8e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},O8e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},P8e=ve("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),N8e=["op"],I8e={class:"scrolls","flex-auto":"","py-1":""},R8e={"text-red5":""},M8e={"text-yellow5":""},z8e={"text-green5":""},U8e={class:"text-purple5:50"},H8e={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},q8e=ve("div",{op30:""}," No matched test ",-1),j8e={inheritAttrs:!1},CS=st({...j8e,__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=Qe(""),o=Qe(),a=xe(()=>i.value.trim()!==""),c=(C,x)=>{let S=!1;for(let O=0;O<C.length;O++){const B=C[O];if(xS(B.name,x)){S=!0;break}if(F8e(B)&&B.tasks&&(S=c(B.tasks,x),S))break}return S},h=xe(()=>i.value.trim()?n.tasks.filter(C=>c([C],i.value)):n.tasks),d=xe(()=>a.value?h.value.map(C=>bf(C.id)).filter(Boolean):[]),p=xe(()=>h.value.filter(C=>{var x;return((x=C.result)==null?void 0:x.state)==="fail"})),g=xe(()=>h.value.filter(C=>{var x;return((x=C.result)==null?void 0:x.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))),A=LB(m,250),$=C=>{var x;i.value="",C&&((x=o.value)==null||x.focus())},L=xe(()=>i.value==="");return(C,x)=>{const S=xa,O=k8e,B=A8e,k=Gs("tooltip");return de(),ke("div",L8e,[ve("div",null,[ve("div",B8e,[Er(C.$slots,"header",{filteredTests:X(a)?X(d):void 0})]),ve("div",O8e,[P8e,Fn(ve("input",{ref_key:"searchBox",ref:o,"onUpdate:modelValue":x[0]||(x[0]=M=>Pt(i)?i.value=M:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:X(i).length?"100":"50",onKeydown:[x[1]||(x[1]=Ap(M=>$(!1),["esc"])),x[2]||(x[2]=Ap(M=>t("run",X(a)?X(d):void 0),["enter"]))]},null,40,N8e),[[ik,X(i)]]),Fn(Me(S,{disabled:X(L),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:x[3]||(x[3]=M=>$(!0))},null,8,["disabled"]),[[k,"Clear search",void 0,{bottom:!0}]])])]),ve("div",I8e,[e.groupByType?(de(),ke(ft,{key:0},[X(p).length?(de(),et(B,{key:0},{summary:Ze(()=>[ve("div",R8e," FAIL ("+Xe(X(p).length)+") ",1)]),default:Ze(()=>[(de(!0),ke(ft,null,yr(X(p),M=>(de(),et(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(pi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ut("",!0),X(m).length||X(yf)==="running"?(de(),et(B,{key:1},{summary:Ze(()=>[ve("div",M8e," RUNNING ("+Xe(X(A).length)+") ",1)]),default:Ze(()=>[(de(!0),ke(ft,null,yr(X(A),M=>(de(),et(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(pi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ut("",!0),X(g).length?(de(),et(B,{key:2},{summary:Ze(()=>[ve("div",z8e," PASS ("+Xe(X(g).length)+") ",1)]),default:Ze(()=>[(de(!0),ke(ft,null,yr(X(g),M=>(de(),et(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(pi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ut("",!0),X(y).length?(de(),et(B,{key:3},{summary:Ze(()=>[ve("div",U8e," SKIP ("+Xe(X(y).length)+") ",1)]),default:Ze(()=>[(de(!0),ke(ft,null,yr(X(y),M=>(de(),et(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(pi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ut("",!0)],64)):(de(!0),ke(ft,{key:1},yr(X(h),M=>(de(),et(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(pi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),X(a)&&X(h).length===0?(de(),ke("div",H8e,[q8e,ve("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:x[4]||(x[4]=M=>$(!0))}," Clear ",32)])):ut("",!0)])])}}}),V8e={key:0,"h-full":""},W8e={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},G8e={class:"flex text-lg"},K8e=st({__name:"Suites",setup(e){const t=xe(()=>{var o;return(o=Ot.value)==null?void 0:o.name.split(/\//g).pop()}),n=xe(()=>{var o,a;return((o=Ot.value)==null?void 0:o.tasks)&&Eh((a=Ot.value)==null?void 0:a.tasks)}),i=()=>Ot.value&&rn.rpc.updateSnapshot(Ot.value);return(o,a)=>{const c=Bv,h=xa,d=CS,p=Gs("tooltip");return X(Ot)?(de(),ke("div",V8e,[Me(d,{tasks:X(Ot).tasks,nested:!0},{header:Ze(()=>[Me(c,{"mx-1":"",task:X(Ot)},null,8,["task"]),ve("span",W8e,Xe(X(t)),1),ve("div",G8e,[X(n)&&!X(Ai)?Fn((de(),et(h,{key:0,icon:"i-carbon-result-old",onClick:a[0]||(a[0]=g=>i())},null,512)),[[p,`Update failed snapshot(s) of ${X(Ot).name}`,void 0,{bottom:!0}]]):ut("",!0),X(Ai)?ut("",!0):Fn((de(),et(h,{key:1,icon:"i-carbon-play",onClick:a[1]||(a[1]=g=>X(uW)())},null,512)),[[p,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ut("",!0)}}}),_f=xe(()=>Hn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),Sf=xe(()=>Hn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),Ov=xe(()=>Hn.value.filter(e=>e.mode==="skip"||e.mode==="todo"));xe(()=>Hn.value.filter(e=>!_f.value.includes(e)&&!Sf.value.includes(e)&&!Ov.value.includes(e)));xe(()=>Ov.value.filter(e=>e.mode==="skip"));const JD=xe(()=>Hn.value.filter(Eh));xe(()=>Ov.value.filter(e=>e.mode==="todo"));const Q8e=xe(()=>yf.value==="idle"),wl=xe(()=>Pv(Hn.value)),_S=xe(()=>wl.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),SS=xe(()=>wl.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),FS=xe(()=>wl.value.filter(e=>e.mode==="skip"||e.mode==="todo")),X8e=xe(()=>FS.value.filter(e=>e.mode==="skip")),Y8e=xe(()=>FS.value.filter(e=>e.mode==="todo"));xe(()=>_S.value.length+SS.value.length);const Z8e=xe(()=>{const e=Pv(wl.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 J8e(e){return e=e||[],Array.isArray(e)?e:[e]}function eA(e){return e.type==="test"||e.type==="benchmark"||e.type==="typecheck"}function Pv(e){return J8e(e).flatMap(t=>eA(t)?[t]:t.tasks.flatMap(n=>eA(n)?[n]:Pv(n)))}const Qr=e=>(LA("data-v-6679a536"),e=e(),BA(),e),eNe={"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:""},tNe=Qr(()=>ve("div",{"i-carbon-document":""},null,-1)),nNe=Qr(()=>ve("div",null,"Files",-1)),rNe={class:"number","data-testid":"num-files"},iNe=Qr(()=>ve("div",{"i-carbon-checkmark":""},null,-1)),sNe=Qr(()=>ve("div",null,"Pass",-1)),oNe={class:"number"},aNe=Qr(()=>ve("div",{"i-carbon-close":""},null,-1)),uNe=Qr(()=>ve("div",null," Fail ",-1)),lNe={class:"number","text-red5":""},cNe=Qr(()=>ve("div",{"i-carbon-compare":""},null,-1)),fNe=Qr(()=>ve("div",null," Snapshot Fail ",-1)),hNe={class:"number","text-red5":""},dNe=Qr(()=>ve("div",{"i-carbon-timer":""},null,-1)),pNe=Qr(()=>ve("div",null,"Time",-1)),gNe={class:"number","data-testid":"run-time"},vNe=st({__name:"TestFilesEntry",setup(e){return(t,n)=>(de(),ke("div",eNe,[tNe,nNe,ve("div",rNe,Xe(X(Hn).length),1),X(Sf).length?(de(),ke(ft,{key:0},[iNe,sNe,ve("div",oNe,Xe(X(Sf).length),1)],64)):ut("",!0),X(_f).length?(de(),ke(ft,{key:1},[aNe,uNe,ve("div",lNe,Xe(X(_f).length),1)],64)):ut("",!0),X(JD).length?(de(),ke(ft,{key:2},[cNe,fNe,ve("div",hNe,Xe(X(JD).length),1)],64)):ut("",!0),dNe,pNe,ve("div",gNe,Xe(X(Z8e)),1)]))}});const mNe=Ks(vNe,[["__scopeId","data-v-6679a536"]]),yNe={"p-2":"","text-center":"",flex:""},bNe={"text-4xl":"","min-w-2em":""},wNe={"text-md":""},DNe=st({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(e){return(t,n)=>(de(),ke("div",yNe,[ve("div",null,[ve("div",bNe,[Er(t.$slots,"body")]),ve("div",wNe,[Er(t.$slots,"header")])])]))}}),ANe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},ENe=st({__name:"TestsEntry",setup(e){const t=xe(()=>wl.value.length),n=xe(()=>SS.value.length),i=xe(()=>_S.value.length),o=xe(()=>X8e.value.length),a=xe(()=>Y8e.value.length);return xe(()=>X(t)-i.value-n.value),(c,h)=>{const d=DNe;return de(),ke("div",ANe,[Me(d,{"text-green5":"","data-testid":"pass-entry"},{header:Ze(()=>[Cn(" Pass ")]),body:Ze(()=>[Cn(Xe(X(n)),1)]),_:1}),Me(d,{class:yt({"text-red5":X(i),op50:!X(i)}),"data-testid":"fail-entry"},{header:Ze(()=>[Cn(" Fail ")]),body:Ze(()=>[Cn(Xe(X(i)),1)]),_:1},8,["class"]),X(o)?(de(),et(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Ze(()=>[Cn(" Skip ")]),body:Ze(()=>[Cn(Xe(X(o)),1)]),_:1})):ut("",!0),X(a)?(de(),et(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Ze(()=>[Cn(" Todo ")]),body:Ze(()=>[Cn(Xe(X(a)),1)]),_:1})):ut("",!0),Me(d,{tail:!0,"data-testid":"total-entry"},{header:Ze(()=>[Cn(" Total ")]),body:Ze(()=>[Cn(Xe(X(t)),1)]),_:1})])}}}),xNe={},CNe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},_Ne={"aria-labelledby":"tests",m:"y-4 x-2"};function SNe(e,t){const n=ENe,i=mNe;return de(),ke("div",CNe,[ve("section",_Ne,[Me(n)]),Me(i)])}const FNe=Ks(xNe,[["render",SNe]]),$Ne={},TNe={h:"full",flex:"~ col"},kNe=ve("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ve("div",{class:"i-carbon-dashboard"}),ve("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),LNe={class:"scrolls","flex-auto":"","py-1":""};function BNe(e,t){const n=FNe;return de(),ke("div",TNe,[kNe,ve("div",LNe,[Me(n)])])}const ONe=Ks($Ne,[["render",BNe]]),PNe="/__vitest__/favicon.svg",Ff=Qe(),xu=Qe(!0);function NNe(){const e=pi.value;if(e&&e.length>0){const t=bf(e);t?(Ff.value=t,xu.value=!1):VB(()=>rn.state.getFiles(),()=>{Ff.value=bf(e),xu.value=!1})}return xu}function tA(e){xu.value=e,e&&(Ff.value=void 0,pi.value="")}const INe=ve("img",{"w-6":"","h-6":"",src:PNe,alt:"Vitest logo"},null,-1),RNe=ve("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),MNe={class:"flex text-lg"},zNe=st({__name:"Navigation",setup(e){const t=xe(()=>Hn.value&&Eh(Hn.value)),n=()=>rn.rpc.updateSnapshot();function i(a){pi.value=a.id,Ff.value=bf(a.id),tA(!1)}const o=xe(()=>_h.value?"light":"dark");return(a,c)=>{const h=xa,d=CS,p=Gs("tooltip");return de(),et(d,{border:"r base",tasks:X(Hn),"on-item-click":i,"group-by-type":!0,onRun:X(yD)},{header:Ze(({filteredTests:g})=>[INe,RNe,ve("div",MNe,[Fn(Me(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:c[0]||(c[0]=y=>X(tA)(!0))},null,512),[[iE,!X(xu)],[p,"Dashboard",void 0,{bottom:!0}]]),X(t)&&!X(Ai)?Fn((de(),et(h,{key:0,icon:"i-carbon-result-old",onClick:c[1]||(c[1]=y=>n())},null,512)),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ut("",!0),X(Ai)?ut("",!0):Fn((de(),et(h,{key:1,disabled:(g==null?void 0:g.length)===0,icon:"i-carbon-play",onClick:y=>X(yD)(g)},null,8,["disabled","onClick"])),[[p,g?g.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),Fn(Me(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:c[2]||(c[2]=y=>X(pke)())},null,512),[[p,`Toggle to ${X(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),UNe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},HNe=st({__name:"ProgressBar",setup(e){const{width:t}=OO(),n=xe(()=>Hn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Q8e.value?null:"in-progress"),i=xe(()=>Hn.value.length),o=xe(()=>Sf.value.length),a=xe(()=>_f.value.length),c=xe(()=>{const g=X(i);return g>0?t.value*o.value/g:0}),h=xe(()=>{const g=X(i);return g>0?t.value*a.value/g:0}),d=xe(()=>X(i)-a.value-o.value),p=xe(()=>{const g=X(i);return g>0?t.value*d.value/g:0});return(g,y)=>(de(),ke("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(X(n))},[ve("div",UNe,[ve("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:yt(X(n)),style:zn(`width: ${X(h)}px;`)}," ",6),ve("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:yt(X(n)),style:zn(`left: ${X(h)}px; width: ${X(c)}px;`)}," ",6),ve("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:yt(X(n)),style:zn(`left: ${X(c)+X(h)}px; width: ${X(p)}px;`)}," ",6)])],2))}});const qNe=Ks(HNe,[["__scopeId","data-v-f967c1fe"]]),nA={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 Wu("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},jNe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},VNe={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 WNe(e,t,n,i,o,a){return de(),ke("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=c=>a.onPaneClick(c,e._.uid)),style:zn(e.style)},[Er(e.$slots,"default")],4)}const Lc=jNe(VNe,[["render",WNe]]),GNe={"h-screen":"","w-screen":"",overflow:"hidden"},KNe=st({__name:"index",setup(e){const t=NNe(),n=Qn([33,67]),i=Qn([33,67]),o=Q1(h=>{h.forEach((d,p)=>{n[p]=d.size})},0),a=Q1(h=>{h.forEach((d,p)=>{i[p]=d.size})},0),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=qNe,g=zNe,y=ONe,m=K8e,A=y8e,$=fW;return de(),ke(ft,null,[Me(p),ve("div",GNe,[Me(X(nA),{class:"pt-4px",onResized:X(o),onReady:c},{default:Ze(()=>[Me(X(Lc),{size:X(n)[0]},{default:Ze(()=>[Me(g)]),_:1},8,["size"]),Me(X(Lc),{size:X(n)[1]},{default:Ze(()=>[Me(k0,null,{default:Ze(()=>[X(t)?(de(),et(y,{key:"summary"})):(de(),et(X(nA),{key:"detail",onResized:X(a)},{default:Ze(()=>[Me(X(Lc),{size:X(i)[0]},{default:Ze(()=>[Me(m)]),_:1},8,["size"]),Me(X(Lc),{size:X(i)[1]},{default:Ze(()=>[Me(A)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Me($)],64)}}}),QNe=[{name:"index",path:"/",component:KNe,props:!0}];const XNe={tooltip:xB};ME.options.instantMove=!0;ME.options.distance=10;const YNe=()=>dL({history:$k("/__vitest__/"),routes:QNe}),ZNe=[YNe],Nv=sE(fk);ZNe.forEach(e=>{Nv.use(e())});Object.entries(XNe).forEach(([e,t])=>{Nv.directive(e,t)});Nv.mount("#app");
|