@vitest/browser 3.1.1 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/index-Cv3XDLXs.js +52 -0
- package/dist/client/__vitest__/assets/{index-B0KEk_KY.css → index-D6BhetW8.css} +1 -1
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/orchestrator-CuTjqoE1.js +287 -0
- package/dist/client/__vitest_browser__/{tester-DiLSqOx4.js → tester-D8qCxA_3.js} +3172 -3084
- package/dist/client/__vitest_browser__/{utils-CNTxSNQV.js → utils-Owv5OOOf.js} +2 -2
- package/dist/client/error-catcher.js +1 -14
- package/dist/client/esm-client-injector.js +0 -1
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/client.js +63 -23
- package/dist/context.js +4 -4
- package/dist/expect-element.js +1 -1
- package/dist/index-C3ICQ6zz.js +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +364 -244
- package/dist/locators/index.js +1 -1
- package/dist/locators/playwright.js +1 -1
- package/dist/locators/preview.js +1 -1
- package/dist/locators/webdriverio.js +1 -1
- package/dist/providers.js +2 -1
- package/dist/{public-utils-xf4CCUzp.js → public-utils-DUr23h1p.js} +2 -2
- package/dist/state.js +2 -67
- package/dist/utils.js +1 -1
- package/dist/{webdriver-2iYWIzBv.js → webdriver-BH7t2pDp.js} +63 -9
- package/package.json +16 -16
- package/dist/client/__vitest__/assets/index-BLZJq7cG.js +0 -52
- package/dist/client/__vitest_browser__/orchestrator-CqPXjvQE.js +0 -241
- package/dist/index-DjDyxzt8.js +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var W_=Object.defineProperty;var q_=(e,t,r)=>t in e?W_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ds=(e,t,r)=>q_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
+
* @vue/shared v3.5.12
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function dh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},xs=[],qr=()=>{},U_=()=>!1,du=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hh=e=>e.startsWith("onUpdate:"),nn=Object.assign,ph=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},j_=Object.prototype.hasOwnProperty,wt=(e,t)=>j_.call(e,t),He=Array.isArray,_s=e=>ha(e)==="[object Map]",hu=e=>ha(e)==="[object Set]",lv=e=>ha(e)==="[object Date]",Ve=e=>typeof e=="function",It=e=>typeof e=="string",Er=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",B0=e=>(St(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),W0=Object.prototype.toString,ha=e=>W0.call(e),V_=e=>ha(e).slice(8,-1),q0=e=>ha(e)==="[object Object]",gh=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=dh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},G_=/-(\w)/g,nr=pu(e=>e.replace(G_,(t,r)=>r?r.toUpperCase():"")),K_=/\B([A-Z])/g,vi=pu(e=>e.replace(K_,"-$1").toLowerCase()),gu=pu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tc=pu(e=>e?`on${gu(e)}`:""),Un=(e,t)=>!Object.is(e,t),Cc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},U0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},vd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j0=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let av;const vu=()=>av||(av=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function en(e){if(He(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=It(o)?J_(o):en(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(It(e)||St(e))return e}const X_=/;(?![^(]*\))/g,Y_=/:([^]+)/,Z_=/\/\*[^]*?\*\//g;function J_(e){const t={};return e.replace(Z_,"").split(X_).forEach(r=>{if(r){const o=r.split(Y_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(It(e))t=e;else if(He(e))for(let r=0;r<e.length;r++){const o=it(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function Q_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!It(t)&&(e.class=it(t)),r&&(e.style=en(r)),e}const eS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tS=dh(eS);function V0(e){return!!e||e===""}function nS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=mu(e[o],t[o]);return r}function mu(e,t){if(e===t)return!0;let r=lv(e),o=lv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Er(e),o=Er(t),r||o)return e===t;if(r=He(e),o=He(t),r||o)return r&&o?nS(e,t):!1;if(r=St(e),o=St(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!mu(e[f],t[f]))return!1}}return String(e)===String(t)}function G0(e,t){return e.findIndex(r=>mu(r,t))}const K0=e=>!!(e&&e.__v_isRef===!0),Be=e=>It(e)?e:e==null?"":He(e)||St(e)&&(e.toString===W0||!Ve(e.toString))?K0(e)?Be(e.value):JSON.stringify(e,X0,2):String(e),X0=(e,t)=>K0(t)?X0(e,t.value):_s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Hf(o,c)+" =>"]=s,r),{})}:hu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Hf(r))}:Er(t)?Hf(t):St(t)&&!He(t)&&!q0(t)?String(t):t,Hf=(e,t="")=>{var r;return Er(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.12
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let An;class rS{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=An,!t&&An&&(this.index=(An.scopes||(An.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=An;try{return An=this,t()}finally{An=r}}}on(){An=this}off(){An=this.parent}stop(t){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&&!t){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 Y0(){return An}function iS(e,t=!1){An&&An.cleanups.push(e)}let kt;const Bf=new WeakSet;class Z0{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,An&&An.active&&An.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Bf.has(this)&&(Bf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Q0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cv(this),ey(this);const t=kt,r=kr;kt=this,kr=!0;try{return this.fn()}finally{ty(this),kt=t,kr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)yh(t);this.deps=this.depsTail=void 0,cv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Bf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){md(this)&&this.run()}get dirty(){return md(this)}}let J0=0,Nl,$l;function Q0(e,t=!1){if(e.flags|=8,t){e.next=$l,$l=e;return}e.next=Nl,Nl=e}function vh(){J0++}function mh(){if(--J0>0)return;if($l){let t=$l;for($l=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Nl;){let t=Nl;for(Nl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function ey(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ty(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),yh(o),oS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function md(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ny(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ny(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ql))return;e.globalVersion=ql;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!md(e)){e.flags&=-3;return}const r=kt,o=kr;kt=e,kr=!0;try{ey(e);const s=e.fn(e._value);(t.version===0||Un(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,kr=o,ty(e),e.flags&=-3}}function yh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)yh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function oS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let kr=!0;const ry=[];function io(){ry.push(kr),kr=!1}function oo(){const e=ry.pop();kr=e===void 0?!0:e}function cv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let ql=0;class sS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!kt||!kr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new sS(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,iy(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,ql++,this.notify(t)}notify(t){vh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{mh()}}}function iy(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)iy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const zc=new WeakMap,Lo=Symbol(""),yd=Symbol(""),Ul=Symbol("");function gn(e,t,r){if(kr&&kt){let o=zc.get(e);o||zc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new yu),s.map=o,s.key=r),s.track()}}function ci(e,t,r,o,s,c){const f=zc.get(e);if(!f){ql++;return}const d=h=>{h&&h.trigger()};if(vh(),t==="clear")f.forEach(d);else{const h=He(e),p=h&&gh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Ul||!Er(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Ul)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Lo)),_s(e)&&d(f.get(yd)));break;case"delete":h||(d(f.get(Lo)),_s(e)&&d(f.get(yd)));break;case"set":_s(e)&&d(f.get(Lo));break}}mh()}function lS(e,t){const r=zc.get(e);return r&&r.get(t)}function hs(e){const t=ht(e);return t===e?t:(gn(t,"iterate",Ul),ar(e)?t:t.map(vn))}function bu(e){return gn(e=ht(e),"iterate",Ul),e}const aS={__proto__:null,[Symbol.iterator](){return Wf(this,Symbol.iterator,vn)},concat(...e){return hs(this).concat(...e.map(t=>He(t)?hs(t):t))},entries(){return Wf(this,"entries",e=>(e[1]=vn(e[1]),e))},every(e,t){return ii(this,"every",e,t,void 0,arguments)},filter(e,t){return ii(this,"filter",e,t,r=>r.map(vn),arguments)},find(e,t){return ii(this,"find",e,t,vn,arguments)},findIndex(e,t){return ii(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ii(this,"findLast",e,t,vn,arguments)},findLastIndex(e,t){return ii(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ii(this,"forEach",e,t,void 0,arguments)},includes(...e){return qf(this,"includes",e)},indexOf(...e){return qf(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return qf(this,"lastIndexOf",e)},map(e,t){return ii(this,"map",e,t,void 0,arguments)},pop(){return wl(this,"pop")},push(...e){return wl(this,"push",e)},reduce(e,...t){return uv(this,"reduce",e,t)},reduceRight(e,...t){return uv(this,"reduceRight",e,t)},shift(){return wl(this,"shift")},some(e,t){return ii(this,"some",e,t,void 0,arguments)},splice(...e){return wl(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return wl(this,"unshift",e)},values(){return Wf(this,"values",vn)}};function Wf(e,t,r){const o=bu(e),s=o[t]();return o!==e&&!ar(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const cS=Array.prototype;function ii(e,t,r,o,s,c){const f=bu(e),d=f!==e&&!ar(e),h=f[t];if(h!==cS[t]){const m=h.apply(e,c);return d?vn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,vn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function uv(e,t,r,o){const s=bu(e);let c=r;return s!==e&&(ar(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,vn(d),h,e)}),s[t](c,...o)}function qf(e,t,r){const o=ht(e);gn(o,"iterate",Ul);const s=o[t](...r);return(s===-1||s===!1)&&_h(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function wl(e,t,r=[]){io(),vh();const o=ht(e)[t].apply(e,r);return mh(),oo(),o}const uS=dh("__proto__,__v_isRef,__isVue"),oy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Er));function fS(e){Er(e)||(e=String(e));const t=ht(this);return gn(t,"has",e),t.hasOwnProperty(e)}class sy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?xS:uy:c?cy:ay).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=He(t);if(!s){let h;if(f&&(h=aS[r]))return h;if(r==="hasOwnProperty")return fS}const d=Reflect.get(t,r,Ct(t)?t:o);return(Er(r)?oy.has(r):uS(r))||(s||gn(t,"get",r),c)?d:Ct(d)?f&&gh(r)?d:d.value:St(d)?s?pa(d):tr(d):d}}class ly extends sy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=Oo(c);if(!ar(o)&&!Oo(o)&&(c=ht(c),o=ht(o)),!He(t)&&Ct(c)&&!Ct(o))return h?!1:(c.value=o,!0)}const f=He(t)&&gh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Ct(t)?t:s);return t===ht(s)&&(f?Un(o,c)&&ci(t,"set",r,o):ci(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ci(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Er(r)||!oy.has(r))&&gn(t,"has",r),o}ownKeys(t){return gn(t,"iterate",He(t)?"length":Lo),Reflect.ownKeys(t)}}class dS extends sy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const hS=new ly,pS=new dS,gS=new ly(!0);const bd=e=>e,ac=e=>Reflect.getPrototypeOf(e);function vS(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=_s(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?bd:t?wd:vn;return!t&&gn(c,"iterate",h?yd:Lo),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mS(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(Un(s,d)&&gn(f,"get",s),gn(f,"get",d));const{has:h}=ac(f),p=t?bd:e?wd:vn;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&gn(ht(s),"iterate",Lo),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(Un(s,d)&&gn(f,"has",s),gn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=ht(d),p=t?bd:e?wd:vn;return!e&&gn(h,"iterate",Lo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return nn(r,e?{add:cc("add"),set:cc("set"),delete:cc("delete"),clear:cc("clear")}:{add(s){!t&&!ar(s)&&!Oo(s)&&(s=ht(s));const c=ht(this);return ac(c).has.call(c,s)||(c.add(s),ci(c,"add",s,s)),this},set(s,c){!t&&!ar(c)&&!Oo(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=ac(f);let p=d.call(f,s);p||(s=ht(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Un(c,v)&&ci(f,"set",s,c):ci(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=ac(c);let h=f.call(c,s);h||(s=ht(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&ci(c,"delete",s,void 0),p},clear(){const s=ht(this),c=s.size!==0,f=s.clear();return c&&ci(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=vS(s,e,t)}),r}function bh(e,t){const r=mS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const yS={get:bh(!1,!1)},bS={get:bh(!1,!0)},wS={get:bh(!0,!1)};const ay=new WeakMap,cy=new WeakMap,uy=new WeakMap,xS=new WeakMap;function _S(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function SS(e){return e.__v_skip||!Object.isExtensible(e)?0:_S(V_(e))}function tr(e){return Oo(e)?e:xh(e,!1,hS,yS,ay)}function wh(e){return xh(e,!1,gS,bS,cy)}function pa(e){return xh(e,!0,pS,wS,uy)}function xh(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=SS(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function Ss(e){return Oo(e)?Ss(e.__v_raw):!!(e&&e.__v_isReactive)}function Oo(e){return!!(e&&e.__v_isReadonly)}function ar(e){return!!(e&&e.__v_isShallow)}function _h(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function Sh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&U0(e,"__v_skip",!0),e}const vn=e=>St(e)?tr(e):e,wd=e=>St(e)?pa(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function Ue(e){return fy(e,!1)}function tn(e){return fy(e,!0)}function fy(e,t){return Ct(e)?e:new kS(e,t)}class kS{constructor(t,r){this.dep=new yu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:vn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||ar(t)||Oo(t);t=o?t:ht(t),Un(t,r)&&(this._rawValue=t,this._value=o?t:vn(t),this.dep.trigger())}}function U(e){return Ct(e)?e.value:e}function Ut(e){return Ve(e)?e():U(e)}const TS={get:(e,t,r)=>t==="__v_raw"?e:U(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ct(s)&&!Ct(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function dy(e){return Ss(e)?e:new Proxy(e,TS)}class CS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new yu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function hy(e){return new CS(e)}function ES(e){const t=He(e)?new Array(e.length):{};for(const r in e)t[r]=py(e,r);return t}class AS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return lS(ht(this._object),this._key)}}class LS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ga(e,t,r){return Ct(e)?e:Ve(e)?new LS(e):St(e)&&arguments.length>1?py(e,t,r):Ue(e)}function py(e,t,r){const o=e[t];return Ct(o)?o:new AS(e,t,r)}class MS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new yu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ql-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return Q0(this,!0),!0}get value(){const t=this.dep.track();return ny(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function NS(e,t,r=!1){let o,s;return Ve(e)?o=e:(o=e.get,s=e.set),new MS(o,s,r)}const uc={},Fc=new WeakMap;let ko;function $S(e,t=!1,r=ko){if(r){let o=Fc.get(r);o||Fc.set(r,o=[]),o.push(e)}}function OS(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=M=>s?M:ar(M)||s===!1||s===0?ui(M,1):ui(M);let v,m,b,w,E=!1,N=!1;if(Ct(e)?(m=()=>e.value,E=ar(e)):Ss(e)?(m=()=>p(e),E=!0):He(e)?(N=!0,E=e.some(M=>Ss(M)||ar(M)),m=()=>e.map(M=>{if(Ct(M))return M.value;if(Ss(M))return p(M);if(Ve(M))return h?h(M,2):M()})):Ve(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){io();try{b()}finally{oo()}}const M=ko;ko=v;try{return h?h(e,3,[w]):e(w)}finally{ko=M}}:m=qr,t&&s){const M=m,B=s===!0?1/0:s;m=()=>ui(M(),B)}const T=Y0(),L=()=>{v.stop(),T&&ph(T.effects,v)};if(c&&t){const M=t;t=(...B)=>{M(...B),L()}}let A=N?new Array(e.length).fill(uc):uc;const R=M=>{if(!(!(v.flags&1)||!v.dirty&&!M))if(t){const B=v.run();if(s||E||(N?B.some((V,G)=>Un(V,A[G])):Un(B,A))){b&&b();const V=ko;ko=v;try{const G=[B,A===uc?void 0:N&&A[0]===uc?[]:A,w];h?h(t,3,G):t(...G),A=B}finally{ko=V}}}else v.run()};return d&&d(R),v=new Z0(m),v.scheduler=f?()=>f(R,!1):R,w=M=>$S(M,!1,v),b=v.onStop=()=>{const M=Fc.get(v);if(M){if(h)h(M,4);else for(const B of M)B();Fc.delete(v)}},t?o?R(!0):A=v.run():f?f(R.bind(null,!0),!0):v.run(),L.pause=v.pause.bind(v),L.resume=v.resume.bind(v),L.stop=L,L}function ui(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Ct(e))ui(e.value,t,r);else if(He(e))for(let o=0;o<e.length;o++)ui(e[o],t,r);else if(hu(e)||_s(e))e.forEach(o=>{ui(o,t,r)});else if(q0(e)){for(const o in e)ui(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&ui(e[o],t,r)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.12
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function va(e,t,r,o){try{return o?e(...o):e()}catch(s){ma(s,t,r)}}function Ar(e,t,r,o){if(Ve(e)){const s=va(e,t,r,o);return s&&B0(s)&&s.catch(c=>{ma(c,t,r)}),s}if(He(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Ar(e[c],t,r,o));return s}}function ma(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){io(),va(c,null,10,[e,h,p]),oo();return}}RS(e,r,s,o,f)}function RS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Mn=[];let Br=-1;const ks=[];let Fi=null,gs=0;const gy=Promise.resolve();let Hc=null;function Tt(e){const t=Hc||gy;return e?t.then(this?e.bind(this):e):t}function PS(e){let t=Br+1,r=Mn.length;for(;t<r;){const o=t+r>>>1,s=Mn[o],c=jl(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function kh(e){if(!(e.flags&1)){const t=jl(e),r=Mn[Mn.length-1];!r||!(e.flags&2)&&t>=jl(r)?Mn.push(e):Mn.splice(PS(t),0,e),e.flags|=1,vy()}}function vy(){Hc||(Hc=gy.then(yy))}function xd(e){He(e)?ks.push(...e):Fi&&e.id===-1?Fi.splice(gs+1,0,e):e.flags&1||(ks.push(e),e.flags|=1),vy()}function fv(e,t,r=Br+1){for(;r<Mn.length;r++){const o=Mn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Mn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function my(e){if(ks.length){const t=[...new Set(ks)].sort((r,o)=>jl(r)-jl(o));if(ks.length=0,Fi){Fi.push(...t);return}for(Fi=t,gs=0;gs<Fi.length;gs++){const r=Fi[gs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Fi=null,gs=0}}const jl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yy(e){try{for(Br=0;Br<Mn.length;Br++){const t=Mn[Br];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),va(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Br<Mn.length;Br++){const t=Mn[Br];t&&(t.flags&=-2)}Br=-1,Mn.length=0,my(),Hc=null,(Mn.length||ks.length)&&yy()}}let Qt=null,wu=null;function Bc(e){const t=Qt;return Qt=e,wu=e&&e.type.__scopeId||null,t}function by(e){wu=e}function wy(){wu=null}const xy=e=>rt;function rt(e,t=Qt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Uc(-1);const c=Bc(t);let f;try{f=e(...s)}finally{Bc(c),o._d&&Uc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function gt(e,t){if(Qt===null)return e;const r=Au(Qt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(Ve(c)&&(c={mounted:c,updated:c}),c.deep&&ui(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function bo(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(io(),Ar(h,r,8,[e.el,d,e,t]),oo())}}const IS=Symbol("_vte"),_y=e=>e.__isTeleport,Hi=Symbol("_leaveCb"),fc=Symbol("_enterCb");function DS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return so(()=>{e.isMounted=!0}),ya(()=>{e.isUnmounting=!0}),e}const sr=[Function,Array],Sy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sr,onEnter:sr,onAfterEnter:sr,onEnterCancelled:sr,onBeforeLeave:sr,onLeave:sr,onAfterLeave:sr,onLeaveCancelled:sr,onBeforeAppear:sr,onAppear:sr,onAfterAppear:sr,onAppearCancelled:sr},ky=e=>{const t=e.subTree;return t.component?ky(t.component):t},zS={name:"BaseTransition",props:Sy,setup(e,{slots:t}){const r=Do(),o=DS();return()=>{const s=t.default&&Ey(t.default(),!0);if(!s||!s.length)return;const c=Ty(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return Uf(c);const h=dv(c);if(!h)return Uf(c);let p=_d(h,f,o,r,b=>p=b);h.type!==fn&&Vl(h,p);const v=r.subTree,m=v&&dv(v);if(m&&m.type!==fn&&!Wr(h,m)&&ky(r).type!==fn){const b=_d(m,f,o,r);if(Vl(m,b),d==="out-in"&&h.type!==fn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete b.afterLeave},Uf(c);d==="in-out"&&h.type!==fn&&(b.delayLeave=(w,E,N)=>{const T=Cy(o,m);T[String(m.key)]=m,w[Hi]=()=>{E(),w[Hi]=void 0,delete p.delayedLeave},p.delayedLeave=N})}return c}}};function Ty(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==fn){t=r;break}}return t}const FS=zS;function Cy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function _d(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:E,onLeaveCancelled:N,onBeforeAppear:T,onAppear:L,onAfterAppear:A,onAppearCancelled:R}=t,M=String(e.key),B=Cy(r,e),V=(ne,K)=>{ne&&Ar(ne,o,9,K)},G=(ne,K)=>{const re=K[1];V(ne,K),He(ne)?ne.every($=>$.length<=1)&&re():ne.length<=1&&re()},ee={mode:f,persisted:d,beforeEnter(ne){let K=h;if(!r.isMounted)if(c)K=T||h;else return;ne[Hi]&&ne[Hi](!0);const re=B[M];re&&Wr(e,re)&&re.el[Hi]&&re.el[Hi](),V(K,[ne])},enter(ne){let K=p,re=v,$=m;if(!r.isMounted)if(c)K=L||p,re=A||v,$=R||m;else return;let P=!1;const O=ne[fc]=S=>{P||(P=!0,S?V($,[ne]):V(re,[ne]),ee.delayedLeave&&ee.delayedLeave(),ne[fc]=void 0)};K?G(K,[ne,O]):O()},leave(ne,K){const re=String(e.key);if(ne[fc]&&ne[fc](!0),r.isUnmounting)return K();V(b,[ne]);let $=!1;const P=ne[Hi]=O=>{$||($=!0,K(),O?V(N,[ne]):V(E,[ne]),ne[Hi]=void 0,B[re]===e&&delete B[re])};B[re]=e,w?G(w,[ne,P]):P()},clone(ne){const K=_d(ne,t,r,o,s);return s&&s(K),K}};return ee}function Uf(e){if(xu(e))return e=Zi(e),e.children=null,e}function dv(e){if(!xu(e))return _y(e.type)&&e.children?Ty(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ve(r.default))return r.default()}}function Vl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Vl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ey(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ct?(f.patchFlag&128&&s++,o=o.concat(Ey(f.children,t,d))):(t||f.type!==fn)&&o.push(d!=null?Zi(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return Ve(e)?nn({name:e.name},t,{setup:e}):e}function Ay(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sd(e,t,r,o,s=!1){if(He(e)){e.forEach((E,N)=>Sd(E,t&&(He(t)?t[N]:t),r,o,s));return}if(Ts(o)&&!s)return;const c=o.shapeFlag&4?Au(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===vt?d.refs={}:d.refs,m=d.setupState,b=ht(m),w=m===vt?()=>!1:E=>wt(b,E);if(p!=null&&p!==h&&(It(p)?(v[p]=null,w(p)&&(m[p]=null)):Ct(p)&&(p.value=null)),Ve(h))va(h,d,12,[f,v]);else{const E=It(h),N=Ct(h);if(E||N){const T=()=>{if(e.f){const L=E?w(h)?m[h]:v[h]:h.value;s?He(L)&&ph(L,c):He(L)?L.includes(c)||L.push(c):E?(v[h]=[c],w(h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else E?(v[h]=f,w(h)&&(m[h]=f)):N&&(h.value=f,e.k&&(v[e.k]=f))};f?(T.id=-1,Jn(T,r)):T()}}}vu().requestIdleCallback;vu().cancelIdleCallback;const Ts=e=>!!e.type.__asyncLoader,xu=e=>e.type.__isKeepAlive;function HS(e,t){Ly(e,"a",t)}function BS(e,t){Ly(e,"da",t)}function Ly(e,t,r=on){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(_u(t,o,r),r){let s=r.parent;for(;s&&s.parent;)xu(s.parent.vnode)&&WS(o,t,r,s),s=s.parent}}function WS(e,t,r,o){const s=_u(t,e,o,!0);Su(()=>{ph(o[t],s)},r)}function _u(e,t,r=on,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{io();const d=ba(r),h=Ar(t,r,e,f);return d(),oo(),h});return o?s.unshift(c):s.push(c),c}}const mi=e=>(t,r=on)=>{(!Xl||e==="sp")&&_u(e,(...o)=>t(...o),r)},qS=mi("bm"),so=mi("m"),US=mi("bu"),jS=mi("u"),ya=mi("bum"),Su=mi("um"),VS=mi("sp"),GS=mi("rtg"),KS=mi("rtc");function XS(e,t=on){_u("ec",e,t)}const Th="components",YS="directives";function Ro(e,t){return Ch(Th,e,!0,t)||e}const My=Symbol.for("v-ndc");function kd(e){return It(e)?Ch(Th,e,!1)||e:e||My}function Kr(e){return Ch(YS,e)}function Ch(e,t,r=!0,o=!1){const s=Qt||on;if(s){const c=s.type;if(e===Th){const d=Wk(c,!1);if(d&&(d===t||d===nr(t)||d===gu(nr(t))))return c}const f=hv(s[e]||c[e],t)||hv(s.appContext[e],t);return!f&&o?c:f}}function hv(e,t){return e&&(e[t]||e[nr(t)]||e[gu(nr(t))])}function hi(e,t,r,o){let s;const c=r,f=He(e);if(f||It(e)){const d=f&&Ss(e);let h=!1;d&&(h=!ar(e),e=bu(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?vn(e[p]):e[p],p,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(St(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function ZS(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(He(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function yn(e,t,r={},o,s){if(Qt.ce||Qt.parent&&Ts(Qt.parent)&&Qt.parent.ce)return t!=="default"&&(r.name=t),ce(),nt(ct,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),ce();const f=c&&Ny(c(r)),d=r.key||f&&f.key,h=nt(ct,{key:(d&&!Er(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function Ny(e){return e.some(t=>Ps(t)?!(t.type===fn||t.type===ct&&!Ny(t.children)):!0)?e:null}function JS(e,t){const r={};for(const o in e)r[Tc(o)]=e[o];return r}const Td=e=>e?ib(e)?Au(e):Td(e.parent):null,Ol=nn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Td(e.parent),$root:e=>Td(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ry(e),$forceUpdate:e=>e.f||(e.f=()=>{kh(e.update)}),$nextTick:e=>e.n||(e.n=Tt.bind(e.proxy)),$watch:e=>_k.bind(e)}),jf=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),QS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(jf(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Cd&&(f[t]=0)}}const v=Ol[t];let m,b;if(v)return t==="$attrs"&&gn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return jf(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==vt&&wt(e,f)||jf(t,f)||(d=c[0])&&wt(d,f)||wt(o,f)||wt(Ol,f)||wt(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function ek(){return $y().slots}function tk(){return $y().attrs}function $y(){const e=Do();return e.setupContext||(e.setupContext=sb(e))}function Wc(e){return He(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Gl(e,t){return!e||!t?e||t:He(e)&&He(t)?e.concat(t):nn({},Wc(e),Wc(t))}let Cd=!0;function nk(e){const t=Ry(e),r=e.proxy,o=e.ctx;Cd=!1,t.beforeCreate&&pv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:E,activated:N,deactivated:T,beforeDestroy:L,beforeUnmount:A,destroyed:R,unmounted:M,render:B,renderTracked:V,renderTriggered:G,errorCaptured:ee,serverPrefetch:ne,expose:K,inheritAttrs:re,components:$,directives:P,filters:O}=t;if(p&&rk(p,o,null),f)for(const j in f){const se=f[j];Ve(se)&&(o[j]=se.bind(r))}if(s){const j=s.call(r,r);St(j)&&(e.data=tr(j))}if(Cd=!0,c)for(const j in c){const se=c[j],me=Ve(se)?se.bind(r,r):Ve(se.get)?se.get.bind(r,r):qr,_e=!Ve(se)&&Ve(se.set)?se.set.bind(r):qr,Pe=Se({get:me,set:_e});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:qe=>Pe.value=qe})}if(d)for(const j in d)Oy(d[j],o,r,j);if(h){const j=Ve(h)?h.call(r):h;Reflect.ownKeys(j).forEach(se=>{xr(se,j[se])})}v&&pv(v,e,"c");function F(j,se){He(se)?se.forEach(me=>j(me.bind(r))):se&&j(se.bind(r))}if(F(qS,m),F(so,b),F(US,w),F(jS,E),F(HS,N),F(BS,T),F(XS,ee),F(KS,V),F(GS,G),F(ya,A),F(Su,M),F(VS,ne),He(K))if(K.length){const j=e.exposed||(e.exposed={});K.forEach(se=>{Object.defineProperty(j,se,{get:()=>r[se],set:me=>r[se]=me})})}else e.exposed||(e.exposed={});B&&e.render===qr&&(e.render=B),re!=null&&(e.inheritAttrs=re),$&&(e.components=$),P&&(e.directives=P),ne&&Ay(e)}function rk(e,t,r=qr){He(e)&&(e=Ed(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=mn(s.from||o,s.default,!0):c=mn(s.from||o):c=mn(s),Ct(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function pv(e,t,r){Ar(He(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Oy(e,t,r,o){let s=o.includes(".")?Ky(r,o):()=>r[o];if(It(e)){const c=t[e];Ve(c)&&xt(s,c)}else if(Ve(e))xt(s,e.bind(r));else if(St(e))if(He(e))e.forEach(c=>Oy(c,t,r,o));else{const c=Ve(e.handler)?e.handler.bind(r):t[e.handler];Ve(c)&&xt(s,c,e)}}function Ry(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>qc(h,p,f,!0)),qc(h,t,f)),St(t)&&c.set(t,h),h}function qc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&qc(e,c,r,!0),s&&s.forEach(f=>qc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=ik[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const ik={data:gv,props:vv,emits:vv,methods:El,computed:El,beforeCreate:En,created:En,beforeMount:En,mounted:En,beforeUpdate:En,updated:En,beforeDestroy:En,beforeUnmount:En,destroyed:En,unmounted:En,activated:En,deactivated:En,errorCaptured:En,serverPrefetch:En,components:El,directives:El,watch:sk,provide:gv,inject:ok};function gv(e,t){return t?e?function(){return nn(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function ok(e,t){return El(Ed(e),Ed(t))}function Ed(e){if(He(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function En(e,t){return e?[...new Set([].concat(e,t))]:t}function El(e,t){return e?nn(Object.create(null),e,t):t}function vv(e,t){return e?He(e)&&He(t)?[...new Set([...e,...t])]:nn(Object.create(null),Wc(e),Wc(t??{})):t}function sk(e,t){if(!e)return t;if(!t)return e;const r=nn(Object.create(null),e);for(const o in t)r[o]=En(e[o],t[o]);return r}function Py(){return{app:null,config:{isNativeTag:U_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let lk=0;function ak(e,t){return function(o,s=null){Ve(o)||(o=nn({},o)),s!=null&&!St(s)&&(s=null);const c=Py(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:lk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Uk,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ve(v.install)?(f.add(v),v.install(p,...m)):Ve(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Oe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Au(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Ar(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=Mo;Mo=p;try{return v()}finally{Mo=m}}};return p}}let Mo=null;function xr(e,t){if(on){let r=on.provides;const o=on.parent&&on.parent.provides;o===r&&(r=on.provides=Object.create(o)),r[e]=t}}function mn(e,t,r=!1){const o=on||Qt;if(o||Mo){const s=Mo?Mo._context.provides:o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ve(t)?t.call(o&&o.proxy):t}}function Iy(){return!!(on||Qt||Mo)}const Dy={},zy=()=>Object.create(Dy),Fy=e=>Object.getPrototypeOf(e)===Dy;function ck(e,t,r,o=!1){const s={},c=zy();e.propsDefaults=Object.create(null),Hy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:wh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function uk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=ht(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Cu(e.emitsOptions,b))continue;const w=t[b];if(h)if(wt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const E=nr(b);s[E]=Ad(h,d,E,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Hy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=vi(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Ad(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&ci(e.attrs,"set","")}function Hy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ml(h))continue;const p=t[h];let v;s&&wt(s,v=nr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Cu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=ht(r),p=d||vt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Ad(s,h,m,p[m],e,!wt(p,m))}}return f}function Ad(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ve(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ba(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===vi(r))&&(o=!0))}return o}const fk=new WeakMap;function By(e,t,r=!1){const o=r?fk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ve(e)){const v=m=>{h=!0;const[b,w]=By(m,t,!0);nn(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,xs),xs;if(He(c))for(let v=0;v<c.length;v++){const m=nr(c[v]);mv(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=nr(v);if(mv(m)){const b=c[v],w=f[m]=He(b)||Ve(b)?{type:b}:nn({},b),E=w.type;let N=!1,T=!0;if(He(E))for(let L=0;L<E.length;++L){const A=E[L],R=Ve(A)&&A.name;if(R==="Boolean"){N=!0;break}else R==="String"&&(T=!1)}else N=Ve(E)&&E.name==="Boolean";w[0]=N,w[1]=T,(N||wt(w,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function mv(e){return e[0]!=="$"&&!Ml(e)}const Wy=e=>e[0]==="_"||e==="$stable",Eh=e=>He(e)?e.map(_r):[_r(e)],dk=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>Eh(t(...s)),r);return o._c=!1,o},qy=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Wy(s))continue;const c=e[s];if(Ve(c))t[s]=dk(s,c,o);else if(c!=null){const f=Eh(c);t[s]=()=>f}}},Uy=(e,t)=>{const r=Eh(t);e.slots.default=()=>r},jy=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},hk=(e,t,r)=>{const o=e.slots=zy();if(e.vnode.shapeFlag&32){const s=t._;s?(jy(o,t,r),r&&U0(o,"_",s,!0)):qy(t,o)}else t&&Uy(e,t)},pk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:jy(s,t,r):(c=!t.$stable,qy(t,s)),f=t}else t&&(Uy(e,t),f={default:1});if(c)for(const d in s)!Wy(d)&&f[d]==null&&delete s[d]},Jn=Ok;function gk(e){return vk(e)}function vk(e,t){const r=vu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=qr,insertStaticContent:E}=e,N=(I,H,Y,ue=null,he=null,de=null,Ce=void 0,Ee=null,ve=!!H.dynamicChildren)=>{if(I===H)return;I&&!Wr(I,H)&&(ue=z(I),qe(I,he,de,!0),I=null),H.patchFlag===-2&&(ve=!1,H.dynamicChildren=null);const{type:ye,ref:We,shapeFlag:Ne}=H;switch(ye){case Eu:T(I,H,Y,ue);break;case fn:L(I,H,Y,ue);break;case Gf:I==null&&A(H,Y,ue,Ce);break;case ct:$(I,H,Y,ue,he,de,Ce,Ee,ve);break;default:Ne&1?B(I,H,Y,ue,he,de,Ce,Ee,ve):Ne&6?P(I,H,Y,ue,he,de,Ce,Ee,ve):(Ne&64||Ne&128)&&ye.process(I,H,Y,ue,he,de,Ce,Ee,ve,le)}We!=null&&he&&Sd(We,I&&I.ref,de,H||I,!H)},T=(I,H,Y,ue)=>{if(I==null)o(H.el=d(H.children),Y,ue);else{const he=H.el=I.el;H.children!==I.children&&p(he,H.children)}},L=(I,H,Y,ue)=>{I==null?o(H.el=h(H.children||""),Y,ue):H.el=I.el},A=(I,H,Y,ue)=>{[I.el,I.anchor]=E(I.children,H,Y,ue,I.el,I.anchor)},R=({el:I,anchor:H},Y,ue)=>{let he;for(;I&&I!==H;)he=b(I),o(I,Y,ue),I=he;o(H,Y,ue)},M=({el:I,anchor:H})=>{let Y;for(;I&&I!==H;)Y=b(I),s(I),I=Y;s(H)},B=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{H.type==="svg"?Ce="svg":H.type==="math"&&(Ce="mathml"),I==null?V(H,Y,ue,he,de,Ce,Ee,ve):ne(I,H,he,de,Ce,Ee,ve)},V=(I,H,Y,ue,he,de,Ce,Ee)=>{let ve,ye;const{props:We,shapeFlag:Ne,transition:De,dirs:je}=I;if(ve=I.el=f(I.type,de,We&&We.is,We),Ne&8?v(ve,I.children):Ne&16&&ee(I.children,ve,null,ue,he,Vf(I,de),Ce,Ee),je&&bo(I,null,ue,"created"),G(ve,I,I.scopeId,Ce,ue),We){for(const ot in We)ot!=="value"&&!Ml(ot)&&c(ve,ot,null,We[ot],de,ue);"value"in We&&c(ve,"value",null,We.value,de),(ye=We.onVnodeBeforeMount)&&Fr(ye,ue,I)}je&&bo(I,null,ue,"beforeMount");const tt=mk(he,De);tt&&De.beforeEnter(ve),o(ve,H,Y),((ye=We&&We.onVnodeMounted)||tt||je)&&Jn(()=>{ye&&Fr(ye,ue,I),tt&&De.enter(ve),je&&bo(I,null,ue,"mounted")},he)},G=(I,H,Y,ue,he)=>{if(Y&&w(I,Y),ue)for(let de=0;de<ue.length;de++)w(I,ue[de]);if(he){let de=he.subTree;if(H===de||Zy(de.type)&&(de.ssContent===H||de.ssFallback===H)){const Ce=he.vnode;G(I,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},ee=(I,H,Y,ue,he,de,Ce,Ee,ve=0)=>{for(let ye=ve;ye<I.length;ye++){const We=I[ye]=Ee?Bi(I[ye]):_r(I[ye]);N(null,We,H,Y,ue,he,de,Ce,Ee)}},ne=(I,H,Y,ue,he,de,Ce)=>{const Ee=H.el=I.el;let{patchFlag:ve,dynamicChildren:ye,dirs:We}=H;ve|=I.patchFlag&16;const Ne=I.props||vt,De=H.props||vt;let je;if(Y&&wo(Y,!1),(je=De.onVnodeBeforeUpdate)&&Fr(je,Y,H,I),We&&bo(H,I,Y,"beforeUpdate"),Y&&wo(Y,!0),(Ne.innerHTML&&De.innerHTML==null||Ne.textContent&&De.textContent==null)&&v(Ee,""),ye?K(I.dynamicChildren,ye,Ee,Y,ue,Vf(H,he),de):Ce||se(I,H,Ee,null,Y,ue,Vf(H,he),de,!1),ve>0){if(ve&16)re(Ee,Ne,De,Y,he);else if(ve&2&&Ne.class!==De.class&&c(Ee,"class",null,De.class,he),ve&4&&c(Ee,"style",Ne.style,De.style,he),ve&8){const tt=H.dynamicProps;for(let ot=0;ot<tt.length;ot++){const lt=tt[ot],Nt=Ne[lt],st=De[lt];(st!==Nt||lt==="value")&&c(Ee,lt,Nt,st,he,Y)}}ve&1&&I.children!==H.children&&v(Ee,H.children)}else!Ce&&ye==null&&re(Ee,Ne,De,Y,he);((je=De.onVnodeUpdated)||We)&&Jn(()=>{je&&Fr(je,Y,H,I),We&&bo(H,I,Y,"updated")},ue)},K=(I,H,Y,ue,he,de,Ce)=>{for(let Ee=0;Ee<H.length;Ee++){const ve=I[Ee],ye=H[Ee],We=ve.el&&(ve.type===ct||!Wr(ve,ye)||ve.shapeFlag&70)?m(ve.el):Y;N(ve,ye,We,null,ue,he,de,Ce,!0)}},re=(I,H,Y,ue,he)=>{if(H!==Y){if(H!==vt)for(const de in H)!Ml(de)&&!(de in Y)&&c(I,de,H[de],null,he,ue);for(const de in Y){if(Ml(de))continue;const Ce=Y[de],Ee=H[de];Ce!==Ee&&de!=="value"&&c(I,de,Ee,Ce,he,ue)}"value"in Y&&c(I,"value",H.value,Y.value,he)}},$=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{const ye=H.el=I?I.el:d(""),We=H.anchor=I?I.anchor:d("");let{patchFlag:Ne,dynamicChildren:De,slotScopeIds:je}=H;je&&(Ee=Ee?Ee.concat(je):je),I==null?(o(ye,Y,ue),o(We,Y,ue),ee(H.children||[],Y,We,he,de,Ce,Ee,ve)):Ne>0&&Ne&64&&De&&I.dynamicChildren?(K(I.dynamicChildren,De,Y,he,de,Ce,Ee),(H.key!=null||he&&H===he.subTree)&&Vy(I,H,!0)):se(I,H,Y,We,he,de,Ce,Ee,ve)},P=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{H.slotScopeIds=Ee,I==null?H.shapeFlag&512?he.ctx.activate(H,Y,ue,Ce,ve):O(H,Y,ue,he,de,Ce,ve):S(I,H,ve)},O=(I,H,Y,ue,he,de,Ce)=>{const Ee=I.component=zk(I,ue,he);if(xu(I)&&(Ee.ctx.renderer=le),Fk(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,F,Ce),!I.el){const ve=Ee.subTree=Oe(fn);L(null,ve,H,Y)}}else F(Ee,I,H,Y,he,de,Ce)},S=(I,H,Y)=>{const ue=H.component=I.component;if(Ek(I,H,Y))if(ue.asyncDep&&!ue.asyncResolved){j(ue,H,Y);return}else ue.next=H,ue.update();else H.el=I.el,ue.vnode=H},F=(I,H,Y,ue,he,de,Ce)=>{const Ee=()=>{if(I.isMounted){let{next:Ne,bu:De,u:je,parent:tt,vnode:ot}=I;{const Ft=Gy(I);if(Ft){Ne&&(Ne.el=ot.el,j(I,Ne,Ce)),Ft.asyncDep.then(()=>{I.isUnmounted||Ee()});return}}let lt=Ne,Nt;wo(I,!1),Ne?(Ne.el=ot.el,j(I,Ne,Ce)):Ne=ot,De&&Cc(De),(Nt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Fr(Nt,tt,Ne,ot),wo(I,!0);const st=bv(I),jt=I.subTree;I.subTree=st,N(jt,st,m(jt.el),z(jt),I,he,de),Ne.el=st.el,lt===null&&Lh(I,st.el),je&&Jn(je,he),(Nt=Ne.props&&Ne.props.onVnodeUpdated)&&Jn(()=>Fr(Nt,tt,Ne,ot),he)}else{let Ne;const{el:De,props:je}=H,{bm:tt,m:ot,parent:lt,root:Nt,type:st}=I,jt=Ts(H);wo(I,!1),tt&&Cc(tt),!jt&&(Ne=je&&je.onVnodeBeforeMount)&&Fr(Ne,lt,H),wo(I,!0);{Nt.ce&&Nt.ce._injectChildStyle(st);const Ft=I.subTree=bv(I);N(null,Ft,Y,ue,I,he,de),H.el=Ft.el}if(ot&&Jn(ot,he),!jt&&(Ne=je&&je.onVnodeMounted)){const Ft=H;Jn(()=>Fr(Ne,lt,Ft),he)}(H.shapeFlag&256||lt&&Ts(lt.vnode)&<.vnode.shapeFlag&256)&&I.a&&Jn(I.a,he),I.isMounted=!0,H=Y=ue=null}};I.scope.on();const ve=I.effect=new Z0(Ee);I.scope.off();const ye=I.update=ve.run.bind(ve),We=I.job=ve.runIfDirty.bind(ve);We.i=I,We.id=I.uid,ve.scheduler=()=>kh(We),wo(I,!0),ye()},j=(I,H,Y)=>{H.component=I;const ue=I.vnode.props;I.vnode=H,I.next=null,uk(I,H.props,ue,Y),pk(I,H.children,Y),io(),fv(I),oo()},se=(I,H,Y,ue,he,de,Ce,Ee,ve=!1)=>{const ye=I&&I.children,We=I?I.shapeFlag:0,Ne=H.children,{patchFlag:De,shapeFlag:je}=H;if(De>0){if(De&128){_e(ye,Ne,Y,ue,he,de,Ce,Ee,ve);return}else if(De&256){me(ye,Ne,Y,ue,he,de,Ce,Ee,ve);return}}je&8?(We&16&&te(ye,he,de),Ne!==ye&&v(Y,Ne)):We&16?je&16?_e(ye,Ne,Y,ue,he,de,Ce,Ee,ve):te(ye,he,de,!0):(We&8&&v(Y,""),je&16&&ee(Ne,Y,ue,he,de,Ce,Ee,ve))},me=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{I=I||xs,H=H||xs;const ye=I.length,We=H.length,Ne=Math.min(ye,We);let De;for(De=0;De<Ne;De++){const je=H[De]=ve?Bi(H[De]):_r(H[De]);N(I[De],je,Y,null,he,de,Ce,Ee,ve)}ye>We?te(I,he,de,!0,!1,Ne):ee(H,Y,ue,he,de,Ce,Ee,ve,Ne)},_e=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{let ye=0;const We=H.length;let Ne=I.length-1,De=We-1;for(;ye<=Ne&&ye<=De;){const je=I[ye],tt=H[ye]=ve?Bi(H[ye]):_r(H[ye]);if(Wr(je,tt))N(je,tt,Y,null,he,de,Ce,Ee,ve);else break;ye++}for(;ye<=Ne&&ye<=De;){const je=I[Ne],tt=H[De]=ve?Bi(H[De]):_r(H[De]);if(Wr(je,tt))N(je,tt,Y,null,he,de,Ce,Ee,ve);else break;Ne--,De--}if(ye>Ne){if(ye<=De){const je=De+1,tt=je<We?H[je].el:ue;for(;ye<=De;)N(null,H[ye]=ve?Bi(H[ye]):_r(H[ye]),Y,tt,he,de,Ce,Ee,ve),ye++}}else if(ye>De)for(;ye<=Ne;)qe(I[ye],he,de,!0),ye++;else{const je=ye,tt=ye,ot=new Map;for(ye=tt;ye<=De;ye++){const Dt=H[ye]=ve?Bi(H[ye]):_r(H[ye]);Dt.key!=null&&ot.set(Dt.key,ye)}let lt,Nt=0;const st=De-tt+1;let jt=!1,Ft=0;const In=new Array(st);for(ye=0;ye<st;ye++)In[ye]=0;for(ye=je;ye<=Ne;ye++){const Dt=I[ye];if(Nt>=st){qe(Dt,he,de,!0);continue}let Dn;if(Dt.key!=null)Dn=ot.get(Dt.key);else for(lt=tt;lt<=De;lt++)if(In[lt-tt]===0&&Wr(Dt,H[lt])){Dn=lt;break}Dn===void 0?qe(Dt,he,de,!0):(In[Dn-tt]=ye+1,Dn>=Ft?Ft=Dn:jt=!0,N(Dt,H[Dn],Y,null,he,de,Ce,Ee,ve),Nt++)}const Or=jt?yk(In):xs;for(lt=Or.length-1,ye=st-1;ye>=0;ye--){const Dt=tt+ye,Dn=H[Dt],et=Dt+1<We?H[Dt+1].el:ue;In[ye]===0?N(null,Dn,Y,et,he,de,Ce,Ee,ve):jt&&(lt<0||ye!==Or[lt]?Pe(Dn,Y,et,2):lt--)}}},Pe=(I,H,Y,ue,he=null)=>{const{el:de,type:Ce,transition:Ee,children:ve,shapeFlag:ye}=I;if(ye&6){Pe(I.component.subTree,H,Y,ue);return}if(ye&128){I.suspense.move(H,Y,ue);return}if(ye&64){Ce.move(I,H,Y,le);return}if(Ce===ct){o(de,H,Y);for(let Ne=0;Ne<ve.length;Ne++)Pe(ve[Ne],H,Y,ue);o(I.anchor,H,Y);return}if(Ce===Gf){R(I,H,Y);return}if(ue!==2&&ye&1&&Ee)if(ue===0)Ee.beforeEnter(de),o(de,H,Y),Jn(()=>Ee.enter(de),he);else{const{leave:Ne,delayLeave:De,afterLeave:je}=Ee,tt=()=>o(de,H,Y),ot=()=>{Ne(de,()=>{tt(),je&&je()})};De?De(de,tt,ot):ot()}else o(de,H,Y)},qe=(I,H,Y,ue=!1,he=!1)=>{const{type:de,props:Ce,ref:Ee,children:ve,dynamicChildren:ye,shapeFlag:We,patchFlag:Ne,dirs:De,cacheIndex:je}=I;if(Ne===-2&&(he=!1),Ee!=null&&Sd(Ee,null,Y,I,!0),je!=null&&(H.renderCache[je]=void 0),We&256){H.ctx.deactivate(I);return}const tt=We&1&&De,ot=!Ts(I);let lt;if(ot&&(lt=Ce&&Ce.onVnodeBeforeUnmount)&&Fr(lt,H,I),We&6)Xe(I.component,Y,ue);else{if(We&128){I.suspense.unmount(Y,ue);return}tt&&bo(I,null,H,"beforeUnmount"),We&64?I.type.remove(I,H,Y,le,ue):ye&&!ye.hasOnce&&(de!==ct||Ne>0&&Ne&64)?te(ye,H,Y,!1,!0):(de===ct&&Ne&384||!he&&We&16)&&te(ve,H,Y),ue&&Ze(I)}(ot&&(lt=Ce&&Ce.onVnodeUnmounted)||tt)&&Jn(()=>{lt&&Fr(lt,H,I),tt&&bo(I,null,H,"unmounted")},Y)},Ze=I=>{const{type:H,el:Y,anchor:ue,transition:he}=I;if(H===ct){Ke(Y,ue);return}if(H===Gf){M(I);return}const de=()=>{s(Y),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(I.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,ve=()=>Ce(Y,de);Ee?Ee(I.el,de,ve):ve()}else de()},Ke=(I,H)=>{let Y;for(;I!==H;)Y=b(I),s(I),I=Y;s(H)},Xe=(I,H,Y)=>{const{bum:ue,scope:he,job:de,subTree:Ce,um:Ee,m:ve,a:ye}=I;yv(ve),yv(ye),ue&&Cc(ue),he.stop(),de&&(de.flags|=8,qe(Ce,I,H,Y)),Ee&&Jn(Ee,H),Jn(()=>{I.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},te=(I,H,Y,ue=!1,he=!1,de=0)=>{for(let Ce=de;Ce<I.length;Ce++)qe(I[Ce],H,Y,ue,he)},z=I=>{if(I.shapeFlag&6)return z(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const H=b(I.anchor||I.el),Y=H&&H[IS];return Y?b(Y):H};let J=!1;const X=(I,H,Y)=>{I==null?H._vnode&&qe(H._vnode,null,null,!0):N(H._vnode||null,I,H,null,null,null,Y),H._vnode=I,J||(J=!0,fv(),my(),J=!1)},le={p:N,um:qe,m:Pe,r:Ze,mt:O,mc:ee,pc:se,pbc:K,n:z,o:e};return{render:X,hydrate:void 0,createApp:ak(X)}}function Vf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function wo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function mk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vy(e,t,r=!1){const o=e.children,s=t.children;if(He(o)&&He(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Bi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Vy(f,d)),d.type===Eu&&(d.el=f.el)}}function yk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Gy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gy(t)}function yv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const bk=Symbol.for("v-scx"),wk=()=>mn(bk);function Ah(e,t){return ku(e,null,t)}function xk(e,t){return ku(e,null,{flush:"sync"})}function xt(e,t,r){return ku(e,t,r)}function ku(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=nn({},r),h=t&&o||!t&&c!=="post";let p;if(Xl){if(c==="sync"){const w=wk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=qr,w.resume=qr,w.pause=qr,w}}const v=on;d.call=(w,E,N)=>Ar(w,v,E,N);let m=!1;c==="post"?d.scheduler=w=>{Jn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,E)=>{E?w():kh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=OS(e,t,d);return Xl&&(p?p.push(b):h&&b()),b}function _k(e,t,r){const o=this.proxy,s=It(e)?e.includes(".")?Ky(o,e):()=>o[e]:e.bind(o,o);let c;Ve(t)?c=t:(c=t.handler,r=t);const f=ba(this),d=ku(s,c.bind(o),r);return f(),d}function Ky(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Tu(e,t,r=vt){const o=Do(),s=nr(t),c=vi(t),f=Xy(e,s),d=hy((h,p)=>{let v,m=vt,b;return xk(()=>{const w=e[s];Un(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const E=r.set?r.set(w):w;if(!Un(E,v)&&!(m!==vt&&Un(w,m)))return;const N=o.vnode.props;N&&(t in N||s in N||c in N)&&(`onUpdate:${t}`in N||`onUpdate:${s}`in N||`onUpdate:${c}`in N)||(v=w,p()),o.emit(`update:${t}`,E),Un(w,E)&&Un(w,m)&&!Un(E,b)&&p(),m=w,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Xy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nr(t)}Modifiers`]||e[`${vi(t)}Modifiers`];function Sk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Xy(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>It(v)?v.trim():v)),f.number&&(s=r.map(vd)));let d,h=o[d=Tc(t)]||o[d=Tc(nr(t))];!h&&c&&(h=o[d=Tc(vi(t))]),h&&Ar(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Ar(p,e,6,s)}}function Yy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ve(e)){const h=p=>{const v=Yy(p,t,!0);v&&(d=!0,nn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(He(c)?c.forEach(h=>f[h]=null):nn(f,c),St(e)&&o.set(e,f),f)}function Cu(e,t){return!e||!du(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,vi(t))||wt(e,t))}function bv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:E,inheritAttrs:N}=e,T=Bc(e);let L,A;try{if(r.shapeFlag&4){const M=s||o,B=M;L=_r(p.call(B,M,v,m,w,b,E)),A=d}else{const M=t;L=_r(M.length>1?M(m,{attrs:d,slots:f,emit:h}):M(m,null)),A=t.props?d:Tk(d)}}catch(M){Rl.length=0,ma(M,e,1),L=Oe(fn)}let R=L;if(A&&N!==!1){const M=Object.keys(A),{shapeFlag:B}=R;M.length&&B&7&&(c&&M.some(hh)&&(A=Ck(A,c)),R=Zi(R,A,!1,!0))}return r.dirs&&(R=Zi(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&Vl(R,r.transition),L=R,Bc(T),L}function kk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Ps(s)){if(s.type!==fn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Tk=e=>{let t;for(const r in e)(r==="class"||r==="style"||du(r))&&((t||(t={}))[r]=e[r]);return t},Ck=(e,t)=>{const r={};for(const o in e)(!hh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Ek(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?wv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Cu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?wv(o,f,p):!0:!!f;return!1}function wv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Cu(r,c))return!0}return!1}function Lh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Zy=e=>e.__isSuspense;let Ld=0;const Ak={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Lk(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Mk(e,t,r,o,s,f,d,h,p)}},hydrate:Nk,normalize:$k},Jy=Ak;function Kl(e,t){const r=e.props&&e.props[t];Ve(r)&&r()}function Lk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Qy(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(Kl(e,"onPending"),Kl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Cs(b,e.ssFallback)):b.resolve(!1,!0)}function Mk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:N,isInFallback:T,isHydrating:L}=m;if(N)m.pendingBranch=b,Wr(b,N)?(h(N,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():T&&(L||(h(E,w,r,o,s,null,c,f,d),Cs(m,w)))):(m.pendingId=Ld++,L?(m.isHydrating=!1,m.activeBranch=N):p(N,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),T?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(E,w,r,o,s,null,c,f,d),Cs(m,w))):E&&Wr(b,E)?(h(E,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(E&&Wr(b,E))h(E,b,r,o,s,m,c,f,d),Cs(m,b);else if(Kl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ld++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:A,pendingId:R}=m;A>0?setTimeout(()=>{m.pendingId===R&&m.fallback(w)},A):A===0&&m.fallback(w)}}function Qy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:E,o:{parentNode:N,remove:T}}=p;let L;const A=Rk(e);A&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const R=e.props?j0(e.props.timeout):void 0,M=c,B={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ld++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(V=!1,G=!1){const{vnode:ee,activeBranch:ne,pendingBranch:K,pendingId:re,effects:$,parentComponent:P,container:O}=B;let S=!1;B.isHydrating?B.isHydrating=!1:V||(S=ne&&K.transition&&K.transition.mode==="out-in",S&&(ne.transition.afterLeave=()=>{re===B.pendingId&&(b(K,O,c===M?E(ne):c,0),xd($))}),ne&&(N(ne.el)===O&&(c=E(ne)),w(ne,P,B,!0)),S||b(K,O,c,0)),Cs(B,K),B.pendingBranch=null,B.isInFallback=!1;let F=B.parent,j=!1;for(;F;){if(F.pendingBranch){F.effects.push(...$),j=!0;break}F=F.parent}!j&&!S&&xd($),B.effects=[],A&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!G&&t.resolve()),Kl(ee,"onResolve")},fallback(V){if(!B.pendingBranch)return;const{vnode:G,activeBranch:ee,parentComponent:ne,container:K,namespace:re}=B;Kl(G,"onFallback");const $=E(ee),P=()=>{B.isInFallback&&(m(null,V,K,$,ne,null,re,d,h),Cs(B,V))},O=V.transition&&V.transition.mode==="out-in";O&&(ee.transition.afterLeave=P),B.isInFallback=!0,w(ee,ne,null,!0),O||P()},move(V,G,ee){B.activeBranch&&b(B.activeBranch,V,G,ee),B.container=V},next(){return B.activeBranch&&E(B.activeBranch)},registerDep(V,G,ee){const ne=!!B.pendingBranch;ne&&B.deps++;const K=V.vnode.el;V.asyncDep.catch(re=>{ma(re,V,0)}).then(re=>{if(V.isUnmounted||B.isUnmounted||B.pendingId!==V.suspenseId)return;V.asyncResolved=!0;const{vnode:$}=V;Nd(V,re),K&&($.el=K);const P=!K&&V.subTree.el;G(V,$,N(K||V.subTree.el),K?null:E(V.subTree),B,f,ee),P&&T(P),Lh(V,$.el),ne&&--B.deps===0&&B.resolve()})},unmount(V,G){B.isUnmounted=!0,B.activeBranch&&w(B.activeBranch,r,V,G),B.pendingBranch&&w(B.pendingBranch,r,V,G)}};return B}function Nk(e,t,r,o,s,c,f,d,h){const p=t.suspense=Qy(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function $k(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=xv(o?r.default:r),e.ssFallback=o?xv(r.fallback):Oe(fn)}function xv(e){let t;if(Ve(e)){const r=Rs&&e._c;r&&(e._d=!1,ce()),e=e(),r&&(e._d=!0,t=Vn,eb())}return He(e)&&(e=kk(e)),e=_r(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Ok(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):xd(e)}function Cs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Lh(o,s))}function Rk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Eu=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),Gf=Symbol.for("v-stc"),Rl=[];let Vn=null;function ce(e=!1){Rl.push(Vn=e?null:[])}function eb(){Rl.pop(),Vn=Rl[Rl.length-1]||null}let Rs=1;function Uc(e){Rs+=e,e<0&&Vn&&(Vn.hasOnce=!0)}function tb(e){return e.dynamicChildren=Rs>0?Vn||xs:null,eb(),Rs>0&&Vn&&Vn.push(e),e}function xe(e,t,r,o,s,c){return tb(ie(e,t,r,o,s,c,!0))}function nt(e,t,r,o,s){return tb(Oe(e,t,r,o,s,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function Wr(e,t){return e.type===t.type&&e.key===t.key}const nb=({key:e})=>e??null,Ec=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?It(e)||Ct(e)||Ve(e)?{i:Qt,r:e,k:t,f:!!r}:e:null);function ie(e,t=null,r=null,o=0,s=null,c=e===ct?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nb(t),ref:t&&Ec(t),scopeId:wu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Qt};return d?(Mh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=It(r)?8:16),Rs>0&&!f&&Vn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Vn.push(h),h}const Oe=Pk;function Pk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===My)&&(e=fn),Ps(e)){const d=Zi(e,t,!0);return r&&Mh(d,r),Rs>0&&!c&&Vn&&(d.shapeFlag&6?Vn[Vn.indexOf(e)]=d:Vn.push(d)),d.patchFlag=-2,d}if(qk(e)&&(e=e.__vccOpts),t){t=rb(t);let{class:d,style:h}=t;d&&!It(d)&&(t.class=it(d)),St(h)&&(_h(h)&&!He(h)&&(h=nn({},h)),t.style=en(h))}const f=It(e)?1:Zy(e)?128:_y(e)?64:St(e)?4:Ve(e)?2:0;return ie(e,t,r,o,s,f,c,!0)}function rb(e){return e?_h(e)||Fy(e)?nn({},e):e:null}function Zi(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?di(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&nb(p),ref:t&&t.ref?r&&c?He(c)?c.concat(Ec(t)):[c,Ec(t)]:Ec(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Vl(v,h.clone(v)),v}function pt(e=" ",t=0){return Oe(Eu,null,e,t)}function Ye(e="",t=!1){return t?(ce(),nt(fn,null,e)):Oe(fn,null,e)}function _r(e){return e==null||typeof e=="boolean"?Oe(fn):He(e)?Oe(ct,null,e.slice()):Ps(e)?Bi(e):Oe(Eu,null,String(e))}function Bi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Mh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(He(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Mh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Fy(t)?t._ctx=Qt:s===3&&Qt&&(Qt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:Qt},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function di(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=it([t.class,o.class]));else if(s==="style")t.style=en([t.style,o.style]);else if(du(s)){const c=t[s],f=o[s];f&&c!==f&&!(He(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Fr(e,t,r,o=null){Ar(e,t,7,[r,o])}const Ik=Py();let Dk=0;function zk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Ik,c={uid:Dk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new rS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:By(o,s),emitsOptions:Yy(o,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext: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 c.ctx={_:c},c.root=t?t.root:c,c.emit=Sk.bind(null,c),e.ce&&e.ce(c),c}let on=null;const Do=()=>on||Qt;let jc,Md;{const e=vu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};jc=t("__VUE_INSTANCE_SETTERS__",r=>on=r),Md=t("__VUE_SSR_SETTERS__",r=>Xl=r)}const ba=e=>{const t=on;return jc(e),e.scope.on(),()=>{e.scope.off(),jc(t)}},_v=()=>{on&&on.scope.off(),jc(null)};function ib(e){return e.vnode.shapeFlag&4}let Xl=!1;function Fk(e,t=!1,r=!1){t&&Md(t);const{props:o,children:s}=e.vnode,c=ib(e);ck(e,o,c,t),hk(e,s,r);const f=c?Hk(e,t):void 0;return t&&Md(!1),f}function Hk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,QS);const{setup:o}=r;if(o){io();const s=e.setupContext=o.length>1?sb(e):null,c=ba(e),f=va(o,e,0,[e.props,s]),d=B0(f);if(oo(),c(),(d||e.sp)&&!Ts(e)&&Ay(e),d){if(f.then(_v,_v),t)return f.then(h=>{Nd(e,h)}).catch(h=>{ma(h,e,0)});e.asyncDep=f}else Nd(e,f)}else ob(e)}function Nd(e,t,r){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=dy(t)),ob(e)}function ob(e,t,r){const o=e.type;e.render||(e.render=o.render||qr);{const s=ba(e);io();try{nk(e)}finally{oo(),s()}}}const Bk={get(e,t){return gn(e,"get",""),e[t]}};function sb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Bk),slots:e.slots,emit:e.emit,expose:t}}function Au(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dy(Sh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ol)return Ol[r](e)},has(t,r){return r in t||r in Ol}})):e.proxy}function Wk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function qk(e){return Ve(e)&&"__vccOpts"in e}const Se=(e,t)=>NS(e,t,Xl);function wa(e,t,r){const o=arguments.length;return o===2?St(t)&&!He(t)?Ps(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ps(r)&&(r=[r]),Oe(e,t,r))}const Uk="3.5.12";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.12
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let $d;const Sv=typeof window<"u"&&window.trustedTypes;if(Sv)try{$d=Sv.createPolicy("vue",{createHTML:e=>e})}catch{}const lb=$d?e=>$d.createHTML(e):e=>e,jk="http://www.w3.org/2000/svg",Vk="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,kv=li&&li.createElement("template"),Gk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?li.createElementNS(jk,e):t==="mathml"?li.createElementNS(Vk,e):r?li.createElement(e,{is:r}):li.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>li.createTextNode(e),createComment:e=>li.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>li.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{kv.innerHTML=lb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=kv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Oi="transition",xl="animation",Yl=Symbol("_vtc"),ab={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},Kk=nn({},Sy,ab),Xk=e=>(e.displayName="Transition",e.props=Kk,e),Yk=Xk((e,{slots:t})=>wa(FS,Zk(e),t)),xo=(e,t=[])=>{He(e)?e.forEach(r=>r(...t)):e&&e(...t)},Tv=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function Zk(e){const t={};for(const $ in e)$ in ab||(t[$]=e[$]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=Jk(s),N=E&&E[0],T=E&&E[1],{onBeforeEnter:L,onEnter:A,onEnterCancelled:R,onLeave:M,onLeaveCancelled:B,onBeforeAppear:V=L,onAppear:G=A,onAppearCancelled:ee=R}=t,ne=($,P,O)=>{_o($,P?v:d),_o($,P?p:f),O&&O()},K=($,P)=>{$._isLeaving=!1,_o($,m),_o($,w),_o($,b),P&&P()},re=$=>(P,O)=>{const S=$?G:A,F=()=>ne(P,$,O);xo(S,[P,F]),Cv(()=>{_o(P,$?h:c),Ri(P,$?v:d),Tv(S)||Ev(P,o,N,F)})};return nn(t,{onBeforeEnter($){xo(L,[$]),Ri($,c),Ri($,f)},onBeforeAppear($){xo(V,[$]),Ri($,h),Ri($,p)},onEnter:re(!1),onAppear:re(!0),onLeave($,P){$._isLeaving=!0;const O=()=>K($,P);Ri($,m),Ri($,b),tT(),Cv(()=>{$._isLeaving&&(_o($,m),Ri($,w),Tv(M)||Ev($,o,T,O))}),xo(M,[$,O])},onEnterCancelled($){ne($,!1),xo(R,[$])},onAppearCancelled($){ne($,!0),xo(ee,[$])},onLeaveCancelled($){K($),xo(B,[$])}})}function Jk(e){if(e==null)return null;if(St(e))return[Kf(e.enter),Kf(e.leave)];{const t=Kf(e);return[t,t]}}function Kf(e){return j0(e)}function Ri(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Yl]||(e[Yl]=new Set)).add(t)}function _o(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Yl];r&&(r.delete(t),r.size||(e[Yl]=void 0))}function Cv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Qk=0;function Ev(e,t,r,o){const s=e._endId=++Qk,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=eT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function eT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=Av(s,c),d=o(`${xl}Delay`),h=o(`${xl}Duration`),p=Av(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===xl?p>0&&(v=xl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:xl:null,b=v?v===Oi?c.length:h.length:0);const w=v===Oi&&/\b(transform|all)(,|$)/.test(o(`${Oi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Av(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Lv(r)+Lv(e[o])))}function Lv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function tT(){return document.body.offsetHeight}function nT(e,t,r){const o=e[Yl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Vc=Symbol("_vod"),cb=Symbol("_vsh"),ji={beforeMount(e,{value:t},{transition:r}){e[Vc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):_l(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),_l(e,!0),o.enter(e)):o.leave(e,()=>{_l(e,!1)}):_l(e,t))},beforeUnmount(e,{value:t}){_l(e,t)}};function _l(e,t){e.style.display=t?e[Vc]:"none",e[cb]=!t}const rT=Symbol(""),iT=/(^|;)\s*display\s*:/;function oT(e,t,r){const o=e.style,s=It(r);let c=!1;if(r&&!s){if(t)if(It(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ac(o,d,"")}else for(const f in t)r[f]==null&&Ac(o,f,"");for(const f in r)f==="display"&&(c=!0),Ac(o,f,r[f])}else if(s){if(t!==r){const f=o[rT];f&&(r+=";"+f),o.cssText=r,c=iT.test(r)}}else t&&e.removeAttribute("style");Vc in e&&(e[Vc]=c?o.display:"",e[cb]&&(o.display="none"))}const Mv=/\s*!important$/;function Ac(e,t,r){if(He(r))r.forEach(o=>Ac(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=sT(e,t);Mv.test(r)?e.setProperty(vi(o),r.replace(Mv,""),"important"):e[o]=r}}const Nv=["Webkit","Moz","ms"],Xf={};function sT(e,t){const r=Xf[t];if(r)return r;let o=nr(t);if(o!=="filter"&&o in e)return Xf[t]=o;o=gu(o);for(let s=0;s<Nv.length;s++){const c=Nv[s]+o;if(c in e)return Xf[t]=c}return t}const $v="http://www.w3.org/1999/xlink";function Ov(e,t,r,o,s,c=tS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS($v,t.slice(6,t.length)):e.setAttributeNS($v,t,r):r==null||c&&!V0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Er(r)?String(r):r)}function Rv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?lb(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=V0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Co(e,t,r,o){e.addEventListener(t,r,o)}function lT(e,t,r,o){e.removeEventListener(t,r,o)}const Pv=Symbol("_vei");function aT(e,t,r,o,s=null){const c=e[Pv]||(e[Pv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=cT(t);if(o){const p=c[t]=dT(o,s);Co(e,d,p,h)}else f&&(lT(e,d,f,h),c[t]=void 0)}}const Iv=/(?:Once|Passive|Capture)$/;function cT(e){let t;if(Iv.test(e)){t={};let o;for(;o=e.match(Iv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vi(e.slice(2)),t]}let Yf=0;const uT=Promise.resolve(),fT=()=>Yf||(uT.then(()=>Yf=0),Yf=Date.now());function dT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Ar(hT(o,r.value),t,5,[o])};return r.value=e,r.attached=fT(),r}function hT(e,t){if(He(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Dv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?nT(e,o,f):t==="style"?oT(e,r,o):du(t)?hh(t)||aT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gT(e,t,o,f))?(Rv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ov(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!It(o))?Rv(e,nr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ov(e,t,o,f))};function gT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dv(t)&&Ve(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Dv(t)&&It(r)?!1:t in e}const Gc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?r=>Cc(t,r):t};function vT(e){e.target.composing=!0}function zv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Es=Symbol("_assign"),mT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Es]=Gc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=vd(d)),e[Es](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",vT),Co(e,"compositionend",zv),Co(e,"change",zv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Es]=Gc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?vd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},ub={deep:!0,created(e,t,r){e[Es]=Gc(r),Co(e,"change",()=>{const o=e._modelValue,s=yT(e),c=e.checked,f=e[Es];if(He(o)){const d=G0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(hu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(fb(e,c))})},mounted:Fv,beforeUpdate(e,t,r){e[Es]=Gc(r),Fv(e,t,r)}};function Fv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(He(t))s=G0(t,o.props.value)>-1;else if(hu(t))s=t.has(o.props.value);else{if(t===r)return;s=mu(t,fb(e,!0))}e.checked!==s&&(e.checked=s)}function yT(e){return"_value"in e?e._value:e.value}function fb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const bT=["ctrl","shift","alt","meta"],wT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bT.some(r=>e[`${r}Key`]&&!t.includes(r))},Lc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=wT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},xT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Od=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=vi(s.key);if(t.some(f=>f===c||xT[f]===c))return e(s)})},_T=nn({patchProp:pT},Gk);let Hv;function ST(){return Hv||(Hv=gk(_T))}const db=(...e)=>{const t=ST().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=TT(o);if(!s)return;const c=t._component;!Ve(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,kT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function kT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function TT(e){return It(e)?document.querySelector(e):e}const yi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},CT={};function ET(e,t){const r=Ro("RouterView");return ce(),nt(r)}const AT=yi(CT,[["render",ET]]),LT=["top","right","bottom","left"],Bv=["start","end"],Wv=LT.reduce((e,t)=>e.concat(t,t+"-"+Bv[0],t+"-"+Bv[1]),[]),Zl=Math.min,To=Math.max,MT={left:"right",right:"left",bottom:"top",top:"bottom"},NT={start:"end",end:"start"};function Rd(e,t,r){return To(e,Zl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Gr(e){return e.split("-")[0]}function Tr(e){return e.split("-")[1]}function hb(e){return e==="x"?"y":"x"}function Nh(e){return e==="y"?"height":"width"}function xa(e){return["top","bottom"].includes(Gr(e))?"y":"x"}function $h(e){return hb(xa(e))}function pb(e,t,r){r===void 0&&(r=!1);const o=Tr(e),s=$h(e),c=Nh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Xc(f)),[f,Xc(f)]}function $T(e){const t=Xc(e);return[Kc(e),t,Kc(t)]}function Kc(e){return e.replace(/start|end/g,t=>NT[t])}function OT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function RT(e,t,r,o){const s=Tr(e);let c=OT(Gr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Kc)))),c}function Xc(e){return e.replace(/left|right|bottom|top/g,t=>MT[t])}function PT(e){return{top:0,right:0,bottom:0,left:0,...e}}function gb(e){return typeof e!="number"?PT(e):{top:e,right:e,bottom:e,left:e}}function Pl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qv(e,t,r){let{reference:o,floating:s}=e;const c=xa(t),f=$h(t),d=Nh(f),h=Gr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(Tr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const IT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=qv(p,o,h),b=o,w={},E=0;for(let N=0;N<d.length;N++){const{name:T,fn:L}=d[N],{x:A,y:R,data:M,reset:B}=await L({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=A??v,m=R??m,w={...w,[T]:{...w[T],...M}},B&&E<=50&&(E++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(p=B.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):B.rects),{x:v,y:m}=qv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Lu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=zo(t,e),E=gb(w),T=d[b?m==="floating"?"reference":"floating":m],L=Pl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),A=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),M=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},B=Pl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:R,strategy:h}):A);return{top:(L.top-B.top+E.top)/M.y,bottom:(B.bottom-L.bottom+E.bottom)/M.y,left:(L.left-B.left+E.left)/M.x,right:(B.right-L.right+E.right)/M.x}}const DT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const m=gb(v),b={x:r,y:o},w=$h(s),E=Nh(w),N=await f.getDimensions(p),T=w==="y",L=T?"top":"left",A=T?"bottom":"right",R=T?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[w]-b[w]-c.floating[E],B=b[w]-c.reference[w],V=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let G=V?V[R]:0;(!G||!await(f.isElement==null?void 0:f.isElement(V)))&&(G=d.floating[R]||c.floating[E]);const ee=M/2-B/2,ne=G/2-N[E]/2-1,K=Zl(m[L],ne),re=Zl(m[A],ne),$=K,P=G-N[E]-re,O=G/2-N[E]/2+ee,S=Rd($,O,P),F=!h.arrow&&Tr(s)!=null&&O!==S&&c.reference[E]/2-(O<$?K:re)-N[E]/2<0,j=F?O<$?O-$:O-P:0;return{[w]:b[w]+j,data:{[w]:S,centerOffset:O-S-j,...F&&{alignmentOffset:j}},reset:F}}});function zT(e,t,r){return(e?[...r.filter(s=>Tr(s)===e),...r.filter(s=>Tr(s)!==e)]:r.filter(s=>Gr(s)===s)).filter(s=>e?Tr(s)===e||(t?Kc(s)!==s:!1):!0)}const FT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Wv,autoAlignment:w=!0,...E}=zo(e,t),N=m!==void 0||b===Wv?zT(m||null,w,b):b,T=await Lu(t,E),L=((r=f.autoPlacement)==null?void 0:r.index)||0,A=N[L];if(A==null)return{};const R=pb(A,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==A)return{reset:{placement:N[0]}};const M=[T[Gr(A)],T[R[0]],T[R[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:M}],V=N[L+1];if(V)return{data:{index:L+1,overflows:B},reset:{placement:V}};const G=B.map(K=>{const re=Tr(K.placement);return[K.placement,re&&v?K.overflows.slice(0,2).reduce(($,P)=>$+P,0):K.overflows[0],K.overflows]}).sort((K,re)=>K[1]-re[1]),ne=((s=G.filter(K=>K[2].slice(0,Tr(K[0])?2:3).every(re=>re<=0))[0])==null?void 0:s[0])||G[0][0];return ne!==d?{data:{index:L+1,overflows:B},reset:{placement:ne}}:{}}}},HT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...T}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=Gr(s),A=Gr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),M=b||(A||!N?[Xc(d)]:$T(d));!b&&E!=="none"&&M.push(...RT(d,N,E,R));const B=[d,...M],V=await Lu(t,T),G=[];let ee=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&G.push(V[L]),m){const $=pb(s,f,R);G.push(V[$[0]],V[$[1]])}if(ee=[...ee,{placement:s,overflows:G}],!G.every($=>$<=0)){var ne,K;const $=(((ne=c.flip)==null?void 0:ne.index)||0)+1,P=B[$];if(P)return{data:{index:$,overflows:ee},reset:{placement:P}};let O=(K=ee.filter(S=>S.overflows[0]<=0).sort((S,F)=>S.overflows[1]-F.overflows[1])[0])==null?void 0:K.placement;if(!O)switch(w){case"bestFit":{var re;const S=(re=ee.map(F=>[F.placement,F.overflows.filter(j=>j>0).reduce((j,se)=>j+se,0)]).sort((F,j)=>F[1]-j[1])[0])==null?void 0:re[0];S&&(O=S);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function BT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Gr(r),d=Tr(r),h=xa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const WT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await BT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},qT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:T=>{let{x:L,y:A}=T;return{x:L,y:A}}},...h}=zo(e,t),p={x:r,y:o},v=await Lu(t,h),m=xa(Gr(s)),b=hb(m);let w=p[b],E=p[m];if(c){const T=b==="y"?"top":"left",L=b==="y"?"bottom":"right",A=w+v[T],R=w-v[L];w=Rd(A,w,R)}if(f){const T=m==="y"?"top":"left",L=m==="y"?"bottom":"right",A=E+v[T],R=E-v[L];E=Rd(A,E,R)}const N=d.fn({...t,[b]:w,[m]:E});return{...N,data:{x:N.x-r,y:N.y-o}}}}},UT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await Lu(t,d),p=Gr(r),v=Tr(r),m=xa(r)==="y",{width:b,height:w}=o.floating;let E,N;p==="top"||p==="bottom"?(E=p,N=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(N=p,E=v==="end"?"top":"bottom");const T=w-h[E],L=b-h[N],A=!t.middlewareData.shift;let R=T,M=L;if(m){const V=b-h.left-h.right;M=v||A?Zl(L,V):V}else{const V=w-h.top-h.bottom;R=v||A?Zl(T,V):V}if(A&&!v){const V=To(h.left,0),G=To(h.right,0),ee=To(h.top,0),ne=To(h.bottom,0);m?M=b-2*(V!==0||G!==0?V+G:To(h.left,h.right)):R=w-2*(ee!==0||ne!==0?ee+ne:To(h.top,h.bottom))}await f({...t,availableWidth:M,availableHeight:R});const B=await s.getDimensions(c.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function lr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){return lr(e).getComputedStyle(e)}const Uv=Math.min,Il=Math.max,Yc=Math.round;function vb(e){const t=Ur(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Yc(r)!==s||Yc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return yb(e)?(e.nodeName||"").toLowerCase():""}let dc;function mb(){if(dc)return dc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(dc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),dc):navigator.userAgent}function jr(e){return e instanceof lr(e).HTMLElement}function Ki(e){return e instanceof lr(e).Element}function yb(e){return e instanceof lr(e).Node}function jv(e){return typeof ShadowRoot>"u"?!1:e instanceof lr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function jT(e){return["table","td","th"].includes(Ji(e))}function Pd(e){const t=/firefox/i.test(mb()),r=Ur(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function bb(){return!/^((?!chrome|android).)*safari/i.test(mb())}function Oh(e){return["html","body","#document"].includes(Ji(e))}function wb(e){return Ki(e)?e:e.contextElement}const xb={x:1,y:1};function As(e){const t=wb(e);if(!jr(t))return xb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=vb(t);let f=(c?Yc(r.width):r.width)/o,d=(c?Yc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Jl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=wb(e);let h=xb;t&&(o?Ki(o)&&(h=As(o)):h=As(e));const p=d?lr(d):window,v=!bb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const N=lr(d),T=o&&Ki(o)?lr(o):o;let L=N.frameElement;for(;L&&o&&T!==N;){const A=As(L),R=L.getBoundingClientRect(),M=getComputedStyle(L);R.x+=(L.clientLeft+parseFloat(M.paddingLeft))*A.x,R.y+=(L.clientTop+parseFloat(M.paddingTop))*A.y,m*=A.x,b*=A.y,w*=A.x,E*=A.y,m+=R.x,b+=R.y,L=lr(L).frameElement}}return{width:w,height:E,top:b,right:m+w,bottom:b+E,left:m,x:m,y:b}}function Xi(e){return((yb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _b(e){return Jl(Xi(e)).left+Nu(e).scrollLeft}function Ql(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jv(e)&&e.host||Xi(e);return jv(t)?t.host:t}function Sb(e){const t=Ql(e);return Oh(t)?t.ownerDocument.body:jr(t)&&Mu(t)?t:Sb(t)}function Zc(e,t){var r;t===void 0&&(t=[]);const o=Sb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=lr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Zc(o))}function Vv(e,t,r){return t==="viewport"?Pl(function(o,s){const c=lr(o),f=Xi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=bb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Ki(t)?Pl(function(o,s){const c=Jl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=jr(o)?As(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Pl(function(o){const s=Xi(o),c=Nu(o),f=o.ownerDocument.body,d=Il(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Il(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+_b(o);const v=-c.scrollTop;return Ur(f).direction==="rtl"&&(p+=Il(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Xi(e)))}function Gv(e){return jr(e)&&Ur(e).position!=="fixed"?e.offsetParent:null}function Kv(e){const t=lr(e);let r=Gv(e);for(;r&&jT(r)&&Ur(r).position==="static";)r=Gv(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Ur(r).position==="static"&&!Pd(r))?t:r||function(o){let s=Ql(o);for(;jr(s)&&!Oh(s);){if(Pd(s))return s;s=Ql(s)}return null}(e)||t}function VT(e,t,r){const o=jr(t),s=Xi(t),c=Jl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Nu(t)),jr(t)){const h=Jl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=_b(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const GT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Zc(p).filter(T=>Ki(T)&&Ji(T)!=="body"),w=null;const E=Ur(p).position==="fixed";let N=E?Ql(p):p;for(;Ki(N)&&!Oh(N);){const T=Ur(N),L=Pd(N);(E?L||w:L||T.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=T:b=b.filter(A=>A!==N),N=Ql(N)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Vv(t,v,s);return p.top=Il(m.top,p.top),p.right=Uv(m.right,p.right),p.bottom=Uv(m.bottom,p.bottom),p.left=Il(m.left,p.left),p},Vv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=jr(r),c=Xi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Ji(r)!=="body"||Mu(c))&&(f=Nu(r)),jr(r))){const p=Jl(r);d=As(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Ki,getDimensions:function(e){return jr(e)?vb(e):e.getBoundingClientRect()},getOffsetParent:Kv,getDocumentElement:Xi,getScale:As,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Kv,c=this.getDimensions;return{reference:VT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ur(e).direction==="rtl"},KT=(e,t,r)=>{const o=new Map,s={platform:GT,...r},c={...s.platform,_c:o};return IT(e,t,{...s,platform:c})},Yi={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:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ea(e,t){let r=Yi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Yi.themes[r.$extend]||{}:(r=null,o=Yi[t]):r=null;while(r);return o}function XT(e){const t=[e];let r=Yi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Yi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Xv(e){const t=[e];let r=Yi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Yi.themes[r.$extend]||{}):r=null;while(r);return t}let ta=!1;if(typeof window<"u"){ta=!1;try{const e=Object.defineProperty({},"passive",{get(){ta=!0}});window.addEventListener("test",null,e)}catch{}}let kb=!1;typeof window<"u"&&typeof navigator<"u"&&(kb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Tb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Yv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Zv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Jv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Zf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Qn=[];let So=null;const Qv={};function em(e){let t=Qv[e];return t||(t=Qv[e]=[]),t}let Id=function(){};typeof window<"u"&&(Id=window.Element);function at(e){return function(t){return ea(t.theme,e)}}const Jf="__floating-vue__popper",Cb=()=>ut({name:"VPopper",provide(){return{[Jf]:{parentPopper:this}}},inject:{[Jf]:{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:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>Tb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Id,Boolean],default:at("container")},boundary:{type:[String,Id],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!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(e=>e.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 e;return(e=this[Jf])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?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((e,t)=>(e[t]="$_computePosition",e),{})},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:e=null,skipDelay:t=!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(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!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:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.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 e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(WT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(FT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(qT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(HT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(DT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(UT({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 KT(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),So&&this.instantMove&&So.instantMove&&So!==this.parentPopper){So.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(So=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Zf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Zc(this.$_referenceNode),...Zc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Qn.length;r++)t=Qn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Qn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Xv(this.theme))em(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Zf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Jv(Qn,this),Qn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Xv(this.theme)){const o=em(r);Jv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}So===this&&(So=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Zf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Yv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Yv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Zv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Zv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ta?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Dl>=e.left&&Dl<=e.right&&zl>=e.top&&zl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Dl-Di,o=zl-zi,s=t.left+t.width/2-Di+(t.top+t.height/2)-zi+t.width+t.height,c=Di+r*s,f=zi+o*s;return hc(Di,zi,c,f,t.left,t.top,t.left,t.bottom)||hc(Di,zi,c,f,t.left,t.top,t.right,t.top)||hc(Di,zi,c,f,t.right,t.top,t.right,t.bottom)||hc(Di,zi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(kb){const e=ta?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>tm(t),e),document.addEventListener("touchend",t=>nm(t,!0),e)}else window.addEventListener("mousedown",e=>tm(e),!0),window.addEventListener("click",e=>nm(e,!1),!0);window.addEventListener("resize",JT)}function tm(e,t){for(let r=0;r<Qn.length;r++){const o=Qn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function nm(e,t){YT(e,t)}function YT(e,t){const r={};for(let o=Qn.length-1;o>=0;o--){const s=Qn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&rm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&rm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function rm(e,t,r){return r.closeAllPopover||r.closePopover&&t||ZT(e,r)&&!t}function ZT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function JT(){for(let e=0;e<Qn.length;e++)Qn[e].$_computePosition()}function im(){for(let e=0;e<Qn.length;e++)Qn[e].hide()}let Di=0,zi=0,Dl=0,zl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Di=Dl,zi=zl,Dl=e.clientX,zl=e.clientY},ta?{passive:!0}:void 0);function hc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const QT={extends:Cb()},$u=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function eC(e,t,r,o,s,c){return ce(),xe("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[yn(e.$slots,"default",Q_(rb(e.slotData)))],2)}const tC=$u(QT,[["render",eC]]);function nC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Mc;function Dd(){Dd.init||(Dd.init=!0,Mc=nC()!==-1)}var Ou={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Dd(),Tt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Mc&&this.$el.appendChild(e),e.data="about:blank",Mc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Mc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const rC=xy();by("data-v-b329ee4c");const iC={class:"resize-observer",tabindex:"-1"};wy();const oC=rC((e,t,r,o,s,c)=>(ce(),nt("div",iC)));Ou.render=oC;Ou.__scopeId="data-v-b329ee4c";Ou.__file="src/components/ResizeObserver.vue";const Eb=(e="theme")=>({computed:{themeClass(){return XT(this[e])}}}),sC=ut({name:"VPopperContent",components:{ResizeObserver:Ou},mixins:[Eb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),lC=["id","aria-hidden","tabindex","data-popper-placement"],aC={ref:"inner",class:"v-popper__inner"},cC=ie("div",{class:"v-popper__arrow-outer"},null,-1),uC=ie("div",{class:"v-popper__arrow-inner"},null,-1),fC=[cC,uC];function dC(e,t,r,o,s,c){const f=Ro("ResizeObserver");return ce(),xe("div",{id:e.popperId,ref:"popover",class:it(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:en(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Od(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ie("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ie("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ie("div",aC,[e.mounted?(ce(),xe(ct,{key:0},[ie("div",null,[yn(e.$slots,"default")]),e.handleResize?(ce(),nt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),ie("div",{ref:"arrow",class:"v-popper__arrow-container",style:en(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},fC,4)],4)],46,lC)}const Ab=$u(sC,[["render",dC]]),Lb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let zd=function(){};typeof window<"u"&&(zd=window.Element);const hC=ut({name:"VPopperWrapper",components:{Popper:tC,PopperContent:Ab},mixins:[Lb,Eb("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,zd,Boolean],default:void 0},boundary:{type:[String,zd],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":e=>!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(e=>e!==this.$refs.popperContent.$el)}}});function pC(e,t,r,o,s,c){const f=Ro("PopperContent"),d=Ro("Popper");return ce(),nt(d,di({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:E,handleResize:N,onResize:T,classes:L,result:A})=>[yn(e.$slots,"default",{shown:p,show:w,hide:E}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":N,classes:L,result:A,onHide:E,onResize:T},{default:rt(()=>[yn(e.$slots,"popper",{shown:p,hide:E})]),_: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 Rh=$u(hC,[["render",pC]]);({...Rh});({...Rh});const gC={...Rh,name:"VTooltip",vPopperTheme:"tooltip"},vC=ut({name:"VTooltipDirective",components:{Popper:Cb(),PopperContent:Ab},mixins:[Lb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ea(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ea(e.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(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),mC=["innerHTML"],yC=["textContent"];function bC(e,t,r,o,s,c){const f=Ro("PopperContent"),d=Ro("Popper");return ce(),nt(d,di({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:E,onResize:N,classes:T,result:L})=>[Oe(f,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:T,result:L,onHide:w,onResize:N},{default:rt(()=>[e.html?(ce(),xe("div",{key:0,innerHTML:e.finalContent},null,8,mC)):(ce(),xe("div",{key:1,textContent:Be(e.finalContent)},null,8,yC))]),_: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 wC=$u(vC,[["render",bC]]),Mb="v-popper--has-tooltip";function xC(e,t){let r=e.placement;if(!r&&t)for(const o of Tb)t[o]&&(r=o);return r||(r=ea(e.theme||"tooltip","placement")),r}function Nb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=xC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Qf,na,_C=0;function SC(){if(Qf)return;na=Ue([]),Qf=db({name:"VTooltipDirectiveApp",setup(){return{directives:na}},render(){return this.directives.map(t=>wa(wC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Qf.mount(e)}function $b(e,t,r){SC();const o=Ue(Nb(e,t,r)),s=Ue(!1),c={id:_C++,options:o,shown:s};return na.value.push(c),e.classList&&e.classList.add(Mb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ph(e){if(e.$_popper){const t=na.value.indexOf(e.$_popper.item);t!==-1&&na.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Mb)}function om(e,{value:t,modifiers:r}){const o=Nb(e,t,r);if(!o.content||ea(o.theme||"tooltip","disabled"))Ph(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=$b(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const kC={beforeMount:om,updated:om,beforeUnmount(e){Ph(e)}},TC=kC,Ob=gC,Rb={options:Yi};function Pb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const CC=/^[A-Za-z]:\//;function EC(e=""){return e&&e.replace(/\\/g,"/").replace(CC,t=>t.toUpperCase())}const AC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,sm=/^\/([A-Za-z]:)?$/;function LC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const lm=function(...e){e=e.map(o=>EC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:LC();!s||s.length===0||(t=`${s}/${t}`,r=am(s))}return t=MC(t,!r),r&&!am(t)?`/${t}`:t.length>0?t:"."};function MC(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const am=function(e){return AC.test(e)},NC=function(e,t){const r=lm(e).replace(sm,"$1").split("/"),o=lm(t).replace(sm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function $C(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Ib(e,t,r,o){const s=NC(t,e),c={id:OC(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function OC(e,t){return $C(`${e}${t||""}`)}function Db(e){return ra(e)}function ra(e){return e.type==="test"}function zb(e){const t=[],r=Ih(e);for(const o of r)if(ra(o))t.push(o);else for(const s of o.tasks)if(ra(s))t.push(s);else{const c=zb(s);for(const f of c)t.push(f)}return t}function Dh(e=[]){return Ih(e).flatMap(t=>ra(t)?[t]:[t,...Dh(t.tasks)])}function RC(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const cm="q",um="s",PC=6e4;function Fb(e){return e}const IC=Fb,{clearTimeout:DC,setTimeout:zC}=globalThis,FC=Math.random.bind(Math);function HC(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Fb,deserialize:d=IC,resolver:h,bind:p="rpc",timeout:v=PC}=t,m=new Map;let b,w=!1;const E=new Proxy({},{get(L,A){if(A==="$functions")return e;if(A==="$close")return N;if(A==="then"&&!c.includes("then")&&!("then"in e))return;const R=(...B)=>{r(f({m:A,a:B,t:cm}))};if(c.includes(A))return R.asEvent=R,R;const M=async(...B)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${A}"`);if(b)try{await b}finally{b=void 0}return new Promise((V,G)=>{var K;const ee=WC();let ne;v>=0&&(ne=zC(()=>{var re;try{if(((re=t.onTimeoutError)==null?void 0:re.call(t,A,B))!==!0)throw new Error(`[birpc] timeout on calling "${A}"`)}catch($){G($)}m.delete(ee)},v),typeof ne=="object"&&(ne=(K=ne.unref)==null?void 0:K.call(ne))),m.set(ee,{resolve:V,reject:G,timeoutId:ne,method:A}),r(f({m:A,a:B,i:ee,t:"q"}))})};return M.asEvent=R,M}});function N(L){w=!0,m.forEach(({reject:A,method:R})=>{A(L||new Error(`[birpc] rpc is closed, cannot call "${R}"`))}),m.clear(),s(T)}async function T(L,...A){var M,B,V;let R;try{R=d(L)}catch(G){if(((M=t.onGeneralError)==null?void 0:M.call(t,G))!==!0)throw G;return}if(R.t===cm){const{m:G,a:ee}=R;let ne,K;const re=h?h(G,e[G]):e[G];if(!re)K=new Error(`[birpc] function "${G}" not found`);else try{ne=await re.apply(p==="rpc"?E:e,ee)}catch($){K=$}if(R.i){if(K&&t.onError&&t.onError(K,G,ee),K&&t.onFunctionError&&t.onFunctionError(K,G,ee)===!0)return;if(!K)try{r(f({t:um,i:R.i,r:ne}),...A);return}catch($){if(K=$,((B=t.onGeneralError)==null?void 0:B.call(t,$,G,ee))!==!0)throw $}try{r(f({t:um,i:R.i,e:K}),...A)}catch($){if(((V=t.onGeneralError)==null?void 0:V.call(t,$,G,ee))!==!0)throw $}}}else{const{i:G,r:ee,e:ne}=R,K=m.get(G);K&&(DC(K.timeoutId),ne?K.reject(ne):K.resolve(ee)),m.delete(G)}}return b=o(T),E}const BC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function WC(e=21){let t="",r=e;for(;r--;)t+=BC[FC()*64|0];return t}const{parse:Hb,stringify:qC}=JSON,{keys:UC}=Object,ia=String,Bb="string",fm={},Jc="object",Wb=(e,t)=>t,jC=e=>e instanceof ia?ia(e):e,VC=(e,t)=>typeof t===Bb?new ia(t):t,qb=(e,t,r,o)=>{const s=[];for(let c=UC(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ia){const v=e[p];typeof v===Jc&&!t.has(v)?(t.add(v),r[h]=fm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==fm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,qb.apply(null,h))}return r},dm=(e,t,r)=>{const o=ia(t.push(r)-1);return e.set(r,o),o},Fd=(e,t)=>{const r=Hb(e,VC).map(jC),o=r[0],s=t||Wb,c=typeof o===Jc&&o?qb(r,new Set,o,s):o;return s.call({"":c},"",c)},Ub=(e,t,r)=>{const o=t&&typeof t===Jc?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Wb,s=new Map,c=[],f=[];let d=+dm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=qC(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case Jc:if(b===null)return b;case Bb:return s.get(b)||dm(s,c,b)}return b}},GC=e=>Hb(Ub(e));class jb{constructor(){ds(this,"filesMap",new Map);ds(this,"pathsSet",new Set);ds(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Ib(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function KC(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=A=>A,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new jb,waitForConnection:L,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(A){var R;A==null||A.forEach(([M,B])=>{v.state.clearFiles({config:M},[B])}),(R=r.onSpecsCollected)==null||R.call(r,A)},onPathsCollected(A){var R;v.state.collectPaths(A),(R=r.onPathsCollected)==null||R.call(r,A)},onCollected(A){var R;v.state.collectFiles(A),(R=r.onCollected)==null||R.call(r,A)},onTaskUpdate(A){var R;v.state.updateTasks(A),(R=r.onTaskUpdate)==null||R.call(r,A)},onUserConsoleLog(A){var R;v.state.updateUserLog(A),(R=r.onUserConsoleLog)==null||R.call(r,A)},onFinished(A,R){var M;(M=r.onFinished)==null||M.call(r,A,R)},onFinishedReportCoverage(){var A;(A=r.onFinishedReportCoverage)==null||A.call(r)}},w={post:A=>v.ws.send(A),on:A=>m=A,serialize:A=>Ub(A,(R,M)=>M instanceof Error?{name:M.name,message:M.message,stack:M.stack}:M),deserialize:Fd,onTimeoutError(A){throw new Error(`[vitest-ws-client]: Timeout calling "${A}"`)}};v.rpc=HC(b,w);let E;function N(A=!1){A&&(p=c),v.ws=new h(e),T()}function T(){E=new Promise((A,R)=>{var B,V;const M=(V=(B=setTimeout(()=>{R(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:B.unref)==null?void 0:V.call(B);v.ws.OPEN===v.ws.readyState&&A(),v.ws.addEventListener("open",()=>{p=c,A(),clearTimeout(M)})}),v.ws.addEventListener("message",A=>{m(A.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}T();function L(){return E}return v}function zh(e){return Y0()?(iS(e),!0):!1}const ed=new WeakMap,XC=(...e)=>{var t;const r=e[0],o=(t=Do())==null?void 0:t.proxy;if(o==null&&!Iy())throw new Error("injectLocal must be called in setup");return o&&ed.has(o)&&r in ed.get(o)?ed.get(o)[r]:mn(...e)},YC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ZC=Object.prototype.toString,JC=e=>ZC.call(e)==="[object Object]",Qc=()=>{};function Vb(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Gb=e=>e();function Kb(e,t={}){let r,o,s=Qc;const c=h=>{clearTimeout(h),s(),s=Qc};let f;return h=>{const p=Ut(e),v=Ut(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function QC(e=Gb,t={}){const{initialState:r="active"}=t,o=Xb(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:pa(o),pause:s,resume:c,eventFilter:f}}function hm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function pm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function eE(e){return Do()}function td(e){return Array.isArray(e)?e:[e]}function Xb(...e){if(e.length!==1)return ga(...e);const t=e[0];return typeof t=="function"?pa(hy(()=>({get:t,set:Qc}))):Ue(t)}function pc(e,t=200,r={}){return Vb(Kb(t,r),e)}function Yb(e,t,r={}){const{eventFilter:o=Gb,...s}=r;return xt(e,Vb(o,t),s)}function Zb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=QC(o,{initialState:s});return{stop:Yb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Fh(e,t=!0,r){eE()?so(e,r):t?e():Tt(e)}function Hd(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:N}={}){let T=null;const A=[new Promise(R=>{T=xt(e,M=>{m(M)!==t&&(T?T():Tt(()=>T==null?void 0:T()),R(M))},{flush:b,deep:w,immediate:!0})})];return E!=null&&A.push(hm(E,N).then(()=>Ut(e)).finally(()=>T==null?void 0:T())),Promise.race(A)}function o(m,b){if(!Ct(m))return r(M=>M===m,b);const{flush:w="sync",deep:E=!1,timeout:N,throwOnTimeout:T}=b??{};let L=null;const R=[new Promise(M=>{L=xt([e,m],([B,V])=>{t!==(B===V)&&(L?L():Tt(()=>L==null?void 0:L()),M(B))},{flush:w,deep:E,immediate:!0})})];return N!=null&&R.push(hm(N,T).then(()=>Ut(e)).finally(()=>(L==null||L(),Ut(e)))),Promise.race(R)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const E=Array.from(w);return E.includes(m)||E.includes(Ut(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(Ut(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Hd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Hd(e,!t)}}}function gm(e){return Hd(e)}function tE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ct(e),c=tn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Ut(r);return c.value=c.value===h?Ut(o):h,c.value}}return s?f:[c,f]}function Hh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Yb(e,t,{...c,eventFilter:Kb(o,{maxWait:s})})}function nE(e,t,r){return xt(e,t,{...r,immediate:!0})}function rE(e,t,r){const o=xt(e,(...s)=>(Tt(()=>o()),t(...s)),r);return o}function iE(e,t,r){let o;Ct(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Qc}=o,h=tn(!s),p=f?tn(t):Ue(t);let v=0;return Ah(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(N=>{m(()=>{c&&(c.value=!1),w||N()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?Se(()=>(h.value=!0,p.value)):p}const Lr=YC?window:void 0;function eu(e){var t;const r=Ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Qi(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=Se(()=>{const d=td(Ut(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=nE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>eu(p)))!=null?h:[Lr].filter(p=>p!=null),td(Ut(s.value?e[1]:e[0])),td(U(s.value?e[2]:e[1])),Ut(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=JC(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,m)))))},{flush:"post"}),f=()=>{c(),r()};return zh(r),f}function oE(){const e=tn(!1),t=Do();return t&&so(()=>{e.value=!0},t),e}function Jb(e){const t=oE();return Se(()=>(t.value,!!e()))}function sE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Qb(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Lr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=sE(t);return Qi(s,c,v=>{v.repeat&&Ut(d)||h(v)&&r(v)},f)}function lE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Lr,once:c=!1}=t,f=tn(!1),d=Se(()=>o?1e3/Ut(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),zh(b),{isActive:pa(f),pause:b,resume:m}}const aE=Symbol("vueuse-ssr-width");function cE(){const e=Iy()?XC(aE,null):null;return typeof e=="number"?e:void 0}function ew(e,t={}){const{window:r=Lr,ssrWidth:o=cE()}=t,s=Jb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=tn(typeof o=="number"),f=tn(),d=tn(!1),h=p=>{d.value=p.matches};return Ah(()=>{if(c.value){c.value=!s.value;const p=Ut(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=pm(b[1])),w&&E&&(E=o<=pm(w[1])),m?!E:E});return}s.value&&(f.value=r.matchMedia(Ut(e)),d.value=f.value.matches)}),Qi(f,"change",h,{passive:!0}),Se(()=>d.value)}const gc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vc="__vueuse_ssr_handlers__",uE=fE();function fE(){return vc in gc||(gc[vc]=gc[vc]||{}),gc[vc]}function tw(e,t){return uE[e]||t}function dE(e){return ew("(prefers-color-scheme: dark)",e)}function hE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const pE={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},vm="vueuse-storage";function nw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Lr,eventFilter:b,onError:w=re=>{console.error(re)},initOnMounted:E}=o,N=(v?tn:Ue)(typeof t=="function"?t():t),T=Se(()=>Ut(e));if(!r)try{r=tw("getDefaultStorage",()=>{var re;return(re=Lr)==null?void 0:re.localStorage})()}catch(re){w(re)}if(!r)return N;const L=Ut(t),A=hE(L),R=(s=o.serializer)!=null?s:pE[A],{pause:M,resume:B}=Zb(N,()=>G(N.value),{flush:c,deep:f,eventFilter:b});xt(T,()=>ne(),{flush:c}),m&&d&&Fh(()=>{r instanceof Storage?Qi(m,"storage",ne,{passive:!0}):Qi(m,vm,K),E&&ne()}),E||ne();function V(re,$){if(m){const P={key:T.value,oldValue:re,newValue:$,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",P):new CustomEvent(vm,{detail:P}))}}function G(re){try{const $=r.getItem(T.value);if(re==null)V($,null),r.removeItem(T.value);else{const P=R.write(re);$!==P&&(r.setItem(T.value,P),V($,P))}}catch($){w($)}}function ee(re){const $=re?re.newValue:r.getItem(T.value);if($==null)return h&&L!=null&&r.setItem(T.value,R.write(L)),L;if(!re&&p){const P=R.read($);return typeof p=="function"?p(P,L):A==="object"&&!Array.isArray(P)?{...L,...P}:P}else return typeof $!="string"?$:R.read($)}function ne(re){if(!(re&&re.storageArea!==r)){if(re&&re.key==null){N.value=L;return}if(!(re&&re.key!==T.value)){M();try{(re==null?void 0:re.newValue)!==R.write(N.value)&&(N.value=ee(re))}catch($){w($)}finally{re?Tt(B):B()}}}}function K(re){ne(re.detail)}return N}const gE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function vE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Lr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=dE({window:s}),w=Se(()=>b.value?"dark":"light"),E=h||(f==null?Xb(o):nw(f,o,c,{window:s,listenToStorageChanges:d})),N=Se(()=>E.value==="auto"?w.value:E.value),T=tw("updateHTMLAttrs",(M,B,V)=>{const G=typeof M=="string"?s==null?void 0:s.document.querySelector(M):eu(M);if(!G)return;const ee=new Set,ne=new Set;let K=null;if(B==="class"){const $=V.split(/\s/g);Object.values(m).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{$.includes(P)?ee.add(P):ne.add(P)})}else K={key:B,value:V};if(ee.size===0&&ne.size===0&&K===null)return;let re;v&&(re=s.document.createElement("style"),re.appendChild(document.createTextNode(gE)),s.document.head.appendChild(re));for(const $ of ee)G.classList.add($);for(const $ of ne)G.classList.remove($);K&&G.setAttribute(K.key,K.value),v&&(s.getComputedStyle(re).opacity,document.head.removeChild(re))});function L(M){var B;T(t,r,(B=m[M])!=null?B:M)}function A(M){e.onChanged?e.onChanged(M,L):L(M)}xt(N,A,{flush:"post",immediate:!0}),Fh(()=>A(N.value));const R=Se({get(){return p?E.value:N.value},set(M){E.value=M}});return Object.assign(R,{store:E,system:w,state:N})}function mE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=vE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=Se(()=>o.system.value);return Se({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function rw(e,t,r={}){const{window:o=Lr,...s}=r;let c;const f=Jb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Se(()=>{const m=Ut(e);return Array.isArray(m)?m.map(b=>eu(b)):[eu(m)]}),p=xt(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return zh(v),{isSupported:f,stop:v}}function Ru(e,t,r={}){const{window:o=Lr}=r;return nw(e,t,o==null?void 0:o.localStorage,r)}function yE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Lr}=t;if(!d)return tr(r);const h=tr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const R=d.location.hash||"",M=R.indexOf("?");return M>0?R.slice(M):""}else return(d.location.hash||"").replace(/^#/,"")}function v(R){const M=R.toString();if(e==="history")return`${M?`?${M}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${M?`#${M}`:""}`;const B=d.location.hash||"#",V=B.indexOf("?");return V>0?`${d.location.search||""}${B.slice(0,V)}${M?`?${M}`:""}`:`${d.location.search||""}${B}${M?`?${M}`:""}`}function m(){return new URLSearchParams(p())}function b(R){const M=new Set(Object.keys(h));for(const B of R.keys()){const V=R.getAll(B);h[B]=V.length>1?V:R.get(B)||"",M.delete(B)}Array.from(M).forEach(B=>delete h[B])}const{pause:w,resume:E}=Zb(h,()=>{const R=new URLSearchParams("");Object.keys(h).forEach(M=>{const B=h[M];Array.isArray(B)?B.forEach(V=>R.append(M,V)):o&&B==null||s&&!B?R.delete(M):R.set(M,B)}),N(R,!1)},{deep:!0});function N(R,M){w(),M&&b(R),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(R)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(R)),E()}function T(){c&&N(m(),!0)}const L={passive:!0};Qi(d,"popstate",T,L),e!=="history"&&Qi(d,"hashchange",T,L);const A=m();return A.keys().next().value?b(A):Object.assign(h,r),h}function iw(e={}){const{window:t=Lr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=tn(r),h=tn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:w}=t.visualViewport;d.value=Math.round(m*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Fh(p);const v={passive:!0};if(Qi("resize",p,v),t&&f==="visual"&&t.visualViewport&&Qi(t.visualViewport,"resize",p,v),s){const m=ew("(orientation: portrait)");xt(m,()=>p())}return{width:d,height:h}}const Bd=tn([]),Kn=tn([]),Mr=Ru("vitest-ui_task-tree-opened",[],{shallow:!0}),tu=Se(()=>new Set(Mr.value)),un=Ru("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),qn=Ue(un.value.search),bE={"&":"&","<":"<",">":">",'"':""","'":"'"};function ow(e){return e.replace(/[&<>"']/g,t=>bE[t])}const wE=Se(()=>{const e=qn.value.toLowerCase();return e.length?new RegExp(`(${ow(e)})`,"gi"):null}),sw=Se(()=>qn.value.trim()!==""),Qe=tr({failed:un.value.failed,success:un.value.success,skipped:un.value.skipped,onlyTests:un.value.onlyTests}),Wd=Se(()=>!!(Qe.failed||Qe.success||Qe.skipped)),Pu=tn([]),Is=Ue(!1),mm=Se(()=>{const e=un.value.expandAll;return Mr.value.length>0?e!==!0:e!==!1}),xE=Se(()=>{const e=sw.value,t=Wd.value,r=Qe.onlyTests,o=Me.summary.filesFailed,s=Me.summary.filesSuccess,c=Me.summary.filesSkipped,f=Me.summary.filesRunning,d=Pu.value;return Me.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function _a(e){return Object.hasOwnProperty.call(e,"tasks")}function _E(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function lw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function SE(e){return e.type==="test"}function kE(e){return e.mode==="run"&&e.type==="test"}function On(e){return e.type==="file"}function pi(e){return e.type==="file"||e.type==="suite"}function TE(e=Me.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function oa(e,t=!1){var o,s,c,f,d;let r=Me.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:tu.value.size>0&&tu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:lw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Me.nodes.set(e.id,r),Me.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)Sa(e.id,e.tasks[h],!0)}function aw(e,t){const r=Me.nodes.get(e);if(!r||!pi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!_a(o)))return Sa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function CE(e){const t=Me.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Db(r)||Sa(t.parentId,r,!1)}function Sa(e,t,r){var f,d,h,p,v;const o=Me.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Me.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):(Db(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:tu.value.size>0&&tu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Me.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&_a(t)))for(let m=0;m<t.tasks.length;m++)Sa(s.id,t.tasks[m],r)}function EE(e){const t=Me.nodes.get(e);if(!t||!pi(t))return;const r=new Set(Mr.value);r.delete(t.id);const o=[...LE(t)];Mr.value=Array.from(r),Kn.value=o}function AE(){qd(Me.root.tasks);const e=[...Kn.value.filter(On)];qd(e),Mr.value=[],un.value.expandAll=!0,Kn.value=e}function qd(e){for(const t of e)pi(t)&&(t.expanded=!1,qd(t.tasks))}function*cw(e,t){if(t&&(yield e.id),pi(e))for(let r=0;r<e.tasks.length;r++)yield*cw(e.tasks[r],!0)}function*LE(e){const t=e.id,r=new Set(cw(e,!1));for(let o=0;o<Kn.value.length;o++){const s=Kn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Iu=Ue("idle"),ms=Se(()=>Iu.value==="idle"),Wi=Ue([]);function ME(e,t,r){return e?dw(e,t,r):!1}function Bh(e,t){const r=[...uw(e,t)];Kn.value=r,Pu.value=r.filter(On).map(o=>cr(o.id))}function*uw(e,t){for(const r of TE())yield*fw(r,e,t)}function*fw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Ud(e,o,w=>ym(w,t,r)))c.push([m,b]);else{for(const[m,b]of Ud(e,o,w=>ym(w,t,r)))pi(b)?(s.set(b.id,m),On(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!On(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...$E(c,r.onlyTests,o,d,f)].reverse(),p=Me.nodes,v=new Set(h.filter(m=>{var b;return On(m)||pi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return On(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function NE(e,t,r,o,s){if(o){if(On(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}function*$E(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=pi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Me.nodes.get(d.parentId);for(;p;)r.add(p.id),On(p)&&o.add(p.id),p=Me.nodes.get(p.parentId);yield d;continue}if(h){const p=NE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Me.nodes.get(d.parentId);p&&On(p)&&o.add(p.id),yield d}}}function OE(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function dw(e,t,r){if(t.length===0||_E(e.name,t))if(r.success||r.failed||r.skipped){if(OE(e,r))return!0}else return!0;return!1}function*Ud(e,t,r){const o=r(e);if(o)if(SE(e)){let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}else if(On(e))t.add(e.id);else{t.add(e.id);let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}if(yield[o,e],pi(e))for(let s=0;s<e.tasks.length;s++)yield*Ud(e.tasks[s],t,r)}function ym(e,t,r){const o=mt.state.idMap.get(e.id);return o?dw(o,t,r):!1}function RE(e,t,r){const o=aw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Sa(s.id,p,!1);s.expanded=!0;const f=new Set(Mr.value);f.add(s.id);const d=new Set(fw(s,t,r)),h=[...DE(s,d)];Mr.value=Array.from(f),Kn.value=h}function PE(e,t){Wh(Me.root.tasks,!1);const r=[...uw(e,t)];un.value.expandAll=!1,Mr.value=[],Kn.value=r,Pu.value=r.filter(On).map(o=>cr(o.id))}function IE(e,t){if(e.size)for(const r of Kn.value)e.has(r.id)&&(r.expanded=!0);else t&&Wh(Kn.value.filter(On),!0)}function Wh(e,t){for(const r of e)pi(r)&&(r.expanded=!0,Wh(r.tasks,!1));t&&(un.value.expandAll=!1,Mr.value=[])}function*DE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Kn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function qh(e){return zb(e).some(t=>{var r,o;return(o=(r=t.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 zE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>oa(s,t)),Bd.value=[...Me.root.tasks],Bh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function FE(e){queueMicrotask(()=>{const t=Me.pendingTasks,r=mt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function bm(e,t,r,o,s){e&&jE(r);const c=!e;queueMicrotask(()=>{t?WE(c):qE(c)}),queueMicrotask(()=>{VE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Bd.value&&qh(Bd.value.map(f=>cr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{UE(o,s,t)})}function*HE(){yield*Kn.value.filter(kE)}function BE(){const e=mt.state.idMap;let t;for(const r of HE())t=e.get(r.parentId),t&&_a(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function WE(e){const t=mt.state.getFiles(),r=Me.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)oa(o[c],e),nu(o[c].tasks);const s=Me.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=cr(f.id);if(!d)continue;oa(d,e);const h=d.tasks;h!=null&&h.length&&nu(d.tasks)}}function qE(e){const t=new Map(Me.pendingTasks.entries());Me.pendingTasks.clear();const r=Me.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>cr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],oa(s,!1),nu(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Me.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=cr(h.id);if(!p)continue;const v=t.get(p.id);v&&(oa(p,e),nu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function UE(e,t,r=!1){const o=un.value.expandAll,s=o!==!0,c=new Set(Mr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{wm(e,t,r)}),Is.value||queueMicrotask(()=>{(Kn.value.length||r)&&(Is.value=!0)}),f&&(queueMicrotask(()=>{IE(c,r),s&&(un.value.expandAll=!1)}),queueMicrotask(()=>{wm(e,t,r)}))}function wm(e,t,r){Bh(e,t),r&&(BE(),Iu.value="idle")}function nu(e){let t;for(let r=0;r<e.length;r++)t=e[r],_a(t)?aw(t.id,!0):CE(t.id)}function jE(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function VE(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Me.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,cr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[b,w]of o){if(!w)continue;const E=r.get(b);E&&(E.mode=w.mode,E.setupDuration=w.setupDuration,E.prepareDuration=w.prepareDuration,E.environmentLoad=w.environmentLoad,E.collectDuration=w.collectDuration,E.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,E.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:N,success:T,skipped:L,total:A,ignored:R,todo:M}=hw(w);s.totalTests+=A,s.testsFailed+=N,s.testsSuccess+=T,s.testsSkipped+=L,s.testsTodo+=M,s.testsIgnore+=R}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function hw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of pw(e))(!r||ME(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function GE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>hw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*pw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],ra(r)?yield r:yield*pw(r.tasks)}class KE{constructor(t=[],r=!1,o=500,s={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},c=new Map,f=new Map,d=tr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){ds(this,"rafCollector");ds(this,"resumeEndRunId");this.projects=t,this.onTaskUpdateCalled=r,this.resumeEndTimeout=o,this.root=s,this.pendingTasks=c,this.nodes=f,this.summary=d,this.rafCollector=lE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r),zE(t,!0,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){FE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{bm(t,r,this.summary,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}):bm(t,r,this.summary,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collectTestsTotal(t,r,o,s){return GE(t,r,o,s,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{EE(t)})}expandNode(t){queueMicrotask(()=>{RE(t,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{AE()})}expandAllNodes(){queueMicrotask(()=>{PE(qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{Bh(qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Me=new KE,Hr=Ue([414,896]),Du=yE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),eo=ga(Du,"file"),Zn=ga(Du,"view"),gw=ga(Du,"line"),vw=ga(Du,"test"),Ds=Ue(),Ls=Ue(!0),to=Ue(!1),ru=Ue(!0),ys=Se(()=>{var e;return(e=zu.value)==null?void 0:e.coverage}),jd=Se(()=>{var e;return(e=ys.value)==null?void 0:e.enabled}),bs=Se(()=>jd.value&&!!ys.value.htmlReporter),Ms=Ru("vitest-ui_splitpanes-mainSizes",[33,67]),No=Ru("vitest-ui_splitpanes-detailSizes",[33,67]),Nn=tr({navigation:Ms.value[0],details:{size:Ms.value[1],browser:No.value[0],main:No.value[1]}}),xm=Se(()=>{var e;if(bs.value){const t=ys.value.reportsDirectory.lastIndexOf("/"),r=(e=ys.value.htmlReporter)==null?void 0:e.subdir;return r?`/${ys.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${ys.value.reportsDirectory.slice(t+1)}/index.html`}});xt(Iu,e=>{ru.value=e==="running"},{immediate:!0});function XE(){const e=eo.value;if(e&&e.length>0){const t=cr(e);t?(Ds.value=t,Ls.value=!1,to.value=!1):rE(()=>mt.state.getFiles(),()=>{Ds.value=cr(e),Ls.value=!1,to.value=!1})}return Ls}function iu(e){Ls.value=e,to.value=!1,e&&(Ds.value=void 0,eo.value="")}function mw({file:e,line:t,view:r,test:o}){eo.value=e,gw.value=t,Zn.value=r,vw.value=o,Ds.value=cr(e),iu(!1)}function YE(e){mw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function ZE(){to.value=!0,Ls.value=!1,Ds.value=void 0,eo.value=""}function JE(){Nn.details.browser=100,Nn.details.main=0,No.value=[100,0]}function QE(){Nn.details.browser=33,Nn.details.main=67,No.value=[33,67]}function eA(){Nn.navigation=33,Nn.details.size=67,Ms.value=[33,67]}const tA={setCurrentFileId(e){eo.value=e,Ds.value=cr(e),iu(!1)},async setIframeViewport(e,t){Hr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},nA=location.port,rA=[location.hostname,nA].filter(Boolean).join(":"),iA=`${location.protocol==="https:"?"wss:":"ws:"}//${rA}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Cr=!!window.METADATA_PATH,oA=44,_m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sA=new Uint8Array(64),yw=new Uint8Array(128);for(let e=0;e<_m.length;e++){const t=_m.charCodeAt(e);sA[e]=t,yw[t]=e}function Sl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=yw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Sm(e,t){return e.pos>=t?!1:e.peek()!==oA}class lA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function aA(e){const{length:t}=e,r=new lA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=Sl(r,s),s<b&&(m=!1),b=s,Sm(r,p)?(c=Sl(r,c),f=Sl(r,f),d=Sl(r,d),Sm(r,p)?(h=Sl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||cA(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function cA(e){e.sort(uA)}function uA(e,t){return e[0]-t[0]}const fA=/^[\w+.-]+:\/\//,dA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,hA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Wt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Wt||(Wt={}));function pA(e){return fA.test(e)}function gA(e){return e.startsWith("//")}function bw(e){return e.startsWith("/")}function vA(e){return e.startsWith("file:")}function km(e){return/^[.?#]/.test(e)}function mc(e){const t=dA.exec(e);return ww(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function mA(e){const t=hA.exec(e),r=t[2];return ww("file:","",t[1]||"","",bw(r)?r:"/"+r,t[3]||"",t[4]||"")}function ww(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Wt.Absolute}}function Tm(e){if(gA(e)){const r=mc("http:"+e);return r.scheme="",r.type=Wt.SchemeRelative,r}if(bw(e)){const r=mc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Wt.AbsolutePath,r}if(vA(e))return mA(e);if(pA(e))return mc(e);const t=mc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Wt.Query:e.startsWith("#")?Wt.Hash:Wt.RelativePath:Wt.Empty,t}function yA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function bA(e,t){xw(t,t.type),e.path==="/"?e.path=t.path:e.path=yA(t.path)+e.path}function xw(e,t){const r=t<=Wt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function wA(e,t){if(!e&&!t)return"";const r=Tm(e);let o=r.type;if(t&&o!==Wt.Absolute){const c=Tm(t),f=c.type;switch(o){case Wt.Empty:r.hash=c.hash;case Wt.Hash:r.query=c.query;case Wt.Query:case Wt.RelativePath:bA(r,c);case Wt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Wt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}xw(r,o);const s=r.query+r.hash;switch(o){case Wt.Hash:case Wt.Query:return s;case Wt.RelativePath:{const c=r.path.slice(1);return c?km(t||e)&&!km(c)?"./"+c+s:c+s:s||"."}case Wt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Cm(e,t){return t&&!t.endsWith("/")&&(t+="/"),wA(e,t)}function xA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,_A=1,SA=2,kA=3,TA=4;function CA(e,t){const r=Em(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Em(e,o+1))e[o]=AA(e[o],t);return e}function Em(e,t){for(let r=t;r<e.length;r++)if(!EA(e[r]))return r;return e.length}function EA(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function AA(e,t){return t||(e=e.slice()),e.sort(LA)}function LA(e,t){return e[no]-t[no]}let ou=!1;function MA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return ou=!0,s;c<0?r=s+1:o=s-1}return ou=!1,r-1}function NA(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function $A(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function OA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function RA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return ou=f!==-1&&e[f][no]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=MA(e,t,d,h)}const PA="`line` must be greater than 0 (lines start at line 1)",IA="`column` must be greater than or equal to 0 (columns start at column 0)",Am=-1,DA=1;class zA{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Cm(h||"",xA(r));this.resolvedSources=p.map(w=>Cm(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=CA(b,o)),this._decodedMemo=OA(),this._bySources=void 0,this._bySourceMemos=void 0}}function FA(e){var t;return(t=e)._decoded||(t._decoded=aA(e._encoded))}function HA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(PA);if(o<0)throw new Error(IA);const c=FA(e);if(r>=c.length)return yc(null,null,null,null);const f=c[r],d=BA(f,e._decodedMemo,r,o,s||DA);if(d===-1)return yc(null,null,null,null);const h=f[d];if(h.length===1)return yc(null,null,null,null);const{names:p,resolvedSources:v}=e;return yc(v[h[_A]],h[SA]+1,h[kA],h.length===5?p[h[TA]]:null)}function yc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function BA(e,t,r,o,s){let c=RA(e,o,t,r);return ou?c=(s===Am?NA:$A)(e,o,c):s===Am&&c++,c===-1||c===e.length?-1:c}const WA=/^[A-Za-z]:\//;function qA(e=""){return e&&e.replace(/\\/g,"/").replace(WA,t=>t.toUpperCase())}const UA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function jA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const VA=function(...e){e=e.map(o=>qA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:jA();!s||s.length===0||(t=`${s}/${t}`,r=Lm(s))}return t=GA(t,!r),r&&!Lm(t)?`/${t}`:t.length>0?t:"."};function GA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Lm=function(e){return UA.test(e)},_w=/^\s*at .*(?:\S:\d+|\(native\))/m,KA=/^(?:eval@)?(?:\[native code\])?$/,XA=["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/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Sw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function YA(e){let t=e.trim();if(KA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=Sw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function ZA(e){let t=e.trim();if(!_w.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=Sw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:VA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function JA(e,t={}){const{ignoreStackEntries:r=XA}=t;return(_w.test(e)?eL(e):QA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Mm(r,s.file)?null:s;const d=new zA(f),{line:h,column:p,source:v,name:m}=HA(d,s);let b=s.file;if(v){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,E=f.sourceRoot?new URL(f.sourceRoot,w):w;b=new URL(v,E).pathname}return Mm(r,b)?null:h!=null&&p!=null?{line:h,column:p,file:b,method:m||s.method}:s}).filter(s=>s!=null)}function Mm(e,t){return e.some(r=>t.match(r))}function QA(e){return e.split(`
|
|
18
|
+
`).map(t=>YA(t)).filter(Pb)}function eL(e){return e.split(`
|
|
19
|
+
`).map(t=>ZA(t)).filter(Pb)}function kw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nd={},br={};const tL="Á",nL="á",rL="Ă",iL="ă",oL="∾",sL="∿",lL="∾̳",aL="Â",cL="â",uL="´",fL="А",dL="а",hL="Æ",pL="æ",gL="",vL="𝔄",mL="𝔞",yL="À",bL="à",wL="ℵ",xL="ℵ",_L="Α",SL="α",kL="Ā",TL="ā",CL="⨿",EL="&",AL="&",LL="⩕",ML="⩓",NL="∧",$L="⩜",OL="⩘",RL="⩚",PL="∠",IL="⦤",DL="∠",zL="⦨",FL="⦩",HL="⦪",BL="⦫",WL="⦬",qL="⦭",UL="⦮",jL="⦯",VL="∡",GL="∟",KL="⊾",XL="⦝",YL="∢",ZL="Å",JL="⍼",QL="Ą",eM="ą",tM="𝔸",nM="𝕒",rM="⩯",iM="≈",oM="⩰",sM="≊",lM="≋",aM="'",cM="",uM="≈",fM="≊",dM="Å",hM="å",pM="𝒜",gM="𝒶",vM="≔",mM="*",yM="≈",bM="≍",wM="Ã",xM="ã",_M="Ä",SM="ä",kM="∳",TM="⨑",CM="≌",EM="϶",AM="‵",LM="∽",MM="⋍",NM="∖",$M="⫧",OM="⊽",RM="⌅",PM="⌆",IM="⌅",DM="⎵",zM="⎶",FM="≌",HM="Б",BM="б",WM="„",qM="∵",UM="∵",jM="∵",VM="⦰",GM="϶",KM="ℬ",XM="ℬ",YM="Β",ZM="β",JM="ℶ",QM="≬",eN="𝔅",tN="𝔟",nN="⋂",rN="◯",iN="⋃",oN="⨀",sN="⨁",lN="⨂",aN="⨆",cN="★",uN="▽",fN="△",dN="⨄",hN="⋁",pN="⋀",gN="⤍",vN="⧫",mN="▪",yN="▴",bN="▾",wN="◂",xN="▸",_N="␣",SN="▒",kN="░",TN="▓",CN="█",EN="=⃥",AN="≡⃥",LN="⫭",MN="⌐",NN="𝔹",$N="𝕓",ON="⊥",RN="⊥",PN="⋈",IN="⧉",DN="┐",zN="╕",FN="╖",HN="╗",BN="┌",WN="╒",qN="╓",UN="╔",jN="─",VN="═",GN="┬",KN="╤",XN="╥",YN="╦",ZN="┴",JN="╧",QN="╨",e$="╩",t$="⊟",n$="⊞",r$="⊠",i$="┘",o$="╛",s$="╜",l$="╝",a$="└",c$="╘",u$="╙",f$="╚",d$="│",h$="║",p$="┼",g$="╪",v$="╫",m$="╬",y$="┤",b$="╡",w$="╢",x$="╣",_$="├",S$="╞",k$="╟",T$="╠",C$="‵",E$="˘",A$="˘",L$="¦",M$="𝒷",N$="ℬ",$$="⁏",O$="∽",R$="⋍",P$="⧅",I$="\\",D$="⟈",z$="•",F$="•",H$="≎",B$="⪮",W$="≏",q$="≎",U$="≏",j$="Ć",V$="ć",G$="⩄",K$="⩉",X$="⩋",Y$="∩",Z$="⋒",J$="⩇",Q$="⩀",eO="ⅅ",tO="∩︀",nO="⁁",rO="ˇ",iO="ℭ",oO="⩍",sO="Č",lO="č",aO="Ç",cO="ç",uO="Ĉ",fO="ĉ",dO="∰",hO="⩌",pO="⩐",gO="Ċ",vO="ċ",mO="¸",yO="¸",bO="⦲",wO="¢",xO="·",_O="·",SO="𝔠",kO="ℭ",TO="Ч",CO="ч",EO="✓",AO="✓",LO="Χ",MO="χ",NO="ˆ",$O="≗",OO="↺",RO="↻",PO="⊛",IO="⊚",DO="⊝",zO="⊙",FO="®",HO="Ⓢ",BO="⊖",WO="⊕",qO="⊗",UO="○",jO="⧃",VO="≗",GO="⨐",KO="⫯",XO="⧂",YO="∲",ZO="”",JO="’",QO="♣",eR="♣",tR=":",nR="∷",rR="⩴",iR="≔",oR="≔",sR=",",lR="@",aR="∁",cR="∘",uR="∁",fR="ℂ",dR="≅",hR="⩭",pR="≡",gR="∮",vR="∯",mR="∮",yR="𝕔",bR="ℂ",wR="∐",xR="∐",_R="©",SR="©",kR="℗",TR="∳",CR="↵",ER="✗",AR="⨯",LR="𝒞",MR="𝒸",NR="⫏",$R="⫑",OR="⫐",RR="⫒",PR="⋯",IR="⤸",DR="⤵",zR="⋞",FR="⋟",HR="↶",BR="⤽",WR="⩈",qR="⩆",UR="≍",jR="∪",VR="⋓",GR="⩊",KR="⊍",XR="⩅",YR="∪︀",ZR="↷",JR="⤼",QR="⋞",eP="⋟",tP="⋎",nP="⋏",rP="¤",iP="↶",oP="↷",sP="⋎",lP="⋏",aP="∲",cP="∱",uP="⌭",fP="†",dP="‡",hP="ℸ",pP="↓",gP="↡",vP="⇓",mP="‐",yP="⫤",bP="⊣",wP="⤏",xP="˝",_P="Ď",SP="ď",kP="Д",TP="д",CP="‡",EP="⇊",AP="ⅅ",LP="ⅆ",MP="⤑",NP="⩷",$P="°",OP="∇",RP="Δ",PP="δ",IP="⦱",DP="⥿",zP="𝔇",FP="𝔡",HP="⥥",BP="⇃",WP="⇂",qP="´",UP="˙",jP="˝",VP="`",GP="˜",KP="⋄",XP="⋄",YP="⋄",ZP="♦",JP="♦",QP="¨",e2="ⅆ",t2="ϝ",n2="⋲",r2="÷",i2="÷",o2="⋇",s2="⋇",l2="Ђ",a2="ђ",c2="⌞",u2="⌍",f2="$",d2="𝔻",h2="𝕕",p2="¨",g2="˙",v2="⃜",m2="≐",y2="≑",b2="≐",w2="∸",x2="∔",_2="⊡",S2="⌆",k2="∯",T2="¨",C2="⇓",E2="⇐",A2="⇔",L2="⫤",M2="⟸",N2="⟺",$2="⟹",O2="⇒",R2="⊨",P2="⇑",I2="⇕",D2="∥",z2="⤓",F2="↓",H2="↓",B2="⇓",W2="⇵",q2="̑",U2="⇊",j2="⇃",V2="⇂",G2="⥐",K2="⥞",X2="⥖",Y2="↽",Z2="⥟",J2="⥗",Q2="⇁",eI="↧",tI="⊤",nI="⤐",rI="⌟",iI="⌌",oI="𝒟",sI="𝒹",lI="Ѕ",aI="ѕ",cI="⧶",uI="Đ",fI="đ",dI="⋱",hI="▿",pI="▾",gI="⇵",vI="⥯",mI="⦦",yI="Џ",bI="џ",wI="⟿",xI="É",_I="é",SI="⩮",kI="Ě",TI="ě",CI="Ê",EI="ê",AI="≖",LI="≕",MI="Э",NI="э",$I="⩷",OI="Ė",RI="ė",PI="≑",II="ⅇ",DI="≒",zI="𝔈",FI="𝔢",HI="⪚",BI="È",WI="è",qI="⪖",UI="⪘",jI="⪙",VI="∈",GI="⏧",KI="ℓ",XI="⪕",YI="⪗",ZI="Ē",JI="ē",QI="∅",eD="∅",tD="◻",nD="∅",rD="▫",iD=" ",oD=" ",sD=" ",lD="Ŋ",aD="ŋ",cD=" ",uD="Ę",fD="ę",dD="𝔼",hD="𝕖",pD="⋕",gD="⧣",vD="⩱",mD="ε",yD="Ε",bD="ε",wD="ϵ",xD="≖",_D="≕",SD="≂",kD="⪖",TD="⪕",CD="⩵",ED="=",AD="≂",LD="≟",MD="⇌",ND="≡",$D="⩸",OD="⧥",RD="⥱",PD="≓",ID="ℯ",DD="ℰ",zD="≐",FD="⩳",HD="≂",BD="Η",WD="η",qD="Ð",UD="ð",jD="Ë",VD="ë",GD="€",KD="!",XD="∃",YD="∃",ZD="ℰ",JD="ⅇ",QD="ⅇ",ez="≒",tz="Ф",nz="ф",rz="♀",iz="ffi",oz="ff",sz="ffl",lz="𝔉",az="𝔣",cz="fi",uz="◼",fz="▪",dz="fj",hz="♭",pz="fl",gz="▱",vz="ƒ",mz="𝔽",yz="𝕗",bz="∀",wz="∀",xz="⋔",_z="⫙",Sz="ℱ",kz="⨍",Tz="½",Cz="⅓",Ez="¼",Az="⅕",Lz="⅙",Mz="⅛",Nz="⅔",$z="⅖",Oz="¾",Rz="⅗",Pz="⅜",Iz="⅘",Dz="⅚",zz="⅝",Fz="⅞",Hz="⁄",Bz="⌢",Wz="𝒻",qz="ℱ",Uz="ǵ",jz="Γ",Vz="γ",Gz="Ϝ",Kz="ϝ",Xz="⪆",Yz="Ğ",Zz="ğ",Jz="Ģ",Qz="Ĝ",eF="ĝ",tF="Г",nF="г",rF="Ġ",iF="ġ",oF="≥",sF="≧",lF="⪌",aF="⋛",cF="≥",uF="≧",fF="⩾",dF="⪩",hF="⩾",pF="⪀",gF="⪂",vF="⪄",mF="⋛︀",yF="⪔",bF="𝔊",wF="𝔤",xF="≫",_F="⋙",SF="⋙",kF="ℷ",TF="Ѓ",CF="ѓ",EF="⪥",AF="≷",LF="⪒",MF="⪤",NF="⪊",$F="⪊",OF="⪈",RF="≩",PF="⪈",IF="≩",DF="⋧",zF="𝔾",FF="𝕘",HF="`",BF="≥",WF="⋛",qF="≧",UF="⪢",jF="≷",VF="⩾",GF="≳",KF="𝒢",XF="ℊ",YF="≳",ZF="⪎",JF="⪐",QF="⪧",eH="⩺",tH=">",nH=">",rH="≫",iH="⋗",oH="⦕",sH="⩼",lH="⪆",aH="⥸",cH="⋗",uH="⋛",fH="⪌",dH="≷",hH="≳",pH="≩︀",gH="≩︀",vH="ˇ",mH=" ",yH="½",bH="ℋ",wH="Ъ",xH="ъ",_H="⥈",SH="↔",kH="⇔",TH="↭",CH="^",EH="ℏ",AH="Ĥ",LH="ĥ",MH="♥",NH="♥",$H="…",OH="⊹",RH="𝔥",PH="ℌ",IH="ℋ",DH="⤥",zH="⤦",FH="⇿",HH="∻",BH="↩",WH="↪",qH="𝕙",UH="ℍ",jH="―",VH="─",GH="𝒽",KH="ℋ",XH="ℏ",YH="Ħ",ZH="ħ",JH="≎",QH="≏",eB="⁃",tB="‐",nB="Í",rB="í",iB="",oB="Î",sB="î",lB="И",aB="и",cB="İ",uB="Е",fB="е",dB="¡",hB="⇔",pB="𝔦",gB="ℑ",vB="Ì",mB="ì",yB="ⅈ",bB="⨌",wB="∭",xB="⧜",_B="℩",SB="IJ",kB="ij",TB="Ī",CB="ī",EB="ℑ",AB="ⅈ",LB="ℐ",MB="ℑ",NB="ı",$B="ℑ",OB="⊷",RB="Ƶ",PB="⇒",IB="℅",DB="∞",zB="⧝",FB="ı",HB="⊺",BB="∫",WB="∬",qB="ℤ",UB="∫",jB="⊺",VB="⋂",GB="⨗",KB="⨼",XB="",YB="",ZB="Ё",JB="ё",QB="Į",e3="į",t3="𝕀",n3="𝕚",r3="Ι",i3="ι",o3="⨼",s3="¿",l3="𝒾",a3="ℐ",c3="∈",u3="⋵",f3="⋹",d3="⋴",h3="⋳",p3="∈",g3="",v3="Ĩ",m3="ĩ",y3="І",b3="і",w3="Ï",x3="ï",_3="Ĵ",S3="ĵ",k3="Й",T3="й",C3="𝔍",E3="𝔧",A3="ȷ",L3="𝕁",M3="𝕛",N3="𝒥",$3="𝒿",O3="Ј",R3="ј",P3="Є",I3="є",D3="Κ",z3="κ",F3="ϰ",H3="Ķ",B3="ķ",W3="К",q3="к",U3="𝔎",j3="𝔨",V3="ĸ",G3="Х",K3="х",X3="Ќ",Y3="ќ",Z3="𝕂",J3="𝕜",Q3="𝒦",e5="𝓀",t5="⇚",n5="Ĺ",r5="ĺ",i5="⦴",o5="ℒ",s5="Λ",l5="λ",a5="⟨",c5="⟪",u5="⦑",f5="⟨",d5="⪅",h5="ℒ",p5="«",g5="⇤",v5="⤟",m5="←",y5="↞",b5="⇐",w5="⤝",x5="↩",_5="↫",S5="⤹",k5="⥳",T5="↢",C5="⤙",E5="⤛",A5="⪫",L5="⪭",M5="⪭︀",N5="⤌",$5="⤎",O5="❲",R5="{",P5="[",I5="⦋",D5="⦏",z5="⦍",F5="Ľ",H5="ľ",B5="Ļ",W5="ļ",q5="⌈",U5="{",j5="Л",V5="л",G5="⤶",K5="“",X5="„",Y5="⥧",Z5="⥋",J5="↲",Q5="≤",e8="≦",t8="⟨",n8="⇤",r8="←",i8="←",o8="⇐",s8="⇆",l8="↢",a8="⌈",c8="⟦",u8="⥡",f8="⥙",d8="⇃",h8="⌊",p8="↽",g8="↼",v8="⇇",m8="↔",y8="↔",b8="⇔",w8="⇆",x8="⇋",_8="↭",S8="⥎",k8="↤",T8="⊣",C8="⥚",E8="⋋",A8="⧏",L8="⊲",M8="⊴",N8="⥑",$8="⥠",O8="⥘",R8="↿",P8="⥒",I8="↼",D8="⪋",z8="⋚",F8="≤",H8="≦",B8="⩽",W8="⪨",q8="⩽",U8="⩿",j8="⪁",V8="⪃",G8="⋚︀",K8="⪓",X8="⪅",Y8="⋖",Z8="⋚",J8="⪋",Q8="⋚",eW="≦",tW="≶",nW="≶",rW="⪡",iW="≲",oW="⩽",sW="≲",lW="⥼",aW="⌊",cW="𝔏",uW="𝔩",fW="≶",dW="⪑",hW="⥢",pW="↽",gW="↼",vW="⥪",mW="▄",yW="Љ",bW="љ",wW="⇇",xW="≪",_W="⋘",SW="⌞",kW="⇚",TW="⥫",CW="◺",EW="Ŀ",AW="ŀ",LW="⎰",MW="⎰",NW="⪉",$W="⪉",OW="⪇",RW="≨",PW="⪇",IW="≨",DW="⋦",zW="⟬",FW="⇽",HW="⟦",BW="⟵",WW="⟵",qW="⟸",UW="⟷",jW="⟷",VW="⟺",GW="⟼",KW="⟶",XW="⟶",YW="⟹",ZW="↫",JW="↬",QW="⦅",e4="𝕃",t4="𝕝",n4="⨭",r4="⨴",i4="∗",o4="_",s4="↙",l4="↘",a4="◊",c4="◊",u4="⧫",f4="(",d4="⦓",h4="⇆",p4="⌟",g4="⇋",v4="⥭",m4="",y4="⊿",b4="‹",w4="𝓁",x4="ℒ",_4="↰",S4="↰",k4="≲",T4="⪍",C4="⪏",E4="[",A4="‘",L4="‚",M4="Ł",N4="ł",$4="⪦",O4="⩹",R4="<",P4="<",I4="≪",D4="⋖",z4="⋋",F4="⋉",H4="⥶",B4="⩻",W4="◃",q4="⊴",U4="◂",j4="⦖",V4="⥊",G4="⥦",K4="≨︀",X4="≨︀",Y4="¯",Z4="♂",J4="✠",Q4="✠",eq="↦",tq="↦",nq="↧",rq="↤",iq="↥",oq="▮",sq="⨩",lq="М",aq="м",cq="—",uq="∺",fq="∡",dq=" ",hq="ℳ",pq="𝔐",gq="𝔪",vq="℧",mq="µ",yq="*",bq="⫰",wq="∣",xq="·",_q="⊟",Sq="−",kq="∸",Tq="⨪",Cq="∓",Eq="⫛",Aq="…",Lq="∓",Mq="⊧",Nq="𝕄",$q="𝕞",Oq="∓",Rq="𝓂",Pq="ℳ",Iq="∾",Dq="Μ",zq="μ",Fq="⊸",Hq="⊸",Bq="∇",Wq="Ń",qq="ń",Uq="∠⃒",jq="≉",Vq="⩰̸",Gq="≋̸",Kq="ʼn",Xq="≉",Yq="♮",Zq="ℕ",Jq="♮",Qq=" ",e6="≎̸",t6="≏̸",n6="⩃",r6="Ň",i6="ň",o6="Ņ",s6="ņ",l6="≇",a6="⩭̸",c6="⩂",u6="Н",f6="н",d6="–",h6="⤤",p6="↗",g6="⇗",v6="↗",m6="≠",y6="≐̸",b6="",w6="",x6="",_6="",S6="≢",k6="⤨",T6="≂̸",C6="≫",E6="≪",A6=`
|
|
20
|
+
`,L6="∄",M6="∄",N6="𝔑",$6="𝔫",O6="≧̸",R6="≱",P6="≱",I6="≧̸",D6="⩾̸",z6="⩾̸",F6="⋙̸",H6="≵",B6="≫⃒",W6="≯",q6="≯",U6="≫̸",j6="↮",V6="⇎",G6="⫲",K6="∋",X6="⋼",Y6="⋺",Z6="∋",J6="Њ",Q6="њ",eU="↚",tU="⇍",nU="‥",rU="≦̸",iU="≰",oU="↚",sU="⇍",lU="↮",aU="⇎",cU="≰",uU="≦̸",fU="⩽̸",dU="⩽̸",hU="≮",pU="⋘̸",gU="≴",vU="≪⃒",mU="≮",yU="⋪",bU="⋬",wU="≪̸",xU="∤",_U="",SU=" ",kU="𝕟",TU="ℕ",CU="⫬",EU="¬",AU="≢",LU="≭",MU="∦",NU="∉",$U="≠",OU="≂̸",RU="∄",PU="≯",IU="≱",DU="≧̸",zU="≫̸",FU="≹",HU="⩾̸",BU="≵",WU="≎̸",qU="≏̸",UU="∉",jU="⋵̸",VU="⋹̸",GU="∉",KU="⋷",XU="⋶",YU="⧏̸",ZU="⋪",JU="⋬",QU="≮",ej="≰",tj="≸",nj="≪̸",rj="⩽̸",ij="≴",oj="⪢̸",sj="⪡̸",lj="∌",aj="∌",cj="⋾",uj="⋽",fj="⊀",dj="⪯̸",hj="⋠",pj="∌",gj="⧐̸",vj="⋫",mj="⋭",yj="⊏̸",bj="⋢",wj="⊐̸",xj="⋣",_j="⊂⃒",Sj="⊈",kj="⊁",Tj="⪰̸",Cj="⋡",Ej="≿̸",Aj="⊃⃒",Lj="⊉",Mj="≁",Nj="≄",$j="≇",Oj="≉",Rj="∤",Pj="∦",Ij="∦",Dj="⫽⃥",zj="∂̸",Fj="⨔",Hj="⊀",Bj="⋠",Wj="⊀",qj="⪯̸",Uj="⪯̸",jj="⤳̸",Vj="↛",Gj="⇏",Kj="↝̸",Xj="↛",Yj="⇏",Zj="⋫",Jj="⋭",Qj="⊁",eV="⋡",tV="⪰̸",nV="𝒩",rV="𝓃",iV="∤",oV="∦",sV="≁",lV="≄",aV="≄",cV="∤",uV="∦",fV="⋢",dV="⋣",hV="⊄",pV="⫅̸",gV="⊈",vV="⊂⃒",mV="⊈",yV="⫅̸",bV="⊁",wV="⪰̸",xV="⊅",_V="⫆̸",SV="⊉",kV="⊃⃒",TV="⊉",CV="⫆̸",EV="≹",AV="Ñ",LV="ñ",MV="≸",NV="⋪",$V="⋬",OV="⋫",RV="⋭",PV="Ν",IV="ν",DV="#",zV="№",FV=" ",HV="≍⃒",BV="⊬",WV="⊭",qV="⊮",UV="⊯",jV="≥⃒",VV=">⃒",GV="⤄",KV="⧞",XV="⤂",YV="≤⃒",ZV="<⃒",JV="⊴⃒",QV="⤃",e9="⊵⃒",t9="∼⃒",n9="⤣",r9="↖",i9="⇖",o9="↖",s9="⤧",l9="Ó",a9="ó",c9="⊛",u9="Ô",f9="ô",d9="⊚",h9="О",p9="о",g9="⊝",v9="Ő",m9="ő",y9="⨸",b9="⊙",w9="⦼",x9="Œ",_9="œ",S9="⦿",k9="𝔒",T9="𝔬",C9="˛",E9="Ò",A9="ò",L9="⧁",M9="⦵",N9="Ω",$9="∮",O9="↺",R9="⦾",P9="⦻",I9="‾",D9="⧀",z9="Ō",F9="ō",H9="Ω",B9="ω",W9="Ο",q9="ο",U9="⦶",j9="⊖",V9="𝕆",G9="𝕠",K9="⦷",X9="“",Y9="‘",Z9="⦹",J9="⊕",Q9="↻",eG="⩔",tG="∨",nG="⩝",rG="ℴ",iG="ℴ",oG="ª",sG="º",lG="⊶",aG="⩖",cG="⩗",uG="⩛",fG="Ⓢ",dG="𝒪",hG="ℴ",pG="Ø",gG="ø",vG="⊘",mG="Õ",yG="õ",bG="⨶",wG="⨷",xG="⊗",_G="Ö",SG="ö",kG="⌽",TG="‾",CG="⏞",EG="⎴",AG="⏜",LG="¶",MG="∥",NG="∥",$G="⫳",OG="⫽",RG="∂",PG="∂",IG="П",DG="п",zG="%",FG=".",HG="‰",BG="⊥",WG="‱",qG="𝔓",UG="𝔭",jG="Φ",VG="φ",GG="ϕ",KG="ℳ",XG="☎",YG="Π",ZG="π",JG="⋔",QG="ϖ",e7="ℏ",t7="ℎ",n7="ℏ",r7="⨣",i7="⊞",o7="⨢",s7="+",l7="∔",a7="⨥",c7="⩲",u7="±",f7="±",d7="⨦",h7="⨧",p7="±",g7="ℌ",v7="⨕",m7="𝕡",y7="ℙ",b7="£",w7="⪷",x7="⪻",_7="≺",S7="≼",k7="⪷",T7="≺",C7="≼",E7="≺",A7="⪯",L7="≼",M7="≾",N7="⪯",$7="⪹",O7="⪵",R7="⋨",P7="⪯",I7="⪳",D7="≾",z7="′",F7="″",H7="ℙ",B7="⪹",W7="⪵",q7="⋨",U7="∏",j7="∏",V7="⌮",G7="⌒",K7="⌓",X7="∝",Y7="∝",Z7="∷",J7="∝",Q7="≾",eK="⊰",tK="𝒫",nK="𝓅",rK="Ψ",iK="ψ",oK=" ",sK="𝔔",lK="𝔮",aK="⨌",cK="𝕢",uK="ℚ",fK="⁗",dK="𝒬",hK="𝓆",pK="ℍ",gK="⨖",vK="?",mK="≟",yK='"',bK='"',wK="⇛",xK="∽̱",_K="Ŕ",SK="ŕ",kK="√",TK="⦳",CK="⟩",EK="⟫",AK="⦒",LK="⦥",MK="⟩",NK="»",$K="⥵",OK="⇥",RK="⤠",PK="⤳",IK="→",DK="↠",zK="⇒",FK="⤞",HK="↪",BK="↬",WK="⥅",qK="⥴",UK="⤖",jK="↣",VK="↝",GK="⤚",KK="⤜",XK="∶",YK="ℚ",ZK="⤍",JK="⤏",QK="⤐",eX="❳",tX="}",nX="]",rX="⦌",iX="⦎",oX="⦐",sX="Ř",lX="ř",aX="Ŗ",cX="ŗ",uX="⌉",fX="}",dX="Р",hX="р",pX="⤷",gX="⥩",vX="”",mX="”",yX="↳",bX="ℜ",wX="ℛ",xX="ℜ",_X="ℝ",SX="ℜ",kX="▭",TX="®",CX="®",EX="∋",AX="⇋",LX="⥯",MX="⥽",NX="⌋",$X="𝔯",OX="ℜ",RX="⥤",PX="⇁",IX="⇀",DX="⥬",zX="Ρ",FX="ρ",HX="ϱ",BX="⟩",WX="⇥",qX="→",UX="→",jX="⇒",VX="⇄",GX="↣",KX="⌉",XX="⟧",YX="⥝",ZX="⥕",JX="⇂",QX="⌋",eY="⇁",tY="⇀",nY="⇄",rY="⇌",iY="⇉",oY="↝",sY="↦",lY="⊢",aY="⥛",cY="⋌",uY="⧐",fY="⊳",dY="⊵",hY="⥏",pY="⥜",gY="⥔",vY="↾",mY="⥓",yY="⇀",bY="˚",wY="≓",xY="⇄",_Y="⇌",SY="",kY="⎱",TY="⎱",CY="⫮",EY="⟭",AY="⇾",LY="⟧",MY="⦆",NY="𝕣",$Y="ℝ",OY="⨮",RY="⨵",PY="⥰",IY=")",DY="⦔",zY="⨒",FY="⇉",HY="⇛",BY="›",WY="𝓇",qY="ℛ",UY="↱",jY="↱",VY="]",GY="’",KY="’",XY="⋌",YY="⋊",ZY="▹",JY="⊵",QY="▸",eZ="⧎",tZ="⧴",nZ="⥨",rZ="℞",iZ="Ś",oZ="ś",sZ="‚",lZ="⪸",aZ="Š",cZ="š",uZ="⪼",fZ="≻",dZ="≽",hZ="⪰",pZ="⪴",gZ="Ş",vZ="ş",mZ="Ŝ",yZ="ŝ",bZ="⪺",wZ="⪶",xZ="⋩",_Z="⨓",SZ="≿",kZ="С",TZ="с",CZ="⊡",EZ="⋅",AZ="⩦",LZ="⤥",MZ="↘",NZ="⇘",$Z="↘",OZ="§",RZ=";",PZ="⤩",IZ="∖",DZ="∖",zZ="✶",FZ="𝔖",HZ="𝔰",BZ="⌢",WZ="♯",qZ="Щ",UZ="щ",jZ="Ш",VZ="ш",GZ="↓",KZ="←",XZ="∣",YZ="∥",ZZ="→",JZ="↑",QZ="",eJ="Σ",tJ="σ",nJ="ς",rJ="ς",iJ="∼",oJ="⩪",sJ="≃",lJ="≃",aJ="⪞",cJ="⪠",uJ="⪝",fJ="⪟",dJ="≆",hJ="⨤",pJ="⥲",gJ="←",vJ="∘",mJ="∖",yJ="⨳",bJ="⧤",wJ="∣",xJ="⌣",_J="⪪",SJ="⪬",kJ="⪬︀",TJ="Ь",CJ="ь",EJ="⌿",AJ="⧄",LJ="/",MJ="𝕊",NJ="𝕤",$J="♠",OJ="♠",RJ="∥",PJ="⊓",IJ="⊓︀",DJ="⊔",zJ="⊔︀",FJ="√",HJ="⊏",BJ="⊑",WJ="⊏",qJ="⊑",UJ="⊐",jJ="⊒",VJ="⊐",GJ="⊒",KJ="□",XJ="□",YJ="⊓",ZJ="⊏",JJ="⊑",QJ="⊐",eQ="⊒",tQ="⊔",nQ="▪",rQ="□",iQ="▪",oQ="→",sQ="𝒮",lQ="𝓈",aQ="∖",cQ="⌣",uQ="⋆",fQ="⋆",dQ="☆",hQ="★",pQ="ϵ",gQ="ϕ",vQ="¯",mQ="⊂",yQ="⋐",bQ="⪽",wQ="⫅",xQ="⊆",_Q="⫃",SQ="⫁",kQ="⫋",TQ="⊊",CQ="⪿",EQ="⥹",AQ="⊂",LQ="⋐",MQ="⊆",NQ="⫅",$Q="⊆",OQ="⊊",RQ="⫋",PQ="⫇",IQ="⫕",DQ="⫓",zQ="⪸",FQ="≻",HQ="≽",BQ="≻",WQ="⪰",qQ="≽",UQ="≿",jQ="⪰",VQ="⪺",GQ="⪶",KQ="⋩",XQ="≿",YQ="∋",ZQ="∑",JQ="∑",QQ="♪",eee="¹",tee="²",nee="³",ree="⊃",iee="⋑",oee="⪾",see="⫘",lee="⫆",aee="⊇",cee="⫄",uee="⊃",fee="⊇",dee="⟉",hee="⫗",pee="⥻",gee="⫂",vee="⫌",mee="⊋",yee="⫀",bee="⊃",wee="⋑",xee="⊇",_ee="⫆",See="⊋",kee="⫌",Tee="⫈",Cee="⫔",Eee="⫖",Aee="⤦",Lee="↙",Mee="⇙",Nee="↙",$ee="⤪",Oee="ß",Ree=" ",Pee="⌖",Iee="Τ",Dee="τ",zee="⎴",Fee="Ť",Hee="ť",Bee="Ţ",Wee="ţ",qee="Т",Uee="т",jee="⃛",Vee="⌕",Gee="𝔗",Kee="𝔱",Xee="∴",Yee="∴",Zee="∴",Jee="Θ",Qee="θ",ete="ϑ",tte="ϑ",nte="≈",rte="∼",ite=" ",ote=" ",ste=" ",lte="≈",ate="∼",cte="Þ",ute="þ",fte="˜",dte="∼",hte="≃",pte="≅",gte="≈",vte="⨱",mte="⊠",yte="×",bte="⨰",wte="∭",xte="⤨",_te="⌶",Ste="⫱",kte="⊤",Tte="𝕋",Cte="𝕥",Ete="⫚",Ate="⤩",Lte="‴",Mte="™",Nte="™",$te="▵",Ote="▿",Rte="◃",Pte="⊴",Ite="≜",Dte="▹",zte="⊵",Fte="◬",Hte="≜",Bte="⨺",Wte="⃛",qte="⨹",Ute="⧍",jte="⨻",Vte="⏢",Gte="𝒯",Kte="𝓉",Xte="Ц",Yte="ц",Zte="Ћ",Jte="ћ",Qte="Ŧ",ene="ŧ",tne="≬",nne="↞",rne="↠",ine="Ú",one="ú",sne="↑",lne="↟",ane="⇑",cne="⥉",une="Ў",fne="ў",dne="Ŭ",hne="ŭ",pne="Û",gne="û",vne="У",mne="у",yne="⇅",bne="Ű",wne="ű",xne="⥮",_ne="⥾",Sne="𝔘",kne="𝔲",Tne="Ù",Cne="ù",Ene="⥣",Ane="↿",Lne="↾",Mne="▀",Nne="⌜",$ne="⌜",One="⌏",Rne="◸",Pne="Ū",Ine="ū",Dne="¨",zne="_",Fne="⏟",Hne="⎵",Bne="⏝",Wne="⋃",qne="⊎",Une="Ų",jne="ų",Vne="𝕌",Gne="𝕦",Kne="⤒",Xne="↑",Yne="↑",Zne="⇑",Jne="⇅",Qne="↕",ere="↕",tre="⇕",nre="⥮",rre="↿",ire="↾",ore="⊎",sre="↖",lre="↗",are="υ",cre="ϒ",ure="ϒ",fre="Υ",dre="υ",hre="↥",pre="⊥",gre="⇈",vre="⌝",mre="⌝",yre="⌎",bre="Ů",wre="ů",xre="◹",_re="𝒰",Sre="𝓊",kre="⋰",Tre="Ũ",Cre="ũ",Ere="▵",Are="▴",Lre="⇈",Mre="Ü",Nre="ü",$re="⦧",Ore="⦜",Rre="ϵ",Pre="ϰ",Ire="∅",Dre="ϕ",zre="ϖ",Fre="∝",Hre="↕",Bre="⇕",Wre="ϱ",qre="ς",Ure="⊊︀",jre="⫋︀",Vre="⊋︀",Gre="⫌︀",Kre="ϑ",Xre="⊲",Yre="⊳",Zre="⫨",Jre="⫫",Qre="⫩",eie="В",tie="в",nie="⊢",rie="⊨",iie="⊩",oie="⊫",sie="⫦",lie="⊻",aie="∨",cie="⋁",uie="≚",fie="⋮",die="|",hie="‖",pie="|",gie="‖",vie="∣",mie="|",yie="❘",bie="≀",wie=" ",xie="𝔙",_ie="𝔳",Sie="⊲",kie="⊂⃒",Tie="⊃⃒",Cie="𝕍",Eie="𝕧",Aie="∝",Lie="⊳",Mie="𝒱",Nie="𝓋",$ie="⫋︀",Oie="⊊︀",Rie="⫌︀",Pie="⊋︀",Iie="⊪",Die="⦚",zie="Ŵ",Fie="ŵ",Hie="⩟",Bie="∧",Wie="⋀",qie="≙",Uie="℘",jie="𝔚",Vie="𝔴",Gie="𝕎",Kie="𝕨",Xie="℘",Yie="≀",Zie="≀",Jie="𝒲",Qie="𝓌",eoe="⋂",toe="◯",noe="⋃",roe="▽",ioe="𝔛",ooe="𝔵",soe="⟷",loe="⟺",aoe="Ξ",coe="ξ",uoe="⟵",foe="⟸",doe="⟼",hoe="⋻",poe="⨀",goe="𝕏",voe="𝕩",moe="⨁",yoe="⨂",boe="⟶",woe="⟹",xoe="𝒳",_oe="𝓍",Soe="⨆",koe="⨄",Toe="△",Coe="⋁",Eoe="⋀",Aoe="Ý",Loe="ý",Moe="Я",Noe="я",$oe="Ŷ",Ooe="ŷ",Roe="Ы",Poe="ы",Ioe="¥",Doe="𝔜",zoe="𝔶",Foe="Ї",Hoe="ї",Boe="𝕐",Woe="𝕪",qoe="𝒴",Uoe="𝓎",joe="Ю",Voe="ю",Goe="ÿ",Koe="Ÿ",Xoe="Ź",Yoe="ź",Zoe="Ž",Joe="ž",Qoe="З",ese="з",tse="Ż",nse="ż",rse="ℨ",ise="",ose="Ζ",sse="ζ",lse="𝔷",ase="ℨ",cse="Ж",use="ж",fse="⇝",dse="𝕫",hse="ℤ",pse="𝒵",gse="𝓏",vse="",mse="",Tw={Aacute:tL,aacute:nL,Abreve:rL,abreve:iL,ac:oL,acd:sL,acE:lL,Acirc:aL,acirc:cL,acute:uL,Acy:fL,acy:dL,AElig:hL,aelig:pL,af:gL,Afr:vL,afr:mL,Agrave:yL,agrave:bL,alefsym:wL,aleph:xL,Alpha:_L,alpha:SL,Amacr:kL,amacr:TL,amalg:CL,amp:EL,AMP:AL,andand:LL,And:ML,and:NL,andd:$L,andslope:OL,andv:RL,ang:PL,ange:IL,angle:DL,angmsdaa:zL,angmsdab:FL,angmsdac:HL,angmsdad:BL,angmsdae:WL,angmsdaf:qL,angmsdag:UL,angmsdah:jL,angmsd:VL,angrt:GL,angrtvb:KL,angrtvbd:XL,angsph:YL,angst:ZL,angzarr:JL,Aogon:QL,aogon:eM,Aopf:tM,aopf:nM,apacir:rM,ap:iM,apE:oM,ape:sM,apid:lM,apos:aM,ApplyFunction:cM,approx:uM,approxeq:fM,Aring:dM,aring:hM,Ascr:pM,ascr:gM,Assign:vM,ast:mM,asymp:yM,asympeq:bM,Atilde:wM,atilde:xM,Auml:_M,auml:SM,awconint:kM,awint:TM,backcong:CM,backepsilon:EM,backprime:AM,backsim:LM,backsimeq:MM,Backslash:NM,Barv:$M,barvee:OM,barwed:RM,Barwed:PM,barwedge:IM,bbrk:DM,bbrktbrk:zM,bcong:FM,Bcy:HM,bcy:BM,bdquo:WM,becaus:qM,because:UM,Because:jM,bemptyv:VM,bepsi:GM,bernou:KM,Bernoullis:XM,Beta:YM,beta:ZM,beth:JM,between:QM,Bfr:eN,bfr:tN,bigcap:nN,bigcirc:rN,bigcup:iN,bigodot:oN,bigoplus:sN,bigotimes:lN,bigsqcup:aN,bigstar:cN,bigtriangledown:uN,bigtriangleup:fN,biguplus:dN,bigvee:hN,bigwedge:pN,bkarow:gN,blacklozenge:vN,blacksquare:mN,blacktriangle:yN,blacktriangledown:bN,blacktriangleleft:wN,blacktriangleright:xN,blank:_N,blk12:SN,blk14:kN,blk34:TN,block:CN,bne:EN,bnequiv:AN,bNot:LN,bnot:MN,Bopf:NN,bopf:$N,bot:ON,bottom:RN,bowtie:PN,boxbox:IN,boxdl:DN,boxdL:zN,boxDl:FN,boxDL:HN,boxdr:BN,boxdR:WN,boxDr:qN,boxDR:UN,boxh:jN,boxH:VN,boxhd:GN,boxHd:KN,boxhD:XN,boxHD:YN,boxhu:ZN,boxHu:JN,boxhU:QN,boxHU:e$,boxminus:t$,boxplus:n$,boxtimes:r$,boxul:i$,boxuL:o$,boxUl:s$,boxUL:l$,boxur:a$,boxuR:c$,boxUr:u$,boxUR:f$,boxv:d$,boxV:h$,boxvh:p$,boxvH:g$,boxVh:v$,boxVH:m$,boxvl:y$,boxvL:b$,boxVl:w$,boxVL:x$,boxvr:_$,boxvR:S$,boxVr:k$,boxVR:T$,bprime:C$,breve:E$,Breve:A$,brvbar:L$,bscr:M$,Bscr:N$,bsemi:$$,bsim:O$,bsime:R$,bsolb:P$,bsol:I$,bsolhsub:D$,bull:z$,bullet:F$,bump:H$,bumpE:B$,bumpe:W$,Bumpeq:q$,bumpeq:U$,Cacute:j$,cacute:V$,capand:G$,capbrcup:K$,capcap:X$,cap:Y$,Cap:Z$,capcup:J$,capdot:Q$,CapitalDifferentialD:eO,caps:tO,caret:nO,caron:rO,Cayleys:iO,ccaps:oO,Ccaron:sO,ccaron:lO,Ccedil:aO,ccedil:cO,Ccirc:uO,ccirc:fO,Cconint:dO,ccups:hO,ccupssm:pO,Cdot:gO,cdot:vO,cedil:mO,Cedilla:yO,cemptyv:bO,cent:wO,centerdot:xO,CenterDot:_O,cfr:SO,Cfr:kO,CHcy:TO,chcy:CO,check:EO,checkmark:AO,Chi:LO,chi:MO,circ:NO,circeq:$O,circlearrowleft:OO,circlearrowright:RO,circledast:PO,circledcirc:IO,circleddash:DO,CircleDot:zO,circledR:FO,circledS:HO,CircleMinus:BO,CirclePlus:WO,CircleTimes:qO,cir:UO,cirE:jO,cire:VO,cirfnint:GO,cirmid:KO,cirscir:XO,ClockwiseContourIntegral:YO,CloseCurlyDoubleQuote:ZO,CloseCurlyQuote:JO,clubs:QO,clubsuit:eR,colon:tR,Colon:nR,Colone:rR,colone:iR,coloneq:oR,comma:sR,commat:lR,comp:aR,compfn:cR,complement:uR,complexes:fR,cong:dR,congdot:hR,Congruent:pR,conint:gR,Conint:vR,ContourIntegral:mR,copf:yR,Copf:bR,coprod:wR,Coproduct:xR,copy:_R,COPY:SR,copysr:kR,CounterClockwiseContourIntegral:TR,crarr:CR,cross:ER,Cross:AR,Cscr:LR,cscr:MR,csub:NR,csube:$R,csup:OR,csupe:RR,ctdot:PR,cudarrl:IR,cudarrr:DR,cuepr:zR,cuesc:FR,cularr:HR,cularrp:BR,cupbrcap:WR,cupcap:qR,CupCap:UR,cup:jR,Cup:VR,cupcup:GR,cupdot:KR,cupor:XR,cups:YR,curarr:ZR,curarrm:JR,curlyeqprec:QR,curlyeqsucc:eP,curlyvee:tP,curlywedge:nP,curren:rP,curvearrowleft:iP,curvearrowright:oP,cuvee:sP,cuwed:lP,cwconint:aP,cwint:cP,cylcty:uP,dagger:fP,Dagger:dP,daleth:hP,darr:pP,Darr:gP,dArr:vP,dash:mP,Dashv:yP,dashv:bP,dbkarow:wP,dblac:xP,Dcaron:_P,dcaron:SP,Dcy:kP,dcy:TP,ddagger:CP,ddarr:EP,DD:AP,dd:LP,DDotrahd:MP,ddotseq:NP,deg:$P,Del:OP,Delta:RP,delta:PP,demptyv:IP,dfisht:DP,Dfr:zP,dfr:FP,dHar:HP,dharl:BP,dharr:WP,DiacriticalAcute:qP,DiacriticalDot:UP,DiacriticalDoubleAcute:jP,DiacriticalGrave:VP,DiacriticalTilde:GP,diam:KP,diamond:XP,Diamond:YP,diamondsuit:ZP,diams:JP,die:QP,DifferentialD:e2,digamma:t2,disin:n2,div:r2,divide:i2,divideontimes:o2,divonx:s2,DJcy:l2,djcy:a2,dlcorn:c2,dlcrop:u2,dollar:f2,Dopf:d2,dopf:h2,Dot:p2,dot:g2,DotDot:v2,doteq:m2,doteqdot:y2,DotEqual:b2,dotminus:w2,dotplus:x2,dotsquare:_2,doublebarwedge:S2,DoubleContourIntegral:k2,DoubleDot:T2,DoubleDownArrow:C2,DoubleLeftArrow:E2,DoubleLeftRightArrow:A2,DoubleLeftTee:L2,DoubleLongLeftArrow:M2,DoubleLongLeftRightArrow:N2,DoubleLongRightArrow:$2,DoubleRightArrow:O2,DoubleRightTee:R2,DoubleUpArrow:P2,DoubleUpDownArrow:I2,DoubleVerticalBar:D2,DownArrowBar:z2,downarrow:F2,DownArrow:H2,Downarrow:B2,DownArrowUpArrow:W2,DownBreve:q2,downdownarrows:U2,downharpoonleft:j2,downharpoonright:V2,DownLeftRightVector:G2,DownLeftTeeVector:K2,DownLeftVectorBar:X2,DownLeftVector:Y2,DownRightTeeVector:Z2,DownRightVectorBar:J2,DownRightVector:Q2,DownTeeArrow:eI,DownTee:tI,drbkarow:nI,drcorn:rI,drcrop:iI,Dscr:oI,dscr:sI,DScy:lI,dscy:aI,dsol:cI,Dstrok:uI,dstrok:fI,dtdot:dI,dtri:hI,dtrif:pI,duarr:gI,duhar:vI,dwangle:mI,DZcy:yI,dzcy:bI,dzigrarr:wI,Eacute:xI,eacute:_I,easter:SI,Ecaron:kI,ecaron:TI,Ecirc:CI,ecirc:EI,ecir:AI,ecolon:LI,Ecy:MI,ecy:NI,eDDot:$I,Edot:OI,edot:RI,eDot:PI,ee:II,efDot:DI,Efr:zI,efr:FI,eg:HI,Egrave:BI,egrave:WI,egs:qI,egsdot:UI,el:jI,Element:VI,elinters:GI,ell:KI,els:XI,elsdot:YI,Emacr:ZI,emacr:JI,empty:QI,emptyset:eD,EmptySmallSquare:tD,emptyv:nD,EmptyVerySmallSquare:rD,emsp13:iD,emsp14:oD,emsp:sD,ENG:lD,eng:aD,ensp:cD,Eogon:uD,eogon:fD,Eopf:dD,eopf:hD,epar:pD,eparsl:gD,eplus:vD,epsi:mD,Epsilon:yD,epsilon:bD,epsiv:wD,eqcirc:xD,eqcolon:_D,eqsim:SD,eqslantgtr:kD,eqslantless:TD,Equal:CD,equals:ED,EqualTilde:AD,equest:LD,Equilibrium:MD,equiv:ND,equivDD:$D,eqvparsl:OD,erarr:RD,erDot:PD,escr:ID,Escr:DD,esdot:zD,Esim:FD,esim:HD,Eta:BD,eta:WD,ETH:qD,eth:UD,Euml:jD,euml:VD,euro:GD,excl:KD,exist:XD,Exists:YD,expectation:ZD,exponentiale:JD,ExponentialE:QD,fallingdotseq:ez,Fcy:tz,fcy:nz,female:rz,ffilig:iz,fflig:oz,ffllig:sz,Ffr:lz,ffr:az,filig:cz,FilledSmallSquare:uz,FilledVerySmallSquare:fz,fjlig:dz,flat:hz,fllig:pz,fltns:gz,fnof:vz,Fopf:mz,fopf:yz,forall:bz,ForAll:wz,fork:xz,forkv:_z,Fouriertrf:Sz,fpartint:kz,frac12:Tz,frac13:Cz,frac14:Ez,frac15:Az,frac16:Lz,frac18:Mz,frac23:Nz,frac25:$z,frac34:Oz,frac35:Rz,frac38:Pz,frac45:Iz,frac56:Dz,frac58:zz,frac78:Fz,frasl:Hz,frown:Bz,fscr:Wz,Fscr:qz,gacute:Uz,Gamma:jz,gamma:Vz,Gammad:Gz,gammad:Kz,gap:Xz,Gbreve:Yz,gbreve:Zz,Gcedil:Jz,Gcirc:Qz,gcirc:eF,Gcy:tF,gcy:nF,Gdot:rF,gdot:iF,ge:oF,gE:sF,gEl:lF,gel:aF,geq:cF,geqq:uF,geqslant:fF,gescc:dF,ges:hF,gesdot:pF,gesdoto:gF,gesdotol:vF,gesl:mF,gesles:yF,Gfr:bF,gfr:wF,gg:xF,Gg:_F,ggg:SF,gimel:kF,GJcy:TF,gjcy:CF,gla:EF,gl:AF,glE:LF,glj:MF,gnap:NF,gnapprox:$F,gne:OF,gnE:RF,gneq:PF,gneqq:IF,gnsim:DF,Gopf:zF,gopf:FF,grave:HF,GreaterEqual:BF,GreaterEqualLess:WF,GreaterFullEqual:qF,GreaterGreater:UF,GreaterLess:jF,GreaterSlantEqual:VF,GreaterTilde:GF,Gscr:KF,gscr:XF,gsim:YF,gsime:ZF,gsiml:JF,gtcc:QF,gtcir:eH,gt:tH,GT:nH,Gt:rH,gtdot:iH,gtlPar:oH,gtquest:sH,gtrapprox:lH,gtrarr:aH,gtrdot:cH,gtreqless:uH,gtreqqless:fH,gtrless:dH,gtrsim:hH,gvertneqq:pH,gvnE:gH,Hacek:vH,hairsp:mH,half:yH,hamilt:bH,HARDcy:wH,hardcy:xH,harrcir:_H,harr:SH,hArr:kH,harrw:TH,Hat:CH,hbar:EH,Hcirc:AH,hcirc:LH,hearts:MH,heartsuit:NH,hellip:$H,hercon:OH,hfr:RH,Hfr:PH,HilbertSpace:IH,hksearow:DH,hkswarow:zH,hoarr:FH,homtht:HH,hookleftarrow:BH,hookrightarrow:WH,hopf:qH,Hopf:UH,horbar:jH,HorizontalLine:VH,hscr:GH,Hscr:KH,hslash:XH,Hstrok:YH,hstrok:ZH,HumpDownHump:JH,HumpEqual:QH,hybull:eB,hyphen:tB,Iacute:nB,iacute:rB,ic:iB,Icirc:oB,icirc:sB,Icy:lB,icy:aB,Idot:cB,IEcy:uB,iecy:fB,iexcl:dB,iff:hB,ifr:pB,Ifr:gB,Igrave:vB,igrave:mB,ii:yB,iiiint:bB,iiint:wB,iinfin:xB,iiota:_B,IJlig:SB,ijlig:kB,Imacr:TB,imacr:CB,image:EB,ImaginaryI:AB,imagline:LB,imagpart:MB,imath:NB,Im:$B,imof:OB,imped:RB,Implies:PB,incare:IB,in:"∈",infin:DB,infintie:zB,inodot:FB,intcal:HB,int:BB,Int:WB,integers:qB,Integral:UB,intercal:jB,Intersection:VB,intlarhk:GB,intprod:KB,InvisibleComma:XB,InvisibleTimes:YB,IOcy:ZB,iocy:JB,Iogon:QB,iogon:e3,Iopf:t3,iopf:n3,Iota:r3,iota:i3,iprod:o3,iquest:s3,iscr:l3,Iscr:a3,isin:c3,isindot:u3,isinE:f3,isins:d3,isinsv:h3,isinv:p3,it:g3,Itilde:v3,itilde:m3,Iukcy:y3,iukcy:b3,Iuml:w3,iuml:x3,Jcirc:_3,jcirc:S3,Jcy:k3,jcy:T3,Jfr:C3,jfr:E3,jmath:A3,Jopf:L3,jopf:M3,Jscr:N3,jscr:$3,Jsercy:O3,jsercy:R3,Jukcy:P3,jukcy:I3,Kappa:D3,kappa:z3,kappav:F3,Kcedil:H3,kcedil:B3,Kcy:W3,kcy:q3,Kfr:U3,kfr:j3,kgreen:V3,KHcy:G3,khcy:K3,KJcy:X3,kjcy:Y3,Kopf:Z3,kopf:J3,Kscr:Q3,kscr:e5,lAarr:t5,Lacute:n5,lacute:r5,laemptyv:i5,lagran:o5,Lambda:s5,lambda:l5,lang:a5,Lang:c5,langd:u5,langle:f5,lap:d5,Laplacetrf:h5,laquo:p5,larrb:g5,larrbfs:v5,larr:m5,Larr:y5,lArr:b5,larrfs:w5,larrhk:x5,larrlp:_5,larrpl:S5,larrsim:k5,larrtl:T5,latail:C5,lAtail:E5,lat:A5,late:L5,lates:M5,lbarr:N5,lBarr:$5,lbbrk:O5,lbrace:R5,lbrack:P5,lbrke:I5,lbrksld:D5,lbrkslu:z5,Lcaron:F5,lcaron:H5,Lcedil:B5,lcedil:W5,lceil:q5,lcub:U5,Lcy:j5,lcy:V5,ldca:G5,ldquo:K5,ldquor:X5,ldrdhar:Y5,ldrushar:Z5,ldsh:J5,le:Q5,lE:e8,LeftAngleBracket:t8,LeftArrowBar:n8,leftarrow:r8,LeftArrow:i8,Leftarrow:o8,LeftArrowRightArrow:s8,leftarrowtail:l8,LeftCeiling:a8,LeftDoubleBracket:c8,LeftDownTeeVector:u8,LeftDownVectorBar:f8,LeftDownVector:d8,LeftFloor:h8,leftharpoondown:p8,leftharpoonup:g8,leftleftarrows:v8,leftrightarrow:m8,LeftRightArrow:y8,Leftrightarrow:b8,leftrightarrows:w8,leftrightharpoons:x8,leftrightsquigarrow:_8,LeftRightVector:S8,LeftTeeArrow:k8,LeftTee:T8,LeftTeeVector:C8,leftthreetimes:E8,LeftTriangleBar:A8,LeftTriangle:L8,LeftTriangleEqual:M8,LeftUpDownVector:N8,LeftUpTeeVector:$8,LeftUpVectorBar:O8,LeftUpVector:R8,LeftVectorBar:P8,LeftVector:I8,lEg:D8,leg:z8,leq:F8,leqq:H8,leqslant:B8,lescc:W8,les:q8,lesdot:U8,lesdoto:j8,lesdotor:V8,lesg:G8,lesges:K8,lessapprox:X8,lessdot:Y8,lesseqgtr:Z8,lesseqqgtr:J8,LessEqualGreater:Q8,LessFullEqual:eW,LessGreater:tW,lessgtr:nW,LessLess:rW,lesssim:iW,LessSlantEqual:oW,LessTilde:sW,lfisht:lW,lfloor:aW,Lfr:cW,lfr:uW,lg:fW,lgE:dW,lHar:hW,lhard:pW,lharu:gW,lharul:vW,lhblk:mW,LJcy:yW,ljcy:bW,llarr:wW,ll:xW,Ll:_W,llcorner:SW,Lleftarrow:kW,llhard:TW,lltri:CW,Lmidot:EW,lmidot:AW,lmoustache:LW,lmoust:MW,lnap:NW,lnapprox:$W,lne:OW,lnE:RW,lneq:PW,lneqq:IW,lnsim:DW,loang:zW,loarr:FW,lobrk:HW,longleftarrow:BW,LongLeftArrow:WW,Longleftarrow:qW,longleftrightarrow:UW,LongLeftRightArrow:jW,Longleftrightarrow:VW,longmapsto:GW,longrightarrow:KW,LongRightArrow:XW,Longrightarrow:YW,looparrowleft:ZW,looparrowright:JW,lopar:QW,Lopf:e4,lopf:t4,loplus:n4,lotimes:r4,lowast:i4,lowbar:o4,LowerLeftArrow:s4,LowerRightArrow:l4,loz:a4,lozenge:c4,lozf:u4,lpar:f4,lparlt:d4,lrarr:h4,lrcorner:p4,lrhar:g4,lrhard:v4,lrm:m4,lrtri:y4,lsaquo:b4,lscr:w4,Lscr:x4,lsh:_4,Lsh:S4,lsim:k4,lsime:T4,lsimg:C4,lsqb:E4,lsquo:A4,lsquor:L4,Lstrok:M4,lstrok:N4,ltcc:$4,ltcir:O4,lt:R4,LT:P4,Lt:I4,ltdot:D4,lthree:z4,ltimes:F4,ltlarr:H4,ltquest:B4,ltri:W4,ltrie:q4,ltrif:U4,ltrPar:j4,lurdshar:V4,luruhar:G4,lvertneqq:K4,lvnE:X4,macr:Y4,male:Z4,malt:J4,maltese:Q4,Map:"⤅",map:eq,mapsto:tq,mapstodown:nq,mapstoleft:rq,mapstoup:iq,marker:oq,mcomma:sq,Mcy:lq,mcy:aq,mdash:cq,mDDot:uq,measuredangle:fq,MediumSpace:dq,Mellintrf:hq,Mfr:pq,mfr:gq,mho:vq,micro:mq,midast:yq,midcir:bq,mid:wq,middot:xq,minusb:_q,minus:Sq,minusd:kq,minusdu:Tq,MinusPlus:Cq,mlcp:Eq,mldr:Aq,mnplus:Lq,models:Mq,Mopf:Nq,mopf:$q,mp:Oq,mscr:Rq,Mscr:Pq,mstpos:Iq,Mu:Dq,mu:zq,multimap:Fq,mumap:Hq,nabla:Bq,Nacute:Wq,nacute:qq,nang:Uq,nap:jq,napE:Vq,napid:Gq,napos:Kq,napprox:Xq,natural:Yq,naturals:Zq,natur:Jq,nbsp:Qq,nbump:e6,nbumpe:t6,ncap:n6,Ncaron:r6,ncaron:i6,Ncedil:o6,ncedil:s6,ncong:l6,ncongdot:a6,ncup:c6,Ncy:u6,ncy:f6,ndash:d6,nearhk:h6,nearr:p6,neArr:g6,nearrow:v6,ne:m6,nedot:y6,NegativeMediumSpace:b6,NegativeThickSpace:w6,NegativeThinSpace:x6,NegativeVeryThinSpace:_6,nequiv:S6,nesear:k6,nesim:T6,NestedGreaterGreater:C6,NestedLessLess:E6,NewLine:A6,nexist:L6,nexists:M6,Nfr:N6,nfr:$6,ngE:O6,nge:R6,ngeq:P6,ngeqq:I6,ngeqslant:D6,nges:z6,nGg:F6,ngsim:H6,nGt:B6,ngt:W6,ngtr:q6,nGtv:U6,nharr:j6,nhArr:V6,nhpar:G6,ni:K6,nis:X6,nisd:Y6,niv:Z6,NJcy:J6,njcy:Q6,nlarr:eU,nlArr:tU,nldr:nU,nlE:rU,nle:iU,nleftarrow:oU,nLeftarrow:sU,nleftrightarrow:lU,nLeftrightarrow:aU,nleq:cU,nleqq:uU,nleqslant:fU,nles:dU,nless:hU,nLl:pU,nlsim:gU,nLt:vU,nlt:mU,nltri:yU,nltrie:bU,nLtv:wU,nmid:xU,NoBreak:_U,NonBreakingSpace:SU,nopf:kU,Nopf:TU,Not:CU,not:EU,NotCongruent:AU,NotCupCap:LU,NotDoubleVerticalBar:MU,NotElement:NU,NotEqual:$U,NotEqualTilde:OU,NotExists:RU,NotGreater:PU,NotGreaterEqual:IU,NotGreaterFullEqual:DU,NotGreaterGreater:zU,NotGreaterLess:FU,NotGreaterSlantEqual:HU,NotGreaterTilde:BU,NotHumpDownHump:WU,NotHumpEqual:qU,notin:UU,notindot:jU,notinE:VU,notinva:GU,notinvb:KU,notinvc:XU,NotLeftTriangleBar:YU,NotLeftTriangle:ZU,NotLeftTriangleEqual:JU,NotLess:QU,NotLessEqual:ej,NotLessGreater:tj,NotLessLess:nj,NotLessSlantEqual:rj,NotLessTilde:ij,NotNestedGreaterGreater:oj,NotNestedLessLess:sj,notni:lj,notniva:aj,notnivb:cj,notnivc:uj,NotPrecedes:fj,NotPrecedesEqual:dj,NotPrecedesSlantEqual:hj,NotReverseElement:pj,NotRightTriangleBar:gj,NotRightTriangle:vj,NotRightTriangleEqual:mj,NotSquareSubset:yj,NotSquareSubsetEqual:bj,NotSquareSuperset:wj,NotSquareSupersetEqual:xj,NotSubset:_j,NotSubsetEqual:Sj,NotSucceeds:kj,NotSucceedsEqual:Tj,NotSucceedsSlantEqual:Cj,NotSucceedsTilde:Ej,NotSuperset:Aj,NotSupersetEqual:Lj,NotTilde:Mj,NotTildeEqual:Nj,NotTildeFullEqual:$j,NotTildeTilde:Oj,NotVerticalBar:Rj,nparallel:Pj,npar:Ij,nparsl:Dj,npart:zj,npolint:Fj,npr:Hj,nprcue:Bj,nprec:Wj,npreceq:qj,npre:Uj,nrarrc:jj,nrarr:Vj,nrArr:Gj,nrarrw:Kj,nrightarrow:Xj,nRightarrow:Yj,nrtri:Zj,nrtrie:Jj,nsc:Qj,nsccue:eV,nsce:tV,Nscr:nV,nscr:rV,nshortmid:iV,nshortparallel:oV,nsim:sV,nsime:lV,nsimeq:aV,nsmid:cV,nspar:uV,nsqsube:fV,nsqsupe:dV,nsub:hV,nsubE:pV,nsube:gV,nsubset:vV,nsubseteq:mV,nsubseteqq:yV,nsucc:bV,nsucceq:wV,nsup:xV,nsupE:_V,nsupe:SV,nsupset:kV,nsupseteq:TV,nsupseteqq:CV,ntgl:EV,Ntilde:AV,ntilde:LV,ntlg:MV,ntriangleleft:NV,ntrianglelefteq:$V,ntriangleright:OV,ntrianglerighteq:RV,Nu:PV,nu:IV,num:DV,numero:zV,numsp:FV,nvap:HV,nvdash:BV,nvDash:WV,nVdash:qV,nVDash:UV,nvge:jV,nvgt:VV,nvHarr:GV,nvinfin:KV,nvlArr:XV,nvle:YV,nvlt:ZV,nvltrie:JV,nvrArr:QV,nvrtrie:e9,nvsim:t9,nwarhk:n9,nwarr:r9,nwArr:i9,nwarrow:o9,nwnear:s9,Oacute:l9,oacute:a9,oast:c9,Ocirc:u9,ocirc:f9,ocir:d9,Ocy:h9,ocy:p9,odash:g9,Odblac:v9,odblac:m9,odiv:y9,odot:b9,odsold:w9,OElig:x9,oelig:_9,ofcir:S9,Ofr:k9,ofr:T9,ogon:C9,Ograve:E9,ograve:A9,ogt:L9,ohbar:M9,ohm:N9,oint:$9,olarr:O9,olcir:R9,olcross:P9,oline:I9,olt:D9,Omacr:z9,omacr:F9,Omega:H9,omega:B9,Omicron:W9,omicron:q9,omid:U9,ominus:j9,Oopf:V9,oopf:G9,opar:K9,OpenCurlyDoubleQuote:X9,OpenCurlyQuote:Y9,operp:Z9,oplus:J9,orarr:Q9,Or:eG,or:tG,ord:nG,order:rG,orderof:iG,ordf:oG,ordm:sG,origof:lG,oror:aG,orslope:cG,orv:uG,oS:fG,Oscr:dG,oscr:hG,Oslash:pG,oslash:gG,osol:vG,Otilde:mG,otilde:yG,otimesas:bG,Otimes:wG,otimes:xG,Ouml:_G,ouml:SG,ovbar:kG,OverBar:TG,OverBrace:CG,OverBracket:EG,OverParenthesis:AG,para:LG,parallel:MG,par:NG,parsim:$G,parsl:OG,part:RG,PartialD:PG,Pcy:IG,pcy:DG,percnt:zG,period:FG,permil:HG,perp:BG,pertenk:WG,Pfr:qG,pfr:UG,Phi:jG,phi:VG,phiv:GG,phmmat:KG,phone:XG,Pi:YG,pi:ZG,pitchfork:JG,piv:QG,planck:e7,planckh:t7,plankv:n7,plusacir:r7,plusb:i7,pluscir:o7,plus:s7,plusdo:l7,plusdu:a7,pluse:c7,PlusMinus:u7,plusmn:f7,plussim:d7,plustwo:h7,pm:p7,Poincareplane:g7,pointint:v7,popf:m7,Popf:y7,pound:b7,prap:w7,Pr:x7,pr:_7,prcue:S7,precapprox:k7,prec:T7,preccurlyeq:C7,Precedes:E7,PrecedesEqual:A7,PrecedesSlantEqual:L7,PrecedesTilde:M7,preceq:N7,precnapprox:$7,precneqq:O7,precnsim:R7,pre:P7,prE:I7,precsim:D7,prime:z7,Prime:F7,primes:H7,prnap:B7,prnE:W7,prnsim:q7,prod:U7,Product:j7,profalar:V7,profline:G7,profsurf:K7,prop:X7,Proportional:Y7,Proportion:Z7,propto:J7,prsim:Q7,prurel:eK,Pscr:tK,pscr:nK,Psi:rK,psi:iK,puncsp:oK,Qfr:sK,qfr:lK,qint:aK,qopf:cK,Qopf:uK,qprime:fK,Qscr:dK,qscr:hK,quaternions:pK,quatint:gK,quest:vK,questeq:mK,quot:yK,QUOT:bK,rAarr:wK,race:xK,Racute:_K,racute:SK,radic:kK,raemptyv:TK,rang:CK,Rang:EK,rangd:AK,range:LK,rangle:MK,raquo:NK,rarrap:$K,rarrb:OK,rarrbfs:RK,rarrc:PK,rarr:IK,Rarr:DK,rArr:zK,rarrfs:FK,rarrhk:HK,rarrlp:BK,rarrpl:WK,rarrsim:qK,Rarrtl:UK,rarrtl:jK,rarrw:VK,ratail:GK,rAtail:KK,ratio:XK,rationals:YK,rbarr:ZK,rBarr:JK,RBarr:QK,rbbrk:eX,rbrace:tX,rbrack:nX,rbrke:rX,rbrksld:iX,rbrkslu:oX,Rcaron:sX,rcaron:lX,Rcedil:aX,rcedil:cX,rceil:uX,rcub:fX,Rcy:dX,rcy:hX,rdca:pX,rdldhar:gX,rdquo:vX,rdquor:mX,rdsh:yX,real:bX,realine:wX,realpart:xX,reals:_X,Re:SX,rect:kX,reg:TX,REG:CX,ReverseElement:EX,ReverseEquilibrium:AX,ReverseUpEquilibrium:LX,rfisht:MX,rfloor:NX,rfr:$X,Rfr:OX,rHar:RX,rhard:PX,rharu:IX,rharul:DX,Rho:zX,rho:FX,rhov:HX,RightAngleBracket:BX,RightArrowBar:WX,rightarrow:qX,RightArrow:UX,Rightarrow:jX,RightArrowLeftArrow:VX,rightarrowtail:GX,RightCeiling:KX,RightDoubleBracket:XX,RightDownTeeVector:YX,RightDownVectorBar:ZX,RightDownVector:JX,RightFloor:QX,rightharpoondown:eY,rightharpoonup:tY,rightleftarrows:nY,rightleftharpoons:rY,rightrightarrows:iY,rightsquigarrow:oY,RightTeeArrow:sY,RightTee:lY,RightTeeVector:aY,rightthreetimes:cY,RightTriangleBar:uY,RightTriangle:fY,RightTriangleEqual:dY,RightUpDownVector:hY,RightUpTeeVector:pY,RightUpVectorBar:gY,RightUpVector:vY,RightVectorBar:mY,RightVector:yY,ring:bY,risingdotseq:wY,rlarr:xY,rlhar:_Y,rlm:SY,rmoustache:kY,rmoust:TY,rnmid:CY,roang:EY,roarr:AY,robrk:LY,ropar:MY,ropf:NY,Ropf:$Y,roplus:OY,rotimes:RY,RoundImplies:PY,rpar:IY,rpargt:DY,rppolint:zY,rrarr:FY,Rrightarrow:HY,rsaquo:BY,rscr:WY,Rscr:qY,rsh:UY,Rsh:jY,rsqb:VY,rsquo:GY,rsquor:KY,rthree:XY,rtimes:YY,rtri:ZY,rtrie:JY,rtrif:QY,rtriltri:eZ,RuleDelayed:tZ,ruluhar:nZ,rx:rZ,Sacute:iZ,sacute:oZ,sbquo:sZ,scap:lZ,Scaron:aZ,scaron:cZ,Sc:uZ,sc:fZ,sccue:dZ,sce:hZ,scE:pZ,Scedil:gZ,scedil:vZ,Scirc:mZ,scirc:yZ,scnap:bZ,scnE:wZ,scnsim:xZ,scpolint:_Z,scsim:SZ,Scy:kZ,scy:TZ,sdotb:CZ,sdot:EZ,sdote:AZ,searhk:LZ,searr:MZ,seArr:NZ,searrow:$Z,sect:OZ,semi:RZ,seswar:PZ,setminus:IZ,setmn:DZ,sext:zZ,Sfr:FZ,sfr:HZ,sfrown:BZ,sharp:WZ,SHCHcy:qZ,shchcy:UZ,SHcy:jZ,shcy:VZ,ShortDownArrow:GZ,ShortLeftArrow:KZ,shortmid:XZ,shortparallel:YZ,ShortRightArrow:ZZ,ShortUpArrow:JZ,shy:QZ,Sigma:eJ,sigma:tJ,sigmaf:nJ,sigmav:rJ,sim:iJ,simdot:oJ,sime:sJ,simeq:lJ,simg:aJ,simgE:cJ,siml:uJ,simlE:fJ,simne:dJ,simplus:hJ,simrarr:pJ,slarr:gJ,SmallCircle:vJ,smallsetminus:mJ,smashp:yJ,smeparsl:bJ,smid:wJ,smile:xJ,smt:_J,smte:SJ,smtes:kJ,SOFTcy:TJ,softcy:CJ,solbar:EJ,solb:AJ,sol:LJ,Sopf:MJ,sopf:NJ,spades:$J,spadesuit:OJ,spar:RJ,sqcap:PJ,sqcaps:IJ,sqcup:DJ,sqcups:zJ,Sqrt:FJ,sqsub:HJ,sqsube:BJ,sqsubset:WJ,sqsubseteq:qJ,sqsup:UJ,sqsupe:jJ,sqsupset:VJ,sqsupseteq:GJ,square:KJ,Square:XJ,SquareIntersection:YJ,SquareSubset:ZJ,SquareSubsetEqual:JJ,SquareSuperset:QJ,SquareSupersetEqual:eQ,SquareUnion:tQ,squarf:nQ,squ:rQ,squf:iQ,srarr:oQ,Sscr:sQ,sscr:lQ,ssetmn:aQ,ssmile:cQ,sstarf:uQ,Star:fQ,star:dQ,starf:hQ,straightepsilon:pQ,straightphi:gQ,strns:vQ,sub:mQ,Sub:yQ,subdot:bQ,subE:wQ,sube:xQ,subedot:_Q,submult:SQ,subnE:kQ,subne:TQ,subplus:CQ,subrarr:EQ,subset:AQ,Subset:LQ,subseteq:MQ,subseteqq:NQ,SubsetEqual:$Q,subsetneq:OQ,subsetneqq:RQ,subsim:PQ,subsub:IQ,subsup:DQ,succapprox:zQ,succ:FQ,succcurlyeq:HQ,Succeeds:BQ,SucceedsEqual:WQ,SucceedsSlantEqual:qQ,SucceedsTilde:UQ,succeq:jQ,succnapprox:VQ,succneqq:GQ,succnsim:KQ,succsim:XQ,SuchThat:YQ,sum:ZQ,Sum:JQ,sung:QQ,sup1:eee,sup2:tee,sup3:nee,sup:ree,Sup:iee,supdot:oee,supdsub:see,supE:lee,supe:aee,supedot:cee,Superset:uee,SupersetEqual:fee,suphsol:dee,suphsub:hee,suplarr:pee,supmult:gee,supnE:vee,supne:mee,supplus:yee,supset:bee,Supset:wee,supseteq:xee,supseteqq:_ee,supsetneq:See,supsetneqq:kee,supsim:Tee,supsub:Cee,supsup:Eee,swarhk:Aee,swarr:Lee,swArr:Mee,swarrow:Nee,swnwar:$ee,szlig:Oee,Tab:Ree,target:Pee,Tau:Iee,tau:Dee,tbrk:zee,Tcaron:Fee,tcaron:Hee,Tcedil:Bee,tcedil:Wee,Tcy:qee,tcy:Uee,tdot:jee,telrec:Vee,Tfr:Gee,tfr:Kee,there4:Xee,therefore:Yee,Therefore:Zee,Theta:Jee,theta:Qee,thetasym:ete,thetav:tte,thickapprox:nte,thicksim:rte,ThickSpace:ite,ThinSpace:ote,thinsp:ste,thkap:lte,thksim:ate,THORN:cte,thorn:ute,tilde:fte,Tilde:dte,TildeEqual:hte,TildeFullEqual:pte,TildeTilde:gte,timesbar:vte,timesb:mte,times:yte,timesd:bte,tint:wte,toea:xte,topbot:_te,topcir:Ste,top:kte,Topf:Tte,topf:Cte,topfork:Ete,tosa:Ate,tprime:Lte,trade:Mte,TRADE:Nte,triangle:$te,triangledown:Ote,triangleleft:Rte,trianglelefteq:Pte,triangleq:Ite,triangleright:Dte,trianglerighteq:zte,tridot:Fte,trie:Hte,triminus:Bte,TripleDot:Wte,triplus:qte,trisb:Ute,tritime:jte,trpezium:Vte,Tscr:Gte,tscr:Kte,TScy:Xte,tscy:Yte,TSHcy:Zte,tshcy:Jte,Tstrok:Qte,tstrok:ene,twixt:tne,twoheadleftarrow:nne,twoheadrightarrow:rne,Uacute:ine,uacute:one,uarr:sne,Uarr:lne,uArr:ane,Uarrocir:cne,Ubrcy:une,ubrcy:fne,Ubreve:dne,ubreve:hne,Ucirc:pne,ucirc:gne,Ucy:vne,ucy:mne,udarr:yne,Udblac:bne,udblac:wne,udhar:xne,ufisht:_ne,Ufr:Sne,ufr:kne,Ugrave:Tne,ugrave:Cne,uHar:Ene,uharl:Ane,uharr:Lne,uhblk:Mne,ulcorn:Nne,ulcorner:$ne,ulcrop:One,ultri:Rne,Umacr:Pne,umacr:Ine,uml:Dne,UnderBar:zne,UnderBrace:Fne,UnderBracket:Hne,UnderParenthesis:Bne,Union:Wne,UnionPlus:qne,Uogon:Une,uogon:jne,Uopf:Vne,uopf:Gne,UpArrowBar:Kne,uparrow:Xne,UpArrow:Yne,Uparrow:Zne,UpArrowDownArrow:Jne,updownarrow:Qne,UpDownArrow:ere,Updownarrow:tre,UpEquilibrium:nre,upharpoonleft:rre,upharpoonright:ire,uplus:ore,UpperLeftArrow:sre,UpperRightArrow:lre,upsi:are,Upsi:cre,upsih:ure,Upsilon:fre,upsilon:dre,UpTeeArrow:hre,UpTee:pre,upuparrows:gre,urcorn:vre,urcorner:mre,urcrop:yre,Uring:bre,uring:wre,urtri:xre,Uscr:_re,uscr:Sre,utdot:kre,Utilde:Tre,utilde:Cre,utri:Ere,utrif:Are,uuarr:Lre,Uuml:Mre,uuml:Nre,uwangle:$re,vangrt:Ore,varepsilon:Rre,varkappa:Pre,varnothing:Ire,varphi:Dre,varpi:zre,varpropto:Fre,varr:Hre,vArr:Bre,varrho:Wre,varsigma:qre,varsubsetneq:Ure,varsubsetneqq:jre,varsupsetneq:Vre,varsupsetneqq:Gre,vartheta:Kre,vartriangleleft:Xre,vartriangleright:Yre,vBar:Zre,Vbar:Jre,vBarv:Qre,Vcy:eie,vcy:tie,vdash:nie,vDash:rie,Vdash:iie,VDash:oie,Vdashl:sie,veebar:lie,vee:aie,Vee:cie,veeeq:uie,vellip:fie,verbar:die,Verbar:hie,vert:pie,Vert:gie,VerticalBar:vie,VerticalLine:mie,VerticalSeparator:yie,VerticalTilde:bie,VeryThinSpace:wie,Vfr:xie,vfr:_ie,vltri:Sie,vnsub:kie,vnsup:Tie,Vopf:Cie,vopf:Eie,vprop:Aie,vrtri:Lie,Vscr:Mie,vscr:Nie,vsubnE:$ie,vsubne:Oie,vsupnE:Rie,vsupne:Pie,Vvdash:Iie,vzigzag:Die,Wcirc:zie,wcirc:Fie,wedbar:Hie,wedge:Bie,Wedge:Wie,wedgeq:qie,weierp:Uie,Wfr:jie,wfr:Vie,Wopf:Gie,wopf:Kie,wp:Xie,wr:Yie,wreath:Zie,Wscr:Jie,wscr:Qie,xcap:eoe,xcirc:toe,xcup:noe,xdtri:roe,Xfr:ioe,xfr:ooe,xharr:soe,xhArr:loe,Xi:aoe,xi:coe,xlarr:uoe,xlArr:foe,xmap:doe,xnis:hoe,xodot:poe,Xopf:goe,xopf:voe,xoplus:moe,xotime:yoe,xrarr:boe,xrArr:woe,Xscr:xoe,xscr:_oe,xsqcup:Soe,xuplus:koe,xutri:Toe,xvee:Coe,xwedge:Eoe,Yacute:Aoe,yacute:Loe,YAcy:Moe,yacy:Noe,Ycirc:$oe,ycirc:Ooe,Ycy:Roe,ycy:Poe,yen:Ioe,Yfr:Doe,yfr:zoe,YIcy:Foe,yicy:Hoe,Yopf:Boe,yopf:Woe,Yscr:qoe,yscr:Uoe,YUcy:joe,yucy:Voe,yuml:Goe,Yuml:Koe,Zacute:Xoe,zacute:Yoe,Zcaron:Zoe,zcaron:Joe,Zcy:Qoe,zcy:ese,Zdot:tse,zdot:nse,zeetrf:rse,ZeroWidthSpace:ise,Zeta:ose,zeta:sse,zfr:lse,Zfr:ase,ZHcy:cse,zhcy:use,zigrarr:fse,zopf:dse,Zopf:hse,Zscr:pse,zscr:gse,zwj:vse,zwnj:mse},yse="Á",bse="á",wse="Â",xse="â",_se="´",Sse="Æ",kse="æ",Tse="À",Cse="à",Ese="&",Ase="&",Lse="Å",Mse="å",Nse="Ã",$se="ã",Ose="Ä",Rse="ä",Pse="¦",Ise="Ç",Dse="ç",zse="¸",Fse="¢",Hse="©",Bse="©",Wse="¤",qse="°",Use="÷",jse="É",Vse="é",Gse="Ê",Kse="ê",Xse="È",Yse="è",Zse="Ð",Jse="ð",Qse="Ë",ele="ë",tle="½",nle="¼",rle="¾",ile=">",ole=">",sle="Í",lle="í",ale="Î",cle="î",ule="¡",fle="Ì",dle="ì",hle="¿",ple="Ï",gle="ï",vle="«",mle="<",yle="<",ble="¯",wle="µ",xle="·",_le=" ",Sle="¬",kle="Ñ",Tle="ñ",Cle="Ó",Ele="ó",Ale="Ô",Lle="ô",Mle="Ò",Nle="ò",$le="ª",Ole="º",Rle="Ø",Ple="ø",Ile="Õ",Dle="õ",zle="Ö",Fle="ö",Hle="¶",Ble="±",Wle="£",qle='"',Ule='"',jle="»",Vle="®",Gle="®",Kle="§",Xle="",Yle="¹",Zle="²",Jle="³",Qle="ß",eae="Þ",tae="þ",nae="×",rae="Ú",iae="ú",oae="Û",sae="û",lae="Ù",aae="ù",cae="¨",uae="Ü",fae="ü",dae="Ý",hae="ý",pae="¥",gae="ÿ",vae={Aacute:yse,aacute:bse,Acirc:wse,acirc:xse,acute:_se,AElig:Sse,aelig:kse,Agrave:Tse,agrave:Cse,amp:Ese,AMP:Ase,Aring:Lse,aring:Mse,Atilde:Nse,atilde:$se,Auml:Ose,auml:Rse,brvbar:Pse,Ccedil:Ise,ccedil:Dse,cedil:zse,cent:Fse,copy:Hse,COPY:Bse,curren:Wse,deg:qse,divide:Use,Eacute:jse,eacute:Vse,Ecirc:Gse,ecirc:Kse,Egrave:Xse,egrave:Yse,ETH:Zse,eth:Jse,Euml:Qse,euml:ele,frac12:tle,frac14:nle,frac34:rle,gt:ile,GT:ole,Iacute:sle,iacute:lle,Icirc:ale,icirc:cle,iexcl:ule,Igrave:fle,igrave:dle,iquest:hle,Iuml:ple,iuml:gle,laquo:vle,lt:mle,LT:yle,macr:ble,micro:wle,middot:xle,nbsp:_le,not:Sle,Ntilde:kle,ntilde:Tle,Oacute:Cle,oacute:Ele,Ocirc:Ale,ocirc:Lle,Ograve:Mle,ograve:Nle,ordf:$le,ordm:Ole,Oslash:Rle,oslash:Ple,Otilde:Ile,otilde:Dle,Ouml:zle,ouml:Fle,para:Hle,plusmn:Ble,pound:Wle,quot:qle,QUOT:Ule,raquo:jle,reg:Vle,REG:Gle,sect:Kle,shy:Xle,sup1:Yle,sup2:Zle,sup3:Jle,szlig:Qle,THORN:eae,thorn:tae,times:nae,Uacute:rae,uacute:iae,Ucirc:oae,ucirc:sae,Ugrave:lae,ugrave:aae,uml:cae,Uuml:uae,uuml:fae,Yacute:dae,yacute:hae,yen:pae,yuml:gae},mae="&",yae="'",bae=">",wae="<",xae='"',Cw={amp:mae,apos:yae,gt:bae,lt:wae,quot:xae};var ps={};const _ae={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 Nm;function Sae(){if(Nm)return ps;Nm=1;var e=ps&&ps.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ps,"__esModule",{value:!0});var t=e(_ae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ps.default=o,ps}var $m;function Om(){if($m)return br;$m=1;var e=br&&br.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(br,"__esModule",{value:!0}),br.decodeHTML=br.decodeHTMLStrict=br.decodeXML=void 0;var t=e(Tw),r=e(vae),o=e(Cw),s=e(Sae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;br.decodeXML=f(o.default),br.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};br.decodeHTML=function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var w=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=h(t.default);function N(T){return T.substr(-1)!==";"&&(T+=";"),E(T)}return function(T){return String(T).replace(w,N)}}();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return br}var Cn={},Rm;function Pm(){if(Rm)return Cn;Rm=1;var e=Cn&&Cn.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.escapeUTF8=Cn.escape=Cn.encodeNonAsciiHTML=Cn.encodeHTML=Cn.encodeXML=void 0;var t=e(Cw),r=d(t.default),o=h(r);Cn.encodeXML=T(r);var s=e(Tw),c=d(s.default),f=h(c);Cn.encodeHTML=b(c,f),Cn.encodeNonAsciiHTML=T(c);function d(L){return Object.keys(L).sort().reduce(function(A,R){return A[L[R]]="&"+R+";",A},{})}function h(L){for(var A=[],R=[],M=0,B=Object.keys(L);M<B.length;M++){var V=B[M];V.length===1?A.push("\\"+V):R.push(V)}A.sort();for(var G=0;G<A.length-1;G++){for(var ee=G;ee<A.length-1&&A[ee].charCodeAt(1)+1===A[ee+1].charCodeAt(1);)ee+=1;var ne=1+ee-G;ne<3||A.splice(G,ne,A[G]+"-"+A[ee])}return R.unshift("["+A.join("")+"]"),new RegExp(R.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(L){return L.codePointAt(0)}:function(L){return(L.charCodeAt(0)-55296)*1024+L.charCodeAt(1)-56320+65536};function m(L){return"&#x"+(L.length>1?v(L):L.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(L,A){return function(R){return R.replace(A,function(M){return L[M]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(L){return L.replace(w,m)}Cn.escape=E;function N(L){return L.replace(o,m)}Cn.escapeUTF8=N;function T(L){return function(A){return A.replace(w,function(R){return L[R]||m(R)})}}return Cn}var Im;function kae(){return Im||(Im=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Om(),r=Pm();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Pm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=Om();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})}(nd)),nd}var rd,Dm;function Tae(){if(Dm)return rd;Dm=1;function e($,P){if(!($ instanceof P))throw new TypeError("Cannot call a class as a function")}function t($,P){for(var O=0;O<P.length;O++){var S=P[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty($,S.key,S)}}function r($,P,O){return P&&t($.prototype,P),$}function o($,P){var O=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!O){if(Array.isArray($)||(O=s($))||P){O&&($=O);var S=0,F=function(){};return{s:F,n:function(){return S>=$.length?{done:!0}:{done:!1,value:$[S++]}},e:function(Pe){throw Pe},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,se=!1,me;return{s:function(){O=O.call($)},n:function(){var Pe=O.next();return j=Pe.done,Pe},e:function(Pe){se=!0,me=Pe},f:function(){try{!j&&O.return!=null&&O.return()}finally{if(se)throw me}}}}function s($,P){if($){if(typeof $=="string")return c($,P);var O=Object.prototype.toString.call($).slice(8,-1);if(O==="Object"&&$.constructor&&(O=$.constructor.name),O==="Map"||O==="Set")return Array.from($);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c($,P)}}function c($,P){(P==null||P>$.length)&&(P=$.length);for(var O=0,S=new Array(P);O<P;O++)S[O]=$[O];return S}var f=kae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var $={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 T(0,5).forEach(function(P){T(0,5).forEach(function(O){T(0,5).forEach(function(S){return p(P,O,S,$)})})}),T(0,23).forEach(function(P){var O=P+232,S=v(P*10+8);$[O]="#"+S+S+S}),$}function p($,P,O,S){var F=16+$*36+P*6+O,j=$>0?$*40+55:0,se=P>0?P*40+55:0,me=O>0?O*40+55:0;S[F]=m([j,se,me])}function v($){for(var P=$.toString(16);P.length<2;)P="0"+P;return P}function m($){var P=[],O=o($),S;try{for(O.s();!(S=O.n()).done;){var F=S.value;P.push(v(F))}}catch(j){O.e(j)}finally{O.f()}return"#"+P.join("")}function b($,P,O,S){var F;return P==="text"?F=R(O,S):P==="display"?F=E($,O,S):P==="xterm256Foreground"?F=V($,S.colors[O]):P==="xterm256Background"?F=G($,S.colors[O]):P==="rgb"&&(F=w($,O)),F}function w($,P){P=P.substring(2).slice(0,-1);var O=+P.substr(0,2),S=P.substring(5).split(";"),F=S.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return B($,(O===38?"color:#":"background-color:#")+F)}function E($,P,O){P=parseInt(P,10);var S={"-1":function(){return"<br/>"},0:function(){return $.length&&N($)},1:function(){return M($,"b")},3:function(){return M($,"i")},4:function(){return M($,"u")},8:function(){return B($,"display:none")},9:function(){return M($,"strike")},22:function(){return B($,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee($,"i")},24:function(){return ee($,"u")},39:function(){return V($,O.fg)},49:function(){return G($,O.bg)},53:function(){return B($,"text-decoration:overline")}},F;return S[P]?F=S[P]():4<P&&P<7?F=M($,"blink"):29<P&&P<38?F=V($,O.colors[P-30]):39<P&&P<48?F=G($,O.colors[P-40]):89<P&&P<98?F=V($,O.colors[8+(P-90)]):99<P&&P<108&&(F=G($,O.colors[8+(P-100)])),F}function N($){var P=$.slice(0);return $.length=0,P.reverse().map(function(O){return"</"+O+">"}).join("")}function T($,P){for(var O=[],S=$;S<=P;S++)O.push(S);return O}function L($){return function(P){return($===null||P.category!==$)&&$!=="all"}}function A($){$=parseInt($,10);var P=null;return $===0?P="all":$===1?P="bold":2<$&&$<5?P="underline":4<$&&$<7?P="blink":$===8?P="hide":$===9?P="strike":29<$&&$<38||$===39||89<$&&$<98?P="foreground-color":(39<$&&$<48||$===49||99<$&&$<108)&&(P="background-color"),P}function R($,P){return P.escapeXML?f.encodeXML($):$}function M($,P,O){return O||(O=""),$.push(P),"<".concat(P).concat(O?' style="'.concat(O,'"'):"",">")}function B($,P){return M($,"span",P)}function V($,P){return M($,"span","color:"+P)}function G($,P){return M($,"span","background-color:"+P)}function ee($,P){var O;if($.slice(-1)[0]===P&&(O=$.pop()),O)return"</"+P+">"}function ne($,P,O){var S=!1,F=3;function j(){return""}function se(H,Y){return O("xterm256Foreground",Y),""}function me(H,Y){return O("xterm256Background",Y),""}function _e(H){return P.newline?O("display",-1):O("text",H),""}function Pe(H,Y){S=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var ue=o(Y),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;O("display",de)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function qe(H){return O("text",H),""}function Ze(H){return O("rgb",H),""}var Ke=[{pattern:/^\x08+/,sub:j},{pattern:/^\x1b\[[012]?K/,sub:j},{pattern:/^\x1b\[\(B/,sub:j},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ze},{pattern:/^\x1b\[38;5;(\d+)m/,sub:se},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:j},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:j},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:j},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:qe}];function Xe(H,Y){Y>F&&S||(S=!1,$=$.replace(H.pattern,H.sub))}var te=[],z=$,J=z.length;e:for(;J>0;){for(var X=0,le=0,pe=Ke.length;le<pe;X=++le){var I=Ke[X];if(Xe(I,X),$.length!==J){J=$.length;continue e}}if($.length===J)break;te.push(0),J=$.length}return te}function K($,P,O){return P!=="text"&&($=$.filter(L(A(O))),$.push({token:P,data:O,category:A(O)})),$}var re=function(){function $(P){e(this,$),P=P||{},P.colors&&(P.colors=Object.assign({},d.colors,P.colors)),this.options=Object.assign({},d,P),this.stack=[],this.stickyStack=[]}return r($,[{key:"toHtml",value:function(O){var S=this;O=typeof O=="string"?[O]:O;var F=this.stack,j=this.options,se=[];return this.stickyStack.forEach(function(me){var _e=b(F,me.token,me.data,j);_e&&se.push(_e)}),ne(O.join(""),j,function(me,_e){var Pe=b(F,me,_e,j);Pe&&se.push(Pe),j.stream&&(S.stickyStack=K(S.stickyStack,me,_e))}),F.length&&se.push(N(F)),se.join("")}}]),$}();return rd=re,rd}var Cae=Tae();const Eae=kw(Cae);function Aae(e,t){return t&&e.endsWith(t)}async function Ew(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Uh(e){return new Eae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Lae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Aw(e){let t=e;if(Lae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=JA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var er=Uint8Array,ws=Uint16Array,Mae=Int32Array,Lw=new er([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]),Mw=new er([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]),Nae=new er([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Nw=function(e,t){for(var r=new ws(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Mae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},$w=Nw(Lw,2),Ow=$w.b,$ae=$w.r;Ow[28]=258,$ae[258]=28;var Oae=Nw(Mw,0),Rae=Oae.b,Vd=new ws(32768);for(var At=0;At<32768;++At){var Pi=(At&43690)>>1|(At&21845)<<1;Pi=(Pi&52428)>>2|(Pi&13107)<<2,Pi=(Pi&61680)>>4|(Pi&3855)<<4,Vd[At]=((Pi&65280)>>8|(Pi&255)<<8)>>1}var Fl=function(e,t,r){for(var o=e.length,s=0,c=new ws(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ws(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ws(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Vd[m]>>h]=p}else for(d=new ws(o),s=0;s<o;++s)e[s]&&(d[s]=Vd[f[e[s]-1]++]>>15-e[s]);return d},ka=new er(288);for(var At=0;At<144;++At)ka[At]=8;for(var At=144;At<256;++At)ka[At]=9;for(var At=256;At<280;++At)ka[At]=7;for(var At=280;At<288;++At)ka[At]=8;var Rw=new er(32);for(var At=0;At<32;++At)Rw[At]=5;var Pae=Fl(ka,9,1),Iae=Fl(Rw,5,1),id=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},wr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},od=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Dae=function(e){return(e+7)/8|0},Pw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new er(e.subarray(t,r))},zae=["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"],Wn=function(e,t,r){var o=new Error(t||zae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Wn),!r)throw o;return o},jh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new er(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new er(s*3));var p=function(pe){var I=r.length;if(pe>I){var H=new er(Math.max(I*2,pe));H.set(r),r=H}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,E=t.d,N=t.m,T=t.n,L=s*8;do{if(!w){v=wr(e,m,1);var A=wr(e,m+1,3);if(m+=3,A)if(A==1)w=Pae,E=Iae,N=9,T=5;else if(A==2){var V=wr(e,m,31)+257,G=wr(e,m+10,15)+4,ee=V+wr(e,m+5,31)+1;m+=14;for(var ne=new er(ee),K=new er(19),re=0;re<G;++re)K[Nae[re]]=wr(e,m+re*3,7);m+=G*3;for(var $=id(K),P=(1<<$)-1,O=Fl(K,$,1),re=0;re<ee;){var S=O[wr(e,m,P)];m+=S&15;var R=S>>4;if(R<16)ne[re++]=R;else{var F=0,j=0;for(R==16?(j=3+wr(e,m,3),m+=2,F=ne[re-1]):R==17?(j=3+wr(e,m,7),m+=3):R==18&&(j=11+wr(e,m,127),m+=7);j--;)ne[re++]=F}}var se=ne.subarray(0,V),me=ne.subarray(V);N=id(se),T=id(me),w=Fl(se,N,1),E=Fl(me,T,1)}else Wn(1);else{var R=Dae(m)+4,M=e[R-4]|e[R-3]<<8,B=R+M;if(B>s){h&&Wn(0);break}d&&p(b+M),r.set(e.subarray(R,B),b),t.b=b+=M,t.p=m=B*8,t.f=v;continue}if(m>L){h&&Wn(0);break}}d&&p(b+131072);for(var _e=(1<<N)-1,Pe=(1<<T)-1,qe=m;;qe=m){var F=w[od(e,m)&_e],Ze=F>>4;if(m+=F&15,m>L){h&&Wn(0);break}if(F||Wn(2),Ze<256)r[b++]=Ze;else if(Ze==256){qe=m,w=null;break}else{var Ke=Ze-254;if(Ze>264){var re=Ze-257,Xe=Lw[re];Ke=wr(e,m,(1<<Xe)-1)+Ow[re],m+=Xe}var te=E[od(e,m)&Pe],z=te>>4;te||Wn(3),m+=te&15;var me=Rae[z];if(z>3){var Xe=Mw[z];me+=od(e,m)&(1<<Xe)-1,m+=Xe}if(m>L){h&&Wn(0);break}d&&p(b+131072);var J=b+Ke;if(b<me){var X=c-me,le=Math.min(me,J);for(X+b<0&&Wn(3);b<le;++b)r[b]=o[X+b]}for(;b<J;++b)r[b]=r[b-me]}}t.l=w,t.p=qe,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=E,t.n=T)}while(!v);return b!=r.length&&f?Pw(r,0,b):r.subarray(0,b)},Fae=new er(0),Hae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Wn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Bae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Wae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Wn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Wn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function qae(e,t){return jh(e,{i:2},t,t)}function Uae(e,t){var r=Hae(e);return r+8>e.length&&Wn(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new er(Bae(e)),t)}function jae(e,t){return jh(e.subarray(Wae(e),-4),{i:2},t,t)}function Vae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Uae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?qae(e,t):jae(e,t)}var Gd=typeof TextDecoder<"u"&&new TextDecoder,Gae=0;try{Gd.decode(Fae,{stream:!0}),Gae=1}catch{}var Kae=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Pw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Xae(e,t){var r;if(Gd)return Gd.decode(e);var o=Kae(e),s=o.s,r=o.r;return r.length&&Wn(8),s}const sd=()=>{},pn=()=>Promise.resolve();function Yae(){const e=tr({state:new jb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=tr(e.state.filesMap),e.state.idMap=tr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:pn,onDone:sd,onTaskUpdate:sd,writeFile:pn,rerun:pn,rerunTask:pn,updateSnapshot:pn,resolveSnapshotPath:pn,snapshotSaved:pn,onAfterSuiteRun:pn,onCancel:pn,getCountOfFailedTests:()=>0,sendLog:pn,resolveSnapshotRawPath:pn,readSnapshotFile:pn,saveSnapshotFile:pn,readTestFile:async d=>t.sources[d],removeSnapshotFile:pn,onUnhandledError:sd,saveTestFile:pn,getProvidedContext:()=>({}),getTestFiles:pn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=Xae(Vae(m));t=Fd(b)}else t=Fd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return Cr?Yae():KC(iA,{reactive:(t,r)=>r==="state"?tr(t):tn(t),handlers:{onTaskUpdate(t){Me.resumeRun(t),Iu.value="running"},onFinished(t,r){Me.endRun(),Wi.value=(r||[]).map(Aw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),zu=tn({}),Eo=Ue("CONNECTING"),Jt=Se(()=>{const e=eo.value;return e?cr(e):void 0}),Iw=Se(()=>Dh(Jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function cr(e){const t=mt.state.idMap.get(e);return t||void 0}const Zae=Se(()=>Eo.value==="OPEN"),ld=Se(()=>Eo.value==="CONNECTING");Se(()=>Eo.value==="CLOSED");function Jae(){return Vh(mt.state.getFiles())}function Dw(e){delete e.result;const t=Me.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,_a(e)))for(const r of e.tasks)Dw(r)}function Qae(e){const t=Me.nodes;e.forEach(r=>{delete r.result,Dh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,On(o)&&(o.collectDuration=void 0))})}function Vh(e){return Qae(e),Me.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function ece(e){return Dw(e),Me.startRun(),mt.rpc.rerunTask(e.id)}const Po=window.__vitest_browser_runner__;window.__vitest_ui_api__=tA;xt(()=>mt.ws,e=>{Eo.value=Cr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Eo.value="OPEN",mt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([mt.rpc.getFiles(),mt.rpc.getConfig(),mt.rpc.getUnhandledErrors(),mt.rpc.getResolvedProjectNames()]);r.standalone&&(t=(await mt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Ib(h,d,f);return p.mode="skip",p})),Me.loadFiles(t,s),mt.state.collectFiles(t),Me.startRun(),Wi.value=(o||[]).map(Aw),zu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Eo.value==="CONNECTING"&&(Eo.value="CLOSED")},1e3)})},{immediate:!0});const tce={"text-2xl":""},nce={"text-lg":"",op50:""},rce=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>U(Zae)?Ye("",!0):(ce(),xe("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)=>U(mt).reconnect&&U(mt).reconnect(...o))},[ie("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(U(ld)?"animate-pulse":"")},[ie("div",{text:"5xl",class:it(U(ld)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ie("div",tce,Be(U(ld)?"Connecting...":"Disconnected"),1),ie("div",nce," Check your terminal or start a new server with `"+Be(U(Po)?`vitest --browser=${U(Po).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),ice=["aria-label","opacity","disabled","hover"],bi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ce(),xe("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:it(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[yn(t.$slots,"default",{},()=>[ie("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,ice))}}),oce={h:"full",flex:"~ col"},sce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},lce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},ace={class:"pointer-events-none","text-sm":""},cce={key:0},uce={id:"tester-container",relative:""},fce=["data-scale"],zm=20,dce=100,hce=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Hr.value[0]===v[0]&&Hr.value[1]===v[1]}async function o(p){Hr.value=t[p]}const{width:s,height:c}=iw(),f=Se(()=>{const m=s.value*(Nn.details.size/100)*(Nn.details.browser/100)-zm,b=c.value-dce;return{width:m,height:b}}),d=Se(()=>{const[p,v]=Hr.value,{width:m,height:b}=f.value,w=m>p?1:m/p,E=b>v?1:b/v;return Math.min(1,w,E)}),h=Se(()=>{const p=f.value.width,v=Hr.value[0];return`${Math.trunc((p+zm-v)/2)}px`});return(p,v)=>{const m=bi,b=Kr("tooltip");return ce(),xe("div",oce,[ie("div",sce,[gt(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>U(eA)())},null,512),[[ji,U(Nn).navigation<=15],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ie("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),gt(Oe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>U(JE)())},null,512),[[ji,U(Nn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>U(QE)())},null,512),[[ji,U(Nn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),ie("div",lce,[gt(Oe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),ie("span",ace,[pt(Be(U(Hr)[0])+"x"+Be(U(Hr)[1])+"px ",1),U(d)<1?(ce(),xe("span",cce,"("+Be((U(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),ie("div",uce,[ie("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":U(d),style:en({"--viewport-width":`${U(Hr)[0]}px`,"--viewport-height":`${U(Hr)[1]}px`,"--tester-transform":`scale(${U(d)})`,"--tester-margin-left":U(h)})}," Select a test to run ",12,fce)])])}}}),pce=yi(hce,[["__scopeId","data-v-4b1a1457"]]),zw=ut({__name:"Modal",props:Gl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Tu(e,"modelValue"),r=Se(()=>{switch(e.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=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ce(),xe("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ie("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ie("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:en(t.value?{}:{transform:U(o)})},[yn(c.$slots,"default")],6)],2))}}),gce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},vce={"p-4":"",relative:"",border:"base b"},mce={op50:"","font-mono":"","text-sm":""},yce={op50:"","font-mono":"","text-sm":""},bce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},wce=["src","alt"],xce={key:1},_ce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Qb("Escape",()=>{r("close")}),(o,s)=>{const c=bi;return ce(),xe("div",gce,[ie("div",vce,[s[1]||(s[1]=ie("p",null,"Screenshot error",-1)),ie("p",mce,Be(o.file),1),ie("p",yce,Be(o.name),1),Oe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),ie("div",bce,[o.url?(ce(),xe("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,wce)):(ce(),xe("div",xce," Something was wrong, the image cannot be resolved. "))])])}}}),Sce=yi(_ce,[["__scopeId","data-v-93900314"]]);function Hl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Ta=mE(),kce=tE(Ta),Tce={class:"scrolls scrolls-rounded task-error"},Cce=["onClickPassive"],Ece=["innerHTML"],Ace=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Se(()=>Uh(Ta.value)),s=Se(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Se(()=>t.error.diff?o.value.toHtml(Hl(t.error.diff)):void 0);return(f,d)=>{const h=Kr("tooltip");return ce(),xe("div",Tce,[ie("pre",null,[ie("b",null,Be(f.error.name||f.error.nameStr),1),pt(": "+Be(f.error.message),1)]),(ce(!0),xe(ct,null,hi(f.error.stacks,(p,v)=>(ce(),xe("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ie("pre",null," - "+Be(r(p.file))+":"+Be(p.line)+":"+Be(p.column),1),U(Aae)(p.file,f.filename)?gt((ce(),xe("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:m=>U(Ew)(p.file,p.line,p.column)},null,40,Cce)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),U(s)?(ce(),xe("pre",{key:0,"data-testid":"diff",innerHTML:U(c)},null,8,Ece)):Ye("",!0)])}}}),Lce=yi(Ace,[["__scopeId","data-v-9dd6eaea"]]),Mce={"h-full":"",class:"scrolls"},Nce=["id"],$ce={flex:"~ gap-2 items-center"},Oce={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Rce=["innerHTML"],Pce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Ice=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(N=>r(N,w+1))]}function o(b,w){var T,L,A;let E="";(T=w.message)!=null&&T.includes("\x1B")&&(E=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Hl(w.message))}`);const N=(L=w.stackStr)==null?void 0:L.includes("\x1B");return(N||(A=w.stack)!=null&&A.includes("\x1B"))&&(E.length>0?E+=b.toHtml(Hl(N?w.stackStr:w.stack)):E=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Hl(N?w.stackStr:w.stack))}`),E.length>0?E:null}function s(b,w){const E=Uh(b);return w.map(N=>{var A;const T=N.result;if(!T)return N;const L=(A=T.errors)==null?void 0:A.map(R=>o(E,R)).filter(R=>R!=null).join("<br><br>");return L!=null&&L.length&&(T.htmlError=L),N})}const c=Se(()=>{var T,L;const b=t.file,w=((T=b==null?void 0:b.tasks)==null?void 0:T.flatMap(A=>r(A,0)))??[],E=b==null?void 0:b.result;if((L=E==null?void 0:E.errors)==null?void 0:L[0]){const A={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};w.unshift(A)}return w.length>0?s(Ta.value,w):w});function f(b){var E;const w=(E=b.meta)==null?void 0:E.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=Ue(!1),h=Ue(Date.now()),p=Ue(),v=Se(()=>{var E;const b=(E=p.value)==null?void 0:E.id,w=h.value;return b?`/__screenshot-error?id=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return xt(()=>[vw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Tt(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const E=bi,N=Lce,T=Sce,L=zw,A=Kr("tooltip");return ce(),xe("div",Mce,[U(c).length?(ce(!0),xe(ct,{key:0},hi(U(c),R=>{var M,B,V,G;return ce(),xe("div",{id:R.id,key:R.id},[ie("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:en({"margin-left":`${(M=R.result)!=null&&M.htmlError?.5:2*R.level+.5}rem`})},[ie("div",$ce,[ie("span",null,Be(R.name),1),U(Po)&&((B=R.meta)!=null&&B.failScreenshotPath)?(ce(),xe(ct,{key:0},[gt(Oe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ee=>m(R)},null,8,["onClick"]),[[A,"View screenshot error",void 0,{bottom:!0}]]),gt(Oe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ee=>f(R)},null,8,["onClick"]),[[A,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(V=R.result)!=null&&V.htmlError?(ce(),xe("div",Oce,[ie("pre",{innerHTML:R.result.htmlError},null,8,Rce)])):(G=R.result)!=null&&G.errors?(ce(!0),xe(ct,{key:1},hi(R.result.errors,(ee,ne)=>{var K;return ce(),nt(N,{key:ne,error:ee,filename:(K=b.file)==null?void 0:K.name,root:U(zu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)],8,Nce)}),128)):(ce(),xe("div",Pce," All tests passed in this file ")),U(Po)?(ce(),nt(L,{key:2,modelValue:U(d),"onUpdate:modelValue":w[1]||(w[1]=R=>Ct(d)?d.value=R:null),direction:"right"},{default:rt(()=>[U(p)?(ce(),nt(Jy,{key:0},{default:rt(()=>[Oe(T,{file:U(p).file.filepath,name:U(p).name,url:U(v),onClose:w[0]||(w[0]=R=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),Dce=yi(Ice,[["__scopeId","data-v-013fc3c6"]]),zce={border:"b base","p-4":""},Fce=["innerHTML"],Hce=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ce(),xe("div",zce,[ie("div",{"text-xs":"","mb-1":"",class:it(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Be(t(r.time))+" | "+Be(r.taskName)+" | "+Be(r.type),3),ie("pre",{"data-type":"html",innerHTML:r.content},null,8,Fce)]))}}),Bce={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Wce={key:1,p6:""},qce=ut({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const o=Iw.value;if(o){const s=Uh(Ta.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Hl(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?RC(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Hce;return(f=U(t))!=null&&f.length?(ce(),xe("div",Bce,[(ce(!0),xe(ct,null,hi(U(t),({taskId:d,type:h,time:p,content:v})=>(ce(),xe("div",{key:d,"font-mono":""},[Oe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(ce(),xe("p",Wce,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),ie("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Nc={exports:{}},Uce=Nc.exports,Fm;function Ws(){return Fm||(Fm=1,function(e,t){(function(r,o){e.exports=o()})(Uce,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),N=/Apple Computer/.test(navigator.vendor),T=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),A=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),M=A||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=A||/Mac/.test(o),V=/\bCrOS\b/.test(r),G=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,v=!0);var ne=B&&(m||E&&(ee==null||ee<12.11)),K=s||h&&p>=9;function re(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var $=function(n,i){var a=n.className,l=re(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function P(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return P(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function F(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:j=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 se(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 me(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 _e(n,i){var a=n.className;re(i).test(a)||(n.className+=(a?" ":"")+i)}function Pe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!re(a[l]).test(i)&&(i+=" "+a[l]);return i}var qe=function(n){n.select()};A?qe=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(qe=function(n){try{n.select()}catch{}});function Ze(n){return n.display.wrapper.ownerDocument}function Ke(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function te(n){return Ze(n).defaultView}function z(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function J(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 X(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.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 pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,H={toString:function(){return"CodeMirror.Pass"}},Y={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ve(Ce)+" ");return Ce[n]}function ve(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ne(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Ne.prototype=n,a=new Ne),i&&J(i,a),a}var je=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||je.test(n))}function ot(n,i){return i?i.source.indexOf("\\w")>-1&&tt(n)?!0:i.test(n):tt(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function st(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function jt(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function Ft(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function In(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Or=null;function Dt(n,i,a){var l;Or=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Or=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Or=u)}return l??Or}var Dn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function _(k,D,q){this.level=k,this.from=D,this.to=q}return function(k,D){var q=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var Q=k.length,Z=[],ae=0;ae<Q;++ae)Z.push(a(k.charCodeAt(ae)));for(var ge=0,we=q;ge<Q;++ge){var ke=Z[ge];ke=="m"?Z[ge]=we:we=ke}for(var Le=0,Te=q;Le<Q;++Le){var $e=Z[Le];$e=="1"&&Te=="r"?Z[Le]="n":g.test($e)&&(Te=$e,$e=="r"&&(Z[Le]="R"))}for(var Fe=1,Ie=Z[0];Fe<Q-1;++Fe){var Je=Z[Fe];Je=="+"&&Ie=="1"&&Z[Fe+1]=="1"?Z[Fe]="1":Je==","&&Ie==Z[Fe+1]&&(Ie=="1"||Ie=="n")&&(Z[Fe]=Ie),Ie=Je}for(var _t=0;_t<Q;++_t){var Yt=Z[_t];if(Yt==",")Z[_t]="N";else if(Yt=="%"){var Lt=void 0;for(Lt=_t+1;Lt<Q&&Z[Lt]=="%";++Lt);for(var Hn=_t&&Z[_t-1]=="!"||Lt<Q&&Z[Lt]=="1"?"1":"N",Sn=_t;Sn<Lt;++Sn)Z[Sn]=Hn;_t=Lt-1}}for(var Ht=0,kn=q;Ht<Q;++Ht){var rn=Z[Ht];kn=="L"&&rn=="1"?Z[Ht]="L":g.test(rn)&&(kn=rn)}for(var qt=0;qt<Q;++qt)if(u.test(Z[qt])){var Bt=void 0;for(Bt=qt+1;Bt<Q&&u.test(Z[Bt]);++Bt);for(var Pt=(qt?Z[qt-1]:q)=="L",Tn=(Bt<Q?Z[Bt]:q)=="L",us=Pt==Tn?Pt?"L":"R":q,$i=qt;$i<Bt;++$i)Z[$i]=us;qt=Bt-1}for(var cn=[],zr,Zt=0;Zt<Q;)if(y.test(Z[Zt])){var zf=Zt;for(++Zt;Zt<Q&&y.test(Z[Zt]);++Zt);cn.push(new _(0,zf,Zt))}else{var ri=Zt,mo=cn.length,yo=D=="rtl"?1:0;for(++Zt;Zt<Q&&Z[Zt]!="L";++Zt);for(var hn=ri;hn<Zt;)if(x.test(Z[hn])){ri<hn&&(cn.splice(mo,0,new _(1,ri,hn)),mo+=yo);var fs=hn;for(++hn;hn<Zt&&x.test(Z[hn]);++hn);cn.splice(mo,0,new _(2,fs,hn)),mo+=yo,ri=hn}else++hn;ri<Zt&&cn.splice(mo,0,new _(1,ri,Zt))}return D=="ltr"&&(cn[0].level==1&&(zr=k.match(/^\s+/))&&(cn[0].from=zr[0].length,cn.unshift(new _(0,0,zr[0].length))),ve(cn).level==1&&(zr=k.match(/\s+$/))&&(ve(cn).to-=zr[0].length,cn.push(new _(0,Q-zr[0].length,Q)))),D=="rtl"?cn.reverse():cn}}();function et(n,i){var a=n.order;return a==null&&(a=n.order=Dn(n.text,i)),a}var La=[],ze=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]||La).concat(a)}};function Yr(n,i){return n._handlers&&n._handlers[i]||La}function sn(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,u=l&&l[i];if(u){var g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function $t(n,i){var a=Yr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Ot(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),$t(n,a||i.type,n,i),bn(i)||i.codemirrorIgnore}function ir(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)pe(a,i[l])==-1&&a.push(i[l])}function zn(n,i){return Yr(n,i).length>0}function ur(n){n.prototype.on=function(i,a){ze(this,i,a)},n.prototype.off=function(i,a){sn(this,i,a)}}function ln(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Fo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function bn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function wi(n){ln(n),Fo(n)}function qs(n){return n.target||n.srcElement}function fr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var Uu=function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n}(),Ho;function Ma(n){if(Ho==null){var i=S("span","");O(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Ho=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Ho?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Us;function xi(n){if(Us!=null)return Us;var i=O(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return P(n),!a||a.left==a.right?!1:Us=l.right-a.right<3}var or=`
|
|
22
|
+
|
|
23
|
+
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
24
|
+
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},_i=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},Na=function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),dr=null;function ju(n){if(dr!=null)return dr;var i=O(n,S("span","x")),a=i.getBoundingClientRect(),l=j(i,0,1).getBoundingClientRect();return dr=Math.abs(a.left-l.left)>1}var Bo={},hr={};function pr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Bo[n]=i}function lo(n,i){hr[n]=i}function Wo(n){if(typeof n=="string"&&hr.hasOwnProperty(n))n=hr[n];else if(n&&typeof n.name=="string"&&hr.hasOwnProperty(n.name)){var i=hr[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Wo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Wo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function qo(n,i){i=Wo(i);var a=Bo[i.name];if(!a)return qo(n,"text/plain");var l=a(n,i);if(Si.hasOwnProperty(i.name)){var u=Si[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var Si={};function Uo(n,i){var a=Si.hasOwnProperty(n)?Si[n]:Si[n]={};J(i,a)}function Rr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function js(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 jo(n,i,a){return n.startState?n.startState(i,a):!0}var Rt=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};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.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},Rt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Rt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Rt.prototype.backUp=function(n){this.pos-=n},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=X(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return X(this.string,null,this.tabSize)-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Rt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Rt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Re(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 u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Zr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function Vs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Xn(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=pe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function W(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],_=x.height;if(i<_)break;i-=_}return a+y}function fe(n,i){return i>=n.first&&i<n.first+n.size}function be(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function oe(n,i,a){if(a===void 0&&(a=null),!(this instanceof oe))return new oe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ae(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Ae(n,i)==0}function Vt(n){return oe(n.line,n.ch)}function wn(n,i){return Ae(n,i)<0?i:n}function Vo(n,i){return Ae(n,i)<0?n:i}function ap(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ge(n,i){if(i.line<n.first)return oe(n.first,0);var a=n.first+n.size-1;return i.line>a?oe(a,Re(n,a).text.length):q1(i,Re(n,i.line).text.length)}function q1(n,i){var a=n.ch;return a==null||a>i?oe(n.line,i):a<0?oe(n.line,0):n}function cp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var $a=function(n,i){this.state=n,this.lookAhead=i},Pr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Pr.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}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(n,i,a){return i instanceof $a?new Pr(n,Rr(n.mode,i.state),a,i.lookAhead):new Pr(n,Rr(n.mode,i),a)},Pr.prototype.save=function(n){var i=n!==!1?Rr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new $a(i,this.maxLookAhead):i};function up(n,i,a,l){var u=[n.state.modeGen],g={};vp(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var D=n.state.overlays[k],q=1,Q=0;a.state=!0,vp(n,i.text,D.mode,a,function(Z,ae){for(var ge=q;Q<Z;){var we=u[q];we>Z&&u.splice(q,1,Z,u[q+1],we),q+=2,Q=Math.min(Z,we)}if(ae)if(D.opaque)u.splice(ge,q-ge,Z,"overlay "+ae),q=ge+2;else for(;ge<q;ge+=2){var ke=u[ge+1];u[ge+1]=(ke?ke+" ":"")+"overlay "+ae}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)x(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function fp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Gs(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Rr(n.doc.mode,l.state),g=up(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.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 Gs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Pr(l,!0,i);var g=U1(n,i,a),y=g>l.first&&Re(l,g-1).stateAfter,x=y?Pr.fromSaved(l,y,g):new Pr(l,jo(l.mode),g);return l.iter(g,i,function(_){Vu(n,_.text,x);var k=x.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Vu(n,i,a,l){var u=n.doc.mode,g=new Rt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&dp(u,a.state);!g.eol();)Gu(u,g,a.state),g.start=g.pos}function dp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=js(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Gu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=js(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var hp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function pp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ge(u,i);var x=Re(u,i.line),_=Gs(n,i.line,a),k=new Rt(x.text,n.options.tabSize,_),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=Gu(g,k,_.state),l&&D.push(new hp(k,y,Rr(u.mode,_.state)));return l?D:new hp(k,y,_.state)}function gp(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 vp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var _=0,k=null,D=new Rt(i,n.options.tabSize,l),q,Q=n.options.addModeClass&&[null];for(i==""&&gp(dp(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(x=!1,y&&Vu(n,i,l,D.pos),D.pos=i.length,q=null):q=gp(Gu(a,D,l.state,Q),g),Q){var Z=Q[0].name;Z&&(q="m-"+(q?Z+" "+q:Z))}if(!x||k!=q){for(;_<D.start;)_=Math.min(D.start,_+5e3),u(_,k);k=q}D.start=D.pos}for(;_<D.pos;){var ae=Math.min(D.pos,_+5e3);u(ae,k),_=ae}}function U1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var _=Re(g,x-1),k=_.stateAfter;if(k&&(!a||x+(k instanceof $a?k.lookAhead:0)<=g.modeFrontier))return x;var D=X(_.text,null,n.options.tabSize);(u==null||l>D)&&(u=x-1,l=D)}return u}function j1(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 u=Re(n,l).stateAfter;if(u&&(!(u instanceof $a)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var mp=!1,Jr=!1;function V1(){mp=!0}function G1(){Jr=!0}function Oa(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 K1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function X1(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 Y1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Oa(y,g.from,_?null:g.to))}}return l}function Z1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Oa(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Ku(n,i){if(i.full)return null;var a=fe(n,i.from.line)&&Re(n,i.from.line).markedSpans,l=fe(n,i.to.line)&&Re(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ae(i.from,i.to)==0,x=Y1(a,u,y),_=Z1(l,g,y),k=i.text.length==1,D=ve(i.text).length+(k?u:0);if(x)for(var q=0;q<x.length;++q){var Q=x[q];if(Q.to==null){var Z=Ks(_,Q.marker);Z?k&&(Q.to=Z.to==null?null:Z.to+D):Q.to=u}}if(_)for(var ae=0;ae<_.length;++ae){var ge=_[ae];if(ge.to!=null&&(ge.to+=D),ge.from==null){var we=Ks(x,ge.marker);we||(ge.from=D,k&&(x||(x=[])).push(ge))}else ge.from+=D,k&&(x||(x=[])).push(ge)}x&&(x=yp(x)),_&&_!=x&&(_=yp(_));var ke=[x];if(!k){var Le=i.text.length-2,Te;if(Le>0&&x)for(var $e=0;$e<x.length;++$e)x[$e].to==null&&(Te||(Te=[])).push(new Oa(x[$e].marker,null,null));for(var Fe=0;Fe<Le;++Fe)ke.push(Te);ke.push(_)}return ke}function yp(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 J1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Z){if(Z.markedSpans)for(var ae=0;ae<Z.markedSpans.length;++ae){var ge=Z.markedSpans[ae].marker;ge.readOnly&&(!l||pe(l,ge)==-1)&&(l||(l=[])).push(ge)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),_=0;_<u.length;++_){var k=u[_];if(!(Ae(k.to,x.from)<0||Ae(k.from,x.to)>0)){var D=[_,1],q=Ae(k.from,x.from),Q=Ae(k.to,x.to);(q<0||!y.inclusiveLeft&&!q)&&D.push({from:k.from,to:x.from}),(Q>0||!y.inclusiveRight&&!Q)&&D.push({from:x.to,to:k.to}),u.splice.apply(u,D),_+=D.length-3}}return u}function bp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function wp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ra(n){return n.inclusiveLeft?-1:0}function Pa(n){return n.inclusiveRight?1:0}function Xu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ae(l.from,u.from)||Ra(n)-Ra(i);if(g)return-g;var y=Ae(l.to,u.to)||Pa(n)-Pa(i);return y||i.id-n.id}function xp(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Xu(l,u.marker)<0)&&(l=u.marker);return l}function _p(n){return xp(n,!0)}function Ia(n){return xp(n,!1)}function Q1(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Xu(l,g.marker)<0)&&(l=g.marker)}return l}function Sp(n,i,a,l,u){var g=Re(n,i),y=Jr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var _=y[x];if(_.marker.collapsed){var k=_.marker.find(0),D=Ae(k.from,a)||Ra(_.marker)-Ra(u),q=Ae(k.to,l)||Pa(_.marker)-Pa(u);if(!(D>=0&&q<=0||D<=0&&q>=0)&&(D<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.to,a)>=0:Ae(k.to,a)>0)||D>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.from,l)<=0:Ae(k.from,l)<0)))return!0}}}function gr(n){for(var i;i=_p(n);)n=i.find(-1,!0).line;return n}function ex(n){for(var i;i=Ia(n);)n=i.find(1,!0).line;return n}function tx(n){for(var i,a;i=Ia(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Yu(n,i){var a=Re(n,i),l=gr(a);return a==l?i:C(l)}function kp(n,i){if(i>n.lastLine())return i;var a=Re(n,i),l;if(!ki(n,a))return i;for(;l=Ia(a);)a=l.find(1,!0).line;return C(a)+1}function ki(n,i){var a=Jr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Zu(n,i,l))return!0}}}function Zu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Zu(n,l.line,Ks(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Zu(n,i,u))return!0}function Qr(n){n=gr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function Da(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=_p(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Ia(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Ju(n){var i=n.display,a=n.doc;i.maxLine=Re(a,a.first),i.maxLineLength=Da(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Da(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Go=function(n,i,a){this.text=n,wp(this,i),this.height=a?a(this):1};Go.prototype.lineNo=function(){return C(this)},ur(Go);function nx(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),bp(n),wp(n,a);var u=l?l(n):1;u!=n.height&&Xn(n,u)}function rx(n){n.parent=null,bp(n)}var ix={},ox={};function Tp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?ox:ix;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Cp(n,i){var a=F("span",null,null,v?"padding-right: .1px":null),l={pre:F("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=lx,xi(n.display.measure)&&(y=et(g,n.doc.direction))&&(l.addToken=cx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);ux(g,l,fp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Pe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Pe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ma(n.display.measure))),u==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 _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return $t(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Pe(l.pre.className,l.textClass||"")),l}function sx(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function lx(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?ax(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,D;if(!_.test(i))n.col+=i.length,D=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var q=0;;){_.lastIndex=q;var Q=_.exec(i),Z=Q?Q.index-q:i.length-q;if(Z){var ae=document.createTextNode(x.slice(q,q+Z));h&&p<9?D.appendChild(S("span",[ae])):D.appendChild(ae),n.map.push(n.pos,n.pos+Z,ae),n.col+=Z,n.pos+=Z}if(!Q)break;q+=Z+1;var ge=void 0;if(Q[0]==" "){var we=n.cm.options.tabSize,ke=we-n.col%we;ge=D.appendChild(S("span",Ee(ke),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),n.col+=ke}else Q[0]=="\r"||Q[0]==`
|
|
25
|
+
`?(ge=D.appendChild(S("span",Q[0]=="\r"?"␍":"","cm-invalidchar")),ge.setAttribute("cm-text",Q[0]),n.col+=1):(ge=n.cm.options.specialCharPlaceholder(Q[0]),ge.setAttribute("cm-text",Q[0]),h&&p<9?D.appendChild(S("span",[ge])):D.appendChild(ge),n.col+=1);n.map.push(n.pos,n.pos+1,ge),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Le=a||"";l&&(Le+=l),u&&(Le+=u);var Te=S("span",[D],Le,g);if(y)for(var $e in y)y.hasOwnProperty($e)&&$e!="style"&&$e!="class"&&Te.setAttribute($e,y[$e]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function ax(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function cx(n,i){return function(a,l,u,g,y,x,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var q=void 0,Q=0;Q<i.length&&(q=i[Q],!(q.to>k&&q.from<=k));Q++);if(q.to>=D)return n(a,l,u,g,y,x,_);n(a,l.slice(0,q.to-k),u,g,null,x,_),g=null,l=l.slice(q.to-k),k=q.to}}}function Ep(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function ux(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Tp(a[y+1],i.cm.options));return}for(var x=u.length,_=0,k=1,D="",q,Q,Z=0,ae,ge,we,ke,Le;;){if(Z==_){ae=ge=we=Q="",Le=null,ke=null,Z=1/0;for(var Te=[],$e=void 0,Fe=0;Fe<l.length;++Fe){var Ie=l[Fe],Je=Ie.marker;if(Je.type=="bookmark"&&Ie.from==_&&Je.widgetNode)Te.push(Je);else if(Ie.from<=_&&(Ie.to==null||Ie.to>_||Je.collapsed&&Ie.to==_&&Ie.from==_)){if(Ie.to!=null&&Ie.to!=_&&Z>Ie.to&&(Z=Ie.to,ge=""),Je.className&&(ae+=" "+Je.className),Je.css&&(Q=(Q?Q+";":"")+Je.css),Je.startStyle&&Ie.from==_&&(we+=" "+Je.startStyle),Je.endStyle&&Ie.to==Z&&($e||($e=[])).push(Je.endStyle,Ie.to),Je.title&&((Le||(Le={})).title=Je.title),Je.attributes)for(var _t in Je.attributes)(Le||(Le={}))[_t]=Je.attributes[_t];Je.collapsed&&(!ke||Xu(ke.marker,Je)<0)&&(ke=Ie)}else Ie.from>_&&Z>Ie.from&&(Z=Ie.from)}if($e)for(var Yt=0;Yt<$e.length;Yt+=2)$e[Yt+1]==Z&&(ge+=" "+$e[Yt]);if(!ke||ke.from==_)for(var Lt=0;Lt<Te.length;++Lt)Ep(i,0,Te[Lt]);if(ke&&(ke.from||0)==_){if(Ep(i,(ke.to==null?x+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=x)break;for(var Hn=Math.min(x,Z);;){if(D){var Sn=_+D.length;if(!ke){var Ht=Sn>Hn?D.slice(0,Hn-_):D;i.addToken(i,Ht,q?q+ae:ae,we,_+Ht.length==Z?ge:"",Q,Le)}if(Sn>=Hn){D=D.slice(Hn-_),_=Hn;break}_=Sn,we=""}D=u.slice(g,g=a[k++]),q=Tp(a[k++],i.cm.options)}}}function Ap(n,i,a){this.line=i,this.rest=tx(i),this.size=this.rest?C(ve(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ki(n,i)}function za(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Ap(n.doc,Re(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Ko=null;function fx(n){Ko?Ko.ops.push(n):n.ownsGroup=Ko={ops:[n],delayedCallbacks:[]}}function dx(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 u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function hx(n,i){var a=n.ownsGroup;if(a)try{dx(a)}finally{Ko=null,i(a)}}var Xs=null;function Gt(n,i){var a=Yr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Ko?u=Ko.delayedCallbacks:Xs?u=Xs:(u=Xs=[],setTimeout(px,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function px(){var n=Xs;Xs=null;for(var i=0;i<n.length;++i)n[i]()}function Lp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?vx(n,i):g=="gutter"?Np(n,i,a,l):g=="class"?Qu(n,i):g=="widget"&&mx(n,i,l)}i.changes=null}function Ys(n){return n.node==n.text&&(n.node=S("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function gx(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=Ys(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Mp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Cp(n,i)}function vx(n,i){var a=i.text.className,l=Mp(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,Qu(n,i)):a&&(i.text.className=a)}function Qu(n,i){gx(n,i),i.line.wrapClass?Ys(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 Np(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 u=Ys(i);i.gutterBackground=S("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),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=Ys(i),x=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(S("div",be(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,D=g.hasOwnProperty(k)&&g[k];D&&x.appendChild(S("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function mx(n,i,a){i.alignable&&(i.alignable=null);for(var l=re("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);$p(n,i,a)}function yx(n,i,a,l){var u=Mp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Qu(n,i),Np(n,i,a,l),$p(n,i,l),i.node}function $p(n,i,a){if(Op(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Op(n,i.rest[l],i,a,!1)}function Op(n,i,a,l,u){if(i.widgets)for(var g=Ys(a),y=0,x=i.widgets;y<x.length;++y){var _=x[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),bx(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Gt(_,"redraw")}}function bx(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Zs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!se(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;"),O(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ei(n,i){for(var a=qs(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 Fa(n){return n.lineSpace.offsetTop}function ef(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Rp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=O(n.measure,S("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 Ir(n){return I-n.display.nativeBarWidth}function ao(n){return n.display.scroller.clientWidth-Ir(n)-n.display.barWidth}function tf(n){return n.display.scroller.clientHeight-Ir(n)-n.display.barHeight}function wx(n,i,a){var l=n.options.lineWrapping,u=l&&ao(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var _=y[x],k=y[x+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Pp(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 u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function xx(n,i){i=gr(i);var a=C(i),l=n.display.externalMeasured=new Ap(n.doc,i,a);l.lineN=a;var u=l.built=Cp(n,l);return l.text=u.pre,O(n.display.lineMeasure,u.pre),l}function Ip(n,i,a,l){return Dr(n,Xo(n,i),a,l)}function nf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[fo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Xo(n,i){var a=C(i),l=nf(n,a);l&&!l.text?l=null:l&&l.changes&&(Lp(n,l,a,af(n)),n.curOp.forceUpdate=!0),l||(l=xx(n,i));var u=Pp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Dr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(wx(n,i.view,i.rect),i.hasHeights=!0),y=Sx(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Dp={left:0,right:0,top:0,bottom:0};function zp(n,i,a){for(var l,u,g,y,x,_,k=0;k<n.length;k+=3)if(x=n[k],_=n[k+1],i<x?(u=0,g=1,y="left"):i<_?(u=i-x,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-x,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],x==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==_-x)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:_}}function _x(n,i){var a=Dp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function Sx(n,i,a,l){var u=zp(i.map,a,l),g=u.node,y=u.start,x=u.end,_=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&st(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&st(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=_x(j(g,y,x).getClientRects(),l),k.left||k.right||y==0)break;x=y,y=y-1,_="right"}h&&p<11&&(k=kx(n.display.measure,k))}else{y>0&&(_=l="right");var q;n.options.lineWrapping&&(q=g.getClientRects()).length>1?k=q[l=="right"?q.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var Q=g.parentNode.getClientRects()[0];Q?k={left:Q.left,right:Q.left+Zo(n.display),top:Q.top,bottom:Q.bottom}:k=Dp}for(var Z=k.top-i.rect.top,ae=k.bottom-i.rect.top,ge=(Z+ae)/2,we=i.view.measure.heights,ke=0;ke<we.length-1&&!(ge<we[ke]);ke++);var Le=ke?we[ke-1]:0,Te=we[ke],$e={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Le,bottom:Te};return!k.left&&!k.right&&($e.bogus=!0),n.options.singleCursorHeightPerLine||($e.rtop=Z,$e.rbottom=ae),$e}function kx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ju(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 Fp(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 Hp(n){n.display.externalMeasure=null,P(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Fp(n.display.view[i])}function Js(n){Hp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Bp(n){return b&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Wp(n){return b&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function rf(n){var i=gr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Zs(a[u]));return l}function Ha(n,i,a,l,u){if(!u){var g=rf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=Qr(i);if(l=="local"?y+=Fa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Wp(Ze(n)));var _=x.left+(l=="window"?0:Bp(Ze(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function qp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Bp(Ze(n)),u-=Wp(Ze(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Ba(n,i,a,l,u){return l||(l=Re(n.doc,i.line)),Ha(n,l,Ip(n,l,i.ch,u),a)}function vr(n,i,a,l,u,g){l=l||Re(n.doc,i.line),u||(u=Xo(n,l));function y(ae,ge){var we=Dr(n,u,ae,ge?"right":"left",g);return ge?we.left=we.right:we.right=we.left,Ha(n,l,we,a)}var x=et(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!x)return y(k=="before"?_-1:_,k=="before");function D(ae,ge,we){var ke=x[ge],Le=ke.level==1;return y(we?ae-1:ae,Le!=we)}var q=Dt(x,_,k),Q=Or,Z=D(_,q,k=="before");return Q!=null&&(Z.other=D(_,Q,k!="before")),Z}function Up(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Zo(n.display)*i.ch);var l=Re(n.doc,i.line),u=Qr(l)+Fa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function of(n,i,a,l,u){var g=oe(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function sf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return of(l.first,0,null,-1,-1);var u=W(l,a),g=l.first+l.size-1;if(u>g)return of(l.first+l.size-1,Re(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Re(l,u);;){var x=Tx(n,y,u,i,a),_=Q1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var k=_.find(1);if(k.line==u)return k;y=Re(l,u=k.line)}}function jp(n,i,a,l){l-=rf(i);var u=i.text.length,g=Ft(function(y){return Dr(n,a,y-1).bottom<=l},u,0);return u=Ft(function(y){return Dr(n,a,y).top>l},g,u),{begin:g,end:u}}function Vp(n,i,a,l){a||(a=Xo(n,i));var u=Ha(n,i,Dr(n,a,l),"line").top;return jp(n,i,a,u)}function lf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Tx(n,i,a,l,u){u-=Qr(i);var g=Xo(n,i),y=rf(i),x=0,_=i.text.length,k=!0,D=et(i,n.doc.direction);if(D){var q=(n.options.lineWrapping?Ex:Cx)(n,i,a,g,D,l,u);k=q.level!=1,x=k?q.from:q.to-1,_=k?q.to:q.from-1}var Q=null,Z=null,ae=Ft(function(Fe){var Ie=Dr(n,g,Fe);return Ie.top+=y,Ie.bottom+=y,lf(Ie,l,u,!1)?(Ie.top<=u&&Ie.left<=l&&(Q=Fe,Z=Ie),!0):!1},x,_),ge,we,ke=!1;if(Z){var Le=l-Z.left<Z.right-l,Te=Le==k;ae=Q+(Te?0:1),we=Te?"after":"before",ge=Le?Z.left:Z.right}else{!k&&(ae==_||ae==x)&&ae++,we=ae==0?"after":ae==i.text.length?"before":Dr(n,g,ae-(k?1:0)).bottom+y<=u==k?"after":"before";var $e=vr(n,oe(a,ae,we),"line",i,g);ge=$e.left,ke=u<$e.top?-1:u>=$e.bottom?1:0}return ae=jt(i.text,ae,1),of(a,ae,we,ke,l-ge)}function Cx(n,i,a,l,u,g,y){var x=Ft(function(q){var Q=u[q],Z=Q.level!=1;return lf(vr(n,oe(a,Z?Q.to:Q.from,Z?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[x];if(x>0){var k=_.level!=1,D=vr(n,oe(a,k?_.from:_.to,k?"after":"before"),"line",i,l);lf(D,g,y,!0)&&D.top>y&&(_=u[x-1])}return _}function Ex(n,i,a,l,u,g,y){var x=jp(n,i,l,y),_=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,q=null,Q=0;Q<u.length;Q++){var Z=u[Q];if(!(Z.from>=k||Z.to<=_)){var ae=Z.level!=1,ge=Dr(n,l,ae?Math.min(k,Z.to)-1:Math.max(_,Z.from)).right,we=ge<g?g-ge+1e9:ge-g;(!D||q>we)&&(D=Z,q=we)}}return D||(D=u[u.length-1]),D.from<_&&(D={from:_,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var co;function Yo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(co==null){co=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)co.appendChild(document.createTextNode("x")),co.appendChild(S("br"));co.appendChild(document.createTextNode("x"))}O(n.measure,co);var a=co.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),P(n.measure),a||1}function Zo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");O(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function af(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:cf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function cf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Gp(n){var i=Yo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Zo(n.display)-3);return function(u){if(ki(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function uf(n){var i=n.doc,a=Gp(n);i.iter(function(l){var u=a(l);u!=l.height&&Xn(l,u)})}function uo(n,i,a,l){var u=n.display;if(!a&&qs(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var _=sf(n,g,y),k;if(l&&_.xRel>0&&(k=Re(n.doc,_.line).text).length==_.ch){var D=X(k,k.length,n.options.tabSize)-k.length;_=oe(_.line,Math.max(0,Math.round((g-Rp(n.display).left)/Zo(n.display))-D))}return _}function fo(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 xn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Jr&&Yu(n.doc,i)<u.viewTo&&Ci(n);else if(a<=u.viewFrom)Jr&&kp(n.doc,a+l)>u.viewFrom?Ci(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ci(n);else if(i<=u.viewFrom){var g=Wa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ci(n)}else if(a>=u.viewTo){var y=Wa(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ci(n)}else{var x=Wa(n,i,i,-1),_=Wa(n,a,a+l,1);x&&_?(u.view=u.view.slice(0,x.index).concat(za(n,x.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):Ci(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ti(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[fo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);pe(y,a)==-1&&y.push(a)}}}function Ci(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Wa(n,i,a,l){var u=fo(n,i),g,y=n.display.view;if(!Jr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,_=0;_<u;_++)x+=y[_].size;if(x!=i){if(l>0){if(u==y.length-1)return null;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;Yu(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function Ax(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=za(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=za(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(fo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(za(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,fo(n,a)))),l.viewTo=a}function Kp(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Qs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Xp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var _=a.sel.ranges[x];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(y){var D=y(n,_);D&&ff(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&ff(n,_.head,u);k||Lx(n,_,g)}}return l}function ff(n,i,a){var l=vr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Ba(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function qa(n,i){return n.top-i.top||n.left-i.left}function Lx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Rp(n.display),x=y.left,_=Math.max(l.sizerWidth,ao(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,$e,Fe,Ie){$e<0&&($e=0),$e=Math.round($e),Ie=Math.round(Ie),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
|
|
26
|
+
top: `+$e+"px; width: "+(Fe??_-Te)+`px;
|
|
27
|
+
height: `+(Ie-$e)+"px"))}function q(Te,$e,Fe){var Ie=Re(u,Te),Je=Ie.text.length,_t,Yt;function Lt(Ht,kn){return Ba(n,oe(Te,Ht),"div",Ie,kn)}function Hn(Ht,kn,rn){var qt=Vp(n,Ie,null,Ht),Bt=kn=="ltr"==(rn=="after")?"left":"right",Pt=rn=="after"?qt.begin:qt.end-(/\s/.test(Ie.text.charAt(qt.end-1))?2:1);return Lt(Pt,Bt)[Bt]}var Sn=et(Ie,u.direction);return In(Sn,$e||0,Fe??Je,function(Ht,kn,rn,qt){var Bt=rn=="ltr",Pt=Lt(Ht,Bt?"left":"right"),Tn=Lt(kn-1,Bt?"right":"left"),us=$e==null&&Ht==0,$i=Fe==null&&kn==Je,cn=qt==0,zr=!Sn||qt==Sn.length-1;if(Tn.top-Pt.top<=3){var Zt=(k?us:$i)&&cn,zf=(k?$i:us)&&zr,ri=Zt?x:(Bt?Pt:Tn).left,mo=zf?_:(Bt?Tn:Pt).right;D(ri,Pt.top,mo-ri,Pt.bottom)}else{var yo,hn,fs,Ff;Bt?(yo=k&&us&&cn?x:Pt.left,hn=k?_:Hn(Ht,rn,"before"),fs=k?x:Hn(kn,rn,"after"),Ff=k&&$i&&zr?_:Tn.right):(yo=k?Hn(Ht,rn,"before"):x,hn=!k&&us&&cn?_:Pt.right,fs=!k&&$i&&zr?x:Tn.left,Ff=k?Hn(kn,rn,"after"):_),D(yo,Pt.top,hn-yo,Pt.bottom),Pt.bottom<Tn.top&&D(x,Pt.bottom,null,Tn.top),D(fs,Tn.top,Ff-fs,Tn.bottom)}(!_t||qa(Pt,_t)<0)&&(_t=Pt),qa(Tn,_t)<0&&(_t=Tn),(!Yt||qa(Pt,Yt)<0)&&(Yt=Pt),qa(Tn,Yt)<0&&(Yt=Tn)}),{start:_t,end:Yt}}var Q=i.from(),Z=i.to();if(Q.line==Z.line)q(Q.line,Q.ch,Z.ch);else{var ae=Re(u,Q.line),ge=Re(u,Z.line),we=gr(ae)==gr(ge),ke=q(Q.line,Q.ch,we?ae.text.length+1:null).end,Le=q(Z.line,we?0:null,Z.ch).start;we&&(ke.top<Le.top-2?(D(ke.right,ke.top,null,ke.bottom),D(x,Le.top,Le.left,Le.bottom)):D(ke.right,ke.top,Le.left-ke.right,ke.bottom)),ke.bottom<Le.top&&D(x,ke.bottom,null,Le.top)}a.appendChild(g)}function df(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()||Jo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Yp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||pf(n))}function hf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Jo(n))},100)}function pf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||($t(n,"focus",n,i),n.state.focused=!0,_e(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()),df(n))}function Jo(n,i){n.state.delayingBlurEvent||(n.state.focused&&($t(n,"blur",n,i),n.state.focused=!1,$(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ua(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var x=i.view[y],_=n.options.lineWrapping,k=void 0,D=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var q=x.node.offsetTop+x.node.offsetHeight;k=q-a,a=q}else{var Q=x.node.getBoundingClientRect();k=Q.bottom-Q.top,!_&&x.text.firstChild&&(D=x.text.firstChild.getBoundingClientRect().right-Q.left-1)}var Z=x.line.height-k;if((Z>.005||Z<-.005)&&(u<l&&(g-=Z),Xn(x.line,k),Zp(x.line),x.rest))for(var ae=0;ae<x.rest.length;ae++)Zp(x.rest[ae]);if(D>n.display.sizerWidth){var ge=Math.ceil(D/Zo(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function Zp(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 ja(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Fa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=W(i,l),y=W(i,u);if(a&&a.ensure){var x=a.ensure.from.line,_=a.ensure.to.line;x<g?(g=x,y=W(i,Qr(Re(i,x))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=W(i,Qr(Re(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function Mx(n,i){if(!Ot(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!L){var y=S("div","",null,`position: absolute;
|
|
28
|
+
top: `+(i.top-a.viewOffset-Fa(n.display))+`px;
|
|
29
|
+
height: `+(i.bottom-i.top+Ir(n)+a.barHeight)+`px;
|
|
30
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Nx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?oe(i.line,i.ch+1,"before"):i,i=i.ch?oe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=vr(n,i),_=!a||a==i?x:vr(n,a);u={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-l,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+l};var k=gf(n,u),D=n.doc.scrollTop,q=n.doc.scrollLeft;if(k.scrollTop!=null&&(tl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(ho(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-q)>1&&(y=!0)),!y)break}return u}function $x(n,i){var a=gf(n,i);a.scrollTop!=null&&tl(n,a.scrollTop),a.scrollLeft!=null&&ho(n,a.scrollLeft)}function gf(n,i){var a=n.display,l=Yo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=tf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+ef(a),_=i.top<l,k=i.bottom>x-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?x:i.bottom)-g);D!=u&&(y.scrollTop=D)}var q=n.options.fixedGutter?0:a.gutters.offsetWidth,Q=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-q,Z=ao(n)-a.gutters.offsetWidth,ae=i.right-i.left>Z;return ae&&(i.right=i.left+Z),i.left<10?y.scrollLeft=0:i.left<Q?y.scrollLeft=Math.max(0,i.left+q-(ae?0:10)):i.right>Z+Q-3&&(y.scrollLeft=i.right+(ae?0:10)-Z),y}function vf(n,i){i!=null&&(Va(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Qo(n){Va(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function el(n,i,a){(i!=null||a!=null)&&Va(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ox(n,i){Va(n),n.curOp.scrollToPos=i}function Va(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Up(n,i.from),l=Up(n,i.to);Jp(n,a,l,i.margin)}}function Jp(n,i,a,l){var u=gf(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});el(n,u.scrollLeft,u.scrollTop)}function tl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||yf(n,{top:i}),Qp(n,i,!0),s&&yf(n),il(n,100))}function Qp(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 ho(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,ig(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function nl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+ef(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+Ir(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var po=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),ze(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ze(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};po.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 u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"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 g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"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}},po.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},po.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},po.prototype.zeroWidthHack=function(){var n=B&&!T?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},po.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},po.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var rl=function(){};rl.prototype.update=function(){return{bottom:0,right:0}},rl.prototype.setScrollLeft=function(){},rl.prototype.setScrollTop=function(){},rl.prototype.clear=function(){};function es(n,i){i||(i=nl(n));var a=n.display.barWidth,l=n.display.barHeight;eg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ua(n),eg(n,nl(n)),a=n.display.barWidth,l=n.display.barHeight}function eg(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 tg={native:po,null:rl};function ng(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&$(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new tg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),ze(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"?ho(n,i):tl(n,i)},n),n.display.scrollbars.addClass&&_e(n.display.wrapper,n.display.scrollbars.addClass)}var Rx=0;function go(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:++Rx,markArrays:null},fx(n.curOp)}function vo(n){var i=n.curOp;i&&hx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Px(a)})}function Px(n){for(var i=n.ops,a=0;a<i.length;a++)Ix(i[a]);for(var l=0;l<i.length;l++)Dx(i[l]);for(var u=0;u<i.length;u++)zx(i[u]);for(var g=0;g<i.length;g++)Fx(i[g]);for(var y=0;y<i.length;y++)Hx(i[y])}function Ix(n){var i=n.cm,a=i.display;Wx(i),n.updateMaxLine&&Ju(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 Dx(n){n.updatedDisplay=n.mustUpdate&&mf(n.cm,n.update)}function zx(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ua(i),n.barMeasure=nl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Ip(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+Ir(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-ao(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Fx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&ho(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(Ke(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&es(i,n.barMeasure),n.updatedDisplay&&wf(i,n.barMeasure),n.selectionChanged&&df(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Yp(n.cm)}function Hx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&rg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Qp(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&ho(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Nx(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);Mx(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||$t(g[x],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&$t(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&$t(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Fn(n,i){if(n.curOp)return i();go(n);try{return i()}finally{vo(n)}}function Kt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);go(n);try{return i.apply(n,arguments)}finally{vo(n)}}}function dn(n){return function(){if(this.curOp)return n.apply(this,arguments);go(this);try{return n.apply(this,arguments)}finally{vo(this)}}}function Xt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);go(i);try{return n.apply(this,arguments)}finally{vo(i)}}}function il(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,z(Bx,n))}function Bx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Gs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,x=g.text.length>n.options.maxHighlightLength?Rr(i.mode,l.state):null,_=up(n,g,l,!0);x&&(l.state=x),g.styles=_.styles;var k=g.styleClasses,D=_.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var q=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),Q=0;!q&&Q<y.length;++Q)q=y[Q]!=g.styles[Q];q&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Vu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return il(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Fn(n,function(){for(var g=0;g<u.length;g++)Ti(n,u[g],"text")})}}var Ga=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ja(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=ao(n),this.force=a,this.dims=af(n),this.events=[]};Ga.prototype.signal=function(n,i){zn(n,i)&&this.events.push(arguments)},Ga.prototype.finish=function(){for(var n=0;n<this.events.length;n++)$t.apply(null,this.events[n])};function Wx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Ir(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Ir(n)+"px",i.scrollbarsClipped=!0)}function qx(n){if(n.hasFocus())return null;var i=me(Ke(n));if(!i||!se(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=te(n).getSelection();l.anchorNode&&l.extend&&se(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Ux(n){if(!(!n||!n.activeElt||n.activeElt==me(Xe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&se(document.body,n.anchorNode)&&se(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 mf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ci(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&&Kp(n)==0)return!1;og(n)&&(Ci(n),i.dims=af(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Jr&&(g=Yu(n.doc,g),y=kp(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Ax(n,g,y),a.viewOffset=Qr(Re(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Kp(n);if(!x&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=qx(n);return _>4&&(a.lineDiv.style.display="none"),jx(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Ux(k),P(a.cursorDiv),P(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,il(n,400)),a.updateLineNumbers=null,!0}function rg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==ao(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+ef(n.display)-tf(n),a.top)}),i.visible=ja(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ja(n.display,n.doc,a));if(!mf(n,i))break;Ua(n);var u=nl(n);Qs(n),es(n,u),wf(n,u),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 yf(n,i){var a=new Ga(n,i);if(mf(n,a)){Ua(n),rg(n,a);var l=nl(n);Qs(n),es(n,l),wf(n,l),a.finish()}}function jx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ae){var ge=ae.nextSibling;return v&&B&&n.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),ge}for(var _=l.view,k=l.viewFrom,D=0;D<_.length;D++){var q=_[D];if(!q.hidden)if(!q.node||q.node.parentNode!=g){var Q=yx(n,q,k,a);g.insertBefore(Q,y)}else{for(;y!=q.node;)y=x(y);var Z=u&&i!=null&&i<=k&&q.lineNumber;q.changes&&(pe(q.changes,"gutter")>-1&&(Z=!1),Lp(n,q,k,a)),Z&&(P(q.lineNumber),q.lineNumber.appendChild(document.createTextNode(be(n.options,k)))),y=q.node.nextSibling}k+=q.size}for(;y;)y=x(y)}function bf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Gt(n,"gutterChanged",n)}function wf(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+Ir(n)+"px"}function ig(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=cf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var x=a[y].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function og(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=be(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",bf(n.display),!0}return!1}function xf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function sg(n){var i=n.gutters,a=n.gutterSpecs;P(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(S("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",bf(n)}function ol(n){sg(n.display),xn(n),ig(n)}function Vx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=F("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=F("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=F("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&M)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=xf(l.gutters,l.lineNumbers),sg(u),a.init(u)}var Ka=0,ti=null;h?ti=-.53:s?ti=15:b?ti=-.7:N&&(ti=-1/3);function lg(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 Gx(n){var i=lg(n);return i.x*=ti,i.y*=ti,i}function ag(n,i){b&&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=lg(i),l=a.x,u=a.y,g=ti;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,_=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(l&&_||u&&k){if(u&&B&&v){e:for(var D=i.target,q=y.view;D!=x;D=D.parentNode)for(var Q=0;Q<q.length;Q++)if(q[Q].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!E&&g!=null){u&&k&&tl(n,Math.max(0,x.scrollTop+u*g)),ho(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&k)&&ln(i),y.wheelStartX=null;return}if(u&&g!=null){var Z=u*g,ae=n.doc.scrollTop,ge=ae+y.wrapper.clientHeight;Z<0?ae=Math.max(0,ae+Z-50):ge=Math.min(n.doc.height,ge+Z+50),yf(n,{top:ae,bottom:ge})}Ka<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var we=x.scrollLeft-y.wheelStartX,ke=x.scrollTop-y.wheelStartY,Le=ke&&y.wheelDY&&ke/y.wheelDY||we&&y.wheelDX&&we/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Le&&(ti=(ti*Ka+Le)/(Ka+1),++Ka)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Yn=function(n,i){this.ranges=n,this.primIndex=i};Yn.prototype.primary=function(){return this.ranges[this.primIndex]},Yn.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(!ft(a.anchor,l.anchor)||!ft(a.head,l.head))return!1}return!0},Yn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new dt(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new Yn(n,this.primIndex)},Yn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Yn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ae(i,l.from())>=0&&Ae(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return Vo(this.anchor,this.head)},dt.prototype.to=function(){return wn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function mr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(Q,Z){return Ae(Q.from(),Z.from())}),a=pe(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],_=Ae(x.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Vo(x.from(),y.from()),D=wn(x.to(),y.to()),q=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(q?D:k,q?k:D))}}return new Yn(i,a)}function Ei(n,i){return new Yn([new dt(n,i||n)],0)}function Ai(n){return n.text?oe(n.from.line+n.text.length-1,ve(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function cg(n,i){if(Ae(n,i.from)<0)return n;if(Ae(n,i.to)<=0)return Ai(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+=Ai(i).ch-i.to.ch),oe(a,l)}function _f(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new dt(cg(u.anchor,i),cg(u.head,i)))}return mr(n.cm,a,n.sel.primIndex)}function ug(n,i,a){return n.line==i.line?oe(a.line,n.ch-i.ch+a.ch):oe(a.line+(n.line-i.line),n.ch)}function Kx(n,i,a){for(var l=[],u=oe(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],_=ug(x.from,u,g),k=ug(Ai(x),u,g);if(u=x.to,g=k,a=="around"){var D=n.sel.ranges[y],q=Ae(D.head,D.anchor)<0;l[y]=new dt(q?k:_,q?_:k)}else l[y]=new dt(_,_)}return new Yn(l,n.sel.primIndex)}function Sf(n){n.doc.mode=qo(n.options,n.doc.modeOption),sl(n)}function sl(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,il(n,100),n.state.modeGen++,n.curOp&&xn(n)}function fg(n,i){return i.from.ch==0&&i.to.ch==0&&ve(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function kf(n,i,a,l){function u(Le){return a?a[Le]:null}function g(Le,Te,$e){nx(Le,Te,$e,l),Gt(Le,"change",Le,i)}function y(Le,Te){for(var $e=[],Fe=Le;Fe<Te;++Fe)$e.push(new Go(k[Fe],u(Fe),l));return $e}var x=i.from,_=i.to,k=i.text,D=Re(n,x.line),q=Re(n,_.line),Q=ve(k),Z=u(k.length-1),ae=_.line-x.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(fg(n,i)){var ge=y(0,k.length-1);g(q,q.text,Z),ae&&n.remove(x.line,ae),ge.length&&n.insert(x.line,ge)}else if(D==q)if(k.length==1)g(D,D.text.slice(0,x.ch)+Q+D.text.slice(_.ch),Z);else{var we=y(1,k.length-1);we.push(new Go(Q+D.text.slice(_.ch),Z,l)),g(D,D.text.slice(0,x.ch)+k[0],u(0)),n.insert(x.line+1,we)}else if(k.length==1)g(D,D.text.slice(0,x.ch)+k[0]+q.text.slice(_.ch),u(0)),n.remove(x.line+1,ae);else{g(D,D.text.slice(0,x.ch)+k[0],u(0)),g(q,Q+q.text.slice(_.ch),Z);var ke=y(1,k.length-1);ae>1&&n.remove(x.line+1,ae-1),n.insert(x.line+1,ke)}Gt(n,"change",n,i)}function Li(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var _=u.linked[x];if(_.doc!=g){var k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function dg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,uf(n),Sf(n),hg(n),n.options.direction=i.direction,n.options.lineWrapping||Ju(n),n.options.mode=i.modeOption,xn(n)}function hg(n){(n.doc.direction=="rtl"?_e:$)(n.display.lineDiv,"CodeMirror-rtl")}function Xx(n){Fn(n,function(){hg(n),xn(n)})}function Xa(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 Tf(n,i){var a={from:Vt(i.from),to:Ai(i),text:Zr(n,i.from,i.to)};return vg(n,a,i.from.line,i.to.line+1),Li(n,function(l){return vg(l,a,i.from.line,i.to.line+1)},!0),a}function pg(n){for(;n.length;){var i=ve(n);if(i.ranges)n.pop();else break}}function Yx(n,i){if(i)return pg(n.done),ve(n.done);if(n.done.length&&!ve(n.done).ranges)return ve(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ve(n.done)}function gg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=Yx(u,u.lastOp==l)))x=ve(y.changes),Ae(i.from,i.to)==0&&Ae(i.from,x.to)==0?x.to=Ai(i):y.changes.push(Tf(n,i));else{var _=ve(u.done);for((!_||!_.ranges)&&Ya(n.sel,u.done),y={changes:[Tf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||$t(n,"historyAdded")}function Zx(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Jx(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||Zx(n,g,ve(u.done),i))?u.done[u.done.length-1]=i:Ya(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&pg(u.undone)}function Ya(n,i){var a=ve(i);a&&a.ranges&&a.equals(n)||i.push(n)}function vg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function Qx(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 e_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Qx(a[u]));return l}function mg(n,i){var a=e_(n,i),l=Ku(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var x=0;x<y.length;++x){for(var _=y[x],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function ts(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Yn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var _=0;_<y.length;++_){var k=y[_],D=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var q in k)(D=q.match(/^spans_(\d+)$/))&&pe(i,Number(D[1]))>-1&&(ve(x)[q]=k[q],delete k[q])}}return l}function Cf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ae(i,u)<0;g!=Ae(a,u)<0?(u=i,i=a):g!=Ae(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Za(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),an(n,new Yn([Cf(n.sel.primary(),i,a,u)],0),l)}function yg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Cf(n.sel.ranges[g],i[g],null,u);var y=mr(n.cm,l,n.sel.primIndex);an(n,y,a)}function Ef(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,an(n,mr(n.cm,u,n.sel.primIndex),l)}function bg(n,i,a,l){an(n,Ei(i,a),l)}function t_(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new dt(Ge(n,u[g].anchor),Ge(n,u[g].head))},origin:a&&a.origin};return $t(n,"beforeSelectionChange",n,l),n.cm&&$t(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?mr(n.cm,l.ranges,l.ranges.length-1):i}function wg(n,i,a){var l=n.history.done,u=ve(l);u&&u.ranges?(l[l.length-1]=i,Ja(n,i,a)):an(n,i,a)}function an(n,i,a){Ja(n,i,a),Jx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ja(n,i,a){(zn(n,"beforeSelectionChange")||n.cm&&zn(n.cm,"beforeSelectionChange"))&&(i=t_(n,i,a));var l=a&&a.bias||(Ae(i.primary().head,n.sel.primary().head)<0?-1:1);xg(n,Sg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Qo(n.cm)}function xg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ir(n.cm)),Gt(n,"cursorActivity",n))}function _g(n){xg(n,Sg(n,n.sel,null,!1))}function Sg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Qa(n,y.anchor,x&&x.anchor,a,l),k=y.head==y.anchor?_:Qa(n,y.head,x&&x.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(_,k))}return u?mr(n.cm,u,i.primIndex):i}function ns(n,i,a,l,u){var g=Re(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],_=x.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,D="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(k?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(D?x.to>=i.ch:x.to>i.ch))){if(u&&($t(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var q=_.find(l<0?1:-1),Q=void 0;if((l<0?D:k)&&(q=kg(n,q,-l,q&&q.line==i.line?g:null)),q&&q.line==i.line&&(Q=Ae(q,a))&&(l<0?Q<0:Q>0))return ns(n,q,i,l,u)}var Z=_.find(l<0?-1:1);return(l<0?k:D)&&(Z=kg(n,Z,l,Z.line==i.line?g:null)),Z?ns(n,Z,i,l,u):null}}return i}function Qa(n,i,a,l,u){var g=l||1,y=ns(n,i,a,g,u)||!u&&ns(n,i,a,g,!0)||ns(n,i,a,-g,u)||!u&&ns(n,i,a,-g,!0);return y||(n.cantEdit=!0,oe(n.first,0))}function kg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,oe(i.line-1)):null:a>0&&i.ch==(l||Re(n,i.line)).text.length?i.line<n.first+n.size-1?oe(i.line+1,0):null:new oe(i.line,i.ch+a)}function Tg(n){n.setSelection(oe(n.firstLine(),0),oe(n.lastLine()),Y)}function Cg(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(u,g,y,x){u&&(l.from=Ge(n,u)),g&&(l.to=Ge(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),$t(n,"beforeChange",n,l),n.cm&&$t(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 rs(n,i,a){if(n.cm){if(!n.cm.curOp)return Kt(n.cm,rs)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((zn(n,"beforeChange")||n.cm&&zn(n.cm,"beforeChange"))&&(i=Cg(n,i,!0),!i))){var l=mp&&!a&&J1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Eg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Eg(n,i)}}function Eg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ae(i.from,i.to)==0)){var a=_f(n,i);gg(n,i,a,n.cm?n.cm.curOp.id:NaN),ll(n,i,a,Ku(n,i));var l=[];Li(n,function(u,g){!g&&pe(l,u.history)==-1&&(Ng(u.history,i),l.push(u.history)),ll(u,i,null,Ku(u,i))})}}function ec(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,k=0;k<x.length&&(g=x[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(Ya(g,_),a&&!g.equals(n.sel)){an(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var D=[];Ya(y,_),_.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var q=zn(n,"beforeChange")||n.cm&&zn(n.cm,"beforeChange"),Q=function(ge){var we=g.changes[ge];if(we.origin=i,q&&!Cg(n,we,!1))return x.length=0,{};D.push(Tf(n,we));var ke=ge?_f(n,we):ve(x);ll(n,we,ke,mg(n,we)),!ge&&n.cm&&n.cm.scrollIntoView({from:we.from,to:Ai(we)});var Le=[];Li(n,function(Te,$e){!$e&&pe(Le,Te.history)==-1&&(Ng(Te.history,we),Le.push(Te.history)),ll(Te,we,null,mg(Te,we))})},Z=g.changes.length-1;Z>=0;--Z){var ae=Q(Z);if(ae)return ae.v}}}}function Ag(n,i){if(i!=0&&(n.first+=i,n.sel=new Yn(ye(n.sel.ranges,function(u){return new dt(oe(u.anchor.line+i,u.anchor.ch),oe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){xn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ti(n.cm,l,"gutter")}}function ll(n,i,a,l){if(n.cm&&!n.cm.curOp)return Kt(n.cm,ll)(n,i,a,l);if(i.to.line<n.first){Ag(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 u=i.text.length-1-(n.first-i.from.line);Ag(n,u),i={from:oe(n.first,0),to:oe(i.to.line+u,i.to.ch),text:[ve(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:oe(g,Re(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Zr(n,i.from,i.to),a||(a=_f(n,i)),n.cm?n_(n.cm,i,l):kf(n,i,l),Ja(n,a,Y),n.cantEdit&&Qa(n,oe(n.firstLine(),0))&&(n.cantEdit=!1)}}function n_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,_=g.line;n.options.lineWrapping||(_=C(gr(Re(l,g.line))),l.iter(_,y.line+1,function(Z){if(Z==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ir(n),kf(l,i,a,Gp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(Z){var ae=Da(Z);ae>u.maxLineLength&&(u.maxLine=Z,u.maxLineLength=ae,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),j1(l,g.line),il(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?xn(n):g.line==y.line&&i.text.length==1&&!fg(n.doc,i)?Ti(n,g.line,"text"):xn(n,g.line,y.line+1,k);var D=zn(n,"changes"),q=zn(n,"change");if(q||D){var Q={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};q&&Gt(n,"change",n,Q),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(Q)}n.display.selForContextMenu=null}function is(n,i,a,l,u){var g;l||(l=a),Ae(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),rs(n,{from:a,to:l,text:i,origin:u})}function Lg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Mg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var x=0;x<g.ranges.length;x++)Lg(g.ranges[x].anchor,i,a,l),Lg(g.ranges[x].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=oe(k.from.line+l,k.from.ch),k.to=oe(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Ng(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Mg(n.done,a,l,u),Mg(n.undone,a,l,u)}function al(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Re(n,ap(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&Ti(n.cm,u,a),g)}function cl(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}cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,rx(u),Gt(u,"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 ul(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}ul.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],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof cl))){var x=[];this.collapse(x),this.children=[new cl(x)],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 u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var _=new cl(u.lines.slice(x,x+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new ul(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=pe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new ul(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 u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var fl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};fl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Zs(this);Xn(a,Math.max(0,a.height-g)),n&&(Fn(n,function(){$g(n,a,-g),Ti(n,l,"widget")}),Gt(n,"lineWidgetCleared",n,this,l))}},fl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Zs(this)-i;u&&(ki(this.doc,l)||Xn(l,l.height+u),a&&Fn(a,function(){a.curOp.forceUpdate=!0,$g(a,l,u),Gt(a,"lineWidgetChanged",a,n,C(l))}))},ur(fl);function $g(n,i,a){Qr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&vf(n,a)}function r_(n,i,a,l){var u=new fl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),al(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!ki(n,y)){var _=Qr(y)<n.scrollTop;Xn(y,y.height+Zs(u)),_&&vf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Gt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var Og=0,Mi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Og};Mi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&go(n),zn(this,"clear")){var a=this.find();a&&Gt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=Ks(y.markedSpans,this);n&&!this.collapsed?Ti(n,C(y),"text"):n&&(x.to!=null&&(u=C(y)),x.from!=null&&(l=C(y))),y.markedSpans=K1(y.markedSpans,x),x.from==null&&this.collapsed&&!ki(this.doc,y)&&n&&Xn(y,Yo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=gr(this.lines[_]),D=Da(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&xn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&_g(n.doc)),n&&Gt(n,"markerCleared",n,this,l,u),i&&vo(n),this.parent&&this.parent.clear()}},Mi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=Ks(g.markedSpans,this);if(y.from!=null&&(a=oe(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=oe(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Mi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Fn(l,function(){var u=i.line,g=C(i.line),y=nf(l,g);if(y&&(Fp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ki(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var _=Zs(a)-x;_&&Xn(u,u.height+_)}Gt(l,"markerChanged",l,n)})},Mi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||pe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Mi.prototype.detachLine=function(n){if(this.lines.splice(pe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},ur(Mi);function os(n,i,a,l,u){if(l&&l.shared)return i_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Kt(n.cm,os)(n,i,a,l,u);var g=new Mi(n,u),y=Ae(i,a);if(l&&J(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=F("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Sp(n,i.line,i,a,g)||i.line!=a.line&&Sp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");G1()}g.addToHistory&&gg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,_=n.cm,k;if(n.iter(x,a.line+1,function(q){_&&g.collapsed&&!_.options.lineWrapping&&gr(q)==_.display.maxLine&&(k=!0),g.collapsed&&x!=i.line&&Xn(q,0),X1(q,new Oa(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(q){ki(n,q)&&Xn(q,0)}),g.clearOnEnter&&ze(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(V1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Og,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)xn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)Ti(_,D,"text");g.atomic&&_g(_.doc),Gt(_,"markerAdded",_,g)}return g}var dl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};dl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Gt(this,"clear")}},dl.prototype.find=function(n,i){return this.primary.find(n,i)},ur(dl);function i_(n,i,a,l,u){l=J(l),l.shared=!1;var g=[os(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Li(n,function(_){x&&(l.widgetNode=x.cloneNode(!0)),g.push(os(_,Ge(_,i),Ge(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=ve(g)}),new dl(g,y)}function Rg(n){return n.findMarks(oe(n.first,0),n.clipPos(oe(n.lastLine())),function(i){return i.parent})}function o_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Ae(g,y)){var x=os(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function s_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Li(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];pe(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var l_=0,_n=function(n,i,a,l,u){if(!(this instanceof _n))return new _n(n,i,a,l,u);a==null&&(a=0),ul.call(this,[new cl([new Go("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=oe(a,0);this.sel=Ei(g),this.history=new Xa(null),this.id=++l_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),kf(this,{from:g,to:g,text:n}),an(this,Ei(g),Y)};_n.prototype=De(ul.prototype,{constructor:_n,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=Vs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Xt(function(n){var i=oe(this.first,0),a=this.first+this.size-1;rs(this,{from:i,to:oe(a,Re(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&el(this.cm,0,0),an(this,Ei(i),Y)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,is(this,n,i,a,l)},getRange:function(n,i,a){var l=Zr(this,Ge(this,n),Ge(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(fe(this,n))return Re(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Re(this,n)),gr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ge(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:Xt(function(n,i,a){bg(this,Ge(this,typeof n=="number"?oe(n,i||0):n),null,a)}),setSelection:Xt(function(n,i,a){bg(this,Ge(this,n),Ge(this,i||n),a)}),extendSelection:Xt(function(n,i,a){Za(this,Ge(this,n),i&&Ge(this,i),a)}),extendSelections:Xt(function(n,i){yg(this,cp(this,n),i)}),extendSelectionsBy:Xt(function(n,i){var a=ye(this.sel.ranges,n);yg(this,cp(this,a),i)}),setSelections:Xt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new dt(Ge(this,n[u].anchor),Ge(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),an(this,mr(this.cm,l,i),a)}}),addSelection:Xt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new dt(Ge(this,n),Ge(this,i||n))),an(this,mr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Zr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}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 u=Zr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Xt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var x=i&&i!="end"&&Kx(this,l,i),_=l.length-1;_>=0;_--)rs(this,l[_]);x?wg(this,x):this.cm&&Qo(this.cm)}),undo:Xt(function(){ec(this,"undo")}),redo:Xt(function(){ec(this,"redo")}),undoSelection:Xt(function(){ec(this,"undo",!0)}),redoSelection:Xt(function(){ec(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 u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new Xa(this.history),Li(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:ts(this.history.done),undone:ts(this.history.undone)}},setHistory:function(n){var i=this.history=new Xa(this.history);i.done=ts(n.done.slice(0),null,!0),i.undone=ts(n.undone.slice(0),null,!0)},setGutterMarker:Xt(function(n,i,a){return al(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&<(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Xt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&al(i,a,"gutter",function(){return a.gutterMarkers[n]=null,lt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Re(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:Xt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(re(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Xt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(re(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:Xt(function(n,i,a){return r_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return os(this,Ge(this,n),Ge(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=Ge(this,n),os(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Re(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ge(this,n),i=Ge(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var x=0;x<y.length;x++){var _=y[x];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),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(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ge(this,oe(a,i))},indexFromPos:function(n){n=Ge(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 _n(Vs(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 _n(Vs(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}],o_(l,Rg(this)),l},unlinkDoc:function(n){if(n instanceof Et&&(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),s_(Rg(this));break}}if(n.history==this.history){var l=[n.id];Li(n,function(u){return l.push(u.id)},!0),n.history=new Xa(null),n.history.done=ts(this.history.done,l),n.history.undone=ts(this.history.undone,l)}},iterLinkedDocs:function(n){Li(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):or(n)},lineSeparator:function(){return this.lineSep||`
|
|
31
|
+
`},setDirection:Xt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Xx(this.cm))})}),_n.prototype.eachLine=_n.prototype.iter;var Pg=0;function a_(n){var i=this;if(Ig(i),!(Ot(i,n)||ei(i.display,n))){ln(n),h&&(Pg=+new Date);var a=uo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,x=function(){++y==u&&Kt(i,function(){a=Ge(i.doc,a);var Z={from:a,to:a,text:i.doc.splitLines(g.filter(function(ae){return ae!=null}).join(i.doc.lineSeparator())),origin:"paste"};rs(i.doc,Z),wg(i.doc,Ei(Ge(i.doc,a),Ge(i.doc,Ai(Z))))})()},_=function(Z,ae){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,Z.type)==-1){x();return}var ge=new FileReader;ge.onerror=function(){return x()},ge.onload=function(){var we=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(we)){x();return}g[ae]=we,x()},ge.readAsText(Z)},k=0;k<l.length;k++)_(l[k],k);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 D=n.dataTransfer.getData("Text");if(D){var q;if(i.state.draggingText&&!i.state.draggingText.copy&&(q=i.listSelections()),Ja(i.doc,Ei(a,a)),q)for(var Q=0;Q<q.length;++Q)is(i.doc,"",q[Q].anchor,q[Q].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function c_(n,i){if(h&&(!n.state.draggingText||+new Date-Pg<100)){wi(i);return}if(!(Ot(n,i)||ei(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!N)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function u_(n,i){var a=uo(n,i);if(a){var l=document.createDocumentFragment();ff(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),O(n.display.dragCursor,l)}}function Ig(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Dg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var zg=!1;function f_(){zg||(d_(),zg=!0)}function d_(){var n;ze(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Dg(h_)},100))}),ze(window,"blur",function(){return Dg(Jo)})}function h_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Ni={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"},hl=0;hl<10;hl++)Ni[hl+48]=Ni[hl+96]=String(hl);for(var tc=65;tc<=90;tc++)Ni[tc]=String.fromCharCode(tc);for(var pl=1;pl<=12;pl++)Ni[pl+111]=Ni[pl+63235]="F"+pl;var ni={};ni.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"},ni.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"},ni.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"},ni.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"]},ni.default=B?ni.macDefault:ni.pcDefault;function p_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function g_(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 u=ye(a.split(" "),p_),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var _=i[x];if(!_)i[x]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var k in i)n[k]=i[k];return n}function ss(n,i,a,l){i=nc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ss(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ss(n,i.fallthrough[g],a,l);if(y)return y}}}function Fg(n){var i=typeof n=="string"?n:Ni[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Hg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ne?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ne?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Bg(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=Ni[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Hg(a,n,i))}function nc(n){return typeof n=="string"?ni[n]:n}function ls(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ae(g.from,ve(l).to)<=0;){var y=l.pop();if(Ae(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Fn(n,function(){for(var x=l.length-1;x>=0;x--)is(n.doc,"",l[x].from,l[x].to,"+delete");Qo(n)})}function Af(n,i,a){var l=jt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Lf(n,i,a){var l=Af(n,i.ch,a);return l==null?null:new oe(i.line,l,a<0?"after":"before")}function Mf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=et(a,i.doc.direction);if(g){var y=u<0?ve(g):g[0],x=u<0==(y.level==1),_=x?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=Xo(i,a);k=u<0?a.text.length-1:0;var q=Dr(i,D,k).top;k=Ft(function(Q){return Dr(i,D,Q).top==q},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=Af(a,k,1))}else k=u<0?y.to:y.from;return new oe(l,k,_)}}return new oe(l,u<0?a.text.length:0,u<0?"before":"after")}function v_(n,i,a,l){var u=et(i,n.doc.direction);if(!u)return Lf(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 g=Dt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Lf(i,a,l);var x=function(ke,Le){return Af(i,ke instanceof oe?ke.ch:ke,Le)},_,k=function(ke){return n.options.lineWrapping?(_=_||Xo(n,i),Vp(n,i,_,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var q=y.level==1==l<0,Q=x(a,q?1:-1);if(Q!=null&&(q?Q<=y.to&&Q<=D.end:Q>=y.from&&Q>=D.begin)){var Z=q?"before":"after";return new oe(a.line,Q,Z)}}var ae=function(ke,Le,Te){for(var $e=function(_t,Yt){return Yt?new oe(a.line,x(_t,1),"before"):new oe(a.line,_t,"after")};ke>=0&&ke<u.length;ke+=Le){var Fe=u[ke],Ie=Le>0==(Fe.level!=1),Je=Ie?Te.begin:x(Te.end,-1);if(Fe.from<=Je&&Je<Fe.to||(Je=Ie?Fe.from:x(Fe.to,-1),Te.begin<=Je&&Je<Te.end))return $e(Je,Ie)}},ge=ae(g+l,l,D);if(ge)return ge;var we=l>0?D.end:x(D.begin,-1);return we!=null&&!(l>0&&we==i.text.length)&&(ge=ae(l>0?0:u.length-1,l,k(we)),ge)?ge:null}var gl={selectAll:Tg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Y)},killLine:function(n){return ls(n,function(i){if(i.empty()){var a=Re(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:oe(i.head.line+1,0)}:{from:i.head,to:oe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ls(n,function(i){return{from:oe(i.from().line,0),to:Ge(n.doc,oe(i.to().line+1,0))}})},delLineLeft:function(n){return ls(n,function(i){return{from:oe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ls(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 ls(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(oe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(oe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Wg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return qg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return m_(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")},he)},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")},he)},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/)?qg(n,i.head):l},he)},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,u=0;u<a.length;u++){var g=a[u].from(),y=X(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Fn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Re(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new oe(u.line,u.ch-1)),u.ch>0)u=new oe(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),oe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Re(n.doc,u.line-1).text;y&&(u=new oe(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),oe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Fn(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);Qo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
32
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Wg(n,i){var a=Re(n.doc,i),l=gr(a);return l!=a&&(i=C(l)),Mf(!0,n,l,i,1)}function m_(n,i){var a=Re(n.doc,i),l=ex(a);return l!=a&&(i=C(l)),Mf(!0,n,a,i,-1)}function qg(n,i){var a=Wg(n,i.line),l=Re(n.doc,a.line),u=et(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return oe(a.line,y?0:g,a.sticky)}return a}function rc(n,i,a){if(typeof i=="string"&&(i=gl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=H}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function y_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ss(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ss(i,n.options.extraKeys,a,n)||ss(i,n.options.keyMap,a,n)}var b_=new le;function vl(n,i,a,l){var u=n.state.keySeq;if(u){if(Fg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:b_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Ug(n,u+" "+i,a,l))return!0}return Ug(n,i,a,l)}function Ug(n,i,a,l){var u=y_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Gt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(ln(a),df(n)),!!u}function jg(n,i){var a=Bg(i,!0);return a?i.shiftKey&&!n.state.keySeq?vl(n,"Shift-"+a,i,function(l){return rc(n,l,!0)})||vl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return rc(n,l)}):vl(n,a,i,function(l){return rc(n,l)}):!1}function w_(n,i,a){return vl(n,"'"+a+"'",i,function(l){return rc(n,l,!0)})}var Nf=null;function Vg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(Ke(i)),!Ot(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=jg(i,n);E&&(Nf=l?a:null,!l&&a==88&&!Na&&(B?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!B&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&x_(i)}}function x_(n){var i=n.display.lineDiv;_e(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&($(i,"CodeMirror-crosshair"),sn(document,"keyup",a),sn(document,"mouseover",a))}ze(document,"keyup",a),ze(document,"mouseover",a)}function Gg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,n)}function Kg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ei(i.display,n)||Ot(i,n)||n.ctrlKey&&!n.altKey||B&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==Nf){Nf=null,ln(n);return}if(!(E&&(!n.which||n.which<10)&&jg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(w_(i,n,u)||i.display.input.onKeyPress(n))}}}var __=400,$f=function(n,i,a){this.time=n,this.pos=i,this.button=a};$f.prototype.compare=function(n,i,a){return this.time+__>n&&Ae(i,this.pos)==0&&a==this.button};var ml,yl;function S_(n,i){var a=+new Date;return yl&&yl.compare(a,n,i)?(ml=yl=null,"triple"):ml&&ml.compare(a,n,i)?(yl=new $f(a,n,i),ml=null,"double"):(ml=new $f(a,n,i),yl=null,"single")}function Xg(n){var i=this,a=i.display;if(!(Ot(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ei(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Of(i,n)){var l=uo(i,n),u=fr(n),g=l?S_(l,u):"single";te(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&k_(i,u,l,g,n))&&(u==1?l?C_(i,l,g,n):qs(n)==a.scroller&&ln(n):u==2?(l&&Za(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(K?i.display.input.onContextMenu(n):hf(i)))}}}function k_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,vl(n,Hg(g,u),u,function(y){if(typeof y=="string"&&(y=gl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=H}finally{n.state.suppressEdits=!1}return x})}function T_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=V?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=B?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(B?a.altKey:a.ctrlKey)),u}function C_(n,i,a,l){h?setTimeout(z(Yp,n),0):n.curOp.focus=me(Ke(n));var u=T_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Uu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ae((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ae(y.to(),i)>0||i.xRel<0)?E_(n,l,i,u):A_(n,l,i,u)}function E_(n,i,a,l){var u=n.display,g=!1,y=Kt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:hf(n)),sn(u.wrapper.ownerDocument,"mouseup",y),sn(u.wrapper.ownerDocument,"mousemove",x),sn(u.scroller,"dragstart",_),sn(u.scroller,"drop",y),g||(ln(k),l.addNew||Za(n.doc,a,null,null,l.extend),v&&!N||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,ze(u.wrapper.ownerDocument,"mouseup",y),ze(u.wrapper.ownerDocument,"mousemove",x),ze(u.scroller,"dragstart",_),ze(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Yg(n,i,a){if(a=="char")return new dt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new dt(oe(i.line,0),Ge(n.doc,oe(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function A_(n,i,a,l){h&&hf(n);var u=n.display,g=n.doc;ln(i);var y,x,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=k[x]:y=new dt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new dt(a,a)),a=uo(n,i,!0,!0),x=-1;else{var D=Yg(n,a,l.unit);l.extend?y=Cf(y,D.anchor,D.head,l.extend):y=D}l.addNew?x==-1?(x=k.length,an(g,mr(n,k.concat([y]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&l.unit=="char"&&!l.extend?(an(g,mr(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Ef(g,x,y,ue):(x=0,an(g,new Yn([y],0),ue),_=g.sel);var q=a;function Q(Te){if(Ae(q,Te)!=0)if(q=Te,l.unit=="rectangle"){for(var $e=[],Fe=n.options.tabSize,Ie=X(Re(g,a.line).text,a.ch,Fe),Je=X(Re(g,Te.line).text,Te.ch,Fe),_t=Math.min(Ie,Je),Yt=Math.max(Ie,Je),Lt=Math.min(a.line,Te.line),Hn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Lt<=Hn;Lt++){var Sn=Re(g,Lt).text,Ht=de(Sn,_t,Fe);_t==Yt?$e.push(new dt(oe(Lt,Ht),oe(Lt,Ht))):Sn.length>Ht&&$e.push(new dt(oe(Lt,Ht),oe(Lt,de(Sn,Yt,Fe))))}$e.length||$e.push(new dt(a,a)),an(g,mr(n,_.ranges.slice(0,x).concat($e),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var kn=y,rn=Yg(n,Te,l.unit),qt=kn.anchor,Bt;Ae(rn.anchor,qt)>0?(Bt=rn.head,qt=Vo(kn.from(),rn.anchor)):(Bt=rn.anchor,qt=wn(kn.to(),rn.head));var Pt=_.ranges.slice(0);Pt[x]=L_(n,new dt(Ge(g,qt),Bt)),an(g,mr(n,Pt,x),ue)}}var Z=u.wrapper.getBoundingClientRect(),ae=0;function ge(Te){var $e=++ae,Fe=uo(n,Te,!0,l.unit=="rectangle");if(Fe)if(Ae(Fe,q)!=0){n.curOp.focus=me(Ke(n)),Q(Fe);var Ie=ja(u,g);(Fe.line>=Ie.to||Fe.line<Ie.from)&&setTimeout(Kt(n,function(){ae==$e&&ge(Te)}),150)}else{var Je=Te.clientY<Z.top?-20:Te.clientY>Z.bottom?20:0;Je&&setTimeout(Kt(n,function(){ae==$e&&(u.scroller.scrollTop+=Je,ge(Te))}),50)}}function we(Te){n.state.selectingText=!1,ae=1/0,Te&&(ln(Te),u.input.focus()),sn(u.wrapper.ownerDocument,"mousemove",ke),sn(u.wrapper.ownerDocument,"mouseup",Le),g.history.lastSelOrigin=null}var ke=Kt(n,function(Te){Te.buttons===0||!fr(Te)?we(Te):ge(Te)}),Le=Kt(n,we);n.state.selectingText=Le,ze(u.wrapper.ownerDocument,"mousemove",ke),ze(u.wrapper.ownerDocument,"mouseup",Le)}function L_(n,i){var a=i.anchor,l=i.head,u=Re(n.doc,a.line);if(Ae(a,l)==0&&a.sticky==l.sticky)return i;var g=et(u);if(!g)return i;var y=Dt(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var _=y+(x.from==a.ch==(x.level!=1)?0:1);if(_==0||_==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=Dt(g,l.ch,l.sticky),q=D-y||(l.ch-a.ch)*(x.level==1?-1:1);D==_-1||D==_?k=q<0:k=q>0}var Q=g[_+(k?-1:0)],Z=k==(Q.level==1),ae=Z?Q.from:Q.to,ge=Z?"after":"before";return a.ch==ae&&a.sticky==ge?i:new dt(new oe(a.line,ae,ge),l)}function Zg(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&ln(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!zn(n,a))return bn(i);g-=x.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var D=W(n.doc,g),q=n.display.gutterSpecs[_];return $t(n,a,n,D,q.className,i),bn(i)}}}function Of(n,i){return Zg(n,i,"gutterClick",!0)}function Jg(n,i){ei(n.display,i)||M_(n,i)||Ot(n,i,"contextmenu")||K||n.display.input.onContextMenu(i)}function M_(n,i){return zn(n,"gutterContextMenu")?Zg(n,i,"gutterContextMenu",!1):!1}function Qg(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Js(n)}var as={toString:function(){return"CodeMirror.Init"}},ev={},ic={};function N_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,_,k){k!=as&&g(x,_,k)}:g)}n.defineOption=a,n.Init=as,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Sf(l)},!0),a("indentUnit",2,Sf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){sl(l),Js(l),xn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var k=0;;){var D=_.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(oe(y,D))}y++});for(var x=g.length-1;x>=0;x--)is(l.doc,u,g[x],oe(g[x].line,g[x].ch+u.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,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=as&&l.refresh()}),a("specialCharPlaceholder",sx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!G),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Qg(l),ol(l)},!0),a("keyMap","default",function(l,u,g){var y=nc(u),x=g!=as&&nc(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,O_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=xf(u,l.options.lineNumbers),ol(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?cf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return es(l)},!0),a("scrollbarStyle","native",function(l){ng(l),es(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=xf(l.options.gutters,u),ol(l)},!0),a("firstLineNumber",1,ol,!0),a("lineNumberFormatter",function(l){return l},ol,!0),a("showCursorWhenSelecting",!1,Qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Jo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,$_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Qs,!0),a("singleCursorHeightPerLine",!0,Qs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,sl,!0),a("addModeClass",!1,sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function $_(n,i,a){var l=a&&a!=as;if(!i!=!l){var u=n.display.dragFunctions,g=i?ze:sn;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function O_(n){n.options.lineWrapping?(_e(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):($(n.display.wrapper,"CodeMirror-wrap"),Ju(n)),uf(n),xn(n),Js(n),setTimeout(function(){return es(n)},100)}function Et(n,i){var a=this;if(!(this instanceof Et))return new Et(n,i);this.options=i=i?J(i):{},J(ev,i,!1);var l=i.value;typeof l=="string"?l=new _n(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Et.inputStyles[i.inputStyle](this),g=this.display=new Vx(n,l,u,i);g.wrapper.CodeMirror=this,Qg(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ng(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 le,keySeq:null,specialChars:null},i.autofocus&&!M&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),R_(this),f_(),go(this),this.curOp.forceUpdate=!0,dg(this,l),i.autofocus&&!M||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&pf(a)},20):Jo(this);for(var y in ic)ic.hasOwnProperty(y)&&ic[y](this,i[y],as);og(this),i.finishInit&&i.finishInit(this);for(var x=0;x<Rf.length;++x)Rf[x](this);vo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Et.defaults=ev,Et.optionHandlers=ic;function R_(n){var i=n.display;ze(i.scroller,"mousedown",Kt(n,Xg)),h&&p<11?ze(i.scroller,"dblclick",Kt(n,function(_){if(!Ot(n,_)){var k=uo(n,_);if(!(!k||Of(n,_)||ei(n.display,_))){ln(_);var D=n.findWordAt(k);Za(n.doc,D.anchor,D.head)}}})):ze(i.scroller,"dblclick",function(_){return Ot(n,_)||ln(_)}),ze(i.scroller,"contextmenu",function(_){return Jg(n,_)}),ze(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||Jg(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var D=k.left-_.left,q=k.top-_.top;return D*D+q*q>20*20}ze(i.scroller,"touchstart",function(_){if(!Ot(n,_)&&!g(_)&&!Of(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),ze(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ze(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!ei(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),q;!k.prev||y(k,k.prev)?q=new dt(D,D):!k.prev.prev||y(k,k.prev.prev)?q=n.findWordAt(D):q=new dt(oe(D.line,0),Ge(n.doc,oe(D.line+1,0))),n.setSelection(q.anchor,q.head),n.focus(),ln(_)}u()}),ze(i.scroller,"touchcancel",u),ze(i.scroller,"scroll",function(){i.scroller.clientHeight&&(tl(n,i.scroller.scrollTop),ho(n,i.scroller.scrollLeft,!0),$t(n,"scroll",n))}),ze(i.scroller,"mousewheel",function(_){return ag(n,_)}),ze(i.scroller,"DOMMouseScroll",function(_){return ag(n,_)}),ze(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Ot(n,_)||wi(_)},over:function(_){Ot(n,_)||(u_(n,_),wi(_))},start:function(_){return c_(n,_)},drop:Kt(n,a_),leave:function(_){Ot(n,_)||Ig(n)}};var x=i.input.getField();ze(x,"keyup",function(_){return Gg.call(n,_)}),ze(x,"keydown",Kt(n,Vg)),ze(x,"keypress",Kt(n,Kg)),ze(x,"focus",function(_){return pf(n,_)}),ze(x,"blur",function(_){return Jo(n,_)})}var Rf=[];Et.defineInitHook=function(n){return Rf.push(n)};function bl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Gs(n,i).state:a="prev");var y=n.options.tabSize,x=Re(u,i),_=X(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(x.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,x.text.slice(k.length),x.text),D==H||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=X(Re(u,i-1).text,null,y):D=0:a=="add"?D=_+n.options.indentUnit:a=="subtract"?D=_-n.options.indentUnit:typeof a=="number"&&(D=_+a),D=Math.max(0,D);var q="",Q=0;if(n.options.indentWithTabs)for(var Z=Math.floor(D/y);Z;--Z)Q+=y,q+=" ";if(Q<D&&(q+=Ee(D-Q)),q!=k)return is(u,q,oe(i,0),oe(i,k.length),"+input"),x.stateAfter=null,!0;for(var ae=0;ae<u.sel.ranges.length;ae++){var ge=u.sel.ranges[ae];if(ge.head.line==i&&ge.head.ch<k.length){var we=oe(i,k.length);Ef(u,ae,new dt(we,we));break}}}var yr=null;function oc(n){yr=n}function Pf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,_=or(i),k=null;if(x&&l.ranges.length>1)if(yr&&yr.text.join(`
|
|
33
|
+
`)==i){if(l.ranges.length%yr.text.length==0){k=[];for(var D=0;D<yr.text.length;D++)k.push(g.splitLines(yr.text[D]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=ye(_,function(ke){return[ke]}));for(var q=n.curOp.updateInput,Q=l.ranges.length-1;Q>=0;Q--){var Z=l.ranges[Q],ae=Z.from(),ge=Z.to();Z.empty()&&(a&&a>0?ae=oe(ae.line,ae.ch-a):n.state.overwrite&&!x?ge=oe(ge.line,Math.min(Re(g,ge.line).text.length,ge.ch+ve(_).length)):x&&yr&&yr.lineWise&&yr.text.join(`
|
|
34
|
+
`)==_.join(`
|
|
35
|
+
`)&&(ae=ge=oe(ae.line,0)));var we={from:ae,to:ge,text:k?k[Q%k.length]:_,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};rs(n.doc,we),Gt(n,"inputRead",n,we)}i&&!x&&nv(n,i),Qo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=q),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function tv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Fn(i,function(){return Pf(i,a,0,null,"paste")}),!0}function nv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=bl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Re(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=bl(n,u.head.line,"smart"));y&&Gt(n,"electricInput",n,u.head.line)}}}function rv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:oe(u,0),head:oe(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function If(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function iv(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),A&&(n.style.border="1px solid black"),i}function P_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){te(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Kt(this,i[l])(this,u,y),$t(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](nc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:dn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");We(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,xn(this)}),removeOverlay:dn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,xn(this);return}}}),indentLine:dn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),fe(this.doc,l)&&bl(this,l,u,g)}),indentSelection:dn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(bl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Qo(this));else{var _=x.from(),k=x.to(),D=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var q=D;q<g;++q)bl(this,q,l);var Q=this.doc.sel.ranges;_.ch==0&&u.length==Q.length&&Q[y].from().ch>0&&Ef(this.doc,y,new dt(_,Q[y].to()),Y)}}}),getTokenAt:function(l,u){return pp(this,l,u)},getLineTokens:function(l,u){return pp(this,oe(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=fp(this,Re(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,_;if(x==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=x)y=k;else if(u[k*2+1]<x)g=k+1;else{_=u[k*2+2];break}}var D=_?_.indexOf("overlay "):-1;return D<0?_:D==0?null:_.slice(0,D-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var _=0;_<x[u].length;_++){var k=y[x[u][_]];k&&g.push(k)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var D=0;D<y._global.length;D++){var q=y._global[D];q.pred(x,this)&&pe(g,q.val)==-1&&g.push(q.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=ap(g,l??g.first+g.size-1),Gs(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ge(this.doc,l):g=l?y.from():y.to(),vr(this,g,u||"page")},charCoords:function(l,u){return Ba(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=qp(this,l,u||"page"),sf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=qp(this,{top:l,left:0},u||"page").top,W(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),x=Re(this.doc,l)}else x=l;return Ha(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-Qr(x):0)},defaultTextHeight:function(){return Yo(this.display)},defaultCharWidth:function(){return Zo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var _=this.display;l=vr(this,Ge(this.doc,l));var k=l.bottom,D=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var q=Math.max(_.wrapper.clientHeight,this.doc.height),Q=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>q)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=q&&(k=l.bottom),D+u.offsetWidth>Q&&(D=Q-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",x=="right"?(D=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?D=0:x=="middle"&&(D=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=D+"px"),g&&$x(this,{left:D,top:k,right:D+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:dn(Vg),triggerOnKeyPress:dn(Kg),triggerOnKeyUp:Gg,triggerOnMouseDown:dn(Xg),execCommand:function(l){if(gl.hasOwnProperty(l))return gl[l].call(null,this)},triggerElectric:dn(function(l){nv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var _=Ge(this.doc,l),k=0;k<u&&(_=Df(this.doc,_,x,g,y),!_.hitSide);++k);return _},moveH:dn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Df(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:dn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ls(this,function(x){var _=Df(y,x.head,l,u,!1);return l<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(l,u,g,y){var x=1,_=y;u<0&&(x=-1,u=-u);for(var k=Ge(this.doc,l),D=0;D<u;++D){var q=vr(this,k,"div");if(_==null?_=q.left:q.left=_,k=ov(this,q,x,g),k.hitSide)break}return k},moveV:dn(function(l,u){var g=this,y=this.doc,x=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(D){if(_)return l<0?D.from():D.to();var q=vr(g,D.head,"div");D.goalColumn!=null&&(q.left=D.goalColumn),x.push(q.left);var Q=ov(g,q,l,u);return u=="page"&&D==y.sel.primary()&&vf(g,Ba(g,Q,"div").top-q.top),Q},he),x.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=x[k]}),findWordAt:function(l){var u=this.doc,g=Re(u,l.line).text,y=l.ch,x=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var k=g.charAt(y),D=ot(k,_)?function(q){return ot(q,_)}:/\s/.test(k)?function(q){return/\s/.test(q)}:function(q){return!/\s/.test(q)&&!ot(q)};y>0&&D(g.charAt(y-1));)--y;for(;x<g.length&&D(g.charAt(x));)++x}return new dt(oe(l.line,y),oe(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):$(this.display.cursorDiv,"CodeMirror-overwrite"),$t(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Ke(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dn(function(l,u){el(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Ir(this)-this.display.barHeight,width:l.scrollWidth-Ir(this)-this.display.barWidth,clientHeight:tf(this),clientWidth:ao(this)}},scrollIntoView:dn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:oe(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Ox(this,l):Jp(this,l.from,l.to,l.margin)}),setSize:dn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Hp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){Ti(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,$t(this,"refresh",this)}),operation:function(l){return Fn(this,l)},startOperation:function(){return go(this)},endOperation:function(){return vo(this)},refresh:dn(function(){var l=this.display.cachedTextHeight;xn(this),this.curOp.forceUpdate=!0,Js(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),bf(this.display),(l==null||Math.abs(l-Yo(this.display))>.5||this.options.lineWrapping)&&uf(this),$t(this,"refresh",this)}),swapDoc:dn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),dg(this,l),Js(this),this.display.input.reset(),el(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Gt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[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}},ur(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function Df(n,i,a,l,u){var g=i,y=a,x=Re(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Le=i.line+_;return Le<n.first||Le>=n.first+n.size?!1:(i=new oe(Le,i.ch,i.sticky),x=Re(n,Le))}function D(Le){var Te;if(l=="codepoint"){var $e=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN($e))Te=null;else{var Fe=a>0?$e>=55296&&$e<56320:$e>=56320&&$e<57343;Te=new oe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Fe?2:1))),-a)}}else u?Te=v_(n.cm,x,i,a):Te=Lf(x,i,a);if(Te==null)if(!Le&&k())i=Mf(u,n.cm,x,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")D();else if(l=="column")D(!0);else if(l=="word"||l=="group")for(var q=null,Q=l=="group",Z=n.cm&&n.cm.getHelper(i,"wordChars"),ae=!0;!(a<0&&!D(!ae));ae=!1){var ge=x.text.charAt(i.ch)||`
|
|
36
|
+
`,we=ot(ge,Z)?"w":Q&&ge==`
|
|
37
|
+
`?"n":!Q||/\s/.test(ge)?null:"p";if(Q&&!ae&&!we&&(we="s"),q&&q!=we){a<0&&(a=1,D(),i.sticky="after");break}if(we&&(q=we),a>0&&!D(!ae))break}var ke=Qa(n,i,g,y,!0);return ft(g,ke)&&(ke.hitSide=!0),ke}function ov(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,te(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(x-.5*Yo(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=sf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,If(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(x){for(var _=x.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}ze(u,"paste",function(x){!g(x)||Ot(l,x)||tv(x,l)||p<=11&&setTimeout(Kt(l,function(){return i.updateFromDOM()}),20)}),ze(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),ze(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),ze(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ze(u,"touchstart",function(){return a.forceCompositionEnd()}),ze(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Ot(l,x))){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=rv(l);oc({lineWise:!0,text:_.text}),x.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,Y),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var k=yr.text.join(`
|
|
38
|
+
`);if(x.clipboardData.setData("Text",k),x.clipboardData.getData("Text")==k){x.preventDefault();return}}var D=iv(),q=D.firstChild;If(q),l.display.lineSpace.insertBefore(D,l.display.lineSpace.firstChild),q.value=yr.text.join(`
|
|
39
|
+
`);var Q=me(Xe(u));qe(q),setTimeout(function(){l.display.lineSpace.removeChild(D),Q.focus(),Q==u&&a.showPrimarySelection()},50)}}ze(u,"copy",y),ze(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Xp(this.cm,!1);return n.focus=me(Xe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=sc(i,n.anchorNode,n.anchorOffset),y=sc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ae(Vo(g,y),l)==0&&Ae(wn(g,y),u)==0)){var x=i.display.view,_=l.line>=i.display.viewFrom&&sv(i,l)||{node:x[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&sv(i,u);if(!k){var D=x[x.length-1].measure,q=D.maps?D.maps[D.maps.length-1]:D.map;k={node:q[q.length-1],offset:q[q.length-2]-q[q.length-3]}}if(!_||!k){n.removeAllRanges();return}var Q=n.rangeCount&&n.getRangeAt(0),Z;try{Z=j(_.node,_.offset,k.offset,k.node)}catch{}Z&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Z.collapsed||(n.removeAllRanges(),n.addRange(Z))):(n.removeAllRanges(),n.addRange(Z)),Q&&n.anchorNode==null?n.addRange(Q):s&&this.startGracePeriod()),this.rememberSelection()}},yt.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)},yt.prototype.showMultipleSelections=function(n){O(this.cm.display.cursorDiv,n.cursors),O(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return se(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(Xe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Fn(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)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&b&&this.cm.display.gutterSpecs.length&&I_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=sc(i,n.anchorNode,n.anchorOffset),l=sc(i,n.focusNode,n.focusOffset);a&&l&&Fn(i,function(){an(i.doc,Ei(a,l),Y),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.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(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=oe(l.line-1,Re(n.doc,l.line-1).length)),u.ch==Re(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=oe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=fo(n,l.line))==0?(y=C(i.view[0].line),x=i.view[0].node):(y=C(i.view[g].line),x=i.view[g-1].node.nextSibling);var _=fo(n,u.line),k,D;if(_==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=C(i.view[_+1].line)-1,D=i.view[_+1].node.previousSibling),!x)return!1;for(var q=n.doc.splitLines(D_(n,x,D,y,k)),Q=Zr(n.doc,oe(y,0),oe(k,Re(n.doc,k).text.length));q.length>1&&Q.length>1;)if(ve(q)==ve(Q))q.pop(),Q.pop(),k--;else if(q[0]==Q[0])q.shift(),Q.shift(),y++;else break;for(var Z=0,ae=0,ge=q[0],we=Q[0],ke=Math.min(ge.length,we.length);Z<ke&&ge.charCodeAt(Z)==we.charCodeAt(Z);)++Z;for(var Le=ve(q),Te=ve(Q),$e=Math.min(Le.length-(q.length==1?Z:0),Te.length-(Q.length==1?Z:0));ae<$e&&Le.charCodeAt(Le.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)++ae;if(q.length==1&&Q.length==1&&y==l.line)for(;Z&&Z>l.ch&&Le.charCodeAt(Le.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)Z--,ae++;q[q.length-1]=Le.slice(0,Le.length-ae).replace(/^\u200b+/,""),q[0]=q[0].slice(Z).replace(/\u200b+$/,"");var Fe=oe(y,Z),Ie=oe(k,Q.length?ve(Q).length-ae:0);if(q.length>1||q[0]||Ae(Fe,Ie))return is(n.doc,q,Fe,Ie,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.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))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Fn(this.cm,function(){return xn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Pf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function sv(n,i){var a=nf(n,i.line);if(!a||a.hidden)return null;var l=Re(n.doc,i.line),u=Pp(a,l,i.line),g=et(l,n.doc.direction),y="left";if(g){var x=Dt(g,i.ch);y=x%2?"right":"left"}var _=zp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function I_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function cs(n,i){return i&&(n.bad=!0),n}function D_(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),_=!1;function k(Z){return function(ae){return ae.id==Z}}function D(){y&&(g+=x,_&&(g+=x),y=_=!1)}function q(Z){Z&&(D(),g+=Z)}function Q(Z){if(Z.nodeType==1){var ae=Z.getAttribute("cm-text");if(ae){q(ae);return}var ge=Z.getAttribute("cm-marker"),we;if(ge){var ke=n.findMarks(oe(l,0),oe(u+1,0),k(+ge));ke.length&&(we=ke[0].find(0))&&q(Zr(n.doc,we.from,we.to).join(x));return}if(Z.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;Le&&D();for(var Te=0;Te<Z.childNodes.length;Te++)Q(Z.childNodes[Te]);/^(pre|p)$/i.test(Z.nodeName)&&(_=!0),Le&&(y=!0)}else Z.nodeType==3&&q(Z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Q(i),i!=a;)i=i.nextSibling,_=!1;return g}function sc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return cs(n.clipPos(oe(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 u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return z_(g,i,a)}}function z_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!se(l,i))return cs(oe(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ve(n.rest):n.line;return cs(oe(C(g),g.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var _=n.measure,k=_.maps;function D(we,ke,Le){for(var Te=-1;Te<(k?k.length:0);Te++)for(var $e=Te<0?_.map:k[Te],Fe=0;Fe<$e.length;Fe+=3){var Ie=$e[Fe+2];if(Ie==we||Ie==ke){var Je=C(Te<0?n.line:n.rest[Te]),_t=$e[Fe]+Le;return(Le<0||Ie!=we)&&(_t=$e[Fe+(Le?1:0)]),oe(Je,_t)}}}var q=D(y,x,a);if(q)return cs(q,u);for(var Q=x.nextSibling,Z=y?y.nodeValue.length-a:0;Q;Q=Q.nextSibling){if(q=D(Q,Q.firstChild,0),q)return cs(oe(q.line,q.ch-Z),u);Z+=Q.textContent.length}for(var ae=x.previousSibling,ge=a;ae;ae=ae.previousSibling){if(q=D(ae,ae.firstChild,-1),q)return cs(oe(q.line,q.ch+ge),u);ge+=ae.textContent.length}}var zt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};zt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),A&&(u.style.width="0px"),ze(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),ze(u,"paste",function(y){Ot(l,y)||tv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Ot(l,y)){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=rv(l);oc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Y):(a.prevInput="",u.value=x.text.join(`
|
|
40
|
+
`),qe(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}ze(u,"cut",g),ze(u,"copy",g),ze(n.scroller,"paste",function(y){if(!(ei(n,y)||Ot(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),ze(n.lineSpace,"selectstart",function(y){ei(n,y)||ln(y)}),ze(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ze(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},zt.prototype.createField=function(n){this.wrapper=iv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;If(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},zt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Xp(n);if(n.options.moveInputWithCursor){var u=vr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},zt.prototype.showSelection=function(n){var i=this.cm,a=i.display;O(a.cursorDiv,n.cursors),O(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},zt.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&&qe(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},zt.prototype.getField=function(){return this.textarea},zt.prototype.supportsTouch=function(){return!1},zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||me(Xe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},zt.prototype.blur=function(){this.textarea.blur()},zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zt.prototype.receivedFocus=function(){this.slowPoll()},zt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},zt.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)},zt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||_i(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||B&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l=""),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Fn(i,function(){Pf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
41
|
+
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},zt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=uo(a,n),y=l.scroller.scrollTop;if(!g||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Kt(a,an)(a.doc,Ei(g),Y);var _=u.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
42
|
+
top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.left-5)+`px;
|
|
43
|
+
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
44
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var q;v&&(q=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,q),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Z,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function Q(){if(u.selectionStart!=null){var ge=a.somethingSelected(),we=""+(ge?u.value:"");u.value="⇚",u.value=we,i.prevInput=ge?"":"",u.selectionStart=1,u.selectionEnd=we.length,l.selForContextMenu=a.doc.sel}}function Z(){if(i.contextMenuPending==Z&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&Q();var ge=0,we=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Kt(a,Tg)(a):ge++<10?l.detectingSelectAll=setTimeout(we,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(we,200)}}if(h&&p>=9&&Q(),K){wi(n);var ae=function(){sn(window,"mouseup",ae),setTimeout(Z,20)};ze(window,"mouseup",ae)}else setTimeout(Z,50)},zt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},zt.prototype.setUneditable=function(){},zt.prototype.needsContentAttribute=!1;function F_(n,i){if(i=i?J(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=me(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(ze(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(sn(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Et(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return x}function H_(n){n.off=sn,n.on=ze,n.wheelEventPixels=Gx,n.Doc=_n,n.splitLines=or,n.countColumn=X,n.findColumn=de,n.isWordChar=tt,n.Pass=H,n.signal=$t,n.Line=Go,n.changeEnd=Ai,n.scrollbarModel=tg,n.Pos=oe,n.cmpPos=Ae,n.modes=Bo,n.mimeModes=hr,n.resolveMode=Wo,n.getMode=qo,n.modeExtensions=Si,n.extendMode=Uo,n.copyState=Rr,n.startState=jo,n.innerMode=js,n.commands=gl,n.keyMap=ni,n.keyName=Bg,n.isModifierKey=Fg,n.lookupKey=ss,n.normalizeKeyMap=g_,n.StringStream=Rt,n.SharedTextMarker=dl,n.TextMarker=Mi,n.LineWidget=fl,n.e_preventDefault=ln,n.e_stopPropagation=Fo,n.e_stop=wi,n.addClass=_e,n.contains=se,n.rmClass=$,n.keyNames=Ni}N_(Et),P_(Et);var B_="iter insert remove copy getEditor constructor".split(" ");for(var lc in _n.prototype)_n.prototype.hasOwnProperty(lc)&&pe(B_,lc)<0&&(Et.prototype[lc]=function(n){return function(){return n.apply(this.doc,arguments)}}(_n.prototype[lc]));return ur(_n),Et.inputStyles={textarea:zt,contenteditable:yt},Et.defineMode=function(n){!Et.defaults.mode&&n!="null"&&(Et.defaults.mode=n),pr.apply(this,arguments)},Et.defineMIME=lo,Et.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Et.defineMIME("text/plain","null"),Et.defineExtension=function(n,i){Et.prototype[n]=i},Et.defineDocExtension=function(n,i){_n.prototype[n]=i},Et.fromTextArea=F_,H_(Et),Et.version="5.65.18",Et})}(Nc)),Nc.exports}var jce=Ws();const Vce=kw(jce);var Hm={exports:{}},Bm;function Fw(){return Bm||(Bm=1,function(e,t){(function(r){r(Ws())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(Vt){return{type:Vt,style:"keyword"}}var W=C("keyword a"),fe=C("keyword b"),be=C("keyword c"),oe=C("keyword d"),Ae=C("operator"),ft={type:"atom",style:"atom"};return{if:C("if"),while:W,with:W,else:fe,do:fe,try:fe,finally:fe,return:oe,break:oe,continue:oe,new:C("new"),delete:be,void:be,throw:be,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:Ae,typeof:Ae,instanceof:Ae,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:C("this"),class:C("class"),super:C("atom"),yield:be,export:C("export"),import:C("import"),extends:be,await:be}}(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(C){for(var W=!1,fe,be=!1;(fe=C.next())!=null;){if(!W){if(fe=="/"&&!be)return;fe=="["?be=!0:be&&fe=="]"&&(be=!1)}W=!W&&fe=="\\"}}var T,L;function A(C,W,fe){return T=C,L=fe,W}function R(C,W){var fe=C.next();if(fe=='"'||fe=="'")return W.tokenize=M(fe),W.tokenize(C,W);if(fe=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(fe=="."&&C.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return A(fe);if(fe=="="&&C.eat(">"))return A("=>","operator");if(fe=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(fe))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(fe=="/")return C.eat("*")?(W.tokenize=B,B(C,W)):C.eat("/")?(C.skipToEnd(),A("comment","comment")):Xn(C,W,1)?(N(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(C.eat("="),A("operator","operator",C.current()));if(fe=="`")return W.tokenize=V,V(C,W);if(fe=="#"&&C.peek()=="!")return C.skipToEnd(),A("meta","meta");if(fe=="#"&&C.eatWhile(m))return A("variable","property");if(fe=="<"&&C.match("!--")||fe=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),A("comment","comment");if(w.test(fe))return(fe!=">"||!W.lexical||W.lexical.type!=">")&&(C.eat("=")?(fe=="!"||fe=="=")&&C.eat("="):/[<>*+\-|&?]/.test(fe)&&(C.eat(fe),fe==">"&&C.eat(fe))),fe=="?"&&C.eat(".")?A("."):A("operator","operator",C.current());if(m.test(fe)){C.eatWhile(m);var be=C.current();if(W.lastType!="."){if(b.propertyIsEnumerable(be)){var oe=b[be];return A(oe.type,oe.style,be)}if(be=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",be)}return A("variable","variable",be)}}function M(C){return function(W,fe){var be=!1,oe;if(d&&W.peek()=="@"&&W.match(E))return fe.tokenize=R,A("jsonld-keyword","meta");for(;(oe=W.next())!=null&&!(oe==C&&!be);)be=!be&&oe=="\\";return be||(fe.tokenize=R),A("string","string")}}function B(C,W){for(var fe=!1,be;be=C.next();){if(be=="/"&&fe){W.tokenize=R;break}fe=be=="*"}return A("comment","comment")}function V(C,W){for(var fe=!1,be;(be=C.next())!=null;){if(!fe&&(be=="`"||be=="$"&&C.eat("{"))){W.tokenize=R;break}fe=!fe&&be=="\\"}return A("quasi","string-2",C.current())}var G="([{}])";function ee(C,W){W.fatArrowAt&&(W.fatArrowAt=null);var fe=C.string.indexOf("=>",C.start);if(!(fe<0)){if(v){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,fe));be&&(fe=be.index)}for(var oe=0,Ae=!1,ft=fe-1;ft>=0;--ft){var Vt=C.string.charAt(ft),wn=G.indexOf(Vt);if(wn>=0&&wn<3){if(!oe){++ft;break}if(--oe==0){Vt=="("&&(Ae=!0);break}}else if(wn>=3&&wn<6)++oe;else if(m.test(Vt))Ae=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Vo=C.string.charAt(ft-1);if(Vo==Vt&&C.string.charAt(ft-2)!="\\"){ft--;break}}else if(Ae&&!oe){++ft;break}}Ae&&!oe&&(W.fatArrowAt=ft)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(C,W,fe,be,oe,Ae){this.indented=C,this.column=W,this.type=fe,this.prev=oe,this.info=Ae,be!=null&&(this.align=be)}function re(C,W){if(!p)return!1;for(var fe=C.localVars;fe;fe=fe.next)if(fe.name==W)return!0;for(var be=C.context;be;be=be.prev)for(var fe=be.vars;fe;fe=fe.next)if(fe.name==W)return!0}function $(C,W,fe,be,oe){var Ae=C.cc;for(P.state=C,P.stream=oe,P.marked=null,P.cc=Ae,P.style=W,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ft=Ae.length?Ae.pop():h?pe:X;if(ft(fe,be)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return P.marked?P.marked:fe=="variable"&&re(C,be)?"variable-2":W}}}var P={state:null,marked:null,cc:null};function O(){for(var C=arguments.length-1;C>=0;C--)P.cc.push(arguments[C])}function S(){return O.apply(null,arguments),!0}function F(C,W){for(var fe=W;fe;fe=fe.next)if(fe.name==C)return!0;return!1}function j(C){var W=P.state;if(P.marked="def",!!p){if(W.context){if(W.lexical.info=="var"&&W.context&&W.context.block){var fe=se(C,W.context);if(fe!=null){W.context=fe;return}}else if(!F(C,W.localVars)){W.localVars=new Pe(C,W.localVars);return}}s.globalVars&&!F(C,W.globalVars)&&(W.globalVars=new Pe(C,W.globalVars))}}function se(C,W){if(W)if(W.block){var fe=se(C,W.prev);return fe?fe==W.prev?W:new _e(fe,W.vars,!0):null}else return F(C,W.vars)?W:new _e(W.prev,new Pe(C,W.vars),!1);else return null}function me(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function _e(C,W,fe){this.prev=C,this.vars=W,this.block=fe}function Pe(C,W){this.name=C,this.next=W}var qe=new Pe("this",new Pe("arguments",null));function Ze(){P.state.context=new _e(P.state.context,P.state.localVars,!1),P.state.localVars=qe}function Ke(){P.state.context=new _e(P.state.context,P.state.localVars,!0),P.state.localVars=null}Ze.lex=Ke.lex=!0;function Xe(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}Xe.lex=!0;function te(C,W){var fe=function(){var be=P.state,oe=be.indented;if(be.lexical.type=="stat")oe=be.lexical.indented;else for(var Ae=be.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)oe=Ae.indented;be.lexical=new K(oe,P.stream.column(),C,null,be.lexical,W)};return fe.lex=!0,fe}function z(){var C=P.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}z.lex=!0;function J(C){function W(fe){return fe==C?S():C==";"||fe=="}"||fe==")"||fe=="]"?O():S(W)}return W}function X(C,W){return C=="var"?S(te("vardef",W),Fo,J(";"),z):C=="keyword a"?S(te("form"),H,X,z):C=="keyword b"?S(te("form"),X,z):C=="keyword d"?P.stream.match(/^\s*$/,!1)?S():S(te("stat"),ue,J(";"),z):C=="debugger"?S(J(";")):C=="{"?S(te("}"),Ke,Ft,z,Xe):C==";"?S():C=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==z&&P.state.cc.pop()(),S(te("form"),H,X,z,Ho)):C=="function"?S(or):C=="for"?S(te("form"),Ke,Ma,X,Xe,z):C=="class"||v&&W=="interface"?(P.marked="keyword",S(te("form",C=="class"?C:W),Bo,z)):C=="variable"?v&&W=="declare"?(P.marked="keyword",S(X)):v&&(W=="module"||W=="enum"||W=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",W=="enum"?S(Re):W=="type"?S(Na,J("operator"),et,J(";")):S(te("form"),bn,J("{"),te("}"),Ft,z,z)):v&&W=="namespace"?(P.marked="keyword",S(te("form"),pe,X,z)):v&&W=="abstract"?(P.marked="keyword",S(X)):S(te("stat"),je):C=="switch"?S(te("form"),H,J("{"),te("}","switch"),Ke,Ft,z,z,Xe):C=="case"?S(pe,J(":")):C=="default"?S(J(":")):C=="catch"?S(te("form"),Ze,le,X,z,Xe):C=="export"?S(te("stat"),Wo,z):C=="import"?S(te("stat"),Si,z):C=="async"?S(X):W=="@"?S(pe,X):O(te("stat"),pe,J(";"),z)}function le(C){if(C=="(")return S(dr,J(")"))}function pe(C,W){return Y(C,W,!1)}function I(C,W){return Y(C,W,!0)}function H(C){return C!="("?O():S(te(")"),ue,J(")"),z)}function Y(C,W,fe){if(P.state.fatArrowAt==P.stream.start){var be=fe?ye:ve;if(C=="(")return S(Ze,te(")"),st(dr,")"),z,J("=>"),be,Xe);if(C=="variable")return O(Ze,bn,J("=>"),be,Xe)}var oe=fe?de:he;return ne.hasOwnProperty(C)?S(oe):C=="function"?S(or,oe):C=="class"||v&&W=="interface"?(P.marked="keyword",S(te("form"),ju,z)):C=="keyword c"||C=="async"?S(fe?I:pe):C=="("?S(te(")"),ue,J(")"),z,oe):C=="operator"||C=="spread"?S(fe?I:pe):C=="["?S(te("]"),Rt,z,oe):C=="{"?jt(ot,"}",null,oe):C=="quasi"?O(Ce,oe):C=="new"?S(We(fe)):S()}function ue(C){return C.match(/[;\}\)\],]/)?O():O(pe)}function he(C,W){return C==","?S(ue):de(C,W,!1)}function de(C,W,fe){var be=fe==!1?he:de,oe=fe==!1?pe:I;if(C=="=>")return S(Ze,fe?ye:ve,Xe);if(C=="operator")return/\+\+|--/.test(W)||v&&W=="!"?S(be):v&&W=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(te(">"),st(et,">"),z,be):W=="?"?S(pe,J(":"),oe):S(oe);if(C=="quasi")return O(Ce,be);if(C!=";"){if(C=="(")return jt(I,")","call",be);if(C==".")return S(tt,be);if(C=="[")return S(te("]"),ue,J("]"),z,be);if(v&&W=="as")return P.marked="keyword",S(et,be);if(C=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),S(oe)}}function Ce(C,W){return C!="quasi"?O():W.slice(W.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(C){if(C=="}")return P.marked="string-2",P.state.tokenize=V,S(Ce)}function ve(C){return ee(P.stream,P.state),O(C=="{"?X:pe)}function ye(C){return ee(P.stream,P.state),O(C=="{"?X:I)}function We(C){return function(W){return W=="."?S(C?De:Ne):W=="variable"&&v?S(zn,C?de:he):O(C?I:pe)}}function Ne(C,W){if(W=="target")return P.marked="keyword",S(he)}function De(C,W){if(W=="target")return P.marked="keyword",S(de)}function je(C){return C==":"?S(z,X):O(he,J(";"),z)}function tt(C){if(C=="variable")return P.marked="property",S()}function ot(C,W){if(C=="async")return P.marked="property",S(ot);if(C=="variable"||P.style=="keyword"){if(P.marked="property",W=="get"||W=="set")return S(lt);var fe;return v&&P.state.fatArrowAt==P.stream.start&&(fe=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+fe[0].length),S(Nt)}else{if(C=="number"||C=="string")return P.marked=d?"property":P.style+" property",S(Nt);if(C=="jsonld-keyword")return S(Nt);if(v&&me(W))return P.marked="keyword",S(ot);if(C=="[")return S(pe,In,J("]"),Nt);if(C=="spread")return S(I,Nt);if(W=="*")return P.marked="keyword",S(ot);if(C==":")return O(Nt)}}function lt(C){return C!="variable"?O(Nt):(P.marked="property",S(or))}function Nt(C){if(C==":")return S(I);if(C=="(")return O(or)}function st(C,W,fe){function be(oe,Ae){if(fe?fe.indexOf(oe)>-1:oe==","){var ft=P.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),S(function(Vt,wn){return Vt==W||wn==W?O():O(C)},be)}return oe==W||Ae==W?S():fe&&fe.indexOf(";")>-1?O(C):S(J(W))}return function(oe,Ae){return oe==W||Ae==W?S():O(C,be)}}function jt(C,W,fe){for(var be=3;be<arguments.length;be++)P.cc.push(arguments[be]);return S(te(W,fe),st(C,W),z)}function Ft(C){return C=="}"?S():O(X,Ft)}function In(C,W){if(v){if(C==":")return S(et);if(W=="?")return S(In)}}function Or(C,W){if(v&&(C==":"||W=="in"))return S(et)}function Dt(C){if(v&&C==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,Dn,et):S(et)}function Dn(C,W){if(W=="is")return P.marked="keyword",S()}function et(C,W){if(W=="keyof"||W=="typeof"||W=="infer"||W=="readonly")return P.marked="keyword",S(W=="typeof"?I:et);if(C=="variable"||W=="void")return P.marked="type",S(ir);if(W=="|"||W=="&")return S(et);if(C=="string"||C=="number"||C=="atom")return S(ir);if(C=="[")return S(te("]"),st(et,"]",","),z,ir);if(C=="{")return S(te("}"),ze,z,ir);if(C=="(")return S(st(Ot,")"),La,ir);if(C=="<")return S(st(et,">"),et);if(C=="quasi")return O(sn,ir)}function La(C){if(C=="=>")return S(et)}function ze(C){return C.match(/[\}\)\]]/)?S():C==","||C==";"?S(ze):O(Yr,ze)}function Yr(C,W){if(C=="variable"||P.style=="keyword")return P.marked="property",S(Yr);if(W=="?"||C=="number"||C=="string")return S(Yr);if(C==":")return S(et);if(C=="[")return S(J("variable"),Or,J("]"),Yr);if(C=="(")return O(_i,Yr);if(!C.match(/[;\}\)\],]/))return S()}function sn(C,W){return C!="quasi"?O():W.slice(W.length-2)!="${"?S(sn):S(et,$t)}function $t(C){if(C=="}")return P.marked="string-2",P.state.tokenize=V,S(sn)}function Ot(C,W){return C=="variable"&&P.stream.match(/^\s*[?:]/,!1)||W=="?"?S(Ot):C==":"?S(et):C=="spread"?S(Ot):O(et)}function ir(C,W){if(W=="<")return S(te(">"),st(et,">"),z,ir);if(W=="|"||C=="."||W=="&")return S(et);if(C=="[")return S(et,J("]"),ir);if(W=="extends"||W=="implements")return P.marked="keyword",S(et);if(W=="?")return S(et,J(":"),et)}function zn(C,W){if(W=="<")return S(te(">"),st(et,">"),z,ir)}function ur(){return O(et,ln)}function ln(C,W){if(W=="=")return S(et)}function Fo(C,W){return W=="enum"?(P.marked="keyword",S(Re)):O(bn,In,fr,Uu)}function bn(C,W){if(v&&me(W))return P.marked="keyword",S(bn);if(C=="variable")return j(W),S();if(C=="spread")return S(bn);if(C=="[")return jt(qs,"]");if(C=="{")return jt(wi,"}")}function wi(C,W){return C=="variable"&&!P.stream.match(/^\s*:/,!1)?(j(W),S(fr)):(C=="variable"&&(P.marked="property"),C=="spread"?S(bn):C=="}"?O():C=="["?S(pe,J("]"),J(":"),wi):S(J(":"),bn,fr))}function qs(){return O(bn,fr)}function fr(C,W){if(W=="=")return S(I)}function Uu(C){if(C==",")return S(Fo)}function Ho(C,W){if(C=="keyword b"&&W=="else")return S(te("form","else"),X,z)}function Ma(C,W){if(W=="await")return S(Ma);if(C=="(")return S(te(")"),Us,z)}function Us(C){return C=="var"?S(Fo,xi):C=="variable"?S(xi):O(xi)}function xi(C,W){return C==")"?S():C==";"?S(xi):W=="in"||W=="of"?(P.marked="keyword",S(pe,xi)):O(pe,xi)}function or(C,W){if(W=="*")return P.marked="keyword",S(or);if(C=="variable")return j(W),S(or);if(C=="(")return S(Ze,te(")"),st(dr,")"),z,Dt,X,Xe);if(v&&W=="<")return S(te(">"),st(ur,">"),z,or)}function _i(C,W){if(W=="*")return P.marked="keyword",S(_i);if(C=="variable")return j(W),S(_i);if(C=="(")return S(Ze,te(")"),st(dr,")"),z,Dt,Xe);if(v&&W=="<")return S(te(">"),st(ur,">"),z,_i)}function Na(C,W){if(C=="keyword"||C=="variable")return P.marked="type",S(Na);if(W=="<")return S(te(">"),st(ur,">"),z)}function dr(C,W){return W=="@"&&S(pe,dr),C=="spread"?S(dr):v&&me(W)?(P.marked="keyword",S(dr)):v&&C=="this"?S(In,fr):O(bn,In,fr)}function ju(C,W){return C=="variable"?Bo(C,W):hr(C,W)}function Bo(C,W){if(C=="variable")return j(W),S(hr)}function hr(C,W){if(W=="<")return S(te(">"),st(ur,">"),z,hr);if(W=="extends"||W=="implements"||v&&C==",")return W=="implements"&&(P.marked="keyword"),S(v?et:pe,hr);if(C=="{")return S(te("}"),pr,z)}function pr(C,W){if(C=="async"||C=="variable"&&(W=="static"||W=="get"||W=="set"||v&&me(W))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",S(pr);if(C=="variable"||P.style=="keyword")return P.marked="property",S(lo,pr);if(C=="number"||C=="string")return S(lo,pr);if(C=="[")return S(pe,In,J("]"),lo,pr);if(W=="*")return P.marked="keyword",S(pr);if(v&&C=="(")return O(_i,pr);if(C==";"||C==",")return S(pr);if(C=="}")return S();if(W=="@")return S(pe,pr)}function lo(C,W){if(W=="!"||W=="?")return S(lo);if(C==":")return S(et,fr);if(W=="=")return S(I);var fe=P.state.lexical.prev,be=fe&&fe.info=="interface";return O(be?_i:or)}function Wo(C,W){return W=="*"?(P.marked="keyword",S(jo,J(";"))):W=="default"?(P.marked="keyword",S(pe,J(";"))):C=="{"?S(st(qo,"}"),jo,J(";")):O(X)}function qo(C,W){if(W=="as")return P.marked="keyword",S(J("variable"));if(C=="variable")return O(I,qo)}function Si(C){return C=="string"?S():C=="("?O(pe):C=="."?O(he):O(Uo,Rr,jo)}function Uo(C,W){return C=="{"?jt(Uo,"}"):(C=="variable"&&j(W),W=="*"&&(P.marked="keyword"),S(js))}function Rr(C){if(C==",")return S(Uo,Rr)}function js(C,W){if(W=="as")return P.marked="keyword",S(Uo)}function jo(C,W){if(W=="from")return P.marked="keyword",S(pe)}function Rt(C){return C=="]"?S():O(st(I,"]"))}function Re(){return O(te("form"),bn,J("{"),te("}"),st(Zr,"}"),z,z)}function Zr(){return O(bn,fr)}function Vs(C,W){return C.lastType=="operator"||C.lastType==","||w.test(W.charAt(0))||/[,.]/.test(W.charAt(0))}function Xn(C,W,fe){return W.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(W.lastType)||W.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(fe||0)))}return{startState:function(C){var W={tokenize:R,lastType:"sof",cc:[],lexical:new K((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new _e(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(W.globalVars=s.globalVars),W},token:function(C,W){if(C.sol()&&(W.lexical.hasOwnProperty("align")||(W.lexical.align=!1),W.indented=C.indentation(),ee(C,W)),W.tokenize!=B&&C.eatSpace())return null;var fe=W.tokenize(C,W);return T=="comment"?fe:(W.lastType=T=="operator"&&(L=="++"||L=="--")?"incdec":T,$(W,fe,T,L,C))},indent:function(C,W){if(C.tokenize==B||C.tokenize==V)return r.Pass;if(C.tokenize!=R)return 0;var fe=W&&W.charAt(0),be=C.lexical,oe;if(!/^\s*else\b/.test(W))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var ft=C.cc[Ae];if(ft==z)be=be.prev;else if(ft!=Ho&&ft!=Xe)break}for(;(be.type=="stat"||be.type=="form")&&(fe=="}"||(oe=C.cc[C.cc.length-1])&&(oe==he||oe==de)&&!/^[,\.=+\-*:?[\(]/.test(W));)be=be.prev;f&&be.type==")"&&be.prev.type=="stat"&&(be=be.prev);var Vt=be.type,wn=fe==Vt;return Vt=="vardef"?be.indented+(C.lastType=="operator"||C.lastType==","?be.info.length+1:0):Vt=="form"&&fe=="{"?be.indented:Vt=="form"?be.indented+c:Vt=="stat"?be.indented+(Vs(C,W)?f||c:0):be.info=="switch"&&!wn&&s.doubleIndentSwitch!=!1?be.indented+(/^(?:case|default)\b/.test(W)?c:2*c):be.align?be.column+(wn?0:1):be.indented+(wn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Xn,skipExpression:function(C){$(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})})}()),Hm.exports}Fw();var Wm={exports:{}},qm;function Hw(){return qm||(qm=1,function(e,t){(function(r){r(Ws())})(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(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(S,F){function j(_e){return F.tokenize=_e,_e(S,F)}var se=S.next();if(se=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?j(T("atom","]]>")):null:S.match("--")?j(T("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),j(L(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),F.tokenize=T("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",F.tokenize=E,"tag bracket");if(se=="&"){var me;return S.eat("#")?S.eat("x")?me=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):me=S.eatWhile(/[\d]/)&&S.eat(";"):me=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),me?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function E(S,F){var j=S.next();if(j==">"||j=="/"&&S.eat(">"))return F.tokenize=w,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){F.tokenize=w,F.state=V,F.tagName=F.tagStart=null;var se=F.tokenize(S,F);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(j)?(F.tokenize=N(j),F.stringStartCol=S.column(),F.tokenize(S,F)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(S){var F=function(j,se){for(;!j.eol();)if(j.next()==S){se.tokenize=E;break}return"string"};return F.isInAttribute=!0,F}function T(S,F){return function(j,se){for(;!j.eol();){if(j.match(F)){se.tokenize=w;break}j.next()}return S}}function L(S){return function(F,j){for(var se;(se=F.next())!=null;){if(se=="<")return j.tokenize=L(S+1),j.tokenize(F,j);if(se==">")if(S==1){j.tokenize=w;break}else return j.tokenize=L(S-1),j.tokenize(F,j)}return"meta"}}function A(S){return S&&S.toLowerCase()}function R(S,F,j){this.prev=S.context,this.tagName=F||"",this.indent=S.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(F)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function M(S){S.context&&(S.context=S.context.prev)}function B(S,F){for(var j;;){if(!S.context||(j=S.context.tagName,!h.contextGrabbers.hasOwnProperty(A(j))||!h.contextGrabbers[A(j)].hasOwnProperty(A(F))))return;M(S)}}function V(S,F,j){return S=="openTag"?(j.tagStart=F.column(),G):S=="closeTag"?ee:V}function G(S,F,j){return S=="word"?(j.tagName=F.current(),b="tag",re):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",re(S,F,j)):(b="error",G)}function ee(S,F,j){if(S=="word"){var se=F.current();return j.context&&j.context.tagName!=se&&h.implicitlyClosed.hasOwnProperty(A(j.context.tagName))&&M(j),j.context&&j.context.tagName==se||h.matchClosing===!1?(b="tag",ne):(b="tag error",K)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",ne(S,F,j)):(b="error",K)}function ne(S,F,j){return S!="endTag"?(b="error",ne):(M(j),V)}function K(S,F,j){return b="error",ne(S,F,j)}function re(S,F,j){if(S=="word")return b="attribute",$;if(S=="endTag"||S=="selfcloseTag"){var se=j.tagName,me=j.tagStart;return j.tagName=j.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(A(se))?B(j,se):(B(j,se),j.context=new R(j,se,me==j.indented)),V}return b="error",re}function $(S,F,j){return S=="equals"?P:(h.allowMissing||(b="error"),re(S,F,j))}function P(S,F,j){return S=="string"?O:S=="word"&&h.allowUnquoted?(b="string",re):(b="error",re(S,F,j))}function O(S,F,j){return S=="string"?O:re(S,F,j)}return{startState:function(S){var F={tokenize:w,state:V,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(F.baseIndent=S),F},token:function(S,F){if(!F.tagName&&S.sol()&&(F.indented=S.indentation()),S.eatSpace())return null;m=null;var j=F.tokenize(S,F);return(j||m)&&j!="comment"&&(b=null,F.state=F.state(m||j,S,F),b&&(j=b=="error"?j+" error":b)),j},indent:function(S,F,j){var se=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(se&&se.noIndent)return r.Pass;if(S.tokenize!=E&&S.tokenize!=w)return j?j.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(F))return 0;var me=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(me&&me[1])for(;se;)if(se.tagName==me[2]){se=se.prev;break}else if(h.implicitlyClosed.hasOwnProperty(A(se.tagName)))se=se.prev;else break;else if(me)for(;se;){var _e=h.contextGrabbers[A(se.tagName)];if(_e&&_e.hasOwnProperty(A(me[2])))se=se.prev;else break}for(;se&&se.prev&&!se.startOfLine;)se=se.prev;return se?se.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==P&&(S.state=re)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var F=[],j=S.context;j;j=j.prev)F.push(j.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Wm.exports}Hw();var Um={exports:{}},jm;function Gce(){return jm||(jm=1,function(e,t){(function(r){r(Ws(),Hw(),Fw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var N=d.indent(w,"","");return w.tagName=E,N}function v(w,E){return E.context.mode==d?m(w,E,E.context):b(w,E,E.context)}function m(w,E,N){if(N.depth==2)return w.match(/^.*?\*\//)?N.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(N.state);var T=p(N.state),L=N.state.context;if(L&&w.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?T-=c.indentUnit:N.prev.state.lexical&&(T=N.prev.state.lexical.indented)}else N.depth==1&&(T+=c.indentUnit);return E.context=new o(r.startState(h,T),h,0,E.context),null}if(N.depth==1){if(w.peek()=="<")return d.skipAttribute(N.state),E.context=new o(r.startState(d,p(N.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return N.depth=2,v(w,E)}var A=d.token(w,N.state),R=w.current(),M;return/\btag\b/.test(A)?/>$/.test(R)?N.state.context?N.depth=0:E.context=E.context.prev:/^</.test(R)&&(N.depth=1):!A&&(M=R.indexOf("{"))>-1&&w.backUp(R.length-M),A}function b(w,E,N){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,N.state))return E.context=new o(r.startState(d,h.indent(N.state,"","")),d,0,E.context),h.skipExpression(N.state),null;var T=h.token(w,N.state);if(!T&&N.depth!=null){var L=w.current();L=="{"?N.depth++:L=="}"&&--N.depth==0&&(E.context=E.context.prev)}return T}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,E,N){return w.context.mode.indent(w.context.state,E,N)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),Um.exports}Gce();var Vm={exports:{}},Gm;function Kce(){return Gm||(Gm=1,function(e,t){(function(r){r(Ws())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),Vm.exports}Kce();var Km={exports:{}},Xm;function Xce(){return Xm||(Xm=1,function(e,t){(function(r){r(Ws())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],E=p.pos;function N(){r.off(document,"mousemove",T),r.off(document,"mouseup",N)}function T(L){if(L.which!=1)return N();p.moveTo(E+(L[b]-w)*(p.total/p.size))}r.on(document,"mousemove",T),r.on(document,"mouseup",N)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&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,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);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,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=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=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})}()),Km.exports}Xce();const Bn=tn();function Yce(e,t,r={}){const o=Vce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Su(()=>{Bn.value=void 0}),Sh(o)}async function Zce(e){var t;mw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const Bw=ut({__name:"CodeMirrorContainer",props:Gl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Gl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Tu(e,"modelValue"),s=tk(),c={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}},f=Ue();return so(async()=>{const d=Yce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Bn.value=d,setTimeout(()=>Bn.value.refresh(),100)}),(d,h)=>(ce(),xe("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[ie("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Jce=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=tn(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();xt(()=>r.file,async()=>{var G;if(!h.value){d.value=!0;try{if(!r.file||!((G=r.file)!=null&&G.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await mt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(ee){console.error("cannot fetch file",ee)}await Tt(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,gw.value],([G,ee,ne,K])=>{!G&&!ee&&(K!=null?Tt(()=>{var P;const re=p.value,$=re??{line:K??0,ch:0};re?p.value=void 0:((P=Bn.value)==null||P.scrollIntoView($,100),Tt(()=>{var O,S;(O=Bn.value)==null||O.focus(),(S=Bn.value)==null||S.setCursor($)}))}):Tt(()=>{var re;(re=Bn.value)==null||re.focus()}))},{flush:"post"});const v=Se(()=>{var G,ee;return((ee=(G=r.file)==null?void 0:G.filepath)==null?void 0:ee.split(/\./g).pop())||"js"}),m=Ue(),b=Se(()=>{var G;return((G=r.file)==null?void 0:G.tasks.filter(ee=>{var ne;return((ne=ee.result)==null?void 0:ne.state)==="fail"}))||[]}),w=[],E=[],N=[],T=Ue(!1);function L(){N.forEach(([G,ee,ne])=>{G.removeEventListener("click",ee),ne()}),N.length=0}rw(m,()=>{var G;(G=Bn.value)==null||G.refresh()});function A(){f.value=c.value!==Bn.value.getValue()}xt(f,G=>{o("draft",G)},{immediate:!0});function R(G){const ee=((G==null?void 0:G.stacks)||[]).filter(O=>{var S;return O.file&&O.file===((S=r.file)==null?void 0:S.filepath)}),ne=ee==null?void 0:ee[0];if(!ne)return;const K=document.createElement("div");K.className="op80 flex gap-x-2 items-center";const re=document.createElement("pre");re.className="c-red-600 dark:c-red-400",re.textContent=`${" ".repeat(ne.column)}^ ${(G==null?void 0:G.nameStr)||G.name}: ${(G==null?void 0:G.message)||""}`,K.appendChild(re);const $=document.createElement("span");$.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",$.tabIndex=0,$.ariaLabel="Open in Editor",$b($,{content:"Open in Editor",placement:"bottom"},!1);const P=async()=>{await Ew(ne.file,ne.line,ne.column)};$.addEventListener("click",P),K.appendChild($),N.push([$,P,()=>Ph($)]),E.push(Bn.value.addLineClass(ne.line-1,"wrap","bg-red-500/10")),w.push(Bn.value.addLineWidget(ne.line-1,K))}const{pause:M,resume:B}=xt([Bn,b,ms],([G,ee,ne])=>{if(!G){w.length=0,E.length=0,L();return}ne&&(G.off("changes",A),L(),w.forEach(K=>K.clear()),E.forEach(K=>G==null?void 0:G.removeLineClass(K,"wrap")),w.length=0,E.length=0,setTimeout(()=>{ee.forEach(K=>{var re,$;($=(re=K.result)==null?void 0:re.errors)==null||$.forEach(R)}),T.value||G.clearHistory(),G.on("changes",A)},100))},{flush:"post"});Hh(()=>[ms.value,h.value,p.value],([G,ee],ne)=>{var K;G&&!ee&&ne&&ne[2]&&((K=Bn.value)==null||K.setCursor(ne[2]))},{debounce:100,flush:"post"});async function V(G){if(h.value)return;M(),h.value=!0,await Tt();const ee=Bn.value;ee&&(ee.setOption("readOnly",!0),await Tt(),ee.refresh()),p.value=ee==null?void 0:ee.getCursor(),ee==null||ee.off("changes",A),L(),w.forEach(ne=>ne.clear()),E.forEach(ne=>ee==null?void 0:ee.removeLineClass(ne,"wrap")),w.length=0,E.length=0;try{T.value=!0,await mt.rpc.saveTestFile(r.file.filepath,G),c.value=G,f.value=!1}catch(ne){console.error("error saving file",ne)}T.value||ee==null||ee.clearHistory();try{await gm(ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await gm(ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(ne=>{var K,re;(re=(K=ne.result)==null?void 0:K.errors)==null||re.forEach(R)}),ee==null||ee.on("changes",A),h.value=!1,await Tt(),ee&&(ee.setOption("readOnly",!1),await Tt(),ee.refresh()),B()}return ya(L),(G,ee)=>{const ne=Bw;return ce(),nt(ne,di({ref_key:"editor",ref:m,modelValue:U(s),"onUpdate:modelValue":ee[0]||(ee[0]=K=>Ct(s)?s.value=K:null),"h-full":""},{lineNumbers:!0,readOnly:U(Cr),saving:U(h)},{mode:U(v),"data-testid":"code-mirror",onSave:V}),null,16,["modelValue","mode"])}}}),Qce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},eue={"p-4":"",relative:""},tue={op50:"","font-mono":"","text-sm":""},nue={key:0,"p-5":""},rue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},iue={key:0},oue={p:"x3 y-1","bg-overlay":"",border:"base b t"},sue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=iE(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Po)),c=Se(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Se(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return Qb("Escape",()=>{o("close")}),(p,v)=>{const m=bi,b=Bw;return ce(),xe("div",Qce,[ie("div",eue,[v[1]||(v[1]=ie("p",null,"Module Info",-1)),ie("p",tue,Be(p.id),1),Oe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),U(s)?(ce(),xe(ct,{key:1},[ie("div",rue,[v[2]||(v[2]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,di({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"]),Oe(b,di({"h-full":"","model-value":U(d),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])]),U(h).mappings!==""?(ce(),xe("div",iue,[ie("div",oue," Source map (v"+Be(U(h).version)+") ",1),Oe(b,di({"model-value":U(h).mappings,"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(ce(),xe("div",nue," No transform result found for this module. "))])}}});function lue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Kd="http://www.w3.org/1999/xhtml";const Ym={svg:"http://www.w3.org/2000/svg",xhtml:Kd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Ym.hasOwnProperty(t)?{space:Ym[t],local:e}:e}function aue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Kd&&t.documentElement.namespaceURI===Kd?t.createElement(e):t.createElementNS(r,e)}}function cue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ww(e){var t=Fu(e);return(t.local?cue:aue)(t)}function uue(){}function Gh(e){return e==null?uue:function(){return this.querySelector(e)}}function fue(e){typeof e!="function"&&(e=Gh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new rr(o,this._parents)}function due(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function hue(){return[]}function qw(e){return e==null?hue:function(){return this.querySelectorAll(e)}}function pue(e){return function(){return due(e.apply(this,arguments))}}function gue(e){typeof e=="function"?e=pue(e):e=qw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new rr(o,s)}function Uw(e){return function(){return this.matches(e)}}function jw(e){return function(t){return t.matches(e)}}var vue=Array.prototype.find;function mue(e){return function(){return vue.call(this.children,e)}}function yue(){return this.firstElementChild}function bue(e){return this.select(e==null?yue:mue(typeof e=="function"?e:jw(e)))}var wue=Array.prototype.filter;function xue(){return Array.from(this.children)}function _ue(e){return function(){return wue.call(this.children,e)}}function Sue(e){return this.selectAll(e==null?xue:_ue(typeof e=="function"?e:jw(e)))}function kue(e){typeof e!="function"&&(e=Uw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new rr(o,this._parents)}function Vw(e){return new Array(e.length)}function Tue(){return new rr(this._enter||this._groups.map(Vw),this._parents)}function su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}su.prototype={constructor:su,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Cue(e){return function(){return e}}function Eue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new su(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Aue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new su(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Lue(e){return e.__data__}function Mue(e,t){if(!arguments.length)return Array.from(this,Lue);var r=t?Aue:Eue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Cue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=Nue(e.call(v,v&&v.__data__,p,o)),E=w.length,N=d[p]=new Array(E),T=f[p]=new Array(E),L=h[p]=new Array(b);r(v,m,N,T,L,w,t);for(var A=0,R=0,M,B;A<E;++A)if(M=N[A]){for(A>=R&&(R=A+1);!(B=T[R])&&++R<E;);M._next=B||null}}return f=new rr(f,o),f._enter=d,f._exit=h,f}function Nue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $ue(){return new rr(this._exit||this._groups.map(Vw),this._parents)}function Oue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Rue(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,E=0;E<m;++E)(w=p[E]||v[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new rr(d,this._parents)}function Pue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Iue(e){e||(e=Due);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new rr(s,this._parents).order()}function Due(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Fue(){return Array.from(this)}function Hue(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Bue(){let e=0;for(const t of this)++e;return e}function Wue(){return!this.node()}function que(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Uue(e){return function(){this.removeAttribute(e)}}function jue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Vue(e,t){return function(){this.setAttribute(e,t)}}function Gue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Kue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Xue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Yue(e,t){var r=Fu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?jue:Uue:typeof t=="function"?r.local?Xue:Kue:r.local?Gue:Vue)(r,t))}function Gw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zue(e){return function(){this.style.removeProperty(e)}}function Jue(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Que(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function efe(e,t,r){return arguments.length>1?this.each((t==null?Zue:typeof t=="function"?Que:Jue)(e,t,r??"")):zs(this.node(),e)}function zs(e,t){return e.style.getPropertyValue(t)||Gw(e).getComputedStyle(e,null).getPropertyValue(t)}function tfe(e){return function(){delete this[e]}}function nfe(e,t){return function(){this[e]=t}}function rfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function ife(e,t){return arguments.length>1?this.each((t==null?tfe:typeof t=="function"?rfe:nfe)(e,t)):this.node()[e]}function Kw(e){return e.trim().split(/^|\s+/)}function Kh(e){return e.classList||new Xw(e)}function Xw(e){this._node=e,this._names=Kw(e.getAttribute("class")||"")}Xw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Yw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Zw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function ofe(e){return function(){Yw(this,e)}}function sfe(e){return function(){Zw(this,e)}}function lfe(e,t){return function(){(t.apply(this,arguments)?Yw:Zw)(this,e)}}function afe(e,t){var r=Kw(e+"");if(arguments.length<2){for(var o=Kh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?lfe:t?ofe:sfe)(r,t))}function cfe(){this.textContent=""}function ufe(e){return function(){this.textContent=e}}function ffe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function dfe(e){return arguments.length?this.each(e==null?cfe:(typeof e=="function"?ffe:ufe)(e)):this.node().textContent}function hfe(){this.innerHTML=""}function pfe(e){return function(){this.innerHTML=e}}function gfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function vfe(e){return arguments.length?this.each(e==null?hfe:(typeof e=="function"?gfe:pfe)(e)):this.node().innerHTML}function mfe(){this.nextSibling&&this.parentNode.appendChild(this)}function yfe(){return this.each(mfe)}function bfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wfe(){return this.each(bfe)}function xfe(e){var t=typeof e=="function"?e:Ww(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _fe(){return null}function Sfe(e,t){var r=typeof e=="function"?e:Ww(e),o=t==null?_fe:typeof t=="function"?t:Gh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function kfe(){var e=this.parentNode;e&&e.removeChild(this)}function Tfe(){return this.each(kfe)}function Cfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Efe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Afe(e){return this.select(e?Efe:Cfe)}function Lfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Mfe(e){return function(t){e.call(this,t,this.__data__)}}function Nfe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function $fe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Ofe(e,t,r){return function(){var o=this.__on,s,c=Mfe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Rfe(e,t,r){var o=Nfe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Ofe:$fe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Jw(e,t,r){var o=Gw(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Pfe(e,t){return function(){return Jw(this,e,t)}}function Ife(e,t){return function(){return Jw(this,e,t.apply(this,arguments))}}function Dfe(e,t){return this.each((typeof t=="function"?Ife:Pfe)(e,t))}function*zfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var Qw=[null];function rr(e,t){this._groups=e,this._parents=t}function Ca(){return new rr([[document.documentElement]],Qw)}function Ffe(){return this}rr.prototype=Ca.prototype={constructor:rr,select:fue,selectAll:gue,selectChild:bue,selectChildren:Sue,filter:kue,data:Mue,enter:Tue,exit:$ue,join:Oue,merge:Rue,selection:Ffe,order:Pue,sort:Iue,call:zue,nodes:Fue,node:Hue,size:Bue,empty:Wue,each:que,attr:Yue,style:efe,property:ife,classed:afe,text:dfe,html:vfe,raise:yfe,lower:wfe,append:xfe,insert:Sfe,remove:Tfe,clone:Afe,datum:Lfe,on:Rfe,dispatch:Dfe,[Symbol.iterator]:zfe};function jn(e){return typeof e=="string"?new rr([[document.querySelector(e)]],[document.documentElement]):new rr([[e]],Qw)}function Hfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ai(e,t){if(e=Hfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Bfe=Object.defineProperty,Wfe=(e,t,r)=>t in e?Bfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zm=(e,t,r)=>Wfe(e,typeof t!="symbol"?t+"":t,r);class Ln{constructor(t,r){Zm(this,"x"),Zm(this,"y"),this.x=t,this.y=r}static of([t,r]){return new Ln(t,r)}add(t){return new Ln(this.x+t.x,this.y+t.y)}subtract(t){return new Ln(this.x-t.x,this.y-t.y)}multiply(t){return new Ln(this.x*t,this.y*t)}divide(t){return new Ln(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Ln(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Ln(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Ln(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var qfe={value:()=>{}};function Ea(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new $c(r)}function $c(e){this._=e}function Ufe(e,t){return e.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&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}$c.prototype=Ea.prototype={constructor:$c,on:function(e,t){var r=this._,o=Ufe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=jfe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=Jm(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Jm(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new $c(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function jfe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Jm(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=qfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Vfe={passive:!1},sa={capture:!0,passive:!1};function ad(e){e.stopImmediatePropagation()}function Ns(e){e.preventDefault(),e.stopImmediatePropagation()}function e1(e){var t=e.document.documentElement,r=jn(e).on("dragstart.drag",Ns,sa);"onselectstart"in t?r.on("selectstart.drag",Ns,sa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function t1(e,t){var r=e.document.documentElement,o=jn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ns,sa),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 bc=e=>()=>e;function Xd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,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:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}Xd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Gfe(e){return!e.ctrlKey&&!e.button}function Kfe(){return this.parentNode}function Xfe(e,t){return t??{x:e.x,y:e.y}}function Yfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Zfe(){var e=Gfe,t=Kfe,r=Xfe,o=Yfe,s={},c=Ea("start","drag","end"),f=0,d,h,p,v,m=0;function b(M){M.on("mousedown.drag",w).filter(o).on("touchstart.drag",T).on("touchmove.drag",L,Vfe).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(M,B){if(!(v||!e.call(this,M,B))){var V=R(this,t.call(this,M,B),M,B,"mouse");V&&(jn(M.view).on("mousemove.drag",E,sa).on("mouseup.drag",N,sa),e1(M.view),ad(M),p=!1,d=M.clientX,h=M.clientY,V("start",M))}}function E(M){if(Ns(M),!p){var B=M.clientX-d,V=M.clientY-h;p=B*B+V*V>m}s.mouse("drag",M)}function N(M){jn(M.view).on("mousemove.drag mouseup.drag",null),t1(M.view,p),Ns(M),s.mouse("end",M)}function T(M,B){if(e.call(this,M,B)){var V=M.changedTouches,G=t.call(this,M,B),ee=V.length,ne,K;for(ne=0;ne<ee;++ne)(K=R(this,G,M,B,V[ne].identifier,V[ne]))&&(ad(M),K("start",M,V[ne]))}}function L(M){var B=M.changedTouches,V=B.length,G,ee;for(G=0;G<V;++G)(ee=s[B[G].identifier])&&(Ns(M),ee("drag",M,B[G]))}function A(M){var B=M.changedTouches,V=B.length,G,ee;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),G=0;G<V;++G)(ee=s[B[G].identifier])&&(ad(M),ee("end",M,B[G]))}function R(M,B,V,G,ee,ne){var K=c.copy(),re=ai(ne||V,B),$,P,O;if((O=r.call(M,new Xd("beforestart",{sourceEvent:V,target:b,identifier:ee,active:f,x:re[0],y:re[1],dx:0,dy:0,dispatch:K}),G))!=null)return $=O.x-re[0]||0,P=O.y-re[1]||0,function S(F,j,se){var me=re,_e;switch(F){case"start":s[ee]=S,_e=f++;break;case"end":delete s[ee],--f;case"drag":re=ai(se||j,B),_e=f;break}K.call(F,M,new Xd(F,{sourceEvent:j,subject:O,target:b,identifier:ee,active:_e,x:re[0]+$,y:re[1]+P,dx:re[0]-me[0],dy:re[1]-me[1],dispatch:K}),G)}}return b.filter=function(M){return arguments.length?(e=typeof M=="function"?M:bc(!!M),b):e},b.container=function(M){return arguments.length?(t=typeof M=="function"?M:bc(M),b):t},b.subject=function(M){return arguments.length?(r=typeof M=="function"?M:bc(M),b):r},b.touchable=function(M){return arguments.length?(o=typeof M=="function"?M:bc(!!M),b):o},b.on=function(){var M=c.on.apply(c,arguments);return M===c?b:M},b.clickDistance=function(M){return arguments.length?(m=(M=+M)*M,b):Math.sqrt(m)},b}function Xh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function n1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Aa(){}var la=.7,lu=1/la,$s="\\s*([+-]?\\d+)\\s*",aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jfe=/^#([0-9a-f]{3,8})$/,Qfe=new RegExp(`^rgb\\(${$s},${$s},${$s}\\)$`),ede=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),tde=new RegExp(`^rgba\\(${$s},${$s},${$s},${aa}\\)$`),nde=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${aa}\\)$`),rde=new RegExp(`^hsl\\(${aa},${Vr},${Vr}\\)$`),ide=new RegExp(`^hsla\\(${aa},${Vr},${Vr},${aa}\\)$`),Qm={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};Xh(Aa,ca,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e0,formatHex:e0,formatHex8:ode,formatHsl:sde,formatRgb:t0,toString:t0});function e0(){return this.rgb().formatHex()}function ode(){return this.rgb().formatHex8()}function sde(){return r1(this).formatHsl()}function t0(){return this.rgb().formatRgb()}function ca(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Jfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?n0(t):r===3?new Gn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qfe.exec(e))?new Gn(t[1],t[2],t[3],1):(t=ede.exec(e))?new Gn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tde.exec(e))?wc(t[1],t[2],t[3],t[4]):(t=nde.exec(e))?wc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rde.exec(e))?o0(t[1],t[2]/100,t[3]/100,1):(t=ide.exec(e))?o0(t[1],t[2]/100,t[3]/100,t[4]):Qm.hasOwnProperty(e)?n0(Qm[e]):e==="transparent"?new Gn(NaN,NaN,NaN,0):null}function n0(e){return new Gn(e>>16&255,e>>8&255,e&255,1)}function wc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Gn(e,t,r,o)}function lde(e){return e instanceof Aa||(e=ca(e)),e?(e=e.rgb(),new Gn(e.r,e.g,e.b,e.opacity)):new Gn}function Yd(e,t,r,o){return arguments.length===1?lde(e):new Gn(e,t,r,o??1)}function Gn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Xh(Gn,Yd,n1(Aa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gn($o(this.r),$o(this.g),$o(this.b),au(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:r0,formatHex:r0,formatHex8:ade,formatRgb:i0,toString:i0}));function r0(){return`#${Ao(this.r)}${Ao(this.g)}${Ao(this.b)}`}function ade(){return`#${Ao(this.r)}${Ao(this.g)}${Ao(this.b)}${Ao((isNaN(this.opacity)?1:this.opacity)*255)}`}function i0(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${$o(this.r)}, ${$o(this.g)}, ${$o(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $o(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ao(e){return e=$o(e),(e<16?"0":"")+e.toString(16)}function o0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Sr(e,t,r,o)}function r1(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof Aa||(e=ca(e)),!e)return new Sr;if(e instanceof Sr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Sr(f,d,h,e.opacity)}function cde(e,t,r,o){return arguments.length===1?r1(e):new Sr(e,t,r,o??1)}function Sr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Xh(Sr,cde,n1(Aa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new Sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Gn(cd(e>=240?e-240:e+120,s,o),cd(e,s,o),cd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Sr(s0(this.h),xc(this.s),xc(this.l),au(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${s0(this.h)}, ${xc(this.s)*100}%, ${xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function s0(e){return e=(e||0)%360,e<0?e+360:e}function xc(e){return Math.max(0,Math.min(1,e||0))}function cd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const i1=e=>()=>e;function ude(e,t){return function(r){return e+r*t}}function fde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function dde(e){return(e=+e)==1?o1:function(t,r){return r-t?fde(t,r,e):i1(isNaN(t)?r:t)}}function o1(e,t){var r=t-e;return r?ude(e,r):i1(isNaN(e)?t:e)}const l0=function e(t){var r=dde(t);function o(s,c){var f=r((s=Yd(s)).r,(c=Yd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=o1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Zd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ud=new RegExp(Zd.source,"g");function hde(e){return function(){return e}}function pde(e){return function(t){return e(t)+""}}function gde(e,t){var r=Zd.lastIndex=ud.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Zd.exec(e))&&(s=ud.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:qi(o,s)})),r=ud.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?pde(h[0].x):hde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var a0=180/Math.PI,Jd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function s1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*a0,skewX:Math.atan(h)*a0,scaleX:f,scaleY:d}}var _c;function vde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Jd:s1(t.a,t.b,t.c,t.d,t.e,t.f)}function mde(e){return e==null||(_c||(_c=document.createElementNS("http://www.w3.org/2000/svg","g")),_c.setAttribute("transform",e),!(e=_c.transform.baseVal.consolidate()))?Jd:(e=e.matrix,s1(e.a,e.b,e.c,e.d,e.e,e.f))}function l1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push("translate(",null,t,null,r);E.push({i:N-4,x:qi(p,m)},{i:N-2,x:qi(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:qi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:qi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push(s(w)+"scale(",null,",",null,")");E.push({i:N-4,x:qi(p,m)},{i:N-2,x:qi(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var E=-1,N=b.length,T;++E<N;)m[(T=b[E]).i]=T.x(w);return m.join("")}}}var yde=l1(vde,"px, ","px)","deg)"),bde=l1(mde,", ",")",")"),wde=1e-12;function c0(e){return((e=Math.exp(e))+1/e)/2}function xde(e){return((e=Math.exp(e))-1/e)/2}function _de(e){return((e=Math.exp(2*e))-1)/(e+1)}const Sde=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,E=m-h,N=w*w+E*E,T,L;if(N<wde)L=Math.log(b/p)/t,T=function(G){return[d+G*w,h+G*E,p*Math.exp(t*G*L)]};else{var A=Math.sqrt(N),R=(b*b-p*p+o*N)/(2*p*r*A),M=(b*b-p*p-o*N)/(2*b*r*A),B=Math.log(Math.sqrt(R*R+1)-R),V=Math.log(Math.sqrt(M*M+1)-M);L=(V-B)/t,T=function(G){var ee=G*L,ne=c0(B),K=p/(r*A)*(ne*_de(t*ee+B)-xde(B));return[d+K*w,h+K*E,p*ne/c0(t*ee+B)]}}return T.duration=L*1e3*t/Math.SQRT2,T}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var Fs=0,Al=0,kl=0,a1=1e3,cu,Ll,uu=0,Io=0,Hu=0,ua=typeof performance=="object"&&performance.now?performance:Date,c1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yh(){return Io||(c1(kde),Io=ua.now()+Hu)}function kde(){Io=0}function fu(){this._call=this._time=this._next=null}fu.prototype=Zh.prototype={constructor:fu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Yh():+r)+(t==null?0:+t),!this._next&&Ll!==this&&(Ll?Ll._next=this:cu=this,Ll=this),this._call=e,this._time=r,Qd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qd())}};function Zh(e,t,r){var o=new fu;return o.restart(e,t,r),o}function Tde(){Yh(),++Fs;for(var e=cu,t;e;)(t=Io-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fs}function u0(){Io=(uu=ua.now())+Hu,Fs=Al=0;try{Tde()}finally{Fs=0,Ede(),Io=0}}function Cde(){var e=ua.now(),t=e-uu;t>a1&&(Hu-=t,uu=e)}function Ede(){for(var e,t=cu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:cu=r);Ll=e,Qd(o)}function Qd(e){if(!Fs){Al&&(Al=clearTimeout(Al));var t=e-Io;t>24?(e<1/0&&(Al=setTimeout(u0,e-ua.now()-Hu)),kl&&(kl=clearInterval(kl))):(kl||(uu=ua.now(),kl=setInterval(Cde,a1)),Fs=1,c1(u0))}}function f0(e,t,r){var o=new fu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Ade=Ea("start","end","cancel","interrupt"),Lde=[],u1=0,d0=1,eh=2,Oc=3,h0=4,th=5,Rc=6;function Bu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Mde(e,r,{name:t,index:o,group:s,on:Ade,tween:Lde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:u1})}function Jh(e,t){var r=$r(e,t);if(r.state>u1)throw new Error("too late; already scheduled");return r}function Xr(e,t){var r=$r(e,t);if(r.state>Oc)throw new Error("too late; already running");return r}function $r(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Mde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Zh(c,0,r.time);function c(p){r.state=d0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==d0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Oc)return f0(f);w.state===h0?(w.state=Rc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Rc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(f0(function(){r.state===Oc&&(r.state=h0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=eh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===eh){for(r.state=Oc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=th,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===th&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Rc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Pc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>eh&&o.state<th,o.state=Rc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Nde(e){return this.each(function(){Pc(this,e)})}function $de(e,t){var r,o;return function(){var s=Xr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Ode(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Xr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function Rde(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=$r(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?$de:Ode)(r,e,t))}function Qh(e,t,r){var o=e._id;return e.each(function(){var s=Xr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return $r(s,o).value[t]}}function f1(e,t){var r;return(typeof t=="number"?qi:t instanceof ca?l0:(r=ca(t))?(t=r,l0):gde)(e,t)}function Pde(e){return function(){this.removeAttribute(e)}}function Ide(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function zde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Fde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Hde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Bde(e,t){var r=Fu(e),o=r==="transform"?bde:f1;return this.attrTween(e,typeof t=="function"?(r.local?Hde:Fde)(r,o,Qh(this,"attr."+e,t)):t==null?(r.local?Ide:Pde)(r):(r.local?zde:Dde)(r,o,t))}function Wde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function qde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ude(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&qde(e,c)),r}return s._value=t,s}function jde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Wde(e,c)),r}return s._value=t,s}function Vde(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Fu(e);return this.tween(r,(o.local?Ude:jde)(o,t))}function Gde(e,t){return function(){Jh(this,e).delay=+t.apply(this,arguments)}}function Kde(e,t){return t=+t,function(){Jh(this,e).delay=t}}function Xde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Gde:Kde)(t,e)):$r(this.node(),t).delay}function Yde(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function Zde(e,t){return t=+t,function(){Xr(this,e).duration=t}}function Jde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yde:Zde)(t,e)):$r(this.node(),t).duration}function Qde(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function ehe(e){var t=this._id;return arguments.length?this.each(Qde(t,e)):$r(this.node(),t).ease}function the(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Xr(this,e).ease=r}}function nhe(e){if(typeof e!="function")throw new Error;return this.each(the(this._id,e))}function rhe(e){typeof e!="function"&&(e=Uw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new gi(o,this._parents,this._name,this._id)}function ihe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new gi(f,this._parents,this._name,this._id)}function ohe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function she(e,t,r){var o,s,c=ohe(t)?Jh:Xr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function lhe(e,t){var r=this._id;return arguments.length<2?$r(this.node(),r).on.on(e):this.each(she(r,e,t))}function ahe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function che(){return this.on("end.remove",ahe(this._id))}function uhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Gh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Bu(p[b],t,r,b,p,$r(v,r)));return new gi(c,this._parents,t,r)}function fhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=qw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,E=$r(v,r),N=0,T=b.length;N<T;++N)(w=b[N])&&Bu(w,t,r,N,b,E);c.push(b),f.push(v)}return new gi(c,f,t,r)}var dhe=Ca.prototype.constructor;function hhe(){return new dhe(this._groups,this._parents)}function phe(e,t){var r,o,s;return function(){var c=zs(this,e),f=(this.style.removeProperty(e),zs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function d1(e){return function(){this.style.removeProperty(e)}}function ghe(e,t,r){var o,s=r+"",c;return function(){var f=zs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function vhe(e,t,r){var o,s,c;return function(){var f=zs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),zs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function mhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Xr(this,e),p=h.on,v=h.value[c]==null?d||(d=d1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function yhe(e,t,r){var o=(e+="")=="transform"?yde:f1;return t==null?this.styleTween(e,phe(e,o)).on("end.style."+e,d1(e)):typeof t=="function"?this.styleTween(e,vhe(e,o,Qh(this,"style."+e,t))).each(mhe(this._id,e)):this.styleTween(e,ghe(e,o,t),r).on("end.style."+e,null)}function bhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function whe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&bhe(e,f,r)),o}return c._value=t,c}function xhe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,whe(e,t,r??""))}function _he(e){return function(){this.textContent=e}}function She(e){return function(){var t=e(this);this.textContent=t??""}}function khe(e){return this.tween("text",typeof e=="function"?She(Qh(this,"text",e)):_he(e==null?"":e+""))}function The(e){return function(t){this.textContent=e.call(this,t)}}function Che(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&The(s)),t}return o._value=e,o}function Ehe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Che(e))}function Ahe(){for(var e=this._name,t=this._id,r=h1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=$r(h,t);Bu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new gi(o,this._parents,e,r)}function Lhe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Xr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Mhe=0;function gi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function h1(){return++Mhe}var oi=Ca.prototype;gi.prototype={constructor:gi,select:uhe,selectAll:fhe,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:rhe,merge:ihe,selection:hhe,transition:Ahe,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:lhe,attr:Bde,attrTween:Vde,style:yhe,styleTween:xhe,text:khe,textTween:Ehe,remove:che,tween:Rde,delay:Xde,duration:Jde,ease:ehe,easeVarying:nhe,end:Lhe,[Symbol.iterator]:oi[Symbol.iterator]};function Nhe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var $he={time:null,delay:0,duration:250,ease:Nhe};function Ohe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Rhe(e){var t,r;e instanceof gi?(t=e._id,e=e._name):(t=h1(),(r=$he).time=Yh(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Bu(h,e,t,p,f,r||Ohe(h,t));return new gi(o,this._parents,e,t)}Ca.prototype.interrupt=Nde;Ca.prototype.transition=Rhe;const Sc=e=>()=>e;function Phe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function fi(e,t,r){this.k=e,this.x=t,this.y=r}fi.prototype={constructor:fi,scale:function(e){return e===1?this:new fi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ep=new fi(1,0,0);fi.prototype;function fd(e){e.stopImmediatePropagation()}function Tl(e){e.preventDefault(),e.stopImmediatePropagation()}function Ihe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Dhe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function p0(){return this.__zoom||ep}function zhe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Fhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hhe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Bhe(){var e=Ihe,t=Dhe,r=Hhe,o=zhe,s=Fhe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Sde,p=Ea("start","zoom","end"),v,m,b,w=500,E=150,N=0,T=10;function L(O){O.property("__zoom",p0).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",K).filter(s).on("touchstart.zoom",re).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(O,S,F,j){var se=O.selection?O.selection():O;se.property("__zoom",p0),O!==se?B(O,S,F,j):se.interrupt().each(function(){V(this,arguments).event(j).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},L.scaleBy=function(O,S,F,j){L.scaleTo(O,function(){var se=this.__zoom.k,me=typeof S=="function"?S.apply(this,arguments):S;return se*me},F,j)},L.scaleTo=function(O,S,F,j){L.transform(O,function(){var se=t.apply(this,arguments),me=this.__zoom,_e=F==null?M(se):typeof F=="function"?F.apply(this,arguments):F,Pe=me.invert(_e),qe=typeof S=="function"?S.apply(this,arguments):S;return r(R(A(me,qe),_e,Pe),se,f)},F,j)},L.translateBy=function(O,S,F,j){L.transform(O,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof F=="function"?F.apply(this,arguments):F),t.apply(this,arguments),f)},null,j)},L.translateTo=function(O,S,F,j,se){L.transform(O,function(){var me=t.apply(this,arguments),_e=this.__zoom,Pe=j==null?M(me):typeof j=="function"?j.apply(this,arguments):j;return r(ep.translate(Pe[0],Pe[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof F=="function"?-F.apply(this,arguments):-F),me,f)},j,se)};function A(O,S){return S=Math.max(c[0],Math.min(c[1],S)),S===O.k?O:new fi(S,O.x,O.y)}function R(O,S,F){var j=S[0]-F[0]*O.k,se=S[1]-F[1]*O.k;return j===O.x&&se===O.y?O:new fi(O.k,j,se)}function M(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function B(O,S,F,j){O.on("start.zoom",function(){V(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(j).end()}).tween("zoom",function(){var se=this,me=arguments,_e=V(se,me).event(j),Pe=t.apply(se,me),qe=F==null?M(Pe):typeof F=="function"?F.apply(se,me):F,Ze=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ke=se.__zoom,Xe=typeof S=="function"?S.apply(se,me):S,te=h(Ke.invert(qe).concat(Ze/Ke.k),Xe.invert(qe).concat(Ze/Xe.k));return function(z){if(z===1)z=Xe;else{var J=te(z),X=Ze/J[2];z=new fi(X,qe[0]-J[0]*X,qe[1]-J[1]*X)}_e.zoom(null,z)}})}function V(O,S,F){return!F&&O.__zooming||new G(O,S)}function G(O,S){this.that=O,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,S),this.taps=0}G.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,S){return this.mouse&&O!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var S=jn(this.that).datum();p.call(O,this.that,new Phe(O,{sourceEvent:this.sourceEvent,target:L,transform:this.that.__zoom,dispatch:p}),S)}};function ee(O,...S){if(!e.apply(this,arguments))return;var F=V(this,S).event(O),j=this.__zoom,se=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),me=ai(O);if(F.wheel)(F.mouse[0][0]!==me[0]||F.mouse[0][1]!==me[1])&&(F.mouse[1]=j.invert(F.mouse[0]=me)),clearTimeout(F.wheel);else{if(j.k===se)return;F.mouse=[me,j.invert(me)],Pc(this),F.start()}Tl(O),F.wheel=setTimeout(_e,E),F.zoom("mouse",r(R(A(j,se),F.mouse[0],F.mouse[1]),F.extent,f));function _e(){F.wheel=null,F.end()}}function ne(O,...S){if(b||!e.apply(this,arguments))return;var F=O.currentTarget,j=V(this,S,!0).event(O),se=jn(O.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",Ze,!0),me=ai(O,F),_e=O.clientX,Pe=O.clientY;e1(O.view),fd(O),j.mouse=[me,this.__zoom.invert(me)],Pc(this),j.start();function qe(Ke){if(Tl(Ke),!j.moved){var Xe=Ke.clientX-_e,te=Ke.clientY-Pe;j.moved=Xe*Xe+te*te>N}j.event(Ke).zoom("mouse",r(R(j.that.__zoom,j.mouse[0]=ai(Ke,F),j.mouse[1]),j.extent,f))}function Ze(Ke){se.on("mousemove.zoom mouseup.zoom",null),t1(Ke.view,j.moved),Tl(Ke),j.event(Ke).end()}}function K(O,...S){if(e.apply(this,arguments)){var F=this.__zoom,j=ai(O.changedTouches?O.changedTouches[0]:O,this),se=F.invert(j),me=F.k*(O.shiftKey?.5:2),_e=r(R(A(F,me),j,se),t.apply(this,S),f);Tl(O),d>0?jn(this).transition().duration(d).call(B,_e,j,O):jn(this).call(L.transform,_e,j,O)}}function re(O,...S){if(e.apply(this,arguments)){var F=O.touches,j=F.length,se=V(this,S,O.changedTouches.length===j).event(O),me,_e,Pe,qe;for(fd(O),_e=0;_e<j;++_e)Pe=F[_e],qe=ai(Pe,this),qe=[qe,this.__zoom.invert(qe),Pe.identifier],se.touch0?!se.touch1&&se.touch0[2]!==qe[2]&&(se.touch1=qe,se.taps=0):(se.touch0=qe,me=!0,se.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(se.taps<2&&(m=qe[0],v=setTimeout(function(){v=null},w)),Pc(this),se.start())}}function $(O,...S){if(this.__zooming){var F=V(this,S).event(O),j=O.changedTouches,se=j.length,me,_e,Pe,qe;for(Tl(O),me=0;me<se;++me)_e=j[me],Pe=ai(_e,this),F.touch0&&F.touch0[2]===_e.identifier?F.touch0[0]=Pe:F.touch1&&F.touch1[2]===_e.identifier&&(F.touch1[0]=Pe);if(_e=F.that.__zoom,F.touch1){var Ze=F.touch0[0],Ke=F.touch0[1],Xe=F.touch1[0],te=F.touch1[1],z=(z=Xe[0]-Ze[0])*z+(z=Xe[1]-Ze[1])*z,J=(J=te[0]-Ke[0])*J+(J=te[1]-Ke[1])*J;_e=A(_e,Math.sqrt(z/J)),Pe=[(Ze[0]+Xe[0])/2,(Ze[1]+Xe[1])/2],qe=[(Ke[0]+te[0])/2,(Ke[1]+te[1])/2]}else if(F.touch0)Pe=F.touch0[0],qe=F.touch0[1];else return;F.zoom("touch",r(R(_e,Pe,qe),F.extent,f))}}function P(O,...S){if(this.__zooming){var F=V(this,S).event(O),j=O.changedTouches,se=j.length,me,_e;for(fd(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),me=0;me<se;++me)_e=j[me],F.touch0&&F.touch0[2]===_e.identifier?delete F.touch0:F.touch1&&F.touch1[2]===_e.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(_e=ai(_e,this),Math.hypot(m[0]-_e[0],m[1]-_e[1])<T)){var Pe=jn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return L.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:Sc(+O),L):o},L.filter=function(O){return arguments.length?(e=typeof O=="function"?O:Sc(!!O),L):e},L.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:Sc(!!O),L):s},L.extent=function(O){return arguments.length?(t=typeof O=="function"?O:Sc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),L):t},L.scaleExtent=function(O){return arguments.length?(c[0]=+O[0],c[1]=+O[1],L):[c[0],c[1]]},L.translateExtent=function(O){return arguments.length?(f[0][0]=+O[0][0],f[1][0]=+O[1][0],f[0][1]=+O[0][1],f[1][1]=+O[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(O){return arguments.length?(r=O,L):r},L.duration=function(O){return arguments.length?(d=+O,L):d},L.interpolate=function(O){return arguments.length?(h=O,L):h},L.on=function(){var O=p.on.apply(p,arguments);return O===p?L:O},L.clickDistance=function(O){return arguments.length?(N=(O=+O)*O,L):Math.sqrt(N)},L.tapDistance=function(O){return arguments.length?(T=+O,L):T},L}function Whe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return p1(this.cover(t,r),t,r,e)}function p1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,E,N,T,L,A;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(T=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=T<<1|N]))return s[L]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(T=r>=(b=(h+v)/2))?h=b:v=b;while((L=T<<1|N)===(A=(E>=b)<<1|w>=m));return s[A]=c,s[L]=f,e}function qhe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)p1(this,f[r],d[r],e[r]);return this}function Uhe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function jhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Vhe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function $n(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Ghe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,E,N;for(w&&b.push(new $n(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>v||(d=E.y0)>m||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var T=(f+h)/2,L=(d+p)/2;b.push(new $n(w[3],T,L,h,p),new $n(w[2],f,L,T,p),new $n(w[1],T,d,h,L),new $n(w[0],f,d,T,L)),(N=(t>=L)<<1|e>=T)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=E)}else{var A=e-+this._x.call(null,w.data),R=t-+this._y.call(null,w.data),M=A*A+R*R;if(M<r){var B=Math.sqrt(r=M);s=e-B,c=t-B,v=e+B,m=t+B,o=w.data}}return o}function Khe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,E,N,T,L;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(N=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[T=N<<1|E]))return this;if(!r.length)break;(t[T+1&3]||t[T+2&3]||t[T+3&3])&&(o=t,L=T)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[T]=c:delete t[T],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function Xhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Yhe(){return this._root}function Zhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Jhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new $n(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new $n(s,p,v,d,h)),(s=o[2])&&t.push(new $n(s,c,v,p,h)),(s=o[1])&&t.push(new $n(s,p,f,d,v)),(s=o[0])&&t.push(new $n(s,c,f,p,v))}return this}function Qhe(e){var t=[],r=[],o;for(this._root&&t.push(new $n(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new $n(c,f,d,v,m)),(c=s[1])&&t.push(new $n(c,v,d,h,m)),(c=s[2])&&t.push(new $n(c,f,m,v,p)),(c=s[3])&&t.push(new $n(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function epe(e){return e[0]}function tpe(e){return arguments.length?(this._x=e,this):this._x}function npe(e){return e[1]}function rpe(e){return arguments.length?(this._y=e,this):this._y}function tp(e,t,r){var o=new np(t??epe,r??npe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function np(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function g0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Pn=tp.prototype=np.prototype;Pn.copy=function(){var e=new np(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=g0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=g0(o));return e};Pn.add=Whe;Pn.addAll=qhe;Pn.cover=Uhe;Pn.data=jhe;Pn.extent=Vhe;Pn.find=Ghe;Pn.remove=Khe;Pn.removeAll=Xhe;Pn.root=Yhe;Pn.size=Zhe;Pn.visit=Jhe;Pn.visitAfter=Qhe;Pn.x=tpe;Pn.y=rpe;function Rn(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function ipe(e){return e.x+e.vx}function ope(e){return e.y+e.vy}function spe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,E,N,T,L=0;L<c;++L)for(m=tp(t,ipe,ope).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],T=N*N,w=b.x+b.vx,E=b.y+b.vy,m.visit(A);function A(R,M,B,V,G){var ee=R.data,ne=R.r,K=N+ne;if(ee){if(ee.index>b.index){var re=w-ee.x-ee.vx,$=E-ee.y-ee.vy,P=re*re+$*$;P<K*K&&(re===0&&(re=Vi(o),P+=re*re),$===0&&($=Vi(o),P+=$*$),P=(K-(P=Math.sqrt(P)))/P*s,b.vx+=(re*=P)*(K=(ne*=ne)/(T+ne)),b.vy+=($*=P)*K,ee.vx-=re*(K=1-K),ee.vy-=$*K)}return}return M>w+K||V<w-K||B>E+K||G<E-K}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),f):e},f}function lpe(e){return e.index}function v0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function ape(e){var t=lpe,r=m,o,s=Rn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(T){return 1/Math.min(d[T.source.index],d[T.target.index])}function b(T){for(var L=0,A=e.length;L<v;++L)for(var R=0,M,B,V,G,ee,ne,K;R<A;++R)M=e[R],B=M.source,V=M.target,G=V.x+V.vx-B.x-B.vx||Vi(p),ee=V.y+V.vy-B.y-B.vy||Vi(p),ne=Math.sqrt(G*G+ee*ee),ne=(ne-c[R])/ne*T*o[R],G*=ne,ee*=ne,V.vx-=G*(K=h[R]),V.vy-=ee*K,B.vx+=G*(K=1-K),B.vy+=ee*K}function w(){if(f){var T,L=f.length,A=e.length,R=new Map(f.map((B,V)=>[t(B,V,f),B])),M;for(T=0,d=new Array(L);T<A;++T)M=e[T],M.index=T,typeof M.source!="object"&&(M.source=v0(R,M.source)),typeof M.target!="object"&&(M.target=v0(R,M.target)),d[M.source.index]=(d[M.source.index]||0)+1,d[M.target.index]=(d[M.target.index]||0)+1;for(T=0,h=new Array(A);T<A;++T)M=e[T],h[T]=d[M.source.index]/(d[M.source.index]+d[M.target.index]);o=new Array(A),E(),c=new Array(A),N()}}function E(){if(f)for(var T=0,L=e.length;T<L;++T)o[T]=+r(e[T],T,e)}function N(){if(f)for(var T=0,L=e.length;T<L;++T)c[T]=+s(e[T],T,e)}return b.initialize=function(T,L){f=T,p=L,w()},b.links=function(T){return arguments.length?(e=T,w(),b):e},b.id=function(T){return arguments.length?(t=T,b):t},b.iterations=function(T){return arguments.length?(v=+T,b):v},b.strength=function(T){return arguments.length?(r=typeof T=="function"?T:Rn(+T),E(),b):r},b.distance=function(T){return arguments.length?(s=typeof T=="function"?T:Rn(+T),N(),b):s},b}const cpe=1664525,upe=1013904223,m0=4294967296;function fpe(){let e=1;return()=>(e=(cpe*e+upe)%m0)/m0}function dpe(e){return e.x}function hpe(e){return e.y}var ppe=10,gpe=Math.PI*(3-Math.sqrt(5));function vpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Zh(m),p=Ea("tick","end"),v=fpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var T,L=e.length,A;N===void 0&&(N=1);for(var R=0;R<N;++R)for(r+=(c-r)*s,d.forEach(function(M){M(r)}),T=0;T<L;++T)A=e[T],A.fx==null?A.x+=A.vx*=f:(A.x=A.fx,A.vx=0),A.fy==null?A.y+=A.vy*=f:(A.y=A.fy,A.vy=0);return t}function w(){for(var N=0,T=e.length,L;N<T;++N){if(L=e[N],L.index=N,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var A=ppe*Math.sqrt(.5+N),R=N*gpe;L.x=A*Math.cos(R),L.y=A*Math.sin(R)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function E(N){return N.initialize&&N.initialize(e,v),N}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(N){return arguments.length?(e=N,w(),d.forEach(E),t):e},alpha:function(N){return arguments.length?(r=+N,t):r},alphaMin:function(N){return arguments.length?(o=+N,t):o},alphaDecay:function(N){return arguments.length?(s=+N,t):+s},alphaTarget:function(N){return arguments.length?(c=+N,t):c},velocityDecay:function(N){return arguments.length?(f=1-N,t):1-f},randomSource:function(N){return arguments.length?(v=N,d.forEach(E),t):v},force:function(N,T){return arguments.length>1?(T==null?d.delete(N):d.set(N,E(T)),t):d.get(N)},find:function(N,T,L){var A=0,R=e.length,M,B,V,G,ee;for(L==null?L=1/0:L*=L,A=0;A<R;++A)G=e[A],M=N-G.x,B=T-G.y,V=M*M+B*B,V<L&&(ee=G,L=V);return ee},on:function(N,T){return arguments.length>1?(p.on(N,T),t):p.on(N)}}}function mpe(){var e,t,r,o,s=Rn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,N=e.length,T=tp(e,dpe,hpe).visitAfter(m);for(o=w,E=0;E<N;++E)t=e[E],T.visit(b)}function v(){if(e){var w,E=e.length,N;for(c=new Array(E),w=0;w<E;++w)N=e[w],c[N.index]=+s(N,w,e)}}function m(w){var E=0,N,T,L=0,A,R,M;if(w.length){for(A=R=M=0;M<4;++M)(N=w[M])&&(T=Math.abs(N.value))&&(E+=N.value,L+=T,A+=T*N.x,R+=T*N.y);w.x=A/L,w.y=R/L}else{N=w,N.x=N.data.x,N.y=N.data.y;do E+=c[N.data.index];while(N=N.next)}w.value=E}function b(w,E,N,T){if(!w.value)return!0;var L=w.x-t.x,A=w.y-t.y,R=T-E,M=L*L+A*A;if(R*R/h<M)return M<d&&(L===0&&(L=Vi(r),M+=L*L),A===0&&(A=Vi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)),t.vx+=L*w.value*o/M,t.vy+=A*w.value*o/M),!0;if(w.length||M>=d)return;(w.data!==t||w.next)&&(L===0&&(L=Vi(r),M+=L*L),A===0&&(A=Vi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)));do w.data!==t&&(R=c[w.data.index]*o/M,t.vx+=L*R,t.vy+=A*R);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Rn(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function ype(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}function bpe(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}var wpe=Object.defineProperty,xpe=(e,t,r)=>t in e?wpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mt=(e,t,r)=>xpe(e,typeof t!="symbol"?t+"":t,r);function _pe(){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 y0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Gi(...e){return e.reduce((t,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(t[o])&&Array.isArray(r[o])?t[o]=Gi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:y0(t[o])&&y0(r[o])?t[o]=Gi(t[o],r[o]):t[o]=r[o])}),t},{})}const g1={mergeArrays:!0};Gi.options=g1;Gi.withOptions=(e,...t)=>{Gi.options={mergeArrays:!0,...e};const r=Gi(...t);return Gi.options=g1,r};function Spe(){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 kpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function v1(e){e.preventDefault(),e.stopPropagation()}function m1(e){return typeof e=="number"}function ro(e,t){return m1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Tpe(e){return`${e.source.id}-${e.target.id}`}function y1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Cpe(e){return`url(#${y1(e.color)})`}function Epe(e){return{size:e,padding:(t,r)=>ro(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const b1={Arrow:e=>Epe(e)},Ape=(e,t,r)=>[t/2,r/2],Lpe=(e,t,r)=>[b0(0,t),b0(0,r)];function b0(e,t){return Math.random()*(t-e)+e}const nh={Centered:Ape,Randomized:Lpe};function Mpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:kpe(),nodeRadius:16,marker:b1.Arrow(4),modifiers:{},positionInitializer:nh.Centered,simulation:{alphas:_pe(),forces:Spe()},zoom:{initial:1,min:.1,max:2}}}function Npe(e={}){return Gi.withOptions({mergeArrays:!1},Mpe(),e)}function $pe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>v1(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 e&&p.call(h.transform,ep.translate(c,f).scale(d)),p.append("g")}function Ope({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Rpe({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Zfe().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),jn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),jn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function Ppe({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Ipe({links:c},r)}function Ipe(e,t){const r=[...Dpe(e,t),...zpe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Dpe(e,t){return w1(e,t,(r,o)=>r.target.id===o.id)}function zpe(e,t){return w1(e,t,(r,o)=>r.source.id===o.id)}function w1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function rh(e){return e.x??0}function ih(e){return e.y??0}function rp({source:e,target:t}){const r=new Ln(rh(e),ih(e)),o=new Ln(rh(t),ih(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function x1({center:e,node:t}){const r=new Ln(rh(t),ih(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Ln(0,1))),{n:r,c:o}}function _1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=rp({source:t,target:r}),f=o.add(c.multiply(ro(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function Fpe(e){const{start:t,end:r}=_1(e);return`M${t.x},${t.y}
|
|
45
|
+
L${r.x},${r.y}`}function Hpe(e){const{start:t,end:r}=_1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Bpe({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=rp({source:t,target:r}),h=10,p=f.rotateByDegrees(-10).multiply(ro(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(ro(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
46
|
+
A${m},${m},0,0,1,${v.x},${v.y}`}function Wpe({center:e,config:t,node:r}){const{n:o,c:s}=x1({center:e,node:r}),c=ro(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=d.rotateByDegrees(40).multiply(c-1).add(o),p=d.rotateByDegrees(-40).multiply(c).add(o).add(d.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}
|
|
47
|
+
A${c},${c},0,1,0,${p.x},${p.y}`}function qpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=rp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Upe({center:e,config:t,node:r}){const{n:o,c:s}=x1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ro(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Os={line:{labelTransform:Hpe,path:Fpe},arc:{labelTransform:qpe,path:Bpe},reflexive:{labelTransform:Upe,path:Wpe}};function jpe(e){return e.append("g").classed("links",!0).selectAll("path")}function Vpe({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Tpe(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>Cpe(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Gpe(e){Kpe(e),Xpe(e)}function Kpe({center:e,config:t,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?Os.reflexive.path({config:t,node:s.source,center:e}):S1(r,s.source,s.target)?Os.arc.path({config:t,source:s.source,target:s.target}):Os.line.path({config:t,source:s.source,target:s.target}))}function Xpe({config:e,center:t,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?Os.reflexive.labelTransform({config:e,node:s.source,center:t}):S1(r,s.source,s.target)?Os.arc.labelTransform({config:e,source:s.source,target:s.target}):Os.line.labelTransform({config:e,source:s.source,target:s.target}))}function S1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Ype(e){return e.append("defs").selectAll("marker")}function Zpe({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Jpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>y1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Qpe(e.marker.path)),s})}function Jpe(e){return[...new Set(e.links.map(t=>t.color))]}function Qpe(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function ege(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function tge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const E=w.append("circle").classed("node",!0).attr("r",T=>ro(e,T)).on("contextmenu",(T,L)=>{v1(T),o(L)}).on("pointerdown",(T,L)=>rge(T,L,s??o)).style("fill",T=>T.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const N=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",T=>T.label?T.label.color:null).style("font-size",T=>T.label?T.label.fontSize:null).style("stroke","none").text(T=>T.label?T.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,N),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const nge=500;function rge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>nge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function ige(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function oge({center:e,config:t,graph:r,onTick:o}){var s,c;const f=vpe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",ype(()=>e().x).strength(m)).force("y",bpe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",mpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",spe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",ape(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function sge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Bhe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class lge{constructor(t,r,o){if(Mt(this,"nodeTypes"),Mt(this,"_nodeTypeFilter"),Mt(this,"_includeUnlinked",!0),Mt(this,"_linkFilter",()=>!0),Mt(this,"_showLinkLabels",!0),Mt(this,"_showNodeLabels",!0),Mt(this,"filteredGraph"),Mt(this,"width",0),Mt(this,"height",0),Mt(this,"simulation"),Mt(this,"canvas"),Mt(this,"linkSelection"),Mt(this,"nodeSelection"),Mt(this,"markerSelection"),Mt(this,"zoom"),Mt(this,"drag"),Mt(this,"xOffset",0),Mt(this,"yOffset",0),Mt(this,"scale"),Mt(this,"focusedNode"),Mt(this,"resizeObserver"),Mt(this,"container"),Mt(this,"graph"),Mt(this,"config"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,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:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??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(lue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Ln.of([this.width,this.height]).divide(2).subtract(Ln.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(m1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Zpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Vpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=tge({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=oge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?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 t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=sge({config:this.config,canvasContainer:()=>jn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=$pe({applyZoom:this.scale!==1,container:jn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=jpe(this.canvas),this.nodeSelection=ege(this.canvas),this.markerSelection=Ype(this.canvas),this.drag=Rpe({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){ige(this.nodeSelection),Gpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),jn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.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(){Ope({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=Ppe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function w0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function age(e){return{...e}}function k1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const cge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},uge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},fge={flex:"~ gap-1","items-center":"","select-none":""},dge=["id","checked","onChange"],hge=["for"],pge=ut({__name:"ViewModuleGraph",props:Gl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Tu(e,"modelValue"),{graph:o}=ES(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();Ah(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),so(()=>{v()}),Su(()=>{var w;(w=d.value)==null||w.shutdown()}),xt(o,()=>v());function h(w,E){var N;(N=d.value)==null||N.filterNodesByType(E,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var E;if((E=d.value)==null||E.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new lge(s.value,o.value,Npe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:N,newWidth:T})=>N===0&&T===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:b1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?nh.Randomized:nh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(Cr)return;let E=0,N=0,T=0;w.on("pointerdown",(L,A)=>{A.type!=="external"&&(!A.x||!A.y||!m(L)||(E=A.x,N=A.y,T=Date.now()))}).on("pointerup",(L,A)=>{if(A.type==="external"||!A.x||!A.y||!m(L)||Date.now()-T>500)return;const R=A.x-E,M=A.y-N;R**2+M**2<100&&p(A.id)})}return(w,E)=>{var R;const N=bi,T=sue,L=zw,A=Kr("tooltip");return ce(),xe("div",cge,[ie("div",null,[ie("div",uge,[ie("div",fge,[gt(ie("input",{id:"hide-node-modules","onUpdate:modelValue":E[0]||(E[0]=M=>r.value=M),type:"checkbox"},null,512),[[ub,r.value]]),E[4]||(E[4]=ie("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ce(!0),xe(ct,null,hi((R=U(d))==null?void 0:R.nodeTypes.sort(),M=>{var B;return ce(),xe("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ie("input",{id:`type-${M}`,type:"checkbox",checked:(B=U(d))==null?void 0:B.nodeTypeFilter.includes(M),onChange:V=>h(M,V.target.checked)},null,40,dge),ie("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${M}`,"border-b-2":"",style:en({"border-color":`var(--color-node-${M})`})},Be(M)+" Modules",13,hge)])}),128)),E[5]||(E[5]=ie("div",{"flex-auto":""},null,-1)),ie("div",null,[gt(Oe(N,{icon:"i-carbon-reset",onClick:E[1]||(E[1]=M=>v(!0))},null,512),[[A,"Reset",void 0,{bottom:!0}]])])])]),ie("div",{ref_key:"el",ref:s},null,512),Oe(L,{modelValue:U(c),"onUpdate:modelValue":E[3]||(E[3]=M=>Ct(c)?c.value=M:null),direction:"right"},{default:rt(()=>[U(f)?(ce(),nt(Jy,{key:0},{default:rt(()=>[Oe(T,{id:U(f),"project-name":w.projectName,onClose:E[2]||(E[2]=M=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),gge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},vge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},mge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},yge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},bge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},wge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},T1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Kr("tooltip");return t.state==="pass"?(ce(),xe("div",gge)):t.failedSnapshot?gt((ce(),xe("div",vge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(ce(),xe("div",mge)):t.mode==="todo"?gt((ce(),xe("div",yge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((ce(),xe("div",bge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ce(),xe("div",wge))}}});function xge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function _ge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function Sge(e){const t=e.map(o=>_ge(o)),r=xge(t);return t.map(({raw:o,id:s})=>k1({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 kge(e,t){return k1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Tge(e,t){if(!e)return w0({});const r=Sge(e.externalized),o=e.inlined.map(d=>kge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return age({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return w0({nodes:s,links:f})}const Cge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Ege={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Age={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Lge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Mge={class:"flex text-lg"},Nge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},$ge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Oge={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Rge={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Pge=["flex-1"],Ige=ut({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=Se(()=>{const A=Jt.value;if(!(!A||!A.filepath))return{filepath:A.filepath,projectName:A.file.projectName||""}}),h=Se(()=>Jt.value&&qh(Jt.value)),p=Se(()=>{var A,R;return!!((R=(A=Jt.value)==null?void 0:A.meta)!=null&&R.typecheck)});function v(){var R;const A=(R=Jt.value)==null?void 0:R.filepath;A&&fetch(`/__open-in-editor?file=${encodeURIComponent(A)}`)}function m(A){A==="graph"&&(o.value=!0),Zn.value=A}const b=Se(()=>{var A;return((A=Iw.value)==null?void 0:A.reduce((R,{size:M})=>R+M,0))??0});function w(A){r.value=A}const E=/[/\\]node_modules[/\\]/;async function N(A=!1){var R;if(!(s.value||((R=d.value)==null?void 0:R.filepath)===c.value&&!A)){s.value=!0,await Tt();try{const M=d.value;if(!M){s.value=!1;return}if(A||!c.value||M.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let B=await mt.rpc.getModuleGraph(M.projectName,M.filepath,!!Po);f.value&&(Cr&&(B=typeof window.structuredClone<"u"?window.structuredClone(B):GC(B)),B.inlined=B.inlined.filter(V=>!E.test(V)),B.externalized=B.externalized.filter(V=>!E.test(V))),t.value=Tge(B,M.filepath),c.value=M.filepath}m("graph")}finally{await new Promise(M=>setTimeout(M,100)),s.value=!1}}}Hh(()=>[d.value,Zn.value,f.value],([,A,R],M)=>{A==="graph"&&N(M&&R!==M[2])},{debounce:100,immediate:!0});const T=Se(()=>{var A;return lw((A=Jt.value)==null?void 0:A.file.projectName)}),L=Se(()=>{switch(T.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(A,R)=>{var re,$,P,O;const M=T1,B=bi,V=pge,G=Jce,ee=qce,ne=Dce,K=Kr("tooltip");return U(Jt)?(ce(),xe("div",Cge,[ie("div",null,[ie("div",Ege,[Oe(M,{state:(re=U(Jt).result)==null?void 0:re.state,mode:U(Jt).mode,"failed-snapshot":U(h)},null,8,["state","mode","failed-snapshot"]),U(p)?gt((ce(),xe("div",Age,null,512)),[[K,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),($=U(Jt))!=null&&$.file.projectName?(ce(),xe("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:en({backgroundColor:U(T),color:U(L)})},Be(U(Jt).file.projectName),5)):Ye("",!0),ie("div",Lge,Be((P=U(Jt))==null?void 0:P.name),1),ie("div",Mge,[U(Cr)?Ye("",!0):gt((ce(),nt(B,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=U(Jt))!=null&&O.filepath),onClick:v},null,8,["disabled"])),[[K,"Open in editor",void 0,{bottom:!0}]])])]),ie("div",Nge,[ie("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==null}]),"data-testid":"btn-report",onClick:R[0]||(R[0]=S=>m(null))},R[5]||(R[5]=[ie("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),ie("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==="graph"}]),onClick:R[1]||(R[1]=S=>m("graph"))},[U(s)?(ce(),xe("span",$ge)):(ce(),xe("span",Oge)),R[6]||(R[6]=pt(" Module Graph "))],2),ie("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==="editor"}]),onClick:R[2]||(R[2]=S=>m("editor"))},[R[7]||(R[7]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+Be(U(r)?"* ":"")+"Code ",1)],2),ie("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==="console",op20:U(Zn)!=="console"&&U(b)===0}]),onClick:R[3]||(R[3]=S=>m("console"))},[R[8]||(R[8]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+Be(U(b))+") ",1)],2)])]),ie("div",Rge,[U(o)?(ce(),xe("div",{key:0,"flex-1":U(Zn)==="graph"&&""},[gt(Oe(V,{modelValue:U(f),"onUpdate:modelValue":R[4]||(R[4]=S=>Ct(f)?f.value=S:null),graph:U(t),"data-testid":"graph","project-name":U(Jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ji,U(Zn)==="graph"&&!U(s)]])],8,Pge)):Ye("",!0),U(Zn)==="editor"?(ce(),nt(G,{key:U(Jt).id,file:U(Jt),"data-testid":"editor",onDraft:w},null,8,["file"])):U(Zn)==="console"?(ce(),nt(ee,{key:2,file:U(Jt),"data-testid":"console"},null,8,["file"])):U(Zn)?Ye("",!0):(ce(),nt(ne,{key:3,file:U(Jt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),Dge={h:"full",flex:"~ col"},zge={"flex-auto":"","py-1":"","bg-white":""},Fge=["src"],Hge=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ce(),xe("div",Dge,[r[0]||(r[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon:folder-details-reference"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ie("div",zge,[ie("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Fge)])]))}}),Bge={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Wge={"font-bold":""},qge={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Uge=["font-bold"],jge={text:"red500/70"},Vge={key:1,text:"sm","mb-2":""},Gge={"font-bold":""},Kge={key:2,text:"sm","mb-2":""},Xge={"font-bold":""},Yge={key:3,text:"sm","font-thin":""},Zge=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return ce(),xe(ct,null,[ie("h4",Bge,[ie("span",Wge,[pt(Be(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(ce(),xe(ct,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+Be(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(ce(),xe("p",qge,[(ce(!0),xe(ct,null,hi(t.error.stacks,(s,c)=>(ce(),xe("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+Be(s.method)+" "+Be(s.file)+":",1),ie("span",jge,Be(s.line)+":"+Be(s.column),1),r[0]||(r[0]=ie("br",null,null,-1))],8,Uge))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(ce(),xe("p",Vge,[r[1]||(r[1]=pt(" This error originated in ")),ie("span",Gge,Be(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Ye("",!0),t.error.VITEST_TEST_NAME?(ce(),xe("p",Kge,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),ie("span",Xge,Be(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=ie("br",null,null,-1)),r[6]||(r[6]=ie("ul",null,[ie("li",null," The error was thrown, while Vitest was running this test. "),ie("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(ce(),xe("p",Yge,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),ie("br",null,null,-1),ie("ul",null,[ie("li",null," Cancel timeouts using clearTimeout and clearInterval. "),ie("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ye("",!0)],64)}}}),Jge={"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:""},Qge={class:"number","data-testid":"num-files"},eve={class:"number"},tve={class:"number","text-red5":""},nve={class:"number","text-red5":""},rve={class:"number","text-red5":""},ive={class:"number","data-testid":"run-time"},ove={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},sve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},lve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},ave=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Zge;return ce(),xe(ct,null,[ie("div",Jge,[r[8]||(r[8]=ie("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ie("div",null,"Files",-1)),ie("div",Qge,Be(U(Me).summary.files),1),U(Me).summary.filesSuccess?(ce(),xe(ct,{key:0},[r[0]||(r[0]=ie("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ie("div",null,"Pass",-1)),ie("div",eve,Be(U(Me).summary.filesSuccess),1)],64)):Ye("",!0),U(Me).summary.filesFailed?(ce(),xe(ct,{key:1},[r[2]||(r[2]=ie("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ie("div",null," Fail ",-1)),ie("div",tve,Be(U(Me).summary.filesFailed),1)],64)):Ye("",!0),U(Me).summary.filesSnapshotFailed?(ce(),xe(ct,{key:2},[r[4]||(r[4]=ie("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ie("div",null," Snapshot Fail ",-1)),ie("div",nve,Be(U(Me).summary.filesSnapshotFailed),1)],64)):Ye("",!0),U(Wi).length?(ce(),xe(ct,{key:3},[r[6]||(r[6]=ie("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ie("div",null," Errors ",-1)),ie("div",rve,Be(U(Wi).length),1)],64)):Ye("",!0),r[10]||(r[10]=ie("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ie("div",null,"Time",-1)),ie("div",ive,Be(U(Me).summary.time),1)]),U(Wi).length?(ce(),xe("div",ove,[r[15]||(r[15]=ie("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ie("p",sve,[pt(" Vitest caught "+Be(U(Wi).length)+" error"+Be(U(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ie("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),ie("details",lve,[r[14]||(r[14]=ie("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ce(!0),xe(ct,null,hi(U(Wi),(s,c)=>(ce(),nt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),cve=yi(ave,[["__scopeId","data-v-0178ddee"]]),uve={"p-2":"","text-center":"",flex:""},fve={"text-4xl":"","min-w-2em":""},dve={"text-md":""},hve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(ce(),xe("div",uve,[ie("div",null,[ie("div",fve,[yn(t.$slots,"body")]),ie("div",dve,[yn(t.$slots,"header")])])]))}}),pve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},gve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=hve;return ce(),xe("div",pve,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(Be(U(Me).summary.testsSuccess),1)]),_:1}),Oe(o,{class:it({"text-red5":U(Me).summary.testsFailed,op50:!U(Me).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(Be(U(Me).summary.testsFailed),1)]),_:1},8,["class"]),U(Me).summary.testsSkipped?(ce(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(Be(U(Me).summary.testsSkipped),1)]),_:1})):Ye("",!0),U(Me).summary.testsTodo?(ce(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(Be(U(Me).summary.testsTodo),1)]),_:1})):Ye("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(Be(U(Me).summary.totalTests),1)]),_:1})])}}}),vve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},mve={key:0,class:"text-gray-5"},yve={"aria-labelledby":"tests",m:"y-4 x-2"},bve=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=gve,s=cve;return ce(),xe("div",vve,[U(Me).summary.files===0&&U(ms)?(ce(),xe("div",mve," No tests found ")):Ye("",!0),ie("section",yve,[Oe(o)]),Oe(s)])}}}),wve={},xve={h:"full",flex:"~ col"},_ve={class:"scrolls","flex-auto":"","py-1":""};function Sve(e,t){const r=bve;return ce(),xe("div",xve,[t[0]||(t[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon-dashboard"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ie("div",_ve,[Oe(r)])])}const kve=yi(wve,[["render",Sve]]),Tve=["open"],Cve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(ce(),xe("div",{open:U(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ie("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:it(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),yn(r.$slots,"summary",{open:U(t)}),o[2]||(o[2]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),yn(r.$slots,"default")],40,Tve))}}),Eve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Ave={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(ce(),xe("button",Eve,[ie("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Lve=["aria-label","data-current"],Mve={key:1,"w-4":""},Nve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},$ve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Ove={"text-sm":"",truncate:"","font-light":""},Rve=["text","innerHTML"],Pve={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Ive={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Dve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},zve={key:1},Fve=ut({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>mt.state.idMap.get(e.taskId)),r=Se(()=>{if(Cr)return!1;const T=t.value;return T&&qh(T)});function o(){var T;if(!e.expandable){(T=e.onItemClick)==null||T.call(e,t.value);return}e.opened?Me.collapseNode(e.taskId):Me.expandNode(e.taskId)}async function s(T){var L;(L=e.onItemClick)==null||L.call(e,T),bs.value&&(ru.value=!0,await Tt()),e.type==="file"?await Vh([T.file]):await ece(T)}function c(T){return mt.rpc.updateSnapshot(T.file)}const f=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(T,L)=>`${e.taskId}-${L}`)),d=Se(()=>{const T=f.value,L=[];return(e.type==="file"||e.type==="suite")&&L.push("min-content"),L.push("min-content"),e.type==="suite"&&e.typecheck&&L.push("min-content"),L.push("minmax(0, 1fr)"),L.push("min-content"),`grid-template-columns: ${T.map(()=>"1rem").join(" ")} ${L.join(" ")};`}),h=Se(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>ow(e.name)),v=Se(()=>{const T=wE.value,L=p.value;return T?L.replace(T,A=>`<span class="highlight">${A}</span>`):L}),m=Se(()=>e.type!=="file"&&e.disableTaskLocation),b=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>m.value?"color-red5 dark:color-#f43f5e":null);function E(){var L;const T=t.value;e.type==="file"?(L=e.onItemClick)==null||L.call(e,T):Zce(T)}const N=Se(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,L)=>{const A=T1,R=Ave,M=bi,B=Kr("tooltip");return U(t)?(ce(),xe("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:en(U(d)),"aria-label":T.name,"data-current":T.current,onClick:L[2]||(L[2]=V=>o())},[T.indent>0?(ce(!0),xe(ct,{key:0},hi(U(f),V=>(ce(),xe("div",{key:V,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),T.type==="file"||T.type==="suite"?(ce(),xe("div",Mve,[ie("div",{class:it(T.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Oe(A,{state:T.state,mode:U(t).mode,"failed-snapshot":U(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),ie("div",Nve,[T.type==="file"&&T.typecheck?gt((ce(),xe("div",$ve,null,512)),[[B,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),ie("span",Ove,[T.type==="file"&&T.projectName?(ce(),xe("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:en({backgroundColor:T.projectNameColor,color:U(N)})},Be(T.projectName),5)):Ye("",!0),ie("span",{text:T.state==="fail"?"red-500":"",innerHTML:U(v)},null,8,Rve)]),typeof T.duration=="number"?(ce(),xe("span",Pve,Be(T.duration>0?T.duration:"< 1")+"ms ",1)):Ye("",!0)]),ie("div",Ive,[!U(Cr)&&U(r)?gt((ce(),nt(R,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:L[0]||(L[0]=Lc(V=>c(U(t)),["prevent","stop"]))},null,512)),[[B,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Oe(U(Ob),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",U(w)])},{popper:rt(()=>[U(m)?(ce(),xe("div",Dve,[L[5]||(L[5]=ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ie("div",null,[pt(Be(U(b))+": this feature is not available, you have disabled ",1),L[3]||(L[3]=ie("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),L[4]||(L[4]=pt(" in your configuration file."))]),L[6]||(L[6]=ie("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ce(),xe("div",zve,Be(U(b)),1))]),default:rt(()=>[Oe(M,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Lc(E,["prevent","stop"])})]),_:1},8,["class"]),U(Cr)?Ye("",!0):gt((ce(),nt(M,{key:1,"data-testid":"btn-run-test",title:U(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:L[1]||(L[1]=Lc(V=>s(U(t)),["prevent","stop"]))},null,8,["title"])),[[B,U(h),void 0,{bottom:!0}]])])],12,Lve)):Ye("",!0)}}}),Hve=yi(Fve,[["__scopeId","data-v-0f30dec3"]]),Bve={"flex-1":"","ms-2":"","select-none":""},Wve=ut({__name:"FilterStatus",props:Gl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Tu(e,"modelValue");return(r,o)=>(ce(),xe("label",di({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Lc(s=>t.value=!t.value,["prevent"]))}),[ie("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(ie("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[ub,t.value]]),ie("span",Bve,Be(r.label),1)],16))}});function qve(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ic;function oh(){oh.init||(oh.init=!0,Ic=qve()!==-1)}var Wu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){oh(),Tt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ic&&this.$el.appendChild(e),e.data="about:blank",Ic||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ic&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Uve=xy();by("data-v-b329ee4c");const jve={class:"resize-observer",tabindex:"-1"};wy();const Vve=Uve((e,t,r,o,s,c)=>(ce(),nt("div",jve)));Wu.render=Vve;Wu.__scopeId="data-v-b329ee4c";Wu.__file="src/components/ResizeObserver.vue";function Dc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dc=function(t){return typeof t}:Dc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Gve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kve(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xve(e,t,r){return t&&Kve(e.prototype,t),e}function x0(e){return Yve(e)||Zve(e)||Jve(e)||Qve()}function Yve(e){if(Array.isArray(e))return sh(e)}function Zve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Jve(e,t){if(e){if(typeof e=="string")return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sh(e,t)}}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Qve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function tme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(x0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(x0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function C1(e,t){if(e===t)return!0;if(Dc(e)==="object"){for(var r in e)if(!C1(e[r],t[r]))return!1;return!0}return!1}var nme=function(){function e(t,r,o){Gve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Xve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=eme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=tme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Tt(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function E1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new nme(e,o,r);e._vue_visibilityState=s}}function rme(e,t,r){var o=t.value,s=t.oldValue;if(!C1(o,s)){var c=e._vue_visibilityState;if(!o){A1(e);return}c?c.createObserver(o,r):E1(e,{value:o},r)}}function A1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ime={beforeMount:E1,updated:rme,unmounted:A1},ome={itemsLimit:1e3},sme=/(auto|scroll)/;function L1(e,t){return e.parentNode===null?t:L1(e.parentNode,t.concat([e]))}var dd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},lme=function(t){return dd(t,"overflow")+dd(t,"overflow-y")+dd(t,"overflow-x")},ame=function(t){return sme.test(lme(t))};function _0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=L1(e.parentNode,[]),r=0;r<t.length;r+=1)if(ame(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}var cme={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function ume(){return this.items.length&&lh(this.items[0])!=="object"}var ah=!1;if(typeof window<"u"){ah=!1;try{var fme=Object.defineProperty({},"passive",{get:function(){ah=!0}});window.addEventListener("test",null,fme)}catch{}}let dme=0;var ip={name:"RecycleScroller",components:{ResizeObserver:Wu},directives:{ObserveVisibility:ime},props:{...cme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:ume,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Sh({id:dme++,index:t,used:!0,key:o,type:s}),f=wh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let N,T,L,A,R;if(!p)N=T=A=R=L=0;else if(this.$_prerender)N=A=0,T=R=Math.min(this.prerender,h.length),L=null;else{const K=this.getScroll();if(t){let P=K.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),r===null&&P<c||P<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=K.start;const re=this.buffer;K.start-=re,K.end+=re;let $=0;if(this.$refs.before&&($=this.$refs.before.scrollHeight,K.start-=$),this.$refs.after){const P=this.$refs.after.scrollHeight;K.end+=P}if(r===null){let P,O=0,S=p-1,F=~~(p/2),j;do j=F,P=v[F].accumulator,P<K.start?O=F:F<p-1&&v[F+1].accumulator>K.start&&(S=F),F=~~((O+S)/2);while(F!==j);for(F<0&&(F=0),N=F,L=v[p-1].accumulator,T=F;T<p&&v[T].accumulator<K.end;T++);for(T===-1?T=h.length-1:(T++,T>p&&(T=p)),A=N;A<p&&$+v[A].accumulator<K.start;A++);for(R=A;R<p&&$+v[R].accumulator<K.end;R++);}else{N=~~(K.start/r*o);const P=N%o;N-=P,T=Math.ceil(K.end/r*o),A=Math.max(0,Math.floor((K.start-$)/r*o)),R=Math.floor((K.end-$)/r*o),N<0&&(N=0),T>p&&(T=p),A<0&&(A=0),R>p&&(R=p),L=Math.ceil(p/o)*r}}T-N>ome.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let M;const B=N<=this.$_endIndex&&T>=this.$_startIndex;if(B)for(let K=0,re=w.length;K<re;K++)M=w[K],M.nr.used&&(e&&(M.nr.index=E[M.item[d]]),(M.nr.index==null||M.nr.index<N||M.nr.index>=T)&&this.unuseView(M));const V=B?null:new Map;let G,ee,ne;for(let K=N;K<T;K++){G=h[K];const re=d?G[d]:G;if(re==null)throw new Error(`Key is ${re} on item (keyField is '${d}')`);if(M=m.get(re),!r&&!v[K].size){M&&this.unuseView(M);continue}ee=G[f];let $=b.get(ee),P=!1;if(!M)B?$&&$.length?M=$.pop():M=this.addView(w,K,G,re,ee):(ne=V.get(ee)||0,(!$||ne>=$.length)&&(M=this.addView(w,K,G,re,ee),this.unuseView(M,!0),$=b.get(ee)),M=$[ne],V.set(ee,ne+1)),m.delete(M.nr.key),M.nr.used=!0,M.nr.index=K,M.nr.key=re,M.nr.type=ee,m.set(re,M),P=!0;else if(!M.nr.used&&(M.nr.used=!0,P=!0,$)){const O=$.indexOf(M);O!==-1&&$.splice(O,1)}M.item=G,P&&(K===h.length-1&&this.$emit("scroll-end"),K===0&&this.$emit("scroll-start")),r===null?(M.position=v[K-1].accumulator,M.offset=0):(M.position=Math.floor(K/o)*r,M.offset=K%o*s)}return this.$_startIndex=N,this.$_endIndex=T,this.emitUpdate&&this.$emit("update",N,T,A,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=_0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ah?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=_0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const hme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},pme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function gme(e,t,r,o,s,c){const f=Ro("ResizeObserver"),d=Kr("observe-visibility");return gt((ce(),xe("div",{class:it(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(ce(),xe("div",hme,[yn(e.$slots,"before")],512)):Ye("v-if",!0),(ce(),nt(kd(r.listTag),{ref:"wrapper",style:en({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(ce(!0),xe(ct,null,hi(s.pool,h=>(ce(),nt(kd(r.itemTag),di({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},JS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[yn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),yn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ce(),xe("div",pme,[yn(e.$slots,"after")],512)):Ye("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}ip.render=gme;ip.__file="src/components/RecycleScroller.vue";function vme(e){const t=Se(()=>Wd.value?!1:!Qe.onlyTests),r=Se(()=>qn.value===""),o=Ue(qn.value);Hh(()=>qn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;qn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Qe.failed=!1,Qe.success=!1,Qe.skipped=!1,Qe.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Is.value&&(un.value.search=(h==null?void 0:h.trim())??"",un.value.failed=p,un.value.success=v,un.value.skipped=m,un.value.onlyTests=b)}return xt(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Me.filterNodes()},{flush:"post"}),xt(()=>Mr.value.length,h=>{h&&(un.value.expandAll=void 0)},{flush:"post"}),{initialized:Is,filter:Qe,search:qn,disableFilter:t,isFiltered:sw,isFilteredByStatus:Wd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Pu,testsTotal:xE,uiEntries:Kn}}const mme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},yme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},bme=["op"],wme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},xme={"text-red5":""},_me={"text-yellow5":""},Sme={"text-green5":""},kme={class:"text-purple5:50"},Tme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Cme=["disabled"],Eme=["disabled"],Ame={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Lme=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Se(()=>zu.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:N,testsTotal:T,uiEntries:L}=vme(s),A=Ue("grid-cols-2"),R=Ue("grid-col-span-2"),M=Ue();return rw(()=>M.value,([{contentRect:B}])=>{B.width<420?(A.value="grid-cols-2",R.value="grid-col-span-2"):(A.value="grid-cols-4",R.value="grid-col-span-4")}),(B,V)=>{const G=bi,ee=Wve,ne=Hve,K=Cve,re=Kr("tooltip");return ce(),xe("div",{ref_key:"testExplorerRef",ref:M,h:"full",flex:"~ col"},[ie("div",null,[ie("div",mme,[yn(B.$slots,"header",{filteredFiles:U(p)||U(v)?U(N):void 0})]),ie("div",yme,[V[13]||(V[13]=ie("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(ie("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":V[0]||(V[0]=$=>Ct(d)?d.value=$:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:U(d).length?"100":"50",onKeydown:[V[1]||(V[1]=Od($=>U(w)(!1),["esc"])),V[2]||(V[2]=Od($=>r("run",U(p)||U(v)?U(N):void 0),["enter"]))]},null,40,bme),[[mT,U(d)]]),gt(Oe(G,{disabled:U(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:V[3]||(V[3]=$=>U(w)(!0))},null,8,["disabled"]),[[re,"Clear search",void 0,{bottom:!0}]])]),ie("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(U(A))},[ie("div",{class:it(U(R)),flex:"~ gap-2 items-center"},[V[14]||(V[14]=ie("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),V[15]||(V[15]=ie("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Oe(G,{disabled:U(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:V[4]||(V[4]=$=>U(E)(!1))},null,8,["disabled"]),[[re,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(ee,{modelValue:U(f).failed,"onUpdate:modelValue":V[5]||(V[5]=$=>U(f).failed=$),label:"Fail"},null,8,["modelValue"]),Oe(ee,{modelValue:U(f).success,"onUpdate:modelValue":V[6]||(V[6]=$=>U(f).success=$),label:"Pass"},null,8,["modelValue"]),Oe(ee,{modelValue:U(f).skipped,"onUpdate:modelValue":V[7]||(V[7]=$=>U(f).skipped=$),label:"Skip"},null,8,["modelValue"]),Oe(ee,{modelValue:U(f).onlyTests,"onUpdate:modelValue":V[8]||(V[8]=$=>U(f).onlyTests=$),label:"Only Tests"},null,8,["modelValue"])],2)]),ie("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:V[12]||(V[12]=(...$)=>U(im)&&U(im)(...$))},[Oe(K,null,ZS({default:rt(()=>[(U(p)||U(v))&&U(L).length===0?(ce(),xe(ct,{key:0},[U(c)?(ce(),xe("div",Tme,[V[18]||(V[18]=ie("div",{op30:""}," No matched test ",-1)),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(U(m)?null:"hover:op100"),disabled:U(m),onClickPassive:V[9]||(V[9]=$=>U(w)(!0))}," Clear Search ",42,Cme),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(U(h)?null:"hover:op100"),disabled:U(h),onClickPassive:V[10]||(V[10]=$=>U(E)(!0))}," Clear Filter ",42,Eme),ie("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:V[11]||(V[11]=(...$)=>U(b)&&U(b)(...$))}," Clear All ",32)])):(ce(),xe("div",Ame,V[19]||(V[19]=[ie("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ie("div",{op30:""}," Loading... ",-1)])))],64)):(ce(),nt(U(ip),{key:1,"page-mode":"","key-field":"id","item-size":28,items:U(L),buffer:100},{default:rt(({item:$})=>[Oe(ne,{class:it(["h-28px m-0 p-0",U(eo)===$.id?"bg-active":""]),"task-id":$.id,expandable:$.expandable,type:$.type,current:U(eo)===$.id,indent:$.indent,name:$.name,typecheck:$.typecheck===!0,"project-name":$.projectName??"","project-name-color":$.projectNameColor??"",state:$.state,duration:$.duration,opened:$.expanded,"disable-task-location":!U(o),"on-item-click":B.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[U(c)?{name:"summary",fn:rt(()=>[ie("div",wme,[ie("span",xme," FAIL ("+Be(U(T).failed)+") ",1),V[16]||(V[16]=ie("span",null,"/",-1)),ie("span",_me," RUNNING ("+Be(U(T).running)+") ",1),ie("span",Sme," PASS ("+Be(U(T).success)+") ",1),V[17]||(V[17]=ie("span",null,"/",-1)),ie("span",kme," SKIP ("+Be(U(f).onlyTests?U(T).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Mme=""+new URL("../favicon.svg",import.meta.url).href,Nme={class:"flex text-lg"},$me=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=Se(()=>Ta.value?"light":"dark");async function o(f){bs.value&&(ru.value=!0,await Tt(),to.value&&(iu(!0),await Tt())),f!=null&&f.length?await Vh(f):await Jae()}function s(){Me.collapseAllNodes()}function c(){Me.expandAllNodes()}return(f,d)=>{const h=bi,p=Lme,v=Kr("tooltip");return ce(),nt(p,{border:"r base","on-item-click":U(YE),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=ie("img",{"w-6":"","h-6":"",src:Mme,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ie("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ie("div",Nme,[gt(Oe(h,{title:"Collapse tests",disabled:!U(Is),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[ji,!U(mm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Oe(h,{disabled:!U(Is),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[ji,U(mm)],[v,"Expand tests",void 0,{bottom:!0}]]),gt(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>U(iu)(!0))},null,512),[[ji,U(jd)&&!U(bs)||!U(Ls)],[v,"Dashboard",void 0,{bottom:!0}]]),U(jd)&&!U(bs)?(ce(),nt(U(Ob),{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:rt(()=>d[6]||(d[6]=[ie("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ie("div",null,"Coverage enabled but missing html reporter."),ie("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=ie("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ye("",!0),U(bs)?gt((ce(),nt(h,{key:1,disabled:U(ru),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>U(ZE)())},null,8,["disabled"])),[[ji,!U(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),U(Me).summary.failedSnapshot&&!U(Cr)?gt((ce(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!U(Me).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>U(Me).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),U(Cr)?Ye("",!0):gt((ce(),nt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),gt(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>U(kce)())},null,512),[[v,`Toggle to ${U(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Ome={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Rme=ut({__name:"ProgressBar",setup(e){const{width:t}=iw(),r=Se(()=>[Me.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ms.value&&"in-progress"].filter(Boolean).join(" ")),o=Se(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesSuccess/d:0}),s=Se(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesFailed/d:0}),c=Se(()=>Me.summary.files-Me.summary.filesFailed-Me.summary.filesSuccess),f=Se(()=>{const d=Me.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ce(),xe("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:it(U(r))},[ie("div",Ome,[ie("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(U(r)),style:en(`width: ${U(s)}px;`)}," ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(U(r)),style:en(`left: ${U(s)}px; width: ${U(o)}px;`)}," ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(U(r)),style:en(`left: ${U(o)+U(s)}px; width: ${U(f)}px;`)}," ",6)])],2))}}),Pme=yi(Rme,[["__scopeId","data-v-16879415"]]),S0={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const r=t,o=e,s=ek(),c=Ue([]),f=Se(()=>c.value.reduce((te,z)=>(te[~~z.id]=z)&&te,{})),d=Se(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=Se(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),w=()=>{document.addEventListener("mousemove",T,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",L))},E=()=>{document.removeEventListener("mousemove",T,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",T,{passive:!1}),document.removeEventListener("touchend",L))},N=(te,z)=>{const J=te.target.closest(".splitpanes__splitter");if(J){const{left:X,top:le}=J.getBoundingClientRect(),{clientX:pe,clientY:I}="ontouchstart"in window&&te.touches?te.touches[0]:te;v.value.cursorOffset=o.horizontal?I-le:pe-X}w(),v.value.mouseDown=!0,v.value.activeSplitter=z},T=te=>{v.value.mouseDown&&(te.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{G(B(te)),r("resize",c.value.map(z=>({min:z.min,max:z.max,size:z.size})))}))},L=()=>{v.value.dragging&&r("resized",c.value.map(te=>({min:te.min,max:te.max,size:te.size}))),v.value.mouseDown=!1,setTimeout(()=>{v.value.dragging=!1,E()},100)},A=(te,z)=>{"ontouchstart"in window&&(te.preventDefault(),o.dblClickSplitter&&(m.value.splitter===z?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,R(te,z),m.value.splitter=null):(m.value.splitter=z,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),v.value.dragging||r("splitter-click",c.value[z])},R=(te,z)=>{let J=0;c.value=c.value.map((X,le)=>(X.size=le===z?X.max:X.min,le!==z&&(J+=X.min),X)),c.value[z].size-=J,r("pane-maximize",c.value[z]),r("resized",c.value.map(X=>({min:X.min,max:X.max,size:X.size})))},M=(te,z)=>{r("pane-click",f.value[z])},B=te=>{const z=h.value.getBoundingClientRect(),{clientX:J,clientY:X}="ontouchstart"in window&&te.touches?te.touches[0]:te;return{x:J-(o.horizontal?0:v.value.cursorOffset)-z.left,y:X-(o.horizontal?v.value.cursorOffset:0)-z.top}},V=te=>{te=te[o.horizontal?"y":"x"];const z=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(te=z-te),te*100/z},G=te=>{const z=v.value.activeSplitter;let J={prevPanesSize:ne(z),nextPanesSize:K(z),prevReachedMinPanes:0,nextReachedMinPanes:0};const X=0+(o.pushOtherPanes?0:J.prevPanesSize),le=100-(o.pushOtherPanes?0:J.nextPanesSize),pe=Math.max(Math.min(V(te),le),X);let I=[z,z+1],H=c.value[I[0]]||null,Y=c.value[I[1]]||null;const ue=H.max<100&&pe>=H.max+J.prevPanesSize,he=Y.max<100&&pe<=100-(Y.max+K(z+1));if(ue||he){ue?(H.size=H.max,Y.size=Math.max(100-H.max-J.prevPanesSize-J.nextPanesSize,0)):(H.size=Math.max(100-Y.max-J.prevPanesSize-K(z+1),0),Y.size=Y.max);return}if(o.pushOtherPanes){const de=ee(J,pe);if(!de)return;({sums:J,panesToResize:I}=de),H=c.value[I[0]]||null,Y=c.value[I[1]]||null}H!==null&&(H.size=Math.min(Math.max(pe-J.prevPanesSize-J.prevReachedMinPanes,H.min),H.max)),Y!==null&&(Y.size=Math.min(Math.max(100-pe-J.nextPanesSize-J.nextReachedMinPanes,Y.min),Y.max))},ee=(te,z)=>{const J=v.value.activeSplitter,X=[J,J+1];return z<te.prevPanesSize+c.value[X[0]].min&&(X[0]=re(J).index,te.prevReachedMinPanes=0,X[0]<J&&c.value.forEach((le,pe)=>{pe>X[0]&&pe<=J&&(le.size=le.min,te.prevReachedMinPanes+=le.min)}),te.prevPanesSize=ne(X[0]),X[0]===void 0)?(te.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((le,pe)=>{pe>0&&pe<=J&&(le.size=le.min,te.prevReachedMinPanes+=le.min)}),c.value[X[1]].size=100-te.prevReachedMinPanes-c.value[0].min-te.prevPanesSize-te.nextPanesSize,null):z>100-te.nextPanesSize-c.value[X[1]].min&&(X[1]=$(J).index,te.nextReachedMinPanes=0,X[1]>J+1&&c.value.forEach((le,pe)=>{pe>J&&pe<X[1]&&(le.size=le.min,te.nextReachedMinPanes+=le.min)}),te.nextPanesSize=K(X[1]-1),X[1]===void 0)?(te.nextReachedMinPanes=0,c.value.forEach((le,pe)=>{pe<d.value-1&&pe>=J+1&&(le.size=le.min,te.nextReachedMinPanes+=le.min)}),c.value[X[0]].size=100-te.prevPanesSize-K(X[0]-1),null):{sums:te,panesToResize:X}},ne=te=>c.value.reduce((z,J,X)=>z+(X<te?J.size:0),0),K=te=>c.value.reduce((z,J,X)=>z+(X>te+1?J.size:0),0),re=te=>[...c.value].reverse().find(z=>z.index<te&&z.size>z.min)||{},$=te=>c.value.find(z=>z.index>te+1&&z.size>z.min)||{},P=()=>{var te;Array.from(((te=h.value)==null?void 0:te.children)||[]).forEach(z=>{const J=z.classList.contains("splitpanes__pane"),X=z.classList.contains("splitpanes__splitter");!J&&!X&&(z.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},O=(te,z,J=!1)=>{const X=te-1,le=document.createElement("div");le.classList.add("splitpanes__splitter"),J||(le.onmousedown=pe=>N(pe,X),typeof window<"u"&&"ontouchstart"in window&&(le.ontouchstart=pe=>N(pe,X)),le.onclick=pe=>A(pe,X+1)),o.dblClickSplitter&&(le.ondblclick=pe=>R(pe,X+1)),z.parentNode.insertBefore(le,z)},S=te=>{te.onmousedown=void 0,te.onclick=void 0,te.ondblclick=void 0,te.remove()},F=()=>{var te;const z=Array.from(((te=h.value)==null?void 0:te.children)||[]);z.forEach(X=>{X.className.includes("splitpanes__splitter")&&S(X)});let J=0;z.forEach(X=>{X.className.includes("splitpanes__pane")&&(!J&&o.firstSplitter?O(J,X,!0):J&&O(J,X),J++)})},j=({uid:te,...z})=>{const J=f.value[te];Object.entries(z).forEach(([X,le])=>J[X]=le)},se=te=>{var z;let J=-1;Array.from(((z=h.value)==null?void 0:z.children)||[]).some(X=>(X.className.includes("splitpanes__pane")&&J++,X.isSameNode(te.el))),c.value.splice(J,0,{...te,index:J}),c.value.forEach((X,le)=>X.index=le),p.value&&Tt(()=>{F(),_e({addedPane:c.value[J]}),r("pane-add",{index:J,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},me=te=>{const z=c.value.findIndex(X=>X.id===te),J=c.value.splice(z,1)[0];c.value.forEach((X,le)=>X.index=le),Tt(()=>{F(),_e({removedPane:{...J}}),r("pane-remove",{removed:J,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},_e=(te={})=>{!te.addedPane&&!te.removedPane?qe():c.value.some(z=>z.givenSize!==null||z.min||z.max<100)?Ze(te):Pe(),p.value&&r("resized",c.value.map(z=>({min:z.min,max:z.max,size:z.size})))},Pe=()=>{const te=100/d.value;let z=0;const J=[],X=[];c.value.forEach(le=>{le.size=Math.max(Math.min(te,le.max),le.min),z-=le.size,le.size>=le.max&&J.push(le.id),le.size<=le.min&&X.push(le.id)}),z>.1&&Ke(z,J,X)},qe=()=>{let te=100;const z=[],J=[];let X=0;c.value.forEach(pe=>{te-=pe.size,pe.givenSize!==null&&X++,pe.size>=pe.max&&z.push(pe.id),pe.size<=pe.min&&J.push(pe.id)});let le=100;te>.1&&(c.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(te/(d.value-X),pe.max),pe.min)),le-=pe.size}),le>.1&&Ke(le,z,J))},Ze=({addedPane:te,removedPane:z}={})=>{let J=100/d.value,X=0;const le=[],pe=[];((te==null?void 0:te.givenSize)??null)!==null&&(J=(100-te.givenSize)/(d.value-1).value),c.value.forEach(I=>{X-=I.size,I.size>=I.max&&le.push(I.id),I.size<=I.min&&pe.push(I.id)}),!(Math.abs(X)<.1)&&(c.value.forEach(I=>{(te==null?void 0:te.givenSize)!==null&&(te==null?void 0:te.id)===I.id||(I.size=Math.max(Math.min(J,I.max),I.min)),X-=I.size,I.size>=I.max&&le.push(I.id),I.size<=I.min&&pe.push(I.id)}),X>.1&&Ke(X,le,pe))},Ke=(te,z,J)=>{let X;te>0?X=te/(d.value-z.length):X=te/(d.value-J.length),c.value.forEach((le,pe)=>{if(te>0&&!z.includes(le.id)){const I=Math.max(Math.min(le.size+X,le.max),le.min),H=I-le.size;te-=H,le.size=I}else if(!J.includes(le.id)){const I=Math.max(Math.min(le.size+X,le.max),le.min),H=I-le.size;te-=H,le.size=I}}),Math.abs(te)>.1&&Tt(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};xt(()=>o.firstSplitter,()=>F()),xt(()=>o.dblClickSplitter,te=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((z,J)=>{z.ondblclick=te?X=>R(X,J):void 0})}),ya(()=>p.value=!1),so(()=>{P(),F(),_e(),r("ready"),p.value=!0});const Xe=()=>{var te;return wa("div",{ref:h,class:b.value},(te=s.default)==null?void 0:te.call(s))};return xr("panes",c),xr("indexedPanes",f),xr("horizontal",Se(()=>o.horizontal)),xr("requestUpdate",j),xr("onPaneAdd",se),xr("onPaneRemove",me),xr("onPaneClick",M),(te,z)=>(ce(),nt(kd(Xe)))}},kc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=mn("requestUpdate"),s=mn("onPaneAdd"),c=mn("horizontal"),f=mn("onPaneRemove"),d=mn("onPaneClick"),h=(t=Do())==null?void 0:t.uid,p=mn("indexedPanes"),v=Se(()=>p.value[h]),m=Ue(null),b=Se(()=>{const T=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(T,E.value),w.value)}),w=Se(()=>{const T=parseFloat(r.minSize);return isNaN(T)?0:T}),E=Se(()=>{const T=parseFloat(r.maxSize);return isNaN(T)?100:T}),N=Se(()=>{var T;return`${c.value?"height":"width"}: ${(T=v.value)==null?void 0:T.size}%`});return so(()=>{s({id:h,el:m.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),xt(()=>b.value,T=>o({uid:h,size:T})),xt(()=>w.value,T=>o({uid:h,min:T})),xt(()=>E.value,T=>o({uid:h,max:T})),ya(()=>f(h)),(T,L)=>(ce(),xe("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:L[0]||(L[0]=A=>U(d)(A,T._.uid)),style:en(N.value)},[yn(T.$slots,"default")],4))}},Ime={"h-screen":"","w-screen":"",overflow:"hidden"},Dme=ut({__name:"index",setup(e){const t=XE(),r=pc(v=>{h(),d(v)},0),o=pc(v=>{v.forEach((m,b)=>{Ms.value[b]=m.size}),f(v),p()},0),s=pc(v=>{v.forEach((m,b)=>{No.value[b]=m.size}),d(v),p()},0),c=pc(v=>{f(v),h()},0);function f(v){Nn.navigation=v[0].size,Nn.details.size=v[1].size}function d(v){Nn.details.browser=v[0].size,Nn.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>{const b=Pme,w=$me,E=kve,N=Hge,T=Ige,L=pce,A=rce;return ce(),xe(ct,null,[Oe(b),ie("div",Ime,[Oe(U(S0),{class:"pt-4px",onResized:U(o),onResize:U(c)},{default:rt(()=>[Oe(U(kc),{size:U(Ms)[0]},{default:rt(()=>[Oe(w)]),_:1},8,["size"]),Oe(U(kc),{size:U(Ms)[1]},{default:rt(()=>[U(Po)?(ce(),nt(U(S0),{id:"details-splitpanes",key:"browser-detail",onResize:U(r),onResized:U(s)},{default:rt(()=>[Oe(U(kc),{size:U(No)[0],"min-size":"10"},{default:rt(()=>[m[0]||(Uc(-1),(m[0]=Oe(L)).cacheIndex=0,Uc(1),m[0])]),_:1},8,["size"]),Oe(U(kc),{size:U(No)[1]},{default:rt(()=>[U(t)?(ce(),nt(E,{key:"summary"})):U(to)?(ce(),nt(N,{key:"coverage",src:U(xm)},null,8,["src"])):(ce(),nt(T,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ce(),nt(Yk,{key:"ui-detail"},{default:rt(()=>[U(t)?(ce(),nt(E,{key:"summary"})):U(to)?(ce(),nt(N,{key:"coverage",src:U(xm)},null,8,["src"])):(ce(),nt(T,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(A)],64)}}}),zme=[{name:"index",path:"/",component:Dme,props:!0}];/*!
|
|
49
|
+
* vue-router v4.5.0
|
|
50
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
51
|
+
* @license MIT
|
|
52
|
+
*/const vs=typeof document<"u";function M1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Fme(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&M1(e.default)}const bt=Object.assign;function hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Nr(s)?s.map(e):e(s)}return r}const Bl=()=>{},Nr=Array.isArray,N1=/#/g,Hme=/&/g,Bme=/\//g,Wme=/=/g,qme=/\?/g,$1=/\+/g,Ume=/%5B/g,jme=/%5D/g,O1=/%5E/g,Vme=/%60/g,R1=/%7B/g,Gme=/%7C/g,P1=/%7D/g,Kme=/%20/g;function op(e){return encodeURI(""+e).replace(Gme,"|").replace(Ume,"[").replace(jme,"]")}function Xme(e){return op(e).replace(R1,"{").replace(P1,"}").replace(O1,"^")}function ch(e){return op(e).replace($1,"%2B").replace(Kme,"+").replace(N1,"%23").replace(Hme,"%26").replace(Vme,"`").replace(R1,"{").replace(P1,"}").replace(O1,"^")}function Yme(e){return ch(e).replace(Wme,"%3D")}function Zme(e){return op(e).replace(N1,"%23").replace(qme,"%3F")}function Jme(e){return e==null?"":Zme(e).replace(Bme,"%2F")}function fa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Qme=/\/$/,e0e=e=>e.replace(Qme,"");function pd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=i0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:fa(f)}}function t0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function k0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function n0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Hs(t.matched[o],r.matched[s])&&I1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Hs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function I1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!r0e(e[r],t[r]))return!1;return!0}function r0e(e,t){return Nr(e)?T0(e,t):Nr(t)?T0(t,e):e===t}function T0(e,t){return Nr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function i0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Ii={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var da;(function(e){e.pop="pop",e.push="push"})(da||(da={}));var Wl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wl||(Wl={}));function o0e(e){if(!e)if(vs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),e0e(e)}const s0e=/^[^#]+#/;function l0e(e,t){return e.replace(s0e,"#")+t}function a0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const qu=()=>({left:window.scrollX,top:window.scrollY});function c0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=a0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function C0(e,t){return(history.state?history.state.position-t:-1)+e}const uh=new Map;function u0e(e,t){uh.set(e,t)}function f0e(e){const t=uh.get(e);return uh.delete(e),t}let d0e=()=>location.protocol+"//"+location.host;function D1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),k0(h,"")}return k0(r,e)+o+s}function h0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=D1(e,location),E=r.value,N=t.value;let T=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}T=N?b.position-N.position:0}else o(w);s.forEach(L=>{L(r.value,E,{delta:T,type:da.pop,direction:T?T>0?Wl.forward:Wl.back:Wl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:qu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function E0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?qu():null}}function p0e(e){const{history:t,location:r}=window,o={value:D1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:d0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,E0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:qu()});c(v.current,v,!0);const m=bt({},E0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function g0e(e){e=o0e(e);const t=p0e(e),r=h0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:l0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function v0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),g0e(e)}function m0e(e){return typeof e=="string"||e&&typeof e=="object"}function z1(e){return typeof e=="string"||typeof e=="symbol"}const F1=Symbol("");var A0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(A0||(A0={}));function Bs(e,t){return bt(new Error,{type:e,[F1]:!0},t)}function si(e,t){return e instanceof Error&&F1 in e&&(t==null||!!(e.type&t))}const L0="[^/]+?",y0e={sensitive:!1,strict:!1,start:!0,end:!0},b0e=/[.+*?^${}()[\]/\\]/g;function w0e(e,t){const r=bt({},y0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(b0e,"\\$&"),w+=40;else if(b.type===1){const{value:E,repeatable:N,optional:T,regexp:L}=b;c.push({name:E,repeatable:N,optional:T});const A=L||L0;if(A!==L0){w+=10;try{new RegExp(`(${A})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${E}" (${A}): `+M.message)}}let R=N?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;m||(R=T&&p.length<2?`(?:/${R})`:"/"+R),T&&(R+="?"),s+=R,w+=20,T&&(w+=-8),N&&(w+=-20),A===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",E=c[b-1];m[E.name]=w&&E.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:E,repeatable:N,optional:T}=w,L=E in p?p[E]:"";if(Nr(L)&&!N)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const A=Nr(L)?L.join("/"):L;if(!A)if(T)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${E}"`);v+=A}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function x0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function H1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=x0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(M0(o))return 1;if(M0(s))return-1}return s.length-o.length}function M0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const _0e={type:0,value:""},S0e=/[a-zA-Z0-9_]/;function k0e(e){if(!e)return[[]];if(e==="/")return[[_0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:S0e.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function T0e(e,t,r){const o=w0e(k0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function C0e(e,t){const r=[],o=new Map;t=R0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const E=!w,N=$0(m);N.aliasOf=w&&w.record;const T=R0(t,m),L=[N];if("alias"in m){const M=typeof m.alias=="string"?[m.alias]:m.alias;for(const B of M)L.push($0(bt({},N,{components:w?w.record.components:N.components,path:B,aliasOf:w?w.record:N})))}let A,R;for(const M of L){const{path:B}=M;if(b&&B[0]!=="/"){const V=b.record.path,G=V[V.length-1]==="/"?"":"/";M.path=b.record.path+(B&&G+B)}if(A=T0e(M,b,T),w?w.alias.push(A):(R=R||A,R!==A&&R.alias.push(A),E&&m.name&&!O0(A)&&f(m.name)),B1(A)&&h(A),N.children){const V=N.children;for(let G=0;G<V.length;G++)c(V[G],A,w&&w.children[G])}w=w||A}return R?()=>{f(R)}:Bl}function f(m){if(z1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=L0e(m,r);r.splice(b,0,m),m.record.name&&!O0(m)&&o.set(m.record.name,m)}function p(m,b){let w,E={},N,T;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Bs(1,{location:m});T=w.record.name,E=bt(N0(b.params,w.keys.filter(R=>!R.optional).concat(w.parent?w.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),m.params&&N0(m.params,w.keys.map(R=>R.name))),N=w.stringify(E)}else if(m.path!=null)N=m.path,w=r.find(R=>R.re.test(N)),w&&(E=w.parse(N),T=w.record.name);else{if(w=b.name?o.get(b.name):r.find(R=>R.re.test(b.path)),!w)throw Bs(1,{location:m,currentLocation:b});T=w.record.name,E=bt({},b.params,m.params),N=w.stringify(E)}const L=[];let A=w;for(;A;)L.unshift(A.record),A=A.parent;return{name:T,path:N,params:E,matched:L,meta:A0e(L)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function N0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function $0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:E0e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function E0e(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function O0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function A0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function R0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function L0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;H1(e,t[c])<0?o=c:r=c+1}const s=M0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function M0e(e){let t=e;for(;t=t.parent;)if(B1(t)&&H1(e,t)===0)return t}function B1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function N0e(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace($1," "),f=c.indexOf("="),d=fa(f<0?c:c.slice(0,f)),h=f<0?null:fa(c.slice(f+1));if(d in t){let p=t[d];Nr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function P0(e){let t="";for(let r in e){const o=e[r];if(r=Yme(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Nr(o)?o.map(c=>c&&ch(c)):[o&&ch(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function $0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Nr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const O0e=Symbol(""),I0=Symbol(""),sp=Symbol(""),W1=Symbol(""),fh=Symbol("");function Cl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Ui(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Bs(4,{from:r,to:t})):b instanceof Error?h(b):m0e(b)?h(Bs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function gd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(M1(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Ui(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=Fme(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Ui(w,r,o,f,d,s)()}))}}return c}function D0(e){const t=mn(sp),r=mn(W1),o=Se(()=>{const h=U(e.to);return t.resolve(h)}),s=Se(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Hs.bind(null,v));if(b>-1)return b;const w=z0(h[p-2]);return p>1&&z0(v)===w&&m[m.length-1].path!==w?m.findIndex(Hs.bind(null,h[p-2])):b}),c=Se(()=>s.value>-1&&z0e(r.params,o.value.params)),f=Se(()=>s.value>-1&&s.value===r.matched.length-1&&I1(r.params,o.value.params));function d(h={}){if(D0e(h)){const p=t[U(e.replace)?"replace":"push"](U(e.to)).catch(Bl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Se(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function R0e(e){return e.length===1?e[0]:e}const P0e=ut({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:D0,setup(e,{slots:t}){const r=tr(D0(e)),{options:o}=mn(sp),s=Se(()=>({[F0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[F0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&R0e(t.default(r));return e.custom?c:wa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),I0e=P0e;function D0e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function z0e(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!Nr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function z0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const F0=(e,t,r)=>e??t??r,F0e=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=mn(fh),s=Se(()=>e.route||o.value),c=mn(I0,0),f=Se(()=>{let p=U(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Se(()=>s.value.matched[f.value]);xr(I0,Se(()=>f.value+1)),xr(O0e,d),xr(fh,s);const h=Ue();return xt(()=>[h.value,d.value,e.name],([p,v,m],[b,w,E])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Hs(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(N=>N(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return H0(r.default,{Component:b,route:p});const w=m.props[v],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,T=wa(b,bt({},E,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return H0(r.default,{Component:T,route:p})||T}}});function H0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const H0e=F0e;function B0e(e){const t=C0e(e.routes,e),r=e.parseQuery||N0e,o=e.stringifyQuery||P0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=tn(Ii);let p=Ii;vs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=hd.bind(null,z=>""+z),m=hd.bind(null,Jme),b=hd.bind(null,fa);function w(z,J){let X,le;return z1(z)?(X=t.getRecordMatcher(z),le=J):le=z,t.addRoute(le,X)}function E(z){const J=t.getRecordMatcher(z);J&&t.removeRoute(J)}function N(){return t.getRoutes().map(z=>z.record)}function T(z){return!!t.getRecordMatcher(z)}function L(z,J){if(J=bt({},J||h.value),typeof z=="string"){const Y=pd(r,z,J.path),ue=t.resolve({path:Y.path},J),he=s.createHref(Y.fullPath);return bt(Y,ue,{params:b(ue.params),hash:fa(Y.hash),redirectedFrom:void 0,href:he})}let X;if(z.path!=null)X=bt({},z,{path:pd(r,z.path,J.path).path});else{const Y=bt({},z.params);for(const ue in Y)Y[ue]==null&&delete Y[ue];X=bt({},z,{params:m(Y)}),J.params=m(J.params)}const le=t.resolve(X,J),pe=z.hash||"";le.params=v(b(le.params));const I=t0e(o,bt({},z,{hash:Xme(pe),path:le.path})),H=s.createHref(I);return bt({fullPath:I,hash:pe,query:o===P0?$0e(z.query):z.query||{}},le,{redirectedFrom:void 0,href:H})}function A(z){return typeof z=="string"?pd(r,z,h.value.path):bt({},z)}function R(z,J){if(p!==z)return Bs(8,{from:J,to:z})}function M(z){return G(z)}function B(z){return M(bt(A(z),{replace:!0}))}function V(z){const J=z.matched[z.matched.length-1];if(J&&J.redirect){const{redirect:X}=J;let le=typeof X=="function"?X(z):X;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=A(le):{path:le},le.params={}),bt({query:z.query,hash:z.hash,params:le.path!=null?{}:z.params},le)}}function G(z,J){const X=p=L(z),le=h.value,pe=z.state,I=z.force,H=z.replace===!0,Y=V(X);if(Y)return G(bt(A(Y),{state:typeof Y=="object"?bt({},pe,Y.state):pe,force:I,replace:H}),J||X);const ue=X;ue.redirectedFrom=J;let he;return!I&&n0e(o,le,X)&&(he=Bs(16,{to:ue,from:le}),Pe(le,le,!0,!1)),(he?Promise.resolve(he):K(ue,le)).catch(de=>si(de)?si(de,2)?de:_e(de):se(de,ue,le)).then(de=>{if(de){if(si(de,2))return G(bt({replace:H},A(de.to),{state:typeof de.to=="object"?bt({},pe,de.to.state):pe,force:I}),J||ue)}else de=$(ue,le,!0,H,pe);return re(ue,le,de),de})}function ee(z,J){const X=R(z,J);return X?Promise.reject(X):Promise.resolve()}function ne(z){const J=Ke.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(z):z()}function K(z,J){let X;const[le,pe,I]=W0e(z,J);X=gd(le.reverse(),"beforeRouteLeave",z,J);for(const Y of le)Y.leaveGuards.forEach(ue=>{X.push(Ui(ue,z,J))});const H=ee.bind(null,z,J);return X.push(H),te(X).then(()=>{X=[];for(const Y of c.list())X.push(Ui(Y,z,J));return X.push(H),te(X)}).then(()=>{X=gd(pe,"beforeRouteUpdate",z,J);for(const Y of pe)Y.updateGuards.forEach(ue=>{X.push(Ui(ue,z,J))});return X.push(H),te(X)}).then(()=>{X=[];for(const Y of I)if(Y.beforeEnter)if(Nr(Y.beforeEnter))for(const ue of Y.beforeEnter)X.push(Ui(ue,z,J));else X.push(Ui(Y.beforeEnter,z,J));return X.push(H),te(X)}).then(()=>(z.matched.forEach(Y=>Y.enterCallbacks={}),X=gd(I,"beforeRouteEnter",z,J,ne),X.push(H),te(X))).then(()=>{X=[];for(const Y of f.list())X.push(Ui(Y,z,J));return X.push(H),te(X)}).catch(Y=>si(Y,8)?Y:Promise.reject(Y))}function re(z,J,X){d.list().forEach(le=>ne(()=>le(z,J,X)))}function $(z,J,X,le,pe){const I=R(z,J);if(I)return I;const H=J===Ii,Y=vs?history.state:{};X&&(le||H?s.replace(z.fullPath,bt({scroll:H&&Y&&Y.scroll},pe)):s.push(z.fullPath,pe)),h.value=z,Pe(z,J,X,H),_e()}let P;function O(){P||(P=s.listen((z,J,X)=>{if(!Xe.listening)return;const le=L(z),pe=V(le);if(pe){G(bt(pe,{replace:!0,force:!0}),le).catch(Bl);return}p=le;const I=h.value;vs&&u0e(C0(I.fullPath,X.delta),qu()),K(le,I).catch(H=>si(H,12)?H:si(H,2)?(G(bt(A(H.to),{force:!0}),le).then(Y=>{si(Y,20)&&!X.delta&&X.type===da.pop&&s.go(-1,!1)}).catch(Bl),Promise.reject()):(X.delta&&s.go(-X.delta,!1),se(H,le,I))).then(H=>{H=H||$(le,I,!1),H&&(X.delta&&!si(H,8)?s.go(-X.delta,!1):X.type===da.pop&&si(H,20)&&s.go(-1,!1)),re(le,I,H)}).catch(Bl)}))}let S=Cl(),F=Cl(),j;function se(z,J,X){_e(z);const le=F.list();return le.length?le.forEach(pe=>pe(z,J,X)):console.error(z),Promise.reject(z)}function me(){return j&&h.value!==Ii?Promise.resolve():new Promise((z,J)=>{S.add([z,J])})}function _e(z){return j||(j=!z,O(),S.list().forEach(([J,X])=>z?X(z):J()),S.reset()),z}function Pe(z,J,X,le){const{scrollBehavior:pe}=e;if(!vs||!pe)return Promise.resolve();const I=!X&&f0e(C0(z.fullPath,0))||(le||!X)&&history.state&&history.state.scroll||null;return Tt().then(()=>pe(z,J,I)).then(H=>H&&c0e(H)).catch(H=>se(H,z,J))}const qe=z=>s.go(z);let Ze;const Ke=new Set,Xe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:N,resolve:L,options:e,push:M,replace:B,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:F.add,isReady:me,install(z){const J=this;z.component("RouterLink",I0e),z.component("RouterView",H0e),z.config.globalProperties.$router=J,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>U(h)}),vs&&!Ze&&h.value===Ii&&(Ze=!0,M(s.location).catch(pe=>{}));const X={};for(const pe in Ii)Object.defineProperty(X,pe,{get:()=>h.value[pe],enumerable:!0});z.provide(sp,J),z.provide(W1,wh(X)),z.provide(fh,h);const le=z.unmount;Ke.add(z),z.unmount=function(){Ke.delete(z),Ke.size<1&&(p=Ii,P&&P(),P=null,h.value=Ii,Ze=!1,j=!1),le()}}};function te(z){return z.reduce((J,X)=>J.then(()=>ne(X)),Promise.resolve())}return Xe}function W0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Hs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Hs(p,h))||s.push(h))}return[r,o,s]}const q0e={tooltip:TC};Rb.options.instantMove=!0;Rb.options.distance=10;function U0e(){return B0e({history:v0e(),routes:zme})}const j0e=[U0e],lp=db(AT);j0e.forEach(e=>{lp.use(e())});Object.entries(q0e).forEach(([e,t])=>{lp.directive(e,t)});lp.mount("#app");
|