@vitest/browser 2.0.0-beta.1 → 2.0.0-beta.11
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/context.d.ts +244 -0
- package/context.js +2 -0
- package/dist/client/.vite/manifest.json +24 -0
- package/dist/client/__vitest__/assets/index-BfnqOMHY.js +51 -0
- package/dist/client/__vitest__/assets/index-qZYZB8Y3.css +1 -0
- package/dist/client/__vitest__/index.html +16 -11
- package/dist/client/__vitest_browser__/orchestrator-DQ4hbmZ_.js +338 -0
- package/dist/client/__vitest_browser__/{rpc-By4jD8av.js → rpc-D6HtJ5Rb.js} +310 -399
- package/dist/client/__vitest_browser__/tester-IF8AbWCS.js +837 -0
- package/dist/client/esm-client-injector.js +24 -37
- package/dist/client/{index.html → orchestrator.html} +8 -7
- package/dist/client/{tester.html → tester/tester.html} +13 -3
- package/dist/context.js +175 -0
- package/dist/index.d.ts +103 -4
- package/dist/index.js +1944 -332
- package/dist/providers.js +20 -116
- package/dist/state.js +1 -0
- package/dist/webdriver-BRud6NtS.js +180 -0
- package/package.json +23 -11
- package/providers/playwright.d.ts +36 -2
- package/providers/webdriverio.d.ts +4 -0
- package/providers.d.ts +5 -5
- package/dist/client/__vitest__/assets/index-BMbN3lBu.js +0 -51
- package/dist/client/__vitest__/assets/index-D0Wp7rbG.css +0 -1
- package/dist/client/__vitest_browser__/main-DmAU-Uff.js +0 -102
- package/dist/client/__vitest_browser__/tester-CrKhlp5g.js +0 -473
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var Sx=Object.defineProperty;var kx=(t,e,r)=>e in t?Sx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Zi=(t,e,r)=>(kx(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();/**
|
|
2
|
-
* @vue/shared v3.4.27
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function bh(t,e){const r=new Set(t.split(","));return o=>r.has(o)}const ye={},Qo=[],Bn=()=>{},Cx=()=>!1,Pc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),wh=t=>t.startsWith("onUpdate:"),Re=Object.assign,xh=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Tx=Object.prototype.hasOwnProperty,ae=(t,e)=>Tx.call(t,e),It=Array.isArray,ts=t=>Oc(t)==="[object Map]",Rm=t=>Oc(t)==="[object Set]",Gt=t=>typeof t=="function",De=t=>typeof t=="string",mo=t=>typeof t=="symbol",be=t=>t!==null&&typeof t=="object",Dm=t=>(be(t)||Gt(t))&&Gt(t.then)&&Gt(t.catch),zm=Object.prototype.toString,Oc=t=>zm.call(t),Ex=t=>Oc(t).slice(8,-1),Im=t=>Oc(t)==="[object Object]",_h=t=>De(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ol=bh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Lx=/-(\w)/g,fr=Rc(t=>t.replace(Lx,(e,r)=>r?r.toUpperCase():"")),Ax=/\B([A-Z])/g,Di=Rc(t=>t.replace(Ax,"-$1").toLowerCase()),Dc=Rc(t=>t.charAt(0).toUpperCase()+t.slice(1)),ef=Rc(t=>t?`on${Dc(t)}`:""),Lr=(t,e)=>!Object.is(t,e),Ya=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},Fm=(t,e,r,o=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:r})},Af=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Hm=t=>{const e=De(t)?Number(t):NaN;return isNaN(e)?t:e};let mg;const qm=()=>mg||(mg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function An(t){if(It(t)){const e={};for(let r=0;r<t.length;r++){const o=t[r],s=De(o)?Px(o):An(o);if(s)for(const u in s)e[u]=s[u]}return e}else if(De(t)||be(t))return t}const Mx=/;(?![^(]*\))/g,Nx=/:([^]+)/,$x=/\/\*[^]*?\*\//g;function Px(t){const e={};return t.replace($x,"").split(Mx).forEach(r=>{if(r){const o=r.split(Nx);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function ge(t){let e="";if(De(t))e=t;else if(It(t))for(let r=0;r<t.length;r++){const o=ge(t[r]);o&&(e+=o+" ")}else if(be(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function Ox(t){if(!t)return null;let{class:e,style:r}=t;return e&&!De(e)&&(t.class=ge(e)),r&&(t.style=An(r)),t}const Rx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Dx=bh(Rx);function Bm(t){return!!t||t===""}const jt=t=>De(t)?t:t==null?"":It(t)||be(t)&&(t.toString===zm||!Gt(t.toString))?JSON.stringify(t,Wm,2):String(t),Wm=(t,e)=>e&&e.__v_isRef?Wm(t,e.value):ts(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,s],u)=>(r[nf(o,u)+" =>"]=s,r),{})}:Rm(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>nf(r))}:mo(e)?nf(e):be(e)&&!It(e)&&!Im(e)?String(e):e,nf=(t,e="")=>{var r;return mo(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/**
|
|
6
|
-
* @vue/reactivity v3.4.27
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let On;class zx{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!e&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=On;try{return On=this,e()}finally{On=r}}}on(){On=this}off(){On=this.parent}stop(e){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Ix(t,e=On){e&&e.active&&e.effects.push(t)}function Um(){return On}function Fx(t){On&&On.cleanups.push(t)}let ao;class Sh{constructor(e,r,o,s){this.fn=e,this.trigger=r,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Ix(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,zi();for(let e=0;e<this._depsLength;e++){const r=this.deps[e];if(r.computed&&(Hx(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ii()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ei,r=ao;try{return Ei=!0,ao=this,this._runnings++,yg(this),this.fn()}finally{bg(this),this._runnings--,ao=r,Ei=e}}stop(){this.active&&(yg(this),bg(this),this.onStop&&this.onStop(),this.active=!1)}}function Hx(t){return t.value}function yg(t){t._trackId++,t._depsLength=0}function bg(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Vm(t.deps[e],t);t.deps.length=t._depsLength}}function Vm(t,e){const r=t.get(e);r!==void 0&&e._trackId!==r&&(t.delete(e),t.size===0&&t.cleanup())}let Ei=!0,Mf=0;const Gm=[];function zi(){Gm.push(Ei),Ei=!1}function Ii(){const t=Gm.pop();Ei=t===void 0?!0:t}function kh(){Mf++}function Ch(){for(Mf--;!Mf&&Nf.length;)Nf.shift()()}function jm(t,e,r){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const o=t.deps[t._depsLength];o!==e?(o&&Vm(o,t),t.deps[t._depsLength++]=e):t._depsLength++}}const Nf=[];function Km(t,e,r){kh();for(const o of t.keys()){let s;o._dirtyLevel<e&&(s??(s=t.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=e),o._shouldSchedule&&(s??(s=t.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&Nf.push(o.scheduler)))}Ch()}const Xm=(t,e)=>{const r=new Map;return r.cleanup=t,r.computed=e,r},ac=new WeakMap,co=Symbol(""),$f=Symbol("");function Mn(t,e,r){if(Ei&&ao){let o=ac.get(t);o||ac.set(t,o=new Map);let s=o.get(r);s||o.set(r,s=Xm(()=>o.delete(r))),jm(ao,s)}}function Ur(t,e,r,o,s,u){const f=ac.get(t);if(!f)return;let h=[];if(e==="clear")h=[...f.values()];else if(r==="length"&&It(t)){const d=Number(o);f.forEach((g,v)=>{(v==="length"||!mo(v)&&v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),e){case"add":It(t)?_h(r)&&h.push(f.get("length")):(h.push(f.get(co)),ts(t)&&h.push(f.get($f)));break;case"delete":It(t)||(h.push(f.get(co)),ts(t)&&h.push(f.get($f)));break;case"set":ts(t)&&h.push(f.get(co));break}kh();for(const d of h)d&&Km(d,4);Ch()}function qx(t,e){const r=ac.get(t);return r&&r.get(e)}const Bx=bh("__proto__,__v_isRef,__isVue"),Ym=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(mo)),wg=Wx();function Wx(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=fe(this);for(let u=0,f=this.length;u<f;u++)Mn(o,"get",u+"");const s=o[e](...r);return s===-1||s===!1?o[e](...r.map(fe)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){zi(),kh();const o=fe(this)[e].apply(this,r);return Ch(),Ii(),o}}),t}function Ux(t){mo(t)||(t=String(t));const e=fe(this);return Mn(e,"has",t),e.hasOwnProperty(t)}class Zm{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,o){const s=this._isReadonly,u=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return u;if(r==="__v_raw")return o===(s?u?r_:e0:u?t0:Qm).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(o)?e:void 0;const f=It(e);if(!s){if(f&&ae(wg,r))return Reflect.get(wg,r,o);if(r==="hasOwnProperty")return Ux}const h=Reflect.get(e,r,o);return(mo(r)?Ym.has(r):Bx(r))||(s||Mn(e,"get",r),u)?h:Ae(h)?f&&_h(r)?h:h.value:be(h)?s?Ic(h):kr(h):h}}class Jm extends Zm{constructor(e=!1){super(!1,e)}set(e,r,o,s){let u=e[r];if(!this._isShallow){const d=wl(u);if(!cc(o)&&!wl(o)&&(u=fe(u),o=fe(o)),!It(e)&&Ae(u)&&!Ae(o))return d?!1:(u.value=o,!0)}const f=It(e)&&_h(r)?Number(r)<e.length:ae(e,r),h=Reflect.set(e,r,o,s);return e===fe(s)&&(f?Lr(o,u)&&Ur(e,"set",r,o):Ur(e,"add",r,o)),h}deleteProperty(e,r){const o=ae(e,r);e[r];const s=Reflect.deleteProperty(e,r);return s&&o&&Ur(e,"delete",r,void 0),s}has(e,r){const o=Reflect.has(e,r);return(!mo(r)||!Ym.has(r))&&Mn(e,"has",r),o}ownKeys(e){return Mn(e,"iterate",It(e)?"length":co),Reflect.ownKeys(e)}}class Vx extends Zm{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const Gx=new Jm,jx=new Vx,Kx=new Jm(!0);const Th=t=>t,zc=t=>Reflect.getPrototypeOf(t);function Ma(t,e,r=!1,o=!1){t=t.__v_raw;const s=fe(t),u=fe(e);r||(Lr(e,u)&&Mn(s,"get",e),Mn(s,"get",u));const{has:f}=zc(s),h=o?Th:r?Ah:xl;if(f.call(s,e))return h(t.get(e));if(f.call(s,u))return h(t.get(u));t!==s&&t.get(e)}function Na(t,e=!1){const r=this.__v_raw,o=fe(r),s=fe(t);return e||(Lr(t,s)&&Mn(o,"has",t),Mn(o,"has",s)),t===s?r.has(t):r.has(t)||r.has(s)}function $a(t,e=!1){return t=t.__v_raw,!e&&Mn(fe(t),"iterate",co),Reflect.get(t,"size",t)}function xg(t){t=fe(t);const e=fe(this);return zc(e).has.call(e,t)||(e.add(t),Ur(e,"add",t,t)),this}function _g(t,e){e=fe(e);const r=fe(this),{has:o,get:s}=zc(r);let u=o.call(r,t);u||(t=fe(t),u=o.call(r,t));const f=s.call(r,t);return r.set(t,e),u?Lr(e,f)&&Ur(r,"set",t,e):Ur(r,"add",t,e),this}function Sg(t){const e=fe(this),{has:r,get:o}=zc(e);let s=r.call(e,t);s||(t=fe(t),s=r.call(e,t)),o&&o.call(e,t);const u=e.delete(t);return s&&Ur(e,"delete",t,void 0),u}function kg(){const t=fe(this),e=t.size!==0,r=t.clear();return e&&Ur(t,"clear",void 0,void 0),r}function Pa(t,e){return function(o,s){const u=this,f=u.__v_raw,h=fe(f),d=e?Th:t?Ah:xl;return!t&&Mn(h,"iterate",co),f.forEach((g,v)=>o.call(s,d(g),d(v),u))}}function Oa(t,e,r){return function(...o){const s=this.__v_raw,u=fe(s),f=ts(u),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=s[t](...o),v=r?Th:e?Ah:xl;return!e&&Mn(u,"iterate",d?$f:co),{next(){const{value:y,done:w}=g.next();return w?{value:y,done:w}:{value:h?[v(y[0]),v(y[1])]:v(y),done:w}},[Symbol.iterator](){return this}}}}function ui(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Xx(){const t={get(u){return Ma(this,u)},get size(){return $a(this)},has:Na,add:xg,set:_g,delete:Sg,clear:kg,forEach:Pa(!1,!1)},e={get(u){return Ma(this,u,!1,!0)},get size(){return $a(this)},has:Na,add:xg,set:_g,delete:Sg,clear:kg,forEach:Pa(!1,!0)},r={get(u){return Ma(this,u,!0)},get size(){return $a(this,!0)},has(u){return Na.call(this,u,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:Pa(!0,!1)},o={get(u){return Ma(this,u,!0,!0)},get size(){return $a(this,!0)},has(u){return Na.call(this,u,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:Pa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=Oa(u,!1,!1),r[u]=Oa(u,!0,!1),e[u]=Oa(u,!1,!0),o[u]=Oa(u,!0,!0)}),[t,r,e,o]}const[Yx,Zx,Jx,Qx]=Xx();function Eh(t,e){const r=e?t?Qx:Jx:t?Zx:Yx;return(o,s,u)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?o:Reflect.get(ae(r,s)&&s in o?r:o,s,u)}const t_={get:Eh(!1,!1)},e_={get:Eh(!1,!0)},n_={get:Eh(!0,!1)};const Qm=new WeakMap,t0=new WeakMap,e0=new WeakMap,r_=new WeakMap;function i_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function o_(t){return t.__v_skip||!Object.isExtensible(t)?0:i_(Ex(t))}function kr(t){return wl(t)?t:Lh(t,!1,Gx,t_,Qm)}function n0(t){return Lh(t,!1,Kx,e_,t0)}function Ic(t){return Lh(t,!0,jx,n_,e0)}function Lh(t,e,r,o,s){if(!be(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=s.get(t);if(u)return u;const f=o_(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return s.set(t,h),h}function sl(t){return wl(t)?sl(t.__v_raw):!!(t&&t.__v_isReactive)}function wl(t){return!!(t&&t.__v_isReadonly)}function cc(t){return!!(t&&t.__v_isShallow)}function r0(t){return t?!!t.__v_raw:!1}function fe(t){const e=t&&t.__v_raw;return e?fe(e):t}function i0(t){return Object.isExtensible(t)&&Fm(t,"__v_skip",!0),t}const xl=t=>be(t)?kr(t):t,Ah=t=>be(t)?Ic(t):t;class o0{constructor(e,r,o,s){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Sh(()=>e(this._value),()=>ll(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const e=fe(this);return(!e._cacheable||e.effect.dirty)&&Lr(e._value,e._value=e.effect.run())&&ll(e,4),Mh(e),e.effect._dirtyLevel>=2&&ll(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function s_(t,e,r=!1){let o,s;const u=Gt(t);return u?(o=t,s=Bn):(o=t.get,s=t.set),new o0(o,s,u||!s,r)}function Mh(t){var e;Ei&&ao&&(t=fe(t),jm(ao,(e=t.dep)!=null?e:t.dep=Xm(()=>t.dep=void 0,t instanceof o0?t:void 0)))}function ll(t,e=4,r){t=fe(t);const o=t.dep;o&&Km(o,e)}function Ae(t){return!!(t&&t.__v_isRef===!0)}function te(t){return s0(t,!1)}function gs(t){return s0(t,!0)}function s0(t,e){return Ae(t)?t:new l_(t,e)}class l_{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:fe(e),this._value=r?e:xl(e)}get value(){return Mh(this),this._value}set value(e){const r=this.__v_isShallow||cc(e)||wl(e);e=r?e:fe(e),Lr(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:xl(e),ll(this,4))}}function V(t){return Ae(t)?t.value:t}const a_={get:(t,e,r)=>V(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const s=t[e];return Ae(s)&&!Ae(r)?(s.value=r,!0):Reflect.set(t,e,r,o)}};function l0(t){return sl(t)?t:new Proxy(t,a_)}class c_{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=e(()=>Mh(this),()=>ll(this));this._get=r,this._set=o}get value(){return this._get()}set value(e){this._set(e)}}function a0(t){return new c_(t)}function u_(t){const e=It(t)?new Array(t.length):{};for(const r in t)e[r]=c0(t,r);return e}class f_{constructor(e,r,o){this._object=e,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return qx(fe(this._object),this._key)}}class h_{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Nh(t,e,r){return Ae(t)?t:Gt(t)?new h_(t):be(t)&&arguments.length>1?c0(t,e,r):te(t)}function c0(t,e,r){const o=t[e];return Ae(o)?o:new f_(t,e,r)}/**
|
|
10
|
-
* @vue/runtime-core v3.4.27
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Li(t,e,r,o){try{return o?t(...o):t()}catch(s){Bl(s,e,r)}}function Vn(t,e,r,o){if(Gt(t)){const s=Li(t,e,r,o);return s&&Dm(s)&&s.catch(u=>{Bl(u,e,r)}),s}if(It(t)){const s=[];for(let u=0;u<t.length;u++)s.push(Vn(t[u],e,r,o));return s}}function Bl(t,e,r,o=!0){const s=e?e.vnode:null;if(e){let u=e.parent;const f=e.proxy,h=`https://vuejs.org/error-reference/#runtime-${r}`;for(;u;){const g=u.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](t,f,h)===!1)return}u=u.parent}const d=e.appContext.config.errorHandler;if(d){zi(),Li(d,null,10,[t,f,h]),Ii();return}}d_(t,r,s,o)}function d_(t,e,r,o=!0){console.error(t)}let _l=!1,Pf=!1;const rn=[];let xr=0;const es=[];let mi=null,io=0;const u0=Promise.resolve();let $h=null;function jr(t){const e=$h||u0;return t?e.then(this?t.bind(this):t):e}function p_(t){let e=xr+1,r=rn.length;for(;e<r;){const o=e+r>>>1,s=rn[o],u=Sl(s);u<t||u===t&&s.pre?e=o+1:r=o}return e}function Ph(t){(!rn.length||!rn.includes(t,_l&&t.allowRecurse?xr+1:xr))&&(t.id==null?rn.push(t):rn.splice(p_(t.id),0,t),f0())}function f0(){!_l&&!Pf&&(Pf=!0,$h=u0.then(d0))}function g_(t){const e=rn.indexOf(t);e>xr&&rn.splice(e,1)}function Of(t){It(t)?es.push(...t):(!mi||!mi.includes(t,t.allowRecurse?io+1:io))&&es.push(t),f0()}function Cg(t,e,r=_l?xr+1:0){for(;r<rn.length;r++){const o=rn[r];if(o&&o.pre){if(t&&o.id!==t.uid)continue;rn.splice(r,1),r--,o()}}}function h0(t){if(es.length){const e=[...new Set(es)].sort((r,o)=>Sl(r)-Sl(o));if(es.length=0,mi){mi.push(...e);return}for(mi=e,io=0;io<mi.length;io++)mi[io]();mi=null,io=0}}const Sl=t=>t.id==null?1/0:t.id,v_=(t,e)=>{const r=Sl(t)-Sl(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function d0(t){Pf=!1,_l=!0,rn.sort(v_);try{for(xr=0;xr<rn.length;xr++){const e=rn[xr];e&&e.active!==!1&&Li(e,null,14)}}finally{xr=0,rn.length=0,h0(),_l=!1,$h=null,(rn.length||es.length)&&d0()}}function m_(t,e,...r){if(t.isUnmounted)return;const o=t.vnode.props||ye;let s=r;const u=e.startsWith("update:"),f=u&&e.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:y,trim:w}=o[v]||ye;w&&(s=r.map(_=>De(_)?_.trim():_)),y&&(s=r.map(Af))}let h,d=o[h=ef(e)]||o[h=ef(fr(e))];!d&&u&&(d=o[h=ef(Di(e))]),d&&Vn(d,t,6,s);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,Vn(g,t,6,s)}}function p0(t,e,r=!1){const o=e.emitsCache,s=o.get(t);if(s!==void 0)return s;const u=t.emits;let f={},h=!1;if(!Gt(t)){const d=g=>{const v=p0(g,e,!0);v&&(h=!0,Re(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!h?(be(t)&&o.set(t,null),null):(It(u)?u.forEach(d=>f[d]=null):Re(f,u),be(t)&&o.set(t,f),f)}function Fc(t,e){return!t||!Pc(e)?!1:(e=e.slice(2).replace(/Once$/,""),ae(t,e[0].toLowerCase()+e.slice(1))||ae(t,Di(e))||ae(t,e))}let Ve=null,Hc=null;function uc(t){const e=Ve;return Ve=t,Hc=t&&t.type.__scopeId||null,e}function g0(t){Hc=t}function v0(){Hc=null}const y_=t=>re;function re(t,e=Ve,r){if(!e||t._n)return t;const o=(...s)=>{o._d&&zg(-1);const u=uc(e);let f;try{f=t(...s)}finally{uc(u),o._d&&zg(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function rf(t){const{type:e,vnode:r,proxy:o,withProxy:s,propsOptions:[u],slots:f,attrs:h,emit:d,render:g,renderCache:v,props:y,data:w,setupState:_,ctx:M,inheritAttrs:A}=t,L=uc(t);let T,E;try{if(r.shapeFlag&4){const $=s||o,F=$;T=sr(g.call(F,$,v,y,_,w,M)),E=h}else{const $=e;T=sr($.length>1?$(y,{attrs:h,slots:f,emit:d}):$(y,null)),E=e.props?h:w_(h)}}catch($){fl.length=0,Bl($,t,1),T=Ht(mn)}let O=T;if(E&&A!==!1){const $=Object.keys(E),{shapeFlag:F}=O;$.length&&F&7&&(u&&$.some(wh)&&(E=x_(E,u)),O=$i(O,E,!1,!0))}return r.dirs&&(O=$i(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(r.dirs):r.dirs),r.transition&&(O.transition=r.transition),T=O,uc(L),T}function b_(t,e=!0){let r;for(let o=0;o<t.length;o++){const s=t[o];if(Cl(s)){if(s.type!==mn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const w_=t=>{let e;for(const r in t)(r==="class"||r==="style"||Pc(r))&&((e||(e={}))[r]=t[r]);return e},x_=(t,e)=>{const r={};for(const o in t)(!wh(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function __(t,e,r){const{props:o,children:s,component:u}=t,{props:f,children:h,patchFlag:d}=e,g=u.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?Tg(o,f,g):!!f;if(d&8){const v=e.dynamicProps;for(let y=0;y<v.length;y++){const w=v[y];if(f[w]!==o[w]&&!Fc(g,w))return!0}}}else return(s||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Tg(o,f,g):!0:!!f;return!1}function Tg(t,e,r){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let s=0;s<o.length;s++){const u=o[s];if(e[u]!==t[u]&&!Fc(r,u))return!0}return!1}function Oh({vnode:t,parent:e},r){for(;e;){const o=e.subTree;if(o.suspense&&o.suspense.activeBranch===t&&(o.el=t.el),o===t)(t=e.vnode).el=r,e=e.parent;else break}}const m0="components",S_="directives";function fo(t,e){return y0(m0,t,!0,e)||t}const k_=Symbol.for("v-ndc");function yo(t){return y0(S_,t)}function y0(t,e,r=!0,o=!1){const s=Ve||tn;if(s){const u=s.type;if(t===m0){const h=kS(u,!1);if(h&&(h===e||h===fr(e)||h===Dc(fr(e))))return u}const f=Eg(s[t]||u[t],e)||Eg(s.appContext[t],e);return!f&&o?u:f}}function Eg(t,e){return t&&(t[e]||t[fr(e)]||t[Dc(fr(e))])}const C_=t=>t.__isSuspense;let Rf=0;const T_={name:"Suspense",__isSuspense:!0,process(t,e,r,o,s,u,f,h,d,g){if(t==null)L_(e,r,o,s,u,f,h,d,g);else{if(u&&u.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}A_(t,e,r,o,s,f,h,d,g)}},hydrate:M_,create:Rh,normalize:N_},E_=T_;function kl(t,e){const r=t.props&&t.props[e];Gt(r)&&r()}function L_(t,e,r,o,s,u,f,h,d){const{p:g,o:{createElement:v}}=d,y=v("div"),w=t.suspense=Rh(t,s,o,e,y,r,u,f,h,d);g(null,w.pendingBranch=t.ssContent,y,null,o,w,u,f),w.deps>0?(kl(t,"onPending"),kl(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,u,f),ns(w,t.ssFallback)):w.resolve(!1,!0)}function A_(t,e,r,o,s,u,f,h,{p:d,um:g,o:{createElement:v}}){const y=e.suspense=t.suspense;y.vnode=e,e.el=t.el;const w=e.ssContent,_=e.ssFallback,{activeBranch:M,pendingBranch:A,isInFallback:L,isHydrating:T}=y;if(A)y.pendingBranch=w,_r(w,A)?(d(A,w,y.hiddenContainer,null,s,y,u,f,h),y.deps<=0?y.resolve():L&&(T||(d(M,_,r,o,s,null,u,f,h),ns(y,_)))):(y.pendingId=Rf++,T?(y.isHydrating=!1,y.activeBranch=A):g(A,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),L?(d(null,w,y.hiddenContainer,null,s,y,u,f,h),y.deps<=0?y.resolve():(d(M,_,r,o,s,null,u,f,h),ns(y,_))):M&&_r(w,M)?(d(M,w,r,o,s,y,u,f,h),y.resolve(!0)):(d(null,w,y.hiddenContainer,null,s,y,u,f,h),y.deps<=0&&y.resolve()));else if(M&&_r(w,M))d(M,w,r,o,s,y,u,f,h),ns(y,w);else if(kl(e,"onPending"),y.pendingBranch=w,w.shapeFlag&512?y.pendingId=w.component.suspenseId:y.pendingId=Rf++,d(null,w,y.hiddenContainer,null,s,y,u,f,h),y.deps<=0)y.resolve();else{const{timeout:E,pendingId:O}=y;E>0?setTimeout(()=>{y.pendingId===O&&y.fallback(_)},E):E===0&&y.fallback(_)}}function Rh(t,e,r,o,s,u,f,h,d,g,v=!1){const{p:y,m:w,um:_,n:M,o:{parentNode:A,remove:L}}=g;let T;const E=P_(t);E&&e&&e.pendingBranch&&(T=e.pendingId,e.deps++);const O=t.props?Hm(t.props.timeout):void 0,$=u,F={vnode:t,parent:e,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Rf++,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(H=!1,ct=!1){const{vnode:Y,activeBranch:ht,pendingBranch:Z,pendingId:ut,effects:ot,parentComponent:j,container:I}=F;let k=!1;F.isHydrating?F.isHydrating=!1:H||(k=ht&&Z.transition&&Z.transition.mode==="out-in",k&&(ht.transition.afterLeave=()=>{ut===F.pendingId&&(w(Z,I,u===$?M(ht):u,0),Of(ot))}),ht&&(A(ht.el)!==F.hiddenContainer&&(u=M(ht)),_(ht,j,F,!0)),k||w(Z,I,u,0)),ns(F,Z),F.pendingBranch=null,F.isInFallback=!1;let q=F.parent,W=!1;for(;q;){if(q.pendingBranch){q.effects.push(...ot),W=!0;break}q=q.parent}!W&&!k&&Of(ot),F.effects=[],E&&e&&e.pendingBranch&&T===e.pendingId&&(e.deps--,e.deps===0&&!ct&&e.resolve()),kl(Y,"onResolve")},fallback(H){if(!F.pendingBranch)return;const{vnode:ct,activeBranch:Y,parentComponent:ht,container:Z,namespace:ut}=F;kl(ct,"onFallback");const ot=M(Y),j=()=>{F.isInFallback&&(y(null,H,Z,ot,ht,null,ut,h,d),ns(F,H))},I=H.transition&&H.transition.mode==="out-in";I&&(Y.transition.afterLeave=j),F.isInFallback=!0,_(Y,ht,null,!0),I||j()},move(H,ct,Y){F.activeBranch&&w(F.activeBranch,H,ct,Y),F.container=H},next(){return F.activeBranch&&M(F.activeBranch)},registerDep(H,ct){const Y=!!F.pendingBranch;Y&&F.deps++;const ht=H.vnode.el;H.asyncDep.catch(Z=>{Bl(Z,H,0)}).then(Z=>{if(H.isUnmounted||F.isUnmounted||F.pendingId!==H.suspenseId)return;H.asyncResolved=!0;const{vnode:ut}=H;Vf(H,Z,!1),ht&&(ut.el=ht);const ot=!ht&&H.subTree.el;ct(H,ut,A(ht||H.subTree.el),ht?null:M(H.subTree),F,f,d),ot&&L(ot),Oh(H,ut.el),Y&&--F.deps===0&&F.resolve()})},unmount(H,ct){F.isUnmounted=!0,F.activeBranch&&_(F.activeBranch,r,H,ct),F.pendingBranch&&_(F.pendingBranch,r,H,ct)}};return F}function M_(t,e,r,o,s,u,f,h,d){const g=e.suspense=Rh(e,o,r,t.parentNode,document.createElement("div"),null,s,u,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,u,f);return g.deps===0&&g.resolve(!1,!0),v}function N_(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=Lg(o?r.default:r),t.ssFallback=o?Lg(r.fallback):Ht(mn)}function Lg(t){let e;if(Gt(t)){const r=as&&t._c;r&&(t._d=!1,at()),t=t(),r&&(t._d=!0,e=Wn,I0())}return It(t)&&(t=b_(t)),t=sr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function $_(t,e){e&&e.pendingBranch?It(t)?e.effects.push(...t):e.effects.push(t):Of(t)}function ns(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t;let s=e.el;for(;!s&&e.component;)e=e.component.subTree,s=e.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Oh(o,s))}function P_(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const O_=Symbol.for("v-scx"),R_=()=>Vr(O_);function Dh(t,e){return qc(t,null,e)}function D_(t,e){return qc(t,null,{flush:"sync"})}const Ra={};function je(t,e,r){return qc(t,e,r)}function qc(t,e,{immediate:r,deep:o,flush:s,once:u,onTrack:f,onTrigger:h}=ye){if(e&&u){const H=e;e=(...ct)=>{H(...ct),F()}}const d=tn,g=H=>o===!0?H:oo(H,o===!1?1:void 0);let v,y=!1,w=!1;if(Ae(t)?(v=()=>t.value,y=cc(t)):sl(t)?(v=()=>g(t),y=!0):It(t)?(w=!0,y=t.some(H=>sl(H)||cc(H)),v=()=>t.map(H=>{if(Ae(H))return H.value;if(sl(H))return g(H);if(Gt(H))return Li(H,d,2)})):Gt(t)?e?v=()=>Li(t,d,2):v=()=>(_&&_(),Vn(t,d,3,[M])):v=Bn,e&&o){const H=v;v=()=>oo(H())}let _,M=H=>{_=O.onStop=()=>{Li(H,d,4),_=O.onStop=void 0}},A;if(Vc)if(M=Bn,e?r&&Vn(e,d,3,[v(),w?[]:void 0,M]):v(),s==="sync"){const H=R_();A=H.__watcherHandles||(H.__watcherHandles=[])}else return Bn;let L=w?new Array(t.length).fill(Ra):Ra;const T=()=>{if(!(!O.active||!O.dirty))if(e){const H=O.run();(o||y||(w?H.some((ct,Y)=>Lr(ct,L[Y])):Lr(H,L)))&&(_&&_(),Vn(e,d,3,[H,L===Ra?void 0:w&&L[0]===Ra?[]:L,M]),L=H)}else O.run()};T.allowRecurse=!!e;let E;s==="sync"?E=T:s==="post"?E=()=>Cn(T,d&&d.suspense):(T.pre=!0,d&&(T.id=d.uid),E=()=>Ph(T));const O=new Sh(v,Bn,E),$=Um(),F=()=>{O.stop(),$&&xh($.effects,O)};return e?r?T():L=O.run():s==="post"?Cn(O.run.bind(O),d&&d.suspense):O.run(),A&&A.push(F),F}function z_(t,e,r){const o=this.proxy,s=De(t)?t.includes(".")?b0(o,t):()=>o[t]:t.bind(o,o);let u;Gt(e)?u=e:(u=e.handler,r=e);const f=Ul(this),h=qc(s,u.bind(o),r);return f(),h}function b0(t,e){const r=e.split(".");return()=>{let o=t;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function oo(t,e=1/0,r){if(e<=0||!be(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,Ae(t))oo(t.value,e,r);else if(It(t))for(let o=0;o<t.length;o++)oo(t[o],e,r);else if(Rm(t)||ts(t))t.forEach(o=>{oo(o,e,r)});else if(Im(t))for(const o in t)oo(t[o],e,r);return t}function on(t,e){if(Ve===null)return t;const r=Gc(Ve)||Ve.proxy,o=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[u,f,h,d=ye]=e[s];u&&(Gt(u)&&(u={mounted:u,updated:u}),u.deep&&oo(f),o.push({dir:u,instance:r,value:f,oldValue:void 0,arg:h,modifiers:d}))}return t}function Ji(t,e,r,o){const s=t.dirs,u=e&&e.dirs;for(let f=0;f<s.length;f++){const h=s[f];u&&(h.oldValue=u[f].value);let d=h.dir[o];d&&(zi(),Vn(d,r,8,[t.el,h,t,e]),Ii())}}const yi=Symbol("_leaveCb"),Da=Symbol("_enterCb");function I_(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vs(()=>{t.isMounted=!0}),k0(()=>{t.isUnmounting=!0}),t}const qn=[Function,Array],w0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},F_={name:"BaseTransition",props:w0,setup(t,{slots:e}){const r=Wl(),o=I_();return()=>{const s=e.default&&_0(e.default(),!0);if(!s||!s.length)return;let u=s[0];if(s.length>1){for(const w of s)if(w.type!==mn){u=w;break}}const f=fe(t),{mode:h}=f;if(o.isLeaving)return of(u);const d=Ag(u);if(!d)return of(u);const g=Df(d,f,o,r);zf(d,g);const v=r.subTree,y=v&&Ag(v);if(y&&y.type!==mn&&!_r(d,y)){const w=Df(y,f,o,r);if(zf(y,w),h==="out-in"&&d.type!==mn)return o.isLeaving=!0,w.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},of(u);h==="in-out"&&d.type!==mn&&(w.delayLeave=(_,M,A)=>{const L=x0(o,y);L[String(y.key)]=y,_[yi]=()=>{M(),_[yi]=void 0,delete g.delayedLeave},g.delayedLeave=A})}return u}}},H_=F_;function x0(t,e){const{leavingVNodes:r}=t;let o=r.get(e.type);return o||(o=Object.create(null),r.set(e.type,o)),o}function Df(t,e,r,o){const{appear:s,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:y,onLeave:w,onAfterLeave:_,onLeaveCancelled:M,onBeforeAppear:A,onAppear:L,onAfterAppear:T,onAppearCancelled:E}=e,O=String(t.key),$=x0(r,t),F=(Y,ht)=>{Y&&Vn(Y,o,9,ht)},H=(Y,ht)=>{const Z=ht[1];F(Y,ht),It(Y)?Y.every(ut=>ut.length<=1)&&Z():Y.length<=1&&Z()},ct={mode:u,persisted:f,beforeEnter(Y){let ht=h;if(!r.isMounted)if(s)ht=A||h;else return;Y[yi]&&Y[yi](!0);const Z=$[O];Z&&_r(t,Z)&&Z.el[yi]&&Z.el[yi](),F(ht,[Y])},enter(Y){let ht=d,Z=g,ut=v;if(!r.isMounted)if(s)ht=L||d,Z=T||g,ut=E||v;else return;let ot=!1;const j=Y[Da]=I=>{ot||(ot=!0,I?F(ut,[Y]):F(Z,[Y]),ct.delayedLeave&&ct.delayedLeave(),Y[Da]=void 0)};ht?H(ht,[Y,j]):j()},leave(Y,ht){const Z=String(t.key);if(Y[Da]&&Y[Da](!0),r.isUnmounting)return ht();F(y,[Y]);let ut=!1;const ot=Y[yi]=j=>{ut||(ut=!0,ht(),j?F(M,[Y]):F(_,[Y]),Y[yi]=void 0,$[Z]===t&&delete $[Z])};$[Z]=t,w?H(w,[Y,ot]):ot()},clone(Y){return Df(Y,e,r,o)}};return ct}function of(t){if(Bc(t))return t=$i(t),t.children=null,t}function Ag(t){if(!Bc(t))return t;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&Gt(r.default))return r.default()}}function zf(t,e){t.shapeFlag&6&&t.component?zf(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function _0(t,e=!1,r){let o=[],s=0;for(let u=0;u<t.length;u++){let f=t[u];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:u);f.type===ie?(f.patchFlag&128&&s++,o=o.concat(_0(f.children,e,h))):(e||f.type!==mn)&&o.push(h!=null?$i(f,{key:h}):f)}if(s>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function he(t,e){return Gt(t)?Re({name:t.name},e,{setup:t}):t}const al=t=>!!t.type.__asyncLoader,Bc=t=>t.type.__isKeepAlive;function q_(t,e){S0(t,"a",e)}function B_(t,e){S0(t,"da",e)}function S0(t,e,r=tn){const o=t.__wdc||(t.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Wc(e,o,r),r){let s=r.parent;for(;s&&s.parent;)Bc(s.parent.vnode)&&W_(o,e,r,s),s=s.parent}}function W_(t,e,r,o){const s=Wc(e,t,o,!0);zh(()=>{xh(o[e],s)},r)}function Wc(t,e,r=tn,o=!1){if(r){const s=r[t]||(r[t]=[]),u=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;zi();const h=Ul(r),d=Vn(e,r,t,f);return h(),Ii(),d});return o?s.unshift(u):s.push(u),u}}const Yr=t=>(e,r=tn)=>(!Vc||t==="sp")&&Wc(t,(...o)=>e(...o),r),U_=Yr("bm"),vs=Yr("m"),V_=Yr("bu"),G_=Yr("u"),k0=Yr("bum"),zh=Yr("um"),j_=Yr("sp"),K_=Yr("rtg"),X_=Yr("rtc");function Y_(t,e=tn){Wc("ec",t,e)}function Rn(t,e,r,o){let s;const u=r;if(It(t)||De(t)){s=new Array(t.length);for(let f=0,h=t.length;f<h;f++)s[f]=e(t[f],f,void 0,u)}else if(typeof t=="number"){s=new Array(t);for(let f=0;f<t;f++)s[f]=e(f+1,f,void 0,u)}else if(be(t))if(t[Symbol.iterator])s=Array.from(t,(f,h)=>e(f,h,void 0,u));else{const f=Object.keys(t);s=new Array(f.length);for(let h=0,d=f.length;h<d;h++){const g=f[h];s[h]=e(t[g],g,h,u)}}else s=[];return s}function Gn(t,e,r={},o,s){if(Ve.isCE||Ve.parent&&al(Ve.parent)&&Ve.parent.isCE)return e!=="default"&&(r.name=e),Ht("slot",r,o&&o());let u=t[e];u&&u._c&&(u._d=!1),at();const f=u&&C0(u(r)),h=ne(ie,{key:r.key||f&&f.key||`_${e}`},f||(o?o():[]),f&&t._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function C0(t){return t.some(e=>Cl(e)?!(e.type===mn||e.type===ie&&!C0(e.children)):!0)?t:null}const If=t=>t?B0(t)?Gc(t)||t.proxy:If(t.parent):null,cl=Re(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>If(t.parent),$root:t=>If(t.root),$emit:t=>t.emit,$options:t=>Ih(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Ph(t.update)}),$nextTick:t=>t.n||(t.n=jr.bind(t.proxy)),$watch:t=>z_.bind(t)}),sf=(t,e)=>t!==ye&&!t.__isScriptSetup&&ae(t,e),Z_={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:u,accessCache:f,type:h,appContext:d}=t;let g;if(e[0]!=="$"){const _=f[e];if(_!==void 0)switch(_){case 1:return o[e];case 2:return s[e];case 4:return r[e];case 3:return u[e]}else{if(sf(o,e))return f[e]=1,o[e];if(s!==ye&&ae(s,e))return f[e]=2,s[e];if((g=t.propsOptions[0])&&ae(g,e))return f[e]=3,u[e];if(r!==ye&&ae(r,e))return f[e]=4,r[e];Hf&&(f[e]=0)}}const v=cl[e];let y,w;if(v)return e==="$attrs"&&Mn(t.attrs,"get",""),v(t);if((y=h.__cssModules)&&(y=y[e]))return y;if(r!==ye&&ae(r,e))return f[e]=4,r[e];if(w=d.config.globalProperties,ae(w,e))return w[e]},set({_:t},e,r){const{data:o,setupState:s,ctx:u}=t;return sf(s,e)?(s[e]=r,!0):o!==ye&&ae(o,e)?(o[e]=r,!0):ae(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(u[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:o,appContext:s,propsOptions:u}},f){let h;return!!r[f]||t!==ye&&ae(t,f)||sf(e,f)||(h=u[0])&&ae(h,f)||ae(o,f)||ae(cl,f)||ae(s.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:ae(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function J_(){return Q_().attrs}function Q_(){const t=Wl();return t.setupContext||(t.setupContext=U0(t))}function fc(t){return It(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function Ff(t,e){return!t||!e?t||e:It(t)&&It(e)?t.concat(e):Re({},fc(t),fc(e))}let Hf=!0;function tS(t){const e=Ih(t),r=t.proxy,o=t.ctx;Hf=!1,e.beforeCreate&&Mg(e.beforeCreate,t,"bc");const{data:s,computed:u,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:y,mounted:w,beforeUpdate:_,updated:M,activated:A,deactivated:L,beforeDestroy:T,beforeUnmount:E,destroyed:O,unmounted:$,render:F,renderTracked:H,renderTriggered:ct,errorCaptured:Y,serverPrefetch:ht,expose:Z,inheritAttrs:ut,components:ot,directives:j,filters:I}=e;if(g&&eS(g,o,null),f)for(const W in f){const Q=f[W];Gt(Q)&&(o[W]=Q.bind(r))}if(s){const W=s.call(r,r);be(W)&&(t.data=kr(W))}if(Hf=!0,u)for(const W in u){const Q=u[W],mt=Gt(Q)?Q.bind(r,r):Gt(Q.get)?Q.get.bind(r,r):Bn,Mt=!Gt(Q)&&Gt(Q.set)?Q.set.bind(r):Bn,qt=xt({get:mt,set:Mt});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Wt=>qt.value=Wt})}if(h)for(const W in h)T0(h[W],o,r,W);if(d){const W=Gt(d)?d.call(r):d;Reflect.ownKeys(W).forEach(Q=>{Za(Q,W[Q])})}v&&Mg(v,t,"c");function q(W,Q){It(Q)?Q.forEach(mt=>W(mt.bind(r))):Q&&W(Q.bind(r))}if(q(U_,y),q(vs,w),q(V_,_),q(G_,M),q(q_,A),q(B_,L),q(Y_,Y),q(X_,H),q(K_,ct),q(k0,E),q(zh,$),q(j_,ht),It(Z))if(Z.length){const W=t.exposed||(t.exposed={});Z.forEach(Q=>{Object.defineProperty(W,Q,{get:()=>r[Q],set:mt=>r[Q]=mt})})}else t.exposed||(t.exposed={});F&&t.render===Bn&&(t.render=F),ut!=null&&(t.inheritAttrs=ut),ot&&(t.components=ot),j&&(t.directives=j)}function eS(t,e,r=Bn){It(t)&&(t=qf(t));for(const o in t){const s=t[o];let u;be(s)?"default"in s?u=Vr(s.from||o,s.default,!0):u=Vr(s.from||o):u=Vr(s),Ae(u)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):e[o]=u}}function Mg(t,e,r){Vn(It(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function T0(t,e,r,o){const s=o.includes(".")?b0(r,o):()=>r[o];if(De(t)){const u=e[t];Gt(u)&&je(s,u)}else if(Gt(t))je(s,t.bind(r));else if(be(t))if(It(t))t.forEach(u=>T0(u,e,r,o));else{const u=Gt(t.handler)?t.handler.bind(r):e[t.handler];Gt(u)&&je(s,u,t)}}function Ih(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:s,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(e);let d;return h?d=h:!s.length&&!r&&!o?d=e:(d={},s.length&&s.forEach(g=>hc(d,g,f,!0)),hc(d,e,f)),be(e)&&u.set(e,d),d}function hc(t,e,r,o=!1){const{mixins:s,extends:u}=e;u&&hc(t,u,r,!0),s&&s.forEach(f=>hc(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=nS[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const nS={data:Ng,props:$g,emits:$g,methods:nl,computed:nl,beforeCreate:pn,created:pn,beforeMount:pn,mounted:pn,beforeUpdate:pn,updated:pn,beforeDestroy:pn,beforeUnmount:pn,destroyed:pn,unmounted:pn,activated:pn,deactivated:pn,errorCaptured:pn,serverPrefetch:pn,components:nl,directives:nl,watch:iS,provide:Ng,inject:rS};function Ng(t,e){return e?t?function(){return Re(Gt(t)?t.call(this,this):t,Gt(e)?e.call(this,this):e)}:e:t}function rS(t,e){return nl(qf(t),qf(e))}function qf(t){if(It(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function pn(t,e){return t?[...new Set([].concat(t,e))]:e}function nl(t,e){return t?Re(Object.create(null),t,e):e}function $g(t,e){return t?It(t)&&It(e)?[...new Set([...t,...e])]:Re(Object.create(null),fc(t),fc(e??{})):e}function iS(t,e){if(!t)return e;if(!e)return t;const r=Re(Object.create(null),t);for(const o in e)r[o]=pn(t[o],e[o]);return r}function E0(){return{app:null,config:{isNativeTag:Cx,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 oS=0;function sS(t,e){return function(o,s=null){Gt(o)||(o=Re({},o)),s!=null&&!be(s)&&(s=null);const u=E0(),f=new WeakSet;let h=!1;const d=u.app={_uid:oS++,_component:o,_props:s,_container:null,_context:u,_instance:null,version:TS,get config(){return u.config},set config(g){},use(g,...v){return f.has(g)||(g&&Gt(g.install)?(f.add(g),g.install(d,...v)):Gt(g)&&(f.add(g),g(d,...v))),d},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),d},component(g,v){return v?(u.components[g]=v,d):u.components[g]},directive(g,v){return v?(u.directives[g]=v,d):u.directives[g]},mount(g,v,y){if(!h){const w=Ht(o,s);return w.appContext=u,y===!0?y="svg":y===!1&&(y=void 0),v&&e?e(w,g):t(w,g,y),h=!0,d._container=g,g.__vue_app__=d,Gc(w.component)||w.component.proxy}},unmount(){h&&(t(null,d._container),delete d._container.__vue_app__)},provide(g,v){return u.provides[g]=v,d},runWithContext(g){const v=ul;ul=d;try{return g()}finally{ul=v}}};return d}}let ul=null;function Za(t,e){if(tn){let r=tn.provides;const o=tn.parent&&tn.parent.provides;o===r&&(r=tn.provides=Object.create(o)),r[t]=e}}function Vr(t,e,r=!1){const o=tn||Ve;if(o||ul){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:ul._context.provides;if(s&&t in s)return s[t];if(arguments.length>1)return r&&Gt(e)?e.call(o&&o.proxy):e}}const L0={},A0=()=>Object.create(L0),M0=t=>Object.getPrototypeOf(t)===L0;function lS(t,e,r,o=!1){const s={},u=A0();t.propsDefaults=Object.create(null),N0(t,e,s,u);for(const f in t.propsOptions[0])f in s||(s[f]=void 0);r?t.props=o?s:n0(s):t.type.props?t.props=s:t.props=u,t.attrs=u}function aS(t,e,r,o){const{props:s,attrs:u,vnode:{patchFlag:f}}=t,h=fe(s),[d]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let y=0;y<v.length;y++){let w=v[y];if(Fc(t.emitsOptions,w))continue;const _=e[w];if(d)if(ae(u,w))_!==u[w]&&(u[w]=_,g=!0);else{const M=fr(w);s[M]=Bf(d,h,M,_,t,!1)}else _!==u[w]&&(u[w]=_,g=!0)}}}else{N0(t,e,s,u)&&(g=!0);let v;for(const y in h)(!e||!ae(e,y)&&((v=Di(y))===y||!ae(e,v)))&&(d?r&&(r[y]!==void 0||r[v]!==void 0)&&(s[y]=Bf(d,h,y,void 0,t,!0)):delete s[y]);if(u!==h)for(const y in u)(!e||!ae(e,y))&&(delete u[y],g=!0)}g&&Ur(t.attrs,"set","")}function N0(t,e,r,o){const[s,u]=t.propsOptions;let f=!1,h;if(e)for(let d in e){if(ol(d))continue;const g=e[d];let v;s&&ae(s,v=fr(d))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:Fc(t.emitsOptions,d)||(!(d in o)||g!==o[d])&&(o[d]=g,f=!0)}if(u){const d=fe(r),g=h||ye;for(let v=0;v<u.length;v++){const y=u[v];r[y]=Bf(s,d,y,g[y],t,!ae(g,y))}}return f}function Bf(t,e,r,o,s,u){const f=t[r];if(f!=null){const h=ae(f,"default");if(h&&o===void 0){const d=f.default;if(f.type!==Function&&!f.skipFactory&&Gt(d)){const{propsDefaults:g}=s;if(r in g)o=g[r];else{const v=Ul(s);o=g[r]=d.call(null,e),v()}}else o=d}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Di(r))&&(o=!0))}return o}function $0(t,e,r=!1){const o=e.propsCache,s=o.get(t);if(s)return s;const u=t.props,f={},h=[];let d=!1;if(!Gt(t)){const v=y=>{d=!0;const[w,_]=$0(y,e,!0);Re(f,w),_&&h.push(..._)};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!u&&!d)return be(t)&&o.set(t,Qo),Qo;if(It(u))for(let v=0;v<u.length;v++){const y=fr(u[v]);Pg(y)&&(f[y]=ye)}else if(u)for(const v in u){const y=fr(v);if(Pg(y)){const w=u[v],_=f[y]=It(w)||Gt(w)?{type:w}:Re({},w);if(_){const M=Dg(Boolean,_.type),A=Dg(String,_.type);_[0]=M>-1,_[1]=A<0||M<A,(M>-1||ae(_,"default"))&&h.push(y)}}}const g=[f,h];return be(t)&&o.set(t,g),g}function Pg(t){return t[0]!=="$"&&!ol(t)}function Og(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Rg(t,e){return Og(t)===Og(e)}function Dg(t,e){return It(e)?e.findIndex(r=>Rg(r,t)):Gt(e)&&Rg(e,t)?0:-1}const P0=t=>t[0]==="_"||t==="$stable",Fh=t=>It(t)?t.map(sr):[sr(t)],cS=(t,e,r)=>{if(e._n)return e;const o=re((...s)=>Fh(e(...s)),r);return o._c=!1,o},O0=(t,e,r)=>{const o=t._ctx;for(const s in t){if(P0(s))continue;const u=t[s];if(Gt(u))e[s]=cS(s,u,o);else if(u!=null){const f=Fh(u);e[s]=()=>f}}},R0=(t,e)=>{const r=Fh(e);t.slots.default=()=>r},uS=(t,e)=>{const r=t.slots=A0();if(t.vnode.shapeFlag&32){const o=e._;o?(Re(r,e),Fm(r,"_",o,!0)):O0(e,r)}else e&&R0(t,e)},fS=(t,e,r)=>{const{vnode:o,slots:s}=t;let u=!0,f=ye;if(o.shapeFlag&32){const h=e._;h?r&&h===1?u=!1:(Re(s,e),!r&&h===1&&delete s._):(u=!e.$stable,O0(e,s)),f=e}else e&&(R0(t,e),f={default:1});if(u)for(const h in s)!P0(h)&&f[h]==null&&delete s[h]};function Wf(t,e,r,o,s=!1){if(It(t)){t.forEach((w,_)=>Wf(w,e&&(It(e)?e[_]:e),r,o,s));return}if(al(o)&&!s)return;const u=o.shapeFlag&4?Gc(o.component)||o.component.proxy:o.el,f=s?null:u,{i:h,r:d}=t,g=e&&e.r,v=h.refs===ye?h.refs={}:h.refs,y=h.setupState;if(g!=null&&g!==d&&(De(g)?(v[g]=null,ae(y,g)&&(y[g]=null)):Ae(g)&&(g.value=null)),Gt(d))Li(d,h,12,[f,v]);else{const w=De(d),_=Ae(d);if(w||_){const M=()=>{if(t.f){const A=w?ae(y,d)?y[d]:v[d]:d.value;s?It(A)&&xh(A,u):It(A)?A.includes(u)||A.push(u):w?(v[d]=[u],ae(y,d)&&(y[d]=v[d])):(d.value=[u],t.k&&(v[t.k]=d.value))}else w?(v[d]=f,ae(y,d)&&(y[d]=f)):_&&(d.value=f,t.k&&(v[t.k]=f))};f?(M.id=-1,Cn(M,r)):M()}}}const Cn=$_;function hS(t){return dS(t)}function dS(t,e){const r=qm();r.__VUE__=!0;const{insert:o,remove:s,patchProp:u,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:y,nextSibling:w,setScopeId:_=Bn,insertStaticContent:M}=t,A=(P,z,K,it=null,nt=null,vt=null,Ct=void 0,st=null,yt=!!z.dynamicChildren)=>{if(P===z)return;P&&!_r(P,z)&&(it=G(P),Wt(P,nt,vt,!0),P=null),z.patchFlag===-2&&(yt=!1,z.dynamicChildren=null);const{type:pt,ref:At,shapeFlag:zt}=z;switch(pt){case Uc:L(P,z,K,it);break;case mn:T(P,z,K,it);break;case af:P==null&&E(z,K,it,Ct);break;case ie:ot(P,z,K,it,nt,vt,Ct,st,yt);break;default:zt&1?F(P,z,K,it,nt,vt,Ct,st,yt):zt&6?j(P,z,K,it,nt,vt,Ct,st,yt):(zt&64||zt&128)&&pt.process(P,z,K,it,nt,vt,Ct,st,yt,Nt)}At!=null&&nt&&Wf(At,P&&P.ref,vt,z||P,!z)},L=(P,z,K,it)=>{if(P==null)o(z.el=h(z.children),K,it);else{const nt=z.el=P.el;z.children!==P.children&&g(nt,z.children)}},T=(P,z,K,it)=>{P==null?o(z.el=d(z.children||""),K,it):z.el=P.el},E=(P,z,K,it)=>{[P.el,P.anchor]=M(P.children,z,K,it,P.el,P.anchor)},O=({el:P,anchor:z},K,it)=>{let nt;for(;P&&P!==z;)nt=w(P),o(P,K,it),P=nt;o(z,K,it)},$=({el:P,anchor:z})=>{let K;for(;P&&P!==z;)K=w(P),s(P),P=K;s(z)},F=(P,z,K,it,nt,vt,Ct,st,yt)=>{z.type==="svg"?Ct="svg":z.type==="math"&&(Ct="mathml"),P==null?H(z,K,it,nt,vt,Ct,st,yt):ht(P,z,nt,vt,Ct,st,yt)},H=(P,z,K,it,nt,vt,Ct,st)=>{let yt,pt;const{props:At,shapeFlag:zt,transition:Ot,dirs:Ft}=P;if(yt=P.el=f(P.type,vt,At&&At.is,At),zt&8?v(yt,P.children):zt&16&&Y(P.children,yt,null,it,nt,lf(P,vt),Ct,st),Ft&&Ji(P,null,it,"created"),ct(yt,P,P.scopeId,Ct,it),At){for(const le in At)le!=="value"&&!ol(le)&&u(yt,le,null,At[le],vt,P.children,it,nt,Tt);"value"in At&&u(yt,"value",null,At.value,vt),(pt=At.onVnodeBeforeMount)&&wr(pt,it,P)}Ft&&Ji(P,null,it,"beforeMount");const Vt=pS(nt,Ot);Vt&&Ot.beforeEnter(yt),o(yt,z,K),((pt=At&&At.onVnodeMounted)||Vt||Ft)&&Cn(()=>{pt&&wr(pt,it,P),Vt&&Ot.enter(yt),Ft&&Ji(P,null,it,"mounted")},nt)},ct=(P,z,K,it,nt)=>{if(K&&_(P,K),it)for(let vt=0;vt<it.length;vt++)_(P,it[vt]);if(nt){let vt=nt.subTree;if(z===vt){const Ct=nt.vnode;ct(P,Ct,Ct.scopeId,Ct.slotScopeIds,nt.parent)}}},Y=(P,z,K,it,nt,vt,Ct,st,yt=0)=>{for(let pt=yt;pt<P.length;pt++){const At=P[pt]=st?bi(P[pt]):sr(P[pt]);A(null,At,z,K,it,nt,vt,Ct,st)}},ht=(P,z,K,it,nt,vt,Ct)=>{const st=z.el=P.el;let{patchFlag:yt,dynamicChildren:pt,dirs:At}=z;yt|=P.patchFlag&16;const zt=P.props||ye,Ot=z.props||ye;let Ft;if(K&&Qi(K,!1),(Ft=Ot.onVnodeBeforeUpdate)&&wr(Ft,K,z,P),At&&Ji(z,P,K,"beforeUpdate"),K&&Qi(K,!0),pt?Z(P.dynamicChildren,pt,st,K,it,lf(z,nt),vt):Ct||Q(P,z,st,null,K,it,lf(z,nt),vt,!1),yt>0){if(yt&16)ut(st,z,zt,Ot,K,it,nt);else if(yt&2&&zt.class!==Ot.class&&u(st,"class",null,Ot.class,nt),yt&4&&u(st,"style",zt.style,Ot.style,nt),yt&8){const Vt=z.dynamicProps;for(let le=0;le<Vt.length;le++){const oe=Vt[le],Jt=zt[oe],ze=Ot[oe];(ze!==Jt||oe==="value")&&u(st,oe,Jt,ze,nt,P.children,K,it,Tt)}}yt&1&&P.children!==z.children&&v(st,z.children)}else!Ct&&pt==null&&ut(st,z,zt,Ot,K,it,nt);((Ft=Ot.onVnodeUpdated)||At)&&Cn(()=>{Ft&&wr(Ft,K,z,P),At&&Ji(z,P,K,"updated")},it)},Z=(P,z,K,it,nt,vt,Ct)=>{for(let st=0;st<z.length;st++){const yt=P[st],pt=z[st],At=yt.el&&(yt.type===ie||!_r(yt,pt)||yt.shapeFlag&70)?y(yt.el):K;A(yt,pt,At,null,it,nt,vt,Ct,!0)}},ut=(P,z,K,it,nt,vt,Ct)=>{if(K!==it){if(K!==ye)for(const st in K)!ol(st)&&!(st in it)&&u(P,st,K[st],null,Ct,z.children,nt,vt,Tt);for(const st in it){if(ol(st))continue;const yt=it[st],pt=K[st];yt!==pt&&st!=="value"&&u(P,st,pt,yt,Ct,z.children,nt,vt,Tt)}"value"in it&&u(P,"value",K.value,it.value,Ct)}},ot=(P,z,K,it,nt,vt,Ct,st,yt)=>{const pt=z.el=P?P.el:h(""),At=z.anchor=P?P.anchor:h("");let{patchFlag:zt,dynamicChildren:Ot,slotScopeIds:Ft}=z;Ft&&(st=st?st.concat(Ft):Ft),P==null?(o(pt,K,it),o(At,K,it),Y(z.children||[],K,At,nt,vt,Ct,st,yt)):zt>0&&zt&64&&Ot&&P.dynamicChildren?(Z(P.dynamicChildren,Ot,K,nt,vt,Ct,st),(z.key!=null||nt&&z===nt.subTree)&&D0(P,z,!0)):Q(P,z,K,At,nt,vt,Ct,st,yt)},j=(P,z,K,it,nt,vt,Ct,st,yt)=>{z.slotScopeIds=st,P==null?z.shapeFlag&512?nt.ctx.activate(z,K,it,Ct,yt):I(z,K,it,nt,vt,Ct,yt):k(P,z,yt)},I=(P,z,K,it,nt,vt,Ct)=>{const st=P.component=wS(P,it,nt);if(Bc(P)&&(st.ctx.renderer=Nt),xS(st),st.asyncDep){if(nt&&nt.registerDep(st,q),!P.el){const yt=st.subTree=Ht(mn);T(null,yt,z,K)}}else q(st,P,z,K,nt,vt,Ct)},k=(P,z,K)=>{const it=z.component=P.component;if(__(P,z,K))if(it.asyncDep&&!it.asyncResolved){W(it,z,K);return}else it.next=z,g_(it.update),it.effect.dirty=!0,it.update();else z.el=P.el,it.vnode=z},q=(P,z,K,it,nt,vt,Ct)=>{const st=()=>{if(P.isMounted){let{next:At,bu:zt,u:Ot,parent:Ft,vnode:Vt}=P;{const Ke=z0(P);if(Ke){At&&(At.el=Vt.el,W(P,At,Ct)),Ke.asyncDep.then(()=>{P.isUnmounted||st()});return}}let le=At,oe;Qi(P,!1),At?(At.el=Vt.el,W(P,At,Ct)):At=Vt,zt&&Ya(zt),(oe=At.props&&At.props.onVnodeBeforeUpdate)&&wr(oe,Ft,At,Vt),Qi(P,!0);const Jt=rf(P),ze=P.subTree;P.subTree=Jt,A(ze,Jt,y(ze.el),G(ze),P,nt,vt),At.el=Jt.el,le===null&&Oh(P,Jt.el),Ot&&Cn(Ot,nt),(oe=At.props&&At.props.onVnodeUpdated)&&Cn(()=>wr(oe,Ft,At,Vt),nt)}else{let At;const{el:zt,props:Ot}=z,{bm:Ft,m:Vt,parent:le}=P,oe=al(z);if(Qi(P,!1),Ft&&Ya(Ft),!oe&&(At=Ot&&Ot.onVnodeBeforeMount)&&wr(At,le,z),Qi(P,!0),zt&&Kt){const Jt=()=>{P.subTree=rf(P),Kt(zt,P.subTree,P,nt,null)};oe?z.type.__asyncLoader().then(()=>!P.isUnmounted&&Jt()):Jt()}else{const Jt=P.subTree=rf(P);A(null,Jt,K,it,P,nt,vt),z.el=Jt.el}if(Vt&&Cn(Vt,nt),!oe&&(At=Ot&&Ot.onVnodeMounted)){const Jt=z;Cn(()=>wr(At,le,Jt),nt)}(z.shapeFlag&256||le&&al(le.vnode)&&le.vnode.shapeFlag&256)&&P.a&&Cn(P.a,nt),P.isMounted=!0,z=K=it=null}},yt=P.effect=new Sh(st,Bn,()=>Ph(pt),P.scope),pt=P.update=()=>{yt.dirty&&yt.run()};pt.id=P.uid,Qi(P,!0),pt()},W=(P,z,K)=>{z.component=P;const it=P.vnode.props;P.vnode=z,P.next=null,aS(P,z.props,it,K),fS(P,z.children,K),zi(),Cg(P),Ii()},Q=(P,z,K,it,nt,vt,Ct,st,yt=!1)=>{const pt=P&&P.children,At=P?P.shapeFlag:0,zt=z.children,{patchFlag:Ot,shapeFlag:Ft}=z;if(Ot>0){if(Ot&128){Mt(pt,zt,K,it,nt,vt,Ct,st,yt);return}else if(Ot&256){mt(pt,zt,K,it,nt,vt,Ct,st,yt);return}}Ft&8?(At&16&&Tt(pt,nt,vt),zt!==pt&&v(K,zt)):At&16?Ft&16?Mt(pt,zt,K,it,nt,vt,Ct,st,yt):Tt(pt,nt,vt,!0):(At&8&&v(K,""),Ft&16&&Y(zt,K,it,nt,vt,Ct,st,yt))},mt=(P,z,K,it,nt,vt,Ct,st,yt)=>{P=P||Qo,z=z||Qo;const pt=P.length,At=z.length,zt=Math.min(pt,At);let Ot;for(Ot=0;Ot<zt;Ot++){const Ft=z[Ot]=yt?bi(z[Ot]):sr(z[Ot]);A(P[Ot],Ft,K,null,nt,vt,Ct,st,yt)}pt>At?Tt(P,nt,vt,!0,!1,zt):Y(z,K,it,nt,vt,Ct,st,yt,zt)},Mt=(P,z,K,it,nt,vt,Ct,st,yt)=>{let pt=0;const At=z.length;let zt=P.length-1,Ot=At-1;for(;pt<=zt&&pt<=Ot;){const Ft=P[pt],Vt=z[pt]=yt?bi(z[pt]):sr(z[pt]);if(_r(Ft,Vt))A(Ft,Vt,K,null,nt,vt,Ct,st,yt);else break;pt++}for(;pt<=zt&&pt<=Ot;){const Ft=P[zt],Vt=z[Ot]=yt?bi(z[Ot]):sr(z[Ot]);if(_r(Ft,Vt))A(Ft,Vt,K,null,nt,vt,Ct,st,yt);else break;zt--,Ot--}if(pt>zt){if(pt<=Ot){const Ft=Ot+1,Vt=Ft<At?z[Ft].el:it;for(;pt<=Ot;)A(null,z[pt]=yt?bi(z[pt]):sr(z[pt]),K,Vt,nt,vt,Ct,st,yt),pt++}}else if(pt>Ot)for(;pt<=zt;)Wt(P[pt],nt,vt,!0),pt++;else{const Ft=pt,Vt=pt,le=new Map;for(pt=Vt;pt<=Ot;pt++){const Xe=z[pt]=yt?bi(z[pt]):sr(z[pt]);Xe.key!=null&&le.set(Xe.key,pt)}let oe,Jt=0;const ze=Ot-Vt+1;let Ke=!1,jn=0;const Nn=new Array(ze);for(pt=0;pt<ze;pt++)Nn[pt]=0;for(pt=Ft;pt<=zt;pt++){const Xe=P[pt];if(Jt>=ze){Wt(Xe,nt,vt,!0);continue}let Bt;if(Xe.key!=null)Bt=le.get(Xe.key);else for(oe=Vt;oe<=Ot;oe++)if(Nn[oe-Vt]===0&&_r(Xe,z[oe])){Bt=oe;break}Bt===void 0?Wt(Xe,nt,vt,!0):(Nn[Bt-Vt]=pt+1,Bt>=jn?jn=Bt:Ke=!0,A(Xe,z[Bt],K,null,nt,vt,Ct,st,yt),Jt++)}const Kn=Ke?gS(Nn):Qo;for(oe=Kn.length-1,pt=ze-1;pt>=0;pt--){const Xe=Vt+pt,Bt=z[Xe],Fi=Xe+1<At?z[Xe+1].el:it;Nn[pt]===0?A(null,Bt,K,Fi,nt,vt,Ct,st,yt):Ke&&(oe<0||pt!==Kn[oe]?qt(Bt,K,Fi,2):oe--)}}},qt=(P,z,K,it,nt=null)=>{const{el:vt,type:Ct,transition:st,children:yt,shapeFlag:pt}=P;if(pt&6){qt(P.component.subTree,z,K,it);return}if(pt&128){P.suspense.move(z,K,it);return}if(pt&64){Ct.move(P,z,K,Nt);return}if(Ct===ie){o(vt,z,K);for(let zt=0;zt<yt.length;zt++)qt(yt[zt],z,K,it);o(P.anchor,z,K);return}if(Ct===af){O(P,z,K);return}if(it!==2&&pt&1&&st)if(it===0)st.beforeEnter(vt),o(vt,z,K),Cn(()=>st.enter(vt),nt);else{const{leave:zt,delayLeave:Ot,afterLeave:Ft}=st,Vt=()=>o(vt,z,K),le=()=>{zt(vt,()=>{Vt(),Ft&&Ft()})};Ot?Ot(vt,Vt,le):le()}else o(vt,z,K)},Wt=(P,z,K,it=!1,nt=!1)=>{const{type:vt,props:Ct,ref:st,children:yt,dynamicChildren:pt,shapeFlag:At,patchFlag:zt,dirs:Ot}=P;if(st!=null&&Wf(st,null,K,P,!0),At&256){z.ctx.deactivate(P);return}const Ft=At&1&&Ot,Vt=!al(P);let le;if(Vt&&(le=Ct&&Ct.onVnodeBeforeUnmount)&&wr(le,z,P),At&6)Yt(P.component,K,it);else{if(At&128){P.suspense.unmount(K,it);return}Ft&&Ji(P,null,z,"beforeUnmount"),At&64?P.type.remove(P,z,K,nt,Nt,it):pt&&(vt!==ie||zt>0&&zt&64)?Tt(pt,z,K,!1,!0):(vt===ie&&zt&384||!nt&&At&16)&&Tt(yt,z,K),it&&ee(P)}(Vt&&(le=Ct&&Ct.onVnodeUnmounted)||Ft)&&Cn(()=>{le&&wr(le,z,P),Ft&&Ji(P,null,z,"unmounted")},K)},ee=P=>{const{type:z,el:K,anchor:it,transition:nt}=P;if(z===ie){Qt(K,it);return}if(z===af){$(P);return}const vt=()=>{s(K),nt&&!nt.persisted&&nt.afterLeave&&nt.afterLeave()};if(P.shapeFlag&1&&nt&&!nt.persisted){const{leave:Ct,delayLeave:st}=nt,yt=()=>Ct(K,vt);st?st(P.el,vt,yt):yt()}else vt()},Qt=(P,z)=>{let K;for(;P!==z;)K=w(P),s(P),P=K;s(z)},Yt=(P,z,K)=>{const{bum:it,scope:nt,update:vt,subTree:Ct,um:st}=P;it&&Ya(it),nt.stop(),vt&&(vt.active=!1,Wt(Ct,P,z,K)),st&&Cn(st,z),Cn(()=>{P.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},Tt=(P,z,K,it=!1,nt=!1,vt=0)=>{for(let Ct=vt;Ct<P.length;Ct++)Wt(P[Ct],z,K,it,nt)},G=P=>P.shapeFlag&6?G(P.component.subTree):P.shapeFlag&128?P.suspense.next():w(P.anchor||P.el);let rt=!1;const ft=(P,z,K)=>{P==null?z._vnode&&Wt(z._vnode,null,null,!0):A(z._vnode||null,P,z,null,null,null,K),rt||(rt=!0,Cg(),h0(),rt=!1),z._vnode=P},Nt={p:A,um:Wt,m:qt,r:ee,mt:I,mc:Y,pc:Q,pbc:Z,n:G,o:t};let Et,Kt;return{render:ft,hydrate:Et,createApp:sS(ft,Et)}}function lf({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Qi({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function pS(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function D0(t,e,r=!1){const o=t.children,s=e.children;if(It(o)&&It(s))for(let u=0;u<o.length;u++){const f=o[u];let h=s[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=s[u]=bi(s[u]),h.el=f.el),r||D0(f,h)),h.type===Uc&&(h.el=f.el)}}function gS(t){const e=t.slice(),r=[0];let o,s,u,f,h;const d=t.length;for(o=0;o<d;o++){const g=t[o];if(g!==0){if(s=r[r.length-1],t[s]<g){e[o]=s,r.push(o);continue}for(u=0,f=r.length-1;u<f;)h=u+f>>1,t[r[h]]<g?u=h+1:f=h;g<t[r[u]]&&(u>0&&(e[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=e[f];return r}function z0(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:z0(e)}const vS=t=>t.__isTeleport,ie=Symbol.for("v-fgt"),Uc=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),af=Symbol.for("v-stc"),fl=[];let Wn=null;function at(t=!1){fl.push(Wn=t?null:[])}function I0(){fl.pop(),Wn=fl[fl.length-1]||null}let as=1;function zg(t){as+=t}function F0(t){return t.dynamicChildren=as>0?Wn||Qo:null,I0(),as>0&&Wn&&Wn.push(t),t}function St(t,e,r,o,s,u){return F0(tt(t,e,r,o,s,u,!0))}function ne(t,e,r,o,s){return F0(Ht(t,e,r,o,s,!0))}function Cl(t){return t?t.__v_isVNode===!0:!1}function _r(t,e){return t.type===e.type&&t.key===e.key}const H0=({key:t})=>t??null,Ja=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?De(t)||Ae(t)||Gt(t)?{i:Ve,r:t,k:e,f:!!r}:t:null);function tt(t,e=null,r=null,o=0,s=null,u=t===ie?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&H0(e),ref:e&&Ja(e),scopeId:Hc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ve};return h?(Hh(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=De(r)?8:16),as>0&&!f&&Wn&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&Wn.push(d),d}const Ht=mS;function mS(t,e=null,r=null,o=0,s=null,u=!1){if((!t||t===k_)&&(t=mn),Cl(t)){const h=$i(t,e,!0);return r&&Hh(h,r),as>0&&!u&&Wn&&(h.shapeFlag&6?Wn[Wn.indexOf(t)]=h:Wn.push(h)),h.patchFlag|=-2,h}if(CS(t)&&(t=t.__vccOpts),e){e=q0(e);let{class:h,style:d}=e;h&&!De(h)&&(e.class=ge(h)),be(d)&&(r0(d)&&!It(d)&&(d=Re({},d)),e.style=An(d))}const f=De(t)?1:C_(t)?128:vS(t)?64:be(t)?4:Gt(t)?2:0;return tt(t,e,r,o,s,f,u,!0)}function q0(t){return t?r0(t)||M0(t)?Re({},t):t:null}function $i(t,e,r=!1,o=!1){const{props:s,ref:u,patchFlag:f,children:h,transition:d}=t,g=e?Ai(s||{},e):s,v={__v_isVNode:!0,__v_skip:!0,type:t.type,props:g,key:g&&H0(g),ref:e&&e.ref?r&&u?It(u)?u.concat(Ja(e)):[u,Ja(e)]:Ja(e):u,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:h,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ie?f===-1?16:f|16:f,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&$i(t.ssContent),ssFallback:t.ssFallback&&$i(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return d&&o&&(v.transition=d.clone(v)),v}function me(t=" ",e=0){return Ht(Uc,null,t,e)}function Xt(t="",e=!1){return e?(at(),ne(mn,null,t)):Ht(mn,null,t)}function sr(t){return t==null||typeof t=="boolean"?Ht(mn):It(t)?Ht(ie,null,t.slice()):typeof t=="object"?bi(t):Ht(Uc,null,String(t))}function bi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:$i(t)}function Hh(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(It(e))r=16;else if(typeof e=="object")if(o&65){const s=e.default;s&&(s._c&&(s._d=!1),Hh(t,s()),s._c&&(s._d=!0));return}else{r=32;const s=e._;!s&&!M0(e)?e._ctx=Ve:s===3&&Ve&&(Ve.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Gt(e)?(e={default:e,_ctx:Ve},r=32):(e=String(e),o&64?(r=16,e=[me(e)]):r=8);t.children=e,t.shapeFlag|=r}function Ai(...t){const e={};for(let r=0;r<t.length;r++){const o=t[r];for(const s in o)if(s==="class")e.class!==o.class&&(e.class=ge([e.class,o.class]));else if(s==="style")e.style=An([e.style,o.style]);else if(Pc(s)){const u=e[s],f=o[s];f&&u!==f&&!(It(u)&&u.includes(f))&&(e[s]=u?[].concat(u,f):f)}else s!==""&&(e[s]=o[s])}return e}function wr(t,e,r,o=null){Vn(t,e,7,[r,o])}const yS=E0();let bS=0;function wS(t,e,r){const o=t.type,s=(e?e.appContext:t.appContext)||yS,u={uid:bS++,vnode:t,type:o,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new zx(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$0(o,s),emitsOptions:p0(o,s),emit:null,emitted:null,propsDefaults:ye,inheritAttrs:o.inheritAttrs,ctx:ye,data:ye,props:ye,attrs:ye,slots:ye,refs:ye,setupState:ye,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=e?e.root:u,u.emit=m_.bind(null,u),t.ce&&t.ce(u),u}let tn=null;const Wl=()=>tn||Ve;let dc,Uf;{const t=qm(),e=(r,o)=>{let s;return(s=t[r])||(s=t[r]=[]),s.push(o),u=>{s.length>1?s.forEach(f=>f(u)):s[0](u)}};dc=e("__VUE_INSTANCE_SETTERS__",r=>tn=r),Uf=e("__VUE_SSR_SETTERS__",r=>Vc=r)}const Ul=t=>{const e=tn;return dc(t),t.scope.on(),()=>{t.scope.off(),dc(e)}},Ig=()=>{tn&&tn.scope.off(),dc(null)};function B0(t){return t.vnode.shapeFlag&4}let Vc=!1;function xS(t,e=!1){e&&Uf(e);const{props:r,children:o}=t.vnode,s=B0(t);lS(t,r,s,e),uS(t,o);const u=s?_S(t,e):void 0;return e&&Uf(!1),u}function _S(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Z_);const{setup:o}=r;if(o){const s=t.setupContext=o.length>1?U0(t):null,u=Ul(t);zi();const f=Li(o,t,0,[t.props,s]);if(Ii(),u(),Dm(f)){if(f.then(Ig,Ig),e)return f.then(h=>{Vf(t,h,e)}).catch(h=>{Bl(h,t,0)});t.asyncDep=f}else Vf(t,f,e)}else W0(t,e)}function Vf(t,e,r){Gt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:be(e)&&(t.setupState=l0(e)),W0(t,r)}let Fg;function W0(t,e,r){const o=t.type;if(!t.render){if(!e&&Fg&&!o.render){const s=o.template||Ih(t).template;if(s){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=Re(Re({isCustomElement:u,delimiters:h},f),d);o.render=Fg(s,g)}}t.render=o.render||Bn}{const s=Ul(t);zi();try{tS(t)}finally{Ii(),s()}}}const SS={get(t,e){return Mn(t,"get",""),t[e]}};function U0(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,SS),slots:t.slots,emit:t.emit,expose:e}}function Gc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(l0(i0(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in cl)return cl[r](t)},has(e,r){return r in e||r in cl}}))}function kS(t,e=!0){return Gt(t)?t.displayName||t.name:t.name||e&&t.__name}function CS(t){return Gt(t)&&"__vccOpts"in t}const xt=(t,e)=>s_(t,e,Vc);function V0(t,e,r=ye){const o=Wl(),s=fr(e),u=Di(e),f=a0((d,g)=>{let v;return D_(()=>{const y=t[e];Lr(v,y)&&(v=y,g())}),{get(){return d(),r.get?r.get(v):v},set(y){const w=o.vnode.props;!(w&&(e in w||s in w||u in w)&&(`onUpdate:${e}`in w||`onUpdate:${s}`in w||`onUpdate:${u}`in w))&&Lr(y,v)&&(v=y,g()),o.emit(`update:${e}`,r.set?r.set(y):y)}}}),h="modelModifiers";return f[Symbol.iterator]=()=>{let d=0;return{next(){return d<2?{value:d++?t[h]||{}:f,done:!1}:{done:!0}}}},f}function Vl(t,e,r){const o=arguments.length;return o===2?be(e)&&!It(e)?Cl(e)?Ht(t,null,[e]):Ht(t,e):Ht(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Cl(r)&&(r=[r]),Ht(t,e,r))}const TS="3.4.27";/**
|
|
14
|
-
* @vue/runtime-dom v3.4.27
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/const ES="http://www.w3.org/2000/svg",LS="http://www.w3.org/1998/Math/MathML",wi=typeof document<"u"?document:null,Hg=wi&&wi.createElement("template"),AS={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,o)=>{const s=e==="svg"?wi.createElementNS(ES,t):e==="mathml"?wi.createElementNS(LS,t):wi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:t=>wi.createTextNode(t),createComment:t=>wi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>wi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,s,u){const f=r?r.previousSibling:e.lastChild;if(s&&(s===u||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),r),!(s===u||!(s=s.nextSibling)););else{Hg.innerHTML=o==="svg"?`<svg>${t}</svg>`:o==="mathml"?`<math>${t}</math>`:t;const h=Hg.content;if(o==="svg"||o==="mathml"){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}e.insertBefore(h,r)}return[f?f.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},fi="transition",Ys="animation",Tl=Symbol("_vtc"),qh=(t,{slots:e})=>Vl(H_,MS(t),e);qh.displayName="Transition";const G0={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};qh.props=Re({},w0,G0);const to=(t,e=[])=>{It(t)?t.forEach(r=>r(...e)):t&&t(...e)},qg=t=>t?It(t)?t.some(e=>e.length>1):t.length>1:!1;function MS(t){const e={};for(const ot in t)ot in G0||(e[ot]=t[ot]);if(t.css===!1)return e;const{name:r="v",type:o,duration:s,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:d=u,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:w=`${r}-leave-active`,leaveToClass:_=`${r}-leave-to`}=t,M=NS(s),A=M&&M[0],L=M&&M[1],{onBeforeEnter:T,onEnter:E,onEnterCancelled:O,onLeave:$,onLeaveCancelled:F,onBeforeAppear:H=T,onAppear:ct=E,onAppearCancelled:Y=O}=e,ht=(ot,j,I)=>{eo(ot,j?v:h),eo(ot,j?g:f),I&&I()},Z=(ot,j)=>{ot._isLeaving=!1,eo(ot,y),eo(ot,_),eo(ot,w),j&&j()},ut=ot=>(j,I)=>{const k=ot?ct:E,q=()=>ht(j,ot,I);to(k,[j,q]),Bg(()=>{eo(j,ot?d:u),hi(j,ot?v:h),qg(k)||Wg(j,o,A,q)})};return Re(e,{onBeforeEnter(ot){to(T,[ot]),hi(ot,u),hi(ot,f)},onBeforeAppear(ot){to(H,[ot]),hi(ot,d),hi(ot,g)},onEnter:ut(!1),onAppear:ut(!0),onLeave(ot,j){ot._isLeaving=!0;const I=()=>Z(ot,j);hi(ot,y),hi(ot,w),OS(),Bg(()=>{ot._isLeaving&&(eo(ot,y),hi(ot,_),qg($)||Wg(ot,o,L,I))}),to($,[ot,I])},onEnterCancelled(ot){ht(ot,!1),to(O,[ot])},onAppearCancelled(ot){ht(ot,!0),to(Y,[ot])},onLeaveCancelled(ot){Z(ot),to(F,[ot])}})}function NS(t){if(t==null)return null;if(be(t))return[cf(t.enter),cf(t.leave)];{const e=cf(t);return[e,e]}}function cf(t){return Hm(t)}function hi(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Tl]||(t[Tl]=new Set)).add(e)}function eo(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[Tl];r&&(r.delete(e),r.size||(t[Tl]=void 0))}function Bg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let $S=0;function Wg(t,e,r,o){const s=t._endId=++$S,u=()=>{s===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:d}=PS(t,e);if(!f)return o();const g=f+"end";let v=0;const y=()=>{t.removeEventListener(g,w),u()},w=_=>{_.target===t&&++v>=d&&y()};setTimeout(()=>{v<d&&y()},h+1),t.addEventListener(g,w)}function PS(t,e){const r=window.getComputedStyle(t),o=M=>(r[M]||"").split(", "),s=o(`${fi}Delay`),u=o(`${fi}Duration`),f=Ug(s,u),h=o(`${Ys}Delay`),d=o(`${Ys}Duration`),g=Ug(h,d);let v=null,y=0,w=0;e===fi?f>0&&(v=fi,y=f,w=u.length):e===Ys?g>0&&(v=Ys,y=g,w=d.length):(y=Math.max(f,g),v=y>0?f>g?fi:Ys:null,w=v?v===fi?u.length:d.length:0);const _=v===fi&&/\b(transform|all)(,|$)/.test(o(`${fi}Property`).toString());return{type:v,timeout:y,propCount:w,hasTransform:_}}function Ug(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,o)=>Vg(r)+Vg(t[o])))}function Vg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function OS(){return document.body.offsetHeight}function RS(t,e,r){const o=t[Tl];o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const pc=Symbol("_vod"),j0=Symbol("_vsh"),Gf={beforeMount(t,{value:e},{transition:r}){t[pc]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Zs(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:o}){!e!=!r&&(o?e?(o.beforeEnter(t),Zs(t,!0),o.enter(t)):o.leave(t,()=>{Zs(t,!1)}):Zs(t,e))},beforeUnmount(t,{value:e}){Zs(t,e)}};function Zs(t,e){t.style.display=e?t[pc]:"none",t[j0]=!e}const DS=Symbol(""),zS=/(^|;)\s*display\s*:/;function IS(t,e,r){const o=t.style,s=De(r);let u=!1;if(r&&!s){if(e)if(De(e))for(const f of e.split(";")){const h=f.slice(0,f.indexOf(":")).trim();r[h]==null&&Qa(o,h,"")}else for(const f in e)r[f]==null&&Qa(o,f,"");for(const f in r)f==="display"&&(u=!0),Qa(o,f,r[f])}else if(s){if(e!==r){const f=o[DS];f&&(r+=";"+f),o.cssText=r,u=zS.test(r)}}else e&&t.removeAttribute("style");pc in t&&(t[pc]=u?o.display:"",t[j0]&&(o.display="none"))}const Gg=/\s*!important$/;function Qa(t,e,r){if(It(r))r.forEach(o=>Qa(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=FS(t,e);Gg.test(r)?t.setProperty(Di(o),r.replace(Gg,""),"important"):t[o]=r}}const jg=["Webkit","Moz","ms"],uf={};function FS(t,e){const r=uf[e];if(r)return r;let o=fr(e);if(o!=="filter"&&o in t)return uf[e]=o;o=Dc(o);for(let s=0;s<jg.length;s++){const u=jg[s]+o;if(u in t)return uf[e]=u}return e}const Kg="http://www.w3.org/1999/xlink";function HS(t,e,r,o,s){if(o&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(Kg,e.slice(6,e.length)):t.setAttributeNS(Kg,e,r);else{const u=Dx(e);r==null||u&&!Bm(r)?t.removeAttribute(e):t.setAttribute(e,u?"":r)}}function qS(t,e,r,o,s,u,f){if(e==="innerHTML"||e==="textContent"){o&&f(o,s,u),t[e]=r??"";return}const h=t.tagName;if(e==="value"&&h!=="PROGRESS"&&!h.includes("-")){const g=h==="OPTION"?t.getAttribute("value")||"":t.value,v=r??"";(g!==v||!("_value"in t))&&(t.value=v),r==null&&t.removeAttribute(e),t._value=r;return}let d=!1;if(r===""||r==null){const g=typeof t[e];g==="boolean"?r=Bm(r):r==null&&g==="string"?(r="",d=!0):g==="number"&&(r=0,d=!0)}try{t[e]=r}catch{}d&&t.removeAttribute(e)}function Ko(t,e,r,o){t.addEventListener(e,r,o)}function BS(t,e,r,o){t.removeEventListener(e,r,o)}const Xg=Symbol("_vei");function WS(t,e,r,o,s=null){const u=t[Xg]||(t[Xg]={}),f=u[e];if(o&&f)f.value=o;else{const[h,d]=US(e);if(o){const g=u[e]=jS(o,s);Ko(t,h,g,d)}else f&&(BS(t,h,f,d),u[e]=void 0)}}const Yg=/(?:Once|Passive|Capture)$/;function US(t){let e;if(Yg.test(t)){e={};let o;for(;o=t.match(Yg);)t=t.slice(0,t.length-o[0].length),e[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Di(t.slice(2)),e]}let ff=0;const VS=Promise.resolve(),GS=()=>ff||(VS.then(()=>ff=0),ff=Date.now());function jS(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Vn(KS(o,r.value),e,5,[o])};return r.value=t,r.attached=GS(),r}function KS(t,e){if(It(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>s=>!s._stopped&&o&&o(s))}else return e}const Zg=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,XS=(t,e,r,o,s,u,f,h,d)=>{const g=s==="svg";e==="class"?RS(t,o,g):e==="style"?IS(t,r,o):Pc(e)?wh(e)||WS(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):YS(t,e,o,g))?qS(t,e,o,u,f,h,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),HS(t,e,o,g))};function YS(t,e,r,o){if(o)return!!(e==="innerHTML"||e==="textContent"||e in t&&Zg(e)&&Gt(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Zg(e)&&De(r)?!1:e in t}const Jg=t=>{const e=t.props["onUpdate:modelValue"]||!1;return It(e)?r=>Ya(e,r):e};function ZS(t){t.target.composing=!0}function Qg(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const hf=Symbol("_assign"),JS={created(t,{modifiers:{lazy:e,trim:r,number:o}},s){t[hf]=Jg(s);const u=o||s.props&&s.props.type==="number";Ko(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=Af(h)),t[hf](h)}),r&&Ko(t,"change",()=>{t.value=t.value.trim()}),e||(Ko(t,"compositionstart",ZS),Ko(t,"compositionend",Qg),Ko(t,"change",Qg))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:o,number:s}},u){if(t[hf]=Jg(u),t.composing)return;const f=(s||t.type==="number")&&!/^0\d/.test(t.value)?Af(t.value):t.value,h=e??"";f!==h&&(document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===h)||(t.value=h))}},QS={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jf=(t,e)=>{const r=t._withKeys||(t._withKeys={}),o=e.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const u=Di(s.key);if(e.some(f=>f===u||QS[f]===u))return t(s)})},tk=Re({patchProp:XS},AS);let tv;function ek(){return tv||(tv=hS(tk))}const K0=(...t)=>{const e=ek().createApp(...t),{mount:r}=e;return e.mount=o=>{const s=rk(o);if(!s)return;const u=e._component;!Gt(u)&&!u.render&&!u.template&&(u.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,nk(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},e};function nk(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function rk(t){return De(t)?document.querySelector(t):t}const bo=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},ik={};function ok(t,e){const r=fo("RouterView");return at(),ne(r)}const sk=bo(ik,[["render",ok]]);/*!
|
|
18
|
-
* vue-router v4.3.2
|
|
19
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
20
|
-
* @license MIT
|
|
21
|
-
*/const Xo=typeof document<"u";function lk(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function df(t,e){const r={};for(const o in e){const s=e[o];r[o]=hr(s)?s.map(t):t(s)}return r}const hl=()=>{},hr=Array.isArray,X0=/#/g,ak=/&/g,ck=/\//g,uk=/=/g,fk=/\?/g,Y0=/\+/g,hk=/%5B/g,dk=/%5D/g,Z0=/%5E/g,pk=/%60/g,J0=/%7B/g,gk=/%7C/g,Q0=/%7D/g,vk=/%20/g;function Bh(t){return encodeURI(""+t).replace(gk,"|").replace(hk,"[").replace(dk,"]")}function mk(t){return Bh(t).replace(J0,"{").replace(Q0,"}").replace(Z0,"^")}function Kf(t){return Bh(t).replace(Y0,"%2B").replace(vk,"+").replace(X0,"%23").replace(ak,"%26").replace(pk,"`").replace(J0,"{").replace(Q0,"}").replace(Z0,"^")}function yk(t){return Kf(t).replace(uk,"%3D")}function bk(t){return Bh(t).replace(X0,"%23").replace(fk,"%3F")}function wk(t){return t==null?"":bk(t).replace(ck,"%2F")}function El(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const xk=/\/$/,_k=t=>t.replace(xk,"");function pf(t,e,r="/"){let o,s={},u="",f="";const h=e.indexOf("#");let d=e.indexOf("?");return h<d&&h>=0&&(d=-1),d>-1&&(o=e.slice(0,d),u=e.slice(d+1,h>-1?h:e.length),s=t(u)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=Tk(o??e,r),{fullPath:o+(u&&"?")+u+f,path:o,query:s,hash:El(f)}}function Sk(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function ev(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function kk(t,e,r){const o=e.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&cs(e.matched[o],r.matched[s])&&ty(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function cs(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function ty(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!Ck(t[r],e[r]))return!1;return!0}function Ck(t,e){return hr(t)?nv(t,e):hr(e)?nv(e,t):t===e}function nv(t,e){return hr(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function Tk(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),o=t.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let u=r.length-1,f,h;for(f=0;f<o.length;f++)if(h=o[f],h!==".")if(h==="..")u>1&&u--;else break;return r.slice(0,u).join("/")+"/"+o.slice(f).join("/")}var Ll;(function(t){t.pop="pop",t.push="push"})(Ll||(Ll={}));var dl;(function(t){t.back="back",t.forward="forward",t.unknown=""})(dl||(dl={}));function Ek(t){if(!t)if(Xo){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),_k(t)}const Lk=/^[^#]+#/;function Ak(t,e){return t.replace(Lk,"#")+e}function Mk(t,e){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:e.behavior,left:o.left-r.left-(e.left||0),top:o.top-r.top-(e.top||0)}}const jc=()=>({left:window.scrollX,top:window.scrollY});function Nk(t){let e;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;e=Mk(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function rv(t,e){return(history.state?history.state.position-e:-1)+t}const Xf=new Map;function $k(t,e){Xf.set(t,e)}function Pk(t){const e=Xf.get(t);return Xf.delete(t),e}let Ok=()=>location.protocol+"//"+location.host;function ey(t,e){const{pathname:r,search:o,hash:s}=e,u=t.indexOf("#");if(u>-1){let h=s.includes(t.slice(u))?t.slice(u).length:1,d=s.slice(h);return d[0]!=="/"&&(d="/"+d),ev(d,"")}return ev(r,t)+o+s}function Rk(t,e,r,o){let s=[],u=[],f=null;const h=({state:w})=>{const _=ey(t,location),M=r.value,A=e.value;let L=0;if(w){if(r.value=_,e.value=w,f&&f===M){f=null;return}L=A?w.position-A.position:0}else o(_);s.forEach(T=>{T(r.value,M,{delta:L,type:Ll.pop,direction:L?L>0?dl.forward:dl.back:dl.unknown})})};function d(){f=r.value}function g(w){s.push(w);const _=()=>{const M=s.indexOf(w);M>-1&&s.splice(M,1)};return u.push(_),_}function v(){const{history:w}=window;w.state&&w.replaceState(pe({},w.state,{scroll:jc()}),"")}function y(){for(const w of u)w();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:d,listen:g,destroy:y}}function iv(t,e,r,o=!1,s=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:s?jc():null}}function Dk(t){const{history:e,location:r}=window,o={value:ey(t,r)},s={value:e.state};s.value||u(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function u(d,g,v){const y=t.indexOf("#"),w=y>-1?(r.host&&document.querySelector("base")?t:t.slice(y))+d:Ok()+t+d;try{e[v?"replaceState":"pushState"](g,"",w),s.value=g}catch(_){console.error(_),r[v?"replace":"assign"](w)}}function f(d,g){const v=pe({},e.state,iv(s.value.back,d,s.value.forward,!0),g,{position:s.value.position});u(d,v,!0),o.value=d}function h(d,g){const v=pe({},s.value,e.state,{forward:d,scroll:jc()});u(v.current,v,!0);const y=pe({},iv(o.value,d,null),{position:v.position+1},g);u(d,y,!1),o.value=d}return{location:o,state:s,push:h,replace:f}}function zk(t){t=Ek(t);const e=Dk(t),r=Rk(t,e.state,e.location,e.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const s=pe({location:"",base:t,go:o,createHref:Ak.bind(null,t)},e,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function Ik(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),zk(t)}function Fk(t){return typeof t=="string"||t&&typeof t=="object"}function ny(t){return typeof t=="string"||typeof t=="symbol"}const di={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ry=Symbol("");var ov;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ov||(ov={}));function us(t,e){return pe(new Error,{type:t,[ry]:!0},e)}function Hr(t,e){return t instanceof Error&&ry in t&&(e==null||!!(t.type&e))}const sv="[^/]+?",Hk={sensitive:!1,strict:!1,start:!0,end:!0},qk=/[.+*?^${}()[\]/\\]/g;function Bk(t,e){const r=pe({},Hk,e),o=[];let s=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(s+="/");for(let y=0;y<g.length;y++){const w=g[y];let _=40+(r.sensitive?.25:0);if(w.type===0)y||(s+="/"),s+=w.value.replace(qk,"\\$&"),_+=40;else if(w.type===1){const{value:M,repeatable:A,optional:L,regexp:T}=w;u.push({name:M,repeatable:A,optional:L});const E=T||sv;if(E!==sv){_+=10;try{new RegExp(`(${E})`)}catch($){throw new Error(`Invalid custom RegExp for param "${M}" (${E}): `+$.message)}}let O=A?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;y||(O=L&&g.length<2?`(?:/${O})`:"/"+O),L&&(O+="?"),s+=O,_+=20,L&&(_+=-8),A&&(_+=-20),E===".*"&&(_+=-50)}v.push(_)}o.push(v)}if(r.strict&&r.end){const g=o.length-1;o[g][o[g].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function h(g){const v=g.match(f),y={};if(!v)return null;for(let w=1;w<v.length;w++){const _=v[w]||"",M=u[w-1];y[M.name]=_&&M.repeatable?_.split("/"):_}return y}function d(g){let v="",y=!1;for(const w of t){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const _ of w)if(_.type===0)v+=_.value;else if(_.type===1){const{value:M,repeatable:A,optional:L}=_,T=M in g?g[M]:"";if(hr(T)&&!A)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const E=hr(T)?T.join("/"):T;if(!E)if(L)w.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${M}"`);v+=E}}return v||"/"}return{re:f,score:o,keys:u,parse:h,stringify:d}}function Wk(t,e){let r=0;for(;r<t.length&&r<e.length;){const o=e[r]-t[r];if(o)return o;r++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function Uk(t,e){let r=0;const o=t.score,s=e.score;for(;r<o.length&&r<s.length;){const u=Wk(o[r],s[r]);if(u)return u;r++}if(Math.abs(s.length-o.length)===1){if(lv(o))return 1;if(lv(s))return-1}return s.length-o.length}function lv(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const Vk={type:0,value:""},Gk=/[a-zA-Z0-9_]/;function jk(t){if(!t)return[[]];if(t==="/")return[[Vk]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(_){throw new Error(`ERR (${r})/"${g}": ${_}`)}let r=0,o=r;const s=[];let u;function f(){u&&s.push(u),u=[]}let h=0,d,g="",v="";function y(){g&&(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:v,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),g="")}function w(){g+=d}for(;h<t.length;){if(d=t[h++],d==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:d==="/"?(g&&y(),f()):d===":"?(y(),r=1):w();break;case 4:w(),r=o;break;case 1:d==="("?r=2:Gk.test(d)?w():(y(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--);break;case 2:d===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+d:r=3:v+=d;break;case 3:y(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--,v="";break;default:e("Unknown state");break}}return r===2&&e(`Unfinished custom RegExp for param "${g}"`),y(),f(),s}function Kk(t,e,r){const o=Bk(jk(t.path),r),s=pe(o,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function Xk(t,e){const r=[],o=new Map;e=uv({strict:!1,end:!0,sensitive:!1},e);function s(v){return o.get(v)}function u(v,y,w){const _=!w,M=Yk(v);M.aliasOf=w&&w.record;const A=uv(e,v),L=[M];if("alias"in v){const O=typeof v.alias=="string"?[v.alias]:v.alias;for(const $ of O)L.push(pe({},M,{components:w?w.record.components:M.components,path:$,aliasOf:w?w.record:M}))}let T,E;for(const O of L){const{path:$}=O;if(y&&$[0]!=="/"){const F=y.record.path,H=F[F.length-1]==="/"?"":"/";O.path=y.record.path+($&&H+$)}if(T=Kk(O,y,A),w?w.alias.push(T):(E=E||T,E!==T&&E.alias.push(T),_&&v.name&&!cv(T)&&f(v.name)),M.children){const F=M.children;for(let H=0;H<F.length;H++)u(F[H],T,w&&w.children[H])}w=w||T,(T.record.components&&Object.keys(T.record.components).length||T.record.name||T.record.redirect)&&d(T)}return E?()=>{f(E)}:hl}function f(v){if(ny(v)){const y=o.get(v);y&&(o.delete(v),r.splice(r.indexOf(y),1),y.children.forEach(f),y.alias.forEach(f))}else{const y=r.indexOf(v);y>-1&&(r.splice(y,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function h(){return r}function d(v){let y=0;for(;y<r.length&&Uk(v,r[y])>=0&&(v.record.path!==r[y].record.path||!iy(v,r[y]));)y++;r.splice(y,0,v),v.record.name&&!cv(v)&&o.set(v.record.name,v)}function g(v,y){let w,_={},M,A;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw us(1,{location:v});A=w.record.name,_=pe(av(y.params,w.keys.filter(E=>!E.optional).concat(w.parent?w.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),v.params&&av(v.params,w.keys.map(E=>E.name))),M=w.stringify(_)}else if(v.path!=null)M=v.path,w=r.find(E=>E.re.test(M)),w&&(_=w.parse(M),A=w.record.name);else{if(w=y.name?o.get(y.name):r.find(E=>E.re.test(y.path)),!w)throw us(1,{location:v,currentLocation:y});A=w.record.name,_=pe({},y.params,v.params),M=w.stringify(_)}const L=[];let T=w;for(;T;)L.unshift(T.record),T=T.parent;return{name:A,path:M,params:_,matched:L,meta:Jk(L)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:s}}function av(t,e){const r={};for(const o of e)o in t&&(r[o]=t[o]);return r}function Yk(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Zk(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Zk(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const o in t.components)e[o]=typeof r=="object"?r[o]:r;return e}function cv(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Jk(t){return t.reduce((e,r)=>pe(e,r.meta),{})}function uv(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function iy(t,e){return e.children.some(r=>r===t||iy(t,r))}function Qk(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<o.length;++s){const u=o[s].replace(Y0," "),f=u.indexOf("="),h=El(f<0?u:u.slice(0,f)),d=f<0?null:El(u.slice(f+1));if(h in e){let g=e[h];hr(g)||(g=e[h]=[g]),g.push(d)}else e[h]=d}return e}function fv(t){let e="";for(let r in t){const o=t[r];if(r=yk(r),o==null){o!==void 0&&(e+=(e.length?"&":"")+r);continue}(hr(o)?o.map(u=>u&&Kf(u)):[o&&Kf(o)]).forEach(u=>{u!==void 0&&(e+=(e.length?"&":"")+r,u!=null&&(e+="="+u))})}return e}function tC(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=hr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return e}const eC=Symbol(""),hv=Symbol(""),Wh=Symbol(""),oy=Symbol(""),Yf=Symbol("");function Js(){let t=[];function e(o){return t.push(o),()=>{const s=t.indexOf(o);s>-1&&t.splice(s,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function xi(t,e,r,o,s,u=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((h,d)=>{const g=w=>{w===!1?d(us(4,{from:r,to:e})):w instanceof Error?d(w):Fk(w)?d(us(2,{from:e,to:w})):(f&&o.enterCallbacks[s]===f&&typeof w=="function"&&f.push(w),h())},v=u(()=>t.call(o&&o.instances[s],e,r,g));let y=Promise.resolve(v);t.length<3&&(y=y.then(g)),y.catch(w=>d(w))})}function gf(t,e,r,o,s=u=>u()){const u=[];for(const f of t)for(const h in f.components){let d=f.components[h];if(!(e!=="beforeRouteEnter"&&!f.instances[h]))if(nC(d)){const v=(d.__vccOpts||d)[e];v&&u.push(xi(v,r,o,f,h,s))}else{let g=d();u.push(()=>g.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${h}" at "${f.path}"`));const y=lk(v)?v.default:v;f.components[h]=y;const _=(y.__vccOpts||y)[e];return _&&xi(_,r,o,f,h,s)()}))}}return u}function nC(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dv(t){const e=Vr(Wh),r=Vr(oy),o=xt(()=>{const d=V(t.to);return e.resolve(d)}),s=xt(()=>{const{matched:d}=o.value,{length:g}=d,v=d[g-1],y=r.matched;if(!v||!y.length)return-1;const w=y.findIndex(cs.bind(null,v));if(w>-1)return w;const _=pv(d[g-2]);return g>1&&pv(v)===_&&y[y.length-1].path!==_?y.findIndex(cs.bind(null,d[g-2])):w}),u=xt(()=>s.value>-1&&sC(r.params,o.value.params)),f=xt(()=>s.value>-1&&s.value===r.matched.length-1&&ty(r.params,o.value.params));function h(d={}){return oC(d)?e[V(t.replace)?"replace":"push"](V(t.to)).catch(hl):Promise.resolve()}return{route:o,href:xt(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const rC=he({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:dv,setup(t,{slots:e}){const r=kr(dv(t)),{options:o}=Vr(Wh),s=xt(()=>({[gv(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[gv(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=e.default&&e.default(r);return t.custom?u:Vl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},u)}}}),iC=rC;function oC(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function sC(t,e){for(const r in e){const o=e[r],s=t[r];if(typeof o=="string"){if(o!==s)return!1}else if(!hr(s)||s.length!==o.length||o.some((u,f)=>u!==s[f]))return!1}return!0}function pv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const gv=(t,e,r)=>t??e??r,lC=he({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=Vr(Yf),s=xt(()=>t.route||o.value),u=Vr(hv,0),f=xt(()=>{let g=V(u);const{matched:v}=s.value;let y;for(;(y=v[g])&&!y.components;)g++;return g}),h=xt(()=>s.value.matched[f.value]);Za(hv,xt(()=>f.value+1)),Za(eC,h),Za(Yf,s);const d=te();return je(()=>[d.value,h.value,t.name],([g,v,y],[w,_,M])=>{v&&(v.instances[y]=g,_&&_!==v&&g&&g===w&&(v.leaveGuards.size||(v.leaveGuards=_.leaveGuards),v.updateGuards.size||(v.updateGuards=_.updateGuards))),g&&v&&(!_||!cs(v,_)||!w)&&(v.enterCallbacks[y]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=s.value,v=t.name,y=h.value,w=y&&y.components[v];if(!w)return vv(r.default,{Component:w,route:g});const _=y.props[v],M=_?_===!0?g.params:typeof _=="function"?_(g):_:null,L=Vl(w,pe({},M,e,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(y.instances[v]=null)},ref:d}));return vv(r.default,{Component:L,route:g})||L}}});function vv(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const aC=lC;function cC(t){const e=Xk(t.routes,t),r=t.parseQuery||Qk,o=t.stringifyQuery||fv,s=t.history,u=Js(),f=Js(),h=Js(),d=gs(di);let g=di;Xo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=df.bind(null,G=>""+G),y=df.bind(null,wk),w=df.bind(null,El);function _(G,rt){let ft,Nt;return ny(G)?(ft=e.getRecordMatcher(G),Nt=rt):Nt=G,e.addRoute(Nt,ft)}function M(G){const rt=e.getRecordMatcher(G);rt&&e.removeRoute(rt)}function A(){return e.getRoutes().map(G=>G.record)}function L(G){return!!e.getRecordMatcher(G)}function T(G,rt){if(rt=pe({},rt||d.value),typeof G=="string"){const z=pf(r,G,rt.path),K=e.resolve({path:z.path},rt),it=s.createHref(z.fullPath);return pe(z,K,{params:w(K.params),hash:El(z.hash),redirectedFrom:void 0,href:it})}let ft;if(G.path!=null)ft=pe({},G,{path:pf(r,G.path,rt.path).path});else{const z=pe({},G.params);for(const K in z)z[K]==null&&delete z[K];ft=pe({},G,{params:y(z)}),rt.params=y(rt.params)}const Nt=e.resolve(ft,rt),Et=G.hash||"";Nt.params=v(w(Nt.params));const Kt=Sk(o,pe({},G,{hash:mk(Et),path:Nt.path})),P=s.createHref(Kt);return pe({fullPath:Kt,hash:Et,query:o===fv?tC(G.query):G.query||{}},Nt,{redirectedFrom:void 0,href:P})}function E(G){return typeof G=="string"?pf(r,G,d.value.path):pe({},G)}function O(G,rt){if(g!==G)return us(8,{from:rt,to:G})}function $(G){return ct(G)}function F(G){return $(pe(E(G),{replace:!0}))}function H(G){const rt=G.matched[G.matched.length-1];if(rt&&rt.redirect){const{redirect:ft}=rt;let Nt=typeof ft=="function"?ft(G):ft;return typeof Nt=="string"&&(Nt=Nt.includes("?")||Nt.includes("#")?Nt=E(Nt):{path:Nt},Nt.params={}),pe({query:G.query,hash:G.hash,params:Nt.path!=null?{}:G.params},Nt)}}function ct(G,rt){const ft=g=T(G),Nt=d.value,Et=G.state,Kt=G.force,P=G.replace===!0,z=H(ft);if(z)return ct(pe(E(z),{state:typeof z=="object"?pe({},Et,z.state):Et,force:Kt,replace:P}),rt||ft);const K=ft;K.redirectedFrom=rt;let it;return!Kt&&kk(o,Nt,ft)&&(it=us(16,{to:K,from:Nt}),qt(Nt,Nt,!0,!1)),(it?Promise.resolve(it):Z(K,Nt)).catch(nt=>Hr(nt)?Hr(nt,2)?nt:Mt(nt):Q(nt,K,Nt)).then(nt=>{if(nt){if(Hr(nt,2))return ct(pe({replace:P},E(nt.to),{state:typeof nt.to=="object"?pe({},Et,nt.to.state):Et,force:Kt}),rt||K)}else nt=ot(K,Nt,!0,P,Et);return ut(K,Nt,nt),nt})}function Y(G,rt){const ft=O(G,rt);return ft?Promise.reject(ft):Promise.resolve()}function ht(G){const rt=Qt.values().next().value;return rt&&typeof rt.runWithContext=="function"?rt.runWithContext(G):G()}function Z(G,rt){let ft;const[Nt,Et,Kt]=uC(G,rt);ft=gf(Nt.reverse(),"beforeRouteLeave",G,rt);for(const z of Nt)z.leaveGuards.forEach(K=>{ft.push(xi(K,G,rt))});const P=Y.bind(null,G,rt);return ft.push(P),Tt(ft).then(()=>{ft=[];for(const z of u.list())ft.push(xi(z,G,rt));return ft.push(P),Tt(ft)}).then(()=>{ft=gf(Et,"beforeRouteUpdate",G,rt);for(const z of Et)z.updateGuards.forEach(K=>{ft.push(xi(K,G,rt))});return ft.push(P),Tt(ft)}).then(()=>{ft=[];for(const z of Kt)if(z.beforeEnter)if(hr(z.beforeEnter))for(const K of z.beforeEnter)ft.push(xi(K,G,rt));else ft.push(xi(z.beforeEnter,G,rt));return ft.push(P),Tt(ft)}).then(()=>(G.matched.forEach(z=>z.enterCallbacks={}),ft=gf(Kt,"beforeRouteEnter",G,rt,ht),ft.push(P),Tt(ft))).then(()=>{ft=[];for(const z of f.list())ft.push(xi(z,G,rt));return ft.push(P),Tt(ft)}).catch(z=>Hr(z,8)?z:Promise.reject(z))}function ut(G,rt,ft){h.list().forEach(Nt=>ht(()=>Nt(G,rt,ft)))}function ot(G,rt,ft,Nt,Et){const Kt=O(G,rt);if(Kt)return Kt;const P=rt===di,z=Xo?history.state:{};ft&&(Nt||P?s.replace(G.fullPath,pe({scroll:P&&z&&z.scroll},Et)):s.push(G.fullPath,Et)),d.value=G,qt(G,rt,ft,P),Mt()}let j;function I(){j||(j=s.listen((G,rt,ft)=>{if(!Yt.listening)return;const Nt=T(G),Et=H(Nt);if(Et){ct(pe(Et,{replace:!0}),Nt).catch(hl);return}g=Nt;const Kt=d.value;Xo&&$k(rv(Kt.fullPath,ft.delta),jc()),Z(Nt,Kt).catch(P=>Hr(P,12)?P:Hr(P,2)?(ct(P.to,Nt).then(z=>{Hr(z,20)&&!ft.delta&&ft.type===Ll.pop&&s.go(-1,!1)}).catch(hl),Promise.reject()):(ft.delta&&s.go(-ft.delta,!1),Q(P,Nt,Kt))).then(P=>{P=P||ot(Nt,Kt,!1),P&&(ft.delta&&!Hr(P,8)?s.go(-ft.delta,!1):ft.type===Ll.pop&&Hr(P,20)&&s.go(-1,!1)),ut(Nt,Kt,P)}).catch(hl)}))}let k=Js(),q=Js(),W;function Q(G,rt,ft){Mt(G);const Nt=q.list();return Nt.length?Nt.forEach(Et=>Et(G,rt,ft)):console.error(G),Promise.reject(G)}function mt(){return W&&d.value!==di?Promise.resolve():new Promise((G,rt)=>{k.add([G,rt])})}function Mt(G){return W||(W=!G,I(),k.list().forEach(([rt,ft])=>G?ft(G):rt()),k.reset()),G}function qt(G,rt,ft,Nt){const{scrollBehavior:Et}=t;if(!Xo||!Et)return Promise.resolve();const Kt=!ft&&Pk(rv(G.fullPath,0))||(Nt||!ft)&&history.state&&history.state.scroll||null;return jr().then(()=>Et(G,rt,Kt)).then(P=>P&&Nk(P)).catch(P=>Q(P,G,rt))}const Wt=G=>s.go(G);let ee;const Qt=new Set,Yt={currentRoute:d,listening:!0,addRoute:_,removeRoute:M,hasRoute:L,getRoutes:A,resolve:T,options:t,push:$,replace:F,go:Wt,back:()=>Wt(-1),forward:()=>Wt(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:q.add,isReady:mt,install(G){const rt=this;G.component("RouterLink",iC),G.component("RouterView",aC),G.config.globalProperties.$router=rt,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>V(d)}),Xo&&!ee&&d.value===di&&(ee=!0,$(s.location).catch(Et=>{}));const ft={};for(const Et in di)Object.defineProperty(ft,Et,{get:()=>d.value[Et],enumerable:!0});G.provide(Wh,rt),G.provide(oy,n0(ft)),G.provide(Yf,d);const Nt=G.unmount;Qt.add(G),G.unmount=function(){Qt.delete(G),Qt.size<1&&(g=di,j&&j(),j=null,d.value=di,ee=!1,W=!1),Nt()}}};function Tt(G){return G.reduce((rt,ft)=>rt.then(()=>ht(ft)),Promise.resolve())}return Yt}function uC(t,e){const r=[],o=[],s=[],u=Math.max(e.matched.length,t.matched.length);for(let f=0;f<u;f++){const h=e.matched[f];h&&(t.matched.find(g=>cs(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>cs(g,d))||s.push(d))}return[r,o,s]}const fC=["top","right","bottom","left"],mv=["start","end"],yv=fC.reduce((t,e)=>t.concat(e,e+"-"+mv[0],e+"-"+mv[1]),[]),Al=Math.min,ro=Math.max,hC={left:"right",right:"left",bottom:"top",top:"bottom"},dC={start:"end",end:"start"};function Zf(t,e,r){return ro(t,Al(e,r))}function wo(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function cr(t){return t.split("-")[1]}function sy(t){return t==="x"?"y":"x"}function Uh(t){return t==="y"?"height":"width"}function Gl(t){return["top","bottom"].includes(Ar(t))?"y":"x"}function Vh(t){return sy(Gl(t))}function ly(t,e,r){r===void 0&&(r=!1);const o=cr(t),s=Vh(t),u=Uh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[u]>e.floating[u]&&(f=vc(f)),[f,vc(f)]}function pC(t){const e=vc(t);return[gc(t),e,gc(e)]}function gc(t){return t.replace(/start|end/g,e=>dC[e])}function gC(t,e,r){const o=["left","right"],s=["right","left"],u=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:o:e?o:s;case"left":case"right":return e?u:f;default:return[]}}function vC(t,e,r,o){const s=cr(t);let u=gC(Ar(t),r==="start",o);return s&&(u=u.map(f=>f+"-"+s),e&&(u=u.concat(u.map(gc)))),u}function vc(t){return t.replace(/left|right|bottom|top/g,e=>hC[e])}function mC(t){return{top:0,right:0,bottom:0,left:0,...t}}function ay(t){return typeof t!="number"?mC(t):{top:t,right:t,bottom:t,left:t}}function pl(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function bv(t,e,r){let{reference:o,floating:s}=t;const u=Gl(e),f=Vh(e),h=Uh(f),d=Ar(e),g=u==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,w=o[h]/2-s[h]/2;let _;switch(d){case"top":_={x:v,y:o.y-s.height};break;case"bottom":_={x:v,y:o.y+o.height};break;case"right":_={x:o.x+o.width,y};break;case"left":_={x:o.x-s.width,y};break;default:_={x:o.x,y:o.y}}switch(cr(e)){case"start":_[f]-=w*(r&&g?-1:1);break;case"end":_[f]+=w*(r&&g?-1:1);break}return _}const yC=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:u=[],platform:f}=r,h=u.filter(Boolean),d=await(f.isRTL==null?void 0:f.isRTL(e));let g=await f.getElementRects({reference:t,floating:e,strategy:s}),{x:v,y}=bv(g,o,d),w=o,_={},M=0;for(let A=0;A<h.length;A++){const{name:L,fn:T}=h[A],{x:E,y:O,data:$,reset:F}=await T({x:v,y,initialPlacement:o,placement:w,strategy:s,middlewareData:_,rects:g,platform:f,elements:{reference:t,floating:e}});v=E??v,y=O??y,_={..._,[L]:{..._[L],...$}},F&&M<=50&&(M++,typeof F=="object"&&(F.placement&&(w=F.placement),F.rects&&(g=F.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:s}):F.rects),{x:v,y}=bv(g,w,d)),A=-1)}return{x:v,y,placement:w,strategy:s,middlewareData:_}};async function Kc(t,e){var r;e===void 0&&(e={});const{x:o,y:s,platform:u,rects:f,elements:h,strategy:d}=t,{boundary:g="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:w=!1,padding:_=0}=wo(e,t),M=ay(_),L=h[w?y==="floating"?"reference":"floating":y],T=pl(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(L)))==null||r?L:L.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:g,rootBoundary:v,strategy:d})),E=y==="floating"?{...f.floating,x:o,y:s}:f.reference,O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),$=await(u.isElement==null?void 0:u.isElement(O))?await(u.getScale==null?void 0:u.getScale(O))||{x:1,y:1}:{x:1,y:1},F=pl(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:E,offsetParent:O,strategy:d}):E);return{top:(T.top-F.top+M.top)/$.y,bottom:(F.bottom-T.bottom+M.bottom)/$.y,left:(T.left-F.left+M.left)/$.x,right:(F.right-T.right+M.right)/$.x}}const bC=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:s,rects:u,platform:f,elements:h,middlewareData:d}=e,{element:g,padding:v=0}=wo(t,e)||{};if(g==null)return{};const y=ay(v),w={x:r,y:o},_=Vh(s),M=Uh(_),A=await f.getDimensions(g),L=_==="y",T=L?"top":"left",E=L?"bottom":"right",O=L?"clientHeight":"clientWidth",$=u.reference[M]+u.reference[_]-w[_]-u.floating[M],F=w[_]-u.reference[_],H=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let ct=H?H[O]:0;(!ct||!await(f.isElement==null?void 0:f.isElement(H)))&&(ct=h.floating[O]||u.floating[M]);const Y=$/2-F/2,ht=ct/2-A[M]/2-1,Z=Al(y[T],ht),ut=Al(y[E],ht),ot=Z,j=ct-A[M]-ut,I=ct/2-A[M]/2+Y,k=Zf(ot,I,j),q=!d.arrow&&cr(s)!=null&&I!==k&&u.reference[M]/2-(I<ot?Z:ut)-A[M]/2<0,W=q?I<ot?I-ot:I-j:0;return{[_]:w[_]+W,data:{[_]:k,centerOffset:I-k-W,...q&&{alignmentOffset:W}},reset:q}}});function wC(t,e,r){return(t?[...r.filter(s=>cr(s)===t),...r.filter(s=>cr(s)!==t)]:r.filter(s=>Ar(s)===s)).filter(s=>t?cr(s)===t||(e?gc(s)!==s:!1):!0)}const xC=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,s;const{rects:u,middlewareData:f,placement:h,platform:d,elements:g}=e,{crossAxis:v=!1,alignment:y,allowedPlacements:w=yv,autoAlignment:_=!0,...M}=wo(t,e),A=y!==void 0||w===yv?wC(y||null,_,w):w,L=await Kc(e,M),T=((r=f.autoPlacement)==null?void 0:r.index)||0,E=A[T];if(E==null)return{};const O=ly(E,u,await(d.isRTL==null?void 0:d.isRTL(g.floating)));if(h!==E)return{reset:{placement:A[0]}};const $=[L[Ar(E)],L[O[0]],L[O[1]]],F=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:E,overflows:$}],H=A[T+1];if(H)return{data:{index:T+1,overflows:F},reset:{placement:H}};const ct=F.map(Z=>{const ut=cr(Z.placement);return[Z.placement,ut&&v?Z.overflows.slice(0,2).reduce((ot,j)=>ot+j,0):Z.overflows[0],Z.overflows]}).sort((Z,ut)=>Z[1]-ut[1]),ht=((s=ct.filter(Z=>Z[2].slice(0,cr(Z[0])?2:3).every(ut=>ut<=0))[0])==null?void 0:s[0])||ct[0][0];return ht!==h?{data:{index:T+1,overflows:F},reset:{placement:ht}}:{}}}},_C=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:s,middlewareData:u,rects:f,initialPlacement:h,platform:d,elements:g}=e,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:A=!0,...L}=wo(t,e);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const T=Ar(s),E=Ar(h)===h,O=await(d.isRTL==null?void 0:d.isRTL(g.floating)),$=w||(E||!A?[vc(h)]:pC(h));!w&&M!=="none"&&$.push(...vC(h,A,M,O));const F=[h,...$],H=await Kc(e,L),ct=[];let Y=((o=u.flip)==null?void 0:o.overflows)||[];if(v&&ct.push(H[T]),y){const ot=ly(s,f,O);ct.push(H[ot[0]],H[ot[1]])}if(Y=[...Y,{placement:s,overflows:ct}],!ct.every(ot=>ot<=0)){var ht,Z;const ot=(((ht=u.flip)==null?void 0:ht.index)||0)+1,j=F[ot];if(j)return{data:{index:ot,overflows:Y},reset:{placement:j}};let I=(Z=Y.filter(k=>k.overflows[0]<=0).sort((k,q)=>k.overflows[1]-q.overflows[1])[0])==null?void 0:Z.placement;if(!I)switch(_){case"bestFit":{var ut;const k=(ut=Y.map(q=>[q.placement,q.overflows.filter(W=>W>0).reduce((W,Q)=>W+Q,0)]).sort((q,W)=>q[1]-W[1])[0])==null?void 0:ut[0];k&&(I=k);break}case"initialPlacement":I=h;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function SC(t,e){const{placement:r,platform:o,elements:s}=t,u=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Ar(r),h=cr(r),d=Gl(r)==="y",g=["left","top"].includes(f)?-1:1,v=u&&d?-1:1,y=wo(e,t);let{mainAxis:w,crossAxis:_,alignmentAxis:M}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return h&&typeof M=="number"&&(_=h==="end"?M*-1:M),d?{x:_*v,y:w*g}:{x:w*g,y:_*v}}const kC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:s,y:u,placement:f,middlewareData:h}=e,d=await SC(e,t);return f===((r=h.offset)==null?void 0:r.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:s+d.x,y:u+d.y,data:{...d,placement:f}}}}},CC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:T,y:E}=L;return{x:T,y:E}}},...d}=wo(t,e),g={x:r,y:o},v=await Kc(e,d),y=Gl(Ar(s)),w=sy(y);let _=g[w],M=g[y];if(u){const L=w==="y"?"top":"left",T=w==="y"?"bottom":"right",E=_+v[L],O=_-v[T];_=Zf(E,_,O)}if(f){const L=y==="y"?"top":"left",T=y==="y"?"bottom":"right",E=M+v[L],O=M-v[T];M=Zf(E,M,O)}const A=h.fn({...e,[w]:_,[y]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},TC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:s,elements:u}=e,{apply:f=()=>{},...h}=wo(t,e),d=await Kc(e,h),g=Ar(r),v=cr(r),y=Gl(r)==="y",{width:w,height:_}=o.floating;let M,A;g==="top"||g==="bottom"?(M=g,A=v===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(A=g,M=v==="end"?"top":"bottom");const L=_-d[M],T=w-d[A],E=!e.middlewareData.shift;let O=L,$=T;if(y){const H=w-d.left-d.right;$=v||E?Al(T,H):H}else{const H=_-d.top-d.bottom;O=v||E?Al(L,H):H}if(E&&!v){const H=ro(d.left,0),ct=ro(d.right,0),Y=ro(d.top,0),ht=ro(d.bottom,0);y?$=w-2*(H!==0||ct!==0?H+ct:ro(d.left,d.right)):O=_-2*(Y!==0||ht!==0?Y+ht:ro(d.top,d.bottom))}await f({...e,availableWidth:$,availableHeight:O});const F=await s.getDimensions(u.floating);return w!==F.width||_!==F.height?{reset:{rects:!0}}:{}}}};function Un(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Cr(t){return Un(t).getComputedStyle(t)}const wv=Math.min,gl=Math.max,mc=Math.round;function cy(t){const e=Cr(t);let r=parseFloat(e.width),o=parseFloat(e.height);const s=t.offsetWidth,u=t.offsetHeight,f=mc(r)!==s||mc(o)!==u;return f&&(r=s,o=u),{width:r,height:o,fallback:f}}function Pi(t){return fy(t)?(t.nodeName||"").toLowerCase():""}let za;function uy(){if(za)return za;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(za=t.brands.map(e=>e.brand+"/"+e.version).join(" "),za):navigator.userAgent}function Tr(t){return t instanceof Un(t).HTMLElement}function Mi(t){return t instanceof Un(t).Element}function fy(t){return t instanceof Un(t).Node}function xv(t){return typeof ShadowRoot>"u"?!1:t instanceof Un(t).ShadowRoot||t instanceof ShadowRoot}function Xc(t){const{overflow:e,overflowX:r,overflowY:o,display:s}=Cr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(s)}function EC(t){return["table","td","th"].includes(Pi(t))}function Jf(t){const e=/firefox/i.test(uy()),r=Cr(t),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||e&&r.willChange==="filter"||e&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const u=r.contain;return u!=null&&u.includes(s)})}function hy(){return!/^((?!chrome|android).)*safari/i.test(uy())}function Gh(t){return["html","body","#document"].includes(Pi(t))}function dy(t){return Mi(t)?t:t.contextElement}const py={x:1,y:1};function rs(t){const e=dy(t);if(!Tr(e))return py;const r=e.getBoundingClientRect(),{width:o,height:s,fallback:u}=cy(e);let f=(u?mc(r.width):r.width)/o,h=(u?mc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),h&&Number.isFinite(h)||(h=1),{x:f,y:h}}function Ml(t,e,r,o){var s,u;e===void 0&&(e=!1),r===void 0&&(r=!1);const f=t.getBoundingClientRect(),h=dy(t);let d=py;e&&(o?Mi(o)&&(d=rs(o)):d=rs(t));const g=h?Un(h):window,v=!hy()&&r;let y=(f.left+(v&&((s=g.visualViewport)==null?void 0:s.offsetLeft)||0))/d.x,w=(f.top+(v&&((u=g.visualViewport)==null?void 0:u.offsetTop)||0))/d.y,_=f.width/d.x,M=f.height/d.y;if(h){const A=Un(h),L=o&&Mi(o)?Un(o):o;let T=A.frameElement;for(;T&&o&&L!==A;){const E=rs(T),O=T.getBoundingClientRect(),$=getComputedStyle(T);O.x+=(T.clientLeft+parseFloat($.paddingLeft))*E.x,O.y+=(T.clientTop+parseFloat($.paddingTop))*E.y,y*=E.x,w*=E.y,_*=E.x,M*=E.y,y+=O.x,w+=O.y,T=Un(T).frameElement}}return{width:_,height:M,top:w,right:y+_,bottom:w+M,left:y,x:y,y:w}}function Ni(t){return((fy(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yc(t){return Mi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function gy(t){return Ml(Ni(t)).left+Yc(t).scrollLeft}function Nl(t){if(Pi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||xv(t)&&t.host||Ni(t);return xv(e)?e.host:e}function vy(t){const e=Nl(t);return Gh(e)?e.ownerDocument.body:Tr(e)&&Xc(e)?e:vy(e)}function yc(t,e){var r;e===void 0&&(e=[]);const o=vy(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),u=Un(o);return s?e.concat(u,u.visualViewport||[],Xc(o)?o:[]):e.concat(o,yc(o))}function _v(t,e,r){return e==="viewport"?pl(function(o,s){const u=Un(o),f=Ni(o),h=u.visualViewport;let d=f.clientWidth,g=f.clientHeight,v=0,y=0;if(h){d=h.width,g=h.height;const w=hy();(w||!w&&s==="fixed")&&(v=h.offsetLeft,y=h.offsetTop)}return{width:d,height:g,x:v,y}}(t,r)):Mi(e)?pl(function(o,s){const u=Ml(o,!0,s==="fixed"),f=u.top+o.clientTop,h=u.left+o.clientLeft,d=Tr(o)?rs(o):{x:1,y:1};return{width:o.clientWidth*d.x,height:o.clientHeight*d.y,x:h*d.x,y:f*d.y}}(e,r)):pl(function(o){const s=Ni(o),u=Yc(o),f=o.ownerDocument.body,h=gl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),d=gl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let g=-u.scrollLeft+gy(o);const v=-u.scrollTop;return Cr(f).direction==="rtl"&&(g+=gl(s.clientWidth,f.clientWidth)-h),{width:h,height:d,x:g,y:v}}(Ni(t)))}function Sv(t){return Tr(t)&&Cr(t).position!=="fixed"?t.offsetParent:null}function kv(t){const e=Un(t);let r=Sv(t);for(;r&&EC(r)&&Cr(r).position==="static";)r=Sv(r);return r&&(Pi(r)==="html"||Pi(r)==="body"&&Cr(r).position==="static"&&!Jf(r))?e:r||function(o){let s=Nl(o);for(;Tr(s)&&!Gh(s);){if(Jf(s))return s;s=Nl(s)}return null}(t)||e}function LC(t,e,r){const o=Tr(e),s=Ni(e),u=Ml(t,!0,r==="fixed",e);let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Pi(e)!=="body"||Xc(s))&&(f=Yc(e)),Tr(e)){const d=Ml(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else s&&(h.x=gy(s));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}const AC={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:s}=t;const u=r==="clippingAncestors"?function(g,v){const y=v.get(g);if(y)return y;let w=yc(g).filter(L=>Mi(L)&&Pi(L)!=="body"),_=null;const M=Cr(g).position==="fixed";let A=M?Nl(g):g;for(;Mi(A)&&!Gh(A);){const L=Cr(A),T=Jf(A);(M?T||_:T||L.position!=="static"||!_||!["absolute","fixed"].includes(_.position))?_=L:w=w.filter(E=>E!==A),A=Nl(A)}return v.set(g,w),w}(e,this._c):[].concat(r),f=[...u,o],h=f[0],d=f.reduce((g,v)=>{const y=_v(e,v,s);return g.top=gl(y.top,g.top),g.right=wv(y.right,g.right),g.bottom=wv(y.bottom,g.bottom),g.left=gl(y.left,g.left),g},_v(e,h,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=Tr(r),u=Ni(r);if(r===u)return e;let f={scrollLeft:0,scrollTop:0},h={x:1,y:1};const d={x:0,y:0};if((s||!s&&o!=="fixed")&&((Pi(r)!=="body"||Xc(u))&&(f=Yc(r)),Tr(r))){const g=Ml(r);h=rs(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}return{width:e.width*h.x,height:e.height*h.y,x:e.x*h.x-f.scrollLeft*h.x+d.x,y:e.y*h.y-f.scrollTop*h.y+d.y}},isElement:Mi,getDimensions:function(t){return Tr(t)?cy(t):t.getBoundingClientRect()},getOffsetParent:kv,getDocumentElement:Ni,getScale:rs,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const s=this.getOffsetParent||kv,u=this.getDimensions;return{reference:LC(e,await s(r),o),floating:{x:0,y:0,...await u(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Cr(t).direction==="rtl"},MC=(t,e,r)=>{const o=new Map,s={platform:AC,...r},u={...s.platform,_c:o};return yC(t,e,{...s,platform:u})};function my(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?my(t[r],e[r]):t[r]=e[r])}const ur={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"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"],delay:{show:0,hide:400}}}};function $l(t,e){let r=ur.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=ur.themes[r.$extend]||{}:(r=null,o=ur[e]):r=null;while(r);return o}function NC(t){const e=[t];let r=ur.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=ur.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}function Cv(t){const e=[t];let r=ur.themes[t]||{};do r.$extend?(e.push(r.$extend),r=ur.themes[r.$extend]||{}):r=null;while(r);return e}let fs=!1;if(typeof window<"u"){fs=!1;try{const t=Object.defineProperty({},"passive",{get(){fs=!0}});window.addEventListener("test",null,t)}catch{}}let yy=!1;typeof window<"u"&&typeof navigator<"u"&&(yy=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const by=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),Tv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Ev={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Lv(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function vf(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const lr=[];let no=null;const Av={};function Mv(t){let e=Av[t];return e||(e=Av[t]=[]),e}let Qf=function(){};typeof window<"u"&&(Qf=window.Element);function se(t){return function(e){return $l(e.theme,t)}}const mf="__floating-vue__popper",wy=()=>he({name:"VPopper",provide(){return{[mf]:{parentPopper:this}}},inject:{[mf]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:se("disabled")},positioningDisabled:{type:Boolean,default:se("positioningDisabled")},placement:{type:String,default:se("placement"),validator:t=>by.includes(t)},delay:{type:[String,Number,Object],default:se("delay")},distance:{type:[Number,String],default:se("distance")},skidding:{type:[Number,String],default:se("skidding")},triggers:{type:Array,default:se("triggers")},showTriggers:{type:[Array,Function],default:se("showTriggers")},hideTriggers:{type:[Array,Function],default:se("hideTriggers")},popperTriggers:{type:Array,default:se("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:se("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:se("popperHideTriggers")},container:{type:[String,Object,Qf,Boolean],default:se("container")},boundary:{type:[String,Qf],default:se("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:se("strategy")},autoHide:{type:[Boolean,Function],default:se("autoHide")},handleResize:{type:Boolean,default:se("handleResize")},instantMove:{type:Boolean,default:se("instantMove")},eagerMount:{type:Boolean,default:se("eagerMount")},popperClass:{type:[String,Array,Object],default:se("popperClass")},computeTransformOrigin:{type:Boolean,default:se("computeTransformOrigin")},autoMinSize:{type:Boolean,default:se("autoMinSize")},autoSize:{type:[Boolean,String],default:se("autoSize")},autoMaxSize:{type:Boolean,default:se("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:se("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:se("preventOverflow")},overflowPadding:{type:[Number,String],default:se("overflowPadding")},arrowPadding:{type:[Number,String],default:se("arrowPadding")},arrowOverflow:{type:Boolean,default:se("arrowOverflow")},flip:{type:Boolean,default:se("flip")},shift:{type:Boolean,default:se("shift")},shiftCrossAxis:{type:Boolean,default:se("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:se("noAutoFocus")},disposeTimeout:{type:Number,default:se("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},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},randomId:`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},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:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[mf])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,e;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,e)=>(t[e]="$_computePosition",t),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:e=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:e=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:e}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,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.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(kC({mainAxis:this.distance,crossAxis:this.skidding}));const e=this.placement.startsWith("auto");if(e?t.middleware.push(xC({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(CC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!e&&this.flip&&t.middleware.push(_C({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(bC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:u})=>{let f;const{centerOffset:h}=u.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(h)>s.reference.width/2:f=Math.abs(h)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:s,placement:u,middlewareData:f})=>{var h;if((h=f.autoSize)!=null&&h.skip)return{};let d,g;return u.startsWith("top")||u.startsWith("bottom")?d=s.reference.width:g=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(TC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await MC(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(t,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),no&&this.instantMove&&no.instantMove&&no!==this.parentPopper){no.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,e=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(no=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await vf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...yc(this.$_referenceNode),...yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=e.x+e.width/2-(o.left+r.offsetLeft),u=e.y+e.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let r=0;r<lr.length;r++)e=lr[r],e.showGroup!==t&&(e.hide(),e.$emit("close-group"))}lr.push(this),document.body.classList.add("v-popper--some-open");for(const e of Cv(this.theme))Mv(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await vf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Lv(lr,this),lr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Cv(this.theme)){const o=Mv(r);Lv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}no===this&&(no=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=this.disposeTimeout;e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await vf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Tv,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Tv,this.popperTriggers,this.popperShowTriggers,t);const e=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Ev,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Ev,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(t,e,r){this.$_events.push({targetNodes:t,eventType:e,handler:r}),t.forEach(o=>o.addEventListener(e,r,fs?{passive:!0}:void 0))},$_registerTriggerListeners(t,e,r,o,s){let u=r;o!=null&&(u=typeof o=="function"?o(u):o),u.forEach(f=>{const h=e[f];h&&this.$_registerEventListeners(t,h,s)})},$_removeEventListeners(t){const e=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:u}=r;!t||t===s?o.forEach(f=>f.removeEventListener(s,u)):e.push(r)}),this.$_events=e},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(e,o))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const r in t){const o=t[r];o==null?e.removeAttribute(r):e.setAttribute(r,o)}},$_updateParentShownChildren(t){let e=this.parentPopper;for(;e;)t?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(vl>=t.left&&vl<=t.right&&ml>=t.top&&ml<=t.bottom){const e=this.$_popperNode.getBoundingClientRect(),r=vl-gi,o=ml-vi,s=e.left+e.width/2-gi+(e.top+e.height/2)-vi+e.width+e.height,u=gi+r*s,f=vi+o*s;return Ia(gi,vi,u,f,e.left,e.top,e.left,e.bottom)||Ia(gi,vi,u,f,e.left,e.top,e.right,e.top)||Ia(gi,vi,u,f,e.right,e.top,e.right,e.bottom)||Ia(gi,vi,u,f,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(yy){const t=fs?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",e=>Nv(e,!0),t),document.addEventListener("touchend",e=>$v(e,!0),t)}else window.addEventListener("mousedown",t=>Nv(t,!1),!0),window.addEventListener("click",t=>$v(t,!1),!0);window.addEventListener("resize",PC)}function Nv(t,e){if(ur.autoHideOnMousedown)xy(t,e);else for(let r=0;r<lr.length;r++){const o=lr[r];try{o.mouseDownContains=o.popperNode().contains(t.target)}catch{}}}function $v(t,e){ur.autoHideOnMousedown||xy(t,e)}function xy(t,e){const r={};for(let o=lr.length-1;o>=0;o--){const s=lr[o];try{const u=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(t.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Pv(s,u,t)){if(s.$_handleGlobalClose(t,e),!t.closeAllPopover&&t.closePopover&&u){let h=s.parentPopper;for(;h;)r[h.randomId]=!0,h=h.parentPopper;return}let f=s.parentPopper;for(;f&&Pv(f,f.containsGlobalTarget,t);)f.$_handleGlobalClose(t,e),f=f.parentPopper}})}catch{}}}function Pv(t,e,r){return r.closeAllPopover||r.closePopover&&e||$C(t,r)&&!e}function $C(t,e){if(typeof t.autoHide=="function"){const r=t.autoHide(e);return t.lastAutoHide=r,r}return t.autoHide}function PC(){for(let t=0;t<lr.length;t++)lr[t].$_computePosition()}let gi=0,vi=0,vl=0,ml=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{gi=vl,vi=ml,vl=t.clientX,ml=t.clientY},fs?{passive:!0}:void 0);function Ia(t,e,r,o,s,u,f,h){const d=((f-s)*(e-u)-(h-u)*(t-s))/((h-u)*(r-t)-(f-s)*(o-e)),g=((r-t)*(e-u)-(o-e)*(t-s))/((h-u)*(r-t)-(f-s)*(o-e));return d>=0&&d<=1&&g>=0&&g<=1}const OC={extends:wy()},Zc=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r};function RC(t,e,r,o,s,u){return at(),St("div",{ref:"reference",class:ge(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Gn(t.$slots,"default",Ox(q0(t.slotData)))],2)}const DC=Zc(OC,[["render",RC]]);function zC(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}let tc;function th(){th.init||(th.init=!0,tc=zC()!==-1)}var Jc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){th(),jr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",tc&&this.$el.appendChild(t),t.data="about:blank",tc||this.$el.appendChild(t)},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&&(!tc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const IC=y_();g0("data-v-b329ee4c");const FC={class:"resize-observer",tabindex:"-1"};v0();const HC=IC((t,e,r,o,s,u)=>(at(),ne("div",FC)));Jc.render=HC;Jc.__scopeId="data-v-b329ee4c";Jc.__file="src/components/ResizeObserver.vue";const _y=(t="theme")=>({computed:{themeClass(){return NC(this[t])}}}),qC=he({name:"VPopperContent",components:{ResizeObserver:Jc},mixins:[_y()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),BC=["id","aria-hidden","tabindex","data-popper-placement"],WC={ref:"inner",class:"v-popper__inner"},UC=tt("div",{class:"v-popper__arrow-outer"},null,-1),VC=tt("div",{class:"v-popper__arrow-inner"},null,-1),GC=[UC,VC];function jC(t,e,r,o,s,u){const f=fo("ResizeObserver");return at(),St("div",{id:t.popperId,ref:"popover",class:ge(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:An(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:e[2]||(e[2]=jf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[tt("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=h=>t.autoHide&&t.$emit("hide"))}),tt("div",{class:"v-popper__wrapper",style:An(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[tt("div",WC,[t.mounted?(at(),St(ie,{key:0},[tt("div",null,[Gn(t.$slots,"default")]),t.handleResize?(at(),ne(f,{key:0,onNotify:e[1]||(e[1]=h=>t.$emit("resize",h))})):Xt("",!0)],64)):Xt("",!0)],512),tt("div",{ref:"arrow",class:"v-popper__arrow-container",style:An(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},GC,4)],4)],46,BC)}const Sy=Zc(qC,[["render",jC]]),ky={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let eh=function(){};typeof window<"u"&&(eh=window.Element);const KC=he({name:"VPopperWrapper",components:{Popper:DC,PopperContent:Sy},mixins:[ky,_y("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,eh,Boolean],default:void 0},boundary:{type:[String,eh],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function XC(t,e,r,o,s,u){const f=fo("PopperContent"),h=fo("Popper");return at(),ne(h,Ai({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:e[0]||(e[0]=()=>t.$emit("show")),onHide:e[1]||(e[1]=()=>t.$emit("hide")),"onUpdate:shown":e[2]||(e[2]=d=>t.$emit("update:shown",d)),onApplyShow:e[3]||(e[3]=()=>t.$emit("apply-show")),onApplyHide:e[4]||(e[4]=()=>t.$emit("apply-hide")),onCloseGroup:e[5]||(e[5]=()=>t.$emit("close-group")),onCloseDirective:e[6]||(e[6]=()=>t.$emit("close-directive")),onAutoHide:e[7]||(e[7]=()=>t.$emit("auto-hide")),onResize:e[8]||(e[8]=()=>t.$emit("resize"))}),{default:re(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:y,autoHide:w,show:_,hide:M,handleResize:A,onResize:L,classes:T,result:E})=>[Gn(t.$slots,"default",{shown:g,show:_,hide:M}),Ht(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":y,"auto-hide":w,"handle-resize":A,classes:T,result:E,onHide:M,onResize:L},{default:re(()=>[Gn(t.$slots,"popper",{shown:g,hide:M})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const jh=Zc(KC,[["render",XC]]),YC={...jh,name:"VDropdown",vPopperTheme:"dropdown"},ZC={...jh,name:"VMenu",vPopperTheme:"menu"},Cy={...jh,name:"VTooltip",vPopperTheme:"tooltip"},JC=he({name:"VTooltipDirective",components:{Popper:wy(),PopperContent:Sy},mixins:[ky],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>$l(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>$l(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},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(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(e,o)):this.onResult(e,r)}},onResult(t,e){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=e)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),QC=["innerHTML"],tT=["textContent"];function eT(t,e,r,o,s,u){const f=fo("PopperContent"),h=fo("Popper");return at(),ne(h,Ai({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:re(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:y,autoHide:w,hide:_,handleResize:M,onResize:A,classes:L,result:T})=>[Ht(f,{ref:"popperContent",class:ge({"v-popper--tooltip-loading":t.loading}),"popper-id":d,theme:t.theme,shown:g,mounted:v,"skip-transition":y,"auto-hide":w,"handle-resize":M,classes:L,result:T,onHide:_,onResize:A},{default:re(()=>[t.html?(at(),St("div",{key:0,innerHTML:t.finalContent},null,8,QC)):(at(),St("div",{key:1,textContent:jt(t.finalContent)},null,8,tT))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const nT=Zc(JC,[["render",eT]]),Ty="v-popper--has-tooltip";function rT(t,e){let r=t.placement;if(!r&&e)for(const o of by)e[o]&&(r=o);return r||(r=$l(t.theme||"tooltip","placement")),r}function Ey(t,e,r){let o;const s=typeof e;return s==="string"?o={content:e}:e&&s==="object"?o=e:o={content:!1},o.placement=rT(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let yf,Pl,iT=0;function oT(){if(yf)return;Pl=te([]),yf=K0({name:"VTooltipDirectiveApp",setup(){return{directives:Pl}},render(){return this.directives.map(e=>Vl(nT,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),yf.mount(t)}function Ly(t,e,r){oT();const o=te(Ey(t,e,r)),s=te(!1),u={id:iT++,options:o,shown:s};return Pl.value.push(u),t.classList&&t.classList.add(Ty),t.$_popper={options:o,item:u,show(){s.value=!0},hide(){s.value=!1}}}function Kh(t){if(t.$_popper){const e=Pl.value.indexOf(t.$_popper.item);e!==-1&&Pl.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(Ty)}function Ov(t,{value:e,modifiers:r}){const o=Ey(t,e,r);if(!o.content||$l(o.theme||"tooltip","disabled"))Kh(t);else{let s;t.$_popper?(s=t.$_popper,s.options.value=o):s=Ly(t,e,r),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?s.show():s.hide())}}const Ay={beforeMount:Ov,updated:Ov,beforeUnmount(t){Kh(t)}};function Rv(t){t.addEventListener("mousedown",bc),t.addEventListener("click",bc),t.addEventListener("touchstart",My,fs?{passive:!0}:!1)}function Dv(t){t.removeEventListener("mousedown",bc),t.removeEventListener("click",bc),t.removeEventListener("touchstart",My),t.removeEventListener("touchend",Ny),t.removeEventListener("touchcancel",$y)}function bc(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function My(t){if(t.changedTouches.length===1){const e=t.currentTarget;e.$_vclosepopover_touch=!0;const r=t.changedTouches[0];e.$_vclosepopover_touchPoint=r,e.addEventListener("touchend",Ny),e.addEventListener("touchcancel",$y)}}function Ny(t){const e=t.currentTarget;if(e.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function $y(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}const sT={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&Rv(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?Rv(t):Dv(t))},beforeUnmount(t){Dv(t)}},lT=Ay,aT=Cy;function cT(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,my(ur,e),t.directive("tooltip",Ay),t.directive("close-popper",sT),t.component("VTooltip",Cy),t.component("VDropdown",YC),t.component("VMenu",ZC))}const Py={version:"5.2.2",install:cT,options:ur},uT=6e4;function Oy(t){return t}const fT=Oy,{clearTimeout:hT,setTimeout:dT}=globalThis,pT=Math.random.bind(Math);function gT(t,e){const{post:r,on:o,eventNames:s=[],serialize:u=Oy,deserialize:f=fT,resolver:h,timeout:d=uT}=e,g=new Map;let v;const y=new Proxy({},{get(w,_){if(_==="$functions")return t;if(_==="then"&&!s.includes("then")&&!("then"in t))return;const M=(...L)=>{r(u({m:_,a:L,t:"q"}))};if(s.includes(_))return M.asEvent=M,M;const A=async(...L)=>(await v,new Promise((T,E)=>{var F;const O=mT();let $;d>=0&&($=dT(()=>{var H;try{throw(H=e.onTimeoutError)==null||H.call(e,_,L),new Error(`[birpc] timeout on calling "${_}"`)}catch(ct){E(ct)}g.delete(O)},d),typeof $=="object"&&($=(F=$.unref)==null?void 0:F.call($))),g.set(O,{resolve:T,reject:E,timeoutId:$}),r(u({m:_,a:L,i:O,t:"q"}))}));return A.asEvent=M,A}});return v=o(async(w,..._)=>{const M=f(w);if(M.t==="q"){const{m:A,a:L}=M;let T,E;const O=h?h(A,t[A]):t[A];if(!O)E=new Error(`[birpc] function "${A}" not found`);else try{T=await O.apply(y,L)}catch($){E=$}M.i&&(E&&e.onError&&e.onError(E,A,L),r(u({t:"s",i:M.i,r:T,e:E}),..._))}else{const{i:A,r:L,e:T}=M,E=g.get(A);E&&(hT(E.timeoutId),T?E.reject(T):E.resolve(L)),g.delete(A)}}),y}const vT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function mT(t=21){let e="",r=t;for(;r--;)e+=vT[pT()*64|0];return e}const{parse:yT,stringify:bT}=JSON,{keys:wT}=Object,Ol=String,Ry="string",zv={},wc="object",Dy=(t,e)=>e,xT=t=>t instanceof Ol?Ol(t):t,_T=(t,e)=>typeof e===Ry?new Ol(e):e,zy=(t,e,r,o)=>{const s=[];for(let u=wT(r),{length:f}=u,h=0;h<f;h++){const d=u[h],g=r[d];if(g instanceof Ol){const v=t[g];typeof v===wc&&!e.has(v)?(e.add(v),r[d]=zv,s.push({k:d,a:[t,e,v,o]})):r[d]=o.call(r,d,v)}else r[d]!==zv&&(r[d]=o.call(r,d,g))}for(let{length:u}=s,f=0;f<u;f++){const{k:h,a:d}=s[f];r[h]=o.call(r,h,zy.apply(null,d))}return r},Iv=(t,e,r)=>{const o=Ol(e.push(r)-1);return t.set(r,o),o},nh=(t,e)=>{const r=yT(t,_T).map(xT),o=r[0],s=e||Dy,u=typeof o===wc&&o?zy(r,new Set,o,s):o;return s.call({"":u},"",u)},ST=(t,e,r)=>{const o=e&&typeof e===wc?(v,y)=>v===""||-1<e.indexOf(v)?y:void 0:e||Dy,s=new Map,u=[],f=[];let h=+Iv(s,u,o.call({"":t},"",t)),d=!h;for(;h<u.length;)d=!0,f[h]=bT(u[h++],g,r);return"["+f.join(",")+"]";function g(v,y){if(d)return d=!d,y;const w=o.call(this,v,y);switch(typeof w){case wc:if(w===null)return w;case Ry:return s.get(w)||Iv(s,u,w)}return w}},kT=/^[A-Za-z]:\//;function CT(t=""){return t&&t.replace(/\\/g,"/").replace(kT,e=>e.toUpperCase())}const TT=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Fv=/^\/([A-Za-z]:)?$/;function ET(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Hv=function(...t){t=t.map(o=>CT(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:ET();!s||s.length===0||(e=`${s}/${e}`,r=qv(s))}return e=LT(e,!r),r&&!qv(e)?`/${e}`:e.length>0?e:"."};function LT(t,e){let r="",o=0,s=-1,u=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===h-1||u===1))if(u===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,u=0;continue}else if(r.length>0){r="",o=0,s=h,u=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const qv=function(t){return TT.test(t)},Iy=function(t,e){const r=Hv(t).replace(Fv,"$1").split("/"),o=Hv(e).replace(Fv,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const u of s){if(o[0]!==u)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function AT(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class Fy{constructor(){Zi(this,"filesMap",new Map);Zi(this,"pathsSet",new Set);Zi(this,"idMap",new Map);Zi(this,"taskFileMap",new WeakMap);Zi(this,"errorsSet",new Set);Zi(this,"processTimeoutCauses",new Set)}catchError(e,r){if(AT(e))return e.errors.forEach(s=>this.catchError(s,r));e===Object(e)?e.type=r:e={type:r,message:e};const o=e;if(o&&typeof o=="object"&&o.code==="VITEST_PENDING"){const s=this.idMap.get(o.taskId);s&&(s.mode="skip",s.result??(s.result={state:"skip"}),s.result.state="skip");return}this.errorsSet.add(e)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(e){this.processTimeoutCauses.add(e)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(e){return e?e.map(r=>this.filesMap.get(r)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).map(e=>e.filepath)}collectPaths(e=[]){e.forEach(r=>{this.pathsSet.add(r)})}collectFiles(e=[]){e.forEach(r=>{const s=(this.filesMap.get(r.filepath)||[]).filter(u=>u.projectName!==r.projectName);s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(e,r=[]){const o=e;r.forEach(s=>{const u=this.filesMap.get(s);if(!u)return;const f=u.filter(h=>h.projectName!==o.config.name);f.length?this.filesMap.set(s,f):this.filesMap.delete(s)})}updateId(e){this.idMap.get(e.id)!==e&&(this.idMap.set(e.id,e),e.type==="suite"&&e.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(e){for(const[r,o,s]of e){const u=this.idMap.get(r);u&&(u.result=o,u.meta=s,(o==null?void 0:o.state)==="skip"&&(u.mode="skip"))}}updateUserLog(e){const r=e.taskId&&this.idMap.get(e.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(e))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(e,r,o){this.collectFiles(e.map(s=>{const u={filepath:s,name:Iy(r,s),id:s,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:o,file:null};return u.file=u,u}))}}var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function qy(t){return t!=null}function By(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function MT(t){let e=0;if(t.length===0)return`${e}`;for(let r=0;r<t.length;r++){const o=t.charCodeAt(r);e=(e<<5)-e+o,e=e&e}return`${e}`}function rh(t){return t.type==="test"||t.type==="custom"}function Wy(t){const e=[],r=By(t);for(const o of r)if(rh(o))e.push(o);else for(const s of o.tasks)if(rh(s))e.push(s);else{const u=Wy(s);for(const f of u)e.push(f)}return e}function Xh(t=[]){return By(t).flatMap(e=>rh(e)?[e]:[e,...Xh(e.tasks)])}function NT(t){const e=[t.name];let r=t;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&e.unshift(r.name);return r!==t.file&&e.unshift(t.file.name),e}function Qc(t){return Wy(t).some(e=>{var r,o;return(o=(r=e.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function $T(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:u=10,connectTimeout:f=6e4,reactive:h=E=>E,WebSocketConstructor:d=globalThis.WebSocket}=e;let g=u;const v=h({ws:new d(t),state:new Fy,waitForConnection:T,reconnect:A});v.state.filesMap=h(v.state.filesMap),v.state.idMap=h(v.state.idMap);let y;const w={onPathsCollected(E){var O;v.state.collectPaths(E),(O=r.onPathsCollected)==null||O.call(r,E)},onCollected(E){var O;v.state.collectFiles(E),(O=r.onCollected)==null||O.call(r,E)},onTaskUpdate(E){var O;v.state.updateTasks(E),(O=r.onTaskUpdate)==null||O.call(r,E)},onUserConsoleLog(E){v.state.updateUserLog(E)},onFinished(E,O){var $;($=r.onFinished)==null||$.call(r,E,O)},onFinishedReportCoverage(){var E;(E=r.onFinishedReportCoverage)==null||E.call(r)},onCancel(E){var O;(O=r.onCancel)==null||O.call(r,E)}},_={post:E=>v.ws.send(E),on:E=>y=E,serialize:ST,deserialize:nh,onTimeoutError(E){throw new Error(`[vitest-ws-client]: Timeout calling "${E}"`)}};v.rpc=gT(w,_);let M;function A(E=!1){E&&(g=u),v.ws=new d(t),L()}function L(){M=new Promise((E,O)=>{var F,H;const $=(H=(F=setTimeout(()=>{O(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:F.unref)==null?void 0:H.call(F);v.ws.OPEN===v.ws.readyState&&E(),v.ws.addEventListener("open",()=>{g=u,E(),clearTimeout($)})}),v.ws.addEventListener("message",E=>{y(E.data)}),v.ws.addEventListener("close",()=>{g-=1,o&&g>0&&setTimeout(A,s)})}L();function T(){return M}return v}const PT=location.port,OT=[location.hostname,PT].filter(Boolean).join(":"),RT=`${location.protocol==="https:"?"wss:":"ws:"}//${OT}/__vitest_api__`,Kr=!!window.METADATA_PATH;var Uy={},Gr={};const DT="Á",zT="á",IT="Ă",FT="ă",HT="∾",qT="∿",BT="∾̳",WT="Â",UT="â",VT="´",GT="А",jT="а",KT="Æ",XT="æ",YT="",ZT="𝔄",JT="𝔞",QT="À",tE="à",eE="ℵ",nE="ℵ",rE="Α",iE="α",oE="Ā",sE="ā",lE="⨿",aE="&",cE="&",uE="⩕",fE="⩓",hE="∧",dE="⩜",pE="⩘",gE="⩚",vE="∠",mE="⦤",yE="∠",bE="⦨",wE="⦩",xE="⦪",_E="⦫",SE="⦬",kE="⦭",CE="⦮",TE="⦯",EE="∡",LE="∟",AE="⊾",ME="⦝",NE="∢",$E="Å",PE="⍼",OE="Ą",RE="ą",DE="𝔸",zE="𝕒",IE="⩯",FE="≈",HE="⩰",qE="≊",BE="≋",WE="'",UE="",VE="≈",GE="≊",jE="Å",KE="å",XE="𝒜",YE="𝒶",ZE="≔",JE="*",QE="≈",tL="≍",eL="Ã",nL="ã",rL="Ä",iL="ä",oL="∳",sL="⨑",lL="≌",aL="϶",cL="‵",uL="∽",fL="⋍",hL="∖",dL="⫧",pL="⊽",gL="⌅",vL="⌆",mL="⌅",yL="⎵",bL="⎶",wL="≌",xL="Б",_L="б",SL="„",kL="∵",CL="∵",TL="∵",EL="⦰",LL="϶",AL="ℬ",ML="ℬ",NL="Β",$L="β",PL="ℶ",OL="≬",RL="𝔅",DL="𝔟",zL="⋂",IL="◯",FL="⋃",HL="⨀",qL="⨁",BL="⨂",WL="⨆",UL="★",VL="▽",GL="△",jL="⨄",KL="⋁",XL="⋀",YL="⤍",ZL="⧫",JL="▪",QL="▴",tA="▾",eA="◂",nA="▸",rA="␣",iA="▒",oA="░",sA="▓",lA="█",aA="=⃥",cA="≡⃥",uA="⫭",fA="⌐",hA="𝔹",dA="𝕓",pA="⊥",gA="⊥",vA="⋈",mA="⧉",yA="┐",bA="╕",wA="╖",xA="╗",_A="┌",SA="╒",kA="╓",CA="╔",TA="─",EA="═",LA="┬",AA="╤",MA="╥",NA="╦",$A="┴",PA="╧",OA="╨",RA="╩",DA="⊟",zA="⊞",IA="⊠",FA="┘",HA="╛",qA="╜",BA="╝",WA="└",UA="╘",VA="╙",GA="╚",jA="│",KA="║",XA="┼",YA="╪",ZA="╫",JA="╬",QA="┤",tM="╡",eM="╢",nM="╣",rM="├",iM="╞",oM="╟",sM="╠",lM="‵",aM="˘",cM="˘",uM="¦",fM="𝒷",hM="ℬ",dM="⁏",pM="∽",gM="⋍",vM="⧅",mM="\\",yM="⟈",bM="•",wM="•",xM="≎",_M="⪮",SM="≏",kM="≎",CM="≏",TM="Ć",EM="ć",LM="⩄",AM="⩉",MM="⩋",NM="∩",$M="⋒",PM="⩇",OM="⩀",RM="ⅅ",DM="∩︀",zM="⁁",IM="ˇ",FM="ℭ",HM="⩍",qM="Č",BM="č",WM="Ç",UM="ç",VM="Ĉ",GM="ĉ",jM="∰",KM="⩌",XM="⩐",YM="Ċ",ZM="ċ",JM="¸",QM="¸",tN="⦲",eN="¢",nN="·",rN="·",iN="𝔠",oN="ℭ",sN="Ч",lN="ч",aN="✓",cN="✓",uN="Χ",fN="χ",hN="ˆ",dN="≗",pN="↺",gN="↻",vN="⊛",mN="⊚",yN="⊝",bN="⊙",wN="®",xN="Ⓢ",_N="⊖",SN="⊕",kN="⊗",CN="○",TN="⧃",EN="≗",LN="⨐",AN="⫯",MN="⧂",NN="∲",$N="”",PN="’",ON="♣",RN="♣",DN=":",zN="∷",IN="⩴",FN="≔",HN="≔",qN=",",BN="@",WN="∁",UN="∘",VN="∁",GN="ℂ",jN="≅",KN="⩭",XN="≡",YN="∮",ZN="∯",JN="∮",QN="𝕔",t$="ℂ",e$="∐",n$="∐",r$="©",i$="©",o$="℗",s$="∳",l$="↵",a$="✗",c$="⨯",u$="𝒞",f$="𝒸",h$="⫏",d$="⫑",p$="⫐",g$="⫒",v$="⋯",m$="⤸",y$="⤵",b$="⋞",w$="⋟",x$="↶",_$="⤽",S$="⩈",k$="⩆",C$="≍",T$="∪",E$="⋓",L$="⩊",A$="⊍",M$="⩅",N$="∪︀",$$="↷",P$="⤼",O$="⋞",R$="⋟",D$="⋎",z$="⋏",I$="¤",F$="↶",H$="↷",q$="⋎",B$="⋏",W$="∲",U$="∱",V$="⌭",G$="†",j$="‡",K$="ℸ",X$="↓",Y$="↡",Z$="⇓",J$="‐",Q$="⫤",tP="⊣",eP="⤏",nP="˝",rP="Ď",iP="ď",oP="Д",sP="д",lP="‡",aP="⇊",cP="ⅅ",uP="ⅆ",fP="⤑",hP="⩷",dP="°",pP="∇",gP="Δ",vP="δ",mP="⦱",yP="⥿",bP="𝔇",wP="𝔡",xP="⥥",_P="⇃",SP="⇂",kP="´",CP="˙",TP="˝",EP="`",LP="˜",AP="⋄",MP="⋄",NP="⋄",$P="♦",PP="♦",OP="¨",RP="ⅆ",DP="ϝ",zP="⋲",IP="÷",FP="÷",HP="⋇",qP="⋇",BP="Ђ",WP="ђ",UP="⌞",VP="⌍",GP="$",jP="𝔻",KP="𝕕",XP="¨",YP="˙",ZP="⃜",JP="≐",QP="≑",tO="≐",eO="∸",nO="∔",rO="⊡",iO="⌆",oO="∯",sO="¨",lO="⇓",aO="⇐",cO="⇔",uO="⫤",fO="⟸",hO="⟺",dO="⟹",pO="⇒",gO="⊨",vO="⇑",mO="⇕",yO="∥",bO="⤓",wO="↓",xO="↓",_O="⇓",SO="⇵",kO="̑",CO="⇊",TO="⇃",EO="⇂",LO="⥐",AO="⥞",MO="⥖",NO="↽",$O="⥟",PO="⥗",OO="⇁",RO="↧",DO="⊤",zO="⤐",IO="⌟",FO="⌌",HO="𝒟",qO="𝒹",BO="Ѕ",WO="ѕ",UO="⧶",VO="Đ",GO="đ",jO="⋱",KO="▿",XO="▾",YO="⇵",ZO="⥯",JO="⦦",QO="Џ",tR="џ",eR="⟿",nR="É",rR="é",iR="⩮",oR="Ě",sR="ě",lR="Ê",aR="ê",cR="≖",uR="≕",fR="Э",hR="э",dR="⩷",pR="Ė",gR="ė",vR="≑",mR="ⅇ",yR="≒",bR="𝔈",wR="𝔢",xR="⪚",_R="È",SR="è",kR="⪖",CR="⪘",TR="⪙",ER="∈",LR="⏧",AR="ℓ",MR="⪕",NR="⪗",$R="Ē",PR="ē",OR="∅",RR="∅",DR="◻",zR="∅",IR="▫",FR=" ",HR=" ",qR=" ",BR="Ŋ",WR="ŋ",UR=" ",VR="Ę",GR="ę",jR="𝔼",KR="𝕖",XR="⋕",YR="⧣",ZR="⩱",JR="ε",QR="Ε",tD="ε",eD="ϵ",nD="≖",rD="≕",iD="≂",oD="⪖",sD="⪕",lD="⩵",aD="=",cD="≂",uD="≟",fD="⇌",hD="≡",dD="⩸",pD="⧥",gD="⥱",vD="≓",mD="ℯ",yD="ℰ",bD="≐",wD="⩳",xD="≂",_D="Η",SD="η",kD="Ð",CD="ð",TD="Ë",ED="ë",LD="€",AD="!",MD="∃",ND="∃",$D="ℰ",PD="ⅇ",OD="ⅇ",RD="≒",DD="Ф",zD="ф",ID="♀",FD="ffi",HD="ff",qD="ffl",BD="𝔉",WD="𝔣",UD="fi",VD="◼",GD="▪",jD="fj",KD="♭",XD="fl",YD="▱",ZD="ƒ",JD="𝔽",QD="𝕗",t2="∀",e2="∀",n2="⋔",r2="⫙",i2="ℱ",o2="⨍",s2="½",l2="⅓",a2="¼",c2="⅕",u2="⅙",f2="⅛",h2="⅔",d2="⅖",p2="¾",g2="⅗",v2="⅜",m2="⅘",y2="⅚",b2="⅝",w2="⅞",x2="⁄",_2="⌢",S2="𝒻",k2="ℱ",C2="ǵ",T2="Γ",E2="γ",L2="Ϝ",A2="ϝ",M2="⪆",N2="Ğ",$2="ğ",P2="Ģ",O2="Ĝ",R2="ĝ",D2="Г",z2="г",I2="Ġ",F2="ġ",H2="≥",q2="≧",B2="⪌",W2="⋛",U2="≥",V2="≧",G2="⩾",j2="⪩",K2="⩾",X2="⪀",Y2="⪂",Z2="⪄",J2="⋛︀",Q2="⪔",tz="𝔊",ez="𝔤",nz="≫",rz="⋙",iz="⋙",oz="ℷ",sz="Ѓ",lz="ѓ",az="⪥",cz="≷",uz="⪒",fz="⪤",hz="⪊",dz="⪊",pz="⪈",gz="≩",vz="⪈",mz="≩",yz="⋧",bz="𝔾",wz="𝕘",xz="`",_z="≥",Sz="⋛",kz="≧",Cz="⪢",Tz="≷",Ez="⩾",Lz="≳",Az="𝒢",Mz="ℊ",Nz="≳",$z="⪎",Pz="⪐",Oz="⪧",Rz="⩺",Dz=">",zz=">",Iz="≫",Fz="⋗",Hz="⦕",qz="⩼",Bz="⪆",Wz="⥸",Uz="⋗",Vz="⋛",Gz="⪌",jz="≷",Kz="≳",Xz="≩︀",Yz="≩︀",Zz="ˇ",Jz=" ",Qz="½",tI="ℋ",eI="Ъ",nI="ъ",rI="⥈",iI="↔",oI="⇔",sI="↭",lI="^",aI="ℏ",cI="Ĥ",uI="ĥ",fI="♥",hI="♥",dI="…",pI="⊹",gI="𝔥",vI="ℌ",mI="ℋ",yI="⤥",bI="⤦",wI="⇿",xI="∻",_I="↩",SI="↪",kI="𝕙",CI="ℍ",TI="―",EI="─",LI="𝒽",AI="ℋ",MI="ℏ",NI="Ħ",$I="ħ",PI="≎",OI="≏",RI="⁃",DI="‐",zI="Í",II="í",FI="",HI="Î",qI="î",BI="И",WI="и",UI="İ",VI="Е",GI="е",jI="¡",KI="⇔",XI="𝔦",YI="ℑ",ZI="Ì",JI="ì",QI="ⅈ",tF="⨌",eF="∭",nF="⧜",rF="℩",iF="IJ",oF="ij",sF="Ī",lF="ī",aF="ℑ",cF="ⅈ",uF="ℐ",fF="ℑ",hF="ı",dF="ℑ",pF="⊷",gF="Ƶ",vF="⇒",mF="℅",yF="∞",bF="⧝",wF="ı",xF="⊺",_F="∫",SF="∬",kF="ℤ",CF="∫",TF="⊺",EF="⋂",LF="⨗",AF="⨼",MF="",NF="",$F="Ё",PF="ё",OF="Į",RF="į",DF="𝕀",zF="𝕚",IF="Ι",FF="ι",HF="⨼",qF="¿",BF="𝒾",WF="ℐ",UF="∈",VF="⋵",GF="⋹",jF="⋴",KF="⋳",XF="∈",YF="",ZF="Ĩ",JF="ĩ",QF="І",tH="і",eH="Ï",nH="ï",rH="Ĵ",iH="ĵ",oH="Й",sH="й",lH="𝔍",aH="𝔧",cH="ȷ",uH="𝕁",fH="𝕛",hH="𝒥",dH="𝒿",pH="Ј",gH="ј",vH="Є",mH="є",yH="Κ",bH="κ",wH="ϰ",xH="Ķ",_H="ķ",SH="К",kH="к",CH="𝔎",TH="𝔨",EH="ĸ",LH="Х",AH="х",MH="Ќ",NH="ќ",$H="𝕂",PH="𝕜",OH="𝒦",RH="𝓀",DH="⇚",zH="Ĺ",IH="ĺ",FH="⦴",HH="ℒ",qH="Λ",BH="λ",WH="⟨",UH="⟪",VH="⦑",GH="⟨",jH="⪅",KH="ℒ",XH="«",YH="⇤",ZH="⤟",JH="←",QH="↞",tq="⇐",eq="⤝",nq="↩",rq="↫",iq="⤹",oq="⥳",sq="↢",lq="⤙",aq="⤛",cq="⪫",uq="⪭",fq="⪭︀",hq="⤌",dq="⤎",pq="❲",gq="{",vq="[",mq="⦋",yq="⦏",bq="⦍",wq="Ľ",xq="ľ",_q="Ļ",Sq="ļ",kq="⌈",Cq="{",Tq="Л",Eq="л",Lq="⤶",Aq="“",Mq="„",Nq="⥧",$q="⥋",Pq="↲",Oq="≤",Rq="≦",Dq="⟨",zq="⇤",Iq="←",Fq="←",Hq="⇐",qq="⇆",Bq="↢",Wq="⌈",Uq="⟦",Vq="⥡",Gq="⥙",jq="⇃",Kq="⌊",Xq="↽",Yq="↼",Zq="⇇",Jq="↔",Qq="↔",tB="⇔",eB="⇆",nB="⇋",rB="↭",iB="⥎",oB="↤",sB="⊣",lB="⥚",aB="⋋",cB="⧏",uB="⊲",fB="⊴",hB="⥑",dB="⥠",pB="⥘",gB="↿",vB="⥒",mB="↼",yB="⪋",bB="⋚",wB="≤",xB="≦",_B="⩽",SB="⪨",kB="⩽",CB="⩿",TB="⪁",EB="⪃",LB="⋚︀",AB="⪓",MB="⪅",NB="⋖",$B="⋚",PB="⪋",OB="⋚",RB="≦",DB="≶",zB="≶",IB="⪡",FB="≲",HB="⩽",qB="≲",BB="⥼",WB="⌊",UB="𝔏",VB="𝔩",GB="≶",jB="⪑",KB="⥢",XB="↽",YB="↼",ZB="⥪",JB="▄",QB="Љ",t3="љ",e3="⇇",n3="≪",r3="⋘",i3="⌞",o3="⇚",s3="⥫",l3="◺",a3="Ŀ",c3="ŀ",u3="⎰",f3="⎰",h3="⪉",d3="⪉",p3="⪇",g3="≨",v3="⪇",m3="≨",y3="⋦",b3="⟬",w3="⇽",x3="⟦",_3="⟵",S3="⟵",k3="⟸",C3="⟷",T3="⟷",E3="⟺",L3="⟼",A3="⟶",M3="⟶",N3="⟹",$3="↫",P3="↬",O3="⦅",R3="𝕃",D3="𝕝",z3="⨭",I3="⨴",F3="∗",H3="_",q3="↙",B3="↘",W3="◊",U3="◊",V3="⧫",G3="(",j3="⦓",K3="⇆",X3="⌟",Y3="⇋",Z3="⥭",J3="",Q3="⊿",t5="‹",e5="𝓁",n5="ℒ",r5="↰",i5="↰",o5="≲",s5="⪍",l5="⪏",a5="[",c5="‘",u5="‚",f5="Ł",h5="ł",d5="⪦",p5="⩹",g5="<",v5="<",m5="≪",y5="⋖",b5="⋋",w5="⋉",x5="⥶",_5="⩻",S5="◃",k5="⊴",C5="◂",T5="⦖",E5="⥊",L5="⥦",A5="≨︀",M5="≨︀",N5="¯",$5="♂",P5="✠",O5="✠",R5="↦",D5="↦",z5="↧",I5="↤",F5="↥",H5="▮",q5="⨩",B5="М",W5="м",U5="—",V5="∺",G5="∡",j5=" ",K5="ℳ",X5="𝔐",Y5="𝔪",Z5="℧",J5="µ",Q5="*",t8="⫰",e8="∣",n8="·",r8="⊟",i8="−",o8="∸",s8="⨪",l8="∓",a8="⫛",c8="…",u8="∓",f8="⊧",h8="𝕄",d8="𝕞",p8="∓",g8="𝓂",v8="ℳ",m8="∾",y8="Μ",b8="μ",w8="⊸",x8="⊸",_8="∇",S8="Ń",k8="ń",C8="∠⃒",T8="≉",E8="⩰̸",L8="≋̸",A8="ʼn",M8="≉",N8="♮",$8="ℕ",P8="♮",O8=" ",R8="≎̸",D8="≏̸",z8="⩃",I8="Ň",F8="ň",H8="Ņ",q8="ņ",B8="≇",W8="⩭̸",U8="⩂",V8="Н",G8="н",j8="–",K8="⤤",X8="↗",Y8="⇗",Z8="↗",J8="≠",Q8="≐̸",tW="",eW="",nW="",rW="",iW="≢",oW="⤨",sW="≂̸",lW="≫",aW="≪",cW=`
|
|
22
|
-
`,uW="∄",fW="∄",hW="𝔑",dW="𝔫",pW="≧̸",gW="≱",vW="≱",mW="≧̸",yW="⩾̸",bW="⩾̸",wW="⋙̸",xW="≵",_W="≫⃒",SW="≯",kW="≯",CW="≫̸",TW="↮",EW="⇎",LW="⫲",AW="∋",MW="⋼",NW="⋺",$W="∋",PW="Њ",OW="њ",RW="↚",DW="⇍",zW="‥",IW="≦̸",FW="≰",HW="↚",qW="⇍",BW="↮",WW="⇎",UW="≰",VW="≦̸",GW="⩽̸",jW="⩽̸",KW="≮",XW="⋘̸",YW="≴",ZW="≪⃒",JW="≮",QW="⋪",tU="⋬",eU="≪̸",nU="∤",rU="",iU=" ",oU="𝕟",sU="ℕ",lU="⫬",aU="¬",cU="≢",uU="≭",fU="∦",hU="∉",dU="≠",pU="≂̸",gU="∄",vU="≯",mU="≱",yU="≧̸",bU="≫̸",wU="≹",xU="⩾̸",_U="≵",SU="≎̸",kU="≏̸",CU="∉",TU="⋵̸",EU="⋹̸",LU="∉",AU="⋷",MU="⋶",NU="⧏̸",$U="⋪",PU="⋬",OU="≮",RU="≰",DU="≸",zU="≪̸",IU="⩽̸",FU="≴",HU="⪢̸",qU="⪡̸",BU="∌",WU="∌",UU="⋾",VU="⋽",GU="⊀",jU="⪯̸",KU="⋠",XU="∌",YU="⧐̸",ZU="⋫",JU="⋭",QU="⊏̸",t4="⋢",e4="⊐̸",n4="⋣",r4="⊂⃒",i4="⊈",o4="⊁",s4="⪰̸",l4="⋡",a4="≿̸",c4="⊃⃒",u4="⊉",f4="≁",h4="≄",d4="≇",p4="≉",g4="∤",v4="∦",m4="∦",y4="⫽⃥",b4="∂̸",w4="⨔",x4="⊀",_4="⋠",S4="⊀",k4="⪯̸",C4="⪯̸",T4="⤳̸",E4="↛",L4="⇏",A4="↝̸",M4="↛",N4="⇏",$4="⋫",P4="⋭",O4="⊁",R4="⋡",D4="⪰̸",z4="𝒩",I4="𝓃",F4="∤",H4="∦",q4="≁",B4="≄",W4="≄",U4="∤",V4="∦",G4="⋢",j4="⋣",K4="⊄",X4="⫅̸",Y4="⊈",Z4="⊂⃒",J4="⊈",Q4="⫅̸",t6="⊁",e6="⪰̸",n6="⊅",r6="⫆̸",i6="⊉",o6="⊃⃒",s6="⊉",l6="⫆̸",a6="≹",c6="Ñ",u6="ñ",f6="≸",h6="⋪",d6="⋬",p6="⋫",g6="⋭",v6="Ν",m6="ν",y6="#",b6="№",w6=" ",x6="≍⃒",_6="⊬",S6="⊭",k6="⊮",C6="⊯",T6="≥⃒",E6=">⃒",L6="⤄",A6="⧞",M6="⤂",N6="≤⃒",$6="<⃒",P6="⊴⃒",O6="⤃",R6="⊵⃒",D6="∼⃒",z6="⤣",I6="↖",F6="⇖",H6="↖",q6="⤧",B6="Ó",W6="ó",U6="⊛",V6="Ô",G6="ô",j6="⊚",K6="О",X6="о",Y6="⊝",Z6="Ő",J6="ő",Q6="⨸",tV="⊙",eV="⦼",nV="Œ",rV="œ",iV="⦿",oV="𝔒",sV="𝔬",lV="˛",aV="Ò",cV="ò",uV="⧁",fV="⦵",hV="Ω",dV="∮",pV="↺",gV="⦾",vV="⦻",mV="‾",yV="⧀",bV="Ō",wV="ō",xV="Ω",_V="ω",SV="Ο",kV="ο",CV="⦶",TV="⊖",EV="𝕆",LV="𝕠",AV="⦷",MV="“",NV="‘",$V="⦹",PV="⊕",OV="↻",RV="⩔",DV="∨",zV="⩝",IV="ℴ",FV="ℴ",HV="ª",qV="º",BV="⊶",WV="⩖",UV="⩗",VV="⩛",GV="Ⓢ",jV="𝒪",KV="ℴ",XV="Ø",YV="ø",ZV="⊘",JV="Õ",QV="õ",tG="⨶",eG="⨷",nG="⊗",rG="Ö",iG="ö",oG="⌽",sG="‾",lG="⏞",aG="⎴",cG="⏜",uG="¶",fG="∥",hG="∥",dG="⫳",pG="⫽",gG="∂",vG="∂",mG="П",yG="п",bG="%",wG=".",xG="‰",_G="⊥",SG="‱",kG="𝔓",CG="𝔭",TG="Φ",EG="φ",LG="ϕ",AG="ℳ",MG="☎",NG="Π",$G="π",PG="⋔",OG="ϖ",RG="ℏ",DG="ℎ",zG="ℏ",IG="⨣",FG="⊞",HG="⨢",qG="+",BG="∔",WG="⨥",UG="⩲",VG="±",GG="±",jG="⨦",KG="⨧",XG="±",YG="ℌ",ZG="⨕",JG="𝕡",QG="ℙ",tj="£",ej="⪷",nj="⪻",rj="≺",ij="≼",oj="⪷",sj="≺",lj="≼",aj="≺",cj="⪯",uj="≼",fj="≾",hj="⪯",dj="⪹",pj="⪵",gj="⋨",vj="⪯",mj="⪳",yj="≾",bj="′",wj="″",xj="ℙ",_j="⪹",Sj="⪵",kj="⋨",Cj="∏",Tj="∏",Ej="⌮",Lj="⌒",Aj="⌓",Mj="∝",Nj="∝",$j="∷",Pj="∝",Oj="≾",Rj="⊰",Dj="𝒫",zj="𝓅",Ij="Ψ",Fj="ψ",Hj=" ",qj="𝔔",Bj="𝔮",Wj="⨌",Uj="𝕢",Vj="ℚ",Gj="⁗",jj="𝒬",Kj="𝓆",Xj="ℍ",Yj="⨖",Zj="?",Jj="≟",Qj='"',t9='"',e9="⇛",n9="∽̱",r9="Ŕ",i9="ŕ",o9="√",s9="⦳",l9="⟩",a9="⟫",c9="⦒",u9="⦥",f9="⟩",h9="»",d9="⥵",p9="⇥",g9="⤠",v9="⤳",m9="→",y9="↠",b9="⇒",w9="⤞",x9="↪",_9="↬",S9="⥅",k9="⥴",C9="⤖",T9="↣",E9="↝",L9="⤚",A9="⤜",M9="∶",N9="ℚ",$9="⤍",P9="⤏",O9="⤐",R9="❳",D9="}",z9="]",I9="⦌",F9="⦎",H9="⦐",q9="Ř",B9="ř",W9="Ŗ",U9="ŗ",V9="⌉",G9="}",j9="Р",K9="р",X9="⤷",Y9="⥩",Z9="”",J9="”",Q9="↳",t7="ℜ",e7="ℛ",n7="ℜ",r7="ℝ",i7="ℜ",o7="▭",s7="®",l7="®",a7="∋",c7="⇋",u7="⥯",f7="⥽",h7="⌋",d7="𝔯",p7="ℜ",g7="⥤",v7="⇁",m7="⇀",y7="⥬",b7="Ρ",w7="ρ",x7="ϱ",_7="⟩",S7="⇥",k7="→",C7="→",T7="⇒",E7="⇄",L7="↣",A7="⌉",M7="⟧",N7="⥝",$7="⥕",P7="⇂",O7="⌋",R7="⇁",D7="⇀",z7="⇄",I7="⇌",F7="⇉",H7="↝",q7="↦",B7="⊢",W7="⥛",U7="⋌",V7="⧐",G7="⊳",j7="⊵",K7="⥏",X7="⥜",Y7="⥔",Z7="↾",J7="⥓",Q7="⇀",tK="˚",eK="≓",nK="⇄",rK="⇌",iK="",oK="⎱",sK="⎱",lK="⫮",aK="⟭",cK="⇾",uK="⟧",fK="⦆",hK="𝕣",dK="ℝ",pK="⨮",gK="⨵",vK="⥰",mK=")",yK="⦔",bK="⨒",wK="⇉",xK="⇛",_K="›",SK="𝓇",kK="ℛ",CK="↱",TK="↱",EK="]",LK="’",AK="’",MK="⋌",NK="⋊",$K="▹",PK="⊵",OK="▸",RK="⧎",DK="⧴",zK="⥨",IK="℞",FK="Ś",HK="ś",qK="‚",BK="⪸",WK="Š",UK="š",VK="⪼",GK="≻",jK="≽",KK="⪰",XK="⪴",YK="Ş",ZK="ş",JK="Ŝ",QK="ŝ",tX="⪺",eX="⪶",nX="⋩",rX="⨓",iX="≿",oX="С",sX="с",lX="⊡",aX="⋅",cX="⩦",uX="⤥",fX="↘",hX="⇘",dX="↘",pX="§",gX=";",vX="⤩",mX="∖",yX="∖",bX="✶",wX="𝔖",xX="𝔰",_X="⌢",SX="♯",kX="Щ",CX="щ",TX="Ш",EX="ш",LX="↓",AX="←",MX="∣",NX="∥",$X="→",PX="↑",OX="",RX="Σ",DX="σ",zX="ς",IX="ς",FX="∼",HX="⩪",qX="≃",BX="≃",WX="⪞",UX="⪠",VX="⪝",GX="⪟",jX="≆",KX="⨤",XX="⥲",YX="←",ZX="∘",JX="∖",QX="⨳",tY="⧤",eY="∣",nY="⌣",rY="⪪",iY="⪬",oY="⪬︀",sY="Ь",lY="ь",aY="⌿",cY="⧄",uY="/",fY="𝕊",hY="𝕤",dY="♠",pY="♠",gY="∥",vY="⊓",mY="⊓︀",yY="⊔",bY="⊔︀",wY="√",xY="⊏",_Y="⊑",SY="⊏",kY="⊑",CY="⊐",TY="⊒",EY="⊐",LY="⊒",AY="□",MY="□",NY="⊓",$Y="⊏",PY="⊑",OY="⊐",RY="⊒",DY="⊔",zY="▪",IY="□",FY="▪",HY="→",qY="𝒮",BY="𝓈",WY="∖",UY="⌣",VY="⋆",GY="⋆",jY="☆",KY="★",XY="ϵ",YY="ϕ",ZY="¯",JY="⊂",QY="⋐",tZ="⪽",eZ="⫅",nZ="⊆",rZ="⫃",iZ="⫁",oZ="⫋",sZ="⊊",lZ="⪿",aZ="⥹",cZ="⊂",uZ="⋐",fZ="⊆",hZ="⫅",dZ="⊆",pZ="⊊",gZ="⫋",vZ="⫇",mZ="⫕",yZ="⫓",bZ="⪸",wZ="≻",xZ="≽",_Z="≻",SZ="⪰",kZ="≽",CZ="≿",TZ="⪰",EZ="⪺",LZ="⪶",AZ="⋩",MZ="≿",NZ="∋",$Z="∑",PZ="∑",OZ="♪",RZ="¹",DZ="²",zZ="³",IZ="⊃",FZ="⋑",HZ="⪾",qZ="⫘",BZ="⫆",WZ="⊇",UZ="⫄",VZ="⊃",GZ="⊇",jZ="⟉",KZ="⫗",XZ="⥻",YZ="⫂",ZZ="⫌",JZ="⊋",QZ="⫀",tJ="⊃",eJ="⋑",nJ="⊇",rJ="⫆",iJ="⊋",oJ="⫌",sJ="⫈",lJ="⫔",aJ="⫖",cJ="⤦",uJ="↙",fJ="⇙",hJ="↙",dJ="⤪",pJ="ß",gJ=" ",vJ="⌖",mJ="Τ",yJ="τ",bJ="⎴",wJ="Ť",xJ="ť",_J="Ţ",SJ="ţ",kJ="Т",CJ="т",TJ="⃛",EJ="⌕",LJ="𝔗",AJ="𝔱",MJ="∴",NJ="∴",$J="∴",PJ="Θ",OJ="θ",RJ="ϑ",DJ="ϑ",zJ="≈",IJ="∼",FJ=" ",HJ=" ",qJ=" ",BJ="≈",WJ="∼",UJ="Þ",VJ="þ",GJ="˜",jJ="∼",KJ="≃",XJ="≅",YJ="≈",ZJ="⨱",JJ="⊠",QJ="×",tQ="⨰",eQ="∭",nQ="⤨",rQ="⌶",iQ="⫱",oQ="⊤",sQ="𝕋",lQ="𝕥",aQ="⫚",cQ="⤩",uQ="‴",fQ="™",hQ="™",dQ="▵",pQ="▿",gQ="◃",vQ="⊴",mQ="≜",yQ="▹",bQ="⊵",wQ="◬",xQ="≜",_Q="⨺",SQ="⃛",kQ="⨹",CQ="⧍",TQ="⨻",EQ="⏢",LQ="𝒯",AQ="𝓉",MQ="Ц",NQ="ц",$Q="Ћ",PQ="ћ",OQ="Ŧ",RQ="ŧ",DQ="≬",zQ="↞",IQ="↠",FQ="Ú",HQ="ú",qQ="↑",BQ="↟",WQ="⇑",UQ="⥉",VQ="Ў",GQ="ў",jQ="Ŭ",KQ="ŭ",XQ="Û",YQ="û",ZQ="У",JQ="у",QQ="⇅",ttt="Ű",ett="ű",ntt="⥮",rtt="⥾",itt="𝔘",ott="𝔲",stt="Ù",ltt="ù",att="⥣",ctt="↿",utt="↾",ftt="▀",htt="⌜",dtt="⌜",ptt="⌏",gtt="◸",vtt="Ū",mtt="ū",ytt="¨",btt="_",wtt="⏟",xtt="⎵",_tt="⏝",Stt="⋃",ktt="⊎",Ctt="Ų",Ttt="ų",Ett="𝕌",Ltt="𝕦",Att="⤒",Mtt="↑",Ntt="↑",$tt="⇑",Ptt="⇅",Ott="↕",Rtt="↕",Dtt="⇕",ztt="⥮",Itt="↿",Ftt="↾",Htt="⊎",qtt="↖",Btt="↗",Wtt="υ",Utt="ϒ",Vtt="ϒ",Gtt="Υ",jtt="υ",Ktt="↥",Xtt="⊥",Ytt="⇈",Ztt="⌝",Jtt="⌝",Qtt="⌎",tet="Ů",eet="ů",net="◹",ret="𝒰",iet="𝓊",oet="⋰",set="Ũ",aet="ũ",cet="▵",uet="▴",fet="⇈",het="Ü",det="ü",pet="⦧",get="⦜",vet="ϵ",met="ϰ",yet="∅",bet="ϕ",wet="ϖ",xet="∝",_et="↕",ket="⇕",Cet="ϱ",Tet="ς",Eet="⊊︀",Let="⫋︀",Aet="⊋︀",Met="⫌︀",Net="ϑ",$et="⊲",Pet="⊳",Oet="⫨",Ret="⫫",Det="⫩",zet="В",Iet="в",Fet="⊢",Het="⊨",qet="⊩",Bet="⊫",Wet="⫦",Uet="⊻",Vet="∨",Get="⋁",jet="≚",Ket="⋮",Xet="|",Yet="‖",Zet="|",Jet="‖",Qet="∣",tnt="|",ent="❘",nnt="≀",rnt=" ",int="𝔙",ont="𝔳",snt="⊲",lnt="⊂⃒",ant="⊃⃒",cnt="𝕍",unt="𝕧",fnt="∝",hnt="⊳",dnt="𝒱",pnt="𝓋",gnt="⫋︀",vnt="⊊︀",mnt="⫌︀",ynt="⊋︀",bnt="⊪",wnt="⦚",xnt="Ŵ",_nt="ŵ",Snt="⩟",knt="∧",Cnt="⋀",Tnt="≙",Ent="℘",Lnt="𝔚",Ant="𝔴",Mnt="𝕎",Nnt="𝕨",$nt="℘",Pnt="≀",Ont="≀",Rnt="𝒲",Dnt="𝓌",znt="⋂",Int="◯",Fnt="⋃",Hnt="▽",qnt="𝔛",Bnt="𝔵",Wnt="⟷",Unt="⟺",Vnt="Ξ",Gnt="ξ",jnt="⟵",Knt="⟸",Xnt="⟼",Ynt="⋻",Znt="⨀",Jnt="𝕏",Qnt="𝕩",trt="⨁",ert="⨂",nrt="⟶",rrt="⟹",irt="𝒳",ort="𝓍",srt="⨆",lrt="⨄",art="△",crt="⋁",urt="⋀",frt="Ý",hrt="ý",drt="Я",prt="я",grt="Ŷ",vrt="ŷ",mrt="Ы",yrt="ы",brt="¥",wrt="𝔜",xrt="𝔶",_rt="Ї",Srt="ї",krt="𝕐",Crt="𝕪",Trt="𝒴",Ert="𝓎",Lrt="Ю",Art="ю",Mrt="ÿ",Nrt="Ÿ",$rt="Ź",Prt="ź",Ort="Ž",Rrt="ž",Drt="З",zrt="з",Irt="Ż",Frt="ż",Hrt="ℨ",qrt="",Brt="Ζ",Wrt="ζ",Urt="𝔷",Vrt="ℨ",Grt="Ж",jrt="ж",Krt="⇝",Xrt="𝕫",Yrt="ℤ",Zrt="𝒵",Jrt="𝓏",Qrt="",tit="",Vy={Aacute:DT,aacute:zT,Abreve:IT,abreve:FT,ac:HT,acd:qT,acE:BT,Acirc:WT,acirc:UT,acute:VT,Acy:GT,acy:jT,AElig:KT,aelig:XT,af:YT,Afr:ZT,afr:JT,Agrave:QT,agrave:tE,alefsym:eE,aleph:nE,Alpha:rE,alpha:iE,Amacr:oE,amacr:sE,amalg:lE,amp:aE,AMP:cE,andand:uE,And:fE,and:hE,andd:dE,andslope:pE,andv:gE,ang:vE,ange:mE,angle:yE,angmsdaa:bE,angmsdab:wE,angmsdac:xE,angmsdad:_E,angmsdae:SE,angmsdaf:kE,angmsdag:CE,angmsdah:TE,angmsd:EE,angrt:LE,angrtvb:AE,angrtvbd:ME,angsph:NE,angst:$E,angzarr:PE,Aogon:OE,aogon:RE,Aopf:DE,aopf:zE,apacir:IE,ap:FE,apE:HE,ape:qE,apid:BE,apos:WE,ApplyFunction:UE,approx:VE,approxeq:GE,Aring:jE,aring:KE,Ascr:XE,ascr:YE,Assign:ZE,ast:JE,asymp:QE,asympeq:tL,Atilde:eL,atilde:nL,Auml:rL,auml:iL,awconint:oL,awint:sL,backcong:lL,backepsilon:aL,backprime:cL,backsim:uL,backsimeq:fL,Backslash:hL,Barv:dL,barvee:pL,barwed:gL,Barwed:vL,barwedge:mL,bbrk:yL,bbrktbrk:bL,bcong:wL,Bcy:xL,bcy:_L,bdquo:SL,becaus:kL,because:CL,Because:TL,bemptyv:EL,bepsi:LL,bernou:AL,Bernoullis:ML,Beta:NL,beta:$L,beth:PL,between:OL,Bfr:RL,bfr:DL,bigcap:zL,bigcirc:IL,bigcup:FL,bigodot:HL,bigoplus:qL,bigotimes:BL,bigsqcup:WL,bigstar:UL,bigtriangledown:VL,bigtriangleup:GL,biguplus:jL,bigvee:KL,bigwedge:XL,bkarow:YL,blacklozenge:ZL,blacksquare:JL,blacktriangle:QL,blacktriangledown:tA,blacktriangleleft:eA,blacktriangleright:nA,blank:rA,blk12:iA,blk14:oA,blk34:sA,block:lA,bne:aA,bnequiv:cA,bNot:uA,bnot:fA,Bopf:hA,bopf:dA,bot:pA,bottom:gA,bowtie:vA,boxbox:mA,boxdl:yA,boxdL:bA,boxDl:wA,boxDL:xA,boxdr:_A,boxdR:SA,boxDr:kA,boxDR:CA,boxh:TA,boxH:EA,boxhd:LA,boxHd:AA,boxhD:MA,boxHD:NA,boxhu:$A,boxHu:PA,boxhU:OA,boxHU:RA,boxminus:DA,boxplus:zA,boxtimes:IA,boxul:FA,boxuL:HA,boxUl:qA,boxUL:BA,boxur:WA,boxuR:UA,boxUr:VA,boxUR:GA,boxv:jA,boxV:KA,boxvh:XA,boxvH:YA,boxVh:ZA,boxVH:JA,boxvl:QA,boxvL:tM,boxVl:eM,boxVL:nM,boxvr:rM,boxvR:iM,boxVr:oM,boxVR:sM,bprime:lM,breve:aM,Breve:cM,brvbar:uM,bscr:fM,Bscr:hM,bsemi:dM,bsim:pM,bsime:gM,bsolb:vM,bsol:mM,bsolhsub:yM,bull:bM,bullet:wM,bump:xM,bumpE:_M,bumpe:SM,Bumpeq:kM,bumpeq:CM,Cacute:TM,cacute:EM,capand:LM,capbrcup:AM,capcap:MM,cap:NM,Cap:$M,capcup:PM,capdot:OM,CapitalDifferentialD:RM,caps:DM,caret:zM,caron:IM,Cayleys:FM,ccaps:HM,Ccaron:qM,ccaron:BM,Ccedil:WM,ccedil:UM,Ccirc:VM,ccirc:GM,Cconint:jM,ccups:KM,ccupssm:XM,Cdot:YM,cdot:ZM,cedil:JM,Cedilla:QM,cemptyv:tN,cent:eN,centerdot:nN,CenterDot:rN,cfr:iN,Cfr:oN,CHcy:sN,chcy:lN,check:aN,checkmark:cN,Chi:uN,chi:fN,circ:hN,circeq:dN,circlearrowleft:pN,circlearrowright:gN,circledast:vN,circledcirc:mN,circleddash:yN,CircleDot:bN,circledR:wN,circledS:xN,CircleMinus:_N,CirclePlus:SN,CircleTimes:kN,cir:CN,cirE:TN,cire:EN,cirfnint:LN,cirmid:AN,cirscir:MN,ClockwiseContourIntegral:NN,CloseCurlyDoubleQuote:$N,CloseCurlyQuote:PN,clubs:ON,clubsuit:RN,colon:DN,Colon:zN,Colone:IN,colone:FN,coloneq:HN,comma:qN,commat:BN,comp:WN,compfn:UN,complement:VN,complexes:GN,cong:jN,congdot:KN,Congruent:XN,conint:YN,Conint:ZN,ContourIntegral:JN,copf:QN,Copf:t$,coprod:e$,Coproduct:n$,copy:r$,COPY:i$,copysr:o$,CounterClockwiseContourIntegral:s$,crarr:l$,cross:a$,Cross:c$,Cscr:u$,cscr:f$,csub:h$,csube:d$,csup:p$,csupe:g$,ctdot:v$,cudarrl:m$,cudarrr:y$,cuepr:b$,cuesc:w$,cularr:x$,cularrp:_$,cupbrcap:S$,cupcap:k$,CupCap:C$,cup:T$,Cup:E$,cupcup:L$,cupdot:A$,cupor:M$,cups:N$,curarr:$$,curarrm:P$,curlyeqprec:O$,curlyeqsucc:R$,curlyvee:D$,curlywedge:z$,curren:I$,curvearrowleft:F$,curvearrowright:H$,cuvee:q$,cuwed:B$,cwconint:W$,cwint:U$,cylcty:V$,dagger:G$,Dagger:j$,daleth:K$,darr:X$,Darr:Y$,dArr:Z$,dash:J$,Dashv:Q$,dashv:tP,dbkarow:eP,dblac:nP,Dcaron:rP,dcaron:iP,Dcy:oP,dcy:sP,ddagger:lP,ddarr:aP,DD:cP,dd:uP,DDotrahd:fP,ddotseq:hP,deg:dP,Del:pP,Delta:gP,delta:vP,demptyv:mP,dfisht:yP,Dfr:bP,dfr:wP,dHar:xP,dharl:_P,dharr:SP,DiacriticalAcute:kP,DiacriticalDot:CP,DiacriticalDoubleAcute:TP,DiacriticalGrave:EP,DiacriticalTilde:LP,diam:AP,diamond:MP,Diamond:NP,diamondsuit:$P,diams:PP,die:OP,DifferentialD:RP,digamma:DP,disin:zP,div:IP,divide:FP,divideontimes:HP,divonx:qP,DJcy:BP,djcy:WP,dlcorn:UP,dlcrop:VP,dollar:GP,Dopf:jP,dopf:KP,Dot:XP,dot:YP,DotDot:ZP,doteq:JP,doteqdot:QP,DotEqual:tO,dotminus:eO,dotplus:nO,dotsquare:rO,doublebarwedge:iO,DoubleContourIntegral:oO,DoubleDot:sO,DoubleDownArrow:lO,DoubleLeftArrow:aO,DoubleLeftRightArrow:cO,DoubleLeftTee:uO,DoubleLongLeftArrow:fO,DoubleLongLeftRightArrow:hO,DoubleLongRightArrow:dO,DoubleRightArrow:pO,DoubleRightTee:gO,DoubleUpArrow:vO,DoubleUpDownArrow:mO,DoubleVerticalBar:yO,DownArrowBar:bO,downarrow:wO,DownArrow:xO,Downarrow:_O,DownArrowUpArrow:SO,DownBreve:kO,downdownarrows:CO,downharpoonleft:TO,downharpoonright:EO,DownLeftRightVector:LO,DownLeftTeeVector:AO,DownLeftVectorBar:MO,DownLeftVector:NO,DownRightTeeVector:$O,DownRightVectorBar:PO,DownRightVector:OO,DownTeeArrow:RO,DownTee:DO,drbkarow:zO,drcorn:IO,drcrop:FO,Dscr:HO,dscr:qO,DScy:BO,dscy:WO,dsol:UO,Dstrok:VO,dstrok:GO,dtdot:jO,dtri:KO,dtrif:XO,duarr:YO,duhar:ZO,dwangle:JO,DZcy:QO,dzcy:tR,dzigrarr:eR,Eacute:nR,eacute:rR,easter:iR,Ecaron:oR,ecaron:sR,Ecirc:lR,ecirc:aR,ecir:cR,ecolon:uR,Ecy:fR,ecy:hR,eDDot:dR,Edot:pR,edot:gR,eDot:vR,ee:mR,efDot:yR,Efr:bR,efr:wR,eg:xR,Egrave:_R,egrave:SR,egs:kR,egsdot:CR,el:TR,Element:ER,elinters:LR,ell:AR,els:MR,elsdot:NR,Emacr:$R,emacr:PR,empty:OR,emptyset:RR,EmptySmallSquare:DR,emptyv:zR,EmptyVerySmallSquare:IR,emsp13:FR,emsp14:HR,emsp:qR,ENG:BR,eng:WR,ensp:UR,Eogon:VR,eogon:GR,Eopf:jR,eopf:KR,epar:XR,eparsl:YR,eplus:ZR,epsi:JR,Epsilon:QR,epsilon:tD,epsiv:eD,eqcirc:nD,eqcolon:rD,eqsim:iD,eqslantgtr:oD,eqslantless:sD,Equal:lD,equals:aD,EqualTilde:cD,equest:uD,Equilibrium:fD,equiv:hD,equivDD:dD,eqvparsl:pD,erarr:gD,erDot:vD,escr:mD,Escr:yD,esdot:bD,Esim:wD,esim:xD,Eta:_D,eta:SD,ETH:kD,eth:CD,Euml:TD,euml:ED,euro:LD,excl:AD,exist:MD,Exists:ND,expectation:$D,exponentiale:PD,ExponentialE:OD,fallingdotseq:RD,Fcy:DD,fcy:zD,female:ID,ffilig:FD,fflig:HD,ffllig:qD,Ffr:BD,ffr:WD,filig:UD,FilledSmallSquare:VD,FilledVerySmallSquare:GD,fjlig:jD,flat:KD,fllig:XD,fltns:YD,fnof:ZD,Fopf:JD,fopf:QD,forall:t2,ForAll:e2,fork:n2,forkv:r2,Fouriertrf:i2,fpartint:o2,frac12:s2,frac13:l2,frac14:a2,frac15:c2,frac16:u2,frac18:f2,frac23:h2,frac25:d2,frac34:p2,frac35:g2,frac38:v2,frac45:m2,frac56:y2,frac58:b2,frac78:w2,frasl:x2,frown:_2,fscr:S2,Fscr:k2,gacute:C2,Gamma:T2,gamma:E2,Gammad:L2,gammad:A2,gap:M2,Gbreve:N2,gbreve:$2,Gcedil:P2,Gcirc:O2,gcirc:R2,Gcy:D2,gcy:z2,Gdot:I2,gdot:F2,ge:H2,gE:q2,gEl:B2,gel:W2,geq:U2,geqq:V2,geqslant:G2,gescc:j2,ges:K2,gesdot:X2,gesdoto:Y2,gesdotol:Z2,gesl:J2,gesles:Q2,Gfr:tz,gfr:ez,gg:nz,Gg:rz,ggg:iz,gimel:oz,GJcy:sz,gjcy:lz,gla:az,gl:cz,glE:uz,glj:fz,gnap:hz,gnapprox:dz,gne:pz,gnE:gz,gneq:vz,gneqq:mz,gnsim:yz,Gopf:bz,gopf:wz,grave:xz,GreaterEqual:_z,GreaterEqualLess:Sz,GreaterFullEqual:kz,GreaterGreater:Cz,GreaterLess:Tz,GreaterSlantEqual:Ez,GreaterTilde:Lz,Gscr:Az,gscr:Mz,gsim:Nz,gsime:$z,gsiml:Pz,gtcc:Oz,gtcir:Rz,gt:Dz,GT:zz,Gt:Iz,gtdot:Fz,gtlPar:Hz,gtquest:qz,gtrapprox:Bz,gtrarr:Wz,gtrdot:Uz,gtreqless:Vz,gtreqqless:Gz,gtrless:jz,gtrsim:Kz,gvertneqq:Xz,gvnE:Yz,Hacek:Zz,hairsp:Jz,half:Qz,hamilt:tI,HARDcy:eI,hardcy:nI,harrcir:rI,harr:iI,hArr:oI,harrw:sI,Hat:lI,hbar:aI,Hcirc:cI,hcirc:uI,hearts:fI,heartsuit:hI,hellip:dI,hercon:pI,hfr:gI,Hfr:vI,HilbertSpace:mI,hksearow:yI,hkswarow:bI,hoarr:wI,homtht:xI,hookleftarrow:_I,hookrightarrow:SI,hopf:kI,Hopf:CI,horbar:TI,HorizontalLine:EI,hscr:LI,Hscr:AI,hslash:MI,Hstrok:NI,hstrok:$I,HumpDownHump:PI,HumpEqual:OI,hybull:RI,hyphen:DI,Iacute:zI,iacute:II,ic:FI,Icirc:HI,icirc:qI,Icy:BI,icy:WI,Idot:UI,IEcy:VI,iecy:GI,iexcl:jI,iff:KI,ifr:XI,Ifr:YI,Igrave:ZI,igrave:JI,ii:QI,iiiint:tF,iiint:eF,iinfin:nF,iiota:rF,IJlig:iF,ijlig:oF,Imacr:sF,imacr:lF,image:aF,ImaginaryI:cF,imagline:uF,imagpart:fF,imath:hF,Im:dF,imof:pF,imped:gF,Implies:vF,incare:mF,in:"∈",infin:yF,infintie:bF,inodot:wF,intcal:xF,int:_F,Int:SF,integers:kF,Integral:CF,intercal:TF,Intersection:EF,intlarhk:LF,intprod:AF,InvisibleComma:MF,InvisibleTimes:NF,IOcy:$F,iocy:PF,Iogon:OF,iogon:RF,Iopf:DF,iopf:zF,Iota:IF,iota:FF,iprod:HF,iquest:qF,iscr:BF,Iscr:WF,isin:UF,isindot:VF,isinE:GF,isins:jF,isinsv:KF,isinv:XF,it:YF,Itilde:ZF,itilde:JF,Iukcy:QF,iukcy:tH,Iuml:eH,iuml:nH,Jcirc:rH,jcirc:iH,Jcy:oH,jcy:sH,Jfr:lH,jfr:aH,jmath:cH,Jopf:uH,jopf:fH,Jscr:hH,jscr:dH,Jsercy:pH,jsercy:gH,Jukcy:vH,jukcy:mH,Kappa:yH,kappa:bH,kappav:wH,Kcedil:xH,kcedil:_H,Kcy:SH,kcy:kH,Kfr:CH,kfr:TH,kgreen:EH,KHcy:LH,khcy:AH,KJcy:MH,kjcy:NH,Kopf:$H,kopf:PH,Kscr:OH,kscr:RH,lAarr:DH,Lacute:zH,lacute:IH,laemptyv:FH,lagran:HH,Lambda:qH,lambda:BH,lang:WH,Lang:UH,langd:VH,langle:GH,lap:jH,Laplacetrf:KH,laquo:XH,larrb:YH,larrbfs:ZH,larr:JH,Larr:QH,lArr:tq,larrfs:eq,larrhk:nq,larrlp:rq,larrpl:iq,larrsim:oq,larrtl:sq,latail:lq,lAtail:aq,lat:cq,late:uq,lates:fq,lbarr:hq,lBarr:dq,lbbrk:pq,lbrace:gq,lbrack:vq,lbrke:mq,lbrksld:yq,lbrkslu:bq,Lcaron:wq,lcaron:xq,Lcedil:_q,lcedil:Sq,lceil:kq,lcub:Cq,Lcy:Tq,lcy:Eq,ldca:Lq,ldquo:Aq,ldquor:Mq,ldrdhar:Nq,ldrushar:$q,ldsh:Pq,le:Oq,lE:Rq,LeftAngleBracket:Dq,LeftArrowBar:zq,leftarrow:Iq,LeftArrow:Fq,Leftarrow:Hq,LeftArrowRightArrow:qq,leftarrowtail:Bq,LeftCeiling:Wq,LeftDoubleBracket:Uq,LeftDownTeeVector:Vq,LeftDownVectorBar:Gq,LeftDownVector:jq,LeftFloor:Kq,leftharpoondown:Xq,leftharpoonup:Yq,leftleftarrows:Zq,leftrightarrow:Jq,LeftRightArrow:Qq,Leftrightarrow:tB,leftrightarrows:eB,leftrightharpoons:nB,leftrightsquigarrow:rB,LeftRightVector:iB,LeftTeeArrow:oB,LeftTee:sB,LeftTeeVector:lB,leftthreetimes:aB,LeftTriangleBar:cB,LeftTriangle:uB,LeftTriangleEqual:fB,LeftUpDownVector:hB,LeftUpTeeVector:dB,LeftUpVectorBar:pB,LeftUpVector:gB,LeftVectorBar:vB,LeftVector:mB,lEg:yB,leg:bB,leq:wB,leqq:xB,leqslant:_B,lescc:SB,les:kB,lesdot:CB,lesdoto:TB,lesdotor:EB,lesg:LB,lesges:AB,lessapprox:MB,lessdot:NB,lesseqgtr:$B,lesseqqgtr:PB,LessEqualGreater:OB,LessFullEqual:RB,LessGreater:DB,lessgtr:zB,LessLess:IB,lesssim:FB,LessSlantEqual:HB,LessTilde:qB,lfisht:BB,lfloor:WB,Lfr:UB,lfr:VB,lg:GB,lgE:jB,lHar:KB,lhard:XB,lharu:YB,lharul:ZB,lhblk:JB,LJcy:QB,ljcy:t3,llarr:e3,ll:n3,Ll:r3,llcorner:i3,Lleftarrow:o3,llhard:s3,lltri:l3,Lmidot:a3,lmidot:c3,lmoustache:u3,lmoust:f3,lnap:h3,lnapprox:d3,lne:p3,lnE:g3,lneq:v3,lneqq:m3,lnsim:y3,loang:b3,loarr:w3,lobrk:x3,longleftarrow:_3,LongLeftArrow:S3,Longleftarrow:k3,longleftrightarrow:C3,LongLeftRightArrow:T3,Longleftrightarrow:E3,longmapsto:L3,longrightarrow:A3,LongRightArrow:M3,Longrightarrow:N3,looparrowleft:$3,looparrowright:P3,lopar:O3,Lopf:R3,lopf:D3,loplus:z3,lotimes:I3,lowast:F3,lowbar:H3,LowerLeftArrow:q3,LowerRightArrow:B3,loz:W3,lozenge:U3,lozf:V3,lpar:G3,lparlt:j3,lrarr:K3,lrcorner:X3,lrhar:Y3,lrhard:Z3,lrm:J3,lrtri:Q3,lsaquo:t5,lscr:e5,Lscr:n5,lsh:r5,Lsh:i5,lsim:o5,lsime:s5,lsimg:l5,lsqb:a5,lsquo:c5,lsquor:u5,Lstrok:f5,lstrok:h5,ltcc:d5,ltcir:p5,lt:g5,LT:v5,Lt:m5,ltdot:y5,lthree:b5,ltimes:w5,ltlarr:x5,ltquest:_5,ltri:S5,ltrie:k5,ltrif:C5,ltrPar:T5,lurdshar:E5,luruhar:L5,lvertneqq:A5,lvnE:M5,macr:N5,male:$5,malt:P5,maltese:O5,Map:"⤅",map:R5,mapsto:D5,mapstodown:z5,mapstoleft:I5,mapstoup:F5,marker:H5,mcomma:q5,Mcy:B5,mcy:W5,mdash:U5,mDDot:V5,measuredangle:G5,MediumSpace:j5,Mellintrf:K5,Mfr:X5,mfr:Y5,mho:Z5,micro:J5,midast:Q5,midcir:t8,mid:e8,middot:n8,minusb:r8,minus:i8,minusd:o8,minusdu:s8,MinusPlus:l8,mlcp:a8,mldr:c8,mnplus:u8,models:f8,Mopf:h8,mopf:d8,mp:p8,mscr:g8,Mscr:v8,mstpos:m8,Mu:y8,mu:b8,multimap:w8,mumap:x8,nabla:_8,Nacute:S8,nacute:k8,nang:C8,nap:T8,napE:E8,napid:L8,napos:A8,napprox:M8,natural:N8,naturals:$8,natur:P8,nbsp:O8,nbump:R8,nbumpe:D8,ncap:z8,Ncaron:I8,ncaron:F8,Ncedil:H8,ncedil:q8,ncong:B8,ncongdot:W8,ncup:U8,Ncy:V8,ncy:G8,ndash:j8,nearhk:K8,nearr:X8,neArr:Y8,nearrow:Z8,ne:J8,nedot:Q8,NegativeMediumSpace:tW,NegativeThickSpace:eW,NegativeThinSpace:nW,NegativeVeryThinSpace:rW,nequiv:iW,nesear:oW,nesim:sW,NestedGreaterGreater:lW,NestedLessLess:aW,NewLine:cW,nexist:uW,nexists:fW,Nfr:hW,nfr:dW,ngE:pW,nge:gW,ngeq:vW,ngeqq:mW,ngeqslant:yW,nges:bW,nGg:wW,ngsim:xW,nGt:_W,ngt:SW,ngtr:kW,nGtv:CW,nharr:TW,nhArr:EW,nhpar:LW,ni:AW,nis:MW,nisd:NW,niv:$W,NJcy:PW,njcy:OW,nlarr:RW,nlArr:DW,nldr:zW,nlE:IW,nle:FW,nleftarrow:HW,nLeftarrow:qW,nleftrightarrow:BW,nLeftrightarrow:WW,nleq:UW,nleqq:VW,nleqslant:GW,nles:jW,nless:KW,nLl:XW,nlsim:YW,nLt:ZW,nlt:JW,nltri:QW,nltrie:tU,nLtv:eU,nmid:nU,NoBreak:rU,NonBreakingSpace:iU,nopf:oU,Nopf:sU,Not:lU,not:aU,NotCongruent:cU,NotCupCap:uU,NotDoubleVerticalBar:fU,NotElement:hU,NotEqual:dU,NotEqualTilde:pU,NotExists:gU,NotGreater:vU,NotGreaterEqual:mU,NotGreaterFullEqual:yU,NotGreaterGreater:bU,NotGreaterLess:wU,NotGreaterSlantEqual:xU,NotGreaterTilde:_U,NotHumpDownHump:SU,NotHumpEqual:kU,notin:CU,notindot:TU,notinE:EU,notinva:LU,notinvb:AU,notinvc:MU,NotLeftTriangleBar:NU,NotLeftTriangle:$U,NotLeftTriangleEqual:PU,NotLess:OU,NotLessEqual:RU,NotLessGreater:DU,NotLessLess:zU,NotLessSlantEqual:IU,NotLessTilde:FU,NotNestedGreaterGreater:HU,NotNestedLessLess:qU,notni:BU,notniva:WU,notnivb:UU,notnivc:VU,NotPrecedes:GU,NotPrecedesEqual:jU,NotPrecedesSlantEqual:KU,NotReverseElement:XU,NotRightTriangleBar:YU,NotRightTriangle:ZU,NotRightTriangleEqual:JU,NotSquareSubset:QU,NotSquareSubsetEqual:t4,NotSquareSuperset:e4,NotSquareSupersetEqual:n4,NotSubset:r4,NotSubsetEqual:i4,NotSucceeds:o4,NotSucceedsEqual:s4,NotSucceedsSlantEqual:l4,NotSucceedsTilde:a4,NotSuperset:c4,NotSupersetEqual:u4,NotTilde:f4,NotTildeEqual:h4,NotTildeFullEqual:d4,NotTildeTilde:p4,NotVerticalBar:g4,nparallel:v4,npar:m4,nparsl:y4,npart:b4,npolint:w4,npr:x4,nprcue:_4,nprec:S4,npreceq:k4,npre:C4,nrarrc:T4,nrarr:E4,nrArr:L4,nrarrw:A4,nrightarrow:M4,nRightarrow:N4,nrtri:$4,nrtrie:P4,nsc:O4,nsccue:R4,nsce:D4,Nscr:z4,nscr:I4,nshortmid:F4,nshortparallel:H4,nsim:q4,nsime:B4,nsimeq:W4,nsmid:U4,nspar:V4,nsqsube:G4,nsqsupe:j4,nsub:K4,nsubE:X4,nsube:Y4,nsubset:Z4,nsubseteq:J4,nsubseteqq:Q4,nsucc:t6,nsucceq:e6,nsup:n6,nsupE:r6,nsupe:i6,nsupset:o6,nsupseteq:s6,nsupseteqq:l6,ntgl:a6,Ntilde:c6,ntilde:u6,ntlg:f6,ntriangleleft:h6,ntrianglelefteq:d6,ntriangleright:p6,ntrianglerighteq:g6,Nu:v6,nu:m6,num:y6,numero:b6,numsp:w6,nvap:x6,nvdash:_6,nvDash:S6,nVdash:k6,nVDash:C6,nvge:T6,nvgt:E6,nvHarr:L6,nvinfin:A6,nvlArr:M6,nvle:N6,nvlt:$6,nvltrie:P6,nvrArr:O6,nvrtrie:R6,nvsim:D6,nwarhk:z6,nwarr:I6,nwArr:F6,nwarrow:H6,nwnear:q6,Oacute:B6,oacute:W6,oast:U6,Ocirc:V6,ocirc:G6,ocir:j6,Ocy:K6,ocy:X6,odash:Y6,Odblac:Z6,odblac:J6,odiv:Q6,odot:tV,odsold:eV,OElig:nV,oelig:rV,ofcir:iV,Ofr:oV,ofr:sV,ogon:lV,Ograve:aV,ograve:cV,ogt:uV,ohbar:fV,ohm:hV,oint:dV,olarr:pV,olcir:gV,olcross:vV,oline:mV,olt:yV,Omacr:bV,omacr:wV,Omega:xV,omega:_V,Omicron:SV,omicron:kV,omid:CV,ominus:TV,Oopf:EV,oopf:LV,opar:AV,OpenCurlyDoubleQuote:MV,OpenCurlyQuote:NV,operp:$V,oplus:PV,orarr:OV,Or:RV,or:DV,ord:zV,order:IV,orderof:FV,ordf:HV,ordm:qV,origof:BV,oror:WV,orslope:UV,orv:VV,oS:GV,Oscr:jV,oscr:KV,Oslash:XV,oslash:YV,osol:ZV,Otilde:JV,otilde:QV,otimesas:tG,Otimes:eG,otimes:nG,Ouml:rG,ouml:iG,ovbar:oG,OverBar:sG,OverBrace:lG,OverBracket:aG,OverParenthesis:cG,para:uG,parallel:fG,par:hG,parsim:dG,parsl:pG,part:gG,PartialD:vG,Pcy:mG,pcy:yG,percnt:bG,period:wG,permil:xG,perp:_G,pertenk:SG,Pfr:kG,pfr:CG,Phi:TG,phi:EG,phiv:LG,phmmat:AG,phone:MG,Pi:NG,pi:$G,pitchfork:PG,piv:OG,planck:RG,planckh:DG,plankv:zG,plusacir:IG,plusb:FG,pluscir:HG,plus:qG,plusdo:BG,plusdu:WG,pluse:UG,PlusMinus:VG,plusmn:GG,plussim:jG,plustwo:KG,pm:XG,Poincareplane:YG,pointint:ZG,popf:JG,Popf:QG,pound:tj,prap:ej,Pr:nj,pr:rj,prcue:ij,precapprox:oj,prec:sj,preccurlyeq:lj,Precedes:aj,PrecedesEqual:cj,PrecedesSlantEqual:uj,PrecedesTilde:fj,preceq:hj,precnapprox:dj,precneqq:pj,precnsim:gj,pre:vj,prE:mj,precsim:yj,prime:bj,Prime:wj,primes:xj,prnap:_j,prnE:Sj,prnsim:kj,prod:Cj,Product:Tj,profalar:Ej,profline:Lj,profsurf:Aj,prop:Mj,Proportional:Nj,Proportion:$j,propto:Pj,prsim:Oj,prurel:Rj,Pscr:Dj,pscr:zj,Psi:Ij,psi:Fj,puncsp:Hj,Qfr:qj,qfr:Bj,qint:Wj,qopf:Uj,Qopf:Vj,qprime:Gj,Qscr:jj,qscr:Kj,quaternions:Xj,quatint:Yj,quest:Zj,questeq:Jj,quot:Qj,QUOT:t9,rAarr:e9,race:n9,Racute:r9,racute:i9,radic:o9,raemptyv:s9,rang:l9,Rang:a9,rangd:c9,range:u9,rangle:f9,raquo:h9,rarrap:d9,rarrb:p9,rarrbfs:g9,rarrc:v9,rarr:m9,Rarr:y9,rArr:b9,rarrfs:w9,rarrhk:x9,rarrlp:_9,rarrpl:S9,rarrsim:k9,Rarrtl:C9,rarrtl:T9,rarrw:E9,ratail:L9,rAtail:A9,ratio:M9,rationals:N9,rbarr:$9,rBarr:P9,RBarr:O9,rbbrk:R9,rbrace:D9,rbrack:z9,rbrke:I9,rbrksld:F9,rbrkslu:H9,Rcaron:q9,rcaron:B9,Rcedil:W9,rcedil:U9,rceil:V9,rcub:G9,Rcy:j9,rcy:K9,rdca:X9,rdldhar:Y9,rdquo:Z9,rdquor:J9,rdsh:Q9,real:t7,realine:e7,realpart:n7,reals:r7,Re:i7,rect:o7,reg:s7,REG:l7,ReverseElement:a7,ReverseEquilibrium:c7,ReverseUpEquilibrium:u7,rfisht:f7,rfloor:h7,rfr:d7,Rfr:p7,rHar:g7,rhard:v7,rharu:m7,rharul:y7,Rho:b7,rho:w7,rhov:x7,RightAngleBracket:_7,RightArrowBar:S7,rightarrow:k7,RightArrow:C7,Rightarrow:T7,RightArrowLeftArrow:E7,rightarrowtail:L7,RightCeiling:A7,RightDoubleBracket:M7,RightDownTeeVector:N7,RightDownVectorBar:$7,RightDownVector:P7,RightFloor:O7,rightharpoondown:R7,rightharpoonup:D7,rightleftarrows:z7,rightleftharpoons:I7,rightrightarrows:F7,rightsquigarrow:H7,RightTeeArrow:q7,RightTee:B7,RightTeeVector:W7,rightthreetimes:U7,RightTriangleBar:V7,RightTriangle:G7,RightTriangleEqual:j7,RightUpDownVector:K7,RightUpTeeVector:X7,RightUpVectorBar:Y7,RightUpVector:Z7,RightVectorBar:J7,RightVector:Q7,ring:tK,risingdotseq:eK,rlarr:nK,rlhar:rK,rlm:iK,rmoustache:oK,rmoust:sK,rnmid:lK,roang:aK,roarr:cK,robrk:uK,ropar:fK,ropf:hK,Ropf:dK,roplus:pK,rotimes:gK,RoundImplies:vK,rpar:mK,rpargt:yK,rppolint:bK,rrarr:wK,Rrightarrow:xK,rsaquo:_K,rscr:SK,Rscr:kK,rsh:CK,Rsh:TK,rsqb:EK,rsquo:LK,rsquor:AK,rthree:MK,rtimes:NK,rtri:$K,rtrie:PK,rtrif:OK,rtriltri:RK,RuleDelayed:DK,ruluhar:zK,rx:IK,Sacute:FK,sacute:HK,sbquo:qK,scap:BK,Scaron:WK,scaron:UK,Sc:VK,sc:GK,sccue:jK,sce:KK,scE:XK,Scedil:YK,scedil:ZK,Scirc:JK,scirc:QK,scnap:tX,scnE:eX,scnsim:nX,scpolint:rX,scsim:iX,Scy:oX,scy:sX,sdotb:lX,sdot:aX,sdote:cX,searhk:uX,searr:fX,seArr:hX,searrow:dX,sect:pX,semi:gX,seswar:vX,setminus:mX,setmn:yX,sext:bX,Sfr:wX,sfr:xX,sfrown:_X,sharp:SX,SHCHcy:kX,shchcy:CX,SHcy:TX,shcy:EX,ShortDownArrow:LX,ShortLeftArrow:AX,shortmid:MX,shortparallel:NX,ShortRightArrow:$X,ShortUpArrow:PX,shy:OX,Sigma:RX,sigma:DX,sigmaf:zX,sigmav:IX,sim:FX,simdot:HX,sime:qX,simeq:BX,simg:WX,simgE:UX,siml:VX,simlE:GX,simne:jX,simplus:KX,simrarr:XX,slarr:YX,SmallCircle:ZX,smallsetminus:JX,smashp:QX,smeparsl:tY,smid:eY,smile:nY,smt:rY,smte:iY,smtes:oY,SOFTcy:sY,softcy:lY,solbar:aY,solb:cY,sol:uY,Sopf:fY,sopf:hY,spades:dY,spadesuit:pY,spar:gY,sqcap:vY,sqcaps:mY,sqcup:yY,sqcups:bY,Sqrt:wY,sqsub:xY,sqsube:_Y,sqsubset:SY,sqsubseteq:kY,sqsup:CY,sqsupe:TY,sqsupset:EY,sqsupseteq:LY,square:AY,Square:MY,SquareIntersection:NY,SquareSubset:$Y,SquareSubsetEqual:PY,SquareSuperset:OY,SquareSupersetEqual:RY,SquareUnion:DY,squarf:zY,squ:IY,squf:FY,srarr:HY,Sscr:qY,sscr:BY,ssetmn:WY,ssmile:UY,sstarf:VY,Star:GY,star:jY,starf:KY,straightepsilon:XY,straightphi:YY,strns:ZY,sub:JY,Sub:QY,subdot:tZ,subE:eZ,sube:nZ,subedot:rZ,submult:iZ,subnE:oZ,subne:sZ,subplus:lZ,subrarr:aZ,subset:cZ,Subset:uZ,subseteq:fZ,subseteqq:hZ,SubsetEqual:dZ,subsetneq:pZ,subsetneqq:gZ,subsim:vZ,subsub:mZ,subsup:yZ,succapprox:bZ,succ:wZ,succcurlyeq:xZ,Succeeds:_Z,SucceedsEqual:SZ,SucceedsSlantEqual:kZ,SucceedsTilde:CZ,succeq:TZ,succnapprox:EZ,succneqq:LZ,succnsim:AZ,succsim:MZ,SuchThat:NZ,sum:$Z,Sum:PZ,sung:OZ,sup1:RZ,sup2:DZ,sup3:zZ,sup:IZ,Sup:FZ,supdot:HZ,supdsub:qZ,supE:BZ,supe:WZ,supedot:UZ,Superset:VZ,SupersetEqual:GZ,suphsol:jZ,suphsub:KZ,suplarr:XZ,supmult:YZ,supnE:ZZ,supne:JZ,supplus:QZ,supset:tJ,Supset:eJ,supseteq:nJ,supseteqq:rJ,supsetneq:iJ,supsetneqq:oJ,supsim:sJ,supsub:lJ,supsup:aJ,swarhk:cJ,swarr:uJ,swArr:fJ,swarrow:hJ,swnwar:dJ,szlig:pJ,Tab:gJ,target:vJ,Tau:mJ,tau:yJ,tbrk:bJ,Tcaron:wJ,tcaron:xJ,Tcedil:_J,tcedil:SJ,Tcy:kJ,tcy:CJ,tdot:TJ,telrec:EJ,Tfr:LJ,tfr:AJ,there4:MJ,therefore:NJ,Therefore:$J,Theta:PJ,theta:OJ,thetasym:RJ,thetav:DJ,thickapprox:zJ,thicksim:IJ,ThickSpace:FJ,ThinSpace:HJ,thinsp:qJ,thkap:BJ,thksim:WJ,THORN:UJ,thorn:VJ,tilde:GJ,Tilde:jJ,TildeEqual:KJ,TildeFullEqual:XJ,TildeTilde:YJ,timesbar:ZJ,timesb:JJ,times:QJ,timesd:tQ,tint:eQ,toea:nQ,topbot:rQ,topcir:iQ,top:oQ,Topf:sQ,topf:lQ,topfork:aQ,tosa:cQ,tprime:uQ,trade:fQ,TRADE:hQ,triangle:dQ,triangledown:pQ,triangleleft:gQ,trianglelefteq:vQ,triangleq:mQ,triangleright:yQ,trianglerighteq:bQ,tridot:wQ,trie:xQ,triminus:_Q,TripleDot:SQ,triplus:kQ,trisb:CQ,tritime:TQ,trpezium:EQ,Tscr:LQ,tscr:AQ,TScy:MQ,tscy:NQ,TSHcy:$Q,tshcy:PQ,Tstrok:OQ,tstrok:RQ,twixt:DQ,twoheadleftarrow:zQ,twoheadrightarrow:IQ,Uacute:FQ,uacute:HQ,uarr:qQ,Uarr:BQ,uArr:WQ,Uarrocir:UQ,Ubrcy:VQ,ubrcy:GQ,Ubreve:jQ,ubreve:KQ,Ucirc:XQ,ucirc:YQ,Ucy:ZQ,ucy:JQ,udarr:QQ,Udblac:ttt,udblac:ett,udhar:ntt,ufisht:rtt,Ufr:itt,ufr:ott,Ugrave:stt,ugrave:ltt,uHar:att,uharl:ctt,uharr:utt,uhblk:ftt,ulcorn:htt,ulcorner:dtt,ulcrop:ptt,ultri:gtt,Umacr:vtt,umacr:mtt,uml:ytt,UnderBar:btt,UnderBrace:wtt,UnderBracket:xtt,UnderParenthesis:_tt,Union:Stt,UnionPlus:ktt,Uogon:Ctt,uogon:Ttt,Uopf:Ett,uopf:Ltt,UpArrowBar:Att,uparrow:Mtt,UpArrow:Ntt,Uparrow:$tt,UpArrowDownArrow:Ptt,updownarrow:Ott,UpDownArrow:Rtt,Updownarrow:Dtt,UpEquilibrium:ztt,upharpoonleft:Itt,upharpoonright:Ftt,uplus:Htt,UpperLeftArrow:qtt,UpperRightArrow:Btt,upsi:Wtt,Upsi:Utt,upsih:Vtt,Upsilon:Gtt,upsilon:jtt,UpTeeArrow:Ktt,UpTee:Xtt,upuparrows:Ytt,urcorn:Ztt,urcorner:Jtt,urcrop:Qtt,Uring:tet,uring:eet,urtri:net,Uscr:ret,uscr:iet,utdot:oet,Utilde:set,utilde:aet,utri:cet,utrif:uet,uuarr:fet,Uuml:het,uuml:det,uwangle:pet,vangrt:get,varepsilon:vet,varkappa:met,varnothing:yet,varphi:bet,varpi:wet,varpropto:xet,varr:_et,vArr:ket,varrho:Cet,varsigma:Tet,varsubsetneq:Eet,varsubsetneqq:Let,varsupsetneq:Aet,varsupsetneqq:Met,vartheta:Net,vartriangleleft:$et,vartriangleright:Pet,vBar:Oet,Vbar:Ret,vBarv:Det,Vcy:zet,vcy:Iet,vdash:Fet,vDash:Het,Vdash:qet,VDash:Bet,Vdashl:Wet,veebar:Uet,vee:Vet,Vee:Get,veeeq:jet,vellip:Ket,verbar:Xet,Verbar:Yet,vert:Zet,Vert:Jet,VerticalBar:Qet,VerticalLine:tnt,VerticalSeparator:ent,VerticalTilde:nnt,VeryThinSpace:rnt,Vfr:int,vfr:ont,vltri:snt,vnsub:lnt,vnsup:ant,Vopf:cnt,vopf:unt,vprop:fnt,vrtri:hnt,Vscr:dnt,vscr:pnt,vsubnE:gnt,vsubne:vnt,vsupnE:mnt,vsupne:ynt,Vvdash:bnt,vzigzag:wnt,Wcirc:xnt,wcirc:_nt,wedbar:Snt,wedge:knt,Wedge:Cnt,wedgeq:Tnt,weierp:Ent,Wfr:Lnt,wfr:Ant,Wopf:Mnt,wopf:Nnt,wp:$nt,wr:Pnt,wreath:Ont,Wscr:Rnt,wscr:Dnt,xcap:znt,xcirc:Int,xcup:Fnt,xdtri:Hnt,Xfr:qnt,xfr:Bnt,xharr:Wnt,xhArr:Unt,Xi:Vnt,xi:Gnt,xlarr:jnt,xlArr:Knt,xmap:Xnt,xnis:Ynt,xodot:Znt,Xopf:Jnt,xopf:Qnt,xoplus:trt,xotime:ert,xrarr:nrt,xrArr:rrt,Xscr:irt,xscr:ort,xsqcup:srt,xuplus:lrt,xutri:art,xvee:crt,xwedge:urt,Yacute:frt,yacute:hrt,YAcy:drt,yacy:prt,Ycirc:grt,ycirc:vrt,Ycy:mrt,ycy:yrt,yen:brt,Yfr:wrt,yfr:xrt,YIcy:_rt,yicy:Srt,Yopf:krt,yopf:Crt,Yscr:Trt,yscr:Ert,YUcy:Lrt,yucy:Art,yuml:Mrt,Yuml:Nrt,Zacute:$rt,zacute:Prt,Zcaron:Ort,zcaron:Rrt,Zcy:Drt,zcy:zrt,Zdot:Irt,zdot:Frt,zeetrf:Hrt,ZeroWidthSpace:qrt,Zeta:Brt,zeta:Wrt,zfr:Urt,Zfr:Vrt,ZHcy:Grt,zhcy:jrt,zigrarr:Krt,zopf:Xrt,Zopf:Yrt,Zscr:Zrt,zscr:Jrt,zwj:Qrt,zwnj:tit},eit="Á",nit="á",rit="Â",iit="â",oit="´",sit="Æ",lit="æ",ait="À",cit="à",uit="&",fit="&",hit="Å",dit="å",pit="Ã",git="ã",vit="Ä",mit="ä",yit="¦",bit="Ç",wit="ç",xit="¸",_it="¢",Sit="©",kit="©",Cit="¤",Tit="°",Eit="÷",Lit="É",Ait="é",Mit="Ê",Nit="ê",$it="È",Pit="è",Oit="Ð",Rit="ð",Dit="Ë",zit="ë",Iit="½",Fit="¼",Hit="¾",qit=">",Bit=">",Wit="Í",Uit="í",Vit="Î",Git="î",jit="¡",Kit="Ì",Xit="ì",Yit="¿",Zit="Ï",Jit="ï",Qit="«",tot="<",eot="<",not="¯",rot="µ",iot="·",oot=" ",sot="¬",lot="Ñ",aot="ñ",cot="Ó",uot="ó",fot="Ô",hot="ô",dot="Ò",pot="ò",got="ª",vot="º",mot="Ø",yot="ø",bot="Õ",wot="õ",xot="Ö",_ot="ö",Sot="¶",kot="±",Cot="£",Tot='"',Eot='"',Lot="»",Aot="®",Mot="®",Not="§",$ot="",Pot="¹",Oot="²",Rot="³",Dot="ß",zot="Þ",Iot="þ",Fot="×",Hot="Ú",qot="ú",Bot="Û",Wot="û",Uot="Ù",Vot="ù",Got="¨",jot="Ü",Kot="ü",Xot="Ý",Yot="ý",Zot="¥",Jot="ÿ",Qot={Aacute:eit,aacute:nit,Acirc:rit,acirc:iit,acute:oit,AElig:sit,aelig:lit,Agrave:ait,agrave:cit,amp:uit,AMP:fit,Aring:hit,aring:dit,Atilde:pit,atilde:git,Auml:vit,auml:mit,brvbar:yit,Ccedil:bit,ccedil:wit,cedil:xit,cent:_it,copy:Sit,COPY:kit,curren:Cit,deg:Tit,divide:Eit,Eacute:Lit,eacute:Ait,Ecirc:Mit,ecirc:Nit,Egrave:$it,egrave:Pit,ETH:Oit,eth:Rit,Euml:Dit,euml:zit,frac12:Iit,frac14:Fit,frac34:Hit,gt:qit,GT:Bit,Iacute:Wit,iacute:Uit,Icirc:Vit,icirc:Git,iexcl:jit,Igrave:Kit,igrave:Xit,iquest:Yit,Iuml:Zit,iuml:Jit,laquo:Qit,lt:tot,LT:eot,macr:not,micro:rot,middot:iot,nbsp:oot,not:sot,Ntilde:lot,ntilde:aot,Oacute:cot,oacute:uot,Ocirc:fot,ocirc:hot,Ograve:dot,ograve:pot,ordf:got,ordm:vot,Oslash:mot,oslash:yot,Otilde:bot,otilde:wot,Ouml:xot,ouml:_ot,para:Sot,plusmn:kot,pound:Cot,quot:Tot,QUOT:Eot,raquo:Lot,reg:Aot,REG:Mot,sect:Not,shy:$ot,sup1:Pot,sup2:Oot,sup3:Rot,szlig:Dot,THORN:zot,thorn:Iot,times:Fot,Uacute:Hot,uacute:qot,Ucirc:Bot,ucirc:Wot,Ugrave:Uot,ugrave:Vot,uml:Got,Uuml:jot,uuml:Kot,Yacute:Xot,yacute:Yot,yen:Zot,yuml:Jot},tst="&",est="'",nst=">",rst="<",ist='"',Gy={amp:tst,apos:est,gt:nst,lt:rst,quot:ist};var Yh={};const ost={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 sst=ho&&ho.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yh,"__esModule",{value:!0});var Bv=sst(ost),lst=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function ast(t){return t>=55296&&t<=57343||t>1114111?"�":(t in Bv.default&&(t=Bv.default[t]),lst(t))}Yh.default=ast;var tu=ho&&ho.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.decodeHTML=Gr.decodeHTMLStrict=Gr.decodeXML=void 0;var ih=tu(Vy),cst=tu(Qot),ust=tu(Gy),Wv=tu(Yh),fst=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Gr.decodeXML=jy(ust.default);Gr.decodeHTMLStrict=jy(ih.default);function jy(t){var e=Ky(t);return function(r){return String(r).replace(fst,e)}}var Uv=function(t,e){return t<e?1:-1};Gr.decodeHTML=function(){for(var t=Object.keys(cst.default).sort(Uv),e=Object.keys(ih.default).sort(Uv),r=0,o=0;r<e.length;r++)t[o]===e[r]?(e[r]+=";?",o++):e[r]+=";";var s=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=Ky(ih.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(s,f)}}();function Ky(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Wv.default(parseInt(r.substr(3),16)):Wv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Dn={},Xy=ho&&ho.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.escapeUTF8=Dn.escape=Dn.encodeNonAsciiHTML=Dn.encodeHTML=Dn.encodeXML=void 0;var hst=Xy(Gy),Yy=Jy(hst.default),Zy=Qy(Yy);Dn.encodeXML=nb(Yy);var dst=Xy(Vy),Zh=Jy(dst.default),pst=Qy(Zh);Dn.encodeHTML=vst(Zh,pst);Dn.encodeNonAsciiHTML=nb(Zh);function Jy(t){return Object.keys(t).sort().reduce(function(e,r){return e[t[r]]="&"+r+";",e},{})}function Qy(t){for(var e=[],r=[],o=0,s=Object.keys(t);o<s.length;o++){var u=s[o];u.length===1?e.push("\\"+u):r.push(u)}e.sort();for(var f=0;f<e.length-1;f++){for(var h=f;h<e.length-1&&e[h].charCodeAt(1)+1===e[h+1].charCodeAt(1);)h+=1;var d=1+h-f;d<3||e.splice(f,d,e[f]+"-"+e[h])}return r.unshift("["+e.join("")+"]"),new RegExp(r.join("|"),"g")}var tb=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,gst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function eu(t){return"&#x"+(t.length>1?gst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function vst(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(tb,eu)}}var eb=new RegExp(Zy.source+"|"+tb.source,"g");function mst(t){return t.replace(eb,eu)}Dn.escape=mst;function yst(t){return t.replace(Zy,eu)}Dn.escapeUTF8=yst;function nb(t){return function(e){return e.replace(eb,function(r){return t[r]||eu(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var e=Gr,r=Dn;function o(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTML)(d)}t.decode=o;function s(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTMLStrict)(d)}t.decodeStrict=s;function u(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=u;var f=Dn;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=Gr;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(Uy);function bst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wst(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function xst(t,e,r){return e&&wst(t.prototype,e),t}function rb(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_st(t))||e){r&&(t=r);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return u=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function _st(t,e){if(t){if(typeof t=="string")return Vv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vv(t,e)}}function Vv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var Sst=Uy,Gv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:kst()};function kst(){var t={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 Fa(0,5).forEach(function(e){Fa(0,5).forEach(function(r){Fa(0,5).forEach(function(o){return Cst(e,r,o,t)})})}),Fa(0,23).forEach(function(e){var r=e+232,o=ib(e*10+8);t[r]="#"+o+o+o}),t}function Cst(t,e,r,o){var s=16+t*36+e*6+r,u=t>0?t*40+55:0,f=e>0?e*40+55:0,h=r>0?r*40+55:0;o[s]=Tst([u,f,h])}function ib(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function Tst(t){var e=[],r=rb(t),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;e.push(ib(s))}}catch(u){r.e(u)}finally{r.f()}return"#"+e.join("")}function jv(t,e,r,o){var s;return e==="text"?s=Mst(r,o):e==="display"?s=Lst(t,r,o):e==="xterm256Foreground"?s=nc(t,o.colors[r]):e==="xterm256Background"?s=rc(t,o.colors[r]):e==="rgb"&&(s=Est(t,r)),s}function Est(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),s=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return ec(t,(r===38?"color:#":"background-color:#")+s)}function Lst(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&ob(t)},1:function(){return ki(t,"b")},3:function(){return ki(t,"i")},4:function(){return ki(t,"u")},8:function(){return ec(t,"display:none")},9:function(){return ki(t,"strike")},22:function(){return ec(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Xv(t,"i")},24:function(){return Xv(t,"u")},39:function(){return nc(t,r.fg)},49:function(){return rc(t,r.bg)},53:function(){return ec(t,"text-decoration:overline")}},s;return o[e]?s=o[e]():4<e&&e<7?s=ki(t,"blink"):29<e&&e<38?s=nc(t,r.colors[e-30]):39<e&&e<48?s=rc(t,r.colors[e-40]):89<e&&e<98?s=nc(t,r.colors[8+(e-90)]):99<e&&e<108&&(s=rc(t,r.colors[8+(e-100)])),s}function ob(t){var e=t.slice(0);return t.length=0,e.reverse().map(function(r){return"</"+r+">"}).join("")}function Fa(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function Ast(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function Kv(t){t=parseInt(t,10);var e=null;return t===0?e="all":t===1?e="bold":2<t&&t<5?e="underline":4<t&&t<7?e="blink":t===8?e="hide":t===9?e="strike":29<t&&t<38||t===39||89<t&&t<98?e="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(e="background-color"),e}function Mst(t,e){return e.escapeXML?Sst.encodeXML(t):t}function ki(t,e,r){return r||(r=""),t.push(e),"<".concat(e).concat(r?' style="'.concat(r,'"'):"",">")}function ec(t,e){return ki(t,"span",e)}function nc(t,e){return ki(t,"span","color:"+e)}function rc(t,e){return ki(t,"span","background-color:"+e)}function Xv(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return"</"+e+">"}function Nst(t,e,r){var o=!1,s=3;function u(){return""}function f(F,H){return r("xterm256Foreground",H),""}function h(F,H){return r("xterm256Background",H),""}function d(F){return e.newline?r("display",-1):r("text",F),""}function g(F,H){o=!0,H.trim().length===0&&(H="0"),H=H.trimRight(";").split(";");var ct=rb(H),Y;try{for(ct.s();!(Y=ct.n()).done;){var ht=Y.value;r("display",ht)}}catch(Z){ct.e(Z)}finally{ct.f()}return""}function v(F){return r("text",F),""}function y(F){return r("rgb",F),""}var w=[{pattern:/^\x08+/,sub:u},{pattern:/^\x1b\[[012]?K/,sub:u},{pattern:/^\x1b\[\(B/,sub:u},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{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:g},{pattern:/^\x1b\[\d?J/,sub:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function _(F,H){H>s&&o||(o=!1,t=t.replace(F.pattern,F.sub))}var M=[],A=t,L=A.length;t:for(;L>0;){for(var T=0,E=0,O=w.length;E<O;T=++E){var $=w[T];if(_($,T),t.length!==L){L=t.length;continue t}}if(t.length===L)break;M.push(0),L=t.length}return M}function $st(t,e,r){return e!=="text"&&(t=t.filter(Ast(Kv(r))),t.push({token:e,data:r,category:Kv(r)})),t}var Pst=function(){function t(e){bst(this,t),e=e||{},e.colors&&(e.colors=Object.assign({},Gv.colors,e.colors)),this.options=Object.assign({},Gv,e),this.stack=[],this.stickyStack=[]}return xst(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var d=jv(s,h.token,h.data,u);d&&f.push(d)}),Nst(r.join(""),u,function(h,d){var g=jv(s,h,d,u);g&&f.push(g),u.stream&&(o.stickyStack=$st(o.stickyStack,h,d))}),s.length&&f.push(ob(s)),f.join("")}}]),t}(),Ost=Pst;const Rst=Hy(Ost),Dst=/^[A-Za-z]:\//;function zst(t=""){return t&&t.replace(/\\/g,"/").replace(Dst,e=>e.toUpperCase())}const Ist=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Fst(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Hst=function(...t){t=t.map(o=>zst(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:Fst();!s||s.length===0||(e=`${s}/${e}`,r=Yv(s))}return e=qst(e,!r),r&&!Yv(e)?`/${e}`:e.length>0?e:"."};function qst(t,e){let r="",o=0,s=-1,u=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===h-1||u===1))if(u===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,u=0;continue}else if(r.length>0){r="",o=0,s=h,u=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const Yv=function(t){return Ist.test(t)},Bst=44,Zv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wst=new Uint8Array(64),sb=new Uint8Array(128);for(let t=0;t<Zv.length;t++){const e=Zv.charCodeAt(t);Wst[t]=e,sb[e]=t}function Ust(t){const e=new Int32Array(5),r=[];let o=0;do{const s=Vst(t,o),u=[];let f=!0,h=0;e[0]=0;for(let d=o;d<s;d++){let g;d=Qs(t,d,e,0);const v=e[0];v<h&&(f=!1),h=v,Jv(t,d,s)?(d=Qs(t,d,e,1),d=Qs(t,d,e,2),d=Qs(t,d,e,3),Jv(t,d,s)?(d=Qs(t,d,e,4),g=[v,e[1],e[2],e[3],e[4]]):g=[v,e[1],e[2],e[3]]):g=[v],u.push(g)}f||Gst(u),r.push(u),o=s+1}while(o<=t.length);return r}function Vst(t,e){const r=t.indexOf(";",e);return r===-1?t.length:r}function Qs(t,e,r,o){let s=0,u=0,f=0;do{const d=t.charCodeAt(e++);f=sb[d],s|=(f&31)<<u,u+=5}while(f&32);const h=s&1;return s>>>=1,h&&(s=-2147483648|-s),r[o]+=s,e}function Jv(t,e,r){return e>=r?!1:t.charCodeAt(e)!==Bst}function Gst(t){t.sort(jst)}function jst(t,e){return t[0]-e[0]}const Kst=/^[\w+.-]+:\/\//,Xst=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Yst=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Pe;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(Pe||(Pe={}));function Zst(t){return Kst.test(t)}function Jst(t){return t.startsWith("//")}function lb(t){return t.startsWith("/")}function Qst(t){return t.startsWith("file:")}function Qv(t){return/^[.?#]/.test(t)}function Ha(t){const e=Xst.exec(t);return ab(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function tlt(t){const e=Yst.exec(t),r=e[2];return ab("file:","",e[1]||"","",lb(r)?r:"/"+r,e[3]||"",e[4]||"")}function ab(t,e,r,o,s,u,f){return{scheme:t,user:e,host:r,port:o,path:s,query:u,hash:f,type:Pe.Absolute}}function tm(t){if(Jst(t)){const r=Ha("http:"+t);return r.scheme="",r.type=Pe.SchemeRelative,r}if(lb(t)){const r=Ha("http://foo.com"+t);return r.scheme="",r.host="",r.type=Pe.AbsolutePath,r}if(Qst(t))return tlt(t);if(Zst(t))return Ha(t);const e=Ha("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?Pe.Query:t.startsWith("#")?Pe.Hash:Pe.RelativePath:Pe.Empty,e}function elt(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function nlt(t,e){cb(e,e.type),t.path==="/"?t.path=e.path:t.path=elt(e.path)+t.path}function cb(t,e){const r=e<=Pe.RelativePath,o=t.path.split("/");let s=1,u=0,f=!1;for(let d=1;d<o.length;d++){const g=o[d];if(!g){f=!0;continue}if(f=!1,g!=="."){if(g===".."){u?(f=!0,u--,s--):r&&(o[s++]=g);continue}o[s++]=g,u++}}let h="";for(let d=1;d<s;d++)h+="/"+o[d];(!h||f&&!h.endsWith("/.."))&&(h+="/"),t.path=h}function rlt(t,e){if(!t&&!e)return"";const r=tm(t);let o=r.type;if(e&&o!==Pe.Absolute){const u=tm(e),f=u.type;switch(o){case Pe.Empty:r.hash=u.hash;case Pe.Hash:r.query=u.query;case Pe.Query:case Pe.RelativePath:nlt(r,u);case Pe.AbsolutePath:r.user=u.user,r.host=u.host,r.port=u.port;case Pe.SchemeRelative:r.scheme=u.scheme}f>o&&(o=f)}cb(r,o);const s=r.query+r.hash;switch(o){case Pe.Hash:case Pe.Query:return s;case Pe.RelativePath:{const u=r.path.slice(1);return u?Qv(e||t)&&!Qv(u)?"./"+u+s:u+s:s||"."}case Pe.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function em(t,e){return e&&!e.endsWith("/")&&(e+="/"),rlt(t,e)}function ilt(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const Oi=0,olt=1,slt=2,llt=3,alt=4;function clt(t,e){const r=nm(t,0);if(r===t.length)return t;e||(t=t.slice());for(let o=r;o<t.length;o=nm(t,o+1))t[o]=flt(t[o],e);return t}function nm(t,e){for(let r=e;r<t.length;r++)if(!ult(t[r]))return r;return t.length}function ult(t){for(let e=1;e<t.length;e++)if(t[e][Oi]<t[e-1][Oi])return!1;return!0}function flt(t,e){return e||(t=t.slice()),t.sort(hlt)}function hlt(t,e){return t[Oi]-e[Oi]}let xc=!1;function dlt(t,e,r,o){for(;r<=o;){const s=r+(o-r>>1),u=t[s][Oi]-e;if(u===0)return xc=!0,s;u<0?r=s+1:o=s-1}return xc=!1,r-1}function plt(t,e,r){for(let o=r+1;o<t.length&&t[o][Oi]===e;r=o++);return r}function glt(t,e,r){for(let o=r-1;o>=0&&t[o][Oi]===e;r=o--);return r}function vlt(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function mlt(t,e,r,o){const{lastKey:s,lastNeedle:u,lastIndex:f}=r;let h=0,d=t.length-1;if(o===s){if(e===u)return xc=f!==-1&&t[f][Oi]===e,f;e>=u?h=f===-1?0:f:d=f}return r.lastKey=o,r.lastNeedle=e,r.lastIndex=dlt(t,e,h,d)}const ylt="`line` must be greater than 0 (lines start at line 1)",blt="`column` must be greater than or equal to 0 (columns start at column 0)",rm=-1,wlt=1;class xlt{constructor(e,r){const o=typeof e=="string";if(!o&&e._decodedMemo)return e;const s=o?JSON.parse(e):e,{version:u,file:f,names:h,sourceRoot:d,sources:g,sourcesContent:v}=s;this.version=u,this.file=f,this.names=h||[],this.sourceRoot=d,this.sources=g,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const y=em(d||"",ilt(r));this.resolvedSources=g.map(_=>em(_||"",y));const{mappings:w}=s;typeof w=="string"?(this._encoded=w,this._decoded=void 0):(this._encoded=void 0,this._decoded=clt(w,o)),this._decodedMemo=vlt(),this._bySources=void 0,this._bySourceMemos=void 0}}function _lt(t){var e;return(e=t)._decoded||(e._decoded=Ust(t._encoded))}function Slt(t,e){let{line:r,column:o,bias:s}=e;if(r--,r<0)throw new Error(ylt);if(o<0)throw new Error(blt);const u=_lt(t);if(r>=u.length)return qa(null,null,null,null);const f=u[r],h=klt(f,t._decodedMemo,r,o,s||wlt);if(h===-1)return qa(null,null,null,null);const d=f[h];if(d.length===1)return qa(null,null,null,null);const{names:g,resolvedSources:v}=t;return qa(v[d[olt]],d[slt]+1,d[llt],d.length===5?g[d[alt]]:null)}function qa(t,e,r,o){return{source:t,line:e,column:r,name:o}}function klt(t,e,r,o,s){let u=mlt(t,o,e,r);return xc?u=(s===rm?plt:glt)(t,o,u):s===rm&&u++,u===-1||u===t.length?-1:u}const ub=/^\s*at .*(\S+:\d+|\(native\))/m,Clt=/^(eval@)?(\[native code])?$/,Tlt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chai.js",/__vitest_browser__/];function fb(t){if(!t.includes(":"))return[t];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!r)return[t];let o=r[1];return(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")&&(o=o.slice(typeof process<"u"&&process.platform==="win32"?5:4)),[o,r[2]||void 0,r[3]||void 0]}function Elt(t){let e=t.trim();if(Clt.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,[u,f,h]=fb(e.replace(r,""));return!u||!f||!h?null:{file:u,method:s||"",line:Number.parseInt(f),column:Number.parseInt(h)}}function Llt(t){let e=t.trim();if(!ub.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,u,f]=fb(o?o[1]:r);let h=o&&r||"",d=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!d||!u||!f?null:(h.startsWith("async ")&&(h=h.slice(6)),d.startsWith("file://")&&(d=d.slice(7)),d=Hst(d),h&&(h=h.replace(/__vite_ssr_import_\d+__\./g,"")),{method:h,file:d,line:Number.parseInt(u),column:Number.parseInt(f)})}function Alt(t,e={}){const{ignoreStackEntries:r=Tlt}=e;let o=ub.test(t)?Nlt(t):Mlt(t);return r.length&&(o=o.filter(s=>!r.some(u=>s.file.match(u)))),o.map(s=>{var u;const f=(u=e.getSourceMap)==null?void 0:u.call(e,s.file);if(!f||typeof f!="object"||!f.version)return s;const h=new xlt(f),{line:d,column:g}=Slt(h,s);return d!=null&&g!=null?{...s,line:d,column:g}:s})}function Mlt(t){return t.split(`
|
|
24
|
-
`).map(e=>Elt(e)).filter(qy)}function Nlt(t){return t.split(`
|
|
25
|
-
`).map(e=>Llt(e)).filter(qy)}function $lt(t,e){return e&&t.endsWith(e)}async function hb(t,e,r){const o=encodeURI(`${t}:${e}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Jh(t){return new Rst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}function Plt(t){return t===null||typeof t!="function"&&typeof t!="object"}function db(t){let e=t;if(Plt(t)&&(e={message:String(e).split(/\n/g)[0],stack:String(e),name:""}),!t){const r=new Error("unknown error");e={message:r.message,stack:r.stack,name:""}}return e.stacks=Alt(e.stack||e.stackStr||"",{ignoreStackEntries:[]}),e}function Qh(t){return Um()?(Fx(t),!0):!1}function Mr(t){return typeof t=="function"?t():V(t)}const Olt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Rlt=Object.prototype.toString,Dlt=t=>Rlt.call(t)==="[object Object]",po=()=>{};function td(t,e){function r(...o){return new Promise((s,u)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(s).catch(u)})}return r}const pb=t=>t();function gb(t,e={}){let r,o,s=po;const u=h=>{clearTimeout(h),s(),s=po};return h=>{const d=Mr(t),g=Mr(e.maxWait);return r&&u(r),d<=0||g!==void 0&&g<=0?(o&&(u(o),o=null),Promise.resolve(h())):new Promise((v,y)=>{s=e.rejectOnCancel?y:v,g&&!o&&(o=setTimeout(()=>{r&&u(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&u(o),o=null,v(h())},d)})}}function zlt(...t){let e=0,r,o=!0,s=po,u,f,h,d,g;!Ae(t[0])&&typeof t[0]=="object"?{delay:f,trailing:h=!0,leading:d=!0,rejectOnCancel:g=!1}=t[0]:[f,h=!0,d=!0,g=!1]=t;const v=()=>{r&&(clearTimeout(r),r=void 0,s(),s=po)};return w=>{const _=Mr(f),M=Date.now()-e,A=()=>u=w();return v(),_<=0?(e=Date.now(),A()):(M>_&&(d||!o)?(e=Date.now(),A()):h&&(u=new Promise((L,T)=>{s=g?T:L,r=setTimeout(()=>{e=Date.now(),o=!0,L(A()),v()},Math.max(0,_-M))})),!d&&!r&&(r=setTimeout(()=>o=!0,_)),o=!1,u)}}function Ilt(t=pb){const e=te(!0);function r(){e.value=!1}function o(){e.value=!0}const s=(...u)=>{e.value&&t(...u)};return{isActive:Ic(e),pause:r,resume:o,eventFilter:s}}function Flt(t){return Wl()}function Hlt(...t){if(t.length!==1)return Nh(...t);const e=t[0];return typeof e=="function"?Ic(a0(()=>({get:e,set:po}))):te(e)}function im(t,e=200,r={}){return td(gb(e,r),t)}function qlt(t,e=200,r=!1,o=!0,s=!1){return td(zlt(e,r,o,s),t)}function Blt(t,e=200,r=!0,o=!0){if(e<=0)return t;const s=te(t.value),u=qlt(()=>{s.value=t.value},e,r,o);return je(t,()=>u()),s}function vb(t,e,r={}){const{eventFilter:o=pb,...s}=r;return je(t,td(o,e),s)}function mb(t,e,r={}){const{eventFilter:o,...s}=r,{eventFilter:u,pause:f,resume:h,isActive:d}=Ilt(o);return{stop:vb(t,e,{...s,eventFilter:u}),pause:f,resume:h,isActive:d}}function ed(t,e=!0,r){Flt()?vs(t,r):e?t():jr(t)}function Wlt(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,s=Ae(t),u=te(t);function f(h){if(arguments.length)return u.value=h,u.value;{const d=Mr(r);return u.value=u.value===d?Mr(o):d,u.value}}return s?f:[u,f]}function Ult(t,e,r={}){const{debounce:o=0,maxWait:s=void 0,...u}=r;return vb(t,e,{...u,eventFilter:gb(o,{maxWait:s})})}function Vlt(t,e,r){const o=je(t,(...s)=>(jr(()=>o()),e(...s)),r);return o}function Glt(t,e,r){let o;Ae(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:u=void 0,shallow:f=!0,onError:h=po}=o,d=te(!s),g=f?gs(e):te(e);let v=0;return Dh(async y=>{if(!d.value)return;v++;const w=v;let _=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const M=await t(A=>{y(()=>{u&&(u.value=!1),_||A()})});w===v&&(g.value=M)}catch(M){h(M)}finally{u&&w===v&&(u.value=!1),_=!0}}),s?xt(()=>(d.value=!0,g.value)):g}function _c(t){var e;const r=Mr(t);return(e=r==null?void 0:r.$el)!=null?e:r}const dr=Olt?window:void 0;function hs(...t){let e,r,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,s]=t,e=dr):[e,r,o,s]=t,!e)return po;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const u=[],f=()=>{u.forEach(v=>v()),u.length=0},h=(v,y,w,_)=>(v.addEventListener(y,w,_),()=>v.removeEventListener(y,w,_)),d=je(()=>[_c(e),Mr(s)],([v,y])=>{if(f(),!v)return;const w=Dlt(y)?{...y}:y;u.push(...r.flatMap(_=>o.map(M=>h(v,_,M,w))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return Qh(g),g}function jlt(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function Klt(...t){let e,r,o={};t.length===3?(e=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],o=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:s=dr,eventName:u="keydown",passive:f=!1,dedupe:h=!1}=o,d=jlt(e);return hs(s,u,v=>{v.repeat&&Mr(h)||d(v)&&r(v)},f)}function Xlt(){const t=te(!1),e=Wl();return e&&vs(()=>{t.value=!0},e),t}function yb(t){const e=Xlt();return xt(()=>(e.value,!!t()))}function bb(t,e={}){const{window:r=dr}=e,o=yb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const u=te(!1),f=g=>{u.value=g.matches},h=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},d=Dh(()=>{o.value&&(h(),s=r.matchMedia(Mr(t)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),u.value=s.matches)});return Qh(()=>{d(),h(),s=void 0}),u}const Ba=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wa="__vueuse_ssr_handlers__",Ylt=Zlt();function Zlt(){return Wa in Ba||(Ba[Wa]=Ba[Wa]||{}),Ba[Wa]}function wb(t,e){return Ylt[t]||e}function Jlt(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Qlt={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},om="vueuse-storage";function xb(t,e,r,o={}){var s;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:y=dr,eventFilter:w,onError:_=Z=>{console.error(Z)},initOnMounted:M}=o,A=(v?gs:te)(typeof e=="function"?e():e);if(!r)try{r=wb("getDefaultStorage",()=>{var Z;return(Z=dr)==null?void 0:Z.localStorage})()}catch(Z){_(Z)}if(!r)return A;const L=Mr(e),T=Jlt(L),E=(s=o.serializer)!=null?s:Qlt[T],{pause:O,resume:$}=mb(A,()=>H(A.value),{flush:u,deep:f,eventFilter:w});y&&h&&ed(()=>{hs(y,"storage",Y),hs(y,om,ht),M&&Y()}),M||Y();function F(Z,ut){y&&y.dispatchEvent(new CustomEvent(om,{detail:{key:t,oldValue:Z,newValue:ut,storageArea:r}}))}function H(Z){try{const ut=r.getItem(t);if(Z==null)F(ut,null),r.removeItem(t);else{const ot=E.write(Z);ut!==ot&&(r.setItem(t,ot),F(ut,ot))}}catch(ut){_(ut)}}function ct(Z){const ut=Z?Z.newValue:r.getItem(t);if(ut==null)return d&&L!=null&&r.setItem(t,E.write(L)),L;if(!Z&&g){const ot=E.read(ut);return typeof g=="function"?g(ot,L):T==="object"&&!Array.isArray(ot)?{...L,...ot}:ot}else return typeof ut!="string"?ut:E.read(ut)}function Y(Z){if(!(Z&&Z.storageArea!==r)){if(Z&&Z.key==null){A.value=L;return}if(!(Z&&Z.key!==t)){O();try{(Z==null?void 0:Z.newValue)!==E.write(A.value)&&(A.value=ct(Z))}catch(ut){_(ut)}finally{Z?jr($):$()}}}}function ht(Z){Y(Z.detail)}return A}function _b(t){return bb("(prefers-color-scheme: dark)",t)}function tat(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:s=dr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g,disableTransition:v=!0}=t,y={auto:"",light:"light",dark:"dark",...t.modes||{}},w=_b({window:s}),_=xt(()=>w.value?"dark":"light"),M=d||(f==null?Hlt(o):xb(f,o,u,{window:s,listenToStorageChanges:h})),A=xt(()=>M.value==="auto"?_.value:M.value),L=wb("updateHTMLAttrs",($,F,H)=>{const ct=typeof $=="string"?s==null?void 0:s.document.querySelector($):_c($);if(!ct)return;let Y;if(v&&(Y=s.document.createElement("style"),Y.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(Y)),F==="class"){const ht=H.split(/\s/g);Object.values(y).flatMap(Z=>(Z||"").split(/\s/g)).filter(Boolean).forEach(Z=>{ht.includes(Z)?ct.classList.add(Z):ct.classList.remove(Z)})}else ct.setAttribute(F,H);v&&(s.getComputedStyle(Y).opacity,document.head.removeChild(Y))});function T($){var F;L(e,r,(F=y[$])!=null?F:$)}function E($){t.onChanged?t.onChanged($,T):T($)}je(A,E,{flush:"post",immediate:!0}),ed(()=>E(A.value));const O=xt({get(){return g?M.value:A.value},set($){M.value=$}});try{return Object.assign(O,{store:M,system:_,state:A})}catch{return O}}function eat(t={}){const{valueDark:e="dark",valueLight:r="",window:o=dr}=t,s=tat({...t,onChanged:(h,d)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark",d,h):d(h)},modes:{dark:e,light:r}}),u=xt(()=>s.system?s.system.value:_b({window:o}).value?"dark":"light");return xt({get(){return s.value==="dark"},set(h){const d=h?"dark":"light";u.value===d?s.value="auto":s.value=d}})}function nat(t,e,r={}){const{window:o=dr,...s}=r;let u;const f=yb(()=>o&&"ResizeObserver"in o),h=()=>{u&&(u.disconnect(),u=void 0)},d=xt(()=>Array.isArray(t)?t.map(y=>_c(y)):[_c(t)]),g=je(d,y=>{if(h(),f.value&&o){u=new ResizeObserver(e);for(const w of y)w&&u.observe(w,s)}},{immediate:!0,flush:"post"}),v=()=>{h(),g()};return Qh(v),{isSupported:f,stop:v}}function sm(t,e,r={}){const{window:o=dr}=r;return xb(t,e,o==null?void 0:o.localStorage,r)}function rat(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:u=!0,window:f=dr}=e;if(!f)return kr(r);const h=kr({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",E=T.indexOf("?");return E>0?T.slice(E):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const E=T.toString();if(t==="history")return`${E?`?${E}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${E?`#${E}`:""}`;const O=f.location.hash||"#",$=O.indexOf("?");return $>0?`${O.slice(0,$)}${E?`?${E}`:""}`:`${O}${E?`?${E}`:""}`}function v(){return new URLSearchParams(d())}function y(T){const E=new Set(Object.keys(h));for(const O of T.keys()){const $=T.getAll(O);h[O]=$.length>1?$:T.get(O)||"",E.delete(O)}Array.from(E).forEach(O=>delete h[O])}const{pause:w,resume:_}=mb(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(E=>{const O=h[E];Array.isArray(O)?O.forEach($=>T.append(E,$)):o&&O==null||s&&!O?T.delete(E):T.set(E,O)}),M(T)},{deep:!0});function M(T,E){w(),E&&y(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),_()}function A(){u&&M(v(),!0)}hs(f,"popstate",A,!1),t!=="history"&&hs(f,"hashchange",A,!1);const L=v();return L.keys().next().value?y(L):Object.assign(h,r),h}function iat(t={}){const{window:e=dr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:u=!0}=t,f=te(r),h=te(o),d=()=>{e&&(u?(f.value=e.innerWidth,h.value=e.innerHeight):(f.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};if(d(),ed(d),hs("resize",d,{passive:!0}),s){const g=bb("(orientation: portrait)");je(g,()=>d())}return{width:f,height:h}}const Sb=rat("hash",{initialValue:{file:"",view:null}}),Sr=Nh(Sb,"file"),ir=Nh(Sb,"view");var zn=Uint8Array,Yo=Uint16Array,oat=Int32Array,kb=new zn([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]),Cb=new zn([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]),sat=new zn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tb=function(t,e){for(var r=new Yo(31),o=0;o<31;++o)r[o]=e+=1<<t[o-1];for(var s=new oat(r[30]),o=1;o<30;++o)for(var u=r[o];u<r[o+1];++u)s[u]=u-r[o]<<5|o;return{b:r,r:s}},Eb=Tb(kb,2),Lb=Eb.b,lat=Eb.r;Lb[28]=258,lat[258]=28;var aat=Tb(Cb,0),cat=aat.b,oh=new Yo(32768);for(var xe=0;xe<32768;++xe){var pi=(xe&43690)>>1|(xe&21845)<<1;pi=(pi&52428)>>2|(pi&13107)<<2,pi=(pi&61680)>>4|(pi&3855)<<4,oh[xe]=((pi&65280)>>8|(pi&255)<<8)>>1}var yl=function(t,e,r){for(var o=t.length,s=0,u=new Yo(e);s<o;++s)t[s]&&++u[t[s]-1];var f=new Yo(e);for(s=1;s<e;++s)f[s]=f[s-1]+u[s-1]<<1;var h;if(r){h=new Yo(1<<e);var d=15-e;for(s=0;s<o;++s)if(t[s])for(var g=s<<4|t[s],v=e-t[s],y=f[t[s]-1]++<<v,w=y|(1<<v)-1;y<=w;++y)h[oh[y]>>d]=g}else for(h=new Yo(o),s=0;s<o;++s)t[s]&&(h[s]=oh[f[t[s]-1]++]>>15-t[s]);return h},jl=new zn(288);for(var xe=0;xe<144;++xe)jl[xe]=8;for(var xe=144;xe<256;++xe)jl[xe]=9;for(var xe=256;xe<280;++xe)jl[xe]=7;for(var xe=280;xe<288;++xe)jl[xe]=8;var Ab=new zn(32);for(var xe=0;xe<32;++xe)Ab[xe]=5;var uat=yl(jl,9,1),fat=yl(Ab,5,1),bf=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},or=function(t,e,r){var o=e/8|0;return(t[o]|t[o+1]<<8)>>(e&7)&r},wf=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},hat=function(t){return(t+7)/8|0},Mb=function(t,e,r){return(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length),new zn(t.subarray(e,r))},dat=["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"],Tn=function(t,e,r){var o=new Error(e||dat[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,Tn),!r)throw o;return o},nd=function(t,e,r,o){var s=t.length,u=0;if(!s||e.f&&!e.l)return r||new zn(0);var f=!r,h=f||e.i!=2,d=e.i;f&&(r=new zn(s*3));var g=function(Et){var Kt=r.length;if(Et>Kt){var P=new zn(Math.max(Kt*2,Et));P.set(r),r=P}},v=e.f||0,y=e.p||0,w=e.b||0,_=e.l,M=e.d,A=e.m,L=e.n,T=s*8;do{if(!_){v=or(t,y,1);var E=or(t,y+1,3);if(y+=3,E)if(E==1)_=uat,M=fat,A=9,L=5;else if(E==2){var H=or(t,y,31)+257,ct=or(t,y+10,15)+4,Y=H+or(t,y+5,31)+1;y+=14;for(var ht=new zn(Y),Z=new zn(19),ut=0;ut<ct;++ut)Z[sat[ut]]=or(t,y+ut*3,7);y+=ct*3;for(var ot=bf(Z),j=(1<<ot)-1,I=yl(Z,ot,1),ut=0;ut<Y;){var k=I[or(t,y,j)];y+=k&15;var O=k>>4;if(O<16)ht[ut++]=O;else{var q=0,W=0;for(O==16?(W=3+or(t,y,3),y+=2,q=ht[ut-1]):O==17?(W=3+or(t,y,7),y+=3):O==18&&(W=11+or(t,y,127),y+=7);W--;)ht[ut++]=q}}var Q=ht.subarray(0,H),mt=ht.subarray(H);A=bf(Q),L=bf(mt),_=yl(Q,A,1),M=yl(mt,L,1)}else Tn(1);else{var O=hat(y)+4,$=t[O-4]|t[O-3]<<8,F=O+$;if(F>s){d&&Tn(0);break}h&&g(w+$),r.set(t.subarray(O,F),w),e.b=w+=$,e.p=y=F*8,e.f=v;continue}if(y>T){d&&Tn(0);break}}h&&g(w+131072);for(var Mt=(1<<A)-1,qt=(1<<L)-1,Wt=y;;Wt=y){var q=_[wf(t,y)&Mt],ee=q>>4;if(y+=q&15,y>T){d&&Tn(0);break}if(q||Tn(2),ee<256)r[w++]=ee;else if(ee==256){Wt=y,_=null;break}else{var Qt=ee-254;if(ee>264){var ut=ee-257,Yt=kb[ut];Qt=or(t,y,(1<<Yt)-1)+Lb[ut],y+=Yt}var Tt=M[wf(t,y)&qt],G=Tt>>4;Tt||Tn(3),y+=Tt&15;var mt=cat[G];if(G>3){var Yt=Cb[G];mt+=wf(t,y)&(1<<Yt)-1,y+=Yt}if(y>T){d&&Tn(0);break}h&&g(w+131072);var rt=w+Qt;if(w<mt){var ft=u-mt,Nt=Math.min(mt,rt);for(ft+w<0&&Tn(3);w<Nt;++w)r[w]=o[ft+w]}for(;w<rt;++w)r[w]=r[w-mt]}}e.l=_,e.p=Wt,e.b=w,e.f=v,_&&(v=1,e.m=A,e.d=M,e.n=L)}while(!v);return w!=r.length&&f?Mb(r,0,w):r.subarray(0,w)},pat=new zn(0),gat=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&Tn(6,"invalid gzip data");var e=t[3],r=10;e&4&&(r+=(t[10]|t[11]<<8)+2);for(var o=(e>>3&1)+(e>>4&1);o>0;o-=!t[r++]);return r+(e&2)},vat=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},mat=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Tn(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Tn(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function yat(t,e){return nd(t,{i:2},e,e)}function bat(t,e){var r=gat(t);return r+8>t.length&&Tn(6,"invalid gzip data"),nd(t.subarray(r,-8),{i:2},new zn(vat(t)),e)}function wat(t,e){return nd(t.subarray(mat(t,e),-4),{i:2},e,e)}function xat(t,e){return t[0]==31&&t[1]==139&&t[2]==8?bat(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?yat(t,e):wat(t,e)}var sh=typeof TextDecoder<"u"&&new TextDecoder,_at=0;try{sh.decode(pat,{stream:!0}),_at=1}catch{}var Sat=function(t){for(var e="",r=0;;){var o=t[r++],s=(o>127)+(o>223)+(o>239);if(r+s>t.length)return{s:e,r:Mb(t,r-1)};s?s==3?(o=((o&15)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,e+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?e+=String.fromCharCode((o&31)<<6|t[r++]&63):e+=String.fromCharCode((o&15)<<12|(t[r++]&63)<<6|t[r++]&63):e+=String.fromCharCode(o)}};function kat(t,e){var r;if(sh)return sh.decode(t);var o=Sat(t),s=o.s,r=o.r;return r.length&&Tn(8),s}const xf=()=>{},dn=()=>Promise.resolve();function Cat(){const t=kr({state:new Fy,waitForConnection:f,reconnect:s,ws:new EventTarget});t.state.filesMap=kr(t.state.filesMap),t.state.idMap=kr(t.state.idMap);let e;const r={getFiles:()=>e.files,getPaths:()=>e.paths,getConfig:()=>e.config,getModuleGraph:async h=>e.moduleGraph[h],getUnhandledErrors:()=>e.unhandledErrors,getTransformResult:async h=>({code:h,source:"",map:null}),onDone:xf,onCollected:dn,onTaskUpdate:xf,writeFile:dn,rerun:dn,updateSnapshot:dn,resolveSnapshotPath:dn,snapshotSaved:dn,onAfterSuiteRun:dn,onCancel:dn,getCountOfFailedTests:()=>0,sendLog:dn,resolveSnapshotRawPath:dn,readSnapshotFile:dn,saveSnapshotFile:dn,readTestFile:dn,removeSnapshotFile:dn,onUnhandledError:xf,saveTestFile:dn,getProvidedContext:()=>({})};t.rpc=r;let o;function s(){u()}async function u(){var v;const h=await fetch(window.METADATA_PATH),d=((v=h.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(d.includes("application/gzip")||d.includes("application/x-gzip")){const y=new Uint8Array(await h.arrayBuffer()),w=kat(xat(y));e=nh(w)}else e=nh(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}u();function f(){return o}return t}const Rl=te("idle"),_i=te([]),Oe=function(){return Kr?Cat():$T(RT,{reactive:kr,handlers:{onTaskUpdate(){Rl.value="running"},onFinished(e,r){Rl.value="idle",_i.value=(r||[]).map(db)},onFinishedReportCoverage(){const e=document.querySelector("iframe#vitest-ui-coverage");e instanceof HTMLIFrameElement&&e.contentWindow&&e.contentWindow.location.reload()}}})}();function Tat(t,e){return t.name.localeCompare(e.name)}const rd=gs({}),so=te("CONNECTING"),bn=xt(()=>Oe.state.getFiles().sort(Tat)),Se=xt(()=>bn.value.find(t=>t.id===Sr.value)),Nb=xt(()=>Xh(Se.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function Sc(t){return bn.value.find(e=>e.id===t)}const Eat=xt(()=>so.value==="OPEN"),_f=xt(()=>so.value==="CONNECTING");xt(()=>so.value==="CLOSED");function Lat(t=Oe.state.getFiles()){return $b(t)}function $b(t){return t.forEach(e=>{delete e.result,Xh(e).forEach(r=>delete r.result)}),Oe.rpc.rerun(t.map(e=>e.filepath))}function Aat(){if(Se.value)return $b([Se.value])}je(()=>Oe.ws,t=>{so.value=Kr?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{so.value="OPEN",Oe.state.filesMap.clear();const[e,r,o]=await Promise.all([Oe.rpc.getFiles(),Oe.rpc.getConfig(),Oe.rpc.getUnhandledErrors()]);if(r.standalone){const u=(await Oe.rpc.getTestFiles()).map(([f,h])=>{const d=Iy(r.root,h);return{filepath:h,name:d,id:MT(`${d}${f||""}`),mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:f}});Oe.state.collectFiles(u)}else Oe.state.collectFiles(e);_i.value=(o||[]).map(db),rd.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{so.value==="CONNECTING"&&(so.value="CLOSED")},1e3)})},{immediate:!0});const Mat={"text-2xl":""},Nat=tt("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),$at=he({__name:"ConnectionOverlay",setup(t){return(e,r)=>V(Eat)?Xt("",!0):(at(),St("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>V(Oe).reconnect&&V(Oe).reconnect(...o))},[tt("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ge(V(_f)?"animate-pulse":"")},[tt("div",{text:"5xl",class:ge(V(_f)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),tt("div",Mat,jt(V(_f)?"Connecting...":"Disconnected"),1),Nat],2)]))}});function bl(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Kl=eat(),Pat=Wlt(Kl),Oat={class:"scrolls scrolls-rounded task-error"},Rat=["onClickPassive"],Dat=["innerHTML"],zat=he({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(t){const e=t;function r(f){return f.startsWith(e.root)?f.slice(e.root.length):f}const o=xt(()=>Jh(Kl.value)),s=xt(()=>{var f;return!!((f=e.error)!=null&&f.diff)}),u=xt(()=>e.error.diff?o.value.toHtml(bl(e.error.diff)):void 0);return(f,h)=>{const d=yo("tooltip");return at(),St("div",Oat,[tt("pre",null,[tt("b",null,jt(f.error.name||f.error.nameStr),1),me(": "+jt(f.error.message),1)]),(at(!0),St(ie,null,Rn(f.error.stacks,(g,v)=>(at(),St("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[tt("pre",null," - "+jt(r(g.file))+":"+jt(g.line)+":"+jt(g.column),1),V($lt)(g.file,f.filename)?on((at(),St("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:y=>V(hb)(g.file,g.line,g.column)},null,40,Rat)),[[d,"Open in Editor",void 0,{bottom:!0}]]):Xt("",!0)]))),128)),V(s)?(at(),St("pre",{key:0,"data-testid":"diff",innerHTML:V(u)},null,8,Dat)):Xt("",!0)])}}}),Iat=bo(zat,[["__scopeId","data-v-ffc45ddf"]]),Fat={"h-full":"",class:"scrolls"},Hat={key:0,class:"scrolls scrolls-rounded task-error"},qat=["innerHTML"],Bat={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Wat=he({__name:"ViewReport",props:{file:{}},setup(t){const e=t;function r(f,h){var d;return((d=f.result)==null?void 0:d.state)!=="fail"?[]:f.type==="test"||f.type==="custom"?[{...f,level:h}]:[{...f,level:h},...f.tasks.flatMap(g=>r(g,h+1))]}function o(f,h){var v,y,w;let d="";(v=h.message)!=null&&v.includes("\x1B")&&(d=`<b>${h.nameStr||h.name}</b>: ${f.toHtml(bl(h.message))}`);const g=(y=h.stackStr)==null?void 0:y.includes("\x1B");return(g||(w=h.stack)!=null&&w.includes("\x1B"))&&(d.length>0?d+=f.toHtml(bl(g?h.stackStr:h.stack)):d=`<b>${h.nameStr||h.name}</b>: ${h.message}${f.toHtml(bl(g?h.stackStr:h.stack))}`),d.length>0?d:null}function s(f,h){const d=Jh(f);return h.map(g=>{var w;const v=g.result;if(!v)return g;const y=(w=v.errors)==null?void 0:w.map(_=>o(d,_)).filter(_=>_!=null).join("<br><br>");return y!=null&&y.length&&(v.htmlError=y),g})}const u=xt(()=>{var v,y;const f=e.file,h=((v=f==null?void 0:f.tasks)==null?void 0:v.flatMap(w=>r(w,0)))??[],d=f==null?void 0:f.result;if((y=d==null?void 0:d.errors)==null?void 0:y[0]){const w={id:f.id,name:f.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:d};h.unshift(w)}return h.length>0?s(Kl.value,h):h});return(f,h)=>(at(),St("div",Fat,[V(u).length?(at(!0),St(ie,{key:0},Rn(V(u),d=>{var g,v,y;return at(),St("div",{key:d.id},[tt("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:An({"margin-left":`${(g=d.result)!=null&&g.htmlError?.5:2*d.level+.5}rem`})},[me(jt(d.name)+" ",1),(v=d.result)!=null&&v.htmlError?(at(),St("div",Hat,[tt("pre",{innerHTML:d.result.htmlError},null,8,qat)])):(y=d.result)!=null&&y.errors?(at(!0),St(ie,{key:1},Rn(d.result.errors,(w,_)=>{var M;return at(),ne(Iat,{key:_,error:w,filename:(M=f.file)==null?void 0:M.name,root:V(rd).root},null,8,["error","filename","root"])}),128)):Xt("",!0)],4)])}),128)):(at(),St("div",Bat," All tests passed in this file "))]))}}),Uat=bo(Wat,[["__scopeId","data-v-5e7bb715"]]),Vat={border:"b base","p-4":""},Gat=["innerHTML"],jat=he({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(t){function e(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(at(),St("div",Vat,[tt("div",{"text-xs":"","mb-1":"",class:ge(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},jt(e(r.time))+" | "+jt(r.taskName)+" | "+jt(r.type),3),tt("pre",{"data-type":"html",innerHTML:r.content},null,8,Gat)]))}}),kc=xt(()=>bn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Cc=xt(()=>bn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),id=xt(()=>bn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));xt(()=>bn.value.filter(t=>!kc.value.includes(t)&&!Cc.value.includes(t)&&!id.value.includes(t)));xt(()=>id.value.filter(t=>t.mode==="skip"));const lm=xt(()=>bn.value.filter(Qc));xt(()=>id.value.filter(t=>t.mode==="todo"));const Kat=xt(()=>Rl.value==="idle"),nu=xt(()=>Db(bn.value)),Pb=xt(()=>nu.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Ob=xt(()=>nu.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Rb=xt(()=>nu.value.filter(t=>t.mode==="skip"||t.mode==="todo")),Xat=xt(()=>Rb.value.filter(t=>t.mode==="skip")),Yat=xt(()=>Rb.value.filter(t=>t.mode==="todo"));xt(()=>Pb.value.length+Ob.value.length);const Zat=xt(()=>{const t=bn.value.reduce((e,r)=>{var o;return e+=Math.max(0,r.collectDuration||0),e+=Math.max(0,r.setupDuration||0),e+=Math.max(0,((o=r.result)==null?void 0:o.duration)||0),e+=Math.max(0,r.environmentLoad||0),e+=Math.max(0,r.prepareDuration||0),e},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function Jat(t){return t=t||[],Array.isArray(t)?t:[t]}function am(t){return t.type==="test"||t.type==="custom"}function Db(t){const e=[],r=Jat(t);for(const o of r)if(am(o))e.push(o);else for(const s of o.tasks)if(am(s))e.push(s);else{const u=Db(s);for(const f of u)e.push(f)}return e}const Qat={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},tct={key:1,p6:""},ect=tt("pre",{inline:""},"console.log(foo)",-1),nct=he({__name:"ViewConsoleOutput",setup(t){const e=xt(()=>{const o=Nb.value;if(o){const s=Jh(Kl.value);return o.map(({taskId:u,type:f,time:h,content:d})=>({taskId:u,type:f,time:h,content:s.toHtml(bl(d))}))}});function r(o){const s=o&&Oe.state.idMap.get(o);return(s?NT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const u=jat;return(f=V(e))!=null&&f.length?(at(),St("div",Qat,[(at(!0),St(ie,null,Rn(V(e),({taskId:h,type:d,time:g,content:v})=>(at(),St("div",{key:h,"font-mono":""},[Ht(u,{"task-name":r(h),type:d,time:g,content:v},null,8,["task-name","type","time","content"])]))),128))])):(at(),St("p",tct,[me(" Log something in your test and it would print here. (e.g. "),ect,me(") ")]))}}});var Sf={exports:{}},cm;function ms(){return cm||(cm=1,function(t,e){(function(r,o){t.exports=o()})(ho,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),d=u||f||h,g=d&&(u?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),w=!h&&/Chrome\/(\d+)/.exec(r),_=w&&+w[1],M=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),E=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),O=/Android/.test(r),$=E||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),F=E||/Mac/.test(o),H=/\bCrOS\b/.test(r),ct=/win/i.test(o),Y=M&&r.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(M=!1,v=!0);var ht=F&&(y||M&&(Y==null||Y<12.11)),Z=s||d&&g>=9;function ut(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var ot=function(n,i){var a=n.className,l=ut(i).exec(a);if(l){var c=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(c?l[1]+c:"")}};function j(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function I(n,i){return j(n).appendChild(i)}function k(n,i,a,l){var c=document.createElement(n);if(a&&(c.className=a),l&&(c.style.cssText=l),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var p=0;p<i.length;++p)c.appendChild(i[p]);return c}function q(n,i,a,l){var c=k(n,i,a,l);return c.setAttribute("role","presentation"),c}var W;document.createRange?W=function(n,i,a,l){var c=document.createRange();return c.setEnd(l||n,a),c.setStart(n,i),c}:W=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function Q(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function mt(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Mt(n,i){var a=n.className;ut(i).test(a)||(n.className+=(a?" ":"")+i)}function qt(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ut(a[l]).test(i)&&(i+=" "+a[l]);return i}var Wt=function(n){n.select()};E?Wt=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:d&&(Wt=function(n){try{n.select()}catch{}});function ee(n){return n.display.wrapper.ownerDocument}function Qt(n){return Yt(n.display.wrapper)}function Yt(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Tt(n){return ee(n).defaultView}function G(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function rt(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function ft(n,i,a,l,c){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var p=l||0,m=c||0;;){var b=n.indexOf(" ",p);if(b<0||b>=i)return m+(i-p);m+=b-p,m+=a-m%a,p=b+1}}var Nt=function(){this.id=null,this.f=null,this.time=0,this.handler=G(this.onTimeout,this)};Nt.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Nt.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Et(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Kt=50,P={toString:function(){return"CodeMirror.Pass"}},z={scroll:!1},K={origin:"*mouse"},it={origin:"+move"};function nt(n,i,a){for(var l=0,c=0;;){var p=n.indexOf(" ",l);p==-1&&(p=n.length);var m=p-l;if(p==n.length||c+m>=i)return l+Math.min(m,i-c);if(c+=p-l,c+=a-c%a,l=p+1,c>=i)return l}}var vt=[""];function Ct(n){for(;vt.length<=n;)vt.push(st(vt)+" ");return vt[n]}function st(n){return n[n.length-1]}function yt(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function pt(n,i,a){for(var l=0,c=a(i);l<n.length&&a(n[l])<=c;)l++;n.splice(l,0,i)}function At(){}function zt(n,i){var a;return Object.create?a=Object.create(n):(At.prototype=n,a=new At),i&&rt(i,a),a}var Ot=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ft(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ot.test(n))}function Vt(n,i){return i?i.source.indexOf("\\w")>-1&&Ft(n)?!0:i.test(n):Ft(n)}function le(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var oe=/[\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 Jt(n){return n.charCodeAt(0)>=768&&oe.test(n)}function ze(n,i,a){for(;(a<0?i>0:i<n.length)&&Jt(n.charAt(i));)i+=a;return i}function Ke(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var c=(i+a)/2,p=l<0?Math.ceil(c):Math.floor(c);if(p==i)return n(p)?i:a;n(p)?a=p:i=p+l}}function jn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var c=!1,p=0;p<n.length;++p){var m=n[p];(m.from<a&&m.to>i||i==a&&m.to==i)&&(l(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",p),c=!0)}c||l(i,a,"ltr")}var Nn=null;function Kn(n,i,a){var l;Nn=null;for(var c=0;c<n.length;++c){var p=n[c];if(p.from<i&&p.to>i)return c;p.to==i&&(p.from!=p.to&&a=="before"?l=c:Nn=c),p.from==i&&(p.from!=p.to&&a!="before"?l=c:Nn=c)}return l??Nn}var Xe=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,p=/[LRr]/,m=/[Lb1n]/,b=/[1n]/;function x(S,N,D){this.level=S,this.from=N,this.to=D}return function(S,N){var D=N=="ltr"?"L":"R";if(S.length==0||N=="ltr"&&!l.test(S))return!1;for(var U=S.length,B=[],J=0;J<U;++J)B.push(a(S.charCodeAt(J)));for(var lt=0,gt=D;lt<U;++lt){var bt=B[lt];bt=="m"?B[lt]=gt:gt=bt}for(var kt=0,wt=D;kt<U;++kt){var Lt=B[kt];Lt=="1"&&wt=="r"?B[kt]="n":p.test(Lt)&&(wt=Lt,Lt=="r"&&(B[kt]="R"))}for(var Dt=1,Pt=B[0];Dt<U-1;++Dt){var Zt=B[Dt];Zt=="+"&&Pt=="1"&&B[Dt+1]=="1"?B[Dt]="1":Zt==","&&Pt==B[Dt+1]&&(Pt=="1"||Pt=="n")&&(B[Dt]=Pt),Pt=Zt}for(var ve=0;ve<U;++ve){var We=B[ve];if(We==",")B[ve]="N";else if(We=="%"){var _e=void 0;for(_e=ve+1;_e<U&&B[_e]=="%";++_e);for(var kn=ve&&B[ve-1]=="!"||_e<U&&B[_e]=="1"?"1":"N",un=ve;un<_e;++un)B[un]=kn;ve=_e-1}}for(var Me=0,fn=D;Me<U;++Me){var Ge=B[Me];fn=="L"&&Ge=="1"?B[Me]="L":p.test(Ge)&&(fn=Ge)}for(var Ie=0;Ie<U;++Ie)if(c.test(B[Ie])){var Ne=void 0;for(Ne=Ie+1;Ne<U&&c.test(B[Ne]);++Ne);for(var Ee=(Ie?B[Ie-1]:D)=="L",hn=(Ne<U?B[Ne]:D)=="L",Go=Ee==hn?Ee?"L":"R":D,ci=Ie;ci<Ne;++ci)B[ci]=Go;Ie=Ne-1}for(var Qe=[],br,Ue=0;Ue<U;)if(m.test(B[Ue])){var Qu=Ue;for(++Ue;Ue<U&&m.test(B[Ue]);++Ue);Qe.push(new x(0,Qu,Ue))}else{var Fr=Ue,Xi=Qe.length,Yi=N=="rtl"?1:0;for(++Ue;Ue<U&&B[Ue]!="L";++Ue);for(var nn=Fr;nn<Ue;)if(b.test(B[nn])){Fr<nn&&(Qe.splice(Xi,0,new x(1,Fr,nn)),Xi+=Yi);var jo=nn;for(++nn;nn<Ue&&b.test(B[nn]);++nn);Qe.splice(Xi,0,new x(2,jo,nn)),Xi+=Yi,Fr=nn}else++nn;Fr<Ue&&Qe.splice(Xi,0,new x(1,Fr,Ue))}return N=="ltr"&&(Qe[0].level==1&&(br=S.match(/^\s+/))&&(Qe[0].from=br[0].length,Qe.unshift(new x(0,0,br[0].length))),st(Qe).level==1&&(br=S.match(/\s+$/))&&(st(Qe).to-=br[0].length,Qe.push(new x(0,U-br[0].length,U)))),N=="rtl"?Qe.reverse():Qe}}();function Bt(n,i){var a=n.order;return a==null&&(a=n.order=Xe(n.text,i)),a}var Fi=[],Rt=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||Fi).concat(a)}};function $r(n,i){return n._handlers&&n._handlers[i]||Fi}function Ye(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,c=l&&l[i];if(c){var p=Et(c,a);p>-1&&(l[i]=c.slice(0,p).concat(c.slice(p+1)))}}}function ke(n,i){var a=$r(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),c=0;c<a.length;++c)a[c].apply(null,l)}function Ce(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ke(n,a||i.type,n,i),sn(i)||i.codemirrorIgnore}function Fn(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Et(a,i[l])==-1&&a.push(i[l])}function _n(n,i){return $r(n,i).length>0}function Xn(n){n.prototype.on=function(i,a){Rt(this,i,a)},n.prototype.off=function(i,a){Ye(this,i,a)}}function Ze(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function xo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function sn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Zr(n){Ze(n),xo(n)}function bs(n){return n.target||n.srcElement}function Yn(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),F&&n.ctrlKey&&i==1&&(i=3),i}var su=function(){if(d&&g<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),_o;function Jl(n){if(_o==null){var i=k("span","");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(_o=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var a=_o?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ws;function Jr(n){if(ws!=null)return ws;var i=I(n,document.createTextNode("AخA")),a=W(i,0,1).getBoundingClientRect(),l=W(i,1,2).getBoundingClientRect();return j(n),!a||a.left==a.right?!1:ws=l.right-a.right<3}var Hn=`
|
|
26
|
-
|
|
27
|
-
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var c=n.indexOf(`
|
|
28
|
-
`,i);c==-1&&(c=n.length);var p=n.slice(i,n.charAt(c-1)=="\r"?c-1:c),m=p.indexOf("\r");m!=-1?(a.push(p.slice(0,m)),i+=m+1):(a.push(p),i=c+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Qr=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ql=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Zn=null;function lu(n){if(Zn!=null)return Zn;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=W(i,0,1).getBoundingClientRect();return Zn=Math.abs(a.left-l.left)>1}var So={},Jn={};function Qn(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),So[n]=i}function Hi(n,i){Jn[n]=i}function ko(n){if(typeof n=="string"&&Jn.hasOwnProperty(n))n=Jn[n];else if(n&&typeof n.name=="string"&&Jn.hasOwnProperty(n.name)){var i=Jn[n.name];typeof i=="string"&&(i={name:i}),n=zt(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return ko("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return ko("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Co(n,i){i=ko(i);var a=So[i.name];if(!a)return Co(n,"text/plain");var l=a(n,i);if(ti.hasOwnProperty(i.name)){var c=ti[i.name];for(var p in c)c.hasOwnProperty(p)&&(l.hasOwnProperty(p)&&(l["_"+p]=l[p]),l[p]=c[p])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)l[m]=i.modeProps[m];return l}var ti={};function To(n,i){var a=ti.hasOwnProperty(n)?ti[n]:ti[n]={};rt(i,a)}function gr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var c=i[l];c instanceof Array&&(c=c.concat([])),a[l]=c}return a}function xs(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Eo(n,i,a){return n.startState?n.startState(i,a):!0}var Te=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Te.prototype.eol=function(){return this.pos>=this.string.length},Te.prototype.sol=function(){return this.pos==this.lineStart},Te.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Te.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Te.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},Te.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Te.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Te.prototype.skipToEnd=function(){this.pos=this.string.length},Te.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Te.prototype.backUp=function(n){this.pos-=n},Te.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ft(this.string,this.lineStart,this.tabSize):0)},Te.prototype.indentation=function(){return ft(this.string,null,this.tabSize)-(this.lineStart?ft(this.string,this.lineStart,this.tabSize):0)},Te.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(m){return a?m.toLowerCase():m},c=this.string.substr(this.pos,n.length);if(l(c)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var p=this.string.slice(this.pos).match(n);return p&&p.index>0?null:(p&&i!==!1&&(this.pos+=p[0].length),p)}},Te.prototype.current=function(){return this.string.slice(this.start,this.pos)},Te.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Te.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Te.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function $t(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var c=a.children[l],p=c.chunkSize();if(i<p){a=c;break}i-=p}return a.lines[i]}function Pr(n,i,a){var l=[],c=i.line;return n.iter(i.line,a.line+1,function(p){var m=p.text;c==a.line&&(m=m.slice(0,a.ch)),c==i.line&&(m=m.slice(i.ch)),l.push(m),++c}),l}function _s(n,i,a){var l=[];return n.iter(i,a,function(c){l.push(c.text)}),l}function $n(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=Et(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var c=0;l.children[c]!=i;++c)a+=l.children[c].chunkSize();return a+i.first}function R(n,i){var a=n.first;t:do{for(var l=0;l<n.children.length;++l){var c=n.children[l],p=c.height;if(i<p){n=c;continue t}i-=p,a+=c.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var b=n.lines[m],x=b.height;if(i<x)break;i-=x}return a+m}function et(n,i){return i>=n.first&&i<n.first+n.size}function dt(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function X(n,i,a){if(a===void 0&&(a=null),!(this instanceof X))return new X(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _t(n,i){return n.line-i.line||n.ch-i.ch}function ce(n,i){return n.sticky==i.sticky&&_t(n,i)==0}function Fe(n){return X(n.line,n.ch)}function ln(n,i){return _t(n,i)<0?i:n}function Lo(n,i){return _t(n,i)<0?n:i}function yd(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ut(n,i){if(i.line<n.first)return X(n.first,0);var a=n.first+n.size-1;return i.line>a?X(a,$t(n,a).text.length):kw(i,$t(n,i.line).text.length)}function kw(n,i){var a=n.ch;return a==null||a>i?X(n.line,i):a<0?X(n.line,0):n}function bd(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ut(n,i[l]);return a}var ta=function(n,i){this.state=n,this.lookAhead=i},vr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};vr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},vr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},vr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vr.fromSaved=function(n,i,a){return i instanceof ta?new vr(n,gr(n.mode,i.state),a,i.lookAhead):new vr(n,gr(n.mode,i),a)},vr.prototype.save=function(n){var i=n!==!1?gr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ta(i,this.maxLookAhead):i};function wd(n,i,a,l){var c=[n.state.modeGen],p={};Td(n,i.text,n.doc.mode,a,function(S,N){return c.push(S,N)},p,l);for(var m=a.state,b=function(S){a.baseTokens=c;var N=n.state.overlays[S],D=1,U=0;a.state=!0,Td(n,i.text,N.mode,a,function(B,J){for(var lt=D;U<B;){var gt=c[D];gt>B&&c.splice(D,1,B,c[D+1],gt),D+=2,U=Math.min(B,gt)}if(J)if(N.opaque)c.splice(lt,D-lt,B,"overlay "+J),D=lt+2;else for(;lt<D;lt+=2){var bt=c[lt+1];c[lt+1]=(bt?bt+" ":"")+"overlay "+J}},p),a.state=m,a.baseTokens=null,a.baseTokenPos=1},x=0;x<n.state.overlays.length;++x)b(x);return{styles:c,classes:p.bgClass||p.textClass?p:null}}function xd(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Ss(n,C(i)),c=i.text.length>n.options.maxHighlightLength&&gr(n.doc.mode,l.state),p=wd(n,i,l);c&&(l.state=c),i.stateAfter=l.save(!c),i.styles=p.styles,p.classes?i.styleClasses=p.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Ss(n,i,a){var l=n.doc,c=n.display;if(!l.mode.startState)return new vr(l,!0,i);var p=Cw(n,i,a),m=p>l.first&&$t(l,p-1).stateAfter,b=m?vr.fromSaved(l,m,p):new vr(l,Eo(l.mode),p);return l.iter(p,i,function(x){au(n,x.text,b);var S=b.line;x.stateAfter=S==i-1||S%5==0||S>=c.viewFrom&&S<c.viewTo?b.save():null,b.nextLine()}),a&&(l.modeFrontier=b.line),b}function au(n,i,a,l){var c=n.doc.mode,p=new Te(i,n.options.tabSize,a);for(p.start=p.pos=l||0,i==""&&_d(c,a.state);!p.eol();)cu(c,p,a.state),p.start=p.pos}function _d(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=xs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function cu(n,i,a,l){for(var c=0;c<10;c++){l&&(l[0]=xs(n,a).mode);var p=n.token(i,a);if(i.pos>i.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var Sd=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function kd(n,i,a,l){var c=n.doc,p=c.mode,m;i=Ut(c,i);var b=$t(c,i.line),x=Ss(n,i.line,a),S=new Te(b.text,n.options.tabSize,x),N;for(l&&(N=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=cu(p,S,x.state),l&&N.push(new Sd(S,m,gr(c.mode,x.state)));return l?N:new Sd(S,m,x.state)}function Cd(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function Td(n,i,a,l,c,p,m){var b=a.flattenSpans;b==null&&(b=n.options.flattenSpans);var x=0,S=null,N=new Te(i,n.options.tabSize,l),D,U=n.options.addModeClass&&[null];for(i==""&&Cd(_d(a,l.state),p);!N.eol();){if(N.pos>n.options.maxHighlightLength?(b=!1,m&&au(n,i,l,N.pos),N.pos=i.length,D=null):D=Cd(cu(a,N,l.state,U),p),U){var B=U[0].name;B&&(D="m-"+(D?B+" "+D:B))}if(!b||S!=D){for(;x<N.start;)x=Math.min(N.start,x+5e3),c(x,S);S=D}N.start=N.pos}for(;x<N.pos;){var J=Math.min(N.pos,x+5e3);c(J,S),x=J}}function Cw(n,i,a){for(var l,c,p=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),b=i;b>m;--b){if(b<=p.first)return p.first;var x=$t(p,b-1),S=x.stateAfter;if(S&&(!a||b+(S instanceof ta?S.lookAhead:0)<=p.modeFrontier))return b;var N=ft(x.text,null,n.options.tabSize);(c==null||l>N)&&(c=b-1,l=N)}return c}function Tw(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var c=$t(n,l).stateAfter;if(c&&(!(c instanceof ta)||l+c.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Ed=!1,Or=!1;function Ew(){Ed=!0}function Lw(){Or=!0}function ea(n,i,a){this.marker=n,this.from=i,this.to=a}function ks(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function Aw(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function Mw(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function Nw(n,i,a){var l;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,b=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);if(b||p.from==i&&m.type=="bookmark"&&(!a||!p.marker.insertLeft)){var x=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);(l||(l=[])).push(new ea(m,p.from,x?null:p.to))}}return l}function $w(n,i,a){var l;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,b=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);if(b||p.from==i&&m.type=="bookmark"&&(!a||p.marker.insertLeft)){var x=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);(l||(l=[])).push(new ea(m,x?null:p.from-i,p.to==null?null:p.to-i))}}return l}function uu(n,i){if(i.full)return null;var a=et(n,i.from.line)&&$t(n,i.from.line).markedSpans,l=et(n,i.to.line)&&$t(n,i.to.line).markedSpans;if(!a&&!l)return null;var c=i.from.ch,p=i.to.ch,m=_t(i.from,i.to)==0,b=Nw(a,c,m),x=$w(l,p,m),S=i.text.length==1,N=st(i.text).length+(S?c:0);if(b)for(var D=0;D<b.length;++D){var U=b[D];if(U.to==null){var B=ks(x,U.marker);B?S&&(U.to=B.to==null?null:B.to+N):U.to=c}}if(x)for(var J=0;J<x.length;++J){var lt=x[J];if(lt.to!=null&&(lt.to+=N),lt.from==null){var gt=ks(b,lt.marker);gt||(lt.from=N,S&&(b||(b=[])).push(lt))}else lt.from+=N,S&&(b||(b=[])).push(lt)}b&&(b=Ld(b)),x&&x!=b&&(x=Ld(x));var bt=[b];if(!S){var kt=i.text.length-2,wt;if(kt>0&&b)for(var Lt=0;Lt<b.length;++Lt)b[Lt].to==null&&(wt||(wt=[])).push(new ea(b[Lt].marker,null,null));for(var Dt=0;Dt<kt;++Dt)bt.push(wt);bt.push(x)}return bt}function Ld(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function Pw(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(B){if(B.markedSpans)for(var J=0;J<B.markedSpans.length;++J){var lt=B.markedSpans[J].marker;lt.readOnly&&(!l||Et(l,lt)==-1)&&(l||(l=[])).push(lt)}}),!l)return null;for(var c=[{from:i,to:a}],p=0;p<l.length;++p)for(var m=l[p],b=m.find(0),x=0;x<c.length;++x){var S=c[x];if(!(_t(S.to,b.from)<0||_t(S.from,b.to)>0)){var N=[x,1],D=_t(S.from,b.from),U=_t(S.to,b.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:S.from,to:b.from}),(U>0||!m.inclusiveRight&&!U)&&N.push({from:b.to,to:S.to}),c.splice.apply(c,N),x+=N.length-3}}return c}function Ad(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Md(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function na(n){return n.inclusiveLeft?-1:0}function ra(n){return n.inclusiveRight?1:0}function fu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),c=i.find(),p=_t(l.from,c.from)||na(n)-na(i);if(p)return-p;var m=_t(l.to,c.to)||ra(n)-ra(i);return m||i.id-n.id}function Nd(n,i){var a=Or&&n.markedSpans,l;if(a)for(var c=void 0,p=0;p<a.length;++p)c=a[p],c.marker.collapsed&&(i?c.from:c.to)==null&&(!l||fu(l,c.marker)<0)&&(l=c.marker);return l}function $d(n){return Nd(n,!0)}function ia(n){return Nd(n,!1)}function Ow(n,i){var a=Or&&n.markedSpans,l;if(a)for(var c=0;c<a.length;++c){var p=a[c];p.marker.collapsed&&(p.from==null||p.from<i)&&(p.to==null||p.to>i)&&(!l||fu(l,p.marker)<0)&&(l=p.marker)}return l}function Pd(n,i,a,l,c){var p=$t(n,i),m=Or&&p.markedSpans;if(m)for(var b=0;b<m.length;++b){var x=m[b];if(x.marker.collapsed){var S=x.marker.find(0),N=_t(S.from,a)||na(x.marker)-na(c),D=_t(S.to,l)||ra(x.marker)-ra(c);if(!(N>=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?_t(S.to,a)>=0:_t(S.to,a)>0)||N>=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?_t(S.from,l)<=0:_t(S.from,l)<0)))return!0}}}function tr(n){for(var i;i=$d(n);)n=i.find(-1,!0).line;return n}function Rw(n){for(var i;i=ia(n);)n=i.find(1,!0).line;return n}function Dw(n){for(var i,a;i=ia(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function hu(n,i){var a=$t(n,i),l=tr(a);return a==l?i:C(l)}function Od(n,i){if(i>n.lastLine())return i;var a=$t(n,i),l;if(!ei(n,a))return i;for(;l=ia(a);)a=l.find(1,!0).line;return C(a)+1}function ei(n,i){var a=Or&&i.markedSpans;if(a){for(var l=void 0,c=0;c<a.length;++c)if(l=a[c],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&du(n,i,l))return!0}}}function du(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return du(n,l.line,ks(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var c=void 0,p=0;p<i.markedSpans.length;++p)if(c=i.markedSpans[p],c.marker.collapsed&&!c.marker.widgetNode&&c.from==a.to&&(c.to==null||c.to!=a.from)&&(c.marker.inclusiveLeft||a.marker.inclusiveRight)&&du(n,i,c))return!0}function Rr(n){n=tr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var c=a.lines[l];if(c==n)break;i+=c.height}for(var p=a.parent;p;a=p,p=a.parent)for(var m=0;m<p.children.length;++m){var b=p.children[m];if(b==a)break;i+=b.height}return i}function oa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=$d(l);){var c=a.find(0,!0);l=c.from.line,i+=c.from.ch-c.to.ch}for(l=n;a=ia(l);){var p=a.find(0,!0);i-=l.text.length-p.from.ch,l=p.to.line,i+=l.text.length-p.to.ch}return i}function pu(n){var i=n.display,a=n.doc;i.maxLine=$t(a,a.first),i.maxLineLength=oa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var c=oa(l);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=l)})}var Ao=function(n,i,a){this.text=n,Md(this,i),this.height=a?a(this):1};Ao.prototype.lineNo=function(){return C(this)},Xn(Ao);function zw(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Ad(n),Md(n,a);var c=l?l(n):1;c!=n.height&&$n(n,c)}function Iw(n){n.parent=null,Ad(n)}var Fw={},Hw={};function Rd(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?Hw:Fw;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Dd(n,i){var a=q("span",null,null,v?"padding-right: .1px":null),l={pre:q("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var p=c?i.rest[c-1]:i.line,m=void 0;l.pos=0,l.addToken=Bw,Jr(n.display.measure)&&(m=Bt(p,n.doc.direction))&&(l.addToken=Uw(l.addToken,m)),l.map=[];var b=i!=n.display.externalMeasured&&C(p);Vw(p,l,xd(n,p,b)),p.styleClasses&&(p.styleClasses.bgClass&&(l.bgClass=qt(p.styleClasses.bgClass,l.bgClass||"")),p.styleClasses.textClass&&(l.textClass=qt(p.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Jl(n.display.measure))),c==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var x=l.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ke(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=qt(l.pre.className,l.textClass||"")),l}function qw(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Bw(n,i,a,l,c,p,m){if(i){var b=n.splitSpaces?Ww(i,n.trailingSpace):i,x=n.cm.state.specialChars,S=!1,N;if(!x.test(i))n.col+=i.length,N=document.createTextNode(b),n.map.push(n.pos,n.pos+i.length,N),d&&g<9&&(S=!0),n.pos+=i.length;else{N=document.createDocumentFragment();for(var D=0;;){x.lastIndex=D;var U=x.exec(i),B=U?U.index-D:i.length-D;if(B){var J=document.createTextNode(b.slice(D,D+B));d&&g<9?N.appendChild(k("span",[J])):N.appendChild(J),n.map.push(n.pos,n.pos+B,J),n.col+=B,n.pos+=B}if(!U)break;D+=B+1;var lt=void 0;if(U[0]==" "){var gt=n.cm.options.tabSize,bt=gt-n.col%gt;lt=N.appendChild(k("span",Ct(bt),"cm-tab")),lt.setAttribute("role","presentation"),lt.setAttribute("cm-text"," "),n.col+=bt}else U[0]=="\r"||U[0]==`
|
|
29
|
-
`?(lt=N.appendChild(k("span",U[0]=="\r"?"␍":"","cm-invalidchar")),lt.setAttribute("cm-text",U[0]),n.col+=1):(lt=n.cm.options.specialCharPlaceholder(U[0]),lt.setAttribute("cm-text",U[0]),d&&g<9?N.appendChild(k("span",[lt])):N.appendChild(lt),n.col+=1);n.map.push(n.pos,n.pos+1,lt),n.pos++}}if(n.trailingSpace=b.charCodeAt(i.length-1)==32,a||l||c||S||p||m){var kt=a||"";l&&(kt+=l),c&&(kt+=c);var wt=k("span",[N],kt,p);if(m)for(var Lt in m)m.hasOwnProperty(Lt)&&Lt!="style"&&Lt!="class"&&wt.setAttribute(Lt,m[Lt]);return n.content.appendChild(wt)}n.content.appendChild(N)}}function Ww(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",c=0;c<n.length;c++){var p=n.charAt(c);p==" "&&a&&(c==n.length-1||n.charCodeAt(c+1)==32)&&(p=" "),l+=p,a=p==" "}return l}function Uw(n,i){return function(a,l,c,p,m,b,x){c=c?c+" cm-force-border":"cm-force-border";for(var S=a.pos,N=S+l.length;;){for(var D=void 0,U=0;U<i.length&&(D=i[U],!(D.to>S&&D.from<=S));U++);if(D.to>=N)return n(a,l,c,p,m,b,x);n(a,l.slice(0,D.to-S),c,p,null,b,x),p=null,l=l.slice(D.to-S),S=D.to}}}function zd(n,i,a,l){var c=!l&&a.widgetNode;c&&n.map.push(n.pos,n.pos+i,c),!l&&n.cm.display.input.needsContentAttribute&&(c||(c=n.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",a.id)),c&&(n.cm.display.input.setUneditable(c),n.content.appendChild(c)),n.pos+=i,n.trailingSpace=!1}function Vw(n,i,a){var l=n.markedSpans,c=n.text,p=0;if(!l){for(var m=1;m<a.length;m+=2)i.addToken(i,c.slice(p,p=a[m]),Rd(a[m+1],i.cm.options));return}for(var b=c.length,x=0,S=1,N="",D,U,B=0,J,lt,gt,bt,kt;;){if(B==x){J=lt=gt=U="",kt=null,bt=null,B=1/0;for(var wt=[],Lt=void 0,Dt=0;Dt<l.length;++Dt){var Pt=l[Dt],Zt=Pt.marker;if(Zt.type=="bookmark"&&Pt.from==x&&Zt.widgetNode)wt.push(Zt);else if(Pt.from<=x&&(Pt.to==null||Pt.to>x||Zt.collapsed&&Pt.to==x&&Pt.from==x)){if(Pt.to!=null&&Pt.to!=x&&B>Pt.to&&(B=Pt.to,lt=""),Zt.className&&(J+=" "+Zt.className),Zt.css&&(U=(U?U+";":"")+Zt.css),Zt.startStyle&&Pt.from==x&&(gt+=" "+Zt.startStyle),Zt.endStyle&&Pt.to==B&&(Lt||(Lt=[])).push(Zt.endStyle,Pt.to),Zt.title&&((kt||(kt={})).title=Zt.title),Zt.attributes)for(var ve in Zt.attributes)(kt||(kt={}))[ve]=Zt.attributes[ve];Zt.collapsed&&(!bt||fu(bt.marker,Zt)<0)&&(bt=Pt)}else Pt.from>x&&B>Pt.from&&(B=Pt.from)}if(Lt)for(var We=0;We<Lt.length;We+=2)Lt[We+1]==B&&(lt+=" "+Lt[We]);if(!bt||bt.from==x)for(var _e=0;_e<wt.length;++_e)zd(i,0,wt[_e]);if(bt&&(bt.from||0)==x){if(zd(i,(bt.to==null?b+1:bt.to)-x,bt.marker,bt.from==null),bt.to==null)return;bt.to==x&&(bt=!1)}}if(x>=b)break;for(var kn=Math.min(b,B);;){if(N){var un=x+N.length;if(!bt){var Me=un>kn?N.slice(0,kn-x):N;i.addToken(i,Me,D?D+J:J,gt,x+Me.length==B?lt:"",U,kt)}if(un>=kn){N=N.slice(kn-x),x=kn;break}x=un,gt=""}N=c.slice(p,p=a[S++]),D=Rd(a[S++],i.cm.options)}}}function Id(n,i,a){this.line=i,this.rest=Dw(i),this.size=this.rest?C(st(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ei(n,i)}function sa(n,i,a){for(var l=[],c,p=i;p<a;p=c){var m=new Id(n.doc,$t(n.doc,p),p);c=p+m.size,l.push(m)}return l}var Mo=null;function Gw(n){Mo?Mo.ops.push(n):n.ownsGroup=Mo={ops:[n],delayedCallbacks:[]}}function jw(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var c=n.ops[l];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(a<i.length)}function Kw(n,i){var a=n.ownsGroup;if(a)try{jw(a)}finally{Mo=null,i(a)}}var Cs=null;function He(n,i){var a=$r(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),c;Mo?c=Mo.delayedCallbacks:Cs?c=Cs:(c=Cs=[],setTimeout(Xw,0));for(var p=function(b){c.push(function(){return a[b].apply(null,l)})},m=0;m<a.length;++m)p(m)}}function Xw(){var n=Cs;Cs=null;for(var i=0;i<n.length;++i)n[i]()}function Fd(n,i,a,l){for(var c=0;c<i.changes.length;c++){var p=i.changes[c];p=="text"?Zw(n,i):p=="gutter"?qd(n,i,a,l):p=="class"?gu(n,i):p=="widget"&&Jw(n,i,l)}i.changes=null}function Ts(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),d&&g<8&&(n.node.style.zIndex=2)),n.node}function Yw(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Ts(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Hd(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Dd(n,i)}function Zw(n,i){var a=i.text.className,l=Hd(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,gu(n,i)):a&&(i.text.className=a)}function gu(n,i){Yw(n,i),i.line.wrapClass?Ts(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function qd(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var c=Ts(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var p=i.line.gutterMarkers;if(n.options.lineNumbers||p){var m=Ts(i),b=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(b.setAttribute("aria-hidden","true"),n.display.input.setUneditable(b),m.insertBefore(b,i.text),i.line.gutterClass&&(b.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(i.lineNumber=b.appendChild(k("div",dt(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),p)for(var x=0;x<n.display.gutterSpecs.length;++x){var S=n.display.gutterSpecs[x].className,N=p.hasOwnProperty(S)&&p[S];N&&b.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function Jw(n,i,a){i.alignable&&(i.alignable=null);for(var l=ut("CodeMirror-linewidget"),c=i.node.firstChild,p=void 0;c;c=p)p=c.nextSibling,l.test(c.className)&&i.node.removeChild(c);Bd(n,i,a)}function Qw(n,i,a,l){var c=Hd(n,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),gu(n,i),qd(n,i,a,l),Bd(n,i,l),i.node}function Bd(n,i,a){if(Wd(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Wd(n,i.rest[l],i,a,!1)}function Wd(n,i,a,l,c){if(i.widgets)for(var p=Ts(a),m=0,b=i.widgets;m<b.length;++m){var x=b[m],S=k("div",[x.node],"CodeMirror-linewidget"+(x.className?" "+x.className:""));x.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),t1(x,S,a,l),n.display.input.setUneditable(S),c&&x.above?p.insertBefore(S,a.gutter||a.text):p.appendChild(S),He(x,"redraw")}}function t1(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var c=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(c-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=c+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Es(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!Q(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),I(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Dr(n,i){for(var a=bs(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function la(n){return n.lineSpace.offsetTop}function vu(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Ud(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=I(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function mr(n){return Kt-n.display.nativeBarWidth}function qi(n){return n.display.scroller.clientWidth-mr(n)-n.display.barWidth}function mu(n){return n.display.scroller.clientHeight-mr(n)-n.display.barHeight}function e1(n,i,a){var l=n.options.lineWrapping,c=l&&qi(n);if(!i.measure.heights||l&&i.measure.width!=c){var p=i.measure.heights=[];if(l){i.measure.width=c;for(var m=i.text.firstChild.getClientRects(),b=0;b<m.length-1;b++){var x=m[b],S=m[b+1];Math.abs(x.bottom-S.bottom)>2&&p.push((x.bottom+S.top)/2-a.top)}}p.push(a.bottom-a.top)}}function Vd(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var c=0;c<n.rest.length;c++)if(C(n.rest[c])>a)return{map:n.measure.maps[c],cache:n.measure.caches[c],before:!0}}}function n1(n,i){i=tr(i);var a=C(i),l=n.display.externalMeasured=new Id(n.doc,i,a);l.lineN=a;var c=l.built=Dd(n,l);return l.text=c.pre,I(n.display.lineMeasure,c.pre),l}function Gd(n,i,a,l){return yr(n,No(n,i),a,l)}function yu(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[Ui(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function No(n,i){var a=C(i),l=yu(n,a);l&&!l.text?l=null:l&&l.changes&&(Fd(n,l,a,Su(n)),n.curOp.forceUpdate=!0),l||(l=n1(n,i));var c=Vd(l,i,a);return{line:i,view:l,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function yr(n,i,a,l,c){i.before&&(a=-1);var p=a+(l||""),m;return i.cache.hasOwnProperty(p)?m=i.cache[p]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(e1(n,i.view,i.rect),i.hasHeights=!0),m=i1(n,i,a,l),m.bogus||(i.cache[p]=m)),{left:m.left,right:m.right,top:c?m.rtop:m.top,bottom:c?m.rbottom:m.bottom}}var jd={left:0,right:0,top:0,bottom:0};function Kd(n,i,a){for(var l,c,p,m,b,x,S=0;S<n.length;S+=3)if(b=n[S],x=n[S+1],i<b?(c=0,p=1,m="left"):i<x?(c=i-b,p=c+1):(S==n.length-3||i==x&&n[S+3]>i)&&(p=x-b,c=p-1,i>=x&&(m="right")),c!=null){if(l=n[S+2],b==x&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&c==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],m="left";if(a=="right"&&c==x-b)for(;S<n.length-3&&n[S+3]==n[S+4]&&!n[S+5].insertLeft;)l=n[(S+=3)+2],m="right";break}return{node:l,start:c,end:p,collapse:m,coverStart:b,coverEnd:x}}function r1(n,i){var a=jd;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var c=n.length-1;c>=0&&(a=n[c]).left==a.right;c--);return a}function i1(n,i,a,l){var c=Kd(i.map,a,l),p=c.node,m=c.start,b=c.end,x=c.collapse,S;if(p.nodeType==3){for(var N=0;N<4;N++){for(;m&&Jt(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+b<c.coverEnd&&Jt(i.line.text.charAt(c.coverStart+b));)++b;if(d&&g<9&&m==0&&b==c.coverEnd-c.coverStart?S=p.parentNode.getBoundingClientRect():S=r1(W(p,m,b).getClientRects(),l),S.left||S.right||m==0)break;b=m,m=m-1,x="right"}d&&g<11&&(S=o1(n.display.measure,S))}else{m>0&&(x=l="right");var D;n.options.lineWrapping&&(D=p.getClientRects()).length>1?S=D[l=="right"?D.length-1:0]:S=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!S||!S.left&&!S.right)){var U=p.parentNode.getClientRects()[0];U?S={left:U.left,right:U.left+Po(n.display),top:U.top,bottom:U.bottom}:S=jd}for(var B=S.top-i.rect.top,J=S.bottom-i.rect.top,lt=(B+J)/2,gt=i.view.measure.heights,bt=0;bt<gt.length-1&&!(lt<gt[bt]);bt++);var kt=bt?gt[bt-1]:0,wt=gt[bt],Lt={left:(x=="right"?S.right:S.left)-i.rect.left,right:(x=="left"?S.left:S.right)-i.rect.left,top:kt,bottom:wt};return!S.left&&!S.right&&(Lt.bogus=!0),n.options.singleCursorHeightPerLine||(Lt.rtop=B,Lt.rbottom=J),Lt}function o1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!lu(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Xd(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Yd(n){n.display.externalMeasure=null,j(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Xd(n.display.view[i])}function Ls(n){Yd(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Zd(n){return w&&O?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Jd(n){return w&&O?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function bu(n){var i=tr(n),a=i.widgets,l=0;if(a)for(var c=0;c<a.length;++c)a[c].above&&(l+=Es(a[c]));return l}function aa(n,i,a,l,c){if(!c){var p=bu(i);a.top+=p,a.bottom+=p}if(l=="line")return a;l||(l="local");var m=Rr(i);if(l=="local"?m+=la(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var b=n.display.lineSpace.getBoundingClientRect();m+=b.top+(l=="window"?0:Jd(ee(n)));var x=b.left+(l=="window"?0:Zd(ee(n)));a.left+=x,a.right+=x}return a.top+=m,a.bottom+=m,a}function Qd(n,i,a){if(a=="div")return i;var l=i.left,c=i.top;if(a=="page")l-=Zd(ee(n)),c-=Jd(ee(n));else if(a=="local"||!a){var p=n.display.sizer.getBoundingClientRect();l+=p.left,c+=p.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:l-m.left,top:c-m.top}}function ca(n,i,a,l,c){return l||(l=$t(n.doc,i.line)),aa(n,l,Gd(n,l,i.ch,c),a)}function er(n,i,a,l,c,p){l=l||$t(n.doc,i.line),c||(c=No(n,l));function m(J,lt){var gt=yr(n,c,J,lt?"right":"left",p);return lt?gt.left=gt.right:gt.right=gt.left,aa(n,l,gt,a)}var b=Bt(l,n.doc.direction),x=i.ch,S=i.sticky;if(x>=l.text.length?(x=l.text.length,S="before"):x<=0&&(x=0,S="after"),!b)return m(S=="before"?x-1:x,S=="before");function N(J,lt,gt){var bt=b[lt],kt=bt.level==1;return m(gt?J-1:J,kt!=gt)}var D=Kn(b,x,S),U=Nn,B=N(x,D,S=="before");return U!=null&&(B.other=N(x,U,S!="before")),B}function tp(n,i){var a=0;i=Ut(n.doc,i),n.options.lineWrapping||(a=Po(n.display)*i.ch);var l=$t(n.doc,i.line),c=Rr(l)+la(n.display);return{left:a,right:a,top:c,bottom:c+l.height}}function wu(n,i,a,l,c){var p=X(n,i,a);return p.xRel=c,l&&(p.outside=l),p}function xu(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return wu(l.first,0,null,-1,-1);var c=R(l,a),p=l.first+l.size-1;if(c>p)return wu(l.first+l.size-1,$t(l,p).text.length,null,1,1);i<0&&(i=0);for(var m=$t(l,c);;){var b=s1(n,m,c,i,a),x=Ow(m,b.ch+(b.xRel>0||b.outside>0?1:0));if(!x)return b;var S=x.find(1);if(S.line==c)return S;m=$t(l,c=S.line)}}function ep(n,i,a,l){l-=bu(i);var c=i.text.length,p=Ke(function(m){return yr(n,a,m-1).bottom<=l},c,0);return c=Ke(function(m){return yr(n,a,m).top>l},p,c),{begin:p,end:c}}function np(n,i,a,l){a||(a=No(n,i));var c=aa(n,i,yr(n,a,l),"line").top;return ep(n,i,a,c)}function _u(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function s1(n,i,a,l,c){c-=Rr(i);var p=No(n,i),m=bu(i),b=0,x=i.text.length,S=!0,N=Bt(i,n.doc.direction);if(N){var D=(n.options.lineWrapping?a1:l1)(n,i,a,p,N,l,c);S=D.level!=1,b=S?D.from:D.to-1,x=S?D.to:D.from-1}var U=null,B=null,J=Ke(function(Dt){var Pt=yr(n,p,Dt);return Pt.top+=m,Pt.bottom+=m,_u(Pt,l,c,!1)?(Pt.top<=c&&Pt.left<=l&&(U=Dt,B=Pt),!0):!1},b,x),lt,gt,bt=!1;if(B){var kt=l-B.left<B.right-l,wt=kt==S;J=U+(wt?0:1),gt=wt?"after":"before",lt=kt?B.left:B.right}else{!S&&(J==x||J==b)&&J++,gt=J==0?"after":J==i.text.length?"before":yr(n,p,J-(S?1:0)).bottom+m<=c==S?"after":"before";var Lt=er(n,X(a,J,gt),"line",i,p);lt=Lt.left,bt=c<Lt.top?-1:c>=Lt.bottom?1:0}return J=ze(i.text,J,1),wu(a,J,gt,bt,l-lt)}function l1(n,i,a,l,c,p,m){var b=Ke(function(D){var U=c[D],B=U.level!=1;return _u(er(n,X(a,B?U.to:U.from,B?"before":"after"),"line",i,l),p,m,!0)},0,c.length-1),x=c[b];if(b>0){var S=x.level!=1,N=er(n,X(a,S?x.from:x.to,S?"after":"before"),"line",i,l);_u(N,p,m,!0)&&N.top>m&&(x=c[b-1])}return x}function a1(n,i,a,l,c,p,m){var b=ep(n,i,l,m),x=b.begin,S=b.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var N=null,D=null,U=0;U<c.length;U++){var B=c[U];if(!(B.from>=S||B.to<=x)){var J=B.level!=1,lt=yr(n,l,J?Math.min(S,B.to)-1:Math.max(x,B.from)).right,gt=lt<p?p-lt+1e9:lt-p;(!N||D>gt)&&(N=B,D=gt)}}return N||(N=c[c.length-1]),N.from<x&&(N={from:x,to:N.to,level:N.level}),N.to>S&&(N={from:N.from,to:S,level:N.level}),N}var Bi;function $o(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Bi==null){Bi=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Bi.appendChild(document.createTextNode("x")),Bi.appendChild(k("br"));Bi.appendChild(document.createTextNode("x"))}I(n.measure,Bi);var a=Bi.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),j(n.measure),a||1}function Po(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");I(n.measure,a);var l=i.getBoundingClientRect(),c=(l.right-l.left)/10;return c>2&&(n.cachedCharWidth=c),c||10}function Su(n){for(var i=n.display,a={},l={},c=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var b=n.display.gutterSpecs[m].className;a[b]=p.offsetLeft+p.clientLeft+c,l[b]=p.clientWidth}return{fixedPos:ku(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function ku(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function rp(n){var i=$o(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Po(n.display)-3);return function(c){if(ei(n.doc,c))return 0;var p=0;if(c.widgets)for(var m=0;m<c.widgets.length;m++)c.widgets[m].height&&(p+=c.widgets[m].height);return a?p+(Math.ceil(c.text.length/l)||1)*i:p+i}}function Cu(n){var i=n.doc,a=rp(n);i.iter(function(l){var c=a(l);c!=l.height&&$n(l,c)})}function Wi(n,i,a,l){var c=n.display;if(!a&&bs(i).getAttribute("cm-not-content")=="true")return null;var p,m,b=c.lineSpace.getBoundingClientRect();try{p=i.clientX-b.left,m=i.clientY-b.top}catch{return null}var x=xu(n,p,m),S;if(l&&x.xRel>0&&(S=$t(n.doc,x.line).text).length==x.ch){var N=ft(S,S.length,n.options.tabSize)-S.length;x=X(x.line,Math.max(0,Math.round((p-Ud(n.display).left)/Po(n.display))-N))}return x}function Ui(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function an(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var c=n.display;if(l&&a<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=c.viewTo)Or&&hu(n.doc,i)<c.viewTo&&ri(n);else if(a<=c.viewFrom)Or&&Od(n.doc,a+l)>c.viewFrom?ri(n):(c.viewFrom+=l,c.viewTo+=l);else if(i<=c.viewFrom&&a>=c.viewTo)ri(n);else if(i<=c.viewFrom){var p=ua(n,a,a+l,1);p?(c.view=c.view.slice(p.index),c.viewFrom=p.lineN,c.viewTo+=l):ri(n)}else if(a>=c.viewTo){var m=ua(n,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):ri(n)}else{var b=ua(n,i,i,-1),x=ua(n,a,a+l,1);b&&x?(c.view=c.view.slice(0,b.index).concat(sa(n,b.lineN,x.lineN)).concat(c.view.slice(x.index)),c.viewTo+=l):ri(n)}var S=c.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(c.externalMeasured=null))}function ni(n,i,a){n.curOp.viewChanged=!0;var l=n.display,c=n.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var p=l.view[Ui(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Et(m,a)==-1&&m.push(a)}}}function ri(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function ua(n,i,a,l){var c=Ui(n,i),p,m=n.display.view;if(!Or||a==n.doc.first+n.doc.size)return{index:c,lineN:a};for(var b=n.display.viewFrom,x=0;x<c;x++)b+=m[x].size;if(b!=i){if(l>0){if(c==m.length-1)return null;p=b+m[c].size-i,c++}else p=b-i;i+=p,a+=p}for(;hu(n.doc,a)!=a;){if(c==(l<0?0:m.length-1))return null;a+=l*m[c-(l<0?1:0)].size,c+=l}return{index:c,lineN:a}}function c1(n,i,a){var l=n.display,c=l.view;c.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=sa(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=sa(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Ui(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(sa(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,Ui(n,a)))),l.viewTo=a}function ip(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var c=i[l];!c.hidden&&(!c.node||c.changes)&&++a}return a}function As(n){n.display.input.showSelection(n.display.input.prepareSelection())}function op(n,i){i===void 0&&(i=!0);var a=n.doc,l={},c=l.cursors=document.createDocumentFragment(),p=l.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var b=0;b<a.sel.ranges.length;b++)if(!(!i&&b==a.sel.primIndex)){var x=a.sel.ranges[b];if(!(x.from().line>=n.display.viewTo||x.to().line<n.display.viewFrom)){var S=x.empty();if(m){var N=m(n,x);N&&Tu(n,N,c)}else(S||n.options.showCursorWhenSelecting)&&Tu(n,x.head,c);S||u1(n,x,p)}}return l}function Tu(n,i,a){var l=er(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),c=a.appendChild(k("div"," ","CodeMirror-cursor"));if(c.style.left=l.left+"px",c.style.top=l.top+"px",c.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var p=ca(n,i,"div",null,null),m=p.right-p.left;c.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(l.other){var b=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));b.style.display="",b.style.left=l.other.left+"px",b.style.top=l.other.top+"px",b.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function fa(n,i){return n.top-i.top||n.left-i.left}function u1(n,i,a){var l=n.display,c=n.doc,p=document.createDocumentFragment(),m=Ud(n.display),b=m.left,x=Math.max(l.sizerWidth,qi(n)-l.sizer.offsetLeft)-m.right,S=c.direction=="ltr";function N(wt,Lt,Dt,Pt){Lt<0&&(Lt=0),Lt=Math.round(Lt),Pt=Math.round(Pt),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+wt+`px;
|
|
30
|
-
top: `+Lt+"px; width: "+(Dt??x-wt)+`px;
|
|
31
|
-
height: `+(Pt-Lt)+"px"))}function D(wt,Lt,Dt){var Pt=$t(c,wt),Zt=Pt.text.length,ve,We;function _e(Me,fn){return ca(n,X(wt,Me),"div",Pt,fn)}function kn(Me,fn,Ge){var Ie=np(n,Pt,null,Me),Ne=fn=="ltr"==(Ge=="after")?"left":"right",Ee=Ge=="after"?Ie.begin:Ie.end-(/\s/.test(Pt.text.charAt(Ie.end-1))?2:1);return _e(Ee,Ne)[Ne]}var un=Bt(Pt,c.direction);return jn(un,Lt||0,Dt??Zt,function(Me,fn,Ge,Ie){var Ne=Ge=="ltr",Ee=_e(Me,Ne?"left":"right"),hn=_e(fn-1,Ne?"right":"left"),Go=Lt==null&&Me==0,ci=Dt==null&&fn==Zt,Qe=Ie==0,br=!un||Ie==un.length-1;if(hn.top-Ee.top<=3){var Ue=(S?Go:ci)&&Qe,Qu=(S?ci:Go)&&br,Fr=Ue?b:(Ne?Ee:hn).left,Xi=Qu?x:(Ne?hn:Ee).right;N(Fr,Ee.top,Xi-Fr,Ee.bottom)}else{var Yi,nn,jo,tf;Ne?(Yi=S&&Go&&Qe?b:Ee.left,nn=S?x:kn(Me,Ge,"before"),jo=S?b:kn(fn,Ge,"after"),tf=S&&ci&&br?x:hn.right):(Yi=S?kn(Me,Ge,"before"):b,nn=!S&&Go&&Qe?x:Ee.right,jo=!S&&ci&&br?b:hn.left,tf=S?kn(fn,Ge,"after"):x),N(Yi,Ee.top,nn-Yi,Ee.bottom),Ee.bottom<hn.top&&N(b,Ee.bottom,null,hn.top),N(jo,hn.top,tf-jo,hn.bottom)}(!ve||fa(Ee,ve)<0)&&(ve=Ee),fa(hn,ve)<0&&(ve=hn),(!We||fa(Ee,We)<0)&&(We=Ee),fa(hn,We)<0&&(We=hn)}),{start:ve,end:We}}var U=i.from(),B=i.to();if(U.line==B.line)D(U.line,U.ch,B.ch);else{var J=$t(c,U.line),lt=$t(c,B.line),gt=tr(J)==tr(lt),bt=D(U.line,U.ch,gt?J.text.length+1:null).end,kt=D(B.line,gt?0:null,B.ch).start;gt&&(bt.top<kt.top-2?(N(bt.right,bt.top,null,bt.bottom),N(b,kt.top,kt.left,kt.bottom)):N(bt.right,bt.top,kt.left-bt.right,bt.bottom)),bt.bottom<kt.top&&N(b,bt.bottom,null,kt.top)}a.appendChild(p)}function Eu(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Oo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function sp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Au(n))}function Lu(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Oo(n))},100)}function Au(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(ke(n,"focus",n,i),n.state.focused=!0,Mt(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Eu(n))}function Oo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(ke(n,"blur",n,i),n.state.focused=!1,ot(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function ha(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,p=0,m=0;m<i.view.length;m++){var b=i.view[m],x=n.options.lineWrapping,S=void 0,N=0;if(!b.hidden){if(c+=b.line.height,d&&g<8){var D=b.node.offsetTop+b.node.offsetHeight;S=D-a,a=D}else{var U=b.node.getBoundingClientRect();S=U.bottom-U.top,!x&&b.text.firstChild&&(N=b.text.firstChild.getBoundingClientRect().right-U.left-1)}var B=b.line.height-S;if((B>.005||B<-.005)&&(c<l&&(p-=B),$n(b.line,S),lp(b.line),b.rest))for(var J=0;J<b.rest.length;J++)lp(b.rest[J]);if(N>n.display.sizerWidth){var lt=Math.ceil(N/Po(n.display));lt>n.display.maxLineLength&&(n.display.maxLineLength=lt,n.display.maxLine=b.line,n.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function lp(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function da(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-la(n));var c=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,p=R(i,l),m=R(i,c);if(a&&a.ensure){var b=a.ensure.from.line,x=a.ensure.to.line;b<p?(p=b,m=R(i,Rr($t(i,b))+n.wrapper.clientHeight)):Math.min(x,i.lastLine())>=m&&(p=R(i,Rr($t(i,x))-n.wrapper.clientHeight),m=x)}return{from:p,to:Math.max(m,p+1)}}function f1(n,i){if(!Ce(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),c=null,p=a.wrapper.ownerDocument;if(i.top+l.top<0?c=!0:i.bottom+l.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var m=k("div","",null,`position: absolute;
|
|
32
|
-
top: `+(i.top-a.viewOffset-la(n.display))+`px;
|
|
33
|
-
height: `+(i.bottom-i.top+mr(n)+a.barHeight)+`px;
|
|
34
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(c),n.display.lineSpace.removeChild(m)}}}function h1(n,i,a,l){l==null&&(l=0);var c;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?X(i.line,i.ch+1,"before"):i,i=i.ch?X(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,b=er(n,i),x=!a||a==i?b:er(n,a);c={left:Math.min(b.left,x.left),top:Math.min(b.top,x.top)-l,right:Math.max(b.left,x.left),bottom:Math.max(b.bottom,x.bottom)+l};var S=Mu(n,c),N=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(Ns(n,S.scrollTop),Math.abs(n.doc.scrollTop-N)>1&&(m=!0)),S.scrollLeft!=null&&(Vi(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return c}function d1(n,i){var a=Mu(n,i);a.scrollTop!=null&&Ns(n,a.scrollTop),a.scrollLeft!=null&&Vi(n,a.scrollLeft)}function Mu(n,i){var a=n.display,l=$o(n.display);i.top<0&&(i.top=0);var c=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,p=mu(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var b=n.doc.height+vu(a),x=i.top<l,S=i.bottom>b-l;if(i.top<c)m.scrollTop=x?0:i.top;else if(i.bottom>c+p){var N=Math.min(i.top,(S?b:i.bottom)-p);N!=c&&(m.scrollTop=N)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,U=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,B=qi(n)-a.gutters.offsetWidth,J=i.right-i.left>B;return J&&(i.right=i.left+B),i.left<10?m.scrollLeft=0:i.left<U?m.scrollLeft=Math.max(0,i.left+D-(J?0:10)):i.right>B+U-3&&(m.scrollLeft=i.right+(J?0:10)-B),m}function Nu(n,i){i!=null&&(pa(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Ro(n){pa(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Ms(n,i,a){(i!=null||a!=null)&&pa(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function p1(n,i){pa(n),n.curOp.scrollToPos=i}function pa(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=tp(n,i.from),l=tp(n,i.to);ap(n,a,l,i.margin)}}function ap(n,i,a,l){var c=Mu(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});Ms(n,c.scrollLeft,c.scrollTop)}function Ns(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Pu(n,{top:i}),cp(n,i,!0),s&&Pu(n),Os(n,100))}function cp(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function Vi(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,pp(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function $s(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+vu(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+mr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Gi=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=c.tabIndex=-1,n(l),n(c),Rt(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Rt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gi.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var c=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var p=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},Gi.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gi.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gi.prototype.zeroWidthHack=function(){var n=F&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Nt,this.disableVert=new Nt},Gi.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var c=n.getBoundingClientRect(),p=a=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);p!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Gi.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Ps=function(){};Ps.prototype.update=function(){return{bottom:0,right:0}},Ps.prototype.setScrollLeft=function(){},Ps.prototype.setScrollTop=function(){},Ps.prototype.clear=function(){};function Do(n,i){i||(i=$s(n));var a=n.display.barWidth,l=n.display.barHeight;up(n,i);for(var c=0;c<4&&a!=n.display.barWidth||l!=n.display.barHeight;c++)a!=n.display.barWidth&&n.options.lineWrapping&&ha(n),up(n,$s(n)),a=n.display.barWidth,l=n.display.barHeight}function up(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var fp={native:Gi,null:Ps};function hp(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&ot(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new fp[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Rt(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?Vi(n,i):Ns(n,i)},n),n.display.scrollbars.addClass&&Mt(n.display.wrapper,n.display.scrollbars.addClass)}var g1=0;function ji(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++g1,markArrays:null},Gw(n.curOp)}function Ki(n){var i=n.curOp;i&&Kw(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;v1(a)})}function v1(n){for(var i=n.ops,a=0;a<i.length;a++)m1(i[a]);for(var l=0;l<i.length;l++)y1(i[l]);for(var c=0;c<i.length;c++)b1(i[c]);for(var p=0;p<i.length;p++)w1(i[p]);for(var m=0;m<i.length;m++)x1(i[m])}function m1(n){var i=n.cm,a=i.display;S1(i),n.updateMaxLine&&pu(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new ga(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function y1(n){n.updatedDisplay=n.mustUpdate&&$u(n.cm,n.update)}function b1(n){var i=n.cm,a=i.display;n.updatedDisplay&&ha(i),n.barMeasure=$s(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Gd(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+mr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-qi(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function w1(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&Vi(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==mt(Qt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Do(i,n.barMeasure),n.updatedDisplay&&Ru(i,n.barMeasure),n.selectionChanged&&Eu(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&sp(n.cm)}function x1(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&dp(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&cp(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&Vi(i,n.scrollLeft,!0,!0),n.scrollToPos){var c=h1(i,Ut(l,n.scrollToPos.from),Ut(l,n.scrollToPos.to),n.scrollToPos.margin);f1(i,c)}var p=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(p)for(var b=0;b<p.length;++b)p[b].lines.length||ke(p[b],"hide");if(m)for(var x=0;x<m.length;++x)m[x].lines.length&&ke(m[x],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&ke(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Sn(n,i){if(n.curOp)return i();ji(n);try{return i()}finally{Ki(n)}}function qe(n,i){return function(){if(n.curOp)return i.apply(n,arguments);ji(n);try{return i.apply(n,arguments)}finally{Ki(n)}}}function en(n){return function(){if(this.curOp)return n.apply(this,arguments);ji(this);try{return n.apply(this,arguments)}finally{Ki(this)}}}function Be(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);ji(i);try{return n.apply(this,arguments)}finally{Ki(i)}}}function Os(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,G(_1,n))}function _1(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Ss(n,i.highlightFrontier),c=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(p){if(l.line>=n.display.viewFrom){var m=p.styles,b=p.text.length>n.options.maxHighlightLength?gr(i.mode,l.state):null,x=wd(n,p,l,!0);b&&(l.state=b),p.styles=x.styles;var S=p.styleClasses,N=x.classes;N?p.styleClasses=N:S&&(p.styleClasses=null);for(var D=!m||m.length!=p.styles.length||S!=N&&(!S||!N||S.bgClass!=N.bgClass||S.textClass!=N.textClass),U=0;!D&&U<m.length;++U)D=m[U]!=p.styles[U];D&&c.push(l.line),p.stateAfter=l.save(),l.nextLine()}else p.text.length<=n.options.maxHighlightLength&&au(n,p.text,l),p.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Os(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),c.length&&Sn(n,function(){for(var p=0;p<c.length;p++)ni(n,c[p],"text")})}}var ga=function(n,i,a){var l=n.display;this.viewport=i,this.visible=da(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=qi(n),this.force=a,this.dims=Su(n),this.events=[]};ga.prototype.signal=function(n,i){_n(n,i)&&this.events.push(arguments)},ga.prototype.finish=function(){for(var n=0;n<this.events.length;n++)ke.apply(null,this.events[n])};function S1(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=mr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=mr(n)+"px",i.scrollbarsClipped=!0)}function k1(n){if(n.hasFocus())return null;var i=mt(Qt(n));if(!i||!Q(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Tt(n).getSelection();l.anchorNode&&l.extend&&Q(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function C1(n){if(!(!n||!n.activeElt||n.activeElt==mt(Yt(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&Q(document.body,n.anchorNode)&&Q(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function $u(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return ri(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&ip(n)==0)return!1;gp(n)&&(ri(n),i.dims=Su(n));var c=l.first+l.size,p=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(c,i.visible.to+n.options.viewportMargin);a.viewFrom<p&&p-a.viewFrom<20&&(p=Math.max(l.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(c,a.viewTo)),Or&&(p=hu(n.doc,p),m=Od(n.doc,m));var b=p!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;c1(n,p,m),a.viewOffset=Rr($t(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var x=ip(n);if(!b&&x==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=k1(n);return x>4&&(a.lineDiv.style.display="none"),T1(n,a.updateLineNumbers,i.dims),x>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,C1(S),j(a.cursorDiv),j(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,b&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Os(n,400)),a.updateLineNumbers=null,!0}function dp(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==qi(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+vu(n.display)-mu(n),a.top)}),i.visible=da(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=da(n.display,n.doc,a));if(!$u(n,i))break;ha(n);var c=$s(n);As(n),Do(n,c),Ru(n,c),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function Pu(n,i){var a=new ga(n,i);if($u(n,a)){ha(n),dp(n,a);var l=$s(n);As(n),Do(n,l),Ru(n,l),a.finish()}}function T1(n,i,a){var l=n.display,c=n.options.lineNumbers,p=l.lineDiv,m=p.firstChild;function b(J){var lt=J.nextSibling;return v&&F&&n.display.currentWheelTarget==J?J.style.display="none":J.parentNode.removeChild(J),lt}for(var x=l.view,S=l.viewFrom,N=0;N<x.length;N++){var D=x[N];if(!D.hidden)if(!D.node||D.node.parentNode!=p){var U=Qw(n,D,S,a);p.insertBefore(U,m)}else{for(;m!=D.node;)m=b(m);var B=c&&i!=null&&i<=S&&D.lineNumber;D.changes&&(Et(D.changes,"gutter")>-1&&(B=!1),Fd(n,D,S,a)),B&&(j(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(dt(n.options,S)))),m=D.node.nextSibling}S+=D.size}for(;m;)m=b(m)}function Ou(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",He(n,"gutterChanged",n)}function Ru(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+mr(n)+"px"}function pp(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=ku(i)-i.scroller.scrollLeft+n.doc.scrollLeft,c=i.gutters.offsetWidth,p=l+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=p),a[m].gutterBackground&&(a[m].gutterBackground.style.left=p));var b=a[m].alignable;if(b)for(var x=0;x<b.length;x++)b[x].style.left=p}n.options.fixedGutter&&(i.gutters.style.left=l+c+"px")}}function gp(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=dt(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var c=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=c.firstChild.offsetWidth,m=c.offsetWidth-p;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(p,l.lineGutter.offsetWidth-m)+1,l.lineNumWidth=l.lineNumInnerWidth+m,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Ou(n.display),!0}return!1}function Du(n,i){for(var a=[],l=!1,c=0;c<n.length;c++){var p=n[c],m=null;if(typeof p!="string"&&(m=p.style,p=p.className),p=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:p,style:m})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function vp(n){var i=n.gutters,a=n.gutterSpecs;j(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var c=a[l],p=c.className,m=c.style,b=i.appendChild(k("div",null,"CodeMirror-gutter "+p));m&&(b.style.cssText=m),p=="CodeMirror-linenumbers"&&(n.lineGutter=b,b.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Ou(n)}function Rs(n){vp(n.display),an(n),pp(n)}function E1(n,i,a,l){var c=this;this.input=a,c.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=q("div",null,"CodeMirror-code"),c.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=k("div",null,"CodeMirror-cursors"),c.measure=k("div",null,"CodeMirror-measure"),c.lineMeasure=k("div",null,"CodeMirror-measure"),c.lineSpace=q("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var p=q("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[p],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+Kt+"px; width: 1px;"),c.gutters=k("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=k("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=k("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),w&&_>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),d&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!v&&!(s&&$)&&(c.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(c.wrapper):n(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=Du(l.gutters,l.lineNumbers),vp(c),a.init(c)}var va=0,zr=null;d?zr=-.53:s?zr=15:w?zr=-.7:A&&(zr=-1/3);function mp(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function L1(n){var i=mp(n);return i.x*=zr,i.y*=zr,i}function yp(n,i){w&&_==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=mp(i),l=a.x,c=a.y,p=zr;i.deltaMode===0&&(l=i.deltaX,c=i.deltaY,p=1);var m=n.display,b=m.scroller,x=b.scrollWidth>b.clientWidth,S=b.scrollHeight>b.clientHeight;if(l&&x||c&&S){if(c&&F&&v){t:for(var N=i.target,D=m.view;N!=b;N=N.parentNode)for(var U=0;U<D.length;U++)if(D[U].node==N){n.display.currentWheelTarget=N;break t}}if(l&&!s&&!M&&p!=null){c&&S&&Ns(n,Math.max(0,b.scrollTop+c*p)),Vi(n,Math.max(0,b.scrollLeft+l*p)),(!c||c&&S)&&Ze(i),m.wheelStartX=null;return}if(c&&p!=null){var B=c*p,J=n.doc.scrollTop,lt=J+m.wrapper.clientHeight;B<0?J=Math.max(0,J+B-50):lt=Math.min(n.doc.height,lt+B+50),Pu(n,{top:J,bottom:lt})}va<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=b.scrollLeft,m.wheelStartY=b.scrollTop,m.wheelDX=l,m.wheelDY=c,setTimeout(function(){if(m.wheelStartX!=null){var gt=b.scrollLeft-m.wheelStartX,bt=b.scrollTop-m.wheelStartY,kt=bt&&m.wheelDY&&bt/m.wheelDY||gt&&m.wheelDX&>/m.wheelDX;m.wheelStartX=m.wheelStartY=null,kt&&(zr=(zr*va+kt)/(va+1),++va)}},200)):(m.wheelDX+=l,m.wheelDY+=c))}}var Pn=function(n,i){this.ranges=n,this.primIndex=i};Pn.prototype.primary=function(){return this.ranges[this.primIndex]},Pn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ce(a.anchor,l.anchor)||!ce(a.head,l.head))return!1}return!0},Pn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ue(Fe(this.ranges[i].anchor),Fe(this.ranges[i].head));return new Pn(n,this.primIndex)},Pn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Pn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(_t(i,l.from())>=0&&_t(n,l.to())<=0)return a}return-1};var ue=function(n,i){this.anchor=n,this.head=i};ue.prototype.from=function(){return Lo(this.anchor,this.head)},ue.prototype.to=function(){return ln(this.anchor,this.head)},ue.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function nr(n,i,a){var l=n&&n.options.selectionsMayTouch,c=i[a];i.sort(function(U,B){return _t(U.from(),B.from())}),a=Et(i,c);for(var p=1;p<i.length;p++){var m=i[p],b=i[p-1],x=_t(b.to(),m.from());if(l&&!m.empty()?x>0:x>=0){var S=Lo(b.from(),m.from()),N=ln(b.to(),m.to()),D=b.empty()?m.from()==m.head:b.from()==b.head;p<=a&&--a,i.splice(--p,2,new ue(D?N:S,D?S:N))}}return new Pn(i,a)}function ii(n,i){return new Pn([new ue(n,i||n)],0)}function oi(n){return n.text?X(n.from.line+n.text.length-1,st(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function bp(n,i){if(_t(n,i.from)<0)return n;if(_t(n,i.to)<=0)return oi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=oi(i).ch-i.to.ch),X(a,l)}function zu(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var c=n.sel.ranges[l];a.push(new ue(bp(c.anchor,i),bp(c.head,i)))}return nr(n.cm,a,n.sel.primIndex)}function wp(n,i,a){return n.line==i.line?X(a.line,n.ch-i.ch+a.ch):X(a.line+(n.line-i.line),n.ch)}function A1(n,i,a){for(var l=[],c=X(n.first,0),p=c,m=0;m<i.length;m++){var b=i[m],x=wp(b.from,c,p),S=wp(oi(b),c,p);if(c=b.to,p=S,a=="around"){var N=n.sel.ranges[m],D=_t(N.head,N.anchor)<0;l[m]=new ue(D?S:x,D?x:S)}else l[m]=new ue(x,x)}return new Pn(l,n.sel.primIndex)}function Iu(n){n.doc.mode=Co(n.options,n.doc.modeOption),Ds(n)}function Ds(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,Os(n,100),n.state.modeGen++,n.curOp&&an(n)}function xp(n,i){return i.from.ch==0&&i.to.ch==0&&st(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Fu(n,i,a,l){function c(kt){return a?a[kt]:null}function p(kt,wt,Lt){zw(kt,wt,Lt,l),He(kt,"change",kt,i)}function m(kt,wt){for(var Lt=[],Dt=kt;Dt<wt;++Dt)Lt.push(new Ao(S[Dt],c(Dt),l));return Lt}var b=i.from,x=i.to,S=i.text,N=$t(n,b.line),D=$t(n,x.line),U=st(S),B=c(S.length-1),J=x.line-b.line;if(i.full)n.insert(0,m(0,S.length)),n.remove(S.length,n.size-S.length);else if(xp(n,i)){var lt=m(0,S.length-1);p(D,D.text,B),J&&n.remove(b.line,J),lt.length&&n.insert(b.line,lt)}else if(N==D)if(S.length==1)p(N,N.text.slice(0,b.ch)+U+N.text.slice(x.ch),B);else{var gt=m(1,S.length-1);gt.push(new Ao(U+N.text.slice(x.ch),B,l)),p(N,N.text.slice(0,b.ch)+S[0],c(0)),n.insert(b.line+1,gt)}else if(S.length==1)p(N,N.text.slice(0,b.ch)+S[0]+D.text.slice(x.ch),c(0)),n.remove(b.line+1,J);else{p(N,N.text.slice(0,b.ch)+S[0],c(0)),p(D,U+D.text.slice(x.ch),B);var bt=m(1,S.length-1);J>1&&n.remove(b.line+1,J-1),n.insert(b.line+1,bt)}He(n,"change",n,i)}function si(n,i,a){function l(c,p,m){if(c.linked)for(var b=0;b<c.linked.length;++b){var x=c.linked[b];if(x.doc!=p){var S=m&&x.sharedHist;a&&!S||(i(x.doc,S),l(x.doc,c,S))}}}l(n,null,!0)}function _p(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Cu(n),Iu(n),Sp(n),n.options.direction=i.direction,n.options.lineWrapping||pu(n),n.options.mode=i.modeOption,an(n)}function Sp(n){(n.doc.direction=="rtl"?Mt:ot)(n.display.lineDiv,"CodeMirror-rtl")}function M1(n){Sn(n,function(){Sp(n),an(n)})}function ma(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Hu(n,i){var a={from:Fe(i.from),to:oi(i),text:Pr(n,i.from,i.to)};return Tp(n,a,i.from.line,i.to.line+1),si(n,function(l){return Tp(l,a,i.from.line,i.to.line+1)},!0),a}function kp(n){for(;n.length;){var i=st(n);if(i.ranges)n.pop();else break}}function N1(n,i){if(i)return kp(n.done),st(n.done);if(n.done.length&&!st(n.done).ranges)return st(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),st(n.done)}function Cp(n,i,a,l){var c=n.history;c.undone.length=0;var p=+new Date,m,b;if((c.lastOp==l||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>p-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=N1(c,c.lastOp==l)))b=st(m.changes),_t(i.from,i.to)==0&&_t(i.from,b.to)==0?b.to=oi(i):m.changes.push(Hu(n,i));else{var x=st(c.done);for((!x||!x.ranges)&&ya(n.sel,c.done),m={changes:[Hu(n,i)],generation:c.generation},c.done.push(m);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(a),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=p,c.lastOp=c.lastSelOp=l,c.lastOrigin=c.lastSelOrigin=i.origin,b||ke(n,"historyAdded")}function $1(n,i,a,l){var c=i.charAt(0);return c=="*"||c=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function P1(n,i,a,l){var c=n.history,p=l&&l.origin;a==c.lastSelOp||p&&c.lastSelOrigin==p&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==p||$1(n,p,st(c.done),i))?c.done[c.done.length-1]=i:ya(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=p,c.lastSelOp=a,l&&l.clearRedo!==!1&&kp(c.undone)}function ya(n,i){var a=st(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Tp(n,i,a,l){var c=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((c||(c=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function O1(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function R1(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],c=0;c<i.text.length;++c)l.push(O1(a[c]));return l}function Ep(n,i){var a=R1(n,i),l=uu(n,i);if(!a)return l;if(!l)return a;for(var c=0;c<a.length;++c){var p=a[c],m=l[c];if(p&&m)t:for(var b=0;b<m.length;++b){for(var x=m[b],S=0;S<p.length;++S)if(p[S].marker==x.marker)continue t;p.push(x)}else m&&(a[c]=m)}return a}function zo(n,i,a){for(var l=[],c=0;c<n.length;++c){var p=n[c];if(p.ranges){l.push(a?Pn.prototype.deepCopy.call(p):p);continue}var m=p.changes,b=[];l.push({changes:b});for(var x=0;x<m.length;++x){var S=m[x],N=void 0;if(b.push({from:S.from,to:S.to,text:S.text}),i)for(var D in S)(N=D.match(/^spans_(\d+)$/))&&Et(i,Number(N[1]))>-1&&(st(b)[D]=S[D],delete S[D])}}return l}function qu(n,i,a,l){if(l){var c=n.anchor;if(a){var p=_t(i,c)<0;p!=_t(a,c)<0?(c=i,i=a):p!=_t(i,a)<0&&(i=a)}return new ue(c,i)}else return new ue(a||i,i)}function ba(n,i,a,l,c){c==null&&(c=n.cm&&(n.cm.display.shift||n.extend)),Je(n,new Pn([qu(n.sel.primary(),i,a,c)],0),l)}function Lp(n,i,a){for(var l=[],c=n.cm&&(n.cm.display.shift||n.extend),p=0;p<n.sel.ranges.length;p++)l[p]=qu(n.sel.ranges[p],i[p],null,c);var m=nr(n.cm,l,n.sel.primIndex);Je(n,m,a)}function Bu(n,i,a,l){var c=n.sel.ranges.slice(0);c[i]=a,Je(n,nr(n.cm,c,n.sel.primIndex),l)}function Ap(n,i,a,l){Je(n,ii(i,a),l)}function D1(n,i,a){var l={ranges:i.ranges,update:function(c){this.ranges=[];for(var p=0;p<c.length;p++)this.ranges[p]=new ue(Ut(n,c[p].anchor),Ut(n,c[p].head))},origin:a&&a.origin};return ke(n,"beforeSelectionChange",n,l),n.cm&&ke(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?nr(n.cm,l.ranges,l.ranges.length-1):i}function Mp(n,i,a){var l=n.history.done,c=st(l);c&&c.ranges?(l[l.length-1]=i,wa(n,i,a)):Je(n,i,a)}function Je(n,i,a){wa(n,i,a),P1(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function wa(n,i,a){(_n(n,"beforeSelectionChange")||n.cm&&_n(n.cm,"beforeSelectionChange"))&&(i=D1(n,i,a));var l=a&&a.bias||(_t(i.primary().head,n.sel.primary().head)<0?-1:1);Np(n,Pp(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Ro(n.cm)}function Np(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Fn(n.cm)),He(n,"cursorActivity",n))}function $p(n){Np(n,Pp(n,n.sel,null,!1))}function Pp(n,i,a,l){for(var c,p=0;p<i.ranges.length;p++){var m=i.ranges[p],b=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[p],x=xa(n,m.anchor,b&&b.anchor,a,l),S=m.head==m.anchor?x:xa(n,m.head,b&&b.head,a,l);(c||x!=m.anchor||S!=m.head)&&(c||(c=i.ranges.slice(0,p)),c[p]=new ue(x,S))}return c?nr(n.cm,c,i.primIndex):i}function Io(n,i,a,l,c){var p=$t(n,i.line);if(p.markedSpans)for(var m=0;m<p.markedSpans.length;++m){var b=p.markedSpans[m],x=b.marker,S="selectLeft"in x?!x.selectLeft:x.inclusiveLeft,N="selectRight"in x?!x.selectRight:x.inclusiveRight;if((b.from==null||(S?b.from<=i.ch:b.from<i.ch))&&(b.to==null||(N?b.to>=i.ch:b.to>i.ch))){if(c&&(ke(x,"beforeCursorEnter"),x.explicitlyCleared))if(p.markedSpans){--m;continue}else break;if(!x.atomic)continue;if(a){var D=x.find(l<0?1:-1),U=void 0;if((l<0?N:S)&&(D=Op(n,D,-l,D&&D.line==i.line?p:null)),D&&D.line==i.line&&(U=_t(D,a))&&(l<0?U<0:U>0))return Io(n,D,i,l,c)}var B=x.find(l<0?-1:1);return(l<0?S:N)&&(B=Op(n,B,l,B.line==i.line?p:null)),B?Io(n,B,i,l,c):null}}return i}function xa(n,i,a,l,c){var p=l||1,m=Io(n,i,a,p,c)||!c&&Io(n,i,a,p,!0)||Io(n,i,a,-p,c)||!c&&Io(n,i,a,-p,!0);return m||(n.cantEdit=!0,X(n.first,0))}function Op(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ut(n,X(i.line-1)):null:a>0&&i.ch==(l||$t(n,i.line)).text.length?i.line<n.first+n.size-1?X(i.line+1,0):null:new X(i.line,i.ch+a)}function Rp(n){n.setSelection(X(n.firstLine(),0),X(n.lastLine()),z)}function Dp(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(c,p,m,b){c&&(l.from=Ut(n,c)),p&&(l.to=Ut(n,p)),m&&(l.text=m),b!==void 0&&(l.origin=b)}),ke(n,"beforeChange",n,l),n.cm&&ke(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Fo(n,i,a){if(n.cm){if(!n.cm.curOp)return qe(n.cm,Fo)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((_n(n,"beforeChange")||n.cm&&_n(n.cm,"beforeChange"))&&(i=Dp(n,i,!0),!i))){var l=Ed&&!a&&Pw(n,i.from,i.to);if(l)for(var c=l.length-1;c>=0;--c)zp(n,{from:l[c].from,to:l[c].to,text:c?[""]:i.text,origin:i.origin});else zp(n,i)}}function zp(n,i){if(!(i.text.length==1&&i.text[0]==""&&_t(i.from,i.to)==0)){var a=zu(n,i);Cp(n,i,a,n.cm?n.cm.curOp.id:NaN),zs(n,i,a,uu(n,i));var l=[];si(n,function(c,p){!p&&Et(l,c.history)==-1&&(qp(c.history,i),l.push(c.history)),zs(c,i,null,uu(c,i))})}}function _a(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var c=n.history,p,m=n.sel,b=i=="undo"?c.done:c.undone,x=i=="undo"?c.undone:c.done,S=0;S<b.length&&(p=b[S],!(a?p.ranges&&!p.equals(n.sel):!p.ranges));S++);if(S!=b.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(p=b.pop(),p.ranges){if(ya(p,x),a&&!p.equals(n.sel)){Je(n,p,{clearRedo:!1});return}m=p}else if(l){b.push(p);return}else break;var N=[];ya(m,x),x.push({changes:N,generation:c.generation}),c.generation=p.generation||++c.maxGeneration;for(var D=_n(n,"beforeChange")||n.cm&&_n(n.cm,"beforeChange"),U=function(lt){var gt=p.changes[lt];if(gt.origin=i,D&&!Dp(n,gt,!1))return b.length=0,{};N.push(Hu(n,gt));var bt=lt?zu(n,gt):st(b);zs(n,gt,bt,Ep(n,gt)),!lt&&n.cm&&n.cm.scrollIntoView({from:gt.from,to:oi(gt)});var kt=[];si(n,function(wt,Lt){!Lt&&Et(kt,wt.history)==-1&&(qp(wt.history,gt),kt.push(wt.history)),zs(wt,gt,null,Ep(wt,gt))})},B=p.changes.length-1;B>=0;--B){var J=U(B);if(J)return J.v}}}}function Ip(n,i){if(i!=0&&(n.first+=i,n.sel=new Pn(yt(n.sel.ranges,function(c){return new ue(X(c.anchor.line+i,c.anchor.ch),X(c.head.line+i,c.head.ch))}),n.sel.primIndex),n.cm)){an(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)ni(n.cm,l,"gutter")}}function zs(n,i,a,l){if(n.cm&&!n.cm.curOp)return qe(n.cm,zs)(n,i,a,l);if(i.to.line<n.first){Ip(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var c=i.text.length-1-(n.first-i.from.line);Ip(n,c),i={from:X(n.first,0),to:X(i.to.line+c,i.to.ch),text:[st(i.text)],origin:i.origin}}var p=n.lastLine();i.to.line>p&&(i={from:i.from,to:X(p,$t(n,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Pr(n,i.from,i.to),a||(a=zu(n,i)),n.cm?z1(n.cm,i,l):Fu(n,i,l),wa(n,a,z),n.cantEdit&&xa(n,X(n.firstLine(),0))&&(n.cantEdit=!1)}}function z1(n,i,a){var l=n.doc,c=n.display,p=i.from,m=i.to,b=!1,x=p.line;n.options.lineWrapping||(x=C(tr($t(l,p.line))),l.iter(x,m.line+1,function(B){if(B==c.maxLine)return b=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Fn(n),Fu(l,i,a,rp(n)),n.options.lineWrapping||(l.iter(x,p.line+i.text.length,function(B){var J=oa(B);J>c.maxLineLength&&(c.maxLine=B,c.maxLineLength=J,c.maxLineChanged=!0,b=!1)}),b&&(n.curOp.updateMaxLine=!0)),Tw(l,p.line),Os(n,400);var S=i.text.length-(m.line-p.line)-1;i.full?an(n):p.line==m.line&&i.text.length==1&&!xp(n.doc,i)?ni(n,p.line,"text"):an(n,p.line,m.line+1,S);var N=_n(n,"changes"),D=_n(n,"change");if(D||N){var U={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&He(n,"change",n,U),N&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(U)}n.display.selForContextMenu=null}function Ho(n,i,a,l,c){var p;l||(l=a),_t(l,a)<0&&(p=[l,a],a=p[0],l=p[1]),typeof i=="string"&&(i=n.splitLines(i)),Fo(n,{from:a,to:l,text:i,origin:c})}function Fp(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Hp(n,i,a,l){for(var c=0;c<n.length;++c){var p=n[c],m=!0;if(p.ranges){p.copied||(p=n[c]=p.deepCopy(),p.copied=!0);for(var b=0;b<p.ranges.length;b++)Fp(p.ranges[b].anchor,i,a,l),Fp(p.ranges[b].head,i,a,l);continue}for(var x=0;x<p.changes.length;++x){var S=p.changes[x];if(a<S.from.line)S.from=X(S.from.line+l,S.from.ch),S.to=X(S.to.line+l,S.to.ch);else if(i<=S.to.line){m=!1;break}}m||(n.splice(0,c+1),c=0)}}function qp(n,i){var a=i.from.line,l=i.to.line,c=i.text.length-(l-a)-1;Hp(n.done,a,l,c),Hp(n.undone,a,l,c)}function Is(n,i,a,l){var c=i,p=i;return typeof i=="number"?p=$t(n,yd(n,i)):c=C(i),c==null?null:(l(p,c)&&n.cm&&ni(n.cm,c,a),p)}function Fs(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}Fs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var c=this.lines[a];this.height-=c.height,Iw(c),He(c,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function Hs(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var c=n[l];i+=c.chunkSize(),a+=c.height,c.parent=this}this.size=i,this.height=a,this.parent=null}Hs.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],c=l.chunkSize();if(n<c){var p=Math.min(i,c-n),m=l.height;if(l.removeInner(n,p),this.height-=m-l.height,c==p&&(this.children.splice(a--,1),l.parent=null),(i-=p)==0)break;n=0}else n-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Fs))){var b=[];this.collapse(b),this.children=[new Fs(b)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var c=this.children[l],p=c.chunkSize();if(n<=p){if(c.insertInner(n,i,a),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,b=m;b<c.lines.length;){var x=new Fs(c.lines.slice(b,b+=25));c.height-=x.height,this.children.splice(++l,0,x),x.parent=this}c.lines=c.lines.slice(0,m),this.maybeSpill()}break}n-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new Hs(i);if(n.parent){n.size-=a.size,n.height-=a.height;var c=Et(n.parent.children,n);n.parent.children.splice(c+1,0,a)}else{var l=new Hs(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var c=this.children[l],p=c.chunkSize();if(n<p){var m=Math.min(i,p-n);if(c.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=p}}};var qs=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};qs.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(a.widgets=null);var p=Es(this);$n(a,Math.max(0,a.height-p)),n&&(Sn(n,function(){Bp(n,a,-p),ni(n,l,"widget")}),He(n,"lineWidgetCleared",n,this,l))}},qs.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var c=Es(this)-i;c&&(ei(this.doc,l)||$n(l,l.height+c),a&&Sn(a,function(){a.curOp.forceUpdate=!0,Bp(a,l,c),He(a,"lineWidgetChanged",a,n,C(l))}))},Xn(qs);function Bp(n,i,a){Rr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Nu(n,a)}function I1(n,i,a,l){var c=new qs(n,a,l),p=n.cm;return p&&c.noHScroll&&(p.display.alignWidgets=!0),Is(n,i,"widget",function(m){var b=m.widgets||(m.widgets=[]);if(c.insertAt==null?b.push(c):b.splice(Math.min(b.length,Math.max(0,c.insertAt)),0,c),c.line=m,p&&!ei(n,m)){var x=Rr(m)<n.scrollTop;$n(m,m.height+Es(c)),x&&Nu(p,c.height),p.curOp.forceUpdate=!0}return!0}),p&&He(p,"lineWidgetAdded",p,c,typeof i=="number"?i:C(i)),c}var Wp=0,li=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Wp};li.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&ji(n),_n(this,"clear")){var a=this.find();a&&He(this,"clear",a.from,a.to)}for(var l=null,c=null,p=0;p<this.lines.length;++p){var m=this.lines[p],b=ks(m.markedSpans,this);n&&!this.collapsed?ni(n,C(m),"text"):n&&(b.to!=null&&(c=C(m)),b.from!=null&&(l=C(m))),m.markedSpans=Aw(m.markedSpans,b),b.from==null&&this.collapsed&&!ei(this.doc,m)&&n&&$n(m,$o(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var S=tr(this.lines[x]),N=oa(S);N>n.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=N,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&an(n,l,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&$p(n.doc)),n&&He(n,"markerCleared",n,this,l,c),i&&Ki(n),this.parent&&this.parent.clear()}},li.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,c=0;c<this.lines.length;++c){var p=this.lines[c],m=ks(p.markedSpans,this);if(m.from!=null&&(a=X(i?p:C(p),m.from),n==-1))return a;if(m.to!=null&&(l=X(i?p:C(p),m.to),n==1))return l}return a&&{from:a,to:l}},li.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Sn(l,function(){var c=i.line,p=C(i.line),m=yu(l,p);if(m&&(Xd(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ei(a.doc,c)&&a.height!=null){var b=a.height;a.height=null;var x=Es(a)-b;x&&$n(c,c.height+x)}He(l,"markerChanged",l,n)})},li.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Et(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},li.prototype.detachLine=function(n){if(this.lines.splice(Et(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Xn(li);function qo(n,i,a,l,c){if(l&&l.shared)return F1(n,i,a,l,c);if(n.cm&&!n.cm.curOp)return qe(n.cm,qo)(n,i,a,l,c);var p=new li(n,c),m=_t(i,a);if(l&&rt(l,p,!1),m>0||m==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=q("span",[p.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(Pd(n,i.line,i,a,p)||i.line!=a.line&&Pd(n,a.line,i,a,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lw()}p.addToHistory&&Cp(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var b=i.line,x=n.cm,S;if(n.iter(b,a.line+1,function(D){x&&p.collapsed&&!x.options.lineWrapping&&tr(D)==x.display.maxLine&&(S=!0),p.collapsed&&b!=i.line&&$n(D,0),Mw(D,new ea(p,b==i.line?i.ch:null,b==a.line?a.ch:null),n.cm&&n.cm.curOp),++b}),p.collapsed&&n.iter(i.line,a.line+1,function(D){ei(n,D)&&$n(D,0)}),p.clearOnEnter&&Rt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(Ew(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++Wp,p.atomic=!0),x){if(S&&(x.curOp.updateMaxLine=!0),p.collapsed)an(x,i.line,a.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var N=i.line;N<=a.line;N++)ni(x,N,"text");p.atomic&&$p(x.doc),He(x,"markerAdded",x,p)}return p}var Bs=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Bs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();He(this,"clear")}},Bs.prototype.find=function(n,i){return this.primary.find(n,i)},Xn(Bs);function F1(n,i,a,l,c){l=rt(l),l.shared=!1;var p=[qo(n,i,a,l,c)],m=p[0],b=l.widgetNode;return si(n,function(x){b&&(l.widgetNode=b.cloneNode(!0)),p.push(qo(x,Ut(x,i),Ut(x,a),l,c));for(var S=0;S<x.linked.length;++S)if(x.linked[S].isParent)return;m=st(p)}),new Bs(p,m)}function Up(n){return n.findMarks(X(n.first,0),n.clipPos(X(n.lastLine())),function(i){return i.parent})}function H1(n,i){for(var a=0;a<i.length;a++){var l=i[a],c=l.find(),p=n.clipPos(c.from),m=n.clipPos(c.to);if(_t(p,m)){var b=qo(n,p,m,l.primary,l.primary.type);l.markers.push(b),b.parent=l}}}function q1(n){for(var i=function(l){var c=n[l],p=[c.primary.doc];si(c.primary.doc,function(x){return p.push(x)});for(var m=0;m<c.markers.length;m++){var b=c.markers[m];Et(p,b.doc)==-1&&(b.parent=null,c.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var B1=0,cn=function(n,i,a,l,c){if(!(this instanceof cn))return new cn(n,i,a,l,c);a==null&&(a=0),Hs.call(this,[new Fs([new Ao("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var p=X(a,0);this.sel=ii(p),this.history=new ma(null),this.id=++B1,this.modeOption=i,this.lineSep=l,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Fu(this,{from:p,to:p,text:n}),Je(this,ii(p),z)};cn.prototype=zt(Hs.prototype,{constructor:cn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=_s(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Be(function(n){var i=X(this.first,0),a=this.first+this.size-1;Fo(this,{from:i,to:X(a,$t(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Ms(this.cm,0,0),Je(this,ii(i),z)}),replaceRange:function(n,i,a,l){i=Ut(this,i),a=a?Ut(this,a):i,Ho(this,n,i,a,l)},getRange:function(n,i,a){var l=Pr(this,Ut(this,n),Ut(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(et(this,n))return $t(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=$t(this,n)),tr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ut(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Be(function(n,i,a){Ap(this,Ut(this,typeof n=="number"?X(n,i||0):n),null,a)}),setSelection:Be(function(n,i,a){Ap(this,Ut(this,n),Ut(this,i||n),a)}),extendSelection:Be(function(n,i,a){ba(this,Ut(this,n),i&&Ut(this,i),a)}),extendSelections:Be(function(n,i){Lp(this,bd(this,n),i)}),extendSelectionsBy:Be(function(n,i){var a=yt(this.sel.ranges,n);Lp(this,bd(this,a),i)}),setSelections:Be(function(n,i,a){if(n.length){for(var l=[],c=0;c<n.length;c++)l[c]=new ue(Ut(this,n[c].anchor),Ut(this,n[c].head||n[c].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),Je(this,nr(this.cm,l,i),a)}}),addSelection:Be(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ue(Ut(this,n),Ut(this,i||n))),Je(this,nr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var c=Pr(this,i[l].from(),i[l].to());a=a?a.concat(c):c}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var c=Pr(this,a[l].from(),a[l].to());n!==!1&&(c=c.join(n||this.lineSeparator())),i[l]=c}return i},replaceSelection:function(n,i,a){for(var l=[],c=0;c<this.sel.ranges.length;c++)l[c]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Be(function(n,i,a){for(var l=[],c=this.sel,p=0;p<c.ranges.length;p++){var m=c.ranges[p];l[p]={from:m.from(),to:m.to(),text:this.splitLines(n[p]),origin:a}}for(var b=i&&i!="end"&&A1(this,l,i),x=l.length-1;x>=0;x--)Fo(this,l[x]);b?Mp(this,b):this.cm&&Ro(this.cm)}),undo:Be(function(){_a(this,"undo")}),redo:Be(function(){_a(this,"redo")}),undoSelection:Be(function(){_a(this,"undo",!0)}),redoSelection:Be(function(){_a(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var c=0;c<n.undone.length;c++)n.undone[c].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new ma(this.history),si(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:zo(this.history.done),undone:zo(this.history.undone)}},setHistory:function(n){var i=this.history=new ma(this.history);i.done=zo(n.done.slice(0),null,!0),i.undone=zo(n.undone.slice(0),null,!0)},setGutterMarker:Be(function(n,i,a){return Is(this,n,"gutter",function(l){var c=l.gutterMarkers||(l.gutterMarkers={});return c[i]=a,!a&&le(c)&&(l.gutterMarkers=null),!0})}),clearGutter:Be(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Is(i,a,"gutter",function(){return a.gutterMarkers[n]=null,le(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!et(this,n)||(i=n,n=$t(this,n),!n))return null}else if(i=C(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Be(function(n,i,a){return Is(this,n,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[c])l[c]=a;else{if(ut(a).test(l[c]))return!1;l[c]+=" "+a}return!0})}),removeLineClass:Be(function(n,i,a){return Is(this,n,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",p=l[c];if(p)if(a==null)l[c]=null;else{var m=p.match(ut(a));if(!m)return!1;var b=m.index+m[0].length;l[c]=p.slice(0,m.index)+(!m.index||b==p.length?"":" ")+p.slice(b)||null}else return!1;return!0})}),addLineWidget:Be(function(n,i,a){return I1(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return qo(this,Ut(this,n),Ut(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ut(this,n),qo(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ut(this,n);var i=[],a=$t(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var c=a[l];(c.from==null||c.from<=n.ch)&&(c.to==null||c.to>=n.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(n,i,a){n=Ut(this,n),i=Ut(this,i);var l=[],c=n.line;return this.iter(n.line,i.line+1,function(p){var m=p.markedSpans;if(m)for(var b=0;b<m.length;b++){var x=m[b];!(x.to!=null&&c==n.line&&n.ch>=x.to||x.from==null&&c!=n.line||x.from!=null&&c==i.line&&x.from>=i.ch)&&(!a||a(x.marker))&&l.push(x.marker.parent||x.marker)}++c}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(c){var p=c.text.length+l;if(p>n)return i=n,!0;n-=p,++a}),Ut(this,X(a,i))},indexFromPos:function(n){n=Ut(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new cn(_s(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new cn(_s(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],H1(l,Up(this)),l},unlinkDoc:function(n){if(n instanceof we&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),q1(Up(this));break}}if(n.history==this.history){var l=[n.id];si(n,function(c){return l.push(c.id)},!0),n.history=new ma(null),n.history.done=zo(this.history.done,l),n.history.undone=zo(this.history.undone,l)}},iterLinkedDocs:function(n){si(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Hn(n)},lineSeparator:function(){return this.lineSep||`
|
|
35
|
-
`},setDirection:Be(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&M1(this.cm))})}),cn.prototype.eachLine=cn.prototype.iter;var Vp=0;function W1(n){var i=this;if(Gp(i),!(Ce(i,n)||Dr(i.display,n))){Ze(n),d&&(Vp=+new Date);var a=Wi(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var c=l.length,p=Array(c),m=0,b=function(){++m==c&&qe(i,function(){a=Ut(i.doc,a);var B={from:a,to:a,text:i.doc.splitLines(p.filter(function(J){return J!=null}).join(i.doc.lineSeparator())),origin:"paste"};Fo(i.doc,B),Mp(i.doc,ii(Ut(i.doc,a),Ut(i.doc,oi(B))))})()},x=function(B,J){if(i.options.allowDropFileTypes&&Et(i.options.allowDropFileTypes,B.type)==-1){b();return}var lt=new FileReader;lt.onerror=function(){return b()},lt.onload=function(){var gt=lt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(gt)){b();return}p[J]=gt,b()},lt.readAsText(B)},S=0;S<l.length;S++)x(l[S],S);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var N=n.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),wa(i.doc,ii(a,a)),D)for(var U=0;U<D.length;++U)Ho(i.doc,"",D[U].anchor,D[U].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function U1(n,i){if(d&&(!n.state.draggingText||+new Date-Vp<100)){Zr(i);return}if(!(Ce(n,i)||Dr(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",M&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),M&&a.parentNode.removeChild(a)}}function V1(n,i){var a=Wi(n,i);if(a){var l=document.createDocumentFragment();Tu(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),I(n.display.dragCursor,l)}}function Gp(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function jp(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var c=i[l].CodeMirror;c&&a.push(c)}a.length&&a[0].operation(function(){for(var p=0;p<a.length;p++)n(a[p])})}}var Kp=!1;function G1(){Kp||(j1(),Kp=!0)}function j1(){var n;Rt(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,jp(K1)},100))}),Rt(window,"blur",function(){return jp(Oo)})}function K1(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var ai={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"},Ws=0;Ws<10;Ws++)ai[Ws+48]=ai[Ws+96]=String(Ws);for(var Sa=65;Sa<=90;Sa++)ai[Sa]=String.fromCharCode(Sa);for(var Us=1;Us<=12;Us++)ai[Us+111]=ai[Us+63235]="F"+Us;var Ir={};Ir.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"},Ir.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"},Ir.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"},Ir.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"]},Ir.default=F?Ir.macDefault:Ir.pcDefault;function X1(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,c,p,m=0;m<i.length-1;m++){var b=i[m];if(/^(cmd|meta|m)$/i.test(b))p=!0;else if(/^a(lt)?$/i.test(b))a=!0;else if(/^(c|ctrl|control)$/i.test(b))l=!0;else if(/^s(hift)?$/i.test(b))c=!0;else throw new Error("Unrecognized modifier name: "+b)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),p&&(n="Cmd-"+n),c&&(n="Shift-"+n),n}function Y1(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var c=yt(a.split(" "),X1),p=0;p<c.length;p++){var m=void 0,b=void 0;p==c.length-1?(b=c.join(" "),m=l):(b=c.slice(0,p+1).join(" "),m="...");var x=i[b];if(!x)i[b]=m;else if(x!=m)throw new Error("Inconsistent bindings for "+b)}delete n[a]}for(var S in i)n[S]=i[S];return n}function Bo(n,i,a,l){i=ka(i);var c=i.call?i.call(n,l):i[n];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&a(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Bo(n,i.fallthrough,a,l);for(var p=0;p<i.fallthrough.length;p++){var m=Bo(n,i.fallthrough[p],a,l);if(m)return m}}}function Xp(n){var i=typeof n=="string"?n:ai[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Yp(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ht?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ht?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Zp(n,i){if(M&&n.keyCode==34&&n.char)return!1;var a=ai[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Yp(a,n,i))}function ka(n){return typeof n=="string"?Ir[n]:n}function Wo(n,i){for(var a=n.doc.sel.ranges,l=[],c=0;c<a.length;c++){for(var p=i(a[c]);l.length&&_t(p.from,st(l).to)<=0;){var m=l.pop();if(_t(m.from,p.from)<0){p.from=m.from;break}}l.push(p)}Sn(n,function(){for(var b=l.length-1;b>=0;b--)Ho(n.doc,"",l[b].from,l[b].to,"+delete");Ro(n)})}function Wu(n,i,a){var l=ze(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Uu(n,i,a){var l=Wu(n,i.ch,a);return l==null?null:new X(i.line,l,a<0?"after":"before")}function Vu(n,i,a,l,c){if(n){i.doc.direction=="rtl"&&(c=-c);var p=Bt(a,i.doc.direction);if(p){var m=c<0?st(p):p[0],b=c<0==(m.level==1),x=b?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var N=No(i,a);S=c<0?a.text.length-1:0;var D=yr(i,N,S).top;S=Ke(function(U){return yr(i,N,U).top==D},c<0==(m.level==1)?m.from:m.to-1,S),x=="before"&&(S=Wu(a,S,1))}else S=c<0?m.to:m.from;return new X(l,S,x)}}return new X(l,c<0?a.text.length:0,c<0?"before":"after")}function Z1(n,i,a,l){var c=Bt(i,n.doc.direction);if(!c)return Uu(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var p=Kn(c,a.ch,a.sticky),m=c[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from<a.ch))return Uu(i,a,l);var b=function(bt,kt){return Wu(i,bt instanceof X?bt.ch:bt,kt)},x,S=function(bt){return n.options.lineWrapping?(x=x||No(n,i),np(n,i,x,bt)):{begin:0,end:i.text.length}},N=S(a.sticky=="before"?b(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var D=m.level==1==l<0,U=b(a,D?1:-1);if(U!=null&&(D?U<=m.to&&U<=N.end:U>=m.from&&U>=N.begin)){var B=D?"before":"after";return new X(a.line,U,B)}}var J=function(bt,kt,wt){for(var Lt=function(ve,We){return We?new X(a.line,b(ve,1),"before"):new X(a.line,ve,"after")};bt>=0&&bt<c.length;bt+=kt){var Dt=c[bt],Pt=kt>0==(Dt.level!=1),Zt=Pt?wt.begin:b(wt.end,-1);if(Dt.from<=Zt&&Zt<Dt.to||(Zt=Pt?Dt.from:b(Dt.to,-1),wt.begin<=Zt&&Zt<wt.end))return Lt(Zt,Pt)}},lt=J(p+l,l,N);if(lt)return lt;var gt=l>0?N.end:b(N.begin,-1);return gt!=null&&!(l>0&>==i.text.length)&&(lt=J(l>0?0:c.length-1,l,S(gt)),lt)?lt:null}var Vs={selectAll:Rp,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),z)},killLine:function(n){return Wo(n,function(i){if(i.empty()){var a=$t(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:X(i.head.line+1,0)}:{from:i.head,to:X(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return Wo(n,function(i){return{from:X(i.from().line,0),to:Ut(n.doc,X(i.to().line+1,0))}})},delLineLeft:function(n){return Wo(n,function(i){return{from:X(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return Wo(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return Wo(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(X(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(X(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Jp(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Qp(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return J1(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},it)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},it)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Qp(n,i.head):l},it)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,c=0;c<a.length;c++){var p=a[c].from(),m=ft(n.getLine(p.line),p.ch,l);i.push(Ct(l-m%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Sn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var c=i[l].head,p=$t(n.doc,c.line).text;if(p){if(c.ch==p.length&&(c=new X(c.line,c.ch-1)),c.ch>0)c=new X(c.line,c.ch+1),n.replaceRange(p.charAt(c.ch-1)+p.charAt(c.ch-2),X(c.line,c.ch-2),c,"+transpose");else if(c.line>n.doc.first){var m=$t(n.doc,c.line-1).text;m&&(c=new X(c.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),X(c.line-1,m.length-1),c,"+transpose"))}}a.push(new ue(c,c))}n.setSelections(a)})},newlineAndIndent:function(n){return Sn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);Ro(n)})},openLine:function(n){return n.replaceSelection(`
|
|
36
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Jp(n,i){var a=$t(n.doc,i),l=tr(a);return l!=a&&(i=C(l)),Vu(!0,n,l,i,1)}function J1(n,i){var a=$t(n.doc,i),l=Rw(a);return l!=a&&(i=C(l)),Vu(!0,n,a,i,-1)}function Qp(n,i){var a=Jp(n,i.line),l=$t(n.doc,a.line),c=Bt(l,n.doc.direction);if(!c||c[0].level==0){var p=Math.max(a.ch,l.text.search(/\S/)),m=i.line==a.line&&i.ch<=p&&i.ch;return X(a.line,m?0:p,a.sticky)}return a}function Ca(n,i,a){if(typeof i=="string"&&(i=Vs[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,c=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),c=i(n)!=P}finally{n.display.shift=l,n.state.suppressEdits=!1}return c}function Q1(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var c=Bo(i,n.state.keyMaps[l],a,n);if(c)return c}return n.options.extraKeys&&Bo(i,n.options.extraKeys,a,n)||Bo(i,n.options.keyMap,a,n)}var tx=new Nt;function Gs(n,i,a,l){var c=n.state.keySeq;if(c){if(Xp(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:tx.set(50,function(){n.state.keySeq==c&&(n.state.keySeq=null,n.display.input.reset())}),tg(n,c+" "+i,a,l))return!0}return tg(n,i,a,l)}function tg(n,i,a,l){var c=Q1(n,i,l);return c=="multi"&&(n.state.keySeq=i),c=="handled"&&He(n,"keyHandled",n,i,a),(c=="handled"||c=="multi")&&(Ze(a),Eu(n)),!!c}function eg(n,i){var a=Zp(i,!0);return a?i.shiftKey&&!n.state.keySeq?Gs(n,"Shift-"+a,i,function(l){return Ca(n,l,!0)})||Gs(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Ca(n,l)}):Gs(n,a,i,function(l){return Ca(n,l)}):!1}function ex(n,i,a){return Gs(n,"'"+a+"'",i,function(l){return Ca(n,l,!0)})}var Gu=null;function ng(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=mt(Qt(i)),!Ce(i,n))){d&&g<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=eg(i,n);M&&(Gu=l?a:null,!l&&a==88&&!Ql&&(F?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!F&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&nx(i)}}function nx(n){var i=n.display.lineDiv;Mt(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(ot(i,"CodeMirror-crosshair"),Ye(document,"keyup",a),Ye(document,"mouseover",a))}Rt(document,"keyup",a),Rt(document,"mouseover",a)}function rg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Ce(this,n)}function ig(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Dr(i.display,n)||Ce(i,n)||n.ctrlKey&&!n.altKey||F&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(M&&a==Gu){Gu=null,Ze(n);return}if(!(M&&(!n.which||n.which<10)&&eg(i,n))){var c=String.fromCharCode(l??a);c!="\b"&&(ex(i,n,c)||i.display.input.onKeyPress(n))}}}var rx=400,ju=function(n,i,a){this.time=n,this.pos=i,this.button=a};ju.prototype.compare=function(n,i,a){return this.time+rx>n&&_t(i,this.pos)==0&&a==this.button};var js,Ks;function ix(n,i){var a=+new Date;return Ks&&Ks.compare(a,n,i)?(js=Ks=null,"triple"):js&&js.compare(a,n,i)?(Ks=new ju(a,n,i),js=null,"double"):(js=new ju(a,n,i),Ks=null,"single")}function og(n){var i=this,a=i.display;if(!(Ce(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Dr(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Ku(i,n)){var l=Wi(i,n),c=Yn(n),p=l?ix(l,c):"single";Tt(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&ox(i,c,l,p,n))&&(c==1?l?lx(i,l,p,n):bs(n)==a.scroller&&Ze(n):c==2?(l&&ba(i.doc,l),setTimeout(function(){return a.input.focus()},20)):c==3&&(Z?i.display.input.onContextMenu(n):Lu(i)))}}}function ox(n,i,a,l,c){var p="Click";return l=="double"?p="Double"+p:l=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Gs(n,Yp(p,c),c,function(m){if(typeof m=="string"&&(m=Vs[m]),!m)return!1;var b=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),b=m(n,a)!=P}finally{n.state.suppressEdits=!1}return b})}function sx(n,i,a){var l=n.getOption("configureMouse"),c=l?l(n,i,a):{};if(c.unit==null){var p=H?a.shiftKey&&a.metaKey:a.altKey;c.unit=p?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||n.doc.extend)&&(c.extend=n.doc.extend||a.shiftKey),c.addNew==null&&(c.addNew=F?a.metaKey:a.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(F?a.altKey:a.ctrlKey)),c}function lx(n,i,a,l){d?setTimeout(G(sp,n),0):n.curOp.focus=mt(Qt(n));var c=sx(n,a,l),p=n.doc.sel,m;n.options.dragDrop&&su&&!n.isReadOnly()&&a=="single"&&(m=p.contains(i))>-1&&(_t((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(_t(m.to(),i)>0||i.xRel<0)?ax(n,l,i,c):cx(n,l,i,c)}function ax(n,i,a,l){var c=n.display,p=!1,m=qe(n,function(S){v&&(c.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Lu(n)),Ye(c.wrapper.ownerDocument,"mouseup",m),Ye(c.wrapper.ownerDocument,"mousemove",b),Ye(c.scroller,"dragstart",x),Ye(c.scroller,"drop",m),p||(Ze(S),l.addNew||ba(n.doc,a,null,null,l.extend),v&&!A||d&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),b=function(S){p=p||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},x=function(){return p=!0};v&&(c.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Rt(c.wrapper.ownerDocument,"mouseup",m),Rt(c.wrapper.ownerDocument,"mousemove",b),Rt(c.scroller,"dragstart",x),Rt(c.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function sg(n,i,a){if(a=="char")return new ue(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ue(X(i.line,0),Ut(n.doc,X(i.line+1,0)));var l=a(n,i);return new ue(l.from,l.to)}function cx(n,i,a,l){d&&Lu(n);var c=n.display,p=n.doc;Ze(i);var m,b,x=p.sel,S=x.ranges;if(l.addNew&&!l.extend?(b=p.sel.contains(a),b>-1?m=S[b]:m=new ue(a,a)):(m=p.sel.primary(),b=p.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ue(a,a)),a=Wi(n,i,!0,!0),b=-1;else{var N=sg(n,a,l.unit);l.extend?m=qu(m,N.anchor,N.head,l.extend):m=N}l.addNew?b==-1?(b=S.length,Je(p,nr(n,S.concat([m]),b),{scroll:!1,origin:"*mouse"})):S.length>1&&S[b].empty()&&l.unit=="char"&&!l.extend?(Je(p,nr(n,S.slice(0,b).concat(S.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),x=p.sel):Bu(p,b,m,K):(b=0,Je(p,new Pn([m],0),K),x=p.sel);var D=a;function U(wt){if(_t(D,wt)!=0)if(D=wt,l.unit=="rectangle"){for(var Lt=[],Dt=n.options.tabSize,Pt=ft($t(p,a.line).text,a.ch,Dt),Zt=ft($t(p,wt.line).text,wt.ch,Dt),ve=Math.min(Pt,Zt),We=Math.max(Pt,Zt),_e=Math.min(a.line,wt.line),kn=Math.min(n.lastLine(),Math.max(a.line,wt.line));_e<=kn;_e++){var un=$t(p,_e).text,Me=nt(un,ve,Dt);ve==We?Lt.push(new ue(X(_e,Me),X(_e,Me))):un.length>Me&&Lt.push(new ue(X(_e,Me),X(_e,nt(un,We,Dt))))}Lt.length||Lt.push(new ue(a,a)),Je(p,nr(n,x.ranges.slice(0,b).concat(Lt),b),{origin:"*mouse",scroll:!1}),n.scrollIntoView(wt)}else{var fn=m,Ge=sg(n,wt,l.unit),Ie=fn.anchor,Ne;_t(Ge.anchor,Ie)>0?(Ne=Ge.head,Ie=Lo(fn.from(),Ge.anchor)):(Ne=Ge.anchor,Ie=ln(fn.to(),Ge.head));var Ee=x.ranges.slice(0);Ee[b]=ux(n,new ue(Ut(p,Ie),Ne)),Je(p,nr(n,Ee,b),K)}}var B=c.wrapper.getBoundingClientRect(),J=0;function lt(wt){var Lt=++J,Dt=Wi(n,wt,!0,l.unit=="rectangle");if(Dt)if(_t(Dt,D)!=0){n.curOp.focus=mt(Qt(n)),U(Dt);var Pt=da(c,p);(Dt.line>=Pt.to||Dt.line<Pt.from)&&setTimeout(qe(n,function(){J==Lt&<(wt)}),150)}else{var Zt=wt.clientY<B.top?-20:wt.clientY>B.bottom?20:0;Zt&&setTimeout(qe(n,function(){J==Lt&&(c.scroller.scrollTop+=Zt,lt(wt))}),50)}}function gt(wt){n.state.selectingText=!1,J=1/0,wt&&(Ze(wt),c.input.focus()),Ye(c.wrapper.ownerDocument,"mousemove",bt),Ye(c.wrapper.ownerDocument,"mouseup",kt),p.history.lastSelOrigin=null}var bt=qe(n,function(wt){wt.buttons===0||!Yn(wt)?gt(wt):lt(wt)}),kt=qe(n,gt);n.state.selectingText=kt,Rt(c.wrapper.ownerDocument,"mousemove",bt),Rt(c.wrapper.ownerDocument,"mouseup",kt)}function ux(n,i){var a=i.anchor,l=i.head,c=$t(n.doc,a.line);if(_t(a,l)==0&&a.sticky==l.sticky)return i;var p=Bt(c);if(!p)return i;var m=Kn(p,a.ch,a.sticky),b=p[m];if(b.from!=a.ch&&b.to!=a.ch)return i;var x=m+(b.from==a.ch==(b.level!=1)?0:1);if(x==0||x==p.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var N=Kn(p,l.ch,l.sticky),D=N-m||(l.ch-a.ch)*(b.level==1?-1:1);N==x-1||N==x?S=D<0:S=D>0}var U=p[x+(S?-1:0)],B=S==(U.level==1),J=B?U.from:U.to,lt=B?"after":"before";return a.ch==J&&a.sticky==lt?i:new ue(new X(a.line,J,lt),l)}function lg(n,i,a,l){var c,p;if(i.touches)c=i.touches[0].clientX,p=i.touches[0].clientY;else try{c=i.clientX,p=i.clientY}catch{return!1}if(c>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&Ze(i);var m=n.display,b=m.lineDiv.getBoundingClientRect();if(p>b.bottom||!_n(n,a))return sn(i);p-=b.top-m.viewOffset;for(var x=0;x<n.display.gutterSpecs.length;++x){var S=m.gutters.childNodes[x];if(S&&S.getBoundingClientRect().right>=c){var N=R(n.doc,p),D=n.display.gutterSpecs[x];return ke(n,a,n,N,D.className,i),sn(i)}}}function Ku(n,i){return lg(n,i,"gutterClick",!0)}function ag(n,i){Dr(n.display,i)||fx(n,i)||Ce(n,i,"contextmenu")||Z||n.display.input.onContextMenu(i)}function fx(n,i){return _n(n,"gutterContextMenu")?lg(n,i,"gutterContextMenu",!1):!1}function cg(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ls(n)}var Uo={toString:function(){return"CodeMirror.Init"}},ug={},Ta={};function hx(n){var i=n.optionHandlers;function a(l,c,p,m){n.defaults[l]=c,p&&(i[l]=m?function(b,x,S){S!=Uo&&p(b,x,S)}:p)}n.defineOption=a,n.Init=Uo,a("value","",function(l,c){return l.setValue(c)},!0),a("mode",null,function(l,c){l.doc.modeOption=c,Iu(l)},!0),a("indentUnit",2,Iu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Ds(l),Ls(l),an(l)},!0),a("lineSeparator",null,function(l,c){if(l.doc.lineSep=c,!!c){var p=[],m=l.doc.first;l.doc.iter(function(x){for(var S=0;;){var N=x.text.indexOf(c,S);if(N==-1)break;S=N+c.length,p.push(X(m,N))}m++});for(var b=p.length-1;b>=0;b--)Ho(l.doc,c,p[b],X(p[b].line,p[b].ch+c.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,c,p){l.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),p!=Uo&&l.refresh()}),a("specialCharPlaceholder",qw,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",$?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,c){return l.getInputField().spellcheck=c},!0),a("autocorrect",!1,function(l,c){return l.getInputField().autocorrect=c},!0),a("autocapitalize",!1,function(l,c){return l.getInputField().autocapitalize=c},!0),a("rtlMoveVisually",!ct),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){cg(l),Rs(l)},!0),a("keyMap","default",function(l,c,p){var m=ka(c),b=p!=Uo&&ka(p);b&&b.detach&&b.detach(l,m),m.attach&&m.attach(l,b||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,px,!0),a("gutters",[],function(l,c){l.display.gutterSpecs=Du(c,l.options.lineNumbers),Rs(l)},!0),a("fixedGutter",!0,function(l,c){l.display.gutters.style.left=c?ku(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Do(l)},!0),a("scrollbarStyle","native",function(l){hp(l),Do(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,c){l.display.gutterSpecs=Du(l.options.gutters,c),Rs(l)},!0),a("firstLineNumber",1,Rs,!0),a("lineNumberFormatter",function(l){return l},Rs,!0),a("showCursorWhenSelecting",!1,As,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,c){c=="nocursor"&&(Oo(l),l.display.input.blur()),l.display.input.readOnlyChanged(c)}),a("screenReaderLabel",null,function(l,c){c=c===""?null:c,l.display.input.screenReaderLabelChanged(c)}),a("disableInput",!1,function(l,c){c||l.display.input.reset()},!0),a("dragDrop",!0,dx),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,As,!0),a("singleCursorHeightPerLine",!0,As,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ds,!0),a("addModeClass",!1,Ds,!0),a("pollInterval",100),a("undoDepth",200,function(l,c){return l.doc.history.undoDepth=c}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Ds,!0),a("moveInputWithCursor",!0,function(l,c){c||l.display.input.resetPosition()}),a("tabindex",null,function(l,c){return l.display.input.getField().tabIndex=c||""}),a("autofocus",null),a("direction","ltr",function(l,c){return l.doc.setDirection(c)},!0),a("phrases",null)}function dx(n,i,a){var l=a&&a!=Uo;if(!i!=!l){var c=n.display.dragFunctions,p=i?Rt:Ye;p(n.display.scroller,"dragstart",c.start),p(n.display.scroller,"dragenter",c.enter),p(n.display.scroller,"dragover",c.over),p(n.display.scroller,"dragleave",c.leave),p(n.display.scroller,"drop",c.drop)}}function px(n){n.options.lineWrapping?(Mt(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(ot(n.display.wrapper,"CodeMirror-wrap"),pu(n)),Cu(n),an(n),Ls(n),setTimeout(function(){return Do(n)},100)}function we(n,i){var a=this;if(!(this instanceof we))return new we(n,i);this.options=i=i?rt(i):{},rt(ug,i,!1);var l=i.value;typeof l=="string"?l=new cn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var c=new we.inputStyles[i.inputStyle](this),p=this.display=new E1(n,l,c,i);p.wrapper.CodeMirror=this,cg(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),hp(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 Nt,keySeq:null,specialChars:null},i.autofocus&&!$&&p.input.focus(),d&&g<11&&setTimeout(function(){return a.display.input.reset(!0)},20),gx(this),G1(),ji(this),this.curOp.forceUpdate=!0,_p(this,l),i.autofocus&&!$||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Au(a)},20):Oo(this);for(var m in Ta)Ta.hasOwnProperty(m)&&Ta[m](this,i[m],Uo);gp(this),i.finishInit&&i.finishInit(this);for(var b=0;b<Xu.length;++b)Xu[b](this);Ki(this),v&&i.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}we.defaults=ug,we.optionHandlers=Ta;function gx(n){var i=n.display;Rt(i.scroller,"mousedown",qe(n,og)),d&&g<11?Rt(i.scroller,"dblclick",qe(n,function(x){if(!Ce(n,x)){var S=Wi(n,x);if(!(!S||Ku(n,x)||Dr(n.display,x))){Ze(x);var N=n.findWordAt(S);ba(n.doc,N.anchor,N.head)}}})):Rt(i.scroller,"dblclick",function(x){return Ce(n,x)||Ze(x)}),Rt(i.scroller,"contextmenu",function(x){return ag(n,x)}),Rt(i.input.getField(),"contextmenu",function(x){i.scroller.contains(x.target)||ag(n,x)});var a,l={end:0};function c(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function p(x){if(x.touches.length!=1)return!1;var S=x.touches[0];return S.radiusX<=1&&S.radiusY<=1}function m(x,S){if(S.left==null)return!0;var N=S.left-x.left,D=S.top-x.top;return N*N+D*D>20*20}Rt(i.scroller,"touchstart",function(x){if(!Ce(n,x)&&!p(x)&&!Ku(n,x)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},x.touches.length==1&&(i.activeTouch.left=x.touches[0].pageX,i.activeTouch.top=x.touches[0].pageY)}}),Rt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Rt(i.scroller,"touchend",function(x){var S=i.activeTouch;if(S&&!Dr(i,x)&&S.left!=null&&!S.moved&&new Date-S.start<300){var N=n.coordsChar(i.activeTouch,"page"),D;!S.prev||m(S,S.prev)?D=new ue(N,N):!S.prev.prev||m(S,S.prev.prev)?D=n.findWordAt(N):D=new ue(X(N.line,0),Ut(n.doc,X(N.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),Ze(x)}c()}),Rt(i.scroller,"touchcancel",c),Rt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ns(n,i.scroller.scrollTop),Vi(n,i.scroller.scrollLeft,!0),ke(n,"scroll",n))}),Rt(i.scroller,"mousewheel",function(x){return yp(n,x)}),Rt(i.scroller,"DOMMouseScroll",function(x){return yp(n,x)}),Rt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Ce(n,x)||Zr(x)},over:function(x){Ce(n,x)||(V1(n,x),Zr(x))},start:function(x){return U1(n,x)},drop:qe(n,W1),leave:function(x){Ce(n,x)||Gp(n)}};var b=i.input.getField();Rt(b,"keyup",function(x){return rg.call(n,x)}),Rt(b,"keydown",qe(n,ng)),Rt(b,"keypress",qe(n,ig)),Rt(b,"focus",function(x){return Au(n,x)}),Rt(b,"blur",function(x){return Oo(n,x)})}var Xu=[];we.defineInitHook=function(n){return Xu.push(n)};function Xs(n,i,a,l){var c=n.doc,p;a==null&&(a="add"),a=="smart"&&(c.mode.indent?p=Ss(n,i).state:a="prev");var m=n.options.tabSize,b=$t(c,i),x=ft(b.text,null,m);b.stateAfter&&(b.stateAfter=null);var S=b.text.match(/^\s*/)[0],N;if(!l&&!/\S/.test(b.text))N=0,a="not";else if(a=="smart"&&(N=c.mode.indent(p,b.text.slice(S.length),b.text),N==P||N>150)){if(!l)return;a="prev"}a=="prev"?i>c.first?N=ft($t(c,i-1).text,null,m):N=0:a=="add"?N=x+n.options.indentUnit:a=="subtract"?N=x-n.options.indentUnit:typeof a=="number"&&(N=x+a),N=Math.max(0,N);var D="",U=0;if(n.options.indentWithTabs)for(var B=Math.floor(N/m);B;--B)U+=m,D+=" ";if(U<N&&(D+=Ct(N-U)),D!=S)return Ho(c,D,X(i,0),X(i,S.length),"+input"),b.stateAfter=null,!0;for(var J=0;J<c.sel.ranges.length;J++){var lt=c.sel.ranges[J];if(lt.head.line==i&<.head.ch<S.length){var gt=X(i,S.length);Bu(c,J,new ue(gt,gt));break}}}var rr=null;function Ea(n){rr=n}function Yu(n,i,a,l,c){var p=n.doc;n.display.shift=!1,l||(l=p.sel);var m=+new Date-200,b=c=="paste"||n.state.pasteIncoming>m,x=Hn(i),S=null;if(b&&l.ranges.length>1)if(rr&&rr.text.join(`
|
|
37
|
-
`)==i){if(l.ranges.length%rr.text.length==0){S=[];for(var N=0;N<rr.text.length;N++)S.push(p.splitLines(rr.text[N]))}}else x.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(S=yt(x,function(bt){return[bt]}));for(var D=n.curOp.updateInput,U=l.ranges.length-1;U>=0;U--){var B=l.ranges[U],J=B.from(),lt=B.to();B.empty()&&(a&&a>0?J=X(J.line,J.ch-a):n.state.overwrite&&!b?lt=X(lt.line,Math.min($t(p,lt.line).text.length,lt.ch+st(x).length)):b&&rr&&rr.lineWise&&rr.text.join(`
|
|
38
|
-
`)==x.join(`
|
|
39
|
-
`)&&(J=lt=X(J.line,0)));var gt={from:J,to:lt,text:S?S[U%S.length]:x,origin:c||(b?"paste":n.state.cutIncoming>m?"cut":"+input")};Fo(n.doc,gt),He(n,"inputRead",n,gt)}i&&!b&&hg(n,i),Ro(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function fg(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Sn(i,function(){return Yu(i,a,0,null,"paste")}),!0}function hg(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var c=a.ranges[l];if(!(c.head.ch>100||l&&a.ranges[l-1].head.line==c.head.line)){var p=n.getModeAt(c.head),m=!1;if(p.electricChars){for(var b=0;b<p.electricChars.length;b++)if(i.indexOf(p.electricChars.charAt(b))>-1){m=Xs(n,c.head.line,"smart");break}}else p.electricInput&&p.electricInput.test($t(n.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Xs(n,c.head.line,"smart"));m&&He(n,"electricInput",n,c.head.line)}}}function dg(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var c=n.doc.sel.ranges[l].head.line,p={anchor:X(c,0),head:X(c+1,0)};a.push(p),i.push(n.getRange(p.anchor,p.head))}return{text:i,ranges:a}}function Zu(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function pg(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),E&&(n.style.border="1px solid black"),i}function vx(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Tt(this).focus(),this.display.input.focus()},setOption:function(l,c){var p=this.options,m=p[l];p[l]==c&&l!="mode"||(p[l]=c,i.hasOwnProperty(l)&&qe(this,i[l])(this,c,m),ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,c){this.state.keyMaps[c?"push":"unshift"](ka(l))},removeKeyMap:function(l){for(var c=this.state.keyMaps,p=0;p<c.length;++p)if(c[p]==l||c[p].name==l)return c.splice(p,1),!0},addOverlay:en(function(l,c){var p=l.token?l:n.getMode(this.options,l);if(p.startState)throw new Error("Overlays may not be stateful.");pt(this.state.overlays,{mode:p,modeSpec:l,opaque:c&&c.opaque,priority:c&&c.priority||0},function(m){return m.priority}),this.state.modeGen++,an(this)}),removeOverlay:en(function(l){for(var c=this.state.overlays,p=0;p<c.length;++p){var m=c[p].modeSpec;if(m==l||typeof l=="string"&&m.name==l){c.splice(p,1),this.state.modeGen++,an(this);return}}}),indentLine:en(function(l,c,p){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),et(this.doc,l)&&Xs(this,l,c,p)}),indentSelection:en(function(l){for(var c=this.doc.sel.ranges,p=-1,m=0;m<c.length;m++){var b=c[m];if(b.empty())b.head.line>p&&(Xs(this,b.head.line,l,!0),p=b.head.line,m==this.doc.sel.primIndex&&Ro(this));else{var x=b.from(),S=b.to(),N=Math.max(p,x.line);p=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=N;D<p;++D)Xs(this,D,l);var U=this.doc.sel.ranges;x.ch==0&&c.length==U.length&&U[m].from().ch>0&&Bu(this.doc,m,new ue(x,U[m].to()),z)}}}),getTokenAt:function(l,c){return kd(this,l,c)},getLineTokens:function(l,c){return kd(this,X(l),c,!0)},getTokenTypeAt:function(l){l=Ut(this.doc,l);var c=xd(this,$t(this.doc,l.line)),p=0,m=(c.length-1)/2,b=l.ch,x;if(b==0)x=c[2];else for(;;){var S=p+m>>1;if((S?c[S*2-1]:0)>=b)m=S;else if(c[S*2+1]<b)p=S+1;else{x=c[S*2+2];break}}var N=x?x.indexOf("overlay "):-1;return N<0?x:N==0?null:x.slice(0,N-1)},getModeAt:function(l){var c=this.doc.mode;return c.innerMode?n.innerMode(c,this.getTokenAt(l).state).mode:c},getHelper:function(l,c){return this.getHelpers(l,c)[0]},getHelpers:function(l,c){var p=[];if(!a.hasOwnProperty(c))return p;var m=a[c],b=this.getModeAt(l);if(typeof b[c]=="string")m[b[c]]&&p.push(m[b[c]]);else if(b[c])for(var x=0;x<b[c].length;x++){var S=m[b[c][x]];S&&p.push(S)}else b.helperType&&m[b.helperType]?p.push(m[b.helperType]):m[b.name]&&p.push(m[b.name]);for(var N=0;N<m._global.length;N++){var D=m._global[N];D.pred(b,this)&&Et(p,D.val)==-1&&p.push(D.val)}return p},getStateAfter:function(l,c){var p=this.doc;return l=yd(p,l??p.first+p.size-1),Ss(this,l+1,c).state},cursorCoords:function(l,c){var p,m=this.doc.sel.primary();return l==null?p=m.head:typeof l=="object"?p=Ut(this.doc,l):p=l?m.from():m.to(),er(this,p,c||"page")},charCoords:function(l,c){return ca(this,Ut(this.doc,l),c||"page")},coordsChar:function(l,c){return l=Qd(this,l,c||"page"),xu(this,l.left,l.top)},lineAtHeight:function(l,c){return l=Qd(this,{top:l,left:0},c||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,c,p){var m=!1,b;if(typeof l=="number"){var x=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>x&&(l=x,m=!0),b=$t(this.doc,l)}else b=l;return aa(this,b,{top:0,left:0},c||"page",p||m).top+(m?this.doc.height-Rr(b):0)},defaultTextHeight:function(){return $o(this.display)},defaultCharWidth:function(){return Po(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,c,p,m,b){var x=this.display;l=er(this,Ut(this.doc,l));var S=l.bottom,N=l.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),x.sizer.appendChild(c),m=="over")S=l.top;else if(m=="above"||m=="near"){var D=Math.max(x.wrapper.clientHeight,this.doc.height),U=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||l.bottom+c.offsetHeight>D)&&l.top>c.offsetHeight?S=l.top-c.offsetHeight:l.bottom+c.offsetHeight<=D&&(S=l.bottom),N+c.offsetWidth>U&&(N=U-c.offsetWidth)}c.style.top=S+"px",c.style.left=c.style.right="",b=="right"?(N=x.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(b=="left"?N=0:b=="middle"&&(N=(x.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),p&&d1(this,{left:N,top:S,right:N+c.offsetWidth,bottom:S+c.offsetHeight})},triggerOnKeyDown:en(ng),triggerOnKeyPress:en(ig),triggerOnKeyUp:rg,triggerOnMouseDown:en(og),execCommand:function(l){if(Vs.hasOwnProperty(l))return Vs[l].call(null,this)},triggerElectric:en(function(l){hg(this,l)}),findPosH:function(l,c,p,m){var b=1;c<0&&(b=-1,c=-c);for(var x=Ut(this.doc,l),S=0;S<c&&(x=Ju(this.doc,x,b,p,m),!x.hitSide);++S);return x},moveH:en(function(l,c){var p=this;this.extendSelectionsBy(function(m){return p.display.shift||p.doc.extend||m.empty()?Ju(p.doc,m.head,l,c,p.options.rtlMoveVisually):l<0?m.from():m.to()},it)}),deleteH:en(function(l,c){var p=this.doc.sel,m=this.doc;p.somethingSelected()?m.replaceSelection("",null,"+delete"):Wo(this,function(b){var x=Ju(m,b.head,l,c,!1);return l<0?{from:x,to:b.head}:{from:b.head,to:x}})}),findPosV:function(l,c,p,m){var b=1,x=m;c<0&&(b=-1,c=-c);for(var S=Ut(this.doc,l),N=0;N<c;++N){var D=er(this,S,"div");if(x==null?x=D.left:D.left=x,S=gg(this,D,b,p),S.hitSide)break}return S},moveV:en(function(l,c){var p=this,m=this.doc,b=[],x=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(N){if(x)return l<0?N.from():N.to();var D=er(p,N.head,"div");N.goalColumn!=null&&(D.left=N.goalColumn),b.push(D.left);var U=gg(p,D,l,c);return c=="page"&&N==m.sel.primary()&&Nu(p,ca(p,U,"div").top-D.top),U},it),b.length)for(var S=0;S<m.sel.ranges.length;S++)m.sel.ranges[S].goalColumn=b[S]}),findWordAt:function(l){var c=this.doc,p=$t(c,l.line).text,m=l.ch,b=l.ch;if(p){var x=this.getHelper(l,"wordChars");(l.sticky=="before"||b==p.length)&&m?--m:++b;for(var S=p.charAt(m),N=Vt(S,x)?function(D){return Vt(D,x)}:/\s/.test(S)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Vt(D)};m>0&&N(p.charAt(m-1));)--m;for(;b<p.length&&N(p.charAt(b));)++b}return new ue(X(l.line,m),X(l.line,b))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Mt(this.display.cursorDiv,"CodeMirror-overwrite"):ot(this.display.cursorDiv,"CodeMirror-overwrite"),ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==mt(Qt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:en(function(l,c){Ms(this,l,c)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-mr(this)-this.display.barHeight,width:l.scrollWidth-mr(this)-this.display.barWidth,clientHeight:mu(this),clientWidth:qi(this)}},scrollIntoView:en(function(l,c){l==null?(l={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof l=="number"?l={from:X(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=c||0,l.from.line!=null?p1(this,l):ap(this,l.from,l.to,l.margin)}),setSize:en(function(l,c){var p=this,m=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};l!=null&&(this.display.wrapper.style.width=m(l)),c!=null&&(this.display.wrapper.style.height=m(c)),this.options.lineWrapping&&Yd(this);var b=this.display.viewFrom;this.doc.iter(b,this.display.viewTo,function(x){if(x.widgets){for(var S=0;S<x.widgets.length;S++)if(x.widgets[S].noHScroll){ni(p,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,ke(this,"refresh",this)}),operation:function(l){return Sn(this,l)},startOperation:function(){return ji(this)},endOperation:function(){return Ki(this)},refresh:en(function(){var l=this.display.cachedTextHeight;an(this),this.curOp.forceUpdate=!0,Ls(this),Ms(this,this.doc.scrollLeft,this.doc.scrollTop),Ou(this.display),(l==null||Math.abs(l-$o(this.display))>.5||this.options.lineWrapping)&&Cu(this),ke(this,"refresh",this)}),swapDoc:en(function(l){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),_p(this,l),Ls(this),this.display.input.reset(),Ms(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,He(this,"swapDoc",this,c),c}),phrase:function(l){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,l)?c[l]:l},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}},Xn(n),n.registerHelper=function(l,c,p){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][c]=p},n.registerGlobalHelper=function(l,c,p,m){n.registerHelper(l,c,m),a[l]._global.push({pred:p,val:m})}}function Ju(n,i,a,l,c){var p=i,m=a,b=$t(n,i.line),x=c&&n.direction=="rtl"?-a:a;function S(){var kt=i.line+x;return kt<n.first||kt>=n.first+n.size?!1:(i=new X(kt,i.ch,i.sticky),b=$t(n,kt))}function N(kt){var wt;if(l=="codepoint"){var Lt=b.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Lt))wt=null;else{var Dt=a>0?Lt>=55296&&Lt<56320:Lt>=56320&&Lt<57343;wt=new X(i.line,Math.max(0,Math.min(b.text.length,i.ch+a*(Dt?2:1))),-a)}}else c?wt=Z1(n.cm,b,i,a):wt=Uu(b,i,a);if(wt==null)if(!kt&&S())i=Vu(c,n.cm,b,i.line,x);else return!1;else i=wt;return!0}if(l=="char"||l=="codepoint")N();else if(l=="column")N(!0);else if(l=="word"||l=="group")for(var D=null,U=l=="group",B=n.cm&&n.cm.getHelper(i,"wordChars"),J=!0;!(a<0&&!N(!J));J=!1){var lt=b.text.charAt(i.ch)||`
|
|
40
|
-
`,gt=Vt(lt,B)?"w":U&<==`
|
|
41
|
-
`?"n":!U||/\s/.test(lt)?null:"p";if(U&&!J&&!gt&&(gt="s"),D&&D!=gt){a<0&&(a=1,N(),i.sticky="after");break}if(gt&&(D=gt),a>0&&!N(!J))break}var bt=xa(n,i,p,m,!0);return ce(p,bt)&&(bt.hitSide=!0),bt}function gg(n,i,a,l){var c=n.doc,p=i.left,m;if(l=="page"){var b=Math.min(n.display.wrapper.clientHeight,Tt(n).innerHeight||c(n).documentElement.clientHeight),x=Math.max(b-.5*$o(n.display),3);m=(a>0?i.bottom:i.top)+a*x}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var S;S=xu(n,p,m),!!S.outside;){if(a<0?m<=0:m>=c.height){S.hitSide=!0;break}m+=a*5}return S}var de=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Nt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};de.prototype.init=function(n){var i=this,a=this,l=a.cm,c=a.div=n.lineDiv;c.contentEditable=!0,Zu(c,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function p(b){for(var x=b.target;x;x=x.parentNode){if(x==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}Rt(c,"paste",function(b){!p(b)||Ce(l,b)||fg(b,l)||g<=11&&setTimeout(qe(l,function(){return i.updateFromDOM()}),20)}),Rt(c,"compositionstart",function(b){i.composing={data:b.data,done:!1}}),Rt(c,"compositionupdate",function(b){i.composing||(i.composing={data:b.data,done:!1})}),Rt(c,"compositionend",function(b){i.composing&&(b.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Rt(c,"touchstart",function(){return a.forceCompositionEnd()}),Rt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(b){if(!(!p(b)||Ce(l,b))){if(l.somethingSelected())Ea({lineWise:!1,text:l.getSelections()}),b.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var x=dg(l);Ea({lineWise:!0,text:x.text}),b.type=="cut"&&l.operation(function(){l.setSelections(x.ranges,0,z),l.replaceSelection("",null,"cut")})}else return;if(b.clipboardData){b.clipboardData.clearData();var S=rr.text.join(`
|
|
42
|
-
`);if(b.clipboardData.setData("Text",S),b.clipboardData.getData("Text")==S){b.preventDefault();return}}var N=pg(),D=N.firstChild;Zu(D),l.display.lineSpace.insertBefore(N,l.display.lineSpace.firstChild),D.value=rr.text.join(`
|
|
43
|
-
`);var U=mt(Yt(c));Wt(D),setTimeout(function(){l.display.lineSpace.removeChild(N),U.focus(),U==c&&a.showPrimarySelection()},50)}}Rt(c,"copy",m),Rt(c,"cut",m)},de.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},de.prototype.prepareSelection=function(){var n=op(this.cm,!1);return n.focus=mt(Yt(this.div))==this.div,n},de.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},de.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},de.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),c=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||c.line<i.display.viewFrom){n.removeAllRanges();return}var p=La(i,n.anchorNode,n.anchorOffset),m=La(i,n.focusNode,n.focusOffset);if(!(p&&!p.bad&&m&&!m.bad&&_t(Lo(p,m),l)==0&&_t(ln(p,m),c)==0)){var b=i.display.view,x=l.line>=i.display.viewFrom&&vg(i,l)||{node:b[0].measure.map[2],offset:0},S=c.line<i.display.viewTo&&vg(i,c);if(!S){var N=b[b.length-1].measure,D=N.maps?N.maps[N.maps.length-1]:N.map;S={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!x||!S){n.removeAllRanges();return}var U=n.rangeCount&&n.getRangeAt(0),B;try{B=W(x.node,x.offset,S.offset,S.node)}catch{}B&&(!s&&i.state.focused?(n.collapse(x.node,x.offset),B.collapsed||(n.removeAllRanges(),n.addRange(B))):(n.removeAllRanges(),n.addRange(B)),U&&n.anchorNode==null?n.addRange(U):s&&this.startGracePeriod()),this.rememberSelection()}},de.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},de.prototype.showMultipleSelections=function(n){I(this.cm.display.cursorDiv,n.cursors),I(this.cm.display.selectionDiv,n.selection)},de.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},de.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return Q(this.div,i)},de.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||mt(Yt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},de.prototype.blur=function(){this.div.blur()},de.prototype.getField=function(){return this.div},de.prototype.supportsTouch=function(){return!0},de.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Sn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},de.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},de.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(O&&w&&this.cm.display.gutterSpecs.length&&mx(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=La(i,n.anchorNode,n.anchorOffset),l=La(i,n.focusNode,n.focusOffset);a&&l&&Sn(i,function(){Je(i.doc,ii(a,l),z),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},de.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),c=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=X(l.line-1,$t(n.doc,l.line-1).length)),c.ch==$t(n.doc,c.line).text.length&&c.line<n.lastLine()&&(c=X(c.line+1,0)),l.line<i.viewFrom||c.line>i.viewTo-1)return!1;var p,m,b;l.line==i.viewFrom||(p=Ui(n,l.line))==0?(m=C(i.view[0].line),b=i.view[0].node):(m=C(i.view[p].line),b=i.view[p-1].node.nextSibling);var x=Ui(n,c.line),S,N;if(x==i.view.length-1?(S=i.viewTo-1,N=i.lineDiv.lastChild):(S=C(i.view[x+1].line)-1,N=i.view[x+1].node.previousSibling),!b)return!1;for(var D=n.doc.splitLines(yx(n,b,N,m,S)),U=Pr(n.doc,X(m,0),X(S,$t(n.doc,S).text.length));D.length>1&&U.length>1;)if(st(D)==st(U))D.pop(),U.pop(),S--;else if(D[0]==U[0])D.shift(),U.shift(),m++;else break;for(var B=0,J=0,lt=D[0],gt=U[0],bt=Math.min(lt.length,gt.length);B<bt&<.charCodeAt(B)==gt.charCodeAt(B);)++B;for(var kt=st(D),wt=st(U),Lt=Math.min(kt.length-(D.length==1?B:0),wt.length-(U.length==1?B:0));J<Lt&&kt.charCodeAt(kt.length-J-1)==wt.charCodeAt(wt.length-J-1);)++J;if(D.length==1&&U.length==1&&m==l.line)for(;B&&B>l.ch&&kt.charCodeAt(kt.length-J-1)==wt.charCodeAt(wt.length-J-1);)B--,J++;D[D.length-1]=kt.slice(0,kt.length-J).replace(/^\u200b+/,""),D[0]=D[0].slice(B).replace(/\u200b+$/,"");var Dt=X(m,B),Pt=X(S,U.length?st(U).length-J:0);if(D.length>1||D[0]||_t(Dt,Pt))return Ho(n.doc,D,Dt,Pt,"+input"),!0},de.prototype.ensurePolled=function(){this.forceCompositionEnd()},de.prototype.reset=function(){this.forceCompositionEnd()},de.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},de.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},de.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Sn(this.cm,function(){return an(n.cm)})},de.prototype.setUneditable=function(n){n.contentEditable="false"},de.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||qe(this.cm,Yu)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},de.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},de.prototype.onContextMenu=function(){},de.prototype.resetPosition=function(){},de.prototype.needsContentAttribute=!0;function vg(n,i){var a=yu(n,i.line);if(!a||a.hidden)return null;var l=$t(n.doc,i.line),c=Vd(a,l,i.line),p=Bt(l,n.doc.direction),m="left";if(p){var b=Kn(p,i.ch);m=b%2?"right":"left"}var x=Kd(c.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function mx(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Vo(n,i){return i&&(n.bad=!0),n}function yx(n,i,a,l,c){var p="",m=!1,b=n.doc.lineSeparator(),x=!1;function S(B){return function(J){return J.id==B}}function N(){m&&(p+=b,x&&(p+=b),m=x=!1)}function D(B){B&&(N(),p+=B)}function U(B){if(B.nodeType==1){var J=B.getAttribute("cm-text");if(J){D(J);return}var lt=B.getAttribute("cm-marker"),gt;if(lt){var bt=n.findMarks(X(l,0),X(c+1,0),S(+lt));bt.length&&(gt=bt[0].find(0))&&D(Pr(n.doc,gt.from,gt.to).join(b));return}if(B.getAttribute("contenteditable")=="false")return;var kt=/^(pre|div|p|li|table|br)$/i.test(B.nodeName);if(!/^br$/i.test(B.nodeName)&&B.textContent.length==0)return;kt&&N();for(var wt=0;wt<B.childNodes.length;wt++)U(B.childNodes[wt]);/^(pre|p)$/i.test(B.nodeName)&&(x=!0),kt&&(m=!0)}else B.nodeType==3&&D(B.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;U(i),i!=a;)i=i.nextSibling,x=!1;return p}function La(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return Vo(n.clipPos(X(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var c=0;c<n.display.view.length;c++){var p=n.display.view[c];if(p.node==l)return bx(p,i,a)}}function bx(n,i,a){var l=n.text.firstChild,c=!1;if(!i||!Q(l,i))return Vo(X(C(n.line),0),!0);if(i==l&&(c=!0,i=l.childNodes[a],a=0,!i)){var p=n.rest?st(n.rest):n.line;return Vo(X(C(p),p.text.length),c)}var m=i.nodeType==3?i:null,b=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,a&&(a=m.nodeValue.length));b.parentNode!=l;)b=b.parentNode;var x=n.measure,S=x.maps;function N(gt,bt,kt){for(var wt=-1;wt<(S?S.length:0);wt++)for(var Lt=wt<0?x.map:S[wt],Dt=0;Dt<Lt.length;Dt+=3){var Pt=Lt[Dt+2];if(Pt==gt||Pt==bt){var Zt=C(wt<0?n.line:n.rest[wt]),ve=Lt[Dt]+kt;return(kt<0||Pt!=gt)&&(ve=Lt[Dt+(kt?1:0)]),X(Zt,ve)}}}var D=N(m,b,a);if(D)return Vo(D,c);for(var U=b.nextSibling,B=m?m.nodeValue.length-a:0;U;U=U.nextSibling){if(D=N(U,U.firstChild,0),D)return Vo(X(D.line,D.ch-B),c);B+=U.textContent.length}for(var J=b.previousSibling,lt=a;J;J=J.previousSibling){if(D=N(J,J.firstChild,-1),D)return Vo(X(D.line,D.ch+lt),c);lt+=J.textContent.length}}var Le=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new Nt,this.hasSelection=!1,this.composing=null,this.resetting=!1};Le.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var c=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),E&&(c.style.width="0px"),Rt(c,"input",function(){d&&g>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Rt(c,"paste",function(m){Ce(l,m)||fg(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function p(m){if(!Ce(l,m)){if(l.somethingSelected())Ea({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var b=dg(l);Ea({lineWise:!0,text:b.text}),m.type=="cut"?l.setSelections(b.ranges,null,z):(a.prevInput="",c.value=b.text.join(`
|
|
44
|
-
`),Wt(c))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Rt(c,"cut",p),Rt(c,"copy",p),Rt(n.scroller,"paste",function(m){if(!(Dr(n,m)||Ce(l,m))){if(!c.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var b=new Event("paste");b.clipboardData=m.clipboardData,c.dispatchEvent(b)}}),Rt(n.lineSpace,"selectstart",function(m){Dr(n,m)||Ze(m)}),Rt(c,"compositionstart",function(){var m=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:m,range:l.markText(m,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(c,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Le.prototype.createField=function(n){this.wrapper=pg(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Zu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Le.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Le.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=op(n);if(n.options.moveInputWithCursor){var c=er(n,a.sel.primary().head,"div"),p=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+m.top-p.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+m.left-p.left))}return l},Le.prototype.showSelection=function(n){var i=this.cm,a=i.display;I(a.cursorDiv,n.cursors),I(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Le.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Wt(this.textarea),d&&g>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Le.prototype.getField=function(){return this.textarea},Le.prototype.supportsTouch=function(){return!1},Le.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!$||mt(Yt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Le.prototype.blur=function(){this.textarea.blur()},Le.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Le.prototype.receivedFocus=function(){this.slowPoll()},Le.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Le.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Le.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Qr(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=a.value;if(c==l&&!i.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===c||F&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var p=c.charCodeAt(0);if(p==8203&&!l&&(l=""),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,b=Math.min(l.length,c.length);m<b&&l.charCodeAt(m)==c.charCodeAt(m);)++m;return Sn(i,function(){Yu(i,c.slice(m),l.length-m,null,n.composing?"*compose":null),c.length>1e3||c.indexOf(`
|
|
45
|
-
`)>-1?a.value=n.prevInput="":n.prevInput=c,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Le.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Le.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},Le.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=Wi(a,n),m=l.scroller.scrollTop;if(!p||M)return;var b=a.options.resetSelectionOnContextMenu;b&&a.doc.sel.contains(p)==-1&&qe(a,Je)(a.doc,ii(p),z);var x=c.style.cssText,S=i.wrapper.style.cssText,N=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
46
|
-
top: `+(n.clientY-N.top-5)+"px; left: "+(n.clientX-N.left-5)+`px;
|
|
47
|
-
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
48
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=c.ownerDocument.defaultView.scrollY),l.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=B,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function U(){if(c.selectionStart!=null){var lt=a.somethingSelected(),gt=""+(lt?c.value:"");c.value="⇚",c.value=gt,i.prevInput=lt?"":"",c.selectionStart=1,c.selectionEnd=gt.length,l.selForContextMenu=a.doc.sel}}function B(){if(i.contextMenuPending==B&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,c.style.cssText=x,d&&g<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),c.selectionStart!=null)){(!d||d&&g<9)&&U();var lt=0,gt=function(){l.selForContextMenu==a.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput==""?qe(a,Rp)(a):lt++<10?l.detectingSelectAll=setTimeout(gt,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(gt,200)}}if(d&&g>=9&&U(),Z){Zr(n);var J=function(){Ye(window,"mouseup",J),setTimeout(B,20)};Rt(window,"mouseup",J)}else setTimeout(B,50)},Le.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Le.prototype.setUneditable=function(){},Le.prototype.needsContentAttribute=!1;function wx(n,i){if(i=i?rt(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=mt(Yt(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=b.getValue()}var c;if(n.form&&(Rt(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var p=n.form;c=p.submit;try{var m=p.submit=function(){l(),p.submit=c,p.submit(),p.submit=m}}catch{}}i.finishInit=function(x){x.save=l,x.getTextArea=function(){return n},x.toTextArea=function(){x.toTextArea=isNaN,l(),n.parentNode.removeChild(x.getWrapperElement()),n.style.display="",n.form&&(Ye(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=c))}},n.style.display="none";var b=we(function(x){return n.parentNode.insertBefore(x,n.nextSibling)},i);return b}function xx(n){n.off=Ye,n.on=Rt,n.wheelEventPixels=L1,n.Doc=cn,n.splitLines=Hn,n.countColumn=ft,n.findColumn=nt,n.isWordChar=Ft,n.Pass=P,n.signal=ke,n.Line=Ao,n.changeEnd=oi,n.scrollbarModel=fp,n.Pos=X,n.cmpPos=_t,n.modes=So,n.mimeModes=Jn,n.resolveMode=ko,n.getMode=Co,n.modeExtensions=ti,n.extendMode=To,n.copyState=gr,n.startState=Eo,n.innerMode=xs,n.commands=Vs,n.keyMap=Ir,n.keyName=Zp,n.isModifierKey=Xp,n.lookupKey=Bo,n.normalizeKeyMap=Y1,n.StringStream=Te,n.SharedTextMarker=Bs,n.TextMarker=li,n.LineWidget=qs,n.e_preventDefault=Ze,n.e_stopPropagation=xo,n.e_stop=Zr,n.addClass=Mt,n.contains=Q,n.rmClass=ot,n.keyNames=ai}hx(we),vx(we);var _x="iter insert remove copy getEditor constructor".split(" ");for(var Aa in cn.prototype)cn.prototype.hasOwnProperty(Aa)&&Et(_x,Aa)<0&&(we.prototype[Aa]=function(n){return function(){return n.apply(this.doc,arguments)}}(cn.prototype[Aa]));return Xn(cn),we.inputStyles={textarea:Le,contenteditable:de},we.defineMode=function(n){!we.defaults.mode&&n!="null"&&(we.defaults.mode=n),Qn.apply(this,arguments)},we.defineMIME=Hi,we.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),we.defineMIME("text/plain","null"),we.defineExtension=function(n,i){we.prototype[n]=i},we.defineDocExtension=function(n,i){cn.prototype[n]=i},we.fromTextArea=wx,xx(we),we.version="5.65.16",we})}(Sf)),Sf.exports}var rct=ms();const ict=Hy(rct);var oct={exports:{}};(function(t,e){(function(r){r(ms())})(function(r){r.defineMode("javascript",function(o,s){var u=o.indentUnit,f=s.statementIndent,h=s.jsonld,d=s.json||h,g=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function C(Fe){return{type:Fe,style:"keyword"}}var R=C("keyword a"),et=C("keyword b"),dt=C("keyword c"),X=C("keyword d"),_t=C("operator"),ce={type:"atom",style:"atom"};return{if:C("if"),while:R,with:R,else:et,do:et,try:et,finally:et,return:X,break:X,continue:X,new:C("new"),delete:dt,void:dt,throw:dt,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:_t,typeof:_t,instanceof:_t,true:ce,false:ce,null:ce,undefined:ce,NaN:ce,Infinity:ce,this:C("this"),class:C("class"),super:C("atom"),yield:dt,export:C("export"),import:C("import"),extends:dt,await:dt}}(),_=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(C){for(var R=!1,et,dt=!1;(et=C.next())!=null;){if(!R){if(et=="/"&&!dt)return;et=="["?dt=!0:dt&&et=="]"&&(dt=!1)}R=!R&&et=="\\"}}var L,T;function E(C,R,et){return L=C,T=et,R}function O(C,R){var et=C.next();if(et=='"'||et=="'")return R.tokenize=$(et),R.tokenize(C,R);if(et=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(et=="."&&C.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(et))return E(et);if(et=="="&&C.eat(">"))return E("=>","operator");if(et=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(et))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(et=="/")return C.eat("*")?(R.tokenize=F,F(C,R)):C.eat("/")?(C.skipToEnd(),E("comment","comment")):$n(C,R,1)?(A(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(C.eat("="),E("operator","operator",C.current()));if(et=="`")return R.tokenize=H,H(C,R);if(et=="#"&&C.peek()=="!")return C.skipToEnd(),E("meta","meta");if(et=="#"&&C.eatWhile(y))return E("variable","property");if(et=="<"&&C.match("!--")||et=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),E("comment","comment");if(_.test(et))return(et!=">"||!R.lexical||R.lexical.type!=">")&&(C.eat("=")?(et=="!"||et=="=")&&C.eat("="):/[<>*+\-|&?]/.test(et)&&(C.eat(et),et==">"&&C.eat(et))),et=="?"&&C.eat(".")?E("."):E("operator","operator",C.current());if(y.test(et)){C.eatWhile(y);var dt=C.current();if(R.lastType!="."){if(w.propertyIsEnumerable(dt)){var X=w[dt];return E(X.type,X.style,dt)}if(dt=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",dt)}return E("variable","variable",dt)}}function $(C){return function(R,et){var dt=!1,X;if(h&&R.peek()=="@"&&R.match(M))return et.tokenize=O,E("jsonld-keyword","meta");for(;(X=R.next())!=null&&!(X==C&&!dt);)dt=!dt&&X=="\\";return dt||(et.tokenize=O),E("string","string")}}function F(C,R){for(var et=!1,dt;dt=C.next();){if(dt=="/"&&et){R.tokenize=O;break}et=dt=="*"}return E("comment","comment")}function H(C,R){for(var et=!1,dt;(dt=C.next())!=null;){if(!et&&(dt=="`"||dt=="$"&&C.eat("{"))){R.tokenize=O;break}et=!et&&dt=="\\"}return E("quasi","string-2",C.current())}var ct="([{}])";function Y(C,R){R.fatArrowAt&&(R.fatArrowAt=null);var et=C.string.indexOf("=>",C.start);if(!(et<0)){if(v){var dt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,et));dt&&(et=dt.index)}for(var X=0,_t=!1,ce=et-1;ce>=0;--ce){var Fe=C.string.charAt(ce),ln=ct.indexOf(Fe);if(ln>=0&&ln<3){if(!X){++ce;break}if(--X==0){Fe=="("&&(_t=!0);break}}else if(ln>=3&&ln<6)++X;else if(y.test(Fe))_t=!0;else if(/["'\/`]/.test(Fe))for(;;--ce){if(ce==0)return;var Lo=C.string.charAt(ce-1);if(Lo==Fe&&C.string.charAt(ce-2)!="\\"){ce--;break}}else if(_t&&!X){++ce;break}}_t&&!X&&(R.fatArrowAt=ce)}}var ht={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Z(C,R,et,dt,X,_t){this.indented=C,this.column=R,this.type=et,this.prev=X,this.info=_t,dt!=null&&(this.align=dt)}function ut(C,R){if(!g)return!1;for(var et=C.localVars;et;et=et.next)if(et.name==R)return!0;for(var dt=C.context;dt;dt=dt.prev)for(var et=dt.vars;et;et=et.next)if(et.name==R)return!0}function ot(C,R,et,dt,X){var _t=C.cc;for(j.state=C,j.stream=X,j.marked=null,j.cc=_t,j.style=R,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ce=_t.length?_t.pop():d?Et:ft;if(ce(et,dt)){for(;_t.length&&_t[_t.length-1].lex;)_t.pop()();return j.marked?j.marked:et=="variable"&&ut(C,dt)?"variable-2":R}}}var j={state:null,column:null,marked:null,cc:null};function I(){for(var C=arguments.length-1;C>=0;C--)j.cc.push(arguments[C])}function k(){return I.apply(null,arguments),!0}function q(C,R){for(var et=R;et;et=et.next)if(et.name==C)return!0;return!1}function W(C){var R=j.state;if(j.marked="def",!!g){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var et=Q(C,R.context);if(et!=null){R.context=et;return}}else if(!q(C,R.localVars)){R.localVars=new qt(C,R.localVars);return}}s.globalVars&&!q(C,R.globalVars)&&(R.globalVars=new qt(C,R.globalVars))}}function Q(C,R){if(R)if(R.block){var et=Q(C,R.prev);return et?et==R.prev?R:new Mt(et,R.vars,!0):null}else return q(C,R.vars)?R:new Mt(R.prev,new qt(C,R.vars),!1);else return null}function mt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Mt(C,R,et){this.prev=C,this.vars=R,this.block=et}function qt(C,R){this.name=C,this.next=R}var Wt=new qt("this",new qt("arguments",null));function ee(){j.state.context=new Mt(j.state.context,j.state.localVars,!1),j.state.localVars=Wt}function Qt(){j.state.context=new Mt(j.state.context,j.state.localVars,!0),j.state.localVars=null}ee.lex=Qt.lex=!0;function Yt(){j.state.localVars=j.state.context.vars,j.state.context=j.state.context.prev}Yt.lex=!0;function Tt(C,R){var et=function(){var dt=j.state,X=dt.indented;if(dt.lexical.type=="stat")X=dt.lexical.indented;else for(var _t=dt.lexical;_t&&_t.type==")"&&_t.align;_t=_t.prev)X=_t.indented;dt.lexical=new Z(X,j.stream.column(),C,null,dt.lexical,R)};return et.lex=!0,et}function G(){var C=j.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}G.lex=!0;function rt(C){function R(et){return et==C?k():C==";"||et=="}"||et==")"||et=="]"?I():k(R)}return R}function ft(C,R){return C=="var"?k(Tt("vardef",R),xo,rt(";"),G):C=="keyword a"?k(Tt("form"),P,ft,G):C=="keyword b"?k(Tt("form"),ft,G):C=="keyword d"?j.stream.match(/^\s*$/,!1)?k():k(Tt("stat"),K,rt(";"),G):C=="debugger"?k(rt(";")):C=="{"?k(Tt("}"),Qt,Ke,G,Yt):C==";"?k():C=="if"?(j.state.lexical.info=="else"&&j.state.cc[j.state.cc.length-1]==G&&j.state.cc.pop()(),k(Tt("form"),P,ft,G,_o)):C=="function"?k(Hn):C=="for"?k(Tt("form"),Qt,Jl,ft,Yt,G):C=="class"||v&&R=="interface"?(j.marked="keyword",k(Tt("form",C=="class"?C:R),So,G)):C=="variable"?v&&R=="declare"?(j.marked="keyword",k(ft)):v&&(R=="module"||R=="enum"||R=="type")&&j.stream.match(/^\s*\w/,!1)?(j.marked="keyword",R=="enum"?k($t):R=="type"?k(Ql,rt("operator"),Bt,rt(";")):k(Tt("form"),sn,rt("{"),Tt("}"),Ke,G,G)):v&&R=="namespace"?(j.marked="keyword",k(Tt("form"),Et,ft,G)):v&&R=="abstract"?(j.marked="keyword",k(ft)):k(Tt("stat"),Ot):C=="switch"?k(Tt("form"),P,rt("{"),Tt("}","switch"),Qt,Ke,G,G,Yt):C=="case"?k(Et,rt(":")):C=="default"?k(rt(":")):C=="catch"?k(Tt("form"),ee,Nt,ft,G,Yt):C=="export"?k(Tt("stat"),ko,G):C=="import"?k(Tt("stat"),ti,G):C=="async"?k(ft):R=="@"?k(Et,ft):I(Tt("stat"),Et,rt(";"),G)}function Nt(C){if(C=="(")return k(Zn,rt(")"))}function Et(C,R){return z(C,R,!1)}function Kt(C,R){return z(C,R,!0)}function P(C){return C!="("?I():k(Tt(")"),K,rt(")"),G)}function z(C,R,et){if(j.state.fatArrowAt==j.stream.start){var dt=et?yt:st;if(C=="(")return k(ee,Tt(")"),Jt(Zn,")"),G,rt("=>"),dt,Yt);if(C=="variable")return I(ee,sn,rt("=>"),dt,Yt)}var X=et?nt:it;return ht.hasOwnProperty(C)?k(X):C=="function"?k(Hn,X):C=="class"||v&&R=="interface"?(j.marked="keyword",k(Tt("form"),lu,G)):C=="keyword c"||C=="async"?k(et?Kt:Et):C=="("?k(Tt(")"),K,rt(")"),G,X):C=="operator"||C=="spread"?k(et?Kt:Et):C=="["?k(Tt("]"),Te,G,X):C=="{"?ze(Vt,"}",null,X):C=="quasi"?I(vt,X):C=="new"?k(pt(et)):k()}function K(C){return C.match(/[;\}\)\],]/)?I():I(Et)}function it(C,R){return C==","?k(K):nt(C,R,!1)}function nt(C,R,et){var dt=et==!1?it:nt,X=et==!1?Et:Kt;if(C=="=>")return k(ee,et?yt:st,Yt);if(C=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(dt):v&&R=="<"&&j.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Tt(">"),Jt(Bt,">"),G,dt):R=="?"?k(Et,rt(":"),X):k(X);if(C=="quasi")return I(vt,dt);if(C!=";"){if(C=="(")return ze(Kt,")","call",dt);if(C==".")return k(Ft,dt);if(C=="[")return k(Tt("]"),K,rt("]"),G,dt);if(v&&R=="as")return j.marked="keyword",k(Bt,dt);if(C=="regexp")return j.state.lastType=j.marked="operator",j.stream.backUp(j.stream.pos-j.stream.start-1),k(X)}}function vt(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(vt):k(K,Ct)}function Ct(C){if(C=="}")return j.marked="string-2",j.state.tokenize=H,k(vt)}function st(C){return Y(j.stream,j.state),I(C=="{"?ft:Et)}function yt(C){return Y(j.stream,j.state),I(C=="{"?ft:Kt)}function pt(C){return function(R){return R=="."?k(C?zt:At):R=="variable"&&v?k(_n,C?nt:it):I(C?Kt:Et)}}function At(C,R){if(R=="target")return j.marked="keyword",k(it)}function zt(C,R){if(R=="target")return j.marked="keyword",k(nt)}function Ot(C){return C==":"?k(G,ft):I(it,rt(";"),G)}function Ft(C){if(C=="variable")return j.marked="property",k()}function Vt(C,R){if(C=="async")return j.marked="property",k(Vt);if(C=="variable"||j.style=="keyword"){if(j.marked="property",R=="get"||R=="set")return k(le);var et;return v&&j.state.fatArrowAt==j.stream.start&&(et=j.stream.match(/^\s*:\s*/,!1))&&(j.state.fatArrowAt=j.stream.pos+et[0].length),k(oe)}else{if(C=="number"||C=="string")return j.marked=h?"property":j.style+" property",k(oe);if(C=="jsonld-keyword")return k(oe);if(v&&mt(R))return j.marked="keyword",k(Vt);if(C=="[")return k(Et,jn,rt("]"),oe);if(C=="spread")return k(Kt,oe);if(R=="*")return j.marked="keyword",k(Vt);if(C==":")return I(oe)}}function le(C){return C!="variable"?I(oe):(j.marked="property",k(Hn))}function oe(C){if(C==":")return k(Kt);if(C=="(")return I(Hn)}function Jt(C,R,et){function dt(X,_t){if(et?et.indexOf(X)>-1:X==","){var ce=j.state.lexical;return ce.info=="call"&&(ce.pos=(ce.pos||0)+1),k(function(Fe,ln){return Fe==R||ln==R?I():I(C)},dt)}return X==R||_t==R?k():et&&et.indexOf(";")>-1?I(C):k(rt(R))}return function(X,_t){return X==R||_t==R?k():I(C,dt)}}function ze(C,R,et){for(var dt=3;dt<arguments.length;dt++)j.cc.push(arguments[dt]);return k(Tt(R,et),Jt(C,R),G)}function Ke(C){return C=="}"?k():I(ft,Ke)}function jn(C,R){if(v){if(C==":")return k(Bt);if(R=="?")return k(jn)}}function Nn(C,R){if(v&&(C==":"||R=="in"))return k(Bt)}function Kn(C){if(v&&C==":")return j.stream.match(/^\s*\w+\s+is\b/,!1)?k(Et,Xe,Bt):k(Bt)}function Xe(C,R){if(R=="is")return j.marked="keyword",k()}function Bt(C,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return j.marked="keyword",k(R=="typeof"?Kt:Bt);if(C=="variable"||R=="void")return j.marked="type",k(Fn);if(R=="|"||R=="&")return k(Bt);if(C=="string"||C=="number"||C=="atom")return k(Fn);if(C=="[")return k(Tt("]"),Jt(Bt,"]",","),G,Fn);if(C=="{")return k(Tt("}"),Rt,G,Fn);if(C=="(")return k(Jt(Ce,")"),Fi,Fn);if(C=="<")return k(Jt(Bt,">"),Bt);if(C=="quasi")return I(Ye,Fn)}function Fi(C){if(C=="=>")return k(Bt)}function Rt(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Rt):I($r,Rt)}function $r(C,R){if(C=="variable"||j.style=="keyword")return j.marked="property",k($r);if(R=="?"||C=="number"||C=="string")return k($r);if(C==":")return k(Bt);if(C=="[")return k(rt("variable"),Nn,rt("]"),$r);if(C=="(")return I(Qr,$r);if(!C.match(/[;\}\)\],]/))return k()}function Ye(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(Ye):k(Bt,ke)}function ke(C){if(C=="}")return j.marked="string-2",j.state.tokenize=H,k(Ye)}function Ce(C,R){return C=="variable"&&j.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Ce):C==":"?k(Bt):C=="spread"?k(Ce):I(Bt)}function Fn(C,R){if(R=="<")return k(Tt(">"),Jt(Bt,">"),G,Fn);if(R=="|"||C=="."||R=="&")return k(Bt);if(C=="[")return k(Bt,rt("]"),Fn);if(R=="extends"||R=="implements")return j.marked="keyword",k(Bt);if(R=="?")return k(Bt,rt(":"),Bt)}function _n(C,R){if(R=="<")return k(Tt(">"),Jt(Bt,">"),G,Fn)}function Xn(){return I(Bt,Ze)}function Ze(C,R){if(R=="=")return k(Bt)}function xo(C,R){return R=="enum"?(j.marked="keyword",k($t)):I(sn,jn,Yn,su)}function sn(C,R){if(v&&mt(R))return j.marked="keyword",k(sn);if(C=="variable")return W(R),k();if(C=="spread")return k(sn);if(C=="[")return ze(bs,"]");if(C=="{")return ze(Zr,"}")}function Zr(C,R){return C=="variable"&&!j.stream.match(/^\s*:/,!1)?(W(R),k(Yn)):(C=="variable"&&(j.marked="property"),C=="spread"?k(sn):C=="}"?I():C=="["?k(Et,rt("]"),rt(":"),Zr):k(rt(":"),sn,Yn))}function bs(){return I(sn,Yn)}function Yn(C,R){if(R=="=")return k(Kt)}function su(C){if(C==",")return k(xo)}function _o(C,R){if(C=="keyword b"&&R=="else")return k(Tt("form","else"),ft,G)}function Jl(C,R){if(R=="await")return k(Jl);if(C=="(")return k(Tt(")"),ws,G)}function ws(C){return C=="var"?k(xo,Jr):C=="variable"?k(Jr):I(Jr)}function Jr(C,R){return C==")"?k():C==";"?k(Jr):R=="in"||R=="of"?(j.marked="keyword",k(Et,Jr)):I(Et,Jr)}function Hn(C,R){if(R=="*")return j.marked="keyword",k(Hn);if(C=="variable")return W(R),k(Hn);if(C=="(")return k(ee,Tt(")"),Jt(Zn,")"),G,Kn,ft,Yt);if(v&&R=="<")return k(Tt(">"),Jt(Xn,">"),G,Hn)}function Qr(C,R){if(R=="*")return j.marked="keyword",k(Qr);if(C=="variable")return W(R),k(Qr);if(C=="(")return k(ee,Tt(")"),Jt(Zn,")"),G,Kn,Yt);if(v&&R=="<")return k(Tt(">"),Jt(Xn,">"),G,Qr)}function Ql(C,R){if(C=="keyword"||C=="variable")return j.marked="type",k(Ql);if(R=="<")return k(Tt(">"),Jt(Xn,">"),G)}function Zn(C,R){return R=="@"&&k(Et,Zn),C=="spread"?k(Zn):v&&mt(R)?(j.marked="keyword",k(Zn)):v&&C=="this"?k(jn,Yn):I(sn,jn,Yn)}function lu(C,R){return C=="variable"?So(C,R):Jn(C,R)}function So(C,R){if(C=="variable")return W(R),k(Jn)}function Jn(C,R){if(R=="<")return k(Tt(">"),Jt(Xn,">"),G,Jn);if(R=="extends"||R=="implements"||v&&C==",")return R=="implements"&&(j.marked="keyword"),k(v?Bt:Et,Jn);if(C=="{")return k(Tt("}"),Qn,G)}function Qn(C,R){if(C=="async"||C=="variable"&&(R=="static"||R=="get"||R=="set"||v&&mt(R))&&j.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return j.marked="keyword",k(Qn);if(C=="variable"||j.style=="keyword")return j.marked="property",k(Hi,Qn);if(C=="number"||C=="string")return k(Hi,Qn);if(C=="[")return k(Et,jn,rt("]"),Hi,Qn);if(R=="*")return j.marked="keyword",k(Qn);if(v&&C=="(")return I(Qr,Qn);if(C==";"||C==",")return k(Qn);if(C=="}")return k();if(R=="@")return k(Et,Qn)}function Hi(C,R){if(R=="!"||R=="?")return k(Hi);if(C==":")return k(Bt,Yn);if(R=="=")return k(Kt);var et=j.state.lexical.prev,dt=et&&et.info=="interface";return I(dt?Qr:Hn)}function ko(C,R){return R=="*"?(j.marked="keyword",k(Eo,rt(";"))):R=="default"?(j.marked="keyword",k(Et,rt(";"))):C=="{"?k(Jt(Co,"}"),Eo,rt(";")):I(ft)}function Co(C,R){if(R=="as")return j.marked="keyword",k(rt("variable"));if(C=="variable")return I(Kt,Co)}function ti(C){return C=="string"?k():C=="("?I(Et):C=="."?I(it):I(To,gr,Eo)}function To(C,R){return C=="{"?ze(To,"}"):(C=="variable"&&W(R),R=="*"&&(j.marked="keyword"),k(xs))}function gr(C){if(C==",")return k(To,gr)}function xs(C,R){if(R=="as")return j.marked="keyword",k(To)}function Eo(C,R){if(R=="from")return j.marked="keyword",k(Et)}function Te(C){return C=="]"?k():I(Jt(Kt,"]"))}function $t(){return I(Tt("form"),sn,rt("{"),Tt("}"),Jt(Pr,"}"),G,G)}function Pr(){return I(sn,Yn)}function _s(C,R){return C.lastType=="operator"||C.lastType==","||_.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function $n(C,R,et){return R.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(et||0)))}return{startState:function(C){var R={tokenize:O,lastType:"sof",cc:[],lexical:new Z((C||0)-u,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Mt(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(C,R){if(C.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=C.indentation(),Y(C,R)),R.tokenize!=F&&C.eatSpace())return null;var et=R.tokenize(C,R);return L=="comment"?et:(R.lastType=L=="operator"&&(T=="++"||T=="--")?"incdec":L,ot(R,et,L,T,C))},indent:function(C,R){if(C.tokenize==F||C.tokenize==H)return r.Pass;if(C.tokenize!=O)return 0;var et=R&&R.charAt(0),dt=C.lexical,X;if(!/^\s*else\b/.test(R))for(var _t=C.cc.length-1;_t>=0;--_t){var ce=C.cc[_t];if(ce==G)dt=dt.prev;else if(ce!=_o&&ce!=Yt)break}for(;(dt.type=="stat"||dt.type=="form")&&(et=="}"||(X=C.cc[C.cc.length-1])&&(X==it||X==nt)&&!/^[,\.=+\-*:?[\(]/.test(R));)dt=dt.prev;f&&dt.type==")"&&dt.prev.type=="stat"&&(dt=dt.prev);var Fe=dt.type,ln=et==Fe;return Fe=="vardef"?dt.indented+(C.lastType=="operator"||C.lastType==","?dt.info.length+1:0):Fe=="form"&&et=="{"?dt.indented:Fe=="form"?dt.indented+u:Fe=="stat"?dt.indented+(_s(C,R)?f||u:0):dt.info=="switch"&&!ln&&s.doubleIndentSwitch!=!1?dt.indented+(/^(?:case|default)\b/.test(R)?u:2*u):dt.align?dt.column+(ln?0:1):dt.indented+(ln?0:u)},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:$n,skipExpression:function(C){ot(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var sct=oct.exports,lct={exports:{}};(function(t,e){(function(r){r(ms())})(function(r){var o={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},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,d={},g=f.htmlMode?o:s;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var y,w;function _(k,q){function W(Mt){return q.tokenize=Mt,Mt(k,q)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(L("atom","]]>")):null:k.match("--")?W(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),q.tokenize=L("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",q.tokenize=M,"tag bracket");if(Q=="&"){var mt;return k.eat("#")?k.eat("x")?mt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):mt=k.eatWhile(/[\d]/)&&k.eat(";"):mt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),mt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}_.isInText=!0;function M(k,q){var W=k.next();if(W==">"||W=="/"&&k.eat(">"))return q.tokenize=_,y=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return y="equals",null;if(W=="<"){q.tokenize=_,q.state=H,q.tagName=q.tagStart=null;var Q=q.tokenize(k,q);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(W)?(q.tokenize=A(W),q.stringStartCol=k.column(),q.tokenize(k,q)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var q=function(W,Q){for(;!W.eol();)if(W.next()==k){Q.tokenize=M;break}return"string"};return q.isInAttribute=!0,q}function L(k,q){return function(W,Q){for(;!W.eol();){if(W.match(q)){Q.tokenize=_;break}W.next()}return k}}function T(k){return function(q,W){for(var Q;(Q=q.next())!=null;){if(Q=="<")return W.tokenize=T(k+1),W.tokenize(q,W);if(Q==">")if(k==1){W.tokenize=_;break}else return W.tokenize=T(k-1),W.tokenize(q,W)}return"meta"}}function E(k){return k&&k.toLowerCase()}function O(k,q,W){this.prev=k.context,this.tagName=q||"",this.indent=k.indented,this.startOfLine=W,(d.doNotIndent.hasOwnProperty(q)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function $(k){k.context&&(k.context=k.context.prev)}function F(k,q){for(var W;;){if(!k.context||(W=k.context.tagName,!d.contextGrabbers.hasOwnProperty(E(W))||!d.contextGrabbers[E(W)].hasOwnProperty(E(q))))return;$(k)}}function H(k,q,W){return k=="openTag"?(W.tagStart=q.column(),ct):k=="closeTag"?Y:H}function ct(k,q,W){return k=="word"?(W.tagName=q.current(),w="tag",ut):d.allowMissingTagName&&k=="endTag"?(w="tag bracket",ut(k,q,W)):(w="error",ct)}function Y(k,q,W){if(k=="word"){var Q=q.current();return W.context&&W.context.tagName!=Q&&d.implicitlyClosed.hasOwnProperty(E(W.context.tagName))&&$(W),W.context&&W.context.tagName==Q||d.matchClosing===!1?(w="tag",ht):(w="tag error",Z)}else return d.allowMissingTagName&&k=="endTag"?(w="tag bracket",ht(k,q,W)):(w="error",Z)}function ht(k,q,W){return k!="endTag"?(w="error",ht):($(W),H)}function Z(k,q,W){return w="error",ht(k,q,W)}function ut(k,q,W){if(k=="word")return w="attribute",ot;if(k=="endTag"||k=="selfcloseTag"){var Q=W.tagName,mt=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(E(Q))?F(W,Q):(F(W,Q),W.context=new O(W,Q,mt==W.indented)),H}return w="error",ut}function ot(k,q,W){return k=="equals"?j:(d.allowMissing||(w="error"),ut(k,q,W))}function j(k,q,W){return k=="string"?I:k=="word"&&d.allowUnquoted?(w="string",ut):(w="error",ut(k,q,W))}function I(k,q,W){return k=="string"?I:ut(k,q,W)}return{startState:function(k){var q={tokenize:_,state:H,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(q.baseIndent=k),q},token:function(k,q){if(!q.tagName&&k.sol()&&(q.indented=k.indentation()),k.eatSpace())return null;y=null;var W=q.tokenize(k,q);return(W||y)&&W!="comment"&&(w=null,q.state=q.state(y||W,k,q),w&&(W=w=="error"?W+" error":w)),W},indent:function(k,q,W){var Q=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(Q&&Q.noIndent)return r.Pass;if(k.tokenize!=M&&k.tokenize!=_)return W?W.match(/^(\s*)/)[0].length:0;if(k.tagName)return d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(q))return 0;var mt=q&&/^<(\/)?([\w_:\.-]*)/.exec(q);if(mt&&mt[1])for(;Q;)if(Q.tagName==mt[2]){Q=Q.prev;break}else if(d.implicitlyClosed.hasOwnProperty(E(Q.tagName)))Q=Q.prev;else break;else if(mt)for(;Q;){var Mt=d.contextGrabbers[E(Q.tagName)];if(Mt&&Mt.hasOwnProperty(E(mt[2])))Q=Q.prev;else break}for(;Q&&Q.prev&&!Q.startOfLine;)Q=Q.prev;return Q?Q.indent+h:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==j&&(k.state=ut)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var q=[],W=k.context;W;W=W.prev)q.push(W.tagName);return q.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var act=lct.exports;(function(t,e){(function(r){r(ms(),act,sct)})(function(r){function o(u,f,h,d){this.state=u,this.mode=f,this.depth=h,this.prev=d}function s(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&s(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=r.getMode(u,f&&f.base||"javascript");function g(_){var M=_.tagName;_.tagName=null;var A=h.indent(_,"","");return _.tagName=M,A}function v(_,M){return M.context.mode==h?y(_,M,M.context):w(_,M,M.context)}function y(_,M,A){if(A.depth==2)return _.match(/^.*?\*\//)?A.depth=1:_.skipToEnd(),"comment";if(_.peek()=="{"){h.skipAttribute(A.state);var L=g(A.state),T=A.state.context;if(T&&_.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return M.context=new o(r.startState(d,L),d,0,M.context),null}if(A.depth==1){if(_.peek()=="<")return h.skipAttribute(A.state),M.context=new o(r.startState(h,g(A.state)),h,0,M.context),null;if(_.match("//"))return _.skipToEnd(),"comment";if(_.match("/*"))return A.depth=2,v(_,M)}var E=h.token(_,A.state),O=_.current(),$;return/\btag\b/.test(E)?/>$/.test(O)?A.state.context?A.depth=0:M.context=M.context.prev:/^</.test(O)&&(A.depth=1):!E&&($=O.indexOf("{"))>-1&&_.backUp(O.length-$),E}function w(_,M,A){if(_.peek()=="<"&&!_.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&d.expressionAllowed(_,A.state))return M.context=new o(r.startState(h,d.indent(A.state,"","")),h,0,M.context),d.skipExpression(A.state),null;var L=d.token(_,A.state);if(!L&&A.depth!=null){var T=_.current();T=="{"?A.depth++:T=="}"&&--A.depth==0&&(M.context=M.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(_){return{context:s(_.context)}},token:v,indent:function(_,M,A){return _.context.mode.indent(_.context.state,M,A)},innerMode:function(_){return _.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(t,e){(function(r){r(ms())})(function(r){r.defineOption("placeholder","",function(g,v,y){var w=y&&y!=r.Init;if(v&&!w)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){u(g)}),h(g);else if(!v&&w){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var _=g.getWrapperElement();_.className=_.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function s(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=g.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var y=g.getInputField();v=y.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(g):o(g)},20)}function f(g){d(g)&&s(g)}function h(g){var v=g.getWrapperElement(),y=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(ms())})(function(r){function o(f,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=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var w=g.orientation=="horizontal"?"pageX":"pageY",_=y[w],M=g.pos;function A(){r.off(document,"mousemove",L),r.off(document,"mouseup",A)}function L(T){if(T.which!=1)return A();g.moveTo(M+(T[w]-_)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var w=g.inner.getBoundingClientRect(),_;g.orientation=="horizontal"?_=y.clientX<w.left?-1:y.clientX>w.right?1:0:_=y.clientY<w.top?-1:y.clientY>w.bottom?1:0,g.moveTo(g.pos+_*g.screen)});function v(y){var w=r.wheelEventPixels(y)[g.orientation=="horizontal"?"x":"y"],_=g.pos;g.moveTo(g.pos+w),g.pos!=_&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,h,d){var g=this.screen!=h||this.total!=f||this.size!=d;g&&(this.screen=h,this.total=f,this.size=d);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function u(f,h,d){this.addClass=f,this.horiz=new o(f,"horizontal",d),h(this.horiz.node),this.vert=new o(f,"vertical",d),h(this.vert.node),this.width=null}u.prototype.update=function(f){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,g=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=g?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?d:0)),this.vert.node.style.bottom=g?d+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?d:0)-f.barLeft),this.horiz.node.style.right=v?d+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?d:0,bottom:g?d:0}},u.prototype.setScrollTop=function(f){this.vert.setPos(f)},u.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},u.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,h){return new u("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new u("CodeMirror-overlayscroll",f,h)}})})();function cct(t,e,r={}){const o=ict.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}e.value=o.getValue()}),je(e,u=>{if(u!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),i0(o)}const uct={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},zb=he({__name:"CodeMirror",props:Ff({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Ff(["save"],["update:modelValue"]),setup(t,{expose:e,emit:r}){const o=r,s=V0(t,"modelValue"),u=J_(),f={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}},h=te(),d=gs();return e({cm:d}),vs(async()=>{d.value=cct(h,s,{...u,mode:f[t.mode||""]||t.mode,readOnly:t.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){o("save",g.getValue())},"Ctrl-S":function(g){o("save",g.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(g,v)=>(at(),St("div",uct,[tt("textarea",{ref_key:"el",ref:h},null,512)]))}}),fct=he({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:e}){const r=t,o=e,s=te(""),u=gs(void 0),f=te(!1);je(()=>r.file,async()=>{var O;if(!r.file||!((O=r.file)!=null&&O.filepath)){s.value="",u.value=s.value,f.value=!1;return}s.value=await Oe.rpc.readTestFile(r.file.filepath)||"",u.value=s.value,f.value=!1},{immediate:!0});const h=xt(()=>{var O,$;return(($=(O=r.file)==null?void 0:O.filepath)==null?void 0:$.split(/\./g).pop())||"js"}),d=te(),g=xt(()=>{var O;return(O=d.value)==null?void 0:O.cm}),v=xt(()=>{var O;return((O=r.file)==null?void 0:O.tasks.filter($=>{var F;return((F=$.result)==null?void 0:F.state)==="fail"}))||[]}),y=[],w=[],_=[],M=te(!1);function A(){_.forEach(([O,$,F])=>{O.removeEventListener("click",$),F()}),_.length=0}nat(d,()=>{var O;(O=g.value)==null||O.refresh()});function L(){f.value=u.value!==g.value.getValue()}je(f,O=>{o("draft",O)},{immediate:!0});function T(O){const $=((O==null?void 0:O.stacks)||[]).filter(Z=>{var ut;return Z.file&&Z.file===((ut=r.file)==null?void 0:ut.filepath)}),F=$==null?void 0:$[0];if(!F)return;const H=document.createElement("div");H.className="op80 flex gap-x-2 items-center";const ct=document.createElement("pre");ct.className="c-red-600 dark:c-red-400",ct.textContent=`${" ".repeat(F.column)}^ ${(O==null?void 0:O.nameStr)||O.name}: ${(O==null?void 0:O.message)||""}`,H.appendChild(ct);const Y=document.createElement("span");Y.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",Y.tabIndex=0,Y.ariaLabel="Open in Editor",Ly(Y,{content:"Open in Editor",placement:"bottom"},!1);const ht=async()=>{await hb(F.file,F.line,F.column)};H.appendChild(Y),_.push([Y,ht,()=>Kh(Y)]),w.push(g.value.addLineClass(F.line-1,"wrap","bg-red-500/10")),y.push(g.value.addLineWidget(F.line-1,H))}je([g,v],([O])=>{if(!O){A();return}setTimeout(()=>{A(),y.forEach($=>$.clear()),w.forEach($=>{var F;return(F=g.value)==null?void 0:F.removeLineClass($,"wrap")}),y.length=0,w.length=0,O.on("changes",L),v.value.forEach($=>{var F,H;(H=(F=$.result)==null?void 0:F.errors)==null||H.forEach(T)}),M.value||O.clearHistory()},100)},{flush:"post"});async function E(O){M.value=!0,await Oe.rpc.saveTestFile(r.file.filepath,O),u.value=O,f.value=!1}return(O,$)=>{const F=zb;return at(),ne(F,Ai({ref_key:"editor",ref:d,modelValue:V(s),"onUpdate:modelValue":$[0]||($[0]=H=>Ae(s)?s.value=H:null),"h-full":""},{lineNumbers:!0},{mode:V(h),"data-testid":"code-mirror",onSave:E}),null,16,["modelValue","mode"])}}}),hct=he({__name:"Modal",props:Ff({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=V0(t,"modelValue"),r=xt(()=>{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""}}),o=xt(()=>{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""}}),s=()=>e.value=!1;return(u,f)=>(at(),St("div",{class:ge(["fixed inset-0 z-40",e.value?"":"pointer-events-none"])},[tt("div",{class:ge(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",e.value?"opacity-50":"opacity-0"]),onClick:s},null,2),tt("div",{class:ge(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[V(r)]]),style:An(e.value?{}:{transform:V(o)})},[Gn(u.$slots,"default")],6)],2))}}),dct=["aria-label","opacity","disabled","hover"],ys=he({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(t){return(e,r)=>(at(),St("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"},[Gn(e.$slots,"default",{},()=>[tt("div",{class:ge(e.icon),ma:""},null,2)])],8,dct))}}),pct={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},gct={"p-4":"",relative:""},vct=tt("p",null,"Module Info",-1),mct={op50:"","font-mono":"","text-sm":""},yct={key:0,"p-5":""},bct={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},wct=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),xct=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),_ct={key:0},Sct={p:"x3 y-1","bg-overlay":"",border:"base b t"},kct=he({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(t,{emit:e}){const r=t,o=e,s=Glt(()=>Oe.rpc.getTransformResult(r.id)),u=xt(()=>{var g;return((g=r.id)==null?void 0:g.split(/\./g).pop())||"js"}),f=xt(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.source)==null?void 0:v.trim())||""}),h=xt(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),d=xt(()=>{var g,v,y,w;return{mappings:((v=(g=s.value)==null?void 0:g.map)==null?void 0:v.mappings)??"",version:(w=(y=s.value)==null?void 0:y.map)==null?void 0:w.version}});return Klt("Escape",()=>{o("close")}),(g,v)=>{const y=ys,w=zb;return at(),St("div",pct,[tt("div",gct,[vct,tt("p",mct,jt(g.id),1),Ht(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=_=>o("close"))})]),V(s)?(at(),St(ie,{key:1},[tt("div",bct,[wct,xct,Ht(w,Ai({"h-full":"","model-value":V(f),"read-only":""},{lineNumbers:!0},{mode:V(u)}),null,16,["model-value","mode"]),Ht(w,Ai({"h-full":"","model-value":V(h),"read-only":""},{lineNumbers:!0},{mode:V(u)}),null,16,["model-value","mode"])]),V(d).mappings!==""?(at(),St("div",_ct,[tt("div",Sct," Source map (v"+jt(V(d).version)+") ",1),Ht(w,Ai({"model-value":V(d).mappings,"read-only":""},{lineNumbers:!0},{mode:V(u)}),null,16,["model-value","mode"])])):Xt("",!0)],64)):(at(),St("div",yct," No transform result found for this module. "))])}}});function Cct(t,e){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(...o),e)}}var lh="http://www.w3.org/1999/xhtml";const um={svg:"http://www.w3.org/2000/svg",xhtml:lh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ru(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),um.hasOwnProperty(e)?{space:um[e],local:t}:t}function Tct(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===lh&&e.documentElement.namespaceURI===lh?e.createElement(t):e.createElementNS(r,t)}}function Ect(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ib(t){var e=ru(t);return(e.local?Ect:Tct)(e)}function Lct(){}function od(t){return t==null?Lct:function(){return this.querySelector(t)}}function Act(t){typeof t!="function"&&(t=od(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var u=e[s],f=u.length,h=o[s]=new Array(f),d,g,v=0;v<f;++v)(d=u[v])&&(g=t.call(d,d.__data__,v,u))&&("__data__"in d&&(g.__data__=d.__data__),h[v]=g);return new In(o,this._parents)}function Mct(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Nct(){return[]}function Fb(t){return t==null?Nct:function(){return this.querySelectorAll(t)}}function $ct(t){return function(){return Mct(t.apply(this,arguments))}}function Pct(t){typeof t=="function"?t=$ct(t):t=Fb(t);for(var e=this._groups,r=e.length,o=[],s=[],u=0;u<r;++u)for(var f=e[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&(o.push(t.call(d,d.__data__,g,f)),s.push(d));return new In(o,s)}function Hb(t){return function(){return this.matches(t)}}function qb(t){return function(e){return e.matches(t)}}var Oct=Array.prototype.find;function Rct(t){return function(){return Oct.call(this.children,t)}}function Dct(){return this.firstElementChild}function zct(t){return this.select(t==null?Dct:Rct(typeof t=="function"?t:qb(t)))}var Ict=Array.prototype.filter;function Fct(){return Array.from(this.children)}function Hct(t){return function(){return Ict.call(this.children,t)}}function qct(t){return this.selectAll(t==null?Fct:Hct(typeof t=="function"?t:qb(t)))}function Bct(t){typeof t!="function"&&(t=Hb(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var u=e[s],f=u.length,h=o[s]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new In(o,this._parents)}function Bb(t){return new Array(t.length)}function Wct(){return new In(this._enter||this._groups.map(Bb),this._parents)}function Tc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Tc.prototype={constructor:Tc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Uct(t){return function(){return t}}function Vct(t,e,r,o,s,u){for(var f=0,h,d=e.length,g=u.length;f<g;++f)(h=e[f])?(h.__data__=u[f],o[f]=h):r[f]=new Tc(t,u[f]);for(;f<d;++f)(h=e[f])&&(s[f]=h)}function Gct(t,e,r,o,s,u,f){var h,d,g=new Map,v=e.length,y=u.length,w=new Array(v),_;for(h=0;h<v;++h)(d=e[h])&&(w[h]=_=f.call(d,d.__data__,h,e)+"",g.has(_)?s[h]=d:g.set(_,d));for(h=0;h<y;++h)_=f.call(t,u[h],h,u)+"",(d=g.get(_))?(o[h]=d,d.__data__=u[h],g.delete(_)):r[h]=new Tc(t,u[h]);for(h=0;h<v;++h)(d=e[h])&&g.get(w[h])===d&&(s[h]=d)}function jct(t){return t.__data__}function Kct(t,e){if(!arguments.length)return Array.from(this,jct);var r=e?Gct:Vct,o=this._parents,s=this._groups;typeof t!="function"&&(t=Uct(t));for(var u=s.length,f=new Array(u),h=new Array(u),d=new Array(u),g=0;g<u;++g){var v=o[g],y=s[g],w=y.length,_=Xct(t.call(v,v&&v.__data__,g,o)),M=_.length,A=h[g]=new Array(M),L=f[g]=new Array(M),T=d[g]=new Array(w);r(v,y,A,L,T,_,e);for(var E=0,O=0,$,F;E<M;++E)if($=A[E]){for(E>=O&&(O=E+1);!(F=L[O])&&++O<M;);$._next=F||null}}return f=new In(f,o),f._enter=h,f._exit=d,f}function Xct(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Yct(){return new In(this._exit||this._groups.map(Bb),this._parents)}function Zct(t,e,r){var o=this.enter(),s=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),e!=null&&(s=e(s),s&&(s=s.selection())),r==null?u.remove():r(u),o&&s?o.merge(s).order():s}function Jct(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,s=r.length,u=o.length,f=Math.min(s,u),h=new Array(s),d=0;d<f;++d)for(var g=r[d],v=o[d],y=g.length,w=h[d]=new Array(y),_,M=0;M<y;++M)(_=g[M]||v[M])&&(w[M]=_);for(;d<s;++d)h[d]=r[d];return new In(h,this._parents)}function Qct(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o=t[e],s=o.length-1,u=o[s],f;--s>=0;)(f=o[s])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function tut(t){t||(t=eut);function e(y,w){return y&&w?t(y.__data__,w.__data__):!y-!w}for(var r=this._groups,o=r.length,s=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,d=s[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(d[v]=g);d.sort(e)}return new In(s,this._parents).order()}function eut(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function nut(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function rut(){return Array.from(this)}function iut(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],s=0,u=o.length;s<u;++s){var f=o[s];if(f)return f}return null}function out(){let t=0;for(const e of this)++t;return t}function sut(){return!this.node()}function lut(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var s=e[r],u=0,f=s.length,h;u<f;++u)(h=s[u])&&t.call(h,h.__data__,u,s);return this}function aut(t){return function(){this.removeAttribute(t)}}function cut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function uut(t,e){return function(){this.setAttribute(t,e)}}function fut(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function hut(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function dut(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function put(t,e){var r=ru(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?cut:aut:typeof e=="function"?r.local?dut:hut:r.local?fut:uut)(r,e))}function Wb(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function gut(t){return function(){this.style.removeProperty(t)}}function vut(t,e,r){return function(){this.style.setProperty(t,e,r)}}function mut(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function yut(t,e,r){return arguments.length>1?this.each((e==null?gut:typeof e=="function"?mut:vut)(t,e,r??"")):ds(this.node(),t)}function ds(t,e){return t.style.getPropertyValue(e)||Wb(t).getComputedStyle(t,null).getPropertyValue(e)}function but(t){return function(){delete this[t]}}function wut(t,e){return function(){this[t]=e}}function xut(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function _ut(t,e){return arguments.length>1?this.each((e==null?but:typeof e=="function"?xut:wut)(t,e)):this.node()[t]}function Ub(t){return t.trim().split(/^|\s+/)}function sd(t){return t.classList||new Vb(t)}function Vb(t){this._node=t,this._names=Ub(t.getAttribute("class")||"")}Vb.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Gb(t,e){for(var r=sd(t),o=-1,s=e.length;++o<s;)r.add(e[o])}function jb(t,e){for(var r=sd(t),o=-1,s=e.length;++o<s;)r.remove(e[o])}function Sut(t){return function(){Gb(this,t)}}function kut(t){return function(){jb(this,t)}}function Cut(t,e){return function(){(e.apply(this,arguments)?Gb:jb)(this,t)}}function Tut(t,e){var r=Ub(t+"");if(arguments.length<2){for(var o=sd(this.node()),s=-1,u=r.length;++s<u;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof e=="function"?Cut:e?Sut:kut)(r,e))}function Eut(){this.textContent=""}function Lut(t){return function(){this.textContent=t}}function Aut(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Mut(t){return arguments.length?this.each(t==null?Eut:(typeof t=="function"?Aut:Lut)(t)):this.node().textContent}function Nut(){this.innerHTML=""}function $ut(t){return function(){this.innerHTML=t}}function Put(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Out(t){return arguments.length?this.each(t==null?Nut:(typeof t=="function"?Put:$ut)(t)):this.node().innerHTML}function Rut(){this.nextSibling&&this.parentNode.appendChild(this)}function Dut(){return this.each(Rut)}function zut(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Iut(){return this.each(zut)}function Fut(t){var e=typeof t=="function"?t:Ib(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Hut(){return null}function qut(t,e){var r=typeof t=="function"?t:Ib(t),o=e==null?Hut:typeof e=="function"?e:od(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function But(){var t=this.parentNode;t&&t.removeChild(this)}function Wut(){return this.each(But)}function Uut(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Vut(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Gut(t){return this.select(t?Vut:Uut)}function jut(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Kut(t){return function(e){t.call(this,e,this.__data__)}}function Xut(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function Yut(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,s=e.length,u;r<s;++r)u=e[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):e[++o]=u;++o?e.length=o:delete this.__on}}}function Zut(t,e,r){return function(){var o=this.__on,s,u=Kut(e);if(o){for(var f=0,h=o.length;f<h;++f)if((s=o[f]).type===t.type&&s.name===t.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=u,s.options=r),s.value=e;return}}this.addEventListener(t.type,u,r),s={type:t.type,name:t.name,value:e,listener:u,options:r},o?o.push(s):this.__on=[s]}}function Jut(t,e,r){var o=Xut(t+""),s,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var d=0,g=h.length,v;d<g;++d)for(s=0,v=h[d];s<u;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(h=e?Zut:Yut,s=0;s<u;++s)this.each(h(o[s],e,r));return this}function Kb(t,e,r){var o=Wb(t),s=o.CustomEvent;typeof s=="function"?s=new s(e,r):(s=o.document.createEvent("Event"),r?(s.initEvent(e,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function Qut(t,e){return function(){return Kb(this,t,e)}}function tft(t,e){return function(){return Kb(this,t,e.apply(this,arguments))}}function eft(t,e){return this.each((typeof e=="function"?tft:Qut)(t,e))}function*nft(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],s=0,u=o.length,f;s<u;++s)(f=o[s])&&(yield f)}var Xb=[null];function In(t,e){this._groups=t,this._parents=e}function Xl(){return new In([[document.documentElement]],Xb)}function rft(){return this}In.prototype=Xl.prototype={constructor:In,select:Act,selectAll:Pct,selectChild:zct,selectChildren:qct,filter:Bct,data:Kct,enter:Wct,exit:Yct,join:Zct,merge:Jct,selection:rft,order:Qct,sort:tut,call:nut,nodes:rut,node:iut,size:out,empty:sut,each:lut,attr:put,style:yut,property:_ut,classed:Tut,text:Mut,html:Out,raise:Dut,lower:Iut,append:Fut,insert:qut,remove:Wut,clone:Gut,datum:jut,on:Jut,dispatch:eft,[Symbol.iterator]:nft};function En(t){return typeof t=="string"?new In([[document.querySelector(t)]],[document.documentElement]):new In([[t]],Xb)}function ift(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Br(t,e){if(t=ift(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}if(e.getBoundingClientRect){var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}}return[t.pageX,t.pageY]}class gn{constructor(e,r){this.x=e,this.y=r}static of([e,r]){return new gn(e,r)}add(e){return new gn(this.x+e.x,this.y+e.y)}subtract(e){return new gn(this.x-e.x,this.y-e.y)}multiply(e){return new gn(this.x*e,this.y*e)}divide(e){return new gn(this.x/e,this.y/e)}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-e.x*this.y}hadamard(e){return new gn(this.x*e.x,this.y*e.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const e=this.length();return new gn(this.x/e,this.y/e)}rotateByRadians(e){const r=Math.cos(e),o=Math.sin(e);return new gn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(e){return this.rotateByRadians(e*Math.PI/180)}}var oft={value:()=>{}};function Yl(){for(var t=0,e=arguments.length,r={},o;t<e;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new ic(r)}function ic(t){this._=t}function sft(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}ic.prototype=Yl.prototype={constructor:ic,on:function(t,e){var r=this._,o=sft(t+"",r),s,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((s=(t=o[u]).type)&&(s=lft(r[s],t.name)))return s;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(s=(t=o[u]).type)r[s]=fm(r[s],t.name,e);else if(e==null)for(s in r)r[s]=fm(r[s],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ic(t)},call:function(t,e){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,u;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,s=u.length;o<s;++o)u[o].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],s=0,u=o.length;s<u;++s)o[s].value.apply(e,r)}};function lft(t,e){for(var r=0,o=t.length,s;r<o;++r)if((s=t[r]).name===e)return s.value}function fm(t,e,r){for(var o=0,s=t.length;o<s;++o)if(t[o].name===e){t[o]=oft,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}const aft={passive:!1},Dl={capture:!0,passive:!1};function kf(t){t.stopImmediatePropagation()}function is(t){t.preventDefault(),t.stopImmediatePropagation()}function Yb(t){var e=t.document.documentElement,r=En(t).on("dragstart.drag",is,Dl);"onselectstart"in e?r.on("selectstart.drag",is,Dl):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Zb(t,e){var r=t.document.documentElement,o=En(t).on("dragstart.drag",null);e&&(o.on("click.drag",is,Dl),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Ua=t=>()=>t;function ah(t,{sourceEvent:e,subject:r,target:o,identifier:s,active:u,x:f,y:h,dx:d,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}ah.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function cft(t){return!t.ctrlKey&&!t.button}function uft(){return this.parentNode}function fft(t,e){return e??{x:t.x,y:t.y}}function hft(){return navigator.maxTouchPoints||"ontouchstart"in this}function dft(){var t=cft,e=uft,r=fft,o=hft,s={},u=Yl("start","drag","end"),f=0,h,d,g,v,y=0;function w($){$.on("mousedown.drag",_).filter(o).on("touchstart.drag",L).on("touchmove.drag",T,aft).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _($,F){if(!(v||!t.call(this,$,F))){var H=O(this,e.call(this,$,F),$,F,"mouse");H&&(En($.view).on("mousemove.drag",M,Dl).on("mouseup.drag",A,Dl),Yb($.view),kf($),g=!1,h=$.clientX,d=$.clientY,H("start",$))}}function M($){if(is($),!g){var F=$.clientX-h,H=$.clientY-d;g=F*F+H*H>y}s.mouse("drag",$)}function A($){En($.view).on("mousemove.drag mouseup.drag",null),Zb($.view,g),is($),s.mouse("end",$)}function L($,F){if(t.call(this,$,F)){var H=$.changedTouches,ct=e.call(this,$,F),Y=H.length,ht,Z;for(ht=0;ht<Y;++ht)(Z=O(this,ct,$,F,H[ht].identifier,H[ht]))&&(kf($),Z("start",$,H[ht]))}}function T($){var F=$.changedTouches,H=F.length,ct,Y;for(ct=0;ct<H;++ct)(Y=s[F[ct].identifier])&&(is($),Y("drag",$,F[ct]))}function E($){var F=$.changedTouches,H=F.length,ct,Y;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ct=0;ct<H;++ct)(Y=s[F[ct].identifier])&&(kf($),Y("end",$,F[ct]))}function O($,F,H,ct,Y,ht){var Z=u.copy(),ut=Br(ht||H,F),ot,j,I;if((I=r.call($,new ah("beforestart",{sourceEvent:H,target:w,identifier:Y,active:f,x:ut[0],y:ut[1],dx:0,dy:0,dispatch:Z}),ct))!=null)return ot=I.x-ut[0]||0,j=I.y-ut[1]||0,function k(q,W,Q){var mt=ut,Mt;switch(q){case"start":s[Y]=k,Mt=f++;break;case"end":delete s[Y],--f;case"drag":ut=Br(Q||W,F),Mt=f;break}Z.call(q,$,new ah(q,{sourceEvent:W,subject:I,target:w,identifier:Y,active:Mt,x:ut[0]+ot,y:ut[1]+j,dx:ut[0]-mt[0],dy:ut[1]-mt[1],dispatch:Z}),ct)}}return w.filter=function($){return arguments.length?(t=typeof $=="function"?$:Ua(!!$),w):t},w.container=function($){return arguments.length?(e=typeof $=="function"?$:Ua($),w):e},w.subject=function($){return arguments.length?(r=typeof $=="function"?$:Ua($),w):r},w.touchable=function($){return arguments.length?(o=typeof $=="function"?$:Ua(!!$),w):o},w.on=function(){var $=u.on.apply(u,arguments);return $===u?w:$},w.clickDistance=function($){return arguments.length?(y=($=+$)*$,w):Math.sqrt(y)},w}function ld(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Jb(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function Zl(){}var zl=.7,Ec=1/zl,os="\\s*([+-]?\\d+)\\s*",Il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pft=/^#([0-9a-f]{3,8})$/,gft=new RegExp(`^rgb\\(${os},${os},${os}\\)$`),vft=new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`),mft=new RegExp(`^rgba\\(${os},${os},${os},${Il}\\)$`),yft=new RegExp(`^rgba\\(${Er},${Er},${Er},${Il}\\)$`),bft=new RegExp(`^hsl\\(${Il},${Er},${Er}\\)$`),wft=new RegExp(`^hsla\\(${Il},${Er},${Er},${Il}\\)$`),hm={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};ld(Zl,Fl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:dm,formatHex:dm,formatHex8:xft,formatHsl:_ft,formatRgb:pm,toString:pm});function dm(){return this.rgb().formatHex()}function xft(){return this.rgb().formatHex8()}function _ft(){return Qb(this).formatHsl()}function pm(){return this.rgb().formatRgb()}function Fl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=pft.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?gm(e):r===3?new Ln(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Va(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Va(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=gft.exec(t))?new Ln(e[1],e[2],e[3],1):(e=vft.exec(t))?new Ln(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=mft.exec(t))?Va(e[1],e[2],e[3],e[4]):(e=yft.exec(t))?Va(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=bft.exec(t))?ym(e[1],e[2]/100,e[3]/100,1):(e=wft.exec(t))?ym(e[1],e[2]/100,e[3]/100,e[4]):hm.hasOwnProperty(t)?gm(hm[t]):t==="transparent"?new Ln(NaN,NaN,NaN,0):null}function gm(t){return new Ln(t>>16&255,t>>8&255,t&255,1)}function Va(t,e,r,o){return o<=0&&(t=e=r=NaN),new Ln(t,e,r,o)}function Sft(t){return t instanceof Zl||(t=Fl(t)),t?(t=t.rgb(),new Ln(t.r,t.g,t.b,t.opacity)):new Ln}function ch(t,e,r,o){return arguments.length===1?Sft(t):new Ln(t,e,r,o??1)}function Ln(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}ld(Ln,ch,Jb(Zl,{brighter(t){return t=t==null?Ec:Math.pow(Ec,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?zl:Math.pow(zl,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ln(uo(this.r),uo(this.g),uo(this.b),Lc(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:vm,formatHex:vm,formatHex8:kft,formatRgb:mm,toString:mm}));function vm(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}`}function kft(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}${lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function mm(){const t=Lc(this.opacity);return`${t===1?"rgb(":"rgba("}${uo(this.r)}, ${uo(this.g)}, ${uo(this.b)}${t===1?")":`, ${t})`}`}function Lc(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function uo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function lo(t){return t=uo(t),(t<16?"0":"")+t.toString(16)}function ym(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ar(t,e,r,o)}function Qb(t){if(t instanceof ar)return new ar(t.h,t.s,t.l,t.opacity);if(t instanceof Zl||(t=Fl(t)),!t)return new ar;if(t instanceof ar)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,s=Math.min(e,r,o),u=Math.max(e,r,o),f=NaN,h=u-s,d=(u+s)/2;return h?(e===u?f=(r-o)/h+(r<o)*6:r===u?f=(o-e)/h+2:f=(e-r)/h+4,h/=d<.5?u+s:2-u-s,f*=60):h=d>0&&d<1?0:f,new ar(f,h,d,t.opacity)}function Cft(t,e,r,o){return arguments.length===1?Qb(t):new ar(t,e,r,o??1)}function ar(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}ld(ar,Cft,Jb(Zl,{brighter(t){return t=t==null?Ec:Math.pow(Ec,t),new ar(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?zl:Math.pow(zl,t),new ar(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,s=2*r-o;return new Ln(Cf(t>=240?t-240:t+120,s,o),Cf(t,s,o),Cf(t<120?t+240:t-120,s,o),this.opacity)},clamp(){return new ar(bm(this.h),Ga(this.s),Ga(this.l),Lc(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 t=Lc(this.opacity);return`${t===1?"hsl(":"hsla("}${bm(this.h)}, ${Ga(this.s)*100}%, ${Ga(this.l)*100}%${t===1?")":`, ${t})`}`}}));function bm(t){return t=(t||0)%360,t<0?t+360:t}function Ga(t){return Math.max(0,Math.min(1,t||0))}function Cf(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const tw=t=>()=>t;function Tft(t,e){return function(r){return t+r*e}}function Eft(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}function Lft(t){return(t=+t)==1?ew:function(e,r){return r-e?Eft(e,r,t):tw(isNaN(e)?r:e)}}function ew(t,e){var r=e-t;return r?Tft(t,r):tw(isNaN(t)?e:t)}const wm=function t(e){var r=Lft(e);function o(s,u){var f=r((s=ch(s)).r,(u=ch(u)).r),h=r(s.g,u.g),d=r(s.b,u.b),g=ew(s.opacity,u.opacity);return function(v){return s.r=f(v),s.g=h(v),s.b=d(v),s.opacity=g(v),s+""}}return o.gamma=t,o}(1);function Si(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var uh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tf=new RegExp(uh.source,"g");function Aft(t){return function(){return t}}function Mft(t){return function(e){return t(e)+""}}function Nft(t,e){var r=uh.lastIndex=Tf.lastIndex=0,o,s,u,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=uh.exec(t))&&(s=Tf.exec(e));)(u=s.index)>r&&(u=e.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,d.push({i:f,x:Si(o,s)})),r=Tf.lastIndex;return r<e.length&&(u=e.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?d[0]?Mft(d[0].x):Aft(e):(e=d.length,function(g){for(var v=0,y;v<e;++v)h[(y=d[v]).i]=y.x(g);return h.join("")})}var xm=180/Math.PI,fh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nw(t,e,r,o,s,u){var f,h,d;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(d=t*r+e*o)&&(r-=t*d,o-=e*d),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,d/=h),t*o<e*r&&(t=-t,e=-e,d=-d,f=-f),{translateX:s,translateY:u,rotate:Math.atan2(e,t)*xm,skewX:Math.atan(d)*xm,scaleX:f,scaleY:h}}var ja;function $ft(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?fh:nw(e.a,e.b,e.c,e.d,e.e,e.f)}function Pft(t){return t==null||(ja||(ja=document.createElementNS("http://www.w3.org/2000/svg","g")),ja.setAttribute("transform",t),!(t=ja.transform.baseVal.consolidate()))?fh:(t=t.matrix,nw(t.a,t.b,t.c,t.d,t.e,t.f))}function rw(t,e,r,o){function s(g){return g.length?g.pop()+" ":""}function u(g,v,y,w,_,M){if(g!==y||v!==w){var A=_.push("translate(",null,e,null,r);M.push({i:A-4,x:Si(g,y)},{i:A-2,x:Si(v,w)})}else(y||w)&&_.push("translate("+y+e+w+r)}function f(g,v,y,w){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),w.push({i:y.push(s(y)+"rotate(",null,o)-2,x:Si(g,v)})):v&&y.push(s(y)+"rotate("+v+o)}function h(g,v,y,w){g!==v?w.push({i:y.push(s(y)+"skewX(",null,o)-2,x:Si(g,v)}):v&&y.push(s(y)+"skewX("+v+o)}function d(g,v,y,w,_,M){if(g!==y||v!==w){var A=_.push(s(_)+"scale(",null,",",null,")");M.push({i:A-4,x:Si(g,y)},{i:A-2,x:Si(v,w)})}else(y!==1||w!==1)&&_.push(s(_)+"scale("+y+","+w+")")}return function(g,v){var y=[],w=[];return g=t(g),v=t(v),u(g.translateX,g.translateY,v.translateX,v.translateY,y,w),f(g.rotate,v.rotate,y,w),h(g.skewX,v.skewX,y,w),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,y,w),g=v=null,function(_){for(var M=-1,A=w.length,L;++M<A;)y[(L=w[M]).i]=L.x(_);return y.join("")}}}var Oft=rw($ft,"px, ","px)","deg)"),Rft=rw(Pft,", ",")",")"),Dft=1e-12;function _m(t){return((t=Math.exp(t))+1/t)/2}function zft(t){return((t=Math.exp(t))-1/t)/2}function Ift(t){return((t=Math.exp(2*t))-1)/(t+1)}const Fft=function t(e,r,o){function s(u,f){var h=u[0],d=u[1],g=u[2],v=f[0],y=f[1],w=f[2],_=v-h,M=y-d,A=_*_+M*M,L,T;if(A<Dft)T=Math.log(w/g)/e,L=function(ct){return[h+ct*_,d+ct*M,g*Math.exp(e*ct*T)]};else{var E=Math.sqrt(A),O=(w*w-g*g+o*A)/(2*g*r*E),$=(w*w-g*g-o*A)/(2*w*r*E),F=Math.log(Math.sqrt(O*O+1)-O),H=Math.log(Math.sqrt($*$+1)-$);T=(H-F)/e,L=function(ct){var Y=ct*T,ht=_m(F),Z=g/(r*E)*(ht*Ift(e*Y+F)-zft(F));return[h+Z*_,d+Z*M,g*ht/_m(e*Y+F)]}}return L.duration=T*1e3*e/Math.SQRT2,L}return s.rho=function(u){var f=Math.max(.001,+u),h=f*f,d=h*h;return t(f,h,d)},s}(Math.SQRT2,2,4);var ps=0,rl=0,tl=0,iw=1e3,Ac,il,Mc=0,go=0,iu=0,Hl=typeof performance=="object"&&performance.now?performance:Date,ow=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ad(){return go||(ow(Hft),go=Hl.now()+iu)}function Hft(){go=0}function Nc(){this._call=this._time=this._next=null}Nc.prototype=cd.prototype={constructor:Nc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ad():+r)+(e==null?0:+e),!this._next&&il!==this&&(il?il._next=this:Ac=this,il=this),this._call=t,this._time=r,hh()},stop:function(){this._call&&(this._call=null,this._time=1/0,hh())}};function cd(t,e,r){var o=new Nc;return o.restart(t,e,r),o}function qft(){ad(),++ps;for(var t=Ac,e;t;)(e=go-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ps}function Sm(){go=(Mc=Hl.now())+iu,ps=rl=0;try{qft()}finally{ps=0,Wft(),go=0}}function Bft(){var t=Hl.now(),e=t-Mc;e>iw&&(iu-=e,Mc=t)}function Wft(){for(var t,e=Ac,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Ac=r);il=t,hh(o)}function hh(t){if(!ps){rl&&(rl=clearTimeout(rl));var e=t-go;e>24?(t<1/0&&(rl=setTimeout(Sm,t-Hl.now()-iu)),tl&&(tl=clearInterval(tl))):(tl||(Mc=Hl.now(),tl=setInterval(Bft,iw)),ps=1,ow(Sm))}}function km(t,e,r){var o=new Nc;return e=e==null?0:+e,o.restart(s=>{o.stop(),t(s+e)},e,r),o}var Uft=Yl("start","end","cancel","interrupt"),Vft=[],sw=0,Cm=1,dh=2,oc=3,Tm=4,ph=5,sc=6;function ou(t,e,r,o,s,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;Gft(t,r,{name:e,index:o,group:s,on:Uft,tween:Vft,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:sw})}function ud(t,e){var r=pr(t,e);if(r.state>sw)throw new Error("too late; already scheduled");return r}function Nr(t,e){var r=pr(t,e);if(r.state>oc)throw new Error("too late; already running");return r}function pr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Gft(t,e,r){var o=t.__transition,s;o[e]=r,r.timer=cd(u,0,r.time);function u(g){r.state=Cm,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,y,w,_;if(r.state!==Cm)return d();for(v in o)if(_=o[v],_.name===r.name){if(_.state===oc)return km(f);_.state===Tm?(_.state=sc,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete o[v]):+v<e&&(_.state=sc,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete o[v])}if(km(function(){r.state===oc&&(r.state=Tm,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=dh,r.on.call("start",t,t.__data__,r.index,r.group),r.state===dh){for(r.state=oc,s=new Array(w=r.tween.length),v=0,y=-1;v<w;++v)(_=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(s[++y]=_);s.length=y+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(d),r.state=ph,1),y=-1,w=s.length;++y<w;)s[y].call(t,v);r.state===ph&&(r.on.call("end",t,t.__data__,r.index,r.group),d())}function d(){r.state=sc,r.timer.stop(),delete o[e];for(var g in o)return;delete t.__transition}}function lc(t,e){var r=t.__transition,o,s,u=!0,f;if(r){e=e==null?null:e+"";for(f in r){if((o=r[f]).name!==e){u=!1;continue}s=o.state>dh&&o.state<ph,o.state=sc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function jft(t){return this.each(function(){lc(this,t)})}function Kft(t,e){var r,o;return function(){var s=Nr(this,t),u=s.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===e){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Xft(t,e,r){var o,s;if(typeof r!="function")throw new Error;return function(){var u=Nr(this,t),f=u.tween;if(f!==o){s=(o=f).slice();for(var h={name:e,value:r},d=0,g=s.length;d<g;++d)if(s[d].name===e){s[d]=h;break}d===g&&s.push(h)}u.tween=s}}function Yft(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o=pr(this.node(),r).tween,s=0,u=o.length,f;s<u;++s)if((f=o[s]).name===t)return f.value;return null}return this.each((e==null?Kft:Xft)(r,t,e))}function fd(t,e,r){var o=t._id;return t.each(function(){var s=Nr(this,o);(s.value||(s.value={}))[e]=r.apply(this,arguments)}),function(s){return pr(s,o).value[e]}}function lw(t,e){var r;return(typeof e=="number"?Si:e instanceof Fl?wm:(r=Fl(e))?(e=r,wm):Nft)(t,e)}function Zft(t){return function(){this.removeAttribute(t)}}function Jft(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qft(t,e,r){var o,s=r+"",u;return function(){var f=this.getAttribute(t);return f===s?null:f===o?u:u=e(o=f,r)}}function tht(t,e,r){var o,s=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===s?null:f===o?u:u=e(o=f,r)}}function eht(t,e,r){var o,s,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),d=h+"",f===d?null:f===o&&d===s?u:(s=d,u=e(o=f,h)))}}function nht(t,e,r){var o,s,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),d=h+"",f===d?null:f===o&&d===s?u:(s=d,u=e(o=f,h)))}}function rht(t,e){var r=ru(t),o=r==="transform"?Rft:lw;return this.attrTween(t,typeof e=="function"?(r.local?nht:eht)(r,o,fd(this,"attr."+t,e)):e==null?(r.local?Jft:Zft)(r):(r.local?tht:Qft)(r,o,e))}function iht(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function oht(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function sht(t,e){var r,o;function s(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&oht(t,u)),r}return s._value=e,s}function lht(t,e){var r,o;function s(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&iht(t,u)),r}return s._value=e,s}function aht(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var o=ru(t);return this.tween(r,(o.local?sht:lht)(o,e))}function cht(t,e){return function(){ud(this,t).delay=+e.apply(this,arguments)}}function uht(t,e){return e=+e,function(){ud(this,t).delay=e}}function fht(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?cht:uht)(e,t)):pr(this.node(),e).delay}function hht(t,e){return function(){Nr(this,t).duration=+e.apply(this,arguments)}}function dht(t,e){return e=+e,function(){Nr(this,t).duration=e}}function pht(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?hht:dht)(e,t)):pr(this.node(),e).duration}function ght(t,e){if(typeof e!="function")throw new Error;return function(){Nr(this,t).ease=e}}function vht(t){var e=this._id;return arguments.length?this.each(ght(e,t)):pr(this.node(),e).ease}function mht(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Nr(this,t).ease=r}}function yht(t){if(typeof t!="function")throw new Error;return this.each(mht(this._id,t))}function bht(t){typeof t!="function"&&(t=Hb(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var u=e[s],f=u.length,h=o[s]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new Xr(o,this._parents,this._name,this._id)}function wht(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,s=r.length,u=Math.min(o,s),f=new Array(o),h=0;h<u;++h)for(var d=e[h],g=r[h],v=d.length,y=f[h]=new Array(v),w,_=0;_<v;++_)(w=d[_]||g[_])&&(y[_]=w);for(;h<o;++h)f[h]=e[h];return new Xr(f,this._parents,this._name,this._id)}function xht(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function _ht(t,e,r){var o,s,u=xht(e)?ud:Nr;return function(){var f=u(this,t),h=f.on;h!==o&&(s=(o=h).copy()).on(e,r),f.on=s}}function Sht(t,e){var r=this._id;return arguments.length<2?pr(this.node(),r).on.on(t):this.each(_ht(r,t,e))}function kht(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Cht(){return this.on("end.remove",kht(this._id))}function Tht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=od(t));for(var o=this._groups,s=o.length,u=new Array(s),f=0;f<s;++f)for(var h=o[f],d=h.length,g=u[f]=new Array(d),v,y,w=0;w<d;++w)(v=h[w])&&(y=t.call(v,v.__data__,w,h))&&("__data__"in v&&(y.__data__=v.__data__),g[w]=y,ou(g[w],e,r,w,g,pr(v,r)));return new Xr(u,this._parents,e,r)}function Eht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Fb(t));for(var o=this._groups,s=o.length,u=[],f=[],h=0;h<s;++h)for(var d=o[h],g=d.length,v,y=0;y<g;++y)if(v=d[y]){for(var w=t.call(v,v.__data__,y,d),_,M=pr(v,r),A=0,L=w.length;A<L;++A)(_=w[A])&&ou(_,e,r,A,w,M);u.push(w),f.push(v)}return new Xr(u,f,e,r)}var Lht=Xl.prototype.constructor;function Aht(){return new Lht(this._groups,this._parents)}function Mht(t,e){var r,o,s;return function(){var u=ds(this,t),f=(this.style.removeProperty(t),ds(this,t));return u===f?null:u===r&&f===o?s:s=e(r=u,o=f)}}function aw(t){return function(){this.style.removeProperty(t)}}function Nht(t,e,r){var o,s=r+"",u;return function(){var f=ds(this,t);return f===s?null:f===o?u:u=e(o=f,r)}}function $ht(t,e,r){var o,s,u;return function(){var f=ds(this,t),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(t),ds(this,t))),f===d?null:f===o&&d===s?u:(s=d,u=e(o=f,h))}}function Pht(t,e){var r,o,s,u="style."+e,f="end."+u,h;return function(){var d=Nr(this,t),g=d.on,v=d.value[u]==null?h||(h=aw(e)):void 0;(g!==r||s!==v)&&(o=(r=g).copy()).on(f,s=v),d.on=o}}function Oht(t,e,r){var o=(t+="")=="transform"?Oft:lw;return e==null?this.styleTween(t,Mht(t,o)).on("end.style."+t,aw(t)):typeof e=="function"?this.styleTween(t,$ht(t,o,fd(this,"style."+t,e))).each(Pht(this._id,t)):this.styleTween(t,Nht(t,o,e),r).on("end.style."+t,null)}function Rht(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Dht(t,e,r){var o,s;function u(){var f=e.apply(this,arguments);return f!==s&&(o=(s=f)&&Rht(t,f,r)),o}return u._value=e,u}function zht(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,Dht(t,e,r??""))}function Iht(t){return function(){this.textContent=t}}function Fht(t){return function(){var e=t(this);this.textContent=e??""}}function Hht(t){return this.tween("text",typeof t=="function"?Fht(fd(this,"text",t)):Iht(t==null?"":t+""))}function qht(t){return function(e){this.textContent=t.call(this,e)}}function Bht(t){var e,r;function o(){var s=t.apply(this,arguments);return s!==r&&(e=(r=s)&&qht(s)),e}return o._value=t,o}function Wht(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Bht(t))}function Uht(){for(var t=this._name,e=this._id,r=cw(),o=this._groups,s=o.length,u=0;u<s;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)if(d=f[g]){var v=pr(d,e);ou(d,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Xr(o,this._parents,t,r)}function Vht(){var t,e,r=this,o=r._id,s=r.size();return new Promise(function(u,f){var h={value:f},d={value:function(){--s===0&&u()}};r.each(function(){var g=Nr(this,o),v=g.on;v!==t&&(e=(t=v).copy(),e._.cancel.push(h),e._.interrupt.push(h),e._.end.push(d)),g.on=e}),s===0&&u()})}var Ght=0;function Xr(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function cw(){return++Ght}var qr=Xl.prototype;Xr.prototype={constructor:Xr,select:Tht,selectAll:Eht,selectChild:qr.selectChild,selectChildren:qr.selectChildren,filter:bht,merge:wht,selection:Aht,transition:Uht,call:qr.call,nodes:qr.nodes,node:qr.node,size:qr.size,empty:qr.empty,each:qr.each,on:Sht,attr:rht,attrTween:aht,style:Oht,styleTween:zht,text:Hht,textTween:Wht,remove:Cht,tween:Yft,delay:fht,duration:pht,ease:vht,easeVarying:yht,end:Vht,[Symbol.iterator]:qr[Symbol.iterator]};function jht(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Kht={time:null,delay:0,duration:250,ease:jht};function Xht(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function Yht(t){var e,r;t instanceof Xr?(e=t._id,t=t._name):(e=cw(),(r=Kht).time=ad(),t=t==null?null:t+"");for(var o=this._groups,s=o.length,u=0;u<s;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&ou(d,t,e,g,f,r||Xht(d,e));return new Xr(o,this._parents,t,e)}Xl.prototype.interrupt=jft;Xl.prototype.transition=Yht;const Ka=t=>()=>t;function Zht(t,{sourceEvent:e,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function Wr(t,e,r){this.k=t,this.x=e,this.y=r}Wr.prototype={constructor:Wr,scale:function(t){return t===1?this:new Wr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Wr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var hd=new Wr(1,0,0);Wr.prototype;function Ef(t){t.stopImmediatePropagation()}function el(t){t.preventDefault(),t.stopImmediatePropagation()}function Jht(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Qht(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Em(){return this.__zoom||hd}function tdt(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function edt(){return navigator.maxTouchPoints||"ontouchstart"in this}function ndt(t,e,r){var o=t.invertX(e[0][0])-r[0][0],s=t.invertX(e[1][0])-r[1][0],u=t.invertY(e[0][1])-r[0][1],f=t.invertY(e[1][1])-r[1][1];return t.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function rdt(){var t=Jht,e=Qht,r=ndt,o=tdt,s=edt,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=Fft,g=Yl("start","zoom","end"),v,y,w,_=500,M=150,A=0,L=10;function T(I){I.property("__zoom",Em).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",ht).on("dblclick.zoom",Z).filter(s).on("touchstart.zoom",ut).on("touchmove.zoom",ot).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(I,k,q,W){var Q=I.selection?I.selection():I;Q.property("__zoom",Em),I!==Q?F(I,k,q,W):Q.interrupt().each(function(){H(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(I,k,q,W){T.scaleTo(I,function(){var Q=this.__zoom.k,mt=typeof k=="function"?k.apply(this,arguments):k;return Q*mt},q,W)},T.scaleTo=function(I,k,q,W){T.transform(I,function(){var Q=e.apply(this,arguments),mt=this.__zoom,Mt=q==null?$(Q):typeof q=="function"?q.apply(this,arguments):q,qt=mt.invert(Mt),Wt=typeof k=="function"?k.apply(this,arguments):k;return r(O(E(mt,Wt),Mt,qt),Q,f)},q,W)},T.translateBy=function(I,k,q,W){T.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof q=="function"?q.apply(this,arguments):q),e.apply(this,arguments),f)},null,W)},T.translateTo=function(I,k,q,W,Q){T.transform(I,function(){var mt=e.apply(this,arguments),Mt=this.__zoom,qt=W==null?$(mt):typeof W=="function"?W.apply(this,arguments):W;return r(hd.translate(qt[0],qt[1]).scale(Mt.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof q=="function"?-q.apply(this,arguments):-q),mt,f)},W,Q)};function E(I,k){return k=Math.max(u[0],Math.min(u[1],k)),k===I.k?I:new Wr(k,I.x,I.y)}function O(I,k,q){var W=k[0]-q[0]*I.k,Q=k[1]-q[1]*I.k;return W===I.x&&Q===I.y?I:new Wr(I.k,W,Q)}function $(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function F(I,k,q,W){I.on("start.zoom",function(){H(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).event(W).end()}).tween("zoom",function(){var Q=this,mt=arguments,Mt=H(Q,mt).event(W),qt=e.apply(Q,mt),Wt=q==null?$(qt):typeof q=="function"?q.apply(Q,mt):q,ee=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),Qt=Q.__zoom,Yt=typeof k=="function"?k.apply(Q,mt):k,Tt=d(Qt.invert(Wt).concat(ee/Qt.k),Yt.invert(Wt).concat(ee/Yt.k));return function(G){if(G===1)G=Yt;else{var rt=Tt(G),ft=ee/rt[2];G=new Wr(ft,Wt[0]-rt[0]*ft,Wt[1]-rt[1]*ft)}Mt.zoom(null,G)}})}function H(I,k,q){return!q&&I.__zooming||new ct(I,k)}function ct(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(I,k),this.taps=0}ct.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=En(this.that).datum();g.call(I,this.that,new Zht(I,{sourceEvent:this.sourceEvent,target:T,type:I,transform:this.that.__zoom,dispatch:g}),k)}};function Y(I,...k){if(!t.apply(this,arguments))return;var q=H(this,k).event(I),W=this.__zoom,Q=Math.max(u[0],Math.min(u[1],W.k*Math.pow(2,o.apply(this,arguments)))),mt=Br(I);if(q.wheel)(q.mouse[0][0]!==mt[0]||q.mouse[0][1]!==mt[1])&&(q.mouse[1]=W.invert(q.mouse[0]=mt)),clearTimeout(q.wheel);else{if(W.k===Q)return;q.mouse=[mt,W.invert(mt)],lc(this),q.start()}el(I),q.wheel=setTimeout(Mt,M),q.zoom("mouse",r(O(E(W,Q),q.mouse[0],q.mouse[1]),q.extent,f));function Mt(){q.wheel=null,q.end()}}function ht(I,...k){if(w||!t.apply(this,arguments))return;var q=I.currentTarget,W=H(this,k,!0).event(I),Q=En(I.view).on("mousemove.zoom",Wt,!0).on("mouseup.zoom",ee,!0),mt=Br(I,q),Mt=I.clientX,qt=I.clientY;Yb(I.view),Ef(I),W.mouse=[mt,this.__zoom.invert(mt)],lc(this),W.start();function Wt(Qt){if(el(Qt),!W.moved){var Yt=Qt.clientX-Mt,Tt=Qt.clientY-qt;W.moved=Yt*Yt+Tt*Tt>A}W.event(Qt).zoom("mouse",r(O(W.that.__zoom,W.mouse[0]=Br(Qt,q),W.mouse[1]),W.extent,f))}function ee(Qt){Q.on("mousemove.zoom mouseup.zoom",null),Zb(Qt.view,W.moved),el(Qt),W.event(Qt).end()}}function Z(I,...k){if(t.apply(this,arguments)){var q=this.__zoom,W=Br(I.changedTouches?I.changedTouches[0]:I,this),Q=q.invert(W),mt=q.k*(I.shiftKey?.5:2),Mt=r(O(E(q,mt),W,Q),e.apply(this,k),f);el(I),h>0?En(this).transition().duration(h).call(F,Mt,W,I):En(this).call(T.transform,Mt,W,I)}}function ut(I,...k){if(t.apply(this,arguments)){var q=I.touches,W=q.length,Q=H(this,k,I.changedTouches.length===W).event(I),mt,Mt,qt,Wt;for(Ef(I),Mt=0;Mt<W;++Mt)qt=q[Mt],Wt=Br(qt,this),Wt=[Wt,this.__zoom.invert(Wt),qt.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==Wt[2]&&(Q.touch1=Wt,Q.taps=0):(Q.touch0=Wt,mt=!0,Q.taps=1+!!v);v&&(v=clearTimeout(v)),mt&&(Q.taps<2&&(y=Wt[0],v=setTimeout(function(){v=null},_)),lc(this),Q.start())}}function ot(I,...k){if(this.__zooming){var q=H(this,k).event(I),W=I.changedTouches,Q=W.length,mt,Mt,qt,Wt;for(el(I),mt=0;mt<Q;++mt)Mt=W[mt],qt=Br(Mt,this),q.touch0&&q.touch0[2]===Mt.identifier?q.touch0[0]=qt:q.touch1&&q.touch1[2]===Mt.identifier&&(q.touch1[0]=qt);if(Mt=q.that.__zoom,q.touch1){var ee=q.touch0[0],Qt=q.touch0[1],Yt=q.touch1[0],Tt=q.touch1[1],G=(G=Yt[0]-ee[0])*G+(G=Yt[1]-ee[1])*G,rt=(rt=Tt[0]-Qt[0])*rt+(rt=Tt[1]-Qt[1])*rt;Mt=E(Mt,Math.sqrt(G/rt)),qt=[(ee[0]+Yt[0])/2,(ee[1]+Yt[1])/2],Wt=[(Qt[0]+Tt[0])/2,(Qt[1]+Tt[1])/2]}else if(q.touch0)qt=q.touch0[0],Wt=q.touch0[1];else return;q.zoom("touch",r(O(Mt,qt,Wt),q.extent,f))}}function j(I,...k){if(this.__zooming){var q=H(this,k).event(I),W=I.changedTouches,Q=W.length,mt,Mt;for(Ef(I),w&&clearTimeout(w),w=setTimeout(function(){w=null},_),mt=0;mt<Q;++mt)Mt=W[mt],q.touch0&&q.touch0[2]===Mt.identifier?delete q.touch0:q.touch1&&q.touch1[2]===Mt.identifier&&delete q.touch1;if(q.touch1&&!q.touch0&&(q.touch0=q.touch1,delete q.touch1),q.touch0)q.touch0[1]=this.__zoom.invert(q.touch0[0]);else if(q.end(),q.taps===2&&(Mt=Br(Mt,this),Math.hypot(y[0]-Mt[0],y[1]-Mt[1])<L)){var qt=En(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return T.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:Ka(+I),T):o},T.filter=function(I){return arguments.length?(t=typeof I=="function"?I:Ka(!!I),T):t},T.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:Ka(!!I),T):s},T.extent=function(I){return arguments.length?(e=typeof I=="function"?I:Ka([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),T):e},T.scaleExtent=function(I){return arguments.length?(u[0]=+I[0],u[1]=+I[1],T):[u[0],u[1]]},T.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(I){return arguments.length?(r=I,T):r},T.duration=function(I){return arguments.length?(h=+I,T):h},T.interpolate=function(I){return arguments.length?(d=I,T):d},T.on=function(){var I=g.on.apply(g,arguments);return I===g?T:I},T.clickDistance=function(I){return arguments.length?(A=(I=+I)*I,T):Math.sqrt(A)},T.tapDistance=function(I){return arguments.length?(L=+I,T):L},T}function idt(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return uw(this.cover(e,r),e,r,t)}function uw(t,e,r,o){if(isNaN(e)||isNaN(r))return t;var s,u=t._root,f={data:o},h=t._x0,d=t._y0,g=t._x1,v=t._y1,y,w,_,M,A,L,T,E;if(!u)return t._root=f,t;for(;u.length;)if((A=e>=(y=(h+g)/2))?h=y:g=y,(L=r>=(w=(d+v)/2))?d=w:v=w,s=u,!(u=u[T=L<<1|A]))return s[T]=f,t;if(_=+t._x.call(null,u.data),M=+t._y.call(null,u.data),e===_&&r===M)return f.next=u,s?s[T]=f:t._root=f,t;do s=s?s[T]=new Array(4):t._root=new Array(4),(A=e>=(y=(h+g)/2))?h=y:g=y,(L=r>=(w=(d+v)/2))?d=w:v=w;while((T=L<<1|A)===(E=(M>=w)<<1|_>=y));return s[E]=u,s[T]=f,t}function odt(t){var e,r,o=t.length,s,u,f=new Array(o),h=new Array(o),d=1/0,g=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,e=t[r]))||isNaN(u=+this._y.call(null,e))||(f[r]=s,h[r]=u,s<d&&(d=s),s>v&&(v=s),u<g&&(g=u),u>y&&(y=u));if(d>v||g>y)return this;for(this.cover(d,g).cover(v,y),r=0;r<o;++r)uw(this,f[r],h[r],t[r]);return this}function sdt(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,o=this._y0,s=this._x1,u=this._y1;if(isNaN(r))s=(r=Math.floor(t))+1,u=(o=Math.floor(e))+1;else{for(var f=s-r||1,h=this._root,d,g;r>t||t>=s||o>e||e>=u;)switch(g=(e<o)<<1|t<r,d=new Array(4),d[g]=h,h=d,f*=2,g){case 0:s=r+f,u=o+f;break;case 1:r=s-f,u=o+f;break;case 2:s=r+f,o=u-f;break;case 3:r=s-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=s,this._y1=u,this}function ldt(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function adt(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function vn(t,e,r,o,s){this.node=t,this.x0=e,this.y0=r,this.x1=o,this.y1=s}function cdt(t,e,r){var o,s=this._x0,u=this._y0,f,h,d,g,v=this._x1,y=this._y1,w=[],_=this._root,M,A;for(_&&w.push(new vn(_,s,u,v,y)),r==null?r=1/0:(s=t-r,u=e-r,v=t+r,y=e+r,r*=r);M=w.pop();)if(!(!(_=M.node)||(f=M.x0)>v||(h=M.y0)>y||(d=M.x1)<s||(g=M.y1)<u))if(_.length){var L=(f+d)/2,T=(h+g)/2;w.push(new vn(_[3],L,T,d,g),new vn(_[2],f,T,L,g),new vn(_[1],L,h,d,T),new vn(_[0],f,h,L,T)),(A=(e>=T)<<1|t>=L)&&(M=w[w.length-1],w[w.length-1]=w[w.length-1-A],w[w.length-1-A]=M)}else{var E=t-+this._x.call(null,_.data),O=e-+this._y.call(null,_.data),$=E*E+O*O;if($<r){var F=Math.sqrt(r=$);s=t-F,u=e-F,v=t+F,y=e+F,o=_.data}}return o}function udt(t){if(isNaN(v=+this._x.call(null,t))||isNaN(y=+this._y.call(null,t)))return this;var e,r=this._root,o,s,u,f=this._x0,h=this._y0,d=this._x1,g=this._y1,v,y,w,_,M,A,L,T;if(!r)return this;if(r.length)for(;;){if((M=v>=(w=(f+d)/2))?f=w:d=w,(A=y>=(_=(h+g)/2))?h=_:g=_,e=r,!(r=r[L=A<<1|M]))return this;if(!r.length)break;(e[L+1&3]||e[L+2&3]||e[L+3&3])&&(o=e,T=L)}for(;r.data!==t;)if(s=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,s?(u?s.next=u:delete s.next,this):e?(u?e[L]=u:delete e[L],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(o?o[T]=r:this._root=r),this):(this._root=u,this)}function fdt(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function hdt(){return this._root}function ddt(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function pdt(t){var e=[],r,o=this._root,s,u,f,h,d;for(o&&e.push(new vn(o,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,d=r.y1)&&o.length){var g=(u+h)/2,v=(f+d)/2;(s=o[3])&&e.push(new vn(s,g,v,h,d)),(s=o[2])&&e.push(new vn(s,u,v,g,d)),(s=o[1])&&e.push(new vn(s,g,f,h,v)),(s=o[0])&&e.push(new vn(s,u,f,g,v))}return this}function gdt(t){var e=[],r=[],o;for(this._root&&e.push(new vn(this._root,this._x0,this._y0,this._x1,this._y1));o=e.pop();){var s=o.node;if(s.length){var u,f=o.x0,h=o.y0,d=o.x1,g=o.y1,v=(f+d)/2,y=(h+g)/2;(u=s[0])&&e.push(new vn(u,f,h,v,y)),(u=s[1])&&e.push(new vn(u,v,h,d,y)),(u=s[2])&&e.push(new vn(u,f,y,v,g)),(u=s[3])&&e.push(new vn(u,v,y,d,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function vdt(t){return t[0]}function mdt(t){return arguments.length?(this._x=t,this):this._x}function ydt(t){return t[1]}function bdt(t){return arguments.length?(this._y=t,this):this._y}function dd(t,e,r){var o=new pd(e??vdt,r??ydt,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function pd(t,e,r,o,s,u){this._x=t,this._y=e,this._x0=r,this._y0=o,this._x1=s,this._y1=u,this._root=void 0}function Lm(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var wn=dd.prototype=pd.prototype;wn.copy=function(){var t=new pd(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,r,o;if(!e)return t;if(!e.length)return t._root=Lm(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var s=0;s<4;++s)(o=e.source[s])&&(o.length?r.push({source:o,target:e.target[s]=new Array(4)}):e.target[s]=Lm(o));return t};wn.add=idt;wn.addAll=odt;wn.cover=sdt;wn.data=ldt;wn.extent=adt;wn.find=cdt;wn.remove=udt;wn.removeAll=fdt;wn.root=hdt;wn.size=ddt;wn.visit=pdt;wn.visitAfter=gdt;wn.x=mdt;wn.y=bdt;function yn(t){return function(){return t}}function Ci(t){return(t()-.5)*1e-6}function wdt(t){return t.x+t.vx}function xdt(t){return t.y+t.vy}function _dt(t){var e,r,o,s=1,u=1;typeof t!="function"&&(t=yn(t==null?1:+t));function f(){for(var g,v=e.length,y,w,_,M,A,L,T=0;T<u;++T)for(y=dd(e,wdt,xdt).visitAfter(h),g=0;g<v;++g)w=e[g],A=r[w.index],L=A*A,_=w.x+w.vx,M=w.y+w.vy,y.visit(E);function E(O,$,F,H,ct){var Y=O.data,ht=O.r,Z=A+ht;if(Y){if(Y.index>w.index){var ut=_-Y.x-Y.vx,ot=M-Y.y-Y.vy,j=ut*ut+ot*ot;j<Z*Z&&(ut===0&&(ut=Ci(o),j+=ut*ut),ot===0&&(ot=Ci(o),j+=ot*ot),j=(Z-(j=Math.sqrt(j)))/j*s,w.vx+=(ut*=j)*(Z=(ht*=ht)/(L+ht)),w.vy+=(ot*=j)*Z,Y.vx-=ut*(Z=1-Z),Y.vy-=ot*Z)}return}return $>_+Z||H<_-Z||F>M+Z||ct<M-Z}}function h(g){if(g.data)return g.r=r[g.data.index];for(var v=g.r=0;v<4;++v)g[v]&&g[v].r>g.r&&(g.r=g[v].r)}function d(){if(e){var g,v=e.length,y;for(r=new Array(v),g=0;g<v;++g)y=e[g],r[y.index]=+t(y,g,e)}}return f.initialize=function(g,v){e=g,o=v,d()},f.iterations=function(g){return arguments.length?(u=+g,f):u},f.strength=function(g){return arguments.length?(s=+g,f):s},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:yn(+g),d(),f):t},f}function Sdt(t){return t.index}function Am(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function kdt(t){var e=Sdt,r=y,o,s=yn(30),u,f,h,d,g,v=1;t==null&&(t=[]);function y(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function w(L){for(var T=0,E=t.length;T<v;++T)for(var O=0,$,F,H,ct,Y,ht,Z;O<E;++O)$=t[O],F=$.source,H=$.target,ct=H.x+H.vx-F.x-F.vx||Ci(g),Y=H.y+H.vy-F.y-F.vy||Ci(g),ht=Math.sqrt(ct*ct+Y*Y),ht=(ht-u[O])/ht*L*o[O],ct*=ht,Y*=ht,H.vx-=ct*(Z=d[O]),H.vy-=Y*Z,F.vx+=ct*(Z=1-Z),F.vy+=Y*Z}function _(){if(f){var L,T=f.length,E=t.length,O=new Map(f.map((F,H)=>[e(F,H,f),F])),$;for(L=0,h=new Array(T);L<E;++L)$=t[L],$.index=L,typeof $.source!="object"&&($.source=Am(O,$.source)),typeof $.target!="object"&&($.target=Am(O,$.target)),h[$.source.index]=(h[$.source.index]||0)+1,h[$.target.index]=(h[$.target.index]||0)+1;for(L=0,d=new Array(E);L<E;++L)$=t[L],d[L]=h[$.source.index]/(h[$.source.index]+h[$.target.index]);o=new Array(E),M(),u=new Array(E),A()}}function M(){if(f)for(var L=0,T=t.length;L<T;++L)o[L]=+r(t[L],L,t)}function A(){if(f)for(var L=0,T=t.length;L<T;++L)u[L]=+s(t[L],L,t)}return w.initialize=function(L,T){f=L,g=T,_()},w.links=function(L){return arguments.length?(t=L,_(),w):t},w.id=function(L){return arguments.length?(e=L,w):e},w.iterations=function(L){return arguments.length?(v=+L,w):v},w.strength=function(L){return arguments.length?(r=typeof L=="function"?L:yn(+L),M(),w):r},w.distance=function(L){return arguments.length?(s=typeof L=="function"?L:yn(+L),A(),w):s},w}const Cdt=1664525,Tdt=1013904223,Mm=4294967296;function Edt(){let t=1;return()=>(t=(Cdt*t+Tdt)%Mm)/Mm}function Ldt(t){return t.x}function Adt(t){return t.y}var Mdt=10,Ndt=Math.PI*(3-Math.sqrt(5));function $dt(t){var e,r=1,o=.001,s=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,d=cd(y),g=Yl("tick","end"),v=Edt();t==null&&(t=[]);function y(){w(),g.call("tick",e),r<o&&(d.stop(),g.call("end",e))}function w(A){var L,T=t.length,E;A===void 0&&(A=1);for(var O=0;O<A;++O)for(r+=(u-r)*s,h.forEach(function($){$(r)}),L=0;L<T;++L)E=t[L],E.fx==null?E.x+=E.vx*=f:(E.x=E.fx,E.vx=0),E.fy==null?E.y+=E.vy*=f:(E.y=E.fy,E.vy=0);return e}function _(){for(var A=0,L=t.length,T;A<L;++A){if(T=t[A],T.index=A,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var E=Mdt*Math.sqrt(.5+A),O=A*Ndt;T.x=E*Math.cos(O),T.y=E*Math.sin(O)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function M(A){return A.initialize&&A.initialize(t,v),A}return _(),e={tick:w,restart:function(){return d.restart(y),e},stop:function(){return d.stop(),e},nodes:function(A){return arguments.length?(t=A,_(),h.forEach(M),e):t},alpha:function(A){return arguments.length?(r=+A,e):r},alphaMin:function(A){return arguments.length?(o=+A,e):o},alphaDecay:function(A){return arguments.length?(s=+A,e):+s},alphaTarget:function(A){return arguments.length?(u=+A,e):u},velocityDecay:function(A){return arguments.length?(f=1-A,e):1-f},randomSource:function(A){return arguments.length?(v=A,h.forEach(M),e):v},force:function(A,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,M(L)),e):h.get(A)},find:function(A,L,T){var E=0,O=t.length,$,F,H,ct,Y;for(T==null?T=1/0:T*=T,E=0;E<O;++E)ct=t[E],$=A-ct.x,F=L-ct.y,H=$*$+F*F,H<T&&(Y=ct,T=H);return Y},on:function(A,L){return arguments.length>1?(g.on(A,L),e):g.on(A)}}}function Pdt(){var t,e,r,o,s=yn(-30),u,f=1,h=1/0,d=.81;function g(_){var M,A=t.length,L=dd(t,Ldt,Adt).visitAfter(y);for(o=_,M=0;M<A;++M)e=t[M],L.visit(w)}function v(){if(t){var _,M=t.length,A;for(u=new Array(M),_=0;_<M;++_)A=t[_],u[A.index]=+s(A,_,t)}}function y(_){var M=0,A,L,T=0,E,O,$;if(_.length){for(E=O=$=0;$<4;++$)(A=_[$])&&(L=Math.abs(A.value))&&(M+=A.value,T+=L,E+=L*A.x,O+=L*A.y);_.x=E/T,_.y=O/T}else{A=_,A.x=A.data.x,A.y=A.data.y;do M+=u[A.data.index];while(A=A.next)}_.value=M}function w(_,M,A,L){if(!_.value)return!0;var T=_.x-e.x,E=_.y-e.y,O=L-M,$=T*T+E*E;if(O*O/d<$)return $<h&&(T===0&&(T=Ci(r),$+=T*T),E===0&&(E=Ci(r),$+=E*E),$<f&&($=Math.sqrt(f*$)),e.vx+=T*_.value*o/$,e.vy+=E*_.value*o/$),!0;if(_.length||$>=h)return;(_.data!==e||_.next)&&(T===0&&(T=Ci(r),$+=T*T),E===0&&(E=Ci(r),$+=E*E),$<f&&($=Math.sqrt(f*$)));do _.data!==e&&(O=u[_.data.index]*o/$,e.vx+=T*O,e.vy+=E*O);while(_=_.next)}return g.initialize=function(_,M){t=_,r=M,v()},g.strength=function(_){return arguments.length?(s=typeof _=="function"?_:yn(+_),v(),g):s},g.distanceMin=function(_){return arguments.length?(f=_*_,g):Math.sqrt(f)},g.distanceMax=function(_){return arguments.length?(h=_*_,g):Math.sqrt(h)},g.theta=function(_){return arguments.length?(d=_*_,g):Math.sqrt(d)},g}function Odt(t){var e=yn(.1),r,o,s;typeof t!="function"&&(t=yn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vx+=(s[d]-v.x)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),s=new Array(d),h=0;h<d;++h)o[h]=isNaN(s[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:yn(+h),f(),u):e},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:yn(+h),f(),u):t},u}function Rdt(t){var e=yn(.1),r,o,s;typeof t!="function"&&(t=yn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vy+=(s[d]-v.y)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),s=new Array(d),h=0;h<d;++h)o[h]=isNaN(s[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:yn(+h),f(),u):e},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:yn(+h),f(),u):t},u}var Ddt=Object.defineProperty,zdt=(t,e,r)=>e in t?Ddt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$e=(t,e,r)=>(zdt(t,typeof e!="symbol"?e+"":e,r),r);function Idt(){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}}function Nm(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1}function Ti(...t){return t.reduce((e,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(e[o])&&Array.isArray(r[o])?e[o]=Ti.options.mergeArrays?Array.from(new Set(e[o].concat(r[o]))):r[o]:Nm(e[o])&&Nm(r[o])?e[o]=Ti(e[o],r[o]):e[o]=r[o])}),e},{})}const fw={mergeArrays:!0};Ti.options=fw;Ti.withOptions=(t,...e)=>{Ti.options={mergeArrays:!0,...t};const r=Ti(...e);return Ti.options=fw,r};function Fdt(){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 Hdt(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function hw(t){t.preventDefault(),t.stopPropagation()}function dw(t){return typeof t=="number"}function Ri(t,e){return dw(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function qdt(t){return`${t.source.id}-${t.target.id}`}function pw(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function Bdt(t){return`url(#${pw(t.color)})`}function Wdt(t){return{size:t,padding:(e,r)=>Ri(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const gw={Arrow:t=>Wdt(t)},Udt=(t,e,r)=>[e/2,r/2],vw=(t,e,r)=>[$m(0,e),$m(0,r)];function $m(t,e){return Math.random()*(e-t)+t}function Vdt(t){const e=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[u,f]=e[r.id]??[];return!u||!f?vw(r,o,s):[u,f]}}const gh={Centered:Udt,Randomized:vw,Stable:Vdt};function Gdt(){return{autoResize:!1,callbacks:{},hooks:{},initial:Hdt(),nodeRadius:16,marker:gw.Arrow(4),modifiers:{},positionInitializer:gh.Centered,simulation:{alphas:Idt(),forces:Fdt()},zoom:{initial:1,min:.1,max:2}}}function jdt(t={}){return Ti.withOptions({mergeArrays:!1},Gdt(),t)}function Kdt({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[u,f],scale:h,zoom:d}){const g=e.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",v=>hw(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return t&&g.call(d.transform,hd.translate(u,f).scale(h)),g.append("g")}function Xdt({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function Ydt({config:t,onDragStart:e,onDragEnd:r}){var o,s;const u=dft().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&e(f,h),En(f.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(f,h)=>{h.fx=f.x,h.fy=f.y}).on("end",(f,h)=>{f.active===0&&r(f,h),En(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(s=(o=t.modifiers).drag)==null||s.call(o,u),u}function Zdt({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:s}){const u=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&s(d)),f=d=>u.find(g=>g.source.id===d.id||g.target.id===d.id)!==void 0,h=t.nodes.filter(d=>e.includes(d.type)&&(o||f(d)));return r===void 0||!e.includes(r.type)?{nodes:h,links:u}:Jdt({nodes:h,links:u},r)}function Jdt(t,e){const r=[...Qdt(t,e),...tpt(t,e)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function Qdt(t,e){return mw(t,e,(r,o)=>r.target.id===o.id)}function tpt(t,e){return mw(t,e,(r,o)=>r.source.id===o.id)}function mw(t,e,r){const o=new Set(t.links),s=new Set([e]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...s].some(d=>r(h,d)));if(f.length===0)return u;f.forEach(h=>{s.add(h.source),s.add(h.target),u.push(h),o.delete(h)})}return u}function vh(t){return t.x??0}function mh(t){return t.y??0}function gd({source:t,target:e}){const r=new gn(vh(t),mh(t)),o=new gn(vh(e),mh(e)),s=o.subtract(r),u=s.length(),f=s.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function yw({center:t,node:e}){const r=new gn(vh(e),mh(e));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new gn(0,1))),{n:r,c:o}}function bw({config:t,source:e,target:r}){const{s:o,t:s,norm:u}=gd({config:t,source:e,target:r}),f=o.add(u.multiply(Ri(t,e)-1)),h=s.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function ept(t){const{start:e,end:r}=bw(t);return`M${e.x},${e.y}
|
|
49
|
-
L${r.x},${r.y}`}function npt(t){const{start:e,end:r}=bw(t),o=r.subtract(e).multiply(.5),s=e.add(o);return`translate(${s.x-8},${s.y-4})`}function rpt({config:t,source:e,target:r}){const{s:o,t:s,dist:u,norm:f,endNorm:h}=gd({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(Ri(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(Ri(t,r)).add(s).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),y=1.2*u;return`M${g.x},${g.y}
|
|
50
|
-
A${y},${y},0,0,1,${v.x},${v.y}`}function ipt({center:t,config:e,node:r}){const{n:o,c:s}=yw({center:t,config:e,node:r}),u=Ri(e,r),f=o.subtract(s),h=f.multiply(1/f.length()),d=40,g=h.rotateByDegrees(d).multiply(u-1).add(o),v=h.rotateByDegrees(-d).multiply(u).add(o).add(h.rotateByDegrees(-d).multiply(2*e.marker.size));return`M${g.x},${g.y}
|
|
51
|
-
A${u},${u},0,1,0,${v.x},${v.y}`}function opt({config:t,source:e,target:r}){const{t:o,dist:s,endNorm:u}=gd({config:t,source:e,target:r}),f=u.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function spt({center:t,config:e,node:r}){const{n:o,c:s}=yw({center:t,config:e,node:r}),u=o.subtract(s),f=u.multiply(1/u.length()).multiply(3*Ri(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const ss={line:{labelTransform:npt,path:ept},arc:{labelTransform:opt,path:rpt},reflexive:{labelTransform:spt,path:ipt}};function lpt(t){return t.append("g").classed("links",!0).selectAll("path")}function apt({config:t,graph:e,selection:r,showLabels:o}){const s=r==null?void 0:r.data(e.links,u=>qdt(u)).join(u=>{var f,h,d,g;const v=u.append("g"),y=v.append("path").classed("link",!0).style("marker-end",_=>Bdt(_)).style("stroke",_=>_.color);(h=(f=t.modifiers).link)==null||h.call(f,y);const w=v.append("text").classed("link__label",!0).style("fill",_=>_.label?_.label.color:null).style("font-size",_=>_.label?_.label.fontSize:null).text(_=>_.label?_.label.text:null);return(g=(d=t.modifiers).linkLabel)==null||g.call(d,w),v});return s==null||s.select(".link__label").attr("opacity",u=>u.label&&o?1:0),s}function cpt(t){upt(t),fpt(t)}function upt({center:t,config:e,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?ss.reflexive.path({config:e,node:s.source,center:t}):ww(r,s.source,s.target)?ss.arc.path({config:e,source:s.source,target:s.target}):ss.line.path({config:e,source:s.source,target:s.target}))}function fpt({config:t,center:e,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?ss.reflexive.labelTransform({config:t,node:s.source,center:e}):ww(r,s.source,s.target)?ss.arc.labelTransform({config:t,source:s.source,target:s.target}):ss.line.labelTransform({config:t,source:s.source,target:s.target}))}function ww(t,e,r){return e.id!==r.id&&t.links.some(o=>o.target.id===e.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===e.id)}function hpt(t){return t.append("defs").selectAll("marker")}function dpt({config:t,graph:e,selection:r}){return r==null?void 0:r.data(ppt(e),o=>o).join(o=>{const s=o.append("marker").attr("id",u=>pw(u)).attr("markerHeight",4*t.marker.size).attr("markerWidth",4*t.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",t.marker.ref[0]).attr("refY",t.marker.ref[1]).attr("viewBox",t.marker.viewBox).style("fill",u=>u);return s.append("path").attr("d",gpt(t.marker.path)),s})}function ppt(t){return[...new Set(t.links.map(e=>e.color))]}function gpt(t){const[e,...r]=t;if(!e)return"M0,0";const[o,s]=e;return r.reduce((u,[f,h])=>`${u}L${f},${h}`,`M${o},${s}`)}function vpt(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function mpt({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:s,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,d=>d.id).join(d=>{var g,v,y,w;const _=d.append("g");e!==void 0&&_.call(e);const M=_.append("circle").classed("node",!0).attr("r",L=>Ri(t,L)).on("contextmenu",(L,T)=>{hw(L),o(T)}).on("pointerdown",(L,T)=>bpt(L,T,s??o)).style("fill",L=>L.color);(v=(g=t.modifiers).node)==null||v.call(g,M);const A=_.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(w=(y=t.modifiers).nodeLabel)==null||w.call(y,A),_});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const ypt=500;function bpt(t,e,r){if(t.button!==void 0&&t.button!==0)return;const o=e.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>ypt){e.lastInteractionTimestamp=s;return}e.lastInteractionTimestamp=void 0,r(e)}function wpt(t){t==null||t.attr("transform",e=>`translate(${e.x??0},${e.y??0})`)}function xpt({center:t,config:e,graph:r,onTick:o}){var s,u;const f=$dt(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;f.force("x",Odt(()=>t().x).strength(y)).force("y",Rdt(()=>t().y).strength(y))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",Pdt().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",_dt().radius(y=>g.radiusMultiplier*Ri(e,y)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",kdt(r.links).id(y=>y.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(s=e.modifiers).simulation)==null||u.call(s,f),f}function _pt({canvasContainer:t,config:e,min:r,max:o,onZoom:s}){var u,f;const h=rdt().scaleExtent([r,o]).filter(d=>{var g;return d.button===0||((g=d.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",d=>s(d)).on("end",()=>t().classed("grabbed",!1));return(f=(u=e.modifiers).zoom)==null||f.call(u,h),h}class Spt{constructor(e,r,o){if($e(this,"nodeTypes"),$e(this,"_nodeTypeFilter"),$e(this,"_includeUnlinked",!0),$e(this,"_linkFilter",()=>!0),$e(this,"_showLinkLabels",!0),$e(this,"_showNodeLabels",!0),$e(this,"filteredGraph"),$e(this,"width",0),$e(this,"height",0),$e(this,"simulation"),$e(this,"canvas"),$e(this,"linkSelection"),$e(this,"nodeSelection"),$e(this,"markerSelection"),$e(this,"zoom"),$e(this,"drag"),$e(this,"xOffset",0),$e(this,"yOffset",0),$e(this,"scale"),$e(this,"focusedNode"),$e(this,"resizeObserver"),this.container=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[u,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??u,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=u??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Cct(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=e?r:o;this.restart(s)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=e?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=e?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return gn.of([this.width,this.height]).divide(2).subtract(gn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,u=e.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(dw(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:s}))}restart(e){var r;this.markerSelection=dpt({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=apt({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=mpt({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=xpt({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,r){e?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var e,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(e=this.resizeObserver)==null||e.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=_pt({config:this.config,canvasContainer:()=>En(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Kdt({applyZoom:this.scale!==1,container:En(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=lpt(this.canvas),this.nodeSelection=vpt(this.canvas),this.markerSelection=hpt(this.canvas),this.drag=Ydt({config:this.config,onDragStart:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){wpt(this.nodeSelection),cpt({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var e;(e=this.simulation)==null||e.stop(),En(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(e){var r,o,s;this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){Xdt({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=Zdt({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Pm({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function kpt(t){return{...t}}function xw(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Cpt={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Tpt={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Ept=["id","checked","onChange"],Lpt=["for"],Apt=tt("div",{"flex-auto":""},null,-1),Mpt=he({__name:"ViewModuleGraph",props:{graph:{}},setup(t){const e=t,{graph:r}=u_(e),o=te(),s=te(!1),u=te(),f=te();Dh(()=>{s.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),vs(()=>{g()}),zh(()=>{var y;(y=f.value)==null||y.shutdown()}),je(r,g);function h(y,w){var _;(_=f.value)==null||_.filterNodesByType(w,y)}function d(y){u.value=y,s.value=!0}function g(){var y;(y=f.value)==null||y.shutdown(),!(!r.value||!o.value)&&(f.value=new Spt(o.value,r.value,jdt({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:_})=>w===0&&_===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:gw.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?gh.Randomized:gh.Centered,zoom:{min:.5,max:2}})))}function v(y){if(Kr)return;const w=L=>L.button===0;let _=0,M=0,A=0;y.on("pointerdown",(L,T)=>{T.type!=="external"&&(!T.x||!T.y||!w(L)||(_=T.x,M=T.y,A=Date.now()))}).on("pointerup",(L,T)=>{if(T.type==="external"||!T.x||!T.y||!w(L)||Date.now()-A>500)return;const E=T.x-_,O=T.y-M;E**2+O**2<100&&d(T.id)})}return(y,w)=>{var T;const _=ys,M=kct,A=hct,L=yo("tooltip");return at(),St("div",Cpt,[tt("div",null,[tt("div",Tpt,[(at(!0),St(ie,null,Rn((T=V(f))==null?void 0:T.nodeTypes.sort(),E=>{var O;return at(),St("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[tt("input",{id:`type-${E}`,type:"checkbox",checked:(O=V(f))==null?void 0:O.nodeTypeFilter.includes(E),onChange:$=>h(E,$.target.checked)},null,40,Ept),tt("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${E}`,"border-b-2":"",style:An({"border-color":`var(--color-node-${E})`})},jt(E)+" Modules",13,Lpt)])}),128)),Apt,tt("div",null,[on(Ht(_,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),tt("div",{ref_key:"el",ref:o},null,512),Ht(A,{modelValue:V(s),"onUpdate:modelValue":w[1]||(w[1]=E=>Ae(s)?s.value=E:null),direction:"right"},{default:re(()=>[V(u)?(at(),ne(E_,{key:0},{default:re(()=>[Ht(M,{id:V(u),onClose:w[0]||(w[0]=E=>s.value=!1)},null,8,["id"])]),_:1})):Xt("",!0)]),_:1},8,["modelValue"])])}}}),Npt={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},$pt={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Ppt={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Opt={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Rpt={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Dpt={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},vd=he({__name:"StatusIcon",props:{task:{}},setup(t){return(e,r)=>{var s,u,f;const o=yo("tooltip");return((s=e.task.result)==null?void 0:s.state)==="pass"?(at(),St("div",Npt)):V(Qc)(e.task)?on((at(),St("div",$pt,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=e.task.result)==null?void 0:u.state)==="fail"?(at(),St("div",Ppt)):e.task.mode==="todo"?on((at(),St("div",Opt,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((f=e.task.result)==null?void 0:f.state)==="skip"?on((at(),St("div",Rpt,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(at(),St("div",Dpt))}}});function zpt(t){const e=new Map,r=new Map,o=[];for(;;){let s=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:d}=u;if(d){s++;const{raw:y,candidate:w}=u;e.set(y,w);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,s===t.length)break}return e}function Ipt(t){let e=t;e.includes("/node_modules/")&&(e=t.split(/\/node_modules\//g).pop());const r=e.split(/\//g);return{raw:e,splits:r,candidate:"",finished:!1,id:t}}function Fpt(t){const e=t.map(o=>Ipt(o)),r=zpt(e);return e.map(({raw:o,id:s})=>xw({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function Hpt(t,e){return xw({color:e?"var(--color-node-root)":"var(--color-node-inline)",label:{color:e?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function qpt(t,e){if(!t)return Pm({});const r=Fpt(t.externalized),o=t.inlined.map(h=>Hpt(h,h===e))??[],s=[...r,...o],u=Object.fromEntries(s.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,d])=>d.map(g=>{const v=u[h],y=u[g];if(!(v===void 0||y===void 0))return kpt({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return Pm({nodes:s,links:f})}const Bpt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Wpt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Upt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Vpt={class:"flex text-lg"},Gpt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},jpt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Kpt=["flex-1"],Xpt=he({__name:"FileDetails",setup(t){const e=te({externalized:[],graph:{},inlined:[]}),r=te({nodes:[],links:[]}),o=te(!1),s=te(!1);Ult(Se,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(e.value=await Oe.rpc.getModuleGraph(g.filepath),r.value=qpt(e.value,g.filepath))},{debounce:100,immediate:!0});function u(){var v;const g=(v=Se.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)}function f(g){g==="graph"&&(s.value=!0),ir.value=g}const h=xt(()=>{var g;return((g=Nb.value)==null?void 0:g.reduce((v,{size:y})=>v+y,0))??0});function d(g){o.value=g}return(g,v)=>{var E,O;const y=vd,w=ys,_=Mpt,M=fct,A=nct,L=Uat,T=yo("tooltip");return V(Se)?(at(),St("div",Bpt,[tt("div",null,[tt("div",Wpt,[Ht(y,{task:V(Se)},null,8,["task"]),tt("div",Upt,jt((E=V(Se))==null?void 0:E.filepath),1),tt("div",Vpt,[V(Kr)?Xt("",!0):on((at(),ne(w,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=V(Se))!=null&&O.filepath),onClick:u},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),tt("div",Gpt,[tt("button",{"tab-button":"",class:ge({"tab-button-active":V(ir)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=$=>f(null))}," Report ",2),tt("button",{"tab-button":"","data-testid":"btn-graph",class:ge({"tab-button-active":V(ir)==="graph"}),onClick:v[1]||(v[1]=$=>f("graph"))}," Module Graph ",2),V(Kr)?Xt("",!0):(at(),St("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ge({"tab-button-active":V(ir)==="editor"}),onClick:v[2]||(v[2]=$=>f("editor"))},jt(V(o)?"* ":"")+"Code ",3)),tt("button",{"tab-button":"","data-testid":"btn-console",class:ge({"tab-button-active":V(ir)==="console",op20:V(ir)!=="console"&&V(h)===0}),onClick:v[3]||(v[3]=$=>f("console"))}," Console ("+jt(V(h))+") ",3)])]),tt("div",jpt,[V(s)?(at(),St("div",{key:0,"flex-1":V(ir)==="graph"&&""},[on(Ht(_,{graph:V(r),"data-testid":"graph"},null,8,["graph"]),[[Gf,V(ir)==="graph"]])],8,Kpt)):Xt("",!0),V(ir)==="editor"?(at(),ne(M,{key:V(Se).filepath,file:V(Se),"data-testid":"editor",onDraft:d},null,8,["file"])):V(ir)==="console"?(at(),ne(A,{key:2,file:V(Se),"data-testid":"console"},null,8,["file"])):V(ir)?Xt("",!0):(at(),ne(L,{key:3,file:V(Se),"data-testid":"report"},null,8,["file"]))])])):Xt("",!0)}}}),Ypt=["open"],Zpt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Jpt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Qpt=he({__name:"DetailsPanel",props:{color:{}},setup(t){const e=te(!0);return(r,o)=>(at(),St("div",{open:V(e),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>e.value=s.target.open)},[tt("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ge(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[Zpt,Gn(r.$slots,"summary",{open:V(e)}),Jpt],2),Gn(r.$slots,"default")],40,Ypt))}}),tgt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},egt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-2":""},ngt=["text"],rgt={"text-sm":"",truncate:"","font-light":""},igt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},ogt=he({__name:"TaskItem",props:{task:{}},setup(t){const e=t,r=xt(()=>{const{result:o}=e.task;return o&&Math.round(o.duration||0)});return(o,s)=>{var f,h;const u=vd;return o.task?(at(),St("div",tgt,[Ht(u,{task:o.task,"mr-2":""},null,8,["task"]),o.task.type==="suite"&&o.task.meta.typecheck?(at(),St("div",egt)):Xt("",!0),tt("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=o.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[tt("span",rgt,jt(o.task.name),1),typeof V(r)=="number"?(at(),St("span",igt,jt(V(r)>0?V(r):"< 1")+"ms ",1)):Xt("",!0)],8,ngt)])):Xt("",!0)}}});function sgt(t){return Object.hasOwnProperty.call(t,"tasks")}function _w(t,e){return typeof t!="string"||typeof e!="string"?!1:t.toLowerCase().includes(e.toLowerCase())}const lgt={key:1},agt=he({inheritAttrs:!1,__name:"TaskTree",props:{task:{},indent:{default:0},nested:{type:Boolean,default:!1},search:{},onItemClick:{type:Function}},setup(t){return(e,r)=>{const o=ogt,s=fo("TaskTree",!0);return at(),St(ie,null,[!e.nested||!e.search||V(_w)(e.task.name,e.search)?(at(),ne(o,Ai({key:0},e.$attrs,{task:e.task,style:{paddingLeft:`${e.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>e.onItemClick&&e.onItemClick(e.task))}),null,16,["task","style"])):Xt("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(at(),St("div",lgt,[(at(!0),St(ie,null,Rn(e.task.tasks,u=>(at(),ne(s,{key:u.id,task:u,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))])):Xt("",!0)],64)}}}),cgt={h:"full",flex:"~ col"},ugt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},fgt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},hgt=tt("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),dgt=["op"],pgt={class:"scrolls","flex-auto":"","py-1":""},ggt={"text-red5":""},vgt={"text-yellow5":""},mgt={"text-green5":""},ygt={class:"text-purple5:50"},bgt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},wgt=tt("div",{op30:""}," No matched test ",-1),Sw=he({inheritAttrs:!1,__name:"TasksList",props:{tasks:{},indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{type:Function}},emits:["run"],setup(t,{emit:e}){const r=e,o=te(""),s=te(),u=xt(()=>o.value.trim()!==""),f=xt(()=>o.value.trim()?t.tasks.filter(L=>A([L],o.value)):t.tasks),h=xt(()=>u.value?f.value.map(L=>Sc(L.id)).filter(Boolean):[]),d=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="fail"})),g=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="pass"})),v=xt(()=>f.value.filter(L=>L.mode==="skip"||L.mode==="todo")),y=xt(()=>f.value.filter(L=>!d.value.includes(L)&&!g.value.includes(L)&&!v.value.includes(L))),w=xt(()=>o.value===""),_=Blt(y,250);function M(L){var T;o.value="",L&&((T=s.value)==null||T.focus())}function A(L,T){let E=!1;for(let O=0;O<L.length;O++){const $=L[O];if(_w($.name,T)){E=!0;break}if(sgt($)&&$.tasks&&(E=A($.tasks,T),E))break}return E}return(L,T)=>{const E=ys,O=agt,$=Qpt,F=yo("tooltip");return at(),St("div",cgt,[tt("div",null,[tt("div",ugt,[Gn(L.$slots,"header",{filteredTests:V(u)?V(h):void 0})]),tt("div",fgt,[hgt,on(tt("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":T[0]||(T[0]=H=>Ae(o)?o.value=H:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:V(o).length?"100":"50",onKeydown:[T[1]||(T[1]=jf(H=>M(!1),["esc"])),T[2]||(T[2]=jf(H=>r("run",V(u)?V(h):void 0),["enter"]))]},null,40,dgt),[[JS,V(o)]]),on(Ht(E,{disabled:V(w),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=H=>M(!0))},null,8,["disabled"]),[[F,"Clear search",void 0,{bottom:!0}]])])]),tt("div",pgt,[L.groupByType?(at(),St(ie,{key:0},[V(d).length?(at(),ne($,{key:0},{summary:re(()=>[tt("div",ggt," FAIL ("+jt(V(d).length)+") ",1)]),default:re(()=>[(at(!0),St(ie,null,Rn(V(d),H=>(at(),ne(O,{key:H.id,task:H,nested:L.nested,search:V(o),class:ge(V(Sr)===H.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Xt("",!0),V(y).length||V(Rl)==="running"?(at(),ne($,{key:1},{summary:re(()=>[tt("div",vgt," RUNNING ("+jt(V(_).length)+") ",1)]),default:re(()=>[(at(!0),St(ie,null,Rn(V(_),H=>(at(),ne(O,{key:H.id,task:H,nested:L.nested,search:V(o),class:ge(V(Sr)===H.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Xt("",!0),V(g).length?(at(),ne($,{key:2},{summary:re(()=>[tt("div",mgt," PASS ("+jt(V(g).length)+") ",1)]),default:re(()=>[(at(!0),St(ie,null,Rn(V(g),H=>(at(),ne(O,{key:H.id,task:H,nested:L.nested,search:V(o),class:ge(V(Sr)===H.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Xt("",!0),V(v).length?(at(),ne($,{key:3},{summary:re(()=>[tt("div",ygt," SKIP ("+jt(V(v).length)+") ",1)]),default:re(()=>[(at(!0),St(ie,null,Rn(V(v),H=>(at(),ne(O,{key:H.id,task:H,nested:L.nested,search:V(o),class:ge(V(Sr)===H.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Xt("",!0)],64)):(at(!0),St(ie,{key:1},Rn(V(f),H=>(at(),ne(O,{key:H.id,task:H,nested:L.nested,search:V(o),class:ge(V(Sr)===H.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),V(u)&&V(f).length===0?(at(),St("div",bgt,[wgt,tt("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=H=>M(!0))}," Clear ",32)])):Xt("",!0)])])}}}),ql=te(),ls=te(!0),vo=te(!1),$c=te(!0),Zo=xt(()=>{var t;return(t=rd.value)==null?void 0:t.coverage}),yh=xt(()=>{var t;return(t=Zo.value)==null?void 0:t.enabled}),Jo=xt(()=>yh.value&&Zo.value.reporter.map(([t])=>t).includes("html")),xgt=xt(()=>{if(Jo.value){const t=Zo.value.reportsDirectory.lastIndexOf("/"),e=Zo.value.reporter.find(r=>{if(r[0]==="html")return r});return e&&"subdir"in e[1]?`/${Zo.value.reportsDirectory.slice(t+1)}/${e[1].subdir}/index.html`:`/${Zo.value.reportsDirectory.slice(t+1)}/index.html`}});je(Rl,t=>{$c.value=t==="running"},{immediate:!0});function _gt(){const t=Sr.value;if(t&&t.length>0){const e=Sc(t);e?(ql.value=e,ls.value=!1,vo.value=!1):Vlt(()=>Oe.state.getFiles(),()=>{ql.value=Sc(t),ls.value=!1,vo.value=!1})}return ls}function Lf(t){ls.value=t,vo.value=!1,t&&(ql.value=void 0,Sr.value="")}function Sgt(){vo.value=!0,ls.value=!1,ql.value=void 0,Sr.value=""}const kgt={key:0,"h-full":""},Cgt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-1":""},Tgt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},Egt={class:"flex text-lg"},Lgt=he({__name:"Suites",setup(t){const e=xt(()=>{var u;return(u=Se.value)==null?void 0:u.name.split(/\//g).pop()}),r=xt(()=>{var u,f;return((u=Se.value)==null?void 0:u.tasks)&&Qc((f=Se.value)==null?void 0:f.tasks)});function o(){return Se.value&&Oe.rpc.updateSnapshot(Se.value)}async function s(){Jo.value&&($c.value=!0,await jr()),await Aat()}return(u,f)=>{const h=vd,d=ys,g=Sw,v=yo("tooltip");return V(Se)?(at(),St("div",kgt,[Ht(g,{tasks:V(Se).tasks,nested:!0},{header:re(()=>[Ht(h,{"mx-1":"",task:V(Se)},null,8,["task"]),V(Se).type==="suite"&&V(Se).meta.typecheck?(at(),St("div",Cgt)):Xt("",!0),tt("span",Tgt,jt(V(e)),1),tt("div",Egt,[V(r)&&!V(Kr)?on((at(),ne(d,{key:0,icon:"i-carbon-result-old",onClick:f[0]||(f[0]=y=>o())},null,512)),[[v,`Update failed snapshot(s) of ${V(Se).name}`,void 0,{bottom:!0}]]):Xt("",!0),V(Kr)?Xt("",!0):on((at(),ne(d,{key:1,icon:"i-carbon-play",onClick:f[1]||(f[1]=y=>s())},null,512)),[[v,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):Xt("",!0)}}}),Agt={h:"full",flex:"~ col"},Mgt=tt("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[tt("div",{class:"i-carbon:folder-details-reference"}),tt("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),Ngt={"flex-auto":"","py-1":"","bg-white":""},$gt=["src"],Pgt=he({__name:"Coverage",props:{src:{}},setup(t){return(e,r)=>(at(),St("div",Agt,[Mgt,tt("div",Ngt,[tt("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,$gt)])]))}}),Ogt={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Rgt={"font-bold":""},Dgt={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},zgt=["font-bold"],Igt={text:"red500/70"},Fgt=tt("br",null,null,-1),Hgt={key:1,text:"sm","mb-2":""},qgt={"font-bold":""},Bgt={key:2,text:"sm","mb-2":""},Wgt={"font-bold":""},Ugt=tt("br",null,null,-1),Vgt=tt("ul",null,[tt("li",null," The error was thrown, while Vitest was running this test. "),tt("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),Ggt={key:3,text:"sm","font-thin":""},jgt=tt("br",null,null,-1),Kgt=tt("ul",null,[tt("li",null," Cancel timeouts using clearTimeout and clearInterval. "),tt("li",null," Wait for promises to resolve using the await keyword. ")],-1),Xgt=he({__name:"ErrorEntry",props:{error:{}},setup(t){return(e,r)=>{var o;return at(),St(ie,null,[tt("h4",Ogt,[tt("span",Rgt,[me(jt(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(at(),St(ie,{key:0},[me(":")],64)):Xt("",!0)]),me(" "+jt(e.error.message),1)]),(o=e.error.stacks)!=null&&o.length?(at(),St("p",Dgt,[(at(!0),St(ie,null,Rn(e.error.stacks,(s,u)=>(at(),St("span",{"whitespace-pre":"","font-bold":u===0?"":null},[me("❯ "+jt(s.method)+" "+jt(s.file)+":",1),tt("span",Igt,jt(s.line)+":"+jt(s.column),1),Fgt],8,zgt))),256))])):Xt("",!0),e.error.VITEST_TEST_PATH?(at(),St("p",Hgt,[me(" This error originated in "),tt("span",qgt,jt(e.error.VITEST_TEST_PATH),1),me(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Xt("",!0),e.error.VITEST_TEST_NAME?(at(),St("p",Bgt,[me(" The latest test that might've caused the error is "),tt("span",Wgt,jt(e.error.VITEST_TEST_NAME),1),me(". It might mean one of the following:"),Ugt,Vgt])):Xt("",!0),e.error.VITEST_AFTER_ENV_TEARDOWN?(at(),St("p",Ggt,[me(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),jgt,Kgt])):Xt("",!0)],64)}}}),xn=t=>(g0("data-v-09d153f7"),t=t(),v0(),t),Ygt={"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:""},Zgt=xn(()=>tt("div",{"i-carbon-document":""},null,-1)),Jgt=xn(()=>tt("div",null,"Files",-1)),Qgt={class:"number","data-testid":"num-files"},tvt=xn(()=>tt("div",{"i-carbon-checkmark":""},null,-1)),evt=xn(()=>tt("div",null,"Pass",-1)),nvt={class:"number"},rvt=xn(()=>tt("div",{"i-carbon-close":""},null,-1)),ivt=xn(()=>tt("div",null," Fail ",-1)),ovt={class:"number","text-red5":""},svt=xn(()=>tt("div",{"i-carbon-compare":""},null,-1)),lvt=xn(()=>tt("div",null," Snapshot Fail ",-1)),avt={class:"number","text-red5":""},cvt=xn(()=>tt("div",{"i-carbon-checkmark-outline-error":""},null,-1)),uvt=xn(()=>tt("div",null," Errors ",-1)),fvt={class:"number","text-red5":""},hvt=xn(()=>tt("div",{"i-carbon-timer":""},null,-1)),dvt=xn(()=>tt("div",null,"Time",-1)),pvt={class:"number","data-testid":"run-time"},gvt={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},vvt=xn(()=>tt("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),mvt={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},yvt=xn(()=>tt("br",null,null,-1)),bvt={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},wvt=xn(()=>tt("summary",{"font-bold":"","cursor-pointer":""},"Errors",-1)),xvt=he({__name:"TestFilesEntry",setup(t){return(e,r)=>{const o=Xgt;return at(),St(ie,null,[tt("div",Ygt,[Zgt,Jgt,tt("div",Qgt,jt(V(bn).length),1),V(Cc).length?(at(),St(ie,{key:0},[tvt,evt,tt("div",nvt,jt(V(Cc).length),1)],64)):Xt("",!0),V(kc).length?(at(),St(ie,{key:1},[rvt,ivt,tt("div",ovt,jt(V(kc).length),1)],64)):Xt("",!0),V(lm).length?(at(),St(ie,{key:2},[svt,lvt,tt("div",avt,jt(V(lm).length),1)],64)):Xt("",!0),V(_i).length?(at(),St(ie,{key:3},[cvt,uvt,tt("div",fvt,jt(V(_i).length),1)],64)):Xt("",!0),hvt,dvt,tt("div",pvt,jt(V(Zat)),1)]),V(_i).length?(at(),St("div",gvt,[vvt,tt("p",mvt,[me(" Vitest caught "+jt(V(_i).length)+" error"+jt(V(_i).length>1?"s":"")+" during the test run.",1),yvt,me(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),tt("details",bvt,[wvt,(at(!0),St(ie,null,Rn(V(_i),s=>(at(),ne(o,{error:s},null,8,["error"]))),256))])])):Xt("",!0)],64)}}}),_vt=bo(xvt,[["__scopeId","data-v-09d153f7"]]),Svt={"p-2":"","text-center":"",flex:""},kvt={"text-4xl":"","min-w-2em":""},Cvt={"text-md":""},Tvt=he({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(e,r)=>(at(),St("div",Svt,[tt("div",null,[tt("div",kvt,[Gn(e.$slots,"body")]),tt("div",Cvt,[Gn(e.$slots,"header")])])]))}}),Evt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Lvt=he({__name:"TestsEntry",setup(t){const e=xt(()=>nu.value.length),r=xt(()=>Ob.value.length),o=xt(()=>Pb.value.length),s=xt(()=>Xat.value.length),u=xt(()=>Yat.value.length);return(f,h)=>{const d=Tvt;return at(),St("div",Evt,[Ht(d,{"text-green5":"","data-testid":"pass-entry"},{header:re(()=>[me(" Pass ")]),body:re(()=>[me(jt(V(r)),1)]),_:1}),Ht(d,{class:ge({"text-red5":V(o),op50:!V(o)}),"data-testid":"fail-entry"},{header:re(()=>[me(" Fail ")]),body:re(()=>[me(jt(V(o)),1)]),_:1},8,["class"]),V(s)?(at(),ne(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:re(()=>[me(" Skip ")]),body:re(()=>[me(jt(V(s)),1)]),_:1})):Xt("",!0),V(u)?(at(),ne(d,{key:1,op50:"","data-testid":"todo-entry"},{header:re(()=>[me(" Todo ")]),body:re(()=>[me(jt(V(u)),1)]),_:1})):Xt("",!0),Ht(d,{tail:!0,"data-testid":"total-entry"},{header:re(()=>[me(" Total ")]),body:re(()=>[me(jt(V(e)),1)]),_:1})])}}}),Avt={},Mvt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Nvt={"aria-labelledby":"tests",m:"y-4 x-2"};function $vt(t,e){const r=Lvt,o=_vt;return at(),St("div",Mvt,[tt("section",Nvt,[Ht(r)]),Ht(o)])}const Pvt=bo(Avt,[["render",$vt]]),Ovt={},Rvt={h:"full",flex:"~ col"},Dvt=tt("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[tt("div",{class:"i-carbon-dashboard"}),tt("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),zvt={class:"scrolls","flex-auto":"","py-1":""};function Ivt(t,e){const r=Pvt;return at(),St("div",Rvt,[Dvt,tt("div",zvt,[Ht(r)])])}const Fvt=bo(Ovt,[["render",Ivt]]),Hvt=""+new URL("../favicon.svg",import.meta.url).href,qvt=tt("img",{"w-6":"","h-6":"",src:Hvt,alt:"Vitest logo"},null,-1),Bvt=tt("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Wvt={class:"flex text-lg"},Uvt=tt("div",{class:"i-carbon:folder-off ma"},null,-1),Vvt=tt("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[tt("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),tt("div",null,"Coverage enabled but missing html reporter."),tt("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Gvt=he({__name:"Navigation",setup(t){const e=xt(()=>bn.value&&Qc(bn.value));function r(){return Oe.rpc.updateSnapshot()}const o=xt(()=>Kl.value?"light":"dark");function s(f){Sr.value=f.id,ql.value=Sc(f.id),Lf(!1)}async function u(f){Jo.value&&($c.value=!0,await jr(),vo.value&&(Lf(!0),await jr())),await Lat(f)}return(f,h)=>{const d=ys,g=Sw,v=yo("tooltip");return at(),ne(g,{border:"r base",tasks:V(bn),"on-item-click":s,"group-by-type":!0,onRun:u},{header:re(({filteredTests:y})=>[qvt,Bvt,tt("div",Wvt,[on(Ht(d,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=w=>V(Lf)(!0))},null,512),[[Gf,V(yh)&&!V(Jo)||!V(ls)],[v,"Dashboard",void 0,{bottom:!0}]]),V(yh)&&!V(Jo)?(at(),ne(V(aT),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:re(()=>[Vvt]),default:re(()=>[Uvt]),_:1})):Xt("",!0),V(Jo)?on((at(),ne(d,{key:1,disabled:V($c),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=w=>V(Sgt)())},null,8,["disabled"])),[[Gf,!V(vo)],[v,"Coverage",void 0,{bottom:!0}]]):Xt("",!0),V(e)&&!V(Kr)?on((at(),ne(d,{key:2,icon:"i-carbon:result-old",onClick:h[2]||(h[2]=w=>r())},null,512)),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Xt("",!0),V(Kr)?Xt("",!0):on((at(),ne(d,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:w=>u(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),on(Ht(d,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=w=>V(Pat)())},null,512),[[v,`Toggle to ${V(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),jvt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Kvt=he({__name:"ProgressBar",setup(t){const{width:e}=iat(),r=xt(()=>bn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Kat.value?null:"in-progress"),o=xt(()=>bn.value.length),s=xt(()=>Cc.value.length),u=xt(()=>kc.value.length),f=xt(()=>{const v=V(o);return v>0?e.value*s.value/v:0}),h=xt(()=>{const v=V(o);return v>0?e.value*u.value/v:0}),d=xt(()=>V(o)-u.value-s.value),g=xt(()=>{const v=V(o);return v>0?e.value*d.value/v:0});return(v,y)=>(at(),St("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:ge(V(r))},[tt("div",jvt,[tt("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ge(V(r)),style:An(`width: ${V(h)}px;`)}," ",6),tt("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ge(V(r)),style:An(`left: ${V(h)}px; width: ${V(f)}px;`)}," ",6),tt("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ge(V(r)),style:An(`left: ${V(f)+V(h)}px; width: ${V(g)}px;`)}," ",6)])],2))}}),Xvt=bo(Kvt,[["__scopeId","data-v-f967c1fe"]]),Om={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((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.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(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===e?o.max:o.min,s!==e&&(r+=o.min),o)),this.panes[e].size-=r,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-e.left,y:o-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),s),o);let f=[e,e+1],h=this.panes[f[0]]||null,d=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,v=d.max<100&&u<=100-(d.max+this.sumNextPanesSize(e+1));if(g||v){g?(h.size=h.max,d.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-d.max-r.prevPanesSize-this.sumNextPanesSize(e+1),0),d.size=d.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,u);if(!y)return;({sums:r,panesToResize:f}=y),h=this.panes[f[0]]||null,d=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,o=[r,r+1];return e<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,u)=>{u>o[0]&&u<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,u)=>{u>0&&u<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,u)=>{u>r&&u<o[1]&&(s.size=s.min,t.nextReachedMinPanes+=s.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,u)=>{u<this.panesCount-1&&u>=r+1&&(s.size=s.min,t.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((e,r,o)=>e+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((e,r,o)=>e+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.index<t&&e.size>e.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!e&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,e,r=!1){const o=t-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=u=>this.onMouseDown(u,o)),s.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(s.ondblclick=u=>this.onSplitterDblClick(u,o+1)),e.parentNode.insertBefore(s,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let e=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,r,!0):e&&this.addSplitter(e,r),e++)})},requestUpdate({target:t,...e}){const r=this.indexedPanes[t._.uid];Object.entries(e).forEach(([o,s])=>r[o]=s)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&e++,s===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((s,u)=>s.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:e}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(t,s.max),s.min),e-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),e>.1&&this.readjustSizes(e,r,o)},initialPanesSizing(){let t=100;const e=[],r=[];let o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&e.push(u.id),u.size<=u.min&&r.push(u.id)});let s=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),s-=u.size}),s>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const s=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,s,u))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((s,u)=>{if(t>0&&!e.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(t)>.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(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,r)=>{e.ondblclick=t?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Vl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Yvt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},Zvt={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(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function Jvt(t,e,r,o,s,u){return at(),St("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>u.onPaneClick(f,t._.uid)),style:An(t.style)},[Gn(t.$slots,"default")],4)}const Xa=Yvt(Zvt,[["render",Jvt]]),Qvt={"h-screen":"","w-screen":"",overflow:"hidden"},tmt=he({__name:"index",setup(t){const e=_gt(),r=sm("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),o=sm("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),s=im(h=>{h.forEach((d,g)=>{r.value[g]=d.size})},0),u=im(h=>{h.forEach((d,g)=>{o.value[g]=d.size})},0);function f(){const h=window.innerWidth,d=Math.min(h/3,300);r.value[0]=100*d/h,r.value[1]=100-r.value[0],o.value[0]=100*d/(h-d),o.value[1]=100-o.value[0]}return(h,d)=>{const g=Xvt,v=Gvt,y=Fvt,w=Pgt,_=Lgt,M=Xpt,A=$at;return at(),St(ie,null,[Ht(g),tt("div",Qvt,[Ht(V(Om),{class:"pt-4px",onResized:V(s),onReady:f},{default:re(()=>[Ht(V(Xa),{size:V(r)[0]},{default:re(()=>[Ht(v)]),_:1},8,["size"]),Ht(V(Xa),{size:V(r)[1]},{default:re(()=>[Ht(qh,null,{default:re(()=>[V(e)?(at(),ne(y,{key:"summary"})):V(vo)?(at(),ne(w,{key:"coverage",src:V(xgt)},null,8,["src"])):(at(),ne(V(Om),{key:"detail",onResized:V(u)},{default:re(()=>[Ht(V(Xa),{size:V(o)[0]},{default:re(()=>[Ht(_)]),_:1},8,["size"]),Ht(V(Xa),{size:V(o)[1]},{default:re(()=>[Ht(M)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Ht(A)],64)}}}),emt=[{name:"index",path:"/",component:tmt,props:!0}],nmt={tooltip:lT};Py.options.instantMove=!0;Py.options.distance=10;function rmt(){return cC({history:Ik(),routes:emt})}const imt=[rmt],md=K0(sk);imt.forEach(t=>{md.use(t())});Object.entries(nmt).forEach(([t,e])=>{md.directive(t,e)});md.mount("#app");
|