@vitest/browser 0.29.8 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/__vitest__/assets/index-561b5dad.css +1 -0
- package/dist/client/__vitest__/assets/index-d949d382.js +43 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/assets/{index-a25c0b91.js → index-8a9c2d7a.js} +80 -58
- package/dist/client/index.html +1 -1
- package/dist/index.js +1 -0
- package/package.json +8 -13
- package/dist/client/__vitest__/assets/index-57d38fc4.css +0 -1
- package/dist/client/__vitest__/assets/index-84967894.js +0 -37
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var e$=Object.defineProperty;var t$=(e,t,n)=>t in e?e$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fi=(e,t,n)=>(t$(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 C0(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o<i.length;o++)n[i[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Un(e){if(qe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=Vt(i)?s$(i):Un(i);if(o)for(const a in o)t[a]=o[a]}return t}else{if(Vt(e))return e;if(St(e))return e}}const n$=/;(?![^(]*\))/g,r$=/:([^]+)/,i$=/\/\*.*?\*\//gs;function s$(e){const t={};return e.replace(i$,"").split(n$).forEach(n=>{if(n){const i=n.split(r$);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function yt(e){let t="";if(Vt(e))t=e;else if(qe(e))for(let n=0;n<e.length;n++){const i=yt(e[n]);i&&(t+=i+" ")}else if(St(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const o$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a$=C0(o$);function EA(e){return!!e||e===""}const Ye=e=>Vt(e)?e:e==null?"":qe(e)||St(e)&&(e.toString===FA||!Ve(e.toString))?JSON.stringify(e,CA,2):String(e),CA=(e,t)=>t&&t.__v_isRef?CA(e,t.value):Go(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:_A(t)?{[`Set(${t.size})`]:[...t.values()]}:St(t)&&!qe(t)&&!$A(t)?String(t):t,Ct={},Wo=[],Cr=()=>{},u$=()=>!1,l$=/^on[^a-z]/,Mf=e=>l$.test(e),_0=e=>e.startsWith("onUpdate:"),fn=Object.assign,S0=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c$=Object.prototype.hasOwnProperty,it=(e,t)=>c$.call(e,t),qe=Array.isArray,Go=e=>zf(e)==="[object Map]",_A=e=>zf(e)==="[object Set]",Ve=e=>typeof e=="function",Vt=e=>typeof e=="string",F0=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",SA=e=>St(e)&&Ve(e.then)&&Ve(e.catch),FA=Object.prototype.toString,zf=e=>FA.call(e),f$=e=>zf(e).slice(8,-1),$A=e=>zf(e)==="[object Object]",$0=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Uc=C0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Uf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},h$=/-(\w)/g,Kr=Uf(e=>e.replace(h$,(t,n)=>n?n.toUpperCase():"")),d$=/\B([A-Z])/g,eo=Uf(e=>e.replace(d$,"-$1").toLowerCase()),Hf=Uf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pd=Uf(e=>e?`on${Hf(e)}`:""),Ou=(e,t)=>!Object.is(e,t),Hc=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},of=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},TA=e=>{const t=Vt(e)?Number(e):NaN;return isNaN(t)?e:t};let Jy;const p$=()=>Jy||(Jy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Kn;class g${constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kn,!t&&Kn&&(this.index=(Kn.scopes||(Kn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Kn;try{return Kn=this,t()}finally{Kn=n}}}on(){Kn=this}off(){Kn=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function v$(e,t=Kn){t&&t.active&&t.effects.push(e)}function kA(){return Kn}function m$(e){Kn&&Kn.cleanups.push(e)}const T0=e=>{const t=new Set(e);return t.w=0,t.n=0,t},LA=e=>(e.w&ls)>0,BA=e=>(e.n&ls)>0,y$=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ls},b$=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)&&!BA(o)?o.delete(e):t[n++]=o,o.w&=~ls,o.n&=~ls}t.length=n}},af=new WeakMap;let Du=0,ls=1;const wp=30;let wr;const Vs=Symbol(""),Dp=Symbol("");class k0{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,v$(this,i)}run(){if(!this.active)return this.fn();let t=wr,n=os;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=wr,wr=this,os=!0,ls=1<<++Du,Du<=wp?y$(this):e1(this),this.fn()}finally{Du<=wp&&b$(this),ls=1<<--Du,wr=this.parent,os=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){wr===this?this.deferStop=!0:this.active&&(e1(this),this.onStop&&this.onStop(),this.active=!1)}}function e1(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let os=!0;const OA=[];function ba(){OA.push(os),os=!1}function wa(){const e=OA.pop();os=e===void 0?!0:e}function jn(e,t,n){if(os&&wr){let i=af.get(e);i||af.set(e,i=new Map);let o=i.get(n);o||i.set(n,o=T0()),PA(o)}}function PA(e,t){let n=!1;Du<=wp?BA(e)||(e.n|=ls,n=!LA(e)):n=!e.has(wr),n&&(e.add(wr),wr.deps.push(e))}function Ci(e,t,n,i,o,a){const c=af.get(e);if(!c)return;let h=[];if(t==="clear")h=[...c.values()];else if(n==="length"&&qe(e)){const d=Number(i);c.forEach((p,g)=>{(g==="length"||g>=d)&&h.push(p)})}else switch(n!==void 0&&h.push(c.get(n)),t){case"add":qe(e)?$0(n)&&h.push(c.get("length")):(h.push(c.get(Vs)),Go(e)&&h.push(c.get(Dp)));break;case"delete":qe(e)||(h.push(c.get(Vs)),Go(e)&&h.push(c.get(Dp)));break;case"set":Go(e)&&h.push(c.get(Vs));break}if(h.length===1)h[0]&&Ap(h[0]);else{const d=[];for(const p of h)p&&d.push(...p);Ap(T0(d))}}function Ap(e,t){const n=qe(e)?e:[...e];for(const i of n)i.computed&&t1(i);for(const i of n)i.computed||t1(i)}function t1(e,t){(e!==wr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function w$(e,t){var n;return(n=af.get(e))===null||n===void 0?void 0:n.get(t)}const D$=C0("__proto__,__v_isRef,__isVue"),NA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(F0)),A$=L0(),x$=L0(!1,!0),E$=L0(!0),n1=C$();function C$(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=st(this);for(let a=0,c=this.length;a<c;a++)jn(i,"get",a+"");const o=i[t](...n);return o===-1||o===!1?i[t](...n.map(st)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ba();const i=st(this)[t].apply(this,n);return wa(),i}}),e}function _$(e){const t=st(this);return jn(t,"has",e),t.hasOwnProperty(e)}function L0(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?H$:UA:t?zA:MA).get(i))return i;const c=qe(i);if(!e){if(c&&it(n1,o))return Reflect.get(n1,o,a);if(o==="hasOwnProperty")return _$}const h=Reflect.get(i,o,a);return(F0(o)?NA.has(o):D$(o))||(e||jn(i,"get",o),t)?h:Nt(h)?c&&$0(o)?h:h.value:St(h)?e?P0(h):Zn(h):h}}const S$=IA(),F$=IA(!0);function IA(e=!1){return function(n,i,o,a){let c=n[i];if(ia(c)&&Nt(c)&&!Nt(o))return!1;if(!e&&(!uf(o)&&!ia(o)&&(c=st(c),o=st(o)),!qe(n)&&Nt(c)&&!Nt(o)))return c.value=o,!0;const h=qe(n)&&$0(i)?Number(i)<n.length:it(n,i),d=Reflect.set(n,i,o,a);return n===st(a)&&(h?Ou(o,c)&&Ci(n,"set",i,o):Ci(n,"add",i,o)),d}}function $$(e,t){const n=it(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&Ci(e,"delete",t,void 0),i}function T$(e,t){const n=Reflect.has(e,t);return(!F0(t)||!NA.has(t))&&jn(e,"has",t),n}function k$(e){return jn(e,"iterate",qe(e)?"length":Vs),Reflect.ownKeys(e)}const RA={get:A$,set:S$,deleteProperty:$$,has:T$,ownKeys:k$},L$={get:E$,set(e,t){return!0},deleteProperty(e,t){return!0}},B$=fn({},RA,{get:x$,set:F$}),B0=e=>e,qf=e=>Reflect.getPrototypeOf(e);function cc(e,t,n=!1,i=!1){e=e.__v_raw;const o=st(e),a=st(t);n||(t!==a&&jn(o,"get",t),jn(o,"get",a));const{has:c}=qf(o),h=i?B0:n?R0:Pu;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 fc(e,t=!1){const n=this.__v_raw,i=st(n),o=st(e);return t||(e!==o&&jn(i,"has",e),jn(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function hc(e,t=!1){return e=e.__v_raw,!t&&jn(st(e),"iterate",Vs),Reflect.get(e,"size",e)}function r1(e){e=st(e);const t=st(this);return qf(t).has.call(t,e)||(t.add(e),Ci(t,"add",e,e)),this}function i1(e,t){t=st(t);const n=st(this),{has:i,get:o}=qf(n);let a=i.call(n,e);a||(e=st(e),a=i.call(n,e));const c=o.call(n,e);return n.set(e,t),a?Ou(t,c)&&Ci(n,"set",e,t):Ci(n,"add",e,t),this}function s1(e){const t=st(this),{has:n,get:i}=qf(t);let o=n.call(t,e);o||(e=st(e),o=n.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return o&&Ci(t,"delete",e,void 0),a}function o1(){const e=st(this),t=e.size!==0,n=e.clear();return t&&Ci(e,"clear",void 0,void 0),n}function dc(e,t){return function(i,o){const a=this,c=a.__v_raw,h=st(c),d=t?B0:e?R0:Pu;return!e&&jn(h,"iterate",Vs),c.forEach((p,g)=>i.call(o,d(p),d(g),a))}}function pc(e,t,n){return function(...i){const o=this.__v_raw,a=st(o),c=Go(a),h=e==="entries"||e===Symbol.iterator&&c,d=e==="keys"&&c,p=o[e](...i),g=n?B0:t?R0:Pu;return!t&&jn(a,"iterate",d?Dp:Vs),{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 Gi(e){return function(...t){return e==="delete"?!1:this}}function O$(){const e={get(a){return cc(this,a)},get size(){return hc(this)},has:fc,add:r1,set:i1,delete:s1,clear:o1,forEach:dc(!1,!1)},t={get(a){return cc(this,a,!1,!0)},get size(){return hc(this)},has:fc,add:r1,set:i1,delete:s1,clear:o1,forEach:dc(!1,!0)},n={get(a){return cc(this,a,!0)},get size(){return hc(this,!0)},has(a){return fc.call(this,a,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:dc(!0,!1)},i={get(a){return cc(this,a,!0,!0)},get size(){return hc(this,!0)},has(a){return fc.call(this,a,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:dc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=pc(a,!1,!1),n[a]=pc(a,!0,!1),t[a]=pc(a,!1,!0),i[a]=pc(a,!0,!0)}),[e,n,t,i]}const[P$,N$,I$,R$]=O$();function O0(e,t){const n=t?e?R$:I$:e?N$:P$;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 M$={get:O0(!1,!1)},z$={get:O0(!1,!0)},U$={get:O0(!0,!1)},MA=new WeakMap,zA=new WeakMap,UA=new WeakMap,H$=new WeakMap;function q$(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function j$(e){return e.__v_skip||!Object.isExtensible(e)?0:q$(f$(e))}function Zn(e){return ia(e)?e:N0(e,!1,RA,M$,MA)}function V$(e){return N0(e,!1,B$,z$,zA)}function P0(e){return N0(e,!0,L$,U$,UA)}function N0(e,t,n,i,o){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const c=j$(e);if(c===0)return e;const h=new Proxy(e,c===2?i:n);return o.set(e,h),h}function Ko(e){return ia(e)?Ko(e.__v_raw):!!(e&&e.__v_isReactive)}function ia(e){return!!(e&&e.__v_isReadonly)}function uf(e){return!!(e&&e.__v_isShallow)}function HA(e){return Ko(e)||ia(e)}function st(e){const t=e&&e.__v_raw;return t?st(t):e}function I0(e){return of(e,"__v_skip",!0),e}const Pu=e=>St(e)?Zn(e):e,R0=e=>St(e)?P0(e):e;function qA(e){os&&wr&&(e=st(e),PA(e.dep||(e.dep=T0())))}function jA(e,t){e=st(e);const n=e.dep;n&&Ap(n)}function Nt(e){return!!(e&&e.__v_isRef===!0)}function Xe(e){return VA(e,!1)}function Da(e){return VA(e,!0)}function VA(e,t){return Nt(e)?e:new W$(e,t)}class W${constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:st(t),this._value=n?t:Pu(t)}get value(){return qA(this),this._value}set value(t){const n=this.__v_isShallow||uf(t)||ia(t);t=n?t:st(t),Ou(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Pu(t),jA(this))}}function X(e){return Nt(e)?e.value:e}const G$={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Nt(o)&&!Nt(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function WA(e){return Ko(e)?e:new Proxy(e,G$)}function K$(e){const t=qe(e)?new Array(e.length):{};for(const n in e)t[n]=M0(e,n);return t}class Q${constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return w$(st(this._object),this._key)}}function M0(e,t,n){const i=e[t];return Nt(i)?i:new Q$(e,t,n)}var GA;class X${constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[GA]=!1,this._dirty=!0,this.effect=new k0(t,()=>{this._dirty||(this._dirty=!0,jA(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=st(this);return qA(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}GA="__v_isReadonly";function Y$(e,t,n=!1){let i,o;const a=Ve(e);return a?(i=e,o=Cr):(i=e.get,o=e.set),new X$(i,o,a||!o,n)}function as(e,t,n,i){let o;try{o=i?e(...i):e()}catch(a){Yu(a,t,n)}return o}function lr(e,t,n,i){if(Ve(e)){const a=as(e,t,n,i);return a&&SA(a)&&a.catch(c=>{Yu(c,t,n)}),a}const o=[];for(let a=0;a<e.length;a++)o.push(lr(e[a],t,n,i));return o}function Yu(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){as(d,null,10,[e,c,h]);return}}Z$(e,n,o,i)}function Z$(e,t,n,i=!0){console.error(e)}let Nu=!1,xp=!1;const mn=[];let Ur=0;const Qo=[];let vi=null,Ns=0;const KA=Promise.resolve();let z0=null;function Aa(e){const t=z0||KA;return e?t.then(this?e.bind(this):e):t}function J$(e){let t=Ur+1,n=mn.length;for(;t<n;){const i=t+n>>>1;Iu(mn[i])<e?t=i+1:n=i}return t}function U0(e){(!mn.length||!mn.includes(e,Nu&&e.allowRecurse?Ur+1:Ur))&&(e.id==null?mn.push(e):mn.splice(J$(e.id),0,e),QA())}function QA(){!Nu&&!xp&&(xp=!0,z0=KA.then(ZA))}function eT(e){const t=mn.indexOf(e);t>Ur&&mn.splice(t,1)}function XA(e){qe(e)?Qo.push(...e):(!vi||!vi.includes(e,e.allowRecurse?Ns+1:Ns))&&Qo.push(e),QA()}function a1(e,t=Nu?Ur+1:0){for(;t<mn.length;t++){const n=mn[t];n&&n.pre&&(mn.splice(t,1),t--,n())}}function YA(e){if(Qo.length){const t=[...new Set(Qo)];if(Qo.length=0,vi){vi.push(...t);return}for(vi=t,vi.sort((n,i)=>Iu(n)-Iu(i)),Ns=0;Ns<vi.length;Ns++)vi[Ns]();vi=null,Ns=0}}const Iu=e=>e.id==null?1/0:e.id,tT=(e,t)=>{const n=Iu(e)-Iu(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ZA(e){xp=!1,Nu=!0,mn.sort(tT);const t=Cr;try{for(Ur=0;Ur<mn.length;Ur++){const n=mn[Ur];n&&n.active!==!1&&as(n,null,14)}}finally{Ur=0,mn.length=0,YA(),Nu=!1,z0=null,(mn.length||Qo.length)&&ZA()}}function nT(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=>Vt(A)?A.trim():A)),y&&(o=n.map(bp))}let h,d=i[h=Pd(t)]||i[h=Pd(Kr(t))];!d&&a&&(d=i[h=Pd(eo(t))]),d&&lr(d,e,6,o);const p=i[h+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[h])return;e.emitted[h]=!0,lr(p,e,6,o)}}function JA(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=JA(p,t,!0);g&&(h=!0,fn(c,g))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!a&&!h?(St(e)&&i.set(e,null),null):(qe(a)?a.forEach(d=>c[d]=null):fn(c,a),St(e)&&i.set(e,c),c)}function jf(e,t){return!e||!Mf(t)?!1:(t=t.slice(2).replace(/Once$/,""),it(e,t[0].toLowerCase()+t.slice(1))||it(e,eo(t))||it(e,t))}let cn=null,Vf=null;function lf(e){const t=cn;return cn=e,Vf=e&&e.type.__scopeId||null,t}function ex(e){Vf=e}function tx(){Vf=null}const rT=e=>Je;function Je(e,t=cn,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&y1(-1);const a=lf(t);let c;try{c=e(...o)}finally{lf(a),i._d&&y1(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function Nd(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 E,C;const S=lf(e);try{if(n.shapeFlag&4){const B=o||i;E=br(g.call(B,B,y,a,A,m,$)),C=d}else{const B=t;E=br(B.length>1?B(a,{attrs:d,slots:h,emit:p}):B(a,null)),C=t.props?d:sT(d)}}catch(B){_u.length=0,Yu(B,e,1),E=Me(Hn)}let O=E;if(C&&L!==!1){const B=Object.keys(C),{shapeFlag:k}=O;B.length&&k&7&&(c&&B.some(_0)&&(C=oT(C,c)),O=cs(O,C))}return n.dirs&&(O=cs(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),E=O,lf(S),E}function iT(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Mu(i)){if(i.type!==Hn||i.children==="v-if"){if(t)return;t=i}}else return}return t}const sT=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mf(n))&&((t||(t={}))[n]=e[n]);return t},oT=(e,t)=>{const n={};for(const i in e)(!_0(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function aT(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?u1(i,c,p):!!c;if(d&8){const g=t.dynamicProps;for(let y=0;y<g.length;y++){const m=g[y];if(c[m]!==i[m]&&!jf(p,m))return!0}}}else return(o||h)&&(!h||!h.$stable)?!0:i===c?!1:i?c?u1(i,c,p):!0:!!c;return!1}function u1(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const a=i[o];if(t[a]!==e[a]&&!jf(n,a))return!0}return!1}function H0({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const uT=e=>e.__isSuspense,lT={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,a,c,h,d,p){e==null?fT(t,n,i,o,a,c,h,d,p):hT(e,t,n,i,o,c,h,d,p)},hydrate:dT,create:q0,normalize:pT},cT=lT;function Ru(e,t){const n=e.props&&e.props[t];Ve(n)&&n()}function fT(e,t,n,i,o,a,c,h,d){const{p,o:{createElement:g}}=d,y=g("div"),m=e.suspense=q0(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?(Ru(e,"onPending"),Ru(e,"onFallback"),p(null,e.ssFallback,t,n,i,null,a,c),Xo(m,e.ssFallback)):m.resolve()}function hT(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:E,isHydrating:C}=y;if(L)y.pendingBranch=m,Hr(m,L)?(d(L,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():E&&(d($,A,n,i,o,null,a,c,h),Xo(y,A))):(y.pendingId++,C?(y.isHydrating=!1,y.activeBranch=L):p(L,o,y),y.deps=0,y.effects.length=0,y.hiddenContainer=g("div"),E?(d(null,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0?y.resolve():(d($,A,n,i,o,null,a,c,h),Xo(y,A))):$&&Hr(m,$)?(d($,m,n,i,o,y,a,c,h),y.resolve(!0)):(d(null,m,y.hiddenContainer,null,o,y,a,c,h),y.deps<=0&&y.resolve()));else if($&&Hr(m,$))d($,m,n,i,o,y,a,c,h),Xo(y,m);else if(Ru(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 q0(e,t,n,i,o,a,c,h,d,p,g=!1){const{p:y,m,um:A,n:$,o:{parentNode:L,remove:E}}=p,C=e.props?TA(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:c,container:i,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:g,isUnmounted:!1,effects:[],resolve(O=!1){const{vnode:B,activeBranch:k,pendingBranch:M,pendingId:U,effects:j,parentComponent:ne,container:ue}=S;if(S.isHydrating)S.isHydrating=!1;else if(!O){const P=k&&M.transition&&M.transition.mode==="out-in";P&&(k.transition.afterLeave=()=>{U===S.pendingId&&m(M,ue,F,0)});let{anchor:F}=S;k&&(F=$(k),A(k,ne,S,!0)),P||m(M,ue,F,0)}Xo(S,M),S.pendingBranch=null,S.isInFallback=!1;let Y=S.parent,z=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...j),z=!0;break}Y=Y.parent}z||XA(j),S.effects=[],Ru(B,"onResolve")},fallback(O){if(!S.pendingBranch)return;const{vnode:B,activeBranch:k,parentComponent:M,container:U,isSVG:j}=S;Ru(B,"onFallback");const ne=$(k),ue=()=>{S.isInFallback&&(y(null,O,U,ne,M,null,j,h,d),Xo(S,O))},Y=O.transition&&O.transition.mode==="out-in";Y&&(k.transition.afterLeave=ue),S.isInFallback=!0,A(k,M,null,!0),Y||ue()},move(O,B,k){S.activeBranch&&m(S.activeBranch,O,B,k),S.container=O},next(){return S.activeBranch&&$(S.activeBranch)},registerDep(O,B){const k=!!S.pendingBranch;k&&S.deps++;const M=O.vnode.el;O.asyncDep.catch(U=>{Yu(U,O,0)}).then(U=>{if(O.isUnmounted||S.isUnmounted||S.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:j}=O;kp(O,U,!1),M&&(j.el=M);const ne=!M&&O.subTree.el;B(O,j,L(M||O.subTree.el),M?null:$(O.subTree),S,c,d),ne&&E(ne),H0(O,j.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 dT(e,t,n,i,o,a,c,h,d){const p=t.suspense=q0(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 pT(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=l1(i?n.default:n),e.ssFallback=i?l1(n.fallback):Me(Hn)}function l1(e){let t;if(Ve(e)){const n=sa&&e._c;n&&(e._d=!1,de()),e=e(),n&&(e._d=!0,t=ar,bx())}return qe(e)&&(e=iT(e)),e=br(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function gT(e,t){t&&t.pendingBranch?qe(e)?t.effects.push(...e):t.effects.push(e):XA(e)}function Xo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,o=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=o,H0(i,o))}function qc(e,t){if(Ut){let n=Ut.provides;const i=Ut.parent&&Ut.parent.provides;i===n&&(n=Ut.provides=Object.create(i)),n[e]=t}}function xi(e,t,n=!1){const i=Ut||cn;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ve(t)?t.call(i.proxy):t}}function j0(e,t){return V0(e,null,t)}const gc={};function Zt(e,t,n){return V0(e,t,n)}function V0(e,t,{immediate:n,deep:i,flush:o,onTrack:a,onTrigger:c}=Ct){const h=kA()===(Ut==null?void 0:Ut.scope)?Ut:null;let d,p=!1,g=!1;if(Nt(e)?(d=()=>e.value,p=uf(e)):Ko(e)?(d=()=>e,i=!0):qe(e)?(g=!0,p=e.some(O=>Ko(O)||uf(O)),d=()=>e.map(O=>{if(Nt(O))return O.value;if(Ko(O))return zs(O);if(Ve(O))return as(O,h,2)})):Ve(e)?t?d=()=>as(e,h,2):d=()=>{if(!(h&&h.isUnmounted))return y&&y(),lr(e,h,3,[m])}:d=Cr,t&&i){const O=d;d=()=>zs(O())}let y,m=O=>{y=C.onStop=()=>{as(O,h,4)}},A;if(zu)if(m=Cr,t?n&&lr(t,h,3,[d(),g?[]:void 0,m]):d(),o==="sync"){const O=ak();A=O.__watcherHandles||(O.__watcherHandles=[])}else return Cr;let $=g?new Array(e.length).fill(gc):gc;const L=()=>{if(C.active)if(t){const O=C.run();(i||p||(g?O.some((B,k)=>Ou(B,$[k])):Ou(O,$)))&&(y&&y(),lr(t,h,3,[O,$===gc?void 0:g&&$[0]===gc?[]:$,m]),$=O)}else C.run()};L.allowRecurse=!!t;let E;o==="sync"?E=L:o==="post"?E=()=>In(L,h&&h.suspense):(L.pre=!0,h&&(L.id=h.uid),E=()=>U0(L));const C=new k0(d,E);t?n?L():$=C.run():o==="post"?In(C.run.bind(C),h&&h.suspense):C.run();const S=()=>{C.stop(),h&&h.scope&&S0(h.scope.effects,C)};return A&&A.push(S),S}function vT(e,t,n){const i=this.proxy,o=Vt(e)?e.includes(".")?nx(i,e):()=>i[e]:e.bind(i,i);let a;Ve(t)?a=t:(a=t.handler,n=t);const c=Ut;oa(this);const h=V0(o,a.bind(i),n);return c?oa(c):Ws(),h}function nx(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 zs(e,t){if(!St(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Nt(e))zs(e.value,t);else if(qe(e))for(let n=0;n<e.length;n++)zs(e[n],t);else if(_A(e)||Go(e))e.forEach(n=>{zs(n,t)});else if($A(e))for(const n in e)zs(e[n],t);return e}function mT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zu(()=>{e.isMounted=!0}),ax(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],yT={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},setup(e,{slots:t}){const n=Xf(),i=mT();let o;return()=>{const a=t.default&&sx(t.default(),!0);if(!a||!a.length)return;let c=a[0];if(a.length>1){for(const L of a)if(L.type!==Hn){c=L;break}}const h=st(e),{mode:d}=h;if(i.isLeaving)return Id(c);const p=c1(c);if(!p)return Id(c);const g=Ep(p,h,i,n);Cp(p,g);const y=n.subTree,m=y&&c1(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!==Hn&&(!Hr(p,m)||A)){const L=Ep(m,h,i,n);if(Cp(m,L),d==="out-in")return i.isLeaving=!0,L.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},Id(c);d==="in-out"&&p.type!==Hn&&(L.delayLeave=(E,C,S)=>{const O=ix(i,m);O[String(m.key)]=m,E._leaveCb=()=>{C(),E._leaveCb=void 0,delete g.delayedLeave},g.delayedLeave=S})}return c}}},rx=yT;function ix(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 Ep(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:E,onAfterAppear:C,onAppearCancelled:S}=t,O=String(e.key),B=ix(n,e),k=(j,ne)=>{j&&lr(j,i,9,ne)},M=(j,ne)=>{const ue=ne[1];k(j,ne),qe(j)?j.every(Y=>Y.length<=1)&&ue():j.length<=1&&ue()},U={mode:a,persisted:c,beforeEnter(j){let ne=h;if(!n.isMounted)if(o)ne=L||h;else return;j._leaveCb&&j._leaveCb(!0);const ue=B[O];ue&&Hr(e,ue)&&ue.el._leaveCb&&ue.el._leaveCb(),k(ne,[j])},enter(j){let ne=d,ue=p,Y=g;if(!n.isMounted)if(o)ne=E||d,ue=C||p,Y=S||g;else return;let z=!1;const P=j._enterCb=F=>{z||(z=!0,F?k(Y,[j]):k(ue,[j]),U.delayedLeave&&U.delayedLeave(),j._enterCb=void 0)};ne?M(ne,[j,P]):P()},leave(j,ne){const ue=String(e.key);if(j._enterCb&&j._enterCb(!0),n.isUnmounting)return ne();k(y,[j]);let Y=!1;const z=j._leaveCb=P=>{Y||(Y=!0,ne(),P?k($,[j]):k(A,[j]),j._leaveCb=void 0,B[ue]===e&&delete B[ue])};B[ue]=e,m?M(m,[j,z]):z()},clone(j){return Ep(j,t,n,i)}};return U}function Id(e){if(Wf(e))return e=cs(e),e.children=null,e}function c1(e){return Wf(e)?e.children?e.children[0]:void 0:e}function Cp(e,t){e.shapeFlag&6&&e.component?Cp(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 sx(e,t=!1,n){let i=[],o=0;for(let a=0;a<e.length;a++){let c=e[a];const h=n==null?c.key:String(n)+String(c.key!=null?c.key:a);c.type===ht?(c.patchFlag&128&&o++,i=i.concat(sx(c.children,t,h))):(t||c.type!==Hn)&&i.push(h!=null?cs(c,{key:h}):c)}if(o>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}function ot(e){return Ve(e)?{setup:e,name:e.name}:e}const Eu=e=>!!e.type.__asyncLoader,Wf=e=>e.type.__isKeepAlive;function bT(e,t){ox(e,"a",t)}function wT(e,t){ox(e,"da",t)}function ox(e,t,n=Ut){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Gf(t,i,n),n){let o=n.parent;for(;o&&o.parent;)Wf(o.parent.vnode)&&DT(i,t,n,o),o=o.parent}}function DT(e,t,n,i){const o=Gf(t,e,i,!0);W0(()=>{S0(i[t],o)},n)}function Gf(e,t,n=Ut,i=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...c)=>{if(n.isUnmounted)return;ba(),oa(n);const h=lr(t,n,e,c);return Ws(),wa(),h});return i?o.unshift(a):o.push(a),a}}const Ti=e=>(t,n=Ut)=>(!zu||e==="sp")&&Gf(e,(...i)=>t(...i),n),AT=Ti("bm"),Zu=Ti("m"),xT=Ti("bu"),ET=Ti("u"),ax=Ti("bum"),W0=Ti("um"),CT=Ti("sp"),_T=Ti("rtg"),ST=Ti("rtc");function FT(e,t=Ut){Gf("ec",e,t)}function $n(e,t){const n=cn;if(n===null)return e;const i=Yf(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&&zs(h),o.push({dir:c,instance:i,value:h,oldValue:void 0,arg:d,modifiers:p}))}return e}function Ss(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&&(ba(),lr(d,n,8,[e.el,h,e,t]),wa())}}const ux="components",$T="directives";function Qs(e,t){return lx(ux,e,!0,t)||e}const TT=Symbol();function to(e){return lx($T,e)}function lx(e,t,n=!0,i=!1){const o=cn||Ut;if(o){const a=o.type;if(e===ux){const h=nk(a,!1);if(h&&(h===t||h===Kr(t)||h===Hf(Kr(t))))return a}const c=f1(o[e]||a[e],t)||f1(o.appContext[e],t);return!c&&i?a:c}}function f1(e,t){return e&&(e[t]||e[Kr(t)]||e[Hf(Kr(t))])}function Dr(e,t,n,i){let o;const a=n&&n[i];if(qe(e)||Vt(e)){o=new Array(e.length);for(let c=0,h=e.length;c<h;c++)o[c]=t(e[c],c,void 0,a&&a[c])}else if(typeof e=="number"){o=new Array(e);for(let c=0;c<e;c++)o[c]=t(c+1,c,void 0,a&&a[c])}else if(St(e))if(e[Symbol.iterator])o=Array.from(e,(c,h)=>t(c,h,void 0,a&&a[h]));else{const c=Object.keys(e);o=new Array(c.length);for(let h=0,d=c.length;h<d;h++){const p=c[h];o[h]=t(e[p],p,h,a&&a[h])}}else o=[];return n&&(n[i]=o),o}function _r(e,t,n={},i,o){if(cn.isCE||cn.parent&&Eu(cn.parent)&&cn.parent.isCE)return t!=="default"&&(n.name=t),Me("slot",n,i&&i());let a=e[t];a&&a._c&&(a._d=!1),de();const c=a&&cx(a(n)),h=tt(ht,{key:n.key||c&&c.key||`_${t}`},c||(i?i():[]),c&&e._===1?64:-2);return!o&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),a&&a._c&&(a._d=!0),h}function cx(e){return e.some(t=>Mu(t)?!(t.type===Hn||t.type===ht&&!cx(t.children)):!0)?e:null}const _p=e=>e?Ax(e)?Yf(e)||e.proxy:_p(e.parent):null,Cu=fn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_p(e.parent),$root:e=>_p(e.root),$emit:e=>e.emit,$options:e=>G0(e),$forceUpdate:e=>e.f||(e.f=()=>U0(e.update)),$nextTick:e=>e.n||(e.n=Aa.bind(e.proxy)),$watch:e=>vT.bind(e)}),Rd=(e,t)=>e!==Ct&&!e.__isScriptSetup&&it(e,t),kT={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(Rd(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];Sp&&(c[t]=0)}}const g=Cu[t];let y,m;if(g)return t==="$attrs"&&jn(e,"get",t),g(e);if((y=h.__cssModules)&&(y=y[t]))return y;if(n!==Ct&&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 Rd(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)||Rd(t,c)||(h=a[0])&&it(h,c)||it(i,c)||it(Cu,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 Sp=!0;function LT(e){const t=G0(e),n=e.proxy,i=e.ctx;Sp=!1,t.beforeCreate&&h1(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:E,beforeDestroy:C,beforeUnmount:S,destroyed:O,unmounted:B,render:k,renderTracked:M,renderTriggered:U,errorCaptured:j,serverPrefetch:ne,expose:ue,inheritAttrs:Y,components:z,directives:P,filters:F}=t;if(p&&BT(p,i,null,e.appContext.config.unwrapInjectedRef),c)for(const V in c){const Z=c[V];Ve(Z)&&(i[V]=Z.bind(n))}if(o){const V=o.call(n,n);St(V)&&(e.data=Zn(V))}if(Sp=!0,a)for(const V in a){const Z=a[V],ae=Ve(Z)?Z.bind(n,n):Ve(Z.get)?Z.get.bind(n,n):Cr,pe=!Ve(Z)&&Ve(Z.set)?Z.set.bind(n):Cr,$e=Ce({get:ae,set:pe});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>$e.value,set:_e=>$e.value=_e})}if(h)for(const V in h)fx(h[V],i,n,V);if(d){const V=Ve(d)?d.call(n):d;Reflect.ownKeys(V).forEach(Z=>{qc(Z,V[Z])})}g&&h1(g,e,"c");function R(V,Z){qe(Z)?Z.forEach(ae=>V(ae.bind(n))):Z&&V(Z.bind(n))}if(R(AT,y),R(Zu,m),R(xT,A),R(ET,$),R(bT,L),R(wT,E),R(FT,j),R(ST,M),R(_T,U),R(ax,S),R(W0,B),R(CT,ne),qe(ue))if(ue.length){const V=e.exposed||(e.exposed={});ue.forEach(Z=>{Object.defineProperty(V,Z,{get:()=>n[Z],set:ae=>n[Z]=ae})})}else e.exposed||(e.exposed={});k&&e.render===Cr&&(e.render=k),Y!=null&&(e.inheritAttrs=Y),z&&(e.components=z),P&&(e.directives=P)}function BT(e,t,n=Cr,i=!1){qe(e)&&(e=Fp(e));for(const o in e){const a=e[o];let c;St(a)?"default"in a?c=xi(a.from||o,a.default,!0):c=xi(a.from||o):c=xi(a),Nt(c)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:h=>c.value=h}):t[o]=c}}function h1(e,t,n){lr(qe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function fx(e,t,n,i){const o=i.includes(".")?nx(n,i):()=>n[i];if(Vt(e)){const a=t[e];Ve(a)&&Zt(o,a)}else if(Ve(e))Zt(o,e.bind(n));else if(St(e))if(qe(e))e.forEach(a=>fx(a,t,n,i));else{const a=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(a)&&Zt(o,a,e)}}function G0(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=>cf(d,p,c,!0)),cf(d,t,c)),St(t)&&a.set(t,d),d}function cf(e,t,n,i=!1){const{mixins:o,extends:a}=t;a&&cf(e,a,n,!0),o&&o.forEach(c=>cf(e,c,n,!0));for(const c in t)if(!(i&&c==="expose")){const h=OT[c]||n&&n[c];e[c]=h?h(e[c],t[c]):t[c]}return e}const OT={data:d1,props:Bs,emits:Bs,methods:Bs,computed:Bs,beforeCreate:Cn,created:Cn,beforeMount:Cn,mounted:Cn,beforeUpdate:Cn,updated:Cn,beforeDestroy:Cn,beforeUnmount:Cn,destroyed:Cn,unmounted:Cn,activated:Cn,deactivated:Cn,errorCaptured:Cn,serverPrefetch:Cn,components:Bs,directives:Bs,watch:NT,provide:d1,inject:PT};function d1(e,t){return t?e?function(){return fn(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function PT(e,t){return Bs(Fp(e),Fp(t))}function Fp(e){if(qe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Cn(e,t){return e?[...new Set([].concat(e,t))]:t}function Bs(e,t){return e?fn(fn(Object.create(null),e),t):t}function NT(e,t){if(!e)return t;if(!t)return e;const n=fn(Object.create(null),e);for(const i in t)n[i]=Cn(e[i],t[i]);return n}function IT(e,t,n,i=!1){const o={},a={};of(a,Qf,1),e.propsDefaults=Object.create(null),hx(e,t,o,a);for(const c in e.propsOptions[0])c in o||(o[c]=void 0);n?e.props=i?o:V$(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function RT(e,t,n,i){const{props:o,attrs:a,vnode:{patchFlag:c}}=e,h=st(o),[d]=e.propsOptions;let p=!1;if((i||c>0)&&!(c&16)){if(c&8){const g=e.vnode.dynamicProps;for(let y=0;y<g.length;y++){let m=g[y];if(jf(e.emitsOptions,m))continue;const A=t[m];if(d)if(it(a,m))A!==a[m]&&(a[m]=A,p=!0);else{const $=Kr(m);o[$]=$p(d,h,$,A,e,!1)}else A!==a[m]&&(a[m]=A,p=!0)}}}else{hx(e,t,o,a)&&(p=!0);let g;for(const y in h)(!t||!it(t,y)&&((g=eo(y))===y||!it(t,g)))&&(d?n&&(n[y]!==void 0||n[g]!==void 0)&&(o[y]=$p(d,h,y,void 0,e,!0)):delete o[y]);if(a!==h)for(const y in a)(!t||!it(t,y))&&(delete a[y],p=!0)}p&&Ci(e,"set","$attrs")}function hx(e,t,n,i){const[o,a]=e.propsOptions;let c=!1,h;if(t)for(let d in t){if(Uc(d))continue;const p=t[d];let g;o&&it(o,g=Kr(d))?!a||!a.includes(g)?n[g]=p:(h||(h={}))[g]=p:jf(e.emitsOptions,d)||(!(d in i)||p!==i[d])&&(i[d]=p,c=!0)}if(a){const d=st(n),p=h||Ct;for(let g=0;g<a.length;g++){const y=a[g];n[y]=$p(o,d,y,p[y],e,!it(p,y))}}return c}function $p(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]:(oa(o),i=p[n]=d.call(null,t),Ws())}else i=d}c[0]&&(a&&!h?i=!1:c[1]&&(i===""||i===eo(n))&&(i=!0))}return i}function dx(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]=dx(y,t,!0);fn(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 St(e)&&i.set(e,Wo),Wo;if(qe(a))for(let g=0;g<a.length;g++){const y=Kr(a[g]);p1(y)&&(c[y]=Ct)}else if(a)for(const g in a){const y=Kr(g);if(p1(y)){const m=a[g],A=c[y]=qe(m)||Ve(m)?{type:m}:Object.assign({},m);if(A){const $=m1(Boolean,A.type),L=m1(String,A.type);A[0]=$>-1,A[1]=L<0||$<L,($>-1||it(A,"default"))&&h.push(y)}}}const p=[c,h];return St(e)&&i.set(e,p),p}function p1(e){return e[0]!=="$"}function g1(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function v1(e,t){return g1(e)===g1(t)}function m1(e,t){return qe(t)?t.findIndex(n=>v1(n,e)):Ve(t)&&v1(t,e)?0:-1}const px=e=>e[0]==="_"||e==="$stable",K0=e=>qe(e)?e.map(br):[br(e)],MT=(e,t,n)=>{if(t._n)return t;const i=Je((...o)=>K0(t(...o)),n);return i._c=!1,i},gx=(e,t,n)=>{const i=e._ctx;for(const o in e){if(px(o))continue;const a=e[o];if(Ve(a))t[o]=MT(o,a,i);else if(a!=null){const c=K0(a);t[o]=()=>c}}},vx=(e,t)=>{const n=K0(t);e.slots.default=()=>n},zT=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=st(t),of(t,"_",n)):gx(t,e.slots={})}else e.slots={},t&&vx(e,t);of(e.slots,Qf,1)},UT=(e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,c=Ct;if(i.shapeFlag&32){const h=t._;h?n&&h===1?a=!1:(fn(o,t),!n&&h===1&&delete o._):(a=!t.$stable,gx(t,o)),c=t}else t&&(vx(e,t),c={default:1});if(a)for(const h in o)!px(h)&&!(h in c)&&delete o[h]};function mx(){return{app:null,config:{isNativeTag:u$,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 HT=0;function qT(e,t){return function(i,o=null){Ve(i)||(i=Object.assign({},i)),o!=null&&!St(o)&&(o=null);const a=mx(),c=new Set;let h=!1;const d=a.app={_uid:HT++,_component:i,_props:o,_container:null,_context:a,_instance:null,version:uk,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,Yf(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 Tp(e,t,n,i,o=!1){if(qe(e)){e.forEach((m,A)=>Tp(m,t&&(qe(t)?t[A]:t),n,i,o));return}if(Eu(i)&&!o)return;const a=i.shapeFlag&4?Yf(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&&(Vt(p)?(g[p]=null,it(y,p)&&(y[p]=null)):Nt(p)&&(p.value=null)),Ve(d))as(d,h,12,[c,g]);else{const m=Vt(d),A=Nt(d);if(m||A){const $=()=>{if(e.f){const L=m?it(y,d)?y[d]:g[d]:d.value;o?qe(L)&&S0(L,a):qe(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,In($,n)):$()}}}const In=gT;function jT(e){return VT(e)}function VT(e,t){const n=p$();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=Cr,insertStaticContent:$}=e,L=(I,G,re,oe=null,ce=null,ye=null,he=!1,be=null,xe=!!G.dynamicChildren)=>{if(I===G)return;I&&!Hr(I,G)&&(oe=J(I),_e(I,ce,ye,!0),I=null),G.patchFlag===-2&&(xe=!1,G.dynamicChildren=null);const{type:ge,ref:Ne,shapeFlag:Be}=G;switch(ge){case Kf:E(I,G,re,oe);break;case Hn:C(I,G,re,oe);break;case Md:I==null&&S(G,re,oe,he);break;case ht:z(I,G,re,oe,ce,ye,he,be,xe);break;default:Be&1?k(I,G,re,oe,ce,ye,he,be,xe):Be&6?P(I,G,re,oe,ce,ye,he,be,xe):(Be&64||Be&128)&&ge.process(I,G,re,oe,ce,ye,he,be,xe,Se)}Ne!=null&&ce&&Tp(Ne,I&&I.ref,ye,G||I,!G)},E=(I,G,re,oe)=>{if(I==null)i(G.el=h(G.children),re,oe);else{const ce=G.el=I.el;G.children!==I.children&&p(ce,G.children)}},C=(I,G,re,oe)=>{I==null?i(G.el=d(G.children||""),re,oe):G.el=I.el},S=(I,G,re,oe)=>{[I.el,I.anchor]=$(I.children,G,re,oe,I.el,I.anchor)},O=({el:I,anchor:G},re,oe)=>{let ce;for(;I&&I!==G;)ce=m(I),i(I,re,oe),I=ce;i(G,re,oe)},B=({el:I,anchor:G})=>{let re;for(;I&&I!==G;)re=m(I),o(I),I=re;o(G)},k=(I,G,re,oe,ce,ye,he,be,xe)=>{he=he||G.type==="svg",I==null?M(G,re,oe,ce,ye,he,be,xe):ne(I,G,ce,ye,he,be,xe)},M=(I,G,re,oe,ce,ye,he,be)=>{let xe,ge;const{type:Ne,props:Be,shapeFlag:Pe,transition:Re,dirs:Ge}=I;if(xe=I.el=c(I.type,ye,Be&&Be.is,Be),Pe&8?g(xe,I.children):Pe&16&&j(I.children,xe,null,oe,ce,ye&&Ne!=="foreignObject",he,be),Ge&&Ss(I,null,oe,"created"),U(xe,I,I.scopeId,he,oe),Be){for(const et in Be)et!=="value"&&!Uc(et)&&a(xe,et,null,Be[et],ye,I.children,oe,ce,se);"value"in Be&&a(xe,"value",null,Be.value),(ge=Be.onVnodeBeforeMount)&&Rr(ge,oe,I)}Ge&&Ss(I,null,oe,"beforeMount");const nt=(!ce||ce&&!ce.pendingBranch)&&Re&&!Re.persisted;nt&&Re.beforeEnter(xe),i(xe,G,re),((ge=Be&&Be.onVnodeMounted)||nt||Ge)&&In(()=>{ge&&Rr(ge,oe,I),nt&&Re.enter(xe),Ge&&Ss(I,null,oe,"mounted")},ce)},U=(I,G,re,oe,ce)=>{if(re&&A(I,re),oe)for(let ye=0;ye<oe.length;ye++)A(I,oe[ye]);if(ce){let ye=ce.subTree;if(G===ye){const he=ce.vnode;U(I,he,he.scopeId,he.slotScopeIds,ce.parent)}}},j=(I,G,re,oe,ce,ye,he,be,xe=0)=>{for(let ge=xe;ge<I.length;ge++){const Ne=I[ge]=be?Ji(I[ge]):br(I[ge]);L(null,Ne,G,re,oe,ce,ye,he,be)}},ne=(I,G,re,oe,ce,ye,he)=>{const be=G.el=I.el;let{patchFlag:xe,dynamicChildren:ge,dirs:Ne}=G;xe|=I.patchFlag&16;const Be=I.props||Ct,Pe=G.props||Ct;let Re;re&&Fs(re,!1),(Re=Pe.onVnodeBeforeUpdate)&&Rr(Re,re,G,I),Ne&&Ss(G,I,re,"beforeUpdate"),re&&Fs(re,!0);const Ge=ce&&G.type!=="foreignObject";if(ge?ue(I.dynamicChildren,ge,be,re,oe,Ge,ye):he||Z(I,G,be,null,re,oe,Ge,ye,!1),xe>0){if(xe&16)Y(be,G,Be,Pe,re,oe,ce);else if(xe&2&&Be.class!==Pe.class&&a(be,"class",null,Pe.class,ce),xe&4&&a(be,"style",Be.style,Pe.style,ce),xe&8){const nt=G.dynamicProps;for(let et=0;et<nt.length;et++){const ft=nt[et],Ze=Be[ft],Bn=Pe[ft];(Bn!==Ze||ft==="value")&&a(be,ft,Ze,Bn,ce,I.children,re,oe,se)}}xe&1&&I.children!==G.children&&g(be,G.children)}else!he&&ge==null&&Y(be,G,Be,Pe,re,oe,ce);((Re=Pe.onVnodeUpdated)||Ne)&&In(()=>{Re&&Rr(Re,re,G,I),Ne&&Ss(G,I,re,"updated")},oe)},ue=(I,G,re,oe,ce,ye,he)=>{for(let be=0;be<G.length;be++){const xe=I[be],ge=G[be],Ne=xe.el&&(xe.type===ht||!Hr(xe,ge)||xe.shapeFlag&70)?y(xe.el):re;L(xe,ge,Ne,null,oe,ce,ye,he,!0)}},Y=(I,G,re,oe,ce,ye,he)=>{if(re!==oe){if(re!==Ct)for(const be in re)!Uc(be)&&!(be in oe)&&a(I,be,re[be],null,he,G.children,ce,ye,se);for(const be in oe){if(Uc(be))continue;const xe=oe[be],ge=re[be];xe!==ge&&be!=="value"&&a(I,be,ge,xe,he,G.children,ce,ye,se)}"value"in oe&&a(I,"value",re.value,oe.value)}},z=(I,G,re,oe,ce,ye,he,be,xe)=>{const ge=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(ge,re,oe),i(Ne,re,oe),j(G.children,re,Ne,ce,ye,he,be,xe)):Be>0&&Be&64&&Pe&&I.dynamicChildren?(ue(I.dynamicChildren,Pe,re,ce,ye,he,be),(G.key!=null||ce&&G===ce.subTree)&&yx(I,G,!0)):Z(I,G,re,Ne,ce,ye,he,be,xe)},P=(I,G,re,oe,ce,ye,he,be,xe)=>{G.slotScopeIds=be,I==null?G.shapeFlag&512?ce.ctx.activate(G,re,oe,he,xe):F(G,re,oe,ce,ye,he,xe):w(I,G,xe)},F=(I,G,re,oe,ce,ye,he)=>{const be=I.component=ZT(I,oe,ce);if(Wf(I)&&(be.ctx.renderer=Se),JT(be),be.asyncDep){if(ce&&ce.registerDep(be,R),!I.el){const xe=be.subTree=Me(Hn);C(null,xe,G,re)}return}R(be,I,G,re,ce,ye,he)},w=(I,G,re)=>{const oe=G.component=I.component;if(aT(I,G,re))if(oe.asyncDep&&!oe.asyncResolved){V(oe,G,re);return}else oe.next=G,eT(oe.update),oe.update();else G.el=I.el,oe.vnode=G},R=(I,G,re,oe,ce,ye,he)=>{const be=()=>{if(I.isMounted){let{next:Ne,bu:Be,u:Pe,parent:Re,vnode:Ge}=I,nt=Ne,et;Fs(I,!1),Ne?(Ne.el=Ge.el,V(I,Ne,he)):Ne=Ge,Be&&Hc(Be),(et=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Rr(et,Re,Ne,Ge),Fs(I,!0);const ft=Nd(I),Ze=I.subTree;I.subTree=ft,L(Ze,ft,y(Ze.el),J(Ze),I,ce,ye),Ne.el=ft.el,nt===null&&H0(I,ft.el),Pe&&In(Pe,ce),(et=Ne.props&&Ne.props.onVnodeUpdated)&&In(()=>Rr(et,Re,Ne,Ge),ce)}else{let Ne;const{el:Be,props:Pe}=G,{bm:Re,m:Ge,parent:nt}=I,et=Eu(G);if(Fs(I,!1),Re&&Hc(Re),!et&&(Ne=Pe&&Pe.onVnodeBeforeMount)&&Rr(Ne,nt,G),Fs(I,!0),Be&&Te){const ft=()=>{I.subTree=Nd(I),Te(Be,I.subTree,I,ce,null)};et?G.type.__asyncLoader().then(()=>!I.isUnmounted&&ft()):ft()}else{const ft=I.subTree=Nd(I);L(null,ft,re,oe,I,ce,ye),G.el=ft.el}if(Ge&&In(Ge,ce),!et&&(Ne=Pe&&Pe.onVnodeMounted)){const ft=G;In(()=>Rr(Ne,nt,ft),ce)}(G.shapeFlag&256||nt&&Eu(nt.vnode)&&nt.vnode.shapeFlag&256)&&I.a&&In(I.a,ce),I.isMounted=!0,G=re=oe=null}},xe=I.effect=new k0(be,()=>U0(ge),I.scope),ge=I.update=()=>xe.run();ge.id=I.uid,Fs(I,!0),ge()},V=(I,G,re)=>{G.component=I;const oe=I.vnode.props;I.vnode=G,I.next=null,RT(I,G.props,oe,re),UT(I,G.children,re),ba(),a1(),wa()},Z=(I,G,re,oe,ce,ye,he,be,xe=!1)=>{const ge=I&&I.children,Ne=I?I.shapeFlag:0,Be=G.children,{patchFlag:Pe,shapeFlag:Re}=G;if(Pe>0){if(Pe&128){pe(ge,Be,re,oe,ce,ye,he,be,xe);return}else if(Pe&256){ae(ge,Be,re,oe,ce,ye,he,be,xe);return}}Re&8?(Ne&16&&se(ge,ce,ye),Be!==ge&&g(re,Be)):Ne&16?Re&16?pe(ge,Be,re,oe,ce,ye,he,be,xe):se(ge,ce,ye,!0):(Ne&8&&g(re,""),Re&16&&j(Be,re,oe,ce,ye,he,be,xe))},ae=(I,G,re,oe,ce,ye,he,be,xe)=>{I=I||Wo,G=G||Wo;const ge=I.length,Ne=G.length,Be=Math.min(ge,Ne);let Pe;for(Pe=0;Pe<Be;Pe++){const Re=G[Pe]=xe?Ji(G[Pe]):br(G[Pe]);L(I[Pe],Re,re,null,ce,ye,he,be,xe)}ge>Ne?se(I,ce,ye,!0,!1,Be):j(G,re,oe,ce,ye,he,be,xe,Be)},pe=(I,G,re,oe,ce,ye,he,be,xe)=>{let ge=0;const Ne=G.length;let Be=I.length-1,Pe=Ne-1;for(;ge<=Be&&ge<=Pe;){const Re=I[ge],Ge=G[ge]=xe?Ji(G[ge]):br(G[ge]);if(Hr(Re,Ge))L(Re,Ge,re,null,ce,ye,he,be,xe);else break;ge++}for(;ge<=Be&&ge<=Pe;){const Re=I[Be],Ge=G[Pe]=xe?Ji(G[Pe]):br(G[Pe]);if(Hr(Re,Ge))L(Re,Ge,re,null,ce,ye,he,be,xe);else break;Be--,Pe--}if(ge>Be){if(ge<=Pe){const Re=Pe+1,Ge=Re<Ne?G[Re].el:oe;for(;ge<=Pe;)L(null,G[ge]=xe?Ji(G[ge]):br(G[ge]),re,Ge,ce,ye,he,be,xe),ge++}}else if(ge>Pe)for(;ge<=Be;)_e(I[ge],ce,ye,!0),ge++;else{const Re=ge,Ge=ge,nt=new Map;for(ge=Ge;ge<=Pe;ge++){const Dt=G[ge]=xe?Ji(G[ge]):br(G[ge]);Dt.key!=null&&nt.set(Dt.key,ge)}let et,ft=0;const Ze=Pe-Ge+1;let Bn=!1,Vn=0;const tn=new Array(Ze);for(ge=0;ge<Ze;ge++)tn[ge]=0;for(ge=Re;ge<=Be;ge++){const Dt=I[ge];if(ft>=Ze){_e(Dt,ce,ye,!0);continue}let yn;if(Dt.key!=null)yn=nt.get(Dt.key);else for(et=Ge;et<=Pe;et++)if(tn[et-Ge]===0&&Hr(Dt,G[et])){yn=et;break}yn===void 0?_e(Dt,ce,ye,!0):(tn[yn-Ge]=ge+1,yn>=Vn?Vn=yn:Bn=!0,L(Dt,G[yn],re,null,ce,ye,he,be,xe),ft++)}const ao=Bn?WT(tn):Wo;for(et=ao.length-1,ge=Ze-1;ge>=0;ge--){const Dt=Ge+ge,yn=G[Dt],Ae=Dt+1<Ne?G[Dt+1].el:oe;tn[ge]===0?L(null,yn,re,Ae,ce,ye,he,be,xe):Bn&&(et<0||ge!==ao[et]?$e(yn,re,Ae,2):et--)}}},$e=(I,G,re,oe,ce=null)=>{const{el:ye,type:he,transition:be,children:xe,shapeFlag:ge}=I;if(ge&6){$e(I.component.subTree,G,re,oe);return}if(ge&128){I.suspense.move(G,re,oe);return}if(ge&64){he.move(I,G,re,Se);return}if(he===ht){i(ye,G,re);for(let Be=0;Be<xe.length;Be++)$e(xe[Be],G,re,oe);i(I.anchor,G,re);return}if(he===Md){O(I,G,re);return}if(oe!==2&&ge&1&&be)if(oe===0)be.beforeEnter(ye),i(ye,G,re),In(()=>be.enter(ye),ce);else{const{leave:Be,delayLeave:Pe,afterLeave:Re}=be,Ge=()=>i(ye,G,re),nt=()=>{Be(ye,()=>{Ge(),Re&&Re()})};Pe?Pe(ye,Ge,nt):nt()}else i(ye,G,re)},_e=(I,G,re,oe=!1,ce=!1)=>{const{type:ye,props:he,ref:be,children:xe,dynamicChildren:ge,shapeFlag:Ne,patchFlag:Be,dirs:Pe}=I;if(be!=null&&Tp(be,null,re,I,!0),Ne&256){G.ctx.deactivate(I);return}const Re=Ne&1&&Pe,Ge=!Eu(I);let nt;if(Ge&&(nt=he&&he.onVnodeBeforeUnmount)&&Rr(nt,G,I),Ne&6)ie(I.component,re,oe);else{if(Ne&128){I.suspense.unmount(re,oe);return}Re&&Ss(I,null,G,"beforeUnmount"),Ne&64?I.type.remove(I,G,re,ce,Se,oe):ge&&(ye!==ht||Be>0&&Be&64)?se(ge,G,re,!1,!0):(ye===ht&&Be&384||!ce&&Ne&16)&&se(xe,G,re),oe&&ze(I)}(Ge&&(nt=he&&he.onVnodeUnmounted)||Re)&&In(()=>{nt&&Rr(nt,G,I),Re&&Ss(I,null,G,"unmounted")},re)},ze=I=>{const{type:G,el:re,anchor:oe,transition:ce}=I;if(G===ht){Ke(re,oe);return}if(G===Md){B(I);return}const ye=()=>{o(re),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(I.shapeFlag&1&&ce&&!ce.persisted){const{leave:he,delayLeave:be}=ce,xe=()=>he(re,ye);be?be(I.el,ye,xe):xe()}else ye()},Ke=(I,G)=>{let re;for(;I!==G;)re=m(I),o(I),I=re;o(G)},ie=(I,G,re)=>{const{bum:oe,scope:ce,update:ye,subTree:he,um:be}=I;oe&&Hc(oe),ce.stop(),ye&&(ye.active=!1,_e(he,I,G,re)),be&&In(be,G),In(()=>{I.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},se=(I,G,re,oe=!1,ce=!1,ye=0)=>{for(let he=ye;he<I.length;he++)_e(I[he],G,re,oe,ce)},J=I=>I.shapeFlag&6?J(I.component.subTree):I.shapeFlag&128?I.suspense.next():m(I.anchor||I.el),fe=(I,G,re)=>{I==null?G._vnode&&_e(G._vnode,null,null,!0):L(G._vnode||null,I,G,null,null,null,re),a1(),YA(),G._vnode=I},Se={p:L,um:_e,m:$e,r:ze,mt:F,mc:j,pc:Z,pbc:ue,n:J,o:e};let vt,Te;return t&&([vt,Te]=t(Se)),{render:fe,hydrate:vt,createApp:qT(fe,vt)}}function Fs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function yx(e,t,n=!1){const i=e.children,o=t.children;if(qe(i)&&qe(o))for(let a=0;a<i.length;a++){const c=i[a];let h=o[a];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=o[a]=Ji(o[a]),h.el=c.el),n||yx(c,h)),h.type===Kf&&(h.el=c.el)}}function WT(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 GT=e=>e.__isTeleport,ht=Symbol(void 0),Kf=Symbol(void 0),Hn=Symbol(void 0),Md=Symbol(void 0),_u=[];let ar=null;function de(e=!1){_u.push(ar=e?null:[])}function bx(){_u.pop(),ar=_u[_u.length-1]||null}let sa=1;function y1(e){sa+=e}function wx(e){return e.dynamicChildren=sa>0?ar||Wo:null,bx(),sa>0&&ar&&ar.push(e),e}function ke(e,t,n,i,o,a){return wx(me(e,t,n,i,o,a,!0))}function tt(e,t,n,i,o){return wx(Me(e,t,n,i,o,!0))}function Mu(e){return e?e.__v_isVNode===!0:!1}function Hr(e,t){return e.type===t.type&&e.key===t.key}const Qf="__vInternal",Dx=({key:e})=>e??null,jc=({ref:e,ref_key:t,ref_for:n})=>e!=null?Vt(e)||Nt(e)||Ve(e)?{i:cn,r:e,k:t,f:!!n}:e:null;function me(e,t=null,n=null,i=0,o=null,a=e===ht?0:1,c=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dx(t),ref:t&&jc(t),scopeId:Vf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:cn};return h?(Q0(d,n),a&128&&e.normalize(d)):n&&(d.shapeFlag|=Vt(n)?8:16),sa>0&&!c&&ar&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&ar.push(d),d}const Me=KT;function KT(e,t=null,n=null,i=0,o=null,a=!1){if((!e||e===TT)&&(e=Hn),Mu(e)){const h=cs(e,t,!0);return n&&Q0(h,n),sa>0&&!a&&ar&&(h.shapeFlag&6?ar[ar.indexOf(e)]=h:ar.push(h)),h.patchFlag|=-2,h}if(rk(e)&&(e=e.__vccOpts),t){t=QT(t);let{class:h,style:d}=t;h&&!Vt(h)&&(t.class=yt(h)),St(d)&&(HA(d)&&!qe(d)&&(d=fn({},d)),t.style=Un(d))}const c=Vt(e)?1:uT(e)?128:GT(e)?64:St(e)?4:Ve(e)?2:0;return me(e,t,n,i,o,c,a,!0)}function QT(e){return e?HA(e)||Qf in e?fn({},e):e:null}function cs(e,t,n=!1){const{props:i,ref:o,patchFlag:a,children:c}=e,h=t?us(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Dx(h),ref:t&&t.ref?n&&o?qe(o)?o.concat(jc(t)):[o,jc(t)]:jc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ht?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cs(e.ssContent),ssFallback:e.ssFallback&&cs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _n(e=" ",t=0){return Me(Kf,null,e,t)}function lt(e="",t=!1){return t?(de(),tt(Hn,null,e)):Me(Hn,null,e)}function br(e){return e==null||typeof e=="boolean"?Me(Hn):qe(e)?Me(ht,null,e.slice()):typeof e=="object"?Ji(e):Me(Kf,null,String(e))}function Ji(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cs(e)}function Q0(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(qe(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),Q0(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Qf in t)?t._ctx=cn:o===3&&cn&&(cn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:cn},n=32):(t=String(t),i&64?(n=16,t=[_n(t)]):n=8);e.children=t,e.shapeFlag|=n}function us(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=yt([t.class,i.class]));else if(o==="style")t.style=Un([t.style,i.style]);else if(Mf(o)){const a=t[o],c=i[o];c&&a!==c&&!(qe(a)&&a.includes(c))&&(t[o]=a?[].concat(a,c):c)}else o!==""&&(t[o]=i[o])}return t}function Rr(e,t,n,i=null){lr(e,t,7,[n,i])}const XT=mx();let YT=0;function ZT(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||XT,a={uid:YT++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new g$(!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:dx(i,o),emitsOptions:JA(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=nT.bind(null,a),e.ce&&e.ce(a),a}let Ut=null;const Xf=()=>Ut||cn,oa=e=>{Ut=e,e.scope.on()},Ws=()=>{Ut&&Ut.scope.off(),Ut=null};function Ax(e){return e.vnode.shapeFlag&4}let zu=!1;function JT(e,t=!1){zu=t;const{props:n,children:i}=e.vnode,o=Ax(e);IT(e,n,o,t),zT(e,i);const a=o?ek(e,t):void 0;return zu=!1,a}function ek(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=I0(new Proxy(e.ctx,kT));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?Ex(e):null;oa(e),ba();const a=as(i,e,0,[e.props,o]);if(wa(),Ws(),SA(a)){if(a.then(Ws,Ws),t)return a.then(c=>{kp(e,c,t)}).catch(c=>{Yu(c,e,0)});e.asyncDep=a}else kp(e,a,t)}else xx(e,t)}function kp(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=WA(t)),xx(e,n)}let b1;function xx(e,t,n){const i=e.type;if(!e.render){if(!t&&b1&&!i.render){const o=i.template||G0(e).template;if(o){const{isCustomElement:a,compilerOptions:c}=e.appContext.config,{delimiters:h,compilerOptions:d}=i,p=fn(fn({isCustomElement:a,delimiters:h},c),d);i.render=b1(o,p)}}e.render=i.render||Cr}oa(e),ba(),LT(e),wa(),Ws()}function tk(e){return new Proxy(e.attrs,{get(t,n){return jn(e,"get","$attrs"),t[n]}})}function Ex(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=tk(e))},slots:e.slots,emit:e.emit,expose:t}}function Yf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(WA(I0(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cu)return Cu[n](e)},has(t,n){return n in t||n in Cu}}))}function nk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function rk(e){return Ve(e)&&"__vccOpts"in e}const Ce=(e,t)=>Y$(e,t,zu);function ik(){return sk().attrs}function sk(){const e=Xf();return e.setupContext||(e.setupContext=Ex(e))}function Ju(e,t,n){const i=arguments.length;return i===2?St(t)&&!qe(t)?Mu(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Mu(n)&&(n=[n]),Me(e,t,n))}const ok=Symbol(""),ak=()=>xi(ok),uk="3.2.47",lk="http://www.w3.org/2000/svg",Is=typeof document<"u"?document:null,w1=Is&&Is.createElement("template"),ck={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?Is.createElementNS(lk,e):Is.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Is.createTextNode(e),createComment:e=>Is.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Is.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,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{w1.innerHTML=i?`<svg>${e}</svg>`:e;const h=w1.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 fk(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 hk(e,t,n){const i=e.style,o=Vt(n);if(n&&!o){if(t&&!Vt(t))for(const a in t)n[a]==null&&Lp(i,a,"");for(const a in n)Lp(i,a,n[a])}else{const a=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=a)}}const D1=/\s*!important$/;function Lp(e,t,n){if(qe(n))n.forEach(i=>Lp(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=dk(e,t);D1.test(n)?e.setProperty(eo(i),n.replace(D1,""),"important"):e[i]=n}}const A1=["Webkit","Moz","ms"],zd={};function dk(e,t){const n=zd[t];if(n)return n;let i=Kr(t);if(i!=="filter"&&i in e)return zd[t]=i;i=Hf(i);for(let o=0;o<A1.length;o++){const a=A1[o]+i;if(a in e)return zd[t]=a}return t}const x1="http://www.w3.org/1999/xlink";function pk(e,t,n,i,o){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(x1,t.slice(6,t.length)):e.setAttributeNS(x1,t,n);else{const a=a$(t);n==null||a&&!EA(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function gk(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=EA(n):n==null&&d==="string"?(n="",h=!0):d==="number"&&(n=0,h=!0)}try{e[t]=n}catch{}h&&e.removeAttribute(t)}function Uo(e,t,n,i){e.addEventListener(t,n,i)}function vk(e,t,n,i){e.removeEventListener(t,n,i)}function mk(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]=yk(t);if(i){const p=a[t]=Dk(i,o);Uo(e,h,p,d)}else c&&(vk(e,h,c,d),a[t]=void 0)}}const E1=/(?:Once|Passive|Capture)$/;function yk(e){let t;if(E1.test(e)){t={};let i;for(;i=e.match(E1);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):eo(e.slice(2)),t]}let Ud=0;const bk=Promise.resolve(),wk=()=>Ud||(bk.then(()=>Ud=0),Ud=Date.now());function Dk(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;lr(Ak(i,n.value),t,5,[i])};return n.value=e,n.attached=wk(),n}function Ak(e,t){if(qe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const C1=/^on[a-z]/,xk=(e,t,n,i,o=!1,a,c,h,d)=>{t==="class"?fk(e,i,o):t==="style"?hk(e,n,i):Mf(t)?_0(t)||mk(e,t,n,i,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ek(e,t,i,o))?gk(e,t,i,a,c,h,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),pk(e,t,i,o))};function Ek(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&C1.test(t)&&Ve(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||C1.test(t)&&Vt(n)?!1:t in e}const Ki="transition",fu="animation",X0=(e,{slots:t})=>Ju(rx,Ck(e),t);X0.displayName="Transition";const Cx={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};X0.props=fn({},rx.props,Cx);const $s=(e,t=[])=>{qe(e)?e.forEach(n=>n(...t)):e&&e(...t)},_1=e=>e?qe(e)?e.some(t=>t.length>1):e.length>1:!1;function Ck(e){const t={};for(const z in e)z in Cx||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:c=`${n}-enter-active`,enterToClass:h=`${n}-enter-to`,appearFromClass:d=a,appearActiveClass:p=c,appearToClass:g=h,leaveFromClass:y=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:A=`${n}-leave-to`}=e,$=_k(o),L=$&&$[0],E=$&&$[1],{onBeforeEnter:C,onEnter:S,onEnterCancelled:O,onLeave:B,onLeaveCancelled:k,onBeforeAppear:M=C,onAppear:U=S,onAppearCancelled:j=O}=t,ne=(z,P,F)=>{Ts(z,P?g:h),Ts(z,P?p:c),F&&F()},ue=(z,P)=>{z._isLeaving=!1,Ts(z,y),Ts(z,A),Ts(z,m),P&&P()},Y=z=>(P,F)=>{const w=z?U:S,R=()=>ne(P,z,F);$s(w,[P,R]),S1(()=>{Ts(P,z?d:a),Qi(P,z?g:h),_1(w)||F1(P,i,L,R)})};return fn(t,{onBeforeEnter(z){$s(C,[z]),Qi(z,a),Qi(z,c)},onBeforeAppear(z){$s(M,[z]),Qi(z,d),Qi(z,p)},onEnter:Y(!1),onAppear:Y(!0),onLeave(z,P){z._isLeaving=!0;const F=()=>ue(z,P);Qi(z,y),$k(),Qi(z,m),S1(()=>{z._isLeaving&&(Ts(z,y),Qi(z,A),_1(B)||F1(z,i,E,F))}),$s(B,[z,F])},onEnterCancelled(z){ne(z,!1),$s(O,[z])},onAppearCancelled(z){ne(z,!0),$s(j,[z])},onLeaveCancelled(z){ue(z),$s(k,[z])}})}function _k(e){if(e==null)return null;if(St(e))return[Hd(e.enter),Hd(e.leave)];{const t=Hd(e);return[t,t]}}function Hd(e){return TA(e)}function Qi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ts(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 S1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Sk=0;function F1(e,t,n,i){const o=e._endId=++Sk,a=()=>{o===e._endId&&i()};if(n)return setTimeout(a,n);const{type:c,timeout:h,propCount:d}=Fk(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 Fk(e,t){const n=window.getComputedStyle(e),i=$=>(n[$]||"").split(", "),o=i(`${Ki}Delay`),a=i(`${Ki}Duration`),c=$1(o,a),h=i(`${fu}Delay`),d=i(`${fu}Duration`),p=$1(h,d);let g=null,y=0,m=0;t===Ki?c>0&&(g=Ki,y=c,m=a.length):t===fu?p>0&&(g=fu,y=p,m=d.length):(y=Math.max(c,p),g=y>0?c>p?Ki:fu:null,m=g?g===Ki?a.length:d.length:0);const A=g===Ki&&/\b(transform|all)(,|$)/.test(i(`${Ki}Property`).toString());return{type:g,timeout:y,propCount:m,hasTransform:A}}function $1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>T1(n)+T1(e[i])))}function T1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function $k(){return document.body.offsetHeight}const k1=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qe(t)?n=>Hc(t,n):t};function Tk(e){e.target.composing=!0}function L1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const kk={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e._assign=k1(o);const a=i||o.props&&o.props.type==="number";Uo(e,t?"change":"input",c=>{if(c.target.composing)return;let h=e.value;n&&(h=h.trim()),a&&(h=bp(h)),e._assign(h)}),n&&Uo(e,"change",()=>{e.value=e.value.trim()}),t||(Uo(e,"compositionstart",Tk),Uo(e,"compositionend",L1),Uo(e,"change",L1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:o}},a){if(e._assign=k1(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(o||e.type==="number")&&bp(e.value)===t))return;const c=t??"";e.value!==c&&(e.value=c)}},Lk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bp=(e,t)=>n=>{if(!("key"in n))return;const i=eo(n.key);if(t.some(o=>o===i||Lk[o]===i))return e(n)},_x={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hu(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),hu(e,!0),i.enter(e)):i.leave(e,()=>{hu(e,!1)}):hu(e,t))},beforeUnmount(e,{value:t}){hu(e,t)}};function hu(e,t){e.style.display=t?e._vod:"none"}const Bk=fn({patchProp:xk},ck);let B1;function Ok(){return B1||(B1=jT(Bk))}const Sx=(...e)=>{const t=Ok().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Pk(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 Pk(e){return Vt(e)?document.querySelector(e):e}const no=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Nk={};function Ik(e,t){const n=Qs("RouterView");return de(),tt(n)}const Rk=no(Nk,[["render",Ik]]);/*!
|
|
2
|
+
* vue-router v4.1.6
|
|
3
|
+
* (c) 2022 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const Ho=typeof window<"u";function Mk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const gt=Object.assign;function qd(e,t){const n={};for(const i in t){const o=t[i];n[i]=Sr(o)?o.map(e):e(o)}return n}const Su=()=>{},Sr=Array.isArray,zk=/\/$/,Uk=e=>e.replace(zk,"");function jd(e,t,n="/"){let i,o={},a="",c="";const h=t.indexOf("#");let d=t.indexOf("?");return h<d&&h>=0&&(d=-1),d>-1&&(i=t.slice(0,d),a=t.slice(d+1,h>-1?h:t.length),o=e(a)),h>-1&&(i=i||t.slice(0,h),c=t.slice(h,t.length)),i=Vk(i??t,n),{fullPath:i+(a&&"?")+a+c,path:i,query:o,hash:c}}function Hk(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function O1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qk(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&aa(t.matched[i],n.matched[o])&&Fx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function aa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jk(e[n],t[n]))return!1;return!0}function jk(e,t){return Sr(e)?P1(e,t):Sr(t)?P1(t,e):e===t}function P1(e,t){return Sr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Vk(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 Uu;(function(e){e.pop="pop",e.push="push"})(Uu||(Uu={}));var Fu;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Fu||(Fu={}));function Wk(e){if(!e)if(Ho){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Uk(e)}const Gk=/^[^#]+#/;function Kk(e,t){return e.replace(Gk,"#")+t}function Qk(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 Zf=()=>({left:window.pageXOffset,top:window.pageYOffset});function Xk(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=Qk(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 N1(e,t){return(history.state?history.state.position-t:-1)+e}const Op=new Map;function Yk(e,t){Op.set(e,t)}function Zk(e){const t=Op.get(e);return Op.delete(e),t}let Jk=()=>location.protocol+"//"+location.host;function $x(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),O1(d,"")}return O1(n,e)+i+o}function eL(e,t,n,i){let o=[],a=[],c=null;const h=({state:m})=>{const A=$x(e,location),$=n.value,L=t.value;let E=0;if(m){if(n.value=A,t.value=m,c&&c===$){c=null;return}E=L?m.position-L.position:0}else i(A);o.forEach(C=>{C(n.value,$,{delta:E,type:Uu.pop,direction:E?E>0?Fu.forward:Fu.back:Fu.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:Zf()}),"")}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 I1(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?Zf():null}}function tL(e){const{history:t,location:n}=window,i={value:$x(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:Jk()+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,I1(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:Zf()});a(g.current,g,!0);const y=gt({},I1(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 nL(e){e=Wk(e);const t=tL(e),n=eL(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:Kk.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 rL(e){return typeof e=="string"||e&&typeof e=="object"}function Tx(e){return typeof e=="string"||typeof e=="symbol"}const Xi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},kx=Symbol("");var R1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(R1||(R1={}));function ua(e,t){return gt(new Error,{type:e,[kx]:!0},t)}function hi(e,t){return e instanceof Error&&kx in e&&(t==null||!!(e.type&t))}const M1="[^/]+?",iL={sensitive:!1,strict:!1,start:!0,end:!0},sL=/[.+*?^${}()[\]/\\]/g;function oL(e,t){const n=gt({},iL,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(sL,"\\$&"),A+=40;else if(m.type===1){const{value:$,repeatable:L,optional:E,regexp:C}=m;a.push({name:$,repeatable:L,optional:E});const S=C||M1;if(S!==M1){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=E&&p.length<2?`(?:/${O})`:"/"+O),E&&(O+="?"),o+=O,A+=20,E&&(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:E}=A,C=$ in p?p[$]:"";if(Sr(C)&&!L)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const S=Sr(C)?C.join("/"):C;if(!S)if(E)m.length<2&&(g.endsWith("/")?g=g.slice(0,-1):y=!0);else throw new Error(`Missing required param "${$}"`);g+=S}}return g||"/"}return{re:c,score:i,keys:a,parse:h,stringify:d}}function aL(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 uL(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const a=aL(i[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-i.length)===1){if(z1(i))return 1;if(z1(o))return-1}return o.length-i.length}function z1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const lL={type:0,value:""},cL=/[a-zA-Z0-9_]/;function fL(e){if(!e)return[[]];if(e==="/")return[[lL]];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:cL.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 hL(e,t,n){const i=oL(fL(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 dL(e,t){const n=[],i=new Map;t=q1({strict:!1,end:!0,sensitive:!1},t);function o(g){return i.get(g)}function a(g,y,m){const A=!m,$=pL(g);$.aliasOf=m&&m.record;const L=q1(t,g),E=[$];if("alias"in g){const O=typeof g.alias=="string"?[g.alias]:g.alias;for(const B of O)E.push(gt({},$,{components:m?m.record.components:$.components,path:B,aliasOf:m?m.record:$}))}let C,S;for(const O of E){const{path:B}=O;if(y&&B[0]!=="/"){const k=y.record.path,M=k[k.length-1]==="/"?"":"/";O.path=y.record.path+(B&&M+B)}if(C=hL(O,y,L),m?m.alias.push(C):(S=S||C,S!==C&&S.alias.push(C),A&&g.name&&!H1(C)&&c(g.name)),$.children){const k=$.children;for(let M=0;M<k.length;M++)a(k[M],C,m&&m.children[M])}m=m||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&d(C)}return S?()=>{c(S)}:Su}function c(g){if(Tx(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&&uL(g,n[y])>=0&&(g.record.path!==n[y].record.path||!Lx(g,n[y]));)y++;n.splice(y,0,g),g.record.name&&!H1(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 ua(1,{location:g});L=m.record.name,A=gt(U1(y.params,m.keys.filter(S=>!S.optional).map(S=>S.name)),g.params&&U1(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 ua(1,{location:g,currentLocation:y});L=m.record.name,A=gt({},y.params,g.params),$=m.stringify(A)}const E=[];let C=m;for(;C;)E.unshift(C.record),C=C.parent;return{name:L,path:$,params:A,matched:E,meta:vL(E)}}return e.forEach(g=>a(g)),{addRoute:a,resolve:p,removeRoute:c,getRoutes:h,getRecordMatcher:o}}function U1(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function pL(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gL(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 gL(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 H1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vL(e){return e.reduce((t,n)=>gt(t,n.meta),{})}function q1(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Lx(e,t){return t.children.some(n=>n===e||Lx(e,n))}const Bx=/#/g,mL=/&/g,yL=/\//g,bL=/=/g,wL=/\?/g,Ox=/\+/g,DL=/%5B/g,AL=/%5D/g,Px=/%5E/g,xL=/%60/g,Nx=/%7B/g,EL=/%7C/g,Ix=/%7D/g,CL=/%20/g;function Y0(e){return encodeURI(""+e).replace(EL,"|").replace(DL,"[").replace(AL,"]")}function _L(e){return Y0(e).replace(Nx,"{").replace(Ix,"}").replace(Px,"^")}function Pp(e){return Y0(e).replace(Ox,"%2B").replace(CL,"+").replace(Bx,"%23").replace(mL,"%26").replace(xL,"`").replace(Nx,"{").replace(Ix,"}").replace(Px,"^")}function SL(e){return Pp(e).replace(bL,"%3D")}function FL(e){return Y0(e).replace(Bx,"%23").replace(wL,"%3F")}function $L(e){return e==null?"":FL(e).replace(yL,"%2F")}function ff(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function TL(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(Ox," "),c=a.indexOf("="),h=ff(c<0?a:a.slice(0,c)),d=c<0?null:ff(a.slice(c+1));if(h in t){let p=t[h];Sr(p)||(p=t[h]=[p]),p.push(d)}else t[h]=d}return t}function j1(e){let t="";for(let n in e){const i=e[n];if(n=SL(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Sr(i)?i.map(a=>a&&Pp(a)):[i&&Pp(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function kL(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Sr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const LL=Symbol(""),V1=Symbol(""),Z0=Symbol(""),Rx=Symbol(""),Np=Symbol("");function du(){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 es(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(ua(4,{from:n,to:t})):y instanceof Error?h(y):rL(y)?h(ua(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 Vd(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(BL(h)){const p=(h.__vccOpts||h)[t];p&&o.push(es(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=Mk(p)?p.default:p;a.components[c]=g;const m=(g.__vccOpts||g)[t];return m&&es(m,n,i,a,c)()}))}}return o}function BL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function W1(e){const t=xi(Z0),n=xi(Rx),i=Ce(()=>t.resolve(X(e.to))),o=Ce(()=>{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(aa.bind(null,g));if(m>-1)return m;const A=G1(d[p-2]);return p>1&&G1(g)===A&&y[y.length-1].path!==A?y.findIndex(aa.bind(null,d[p-2])):m}),a=Ce(()=>o.value>-1&&IL(n.params,i.value.params)),c=Ce(()=>o.value>-1&&o.value===n.matched.length-1&&Fx(n.params,i.value.params));function h(d={}){return NL(d)?t[X(e.replace)?"replace":"push"](X(e.to)).catch(Su):Promise.resolve()}return{route:i,href:Ce(()=>i.value.href),isActive:a,isExactActive:c,navigate:h}}const OL=ot({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:W1,setup(e,{slots:t}){const n=Zn(W1(e)),{options:i}=xi(Z0),o=Ce(()=>({[K1(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[K1(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Ju("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),PL=OL;function NL(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 IL(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(!Sr(o)||o.length!==i.length||i.some((a,c)=>a!==o[c]))return!1}return!0}function G1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const K1=(e,t,n)=>e??t??n,RL=ot({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=xi(Np),o=Ce(()=>e.route||i.value),a=xi(V1,0),c=Ce(()=>{let p=X(a);const{matched:g}=o.value;let y;for(;(y=g[p])&&!y.components;)p++;return p}),h=Ce(()=>o.value.matched[c.value]);qc(V1,Ce(()=>c.value+1)),qc(LL,h),qc(Np,o);const d=Xe();return Zt(()=>[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||!aa(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 Q1(n.default,{Component:m,route:p});const A=y.props[g],$=A?A===!0?p.params:typeof A=="function"?A(p):A:null,E=Ju(m,gt({},$,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(y.instances[g]=null)},ref:d}));return Q1(n.default,{Component:E,route:p})||E}}});function Q1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ML=RL;function zL(e){const t=dL(e.routes,e),n=e.parseQuery||TL,i=e.stringifyQuery||j1,o=e.history,a=du(),c=du(),h=du(),d=Da(Xi);let p=Xi;Ho&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=qd.bind(null,ie=>""+ie),y=qd.bind(null,$L),m=qd.bind(null,ff);function A(ie,se){let J,fe;return Tx(ie)?(J=t.getRecordMatcher(ie),fe=se):fe=ie,t.addRoute(fe,J)}function $(ie){const se=t.getRecordMatcher(ie);se&&t.removeRoute(se)}function L(){return t.getRoutes().map(ie=>ie.record)}function E(ie){return!!t.getRecordMatcher(ie)}function C(ie,se){if(se=gt({},se||d.value),typeof ie=="string"){const I=jd(n,ie,se.path),G=t.resolve({path:I.path},se),re=o.createHref(I.fullPath);return gt(I,G,{params:m(G.params),hash:ff(I.hash),redirectedFrom:void 0,href:re})}let J;if("path"in ie)J=gt({},ie,{path:jd(n,ie.path,se.path).path});else{const I=gt({},ie.params);for(const G in I)I[G]==null&&delete I[G];J=gt({},ie,{params:y(ie.params)}),se.params=y(se.params)}const fe=t.resolve(J,se),Se=ie.hash||"";fe.params=g(m(fe.params));const vt=Hk(i,gt({},ie,{hash:_L(Se),path:fe.path})),Te=o.createHref(vt);return gt({fullPath:vt,hash:Se,query:i===j1?kL(ie.query):ie.query||{}},fe,{redirectedFrom:void 0,href:Te})}function S(ie){return typeof ie=="string"?jd(n,ie,d.value.path):gt({},ie)}function O(ie,se){if(p!==ie)return ua(8,{from:se,to:ie})}function B(ie){return U(ie)}function k(ie){return B(gt(S(ie),{replace:!0}))}function M(ie){const se=ie.matched[ie.matched.length-1];if(se&&se.redirect){const{redirect:J}=se;let fe=typeof J=="function"?J(ie):J;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=S(fe):{path:fe},fe.params={}),gt({query:ie.query,hash:ie.hash,params:"path"in fe?{}:ie.params},fe)}}function U(ie,se){const J=p=C(ie),fe=d.value,Se=ie.state,vt=ie.force,Te=ie.replace===!0,I=M(J);if(I)return U(gt(S(I),{state:typeof I=="object"?gt({},Se,I.state):Se,force:vt,replace:Te}),se||J);const G=J;G.redirectedFrom=se;let re;return!vt&&qk(i,fe,J)&&(re=ua(16,{to:G,from:fe}),pe(fe,fe,!0,!1)),(re?Promise.resolve(re):ne(G,fe)).catch(oe=>hi(oe)?hi(oe,2)?oe:ae(oe):V(oe,G,fe)).then(oe=>{if(oe){if(hi(oe,2))return U(gt({replace:Te},S(oe.to),{state:typeof oe.to=="object"?gt({},Se,oe.to.state):Se,force:vt}),se||G)}else oe=Y(G,fe,!0,Te,Se);return ue(G,fe,oe),oe})}function j(ie,se){const J=O(ie,se);return J?Promise.reject(J):Promise.resolve()}function ne(ie,se){let J;const[fe,Se,vt]=UL(ie,se);J=Vd(fe.reverse(),"beforeRouteLeave",ie,se);for(const I of fe)I.leaveGuards.forEach(G=>{J.push(es(G,ie,se))});const Te=j.bind(null,ie,se);return J.push(Te),ko(J).then(()=>{J=[];for(const I of a.list())J.push(es(I,ie,se));return J.push(Te),ko(J)}).then(()=>{J=Vd(Se,"beforeRouteUpdate",ie,se);for(const I of Se)I.updateGuards.forEach(G=>{J.push(es(G,ie,se))});return J.push(Te),ko(J)}).then(()=>{J=[];for(const I of ie.matched)if(I.beforeEnter&&!se.matched.includes(I))if(Sr(I.beforeEnter))for(const G of I.beforeEnter)J.push(es(G,ie,se));else J.push(es(I.beforeEnter,ie,se));return J.push(Te),ko(J)}).then(()=>(ie.matched.forEach(I=>I.enterCallbacks={}),J=Vd(vt,"beforeRouteEnter",ie,se),J.push(Te),ko(J))).then(()=>{J=[];for(const I of c.list())J.push(es(I,ie,se));return J.push(Te),ko(J)}).catch(I=>hi(I,8)?I:Promise.reject(I))}function ue(ie,se,J){for(const fe of h.list())fe(ie,se,J)}function Y(ie,se,J,fe,Se){const vt=O(ie,se);if(vt)return vt;const Te=se===Xi,I=Ho?history.state:{};J&&(fe||Te?o.replace(ie.fullPath,gt({scroll:Te&&I&&I.scroll},Se)):o.push(ie.fullPath,Se)),d.value=ie,pe(ie,se,J,Te),ae()}let z;function P(){z||(z=o.listen((ie,se,J)=>{if(!Ke.listening)return;const fe=C(ie),Se=M(fe);if(Se){U(gt(Se,{replace:!0}),fe).catch(Su);return}p=fe;const vt=d.value;Ho&&Yk(N1(vt.fullPath,J.delta),Zf()),ne(fe,vt).catch(Te=>hi(Te,12)?Te:hi(Te,2)?(U(Te.to,fe).then(I=>{hi(I,20)&&!J.delta&&J.type===Uu.pop&&o.go(-1,!1)}).catch(Su),Promise.reject()):(J.delta&&o.go(-J.delta,!1),V(Te,fe,vt))).then(Te=>{Te=Te||Y(fe,vt,!1),Te&&(J.delta&&!hi(Te,8)?o.go(-J.delta,!1):J.type===Uu.pop&&hi(Te,20)&&o.go(-1,!1)),ue(fe,vt,Te)}).catch(Su)}))}let F=du(),w=du(),R;function V(ie,se,J){ae(ie);const fe=w.list();return fe.length?fe.forEach(Se=>Se(ie,se,J)):console.error(ie),Promise.reject(ie)}function Z(){return R&&d.value!==Xi?Promise.resolve():new Promise((ie,se)=>{F.add([ie,se])})}function ae(ie){return R||(R=!ie,P(),F.list().forEach(([se,J])=>ie?J(ie):se()),F.reset()),ie}function pe(ie,se,J,fe){const{scrollBehavior:Se}=e;if(!Ho||!Se)return Promise.resolve();const vt=!J&&Zk(N1(ie.fullPath,0))||(fe||!J)&&history.state&&history.state.scroll||null;return Aa().then(()=>Se(ie,se,vt)).then(Te=>Te&&Xk(Te)).catch(Te=>V(Te,ie,se))}const $e=ie=>o.go(ie);let _e;const ze=new Set,Ke={currentRoute:d,listening:!0,addRoute:A,removeRoute:$,hasRoute:E,getRoutes:L,resolve:C,options:e,push:B,replace:k,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:a.add,beforeResolve:c.add,afterEach:h.add,onError:w.add,isReady:Z,install(ie){const se=this;ie.component("RouterLink",PL),ie.component("RouterView",ML),ie.config.globalProperties.$router=se,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>X(d)}),Ho&&!_e&&d.value===Xi&&(_e=!0,B(o.location).catch(Se=>{}));const J={};for(const Se in Xi)J[Se]=Ce(()=>d.value[Se]);ie.provide(Z0,se),ie.provide(Rx,Zn(J)),ie.provide(Np,d);const fe=ie.unmount;ze.add(ie),ie.unmount=function(){ze.delete(ie),ze.size<1&&(p=Xi,z&&z(),z=null,d.value=Xi,_e=!1,R=!1),fe()}}};return Ke}function ko(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function UL(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=>aa(p,h))?i.push(h):n.push(h));const d=e.matched[c];d&&(t.matched.find(p=>aa(p,d))||o.push(d))}return[n,i,o]}function ki(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function el(e){return["top","bottom"].includes(ki(e))?"x":"y"}function J0(e){return e==="y"?"height":"width"}function X1(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(ki(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=el(i),d=J0(h);switch(Yo(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 HL=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}=X1({...h,placement:i}),g=i,y={};for(let m=0;m<a.length;m++){const{name:A,fn:$}=a[m],{x:L,y:E,data:C,reset:S}=await $({x:d,y:p,initialPlacement:i,placement:g,strategy:o,middlewareData:y,rects:h,platform:c,elements:{reference:e,floating:t}});if(d=L??d,p=E??p,y={...y,[A]:C??{}},S){typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(h=S.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:p}=X1({...h,placement:g})),m=-1;continue}}return{x:d,y:p,placement:g,strategy:o,middlewareData:y}};function qL(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?qL(e):{top:e,right:e,bottom:e,left:e}}function Ip(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Jf(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=Mx(m),L=c[y?g==="floating"?"reference":"floating":g],E=await o.getClippingClientRect({element:await o.isElement(L)?L:L.contextElement||await o.getDocumentElement({element:c.floating}),boundary:d,rootBoundary:p}),C=Ip(await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g==="floating"?{...a.floating,x:n,y:i}:a.reference,offsetParent:await o.getOffsetParent({element:c.floating}),strategy:h}));return{top:E.top-C.top+A.top,bottom:C.bottom-E.bottom+A.bottom,left:E.left-C.left+A.left,right:C.right-E.right+A.right}}const jL=Math.min,Os=Math.max;function Rp(e,t,n){return Os(e,jL(t,n))}const VL=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=Mx(i),g={x:o,y:a},y=ki(c),m=el(y),A=J0(m),$=await d.getDimensions({element:n}),L=m==="y"?"top":"left",E=m==="y"?"bottom":"right",C=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=C/2-S/2,M=p[L],U=B-$[A]-p[E],j=B/2-$[A]/2+k,ne=Rp(M,j,U);return{data:{[m]:ne,centerOffset:j-ne}}}}),WL={left:"right",right:"left",bottom:"top",top:"bottom"};function hf(e){return e.replace(/left|right|bottom|top/g,t=>WL[t])}function zx(e,t){const n=Yo(e)==="start",i=el(e),o=J0(i);let a=i==="x"?n?"right":"left":n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=hf(a)),{main:a,cross:hf(a)}}const GL={start:"end",end:"start"};function Mp(e){return e.replace(/start|end/g,t=>GL[t])}const KL=["top","right","bottom","left"],QL=KL.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function XL(e,t,n){return(e?[...n.filter(o=>Yo(o)===e),...n.filter(o=>Yo(o)!==e)]:n.filter(o=>ki(o)===o)).filter(o=>e?Yo(o)===e||(t?Mp(o)!==o:!1):!0)}const YL=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:$=QL,autoAlignment:L=!0,...E}=e;if((n=y.autoPlacement)!=null&&n.skip)return{};const C=XL(A,L,$),S=await Jf(t,E),O=(i=(o=y.autoPlacement)==null?void 0:o.index)!=null?i:0,B=C[O],{main:k,cross:M}=zx(B,g);if(m!==B)return{x:d,y:p,reset:{placement:C[0]}};const U=[S[ki(B)],S[k],S[M]],j=[...(a=(c=y.autoPlacement)==null?void 0:c.overflows)!=null?a:[],{placement:B,overflows:U}],ne=C[O+1];if(ne)return{data:{index:O+1,overflows:j},reset:{placement:ne}};const ue=j.slice().sort((z,P)=>z.overflows[0]-P.overflows[0]),Y=(h=ue.find(z=>{let{overflows:P}=z;return P.every(F=>F<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:Y??ue[0].placement}}}}};function ZL(e){const t=hf(e);return[Mp(e),t,Mp(t)]}const JL=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,$=ki(o),E=g||($===h||!m?[hf(h)]:ZL(h)),C=[h,...E],S=await Jf(t,A),O=[];let B=((i=a.flip)==null?void 0:i.overflows)||[];if(d&&O.push(S[$]),p){const{main:j,cross:ne}=zx(o,c);O.push(S[j],S[ne])}if(B=[...B,{placement:o,overflows:O}],!O.every(j=>j<=0)){var k,M;const j=((k=(M=a.flip)==null?void 0:M.index)!=null?k:0)+1,ne=C[j];if(ne)return{data:{index:j,overflows:B},reset:{placement:ne}};let ue="bottom";switch(y){case"bestFit":{var U;const Y=(U=B.slice().sort((z,P)=>z.overflows.filter(F=>F>0).reduce((F,w)=>F+w,0)-P.overflows.filter(F=>F>0).reduce((F,w)=>F+w,0))[0])==null?void 0:U.placement;Y&&(ue=Y);break}case"initialPlacement":ue=h;break}return{data:{skip:!0},reset:{placement:ue}}}return{}}}};function eB(e){let{placement:t,rects:n,value:i}=e;const o=ki(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 el(o)==="x"?{x:d,y:h*a}:{x:h*a,y:d}}const tB=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=eB({placement:o,rects:a,value:e});return{x:n+c.x,y:i+c.y,data:c}}}};function nB(e){return e==="x"?"y":"x"}const rB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:h={fn:E=>{let{x:C,y:S}=E;return{x:C,y:S}}},...d}=e,p={x:n,y:i},g=await Jf(t,d),y=el(ki(o)),m=nB(y);let A=p[y],$=p[m];if(a){const E=y==="y"?"top":"left",C=y==="y"?"bottom":"right",S=A+g[E],O=A-g[C];A=Rp(S,A,O)}if(c){const E=m==="y"?"top":"left",C=m==="y"?"bottom":"right",S=$+g[E],O=$-g[C];$=Rp(S,$,O)}const L=h.fn({...t,[y]:A,[m]:$});return{...L,data:{x:L.x-n,y:L.y-i}}}}},iB=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 Jf(t,h),p=ki(i),g=Yo(i)==="end";let y,m;p==="top"||p==="bottom"?(y=p,m=g?"left":"right"):(m=p,y=g?"top":"bottom");const A=Os(d.left,0),$=Os(d.right,0),L=Os(d.top,0),E=Os(d.bottom,0),C={height:o.floating.height-(["left","right"].includes(i)?2*(L!==0||E!==0?L+E:Os(d.top,d.bottom)):d[y]),width:o.floating.width-(["top","bottom"].includes(i)?2*(A!==0||$!==0?A+$:Os(d.left,d.right)):d[m])};return c==null||c({...C,...o}),{data:{skip:!0},reset:{rects:!0}}}}};function eg(e){return(e==null?void 0:e.toString())==="[object Window]"}function ds(e){if(e==null)return window;if(!eg(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function eh(e){return ds(e).getComputedStyle(e)}function _i(e){return eg(e)?"":e?(e.nodeName||"").toLowerCase():""}function Si(e){return e instanceof ds(e).HTMLElement}function df(e){return e instanceof ds(e).Element}function sB(e){return e instanceof ds(e).Node}function Ux(e){const t=ds(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function th(e){const{overflow:t,overflowX:n,overflowY:i}=eh(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function oB(e){return["table","td","th"].includes(_i(e))}function Hx(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=eh(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 Y1=Math.min,$u=Math.max,pf=Math.round;function la(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let i=1,o=1;return t&&Si(e)&&(i=e.offsetWidth>0&&pf(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&pf(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 ps(e){return((sB(e)?e.ownerDocument:e.document)||window.document).documentElement}function nh(e){return eg(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qx(e){return la(ps(e)).left+nh(e).scrollLeft}function aB(e){const t=la(e);return pf(t.width)!==e.offsetWidth||pf(t.height)!==e.offsetHeight}function uB(e,t,n){const i=Si(t),o=ps(t),a=la(e,i&&aB(t));let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(i||!i&&n!=="fixed")if((_i(t)!=="body"||th(o))&&(c=nh(t)),Si(t)){const d=la(t,!0);h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}else o&&(h.x=qx(o));return{x:a.left+c.scrollLeft-h.x,y:a.top+c.scrollTop-h.y,width:a.width,height:a.height}}function rh(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(Ux(e)?e.host:null)||ps(e)}function Z1(e){return!Si(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function lB(e){let t=rh(e);for(;Si(t)&&!["html","body"].includes(_i(t));){if(Hx(t))return t;t=t.parentNode}return null}function zp(e){const t=ds(e);let n=Z1(e);for(;n&&oB(n)&&getComputedStyle(n).position==="static";)n=Z1(n);return n&&(_i(n)==="html"||_i(n)==="body"&&getComputedStyle(n).position==="static"&&!Hx(n))?t:n||lB(e)||t}function J1(e){return{width:e.offsetWidth,height:e.offsetHeight}}function cB(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=Si(n),a=ps(n);if(n===a)return t;let c={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((o||!o&&i!=="fixed")&&((_i(n)!=="body"||th(a))&&(c=nh(n)),Si(n))){const d=la(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 fB(e){const t=ds(e),n=ps(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 hB(e){var t;const n=ps(e),i=nh(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=$u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=$u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let h=-i.scrollLeft+qx(e);const d=-i.scrollTop;return eh(o||n).direction==="rtl"&&(h+=$u(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:c,x:h,y:d}}function jx(e){return["html","body","#document"].includes(_i(e))?e.ownerDocument.body:Si(e)&&th(e)?e:jx(rh(e))}function gf(e,t){var n;t===void 0&&(t=[]);const i=jx(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=ds(i),c=o?[a].concat(a.visualViewport||[],th(i)?i:[]):i,h=t.concat(c);return o?h:h.concat(gf(rh(c)))}function dB(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ux(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function pB(e){const t=la(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 eb(e,t){return t==="viewport"?Ip(fB(e)):df(t)?pB(t):Ip(hB(ps(e)))}function gB(e){const t=gf(rh(e)),i=["absolute","fixed"].includes(eh(e).position)&&Si(e)?zp(e):e;return df(i)?t.filter(o=>df(o)&&dB(o,i)&&_i(o)!=="body"):[]}function vB(e){let{element:t,boundary:n,rootBoundary:i}=e;const a=[...n==="clippingParents"?gB(t):[].concat(n),i],c=a[0],h=a.reduce((d,p)=>{const g=eb(t,p);return d.top=$u(g.top,d.top),d.right=Y1(g.right,d.right),d.bottom=Y1(g.bottom,d.bottom),d.left=$u(g.left,d.left),d},eb(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 mB={getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:uB(t,zp(n),i),floating:{...J1(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>cB(e),getOffsetParent:e=>{let{element:t}=e;return zp(t)},isElement:e=>df(e),getDocumentElement:e=>{let{element:t}=e;return ps(t)},getClippingClientRect:e=>vB(e),getDimensions:e=>{let{element:t}=e;return J1(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},yB=(e,t,n)=>HL(e,t,{platform:mB,...n});var bB=Object.defineProperty,wB=Object.defineProperties,DB=Object.getOwnPropertyDescriptors,tb=Object.getOwnPropertySymbols,AB=Object.prototype.hasOwnProperty,xB=Object.prototype.propertyIsEnumerable,nb=(e,t,n)=>t in e?bB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Di=(e,t)=>{for(var n in t||(t={}))AB.call(t,n)&&nb(e,n,t[n]);if(tb)for(var n of tb(t))xB.call(t,n)&&nb(e,n,t[n]);return e},tl=(e,t)=>wB(e,DB(t));function Vx(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Vx(e[n],t[n]):e[n]=t[n])}const Gs={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 ca(e,t){let n=Gs.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=Gs.themes[n.$extend]||{}:(n=null,i=Gs[t]):n=null;while(n);return i}function EB(e){const t=[e];let n=Gs.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Gs.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}let fa=!1;if(typeof window<"u"){fa=!1;try{const e=Object.defineProperty({},"passive",{get(){fa=!0}});window.addEventListener("test",null,e)}catch{}}let Wx=!1;typeof window<"u"&&typeof navigator<"u"&&(Wx=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Gx=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),rb={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},ib={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function CB(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Wd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const jr=[];let Lo=null,Up=function(){};typeof window<"u"&&(Up=window.Element);function pt(e){return function(t){return ca(t.theme,e)}}var Kx=()=>ot({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=>Gx.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,Up,Boolean],default:pt("container")},boundary:{type:[String,Up],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:tl(Di({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Di({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(tB({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");n?t.middleware.push(YL({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(rB({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(JL({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(VL({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(iB({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 yB(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:Di(Di({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Lo&&this.instantMove&&Lo.instantMove){Lo.$_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&&(Lo=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 Wd(),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<jr.length;n++)t=jr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}jr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Wd(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(e=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,CB(jr,this),Lo===this&&(Lo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=ca(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 Wd(),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,fa?{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,rb,this.triggers,this.showTriggers,n),t([this.$_popperNode],rb,this.popperTriggers,this.popperShowTriggers,n);const i=o=>{o.usedByTooltip||this.hide({event:o})};t(this.$_targetNodes,ib,this.triggers,this.hideTriggers,i),t([this.$_popperNode],ib,this.popperTriggers,this.popperHideTriggers,i),e([...gf(this.$_referenceNode),...gf(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"&&(Wx?(document.addEventListener("touchstart",sb,fa?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",SB,fa?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",sb,!0),window.addEventListener("click",_B,!0)),window.addEventListener("resize",FB));function sb(e){for(let t=0;t<jr.length;t++){const n=jr[t],i=n.popperNode();n.$_mouseDownContains=i.contains(e.target)}}function _B(e){Qx(e)}function SB(e){Qx(e,!0)}function Qx(e,t=!1){for(let n=0;n<jr.length;n++){const i=jr[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 FB(e){for(let t=0;t<jr.length;t++)jr[t].$_computePosition(e)}function $B(){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 Vc;function Hp(){Hp.init||(Hp.init=!0,Vc=$B()!==-1)}var ih={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Hp(),Aa(()=>{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",Vc&&this.$el.appendChild(e),e.data="about:blank",Vc||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&&(!Vc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const TB=rT();ex("data-v-b329ee4c");const kB={class:"resize-observer",tabindex:"-1"};tx();const LB=TB((e,t,n,i,o,a)=>(de(),tt("div",kB)));ih.render=LB;ih.__scopeId="data-v-b329ee4c";ih.__file="src/components/ResizeObserver.vue";var Xx={computed:{themeClass(){return EB(this.theme)}}},tg=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const BB=ot({name:"VPopperContent",components:{ResizeObserver:ih},mixins:[Xx],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}}}),OB=["id","aria-hidden","tabindex","data-popper-placement"],PB={ref:"inner",class:"v-popper__inner"},NB=me("div",{class:"v-popper__arrow-outer"},null,-1),IB=me("div",{class:"v-popper__arrow-inner"},null,-1),RB=[NB,IB];function MB(e,t,n,i,o,a){const c=Qs("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:Un({position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result.placement,onKeyup:t[1]||(t[1]=Bp(h=>e.autoHide&&e.$emit("hide"),["esc"]))},[me("div",{class:"v-popper__wrapper",style:Un({transformOrigin:e.result.transformOrigin})},[me("div",PB,[e.mounted?(de(),ke(ht,{key:0},[me("div",null,[_r(e.$slots,"default")]),e.handleResize?(de(),tt(c,{key:0,onNotify:t[0]||(t[0]=h=>e.$emit("resize",h))})):lt("",!0)],64)):lt("",!0)],512),me("div",{ref:"arrow",class:"v-popper__arrow-container",style:Un({left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)})},RB,4)],4)],46,OB)}var Yx=tg(BB,[["render",MB]]),Zx={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 zB=ot({name:"VPopperWrapper",components:{Popper:Kx(),PopperContent:Yx},mixins:[Zx,Xx],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme},popperAttrs(){const e=Di({},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 UB(e,t,n,i,o,a){const c=Qs("PopperContent"),h=Qs("Popper");return de(),tt(h,us({ref:"popper"},e.popperAttrs,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"reference-node":()=>e.$refs.reference,"popper-node":()=>e.$refs.popperContent.$el}),{default:Je(({popperId:d,isShown:p,shouldMountContent:g,skipTransition:y,autoHide:m,show:A,hide:$,handleResize:L,onResize:E,classes:C,result:S})=>[me("div",{ref:"reference",class:yt(["v-popper",[e.$attrs.class,e.themeClass,{"v-popper--shown":p}]]),style:Un(e.$attrs.style)},[_r(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:C,result:S,onHide:$,onResize:E},{default:Je(()=>[_r(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 ng=tg(zB,[["render",UB]]);const ob=ot(tl(Di({},ng),{name:"VDropdown",vPopperTheme:"dropdown"})),ab=ot(tl(Di({},ng),{name:"VMenu",vPopperTheme:"menu"})),ub=ot(tl(Di({},ng),{name:"VTooltip",vPopperTheme:"tooltip"})),HB=ot({name:"VTooltipDirective",components:{Popper:Kx(),PopperContent:Yx},mixins:[Zx],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ca(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ca(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}}}),qB=["innerHTML"],jB=["textContent"];function VB(e,t,n,i,o,a){const c=Qs("PopperContent"),h=Qs("Popper");return de(),tt(h,us({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Je(({popperId:d,isShown:p,shouldMountContent:g,skipTransition:y,autoHide:m,hide:A,handleResize:$,onResize:L,classes:E,result:C})=>[Me(c,{ref:"popperContent",class:yt({"v-popper--tooltip-loading":e.loading}),"popper-id":d,theme:e.theme,shown:p,mounted:g,"skip-transition":y,"auto-hide":m,"handle-resize":$,classes:E,result:C,onHide:A,onResize:L},{default:Je(()=>[e.html?(de(),ke("div",{key:0,innerHTML:e.finalContent},null,8,qB)):(de(),ke("div",{key:1,textContent:Ye(e.finalContent)},null,8,jB))]),_: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 WB=tg(HB,[["render",VB]]);const Jx="v-popper--has-tooltip";function GB(e,t){let n=e.placement;if(!n&&t)for(const i of Gx)t[i]&&(n=i);return n||(n=ca(e.theme||"tooltip","placement")),n}function eE(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=GB(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Gd,Hu,KB=0;function QB(){if(Gd)return;Hu=Xe([]),Gd=Sx({name:"VTooltipDirectiveApp",setup(){return{directives:Hu}},render(){return this.directives.map(t=>Ju(WB,tl(Di({},t.options),{shown:t.shown.value||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Gd.mount(e)}function tE(e,t,n){QB();const i=Xe(eE(e,t,n)),o=Xe(!1),a={id:KB++,options:i,shown:o};return Hu.value.push(a),e.classList&&e.classList.add(Jx),e.$_popper={options:i,item:a,show(){o.value=!0},hide(){o.value=!1}}}function rg(e){if(e.$_popper){const t=Hu.value.indexOf(e.$_popper.item);t!==-1&&Hu.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Jx)}function lb(e,{value:t,oldValue:n,modifiers:i}){const o=eE(e,t,i);if(!o.content||ca(o.theme||"tooltip","disabled"))rg(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=tE(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var nE={beforeMount:lb,updated:lb,beforeUnmount(e){rg(e)}};function cb(e){e.addEventListener("click",rE),e.addEventListener("touchstart",iE,fa?{passive:!0}:!1)}function fb(e){e.removeEventListener("click",rE),e.removeEventListener("touchstart",iE),e.removeEventListener("touchend",sE),e.removeEventListener("touchcancel",oE)}function rE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function iE(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",sE),t.addEventListener("touchcancel",oE)}}function sE(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 oE(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var XB={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&cb(e)},updated(e,{value:t,oldValue:n,modifiers:i}){e.$_closePopoverModifiers=i,t!==n&&(typeof t>"u"||t?cb(e):fb(e))},beforeUnmount(e){fb(e)}};const YB=nE;function ZB(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Vx(Gs,t),e.directive("tooltip",nE),e.directive("close-popper",XB),e.component("v-tooltip",ub),e.component("VTooltip",ub),e.component("v-dropdown",ob),e.component("VDropdown",ob),e.component("v-menu",ab),e.component("VMenu",ab))}const aE={version:"2.0.0-y.0",install:ZB,options:Gs},JB=6e4;function eO(e,t){const{post:n,on:i,eventNames:o=[],serialize:a=g=>g,deserialize:c=g=>g,timeout:h=JB}=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,E)=>{const C=nO();d.set(C,{resolve:L,reject:E}),n(a({m:y,a:$,i:C,t:"q"})),h>=0&&setTimeout(()=>{E(new Error(`[birpc] timeout on calling "${y}"`)),d.delete(C)},h)});return A.asEvent=m,A}});return i(async(g,...y)=>{const m=c(g);if(m.t==="q"){const{m:A,a:$}=m;let L,E;try{L=await e[A].apply(p,$)}catch(C){E=C}m.i&&n(a({t:"s",i:m.i,r:L,e:E}),...y)}else{const{i:A,r:$,e:L}=m,E=d.get(A);L?E==null||E.reject(L):E==null||E.resolve($),d.delete(A)}}),p}const tO="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function nO(e=21){let t="",n=e;for(;n--;)t+=tO[Math.random()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:rO,stringify:iO}=JSON,{keys:sO}=Object,qu=String,uE="string",hb={},vf="object",lE=(e,t)=>t,oO=e=>e instanceof qu?qu(e):e,aO=(e,t)=>typeof t===uE?new qu(t):t,cE=(e,t,n,i)=>{const o=[];for(let a=sO(n),{length:c}=a,h=0;h<c;h++){const d=a[h],p=n[d];if(p instanceof qu){const g=e[p];typeof g===vf&&!t.has(g)?(t.add(g),n[d]=hb,o.push({k:d,a:[e,t,g,i]})):n[d]=i.call(n,d,g)}else n[d]!==hb&&(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,cE.apply(null,d))}return n},db=(e,t,n)=>{const i=qu(t.push(n)-1);return e.set(n,i),i},qp=(e,t)=>{const n=rO(e,aO).map(oO),i=n[0],o=t||lE,a=typeof i===vf&&i?cE(n,new Set,i,o):i;return o.call({"":a},"",a)},uO=(e,t,n)=>{const i=t&&typeof t===vf?(g,y)=>g===""||-1<t.indexOf(g)?y:void 0:t||lE,o=new Map,a=[],c=[];let h=+db(o,a,i.call({"":e},"",e)),d=!h;for(;h<a.length;)d=!0,c[h]=iO(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 vf:if(m===null)return m;case uE:return o.get(m)||db(o,a,m)}return m}};function lO(e){return typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e}class fE{constructor(){fi(this,"filesMap",new Map);fi(this,"pathsSet",new Set);fi(this,"collectingPromise");fi(this,"browserTestPromises",new Map);fi(this,"idMap",new Map);fi(this,"taskFileMap",new WeakMap);fi(this,"errorsSet",new Set);fi(this,"processTimeoutCauses",new Set)}catchError(t,n){if(lO(t))return t.errors.forEach(i=>this.catchError(i,n));t.type=n,this.errorsSet.add(t)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(t){this.processTimeoutCauses.add(t)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const o=(this.filesMap.get(n.filepath)||[]).filter(a=>a.projectName!==n.projectName);o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){n.forEach(i=>{const o=this.filesMap.get(i);if(!o)return;const a=o.filter(c=>c.projectName!==t.config.name);a.length?this.filesMap.set(i,a):this.filesMap.delete(i)})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i]of t)this.idMap.has(n)&&(this.idMap.get(n).result=i)}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function hE(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const fO=Symbol("vitest:SAFE_COLORS"),hO={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},dO=Object.entries(hO);function ig(e){return String(e)}ig.open="";ig.close="";const pO=dO.reduce((e,[t])=>(e[t]=ig,e),{isColorSupported:!1});function dE(){return globalThis[fO]||pO}var Yr={},sg={};let gO=class{constructor(){this.stack=new Map}add(t){if(this.stack.has(t))throw new Error("Already in stack");return t.isItem!==!0&&t.isMapEntry!==!0&&t.isProperty!==!0&&this.stack.set(t,this.stack.size+1),this}delete(t){if(this.stack.has(t)){if(this.stack.get(t)!==this.stack.size)throw new Error("Not on top of stack");this.stack.delete(t)}return this}has(t){return this.stack.has(t)}get(t){return this.stack.has(t)?this.stack.get(t):0}};var og=gO;const vO=Symbol("AMBIGUOUS"),mO=Symbol("DEEP_EQUAL"),yO=Symbol("SHALLOW_EQUAL"),bO=Symbol("UNEQUAL");var bt={AMBIGUOUS:vO,DEEP_EQUAL:mO,SHALLOW_EQUAL:yO,UNEQUAL:bO};let wO=class{constructor(){this.counter=0,this.map=new WeakMap}has(t){return this.map.has(t)}get(t){return this.map.get(t).descriptor}alloc(t){const i={descriptor:null,index:++this.counter};return this.map.set(t,i),i}};var DO=wO,xa={},Jt={},Ht={};const Ar=Symbol("lineBuilder.gutters.ACTUAL"),qr=Symbol("lineBuilder.gutters.EXPECTED");function AO(e,t,n){if(t){if(n===Ar)return e.diffGutters.expected;if(n===qr)return e.diffGutters.actual}else{if(n===Ar)return e.diffGutters.actual;if(n===qr)return e.diffGutters.expected}return e.diffGutters.padding}class Yt{constructor(t,n,i,o){this.isFirst=t,this.isLast=n,this.gutter=i,this.stringValue=o}*[Symbol.iterator](){yield this}get isEmpty(){return!1}get hasGutter(){return this.gutter!==null}get isSingle(){return this.isFirst&&this.isLast}append(t){return this.concat(t)}concat(t){return new zt().append(this).append(t)}toString(t){return t.diff===!1?this.stringValue:AO(t.theme,t.invert,this.gutter)+this.stringValue}mergeWithInfix(t,n){return n.isLine!==!0?new zt().append(this).mergeWithInfix(t,n):new Yt(this.isFirst,n.isLast,n.gutter,this.stringValue+t+n.stringValue)}withFirstPrefixed(t){return this.isFirst?new Yt(!0,this.isLast,this.gutter,t+this.stringValue):this}withLastPostfixed(t){return this.isLast?new Yt(this.isFirst,!0,this.gutter,this.stringValue+t):this}stripFlags(){return new Yt(!1,!1,this.gutter,this.stringValue)}decompose(){return new zt().append(this).decompose()}}Object.defineProperty(Yt.prototype,"isLine",{value:!0});class zt{constructor(){this.buffer=[]}*[Symbol.iterator](){for(const t of this.buffer)for(const n of t)yield n}get isEmpty(){return this.buffer.length===0}get hasGutter(){for(const t of this)if(t.hasGutter)return!0;return!1}get isSingle(){const t=this[Symbol.iterator]();return t.next(),t.next().done===!0}append(t){return t.isEmpty||this.buffer.push(t),this}concat(t){return new zt().append(this).append(t)}toString(t){let n=this;if(t.invert){n=new zt;let i=new zt,o=null;for(const a of this)a.gutter===Ar?(o!==null&&o.gutter!==Ar&&!i.isEmpty&&(n.append(i),i=new zt),i.append(a)):(a.gutter===qr||i.isEmpty||(n.append(i),i=new zt),n.append(a)),o=a;n.append(i)}return Array.from(n,i=>i.toString(t)).join(`
|
|
6
|
+
`)}mergeWithInfix(t,n){if(n.isEmpty)throw new Error("Cannot merge, `from` is empty.");const i=Array.from(n);if(!i[0].isFirst)throw new Error("Cannot merge, `from` has no first line.");const o=new zt;let a=!1;for(const c of this){if(a)throw new Error("Cannot merge line, the last line has already been seen.");if(!c.isLast){o.append(c);continue}a=!0;for(const h of i)h.isFirst?o.append(c.mergeWithInfix(t,h)):o.append(h)}return o}withFirstPrefixed(t){return new zt().append(Array.from(this,n=>n.withFirstPrefixed(t)))}withLastPostfixed(t){return new zt().append(Array.from(this,n=>n.withLastPostfixed(t)))}stripFlags(){return new zt().append(Array.from(this,t=>t.stripFlags()))}decompose(){const t={actual:new zt,expected:new zt},n={actual:new zt,expected:new zt},i=new zt;for(const o of this)o.isFirst&&o.gutter===Ar?t.actual.append(o):o.isFirst&&o.gutter===qr?t.expected.append(o):o.isLast&&o.gutter===Ar?n.actual.append(o):o.isLast&&o.gutter===qr?n.expected.append(o):i.append(o);return{first:t,last:n,remaining:i}}}Object.defineProperty(zt.prototype,"isCollection",{value:!0});function pb(e,t){return new zt().append(Array.from(e,n=>n.gutter===null?new Yt(n.isFirst,n.isLast,t,n.stringValue):n))}var en={buffer(){return new zt},first(e){return new Yt(!0,!1,null,e)},last(e){return new Yt(!1,!0,null,e)},line(e){return new Yt(!1,!1,null,e)},single(e){return new Yt(!0,!0,null,e)},setDefaultGutter(e){return e},actual:{first(e){return new Yt(!0,!1,Ar,e)},last(e){return new Yt(!1,!0,Ar,e)},line(e){return new Yt(!1,!1,Ar,e)},single(e){return new Yt(!0,!0,Ar,e)},setDefaultGutter(e){return pb(e,Ar)}},expected:{first(e){return new Yt(!0,!1,qr,e)},last(e){return new Yt(!1,!0,qr,e)},line(e){return new Yt(!1,!1,qr,e)},single(e){return new Yt(!0,!0,qr,e)},setDefaultGutter(e){return pb(e,qr)}}};const qo=en;function Wc(e,t){return e.open+t+e.close}Ht.wrap=Wc;function jp(e,t){if(!t.ctor)return Wc(e.object.stringTag,t.stringTag);let n=Wc(e.object.ctor,t.ctor);return t.stringTag&&t.stringTag!==t.ctor&&t.stringTag!=="Object"&&(n+=" "+Wc(e.object.secondaryStringTag,t.stringTag)),n}Ht.formatCtorAndStringTag=jp;let xO=class{constructor(t,n,i){this.object=t,this.theme=n,this.indent=i,this.increaseIndent=!0,this.innerLines=qo.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?"":jp(this.theme,this.object)+" ";return this.innerLines.isEmpty?qo.single(o+t.openBracket+t.closeBracket):qo.first(o+t.openBracket).concat(this.innerLines.withFirstPrefixed(this.indent.increase()).stripFlags()).append(qo.last(this.indent+t.closeBracket))}maxDepth(){const t=this.object.isList?this.theme.list:this.theme.object;return qo.single(jp(this.theme,this.object)+" "+t.openBracket+" "+this.theme.maxDepth+" "+t.closeBracket)}shouldFormat(){return!0}customize(t){return t.finalize&&(this.finalize=()=>t.finalize(this.innerLines)),t.maxDepth&&(this.maxDepth=t.maxDepth),t.shouldFormat&&(this.shouldFormat=t.shouldFormat),this}};Ht.ObjectFormatter=xO;class EO{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(qo.single(this.theme.maxDepth))}}Ht.SingleValueFormatter=EO;function CO(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 _O=CO,SO=9007199254740991;function FO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SO}var ag=FO;const $O=ag,TO=Object.prototype.hasOwnProperty;function kO(e){return Array.isArray(e)||TO.call(e,"length")&&$O(e.length)&&(e.length===0||"0"in e)}var LO=kO,cr={},$t={};const Vp={size:0,next(){return null}};$t.NOOP_RECURSOR=Vp;function BO(e){const t=[];return{shared(){const n=e();return n!==null&&t.push(n),n},recursor(){return t.length>0?t.shift():e()}}}$t.fork=BO;function OO(e){const t=[e];for(;t.length>0;){const n=t[t.length-1]();if(n===null){t.pop();continue}typeof n.createRecursor=="function"&&t.push(n.createRecursor())}}$t.consumeDeep=OO;function PO(e,t){return()=>{const n=e();return n===null?null:t(n)}}$t.map=PO;function NO(e,t){if(!e){const a=t();a===Vp?e=a:e=Object.assign({buffer:[],done:!1},a)}if(e===Vp)return{state:e,recursor:e};let n=!1,i=0;return{state:e,recursor:{next:()=>{if(n)return null;let a=e.buffer[i];return a===void 0&&(a=e.buffer[i]=e.next()),i++,a===null&&(n=!0),a},size:e.size}}}$t.replay=NO;function IO(e,t){let n=!0;return()=>{if(n){const i=e();if(i!==null)return i;n=!1}return t()}}$t.sequence=IO;function RO(e){let t=!1;return()=>t?null:(t=!0,e)}$t.singleValue=RO;function MO(e,t){return()=>{if(t!==null){const n=t;return t=null,n}return e()}}$t.unshift=MO;const pE=bt,zO=en,Bo=$t,ug=pE.DEEP_EQUAL,lg=pE.UNEQUAL;function UO(e){return new dg(e.size)}cr.describeIterableRecursor=UO;function HO(e){return new pg(e.size)}cr.describeListRecursor=HO;function qO(e){return new gg(e.size)}cr.describePropertyRecursor=qO;function jO(e){return new dg(e)}cr.deserializeIterableStats=jO;function VO(e){return new pg(e)}cr.deserializeListStats=VO;function WO(e){return new gg(e)}cr.deserializePropertyStats=WO;const cg=Symbol("IterableStats");cr.iterableTag=cg;const fg=Symbol("ListStats");cr.listTag=fg;const hg=Symbol("PropertyStats");cr.propertyTag=hg;class sh{constructor(t){this.size=t}formatDeep(t){return zO.single(t.stats.separator)}prepareDiff(t,n,i,o){if(t.isStats!==!0||t.tag===this.tag)return null;const a=Bo.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:Bo.unshift(n,this),rhsRecursor:Bo.unshift(i,t)};const d=Bo.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:Bo.unshift(n,p),rhsRecursor:Bo.unshift(a.recursor,c)}:null}serialize(){return this.size}}Object.defineProperty(sh.prototype,"isStats",{value:!0});class dg extends sh{compare(t){return t.tag===cg&&this.size===t.size?ug:lg}}Object.defineProperty(dg.prototype,"tag",{value:cg});class pg extends sh{compare(t){return t.tag===fg&&this.size===t.size?ug:lg}}Object.defineProperty(pg.prototype,"tag",{value:fg});class gg extends sh{compare(t){return t.tag===hg&&this.size===t.size?ug:lg}}Object.defineProperty(gg.prototype,"tag",{value:hg});const vg=bt,GO=Ht.ObjectFormatter,KO=_O,QO=LO,Kd=cr,mr=$t,XO=vg.DEEP_EQUAL,YO=vg.SHALLOW_EQUAL,gb=vg.UNEQUAL;function ZO(e){const t=e.stringTag==="Array",n=e.value;return new e3(Object.assign({isArray:t,isIterable:n[Symbol.iterator]!==void 0,isList:t||QO(n)},e))}Jt.describe=ZO;function JO(e,t){return new t3(e,t)}Jt.deserialize=JO;const gE=Symbol("ObjectValue");Jt.tag=gE;class nl{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)?gb:YO}hasSameCtor(t){return this.ctor===t.ctor}formatShallow(t,n){return new GO(this,t,n)}serialize(){return[this.ctor,this.pointer,this.stringTag,this.isArray,this.isIterable,this.isList]}}Object.defineProperty(nl.prototype,"isComplex",{value:!0});Object.defineProperty(nl.prototype,"tag",{value:gE});Jt.ObjectValue=nl;const e3=vE(nl),t3=mE(nl);function vE(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?XO:super.compare(t)}createPropertyRecursor(){const t=KO(this.value,this.isList?this.value.length:0),n=t.size;if(n===0)return mr.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 mr.NOOP_RECURSOR;const t=this.value.length;if(t===0)return mr.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 mr.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=mr.replay(this.iterableState,()=>this.createIterableRecursor());this.iterableState=c.state,o=c.recursor,i=!0,o!==mr.NOOP_RECURSOR&&(a=Kd.describeIterableRecursor(o))}}else{const c=mr.replay(this.propertyState,()=>this.createPropertyRecursor());this.propertyState=c.state,o=c.recursor,t=!0,o!==mr.NOOP_RECURSOR&&(a=Kd.describePropertyRecursor(o))}else{const c=mr.replay(this.listState,()=>this.createListRecursor());this.listState=c.state,o=c.recursor,n=!0,o!==mr.NOOP_RECURSOR&&(a=Kd.describeListRecursor(o))}while(o!==null&&a===null);return a}}}}Jt.DescribedMixin=vE;function mE(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=mr.replay(this.replayState,()=>({size:-1,next:this.deserializedRecursor}));return this.replayState=t.state,t.recursor.next}hasSameCtor(t){return this.ctor===t.ctor}}}Jt.DeserializedMixin=mE;const yE=bt,mg=Jt,n3=yE.AMBIGUOUS,bE=yE.UNEQUAL;function r3(e){return new s3(Object.assign({isArray:!0,isList:!0},e,{ctor:"Arguments"}))}xa.describe=r3;function i3(e,t){return new o3(e,t)}xa.deserialize=i3;const wE=Symbol("ArgumentsValue");xa.tag=wE;class yg extends mg.ObjectValue{compare(t){return t.isComplex!==!0?bE:t.stringTag==="Array"?n3:super.compare(t)}}Object.defineProperty(yg.prototype,"tag",{value:wE});const s3=mg.DescribedMixin(yg);class o3 extends mg.DeserializedMixin(yg){compare(t){return t.isComplex===!0&&t.stringTag==="Array"?bE:super.compare(t)}}var rl={},er={};const DE=bt,a3=Ht,pu=en,u3=cr.propertyTag,vb=$t,bg=Jt,l3=DE.DEEP_EQUAL,c3=DE.UNEQUAL;function AE(e){const t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength?t.slice(e.byteOffset,e.byteOffset+e.byteLength):t}er.getBuffer=AE;function f3(e){return new p3(Object.assign({buffer:AE(e.value),isArray:!0,isList:!0},e))}er.describe=f3;function h3(e,t){return new g3(e,t)}er.deserialize=h3;function d3(e){return new wg(e)}er.deserializeBytes=d3;const oh=Symbol("Bytes");er.bytesTag=oh;const xE=Symbol("TypedArrayValue");er.tag=xE;class wg{constructor(t){this.buffer=t}compare(t){return t.tag===oh&&this.buffer.equals(t.buffer)?l3:c3}formatDeep(t,n){const i=n,o=pu.buffer();let a="",c=!0;for(let h=0;h<this.buffer.length;h+=4)h>0&&(h%32===0?(c?(o.append(pu.first(a)),c=!1):o.append(pu.line(a)),a=String(i)):a+=" "),a+=a3.wrap(t.typedArray.bytes,this.buffer.toString("hex",h,h+4));return c?pu.single(a):o.append(pu.last(a))}serialize(){return this.buffer}}Object.defineProperty(wg.prototype,"tag",{value:oh});class ah extends bg.ObjectValue{constructor(t){super(t),this.buffer=t.buffer}formatShallow(t,n){return super.formatShallow(t,n).customize({shouldFormat(i){return i.tag===u3?i.size>1:i.isProperty===!0?i.key.value!=="byteLength":i.tag===oh?i.buffer.byteLength>0:!0}})}}Object.defineProperty(ah.prototype,"tag",{value:xE});er.TypedArrayValue=ah;function EE(e){return class extends bg.DescribedMixin(e){createListRecursor(){return vb.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 vb.unshift(super.createRecursor(),new wg(this.buffer))}}}er.DescribedMixin=EE;const p3=EE(ah);function CE(e){return class extends bg.DeserializedMixin(e){constructor(t,n){super(t,n);const i=this.createRecursor()();this.buffer=i.buffer}}}er.DeserializedMixin=CE;const g3=CE(ah),Dg=er;function v3(e){return new y3(Object.assign({buffer:Buffer.from(e.value),isArray:!0,isList:!0},e))}rl.describe=v3;function m3(e,t){return new b3(e,t)}rl.deserialize=m3;const _E=Symbol("ArrayBufferValue");rl.tag=_E;class Ag extends Dg.TypedArrayValue{}Object.defineProperty(Ag.prototype,"tag",{value:_E});const y3=Dg.DescribedMixin(Ag),b3=Dg.DeserializedMixin(Ag);var il={},ro={},Gc={},Wp={},w3={get exports(){return Wp},set exports(e){Wp=e}};(function(){function e(c){if(c==null)return!1;switch(c.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(c){if(c==null)return!1;switch(c.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function n(c){if(c==null)return!1;switch(c.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(c){return n(c)||c!=null&&c.type==="FunctionDeclaration"}function o(c){switch(c.type){case"IfStatement":return c.alternate!=null?c.alternate:c.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return c.body}return null}function a(c){var h;if(c.type!=="IfStatement"||c.alternate==null)return!1;h=c.consequent;do{if(h.type==="IfStatement"&&h.alternate==null)return!0;h=o(h)}while(h);return!1}w3.exports={isExpression:e,isStatement:n,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}})();var mf={},D3={get exports(){return mf},set exports(e){mf=e}};(function(){var e,t,n,i,o,a;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function c(E){return 48<=E&&E<=57}function h(E){return 48<=E&&E<=57||97<=E&&E<=102||65<=E&&E<=70}function d(E){return E>=48&&E<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function p(E){return E===32||E===9||E===11||E===12||E===160||E>=5760&&n.indexOf(E)>=0}function g(E){return E===10||E===13||E===8232||E===8233}function y(E){if(E<=65535)return String.fromCharCode(E);var C=String.fromCharCode(Math.floor((E-65536)/1024)+55296),S=String.fromCharCode((E-65536)%1024+56320);return C+S}for(i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||a===36||a===95;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===36||a===95;function m(E){return E<128?i[E]:t.NonAsciiIdentifierStart.test(y(E))}function A(E){return E<128?o[E]:t.NonAsciiIdentifierPart.test(y(E))}function $(E){return E<128?i[E]:e.NonAsciiIdentifierStart.test(y(E))}function L(E){return E<128?o[E]:e.NonAsciiIdentifierPart.test(y(E))}D3.exports={isDecimalDigit:c,isHexDigit:h,isOctalDigit:d,isWhiteSpace:p,isLineTerminator:g,isIdentifierStartES5:m,isIdentifierPartES5:A,isIdentifierStartES6:$,isIdentifierPartES6:L}})();var Gp={},A3={get exports(){return Gp},set exports(e){Gp=e}};(function(){var e=mf;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,E,C;if(m.length===0)return!1;for(C=e.isIdentifierStartES6,A=0,$=m.length;A<$;++A){if(L=m.charCodeAt(A),55296<=L&&L<=56319){if(++A,A>=$||(E=m.charCodeAt(A),!(56320<=E&&E<=57343)))return!1;L=d(L,E)}if(!C(L))return!1;C=e.isIdentifierPartES6}return!0}function g(m,A){return h(m)&&!o(m,A)}function y(m,A){return p(m)&&!a(m,A)}A3.exports={isKeywordES5:n,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:c,isIdentifierNameES5:h,isIdentifierNameES6:p,isIdentifierES5:g,isIdentifierES6:y}})();(function(){Gc.ast=Wp,Gc.code=mf,Gc.keyword=Gp})();var Vr=-1,Er=1,Rn=0;function ju(e,t,n,i){if(e===t)return e?[[Rn,e]]:[];if(n!=null){var o=S3(e,t,n);if(o)return o}var a=xg(e,t),c=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=Eg(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=x3(e,t);return c&&d.unshift([Rn,c]),h&&d.push([Rn,h]),SE(d,i),d}function x3(e,t){var n;if(!e)return[[Er,t]];if(!t)return[[Vr,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=[[Er,i.substring(0,a)],[Rn,o],[Er,i.substring(a+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Vr),n;if(o.length===1)return[[Vr,e],[Er,t]];var c=C3(e,t);if(c){var h=c[0],d=c[1],p=c[2],g=c[3],y=c[4],m=ju(h,p),A=ju(d,g);return m.concat([[Rn,y]],A)}return E3(e,t)}function E3(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,E=0;E<o;E++){for(var C=-E+m;C<=E-A;C+=2){var S=a+C,O;C===-E||C!==E&&h[S-1]<h[S+1]?O=h[S+1]:O=h[S-1]+1;for(var B=O-C;O<n&&B<i&&e.charAt(O)===t.charAt(B);)O++,B++;if(h[S]=O,O>n)A+=2;else if(B>i)m+=2;else if(y){var k=a+g-C;if(k>=0&&k<c&&d[k]!==-1){var M=n-d[k];if(O>=M)return mb(e,t,O,B)}}}for(var U=-E+$;U<=E-L;U+=2){var k=a+U,M;U===-E||U!==E&&d[k-1]<d[k+1]?M=d[k+1]:M=d[k-1]+1;for(var j=M-U;M<n&&j<i&&e.charAt(n-M-1)===t.charAt(i-j-1);)M++,j++;if(d[k]=M,M>n)L+=2;else if(j>i)$+=2;else if(!y){var S=a+g-U;if(S>=0&&S<c&&h[S]!==-1){var O=h[S],B=a+O-S;if(M=n-M,O>=M)return mb(e,t,O,B)}}}}return[[Vr,e],[Er,t]]}function mb(e,t,n,i){var o=e.substring(0,n),a=t.substring(0,i),c=e.substring(n),h=t.substring(i),d=ju(o,a),p=ju(c,h);return d.concat(p)}function xg(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 FE(e.charCodeAt(o-1))&&o--,o}function Eg(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 $E(e.charCodeAt(e.length-o))&&o--,o}function C3(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 E=A.substring(L,L+Math.floor(A.length/4)),C=-1,S="",O,B,k,M;(C=$.indexOf(E,C+1))!==-1;){var U=xg(A.substring(L),$.substring(C)),j=Eg(A.substring(0,L),$.substring(0,C));S.length<j+U&&(S=$.substring(C-j,C)+$.substring(C,C+U),O=A.substring(0,L-j),B=A.substring(L+U),k=$.substring(0,C-j),M=$.substring(C+U))}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 SE(e,t){e.push([Rn,""]);for(var n=0,i=0,o=0,a="",c="",h;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Er:o++,c+=e[n][1],n++;break;case Vr:i++,a+=e[n][1],n++;break;case Rn:var d=n-o-i-1;if(t){if(d>=0&&kE(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]===Er&&(o++,c=e[g][1]+c,g--),e[g]&&e[g][0]===Vr&&(i++,a=e[g][1]+a,g--),d=g}}if(TE(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=xg(c,a),h!==0&&(d>=0?e[d][1]+=c.substring(0,h):(e.splice(0,0,[Rn,c.substring(0,h)]),n++),c=c.substring(h),a=a.substring(h)),h=Eg(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,[Er,c]),n=n-y+1):c.length===0?(e.splice(n-y,y,[Vr,a]),n=n-y+1):(e.splice(n-y,y,[Vr,a],[Er,c]),n=n-y+2)}n!==0&&e[n-1][0]===Rn?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,i=0,a="",c="";break}}e[e.length-1][1]===""&&e.pop();var m=!1;for(n=1;n<e.length-1;)e[n-1][0]===Rn&&e[n+1][0]===Rn&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),m=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),m=!0)),n++;m&&SE(e,t)}function FE(e){return e>=55296&&e<=56319}function $E(e){return e>=56320&&e<=57343}function TE(e){return $E(e.charCodeAt(0))}function kE(e){return FE(e.charCodeAt(e.length-1))}function _3(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function Qd(e,t,n,i){return kE(e)||TE(i)?null:_3([[Rn,e],[Vr,t],[Er,n],[Rn,i]])}function S3(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,$),E=m.slice(0,$);if(L!==E)break e;var C=d.slice($),S=m.slice($);return Qd(L,C,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 C=p.slice(0,p.length-B),S=A.slice(0,A.length-B);return Qd(d,C,S,k)}}if(i.length>0&&o&&o.length===0)e:{var L=e.slice(0,i.index),k=e.slice(i.index+i.length),$=L.length,B=k.length;if(c<$+B)break e;var E=t.slice(0,$),M=t.slice(c-B);if(L!==E||k!==M)break e;var C=e.slice($,a-B),S=t.slice($,c-B);return Qd(L,C,S,k)}return null}function uh(e,t,n){return ju(e,t,n,!0)}uh.INSERT=Er;uh.DELETE=Vr;uh.EQUAL=Rn;var F3=uh;const $3=Gc.keyword,vc=F3,LE=bt,vn=Ht,Bt=en,T3=LE.DEEP_EQUAL,k3=LE.UNEQUAL;function BE(e){return new Cg(e)}ro.describe=BE;ro.deserialize=BE;const yf=Symbol("StringValue");ro.tag=yf;function mc(e){return e.replace(/\\/g,"\\\\")}const L3="␍␊",OE="␊",Kp="␍",PE=new RegExp(`${Kp}|${OE}|${Kp}`,"g");function B3(e){return e===`\r
|
|
7
|
+
`?L3:e===`
|
|
8
|
+
`?OE:e==="\r"?Kp:e}function Qp(e,t,n){return n.replace(PE,i=>t.close+vn.wrap(e.string.controlPicture,i)+t.open)}const O3=/'/g,P3=/"/g,N3=/`/g;function Oo(e,t){const n=e.escapeQuote;return n==="'"?t.replace(O3,"\\'"):n==='"'?t.replace(P3,'\\"'):n==="`"?t.replace(N3,"\\`"):t}function Xd(e){return e.includes("\r")||e.includes(`
|
|
9
|
+
`)}function yb(e,t,n,i){const o=vc(t,n),a=!(o.length===2&&o[0][1]===t&&o[1][1]===n||o.length===3&&o[2][0]===vc.EQUAL&&PE.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]===vc.DELETE)c+=vn.wrap(p,m[1]);else if(m[0]===vc.INSERT)h+=vn.wrap(g,m[1]);else{const A=vn.wrap(y,Qp(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=vn.wrap(m,c),h=vn.wrap(A,h)}return[c,h]}const I3=/\r\n|\r|\n/g;function Yd(e){const t=[];let n=0;for(let i;i=I3.exec(e);n=i.index+i[0].length)t.push(e.slice(n,i.index)+B3(i[0]));return t.push(e.slice(n)),t}class Cg{constructor(t){this.value=t}compare(t){return t.tag===yf&&this.value===t.value?T3:k3}get includesLinebreaks(){return Xd(this.value)}formatDeep(t,n){let i=mc(this.value);if(!this.includesLinebreaks)return i=Oo(t.string.line,i),Bt.single(vn.wrap(t.string.line,vn.wrap(t.string,i)));i=Oo(t.string.multiline,i);const o=Yd(i).map(h=>vn.wrap(t.string,Qp(t,t.string,h))),a=o.length-1,c=n;return Bt.buffer().append(o.map((h,d)=>d===0?Bt.first(t.string.multiline.start+h):d===a?Bt.last(c+h+t.string.multiline.end):Bt.line(c+h)))}formatAsKey(t){const n=this.value;if($3.isIdentifierNameES6(n,!0)||String(parseInt(n,10))===n)return n;const i=mc(n).replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/'/g,"\\'");return vn.wrap(t.string.line,vn.wrap(t.string,i))}diffDeep(t,n,i,o){if(t.tag!==yf)return null;const a=mc(this.value),c=mc(t.value);if(!Xd(a)&&!Xd(c)){const E=yb(n,Oo(n.string.line,a),Oo(n.string.line,c),o);return Bt.actual.single(vn.wrap(n.string.line,E[0])).concat(Bt.expected.single(vn.wrap(n.string.line,E[1])))}const h=Yd(Oo(n.string.multiline,a)),d=Yd(Oo(n.string.multiline,c)),p=i,g=Bt.buffer(),y=h.length-1,m=d.length-1;let A=[],$=[],L=!1;for(let E=0,C=0,S=0;E<h.length;){if(h[E]===d[C]){g.append(A),g.append($),A=[],$=[];let k=h[E];k=Qp(n,n.string.diff.equal,k),k=vn.wrap(n.string.diff.equal,k),E===0?g.append(Bt.first(n.string.multiline.start+k)):E===y&&C===m?g.append(Bt.last(p+k+n.string.multiline.end)):g.append(Bt.line(p+k)),E++,C++;continue}let O=!1;{const k=h[E];for(let M=C;!O&&M<d.length;M++)O=k===d[M]}let B=E-S>m||C>m;if(!B){const k=d[C];for(let M=E;!B&&M<h.length;M++)B=k===h[M];!B&&E-S===m&&E<y&&(B=!0)}if(B&&!O){const k=o?n.string.diff.insertLine:n.string.diff.deleteLine,M=vn.wrap(k,h[E]);E===0?(A.push(Bt.actual.first(n.string.multiline.start+M)),L=!0):E===y?A.push(Bt.actual.last(p+M+n.string.multiline.end)):A.push(Bt.actual.line(p+M)),E++,S++}else if(O&&!B){const k=o?n.string.diff.deleteLine:n.string.diff.insertLine,M=vn.wrap(k,d[C]);L?($.push(Bt.expected.first(n.string.multiline.start+M)),L=!1):C===m?$.push(Bt.expected.last(p+M+n.string.multiline.end)):$.push(Bt.expected.line(p+M)),C++}else{const k=yb(n,h[E],d[C],o);E===0?(A.push(Bt.actual.first(n.string.multiline.start+k[0])),L=!0):E===y?A.push(Bt.actual.last(p+k[0]+n.string.multiline.end)):A.push(Bt.actual.line(p+k[0])),L?($.push(Bt.expected.first(n.string.multiline.start+k[1])),L=!1):C===m?$.push(Bt.expected.last(p+k[1]+n.string.multiline.end)):$.push(Bt.expected.line(p+k[1])),E++,C++}}return g.append(A),g.append($),g}serialize(){return this.value}}Object.defineProperty(Cg.prototype,"isPrimitive",{value:!0});Object.defineProperty(Cg.prototype,"tag",{value:yf});const R3=ro.tag,bb=$t,_g=Jt;function M3(e){return new U3(e)}il.describe=M3;function z3(e,t){return new H3(e,t)}il.deserialize=z3;const NE=Symbol("BoxedValue");il.tag=NE;class Sg extends _g.ObjectValue{}Object.defineProperty(Sg.prototype,"tag",{value:NE});class U3 extends _g.DescribedMixin(Sg){constructor(t){super(t),this.unboxed=t.unboxed}createListRecursor(){return bb.NOOP_RECURSOR}createPropertyRecursor(){if(this.unboxed.tag!==R3)return super.createPropertyRecursor();try{return this.isList=!0,super.createPropertyRecursor()}finally{this.isList=!1}}createRecursor(){return bb.unshift(super.createRecursor(),this.unboxed)}}const H3=_g.DeserializedMixin(Sg);var sl={};const lh=er;function q3(e){return new V3(Object.assign({buffer:lh.getBuffer(e.value),isArray:!0,isList:!0},e))}sl.describe=q3;function j3(e,t){return new W3(e,t)}sl.deserialize=j3;const IE=Symbol("DataViewValue");sl.tag=IE;class Fg extends lh.TypedArrayValue{}Object.defineProperty(Fg.prototype,"tag",{value:IE});const V3=lh.DescribedMixin(Fg),W3=lh.DeserializedMixin(Fg);var ol={},bf={},G3={get exports(){return bf},set exports(e){bf=e}},K3=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 Q3=K3,RE=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?Q3(t):"")),e.showMilliseconds&&t.getUTCMilliseconds()>0&&(n=` ${t.getUTCMilliseconds()}ms${n}`),t.toISOString().replace(/T/," ").replace(/\..+/,n)};G3.exports=RE;bf.default=RE;const X3=bf,ME=bt,wb=Ht,yc=en,$g=Jt,Db=ME.SHALLOW_EQUAL,Y3=ME.UNEQUAL;function Z3(e){const t=e.value,n=isNaN(t.valueOf());return new tP(Object.assign({},e,{invalid:n}))}ol.describe=Z3;function J3(e,t){return new nP(e,t)}ol.deserialize=J3;const zE=Symbol("DateValue");ol.tag=zE;function eP(e){return X3({date:e,local:!1,showTimeZone:!0,showMilliseconds:!0})}class Tg extends $g.ObjectValue{constructor(t){super(t),this.invalid=t.invalid}compare(t){const n=super.compare(t);return n!==Db?n:this.invalid&&t.invalid||Object.is(this.value.getTime(),t.value.getTime())?Db:Y3}formatShallow(t,n){const i=wb.formatCtorAndStringTag(t,this)+" "+(this.invalid?t.date.invalid:wb.wrap(t.date.value,eP(this.value)))+" "+t.object.openBracket;return super.formatShallow(t,n).customize({finalize(o){return o.isEmpty?yc.single(i+t.object.closeBracket):yc.first(i).concat(o.withFirstPrefixed(n.increase()).stripFlags()).append(yc.last(n+t.object.closeBracket))},maxDepth(){return yc.single(i+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){const t=this.invalid?null:this.value.toISOString();return[this.invalid,t,super.serialize()]}}Object.defineProperty(Tg.prototype,"tag",{value:zE});const tP=$g.DescribedMixin(Tg);class nP extends $g.DeserializedMixin(Tg){constructor(t,n){super(t[2],n),this.invalid=t[0],this.value=new Date(this.invalid?NaN:t[1])}}var al={};function rP(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable}var UE=rP;const iP=bt,bc=Ht,Ab=UE,wc=en,sP=$t.NOOP_RECURSOR,kg=Jt,oP=iP.UNEQUAL;function aP(e){const t=e.value;return new lP(Object.assign({nameIsEnumerable:Ab(t,"name"),name:t.name,messageIsEnumerable:Ab(t,"message"),message:t.message},e))}al.describe=aP;function uP(e,t){return new cP(e,t)}al.deserialize=uP;const HE=Symbol("ErrorValue");al.tag=HE;class Lg extends kg.ObjectValue{constructor(t){super(t),this.name=t.name}compare(t){return this.tag===t.tag&&this.name===t.name?super.compare(t):oP}formatShallow(t,n){const i=this.name||this.ctor;let o=i?bc.wrap(t.error.name,i):bc.wrap(t.object.stringTag,this.stringTag);return this.ctor&&this.ctor!==i&&(o+=" "+bc.wrap(t.error.ctor,this.ctor)),this.stringTag&&this.stringTag!==this.ctor&&this.name&&!this.name.includes(this.stringTag)&&(o+=" "+bc.wrap(t.object.secondaryStringTag,this.stringTag)),o+=" "+t.object.openBracket,super.formatShallow(t,n).customize({finalize(a){return a.isEmpty?wc.single(o+t.object.closeBracket):wc.first(o).concat(a.withFirstPrefixed(n.increase()).stripFlags()).append(wc.last(n+t.object.closeBracket))},maxDepth(){return wc.single(o+" "+t.maxDepth+" "+t.object.closeBracket)}})}serialize(){return[this.name,super.serialize()]}}Object.defineProperty(Lg.prototype,"tag",{value:HE});class lP extends kg.DescribedMixin(Lg){constructor(t){super(t),this.nameIsEnumerable=t.nameIsEnumerable,this.messageIsEnumerable=t.messageIsEnumerable,this.message=t.message}createPropertyRecursor(){const t=super.createPropertyRecursor();let n=this.nameIsEnumerable,i=!this.messageIsEnumerable,o=t.size;if(n&&o>0&&(o-=1),i&&(o+=1),o===0)return sP;let a=!1;const c=()=>{if(a)return null;const h=t.next();return h?n&&h.key.value==="name"?(n=!1,c()):h:i?(i=!1,this.describeProperty("message",this.describeAny(this.message))):(a=!0,null)};return{size:o,next:c}}}class cP extends kg.DeserializedMixin(Lg){constructor(t,n){super(t[1],n),this.name=t[0]}}var ul={};const qE=bt,xb=Ht,fP=UE,Dc=en,hP=$t.NOOP_RECURSOR,Bg=Jt,Zo=qE.UNEQUAL,dP=qE.SHALLOW_EQUAL;function pP(e){const t=e.value;return new vP(Object.assign({nameIsEnumerable:fP(t,"name"),name:typeof t.name=="string"?t.name:null},e))}ul.describe=pP;function gP(e,t){return new mP(e,t)}ul.deserialize=gP;const jE=Symbol("FunctionValue");ul.tag=jE;class Og extends Bg.ObjectValue{constructor(t){super(t),this.name=t.name}formatShallow(t,n){const i=xb.wrap(t.function.stringTag,this.stringTag)+(this.name?" "+xb.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(Og.prototype,"tag",{value:jE});class vP extends Bg.DescribedMixin(Og){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?Zo: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 hP;const o=()=>{const a=t.next();return a?n&&a.key.value==="name"?o():a:null};return{size:i,next:o}}serialize(){return[this.name,super.serialize()]}}class mP extends Bg.DeserializedMixin(Og){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?Zo:dP}serialize(){return[this.name,super.serialize()]}}var ll={};const VE=bt,yP=Ht,bP=en,wP=VE.DEEP_EQUAL,DP=VE.UNEQUAL;function WE(){return new Pg}ll.describe=WE;ll.deserialize=WE;const GE=Symbol("GlobalValue");ll.tag=GE;class Pg{compare(t){return this.tag===t.tag?wP:DP}formatDeep(t){return bP.single(yP.wrap(t.global,"Global")+" "+t.object.openBracket+t.object.closeBracket)}}Object.defineProperty(Pg.prototype,"isComplex",{value:!0});Object.defineProperty(Pg.prototype,"tag",{value:GE});var cl={};const KE=bt,AP=$t,Ng=Jt,Eb=KE.SHALLOW_EQUAL,xP=KE.UNEQUAL;function EP(e){return new _P(Object.assign({size:e.value.size},e))}cl.describe=EP;function CP(e,t){return new SP(e,t)}cl.deserialize=CP;const QE=Symbol("MapValue");cl.tag=QE;class Ig extends Ng.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==Eb?n:this.size===t.size?Eb:xP}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(Ig.prototype,"tag",{value:QE});class _P extends Ng.DescribedMixin(Ig){createIterableRecursor(){const t=this.size;if(t===0)return AP.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 SP extends Ng.DeserializedMixin(Ig){constructor(t,n){super(t[1],n),this.size=t[0]}}var fl={};const XE=bt,Rg=Jt,Cb=XE.DEEP_EQUAL,FP=XE.UNEQUAL;function $P(e){return new kP(e)}fl.describe=$P;function TP(e){return new LP(e)}fl.deserialize=TP;const YE=Symbol("PromiseValue");fl.tag=YE;class Mg extends Rg.ObjectValue{}Object.defineProperty(Mg.prototype,"tag",{value:YE});class kP extends Rg.DescribedMixin(Mg){compare(t){return super.compare(t)===Cb?Cb:FP}}class LP extends Rg.DeserializedMixin(Mg){compare(t){return super.compare(t)}}var hl={};const BP=bt,Ac=Ht,Po=en,zg=Jt,OP=BP.UNEQUAL;function PP(e){const t=e.value;return new RP(Object.assign({flags:IP(t),source:t.source},e))}hl.describe=PP;function NP(e,t){return new MP(e,t)}hl.deserialize=NP;const ZE=Symbol("RegexpValue");hl.tag=ZE;function IP(e){return(e.flags||String(e).slice(e.source.length+2)).split("").sort().join("")}class Ug extends zg.ObjectValue{constructor(t){super(t),this.flags=t.flags,this.source=t.source}compare(t){return this.tag===t.tag&&this.flags===t.flags&&this.source===t.source?super.compare(t):OP}formatShallow(t,n){const i=this.ctor||this.stringTag,o=Ac.wrap(t.regexp.source,this.source)+Ac.wrap(t.regexp.flags,this.flags);return super.formatShallow(t,n).customize({finalize:a=>{if(i==="RegExp"&&a.isEmpty)return Po.single(o);const c=n.increase(),h=Po.first(Ac.formatCtorAndStringTag(t,this)+" "+t.object.openBracket).concat(Po.line(c+o));return a.isEmpty||(h.append(Po.line(c+t.regexp.separator)),h.append(a.withFirstPrefixed(c).stripFlags())),h.append(Po.last(n+t.object.closeBracket))},maxDepth:()=>Po.single(Ac.formatCtorAndStringTag(t,this)+" "+t.object.openBracket+" "+o+" "+t.maxDepth+" "+t.object.closeBracket)})}serialize(){return[this.flags,this.source,super.serialize()]}}Object.defineProperty(Ug.prototype,"tag",{value:ZE});const RP=zg.DescribedMixin(Ug);class MP extends zg.DeserializedMixin(Ug){constructor(t,n){super(t[2],n),this.flags=t[0],this.source=t[1]}}var dl={};const JE=bt,zP=$t,Hg=Jt,_b=JE.SHALLOW_EQUAL,UP=JE.UNEQUAL;function HP(e){return new jP(Object.assign({size:e.value.size},e))}dl.describe=HP;function qP(e,t){return new VP(e,t)}dl.deserialize=qP;const eC=Symbol("SetValue");dl.tag=eC;class qg extends Hg.ObjectValue{constructor(t){super(t),this.size=t.size}compare(t){const n=super.compare(t);return n!==_b?n:this.size===t.size?_b:UP}prepareDiff(t){return{compareResult:super.compare(t)}}serialize(){return[this.size,super.serialize()]}}Object.defineProperty(qg.prototype,"tag",{value:eC});class jP extends Hg.DescribedMixin(qg){createIterableRecursor(){const t=this.size;if(t===0)return zP.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 VP extends Hg.DeserializedMixin(qg){constructor(t,n){super(t[1],n),this.size=t[0]}}const WP=Object.prototype.hasOwnProperty;function GP(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(!WP.call(t,n))return null;return e}return null}var KP=GP,Xp={},Sb={get exports(){return Xp},set exports(e){Xp=e}};const QP=Object.prototype.toString;function Zd(e){return QP.call(e).slice(8,-1)}const tC=Function.prototype.toString,XP=tC.call(Promise),YP=e=>{if(!e.constructor)return!1;try{return tC.call(e.constructor)===XP}catch{return!1}};if(Zd(Promise.resolve())==="Promise")Sb.exports=Zd;else{const e=t=>{const n=Zd(t);return n==="Object"&&YP(t)?"Promise":n};Sb.exports=e}var Li={};const nC=bt,ZP=Ht,sr=$t,Yp=nC.DEEP_EQUAL,jo=nC.UNEQUAL;function JP(e,t){return new ch(e,t)}Li.describeComplex=JP;function e8(e,t){const n=t();return new ch(e,n)}Li.deserializeComplex=e8;function t8(e,t){return new fh(e,t)}Li.describePrimitive=t8;function n8(e){const t=e[0],n=e[1];return new fh(t,n)}Li.deserializePrimitive=n8;const ts=Symbol("ComplexItem");Li.complexTag=ts;const ha=Symbol("PrimitiveItem");Li.primitiveTag=ha;class ch{constructor(t,n){this.index=t,this.value=n}createRecursor(){return sr.singleValue(this.value)}compare(t){return t.tag===ts&&this.index===t.index?this.value.compare(t.value):jo}formatShallow(t,n){const i=t.item.increaseValueIndent===!0;return new ZP.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:jo};const c=sr.fork(n),h=sr.fork(i),d=t;let p=!1;for(;!p&&t!==null&&t.isItem===!0;)t.tag===ts&&(p=o(this.value,t.value)!==jo),t=h.shared();let g=!1;if(d.tag===ts){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===ts&&(g=o(m.value,d.value)!==jo),m=c.shared()}else if(d.tag===ha){let m=this;for(;!g&&m!==null&&m.isItem===!0;)m.tag===ha&&(g=d.value.compare(m.value)===Yp),m=c.shared()}if(g&&!p)return{actualIsExtraneous:!0,lhsRecursor:c.recursor,rhsRecursor:sr.map(sr.unshift(h.recursor,d),m=>(m.isItem!==!0||m.index++,m))};if(p&&!g)return{expectedIsMissing:!0,lhsRecursor:sr.map(sr.unshift(c.recursor,this),m=>(m.isItem!==!0||m.index++,m)),rhsRecursor:h.recursor};const y=this.tag===ts&&d.tag===ts&&this.value.compare(d.value)!==jo;return{mustRecurse:y,isUnequal:!y,lhsRecursor:c.recursor,rhsRecursor:h.recursor}}serialize(){return this.index}}Object.defineProperty(ch.prototype,"isItem",{value:!0});Object.defineProperty(ch.prototype,"tag",{value:ts});class fh{constructor(t,n){this.index=t,this.value=n}compare(t){return t.tag===ha&&this.index===t.index?this.value.compare(t.value):jo}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===Yp)return{compareResult:c};if(t.tag===ha&&this.value.tag===t.value.tag&&typeof this.value.diffDeep=="function")return{compareResult:c};const h=sr.fork(i),d=t;do{if(t===null||t.isItem!==!0)return{actualIsExtraneous:!0,rhsRecursor:sr.map(sr.unshift(h.recursor,d),p=>(p.isItem!==!0||p.index++,p))};if(this.value.compare(t.value)===Yp)return{expectedIsMissing:!0,lhsRecursor:sr.map(sr.unshift(n,this),p=>(p.isItem!==!0||p.index++,p)),rhsRecursor:h.recursor};t=h.shared()}while(!0)}diffDeep(t,n,i,o){if(this.tag!==t.tag||typeof this.value.diffDeep!="function")return null;const c=n.property.increaseValueIndent===!0?i.increase():i,h=this.value.diffDeep(t.value,n,c,o);return h===null?null:typeof n.item.customFormat=="function"?n.item.customFormat(n,i,h):h.withLastPostfixed(n.item.after)}serialize(){return[this.index,this.value]}}Object.defineProperty(fh.prototype,"isItem",{value:!0});Object.defineProperty(fh.prototype,"tag",{value:ha});var pl={},No={};function r8(){this.__data__=[],this.size=0}var i8=r8;function s8(e,t){return e===t||e!==e&&t!==t}var hh=s8,o8=hh;function a8(e,t){for(var n=e.length;n--;)if(o8(e[n][0],t))return n;return-1}var dh=a8,u8=dh,l8=Array.prototype,c8=l8.splice;function f8(e){var t=this.__data__,n=u8(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():c8.call(t,n,1),--this.size,!0}var h8=f8,d8=dh;function p8(e){var t=this.__data__,n=d8(t,e);return n<0?void 0:t[n][1]}var g8=p8,v8=dh;function m8(e){return v8(this.__data__,e)>-1}var y8=m8,b8=dh;function w8(e,t){var n=this.__data__,i=b8(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var D8=w8,A8=i8,x8=h8,E8=g8,C8=y8,_8=D8;function Ea(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])}}Ea.prototype.clear=A8;Ea.prototype.delete=x8;Ea.prototype.get=E8;Ea.prototype.has=C8;Ea.prototype.set=_8;var ph=Ea,S8=ph;function F8(){this.__data__=new S8,this.size=0}var $8=F8;function T8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var k8=T8;function L8(e){return this.__data__.get(e)}var B8=L8;function O8(e){return this.__data__.has(e)}var P8=O8,N8=typeof ur=="object"&&ur&&ur.Object===Object&&ur,rC=N8,I8=rC,R8=typeof self=="object"&&self&&self.Object===Object&&self,M8=I8||R8||Function("return this")(),Zr=M8,z8=Zr,U8=z8.Symbol,gh=U8,Fb=gh,iC=Object.prototype,H8=iC.hasOwnProperty,q8=iC.toString,gu=Fb?Fb.toStringTag:void 0;function j8(e){var t=H8.call(e,gu),n=e[gu];try{e[gu]=void 0;var i=!0}catch{}var o=q8.call(e);return i&&(t?e[gu]=n:delete e[gu]),o}var V8=j8,W8=Object.prototype,G8=W8.toString;function K8(e){return G8.call(e)}var Q8=K8,$b=gh,X8=V8,Y8=Q8,Z8="[object Null]",J8="[object Undefined]",Tb=$b?$b.toStringTag:void 0;function eN(e){return e==null?e===void 0?J8:Z8:Tb&&Tb in Object(e)?X8(e):Y8(e)}var gl=eN;function tN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gs=tN,nN=gl,rN=gs,iN="[object AsyncFunction]",sN="[object Function]",oN="[object GeneratorFunction]",aN="[object Proxy]";function uN(e){if(!rN(e))return!1;var t=nN(e);return t==sN||t==oN||t==iN||t==aN}var jg=uN,lN=Zr,cN=lN["__core-js_shared__"],fN=cN,Jd=fN,kb=function(){var e=/[^.]+$/.exec(Jd&&Jd.keys&&Jd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hN(e){return!!kb&&kb in e}var dN=hN,pN=Function.prototype,gN=pN.toString;function vN(e){if(e!=null){try{return gN.call(e)}catch{}try{return e+""}catch{}}return""}var sC=vN,mN=jg,yN=dN,bN=gs,wN=sC,DN=/[\\^$.*+?()[\]{}|]/g,AN=/^\[object .+?Constructor\]$/,xN=Function.prototype,EN=Object.prototype,CN=xN.toString,_N=EN.hasOwnProperty,SN=RegExp("^"+CN.call(_N).replace(DN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FN(e){if(!bN(e)||yN(e))return!1;var t=mN(e)?SN:AN;return t.test(wN(e))}var $N=FN;function TN(e,t){return e==null?void 0:e[t]}var kN=TN,LN=$N,BN=kN;function ON(e,t){var n=BN(e,t);return LN(n)?n:void 0}var io=ON,PN=io,NN=Zr,IN=PN(NN,"Map"),Vg=IN,RN=io,MN=RN(Object,"create"),vh=MN,Lb=vh;function zN(){this.__data__=Lb?Lb(null):{},this.size=0}var UN=zN;function HN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qN=HN,jN=vh,VN="__lodash_hash_undefined__",WN=Object.prototype,GN=WN.hasOwnProperty;function KN(e){var t=this.__data__;if(jN){var n=t[e];return n===VN?void 0:n}return GN.call(t,e)?t[e]:void 0}var QN=KN,XN=vh,YN=Object.prototype,ZN=YN.hasOwnProperty;function JN(e){var t=this.__data__;return XN?t[e]!==void 0:ZN.call(t,e)}var eI=JN,tI=vh,nI="__lodash_hash_undefined__";function rI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tI&&t===void 0?nI:t,this}var iI=rI,sI=UN,oI=qN,aI=QN,uI=eI,lI=iI;function Ca(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])}}Ca.prototype.clear=sI;Ca.prototype.delete=oI;Ca.prototype.get=aI;Ca.prototype.has=uI;Ca.prototype.set=lI;var cI=Ca,Bb=cI,fI=ph,hI=Vg;function dI(){this.size=0,this.__data__={hash:new Bb,map:new(hI||fI),string:new Bb}}var pI=dI;function gI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vI=gI,mI=vI;function yI(e,t){var n=e.__data__;return mI(t)?n[typeof t=="string"?"string":"hash"]:n.map}var mh=yI,bI=mh;function wI(e){var t=bI(this,e).delete(e);return this.size-=t?1:0,t}var DI=wI,AI=mh;function xI(e){return AI(this,e).get(e)}var EI=xI,CI=mh;function _I(e){return CI(this,e).has(e)}var SI=_I,FI=mh;function $I(e,t){var n=FI(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var TI=$I,kI=pI,LI=DI,BI=EI,OI=SI,PI=TI;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}_a.prototype.clear=kI;_a.prototype.delete=LI;_a.prototype.get=BI;_a.prototype.has=OI;_a.prototype.set=PI;var NI=_a,II=ph,RI=Vg,MI=NI,zI=200;function UI(e,t){var n=this.__data__;if(n instanceof II){var i=n.__data__;if(!RI||i.length<zI-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MI(i)}return n.set(e,t),this.size=n.size,this}var HI=UI,qI=ph,jI=$8,VI=k8,WI=B8,GI=P8,KI=HI;function Sa(e){var t=this.__data__=new qI(e);this.size=t.size}Sa.prototype.clear=jI;Sa.prototype.delete=VI;Sa.prototype.get=WI;Sa.prototype.has=GI;Sa.prototype.set=KI;var oC=Sa;function QI(e,t){for(var n=-1,i=e==null?0:e.length;++n<i&&t(e[n],n,e)!==!1;);return e}var XI=QI,YI=io,ZI=function(){try{var e=YI(Object,"defineProperty");return e({},"",{}),e}catch{}}(),aC=ZI,Ob=aC;function JI(e,t,n){t=="__proto__"&&Ob?Ob(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Wg=JI,eR=Wg,tR=hh,nR=Object.prototype,rR=nR.hasOwnProperty;function iR(e,t,n){var i=e[t];(!(rR.call(e,t)&&tR(i,n))||n===void 0&&!(t in e))&&eR(e,t,n)}var uC=iR,sR=uC,oR=Wg;function aR(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?oR(n,h,d):sR(n,h,d)}return n}var vl=aR;function uR(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var lR=uR;function cR(e){return e!=null&&typeof e=="object"}var so=cR,fR=gl,hR=so,dR="[object Arguments]";function pR(e){return hR(e)&&fR(e)==dR}var gR=pR,Pb=gR,vR=so,lC=Object.prototype,mR=lC.hasOwnProperty,yR=lC.propertyIsEnumerable,bR=Pb(function(){return arguments}())?Pb:function(e){return vR(e)&&mR.call(e,"callee")&&!yR.call(e,"callee")},Gg=bR,wR=Array.isArray,ml=wR,da={},DR={get exports(){return da},set exports(e){da=e}};function AR(){return!1}var xR=AR;(function(e,t){var n=Zr,i=xR,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})(DR,da);var ER=9007199254740991,CR=/^(?:0|[1-9]\d*)$/;function _R(e,t){var n=typeof e;return t=t??ER,!!t&&(n=="number"||n!="symbol"&&CR.test(e))&&e>-1&&e%1==0&&e<t}var cC=_R,SR=gl,FR=ag,$R=so,TR="[object Arguments]",kR="[object Array]",LR="[object Boolean]",BR="[object Date]",OR="[object Error]",PR="[object Function]",NR="[object Map]",IR="[object Number]",RR="[object Object]",MR="[object RegExp]",zR="[object Set]",UR="[object String]",HR="[object WeakMap]",qR="[object ArrayBuffer]",jR="[object DataView]",VR="[object Float32Array]",WR="[object Float64Array]",GR="[object Int8Array]",KR="[object Int16Array]",QR="[object Int32Array]",XR="[object Uint8Array]",YR="[object Uint8ClampedArray]",ZR="[object Uint16Array]",JR="[object Uint32Array]",Et={};Et[VR]=Et[WR]=Et[GR]=Et[KR]=Et[QR]=Et[XR]=Et[YR]=Et[ZR]=Et[JR]=!0;Et[TR]=Et[kR]=Et[qR]=Et[LR]=Et[jR]=Et[BR]=Et[OR]=Et[PR]=Et[NR]=Et[IR]=Et[RR]=Et[MR]=Et[zR]=Et[UR]=Et[HR]=!1;function eM(e){return $R(e)&&FR(e.length)&&!!Et[SR(e)]}var tM=eM;function nM(e){return function(t){return e(t)}}var Kg=nM,pa={},rM={get exports(){return pa},set exports(e){pa=e}};(function(e,t){var n=rC,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})(rM,pa);var iM=tM,sM=Kg,Nb=pa,Ib=Nb&&Nb.isTypedArray,oM=Ib?sM(Ib):iM,fC=oM,aM=lR,uM=Gg,lM=ml,cM=da,fM=cC,hM=fC,dM=Object.prototype,pM=dM.hasOwnProperty;function gM(e,t){var n=lM(e),i=!n&&uM(e),o=!n&&!i&&cM(e),a=!n&&!i&&!o&&hM(e),c=n||i||o||a,h=c?aM(e.length,String):[],d=h.length;for(var p in e)(t||pM.call(e,p))&&!(c&&(p=="length"||o&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||fM(p,d)))&&h.push(p);return h}var hC=gM,vM=Object.prototype;function mM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||vM;return e===n}var Qg=mM;function yM(e,t){return function(n){return e(t(n))}}var dC=yM,bM=dC,wM=bM(Object.keys,Object),DM=wM,AM=Qg,xM=DM,EM=Object.prototype,CM=EM.hasOwnProperty;function _M(e){if(!AM(e))return xM(e);var t=[];for(var n in Object(e))CM.call(e,n)&&n!="constructor"&&t.push(n);return t}var SM=_M,FM=jg,$M=ag;function TM(e){return e!=null&&$M(e.length)&&!FM(e)}var yh=TM,kM=hC,LM=SM,BM=yh;function OM(e){return BM(e)?kM(e):LM(e)}var Xg=OM,PM=vl,NM=Xg;function IM(e,t){return e&&PM(t,NM(t),e)}var RM=IM;function MM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zM=MM,UM=gs,HM=Qg,qM=zM,jM=Object.prototype,VM=jM.hasOwnProperty;function WM(e){if(!UM(e))return qM(e);var t=HM(e),n=[];for(var i in e)i=="constructor"&&(t||!VM.call(e,i))||n.push(i);return n}var GM=WM,KM=hC,QM=GM,XM=yh;function YM(e){return XM(e)?KM(e,!0):QM(e)}var yl=YM,ZM=vl,JM=yl;function e5(e,t){return e&&ZM(t,JM(t),e)}var t5=e5,Vu={},n5={get exports(){return Vu},set exports(e){Vu=e}};(function(e,t){var n=Zr,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,c=a?n.Buffer:void 0,h=c?c.allocUnsafe:void 0;function d(p,g){if(g)return p.slice();var y=p.length,m=h?h(y):new p.constructor(y);return p.copy(m),m}e.exports=d})(n5,Vu);function r5(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}var pC=r5;function i5(e,t){for(var n=-1,i=e==null?0:e.length,o=0,a=[];++n<i;){var c=e[n];t(c,n,e)&&(a[o++]=c)}return a}var s5=i5;function o5(){return[]}var gC=o5,a5=s5,u5=gC,l5=Object.prototype,c5=l5.propertyIsEnumerable,Rb=Object.getOwnPropertySymbols,f5=Rb?function(e){return e==null?[]:(e=Object(e),a5(Rb(e),function(t){return c5.call(e,t)}))}:u5,Yg=f5,h5=vl,d5=Yg;function p5(e,t){return h5(e,d5(e),t)}var g5=p5;function v5(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}var Zg=v5,m5=dC,y5=m5(Object.getPrototypeOf,Object),Jg=y5,b5=Zg,w5=Jg,D5=Yg,A5=gC,x5=Object.getOwnPropertySymbols,E5=x5?function(e){for(var t=[];e;)b5(t,D5(e)),e=w5(e);return t}:A5,vC=E5,C5=vl,_5=vC;function S5(e,t){return C5(e,_5(e),t)}var F5=S5,$5=Zg,T5=ml;function k5(e,t,n){var i=t(e);return T5(e)?i:$5(i,n(e))}var mC=k5,L5=mC,B5=Yg,O5=Xg;function P5(e){return L5(e,O5,B5)}var N5=P5,I5=mC,R5=vC,M5=yl;function z5(e){return I5(e,M5,R5)}var U5=z5,H5=io,q5=Zr,j5=H5(q5,"DataView"),V5=j5,W5=io,G5=Zr,K5=W5(G5,"Promise"),Q5=K5,X5=io,Y5=Zr,Z5=X5(Y5,"Set"),J5=Z5,e6=io,t6=Zr,n6=e6(t6,"WeakMap"),r6=n6,Zp=V5,Jp=Vg,e0=Q5,t0=J5,n0=r6,yC=gl,Fa=sC,Mb="[object Map]",i6="[object Object]",zb="[object Promise]",Ub="[object Set]",Hb="[object WeakMap]",qb="[object DataView]",s6=Fa(Zp),o6=Fa(Jp),a6=Fa(e0),u6=Fa(t0),l6=Fa(n0),Ps=yC;(Zp&&Ps(new Zp(new ArrayBuffer(1)))!=qb||Jp&&Ps(new Jp)!=Mb||e0&&Ps(e0.resolve())!=zb||t0&&Ps(new t0)!=Ub||n0&&Ps(new n0)!=Hb)&&(Ps=function(e){var t=yC(e),n=t==i6?e.constructor:void 0,i=n?Fa(n):"";if(i)switch(i){case s6:return qb;case o6:return Mb;case a6:return zb;case u6:return Ub;case l6:return Hb}return t});var ev=Ps,c6=Object.prototype,f6=c6.hasOwnProperty;function h6(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&f6.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var d6=h6,p6=Zr,g6=p6.Uint8Array,v6=g6,jb=v6;function m6(e){var t=new e.constructor(e.byteLength);return new jb(t).set(new jb(e)),t}var tv=m6,y6=tv;function b6(e,t){var n=t?y6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var w6=b6,D6=/\w*$/;function A6(e){var t=new e.constructor(e.source,D6.exec(e));return t.lastIndex=e.lastIndex,t}var x6=A6,Vb=gh,Wb=Vb?Vb.prototype:void 0,Gb=Wb?Wb.valueOf:void 0;function E6(e){return Gb?Object(Gb.call(e)):{}}var C6=E6,_6=tv;function S6(e,t){var n=t?_6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var bC=S6,F6=tv,$6=w6,T6=x6,k6=C6,L6=bC,B6="[object Boolean]",O6="[object Date]",P6="[object Map]",N6="[object Number]",I6="[object RegExp]",R6="[object Set]",M6="[object String]",z6="[object Symbol]",U6="[object ArrayBuffer]",H6="[object DataView]",q6="[object Float32Array]",j6="[object Float64Array]",V6="[object Int8Array]",W6="[object Int16Array]",G6="[object Int32Array]",K6="[object Uint8Array]",Q6="[object Uint8ClampedArray]",X6="[object Uint16Array]",Y6="[object Uint32Array]";function Z6(e,t,n){var i=e.constructor;switch(t){case U6:return F6(e);case B6:case O6:return new i(+e);case H6:return $6(e,n);case q6:case j6:case V6:case W6:case G6:case K6:case Q6:case X6:case Y6:return L6(e,n);case P6:return new i;case N6:case M6:return new i(e);case I6:return T6(e);case R6:return new i;case z6:return k6(e)}}var J6=Z6,e4=gs,Kb=Object.create,t4=function(){function e(){}return function(t){if(!e4(t))return{};if(Kb)return Kb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),n4=t4,r4=n4,i4=Jg,s4=Qg;function o4(e){return typeof e.constructor=="function"&&!s4(e)?r4(i4(e)):{}}var wC=o4,a4=ev,u4=so,l4="[object Map]";function c4(e){return u4(e)&&a4(e)==l4}var f4=c4,h4=f4,d4=Kg,Qb=pa,Xb=Qb&&Qb.isMap,p4=Xb?d4(Xb):h4,g4=p4,v4=ev,m4=so,y4="[object Set]";function b4(e){return m4(e)&&v4(e)==y4}var w4=b4,D4=w4,A4=Kg,Yb=pa,Zb=Yb&&Yb.isSet,x4=Zb?A4(Zb):D4,E4=x4,C4=oC,_4=XI,S4=uC,F4=RM,$4=t5,T4=Vu,k4=pC,L4=g5,B4=F5,O4=N5,P4=U5,N4=ev,I4=d6,R4=J6,M4=wC,z4=ml,U4=da,H4=g4,q4=gs,j4=E4,V4=Xg,W4=yl,G4=1,K4=2,Q4=4,DC="[object Arguments]",X4="[object Array]",Y4="[object Boolean]",Z4="[object Date]",J4="[object Error]",AC="[object Function]",ez="[object GeneratorFunction]",tz="[object Map]",nz="[object Number]",xC="[object Object]",rz="[object RegExp]",iz="[object Set]",sz="[object String]",oz="[object Symbol]",az="[object WeakMap]",uz="[object ArrayBuffer]",lz="[object DataView]",cz="[object Float32Array]",fz="[object Float64Array]",hz="[object Int8Array]",dz="[object Int16Array]",pz="[object Int32Array]",gz="[object Uint8Array]",vz="[object Uint8ClampedArray]",mz="[object Uint16Array]",yz="[object Uint32Array]",At={};At[DC]=At[X4]=At[uz]=At[lz]=At[Y4]=At[Z4]=At[cz]=At[fz]=At[hz]=At[dz]=At[pz]=At[tz]=At[nz]=At[xC]=At[rz]=At[iz]=At[sz]=At[oz]=At[gz]=At[vz]=At[mz]=At[yz]=!0;At[J4]=At[AC]=At[az]=!1;function Kc(e,t,n,i,o,a){var c,h=t&G4,d=t&K4,p=t&Q4;if(n&&(c=o?n(e,i,o,a):n(e)),c!==void 0)return c;if(!q4(e))return e;var g=z4(e);if(g){if(c=I4(e),!h)return k4(e,c)}else{var y=N4(e),m=y==AC||y==ez;if(U4(e))return T4(e,h);if(y==xC||y==DC||m&&!o){if(c=d||m?{}:M4(e),!h)return d?B4(e,$4(c,e)):L4(e,F4(c,e))}else{if(!At[y])return o?e:{};c=R4(e,y,h)}}a||(a=new C4);var A=a.get(e);if(A)return A;a.set(e,c),j4(e)?e.forEach(function(E){c.add(Kc(E,t,n,E,e,a))}):H4(e)&&e.forEach(function(E,C){c.set(C,Kc(E,t,n,C,e,a))});var $=p?d?P4:O4:d?W4:V4,L=g?void 0:$(e);return _4(L||e,function(E,C){L&&(C=E,E=e[C]),S4(c,C,Kc(E,t,n,C,e,a))}),c}var bz=Kc,wz=bz,Dz=1,Az=4;function xz(e){return wz(e,Dz|Az)}var Ez=xz,Cz=Wg,_z=hh;function Sz(e,t,n){(n!==void 0&&!_z(e[t],n)||n===void 0&&!(t in e))&&Cz(e,t,n)}var EC=Sz;function Fz(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 $z=Fz,Tz=$z,kz=Tz(),Lz=kz,Bz=yh,Oz=so;function Pz(e){return Oz(e)&&Bz(e)}var Nz=Pz,Iz=gl,Rz=Jg,Mz=so,zz="[object Object]",Uz=Function.prototype,Hz=Object.prototype,CC=Uz.toString,qz=Hz.hasOwnProperty,jz=CC.call(Object);function Vz(e){if(!Mz(e)||Iz(e)!=zz)return!1;var t=Rz(e);if(t===null)return!0;var n=qz.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&CC.call(n)==jz}var Wz=Vz;function Gz(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _C=Gz,Kz=vl,Qz=yl;function Xz(e){return Kz(e,Qz(e))}var Yz=Xz,Jb=EC,Zz=Vu,Jz=bC,e9=pC,t9=wC,ew=Gg,tw=ml,n9=Nz,r9=da,i9=jg,s9=gs,o9=Wz,a9=fC,nw=_C,u9=Yz;function l9(e,t,n,i,o,a,c){var h=nw(e,n),d=nw(t,n),p=c.get(d);if(p){Jb(e,n,p);return}var g=a?a(h,d,n+"",e,t,c):void 0,y=g===void 0;if(y){var m=tw(d),A=!m&&r9(d),$=!m&&!A&&a9(d);g=d,m||A||$?tw(h)?g=h:n9(h)?g=e9(h):A?(y=!1,g=Zz(d,!0)):$?(y=!1,g=Jz(d,!0)):g=[]:o9(d)||ew(d)?(g=h,ew(h)?g=u9(h):(!s9(h)||i9(h))&&(g=t9(d))):y=!1}y&&(c.set(d,g),o(g,d,i,a,c),c.delete(d)),Jb(e,n,g)}var c9=l9,f9=oC,h9=EC,d9=Lz,p9=c9,g9=gs,v9=yl,m9=_C;function SC(e,t,n,i,o){e!==t&&d9(t,function(a,c){if(o||(o=new f9),g9(a))p9(e,t,c,n,SC,i,o);else{var h=i?i(m9(e,c),a,c+"",e,t,o):void 0;h===void 0&&(h=a),h9(e,c,h)}},v9)}var y9=SC;function b9(e){return e}var FC=b9;function w9(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 D9=w9,A9=D9,rw=Math.max;function x9(e,t,n){return t=rw(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=rw(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),A9(e,this,h)}}var E9=x9;function C9(e){return function(){return e}}var _9=C9,S9=_9,iw=aC,F9=FC,$9=iw?function(e,t){return iw(e,"toString",{configurable:!0,enumerable:!1,value:S9(t),writable:!0})}:F9,T9=$9,k9=800,L9=16,B9=Date.now;function O9(e){var t=0,n=0;return function(){var i=B9(),o=L9-(i-n);if(n=i,o>0){if(++t>=k9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var P9=O9,N9=T9,I9=P9,R9=I9(N9),M9=R9,z9=FC,U9=E9,H9=M9;function q9(e,t){return H9(U9(e,t,z9),e+"")}var j9=q9,V9=hh,W9=yh,G9=cC,K9=gs;function Q9(e,t,n){if(!K9(n))return!1;var i=typeof t;return(i=="number"?W9(n)&&G9(t,n.length):i=="string"&&t in n)?V9(n[t],e):!1}var X9=Q9,Y9=j9,Z9=X9;function J9(e){return Y9(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&&Z9(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 e7=J9,t7=y9,n7=e7,r7=n7(function(e,t,n){t7(e,t,n)}),i7=r7,ks={},Fi={},s7={get exports(){return Fi},set exports(e){Fi=e}};const o7="2.0.0",a7=256,u7=Number.MAX_SAFE_INTEGER||9007199254740991,l7=16;var bh={SEMVER_SPEC_VERSION:o7,MAX_LENGTH:a7,MAX_SAFE_INTEGER:u7,MAX_SAFE_COMPONENT_LENGTH:l7};const c7=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var wh=c7;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=bh,i=wh;t=e.exports={};const o=t.re=[],a=t.src=[],c=t.t={};let h=0;const d=(p,g,y)=>{const m=h++;i(p,m,g),c[p]=m,a[m]=g,o[m]=new RegExp(g,y?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","[0-9]+"),d("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),d("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${a[c.NUMERICIDENTIFIER]}|${a[c.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NUMERICIDENTIFIERLOOSE]}|${a[c.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER","[0-9A-Za-z-]+"),d("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`),d("FULL",`^${a[c.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`),d("LOOSE",`^${a[c.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`),d("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`),d("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),d("COERCERTL",a[c.COERCE],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(s7,Fi);const f7=["includePrerelease","loose","rtl"],h7=e=>e?typeof e!="object"?{loose:!0}:f7.filter(t=>e[t]).reduce((t,n)=>(t[n]=!0,t),{}):{};var Dh=h7;const sw=/^[0-9]+$/,$C=(e,t)=>{const n=sw.test(e),i=sw.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},d7=(e,t)=>$C(t,e);var TC={compareIdentifiers:$C,rcompareIdentifiers:d7};const xc=wh,{MAX_LENGTH:ow,MAX_SAFE_INTEGER:Ec}=bh,{re:aw,t:uw}=Fi,p7=Dh,{compareIdentifiers:Io}=TC;let g7=class zr{constructor(t,n){if(n=p7(n),t instanceof zr){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>ow)throw new TypeError(`version is longer than ${ow} characters`);xc("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const i=t.trim().match(n.loose?aw[uw.LOOSE]:aw[uw.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>Ec||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ec||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ec||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<Ec)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(xc("SemVer.compare",this.version,this.options,t),!(t instanceof zr)){if(typeof t=="string"&&t===this.version)return 0;t=new zr(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof zr||(t=new zr(t,this.options)),Io(this.major,t.major)||Io(this.minor,t.minor)||Io(this.patch,t.patch)}comparePre(t){if(t instanceof zr||(t=new zr(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(xc("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 Io(i,o)}while(++n)}compareBuild(t){t instanceof zr||(t=new zr(t,this.options));let n=0;do{const i=this.build[n],o=t.build[n];if(xc("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 Io(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&&(Io(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var kn=g7;const{MAX_LENGTH:v7}=bh,{re:lw,t:cw}=Fi,fw=kn,m7=Dh,y7=(e,t)=>{if(t=m7(t),e instanceof fw)return e;if(typeof e!="string"||e.length>v7||!(t.loose?lw[cw.LOOSE]:lw[cw.FULL]).test(e))return null;try{return new fw(e,t)}catch{return null}};var $a=y7;const b7=$a,w7=(e,t)=>{const n=b7(e,t);return n?n.version:null};var D7=w7;const A7=$a,x7=(e,t)=>{const n=A7(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var E7=x7;const hw=kn,C7=(e,t,n,i)=>{typeof n=="string"&&(i=n,n=void 0);try{return new hw(e instanceof hw?e.version:e,n).inc(t,i).version}catch{return null}};var _7=C7;const dw=kn,S7=(e,t,n)=>new dw(e,n).compare(new dw(t,n));var Fr=S7;const F7=Fr,$7=(e,t,n)=>F7(e,t,n)===0;var nv=$7;const pw=$a,T7=nv,k7=(e,t)=>{if(T7(e,t))return null;{const n=pw(e),i=pw(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 L7=k7;const B7=kn,O7=(e,t)=>new B7(e,t).major;var P7=O7;const N7=kn,I7=(e,t)=>new N7(e,t).minor;var R7=I7;const M7=kn,z7=(e,t)=>new M7(e,t).patch;var U7=z7;const H7=$a,q7=(e,t)=>{const n=H7(e,t);return n&&n.prerelease.length?n.prerelease:null};var j7=q7;const V7=Fr,W7=(e,t,n)=>V7(t,e,n);var G7=W7;const K7=Fr,Q7=(e,t)=>K7(e,t,!0);var X7=Q7;const gw=kn,Y7=(e,t,n)=>{const i=new gw(e,n),o=new gw(t,n);return i.compare(o)||i.compareBuild(o)};var rv=Y7;const Z7=rv,J7=(e,t)=>e.sort((n,i)=>Z7(n,i,t));var eU=J7;const tU=rv,nU=(e,t)=>e.sort((n,i)=>tU(i,n,t));var rU=nU;const iU=Fr,sU=(e,t,n)=>iU(e,t,n)>0;var Ah=sU;const oU=Fr,aU=(e,t,n)=>oU(e,t,n)<0;var iv=aU;const uU=Fr,lU=(e,t,n)=>uU(e,t,n)!==0;var kC=lU;const cU=Fr,fU=(e,t,n)=>cU(e,t,n)>=0;var sv=fU;const hU=Fr,dU=(e,t,n)=>hU(e,t,n)<=0;var ov=dU;const pU=nv,gU=kC,vU=Ah,mU=sv,yU=iv,bU=ov,wU=(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 pU(e,n,i);case"!=":return gU(e,n,i);case">":return vU(e,n,i);case">=":return mU(e,n,i);case"<":return yU(e,n,i);case"<=":return bU(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};var LC=wU;const DU=kn,AU=$a,{re:Cc,t:_c}=Fi,xU=(e,t)=>{if(e instanceof DU)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(Cc[_c.COERCE]);else{let i;for(;(i=Cc[_c.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||i.index+i[0].length!==n.index+n[0].length)&&(n=i),Cc[_c.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Cc[_c.COERCERTL].lastIndex=-1}return n===null?null:AU(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var EU=xU,ep,vw;function CU(){return vw||(vw=1,ep=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),ep}var _U=ct;ct.Node=Xs;ct.create=ct;function ct(e){var t=this;if(t instanceof ct||(t=new ct),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}ct.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ct.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ct.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ct.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)FU(this,arguments[e]);return this.length};ct.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)$U(this,arguments[e]);return this.length};ct.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ct.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ct.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,i=0;n!==null;i++)e.call(t,n.value,i,this),n=n.next};ct.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,i=this.length-1;n!==null;i--)e.call(t,n.value,i,this),n=n.prev};ct.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};ct.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};ct.prototype.map=function(e,t){t=t||this;for(var n=new ct,i=this.head;i!==null;)n.push(e.call(t,i.value,this)),i=i.next;return n};ct.prototype.mapReverse=function(e,t){t=t||this;for(var n=new ct,i=this.tail;i!==null;)n.push(e.call(t,i.value,this)),i=i.prev;return n};ct.prototype.reduce=function(e,t){var n,i=this.head;if(arguments.length>1)n=t;else if(this.head)i=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;i!==null;o++)n=e(n,i.value,o),i=i.next;return n};ct.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else if(this.tail)i=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;i!==null;o--)n=e(n,i.value,o),i=i.prev;return n};ct.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};ct.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};ct.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new ct;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;o!==null&&i<e;i++)o=o.next;for(;o!==null&&i<t;i++,o=o.next)n.push(o.value);return n};ct.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new ct;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;o!==null&&i>t;i--)o=o.prev;for(;o!==null&&i>e;i--,o=o.prev)n.push(o.value);return n};ct.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;o!==null&&i<e;i++)o=o.next;for(var a=[],i=0;o&&i<t;i++)a.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<n.length;i++)o=SU(this,o,n[i]);return a};ct.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=e,this};function SU(e,t,n){var i=t===e.head?new Xs(n,null,t,e):new Xs(n,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function FU(e,t){e.tail=new Xs(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function $U(e,t){e.head=new Xs(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Xs(e,t,n,i){if(!(this instanceof Xs))return new Xs(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{CU()(ct)}catch{}const TU=_U,Rs=Symbol("max"),bi=Symbol("length"),Ro=Symbol("lengthCalculator"),Tu=Symbol("allowStale"),Us=Symbol("maxAge"),mi=Symbol("dispose"),mw=Symbol("noDisposeOnSet"),rn=Symbol("lruList"),yr=Symbol("cache"),BC=Symbol("updateAgeOnGet"),tp=()=>1;class kU{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Rs]=t.max||1/0;const n=t.length||tp;if(this[Ro]=typeof n!="function"?tp:n,this[Tu]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Us]=t.maxAge||0,this[mi]=t.dispose,this[mw]=t.noDisposeOnSet||!1,this[BC]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Rs]=t||1/0,vu(this)}get max(){return this[Rs]}set allowStale(t){this[Tu]=!!t}get allowStale(){return this[Tu]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Us]=t,vu(this)}get maxAge(){return this[Us]}set lengthCalculator(t){typeof t!="function"&&(t=tp),t!==this[Ro]&&(this[Ro]=t,this[bi]=0,this[rn].forEach(n=>{n.length=this[Ro](n.value,n.key),this[bi]+=n.length})),vu(this)}get lengthCalculator(){return this[Ro]}get length(){return this[bi]}get itemCount(){return this[rn].length}rforEach(t,n){n=n||this;for(let i=this[rn].tail;i!==null;){const o=i.prev;yw(this,t,i,n),i=o}}forEach(t,n){n=n||this;for(let i=this[rn].head;i!==null;){const o=i.next;yw(this,t,i,n),i=o}}keys(){return this[rn].toArray().map(t=>t.key)}values(){return this[rn].toArray().map(t=>t.value)}reset(){this[mi]&&this[rn]&&this[rn].length&&this[rn].forEach(t=>this[mi](t.key,t.value)),this[yr]=new Map,this[rn]=new TU,this[bi]=0}dump(){return this[rn].map(t=>wf(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[rn]}set(t,n,i){if(i=i||this[Us],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const o=i?Date.now():0,a=this[Ro](n,t);if(this[yr].has(t)){if(a>this[Rs])return Jo(this,this[yr].get(t)),!1;const d=this[yr].get(t).value;return this[mi]&&(this[mw]||this[mi](t,d.value)),d.now=o,d.maxAge=i,d.value=n,this[bi]+=a-d.length,d.length=a,this.get(t),vu(this),!0}const c=new LU(t,n,a,o,i);return c.length>this[Rs]?(this[mi]&&this[mi](t,n),!1):(this[bi]+=c.length,this[rn].unshift(c),this[yr].set(t,this[rn].head),vu(this),!0)}has(t){if(!this[yr].has(t))return!1;const n=this[yr].get(t).value;return!wf(this,n)}get(t){return np(this,t,!0)}peek(t){return np(this,t,!1)}pop(){const t=this[rn].tail;return t?(Jo(this,t),t.value):null}del(t){Jo(this,this[yr].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[yr].forEach((t,n)=>np(this,n,!1))}}const np=(e,t,n)=>{const i=e[yr].get(t);if(i){const o=i.value;if(wf(e,o)){if(Jo(e,i),!e[Tu])return}else n&&(e[BC]&&(i.value.now=Date.now()),e[rn].unshiftNode(i));return o.value}},wf=(e,t)=>{if(!t||!t.maxAge&&!e[Us])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Us]&&n>e[Us]},vu=e=>{if(e[bi]>e[Rs])for(let t=e[rn].tail;e[bi]>e[Rs]&&t!==null;){const n=t.prev;Jo(e,t),t=n}},Jo=(e,t)=>{if(t){const n=t.value;e[mi]&&e[mi](n.key,n.value),e[bi]-=n.length,e[yr].delete(n.key),e[rn].removeNode(t)}};class LU{constructor(t,n,i,o,a){this.key=t,this.value=n,this.length=i,this.now=o,this.maxAge=a||0}}const yw=(e,t,n,i)=>{let o=n.value;wf(e,o)&&(Jo(e,n),e[Tu]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};var BU=kU,rp,bw;function $r(){if(bw)return rp;bw=1;class e{constructor(z,P){if(P=i(P),z instanceof e)return z.loose===!!P.loose&&z.includePrerelease===!!P.includePrerelease?z:new e(z.raw,P);if(z instanceof o)return this.raw=z.value,this.set=[[z]],this.format(),this;if(this.options=P,this.loose=!!P.loose,this.includePrerelease=!!P.includePrerelease,this.raw=z,this.set=z.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${z}`);if(this.set.length>1){const F=this.set[0];if(this.set=this.set.filter(w=>!m(w[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&A(w[0])){this.set=[w];break}}}this.format()}format(){return this.range=this.set.map(z=>z.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(z){z=z.trim();const F=`parseRange:${Object.keys(this.options).join(",")}:${z}`,w=n.get(F);if(w)return w;const R=this.options.loose,V=R?h[d.HYPHENRANGELOOSE]:h[d.HYPHENRANGE];z=z.replace(V,ne(this.options.includePrerelease)),a("hyphen replace",z),z=z.replace(h[d.COMPARATORTRIM],p),a("comparator trim",z),z=z.replace(h[d.TILDETRIM],g),z=z.replace(h[d.CARETTRIM],y),z=z.split(/\s+/).join(" ");let Z=z.split(" ").map(_e=>L(_e,this.options)).join(" ").split(/\s+/).map(_e=>j(_e,this.options));R&&(Z=Z.filter(_e=>(a("loose invalid filter",_e,this.options),!!_e.match(h[d.COMPARATORLOOSE])))),a("range list",Z);const ae=new Map,pe=Z.map(_e=>new o(_e,this.options));for(const _e of pe){if(m(_e))return[_e];ae.set(_e.value,_e)}ae.size>1&&ae.has("")&&ae.delete("");const $e=[...ae.values()];return n.set(F,$e),$e}intersects(z,P){if(!(z instanceof e))throw new TypeError("a Range is required");return this.set.some(F=>$(F,P)&&z.set.some(w=>$(w,P)&&F.every(R=>w.every(V=>R.intersects(V,P)))))}test(z){if(!z)return!1;if(typeof z=="string")try{z=new c(z,this.options)}catch{return!1}for(let P=0;P<this.set.length;P++)if(ue(this.set[P],z,this.options))return!0;return!1}}rp=e;const t=BU,n=new t({max:1e3}),i=Dh,o=xh(),a=wh,c=kn,{re:h,t:d,comparatorTrimReplace:p,tildeTrimReplace:g,caretTrimReplace:y}=Fi,m=Y=>Y.value==="<0.0.0-0",A=Y=>Y.value==="",$=(Y,z)=>{let P=!0;const F=Y.slice();let w=F.pop();for(;P&&F.length;)P=F.every(R=>w.intersects(R,z)),w=F.pop();return P},L=(Y,z)=>(a("comp",Y,z),Y=O(Y,z),a("caret",Y),Y=C(Y,z),a("tildes",Y),Y=k(Y,z),a("xrange",Y),Y=U(Y,z),a("stars",Y),Y),E=Y=>!Y||Y.toLowerCase()==="x"||Y==="*",C=(Y,z)=>Y.trim().split(/\s+/).map(P=>S(P,z)).join(" "),S=(Y,z)=>{const P=z.loose?h[d.TILDELOOSE]:h[d.TILDE];return Y.replace(P,(F,w,R,V,Z)=>{a("tilde",Y,F,w,R,V,Z);let ae;return E(w)?ae="":E(R)?ae=`>=${w}.0.0 <${+w+1}.0.0-0`:E(V)?ae=`>=${w}.${R}.0 <${w}.${+R+1}.0-0`:Z?(a("replaceTilde pr",Z),ae=`>=${w}.${R}.${V}-${Z} <${w}.${+R+1}.0-0`):ae=`>=${w}.${R}.${V} <${w}.${+R+1}.0-0`,a("tilde return",ae),ae})},O=(Y,z)=>Y.trim().split(/\s+/).map(P=>B(P,z)).join(" "),B=(Y,z)=>{a("caret",Y,z);const P=z.loose?h[d.CARETLOOSE]:h[d.CARET],F=z.includePrerelease?"-0":"";return Y.replace(P,(w,R,V,Z,ae)=>{a("caret",Y,w,R,V,Z,ae);let pe;return E(R)?pe="":E(V)?pe=`>=${R}.0.0${F} <${+R+1}.0.0-0`:E(Z)?R==="0"?pe=`>=${R}.${V}.0${F} <${R}.${+V+1}.0-0`:pe=`>=${R}.${V}.0${F} <${+R+1}.0.0-0`:ae?(a("replaceCaret pr",ae),R==="0"?V==="0"?pe=`>=${R}.${V}.${Z}-${ae} <${R}.${V}.${+Z+1}-0`:pe=`>=${R}.${V}.${Z}-${ae} <${R}.${+V+1}.0-0`:pe=`>=${R}.${V}.${Z}-${ae} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?V==="0"?pe=`>=${R}.${V}.${Z}${F} <${R}.${V}.${+Z+1}-0`:pe=`>=${R}.${V}.${Z}${F} <${R}.${+V+1}.0-0`:pe=`>=${R}.${V}.${Z} <${+R+1}.0.0-0`),a("caret return",pe),pe})},k=(Y,z)=>(a("replaceXRanges",Y,z),Y.split(/\s+/).map(P=>M(P,z)).join(" ")),M=(Y,z)=>{Y=Y.trim();const P=z.loose?h[d.XRANGELOOSE]:h[d.XRANGE];return Y.replace(P,(F,w,R,V,Z,ae)=>{a("xRange",Y,F,w,R,V,Z,ae);const pe=E(R),$e=pe||E(V),_e=$e||E(Z),ze=_e;return w==="="&&ze&&(w=""),ae=z.includePrerelease?"-0":"",pe?w===">"||w==="<"?F="<0.0.0-0":F="*":w&&ze?($e&&(V=0),Z=0,w===">"?(w=">=",$e?(R=+R+1,V=0,Z=0):(V=+V+1,Z=0)):w==="<="&&(w="<",$e?R=+R+1:V=+V+1),w==="<"&&(ae="-0"),F=`${w+R}.${V}.${Z}${ae}`):$e?F=`>=${R}.0.0${ae} <${+R+1}.0.0-0`:_e&&(F=`>=${R}.${V}.0${ae} <${R}.${+V+1}.0-0`),a("xRange return",F),F})},U=(Y,z)=>(a("replaceStars",Y,z),Y.trim().replace(h[d.STAR],"")),j=(Y,z)=>(a("replaceGTE0",Y,z),Y.trim().replace(h[z.includePrerelease?d.GTE0PRE:d.GTE0],"")),ne=Y=>(z,P,F,w,R,V,Z,ae,pe,$e,_e,ze,Ke)=>(E(F)?P="":E(w)?P=`>=${F}.0.0${Y?"-0":""}`:E(R)?P=`>=${F}.${w}.0${Y?"-0":""}`:V?P=`>=${P}`:P=`>=${P}${Y?"-0":""}`,E(pe)?ae="":E($e)?ae=`<${+pe+1}.0.0-0`:E(_e)?ae=`<${pe}.${+$e+1}.0-0`:ze?ae=`<=${pe}.${$e}.${_e}-${ze}`:Y?ae=`<${pe}.${$e}.${+_e+1}-0`:ae=`<=${ae}`,`${P} ${ae}`.trim()),ue=(Y,z,P)=>{for(let F=0;F<Y.length;F++)if(!Y[F].test(z))return!1;if(z.prerelease.length&&!P.includePrerelease){for(let F=0;F<Y.length;F++)if(a(Y[F].semver),Y[F].semver!==o.ANY&&Y[F].semver.prerelease.length>0){const w=Y[F].semver;if(w.major===z.major&&w.minor===z.minor&&w.patch===z.patch)return!0}return!1}return!0};return rp}var ip,ww;function xh(){if(ww)return ip;ww=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==="<="),E=a(this.semver,"<",g.semver,y)&&(this.operator===">="||this.operator===">")&&(g.operator==="<="||g.operator==="<"),C=a(this.semver,">",g.semver,y)&&(this.operator==="<="||this.operator==="<")&&(g.operator===">="||g.operator===">");return m||A||$&&L||E||C}}ip=t;const n=Dh,{re:i,t:o}=Fi,a=LC,c=wh,h=kn,d=$r();return ip}const OU=$r(),PU=(e,t,n)=>{try{t=new OU(t,n)}catch{return!1}return t.test(e)};var Eh=PU;const NU=$r(),IU=(e,t)=>new NU(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));var RU=IU;const MU=kn,zU=$r(),UU=(e,t,n)=>{let i=null,o=null,a=null;try{a=new zU(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new MU(i,n))}),i};var HU=UU;const qU=kn,jU=$r(),VU=(e,t,n)=>{let i=null,o=null,a=null;try{a=new jU(t,n)}catch{return null}return e.forEach(c=>{a.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new qU(i,n))}),i};var WU=VU;const sp=kn,GU=$r(),Dw=Ah,KU=(e,t)=>{e=new GU(e,t);let n=new sp("0.0.0");if(e.test(n)||(n=new sp("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 sp(c.semver.version);switch(c.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!a||Dw(h,a))&&(a=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),a&&(!n||Dw(n,a))&&(n=a)}return n&&e.test(n)?n:null};var QU=KU;const XU=$r(),YU=(e,t)=>{try{return new XU(e,t).range||"*"}catch{return null}};var ZU=YU;const JU=kn,OC=xh(),{ANY:eH}=OC,tH=$r(),nH=Eh,Aw=Ah,xw=iv,rH=ov,iH=sv,sH=(e,t,n,i)=>{e=new JU(e,i),t=new tH(t,i);let o,a,c,h,d;switch(n){case">":o=Aw,a=rH,c=xw,h=">",d=">=";break;case"<":o=xw,a=iH,c=Aw,h="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nH(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===eH&&(A=new OC(">=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 av=sH;const oH=av,aH=(e,t,n)=>oH(e,t,">",n);var uH=aH;const lH=av,cH=(e,t,n)=>lH(e,t,"<",n);var fH=cH;const Ew=$r(),hH=(e,t,n)=>(e=new Ew(e,n),t=new Ew(t,n),e.intersects(t));var dH=hH;const pH=Eh,gH=Fr;var vH=(e,t,n)=>{const i=[];let o=null,a=null;const c=e.sort((g,y)=>gH(g,y,n));for(const g of c)pH(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 Cw=$r(),Qc=xh(),{ANY:op}=Qc,mu=Eh,uv=Fr,mH=(e,t,n={})=>{if(e===t)return!0;e=new Cw(e,n),t=new Cw(t,n);let i=!1;e:for(const o of e.set){for(const a of t.set){const c=yH(o,a,n);if(i=i||c!==null,c)continue e}if(i)return!1}return!0},yH=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===op){if(t.length===1&&t[0].semver===op)return!0;n.includePrerelease?e=[new Qc(">=0.0.0-0")]:e=[new Qc(">=0.0.0")]}if(t.length===1&&t[0].semver===op){if(n.includePrerelease)return!0;t=[new Qc(">=0.0.0")]}const i=new Set;let o,a;for(const A of e)A.operator===">"||A.operator===">="?o=_w(o,A,n):A.operator==="<"||A.operator==="<="?a=Sw(a,A,n):i.add(A.semver);if(i.size>1)return null;let c;if(o&&a){if(c=uv(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&&!mu(A,String(o),n)||a&&!mu(A,String(a),n))return null;for(const $ of t)if(!mu(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=_w(o,A,n),h===A&&h!==o)return!1}else if(o.operator===">="&&!mu(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=Sw(a,A,n),d===A&&d!==a)return!1}else if(a.operator==="<="&&!mu(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)},_w=(e,t,n)=>{if(!e)return t;const i=uv(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},Sw=(e,t,n)=>{if(!e)return t;const i=uv(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var bH=mH;const ap=Fi,wH=bh,DH=kn,Fw=TC,AH=$a,xH=D7,EH=E7,CH=_7,_H=L7,SH=P7,FH=R7,$H=U7,TH=j7,kH=Fr,LH=G7,BH=X7,OH=rv,PH=eU,NH=rU,IH=Ah,RH=iv,MH=nv,zH=kC,UH=sv,HH=ov,qH=LC,jH=EU,VH=xh(),WH=$r(),GH=Eh,KH=RU,QH=HU,XH=WU,YH=QU,ZH=ZU,JH=av,eq=uH,tq=fH,nq=dH,rq=vH,iq=bH;var sq={parse:AH,valid:xH,clean:EH,inc:CH,diff:_H,major:SH,minor:FH,patch:$H,prerelease:TH,compare:kH,rcompare:LH,compareLoose:BH,compareBuild:OH,sort:PH,rsort:NH,gt:IH,lt:RH,eq:MH,neq:zH,gte:UH,lte:HH,cmp:qH,coerce:jH,Comparator:VH,Range:WH,satisfies:GH,toComparators:KH,maxSatisfying:QH,minSatisfying:XH,minVersion:YH,validRange:ZH,outside:JH,gtr:eq,ltr:tq,intersects:nq,simplifyRange:rq,subset:iq,SemVer:DH,re:ap.re,src:ap.src,tokens:ap.t,SEMVER_SPEC_VERSION:wH.SEMVER_SPEC_VERSION,compareIdentifiers:Fw.compareIdentifiers,rcompareIdentifiers:Fw.rcompareIdentifiers};const oq="concordance",aq="5.0.4",uq="Compare, format, diff and serialize any JavaScript value",lq="index.js",cq=["lib","index.js"],fq={node:">=10.18.0 <11 || >=12.14.0 <13 || >=14"},hq={test:"as-i-preach && c8 ava"},dq={type:"git",url:"git+https://github.com/concordancejs/concordance.git"},pq="Mark Wubben (https://novemberborn.net/)",gq="ISC",vq={url:"https://github.com/concordancejs/concordance/issues"},mq="https://github.com/concordancejs/concordance#readme",yq={"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"},bq={"@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"},wq={name:oq,version:aq,description:uq,main:lq,files:cq,engines:fq,scripts:hq,repository:dq,author:pq,license:gq,bugs:vq,homepage:mq,dependencies:yq,devDependencies:bq};var Bi={},Ta={},Dq=function(e){return(""+e).replace(/["'\\\n\r\u2028\u2029]/g,function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case`
|
|
10
|
+
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})},lv={};const PC=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]));lv.isWellKnown=e=>PC.has(e);lv.getLabel=e=>PC.get(e);const NC=Dq,$w=lv,IC=bt,up=Ht,Aq=en,Df=IC.DEEP_EQUAL,ea=IC.UNEQUAL;function xq(e){let t=null;const n=Symbol.keyFor(e);return n!==void 0?t=`Symbol.for(${NC(n)})`:$w.isWellKnown(e)&&(t=$w.getLabel(e)),new _h({stringCompare:t,value:e})}Ta.describe=xq;function Eq(e){const t=e[0],n=e[1]||e[0];return new Cq({string:n,stringCompare:t,value:null})}Ta.deserialize=Eq;const Ch=Symbol("SymbolValue");Ta.tag=Ch;class _h{constructor(t){this.stringCompare=t.stringCompare,this.value=t.value}compare(t){return t.tag!==Ch?ea:this.stringCompare!==null?this.stringCompare===t.stringCompare?Df:ea:this.value===t.value?Df:ea}formatString(){return this.stringCompare!==null?this.stringCompare:NC(this.value.toString())}formatDeep(t){return Aq.single(up.wrap(t.symbol,this.formatString()))}formatAsKey(t){return up.wrap(t.property.keyBracket,up.wrap(t.symbol,this.formatString()))}serialize(){const t=this.formatString();return this.stringCompare===t?[this.stringCompare]:[this.stringCompare,t]}}Object.defineProperty(_h.prototype,"isPrimitive",{value:!0});Object.defineProperty(_h.prototype,"tag",{value:Ch});class Cq extends _h{constructor(t){super(t),this.string=t.string}compare(t){return t.tag!==Ch?ea:this.stringCompare!==null?this.stringCompare===t.stringCompare?Df:ea:this.string===t.formatString()?Df:ea}formatString(){return this.string}}const cv=bt,_q=Ht,Tw=Ta.tag,Xc=$t,Sq=cv.AMBIGUOUS,Af=cv.DEEP_EQUAL,ga=cv.UNEQUAL;function Fq(e,t){return new hv(e,t)}Bi.describeComplex=Fq;function $q(e,t){const n=t();return new hv(e,n)}Bi.deserializeComplex=$q;function Tq(e,t){return new dv(e,t)}Bi.describePrimitive=Tq;function kq(e){const t=e[0],n=e[1];return new dv(t,n)}Bi.deserializePrimitive=kq;const RC=Symbol("ComplexProperty");Bi.complexTag=RC;const MC=Symbol("PrimitiveProperty");Bi.primitiveTag=MC;class fv{constructor(t){this.key=t}compareKeys(t){const n=this.key.compare(t.key);return n===ga&&this.key.tag===Tw&&t.key.tag===Tw?Sq:n}prepareDiff(t,n,i,o,a){if(a(this.value)||a(t.value))return{compareResult:ga};const c=Xc.fork(i),h=t;do{if(t===null||t.isProperty!==!0)return{actualIsExtraneous:!0,rhsRecursor:Xc.unshift(c.recursor,h)};if(this.key.compare(t.key)===Af)return t===h?null:{expectedIsMissing:!0,lhsRecursor:Xc.unshift(n,this),rhsRecursor:c.recursor};t=c.shared()}while(!0)}}Object.defineProperty(fv.prototype,"isProperty",{value:!0});class hv extends fv{constructor(t,n){super(t),this.value=n}createRecursor(){return Xc.singleValue(this.value)}compare(t){if(t.isProperty!==!0)return ga;const n=this.compareKeys(t);return n!==Af?n:this.tag===t.tag?this.value.compare(t.value):ga}formatShallow(t,n){const i=t.property.increaseValueIndent===!0;return new _q.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(hv.prototype,"tag",{value:RC});class dv extends fv{constructor(t,n){super(t),this.value=n}compare(t){if(t.isProperty!==!0)return ga;const n=this.compareKeys(t);return n!==Af?n:this.tag!==t.tag?ga: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)!==Af)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(dv.prototype,"tag",{value:MC});var kw;function pv(){if(kw)return ks;kw=1;const e=sq,t=wq,n=Jt,i=bt,o=Ht,a=en,c=Li,h=Bi,d=ro,p=$t,g=Sh(),y=1,m=t.version,A=new Map,$=new Map;class L extends Error{constructor(w,R){super(w),this.name="PluginError",this.plugin=R}}class E extends TypeError{constructor(w,R){super(w),this.name="PluginTypeError",this.plugin=R}}class C extends L{constructor(w){super("Plugin requires an unsupported API version",w),this.name="UnsupportedApiError"}}class S extends L{constructor(w){super("Plugin does not support this version of Concordance",w),this.name="UnsupportedError"}}class O extends L{constructor(w,R){super(`Could not add descriptor: tag ${String(w)} has already been registered`,R),this.name="DuplicateDescriptorTagError",this.tag=w}}class B extends L{constructor(w,R){const V=typeof w=="number"?`0x${w.toString(16).toUpperCase()}`:String(w);super(`Could not add descriptor: id ${V} has already been registered`,R),this.name="DuplicateDescriptorIdError",this.id=w}}function k(F){if(typeof F.name!="string"||!F.name)throw new E("Plugin must have a `name`",F);if(F.apiVersion!==y)throw new C(F);if("minimalConcordanceVersion"in F){if(!e.valid(F.minimalConcordanceVersion))throw new E("If specified, `minimalConcordanceVersion` must be a valid SemVer version",F);const w=`>=${F.minimalConcordanceVersion}`;if(!e.satisfies(m,w))throw new S(F)}}const M=Object.freeze({complexItem:c.complexTag,primitiveItem:c.primitiveTag,primitiveProperty:h.primitiveTag,string:d.tag}),U=Object.freeze({buffer:a.buffer,first:a.first,last:a.last,line:a.line,single:a.single,actual:Object.freeze({buffer:a.actual.buffer,first:a.actual.first,last:a.actual.last,line:a.actual.line,single:a.actual.single}),expected:Object.freeze({buffer:a.expected.buffer,first:a.expected.first,last:a.expected.last,line:a.expected.line,single:a.expected.single})});function j(F,w){return g.addModifier(F,w),F}function ne(F){k(F);const w=F.name;if($.has(w))return $.get(w);const R=new Map,V=new Map,Z=($e,_e,ze)=>{if(R.has($e))throw new B($e,F);if(A.has(_e)||V.has(_e))throw new O(_e,F);R.set($e,ze),V.set(_e,$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:U,mapRecursor:p.map,modifyTheme:j,wrapFromTheme:o.wrap}),pe={id2deserialize:R,serializerVersion:F.serializerVersion,name:w,tag2id:V,theme:F.theme||{},tryDescribeValue:ae};$.set(w,pe);for(const $e of V.keys())A.set($e,pe);return pe}ks.add=ne;function ue(F){return F.map(w=>{const R=ne(w);return{id2deserialize:R.id2deserialize,name:R.name,serializerVersion:R.serializerVersion}})}ks.getDeserializers=ue;function Y(F){return F.map(w=>{const R=ne(w);return{name:R.name,theme:R.theme}})}ks.getThemes=Y;function z(F){return F.map(w=>ne(w).tryDescribeValue)}ks.getTryDescribeValues=z;function P(F){if(!A.has(F))return null;const w=A.get(F);return{id:w.tag2id.get(F),name:w.name,serialization:{serializerVersion:w.serializerVersion}}}return ks.resolveDescriptorRef=P,ks}var Lw;function Sh(){if(Lw)return No;Lw=1;const e=Ez,t=i7,n=pv();function i(E){const C=[E];for(;C.length>0;){const S=C.shift();Object.freeze(S);for(const O of Object.keys(S)){const B=S[O];B!==null&&typeof B=="object"&&C.push(B)}}return E}const o=i({bigInt:{open:"",close:""},boolean:{open:"",close:""},circular:"[Circular]",date:{invalid:"invalid",value:{open:"",close:""}},diffGutters:{actual:"- ",expected:"+ ",padding:" "},error:{ctor:{open:"(",close:")"},name:{open:"",close:""}},function:{name:{open:"",close:""},stringTag:{open:"",close:""}},global:{open:"",close:""},item:{after:",",customFormat:null,increaseValueIndent:!1},list:{openBracket:"[",closeBracket:"]"},mapEntry:{after:",",separator:" => "},maxDepth:"…",null:{open:"",close:""},number:{open:"",close:""},object:{openBracket:"{",closeBracket:"}",ctor:{open:"",close:""},stringTag:{open:"@",close:""},secondaryStringTag:{open:"@",close:""}},property:{after:",",customFormat:null,keyBracket:{open:"[",close:"]"},separator:": ",increaseValueIndent:!1},regexp:{source:{open:"/",close:"/"},flags:{open:"",close:""},separator:"---"},stats:{separator:"---"},string:{open:"",close:"",line:{open:"'",close:"'",escapeQuote:"'"},multiline:{start:"`",end:"`",escapeQuote:"`"},controlPicture:{open:"",close:""},diff:{insert:{open:"",close:""},delete:{open:"",close:""},equal:{open:"",close:""},insertLine:{open:"",close:""},deleteLine:{open:"",close:""}}},symbol:{open:"",close:""},typedArray:{bytes:{open:"",close:""}},undefined:{open:"",close:""}}),a=new Map;a.count=0;const c=new Map;function h(E){if(!Array.isArray(E)||E.length===0)return null;const C=[],S=[];for(const k of n.getThemes(E))a.has(k.name)||a.set(k.name,a.count++),C.push(a.get(k.name)),S.push(k.theme);const O=C.join(".");if(c.has(O))return{ref:O,theme:c.get(O)};const B=i(S.reduce((k,M)=>t(k,M),e(o)));return c.set(O,B),{ref:O,theme:B}}const d=new WeakMap;function p(E){E=Object.assign({plugins:[],theme:null},E);const C=h(E.plugins);if(!E.theme)return C?C.theme:o;const S=d.get(E.theme)||{theme:null,withPlugins:new Map};if(d.has(E.theme)||d.set(E.theme,S),C){if(S.withPlugins.has(C.ref))return S.withPlugins.get(C.ref);const O=i(t(e(C.theme),E.theme));return S.withPlugins.set(C.ref,O),O}return S.theme||(S.theme=i(t(e(o),E.theme))),S.theme}No.normalize=p;const g=new WeakMap;function y(E,C){g.has(E)?g.get(E).add(C):g.set(E,new Set([C]))}No.addModifier=y;const m=new WeakMap,A=new WeakMap;function $(E,C){return g.has(E)?Array.from(g.get(E)).reduce((S,O)=>{const B=m.get(O)||new WeakMap;if(m.has(O)||m.set(O,B),B.has(S))return B.get(S);const k=e(S);return O(k),i(k),B.set(S,k),A.set(k,C),k},C):C}No.applyModifiers=$;function L(E,C){return $(E,A.get(C)||C)}return No.applyModifiersToOriginal=L,No}const gv=bt,Bw=en,Sc=$t,Fc=Sh(),yu=gv.DEEP_EQUAL,di=gv.UNEQUAL,Ow=gv.SHALLOW_EQUAL;function Lq(e,t){const n=e.isPrimitive===!0,i=t.isPrimitive===!0;return new Fh(e,t,n,i)}pl.describe=Lq;function Bq(e,t){const n=e[0],i=e[1],o=t(),a=t();return new Fh(o,a,n,i)}pl.deserialize=Bq;const zC=Symbol("MapEntry");pl.tag=zC;function lp(e,t,n){const i=Bw.buffer(),o=Bw.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 Fh{constructor(t,n,i,o){this.key=t,this.value=n,this.keyIsPrimitive=i,this.valueIsPrimitive=o}createRecursor(){let t=!0,n=!0;return()=>t?(t=!1,this.key):n?(n=!1,this.value):null}compare(t){if(this.tag!==t.tag||this.keyIsPrimitive!==t.keyIsPrimitive||this.valueIsPrimitive!==t.valueIsPrimitive)return di;if(!this.keyIsPrimitive)return Ow;const n=this.key.compare(t.key);return n!==yu?n:this.valueIsPrimitive?this.value.compare(t.value):Ow}formatDeep(t,n){if(!this.keyIsPrimitive||typeof this.value.formatDeep!="function")return null;const i=this.value.formatDeep(Fc.applyModifiersToOriginal(this.value,t),n);if(i===null)return null;const o=this.key.formatDeep(Fc.applyModifiersToOriginal(this.key,t),n);return lp(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 lp(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)!==yu)return null;const a=this.value.diffDeep(t.value,Fc.applyModifiersToOriginal(this.value,n),i,o);if(a===null)return null;const c=this.key.formatDeep(Fc.applyModifiersToOriginal(this.key,n),i,"");return lp(n,c,[a])}prepareDiff(t,n,i,o,a){if(a(this.value)||a(t.value))return{compareResult:di};const c=this.compare(t),h=this.tag===t.tag&&this.key.compare(t.key)===yu;if(c===yu||h)return{compareResult:c};const d=Sc.fork(n),p=Sc.fork(i),g=t;let y=!1;for(;!y&&t!==null&&this.tag===t.tag;)t.keyIsPrimitive?y=this.key.compare(t.key)!==di:y=o(this.key,t.key)!==di,t=p.shared();let m=!1;if(this.tag===g.tag)if(g.keyIsPrimitive){let $=this;for(;!m&&$!==null&&this.tag===$.tag;)$.keyIsPrimitive&&(m=g.key.compare($.key)===yu),$=d.shared()}else{let $=this;for(;!m&&$!==null&&this.tag===$.tag;)$.keyIsPrimitive||(m=o($.key,g.key)!==di),$=d.shared()}if(m&&!y)return{actualIsExtraneous:!0,lhsRecursor:d.recursor,rhsRecursor:Sc.unshift(p.recursor,g)};if(y&&!m)return{expectedIsMissing:!0,lhsRecursor:Sc.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)!==di:A=o(this.value,g.value)!==di),{mustRecurse:A,isUnequal:!A,lhsRecursor:d.recursor,rhsRecursor:p.recursor}}serialize(){return[this.keyIsPrimitive,this.valueIsPrimitive]}}Object.defineProperty(Fh.prototype,"isMapEntry",{value:!0});Object.defineProperty(Fh.prototype,"tag",{value:zC});var bl={};const UC=bt,Oq=Ht,Pq=en,Nq=UC.DEEP_EQUAL,Iq=UC.UNEQUAL;function HC(e){return new mv(e)}bl.describe=HC;bl.deserialize=HC;const vv=Symbol("BigIntValue");bl.tag=vv;class mv{constructor(t){this.value=t}compare(t){return t.tag===vv&&Object.is(this.value,t.value)?Nq:Iq}formatDeep(t){return Pq.single(Oq.wrap(t.bigInt,`${this.value}n`))}serialize(){return this.value}}Object.defineProperty(mv.prototype,"isPrimitive",{value:!0});Object.defineProperty(mv.prototype,"tag",{value:vv});var wl={};const qC=bt,Rq=Ht,Mq=en,zq=qC.DEEP_EQUAL,Uq=qC.UNEQUAL;function jC(e){return new yv(e)}wl.describe=jC;wl.deserialize=jC;const VC=Symbol("BooleanValue");wl.tag=VC;class yv{constructor(t){this.value=t}compare(t){return this.tag===t.tag&&this.value===t.value?zq:Uq}formatDeep(t){return Mq.single(Rq.wrap(t.boolean,this.value===!0?"true":"false"))}serialize(){return this.value}}Object.defineProperty(yv.prototype,"isPrimitive",{value:!0});Object.defineProperty(yv.prototype,"tag",{value:VC});var Dl={};const WC=bt,Hq=Ht,qq=en,jq=WC.DEEP_EQUAL,Vq=WC.UNEQUAL;function GC(){return new wv}Dl.describe=GC;Dl.deserialize=GC;const bv=Symbol("NullValue");Dl.tag=bv;class wv{compare(t){return t.tag===bv?jq:Vq}formatDeep(t){return qq.single(Hq.wrap(t.null,"null"))}}Object.defineProperty(wv.prototype,"isPrimitive",{value:!0});Object.defineProperty(wv.prototype,"tag",{value:bv});var Al={};const KC=bt,Wq=Ht,Gq=en,Kq=KC.DEEP_EQUAL,Qq=KC.UNEQUAL;function QC(e){return new Av(e)}Al.describe=QC;Al.deserialize=QC;const Dv=Symbol("NumberValue");Al.tag=Dv;class Av{constructor(t){this.value=t}compare(t){return t.tag===Dv&&Object.is(this.value,t.value)?Kq:Qq}formatDeep(t){const n=Object.is(this.value,-0)?"-0":String(this.value);return Gq.single(Wq.wrap(t.number,n))}serialize(){return this.value}}Object.defineProperty(Av.prototype,"isPrimitive",{value:!0});Object.defineProperty(Av.prototype,"tag",{value:Dv});var xl={};const XC=bt,Xq=Ht,Yq=en,Zq=XC.DEEP_EQUAL,Jq=XC.UNEQUAL;function YC(){return new Ev}xl.describe=YC;xl.deserialize=YC;const xv=Symbol("UndefinedValue");xl.tag=xv;class Ev{compare(t){return t.tag===xv?Zq:Jq}formatDeep(t){return Yq.single(Xq.wrap(t.undefined,"undefined"))}}Object.defineProperty(Ev.prototype,"isPrimitive",{value:!0});Object.defineProperty(Ev.prototype,"tag",{value:xv});const ej=DO,tj=xa,nj=rl,rj=il,ij=sl,sj=ol,oj=al,Pw=ul,aj=ll,uj=cl,lj=Jt,cj=fl,fj=hl,hj=dl,pi=er,dj=KP,pj=Xp,Nw=Li,gj=pl,Iw=Bi,vj=pv(),mj=bl,yj=wl,bj=Dl,wj=Al,Dj=ro,Aj=Ta,xj=xl,Rw=new Map([["Arguments",tj.describe],["ArrayBuffer",nj.describe],["DataView",ij.describe],["Date",sj.describe],["Error",oj.describe],["Float32Array",pi.describe],["Float64Array",pi.describe],["Function",Pw.describe],["GeneratorFunction",Pw.describe],["global",aj.describe],["Int16Array",pi.describe],["Int32Array",pi.describe],["Int8Array",pi.describe],["Map",uj.describe],["Promise",cj.describe],["RegExp",fj.describe],["Set",hj.describe],["Uint16Array",pi.describe],["Uint32Array",pi.describe],["Uint8Array",pi.describe],["Uint8ClampedArray",pi.describe]]);function Yc(e){if(e===null)return bj.describe();if(e===void 0)return xj.describe();if(e===!0||e===!1)return yj.describe(e);const t=typeof e;return t==="bigint"?mj.describe(e):t==="number"?wj.describe(e):t==="string"?Dj.describe(e):t==="symbol"?Aj.describe(e):null}function Ej(e,t){if(typeof t.valueOf=="function"){const n=t.valueOf();if(n!==t)return Yc(n)}return null}function Cj(e){if(!Array.isArray(e)||e.length===0)return()=>null;const t=vj.getTryDescribeValues(e);return(n,i,o)=>{for(const a of t){const c=a(n,i,o);if(c)return c}return null}}function _j(e,t,n,i,o,a,c){if(t.has(e))return t.get(e);const h=pj(e),d=dj(h,e),p=t.alloc(e);let g,y=n(e,h,d);y===null&&(Rw.has(h)?y=Rw.get(h):(g=Ej(h,e),g!==null?y=rj.describe:y=lj.describe));const m=y({ctor:d,describeAny:i,describeItem:o,describeMapEntry:a,describeProperty:c,pointer:p.index,stringTag:h,unboxed:g,value:e});return p.descriptor=m,m}const Sj=(e,t)=>t.isPrimitive===!0?Nw.describePrimitive(e,t):Nw.describeComplex(e,t),Fj=(e,t)=>gj.describe(e,t);function $j(e,t){const n=Yc(e);if(n!==null)return n;const i=new ej,o=Cj(t&&t.plugins),a=d=>_j(d,i,o,c,Sj,Fj,h),c=d=>{const p=Yc(d);return p!==null?p:a(d)},h=(d,p)=>{const g=Yc(d);return p.isPrimitive===!0?Iw.describePrimitive(g,p):Iw.describeComplex(g,p)};return a(e)}var $h=$j;const Tj=xa.tag,ZC=bt,kj=ZC.AMBIGUOUS,Lj=ZC.SHALLOW_EQUAL;function Bj(e,t,n){return e===Lj?!0:e!==kj?!1:t.tag===Tj||t.isProperty===!0}var JC=Bj,Th={};const Cv=bt,Oj=$t,Mw=Cv.DEEP_EQUAL,Pj=Cv.SHALLOW_EQUAL,zw=Cv.UNEQUAL;class _v{constructor(t){this.properties=t,this.ordered=t.slice()}createRecursor(){const t=this.ordered.length;let n=0;return()=>n===t?null:this.ordered[n++]}compare(t){if(this.properties.length!==t.properties.length)return zw;const n=[],i=new Set;for(const o of this.properties){let a=!0;for(const c of t.properties)if(!i.has(c.key)&&o.key.compare(c.key)===Mw){a=!1,i.add(c.key),n.push(c);break}if(a)return zw}return t.ordered=n,Pj}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)===Mw){c=!1,o.add(h.key),i.push(a);break}c&&n.push(a)}return t.ordered=i.concat(n),{mustRecurse:!0}}}Object.defineProperty(_v.prototype,"isSymbolPropertiesComparable",{value:!0});Th.Comparable=_v;class e_{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 Oj.singleValue(new _v(this.properties))}}Object.defineProperty(e_.prototype,"isSymbolPropertiesCollector",{value:!0});Th.Collector=e_;const Uw=og,Sv=bt,Hw=$h,qw=$t,Nj=JC,jw=Th,Ij=Sv.AMBIGUOUS,Vw=Sv.DEEP_EQUAL,cp=Sv.UNEQUAL;function Ww(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 t_(e,t){const n=new Uw,i=new Uw,o=[],a=[];let c=-1;do{let h;if(n.has(e)?h=n.get(e)===i.get(t)?Vw:cp:i.has(t)?h=cp:h=e.compare(t),h===cp)return!1;if(h!==Vw){if(!Nj(h,e))return!1;h===Ij&&e.isProperty===!0&&(e=new jw.Collector(e,o[c].recursor),t=new jw.Collector(t,a[c].recursor),o[c].recursor=qw.unshift(o[c].recursor,e.collectAll()),a[c].recursor=qw.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}sg.compareDescriptors=t_;function Rj(e,t,n){if(Object.is(e,t))return{pass:!0};if(Ww(e)||Ww(t))return{pass:!1};e=Hw(e,n),t=Hw(t,n);const i=t_(e,t);return{actual:e,expected:t,pass:i}}sg.compare=Rj;var Fv={};let Mj=class r0{constructor(t,n){this.level=t,this.step=n,this.value=n.repeat(t)}increase(){return new r0(this.level+1,this.step)}decrease(){return new r0(this.level-1,this.step)}toString(){return this.value}};var n_=Mj;const Gw=og,zj=n_,kh=bt,Kw=$h,ir=en,Vo=$t,i0=JC,xf=Th,Ls=Sh(),s0=kh.AMBIGUOUS,ku=kh.DEEP_EQUAL,Ms=kh.UNEQUAL,Uj=kh.SHALLOW_EQUAL,Qw=Symbol("NOOP"),fp=()=>!0;function Hj(e,t){let n=e.compare(t);if(n===ku)return ku;if(n===Ms||!i0(n,e))return Ms;let i=!1,o=e.createRecursor(),a=t.createRecursor();do{if(e=o(),t=a(),e===null&&t===null)return Uj;if(e===null||t===null||(n=e.compare(t),n===Ms))return Ms;if(n===s0&&e.isProperty===!0&&!i&&i0(n,e)){i=!0;const c=new xf.Collector(e,o),h=new xf.Collector(t,a);o=Vo.sequence(c.createRecursor(),Vo.unshift(o,c.collectAll())),a=Vo.sequence(h.createRecursor(),Vo.unshift(a,h.collectAll()))}}while(!0)}function r_(e,t,n){const i=Ls.normalize(n),o=n?n.invert===!0:!1,a=new Gw,c=new Gw,h=n&&n.maxDepth||0;let d=new zj(0," ");const p=[],g=[];let y=-1;const m=ir.buffer(),A=[];let $=-1;const L=C=>a.has(C)||c.has(C),E=(C,S,O,B=0)=>{if($>=0&&!A[$].shouldFormat(S))return;if(O.has(S)){A[$].formatter.append(C.single(i.circular));return}const k=[];let M=-1;do{if(O.has(S))k[M].formatter.append(C.single(i.circular),S);else{let U=!1;if(typeof S.formatDeep=="function"){let j=S.formatDeep(Ls.applyModifiers(S,i),d);j!==null&&(U=!0,M===-1?(j=C.setDefaultGutter(j),$===-1?m.append(j):A[$].formatter.append(j,S)):k[M].formatter.append(j,S))}if(!U&&typeof S.formatShallow=="function"){const j=S.formatShallow(Ls.applyModifiers(S,i),d),ne=S.createRecursor();if(j.increaseIndent&&h>0&&d.level===h+B){let Y=!(ne()===null)&&typeof j.maxDepth=="function"?j.maxDepth():j.finalize();M===-1?(Y=C.setDefaultGutter(Y),A[$].formatter.append(Y,S)):k[M].formatter.append(Y,S)}else k.push({formatter:j,recursor:ne,decreaseIndent:j.increaseIndent,shouldFormat:j.shouldFormat||fp,subject:S}),M++,j.increaseIndent&&(d=d.increase()),O.add(S)}}for(;M>=0;){do S=k[M].recursor();while(S&&!k[M].shouldFormat(S));if(S)break;const U=k.pop();M--,U.decreaseIndent&&(d=d.decrease()),O.delete(U.subject);let j=U.formatter.finalize();M===-1?(j=C.setDefaultGutter(j),$===-1?m.append(j):A[$].formatter.append(j,U.subject)):k[M].formatter.append(j,U.subject)}}while(M>=0)};do{let C=Qw;a.has(e)?C=a.get(e)===c.get(t)?ku:Ms:c.has(t)&&(C=Ms);let S=!1;if(e.isProperty===!0&&(C=e.compare(t),C===s0)){const k=p[y].subject;S=k.isSymbolPropertiesCollector!==!0&&k.isSymbolPropertiesComparable!==!0}let O=!1,B=!1;if(C!==ku&&!S&&typeof e.prepareDiff=="function"){const k=y===-1?null:p[y].recursor,M=y===-1?null:g[y].recursor,U=e.prepareDiff(t,k,M,Hj,L);if(U!==null){if(y>=0&&(typeof U.lhsRecursor=="function"&&(p[y].recursor=U.lhsRecursor),typeof U.rhsRecursor=="function"&&(g[y].recursor=U.rhsRecursor)),U.compareResult&&(C=U.compareResult),U.mustRecurse===!0)B=!0;else if(U.actualIsExtraneous===!0)E(ir.actual,e,a),O=!0;else if(U.multipleAreExtraneous===!0){for(const j of U.descriptors)E(ir.actual,j,a);O=!0}else if(U.expectedIsMissing===!0)E(ir.expected,t,c),O=!0;else if(U.multipleAreMissing===!0){for(const j of U.descriptors)E(ir.expected,j,c);O=!0}else if(U.isUnequal===!0)E(ir.actual,e,a),E(ir.expected,t,c),O=!0;else if(!U.compareResult)throw new Error("Illegal result of prepareDiff()")}}if(!O)if(C===Qw&&(C=e.compare(t)),B||(B=i0(C,e)),C===ku)E(ir,e,a);else if(B){if(C===s0&&e.isProperty===!0&&(e=new xf.Collector(e,p[y].recursor),t=new xf.Collector(t,g[y].recursor),p[y].recursor=Vo.unshift(p[y].recursor,e.collectAll()),g[y].recursor=Vo.unshift(g[y].recursor,t.collectAll())),typeof e.diffShallow=="function"){const k=e.diffShallow(t,Ls.applyModifiers(e,i),d);A.push({formatter:k,origin:e,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||fp}),$++,k.increaseIndent&&(d=d.increase())}else if(typeof e.formatShallow=="function"){const k=e.formatShallow(Ls.applyModifiers(e,i),d);A.push({formatter:k,decreaseIndent:k.increaseIndent,exceedsMaxDepth:k.increaseIndent&&h>0&&d.level>=h,shouldFormat:k.shouldFormat||fp,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,Ls.applyModifiers(e,i),d,o):null;k===null?(E(ir.actual,e,a),E(ir.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 U=A.pop();$--,U.decreaseIndent&&(d=d.decrease());let j=U.formatter.finalize();if(U.exceedsMaxDepth&&!j.hasGutter){const ne=k.subject,ue=ne.formatShallow(Ls.applyModifiers(ne,i),d);j=!(ne.createRecursor()()===null)&&typeof ue.maxDepth=="function"?ue.maxDepth():ue.finalize()}$===-1?m.append(j):A[$].formatter.append(j,U.subject)}}else{let k,M,U,j;e===null?(k=ir.expected,M=c,U=g,j=t):(k=ir.actual,M=a,U=p,j=e);do E(k,j,M,d.level),j=U[y].recursor();while(j!==null)}}while(y>=0);return m.toString({diff:!0,invert:o,theme:i})}Fv.diffDescriptors=r_;function qj(e,t,n){return r_(Kw(e,n),Kw(t,n),n)}Fv.diff=qj;var $v={};const jj=og,Vj=n_,Wj=$h,Xw=en,$c=Sh(),Gj=()=>!0,Yw=new Vj(0," ");function i_(e,t){const n=$c.normalize(t);if(e.isPrimitive===!0)return e.formatDeep($c.applyModifiers(e,n),Yw).toString({diff:!1});const i=new jj,o=t&&t.maxDepth||0;let a=Yw;const c=Xw.buffer(),h=[];let d=-1;do{if(i.has(e))h[d].formatter.append(Xw.single(n.circular),e);else{let p=!1;if(typeof e.formatDeep=="function"){const g=e.formatDeep($c.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($c.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||Gj,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})}$v.formatDescriptor=i_;function Kj(e,t){return i_(Wj(e,t),t)}$v.format=Kj;var Tv={},o0={},Qj={get exports(){return o0},set exports(e){o0=e}};(function(e){(function(t){function n(k,M){var U=(k&65535)+(M&65535),j=(k>>16)+(M>>16)+(U>>16);return j<<16|U&65535}function i(k,M){return k<<M|k>>>32-M}function o(k,M,U,j,ne,ue){return n(i(n(n(M,k),n(j,ue)),ne),U)}function a(k,M,U,j,ne,ue,Y){return o(M&U|~M&j,k,M,ne,ue,Y)}function c(k,M,U,j,ne,ue,Y){return o(M&j|U&~j,k,M,ne,ue,Y)}function h(k,M,U,j,ne,ue,Y){return o(M^U^j,k,M,ne,ue,Y)}function d(k,M,U,j,ne,ue,Y){return o(U^(M|~j),k,M,ne,ue,Y)}function p(k,M){k[M>>5]|=128<<M%32,k[(M+64>>>9<<4)+14]=M;var U,j,ne,ue,Y,z=1732584193,P=-271733879,F=-1732584194,w=271733878;for(U=0;U<k.length;U+=16)j=z,ne=P,ue=F,Y=w,z=a(z,P,F,w,k[U],7,-680876936),w=a(w,z,P,F,k[U+1],12,-389564586),F=a(F,w,z,P,k[U+2],17,606105819),P=a(P,F,w,z,k[U+3],22,-1044525330),z=a(z,P,F,w,k[U+4],7,-176418897),w=a(w,z,P,F,k[U+5],12,1200080426),F=a(F,w,z,P,k[U+6],17,-1473231341),P=a(P,F,w,z,k[U+7],22,-45705983),z=a(z,P,F,w,k[U+8],7,1770035416),w=a(w,z,P,F,k[U+9],12,-1958414417),F=a(F,w,z,P,k[U+10],17,-42063),P=a(P,F,w,z,k[U+11],22,-1990404162),z=a(z,P,F,w,k[U+12],7,1804603682),w=a(w,z,P,F,k[U+13],12,-40341101),F=a(F,w,z,P,k[U+14],17,-1502002290),P=a(P,F,w,z,k[U+15],22,1236535329),z=c(z,P,F,w,k[U+1],5,-165796510),w=c(w,z,P,F,k[U+6],9,-1069501632),F=c(F,w,z,P,k[U+11],14,643717713),P=c(P,F,w,z,k[U],20,-373897302),z=c(z,P,F,w,k[U+5],5,-701558691),w=c(w,z,P,F,k[U+10],9,38016083),F=c(F,w,z,P,k[U+15],14,-660478335),P=c(P,F,w,z,k[U+4],20,-405537848),z=c(z,P,F,w,k[U+9],5,568446438),w=c(w,z,P,F,k[U+14],9,-1019803690),F=c(F,w,z,P,k[U+3],14,-187363961),P=c(P,F,w,z,k[U+8],20,1163531501),z=c(z,P,F,w,k[U+13],5,-1444681467),w=c(w,z,P,F,k[U+2],9,-51403784),F=c(F,w,z,P,k[U+7],14,1735328473),P=c(P,F,w,z,k[U+12],20,-1926607734),z=h(z,P,F,w,k[U+5],4,-378558),w=h(w,z,P,F,k[U+8],11,-2022574463),F=h(F,w,z,P,k[U+11],16,1839030562),P=h(P,F,w,z,k[U+14],23,-35309556),z=h(z,P,F,w,k[U+1],4,-1530992060),w=h(w,z,P,F,k[U+4],11,1272893353),F=h(F,w,z,P,k[U+7],16,-155497632),P=h(P,F,w,z,k[U+10],23,-1094730640),z=h(z,P,F,w,k[U+13],4,681279174),w=h(w,z,P,F,k[U],11,-358537222),F=h(F,w,z,P,k[U+3],16,-722521979),P=h(P,F,w,z,k[U+6],23,76029189),z=h(z,P,F,w,k[U+9],4,-640364487),w=h(w,z,P,F,k[U+12],11,-421815835),F=h(F,w,z,P,k[U+15],16,530742520),P=h(P,F,w,z,k[U+2],23,-995338651),z=d(z,P,F,w,k[U],6,-198630844),w=d(w,z,P,F,k[U+7],10,1126891415),F=d(F,w,z,P,k[U+14],15,-1416354905),P=d(P,F,w,z,k[U+5],21,-57434055),z=d(z,P,F,w,k[U+12],6,1700485571),w=d(w,z,P,F,k[U+3],10,-1894986606),F=d(F,w,z,P,k[U+10],15,-1051523),P=d(P,F,w,z,k[U+1],21,-2054922799),z=d(z,P,F,w,k[U+8],6,1873313359),w=d(w,z,P,F,k[U+15],10,-30611744),F=d(F,w,z,P,k[U+6],15,-1560198380),P=d(P,F,w,z,k[U+13],21,1309151649),z=d(z,P,F,w,k[U+4],6,-145523070),w=d(w,z,P,F,k[U+11],10,-1120210379),F=d(F,w,z,P,k[U+2],15,718787259),P=d(P,F,w,z,k[U+9],21,-343485551),z=n(z,j),P=n(P,ne),F=n(F,ue),w=n(w,Y);return[z,P,F,w]}function g(k){var M,U="",j=k.length*32;for(M=0;M<j;M+=8)U+=String.fromCharCode(k[M>>5]>>>M%32&255);return U}function y(k){var M,U=[];for(U[(k.length>>2)-1]=void 0,M=0;M<U.length;M+=1)U[M]=0;var j=k.length*8;for(M=0;M<j;M+=8)U[M>>5]|=(k.charCodeAt(M/8)&255)<<M%32;return U}function m(k){return g(p(y(k),k.length*8))}function A(k,M){var U,j=y(k),ne=[],ue=[],Y;for(ne[15]=ue[15]=void 0,j.length>16&&(j=p(j,k.length*8)),U=0;U<16;U+=1)ne[U]=j[U]^909522486,ue[U]=j[U]^1549556828;return Y=p(ne.concat(y(M)),512+M.length*8),g(p(ue.concat(Y),512+128))}function $(k){var M="0123456789abcdef",U="",j,ne;for(ne=0;ne<k.length;ne+=1)j=k.charCodeAt(ne),U+=M.charAt(j>>>4&15)+M.charAt(j&15);return U}function L(k){return unescape(encodeURIComponent(k))}function E(k){return m(L(k))}function C(k){return $(E(k))}function S(k,M){return A(L(k),L(M))}function O(k,M){return $(S(k,M))}function B(k,M,U){return M?U?S(M,k):O(M,k):U?E(k):C(k)}e.exports?e.exports=B:t.md5=B})(ur)})(Qj);const Xj=o0;var Yj=e=>(Array.isArray(e)&&(e=e.join("")),Xj(e)),oo={},Zw=gh,Zj=Gg,Jj=ml,Jw=Zw?Zw.isConcatSpreadable:void 0;function eV(e){return Jj(e)||Zj(e)||!!(Jw&&e&&e[Jw])}var tV=eV,nV=Zg,rV=tV;function s_(e,t,n,i,o){var a=-1,c=e.length;for(n||(n=rV),o||(o=[]);++a<c;){var h=e[a];t>0&&n(h)?t>1?s_(h,t-1,n,i,o):nV(o,h):i||(o[o.length]=h)}return o}var iV=s_,sV=iV,oV=1/0;function aV(e){var t=e==null?0:e.length;return t?sV(e,oV):[]}var uV=aV;const lV=uV,je={zero:0,int8:1,int16:2,int24:3,int32:4,int40:5,int48:6,numberString:7,negativeZero:8,notANumber:9,infinity:10,negativeInfinity:11,bigInt:12,undefined:13,null:14,true:15,false:16,utf8:17,bytes:18,list:19,descriptor:20},kv=Symbol("descriptor");oo.descriptorSymbol=kv;function Mo(e,t){const n=Buffer.alloc(e);return n.writeIntLE(t,0,e),[e,n]}function Qn(e){if(Object.is(e,0))return je.zero;if(Object.is(e,-0))return je.negativeZero;if(Object.is(e,NaN))return je.notANumber;if(e===1/0)return je.infinity;if(e===-1/0)return je.negativeInfinity;if(e===void 0)return je.undefined;if(e===null)return je.null;if(e===!0)return je.true;if(e===!1)return je.false;const t=typeof e;if(t==="number"){if(Number.isInteger(e)){if(e>=-128&&e<128)return Mo(je.int8,e);if(e>=-32768&&e<32768)return Mo(je.int16,e);if(e>=-8388608&&e<8388608)return Mo(je.int24,e);if(e>=-2147483648&&e<2147483648)return Mo(je.int32,e);if(e>=-549755813888&&e<549755813888)return Mo(je.int40,e);if(e>=-0x800000000000&&e<0x800000000000)return Mo(je.int48,e)}const i=Buffer.from(String(e),"utf8");return[je.numberString,Qn(i.length),i]}if(t==="string"){const i=Buffer.from(e,"utf8");return[je.utf8,Qn(i.length),i]}if(t==="bigint"){const i=Buffer.from(String(e),"utf8");return[je.bigInt,Qn(i.length),i]}if(Buffer.isBuffer(e))return[je.bytes,Qn(e.byteLength),e];if(Array.isArray(e))return[e[kv]===!0?je.descriptor:je.list,Qn(e.length),e.map(i=>Qn(i))];const n=`0x${t.toString(16).toUpperCase()}`;throw new TypeError(`Unexpected value with type ${n}`)}function Wr(e,t){const n=e.readUInt8(t);if(t+=1,n===je.zero)return{byteOffset:t,value:0};if(n===je.negativeZero)return{byteOffset:t,value:-0};if(n===je.notANumber)return{byteOffset:t,value:NaN};if(n===je.infinity)return{byteOffset:t,value:1/0};if(n===je.negativeInfinity)return{byteOffset:t,value:-1/0};if(n===je.undefined)return{byteOffset:t,value:void 0};if(n===je.null)return{byteOffset:t,value:null};if(n===je.true)return{byteOffset:t,value:!0};if(n===je.false)return{byteOffset:t,value:!1};if(n===je.int8||n===je.int16||n===je.int24||n===je.int32||n===je.int40||n===je.int48){const o=e.readIntLE(t,n);return t+=n,{byteOffset:t,value:o}}if(n===je.numberString||n===je.utf8||n===je.bytes||n===je.bigInt){const o=Wr(e,t),a=o.byteOffset,c=a+o.value;if(n===je.numberString){const d=Number(e.toString("utf8",a,c));return{byteOffset:c,value:d}}if(n===je.utf8){const d=e.toString("utf8",a,c);return{byteOffset:c,value:d}}if(n===je.bigInt){const d=BigInt(e.toString("utf8",a,c));return{byteOffset:c,value:d}}const h=e.slice(a,c);return{byteOffset:c,value:h}}if(n===je.list||n===je.descriptor){const o=Wr(e,t);t=o.byteOffset;const a=new Array(o.value);n===je.descriptor&&(a[kv]=!0);for(let c=0;c<o.value;c++){const h=Wr(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 Tc(e){if(typeof e=="number"){const o=Buffer.alloc(1);return o.writeUInt8(e),o}const t=lV(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 cV(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=Tc(Qn(n.size));i.push(h),o+=h.byteLength;for(const g of n.keys()){const y=n.get(g),m=Tc([Qn(g),Qn(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=Tc([Qn(g.pluginIndex),Qn(g.id),Qn(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=Tc(Qn(g.state));i.push(m),o+=m.byteLength}return Buffer.concat(i,o)}oo.encode=cV;function fV(e){const t=Wr(e,0);let n=t.byteOffset;const i=new Map,o=t.value;for(let a=1;a<=o;a++){const c=Wr(e,n),h=c.value;n=c.byteOffset;const d=Wr(e,n).value;i.set(a,{name:h,serializerVersion:d})}return i}oo.decodePlugins=fV;function o_(e,t){const n=Wr(e,t),i=n.value;t=n.byteOffset;const o=Wr(e,t),a=o.value;t=o.byteOffset;const c=Wr(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=Wr(e,t).value;return{id:a,pluginIndex:i,state:p,pointerAddresses:d}}oo.decodeRecord=o_;function hV(e){return e.readUInt16LE(0)}oo.extractVersion=hV;function dV(e){const t=e.readUInt32LE(2),n=e.slice(6,t),i=o_(e,t);return{pluginBuffer:n,rootRecord:i}}oo.decode=dV;var Lh={};const pV=bt.UNEQUAL;function a_(e){return new Lv(e)}Lh.describe=a_;Lh.deserialize=a_;const u_=Symbol("Pointer");Lh.tag=u_;class Lv{constructor(t){this.index=t}compare(t){return pV}serialize(){return this.index}}Object.defineProperty(Lv.prototype,"isPointer",{value:!0});Object.defineProperty(Lv.prototype,"tag",{value:u_});const gV=Yj,eD=xa,tD=rl,nD=il,rD=sl,iD=ol,sD=al,oD=ul,aD=ll,uD=cl,lD=Jt,cD=fl,fD=hl,hD=dl,kc=er,Ys=oo,Lc=Li,dD=pl,a0=Lh,Bc=Bi,zo=cr,l_=pv(),pD=bl,gD=wl,vD=Dl,mD=Al,yD=ro,bD=Ta,wD=xl,vV=$t,c_=3,f_=[[1,pD.tag,pD.deserialize],[2,gD.tag,gD.deserialize],[3,vD.tag,vD.deserialize],[4,mD.tag,mD.deserialize],[5,yD.tag,yD.deserialize],[6,bD.tag,bD.deserialize],[7,wD.tag,wD.deserialize],[8,lD.tag,lD.deserialize],[9,zo.iterableTag,zo.deserializeIterableStats],[10,zo.listTag,zo.deserializeListStats],[11,Lc.complexTag,Lc.deserializeComplex],[12,Lc.primitiveTag,Lc.deserializePrimitive],[13,zo.propertyTag,zo.deserializePropertyStats],[14,Bc.complexTag,Bc.deserializeComplex],[15,Bc.primitiveTag,Bc.deserializePrimitive],[16,a0.tag,a0.deserialize],[17,uD.tag,uD.deserialize],[18,dD.tag,dD.deserialize],[19,eD.tag,eD.deserialize],[20,tD.tag,tD.deserialize],[21,nD.tag,nD.deserialize],[22,rD.tag,rD.deserialize],[23,iD.tag,iD.deserialize],[24,sD.tag,sD.deserialize],[25,oD.tag,oD.deserialize],[26,aD.tag,aD.deserialize],[27,cD.tag,cD.deserialize],[28,fD.tag,fD.deserialize],[29,hD.tag,hD.deserialize],[30,kc.tag,kc.deserialize],[31,kc.bytesTag,kc.deserializeBytes]],Ef=new Map(f_.map(e=>[e[1],e[0]])),mV=new Map(f_.map(e=>[e[0],e[2]]));class yV extends Error{constructor(t){super("Could not serialize descriptor"),this.name="DescriptorSerializationError",this.descriptor=t}}class bV extends Error{constructor(t){super(`Could not deserialize buffer: missing plugin ${JSON.stringify(t)}`),this.name="MissingPluginError",this.pluginName=t}}class wV extends Error{constructor(t){super(`Could not deserialize buffer: pointer ${t} could not be resolved`),this.name="PointerLookupError",this.index=t}}class DV 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 AV extends Error{constructor(t){super("Could not deserialize buffer: a different serialization was expected"),this.name="UnsupportedVersion",this.serializerVersion=t}}function h_(e,t){if(e.serialize)return d_(e.serialize(),t)}function d_(e,t){if(Array.isArray(e))return e.map(n=>d_(n));if(e&&e.tag){let n,i;if(Ef.has(e.tag))n=Ef.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,h_(e,t)];return o[Ys.descriptorSymbol]=!0,o}}return e}function xV(e){const t=new Map,n=h=>{const d=l_.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=a0.describe(e.pointer):i.add(e.pointer));let h,d=0;if(Ef.has(e.tag))h=Ef.get(e.tag);else{const g=n(e.tag);if(!g)throw new yV(e);h=g.id,d=g.pluginIndex}const p={id:h,pluginIndex:d,children:[],state:h_(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 Ys.encode(c_,c,t)}Tv.serialize=xV;function p_(e,t){return e&&e[Ys.descriptorSymbol]===!0?EV(e,t):Array.isArray(e)?e.map(n=>p_(n,t)):e}function EV(e,t){return t(e[0],e[1])(e[2])}function g_(e,t,n){const i=t(e.pluginIndex,e.id),o=p_(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=Ys.decodeRecord(n,e.pointerAddresses[c++]);return g_(d,t,n)})}function CV(e,t){const n=t&&t.deserializedPluginsCache,i=gV(e);if(n&&n.has(i))return n.get(i);const o=Ys.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 l_.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 bV(p);if(g!==a.get(p).serializerVersion)throw new DV(p,g);c.set(h,a.get(p).id2deserialize)}return n&&n.set(i,c),c}function _V(e,t){const n=Ys.extractVersion(e);if(n!==c_)throw new AV(n);const i=Ys.decode(e),o=CV(i.pluginBuffer,t),a=new Map,c=p=>{if(p.isPointer===!0){if(a.has(p.index)||typeof d.createRecursor=="function"&&(vV.consumeDeep(d.createRecursor()),a.has(p.index)))return a.get(p.index);throw new wV(p.index)}return p.isComplex===!0&&a.set(p.pointer,p),p},h=(p,g)=>(y,m)=>{const A=p===0?mV.get(g):o.get(p).get(g);return c(A(y,m))},d=g_(i.rootRecord,h,e);return d}Tv.deserialize=_V;const v_=sg,SV=$h,m_=Fv,y_=$v,b_=Tv;Yr.compare=v_.compare;Yr.compareDescriptors=v_.compareDescriptors;Yr.describe=SV;Yr.diff=m_.diff;Yr.diffDescriptors=m_.diffDescriptors;Yr.format=y_.format;Yr.formatDescriptor=y_.formatDescriptor;Yr.serialize=b_.serialize;Yr.deserialize=b_.deserialize;function FV(){const e=dE();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 $V(e,t,n){return Yr.diff(t,e,n)}function TV(e,t,n={}){const i=FV(),o=$V(e,t,{theme:i}),{showLegend:a=!0}=n,c={"+":0,"-":0},h=dE(),d=i.diffGutters.actual,p=` ${h.green("+")}`;o.split(/\r?\n/g).forEach(m=>{m.startsWith(d)?c["+"]++:m.startsWith(p)&&c["-"]++});let y="";return a&&(y=` ${h.green(`- Expected - ${c["-"]}`)}
|
|
11
|
+
${h.red(`+ Received + ${c["+"]}`)}
|
|
12
|
+
|
|
13
|
+
`),y+o.replace(/␊\s*$/mg,"")}function u0(e){return e.type==="test"||e.type==="custom"}function w_(e){return hE(e).flatMap(t=>u0(t)?[t]:t.tasks.flatMap(n=>u0(n)?[n]:w_(n)))}function Bv(e=[]){return hE(e).flatMap(t=>u0(t)?[t]:[t,...Bv(t.tasks)])}function kV(e){const t=[e.name];let n=e;for(;n!=null&&n.suite||n!=null&&n.file;)n=n.suite||n.file,n!=null&&n.name&&t.unshift(n.name);return t}function Bh(e){return w_(e).some(t=>{var n,i;return(i=(n=t.result)==null?void 0:n.errors)==null?void 0:i.some(o=>o&&o.message&&o.message.match(/Snapshot .* mismatched/))})}function LV(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:a=10,reactive:c=C=>C,WebSocketConstructor:h=globalThis.WebSocket}=t;let d=a;const p=c({ws:new h(e),state:new fE,waitForConnection:E,reconnect:$});p.state.filesMap=c(p.state.filesMap),p.state.idMap=c(p.state.idMap);let g;const y={onPathsCollected(C){var S;p.state.collectPaths(C),(S=n.onPathsCollected)==null||S.call(n,C)},onCollected(C){var S;p.state.collectFiles(C),(S=n.onCollected)==null||S.call(n,C)},onTaskUpdate(C){var S;p.state.updateTasks(C),(S=n.onTaskUpdate)==null||S.call(n,C)},onUserConsoleLog(C){p.state.updateUserLog(C)},onFinished(C){var S;(S=n.onFinished)==null||S.call(n,C)}},m={post:C=>p.ws.send(C),on:C=>g=C,serialize:uO,deserialize:qp};p.rpc=eO(y,m);let A;function $(C=!1){C&&(d=a),p.ws=new h(e),L()}function L(){A=new Promise(C=>{p.ws.addEventListener("open",()=>{d=a,C()})}),p.ws.addEventListener("message",C=>{g(C.data)}),p.ws.addEventListener("close",()=>{d-=1,i&&d>0&&setTimeout($,o)})}L();function E(){return A}return p}const BV=location.port,OV=[location.hostname,BV].filter(Boolean).join(":"),PV=`${location.protocol==="https:"?"wss:":"ws:"}//${OV}/__vitest_api__`,Qr=!!window.METADATA_PATH,NV=Qr?"./":"/__vitest__/";var DD;const D_=typeof window<"u",IV=e=>typeof e<"u",A_=e=>typeof e=="function",RV=e=>typeof e=="string",va=()=>{};D_&&((DD=window==null?void 0:window.navigator)!=null&&DD.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fs(e){return typeof e=="function"?e():X(e)}function Ov(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 x_=e=>e();function E_(e,t={}){let n,i,o=va;const a=h=>{clearTimeout(h),o(),o=va};return h=>{const d=fs(e),p=fs(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 MV(e,t=!0,n=!0,i=!1){let o=0,a,c=!0,h=va,d;const p=()=>{a&&(clearTimeout(a),a=void 0,h(),h=va)};return y=>{const m=fs(e),A=Date.now()-o,$=()=>d=y();return p(),m<=0?(o=Date.now(),$()):(A>m&&(n||!c)?(o=Date.now(),$()):t&&(d=new Promise((L,E)=>{h=i?E:L,a=setTimeout(()=>{o=Date.now(),c=!0,L($()),p()},Math.max(0,m-A))})),!n&&!a&&(a=setTimeout(()=>c=!0,m)),c=!1,d)}}function zV(e=x_){const t=Xe(!0);function n(){t.value=!1}function i(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:P0(t),pause:n,resume:i,eventFilter:o}}function UV(e){return e}function Pv(e){return kA()?(m$(e),!0):!1}function AD(e,t=200,n={}){return Ov(E_(t,n),e)}function HV(e,t=200,n=!1,i=!0,o=!1){return Ov(MV(t,n,i,o),e)}function qV(e,t=200,n=!0,i=!0){if(t<=0)return e;const o=Xe(e.value),a=HV(()=>{o.value=e.value},t,n,i);return Zt(e,()=>a()),o}function jV(e){return typeof e=="function"?Ce(e):Xe(e)}function Nv(e,t=!0){Xf()?Zu(e):t?e():Aa(e)}function VV(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,o=Nt(e),a=Xe(e);function c(h){if(arguments.length)return a.value=h,a.value;{const d=fs(n);return a.value=a.value===d?fs(i):d,a.value}}return o?c:[a,c]}var xD=Object.getOwnPropertySymbols,WV=Object.prototype.hasOwnProperty,GV=Object.prototype.propertyIsEnumerable,KV=(e,t)=>{var n={};for(var i in e)WV.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&xD)for(var i of xD(e))t.indexOf(i)<0&&GV.call(e,i)&&(n[i]=e[i]);return n};function C_(e,t,n={}){const i=n,{eventFilter:o=x_}=i,a=KV(i,["eventFilter"]);return Zt(e,Ov(o,t),a)}var QV=Object.defineProperty,XV=Object.defineProperties,YV=Object.getOwnPropertyDescriptors,Cf=Object.getOwnPropertySymbols,__=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable,ED=(e,t,n)=>t in e?QV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZV=(e,t)=>{for(var n in t||(t={}))__.call(t,n)&&ED(e,n,t[n]);if(Cf)for(var n of Cf(t))S_.call(t,n)&&ED(e,n,t[n]);return e},JV=(e,t)=>XV(e,YV(t)),eW=(e,t)=>{var n={};for(var i in e)__.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Cf)for(var i of Cf(e))t.indexOf(i)<0&&S_.call(e,i)&&(n[i]=e[i]);return n};function tW(e,t,n={}){const i=n,{debounce:o=0,maxWait:a=void 0}=i,c=eW(i,["debounce","maxWait"]);return C_(e,t,JV(ZV({},c),{eventFilter:E_(o,{maxWait:a})}))}function nW(e,t,n){const i=Zt(e,(...o)=>(Aa(()=>i()),t(...o)),n)}var rW=Object.defineProperty,iW=Object.defineProperties,sW=Object.getOwnPropertyDescriptors,_f=Object.getOwnPropertySymbols,F_=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable,CD=(e,t,n)=>t in e?rW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oW=(e,t)=>{for(var n in t||(t={}))F_.call(t,n)&&CD(e,n,t[n]);if(_f)for(var n of _f(t))$_.call(t,n)&&CD(e,n,t[n]);return e},aW=(e,t)=>iW(e,sW(t)),uW=(e,t)=>{var n={};for(var i in e)F_.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&_f)for(var i of _f(e))t.indexOf(i)<0&&$_.call(e,i)&&(n[i]=e[i]);return n};function T_(e,t,n={}){const i=n,{eventFilter:o}=i,a=uW(i,["eventFilter"]),{eventFilter:c,pause:h,resume:d,isActive:p}=zV(o);return{stop:C_(e,t,aW(oW({},a),{eventFilter:c})),pause:h,resume:d,isActive:p}}function lW(e,t,n){let i;Nt(n)?i={evaluating:n}:i=n||{};const{lazy:o=!1,evaluating:a=void 0,shallow:c=!1,onError:h=va}=i,d=Xe(!o),p=c?Da(t):Xe(t);let g=0;return j0(async y=>{if(!d.value)return;g++;const m=g;let A=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const $=await e(L=>{y(()=>{a&&(a.value=!1),A||L()})});m===g&&(p.value=$)}catch($){h($)}finally{a&&m===g&&(a.value=!1),A=!0}}),o?Ce(()=>(d.value=!0,p.value)):p}function k_(e){var t;const n=fs(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Xr=D_?window:void 0;function Zs(...e){let t,n,i,o;if(RV(e[0])||Array.isArray(e[0])?([n,i,o]=e,t=Xr):[t,n,i,o]=e,!t)return va;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],c=()=>{a.forEach(g=>g()),a.length=0},h=(g,y,m,A)=>(g.addEventListener(y,m,A),()=>g.removeEventListener(y,m,A)),d=Zt(()=>[k_(t),fs(o)],([g,y])=>{c(),g&&a.push(...n.flatMap(m=>i.map(A=>h(g,m,A,y))))},{immediate:!0,flush:"post"}),p=()=>{d(),c()};return Pv(p),p}const cW=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function fW(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=Xr,eventName:a="keydown",passive:c=!1}=i,h=cW(t);return Zs(o,a,p=>{h(p)&&n(p)},c)}function L_(e,t=!1){const n=Xe(),i=()=>n.value=!!e();return i(),Nv(i,t),n}function hW(e,t={}){const{window:n=Xr}=t,i=L_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const a=Xe(!1),c=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",h):o.removeListener(h))},h=()=>{i.value&&(c(),o=n.matchMedia(jV(e).value),a.value=o.matches,"addEventListener"in o?o.addEventListener("change",h):o.addListener(h))};return j0(h),Pv(()=>c()),a}function dW(e){return JSON.parse(JSON.stringify(e))}const l0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c0="__vueuse_ssr_handlers__";l0[c0]=l0[c0]||{};const pW=l0[c0];function B_(e,t){return pW[e]||t}function gW(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var vW=Object.defineProperty,_D=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,SD=(e,t,n)=>t in e?vW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FD=(e,t)=>{for(var n in t||(t={}))mW.call(t,n)&&SD(e,n,t[n]);if(_D)for(var n of _D(t))yW.call(t,n)&&SD(e,n,t[n]);return e};const bW={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()}},$D="vueuse-storage";function wW(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=Xr,eventFilter:m,onError:A=j=>{console.error(j)}}=i,$=(g?Da:Xe)(t);if(!n)try{n=B_("getDefaultStorage",()=>{var j;return(j=Xr)==null?void 0:j.localStorage})()}catch(j){A(j)}if(!n)return $;const L=fs(t),E=gW(L),C=(o=i.serializer)!=null?o:bW[E],{pause:S,resume:O}=T_($,()=>B($.value),{flush:a,deep:c,eventFilter:m});return y&&h&&(Zs(y,"storage",U),Zs(y,$D,M)),U(),$;function B(j){try{if(j==null)n.removeItem(e);else{const ne=C.write(j),ue=n.getItem(e);ue!==ne&&(n.setItem(e,ne),y&&y.dispatchEvent(new CustomEvent($D,{detail:{key:e,oldValue:ue,newValue:ne,storageArea:n}})))}}catch(ne){A(ne)}}function k(j){const ne=j?j.newValue:n.getItem(e);if(ne==null)return d&&L!==null&&n.setItem(e,C.write(L)),L;if(!j&&p){const ue=C.read(ne);return A_(p)?p(ue,L):E==="object"&&!Array.isArray(ue)?FD(FD({},L),ue):ue}else return typeof ne!="string"?ne:C.read(ne)}function M(j){U(j.detail)}function U(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){$.value=L;return}if(!(j&&j.key!==e)){S();try{$.value=k(j)}catch(ne){A(ne)}finally{j?Aa(O):O()}}}}}function O_(e){return hW("(prefers-color-scheme: dark)",e)}var DW=Object.defineProperty,TD=Object.getOwnPropertySymbols,AW=Object.prototype.hasOwnProperty,xW=Object.prototype.propertyIsEnumerable,kD=(e,t,n)=>t in e?DW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EW=(e,t)=>{for(var n in t||(t={}))AW.call(t,n)&&kD(e,n,t[n]);if(TD)for(var n of TD(t))xW.call(t,n)&&kD(e,n,t[n]);return e};function CW(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:o=Xr,storage:a,storageKey:c="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:p}=e,g=EW({auto:"",light:"light",dark:"dark"},e.modes||{}),y=O_({window:o}),m=Ce(()=>y.value?"dark":"light"),A=d||(c==null?Xe(i):wW(c,i,a,{window:o,listenToStorageChanges:h})),$=Ce({get(){return A.value==="auto"&&!p?m.value:A.value},set(S){A.value=S}}),L=B_("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(U=>(U||"").split(/\s/g)).filter(Boolean).forEach(U=>{M.includes(U)?k.classList.add(U):k.classList.remove(U)})}else k.setAttribute(O,B)});function E(S){var O;const B=S==="auto"?m.value:S;L(t,n,(O=g[B])!=null?O:B)}function C(S){e.onChanged?e.onChanged(S,E):E(S)}return Zt($,C,{flush:"post",immediate:!0}),p&&Zt(m,()=>C($.value),{flush:"post"}),Nv(()=>C($.value)),$}var _W=Object.defineProperty,SW=Object.defineProperties,FW=Object.getOwnPropertyDescriptors,LD=Object.getOwnPropertySymbols,$W=Object.prototype.hasOwnProperty,TW=Object.prototype.propertyIsEnumerable,BD=(e,t,n)=>t in e?_W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kW=(e,t)=>{for(var n in t||(t={}))$W.call(t,n)&&BD(e,n,t[n]);if(LD)for(var n of LD(t))TW.call(t,n)&&BD(e,n,t[n]);return e},LW=(e,t)=>SW(e,FW(t));function BW(e={}){const{valueDark:t="dark",valueLight:n="",window:i=Xr}=e,o=CW(LW(kW({},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=O_({window:i});return Ce({get(){return o.value==="dark"},set(h){h===a.value?o.value="auto":o.value=h?"dark":"light"}})}var OD=Object.getOwnPropertySymbols,OW=Object.prototype.hasOwnProperty,PW=Object.prototype.propertyIsEnumerable,NW=(e,t)=>{var n={};for(var i in e)OW.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&OD)for(var i of OD(e))t.indexOf(i)<0&&PW.call(e,i)&&(n[i]=e[i]);return n};function IW(e,t,n={}){const i=n,{window:o=Xr}=i,a=NW(i,["window"]);let c;const h=L_(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},p=Zt(()=>k_(e),y=>{d(),h.value&&o&&y&&(c=new ResizeObserver(t),c.observe(y,a))},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return Pv(g),{isSupported:h,stop:g}}var PD;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(PD||(PD={}));var RW=Object.defineProperty,ND=Object.getOwnPropertySymbols,MW=Object.prototype.hasOwnProperty,zW=Object.prototype.propertyIsEnumerable,ID=(e,t,n)=>t in e?RW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UW=(e,t)=>{for(var n in t||(t={}))MW.call(t,n)&&ID(e,n,t[n]);if(ND)for(var n of ND(t))zW.call(t,n)&&ID(e,n,t[n]);return e};const HW={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]};UW({linear:UV},HW);function qW(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:o=!1,write:a=!0,window:c=Xr}=t;if(!c)return Zn(n);const h=Zn({});function d(){if(e==="history")return c.location.search||"";if(e==="hash"){const C=c.location.hash||"",S=C.indexOf("?");return S>0?C.slice(S):""}else return(c.location.hash||"").replace(/^#/,"")}function p(C){const S=C.toString();if(e==="history")return`${S?`?${S}`:""}${c.location.hash||""}`;if(e==="hash-params")return`${c.location.search||""}${S?`#${S}`:""}`;const O=c.location.hash||"#",B=O.indexOf("?");return B>0?`${O.slice(0,B)}${S?`?${S}`:""}`:`${O}${S?`?${S}`:""}`}function g(){return new URLSearchParams(d())}function y(C){const S=new Set(Object.keys(h));for(const O of C.keys()){const B=C.getAll(O);h[O]=B.length>1?B:C.get(O)||"",S.delete(O)}Array.from(S).forEach(O=>delete h[O])}const{pause:m,resume:A}=T_(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach(S=>{const O=h[S];Array.isArray(O)?O.forEach(B=>C.append(S,B)):i&&O==null||o&&!O?C.delete(S):C.set(S,O)}),$(C)},{deep:!0});function $(C,S){m(),S&&y(C),c.history.replaceState(c.history.state,c.document.title,c.location.pathname+p(C)),A()}function L(){a&&$(g(),!0)}Zs(c,"popstate",L,!1),e!=="history"&&Zs(c,"hashchange",L,!1);const E=g();return E.keys().next().value?y(E):Object.assign(h,n),h}function jW(e,t,n,i={}){var o,a,c;const{clone:h=!1,passive:d=!1,eventName:p,deep:g=!1,defaultValue:y}=i,m=Xf(),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=C=>h?A_(h)?h(C):dW(C):C,E=()=>IV(e[t])?L(e[t]):y;if(d){const C=E(),S=Xe(C);return Zt(()=>e[t],O=>S.value=L(O)),Zt(S,O=>{(O!==e[t]||g)&&A($,O)},{deep:g}),S}else return Ce({get(){return E()},set(C){A($,C)}})}function VW(e={}){const{window:t=Xr,initialWidth:n=1/0,initialHeight:i=1/0,listenOrientation:o=!0,includeScrollbar:a=!0}=e,c=Xe(n),h=Xe(i),d=()=>{t&&(a?(c.value=t.innerWidth,h.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};return d(),Nv(d),Zs("resize",d,{passive:!0}),o&&Zs("orientationchange",d,{passive:!0}),{width:c,height:h}}const P_=qW("hash-params",{initialValue:{file:"",view:null}}),wi=M0(P_,"file"),Mr=M0(P_,"view");var Xn=Uint8Array,Hs=Uint16Array,N_=Uint32Array,I_=new Xn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),R_=new Xn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),WW=new Xn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),M_=function(e,t){for(var n=new Hs(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new N_(n[30]),i=1;i<30;++i)for(var a=n[i];a<n[i+1];++a)o[a]=a-n[i]<<5|i;return[n,o]},z_=M_(I_,2),U_=z_[0],GW=z_[1];U_[28]=258,GW[258]=28;var KW=M_(R_,0),QW=KW[0],f0=new Hs(32768);for(var _t=0;_t<32768;++_t){var Yi=(_t&43690)>>>1|(_t&21845)<<1;Yi=(Yi&52428)>>>2|(Yi&13107)<<2,Yi=(Yi&61680)>>>4|(Yi&3855)<<4,f0[_t]=((Yi&65280)>>>8|(Yi&255)<<8)>>>1}var Lu=function(e,t,n){for(var i=e.length,o=0,a=new Hs(t);o<i;++o)e[o]&&++a[e[o]-1];var c=new Hs(t);for(o=0;o<t;++o)c[o]=c[o-1]+a[o-1]<<1;var h;if(n){h=new Hs(1<<t);var d=15-t;for(o=0;o<i;++o)if(e[o])for(var p=o<<4|e[o],g=t-e[o],y=c[e[o]-1]++<<g,m=y|(1<<g)-1;y<=m;++y)h[f0[y]>>>d]=p}else for(h=new Hs(i),o=0;o<i;++o)e[o]&&(h[o]=f0[c[e[o]-1]++]>>>15-e[o]);return h},El=new Xn(288);for(var _t=0;_t<144;++_t)El[_t]=8;for(var _t=144;_t<256;++_t)El[_t]=9;for(var _t=256;_t<280;++_t)El[_t]=7;for(var _t=280;_t<288;++_t)El[_t]=8;var H_=new Xn(32);for(var _t=0;_t<32;++_t)H_[_t]=5;var XW=Lu(El,9,1),YW=Lu(H_,5,1),hp=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},vr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},dp=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},ZW=function(e){return(e+7)/8|0},q_=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var i=new(e.BYTES_PER_ELEMENT==2?Hs:e.BYTES_PER_ELEMENT==4?N_:Xn)(n-t);return i.set(e.subarray(t,n)),i},JW=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],or=function(e,t,n){var i=new Error(t||JW[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,or),!n)throw i;return i},Iv=function(e,t,n){var i=e.length;if(!i||n&&n.f&&!n.l)return t||new Xn(0);var o=!t||n,a=!n||n.i;n||(n={}),t||(t=new Xn(i*3));var c=function(se){var J=t.length;if(se>J){var fe=new Xn(Math.max(J*2,se));fe.set(t),t=fe}},h=n.f||0,d=n.p||0,p=n.b||0,g=n.l,y=n.d,m=n.m,A=n.n,$=i*8;do{if(!g){h=vr(e,d,1);var L=vr(e,d+1,3);if(d+=3,L)if(L==1)g=XW,y=YW,m=9,A=5;else if(L==2){var O=vr(e,d,31)+257,B=vr(e,d+10,15)+4,k=O+vr(e,d+5,31)+1;d+=14;for(var M=new Xn(k),U=new Xn(19),j=0;j<B;++j)U[WW[j]]=vr(e,d+j*3,7);d+=B*3;for(var ne=hp(U),ue=(1<<ne)-1,Y=Lu(U,ne,1),j=0;j<k;){var z=Y[vr(e,d,ue)];d+=z&15;var E=z>>>4;if(E<16)M[j++]=E;else{var P=0,F=0;for(E==16?(F=3+vr(e,d,3),d+=2,P=M[j-1]):E==17?(F=3+vr(e,d,7),d+=3):E==18&&(F=11+vr(e,d,127),d+=7);F--;)M[j++]=P}}var w=M.subarray(0,O),R=M.subarray(O);m=hp(w),A=hp(R),g=Lu(w,m,1),y=Lu(R,A,1)}else or(1);else{var E=ZW(d)+4,C=e[E-4]|e[E-3]<<8,S=E+C;if(S>i){a&&or(0);break}o&&c(p+C),t.set(e.subarray(E,S),p),n.b=p+=C,n.p=d=S*8,n.f=h;continue}if(d>$){a&&or(0);break}}o&&c(p+131072);for(var V=(1<<m)-1,Z=(1<<A)-1,ae=d;;ae=d){var P=g[dp(e,d)&V],pe=P>>>4;if(d+=P&15,d>$){a&&or(0);break}if(P||or(2),pe<256)t[p++]=pe;else if(pe==256){ae=d,g=null;break}else{var $e=pe-254;if(pe>264){var j=pe-257,_e=I_[j];$e=vr(e,d,(1<<_e)-1)+U_[j],d+=_e}var ze=y[dp(e,d)&Z],Ke=ze>>>4;ze||or(3),d+=ze&15;var R=QW[Ke];if(Ke>3){var _e=R_[Ke];R+=dp(e,d)&(1<<_e)-1,d+=_e}if(d>$){a&&or(0);break}o&&c(p+131072);for(var ie=p+$e;p<ie;p+=4)t[p]=t[p-R],t[p+1]=t[p+1-R],t[p+2]=t[p+2-R],t[p+3]=t[p+3-R];p=ie}}n.l=g,n.p=ae,n.b=p,n.f=h,g&&(h=1,n.m=m,n.d=y,n.n=A)}while(!h);return p==t.length?t:q_(t,0,p)},eG=new Xn(0),tG=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&or(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=e[10]|(e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},nG=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},rG=function(e){((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)&&or(6,"invalid zlib data"),e[1]&32&&or(6,"invalid zlib data: preset dictionaries not supported")};function iG(e,t){return Iv(e,t)}function sG(e,t){return Iv(e.subarray(tG(e),-8),t||new Xn(nG(e)))}function oG(e,t){return Iv((rG(e),e.subarray(2,-4)),t)}function aG(e,t){return e[0]==31&&e[1]==139&&e[2]==8?sG(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?iG(e,t):oG(e,t)}var h0=typeof TextDecoder<"u"&&new TextDecoder,uG=0;try{h0.decode(eG,{stream:!0}),uG=1}catch{}var lG=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return[t,q_(e,n-1)];o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function cG(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}else{if(h0)return h0.decode(e);var o=lG(e),a=o[0],c=o[1];return c.length&&or(8),a}}const RD=()=>{},Zi=()=>Promise.resolve();function fG(){const e=Zn({state:new fE,waitForConnection:c,reconnect:o,ws:new EventTarget});e.state.filesMap=Zn(e.state.filesMap),e.state.idMap=Zn(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async h=>t.moduleGraph[h],getTransformResult:async h=>({code:h,source:""}),readFile:async h=>Promise.resolve(h),onDone:RD,onCollected:Zi,onTaskUpdate:RD,writeFile:Zi,rerun:Zi,updateSnapshot:Zi,removeFile:Zi,createDirectory:Zi,resolveSnapshotPath:Zi,snapshotSaved:Zi};e.rpc=n;let i;function o(){a()}async function a(){var g;const h=await fetch(window.METADATA_PATH);if((((g=h.headers.get("content-type"))==null?void 0:g.toLowerCase())||"").includes("application/gzip")){const y=new Uint8Array(await h.arrayBuffer()),m=cG(aG(y));t=qp(m)}else t=qp(await h.text());const p=new Event("open");e.ws.dispatchEvent(p)}a();function c(){return i}return e}const Sf=Xe("idle"),sn=function(){return Qr?fG():LV(PV,{reactive:Zn,handlers:{onTaskUpdate(){Sf.value="running"},onFinished(){Sf.value="idle"}}})}(),j_=Da({}),qs=Xe("CONNECTING"),qn=Ce(()=>sn.state.getFiles()),Pt=Ce(()=>qn.value.find(e=>e.id===wi.value)),V_=Ce(()=>Bv(Pt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function Ff(e){return qn.value.find(t=>t.id===e)}const hG=Ce(()=>qs.value==="OPEN"),pp=Ce(()=>qs.value==="CONNECTING");Ce(()=>qs.value==="CLOSED");function MD(e=sn.state.getFiles()){return W_(e)}function W_(e){return e.forEach(t=>{delete t.result,Bv(t).forEach(n=>delete n.result)}),sn.rpc.rerun(e.map(t=>t.filepath))}function dG(){if(Pt.value)return W_([Pt.value])}Zt(()=>sn.ws,e=>{qs.value=Qr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{qs.value="OPEN",sn.state.filesMap.clear();const[t,n]=await Promise.all([sn.rpc.getFiles(),sn.rpc.getConfig()]);sn.state.collectFiles(t),j_.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{qs.value==="CONNECTING"&&(qs.value="CLOSED")},1e3)})},{immediate:!0});const pG={"text-2xl":""},gG=me("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),vG=ot({__name:"ConnectionOverlay",setup(e){return(t,n)=>X(hG)?lt("",!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(sn).reconnect&&X(sn).reconnect(...i))},[me("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:yt(X(pp)?"animate-pulse":"")},[me("div",{text:"5xl",class:yt(X(pp)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),me("div",pG,Ye(X(pp)?"Connecting...":"Disconnected"),1),gG],2)]))}});var G_={},Ei={};const mG="Á",yG="á",bG="Ă",wG="ă",DG="∾",AG="∿",xG="∾̳",EG="Â",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="≊",xK="≋",EK="'",CK="",_K="≈",SK="≊",FK="Å",$K="å",TK="𝒜",kK="𝒶",LK="≔",BK="*",OK="≈",PK="≍",NK="Ã",IK="ã",RK="Ä",MK="ä",zK="∳",UK="⨑",HK="≌",qK="϶",jK="‵",VK="∽",WK="⋍",GK="∖",KK="⫧",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="⨁",xQ="⨂",EQ="⨆",CQ="★",_Q="▽",SQ="△",FQ="⨄",$Q="⋁",TQ="⋀",kQ="⤍",LQ="⧫",BQ="▪",OQ="▴",PQ="▾",NQ="◂",IQ="▸",RQ="␣",MQ="▒",zQ="░",UQ="▓",HQ="█",qQ="=⃥",jQ="≡⃥",VQ="⫭",WQ="⌐",GQ="𝔹",KQ="𝕓",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="╜",xX="╝",EX="└",CX="╘",_X="╙",SX="╚",FX="│",$X="║",TX="┼",kX="╪",LX="╫",BX="╬",OX="┤",PX="╡",NX="╢",IX="╣",RX="├",MX="╞",zX="╟",UX="╠",HX="‵",qX="˘",jX="˘",VX="¦",WX="𝒷",GX="ℬ",KX="⁏",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="Č",xY="č",EY="Ç",CY="ç",_Y="Ĉ",SY="ĉ",FY="∰",$Y="⩌",TY="⩐",kY="Ċ",LY="ċ",BY="¸",OY="¸",PY="⦲",NY="¢",IY="·",RY="·",MY="𝔠",zY="ℭ",UY="Ч",HY="ч",qY="✓",jY="✓",VY="Χ",WY="χ",GY="ˆ",KY="≗",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=",",xZ="@",EZ="∁",CZ="∘",_Z="∁",SZ="ℂ",FZ="≅",$Z="⩭",TZ="≡",kZ="∮",LZ="∯",BZ="∮",OZ="𝕔",PZ="ℂ",NZ="∐",IZ="∐",RZ="©",MZ="©",zZ="℗",UZ="∳",HZ="↵",qZ="✗",jZ="⨯",VZ="𝒞",WZ="𝒸",GZ="⫏",KZ="⫑",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="⋎",xJ="⋏",EJ="∲",CJ="∱",_J="⌭",SJ="†",FJ="‡",$J="ℸ",TJ="↓",kJ="↡",LJ="⇓",BJ="‐",OJ="⫤",PJ="⊣",NJ="⤏",IJ="˝",RJ="Ď",MJ="ď",zJ="Д",UJ="д",HJ="‡",qJ="⇊",jJ="ⅅ",VJ="ⅆ",WJ="⤑",GJ="⩷",KJ="°",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="⋇",xee="Ђ",Eee="ђ",Cee="⌞",_ee="⌍",See="$",Fee="𝔻",$ee="𝕕",Tee="¨",kee="˙",Lee="⃜",Bee="≐",Oee="≑",Pee="≐",Nee="∸",Iee="∔",Ree="⊡",Mee="⌆",zee="∯",Uee="¨",Hee="⇓",qee="⇐",jee="⇔",Vee="⫤",Wee="⟸",Gee="⟺",Kee="⟹",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="𝒹",xte="Ѕ",Ete="ѕ",Cte="⧶",_te="Đ",Ste="đ",Fte="⋱",$te="▿",Tte="▾",kte="⇵",Lte="⥯",Bte="⦦",Ote="Џ",Pte="џ",Nte="⟿",Ite="É",Rte="é",Mte="⩮",zte="Ě",Ute="ě",Hte="Ê",qte="ê",jte="≖",Vte="≕",Wte="Э",Gte="э",Kte="⩷",Qte="Ė",Xte="ė",Yte="≑",Zte="ⅇ",Jte="≒",ene="𝔈",tne="𝔢",nne="⪚",rne="È",ine="è",sne="⪖",one="⪘",ane="⪙",une="∈",lne="⏧",cne="ℓ",fne="⪕",hne="⪗",dne="Ē",pne="ē",gne="∅",vne="∅",mne="◻",yne="∅",bne="▫",wne=" ",Dne=" ",Ane=" ",xne="Ŋ",Ene="ŋ",Cne=" ",_ne="Ę",Sne="ę",Fne="𝔼",$ne="𝕖",Tne="⋕",kne="⧣",Lne="⩱",Bne="ε",One="Ε",Pne="ε",Nne="ϵ",Ine="≖",Rne="≕",Mne="≂",zne="⪖",Une="⪕",Hne="⩵",qne="=",jne="≂",Vne="≟",Wne="⇌",Gne="≡",Kne="⩸",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="ffi",Dre="ff",Are="ffl",xre="𝔉",Ere="𝔣",Cre="fi",_re="◼",Sre="▪",Fre="fj",$re="♭",Tre="fl",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="≧",xie="⪌",Eie="⋛",Cie="≥",_ie="≧",Sie="⩾",Fie="⪩",$ie="⩾",Tie="⪀",kie="⪂",Lie="⪄",Bie="⋛︀",Oie="⪔",Pie="𝔊",Nie="𝔤",Iie="≫",Rie="⋙",Mie="⋙",zie="ℷ",Uie="Ѓ",Hie="ѓ",qie="⪥",jie="≷",Vie="⪒",Wie="⪤",Gie="⪊",Kie="⪊",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="⩼",xse="⪆",Ese="⥸",Cse="⋗",_se="⋛",Sse="⪌",Fse="≷",$se="≳",Tse="≩︀",kse="≩︀",Lse="ˇ",Bse=" ",Ose="½",Pse="ℋ",Nse="Ъ",Ise="ъ",Rse="⥈",Mse="↔",zse="⇔",Use="↭",Hse="^",qse="ℏ",jse="Ĥ",Vse="ĥ",Wse="♥",Gse="♥",Kse="…",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="î",xoe="И",Eoe="и",Coe="İ",_oe="Е",Soe="е",Foe="¡",$oe="⇔",Toe="𝔦",koe="ℑ",Loe="Ì",Boe="ì",Ooe="ⅈ",Poe="⨌",Noe="∭",Ioe="⧜",Roe="℩",Moe="IJ",zoe="ij",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="¿",xae="𝒾",Eae="ℐ",Cae="∈",_ae="⋵",Sae="⋹",Fae="⋴",$ae="⋳",Tae="∈",kae="",Lae="Ĩ",Bae="ĩ",Oae="І",Pae="і",Nae="Ï",Iae="ï",Rae="Ĵ",Mae="ĵ",zae="Й",Uae="й",Hae="𝔍",qae="𝔧",jae="ȷ",Vae="𝕁",Wae="𝕛",Gae="𝒥",Kae="𝒿",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="Λ",xue="λ",Eue="⟨",Cue="⟪",_ue="⦑",Sue="⟨",Fue="⪅",$ue="ℒ",Tue="«",kue="⇤",Lue="⤟",Bue="←",Oue="↞",Pue="⇐",Nue="⤝",Iue="↩",Rue="↫",Mue="⤹",zue="⥳",Uue="↢",Hue="⤙",que="⤛",jue="⪫",Vue="⪭",Wue="⪭︀",Gue="⤌",Kue="⤎",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="⇆",xle="↢",Ele="⌈",Cle="⟦",_le="⥡",Sle="⥙",Fle="⇃",$le="⌊",Tle="↽",kle="↼",Lle="⇇",Ble="↔",Ole="↔",Ple="⇔",Nle="⇆",Ile="⇋",Rle="↭",Mle="⥎",zle="↤",Ule="⊣",Hle="⥚",qle="⋋",jle="⧏",Vle="⊲",Wle="⊴",Gle="⥑",Kle="⥠",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="≲",xce="⥼",Ece="⌊",Cce="𝔏",_ce="𝔩",Sce="≶",Fce="⪑",$ce="⥢",Tce="↽",kce="↼",Lce="⥪",Bce="▄",Oce="Љ",Pce="љ",Nce="⇇",Ice="≪",Rce="⋘",Mce="⌞",zce="⇚",Uce="⥫",Hce="◺",qce="Ŀ",jce="ŀ",Vce="⎰",Wce="⎰",Gce="⪉",Kce="⪉",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="↙",xfe="↘",Efe="◊",Cfe="◊",_fe="⧫",Sfe="(",Ffe="⦓",$fe="⇆",Tfe="⌟",kfe="⇋",Lfe="⥭",Bfe="",Ofe="⊿",Pfe="‹",Nfe="𝓁",Ife="ℒ",Rfe="↰",Mfe="↰",zfe="≲",Ufe="⪍",Hfe="⪏",qfe="[",jfe="‘",Vfe="‚",Wfe="Ł",Gfe="ł",Kfe="⪦",Qfe="⩹",Xfe="<",Yfe="<",Zfe="≪",Jfe="⋖",ehe="⋋",the="⋉",nhe="⥶",rhe="⩻",ihe="◃",she="⊴",ohe="◂",ahe="⦖",uhe="⥊",lhe="⥦",che="≨︀",fhe="≨︀",hhe="¯",dhe="♂",phe="✠",ghe="✠",vhe="↦",mhe="↦",yhe="↧",bhe="↤",whe="↥",Dhe="▮",Ahe="⨩",xhe="М",Ehe="м",Che="—",_he="∺",She="∡",Fhe=" ",$he="ℳ",The="𝔐",khe="𝔪",Lhe="℧",Bhe="µ",Ohe="*",Phe="⫰",Nhe="∣",Ihe="·",Rhe="⊟",Mhe="−",zhe="∸",Uhe="⨪",Hhe="∓",qhe="⫛",jhe="…",Vhe="∓",Whe="⊧",Ghe="𝕄",Khe="𝕞",Qhe="∓",Xhe="𝓂",Yhe="ℳ",Zhe="∾",Jhe="Μ",ede="μ",tde="⊸",nde="⊸",rde="∇",ide="Ń",sde="ń",ode="∠⃒",ade="≉",ude="⩰̸",lde="≋̸",cde="ʼn",fde="≉",hde="♮",dde="ℕ",pde="♮",gde=" ",vde="≎̸",mde="≏̸",yde="⩃",bde="Ň",wde="ň",Dde="Ņ",Ade="ņ",xde="≇",Ede="⩭̸",Cde="⩂",_de="Н",Sde="н",Fde="–",$de="⤤",Tde="↗",kde="⇗",Lde="↗",Bde="≠",Ode="≐̸",Pde="",Nde="",Ide="",Rde="",Mde="≢",zde="⤨",Ude="≂̸",Hde="≫",qde="≪",jde=`
|
|
14
|
+
`,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="⇍",xpe="↮",Epe="⇎",Cpe="≰",_pe="≦̸",Spe="⩽̸",Fpe="⩽̸",$pe="≮",Tpe="⋘̸",kpe="≴",Lpe="≪⃒",Bpe="≮",Ope="⋪",Ppe="⋬",Npe="≪̸",Ipe="∤",Rpe="",Mpe=" ",zpe="𝕟",Upe="ℕ",Hpe="⫬",qpe="¬",jpe="≢",Vpe="≭",Wpe="∦",Gpe="∉",Kpe="≠",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="⪡̸",x0e="∌",E0e="∌",C0e="⋾",_0e="⋽",S0e="⊀",F0e="⪯̸",$0e="⋠",T0e="∌",k0e="⧐̸",L0e="⋫",B0e="⋭",O0e="⊏̸",P0e="⋢",N0e="⊐̸",I0e="⋣",R0e="⊂⃒",M0e="⊈",z0e="⊁",U0e="⪰̸",H0e="⋡",q0e="≿̸",j0e="⊃⃒",V0e="⊉",W0e="≁",G0e="≄",K0e="≇",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="≁",xge="≄",Ege="≄",Cge="∤",_ge="∦",Sge="⋢",Fge="⋣",$ge="⊄",Tge="⫅̸",kge="⊈",Lge="⊂⃒",Bge="⊈",Oge="⫅̸",Pge="⊁",Nge="⪰̸",Ige="⊅",Rge="⫆̸",Mge="⊉",zge="⊃⃒",Uge="⊉",Hge="⫆̸",qge="≹",jge="Ñ",Vge="ñ",Wge="≸",Gge="⋪",Kge="⋬",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="⤧",xve="Ó",Eve="ó",Cve="⊛",_ve="Ô",Sve="ô",Fve="⊚",$ve="О",Tve="о",kve="⊝",Lve="Ő",Bve="ő",Ove="⨸",Pve="⊙",Nve="⦼",Ive="Œ",Rve="œ",Mve="⦿",zve="𝔒",Uve="𝔬",Hve="˛",qve="Ò",jve="ò",Vve="⧁",Wve="⦵",Gve="Ω",Kve="∮",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="º",xme="⊶",Eme="⩖",Cme="⩗",_me="⩛",Sme="Ⓢ",Fme="𝒪",$me="ℴ",Tme="Ø",kme="ø",Lme="⊘",Bme="Õ",Ome="õ",Pme="⨶",Nme="⨷",Ime="⊗",Rme="Ö",Mme="ö",zme="⌽",Ume="‾",Hme="⏞",qme="⎴",jme="⏜",Vme="¶",Wme="∥",Gme="∥",Kme="⫳",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="+",xye="∔",Eye="⨥",Cye="⩲",_ye="±",Sye="±",Fye="⨦",$ye="⨧",Tye="±",kye="ℌ",Lye="⨕",Bye="𝕡",Oye="ℙ",Pye="£",Nye="⪷",Iye="⪻",Rye="≺",Mye="≼",zye="⪷",Uye="≺",Hye="≼",qye="≺",jye="⪯",Vye="≼",Wye="≾",Gye="⪯",Kye="⪹",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="𝔔",x1e="𝔮",E1e="⨌",C1e="𝕢",_1e="ℚ",S1e="⁗",F1e="𝒬",$1e="𝓆",T1e="ℍ",k1e="⨖",L1e="?",B1e="≟",O1e='"',P1e='"',N1e="⇛",I1e="∽̱",R1e="Ŕ",M1e="ŕ",z1e="√",U1e="⦳",H1e="⟩",q1e="⟫",j1e="⦒",V1e="⦥",W1e="⟩",G1e="»",K1e="⥵",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="Ř",xbe="ř",Ebe="Ŗ",Cbe="ŗ",_be="⌉",Sbe="}",Fbe="Р",$be="р",Tbe="⤷",kbe="⥩",Lbe="”",Bbe="”",Obe="↳",Pbe="ℜ",Nbe="ℛ",Ibe="ℜ",Rbe="ℝ",Mbe="ℜ",zbe="▭",Ube="®",Hbe="®",qbe="∋",jbe="⇋",Vbe="⥯",Wbe="⥽",Gbe="⌋",Kbe="𝔯",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="↦",xwe="⊢",Ewe="⥛",Cwe="⋌",_we="⧐",Swe="⊳",Fwe="⊵",$we="⥏",Twe="⥜",kwe="⥔",Lwe="↾",Bwe="⥓",Owe="⇀",Pwe="˚",Nwe="≓",Iwe="⇄",Rwe="⇌",Mwe="",zwe="⎱",Uwe="⎱",Hwe="⫮",qwe="⟭",jwe="⇾",Vwe="⟧",Wwe="⦆",Gwe="𝕣",Kwe="ℝ",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="‚",xDe="⪸",EDe="Š",CDe="š",_De="⪼",SDe="≻",FDe="≽",$De="⪰",TDe="⪴",kDe="Ş",LDe="ş",BDe="Ŝ",ODe="ŝ",PDe="⪺",NDe="⪶",IDe="⋩",RDe="⨓",MDe="≿",zDe="С",UDe="с",HDe="⊡",qDe="⋅",jDe="⩦",VDe="⤥",WDe="↘",GDe="⇘",KDe="↘",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="≃",xAe="≃",EAe="⪞",CAe="⪠",_Ae="⪝",SAe="⪟",FAe="≆",$Ae="⨤",TAe="⥲",kAe="←",LAe="∘",BAe="∖",OAe="⨳",PAe="⧤",NAe="∣",IAe="⌣",RAe="⪪",MAe="⪬",zAe="⪬︀",UAe="Ь",HAe="ь",qAe="⌿",jAe="⧄",VAe="/",WAe="𝕊",GAe="𝕤",KAe="♠",QAe="♠",XAe="∥",YAe="⊓",ZAe="⊓︀",JAe="⊔",exe="⊔︀",txe="√",nxe="⊏",rxe="⊑",ixe="⊏",sxe="⊑",oxe="⊐",axe="⊒",uxe="⊐",lxe="⊒",cxe="□",fxe="□",hxe="⊓",dxe="⊏",pxe="⊑",gxe="⊐",vxe="⊒",mxe="⊔",yxe="▪",bxe="□",wxe="▪",Dxe="→",Axe="𝒮",xxe="𝓈",Exe="∖",Cxe="⌣",_xe="⋆",Sxe="⋆",Fxe="☆",$xe="★",Txe="ϵ",kxe="ϕ",Lxe="¯",Bxe="⊂",Oxe="⋐",Pxe="⪽",Nxe="⫅",Ixe="⊆",Rxe="⫃",Mxe="⫁",zxe="⫋",Uxe="⊊",Hxe="⪿",qxe="⥹",jxe="⊂",Vxe="⋐",Wxe="⊆",Gxe="⫅",Kxe="⊆",Qxe="⊊",Xxe="⫋",Yxe="⫇",Zxe="⫕",Jxe="⫓",eEe="⪸",tEe="≻",nEe="≽",rEe="≻",iEe="⪰",sEe="≽",oEe="≿",aEe="⪰",uEe="⪺",lEe="⪶",cEe="⋩",fEe="≿",hEe="∋",dEe="∑",pEe="∑",gEe="♪",vEe="¹",mEe="²",yEe="³",bEe="⊃",wEe="⋑",DEe="⪾",AEe="⫘",xEe="⫆",EEe="⊇",CEe="⫄",_Ee="⊃",SEe="⊇",FEe="⟉",$Ee="⫗",TEe="⥻",kEe="⫂",LEe="⫌",BEe="⊋",OEe="⫀",PEe="⊃",NEe="⋑",IEe="⊇",REe="⫆",MEe="⊋",zEe="⫌",UEe="⫈",HEe="⫔",qEe="⫖",jEe="⤦",VEe="↙",WEe="⇙",GEe="↙",KEe="⤪",QEe="ß",XEe=" ",YEe="⌖",ZEe="Τ",JEe="τ",eCe="⎴",tCe="Ť",nCe="ť",rCe="Ţ",iCe="ţ",sCe="Т",oCe="т",aCe="⃛",uCe="⌕",lCe="𝔗",cCe="𝔱",fCe="∴",hCe="∴",dCe="∴",pCe="Θ",gCe="θ",vCe="ϑ",mCe="ϑ",yCe="≈",bCe="∼",wCe=" ",DCe=" ",ACe=" ",xCe="≈",ECe="∼",CCe="Þ",_Ce="þ",SCe="˜",FCe="∼",$Ce="≃",TCe="≅",kCe="≈",LCe="⨱",BCe="⊠",OCe="×",PCe="⨰",NCe="∭",ICe="⤨",RCe="⌶",MCe="⫱",zCe="⊤",UCe="𝕋",HCe="𝕥",qCe="⫚",jCe="⤩",VCe="‴",WCe="™",GCe="™",KCe="▵",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="↑",x_e="↟",E_e="⇑",C_e="⥉",__e="Ў",S_e="ў",F_e="Ŭ",$_e="ŭ",T_e="Û",k_e="û",L_e="У",B_e="у",O_e="⇅",P_e="Ű",N_e="ű",I_e="⥮",R_e="⥾",M_e="𝔘",z_e="𝔲",U_e="Ù",H_e="ù",q_e="⥣",j_e="↿",V_e="↾",W_e="▀",G_e="⌜",K_e="⌜",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="↖",xSe="↗",ESe="υ",CSe="ϒ",_Se="ϒ",SSe="Υ",FSe="υ",$Se="↥",TSe="⊥",kSe="⇈",LSe="⌝",BSe="⌝",OSe="⌎",PSe="Ů",NSe="ů",ISe="◹",RSe="𝒰",MSe="𝓊",zSe="⋰",USe="Ũ",HSe="ũ",qSe="▵",jSe="▴",VSe="⇈",WSe="Ü",GSe="ü",KSe="⦧",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="⫦",xFe="⊻",EFe="∨",CFe="⋁",_Fe="≚",SFe="⋮",FFe="|",$Fe="‖",TFe="|",kFe="‖",LFe="∣",BFe="|",OFe="❘",PFe="≀",NFe=" ",IFe="𝔙",RFe="𝔳",MFe="⊲",zFe="⊂⃒",UFe="⊃⃒",HFe="𝕍",qFe="𝕧",jFe="∝",VFe="⊳",WFe="𝒱",GFe="𝓋",KFe="⫋︀",QFe="⊊︀",XFe="⫌︀",YFe="⊋︀",ZFe="⊪",JFe="⦚",e2e="Ŵ",t2e="ŵ",n2e="⩟",r2e="∧",i2e="⋀",s2e="≙",o2e="℘",a2e="𝔚",u2e="𝔴",l2e="𝕎",c2e="𝕨",f2e="℘",h2e="≀",d2e="≀",p2e="𝒲",g2e="𝓌",v2e="⋂",m2e="◯",y2e="⋃",b2e="▽",w2e="𝔛",D2e="𝔵",A2e="⟷",x2e="⟺",E2e="Ξ",C2e="ξ",_2e="⟵",S2e="⟸",F2e="⟼",$2e="⋻",T2e="⨀",k2e="𝕏",L2e="𝕩",B2e="⨁",O2e="⨂",P2e="⟶",N2e="⟹",I2e="𝒳",R2e="𝓍",M2e="⨆",z2e="⨄",U2e="△",H2e="⋁",q2e="⋀",j2e="Ý",V2e="ý",W2e="Я",G2e="я",K2e="Ŷ",Q2e="ŷ",X2e="Ы",Y2e="ы",Z2e="¥",J2e="𝔜",e$e="𝔶",t$e="Ї",n$e="ї",r$e="𝕐",i$e="𝕪",s$e="𝒴",o$e="𝓎",a$e="Ю",u$e="ю",l$e="ÿ",c$e="Ÿ",f$e="Ź",h$e="ź",d$e="Ž",p$e="ž",g$e="З",v$e="з",m$e="Ż",y$e="ż",b$e="ℨ",w$e="",D$e="Ζ",A$e="ζ",x$e="𝔷",E$e="ℨ",C$e="Ж",_$e="ж",S$e="⇝",F$e="𝕫",$$e="ℤ",T$e="𝒵",k$e="𝓏",L$e="",B$e="",K_={Aacute:mG,aacute:yG,Abreve:bG,abreve:wG,ac:DG,acd:AG,acE:xG,Acirc:EG,acirc:CG,acute:_G,Acy:SG,acy:FG,AElig:$G,aelig:TG,af:kG,Afr:LG,afr:BG,Agrave:OG,agrave:PG,alefsym:NG,aleph:IG,Alpha:RG,alpha:MG,Amacr:zG,amacr:UG,amalg:HG,amp:qG,AMP:jG,andand:VG,And:WG,and:GG,andd:KG,andslope:QG,andv:XG,ang:YG,ange:ZG,angle:JG,angmsdaa:eK,angmsdab:tK,angmsdac:nK,angmsdad:rK,angmsdae:iK,angmsdaf:sK,angmsdag:oK,angmsdah:aK,angmsd:uK,angrt:lK,angrtvb:cK,angrtvbd:fK,angsph:hK,angst:dK,angzarr:pK,Aogon:gK,aogon:vK,Aopf:mK,aopf:yK,apacir:bK,ap:wK,apE:DK,ape:AK,apid:xK,apos:EK,ApplyFunction:CK,approx:_K,approxeq:SK,Aring:FK,aring:$K,Ascr:TK,ascr:kK,Assign:LK,ast:BK,asymp:OK,asympeq:PK,Atilde:NK,atilde:IK,Auml:RK,auml:MK,awconint:zK,awint:UK,backcong:HK,backepsilon:qK,backprime:jK,backsim:VK,backsimeq:WK,Backslash:GK,Barv:KK,barvee:QK,barwed:XK,Barwed:YK,barwedge:ZK,bbrk:JK,bbrktbrk:eQ,bcong:tQ,Bcy:nQ,bcy:rQ,bdquo:iQ,becaus:sQ,because:oQ,Because:aQ,bemptyv:uQ,bepsi:lQ,bernou:cQ,Bernoullis:fQ,Beta:hQ,beta:dQ,beth:pQ,between:gQ,Bfr:vQ,bfr:mQ,bigcap:yQ,bigcirc:bQ,bigcup:wQ,bigodot:DQ,bigoplus:AQ,bigotimes:xQ,bigsqcup:EQ,bigstar:CQ,bigtriangledown:_Q,bigtriangleup:SQ,biguplus:FQ,bigvee:$Q,bigwedge:TQ,bkarow:kQ,blacklozenge:LQ,blacksquare:BQ,blacktriangle:OQ,blacktriangledown:PQ,blacktriangleleft:NQ,blacktriangleright:IQ,blank:RQ,blk12:MQ,blk14:zQ,blk34:UQ,block:HQ,bne:qQ,bnequiv:jQ,bNot:VQ,bnot:WQ,Bopf:GQ,bopf:KQ,bot:QQ,bottom:XQ,bowtie:YQ,boxbox:ZQ,boxdl:JQ,boxdL:eX,boxDl:tX,boxDL:nX,boxdr:rX,boxdR:iX,boxDr:sX,boxDR:oX,boxh:aX,boxH:uX,boxhd:lX,boxHd:cX,boxhD:fX,boxHD:hX,boxhu:dX,boxHu:pX,boxhU:gX,boxHU:vX,boxminus:mX,boxplus:yX,boxtimes:bX,boxul:wX,boxuL:DX,boxUl:AX,boxUL:xX,boxur:EX,boxuR:CX,boxUr:_X,boxUR:SX,boxv:FX,boxV:$X,boxvh:TX,boxvH:kX,boxVh:LX,boxVH:BX,boxvl:OX,boxvL:PX,boxVl:NX,boxVL:IX,boxvr:RX,boxvR:MX,boxVr:zX,boxVR:UX,bprime:HX,breve:qX,Breve:jX,brvbar:VX,bscr:WX,Bscr:GX,bsemi:KX,bsim:QX,bsime:XX,bsolb:YX,bsol:ZX,bsolhsub:JX,bull:eY,bullet:tY,bump:nY,bumpE:rY,bumpe:iY,Bumpeq:sY,bumpeq:oY,Cacute:aY,cacute:uY,capand:lY,capbrcup:cY,capcap:fY,cap:hY,Cap:dY,capcup:pY,capdot:gY,CapitalDifferentialD:vY,caps:mY,caret:yY,caron:bY,Cayleys:wY,ccaps:DY,Ccaron:AY,ccaron:xY,Ccedil:EY,ccedil:CY,Ccirc:_Y,ccirc:SY,Cconint:FY,ccups:$Y,ccupssm:TY,Cdot:kY,cdot:LY,cedil:BY,Cedilla:OY,cemptyv:PY,cent:NY,centerdot:IY,CenterDot:RY,cfr:MY,Cfr:zY,CHcy:UY,chcy:HY,check:qY,checkmark:jY,Chi:VY,chi:WY,circ:GY,circeq:KY,circlearrowleft:QY,circlearrowright:XY,circledast:YY,circledcirc:ZY,circleddash:JY,CircleDot:eZ,circledR:tZ,circledS:nZ,CircleMinus:rZ,CirclePlus:iZ,CircleTimes:sZ,cir:oZ,cirE:aZ,cire:uZ,cirfnint:lZ,cirmid:cZ,cirscir:fZ,ClockwiseContourIntegral:hZ,CloseCurlyDoubleQuote:dZ,CloseCurlyQuote:pZ,clubs:gZ,clubsuit:vZ,colon:mZ,Colon:yZ,Colone:bZ,colone:wZ,coloneq:DZ,comma:AZ,commat:xZ,comp:EZ,compfn:CZ,complement:_Z,complexes:SZ,cong:FZ,congdot:$Z,Congruent:TZ,conint:kZ,Conint:LZ,ContourIntegral:BZ,copf:OZ,Copf:PZ,coprod:NZ,Coproduct:IZ,copy:RZ,COPY:MZ,copysr:zZ,CounterClockwiseContourIntegral:UZ,crarr:HZ,cross:qZ,Cross:jZ,Cscr:VZ,cscr:WZ,csub:GZ,csube:KZ,csup:QZ,csupe:XZ,ctdot:YZ,cudarrl:ZZ,cudarrr:JZ,cuepr:eJ,cuesc:tJ,cularr:nJ,cularrp:rJ,cupbrcap:iJ,cupcap:sJ,CupCap:oJ,cup:aJ,Cup:uJ,cupcup:lJ,cupdot:cJ,cupor:fJ,cups:hJ,curarr:dJ,curarrm:pJ,curlyeqprec:gJ,curlyeqsucc:vJ,curlyvee:mJ,curlywedge:yJ,curren:bJ,curvearrowleft:wJ,curvearrowright:DJ,cuvee:AJ,cuwed:xJ,cwconint:EJ,cwint:CJ,cylcty:_J,dagger:SJ,Dagger:FJ,daleth:$J,darr:TJ,Darr:kJ,dArr:LJ,dash:BJ,Dashv:OJ,dashv:PJ,dbkarow:NJ,dblac:IJ,Dcaron:RJ,dcaron:MJ,Dcy:zJ,dcy:UJ,ddagger:HJ,ddarr:qJ,DD:jJ,dd:VJ,DDotrahd:WJ,ddotseq:GJ,deg:KJ,Del:QJ,Delta:XJ,delta:YJ,demptyv:ZJ,dfisht:JJ,Dfr:eee,dfr:tee,dHar:nee,dharl:ree,dharr:iee,DiacriticalAcute:see,DiacriticalDot:oee,DiacriticalDoubleAcute:aee,DiacriticalGrave:uee,DiacriticalTilde:lee,diam:cee,diamond:fee,Diamond:hee,diamondsuit:dee,diams:pee,die:gee,DifferentialD:vee,digamma:mee,disin:yee,div:bee,divide:wee,divideontimes:Dee,divonx:Aee,DJcy:xee,djcy:Eee,dlcorn:Cee,dlcrop:_ee,dollar:See,Dopf:Fee,dopf:$ee,Dot:Tee,dot:kee,DotDot:Lee,doteq:Bee,doteqdot:Oee,DotEqual:Pee,dotminus:Nee,dotplus:Iee,dotsquare:Ree,doublebarwedge:Mee,DoubleContourIntegral:zee,DoubleDot:Uee,DoubleDownArrow:Hee,DoubleLeftArrow:qee,DoubleLeftRightArrow:jee,DoubleLeftTee:Vee,DoubleLongLeftArrow:Wee,DoubleLongLeftRightArrow:Gee,DoubleLongRightArrow:Kee,DoubleRightArrow:Qee,DoubleRightTee:Xee,DoubleUpArrow:Yee,DoubleUpDownArrow:Zee,DoubleVerticalBar:Jee,DownArrowBar:ete,downarrow:tte,DownArrow:nte,Downarrow:rte,DownArrowUpArrow:ite,DownBreve:ste,downdownarrows:ote,downharpoonleft:ate,downharpoonright:ute,DownLeftRightVector:lte,DownLeftTeeVector:cte,DownLeftVectorBar:fte,DownLeftVector:hte,DownRightTeeVector:dte,DownRightVectorBar:pte,DownRightVector:gte,DownTeeArrow:vte,DownTee:mte,drbkarow:yte,drcorn:bte,drcrop:wte,Dscr:Dte,dscr:Ate,DScy:xte,dscy:Ete,dsol:Cte,Dstrok:_te,dstrok:Ste,dtdot:Fte,dtri:$te,dtrif:Tte,duarr:kte,duhar:Lte,dwangle:Bte,DZcy:Ote,dzcy:Pte,dzigrarr:Nte,Eacute:Ite,eacute:Rte,easter:Mte,Ecaron:zte,ecaron:Ute,Ecirc:Hte,ecirc:qte,ecir:jte,ecolon:Vte,Ecy:Wte,ecy:Gte,eDDot:Kte,Edot:Qte,edot:Xte,eDot:Yte,ee:Zte,efDot:Jte,Efr:ene,efr:tne,eg:nne,Egrave:rne,egrave:ine,egs:sne,egsdot:one,el:ane,Element:une,elinters:lne,ell:cne,els:fne,elsdot:hne,Emacr:dne,emacr:pne,empty:gne,emptyset:vne,EmptySmallSquare:mne,emptyv:yne,EmptyVerySmallSquare:bne,emsp13:wne,emsp14:Dne,emsp:Ane,ENG:xne,eng:Ene,ensp:Cne,Eogon:_ne,eogon:Sne,Eopf:Fne,eopf:$ne,epar:Tne,eparsl:kne,eplus:Lne,epsi:Bne,Epsilon:One,epsilon:Pne,epsiv:Nne,eqcirc:Ine,eqcolon:Rne,eqsim:Mne,eqslantgtr:zne,eqslantless:Une,Equal:Hne,equals:qne,EqualTilde:jne,equest:Vne,Equilibrium:Wne,equiv:Gne,equivDD:Kne,eqvparsl:Qne,erarr:Xne,erDot:Yne,escr:Zne,Escr:Jne,esdot:ere,Esim:tre,esim:nre,Eta:rre,eta:ire,ETH:sre,eth:ore,Euml:are,euml:ure,euro:lre,excl:cre,exist:fre,Exists:hre,expectation:dre,exponentiale:pre,ExponentialE:gre,fallingdotseq:vre,Fcy:mre,fcy:yre,female:bre,ffilig:wre,fflig:Dre,ffllig:Are,Ffr:xre,ffr:Ere,filig:Cre,FilledSmallSquare:_re,FilledVerySmallSquare:Sre,fjlig:Fre,flat:$re,fllig:Tre,fltns:kre,fnof:Lre,Fopf:Bre,fopf:Ore,forall:Pre,ForAll:Nre,fork:Ire,forkv:Rre,Fouriertrf:Mre,fpartint:zre,frac12:Ure,frac13:Hre,frac14:qre,frac15:jre,frac16:Vre,frac18:Wre,frac23:Gre,frac25:Kre,frac34:Qre,frac35:Xre,frac38:Yre,frac45:Zre,frac56:Jre,frac58:eie,frac78:tie,frasl:nie,frown:rie,fscr:iie,Fscr:sie,gacute:oie,Gamma:aie,gamma:uie,Gammad:lie,gammad:cie,gap:fie,Gbreve:hie,gbreve:die,Gcedil:pie,Gcirc:gie,gcirc:vie,Gcy:mie,gcy:yie,Gdot:bie,gdot:wie,ge:Die,gE:Aie,gEl:xie,gel:Eie,geq:Cie,geqq:_ie,geqslant:Sie,gescc:Fie,ges:$ie,gesdot:Tie,gesdoto:kie,gesdotol:Lie,gesl:Bie,gesles:Oie,Gfr:Pie,gfr:Nie,gg:Iie,Gg:Rie,ggg:Mie,gimel:zie,GJcy:Uie,gjcy:Hie,gla:qie,gl:jie,glE:Vie,glj:Wie,gnap:Gie,gnapprox:Kie,gne:Qie,gnE:Xie,gneq:Yie,gneqq:Zie,gnsim:Jie,Gopf:ese,gopf:tse,grave:nse,GreaterEqual:rse,GreaterEqualLess:ise,GreaterFullEqual:sse,GreaterGreater:ose,GreaterLess:ase,GreaterSlantEqual:use,GreaterTilde:lse,Gscr:cse,gscr:fse,gsim:hse,gsime:dse,gsiml:pse,gtcc:gse,gtcir:vse,gt:mse,GT:yse,Gt:bse,gtdot:wse,gtlPar:Dse,gtquest:Ase,gtrapprox:xse,gtrarr:Ese,gtrdot:Cse,gtreqless:_se,gtreqqless:Sse,gtrless:Fse,gtrsim:$se,gvertneqq:Tse,gvnE:kse,Hacek:Lse,hairsp:Bse,half:Ose,hamilt:Pse,HARDcy:Nse,hardcy:Ise,harrcir:Rse,harr:Mse,hArr:zse,harrw:Use,Hat:Hse,hbar:qse,Hcirc:jse,hcirc:Vse,hearts:Wse,heartsuit:Gse,hellip:Kse,hercon:Qse,hfr:Xse,Hfr:Yse,HilbertSpace:Zse,hksearow:Jse,hkswarow:eoe,hoarr:toe,homtht:noe,hookleftarrow:roe,hookrightarrow:ioe,hopf:soe,Hopf:ooe,horbar:aoe,HorizontalLine:uoe,hscr:loe,Hscr:coe,hslash:foe,Hstrok:hoe,hstrok:doe,HumpDownHump:poe,HumpEqual:goe,hybull:voe,hyphen:moe,Iacute:yoe,iacute:boe,ic:woe,Icirc:Doe,icirc:Aoe,Icy:xoe,icy:Eoe,Idot:Coe,IEcy:_oe,iecy:Soe,iexcl:Foe,iff:$oe,ifr:Toe,Ifr:koe,Igrave:Loe,igrave:Boe,ii:Ooe,iiiint:Poe,iiint:Noe,iinfin:Ioe,iiota:Roe,IJlig:Moe,ijlig:zoe,Imacr:Uoe,imacr:Hoe,image:qoe,ImaginaryI:joe,imagline:Voe,imagpart:Woe,imath:Goe,Im:Koe,imof:Qoe,imped:Xoe,Implies:Yoe,incare:Zoe,in:"∈",infin:Joe,infintie:eae,inodot:tae,intcal:nae,int:rae,Int:iae,integers:sae,Integral:oae,intercal:aae,Intersection:uae,intlarhk:lae,intprod:cae,InvisibleComma:fae,InvisibleTimes:hae,IOcy:dae,iocy:pae,Iogon:gae,iogon:vae,Iopf:mae,iopf:yae,Iota:bae,iota:wae,iprod:Dae,iquest:Aae,iscr:xae,Iscr:Eae,isin:Cae,isindot:_ae,isinE:Sae,isins:Fae,isinsv:$ae,isinv:Tae,it:kae,Itilde:Lae,itilde:Bae,Iukcy:Oae,iukcy:Pae,Iuml:Nae,iuml:Iae,Jcirc:Rae,jcirc:Mae,Jcy:zae,jcy:Uae,Jfr:Hae,jfr:qae,jmath:jae,Jopf:Vae,jopf:Wae,Jscr:Gae,jscr:Kae,Jsercy:Qae,jsercy:Xae,Jukcy:Yae,jukcy:Zae,Kappa:Jae,kappa:eue,kappav:tue,Kcedil:nue,kcedil:rue,Kcy:iue,kcy:sue,Kfr:oue,kfr:aue,kgreen:uue,KHcy:lue,khcy:cue,KJcy:fue,kjcy:hue,Kopf:due,kopf:pue,Kscr:gue,kscr:vue,lAarr:mue,Lacute:yue,lacute:bue,laemptyv:wue,lagran:Due,Lambda:Aue,lambda:xue,lang:Eue,Lang:Cue,langd:_ue,langle:Sue,lap:Fue,Laplacetrf:$ue,laquo:Tue,larrb:kue,larrbfs:Lue,larr:Bue,Larr:Oue,lArr:Pue,larrfs:Nue,larrhk:Iue,larrlp:Rue,larrpl:Mue,larrsim:zue,larrtl:Uue,latail:Hue,lAtail:que,lat:jue,late:Vue,lates:Wue,lbarr:Gue,lBarr:Kue,lbbrk:Que,lbrace:Xue,lbrack:Yue,lbrke:Zue,lbrksld:Jue,lbrkslu:ele,Lcaron:tle,lcaron:nle,Lcedil:rle,lcedil:ile,lceil:sle,lcub:ole,Lcy:ale,lcy:ule,ldca:lle,ldquo:cle,ldquor:fle,ldrdhar:hle,ldrushar:dle,ldsh:ple,le:gle,lE:vle,LeftAngleBracket:mle,LeftArrowBar:yle,leftarrow:ble,LeftArrow:wle,Leftarrow:Dle,LeftArrowRightArrow:Ale,leftarrowtail:xle,LeftCeiling:Ele,LeftDoubleBracket:Cle,LeftDownTeeVector:_le,LeftDownVectorBar:Sle,LeftDownVector:Fle,LeftFloor:$le,leftharpoondown:Tle,leftharpoonup:kle,leftleftarrows:Lle,leftrightarrow:Ble,LeftRightArrow:Ole,Leftrightarrow:Ple,leftrightarrows:Nle,leftrightharpoons:Ile,leftrightsquigarrow:Rle,LeftRightVector:Mle,LeftTeeArrow:zle,LeftTee:Ule,LeftTeeVector:Hle,leftthreetimes:qle,LeftTriangleBar:jle,LeftTriangle:Vle,LeftTriangleEqual:Wle,LeftUpDownVector:Gle,LeftUpTeeVector:Kle,LeftUpVectorBar:Qle,LeftUpVector:Xle,LeftVectorBar:Yle,LeftVector:Zle,lEg:Jle,leg:ece,leq:tce,leqq:nce,leqslant:rce,lescc:ice,les:sce,lesdot:oce,lesdoto:ace,lesdotor:uce,lesg:lce,lesges:cce,lessapprox:fce,lessdot:hce,lesseqgtr:dce,lesseqqgtr:pce,LessEqualGreater:gce,LessFullEqual:vce,LessGreater:mce,lessgtr:yce,LessLess:bce,lesssim:wce,LessSlantEqual:Dce,LessTilde:Ace,lfisht:xce,lfloor:Ece,Lfr:Cce,lfr:_ce,lg:Sce,lgE:Fce,lHar:$ce,lhard:Tce,lharu:kce,lharul:Lce,lhblk:Bce,LJcy:Oce,ljcy:Pce,llarr:Nce,ll:Ice,Ll:Rce,llcorner:Mce,Lleftarrow:zce,llhard:Uce,lltri:Hce,Lmidot:qce,lmidot:jce,lmoustache:Vce,lmoust:Wce,lnap:Gce,lnapprox:Kce,lne:Qce,lnE:Xce,lneq:Yce,lneqq:Zce,lnsim:Jce,loang:efe,loarr:tfe,lobrk:nfe,longleftarrow:rfe,LongLeftArrow:ife,Longleftarrow:sfe,longleftrightarrow:ofe,LongLeftRightArrow:afe,Longleftrightarrow:ufe,longmapsto:lfe,longrightarrow:cfe,LongRightArrow:ffe,Longrightarrow:hfe,looparrowleft:dfe,looparrowright:pfe,lopar:gfe,Lopf:vfe,lopf:mfe,loplus:yfe,lotimes:bfe,lowast:wfe,lowbar:Dfe,LowerLeftArrow:Afe,LowerRightArrow:xfe,loz:Efe,lozenge:Cfe,lozf:_fe,lpar:Sfe,lparlt:Ffe,lrarr:$fe,lrcorner:Tfe,lrhar:kfe,lrhard:Lfe,lrm:Bfe,lrtri:Ofe,lsaquo:Pfe,lscr:Nfe,Lscr:Ife,lsh:Rfe,Lsh:Mfe,lsim:zfe,lsime:Ufe,lsimg:Hfe,lsqb:qfe,lsquo:jfe,lsquor:Vfe,Lstrok:Wfe,lstrok:Gfe,ltcc:Kfe,ltcir:Qfe,lt:Xfe,LT:Yfe,Lt:Zfe,ltdot:Jfe,lthree:ehe,ltimes:the,ltlarr:nhe,ltquest:rhe,ltri:ihe,ltrie:she,ltrif:ohe,ltrPar:ahe,lurdshar:uhe,luruhar:lhe,lvertneqq:che,lvnE:fhe,macr:hhe,male:dhe,malt:phe,maltese:ghe,Map:"⤅",map:vhe,mapsto:mhe,mapstodown:yhe,mapstoleft:bhe,mapstoup:whe,marker:Dhe,mcomma:Ahe,Mcy:xhe,mcy:Ehe,mdash:Che,mDDot:_he,measuredangle:She,MediumSpace:Fhe,Mellintrf:$he,Mfr:The,mfr:khe,mho:Lhe,micro:Bhe,midast:Ohe,midcir:Phe,mid:Nhe,middot:Ihe,minusb:Rhe,minus:Mhe,minusd:zhe,minusdu:Uhe,MinusPlus:Hhe,mlcp:qhe,mldr:jhe,mnplus:Vhe,models:Whe,Mopf:Ghe,mopf:Khe,mp:Qhe,mscr:Xhe,Mscr:Yhe,mstpos:Zhe,Mu:Jhe,mu:ede,multimap:tde,mumap:nde,nabla:rde,Nacute:ide,nacute:sde,nang:ode,nap:ade,napE:ude,napid:lde,napos:cde,napprox:fde,natural:hde,naturals:dde,natur:pde,nbsp:gde,nbump:vde,nbumpe:mde,ncap:yde,Ncaron:bde,ncaron:wde,Ncedil:Dde,ncedil:Ade,ncong:xde,ncongdot:Ede,ncup:Cde,Ncy:_de,ncy:Sde,ndash:Fde,nearhk:$de,nearr:Tde,neArr:kde,nearrow:Lde,ne:Bde,nedot:Ode,NegativeMediumSpace:Pde,NegativeThickSpace:Nde,NegativeThinSpace:Ide,NegativeVeryThinSpace:Rde,nequiv:Mde,nesear:zde,nesim:Ude,NestedGreaterGreater:Hde,NestedLessLess:qde,NewLine:jde,nexist:Vde,nexists:Wde,Nfr:Gde,nfr:Kde,ngE:Qde,nge:Xde,ngeq:Yde,ngeqq:Zde,ngeqslant:Jde,nges:epe,nGg:tpe,ngsim:npe,nGt:rpe,ngt:ipe,ngtr:spe,nGtv:ope,nharr:ape,nhArr:upe,nhpar:lpe,ni:cpe,nis:fpe,nisd:hpe,niv:dpe,NJcy:ppe,njcy:gpe,nlarr:vpe,nlArr:mpe,nldr:ype,nlE:bpe,nle:wpe,nleftarrow:Dpe,nLeftarrow:Ape,nleftrightarrow:xpe,nLeftrightarrow:Epe,nleq:Cpe,nleqq:_pe,nleqslant:Spe,nles:Fpe,nless:$pe,nLl:Tpe,nlsim:kpe,nLt:Lpe,nlt:Bpe,nltri:Ope,nltrie:Ppe,nLtv:Npe,nmid:Ipe,NoBreak:Rpe,NonBreakingSpace:Mpe,nopf:zpe,Nopf:Upe,Not:Hpe,not:qpe,NotCongruent:jpe,NotCupCap:Vpe,NotDoubleVerticalBar:Wpe,NotElement:Gpe,NotEqual:Kpe,NotEqualTilde:Qpe,NotExists:Xpe,NotGreater:Ype,NotGreaterEqual:Zpe,NotGreaterFullEqual:Jpe,NotGreaterGreater:e0e,NotGreaterLess:t0e,NotGreaterSlantEqual:n0e,NotGreaterTilde:r0e,NotHumpDownHump:i0e,NotHumpEqual:s0e,notin:o0e,notindot:a0e,notinE:u0e,notinva:l0e,notinvb:c0e,notinvc:f0e,NotLeftTriangleBar:h0e,NotLeftTriangle:d0e,NotLeftTriangleEqual:p0e,NotLess:g0e,NotLessEqual:v0e,NotLessGreater:m0e,NotLessLess:y0e,NotLessSlantEqual:b0e,NotLessTilde:w0e,NotNestedGreaterGreater:D0e,NotNestedLessLess:A0e,notni:x0e,notniva:E0e,notnivb:C0e,notnivc:_0e,NotPrecedes:S0e,NotPrecedesEqual:F0e,NotPrecedesSlantEqual:$0e,NotReverseElement:T0e,NotRightTriangleBar:k0e,NotRightTriangle:L0e,NotRightTriangleEqual:B0e,NotSquareSubset:O0e,NotSquareSubsetEqual:P0e,NotSquareSuperset:N0e,NotSquareSupersetEqual:I0e,NotSubset:R0e,NotSubsetEqual:M0e,NotSucceeds:z0e,NotSucceedsEqual:U0e,NotSucceedsSlantEqual:H0e,NotSucceedsTilde:q0e,NotSuperset:j0e,NotSupersetEqual:V0e,NotTilde:W0e,NotTildeEqual:G0e,NotTildeFullEqual:K0e,NotTildeTilde:Q0e,NotVerticalBar:X0e,nparallel:Y0e,npar:Z0e,nparsl:J0e,npart:ege,npolint:tge,npr:nge,nprcue:rge,nprec:ige,npreceq:sge,npre:oge,nrarrc:age,nrarr:uge,nrArr:lge,nrarrw:cge,nrightarrow:fge,nRightarrow:hge,nrtri:dge,nrtrie:pge,nsc:gge,nsccue:vge,nsce:mge,Nscr:yge,nscr:bge,nshortmid:wge,nshortparallel:Dge,nsim:Age,nsime:xge,nsimeq:Ege,nsmid:Cge,nspar:_ge,nsqsube:Sge,nsqsupe:Fge,nsub:$ge,nsubE:Tge,nsube:kge,nsubset:Lge,nsubseteq:Bge,nsubseteqq:Oge,nsucc:Pge,nsucceq:Nge,nsup:Ige,nsupE:Rge,nsupe:Mge,nsupset:zge,nsupseteq:Uge,nsupseteqq:Hge,ntgl:qge,Ntilde:jge,ntilde:Vge,ntlg:Wge,ntriangleleft:Gge,ntrianglelefteq:Kge,ntriangleright:Qge,ntrianglerighteq:Xge,Nu:Yge,nu:Zge,num:Jge,numero:eve,numsp:tve,nvap:nve,nvdash:rve,nvDash:ive,nVdash:sve,nVDash:ove,nvge:ave,nvgt:uve,nvHarr:lve,nvinfin:cve,nvlArr:fve,nvle:hve,nvlt:dve,nvltrie:pve,nvrArr:gve,nvrtrie:vve,nvsim:mve,nwarhk:yve,nwarr:bve,nwArr:wve,nwarrow:Dve,nwnear:Ave,Oacute:xve,oacute:Eve,oast:Cve,Ocirc:_ve,ocirc:Sve,ocir:Fve,Ocy:$ve,ocy:Tve,odash:kve,Odblac:Lve,odblac:Bve,odiv:Ove,odot:Pve,odsold:Nve,OElig:Ive,oelig:Rve,ofcir:Mve,Ofr:zve,ofr:Uve,ogon:Hve,Ograve:qve,ograve:jve,ogt:Vve,ohbar:Wve,ohm:Gve,oint:Kve,olarr:Qve,olcir:Xve,olcross:Yve,oline:Zve,olt:Jve,Omacr:eme,omacr:tme,Omega:nme,omega:rme,Omicron:ime,omicron:sme,omid:ome,ominus:ame,Oopf:ume,oopf:lme,opar:cme,OpenCurlyDoubleQuote:fme,OpenCurlyQuote:hme,operp:dme,oplus:pme,orarr:gme,Or:vme,or:mme,ord:yme,order:bme,orderof:wme,ordf:Dme,ordm:Ame,origof:xme,oror:Eme,orslope:Cme,orv:_me,oS:Sme,Oscr:Fme,oscr:$me,Oslash:Tme,oslash:kme,osol:Lme,Otilde:Bme,otilde:Ome,otimesas:Pme,Otimes:Nme,otimes:Ime,Ouml:Rme,ouml:Mme,ovbar:zme,OverBar:Ume,OverBrace:Hme,OverBracket:qme,OverParenthesis:jme,para:Vme,parallel:Wme,par:Gme,parsim:Kme,parsl:Qme,part:Xme,PartialD:Yme,Pcy:Zme,pcy:Jme,percnt:eye,period:tye,permil:nye,perp:rye,pertenk:iye,Pfr:sye,pfr:oye,Phi:aye,phi:uye,phiv:lye,phmmat:cye,phone:fye,Pi:hye,pi:dye,pitchfork:pye,piv:gye,planck:vye,planckh:mye,plankv:yye,plusacir:bye,plusb:wye,pluscir:Dye,plus:Aye,plusdo:xye,plusdu:Eye,pluse:Cye,PlusMinus:_ye,plusmn:Sye,plussim:Fye,plustwo:$ye,pm:Tye,Poincareplane:kye,pointint:Lye,popf:Bye,Popf:Oye,pound:Pye,prap:Nye,Pr:Iye,pr:Rye,prcue:Mye,precapprox:zye,prec:Uye,preccurlyeq:Hye,Precedes:qye,PrecedesEqual:jye,PrecedesSlantEqual:Vye,PrecedesTilde:Wye,preceq:Gye,precnapprox:Kye,precneqq:Qye,precnsim:Xye,pre:Yye,prE:Zye,precsim:Jye,prime:e1e,Prime:t1e,primes:n1e,prnap:r1e,prnE:i1e,prnsim:s1e,prod:o1e,Product:a1e,profalar:u1e,profline:l1e,profsurf:c1e,prop:f1e,Proportional:h1e,Proportion:d1e,propto:p1e,prsim:g1e,prurel:v1e,Pscr:m1e,pscr:y1e,Psi:b1e,psi:w1e,puncsp:D1e,Qfr:A1e,qfr:x1e,qint:E1e,qopf:C1e,Qopf:_1e,qprime:S1e,Qscr:F1e,qscr:$1e,quaternions:T1e,quatint:k1e,quest:L1e,questeq:B1e,quot:O1e,QUOT:P1e,rAarr:N1e,race:I1e,Racute:R1e,racute:M1e,radic:z1e,raemptyv:U1e,rang:H1e,Rang:q1e,rangd:j1e,range:V1e,rangle:W1e,raquo:G1e,rarrap:K1e,rarrb:Q1e,rarrbfs:X1e,rarrc:Y1e,rarr:Z1e,Rarr:J1e,rArr:ebe,rarrfs:tbe,rarrhk:nbe,rarrlp:rbe,rarrpl:ibe,rarrsim:sbe,Rarrtl:obe,rarrtl:abe,rarrw:ube,ratail:lbe,rAtail:cbe,ratio:fbe,rationals:hbe,rbarr:dbe,rBarr:pbe,RBarr:gbe,rbbrk:vbe,rbrace:mbe,rbrack:ybe,rbrke:bbe,rbrksld:wbe,rbrkslu:Dbe,Rcaron:Abe,rcaron:xbe,Rcedil:Ebe,rcedil:Cbe,rceil:_be,rcub:Sbe,Rcy:Fbe,rcy:$be,rdca:Tbe,rdldhar:kbe,rdquo:Lbe,rdquor:Bbe,rdsh:Obe,real:Pbe,realine:Nbe,realpart:Ibe,reals:Rbe,Re:Mbe,rect:zbe,reg:Ube,REG:Hbe,ReverseElement:qbe,ReverseEquilibrium:jbe,ReverseUpEquilibrium:Vbe,rfisht:Wbe,rfloor:Gbe,rfr:Kbe,Rfr:Qbe,rHar:Xbe,rhard:Ybe,rharu:Zbe,rharul:Jbe,Rho:ewe,rho:twe,rhov:nwe,RightAngleBracket:rwe,RightArrowBar:iwe,rightarrow:swe,RightArrow:owe,Rightarrow:awe,RightArrowLeftArrow:uwe,rightarrowtail:lwe,RightCeiling:cwe,RightDoubleBracket:fwe,RightDownTeeVector:hwe,RightDownVectorBar:dwe,RightDownVector:pwe,RightFloor:gwe,rightharpoondown:vwe,rightharpoonup:mwe,rightleftarrows:ywe,rightleftharpoons:bwe,rightrightarrows:wwe,rightsquigarrow:Dwe,RightTeeArrow:Awe,RightTee:xwe,RightTeeVector:Ewe,rightthreetimes:Cwe,RightTriangleBar:_we,RightTriangle:Swe,RightTriangleEqual:Fwe,RightUpDownVector:$we,RightUpTeeVector:Twe,RightUpVectorBar:kwe,RightUpVector:Lwe,RightVectorBar:Bwe,RightVector:Owe,ring:Pwe,risingdotseq:Nwe,rlarr:Iwe,rlhar:Rwe,rlm:Mwe,rmoustache:zwe,rmoust:Uwe,rnmid:Hwe,roang:qwe,roarr:jwe,robrk:Vwe,ropar:Wwe,ropf:Gwe,Ropf:Kwe,roplus:Qwe,rotimes:Xwe,RoundImplies:Ywe,rpar:Zwe,rpargt:Jwe,rppolint:eDe,rrarr:tDe,Rrightarrow:nDe,rsaquo:rDe,rscr:iDe,Rscr:sDe,rsh:oDe,Rsh:aDe,rsqb:uDe,rsquo:lDe,rsquor:cDe,rthree:fDe,rtimes:hDe,rtri:dDe,rtrie:pDe,rtrif:gDe,rtriltri:vDe,RuleDelayed:mDe,ruluhar:yDe,rx:bDe,Sacute:wDe,sacute:DDe,sbquo:ADe,scap:xDe,Scaron:EDe,scaron:CDe,Sc:_De,sc:SDe,sccue:FDe,sce:$De,scE:TDe,Scedil:kDe,scedil:LDe,Scirc:BDe,scirc:ODe,scnap:PDe,scnE:NDe,scnsim:IDe,scpolint:RDe,scsim:MDe,Scy:zDe,scy:UDe,sdotb:HDe,sdot:qDe,sdote:jDe,searhk:VDe,searr:WDe,seArr:GDe,searrow:KDe,sect:QDe,semi:XDe,seswar:YDe,setminus:ZDe,setmn:JDe,sext:eAe,Sfr:tAe,sfr:nAe,sfrown:rAe,sharp:iAe,SHCHcy:sAe,shchcy:oAe,SHcy:aAe,shcy:uAe,ShortDownArrow:lAe,ShortLeftArrow:cAe,shortmid:fAe,shortparallel:hAe,ShortRightArrow:dAe,ShortUpArrow:pAe,shy:gAe,Sigma:vAe,sigma:mAe,sigmaf:yAe,sigmav:bAe,sim:wAe,simdot:DAe,sime:AAe,simeq:xAe,simg:EAe,simgE:CAe,siml:_Ae,simlE:SAe,simne:FAe,simplus:$Ae,simrarr:TAe,slarr:kAe,SmallCircle:LAe,smallsetminus:BAe,smashp:OAe,smeparsl:PAe,smid:NAe,smile:IAe,smt:RAe,smte:MAe,smtes:zAe,SOFTcy:UAe,softcy:HAe,solbar:qAe,solb:jAe,sol:VAe,Sopf:WAe,sopf:GAe,spades:KAe,spadesuit:QAe,spar:XAe,sqcap:YAe,sqcaps:ZAe,sqcup:JAe,sqcups:exe,Sqrt:txe,sqsub:nxe,sqsube:rxe,sqsubset:ixe,sqsubseteq:sxe,sqsup:oxe,sqsupe:axe,sqsupset:uxe,sqsupseteq:lxe,square:cxe,Square:fxe,SquareIntersection:hxe,SquareSubset:dxe,SquareSubsetEqual:pxe,SquareSuperset:gxe,SquareSupersetEqual:vxe,SquareUnion:mxe,squarf:yxe,squ:bxe,squf:wxe,srarr:Dxe,Sscr:Axe,sscr:xxe,ssetmn:Exe,ssmile:Cxe,sstarf:_xe,Star:Sxe,star:Fxe,starf:$xe,straightepsilon:Txe,straightphi:kxe,strns:Lxe,sub:Bxe,Sub:Oxe,subdot:Pxe,subE:Nxe,sube:Ixe,subedot:Rxe,submult:Mxe,subnE:zxe,subne:Uxe,subplus:Hxe,subrarr:qxe,subset:jxe,Subset:Vxe,subseteq:Wxe,subseteqq:Gxe,SubsetEqual:Kxe,subsetneq:Qxe,subsetneqq:Xxe,subsim:Yxe,subsub:Zxe,subsup:Jxe,succapprox:eEe,succ:tEe,succcurlyeq:nEe,Succeeds:rEe,SucceedsEqual:iEe,SucceedsSlantEqual:sEe,SucceedsTilde:oEe,succeq:aEe,succnapprox:uEe,succneqq:lEe,succnsim:cEe,succsim:fEe,SuchThat:hEe,sum:dEe,Sum:pEe,sung:gEe,sup1:vEe,sup2:mEe,sup3:yEe,sup:bEe,Sup:wEe,supdot:DEe,supdsub:AEe,supE:xEe,supe:EEe,supedot:CEe,Superset:_Ee,SupersetEqual:SEe,suphsol:FEe,suphsub:$Ee,suplarr:TEe,supmult:kEe,supnE:LEe,supne:BEe,supplus:OEe,supset:PEe,Supset:NEe,supseteq:IEe,supseteqq:REe,supsetneq:MEe,supsetneqq:zEe,supsim:UEe,supsub:HEe,supsup:qEe,swarhk:jEe,swarr:VEe,swArr:WEe,swarrow:GEe,swnwar:KEe,szlig:QEe,Tab:XEe,target:YEe,Tau:ZEe,tau:JEe,tbrk:eCe,Tcaron:tCe,tcaron:nCe,Tcedil:rCe,tcedil:iCe,Tcy:sCe,tcy:oCe,tdot:aCe,telrec:uCe,Tfr:lCe,tfr:cCe,there4:fCe,therefore:hCe,Therefore:dCe,Theta:pCe,theta:gCe,thetasym:vCe,thetav:mCe,thickapprox:yCe,thicksim:bCe,ThickSpace:wCe,ThinSpace:DCe,thinsp:ACe,thkap:xCe,thksim:ECe,THORN:CCe,thorn:_Ce,tilde:SCe,Tilde:FCe,TildeEqual:$Ce,TildeFullEqual:TCe,TildeTilde:kCe,timesbar:LCe,timesb:BCe,times:OCe,timesd:PCe,tint:NCe,toea:ICe,topbot:RCe,topcir:MCe,top:zCe,Topf:UCe,topf:HCe,topfork:qCe,tosa:jCe,tprime:VCe,trade:WCe,TRADE:GCe,triangle:KCe,triangledown:QCe,triangleleft:XCe,trianglelefteq:YCe,triangleq:ZCe,triangleright:JCe,trianglerighteq:e_e,tridot:t_e,trie:n_e,triminus:r_e,TripleDot:i_e,triplus:s_e,trisb:o_e,tritime:a_e,trpezium:u_e,Tscr:l_e,tscr:c_e,TScy:f_e,tscy:h_e,TSHcy:d_e,tshcy:p_e,Tstrok:g_e,tstrok:v_e,twixt:m_e,twoheadleftarrow:y_e,twoheadrightarrow:b_e,Uacute:w_e,uacute:D_e,uarr:A_e,Uarr:x_e,uArr:E_e,Uarrocir:C_e,Ubrcy:__e,ubrcy:S_e,Ubreve:F_e,ubreve:$_e,Ucirc:T_e,ucirc:k_e,Ucy:L_e,ucy:B_e,udarr:O_e,Udblac:P_e,udblac:N_e,udhar:I_e,ufisht:R_e,Ufr:M_e,ufr:z_e,Ugrave:U_e,ugrave:H_e,uHar:q_e,uharl:j_e,uharr:V_e,uhblk:W_e,ulcorn:G_e,ulcorner:K_e,ulcrop:Q_e,ultri:X_e,Umacr:Y_e,umacr:Z_e,uml:J_e,UnderBar:eSe,UnderBrace:tSe,UnderBracket:nSe,UnderParenthesis:rSe,Union:iSe,UnionPlus:sSe,Uogon:oSe,uogon:aSe,Uopf:uSe,uopf:lSe,UpArrowBar:cSe,uparrow:fSe,UpArrow:hSe,Uparrow:dSe,UpArrowDownArrow:pSe,updownarrow:gSe,UpDownArrow:vSe,Updownarrow:mSe,UpEquilibrium:ySe,upharpoonleft:bSe,upharpoonright:wSe,uplus:DSe,UpperLeftArrow:ASe,UpperRightArrow:xSe,upsi:ESe,Upsi:CSe,upsih:_Se,Upsilon:SSe,upsilon:FSe,UpTeeArrow:$Se,UpTee:TSe,upuparrows:kSe,urcorn:LSe,urcorner:BSe,urcrop:OSe,Uring:PSe,uring:NSe,urtri:ISe,Uscr:RSe,uscr:MSe,utdot:zSe,Utilde:USe,utilde:HSe,utri:qSe,utrif:jSe,uuarr:VSe,Uuml:WSe,uuml:GSe,uwangle:KSe,vangrt:QSe,varepsilon:XSe,varkappa:YSe,varnothing:ZSe,varphi:JSe,varpi:eFe,varpropto:tFe,varr:nFe,vArr:rFe,varrho:iFe,varsigma:sFe,varsubsetneq:oFe,varsubsetneqq:aFe,varsupsetneq:uFe,varsupsetneqq:lFe,vartheta:cFe,vartriangleleft:fFe,vartriangleright:hFe,vBar:dFe,Vbar:pFe,vBarv:gFe,Vcy:vFe,vcy:mFe,vdash:yFe,vDash:bFe,Vdash:wFe,VDash:DFe,Vdashl:AFe,veebar:xFe,vee:EFe,Vee:CFe,veeeq:_Fe,vellip:SFe,verbar:FFe,Verbar:$Fe,vert:TFe,Vert:kFe,VerticalBar:LFe,VerticalLine:BFe,VerticalSeparator:OFe,VerticalTilde:PFe,VeryThinSpace:NFe,Vfr:IFe,vfr:RFe,vltri:MFe,vnsub:zFe,vnsup:UFe,Vopf:HFe,vopf:qFe,vprop:jFe,vrtri:VFe,Vscr:WFe,vscr:GFe,vsubnE:KFe,vsubne:QFe,vsupnE:XFe,vsupne:YFe,Vvdash:ZFe,vzigzag:JFe,Wcirc:e2e,wcirc:t2e,wedbar:n2e,wedge:r2e,Wedge:i2e,wedgeq:s2e,weierp:o2e,Wfr:a2e,wfr:u2e,Wopf:l2e,wopf:c2e,wp:f2e,wr:h2e,wreath:d2e,Wscr:p2e,wscr:g2e,xcap:v2e,xcirc:m2e,xcup:y2e,xdtri:b2e,Xfr:w2e,xfr:D2e,xharr:A2e,xhArr:x2e,Xi:E2e,xi:C2e,xlarr:_2e,xlArr:S2e,xmap:F2e,xnis:$2e,xodot:T2e,Xopf:k2e,xopf:L2e,xoplus:B2e,xotime:O2e,xrarr:P2e,xrArr:N2e,Xscr:I2e,xscr:R2e,xsqcup:M2e,xuplus:z2e,xutri:U2e,xvee:H2e,xwedge:q2e,Yacute:j2e,yacute:V2e,YAcy:W2e,yacy:G2e,Ycirc:K2e,ycirc:Q2e,Ycy:X2e,ycy:Y2e,yen:Z2e,Yfr:J2e,yfr:e$e,YIcy:t$e,yicy:n$e,Yopf:r$e,yopf:i$e,Yscr:s$e,yscr:o$e,YUcy:a$e,yucy:u$e,yuml:l$e,Yuml:c$e,Zacute:f$e,zacute:h$e,Zcaron:d$e,zcaron:p$e,Zcy:g$e,zcy:v$e,Zdot:m$e,zdot:y$e,zeetrf:b$e,ZeroWidthSpace:w$e,Zeta:D$e,zeta:A$e,zfr:x$e,Zfr:E$e,ZHcy:C$e,zhcy:_$e,zigrarr:S$e,zopf:F$e,Zopf:$$e,Zscr:T$e,zscr:k$e,zwj:L$e,zwnj: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="ç",eTe="¸",tTe="¢",nTe="©",rTe="©",iTe="¤",sTe="°",oTe="÷",aTe="É",uTe="é",lTe="Ê",cTe="ê",fTe="È",hTe="è",dTe="Ð",pTe="ð",gTe="Ë",vTe="ë",mTe="½",yTe="¼",bTe="¾",wTe=">",DTe=">",ATe="Í",xTe="í",ETe="Î",CTe="î",_Te="¡",STe="Ì",FTe="ì",$Te="¿",TTe="Ï",kTe="ï",LTe="«",BTe="<",OTe="<",PTe="¯",NTe="µ",ITe="·",RTe=" ",MTe="¬",zTe="Ñ",UTe="ñ",HTe="Ó",qTe="ó",jTe="Ô",VTe="ô",WTe="Ò",GTe="ò",KTe="ª",QTe="º",XTe="Ø",YTe="ø",ZTe="Õ",JTe="õ",eke="Ö",tke="ö",nke="¶",rke="±",ike="£",ske='"',oke='"',ake="»",uke="®",lke="®",cke="§",fke="",hke="¹",dke="²",pke="³",gke="ß",vke="Þ",mke="þ",yke="×",bke="Ú",wke="ú",Dke="Û",Ake="û",xke="Ù",Eke="ù",Cke="¨",_ke="Ü",Ske="ü",Fke="Ý",$ke="ý",Tke="¥",kke="ÿ",Lke={Aacute:O$e,aacute:P$e,Acirc:N$e,acirc:I$e,acute:R$e,AElig:M$e,aelig:z$e,Agrave:U$e,agrave:H$e,amp:q$e,AMP:j$e,Aring:V$e,aring:W$e,Atilde:G$e,atilde:K$e,Auml:Q$e,auml:X$e,brvbar:Y$e,Ccedil:Z$e,ccedil:J$e,cedil:eTe,cent:tTe,copy:nTe,COPY:rTe,curren:iTe,deg:sTe,divide:oTe,Eacute:aTe,eacute:uTe,Ecirc:lTe,ecirc:cTe,Egrave:fTe,egrave:hTe,ETH:dTe,eth:pTe,Euml:gTe,euml:vTe,frac12:mTe,frac14:yTe,frac34:bTe,gt:wTe,GT:DTe,Iacute:ATe,iacute:xTe,Icirc:ETe,icirc:CTe,iexcl:_Te,Igrave:STe,igrave:FTe,iquest:$Te,Iuml:TTe,iuml:kTe,laquo:LTe,lt:BTe,LT:OTe,macr:PTe,micro:NTe,middot:ITe,nbsp:RTe,not:MTe,Ntilde:zTe,ntilde:UTe,Oacute:HTe,oacute:qTe,Ocirc:jTe,ocirc:VTe,Ograve:WTe,ograve:GTe,ordf:KTe,ordm:QTe,Oslash:XTe,oslash:YTe,Otilde:ZTe,otilde:JTe,Ouml:eke,ouml:tke,para:nke,plusmn:rke,pound:ike,quot:ske,QUOT:oke,raquo:ake,reg:uke,REG:lke,sect:cke,shy:fke,sup1:hke,sup2:dke,sup3:pke,szlig:gke,THORN:vke,thorn:mke,times:yke,Uacute:bke,uacute:wke,Ucirc:Dke,ucirc:Ake,Ugrave:xke,ugrave:Eke,uml:Cke,Uuml:_ke,uuml:Ske,Yacute:Fke,yacute:$ke,yen:Tke,yuml:kke},Bke="&",Oke="'",Pke=">",Nke="<",Ike='"',Q_={amp:Bke,apos:Oke,gt:Pke,lt:Nke,quot:Ike};var Rv={};const Rke={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 Mke=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rv,"__esModule",{value:!0});var zD=Mke(Rke),zke=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 Uke(e){return e>=55296&&e<=57343||e>1114111?"�":(e in zD.default&&(e=zD.default[e]),zke(e))}Rv.default=Uke;var Oh=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.decodeHTML=Ei.decodeHTMLStrict=Ei.decodeXML=void 0;var d0=Oh(K_),Hke=Oh(Lke),qke=Oh(Q_),UD=Oh(Rv),jke=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Ei.decodeXML=X_(qke.default);Ei.decodeHTMLStrict=X_(d0.default);function X_(e){var t=Y_(e);return function(n){return String(n).replace(jke,t)}}var HD=function(e,t){return e<t?1:-1};Ei.decodeHTML=function(){for(var e=Object.keys(Hke.default).sort(HD),t=Object.keys(d0.default).sort(HD),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=Y_(d0.default);function c(h){return h.substr(-1)!==";"&&(h+=";"),a(h)}return function(h){return String(h).replace(o,c)}}();function Y_(e){return function(n){if(n.charAt(1)==="#"){var i=n.charAt(2);return i==="X"||i==="x"?UD.default(parseInt(n.substr(3),16)):UD.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}var Yn={},Z_=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.escapeUTF8=Yn.escape=Yn.encodeNonAsciiHTML=Yn.encodeHTML=Yn.encodeXML=void 0;var Vke=Z_(Q_),J_=tS(Vke.default),eS=nS(J_);Yn.encodeXML=sS(J_);var Wke=Z_(K_),Mv=tS(Wke.default),Gke=nS(Mv);Yn.encodeHTML=Qke(Mv,Gke);Yn.encodeNonAsciiHTML=sS(Mv);function tS(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function nS(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 rS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Kke=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Ph(e){return"&#x"+(e.length>1?Kke(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Qke(e,t){return function(n){return n.replace(t,function(i){return e[i]}).replace(rS,Ph)}}var iS=new RegExp(eS.source+"|"+rS.source,"g");function Xke(e){return e.replace(iS,Ph)}Yn.escape=Xke;function Yke(e){return e.replace(eS,Ph)}Yn.escapeUTF8=Yke;function sS(e){return function(t){return t.replace(iS,function(n){return e[n]||Ph(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=Ei,n=Yn;function i(d,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(d)}e.decode=i;function o(d,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(d)}e.decodeStrict=o;function a(d,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(d)}e.encode=a;var c=Yn;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var h=Ei;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(G_);function Zke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qD(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 Jke(e,t,n){return t&&qD(e.prototype,t),n&&qD(e,n),e}function oS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=eLe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,c=!1,h;return{s:function(){n=n.call(e)},n:function(){var p=n.next();return a=p.done,p},e:function(p){c=!0,h=p},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(c)throw h}}}}function eLe(e,t){if(e){if(typeof e=="string")return jD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jD(e,t)}}function jD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var tLe=G_,VD={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:nLe()};function nLe(){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 Oc(0,5).forEach(function(t){Oc(0,5).forEach(function(n){Oc(0,5).forEach(function(i){return rLe(t,n,i,e)})})}),Oc(0,23).forEach(function(t){var n=t+232,i=aS(t*10+8);e[n]="#"+i+i+i}),e}function rLe(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]=iLe([a,c,h])}function aS(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function iLe(e){var t=[],n=oS(e),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;t.push(aS(o))}}catch(a){n.e(a)}finally{n.f()}return"#"+t.join("")}function WD(e,t,n,i){var o;return t==="text"?o=uLe(n,i):t==="display"?o=oLe(e,n,i):t==="xterm256Foreground"?o=Jc(e,i.colors[n]):t==="xterm256Background"?o=ef(e,i.colors[n]):t==="rgb"&&(o=sLe(e,n)),o}function sLe(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 Zc(e,(n===38?"color:#":"background-color:#")+o)}function oLe(e,t,n){t=parseInt(t,10);var i={"-1":function(){return"<br/>"},0:function(){return e.length&&uS(e)},1:function(){return rs(e,"b")},3:function(){return rs(e,"i")},4:function(){return rs(e,"u")},8:function(){return Zc(e,"display:none")},9:function(){return rs(e,"strike")},22:function(){return Zc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return KD(e,"i")},24:function(){return KD(e,"u")},39:function(){return Jc(e,n.fg)},49:function(){return ef(e,n.bg)},53:function(){return Zc(e,"text-decoration:overline")}},o;return i[t]?o=i[t]():4<t&&t<7?o=rs(e,"blink"):29<t&&t<38?o=Jc(e,n.colors[t-30]):39<t&&t<48?o=ef(e,n.colors[t-40]):89<t&&t<98?o=Jc(e,n.colors[8+(t-90)]):99<t&&t<108&&(o=ef(e,n.colors[8+(t-100)])),o}function uS(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(n){return"</"+n+">"}).join("")}function Oc(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n}function aLe(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function GD(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 uLe(e,t){return t.escapeXML?tLe.encodeXML(e):e}function rs(e,t,n){return n||(n=""),e.push(t),"<".concat(t).concat(n?' style="'.concat(n,'"'):"",">")}function Zc(e,t){return rs(e,"span",t)}function Jc(e,t){return rs(e,"span","color:"+t)}function ef(e,t){return rs(e,"span","background-color:"+t)}function KD(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return"</"+t+">"}function lLe(e,t,n){var i=!1,o=3;function a(){return""}function c(k,M){return n("xterm256Foreground",M),""}function h(k,M){return n("xterm256Background",M),""}function d(k){return t.newline?n("display",-1):n("text",k),""}function p(k,M){i=!0,M.trim().length===0&&(M="0"),M=M.trimRight(";").split(";");var U=oS(M),j;try{for(U.s();!(j=U.n()).done;){var ne=j.value;n("display",ne)}}catch(ue){U.e(ue)}finally{U.f()}return""}function g(k){return n("text",k),""}function y(k){return n("rgb",k),""}var m=[{pattern:/^\x08+/,sub:a},{pattern:/^\x1b\[[012]?K/,sub:a},{pattern:/^\x1b\[\(B/,sub:a},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:c},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:d},{pattern:/^\r+\n/,sub:d},{pattern:/^\r/,sub:d},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:a},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:a},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:a},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:g}];function A(k,M){M>o&&i||(i=!1,e=e.replace(k.pattern,k.sub))}var $=[],L=e,E=L.length;e:for(;E>0;){for(var C=0,S=0,O=m.length;S<O;C=++S){var B=m[C];if(A(B,C),e.length!==E){E=e.length;continue e}}if(e.length===E)break;$.push(0),E=e.length}return $}function cLe(e,t,n){return t!=="text"&&(e=e.filter(aLe(GD(n))),e.push({token:t,data:n,category:GD(n)})),e}var fLe=function(){function e(t){Zke(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},VD.colors,t.colors)),this.options=Object.assign({},VD,t),this.stack=[],this.stickyStack=[]}return Jke(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=WD(o,h.token,h.data,a);d&&c.push(d)}),lLe(n.join(""),a,function(h,d){var p=WD(o,h,d,a);p&&c.push(p),a.stream&&(i.stickyStack=cLe(i.stickyStack,h,d))}),o.length&&c.push(uS(o)),c.join("")}}]),e}(),hLe=fLe;function dLe(e,t){return t&&e.endsWith(t)}async function lS(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function cS(e){return new hLe({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}const pLe={class:"scrolls scrolls-rounded task-error"},gLe=["onClickPassive"],vLe={key:0},mLe=ot({__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=Ce(()=>{var a,c;return((a=t.error)==null?void 0:a.expected)&&((c=t.error)==null?void 0:c.actual)});function o(){return TV(t.error.actual,t.error.expected)}return(a,c)=>{const h=to("tooltip");return de(),ke("div",pLe,[me("pre",null,[me("b",null,Ye(e.error.name||e.error.nameStr),1),_n(": "+Ye(e.error.message),1)]),(de(!0),ke(ht,null,Dr(e.error.stacks,(d,p)=>(de(),ke("div",{key:p,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[me("pre",null," - "+Ye(n(d.file))+":"+Ye(d.line)+":"+Ye(d.column),1),X(dLe)(d.file,e.filename)?$n((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(lS)(d.file,d.line,d.column)},null,40,gLe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):lt("",!0)]))),128)),X(i)?(de(),ke("pre",vLe," "+Ye(`
|
|
16
|
+
${o()}`)+`
|
|
17
|
+
`,1)):lt("",!0)])}}});const yLe=no(mLe,[["__scopeId","data-v-b52f98f6"]]),Nh=BW(),bLe=VV(Nh),wLe={"h-full":"",class:"scrolls"},DLe={key:0,class:"scrolls scrolls-rounded task-error"},ALe=["innerHTML"],xLe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},ELe=ot({__name:"ViewReport",props:{file:null},setup(e){const t=e;function n(h,d){var p;return((p=h.result)==null?void 0:p.state)!=="fail"?[]:h.type==="test"||h.type==="custom"?[{...h,level:d}]:[{...h,level:d},...h.tasks.flatMap(g=>n(g,d+1))]}function i(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(h,d){var y,m;let p="";d.message.includes("\x1B")&&(p=`<b>${d.nameStr||d.name}</b>: ${h.toHtml(i(d.message))}`);const g=(y=d.stackStr)==null?void 0:y.includes("\x1B");return(g||(m=d.stack)!=null&&m.includes("\x1B"))&&(p.length>0?p+=h.toHtml(i(g?d.stackStr:d.stack)):p=`<b>${d.nameStr||d.name}</b>: ${d.message}${h.toHtml(i(g?d.stackStr:d.stack))}`),p.length>0?p:null}function a(h,d){const p=cS(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=Ce(()=>{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(Nh.value,d):d});return(h,d)=>(de(),ke("div",wLe,[X(c).length?(de(!0),ke(ht,{key:0},Dr(X(c),p=>{var g,y,m;return de(),ke("div",{key:p.id},[me("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Un({"margin-left":`${(g=p.result)!=null&&g.htmlError?.5:2*p.level+.5}rem`})},[_n(Ye(p.name)+" ",1),(y=p.result)!=null&&y.htmlError?(de(),ke("div",DLe,[me("pre",{innerHTML:p.result.htmlError},null,8,ALe)])):(m=p.result)!=null&&m.errors?(de(!0),ke(ht,{key:1},Dr(p.result.errors,(A,$)=>{var L;return de(),tt(yLe,{key:$,error:A,filename:(L=e.file)==null?void 0:L.name,root:X(j_).root},null,8,["error","filename","root"])}),128)):lt("",!0)],4)])}),128)):(de(),ke("div",xLe," All tests passed in this file "))]))}});const CLe=no(ELe,[["__scopeId","data-v-1988b97e"]]),_Le={border:"b base","p-4":""},SLe=["innerHTML"],FLe=["textContent"],$Le=ot({__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",_Le,[me("div",{"text-xs":"","mb-1":"",class:yt(t.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Ye(n(t.time))+" | "+Ye(t.taskName)+" | "+Ye(t.type),3),t.html?(de(),ke("pre",{key:0,"data-type":"html",innerHTML:t.content},null,8,SLe)):(de(),ke("pre",{key:1,"data-type":"text",textContent:Ye(t.content)},null,8,FLe))]))}}),TLe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},kLe={key:1,p6:""},LLe=me("pre",{inline:""},"console.log(foo)",-1),BLe=ot({__name:"ViewConsoleOutput",setup(e){const t=Ce(()=>{const i=V_.value;if(i){const o=cS(Nh.value);return i.map(({taskId:a,type:c,time:h,content:d})=>{const p=d.trim(),g=o.toHtml(p);return g!==p?{taskId:a,type:c,time:h,html:!0,content:g}:{taskId:a,type:c,time:h,html:!1,content:d}})}});function n(i){const o=i&&sn.state.idMap.get(i);return(o?kV(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>{var c;const a=$Le;return(c=X(t))!=null&&c.length?(de(),ke("div",TLe,[(de(!0),ke(ht,null,Dr(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",kLe,[_n(" Log something in your test and it would print here. (e.g. "),LLe,_n(") ")]))}}});var $f={},OLe={get exports(){return $f},set exports(e){$f=e}},QD;function ka(){return QD||(QD=1,function(e,t){(function(n,i){e.exports=i()})(ur,function(){var n=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(n),a=/MSIE \d/.test(n),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),h=/Edge\/(\d+)/.exec(n),d=a||c||h,p=d&&(a?document.documentMode||6:+(h||c)[1]),g=!h&&/WebKit\//.test(n),y=g&&/Qt\/\d+\.\d+/.test(n),m=!h&&/Chrome\/(\d+)/.exec(n),A=m&&+m[1],$=/Opera\//.test(n),L=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),C=/PhantomJS/.test(n),S=L&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),B=S||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),k=S||/Mac/.test(i),M=/\bCrOS\b/.test(n),U=/win/i.test(i),j=$&&n.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&($=!1,g=!0);var ne=k&&(y||$&&(j==null||j<12.11)),ue=o||d&&p>=9;function Y(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var z=function(r,s){var l=r.className,u=Y(s).exec(l);if(u){var f=l.slice(u.index+u[0].length);r.className=l.slice(0,u.index)+(f?u[1]+f:"")}};function P(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function F(r,s){return P(r).appendChild(s)}function w(r,s,l,u){var f=document.createElement(r);if(l&&(f.className=l),u&&(f.style.cssText=u),typeof s=="string")f.appendChild(document.createTextNode(s));else if(s)for(var v=0;v<s.length;++v)f.appendChild(s[v]);return f}function R(r,s,l,u){var f=w(r,s,l,u);return f.setAttribute("role","presentation"),f}var V;document.createRange?V=function(r,s,l,u){var f=document.createRange();return f.setEnd(u||r,l),f.setStart(r,s),f}:V=function(r,s,l){var u=document.body.createTextRange();try{u.moveToElementText(r.parentNode)}catch{return u}return u.collapse(!0),u.moveEnd("character",l),u.moveStart("character",s),u};function Z(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function 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 pe(r,s){var l=r.className;Y(s).test(l)||(r.className+=(l?" ":"")+s)}function $e(r,s){for(var l=r.split(" "),u=0;u<l.length;u++)l[u]&&!Y(l[u]).test(s)&&(s+=" "+l[u]);return s}var _e=function(r){r.select()};S?_e=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:d&&(_e=function(r){try{r.select()}catch{}});function ze(r){return r.display.wrapper.ownerDocument}function Ke(r){return ze(r).defaultView}function ie(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function se(r,s,l){s||(s={});for(var u in r)r.hasOwnProperty(u)&&(l!==!1||!s.hasOwnProperty(u))&&(s[u]=r[u]);return s}function J(r,s,l,u,f){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var v=u||0,b=f||0;;){var D=r.indexOf(" ",v);if(D<0||D>=s)return b+(s-v);b+=D-v,b+=l-b%l,v=D+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=ie(this.onTimeout,this)};fe.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},fe.prototype.set=function(r,s){this.f=s;var l=+new Date+r;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=l)};function Se(r,s){for(var l=0;l<r.length;++l)if(r[l]==s)return l;return-1}var vt=50,Te={toString:function(){return"CodeMirror.Pass"}},I={scroll:!1},G={origin:"*mouse"},re={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 ce=[""];function ye(r){for(;ce.length<=r;)ce.push(he(ce)+" ");return ce[r]}function he(r){return r[r.length-1]}function be(r,s){for(var l=[],u=0;u<r.length;u++)l[u]=s(r[u],u);return l}function xe(r,s,l){for(var u=0,f=l(s);u<r.length&&l(r[u])<=f;)u++;r.splice(u,0,s)}function ge(){}function Ne(r,s){var l;return Object.create?l=Object.create(r):(ge.prototype=r,l=new ge),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 et(r){return r.charCodeAt(0)>=768&&nt.test(r)}function ft(r,s,l){for(;(l<0?s>0:s<r.length)&&et(r.charAt(s));)s+=l;return s}function Ze(r,s,l){for(var u=s>l?-1:1;;){if(s==l)return s;var f=(s+l)/2,v=u<0?Math.ceil(f):Math.floor(f);if(v==s)return r(v)?s:l;r(v)?l=v:s=v+u}}function Bn(r,s,l,u){if(!r)return u(s,l,"ltr",0);for(var f=!1,v=0;v<r.length;++v){var b=r[v];(b.from<l&&b.to>s||s==l&&b.to==s)&&(u(Math.max(b.from,s),Math.min(b.to,l),b.level==1?"rtl":"ltr",v),f=!0)}f||u(s,l,"ltr")}var Vn=null;function tn(r,s,l){var u;Vn=null;for(var f=0;f<r.length;++f){var v=r[f];if(v.from<s&&v.to>s)return f;v.to==s&&(v.from!=v.to&&l=="before"?u=f:Vn=f),v.from==s&&(v.from!=v.to&&l!="before"?u=f:Vn=f)}return u??Vn}var ao=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]/,D=/[1n]/;function x(_,N,H){this.level=_,this.from=N,this.to=H}return function(_,N){var H=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!u.test(_))return!1;for(var Q=_.length,K=[],te=0;te<Q;++te)K.push(l(_.charCodeAt(te)));for(var le=0,ve=H;le<Q;++le){var we=K[le];we=="m"?K[le]=ve:ve=we}for(var Ee=0,De=H;Ee<Q;++Ee){var Fe=K[Ee];Fe=="1"&&De=="r"?K[Ee]="n":v.test(Fe)&&(De=Fe,Fe=="r"&&(K[Ee]="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 Qt=K[mt];if(Qt==",")K[mt]="N";else if(Qt=="%"){var Ft=void 0;for(Ft=mt+1;Ft<Q&&K[Ft]=="%";++Ft);for(var Nn=mt&&K[mt-1]=="!"||Ft<Q&&K[Ft]=="1"?"1":"N",An=mt;An<Ft;++An)K[An]=Nn;mt=Ft-1}}for(var It=0,xn=H;It<Q;++It){var nn=K[It];xn=="L"&&nn=="1"?K[It]="L":v.test(nn)&&(xn=nn)}for(var jt=0;jt<Q;++jt)if(f.test(K[jt])){var Rt=void 0;for(Rt=jt+1;Rt<Q&&f.test(K[Rt]);++Rt);for(var Lt=(jt?K[jt-1]:H)=="L",En=(Rt<Q?K[Rt]:H)=="L",$o=Lt==En?Lt?"L":"R":H,Wi=jt;Wi<Rt;++Wi)K[Wi]=$o;jt=Rt-1}for(var ln=[],Ir,Xt=0;Xt<Q;)if(b.test(K[Xt])){var Bd=Xt;for(++Xt;Xt<Q&&b.test(K[Xt]);++Xt);ln.push(new x(0,Bd,Xt))}else{var ci=Xt,Cs=ln.length,_s=N=="rtl"?1:0;for(++Xt;Xt<Q&&K[Xt]!="L";++Xt);for(var gn=ci;gn<Xt;)if(D.test(K[gn])){ci<gn&&(ln.splice(Cs,0,new x(1,ci,gn)),Cs+=_s);var To=gn;for(++gn;gn<Xt&&D.test(K[gn]);++gn);ln.splice(Cs,0,new x(2,To,gn)),Cs+=_s,ci=gn}else++gn;ci<Xt&&ln.splice(Cs,0,new x(1,ci,Xt))}return N=="ltr"&&(ln[0].level==1&&(Ir=_.match(/^\s+/))&&(ln[0].from=Ir[0].length,ln.unshift(new x(0,0,Ir[0].length))),he(ln).level==1&&(Ir=_.match(/\s+$/))&&(he(ln).to-=Ir[0].length,ln.push(new x(0,Q-Ir[0].length,Q)))),N=="rtl"?ln.reverse():ln}}();function Dt(r,s){var l=r.order;return l==null&&(l=r.order=ao(r.text,s)),l}var yn=[],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]||yn).concat(l)}};function Ba(r,s){return r._handlers&&r._handlers[s]||yn}function on(r,s,l){if(r.removeEventListener)r.removeEventListener(s,l,!1);else if(r.detachEvent)r.detachEvent("on"+s,l);else{var u=r._handlers,f=u&&u[s];if(f){var v=Se(f,l);v>-1&&(u[s]=f.slice(0,v).concat(f.slice(v+1)))}}}function wt(r,s){var l=Ba(r,s);if(l.length)for(var u=Array.prototype.slice.call(arguments,2),f=0;f<l.length;++f)l[f].apply(null,u)}function Tt(r,s,l){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),wt(r,l||s.type,r,s),Oa(s)||s.codemirrorIgnore}function $l(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var l=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),u=0;u<s.length;++u)Se(l,s[u])==-1&&l.push(s[u])}function hn(r,s){return Ba(r,s).length>0}function dn(r){r.prototype.on=function(s,l){Ae(this,s,l)},r.prototype.off=function(s,l){on(this,s,l)}}function an(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function vs(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function Oa(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function ti(r){an(r),vs(r)}function bn(r){return r.target||r.srcElement}function Pa(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 zh=function(){if(d&&p<9)return!1;var r=w("div");return"draggable"in r||"dragDrop"in r}(),tr;function Uh(r){if(tr==null){var s=w("span","");F(r,w("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(tr=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&p<8))}var l=tr?w("span",""):w("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var uo;function Tl(r){if(uo!=null)return uo;var s=F(r,document.createTextNode("AخA")),l=V(s,0,1).getBoundingClientRect(),u=V(s,1,2).getBoundingClientRect();return P(r),!l||l.left==l.right?!1:uo=u.right-l.right<3}var Na=`
|
|
18
|
+
|
|
19
|
+
b`.split(/\n/).length!=3?function(r){for(var s=0,l=[],u=r.length;s<=u;){var f=r.indexOf(`
|
|
20
|
+
`,s);f==-1&&(f=r.length);var v=r.slice(s,r.charAt(f-1)=="\r"?f-1:f),b=v.indexOf("\r");b!=-1?(l.push(v.slice(0,b)),s+=b+1):(l.push(v),s=f+1)}return l}:function(r){return r.split(/\r\n?|\n/)},Oi=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},kr=function(){var r=w("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),Lr=null;function kl(r){if(Lr!=null)return Lr;var s=F(r,w("span","x")),l=s.getBoundingClientRect(),u=V(s,0,1).getBoundingClientRect();return Lr=Math.abs(l.left-u.left)>1}var fr={},Pi={};function Ll(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),fr[r]=s}function lo(r,s){Pi[r]=s}function On(r){if(typeof r=="string"&&Pi.hasOwnProperty(r))r=Pi[r];else if(r&&typeof r.name=="string"&&Pi.hasOwnProperty(r.name)){var s=Pi[r.name];typeof s=="string"&&(s={name:s}),r=Ne(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return On("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return On("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function ni(r,s){s=On(s);var l=fr[s.name];if(!l)return ni(r,"text/plain");var u=l(r,s);if(Ni.hasOwnProperty(s.name)){var f=Ni[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 Ni={};function Bl(r,s){var l=Ni.hasOwnProperty(r)?Ni[r]:Ni[r]={};se(s,l)}function ri(r,s){if(s===!0)return s;if(r.copyState)return r.copyState(s);var l={};for(var u in s){var f=s[u];f instanceof Array&&(f=f.concat([])),l[u]=f}return l}function Ii(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 Ia(r,s,l){return r.startState?r.startState(s,l):!0}var kt=function(r,s,l){this.pos=this.start=0,this.string=r,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};kt.prototype.eol=function(){return this.pos>=this.string.length},kt.prototype.sol=function(){return this.pos==this.lineStart},kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},kt.prototype.eat=function(r){var s=this.string.charAt(this.pos),l;if(typeof r=="string"?l=s==r:l=s&&(r.test?r.test(s):r(s)),l)return++this.pos,s},kt.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},kt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},kt.prototype.skipToEnd=function(){this.pos=this.string.length},kt.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},kt.prototype.backUp=function(r){this.pos-=r},kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=J(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},kt.prototype.indentation=function(){return J(this.string,null,this.tabSize)-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},kt.prototype.match=function(r,s,l){if(typeof r=="string"){var u=function(b){return l?b.toLowerCase():b},f=this.string.substr(this.pos,r.length);if(u(f)==u(r))return s!==!1&&(this.pos+=r.length),!0}else{var v=this.string.slice(this.pos).match(r);return v&&v.index>0?null:(v&&s!==!1&&(this.pos+=v[0].length),v)}},kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},kt.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},kt.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},kt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function Le(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var l=r;!l.lines;)for(var u=0;;++u){var f=l.children[u],v=f.chunkSize();if(s<v){l=f;break}s-=v}return l.lines[s]}function ii(r,s,l){var u=[],f=s.line;return r.iter(s.line,l.line+1,function(v){var b=v.text;f==l.line&&(b=b.slice(0,l.ch)),f==s.line&&(b=b.slice(s.ch)),u.push(b),++f}),u}function co(r,s,l){var u=[];return r.iter(s,l,function(f){u.push(f.text)}),u}function nr(r,s){var l=s-r.height;if(l)for(var u=r;u;u=u.parent)u.height+=l}function at(r){if(r.parent==null)return null;for(var s=r.parent,l=Se(s.lines,r),u=s.parent;u;s=u,u=u.parent)for(var f=0;u.children[f]!=s;++f)l+=u.children[f].chunkSize();return l+s.first}function Br(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 D=r.lines[b],x=D.height;if(s<x)break;s-=x}return l+b}function T(r,s){return s>=r.first&&s<r.first+r.size}function q(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function W(r,s,l){if(l===void 0&&(l=null),!(this instanceof W))return new W(r,s,l);this.line=r,this.ch=s,this.sticky=l}function ee(r,s){return r.line-s.line||r.ch-s.ch}function Ue(r,s){return r.sticky==s.sticky&&ee(r,s)==0}function Qe(r){return W(r.line,r.ch)}function rt(r,s){return ee(r,s)<0?s:r}function qt(r,s){return ee(r,s)<0?r:s}function Wn(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function He(r,s){if(s.line<r.first)return W(r.first,0);var l=r.first+r.size-1;return s.line>l?W(l,Le(r,l).text.length):tF(s,Le(r,s.line).text.length)}function tF(r,s){var l=r.ch;return l==null||l>s?W(r.line,s):l<0?W(r.line,0):r}function tm(r,s){for(var l=[],u=0;u<s.length;u++)l[u]=He(r,s[u]);return l}var Ol=function(r,s){this.state=r,this.lookAhead=s},Or=function(r,s,l,u){this.state=s,this.doc=r,this.line=l,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};Or.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},Or.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}},Or.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Or.fromSaved=function(r,s,l){return s instanceof Ol?new Or(r,ri(r.mode,s.state),l,s.lookAhead):new Or(r,ri(r.mode,s),l)},Or.prototype.save=function(r){var s=r!==!1?ri(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ol(s,this.maxLookAhead):s};function nm(r,s,l,u){var f=[r.state.modeGen],v={};um(r,s.text,r.doc.mode,l,function(_,N){return f.push(_,N)},v,u);for(var b=l.state,D=function(_){l.baseTokens=f;var N=r.state.overlays[_],H=1,Q=0;l.state=!0,um(r,s.text,N.mode,l,function(K,te){for(var le=H;Q<K;){var ve=f[H];ve>K&&f.splice(H,1,K,f[H+1],ve),H+=2,Q=Math.min(K,ve)}if(te)if(N.opaque)f.splice(le,H-le,K,"overlay "+te),H=le+2;else for(;le<H;le+=2){var we=f[le+1];f[le+1]=(we?we+" ":"")+"overlay "+te}},v),l.state=b,l.baseTokens=null,l.baseTokenPos=1},x=0;x<r.state.overlays.length;++x)D(x);return{styles:f,classes:v.bgClass||v.textClass?v:null}}function rm(r,s,l){if(!s.styles||s.styles[0]!=r.state.modeGen){var u=Ra(r,at(s)),f=s.text.length>r.options.maxHighlightLength&&ri(r.doc.mode,u.state),v=nm(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 Ra(r,s,l){var u=r.doc,f=r.display;if(!u.mode.startState)return new Or(u,!0,s);var v=nF(r,s,l),b=v>u.first&&Le(u,v-1).stateAfter,D=b?Or.fromSaved(u,b,v):new Or(u,Ia(u.mode),v);return u.iter(v,s,function(x){Hh(r,x.text,D);var _=D.line;x.stateAfter=_==s-1||_%5==0||_>=f.viewFrom&&_<f.viewTo?D.save():null,D.nextLine()}),l&&(u.modeFrontier=D.line),D}function Hh(r,s,l,u){var f=r.doc.mode,v=new kt(s,r.options.tabSize,l);for(v.start=v.pos=u||0,s==""&&im(f,l.state);!v.eol();)qh(f,v,l.state),v.start=v.pos}function im(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var l=Ii(r,s);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function qh(r,s,l,u){for(var f=0;f<10;f++){u&&(u[0]=Ii(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 sm=function(r,s,l){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=l};function om(r,s,l,u){var f=r.doc,v=f.mode,b;s=He(f,s);var D=Le(f,s.line),x=Ra(r,s.line,l),_=new kt(D.text,r.options.tabSize,x),N;for(u&&(N=[]);(u||_.pos<s.ch)&&!_.eol();)_.start=_.pos,b=qh(v,_,x.state),u&&N.push(new sm(_,b,ri(f.mode,x.state)));return u?N:new sm(_,b,x.state)}function am(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 um(r,s,l,u,f,v,b){var D=l.flattenSpans;D==null&&(D=r.options.flattenSpans);var x=0,_=null,N=new kt(s,r.options.tabSize,u),H,Q=r.options.addModeClass&&[null];for(s==""&&am(im(l,u.state),v);!N.eol();){if(N.pos>r.options.maxHighlightLength?(D=!1,b&&Hh(r,s,u,N.pos),N.pos=s.length,H=null):H=am(qh(l,N,u.state,Q),v),Q){var K=Q[0].name;K&&(H="m-"+(H?K+" "+H:K))}if(!D||_!=H){for(;x<N.start;)x=Math.min(N.start,x+5e3),f(x,_);_=H}N.start=N.pos}for(;x<N.pos;){var te=Math.min(N.pos,x+5e3);f(te,_),x=te}}function nF(r,s,l){for(var u,f,v=r.doc,b=l?-1:s-(r.doc.mode.innerMode?1e3:100),D=s;D>b;--D){if(D<=v.first)return v.first;var x=Le(v,D-1),_=x.stateAfter;if(_&&(!l||D+(_ instanceof Ol?_.lookAhead:0)<=v.modeFrontier))return D;var N=J(x.text,null,r.options.tabSize);(f==null||u>N)&&(f=D-1,u=N)}return f}function rF(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 Ol)||u+f.lookAhead<s)){l=u+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,l)}}var lm=!1,si=!1;function iF(){lm=!0}function sF(){si=!0}function Pl(r,s,l){this.marker=r,this.from=s,this.to=l}function Ma(r,s){if(r)for(var l=0;l<r.length;++l){var u=r[l];if(u.marker==s)return u}}function oF(r,s){for(var l,u=0;u<r.length;++u)r[u]!=s&&(l||(l=[])).push(r[u]);return l}function aF(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 uF(r,s,l){var u;if(r)for(var f=0;f<r.length;++f){var v=r[f],b=v.marker,D=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);if(D||v.from==s&&b.type=="bookmark"&&(!l||!v.marker.insertLeft)){var x=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);(u||(u=[])).push(new Pl(b,v.from,x?null:v.to))}}return u}function lF(r,s,l){var u;if(r)for(var f=0;f<r.length;++f){var v=r[f],b=v.marker,D=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);if(D||v.from==s&&b.type=="bookmark"&&(!l||v.marker.insertLeft)){var x=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);(u||(u=[])).push(new Pl(b,x?null:v.from-s,v.to==null?null:v.to-s))}}return u}function jh(r,s){if(s.full)return null;var l=T(r,s.from.line)&&Le(r,s.from.line).markedSpans,u=T(r,s.to.line)&&Le(r,s.to.line).markedSpans;if(!l&&!u)return null;var f=s.from.ch,v=s.to.ch,b=ee(s.from,s.to)==0,D=uF(l,f,b),x=lF(u,v,b),_=s.text.length==1,N=he(s.text).length+(_?f:0);if(D)for(var H=0;H<D.length;++H){var Q=D[H];if(Q.to==null){var K=Ma(x,Q.marker);K?_&&(Q.to=K.to==null?null:K.to+N):Q.to=f}}if(x)for(var te=0;te<x.length;++te){var le=x[te];if(le.to!=null&&(le.to+=N),le.from==null){var ve=Ma(D,le.marker);ve||(le.from=N,_&&(D||(D=[])).push(le))}else le.from+=N,_&&(D||(D=[])).push(le)}D&&(D=cm(D)),x&&x!=D&&(x=cm(x));var we=[D];if(!_){var Ee=s.text.length-2,De;if(Ee>0&&D)for(var Fe=0;Fe<D.length;++Fe)D[Fe].to==null&&(De||(De=[])).push(new Pl(D[Fe].marker,null,null));for(var Ie=0;Ie<Ee;++Ie)we.push(De);we.push(x)}return we}function cm(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 cF(r,s,l){var u=null;if(r.iter(s.line,l.line+1,function(K){if(K.markedSpans)for(var te=0;te<K.markedSpans.length;++te){var le=K.markedSpans[te].marker;le.readOnly&&(!u||Se(u,le)==-1)&&(u||(u=[])).push(le)}}),!u)return null;for(var f=[{from:s,to:l}],v=0;v<u.length;++v)for(var b=u[v],D=b.find(0),x=0;x<f.length;++x){var _=f[x];if(!(ee(_.to,D.from)<0||ee(_.from,D.to)>0)){var N=[x,1],H=ee(_.from,D.from),Q=ee(_.to,D.to);(H<0||!b.inclusiveLeft&&!H)&&N.push({from:_.from,to:D.from}),(Q>0||!b.inclusiveRight&&!Q)&&N.push({from:D.to,to:_.to}),f.splice.apply(f,N),x+=N.length-3}}return f}function fm(r){var s=r.markedSpans;if(s){for(var l=0;l<s.length;++l)s[l].marker.detachLine(r);r.markedSpans=null}}function hm(r,s){if(s){for(var l=0;l<s.length;++l)s[l].marker.attachLine(r);r.markedSpans=s}}function Nl(r){return r.inclusiveLeft?-1:0}function Il(r){return r.inclusiveRight?1:0}function Vh(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)||Nl(r)-Nl(s);if(v)return-v;var b=ee(u.to,f.to)||Il(r)-Il(s);return b||s.id-r.id}function dm(r,s){var l=si&&r.markedSpans,u;if(l)for(var f=void 0,v=0;v<l.length;++v)f=l[v],f.marker.collapsed&&(s?f.from:f.to)==null&&(!u||Vh(u,f.marker)<0)&&(u=f.marker);return u}function pm(r){return dm(r,!0)}function Rl(r){return dm(r,!1)}function fF(r,s){var l=si&&r.markedSpans,u;if(l)for(var f=0;f<l.length;++f){var v=l[f];v.marker.collapsed&&(v.from==null||v.from<s)&&(v.to==null||v.to>s)&&(!u||Vh(u,v.marker)<0)&&(u=v.marker)}return u}function gm(r,s,l,u,f){var v=Le(r,s),b=si&&v.markedSpans;if(b)for(var D=0;D<b.length;++D){var x=b[D];if(x.marker.collapsed){var _=x.marker.find(0),N=ee(_.from,l)||Nl(x.marker)-Nl(f),H=ee(_.to,u)||Il(x.marker)-Il(f);if(!(N>=0&&H<=0||N<=0&&H>=0)&&(N<=0&&(x.marker.inclusiveRight&&f.inclusiveLeft?ee(_.to,l)>=0:ee(_.to,l)>0)||N>=0&&(x.marker.inclusiveRight&&f.inclusiveLeft?ee(_.from,u)<=0:ee(_.from,u)<0)))return!0}}}function hr(r){for(var s;s=pm(r);)r=s.find(-1,!0).line;return r}function hF(r){for(var s;s=Rl(r);)r=s.find(1,!0).line;return r}function dF(r){for(var s,l;s=Rl(r);)r=s.find(1,!0).line,(l||(l=[])).push(r);return l}function Wh(r,s){var l=Le(r,s),u=hr(l);return l==u?s:at(u)}function vm(r,s){if(s>r.lastLine())return s;var l=Le(r,s),u;if(!Ri(r,l))return s;for(;u=Rl(l);)l=u.find(1,!0).line;return at(l)+1}function Ri(r,s){var l=si&&s.markedSpans;if(l){for(var u=void 0,f=0;f<l.length;++f)if(u=l[f],!!u.marker.collapsed){if(u.from==null)return!0;if(!u.marker.widgetNode&&u.from==0&&u.marker.inclusiveLeft&&Gh(r,s,u))return!0}}}function Gh(r,s,l){if(l.to==null){var u=l.marker.find(1,!0);return Gh(r,u.line,Ma(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)&&Gh(r,s,f))return!0}function oi(r){r=hr(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 D=v.children[b];if(D==l)break;s+=D.height}return s}function Ml(r){if(r.height==0)return 0;for(var s=r.text.length,l,u=r;l=pm(u);){var f=l.find(0,!0);u=f.from.line,s+=f.from.ch-f.to.ch}for(u=r;l=Rl(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 Kh(r){var s=r.display,l=r.doc;s.maxLine=Le(l,l.first),s.maxLineLength=Ml(s.maxLine),s.maxLineChanged=!0,l.iter(function(u){var f=Ml(u);f>s.maxLineLength&&(s.maxLineLength=f,s.maxLine=u)})}var fo=function(r,s,l){this.text=r,hm(this,s),this.height=l?l(this):1};fo.prototype.lineNo=function(){return at(this)},dn(fo);function pF(r,s,l,u){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),fm(r),hm(r,l);var f=u?u(r):1;f!=r.height&&nr(r,f)}function gF(r){r.parent=null,fm(r)}var vF={},mF={};function mm(r,s){if(!r||/^\s*$/.test(r))return null;var l=s.addModeClass?mF:vF;return l[r]||(l[r]=r.replace(/\S+/g,"cm-$&"))}function ym(r,s){var l=R("span",null,null,g?"padding-right: .1px":null),u={pre:R("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};s.measure={};for(var f=0;f<=(s.rest?s.rest.length:0);f++){var v=f?s.rest[f-1]:s.line,b=void 0;u.pos=0,u.addToken=bF,Tl(r.display.measure)&&(b=Dt(v,r.doc.direction))&&(u.addToken=DF(u.addToken,b)),u.map=[];var D=s!=r.display.externalMeasured&&at(v);AF(v,u,rm(r,v,D)),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(Uh(r.display.measure))),f==0?(s.measure.map=u.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(u.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(g){var x=u.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return wt(r,"renderLine",r,s.line,u.pre),u.pre.className&&(u.textClass=$e(u.pre.className,u.textClass||"")),u}function yF(r){var s=w("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function bF(r,s,l,u,f,v,b){if(s){var D=r.splitSpaces?wF(s,r.trailingSpace):s,x=r.cm.state.specialChars,_=!1,N;if(!x.test(s))r.col+=s.length,N=document.createTextNode(D),r.map.push(r.pos,r.pos+s.length,N),d&&p<9&&(_=!0),r.pos+=s.length;else{N=document.createDocumentFragment();for(var H=0;;){x.lastIndex=H;var Q=x.exec(s),K=Q?Q.index-H:s.length-H;if(K){var te=document.createTextNode(D.slice(H,H+K));d&&p<9?N.appendChild(w("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 le=void 0;if(Q[0]==" "){var ve=r.cm.options.tabSize,we=ve-r.col%ve;le=N.appendChild(w("span",ye(we),"cm-tab")),le.setAttribute("role","presentation"),le.setAttribute("cm-text"," "),r.col+=we}else Q[0]=="\r"||Q[0]==`
|
|
21
|
+
`?(le=N.appendChild(w("span",Q[0]=="\r"?"␍":"","cm-invalidchar")),le.setAttribute("cm-text",Q[0]),r.col+=1):(le=r.cm.options.specialCharPlaceholder(Q[0]),le.setAttribute("cm-text",Q[0]),d&&p<9?N.appendChild(w("span",[le])):N.appendChild(le),r.col+=1);r.map.push(r.pos,r.pos+1,le),r.pos++}}if(r.trailingSpace=D.charCodeAt(s.length-1)==32,l||u||f||_||v||b){var Ee=l||"";u&&(Ee+=u),f&&(Ee+=f);var De=w("span",[N],Ee,v);if(b)for(var Fe in b)b.hasOwnProperty(Fe)&&Fe!="style"&&Fe!="class"&&De.setAttribute(Fe,b[Fe]);return r.content.appendChild(De)}r.content.appendChild(N)}}function wF(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 DF(r,s){return function(l,u,f,v,b,D,x){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,D,x);r(l,u.slice(0,H.to-_),f,v,null,D,x),v=null,u=u.slice(H.to-_),_=H.to}}}function bm(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 AF(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]),mm(l[b+1],s.cm.options));return}for(var D=f.length,x=0,_=1,N="",H,Q,K=0,te,le,ve,we,Ee;;){if(K==x){te=le=ve=Q="",Ee=null,we=null,K=1/0;for(var De=[],Fe=void 0,Ie=0;Ie<u.length;++Ie){var Oe=u[Ie],We=Oe.marker;if(We.type=="bookmark"&&Oe.from==x&&We.widgetNode)De.push(We);else if(Oe.from<=x&&(Oe.to==null||Oe.to>x||We.collapsed&&Oe.to==x&&Oe.from==x)){if(Oe.to!=null&&Oe.to!=x&&K>Oe.to&&(K=Oe.to,le=""),We.className&&(te+=" "+We.className),We.css&&(Q=(Q?Q+";":"")+We.css),We.startStyle&&Oe.from==x&&(ve+=" "+We.startStyle),We.endStyle&&Oe.to==K&&(Fe||(Fe=[])).push(We.endStyle,Oe.to),We.title&&((Ee||(Ee={})).title=We.title),We.attributes)for(var mt in We.attributes)(Ee||(Ee={}))[mt]=We.attributes[mt];We.collapsed&&(!we||Vh(we.marker,We)<0)&&(we=Oe)}else Oe.from>x&&K>Oe.from&&(K=Oe.from)}if(Fe)for(var Qt=0;Qt<Fe.length;Qt+=2)Fe[Qt+1]==K&&(le+=" "+Fe[Qt]);if(!we||we.from==x)for(var Ft=0;Ft<De.length;++Ft)bm(s,0,De[Ft]);if(we&&(we.from||0)==x){if(bm(s,(we.to==null?D+1:we.to)-x,we.marker,we.from==null),we.to==null)return;we.to==x&&(we=!1)}}if(x>=D)break;for(var Nn=Math.min(D,K);;){if(N){var An=x+N.length;if(!we){var It=An>Nn?N.slice(0,Nn-x):N;s.addToken(s,It,H?H+te:te,ve,x+It.length==K?le:"",Q,Ee)}if(An>=Nn){N=N.slice(Nn-x),x=Nn;break}x=An,ve=""}N=f.slice(v,v=l[_++]),H=mm(l[_++],s.cm.options)}}}function wm(r,s,l){this.line=s,this.rest=dF(s),this.size=this.rest?at(he(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ri(r,s)}function zl(r,s,l){for(var u=[],f,v=s;v<l;v=f){var b=new wm(r.doc,Le(r.doc,v),v);f=v+b.size,u.push(b)}return u}var ho=null;function xF(r){ho?ho.ops.push(r):r.ownsGroup=ho={ops:[r],delayedCallbacks:[]}}function EF(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 CF(r,s){var l=r.ownsGroup;if(l)try{EF(l)}finally{ho=null,s(l)}}var za=null;function Wt(r,s){var l=Ba(r,s);if(l.length){var u=Array.prototype.slice.call(arguments,2),f;ho?f=ho.delayedCallbacks:za?f=za:(f=za=[],setTimeout(_F,0));for(var v=function(D){f.push(function(){return l[D].apply(null,u)})},b=0;b<l.length;++b)v(b)}}function _F(){var r=za;za=null;for(var s=0;s<r.length;++s)r[s]()}function Dm(r,s,l,u){for(var f=0;f<s.changes.length;f++){var v=s.changes[f];v=="text"?FF(r,s):v=="gutter"?xm(r,s,l,u):v=="class"?Qh(r,s):v=="widget"&&$F(r,s,u)}s.changes=null}function Ua(r){return r.node==r.text&&(r.node=w("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 SF(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=Ua(s);s.background=u.insertBefore(w("div",null,l),u.firstChild),r.display.input.setUneditable(s.background)}}function Am(r,s){var l=r.display.externalMeasured;return l&&l.line==s.line?(r.display.externalMeasured=null,s.measure=l.measure,l.built):ym(r,s)}function FF(r,s){var l=s.text.className,u=Am(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,Qh(r,s)):l&&(s.text.className=l)}function Qh(r,s){SF(r,s),s.line.wrapClass?Ua(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 xm(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=Ua(s);s.gutterBackground=w("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=Ua(s),D=s.gutter=w("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(D.setAttribute("aria-hidden","true"),r.display.input.setUneditable(D),b.insertBefore(D,s.text),s.line.gutterClass&&(D.className+=" "+s.line.gutterClass),r.options.lineNumbers&&(!v||!v["CodeMirror-linenumbers"])&&(s.lineNumber=D.appendChild(w("div",q(r.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),v)for(var x=0;x<r.display.gutterSpecs.length;++x){var _=r.display.gutterSpecs[x].className,N=v.hasOwnProperty(_)&&v[_];N&&D.appendChild(w("div",[N],"CodeMirror-gutter-elt","left: "+u.gutterLeft[_]+"px; width: "+u.gutterWidth[_]+"px"))}}}function $F(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);Em(r,s,l)}function TF(r,s,l,u){var f=Am(r,s);return s.text=s.node=f.pre,f.bgClass&&(s.bgClass=f.bgClass),f.textClass&&(s.textClass=f.textClass),Qh(r,s),xm(r,s,l,u),Em(r,s,u),s.node}function Em(r,s,l){if(Cm(r,s.line,s,l,!0),s.rest)for(var u=0;u<s.rest.length;u++)Cm(r,s.rest[u],s,l,!1)}function Cm(r,s,l,u,f){if(s.widgets)for(var v=Ua(l),b=0,D=s.widgets;b<D.length;++b){var x=D[b],_=w("div",[x.node],"CodeMirror-linewidget"+(x.className?" "+x.className:""));x.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),kF(x,_,l,u),r.display.input.setUneditable(_),f&&x.above?v.insertBefore(_,l.gutter||l.text):v.appendChild(_),Wt(x,"redraw")}}function kF(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 Ha(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,w("div",[r.node],null,l))}return r.height=r.node.parentNode.offsetHeight}function ai(r,s){for(var l=bn(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 Ul(r){return r.lineSpace.offsetTop}function Xh(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function _m(r){if(r.cachedPaddingH)return r.cachedPaddingH;var s=F(r.measure,w("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 Pr(r){return vt-r.display.nativeBarWidth}function ms(r){return r.display.scroller.clientWidth-Pr(r)-r.display.barWidth}function Yh(r){return r.display.scroller.clientHeight-Pr(r)-r.display.barHeight}function LF(r,s,l){var u=r.options.lineWrapping,f=u&&ms(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(),D=0;D<b.length-1;D++){var x=b[D],_=b[D+1];Math.abs(x.bottom-_.bottom)>2&&v.push((x.bottom+_.top)/2-l.top)}}v.push(l.bottom-l.top)}}function Sm(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(at(r.rest[f])>l)return{map:r.measure.maps[f],cache:r.measure.caches[f],before:!0}}}function BF(r,s){s=hr(s);var l=at(s),u=r.display.externalMeasured=new wm(r.doc,s,l);u.lineN=l;var f=u.built=ym(r,u);return u.text=f.pre,F(r.display.lineMeasure,f.pre),u}function Fm(r,s,l,u){return Nr(r,po(r,s),l,u)}function Zh(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[ws(r,s)];var l=r.display.externalMeasured;if(l&&s>=l.lineN&&s<l.lineN+l.size)return l}function po(r,s){var l=at(s),u=Zh(r,l);u&&!u.text?u=null:u&&u.changes&&(Dm(r,u,l,rd(r)),r.curOp.forceUpdate=!0),u||(u=BF(r,s));var f=Sm(u,s,l);return{line:s,view:u,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Nr(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||(LF(r,s.view,s.rect),s.hasHeights=!0),b=PF(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 $m={left:0,right:0,top:0,bottom:0};function Tm(r,s,l){for(var u,f,v,b,D,x,_=0;_<r.length;_+=3)if(D=r[_],x=r[_+1],s<D?(f=0,v=1,b="left"):s<x?(f=s-D,v=f+1):(_==r.length-3||s==x&&r[_+3]>s)&&(v=x-D,f=v-1,s>=x&&(b="right")),f!=null){if(u=r[_+2],D==x&&l==(u.insertLeft?"left":"right")&&(b=l),l=="left"&&f==0)for(;_&&r[_-2]==r[_-3]&&r[_-1].insertLeft;)u=r[(_-=3)+2],b="left";if(l=="right"&&f==x-D)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:D,coverEnd:x}}function OF(r,s){var l=$m;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 PF(r,s,l,u){var f=Tm(s.map,l,u),v=f.node,b=f.start,D=f.end,x=f.collapse,_;if(v.nodeType==3){for(var N=0;N<4;N++){for(;b&&et(s.line.text.charAt(f.coverStart+b));)--b;for(;f.coverStart+D<f.coverEnd&&et(s.line.text.charAt(f.coverStart+D));)++D;if(d&&p<9&&b==0&&D==f.coverEnd-f.coverStart?_=v.parentNode.getBoundingClientRect():_=OF(V(v,b,D).getClientRects(),u),_.left||_.right||b==0)break;D=b,b=b-1,x="right"}d&&p<11&&(_=NF(r.display.measure,_))}else{b>0&&(x=u="right");var H;r.options.lineWrapping&&(H=v.getClientRects()).length>1?_=H[u=="right"?H.length-1:0]:_=v.getBoundingClientRect()}if(d&&p<9&&!b&&(!_||!_.left&&!_.right)){var Q=v.parentNode.getClientRects()[0];Q?_={left:Q.left,right:Q.left+vo(r.display),top:Q.top,bottom:Q.bottom}:_=$m}for(var K=_.top-s.rect.top,te=_.bottom-s.rect.top,le=(K+te)/2,ve=s.view.measure.heights,we=0;we<ve.length-1&&!(le<ve[we]);we++);var Ee=we?ve[we-1]:0,De=ve[we],Fe={left:(x=="right"?_.right:_.left)-s.rect.left,right:(x=="left"?_.left:_.right)-s.rect.left,top:Ee,bottom:De};return!_.left&&!_.right&&(Fe.bogus=!0),r.options.singleCursorHeightPerLine||(Fe.rtop=K,Fe.rbottom=te),Fe}function NF(r,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!kl(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 km(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 Lm(r){r.display.externalMeasure=null,P(r.display.lineMeasure);for(var s=0;s<r.display.view.length;s++)km(r.display.view[s])}function qa(r){Lm(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function Bm(r){return m&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function Om(r){return m&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function Jh(r){var s=hr(r),l=s.widgets,u=0;if(l)for(var f=0;f<l.length;++f)l[f].above&&(u+=Ha(l[f]));return u}function Hl(r,s,l,u,f){if(!f){var v=Jh(s);l.top+=v,l.bottom+=v}if(u=="line")return l;u||(u="local");var b=oi(s);if(u=="local"?b+=Ul(r.display):b-=r.display.viewOffset,u=="page"||u=="window"){var D=r.display.lineSpace.getBoundingClientRect();b+=D.top+(u=="window"?0:Om(ze(r)));var x=D.left+(u=="window"?0:Bm(ze(r)));l.left+=x,l.right+=x}return l.top+=b,l.bottom+=b,l}function Pm(r,s,l){if(l=="div")return s;var u=s.left,f=s.top;if(l=="page")u-=Bm(ze(r)),f-=Om(ze(r));else if(l=="local"||!l){var v=r.display.sizer.getBoundingClientRect();u+=v.left,f+=v.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:u-b.left,top:f-b.top}}function ql(r,s,l,u,f){return u||(u=Le(r.doc,s.line)),Hl(r,u,Fm(r,u,s.ch,f),l)}function dr(r,s,l,u,f,v){u=u||Le(r.doc,s.line),f||(f=po(r,u));function b(te,le){var ve=Nr(r,f,te,le?"right":"left",v);return le?ve.left=ve.right:ve.right=ve.left,Hl(r,u,ve,l)}var D=Dt(u,r.doc.direction),x=s.ch,_=s.sticky;if(x>=u.text.length?(x=u.text.length,_="before"):x<=0&&(x=0,_="after"),!D)return b(_=="before"?x-1:x,_=="before");function N(te,le,ve){var we=D[le],Ee=we.level==1;return b(ve?te-1:te,Ee!=ve)}var H=tn(D,x,_),Q=Vn,K=N(x,H,_=="before");return Q!=null&&(K.other=N(x,Q,_!="before")),K}function Nm(r,s){var l=0;s=He(r.doc,s),r.options.lineWrapping||(l=vo(r.display)*s.ch);var u=Le(r.doc,s.line),f=oi(u)+Ul(r.display);return{left:l,right:l,top:f,bottom:f+u.height}}function ed(r,s,l,u,f){var v=W(r,s,l);return v.xRel=f,u&&(v.outside=u),v}function td(r,s,l){var u=r.doc;if(l+=r.display.viewOffset,l<0)return ed(u.first,0,null,-1,-1);var f=Br(u,l),v=u.first+u.size-1;if(f>v)return ed(u.first+u.size-1,Le(u,v).text.length,null,1,1);s<0&&(s=0);for(var b=Le(u,f);;){var D=IF(r,b,f,s,l),x=fF(b,D.ch+(D.xRel>0||D.outside>0?1:0));if(!x)return D;var _=x.find(1);if(_.line==f)return _;b=Le(u,f=_.line)}}function Im(r,s,l,u){u-=Jh(s);var f=s.text.length,v=Ze(function(b){return Nr(r,l,b-1).bottom<=u},f,0);return f=Ze(function(b){return Nr(r,l,b).top>u},v,f),{begin:v,end:f}}function Rm(r,s,l,u){l||(l=po(r,s));var f=Hl(r,s,Nr(r,l,u),"line").top;return Im(r,s,l,f)}function nd(r,s,l,u){return r.bottom<=l?!1:r.top>l?!0:(u?r.left:r.right)>s}function IF(r,s,l,u,f){f-=oi(s);var v=po(r,s),b=Jh(s),D=0,x=s.text.length,_=!0,N=Dt(s,r.doc.direction);if(N){var H=(r.options.lineWrapping?MF:RF)(r,s,l,v,N,u,f);_=H.level!=1,D=_?H.from:H.to-1,x=_?H.to:H.from-1}var Q=null,K=null,te=Ze(function(Ie){var Oe=Nr(r,v,Ie);return Oe.top+=b,Oe.bottom+=b,nd(Oe,u,f,!1)?(Oe.top<=f&&Oe.left<=u&&(Q=Ie,K=Oe),!0):!1},D,x),le,ve,we=!1;if(K){var Ee=u-K.left<K.right-u,De=Ee==_;te=Q+(De?0:1),ve=De?"after":"before",le=Ee?K.left:K.right}else{!_&&(te==x||te==D)&&te++,ve=te==0?"after":te==s.text.length?"before":Nr(r,v,te-(_?1:0)).bottom+b<=f==_?"after":"before";var Fe=dr(r,W(l,te,ve),"line",s,v);le=Fe.left,we=f<Fe.top?-1:f>=Fe.bottom?1:0}return te=ft(s.text,te,1),ed(l,te,ve,we,u-le)}function RF(r,s,l,u,f,v,b){var D=Ze(function(H){var Q=f[H],K=Q.level!=1;return nd(dr(r,W(l,K?Q.to:Q.from,K?"before":"after"),"line",s,u),v,b,!0)},0,f.length-1),x=f[D];if(D>0){var _=x.level!=1,N=dr(r,W(l,_?x.from:x.to,_?"after":"before"),"line",s,u);nd(N,v,b,!0)&&N.top>b&&(x=f[D-1])}return x}function MF(r,s,l,u,f,v,b){var D=Im(r,s,u,b),x=D.begin,_=D.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<=x)){var te=K.level!=1,le=Nr(r,u,te?Math.min(_,K.to)-1:Math.max(x,K.from)).right,ve=le<v?v-le+1e9:le-v;(!N||H>ve)&&(N=K,H=ve)}}return N||(N=f[f.length-1]),N.from<x&&(N={from:x,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var ys;function go(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(ys==null){ys=w("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)ys.appendChild(document.createTextNode("x")),ys.appendChild(w("br"));ys.appendChild(document.createTextNode("x"))}F(r.measure,ys);var l=ys.offsetHeight/50;return l>3&&(r.cachedTextHeight=l),P(r.measure),l||1}function vo(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var s=w("span","xxxxxxxxxx"),l=w("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 rd(r){for(var s=r.display,l={},u={},f=s.gutters.clientLeft,v=s.gutters.firstChild,b=0;v;v=v.nextSibling,++b){var D=r.display.gutterSpecs[b].className;l[D]=v.offsetLeft+v.clientLeft+f,u[D]=v.clientWidth}return{fixedPos:id(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:l,gutterWidth:u,wrapperWidth:s.wrapper.clientWidth}}function id(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Mm(r){var s=go(r.display),l=r.options.lineWrapping,u=l&&Math.max(5,r.display.scroller.clientWidth/vo(r.display)-3);return function(f){if(Ri(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 sd(r){var s=r.doc,l=Mm(r);s.iter(function(u){var f=l(u);f!=u.height&&nr(u,f)})}function bs(r,s,l,u){var f=r.display;if(!l&&bn(s).getAttribute("cm-not-content")=="true")return null;var v,b,D=f.lineSpace.getBoundingClientRect();try{v=s.clientX-D.left,b=s.clientY-D.top}catch{return null}var x=td(r,v,b),_;if(u&&x.xRel>0&&(_=Le(r.doc,x.line).text).length==x.ch){var N=J(_,_.length,r.options.tabSize)-_.length;x=W(x.line,Math.max(0,Math.round((v-_m(r.display).left)/vo(r.display))-N))}return x}function ws(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 wn(r,s,l,u){s==null&&(s=r.doc.first),l==null&&(l=r.doc.first+r.doc.size),u||(u=0);var f=r.display;if(u&&l<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>s)&&(f.updateLineNumbers=s),r.curOp.viewChanged=!0,s>=f.viewTo)si&&Wh(r.doc,s)<f.viewTo&&zi(r);else if(l<=f.viewFrom)si&&vm(r.doc,l+u)>f.viewFrom?zi(r):(f.viewFrom+=u,f.viewTo+=u);else if(s<=f.viewFrom&&l>=f.viewTo)zi(r);else if(s<=f.viewFrom){var v=jl(r,l,l+u,1);v?(f.view=f.view.slice(v.index),f.viewFrom=v.lineN,f.viewTo+=u):zi(r)}else if(l>=f.viewTo){var b=jl(r,s,s,-1);b?(f.view=f.view.slice(0,b.index),f.viewTo=b.lineN):zi(r)}else{var D=jl(r,s,s,-1),x=jl(r,l,l+u,1);D&&x?(f.view=f.view.slice(0,D.index).concat(zl(r,D.lineN,x.lineN)).concat(f.view.slice(x.index)),f.viewTo+=u):zi(r)}var _=f.externalMeasured;_&&(l<_.lineN?_.lineN+=u:s<_.lineN+_.size&&(f.externalMeasured=null))}function Mi(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[ws(r,s)];if(v.node!=null){var b=v.changes||(v.changes=[]);Se(b,l)==-1&&b.push(l)}}}function zi(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function jl(r,s,l,u){var f=ws(r,s),v,b=r.display.view;if(!si||l==r.doc.first+r.doc.size)return{index:f,lineN:l};for(var D=r.display.viewFrom,x=0;x<f;x++)D+=b[x].size;if(D!=s){if(u>0){if(f==b.length-1)return null;v=D+b[f].size-s,f++}else v=D-s;s+=v,l+=v}for(;Wh(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 zF(r,s,l){var u=r.display,f=u.view;f.length==0||s>=u.viewTo||l<=u.viewFrom?(u.view=zl(r,s,l),u.viewFrom=s):(u.viewFrom>s?u.view=zl(r,s,u.viewFrom).concat(u.view):u.viewFrom<s&&(u.view=u.view.slice(ws(r,s))),u.viewFrom=s,u.viewTo<l?u.view=u.view.concat(zl(r,u.viewTo,l)):u.viewTo>l&&(u.view=u.view.slice(0,ws(r,l)))),u.viewTo=l}function zm(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 ja(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Um(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 D=0;D<l.sel.ranges.length;D++)if(!(!s&&D==l.sel.primIndex)){var x=l.sel.ranges[D];if(!(x.from().line>=r.display.viewTo||x.to().line<r.display.viewFrom)){var _=x.empty();if(b){var N=b(r,x);N&&od(r,N,f)}else(_||r.options.showCursorWhenSelecting)&&od(r,x.head,f);_||UF(r,x,v)}}return u}function od(r,s,l){var u=dr(r,s,"div",null,null,!r.options.singleCursorHeightPerLine),f=l.appendChild(w("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=ql(r,s,"div",null,null),b=v.right-v.left;f.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(u.other){var D=l.appendChild(w("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));D.style.display="",D.style.left=u.other.left+"px",D.style.top=u.other.top+"px",D.style.height=(u.other.bottom-u.other.top)*.85+"px"}}function Vl(r,s){return r.top-s.top||r.left-s.left}function UF(r,s,l){var u=r.display,f=r.doc,v=document.createDocumentFragment(),b=_m(r.display),D=b.left,x=Math.max(u.sizerWidth,ms(r)-u.sizer.offsetLeft)-b.right,_=f.direction=="ltr";function N(De,Fe,Ie,Oe){Fe<0&&(Fe=0),Fe=Math.round(Fe),Oe=Math.round(Oe),v.appendChild(w("div",null,"CodeMirror-selected","position: absolute; left: "+De+`px;
|
|
22
|
+
top: `+Fe+"px; width: "+(Ie??x-De)+`px;
|
|
23
|
+
height: `+(Oe-Fe)+"px"))}function H(De,Fe,Ie){var Oe=Le(f,De),We=Oe.text.length,mt,Qt;function Ft(It,xn){return ql(r,W(De,It),"div",Oe,xn)}function Nn(It,xn,nn){var jt=Rm(r,Oe,null,It),Rt=xn=="ltr"==(nn=="after")?"left":"right",Lt=nn=="after"?jt.begin:jt.end-(/\s/.test(Oe.text.charAt(jt.end-1))?2:1);return Ft(Lt,Rt)[Rt]}var An=Dt(Oe,f.direction);return Bn(An,Fe||0,Ie??We,function(It,xn,nn,jt){var Rt=nn=="ltr",Lt=Ft(It,Rt?"left":"right"),En=Ft(xn-1,Rt?"right":"left"),$o=Fe==null&&It==0,Wi=Ie==null&&xn==We,ln=jt==0,Ir=!An||jt==An.length-1;if(En.top-Lt.top<=3){var Xt=(_?$o:Wi)&&ln,Bd=(_?Wi:$o)&&Ir,ci=Xt?D:(Rt?Lt:En).left,Cs=Bd?x:(Rt?En:Lt).right;N(ci,Lt.top,Cs-ci,Lt.bottom)}else{var _s,gn,To,Od;Rt?(_s=_&&$o&&ln?D:Lt.left,gn=_?x:Nn(It,nn,"before"),To=_?D:Nn(xn,nn,"after"),Od=_&&Wi&&Ir?x:En.right):(_s=_?Nn(It,nn,"before"):D,gn=!_&&$o&&ln?x:Lt.right,To=!_&&Wi&&Ir?D:En.left,Od=_?Nn(xn,nn,"after"):x),N(_s,Lt.top,gn-_s,Lt.bottom),Lt.bottom<En.top&&N(D,Lt.bottom,null,En.top),N(To,En.top,Od-To,En.bottom)}(!mt||Vl(Lt,mt)<0)&&(mt=Lt),Vl(En,mt)<0&&(mt=En),(!Qt||Vl(Lt,Qt)<0)&&(Qt=Lt),Vl(En,Qt)<0&&(Qt=En)}),{start:mt,end:Qt}}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),le=Le(f,K.line),ve=hr(te)==hr(le),we=H(Q.line,Q.ch,ve?te.text.length+1:null).end,Ee=H(K.line,ve?0:null,K.ch).start;ve&&(we.top<Ee.top-2?(N(we.right,we.top,null,we.bottom),N(D,Ee.top,Ee.left,Ee.bottom)):N(we.right,we.top,Ee.left-we.right,we.bottom)),we.bottom<Ee.top&&N(D,we.bottom,null,Ee.top)}l.appendChild(v)}function ad(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()||mo(r),s.cursorDiv.style.visibility=(l=!l)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function Hm(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||ld(r))}function ud(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&mo(r))},100)}function ld(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,pe(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()),ad(r))}function mo(r,s){r.state.delayingBlurEvent||(r.state.focused&&(wt(r,"blur",r,s),r.state.focused=!1,z(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function Wl(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 D=s.view[b],x=r.options.lineWrapping,_=void 0,N=0;if(!D.hidden){if(f+=D.line.height,d&&p<8){var H=D.node.offsetTop+D.node.offsetHeight;_=H-l,l=H}else{var Q=D.node.getBoundingClientRect();_=Q.bottom-Q.top,!x&&D.text.firstChild&&(N=D.text.firstChild.getBoundingClientRect().right-Q.left-1)}var K=D.line.height-_;if((K>.005||K<-.005)&&(f<u&&(v-=K),nr(D.line,_),qm(D.line),D.rest))for(var te=0;te<D.rest.length;te++)qm(D.rest[te]);if(N>r.display.sizerWidth){var le=Math.ceil(N/vo(r.display));le>r.display.maxLineLength&&(r.display.maxLineLength=le,r.display.maxLine=D.line,r.display.maxLineChanged=!0)}}}Math.abs(v)>2&&(s.scroller.scrollTop+=v)}function qm(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 Gl(r,s,l){var u=l&&l.top!=null?Math.max(0,l.top):r.scroller.scrollTop;u=Math.floor(u-Ul(r));var f=l&&l.bottom!=null?l.bottom:u+r.wrapper.clientHeight,v=Br(s,u),b=Br(s,f);if(l&&l.ensure){var D=l.ensure.from.line,x=l.ensure.to.line;D<v?(v=D,b=Br(s,oi(Le(s,D))+r.wrapper.clientHeight)):Math.min(x,s.lastLine())>=b&&(v=Br(s,oi(Le(s,x))-r.wrapper.clientHeight),b=x)}return{from:v,to:Math.max(b,v+1)}}function HF(r,s){if(!Tt(r,"scrollCursorIntoView")){var l=r.display,u=l.sizer.getBoundingClientRect(),f=null,v=l.wrapper.ownerDocument;if(s.top+u.top<0?f=!0:s.bottom+u.top>(v.defaultView.innerHeight||v.documentElement.clientHeight)&&(f=!1),f!=null&&!C){var b=w("div","",null,`position: absolute;
|
|
24
|
+
top: `+(s.top-l.viewOffset-Ul(r.display))+`px;
|
|
25
|
+
height: `+(s.bottom-s.top+Pr(r)+l.barHeight)+`px;
|
|
26
|
+
left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(f),r.display.lineSpace.removeChild(b)}}}function qF(r,s,l,u){u==null&&(u=0);var f;!r.options.lineWrapping&&s==l&&(l=s.sticky=="before"?W(s.line,s.ch+1,"before"):s,s=s.ch?W(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var v=0;v<5;v++){var b=!1,D=dr(r,s),x=!l||l==s?D:dr(r,l);f={left:Math.min(D.left,x.left),top:Math.min(D.top,x.top)-u,right:Math.max(D.left,x.left),bottom:Math.max(D.bottom,x.bottom)+u};var _=cd(r,f),N=r.doc.scrollTop,H=r.doc.scrollLeft;if(_.scrollTop!=null&&(Wa(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 jF(r,s){var l=cd(r,s);l.scrollTop!=null&&Wa(r,l.scrollTop),l.scrollLeft!=null&&Ds(r,l.scrollLeft)}function cd(r,s){var l=r.display,u=go(r.display);s.top<0&&(s.top=0);var f=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:l.scroller.scrollTop,v=Yh(r),b={};s.bottom-s.top>v&&(s.bottom=s.top+v);var D=r.doc.height+Xh(l),x=s.top<u,_=s.bottom>D-u;if(s.top<f)b.scrollTop=x?0:s.top;else if(s.bottom>f+v){var N=Math.min(s.top,(_?D: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=ms(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 fd(r,s){s!=null&&(Kl(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function yo(r){Kl(r);var s=r.getCursor();r.curOp.scrollToPos={from:s,to:s,margin:r.options.cursorScrollMargin}}function Va(r,s,l){(s!=null||l!=null)&&Kl(r),s!=null&&(r.curOp.scrollLeft=s),l!=null&&(r.curOp.scrollTop=l)}function VF(r,s){Kl(r),r.curOp.scrollToPos=s}function Kl(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var l=Nm(r,s.from),u=Nm(r,s.to);jm(r,l,u,s.margin)}}function jm(r,s,l,u){var f=cd(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});Va(r,f.scrollLeft,f.scrollTop)}function Wa(r,s){Math.abs(r.doc.scrollTop-s)<2||(o||dd(r,{top:s}),Vm(r,s,!0),o&&dd(r),Qa(r,100))}function Vm(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,Xm(r),r.display.scroller.scrollLeft!=s&&(r.display.scroller.scrollLeft=s),r.display.scrollbars.setScrollLeft(s))}function Ga(r){var s=r.display,l=s.gutters.offsetWidth,u=Math.round(r.doc.height+Xh(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+Pr(r)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:l}}var As=function(r,s,l){this.cm=l;var u=this.vert=w("div",[w("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=w("div",[w("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")};As.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}},As.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},As.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},As.prototype.zeroWidthHack=function(){var r=k&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new fe,this.disableVert=new fe},As.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)},As.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var Ka=function(){};Ka.prototype.update=function(){return{bottom:0,right:0}},Ka.prototype.setScrollLeft=function(){},Ka.prototype.setScrollTop=function(){},Ka.prototype.clear=function(){};function bo(r,s){s||(s=Ga(r));var l=r.display.barWidth,u=r.display.barHeight;Wm(r,s);for(var f=0;f<4&&l!=r.display.barWidth||u!=r.display.barHeight;f++)l!=r.display.barWidth&&r.options.lineWrapping&&Wl(r),Wm(r,Ga(r)),l=r.display.barWidth,u=r.display.barHeight}function Wm(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 Gm={native:As,null:Ka};function Km(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&z(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new Gm[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):Wa(r,s)},r),r.display.scrollbars.addClass&&pe(r.display.wrapper,r.display.scrollbars.addClass)}var WF=0;function xs(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},xF(r.curOp)}function Es(r){var s=r.curOp;s&&CF(s,function(l){for(var u=0;u<l.ops.length;u++)l.ops[u].cm.curOp=null;GF(l)})}function GF(r){for(var s=r.ops,l=0;l<s.length;l++)KF(s[l]);for(var u=0;u<s.length;u++)QF(s[u]);for(var f=0;f<s.length;f++)XF(s[f]);for(var v=0;v<s.length;v++)YF(s[v]);for(var b=0;b<s.length;b++)ZF(s[b])}function KF(r){var s=r.cm,l=s.display;e2(s),r.updateMaxLine&&Kh(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 Ql(s,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function QF(r){r.updatedDisplay=r.mustUpdate&&hd(r.cm,r.update)}function XF(r){var s=r.cm,l=s.display;r.updatedDisplay&&Wl(s),r.barMeasure=Ga(s),l.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=Fm(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+Pr(s)+s.display.barWidth),r.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+r.adjustWidthTo-ms(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=l.input.prepareSelection())}function YF(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(ze(s));r.preparedSelection&&s.display.input.showSelection(r.preparedSelection,l),(r.updatedDisplay||r.startHeight!=s.doc.height)&&bo(s,r.barMeasure),r.updatedDisplay&&gd(s,r.barMeasure),r.selectionChanged&&ad(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),l&&Hm(r.cm)}function ZF(r){var s=r.cm,l=s.display,u=s.doc;if(r.updatedDisplay&&Qm(s,r.update),l.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),r.scrollTop!=null&&Vm(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&Ds(s,r.scrollLeft,!0,!0),r.scrollToPos){var f=qF(s,He(u,r.scrollToPos.from),He(u,r.scrollToPos.to),r.scrollToPos.margin);HF(s,f)}var v=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(v)for(var D=0;D<v.length;++D)v[D].lines.length||wt(v[D],"hide");if(b)for(var x=0;x<b.length;++x)b[x].lines.length&&wt(b[x],"unhide");l.wrapper.offsetHeight&&(u.scrollTop=s.display.scroller.scrollTop),r.changeObjs&&wt(s,"changes",s,r.changeObjs),r.update&&r.update.finish()}function Pn(r,s){if(r.curOp)return s();xs(r);try{return s()}finally{Es(r)}}function Gt(r,s){return function(){if(r.curOp)return s.apply(r,arguments);xs(r);try{return s.apply(r,arguments)}finally{Es(r)}}}function pn(r){return function(){if(this.curOp)return r.apply(this,arguments);xs(this);try{return r.apply(this,arguments)}finally{Es(this)}}}function Kt(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);xs(s);try{return r.apply(this,arguments)}finally{Es(s)}}}function Qa(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,ie(JF,r))}function JF(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var l=+new Date+r.options.workTime,u=Ra(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,D=v.text.length>r.options.maxHighlightLength?ri(s.mode,u.state):null,x=nm(r,v,u,!0);D&&(u.state=D),v.styles=x.styles;var _=v.styleClasses,N=x.classes;N?v.styleClasses=N:_&&(v.styleClasses=null);for(var H=!b||b.length!=v.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),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&&Hh(r,v.text,u),v.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>l)return Qa(r,r.options.workDelay),!0}),s.highlightFrontier=u.line,s.modeFrontier=Math.max(s.modeFrontier,u.line),f.length&&Pn(r,function(){for(var v=0;v<f.length;v++)Mi(r,f[v],"text")})}}var Ql=function(r,s,l){var u=r.display;this.viewport=s,this.visible=Gl(u,r.doc,s),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=ms(r),this.force=l,this.dims=rd(r),this.events=[]};Ql.prototype.signal=function(r,s){hn(r,s)&&this.events.push(arguments)},Ql.prototype.finish=function(){for(var r=0;r<this.events.length;r++)wt.apply(null,this.events[r])};function e2(r){var s=r.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=Pr(r)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=Pr(r)+"px",s.scrollbarsClipped=!0)}function t2(r){if(r.hasFocus())return null;var s=ae(ze(r));if(!s||!Z(r.display.lineDiv,s))return null;var l={activeElt:s};if(window.getSelection){var u=Ke(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 n2(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 hd(r,s){var l=r.display,u=r.doc;if(s.editorIsHidden)return zi(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&&zm(r)==0)return!1;Ym(r)&&(zi(r),s.dims=rd(r));var f=u.first+u.size,v=Math.max(s.visible.from-r.options.viewportMargin,u.first),b=Math.min(f,s.visible.to+r.options.viewportMargin);l.viewFrom<v&&v-l.viewFrom<20&&(v=Math.max(u.first,l.viewFrom)),l.viewTo>b&&l.viewTo-b<20&&(b=Math.min(f,l.viewTo)),si&&(v=Wh(r.doc,v),b=vm(r.doc,b));var D=v!=l.viewFrom||b!=l.viewTo||l.lastWrapHeight!=s.wrapperHeight||l.lastWrapWidth!=s.wrapperWidth;zF(r,v,b),l.viewOffset=oi(Le(r.doc,l.viewFrom)),r.display.mover.style.top=l.viewOffset+"px";var x=zm(r);if(!D&&x==0&&!s.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=t2(r);return x>4&&(l.lineDiv.style.display="none"),r2(r,l.updateLineNumbers,s.dims),x>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,n2(_),P(l.cursorDiv),P(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,D&&(l.lastWrapHeight=s.wrapperHeight,l.lastWrapWidth=s.wrapperWidth,Qa(r,400)),l.updateLineNumbers=null,!0}function Qm(r,s){for(var l=s.viewport,u=!0;;u=!1){if(!u||!r.options.lineWrapping||s.oldDisplayWidth==ms(r)){if(l&&l.top!=null&&(l={top:Math.min(r.doc.height+Xh(r.display)-Yh(r),l.top)}),s.visible=Gl(r.display,r.doc,l),s.visible.from>=r.display.viewFrom&&s.visible.to<=r.display.viewTo)break}else u&&(s.visible=Gl(r.display,r.doc,l));if(!hd(r,s))break;Wl(r);var f=Ga(r);ja(r),bo(r,f),gd(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 dd(r,s){var l=new Ql(r,s);if(hd(r,l)){Wl(r),Qm(r,l);var u=Ga(r);ja(r),bo(r,u),gd(r,u),l.finish()}}function r2(r,s,l){var u=r.display,f=r.options.lineNumbers,v=u.lineDiv,b=v.firstChild;function D(te){var le=te.nextSibling;return g&&k&&r.display.currentWheelTarget==te?te.style.display="none":te.parentNode.removeChild(te),le}for(var x=u.view,_=u.viewFrom,N=0;N<x.length;N++){var H=x[N];if(!H.hidden)if(!H.node||H.node.parentNode!=v){var Q=TF(r,H,_,l);v.insertBefore(Q,b)}else{for(;b!=H.node;)b=D(b);var K=f&&s!=null&&s<=_&&H.lineNumber;H.changes&&(Se(H.changes,"gutter")>-1&&(K=!1),Dm(r,H,_,l)),K&&(P(H.lineNumber),H.lineNumber.appendChild(document.createTextNode(q(r.options,_)))),b=H.node.nextSibling}_+=H.size}for(;b;)b=D(b)}function pd(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",Wt(r,"gutterChanged",r)}function gd(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+Pr(r)+"px"}function Xm(r){var s=r.display,l=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var u=id(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 D=l[b].alignable;if(D)for(var x=0;x<D.length;x++)D[x].style.left=v}r.options.fixedGutter&&(s.gutters.style.left=u+f+"px")}}function Ym(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(w("div",[w("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",pd(r.display),!0}return!1}function vd(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 Zm(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,D=s.appendChild(w("div",null,"CodeMirror-gutter "+v));b&&(D.style.cssText=b),v=="CodeMirror-linenumbers"&&(r.lineGutter=D,D.style.width=(r.lineNumWidth||1)+"px")}s.style.display=l.length?"":"none",pd(r)}function Xa(r){Zm(r.display),wn(r),Xm(r)}function i2(r,s,l,u){var f=this;this.input=l,f.scrollbarFiller=w("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=w("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=R("div",null,"CodeMirror-code"),f.selectionDiv=w("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=w("div",null,"CodeMirror-cursors"),f.measure=w("div",null,"CodeMirror-measure"),f.lineMeasure=w("div",null,"CodeMirror-measure"),f.lineSpace=R("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var v=R("div",[f.lineSpace],"CodeMirror-lines");f.mover=w("div",[v],null,"position: relative"),f.sizer=w("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=w("div",null,null,"position: absolute; height: "+vt+"px; width: 1px;"),f.gutters=w("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=w("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=w("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=vd(u.gutters,u.lineNumbers),Zm(f),l.init(f)}var Xl=0,ui=null;d?ui=-.53:o?ui=15:m?ui=-.7:L&&(ui=-1/3);function Jm(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 s2(r){var s=Jm(r);return s.x*=ui,s.y*=ui,s}function ey(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=Jm(s),u=l.x,f=l.y,v=ui;s.deltaMode===0&&(u=s.deltaX,f=s.deltaY,v=1);var b=r.display,D=b.scroller,x=D.scrollWidth>D.clientWidth,_=D.scrollHeight>D.clientHeight;if(u&&x||f&&_){if(f&&k&&g){e:for(var N=s.target,H=b.view;N!=D;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&&_&&Wa(r,Math.max(0,D.scrollTop+f*v)),Ds(r,Math.max(0,D.scrollLeft+u*v)),(!f||f&&_)&&an(s),b.wheelStartX=null;return}if(f&&v!=null){var K=f*v,te=r.doc.scrollTop,le=te+b.wrapper.clientHeight;K<0?te=Math.max(0,te+K-50):le=Math.min(r.doc.height,le+K+50),dd(r,{top:te,bottom:le})}Xl<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=D.scrollLeft,b.wheelStartY=D.scrollTop,b.wheelDX=u,b.wheelDY=f,setTimeout(function(){if(b.wheelStartX!=null){var ve=D.scrollLeft-b.wheelStartX,we=D.scrollTop-b.wheelStartY,Ee=we&&b.wheelDY&&we/b.wheelDY||ve&&b.wheelDX&&ve/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ee&&(ui=(ui*Xl+Ee)/(Xl+1),++Xl)}},200)):(b.wheelDX+=u,b.wheelDY+=f))}}var Gn=function(r,s){this.ranges=r,this.primIndex=s};Gn.prototype.primary=function(){return this.ranges[this.primIndex]},Gn.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var l=this.ranges[s],u=r.ranges[s];if(!Ue(l.anchor,u.anchor)||!Ue(l.head,u.head))return!1}return!0},Gn.prototype.deepCopy=function(){for(var r=[],s=0;s<this.ranges.length;s++)r[s]=new ut(Qe(this.ranges[s].anchor),Qe(this.ranges[s].head));return new Gn(r,this.primIndex)},Gn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},Gn.prototype.contains=function(r,s){s||(s=r);for(var l=0;l<this.ranges.length;l++){var u=this.ranges[l];if(ee(s,u.from())>=0&&ee(r,u.to())<=0)return l}return-1};var ut=function(r,s){this.anchor=r,this.head=s};ut.prototype.from=function(){return qt(this.anchor,this.head)},ut.prototype.to=function(){return rt(this.anchor,this.head)},ut.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pr(r,s,l){var u=r&&r.options.selectionsMayTouch,f=s[l];s.sort(function(Q,K){return ee(Q.from(),K.from())}),l=Se(s,f);for(var v=1;v<s.length;v++){var b=s[v],D=s[v-1],x=ee(D.to(),b.from());if(u&&!b.empty()?x>0:x>=0){var _=qt(D.from(),b.from()),N=rt(D.to(),b.to()),H=D.empty()?b.from()==b.head:D.from()==D.head;v<=l&&--l,s.splice(--v,2,new ut(H?N:_,H?_:N))}}return new Gn(s,l)}function Ui(r,s){return new Gn([new ut(r,s||r)],0)}function Hi(r){return r.text?W(r.from.line+r.text.length-1,he(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function ty(r,s){if(ee(r,s.from)<0)return r;if(ee(r,s.to)<=0)return Hi(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+=Hi(s).ch-s.to.ch),W(l,u)}function md(r,s){for(var l=[],u=0;u<r.sel.ranges.length;u++){var f=r.sel.ranges[u];l.push(new ut(ty(f.anchor,s),ty(f.head,s)))}return pr(r.cm,l,r.sel.primIndex)}function ny(r,s,l){return r.line==s.line?W(l.line,r.ch-s.ch+l.ch):W(l.line+(r.line-s.line),r.ch)}function o2(r,s,l){for(var u=[],f=W(r.first,0),v=f,b=0;b<s.length;b++){var D=s[b],x=ny(D.from,f,v),_=ny(Hi(D),f,v);if(f=D.to,v=_,l=="around"){var N=r.sel.ranges[b],H=ee(N.head,N.anchor)<0;u[b]=new ut(H?_:x,H?x:_)}else u[b]=new ut(x,x)}return new Gn(u,r.sel.primIndex)}function yd(r){r.doc.mode=ni(r.options,r.doc.modeOption),Ya(r)}function Ya(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,Qa(r,100),r.state.modeGen++,r.curOp&&wn(r)}function ry(r,s){return s.from.ch==0&&s.to.ch==0&&he(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function bd(r,s,l,u){function f(Ee){return l?l[Ee]:null}function v(Ee,De,Fe){pF(Ee,De,Fe,u),Wt(Ee,"change",Ee,s)}function b(Ee,De){for(var Fe=[],Ie=Ee;Ie<De;++Ie)Fe.push(new fo(_[Ie],f(Ie),u));return Fe}var D=s.from,x=s.to,_=s.text,N=Le(r,D.line),H=Le(r,x.line),Q=he(_),K=f(_.length-1),te=x.line-D.line;if(s.full)r.insert(0,b(0,_.length)),r.remove(_.length,r.size-_.length);else if(ry(r,s)){var le=b(0,_.length-1);v(H,H.text,K),te&&r.remove(D.line,te),le.length&&r.insert(D.line,le)}else if(N==H)if(_.length==1)v(N,N.text.slice(0,D.ch)+Q+N.text.slice(x.ch),K);else{var ve=b(1,_.length-1);ve.push(new fo(Q+N.text.slice(x.ch),K,u)),v(N,N.text.slice(0,D.ch)+_[0],f(0)),r.insert(D.line+1,ve)}else if(_.length==1)v(N,N.text.slice(0,D.ch)+_[0]+H.text.slice(x.ch),f(0)),r.remove(D.line+1,te);else{v(N,N.text.slice(0,D.ch)+_[0],f(0)),v(H,Q+H.text.slice(x.ch),K);var we=b(1,_.length-1);te>1&&r.remove(D.line+1,te-1),r.insert(D.line+1,we)}Wt(r,"change",r,s)}function qi(r,s,l){function u(f,v,b){if(f.linked)for(var D=0;D<f.linked.length;++D){var x=f.linked[D];if(x.doc!=v){var _=b&&x.sharedHist;l&&!_||(s(x.doc,_),u(x.doc,f,_))}}}u(r,null,!0)}function iy(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,sd(r),yd(r),sy(r),r.options.direction=s.direction,r.options.lineWrapping||Kh(r),r.options.mode=s.modeOption,wn(r)}function sy(r){(r.doc.direction=="rtl"?pe:z)(r.display.lineDiv,"CodeMirror-rtl")}function a2(r){Pn(r,function(){sy(r),wn(r)})}function Yl(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 wd(r,s){var l={from:Qe(s.from),to:Hi(s),text:ii(r,s.from,s.to)};return uy(r,l,s.from.line,s.to.line+1),qi(r,function(u){return uy(u,l,s.from.line,s.to.line+1)},!0),l}function oy(r){for(;r.length;){var s=he(r);if(s.ranges)r.pop();else break}}function u2(r,s){if(s)return oy(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 ay(r,s,l,u){var f=r.history;f.undone.length=0;var v=+new Date,b,D;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=u2(f,f.lastOp==u)))D=he(b.changes),ee(s.from,s.to)==0&&ee(s.from,D.to)==0?D.to=Hi(s):b.changes.push(wd(r,s));else{var x=he(f.done);for((!x||!x.ranges)&&Zl(r.sel,f.done),b={changes:[wd(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,D||wt(r,"historyAdded")}function l2(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 c2(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||l2(r,v,he(f.done),s))?f.done[f.done.length-1]=s:Zl(s,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=v,f.lastSelOp=l,u&&u.clearRedo!==!1&&oy(f.undone)}function Zl(r,s){var l=he(s);l&&l.ranges&&l.equals(r)||s.push(r)}function uy(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 f2(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 h2(r,s){var l=s["spans_"+r.id];if(!l)return null;for(var u=[],f=0;f<s.text.length;++f)u.push(f2(l[f]));return u}function ly(r,s){var l=h2(r,s),u=jh(r,s);if(!l)return u;if(!u)return l;for(var f=0;f<l.length;++f){var v=l[f],b=u[f];if(v&&b)e:for(var D=0;D<b.length;++D){for(var x=b[D],_=0;_<v.length;++_)if(v[_].marker==x.marker)continue e;v.push(x)}else b&&(l[f]=b)}return l}function wo(r,s,l){for(var u=[],f=0;f<r.length;++f){var v=r[f];if(v.ranges){u.push(l?Gn.prototype.deepCopy.call(v):v);continue}var b=v.changes,D=[];u.push({changes:D});for(var x=0;x<b.length;++x){var _=b[x],N=void 0;if(D.push({from:_.from,to:_.to,text:_.text}),s)for(var H in _)(N=H.match(/^spans_(\d+)$/))&&Se(s,Number(N[1]))>-1&&(he(D)[H]=_[H],delete _[H])}}return u}function Dd(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 ut(f,s)}else return new ut(l||s,s)}function Jl(r,s,l,u,f){f==null&&(f=r.cm&&(r.cm.display.shift||r.extend)),un(r,new Gn([Dd(r.sel.primary(),s,l,f)],0),u)}function cy(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]=Dd(r.sel.ranges[v],s[v],null,f);var b=pr(r.cm,u,r.sel.primIndex);un(r,b,l)}function Ad(r,s,l,u){var f=r.sel.ranges.slice(0);f[s]=l,un(r,pr(r.cm,f,r.sel.primIndex),u)}function fy(r,s,l,u){un(r,Ui(s,l),u)}function d2(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 ut(He(r,f[v].anchor),He(r,f[v].head))},origin:l&&l.origin};return wt(r,"beforeSelectionChange",r,u),r.cm&&wt(r.cm,"beforeSelectionChange",r.cm,u),u.ranges!=s.ranges?pr(r.cm,u.ranges,u.ranges.length-1):s}function hy(r,s,l){var u=r.history.done,f=he(u);f&&f.ranges?(u[u.length-1]=s,ec(r,s,l)):un(r,s,l)}function un(r,s,l){ec(r,s,l),c2(r,r.sel,r.cm?r.cm.curOp.id:NaN,l)}function ec(r,s,l){(hn(r,"beforeSelectionChange")||r.cm&&hn(r.cm,"beforeSelectionChange"))&&(s=d2(r,s,l));var u=l&&l.bias||(ee(s.primary().head,r.sel.primary().head)<0?-1:1);dy(r,gy(r,s,u,!0)),!(l&&l.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&yo(r.cm)}function dy(r,s){s.equals(r.sel)||(r.sel=s,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,$l(r.cm)),Wt(r,"cursorActivity",r))}function py(r){dy(r,gy(r,r.sel,null,!1))}function gy(r,s,l,u){for(var f,v=0;v<s.ranges.length;v++){var b=s.ranges[v],D=s.ranges.length==r.sel.ranges.length&&r.sel.ranges[v],x=tc(r,b.anchor,D&&D.anchor,l,u),_=b.head==b.anchor?x:tc(r,b.head,D&&D.head,l,u);(f||x!=b.anchor||_!=b.head)&&(f||(f=s.ranges.slice(0,v)),f[v]=new ut(x,_))}return f?pr(r.cm,f,s.primIndex):s}function Do(r,s,l,u,f){var v=Le(r,s.line);if(v.markedSpans)for(var b=0;b<v.markedSpans.length;++b){var D=v.markedSpans[b],x=D.marker,_="selectLeft"in x?!x.selectLeft:x.inclusiveLeft,N="selectRight"in x?!x.selectRight:x.inclusiveRight;if((D.from==null||(_?D.from<=s.ch:D.from<s.ch))&&(D.to==null||(N?D.to>=s.ch:D.to>s.ch))){if(f&&(wt(x,"beforeCursorEnter"),x.explicitlyCleared))if(v.markedSpans){--b;continue}else break;if(!x.atomic)continue;if(l){var H=x.find(u<0?1:-1),Q=void 0;if((u<0?N:_)&&(H=vy(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 Do(r,H,s,u,f)}var K=x.find(u<0?-1:1);return(u<0?_:N)&&(K=vy(r,K,u,K.line==s.line?v:null)),K?Do(r,K,s,u,f):null}}return s}function tc(r,s,l,u,f){var v=u||1,b=Do(r,s,l,v,f)||!f&&Do(r,s,l,v,!0)||Do(r,s,l,-v,f)||!f&&Do(r,s,l,-v,!0);return b||(r.cantEdit=!0,W(r.first,0))}function vy(r,s,l,u){return l<0&&s.ch==0?s.line>r.first?He(r,W(s.line-1)):null:l>0&&s.ch==(u||Le(r,s.line)).text.length?s.line<r.first+r.size-1?W(s.line+1,0):null:new W(s.line,s.ch+l)}function my(r){r.setSelection(W(r.firstLine(),0),W(r.lastLine()),I)}function yy(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,D){f&&(u.from=He(r,f)),v&&(u.to=He(r,v)),b&&(u.text=b),D!==void 0&&(u.origin=D)}),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 Ao(r,s,l){if(r.cm){if(!r.cm.curOp)return Gt(r.cm,Ao)(r,s,l);if(r.cm.state.suppressEdits)return}if(!((hn(r,"beforeChange")||r.cm&&hn(r.cm,"beforeChange"))&&(s=yy(r,s,!0),!s))){var u=lm&&!l&&cF(r,s.from,s.to);if(u)for(var f=u.length-1;f>=0;--f)by(r,{from:u[f].from,to:u[f].to,text:f?[""]:s.text,origin:s.origin});else by(r,s)}}function by(r,s){if(!(s.text.length==1&&s.text[0]==""&&ee(s.from,s.to)==0)){var l=md(r,s);ay(r,s,l,r.cm?r.cm.curOp.id:NaN),Za(r,s,l,jh(r,s));var u=[];qi(r,function(f,v){!v&&Se(u,f.history)==-1&&(xy(f.history,s),u.push(f.history)),Za(f,s,null,jh(f,s))})}}function nc(r,s,l){var u=r.cm&&r.cm.state.suppressEdits;if(!(u&&!l)){for(var f=r.history,v,b=r.sel,D=s=="undo"?f.done:f.undone,x=s=="undo"?f.undone:f.done,_=0;_<D.length&&(v=D[_],!(l?v.ranges&&!v.equals(r.sel):!v.ranges));_++);if(_!=D.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(v=D.pop(),v.ranges){if(Zl(v,x),l&&!v.equals(r.sel)){un(r,v,{clearRedo:!1});return}b=v}else if(u){D.push(v);return}else break;var N=[];Zl(b,x),x.push({changes:N,generation:f.generation}),f.generation=v.generation||++f.maxGeneration;for(var H=hn(r,"beforeChange")||r.cm&&hn(r.cm,"beforeChange"),Q=function(le){var ve=v.changes[le];if(ve.origin=s,H&&!yy(r,ve,!1))return D.length=0,{};N.push(wd(r,ve));var we=le?md(r,ve):he(D);Za(r,ve,we,ly(r,ve)),!le&&r.cm&&r.cm.scrollIntoView({from:ve.from,to:Hi(ve)});var Ee=[];qi(r,function(De,Fe){!Fe&&Se(Ee,De.history)==-1&&(xy(De.history,ve),Ee.push(De.history)),Za(De,ve,null,ly(De,ve))})},K=v.changes.length-1;K>=0;--K){var te=Q(K);if(te)return te.v}}}}function wy(r,s){if(s!=0&&(r.first+=s,r.sel=new Gn(be(r.sel.ranges,function(f){return new ut(W(f.anchor.line+s,f.anchor.ch),W(f.head.line+s,f.head.ch))}),r.sel.primIndex),r.cm)){wn(r.cm,r.first,r.first-s,s);for(var l=r.cm.display,u=l.viewFrom;u<l.viewTo;u++)Mi(r.cm,u,"gutter")}}function Za(r,s,l,u){if(r.cm&&!r.cm.curOp)return Gt(r.cm,Za)(r,s,l,u);if(s.to.line<r.first){wy(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);wy(r,f),s={from:W(r.first,0),to:W(s.to.line+f,s.to.ch),text:[he(s.text)],origin:s.origin}}var v=r.lastLine();s.to.line>v&&(s={from:s.from,to:W(v,Le(r,v).text.length),text:[s.text[0]],origin:s.origin}),s.removed=ii(r,s.from,s.to),l||(l=md(r,s)),r.cm?p2(r.cm,s,u):bd(r,s,u),ec(r,l,I),r.cantEdit&&tc(r,W(r.firstLine(),0))&&(r.cantEdit=!1)}}function p2(r,s,l){var u=r.doc,f=r.display,v=s.from,b=s.to,D=!1,x=v.line;r.options.lineWrapping||(x=at(hr(Le(u,v.line))),u.iter(x,b.line+1,function(K){if(K==f.maxLine)return D=!0,!0})),u.sel.contains(s.from,s.to)>-1&&$l(r),bd(u,s,l,Mm(r)),r.options.lineWrapping||(u.iter(x,v.line+s.text.length,function(K){var te=Ml(K);te>f.maxLineLength&&(f.maxLine=K,f.maxLineLength=te,f.maxLineChanged=!0,D=!1)}),D&&(r.curOp.updateMaxLine=!0)),rF(u,v.line),Qa(r,400);var _=s.text.length-(b.line-v.line)-1;s.full?wn(r):v.line==b.line&&s.text.length==1&&!ry(r.doc,s)?Mi(r,v.line,"text"):wn(r,v.line,b.line+1,_);var N=hn(r,"changes"),H=hn(r,"change");if(H||N){var Q={from:v,to:b,text:s.text,removed:s.removed,origin:s.origin};H&&Wt(r,"change",r,Q),N&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(Q)}r.display.selForContextMenu=null}function xo(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)),Ao(r,{from:l,to:u,text:s,origin:f})}function Dy(r,s,l,u){l<r.line?r.line+=u:s<r.line&&(r.line=s,r.ch=0)}function Ay(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 D=0;D<v.ranges.length;D++)Dy(v.ranges[D].anchor,s,l,u),Dy(v.ranges[D].head,s,l,u);continue}for(var x=0;x<v.changes.length;++x){var _=v.changes[x];if(l<_.from.line)_.from=W(_.from.line+u,_.from.ch),_.to=W(_.to.line+u,_.to.ch);else if(s<=_.to.line){b=!1;break}}b||(r.splice(0,f+1),f=0)}}function xy(r,s){var l=s.from.line,u=s.to.line,f=s.text.length-(u-l)-1;Ay(r.done,l,u,f),Ay(r.undone,l,u,f)}function Ja(r,s,l,u){var f=s,v=s;return typeof s=="number"?v=Le(r,Wn(r,s)):f=at(s),f==null?null:(u(v,f)&&r.cm&&Mi(r.cm,f,l),v)}function eu(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}eu.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,gF(f),Wt(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 tu(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}tu.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 eu))){var D=[];this.collapse(D),this.children=[new eu(D)],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,D=b;D<f.lines.length;){var x=new eu(f.lines.slice(D,D+=25));f.height-=x.height,this.children.splice(++u,0,x),x.parent=this}f.lines=f.lines.slice(0,b),this.maybeSpill()}break}r-=v}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var s=r.children.splice(r.children.length-5,5),l=new tu(s);if(r.parent){r.size-=l.size,r.height-=l.height;var f=Se(r.parent.children,r);r.parent.children.splice(f+1,0,l)}else{var u=new tu(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 nu=function(r,s,l){if(l)for(var u in l)l.hasOwnProperty(u)&&(this[u]=l[u]);this.doc=r,this.node=s};nu.prototype.clear=function(){var r=this.doc.cm,s=this.line.widgets,l=this.line,u=at(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=Ha(this);nr(l,Math.max(0,l.height-v)),r&&(Pn(r,function(){Ey(r,l,-v),Mi(r,u,"widget")}),Wt(r,"lineWidgetCleared",r,this,u))}},nu.prototype.changed=function(){var r=this,s=this.height,l=this.doc.cm,u=this.line;this.height=null;var f=Ha(this)-s;f&&(Ri(this.doc,u)||nr(u,u.height+f),l&&Pn(l,function(){l.curOp.forceUpdate=!0,Ey(l,u,f),Wt(l,"lineWidgetChanged",l,r,at(u))}))},dn(nu);function Ey(r,s,l){oi(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&fd(r,l)}function g2(r,s,l,u){var f=new nu(r,l,u),v=r.cm;return v&&f.noHScroll&&(v.display.alignWidgets=!0),Ja(r,s,"widget",function(b){var D=b.widgets||(b.widgets=[]);if(f.insertAt==null?D.push(f):D.splice(Math.min(D.length,Math.max(0,f.insertAt)),0,f),f.line=b,v&&!Ri(r,b)){var x=oi(b)<r.scrollTop;nr(b,b.height+Ha(f)),x&&fd(v,f.height),v.curOp.forceUpdate=!0}return!0}),v&&Wt(v,"lineWidgetAdded",v,f,typeof s=="number"?s:at(s)),f}var Cy=0,ji=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++Cy};ji.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&xs(r),hn(this,"clear")){var l=this.find();l&&Wt(this,"clear",l.from,l.to)}for(var u=null,f=null,v=0;v<this.lines.length;++v){var b=this.lines[v],D=Ma(b.markedSpans,this);r&&!this.collapsed?Mi(r,at(b),"text"):r&&(D.to!=null&&(f=at(b)),D.from!=null&&(u=at(b))),b.markedSpans=oF(b.markedSpans,D),D.from==null&&this.collapsed&&!Ri(this.doc,b)&&r&&nr(b,go(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var _=hr(this.lines[x]),N=Ml(_);N>r.display.maxLineLength&&(r.display.maxLine=_,r.display.maxLineLength=N,r.display.maxLineChanged=!0)}u!=null&&r&&this.collapsed&&wn(r,u,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&py(r.doc)),r&&Wt(r,"markerCleared",r,this,u,f),s&&Es(r),this.parent&&this.parent.clear()}},ji.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=Ma(v.markedSpans,this);if(b.from!=null&&(l=W(s?v:at(v),b.from),r==-1))return l;if(b.to!=null&&(u=W(s?v:at(v),b.to),r==1))return u}return l&&{from:l,to:u}},ji.prototype.changed=function(){var r=this,s=this.find(-1,!0),l=this,u=this.doc.cm;!s||!u||Pn(u,function(){var f=s.line,v=at(s.line),b=Zh(u,v);if(b&&(km(b),u.curOp.selectionChanged=u.curOp.forceUpdate=!0),u.curOp.updateMaxLine=!0,!Ri(l.doc,f)&&l.height!=null){var D=l.height;l.height=null;var x=Ha(l)-D;x&&nr(f,f.height+x)}Wt(u,"markerChanged",u,r)})},ji.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||Se(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},ji.prototype.detachLine=function(r){if(this.lines.splice(Se(this.lines,r),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},dn(ji);function Eo(r,s,l,u,f){if(u&&u.shared)return v2(r,s,l,u,f);if(r.cm&&!r.cm.curOp)return Gt(r.cm,Eo)(r,s,l,u,f);var v=new ji(r,f),b=ee(s,l);if(u&&se(u,v,!1),b>0||b==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=R("span",[v.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(gm(r,s.line,s,l,v)||s.line!=l.line&&gm(r,l.line,s,l,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");sF()}v.addToHistory&&ay(r,{from:s,to:l,origin:"markText"},r.sel,NaN);var D=s.line,x=r.cm,_;if(r.iter(D,l.line+1,function(H){x&&v.collapsed&&!x.options.lineWrapping&&hr(H)==x.display.maxLine&&(_=!0),v.collapsed&&D!=s.line&&nr(H,0),aF(H,new Pl(v,D==s.line?s.ch:null,D==l.line?l.ch:null),r.cm&&r.cm.curOp),++D}),v.collapsed&&r.iter(s.line,l.line+1,function(H){Ri(r,H)&&nr(H,0)}),v.clearOnEnter&&Ae(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(iF(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),v.collapsed&&(v.id=++Cy,v.atomic=!0),x){if(_&&(x.curOp.updateMaxLine=!0),v.collapsed)wn(x,s.line,l.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var N=s.line;N<=l.line;N++)Mi(x,N,"text");v.atomic&&py(x.doc),Wt(x,"markerAdded",x,v)}return v}var ru=function(r,s){this.markers=r,this.primary=s;for(var l=0;l<r.length;++l)r[l].parent=this};ru.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();Wt(this,"clear")}},ru.prototype.find=function(r,s){return this.primary.find(r,s)},dn(ru);function v2(r,s,l,u,f){u=se(u),u.shared=!1;var v=[Eo(r,s,l,u,f)],b=v[0],D=u.widgetNode;return qi(r,function(x){D&&(u.widgetNode=D.cloneNode(!0)),v.push(Eo(x,He(x,s),He(x,l),u,f));for(var _=0;_<x.linked.length;++_)if(x.linked[_].isParent)return;b=he(v)}),new ru(v,b)}function _y(r){return r.findMarks(W(r.first,0),r.clipPos(W(r.lastLine())),function(s){return s.parent})}function m2(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 D=Eo(r,v,b,u.primary,u.primary.type);u.markers.push(D),D.parent=u}}}function y2(r){for(var s=function(u){var f=r[u],v=[f.primary.doc];qi(f.primary.doc,function(x){return v.push(x)});for(var b=0;b<f.markers.length;b++){var D=f.markers[b];Se(v,D.doc)==-1&&(D.parent=null,f.markers.splice(b--,1))}},l=0;l<r.length;l++)s(l)}var b2=0,Dn=function(r,s,l,u,f){if(!(this instanceof Dn))return new Dn(r,s,l,u,f);l==null&&(l=0),tu.call(this,[new eu([new fo("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var v=W(l,0);this.sel=Ui(v),this.history=new Yl(null),this.id=++b2,this.modeOption=s,this.lineSep=u,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),bd(this,{from:v,to:v,text:r}),un(this,Ui(v),I)};Dn.prototype=Ne(tu.prototype,{constructor:Dn,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=co(this,this.first,this.first+this.size);return r===!1?s:s.join(r||this.lineSeparator())},setValue:Kt(function(r){var s=W(this.first,0),l=this.first+this.size-1;Ao(this,{from:s,to:W(l,Le(this,l).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&Va(this.cm,0,0),un(this,Ui(s),I)}),replaceRange:function(r,s,l,u){s=He(this,s),l=l?He(this,l):s,xo(this,r,s,l,u)},getRange:function(r,s,l){var u=ii(this,He(this,r),He(this,s));return l===!1?u:l===""?u.join(""):u.join(l||this.lineSeparator())},getLine:function(r){var s=this.getLineHandle(r);return s&&s.text},getLineHandle:function(r){if(T(this,r))return Le(this,r)},getLineNumber:function(r){return at(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=Le(this,r)),hr(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return He(this,r)},getCursor:function(r){var s=this.sel.primary(),l;return r==null||r=="head"?l=s.head:r=="anchor"?l=s.anchor:r=="end"||r=="to"||r===!1?l=s.to():l=s.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Kt(function(r,s,l){fy(this,He(this,typeof r=="number"?W(r,s||0):r),null,l)}),setSelection:Kt(function(r,s,l){fy(this,He(this,r),He(this,s||r),l)}),extendSelection:Kt(function(r,s,l){Jl(this,He(this,r),s&&He(this,s),l)}),extendSelections:Kt(function(r,s){cy(this,tm(this,r),s)}),extendSelectionsBy:Kt(function(r,s){var l=be(this.sel.ranges,r);cy(this,tm(this,l),s)}),setSelections:Kt(function(r,s,l){if(r.length){for(var u=[],f=0;f<r.length;f++)u[f]=new ut(He(this,r[f].anchor),He(this,r[f].head||r[f].anchor));s==null&&(s=Math.min(r.length-1,this.sel.primIndex)),un(this,pr(this.cm,u,s),l)}}),addSelection:Kt(function(r,s,l){var u=this.sel.ranges.slice(0);u.push(new ut(He(this,r),He(this,s||r))),un(this,pr(this.cm,u,u.length-1),l)}),getSelection:function(r){for(var s=this.sel.ranges,l,u=0;u<s.length;u++){var f=ii(this,s[u].from(),s[u].to());l=l?l.concat(f):f}return r===!1?l:l.join(r||this.lineSeparator())},getSelections:function(r){for(var s=[],l=this.sel.ranges,u=0;u<l.length;u++){var f=ii(this,l[u].from(),l[u].to());r!==!1&&(f=f.join(r||this.lineSeparator())),s[u]=f}return s},replaceSelection:function(r,s,l){for(var u=[],f=0;f<this.sel.ranges.length;f++)u[f]=r;this.replaceSelections(u,s,l||"+input")},replaceSelections:Kt(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 D=s&&s!="end"&&o2(this,u,s),x=u.length-1;x>=0;x--)Ao(this,u[x]);D?hy(this,D):this.cm&&yo(this.cm)}),undo:Kt(function(){nc(this,"undo")}),redo:Kt(function(){nc(this,"redo")}),undoSelection:Kt(function(){nc(this,"undo",!0)}),redoSelection:Kt(function(){nc(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 Yl(this.history),qi(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:wo(this.history.done),undone:wo(this.history.undone)}},setHistory:function(r){var s=this.history=new Yl(this.history);s.done=wo(r.done.slice(0),null,!0),s.undone=wo(r.undone.slice(0),null,!0)},setGutterMarker:Kt(function(r,s,l){return Ja(this,r,"gutter",function(u){var f=u.gutterMarkers||(u.gutterMarkers={});return f[s]=l,!l&&Ge(f)&&(u.gutterMarkers=null),!0})}),clearGutter:Kt(function(r){var s=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[r]&&Ja(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=at(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:Kt(function(r,s,l){return Ja(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:Kt(function(r,s,l){return Ja(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 D=b.index+b[0].length;u[f]=v.slice(0,b.index)+(!b.index||D==v.length?"":" ")+v.slice(D)||null}else return!1;return!0})}),addLineWidget:Kt(function(r,s,l){return g2(this,r,s,l)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,l){return Eo(this,He(this,r),He(this,s),l,l&&l.type||"range")},setBookmark:function(r,s){var l={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return r=He(this,r),Eo(this,r,r,l,"bookmark")},findMarksAt:function(r){r=He(this,r);var s=[],l=Le(this,r.line).markedSpans;if(l)for(var u=0;u<l.length;++u){var f=l[u];(f.from==null||f.from<=r.ch)&&(f.to==null||f.to>=r.ch)&&s.push(f.marker.parent||f.marker)}return s},findMarks:function(r,s,l){r=He(this,r),s=He(this,s);var u=[],f=r.line;return this.iter(r.line,s.line+1,function(v){var b=v.markedSpans;if(b)for(var D=0;D<b.length;D++){var x=b[D];!(x.to!=null&&f==r.line&&r.ch>=x.to||x.from==null&&f!=r.line||x.from!=null&&f==s.line&&x.from>=s.ch)&&(!l||l(x.marker))&&u.push(x.marker.parent||x.marker)}++f}),u},getAllMarks:function(){var r=[];return this.iter(function(s){var l=s.markedSpans;if(l)for(var u=0;u<l.length;++u)l[u].from!=null&&r.push(l[u].marker)}),r},posFromIndex:function(r){var s,l=this.first,u=this.lineSeparator().length;return this.iter(function(f){var v=f.text.length+u;if(v>r)return s=r,!0;r-=v,++l}),He(this,W(l,s))},indexFromPos:function(r){r=He(this,r);var s=r.ch;if(r.line<this.first||r.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,r.line,function(u){s+=u.text.length+l}),s},copy:function(r){var s=new Dn(co(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 Dn(co(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}],m2(u,_y(this)),u},unlinkDoc:function(r){if(r instanceof xt&&(r=r.doc),this.linked)for(var s=0;s<this.linked.length;++s){var l=this.linked[s];if(l.doc==r){this.linked.splice(s,1),r.unlinkDoc(this),y2(_y(this));break}}if(r.history==this.history){var u=[r.id];qi(r,function(f){return u.push(f.id)},!0),r.history=new Yl(null),r.history.done=wo(this.history.done,u),r.history.undone=wo(this.history.undone,u)}},iterLinkedDocs:function(r){qi(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):Na(r)},lineSeparator:function(){return this.lineSep||`
|
|
27
|
+
`},setDirection:Kt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(s){return s.order=null}),this.cm&&a2(this.cm))})}),Dn.prototype.eachLine=Dn.prototype.iter;var Sy=0;function w2(r){var s=this;if(Fy(s),!(Tt(s,r)||ai(s.display,r))){an(r),d&&(Sy=+new Date);var l=bs(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,D=function(){++b==f&&Gt(s,function(){l=He(s.doc,l);var K={from:l,to:l,text:s.doc.splitLines(v.filter(function(te){return te!=null}).join(s.doc.lineSeparator())),origin:"paste"};Ao(s.doc,K),hy(s.doc,Ui(He(s.doc,l),He(s.doc,Hi(K))))})()},x=function(K,te){if(s.options.allowDropFileTypes&&Se(s.options.allowDropFileTypes,K.type)==-1){D();return}var le=new FileReader;le.onerror=function(){return D()},le.onload=function(){var ve=le.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ve)){D();return}v[te]=ve,D()},le.readAsText(K)},_=0;_<u.length;_++)x(u[_],_);else{if(s.state.draggingText&&s.doc.sel.contains(l)>-1){s.state.draggingText(r),setTimeout(function(){return s.display.input.focus()},20);return}try{var N=r.dataTransfer.getData("Text");if(N){var H;if(s.state.draggingText&&!s.state.draggingText.copy&&(H=s.listSelections()),ec(s.doc,Ui(l,l)),H)for(var Q=0;Q<H.length;++Q)xo(s.doc,"",H[Q].anchor,H[Q].head,"drag");s.replaceSelection(N,"around","paste"),s.display.input.focus()}}catch{}}}}function D2(r,s){if(d&&(!r.state.draggingText||+new Date-Sy<100)){ti(s);return}if(!(Tt(r,s)||ai(r.display,s))&&(s.dataTransfer.setData("Text",r.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!L)){var l=w("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 A2(r,s){var l=bs(r,s);if(l){var u=document.createDocumentFragment();od(r,l,u),r.display.dragCursor||(r.display.dragCursor=w("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),F(r.display.dragCursor,u)}}function Fy(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function $y(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 Ty=!1;function x2(){Ty||(E2(),Ty=!0)}function E2(){var r;Ae(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,$y(C2)},100))}),Ae(window,"blur",function(){return $y(mo)})}function C2(r){var s=r.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,r.setSize()}for(var Vi={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"},iu=0;iu<10;iu++)Vi[iu+48]=Vi[iu+96]=String(iu);for(var rc=65;rc<=90;rc++)Vi[rc]=String.fromCharCode(rc);for(var su=1;su<=12;su++)Vi[su+111]=Vi[su+63235]="F"+su;var li={};li.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},li.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},li.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},li.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},li.default=k?li.macDefault:li.pcDefault;function _2(r){var s=r.split(/-(?!$)/);r=s[s.length-1];for(var l,u,f,v,b=0;b<s.length-1;b++){var D=s[b];if(/^(cmd|meta|m)$/i.test(D))v=!0;else if(/^a(lt)?$/i.test(D))l=!0;else if(/^(c|ctrl|control)$/i.test(D))u=!0;else if(/^s(hift)?$/i.test(D))f=!0;else throw new Error("Unrecognized modifier name: "+D)}return l&&(r="Alt-"+r),u&&(r="Ctrl-"+r),v&&(r="Cmd-"+r),f&&(r="Shift-"+r),r}function S2(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(" "),_2),v=0;v<f.length;v++){var b=void 0,D=void 0;v==f.length-1?(D=f.join(" "),b=u):(D=f.slice(0,v+1).join(" "),b="...");var x=s[D];if(!x)s[D]=b;else if(x!=b)throw new Error("Inconsistent bindings for "+D)}delete r[l]}for(var _ in s)r[_]=s[_];return r}function Co(r,s,l,u){s=ic(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 Co(r,s.fallthrough,l,u);for(var v=0;v<s.fallthrough.length;v++){var b=Co(r,s.fallthrough[v],l,u);if(b)return b}}}function ky(r){var s=typeof r=="string"?r:Vi[r.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function Ly(r,s,l){var u=r;return s.altKey&&u!="Alt"&&(r="Alt-"+r),(ne?s.metaKey:s.ctrlKey)&&u!="Ctrl"&&(r="Ctrl-"+r),(ne?s.ctrlKey:s.metaKey)&&u!="Mod"&&(r="Cmd-"+r),!l&&s.shiftKey&&u!="Shift"&&(r="Shift-"+r),r}function By(r,s){if($&&r.keyCode==34&&r.char)return!1;var l=Vi[r.keyCode];return l==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(l=r.code),Ly(l,r,s))}function ic(r){return typeof r=="string"?li[r]:r}function _o(r,s){for(var l=r.doc.sel.ranges,u=[],f=0;f<l.length;f++){for(var v=s(l[f]);u.length&&ee(v.from,he(u).to)<=0;){var b=u.pop();if(ee(b.from,v.from)<0){v.from=b.from;break}}u.push(v)}Pn(r,function(){for(var D=u.length-1;D>=0;D--)xo(r.doc,"",u[D].from,u[D].to,"+delete");yo(r)})}function xd(r,s,l){var u=ft(r.text,s+l,l);return u<0||u>r.text.length?null:u}function Ed(r,s,l){var u=xd(r,s.ch,l);return u==null?null:new W(s.line,u,l<0?"after":"before")}function Cd(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],D=f<0==(b.level==1),x=D?"after":"before",_;if(b.level>0||s.doc.direction=="rtl"){var N=po(s,l);_=f<0?l.text.length-1:0;var H=Nr(s,N,_).top;_=Ze(function(Q){return Nr(s,N,Q).top==H},f<0==(b.level==1)?b.from:b.to-1,_),x=="before"&&(_=xd(l,_,1))}else _=f<0?b.to:b.from;return new W(u,_,x)}}return new W(u,f<0?l.text.length:0,f<0?"before":"after")}function F2(r,s,l,u){var f=Dt(s,r.doc.direction);if(!f)return Ed(s,l,u);l.ch>=s.text.length?(l.ch=s.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var v=tn(f,l.ch,l.sticky),b=f[v];if(r.doc.direction=="ltr"&&b.level%2==0&&(u>0?b.to>l.ch:b.from<l.ch))return Ed(s,l,u);var D=function(we,Ee){return xd(s,we instanceof W?we.ch:we,Ee)},x,_=function(we){return r.options.lineWrapping?(x=x||po(r,s),Rm(r,s,x,we)):{begin:0,end:s.text.length}},N=_(l.sticky=="before"?D(l,-1):l.ch);if(r.doc.direction=="rtl"||b.level==1){var H=b.level==1==u<0,Q=D(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 W(l.line,Q,K)}}var te=function(we,Ee,De){for(var Fe=function(mt,Qt){return Qt?new W(l.line,D(mt,1),"before"):new W(l.line,mt,"after")};we>=0&&we<f.length;we+=Ee){var Ie=f[we],Oe=Ee>0==(Ie.level!=1),We=Oe?De.begin:D(De.end,-1);if(Ie.from<=We&&We<Ie.to||(We=Oe?Ie.from:D(Ie.to,-1),De.begin<=We&&We<De.end))return Fe(We,Oe)}},le=te(v+u,u,N);if(le)return le;var ve=u>0?N.end:D(N.begin,-1);return ve!=null&&!(u>0&&ve==s.text.length)&&(le=te(u>0?0:f.length-1,u,_(ve)),le)?le:null}var ou={selectAll:my,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),I)},killLine:function(r){return _o(r,function(s){if(s.empty()){var l=Le(r.doc,s.head.line).text.length;return s.head.ch==l&&s.head.line<r.lastLine()?{from:s.head,to:W(s.head.line+1,0)}:{from:s.head,to:W(s.head.line,l)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(r){return _o(r,function(s){return{from:W(s.from().line,0),to:He(r.doc,W(s.to().line+1,0))}})},delLineLeft:function(r){return _o(r,function(s){return{from:W(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return _o(r,function(s){var l=r.charCoords(s.head,"div").top+5,u=r.coordsChar({left:0,top:l},"div");return{from:u,to:s.from()}})},delWrappedLineRight:function(r){return _o(r,function(s){var l=r.charCoords(s.head,"div").top+5,u=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:l},"div");return{from:s.from(),to:u}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(W(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(W(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(s){return Oy(r,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(s){return Py(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return $2(r,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(s){var l=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:l},"div")},re)},goLineLeft:function(r){return r.extendSelectionsBy(function(s){var l=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:0,top:l},"div")},re)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(s){var l=r.cursorCoords(s.head,"div").top+5,u=r.coordsChar({left:0,top:l},"div");return u.ch<r.getLine(u.line).search(/\S/)?Py(r,s.head):u},re)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var s=[],l=r.listSelections(),u=r.options.tabSize,f=0;f<l.length;f++){var v=l[f].from(),b=J(r.getLine(v.line),v.ch,u);s.push(ye(u-b%u))}r.replaceSelections(s)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return Pn(r,function(){for(var s=r.listSelections(),l=[],u=0;u<s.length;u++)if(s[u].empty()){var f=s[u].head,v=Le(r.doc,f.line).text;if(v){if(f.ch==v.length&&(f=new W(f.line,f.ch-1)),f.ch>0)f=new W(f.line,f.ch+1),r.replaceRange(v.charAt(f.ch-1)+v.charAt(f.ch-2),W(f.line,f.ch-2),f,"+transpose");else if(f.line>r.doc.first){var b=Le(r.doc,f.line-1).text;b&&(f=new W(f.line,1),r.replaceRange(v.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),W(f.line-1,b.length-1),f,"+transpose"))}}l.push(new ut(f,f))}r.setSelections(l)})},newlineAndIndent:function(r){return Pn(r,function(){for(var s=r.listSelections(),l=s.length-1;l>=0;l--)r.replaceRange(r.doc.lineSeparator(),s[l].anchor,s[l].head,"+input");s=r.listSelections();for(var u=0;u<s.length;u++)r.indentLine(s[u].from().line,null,!0);yo(r)})},openLine:function(r){return r.replaceSelection(`
|
|
28
|
+
`,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function Oy(r,s){var l=Le(r.doc,s),u=hr(l);return u!=l&&(s=at(u)),Cd(!0,r,u,s,1)}function $2(r,s){var l=Le(r.doc,s),u=hF(l);return u!=l&&(s=at(u)),Cd(!0,r,l,s,-1)}function Py(r,s){var l=Oy(r,s.line),u=Le(r.doc,l.line),f=Dt(u,r.doc.direction);if(!f||f[0].level==0){var v=Math.max(l.ch,u.text.search(/\S/)),b=s.line==l.line&&s.ch<=v&&s.ch;return W(l.line,b?0:v,l.sticky)}return l}function sc(r,s,l){if(typeof s=="string"&&(s=ou[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 T2(r,s,l){for(var u=0;u<r.state.keyMaps.length;u++){var f=Co(s,r.state.keyMaps[u],l,r);if(f)return f}return r.options.extraKeys&&Co(s,r.options.extraKeys,l,r)||Co(s,r.options.keyMap,l,r)}var k2=new fe;function au(r,s,l,u){var f=r.state.keySeq;if(f){if(ky(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:k2.set(50,function(){r.state.keySeq==f&&(r.state.keySeq=null,r.display.input.reset())}),Ny(r,f+" "+s,l,u))return!0}return Ny(r,s,l,u)}function Ny(r,s,l,u){var f=T2(r,s,u);return f=="multi"&&(r.state.keySeq=s),f=="handled"&&Wt(r,"keyHandled",r,s,l),(f=="handled"||f=="multi")&&(an(l),ad(r)),!!f}function Iy(r,s){var l=By(s,!0);return l?s.shiftKey&&!r.state.keySeq?au(r,"Shift-"+l,s,function(u){return sc(r,u,!0)})||au(r,l,s,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return sc(r,u)}):au(r,l,s,function(u){return sc(r,u)}):!1}function L2(r,s,l){return au(r,"'"+l+"'",s,function(u){return sc(r,u,!0)})}var _d=null;function Ry(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&(s.curOp.focus=ae(ze(s)),!Tt(s,r))){d&&p<11&&r.keyCode==27&&(r.returnValue=!1);var l=r.keyCode;s.display.shift=l==16||r.shiftKey;var u=Iy(s,r);$&&(_d=u?l:null,!u&&l==88&&!kr&&(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)&&B2(s)}}function B2(r){var s=r.display.lineDiv;pe(s,"CodeMirror-crosshair");function l(u){(u.keyCode==18||!u.altKey)&&(z(s,"CodeMirror-crosshair"),on(document,"keyup",l),on(document,"mouseover",l))}Ae(document,"keyup",l),Ae(document,"mouseover",l)}function My(r){r.keyCode==16&&(this.doc.sel.shift=!1),Tt(this,r)}function zy(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&!(ai(s.display,r)||Tt(s,r)||r.ctrlKey&&!r.altKey||k&&r.metaKey)){var l=r.keyCode,u=r.charCode;if($&&l==_d){_d=null,an(r);return}if(!($&&(!r.which||r.which<10)&&Iy(s,r))){var f=String.fromCharCode(u??l);f!="\b"&&(L2(s,r,f)||s.display.input.onKeyPress(r))}}}var O2=400,Sd=function(r,s,l){this.time=r,this.pos=s,this.button=l};Sd.prototype.compare=function(r,s,l){return this.time+O2>r&&ee(s,this.pos)==0&&l==this.button};var uu,lu;function P2(r,s){var l=+new Date;return lu&&lu.compare(l,r,s)?(uu=lu=null,"triple"):uu&&uu.compare(l,r,s)?(lu=new Sd(l,r,s),uu=null,"double"):(uu=new Sd(l,r,s),lu=null,"single")}function Uy(r){var s=this,l=s.display;if(!(Tt(s,r)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=r.shiftKey,ai(l,r)){g||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!Fd(s,r)){var u=bs(s,r),f=Pa(r),v=u?P2(u,f):"single";Ke(s).focus(),f==1&&s.state.selectingText&&s.state.selectingText(r),!(u&&N2(s,f,u,v,r))&&(f==1?u?R2(s,u,v,r):bn(r)==l.scroller&&an(r):f==2?(u&&Jl(s.doc,u),setTimeout(function(){return l.input.focus()},20)):f==3&&(ue?s.display.input.onContextMenu(r):ud(s)))}}}function N2(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,au(r,Ly(v,f),f,function(b){if(typeof b=="string"&&(b=ou[b]),!b)return!1;var D=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),D=b(r,l)!=Te}finally{r.state.suppressEdits=!1}return D})}function I2(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 R2(r,s,l,u){d?setTimeout(ie(Hm,r),0):r.curOp.focus=ae(ze(r));var f=I2(r,l,u),v=r.doc.sel,b;r.options.dragDrop&&zh&&!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)?M2(r,u,s,f):z2(r,u,s,f)}function M2(r,s,l,u){var f=r.display,v=!1,b=Gt(r,function(_){g&&(f.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:ud(r)),on(f.wrapper.ownerDocument,"mouseup",b),on(f.wrapper.ownerDocument,"mousemove",D),on(f.scroller,"dragstart",x),on(f.scroller,"drop",b),v||(an(_),u.addNew||Jl(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())}),D=function(_){v=v||Math.abs(s.clientX-_.clientX)+Math.abs(s.clientY-_.clientY)>=10},x=function(){return v=!0};g&&(f.scroller.draggable=!0),r.state.draggingText=b,b.copy=!u.moveOnDrag,Ae(f.wrapper.ownerDocument,"mouseup",b),Ae(f.wrapper.ownerDocument,"mousemove",D),Ae(f.scroller,"dragstart",x),Ae(f.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Hy(r,s,l){if(l=="char")return new ut(s,s);if(l=="word")return r.findWordAt(s);if(l=="line")return new ut(W(s.line,0),He(r.doc,W(s.line+1,0)));var u=l(r,s);return new ut(u.from,u.to)}function z2(r,s,l,u){d&&ud(r);var f=r.display,v=r.doc;an(s);var b,D,x=v.sel,_=x.ranges;if(u.addNew&&!u.extend?(D=v.sel.contains(l),D>-1?b=_[D]:b=new ut(l,l)):(b=v.sel.primary(),D=v.sel.primIndex),u.unit=="rectangle")u.addNew||(b=new ut(l,l)),l=bs(r,s,!0,!0),D=-1;else{var N=Hy(r,l,u.unit);u.extend?b=Dd(b,N.anchor,N.head,u.extend):b=N}u.addNew?D==-1?(D=_.length,un(v,pr(r,_.concat([b]),D),{scroll:!1,origin:"*mouse"})):_.length>1&&_[D].empty()&&u.unit=="char"&&!u.extend?(un(v,pr(r,_.slice(0,D).concat(_.slice(D+1)),0),{scroll:!1,origin:"*mouse"}),x=v.sel):Ad(v,D,b,G):(D=0,un(v,new Gn([b],0),G),x=v.sel);var H=l;function Q(De){if(ee(H,De)!=0)if(H=De,u.unit=="rectangle"){for(var Fe=[],Ie=r.options.tabSize,Oe=J(Le(v,l.line).text,l.ch,Ie),We=J(Le(v,De.line).text,De.ch,Ie),mt=Math.min(Oe,We),Qt=Math.max(Oe,We),Ft=Math.min(l.line,De.line),Nn=Math.min(r.lastLine(),Math.max(l.line,De.line));Ft<=Nn;Ft++){var An=Le(v,Ft).text,It=oe(An,mt,Ie);mt==Qt?Fe.push(new ut(W(Ft,It),W(Ft,It))):An.length>It&&Fe.push(new ut(W(Ft,It),W(Ft,oe(An,Qt,Ie))))}Fe.length||Fe.push(new ut(l,l)),un(v,pr(r,x.ranges.slice(0,D).concat(Fe),D),{origin:"*mouse",scroll:!1}),r.scrollIntoView(De)}else{var xn=b,nn=Hy(r,De,u.unit),jt=xn.anchor,Rt;ee(nn.anchor,jt)>0?(Rt=nn.head,jt=qt(xn.from(),nn.anchor)):(Rt=nn.anchor,jt=rt(xn.to(),nn.head));var Lt=x.ranges.slice(0);Lt[D]=U2(r,new ut(He(v,jt),Rt)),un(v,pr(r,Lt,D),G)}}var K=f.wrapper.getBoundingClientRect(),te=0;function le(De){var Fe=++te,Ie=bs(r,De,!0,u.unit=="rectangle");if(Ie)if(ee(Ie,H)!=0){r.curOp.focus=ae(ze(r)),Q(Ie);var Oe=Gl(f,v);(Ie.line>=Oe.to||Ie.line<Oe.from)&&setTimeout(Gt(r,function(){te==Fe&&le(De)}),150)}else{var We=De.clientY<K.top?-20:De.clientY>K.bottom?20:0;We&&setTimeout(Gt(r,function(){te==Fe&&(f.scroller.scrollTop+=We,le(De))}),50)}}function ve(De){r.state.selectingText=!1,te=1/0,De&&(an(De),f.input.focus()),on(f.wrapper.ownerDocument,"mousemove",we),on(f.wrapper.ownerDocument,"mouseup",Ee),v.history.lastSelOrigin=null}var we=Gt(r,function(De){De.buttons===0||!Pa(De)?ve(De):le(De)}),Ee=Gt(r,ve);r.state.selectingText=Ee,Ae(f.wrapper.ownerDocument,"mousemove",we),Ae(f.wrapper.ownerDocument,"mouseup",Ee)}function U2(r,s){var l=s.anchor,u=s.head,f=Le(r.doc,l.line);if(ee(l,u)==0&&l.sticky==u.sticky)return s;var v=Dt(f);if(!v)return s;var b=tn(v,l.ch,l.sticky),D=v[b];if(D.from!=l.ch&&D.to!=l.ch)return s;var x=b+(D.from==l.ch==(D.level!=1)?0:1);if(x==0||x==v.length)return s;var _;if(u.line!=l.line)_=(u.line-l.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var N=tn(v,u.ch,u.sticky),H=N-b||(u.ch-l.ch)*(D.level==1?-1:1);N==x-1||N==x?_=H<0:_=H>0}var Q=v[x+(_?-1:0)],K=_==(Q.level==1),te=K?Q.from:Q.to,le=K?"after":"before";return l.ch==te&&l.sticky==le?s:new ut(new W(l.line,te,le),u)}function qy(r,s,l,u){var f,v;if(s.touches)f=s.touches[0].clientX,v=s.touches[0].clientY;else try{f=s.clientX,v=s.clientY}catch{return!1}if(f>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;u&&an(s);var b=r.display,D=b.lineDiv.getBoundingClientRect();if(v>D.bottom||!hn(r,l))return Oa(s);v-=D.top-b.viewOffset;for(var x=0;x<r.display.gutterSpecs.length;++x){var _=b.gutters.childNodes[x];if(_&&_.getBoundingClientRect().right>=f){var N=Br(r.doc,v),H=r.display.gutterSpecs[x];return wt(r,l,r,N,H.className,s),Oa(s)}}}function Fd(r,s){return qy(r,s,"gutterClick",!0)}function jy(r,s){ai(r.display,s)||H2(r,s)||Tt(r,s,"contextmenu")||ue||r.display.input.onContextMenu(s)}function H2(r,s){return hn(r,"gutterContextMenu")?qy(r,s,"gutterContextMenu",!1):!1}function Vy(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qa(r)}var So={toString:function(){return"CodeMirror.Init"}},Wy={},oc={};function q2(r){var s=r.optionHandlers;function l(u,f,v,b){r.defaults[u]=f,v&&(s[u]=b?function(D,x,_){_!=So&&v(D,x,_)}:v)}r.defineOption=l,r.Init=So,l("value","",function(u,f){return u.setValue(f)},!0),l("mode",null,function(u,f){u.doc.modeOption=f,yd(u)},!0),l("indentUnit",2,yd,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(u){Ya(u),qa(u),wn(u)},!0),l("lineSeparator",null,function(u,f){if(u.doc.lineSep=f,!!f){var v=[],b=u.doc.first;u.doc.iter(function(x){for(var _=0;;){var N=x.text.indexOf(f,_);if(N==-1)break;_=N+f.length,v.push(W(b,N))}b++});for(var D=v.length-1;D>=0;D--)xo(u.doc,f,v[D],W(v[D].line,v[D].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!=So&&u.refresh()}),l("specialCharPlaceholder",yF,function(u){return u.refresh()},!0),l("electricChars",!0),l("inputStyle",B?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(u,f){return u.getInputField().spellcheck=f},!0),l("autocorrect",!1,function(u,f){return u.getInputField().autocorrect=f},!0),l("autocapitalize",!1,function(u,f){return u.getInputField().autocapitalize=f},!0),l("rtlMoveVisually",!U),l("wholeLineUpdateBefore",!0),l("theme","default",function(u){Vy(u),Xa(u)},!0),l("keyMap","default",function(u,f,v){var b=ic(f),D=v!=So&&ic(v);D&&D.detach&&D.detach(u,b),b.attach&&b.attach(u,D||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,V2,!0),l("gutters",[],function(u,f){u.display.gutterSpecs=vd(f,u.options.lineNumbers),Xa(u)},!0),l("fixedGutter",!0,function(u,f){u.display.gutters.style.left=f?id(u.display)+"px":"0",u.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(u){return bo(u)},!0),l("scrollbarStyle","native",function(u){Km(u),bo(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=vd(u.options.gutters,f),Xa(u)},!0),l("firstLineNumber",1,Xa,!0),l("lineNumberFormatter",function(u){return u},Xa,!0),l("showCursorWhenSelecting",!1,ja,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(u,f){f=="nocursor"&&(mo(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,j2),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,ja,!0),l("singleCursorHeightPerLine",!0,ja,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,Ya,!0),l("addModeClass",!1,Ya,!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,Ya,!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 j2(r,s,l){var u=l&&l!=So;if(!s!=!u){var f=r.display.dragFunctions,v=s?Ae:on;v(r.display.scroller,"dragstart",f.start),v(r.display.scroller,"dragenter",f.enter),v(r.display.scroller,"dragover",f.over),v(r.display.scroller,"dragleave",f.leave),v(r.display.scroller,"drop",f.drop)}}function V2(r){r.options.lineWrapping?(pe(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(z(r.display.wrapper,"CodeMirror-wrap"),Kh(r)),sd(r),wn(r),qa(r),setTimeout(function(){return bo(r)},100)}function xt(r,s){var l=this;if(!(this instanceof xt))return new xt(r,s);this.options=s=s?se(s):{},se(Wy,s,!1);var u=s.value;typeof u=="string"?u=new Dn(u,s.mode,null,s.lineSeparator,s.direction):s.mode&&(u.modeOption=s.mode),this.doc=u;var f=new xt.inputStyles[s.inputStyle](this),v=this.display=new i2(r,u,f,s);v.wrapper.CodeMirror=this,Vy(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Km(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),W2(this),x2(),xs(this),this.curOp.forceUpdate=!0,iy(this,u),s.autofocus&&!B||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&ld(l)},20):mo(this);for(var b in oc)oc.hasOwnProperty(b)&&oc[b](this,s[b],So);Ym(this),s.finishInit&&s.finishInit(this);for(var D=0;D<$d.length;++D)$d[D](this);Es(this),g&&s.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}xt.defaults=Wy,xt.optionHandlers=oc;function W2(r){var s=r.display;Ae(s.scroller,"mousedown",Gt(r,Uy)),d&&p<11?Ae(s.scroller,"dblclick",Gt(r,function(x){if(!Tt(r,x)){var _=bs(r,x);if(!(!_||Fd(r,x)||ai(r.display,x))){an(x);var N=r.findWordAt(_);Jl(r.doc,N.anchor,N.head)}}})):Ae(s.scroller,"dblclick",function(x){return Tt(r,x)||an(x)}),Ae(s.scroller,"contextmenu",function(x){return jy(r,x)}),Ae(s.input.getField(),"contextmenu",function(x){s.scroller.contains(x.target)||jy(r,x)});var l,u={end:0};function f(){s.activeTouch&&(l=setTimeout(function(){return s.activeTouch=null},1e3),u=s.activeTouch,u.end=+new Date)}function v(x){if(x.touches.length!=1)return!1;var _=x.touches[0];return _.radiusX<=1&&_.radiusY<=1}function b(x,_){if(_.left==null)return!0;var N=_.left-x.left,H=_.top-x.top;return N*N+H*H>20*20}Ae(s.scroller,"touchstart",function(x){if(!Tt(r,x)&&!v(x)&&!Fd(r,x)){s.input.ensurePolled(),clearTimeout(l);var _=+new Date;s.activeTouch={start:_,moved:!1,prev:_-u.end<=300?u:null},x.touches.length==1&&(s.activeTouch.left=x.touches[0].pageX,s.activeTouch.top=x.touches[0].pageY)}}),Ae(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Ae(s.scroller,"touchend",function(x){var _=s.activeTouch;if(_&&!ai(s,x)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=r.coordsChar(s.activeTouch,"page"),H;!_.prev||b(_,_.prev)?H=new ut(N,N):!_.prev.prev||b(_,_.prev.prev)?H=r.findWordAt(N):H=new ut(W(N.line,0),He(r.doc,W(N.line+1,0))),r.setSelection(H.anchor,H.head),r.focus(),an(x)}f()}),Ae(s.scroller,"touchcancel",f),Ae(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Wa(r,s.scroller.scrollTop),Ds(r,s.scroller.scrollLeft,!0),wt(r,"scroll",r))}),Ae(s.scroller,"mousewheel",function(x){return ey(r,x)}),Ae(s.scroller,"DOMMouseScroll",function(x){return ey(r,x)}),Ae(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(x){Tt(r,x)||ti(x)},over:function(x){Tt(r,x)||(A2(r,x),ti(x))},start:function(x){return D2(r,x)},drop:Gt(r,w2),leave:function(x){Tt(r,x)||Fy(r)}};var D=s.input.getField();Ae(D,"keyup",function(x){return My.call(r,x)}),Ae(D,"keydown",Gt(r,Ry)),Ae(D,"keypress",Gt(r,zy)),Ae(D,"focus",function(x){return ld(r,x)}),Ae(D,"blur",function(x){return mo(r,x)})}var $d=[];xt.defineInitHook=function(r){return $d.push(r)};function cu(r,s,l,u){var f=r.doc,v;l==null&&(l="add"),l=="smart"&&(f.mode.indent?v=Ra(r,s).state:l="prev");var b=r.options.tabSize,D=Le(f,s),x=J(D.text,null,b);D.stateAfter&&(D.stateAfter=null);var _=D.text.match(/^\s*/)[0],N;if(!u&&!/\S/.test(D.text))N=0,l="not";else if(l=="smart"&&(N=f.mode.indent(v,D.text.slice(_.length),D.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=x+r.options.indentUnit:l=="subtract"?N=x-r.options.indentUnit:typeof l=="number"&&(N=x+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 xo(f,H,W(s,0),W(s,_.length),"+input"),D.stateAfter=null,!0;for(var te=0;te<f.sel.ranges.length;te++){var le=f.sel.ranges[te];if(le.head.line==s&&le.head.ch<_.length){var ve=W(s,_.length);Ad(f,te,new ut(ve,ve));break}}}var gr=null;function ac(r){gr=r}function Td(r,s,l,u,f){var v=r.doc;r.display.shift=!1,u||(u=v.sel);var b=+new Date-200,D=f=="paste"||r.state.pasteIncoming>b,x=Na(s),_=null;if(D&&u.ranges.length>1)if(gr&&gr.text.join(`
|
|
29
|
+
`)==s){if(u.ranges.length%gr.text.length==0){_=[];for(var N=0;N<gr.text.length;N++)_.push(v.splitLines(gr.text[N]))}}else x.length==u.ranges.length&&r.options.pasteLinesPerSelection&&(_=be(x,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(),le=K.to();K.empty()&&(l&&l>0?te=W(te.line,te.ch-l):r.state.overwrite&&!D?le=W(le.line,Math.min(Le(v,le.line).text.length,le.ch+he(x).length)):D&&gr&&gr.lineWise&&gr.text.join(`
|
|
30
|
+
`)==x.join(`
|
|
31
|
+
`)&&(te=le=W(te.line,0)));var ve={from:te,to:le,text:_?_[Q%_.length]:x,origin:f||(D?"paste":r.state.cutIncoming>b?"cut":"+input")};Ao(r.doc,ve),Wt(r,"inputRead",r,ve)}s&&!D&&Ky(r,s),yo(r),r.curOp.updateInput<2&&(r.curOp.updateInput=H),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function Gy(r,s){var l=r.clipboardData&&r.clipboardData.getData("Text");if(l)return r.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Pn(s,function(){return Td(s,l,0,null,"paste")}),!0}function Ky(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 D=0;D<v.electricChars.length;D++)if(s.indexOf(v.electricChars.charAt(D))>-1){b=cu(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=cu(r,f.head.line,"smart"));b&&Wt(r,"electricInput",r,f.head.line)}}}function Qy(r){for(var s=[],l=[],u=0;u<r.doc.sel.ranges.length;u++){var f=r.doc.sel.ranges[u].head.line,v={anchor:W(f,0),head:W(f+1,0)};l.push(v),s.push(r.getRange(v.anchor,v.head))}return{text:s,ranges:l}}function kd(r,s,l,u){r.setAttribute("autocorrect",l?"on":"off"),r.setAttribute("autocapitalize",u?"on":"off"),r.setAttribute("spellcheck",!!s)}function Xy(){var r=w("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=w("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 G2(r){var s=r.optionHandlers,l=r.helpers={};r.prototype={constructor:r,focus:function(){Ke(this).focus(),this.display.input.focus()},setOption:function(u,f){var v=this.options,b=v[u];v[u]==f&&u!="mode"||(v[u]=f,s.hasOwnProperty(u)&&Gt(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"](ic(u))},removeKeyMap:function(u){for(var f=this.state.keyMaps,v=0;v<f.length;++v)if(f[v]==u||f[v].name==u)return f.splice(v,1),!0},addOverlay:pn(function(u,f){var v=u.token?u:r.getMode(this.options,u);if(v.startState)throw new Error("Overlays may not be stateful.");xe(this.state.overlays,{mode:v,modeSpec:u,opaque:f&&f.opaque,priority:f&&f.priority||0},function(b){return b.priority}),this.state.modeGen++,wn(this)}),removeOverlay:pn(function(u){for(var f=this.state.overlays,v=0;v<f.length;++v){var b=f[v].modeSpec;if(b==u||typeof u=="string"&&b.name==u){f.splice(v,1),this.state.modeGen++,wn(this);return}}}),indentLine:pn(function(u,f,v){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),T(this.doc,u)&&cu(this,u,f,v)}),indentSelection:pn(function(u){for(var f=this.doc.sel.ranges,v=-1,b=0;b<f.length;b++){var D=f[b];if(D.empty())D.head.line>v&&(cu(this,D.head.line,u,!0),v=D.head.line,b==this.doc.sel.primIndex&&yo(this));else{var x=D.from(),_=D.to(),N=Math.max(v,x.line);v=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var H=N;H<v;++H)cu(this,H,u);var Q=this.doc.sel.ranges;x.ch==0&&f.length==Q.length&&Q[b].from().ch>0&&Ad(this.doc,b,new ut(x,Q[b].to()),I)}}}),getTokenAt:function(u,f){return om(this,u,f)},getLineTokens:function(u,f){return om(this,W(u),f,!0)},getTokenTypeAt:function(u){u=He(this.doc,u);var f=rm(this,Le(this.doc,u.line)),v=0,b=(f.length-1)/2,D=u.ch,x;if(D==0)x=f[2];else for(;;){var _=v+b>>1;if((_?f[_*2-1]:0)>=D)b=_;else if(f[_*2+1]<D)v=_+1;else{x=f[_*2+2];break}}var N=x?x.indexOf("overlay "):-1;return N<0?x:N==0?null:x.slice(0,N-1)},getModeAt:function(u){var f=this.doc.mode;return f.innerMode?r.innerMode(f,this.getTokenAt(u).state).mode:f},getHelper:function(u,f){return this.getHelpers(u,f)[0]},getHelpers:function(u,f){var v=[];if(!l.hasOwnProperty(f))return v;var b=l[f],D=this.getModeAt(u);if(typeof D[f]=="string")b[D[f]]&&v.push(b[D[f]]);else if(D[f])for(var x=0;x<D[f].length;x++){var _=b[D[f][x]];_&&v.push(_)}else D.helperType&&b[D.helperType]?v.push(b[D.helperType]):b[D.name]&&v.push(b[D.name]);for(var N=0;N<b._global.length;N++){var H=b._global[N];H.pred(D,this)&&Se(v,H.val)==-1&&v.push(H.val)}return v},getStateAfter:function(u,f){var v=this.doc;return u=Wn(v,u??v.first+v.size-1),Ra(this,u+1,f).state},cursorCoords:function(u,f){var v,b=this.doc.sel.primary();return u==null?v=b.head:typeof u=="object"?v=He(this.doc,u):v=u?b.from():b.to(),dr(this,v,f||"page")},charCoords:function(u,f){return ql(this,He(this.doc,u),f||"page")},coordsChar:function(u,f){return u=Pm(this,u,f||"page"),td(this,u.left,u.top)},lineAtHeight:function(u,f){return u=Pm(this,{top:u,left:0},f||"page").top,Br(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,f,v){var b=!1,D;if(typeof u=="number"){var x=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>x&&(u=x,b=!0),D=Le(this.doc,u)}else D=u;return Hl(this,D,{top:0,left:0},f||"page",v||b).top+(b?this.doc.height-oi(D):0)},defaultTextHeight:function(){return go(this.display)},defaultCharWidth:function(){return vo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,f,v,b,D){var x=this.display;u=dr(this,He(this.doc,u));var _=u.bottom,N=u.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),x.sizer.appendChild(f),b=="over")_=u.top;else if(b=="above"||b=="near"){var H=Math.max(x.wrapper.clientHeight,this.doc.height),Q=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(b=="above"||u.bottom+f.offsetHeight>H)&&u.top>f.offsetHeight?_=u.top-f.offsetHeight:u.bottom+f.offsetHeight<=H&&(_=u.bottom),N+f.offsetWidth>Q&&(N=Q-f.offsetWidth)}f.style.top=_+"px",f.style.left=f.style.right="",D=="right"?(N=x.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(D=="left"?N=0:D=="middle"&&(N=(x.sizer.clientWidth-f.offsetWidth)/2),f.style.left=N+"px"),v&&jF(this,{left:N,top:_,right:N+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:pn(Ry),triggerOnKeyPress:pn(zy),triggerOnKeyUp:My,triggerOnMouseDown:pn(Uy),execCommand:function(u){if(ou.hasOwnProperty(u))return ou[u].call(null,this)},triggerElectric:pn(function(u){Ky(this,u)}),findPosH:function(u,f,v,b){var D=1;f<0&&(D=-1,f=-f);for(var x=He(this.doc,u),_=0;_<f&&(x=Ld(this.doc,x,D,v,b),!x.hitSide);++_);return x},moveH:pn(function(u,f){var v=this;this.extendSelectionsBy(function(b){return v.display.shift||v.doc.extend||b.empty()?Ld(v.doc,b.head,u,f,v.options.rtlMoveVisually):u<0?b.from():b.to()},re)}),deleteH:pn(function(u,f){var v=this.doc.sel,b=this.doc;v.somethingSelected()?b.replaceSelection("",null,"+delete"):_o(this,function(D){var x=Ld(b,D.head,u,f,!1);return u<0?{from:x,to:D.head}:{from:D.head,to:x}})}),findPosV:function(u,f,v,b){var D=1,x=b;f<0&&(D=-1,f=-f);for(var _=He(this.doc,u),N=0;N<f;++N){var H=dr(this,_,"div");if(x==null?x=H.left:H.left=x,_=Yy(this,H,D,v),_.hitSide)break}return _},moveV:pn(function(u,f){var v=this,b=this.doc,D=[],x=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(N){if(x)return u<0?N.from():N.to();var H=dr(v,N.head,"div");N.goalColumn!=null&&(H.left=N.goalColumn),D.push(H.left);var Q=Yy(v,H,u,f);return f=="page"&&N==b.sel.primary()&&fd(v,ql(v,Q,"div").top-H.top),Q},re),D.length)for(var _=0;_<b.sel.ranges.length;_++)b.sel.ranges[_].goalColumn=D[_]}),findWordAt:function(u){var f=this.doc,v=Le(f,u.line).text,b=u.ch,D=u.ch;if(v){var x=this.getHelper(u,"wordChars");(u.sticky=="before"||D==v.length)&&b?--b:++D;for(var _=v.charAt(b),N=Re(_,x)?function(H){return Re(H,x)}:/\s/.test(_)?function(H){return/\s/.test(H)}:function(H){return!/\s/.test(H)&&!Re(H)};b>0&&N(v.charAt(b-1));)--b;for(;D<v.length&&N(v.charAt(D));)++D}return new ut(W(u.line,b),W(u.line,D))},toggleOverwrite:function(u){u!=null&&u==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?pe(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ae(ze(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:pn(function(u,f){Va(this,u,f)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-Pr(this)-this.display.barHeight,width:u.scrollWidth-Pr(this)-this.display.barWidth,clientHeight:Yh(this),clientWidth:ms(this)}},scrollIntoView:pn(function(u,f){u==null?(u={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof u=="number"?u={from:W(u,0),to:null}:u.from==null&&(u={from:u,to:null}),u.to||(u.to=u.from),u.margin=f||0,u.from.line!=null?VF(this,u):jm(this,u.from,u.to,u.margin)}),setSize:pn(function(u,f){var v=this,b=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};u!=null&&(this.display.wrapper.style.width=b(u)),f!=null&&(this.display.wrapper.style.height=b(f)),this.options.lineWrapping&&Lm(this);var D=this.display.viewFrom;this.doc.iter(D,this.display.viewTo,function(x){if(x.widgets){for(var _=0;_<x.widgets.length;_++)if(x.widgets[_].noHScroll){Mi(v,D,"widget");break}}++D}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(u){return Pn(this,u)},startOperation:function(){return xs(this)},endOperation:function(){return Es(this)},refresh:pn(function(){var u=this.display.cachedTextHeight;wn(this),this.curOp.forceUpdate=!0,qa(this),Va(this,this.doc.scrollLeft,this.doc.scrollTop),pd(this.display),(u==null||Math.abs(u-go(this.display))>.5||this.options.lineWrapping)&&sd(this),wt(this,"refresh",this)}),swapDoc:pn(function(u){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),iy(this,u),qa(this),this.display.input.reset(),Va(this,u.scrollLeft,u.scrollTop),this.curOp.forceScroll=!0,Wt(this,"swapDoc",this,f),f}),phrase:function(u){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,u)?f[u]:u},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},dn(r),r.registerHelper=function(u,f,v){l.hasOwnProperty(u)||(l[u]=r[u]={_global:[]}),l[u][f]=v},r.registerGlobalHelper=function(u,f,v,b){r.registerHelper(u,f,b),l[u]._global.push({pred:v,val:b})}}function Ld(r,s,l,u,f){var v=s,b=l,D=Le(r,s.line),x=f&&r.direction=="rtl"?-l:l;function _(){var Ee=s.line+x;return Ee<r.first||Ee>=r.first+r.size?!1:(s=new W(Ee,s.ch,s.sticky),D=Le(r,Ee))}function N(Ee){var De;if(u=="codepoint"){var Fe=D.text.charCodeAt(s.ch+(l>0?0:-1));if(isNaN(Fe))De=null;else{var Ie=l>0?Fe>=55296&&Fe<56320:Fe>=56320&&Fe<57343;De=new W(s.line,Math.max(0,Math.min(D.text.length,s.ch+l*(Ie?2:1))),-l)}}else f?De=F2(r.cm,D,s,l):De=Ed(D,s,l);if(De==null)if(!Ee&&_())s=Cd(f,r.cm,D,s.line,x);else return!1;else s=De;return!0}if(u=="char"||u=="codepoint")N();else if(u=="column")N(!0);else if(u=="word"||u=="group")for(var H=null,Q=u=="group",K=r.cm&&r.cm.getHelper(s,"wordChars"),te=!0;!(l<0&&!N(!te));te=!1){var le=D.text.charAt(s.ch)||`
|
|
32
|
+
`,ve=Re(le,K)?"w":Q&&le==`
|
|
33
|
+
`?"n":!Q||/\s/.test(le)?null:"p";if(Q&&!te&&!ve&&(ve="s"),H&&H!=ve){l<0&&(l=1,N(),s.sticky="after");break}if(ve&&(H=ve),l>0&&!N(!te))break}var we=tc(r,s,v,b,!0);return Ue(v,we)&&(we.hitSide=!0),we}function Yy(r,s,l,u){var f=r.doc,v=s.left,b;if(u=="page"){var D=Math.min(r.display.wrapper.clientHeight,Ke(r).innerHeight||f(r).documentElement.clientHeight),x=Math.max(D-.5*go(r.display),3);b=(l>0?s.bottom:s.top)+l*x}else u=="line"&&(b=l>0?s.bottom+3:s.top-3);for(var _;_=td(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,kd(f,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function v(D){for(var x=D.target;x;x=x.parentNode){if(x==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}Ae(f,"paste",function(D){!v(D)||Tt(u,D)||Gy(D,u)||p<=11&&setTimeout(Gt(u,function(){return s.updateFromDOM()}),20)}),Ae(f,"compositionstart",function(D){s.composing={data:D.data,done:!1}}),Ae(f,"compositionupdate",function(D){s.composing||(s.composing={data:D.data,done:!1})}),Ae(f,"compositionend",function(D){s.composing&&(D.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(D){if(!(!v(D)||Tt(u,D))){if(u.somethingSelected())ac({lineWise:!1,text:u.getSelections()}),D.type=="cut"&&u.replaceSelection("",null,"cut");else if(u.options.lineWiseCopyCut){var x=Qy(u);ac({lineWise:!0,text:x.text}),D.type=="cut"&&u.operation(function(){u.setSelections(x.ranges,0,I),u.replaceSelection("",null,"cut")})}else return;if(D.clipboardData){D.clipboardData.clearData();var _=gr.text.join(`
|
|
34
|
+
`);if(D.clipboardData.setData("Text",_),D.clipboardData.getData("Text")==_){D.preventDefault();return}}var N=Xy(),H=N.firstChild;kd(H),u.display.lineSpace.insertBefore(N,u.display.lineSpace.firstChild),H.value=gr.text.join(`
|
|
35
|
+
`);var Q=ae(f.ownerDocument);_e(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=Um(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=uc(s,r.anchorNode,r.anchorOffset),b=uc(s,r.focusNode,r.focusOffset);if(!(v&&!v.bad&&b&&!b.bad&&ee(qt(v,b),u)==0&&ee(rt(v,b),f)==0)){var D=s.display.view,x=u.line>=s.display.viewFrom&&Zy(s,u)||{node:D[0].measure.map[2],offset:0},_=f.line<s.display.viewTo&&Zy(s,f);if(!_){var N=D[D.length-1].measure,H=N.maps?N.maps[N.maps.length-1]:N.map;_={node:H[H.length-1],offset:H[H.length-2]-H[H.length-3]}}if(!x||!_){r.removeAllRanges();return}var Q=r.rangeCount&&r.getRangeAt(0),K;try{K=V(x.node,x.offset,_.offset,_.node)}catch{}K&&(!o&&s.state.focused?(r.collapse(x.node,x.offset),K.collapsed||(r.removeAllRanges(),r.addRange(K))):(r.removeAllRanges(),r.addRange(K)),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):Pn(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function l(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},dt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},dt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),s=this.cm;if(O&&m&&this.cm.display.gutterSpecs.length&&K2(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=uc(s,r.anchorNode,r.anchorOffset),u=uc(s,r.focusNode,r.focusOffset);l&&u&&Pn(s,function(){un(s.doc,Ui(l,u),I),(l.bad||u.bad)&&(s.curOp.selectionChanged=!0)})}}},dt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,s=r.display,l=r.doc.sel.primary(),u=l.from(),f=l.to();if(u.ch==0&&u.line>r.firstLine()&&(u=W(u.line-1,Le(r.doc,u.line-1).length)),f.ch==Le(r.doc,f.line).text.length&&f.line<r.lastLine()&&(f=W(f.line+1,0)),u.line<s.viewFrom||f.line>s.viewTo-1)return!1;var v,b,D;u.line==s.viewFrom||(v=ws(r,u.line))==0?(b=at(s.view[0].line),D=s.view[0].node):(b=at(s.view[v].line),D=s.view[v-1].node.nextSibling);var x=ws(r,f.line),_,N;if(x==s.view.length-1?(_=s.viewTo-1,N=s.lineDiv.lastChild):(_=at(s.view[x+1].line)-1,N=s.view[x+1].node.previousSibling),!D)return!1;for(var H=r.doc.splitLines(Q2(r,D,N,b,_)),Q=ii(r.doc,W(b,0),W(_,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,le=H[0],ve=Q[0],we=Math.min(le.length,ve.length);K<we&&le.charCodeAt(K)==ve.charCodeAt(K);)++K;for(var Ee=he(H),De=he(Q),Fe=Math.min(Ee.length-(H.length==1?K:0),De.length-(Q.length==1?K:0));te<Fe&&Ee.charCodeAt(Ee.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&&Ee.charCodeAt(Ee.length-te-1)==De.charCodeAt(De.length-te-1);)K--,te++;H[H.length-1]=Ee.slice(0,Ee.length-te).replace(/^\u200b+/,""),H[0]=H[0].slice(K).replace(/\u200b+$/,"");var Ie=W(b,K),Oe=W(_,Q.length?he(Q).length-te:0);if(H.length>1||H[0]||ee(Ie,Oe))return xo(r.doc,H,Ie,Oe,"+input"),!0},dt.prototype.ensurePolled=function(){this.forceCompositionEnd()},dt.prototype.reset=function(){this.forceCompositionEnd()},dt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},dt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},dt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&Pn(this.cm,function(){return wn(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()||Gt(this.cm,Td)(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 Zy(r,s){var l=Zh(r,s.line);if(!l||l.hidden)return null;var u=Le(r.doc,s.line),f=Sm(l,u,s.line),v=Dt(u,r.doc.direction),b="left";if(v){var D=tn(v,s.ch);b=D%2?"right":"left"}var x=Tm(f.map,s.ch,b);return x.offset=x.collapse=="right"?x.end:x.start,x}function K2(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function Fo(r,s){return s&&(r.bad=!0),r}function Q2(r,s,l,u,f){var v="",b=!1,D=r.doc.lineSeparator(),x=!1;function _(K){return function(te){return te.id==K}}function N(){b&&(v+=D,x&&(v+=D),b=x=!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 le=K.getAttribute("cm-marker"),ve;if(le){var we=r.findMarks(W(u,0),W(f+1,0),_(+le));we.length&&(ve=we[0].find(0))&&H(ii(r.doc,ve.from,ve.to).join(D));return}if(K.getAttribute("contenteditable")=="false")return;var Ee=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;Ee&&N();for(var De=0;De<K.childNodes.length;De++)Q(K.childNodes[De]);/^(pre|p)$/i.test(K.nodeName)&&(x=!0),Ee&&(b=!0)}else K.nodeType==3&&H(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Q(s),s!=l;)s=s.nextSibling,x=!1;return v}function uc(r,s,l){var u;if(s==r.display.lineDiv){if(u=r.display.lineDiv.childNodes[l],!u)return Fo(r.clipPos(W(r.display.viewTo-1)),!0);s=null,l=0}else for(u=s;;u=u.parentNode){if(!u||u==r.display.lineDiv)return null;if(u.parentNode&&u.parentNode==r.display.lineDiv)break}for(var f=0;f<r.display.view.length;f++){var v=r.display.view[f];if(v.node==u)return X2(v,s,l)}}function X2(r,s,l){var u=r.text.firstChild,f=!1;if(!s||!Z(u,s))return Fo(W(at(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 Fo(W(at(v),v.text.length),f)}var b=s.nodeType==3?s:null,D=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,l&&(l=b.nodeValue.length));D.parentNode!=u;)D=D.parentNode;var x=r.measure,_=x.maps;function N(ve,we,Ee){for(var De=-1;De<(_?_.length:0);De++)for(var Fe=De<0?x.map:_[De],Ie=0;Ie<Fe.length;Ie+=3){var Oe=Fe[Ie+2];if(Oe==ve||Oe==we){var We=at(De<0?r.line:r.rest[De]),mt=Fe[Ie]+Ee;return(Ee<0||Oe!=ve)&&(mt=Fe[Ie+(Ee?1:0)]),W(We,mt)}}}var H=N(b,D,l);if(H)return Fo(H,f);for(var Q=D.nextSibling,K=b?b.nodeValue.length-l:0;Q;Q=Q.nextSibling){if(H=N(Q,Q.firstChild,0),H)return Fo(W(H.line,H.ch-K),f);K+=Q.textContent.length}for(var te=D.previousSibling,le=l;te;te=te.previousSibling){if(H=N(te,te.firstChild,-1),H)return Fo(W(H.line,H.ch+le),f);le+=te.textContent.length}}var Ot=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ot.prototype.init=function(r){var s=this,l=this,u=this.cm;this.createField(r);var f=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),S&&(f.style.width="0px"),Ae(f,"input",function(){d&&p>=9&&s.hasSelection&&(s.hasSelection=null),l.poll()}),Ae(f,"paste",function(b){Tt(u,b)||Gy(b,u)||(u.state.pasteIncoming=+new Date,l.fastPoll())});function v(b){if(!Tt(u,b)){if(u.somethingSelected())ac({lineWise:!1,text:u.getSelections()});else if(u.options.lineWiseCopyCut){var D=Qy(u);ac({lineWise:!0,text:D.text}),b.type=="cut"?u.setSelections(D.ranges,null,I):(l.prevInput="",f.value=D.text.join(`
|
|
36
|
+
`),_e(f))}else return;b.type=="cut"&&(u.state.cutIncoming=+new Date)}}Ae(f,"cut",v),Ae(f,"copy",v),Ae(r.scroller,"paste",function(b){if(!(ai(r,b)||Tt(u,b))){if(!f.dispatchEvent){u.state.pasteIncoming=+new Date,l.focus();return}var D=new Event("paste");D.clipboardData=b.clipboardData,f.dispatchEvent(D)}}),Ae(r.lineSpace,"selectstart",function(b){ai(r,b)||an(b)}),Ae(f,"compositionstart",function(){var b=u.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:b,range:u.markText(b,u.getCursor("to"),{className:"CodeMirror-composing"})}}),Ae(f,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Ot.prototype.createField=function(r){this.wrapper=Xy(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;kd(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},Ot.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},Ot.prototype.prepareSelection=function(){var r=this.cm,s=r.display,l=r.doc,u=Um(r);if(r.options.moveInputWithCursor){var f=dr(r,l.sel.primary().head,"div"),v=s.wrapper.getBoundingClientRect(),b=s.lineDiv.getBoundingClientRect();u.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,f.top+b.top-v.top)),u.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,f.left+b.left-v.left))}return u},Ot.prototype.showSelection=function(r){var s=this.cm,l=s.display;F(l.cursorDiv,r.cursors),F(l.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},Ot.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var l=s.getSelection();this.textarea.value=l,s.state.focused&&_e(this.textarea),d&&p>=9&&(this.hasSelection=l)}else r||(this.prevInput=this.textarea.value="",d&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ot.prototype.getField=function(){return this.textarea},Ot.prototype.supportsTouch=function(){return!1},Ot.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!B||ae(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Ot.prototype.blur=function(){this.textarea.blur()},Ot.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ot.prototype.receivedFocus=function(){this.slowPoll()},Ot.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},Ot.prototype.fastPoll=function(){var r=!1,s=this;s.pollingFast=!0;function l(){var u=s.poll();!u&&!r?(r=!0,s.polling.set(60,l)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,l)},Ot.prototype.poll=function(){var r=this,s=this.cm,l=this.textarea,u=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Oi(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,D=Math.min(u.length,f.length);b<D&&u.charCodeAt(b)==f.charCodeAt(b);)++b;return Pn(s,function(){Td(s,f.slice(b),u.length-b,null,r.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
37
|
+
`)>-1?l.value=r.prevInput="":r.prevInput=f,r.composing&&(r.composing.range.clear(),r.composing.range=s.markText(r.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ot.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ot.prototype.onKeyPress=function(){d&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ot.prototype.onContextMenu=function(r){var s=this,l=s.cm,u=l.display,f=s.textarea;s.contextMenuPending&&s.contextMenuPending();var v=bs(l,r),b=u.scroller.scrollTop;if(!v||$)return;var D=l.options.resetSelectionOnContextMenu;D&&l.doc.sel.contains(v)==-1&&Gt(l,un)(l.doc,Ui(v),I);var x=f.style.cssText,_=s.wrapper.style.cssText,N=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
38
|
+
top: `+(r.clientY-N.top-5)+"px; left: "+(r.clientX-N.left-5)+`px;
|
|
39
|
+
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
40
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var H;g&&(H=f.ownerDocument.defaultView.scrollY),u.input.focus(),g&&f.ownerDocument.defaultView.scrollTo(null,H),u.input.reset(),l.somethingSelected()||(f.value=s.prevInput=" "),s.contextMenuPending=K,u.selForContextMenu=l.doc.sel,clearTimeout(u.detectingSelectAll);function Q(){if(f.selectionStart!=null){var le=l.somethingSelected(),ve=""+(le?f.value:"");f.value="⇚",f.value=ve,s.prevInput=le?"":"",f.selectionStart=1,f.selectionEnd=ve.length,u.selForContextMenu=l.doc.sel}}function K(){if(s.contextMenuPending==K&&(s.contextMenuPending=!1,s.wrapper.style.cssText=_,f.style.cssText=x,d&&p<9&&u.scrollbars.setScrollTop(u.scroller.scrollTop=b),f.selectionStart!=null)){(!d||d&&p<9)&&Q();var le=0,ve=function(){u.selForContextMenu==l.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&s.prevInput==""?Gt(l,my)(l):le++<10?u.detectingSelectAll=setTimeout(ve,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(ve,200)}}if(d&&p>=9&&Q(),ue){ti(r);var te=function(){on(window,"mouseup",te),setTimeout(K,20)};Ae(window,"mouseup",te)}else setTimeout(K,50)},Ot.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},Ot.prototype.setUneditable=function(){},Ot.prototype.needsContentAttribute=!1;function Y2(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=D.getValue()}var f;if(r.form&&(Ae(r.form,"submit",u),!s.leaveSubmitMethodAlone)){var v=r.form;f=v.submit;try{var b=v.submit=function(){u(),v.submit=f,v.submit(),v.submit=b}}catch{}}s.finishInit=function(x){x.save=u,x.getTextArea=function(){return r},x.toTextArea=function(){x.toTextArea=isNaN,u(),r.parentNode.removeChild(x.getWrapperElement()),r.style.display="",r.form&&(on(r.form,"submit",u),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=f))}},r.style.display="none";var D=xt(function(x){return r.parentNode.insertBefore(x,r.nextSibling)},s);return D}function Z2(r){r.off=on,r.on=Ae,r.wheelEventPixels=s2,r.Doc=Dn,r.splitLines=Na,r.countColumn=J,r.findColumn=oe,r.isWordChar=Pe,r.Pass=Te,r.signal=wt,r.Line=fo,r.changeEnd=Hi,r.scrollbarModel=Gm,r.Pos=W,r.cmpPos=ee,r.modes=fr,r.mimeModes=Pi,r.resolveMode=On,r.getMode=ni,r.modeExtensions=Ni,r.extendMode=Bl,r.copyState=ri,r.startState=Ia,r.innerMode=Ii,r.commands=ou,r.keyMap=li,r.keyName=By,r.isModifierKey=ky,r.lookupKey=Co,r.normalizeKeyMap=S2,r.StringStream=kt,r.SharedTextMarker=ru,r.TextMarker=ji,r.LineWidget=nu,r.e_preventDefault=an,r.e_stopPropagation=vs,r.e_stop=ti,r.addClass=pe,r.contains=Z,r.rmClass=z,r.keyNames=Vi}q2(xt),G2(xt);var J2="iter insert remove copy getEditor constructor".split(" ");for(var lc in Dn.prototype)Dn.prototype.hasOwnProperty(lc)&&Se(J2,lc)<0&&(xt.prototype[lc]=function(r){return function(){return r.apply(this.doc,arguments)}}(Dn.prototype[lc]));return dn(Dn),xt.inputStyles={textarea:Ot,contenteditable:dt},xt.defineMode=function(r){!xt.defaults.mode&&r!="null"&&(xt.defaults.mode=r),Ll.apply(this,arguments)},xt.defineMIME=lo,xt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),xt.defineMIME("text/plain","null"),xt.defineExtension=function(r,s){xt.prototype[r]=s},xt.defineDocExtension=function(r,s){Dn.prototype[r]=s},xt.fromTextArea=Y2,Z2(xt),xt.version="5.65.12",xt})}(OLe)),$f}var PLe=ka();const NLe=cO(PLe);var ILe={};(function(e,t){(function(n){n(ka())})(function(n){n.defineMode("javascript",function(i,o){var a=i.indentUnit,c=o.statementIndent,h=o.jsonld,d=o.json||h,p=o.trackScope!==!1,g=o.typescript,y=o.wordCharacters||/[\w$\xa1-\uffff]/,m=function(){function T(qt){return{type:qt,style:"keyword"}}var q=T("keyword a"),W=T("keyword b"),ee=T("keyword c"),Ue=T("keyword d"),Qe=T("operator"),rt={type:"atom",style:"atom"};return{if:T("if"),while:q,with:q,else:W,do:W,try:W,finally:W,return:Ue,break:Ue,continue:Ue,new:T("new"),delete:ee,void:ee,throw:ee,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Qe,typeof:Qe,instanceof:Qe,true: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,W,ee=!1;(W=T.next())!=null;){if(!q){if(W=="/"&&!ee)return;W=="["?ee=!0:ee&&W=="]"&&(ee=!1)}q=!q&&W=="\\"}}var E,C;function S(T,q,W){return E=T,C=W,q}function O(T,q){var W=T.next();if(W=='"'||W=="'")return q.tokenize=B(W),q.tokenize(T,q);if(W=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(W=="."&&T.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(W))return S(W);if(W=="="&&T.eat(">"))return S("=>","operator");if(W=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(W))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(W=="/")return T.eat("*")?(q.tokenize=k,k(T,q)):T.eat("/")?(T.skipToEnd(),S("comment","comment")):Br(T,q,1)?(L(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(T.eat("="),S("operator","operator",T.current()));if(W=="`")return q.tokenize=M,M(T,q);if(W=="#"&&T.peek()=="!")return T.skipToEnd(),S("meta","meta");if(W=="#"&&T.eatWhile(y))return S("variable","property");if(W=="<"&&T.match("!--")||W=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),S("comment","comment");if(A.test(W))return(W!=">"||!q.lexical||q.lexical.type!=">")&&(T.eat("=")?(W=="!"||W=="=")&&T.eat("="):/[<>*+\-|&?]/.test(W)&&(T.eat(W),W==">"&&T.eat(W))),W=="?"&&T.eat(".")?S("."):S("operator","operator",T.current());if(y.test(W)){T.eatWhile(y);var ee=T.current();if(q.lastType!="."){if(m.propertyIsEnumerable(ee)){var Ue=m[ee];return S(Ue.type,Ue.style,ee)}if(ee=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",ee)}return S("variable","variable",ee)}}function B(T){return function(q,W){var ee=!1,Ue;if(h&&q.peek()=="@"&&q.match($))return W.tokenize=O,S("jsonld-keyword","meta");for(;(Ue=q.next())!=null&&!(Ue==T&&!ee);)ee=!ee&&Ue=="\\";return ee||(W.tokenize=O),S("string","string")}}function k(T,q){for(var W=!1,ee;ee=T.next();){if(ee=="/"&&W){q.tokenize=O;break}W=ee=="*"}return S("comment","comment")}function M(T,q){for(var W=!1,ee;(ee=T.next())!=null;){if(!W&&(ee=="`"||ee=="$"&&T.eat("{"))){q.tokenize=O;break}W=!W&&ee=="\\"}return S("quasi","string-2",T.current())}var U="([{}])";function j(T,q){q.fatArrowAt&&(q.fatArrowAt=null);var W=T.string.indexOf("=>",T.start);if(!(W<0)){if(g){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,W));ee&&(W=ee.index)}for(var Ue=0,Qe=!1,rt=W-1;rt>=0;--rt){var qt=T.string.charAt(rt),Wn=U.indexOf(qt);if(Wn>=0&&Wn<3){if(!Ue){++rt;break}if(--Ue==0){qt=="("&&(Qe=!0);break}}else if(Wn>=3&&Wn<6)++Ue;else if(y.test(qt))Qe=!0;else if(/["'\/`]/.test(qt))for(;;--rt){if(rt==0)return;var He=T.string.charAt(rt-1);if(He==qt&&T.string.charAt(rt-2)!="\\"){rt--;break}}else if(Qe&&!Ue){++rt;break}}Qe&&!Ue&&(q.fatArrowAt=rt)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ue(T,q,W,ee,Ue,Qe){this.indented=T,this.column=q,this.type=W,this.prev=Ue,this.info=Qe,ee!=null&&(this.align=ee)}function Y(T,q){if(!p)return!1;for(var W=T.localVars;W;W=W.next)if(W.name==q)return!0;for(var ee=T.context;ee;ee=ee.prev)for(var W=ee.vars;W;W=W.next)if(W.name==q)return!0}function z(T,q,W,ee,Ue){var Qe=T.cc;for(P.state=T,P.stream=Ue,P.marked=null,P.cc=Qe,P.style=q,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var rt=Qe.length?Qe.pop():d?Te:Se;if(rt(W,ee)){for(;Qe.length&&Qe[Qe.length-1].lex;)Qe.pop()();return P.marked?P.marked:W=="variable"&&Y(T,ee)?"variable-2":q}}}var P={state:null,column:null,marked:null,cc:null};function F(){for(var T=arguments.length-1;T>=0;T--)P.cc.push(arguments[T])}function w(){return F.apply(null,arguments),!0}function R(T,q){for(var W=q;W;W=W.next)if(W.name==T)return!0;return!1}function V(T){var q=P.state;if(P.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var W=Z(T,q.context);if(W!=null){q.context=W;return}}else if(!R(T,q.localVars)){q.localVars=new $e(T,q.localVars);return}}o.globalVars&&!R(T,q.globalVars)&&(q.globalVars=new $e(T,q.globalVars))}}function Z(T,q){if(q)if(q.block){var W=Z(T,q.prev);return W?W==q.prev?q:new pe(W,q.vars,!0):null}else return R(T,q.vars)?q:new pe(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 pe(T,q,W){this.prev=T,this.vars=q,this.block=W}function $e(T,q){this.name=T,this.next=q}var _e=new $e("this",new $e("arguments",null));function ze(){P.state.context=new pe(P.state.context,P.state.localVars,!1),P.state.localVars=_e}function Ke(){P.state.context=new pe(P.state.context,P.state.localVars,!0),P.state.localVars=null}ze.lex=Ke.lex=!0;function ie(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}ie.lex=!0;function se(T,q){var W=function(){var ee=P.state,Ue=ee.indented;if(ee.lexical.type=="stat")Ue=ee.lexical.indented;else for(var Qe=ee.lexical;Qe&&Qe.type==")"&&Qe.align;Qe=Qe.prev)Ue=Qe.indented;ee.lexical=new ue(Ue,P.stream.column(),T,null,ee.lexical,q)};return W.lex=!0,W}function J(){var T=P.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}J.lex=!0;function fe(T){function q(W){return W==T?w():T==";"||W=="}"||W==")"||W=="]"?F():w(q)}return q}function Se(T,q){return T=="var"?w(se("vardef",q),ti,fe(";"),J):T=="keyword a"?w(se("form"),G,Se,J):T=="keyword b"?w(se("form"),Se,J):T=="keyword d"?P.stream.match(/^\s*$/,!1)?w():w(se("stat"),oe,fe(";"),J):T=="debugger"?w(fe(";")):T=="{"?w(se("}"),Ke,Vn,J,ie):T==";"?w():T=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==J&&P.state.cc.pop()(),w(se("form"),G,Se,J,uo)):T=="function"?w(kr):T=="for"?w(se("form"),Ke,Tl,Se,ie,J):T=="class"||g&&q=="interface"?(P.marked="keyword",w(se("form",T=="class"?T:q),Ll,J)):T=="variable"?g&&q=="declare"?(P.marked="keyword",w(Se)):g&&(q=="module"||q=="enum"||q=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",q=="enum"?w(co):q=="type"?w(kl,fe("operator"),Ae,fe(";")):w(se("form"),bn,fe("{"),se("}"),Vn,J,J)):g&&q=="namespace"?(P.marked="keyword",w(se("form"),Te,Se,J)):g&&q=="abstract"?(P.marked="keyword",w(Se)):w(se("stat"),Re):T=="switch"?w(se("form"),G,fe("{"),se("}","switch"),Ke,Vn,J,J,ie):T=="case"?w(Te,fe(":")):T=="default"?w(fe(":")):T=="catch"?w(se("form"),ze,vt,Se,J,ie):T=="export"?w(se("stat"),Ni,J):T=="import"?w(se("stat"),ri,J):T=="async"?w(Se):q=="@"?w(Te,Se):F(se("stat"),Te,fe(";"),J)}function vt(T){if(T=="(")return w(fr,fe(")"))}function Te(T,q){return re(T,q,!1)}function I(T,q){return re(T,q,!0)}function G(T){return T!="("?F():w(se(")"),oe,fe(")"),J)}function re(T,q,W){if(P.state.fatArrowAt==P.stream.start){var ee=W?ge:xe;if(T=="(")return w(ze,se(")"),Ze(fr,")"),J,fe("=>"),ee,ie);if(T=="variable")return F(ze,bn,fe("=>"),ee,ie)}var Ue=W?ye:ce;return ne.hasOwnProperty(T)?w(Ue):T=="function"?w(kr,Ue):T=="class"||g&&q=="interface"?(P.marked="keyword",w(se("form"),Pi,J)):T=="keyword c"||T=="async"?w(W?I:Te):T=="("?w(se(")"),oe,fe(")"),J,Ue):T=="operator"||T=="spread"?w(W?I:Te):T=="["?w(se("]"),ii,J,Ue):T=="{"?Bn(nt,"}",null,Ue):T=="quasi"?F(he,Ue):T=="new"?w(Ne(W)):w()}function oe(T){return T.match(/[;\}\)\],]/)?F():F(Te)}function ce(T,q){return T==","?w(oe):ye(T,q,!1)}function ye(T,q,W){var ee=W==!1?ce:ye,Ue=W==!1?Te:I;if(T=="=>")return w(ze,W?ge:xe,ie);if(T=="operator")return/\+\+|--/.test(q)||g&&q=="!"?w(ee):g&&q=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?w(se(">"),Ze(Ae,">"),J,ee):q=="?"?w(Te,fe(":"),Ue):w(Ue);if(T=="quasi")return F(he,ee);if(T!=";"){if(T=="(")return Bn(I,")","call",ee);if(T==".")return w(Ge,ee);if(T=="[")return w(se("]"),oe,fe("]"),J,ee);if(g&&q=="as")return P.marked="keyword",w(Ae,ee);if(T=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),w(Ue)}}function he(T,q){return T!="quasi"?F():q.slice(q.length-2)!="${"?w(he):w(oe,be)}function be(T){if(T=="}")return P.marked="string-2",P.state.tokenize=M,w(he)}function xe(T){return j(P.stream,P.state),F(T=="{"?Se:Te)}function ge(T){return j(P.stream,P.state),F(T=="{"?Se:I)}function Ne(T){return function(q){return q=="."?w(T?Pe:Be):q=="variable"&&g?w(an,T?ye:ce):F(T?I:Te)}}function Be(T,q){if(q=="target")return P.marked="keyword",w(ce)}function Pe(T,q){if(q=="target")return P.marked="keyword",w(ye)}function Re(T){return T==":"?w(J,Se):F(ce,fe(";"),J)}function Ge(T){if(T=="variable")return P.marked="property",w()}function nt(T,q){if(T=="async")return P.marked="property",w(nt);if(T=="variable"||P.style=="keyword"){if(P.marked="property",q=="get"||q=="set")return w(et);var W;return g&&P.state.fatArrowAt==P.stream.start&&(W=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+W[0].length),w(ft)}else{if(T=="number"||T=="string")return P.marked=h?"property":P.style+" property",w(ft);if(T=="jsonld-keyword")return w(ft);if(g&&ae(q))return P.marked="keyword",w(nt);if(T=="[")return w(Te,tn,fe("]"),ft);if(T=="spread")return w(I,ft);if(q=="*")return P.marked="keyword",w(nt);if(T==":")return F(ft)}}function et(T){return T!="variable"?F(ft):(P.marked="property",w(kr))}function ft(T){if(T==":")return w(I);if(T=="(")return F(kr)}function Ze(T,q,W){function ee(Ue,Qe){if(W?W.indexOf(Ue)>-1:Ue==","){var rt=P.state.lexical;return rt.info=="call"&&(rt.pos=(rt.pos||0)+1),w(function(qt,Wn){return qt==q||Wn==q?F():F(T)},ee)}return Ue==q||Qe==q?w():W&&W.indexOf(";")>-1?F(T):w(fe(q))}return function(Ue,Qe){return Ue==q||Qe==q?w():F(T,ee)}}function Bn(T,q,W){for(var ee=3;ee<arguments.length;ee++)P.cc.push(arguments[ee]);return w(se(q,W),Ze(T,q),J)}function Vn(T){return T=="}"?w():F(Se,Vn)}function tn(T,q){if(g){if(T==":")return w(Ae);if(q=="?")return w(tn)}}function ao(T,q){if(g&&(T==":"||q=="in"))return w(Ae)}function Dt(T){if(g&&T==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?w(Te,yn,Ae):w(Ae)}function yn(T,q){if(q=="is")return P.marked="keyword",w()}function Ae(T,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return P.marked="keyword",w(q=="typeof"?I:Ae);if(T=="variable"||q=="void")return P.marked="type",w(dn);if(q=="|"||q=="&")return w(Ae);if(T=="string"||T=="number"||T=="atom")return w(dn);if(T=="[")return w(se("]"),Ze(Ae,"]",","),J,dn);if(T=="{")return w(se("}"),on,J,dn);if(T=="(")return w(Ze(hn,")"),Ba,dn);if(T=="<")return w(Ze(Ae,">"),Ae);if(T=="quasi")return F(Tt,dn)}function Ba(T){if(T=="=>")return w(Ae)}function on(T){return T.match(/[\}\)\]]/)?w():T==","||T==";"?w(on):F(wt,on)}function wt(T,q){if(T=="variable"||P.style=="keyword")return P.marked="property",w(wt);if(q=="?"||T=="number"||T=="string")return w(wt);if(T==":")return w(Ae);if(T=="[")return w(fe("variable"),ao,fe("]"),wt);if(T=="(")return F(Lr,wt);if(!T.match(/[;\}\)\],]/))return w()}function Tt(T,q){return T!="quasi"?F():q.slice(q.length-2)!="${"?w(Tt):w(Ae,$l)}function $l(T){if(T=="}")return P.marked="string-2",P.state.tokenize=M,w(Tt)}function hn(T,q){return T=="variable"&&P.stream.match(/^\s*[?:]/,!1)||q=="?"?w(hn):T==":"?w(Ae):T=="spread"?w(hn):F(Ae)}function dn(T,q){if(q=="<")return w(se(">"),Ze(Ae,">"),J,dn);if(q=="|"||T=="."||q=="&")return w(Ae);if(T=="[")return w(Ae,fe("]"),dn);if(q=="extends"||q=="implements")return P.marked="keyword",w(Ae);if(q=="?")return w(Ae,fe(":"),Ae)}function an(T,q){if(q=="<")return w(se(">"),Ze(Ae,">"),J,dn)}function vs(){return F(Ae,Oa)}function Oa(T,q){if(q=="=")return w(Ae)}function ti(T,q){return q=="enum"?(P.marked="keyword",w(co)):F(bn,tn,tr,Uh)}function bn(T,q){if(g&&ae(q))return P.marked="keyword",w(bn);if(T=="variable")return V(q),w();if(T=="spread")return w(bn);if(T=="[")return Bn(zh,"]");if(T=="{")return Bn(Pa,"}")}function Pa(T,q){return T=="variable"&&!P.stream.match(/^\s*:/,!1)?(V(q),w(tr)):(T=="variable"&&(P.marked="property"),T=="spread"?w(bn):T=="}"?F():T=="["?w(Te,fe("]"),fe(":"),Pa):w(fe(":"),bn,tr))}function zh(){return F(bn,tr)}function tr(T,q){if(q=="=")return w(I)}function Uh(T){if(T==",")return w(ti)}function uo(T,q){if(T=="keyword b"&&q=="else")return w(se("form","else"),Se,J)}function Tl(T,q){if(q=="await")return w(Tl);if(T=="(")return w(se(")"),Na,J)}function Na(T){return T=="var"?w(ti,Oi):T=="variable"?w(Oi):F(Oi)}function Oi(T,q){return T==")"?w():T==";"?w(Oi):q=="in"||q=="of"?(P.marked="keyword",w(Te,Oi)):F(Te,Oi)}function kr(T,q){if(q=="*")return P.marked="keyword",w(kr);if(T=="variable")return V(q),w(kr);if(T=="(")return w(ze,se(")"),Ze(fr,")"),J,Dt,Se,ie);if(g&&q=="<")return w(se(">"),Ze(vs,">"),J,kr)}function Lr(T,q){if(q=="*")return P.marked="keyword",w(Lr);if(T=="variable")return V(q),w(Lr);if(T=="(")return w(ze,se(")"),Ze(fr,")"),J,Dt,ie);if(g&&q=="<")return w(se(">"),Ze(vs,">"),J,Lr)}function kl(T,q){if(T=="keyword"||T=="variable")return P.marked="type",w(kl);if(q=="<")return w(se(">"),Ze(vs,">"),J)}function fr(T,q){return q=="@"&&w(Te,fr),T=="spread"?w(fr):g&&ae(q)?(P.marked="keyword",w(fr)):g&&T=="this"?w(tn,tr):F(bn,tn,tr)}function Pi(T,q){return T=="variable"?Ll(T,q):lo(T,q)}function Ll(T,q){if(T=="variable")return V(q),w(lo)}function lo(T,q){if(q=="<")return w(se(">"),Ze(vs,">"),J,lo);if(q=="extends"||q=="implements"||g&&T==",")return q=="implements"&&(P.marked="keyword"),w(g?Ae:Te,lo);if(T=="{")return w(se("}"),On,J)}function On(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",w(On);if(T=="variable"||P.style=="keyword")return P.marked="property",w(ni,On);if(T=="number"||T=="string")return w(ni,On);if(T=="[")return w(Te,tn,fe("]"),ni,On);if(q=="*")return P.marked="keyword",w(On);if(g&&T=="(")return F(Lr,On);if(T==";"||T==",")return w(On);if(T=="}")return w();if(q=="@")return w(Te,On)}function ni(T,q){if(q=="!"||q=="?")return w(ni);if(T==":")return w(Ae,tr);if(q=="=")return w(I);var W=P.state.lexical.prev,ee=W&&W.info=="interface";return F(ee?Lr:kr)}function Ni(T,q){return q=="*"?(P.marked="keyword",w(Le,fe(";"))):q=="default"?(P.marked="keyword",w(Te,fe(";"))):T=="{"?w(Ze(Bl,"}"),Le,fe(";")):F(Se)}function Bl(T,q){if(q=="as")return P.marked="keyword",w(fe("variable"));if(T=="variable")return F(I,Bl)}function ri(T){return T=="string"?w():T=="("?F(Te):T=="."?F(ce):F(Ii,Ia,Le)}function Ii(T,q){return T=="{"?Bn(Ii,"}"):(T=="variable"&&V(q),q=="*"&&(P.marked="keyword"),w(kt))}function Ia(T){if(T==",")return w(Ii,Ia)}function kt(T,q){if(q=="as")return P.marked="keyword",w(Ii)}function Le(T,q){if(q=="from")return P.marked="keyword",w(Te)}function ii(T){return T=="]"?w():F(Ze(I,"]"))}function co(){return F(se("form"),bn,fe("{"),se("}"),Ze(nr,"}"),J,J)}function nr(){return F(bn,tr)}function at(T,q){return T.lastType=="operator"||T.lastType==","||A.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Br(T,q,W){return q.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(W||0)))}return{startState:function(T){var q={tokenize:O,lastType:"sof",cc:[],lexical:new ue((T||0)-a,0,"block",!1),localVars:o.localVars,context:o.localVars&&new pe(null,null,!1),indented:T||0};return o.globalVars&&typeof o.globalVars=="object"&&(q.globalVars=o.globalVars),q},token:function(T,q){if(T.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=T.indentation(),j(T,q)),q.tokenize!=k&&T.eatSpace())return null;var W=q.tokenize(T,q);return E=="comment"?W:(q.lastType=E=="operator"&&(C=="++"||C=="--")?"incdec":E,z(q,W,E,C,T))},indent:function(T,q){if(T.tokenize==k||T.tokenize==M)return n.Pass;if(T.tokenize!=O)return 0;var W=q&&q.charAt(0),ee=T.lexical,Ue;if(!/^\s*else\b/.test(q))for(var Qe=T.cc.length-1;Qe>=0;--Qe){var rt=T.cc[Qe];if(rt==J)ee=ee.prev;else if(rt!=uo&&rt!=ie)break}for(;(ee.type=="stat"||ee.type=="form")&&(W=="}"||(Ue=T.cc[T.cc.length-1])&&(Ue==ce||Ue==ye)&&!/^[,\.=+\-*:?[\(]/.test(q));)ee=ee.prev;c&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var qt=ee.type,Wn=W==qt;return qt=="vardef"?ee.indented+(T.lastType=="operator"||T.lastType==","?ee.info.length+1:0):qt=="form"&&W=="{"?ee.indented:qt=="form"?ee.indented+a:qt=="stat"?ee.indented+(at(T,q)?c||a:0):ee.info=="switch"&&!Wn&&o.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(q)?a:2*a):ee.align?ee.column+(Wn?0:1):ee.indented+(Wn?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:h,jsonMode:d,expressionAllowed:Br,skipExpression:function(T){z(T,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var RLe={};(function(e,t){(function(n){n(ka())})(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(w,R){function V(pe){return R.tokenize=pe,pe(w,R)}var Z=w.next();if(Z=="<")return w.eat("!")?w.eat("[")?w.match("CDATA[")?V(E("atom","]]>")):null:w.match("--")?V(E("comment","-->")):w.match("DOCTYPE",!0,!0)?(w.eatWhile(/[\w\._\-]/),V(C(1))):null:w.eat("?")?(w.eatWhile(/[\w\._\-]/),R.tokenize=E("meta","?>"),"meta"):(y=w.eat("/")?"closeTag":"openTag",R.tokenize=$,"tag bracket");if(Z=="&"){var ae;return w.eat("#")?w.eat("x")?ae=w.eatWhile(/[a-fA-F\d]/)&&w.eat(";"):ae=w.eatWhile(/[\d]/)&&w.eat(";"):ae=w.eatWhile(/[\w\.\-:]/)&&w.eat(";"),ae?"atom":"error"}else return w.eatWhile(/[^&<]/),null}A.isInText=!0;function $(w,R){var V=w.next();if(V==">"||V=="/"&&w.eat(">"))return R.tokenize=A,y=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return y="equals",null;if(V=="<"){R.tokenize=A,R.state=M,R.tagName=R.tagStart=null;var Z=R.tokenize(w,R);return Z?Z+" tag error":"tag error"}else return/[\'\"]/.test(V)?(R.tokenize=L(V),R.stringStartCol=w.column(),R.tokenize(w,R)):(w.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(w){var R=function(V,Z){for(;!V.eol();)if(V.next()==w){Z.tokenize=$;break}return"string"};return R.isInAttribute=!0,R}function E(w,R){return function(V,Z){for(;!V.eol();){if(V.match(R)){Z.tokenize=A;break}V.next()}return w}}function C(w){return function(R,V){for(var Z;(Z=R.next())!=null;){if(Z=="<")return V.tokenize=C(w+1),V.tokenize(R,V);if(Z==">")if(w==1){V.tokenize=A;break}else return V.tokenize=C(w-1),V.tokenize(R,V)}return"meta"}}function S(w){return w&&w.toLowerCase()}function O(w,R,V){this.prev=w.context,this.tagName=R||"",this.indent=w.indented,this.startOfLine=V,(d.doNotIndent.hasOwnProperty(R)||w.context&&w.context.noIndent)&&(this.noIndent=!0)}function B(w){w.context&&(w.context=w.context.prev)}function k(w,R){for(var V;;){if(!w.context||(V=w.context.tagName,!d.contextGrabbers.hasOwnProperty(S(V))||!d.contextGrabbers[S(V)].hasOwnProperty(S(R))))return;B(w)}}function M(w,R,V){return w=="openTag"?(V.tagStart=R.column(),U):w=="closeTag"?j:M}function U(w,R,V){return w=="word"?(V.tagName=R.current(),m="tag",Y):d.allowMissingTagName&&w=="endTag"?(m="tag bracket",Y(w,R,V)):(m="error",U)}function j(w,R,V){if(w=="word"){var Z=R.current();return V.context&&V.context.tagName!=Z&&d.implicitlyClosed.hasOwnProperty(S(V.context.tagName))&&B(V),V.context&&V.context.tagName==Z||d.matchClosing===!1?(m="tag",ne):(m="tag error",ue)}else return d.allowMissingTagName&&w=="endTag"?(m="tag bracket",ne(w,R,V)):(m="error",ue)}function ne(w,R,V){return w!="endTag"?(m="error",ne):(B(V),M)}function ue(w,R,V){return m="error",ne(w,R,V)}function Y(w,R,V){if(w=="word")return m="attribute",z;if(w=="endTag"||w=="selfcloseTag"){var Z=V.tagName,ae=V.tagStart;return V.tagName=V.tagStart=null,w=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(S(Z))?k(V,Z):(k(V,Z),V.context=new O(V,Z,ae==V.indented)),M}return m="error",Y}function z(w,R,V){return w=="equals"?P:(d.allowMissing||(m="error"),Y(w,R,V))}function P(w,R,V){return w=="string"?F:w=="word"&&d.allowUnquoted?(m="string",Y):(m="error",Y(w,R,V))}function F(w,R,V){return w=="string"?F:Y(w,R,V)}return{startState:function(w){var R={tokenize:A,state:M,indented:w||0,tagName:null,tagStart:null,context:null};return w!=null&&(R.baseIndent=w),R},token:function(w,R){if(!R.tagName&&w.sol()&&(R.indented=w.indentation()),w.eatSpace())return null;y=null;var V=R.tokenize(w,R);return(V||y)&&V!="comment"&&(m=null,R.state=R.state(y||V,w,R),m&&(V=m=="error"?V+" error":m)),V},indent:function(w,R,V){var Z=w.context;if(w.tokenize.isInAttribute)return w.tagStart==w.indented?w.stringStartCol+1:w.indented+h;if(Z&&Z.noIndent)return n.Pass;if(w.tokenize!=$&&w.tokenize!=A)return V?V.match(/^(\s*)/)[0].length:0;if(w.tagName)return d.multilineTagIndentPastTag!==!1?w.tagStart+w.tagName.length+2:w.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ae=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);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 pe=d.contextGrabbers[S(Z.tagName)];if(pe&&pe.hasOwnProperty(S(ae[2])))Z=Z.prev;else break}for(;Z&&Z.prev&&!Z.startOfLine;)Z=Z.prev;return Z?Z.indent+h:w.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(w){w.state==P&&(w.state=Y)},xmlCurrentTag:function(w){return w.tagName?{name:w.tagName,close:w.type=="closeTag"}:null},xmlCurrentContext:function(w){for(var R=[],V=w.context;V;V=V.prev)R.push(V.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(e,t){(function(n){n(ka(),RLe,ILe)})(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 E=p(L.state),C=L.state.context;if(C&&A.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?E-=a.indentUnit:L.prev.state.lexical&&(E=L.prev.state.lexical.indented)}else L.depth==1&&(E+=a.indentUnit);return $.context=new i(n.startState(d,E),d,0,$.context),null}if(L.depth==1){if(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 E=d.token(A,L.state);if(!E&&L.depth!=null){var C=A.current();C=="{"?L.depth++:C=="}"&&--L.depth==0&&($.context=$.context.prev)}return E}return{startState:function(){return{context:new i(n.startState(d),d)}},copyState:function(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(ka())})(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(ka())})(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",E),n.off(document,"mouseup",L)}function E(C){if(C.which!=1)return L();p.moveTo($+(C[m]-A)*(p.total/p.size))}n.on(document,"mousemove",E),n.on(document,"mouseup",L)}),n.on(this.node,"click",function(y){n.e_preventDefault(y);var m=p.inner.getBoundingClientRect(),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 MLe(e,t,n={}){const i=NLe.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),Zt(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}),I0(i)}const zLe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},fS=ot({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(e,{expose:t,emit:n}){const i=e,o=ik(),a={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},c=Xe(),h=jW(i,"modelValue",n,{passive:!0}),d=Da();return t({cm:d}),Zu(async()=>{d.value=MLe(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",zLe,[me("textarea",{ref_key:"el",ref:c},null,512)]))}}),ULe=ot({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(e,{emit:t}){const n=e,i=Xe(""),o=Da(void 0),a=Xe(!1);Zt(()=>n.file,async()=>{var S;if(!n.file||!((S=n.file)!=null&&S.filepath)){i.value="",o.value=i.value,a.value=!1;return}i.value=await sn.rpc.readFile(n.file.filepath)||"",o.value=i.value,a.value=!1},{immediate:!0});const c=Ce(()=>{var S,O;return((O=(S=n.file)==null?void 0:S.filepath)==null?void 0:O.split(/\./g).pop())||"js"}),h=Xe(),d=Ce(()=>{var S;return(S=h.value)==null?void 0:S.cm}),p=Ce(()=>{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=Xe(!1);function $(){m.forEach(([S,O,B])=>{S.removeEventListener("click",O),B()}),m.length=0}IW(h,()=>{var S;(S=d.value)==null||S.refresh()});function L(){a.value=o.value!==d.value.getValue()}Zt(a,S=>{t("draft",S)},{immediate:!0});function E(S){const O=((S==null?void 0:S.stacks)||[]).filter(ne=>{var ue;return ne.file&&ne.file===((ue=n.file)==null?void 0:ue.filepath)}),B=O==null?void 0:O[0];if(!B)return;const k=document.createElement("div");k.className="op80 flex gap-x-2 items-center";const M=document.createElement("pre");M.className="c-red-600 dark:c-red-400",M.textContent=`${" ".repeat(B.column)}^ ${S==null?void 0:S.nameStr}: ${S==null?void 0:S.message}`,k.appendChild(M);const U=document.createElement("span");U.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",U.tabIndex=0,U.ariaLabel="Open in Editor",tE(U,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await lS(B.file,B.line,B.column)};k.appendChild(U),m.push([U,j,()=>rg(U)]),y.push(d.value.addLineClass(B.line-1,"wrap","bg-red-500/10")),g.push(d.value.addLineWidget(B.line-1,k))}Zt([d,p],([S])=>{if(!S){$();return}setTimeout(()=>{$(),g.forEach(O=>O.clear()),y.forEach(O=>{var B;return(B=d.value)==null?void 0:B.removeLineClass(O,"wrap")}),g.length=0,y.length=0,S.on("changes",L),p.value.forEach(O=>{var B,k;(k=(B=O.result)==null?void 0:B.errors)==null||k.forEach(E)}),A.value||S.clearHistory()},100)},{flush:"post"});async function C(S){A.value=!0,await sn.rpc.writeFile(n.file.filepath,S),o.value=S,a.value=!1}return(S,O)=>{const B=fS;return de(),tt(B,us({ref_key:"editor",ref:h,modelValue:X(i),"onUpdate:modelValue":O[0]||(O[0]=k=>Nt(i)?i.value=k:null),"h-full":""},{lineNumbers:!0},{mode:X(c),"data-testid":"code-mirror",onSave:C}),null,16,["modelValue","mode"])}}}),HLe=ot({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(e){const t=e,n=Ce(()=>{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=Ce(()=>{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"])},[me("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),me("div",{class:yt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[X(n)]]),style:Un(e.modelValue?{}:{transform:X(i)})},[_r(o.$slots,"default")],6)],2))}}),qLe=["aria-label","opacity","disabled","hover"],La=ot({__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"},[_r(t.$slots,"default",{},()=>[me("div",{class:yt(e.icon),ma:""},null,2)])],8,qLe))}}),jLe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},VLe={"p-4":"",relative:""},WLe=me("p",null,"Module Info",-1),GLe={op50:"","font-mono":"","text-sm":""},KLe={key:0,"p-5":""},QLe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},XLe=me("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),YLe=me("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),ZLe={key:0},JLe={p:"x3 y-1","bg-overlay":"",border:"base b t"},eBe=ot({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(e,{emit:t}){const n=e,i=lW(()=>sn.rpc.getTransformResult(n.id)),o=Ce(()=>{var d;return((d=n.id)==null?void 0:d.split(/\./g).pop())||"js"}),a=Ce(()=>{var d,p;return((p=(d=i.value)==null?void 0:d.source)==null?void 0:p.trim())||""}),c=Ce(()=>{var d,p;return((p=(d=i.value)==null?void 0:d.code)==null?void 0:p.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Ce(()=>{var d,p,g,y;return{mappings:((p=(d=i.value)==null?void 0:d.map)==null?void 0:p.mappings)??"",version:(y=(g=i.value)==null?void 0:g.map)==null?void 0:y.version}});return fW("Escape",()=>{t("close")}),(d,p)=>{const g=La,y=fS;return de(),ke("div",jLe,[me("div",VLe,[WLe,me("p",GLe,Ye(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(ht,{key:1},[me("div",QLe,[XLe,YLe,Me(y,us({"h-full":"","model-value":X(a),"read-only":""},{lineNumbers:!0},{mode:X(o)}),null,16,["model-value","mode"]),Me(y,us({"h-full":"","model-value":X(c),"read-only":""},{lineNumbers:!0},{mode:X(o)}),null,16,["model-value","mode"])]),X(h).mappings!==""?(de(),ke("div",ZLe,[me("div",JLe," Source map (v"+Ye(X(h).version)+") ",1),Me(y,us({"model-value":X(h).mappings,"read-only":""},{lineNumbers:!0},{mode:X(o)}),null,16,["model-value","mode"])])):lt("",!0)],64)):(de(),ke("div",KLe," No transform result found for this module. "))])}}});var p0="http://www.w3.org/1999/xhtml";const XD={svg:"http://www.w3.org/2000/svg",xhtml:p0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ih(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),XD.hasOwnProperty(t)?{space:XD[t],local:e}:e}function tBe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===p0&&t.documentElement.namespaceURI===p0?t.createElement(e):t.createElementNS(n,e)}}function nBe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function hS(e){var t=Ih(e);return(t.local?nBe:tBe)(t)}function rBe(){}function zv(e){return e==null?rBe:function(){return this.querySelector(e)}}function iBe(e){typeof e!="function"&&(e=zv(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var a=t[o],c=a.length,h=i[o]=new Array(c),d,p,g=0;g<c;++g)(d=a[g])&&(p=e.call(d,d.__data__,g,a))&&("__data__"in d&&(p.__data__=d.__data__),h[g]=p);return new Jn(i,this._parents)}function sBe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function oBe(){return[]}function dS(e){return e==null?oBe:function(){return this.querySelectorAll(e)}}function aBe(e){return function(){return sBe(e.apply(this,arguments))}}function uBe(e){typeof e=="function"?e=aBe(e):e=dS(e);for(var t=this._groups,n=t.length,i=[],o=[],a=0;a<n;++a)for(var c=t[a],h=c.length,d,p=0;p<h;++p)(d=c[p])&&(i.push(e.call(d,d.__data__,p,c)),o.push(d));return new Jn(i,o)}function pS(e){return function(){return this.matches(e)}}function gS(e){return function(t){return t.matches(e)}}var lBe=Array.prototype.find;function cBe(e){return function(){return lBe.call(this.children,e)}}function fBe(){return this.firstElementChild}function hBe(e){return this.select(e==null?fBe:cBe(typeof e=="function"?e:gS(e)))}var dBe=Array.prototype.filter;function pBe(){return Array.from(this.children)}function gBe(e){return function(){return dBe.call(this.children,e)}}function vBe(e){return this.selectAll(e==null?pBe:gBe(typeof e=="function"?e:gS(e)))}function mBe(e){typeof e!="function"&&(e=pS(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var a=t[o],c=a.length,h=i[o]=[],d,p=0;p<c;++p)(d=a[p])&&e.call(d,d.__data__,p,a)&&h.push(d);return new Jn(i,this._parents)}function vS(e){return new Array(e.length)}function yBe(){return new Jn(this._enter||this._groups.map(vS),this._parents)}function Tf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Tf.prototype={constructor:Tf,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 bBe(e){return function(){return e}}function wBe(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 Tf(e,a[c]);for(;c<d;++c)(h=t[c])&&(o[c]=h)}function DBe(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 Tf(e,a[h]);for(h=0;h<g;++h)(d=t[h])&&p.get(m[h])===d&&(o[h]=d)}function ABe(e){return e.__data__}function xBe(e,t){if(!arguments.length)return Array.from(this,ABe);var n=t?DBe:wBe,i=this._parents,o=this._groups;typeof e!="function"&&(e=bBe(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=EBe(e.call(g,g&&g.__data__,p,i)),$=A.length,L=h[p]=new Array($),E=c[p]=new Array($),C=d[p]=new Array(m);n(g,y,L,E,C,A,t);for(var S=0,O=0,B,k;S<$;++S)if(B=L[S]){for(S>=O&&(O=S+1);!(k=E[O])&&++O<$;);B._next=k||null}}return c=new Jn(c,i),c._enter=h,c._exit=d,c}function EBe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function CBe(){return new Jn(this._exit||this._groups.map(vS),this._parents)}function _Be(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 SBe(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 Jn(h,this._parents)}function FBe(){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 $Be(e){e||(e=TBe);function t(y,m){return y&&m?e(y.__data__,m.__data__):!y-!m}for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a){for(var c=n[a],h=c.length,d=o[a]=new Array(h),p,g=0;g<h;++g)(p=c[g])&&(d[g]=p);d.sort(t)}return new Jn(o,this._parents).order()}function TBe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function kBe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function LBe(){return Array.from(this)}function BBe(){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 OBe(){let e=0;for(const t of this)++e;return e}function PBe(){return!this.node()}function NBe(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 IBe(e){return function(){this.removeAttribute(e)}}function RBe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function MBe(e,t){return function(){this.setAttribute(e,t)}}function zBe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function UBe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function HBe(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 qBe(e,t){var n=Ih(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?RBe:IBe:typeof t=="function"?n.local?HBe:UBe:n.local?zBe:MBe)(n,t))}function mS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function jBe(e){return function(){this.style.removeProperty(e)}}function VBe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function WBe(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function GBe(e,t,n){return arguments.length>1?this.each((t==null?jBe:typeof t=="function"?WBe:VBe)(e,t,n??"")):ma(this.node(),e)}function ma(e,t){return e.style.getPropertyValue(t)||mS(e).getComputedStyle(e,null).getPropertyValue(t)}function KBe(e){return function(){delete this[e]}}function QBe(e,t){return function(){this[e]=t}}function XBe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function YBe(e,t){return arguments.length>1?this.each((t==null?KBe:typeof t=="function"?XBe:QBe)(e,t)):this.node()[e]}function yS(e){return e.trim().split(/^|\s+/)}function Uv(e){return e.classList||new bS(e)}function bS(e){this._node=e,this._names=yS(e.getAttribute("class")||"")}bS.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 wS(e,t){for(var n=Uv(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function DS(e,t){for(var n=Uv(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function ZBe(e){return function(){wS(this,e)}}function JBe(e){return function(){DS(this,e)}}function eOe(e,t){return function(){(t.apply(this,arguments)?wS:DS)(this,e)}}function tOe(e,t){var n=yS(e+"");if(arguments.length<2){for(var i=Uv(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?eOe:t?ZBe:JBe)(n,t))}function nOe(){this.textContent=""}function rOe(e){return function(){this.textContent=e}}function iOe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function sOe(e){return arguments.length?this.each(e==null?nOe:(typeof e=="function"?iOe:rOe)(e)):this.node().textContent}function oOe(){this.innerHTML=""}function aOe(e){return function(){this.innerHTML=e}}function uOe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function lOe(e){return arguments.length?this.each(e==null?oOe:(typeof e=="function"?uOe:aOe)(e)):this.node().innerHTML}function cOe(){this.nextSibling&&this.parentNode.appendChild(this)}function fOe(){return this.each(cOe)}function hOe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function dOe(){return this.each(hOe)}function pOe(e){var t=typeof e=="function"?e:hS(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function gOe(){return null}function vOe(e,t){var n=typeof e=="function"?e:hS(e),i=t==null?gOe:typeof t=="function"?t:zv(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function mOe(){var e=this.parentNode;e&&e.removeChild(this)}function yOe(){return this.each(mOe)}function bOe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wOe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function DOe(e){return this.select(e?wOe:bOe)}function AOe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function xOe(e){return function(t){e.call(this,t,this.__data__)}}function EOe(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 COe(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 _Oe(e,t,n){return function(){var i=this.__on,o,a=xOe(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 SOe(e,t,n){var i=EOe(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?_Oe:COe,o=0;o<a;++o)this.each(h(i[o],t,n));return this}function AS(e,t,n){var i=mS(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 FOe(e,t){return function(){return AS(this,e,t)}}function $Oe(e,t){return function(){return AS(this,e,t.apply(this,arguments))}}function TOe(e,t){return this.each((typeof t=="function"?$Oe:FOe)(e,t))}function*kOe(){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 xS=[null];function Jn(e,t){this._groups=e,this._parents=t}function Cl(){return new Jn([[document.documentElement]],xS)}function LOe(){return this}Jn.prototype=Cl.prototype={constructor:Jn,select:iBe,selectAll:uBe,selectChild:hBe,selectChildren:vBe,filter:mBe,data:xBe,enter:yBe,exit:CBe,join:_Be,merge:SBe,selection:LOe,order:FBe,sort:$Be,call:kBe,nodes:LBe,node:BBe,size:OBe,empty:PBe,each:NBe,attr:qBe,style:GBe,property:YBe,classed:tOe,text:sOe,html:lOe,raise:fOe,lower:dOe,append:pOe,insert:vOe,remove:yOe,clone:DOe,datum:AOe,on:SOe,dispatch:TOe,[Symbol.iterator]:kOe};function Mn(e){return typeof e=="string"?new Jn([[document.querySelector(e)]],[document.documentElement]):new Jn([[e]],xS)}function BOe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function yi(e,t){if(e=BOe(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 Sn{constructor(t,n){this.x=t,this.y=n}static of([t,n]){return new Sn(t,n)}add(t){return new Sn(this.x+t.x,this.y+t.y)}subtract(t){return new Sn(this.x-t.x,this.y-t.y)}multiply(t){return new Sn(this.x*t,this.y*t)}divide(t){return new Sn(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 Sn(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 Sn(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Sn(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var OOe={value:()=>{}};function _l(){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 tf(n)}function tf(e){this._=e}function POe(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}})}tf.prototype=_l.prototype={constructor:tf,on:function(e,t){var n=this._,i=POe(e+"",n),o,a=-1,c=i.length;if(arguments.length<2){for(;++a<c;)if((o=(e=i[a]).type)&&(o=NOe(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]=YD(n[o],e.name,t);else if(t==null)for(o in n)n[o]=YD(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 tf(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 NOe(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function YD(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=OOe,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const IOe={passive:!1},Wu={capture:!0,passive:!1};function gp(e){e.stopImmediatePropagation()}function ta(e){e.preventDefault(),e.stopImmediatePropagation()}function ES(e){var t=e.document.documentElement,n=Mn(e).on("dragstart.drag",ta,Wu);"onselectstart"in t?n.on("selectstart.drag",ta,Wu):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function CS(e,t){var n=e.document.documentElement,i=Mn(e).on("dragstart.drag",null);t&&(i.on("click.drag",ta,Wu),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 Pc=e=>()=>e;function g0(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}})}g0.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function ROe(e){return!e.ctrlKey&&!e.button}function MOe(){return this.parentNode}function zOe(e,t){return t??{x:e.x,y:e.y}}function UOe(){return navigator.maxTouchPoints||"ontouchstart"in this}function HOe(){var e=ROe,t=MOe,n=zOe,i=UOe,o={},a=_l("start","drag","end"),c=0,h,d,p,g,y=0;function m(B){B.on("mousedown.drag",A).filter(i).on("touchstart.drag",E).on("touchmove.drag",C,IOe).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&&(Mn(B.view).on("mousemove.drag",$,Wu).on("mouseup.drag",L,Wu),ES(B.view),gp(B),p=!1,h=B.clientX,d=B.clientY,M("start",B))}}function $(B){if(ta(B),!p){var k=B.clientX-h,M=B.clientY-d;p=k*k+M*M>y}o.mouse("drag",B)}function L(B){Mn(B.view).on("mousemove.drag mouseup.drag",null),CS(B.view,p),ta(B),o.mouse("end",B)}function E(B,k){if(e.call(this,B,k)){var M=B.changedTouches,U=t.call(this,B,k),j=M.length,ne,ue;for(ne=0;ne<j;++ne)(ue=O(this,U,B,k,M[ne].identifier,M[ne]))&&(gp(B),ue("start",B,M[ne]))}}function C(B){var k=B.changedTouches,M=k.length,U,j;for(U=0;U<M;++U)(j=o[k[U].identifier])&&(ta(B),j("drag",B,k[U]))}function S(B){var k=B.changedTouches,M=k.length,U,j;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),U=0;U<M;++U)(j=o[k[U].identifier])&&(gp(B),j("end",B,k[U]))}function O(B,k,M,U,j,ne){var ue=a.copy(),Y=yi(ne||M,k),z,P,F;if((F=n.call(B,new g0("beforestart",{sourceEvent:M,target:m,identifier:j,active:c,x:Y[0],y:Y[1],dx:0,dy:0,dispatch:ue}),U))!=null)return z=F.x-Y[0]||0,P=F.y-Y[1]||0,function w(R,V,Z){var ae=Y,pe;switch(R){case"start":o[j]=w,pe=c++;break;case"end":delete o[j],--c;case"drag":Y=yi(Z||V,k),pe=c;break}ue.call(R,B,new g0(R,{sourceEvent:V,subject:F,target:m,identifier:j,active:pe,x:Y[0]+z,y:Y[1]+P,dx:Y[0]-ae[0],dy:Y[1]-ae[1],dispatch:ue}),U)}}return m.filter=function(B){return arguments.length?(e=typeof B=="function"?B:Pc(!!B),m):e},m.container=function(B){return arguments.length?(t=typeof B=="function"?B:Pc(B),m):t},m.subject=function(B){return arguments.length?(n=typeof B=="function"?B:Pc(B),m):n},m.touchable=function(B){return arguments.length?(i=typeof B=="function"?B:Pc(!!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 Hv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _S(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Sl(){}var Gu=.7,kf=1/Gu,na="\\s*([+-]?\\d+)\\s*",Ku="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qOe=/^#([0-9a-f]{3,8})$/,jOe=new RegExp(`^rgb\\(${na},${na},${na}\\)$`),VOe=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),WOe=new RegExp(`^rgba\\(${na},${na},${na},${Ku}\\)$`),GOe=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${Ku}\\)$`),KOe=new RegExp(`^hsl\\(${Ku},${Gr},${Gr}\\)$`),QOe=new RegExp(`^hsla\\(${Ku},${Gr},${Gr},${Ku}\\)$`),ZD={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};Hv(Sl,Qu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JD,formatHex:JD,formatHex8:XOe,formatHsl:YOe,formatRgb:eA,toString:eA});function JD(){return this.rgb().formatHex()}function XOe(){return this.rgb().formatHex8()}function YOe(){return SS(this).formatHsl()}function eA(){return this.rgb().formatRgb()}function Qu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qOe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?tA(t):n===3?new zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Nc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Nc(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=jOe.exec(e))?new zn(t[1],t[2],t[3],1):(t=VOe.exec(e))?new zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=WOe.exec(e))?Nc(t[1],t[2],t[3],t[4]):(t=GOe.exec(e))?Nc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=KOe.exec(e))?iA(t[1],t[2]/100,t[3]/100,1):(t=QOe.exec(e))?iA(t[1],t[2]/100,t[3]/100,t[4]):ZD.hasOwnProperty(e)?tA(ZD[e]):e==="transparent"?new zn(NaN,NaN,NaN,0):null}function tA(e){return new zn(e>>16&255,e>>8&255,e&255,1)}function Nc(e,t,n,i){return i<=0&&(e=t=n=NaN),new zn(e,t,n,i)}function ZOe(e){return e instanceof Sl||(e=Qu(e)),e?(e=e.rgb(),new zn(e.r,e.g,e.b,e.opacity)):new zn}function v0(e,t,n,i){return arguments.length===1?ZOe(e):new zn(e,t,n,i??1)}function zn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Hv(zn,v0,_S(Sl,{brighter(e){return e=e==null?kf:Math.pow(kf,e),new zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gu:Math.pow(Gu,e),new zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zn(Ks(this.r),Ks(this.g),Ks(this.b),Lf(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:nA,formatHex:nA,formatHex8:JOe,formatRgb:rA,toString:rA}));function nA(){return`#${js(this.r)}${js(this.g)}${js(this.b)}`}function JOe(){return`#${js(this.r)}${js(this.g)}${js(this.b)}${js((isNaN(this.opacity)?1:this.opacity)*255)}`}function rA(){const e=Lf(this.opacity);return`${e===1?"rgb(":"rgba("}${Ks(this.r)}, ${Ks(this.g)}, ${Ks(this.b)}${e===1?")":`, ${e})`}`}function Lf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ks(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function js(e){return e=Ks(e),(e<16?"0":"")+e.toString(16)}function iA(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,n,i)}function SS(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof Sl||(e=Qu(e)),!e)return new xr;if(e instanceof xr)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 xr(c,h,d,e.opacity)}function e3e(e,t,n,i){return arguments.length===1?SS(e):new xr(e,t,n,i??1)}function xr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Hv(xr,e3e,_S(Sl,{brighter(e){return e=e==null?kf:Math.pow(kf,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gu:Math.pow(Gu,e),new xr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new zn(vp(e>=240?e-240:e+120,o,i),vp(e,o,i),vp(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new xr(sA(this.h),Ic(this.s),Ic(this.l),Lf(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=Lf(this.opacity);return`${e===1?"hsl(":"hsla("}${sA(this.h)}, ${Ic(this.s)*100}%, ${Ic(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sA(e){return e=(e||0)%360,e<0?e+360:e}function Ic(e){return Math.max(0,Math.min(1,e||0))}function vp(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 FS=e=>()=>e;function t3e(e,t){return function(n){return e+n*t}}function n3e(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 r3e(e){return(e=+e)==1?$S:function(t,n){return n-t?n3e(t,n,e):FS(isNaN(t)?n:t)}}function $S(e,t){var n=t-e;return n?t3e(e,n):FS(isNaN(e)?t:e)}const oA=function e(t){var n=r3e(t);function i(o,a){var c=n((o=v0(o)).r,(a=v0(a)).r),h=n(o.g,a.g),d=n(o.b,a.b),p=$S(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 ns(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var m0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mp=new RegExp(m0.source,"g");function i3e(e){return function(){return e}}function s3e(e){return function(t){return e(t)+""}}function o3e(e,t){var n=m0.lastIndex=mp.lastIndex=0,i,o,a,c=-1,h=[],d=[];for(e=e+"",t=t+"";(i=m0.exec(e))&&(o=mp.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:ns(i,o)})),n=mp.lastIndex;return n<t.length&&(a=t.slice(n),h[c]?h[c]+=a:h[++c]=a),h.length<2?d[0]?s3e(d[0].x):i3e(t):(t=d.length,function(p){for(var g=0,y;g<t;++g)h[(y=d[g]).i]=y.x(p);return h.join("")})}var aA=180/Math.PI,y0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function TS(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)*aA,skewX:Math.atan(d)*aA,scaleX:c,scaleY:h}}var Rc;function a3e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?y0:TS(t.a,t.b,t.c,t.d,t.e,t.f)}function u3e(e){return e==null||(Rc||(Rc=document.createElementNS("http://www.w3.org/2000/svg","g")),Rc.setAttribute("transform",e),!(e=Rc.transform.baseVal.consolidate()))?y0:(e=e.matrix,TS(e.a,e.b,e.c,e.d,e.e,e.f))}function kS(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:ns(p,y)},{i:L-2,x:ns(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:ns(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:ns(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:ns(p,y)},{i:L-2,x:ns(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,E;++$<L;)y[(E=m[$]).i]=E.x(A);return y.join("")}}}var l3e=kS(a3e,"px, ","px)","deg)"),c3e=kS(u3e,", ",")",")"),f3e=1e-12;function uA(e){return((e=Math.exp(e))+1/e)/2}function h3e(e){return((e=Math.exp(e))-1/e)/2}function d3e(e){return((e=Math.exp(2*e))-1)/(e+1)}const p3e=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+$*$,E,C;if(L<f3e)C=Math.log(m/p)/t,E=function(U){return[h+U*A,d+U*$,p*Math.exp(t*U*C)]};else{var S=Math.sqrt(L),O=(m*m-p*p+i*L)/(2*p*n*S),B=(m*m-p*p-i*L)/(2*m*n*S),k=Math.log(Math.sqrt(O*O+1)-O),M=Math.log(Math.sqrt(B*B+1)-B);C=(M-k)/t,E=function(U){var j=U*C,ne=uA(k),ue=p/(n*S)*(ne*d3e(t*j+k)-h3e(k));return[h+ue*A,d+ue*$,p*ne/uA(t*j+k)]}}return E.duration=C*1e3*t/Math.SQRT2,E}return o.rho=function(a){var c=Math.max(.001,+a),h=c*c,d=h*h;return e(c,h,d)},o}(Math.SQRT2,2,4);var ya=0,Au=0,bu=0,LS=1e3,Bf,xu,Of=0,Js=0,Rh=0,Xu=typeof performance=="object"&&performance.now?performance:Date,BS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function qv(){return Js||(BS(g3e),Js=Xu.now()+Rh)}function g3e(){Js=0}function Pf(){this._call=this._time=this._next=null}Pf.prototype=jv.prototype={constructor:Pf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?qv():+n)+(t==null?0:+t),!this._next&&xu!==this&&(xu?xu._next=this:Bf=this,xu=this),this._call=e,this._time=n,b0()},stop:function(){this._call&&(this._call=null,this._time=1/0,b0())}};function jv(e,t,n){var i=new Pf;return i.restart(e,t,n),i}function v3e(){qv(),++ya;for(var e=Bf,t;e;)(t=Js-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ya}function lA(){Js=(Of=Xu.now())+Rh,ya=Au=0;try{v3e()}finally{ya=0,y3e(),Js=0}}function m3e(){var e=Xu.now(),t=e-Of;t>LS&&(Rh-=t,Of=e)}function y3e(){for(var e,t=Bf,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:Bf=n);xu=e,b0(i)}function b0(e){if(!ya){Au&&(Au=clearTimeout(Au));var t=e-Js;t>24?(e<1/0&&(Au=setTimeout(lA,e-Xu.now()-Rh)),bu&&(bu=clearInterval(bu))):(bu||(Of=Xu.now(),bu=setInterval(m3e,LS)),ya=1,BS(lA))}}function cA(e,t,n){var i=new Pf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var b3e=_l("start","end","cancel","interrupt"),w3e=[],OS=0,fA=1,w0=2,nf=3,hA=4,D0=5,rf=6;function Mh(e,t,n,i,o,a){var c=e.__transition;if(!c)e.__transition={};else if(n in c)return;D3e(e,n,{name:t,index:i,group:o,on:b3e,tween:w3e,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:OS})}function Vv(e,t){var n=Tr(e,t);if(n.state>OS)throw new Error("too late; already scheduled");return n}function Jr(e,t){var n=Tr(e,t);if(n.state>nf)throw new Error("too late; already running");return n}function Tr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function D3e(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=jv(a,0,n.time);function a(p){n.state=fA,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!==fA)return d();for(g in i)if(A=i[g],A.name===n.name){if(A.state===nf)return cA(c);A.state===hA?(A.state=rf,A.timer.stop(),A.on.call("interrupt",e,e.__data__,A.index,A.group),delete i[g]):+g<t&&(A.state=rf,A.timer.stop(),A.on.call("cancel",e,e.__data__,A.index,A.group),delete i[g])}if(cA(function(){n.state===nf&&(n.state=hA,n.timer.restart(h,n.delay,n.time),h(p))}),n.state=w0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===w0){for(n.state=nf,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=D0,1),y=-1,m=o.length;++y<m;)o[y].call(e,g);n.state===D0&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=rf,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function sf(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>w0&&i.state<D0,i.state=rf,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[c]}a&&delete e.__transition}}function A3e(e){return this.each(function(){sf(this,e)})}function x3e(e,t){var n,i;return function(){var o=Jr(this,e),a=o.tween;if(a!==n){i=n=a;for(var c=0,h=i.length;c<h;++c)if(i[c].name===t){i=i.slice(),i.splice(c,1);break}}o.tween=i}}function E3e(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var a=Jr(this,e),c=a.tween;if(c!==i){o=(i=c).slice();for(var h={name:t,value:n},d=0,p=o.length;d<p;++d)if(o[d].name===t){o[d]=h;break}d===p&&o.push(h)}a.tween=o}}function C3e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Tr(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?x3e:E3e)(n,e,t))}function Wv(e,t,n){var i=e._id;return e.each(function(){var o=Jr(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Tr(o,i).value[t]}}function PS(e,t){var n;return(typeof t=="number"?ns:t instanceof Qu?oA:(n=Qu(t))?(t=n,oA):o3e)(e,t)}function _3e(e){return function(){this.removeAttribute(e)}}function S3e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function F3e(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 $3e(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 T3e(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 k3e(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 L3e(e,t){var n=Ih(e),i=n==="transform"?c3e:PS;return this.attrTween(e,typeof t=="function"?(n.local?k3e:T3e)(n,i,Wv(this,"attr."+e,t)):t==null?(n.local?S3e:_3e)(n):(n.local?$3e:F3e)(n,i,t))}function B3e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function O3e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function P3e(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&O3e(e,a)),n}return o._value=t,o}function N3e(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&B3e(e,a)),n}return o._value=t,o}function I3e(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=Ih(e);return this.tween(n,(i.local?P3e:N3e)(i,t))}function R3e(e,t){return function(){Vv(this,e).delay=+t.apply(this,arguments)}}function M3e(e,t){return t=+t,function(){Vv(this,e).delay=t}}function z3e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?R3e:M3e)(t,e)):Tr(this.node(),t).delay}function U3e(e,t){return function(){Jr(this,e).duration=+t.apply(this,arguments)}}function H3e(e,t){return t=+t,function(){Jr(this,e).duration=t}}function q3e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?U3e:H3e)(t,e)):Tr(this.node(),t).duration}function j3e(e,t){if(typeof t!="function")throw new Error;return function(){Jr(this,e).ease=t}}function V3e(e){var t=this._id;return arguments.length?this.each(j3e(t,e)):Tr(this.node(),t).ease}function W3e(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Jr(this,e).ease=n}}function G3e(e){if(typeof e!="function")throw new Error;return this.each(W3e(this._id,e))}function K3e(e){typeof e!="function"&&(e=pS(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 $i(i,this._parents,this._name,this._id)}function Q3e(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 $i(c,this._parents,this._name,this._id)}function X3e(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 Y3e(e,t,n){var i,o,a=X3e(t)?Vv:Jr;return function(){var c=a(this,e),h=c.on;h!==i&&(o=(i=h).copy()).on(t,n),c.on=o}}function Z3e(e,t){var n=this._id;return arguments.length<2?Tr(this.node(),n).on.on(e):this.each(Y3e(n,e,t))}function J3e(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ePe(){return this.on("end.remove",J3e(this._id))}function tPe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=zv(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,Mh(p[m],t,n,m,p,Tr(g,n)));return new $i(a,this._parents,t,n)}function nPe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=dS(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,$=Tr(g,n),L=0,E=m.length;L<E;++L)(A=m[L])&&Mh(A,t,n,L,m,$);a.push(m),c.push(g)}return new $i(a,c,t,n)}var rPe=Cl.prototype.constructor;function iPe(){return new rPe(this._groups,this._parents)}function sPe(e,t){var n,i,o;return function(){var a=ma(this,e),c=(this.style.removeProperty(e),ma(this,e));return a===c?null:a===n&&c===i?o:o=t(n=a,i=c)}}function NS(e){return function(){this.style.removeProperty(e)}}function oPe(e,t,n){var i,o=n+"",a;return function(){var c=ma(this,e);return c===o?null:c===i?a:a=t(i=c,n)}}function aPe(e,t,n){var i,o,a;return function(){var c=ma(this,e),h=n(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(e),ma(this,e))),c===d?null:c===i&&d===o?a:(o=d,a=t(i=c,h))}}function uPe(e,t){var n,i,o,a="style."+t,c="end."+a,h;return function(){var d=Jr(this,e),p=d.on,g=d.value[a]==null?h||(h=NS(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(c,o=g),d.on=i}}function lPe(e,t,n){var i=(e+="")=="transform"?l3e:PS;return t==null?this.styleTween(e,sPe(e,i)).on("end.style."+e,NS(e)):typeof t=="function"?this.styleTween(e,aPe(e,i,Wv(this,"style."+e,t))).each(uPe(this._id,e)):this.styleTween(e,oPe(e,i,t),n).on("end.style."+e,null)}function cPe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function fPe(e,t,n){var i,o;function a(){var c=t.apply(this,arguments);return c!==o&&(i=(o=c)&&cPe(e,c,n)),i}return a._value=t,a}function hPe(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,fPe(e,t,n??""))}function dPe(e){return function(){this.textContent=e}}function pPe(e){return function(){var t=e(this);this.textContent=t??""}}function gPe(e){return this.tween("text",typeof e=="function"?pPe(Wv(this,"text",e)):dPe(e==null?"":e+""))}function vPe(e){return function(t){this.textContent=e.call(this,t)}}function mPe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&vPe(o)),t}return i._value=e,i}function yPe(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,mPe(e))}function bPe(){for(var e=this._name,t=this._id,n=IS(),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=Tr(d,t);Mh(d,e,n,p,c,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new $i(i,this._parents,e,n)}function wPe(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(a,c){var h={value:c},d={value:function(){--o===0&&a()}};n.each(function(){var p=Jr(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(h),t._.interrupt.push(h),t._.end.push(d)),p.on=t}),o===0&&a()})}var DPe=0;function $i(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function IS(){return++DPe}var gi=Cl.prototype;$i.prototype={constructor:$i,select:tPe,selectAll:nPe,selectChild:gi.selectChild,selectChildren:gi.selectChildren,filter:K3e,merge:Q3e,selection:iPe,transition:bPe,call:gi.call,nodes:gi.nodes,node:gi.node,size:gi.size,empty:gi.empty,each:gi.each,on:Z3e,attr:L3e,attrTween:I3e,style:lPe,styleTween:hPe,text:gPe,textTween:yPe,remove:ePe,tween:C3e,delay:z3e,duration:q3e,ease:V3e,easeVarying:G3e,end:wPe,[Symbol.iterator]:gi[Symbol.iterator]};function APe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var xPe={time:null,delay:0,duration:250,ease:APe};function EPe(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 CPe(e){var t,n;e instanceof $i?(t=e._id,e=e._name):(t=IS(),(n=xPe).time=qv(),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])&&Mh(d,e,t,p,c,n||EPe(d,t));return new $i(i,this._parents,e,t)}Cl.prototype.interrupt=A3e;Cl.prototype.transition=CPe;const Mc=e=>()=>e;function _Pe(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 Ai(e,t,n){this.k=e,this.x=t,this.y=n}Ai.prototype={constructor:Ai,scale:function(e){return e===1?this:new Ai(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ai(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 Gv=new Ai(1,0,0);Ai.prototype;function yp(e){e.stopImmediatePropagation()}function wu(e){e.preventDefault(),e.stopImmediatePropagation()}function SPe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function FPe(){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 dA(){return this.__zoom||Gv}function $Pe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function TPe(){return navigator.maxTouchPoints||"ontouchstart"in this}function kPe(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 LPe(){var e=SPe,t=FPe,n=kPe,i=$Pe,o=TPe,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],h=250,d=p3e,p=_l("start","zoom","end"),g,y,m,A=500,$=150,L=0,E=10;function C(F){F.property("__zoom",dA).on("wheel.zoom",j,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",ue).filter(o).on("touchstart.zoom",Y).on("touchmove.zoom",z).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(F,w,R,V){var Z=F.selection?F.selection():F;Z.property("__zoom",dA),F!==Z?k(F,w,R,V):Z.interrupt().each(function(){M(this,arguments).event(V).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},C.scaleBy=function(F,w,R,V){C.scaleTo(F,function(){var Z=this.__zoom.k,ae=typeof w=="function"?w.apply(this,arguments):w;return Z*ae},R,V)},C.scaleTo=function(F,w,R,V){C.transform(F,function(){var Z=t.apply(this,arguments),ae=this.__zoom,pe=R==null?B(Z):typeof R=="function"?R.apply(this,arguments):R,$e=ae.invert(pe),_e=typeof w=="function"?w.apply(this,arguments):w;return n(O(S(ae,_e),pe,$e),Z,c)},R,V)},C.translateBy=function(F,w,R,V){C.transform(F,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),c)},null,V)},C.translateTo=function(F,w,R,V,Z){C.transform(F,function(){var ae=t.apply(this,arguments),pe=this.__zoom,$e=V==null?B(ae):typeof V=="function"?V.apply(this,arguments):V;return n(Gv.translate($e[0],$e[1]).scale(pe.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof R=="function"?-R.apply(this,arguments):-R),ae,c)},V,Z)};function S(F,w){return w=Math.max(a[0],Math.min(a[1],w)),w===F.k?F:new Ai(w,F.x,F.y)}function O(F,w,R){var V=w[0]-R[0]*F.k,Z=w[1]-R[1]*F.k;return V===F.x&&Z===F.y?F:new Ai(F.k,V,Z)}function B(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function k(F,w,R,V){F.on("start.zoom",function(){M(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).event(V).end()}).tween("zoom",function(){var Z=this,ae=arguments,pe=M(Z,ae).event(V),$e=t.apply(Z,ae),_e=R==null?B($e):typeof R=="function"?R.apply(Z,ae):R,ze=Math.max($e[1][0]-$e[0][0],$e[1][1]-$e[0][1]),Ke=Z.__zoom,ie=typeof w=="function"?w.apply(Z,ae):w,se=d(Ke.invert(_e).concat(ze/Ke.k),ie.invert(_e).concat(ze/ie.k));return function(J){if(J===1)J=ie;else{var fe=se(J),Se=ze/fe[2];J=new Ai(Se,_e[0]-fe[0]*Se,_e[1]-fe[1]*Se)}pe.zoom(null,J)}})}function M(F,w,R){return!R&&F.__zooming||new U(F,w)}function U(F,w){this.that=F,this.args=w,this.active=0,this.sourceEvent=null,this.extent=t.apply(F,w),this.taps=0}U.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,w){return this.mouse&&F!=="mouse"&&(this.mouse[1]=w.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=w.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=w.invert(this.touch1[0])),this.that.__zoom=w,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var w=Mn(this.that).datum();p.call(F,this.that,new _Pe(F,{sourceEvent:this.sourceEvent,target:C,type:F,transform:this.that.__zoom,dispatch:p}),w)}};function j(F,...w){if(!e.apply(this,arguments))return;var R=M(this,w).event(F),V=this.__zoom,Z=Math.max(a[0],Math.min(a[1],V.k*Math.pow(2,i.apply(this,arguments)))),ae=yi(F);if(R.wheel)(R.mouse[0][0]!==ae[0]||R.mouse[0][1]!==ae[1])&&(R.mouse[1]=V.invert(R.mouse[0]=ae)),clearTimeout(R.wheel);else{if(V.k===Z)return;R.mouse=[ae,V.invert(ae)],sf(this),R.start()}wu(F),R.wheel=setTimeout(pe,$),R.zoom("mouse",n(O(S(V,Z),R.mouse[0],R.mouse[1]),R.extent,c));function pe(){R.wheel=null,R.end()}}function ne(F,...w){if(m||!e.apply(this,arguments))return;var R=F.currentTarget,V=M(this,w,!0).event(F),Z=Mn(F.view).on("mousemove.zoom",_e,!0).on("mouseup.zoom",ze,!0),ae=yi(F,R),pe=F.clientX,$e=F.clientY;ES(F.view),yp(F),V.mouse=[ae,this.__zoom.invert(ae)],sf(this),V.start();function _e(Ke){if(wu(Ke),!V.moved){var ie=Ke.clientX-pe,se=Ke.clientY-$e;V.moved=ie*ie+se*se>L}V.event(Ke).zoom("mouse",n(O(V.that.__zoom,V.mouse[0]=yi(Ke,R),V.mouse[1]),V.extent,c))}function ze(Ke){Z.on("mousemove.zoom mouseup.zoom",null),CS(Ke.view,V.moved),wu(Ke),V.event(Ke).end()}}function ue(F,...w){if(e.apply(this,arguments)){var R=this.__zoom,V=yi(F.changedTouches?F.changedTouches[0]:F,this),Z=R.invert(V),ae=R.k*(F.shiftKey?.5:2),pe=n(O(S(R,ae),V,Z),t.apply(this,w),c);wu(F),h>0?Mn(this).transition().duration(h).call(k,pe,V,F):Mn(this).call(C.transform,pe,V,F)}}function Y(F,...w){if(e.apply(this,arguments)){var R=F.touches,V=R.length,Z=M(this,w,F.changedTouches.length===V).event(F),ae,pe,$e,_e;for(yp(F),pe=0;pe<V;++pe)$e=R[pe],_e=yi($e,this),_e=[_e,this.__zoom.invert(_e),$e.identifier],Z.touch0?!Z.touch1&&Z.touch0[2]!==_e[2]&&(Z.touch1=_e,Z.taps=0):(Z.touch0=_e,ae=!0,Z.taps=1+!!g);g&&(g=clearTimeout(g)),ae&&(Z.taps<2&&(y=_e[0],g=setTimeout(function(){g=null},A)),sf(this),Z.start())}}function z(F,...w){if(this.__zooming){var R=M(this,w).event(F),V=F.changedTouches,Z=V.length,ae,pe,$e,_e;for(wu(F),ae=0;ae<Z;++ae)pe=V[ae],$e=yi(pe,this),R.touch0&&R.touch0[2]===pe.identifier?R.touch0[0]=$e:R.touch1&&R.touch1[2]===pe.identifier&&(R.touch1[0]=$e);if(pe=R.that.__zoom,R.touch1){var ze=R.touch0[0],Ke=R.touch0[1],ie=R.touch1[0],se=R.touch1[1],J=(J=ie[0]-ze[0])*J+(J=ie[1]-ze[1])*J,fe=(fe=se[0]-Ke[0])*fe+(fe=se[1]-Ke[1])*fe;pe=S(pe,Math.sqrt(J/fe)),$e=[(ze[0]+ie[0])/2,(ze[1]+ie[1])/2],_e=[(Ke[0]+se[0])/2,(Ke[1]+se[1])/2]}else if(R.touch0)$e=R.touch0[0],_e=R.touch0[1];else return;R.zoom("touch",n(O(pe,$e,_e),R.extent,c))}}function P(F,...w){if(this.__zooming){var R=M(this,w).event(F),V=F.changedTouches,Z=V.length,ae,pe;for(yp(F),m&&clearTimeout(m),m=setTimeout(function(){m=null},A),ae=0;ae<Z;++ae)pe=V[ae],R.touch0&&R.touch0[2]===pe.identifier?delete R.touch0:R.touch1&&R.touch1[2]===pe.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(pe=yi(pe,this),Math.hypot(y[0]-pe[0],y[1]-pe[1])<E)){var $e=Mn(this).on("dblclick.zoom");$e&&$e.apply(this,arguments)}}}return C.wheelDelta=function(F){return arguments.length?(i=typeof F=="function"?F:Mc(+F),C):i},C.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Mc(!!F),C):e},C.touchable=function(F){return arguments.length?(o=typeof F=="function"?F:Mc(!!F),C):o},C.extent=function(F){return arguments.length?(t=typeof F=="function"?F:Mc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),C):t},C.scaleExtent=function(F){return arguments.length?(a[0]=+F[0],a[1]=+F[1],C):[a[0],a[1]]},C.translateExtent=function(F){return arguments.length?(c[0][0]=+F[0][0],c[1][0]=+F[1][0],c[0][1]=+F[0][1],c[1][1]=+F[1][1],C):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},C.constrain=function(F){return arguments.length?(n=F,C):n},C.duration=function(F){return arguments.length?(h=+F,C):h},C.interpolate=function(F){return arguments.length?(d=F,C):d},C.on=function(){var F=p.on.apply(p,arguments);return F===p?C:F},C.clickDistance=function(F){return arguments.length?(L=(F=+F)*F,C):Math.sqrt(L)},C.tapDistance=function(F){return arguments.length?(E=+F,C):E},C}function BPe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return RS(this.cover(t,n),t,n,e)}function RS(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,E,C,S;if(!a)return e._root=c,e;for(;a.length;)if((L=t>=(y=(h+p)/2))?h=y:p=y,(E=n>=(m=(d+g)/2))?d=m:g=m,o=a,!(a=a[C=E<<1|L]))return o[C]=c,e;if(A=+e._x.call(null,a.data),$=+e._y.call(null,a.data),t===A&&n===$)return c.next=a,o?o[C]=c:e._root=c,e;do o=o?o[C]=new Array(4):e._root=new Array(4),(L=t>=(y=(h+p)/2))?h=y:p=y,(E=n>=(m=(d+g)/2))?d=m:g=m;while((C=E<<1|L)===(S=($>=m)<<1|A>=y));return o[S]=a,o[C]=c,e}function OPe(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)RS(this,c[n],h[n],e[n]);return this}function PPe(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 NPe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function IPe(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 Fn(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function RPe(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 Fn(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 E=(c+d)/2,C=(h+p)/2;m.push(new Fn(A[3],E,C,d,p),new Fn(A[2],c,C,E,p),new Fn(A[1],E,h,d,C),new Fn(A[0],c,h,E,C)),(L=(t>=C)<<1|e>=E)&&($=m[m.length-1],m[m.length-1]=m[m.length-1-L],m[m.length-1-L]=$)}else{var S=e-+this._x.call(null,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 MPe(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,E,C;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[E=L<<1|$]))return this;if(!n.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(i=t,C=E)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,o?(a?o.next=a:delete o.next,this):t?(a?t[E]=a:delete t[E],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[C]=n:this._root=n),this):(this._root=a,this)}function zPe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function UPe(){return this._root}function HPe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function qPe(e){var t=[],n,i=this._root,o,a,c,h,d;for(i&&t.push(new Fn(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 Fn(o,p,g,h,d)),(o=i[2])&&t.push(new Fn(o,a,g,p,d)),(o=i[1])&&t.push(new Fn(o,p,c,h,g)),(o=i[0])&&t.push(new Fn(o,a,c,p,g))}return this}function jPe(e){var t=[],n=[],i;for(this._root&&t.push(new Fn(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 Fn(a,c,h,g,y)),(a=o[1])&&t.push(new Fn(a,g,h,d,y)),(a=o[2])&&t.push(new Fn(a,c,y,g,p)),(a=o[3])&&t.push(new Fn(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 VPe(e){return e[0]}function WPe(e){return arguments.length?(this._x=e,this):this._x}function GPe(e){return e[1]}function KPe(e){return arguments.length?(this._y=e,this):this._y}function Kv(e,t,n){var i=new Qv(t??VPe,n??GPe,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function Qv(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 pA(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ln=Kv.prototype=Qv.prototype;Ln.copy=function(){var e=new Qv(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=pA(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]=pA(i));return e};Ln.add=BPe;Ln.addAll=OPe;Ln.cover=PPe;Ln.data=NPe;Ln.extent=IPe;Ln.find=RPe;Ln.remove=MPe;Ln.removeAll=zPe;Ln.root=UPe;Ln.size=HPe;Ln.visit=qPe;Ln.visitAfter=jPe;Ln.x=WPe;Ln.y=KPe;function Tn(e){return function(){return e}}function is(e){return(e()-.5)*1e-6}function QPe(e){return e.x+e.vx}function XPe(e){return e.y+e.vy}function YPe(e){var t,n,i,o=1,a=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function c(){for(var p,g=t.length,y,m,A,$,L,E,C=0;C<a;++C)for(y=Kv(t,QPe,XPe).visitAfter(h),p=0;p<g;++p)m=t[p],L=n[m.index],E=L*L,A=m.x+m.vx,$=m.y+m.vy,y.visit(S);function S(O,B,k,M,U){var j=O.data,ne=O.r,ue=L+ne;if(j){if(j.index>m.index){var Y=A-j.x-j.vx,z=$-j.y-j.vy,P=Y*Y+z*z;P<ue*ue&&(Y===0&&(Y=is(i),P+=Y*Y),z===0&&(z=is(i),P+=z*z),P=(ue-(P=Math.sqrt(P)))/P*o,m.vx+=(Y*=P)*(ue=(ne*=ne)/(E+ne)),m.vy+=(z*=P)*ue,j.vx-=Y*(ue=1-ue),j.vy-=z*ue)}return}return B>A+ue||M<A-ue||k>$+ue||U<$-ue}}function h(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function d(){if(t){var p,g=t.length,y;for(n=new Array(g),p=0;p<g;++p)y=t[p],n[y.index]=+e(y,p,t)}}return c.initialize=function(p,g){t=p,i=g,d()},c.iterations=function(p){return arguments.length?(a=+p,c):a},c.strength=function(p){return arguments.length?(o=+p,c):o},c.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),d(),c):e},c}function ZPe(e){return e.index}function gA(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function JPe(e){var t=ZPe,n=y,i,o=Tn(30),a,c,h,d,p,g=1;e==null&&(e=[]);function y(E){return 1/Math.min(h[E.source.index],h[E.target.index])}function m(E){for(var C=0,S=e.length;C<g;++C)for(var O=0,B,k,M,U,j,ne,ue;O<S;++O)B=e[O],k=B.source,M=B.target,U=M.x+M.vx-k.x-k.vx||is(p),j=M.y+M.vy-k.y-k.vy||is(p),ne=Math.sqrt(U*U+j*j),ne=(ne-a[O])/ne*E*i[O],U*=ne,j*=ne,M.vx-=U*(ue=d[O]),M.vy-=j*ue,k.vx+=U*(ue=1-ue),k.vy+=j*ue}function A(){if(c){var E,C=c.length,S=e.length,O=new Map(c.map((k,M)=>[t(k,M,c),k])),B;for(E=0,h=new Array(C);E<S;++E)B=e[E],B.index=E,typeof B.source!="object"&&(B.source=gA(O,B.source)),typeof B.target!="object"&&(B.target=gA(O,B.target)),h[B.source.index]=(h[B.source.index]||0)+1,h[B.target.index]=(h[B.target.index]||0)+1;for(E=0,d=new Array(S);E<S;++E)B=e[E],d[E]=h[B.source.index]/(h[B.source.index]+h[B.target.index]);i=new Array(S),$(),a=new Array(S),L()}}function $(){if(c)for(var E=0,C=e.length;E<C;++E)i[E]=+n(e[E],E,e)}function L(){if(c)for(var E=0,C=e.length;E<C;++E)a[E]=+o(e[E],E,e)}return m.initialize=function(E,C){c=E,p=C,A()},m.links=function(E){return arguments.length?(e=E,A(),m):e},m.id=function(E){return arguments.length?(t=E,m):t},m.iterations=function(E){return arguments.length?(g=+E,m):g},m.strength=function(E){return arguments.length?(n=typeof E=="function"?E:Tn(+E),$(),m):n},m.distance=function(E){return arguments.length?(o=typeof E=="function"?E:Tn(+E),L(),m):o},m}const e8e=1664525,t8e=1013904223,vA=4294967296;function n8e(){let e=1;return()=>(e=(e8e*e+t8e)%vA)/vA}function r8e(e){return e.x}function i8e(e){return e.y}var s8e=10,o8e=Math.PI*(3-Math.sqrt(5));function a8e(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),a=0,c=.6,h=new Map,d=jv(y),p=_l("tick","end"),g=n8e();e==null&&(e=[]);function y(){m(),p.call("tick",t),n<i&&(d.stop(),p.call("end",t))}function m(L){var E,C=e.length,S;L===void 0&&(L=1);for(var O=0;O<L;++O)for(n+=(a-n)*o,h.forEach(function(B){B(n)}),E=0;E<C;++E)S=e[E],S.fx==null?S.x+=S.vx*=c:(S.x=S.fx,S.vx=0),S.fy==null?S.y+=S.vy*=c:(S.y=S.fy,S.vy=0);return t}function A(){for(var L=0,E=e.length,C;L<E;++L){if(C=e[L],C.index=L,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var S=s8e*Math.sqrt(.5+L),O=L*o8e;C.x=S*Math.cos(O),C.y=S*Math.sin(O)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function $(L){return L.initialize&&L.initialize(e,g),L}return 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,E){return arguments.length>1?(E==null?h.delete(L):h.set(L,$(E)),t):h.get(L)},find:function(L,E,C){var S=0,O=e.length,B,k,M,U,j;for(C==null?C=1/0:C*=C,S=0;S<O;++S)U=e[S],B=L-U.x,k=E-U.y,M=B*B+k*k,M<C&&(j=U,C=M);return j},on:function(L,E){return arguments.length>1?(p.on(L,E),t):p.on(L)}}}function u8e(){var e,t,n,i,o=Tn(-30),a,c=1,h=1/0,d=.81;function p(A){var $,L=e.length,E=Kv(e,r8e,i8e).visitAfter(y);for(i=A,$=0;$<L;++$)t=e[$],E.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,E,C=0,S,O,B;if(A.length){for(S=O=B=0;B<4;++B)(L=A[B])&&(E=Math.abs(L.value))&&($+=L.value,C+=E,S+=E*L.x,O+=E*L.y);A.x=S/C,A.y=O/C}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,E){if(!A.value)return!0;var C=A.x-t.x,S=A.y-t.y,O=E-$,B=C*C+S*S;if(O*O/d<B)return B<h&&(C===0&&(C=is(n),B+=C*C),S===0&&(S=is(n),B+=S*S),B<c&&(B=Math.sqrt(c*B)),t.vx+=C*A.value*i/B,t.vy+=S*A.value*i/B),!0;if(A.length||B>=h)return;(A.data!==t||A.next)&&(C===0&&(C=is(n),B+=C*C),S===0&&(S=is(n),B+=S*S),B<c&&(B=Math.sqrt(c*B)));do A.data!==t&&(O=a[A.data.index]*i/B,t.vx+=C*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:Tn(+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 l8e(e){var t=Tn(.1),n,i,o;typeof e!="function"&&(e=Tn(e==null?0:+e));function a(h){for(var d=0,p=n.length,g;d<p;++d)g=n[d],g.vx+=(o[d]-g.x)*i[d]*h}function c(){if(n){var h,d=n.length;for(i=new Array(d),o=new Array(d),h=0;h<d;++h)i[h]=isNaN(o[h]=+e(n[h],h,n))?0:+t(n[h],h,n)}}return a.initialize=function(h){n=h,c()},a.strength=function(h){return arguments.length?(t=typeof h=="function"?h:Tn(+h),c(),a):t},a.x=function(h){return arguments.length?(e=typeof h=="function"?h:Tn(+h),c(),a):e},a}function c8e(e){var t=Tn(.1),n,i,o;typeof e!="function"&&(e=Tn(e==null?0:+e));function a(h){for(var d=0,p=n.length,g;d<p;++d)g=n[d],g.vy+=(o[d]-g.y)*i[d]*h}function c(){if(n){var h,d=n.length;for(i=new Array(d),o=new Array(d),h=0;h<d;++h)i[h]=isNaN(o[h]=+e(n[h],h,n))?0:+t(n[h],h,n)}}return a.initialize=function(h){n=h,c()},a.strength=function(h){return arguments.length?(t=typeof h=="function"?h:Tn(+h),c(),a):t},a.y=function(h){return arguments.length?(e=typeof h=="function"?h:Tn(+h),c(),a):e},a}var f8e=Object.defineProperty,h8e=(e,t,n)=>t in e?f8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t,n)=>(h8e(e,typeof t!="symbol"?t+"":t,n),n);function d8e(){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 mA=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},ss=(...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]=ss.options.mergeArrays?Array.from(new Set(t[i].concat(n[i]))):n[i]:mA(t[i])&&mA(n[i])?t[i]=ss(t[i],n[i]):t[i]=n[i])}),t},{}),MS={mergeArrays:!0};ss.options=MS;ss.withOptions=(e,...t)=>{ss.options={mergeArrays:!0,...e};const n=ss(...t);return ss.options=MS,n};function p8e(){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 g8e(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function zS(e){e.preventDefault(),e.stopPropagation()}function US(e){return typeof e=="number"}function hs(e,t){return US(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function v8e(e){return`${e.source.id}-${e.target.id}`}function HS(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function m8e(e){return`url(#${HS(e.color)})`}function y8e(e){return{size:e,padding:(t,n)=>hs(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const qS={Arrow:e=>y8e(e)},b8e=(e,t,n)=>[t/2,n/2],jS=(e,t,n)=>[yA(0,t),yA(0,n)];function yA(e,t){return Math.random()*(t-e)+e}function w8e(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?jS(n,i,o):[a,c]}}const A0={Centered:b8e,Randomized:jS,Stable:w8e};function D8e(){return{autoResize:!1,callbacks:{},hooks:{},initial:g8e(),nodeRadius:16,marker:qS.Arrow(4),modifiers:{},positionInitializer:A0.Centered,simulation:{alphas:d8e(),forces:p8e()},zoom:{initial:1,min:.1,max:2}}}function A8e(e={}){return ss.withOptions({mergeArrays:!1},D8e(),e)}function x8e(e,t){let n;return()=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(),t)}}function E8e({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=>zS(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,Gv.translate(a,c).scale(h)),p.append("g")}function C8e({canvas:e,scale:t,xOffset:n,yOffset:i}){e==null||e.attr("transform",`translate(${n},${i})scale(${t})`)}function _8e({config:e,onDragStart:t,onDragEnd:n}){var i,o;const a=HOe().filter(c=>c.type==="mousedown"?c.button===0:c.type==="touchstart"?c.touches.length===1:!1).on("start",(c,h)=>{c.active===0&&t(c,h),Mn(c.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(c,h)=>{h.fx=c.x,h.fy=c.y}).on("end",(c,h)=>{c.active===0&&n(c,h),Mn(c.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(o=(i=e.modifiers).drag)==null||o.call(i,a),a}function S8e({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}:F8e({nodes:h,links:a},n)}function F8e(e,t){const n=[...$8e(e,t),...T8e(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function $8e(e,t){return VS(e,t,(n,i)=>n.target.id===i.id)}function T8e(e,t){return VS(e,t,(n,i)=>n.source.id===i.id)}function VS(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 x0(e){return e.x??0}function E0(e){return e.y??0}function Xv({source:e,target:t}){const n=new Sn(x0(e),E0(e)),i=new Sn(x0(t),E0(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 Sn(x0(t),E0(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Sn(0,1))),{n,c:i}}function GS({config:e,source:t,target:n}){const{s:i,t:o,norm:a}=Xv({config:e,source:t,target:n}),c=i.add(a.multiply(hs(e,t)-1)),h=o.subtract(a.multiply(e.marker.padding(n,e)));return{start:c,end:h}}function k8e(e){const{start:t,end:n}=GS(e);return`M${t.x},${t.y}
|
|
41
|
+
L${n.x},${n.y}`}function L8e(e){const{start:t,end:n}=GS(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function B8e({config:e,source:t,target:n}){const{s:i,t:o,dist:a,norm:c,endNorm:h}=Xv({config:e,source:t,target:n}),d=10,p=c.rotateByDegrees(-d).multiply(hs(e,t)-1).add(i),g=h.rotateByDegrees(d).multiply(hs(e,n)).add(o).add(h.rotateByDegrees(d).multiply(2*e.marker.size)),y=1.2*a;return`M${p.x},${p.y}
|
|
42
|
+
A${y},${y},0,0,1,${g.x},${g.y}`}function O8e({center:e,config:t,node:n}){const{n:i,c:o}=WS({center:e,config:t,node:n}),a=hs(t,n),c=i.subtract(o),h=c.multiply(1/c.length()),d=40,p=h.rotateByDegrees(d).multiply(a-1).add(i),g=h.rotateByDegrees(-d).multiply(a).add(i).add(h.rotateByDegrees(-d).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
43
|
+
A${a},${a},0,1,0,${g.x},${g.y}`}function P8e({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:a}=Xv({config:e,source:t,target:n}),c=10,h=a.rotateByDegrees(c).multiply(.5*o).add(i);return`translate(${h.x},${h.y})`}function N8e({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*hs(t,n)+8).add(i);return`translate(${c.x},${c.y})`}const ra={line:{labelTransform:L8e,path:k8e},arc:{labelTransform:P8e,path:B8e},reflexive:{labelTransform:N8e,path:O8e}};function I8e(e){return e.append("g").classed("links",!0).selectAll("path")}function R8e({config:e,graph:t,selection:n,showLabels:i}){const o=n==null?void 0:n.data(t.links,a=>v8e(a)).join(a=>{var c,h,d,p;const g=a.append("g"),y=g.append("path").classed("link",!0).style("marker-end",A=>m8e(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 M8e(e){z8e(e),U8e(e)}function z8e({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?ra.reflexive.path({config:t,node:o.source,center:e}):KS(n,o.source,o.target)?ra.arc.path({config:t,source:o.source,target:o.target}):ra.line.path({config:t,source:o.source,target:o.target}))}function U8e({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?ra.reflexive.labelTransform({config:e,node:o.source,center:t}):KS(n,o.source,o.target)?ra.arc.labelTransform({config:e,source:o.source,target:o.target}):ra.line.labelTransform({config:e,source:o.source,target:o.target}))}function KS(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 H8e(e){return e.append("defs").selectAll("marker")}function q8e({config:e,graph:t,selection:n}){return n==null?void 0:n.data(j8e(t),i=>i).join(i=>{const o=i.append("marker").attr("id",a=>HS(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",V8e(e.marker.path)),o})}function j8e(e){return[...new Set(e.links.map(t=>t.color))]}function V8e(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 W8e(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function G8e({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",E=>hs(e,E)).on("contextmenu",(E,C)=>{zS(E),i(C)}).on("pointerdown",(E,C)=>Q8e(E,C,o??i)).style("fill",E=>E.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",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(m=(y=e.modifiers).nodeLabel)==null||m.call(y,L),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 K8e=500;function Q8e(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>K8e){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function X8e(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Y8e({center:e,config:t,graph:n,onTick:i}){var o,a;const c=a8e(n.nodes),h=t.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;c.force("x",l8e(()=>e().x).strength(y)).force("y",c8e(()=>e().y).strength(y))}const d=t.simulation.forces.charge;d&&d.enabled&&c.force("charge",u8e().strength(d.strength));const p=t.simulation.forces.collision;p&&p.enabled&&c.force("collision",YPe().radius(y=>p.radiusMultiplier*hs(t,y)));const g=t.simulation.forces.link;return g&&g.enabled&&c.force("link",JPe(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 Z8e({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){var a,c;const h=LPe().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 J8e{constructor(t,n,i){if(Mt(this,"nodeTypes"),Mt(this,"_nodeTypeFilter"),Mt(this,"_includeUnlinked",!0),Mt(this,"_linkFilter",()=>!0),Mt(this,"_showLinkLabels",!0),Mt(this,"_showNodeLabels",!0),Mt(this,"filteredGraph"),Mt(this,"width",0),Mt(this,"height",0),Mt(this,"simulation"),Mt(this,"canvas"),Mt(this,"linkSelection"),Mt(this,"nodeSelection"),Mt(this,"markerSelection"),Mt(this,"zoom"),Mt(this,"drag"),Mt(this,"xOffset",0),Mt(this,"yOffset",0),Mt(this,"scale"),Mt(this,"focusedNode"),Mt(this,"resizeObserver"),this.container=t,this.graph=n,this.config=i,this.scale=i.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[a,c]=i.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??a,o.y=o.y??c}),this.nodeTypes=[...new Set(n.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],i.initial){const{includeUnlinked:o,nodeTypeFilter:a,linkFilter:c,showLinkLabels:h,showNodeLabels:d}=i.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=a??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(i.simulation.alphas.initialize),i.autoResize&&(this.resizeObserver=new ResizeObserver(x8e(()=>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 Sn.of([this.width,this.height]).divide(2).subtract(Sn.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(US(h)?h:h({oldWidth:t,oldHeight:n,newWidth:i,newHeight:o}))}restart(t){var n;this.markerSelection=q8e({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=R8e({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=G8e({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=Y8e({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=Z8e({config:this.config,canvasContainer:()=>Mn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=E8e({applyZoom:this.scale!==1,container:Mn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=I8e(this.canvas),this.nodeSelection=W8e(this.canvas),this.markerSelection=H8e(this.canvas),this.drag=_8e({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(){X8e(this.nodeSelection),M8e({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Mn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var n,i,o;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(i=(n=this.config.hooks).afterZoom)==null||i.call(n,this.scale,this.xOffset,this.yOffset),(o=this.simulation)==null||o.restart()}applyZoom(){C8e({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=S8e({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function bA({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function eNe(e){return{...e}}function QS(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const tNe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},nNe={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},rNe=["id","checked","onChange"],iNe=["for"],sNe=me("div",{"flex-auto":""},null,-1),oNe=ot({__name:"ViewModuleGraph",props:{graph:null},setup(e){const t=e,{graph:n}=K$(t),i=Xe(),o=Xe(!1),a=Xe(),c=Xe();j0(()=>{o.value===!1&&setTimeout(()=>a.value=void 0,300)},{flush:"post"}),Zu(()=>{p()}),W0(()=>{var y;(y=c.value)==null||y.shutdown()}),Zt(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 J8e(i.value,n.value,A8e({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:qS.Arrow(2),modifiers:{node:g},positionInitializer:n.value.nodes.length>1?A0.Randomized:A0.Centered,zoom:{min:.5,max:2}})))}function g(y){if(Qr)return;const m=E=>E.button===0;let A=0,$=0,L=0;y.on("pointerdown",(E,C)=>{C.type!=="external"&&(!C.x||!C.y||!m(E)||(A=C.x,$=C.y,L=Date.now()))}).on("pointerup",(E,C)=>{if(C.type==="external"||!C.x||!C.y||!m(E)||Date.now()-L>500)return;const S=C.x-A,O=C.y-$;S**2+O**2<100&&d(C.id)})}return(y,m)=>{var C;const A=La,$=eBe,L=HLe,E=to("tooltip");return de(),ke("div",tNe,[me("div",null,[me("div",nNe,[(de(!0),ke(ht,null,Dr((C=X(c))==null?void 0:C.nodeTypes.sort(),S=>{var O;return de(),ke("div",{key:S,flex:"~ gap-1","items-center":"","select-none":""},[me("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,rNe),me("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${S}`,"border-b-2":"",style:Un({"border-color":`var(--color-node-${S})`})},Ye(S)+" Modules",13,iNe)])}),128)),sNe,me("div",null,[$n(Me(A,{icon:"i-carbon-reset",onClick:p},null,512),[[E,"Reset",void 0,{bottom:!0}]])])])]),me("div",{ref_key:"el",ref:i},null,512),Me(L,{modelValue:X(o),"onUpdate:modelValue":m[1]||(m[1]=S=>Nt(o)?o.value=S:null),direction:"right"},{default:Je(()=>[X(a)?(de(),tt(cT,{key:0},{default:Je(()=>[Me($,{id:X(a),onClose:m[0]||(m[0]=S=>o.value=!1)},null,8,["id"])]),_:1})):lt("",!0)]),_:1},8,["modelValue"])])}}});const aNe={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},uNe={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},lNe={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},cNe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},fNe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},hNe={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Yv=ot({__name:"StatusIcon",props:{task:null},setup(e){return(t,n)=>{var o,a,c;const i=to("tooltip");return((o=e.task.result)==null?void 0:o.state)==="pass"?(de(),ke("div",aNe)):X(Bh)(e.task)?$n((de(),ke("div",uNe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):((a=e.task.result)==null?void 0:a.state)==="fail"?(de(),ke("div",lNe)):e.task.mode==="todo"?$n((de(),ke("div",cNe,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((c=e.task.result)==null?void 0:c.state)==="skip"?$n((de(),ke("div",fNe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(de(),ke("div",hNe))}}});function dNe(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 pNe(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 gNe(e){const t=e.map(i=>pNe(i)),n=dNe(t);return t.map(({raw:i,id:o})=>QS({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:n.get(i)??""},isFocused:!1,id:o,type:"external"}))}function vNe(e,t){return QS({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function mNe(e,t){if(!e)return bA({});const n=gNe(e.externalized),i=e.inlined.map(h=>vNe(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 eNe({source:g,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return bA({nodes:o,links:c})}const yNe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},bNe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},wNe={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},DNe={class:"flex text-lg"},ANe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},xNe={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},ENe={key:0,"flex-1":""},CNe=ot({__name:"FileDetails",setup(e){const t=Xe({externalized:[],graph:{},inlined:[]}),n=Xe({nodes:[],links:[]}),i=Xe(!1),o=Xe(!1);tW(Pt,async(p,g)=>{p&&p.filepath!==(g==null?void 0:g.filepath)&&(t.value=await sn.rpc.getModuleGraph(p.filepath),n.value=mNe(t.value,p.filepath))},{debounce:100,immediate:!0});function a(){var g;const p=(g=Pt.value)==null?void 0:g.filepath;p&&fetch(`/__open-in-editor?file=${encodeURIComponent(p)}`)}function c(p){p==="graph"&&(o.value=!0),Mr.value=p}const h=Ce(()=>{var p;return((p=V_.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=Yv,m=La,A=oNe,$=ULe,L=BLe,E=CLe,C=to("tooltip");return X(Pt)?(de(),ke("div",yNe,[me("div",null,[me("div",bNe,[Me(y,{task:X(Pt)},null,8,["task"]),me("div",wNe,Ye((S=X(Pt))==null?void 0:S.filepath),1),me("div",DNe,[X(Qr)?lt("",!0):$n((de(),tt(m,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=X(Pt))!=null&&O.filepath),onClick:a},null,8,["disabled"])),[[C,"Open in editor",void 0,{bottom:!0}]])])]),me("div",ANe,[me("button",{"tab-button":"",class:yt({"tab-button-active":X(Mr)==null}),"data-testid":"btn-report",onClick:g[0]||(g[0]=B=>c(null))}," Report ",2),me("button",{"tab-button":"","data-testid":"btn-graph",class:yt({"tab-button-active":X(Mr)==="graph"}),onClick:g[1]||(g[1]=B=>c("graph"))}," Module Graph ",2),X(Qr)?lt("",!0):(de(),ke("button",{key:0,"tab-button":"","data-testid":"btn-code",class:yt({"tab-button-active":X(Mr)==="editor"}),onClick:g[2]||(g[2]=B=>c("editor"))},Ye(X(i)?"* ":"")+"Code ",3)),me("button",{"tab-button":"","data-testid":"btn-console",class:yt({"tab-button-active":X(Mr)==="console",op20:X(Mr)!=="console"&&X(h)===0}),onClick:g[3]||(g[3]=B=>c("console"))}," Console ("+Ye(X(h))+") ",3)])]),me("div",xNe,[X(o)?(de(),ke("div",ENe,[$n(Me(A,{graph:X(n),"data-testid":"graph"},null,8,["graph"]),[[_x,X(Mr)==="graph"]])])):lt("",!0),X(Mr)==="editor"?(de(),tt($,{key:X(Pt).filepath,file:X(Pt),"data-testid":"editor",onDraft:d},null,8,["file"])):X(Mr)==="console"?(de(),tt(L,{key:2,file:X(Pt),"data-testid":"console"},null,8,["file"])):X(Mr)?lt("",!0):(de(),tt(E,{key:3,file:X(Pt),"data-testid":"report"},null,8,["file"]))])])):lt("",!0)}}}),_Ne=["open"],SNe=me("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),FNe=me("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),$Ne=ot({__name:"DetailsPanel",props:{color:null},setup(e){const t=Xe(!0);return(n,i)=>(de(),ke("div",{open:X(t),class:"details-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[me("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"},[SNe,_r(n.$slots,"summary",{open:X(t)}),FNe],2),_r(n.$slots,"default")],40,_Ne))}});const TNe={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},kNe=["text"],LNe={"text-sm":"",truncate:"","font-light":""},BNe={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},ONe=ot({__name:"TaskItem",props:{task:null},setup(e){const t=e,n=Ce(()=>{const{result:i}=t.task;return i&&Math.round(i.duration||0)});return(i,o)=>{var c,h;const a=Yv;return e.task?(de(),ke("div",TNe,[Me(a,{task:e.task,"mr-2":""},null,8,["task"]),me("div",{flex:"","items-end":"","gap-2":"",text:((h=(c=e.task)==null?void 0:c.result)==null?void 0:h.state)==="fail"?"red-500":""},[me("span",LNe,Ye(e.task.name),1),typeof X(n)=="number"?(de(),ke("span",BNe,Ye(X(n)>0?X(n):"< 1")+"ms ",1)):lt("",!0)],8,kNe)])):lt("",!0)}}});function PNe(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 NNe={key:1},INe={inheritAttrs:!1},RNe=ot({...INe,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(e){return(t,n)=>{const i=ONe,o=Qs("TaskTree",!0);return de(),ke(ht,null,[!e.search||X(XS)(e.task.name,e.search)?(de(),tt(i,us({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"])):lt("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(de(),ke("div",NNe,[(de(!0),ke(ht,null,Dr(e.task.tasks,a=>(de(),tt(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))])):lt("",!0)],64)}}}),MNe={h:"full",flex:"~ col"},zNe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},UNe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},HNe=me("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),qNe=["op"],jNe={class:"scrolls","flex-auto":"","py-1":""},VNe={"text-red5":""},WNe={"text-yellow5":""},GNe={"text-green5":""},KNe={class:"text-purple5:50"},QNe={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},XNe=me("div",{op30:""}," No matched test ",-1),YNe={inheritAttrs:!1},YS=ot({...YNe,__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=Xe(""),o=Xe(),a=Ce(()=>i.value.trim()!=="");function c(E,C){let S=!1;for(let O=0;O<E.length;O++){const B=E[O];if(XS(B.name,C)){S=!0;break}if(PNe(B)&&B.tasks&&(S=c(B.tasks,C),S))break}return S}const h=Ce(()=>i.value.trim()?n.tasks.filter(E=>c([E],i.value)):n.tasks),d=Ce(()=>a.value?h.value.map(E=>Ff(E.id)).filter(Boolean):[]),p=Ce(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="fail"})),g=Ce(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="pass"})),y=Ce(()=>h.value.filter(E=>E.mode==="skip"||E.mode==="todo")),m=Ce(()=>h.value.filter(E=>!p.value.includes(E)&&!g.value.includes(E)&&!y.value.includes(E))),A=qV(m,250);function $(E){var C;i.value="",E&&((C=o.value)==null||C.focus())}const L=Ce(()=>i.value==="");return(E,C)=>{const S=La,O=RNe,B=$Ne,k=to("tooltip");return de(),ke("div",MNe,[me("div",null,[me("div",zNe,[_r(E.$slots,"header",{filteredTests:X(a)?X(d):void 0})]),me("div",UNe,[HNe,$n(me("input",{ref_key:"searchBox",ref:o,"onUpdate:modelValue":C[0]||(C[0]=M=>Nt(i)?i.value=M:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:X(i).length?"100":"50",onKeydown:[C[1]||(C[1]=Bp(M=>$(!1),["esc"])),C[2]||(C[2]=Bp(M=>t("run",X(a)?X(d):void 0),["enter"]))]},null,40,qNe),[[kk,X(i)]]),$n(Me(S,{disabled:X(L),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=M=>$(!0))},null,8,["disabled"]),[[k,"Clear search",void 0,{bottom:!0}]])])]),me("div",jNe,[e.groupByType?(de(),ke(ht,{key:0},[X(p).length?(de(),tt(B,{key:0},{summary:Je(()=>[me("div",VNe," FAIL ("+Ye(X(p).length)+") ",1)]),default:Je(()=>[(de(!0),ke(ht,null,Dr(X(p),M=>(de(),tt(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(wi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):lt("",!0),X(m).length||X(Sf)==="running"?(de(),tt(B,{key:1},{summary:Je(()=>[me("div",WNe," RUNNING ("+Ye(X(A).length)+") ",1)]),default:Je(()=>[(de(!0),ke(ht,null,Dr(X(A),M=>(de(),tt(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(wi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):lt("",!0),X(g).length?(de(),tt(B,{key:2},{summary:Je(()=>[me("div",GNe," PASS ("+Ye(X(g).length)+") ",1)]),default:Je(()=>[(de(!0),ke(ht,null,Dr(X(g),M=>(de(),tt(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(wi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):lt("",!0),X(y).length?(de(),tt(B,{key:3},{summary:Je(()=>[me("div",KNe," SKIP ("+Ye(X(y).length)+") ",1)]),default:Je(()=>[(de(!0),ke(ht,null,Dr(X(y),M=>(de(),tt(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(wi)===M.id?"bg-active":""),"on-item-click":e.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):lt("",!0)],64)):(de(!0),ke(ht,{key:1},Dr(X(h),M=>(de(),tt(O,{key:M.id,task:M,nested:e.nested,search:X(i),class:yt(X(wi)===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",QNe,[XNe,me("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:C[4]||(C[4]=M=>$(!0))}," Clear ",32)])):lt("",!0)])])}}}),ZNe={key:0,"h-full":""},JNe={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},eIe={class:"flex text-lg"},tIe=ot({__name:"Suites",setup(e){const t=Ce(()=>{var o;return(o=Pt.value)==null?void 0:o.name.split(/\//g).pop()}),n=Ce(()=>{var o,a;return((o=Pt.value)==null?void 0:o.tasks)&&Bh((a=Pt.value)==null?void 0:a.tasks)});function i(){return Pt.value&&sn.rpc.updateSnapshot(Pt.value)}return(o,a)=>{const c=Yv,h=La,d=YS,p=to("tooltip");return X(Pt)?(de(),ke("div",ZNe,[Me(d,{tasks:X(Pt).tasks,nested:!0},{header:Je(()=>[Me(c,{"mx-1":"",task:X(Pt)},null,8,["task"]),me("span",JNe,Ye(X(t)),1),me("div",eIe,[X(n)&&!X(Qr)?$n((de(),tt(h,{key:0,icon:"i-carbon-result-old",onClick:a[0]||(a[0]=g=>i())},null,512)),[[p,`Update failed snapshot(s) of ${X(Pt).name}`,void 0,{bottom:!0}]]):lt("",!0),X(Qr)?lt("",!0):$n((de(),tt(h,{key:1,icon:"i-carbon-play",onClick:a[1]||(a[1]=g=>X(dG)())},null,512)),[[p,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):lt("",!0)}}}),Nf=Ce(()=>qn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),If=Ce(()=>qn.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),Zv=Ce(()=>qn.value.filter(e=>e.mode==="skip"||e.mode==="todo"));Ce(()=>qn.value.filter(e=>!Nf.value.includes(e)&&!If.value.includes(e)&&!Zv.value.includes(e)));Ce(()=>Zv.value.filter(e=>e.mode==="skip"));const wA=Ce(()=>qn.value.filter(Bh));Ce(()=>Zv.value.filter(e=>e.mode==="todo"));const nIe=Ce(()=>Sf.value==="idle"),Fl=Ce(()=>Jv(qn.value)),ZS=Ce(()=>Fl.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="fail"})),JS=Ce(()=>Fl.value.filter(e=>{var t;return((t=e.result)==null?void 0:t.state)==="pass"})),eF=Ce(()=>Fl.value.filter(e=>e.mode==="skip"||e.mode==="todo")),rIe=Ce(()=>eF.value.filter(e=>e.mode==="skip")),iIe=Ce(()=>eF.value.filter(e=>e.mode==="todo"));Ce(()=>ZS.value.length+JS.value.length);const sIe=Ce(()=>{const e=Jv(Fl.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 oIe(e){return e=e||[],Array.isArray(e)?e:[e]}function DA(e){return e.type==="test"||e.type==="benchmark"||e.type==="typecheck"}function Jv(e){return oIe(e).flatMap(t=>DA(t)?[t]:t.tasks.flatMap(n=>DA(n)?[n]:Jv(n)))}const ei=e=>(ex("data-v-6679a536"),e=e(),tx(),e),aIe={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},uIe=ei(()=>me("div",{"i-carbon-document":""},null,-1)),lIe=ei(()=>me("div",null,"Files",-1)),cIe={class:"number","data-testid":"num-files"},fIe=ei(()=>me("div",{"i-carbon-checkmark":""},null,-1)),hIe=ei(()=>me("div",null,"Pass",-1)),dIe={class:"number"},pIe=ei(()=>me("div",{"i-carbon-close":""},null,-1)),gIe=ei(()=>me("div",null," Fail ",-1)),vIe={class:"number","text-red5":""},mIe=ei(()=>me("div",{"i-carbon-compare":""},null,-1)),yIe=ei(()=>me("div",null," Snapshot Fail ",-1)),bIe={class:"number","text-red5":""},wIe=ei(()=>me("div",{"i-carbon-timer":""},null,-1)),DIe=ei(()=>me("div",null,"Time",-1)),AIe={class:"number","data-testid":"run-time"},xIe=ot({__name:"TestFilesEntry",setup(e){return(t,n)=>(de(),ke("div",aIe,[uIe,lIe,me("div",cIe,Ye(X(qn).length),1),X(If).length?(de(),ke(ht,{key:0},[fIe,hIe,me("div",dIe,Ye(X(If).length),1)],64)):lt("",!0),X(Nf).length?(de(),ke(ht,{key:1},[pIe,gIe,me("div",vIe,Ye(X(Nf).length),1)],64)):lt("",!0),X(wA).length?(de(),ke(ht,{key:2},[mIe,yIe,me("div",bIe,Ye(X(wA).length),1)],64)):lt("",!0),wIe,DIe,me("div",AIe,Ye(X(sIe)),1)]))}});const EIe=no(xIe,[["__scopeId","data-v-6679a536"]]),CIe={"p-2":"","text-center":"",flex:""},_Ie={"text-4xl":"","min-w-2em":""},SIe={"text-md":""},FIe=ot({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(e){return(t,n)=>(de(),ke("div",CIe,[me("div",null,[me("div",_Ie,[_r(t.$slots,"body")]),me("div",SIe,[_r(t.$slots,"header")])])]))}}),$Ie={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},TIe=ot({__name:"TestsEntry",setup(e){const t=Ce(()=>Fl.value.length),n=Ce(()=>JS.value.length),i=Ce(()=>ZS.value.length),o=Ce(()=>rIe.value.length),a=Ce(()=>iIe.value.length);return(c,h)=>{const d=FIe;return de(),ke("div",$Ie,[Me(d,{"text-green5":"","data-testid":"pass-entry"},{header:Je(()=>[_n(" Pass ")]),body:Je(()=>[_n(Ye(X(n)),1)]),_:1}),Me(d,{class:yt({"text-red5":X(i),op50:!X(i)}),"data-testid":"fail-entry"},{header:Je(()=>[_n(" Fail ")]),body:Je(()=>[_n(Ye(X(i)),1)]),_:1},8,["class"]),X(o)?(de(),tt(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Je(()=>[_n(" Skip ")]),body:Je(()=>[_n(Ye(X(o)),1)]),_:1})):lt("",!0),X(a)?(de(),tt(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Je(()=>[_n(" Todo ")]),body:Je(()=>[_n(Ye(X(a)),1)]),_:1})):lt("",!0),Me(d,{tail:!0,"data-testid":"total-entry"},{header:Je(()=>[_n(" Total ")]),body:Je(()=>[_n(Ye(X(t)),1)]),_:1})])}}}),kIe={},LIe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},BIe={"aria-labelledby":"tests",m:"y-4 x-2"};function OIe(e,t){const n=TIe,i=EIe;return de(),ke("div",LIe,[me("section",BIe,[Me(n)]),Me(i)])}const PIe=no(kIe,[["render",OIe]]),NIe={},IIe={h:"full",flex:"~ col"},RIe=me("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[me("div",{class:"i-carbon-dashboard"}),me("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),MIe={class:"scrolls","flex-auto":"","py-1":""};function zIe(e,t){const n=PIe;return de(),ke("div",IIe,[RIe,me("div",MIe,[Me(n)])])}const UIe=no(NIe,[["render",zIe]]),HIe=""+new URL("../favicon.svg",import.meta.url).href,Rf=Xe(),Bu=Xe(!0);function qIe(){const e=wi.value;if(e&&e.length>0){const t=Ff(e);t?(Rf.value=t,Bu.value=!1):nW(()=>sn.state.getFiles(),()=>{Rf.value=Ff(e),Bu.value=!1})}return Bu}function AA(e){Bu.value=e,e&&(Rf.value=void 0,wi.value="")}const jIe=me("img",{"w-6":"","h-6":"",src:HIe,alt:"Vitest logo"},null,-1),VIe=me("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),WIe={class:"flex text-lg"},GIe=ot({__name:"Navigation",setup(e){const t=Ce(()=>qn.value&&Bh(qn.value));function n(){return sn.rpc.updateSnapshot()}function i(a){wi.value=a.id,Rf.value=Ff(a.id),AA(!1)}const o=Ce(()=>Nh.value?"light":"dark");return(a,c)=>{const h=La,d=YS,p=to("tooltip");return de(),tt(d,{border:"r base",tasks:X(qn),"on-item-click":i,"group-by-type":!0,onRun:X(MD)},{header:Je(({filteredTests:g})=>[jIe,VIe,me("div",WIe,[$n(Me(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:c[0]||(c[0]=y=>X(AA)(!0))},null,512),[[_x,!X(Bu)],[p,"Dashboard",void 0,{bottom:!0}]]),X(t)&&!X(Qr)?$n((de(),tt(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}]]):lt("",!0),X(Qr)?lt("",!0):$n((de(),tt(h,{key:1,disabled:(g==null?void 0:g.length)===0,icon:"i-carbon-play",onClick:y=>X(MD)(g)},null,8,["disabled","onClick"])),[[p,g?g.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),$n(Me(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:c[2]||(c[2]=y=>X(bLe)())},null,512),[[p,`Toggle to ${X(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),KIe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},QIe=ot({__name:"ProgressBar",setup(e){const{width:t}=VW(),n=Ce(()=>qn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":nIe.value?null:"in-progress"),i=Ce(()=>qn.value.length),o=Ce(()=>If.value.length),a=Ce(()=>Nf.value.length),c=Ce(()=>{const g=X(i);return g>0?t.value*o.value/g:0}),h=Ce(()=>{const g=X(i);return g>0?t.value*a.value/g:0}),d=Ce(()=>X(i)-a.value-o.value),p=Ce(()=>{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))},[me("div",KIe,[me("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:yt(X(n)),style:Un(`width: ${X(h)}px;`)}," ",6),me("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:yt(X(n)),style:Un(`left: ${X(h)}px; width: ${X(c)}px;`)}," ",6),me("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:yt(X(n)),style:Un(`left: ${X(c)+X(h)}px; width: ${X(p)}px;`)}," ",6)])],2))}});const XIe=no(QIe,[["__scopeId","data-v-f967c1fe"]]),xA={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 Ju("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},YIe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},ZIe={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 JIe(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:Un(e.style)},[_r(e.$slots,"default")],4)}const zc=YIe(ZIe,[["render",JIe]]),eRe={"h-screen":"","w-screen":"",overflow:"hidden"},tRe=ot({__name:"index",setup(e){const t=qIe(),n=Zn([33,67]),i=Zn([33,67]),o=AD(h=>{h.forEach((d,p)=>{n[p]=d.size})},0),a=AD(h=>{h.forEach((d,p)=>{i[p]=d.size})},0);function c(){const h=window.innerWidth,d=Math.min(h/3,300);n[0]=100*d/h,n[1]=100-n[0],i[0]=100*d/(h-d),i[1]=100-i[0]}return(h,d)=>{const p=XIe,g=GIe,y=UIe,m=tIe,A=CNe,$=vG;return de(),ke(ht,null,[Me(p),me("div",eRe,[Me(X(xA),{class:"pt-4px",onResized:X(o),onReady:c},{default:Je(()=>[Me(X(zc),{size:X(n)[0]},{default:Je(()=>[Me(g)]),_:1},8,["size"]),Me(X(zc),{size:X(n)[1]},{default:Je(()=>[Me(X0,null,{default:Je(()=>[X(t)?(de(),tt(y,{key:"summary"})):(de(),tt(X(xA),{key:"detail",onResized:X(a)},{default:Je(()=>[Me(X(zc),{size:X(i)[0]},{default:Je(()=>[Me(m)]),_:1},8,["size"]),Me(X(zc),{size:X(i)[1]},{default:Je(()=>[Me(A)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Me($)],64)}}}),nRe=[{name:"index",path:"/",component:tRe,props:!0}];const rRe={tooltip:YB};aE.options.instantMove=!0;aE.options.distance=10;function iRe(){return zL({history:nL(NV),routes:nRe})}const sRe=[iRe],em=Sx(Rk);sRe.forEach(e=>{em.use(e())});Object.entries(rRe).forEach(([e,t])=>{em.directive(e,t)});em.mount("#app");
|