@vitest/browser 3.0.6 → 3.0.8

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.
@@ -1,52 +1,52 @@
1
- var zS=Object.defineProperty;var DS=(e,t,r)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var us=(e,t,r)=>DS(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)}})();/**
1
+ var DS=Object.defineProperty;var IS=(e,t,r)=>t in e?DS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var us=(e,t,r)=>IS(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
2
  * @vue/shared v3.5.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function uh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},bs=[],Wr=()=>{},IS=()=>!1,fu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fh=e=>e.startsWith("onUpdate:"),tn=Object.assign,dh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},FS=Object.prototype.hasOwnProperty,wt=(e,t)=>FS.call(e,t),He=Array.isArray,ws=e=>da(e)==="[object Map]",du=e=>da(e)==="[object Set]",lv=e=>da(e)==="[object Date]",Ve=e=>typeof e=="function",Rt=e=>typeof e=="string",Tr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",I0=e=>(St(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),F0=Object.prototype.toString,da=e=>F0.call(e),HS=e=>da(e).slice(8,-1),H0=e=>da(e)==="[object Object]",hh=e=>Rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=uh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},BS=/-(\w)/g,tr=hu(e=>e.replace(BS,(t,r)=>r?r.toUpperCase():"")),WS=/\B([A-Z])/g,vi=hu(e=>e.replace(WS,"-$1").toLowerCase()),pu=hu(e=>e.charAt(0).toUpperCase()+e.slice(1)),_c=hu(e=>e?`on${pu(e)}`:""),qn=(e,t)=>!Object.is(e,t),kc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},B0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},gd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},W0=e=>{const t=Rt(e)?Number(e):NaN;return isNaN(t)?e:t};let av;const gu=()=>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=Rt(o)?VS(o):en(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Rt(e)||St(e))return e}const qS=/;(?![^(]*\))/g,US=/:([^]+)/,jS=/\/\*[^]*?\*\//g;function VS(e){const t={};return e.replace(jS,"").split(qS).forEach(r=>{if(r){const o=r.split(US);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(Rt(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 GS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Rt(t)&&(e.class=it(t)),r&&(e.style=en(r)),e}const KS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",XS=uh(KS);function q0(e){return!!e||e===""}function YS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=vu(e[o],t[o]);return r}function vu(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=Tr(e),o=Tr(t),r||o)return e===t;if(r=He(e),o=He(t),r||o)return r&&o?YS(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||!vu(e[f],t[f]))return!1}}return String(e)===String(t)}function U0(e,t){return e.findIndex(r=>vu(r,t))}const j0=e=>!!(e&&e.__v_isRef===!0),Be=e=>Rt(e)?e:e==null?"":He(e)||St(e)&&(e.toString===F0||!Ve(e.toString))?j0(e)?Be(e.value):JSON.stringify(e,V0,2):String(e),V0=(e,t)=>j0(t)?V0(e,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Ff(o,c)+" =>"]=s,r),{})}:du(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ff(r))}:Tr(t)?Ff(t):St(t)&&!He(t)&&!H0(t)?String(t):t,Ff=(e,t="")=>{var r;return Tr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function uh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},bs=[],Wr=()=>{},FS=()=>!1,fu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fh=e=>e.startsWith("onUpdate:"),tn=Object.assign,dh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},HS=Object.prototype.hasOwnProperty,wt=(e,t)=>HS.call(e,t),He=Array.isArray,ws=e=>da(e)==="[object Map]",du=e=>da(e)==="[object Set]",lv=e=>da(e)==="[object Date]",Ve=e=>typeof e=="function",Rt=e=>typeof e=="string",Tr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",F0=e=>(St(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),H0=Object.prototype.toString,da=e=>H0.call(e),BS=e=>da(e).slice(8,-1),B0=e=>da(e)==="[object Object]",hh=e=>Rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=uh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},WS=/-(\w)/g,tr=hu(e=>e.replace(WS,(t,r)=>r?r.toUpperCase():"")),qS=/\B([A-Z])/g,vi=hu(e=>e.replace(qS,"-$1").toLowerCase()),pu=hu(e=>e.charAt(0).toUpperCase()+e.slice(1)),_c=hu(e=>e?`on${pu(e)}`:""),qn=(e,t)=>!Object.is(e,t),kc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},W0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},gd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},q0=e=>{const t=Rt(e)?Number(e):NaN;return isNaN(t)?e:t};let av;const gu=()=>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=Rt(o)?GS(o):en(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Rt(e)||St(e))return e}const US=/;(?![^(]*\))/g,jS=/:([^]+)/,VS=/\/\*[^]*?\*\//g;function GS(e){const t={};return e.replace(VS,"").split(US).forEach(r=>{if(r){const o=r.split(jS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(Rt(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 KS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Rt(t)&&(e.class=it(t)),r&&(e.style=en(r)),e}const XS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",YS=uh(XS);function U0(e){return!!e||e===""}function ZS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=vu(e[o],t[o]);return r}function vu(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=Tr(e),o=Tr(t),r||o)return e===t;if(r=He(e),o=He(t),r||o)return r&&o?ZS(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||!vu(e[f],t[f]))return!1}}return String(e)===String(t)}function j0(e,t){return e.findIndex(r=>vu(r,t))}const V0=e=>!!(e&&e.__v_isRef===!0),Be=e=>Rt(e)?e:e==null?"":He(e)||St(e)&&(e.toString===H0||!Ve(e.toString))?V0(e)?Be(e.value):JSON.stringify(e,G0,2):String(e),G0=(e,t)=>V0(t)?G0(e,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Ff(o,c)+" =>"]=s,r),{})}:du(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ff(r))}:Tr(t)?Ff(t):St(t)&&!He(t)&&!B0(t)?String(t):t,Ff=(e,t="")=>{var r;return Tr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
6
  * @vue/reactivity v3.5.12
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let En;class ZS{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=En,!t&&En&&(this.index=(En.scopes||(En.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=En;try{return En=this,t()}finally{En=r}}}on(){En=this}off(){En=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 G0(){return En}function JS(e,t=!1){En&&En.cleanups.push(e)}let _t;const Hf=new WeakSet;class K0{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,En&&En.active&&En.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hf.has(this)&&(Hf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Y0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cv(this),Z0(this);const t=_t,r=_r;_t=this,_r=!0;try{return this.fn()}finally{J0(this),_t=t,_r=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vh(t);this.deps=this.depsTail=void 0,cv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vd(this)&&this.run()}get dirty(){return vd(this)}}let X0=0,Ll,Nl;function Y0(e,t=!1){if(e.flags|=8,t){e.next=Nl,Nl=e;return}e.next=Ll,Ll=e}function ph(){X0++}function gh(){if(--X0>0)return;if(Nl){let t=Nl;for(Nl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ll;){let t=Ll;for(Ll=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 Z0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function J0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),vh(o),QS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function vd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Q0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Q0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!vd(e)){e.flags&=-3;return}const r=_t,o=_r;_t=e,_r=!0;try{Z0(e);const s=e.fn(e._value);(t.version===0||qn(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_t=r,_r=o,J0(e),e.flags&=-3}}function vh(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)vh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function QS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let _r=!0;const ey=[];function io(){ey.push(_r),_r=!1}function oo(){const e=ey.pop();_r=e===void 0?!0:e}function cv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=_t;_t=void 0;try{t()}finally{_t=r}}}let Wl=0;class e_{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 mu{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(!_t||!_r||_t===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==_t)r=this.activeLink=new e_(_t,this),_t.deps?(r.prevDep=_t.depsTail,_t.depsTail.nextDep=r,_t.depsTail=r):_t.deps=_t.depsTail=r,ty(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=_t.depsTail,r.nextDep=void 0,_t.depsTail.nextDep=r,_t.depsTail=r,_t.deps===r&&(_t.deps=o)}return r}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){ph();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{gh()}}}function ty(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)ty(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Dc=new WeakMap,Ao=Symbol(""),md=Symbol(""),ql=Symbol("");function pn(e,t,r){if(_r&&_t){let o=Dc.get(e);o||Dc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new mu),s.map=o,s.key=r),s.track()}}function ci(e,t,r,o,s,c){const f=Dc.get(e);if(!f){Wl++;return}const d=h=>{h&&h.trigger()};if(ph(),t==="clear")f.forEach(d);else{const h=He(e),p=h&&hh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===ql||!Tr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ql)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Ao)),ws(e)&&d(f.get(md)));break;case"delete":h||(d(f.get(Ao)),ws(e)&&d(f.get(md)));break;case"set":ws(e)&&d(f.get(Ao));break}}gh()}function t_(e,t){const r=Dc.get(e);return r&&r.get(t)}function fs(e){const t=ht(e);return t===e?t:(pn(t,"iterate",ql),lr(e)?t:t.map(gn))}function yu(e){return pn(e=ht(e),"iterate",ql),e}const n_={__proto__:null,[Symbol.iterator](){return Bf(this,Symbol.iterator,gn)},concat(...e){return fs(this).concat(...e.map(t=>He(t)?fs(t):t))},entries(){return Bf(this,"entries",e=>(e[1]=gn(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(gn),arguments)},find(e,t){return ii(this,"find",e,t,gn,arguments)},findIndex(e,t){return ii(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ii(this,"findLast",e,t,gn,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 Wf(this,"includes",e)},indexOf(...e){return Wf(this,"indexOf",e)},join(e){return fs(this).join(e)},lastIndexOf(...e){return Wf(this,"lastIndexOf",e)},map(e,t){return ii(this,"map",e,t,void 0,arguments)},pop(){return bl(this,"pop")},push(...e){return bl(this,"push",e)},reduce(e,...t){return uv(this,"reduce",e,t)},reduceRight(e,...t){return uv(this,"reduceRight",e,t)},shift(){return bl(this,"shift")},some(e,t){return ii(this,"some",e,t,void 0,arguments)},splice(...e){return bl(this,"splice",e)},toReversed(){return fs(this).toReversed()},toSorted(e){return fs(this).toSorted(e)},toSpliced(...e){return fs(this).toSpliced(...e)},unshift(...e){return bl(this,"unshift",e)},values(){return Bf(this,"values",gn)}};function Bf(e,t,r){const o=yu(e),s=o[t]();return o!==e&&!lr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const r_=Array.prototype;function ii(e,t,r,o,s,c){const f=yu(e),d=f!==e&&!lr(e),h=f[t];if(h!==r_[t]){const m=h.apply(e,c);return d?gn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,gn(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=yu(e);let c=r;return s!==e&&(lr(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,gn(d),h,e)}),s[t](c,...o)}function Wf(e,t,r){const o=ht(e);pn(o,"iterate",ql);const s=o[t](...r);return(s===-1||s===!1)&&wh(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function bl(e,t,r=[]){io(),ph();const o=ht(e)[t].apply(e,r);return gh(),oo(),o}const i_=uh("__proto__,__v_isRef,__isVue"),ny=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Tr));function o_(e){Tr(e)||(e=String(e));const t=ht(this);return pn(t,"has",e),t.hasOwnProperty(e)}class ry{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?g_:ly:c?sy:oy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=He(t);if(!s){let h;if(f&&(h=n_[r]))return h;if(r==="hasOwnProperty")return o_}const d=Reflect.get(t,r,kt(t)?t:o);return(Tr(r)?ny.has(r):i_(r))||(s||pn(t,"get",r),c)?d:kt(d)?f&&hh(r)?d:d.value:St(d)?s?ha(d):er(d):d}}class iy extends ry{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=$o(c);if(!lr(o)&&!$o(o)&&(c=ht(c),o=ht(o)),!He(t)&&kt(c)&&!kt(o))return h?!1:(c.value=o,!0)}const f=He(t)&&hh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,kt(t)?t:s);return t===ht(s)&&(f?qn(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(!Tr(r)||!ny.has(r))&&pn(t,"has",r),o}ownKeys(t){return pn(t,"iterate",He(t)?"length":Ao),Reflect.ownKeys(t)}}class s_ extends ry{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const l_=new iy,a_=new s_,c_=new iy(!0);const yd=e=>e,sc=e=>Reflect.getPrototypeOf(e);function u_(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=ws(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?yd:t?bd:gn;return!t&&pn(c,"iterate",h?md:Ao),{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 lc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function f_(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(qn(s,d)&&pn(f,"get",s),pn(f,"get",d));const{has:h}=sc(f),p=t?yd:e?bd:gn;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&&pn(ht(s),"iterate",Ao),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(qn(s,d)&&pn(f,"has",s),pn(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?yd:e?bd:gn;return!e&&pn(h,"iterate",Ao),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return tn(r,e?{add:lc("add"),set:lc("set"),delete:lc("delete"),clear:lc("clear")}:{add(s){!t&&!lr(s)&&!$o(s)&&(s=ht(s));const c=ht(this);return sc(c).has.call(c,s)||(c.add(s),ci(c,"add",s,s)),this},set(s,c){!t&&!lr(c)&&!$o(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=sc(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?qn(c,v)&&ci(f,"set",s,c):ci(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=sc(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]=u_(s,e,t)}),r}function mh(e,t){const r=f_(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 d_={get:mh(!1,!1)},h_={get:mh(!1,!0)},p_={get:mh(!0,!1)};const oy=new WeakMap,sy=new WeakMap,ly=new WeakMap,g_=new WeakMap;function v_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function m_(e){return e.__v_skip||!Object.isExtensible(e)?0:v_(HS(e))}function er(e){return $o(e)?e:bh(e,!1,l_,d_,oy)}function yh(e){return bh(e,!1,c_,h_,sy)}function ha(e){return bh(e,!0,a_,p_,ly)}function bh(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=m_(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function xs(e){return $o(e)?xs(e.__v_raw):!!(e&&e.__v_isReactive)}function $o(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function wh(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function xh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&B0(e,"__v_skip",!0),e}const gn=e=>St(e)?er(e):e,bd=e=>St(e)?ha(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function je(e){return ay(e,!1)}function On(e){return ay(e,!0)}function ay(e,t){return kt(e)?e:new y_(e,t)}class y_{constructor(t,r){this.dep=new mu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:gn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||lr(t)||$o(t);t=o?t:ht(t),qn(t,r)&&(this._rawValue=t,this._value=o?t:gn(t),this.dep.trigger())}}function W(e){return kt(e)?e.value:e}function Ut(e){return Ve(e)?e():W(e)}const b_={get:(e,t,r)=>t==="__v_raw"?e:W(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return kt(s)&&!kt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function cy(e){return xs(e)?e:new Proxy(e,b_)}class w_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new mu,{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 uy(e){return new w_(e)}function x_(e){const t=He(e)?new Array(e.length):{};for(const r in e)t[r]=fy(e,r);return t}class S_{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 t_(ht(this._object),this._key)}}class __{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 pa(e,t,r){return kt(e)?e:Ve(e)?new __(e):St(e)&&arguments.length>1?fy(e,t,r):je(e)}function fy(e,t,r){const o=e[t];return kt(o)?o:new S_(e,t,r)}class k_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new mu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&_t!==this)return Y0(this,!0),!0}get value(){const t=this.dep.track();return Q0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function C_(e,t,r=!1){let o,s;return Ve(e)?o=e:(o=e.get,s=e.set),new k_(o,s,r)}const ac={},Ic=new WeakMap;let _o;function T_(e,t=!1,r=_o){if(r){let o=Ic.get(r);o||Ic.set(r,o=[]),o.push(e)}}function E_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:lr(E)||s===!1||s===0?ui(E,1):ui(E);let v,m,b,w,A=!1,N=!1;if(kt(e)?(m=()=>e.value,A=lr(e)):xs(e)?(m=()=>p(e),A=!0):He(e)?(N=!0,A=e.some(E=>xs(E)||lr(E)),m=()=>e.map(E=>{if(kt(E))return E.value;if(xs(E))return p(E);if(Ve(E))return h?h(E,2):E()})):Ve(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){io();try{b()}finally{oo()}}const E=_o;_o=v;try{return h?h(e,3,[w]):e(w)}finally{_o=E}}:m=Wr,t&&s){const E=m,B=s===!0?1/0:s;m=()=>ui(E(),B)}const L=G0(),M=()=>{v.stop(),L&&dh(L.effects,v)};if(c&&t){const E=t;t=(...B)=>{E(...B),M()}}let T=N?new Array(e.length).fill(ac):ac;const P=E=>{if(!(!(v.flags&1)||!v.dirty&&!E))if(t){const B=v.run();if(s||A||(N?B.some((G,U)=>qn(G,T[U])):qn(B,T))){b&&b();const G=_o;_o=v;try{const U=[B,T===ac?void 0:N&&T[0]===ac?[]:T,w];h?h(t,3,U):t(...U),T=B}finally{_o=G}}}else v.run()};return d&&d(P),v=new K0(m),v.scheduler=f?()=>f(P,!1):P,w=E=>T_(E,!1,v),b=v.onStop=()=>{const E=Ic.get(v);if(E){if(h)h(E,4);else for(const B of E)B();Ic.delete(v)}},t?o?P(!0):T=v.run():f?f(P.bind(null,!0),!0):v.run(),M.pause=v.pause.bind(v),M.resume=v.resume.bind(v),M.stop=M,M}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--,kt(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(du(e)||ws(e))e.forEach(o=>{ui(o,t,r)});else if(H0(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}/**
9
+ **/let En;class JS{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=En,!t&&En&&(this.index=(En.scopes||(En.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=En;try{return En=this,t()}finally{En=r}}}on(){En=this}off(){En=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 K0(){return En}function QS(e,t=!1){En&&En.cleanups.push(e)}let _t;const Hf=new WeakSet;class X0{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,En&&En.active&&En.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hf.has(this)&&(Hf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Z0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cv(this),J0(this);const t=_t,r=_r;_t=this,_r=!0;try{return this.fn()}finally{Q0(this),_t=t,_r=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vh(t);this.deps=this.depsTail=void 0,cv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vd(this)&&this.run()}get dirty(){return vd(this)}}let Y0=0,Ll,Nl;function Z0(e,t=!1){if(e.flags|=8,t){e.next=Nl,Nl=e;return}e.next=Ll,Ll=e}function ph(){Y0++}function gh(){if(--Y0>0)return;if(Nl){let t=Nl;for(Nl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ll;){let t=Ll;for(Ll=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 J0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Q0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),vh(o),e_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function vd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ey(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ey(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!vd(e)){e.flags&=-3;return}const r=_t,o=_r;_t=e,_r=!0;try{J0(e);const s=e.fn(e._value);(t.version===0||qn(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_t=r,_r=o,Q0(e),e.flags&=-3}}function vh(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)vh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function e_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let _r=!0;const ty=[];function io(){ty.push(_r),_r=!1}function oo(){const e=ty.pop();_r=e===void 0?!0:e}function cv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=_t;_t=void 0;try{t()}finally{_t=r}}}let Wl=0;class t_{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 mu{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(!_t||!_r||_t===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==_t)r=this.activeLink=new t_(_t,this),_t.deps?(r.prevDep=_t.depsTail,_t.depsTail.nextDep=r,_t.depsTail=r):_t.deps=_t.depsTail=r,ny(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=_t.depsTail,r.nextDep=void 0,_t.depsTail.nextDep=r,_t.depsTail=r,_t.deps===r&&(_t.deps=o)}return r}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){ph();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{gh()}}}function ny(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)ny(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Dc=new WeakMap,Ao=Symbol(""),md=Symbol(""),ql=Symbol("");function pn(e,t,r){if(_r&&_t){let o=Dc.get(e);o||Dc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new mu),s.map=o,s.key=r),s.track()}}function ci(e,t,r,o,s,c){const f=Dc.get(e);if(!f){Wl++;return}const d=h=>{h&&h.trigger()};if(ph(),t==="clear")f.forEach(d);else{const h=He(e),p=h&&hh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===ql||!Tr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ql)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Ao)),ws(e)&&d(f.get(md)));break;case"delete":h||(d(f.get(Ao)),ws(e)&&d(f.get(md)));break;case"set":ws(e)&&d(f.get(Ao));break}}gh()}function n_(e,t){const r=Dc.get(e);return r&&r.get(t)}function fs(e){const t=ht(e);return t===e?t:(pn(t,"iterate",ql),lr(e)?t:t.map(gn))}function yu(e){return pn(e=ht(e),"iterate",ql),e}const r_={__proto__:null,[Symbol.iterator](){return Bf(this,Symbol.iterator,gn)},concat(...e){return fs(this).concat(...e.map(t=>He(t)?fs(t):t))},entries(){return Bf(this,"entries",e=>(e[1]=gn(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(gn),arguments)},find(e,t){return ii(this,"find",e,t,gn,arguments)},findIndex(e,t){return ii(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ii(this,"findLast",e,t,gn,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 Wf(this,"includes",e)},indexOf(...e){return Wf(this,"indexOf",e)},join(e){return fs(this).join(e)},lastIndexOf(...e){return Wf(this,"lastIndexOf",e)},map(e,t){return ii(this,"map",e,t,void 0,arguments)},pop(){return bl(this,"pop")},push(...e){return bl(this,"push",e)},reduce(e,...t){return uv(this,"reduce",e,t)},reduceRight(e,...t){return uv(this,"reduceRight",e,t)},shift(){return bl(this,"shift")},some(e,t){return ii(this,"some",e,t,void 0,arguments)},splice(...e){return bl(this,"splice",e)},toReversed(){return fs(this).toReversed()},toSorted(e){return fs(this).toSorted(e)},toSpliced(...e){return fs(this).toSpliced(...e)},unshift(...e){return bl(this,"unshift",e)},values(){return Bf(this,"values",gn)}};function Bf(e,t,r){const o=yu(e),s=o[t]();return o!==e&&!lr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const i_=Array.prototype;function ii(e,t,r,o,s,c){const f=yu(e),d=f!==e&&!lr(e),h=f[t];if(h!==i_[t]){const m=h.apply(e,c);return d?gn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,gn(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=yu(e);let c=r;return s!==e&&(lr(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,gn(d),h,e)}),s[t](c,...o)}function Wf(e,t,r){const o=ht(e);pn(o,"iterate",ql);const s=o[t](...r);return(s===-1||s===!1)&&wh(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function bl(e,t,r=[]){io(),ph();const o=ht(e)[t].apply(e,r);return gh(),oo(),o}const o_=uh("__proto__,__v_isRef,__isVue"),ry=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Tr));function s_(e){Tr(e)||(e=String(e));const t=ht(this);return pn(t,"has",e),t.hasOwnProperty(e)}class iy{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?v_:ay:c?ly:sy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=He(t);if(!s){let h;if(f&&(h=r_[r]))return h;if(r==="hasOwnProperty")return s_}const d=Reflect.get(t,r,kt(t)?t:o);return(Tr(r)?ry.has(r):o_(r))||(s||pn(t,"get",r),c)?d:kt(d)?f&&hh(r)?d:d.value:St(d)?s?ha(d):er(d):d}}class oy extends iy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=$o(c);if(!lr(o)&&!$o(o)&&(c=ht(c),o=ht(o)),!He(t)&&kt(c)&&!kt(o))return h?!1:(c.value=o,!0)}const f=He(t)&&hh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,kt(t)?t:s);return t===ht(s)&&(f?qn(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(!Tr(r)||!ry.has(r))&&pn(t,"has",r),o}ownKeys(t){return pn(t,"iterate",He(t)?"length":Ao),Reflect.ownKeys(t)}}class l_ extends iy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const a_=new oy,c_=new l_,u_=new oy(!0);const yd=e=>e,sc=e=>Reflect.getPrototypeOf(e);function f_(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=ws(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?yd:t?bd:gn;return!t&&pn(c,"iterate",h?md:Ao),{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 lc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function d_(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(qn(s,d)&&pn(f,"get",s),pn(f,"get",d));const{has:h}=sc(f),p=t?yd:e?bd:gn;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&&pn(ht(s),"iterate",Ao),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(qn(s,d)&&pn(f,"has",s),pn(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?yd:e?bd:gn;return!e&&pn(h,"iterate",Ao),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return tn(r,e?{add:lc("add"),set:lc("set"),delete:lc("delete"),clear:lc("clear")}:{add(s){!t&&!lr(s)&&!$o(s)&&(s=ht(s));const c=ht(this);return sc(c).has.call(c,s)||(c.add(s),ci(c,"add",s,s)),this},set(s,c){!t&&!lr(c)&&!$o(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=sc(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?qn(c,v)&&ci(f,"set",s,c):ci(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=sc(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]=f_(s,e,t)}),r}function mh(e,t){const r=d_(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 h_={get:mh(!1,!1)},p_={get:mh(!1,!0)},g_={get:mh(!0,!1)};const sy=new WeakMap,ly=new WeakMap,ay=new WeakMap,v_=new WeakMap;function m_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function y_(e){return e.__v_skip||!Object.isExtensible(e)?0:m_(BS(e))}function er(e){return $o(e)?e:bh(e,!1,a_,h_,sy)}function yh(e){return bh(e,!1,u_,p_,ly)}function ha(e){return bh(e,!0,c_,g_,ay)}function bh(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=y_(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function xs(e){return $o(e)?xs(e.__v_raw):!!(e&&e.__v_isReactive)}function $o(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function wh(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function xh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&W0(e,"__v_skip",!0),e}const gn=e=>St(e)?er(e):e,bd=e=>St(e)?ha(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function je(e){return cy(e,!1)}function On(e){return cy(e,!0)}function cy(e,t){return kt(e)?e:new b_(e,t)}class b_{constructor(t,r){this.dep=new mu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:gn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||lr(t)||$o(t);t=o?t:ht(t),qn(t,r)&&(this._rawValue=t,this._value=o?t:gn(t),this.dep.trigger())}}function W(e){return kt(e)?e.value:e}function Ut(e){return Ve(e)?e():W(e)}const w_={get:(e,t,r)=>t==="__v_raw"?e:W(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return kt(s)&&!kt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function uy(e){return xs(e)?e:new Proxy(e,w_)}class x_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new mu,{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 fy(e){return new x_(e)}function S_(e){const t=He(e)?new Array(e.length):{};for(const r in e)t[r]=dy(e,r);return t}class __{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 n_(ht(this._object),this._key)}}class k_{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 pa(e,t,r){return kt(e)?e:Ve(e)?new k_(e):St(e)&&arguments.length>1?dy(e,t,r):je(e)}function dy(e,t,r){const o=e[t];return kt(o)?o:new __(e,t,r)}class C_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new mu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&_t!==this)return Z0(this,!0),!0}get value(){const t=this.dep.track();return ey(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function T_(e,t,r=!1){let o,s;return Ve(e)?o=e:(o=e.get,s=e.set),new C_(o,s,r)}const ac={},Ic=new WeakMap;let _o;function E_(e,t=!1,r=_o){if(r){let o=Ic.get(r);o||Ic.set(r,o=[]),o.push(e)}}function A_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=A=>s?A:lr(A)||s===!1||s===0?ui(A,1):ui(A);let v,m,b,w,E=!1,N=!1;if(kt(e)?(m=()=>e.value,E=lr(e)):xs(e)?(m=()=>p(e),E=!0):He(e)?(N=!0,E=e.some(A=>xs(A)||lr(A)),m=()=>e.map(A=>{if(kt(A))return A.value;if(xs(A))return p(A);if(Ve(A))return h?h(A,2):A()})):Ve(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){io();try{b()}finally{oo()}}const A=_o;_o=v;try{return h?h(e,3,[w]):e(w)}finally{_o=A}}:m=Wr,t&&s){const A=m,B=s===!0?1/0:s;m=()=>ui(A(),B)}const L=K0(),M=()=>{v.stop(),L&&dh(L.effects,v)};if(c&&t){const A=t;t=(...B)=>{A(...B),M()}}let T=N?new Array(e.length).fill(ac):ac;const P=A=>{if(!(!(v.flags&1)||!v.dirty&&!A))if(t){const B=v.run();if(s||E||(N?B.some((G,U)=>qn(G,T[U])):qn(B,T))){b&&b();const G=_o;_o=v;try{const U=[B,T===ac?void 0:N&&T[0]===ac?[]:T,w];h?h(t,3,U):t(...U),T=B}finally{_o=G}}}else v.run()};return d&&d(P),v=new X0(m),v.scheduler=f?()=>f(P,!1):P,w=A=>E_(A,!1,v),b=v.onStop=()=>{const A=Ic.get(v);if(A){if(h)h(A,4);else for(const B of A)B();Ic.delete(v)}},t?o?P(!0):T=v.run():f?f(P.bind(null,!0),!0):v.run(),M.pause=v.pause.bind(v),M.resume=v.resume.bind(v),M.stop=M,M}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--,kt(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(du(e)||ws(e))e.forEach(o=>{ui(o,t,r)});else if(B0(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
10
  * @vue/runtime-core v3.5.12
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/function ga(e,t,r,o){try{return o?e(...o):e()}catch(s){va(s,t,r)}}function Er(e,t,r,o){if(Ve(e)){const s=ga(e,t,r,o);return s&&I0(s)&&s.catch(c=>{va(c,t,r)}),s}if(He(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Er(e[c],t,r,o));return s}}function va(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(),ga(c,null,10,[e,h,p]),oo();return}}A_(e,r,s,o,f)}function A_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Mn=[];let Hr=-1;const Ss=[];let Fi=null,hs=0;const dy=Promise.resolve();let Fc=null;function Pt(e){const t=Fc||dy;return e?t.then(this?e.bind(this):e):t}function M_(e){let t=Hr+1,r=Mn.length;for(;t<r;){const o=t+r>>>1,s=Mn[o],c=Ul(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Sh(e){if(!(e.flags&1)){const t=Ul(e),r=Mn[Mn.length-1];!r||!(e.flags&2)&&t>=Ul(r)?Mn.push(e):Mn.splice(M_(t),0,e),e.flags|=1,hy()}}function hy(){Fc||(Fc=dy.then(gy))}function wd(e){He(e)?Ss.push(...e):Fi&&e.id===-1?Fi.splice(hs+1,0,e):e.flags&1||(Ss.push(e),e.flags|=1),hy()}function fv(e,t,r=Hr+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 py(e){if(Ss.length){const t=[...new Set(Ss)].sort((r,o)=>Ul(r)-Ul(o));if(Ss.length=0,Fi){Fi.push(...t);return}for(Fi=t,hs=0;hs<Fi.length;hs++){const r=Fi[hs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Fi=null,hs=0}}const Ul=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gy(e){try{for(Hr=0;Hr<Mn.length;Hr++){const t=Mn[Hr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ga(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Hr<Mn.length;Hr++){const t=Mn[Hr];t&&(t.flags&=-2)}Hr=-1,Mn.length=0,py(),Fc=null,(Mn.length||Ss.length)&&gy()}}let Qt=null,bu=null;function Hc(e){const t=Qt;return Qt=e,bu=e&&e.type.__scopeId||null,t}function vy(e){bu=e}function my(){bu=null}const yy=e=>rt;function rt(e,t=Qt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&qc(-1);const c=Hc(t);let f;try{f=e(...s)}finally{Hc(c),o._d&&qc(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=Eu(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 yo(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(),Er(h,r,8,[e.el,d,e,t]),oo())}}const L_=Symbol("_vte"),by=e=>e.__isTeleport,Hi=Symbol("_leaveCb"),cc=Symbol("_enterCb");function N_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fs(()=>{e.isMounted=!0}),_h(()=>{e.isUnmounting=!0}),e}const or=[Function,Array],wy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:or,onEnter:or,onAfterEnter:or,onEnterCancelled:or,onBeforeLeave:or,onLeave:or,onAfterLeave:or,onLeaveCancelled:or,onBeforeAppear:or,onAppear:or,onAfterAppear:or,onAppearCancelled:or},xy=e=>{const t=e.subTree;return t.component?xy(t.component):t},$_={name:"BaseTransition",props:wy,setup(e,{slots:t}){const r=Hs(),o=N_();return()=>{const s=t.default&&ky(t.default(),!0);if(!s||!s.length)return;const c=Sy(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return qf(c);const h=dv(c);if(!h)return qf(c);let p=xd(h,f,o,r,b=>p=b);h.type!==un&&jl(h,p);const v=r.subTree,m=v&&dv(v);if(m&&m.type!==un&&!Br(h,m)&&xy(r).type!==un){const b=xd(m,f,o,r);if(jl(m,b),d==="out-in"&&h.type!==un)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete b.afterLeave},qf(c);d==="in-out"&&h.type!==un&&(b.delayLeave=(w,A,N)=>{const L=_y(o,m);L[String(m.key)]=m,w[Hi]=()=>{A(),w[Hi]=void 0,delete p.delayedLeave},p.delayedLeave=N})}return c}}};function Sy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==un){t=r;break}}return t}const O_=$_;function _y(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 xd(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:A,onLeaveCancelled:N,onBeforeAppear:L,onAppear:M,onAfterAppear:T,onAppearCancelled:P}=t,E=String(e.key),B=_y(r,e),G=(J,Y)=>{J&&Er(J,o,9,Y)},U=(J,Y)=>{const ee=Y[1];G(J,Y),He(J)?J.every(R=>R.length<=1)&&ee():J.length<=1&&ee()},Q={mode:f,persisted:d,beforeEnter(J){let Y=h;if(!r.isMounted)if(c)Y=L||h;else return;J[Hi]&&J[Hi](!0);const ee=B[E];ee&&Br(e,ee)&&ee.el[Hi]&&ee.el[Hi](),G(Y,[J])},enter(J){let Y=p,ee=v,R=m;if(!r.isMounted)if(c)Y=M||p,ee=T||v,R=P||m;else return;let $=!1;const O=J[cc]=_=>{$||($=!0,_?G(R,[J]):G(ee,[J]),Q.delayedLeave&&Q.delayedLeave(),J[cc]=void 0)};Y?U(Y,[J,O]):O()},leave(J,Y){const ee=String(e.key);if(J[cc]&&J[cc](!0),r.isUnmounting)return Y();G(b,[J]);let R=!1;const $=J[Hi]=O=>{R||(R=!0,Y(),O?G(N,[J]):G(A,[J]),J[Hi]=void 0,B[ee]===e&&delete B[ee])};B[ee]=e,w?U(w,[J,$]):$()},clone(J){const Y=xd(J,t,r,o,s);return s&&s(Y),Y}};return Q}function qf(e){if(wu(e))return e=Zi(e),e.children=null,e}function dv(e){if(!wu(e))return by(e.type)&&e.children?Sy(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 jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 ky(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(ky(f.children,t,d))):(t||f.type!==un)&&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)?tn({name:e.name},t,{setup:e}):e}function Cy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sd(e,t,r,o,s=!1){if(He(e)){e.forEach((A,N)=>Sd(A,t&&(He(t)?t[N]:t),r,o,s));return}if(_s(o)&&!s)return;const c=o.shapeFlag&4?Eu(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:A=>wt(b,A);if(p!=null&&p!==h&&(Rt(p)?(v[p]=null,w(p)&&(m[p]=null)):kt(p)&&(p.value=null)),Ve(h))ga(h,d,12,[f,v]);else{const A=Rt(h),N=kt(h);if(A||N){const L=()=>{if(e.f){const M=A?w(h)?m[h]:v[h]:h.value;s?He(M)&&dh(M,c):He(M)?M.includes(c)||M.push(c):A?(v[h]=[c],w(h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else A?(v[h]=f,w(h)&&(m[h]=f)):N&&(h.value=f,e.k&&(v[e.k]=f))};f?(L.id=-1,Zn(L,r)):L()}}}gu().requestIdleCallback;gu().cancelIdleCallback;const _s=e=>!!e.type.__asyncLoader,wu=e=>e.type.__isKeepAlive;function P_(e,t){Ty(e,"a",t)}function R_(e,t){Ty(e,"da",t)}function Ty(e,t,r=rn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(xu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)wu(s.parent.vnode)&&z_(o,t,r,s),s=s.parent}}function z_(e,t,r,o){const s=xu(t,e,o,!0);Su(()=>{dh(o[t],s)},r)}function xu(e,t,r=rn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{io();const d=ma(r),h=Er(t,r,e,f);return d(),oo(),h});return o?s.unshift(c):s.push(c),c}}const mi=e=>(t,r=rn)=>{(!Kl||e==="sp")&&xu(e,(...o)=>t(...o),r)},D_=mi("bm"),Fs=mi("m"),I_=mi("bu"),F_=mi("u"),_h=mi("bum"),Su=mi("um"),H_=mi("sp"),B_=mi("rtg"),W_=mi("rtc");function q_(e,t=rn){xu("ec",e,t)}const kh="components",U_="directives";function Oo(e,t){return Ch(kh,e,!0,t)||e}const Ey=Symbol.for("v-ndc");function hv(e){return Rt(e)?Ch(kh,e,!1)||e:e||Ey}function Kr(e){return Ch(U_,e)}function Ch(e,t,r=!0,o=!1){const s=Qt||rn;if(s){const c=s.type;if(e===kh){const d=zk(c,!1);if(d&&(d===t||d===tr(t)||d===pu(tr(t))))return c}const f=pv(s[e]||c[e],t)||pv(s.appContext[e],t);return!f&&o?c:f}}function pv(e,t){return e&&(e[t]||e[tr(t)]||e[pu(tr(t))])}function hi(e,t,r,o){let s;const c=r,f=He(e);if(f||Rt(e)){const d=f&&xs(e);let h=!1;d&&(h=!lr(e),e=yu(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?gn(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 j_(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 mn(e,t,r={},o,s){if(Qt.ce||Qt.parent&&_s(Qt.parent)&&Qt.parent.ce)return t!=="default"&&(r.name=t),oe(),nt(ct,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&Ay(c(r)),d=r.key||f&&f.key,h=nt(ct,{key:(d&&!Tr(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 Ay(e){return e.some(t=>$s(t)?!(t.type===un||t.type===ct&&!Ay(t.children)):!0)?e:null}function V_(e,t){const r={};for(const o in e)r[_c(o)]=e[o];return r}const _d=e=>e?eb(e)?Eu(e):_d(e.parent):null,$l=tn(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=>_d(e.parent),$root:e=>_d(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ly(e),$forceUpdate:e=>e.f||(e.f=()=>{Sh(e.update)}),$nextTick:e=>e.n||(e.n=Pt.bind(e.proxy)),$watch:e=>vk.bind(e)}),Uf=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),G_={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(Uf(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];kd&&(f[t]=0)}}const v=$l[t];let m,b;if(v)return t==="$attrs"&&pn(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 Uf(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)||Uf(t,f)||(d=c[0])&&wt(d,f)||wt(o,f)||wt($l,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 K_(){return X_().attrs}function X_(){const e=Hs();return e.setupContext||(e.setupContext=nb(e))}function Bc(e){return He(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Vl(e,t){return!e||!t?e||t:He(e)&&He(t)?e.concat(t):tn({},Bc(e),Bc(t))}let kd=!0;function Y_(e){const t=Ly(e),r=e.proxy,o=e.ctx;kd=!1,t.beforeCreate&&gv(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:A,activated:N,deactivated:L,beforeDestroy:M,beforeUnmount:T,destroyed:P,unmounted:E,render:B,renderTracked:G,renderTriggered:U,errorCaptured:Q,serverPrefetch:J,expose:Y,inheritAttrs:ee,components:R,directives:$,filters:O}=t;if(p&&Z_(p,o,null),f)for(const j in f){const re=f[j];Ve(re)&&(o[j]=re.bind(r))}if(s){const j=s.call(r,r);St(j)&&(e.data=er(j))}if(kd=!0,c)for(const j in c){const re=c[j],pe=Ve(re)?re.bind(r,r):Ve(re.get)?re.get.bind(r,r):Wr,be=!Ve(re)&&Ve(re.set)?re.set.bind(r):Wr,Re=ke({get:pe,set:be});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>Re.value,set:qe=>Re.value=qe})}if(d)for(const j in d)My(d[j],o,r,j);if(h){const j=Ve(h)?h.call(r):h;Reflect.ownKeys(j).forEach(re=>{Cc(re,j[re])})}v&&gv(v,e,"c");function D(j,re){He(re)?re.forEach(pe=>j(pe.bind(r))):re&&j(re.bind(r))}if(D(D_,m),D(Fs,b),D(I_,w),D(F_,A),D(P_,N),D(R_,L),D(q_,Q),D(W_,G),D(B_,U),D(_h,T),D(Su,E),D(H_,J),He(Y))if(Y.length){const j=e.exposed||(e.exposed={});Y.forEach(re=>{Object.defineProperty(j,re,{get:()=>r[re],set:pe=>r[re]=pe})})}else e.exposed||(e.exposed={});B&&e.render===Wr&&(e.render=B),ee!=null&&(e.inheritAttrs=ee),R&&(e.components=R),$&&(e.directives=$),J&&Cy(e)}function Z_(e,t,r=Wr){He(e)&&(e=Cd(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=qr(s.from||o,s.default,!0):c=qr(s.from||o):c=qr(s),kt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function gv(e,t,r){Er(He(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function My(e,t,r,o){let s=o.includes(".")?Uy(r,o):()=>r[o];if(Rt(e)){const c=t[e];Ve(c)&&Et(s,c)}else if(Ve(e))Et(s,e.bind(r));else if(St(e))if(He(e))e.forEach(c=>My(c,t,r,o));else{const c=Ve(e.handler)?e.handler.bind(r):t[e.handler];Ve(c)&&Et(s,c,e)}}function Ly(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=>Wc(h,p,f,!0)),Wc(h,t,f)),St(t)&&c.set(t,h),h}function Wc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Wc(e,c,r,!0),s&&s.forEach(f=>Wc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=J_[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const J_={data:vv,props:mv,emits:mv,methods:Tl,computed:Tl,beforeCreate:Tn,created:Tn,beforeMount:Tn,mounted:Tn,beforeUpdate:Tn,updated:Tn,beforeDestroy:Tn,beforeUnmount:Tn,destroyed:Tn,unmounted:Tn,activated:Tn,deactivated:Tn,errorCaptured:Tn,serverPrefetch:Tn,components:Tl,directives:Tl,watch:ek,provide:vv,inject:Q_};function vv(e,t){return t?e?function(){return tn(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function Q_(e,t){return Tl(Cd(e),Cd(t))}function Cd(e){if(He(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Tn(e,t){return e?[...new Set([].concat(e,t))]:t}function Tl(e,t){return e?tn(Object.create(null),e,t):t}function mv(e,t){return e?He(e)&&He(t)?[...new Set([...e,...t])]:tn(Object.create(null),Bc(e),Bc(t??{})):t}function ek(e,t){if(!e)return t;if(!t)return e;const r=tn(Object.create(null),e);for(const o in t)r[o]=Tn(e[o],t[o]);return r}function Ny(){return{app:null,config:{isNativeTag:IS,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let tk=0;function nk(e,t){return function(o,s=null){Ve(o)||(o=tn({},o)),s!=null&&!St(s)&&(s=null);const c=Ny(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:tk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Ik,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,Eu(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Er(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 Cc(e,t){if(rn){let r=rn.provides;const o=rn.parent&&rn.parent.provides;o===r&&(r=rn.provides=Object.create(o)),r[e]=t}}function qr(e,t,r=!1){const o=rn||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 $y(){return!!(rn||Qt||Mo)}const Oy={},Py=()=>Object.create(Oy),Ry=e=>Object.getPrototypeOf(e)===Oy;function rk(e,t,r,o=!1){const s={},c=Py();e.propsDefaults=Object.create(null),zy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:yh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function ik(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 A=tr(b);s[A]=Td(h,d,A,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{zy(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]=Td(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 zy(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=tr(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]=Td(s,h,m,p[m],e,!wt(p,m))}}return f}function Td(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=ma(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 ok=new WeakMap;function Dy(e,t,r=!1){const o=r?ok: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]=Dy(m,t,!0);tn(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,bs),bs;if(He(c))for(let v=0;v<c.length;v++){const m=tr(c[v]);yv(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=tr(v);if(yv(m)){const b=c[v],w=f[m]=He(b)||Ve(b)?{type:b}:tn({},b),A=w.type;let N=!1,L=!0;if(He(A))for(let M=0;M<A.length;++M){const T=A[M],P=Ve(T)&&T.name;if(P==="Boolean"){N=!0;break}else P==="String"&&(L=!1)}else N=Ve(A)&&A.name==="Boolean";w[0]=N,w[1]=L,(N||wt(w,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function yv(e){return e[0]!=="$"&&!Ml(e)}const Iy=e=>e[0]==="_"||e==="$stable",Th=e=>He(e)?e.map(xr):[xr(e)],sk=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>Th(t(...s)),r);return o._c=!1,o},Fy=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Iy(s))continue;const c=e[s];if(Ve(c))t[s]=sk(s,c,o);else if(c!=null){const f=Th(c);t[s]=()=>f}}},Hy=(e,t)=>{const r=Th(t);e.slots.default=()=>r},By=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},lk=(e,t,r)=>{const o=e.slots=Py();if(e.vnode.shapeFlag&32){const s=t._;s?(By(o,t,r),r&&B0(o,"_",s,!0)):Fy(t,o)}else t&&Hy(e,t)},ak=(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:By(s,t,r):(c=!t.$stable,Fy(t,s)),f=t}else t&&(Hy(e,t),f={default:1});if(c)for(const d in s)!Iy(d)&&f[d]==null&&delete s[d]},Zn=Ek;function ck(e){return uk(e)}function uk(e,t){const r=gu();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=Wr,insertStaticContent:A}=e,N=(I,q,K,le=null,ce=null,ue=null,Se=void 0,_e=null,he=!!q.dynamicChildren)=>{if(I===q)return;I&&!Br(I,q)&&(le=Z(I),qe(I,ce,ue,!0),I=null),q.patchFlag===-2&&(he=!1,q.dynamicChildren=null);const{type:ge,ref:We,shapeFlag:Le}=q;switch(ge){case Tu:L(I,q,K,le);break;case un:M(I,q,K,le);break;case Vf:I==null&&T(q,K,le,Se);break;case ct:R(I,q,K,le,ce,ue,Se,_e,he);break;default:Le&1?B(I,q,K,le,ce,ue,Se,_e,he):Le&6?$(I,q,K,le,ce,ue,Se,_e,he):(Le&64||Le&128)&&ge.process(I,q,K,le,ce,ue,Se,_e,he,Ne)}We!=null&&ce&&Sd(We,I&&I.ref,ue,q||I,!q)},L=(I,q,K,le)=>{if(I==null)o(q.el=d(q.children),K,le);else{const ce=q.el=I.el;q.children!==I.children&&p(ce,q.children)}},M=(I,q,K,le)=>{I==null?o(q.el=h(q.children||""),K,le):q.el=I.el},T=(I,q,K,le)=>{[I.el,I.anchor]=A(I.children,q,K,le,I.el,I.anchor)},P=({el:I,anchor:q},K,le)=>{let ce;for(;I&&I!==q;)ce=b(I),o(I,K,le),I=ce;o(q,K,le)},E=({el:I,anchor:q})=>{let K;for(;I&&I!==q;)K=b(I),s(I),I=K;s(q)},B=(I,q,K,le,ce,ue,Se,_e,he)=>{q.type==="svg"?Se="svg":q.type==="math"&&(Se="mathml"),I==null?G(q,K,le,ce,ue,Se,_e,he):J(I,q,ce,ue,Se,_e,he)},G=(I,q,K,le,ce,ue,Se,_e)=>{let he,ge;const{props:We,shapeFlag:Le,transition:De,dirs:Ue}=I;if(he=I.el=f(I.type,ue,We&&We.is,We),Le&8?v(he,I.children):Le&16&&Q(I.children,he,null,le,ce,jf(I,ue),Se,_e),Ue&&yo(I,null,le,"created"),U(he,I,I.scopeId,Se,le),We){for(const ot in We)ot!=="value"&&!Ml(ot)&&c(he,ot,null,We[ot],ue,le);"value"in We&&c(he,"value",null,We.value,ue),(ge=We.onVnodeBeforeMount)&&Ir(ge,le,I)}Ue&&yo(I,null,le,"beforeMount");const tt=fk(ce,De);tt&&De.beforeEnter(he),o(he,q,K),((ge=We&&We.onVnodeMounted)||tt||Ue)&&Zn(()=>{ge&&Ir(ge,le,I),tt&&De.enter(he),Ue&&yo(I,null,le,"mounted")},ce)},U=(I,q,K,le,ce)=>{if(K&&w(I,K),le)for(let ue=0;ue<le.length;ue++)w(I,le[ue]);if(ce){let ue=ce.subTree;if(q===ue||Gy(ue.type)&&(ue.ssContent===q||ue.ssFallback===q)){const Se=ce.vnode;U(I,Se,Se.scopeId,Se.slotScopeIds,ce.parent)}}},Q=(I,q,K,le,ce,ue,Se,_e,he=0)=>{for(let ge=he;ge<I.length;ge++){const We=I[ge]=_e?Bi(I[ge]):xr(I[ge]);N(null,We,q,K,le,ce,ue,Se,_e)}},J=(I,q,K,le,ce,ue,Se)=>{const _e=q.el=I.el;let{patchFlag:he,dynamicChildren:ge,dirs:We}=q;he|=I.patchFlag&16;const Le=I.props||vt,De=q.props||vt;let Ue;if(K&&bo(K,!1),(Ue=De.onVnodeBeforeUpdate)&&Ir(Ue,K,q,I),We&&yo(q,I,K,"beforeUpdate"),K&&bo(K,!0),(Le.innerHTML&&De.innerHTML==null||Le.textContent&&De.textContent==null)&&v(_e,""),ge?Y(I.dynamicChildren,ge,_e,K,le,jf(q,ce),ue):Se||re(I,q,_e,null,K,le,jf(q,ce),ue,!1),he>0){if(he&16)ee(_e,Le,De,K,ce);else if(he&2&&Le.class!==De.class&&c(_e,"class",null,De.class,ce),he&4&&c(_e,"style",Le.style,De.style,ce),he&8){const tt=q.dynamicProps;for(let ot=0;ot<tt.length;ot++){const lt=tt[ot],Mt=Le[lt],st=De[lt];(st!==Mt||lt==="value")&&c(_e,lt,Mt,st,ce,K)}}he&1&&I.children!==q.children&&v(_e,q.children)}else!Se&&ge==null&&ee(_e,Le,De,K,ce);((Ue=De.onVnodeUpdated)||We)&&Zn(()=>{Ue&&Ir(Ue,K,q,I),We&&yo(q,I,K,"updated")},le)},Y=(I,q,K,le,ce,ue,Se)=>{for(let _e=0;_e<q.length;_e++){const he=I[_e],ge=q[_e],We=he.el&&(he.type===ct||!Br(he,ge)||he.shapeFlag&70)?m(he.el):K;N(he,ge,We,null,le,ce,ue,Se,!0)}},ee=(I,q,K,le,ce)=>{if(q!==K){if(q!==vt)for(const ue in q)!Ml(ue)&&!(ue in K)&&c(I,ue,q[ue],null,ce,le);for(const ue in K){if(Ml(ue))continue;const Se=K[ue],_e=q[ue];Se!==_e&&ue!=="value"&&c(I,ue,_e,Se,ce,le)}"value"in K&&c(I,"value",q.value,K.value,ce)}},R=(I,q,K,le,ce,ue,Se,_e,he)=>{const ge=q.el=I?I.el:d(""),We=q.anchor=I?I.anchor:d("");let{patchFlag:Le,dynamicChildren:De,slotScopeIds:Ue}=q;Ue&&(_e=_e?_e.concat(Ue):Ue),I==null?(o(ge,K,le),o(We,K,le),Q(q.children||[],K,We,ce,ue,Se,_e,he)):Le>0&&Le&64&&De&&I.dynamicChildren?(Y(I.dynamicChildren,De,K,ce,ue,Se,_e),(q.key!=null||ce&&q===ce.subTree)&&Wy(I,q,!0)):re(I,q,K,We,ce,ue,Se,_e,he)},$=(I,q,K,le,ce,ue,Se,_e,he)=>{q.slotScopeIds=_e,I==null?q.shapeFlag&512?ce.ctx.activate(q,K,le,Se,he):O(q,K,le,ce,ue,Se,he):_(I,q,he)},O=(I,q,K,le,ce,ue,Se)=>{const _e=I.component=$k(I,le,ce);if(wu(I)&&(_e.ctx.renderer=Ne),Ok(_e,!1,Se),_e.asyncDep){if(ce&&ce.registerDep(_e,D,Se),!I.el){const he=_e.subTree=Oe(un);M(null,he,q,K)}}else D(_e,I,q,K,ce,ue,Se)},_=(I,q,K)=>{const le=q.component=I.component;if(xk(I,q,K))if(le.asyncDep&&!le.asyncResolved){j(le,q,K);return}else le.next=q,le.update();else q.el=I.el,le.vnode=q},D=(I,q,K,le,ce,ue,Se)=>{const _e=()=>{if(I.isMounted){let{next:Le,bu:De,u:Ue,parent:tt,vnode:ot}=I;{const It=qy(I);if(It){Le&&(Le.el=ot.el,j(I,Le,Se)),It.asyncDep.then(()=>{I.isUnmounted||_e()});return}}let lt=Le,Mt;bo(I,!1),Le?(Le.el=ot.el,j(I,Le,Se)):Le=ot,De&&kc(De),(Mt=Le.props&&Le.props.onVnodeBeforeUpdate)&&Ir(Mt,tt,Le,ot),bo(I,!0);const st=wv(I),jt=I.subTree;I.subTree=st,N(jt,st,m(jt.el),Z(jt),I,ce,ue),Le.el=st.el,lt===null&&Ah(I,st.el),Ue&&Zn(Ue,ce),(Mt=Le.props&&Le.props.onVnodeUpdated)&&Zn(()=>Ir(Mt,tt,Le,ot),ce)}else{let Le;const{el:De,props:Ue}=q,{bm:tt,m:ot,parent:lt,root:Mt,type:st}=I,jt=_s(q);bo(I,!1),tt&&kc(tt),!jt&&(Le=Ue&&Ue.onVnodeBeforeMount)&&Ir(Le,lt,q),bo(I,!0);{Mt.ce&&Mt.ce._injectChildStyle(st);const It=I.subTree=wv(I);N(null,It,K,le,I,ce,ue),q.el=It.el}if(ot&&Zn(ot,ce),!jt&&(Le=Ue&&Ue.onVnodeMounted)){const It=q;Zn(()=>Ir(Le,lt,It),ce)}(q.shapeFlag&256||lt&&_s(lt.vnode)&&lt.vnode.shapeFlag&256)&&I.a&&Zn(I.a,ce),I.isMounted=!0,q=K=le=null}};I.scope.on();const he=I.effect=new K0(_e);I.scope.off();const ge=I.update=he.run.bind(he),We=I.job=he.runIfDirty.bind(he);We.i=I,We.id=I.uid,he.scheduler=()=>Sh(We),bo(I,!0),ge()},j=(I,q,K)=>{q.component=I;const le=I.vnode.props;I.vnode=q,I.next=null,ik(I,q.props,le,K),ak(I,q.children,K),io(),fv(I),oo()},re=(I,q,K,le,ce,ue,Se,_e,he=!1)=>{const ge=I&&I.children,We=I?I.shapeFlag:0,Le=q.children,{patchFlag:De,shapeFlag:Ue}=q;if(De>0){if(De&128){be(ge,Le,K,le,ce,ue,Se,_e,he);return}else if(De&256){pe(ge,Le,K,le,ce,ue,Se,_e,he);return}}Ue&8?(We&16&&Ae(ge,ce,ue),Le!==ge&&v(K,Le)):We&16?Ue&16?be(ge,Le,K,le,ce,ue,Se,_e,he):Ae(ge,ce,ue,!0):(We&8&&v(K,""),Ue&16&&Q(Le,K,le,ce,ue,Se,_e,he))},pe=(I,q,K,le,ce,ue,Se,_e,he)=>{I=I||bs,q=q||bs;const ge=I.length,We=q.length,Le=Math.min(ge,We);let De;for(De=0;De<Le;De++){const Ue=q[De]=he?Bi(q[De]):xr(q[De]);N(I[De],Ue,K,null,ce,ue,Se,_e,he)}ge>We?Ae(I,ce,ue,!0,!1,Le):Q(q,K,le,ce,ue,Se,_e,he,Le)},be=(I,q,K,le,ce,ue,Se,_e,he)=>{let ge=0;const We=q.length;let Le=I.length-1,De=We-1;for(;ge<=Le&&ge<=De;){const Ue=I[ge],tt=q[ge]=he?Bi(q[ge]):xr(q[ge]);if(Br(Ue,tt))N(Ue,tt,K,null,ce,ue,Se,_e,he);else break;ge++}for(;ge<=Le&&ge<=De;){const Ue=I[Le],tt=q[De]=he?Bi(q[De]):xr(q[De]);if(Br(Ue,tt))N(Ue,tt,K,null,ce,ue,Se,_e,he);else break;Le--,De--}if(ge>Le){if(ge<=De){const Ue=De+1,tt=Ue<We?q[Ue].el:le;for(;ge<=De;)N(null,q[ge]=he?Bi(q[ge]):xr(q[ge]),K,tt,ce,ue,Se,_e,he),ge++}}else if(ge>De)for(;ge<=Le;)qe(I[ge],ce,ue,!0),ge++;else{const Ue=ge,tt=ge,ot=new Map;for(ge=tt;ge<=De;ge++){const zt=q[ge]=he?Bi(q[ge]):xr(q[ge]);zt.key!=null&&ot.set(zt.key,ge)}let lt,Mt=0;const st=De-tt+1;let jt=!1,It=0;const Rn=new Array(st);for(ge=0;ge<st;ge++)Rn[ge]=0;for(ge=Ue;ge<=Le;ge++){const zt=I[ge];if(Mt>=st){qe(zt,ce,ue,!0);continue}let zn;if(zt.key!=null)zn=ot.get(zt.key);else for(lt=tt;lt<=De;lt++)if(Rn[lt-tt]===0&&Br(zt,q[lt])){zn=lt;break}zn===void 0?qe(zt,ce,ue,!0):(Rn[zn-tt]=ge+1,zn>=It?It=zn:jt=!0,N(zt,q[zn],K,null,ce,ue,Se,_e,he),Mt++)}const $r=jt?dk(Rn):bs;for(lt=$r.length-1,ge=st-1;ge>=0;ge--){const zt=tt+ge,zn=q[zt],Qe=zt+1<We?q[zt+1].el:le;Rn[ge]===0?N(null,zn,K,Qe,ce,ue,Se,_e,he):jt&&(lt<0||ge!==$r[lt]?Re(zn,K,Qe,2):lt--)}}},Re=(I,q,K,le,ce=null)=>{const{el:ue,type:Se,transition:_e,children:he,shapeFlag:ge}=I;if(ge&6){Re(I.component.subTree,q,K,le);return}if(ge&128){I.suspense.move(q,K,le);return}if(ge&64){Se.move(I,q,K,Ne);return}if(Se===ct){o(ue,q,K);for(let Le=0;Le<he.length;Le++)Re(he[Le],q,K,le);o(I.anchor,q,K);return}if(Se===Vf){P(I,q,K);return}if(le!==2&&ge&1&&_e)if(le===0)_e.beforeEnter(ue),o(ue,q,K),Zn(()=>_e.enter(ue),ce);else{const{leave:Le,delayLeave:De,afterLeave:Ue}=_e,tt=()=>o(ue,q,K),ot=()=>{Le(ue,()=>{tt(),Ue&&Ue()})};De?De(ue,tt,ot):ot()}else o(ue,q,K)},qe=(I,q,K,le=!1,ce=!1)=>{const{type:ue,props:Se,ref:_e,children:he,dynamicChildren:ge,shapeFlag:We,patchFlag:Le,dirs:De,cacheIndex:Ue}=I;if(Le===-2&&(ce=!1),_e!=null&&Sd(_e,null,K,I,!0),Ue!=null&&(q.renderCache[Ue]=void 0),We&256){q.ctx.deactivate(I);return}const tt=We&1&&De,ot=!_s(I);let lt;if(ot&&(lt=Se&&Se.onVnodeBeforeUnmount)&&Ir(lt,q,I),We&6)Xe(I.component,K,le);else{if(We&128){I.suspense.unmount(K,le);return}tt&&yo(I,null,q,"beforeUnmount"),We&64?I.type.remove(I,q,K,Ne,le):ge&&!ge.hasOnce&&(ue!==ct||Le>0&&Le&64)?Ae(ge,q,K,!1,!0):(ue===ct&&Le&384||!ce&&We&16)&&Ae(he,q,K),le&&et(I)}(ot&&(lt=Se&&Se.onVnodeUnmounted)||tt)&&Zn(()=>{lt&&Ir(lt,q,I),tt&&yo(I,null,q,"unmounted")},K)},et=I=>{const{type:q,el:K,anchor:le,transition:ce}=I;if(q===ct){Ye(K,le);return}if(q===Vf){E(I);return}const ue=()=>{s(K),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(I.shapeFlag&1&&ce&&!ce.persisted){const{leave:Se,delayLeave:_e}=ce,he=()=>Se(K,ue);_e?_e(I.el,ue,he):he()}else ue()},Ye=(I,q)=>{let K;for(;I!==q;)K=b(I),s(I),I=K;s(q)},Xe=(I,q,K)=>{const{bum:le,scope:ce,job:ue,subTree:Se,um:_e,m:he,a:ge}=I;bv(he),bv(ge),le&&kc(le),ce.stop(),ue&&(ue.flags|=8,qe(Se,I,q,K)),_e&&Zn(_e,q),Zn(()=>{I.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},Ae=(I,q,K,le=!1,ce=!1,ue=0)=>{for(let Se=ue;Se<I.length;Se++)qe(I[Se],q,K,le,ce)},Z=I=>{if(I.shapeFlag&6)return Z(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const q=b(I.anchor||I.el),K=q&&q[L_];return K?b(K):q};let ae=!1;const de=(I,q,K)=>{I==null?q._vnode&&qe(q._vnode,null,null,!0):N(q._vnode||null,I,q,null,null,null,K),q._vnode=I,ae||(ae=!0,fv(),py(),ae=!1)},Ne={p:N,um:qe,m:Re,r:et,mt:O,mc:Q,pc:re,pbc:Y,n:Z,o:e};return{render:de,hydrate:void 0,createApp:nk(de)}}function jf({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 bo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wy(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&&Wy(f,d)),d.type===Tu&&(d.el=f.el)}}function dk(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 qy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qy(t)}function bv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const hk=Symbol.for("v-scx"),pk=()=>qr(hk);function Eh(e,t){return _u(e,null,t)}function gk(e,t){return _u(e,null,{flush:"sync"})}function Et(e,t,r){return _u(e,t,r)}function _u(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=tn({},r),h=t&&o||!t&&c!=="post";let p;if(Kl){if(c==="sync"){const w=pk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Wr,w.resume=Wr,w.pause=Wr,w}}const v=rn;d.call=(w,A,N)=>Er(w,v,A,N);let m=!1;c==="post"?d.scheduler=w=>{Zn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,A)=>{A?w():Sh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=E_(e,t,d);return Kl&&(p?p.push(b):h&&b()),b}function vk(e,t,r){const o=this.proxy,s=Rt(e)?e.includes(".")?Uy(o,e):()=>o[e]:e.bind(o,o);let c;Ve(t)?c=t:(c=t.handler,r=t);const f=ma(this),d=_u(s,c.bind(o),r);return f(),d}function Uy(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 ku(e,t,r=vt){const o=Hs(),s=tr(t),c=vi(t),f=jy(e,s),d=uy((h,p)=>{let v,m=vt,b;return gk(()=>{const w=e[s];qn(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const A=r.set?r.set(w):w;if(!qn(A,v)&&!(m!==vt&&qn(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}`,A),qn(w,A)&&qn(w,m)&&!qn(A,b)&&p(),m=w,b=A}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const jy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tr(t)}Modifiers`]||e[`${vi(t)}Modifiers`];function mk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&jy(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Rt(v)?v.trim():v)),f.number&&(s=r.map(gd)));let d,h=o[d=_c(t)]||o[d=_c(tr(t))];!h&&c&&(h=o[d=_c(vi(t))]),h&&Er(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,Er(p,e,6,s)}}function Vy(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=Vy(p,t,!0);v&&(d=!0,tn(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):tn(f,c),St(e)&&o.set(e,f),f)}function Cu(e,t){return!e||!fu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,vi(t))||wt(e,t))}function wv(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:A,inheritAttrs:N}=e,L=Hc(e);let M,T;try{if(r.shapeFlag&4){const E=s||o,B=E;M=xr(p.call(B,E,v,m,w,b,A)),T=d}else{const E=t;M=xr(E.length>1?E(m,{attrs:d,slots:f,emit:h}):E(m,null)),T=t.props?d:bk(d)}}catch(E){Ol.length=0,va(E,e,1),M=Oe(un)}let P=M;if(T&&N!==!1){const E=Object.keys(T),{shapeFlag:B}=P;E.length&&B&7&&(c&&E.some(fh)&&(T=wk(T,c)),P=Zi(P,T,!1,!0))}return r.dirs&&(P=Zi(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&jl(P,r.transition),M=P,Hc(L),M}function yk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if($s(s)){if(s.type!==un||s.children==="v-if"){if(r)return;r=s}}else return}return r}const bk=e=>{let t;for(const r in e)(r==="class"||r==="style"||fu(r))&&((t||(t={}))[r]=e[r]);return t},wk=(e,t)=>{const r={};for(const o in e)(!fh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function xk(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?xv(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?xv(o,f,p):!0:!!f;return!1}function xv(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 Ah({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 Gy=e=>e.__isSuspense;let Ed=0;const Sk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)_k(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}kk(e,t,r,o,s,f,d,h,p)}},hydrate:Ck,normalize:Tk},Ky=Sk;function Gl(e,t){const r=e.props&&e.props[t];Ve(r)&&r()}function _k(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Xy(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?(Gl(e,"onPending"),Gl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ks(b,e.ssFallback)):b.resolve(!1,!0)}function kk(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:A,pendingBranch:N,isInFallback:L,isHydrating:M}=m;if(N)m.pendingBranch=b,Br(b,N)?(h(N,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():L&&(M||(h(A,w,r,o,s,null,c,f,d),ks(m,w)))):(m.pendingId=Ed++,M?(m.isHydrating=!1,m.activeBranch=N):p(N,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),L?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(A,w,r,o,s,null,c,f,d),ks(m,w))):A&&Br(b,A)?(h(A,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(A&&Br(b,A))h(A,b,r,o,s,m,c,f,d),ks(m,b);else if(Gl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ed++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:T,pendingId:P}=m;T>0?setTimeout(()=>{m.pendingId===P&&m.fallback(w)},T):T===0&&m.fallback(w)}}function Xy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:A,o:{parentNode:N,remove:L}}=p;let M;const T=Ak(e);T&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const P=e.props?W0(e.props.timeout):void 0,E=c,B={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ed++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(G=!1,U=!1){const{vnode:Q,activeBranch:J,pendingBranch:Y,pendingId:ee,effects:R,parentComponent:$,container:O}=B;let _=!1;B.isHydrating?B.isHydrating=!1:G||(_=J&&Y.transition&&Y.transition.mode==="out-in",_&&(J.transition.afterLeave=()=>{ee===B.pendingId&&(b(Y,O,c===E?A(J):c,0),wd(R))}),J&&(N(J.el)===O&&(c=A(J)),w(J,$,B,!0)),_||b(Y,O,c,0)),ks(B,Y),B.pendingBranch=null,B.isInFallback=!1;let D=B.parent,j=!1;for(;D;){if(D.pendingBranch){D.effects.push(...R),j=!0;break}D=D.parent}!j&&!_&&wd(R),B.effects=[],T&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!U&&t.resolve()),Gl(Q,"onResolve")},fallback(G){if(!B.pendingBranch)return;const{vnode:U,activeBranch:Q,parentComponent:J,container:Y,namespace:ee}=B;Gl(U,"onFallback");const R=A(Q),$=()=>{B.isInFallback&&(m(null,G,Y,R,J,null,ee,d,h),ks(B,G))},O=G.transition&&G.transition.mode==="out-in";O&&(Q.transition.afterLeave=$),B.isInFallback=!0,w(Q,J,null,!0),O||$()},move(G,U,Q){B.activeBranch&&b(B.activeBranch,G,U,Q),B.container=G},next(){return B.activeBranch&&A(B.activeBranch)},registerDep(G,U,Q){const J=!!B.pendingBranch;J&&B.deps++;const Y=G.vnode.el;G.asyncDep.catch(ee=>{va(ee,G,0)}).then(ee=>{if(G.isUnmounted||B.isUnmounted||B.pendingId!==G.suspenseId)return;G.asyncResolved=!0;const{vnode:R}=G;Md(G,ee),Y&&(R.el=Y);const $=!Y&&G.subTree.el;U(G,R,N(Y||G.subTree.el),Y?null:A(G.subTree),B,f,Q),$&&L($),Ah(G,R.el),J&&--B.deps===0&&B.resolve()})},unmount(G,U){B.isUnmounted=!0,B.activeBranch&&w(B.activeBranch,r,G,U),B.pendingBranch&&w(B.pendingBranch,r,G,U)}};return B}function Ck(e,t,r,o,s,c,f,d,h){const p=t.suspense=Xy(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 Tk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Sv(o?r.default:r),e.ssFallback=o?Sv(r.fallback):Oe(un)}function Sv(e){let t;if(Ve(e)){const r=Ns&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=jn,Yy())}return He(e)&&(e=yk(e)),e=xr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Ek(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):wd(e)}function ks(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,Ah(o,s))}function Ak(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Tu=Symbol.for("v-txt"),un=Symbol.for("v-cmt"),Vf=Symbol.for("v-stc"),Ol=[];let jn=null;function oe(e=!1){Ol.push(jn=e?null:[])}function Yy(){Ol.pop(),jn=Ol[Ol.length-1]||null}let Ns=1;function qc(e){Ns+=e,e<0&&jn&&(jn.hasOnce=!0)}function Zy(e){return e.dynamicChildren=Ns>0?jn||bs:null,Yy(),Ns>0&&jn&&jn.push(e),e}function ye(e,t,r,o,s,c){return Zy(te(e,t,r,o,s,c,!0))}function nt(e,t,r,o,s){return Zy(Oe(e,t,r,o,s,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function Br(e,t){return e.type===t.type&&e.key===t.key}const Jy=({key:e})=>e??null,Tc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Rt(e)||kt(e)||Ve(e)?{i:Qt,r:e,k:t,f:!!r}:e:null);function te(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&&Jy(t),ref:t&&Tc(t),scopeId:bu,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|=Rt(r)?8:16),Ns>0&&!f&&jn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&jn.push(h),h}const Oe=Mk;function Mk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Ey)&&(e=un),$s(e)){const d=Zi(e,t,!0);return r&&Mh(d,r),Ns>0&&!c&&jn&&(d.shapeFlag&6?jn[jn.indexOf(e)]=d:jn.push(d)),d.patchFlag=-2,d}if(Dk(e)&&(e=e.__vccOpts),t){t=Qy(t);let{class:d,style:h}=t;d&&!Rt(d)&&(t.class=it(d)),St(h)&&(wh(h)&&!He(h)&&(h=tn({},h)),t.style=en(h))}const f=Rt(e)?1:Gy(e)?128:by(e)?64:St(e)?4:Ve(e)?2:0;return te(e,t,r,o,s,f,c,!0)}function Qy(e){return e?wh(e)||Ry(e)?tn({},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&&Jy(p),ref:t&&t.ref?r&&c?He(c)?c.concat(Tc(t)):[c,Tc(t)]:Tc(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&&jl(v,h.clone(v)),v}function pt(e=" ",t=0){return Oe(Tu,null,e,t)}function Ke(e="",t=!1){return t?(oe(),nt(un,null,e)):Oe(un,null,e)}function xr(e){return e==null||typeof e=="boolean"?Oe(un):He(e)?Oe(ct,null,e.slice()):$s(e)?Bi(e):Oe(Tu,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&&!Ry(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(fu(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 Ir(e,t,r,o=null){Er(e,t,7,[r,o])}const Lk=Ny();let Nk=0;function $k(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Lk,c={uid:Nk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ZS(!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:Dy(o,s),emitsOptions:Vy(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=mk.bind(null,c),e.ce&&e.ce(c),c}let rn=null;const Hs=()=>rn||Qt;let Uc,Ad;{const e=gu(),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)}};Uc=t("__VUE_INSTANCE_SETTERS__",r=>rn=r),Ad=t("__VUE_SSR_SETTERS__",r=>Kl=r)}const ma=e=>{const t=rn;return Uc(e),e.scope.on(),()=>{e.scope.off(),Uc(t)}},_v=()=>{rn&&rn.scope.off(),Uc(null)};function eb(e){return e.vnode.shapeFlag&4}let Kl=!1;function Ok(e,t=!1,r=!1){t&&Ad(t);const{props:o,children:s}=e.vnode,c=eb(e);rk(e,o,c,t),lk(e,s,r);const f=c?Pk(e,t):void 0;return t&&Ad(!1),f}function Pk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,G_);const{setup:o}=r;if(o){io();const s=e.setupContext=o.length>1?nb(e):null,c=ma(e),f=ga(o,e,0,[e.props,s]),d=I0(f);if(oo(),c(),(d||e.sp)&&!_s(e)&&Cy(e),d){if(f.then(_v,_v),t)return f.then(h=>{Md(e,h)}).catch(h=>{va(h,e,0)});e.asyncDep=f}else Md(e,f)}else tb(e)}function Md(e,t,r){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=cy(t)),tb(e)}function tb(e,t,r){const o=e.type;e.render||(e.render=o.render||Wr);{const s=ma(e);io();try{Y_(e)}finally{oo(),s()}}}const Rk={get(e,t){return pn(e,"get",""),e[t]}};function nb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Rk),slots:e.slots,emit:e.emit,expose:t}}function Eu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(cy(xh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in $l)return $l[r](e)},has(t,r){return r in t||r in $l}})):e.proxy}function zk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Dk(e){return Ve(e)&&"__vccOpts"in e}const ke=(e,t)=>C_(e,t,Kl);function ya(e,t,r){const o=arguments.length;return o===2?St(t)&&!He(t)?$s(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&$s(r)&&(r=[r]),Oe(e,t,r))}const Ik="3.5.12";/**
13
+ **/function ga(e,t,r,o){try{return o?e(...o):e()}catch(s){va(s,t,r)}}function Er(e,t,r,o){if(Ve(e)){const s=ga(e,t,r,o);return s&&F0(s)&&s.catch(c=>{va(c,t,r)}),s}if(He(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Er(e[c],t,r,o));return s}}function va(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(),ga(c,null,10,[e,h,p]),oo();return}}M_(e,r,s,o,f)}function M_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Mn=[];let Hr=-1;const Ss=[];let Fi=null,hs=0;const hy=Promise.resolve();let Fc=null;function Pt(e){const t=Fc||hy;return e?t.then(this?e.bind(this):e):t}function L_(e){let t=Hr+1,r=Mn.length;for(;t<r;){const o=t+r>>>1,s=Mn[o],c=Ul(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Sh(e){if(!(e.flags&1)){const t=Ul(e),r=Mn[Mn.length-1];!r||!(e.flags&2)&&t>=Ul(r)?Mn.push(e):Mn.splice(L_(t),0,e),e.flags|=1,py()}}function py(){Fc||(Fc=hy.then(vy))}function wd(e){He(e)?Ss.push(...e):Fi&&e.id===-1?Fi.splice(hs+1,0,e):e.flags&1||(Ss.push(e),e.flags|=1),py()}function fv(e,t,r=Hr+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 gy(e){if(Ss.length){const t=[...new Set(Ss)].sort((r,o)=>Ul(r)-Ul(o));if(Ss.length=0,Fi){Fi.push(...t);return}for(Fi=t,hs=0;hs<Fi.length;hs++){const r=Fi[hs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Fi=null,hs=0}}const Ul=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vy(e){try{for(Hr=0;Hr<Mn.length;Hr++){const t=Mn[Hr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ga(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Hr<Mn.length;Hr++){const t=Mn[Hr];t&&(t.flags&=-2)}Hr=-1,Mn.length=0,gy(),Fc=null,(Mn.length||Ss.length)&&vy()}}let Qt=null,bu=null;function Hc(e){const t=Qt;return Qt=e,bu=e&&e.type.__scopeId||null,t}function my(e){bu=e}function yy(){bu=null}const by=e=>rt;function rt(e,t=Qt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&qc(-1);const c=Hc(t);let f;try{f=e(...s)}finally{Hc(c),o._d&&qc(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=Eu(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 yo(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(),Er(h,r,8,[e.el,d,e,t]),oo())}}const N_=Symbol("_vte"),wy=e=>e.__isTeleport,Hi=Symbol("_leaveCb"),cc=Symbol("_enterCb");function $_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fs(()=>{e.isMounted=!0}),_h(()=>{e.isUnmounting=!0}),e}const or=[Function,Array],xy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:or,onEnter:or,onAfterEnter:or,onEnterCancelled:or,onBeforeLeave:or,onLeave:or,onAfterLeave:or,onLeaveCancelled:or,onBeforeAppear:or,onAppear:or,onAfterAppear:or,onAppearCancelled:or},Sy=e=>{const t=e.subTree;return t.component?Sy(t.component):t},O_={name:"BaseTransition",props:xy,setup(e,{slots:t}){const r=Hs(),o=$_();return()=>{const s=t.default&&Cy(t.default(),!0);if(!s||!s.length)return;const c=_y(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return qf(c);const h=dv(c);if(!h)return qf(c);let p=xd(h,f,o,r,b=>p=b);h.type!==un&&jl(h,p);const v=r.subTree,m=v&&dv(v);if(m&&m.type!==un&&!Br(h,m)&&Sy(r).type!==un){const b=xd(m,f,o,r);if(jl(m,b),d==="out-in"&&h.type!==un)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete b.afterLeave},qf(c);d==="in-out"&&h.type!==un&&(b.delayLeave=(w,E,N)=>{const L=ky(o,m);L[String(m.key)]=m,w[Hi]=()=>{E(),w[Hi]=void 0,delete p.delayedLeave},p.delayedLeave=N})}return c}}};function _y(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==un){t=r;break}}return t}const P_=O_;function ky(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 xd(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:L,onAppear:M,onAfterAppear:T,onAppearCancelled:P}=t,A=String(e.key),B=ky(r,e),G=(J,Y)=>{J&&Er(J,o,9,Y)},U=(J,Y)=>{const ee=Y[1];G(J,Y),He(J)?J.every(R=>R.length<=1)&&ee():J.length<=1&&ee()},Q={mode:f,persisted:d,beforeEnter(J){let Y=h;if(!r.isMounted)if(c)Y=L||h;else return;J[Hi]&&J[Hi](!0);const ee=B[A];ee&&Br(e,ee)&&ee.el[Hi]&&ee.el[Hi](),G(Y,[J])},enter(J){let Y=p,ee=v,R=m;if(!r.isMounted)if(c)Y=M||p,ee=T||v,R=P||m;else return;let $=!1;const O=J[cc]=_=>{$||($=!0,_?G(R,[J]):G(ee,[J]),Q.delayedLeave&&Q.delayedLeave(),J[cc]=void 0)};Y?U(Y,[J,O]):O()},leave(J,Y){const ee=String(e.key);if(J[cc]&&J[cc](!0),r.isUnmounting)return Y();G(b,[J]);let R=!1;const $=J[Hi]=O=>{R||(R=!0,Y(),O?G(N,[J]):G(E,[J]),J[Hi]=void 0,B[ee]===e&&delete B[ee])};B[ee]=e,w?U(w,[J,$]):$()},clone(J){const Y=xd(J,t,r,o,s);return s&&s(Y),Y}};return Q}function qf(e){if(wu(e))return e=Zi(e),e.children=null,e}function dv(e){if(!wu(e))return wy(e.type)&&e.children?_y(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 jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 Cy(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(Cy(f.children,t,d))):(t||f.type!==un)&&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)?tn({name:e.name},t,{setup:e}):e}function Ty(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(_s(o)&&!s)return;const c=o.shapeFlag&4?Eu(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&&(Rt(p)?(v[p]=null,w(p)&&(m[p]=null)):kt(p)&&(p.value=null)),Ve(h))ga(h,d,12,[f,v]);else{const E=Rt(h),N=kt(h);if(E||N){const L=()=>{if(e.f){const M=E?w(h)?m[h]:v[h]:h.value;s?He(M)&&dh(M,c):He(M)?M.includes(c)||M.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?(L.id=-1,Zn(L,r)):L()}}}gu().requestIdleCallback;gu().cancelIdleCallback;const _s=e=>!!e.type.__asyncLoader,wu=e=>e.type.__isKeepAlive;function R_(e,t){Ey(e,"a",t)}function z_(e,t){Ey(e,"da",t)}function Ey(e,t,r=rn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(xu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)wu(s.parent.vnode)&&D_(o,t,r,s),s=s.parent}}function D_(e,t,r,o){const s=xu(t,e,o,!0);Su(()=>{dh(o[t],s)},r)}function xu(e,t,r=rn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{io();const d=ma(r),h=Er(t,r,e,f);return d(),oo(),h});return o?s.unshift(c):s.push(c),c}}const mi=e=>(t,r=rn)=>{(!Kl||e==="sp")&&xu(e,(...o)=>t(...o),r)},I_=mi("bm"),Fs=mi("m"),F_=mi("bu"),H_=mi("u"),_h=mi("bum"),Su=mi("um"),B_=mi("sp"),W_=mi("rtg"),q_=mi("rtc");function U_(e,t=rn){xu("ec",e,t)}const kh="components",j_="directives";function Oo(e,t){return Ch(kh,e,!0,t)||e}const Ay=Symbol.for("v-ndc");function hv(e){return Rt(e)?Ch(kh,e,!1)||e:e||Ay}function Kr(e){return Ch(j_,e)}function Ch(e,t,r=!0,o=!1){const s=Qt||rn;if(s){const c=s.type;if(e===kh){const d=Dk(c,!1);if(d&&(d===t||d===tr(t)||d===pu(tr(t))))return c}const f=pv(s[e]||c[e],t)||pv(s.appContext[e],t);return!f&&o?c:f}}function pv(e,t){return e&&(e[t]||e[tr(t)]||e[pu(tr(t))])}function hi(e,t,r,o){let s;const c=r,f=He(e);if(f||Rt(e)){const d=f&&xs(e);let h=!1;d&&(h=!lr(e),e=yu(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?gn(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 V_(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 mn(e,t,r={},o,s){if(Qt.ce||Qt.parent&&_s(Qt.parent)&&Qt.parent.ce)return t!=="default"&&(r.name=t),oe(),nt(ct,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&My(c(r)),d=r.key||f&&f.key,h=nt(ct,{key:(d&&!Tr(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 My(e){return e.some(t=>$s(t)?!(t.type===un||t.type===ct&&!My(t.children)):!0)?e:null}function G_(e,t){const r={};for(const o in e)r[_c(o)]=e[o];return r}const _d=e=>e?tb(e)?Eu(e):_d(e.parent):null,$l=tn(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=>_d(e.parent),$root:e=>_d(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ny(e),$forceUpdate:e=>e.f||(e.f=()=>{Sh(e.update)}),$nextTick:e=>e.n||(e.n=Pt.bind(e.proxy)),$watch:e=>mk.bind(e)}),Uf=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),K_={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(Uf(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];kd&&(f[t]=0)}}const v=$l[t];let m,b;if(v)return t==="$attrs"&&pn(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 Uf(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)||Uf(t,f)||(d=c[0])&&wt(d,f)||wt(o,f)||wt($l,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 X_(){return Y_().attrs}function Y_(){const e=Hs();return e.setupContext||(e.setupContext=rb(e))}function Bc(e){return He(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Vl(e,t){return!e||!t?e||t:He(e)&&He(t)?e.concat(t):tn({},Bc(e),Bc(t))}let kd=!0;function Z_(e){const t=Ny(e),r=e.proxy,o=e.ctx;kd=!1,t.beforeCreate&&gv(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:L,beforeDestroy:M,beforeUnmount:T,destroyed:P,unmounted:A,render:B,renderTracked:G,renderTriggered:U,errorCaptured:Q,serverPrefetch:J,expose:Y,inheritAttrs:ee,components:R,directives:$,filters:O}=t;if(p&&J_(p,o,null),f)for(const j in f){const re=f[j];Ve(re)&&(o[j]=re.bind(r))}if(s){const j=s.call(r,r);St(j)&&(e.data=er(j))}if(kd=!0,c)for(const j in c){const re=c[j],pe=Ve(re)?re.bind(r,r):Ve(re.get)?re.get.bind(r,r):Wr,be=!Ve(re)&&Ve(re.set)?re.set.bind(r):Wr,Re=ke({get:pe,set:be});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>Re.value,set:qe=>Re.value=qe})}if(d)for(const j in d)Ly(d[j],o,r,j);if(h){const j=Ve(h)?h.call(r):h;Reflect.ownKeys(j).forEach(re=>{Cc(re,j[re])})}v&&gv(v,e,"c");function D(j,re){He(re)?re.forEach(pe=>j(pe.bind(r))):re&&j(re.bind(r))}if(D(I_,m),D(Fs,b),D(F_,w),D(H_,E),D(R_,N),D(z_,L),D(U_,Q),D(q_,G),D(W_,U),D(_h,T),D(Su,A),D(B_,J),He(Y))if(Y.length){const j=e.exposed||(e.exposed={});Y.forEach(re=>{Object.defineProperty(j,re,{get:()=>r[re],set:pe=>r[re]=pe})})}else e.exposed||(e.exposed={});B&&e.render===Wr&&(e.render=B),ee!=null&&(e.inheritAttrs=ee),R&&(e.components=R),$&&(e.directives=$),J&&Ty(e)}function J_(e,t,r=Wr){He(e)&&(e=Cd(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=qr(s.from||o,s.default,!0):c=qr(s.from||o):c=qr(s),kt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function gv(e,t,r){Er(He(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ly(e,t,r,o){let s=o.includes(".")?jy(r,o):()=>r[o];if(Rt(e)){const c=t[e];Ve(c)&&Et(s,c)}else if(Ve(e))Et(s,e.bind(r));else if(St(e))if(He(e))e.forEach(c=>Ly(c,t,r,o));else{const c=Ve(e.handler)?e.handler.bind(r):t[e.handler];Ve(c)&&Et(s,c,e)}}function Ny(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=>Wc(h,p,f,!0)),Wc(h,t,f)),St(t)&&c.set(t,h),h}function Wc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Wc(e,c,r,!0),s&&s.forEach(f=>Wc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=Q_[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const Q_={data:vv,props:mv,emits:mv,methods:Tl,computed:Tl,beforeCreate:Tn,created:Tn,beforeMount:Tn,mounted:Tn,beforeUpdate:Tn,updated:Tn,beforeDestroy:Tn,beforeUnmount:Tn,destroyed:Tn,unmounted:Tn,activated:Tn,deactivated:Tn,errorCaptured:Tn,serverPrefetch:Tn,components:Tl,directives:Tl,watch:tk,provide:vv,inject:ek};function vv(e,t){return t?e?function(){return tn(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function ek(e,t){return Tl(Cd(e),Cd(t))}function Cd(e){if(He(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Tn(e,t){return e?[...new Set([].concat(e,t))]:t}function Tl(e,t){return e?tn(Object.create(null),e,t):t}function mv(e,t){return e?He(e)&&He(t)?[...new Set([...e,...t])]:tn(Object.create(null),Bc(e),Bc(t??{})):t}function tk(e,t){if(!e)return t;if(!t)return e;const r=tn(Object.create(null),e);for(const o in t)r[o]=Tn(e[o],t[o]);return r}function $y(){return{app:null,config:{isNativeTag:FS,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 nk=0;function rk(e,t){return function(o,s=null){Ve(o)||(o=tn({},o)),s!=null&&!St(s)&&(s=null);const c=$y(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:nk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Fk,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,Eu(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Er(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 Cc(e,t){if(rn){let r=rn.provides;const o=rn.parent&&rn.parent.provides;o===r&&(r=rn.provides=Object.create(o)),r[e]=t}}function qr(e,t,r=!1){const o=rn||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 Oy(){return!!(rn||Qt||Mo)}const Py={},Ry=()=>Object.create(Py),zy=e=>Object.getPrototypeOf(e)===Py;function ik(e,t,r,o=!1){const s={},c=Ry();e.propsDefaults=Object.create(null),Dy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:yh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function ok(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=tr(b);s[E]=Td(h,d,E,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Dy(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]=Td(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 Dy(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=tr(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]=Td(s,h,m,p[m],e,!wt(p,m))}}return f}function Td(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=ma(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 sk=new WeakMap;function Iy(e,t,r=!1){const o=r?sk: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]=Iy(m,t,!0);tn(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,bs),bs;if(He(c))for(let v=0;v<c.length;v++){const m=tr(c[v]);yv(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=tr(v);if(yv(m)){const b=c[v],w=f[m]=He(b)||Ve(b)?{type:b}:tn({},b),E=w.type;let N=!1,L=!0;if(He(E))for(let M=0;M<E.length;++M){const T=E[M],P=Ve(T)&&T.name;if(P==="Boolean"){N=!0;break}else P==="String"&&(L=!1)}else N=Ve(E)&&E.name==="Boolean";w[0]=N,w[1]=L,(N||wt(w,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function yv(e){return e[0]!=="$"&&!Ml(e)}const Fy=e=>e[0]==="_"||e==="$stable",Th=e=>He(e)?e.map(xr):[xr(e)],lk=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>Th(t(...s)),r);return o._c=!1,o},Hy=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Fy(s))continue;const c=e[s];if(Ve(c))t[s]=lk(s,c,o);else if(c!=null){const f=Th(c);t[s]=()=>f}}},By=(e,t)=>{const r=Th(t);e.slots.default=()=>r},Wy=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},ak=(e,t,r)=>{const o=e.slots=Ry();if(e.vnode.shapeFlag&32){const s=t._;s?(Wy(o,t,r),r&&W0(o,"_",s,!0)):Hy(t,o)}else t&&By(e,t)},ck=(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:Wy(s,t,r):(c=!t.$stable,Hy(t,s)),f=t}else t&&(By(e,t),f={default:1});if(c)for(const d in s)!Fy(d)&&f[d]==null&&delete s[d]},Zn=Ak;function uk(e){return fk(e)}function fk(e,t){const r=gu();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=Wr,insertStaticContent:E}=e,N=(I,q,K,le=null,ce=null,ue=null,Se=void 0,_e=null,he=!!q.dynamicChildren)=>{if(I===q)return;I&&!Br(I,q)&&(le=Z(I),qe(I,ce,ue,!0),I=null),q.patchFlag===-2&&(he=!1,q.dynamicChildren=null);const{type:ge,ref:We,shapeFlag:Le}=q;switch(ge){case Tu:L(I,q,K,le);break;case un:M(I,q,K,le);break;case Vf:I==null&&T(q,K,le,Se);break;case ct:R(I,q,K,le,ce,ue,Se,_e,he);break;default:Le&1?B(I,q,K,le,ce,ue,Se,_e,he):Le&6?$(I,q,K,le,ce,ue,Se,_e,he):(Le&64||Le&128)&&ge.process(I,q,K,le,ce,ue,Se,_e,he,Ne)}We!=null&&ce&&Sd(We,I&&I.ref,ue,q||I,!q)},L=(I,q,K,le)=>{if(I==null)o(q.el=d(q.children),K,le);else{const ce=q.el=I.el;q.children!==I.children&&p(ce,q.children)}},M=(I,q,K,le)=>{I==null?o(q.el=h(q.children||""),K,le):q.el=I.el},T=(I,q,K,le)=>{[I.el,I.anchor]=E(I.children,q,K,le,I.el,I.anchor)},P=({el:I,anchor:q},K,le)=>{let ce;for(;I&&I!==q;)ce=b(I),o(I,K,le),I=ce;o(q,K,le)},A=({el:I,anchor:q})=>{let K;for(;I&&I!==q;)K=b(I),s(I),I=K;s(q)},B=(I,q,K,le,ce,ue,Se,_e,he)=>{q.type==="svg"?Se="svg":q.type==="math"&&(Se="mathml"),I==null?G(q,K,le,ce,ue,Se,_e,he):J(I,q,ce,ue,Se,_e,he)},G=(I,q,K,le,ce,ue,Se,_e)=>{let he,ge;const{props:We,shapeFlag:Le,transition:De,dirs:Ue}=I;if(he=I.el=f(I.type,ue,We&&We.is,We),Le&8?v(he,I.children):Le&16&&Q(I.children,he,null,le,ce,jf(I,ue),Se,_e),Ue&&yo(I,null,le,"created"),U(he,I,I.scopeId,Se,le),We){for(const ot in We)ot!=="value"&&!Ml(ot)&&c(he,ot,null,We[ot],ue,le);"value"in We&&c(he,"value",null,We.value,ue),(ge=We.onVnodeBeforeMount)&&Ir(ge,le,I)}Ue&&yo(I,null,le,"beforeMount");const tt=dk(ce,De);tt&&De.beforeEnter(he),o(he,q,K),((ge=We&&We.onVnodeMounted)||tt||Ue)&&Zn(()=>{ge&&Ir(ge,le,I),tt&&De.enter(he),Ue&&yo(I,null,le,"mounted")},ce)},U=(I,q,K,le,ce)=>{if(K&&w(I,K),le)for(let ue=0;ue<le.length;ue++)w(I,le[ue]);if(ce){let ue=ce.subTree;if(q===ue||Ky(ue.type)&&(ue.ssContent===q||ue.ssFallback===q)){const Se=ce.vnode;U(I,Se,Se.scopeId,Se.slotScopeIds,ce.parent)}}},Q=(I,q,K,le,ce,ue,Se,_e,he=0)=>{for(let ge=he;ge<I.length;ge++){const We=I[ge]=_e?Bi(I[ge]):xr(I[ge]);N(null,We,q,K,le,ce,ue,Se,_e)}},J=(I,q,K,le,ce,ue,Se)=>{const _e=q.el=I.el;let{patchFlag:he,dynamicChildren:ge,dirs:We}=q;he|=I.patchFlag&16;const Le=I.props||vt,De=q.props||vt;let Ue;if(K&&bo(K,!1),(Ue=De.onVnodeBeforeUpdate)&&Ir(Ue,K,q,I),We&&yo(q,I,K,"beforeUpdate"),K&&bo(K,!0),(Le.innerHTML&&De.innerHTML==null||Le.textContent&&De.textContent==null)&&v(_e,""),ge?Y(I.dynamicChildren,ge,_e,K,le,jf(q,ce),ue):Se||re(I,q,_e,null,K,le,jf(q,ce),ue,!1),he>0){if(he&16)ee(_e,Le,De,K,ce);else if(he&2&&Le.class!==De.class&&c(_e,"class",null,De.class,ce),he&4&&c(_e,"style",Le.style,De.style,ce),he&8){const tt=q.dynamicProps;for(let ot=0;ot<tt.length;ot++){const lt=tt[ot],Mt=Le[lt],st=De[lt];(st!==Mt||lt==="value")&&c(_e,lt,Mt,st,ce,K)}}he&1&&I.children!==q.children&&v(_e,q.children)}else!Se&&ge==null&&ee(_e,Le,De,K,ce);((Ue=De.onVnodeUpdated)||We)&&Zn(()=>{Ue&&Ir(Ue,K,q,I),We&&yo(q,I,K,"updated")},le)},Y=(I,q,K,le,ce,ue,Se)=>{for(let _e=0;_e<q.length;_e++){const he=I[_e],ge=q[_e],We=he.el&&(he.type===ct||!Br(he,ge)||he.shapeFlag&70)?m(he.el):K;N(he,ge,We,null,le,ce,ue,Se,!0)}},ee=(I,q,K,le,ce)=>{if(q!==K){if(q!==vt)for(const ue in q)!Ml(ue)&&!(ue in K)&&c(I,ue,q[ue],null,ce,le);for(const ue in K){if(Ml(ue))continue;const Se=K[ue],_e=q[ue];Se!==_e&&ue!=="value"&&c(I,ue,_e,Se,ce,le)}"value"in K&&c(I,"value",q.value,K.value,ce)}},R=(I,q,K,le,ce,ue,Se,_e,he)=>{const ge=q.el=I?I.el:d(""),We=q.anchor=I?I.anchor:d("");let{patchFlag:Le,dynamicChildren:De,slotScopeIds:Ue}=q;Ue&&(_e=_e?_e.concat(Ue):Ue),I==null?(o(ge,K,le),o(We,K,le),Q(q.children||[],K,We,ce,ue,Se,_e,he)):Le>0&&Le&64&&De&&I.dynamicChildren?(Y(I.dynamicChildren,De,K,ce,ue,Se,_e),(q.key!=null||ce&&q===ce.subTree)&&qy(I,q,!0)):re(I,q,K,We,ce,ue,Se,_e,he)},$=(I,q,K,le,ce,ue,Se,_e,he)=>{q.slotScopeIds=_e,I==null?q.shapeFlag&512?ce.ctx.activate(q,K,le,Se,he):O(q,K,le,ce,ue,Se,he):_(I,q,he)},O=(I,q,K,le,ce,ue,Se)=>{const _e=I.component=Ok(I,le,ce);if(wu(I)&&(_e.ctx.renderer=Ne),Pk(_e,!1,Se),_e.asyncDep){if(ce&&ce.registerDep(_e,D,Se),!I.el){const he=_e.subTree=Oe(un);M(null,he,q,K)}}else D(_e,I,q,K,ce,ue,Se)},_=(I,q,K)=>{const le=q.component=I.component;if(Sk(I,q,K))if(le.asyncDep&&!le.asyncResolved){j(le,q,K);return}else le.next=q,le.update();else q.el=I.el,le.vnode=q},D=(I,q,K,le,ce,ue,Se)=>{const _e=()=>{if(I.isMounted){let{next:Le,bu:De,u:Ue,parent:tt,vnode:ot}=I;{const It=Uy(I);if(It){Le&&(Le.el=ot.el,j(I,Le,Se)),It.asyncDep.then(()=>{I.isUnmounted||_e()});return}}let lt=Le,Mt;bo(I,!1),Le?(Le.el=ot.el,j(I,Le,Se)):Le=ot,De&&kc(De),(Mt=Le.props&&Le.props.onVnodeBeforeUpdate)&&Ir(Mt,tt,Le,ot),bo(I,!0);const st=wv(I),jt=I.subTree;I.subTree=st,N(jt,st,m(jt.el),Z(jt),I,ce,ue),Le.el=st.el,lt===null&&Ah(I,st.el),Ue&&Zn(Ue,ce),(Mt=Le.props&&Le.props.onVnodeUpdated)&&Zn(()=>Ir(Mt,tt,Le,ot),ce)}else{let Le;const{el:De,props:Ue}=q,{bm:tt,m:ot,parent:lt,root:Mt,type:st}=I,jt=_s(q);bo(I,!1),tt&&kc(tt),!jt&&(Le=Ue&&Ue.onVnodeBeforeMount)&&Ir(Le,lt,q),bo(I,!0);{Mt.ce&&Mt.ce._injectChildStyle(st);const It=I.subTree=wv(I);N(null,It,K,le,I,ce,ue),q.el=It.el}if(ot&&Zn(ot,ce),!jt&&(Le=Ue&&Ue.onVnodeMounted)){const It=q;Zn(()=>Ir(Le,lt,It),ce)}(q.shapeFlag&256||lt&&_s(lt.vnode)&&lt.vnode.shapeFlag&256)&&I.a&&Zn(I.a,ce),I.isMounted=!0,q=K=le=null}};I.scope.on();const he=I.effect=new X0(_e);I.scope.off();const ge=I.update=he.run.bind(he),We=I.job=he.runIfDirty.bind(he);We.i=I,We.id=I.uid,he.scheduler=()=>Sh(We),bo(I,!0),ge()},j=(I,q,K)=>{q.component=I;const le=I.vnode.props;I.vnode=q,I.next=null,ok(I,q.props,le,K),ck(I,q.children,K),io(),fv(I),oo()},re=(I,q,K,le,ce,ue,Se,_e,he=!1)=>{const ge=I&&I.children,We=I?I.shapeFlag:0,Le=q.children,{patchFlag:De,shapeFlag:Ue}=q;if(De>0){if(De&128){be(ge,Le,K,le,ce,ue,Se,_e,he);return}else if(De&256){pe(ge,Le,K,le,ce,ue,Se,_e,he);return}}Ue&8?(We&16&&Ae(ge,ce,ue),Le!==ge&&v(K,Le)):We&16?Ue&16?be(ge,Le,K,le,ce,ue,Se,_e,he):Ae(ge,ce,ue,!0):(We&8&&v(K,""),Ue&16&&Q(Le,K,le,ce,ue,Se,_e,he))},pe=(I,q,K,le,ce,ue,Se,_e,he)=>{I=I||bs,q=q||bs;const ge=I.length,We=q.length,Le=Math.min(ge,We);let De;for(De=0;De<Le;De++){const Ue=q[De]=he?Bi(q[De]):xr(q[De]);N(I[De],Ue,K,null,ce,ue,Se,_e,he)}ge>We?Ae(I,ce,ue,!0,!1,Le):Q(q,K,le,ce,ue,Se,_e,he,Le)},be=(I,q,K,le,ce,ue,Se,_e,he)=>{let ge=0;const We=q.length;let Le=I.length-1,De=We-1;for(;ge<=Le&&ge<=De;){const Ue=I[ge],tt=q[ge]=he?Bi(q[ge]):xr(q[ge]);if(Br(Ue,tt))N(Ue,tt,K,null,ce,ue,Se,_e,he);else break;ge++}for(;ge<=Le&&ge<=De;){const Ue=I[Le],tt=q[De]=he?Bi(q[De]):xr(q[De]);if(Br(Ue,tt))N(Ue,tt,K,null,ce,ue,Se,_e,he);else break;Le--,De--}if(ge>Le){if(ge<=De){const Ue=De+1,tt=Ue<We?q[Ue].el:le;for(;ge<=De;)N(null,q[ge]=he?Bi(q[ge]):xr(q[ge]),K,tt,ce,ue,Se,_e,he),ge++}}else if(ge>De)for(;ge<=Le;)qe(I[ge],ce,ue,!0),ge++;else{const Ue=ge,tt=ge,ot=new Map;for(ge=tt;ge<=De;ge++){const zt=q[ge]=he?Bi(q[ge]):xr(q[ge]);zt.key!=null&&ot.set(zt.key,ge)}let lt,Mt=0;const st=De-tt+1;let jt=!1,It=0;const Rn=new Array(st);for(ge=0;ge<st;ge++)Rn[ge]=0;for(ge=Ue;ge<=Le;ge++){const zt=I[ge];if(Mt>=st){qe(zt,ce,ue,!0);continue}let zn;if(zt.key!=null)zn=ot.get(zt.key);else for(lt=tt;lt<=De;lt++)if(Rn[lt-tt]===0&&Br(zt,q[lt])){zn=lt;break}zn===void 0?qe(zt,ce,ue,!0):(Rn[zn-tt]=ge+1,zn>=It?It=zn:jt=!0,N(zt,q[zn],K,null,ce,ue,Se,_e,he),Mt++)}const $r=jt?hk(Rn):bs;for(lt=$r.length-1,ge=st-1;ge>=0;ge--){const zt=tt+ge,zn=q[zt],Qe=zt+1<We?q[zt+1].el:le;Rn[ge]===0?N(null,zn,K,Qe,ce,ue,Se,_e,he):jt&&(lt<0||ge!==$r[lt]?Re(zn,K,Qe,2):lt--)}}},Re=(I,q,K,le,ce=null)=>{const{el:ue,type:Se,transition:_e,children:he,shapeFlag:ge}=I;if(ge&6){Re(I.component.subTree,q,K,le);return}if(ge&128){I.suspense.move(q,K,le);return}if(ge&64){Se.move(I,q,K,Ne);return}if(Se===ct){o(ue,q,K);for(let Le=0;Le<he.length;Le++)Re(he[Le],q,K,le);o(I.anchor,q,K);return}if(Se===Vf){P(I,q,K);return}if(le!==2&&ge&1&&_e)if(le===0)_e.beforeEnter(ue),o(ue,q,K),Zn(()=>_e.enter(ue),ce);else{const{leave:Le,delayLeave:De,afterLeave:Ue}=_e,tt=()=>o(ue,q,K),ot=()=>{Le(ue,()=>{tt(),Ue&&Ue()})};De?De(ue,tt,ot):ot()}else o(ue,q,K)},qe=(I,q,K,le=!1,ce=!1)=>{const{type:ue,props:Se,ref:_e,children:he,dynamicChildren:ge,shapeFlag:We,patchFlag:Le,dirs:De,cacheIndex:Ue}=I;if(Le===-2&&(ce=!1),_e!=null&&Sd(_e,null,K,I,!0),Ue!=null&&(q.renderCache[Ue]=void 0),We&256){q.ctx.deactivate(I);return}const tt=We&1&&De,ot=!_s(I);let lt;if(ot&&(lt=Se&&Se.onVnodeBeforeUnmount)&&Ir(lt,q,I),We&6)Xe(I.component,K,le);else{if(We&128){I.suspense.unmount(K,le);return}tt&&yo(I,null,q,"beforeUnmount"),We&64?I.type.remove(I,q,K,Ne,le):ge&&!ge.hasOnce&&(ue!==ct||Le>0&&Le&64)?Ae(ge,q,K,!1,!0):(ue===ct&&Le&384||!ce&&We&16)&&Ae(he,q,K),le&&et(I)}(ot&&(lt=Se&&Se.onVnodeUnmounted)||tt)&&Zn(()=>{lt&&Ir(lt,q,I),tt&&yo(I,null,q,"unmounted")},K)},et=I=>{const{type:q,el:K,anchor:le,transition:ce}=I;if(q===ct){Ye(K,le);return}if(q===Vf){A(I);return}const ue=()=>{s(K),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(I.shapeFlag&1&&ce&&!ce.persisted){const{leave:Se,delayLeave:_e}=ce,he=()=>Se(K,ue);_e?_e(I.el,ue,he):he()}else ue()},Ye=(I,q)=>{let K;for(;I!==q;)K=b(I),s(I),I=K;s(q)},Xe=(I,q,K)=>{const{bum:le,scope:ce,job:ue,subTree:Se,um:_e,m:he,a:ge}=I;bv(he),bv(ge),le&&kc(le),ce.stop(),ue&&(ue.flags|=8,qe(Se,I,q,K)),_e&&Zn(_e,q),Zn(()=>{I.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},Ae=(I,q,K,le=!1,ce=!1,ue=0)=>{for(let Se=ue;Se<I.length;Se++)qe(I[Se],q,K,le,ce)},Z=I=>{if(I.shapeFlag&6)return Z(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const q=b(I.anchor||I.el),K=q&&q[N_];return K?b(K):q};let ae=!1;const de=(I,q,K)=>{I==null?q._vnode&&qe(q._vnode,null,null,!0):N(q._vnode||null,I,q,null,null,null,K),q._vnode=I,ae||(ae=!0,fv(),gy(),ae=!1)},Ne={p:N,um:qe,m:Re,r:et,mt:O,mc:Q,pc:re,pbc:Y,n:Z,o:e};return{render:de,hydrate:void 0,createApp:rk(de)}}function jf({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 bo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qy(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&&qy(f,d)),d.type===Tu&&(d.el=f.el)}}function hk(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 Uy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Uy(t)}function bv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const pk=Symbol.for("v-scx"),gk=()=>qr(pk);function Eh(e,t){return _u(e,null,t)}function vk(e,t){return _u(e,null,{flush:"sync"})}function Et(e,t,r){return _u(e,t,r)}function _u(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=tn({},r),h=t&&o||!t&&c!=="post";let p;if(Kl){if(c==="sync"){const w=gk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Wr,w.resume=Wr,w.pause=Wr,w}}const v=rn;d.call=(w,E,N)=>Er(w,v,E,N);let m=!1;c==="post"?d.scheduler=w=>{Zn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,E)=>{E?w():Sh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=A_(e,t,d);return Kl&&(p?p.push(b):h&&b()),b}function mk(e,t,r){const o=this.proxy,s=Rt(e)?e.includes(".")?jy(o,e):()=>o[e]:e.bind(o,o);let c;Ve(t)?c=t:(c=t.handler,r=t);const f=ma(this),d=_u(s,c.bind(o),r);return f(),d}function jy(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 ku(e,t,r=vt){const o=Hs(),s=tr(t),c=vi(t),f=Vy(e,s),d=fy((h,p)=>{let v,m=vt,b;return vk(()=>{const w=e[s];qn(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(!qn(E,v)&&!(m!==vt&&qn(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),qn(w,E)&&qn(w,m)&&!qn(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 Vy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tr(t)}Modifiers`]||e[`${vi(t)}Modifiers`];function yk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Vy(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Rt(v)?v.trim():v)),f.number&&(s=r.map(gd)));let d,h=o[d=_c(t)]||o[d=_c(tr(t))];!h&&c&&(h=o[d=_c(vi(t))]),h&&Er(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,Er(p,e,6,s)}}function Gy(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=Gy(p,t,!0);v&&(d=!0,tn(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):tn(f,c),St(e)&&o.set(e,f),f)}function Cu(e,t){return!e||!fu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,vi(t))||wt(e,t))}function wv(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,L=Hc(e);let M,T;try{if(r.shapeFlag&4){const A=s||o,B=A;M=xr(p.call(B,A,v,m,w,b,E)),T=d}else{const A=t;M=xr(A.length>1?A(m,{attrs:d,slots:f,emit:h}):A(m,null)),T=t.props?d:wk(d)}}catch(A){Ol.length=0,va(A,e,1),M=Oe(un)}let P=M;if(T&&N!==!1){const A=Object.keys(T),{shapeFlag:B}=P;A.length&&B&7&&(c&&A.some(fh)&&(T=xk(T,c)),P=Zi(P,T,!1,!0))}return r.dirs&&(P=Zi(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&jl(P,r.transition),M=P,Hc(L),M}function bk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if($s(s)){if(s.type!==un||s.children==="v-if"){if(r)return;r=s}}else return}return r}const wk=e=>{let t;for(const r in e)(r==="class"||r==="style"||fu(r))&&((t||(t={}))[r]=e[r]);return t},xk=(e,t)=>{const r={};for(const o in e)(!fh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Sk(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?xv(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?xv(o,f,p):!0:!!f;return!1}function xv(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 Ah({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 Ky=e=>e.__isSuspense;let Ed=0;const _k={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)kk(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}Ck(e,t,r,o,s,f,d,h,p)}},hydrate:Tk,normalize:Ek},Xy=_k;function Gl(e,t){const r=e.props&&e.props[t];Ve(r)&&r()}function kk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Yy(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?(Gl(e,"onPending"),Gl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ks(b,e.ssFallback)):b.resolve(!1,!0)}function Ck(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:L,isHydrating:M}=m;if(N)m.pendingBranch=b,Br(b,N)?(h(N,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():L&&(M||(h(E,w,r,o,s,null,c,f,d),ks(m,w)))):(m.pendingId=Ed++,M?(m.isHydrating=!1,m.activeBranch=N):p(N,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),L?(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),ks(m,w))):E&&Br(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&&Br(b,E))h(E,b,r,o,s,m,c,f,d),ks(m,b);else if(Gl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ed++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:T,pendingId:P}=m;T>0?setTimeout(()=>{m.pendingId===P&&m.fallback(w)},T):T===0&&m.fallback(w)}}function Yy(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:L}}=p;let M;const T=Mk(e);T&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const P=e.props?q0(e.props.timeout):void 0,A=c,B={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ed++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(G=!1,U=!1){const{vnode:Q,activeBranch:J,pendingBranch:Y,pendingId:ee,effects:R,parentComponent:$,container:O}=B;let _=!1;B.isHydrating?B.isHydrating=!1:G||(_=J&&Y.transition&&Y.transition.mode==="out-in",_&&(J.transition.afterLeave=()=>{ee===B.pendingId&&(b(Y,O,c===A?E(J):c,0),wd(R))}),J&&(N(J.el)===O&&(c=E(J)),w(J,$,B,!0)),_||b(Y,O,c,0)),ks(B,Y),B.pendingBranch=null,B.isInFallback=!1;let D=B.parent,j=!1;for(;D;){if(D.pendingBranch){D.effects.push(...R),j=!0;break}D=D.parent}!j&&!_&&wd(R),B.effects=[],T&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!U&&t.resolve()),Gl(Q,"onResolve")},fallback(G){if(!B.pendingBranch)return;const{vnode:U,activeBranch:Q,parentComponent:J,container:Y,namespace:ee}=B;Gl(U,"onFallback");const R=E(Q),$=()=>{B.isInFallback&&(m(null,G,Y,R,J,null,ee,d,h),ks(B,G))},O=G.transition&&G.transition.mode==="out-in";O&&(Q.transition.afterLeave=$),B.isInFallback=!0,w(Q,J,null,!0),O||$()},move(G,U,Q){B.activeBranch&&b(B.activeBranch,G,U,Q),B.container=G},next(){return B.activeBranch&&E(B.activeBranch)},registerDep(G,U,Q){const J=!!B.pendingBranch;J&&B.deps++;const Y=G.vnode.el;G.asyncDep.catch(ee=>{va(ee,G,0)}).then(ee=>{if(G.isUnmounted||B.isUnmounted||B.pendingId!==G.suspenseId)return;G.asyncResolved=!0;const{vnode:R}=G;Md(G,ee),Y&&(R.el=Y);const $=!Y&&G.subTree.el;U(G,R,N(Y||G.subTree.el),Y?null:E(G.subTree),B,f,Q),$&&L($),Ah(G,R.el),J&&--B.deps===0&&B.resolve()})},unmount(G,U){B.isUnmounted=!0,B.activeBranch&&w(B.activeBranch,r,G,U),B.pendingBranch&&w(B.pendingBranch,r,G,U)}};return B}function Tk(e,t,r,o,s,c,f,d,h){const p=t.suspense=Yy(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 Ek(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Sv(o?r.default:r),e.ssFallback=o?Sv(r.fallback):Oe(un)}function Sv(e){let t;if(Ve(e)){const r=Ns&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=jn,Zy())}return He(e)&&(e=bk(e)),e=xr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Ak(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):wd(e)}function ks(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,Ah(o,s))}function Mk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Tu=Symbol.for("v-txt"),un=Symbol.for("v-cmt"),Vf=Symbol.for("v-stc"),Ol=[];let jn=null;function oe(e=!1){Ol.push(jn=e?null:[])}function Zy(){Ol.pop(),jn=Ol[Ol.length-1]||null}let Ns=1;function qc(e){Ns+=e,e<0&&jn&&(jn.hasOnce=!0)}function Jy(e){return e.dynamicChildren=Ns>0?jn||bs:null,Zy(),Ns>0&&jn&&jn.push(e),e}function ye(e,t,r,o,s,c){return Jy(te(e,t,r,o,s,c,!0))}function nt(e,t,r,o,s){return Jy(Oe(e,t,r,o,s,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function Br(e,t){return e.type===t.type&&e.key===t.key}const Qy=({key:e})=>e??null,Tc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Rt(e)||kt(e)||Ve(e)?{i:Qt,r:e,k:t,f:!!r}:e:null);function te(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&&Qy(t),ref:t&&Tc(t),scopeId:bu,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|=Rt(r)?8:16),Ns>0&&!f&&jn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&jn.push(h),h}const Oe=Lk;function Lk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Ay)&&(e=un),$s(e)){const d=Zi(e,t,!0);return r&&Mh(d,r),Ns>0&&!c&&jn&&(d.shapeFlag&6?jn[jn.indexOf(e)]=d:jn.push(d)),d.patchFlag=-2,d}if(Ik(e)&&(e=e.__vccOpts),t){t=eb(t);let{class:d,style:h}=t;d&&!Rt(d)&&(t.class=it(d)),St(h)&&(wh(h)&&!He(h)&&(h=tn({},h)),t.style=en(h))}const f=Rt(e)?1:Ky(e)?128:wy(e)?64:St(e)?4:Ve(e)?2:0;return te(e,t,r,o,s,f,c,!0)}function eb(e){return e?wh(e)||zy(e)?tn({},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&&Qy(p),ref:t&&t.ref?r&&c?He(c)?c.concat(Tc(t)):[c,Tc(t)]:Tc(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&&jl(v,h.clone(v)),v}function pt(e=" ",t=0){return Oe(Tu,null,e,t)}function Ke(e="",t=!1){return t?(oe(),nt(un,null,e)):Oe(un,null,e)}function xr(e){return e==null||typeof e=="boolean"?Oe(un):He(e)?Oe(ct,null,e.slice()):$s(e)?Bi(e):Oe(Tu,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&&!zy(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(fu(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 Ir(e,t,r,o=null){Er(e,t,7,[r,o])}const Nk=$y();let $k=0;function Ok(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Nk,c={uid:$k++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new JS(!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:Iy(o,s),emitsOptions:Gy(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=yk.bind(null,c),e.ce&&e.ce(c),c}let rn=null;const Hs=()=>rn||Qt;let Uc,Ad;{const e=gu(),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)}};Uc=t("__VUE_INSTANCE_SETTERS__",r=>rn=r),Ad=t("__VUE_SSR_SETTERS__",r=>Kl=r)}const ma=e=>{const t=rn;return Uc(e),e.scope.on(),()=>{e.scope.off(),Uc(t)}},_v=()=>{rn&&rn.scope.off(),Uc(null)};function tb(e){return e.vnode.shapeFlag&4}let Kl=!1;function Pk(e,t=!1,r=!1){t&&Ad(t);const{props:o,children:s}=e.vnode,c=tb(e);ik(e,o,c,t),ak(e,s,r);const f=c?Rk(e,t):void 0;return t&&Ad(!1),f}function Rk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,K_);const{setup:o}=r;if(o){io();const s=e.setupContext=o.length>1?rb(e):null,c=ma(e),f=ga(o,e,0,[e.props,s]),d=F0(f);if(oo(),c(),(d||e.sp)&&!_s(e)&&Ty(e),d){if(f.then(_v,_v),t)return f.then(h=>{Md(e,h)}).catch(h=>{va(h,e,0)});e.asyncDep=f}else Md(e,f)}else nb(e)}function Md(e,t,r){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=uy(t)),nb(e)}function nb(e,t,r){const o=e.type;e.render||(e.render=o.render||Wr);{const s=ma(e);io();try{Z_(e)}finally{oo(),s()}}}const zk={get(e,t){return pn(e,"get",""),e[t]}};function rb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,zk),slots:e.slots,emit:e.emit,expose:t}}function Eu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(uy(xh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in $l)return $l[r](e)},has(t,r){return r in t||r in $l}})):e.proxy}function Dk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Ik(e){return Ve(e)&&"__vccOpts"in e}const ke=(e,t)=>T_(e,t,Kl);function ya(e,t,r){const o=arguments.length;return o===2?St(t)&&!He(t)?$s(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&$s(r)&&(r=[r]),Oe(e,t,r))}const Fk="3.5.12";/**
14
14
  * @vue/runtime-dom v3.5.12
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let Ld;const kv=typeof window<"u"&&window.trustedTypes;if(kv)try{Ld=kv.createPolicy("vue",{createHTML:e=>e})}catch{}const rb=Ld?e=>Ld.createHTML(e):e=>e,Fk="http://www.w3.org/2000/svg",Hk="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,Cv=li&&li.createElement("template"),Bk={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(Fk,e):t==="mathml"?li.createElementNS(Hk,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{Cv.innerHTML=rb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Cv.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",wl="animation",Xl=Symbol("_vtc"),ib={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},Wk=tn({},wy,ib),qk=e=>(e.displayName="Transition",e.props=Wk,e),Uk=qk((e,{slots:t})=>ya(O_,jk(e),t)),wo=(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 jk(e){const t={};for(const R in e)R in ib||(t[R]=e[R]);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,A=Vk(s),N=A&&A[0],L=A&&A[1],{onBeforeEnter:M,onEnter:T,onEnterCancelled:P,onLeave:E,onLeaveCancelled:B,onBeforeAppear:G=M,onAppear:U=T,onAppearCancelled:Q=P}=t,J=(R,$,O)=>{xo(R,$?v:d),xo(R,$?p:f),O&&O()},Y=(R,$)=>{R._isLeaving=!1,xo(R,m),xo(R,w),xo(R,b),$&&$()},ee=R=>($,O)=>{const _=R?U:T,D=()=>J($,R,O);wo(_,[$,D]),Ev(()=>{xo($,R?h:c),Pi($,R?v:d),Tv(_)||Av($,o,N,D)})};return tn(t,{onBeforeEnter(R){wo(M,[R]),Pi(R,c),Pi(R,f)},onBeforeAppear(R){wo(G,[R]),Pi(R,h),Pi(R,p)},onEnter:ee(!1),onAppear:ee(!0),onLeave(R,$){R._isLeaving=!0;const O=()=>Y(R,$);Pi(R,m),Pi(R,b),Xk(),Ev(()=>{R._isLeaving&&(xo(R,m),Pi(R,w),Tv(E)||Av(R,o,L,O))}),wo(E,[R,O])},onEnterCancelled(R){J(R,!1),wo(P,[R])},onAppearCancelled(R){J(R,!0),wo(Q,[R])},onLeaveCancelled(R){Y(R),wo(B,[R])}})}function Vk(e){if(e==null)return null;if(St(e))return[Gf(e.enter),Gf(e.leave)];{const t=Gf(e);return[t,t]}}function Gf(e){return W0(e)}function Pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xl]||(e[Xl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Xl];r&&(r.delete(t),r.size||(e[Xl]=void 0))}function Ev(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Gk=0;function Av(e,t,r,o){const s=e._endId=++Gk,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Kk(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 Kk(e,t){const r=window.getComputedStyle(e),o=A=>(r[A]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=Mv(s,c),d=o(`${wl}Delay`),h=o(`${wl}Duration`),p=Mv(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===wl?p>0&&(v=wl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:wl: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 Mv(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 Xk(){return document.body.offsetHeight}function Yk(e,t,r){const o=e[Xl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const jc=Symbol("_vod"),ob=Symbol("_vsh"),ji={beforeMount(e,{value:t},{transition:r}){e[jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):xl(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),xl(e,!0),o.enter(e)):o.leave(e,()=>{xl(e,!1)}):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[jc]:"none",e[ob]=!t}const Zk=Symbol(""),Jk=/(^|;)\s*display\s*:/;function Qk(e,t,r){const o=e.style,s=Rt(r);let c=!1;if(r&&!s){if(t)if(Rt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ec(o,d,"")}else for(const f in t)r[f]==null&&Ec(o,f,"");for(const f in r)f==="display"&&(c=!0),Ec(o,f,r[f])}else if(s){if(t!==r){const f=o[Zk];f&&(r+=";"+f),o.cssText=r,c=Jk.test(r)}}else t&&e.removeAttribute("style");jc in e&&(e[jc]=c?o.display:"",e[ob]&&(o.display="none"))}const Nv=/\s*!important$/;function Ec(e,t,r){if(He(r))r.forEach(o=>Ec(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=eC(e,t);Nv.test(r)?e.setProperty(vi(o),r.replace(Nv,""),"important"):e[o]=r}}const $v=["Webkit","Moz","ms"],Kf={};function eC(e,t){const r=Kf[t];if(r)return r;let o=tr(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=pu(o);for(let s=0;s<$v.length;s++){const c=$v[s]+o;if(c in e)return Kf[t]=c}return t}const Ov="http://www.w3.org/1999/xlink";function Pv(e,t,r,o,s,c=XS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Ov,t.slice(6,t.length)):e.setAttributeNS(Ov,t,r):r==null||c&&!q0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Tr(r)?String(r):r)}function Rv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?rb(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=q0(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 tC(e,t,r,o){e.removeEventListener(t,r,o)}const zv=Symbol("_vei");function nC(e,t,r,o,s=null){const c=e[zv]||(e[zv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=rC(t);if(o){const p=c[t]=sC(o,s);Co(e,d,p,h)}else f&&(tC(e,d,f,h),c[t]=void 0)}}const Dv=/(?:Once|Passive|Capture)$/;function rC(e){let t;if(Dv.test(e)){t={};let o;for(;o=e.match(Dv);)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 Xf=0;const iC=Promise.resolve(),oC=()=>Xf||(iC.then(()=>Xf=0),Xf=Date.now());function sC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Er(lC(o,r.value),t,5,[o])};return r.value=e,r.attached=oC(),r}function lC(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 Iv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,aC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Yk(e,o,f):t==="style"?Qk(e,r,o):fu(t)?fh(t)||nC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cC(e,t,o,f))?(Rv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Rt(o))?Rv(e,tr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Pv(e,t,o,f))};function cC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Iv(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 Iv(t)&&Rt(r)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?r=>kc(t,r):t};function uC(e){e.target.composing=!0}function Fv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Cs=Symbol("_assign"),fC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Cs]=Vc(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=gd(d)),e[Cs](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",uC),Co(e,"compositionend",Fv),Co(e,"change",Fv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Cs]=Vc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?gd(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))}},sb={deep:!0,created(e,t,r){e[Cs]=Vc(r),Co(e,"change",()=>{const o=e._modelValue,s=dC(e),c=e.checked,f=e[Cs];if(He(o)){const d=U0(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(du(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(lb(e,c))})},mounted:Hv,beforeUpdate(e,t,r){e[Cs]=Vc(r),Hv(e,t,r)}};function Hv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(He(t))s=U0(t,o.props.value)>-1;else if(du(t))s=t.has(o.props.value);else{if(t===r)return;s=vu(t,lb(e,!0))}e.checked!==s&&(e.checked=s)}function dC(e){return"_value"in e?e._value:e.value}function lb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const hC=["ctrl","shift","alt","meta"],pC={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)=>hC.some(r=>e[`${r}Key`]&&!t.includes(r))},Ac=(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=pC[t[f]];if(d&&d(s,t))return}return e(s,...c)})},gC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Nd=(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||gC[f]===c))return e(s)})},vC=tn({patchProp:aC},Bk);let Bv;function mC(){return Bv||(Bv=ck(vC))}const ab=(...e)=>{const t=mC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=bC(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,yC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function yC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bC(e){return Rt(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},wC={};function xC(e,t){const r=Oo("RouterView");return oe(),nt(r)}const SC=yi(wC,[["render",xC]]),_C=["top","right","bottom","left"],Wv=["start","end"],qv=_C.reduce((e,t)=>e.concat(t,t+"-"+Wv[0],t+"-"+Wv[1]),[]),Yl=Math.min,ko=Math.max,kC={left:"right",right:"left",bottom:"top",top:"bottom"},CC={start:"end",end:"start"};function $d(e,t,r){return ko(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Gr(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function cb(e){return e==="x"?"y":"x"}function Lh(e){return e==="y"?"height":"width"}function ba(e){return["top","bottom"].includes(Gr(e))?"y":"x"}function Nh(e){return cb(ba(e))}function ub(e,t,r){r===void 0&&(r=!1);const o=kr(e),s=Nh(e),c=Lh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function TC(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>CC[t])}function EC(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 AC(e,t,r,o){const s=kr(e);let c=EC(Gr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>kC[t])}function MC(e){return{top:0,right:0,bottom:0,left:0,...e}}function fb(e){return typeof e!="number"?MC(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 Uv(e,t,r){let{reference:o,floating:s}=e;const c=ba(t),f=Nh(t),d=Lh(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(kr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const LC=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}=Uv(p,o,h),b=o,w={},A=0;for(let N=0;N<d.length;N++){const{name:L,fn:M}=d[N],{x:T,y:P,data:E,reset:B}=await M({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=T??v,m=P??m,w={...w,[L]:{...w[L],...E}},B&&A<=50&&(A++,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}=Uv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Au(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),A=fb(w),L=d[b?m==="floating"?"reference":"floating":m],M=Pl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(L)))==null||r?L:L.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),T=m==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=Pl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:P,strategy:h}):T);return{top:(M.top-B.top+A.top)/E.y,bottom:(B.bottom-M.bottom+A.bottom)/E.y,left:(M.left-B.left+A.left)/E.x,right:(B.right-M.right+A.right)/E.x}}const NC=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=fb(v),b={x:r,y:o},w=Nh(s),A=Lh(w),N=await f.getDimensions(p),L=w==="y",M=L?"top":"left",T=L?"bottom":"right",P=L?"clientHeight":"clientWidth",E=c.reference[A]+c.reference[w]-b[w]-c.floating[A],B=b[w]-c.reference[w],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=G?G[P]:0;(!U||!await(f.isElement==null?void 0:f.isElement(G)))&&(U=d.floating[P]||c.floating[A]);const Q=E/2-B/2,J=U/2-N[A]/2-1,Y=Yl(m[M],J),ee=Yl(m[T],J),R=Y,$=U-N[A]-ee,O=U/2-N[A]/2+Q,_=$d(R,O,$),D=!h.arrow&&kr(s)!=null&&O!==_&&c.reference[A]/2-(O<R?Y:ee)-N[A]/2<0,j=D?O<R?O-R:O-$:0;return{[w]:b[w]+j,data:{[w]:_,centerOffset:O-_-j,...D&&{alignmentOffset:j}},reset:D}}});function $C(e,t,r){return(e?[...r.filter(s=>kr(s)===e),...r.filter(s=>kr(s)!==e)]:r.filter(s=>Gr(s)===s)).filter(s=>e?kr(s)===e||(t?Gc(s)!==s:!1):!0)}const OC=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=qv,autoAlignment:w=!0,...A}=zo(e,t),N=m!==void 0||b===qv?$C(m||null,w,b):b,L=await Au(t,A),M=((r=f.autoPlacement)==null?void 0:r.index)||0,T=N[M];if(T==null)return{};const P=ub(T,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==T)return{reset:{placement:N[0]}};const E=[L[Gr(T)],L[P[0]],L[P[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:T,overflows:E}],G=N[M+1];if(G)return{data:{index:M+1,overflows:B},reset:{placement:G}};const U=B.map(Y=>{const ee=kr(Y.placement);return[Y.placement,ee&&v?Y.overflows.slice(0,2).reduce((R,$)=>R+$,0):Y.overflows[0],Y.overflows]}).sort((Y,ee)=>Y[1]-ee[1]),J=((s=U.filter(Y=>Y[2].slice(0,kr(Y[0])?2:3).every(ee=>ee<=0))[0])==null?void 0:s[0])||U[0][0];return J!==d?{data:{index:M+1,overflows:B},reset:{placement:J}}:{}}}},PC=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:A="none",flipAlignment:N=!0,...L}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Gr(s),T=Gr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),E=b||(T||!N?[Kc(d)]:TC(d));!b&&A!=="none"&&E.push(...AC(d,N,A,P));const B=[d,...E],G=await Au(t,L),U=[];let Q=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&U.push(G[M]),m){const R=ub(s,f,P);U.push(G[R[0]],G[R[1]])}if(Q=[...Q,{placement:s,overflows:U}],!U.every(R=>R<=0)){var J,Y;const R=(((J=c.flip)==null?void 0:J.index)||0)+1,$=B[R];if($)return{data:{index:R,overflows:Q},reset:{placement:$}};let O=(Y=Q.filter(_=>_.overflows[0]<=0).sort((_,D)=>_.overflows[1]-D.overflows[1])[0])==null?void 0:Y.placement;if(!O)switch(w){case"bestFit":{var ee;const _=(ee=Q.map(D=>[D.placement,D.overflows.filter(j=>j>0).reduce((j,re)=>j+re,0)]).sort((D,j)=>D[1]-j[1])[0])==null?void 0:ee[0];_&&(O=_);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function RC(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=kr(r),h=ba(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:A}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof A=="number"&&(w=d==="end"?A*-1:A),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const zC=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 RC(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}}}}},DC=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:L=>{let{x:M,y:T}=L;return{x:M,y:T}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),m=ba(Gr(s)),b=cb(m);let w=p[b],A=p[m];if(c){const L=b==="y"?"top":"left",M=b==="y"?"bottom":"right",T=w+v[L],P=w-v[M];w=$d(T,w,P)}if(f){const L=m==="y"?"top":"left",M=m==="y"?"bottom":"right",T=A+v[L],P=A-v[M];A=$d(T,A,P)}const N=d.fn({...t,[b]:w,[m]:A});return{...N,data:{x:N.x-r,y:N.y-o}}}}},IC=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 Au(t,d),p=Gr(r),v=kr(r),m=ba(r)==="y",{width:b,height:w}=o.floating;let A,N;p==="top"||p==="bottom"?(A=p,N=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(N=p,A=v==="end"?"top":"bottom");const L=w-h[A],M=b-h[N],T=!t.middlewareData.shift;let P=L,E=M;if(m){const G=b-h.left-h.right;E=v||T?Yl(M,G):G}else{const G=w-h.top-h.bottom;P=v||T?Yl(L,G):G}if(T&&!v){const G=ko(h.left,0),U=ko(h.right,0),Q=ko(h.top,0),J=ko(h.bottom,0);m?E=b-2*(G!==0||U!==0?G+U:ko(h.left,h.right)):P=w-2*(Q!==0||J!==0?Q+J:ko(h.top,h.bottom))}await f({...t,availableWidth:E,availableHeight:P});const B=await s.getDimensions(c.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function sr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){return sr(e).getComputedStyle(e)}const jv=Math.min,Rl=Math.max,Xc=Math.round;function db(e){const t=Ur(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return pb(e)?(e.nodeName||"").toLowerCase():""}let uc;function hb(){if(uc)return uc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(uc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),uc):navigator.userAgent}function jr(e){return e instanceof sr(e).HTMLElement}function Ki(e){return e instanceof sr(e).Element}function pb(e){return e instanceof sr(e).Node}function Vv(e){return typeof ShadowRoot>"u"?!1:e instanceof sr(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 FC(e){return["table","td","th"].includes(Ji(e))}function Od(e){const t=/firefox/i.test(hb()),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 gb(){return!/^((?!chrome|android).)*safari/i.test(hb())}function $h(e){return["html","body","#document"].includes(Ji(e))}function vb(e){return Ki(e)?e:e.contextElement}const mb={x:1,y:1};function Ts(e){const t=vb(e);if(!jr(t))return mb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=db(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=vb(e);let h=mb;t&&(o?Ki(o)&&(h=Ts(o)):h=Ts(e));const p=d?sr(d):window,v=!gb()&&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,A=f.height/h.y;if(d){const N=sr(d),L=o&&Ki(o)?sr(o):o;let M=N.frameElement;for(;M&&o&&L!==N;){const T=Ts(M),P=M.getBoundingClientRect(),E=getComputedStyle(M);P.x+=(M.clientLeft+parseFloat(E.paddingLeft))*T.x,P.y+=(M.clientTop+parseFloat(E.paddingTop))*T.y,m*=T.x,b*=T.y,w*=T.x,A*=T.y,m+=P.x,b+=P.y,M=sr(M).frameElement}}return{width:w,height:A,top:b,right:m+w,bottom:b+A,left:m,x:m,y:b}}function Xi(e){return((pb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lu(e){return Ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function yb(e){return Zl(Xi(e)).left+Lu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vv(e)&&e.host||Xi(e);return Vv(t)?t.host:t}function bb(e){const t=Jl(e);return $h(t)?t.ownerDocument.body:jr(t)&&Mu(t)?t:bb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=bb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=sr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function Gv(e,t,r){return t==="viewport"?Pl(function(o,s){const c=sr(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=gb();(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=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=jr(o)?Ts(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=Lu(o),f=o.ownerDocument.body,d=Rl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Rl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+yb(o);const v=-c.scrollTop;return Ur(f).direction==="rtl"&&(p+=Rl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Xi(e)))}function Kv(e){return jr(e)&&Ur(e).position!=="fixed"?e.offsetParent:null}function Xv(e){const t=sr(e);let r=Kv(e);for(;r&&FC(r)&&Ur(r).position==="static";)r=Kv(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Ur(r).position==="static"&&!Od(r))?t:r||function(o){let s=Jl(o);for(;jr(s)&&!$h(s);){if(Od(s))return s;s=Jl(s)}return null}(e)||t}function HC(e,t,r){const o=jr(t),s=Xi(t),c=Zl(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=Lu(t)),jr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=yb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const BC={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=Yc(p).filter(L=>Ki(L)&&Ji(L)!=="body"),w=null;const A=Ur(p).position==="fixed";let N=A?Jl(p):p;for(;Ki(N)&&!$h(N);){const L=Ur(N),M=Od(N);(A?M||w:M||L.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=L:b=b.filter(T=>T!==N),N=Jl(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=Gv(t,v,s);return p.top=Rl(m.top,p.top),p.right=jv(m.right,p.right),p.bottom=jv(m.bottom,p.bottom),p.left=Rl(m.left,p.left),p},Gv(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=Lu(r)),jr(r))){const p=Zl(r);d=Ts(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)?db(e):e.getBoundingClientRect()},getOffsetParent:Xv,getDocumentElement:Xi,getScale:Ts,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Xv,c=this.getDimensions;return{reference:HC(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"},WC=(e,t,r)=>{const o=new Map,s={platform:BC,...r},c={...s.platform,_c:o};return LC(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 Ql(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 qC(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 Yv(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 ea=!1;if(typeof window<"u"){ea=!1;try{const e=Object.defineProperty({},"passive",{get(){ea=!0}});window.addEventListener("test",null,e)}catch{}}let wb=!1;typeof window<"u"&&typeof navigator<"u"&&(wb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const xb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Zv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Jv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Qv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Yf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Jn=[];let So=null;const em={};function tm(e){let t=em[e];return t||(t=em[e]=[]),t}let Pd=function(){};typeof window<"u"&&(Pd=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const Zf="__floating-vue__popper",Sb=()=>ut({name:"VPopper",provide(){return{[Zf]:{parentPopper:this}}},inject:{[Zf]:{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=>xb.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,Pd,Boolean],default:at("container")},boundary:{type:[String,Pd],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[Zf])==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(zC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(OC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(DC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(PC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(NC({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(IC({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 WC(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 Yf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const 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<Jn.length;r++)t=Jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Yv(this.theme))tm(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 Yf(),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,Qv(Jn,this),Jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Yv(this.theme)){const o=tm(r);Qv(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 Yf(),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,Zv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Zv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Jv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Jv,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,ea?{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(zl>=e.left&&zl<=e.right&&Dl>=e.top&&Dl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=zl-Di,o=Dl-Ii,s=t.left+t.width/2-Di+(t.top+t.height/2)-Ii+t.width+t.height,c=Di+r*s,f=Ii+o*s;return fc(Di,Ii,c,f,t.left,t.top,t.left,t.bottom)||fc(Di,Ii,c,f,t.left,t.top,t.right,t.top)||fc(Di,Ii,c,f,t.right,t.top,t.right,t.bottom)||fc(Di,Ii,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(wb){const e=ea?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>nm(t),e),document.addEventListener("touchend",t=>rm(t,!0),e)}else window.addEventListener("mousedown",e=>nm(e),!0),window.addEventListener("click",e=>rm(e,!1),!0);window.addEventListener("resize",VC)}function nm(e,t){for(let r=0;r<Jn.length;r++){const o=Jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function rm(e,t){UC(e,t)}function UC(e,t){const r={};for(let o=Jn.length-1;o>=0;o--){const s=Jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&im(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&&im(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function im(e,t,r){return r.closeAllPopover||r.closePopover&&t||jC(e,r)&&!t}function jC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function VC(){for(let e=0;e<Jn.length;e++)Jn[e].$_computePosition()}function om(){for(let e=0;e<Jn.length;e++)Jn[e].hide()}let Di=0,Ii=0,zl=0,Dl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Di=zl,Ii=Dl,zl=e.clientX,Dl=e.clientY},ea?{passive:!0}:void 0);function fc(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 GC={extends:Sb()},Nu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function KC(e,t,r,o,s,c){return oe(),ye("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[mn(e.$slots,"default",GS(Qy(e.slotData)))],2)}const XC=Nu(GC,[["render",KC]]);function YC(){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 Rd(){Rd.init||(Rd.init=!0,Mc=YC()!==-1)}var $u={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Rd(),Pt(()=>{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 ZC=yy();vy("data-v-b329ee4c");const JC={class:"resize-observer",tabindex:"-1"};my();const QC=ZC((e,t,r,o,s,c)=>(oe(),nt("div",JC)));$u.render=QC;$u.__scopeId="data-v-b329ee4c";$u.__file="src/components/ResizeObserver.vue";const _b=(e="theme")=>({computed:{themeClass(){return qC(this[e])}}}),eT=ut({name:"VPopperContent",components:{ResizeObserver:$u},mixins:[_b()],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}}}),tT=["id","aria-hidden","tabindex","data-popper-placement"],nT={ref:"inner",class:"v-popper__inner"},rT=te("div",{class:"v-popper__arrow-outer"},null,-1),iT=te("div",{class:"v-popper__arrow-inner"},null,-1),oT=[rT,iT];function sT(e,t,r,o,s,c){const f=Oo("ResizeObserver");return oe(),ye("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]=Nd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[te("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),te("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[te("div",nT,[e.mounted?(oe(),ye(ct,{key:0},[te("div",null,[mn(e.$slots,"default")]),e.handleResize?(oe(),nt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ke("",!0)],64)):Ke("",!0)],512),te("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)},oT,4)],4)],46,tT)}const kb=Nu(eT,[["render",sT]]),Cb={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 lT=ut({name:"VPopperWrapper",components:{Popper:XC,PopperContent:kb},mixins:[Cb,_b("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 aT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),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:A,handleResize:N,onResize:L,classes:M,result:T})=>[mn(e.$slots,"default",{shown:p,show:w,hide:A}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":N,classes:M,result:T,onHide:A,onResize:L},{default:rt(()=>[mn(e.$slots,"popper",{shown:p,hide:A})]),_: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 Oh=Nu(lT,[["render",aT]]);({...Oh});({...Oh});const cT={...Oh,name:"VTooltip",vPopperTheme:"tooltip"},uT=ut({name:"VTooltipDirective",components:{Popper:Sb(),PopperContent:kb},mixins:[Cb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(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}}}),fT=["innerHTML"],dT=["textContent"];function hT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),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:A,onResize:N,classes:L,result:M})=>[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":A,classes:L,result:M,onHide:w,onResize:N},{default:rt(()=>[e.html?(oe(),ye("div",{key:0,innerHTML:e.finalContent},null,8,fT)):(oe(),ye("div",{key:1,textContent:Be(e.finalContent)},null,8,dT))]),_: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 pT=Nu(uT,[["render",hT]]),Tb="v-popper--has-tooltip";function gT(e,t){let r=e.placement;if(!r&&t)for(const o of xb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Eb(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=gT(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Jf,ta,vT=0;function mT(){if(Jf)return;ta=je([]),Jf=ab({name:"VTooltipDirectiveApp",setup(){return{directives:ta}},render(){return this.directives.map(t=>ya(pT,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Jf.mount(e)}function Ab(e,t,r){mT();const o=je(Eb(e,t,r)),s=je(!1),c={id:vT++,options:o,shown:s};return ta.value.push(c),e.classList&&e.classList.add(Tb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ph(e){if(e.$_popper){const t=ta.value.indexOf(e.$_popper.item);t!==-1&&ta.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Tb)}function sm(e,{value:t,modifiers:r}){const o=Eb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))Ph(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Ab(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const yT={beforeMount:sm,updated:sm,beforeUnmount(e){Ph(e)}},bT=yT,Mb=cT,Lb={options:Yi};function Nb(e){return e!=null}function Rh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const wT=/^[A-Za-z]:\//;function xT(e=""){return e&&e.replace(/\\/g,"/").replace(wT,t=>t.toUpperCase())}const ST=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,lm=/^\/([A-Za-z]:)?$/;function _T(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const am=function(...e){e=e.map(o=>xT(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:_T();!s||s.length===0||(t=`${s}/${t}`,r=cm(s))}return t=kT(t,!r),r&&!cm(t)?`/${t}`:t.length>0?t:"."};function kT(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 cm=function(e){return ST.test(e)},CT=function(e,t){const r=am(e).replace(lm,"$1").split("/"),o=am(t).replace(lm,"$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 TT(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 $b(e,t,r,o){const s=CT(t,e),c={id:ET(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 ET(e,t){return TT(`${e}${t||""}`)}function Ob(e){return na(e)}function na(e){return e.type==="test"}function Pb(e){const t=[],r=Rh(e);for(const o of r)if(na(o))t.push(o);else for(const s of o.tasks)if(na(s))t.push(s);else{const c=Pb(s);for(const f of c)t.push(f)}return t}function zh(e=[]){return Rh(e).flatMap(t=>na(t)?[t]:[t,...zh(t.tasks)])}function AT(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 MT=6e4;function Rb(e){return e}const LT=Rb,{clearTimeout:NT,setTimeout:$T}=globalThis,OT=Math.random.bind(Math);function PT(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Rb,deserialize:d=LT,resolver:h,bind:p="rpc",timeout:v=MT}=t,m=new Map;let b,w=!1;const A=new Proxy({},{get(M,T){if(T==="$functions")return e;if(T==="$close")return N;if(T==="then"&&!c.includes("then")&&!("then"in e))return;const P=(...B)=>{r(f({m:T,a:B,t:"q"}))};if(c.includes(T))return P.asEvent=P,P;const E=async(...B)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${T}"`);if(b)try{await b}finally{b=void 0}return new Promise((G,U)=>{var Y;const Q=zT();let J;v>=0&&(J=$T(()=>{var ee;try{throw(ee=t.onTimeoutError)==null||ee.call(t,T,B),new Error(`[birpc] timeout on calling "${T}"`)}catch(R){U(R)}m.delete(Q)},v),typeof J=="object"&&(J=(Y=J.unref)==null?void 0:Y.call(J))),m.set(Q,{resolve:G,reject:U,timeoutId:J,method:T}),r(f({m:T,a:B,i:Q,t:"q"}))})};return E.asEvent=P,E}});function N(){w=!0,m.forEach(({reject:M,method:T})=>{M(new Error(`[birpc] rpc is closed, cannot call "${T}"`))}),m.clear(),s(L)}async function L(M,...T){const P=d(M);if(P.t==="q"){const{m:E,a:B}=P;let G,U;const Q=h?h(E,e[E]):e[E];if(!Q)U=new Error(`[birpc] function "${E}" not found`);else try{G=await Q.apply(p==="rpc"?A:e,B)}catch(J){U=J}P.i&&(U&&t.onError&&t.onError(U,E,B),r(f({t:"s",i:P.i,r:G,e:U}),...T))}else{const{i:E,r:B,e:G}=P,U=m.get(E);U&&(NT(U.timeoutId),G?U.reject(G):U.resolve(B)),m.delete(E)}}return b=o(L),A}const RT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function zT(e=21){let t="",r=e;for(;r--;)t+=RT[OT()*64|0];return t}const{parse:zb,stringify:DT}=JSON,{keys:IT}=Object,ra=String,Db="string",um={},Zc="object",Ib=(e,t)=>t,FT=e=>e instanceof ra?ra(e):e,HT=(e,t)=>typeof t===Db?new ra(t):t,Fb=(e,t,r,o)=>{const s=[];for(let c=IT(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ra){const v=e[p];typeof v===Zc&&!t.has(v)?(t.add(v),r[h]=um,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==um&&(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,Fb.apply(null,h))}return r},fm=(e,t,r)=>{const o=ra(t.push(r)-1);return e.set(r,o),o},Dd=(e,t)=>{const r=zb(e,HT).map(FT),o=r[0],s=t||Ib,c=typeof o===Zc&&o?Fb(r,new Set,o,s):o;return s.call({"":c},"",c)},Hb=(e,t,r)=>{const o=t&&typeof t===Zc?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Ib,s=new Map,c=[],f=[];let d=+fm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=DT(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 Zc:if(b===null)return b;case Db:return s.get(b)||fm(s,c,b)}return b}},BT=e=>zb(Hb(e));class Bb{constructor(){us(this,"filesMap",new Map);us(this,"pathsSet",new Set);us(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=$b(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 Dh(e){return Pb(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 WT(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Bb,waitForConnection:M,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(T){var P;T==null||T.forEach(([E,B])=>{v.state.clearFiles({config:E},[B])}),(P=r.onSpecsCollected)==null||P.call(r,T)},onPathsCollected(T){var P;v.state.collectPaths(T),(P=r.onPathsCollected)==null||P.call(r,T)},onCollected(T){var P;v.state.collectFiles(T),(P=r.onCollected)==null||P.call(r,T)},onTaskUpdate(T){var P;v.state.updateTasks(T),(P=r.onTaskUpdate)==null||P.call(r,T)},onUserConsoleLog(T){var P;v.state.updateUserLog(T),(P=r.onUserConsoleLog)==null||P.call(r,T)},onFinished(T,P){var E;(E=r.onFinished)==null||E.call(r,T,P)},onFinishedReportCoverage(){var T;(T=r.onFinishedReportCoverage)==null||T.call(r)}},w={post:T=>v.ws.send(T),on:T=>m=T,serialize:T=>Hb(T,(P,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:Dd,onTimeoutError(T){throw new Error(`[vitest-ws-client]: Timeout calling "${T}"`)}};v.rpc=PT(b,w);let A;function N(T=!1){T&&(p=c),v.ws=new h(e),L()}function L(){A=new Promise((T,P)=>{var B,G;const E=(G=(B=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:B.unref)==null?void 0:G.call(B);v.ws.OPEN===v.ws.readyState&&T(),v.ws.addEventListener("open",()=>{p=c,T(),clearTimeout(E)})}),v.ws.addEventListener("message",T=>{m(T.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}L();function M(){return A}return v}function Ih(e){return G0()?(JS(e),!0):!1}const Qf=new WeakMap,qT=(...e)=>{var t;const r=e[0],o=(t=Hs())==null?void 0:t.proxy;if(o==null&&!$y())throw new Error("injectLocal must be called in setup");return o&&Qf.has(o)&&r in Qf.get(o)?Qf.get(o)[r]:qr(...e)},UT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jT=Object.prototype.toString,VT=e=>jT.call(e)==="[object Object]",Jc=()=>{};function Wb(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 qb=e=>e();function Ub(e,t={}){let r,o,s=Jc;const c=h=>{clearTimeout(h),s(),s=Jc};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 GT(e=qb,t={}){const{initialState:r="active"}=t,o=jb(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:ha(o),pause:s,resume:c,eventFilter:f}}function dm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function hm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function KT(e){return Hs()}function ed(e){return Array.isArray(e)?e:[e]}function jb(...e){if(e.length!==1)return pa(...e);const t=e[0];return typeof t=="function"?ha(uy(()=>({get:t,set:Jc}))):je(t)}function dc(e,t=200,r={}){return Wb(Ub(t,r),e)}function Vb(e,t,r={}){const{eventFilter:o=qb,...s}=r;return Et(e,Wb(o,t),s)}function Gb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=GT(o,{initialState:s});return{stop:Vb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Fh(e,t=!0,r){KT()?Fs(e,r):t?e():Pt(e)}function Id(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:A,throwOnTimeout:N}={}){let L=null;const T=[new Promise(P=>{L=Et(e,E=>{m(E)!==t&&(L?L():Pt(()=>L==null?void 0:L()),P(E))},{flush:b,deep:w,immediate:!0})})];return A!=null&&T.push(dm(A,N).then(()=>Ut(e)).finally(()=>L==null?void 0:L())),Promise.race(T)}function o(m,b){if(!kt(m))return r(E=>E===m,b);const{flush:w="sync",deep:A=!1,timeout:N,throwOnTimeout:L}=b??{};let M=null;const P=[new Promise(E=>{M=Et([e,m],([B,G])=>{t!==(B===G)&&(M?M():Pt(()=>M==null?void 0:M()),E(B))},{flush:w,deep:A,immediate:!0})})];return N!=null&&P.push(dm(N,L).then(()=>Ut(e)).finally(()=>(M==null||M(),Ut(e)))),Promise.race(P)}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 A=Array.from(w);return A.includes(m)||A.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 Id(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Id(e,!t)}}}function pm(e){return Id(e)}function XT(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=kt(e),c=je(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 Vb(e,t,{...c,eventFilter:Ub(o,{maxWait:s})})}function YT(e,t,r){return Et(e,t,{...r,immediate:!0})}function ZT(e,t,r){const o=Et(e,(...s)=>(Pt(()=>o()),t(...s)),r);return o}function JT(e,t,r){let o;kt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Jc}=o,h=On(!s),p=f?On(t):je(t);let v=0;return Eh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const A=await e(N=>{m(()=>{c&&(c.value=!1),w||N()})});b===v&&(p.value=A)}catch(A){d(A)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ar=UT?window:void 0;function Qc(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=ke(()=>{const d=ed(Ut(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=YT(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>Qc(p)))!=null?h:[Ar].filter(p=>p!=null),ed(Ut(s.value?e[1]:e[0])),ed(W(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=VT(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(A=>o(b,w,A,m)))))},{flush:"post"}),f=()=>{c(),r()};return Ih(r),f}function QT(){const e=On(!1),t=Hs();return t&&Fs(()=>{e.value=!0},t),e}function Kb(e){const t=QT();return ke(()=>(t.value,!!e()))}function eE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Xb(...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=Ar,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=eE(t);return Qi(s,c,v=>{v.repeat&&Ut(d)||h(v)&&r(v)},f)}function tE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ar,once:c=!1}=t,f=On(!1),d=ke(()=>o?1e3/Ut(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const A=w-h;if(d.value&&A<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:A,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(),Ih(b),{isActive:ha(f),pause:b,resume:m}}const nE=Symbol("vueuse-ssr-width");function rE(){const e=$y()?qT(nE,null):null;return typeof e=="number"?e:void 0}function Yb(e,t={}){const{window:r=Ar,ssrWidth:o=rE()}=t,s=Kb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=je(typeof o=="number"),f=On(),d=On(!1),h=p=>{d.value=p.matches};return Eh(()=>{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 A=!!(b||w);return b&&A&&(A=o>=hm(b[1])),w&&A&&(A=o<=hm(w[1])),m?!A:A});return}s.value&&(f.value=r.matchMedia(Ut(e)),d.value=f.value.matches)}),Qi(f,"change",h,{passive:!0}),ke(()=>d.value)}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",iE=oE();function oE(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Zb(e,t){return iE[e]||t}function sE(e){return Yb("(prefers-color-scheme: dark)",e)}function lE(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 aE={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()}},gm="vueuse-storage";function Jb(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=Ar,eventFilter:b,onError:w=ee=>{console.error(ee)},initOnMounted:A}=o,N=(v?On:je)(typeof t=="function"?t():t),L=ke(()=>Ut(e));if(!r)try{r=Zb("getDefaultStorage",()=>{var ee;return(ee=Ar)==null?void 0:ee.localStorage})()}catch(ee){w(ee)}if(!r)return N;const M=Ut(t),T=lE(M),P=(s=o.serializer)!=null?s:aE[T],{pause:E,resume:B}=Gb(N,()=>U(N.value),{flush:c,deep:f,eventFilter:b});Et(L,()=>J(),{flush:c}),m&&d&&Fh(()=>{r instanceof Storage?Qi(m,"storage",J,{passive:!0}):Qi(m,gm,Y),A&&J()}),A||J();function G(ee,R){if(m){const $={key:L.value,oldValue:ee,newValue:R,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(gm,{detail:$}))}}function U(ee){try{const R=r.getItem(L.value);if(ee==null)G(R,null),r.removeItem(L.value);else{const $=P.write(ee);R!==$&&(r.setItem(L.value,$),G(R,$))}}catch(R){w(R)}}function Q(ee){const R=ee?ee.newValue:r.getItem(L.value);if(R==null)return h&&M!=null&&r.setItem(L.value,P.write(M)),M;if(!ee&&p){const $=P.read(R);return typeof p=="function"?p($,M):T==="object"&&!Array.isArray($)?{...M,...$}:$}else return typeof R!="string"?R:P.read(R)}function J(ee){if(!(ee&&ee.storageArea!==r)){if(ee&&ee.key==null){N.value=M;return}if(!(ee&&ee.key!==L.value)){E();try{(ee==null?void 0:ee.newValue)!==P.write(N.value)&&(N.value=Q(ee))}catch(R){w(R)}finally{ee?Pt(B):B()}}}}function Y(ee){J(ee.detail)}return N}const cE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function uE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ar,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=sE({window:s}),w=ke(()=>b.value?"dark":"light"),A=h||(f==null?jb(o):Jb(f,o,c,{window:s,listenToStorageChanges:d})),N=ke(()=>A.value==="auto"?w.value:A.value),L=Zb("updateHTMLAttrs",(E,B,G)=>{const U=typeof E=="string"?s==null?void 0:s.document.querySelector(E):Qc(E);if(!U)return;const Q=new Set,J=new Set;let Y=null;if(B==="class"){const R=G.split(/\s/g);Object.values(m).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{R.includes($)?Q.add($):J.add($)})}else Y={key:B,value:G};if(Q.size===0&&J.size===0&&Y===null)return;let ee;v&&(ee=s.document.createElement("style"),ee.appendChild(document.createTextNode(cE)),s.document.head.appendChild(ee));for(const R of Q)U.classList.add(R);for(const R of J)U.classList.remove(R);Y&&U.setAttribute(Y.key,Y.value),v&&(s.getComputedStyle(ee).opacity,document.head.removeChild(ee))});function M(E){var B;L(t,r,(B=m[E])!=null?B:E)}function T(E){e.onChanged?e.onChanged(E,M):M(E)}Et(N,T,{flush:"post",immediate:!0}),Fh(()=>T(N.value));const P=ke({get(){return p?A.value:N.value},set(E){A.value=E}});return Object.assign(P,{store:A,system:w,state:N})}function fE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=uE({...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=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function dE(e,t,r={}){const{window:o=Ar,...s}=r;let c;const f=Kb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const m=Ut(e);return Array.isArray(m)?m.map(b=>Qc(b)):[Qc(m)]}),p=Et(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 Ih(v),{isSupported:f,stop:v}}function Ou(e,t,r={}){const{window:o=Ar}=r;return Jb(e,t,o==null?void 0:o.localStorage,r)}function hE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ar}=t;if(!d)return er(r);const h=er({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const P=d.location.hash||"",E=P.indexOf("?");return E>0?P.slice(E):""}else return(d.location.hash||"").replace(/^#/,"")}function v(P){const E=P.toString();if(e==="history")return`${E?`?${E}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${E?`#${E}`:""}`;const B=d.location.hash||"#",G=B.indexOf("?");return G>0?`${d.location.search||""}${B.slice(0,G)}${E?`?${E}`:""}`:`${d.location.search||""}${B}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(P){const E=new Set(Object.keys(h));for(const B of P.keys()){const G=P.getAll(B);h[B]=G.length>1?G:P.get(B)||"",E.delete(B)}Array.from(E).forEach(B=>delete h[B])}const{pause:w,resume:A}=Gb(h,()=>{const P=new URLSearchParams("");Object.keys(h).forEach(E=>{const B=h[E];Array.isArray(B)?B.forEach(G=>P.append(E,G)):o&&B==null||s&&!B?P.delete(E):P.set(E,B)}),N(P,!1)},{deep:!0});function N(P,E){w(),E&&b(P),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(P)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(P)),A()}function L(){c&&N(m(),!0)}const M={passive:!0};Qi(d,"popstate",L,M),e!=="history"&&Qi(d,"hashchange",L,M);const T=m();return T.keys().next().value?b(T):Object.assign(h,r),h}function Bh(e={}){const{window:t=Ar,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=je(r),h=je(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=Yb("(orientation: portrait)");Et(m,()=>p())}return{width:d,height:h}}const Fd=On([]),Gn=On([]),Mr=Ou("vitest-ui_task-tree-opened",[],{shallow:!0}),eu=ke(()=>new Set(Mr.value)),cn=Ou("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Wn=je(cn.value.search),pE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Qb(e){return e.replace(/[&<>"']/g,t=>pE[t])}const gE=ke(()=>{const e=Wn.value.toLowerCase();return e.length?new RegExp(`(${Qb(e)})`,"gi"):null}),ew=ke(()=>Wn.value.trim()!==""),Je=er({failed:cn.value.failed,success:cn.value.success,skipped:cn.value.skipped,onlyTests:cn.value.onlyTests}),Hd=ke(()=>!!(Je.failed||Je.success||Je.skipped)),Pu=On([]),Os=je(!1),vm=ke(()=>{const e=cn.value.expandAll;return Mr.value.length>0?e!==!0:e!==!1}),vE=ke(()=>{const e=ew.value,t=Hd.value,r=Je.onlyTests,o=Ee.summary.filesFailed,s=Ee.summary.filesSuccess,c=Ee.summary.filesSkipped,f=Ee.summary.filesRunning,d=Pu.value;return Ee.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function wa(e){return Object.hasOwnProperty.call(e,"tasks")}function mE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function tw(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 yE(e){return e.type==="test"}function bE(e){return e.mode==="run"&&e.type==="test"}function Nn(e){return e.type==="file"}function pi(e){return e.type==="file"||e.type==="suite"}function wE(e=Ee.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ia(e,t=!1){var o,s,c,f,d;let r=Ee.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:eu.value.size>0&&eu.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:tw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ee.nodes.set(e.id,r),Ee.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)xa(e.id,e.tasks[h],!0)}function nw(e,t){const r=Ee.nodes.get(e);if(!r||!pi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!wa(o)))return xa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function xE(e){const t=Ee.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Ob(r)||xa(t.parentId,r,!1)}function xa(e,t,r){var f,d,h,p,v;const o=Ee.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=Ee.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):(Ob(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:eu.value.size>0&&eu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ee.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&wa(t)))for(let m=0;m<t.tasks.length;m++)xa(s.id,t.tasks[m],r)}function SE(e){const t=Ee.nodes.get(e);if(!t||!pi(t))return;const r=new Set(Mr.value);r.delete(t.id);const o=[...kE(t)];Mr.value=Array.from(r),Gn.value=o}function _E(){Bd(Ee.root.tasks);const e=[...Gn.value.filter(Nn)];Bd(e),Mr.value=[],cn.value.expandAll=!0,Gn.value=e}function Bd(e){for(const t of e)pi(t)&&(t.expanded=!1,Bd(t.tasks))}function*rw(e,t){if(t&&(yield e.id),pi(e))for(let r=0;r<e.tasks.length;r++)yield*rw(e.tasks[r],!0)}function*kE(e){const t=e.id,r=new Set(rw(e,!1));for(let o=0;o<Gn.value.length;o++){const s=Gn.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 Ru=je("idle"),gs=ke(()=>Ru.value==="idle"),Wi=je([]);function CE(e,t,r){return e?sw(e,t,r):!1}function Wh(e,t){const r=[...iw(e,t)];Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function*iw(e,t){for(const r of wE())yield*ow(r,e,t)}function*ow(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))pi(b)?(s.set(b.id,m),Nn(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&&!Nn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...EE(c,r.onlyTests,o,d,f)].reverse(),p=Ee.nodes,v=new Set(h.filter(m=>{var b;return Nn(m)||pi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Nn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function TE(e,t,r,o,s){if(o){if(Nn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}function*EE(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=Ee.nodes.get(d.parentId);for(;p;)r.add(p.id),Nn(p)&&o.add(p.id),p=Ee.nodes.get(p.parentId);yield d;continue}if(h){const p=TE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ee.nodes.get(d.parentId);p&&Nn(p)&&o.add(p.id),yield d}}}function AE(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 sw(e,t,r){if(t.length===0||mE(e.name,t))if(r.success||r.failed||r.skipped){if(AE(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(yE(e)){let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}else if(Nn(e))t.add(e.id);else{t.add(e.id);let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}if(yield[o,e],pi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function mm(e,t,r){const o=mt.state.idMap.get(e.id);return o?sw(o,t,r):!1}function ME(e,t,r){const o=nw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)xa(s.id,p,!1);s.expanded=!0;const f=new Set(Mr.value);f.add(s.id);const d=new Set(ow(s,t,r)),h=[...$E(s,d)];Mr.value=Array.from(f),Gn.value=h}function LE(e,t){qh(Ee.root.tasks,!1);const r=[...iw(e,t)];cn.value.expandAll=!1,Mr.value=[],Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function NE(e,t){if(e.size)for(const r of Gn.value)e.has(r.id)&&(r.expanded=!0);else t&&qh(Gn.value.filter(Nn),!0)}function qh(e,t){for(const r of e)pi(r)&&(r.expanded=!0,qh(r.tasks,!1));t&&(cn.value.expandAll=!1,Mr.value=[])}function*$E(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Gn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function OE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ia(s,t)),Fd.value=[...Ee.root.tasks],Wh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function PE(e){queueMicrotask(()=>{const t=Ee.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 ym(e,t,r,o,s){e&&HE(r);const c=!e;queueMicrotask(()=>{t?DE(c):IE(c)}),queueMicrotask(()=>{BE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Fd.value&&Dh(Fd.value.map(f=>ar(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{FE(o,s,t)})}function*RE(){yield*Gn.value.filter(bE)}function zE(){const e=mt.state.idMap;let t;for(const r of RE())t=e.get(r.parentId),t&&wa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function DE(e){const t=mt.state.getFiles(),r=Ee.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ia(o[c],e),tu(o[c].tasks);const s=Ee.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=ar(f.id);if(!d)continue;ia(d,e);const h=d.tasks;h!=null&&h.length&&tu(d.tasks)}}function IE(e){const t=new Map(Ee.pendingTasks.entries());Ee.pendingTasks.clear();const r=Ee.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>ar(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ia(s,!1),tu(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Ee.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=ar(h.id);if(!p)continue;const v=t.get(p.id);v&&(ia(p,e),tu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function FE(e,t,r=!1){const o=cn.value.expandAll,s=o!==!0,c=new Set(Mr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{bm(e,t,r)}),Os.value||queueMicrotask(()=>{(Gn.value.length||r)&&(Os.value=!0)}),f&&(queueMicrotask(()=>{NE(c,r),s&&(cn.value.expandAll=!1)}),queueMicrotask(()=>{bm(e,t,r)}))}function bm(e,t,r){Wh(e,t),r&&(zE(),Ru.value="idle")}function tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],wa(t)?nw(t.id,!0):xE(t.id)}function HE(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 BE(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Ee.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,ar(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 A=r.get(b);A&&(A.mode=w.mode,A.setupDuration=w.setupDuration,A.prepareDuration=w.prepareDuration,A.environmentLoad=w.environmentLoad,A.collectDuration=w.collectDuration,A.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,A.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:L,skipped:M,total:T,ignored:P,todo:E}=lw(w);s.totalTests+=T,s.testsFailed+=N,s.testsSuccess+=L,s.testsSkipped+=M,s.testsTodo+=E,s.testsIgnore+=P}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 lw(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 aw(e))(!r||CE(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 WE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>lw(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*aw(e){const t=Rh(e);let r;for(let o=0;o<t.length;o++)r=t[o],na(r)?yield r:yield*aw(r.tasks)}class qE{constructor(t=[],r=!1,o=500,s={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},c=new Map,f=new Map,d=er({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})){us(this,"rafCollector");us(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=tE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r),OE(t,!0,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){PE(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(()=>{ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}):ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collectTestsTotal(t,r,o,s){return WE(t,r,o,s,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collapseNode(t){queueMicrotask(()=>{SE(t)})}expandNode(t){queueMicrotask(()=>{ME(t,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{_E()})}expandAllNodes(){queueMicrotask(()=>{LE(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}filterNodes(){queueMicrotask(()=>{Wh(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}}const Ee=new qE,Fr=je([414,896]),zu=hE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),eo=pa(zu,"file"),Yn=pa(zu,"view"),cw=pa(zu,"line"),uw=pa(zu,"test"),Ps=je(),Es=je(!0),to=je(!1),nu=je(!0),vs=ke(()=>{var e;return(e=Du.value)==null?void 0:e.coverage}),qd=ke(()=>{var e;return(e=vs.value)==null?void 0:e.enabled}),ms=ke(()=>qd.value&&!!vs.value.htmlReporter),wr=Ou("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Lo=Ou("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),vn=er({navigation:wr.value[0],details:{size:wr.value[1],browser:Lo.value[0],main:Lo.value[1]}}),wm=ke(()=>{var e;if(ms.value){const t=vs.value.reportsDirectory.lastIndexOf("/"),r=(e=vs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${vs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${vs.value.reportsDirectory.slice(t+1)}/index.html`}});Et(Ru,e=>{nu.value=e==="running"},{immediate:!0});function UE(){const e=eo.value;if(e&&e.length>0){const t=ar(e);t?(Ps.value=t,Es.value=!1,to.value=!1):ZT(()=>mt.state.getFiles(),()=>{Ps.value=ar(e),Es.value=!1,to.value=!1})}return Es}function ru(e){Es.value=e,to.value=!1,e&&(Ps.value=void 0,eo.value="")}function fw({file:e,line:t,view:r,test:o}){eo.value=e,cw.value=t,Yn.value=r,uw.value=o,Ps.value=ar(e),ru(!1)}function jE(e){fw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function VE(){to.value=!0,Es.value=!1,Ps.value=void 0,eo.value=""}function GE(){vn.details.browser=100,vn.details.main=0,Lo.value=[100,0]}function KE(){vn.details.browser=33,vn.details.main=67,Lo.value=[33,67]}function XE(){vn.navigation=33,vn.details.size=67,wr.value=[33,67]}const YE={setCurrentFileId(e){eo.value=e,Ps.value=ar(e),ru(!1)},async setIframeViewport(e,t){Fr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},ZE=location.port,JE=[location.hostname,ZE].filter(Boolean).join(":"),QE=`${location.protocol==="https:"?"wss:":"ws:"}//${JE}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Cr=!!window.METADATA_PATH,eA=44,xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tA=new Uint8Array(64),dw=new Uint8Array(128);for(let e=0;e<xm.length;e++){const t=xm.charCodeAt(e);tA[e]=t,dw[t]=e}function Sl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=dw[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()!==eA}class nA{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 rA(e){const{length:t}=e,r=new nA(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||iA(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function iA(e){e.sort(oA)}function oA(e,t){return e[0]-t[0]}const sA=/^[\w+.-]+:\/\//,lA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,aA=/^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 cA(e){return sA.test(e)}function uA(e){return e.startsWith("//")}function hw(e){return e.startsWith("/")}function fA(e){return e.startsWith("file:")}function _m(e){return/^[.?#]/.test(e)}function gc(e){const t=lA.exec(e);return pw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function dA(e){const t=aA.exec(e),r=t[2];return pw("file:","",t[1]||"","",hw(r)?r:"/"+r,t[3]||"",t[4]||"")}function pw(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 km(e){if(uA(e)){const r=gc("http:"+e);return r.scheme="",r.type=Wt.SchemeRelative,r}if(hw(e)){const r=gc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Wt.AbsolutePath,r}if(fA(e))return dA(e);if(cA(e))return gc(e);const t=gc("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 hA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function pA(e,t){gw(t,t.type),e.path==="/"?e.path=t.path:e.path=hA(t.path)+e.path}function gw(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 gA(e,t){if(!e&&!t)return"";const r=km(e);let o=r.type;if(t&&o!==Wt.Absolute){const c=km(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:pA(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)}gw(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?_m(t||e)&&!_m(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+="/"),gA(e,t)}function vA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,mA=1,yA=2,bA=3,wA=4;function xA(e,t){const r=Tm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Tm(e,o+1))e[o]=_A(e[o],t);return e}function Tm(e,t){for(let r=t;r<e.length;r++)if(!SA(e[r]))return r;return e.length}function SA(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function _A(e,t){return t||(e=e.slice()),e.sort(kA)}function kA(e,t){return e[no]-t[no]}let iu=!1;function CA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function TA(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function EA(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function AA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function MA(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 iu=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=CA(e,t,d,h)}const LA="`line` must be greater than 0 (lines start at line 1)",NA="`column` must be greater than or equal to 0 (columns start at column 0)",Em=-1,$A=1;class OA{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||"",vA(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=xA(b,o)),this._decodedMemo=AA(),this._bySources=void 0,this._bySourceMemos=void 0}}function PA(e){var t;return(t=e)._decoded||(t._decoded=rA(e._encoded))}function RA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(LA);if(o<0)throw new Error(NA);const c=PA(e);if(r>=c.length)return vc(null,null,null,null);const f=c[r],d=zA(f,e._decodedMemo,r,o,s||$A);if(d===-1)return vc(null,null,null,null);const h=f[d];if(h.length===1)return vc(null,null,null,null);const{names:p,resolvedSources:v}=e;return vc(v[h[mA]],h[yA]+1,h[bA],h.length===5?p[h[wA]]:null)}function vc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function zA(e,t,r,o,s){let c=MA(e,o,t,r);return iu?c=(s===Em?TA:EA)(e,o,c):s===Em&&c++,c===-1||c===e.length?-1:c}const DA=/^[A-Za-z]:\//;function IA(e=""){return e&&e.replace(/\\/g,"/").replace(DA,t=>t.toUpperCase())}const FA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function HA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const BA=function(...e){e=e.map(o=>IA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:HA();!s||s.length===0||(t=`${s}/${t}`,r=Am(s))}return t=WA(t,!r),r&&!Am(t)?`/${t}`:t.length>0?t:"."};function WA(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 FA.test(e)},vw=/^\s*at .*(?:\S:\d+|\(native\))/m,qA=/^(?:eval@)?(?:\[native code\])?$/,UA=["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 mw(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:"))&&(o=new URL(o).pathname),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 jA(e){let t=e.trim();if(qA.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]=mw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function VA(e){let t=e.trim();if(!vw.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]=mw(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:BA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function GA(e,t={}){const{ignoreStackEntries:r=UA}=t;let o=vw.test(e)?XA(e):KA(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new OA(f),{line:h,column:p}=RA(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function KA(e){return e.split(`
18
- `).map(t=>jA(t)).filter(Nb)}function XA(e){return e.split(`
19
- `).map(t=>VA(t)).filter(Nb)}function yw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var td={},yr={};const YA="Á",ZA="á",JA="Ă",QA="ă",eM="∾",tM="∿",nM="∾̳",rM="Â",iM="â",oM="´",sM="А",lM="а",aM="Æ",cM="æ",uM="⁡",fM="𝔄",dM="𝔞",hM="À",pM="à",gM="ℵ",vM="ℵ",mM="Α",yM="α",bM="Ā",wM="ā",xM="⨿",SM="&",_M="&",kM="",CM="",TM="",EM="",AM="",MM="",LM="",NM="",$M="",OM="",PM="",RM="",zM="",DM="",IM="",FM="",HM="",BM="",WM="",qM="",UM="",jM="",VM="Å",GM="",KM="Ą",XM="ą",YM="𝔸",ZM="𝕒",JM="",QM="",eL="",tL="",nL="",rL="'",iL="",oL="",sL="",lL="Å",aL="å",cL="𝒜",uL="𝒶",fL="",dL="*",hL="",pL="",gL="Ã",vL="ã",mL="Ä",yL="ä",bL="",wL="",xL="",SL="϶",_L="",kL="",CL="",TL="",EL="",AL="",ML="",LL="",NL="",$L="",OL="",PL="",RL="Б",zL="б",DL="",IL="",FL="∵",HL="∵",BL="",WL="϶",qL="",UL="ℬ",jL="Β",VL="β",GL="",KL="",XL="𝔅",YL="𝔟",ZL="",JL="",QL="",eN="",tN="",nN="",rN="",iN="",oN="",sN="",lN="",aN="",cN="",uN="",fN="",dN="",hN="",pN="",gN="",vN="",mN="",yN="",bN="",wN="",xN="",SN="=⃥",_N="≡⃥",kN="",CN="",TN="𝔹",EN="𝕓",AN="",MN="⊥",LN="",NN="",$N="",ON="",PN="",RN="",zN="",DN="",IN="",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$="¦",C$="𝒷",T$="",E$="",A$="",M$="",L$="",N$="\\",$$="",O$="",P$="•",R$="",z$="",D$="",I$="",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="ч",SO="",_O="✓",kO="Χ",CO="χ",TO="ˆ",EO="",AO="",MO="",LO="",NO="",$O="",OO="",PO="®",RO="",zO="",DO="",IO="",FO="",HO="",BO="",WO="",qO="",UO="",jO="",VO="",GO="",KO="",XO="♣",YO=":",ZO="",JO="",QO="",eP="≔",tP=",",nP="@",rP="",iP="",oP="",sP="",lP="",aP="",cP="",uP="",fP="",dP="",hP="𝕔",pP="",gP="",vP="∐",mP="©",yP="©",bP="",wP="",xP="",SP="",_P="",kP="𝒞",CP="𝒸",TP="",EP="",AP="",MP="",LP="",NP="",$P="",OP="",PP="",RP="",zP="",DP="",IP="",FP="",HP="",BP="",WP="",qP="",UP="",jP="∪︀",VP="",GP="",KP="",XP="",YP="",ZP="",JP="¤",QP="",eR="",tR="",nR="",rR="",iR="",oR="",sR="",lR="",aR="",cR="",uR="",fR="",dR="",hR="",pR="",gR="",vR="˝",mR="Ď",yR="ď",bR="Д",wR="д",xR="",SR="",_R="",kR="",CR="",TR="",ER="°",AR="",MR="Δ",LR="δ",NR="",$R="⥿",OR="𝔇",PR="𝔡",RR="",zR="",DR="",IR="´",FR="˙",HR="˝",BR="`",WR="˜",qR="",UR="⋄",jR="⋄",VR="",GR="♦",KR="¨",XR="",YR="ϝ",ZR="",JR="÷",QR="÷",e2="",t2="⋇",n2="Ђ",r2="ђ",i2="",o2="",s2="$",l2="𝔻",a2="𝕕",c2="¨",u2="˙",f2="",d2="",h2="",p2="",g2="",v2="",m2="",y2="",b2="",w2="¨",x2="",S2="",_2="",k2="",C2="",T2="",E2="",A2="",M2="",L2="",N2="",$2="",O2="",P2="",R2="↓",z2="",D2="",I2="̑",F2="",H2="",B2="",W2="",q2="",U2="",j2="",V2="",G2="",K2="",X2="",Y2="",Z2="",J2="",Q2="",ez="𝒟",tz="𝒹",nz="Ѕ",rz="ѕ",iz="",oz="Đ",sz="đ",lz="",az="",cz="",uz="",fz="",dz="",hz="Џ",pz="џ",gz="",vz="É",mz="é",yz="",bz="Ě",wz="ě",xz="Ê",Sz="ê",_z="",kz="",Cz="Э",Tz="э",Ez="",Az="Ė",Mz="ė",Lz="",Nz="",$z="",Oz="𝔈",Pz="𝔢",Rz="",zz="È",Dz="è",Iz="",Fz="",Hz="",Bz="",Wz="",qz="",Uz="",jz="",Vz="Ē",Gz="ē",Kz="",Xz="∅",Yz="",Zz="",Jz="",Qz="",eD="",tD="",nD="Ŋ",rD="ŋ",iD="",oD="Ę",sD="ę",lD="𝔼",aD="𝕖",cD="",uD="",fD="",dD="ε",hD="Ε",pD="ε",gD="ϵ",vD="",mD="",yD="",bD="",wD="",xD="",SD="=",_D="",kD="",CD="",TD="",ED="",AD="",MD="",LD="",ND="",$D="",OD="",PD="",RD="",zD="Η",DD="η",ID="Ð",FD="ð",HD="Ë",BD="ë",WD="",qD="!",UD="",jD="∃",VD="",GD="",KD="ⅇ",XD="",YD="Ф",ZD="ф",JD="",QD="",eI="",tI="",nI="𝔉",rI="𝔣",iI="",oI="",sI="",lI="fj",aI="",cI="",uI="",fI="ƒ",dI="𝔽",hI="𝕗",pI="",gI="∀",vI="",mI="",yI="",bI="",wI="½",xI="",SI="¼",_I="",kI="",CI="",TI="",EI="",AI="¾",MI="",LI="",NI="",$I="",OI="",PI="",RI="",zI="",DI="𝒻",II="",FI="ǵ",HI="Γ",BI="γ",WI="Ϝ",qI="ϝ",UI="",jI="Ğ",VI="ğ",GI="Ģ",KI="Ĝ",XI="ĝ",YI="Г",ZI="г",JI="Ġ",QI="ġ",eF="",tF="",nF="",rF="",iF="",oF="",sF="",lF="",aF="",cF="",uF="",fF="",dF="⋛︀",hF="",pF="𝔊",gF="𝔤",vF="",mF="",yF="⋙",bF="",wF="Ѓ",xF="ѓ",SF="",_F="",kF="",CF="",TF="",EF="⪊",AF="",MF="",LF="",NF="",$F="",OF="𝔾",PF="𝕘",RF="`",zF="",DF="",IF="",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="^",SH="",_H="Ĥ",kH="ĥ",CH="",TH="♥",EH="",AH="",MH="𝔥",LH="",NH="",$H="",OH="",PH="",RH="",zH="",DH="",IH="𝕙",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="IJ",bB="ij",wB="Ī",xB="ī",SB="",_B="",kB="",CB="",TB="ı",EB="",AB="",MB="Ƶ",LB="",NB="",$B="",OB="",PB="ı",RB="",zB="",DB="",IB="",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="𝔍",S3="𝔧",_3="ȷ",k3="𝕁",C3="𝕛",T3="𝒥",E3="𝒿",A3="Ј",M3="ј",L3="Є",N3="є",$3="Κ",O3="κ",P3="ϰ",R3="Ķ",z3="ķ",D3="К",I3="к",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="",S5="",_5="",k5="",C5="⪭︀",T5="",E5="",A5="",M5="{",L5="[",N5="",$5="",O5="",P5="Ľ",R5="ľ",z5="Ļ",D5="ļ",I5="",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="",S8="",_8="",k8="",C8="",T8="",E8="",A8="",M8="",L8="",N8="",$8="",O8="",P8="",R8="",z8="",D8="",I8="",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="",SW="Ŀ",_W="ŀ",kW="",CW="⎰",TW="",EW="⪉",AW="",MW="",LW="",NW="",$W="",OW="",PW="",RW="",zW="",DW="⟵",IW="",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="",S4="[",_4="",k4="",C4="Ł",T4="ł",E4="",A4="",M4="<",L4="<",N4="",$4="",O4="",P4="",R4="",z4="",D4="",I4="",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="",Sq="",_q="",kq="",Cq="",Tq="𝕄",Eq="𝕞",Aq="",Mq="𝓂",Lq="",Nq="",$q="Μ",Oq="μ",Pq="",Rq="⊸",zq="",Dq="Ń",Iq="ń",Fq="∠⃒",Hq="",Bq="⩰̸",Wq="≋̸",qq="ʼn",Uq="",jq="",Vq="",Gq="",Kq=" ",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="",S6="≪",_6=`
20
- `,k6="∄",C6="∄",T6="𝔑",E6="𝔫",A6="≧̸",M6="≱",L6="≱",N6="≧̸",$6="⩾̸",O6="⩾̸",P6="⋙̸",R6="≵",z6="≫⃒",D6="≯",I6="≯",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="⫬",SU="¬",_U="≢",kU="≭",CU="∦",TU="∉",EU="≠",AU="≂̸",MU="∄",LU="≯",NU="≱",$U="≧̸",OU="≫̸",PU="≹",RU="⩾̸",zU="≵",DU="≎̸",IU="≏̸",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="⋡",Sj="≿̸",_j="⊃⃒",kj="⊉",Cj="≁",Tj="≄",Ej="≇",Aj="≉",Mj="∤",Lj="∦",Nj="∦",$j="⫽⃥",Oj="∂̸",Pj="⨔",Rj="⊀",zj="⋠",Dj="⊀",Ij="⪯̸",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="⫆̸",SV="≹",_V="Ñ",kV="ñ",CV="≸",TV="⋪",EV="⋬",AV="⋫",MV="⋭",LV="Ν",NV="ν",$V="#",OV="№",PV=" ",RV="≍⃒",zV="⊬",DV="⊭",IV="⊮",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="˛",S9="Ò",_9="ò",k9="⧁",C9="⦵",T9="Ω",E9="∮",A9="↺",M9="⦾",L9="⦻",N9="‾",$9="⧀",O9="Ō",P9="ō",R9="Ω",z9="ω",D9="Ο",I9="ο",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="⏞",SG="⎴",_G="⏜",kG="¶",CG="∥",TG="∥",EG="⫳",AG="⫽",MG="∂",LG="∂",NG="П",$G="п",OG="%",PG=".",RG="‰",zG="⊥",DG="‱",IG="𝔓",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="≼",S7="≺",_7="⪯",k7="≼",C7="≾",T7="⪯",E7="⪹",A7="⪵",M7="⋨",L7="⪯",N7="⪳",$7="≾",O7="′",P7="″",R7="ℙ",z7="⪹",D7="⪵",I7="⋨",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="⟩",SK="⟫",_K="⦒",kK="⦥",CK="⟩",TK="»",EK="⥵",AK="⇥",MK="⤠",LK="⤳",NK="→",$K="↠",OK="⇒",PK="⤞",RK="↪",zK="↬",DK="⥅",IK="⥴",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="®",SX="∋",_X="⇋",kX="⥯",CX="⥽",TX="⌋",EX="𝔯",AX="ℜ",MX="⥤",LX="⇁",NX="⇀",$X="⥬",OX="Ρ",PX="ρ",RX="ϱ",zX="⟩",DX="⇥",IX="→",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="⫮",SY="⟭",_Y="⇾",kY="⟧",CY="⦆",TY="𝕣",EY="ℝ",AY="⨮",MY="⨵",LY="⥰",NY=")",$Y="⦔",OY="⨒",PY="⇉",RY="⇛",zY="›",DY="𝓇",IY="ℛ",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="⊡",SZ="⋅",_Z="⩦",kZ="⤥",CZ="↘",TZ="⇘",EZ="↘",AZ="§",MZ=";",LZ="⤩",NZ="∖",$Z="∖",OZ="✶",PZ="𝔖",RZ="𝔰",zZ="⌢",DZ="♯",IZ="Щ",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="ь",SJ="⌿",_J="⧄",kJ="/",CJ="𝕊",TJ="𝕤",EJ="♠",AJ="♠",MJ="∥",LJ="⊓",NJ="⊓︀",$J="⊔",OJ="⊔︀",PJ="√",RJ="⊏",zJ="⊑",DJ="⊏",IJ="⊑",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="⪿",SQ="⥹",_Q="⊂",kQ="⋐",CQ="⊆",TQ="⫅",EQ="⊆",AQ="⊊",MQ="⫋",LQ="⫇",NQ="⫕",$Q="⫓",OQ="⪸",PQ="≻",RQ="≽",zQ="≻",DQ="⪰",IQ="≽",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="⫔",See="⫖",_ee="⤦",kee="↙",Cee="⇙",Tee="↙",Eee="⤪",Aee="ß",Mee=" ",Lee="⌖",Nee="Τ",$ee="τ",Oee="⎴",Pee="Ť",Ree="ť",zee="Ţ",Dee="ţ",Iee="Т",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="𝕥",Ste="⫚",_te="⤩",kte="‴",Cte="™",Tte="™",Ete="▵",Ate="▿",Mte="◃",Lte="⊴",Nte="≜",$te="▹",Ote="⊵",Pte="◬",Rte="≜",zte="⨺",Dte="⃛",Ite="⨹",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="ù",Sne="⥣",_ne="↿",kne="↾",Cne="▀",Tne="⌜",Ene="⌜",Ane="⌏",Mne="◸",Lne="Ū",Nne="ū",$ne="¨",One="_",Pne="⏟",Rne="⎵",zne="⏝",Dne="⋃",Ine="⊎",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="ũ",Sre="▵",_re="▴",kre="⇈",Cre="Ü",Tre="ü",Ere="⦧",Are="⦜",Mre="ϵ",Lre="ϰ",Nre="∅",$re="ϕ",Ore="ϖ",Pre="∝",Rre="↕",zre="⇕",Dre="ϱ",Ire="ς",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="𝕍",Sie="𝕧",_ie="∝",kie="⊳",Cie="𝒱",Tie="𝓋",Eie="⫋︀",Aie="⊊︀",Mie="⫌︀",Lie="⊋︀",Nie="⊪",$ie="⦚",Oie="Ŵ",Pie="ŵ",Rie="⩟",zie="∧",Die="⋀",Iie="≙",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="⋁",Soe="⋀",_oe="Ý",koe="ý",Coe="Я",Toe="я",Eoe="Ŷ",Aoe="ŷ",Moe="Ы",Loe="ы",Noe="¥",$oe="𝔜",Ooe="𝔶",Poe="Ї",Roe="ї",zoe="𝕐",Doe="𝕪",Ioe="𝒴",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="‌",bw={Aacute:YA,aacute:ZA,Abreve:JA,abreve:QA,ac:eM,acd:tM,acE:nM,Acirc:rM,acirc:iM,acute:oM,Acy:sM,acy:lM,AElig:aM,aelig:cM,af:uM,Afr:fM,afr:dM,Agrave:hM,agrave:pM,alefsym:gM,aleph:vM,Alpha:mM,alpha:yM,Amacr:bM,amacr:wM,amalg:xM,amp:SM,AMP:_M,andand:kM,And:CM,and:TM,andd:EM,andslope:AM,andv:MM,ang:LM,ange:NM,angle:$M,angmsdaa:OM,angmsdab:PM,angmsdac:RM,angmsdad:zM,angmsdae:DM,angmsdaf:IM,angmsdag:FM,angmsdah:HM,angmsd:BM,angrt:WM,angrtvb:qM,angrtvbd:UM,angsph:jM,angst:VM,angzarr:GM,Aogon:KM,aogon:XM,Aopf:YM,aopf:ZM,apacir:JM,ap:QM,apE:eL,ape:tL,apid:nL,apos:rL,ApplyFunction:iL,approx:oL,approxeq:sL,Aring:lL,aring:aL,Ascr:cL,ascr:uL,Assign:fL,ast:dL,asymp:hL,asympeq:pL,Atilde:gL,atilde:vL,Auml:mL,auml:yL,awconint:bL,awint:wL,backcong:xL,backepsilon:SL,backprime:_L,backsim:kL,backsimeq:CL,Backslash:TL,Barv:EL,barvee:AL,barwed:ML,Barwed:LL,barwedge:NL,bbrk:$L,bbrktbrk:OL,bcong:PL,Bcy:RL,bcy:zL,bdquo:DL,becaus:IL,because:FL,Because:HL,bemptyv:BL,bepsi:WL,bernou:qL,Bernoullis:UL,Beta:jL,beta:VL,beth:GL,between:KL,Bfr:XL,bfr:YL,bigcap:ZL,bigcirc:JL,bigcup:QL,bigodot:eN,bigoplus:tN,bigotimes:nN,bigsqcup:rN,bigstar:iN,bigtriangledown:oN,bigtriangleup:sN,biguplus:lN,bigvee:aN,bigwedge:cN,bkarow:uN,blacklozenge:fN,blacksquare:dN,blacktriangle:hN,blacktriangledown:pN,blacktriangleleft:gN,blacktriangleright:vN,blank:mN,blk12:yN,blk14:bN,blk34:wN,block:xN,bne:SN,bnequiv:_N,bNot:kN,bnot:CN,Bopf:TN,bopf:EN,bot:AN,bottom:MN,bowtie:LN,boxbox:NN,boxdl:$N,boxdL:ON,boxDl:PN,boxDL:RN,boxdr:zN,boxdR:DN,boxDr:IN,boxDR:FN,boxh:HN,boxH:BN,boxhd:WN,boxHd:qN,boxhD:UN,boxHD:jN,boxhu:VN,boxHu:GN,boxhU:KN,boxHU:XN,boxminus:YN,boxplus:ZN,boxtimes:JN,boxul:QN,boxuL:e$,boxUl:t$,boxUL:n$,boxur:r$,boxuR:i$,boxUr:o$,boxUR:s$,boxv:l$,boxV:a$,boxvh:c$,boxvH:u$,boxVh:f$,boxVH:d$,boxvl:h$,boxvL:p$,boxVl:g$,boxVL:v$,boxvr:m$,boxvR:y$,boxVr:b$,boxVR:w$,bprime:x$,breve:S$,Breve:_$,brvbar:k$,bscr:C$,Bscr:T$,bsemi:E$,bsim:A$,bsime:M$,bsolb:L$,bsol:N$,bsolhsub:$$,bull:O$,bullet:P$,bump:R$,bumpE:z$,bumpe:D$,Bumpeq:I$,bumpeq:F$,Cacute:H$,cacute:B$,capand:W$,capbrcup:q$,capcap:U$,cap:j$,Cap:V$,capcup:G$,capdot:K$,CapitalDifferentialD:X$,caps:Y$,caret:Z$,caron:J$,Cayleys:Q$,ccaps:eO,Ccaron:tO,ccaron:nO,Ccedil:rO,ccedil:iO,Ccirc:oO,ccirc:sO,Cconint:lO,ccups:aO,ccupssm:cO,Cdot:uO,cdot:fO,cedil:dO,Cedilla:hO,cemptyv:pO,cent:gO,centerdot:vO,CenterDot:mO,cfr:yO,Cfr:bO,CHcy:wO,chcy:xO,check:SO,checkmark:_O,Chi:kO,chi:CO,circ:TO,circeq:EO,circlearrowleft:AO,circlearrowright:MO,circledast:LO,circledcirc:NO,circleddash:$O,CircleDot:OO,circledR:PO,circledS:RO,CircleMinus:zO,CirclePlus:DO,CircleTimes:IO,cir:FO,cirE:HO,cire:BO,cirfnint:WO,cirmid:qO,cirscir:UO,ClockwiseContourIntegral:jO,CloseCurlyDoubleQuote:VO,CloseCurlyQuote:GO,clubs:KO,clubsuit:XO,colon:YO,Colon:ZO,Colone:JO,colone:QO,coloneq:eP,comma:tP,commat:nP,comp:rP,compfn:iP,complement:oP,complexes:sP,cong:lP,congdot:aP,Congruent:cP,conint:uP,Conint:fP,ContourIntegral:dP,copf:hP,Copf:pP,coprod:gP,Coproduct:vP,copy:mP,COPY:yP,copysr:bP,CounterClockwiseContourIntegral:wP,crarr:xP,cross:SP,Cross:_P,Cscr:kP,cscr:CP,csub:TP,csube:EP,csup:AP,csupe:MP,ctdot:LP,cudarrl:NP,cudarrr:$P,cuepr:OP,cuesc:PP,cularr:RP,cularrp:zP,cupbrcap:DP,cupcap:IP,CupCap:FP,cup:HP,Cup:BP,cupcup:WP,cupdot:qP,cupor:UP,cups:jP,curarr:VP,curarrm:GP,curlyeqprec:KP,curlyeqsucc:XP,curlyvee:YP,curlywedge:ZP,curren:JP,curvearrowleft:QP,curvearrowright:eR,cuvee:tR,cuwed:nR,cwconint:rR,cwint:iR,cylcty:oR,dagger:sR,Dagger:lR,daleth:aR,darr:cR,Darr:uR,dArr:fR,dash:dR,Dashv:hR,dashv:pR,dbkarow:gR,dblac:vR,Dcaron:mR,dcaron:yR,Dcy:bR,dcy:wR,ddagger:xR,ddarr:SR,DD:_R,dd:kR,DDotrahd:CR,ddotseq:TR,deg:ER,Del:AR,Delta:MR,delta:LR,demptyv:NR,dfisht:$R,Dfr:OR,dfr:PR,dHar:RR,dharl:zR,dharr:DR,DiacriticalAcute:IR,DiacriticalDot:FR,DiacriticalDoubleAcute:HR,DiacriticalGrave:BR,DiacriticalTilde:WR,diam:qR,diamond:UR,Diamond:jR,diamondsuit:VR,diams:GR,die:KR,DifferentialD:XR,digamma:YR,disin:ZR,div:JR,divide:QR,divideontimes:e2,divonx:t2,DJcy:n2,djcy:r2,dlcorn:i2,dlcrop:o2,dollar:s2,Dopf:l2,dopf:a2,Dot:c2,dot:u2,DotDot:f2,doteq:d2,doteqdot:h2,DotEqual:p2,dotminus:g2,dotplus:v2,dotsquare:m2,doublebarwedge:y2,DoubleContourIntegral:b2,DoubleDot:w2,DoubleDownArrow:x2,DoubleLeftArrow:S2,DoubleLeftRightArrow:_2,DoubleLeftTee:k2,DoubleLongLeftArrow:C2,DoubleLongLeftRightArrow:T2,DoubleLongRightArrow:E2,DoubleRightArrow:A2,DoubleRightTee:M2,DoubleUpArrow:L2,DoubleUpDownArrow:N2,DoubleVerticalBar:$2,DownArrowBar:O2,downarrow:P2,DownArrow:R2,Downarrow:z2,DownArrowUpArrow:D2,DownBreve:I2,downdownarrows:F2,downharpoonleft:H2,downharpoonright:B2,DownLeftRightVector:W2,DownLeftTeeVector:q2,DownLeftVectorBar:U2,DownLeftVector:j2,DownRightTeeVector:V2,DownRightVectorBar:G2,DownRightVector:K2,DownTeeArrow:X2,DownTee:Y2,drbkarow:Z2,drcorn:J2,drcrop:Q2,Dscr:ez,dscr:tz,DScy:nz,dscy:rz,dsol:iz,Dstrok:oz,dstrok:sz,dtdot:lz,dtri:az,dtrif:cz,duarr:uz,duhar:fz,dwangle:dz,DZcy:hz,dzcy:pz,dzigrarr:gz,Eacute:vz,eacute:mz,easter:yz,Ecaron:bz,ecaron:wz,Ecirc:xz,ecirc:Sz,ecir:_z,ecolon:kz,Ecy:Cz,ecy:Tz,eDDot:Ez,Edot:Az,edot:Mz,eDot:Lz,ee:Nz,efDot:$z,Efr:Oz,efr:Pz,eg:Rz,Egrave:zz,egrave:Dz,egs:Iz,egsdot:Fz,el:Hz,Element:Bz,elinters:Wz,ell:qz,els:Uz,elsdot:jz,Emacr:Vz,emacr:Gz,empty:Kz,emptyset:Xz,EmptySmallSquare:Yz,emptyv:Zz,EmptyVerySmallSquare:Jz,emsp13:Qz,emsp14:eD,emsp:tD,ENG:nD,eng:rD,ensp:iD,Eogon:oD,eogon:sD,Eopf:lD,eopf:aD,epar:cD,eparsl:uD,eplus:fD,epsi:dD,Epsilon:hD,epsilon:pD,epsiv:gD,eqcirc:vD,eqcolon:mD,eqsim:yD,eqslantgtr:bD,eqslantless:wD,Equal:xD,equals:SD,EqualTilde:_D,equest:kD,Equilibrium:CD,equiv:TD,equivDD:ED,eqvparsl:AD,erarr:MD,erDot:LD,escr:ND,Escr:$D,esdot:OD,Esim:PD,esim:RD,Eta:zD,eta:DD,ETH:ID,eth:FD,Euml:HD,euml:BD,euro:WD,excl:qD,exist:UD,Exists:jD,expectation:VD,exponentiale:GD,ExponentialE:KD,fallingdotseq:XD,Fcy:YD,fcy:ZD,female:JD,ffilig:QD,fflig:eI,ffllig:tI,Ffr:nI,ffr:rI,filig:iI,FilledSmallSquare:oI,FilledVerySmallSquare:sI,fjlig:lI,flat:aI,fllig:cI,fltns:uI,fnof:fI,Fopf:dI,fopf:hI,forall:pI,ForAll:gI,fork:vI,forkv:mI,Fouriertrf:yI,fpartint:bI,frac12:wI,frac13:xI,frac14:SI,frac15:_I,frac16:kI,frac18:CI,frac23:TI,frac25:EI,frac34:AI,frac35:MI,frac38:LI,frac45:NI,frac56:$I,frac58:OI,frac78:PI,frasl:RI,frown:zI,fscr:DI,Fscr:II,gacute:FI,Gamma:HI,gamma:BI,Gammad:WI,gammad:qI,gap:UI,Gbreve:jI,gbreve:VI,Gcedil:GI,Gcirc:KI,gcirc:XI,Gcy:YI,gcy:ZI,Gdot:JI,gdot:QI,ge:eF,gE:tF,gEl:nF,gel:rF,geq:iF,geqq:oF,geqslant:sF,gescc:lF,ges:aF,gesdot:cF,gesdoto:uF,gesdotol:fF,gesl:dF,gesles:hF,Gfr:pF,gfr:gF,gg:vF,Gg:mF,ggg:yF,gimel:bF,GJcy:wF,gjcy:xF,gla:SF,gl:_F,glE:kF,glj:CF,gnap:TF,gnapprox:EF,gne:AF,gnE:MF,gneq:LF,gneqq:NF,gnsim:$F,Gopf:OF,gopf:PF,grave:RF,GreaterEqual:zF,GreaterEqualLess:DF,GreaterFullEqual:IF,GreaterGreater:FF,GreaterLess:HF,GreaterSlantEqual:BF,GreaterTilde:WF,Gscr:qF,gscr:UF,gsim:jF,gsime:VF,gsiml:GF,gtcc:KF,gtcir:XF,gt:YF,GT:ZF,Gt:JF,gtdot:QF,gtlPar:eH,gtquest:tH,gtrapprox:nH,gtrarr:rH,gtrdot:iH,gtreqless:oH,gtreqqless:sH,gtrless:lH,gtrsim:aH,gvertneqq:cH,gvnE:uH,Hacek:fH,hairsp:dH,half:hH,hamilt:pH,HARDcy:gH,hardcy:vH,harrcir:mH,harr:yH,hArr:bH,harrw:wH,Hat:xH,hbar:SH,Hcirc:_H,hcirc:kH,hearts:CH,heartsuit:TH,hellip:EH,hercon:AH,hfr:MH,Hfr:LH,HilbertSpace:NH,hksearow:$H,hkswarow:OH,hoarr:PH,homtht:RH,hookleftarrow:zH,hookrightarrow:DH,hopf:IH,Hopf:FH,horbar:HH,HorizontalLine:BH,hscr:WH,Hscr:qH,hslash:UH,Hstrok:jH,hstrok:VH,HumpDownHump:GH,HumpEqual:KH,hybull:XH,hyphen:YH,Iacute:ZH,iacute:JH,ic:QH,Icirc:eB,icirc:tB,Icy:nB,icy:rB,Idot:iB,IEcy:oB,iecy:sB,iexcl:lB,iff:aB,ifr:cB,Ifr:uB,Igrave:fB,igrave:dB,ii:hB,iiiint:pB,iiint:gB,iinfin:vB,iiota:mB,IJlig:yB,ijlig:bB,Imacr:wB,imacr:xB,image:SB,ImaginaryI:_B,imagline:kB,imagpart:CB,imath:TB,Im:EB,imof:AB,imped:MB,Implies:LB,incare:NB,in:"∈",infin:$B,infintie:OB,inodot:PB,intcal:RB,int:zB,Int:DB,integers:IB,Integral:FB,intercal:HB,Intersection:BB,intlarhk:WB,intprod:qB,InvisibleComma:UB,InvisibleTimes:jB,IOcy:VB,iocy:GB,Iogon:KB,iogon:XB,Iopf:YB,iopf:ZB,Iota:JB,iota:QB,iprod:e3,iquest:t3,iscr:n3,Iscr:r3,isin:i3,isindot:o3,isinE:s3,isins:l3,isinsv:a3,isinv:c3,it:u3,Itilde:f3,itilde:d3,Iukcy:h3,iukcy:p3,Iuml:g3,iuml:v3,Jcirc:m3,jcirc:y3,Jcy:b3,jcy:w3,Jfr:x3,jfr:S3,jmath:_3,Jopf:k3,jopf:C3,Jscr:T3,jscr:E3,Jsercy:A3,jsercy:M3,Jukcy:L3,jukcy:N3,Kappa:$3,kappa:O3,kappav:P3,Kcedil:R3,kcedil:z3,Kcy:D3,kcy:I3,Kfr:F3,kfr:H3,kgreen:B3,KHcy:W3,khcy:q3,KJcy:U3,kjcy:j3,Kopf:V3,kopf:G3,Kscr:K3,kscr:X3,lAarr:Y3,Lacute:Z3,lacute:J3,laemptyv:Q3,lagran:e5,Lambda:t5,lambda:n5,lang:r5,Lang:i5,langd:o5,langle:s5,lap:l5,Laplacetrf:a5,laquo:c5,larrb:u5,larrbfs:f5,larr:d5,Larr:h5,lArr:p5,larrfs:g5,larrhk:v5,larrlp:m5,larrpl:y5,larrsim:b5,larrtl:w5,latail:x5,lAtail:S5,lat:_5,late:k5,lates:C5,lbarr:T5,lBarr:E5,lbbrk:A5,lbrace:M5,lbrack:L5,lbrke:N5,lbrksld:$5,lbrkslu:O5,Lcaron:P5,lcaron:R5,Lcedil:z5,lcedil:D5,lceil:I5,lcub:F5,Lcy:H5,lcy:B5,ldca:W5,ldquo:q5,ldquor:U5,ldrdhar:j5,ldrushar:V5,ldsh:G5,le:K5,lE:X5,LeftAngleBracket:Y5,LeftArrowBar:Z5,leftarrow:J5,LeftArrow:Q5,Leftarrow:e8,LeftArrowRightArrow:t8,leftarrowtail:n8,LeftCeiling:r8,LeftDoubleBracket:i8,LeftDownTeeVector:o8,LeftDownVectorBar:s8,LeftDownVector:l8,LeftFloor:a8,leftharpoondown:c8,leftharpoonup:u8,leftleftarrows:f8,leftrightarrow:d8,LeftRightArrow:h8,Leftrightarrow:p8,leftrightarrows:g8,leftrightharpoons:v8,leftrightsquigarrow:m8,LeftRightVector:y8,LeftTeeArrow:b8,LeftTee:w8,LeftTeeVector:x8,leftthreetimes:S8,LeftTriangleBar:_8,LeftTriangle:k8,LeftTriangleEqual:C8,LeftUpDownVector:T8,LeftUpTeeVector:E8,LeftUpVectorBar:A8,LeftUpVector:M8,LeftVectorBar:L8,LeftVector:N8,lEg:$8,leg:O8,leq:P8,leqq:R8,leqslant:z8,lescc:D8,les:I8,lesdot:F8,lesdoto:H8,lesdotor:B8,lesg:W8,lesges:q8,lessapprox:U8,lessdot:j8,lesseqgtr:V8,lesseqqgtr:G8,LessEqualGreater:K8,LessFullEqual:X8,LessGreater:Y8,lessgtr:Z8,LessLess:J8,lesssim:Q8,LessSlantEqual:eW,LessTilde:tW,lfisht:nW,lfloor:rW,Lfr:iW,lfr:oW,lg:sW,lgE:lW,lHar:aW,lhard:cW,lharu:uW,lharul:fW,lhblk:dW,LJcy:hW,ljcy:pW,llarr:gW,ll:vW,Ll:mW,llcorner:yW,Lleftarrow:bW,llhard:wW,lltri:xW,Lmidot:SW,lmidot:_W,lmoustache:kW,lmoust:CW,lnap:TW,lnapprox:EW,lne:AW,lnE:MW,lneq:LW,lneqq:NW,lnsim:$W,loang:OW,loarr:PW,lobrk:RW,longleftarrow:zW,LongLeftArrow:DW,Longleftarrow:IW,longleftrightarrow:FW,LongLeftRightArrow:HW,Longleftrightarrow:BW,longmapsto:WW,longrightarrow:qW,LongRightArrow:UW,Longrightarrow:jW,looparrowleft:VW,looparrowright:GW,lopar:KW,Lopf:XW,lopf:YW,loplus:ZW,lotimes:JW,lowast:QW,lowbar:e4,LowerLeftArrow:t4,LowerRightArrow:n4,loz:r4,lozenge:i4,lozf:o4,lpar:s4,lparlt:l4,lrarr:a4,lrcorner:c4,lrhar:u4,lrhard:f4,lrm:d4,lrtri:h4,lsaquo:p4,lscr:g4,Lscr:v4,lsh:m4,Lsh:y4,lsim:b4,lsime:w4,lsimg:x4,lsqb:S4,lsquo:_4,lsquor:k4,Lstrok:C4,lstrok:T4,ltcc:E4,ltcir:A4,lt:M4,LT:L4,Lt:N4,ltdot:$4,lthree:O4,ltimes:P4,ltlarr:R4,ltquest:z4,ltri:D4,ltrie:I4,ltrif:F4,ltrPar:H4,lurdshar:B4,luruhar:W4,lvertneqq:q4,lvnE:U4,macr:j4,male:V4,malt:G4,maltese:K4,Map:"⤅",map:X4,mapsto:Y4,mapstodown:Z4,mapstoleft:J4,mapstoup:Q4,marker:eq,mcomma:tq,Mcy:nq,mcy:rq,mdash:iq,mDDot:oq,measuredangle:sq,MediumSpace:lq,Mellintrf:aq,Mfr:cq,mfr:uq,mho:fq,micro:dq,midast:hq,midcir:pq,mid:gq,middot:vq,minusb:mq,minus:yq,minusd:bq,minusdu:wq,MinusPlus:xq,mlcp:Sq,mldr:_q,mnplus:kq,models:Cq,Mopf:Tq,mopf:Eq,mp:Aq,mscr:Mq,Mscr:Lq,mstpos:Nq,Mu:$q,mu:Oq,multimap:Pq,mumap:Rq,nabla:zq,Nacute:Dq,nacute:Iq,nang:Fq,nap:Hq,napE:Bq,napid:Wq,napos:qq,napprox:Uq,natural:jq,naturals:Vq,natur:Gq,nbsp:Kq,nbump:Xq,nbumpe:Yq,ncap:Zq,Ncaron:Jq,ncaron:Qq,Ncedil:e6,ncedil:t6,ncong:n6,ncongdot:r6,ncup:i6,Ncy:o6,ncy:s6,ndash:l6,nearhk:a6,nearr:c6,neArr:u6,nearrow:f6,ne:d6,nedot:h6,NegativeMediumSpace:p6,NegativeThickSpace:g6,NegativeThinSpace:v6,NegativeVeryThinSpace:m6,nequiv:y6,nesear:b6,nesim:w6,NestedGreaterGreater:x6,NestedLessLess:S6,NewLine:_6,nexist:k6,nexists:C6,Nfr:T6,nfr:E6,ngE:A6,nge:M6,ngeq:L6,ngeqq:N6,ngeqslant:$6,nges:O6,nGg:P6,ngsim:R6,nGt:z6,ngt:D6,ngtr:I6,nGtv:F6,nharr:H6,nhArr:B6,nhpar:W6,ni:q6,nis:U6,nisd:j6,niv:V6,NJcy:G6,njcy:K6,nlarr:X6,nlArr:Y6,nldr:Z6,nlE:J6,nle:Q6,nleftarrow:eU,nLeftarrow:tU,nleftrightarrow:nU,nLeftrightarrow:rU,nleq:iU,nleqq:oU,nleqslant:sU,nles:lU,nless:aU,nLl:cU,nlsim:uU,nLt:fU,nlt:dU,nltri:hU,nltrie:pU,nLtv:gU,nmid:vU,NoBreak:mU,NonBreakingSpace:yU,nopf:bU,Nopf:wU,Not:xU,not:SU,NotCongruent:_U,NotCupCap:kU,NotDoubleVerticalBar:CU,NotElement:TU,NotEqual:EU,NotEqualTilde:AU,NotExists:MU,NotGreater:LU,NotGreaterEqual:NU,NotGreaterFullEqual:$U,NotGreaterGreater:OU,NotGreaterLess:PU,NotGreaterSlantEqual:RU,NotGreaterTilde:zU,NotHumpDownHump:DU,NotHumpEqual:IU,notin:FU,notindot:HU,notinE:BU,notinva:WU,notinvb:qU,notinvc:UU,NotLeftTriangleBar:jU,NotLeftTriangle:VU,NotLeftTriangleEqual:GU,NotLess:KU,NotLessEqual:XU,NotLessGreater:YU,NotLessLess:ZU,NotLessSlantEqual:JU,NotLessTilde:QU,NotNestedGreaterGreater:ej,NotNestedLessLess:tj,notni:nj,notniva:rj,notnivb:ij,notnivc:oj,NotPrecedes:sj,NotPrecedesEqual:lj,NotPrecedesSlantEqual:aj,NotReverseElement:cj,NotRightTriangleBar:uj,NotRightTriangle:fj,NotRightTriangleEqual:dj,NotSquareSubset:hj,NotSquareSubsetEqual:pj,NotSquareSuperset:gj,NotSquareSupersetEqual:vj,NotSubset:mj,NotSubsetEqual:yj,NotSucceeds:bj,NotSucceedsEqual:wj,NotSucceedsSlantEqual:xj,NotSucceedsTilde:Sj,NotSuperset:_j,NotSupersetEqual:kj,NotTilde:Cj,NotTildeEqual:Tj,NotTildeFullEqual:Ej,NotTildeTilde:Aj,NotVerticalBar:Mj,nparallel:Lj,npar:Nj,nparsl:$j,npart:Oj,npolint:Pj,npr:Rj,nprcue:zj,nprec:Dj,npreceq:Ij,npre:Fj,nrarrc:Hj,nrarr:Bj,nrArr:Wj,nrarrw:qj,nrightarrow:Uj,nRightarrow:jj,nrtri:Vj,nrtrie:Gj,nsc:Kj,nsccue:Xj,nsce:Yj,Nscr:Zj,nscr:Jj,nshortmid:Qj,nshortparallel:eV,nsim:tV,nsime:nV,nsimeq:rV,nsmid:iV,nspar:oV,nsqsube:sV,nsqsupe:lV,nsub:aV,nsubE:cV,nsube:uV,nsubset:fV,nsubseteq:dV,nsubseteqq:hV,nsucc:pV,nsucceq:gV,nsup:vV,nsupE:mV,nsupe:yV,nsupset:bV,nsupseteq:wV,nsupseteqq:xV,ntgl:SV,Ntilde:_V,ntilde:kV,ntlg:CV,ntriangleleft:TV,ntrianglelefteq:EV,ntriangleright:AV,ntrianglerighteq:MV,Nu:LV,nu:NV,num:$V,numero:OV,numsp:PV,nvap:RV,nvdash:zV,nvDash:DV,nVdash:IV,nVDash:FV,nvge:HV,nvgt:BV,nvHarr:WV,nvinfin:qV,nvlArr:UV,nvle:jV,nvlt:VV,nvltrie:GV,nvrArr:KV,nvrtrie:XV,nvsim:YV,nwarhk:ZV,nwarr:JV,nwArr:QV,nwarrow:e9,nwnear:t9,Oacute:n9,oacute:r9,oast:i9,Ocirc:o9,ocirc:s9,ocir:l9,Ocy:a9,ocy:c9,odash:u9,Odblac:f9,odblac:d9,odiv:h9,odot:p9,odsold:g9,OElig:v9,oelig:m9,ofcir:y9,Ofr:b9,ofr:w9,ogon:x9,Ograve:S9,ograve:_9,ogt:k9,ohbar:C9,ohm:T9,oint:E9,olarr:A9,olcir:M9,olcross:L9,oline:N9,olt:$9,Omacr:O9,omacr:P9,Omega:R9,omega:z9,Omicron:D9,omicron:I9,omid:F9,ominus:H9,Oopf:B9,oopf:W9,opar:q9,OpenCurlyDoubleQuote:U9,OpenCurlyQuote:j9,operp:V9,oplus:G9,orarr:K9,Or:X9,or:Y9,ord:Z9,order:J9,orderof:Q9,ordf:eG,ordm:tG,origof:nG,oror:rG,orslope:iG,orv:oG,oS:sG,Oscr:lG,oscr:aG,Oslash:cG,oslash:uG,osol:fG,Otilde:dG,otilde:hG,otimesas:pG,Otimes:gG,otimes:vG,Ouml:mG,ouml:yG,ovbar:bG,OverBar:wG,OverBrace:xG,OverBracket:SG,OverParenthesis:_G,para:kG,parallel:CG,par:TG,parsim:EG,parsl:AG,part:MG,PartialD:LG,Pcy:NG,pcy:$G,percnt:OG,period:PG,permil:RG,perp:zG,pertenk:DG,Pfr:IG,pfr:FG,Phi:HG,phi:BG,phiv:WG,phmmat:qG,phone:UG,Pi:jG,pi:VG,pitchfork:GG,piv:KG,planck:XG,planckh:YG,plankv:ZG,plusacir:JG,plusb:QG,pluscir:e7,plus:t7,plusdo:n7,plusdu:r7,pluse:i7,PlusMinus:o7,plusmn:s7,plussim:l7,plustwo:a7,pm:c7,Poincareplane:u7,pointint:f7,popf:d7,Popf:h7,pound:p7,prap:g7,Pr:v7,pr:m7,prcue:y7,precapprox:b7,prec:w7,preccurlyeq:x7,Precedes:S7,PrecedesEqual:_7,PrecedesSlantEqual:k7,PrecedesTilde:C7,preceq:T7,precnapprox:E7,precneqq:A7,precnsim:M7,pre:L7,prE:N7,precsim:$7,prime:O7,Prime:P7,primes:R7,prnap:z7,prnE:D7,prnsim:I7,prod:F7,Product:H7,profalar:B7,profline:W7,profsurf:q7,prop:U7,Proportional:j7,Proportion:V7,propto:G7,prsim:K7,prurel:X7,Pscr:Y7,pscr:Z7,Psi:J7,psi:Q7,puncsp:eK,Qfr:tK,qfr:nK,qint:rK,qopf:iK,Qopf:oK,qprime:sK,Qscr:lK,qscr:aK,quaternions:cK,quatint:uK,quest:fK,questeq:dK,quot:hK,QUOT:pK,rAarr:gK,race:vK,Racute:mK,racute:yK,radic:bK,raemptyv:wK,rang:xK,Rang:SK,rangd:_K,range:kK,rangle:CK,raquo:TK,rarrap:EK,rarrb:AK,rarrbfs:MK,rarrc:LK,rarr:NK,Rarr:$K,rArr:OK,rarrfs:PK,rarrhk:RK,rarrlp:zK,rarrpl:DK,rarrsim:IK,Rarrtl:FK,rarrtl:HK,rarrw:BK,ratail:WK,rAtail:qK,ratio:UK,rationals:jK,rbarr:VK,rBarr:GK,RBarr:KK,rbbrk:XK,rbrace:YK,rbrack:ZK,rbrke:JK,rbrksld:QK,rbrkslu:eX,Rcaron:tX,rcaron:nX,Rcedil:rX,rcedil:iX,rceil:oX,rcub:sX,Rcy:lX,rcy:aX,rdca:cX,rdldhar:uX,rdquo:fX,rdquor:dX,rdsh:hX,real:pX,realine:gX,realpart:vX,reals:mX,Re:yX,rect:bX,reg:wX,REG:xX,ReverseElement:SX,ReverseEquilibrium:_X,ReverseUpEquilibrium:kX,rfisht:CX,rfloor:TX,rfr:EX,Rfr:AX,rHar:MX,rhard:LX,rharu:NX,rharul:$X,Rho:OX,rho:PX,rhov:RX,RightAngleBracket:zX,RightArrowBar:DX,rightarrow:IX,RightArrow:FX,Rightarrow:HX,RightArrowLeftArrow:BX,rightarrowtail:WX,RightCeiling:qX,RightDoubleBracket:UX,RightDownTeeVector:jX,RightDownVectorBar:VX,RightDownVector:GX,RightFloor:KX,rightharpoondown:XX,rightharpoonup:YX,rightleftarrows:ZX,rightleftharpoons:JX,rightrightarrows:QX,rightsquigarrow:eY,RightTeeArrow:tY,RightTee:nY,RightTeeVector:rY,rightthreetimes:iY,RightTriangleBar:oY,RightTriangle:sY,RightTriangleEqual:lY,RightUpDownVector:aY,RightUpTeeVector:cY,RightUpVectorBar:uY,RightUpVector:fY,RightVectorBar:dY,RightVector:hY,ring:pY,risingdotseq:gY,rlarr:vY,rlhar:mY,rlm:yY,rmoustache:bY,rmoust:wY,rnmid:xY,roang:SY,roarr:_Y,robrk:kY,ropar:CY,ropf:TY,Ropf:EY,roplus:AY,rotimes:MY,RoundImplies:LY,rpar:NY,rpargt:$Y,rppolint:OY,rrarr:PY,Rrightarrow:RY,rsaquo:zY,rscr:DY,Rscr:IY,rsh:FY,Rsh:HY,rsqb:BY,rsquo:WY,rsquor:qY,rthree:UY,rtimes:jY,rtri:VY,rtrie:GY,rtrif:KY,rtriltri:XY,RuleDelayed:YY,ruluhar:ZY,rx:JY,Sacute:QY,sacute:eZ,sbquo:tZ,scap:nZ,Scaron:rZ,scaron:iZ,Sc:oZ,sc:sZ,sccue:lZ,sce:aZ,scE:cZ,Scedil:uZ,scedil:fZ,Scirc:dZ,scirc:hZ,scnap:pZ,scnE:gZ,scnsim:vZ,scpolint:mZ,scsim:yZ,Scy:bZ,scy:wZ,sdotb:xZ,sdot:SZ,sdote:_Z,searhk:kZ,searr:CZ,seArr:TZ,searrow:EZ,sect:AZ,semi:MZ,seswar:LZ,setminus:NZ,setmn:$Z,sext:OZ,Sfr:PZ,sfr:RZ,sfrown:zZ,sharp:DZ,SHCHcy:IZ,shchcy:FZ,SHcy:HZ,shcy:BZ,ShortDownArrow:WZ,ShortLeftArrow:qZ,shortmid:UZ,shortparallel:jZ,ShortRightArrow:VZ,ShortUpArrow:GZ,shy:KZ,Sigma:XZ,sigma:YZ,sigmaf:ZZ,sigmav:JZ,sim:QZ,simdot:eJ,sime:tJ,simeq:nJ,simg:rJ,simgE:iJ,siml:oJ,simlE:sJ,simne:lJ,simplus:aJ,simrarr:cJ,slarr:uJ,SmallCircle:fJ,smallsetminus:dJ,smashp:hJ,smeparsl:pJ,smid:gJ,smile:vJ,smt:mJ,smte:yJ,smtes:bJ,SOFTcy:wJ,softcy:xJ,solbar:SJ,solb:_J,sol:kJ,Sopf:CJ,sopf:TJ,spades:EJ,spadesuit:AJ,spar:MJ,sqcap:LJ,sqcaps:NJ,sqcup:$J,sqcups:OJ,Sqrt:PJ,sqsub:RJ,sqsube:zJ,sqsubset:DJ,sqsubseteq:IJ,sqsup:FJ,sqsupe:HJ,sqsupset:BJ,sqsupseteq:WJ,square:qJ,Square:UJ,SquareIntersection:jJ,SquareSubset:VJ,SquareSubsetEqual:GJ,SquareSuperset:KJ,SquareSupersetEqual:XJ,SquareUnion:YJ,squarf:ZJ,squ:JJ,squf:QJ,srarr:eQ,Sscr:tQ,sscr:nQ,ssetmn:rQ,ssmile:iQ,sstarf:oQ,Star:sQ,star:lQ,starf:aQ,straightepsilon:cQ,straightphi:uQ,strns:fQ,sub:dQ,Sub:hQ,subdot:pQ,subE:gQ,sube:vQ,subedot:mQ,submult:yQ,subnE:bQ,subne:wQ,subplus:xQ,subrarr:SQ,subset:_Q,Subset:kQ,subseteq:CQ,subseteqq:TQ,SubsetEqual:EQ,subsetneq:AQ,subsetneqq:MQ,subsim:LQ,subsub:NQ,subsup:$Q,succapprox:OQ,succ:PQ,succcurlyeq:RQ,Succeeds:zQ,SucceedsEqual:DQ,SucceedsSlantEqual:IQ,SucceedsTilde:FQ,succeq:HQ,succnapprox:BQ,succneqq:WQ,succnsim:qQ,succsim:UQ,SuchThat:jQ,sum:VQ,Sum:GQ,sung:KQ,sup1:XQ,sup2:YQ,sup3:ZQ,sup:JQ,Sup:QQ,supdot:eee,supdsub:tee,supE:nee,supe:ree,supedot:iee,Superset:oee,SupersetEqual:see,suphsol:lee,suphsub:aee,suplarr:cee,supmult:uee,supnE:fee,supne:dee,supplus:hee,supset:pee,Supset:gee,supseteq:vee,supseteqq:mee,supsetneq:yee,supsetneqq:bee,supsim:wee,supsub:xee,supsup:See,swarhk:_ee,swarr:kee,swArr:Cee,swarrow:Tee,swnwar:Eee,szlig:Aee,Tab:Mee,target:Lee,Tau:Nee,tau:$ee,tbrk:Oee,Tcaron:Pee,tcaron:Ree,Tcedil:zee,tcedil:Dee,Tcy:Iee,tcy:Fee,tdot:Hee,telrec:Bee,Tfr:Wee,tfr:qee,there4:Uee,therefore:jee,Therefore:Vee,Theta:Gee,theta:Kee,thetasym:Xee,thetav:Yee,thickapprox:Zee,thicksim:Jee,ThickSpace:Qee,ThinSpace:ete,thinsp:tte,thkap:nte,thksim:rte,THORN:ite,thorn:ote,tilde:ste,Tilde:lte,TildeEqual:ate,TildeFullEqual:cte,TildeTilde:ute,timesbar:fte,timesb:dte,times:hte,timesd:pte,tint:gte,toea:vte,topbot:mte,topcir:yte,top:bte,Topf:wte,topf:xte,topfork:Ste,tosa:_te,tprime:kte,trade:Cte,TRADE:Tte,triangle:Ete,triangledown:Ate,triangleleft:Mte,trianglelefteq:Lte,triangleq:Nte,triangleright:$te,trianglerighteq:Ote,tridot:Pte,trie:Rte,triminus:zte,TripleDot:Dte,triplus:Ite,trisb:Fte,tritime:Hte,trpezium:Bte,Tscr:Wte,tscr:qte,TScy:Ute,tscy:jte,TSHcy:Vte,tshcy:Gte,Tstrok:Kte,tstrok:Xte,twixt:Yte,twoheadleftarrow:Zte,twoheadrightarrow:Jte,Uacute:Qte,uacute:ene,uarr:tne,Uarr:nne,uArr:rne,Uarrocir:ine,Ubrcy:one,ubrcy:sne,Ubreve:lne,ubreve:ane,Ucirc:cne,ucirc:une,Ucy:fne,ucy:dne,udarr:hne,Udblac:pne,udblac:gne,udhar:vne,ufisht:mne,Ufr:yne,ufr:bne,Ugrave:wne,ugrave:xne,uHar:Sne,uharl:_ne,uharr:kne,uhblk:Cne,ulcorn:Tne,ulcorner:Ene,ulcrop:Ane,ultri:Mne,Umacr:Lne,umacr:Nne,uml:$ne,UnderBar:One,UnderBrace:Pne,UnderBracket:Rne,UnderParenthesis:zne,Union:Dne,UnionPlus:Ine,Uogon:Fne,uogon:Hne,Uopf:Bne,uopf:Wne,UpArrowBar:qne,uparrow:Une,UpArrow:jne,Uparrow:Vne,UpArrowDownArrow:Gne,updownarrow:Kne,UpDownArrow:Xne,Updownarrow:Yne,UpEquilibrium:Zne,upharpoonleft:Jne,upharpoonright:Qne,uplus:ere,UpperLeftArrow:tre,UpperRightArrow:nre,upsi:rre,Upsi:ire,upsih:ore,Upsilon:sre,upsilon:lre,UpTeeArrow:are,UpTee:cre,upuparrows:ure,urcorn:fre,urcorner:dre,urcrop:hre,Uring:pre,uring:gre,urtri:vre,Uscr:mre,uscr:yre,utdot:bre,Utilde:wre,utilde:xre,utri:Sre,utrif:_re,uuarr:kre,Uuml:Cre,uuml:Tre,uwangle:Ere,vangrt:Are,varepsilon:Mre,varkappa:Lre,varnothing:Nre,varphi:$re,varpi:Ore,varpropto:Pre,varr:Rre,vArr:zre,varrho:Dre,varsigma:Ire,varsubsetneq:Fre,varsubsetneqq:Hre,varsupsetneq:Bre,varsupsetneqq:Wre,vartheta:qre,vartriangleleft:Ure,vartriangleright:jre,vBar:Vre,Vbar:Gre,vBarv:Kre,Vcy:Xre,vcy:Yre,vdash:Zre,vDash:Jre,Vdash:Qre,VDash:eie,Vdashl:tie,veebar:nie,vee:rie,Vee:iie,veeeq:oie,vellip:sie,verbar:lie,Verbar:aie,vert:cie,Vert:uie,VerticalBar:fie,VerticalLine:die,VerticalSeparator:hie,VerticalTilde:pie,VeryThinSpace:gie,Vfr:vie,vfr:mie,vltri:yie,vnsub:bie,vnsup:wie,Vopf:xie,vopf:Sie,vprop:_ie,vrtri:kie,Vscr:Cie,vscr:Tie,vsubnE:Eie,vsubne:Aie,vsupnE:Mie,vsupne:Lie,Vvdash:Nie,vzigzag:$ie,Wcirc:Oie,wcirc:Pie,wedbar:Rie,wedge:zie,Wedge:Die,wedgeq:Iie,weierp:Fie,Wfr:Hie,wfr:Bie,Wopf:Wie,wopf:qie,wp:Uie,wr:jie,wreath:Vie,Wscr:Gie,wscr:Kie,xcap:Xie,xcirc:Yie,xcup:Zie,xdtri:Jie,Xfr:Qie,xfr:eoe,xharr:toe,xhArr:noe,Xi:roe,xi:ioe,xlarr:ooe,xlArr:soe,xmap:loe,xnis:aoe,xodot:coe,Xopf:uoe,xopf:foe,xoplus:doe,xotime:hoe,xrarr:poe,xrArr:goe,Xscr:voe,xscr:moe,xsqcup:yoe,xuplus:boe,xutri:woe,xvee:xoe,xwedge:Soe,Yacute:_oe,yacute:koe,YAcy:Coe,yacy:Toe,Ycirc:Eoe,ycirc:Aoe,Ycy:Moe,ycy:Loe,yen:Noe,Yfr:$oe,yfr:Ooe,YIcy:Poe,yicy:Roe,Yopf:zoe,yopf:Doe,Yscr:Ioe,yscr:Foe,YUcy:Hoe,yucy:Boe,yuml:Woe,Yuml:qoe,Zacute:Uoe,zacute:joe,Zcaron:Voe,zcaron:Goe,Zcy:Koe,zcy:Xoe,Zdot:Yoe,zdot:Zoe,zeetrf:Joe,ZeroWidthSpace:Qoe,Zeta:ese,zeta:tse,zfr:nse,Zfr:rse,ZHcy:ise,zhcy:ose,zigrarr:sse,zopf:lse,Zopf:ase,Zscr:cse,zscr:use,zwj:fse,zwnj:dse},hse="Á",pse="á",gse="Â",vse="â",mse="´",yse="Æ",bse="æ",wse="À",xse="à",Sse="&",_se="&",kse="Å",Cse="å",Tse="Ã",Ese="ã",Ase="Ä",Mse="ä",Lse="¦",Nse="Ç",$se="ç",Ose="¸",Pse="¢",Rse="©",zse="©",Dse="¤",Ise="°",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="Ó",Sle="ó",_le="Ô",kle="ô",Cle="Ò",Tle="ò",Ele="ª",Ale="º",Mle="Ø",Lle="ø",Nle="Õ",$le="õ",Ole="Ö",Ple="ö",Rle="¶",zle="±",Dle="£",Ile='"',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={Aacute:hse,aacute:pse,Acirc:gse,acirc:vse,acute:mse,AElig:yse,aelig:bse,Agrave:wse,agrave:xse,amp:Sse,AMP:_se,Aring:kse,aring:Cse,Atilde:Tse,atilde:Ese,Auml:Ase,auml:Mse,brvbar:Lse,Ccedil:Nse,ccedil:$se,cedil:Ose,cent:Pse,copy:Rse,COPY:zse,curren:Dse,deg:Ise,divide:Fse,Eacute:Hse,eacute:Bse,Ecirc:Wse,ecirc:qse,Egrave:Use,egrave:jse,ETH:Vse,eth:Gse,Euml:Kse,euml:Xse,frac12:Yse,frac14:Zse,frac34:Jse,gt:Qse,GT:ele,Iacute:tle,iacute:nle,Icirc:rle,icirc:ile,iexcl:ole,Igrave:sle,igrave:lle,iquest:ale,Iuml:cle,iuml:ule,laquo:fle,lt:dle,LT:hle,macr:ple,micro:gle,middot:vle,nbsp:mle,not:yle,Ntilde:ble,ntilde:wle,Oacute:xle,oacute:Sle,Ocirc:_le,ocirc:kle,Ograve:Cle,ograve:Tle,ordf:Ele,ordm:Ale,Oslash:Mle,oslash:Lle,Otilde:Nle,otilde:$le,Ouml:Ole,ouml:Ple,para:Rle,plusmn:zle,pound:Dle,quot:Ile,QUOT:Fle,raquo:Hle,reg:Ble,REG:Wle,sect:qle,shy:Ule,sup1:jle,sup2:Vle,sup3:Gle,szlig:Kle,THORN:Xle,thorn:Yle,times:Zle,Uacute:Jle,uacute:Qle,Ucirc:eae,ucirc:tae,Ugrave:nae,ugrave:rae,uml:iae,Uuml:oae,uuml:sae,Yacute:lae,yacute:aae,yen:cae,yuml:uae},dae="&",hae="'",pae=">",gae="<",vae='"',ww={amp:dae,apos:hae,gt:pae,lt:gae,quot:vae};var ds={};const mae={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 Mm;function yae(){if(Mm)return ds;Mm=1;var e=ds&&ds.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ds,"__esModule",{value:!0});var t=e(mae),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 ds.default=o,ds}var Lm;function Nm(){if(Lm)return yr;Lm=1;var e=yr&&yr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(yr,"__esModule",{value:!0}),yr.decodeHTML=yr.decodeHTMLStrict=yr.decodeXML=void 0;var t=e(bw),r=e(fae),o=e(ww),s=e(yae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;yr.decodeXML=f(o.default),yr.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};yr.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"),A=h(t.default);function N(L){return L.substr(-1)!==";"&&(L+=";"),A(L)}return function(L){return String(L).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 yr}var Cn={},$m;function Om(){if($m)return Cn;$m=1;var e=Cn&&Cn.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.escapeUTF8=Cn.escape=Cn.encodeNonAsciiHTML=Cn.encodeHTML=Cn.encodeXML=void 0;var t=e(ww),r=d(t.default),o=h(r);Cn.encodeXML=L(r);var s=e(bw),c=d(s.default),f=h(c);Cn.encodeHTML=b(c,f),Cn.encodeNonAsciiHTML=L(c);function d(M){return Object.keys(M).sort().reduce(function(T,P){return T[M[P]]="&"+P+";",T},{})}function h(M){for(var T=[],P=[],E=0,B=Object.keys(M);E<B.length;E++){var G=B[E];G.length===1?T.push("\\"+G):P.push(G)}T.sort();for(var U=0;U<T.length-1;U++){for(var Q=U;Q<T.length-1&&T[Q].charCodeAt(1)+1===T[Q+1].charCodeAt(1);)Q+=1;var J=1+Q-U;J<3||T.splice(U,J,T[U]+"-"+T[Q])}return P.unshift("["+T.join("")+"]"),new RegExp(P.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(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function m(M){return"&#x"+(M.length>1?v(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,T){return function(P){return P.replace(T,function(E){return M[E]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function A(M){return M.replace(w,m)}Cn.escape=A;function N(M){return M.replace(o,m)}Cn.escapeUTF8=N;function L(M){return function(T){return T.replace(w,function(P){return M[P]||m(P)})}}return Cn}var Pm;function bae(){return Pm||(Pm=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=Nm(),r=Om();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=Om();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=Nm();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}})}(td)),td}var nd,Rm;function wae(){if(Rm)return nd;Rm=1;function e(R,$){if(!(R instanceof $))throw new TypeError("Cannot call a class as a function")}function t(R,$){for(var O=0;O<$.length;O++){var _=$[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(R,_.key,_)}}function r(R,$,O){return $&&t(R.prototype,$),R}function o(R,$){var O=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!O){if(Array.isArray(R)||(O=s(R))||$){O&&(R=O);var _=0,D=function(){};return{s:D,n:function(){return _>=R.length?{done:!0}:{done:!1,value:R[_++]}},e:function(Re){throw Re},f:D}}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,re=!1,pe;return{s:function(){O=O.call(R)},n:function(){var Re=O.next();return j=Re.done,Re},e:function(Re){re=!0,pe=Re},f:function(){try{!j&&O.return!=null&&O.return()}finally{if(re)throw pe}}}}function s(R,$){if(R){if(typeof R=="string")return c(R,$);var O=Object.prototype.toString.call(R).slice(8,-1);if(O==="Object"&&R.constructor&&(O=R.constructor.name),O==="Map"||O==="Set")return Array.from(R);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c(R,$)}}function c(R,$){($==null||$>R.length)&&($=R.length);for(var O=0,_=new Array($);O<$;O++)_[O]=R[O];return _}var f=bae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var R={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 L(0,5).forEach(function($){L(0,5).forEach(function(O){L(0,5).forEach(function(_){return p($,O,_,R)})})}),L(0,23).forEach(function($){var O=$+232,_=v($*10+8);R[O]="#"+_+_+_}),R}function p(R,$,O,_){var D=16+R*36+$*6+O,j=R>0?R*40+55:0,re=$>0?$*40+55:0,pe=O>0?O*40+55:0;_[D]=m([j,re,pe])}function v(R){for(var $=R.toString(16);$.length<2;)$="0"+$;return $}function m(R){var $=[],O=o(R),_;try{for(O.s();!(_=O.n()).done;){var D=_.value;$.push(v(D))}}catch(j){O.e(j)}finally{O.f()}return"#"+$.join("")}function b(R,$,O,_){var D;return $==="text"?D=P(O,_):$==="display"?D=A(R,O,_):$==="xterm256Foreground"?D=G(R,_.colors[O]):$==="xterm256Background"?D=U(R,_.colors[O]):$==="rgb"&&(D=w(R,O)),D}function w(R,$){$=$.substring(2).slice(0,-1);var O=+$.substr(0,2),_=$.substring(5).split(";"),D=_.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return B(R,(O===38?"color:#":"background-color:#")+D)}function A(R,$,O){$=parseInt($,10);var _={"-1":function(){return"<br/>"},0:function(){return R.length&&N(R)},1:function(){return E(R,"b")},3:function(){return E(R,"i")},4:function(){return E(R,"u")},8:function(){return B(R,"display:none")},9:function(){return E(R,"strike")},22:function(){return B(R,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Q(R,"i")},24:function(){return Q(R,"u")},39:function(){return G(R,O.fg)},49:function(){return U(R,O.bg)},53:function(){return B(R,"text-decoration:overline")}},D;return _[$]?D=_[$]():4<$&&$<7?D=E(R,"blink"):29<$&&$<38?D=G(R,O.colors[$-30]):39<$&&$<48?D=U(R,O.colors[$-40]):89<$&&$<98?D=G(R,O.colors[8+($-90)]):99<$&&$<108&&(D=U(R,O.colors[8+($-100)])),D}function N(R){var $=R.slice(0);return R.length=0,$.reverse().map(function(O){return"</"+O+">"}).join("")}function L(R,$){for(var O=[],_=R;_<=$;_++)O.push(_);return O}function M(R){return function($){return(R===null||$.category!==R)&&R!=="all"}}function T(R){R=parseInt(R,10);var $=null;return R===0?$="all":R===1?$="bold":2<R&&R<5?$="underline":4<R&&R<7?$="blink":R===8?$="hide":R===9?$="strike":29<R&&R<38||R===39||89<R&&R<98?$="foreground-color":(39<R&&R<48||R===49||99<R&&R<108)&&($="background-color"),$}function P(R,$){return $.escapeXML?f.encodeXML(R):R}function E(R,$,O){return O||(O=""),R.push($),"<".concat($).concat(O?' style="'.concat(O,'"'):"",">")}function B(R,$){return E(R,"span",$)}function G(R,$){return E(R,"span","color:"+$)}function U(R,$){return E(R,"span","background-color:"+$)}function Q(R,$){var O;if(R.slice(-1)[0]===$&&(O=R.pop()),O)return"</"+$+">"}function J(R,$,O){var _=!1,D=3;function j(){return""}function re(q,K){return O("xterm256Foreground",K),""}function pe(q,K){return O("xterm256Background",K),""}function be(q){return $.newline?O("display",-1):O("text",q),""}function Re(q,K){_=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var le=o(K),ce;try{for(le.s();!(ce=le.n()).done;){var ue=ce.value;O("display",ue)}}catch(Se){le.e(Se)}finally{le.f()}return""}function qe(q){return O("text",q),""}function et(q){return O("rgb",q),""}var Ye=[{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:et},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:pe},{pattern:/^\n/,sub:be},{pattern:/^\r+\n/,sub:be},{pattern:/^\r/,sub:be},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Re},{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(q,K){K>D&&_||(_=!1,R=R.replace(q.pattern,q.sub))}var Ae=[],Z=R,ae=Z.length;e:for(;ae>0;){for(var de=0,Ne=0,Me=Ye.length;Ne<Me;de=++Ne){var I=Ye[de];if(Xe(I,de),R.length!==ae){ae=R.length;continue e}}if(R.length===ae)break;Ae.push(0),ae=R.length}return Ae}function Y(R,$,O){return $!=="text"&&(R=R.filter(M(T(O))),R.push({token:$,data:O,category:T(O)})),R}var ee=function(){function R($){e(this,R),$=$||{},$.colors&&($.colors=Object.assign({},d.colors,$.colors)),this.options=Object.assign({},d,$),this.stack=[],this.stickyStack=[]}return r(R,[{key:"toHtml",value:function(O){var _=this;O=typeof O=="string"?[O]:O;var D=this.stack,j=this.options,re=[];return this.stickyStack.forEach(function(pe){var be=b(D,pe.token,pe.data,j);be&&re.push(be)}),J(O.join(""),j,function(pe,be){var Re=b(D,pe,be,j);Re&&re.push(Re),j.stream&&(_.stickyStack=Y(_.stickyStack,pe,be))}),D.length&&re.push(N(D)),re.join("")}}]),R}();return nd=ee,nd}var xae=wae();const Sae=yw(xae);function _ae(e,t){return t&&e.endsWith(t)}async function xw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Uh(e){return new Sae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function kae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Sw(e){let t=e;if(kae(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=GA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Qn=Uint8Array,ys=Uint16Array,Cae=Int32Array,_w=new Qn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),kw=new Qn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Tae=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Cw=function(e,t){for(var r=new ys(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Cae(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}},Tw=Cw(_w,2),Ew=Tw.b,Eae=Tw.r;Ew[28]=258,Eae[258]=28;var Aae=Cw(kw,0),Mae=Aae.b,Ud=new ys(32768);for(var Tt=0;Tt<32768;++Tt){var Ri=(Tt&43690)>>1|(Tt&21845)<<1;Ri=(Ri&52428)>>2|(Ri&13107)<<2,Ri=(Ri&61680)>>4|(Ri&3855)<<4,Ud[Tt]=((Ri&65280)>>8|(Ri&255)<<8)>>1}var Il=function(e,t,r){for(var o=e.length,s=0,c=new ys(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ys(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ys(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[Ud[m]>>h]=p}else for(d=new ys(o),s=0;s<o;++s)e[s]&&(d[s]=Ud[f[e[s]-1]++]>>15-e[s]);return d},Sa=new Qn(288);for(var Tt=0;Tt<144;++Tt)Sa[Tt]=8;for(var Tt=144;Tt<256;++Tt)Sa[Tt]=9;for(var Tt=256;Tt<280;++Tt)Sa[Tt]=7;for(var Tt=280;Tt<288;++Tt)Sa[Tt]=8;var Aw=new Qn(32);for(var Tt=0;Tt<32;++Tt)Aw[Tt]=5;var Lae=Il(Sa,9,1),Nae=Il(Aw,5,1),rd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},br=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},id=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},$ae=function(e){return(e+7)/8|0},Mw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Qn(e.subarray(t,r))},Oae=["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"],Bn=function(e,t,r){var o=new Error(t||Oae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Bn),!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 Qn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Qn(s*3));var p=function(Me){var I=r.length;if(Me>I){var q=new Qn(Math.max(I*2,Me));q.set(r),r=q}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,A=t.d,N=t.m,L=t.n,M=s*8;do{if(!w){v=br(e,m,1);var T=br(e,m+1,3);if(m+=3,T)if(T==1)w=Lae,A=Nae,N=9,L=5;else if(T==2){var G=br(e,m,31)+257,U=br(e,m+10,15)+4,Q=G+br(e,m+5,31)+1;m+=14;for(var J=new Qn(Q),Y=new Qn(19),ee=0;ee<U;++ee)Y[Tae[ee]]=br(e,m+ee*3,7);m+=U*3;for(var R=rd(Y),$=(1<<R)-1,O=Il(Y,R,1),ee=0;ee<Q;){var _=O[br(e,m,$)];m+=_&15;var P=_>>4;if(P<16)J[ee++]=P;else{var D=0,j=0;for(P==16?(j=3+br(e,m,3),m+=2,D=J[ee-1]):P==17?(j=3+br(e,m,7),m+=3):P==18&&(j=11+br(e,m,127),m+=7);j--;)J[ee++]=D}}var re=J.subarray(0,G),pe=J.subarray(G);N=rd(re),L=rd(pe),w=Il(re,N,1),A=Il(pe,L,1)}else Bn(1);else{var P=$ae(m)+4,E=e[P-4]|e[P-3]<<8,B=P+E;if(B>s){h&&Bn(0);break}d&&p(b+E),r.set(e.subarray(P,B),b),t.b=b+=E,t.p=m=B*8,t.f=v;continue}if(m>M){h&&Bn(0);break}}d&&p(b+131072);for(var be=(1<<N)-1,Re=(1<<L)-1,qe=m;;qe=m){var D=w[id(e,m)&be],et=D>>4;if(m+=D&15,m>M){h&&Bn(0);break}if(D||Bn(2),et<256)r[b++]=et;else if(et==256){qe=m,w=null;break}else{var Ye=et-254;if(et>264){var ee=et-257,Xe=_w[ee];Ye=br(e,m,(1<<Xe)-1)+Ew[ee],m+=Xe}var Ae=A[id(e,m)&Re],Z=Ae>>4;Ae||Bn(3),m+=Ae&15;var pe=Mae[Z];if(Z>3){var Xe=kw[Z];pe+=id(e,m)&(1<<Xe)-1,m+=Xe}if(m>M){h&&Bn(0);break}d&&p(b+131072);var ae=b+Ye;if(b<pe){var de=c-pe,Ne=Math.min(pe,ae);for(de+b<0&&Bn(3);b<Ne;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-pe]}}t.l=w,t.p=qe,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=A,t.n=L)}while(!v);return b!=r.length&&f?Mw(r,0,b):r.subarray(0,b)},Pae=new Qn(0),Rae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Bn(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)},zae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Dae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Bn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Bn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Iae(e,t){return jh(e,{i:2},t,t)}function Fae(e,t){var r=Rae(e);return r+8>e.length&&Bn(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new Qn(zae(e)),t)}function Hae(e,t){return jh(e.subarray(Dae(e),-4),{i:2},t,t)}function Bae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Fae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Iae(e,t):Hae(e,t)}var jd=typeof TextDecoder<"u"&&new TextDecoder,Wae=0;try{jd.decode(Pae,{stream:!0}),Wae=1}catch{}var qae=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:Mw(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 Uae(e,t){var r;if(jd)return jd.decode(e);var o=qae(e),s=o.s,r=o.r;return r.length&&Bn(8),s}const od=()=>{},hn=()=>Promise.resolve();function jae(){const e=er({state:new Bb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=er(e.state.filesMap),e.state.idMap=er(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:hn,onDone:od,onTaskUpdate:od,writeFile:hn,rerun:hn,rerunTask:hn,updateSnapshot:hn,resolveSnapshotPath:hn,snapshotSaved:hn,onAfterSuiteRun:hn,onCancel:hn,getCountOfFailedTests:()=>0,sendLog:hn,resolveSnapshotRawPath:hn,readSnapshotFile:hn,saveSnapshotFile:hn,readTestFile:async d=>t.sources[d],removeSnapshotFile:hn,onUnhandledError:od,saveTestFile:hn,getProvidedContext:()=>({}),getTestFiles:hn};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=Uae(Bae(m));t=Dd(b)}else t=Dd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return Cr?jae():WT(QE,{reactive:(t,r)=>r==="state"?er(t):On(t),handlers:{onTaskUpdate(t){Ee.resumeRun(t),Ru.value="running"},onFinished(t,r){Ee.endRun(),Wi.value=(r||[]).map(Sw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Du=On({}),To=je("CONNECTING"),Jt=ke(()=>{const e=eo.value;return e?ar(e):void 0}),Lw=ke(()=>zh(Jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function ar(e){const t=mt.state.idMap.get(e);return t||void 0}const Vae=ke(()=>To.value==="OPEN"),sd=ke(()=>To.value==="CONNECTING");ke(()=>To.value==="CLOSED");function Gae(){return Vh(mt.state.getFiles())}function Nw(e){delete e.result;const t=Ee.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,wa(e)))for(const r of e.tasks)Nw(r)}function Kae(e){const t=Ee.nodes;e.forEach(r=>{delete r.result,zh(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,Nn(o)&&(o.collectDuration=void 0))})}function Vh(e){return Kae(e),Ee.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function Xae(e){return Nw(e),Ee.startRun(),mt.rpc.rerunTask(e.id)}const Po=window.__vitest_browser_runner__;window.__vitest_ui_api__=YE;Et(()=>mt.ws,e=>{To.value=Cr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.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=$b(h,d,f);return p.mode="skip",p})),Ee.loadFiles(t,s),mt.state.collectFiles(t),Ee.startRun(),Wi.value=(o||[]).map(Sw),Du.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Yae={"text-2xl":""},Zae={"text-lg":"",op50:""},Jae=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>W(Vae)?Ke("",!0):(oe(),ye("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)=>W(mt).reconnect&&W(mt).reconnect(...o))},[te("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(W(sd)?"animate-pulse":"")},[te("div",{text:"5xl",class:it(W(sd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),te("div",Yae,Be(W(sd)?"Connecting...":"Disconnected"),1),te("div",Zae," Check your terminal or start a new server with `"+Be(W(Po)?`vitest --browser=${W(Po).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Qae=["aria-label","opacity","disabled","hover"],bi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),ye("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}]])},[mn(t.$slots,"default",{},()=>[te("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,Qae))}}),ece={h:"full",flex:"~ col"},tce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},nce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},rce={class:"pointer-events-none","text-sm":""},ice={key:0},oce={id:"tester-container",relative:""},sce=["data-scale"],zm=20,lce=100,ace=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 Fr.value[0]===v[0]&&Fr.value[1]===v[1]}async function o(p){Fr.value=t[p]}const{width:s,height:c}=Bh(),f=ke(()=>{const m=s.value*(vn.details.size/100)*(vn.details.browser/100)-zm,b=c.value-lce;return{width:m,height:b}}),d=ke(()=>{const[p,v]=Fr.value,{width:m,height:b}=f.value,w=m>p?1:m/p,A=b>v?1:b/v;return Math.min(1,w,A)}),h=ke(()=>{const p=f.value.width,v=Fr.value[0];return`${Math.trunc((p+zm-v)/2)}px`});return(p,v)=>{const m=bi,b=Kr("tooltip");return oe(),ye("div",ece,[te("div",tce,[gt(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>W(XE)())},null,512),[[ji,W(vn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=te("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=te("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=>W(GE)())},null,512),[[ji,W(vn).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=>W(KE)())},null,512),[[ji,W(vn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),te("div",nce,[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}]]),te("span",rce,[pt(Be(W(Fr)[0])+"x"+Be(W(Fr)[1])+"px ",1),W(d)<1?(oe(),ye("span",ice,"("+Be((W(d)*100).toFixed(0))+"%)",1)):Ke("",!0)])]),te("div",oce,[te("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":W(d),style:en({"--viewport-width":`${W(Fr)[0]}px`,"--viewport-height":`${W(Fr)[1]}px`,"--tester-transform":`scale(${W(d)})`,"--tester-margin-left":W(h)})}," Select a test to run ",12,sce)])])}}}),cce=yi(ace,[["__scopeId","data-v-65565204"]]),$w=ut({__name:"Modal",props:Vl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue"),r=ke(()=>{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=ke(()=>{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)=>(oe(),ye("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[te("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),te("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[W(r)]]),style:en(t.value?{}:{transform:W(o)})},[mn(c.$slots,"default")],6)],2))}}),uce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},fce={"p-4":"",relative:"",border:"base b"},dce={op50:"","font-mono":"","text-sm":""},hce={op50:"","font-mono":"","text-sm":""},pce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},gce=["src","alt"],vce={key:1},mce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Xb("Escape",()=>{r("close")}),(o,s)=>{const c=bi;return oe(),ye("div",uce,[te("div",fce,[s[1]||(s[1]=te("p",null,"Screenshot error",-1)),te("p",dce,Be(o.file),1),te("p",hce,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"))})]),te("div",pce,[o.url?(oe(),ye("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,gce)):(oe(),ye("div",vce," Something was wrong, the image cannot be resolved. "))])])}}}),yce=yi(mce,[["__scopeId","data-v-93900314"]]);function Fl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const _a=fE(),bce=XT(_a),wce={class:"scrolls scrolls-rounded task-error"},xce=["onClickPassive"],Sce=["innerHTML"],_ce=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=ke(()=>Uh(_a.value)),s=ke(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=ke(()=>t.error.diff?o.value.toHtml(Fl(t.error.diff)):void 0);return(f,d)=>{const h=Kr("tooltip");return oe(),ye("div",wce,[te("pre",null,[te("b",null,Be(f.error.name||f.error.nameStr),1),pt(": "+Be(f.error.message),1)]),(oe(!0),ye(ct,null,hi(f.error.stacks,(p,v)=>(oe(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[te("pre",null," - "+Be(r(p.file))+":"+Be(p.line)+":"+Be(p.column),1),W(_ae)(p.file,f.filename)?gt((oe(),ye("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=>W(xw)(p.file,p.line,p.column)},null,40,xce)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ke("",!0)]))),128)),W(s)?(oe(),ye("pre",{key:0,"data-testid":"diff",innerHTML:W(c)},null,8,Sce)):Ke("",!0)])}}}),kce=yi(_ce,[["__scopeId","data-v-9dd6eaea"]]),Cce={"h-full":"",class:"scrolls"},Tce=["id"],Ece={flex:"~ gap-2 items-center"},Ace={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Mce=["innerHTML"],Lce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Nce=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var A;return((A=b.result)==null?void 0:A.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(N=>r(N,w+1))]}function o(b,w){var L,M,T;let A="";(L=w.message)!=null&&L.includes("\x1B")&&(A=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Fl(w.message))}`);const N=(M=w.stackStr)==null?void 0:M.includes("\x1B");return(N||(T=w.stack)!=null&&T.includes("\x1B"))&&(A.length>0?A+=b.toHtml(Fl(N?w.stackStr:w.stack)):A=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Fl(N?w.stackStr:w.stack))}`),A.length>0?A:null}function s(b,w){const A=Uh(b);return w.map(N=>{var T;const L=N.result;if(!L)return N;const M=(T=L.errors)==null?void 0:T.map(P=>o(A,P)).filter(P=>P!=null).join("<br><br>");return M!=null&&M.length&&(L.htmlError=M),N})}const c=ke(()=>{var L,M;const b=t.file,w=((L=b==null?void 0:b.tasks)==null?void 0:L.flatMap(T=>r(T,0)))??[],A=b==null?void 0:b.result;if((M=A==null?void 0:A.errors)==null?void 0:M[0]){const T={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:A};w.unshift(T)}return w.length>0?s(_a.value,w):w});function f(b){var A;const w=(A=b.meta)==null?void 0:A.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=je(!1),h=je(Date.now()),p=je(),v=ke(()=>{var A;const b=(A=p.value)==null?void 0:A.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 Et(()=>[uw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Pt(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const A=bi,N=kce,L=yce,M=$w,T=Kr("tooltip");return oe(),ye("div",Cce,[W(c).length?(oe(!0),ye(ct,{key:0},hi(W(c),P=>{var E,B,G,U;return oe(),ye("div",{id:P.id,key:P.id},[te("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:en({"margin-left":`${(E=P.result)!=null&&E.htmlError?.5:2*P.level+.5}rem`})},[te("div",Ece,[te("span",null,Be(P.name),1),W(Po)&&((B=P.meta)!=null&&B.failScreenshotPath)?(oe(),ye(ct,{key:0},[gt(Oe(A,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:Q=>m(P)},null,8,["onClick"]),[[T,"View screenshot error",void 0,{bottom:!0}]]),gt(Oe(A,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:Q=>f(P)},null,8,["onClick"]),[[T,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ke("",!0)]),(G=P.result)!=null&&G.htmlError?(oe(),ye("div",Ace,[te("pre",{innerHTML:P.result.htmlError},null,8,Mce)])):(U=P.result)!=null&&U.errors?(oe(!0),ye(ct,{key:1},hi(P.result.errors,(Q,J)=>{var Y;return oe(),nt(N,{key:J,error:Q,filename:(Y=b.file)==null?void 0:Y.name,root:W(Du).root},null,8,["error","filename","root"])}),128)):Ke("",!0)],4)],8,Tce)}),128)):(oe(),ye("div",Lce," All tests passed in this file ")),W(Po)?(oe(),nt(M,{key:2,modelValue:W(d),"onUpdate:modelValue":w[1]||(w[1]=P=>kt(d)?d.value=P:null),direction:"right"},{default:rt(()=>[W(p)?(oe(),nt(Ky,{key:0},{default:rt(()=>[Oe(L,{file:W(p).file.filepath,name:W(p).name,url:W(v),onClose:w[0]||(w[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])):Ke("",!0)])}}}),$ce=yi(Nce,[["__scopeId","data-v-013fc3c6"]]),Oce={border:"b base","p-4":""},Pce=["innerHTML"],Rce=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),ye("div",Oce,[te("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),te("pre",{"data-type":"html",innerHTML:r.content},null,8,Pce)]))}}),zce={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Dce={key:1,p6:""},Ice=ut({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Lw.value;if(o){const s=Uh(_a.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Fl(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?AT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Rce;return(f=W(t))!=null&&f.length?(oe(),ye("div",zce,[(oe(!0),ye(ct,null,hi(W(t),({taskId:d,type:h,time:p,content:v})=>(oe(),ye("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))])):(oe(),ye("p",Dce,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),te("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Lc={exports:{}},Fce=Lc.exports,Dm;function Bs(){return Dm||(Dm=1,function(e,t){(function(r,o){e.exports=o()})(Fce,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],A=/Opera\//.test(r),N=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),T=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),E=T||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=T||/Mac/.test(o),G=/\bCrOS\b/.test(r),U=/win/i.test(o),Q=A&&r.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(A=!1,v=!0);var J=B&&(m||A&&(Q==null||Q<12.11)),Y=s||h&&p>=9;function ee(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var R=function(n,i){var a=n.className,l=ee(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 $(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return $(n).appendChild(i)}function _(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 D(n,i,a,l){var u=_(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 re(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 pe(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 be(n,i){var a=n.className;ee(i).test(a)||(n.className+=(a?" ":"")+i)}function Re(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ee(a[l]).test(i)&&(i+=" "+a[l]);return i}var qe=function(n){n.select()};T?qe=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(qe=function(n){try{n.select()}catch{}});function et(n){return n.display.wrapper.ownerDocument}function Ye(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Ae(n){return et(n).defaultView}function Z(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(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 de(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 Ne=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};Ne.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Ne.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 Me(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,q={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},le={origin:"*mouse"},ce={origin:"+move"};function ue(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 Se=[""];function _e(n){for(;Se.length<=n;)Se.push(he(Se)+" ");return Se[n]}function he(n){return n[n.length-1]}function ge(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 Le(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Le.prototype=n,a=new Le),i&&ae(i,a),a}var Ue=/[\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()||Ue.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 Mt=/[\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&&Mt.test(n)}function jt(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function It(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 Rn(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 $r=null;function zt(n,i,a){var l;$r=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:$r=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:$r=u)}return l??$r}var zn=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 S(k,z,H){this.level=k,this.from=z,this.to=H}return function(k,z){var H=z=="ltr"?"L":"R";if(k.length==0||z=="ltr"&&!l.test(k))return!1;for(var X=k.length,V=[],ie=0;ie<X;++ie)V.push(a(k.charCodeAt(ie)));for(var fe=0,me=H;fe<X;++fe){var we=V[fe];we=="m"?V[fe]=me:me=we}for(var Te=0,xe=H;Te<X;++Te){var $e=V[Te];$e=="1"&&xe=="r"?V[Te]="n":g.test($e)&&(xe=$e,$e=="r"&&(V[Te]="R"))}for(var Fe=1,ze=V[0];Fe<X-1;++Fe){var Ze=V[Fe];Ze=="+"&&ze=="1"&&V[Fe+1]=="1"?V[Fe]="1":Ze==","&&ze==V[Fe+1]&&(ze=="1"||ze=="n")&&(V[Fe]=ze),ze=Ze}for(var xt=0;xt<X;++xt){var Yt=V[xt];if(Yt==",")V[xt]="N";else if(Yt=="%"){var At=void 0;for(At=xt+1;At<X&&V[At]=="%";++At);for(var Fn=xt&&V[xt-1]=="!"||At<X&&V[At]=="1"?"1":"N",Sn=xt;Sn<At;++Sn)V[Sn]=Fn;xt=At-1}}for(var Ft=0,_n=H;Ft<X;++Ft){var nn=V[Ft];_n=="L"&&nn=="1"?V[Ft]="L":g.test(nn)&&(_n=nn)}for(var qt=0;qt<X;++qt)if(u.test(V[qt])){var Ht=void 0;for(Ht=qt+1;Ht<X&&u.test(V[Ht]);++Ht);for(var Ot=(qt?V[qt-1]:H)=="L",kn=(Ht<X?V[Ht]:H)=="L",as=Ot==kn?Ot?"L":"R":H,$i=qt;$i<Ht;++$i)V[$i]=as;qt=Ht-1}for(var an=[],Dr,Zt=0;Zt<X;)if(y.test(V[Zt])){var Df=Zt;for(++Zt;Zt<X&&y.test(V[Zt]);++Zt);an.push(new S(0,Df,Zt))}else{var ri=Zt,vo=an.length,mo=z=="rtl"?1:0;for(++Zt;Zt<X&&V[Zt]!="L";++Zt);for(var dn=ri;dn<Zt;)if(x.test(V[dn])){ri<dn&&(an.splice(vo,0,new S(1,ri,dn)),vo+=mo);var cs=dn;for(++dn;dn<Zt&&x.test(V[dn]);++dn);an.splice(vo,0,new S(2,cs,dn)),vo+=mo,ri=dn}else++dn;ri<Zt&&an.splice(vo,0,new S(1,ri,Zt))}return z=="ltr"&&(an[0].level==1&&(Dr=k.match(/^\s+/))&&(an[0].from=Dr[0].length,an.unshift(new S(0,0,Dr[0].length))),he(an).level==1&&(Dr=k.match(/\s+$/))&&(he(an).to-=Dr[0].length,an.push(new S(0,X-Dr[0].length,X)))),z=="rtl"?an.reverse():an}}();function Qe(n,i){var a=n.order;return a==null&&(a=n.order=zn(n.text,i)),a}var Ea=[],Ie=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]||Ea).concat(a)}};function Yr(n,i){return n._handlers&&n._handlers[i]||Ea}function on(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=Me(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Lt(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 Nt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Lt(n,a||i.type,n,i),yn(i)||i.codemirrorIgnore}function rr(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)Me(a,i[l])==-1&&a.push(i[l])}function Dn(n,i){return Yr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Ie(this,i,a)},n.prototype.off=function(i,a){on(this,i,a)}}function sn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Do(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function yn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function wi(n){sn(n),Do(n)}function Ws(n){return n.target||n.srcElement}function ur(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 qu=function(){if(h&&p<9)return!1;var n=_("div");return"draggable"in n||"dragDrop"in n}(),Io;function Aa(n){if(Io==null){var i=_("span","​");O(n,_("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Io=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Io?_("span","​"):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var qs;function xi(n){if(qs!=null)return qs;var i=O(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return $(n),!a||a.left==a.right?!1:qs=l.right-a.right<3}var ir=`
17
+ **/let Ld;const kv=typeof window<"u"&&window.trustedTypes;if(kv)try{Ld=kv.createPolicy("vue",{createHTML:e=>e})}catch{}const ib=Ld?e=>Ld.createHTML(e):e=>e,Hk="http://www.w3.org/2000/svg",Bk="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,Cv=li&&li.createElement("template"),Wk={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(Hk,e):t==="mathml"?li.createElementNS(Bk,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{Cv.innerHTML=ib(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Cv.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",wl="animation",Xl=Symbol("_vtc"),ob={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},qk=tn({},xy,ob),Uk=e=>(e.displayName="Transition",e.props=qk,e),jk=Uk((e,{slots:t})=>ya(P_,Vk(e),t)),wo=(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 Vk(e){const t={};for(const R in e)R in ob||(t[R]=e[R]);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=Gk(s),N=E&&E[0],L=E&&E[1],{onBeforeEnter:M,onEnter:T,onEnterCancelled:P,onLeave:A,onLeaveCancelled:B,onBeforeAppear:G=M,onAppear:U=T,onAppearCancelled:Q=P}=t,J=(R,$,O)=>{xo(R,$?v:d),xo(R,$?p:f),O&&O()},Y=(R,$)=>{R._isLeaving=!1,xo(R,m),xo(R,w),xo(R,b),$&&$()},ee=R=>($,O)=>{const _=R?U:T,D=()=>J($,R,O);wo(_,[$,D]),Ev(()=>{xo($,R?h:c),Pi($,R?v:d),Tv(_)||Av($,o,N,D)})};return tn(t,{onBeforeEnter(R){wo(M,[R]),Pi(R,c),Pi(R,f)},onBeforeAppear(R){wo(G,[R]),Pi(R,h),Pi(R,p)},onEnter:ee(!1),onAppear:ee(!0),onLeave(R,$){R._isLeaving=!0;const O=()=>Y(R,$);Pi(R,m),Pi(R,b),Yk(),Ev(()=>{R._isLeaving&&(xo(R,m),Pi(R,w),Tv(A)||Av(R,o,L,O))}),wo(A,[R,O])},onEnterCancelled(R){J(R,!1),wo(P,[R])},onAppearCancelled(R){J(R,!0),wo(Q,[R])},onLeaveCancelled(R){Y(R),wo(B,[R])}})}function Gk(e){if(e==null)return null;if(St(e))return[Gf(e.enter),Gf(e.leave)];{const t=Gf(e);return[t,t]}}function Gf(e){return q0(e)}function Pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xl]||(e[Xl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Xl];r&&(r.delete(t),r.size||(e[Xl]=void 0))}function Ev(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kk=0;function Av(e,t,r,o){const s=e._endId=++Kk,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Xk(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 Xk(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=Mv(s,c),d=o(`${wl}Delay`),h=o(`${wl}Duration`),p=Mv(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===wl?p>0&&(v=wl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:wl: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 Mv(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 Yk(){return document.body.offsetHeight}function Zk(e,t,r){const o=e[Xl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const jc=Symbol("_vod"),sb=Symbol("_vsh"),ji={beforeMount(e,{value:t},{transition:r}){e[jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):xl(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),xl(e,!0),o.enter(e)):o.leave(e,()=>{xl(e,!1)}):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[jc]:"none",e[sb]=!t}const Jk=Symbol(""),Qk=/(^|;)\s*display\s*:/;function eC(e,t,r){const o=e.style,s=Rt(r);let c=!1;if(r&&!s){if(t)if(Rt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ec(o,d,"")}else for(const f in t)r[f]==null&&Ec(o,f,"");for(const f in r)f==="display"&&(c=!0),Ec(o,f,r[f])}else if(s){if(t!==r){const f=o[Jk];f&&(r+=";"+f),o.cssText=r,c=Qk.test(r)}}else t&&e.removeAttribute("style");jc in e&&(e[jc]=c?o.display:"",e[sb]&&(o.display="none"))}const Nv=/\s*!important$/;function Ec(e,t,r){if(He(r))r.forEach(o=>Ec(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=tC(e,t);Nv.test(r)?e.setProperty(vi(o),r.replace(Nv,""),"important"):e[o]=r}}const $v=["Webkit","Moz","ms"],Kf={};function tC(e,t){const r=Kf[t];if(r)return r;let o=tr(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=pu(o);for(let s=0;s<$v.length;s++){const c=$v[s]+o;if(c in e)return Kf[t]=c}return t}const Ov="http://www.w3.org/1999/xlink";function Pv(e,t,r,o,s,c=YS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Ov,t.slice(6,t.length)):e.setAttributeNS(Ov,t,r):r==null||c&&!U0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Tr(r)?String(r):r)}function Rv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?ib(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=U0(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 nC(e,t,r,o){e.removeEventListener(t,r,o)}const zv=Symbol("_vei");function rC(e,t,r,o,s=null){const c=e[zv]||(e[zv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=iC(t);if(o){const p=c[t]=lC(o,s);Co(e,d,p,h)}else f&&(nC(e,d,f,h),c[t]=void 0)}}const Dv=/(?:Once|Passive|Capture)$/;function iC(e){let t;if(Dv.test(e)){t={};let o;for(;o=e.match(Dv);)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 Xf=0;const oC=Promise.resolve(),sC=()=>Xf||(oC.then(()=>Xf=0),Xf=Date.now());function lC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Er(aC(o,r.value),t,5,[o])};return r.value=e,r.attached=sC(),r}function aC(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 Iv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Zk(e,o,f):t==="style"?eC(e,r,o):fu(t)?fh(t)||rC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uC(e,t,o,f))?(Rv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Rt(o))?Rv(e,tr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Pv(e,t,o,f))};function uC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Iv(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 Iv(t)&&Rt(r)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?r=>kc(t,r):t};function fC(e){e.target.composing=!0}function Fv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Cs=Symbol("_assign"),dC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Cs]=Vc(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=gd(d)),e[Cs](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",fC),Co(e,"compositionend",Fv),Co(e,"change",Fv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Cs]=Vc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?gd(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))}},lb={deep:!0,created(e,t,r){e[Cs]=Vc(r),Co(e,"change",()=>{const o=e._modelValue,s=hC(e),c=e.checked,f=e[Cs];if(He(o)){const d=j0(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(du(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(ab(e,c))})},mounted:Hv,beforeUpdate(e,t,r){e[Cs]=Vc(r),Hv(e,t,r)}};function Hv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(He(t))s=j0(t,o.props.value)>-1;else if(du(t))s=t.has(o.props.value);else{if(t===r)return;s=vu(t,ab(e,!0))}e.checked!==s&&(e.checked=s)}function hC(e){return"_value"in e?e._value:e.value}function ab(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const pC=["ctrl","shift","alt","meta"],gC={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)=>pC.some(r=>e[`${r}Key`]&&!t.includes(r))},Ac=(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=gC[t[f]];if(d&&d(s,t))return}return e(s,...c)})},vC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Nd=(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||vC[f]===c))return e(s)})},mC=tn({patchProp:cC},Wk);let Bv;function yC(){return Bv||(Bv=uk(mC))}const cb=(...e)=>{const t=yC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=wC(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,bC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function bC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wC(e){return Rt(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},xC={};function SC(e,t){const r=Oo("RouterView");return oe(),nt(r)}const _C=yi(xC,[["render",SC]]),kC=["top","right","bottom","left"],Wv=["start","end"],qv=kC.reduce((e,t)=>e.concat(t,t+"-"+Wv[0],t+"-"+Wv[1]),[]),Yl=Math.min,ko=Math.max,CC={left:"right",right:"left",bottom:"top",top:"bottom"},TC={start:"end",end:"start"};function $d(e,t,r){return ko(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Gr(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function ub(e){return e==="x"?"y":"x"}function Lh(e){return e==="y"?"height":"width"}function ba(e){return["top","bottom"].includes(Gr(e))?"y":"x"}function Nh(e){return ub(ba(e))}function fb(e,t,r){r===void 0&&(r=!1);const o=kr(e),s=Nh(e),c=Lh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function EC(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>TC[t])}function AC(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 MC(e,t,r,o){const s=kr(e);let c=AC(Gr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>CC[t])}function LC(e){return{top:0,right:0,bottom:0,left:0,...e}}function db(e){return typeof e!="number"?LC(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 Uv(e,t,r){let{reference:o,floating:s}=e;const c=ba(t),f=Nh(t),d=Lh(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(kr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const NC=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}=Uv(p,o,h),b=o,w={},E=0;for(let N=0;N<d.length;N++){const{name:L,fn:M}=d[N],{x:T,y:P,data:A,reset:B}=await M({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=T??v,m=P??m,w={...w,[L]:{...w[L],...A}},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}=Uv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Au(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=db(w),L=d[b?m==="floating"?"reference":"floating":m],M=Pl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(L)))==null||r?L:L.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),T=m==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),A=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=Pl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:P,strategy:h}):T);return{top:(M.top-B.top+E.top)/A.y,bottom:(B.bottom-M.bottom+E.bottom)/A.y,left:(M.left-B.left+E.left)/A.x,right:(B.right-M.right+E.right)/A.x}}const $C=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=db(v),b={x:r,y:o},w=Nh(s),E=Lh(w),N=await f.getDimensions(p),L=w==="y",M=L?"top":"left",T=L?"bottom":"right",P=L?"clientHeight":"clientWidth",A=c.reference[E]+c.reference[w]-b[w]-c.floating[E],B=b[w]-c.reference[w],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=G?G[P]:0;(!U||!await(f.isElement==null?void 0:f.isElement(G)))&&(U=d.floating[P]||c.floating[E]);const Q=A/2-B/2,J=U/2-N[E]/2-1,Y=Yl(m[M],J),ee=Yl(m[T],J),R=Y,$=U-N[E]-ee,O=U/2-N[E]/2+Q,_=$d(R,O,$),D=!h.arrow&&kr(s)!=null&&O!==_&&c.reference[E]/2-(O<R?Y:ee)-N[E]/2<0,j=D?O<R?O-R:O-$:0;return{[w]:b[w]+j,data:{[w]:_,centerOffset:O-_-j,...D&&{alignmentOffset:j}},reset:D}}});function OC(e,t,r){return(e?[...r.filter(s=>kr(s)===e),...r.filter(s=>kr(s)!==e)]:r.filter(s=>Gr(s)===s)).filter(s=>e?kr(s)===e||(t?Gc(s)!==s:!1):!0)}const PC=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=qv,autoAlignment:w=!0,...E}=zo(e,t),N=m!==void 0||b===qv?OC(m||null,w,b):b,L=await Au(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,T=N[M];if(T==null)return{};const P=fb(T,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==T)return{reset:{placement:N[0]}};const A=[L[Gr(T)],L[P[0]],L[P[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:T,overflows:A}],G=N[M+1];if(G)return{data:{index:M+1,overflows:B},reset:{placement:G}};const U=B.map(Y=>{const ee=kr(Y.placement);return[Y.placement,ee&&v?Y.overflows.slice(0,2).reduce((R,$)=>R+$,0):Y.overflows[0],Y.overflows]}).sort((Y,ee)=>Y[1]-ee[1]),J=((s=U.filter(Y=>Y[2].slice(0,kr(Y[0])?2:3).every(ee=>ee<=0))[0])==null?void 0:s[0])||U[0][0];return J!==d?{data:{index:M+1,overflows:B},reset:{placement:J}}:{}}}},RC=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,...L}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Gr(s),T=Gr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),A=b||(T||!N?[Kc(d)]:EC(d));!b&&E!=="none"&&A.push(...MC(d,N,E,P));const B=[d,...A],G=await Au(t,L),U=[];let Q=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&U.push(G[M]),m){const R=fb(s,f,P);U.push(G[R[0]],G[R[1]])}if(Q=[...Q,{placement:s,overflows:U}],!U.every(R=>R<=0)){var J,Y;const R=(((J=c.flip)==null?void 0:J.index)||0)+1,$=B[R];if($)return{data:{index:R,overflows:Q},reset:{placement:$}};let O=(Y=Q.filter(_=>_.overflows[0]<=0).sort((_,D)=>_.overflows[1]-D.overflows[1])[0])==null?void 0:Y.placement;if(!O)switch(w){case"bestFit":{var ee;const _=(ee=Q.map(D=>[D.placement,D.overflows.filter(j=>j>0).reduce((j,re)=>j+re,0)]).sort((D,j)=>D[1]-j[1])[0])==null?void 0:ee[0];_&&(O=_);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function zC(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=kr(r),h=ba(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 DC=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 zC(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}}}}},IC=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:L=>{let{x:M,y:T}=L;return{x:M,y:T}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),m=ba(Gr(s)),b=ub(m);let w=p[b],E=p[m];if(c){const L=b==="y"?"top":"left",M=b==="y"?"bottom":"right",T=w+v[L],P=w-v[M];w=$d(T,w,P)}if(f){const L=m==="y"?"top":"left",M=m==="y"?"bottom":"right",T=E+v[L],P=E-v[M];E=$d(T,E,P)}const N=d.fn({...t,[b]:w,[m]:E});return{...N,data:{x:N.x-r,y:N.y-o}}}}},FC=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 Au(t,d),p=Gr(r),v=kr(r),m=ba(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 L=w-h[E],M=b-h[N],T=!t.middlewareData.shift;let P=L,A=M;if(m){const G=b-h.left-h.right;A=v||T?Yl(M,G):G}else{const G=w-h.top-h.bottom;P=v||T?Yl(L,G):G}if(T&&!v){const G=ko(h.left,0),U=ko(h.right,0),Q=ko(h.top,0),J=ko(h.bottom,0);m?A=b-2*(G!==0||U!==0?G+U:ko(h.left,h.right)):P=w-2*(Q!==0||J!==0?Q+J:ko(h.top,h.bottom))}await f({...t,availableWidth:A,availableHeight:P});const B=await s.getDimensions(c.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function sr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){return sr(e).getComputedStyle(e)}const jv=Math.min,Rl=Math.max,Xc=Math.round;function hb(e){const t=Ur(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return gb(e)?(e.nodeName||"").toLowerCase():""}let uc;function pb(){if(uc)return uc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(uc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),uc):navigator.userAgent}function jr(e){return e instanceof sr(e).HTMLElement}function Ki(e){return e instanceof sr(e).Element}function gb(e){return e instanceof sr(e).Node}function Vv(e){return typeof ShadowRoot>"u"?!1:e instanceof sr(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 HC(e){return["table","td","th"].includes(Ji(e))}function Od(e){const t=/firefox/i.test(pb()),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 vb(){return!/^((?!chrome|android).)*safari/i.test(pb())}function $h(e){return["html","body","#document"].includes(Ji(e))}function mb(e){return Ki(e)?e:e.contextElement}const yb={x:1,y:1};function Ts(e){const t=mb(e);if(!jr(t))return yb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=hb(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=mb(e);let h=yb;t&&(o?Ki(o)&&(h=Ts(o)):h=Ts(e));const p=d?sr(d):window,v=!vb()&&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=sr(d),L=o&&Ki(o)?sr(o):o;let M=N.frameElement;for(;M&&o&&L!==N;){const T=Ts(M),P=M.getBoundingClientRect(),A=getComputedStyle(M);P.x+=(M.clientLeft+parseFloat(A.paddingLeft))*T.x,P.y+=(M.clientTop+parseFloat(A.paddingTop))*T.y,m*=T.x,b*=T.y,w*=T.x,E*=T.y,m+=P.x,b+=P.y,M=sr(M).frameElement}}return{width:w,height:E,top:b,right:m+w,bottom:b+E,left:m,x:m,y:b}}function Xi(e){return((gb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lu(e){return Ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bb(e){return Zl(Xi(e)).left+Lu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vv(e)&&e.host||Xi(e);return Vv(t)?t.host:t}function wb(e){const t=Jl(e);return $h(t)?t.ownerDocument.body:jr(t)&&Mu(t)?t:wb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=wb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=sr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function Gv(e,t,r){return t==="viewport"?Pl(function(o,s){const c=sr(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=vb();(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=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=jr(o)?Ts(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=Lu(o),f=o.ownerDocument.body,d=Rl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Rl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+bb(o);const v=-c.scrollTop;return Ur(f).direction==="rtl"&&(p+=Rl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Xi(e)))}function Kv(e){return jr(e)&&Ur(e).position!=="fixed"?e.offsetParent:null}function Xv(e){const t=sr(e);let r=Kv(e);for(;r&&HC(r)&&Ur(r).position==="static";)r=Kv(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Ur(r).position==="static"&&!Od(r))?t:r||function(o){let s=Jl(o);for(;jr(s)&&!$h(s);){if(Od(s))return s;s=Jl(s)}return null}(e)||t}function BC(e,t,r){const o=jr(t),s=Xi(t),c=Zl(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=Lu(t)),jr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=bb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const WC={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=Yc(p).filter(L=>Ki(L)&&Ji(L)!=="body"),w=null;const E=Ur(p).position==="fixed";let N=E?Jl(p):p;for(;Ki(N)&&!$h(N);){const L=Ur(N),M=Od(N);(E?M||w:M||L.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=L:b=b.filter(T=>T!==N),N=Jl(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=Gv(t,v,s);return p.top=Rl(m.top,p.top),p.right=jv(m.right,p.right),p.bottom=jv(m.bottom,p.bottom),p.left=Rl(m.left,p.left),p},Gv(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=Lu(r)),jr(r))){const p=Zl(r);d=Ts(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)?hb(e):e.getBoundingClientRect()},getOffsetParent:Xv,getDocumentElement:Xi,getScale:Ts,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Xv,c=this.getDimensions;return{reference:BC(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"},qC=(e,t,r)=>{const o=new Map,s={platform:WC,...r},c={...s.platform,_c:o};return NC(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 Ql(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 UC(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 Yv(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 ea=!1;if(typeof window<"u"){ea=!1;try{const e=Object.defineProperty({},"passive",{get(){ea=!0}});window.addEventListener("test",null,e)}catch{}}let xb=!1;typeof window<"u"&&typeof navigator<"u"&&(xb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Sb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Zv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Jv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Qv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Yf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Jn=[];let So=null;const em={};function tm(e){let t=em[e];return t||(t=em[e]=[]),t}let Pd=function(){};typeof window<"u"&&(Pd=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const Zf="__floating-vue__popper",_b=()=>ut({name:"VPopper",provide(){return{[Zf]:{parentPopper:this}}},inject:{[Zf]:{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=>Sb.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,Pd,Boolean],default:at("container")},boundary:{type:[String,Pd],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[Zf])==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(DC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(PC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(IC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(RC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push($C({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(FC({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 qC(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 Yf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const 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<Jn.length;r++)t=Jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Yv(this.theme))tm(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 Yf(),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,Qv(Jn,this),Jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Yv(this.theme)){const o=tm(r);Qv(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 Yf(),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,Zv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Zv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Jv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Jv,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,ea?{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(zl>=e.left&&zl<=e.right&&Dl>=e.top&&Dl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=zl-Di,o=Dl-Ii,s=t.left+t.width/2-Di+(t.top+t.height/2)-Ii+t.width+t.height,c=Di+r*s,f=Ii+o*s;return fc(Di,Ii,c,f,t.left,t.top,t.left,t.bottom)||fc(Di,Ii,c,f,t.left,t.top,t.right,t.top)||fc(Di,Ii,c,f,t.right,t.top,t.right,t.bottom)||fc(Di,Ii,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(xb){const e=ea?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>nm(t),e),document.addEventListener("touchend",t=>rm(t,!0),e)}else window.addEventListener("mousedown",e=>nm(e),!0),window.addEventListener("click",e=>rm(e,!1),!0);window.addEventListener("resize",GC)}function nm(e,t){for(let r=0;r<Jn.length;r++){const o=Jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function rm(e,t){jC(e,t)}function jC(e,t){const r={};for(let o=Jn.length-1;o>=0;o--){const s=Jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&im(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&&im(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function im(e,t,r){return r.closeAllPopover||r.closePopover&&t||VC(e,r)&&!t}function VC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function GC(){for(let e=0;e<Jn.length;e++)Jn[e].$_computePosition()}function om(){for(let e=0;e<Jn.length;e++)Jn[e].hide()}let Di=0,Ii=0,zl=0,Dl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Di=zl,Ii=Dl,zl=e.clientX,Dl=e.clientY},ea?{passive:!0}:void 0);function fc(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 KC={extends:_b()},Nu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function XC(e,t,r,o,s,c){return oe(),ye("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[mn(e.$slots,"default",KS(eb(e.slotData)))],2)}const YC=Nu(KC,[["render",XC]]);function ZC(){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 Rd(){Rd.init||(Rd.init=!0,Mc=ZC()!==-1)}var $u={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Rd(),Pt(()=>{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 JC=by();my("data-v-b329ee4c");const QC={class:"resize-observer",tabindex:"-1"};yy();const eT=JC((e,t,r,o,s,c)=>(oe(),nt("div",QC)));$u.render=eT;$u.__scopeId="data-v-b329ee4c";$u.__file="src/components/ResizeObserver.vue";const kb=(e="theme")=>({computed:{themeClass(){return UC(this[e])}}}),tT=ut({name:"VPopperContent",components:{ResizeObserver:$u},mixins:[kb()],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}}}),nT=["id","aria-hidden","tabindex","data-popper-placement"],rT={ref:"inner",class:"v-popper__inner"},iT=te("div",{class:"v-popper__arrow-outer"},null,-1),oT=te("div",{class:"v-popper__arrow-inner"},null,-1),sT=[iT,oT];function lT(e,t,r,o,s,c){const f=Oo("ResizeObserver");return oe(),ye("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]=Nd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[te("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),te("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[te("div",rT,[e.mounted?(oe(),ye(ct,{key:0},[te("div",null,[mn(e.$slots,"default")]),e.handleResize?(oe(),nt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ke("",!0)],64)):Ke("",!0)],512),te("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)},sT,4)],4)],46,nT)}const Cb=Nu(tT,[["render",lT]]),Tb={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 aT=ut({name:"VPopperWrapper",components:{Popper:YC,PopperContent:Cb},mixins:[Tb,kb("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 cT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),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:L,classes:M,result:T})=>[mn(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:M,result:T,onHide:E,onResize:L},{default:rt(()=>[mn(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 Oh=Nu(aT,[["render",cT]]);({...Oh});({...Oh});const uT={...Oh,name:"VTooltip",vPopperTheme:"tooltip"},fT=ut({name:"VTooltipDirective",components:{Popper:_b(),PopperContent:Cb},mixins:[Tb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(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}}}),dT=["innerHTML"],hT=["textContent"];function pT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),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:L,result:M})=>[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:L,result:M,onHide:w,onResize:N},{default:rt(()=>[e.html?(oe(),ye("div",{key:0,innerHTML:e.finalContent},null,8,dT)):(oe(),ye("div",{key:1,textContent:Be(e.finalContent)},null,8,hT))]),_: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 gT=Nu(fT,[["render",pT]]),Eb="v-popper--has-tooltip";function vT(e,t){let r=e.placement;if(!r&&t)for(const o of Sb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Ab(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=vT(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Jf,ta,mT=0;function yT(){if(Jf)return;ta=je([]),Jf=cb({name:"VTooltipDirectiveApp",setup(){return{directives:ta}},render(){return this.directives.map(t=>ya(gT,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Jf.mount(e)}function Mb(e,t,r){yT();const o=je(Ab(e,t,r)),s=je(!1),c={id:mT++,options:o,shown:s};return ta.value.push(c),e.classList&&e.classList.add(Eb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ph(e){if(e.$_popper){const t=ta.value.indexOf(e.$_popper.item);t!==-1&&ta.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Eb)}function sm(e,{value:t,modifiers:r}){const o=Ab(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))Ph(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Mb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const bT={beforeMount:sm,updated:sm,beforeUnmount(e){Ph(e)}},wT=bT,Lb=uT,Nb={options:Yi};function $b(e){return e!=null}function Rh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const xT=/^[A-Za-z]:\//;function ST(e=""){return e&&e.replace(/\\/g,"/").replace(xT,t=>t.toUpperCase())}const _T=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,lm=/^\/([A-Za-z]:)?$/;function kT(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const am=function(...e){e=e.map(o=>ST(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:kT();!s||s.length===0||(t=`${s}/${t}`,r=cm(s))}return t=CT(t,!r),r&&!cm(t)?`/${t}`:t.length>0?t:"."};function CT(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 cm=function(e){return _T.test(e)},TT=function(e,t){const r=am(e).replace(lm,"$1").split("/"),o=am(t).replace(lm,"$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 ET(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 Ob(e,t,r,o){const s=TT(t,e),c={id:AT(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 AT(e,t){return ET(`${e}${t||""}`)}function Pb(e){return na(e)}function na(e){return e.type==="test"}function Rb(e){const t=[],r=Rh(e);for(const o of r)if(na(o))t.push(o);else for(const s of o.tasks)if(na(s))t.push(s);else{const c=Rb(s);for(const f of c)t.push(f)}return t}function zh(e=[]){return Rh(e).flatMap(t=>na(t)?[t]:[t,...zh(t.tasks)])}function MT(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 LT=6e4;function zb(e){return e}const NT=zb,{clearTimeout:$T,setTimeout:OT}=globalThis,PT=Math.random.bind(Math);function RT(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=zb,deserialize:d=NT,resolver:h,bind:p="rpc",timeout:v=LT}=t,m=new Map;let b,w=!1;const E=new Proxy({},{get(M,T){if(T==="$functions")return e;if(T==="$close")return N;if(T==="then"&&!c.includes("then")&&!("then"in e))return;const P=(...B)=>{r(f({m:T,a:B,t:"q"}))};if(c.includes(T))return P.asEvent=P,P;const A=async(...B)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${T}"`);if(b)try{await b}finally{b=void 0}return new Promise((G,U)=>{var Y;const Q=DT();let J;v>=0&&(J=OT(()=>{var ee;try{throw(ee=t.onTimeoutError)==null||ee.call(t,T,B),new Error(`[birpc] timeout on calling "${T}"`)}catch(R){U(R)}m.delete(Q)},v),typeof J=="object"&&(J=(Y=J.unref)==null?void 0:Y.call(J))),m.set(Q,{resolve:G,reject:U,timeoutId:J,method:T}),r(f({m:T,a:B,i:Q,t:"q"}))})};return A.asEvent=P,A}});function N(){w=!0,m.forEach(({reject:M,method:T})=>{M(new Error(`[birpc] rpc is closed, cannot call "${T}"`))}),m.clear(),s(L)}async function L(M,...T){const P=d(M);if(P.t==="q"){const{m:A,a:B}=P;let G,U;const Q=h?h(A,e[A]):e[A];if(!Q)U=new Error(`[birpc] function "${A}" not found`);else try{G=await Q.apply(p==="rpc"?E:e,B)}catch(J){U=J}P.i&&(U&&t.onError&&t.onError(U,A,B),r(f({t:"s",i:P.i,r:G,e:U}),...T))}else{const{i:A,r:B,e:G}=P,U=m.get(A);U&&($T(U.timeoutId),G?U.reject(G):U.resolve(B)),m.delete(A)}}return b=o(L),E}const zT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function DT(e=21){let t="",r=e;for(;r--;)t+=zT[PT()*64|0];return t}const{parse:Db,stringify:IT}=JSON,{keys:FT}=Object,ra=String,Ib="string",um={},Zc="object",Fb=(e,t)=>t,HT=e=>e instanceof ra?ra(e):e,BT=(e,t)=>typeof t===Ib?new ra(t):t,Hb=(e,t,r,o)=>{const s=[];for(let c=FT(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ra){const v=e[p];typeof v===Zc&&!t.has(v)?(t.add(v),r[h]=um,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==um&&(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,Hb.apply(null,h))}return r},fm=(e,t,r)=>{const o=ra(t.push(r)-1);return e.set(r,o),o},Dd=(e,t)=>{const r=Db(e,BT).map(HT),o=r[0],s=t||Fb,c=typeof o===Zc&&o?Hb(r,new Set,o,s):o;return s.call({"":c},"",c)},Bb=(e,t,r)=>{const o=t&&typeof t===Zc?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Fb,s=new Map,c=[],f=[];let d=+fm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=IT(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 Zc:if(b===null)return b;case Ib:return s.get(b)||fm(s,c,b)}return b}},WT=e=>Db(Bb(e));class Wb{constructor(){us(this,"filesMap",new Map);us(this,"pathsSet",new Set);us(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=Ob(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 Dh(e){return Rb(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 qT(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Wb,waitForConnection:M,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(T){var P;T==null||T.forEach(([A,B])=>{v.state.clearFiles({config:A},[B])}),(P=r.onSpecsCollected)==null||P.call(r,T)},onPathsCollected(T){var P;v.state.collectPaths(T),(P=r.onPathsCollected)==null||P.call(r,T)},onCollected(T){var P;v.state.collectFiles(T),(P=r.onCollected)==null||P.call(r,T)},onTaskUpdate(T){var P;v.state.updateTasks(T),(P=r.onTaskUpdate)==null||P.call(r,T)},onUserConsoleLog(T){var P;v.state.updateUserLog(T),(P=r.onUserConsoleLog)==null||P.call(r,T)},onFinished(T,P){var A;(A=r.onFinished)==null||A.call(r,T,P)},onFinishedReportCoverage(){var T;(T=r.onFinishedReportCoverage)==null||T.call(r)}},w={post:T=>v.ws.send(T),on:T=>m=T,serialize:T=>Bb(T,(P,A)=>A instanceof Error?{name:A.name,message:A.message,stack:A.stack}:A),deserialize:Dd,onTimeoutError(T){throw new Error(`[vitest-ws-client]: Timeout calling "${T}"`)}};v.rpc=RT(b,w);let E;function N(T=!1){T&&(p=c),v.ws=new h(e),L()}function L(){E=new Promise((T,P)=>{var B,G;const A=(G=(B=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:B.unref)==null?void 0:G.call(B);v.ws.OPEN===v.ws.readyState&&T(),v.ws.addEventListener("open",()=>{p=c,T(),clearTimeout(A)})}),v.ws.addEventListener("message",T=>{m(T.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}L();function M(){return E}return v}function Ih(e){return K0()?(QS(e),!0):!1}const Qf=new WeakMap,UT=(...e)=>{var t;const r=e[0],o=(t=Hs())==null?void 0:t.proxy;if(o==null&&!Oy())throw new Error("injectLocal must be called in setup");return o&&Qf.has(o)&&r in Qf.get(o)?Qf.get(o)[r]:qr(...e)},jT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const VT=Object.prototype.toString,GT=e=>VT.call(e)==="[object Object]",Jc=()=>{};function qb(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 Ub=e=>e();function jb(e,t={}){let r,o,s=Jc;const c=h=>{clearTimeout(h),s(),s=Jc};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 KT(e=Ub,t={}){const{initialState:r="active"}=t,o=Vb(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:ha(o),pause:s,resume:c,eventFilter:f}}function dm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function hm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function XT(e){return Hs()}function ed(e){return Array.isArray(e)?e:[e]}function Vb(...e){if(e.length!==1)return pa(...e);const t=e[0];return typeof t=="function"?ha(fy(()=>({get:t,set:Jc}))):je(t)}function dc(e,t=200,r={}){return qb(jb(t,r),e)}function Gb(e,t,r={}){const{eventFilter:o=Ub,...s}=r;return Et(e,qb(o,t),s)}function Kb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=KT(o,{initialState:s});return{stop:Gb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Fh(e,t=!0,r){XT()?Fs(e,r):t?e():Pt(e)}function Id(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:N}={}){let L=null;const T=[new Promise(P=>{L=Et(e,A=>{m(A)!==t&&(L?L():Pt(()=>L==null?void 0:L()),P(A))},{flush:b,deep:w,immediate:!0})})];return E!=null&&T.push(dm(E,N).then(()=>Ut(e)).finally(()=>L==null?void 0:L())),Promise.race(T)}function o(m,b){if(!kt(m))return r(A=>A===m,b);const{flush:w="sync",deep:E=!1,timeout:N,throwOnTimeout:L}=b??{};let M=null;const P=[new Promise(A=>{M=Et([e,m],([B,G])=>{t!==(B===G)&&(M?M():Pt(()=>M==null?void 0:M()),A(B))},{flush:w,deep:E,immediate:!0})})];return N!=null&&P.push(dm(N,L).then(()=>Ut(e)).finally(()=>(M==null||M(),Ut(e)))),Promise.race(P)}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 Id(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Id(e,!t)}}}function pm(e){return Id(e)}function YT(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=kt(e),c=je(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 Gb(e,t,{...c,eventFilter:jb(o,{maxWait:s})})}function ZT(e,t,r){return Et(e,t,{...r,immediate:!0})}function JT(e,t,r){const o=Et(e,(...s)=>(Pt(()=>o()),t(...s)),r);return o}function QT(e,t,r){let o;kt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Jc}=o,h=On(!s),p=f?On(t):je(t);let v=0;return Eh(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?ke(()=>(h.value=!0,p.value)):p}const Ar=jT?window:void 0;function Qc(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=ke(()=>{const d=ed(Ut(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=ZT(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>Qc(p)))!=null?h:[Ar].filter(p=>p!=null),ed(Ut(s.value?e[1]:e[0])),ed(W(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=GT(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 Ih(r),f}function eE(){const e=On(!1),t=Hs();return t&&Fs(()=>{e.value=!0},t),e}function Xb(e){const t=eE();return ke(()=>(t.value,!!e()))}function tE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Yb(...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=Ar,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tE(t);return Qi(s,c,v=>{v.repeat&&Ut(d)||h(v)&&r(v)},f)}function nE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ar,once:c=!1}=t,f=On(!1),d=ke(()=>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(),Ih(b),{isActive:ha(f),pause:b,resume:m}}const rE=Symbol("vueuse-ssr-width");function iE(){const e=Oy()?UT(rE,null):null;return typeof e=="number"?e:void 0}function Zb(e,t={}){const{window:r=Ar,ssrWidth:o=iE()}=t,s=Xb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=je(typeof o=="number"),f=On(),d=On(!1),h=p=>{d.value=p.matches};return Eh(()=>{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>=hm(b[1])),w&&E&&(E=o<=hm(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}),ke(()=>d.value)}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",oE=sE();function sE(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Jb(e,t){return oE[e]||t}function lE(e){return Zb("(prefers-color-scheme: dark)",e)}function aE(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 cE={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()}},gm="vueuse-storage";function Qb(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=Ar,eventFilter:b,onError:w=ee=>{console.error(ee)},initOnMounted:E}=o,N=(v?On:je)(typeof t=="function"?t():t),L=ke(()=>Ut(e));if(!r)try{r=Jb("getDefaultStorage",()=>{var ee;return(ee=Ar)==null?void 0:ee.localStorage})()}catch(ee){w(ee)}if(!r)return N;const M=Ut(t),T=aE(M),P=(s=o.serializer)!=null?s:cE[T],{pause:A,resume:B}=Kb(N,()=>U(N.value),{flush:c,deep:f,eventFilter:b});Et(L,()=>J(),{flush:c}),m&&d&&Fh(()=>{r instanceof Storage?Qi(m,"storage",J,{passive:!0}):Qi(m,gm,Y),E&&J()}),E||J();function G(ee,R){if(m){const $={key:L.value,oldValue:ee,newValue:R,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(gm,{detail:$}))}}function U(ee){try{const R=r.getItem(L.value);if(ee==null)G(R,null),r.removeItem(L.value);else{const $=P.write(ee);R!==$&&(r.setItem(L.value,$),G(R,$))}}catch(R){w(R)}}function Q(ee){const R=ee?ee.newValue:r.getItem(L.value);if(R==null)return h&&M!=null&&r.setItem(L.value,P.write(M)),M;if(!ee&&p){const $=P.read(R);return typeof p=="function"?p($,M):T==="object"&&!Array.isArray($)?{...M,...$}:$}else return typeof R!="string"?R:P.read(R)}function J(ee){if(!(ee&&ee.storageArea!==r)){if(ee&&ee.key==null){N.value=M;return}if(!(ee&&ee.key!==L.value)){A();try{(ee==null?void 0:ee.newValue)!==P.write(N.value)&&(N.value=Q(ee))}catch(R){w(R)}finally{ee?Pt(B):B()}}}}function Y(ee){J(ee.detail)}return N}const uE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ar,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=lE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Vb(o):Qb(f,o,c,{window:s,listenToStorageChanges:d})),N=ke(()=>E.value==="auto"?w.value:E.value),L=Jb("updateHTMLAttrs",(A,B,G)=>{const U=typeof A=="string"?s==null?void 0:s.document.querySelector(A):Qc(A);if(!U)return;const Q=new Set,J=new Set;let Y=null;if(B==="class"){const R=G.split(/\s/g);Object.values(m).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{R.includes($)?Q.add($):J.add($)})}else Y={key:B,value:G};if(Q.size===0&&J.size===0&&Y===null)return;let ee;v&&(ee=s.document.createElement("style"),ee.appendChild(document.createTextNode(uE)),s.document.head.appendChild(ee));for(const R of Q)U.classList.add(R);for(const R of J)U.classList.remove(R);Y&&U.setAttribute(Y.key,Y.value),v&&(s.getComputedStyle(ee).opacity,document.head.removeChild(ee))});function M(A){var B;L(t,r,(B=m[A])!=null?B:A)}function T(A){e.onChanged?e.onChanged(A,M):M(A)}Et(N,T,{flush:"post",immediate:!0}),Fh(()=>T(N.value));const P=ke({get(){return p?E.value:N.value},set(A){E.value=A}});return Object.assign(P,{store:E,system:w,state:N})}function dE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fE({...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=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function hE(e,t,r={}){const{window:o=Ar,...s}=r;let c;const f=Xb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const m=Ut(e);return Array.isArray(m)?m.map(b=>Qc(b)):[Qc(m)]}),p=Et(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 Ih(v),{isSupported:f,stop:v}}function Ou(e,t,r={}){const{window:o=Ar}=r;return Qb(e,t,o==null?void 0:o.localStorage,r)}function pE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ar}=t;if(!d)return er(r);const h=er({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const P=d.location.hash||"",A=P.indexOf("?");return A>0?P.slice(A):""}else return(d.location.hash||"").replace(/^#/,"")}function v(P){const A=P.toString();if(e==="history")return`${A?`?${A}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${A?`#${A}`:""}`;const B=d.location.hash||"#",G=B.indexOf("?");return G>0?`${d.location.search||""}${B.slice(0,G)}${A?`?${A}`:""}`:`${d.location.search||""}${B}${A?`?${A}`:""}`}function m(){return new URLSearchParams(p())}function b(P){const A=new Set(Object.keys(h));for(const B of P.keys()){const G=P.getAll(B);h[B]=G.length>1?G:P.get(B)||"",A.delete(B)}Array.from(A).forEach(B=>delete h[B])}const{pause:w,resume:E}=Kb(h,()=>{const P=new URLSearchParams("");Object.keys(h).forEach(A=>{const B=h[A];Array.isArray(B)?B.forEach(G=>P.append(A,G)):o&&B==null||s&&!B?P.delete(A):P.set(A,B)}),N(P,!1)},{deep:!0});function N(P,A){w(),A&&b(P),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(P)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(P)),E()}function L(){c&&N(m(),!0)}const M={passive:!0};Qi(d,"popstate",L,M),e!=="history"&&Qi(d,"hashchange",L,M);const T=m();return T.keys().next().value?b(T):Object.assign(h,r),h}function Bh(e={}){const{window:t=Ar,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=je(r),h=je(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=Zb("(orientation: portrait)");Et(m,()=>p())}return{width:d,height:h}}const Fd=On([]),Gn=On([]),Mr=Ou("vitest-ui_task-tree-opened",[],{shallow:!0}),eu=ke(()=>new Set(Mr.value)),cn=Ou("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Wn=je(cn.value.search),gE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ew(e){return e.replace(/[&<>"']/g,t=>gE[t])}const vE=ke(()=>{const e=Wn.value.toLowerCase();return e.length?new RegExp(`(${ew(e)})`,"gi"):null}),tw=ke(()=>Wn.value.trim()!==""),Je=er({failed:cn.value.failed,success:cn.value.success,skipped:cn.value.skipped,onlyTests:cn.value.onlyTests}),Hd=ke(()=>!!(Je.failed||Je.success||Je.skipped)),Pu=On([]),Os=je(!1),vm=ke(()=>{const e=cn.value.expandAll;return Mr.value.length>0?e!==!0:e!==!1}),mE=ke(()=>{const e=tw.value,t=Hd.value,r=Je.onlyTests,o=Ee.summary.filesFailed,s=Ee.summary.filesSuccess,c=Ee.summary.filesSkipped,f=Ee.summary.filesRunning,d=Pu.value;return Ee.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function wa(e){return Object.hasOwnProperty.call(e,"tasks")}function yE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function nw(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 bE(e){return e.type==="test"}function wE(e){return e.mode==="run"&&e.type==="test"}function Nn(e){return e.type==="file"}function pi(e){return e.type==="file"||e.type==="suite"}function xE(e=Ee.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ia(e,t=!1){var o,s,c,f,d;let r=Ee.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:eu.value.size>0&&eu.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:nw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ee.nodes.set(e.id,r),Ee.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)xa(e.id,e.tasks[h],!0)}function rw(e,t){const r=Ee.nodes.get(e);if(!r||!pi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!wa(o)))return xa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function SE(e){const t=Ee.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Pb(r)||xa(t.parentId,r,!1)}function xa(e,t,r){var f,d,h,p,v;const o=Ee.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=Ee.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):(Pb(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:eu.value.size>0&&eu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ee.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&wa(t)))for(let m=0;m<t.tasks.length;m++)xa(s.id,t.tasks[m],r)}function _E(e){const t=Ee.nodes.get(e);if(!t||!pi(t))return;const r=new Set(Mr.value);r.delete(t.id);const o=[...CE(t)];Mr.value=Array.from(r),Gn.value=o}function kE(){Bd(Ee.root.tasks);const e=[...Gn.value.filter(Nn)];Bd(e),Mr.value=[],cn.value.expandAll=!0,Gn.value=e}function Bd(e){for(const t of e)pi(t)&&(t.expanded=!1,Bd(t.tasks))}function*iw(e,t){if(t&&(yield e.id),pi(e))for(let r=0;r<e.tasks.length;r++)yield*iw(e.tasks[r],!0)}function*CE(e){const t=e.id,r=new Set(iw(e,!1));for(let o=0;o<Gn.value.length;o++){const s=Gn.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 Ru=je("idle"),gs=ke(()=>Ru.value==="idle"),Wi=je([]);function TE(e,t,r){return e?lw(e,t,r):!1}function Wh(e,t){const r=[...ow(e,t)];Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function*ow(e,t){for(const r of xE())yield*sw(r,e,t)}function*sw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))pi(b)?(s.set(b.id,m),Nn(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&&!Nn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...AE(c,r.onlyTests,o,d,f)].reverse(),p=Ee.nodes,v=new Set(h.filter(m=>{var b;return Nn(m)||pi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Nn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function EE(e,t,r,o,s){if(o){if(Nn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}function*AE(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=Ee.nodes.get(d.parentId);for(;p;)r.add(p.id),Nn(p)&&o.add(p.id),p=Ee.nodes.get(p.parentId);yield d;continue}if(h){const p=EE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ee.nodes.get(d.parentId);p&&Nn(p)&&o.add(p.id),yield d}}}function ME(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 lw(e,t,r){if(t.length===0||yE(e.name,t))if(r.success||r.failed||r.skipped){if(ME(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(bE(e)){let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}else if(Nn(e))t.add(e.id);else{t.add(e.id);let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}if(yield[o,e],pi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function mm(e,t,r){const o=mt.state.idMap.get(e.id);return o?lw(o,t,r):!1}function LE(e,t,r){const o=rw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)xa(s.id,p,!1);s.expanded=!0;const f=new Set(Mr.value);f.add(s.id);const d=new Set(sw(s,t,r)),h=[...OE(s,d)];Mr.value=Array.from(f),Gn.value=h}function NE(e,t){qh(Ee.root.tasks,!1);const r=[...ow(e,t)];cn.value.expandAll=!1,Mr.value=[],Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function $E(e,t){if(e.size)for(const r of Gn.value)e.has(r.id)&&(r.expanded=!0);else t&&qh(Gn.value.filter(Nn),!0)}function qh(e,t){for(const r of e)pi(r)&&(r.expanded=!0,qh(r.tasks,!1));t&&(cn.value.expandAll=!1,Mr.value=[])}function*OE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Gn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function PE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ia(s,t)),Fd.value=[...Ee.root.tasks],Wh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function RE(e){queueMicrotask(()=>{const t=Ee.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 ym(e,t,r,o,s){e&&BE(r);const c=!e;queueMicrotask(()=>{t?IE(c):FE(c)}),queueMicrotask(()=>{WE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Fd.value&&Dh(Fd.value.map(f=>ar(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{HE(o,s,t)})}function*zE(){yield*Gn.value.filter(wE)}function DE(){const e=mt.state.idMap;let t;for(const r of zE())t=e.get(r.parentId),t&&wa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function IE(e){const t=mt.state.getFiles(),r=Ee.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ia(o[c],e),tu(o[c].tasks);const s=Ee.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=ar(f.id);if(!d)continue;ia(d,e);const h=d.tasks;h!=null&&h.length&&tu(d.tasks)}}function FE(e){const t=new Map(Ee.pendingTasks.entries());Ee.pendingTasks.clear();const r=Ee.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>ar(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ia(s,!1),tu(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Ee.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=ar(h.id);if(!p)continue;const v=t.get(p.id);v&&(ia(p,e),tu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function HE(e,t,r=!1){const o=cn.value.expandAll,s=o!==!0,c=new Set(Mr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{bm(e,t,r)}),Os.value||queueMicrotask(()=>{(Gn.value.length||r)&&(Os.value=!0)}),f&&(queueMicrotask(()=>{$E(c,r),s&&(cn.value.expandAll=!1)}),queueMicrotask(()=>{bm(e,t,r)}))}function bm(e,t,r){Wh(e,t),r&&(DE(),Ru.value="idle")}function tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],wa(t)?rw(t.id,!0):SE(t.id)}function BE(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 WE(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Ee.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,ar(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:L,skipped:M,total:T,ignored:P,todo:A}=aw(w);s.totalTests+=T,s.testsFailed+=N,s.testsSuccess+=L,s.testsSkipped+=M,s.testsTodo+=A,s.testsIgnore+=P}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 aw(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 cw(e))(!r||TE(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 qE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>aw(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*cw(e){const t=Rh(e);let r;for(let o=0;o<t.length;o++)r=t[o],na(r)?yield r:yield*cw(r.tasks)}class UE{constructor(t=[],r=!1,o=500,s={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},c=new Map,f=new Map,d=er({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})){us(this,"rafCollector");us(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=nE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r),PE(t,!0,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){RE(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(()=>{ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}):ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collectTestsTotal(t,r,o,s){return qE(t,r,o,s,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collapseNode(t){queueMicrotask(()=>{_E(t)})}expandNode(t){queueMicrotask(()=>{LE(t,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{kE()})}expandAllNodes(){queueMicrotask(()=>{NE(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}filterNodes(){queueMicrotask(()=>{Wh(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}}const Ee=new UE,Fr=je([414,896]),zu=pE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),eo=pa(zu,"file"),Yn=pa(zu,"view"),uw=pa(zu,"line"),fw=pa(zu,"test"),Ps=je(),Es=je(!0),to=je(!1),nu=je(!0),vs=ke(()=>{var e;return(e=Du.value)==null?void 0:e.coverage}),qd=ke(()=>{var e;return(e=vs.value)==null?void 0:e.enabled}),ms=ke(()=>qd.value&&!!vs.value.htmlReporter),wr=Ou("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Lo=Ou("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),vn=er({navigation:wr.value[0],details:{size:wr.value[1],browser:Lo.value[0],main:Lo.value[1]}}),wm=ke(()=>{var e;if(ms.value){const t=vs.value.reportsDirectory.lastIndexOf("/"),r=(e=vs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${vs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${vs.value.reportsDirectory.slice(t+1)}/index.html`}});Et(Ru,e=>{nu.value=e==="running"},{immediate:!0});function jE(){const e=eo.value;if(e&&e.length>0){const t=ar(e);t?(Ps.value=t,Es.value=!1,to.value=!1):JT(()=>mt.state.getFiles(),()=>{Ps.value=ar(e),Es.value=!1,to.value=!1})}return Es}function ru(e){Es.value=e,to.value=!1,e&&(Ps.value=void 0,eo.value="")}function dw({file:e,line:t,view:r,test:o}){eo.value=e,uw.value=t,Yn.value=r,fw.value=o,Ps.value=ar(e),ru(!1)}function VE(e){dw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function GE(){to.value=!0,Es.value=!1,Ps.value=void 0,eo.value=""}function KE(){vn.details.browser=100,vn.details.main=0,Lo.value=[100,0]}function XE(){vn.details.browser=33,vn.details.main=67,Lo.value=[33,67]}function YE(){vn.navigation=33,vn.details.size=67,wr.value=[33,67]}const ZE={setCurrentFileId(e){eo.value=e,Ps.value=ar(e),ru(!1)},async setIframeViewport(e,t){Fr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eA=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Cr=!!window.METADATA_PATH,tA=44,xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nA=new Uint8Array(64),hw=new Uint8Array(128);for(let e=0;e<xm.length;e++){const t=xm.charCodeAt(e);nA[e]=t,hw[t]=e}function Sl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=hw[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()!==tA}class rA{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 iA(e){const{length:t}=e,r=new rA(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||oA(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function oA(e){e.sort(sA)}function sA(e,t){return e[0]-t[0]}const lA=/^[\w+.-]+:\/\//,aA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,cA=/^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 uA(e){return lA.test(e)}function fA(e){return e.startsWith("//")}function pw(e){return e.startsWith("/")}function dA(e){return e.startsWith("file:")}function _m(e){return/^[.?#]/.test(e)}function gc(e){const t=aA.exec(e);return gw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function hA(e){const t=cA.exec(e),r=t[2];return gw("file:","",t[1]||"","",pw(r)?r:"/"+r,t[3]||"",t[4]||"")}function gw(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 km(e){if(fA(e)){const r=gc("http:"+e);return r.scheme="",r.type=Wt.SchemeRelative,r}if(pw(e)){const r=gc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Wt.AbsolutePath,r}if(dA(e))return hA(e);if(uA(e))return gc(e);const t=gc("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 pA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function gA(e,t){vw(t,t.type),e.path==="/"?e.path=t.path:e.path=pA(t.path)+e.path}function vw(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 vA(e,t){if(!e&&!t)return"";const r=km(e);let o=r.type;if(t&&o!==Wt.Absolute){const c=km(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:gA(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)}vw(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?_m(t||e)&&!_m(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+="/"),vA(e,t)}function mA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,yA=1,bA=2,wA=3,xA=4;function SA(e,t){const r=Tm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Tm(e,o+1))e[o]=kA(e[o],t);return e}function Tm(e,t){for(let r=t;r<e.length;r++)if(!_A(e[r]))return r;return e.length}function _A(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function kA(e,t){return t||(e=e.slice()),e.sort(CA)}function CA(e,t){return e[no]-t[no]}let iu=!1;function TA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function EA(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function AA(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function MA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function LA(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 iu=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=TA(e,t,d,h)}const NA="`line` must be greater than 0 (lines start at line 1)",$A="`column` must be greater than or equal to 0 (columns start at column 0)",Em=-1,OA=1;class PA{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||"",mA(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=SA(b,o)),this._decodedMemo=MA(),this._bySources=void 0,this._bySourceMemos=void 0}}function RA(e){var t;return(t=e)._decoded||(t._decoded=iA(e._encoded))}function zA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(NA);if(o<0)throw new Error($A);const c=RA(e);if(r>=c.length)return vc(null,null,null,null);const f=c[r],d=DA(f,e._decodedMemo,r,o,s||OA);if(d===-1)return vc(null,null,null,null);const h=f[d];if(h.length===1)return vc(null,null,null,null);const{names:p,resolvedSources:v}=e;return vc(v[h[yA]],h[bA]+1,h[wA],h.length===5?p[h[xA]]:null)}function vc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function DA(e,t,r,o,s){let c=LA(e,o,t,r);return iu?c=(s===Em?EA:AA)(e,o,c):s===Em&&c++,c===-1||c===e.length?-1:c}const IA=/^[A-Za-z]:\//;function FA(e=""){return e&&e.replace(/\\/g,"/").replace(IA,t=>t.toUpperCase())}const HA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function BA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const WA=function(...e){e=e.map(o=>FA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:BA();!s||s.length===0||(t=`${s}/${t}`,r=Am(s))}return t=qA(t,!r),r&&!Am(t)?`/${t}`:t.length>0?t:"."};function qA(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 HA.test(e)},mw=/^\s*at .*(?:\S:\d+|\(native\))/m,UA=/^(?:eval@)?(?:\[native code\])?$/,jA=["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 yw(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 VA(e){let t=e.trim();if(UA.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]=yw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function GA(e){let t=e.trim();if(!mw.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]=yw(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:WA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function KA(e,t={}){const{ignoreStackEntries:r=jA}=t;return(mw.test(e)?YA(e):XA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Mm(r,s.file)?null:s;const d=new PA(f),{line:h,column:p,source:v,name:m}=zA(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 XA(e){return e.split(`
18
+ `).map(t=>VA(t)).filter($b)}function YA(e){return e.split(`
19
+ `).map(t=>GA(t)).filter($b)}function bw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var td={},yr={};const ZA="Á",JA="á",QA="Ă",eM="ă",tM="∾",nM="∿",rM="∾̳",iM="Â",oM="â",sM="´",lM="А",aM="а",cM="Æ",uM="æ",fM="⁡",dM="𝔄",hM="𝔞",pM="À",gM="à",vM="ℵ",mM="",yM="Α",bM="α",wM="Ā",xM="ā",SM="⨿",_M="&",kM="&",CM="",TM="",EM="",AM="",MM="",LM="",NM="",$M="",OM="",PM="",RM="",zM="",DM="",IM="",FM="",HM="",BM="",WM="",qM="",UM="",jM="",VM="",GM="Å",KM="",XM="Ą",YM="ą",ZM="𝔸",JM="𝕒",QM="",eL="",tL="",nL="",rL="",iL="'",oL="",sL="",lL="",aL="Å",cL="å",uL="𝒜",fL="𝒶",dL="",hL="*",pL="",gL="",vL="Ã",mL="ã",yL="Ä",bL="ä",wL="",xL="",SL="",_L="϶",kL="",CL="",TL="",EL="",AL="",ML="",LL="",NL="",$L="",OL="",PL="",RL="",zL="Б",DL="б",IL="",FL="∵",HL="∵",BL="",WL="",qL="϶",UL="ℬ",jL="",VL="Β",GL="β",KL="",XL="",YL="𝔅",ZL="𝔟",JL="",QL="",eN="",tN="",nN="",rN="",iN="",oN="",sN="",lN="",aN="",cN="",uN="",fN="",dN="",hN="",pN="",gN="",vN="",mN="",yN="",bN="",wN="",xN="",SN="",_N="=⃥",kN="≡⃥",CN="",TN="",EN="𝔹",AN="𝕓",MN="⊥",LN="",NN="",$N="",ON="",PN="",RN="",zN="",DN="",IN="",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$="˘",C$="¦",T$="𝒷",E$="",A$="",M$="",L$="",N$="",$$="\\",O$="",P$="•",R$="",z$="",D$="",I$="",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="Ч",SO="ч",_O="✓",kO="",CO="Χ",TO="χ",EO="ˆ",AO="",MO="",LO="",NO="",$O="",OO="",PO="",RO="®",zO="",DO="",IO="",FO="",HO="",BO="",WO="",qO="",UO="",jO="",VO="",GO="",KO="",XO="♣",YO="",ZO=":",JO="",QO="",eP="≔",tP="",nP=",",rP="@",iP="",oP="",sP="",lP="",aP="",cP="",uP="",fP="",dP="",hP="",pP="𝕔",gP="",vP="∐",mP="",yP="©",bP="©",wP="",xP="",SP="",_P="",kP="",CP="𝒞",TP="𝒸",EP="",AP="",MP="",LP="",NP="",$P="",OP="",PP="",RP="",zP="",DP="",IP="",FP="",HP="",BP="",WP="",qP="",UP="",jP="",VP="∪︀",GP="",KP="",XP="",YP="",ZP="",JP="",QP="¤",eR="",tR="",nR="",rR="",iR="",oR="",sR="",lR="",aR="",cR="",uR="",fR="",dR="",hR="",pR="",gR="",vR="",mR="˝",yR="Ď",bR="ď",wR="Д",xR="д",SR="",_R="",kR="",CR="",TR="",ER="",AR="°",MR="",LR="Δ",NR="δ",$R="",OR="⥿",PR="𝔇",RR="𝔡",zR="",DR="",IR="",FR="´",HR="˙",BR="˝",WR="`",qR="˜",UR="⋄",jR="⋄",VR="",GR="♦",KR="",XR="¨",YR="",ZR="ϝ",JR="",QR="÷",e2="÷",t2="⋇",n2="",r2="Ђ",i2="ђ",o2="",s2="",l2="$",a2="𝔻",c2="𝕕",u2="¨",f2="˙",d2="",h2="",p2="",g2="",v2="",m2="",y2="",b2="",w2="",x2="¨",S2="",_2="",k2="",C2="",T2="",E2="",A2="",M2="",L2="",N2="",$2="",O2="",P2="",R2="↓",z2="",D2="",I2="",F2="̑",H2="",B2="",W2="",q2="",U2="",j2="",V2="",G2="",K2="",X2="",Y2="",Z2="",J2="",Q2="",ez="",tz="𝒟",nz="𝒹",rz="Ѕ",iz="ѕ",oz="",sz="Đ",lz="đ",az="",cz="",uz="",fz="",dz="",hz="",pz="Џ",gz="џ",vz="",mz="É",yz="é",bz="",wz="Ě",xz="ě",Sz="Ê",_z="ê",kz="",Cz="",Tz="Э",Ez="э",Az="",Mz="Ė",Lz="ė",Nz="",$z="",Oz="",Pz="𝔈",Rz="𝔢",zz="",Dz="È",Iz="è",Fz="",Hz="",Bz="",Wz="",qz="",Uz="",jz="",Vz="",Gz="Ē",Kz="ē",Xz="∅",Yz="",Zz="",Jz="",Qz="",eD="",tD="",nD="",rD="Ŋ",iD="ŋ",oD="",sD="Ę",lD="ę",aD="𝔼",cD="𝕖",uD="",fD="",dD="",hD="ε",pD="Ε",gD="ε",vD="ϵ",mD="",yD="",bD="",wD="",xD="",SD="",_D="=",kD="",CD="",TD="",ED="",AD="",MD="",LD="",ND="",$D="",OD="",PD="",RD="",zD="",DD="Η",ID="η",FD="Ð",HD="ð",BD="Ë",WD="ë",qD="",UD="!",jD="∃",VD="",GD="",KD="ⅇ",XD="",YD="",ZD="Ф",JD="ф",QD="",eI="",tI="",nI="",rI="𝔉",iI="𝔣",oI="",sI="",lI="",aI="fj",cI="",uI="",fI="",dI="ƒ",hI="𝔽",pI="𝕗",gI="∀",vI="",mI="",yI="",bI="",wI="",xI="½",SI="",_I="¼",kI="",CI="",TI="",EI="",AI="",MI="¾",LI="",NI="",$I="",OI="",PI="",RI="",zI="",DI="",II="𝒻",FI="",HI="ǵ",BI="Γ",WI="γ",qI="Ϝ",UI="ϝ",jI="",VI="Ğ",GI="ğ",KI="Ģ",XI="Ĝ",YI="ĝ",ZI="Г",JI="г",QI="Ġ",eF="ġ",tF="",nF="",rF="",iF="",oF="",sF="",lF="",aF="",cF="",uF="",fF="",dF="",hF="⋛︀",pF="",gF="𝔊",vF="𝔤",mF="",yF="⋙",bF="",wF="",xF="Ѓ",SF="ѓ",_F="",kF="",CF="",TF="",EF="⪊",AF="",MF="",LF="",NF="",$F="",OF="",PF="𝔾",RF="𝕘",zF="`",DF="",IF="",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="",SH="^",_H="",kH="Ĥ",CH="ĥ",TH="♥",EH="",AH="",MH="",LH="𝔥",NH="",$H="",OH="",PH="",RH="",zH="",DH="",IH="",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="IJ",wB="ij",xB="Ī",SB="ī",_B="",kB="",CB="",TB="",EB="ı",AB="",MB="",LB="Ƶ",NB="",$B="",OB="",PB="",RB="ı",zB="",DB="",IB="",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="й",S3="𝔍",_3="𝔧",k3="ȷ",C3="𝕁",T3="𝕛",E3="𝒥",A3="𝒿",M3="Ј",L3="ј",N3="Є",$3="є",O3="Κ",P3="κ",R3="ϰ",z3="Ķ",D3="ķ",I3="К",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="",S5="",_5="",k5="",C5="",T5="⪭︀",E5="",A5="",M5="",L5="{",N5="[",$5="",O5="",P5="",R5="Ľ",z5="ľ",D5="Ļ",I5="ļ",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="",S8="",_8="",k8="",C8="",T8="",E8="",A8="",M8="",L8="",N8="",$8="",O8="",P8="",R8="",z8="",D8="",I8="",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="",SW="",_W="Ŀ",kW="ŀ",CW="⎰",TW="",EW="⪉",AW="",MW="",LW="",NW="",$W="",OW="",PW="",RW="",zW="",DW="⟵",IW="",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="",S4="",_4="[",k4="",C4="",T4="Ł",E4="ł",A4="",M4="",L4="<",N4="<",$4="",O4="",P4="",R4="",z4="",D4="",I4="",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="",Sq="",_q="",kq="",Cq="",Tq="",Eq="𝕄",Aq="𝕞",Mq="",Lq="𝓂",Nq="",$q="",Oq="Μ",Pq="μ",Rq="⊸",zq="",Dq="",Iq="Ń",Fq="ń",Hq="∠⃒",Bq="",Wq="⩰̸",qq="≋̸",Uq="ʼn",jq="",Vq="",Gq="",Kq="",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="≂̸",S6="≫",_6="≪",k6=`
20
+ `,C6="∄",T6="∄",E6="𝔑",A6="𝔫",M6="≧̸",L6="≱",N6="≱",$6="≧̸",O6="⩾̸",P6="⩾̸",R6="⋙̸",z6="≵",D6="≫⃒",I6="≯",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="ℕ",SU="⫬",_U="¬",kU="≢",CU="≭",TU="∦",EU="∉",AU="≠",MU="≂̸",LU="∄",NU="≯",$U="≱",OU="≧̸",PU="≫̸",RU="≹",zU="⩾̸",DU="≵",IU="≎̸",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="⪰̸",Sj="⋡",_j="≿̸",kj="⊃⃒",Cj="⊉",Tj="≁",Ej="≄",Aj="≇",Mj="≉",Lj="∤",Nj="∦",$j="∦",Oj="⫽⃥",Pj="∂̸",Rj="⨔",zj="⊀",Dj="⋠",Ij="⊀",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="⊉",SV="⫆̸",_V="≹",kV="Ñ",CV="ñ",TV="≸",EV="⋪",AV="⋬",MV="⋫",LV="⋭",NV="Ν",$V="ν",OV="#",PV="№",RV=" ",zV="≍⃒",DV="⊬",IV="⊭",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="𝔬",S9="˛",_9="Ò",k9="ò",C9="⧁",T9="⦵",E9="Ω",A9="∮",M9="↺",L9="⦾",N9="⦻",$9="‾",O9="⧀",P9="Ō",R9="ō",z9="Ω",D9="ω",I9="Ο",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="‾",SG="⏞",_G="⎴",kG="⏜",CG="¶",TG="∥",EG="∥",AG="⫳",MG="⫽",LG="∂",NG="∂",$G="П",OG="п",PG="%",RG=".",zG="‰",DG="⊥",IG="‱",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="≺",S7="≼",_7="≺",k7="⪯",C7="≼",T7="≾",E7="⪯",A7="⪹",M7="⪵",L7="⋨",N7="⪯",$7="⪳",O7="≾",P7="′",R7="″",z7="ℙ",D7="⪹",I7="⪵",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="⦳",SK="⟩",_K="⟫",kK="⦒",CK="⦥",TK="⟩",EK="»",AK="⥵",MK="⇥",LK="⤠",NK="⤳",$K="→",OK="↠",PK="⇒",RK="⤞",zK="↪",DK="↬",IK="⥅",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="®",SX="®",_X="∋",kX="⇋",CX="⥯",TX="⥽",EX="⌋",AX="𝔯",MX="ℜ",LX="⥤",NX="⇁",$X="⇀",OX="⥬",PX="Ρ",RX="ρ",zX="ϱ",DX="⟩",IX="⇥",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="⎱",SY="⫮",_Y="⟭",kY="⇾",CY="⟧",TY="⦆",EY="𝕣",AY="ℝ",MY="⨮",LY="⨵",NY="⥰",$Y=")",OY="⦔",PY="⨒",RY="⇉",zY="⇛",DY="›",IY="𝓇",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="с",SZ="⊡",_Z="⋅",kZ="⩦",CZ="⤥",TZ="↘",EZ="⇘",AZ="↘",MZ="§",LZ=";",NZ="⤩",$Z="∖",OZ="∖",PZ="✶",RZ="𝔖",zZ="𝔰",DZ="⌢",IZ="♯",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="Ь",SJ="ь",_J="⌿",kJ="⧄",CJ="/",TJ="𝕊",EJ="𝕤",AJ="♠",MJ="♠",LJ="∥",NJ="⊓",$J="⊓︀",OJ="⊔",PJ="⊔︀",RJ="√",zJ="⊏",DJ="⊑",IJ="⊏",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="⊊",SQ="⪿",_Q="⥹",kQ="⊂",CQ="⋐",TQ="⊆",EQ="⫅",AQ="⊆",MQ="⊊",LQ="⫋",NQ="⫇",$Q="⫕",OQ="⫓",PQ="⪸",RQ="≻",zQ="≽",DQ="≻",IQ="⪰",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="⫈",See="⫔",_ee="⫖",kee="⤦",Cee="↙",Tee="⇙",Eee="↙",Aee="⤪",Mee="ß",Lee=" ",Nee="⌖",$ee="Τ",Oee="τ",Pee="⎴",Ree="Ť",zee="ť",Dee="Ţ",Iee="ţ",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="𝕋",Ste="𝕥",_te="⫚",kte="⤩",Cte="‴",Tte="™",Ete="™",Ate="▵",Mte="▿",Lte="◃",Nte="⊴",$te="≜",Ote="▹",Pte="⊵",Rte="◬",zte="≜",Dte="⨺",Ite="⃛",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="Ù",Sne="ù",_ne="⥣",kne="↿",Cne="↾",Tne="▀",Ene="⌜",Ane="⌜",Mne="⌏",Lne="◸",Nne="Ū",$ne="ū",One="¨",Pne="_",Rne="⏟",zne="⎵",Dne="⏝",Ine="⋃",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="Ũ",Sre="ũ",_re="▵",kre="▴",Cre="⇈",Tre="Ü",Ere="ü",Are="⦧",Mre="⦜",Lre="ϵ",Nre="ϰ",$re="∅",Ore="ϕ",Pre="ϖ",Rre="∝",zre="↕",Dre="⇕",Ire="ϱ",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="⊃⃒",Sie="𝕍",_ie="𝕧",kie="∝",Cie="⊳",Tie="𝒱",Eie="𝓋",Aie="⫋︀",Mie="⊊︀",Lie="⫌︀",Nie="⊋︀",$ie="⊪",Oie="⦚",Pie="Ŵ",Rie="ŵ",zie="⩟",Die="∧",Iie="⋀",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="△",Soe="⋁",_oe="⋀",koe="Ý",Coe="ý",Toe="Я",Eoe="я",Aoe="Ŷ",Moe="ŷ",Loe="Ы",Noe="ы",$oe="¥",Ooe="𝔜",Poe="𝔶",Roe="Ї",zoe="ї",Doe="𝕐",Ioe="𝕪",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="‌",ww={Aacute:ZA,aacute:JA,Abreve:QA,abreve:eM,ac:tM,acd:nM,acE:rM,Acirc:iM,acirc:oM,acute:sM,Acy:lM,acy:aM,AElig:cM,aelig:uM,af:fM,Afr:dM,afr:hM,Agrave:pM,agrave:gM,alefsym:vM,aleph:mM,Alpha:yM,alpha:bM,Amacr:wM,amacr:xM,amalg:SM,amp:_M,AMP:kM,andand:CM,And:TM,and:EM,andd:AM,andslope:MM,andv:LM,ang:NM,ange:$M,angle:OM,angmsdaa:PM,angmsdab:RM,angmsdac:zM,angmsdad:DM,angmsdae:IM,angmsdaf:FM,angmsdag:HM,angmsdah:BM,angmsd:WM,angrt:qM,angrtvb:UM,angrtvbd:jM,angsph:VM,angst:GM,angzarr:KM,Aogon:XM,aogon:YM,Aopf:ZM,aopf:JM,apacir:QM,ap:eL,apE:tL,ape:nL,apid:rL,apos:iL,ApplyFunction:oL,approx:sL,approxeq:lL,Aring:aL,aring:cL,Ascr:uL,ascr:fL,Assign:dL,ast:hL,asymp:pL,asympeq:gL,Atilde:vL,atilde:mL,Auml:yL,auml:bL,awconint:wL,awint:xL,backcong:SL,backepsilon:_L,backprime:kL,backsim:CL,backsimeq:TL,Backslash:EL,Barv:AL,barvee:ML,barwed:LL,Barwed:NL,barwedge:$L,bbrk:OL,bbrktbrk:PL,bcong:RL,Bcy:zL,bcy:DL,bdquo:IL,becaus:FL,because:HL,Because:BL,bemptyv:WL,bepsi:qL,bernou:UL,Bernoullis:jL,Beta:VL,beta:GL,beth:KL,between:XL,Bfr:YL,bfr:ZL,bigcap:JL,bigcirc:QL,bigcup:eN,bigodot:tN,bigoplus:nN,bigotimes:rN,bigsqcup:iN,bigstar:oN,bigtriangledown:sN,bigtriangleup:lN,biguplus:aN,bigvee:cN,bigwedge:uN,bkarow:fN,blacklozenge:dN,blacksquare:hN,blacktriangle:pN,blacktriangledown:gN,blacktriangleleft:vN,blacktriangleright:mN,blank:yN,blk12:bN,blk14:wN,blk34:xN,block:SN,bne:_N,bnequiv:kN,bNot:CN,bnot:TN,Bopf:EN,bopf:AN,bot:MN,bottom:LN,bowtie:NN,boxbox:$N,boxdl:ON,boxdL:PN,boxDl:RN,boxDL:zN,boxdr:DN,boxdR:IN,boxDr:FN,boxDR:HN,boxh:BN,boxH:WN,boxhd:qN,boxHd:UN,boxhD:jN,boxHD:VN,boxhu:GN,boxHu:KN,boxhU:XN,boxHU:YN,boxminus:ZN,boxplus:JN,boxtimes:QN,boxul:e$,boxuL:t$,boxUl:n$,boxUL:r$,boxur:i$,boxuR:o$,boxUr:s$,boxUR:l$,boxv:a$,boxV:c$,boxvh:u$,boxvH:f$,boxVh:d$,boxVH:h$,boxvl:p$,boxvL:g$,boxVl:v$,boxVL:m$,boxvr:y$,boxvR:b$,boxVr:w$,boxVR:x$,bprime:S$,breve:_$,Breve:k$,brvbar:C$,bscr:T$,Bscr:E$,bsemi:A$,bsim:M$,bsime:L$,bsolb:N$,bsol:$$,bsolhsub:O$,bull:P$,bullet:R$,bump:z$,bumpE:D$,bumpe:I$,Bumpeq:F$,bumpeq:H$,Cacute:B$,cacute:W$,capand:q$,capbrcup:U$,capcap:j$,cap:V$,Cap:G$,capcup:K$,capdot:X$,CapitalDifferentialD:Y$,caps:Z$,caret:J$,caron:Q$,Cayleys:eO,ccaps:tO,Ccaron:nO,ccaron:rO,Ccedil:iO,ccedil:oO,Ccirc:sO,ccirc:lO,Cconint:aO,ccups:cO,ccupssm:uO,Cdot:fO,cdot:dO,cedil:hO,Cedilla:pO,cemptyv:gO,cent:vO,centerdot:mO,CenterDot:yO,cfr:bO,Cfr:wO,CHcy:xO,chcy:SO,check:_O,checkmark:kO,Chi:CO,chi:TO,circ:EO,circeq:AO,circlearrowleft:MO,circlearrowright:LO,circledast:NO,circledcirc:$O,circleddash:OO,CircleDot:PO,circledR:RO,circledS:zO,CircleMinus:DO,CirclePlus:IO,CircleTimes:FO,cir:HO,cirE:BO,cire:WO,cirfnint:qO,cirmid:UO,cirscir:jO,ClockwiseContourIntegral:VO,CloseCurlyDoubleQuote:GO,CloseCurlyQuote:KO,clubs:XO,clubsuit:YO,colon:ZO,Colon:JO,Colone:QO,colone:eP,coloneq:tP,comma:nP,commat:rP,comp:iP,compfn:oP,complement:sP,complexes:lP,cong:aP,congdot:cP,Congruent:uP,conint:fP,Conint:dP,ContourIntegral:hP,copf:pP,Copf:gP,coprod:vP,Coproduct:mP,copy:yP,COPY:bP,copysr:wP,CounterClockwiseContourIntegral:xP,crarr:SP,cross:_P,Cross:kP,Cscr:CP,cscr:TP,csub:EP,csube:AP,csup:MP,csupe:LP,ctdot:NP,cudarrl:$P,cudarrr:OP,cuepr:PP,cuesc:RP,cularr:zP,cularrp:DP,cupbrcap:IP,cupcap:FP,CupCap:HP,cup:BP,Cup:WP,cupcup:qP,cupdot:UP,cupor:jP,cups:VP,curarr:GP,curarrm:KP,curlyeqprec:XP,curlyeqsucc:YP,curlyvee:ZP,curlywedge:JP,curren:QP,curvearrowleft:eR,curvearrowright:tR,cuvee:nR,cuwed:rR,cwconint:iR,cwint:oR,cylcty:sR,dagger:lR,Dagger:aR,daleth:cR,darr:uR,Darr:fR,dArr:dR,dash:hR,Dashv:pR,dashv:gR,dbkarow:vR,dblac:mR,Dcaron:yR,dcaron:bR,Dcy:wR,dcy:xR,ddagger:SR,ddarr:_R,DD:kR,dd:CR,DDotrahd:TR,ddotseq:ER,deg:AR,Del:MR,Delta:LR,delta:NR,demptyv:$R,dfisht:OR,Dfr:PR,dfr:RR,dHar:zR,dharl:DR,dharr:IR,DiacriticalAcute:FR,DiacriticalDot:HR,DiacriticalDoubleAcute:BR,DiacriticalGrave:WR,DiacriticalTilde:qR,diam:UR,diamond:jR,Diamond:VR,diamondsuit:GR,diams:KR,die:XR,DifferentialD:YR,digamma:ZR,disin:JR,div:QR,divide:e2,divideontimes:t2,divonx:n2,DJcy:r2,djcy:i2,dlcorn:o2,dlcrop:s2,dollar:l2,Dopf:a2,dopf:c2,Dot:u2,dot:f2,DotDot:d2,doteq:h2,doteqdot:p2,DotEqual:g2,dotminus:v2,dotplus:m2,dotsquare:y2,doublebarwedge:b2,DoubleContourIntegral:w2,DoubleDot:x2,DoubleDownArrow:S2,DoubleLeftArrow:_2,DoubleLeftRightArrow:k2,DoubleLeftTee:C2,DoubleLongLeftArrow:T2,DoubleLongLeftRightArrow:E2,DoubleLongRightArrow:A2,DoubleRightArrow:M2,DoubleRightTee:L2,DoubleUpArrow:N2,DoubleUpDownArrow:$2,DoubleVerticalBar:O2,DownArrowBar:P2,downarrow:R2,DownArrow:z2,Downarrow:D2,DownArrowUpArrow:I2,DownBreve:F2,downdownarrows:H2,downharpoonleft:B2,downharpoonright:W2,DownLeftRightVector:q2,DownLeftTeeVector:U2,DownLeftVectorBar:j2,DownLeftVector:V2,DownRightTeeVector:G2,DownRightVectorBar:K2,DownRightVector:X2,DownTeeArrow:Y2,DownTee:Z2,drbkarow:J2,drcorn:Q2,drcrop:ez,Dscr:tz,dscr:nz,DScy:rz,dscy:iz,dsol:oz,Dstrok:sz,dstrok:lz,dtdot:az,dtri:cz,dtrif:uz,duarr:fz,duhar:dz,dwangle:hz,DZcy:pz,dzcy:gz,dzigrarr:vz,Eacute:mz,eacute:yz,easter:bz,Ecaron:wz,ecaron:xz,Ecirc:Sz,ecirc:_z,ecir:kz,ecolon:Cz,Ecy:Tz,ecy:Ez,eDDot:Az,Edot:Mz,edot:Lz,eDot:Nz,ee:$z,efDot:Oz,Efr:Pz,efr:Rz,eg:zz,Egrave:Dz,egrave:Iz,egs:Fz,egsdot:Hz,el:Bz,Element:Wz,elinters:qz,ell:Uz,els:jz,elsdot:Vz,Emacr:Gz,emacr:Kz,empty:Xz,emptyset:Yz,EmptySmallSquare:Zz,emptyv:Jz,EmptyVerySmallSquare:Qz,emsp13:eD,emsp14:tD,emsp:nD,ENG:rD,eng:iD,ensp:oD,Eogon:sD,eogon:lD,Eopf:aD,eopf:cD,epar:uD,eparsl:fD,eplus:dD,epsi:hD,Epsilon:pD,epsilon:gD,epsiv:vD,eqcirc:mD,eqcolon:yD,eqsim:bD,eqslantgtr:wD,eqslantless:xD,Equal:SD,equals:_D,EqualTilde:kD,equest:CD,Equilibrium:TD,equiv:ED,equivDD:AD,eqvparsl:MD,erarr:LD,erDot:ND,escr:$D,Escr:OD,esdot:PD,Esim:RD,esim:zD,Eta:DD,eta:ID,ETH:FD,eth:HD,Euml:BD,euml:WD,euro:qD,excl:UD,exist:jD,Exists:VD,expectation:GD,exponentiale:KD,ExponentialE:XD,fallingdotseq:YD,Fcy:ZD,fcy:JD,female:QD,ffilig:eI,fflig:tI,ffllig:nI,Ffr:rI,ffr:iI,filig:oI,FilledSmallSquare:sI,FilledVerySmallSquare:lI,fjlig:aI,flat:cI,fllig:uI,fltns:fI,fnof:dI,Fopf:hI,fopf:pI,forall:gI,ForAll:vI,fork:mI,forkv:yI,Fouriertrf:bI,fpartint:wI,frac12:xI,frac13:SI,frac14:_I,frac15:kI,frac16:CI,frac18:TI,frac23:EI,frac25:AI,frac34:MI,frac35:LI,frac38:NI,frac45:$I,frac56:OI,frac58:PI,frac78:RI,frasl:zI,frown:DI,fscr:II,Fscr:FI,gacute:HI,Gamma:BI,gamma:WI,Gammad:qI,gammad:UI,gap:jI,Gbreve:VI,gbreve:GI,Gcedil:KI,Gcirc:XI,gcirc:YI,Gcy:ZI,gcy:JI,Gdot:QI,gdot:eF,ge:tF,gE:nF,gEl:rF,gel:iF,geq:oF,geqq:sF,geqslant:lF,gescc:aF,ges:cF,gesdot:uF,gesdoto:fF,gesdotol:dF,gesl:hF,gesles:pF,Gfr:gF,gfr:vF,gg:mF,Gg:yF,ggg:bF,gimel:wF,GJcy:xF,gjcy:SF,gla:_F,gl:kF,glE:CF,glj:TF,gnap:EF,gnapprox:AF,gne:MF,gnE:LF,gneq:NF,gneqq:$F,gnsim:OF,Gopf:PF,gopf:RF,grave:zF,GreaterEqual:DF,GreaterEqualLess:IF,GreaterFullEqual:FF,GreaterGreater:HF,GreaterLess:BF,GreaterSlantEqual:WF,GreaterTilde:qF,Gscr:UF,gscr:jF,gsim:VF,gsime:GF,gsiml:KF,gtcc:XF,gtcir:YF,gt:ZF,GT:JF,Gt:QF,gtdot:eH,gtlPar:tH,gtquest:nH,gtrapprox:rH,gtrarr:iH,gtrdot:oH,gtreqless:sH,gtreqqless:lH,gtrless:aH,gtrsim:cH,gvertneqq:uH,gvnE:fH,Hacek:dH,hairsp:hH,half:pH,hamilt:gH,HARDcy:vH,hardcy:mH,harrcir:yH,harr:bH,hArr:wH,harrw:xH,Hat:SH,hbar:_H,Hcirc:kH,hcirc:CH,hearts:TH,heartsuit:EH,hellip:AH,hercon:MH,hfr:LH,Hfr:NH,HilbertSpace:$H,hksearow:OH,hkswarow:PH,hoarr:RH,homtht:zH,hookleftarrow:DH,hookrightarrow:IH,hopf:FH,Hopf:HH,horbar:BH,HorizontalLine:WH,hscr:qH,Hscr:UH,hslash:jH,Hstrok:VH,hstrok:GH,HumpDownHump:KH,HumpEqual:XH,hybull:YH,hyphen:ZH,Iacute:JH,iacute:QH,ic:eB,Icirc:tB,icirc:nB,Icy:rB,icy:iB,Idot:oB,IEcy:sB,iecy:lB,iexcl:aB,iff:cB,ifr:uB,Ifr:fB,Igrave:dB,igrave:hB,ii:pB,iiiint:gB,iiint:vB,iinfin:mB,iiota:yB,IJlig:bB,ijlig:wB,Imacr:xB,imacr:SB,image:_B,ImaginaryI:kB,imagline:CB,imagpart:TB,imath:EB,Im:AB,imof:MB,imped:LB,Implies:NB,incare:$B,in:"∈",infin:OB,infintie:PB,inodot:RB,intcal:zB,int:DB,Int:IB,integers:FB,Integral:HB,intercal:BB,Intersection:WB,intlarhk:qB,intprod:UB,InvisibleComma:jB,InvisibleTimes:VB,IOcy:GB,iocy:KB,Iogon:XB,iogon:YB,Iopf:ZB,iopf:JB,Iota:QB,iota:e3,iprod:t3,iquest:n3,iscr:r3,Iscr:i3,isin:o3,isindot:s3,isinE:l3,isins:a3,isinsv:c3,isinv:u3,it:f3,Itilde:d3,itilde:h3,Iukcy:p3,iukcy:g3,Iuml:v3,iuml:m3,Jcirc:y3,jcirc:b3,Jcy:w3,jcy:x3,Jfr:S3,jfr:_3,jmath:k3,Jopf:C3,jopf:T3,Jscr:E3,jscr:A3,Jsercy:M3,jsercy:L3,Jukcy:N3,jukcy:$3,Kappa:O3,kappa:P3,kappav:R3,Kcedil:z3,kcedil:D3,Kcy:I3,kcy:F3,Kfr:H3,kfr:B3,kgreen:W3,KHcy:q3,khcy:U3,KJcy:j3,kjcy:V3,Kopf:G3,kopf:K3,Kscr:X3,kscr:Y3,lAarr:Z3,Lacute:J3,lacute:Q3,laemptyv:e5,lagran:t5,Lambda:n5,lambda:r5,lang:i5,Lang:o5,langd:s5,langle:l5,lap:a5,Laplacetrf:c5,laquo:u5,larrb:f5,larrbfs:d5,larr:h5,Larr:p5,lArr:g5,larrfs:v5,larrhk:m5,larrlp:y5,larrpl:b5,larrsim:w5,larrtl:x5,latail:S5,lAtail:_5,lat:k5,late:C5,lates:T5,lbarr:E5,lBarr:A5,lbbrk:M5,lbrace:L5,lbrack:N5,lbrke:$5,lbrksld:O5,lbrkslu:P5,Lcaron:R5,lcaron:z5,Lcedil:D5,lcedil:I5,lceil:F5,lcub:H5,Lcy:B5,lcy:W5,ldca:q5,ldquo:U5,ldquor:j5,ldrdhar:V5,ldrushar:G5,ldsh:K5,le:X5,lE:Y5,LeftAngleBracket:Z5,LeftArrowBar:J5,leftarrow:Q5,LeftArrow:e8,Leftarrow:t8,LeftArrowRightArrow:n8,leftarrowtail:r8,LeftCeiling:i8,LeftDoubleBracket:o8,LeftDownTeeVector:s8,LeftDownVectorBar:l8,LeftDownVector:a8,LeftFloor:c8,leftharpoondown:u8,leftharpoonup:f8,leftleftarrows:d8,leftrightarrow:h8,LeftRightArrow:p8,Leftrightarrow:g8,leftrightarrows:v8,leftrightharpoons:m8,leftrightsquigarrow:y8,LeftRightVector:b8,LeftTeeArrow:w8,LeftTee:x8,LeftTeeVector:S8,leftthreetimes:_8,LeftTriangleBar:k8,LeftTriangle:C8,LeftTriangleEqual:T8,LeftUpDownVector:E8,LeftUpTeeVector:A8,LeftUpVectorBar:M8,LeftUpVector:L8,LeftVectorBar:N8,LeftVector:$8,lEg:O8,leg:P8,leq:R8,leqq:z8,leqslant:D8,lescc:I8,les:F8,lesdot:H8,lesdoto:B8,lesdotor:W8,lesg:q8,lesges:U8,lessapprox:j8,lessdot:V8,lesseqgtr:G8,lesseqqgtr:K8,LessEqualGreater:X8,LessFullEqual:Y8,LessGreater:Z8,lessgtr:J8,LessLess:Q8,lesssim:eW,LessSlantEqual:tW,LessTilde:nW,lfisht:rW,lfloor:iW,Lfr:oW,lfr:sW,lg:lW,lgE:aW,lHar:cW,lhard:uW,lharu:fW,lharul:dW,lhblk:hW,LJcy:pW,ljcy:gW,llarr:vW,ll:mW,Ll:yW,llcorner:bW,Lleftarrow:wW,llhard:xW,lltri:SW,Lmidot:_W,lmidot:kW,lmoustache:CW,lmoust:TW,lnap:EW,lnapprox:AW,lne:MW,lnE:LW,lneq:NW,lneqq:$W,lnsim:OW,loang:PW,loarr:RW,lobrk:zW,longleftarrow:DW,LongLeftArrow:IW,Longleftarrow:FW,longleftrightarrow:HW,LongLeftRightArrow:BW,Longleftrightarrow:WW,longmapsto:qW,longrightarrow:UW,LongRightArrow:jW,Longrightarrow:VW,looparrowleft:GW,looparrowright:KW,lopar:XW,Lopf:YW,lopf:ZW,loplus:JW,lotimes:QW,lowast:e4,lowbar:t4,LowerLeftArrow:n4,LowerRightArrow:r4,loz:i4,lozenge:o4,lozf:s4,lpar:l4,lparlt:a4,lrarr:c4,lrcorner:u4,lrhar:f4,lrhard:d4,lrm:h4,lrtri:p4,lsaquo:g4,lscr:v4,Lscr:m4,lsh:y4,Lsh:b4,lsim:w4,lsime:x4,lsimg:S4,lsqb:_4,lsquo:k4,lsquor:C4,Lstrok:T4,lstrok:E4,ltcc:A4,ltcir:M4,lt:L4,LT:N4,Lt:$4,ltdot:O4,lthree:P4,ltimes:R4,ltlarr:z4,ltquest:D4,ltri:I4,ltrie:F4,ltrif:H4,ltrPar:B4,lurdshar:W4,luruhar:q4,lvertneqq:U4,lvnE:j4,macr:V4,male:G4,malt:K4,maltese:X4,Map:"⤅",map:Y4,mapsto:Z4,mapstodown:J4,mapstoleft:Q4,mapstoup:eq,marker:tq,mcomma:nq,Mcy:rq,mcy:iq,mdash:oq,mDDot:sq,measuredangle:lq,MediumSpace:aq,Mellintrf:cq,Mfr:uq,mfr:fq,mho:dq,micro:hq,midast:pq,midcir:gq,mid:vq,middot:mq,minusb:yq,minus:bq,minusd:wq,minusdu:xq,MinusPlus:Sq,mlcp:_q,mldr:kq,mnplus:Cq,models:Tq,Mopf:Eq,mopf:Aq,mp:Mq,mscr:Lq,Mscr:Nq,mstpos:$q,Mu:Oq,mu:Pq,multimap:Rq,mumap:zq,nabla:Dq,Nacute:Iq,nacute:Fq,nang:Hq,nap:Bq,napE:Wq,napid:qq,napos:Uq,napprox:jq,natural:Vq,naturals:Gq,natur:Kq,nbsp:Xq,nbump:Yq,nbumpe:Zq,ncap:Jq,Ncaron:Qq,ncaron:e6,Ncedil:t6,ncedil:n6,ncong:r6,ncongdot:i6,ncup:o6,Ncy:s6,ncy:l6,ndash:a6,nearhk:c6,nearr:u6,neArr:f6,nearrow:d6,ne:h6,nedot:p6,NegativeMediumSpace:g6,NegativeThickSpace:v6,NegativeThinSpace:m6,NegativeVeryThinSpace:y6,nequiv:b6,nesear:w6,nesim:x6,NestedGreaterGreater:S6,NestedLessLess:_6,NewLine:k6,nexist:C6,nexists:T6,Nfr:E6,nfr:A6,ngE:M6,nge:L6,ngeq:N6,ngeqq:$6,ngeqslant:O6,nges:P6,nGg:R6,ngsim:z6,nGt:D6,ngt:I6,ngtr:F6,nGtv:H6,nharr:B6,nhArr:W6,nhpar:q6,ni:U6,nis:j6,nisd:V6,niv:G6,NJcy:K6,njcy:X6,nlarr:Y6,nlArr:Z6,nldr:J6,nlE:Q6,nle:eU,nleftarrow:tU,nLeftarrow:nU,nleftrightarrow:rU,nLeftrightarrow:iU,nleq:oU,nleqq:sU,nleqslant:lU,nles:aU,nless:cU,nLl:uU,nlsim:fU,nLt:dU,nlt:hU,nltri:pU,nltrie:gU,nLtv:vU,nmid:mU,NoBreak:yU,NonBreakingSpace:bU,nopf:wU,Nopf:xU,Not:SU,not:_U,NotCongruent:kU,NotCupCap:CU,NotDoubleVerticalBar:TU,NotElement:EU,NotEqual:AU,NotEqualTilde:MU,NotExists:LU,NotGreater:NU,NotGreaterEqual:$U,NotGreaterFullEqual:OU,NotGreaterGreater:PU,NotGreaterLess:RU,NotGreaterSlantEqual:zU,NotGreaterTilde:DU,NotHumpDownHump:IU,NotHumpEqual:FU,notin:HU,notindot:BU,notinE:WU,notinva:qU,notinvb:UU,notinvc:jU,NotLeftTriangleBar:VU,NotLeftTriangle:GU,NotLeftTriangleEqual:KU,NotLess:XU,NotLessEqual:YU,NotLessGreater:ZU,NotLessLess:JU,NotLessSlantEqual:QU,NotLessTilde:ej,NotNestedGreaterGreater:tj,NotNestedLessLess:nj,notni:rj,notniva:ij,notnivb:oj,notnivc:sj,NotPrecedes:lj,NotPrecedesEqual:aj,NotPrecedesSlantEqual:cj,NotReverseElement:uj,NotRightTriangleBar:fj,NotRightTriangle:dj,NotRightTriangleEqual:hj,NotSquareSubset:pj,NotSquareSubsetEqual:gj,NotSquareSuperset:vj,NotSquareSupersetEqual:mj,NotSubset:yj,NotSubsetEqual:bj,NotSucceeds:wj,NotSucceedsEqual:xj,NotSucceedsSlantEqual:Sj,NotSucceedsTilde:_j,NotSuperset:kj,NotSupersetEqual:Cj,NotTilde:Tj,NotTildeEqual:Ej,NotTildeFullEqual:Aj,NotTildeTilde:Mj,NotVerticalBar:Lj,nparallel:Nj,npar:$j,nparsl:Oj,npart:Pj,npolint:Rj,npr:zj,nprcue:Dj,nprec:Ij,npreceq:Fj,npre:Hj,nrarrc:Bj,nrarr:Wj,nrArr:qj,nrarrw:Uj,nrightarrow:jj,nRightarrow:Vj,nrtri:Gj,nrtrie:Kj,nsc:Xj,nsccue:Yj,nsce:Zj,Nscr:Jj,nscr:Qj,nshortmid:eV,nshortparallel:tV,nsim:nV,nsime:rV,nsimeq:iV,nsmid:oV,nspar:sV,nsqsube:lV,nsqsupe:aV,nsub:cV,nsubE:uV,nsube:fV,nsubset:dV,nsubseteq:hV,nsubseteqq:pV,nsucc:gV,nsucceq:vV,nsup:mV,nsupE:yV,nsupe:bV,nsupset:wV,nsupseteq:xV,nsupseteqq:SV,ntgl:_V,Ntilde:kV,ntilde:CV,ntlg:TV,ntriangleleft:EV,ntrianglelefteq:AV,ntriangleright:MV,ntrianglerighteq:LV,Nu:NV,nu:$V,num:OV,numero:PV,numsp:RV,nvap:zV,nvdash:DV,nvDash:IV,nVdash:FV,nVDash:HV,nvge:BV,nvgt:WV,nvHarr:qV,nvinfin:UV,nvlArr:jV,nvle:VV,nvlt:GV,nvltrie:KV,nvrArr:XV,nvrtrie:YV,nvsim:ZV,nwarhk:JV,nwarr:QV,nwArr:e9,nwarrow:t9,nwnear:n9,Oacute:r9,oacute:i9,oast:o9,Ocirc:s9,ocirc:l9,ocir:a9,Ocy:c9,ocy:u9,odash:f9,Odblac:d9,odblac:h9,odiv:p9,odot:g9,odsold:v9,OElig:m9,oelig:y9,ofcir:b9,Ofr:w9,ofr:x9,ogon:S9,Ograve:_9,ograve:k9,ogt:C9,ohbar:T9,ohm:E9,oint:A9,olarr:M9,olcir:L9,olcross:N9,oline:$9,olt:O9,Omacr:P9,omacr:R9,Omega:z9,omega:D9,Omicron:I9,omicron:F9,omid:H9,ominus:B9,Oopf:W9,oopf:q9,opar:U9,OpenCurlyDoubleQuote:j9,OpenCurlyQuote:V9,operp:G9,oplus:K9,orarr:X9,Or:Y9,or:Z9,ord:J9,order:Q9,orderof:eG,ordf:tG,ordm:nG,origof:rG,oror:iG,orslope:oG,orv:sG,oS:lG,Oscr:aG,oscr:cG,Oslash:uG,oslash:fG,osol:dG,Otilde:hG,otilde:pG,otimesas:gG,Otimes:vG,otimes:mG,Ouml:yG,ouml:bG,ovbar:wG,OverBar:xG,OverBrace:SG,OverBracket:_G,OverParenthesis:kG,para:CG,parallel:TG,par:EG,parsim:AG,parsl:MG,part:LG,PartialD:NG,Pcy:$G,pcy:OG,percnt:PG,period:RG,permil:zG,perp:DG,pertenk:IG,Pfr:FG,pfr:HG,Phi:BG,phi:WG,phiv:qG,phmmat:UG,phone:jG,Pi:VG,pi:GG,pitchfork:KG,piv:XG,planck:YG,planckh:ZG,plankv:JG,plusacir:QG,plusb:e7,pluscir:t7,plus:n7,plusdo:r7,plusdu:i7,pluse:o7,PlusMinus:s7,plusmn:l7,plussim:a7,plustwo:c7,pm:u7,Poincareplane:f7,pointint:d7,popf:h7,Popf:p7,pound:g7,prap:v7,Pr:m7,pr:y7,prcue:b7,precapprox:w7,prec:x7,preccurlyeq:S7,Precedes:_7,PrecedesEqual:k7,PrecedesSlantEqual:C7,PrecedesTilde:T7,preceq:E7,precnapprox:A7,precneqq:M7,precnsim:L7,pre:N7,prE:$7,precsim:O7,prime:P7,Prime:R7,primes:z7,prnap:D7,prnE:I7,prnsim:F7,prod:H7,Product:B7,profalar:W7,profline:q7,profsurf:U7,prop:j7,Proportional:V7,Proportion:G7,propto:K7,prsim:X7,prurel:Y7,Pscr:Z7,pscr:J7,Psi:Q7,psi:eK,puncsp:tK,Qfr:nK,qfr:rK,qint:iK,qopf:oK,Qopf:sK,qprime:lK,Qscr:aK,qscr:cK,quaternions:uK,quatint:fK,quest:dK,questeq:hK,quot:pK,QUOT:gK,rAarr:vK,race:mK,Racute:yK,racute:bK,radic:wK,raemptyv:xK,rang:SK,Rang:_K,rangd:kK,range:CK,rangle:TK,raquo:EK,rarrap:AK,rarrb:MK,rarrbfs:LK,rarrc:NK,rarr:$K,Rarr:OK,rArr:PK,rarrfs:RK,rarrhk:zK,rarrlp:DK,rarrpl:IK,rarrsim:FK,Rarrtl:HK,rarrtl:BK,rarrw:WK,ratail:qK,rAtail:UK,ratio:jK,rationals:VK,rbarr:GK,rBarr:KK,RBarr:XK,rbbrk:YK,rbrace:ZK,rbrack:JK,rbrke:QK,rbrksld:eX,rbrkslu:tX,Rcaron:nX,rcaron:rX,Rcedil:iX,rcedil:oX,rceil:sX,rcub:lX,Rcy:aX,rcy:cX,rdca:uX,rdldhar:fX,rdquo:dX,rdquor:hX,rdsh:pX,real:gX,realine:vX,realpart:mX,reals:yX,Re:bX,rect:wX,reg:xX,REG:SX,ReverseElement:_X,ReverseEquilibrium:kX,ReverseUpEquilibrium:CX,rfisht:TX,rfloor:EX,rfr:AX,Rfr:MX,rHar:LX,rhard:NX,rharu:$X,rharul:OX,Rho:PX,rho:RX,rhov:zX,RightAngleBracket:DX,RightArrowBar:IX,rightarrow:FX,RightArrow:HX,Rightarrow:BX,RightArrowLeftArrow:WX,rightarrowtail:qX,RightCeiling:UX,RightDoubleBracket:jX,RightDownTeeVector:VX,RightDownVectorBar:GX,RightDownVector:KX,RightFloor:XX,rightharpoondown:YX,rightharpoonup:ZX,rightleftarrows:JX,rightleftharpoons:QX,rightrightarrows:eY,rightsquigarrow:tY,RightTeeArrow:nY,RightTee:rY,RightTeeVector:iY,rightthreetimes:oY,RightTriangleBar:sY,RightTriangle:lY,RightTriangleEqual:aY,RightUpDownVector:cY,RightUpTeeVector:uY,RightUpVectorBar:fY,RightUpVector:dY,RightVectorBar:hY,RightVector:pY,ring:gY,risingdotseq:vY,rlarr:mY,rlhar:yY,rlm:bY,rmoustache:wY,rmoust:xY,rnmid:SY,roang:_Y,roarr:kY,robrk:CY,ropar:TY,ropf:EY,Ropf:AY,roplus:MY,rotimes:LY,RoundImplies:NY,rpar:$Y,rpargt:OY,rppolint:PY,rrarr:RY,Rrightarrow:zY,rsaquo:DY,rscr:IY,Rscr:FY,rsh:HY,Rsh:BY,rsqb:WY,rsquo:qY,rsquor:UY,rthree:jY,rtimes:VY,rtri:GY,rtrie:KY,rtrif:XY,rtriltri:YY,RuleDelayed:ZY,ruluhar:JY,rx:QY,Sacute:eZ,sacute:tZ,sbquo:nZ,scap:rZ,Scaron:iZ,scaron:oZ,Sc:sZ,sc:lZ,sccue:aZ,sce:cZ,scE:uZ,Scedil:fZ,scedil:dZ,Scirc:hZ,scirc:pZ,scnap:gZ,scnE:vZ,scnsim:mZ,scpolint:yZ,scsim:bZ,Scy:wZ,scy:xZ,sdotb:SZ,sdot:_Z,sdote:kZ,searhk:CZ,searr:TZ,seArr:EZ,searrow:AZ,sect:MZ,semi:LZ,seswar:NZ,setminus:$Z,setmn:OZ,sext:PZ,Sfr:RZ,sfr:zZ,sfrown:DZ,sharp:IZ,SHCHcy:FZ,shchcy:HZ,SHcy:BZ,shcy:WZ,ShortDownArrow:qZ,ShortLeftArrow:UZ,shortmid:jZ,shortparallel:VZ,ShortRightArrow:GZ,ShortUpArrow:KZ,shy:XZ,Sigma:YZ,sigma:ZZ,sigmaf:JZ,sigmav:QZ,sim:eJ,simdot:tJ,sime:nJ,simeq:rJ,simg:iJ,simgE:oJ,siml:sJ,simlE:lJ,simne:aJ,simplus:cJ,simrarr:uJ,slarr:fJ,SmallCircle:dJ,smallsetminus:hJ,smashp:pJ,smeparsl:gJ,smid:vJ,smile:mJ,smt:yJ,smte:bJ,smtes:wJ,SOFTcy:xJ,softcy:SJ,solbar:_J,solb:kJ,sol:CJ,Sopf:TJ,sopf:EJ,spades:AJ,spadesuit:MJ,spar:LJ,sqcap:NJ,sqcaps:$J,sqcup:OJ,sqcups:PJ,Sqrt:RJ,sqsub:zJ,sqsube:DJ,sqsubset:IJ,sqsubseteq:FJ,sqsup:HJ,sqsupe:BJ,sqsupset:WJ,sqsupseteq:qJ,square:UJ,Square:jJ,SquareIntersection:VJ,SquareSubset:GJ,SquareSubsetEqual:KJ,SquareSuperset:XJ,SquareSupersetEqual:YJ,SquareUnion:ZJ,squarf:JJ,squ:QJ,squf:eQ,srarr:tQ,Sscr:nQ,sscr:rQ,ssetmn:iQ,ssmile:oQ,sstarf:sQ,Star:lQ,star:aQ,starf:cQ,straightepsilon:uQ,straightphi:fQ,strns:dQ,sub:hQ,Sub:pQ,subdot:gQ,subE:vQ,sube:mQ,subedot:yQ,submult:bQ,subnE:wQ,subne:xQ,subplus:SQ,subrarr:_Q,subset:kQ,Subset:CQ,subseteq:TQ,subseteqq:EQ,SubsetEqual:AQ,subsetneq:MQ,subsetneqq:LQ,subsim:NQ,subsub:$Q,subsup:OQ,succapprox:PQ,succ:RQ,succcurlyeq:zQ,Succeeds:DQ,SucceedsEqual:IQ,SucceedsSlantEqual:FQ,SucceedsTilde:HQ,succeq:BQ,succnapprox:WQ,succneqq:qQ,succnsim:UQ,succsim:jQ,SuchThat:VQ,sum:GQ,Sum:KQ,sung:XQ,sup1:YQ,sup2:ZQ,sup3:JQ,sup:QQ,Sup:eee,supdot:tee,supdsub:nee,supE:ree,supe:iee,supedot:oee,Superset:see,SupersetEqual:lee,suphsol:aee,suphsub:cee,suplarr:uee,supmult:fee,supnE:dee,supne:hee,supplus:pee,supset:gee,Supset:vee,supseteq:mee,supseteqq:yee,supsetneq:bee,supsetneqq:wee,supsim:xee,supsub:See,supsup:_ee,swarhk:kee,swarr:Cee,swArr:Tee,swarrow:Eee,swnwar:Aee,szlig:Mee,Tab:Lee,target:Nee,Tau:$ee,tau:Oee,tbrk:Pee,Tcaron:Ree,tcaron:zee,Tcedil:Dee,tcedil:Iee,Tcy:Fee,tcy:Hee,tdot:Bee,telrec:Wee,Tfr:qee,tfr:Uee,there4:jee,therefore:Vee,Therefore:Gee,Theta:Kee,theta:Xee,thetasym:Yee,thetav:Zee,thickapprox:Jee,thicksim:Qee,ThickSpace:ete,ThinSpace:tte,thinsp:nte,thkap:rte,thksim:ite,THORN:ote,thorn:ste,tilde:lte,Tilde:ate,TildeEqual:cte,TildeFullEqual:ute,TildeTilde:fte,timesbar:dte,timesb:hte,times:pte,timesd:gte,tint:vte,toea:mte,topbot:yte,topcir:bte,top:wte,Topf:xte,topf:Ste,topfork:_te,tosa:kte,tprime:Cte,trade:Tte,TRADE:Ete,triangle:Ate,triangledown:Mte,triangleleft:Lte,trianglelefteq:Nte,triangleq:$te,triangleright:Ote,trianglerighteq:Pte,tridot:Rte,trie:zte,triminus:Dte,TripleDot:Ite,triplus:Fte,trisb:Hte,tritime:Bte,trpezium:Wte,Tscr:qte,tscr:Ute,TScy:jte,tscy:Vte,TSHcy:Gte,tshcy:Kte,Tstrok:Xte,tstrok:Yte,twixt:Zte,twoheadleftarrow:Jte,twoheadrightarrow:Qte,Uacute:ene,uacute:tne,uarr:nne,Uarr:rne,uArr:ine,Uarrocir:one,Ubrcy:sne,ubrcy:lne,Ubreve:ane,ubreve:cne,Ucirc:une,ucirc:fne,Ucy:dne,ucy:hne,udarr:pne,Udblac:gne,udblac:vne,udhar:mne,ufisht:yne,Ufr:bne,ufr:wne,Ugrave:xne,ugrave:Sne,uHar:_ne,uharl:kne,uharr:Cne,uhblk:Tne,ulcorn:Ene,ulcorner:Ane,ulcrop:Mne,ultri:Lne,Umacr:Nne,umacr:$ne,uml:One,UnderBar:Pne,UnderBrace:Rne,UnderBracket:zne,UnderParenthesis:Dne,Union:Ine,UnionPlus:Fne,Uogon:Hne,uogon:Bne,Uopf:Wne,uopf:qne,UpArrowBar:Une,uparrow:jne,UpArrow:Vne,Uparrow:Gne,UpArrowDownArrow:Kne,updownarrow:Xne,UpDownArrow:Yne,Updownarrow:Zne,UpEquilibrium:Jne,upharpoonleft:Qne,upharpoonright:ere,uplus:tre,UpperLeftArrow:nre,UpperRightArrow:rre,upsi:ire,Upsi:ore,upsih:sre,Upsilon:lre,upsilon:are,UpTeeArrow:cre,UpTee:ure,upuparrows:fre,urcorn:dre,urcorner:hre,urcrop:pre,Uring:gre,uring:vre,urtri:mre,Uscr:yre,uscr:bre,utdot:wre,Utilde:xre,utilde:Sre,utri:_re,utrif:kre,uuarr:Cre,Uuml:Tre,uuml:Ere,uwangle:Are,vangrt:Mre,varepsilon:Lre,varkappa:Nre,varnothing:$re,varphi:Ore,varpi:Pre,varpropto:Rre,varr:zre,vArr:Dre,varrho:Ire,varsigma:Fre,varsubsetneq:Hre,varsubsetneqq:Bre,varsupsetneq:Wre,varsupsetneqq:qre,vartheta:Ure,vartriangleleft:jre,vartriangleright:Vre,vBar:Gre,Vbar:Kre,vBarv:Xre,Vcy:Yre,vcy:Zre,vdash:Jre,vDash:Qre,Vdash:eie,VDash:tie,Vdashl:nie,veebar:rie,vee:iie,Vee:oie,veeeq:sie,vellip:lie,verbar:aie,Verbar:cie,vert:uie,Vert:fie,VerticalBar:die,VerticalLine:hie,VerticalSeparator:pie,VerticalTilde:gie,VeryThinSpace:vie,Vfr:mie,vfr:yie,vltri:bie,vnsub:wie,vnsup:xie,Vopf:Sie,vopf:_ie,vprop:kie,vrtri:Cie,Vscr:Tie,vscr:Eie,vsubnE:Aie,vsubne:Mie,vsupnE:Lie,vsupne:Nie,Vvdash:$ie,vzigzag:Oie,Wcirc:Pie,wcirc:Rie,wedbar:zie,wedge:Die,Wedge:Iie,wedgeq:Fie,weierp:Hie,Wfr:Bie,wfr:Wie,Wopf:qie,wopf:Uie,wp:jie,wr:Vie,wreath:Gie,Wscr:Kie,wscr:Xie,xcap:Yie,xcirc:Zie,xcup:Jie,xdtri:Qie,Xfr:eoe,xfr:toe,xharr:noe,xhArr:roe,Xi:ioe,xi:ooe,xlarr:soe,xlArr:loe,xmap:aoe,xnis:coe,xodot:uoe,Xopf:foe,xopf:doe,xoplus:hoe,xotime:poe,xrarr:goe,xrArr:voe,Xscr:moe,xscr:yoe,xsqcup:boe,xuplus:woe,xutri:xoe,xvee:Soe,xwedge:_oe,Yacute:koe,yacute:Coe,YAcy:Toe,yacy:Eoe,Ycirc:Aoe,ycirc:Moe,Ycy:Loe,ycy:Noe,yen:$oe,Yfr:Ooe,yfr:Poe,YIcy:Roe,yicy:zoe,Yopf:Doe,yopf:Ioe,Yscr:Foe,yscr:Hoe,YUcy:Boe,yucy:Woe,yuml:qoe,Yuml:Uoe,Zacute:joe,zacute:Voe,Zcaron:Goe,zcaron:Koe,Zcy:Xoe,zcy:Yoe,Zdot:Zoe,zdot:Joe,zeetrf:Qoe,ZeroWidthSpace:ese,Zeta:tse,zeta:nse,zfr:rse,Zfr:ise,ZHcy:ose,zhcy:sse,zigrarr:lse,zopf:ase,Zopf:cse,Zscr:use,zscr:fse,zwj:dse,zwnj:hse},pse="Á",gse="á",vse="Â",mse="â",yse="´",bse="Æ",wse="æ",xse="À",Sse="à",_se="&",kse="&",Cse="Å",Tse="å",Ese="Ã",Ase="ã",Mse="Ä",Lse="ä",Nse="¦",$se="Ç",Ose="ç",Pse="¸",Rse="¢",zse="©",Dse="©",Ise="¤",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="ñ",Sle="Ó",_le="ó",kle="Ô",Cle="ô",Tle="Ò",Ele="ò",Ale="ª",Mle="º",Lle="Ø",Nle="ø",$le="Õ",Ole="õ",Ple="Ö",Rle="ö",zle="¶",Dle="±",Ile="£",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={Aacute:pse,aacute:gse,Acirc:vse,acirc:mse,acute:yse,AElig:bse,aelig:wse,Agrave:xse,agrave:Sse,amp:_se,AMP:kse,Aring:Cse,aring:Tse,Atilde:Ese,atilde:Ase,Auml:Mse,auml:Lse,brvbar:Nse,Ccedil:$se,ccedil:Ose,cedil:Pse,cent:Rse,copy:zse,COPY:Dse,curren:Ise,deg:Fse,divide:Hse,Eacute:Bse,eacute:Wse,Ecirc:qse,ecirc:Use,Egrave:jse,egrave:Vse,ETH:Gse,eth:Kse,Euml:Xse,euml:Yse,frac12:Zse,frac14:Jse,frac34:Qse,gt:ele,GT:tle,Iacute:nle,iacute:rle,Icirc:ile,icirc:ole,iexcl:sle,Igrave:lle,igrave:ale,iquest:cle,Iuml:ule,iuml:fle,laquo:dle,lt:hle,LT:ple,macr:gle,micro:vle,middot:mle,nbsp:yle,not:ble,Ntilde:wle,ntilde:xle,Oacute:Sle,oacute:_le,Ocirc:kle,ocirc:Cle,Ograve:Tle,ograve:Ele,ordf:Ale,ordm:Mle,Oslash:Lle,oslash:Nle,Otilde:$le,otilde:Ole,Ouml:Ple,ouml:Rle,para:zle,plusmn:Dle,pound:Ile,quot:Fle,QUOT:Hle,raquo:Ble,reg:Wle,REG:qle,sect:Ule,shy:jle,sup1:Vle,sup2:Gle,sup3:Kle,szlig:Xle,THORN:Yle,thorn:Zle,times:Jle,Uacute:Qle,uacute:eae,Ucirc:tae,ucirc:nae,Ugrave:rae,ugrave:iae,uml:oae,Uuml:sae,uuml:lae,Yacute:aae,yacute:cae,yen:uae,yuml:fae},hae="&",pae="'",gae=">",vae="<",mae='"',xw={amp:hae,apos:pae,gt:gae,lt:vae,quot:mae};var ds={};const yae={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 Lm;function bae(){if(Lm)return ds;Lm=1;var e=ds&&ds.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ds,"__esModule",{value:!0});var t=e(yae),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 ds.default=o,ds}var Nm;function $m(){if(Nm)return yr;Nm=1;var e=yr&&yr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(yr,"__esModule",{value:!0}),yr.decodeHTML=yr.decodeHTMLStrict=yr.decodeXML=void 0;var t=e(ww),r=e(dae),o=e(xw),s=e(bae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;yr.decodeXML=f(o.default),yr.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};yr.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(L){return L.substr(-1)!==";"&&(L+=";"),E(L)}return function(L){return String(L).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 yr}var Cn={},Om;function Pm(){if(Om)return Cn;Om=1;var e=Cn&&Cn.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.escapeUTF8=Cn.escape=Cn.encodeNonAsciiHTML=Cn.encodeHTML=Cn.encodeXML=void 0;var t=e(xw),r=d(t.default),o=h(r);Cn.encodeXML=L(r);var s=e(ww),c=d(s.default),f=h(c);Cn.encodeHTML=b(c,f),Cn.encodeNonAsciiHTML=L(c);function d(M){return Object.keys(M).sort().reduce(function(T,P){return T[M[P]]="&"+P+";",T},{})}function h(M){for(var T=[],P=[],A=0,B=Object.keys(M);A<B.length;A++){var G=B[A];G.length===1?T.push("\\"+G):P.push(G)}T.sort();for(var U=0;U<T.length-1;U++){for(var Q=U;Q<T.length-1&&T[Q].charCodeAt(1)+1===T[Q+1].charCodeAt(1);)Q+=1;var J=1+Q-U;J<3||T.splice(U,J,T[U]+"-"+T[Q])}return P.unshift("["+T.join("")+"]"),new RegExp(P.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(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function m(M){return"&#x"+(M.length>1?v(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,T){return function(P){return P.replace(T,function(A){return M[A]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(M){return M.replace(w,m)}Cn.escape=E;function N(M){return M.replace(o,m)}Cn.escapeUTF8=N;function L(M){return function(T){return T.replace(w,function(P){return M[P]||m(P)})}}return Cn}var Rm;function wae(){return Rm||(Rm=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=$m(),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=$m();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}})}(td)),td}var nd,zm;function xae(){if(zm)return nd;zm=1;function e(R,$){if(!(R instanceof $))throw new TypeError("Cannot call a class as a function")}function t(R,$){for(var O=0;O<$.length;O++){var _=$[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(R,_.key,_)}}function r(R,$,O){return $&&t(R.prototype,$),R}function o(R,$){var O=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!O){if(Array.isArray(R)||(O=s(R))||$){O&&(R=O);var _=0,D=function(){};return{s:D,n:function(){return _>=R.length?{done:!0}:{done:!1,value:R[_++]}},e:function(Re){throw Re},f:D}}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,re=!1,pe;return{s:function(){O=O.call(R)},n:function(){var Re=O.next();return j=Re.done,Re},e:function(Re){re=!0,pe=Re},f:function(){try{!j&&O.return!=null&&O.return()}finally{if(re)throw pe}}}}function s(R,$){if(R){if(typeof R=="string")return c(R,$);var O=Object.prototype.toString.call(R).slice(8,-1);if(O==="Object"&&R.constructor&&(O=R.constructor.name),O==="Map"||O==="Set")return Array.from(R);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c(R,$)}}function c(R,$){($==null||$>R.length)&&($=R.length);for(var O=0,_=new Array($);O<$;O++)_[O]=R[O];return _}var f=wae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var R={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 L(0,5).forEach(function($){L(0,5).forEach(function(O){L(0,5).forEach(function(_){return p($,O,_,R)})})}),L(0,23).forEach(function($){var O=$+232,_=v($*10+8);R[O]="#"+_+_+_}),R}function p(R,$,O,_){var D=16+R*36+$*6+O,j=R>0?R*40+55:0,re=$>0?$*40+55:0,pe=O>0?O*40+55:0;_[D]=m([j,re,pe])}function v(R){for(var $=R.toString(16);$.length<2;)$="0"+$;return $}function m(R){var $=[],O=o(R),_;try{for(O.s();!(_=O.n()).done;){var D=_.value;$.push(v(D))}}catch(j){O.e(j)}finally{O.f()}return"#"+$.join("")}function b(R,$,O,_){var D;return $==="text"?D=P(O,_):$==="display"?D=E(R,O,_):$==="xterm256Foreground"?D=G(R,_.colors[O]):$==="xterm256Background"?D=U(R,_.colors[O]):$==="rgb"&&(D=w(R,O)),D}function w(R,$){$=$.substring(2).slice(0,-1);var O=+$.substr(0,2),_=$.substring(5).split(";"),D=_.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return B(R,(O===38?"color:#":"background-color:#")+D)}function E(R,$,O){$=parseInt($,10);var _={"-1":function(){return"<br/>"},0:function(){return R.length&&N(R)},1:function(){return A(R,"b")},3:function(){return A(R,"i")},4:function(){return A(R,"u")},8:function(){return B(R,"display:none")},9:function(){return A(R,"strike")},22:function(){return B(R,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Q(R,"i")},24:function(){return Q(R,"u")},39:function(){return G(R,O.fg)},49:function(){return U(R,O.bg)},53:function(){return B(R,"text-decoration:overline")}},D;return _[$]?D=_[$]():4<$&&$<7?D=A(R,"blink"):29<$&&$<38?D=G(R,O.colors[$-30]):39<$&&$<48?D=U(R,O.colors[$-40]):89<$&&$<98?D=G(R,O.colors[8+($-90)]):99<$&&$<108&&(D=U(R,O.colors[8+($-100)])),D}function N(R){var $=R.slice(0);return R.length=0,$.reverse().map(function(O){return"</"+O+">"}).join("")}function L(R,$){for(var O=[],_=R;_<=$;_++)O.push(_);return O}function M(R){return function($){return(R===null||$.category!==R)&&R!=="all"}}function T(R){R=parseInt(R,10);var $=null;return R===0?$="all":R===1?$="bold":2<R&&R<5?$="underline":4<R&&R<7?$="blink":R===8?$="hide":R===9?$="strike":29<R&&R<38||R===39||89<R&&R<98?$="foreground-color":(39<R&&R<48||R===49||99<R&&R<108)&&($="background-color"),$}function P(R,$){return $.escapeXML?f.encodeXML(R):R}function A(R,$,O){return O||(O=""),R.push($),"<".concat($).concat(O?' style="'.concat(O,'"'):"",">")}function B(R,$){return A(R,"span",$)}function G(R,$){return A(R,"span","color:"+$)}function U(R,$){return A(R,"span","background-color:"+$)}function Q(R,$){var O;if(R.slice(-1)[0]===$&&(O=R.pop()),O)return"</"+$+">"}function J(R,$,O){var _=!1,D=3;function j(){return""}function re(q,K){return O("xterm256Foreground",K),""}function pe(q,K){return O("xterm256Background",K),""}function be(q){return $.newline?O("display",-1):O("text",q),""}function Re(q,K){_=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var le=o(K),ce;try{for(le.s();!(ce=le.n()).done;){var ue=ce.value;O("display",ue)}}catch(Se){le.e(Se)}finally{le.f()}return""}function qe(q){return O("text",q),""}function et(q){return O("rgb",q),""}var Ye=[{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:et},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:pe},{pattern:/^\n/,sub:be},{pattern:/^\r+\n/,sub:be},{pattern:/^\r/,sub:be},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Re},{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(q,K){K>D&&_||(_=!1,R=R.replace(q.pattern,q.sub))}var Ae=[],Z=R,ae=Z.length;e:for(;ae>0;){for(var de=0,Ne=0,Me=Ye.length;Ne<Me;de=++Ne){var I=Ye[de];if(Xe(I,de),R.length!==ae){ae=R.length;continue e}}if(R.length===ae)break;Ae.push(0),ae=R.length}return Ae}function Y(R,$,O){return $!=="text"&&(R=R.filter(M(T(O))),R.push({token:$,data:O,category:T(O)})),R}var ee=function(){function R($){e(this,R),$=$||{},$.colors&&($.colors=Object.assign({},d.colors,$.colors)),this.options=Object.assign({},d,$),this.stack=[],this.stickyStack=[]}return r(R,[{key:"toHtml",value:function(O){var _=this;O=typeof O=="string"?[O]:O;var D=this.stack,j=this.options,re=[];return this.stickyStack.forEach(function(pe){var be=b(D,pe.token,pe.data,j);be&&re.push(be)}),J(O.join(""),j,function(pe,be){var Re=b(D,pe,be,j);Re&&re.push(Re),j.stream&&(_.stickyStack=Y(_.stickyStack,pe,be))}),D.length&&re.push(N(D)),re.join("")}}]),R}();return nd=ee,nd}var Sae=xae();const _ae=bw(Sae);function kae(e,t){return t&&e.endsWith(t)}async function Sw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Uh(e){return new _ae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Cae(e){return e===null||typeof e!="function"&&typeof e!="object"}function _w(e){let t=e;if(Cae(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=KA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Qn=Uint8Array,ys=Uint16Array,Tae=Int32Array,kw=new Qn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Cw=new Qn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Eae=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tw=function(e,t){for(var r=new ys(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Tae(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}},Ew=Tw(kw,2),Aw=Ew.b,Aae=Ew.r;Aw[28]=258,Aae[258]=28;var Mae=Tw(Cw,0),Lae=Mae.b,Ud=new ys(32768);for(var Tt=0;Tt<32768;++Tt){var Ri=(Tt&43690)>>1|(Tt&21845)<<1;Ri=(Ri&52428)>>2|(Ri&13107)<<2,Ri=(Ri&61680)>>4|(Ri&3855)<<4,Ud[Tt]=((Ri&65280)>>8|(Ri&255)<<8)>>1}var Il=function(e,t,r){for(var o=e.length,s=0,c=new ys(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ys(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ys(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[Ud[m]>>h]=p}else for(d=new ys(o),s=0;s<o;++s)e[s]&&(d[s]=Ud[f[e[s]-1]++]>>15-e[s]);return d},Sa=new Qn(288);for(var Tt=0;Tt<144;++Tt)Sa[Tt]=8;for(var Tt=144;Tt<256;++Tt)Sa[Tt]=9;for(var Tt=256;Tt<280;++Tt)Sa[Tt]=7;for(var Tt=280;Tt<288;++Tt)Sa[Tt]=8;var Mw=new Qn(32);for(var Tt=0;Tt<32;++Tt)Mw[Tt]=5;var Nae=Il(Sa,9,1),$ae=Il(Mw,5,1),rd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},br=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},id=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Oae=function(e){return(e+7)/8|0},Lw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Qn(e.subarray(t,r))},Pae=["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"],Bn=function(e,t,r){var o=new Error(t||Pae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Bn),!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 Qn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Qn(s*3));var p=function(Me){var I=r.length;if(Me>I){var q=new Qn(Math.max(I*2,Me));q.set(r),r=q}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,E=t.d,N=t.m,L=t.n,M=s*8;do{if(!w){v=br(e,m,1);var T=br(e,m+1,3);if(m+=3,T)if(T==1)w=Nae,E=$ae,N=9,L=5;else if(T==2){var G=br(e,m,31)+257,U=br(e,m+10,15)+4,Q=G+br(e,m+5,31)+1;m+=14;for(var J=new Qn(Q),Y=new Qn(19),ee=0;ee<U;++ee)Y[Eae[ee]]=br(e,m+ee*3,7);m+=U*3;for(var R=rd(Y),$=(1<<R)-1,O=Il(Y,R,1),ee=0;ee<Q;){var _=O[br(e,m,$)];m+=_&15;var P=_>>4;if(P<16)J[ee++]=P;else{var D=0,j=0;for(P==16?(j=3+br(e,m,3),m+=2,D=J[ee-1]):P==17?(j=3+br(e,m,7),m+=3):P==18&&(j=11+br(e,m,127),m+=7);j--;)J[ee++]=D}}var re=J.subarray(0,G),pe=J.subarray(G);N=rd(re),L=rd(pe),w=Il(re,N,1),E=Il(pe,L,1)}else Bn(1);else{var P=Oae(m)+4,A=e[P-4]|e[P-3]<<8,B=P+A;if(B>s){h&&Bn(0);break}d&&p(b+A),r.set(e.subarray(P,B),b),t.b=b+=A,t.p=m=B*8,t.f=v;continue}if(m>M){h&&Bn(0);break}}d&&p(b+131072);for(var be=(1<<N)-1,Re=(1<<L)-1,qe=m;;qe=m){var D=w[id(e,m)&be],et=D>>4;if(m+=D&15,m>M){h&&Bn(0);break}if(D||Bn(2),et<256)r[b++]=et;else if(et==256){qe=m,w=null;break}else{var Ye=et-254;if(et>264){var ee=et-257,Xe=kw[ee];Ye=br(e,m,(1<<Xe)-1)+Aw[ee],m+=Xe}var Ae=E[id(e,m)&Re],Z=Ae>>4;Ae||Bn(3),m+=Ae&15;var pe=Lae[Z];if(Z>3){var Xe=Cw[Z];pe+=id(e,m)&(1<<Xe)-1,m+=Xe}if(m>M){h&&Bn(0);break}d&&p(b+131072);var ae=b+Ye;if(b<pe){var de=c-pe,Ne=Math.min(pe,ae);for(de+b<0&&Bn(3);b<Ne;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-pe]}}t.l=w,t.p=qe,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=E,t.n=L)}while(!v);return b!=r.length&&f?Lw(r,0,b):r.subarray(0,b)},Rae=new Qn(0),zae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Bn(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)},Dae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Iae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Bn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Bn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Fae(e,t){return jh(e,{i:2},t,t)}function Hae(e,t){var r=zae(e);return r+8>e.length&&Bn(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new Qn(Dae(e)),t)}function Bae(e,t){return jh(e.subarray(Iae(e),-4),{i:2},t,t)}function Wae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Fae(e,t):Bae(e,t)}var jd=typeof TextDecoder<"u"&&new TextDecoder,qae=0;try{jd.decode(Rae,{stream:!0}),qae=1}catch{}var Uae=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:Lw(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 jae(e,t){var r;if(jd)return jd.decode(e);var o=Uae(e),s=o.s,r=o.r;return r.length&&Bn(8),s}const od=()=>{},hn=()=>Promise.resolve();function Vae(){const e=er({state:new Wb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=er(e.state.filesMap),e.state.idMap=er(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:hn,onDone:od,onTaskUpdate:od,writeFile:hn,rerun:hn,rerunTask:hn,updateSnapshot:hn,resolveSnapshotPath:hn,snapshotSaved:hn,onAfterSuiteRun:hn,onCancel:hn,getCountOfFailedTests:()=>0,sendLog:hn,resolveSnapshotRawPath:hn,readSnapshotFile:hn,saveSnapshotFile:hn,readTestFile:async d=>t.sources[d],removeSnapshotFile:hn,onUnhandledError:od,saveTestFile:hn,getProvidedContext:()=>({}),getTestFiles:hn};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=jae(Wae(m));t=Dd(b)}else t=Dd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return Cr?Vae():qT(eA,{reactive:(t,r)=>r==="state"?er(t):On(t),handlers:{onTaskUpdate(t){Ee.resumeRun(t),Ru.value="running"},onFinished(t,r){Ee.endRun(),Wi.value=(r||[]).map(_w)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Du=On({}),To=je("CONNECTING"),Jt=ke(()=>{const e=eo.value;return e?ar(e):void 0}),Nw=ke(()=>zh(Jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function ar(e){const t=mt.state.idMap.get(e);return t||void 0}const Gae=ke(()=>To.value==="OPEN"),sd=ke(()=>To.value==="CONNECTING");ke(()=>To.value==="CLOSED");function Kae(){return Vh(mt.state.getFiles())}function $w(e){delete e.result;const t=Ee.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,wa(e)))for(const r of e.tasks)$w(r)}function Xae(e){const t=Ee.nodes;e.forEach(r=>{delete r.result,zh(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,Nn(o)&&(o.collectDuration=void 0))})}function Vh(e){return Xae(e),Ee.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function Yae(e){return $w(e),Ee.startRun(),mt.rpc.rerunTask(e.id)}const Po=window.__vitest_browser_runner__;window.__vitest_ui_api__=ZE;Et(()=>mt.ws,e=>{To.value=Cr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.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=Ob(h,d,f);return p.mode="skip",p})),Ee.loadFiles(t,s),mt.state.collectFiles(t),Ee.startRun(),Wi.value=(o||[]).map(_w),Du.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Zae={"text-2xl":""},Jae={"text-lg":"",op50:""},Qae=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>W(Gae)?Ke("",!0):(oe(),ye("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)=>W(mt).reconnect&&W(mt).reconnect(...o))},[te("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(W(sd)?"animate-pulse":"")},[te("div",{text:"5xl",class:it(W(sd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),te("div",Zae,Be(W(sd)?"Connecting...":"Disconnected"),1),te("div",Jae," Check your terminal or start a new server with `"+Be(W(Po)?`vitest --browser=${W(Po).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),ece=["aria-label","opacity","disabled","hover"],bi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),ye("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}]])},[mn(t.$slots,"default",{},()=>[te("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,ece))}}),tce={h:"full",flex:"~ col"},nce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},ice={class:"pointer-events-none","text-sm":""},oce={key:0},sce={id:"tester-container",relative:""},lce=["data-scale"],Dm=20,ace=100,cce=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 Fr.value[0]===v[0]&&Fr.value[1]===v[1]}async function o(p){Fr.value=t[p]}const{width:s,height:c}=Bh(),f=ke(()=>{const m=s.value*(vn.details.size/100)*(vn.details.browser/100)-Dm,b=c.value-ace;return{width:m,height:b}}),d=ke(()=>{const[p,v]=Fr.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=ke(()=>{const p=f.value.width,v=Fr.value[0];return`${Math.trunc((p+Dm-v)/2)}px`});return(p,v)=>{const m=bi,b=Kr("tooltip");return oe(),ye("div",tce,[te("div",nce,[gt(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>W(YE)())},null,512),[[ji,W(vn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=te("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=te("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=>W(KE)())},null,512),[[ji,W(vn).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=>W(XE)())},null,512),[[ji,W(vn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),te("div",rce,[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}]]),te("span",ice,[pt(Be(W(Fr)[0])+"x"+Be(W(Fr)[1])+"px ",1),W(d)<1?(oe(),ye("span",oce,"("+Be((W(d)*100).toFixed(0))+"%)",1)):Ke("",!0)])]),te("div",sce,[te("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":W(d),style:en({"--viewport-width":`${W(Fr)[0]}px`,"--viewport-height":`${W(Fr)[1]}px`,"--tester-transform":`scale(${W(d)})`,"--tester-margin-left":W(h)})}," Select a test to run ",12,lce)])])}}}),uce=yi(cce,[["__scopeId","data-v-65565204"]]),Ow=ut({__name:"Modal",props:Vl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue"),r=ke(()=>{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=ke(()=>{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)=>(oe(),ye("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[te("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),te("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[W(r)]]),style:en(t.value?{}:{transform:W(o)})},[mn(c.$slots,"default")],6)],2))}}),fce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},dce={"p-4":"",relative:"",border:"base b"},hce={op50:"","font-mono":"","text-sm":""},pce={op50:"","font-mono":"","text-sm":""},gce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},vce=["src","alt"],mce={key:1},yce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Yb("Escape",()=>{r("close")}),(o,s)=>{const c=bi;return oe(),ye("div",fce,[te("div",dce,[s[1]||(s[1]=te("p",null,"Screenshot error",-1)),te("p",hce,Be(o.file),1),te("p",pce,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"))})]),te("div",gce,[o.url?(oe(),ye("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,vce)):(oe(),ye("div",mce," Something was wrong, the image cannot be resolved. "))])])}}}),bce=yi(yce,[["__scopeId","data-v-93900314"]]);function Fl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const _a=dE(),wce=YT(_a),xce={class:"scrolls scrolls-rounded task-error"},Sce=["onClickPassive"],_ce=["innerHTML"],kce=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=ke(()=>Uh(_a.value)),s=ke(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=ke(()=>t.error.diff?o.value.toHtml(Fl(t.error.diff)):void 0);return(f,d)=>{const h=Kr("tooltip");return oe(),ye("div",xce,[te("pre",null,[te("b",null,Be(f.error.name||f.error.nameStr),1),pt(": "+Be(f.error.message),1)]),(oe(!0),ye(ct,null,hi(f.error.stacks,(p,v)=>(oe(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[te("pre",null," - "+Be(r(p.file))+":"+Be(p.line)+":"+Be(p.column),1),W(kae)(p.file,f.filename)?gt((oe(),ye("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=>W(Sw)(p.file,p.line,p.column)},null,40,Sce)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ke("",!0)]))),128)),W(s)?(oe(),ye("pre",{key:0,"data-testid":"diff",innerHTML:W(c)},null,8,_ce)):Ke("",!0)])}}}),Cce=yi(kce,[["__scopeId","data-v-9dd6eaea"]]),Tce={"h-full":"",class:"scrolls"},Ece=["id"],Ace={flex:"~ gap-2 items-center"},Mce={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Lce=["innerHTML"],Nce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},$ce=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 L,M,T;let E="";(L=w.message)!=null&&L.includes("\x1B")&&(E=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Fl(w.message))}`);const N=(M=w.stackStr)==null?void 0:M.includes("\x1B");return(N||(T=w.stack)!=null&&T.includes("\x1B"))&&(E.length>0?E+=b.toHtml(Fl(N?w.stackStr:w.stack)):E=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Fl(N?w.stackStr:w.stack))}`),E.length>0?E:null}function s(b,w){const E=Uh(b);return w.map(N=>{var T;const L=N.result;if(!L)return N;const M=(T=L.errors)==null?void 0:T.map(P=>o(E,P)).filter(P=>P!=null).join("<br><br>");return M!=null&&M.length&&(L.htmlError=M),N})}const c=ke(()=>{var L,M;const b=t.file,w=((L=b==null?void 0:b.tasks)==null?void 0:L.flatMap(T=>r(T,0)))??[],E=b==null?void 0:b.result;if((M=E==null?void 0:E.errors)==null?void 0:M[0]){const T={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};w.unshift(T)}return w.length>0?s(_a.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=je(!1),h=je(Date.now()),p=je(),v=ke(()=>{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 Et(()=>[fw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Pt(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const E=bi,N=Cce,L=bce,M=Ow,T=Kr("tooltip");return oe(),ye("div",Tce,[W(c).length?(oe(!0),ye(ct,{key:0},hi(W(c),P=>{var A,B,G,U;return oe(),ye("div",{id:P.id,key:P.id},[te("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:en({"margin-left":`${(A=P.result)!=null&&A.htmlError?.5:2*P.level+.5}rem`})},[te("div",Ace,[te("span",null,Be(P.name),1),W(Po)&&((B=P.meta)!=null&&B.failScreenshotPath)?(oe(),ye(ct,{key:0},[gt(Oe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:Q=>m(P)},null,8,["onClick"]),[[T,"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:Q=>f(P)},null,8,["onClick"]),[[T,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ke("",!0)]),(G=P.result)!=null&&G.htmlError?(oe(),ye("div",Mce,[te("pre",{innerHTML:P.result.htmlError},null,8,Lce)])):(U=P.result)!=null&&U.errors?(oe(!0),ye(ct,{key:1},hi(P.result.errors,(Q,J)=>{var Y;return oe(),nt(N,{key:J,error:Q,filename:(Y=b.file)==null?void 0:Y.name,root:W(Du).root},null,8,["error","filename","root"])}),128)):Ke("",!0)],4)],8,Ece)}),128)):(oe(),ye("div",Nce," All tests passed in this file ")),W(Po)?(oe(),nt(M,{key:2,modelValue:W(d),"onUpdate:modelValue":w[1]||(w[1]=P=>kt(d)?d.value=P:null),direction:"right"},{default:rt(()=>[W(p)?(oe(),nt(Xy,{key:0},{default:rt(()=>[Oe(L,{file:W(p).file.filepath,name:W(p).name,url:W(v),onClose:w[0]||(w[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])):Ke("",!0)])}}}),Oce=yi($ce,[["__scopeId","data-v-013fc3c6"]]),Pce={border:"b base","p-4":""},Rce=["innerHTML"],zce=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),ye("div",Pce,[te("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),te("pre",{"data-type":"html",innerHTML:r.content},null,8,Rce)]))}}),Dce={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Ice={key:1,p6:""},Fce=ut({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Nw.value;if(o){const s=Uh(_a.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Fl(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?MT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=zce;return(f=W(t))!=null&&f.length?(oe(),ye("div",Dce,[(oe(!0),ye(ct,null,hi(W(t),({taskId:d,type:h,time:p,content:v})=>(oe(),ye("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))])):(oe(),ye("p",Ice,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),te("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Lc={exports:{}},Hce=Lc.exports,Im;function Bs(){return Im||(Im=1,function(e,t){(function(r,o){e.exports=o()})(Hce,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),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),T=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),A=T||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=T||/Mac/.test(o),G=/\bCrOS\b/.test(r),U=/win/i.test(o),Q=E&&r.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(E=!1,v=!0);var J=B&&(m||E&&(Q==null||Q<12.11)),Y=s||h&&p>=9;function ee(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var R=function(n,i){var a=n.className,l=ee(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 $(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return $(n).appendChild(i)}function _(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 D(n,i,a,l){var u=_(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 re(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 pe(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 be(n,i){var a=n.className;ee(i).test(a)||(n.className+=(a?" ":"")+i)}function Re(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ee(a[l]).test(i)&&(i+=" "+a[l]);return i}var qe=function(n){n.select()};T?qe=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(qe=function(n){try{n.select()}catch{}});function et(n){return n.display.wrapper.ownerDocument}function Ye(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Ae(n){return et(n).defaultView}function Z(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(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 de(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 Ne=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};Ne.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Ne.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 Me(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,q={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},le={origin:"*mouse"},ce={origin:"+move"};function ue(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 Se=[""];function _e(n){for(;Se.length<=n;)Se.push(he(Se)+" ");return Se[n]}function he(n){return n[n.length-1]}function ge(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 Le(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Le.prototype=n,a=new Le),i&&ae(i,a),a}var Ue=/[\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()||Ue.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 Mt=/[\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&&Mt.test(n)}function jt(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function It(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 Rn(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 $r=null;function zt(n,i,a){var l;$r=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:$r=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:$r=u)}return l??$r}var zn=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 S(k,z,H){this.level=k,this.from=z,this.to=H}return function(k,z){var H=z=="ltr"?"L":"R";if(k.length==0||z=="ltr"&&!l.test(k))return!1;for(var X=k.length,V=[],ie=0;ie<X;++ie)V.push(a(k.charCodeAt(ie)));for(var fe=0,me=H;fe<X;++fe){var we=V[fe];we=="m"?V[fe]=me:me=we}for(var Te=0,xe=H;Te<X;++Te){var $e=V[Te];$e=="1"&&xe=="r"?V[Te]="n":g.test($e)&&(xe=$e,$e=="r"&&(V[Te]="R"))}for(var Fe=1,ze=V[0];Fe<X-1;++Fe){var Ze=V[Fe];Ze=="+"&&ze=="1"&&V[Fe+1]=="1"?V[Fe]="1":Ze==","&&ze==V[Fe+1]&&(ze=="1"||ze=="n")&&(V[Fe]=ze),ze=Ze}for(var xt=0;xt<X;++xt){var Yt=V[xt];if(Yt==",")V[xt]="N";else if(Yt=="%"){var At=void 0;for(At=xt+1;At<X&&V[At]=="%";++At);for(var Fn=xt&&V[xt-1]=="!"||At<X&&V[At]=="1"?"1":"N",Sn=xt;Sn<At;++Sn)V[Sn]=Fn;xt=At-1}}for(var Ft=0,_n=H;Ft<X;++Ft){var nn=V[Ft];_n=="L"&&nn=="1"?V[Ft]="L":g.test(nn)&&(_n=nn)}for(var qt=0;qt<X;++qt)if(u.test(V[qt])){var Ht=void 0;for(Ht=qt+1;Ht<X&&u.test(V[Ht]);++Ht);for(var Ot=(qt?V[qt-1]:H)=="L",kn=(Ht<X?V[Ht]:H)=="L",as=Ot==kn?Ot?"L":"R":H,$i=qt;$i<Ht;++$i)V[$i]=as;qt=Ht-1}for(var an=[],Dr,Zt=0;Zt<X;)if(y.test(V[Zt])){var Df=Zt;for(++Zt;Zt<X&&y.test(V[Zt]);++Zt);an.push(new S(0,Df,Zt))}else{var ri=Zt,vo=an.length,mo=z=="rtl"?1:0;for(++Zt;Zt<X&&V[Zt]!="L";++Zt);for(var dn=ri;dn<Zt;)if(x.test(V[dn])){ri<dn&&(an.splice(vo,0,new S(1,ri,dn)),vo+=mo);var cs=dn;for(++dn;dn<Zt&&x.test(V[dn]);++dn);an.splice(vo,0,new S(2,cs,dn)),vo+=mo,ri=dn}else++dn;ri<Zt&&an.splice(vo,0,new S(1,ri,Zt))}return z=="ltr"&&(an[0].level==1&&(Dr=k.match(/^\s+/))&&(an[0].from=Dr[0].length,an.unshift(new S(0,0,Dr[0].length))),he(an).level==1&&(Dr=k.match(/\s+$/))&&(he(an).to-=Dr[0].length,an.push(new S(0,X-Dr[0].length,X)))),z=="rtl"?an.reverse():an}}();function Qe(n,i){var a=n.order;return a==null&&(a=n.order=zn(n.text,i)),a}var Ea=[],Ie=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]||Ea).concat(a)}};function Yr(n,i){return n._handlers&&n._handlers[i]||Ea}function on(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=Me(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Lt(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 Nt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Lt(n,a||i.type,n,i),yn(i)||i.codemirrorIgnore}function rr(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)Me(a,i[l])==-1&&a.push(i[l])}function Dn(n,i){return Yr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Ie(this,i,a)},n.prototype.off=function(i,a){on(this,i,a)}}function sn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Do(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function yn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function wi(n){sn(n),Do(n)}function Ws(n){return n.target||n.srcElement}function ur(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 qu=function(){if(h&&p<9)return!1;var n=_("div");return"draggable"in n||"dragDrop"in n}(),Io;function Aa(n){if(Io==null){var i=_("span","​");O(n,_("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Io=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Io?_("span","​"):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var qs;function xi(n){if(qs!=null)return qs;var i=O(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return $(n),!a||a.left==a.right?!1:qs=l.right-a.right<3}var ir=`
22
22
 
23
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/)},Si=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},Ma=function(){var n=_("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function Uu(n){if(fr!=null)return fr;var i=O(n,_("span","x")),a=i.getBoundingClientRect(),l=j(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Fo={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fo[n]=i}function so(n,i){dr[n]=i}function Ho(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[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 Ho("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Ho("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=Ho(i);var a=Fo[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(_i.hasOwnProperty(i.name)){var u=_i[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 _i={};function Wo(n,i){var a=_i.hasOwnProperty(n)?_i[n]:_i[n]={};ae(i,a)}function Or(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 Us(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 qo(n,i,a){return n.startState?n.startState(i,a):!0}var $t=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};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.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},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.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)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pe(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 js(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Kn(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=Me(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 F(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],S=x.height;if(i<S)break;i-=S}return a+y}function se(n,i){return i>=n.first&&i<n.first+n.size}function ve(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ne(n,i,a){if(a===void 0&&(a=null),!(this instanceof ne))return new ne(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ce(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Ce(n,i)==0}function Vt(n){return ne(n.line,n.ch)}function bn(n,i){return Ce(n,i)<0?i:n}function Uo(n,i){return Ce(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 ne(n.first,0);var a=n.first+n.size-1;return i.line>a?ne(a,Pe(n,a).text.length):D1(i,Pe(n,i.line).text.length)}function D1(n,i){var a=n.ch;return a==null||a>i?ne(n.line,i):a<0?ne(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 La=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 La?new Pr(n,Or(n.mode,i.state),a,i.lookAhead):new Pr(n,Or(n.mode,i),a)},Pr.prototype.save=function(n){var i=n!==!1?Or(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new La(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,z){return u.push(k,z)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var z=n.state.overlays[k],H=1,X=0;a.state=!0,vp(n,i.text,z.mode,a,function(V,ie){for(var fe=H;X<V;){var me=u[H];me>V&&u.splice(H,1,V,u[H+1],me),H+=2,X=Math.min(V,me)}if(ie)if(z.opaque)u.splice(fe,H-fe,V,"overlay "+ie),H=fe+2;else for(;fe<H;fe+=2){var we=u[fe+1];u[fe+1]=(we?we+" ":"")+"overlay "+ie}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);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=Vs(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Or(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 Vs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Pr(l,!0,i);var g=I1(n,i,a),y=g>l.first&&Pe(l,g-1).stateAfter,x=y?Pr.fromSaved(l,y,g):new Pr(l,qo(l.mode),g);return l.iter(g,i,function(S){ju(n,S.text,x);var k=x.line;S.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 ju(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&dp(u,a.state);!g.eol();)Vu(u,g,a.state),g.start=g.pos}function dp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Us(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Vu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Us(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=Pe(u,i.line),S=Vs(n,i.line,a),k=new $t(x.text,n.options.tabSize,S),z;for(l&&(z=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=Vu(g,k,S.state),l&&z.push(new hp(k,y,Or(u.mode,S.state)));return l?z:new hp(k,y,S.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 S=0,k=null,z=new $t(i,n.options.tabSize,l),H,X=n.options.addModeClass&&[null];for(i==""&&gp(dp(a,l.state),g);!z.eol();){if(z.pos>n.options.maxHighlightLength?(x=!1,y&&ju(n,i,l,z.pos),z.pos=i.length,H=null):H=gp(Vu(a,z,l.state,X),g),X){var V=X[0].name;V&&(H="m-"+(H?V+" "+H:V))}if(!x||k!=H){for(;S<z.start;)S=Math.min(z.start,S+5e3),u(S,k);k=H}z.start=z.pos}for(;S<z.pos;){var ie=Math.min(z.pos,S+5e3);u(ie,k),S=ie}}function I1(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 S=Pe(g,x-1),k=S.stateAfter;if(k&&(!a||x+(k instanceof La?k.lookAhead:0)<=g.modeFrontier))return x;var z=de(S.text,null,n.options.tabSize);(u==null||l>z)&&(u=x-1,l=z)}return u}function F1(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=Pe(n,l).stateAfter;if(u&&(!(u instanceof La)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var mp=!1,Jr=!1;function H1(){mp=!0}function B1(){Jr=!0}function Na(n,i,a){this.marker=n,this.from=i,this.to=a}function Gs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function W1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function q1(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 U1(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 S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Na(y,g.from,S?null:g.to))}}return l}function j1(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 S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Na(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Gu(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Pe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Pe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ce(i.from,i.to)==0,x=U1(a,u,y),S=j1(l,g,y),k=i.text.length==1,z=he(i.text).length+(k?u:0);if(x)for(var H=0;H<x.length;++H){var X=x[H];if(X.to==null){var V=Gs(S,X.marker);V?k&&(X.to=V.to==null?null:V.to+z):X.to=u}}if(S)for(var ie=0;ie<S.length;++ie){var fe=S[ie];if(fe.to!=null&&(fe.to+=z),fe.from==null){var me=Gs(x,fe.marker);me||(fe.from=z,k&&(x||(x=[])).push(fe))}else fe.from+=z,k&&(x||(x=[])).push(fe)}x&&(x=yp(x)),S&&S!=x&&(S=yp(S));var we=[x];if(!k){var Te=i.text.length-2,xe;if(Te>0&&x)for(var $e=0;$e<x.length;++$e)x[$e].to==null&&(xe||(xe=[])).push(new Na(x[$e].marker,null,null));for(var Fe=0;Fe<Te;++Fe)we.push(xe);we.push(S)}return we}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 V1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(V){if(V.markedSpans)for(var ie=0;ie<V.markedSpans.length;++ie){var fe=V.markedSpans[ie].marker;fe.readOnly&&(!l||Me(l,fe)==-1)&&(l||(l=[])).push(fe)}}),!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),S=0;S<u.length;++S){var k=u[S];if(!(Ce(k.to,x.from)<0||Ce(k.from,x.to)>0)){var z=[S,1],H=Ce(k.from,x.from),X=Ce(k.to,x.to);(H<0||!y.inclusiveLeft&&!H)&&z.push({from:k.from,to:x.from}),(X>0||!y.inclusiveRight&&!X)&&z.push({from:x.to,to:k.to}),u.splice.apply(u,z),S+=z.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 $a(n){return n.inclusiveLeft?-1:0}function Oa(n){return n.inclusiveRight?1:0}function Ku(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ce(l.from,u.from)||$a(n)-$a(i);if(g)return-g;var y=Ce(l.to,u.to)||Oa(n)-Oa(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||Ku(l,u.marker)<0)&&(l=u.marker);return l}function Sp(n){return xp(n,!0)}function Pa(n){return xp(n,!1)}function G1(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||Ku(l,g.marker)<0)&&(l=g.marker)}return l}function _p(n,i,a,l,u){var g=Pe(n,i),y=Jr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var k=S.marker.find(0),z=Ce(k.from,a)||$a(S.marker)-$a(u),H=Ce(k.to,l)||Oa(S.marker)-Oa(u);if(!(z>=0&&H<=0||z<=0&&H>=0)&&(z<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ce(k.to,a)>=0:Ce(k.to,a)>0)||z>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ce(k.from,l)<=0:Ce(k.from,l)<0)))return!0}}}function pr(n){for(var i;i=Sp(n);)n=i.find(-1,!0).line;return n}function K1(n){for(var i;i=Pa(n);)n=i.find(1,!0).line;return n}function X1(n){for(var i,a;i=Pa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Xu(n,i){var a=Pe(n,i),l=pr(a);return a==l?i:C(l)}function kp(n,i){if(i>n.lastLine())return i;var a=Pe(n,i),l;if(!ki(n,a))return i;for(;l=Pa(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&&Yu(n,i,l))return!0}}}function Yu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Yu(n,l.line,Gs(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)&&Yu(n,i,u))return!0}function Qr(n){n=pr(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 Ra(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Sp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Pa(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 Zu(n){var i=n.display,a=n.doc;i.maxLine=Pe(a,a.first),i.maxLineLength=Ra(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ra(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,wp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return C(this)},cr(jo);function Y1(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&&Kn(n,u)}function Z1(n){n.parent=null,bp(n)}var J1={},Q1={};function Cp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?Q1:J1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Tp(n,i){var a=D("span",null,null,v?"padding-right: .1px":null),l={pre:D("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=tx,xi(n.display.measure)&&(y=Qe(g,n.doc.direction))&&(l.addToken=rx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);ix(g,l,fp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Re(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Re(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Aa(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 S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Lt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function ex(n){var i=_("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function tx(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?nx(i,n.trailingSpace):i,S=n.cm.state.specialChars,k=!1,z;if(!S.test(i))n.col+=i.length,z=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,z),h&&p<9&&(k=!0),n.pos+=i.length;else{z=document.createDocumentFragment();for(var H=0;;){S.lastIndex=H;var X=S.exec(i),V=X?X.index-H:i.length-H;if(V){var ie=document.createTextNode(x.slice(H,H+V));h&&p<9?z.appendChild(_("span",[ie])):z.appendChild(ie),n.map.push(n.pos,n.pos+V,ie),n.col+=V,n.pos+=V}if(!X)break;H+=V+1;var fe=void 0;if(X[0]==" "){var me=n.cm.options.tabSize,we=me-n.col%me;fe=z.appendChild(_("span",_e(we),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),n.col+=we}else X[0]=="\r"||X[0]==`
25
- `?(fe=z.appendChild(_("span",X[0]=="\r"?"␍":"␤","cm-invalidchar")),fe.setAttribute("cm-text",X[0]),n.col+=1):(fe=n.cm.options.specialCharPlaceholder(X[0]),fe.setAttribute("cm-text",X[0]),h&&p<9?z.appendChild(_("span",[fe])):z.appendChild(fe),n.col+=1);n.map.push(n.pos,n.pos+1,fe),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Te=a||"";l&&(Te+=l),u&&(Te+=u);var xe=_("span",[z],Te,g);if(y)for(var $e in y)y.hasOwnProperty($e)&&$e!="style"&&$e!="class"&&xe.setAttribute($e,y[$e]);return n.content.appendChild(xe)}n.content.appendChild(z)}}function nx(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 rx(n,i){return function(a,l,u,g,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,z=k+l.length;;){for(var H=void 0,X=0;X<i.length&&(H=i[X],!(H.to>k&&H.from<=k));X++);if(H.to>=z)return n(a,l,u,g,y,x,S);n(a,l.slice(0,H.to-k),u,g,null,x,S),g=null,l=l.slice(H.to-k),k=H.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 ix(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]),Cp(a[y+1],i.cm.options));return}for(var x=u.length,S=0,k=1,z="",H,X,V=0,ie,fe,me,we,Te;;){if(V==S){ie=fe=me=X="",Te=null,we=null,V=1/0;for(var xe=[],$e=void 0,Fe=0;Fe<l.length;++Fe){var ze=l[Fe],Ze=ze.marker;if(Ze.type=="bookmark"&&ze.from==S&&Ze.widgetNode)xe.push(Ze);else if(ze.from<=S&&(ze.to==null||ze.to>S||Ze.collapsed&&ze.to==S&&ze.from==S)){if(ze.to!=null&&ze.to!=S&&V>ze.to&&(V=ze.to,fe=""),Ze.className&&(ie+=" "+Ze.className),Ze.css&&(X=(X?X+";":"")+Ze.css),Ze.startStyle&&ze.from==S&&(me+=" "+Ze.startStyle),Ze.endStyle&&ze.to==V&&($e||($e=[])).push(Ze.endStyle,ze.to),Ze.title&&((Te||(Te={})).title=Ze.title),Ze.attributes)for(var xt in Ze.attributes)(Te||(Te={}))[xt]=Ze.attributes[xt];Ze.collapsed&&(!we||Ku(we.marker,Ze)<0)&&(we=ze)}else ze.from>S&&V>ze.from&&(V=ze.from)}if($e)for(var Yt=0;Yt<$e.length;Yt+=2)$e[Yt+1]==V&&(fe+=" "+$e[Yt]);if(!we||we.from==S)for(var At=0;At<xe.length;++At)Ep(i,0,xe[At]);if(we&&(we.from||0)==S){if(Ep(i,(we.to==null?x+1:we.to)-S,we.marker,we.from==null),we.to==null)return;we.to==S&&(we=!1)}}if(S>=x)break;for(var Fn=Math.min(x,V);;){if(z){var Sn=S+z.length;if(!we){var Ft=Sn>Fn?z.slice(0,Fn-S):z;i.addToken(i,Ft,H?H+ie:ie,me,S+Ft.length==V?fe:"",X,Te)}if(Sn>=Fn){z=z.slice(Fn-S),S=Fn;break}S=Sn,me=""}z=u.slice(g,g=a[k++]),H=Cp(a[k++],i.cm.options)}}}function Ap(n,i,a){this.line=i,this.rest=X1(i),this.size=this.rest?C(he(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,Pe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Vo=null;function ox(n){Vo?Vo.ops.push(n):n.ownsGroup=Vo={ops:[n],delayedCallbacks:[]}}function sx(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 lx(n,i){var a=n.ownsGroup;if(a)try{sx(a)}finally{Vo=null,i(a)}}var Ks=null;function Gt(n,i){var a=Yr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Vo?u=Vo.delayedCallbacks:Ks?u=Ks:(u=Ks=[],setTimeout(ax,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function ax(){var n=Ks;Ks=null;for(var i=0;i<n.length;++i)n[i]()}function Mp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?ux(n,i):g=="gutter"?Np(n,i,a,l):g=="class"?Ju(n,i):g=="widget"&&fx(n,i,l)}i.changes=null}function Xs(n){return n.node==n.text&&(n.node=_("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 cx(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=Xs(i);i.background=l.insertBefore(_("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Lp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Tp(n,i)}function ux(n,i){var a=i.text.className,l=Lp(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,Ju(n,i)):a&&(i.text.className=a)}function Ju(n,i){cx(n,i),i.line.wrapClass?Xs(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=Xs(i);i.gutterBackground=_("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=Xs(i),x=i.gutter=_("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(_("div",ve(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var S=0;S<n.display.gutterSpecs.length;++S){var k=n.display.gutterSpecs[S].className,z=g.hasOwnProperty(k)&&g[k];z&&x.appendChild(_("div",[z],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function fx(n,i,a){i.alignable&&(i.alignable=null);for(var l=ee("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 dx(n,i,a,l){var u=Lp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Ju(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=Xs(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],k=_("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),hx(S,k,a,l),n.display.input.setUneditable(k),u&&S.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Gt(S,"redraw")}}function hx(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 Ys(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!re(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,_("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ei(n,i){for(var a=Ws(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 Da(n){return n.lineSpace.offsetTop}function Qu(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Pp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=O(n.measure,_("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 Rr(n){return I-n.display.nativeBarWidth}function lo(n){return n.display.scroller.clientWidth-Rr(n)-n.display.barWidth}function ef(n){return n.display.scroller.clientHeight-Rr(n)-n.display.barHeight}function px(n,i,a){var l=n.options.lineWrapping,u=l&&lo(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 S=y[x],k=y[x+1];Math.abs(S.bottom-k.bottom)>2&&g.push((S.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Rp(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 gx(n,i){i=pr(i);var a=C(i),l=n.display.externalMeasured=new Ap(n.doc,i,a);l.lineN=a;var u=l.built=Tp(n,l);return l.text=u.pre,O(n.display.lineMeasure,u.pre),l}function zp(n,i,a,l){return zr(n,Go(n,i),a,l)}function tf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[uo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Go(n,i){var a=C(i),l=tf(n,a);l&&!l.text?l=null:l&&l.changes&&(Mp(n,l,a,lf(n)),n.curOp.forceUpdate=!0),l||(l=gx(n,i));var u=Rp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function zr(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||(px(n,i.view,i.rect),i.hasHeights=!0),y=mx(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 Ip(n,i,a){for(var l,u,g,y,x,S,k=0;k<n.length;k+=3)if(x=n[k],S=n[k+1],i<x?(u=0,g=1,y="left"):i<S?(u=i-x,g=u+1):(k==n.length-3||i==S&&n[k+3]>i)&&(g=S-x,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[k+2],x==S&&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==S-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:S}}function vx(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 mx(n,i,a,l){var u=Ip(i.map,a,l),g=u.node,y=u.start,x=u.end,S=u.collapse,k;if(g.nodeType==3){for(var z=0;z<4;z++){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=vx(j(g,y,x).getClientRects(),l),k.left||k.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(k=yx(n.display.measure,k))}else{y>0&&(S=l="right");var H;n.options.lineWrapping&&(H=g.getClientRects()).length>1?k=H[l=="right"?H.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var X=g.parentNode.getClientRects()[0];X?k={left:X.left,right:X.left+Xo(n.display),top:X.top,bottom:X.bottom}:k=Dp}for(var V=k.top-i.rect.top,ie=k.bottom-i.rect.top,fe=(V+ie)/2,me=i.view.measure.heights,we=0;we<me.length-1&&!(fe<me[we]);we++);var Te=we?me[we-1]:0,xe=me[we],$e={left:(S=="right"?k.right:k.left)-i.rect.left,right:(S=="left"?k.left:k.right)-i.rect.left,top:Te,bottom:xe};return!k.left&&!k.right&&($e.bogus=!0),n.options.singleCursorHeightPerLine||($e.rtop=V,$e.rbottom=ie),$e}function yx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Uu(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,$(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Fp(n.display.view[i])}function Zs(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&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Wp(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function nf(n){var i=pr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Ys(a[u]));return l}function Ia(n,i,a,l,u){if(!u){var g=nf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=Qr(i);if(l=="local"?y+=Da(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Wp(et(n)));var S=x.left+(l=="window"?0:Bp(et(n)));a.left+=S,a.right+=S}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(et(n)),u-=Wp(et(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 Fa(n,i,a,l,u){return l||(l=Pe(n.doc,i.line)),Ia(n,l,zp(n,l,i.ch,u),a)}function gr(n,i,a,l,u,g){l=l||Pe(n.doc,i.line),u||(u=Go(n,l));function y(ie,fe){var me=zr(n,u,ie,fe?"right":"left",g);return fe?me.left=me.right:me.right=me.left,Ia(n,l,me,a)}var x=Qe(l,n.doc.direction),S=i.ch,k=i.sticky;if(S>=l.text.length?(S=l.text.length,k="before"):S<=0&&(S=0,k="after"),!x)return y(k=="before"?S-1:S,k=="before");function z(ie,fe,me){var we=x[fe],Te=we.level==1;return y(me?ie-1:ie,Te!=me)}var H=zt(x,S,k),X=$r,V=z(S,H,k=="before");return X!=null&&(V.other=z(S,X,k!="before")),V}function Up(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Xo(n.display)*i.ch);var l=Pe(n.doc,i.line),u=Qr(l)+Da(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function rf(n,i,a,l,u){var g=ne(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function of(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return rf(l.first,0,null,-1,-1);var u=F(l,a),g=l.first+l.size-1;if(u>g)return rf(l.first+l.size-1,Pe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Pe(l,u);;){var x=bx(n,y,u,i,a),S=G1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var k=S.find(1);if(k.line==u)return k;y=Pe(l,u=k.line)}}function jp(n,i,a,l){l-=nf(i);var u=i.text.length,g=It(function(y){return zr(n,a,y-1).bottom<=l},u,0);return u=It(function(y){return zr(n,a,y).top>l},g,u),{begin:g,end:u}}function Vp(n,i,a,l){a||(a=Go(n,i));var u=Ia(n,i,zr(n,a,l),"line").top;return jp(n,i,a,u)}function sf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function bx(n,i,a,l,u){u-=Qr(i);var g=Go(n,i),y=nf(i),x=0,S=i.text.length,k=!0,z=Qe(i,n.doc.direction);if(z){var H=(n.options.lineWrapping?xx:wx)(n,i,a,g,z,l,u);k=H.level!=1,x=k?H.from:H.to-1,S=k?H.to:H.from-1}var X=null,V=null,ie=It(function(Fe){var ze=zr(n,g,Fe);return ze.top+=y,ze.bottom+=y,sf(ze,l,u,!1)?(ze.top<=u&&ze.left<=l&&(X=Fe,V=ze),!0):!1},x,S),fe,me,we=!1;if(V){var Te=l-V.left<V.right-l,xe=Te==k;ie=X+(xe?0:1),me=xe?"after":"before",fe=Te?V.left:V.right}else{!k&&(ie==S||ie==x)&&ie++,me=ie==0?"after":ie==i.text.length?"before":zr(n,g,ie-(k?1:0)).bottom+y<=u==k?"after":"before";var $e=gr(n,ne(a,ie,me),"line",i,g);fe=$e.left,we=u<$e.top?-1:u>=$e.bottom?1:0}return ie=jt(i.text,ie,1),rf(a,ie,me,we,l-fe)}function wx(n,i,a,l,u,g,y){var x=It(function(H){var X=u[H],V=X.level!=1;return sf(gr(n,ne(a,V?X.to:X.from,V?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[x];if(x>0){var k=S.level!=1,z=gr(n,ne(a,k?S.from:S.to,k?"after":"before"),"line",i,l);sf(z,g,y,!0)&&z.top>y&&(S=u[x-1])}return S}function xx(n,i,a,l,u,g,y){var x=jp(n,i,l,y),S=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var z=null,H=null,X=0;X<u.length;X++){var V=u[X];if(!(V.from>=k||V.to<=S)){var ie=V.level!=1,fe=zr(n,l,ie?Math.min(k,V.to)-1:Math.max(S,V.from)).right,me=fe<g?g-fe+1e9:fe-g;(!z||H>me)&&(z=V,H=me)}}return z||(z=u[u.length-1]),z.from<S&&(z={from:S,to:z.to,level:z.level}),z.to>k&&(z={from:z.from,to:k,level:z.level}),z}var ao;function Ko(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ao==null){ao=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ao.appendChild(document.createTextNode("x")),ao.appendChild(_("br"));ao.appendChild(document.createTextNode("x"))}O(n.measure,ao);var a=ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),$(n.measure),a||1}function Xo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=_("span","xxxxxxxxxx"),a=_("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 lf(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:af(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function af(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Gp(n){var i=Ko(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Xo(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 cf(n){var i=n.doc,a=Gp(n);i.iter(function(l){var u=a(l);u!=l.height&&Kn(l,u)})}function co(n,i,a,l){var u=n.display;if(!a&&Ws(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 S=of(n,g,y),k;if(l&&S.xRel>0&&(k=Pe(n.doc,S.line).text).length==S.ch){var z=de(k,k.length,n.options.tabSize)-k.length;S=ne(S.line,Math.max(0,Math.round((g-Pp(n.display).left)/Xo(n.display))-z))}return S}function uo(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 wn(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&&Xu(n.doc,i)<u.viewTo&&Ti(n);else if(a<=u.viewFrom)Jr&&kp(n.doc,a+l)>u.viewFrom?Ti(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ti(n);else if(i<=u.viewFrom){var g=Ha(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ti(n)}else if(a>=u.viewTo){var y=Ha(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ti(n)}else{var x=Ha(n,i,i,-1),S=Ha(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(za(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Ti(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ci(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[uo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);Me(y,a)==-1&&y.push(a)}}}function Ti(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ha(n,i,a,l){var u=uo(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,S=0;S<u;S++)x+=y[S].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(;Xu(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 Sx(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(uo(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,uo(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 Js(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 S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var k=S.empty();if(y){var z=y(n,S);z&&uf(n,z,u)}else(k||n.options.showCursorWhenSelecting)&&uf(n,S.head,u);k||_x(n,S,g)}}return l}function uf(n,i,a){var l=gr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(_("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=Fa(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(_("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 Ba(n,i){return n.top-i.top||n.left-i.left}function _x(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Pp(n.display),x=y.left,S=Math.max(l.sizerWidth,lo(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function z(xe,$e,Fe,ze){$e<0&&($e=0),$e=Math.round($e),ze=Math.round(ze),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
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/)},Si=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},Ma=function(){var n=_("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function Uu(n){if(fr!=null)return fr;var i=O(n,_("span","x")),a=i.getBoundingClientRect(),l=j(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Fo={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fo[n]=i}function so(n,i){dr[n]=i}function Ho(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[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 Ho("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Ho("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=Ho(i);var a=Fo[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(_i.hasOwnProperty(i.name)){var u=_i[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 _i={};function Wo(n,i){var a=_i.hasOwnProperty(n)?_i[n]:_i[n]={};ae(i,a)}function Or(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 Us(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 qo(n,i,a){return n.startState?n.startState(i,a):!0}var $t=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};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.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},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.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)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pe(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 js(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Kn(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=Me(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 F(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],S=x.height;if(i<S)break;i-=S}return a+y}function se(n,i){return i>=n.first&&i<n.first+n.size}function ve(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ne(n,i,a){if(a===void 0&&(a=null),!(this instanceof ne))return new ne(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ce(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Ce(n,i)==0}function Vt(n){return ne(n.line,n.ch)}function bn(n,i){return Ce(n,i)<0?i:n}function Uo(n,i){return Ce(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 ne(n.first,0);var a=n.first+n.size-1;return i.line>a?ne(a,Pe(n,a).text.length):I1(i,Pe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?ne(n.line,i):a<0?ne(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 La=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 La?new Pr(n,Or(n.mode,i.state),a,i.lookAhead):new Pr(n,Or(n.mode,i),a)},Pr.prototype.save=function(n){var i=n!==!1?Or(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new La(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,z){return u.push(k,z)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var z=n.state.overlays[k],H=1,X=0;a.state=!0,vp(n,i.text,z.mode,a,function(V,ie){for(var fe=H;X<V;){var me=u[H];me>V&&u.splice(H,1,V,u[H+1],me),H+=2,X=Math.min(V,me)}if(ie)if(z.opaque)u.splice(fe,H-fe,V,"overlay "+ie),H=fe+2;else for(;fe<H;fe+=2){var we=u[fe+1];u[fe+1]=(we?we+" ":"")+"overlay "+ie}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);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=Vs(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Or(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 Vs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Pr(l,!0,i);var g=F1(n,i,a),y=g>l.first&&Pe(l,g-1).stateAfter,x=y?Pr.fromSaved(l,y,g):new Pr(l,qo(l.mode),g);return l.iter(g,i,function(S){ju(n,S.text,x);var k=x.line;S.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 ju(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&dp(u,a.state);!g.eol();)Vu(u,g,a.state),g.start=g.pos}function dp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Us(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Vu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Us(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=Pe(u,i.line),S=Vs(n,i.line,a),k=new $t(x.text,n.options.tabSize,S),z;for(l&&(z=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=Vu(g,k,S.state),l&&z.push(new hp(k,y,Or(u.mode,S.state)));return l?z:new hp(k,y,S.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 S=0,k=null,z=new $t(i,n.options.tabSize,l),H,X=n.options.addModeClass&&[null];for(i==""&&gp(dp(a,l.state),g);!z.eol();){if(z.pos>n.options.maxHighlightLength?(x=!1,y&&ju(n,i,l,z.pos),z.pos=i.length,H=null):H=gp(Vu(a,z,l.state,X),g),X){var V=X[0].name;V&&(H="m-"+(H?V+" "+H:V))}if(!x||k!=H){for(;S<z.start;)S=Math.min(z.start,S+5e3),u(S,k);k=H}z.start=z.pos}for(;S<z.pos;){var ie=Math.min(z.pos,S+5e3);u(ie,k),S=ie}}function F1(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 S=Pe(g,x-1),k=S.stateAfter;if(k&&(!a||x+(k instanceof La?k.lookAhead:0)<=g.modeFrontier))return x;var z=de(S.text,null,n.options.tabSize);(u==null||l>z)&&(u=x-1,l=z)}return u}function H1(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=Pe(n,l).stateAfter;if(u&&(!(u instanceof La)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var mp=!1,Jr=!1;function B1(){mp=!0}function W1(){Jr=!0}function Na(n,i,a){this.marker=n,this.from=i,this.to=a}function Gs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function q1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function U1(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 j1(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 S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Na(y,g.from,S?null:g.to))}}return l}function V1(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 S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Na(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Gu(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Pe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Pe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ce(i.from,i.to)==0,x=j1(a,u,y),S=V1(l,g,y),k=i.text.length==1,z=he(i.text).length+(k?u:0);if(x)for(var H=0;H<x.length;++H){var X=x[H];if(X.to==null){var V=Gs(S,X.marker);V?k&&(X.to=V.to==null?null:V.to+z):X.to=u}}if(S)for(var ie=0;ie<S.length;++ie){var fe=S[ie];if(fe.to!=null&&(fe.to+=z),fe.from==null){var me=Gs(x,fe.marker);me||(fe.from=z,k&&(x||(x=[])).push(fe))}else fe.from+=z,k&&(x||(x=[])).push(fe)}x&&(x=yp(x)),S&&S!=x&&(S=yp(S));var we=[x];if(!k){var Te=i.text.length-2,xe;if(Te>0&&x)for(var $e=0;$e<x.length;++$e)x[$e].to==null&&(xe||(xe=[])).push(new Na(x[$e].marker,null,null));for(var Fe=0;Fe<Te;++Fe)we.push(xe);we.push(S)}return we}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 G1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(V){if(V.markedSpans)for(var ie=0;ie<V.markedSpans.length;++ie){var fe=V.markedSpans[ie].marker;fe.readOnly&&(!l||Me(l,fe)==-1)&&(l||(l=[])).push(fe)}}),!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),S=0;S<u.length;++S){var k=u[S];if(!(Ce(k.to,x.from)<0||Ce(k.from,x.to)>0)){var z=[S,1],H=Ce(k.from,x.from),X=Ce(k.to,x.to);(H<0||!y.inclusiveLeft&&!H)&&z.push({from:k.from,to:x.from}),(X>0||!y.inclusiveRight&&!X)&&z.push({from:x.to,to:k.to}),u.splice.apply(u,z),S+=z.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 $a(n){return n.inclusiveLeft?-1:0}function Oa(n){return n.inclusiveRight?1:0}function Ku(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ce(l.from,u.from)||$a(n)-$a(i);if(g)return-g;var y=Ce(l.to,u.to)||Oa(n)-Oa(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||Ku(l,u.marker)<0)&&(l=u.marker);return l}function Sp(n){return xp(n,!0)}function Pa(n){return xp(n,!1)}function K1(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||Ku(l,g.marker)<0)&&(l=g.marker)}return l}function _p(n,i,a,l,u){var g=Pe(n,i),y=Jr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var k=S.marker.find(0),z=Ce(k.from,a)||$a(S.marker)-$a(u),H=Ce(k.to,l)||Oa(S.marker)-Oa(u);if(!(z>=0&&H<=0||z<=0&&H>=0)&&(z<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ce(k.to,a)>=0:Ce(k.to,a)>0)||z>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ce(k.from,l)<=0:Ce(k.from,l)<0)))return!0}}}function pr(n){for(var i;i=Sp(n);)n=i.find(-1,!0).line;return n}function X1(n){for(var i;i=Pa(n);)n=i.find(1,!0).line;return n}function Y1(n){for(var i,a;i=Pa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Xu(n,i){var a=Pe(n,i),l=pr(a);return a==l?i:C(l)}function kp(n,i){if(i>n.lastLine())return i;var a=Pe(n,i),l;if(!ki(n,a))return i;for(;l=Pa(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&&Yu(n,i,l))return!0}}}function Yu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Yu(n,l.line,Gs(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)&&Yu(n,i,u))return!0}function Qr(n){n=pr(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 Ra(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Sp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Pa(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 Zu(n){var i=n.display,a=n.doc;i.maxLine=Pe(a,a.first),i.maxLineLength=Ra(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ra(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,wp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return C(this)},cr(jo);function Z1(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&&Kn(n,u)}function J1(n){n.parent=null,bp(n)}var Q1={},ex={};function Cp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?ex:Q1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Tp(n,i){var a=D("span",null,null,v?"padding-right: .1px":null),l={pre:D("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=nx,xi(n.display.measure)&&(y=Qe(g,n.doc.direction))&&(l.addToken=ix(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);ox(g,l,fp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Re(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Re(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Aa(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 S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Lt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function tx(n){var i=_("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function nx(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?rx(i,n.trailingSpace):i,S=n.cm.state.specialChars,k=!1,z;if(!S.test(i))n.col+=i.length,z=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,z),h&&p<9&&(k=!0),n.pos+=i.length;else{z=document.createDocumentFragment();for(var H=0;;){S.lastIndex=H;var X=S.exec(i),V=X?X.index-H:i.length-H;if(V){var ie=document.createTextNode(x.slice(H,H+V));h&&p<9?z.appendChild(_("span",[ie])):z.appendChild(ie),n.map.push(n.pos,n.pos+V,ie),n.col+=V,n.pos+=V}if(!X)break;H+=V+1;var fe=void 0;if(X[0]==" "){var me=n.cm.options.tabSize,we=me-n.col%me;fe=z.appendChild(_("span",_e(we),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),n.col+=we}else X[0]=="\r"||X[0]==`
25
+ `?(fe=z.appendChild(_("span",X[0]=="\r"?"␍":"␤","cm-invalidchar")),fe.setAttribute("cm-text",X[0]),n.col+=1):(fe=n.cm.options.specialCharPlaceholder(X[0]),fe.setAttribute("cm-text",X[0]),h&&p<9?z.appendChild(_("span",[fe])):z.appendChild(fe),n.col+=1);n.map.push(n.pos,n.pos+1,fe),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Te=a||"";l&&(Te+=l),u&&(Te+=u);var xe=_("span",[z],Te,g);if(y)for(var $e in y)y.hasOwnProperty($e)&&$e!="style"&&$e!="class"&&xe.setAttribute($e,y[$e]);return n.content.appendChild(xe)}n.content.appendChild(z)}}function rx(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 ix(n,i){return function(a,l,u,g,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,z=k+l.length;;){for(var H=void 0,X=0;X<i.length&&(H=i[X],!(H.to>k&&H.from<=k));X++);if(H.to>=z)return n(a,l,u,g,y,x,S);n(a,l.slice(0,H.to-k),u,g,null,x,S),g=null,l=l.slice(H.to-k),k=H.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 ox(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]),Cp(a[y+1],i.cm.options));return}for(var x=u.length,S=0,k=1,z="",H,X,V=0,ie,fe,me,we,Te;;){if(V==S){ie=fe=me=X="",Te=null,we=null,V=1/0;for(var xe=[],$e=void 0,Fe=0;Fe<l.length;++Fe){var ze=l[Fe],Ze=ze.marker;if(Ze.type=="bookmark"&&ze.from==S&&Ze.widgetNode)xe.push(Ze);else if(ze.from<=S&&(ze.to==null||ze.to>S||Ze.collapsed&&ze.to==S&&ze.from==S)){if(ze.to!=null&&ze.to!=S&&V>ze.to&&(V=ze.to,fe=""),Ze.className&&(ie+=" "+Ze.className),Ze.css&&(X=(X?X+";":"")+Ze.css),Ze.startStyle&&ze.from==S&&(me+=" "+Ze.startStyle),Ze.endStyle&&ze.to==V&&($e||($e=[])).push(Ze.endStyle,ze.to),Ze.title&&((Te||(Te={})).title=Ze.title),Ze.attributes)for(var xt in Ze.attributes)(Te||(Te={}))[xt]=Ze.attributes[xt];Ze.collapsed&&(!we||Ku(we.marker,Ze)<0)&&(we=ze)}else ze.from>S&&V>ze.from&&(V=ze.from)}if($e)for(var Yt=0;Yt<$e.length;Yt+=2)$e[Yt+1]==V&&(fe+=" "+$e[Yt]);if(!we||we.from==S)for(var At=0;At<xe.length;++At)Ep(i,0,xe[At]);if(we&&(we.from||0)==S){if(Ep(i,(we.to==null?x+1:we.to)-S,we.marker,we.from==null),we.to==null)return;we.to==S&&(we=!1)}}if(S>=x)break;for(var Fn=Math.min(x,V);;){if(z){var Sn=S+z.length;if(!we){var Ft=Sn>Fn?z.slice(0,Fn-S):z;i.addToken(i,Ft,H?H+ie:ie,me,S+Ft.length==V?fe:"",X,Te)}if(Sn>=Fn){z=z.slice(Fn-S),S=Fn;break}S=Sn,me=""}z=u.slice(g,g=a[k++]),H=Cp(a[k++],i.cm.options)}}}function Ap(n,i,a){this.line=i,this.rest=Y1(i),this.size=this.rest?C(he(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,Pe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Vo=null;function sx(n){Vo?Vo.ops.push(n):n.ownsGroup=Vo={ops:[n],delayedCallbacks:[]}}function lx(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 ax(n,i){var a=n.ownsGroup;if(a)try{lx(a)}finally{Vo=null,i(a)}}var Ks=null;function Gt(n,i){var a=Yr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Vo?u=Vo.delayedCallbacks:Ks?u=Ks:(u=Ks=[],setTimeout(cx,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function cx(){var n=Ks;Ks=null;for(var i=0;i<n.length;++i)n[i]()}function Mp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?fx(n,i):g=="gutter"?Np(n,i,a,l):g=="class"?Ju(n,i):g=="widget"&&dx(n,i,l)}i.changes=null}function Xs(n){return n.node==n.text&&(n.node=_("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 ux(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=Xs(i);i.background=l.insertBefore(_("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Lp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Tp(n,i)}function fx(n,i){var a=i.text.className,l=Lp(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,Ju(n,i)):a&&(i.text.className=a)}function Ju(n,i){ux(n,i),i.line.wrapClass?Xs(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=Xs(i);i.gutterBackground=_("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=Xs(i),x=i.gutter=_("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(_("div",ve(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var S=0;S<n.display.gutterSpecs.length;++S){var k=n.display.gutterSpecs[S].className,z=g.hasOwnProperty(k)&&g[k];z&&x.appendChild(_("div",[z],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function dx(n,i,a){i.alignable&&(i.alignable=null);for(var l=ee("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 hx(n,i,a,l){var u=Lp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Ju(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=Xs(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],k=_("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),px(S,k,a,l),n.display.input.setUneditable(k),u&&S.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Gt(S,"redraw")}}function px(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 Ys(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!re(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,_("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ei(n,i){for(var a=Ws(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 Da(n){return n.lineSpace.offsetTop}function Qu(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Pp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=O(n.measure,_("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 Rr(n){return I-n.display.nativeBarWidth}function lo(n){return n.display.scroller.clientWidth-Rr(n)-n.display.barWidth}function ef(n){return n.display.scroller.clientHeight-Rr(n)-n.display.barHeight}function gx(n,i,a){var l=n.options.lineWrapping,u=l&&lo(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 S=y[x],k=y[x+1];Math.abs(S.bottom-k.bottom)>2&&g.push((S.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Rp(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 vx(n,i){i=pr(i);var a=C(i),l=n.display.externalMeasured=new Ap(n.doc,i,a);l.lineN=a;var u=l.built=Tp(n,l);return l.text=u.pre,O(n.display.lineMeasure,u.pre),l}function zp(n,i,a,l){return zr(n,Go(n,i),a,l)}function tf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[uo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Go(n,i){var a=C(i),l=tf(n,a);l&&!l.text?l=null:l&&l.changes&&(Mp(n,l,a,lf(n)),n.curOp.forceUpdate=!0),l||(l=vx(n,i));var u=Rp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function zr(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||(gx(n,i.view,i.rect),i.hasHeights=!0),y=yx(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 Ip(n,i,a){for(var l,u,g,y,x,S,k=0;k<n.length;k+=3)if(x=n[k],S=n[k+1],i<x?(u=0,g=1,y="left"):i<S?(u=i-x,g=u+1):(k==n.length-3||i==S&&n[k+3]>i)&&(g=S-x,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[k+2],x==S&&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==S-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:S}}function mx(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 yx(n,i,a,l){var u=Ip(i.map,a,l),g=u.node,y=u.start,x=u.end,S=u.collapse,k;if(g.nodeType==3){for(var z=0;z<4;z++){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=mx(j(g,y,x).getClientRects(),l),k.left||k.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(k=bx(n.display.measure,k))}else{y>0&&(S=l="right");var H;n.options.lineWrapping&&(H=g.getClientRects()).length>1?k=H[l=="right"?H.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var X=g.parentNode.getClientRects()[0];X?k={left:X.left,right:X.left+Xo(n.display),top:X.top,bottom:X.bottom}:k=Dp}for(var V=k.top-i.rect.top,ie=k.bottom-i.rect.top,fe=(V+ie)/2,me=i.view.measure.heights,we=0;we<me.length-1&&!(fe<me[we]);we++);var Te=we?me[we-1]:0,xe=me[we],$e={left:(S=="right"?k.right:k.left)-i.rect.left,right:(S=="left"?k.left:k.right)-i.rect.left,top:Te,bottom:xe};return!k.left&&!k.right&&($e.bogus=!0),n.options.singleCursorHeightPerLine||($e.rtop=V,$e.rbottom=ie),$e}function bx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Uu(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,$(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Fp(n.display.view[i])}function Zs(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&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Wp(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function nf(n){var i=pr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Ys(a[u]));return l}function Ia(n,i,a,l,u){if(!u){var g=nf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=Qr(i);if(l=="local"?y+=Da(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Wp(et(n)));var S=x.left+(l=="window"?0:Bp(et(n)));a.left+=S,a.right+=S}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(et(n)),u-=Wp(et(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 Fa(n,i,a,l,u){return l||(l=Pe(n.doc,i.line)),Ia(n,l,zp(n,l,i.ch,u),a)}function gr(n,i,a,l,u,g){l=l||Pe(n.doc,i.line),u||(u=Go(n,l));function y(ie,fe){var me=zr(n,u,ie,fe?"right":"left",g);return fe?me.left=me.right:me.right=me.left,Ia(n,l,me,a)}var x=Qe(l,n.doc.direction),S=i.ch,k=i.sticky;if(S>=l.text.length?(S=l.text.length,k="before"):S<=0&&(S=0,k="after"),!x)return y(k=="before"?S-1:S,k=="before");function z(ie,fe,me){var we=x[fe],Te=we.level==1;return y(me?ie-1:ie,Te!=me)}var H=zt(x,S,k),X=$r,V=z(S,H,k=="before");return X!=null&&(V.other=z(S,X,k!="before")),V}function Up(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Xo(n.display)*i.ch);var l=Pe(n.doc,i.line),u=Qr(l)+Da(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function rf(n,i,a,l,u){var g=ne(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function of(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return rf(l.first,0,null,-1,-1);var u=F(l,a),g=l.first+l.size-1;if(u>g)return rf(l.first+l.size-1,Pe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Pe(l,u);;){var x=wx(n,y,u,i,a),S=K1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var k=S.find(1);if(k.line==u)return k;y=Pe(l,u=k.line)}}function jp(n,i,a,l){l-=nf(i);var u=i.text.length,g=It(function(y){return zr(n,a,y-1).bottom<=l},u,0);return u=It(function(y){return zr(n,a,y).top>l},g,u),{begin:g,end:u}}function Vp(n,i,a,l){a||(a=Go(n,i));var u=Ia(n,i,zr(n,a,l),"line").top;return jp(n,i,a,u)}function sf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function wx(n,i,a,l,u){u-=Qr(i);var g=Go(n,i),y=nf(i),x=0,S=i.text.length,k=!0,z=Qe(i,n.doc.direction);if(z){var H=(n.options.lineWrapping?Sx:xx)(n,i,a,g,z,l,u);k=H.level!=1,x=k?H.from:H.to-1,S=k?H.to:H.from-1}var X=null,V=null,ie=It(function(Fe){var ze=zr(n,g,Fe);return ze.top+=y,ze.bottom+=y,sf(ze,l,u,!1)?(ze.top<=u&&ze.left<=l&&(X=Fe,V=ze),!0):!1},x,S),fe,me,we=!1;if(V){var Te=l-V.left<V.right-l,xe=Te==k;ie=X+(xe?0:1),me=xe?"after":"before",fe=Te?V.left:V.right}else{!k&&(ie==S||ie==x)&&ie++,me=ie==0?"after":ie==i.text.length?"before":zr(n,g,ie-(k?1:0)).bottom+y<=u==k?"after":"before";var $e=gr(n,ne(a,ie,me),"line",i,g);fe=$e.left,we=u<$e.top?-1:u>=$e.bottom?1:0}return ie=jt(i.text,ie,1),rf(a,ie,me,we,l-fe)}function xx(n,i,a,l,u,g,y){var x=It(function(H){var X=u[H],V=X.level!=1;return sf(gr(n,ne(a,V?X.to:X.from,V?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[x];if(x>0){var k=S.level!=1,z=gr(n,ne(a,k?S.from:S.to,k?"after":"before"),"line",i,l);sf(z,g,y,!0)&&z.top>y&&(S=u[x-1])}return S}function Sx(n,i,a,l,u,g,y){var x=jp(n,i,l,y),S=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var z=null,H=null,X=0;X<u.length;X++){var V=u[X];if(!(V.from>=k||V.to<=S)){var ie=V.level!=1,fe=zr(n,l,ie?Math.min(k,V.to)-1:Math.max(S,V.from)).right,me=fe<g?g-fe+1e9:fe-g;(!z||H>me)&&(z=V,H=me)}}return z||(z=u[u.length-1]),z.from<S&&(z={from:S,to:z.to,level:z.level}),z.to>k&&(z={from:z.from,to:k,level:z.level}),z}var ao;function Ko(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ao==null){ao=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ao.appendChild(document.createTextNode("x")),ao.appendChild(_("br"));ao.appendChild(document.createTextNode("x"))}O(n.measure,ao);var a=ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),$(n.measure),a||1}function Xo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=_("span","xxxxxxxxxx"),a=_("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 lf(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:af(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function af(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Gp(n){var i=Ko(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Xo(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 cf(n){var i=n.doc,a=Gp(n);i.iter(function(l){var u=a(l);u!=l.height&&Kn(l,u)})}function co(n,i,a,l){var u=n.display;if(!a&&Ws(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 S=of(n,g,y),k;if(l&&S.xRel>0&&(k=Pe(n.doc,S.line).text).length==S.ch){var z=de(k,k.length,n.options.tabSize)-k.length;S=ne(S.line,Math.max(0,Math.round((g-Pp(n.display).left)/Xo(n.display))-z))}return S}function uo(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 wn(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&&Xu(n.doc,i)<u.viewTo&&Ti(n);else if(a<=u.viewFrom)Jr&&kp(n.doc,a+l)>u.viewFrom?Ti(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ti(n);else if(i<=u.viewFrom){var g=Ha(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ti(n)}else if(a>=u.viewTo){var y=Ha(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ti(n)}else{var x=Ha(n,i,i,-1),S=Ha(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(za(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Ti(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ci(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[uo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);Me(y,a)==-1&&y.push(a)}}}function Ti(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ha(n,i,a,l){var u=uo(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,S=0;S<u;S++)x+=y[S].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(;Xu(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 _x(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(uo(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,uo(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 Js(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 S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var k=S.empty();if(y){var z=y(n,S);z&&uf(n,z,u)}else(k||n.options.showCursorWhenSelecting)&&uf(n,S.head,u);k||kx(n,S,g)}}return l}function uf(n,i,a){var l=gr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(_("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=Fa(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(_("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 Ba(n,i){return n.top-i.top||n.left-i.left}function kx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Pp(n.display),x=y.left,S=Math.max(l.sizerWidth,lo(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function z(xe,$e,Fe,ze){$e<0&&($e=0),$e=Math.round($e),ze=Math.round(ze),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
26
26
  top: `+$e+"px; width: "+(Fe??S-xe)+`px;
27
- height: `+(ze-$e)+"px"))}function H(xe,$e,Fe){var ze=Pe(u,xe),Ze=ze.text.length,xt,Yt;function At(Ft,_n){return Fa(n,ne(xe,Ft),"div",ze,_n)}function Fn(Ft,_n,nn){var qt=Vp(n,ze,null,Ft),Ht=_n=="ltr"==(nn=="after")?"left":"right",Ot=nn=="after"?qt.begin:qt.end-(/\s/.test(ze.text.charAt(qt.end-1))?2:1);return At(Ot,Ht)[Ht]}var Sn=Qe(ze,u.direction);return Rn(Sn,$e||0,Fe??Ze,function(Ft,_n,nn,qt){var Ht=nn=="ltr",Ot=At(Ft,Ht?"left":"right"),kn=At(_n-1,Ht?"right":"left"),as=$e==null&&Ft==0,$i=Fe==null&&_n==Ze,an=qt==0,Dr=!Sn||qt==Sn.length-1;if(kn.top-Ot.top<=3){var Zt=(k?as:$i)&&an,Df=(k?$i:as)&&Dr,ri=Zt?x:(Ht?Ot:kn).left,vo=Df?S:(Ht?kn:Ot).right;z(ri,Ot.top,vo-ri,Ot.bottom)}else{var mo,dn,cs,If;Ht?(mo=k&&as&&an?x:Ot.left,dn=k?S:Fn(Ft,nn,"before"),cs=k?x:Fn(_n,nn,"after"),If=k&&$i&&Dr?S:kn.right):(mo=k?Fn(Ft,nn,"before"):x,dn=!k&&as&&an?S:Ot.right,cs=!k&&$i&&Dr?x:kn.left,If=k?Fn(_n,nn,"after"):S),z(mo,Ot.top,dn-mo,Ot.bottom),Ot.bottom<kn.top&&z(x,Ot.bottom,null,kn.top),z(cs,kn.top,If-cs,kn.bottom)}(!xt||Ba(Ot,xt)<0)&&(xt=Ot),Ba(kn,xt)<0&&(xt=kn),(!Yt||Ba(Ot,Yt)<0)&&(Yt=Ot),Ba(kn,Yt)<0&&(Yt=kn)}),{start:xt,end:Yt}}var X=i.from(),V=i.to();if(X.line==V.line)H(X.line,X.ch,V.ch);else{var ie=Pe(u,X.line),fe=Pe(u,V.line),me=pr(ie)==pr(fe),we=H(X.line,X.ch,me?ie.text.length+1:null).end,Te=H(V.line,me?0:null,V.ch).start;me&&(we.top<Te.top-2?(z(we.right,we.top,null,we.bottom),z(x,Te.top,Te.left,Te.bottom)):z(we.right,we.top,Te.left-we.right,we.bottom)),we.bottom<Te.top&&z(x,we.bottom,null,Te.top)}a.appendChild(g)}function ff(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()||Yo(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||hf(n))}function df(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Yo(n))},100)}function hf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Lt(n,"focus",n,i),n.state.focused=!0,be(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()),ff(n))}function Yo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Lt(n,"blur",n,i),n.state.focused=!1,R(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Wa(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],S=n.options.lineWrapping,k=void 0,z=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var H=x.node.offsetTop+x.node.offsetHeight;k=H-a,a=H}else{var X=x.node.getBoundingClientRect();k=X.bottom-X.top,!S&&x.text.firstChild&&(z=x.text.firstChild.getBoundingClientRect().right-X.left-1)}var V=x.line.height-k;if((V>.005||V<-.005)&&(u<l&&(g-=V),Kn(x.line,k),Zp(x.line),x.rest))for(var ie=0;ie<x.rest.length;ie++)Zp(x.rest[ie]);if(z>n.display.sizerWidth){var fe=Math.ceil(z/Xo(n.display));fe>n.display.maxLineLength&&(n.display.maxLineLength=fe,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 qa(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Da(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=F(i,l),y=F(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<g?(g=x,y=F(i,Qr(Pe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(g=F(i,Qr(Pe(i,S))-n.wrapper.clientHeight),y=S)}return{from:g,to:Math.max(y,g+1)}}function kx(n,i){if(!Nt(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&&!M){var y=_("div","​",null,`position: absolute;
27
+ height: `+(ze-$e)+"px"))}function H(xe,$e,Fe){var ze=Pe(u,xe),Ze=ze.text.length,xt,Yt;function At(Ft,_n){return Fa(n,ne(xe,Ft),"div",ze,_n)}function Fn(Ft,_n,nn){var qt=Vp(n,ze,null,Ft),Ht=_n=="ltr"==(nn=="after")?"left":"right",Ot=nn=="after"?qt.begin:qt.end-(/\s/.test(ze.text.charAt(qt.end-1))?2:1);return At(Ot,Ht)[Ht]}var Sn=Qe(ze,u.direction);return Rn(Sn,$e||0,Fe??Ze,function(Ft,_n,nn,qt){var Ht=nn=="ltr",Ot=At(Ft,Ht?"left":"right"),kn=At(_n-1,Ht?"right":"left"),as=$e==null&&Ft==0,$i=Fe==null&&_n==Ze,an=qt==0,Dr=!Sn||qt==Sn.length-1;if(kn.top-Ot.top<=3){var Zt=(k?as:$i)&&an,Df=(k?$i:as)&&Dr,ri=Zt?x:(Ht?Ot:kn).left,vo=Df?S:(Ht?kn:Ot).right;z(ri,Ot.top,vo-ri,Ot.bottom)}else{var mo,dn,cs,If;Ht?(mo=k&&as&&an?x:Ot.left,dn=k?S:Fn(Ft,nn,"before"),cs=k?x:Fn(_n,nn,"after"),If=k&&$i&&Dr?S:kn.right):(mo=k?Fn(Ft,nn,"before"):x,dn=!k&&as&&an?S:Ot.right,cs=!k&&$i&&Dr?x:kn.left,If=k?Fn(_n,nn,"after"):S),z(mo,Ot.top,dn-mo,Ot.bottom),Ot.bottom<kn.top&&z(x,Ot.bottom,null,kn.top),z(cs,kn.top,If-cs,kn.bottom)}(!xt||Ba(Ot,xt)<0)&&(xt=Ot),Ba(kn,xt)<0&&(xt=kn),(!Yt||Ba(Ot,Yt)<0)&&(Yt=Ot),Ba(kn,Yt)<0&&(Yt=kn)}),{start:xt,end:Yt}}var X=i.from(),V=i.to();if(X.line==V.line)H(X.line,X.ch,V.ch);else{var ie=Pe(u,X.line),fe=Pe(u,V.line),me=pr(ie)==pr(fe),we=H(X.line,X.ch,me?ie.text.length+1:null).end,Te=H(V.line,me?0:null,V.ch).start;me&&(we.top<Te.top-2?(z(we.right,we.top,null,we.bottom),z(x,Te.top,Te.left,Te.bottom)):z(we.right,we.top,Te.left-we.right,we.bottom)),we.bottom<Te.top&&z(x,we.bottom,null,Te.top)}a.appendChild(g)}function ff(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()||Yo(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||hf(n))}function df(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Yo(n))},100)}function hf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Lt(n,"focus",n,i),n.state.focused=!0,be(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()),ff(n))}function Yo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Lt(n,"blur",n,i),n.state.focused=!1,R(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Wa(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],S=n.options.lineWrapping,k=void 0,z=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var H=x.node.offsetTop+x.node.offsetHeight;k=H-a,a=H}else{var X=x.node.getBoundingClientRect();k=X.bottom-X.top,!S&&x.text.firstChild&&(z=x.text.firstChild.getBoundingClientRect().right-X.left-1)}var V=x.line.height-k;if((V>.005||V<-.005)&&(u<l&&(g-=V),Kn(x.line,k),Zp(x.line),x.rest))for(var ie=0;ie<x.rest.length;ie++)Zp(x.rest[ie]);if(z>n.display.sizerWidth){var fe=Math.ceil(z/Xo(n.display));fe>n.display.maxLineLength&&(n.display.maxLineLength=fe,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 qa(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Da(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=F(i,l),y=F(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<g?(g=x,y=F(i,Qr(Pe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(g=F(i,Qr(Pe(i,S))-n.wrapper.clientHeight),y=S)}return{from:g,to:Math.max(y,g+1)}}function Cx(n,i){if(!Nt(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&&!M){var y=_("div","​",null,`position: absolute;
28
28
  top: `+(i.top-a.viewOffset-Da(n.display))+`px;
29
29
  height: `+(i.bottom-i.top+Rr(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 Cx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ne(i.line,i.ch+1,"before"):i,i=i.ch?ne(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=gr(n,i),S=!a||a==i?x:gr(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var k=pf(n,u),z=n.doc.scrollTop,H=n.doc.scrollLeft;if(k.scrollTop!=null&&(el(n,k.scrollTop),Math.abs(n.doc.scrollTop-z)>1&&(y=!0)),k.scrollLeft!=null&&(fo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-H)>1&&(y=!0)),!y)break}return u}function Tx(n,i){var a=pf(n,i);a.scrollTop!=null&&el(n,a.scrollTop),a.scrollLeft!=null&&fo(n,a.scrollLeft)}function pf(n,i){var a=n.display,l=Ko(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=ef(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+Qu(a),S=i.top<l,k=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var z=Math.min(i.top,(k?x:i.bottom)-g);z!=u&&(y.scrollTop=z)}var H=n.options.fixedGutter?0:a.gutters.offsetWidth,X=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-H,V=lo(n)-a.gutters.offsetWidth,ie=i.right-i.left>V;return ie&&(i.right=i.left+V),i.left<10?y.scrollLeft=0:i.left<X?y.scrollLeft=Math.max(0,i.left+H-(ie?0:10)):i.right>V+X-3&&(y.scrollLeft=i.right+(ie?0:10)-V),y}function gf(n,i){i!=null&&(Ua(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Zo(n){Ua(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Qs(n,i,a){(i!=null||a!=null)&&Ua(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ex(n,i){Ua(n),n.curOp.scrollToPos=i}function Ua(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=pf(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});Qs(n,u.scrollLeft,u.scrollTop)}function el(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||mf(n,{top:i}),Qp(n,i,!0),s&&mf(n),rl(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 fo(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 tl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Qu(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+Rr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ho=function(n,i,a){this.cm=a;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Ie(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Ie(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ho.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}},ho.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ho.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ho.prototype.zeroWidthHack=function(){var n=B&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ne,this.disableVert=new Ne},ho.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)},ho.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var nl=function(){};nl.prototype.update=function(){return{bottom:0,right:0}},nl.prototype.setScrollLeft=function(){},nl.prototype.setScrollTop=function(){},nl.prototype.clear=function(){};function Jo(n,i){i||(i=tl(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&&Wa(n),eg(n,tl(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:ho,null:nl};function ng(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&R(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),Ie(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"?fo(n,i):el(n,i)},n),n.display.scrollbars.addClass&&be(n.display.wrapper,n.display.scrollbars.addClass)}var Ax=0;function po(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:++Ax,markArrays:null},ox(n.curOp)}function go(n){var i=n.curOp;i&&lx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Mx(a)})}function Mx(n){for(var i=n.ops,a=0;a<i.length;a++)Lx(i[a]);for(var l=0;l<i.length;l++)Nx(i[l]);for(var u=0;u<i.length;u++)$x(i[u]);for(var g=0;g<i.length;g++)Ox(i[g]);for(var y=0;y<i.length;y++)Px(i[y])}function Lx(n){var i=n.cm,a=i.display;zx(i),n.updateMaxLine&&Zu(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 ja(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Nx(n){n.updatedDisplay=n.mustUpdate&&vf(n.cm,n.update)}function $x(n){var i=n.cm,a=i.display;n.updatedDisplay&&Wa(i),n.barMeasure=tl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=zp(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+Rr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-lo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Ox(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&fo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==pe(Ye(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Jo(i,n.barMeasure),n.updatedDisplay&&bf(i,n.barMeasure),n.selectionChanged&&ff(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Yp(n.cm)}function Px(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&&fo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Cx(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);kx(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Lt(g[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Lt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Lt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function In(n,i){if(n.curOp)return i();po(n);try{return i()}finally{go(n)}}function Kt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);po(n);try{return i.apply(n,arguments)}finally{go(n)}}}function fn(n){return function(){if(this.curOp)return n.apply(this,arguments);po(this);try{return n.apply(this,arguments)}finally{go(this)}}}function Xt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);po(i);try{return n.apply(this,arguments)}finally{go(i)}}}function rl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,Z(Rx,n))}function Rx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Vs(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?Or(i.mode,l.state):null,S=up(n,g,l,!0);x&&(l.state=x),g.styles=S.styles;var k=g.styleClasses,z=S.classes;z?g.styleClasses=z:k&&(g.styleClasses=null);for(var H=!y||y.length!=g.styles.length||k!=z&&(!k||!z||k.bgClass!=z.bgClass||k.textClass!=z.textClass),X=0;!H&&X<y.length;++X)H=y[X]!=g.styles[X];H&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&ju(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return rl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&In(n,function(){for(var g=0;g<u.length;g++)Ci(n,u[g],"text")})}}var ja=function(n,i,a){var l=n.display;this.viewport=i,this.visible=qa(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=lo(n),this.force=a,this.dims=lf(n),this.events=[]};ja.prototype.signal=function(n,i){Dn(n,i)&&this.events.push(arguments)},ja.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Lt.apply(null,this.events[n])};function zx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Rr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Rr(n)+"px",i.scrollbarsClipped=!0)}function Dx(n){if(n.hasFocus())return null;var i=pe(Ye(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Ae(n).getSelection();l.anchorNode&&l.extend&&re(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Ix(n){if(!(!n||!n.activeElt||n.activeElt==pe(Xe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&re(document.body,n.anchorNode)&&re(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 vf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ti(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)&&(Ti(n),i.dims=lf(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=Xu(n.doc,g),y=kp(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Sx(n,g,y),a.viewOffset=Qr(Pe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Kp(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=Dx(n);return S>4&&(a.lineDiv.style.display="none"),Fx(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Ix(k),$(a.cursorDiv),$(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,rl(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==lo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Qu(n.display)-ef(n),a.top)}),i.visible=qa(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=qa(n.display,n.doc,a));if(!vf(n,i))break;Wa(n);var u=tl(n);Js(n),Jo(n,u),bf(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 mf(n,i){var a=new ja(n,i);if(vf(n,a)){Wa(n),rg(n,a);var l=tl(n);Js(n),Jo(n,l),bf(n,l),a.finish()}}function Fx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ie){var fe=ie.nextSibling;return v&&B&&n.display.currentWheelTarget==ie?ie.style.display="none":ie.parentNode.removeChild(ie),fe}for(var S=l.view,k=l.viewFrom,z=0;z<S.length;z++){var H=S[z];if(!H.hidden)if(!H.node||H.node.parentNode!=g){var X=dx(n,H,k,a);g.insertBefore(X,y)}else{for(;y!=H.node;)y=x(y);var V=u&&i!=null&&i<=k&&H.lineNumber;H.changes&&(Me(H.changes,"gutter")>-1&&(V=!1),Mp(n,H,k,a)),V&&($(H.lineNumber),H.lineNumber.appendChild(document.createTextNode(ve(n.options,k)))),y=H.node.nextSibling}k+=H.size}for(;y;)y=x(y)}function yf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Gt(n,"gutterChanged",n)}function bf(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+Rr(n)+"px"}function ig(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=af(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 S=0;S<x.length;S++)x[S].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=ve(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(_("div",[_("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",yf(n.display),!0}return!1}function wf(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;$(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(_("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",yf(n)}function il(n){sg(n.display),wn(n),ig(n)}function Hx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=D("div",null,"CodeMirror-code"),u.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=_("div",null,"CodeMirror-cursors"),u.measure=_("div",null,"CodeMirror-measure"),u.lineMeasure=_("div",null,"CodeMirror-measure"),u.lineSpace=D("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=D("div",[u.lineSpace],"CodeMirror-lines");u.mover=_("div",[g],null,"position: relative"),u.sizer=_("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=_("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=_("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=_("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=_("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&&E)&&(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=wf(l.gutters,l.lineNumbers),sg(u),a.init(u)}var Va=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 Bx(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,S=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(l&&S||u&&k){if(u&&B&&v){e:for(var z=i.target,H=y.view;z!=x;z=z.parentNode)for(var X=0;X<H.length;X++)if(H[X].node==z){n.display.currentWheelTarget=z;break e}}if(l&&!s&&!A&&g!=null){u&&k&&el(n,Math.max(0,x.scrollTop+u*g)),fo(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&k)&&sn(i),y.wheelStartX=null;return}if(u&&g!=null){var V=u*g,ie=n.doc.scrollTop,fe=ie+y.wrapper.clientHeight;V<0?ie=Math.max(0,ie+V-50):fe=Math.min(n.doc.height,fe+V+50),mf(n,{top:ie,bottom:fe})}Va<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 me=x.scrollLeft-y.wheelStartX,we=x.scrollTop-y.wheelStartY,Te=we&&y.wheelDY&&we/y.wheelDY||me&&y.wheelDX&&me/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Te&&(ti=(ti*Va+Te)/(Va+1),++Va)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Xn=function(n,i){this.ranges=n,this.primIndex=i};Xn.prototype.primary=function(){return this.ranges[this.primIndex]},Xn.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},Xn.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 Xn(n,this.primIndex)},Xn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Xn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ce(i,l.from())>=0&&Ce(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return Uo(this.anchor,this.head)},dt.prototype.to=function(){return bn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(X,V){return Ce(X.from(),V.from())}),a=Me(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],S=Ce(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var k=Uo(x.from(),y.from()),z=bn(x.to(),y.to()),H=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(H?z:k,H?k:z))}}return new Xn(i,a)}function Ei(n,i){return new Xn([new dt(n,i||n)],0)}function Ai(n){return n.text?ne(n.from.line+n.text.length-1,he(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function cg(n,i){if(Ce(n,i.from)<0)return n;if(Ce(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),ne(a,l)}function xf(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 vr(n.cm,a,n.sel.primIndex)}function ug(n,i,a){return n.line==i.line?ne(a.line,n.ch-i.ch+a.ch):ne(a.line+(n.line-i.line),n.ch)}function Wx(n,i,a){for(var l=[],u=ne(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],S=ug(x.from,u,g),k=ug(Ai(x),u,g);if(u=x.to,g=k,a=="around"){var z=n.sel.ranges[y],H=Ce(z.head,z.anchor)<0;l[y]=new dt(H?k:S,H?S:k)}else l[y]=new dt(S,S)}return new Xn(l,n.sel.primIndex)}function Sf(n){n.doc.mode=Bo(n.options,n.doc.modeOption),ol(n)}function ol(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,rl(n,100),n.state.modeGen++,n.curOp&&wn(n)}function fg(n,i){return i.from.ch==0&&i.to.ch==0&&he(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function _f(n,i,a,l){function u(Te){return a?a[Te]:null}function g(Te,xe,$e){Y1(Te,xe,$e,l),Gt(Te,"change",Te,i)}function y(Te,xe){for(var $e=[],Fe=Te;Fe<xe;++Fe)$e.push(new jo(k[Fe],u(Fe),l));return $e}var x=i.from,S=i.to,k=i.text,z=Pe(n,x.line),H=Pe(n,S.line),X=he(k),V=u(k.length-1),ie=S.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 fe=y(0,k.length-1);g(H,H.text,V),ie&&n.remove(x.line,ie),fe.length&&n.insert(x.line,fe)}else if(z==H)if(k.length==1)g(z,z.text.slice(0,x.ch)+X+z.text.slice(S.ch),V);else{var me=y(1,k.length-1);me.push(new jo(X+z.text.slice(S.ch),V,l)),g(z,z.text.slice(0,x.ch)+k[0],u(0)),n.insert(x.line+1,me)}else if(k.length==1)g(z,z.text.slice(0,x.ch)+k[0]+H.text.slice(S.ch),u(0)),n.remove(x.line+1,ie);else{g(z,z.text.slice(0,x.ch)+k[0],u(0)),g(H,X+H.text.slice(S.ch),V);var we=y(1,k.length-1);ie>1&&n.remove(x.line+1,ie-1),n.insert(x.line+1,we)}Gt(n,"change",n,i)}function Mi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=g){var k=y&&S.sharedHist;a&&!k||(i(S.doc,k),l(S.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,cf(n),Sf(n),hg(n),n.options.direction=i.direction,n.options.lineWrapping||Zu(n),n.options.mode=i.modeOption,wn(n)}function hg(n){(n.doc.direction=="rtl"?be:R)(n.display.lineDiv,"CodeMirror-rtl")}function qx(n){In(n,function(){hg(n),wn(n)})}function Ga(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 kf(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),Mi(n,function(l){return vg(l,a,i.from.line,i.to.line+1)},!0),a}function pg(n){for(;n.length;){var i=he(n);if(i.ranges)n.pop();else break}}function Ux(n,i){if(i)return pg(n.done),he(n.done);if(n.done.length&&!he(n.done).ranges)return he(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),he(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=Ux(u,u.lastOp==l)))x=he(y.changes),Ce(i.from,i.to)==0&&Ce(i.from,x.to)==0?x.to=Ai(i):y.changes.push(kf(n,i));else{var S=he(u.done);for((!S||!S.ranges)&&Ka(n.sel,u.done),y={changes:[kf(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||Lt(n,"historyAdded")}function jx(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 Vx(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||jx(n,g,he(u.done),i))?u.done[u.done.length-1]=i:Ka(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&pg(u.undone)}function Ka(n,i){var a=he(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 Gx(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 Kx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Gx(a[u]));return l}function mg(n,i){var a=Kx(n,i),l=Gu(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 S=y[x],k=0;k<g.length;++k)if(g[k].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function Qo(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Xn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var k=y[S],z=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var H in k)(z=H.match(/^spans_(\d+)$/))&&Me(i,Number(z[1]))>-1&&(he(x)[H]=k[H],delete k[H])}}return l}function Cf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ce(i,u)<0;g!=Ce(a,u)<0?(u=i,i=a):g!=Ce(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Xa(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),ln(n,new Xn([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=vr(n.cm,l,n.sel.primIndex);ln(n,y,a)}function Tf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,ln(n,vr(n.cm,u,n.sel.primIndex),l)}function bg(n,i,a,l){ln(n,Ei(i,a),l)}function Xx(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 Lt(n,"beforeSelectionChange",n,l),n.cm&&Lt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?vr(n.cm,l.ranges,l.ranges.length-1):i}function wg(n,i,a){var l=n.history.done,u=he(l);u&&u.ranges?(l[l.length-1]=i,Ya(n,i,a)):ln(n,i,a)}function ln(n,i,a){Ya(n,i,a),Vx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ya(n,i,a){(Dn(n,"beforeSelectionChange")||n.cm&&Dn(n.cm,"beforeSelectionChange"))&&(i=Xx(n,i,a));var l=a&&a.bias||(Ce(i.primary().head,n.sel.primary().head)<0?-1:1);xg(n,_g(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Zo(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,rr(n.cm)),Gt(n,"cursorActivity",n))}function Sg(n){xg(n,_g(n,n.sel,null,!1))}function _g(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],S=Za(n,y.anchor,x&&x.anchor,a,l),k=y.head==y.anchor?S:Za(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(S,k))}return u?vr(n.cm,u,i.primIndex):i}function es(n,i,a,l,u){var g=Pe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],S=x.marker,k="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,z="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(k?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(z?x.to>=i.ch:x.to>i.ch))){if(u&&(Lt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var H=S.find(l<0?1:-1),X=void 0;if((l<0?z:k)&&(H=kg(n,H,-l,H&&H.line==i.line?g:null)),H&&H.line==i.line&&(X=Ce(H,a))&&(l<0?X<0:X>0))return es(n,H,i,l,u)}var V=S.find(l<0?-1:1);return(l<0?k:z)&&(V=kg(n,V,l,V.line==i.line?g:null)),V?es(n,V,i,l,u):null}}return i}function Za(n,i,a,l,u){var g=l||1,y=es(n,i,a,g,u)||!u&&es(n,i,a,g,!0)||es(n,i,a,-g,u)||!u&&es(n,i,a,-g,!0);return y||(n.cantEdit=!0,ne(n.first,0))}function kg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,ne(i.line-1)):null:a>0&&i.ch==(l||Pe(n,i.line)).text.length?i.line<n.first+n.size-1?ne(i.line+1,0):null:new ne(i.line,i.ch+a)}function Cg(n){n.setSelection(ne(n.firstLine(),0),ne(n.lastLine()),K)}function Tg(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)}),Lt(n,"beforeChange",n,l),n.cm&&Lt(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 ts(n,i,a){if(n.cm){if(!n.cm.curOp)return Kt(n.cm,ts)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"))&&(i=Tg(n,i,!0),!i))){var l=mp&&!a&&V1(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]==""&&Ce(i.from,i.to)==0)){var a=xf(n,i);gg(n,i,a,n.cm?n.cm.curOp.id:NaN),sl(n,i,a,Gu(n,i));var l=[];Mi(n,function(u,g){!g&&Me(l,u.history)==-1&&(Ng(u.history,i),l.push(u.history)),sl(u,i,null,Gu(u,i))})}}function Ja(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,S=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(Ka(g,S),a&&!g.equals(n.sel)){ln(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var z=[];Ka(y,S),S.push({changes:z,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var H=Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"),X=function(fe){var me=g.changes[fe];if(me.origin=i,H&&!Tg(n,me,!1))return x.length=0,{};z.push(kf(n,me));var we=fe?xf(n,me):he(x);sl(n,me,we,mg(n,me)),!fe&&n.cm&&n.cm.scrollIntoView({from:me.from,to:Ai(me)});var Te=[];Mi(n,function(xe,$e){!$e&&Me(Te,xe.history)==-1&&(Ng(xe.history,me),Te.push(xe.history)),sl(xe,me,null,mg(xe,me))})},V=g.changes.length-1;V>=0;--V){var ie=X(V);if(ie)return ie.v}}}}function Ag(n,i){if(i!=0&&(n.first+=i,n.sel=new Xn(ge(n.sel.ranges,function(u){return new dt(ne(u.anchor.line+i,u.anchor.ch),ne(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){wn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ci(n.cm,l,"gutter")}}function sl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Kt(n.cm,sl)(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:ne(n.first,0),to:ne(i.to.line+u,i.to.ch),text:[he(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ne(g,Pe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Zr(n,i.from,i.to),a||(a=xf(n,i)),n.cm?Yx(n.cm,i,l):_f(n,i,l),Ya(n,a,K),n.cantEdit&&Za(n,ne(n.firstLine(),0))&&(n.cantEdit=!1)}}function Yx(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,S=g.line;n.options.lineWrapping||(S=C(pr(Pe(l,g.line))),l.iter(S,y.line+1,function(V){if(V==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&rr(n),_f(l,i,a,Gp(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(V){var ie=Ra(V);ie>u.maxLineLength&&(u.maxLine=V,u.maxLineLength=ie,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),F1(l,g.line),rl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?wn(n):g.line==y.line&&i.text.length==1&&!fg(n.doc,i)?Ci(n,g.line,"text"):wn(n,g.line,y.line+1,k);var z=Dn(n,"changes"),H=Dn(n,"change");if(H||z){var X={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};H&&Gt(n,"change",n,X),z&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(X)}n.display.selForContextMenu=null}function ns(n,i,a,l,u){var g;l||(l=a),Ce(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ts(n,{from:a,to:l,text:i,origin:u})}function Mg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Lg(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++)Mg(g.ranges[x].anchor,i,a,l),Mg(g.ranges[x].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var k=g.changes[S];if(a<k.from.line)k.from=ne(k.from.line+l,k.from.ch),k.to=ne(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;Lg(n.done,a,l,u),Lg(n.undone,a,l,u)}function ll(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Pe(n,ap(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&Ci(n.cm,u,a),g)}function al(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}al.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,Z1(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 cl(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}cl.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 al))){var x=[];this.collapse(x),this.children=[new al(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 S=new al(u.lines.slice(x,x+=25));u.height-=S.height,this.children.splice(++l,0,S),S.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 cl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Me(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new cl(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 ul=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};ul.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=Ys(this);Kn(a,Math.max(0,a.height-g)),n&&(In(n,function(){$g(n,a,-g),Ci(n,l,"widget")}),Gt(n,"lineWidgetCleared",n,this,l))}},ul.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Ys(this)-i;u&&(ki(this.doc,l)||Kn(l,l.height+u),a&&In(a,function(){a.curOp.forceUpdate=!0,$g(a,l,u),Gt(a,"lineWidgetChanged",a,n,C(l))}))},cr(ul);function $g(n,i,a){Qr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&gf(n,a)}function Zx(n,i,a,l){var u=new ul(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),ll(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 S=Qr(y)<n.scrollTop;Kn(y,y.height+Ys(u)),S&&gf(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,Li=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Og};Li.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&po(n),Dn(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=Gs(y.markedSpans,this);n&&!this.collapsed?Ci(n,C(y),"text"):n&&(x.to!=null&&(u=C(y)),x.from!=null&&(l=C(y))),y.markedSpans=W1(y.markedSpans,x),x.from==null&&this.collapsed&&!ki(this.doc,y)&&n&&Kn(y,Ko(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var k=pr(this.lines[S]),z=Ra(k);z>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=z,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&wn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Sg(n.doc)),n&&Gt(n,"markerCleared",n,this,l,u),i&&go(n),this.parent&&this.parent.clear()}},Li.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=Gs(g.markedSpans,this);if(y.from!=null&&(a=ne(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=ne(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Li.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||In(l,function(){var u=i.line,g=C(i.line),y=tf(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 S=Ys(a)-x;S&&Kn(u,u.height+S)}Gt(l,"markerChanged",l,n)})},Li.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Me(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Li.prototype.detachLine=function(n){if(this.lines.splice(Me(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},cr(Li);function rs(n,i,a,l,u){if(l&&l.shared)return Jx(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Kt(n.cm,rs)(n,i,a,l,u);var g=new Li(n,u),y=Ce(i,a);if(l&&ae(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=D("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(_p(n,i.line,i,a,g)||i.line!=a.line&&_p(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");B1()}g.addToHistory&&gg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,k;if(n.iter(x,a.line+1,function(H){S&&g.collapsed&&!S.options.lineWrapping&&pr(H)==S.display.maxLine&&(k=!0),g.collapsed&&x!=i.line&&Kn(H,0),q1(H,new Na(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(H){ki(n,H)&&Kn(H,0)}),g.clearOnEnter&&Ie(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(H1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Og,g.atomic=!0),S){if(k&&(S.curOp.updateMaxLine=!0),g.collapsed)wn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var z=i.line;z<=a.line;z++)Ci(S,z,"text");g.atomic&&Sg(S.doc),Gt(S,"markerAdded",S,g)}return g}var fl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};fl.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")}},fl.prototype.find=function(n,i){return this.primary.find(n,i)},cr(fl);function Jx(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[rs(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Mi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),g.push(rs(S,Ge(S,i),Ge(S,a),l,u));for(var k=0;k<S.linked.length;++k)if(S.linked[k].isParent)return;y=he(g)}),new fl(g,y)}function Pg(n){return n.findMarks(ne(n.first,0),n.clipPos(ne(n.lastLine())),function(i){return i.parent})}function Qx(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(Ce(g,y)){var x=rs(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function eS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Mi(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];Me(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var tS=0,xn=function(n,i,a,l,u){if(!(this instanceof xn))return new xn(n,i,a,l,u);a==null&&(a=0),cl.call(this,[new al([new jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ne(a,0);this.sel=Ei(g),this.history=new Ga(null),this.id=++tS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),_f(this,{from:g,to:g,text:n}),ln(this,Ei(g),K)};xn.prototype=De(cl.prototype,{constructor:xn,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=js(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Xt(function(n){var i=ne(this.first,0),a=this.first+this.size-1;ts(this,{from:i,to:ne(a,Pe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Qs(this.cm,0,0),ln(this,Ei(i),K)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,ns(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(se(this,n))return Pe(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pe(this,n)),pr(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"?ne(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){Xa(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=ge(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)),ln(this,vr(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))),ln(this,vr(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"&&Wx(this,l,i),S=l.length-1;S>=0;S--)ts(this,l[S]);x?wg(this,x):this.cm&&Zo(this.cm)}),undo:Xt(function(){Ja(this,"undo")}),redo:Xt(function(){Ja(this,"redo")}),undoSelection:Xt(function(){Ja(this,"undo",!0)}),redoSelection:Xt(function(){Ja(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 Ga(this.history),Mi(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:Qo(this.history.done),undone:Qo(this.history.undone)}},setHistory:function(n){var i=this.history=new Ga(this.history);i.done=Qo(n.done.slice(0),null,!0),i.undone=Qo(n.undone.slice(0),null,!0)},setGutterMarker:Xt(function(n,i,a){return ll(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&lt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Xt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&ll(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(!se(this,n)||(i=n,n=Pe(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 ll(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(ee(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Xt(function(n,i,a){return ll(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(ee(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 Zx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return rs(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),rs(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Pe(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 S=y[x];!(S.to!=null&&u==n.line&&n.ch>=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.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,ne(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 xn(js(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 xn(js(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}],Qx(l,Pg(this)),l},unlinkDoc:function(n){if(n instanceof Ct&&(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),eS(Pg(this));break}}if(n.history==this.history){var l=[n.id];Mi(n,function(u){return l.push(u.id)},!0),n.history=new Ga(null),n.history.done=Qo(this.history.done,l),n.history.undone=Qo(this.history.undone,l)}},iterLinkedDocs:function(n){Mi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):ir(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&&qx(this.cm))})}),xn.prototype.eachLine=xn.prototype.iter;var Rg=0;function nS(n){var i=this;if(zg(i),!(Nt(i,n)||ei(i.display,n))){sn(n),h&&(Rg=+new Date);var a=co(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 V={from:a,to:a,text:i.doc.splitLines(g.filter(function(ie){return ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};ts(i.doc,V),wg(i.doc,Ei(Ge(i.doc,a),Ge(i.doc,Ai(V))))})()},S=function(V,ie){if(i.options.allowDropFileTypes&&Me(i.options.allowDropFileTypes,V.type)==-1){x();return}var fe=new FileReader;fe.onerror=function(){return x()},fe.onload=function(){var me=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(me)){x();return}g[ie]=me,x()},fe.readAsText(V)},k=0;k<l.length;k++)S(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 z=n.dataTransfer.getData("Text");if(z){var H;if(i.state.draggingText&&!i.state.draggingText.copy&&(H=i.listSelections()),Ya(i.doc,Ei(a,a)),H)for(var X=0;X<H.length;++X)ns(i.doc,"",H[X].anchor,H[X].head,"drag");i.replaceSelection(z,"around","paste"),i.display.input.focus()}}catch{}}}}function rS(n,i){if(h&&(!n.state.draggingText||+new Date-Rg<100)){wi(i);return}if(!(Nt(n,i)||ei(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!N)){var a=_("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",A&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),A&&a.parentNode.removeChild(a)}}function iS(n,i){var a=co(n,i);if(a){var l=document.createDocumentFragment();uf(n,a,l),n.display.dragCursor||(n.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),O(n.display.dragCursor,l)}}function zg(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 Ig=!1;function oS(){Ig||(sS(),Ig=!0)}function sS(){var n;Ie(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Dg(lS)},100))}),Ie(window,"blur",function(){return Dg(Yo)})}function lS(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"},dl=0;dl<10;dl++)Ni[dl+48]=Ni[dl+96]=String(dl);for(var Qa=65;Qa<=90;Qa++)Ni[Qa]=String.fromCharCode(Qa);for(var hl=1;hl<=12;hl++)Ni[hl+111]=Ni[hl+63235]="F"+hl;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 aS(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 cS(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=ge(a.split(" "),aS),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 S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var k in i)n[k]=i[k];return n}function is(n,i,a,l){i=ec(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 is(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=is(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),(J?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(J?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Bg(n,i){if(A&&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 ec(n){return typeof n=="string"?ni[n]:n}function os(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ce(g.from,he(l).to)<=0;){var y=l.pop();if(Ce(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}In(n,function(){for(var x=l.length-1;x>=0;x--)ns(n.doc,"",l[x].from,l[x].to,"+delete");Zo(n)})}function Ef(n,i,a){var l=jt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Af(n,i,a){var l=Ef(n,i.ch,a);return l==null?null:new ne(i.line,l,a<0?"after":"before")}function Mf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Qe(a,i.doc.direction);if(g){var y=u<0?he(g):g[0],x=u<0==(y.level==1),S=x?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var z=Go(i,a);k=u<0?a.text.length-1:0;var H=zr(i,z,k).top;k=It(function(X){return zr(i,z,X).top==H},u<0==(y.level==1)?y.from:y.to-1,k),S=="before"&&(k=Ef(a,k,1))}else k=u<0?y.to:y.from;return new ne(l,k,S)}}return new ne(l,u<0?a.text.length:0,u<0?"before":"after")}function uS(n,i,a,l){var u=Qe(i,n.doc.direction);if(!u)return Af(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=zt(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 Af(i,a,l);var x=function(we,Te){return Ef(i,we instanceof ne?we.ch:we,Te)},S,k=function(we){return n.options.lineWrapping?(S=S||Go(n,i),Vp(n,i,S,we)):{begin:0,end:i.text.length}},z=k(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var H=y.level==1==l<0,X=x(a,H?1:-1);if(X!=null&&(H?X<=y.to&&X<=z.end:X>=y.from&&X>=z.begin)){var V=H?"before":"after";return new ne(a.line,X,V)}}var ie=function(we,Te,xe){for(var $e=function(xt,Yt){return Yt?new ne(a.line,x(xt,1),"before"):new ne(a.line,xt,"after")};we>=0&&we<u.length;we+=Te){var Fe=u[we],ze=Te>0==(Fe.level!=1),Ze=ze?xe.begin:x(xe.end,-1);if(Fe.from<=Ze&&Ze<Fe.to||(Ze=ze?Fe.from:x(Fe.to,-1),xe.begin<=Ze&&Ze<xe.end))return $e(Ze,ze)}},fe=ie(g+l,l,z);if(fe)return fe;var me=l>0?z.end:x(z.begin,-1);return me!=null&&!(l>0&&me==i.text.length)&&(fe=ie(l>0?0:u.length-1,l,k(me)),fe)?fe:null}var pl={selectAll:Cg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),K)},killLine:function(n){return os(n,function(i){if(i.empty()){var a=Pe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ne(i.head.line+1,0)}:{from:i.head,to:ne(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return os(n,function(i){return{from:ne(i.from().line,0),to:Ge(n.doc,ne(i.to().line+1,0))}})},delLineLeft:function(n){return os(n,function(i){return{from:ne(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return os(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 os(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(ne(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ne(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 fS(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")},ce)},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")},ce)},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},ce)},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=de(n.getLine(g.line),g.ch,l);i.push(_e(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return In(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Pe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ne(u.line,u.ch-1)),u.ch>0)u=new ne(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ne(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Pe(n.doc,u.line-1).text;y&&(u=new ne(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ne(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return In(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);Zo(n)})},openLine:function(n){return n.replaceSelection(`
32
- `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Wg(n,i){var a=Pe(n.doc,i),l=pr(a);return l!=a&&(i=C(l)),Mf(!0,n,l,i,1)}function fS(n,i){var a=Pe(n.doc,i),l=K1(a);return l!=a&&(i=C(l)),Mf(!0,n,a,i,-1)}function qg(n,i){var a=Wg(n,i.line),l=Pe(n.doc,a.line),u=Qe(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 ne(a.line,y?0:g,a.sticky)}return a}function tc(n,i,a){if(typeof i=="string"&&(i=pl[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)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function dS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=is(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&is(i,n.options.extraKeys,a,n)||is(i,n.options.keyMap,a,n)}var hS=new Ne;function gl(n,i,a,l){var u=n.state.keySeq;if(u){if(Fg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:hS.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=dS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Gt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(sn(a),ff(n)),!!u}function jg(n,i){var a=Bg(i,!0);return a?i.shiftKey&&!n.state.keySeq?gl(n,"Shift-"+a,i,function(l){return tc(n,l,!0)})||gl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return tc(n,l)}):gl(n,a,i,function(l){return tc(n,l)}):!1}function pS(n,i,a){return gl(n,"'"+a+"'",i,function(l){return tc(n,l,!0)})}var Lf=null;function Vg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=pe(Ye(i)),!Nt(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);A&&(Lf=l?a:null,!l&&a==88&&!Ma&&(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)&&gS(i)}}function gS(n){var i=n.display.lineDiv;be(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(R(i,"CodeMirror-crosshair"),on(document,"keyup",a),on(document,"mouseover",a))}Ie(document,"keyup",a),Ie(document,"mouseover",a)}function Gg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Nt(this,n)}function Kg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ei(i.display,n)||Nt(i,n)||n.ctrlKey&&!n.altKey||B&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(A&&a==Lf){Lf=null,sn(n);return}if(!(A&&(!n.which||n.which<10)&&jg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(pS(i,n,u)||i.display.input.onKeyPress(n))}}}var vS=400,Nf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Nf.prototype.compare=function(n,i,a){return this.time+vS>n&&Ce(i,this.pos)==0&&a==this.button};var vl,ml;function mS(n,i){var a=+new Date;return ml&&ml.compare(a,n,i)?(vl=ml=null,"triple"):vl&&vl.compare(a,n,i)?(ml=new Nf(a,n,i),vl=null,"double"):(vl=new Nf(a,n,i),ml=null,"single")}function Xg(n){var i=this,a=i.display;if(!(Nt(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(!$f(i,n)){var l=co(i,n),u=ur(n),g=l?mS(l,u):"single";Ae(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&yS(i,u,l,g,n))&&(u==1?l?wS(i,l,g,n):Ws(n)==a.scroller&&sn(n):u==2?(l&&Xa(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(Y?i.display.input.onContextMenu(n):df(i)))}}}function yS(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,gl(n,Hg(g,u),u,function(y){if(typeof y=="string"&&(y=pl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=q}finally{n.state.suppressEdits=!1}return x})}function bS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=G?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 wS(n,i,a,l){h?setTimeout(Z(Yp,n),0):n.curOp.focus=pe(Ye(n));var u=bS(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&qu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ce((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ce(y.to(),i)>0||i.xRel<0)?xS(n,l,i,u):SS(n,l,i,u)}function xS(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:df(n)),on(u.wrapper.ownerDocument,"mouseup",y),on(u.wrapper.ownerDocument,"mousemove",x),on(u.scroller,"dragstart",S),on(u.scroller,"drop",y),g||(sn(k),l.addNew||Xa(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},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Ie(u.wrapper.ownerDocument,"mouseup",y),Ie(u.wrapper.ownerDocument,"mousemove",x),Ie(u.scroller,"dragstart",S),Ie(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(ne(i.line,0),Ge(n.doc,ne(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function SS(n,i,a,l){h&&df(n);var u=n.display,g=n.doc;sn(i);var y,x,S=g.sel,k=S.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=co(n,i,!0,!0),x=-1;else{var z=Yg(n,a,l.unit);l.extend?y=Cf(y,z.anchor,z.head,l.extend):y=z}l.addNew?x==-1?(x=k.length,ln(g,vr(n,k.concat([y]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&l.unit=="char"&&!l.extend?(ln(g,vr(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Tf(g,x,y,le):(x=0,ln(g,new Xn([y],0),le),S=g.sel);var H=a;function X(xe){if(Ce(H,xe)!=0)if(H=xe,l.unit=="rectangle"){for(var $e=[],Fe=n.options.tabSize,ze=de(Pe(g,a.line).text,a.ch,Fe),Ze=de(Pe(g,xe.line).text,xe.ch,Fe),xt=Math.min(ze,Ze),Yt=Math.max(ze,Ze),At=Math.min(a.line,xe.line),Fn=Math.min(n.lastLine(),Math.max(a.line,xe.line));At<=Fn;At++){var Sn=Pe(g,At).text,Ft=ue(Sn,xt,Fe);xt==Yt?$e.push(new dt(ne(At,Ft),ne(At,Ft))):Sn.length>Ft&&$e.push(new dt(ne(At,Ft),ne(At,ue(Sn,Yt,Fe))))}$e.length||$e.push(new dt(a,a)),ln(g,vr(n,S.ranges.slice(0,x).concat($e),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xe)}else{var _n=y,nn=Yg(n,xe,l.unit),qt=_n.anchor,Ht;Ce(nn.anchor,qt)>0?(Ht=nn.head,qt=Uo(_n.from(),nn.anchor)):(Ht=nn.anchor,qt=bn(_n.to(),nn.head));var Ot=S.ranges.slice(0);Ot[x]=_S(n,new dt(Ge(g,qt),Ht)),ln(g,vr(n,Ot,x),le)}}var V=u.wrapper.getBoundingClientRect(),ie=0;function fe(xe){var $e=++ie,Fe=co(n,xe,!0,l.unit=="rectangle");if(Fe)if(Ce(Fe,H)!=0){n.curOp.focus=pe(Ye(n)),X(Fe);var ze=qa(u,g);(Fe.line>=ze.to||Fe.line<ze.from)&&setTimeout(Kt(n,function(){ie==$e&&fe(xe)}),150)}else{var Ze=xe.clientY<V.top?-20:xe.clientY>V.bottom?20:0;Ze&&setTimeout(Kt(n,function(){ie==$e&&(u.scroller.scrollTop+=Ze,fe(xe))}),50)}}function me(xe){n.state.selectingText=!1,ie=1/0,xe&&(sn(xe),u.input.focus()),on(u.wrapper.ownerDocument,"mousemove",we),on(u.wrapper.ownerDocument,"mouseup",Te),g.history.lastSelOrigin=null}var we=Kt(n,function(xe){xe.buttons===0||!ur(xe)?me(xe):fe(xe)}),Te=Kt(n,me);n.state.selectingText=Te,Ie(u.wrapper.ownerDocument,"mousemove",we),Ie(u.wrapper.ownerDocument,"mouseup",Te)}function _S(n,i){var a=i.anchor,l=i.head,u=Pe(n.doc,a.line);if(Ce(a,l)==0&&a.sticky==l.sticky)return i;var g=Qe(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==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 z=zt(g,l.ch,l.sticky),H=z-y||(l.ch-a.ch)*(x.level==1?-1:1);z==S-1||z==S?k=H<0:k=H>0}var X=g[S+(k?-1:0)],V=k==(X.level==1),ie=V?X.from:X.to,fe=V?"after":"before";return a.ch==ie&&a.sticky==fe?i:new dt(new ne(a.line,ie,fe),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&&sn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Dn(n,a))return yn(i);g-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var k=y.gutters.childNodes[S];if(k&&k.getBoundingClientRect().right>=u){var z=F(n.doc,g),H=n.display.gutterSpecs[S];return Lt(n,a,n,z,H.className,i),yn(i)}}}function $f(n,i){return Zg(n,i,"gutterClick",!0)}function Jg(n,i){ei(n.display,i)||kS(n,i)||Nt(n,i,"contextmenu")||Y||n.display.input.onContextMenu(i)}function kS(n,i){return Dn(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-"),Zs(n)}var ss={toString:function(){return"CodeMirror.Init"}},ev={},nc={};function CS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,S,k){k!=ss&&g(x,S,k)}:g)}n.defineOption=a,n.Init=ss,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){ol(l),Zs(l),wn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(S){for(var k=0;;){var z=S.text.indexOf(u,k);if(z==-1)break;k=z+u.length,g.push(ne(y,z))}y++});for(var x=g.length-1;x>=0;x--)ns(l.doc,u,g[x],ne(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!=ss&&l.refresh()}),a("specialCharPlaceholder",ex,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"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",!U),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Qg(l),il(l)},!0),a("keyMap","default",function(l,u,g){var y=ec(u),x=g!=ss&&ec(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,ES,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=wf(u,l.options.lineNumbers),il(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?af(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Jo(l)},!0),a("scrollbarStyle","native",function(l){ng(l),Jo(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=wf(l.options.gutters,u),il(l)},!0),a("firstLineNumber",1,il,!0),a("lineNumberFormatter",function(l){return l},il,!0),a("showCursorWhenSelecting",!1,Js,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Yo(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,TS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Js,!0),a("singleCursorHeightPerLine",!0,Js,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,ol,!0),a("addModeClass",!1,ol,!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,ol,!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 TS(n,i,a){var l=a&&a!=ss;if(!i!=!l){var u=n.display.dragFunctions,g=i?Ie:on;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 ES(n){n.options.lineWrapping?(be(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(R(n.display.wrapper,"CodeMirror-wrap"),Zu(n)),cf(n),wn(n),Zs(n),setTimeout(function(){return Jo(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?ae(i):{},ae(ev,i,!1);var l=i.value;typeof l=="string"?l=new xn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Ct.inputStyles[i.inputStyle](this),g=this.display=new Hx(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 Ne,keySeq:null,specialChars:null},i.autofocus&&!E&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),AS(this),oS(),po(this),this.curOp.forceUpdate=!0,dg(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&hf(a)},20):Yo(this);for(var y in nc)nc.hasOwnProperty(y)&&nc[y](this,i[y],ss);og(this),i.finishInit&&i.finishInit(this);for(var x=0;x<Of.length;++x)Of[x](this);go(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Ct.defaults=ev,Ct.optionHandlers=nc;function AS(n){var i=n.display;Ie(i.scroller,"mousedown",Kt(n,Xg)),h&&p<11?Ie(i.scroller,"dblclick",Kt(n,function(S){if(!Nt(n,S)){var k=co(n,S);if(!(!k||$f(n,S)||ei(n.display,S))){sn(S);var z=n.findWordAt(k);Xa(n.doc,z.anchor,z.head)}}})):Ie(i.scroller,"dblclick",function(S){return Nt(n,S)||sn(S)}),Ie(i.scroller,"contextmenu",function(S){return Jg(n,S)}),Ie(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||Jg(n,S)});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(S){if(S.touches.length!=1)return!1;var k=S.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(S,k){if(k.left==null)return!0;var z=k.left-S.left,H=k.top-S.top;return z*z+H*H>20*20}Ie(i.scroller,"touchstart",function(S){if(!Nt(n,S)&&!g(S)&&!$f(n,S)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Ie(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ie(i.scroller,"touchend",function(S){var k=i.activeTouch;if(k&&!ei(i,S)&&k.left!=null&&!k.moved&&new Date-k.start<300){var z=n.coordsChar(i.activeTouch,"page"),H;!k.prev||y(k,k.prev)?H=new dt(z,z):!k.prev.prev||y(k,k.prev.prev)?H=n.findWordAt(z):H=new dt(ne(z.line,0),Ge(n.doc,ne(z.line+1,0))),n.setSelection(H.anchor,H.head),n.focus(),sn(S)}u()}),Ie(i.scroller,"touchcancel",u),Ie(i.scroller,"scroll",function(){i.scroller.clientHeight&&(el(n,i.scroller.scrollTop),fo(n,i.scroller.scrollLeft,!0),Lt(n,"scroll",n))}),Ie(i.scroller,"mousewheel",function(S){return ag(n,S)}),Ie(i.scroller,"DOMMouseScroll",function(S){return ag(n,S)}),Ie(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Nt(n,S)||wi(S)},over:function(S){Nt(n,S)||(iS(n,S),wi(S))},start:function(S){return rS(n,S)},drop:Kt(n,nS),leave:function(S){Nt(n,S)||zg(n)}};var x=i.input.getField();Ie(x,"keyup",function(S){return Gg.call(n,S)}),Ie(x,"keydown",Kt(n,Vg)),Ie(x,"keypress",Kt(n,Kg)),Ie(x,"focus",function(S){return hf(n,S)}),Ie(x,"blur",function(S){return Yo(n,S)})}var Of=[];Ct.defineInitHook=function(n){return Of.push(n)};function yl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Vs(n,i).state:a="prev");var y=n.options.tabSize,x=Pe(u,i),S=de(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],z;if(!l&&!/\S/.test(x.text))z=0,a="not";else if(a=="smart"&&(z=u.mode.indent(g,x.text.slice(k.length),x.text),z==q||z>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?z=de(Pe(u,i-1).text,null,y):z=0:a=="add"?z=S+n.options.indentUnit:a=="subtract"?z=S-n.options.indentUnit:typeof a=="number"&&(z=S+a),z=Math.max(0,z);var H="",X=0;if(n.options.indentWithTabs)for(var V=Math.floor(z/y);V;--V)X+=y,H+=" ";if(X<z&&(H+=_e(z-X)),H!=k)return ns(u,H,ne(i,0),ne(i,k.length),"+input"),x.stateAfter=null,!0;for(var ie=0;ie<u.sel.ranges.length;ie++){var fe=u.sel.ranges[ie];if(fe.head.line==i&&fe.head.ch<k.length){var me=ne(i,k.length);Tf(u,ie,new dt(me,me));break}}}var mr=null;function rc(n){mr=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,S=ir(i),k=null;if(x&&l.ranges.length>1)if(mr&&mr.text.join(`
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 Tx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ne(i.line,i.ch+1,"before"):i,i=i.ch?ne(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=gr(n,i),S=!a||a==i?x:gr(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var k=pf(n,u),z=n.doc.scrollTop,H=n.doc.scrollLeft;if(k.scrollTop!=null&&(el(n,k.scrollTop),Math.abs(n.doc.scrollTop-z)>1&&(y=!0)),k.scrollLeft!=null&&(fo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-H)>1&&(y=!0)),!y)break}return u}function Ex(n,i){var a=pf(n,i);a.scrollTop!=null&&el(n,a.scrollTop),a.scrollLeft!=null&&fo(n,a.scrollLeft)}function pf(n,i){var a=n.display,l=Ko(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=ef(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+Qu(a),S=i.top<l,k=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var z=Math.min(i.top,(k?x:i.bottom)-g);z!=u&&(y.scrollTop=z)}var H=n.options.fixedGutter?0:a.gutters.offsetWidth,X=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-H,V=lo(n)-a.gutters.offsetWidth,ie=i.right-i.left>V;return ie&&(i.right=i.left+V),i.left<10?y.scrollLeft=0:i.left<X?y.scrollLeft=Math.max(0,i.left+H-(ie?0:10)):i.right>V+X-3&&(y.scrollLeft=i.right+(ie?0:10)-V),y}function gf(n,i){i!=null&&(Ua(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Zo(n){Ua(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Qs(n,i,a){(i!=null||a!=null)&&Ua(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ax(n,i){Ua(n),n.curOp.scrollToPos=i}function Ua(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=pf(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});Qs(n,u.scrollLeft,u.scrollTop)}function el(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||mf(n,{top:i}),Qp(n,i,!0),s&&mf(n),rl(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 fo(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 tl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Qu(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+Rr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ho=function(n,i,a){this.cm=a;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Ie(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Ie(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ho.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}},ho.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ho.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ho.prototype.zeroWidthHack=function(){var n=B&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ne,this.disableVert=new Ne},ho.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)},ho.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var nl=function(){};nl.prototype.update=function(){return{bottom:0,right:0}},nl.prototype.setScrollLeft=function(){},nl.prototype.setScrollTop=function(){},nl.prototype.clear=function(){};function Jo(n,i){i||(i=tl(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&&Wa(n),eg(n,tl(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:ho,null:nl};function ng(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&R(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),Ie(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"?fo(n,i):el(n,i)},n),n.display.scrollbars.addClass&&be(n.display.wrapper,n.display.scrollbars.addClass)}var Mx=0;function po(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:++Mx,markArrays:null},sx(n.curOp)}function go(n){var i=n.curOp;i&&ax(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Lx(a)})}function Lx(n){for(var i=n.ops,a=0;a<i.length;a++)Nx(i[a]);for(var l=0;l<i.length;l++)$x(i[l]);for(var u=0;u<i.length;u++)Ox(i[u]);for(var g=0;g<i.length;g++)Px(i[g]);for(var y=0;y<i.length;y++)Rx(i[y])}function Nx(n){var i=n.cm,a=i.display;Dx(i),n.updateMaxLine&&Zu(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 ja(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function $x(n){n.updatedDisplay=n.mustUpdate&&vf(n.cm,n.update)}function Ox(n){var i=n.cm,a=i.display;n.updatedDisplay&&Wa(i),n.barMeasure=tl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=zp(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+Rr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-lo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Px(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&fo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==pe(Ye(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Jo(i,n.barMeasure),n.updatedDisplay&&bf(i,n.barMeasure),n.selectionChanged&&ff(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Yp(n.cm)}function Rx(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&&fo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Tx(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);Cx(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Lt(g[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Lt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Lt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function In(n,i){if(n.curOp)return i();po(n);try{return i()}finally{go(n)}}function Kt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);po(n);try{return i.apply(n,arguments)}finally{go(n)}}}function fn(n){return function(){if(this.curOp)return n.apply(this,arguments);po(this);try{return n.apply(this,arguments)}finally{go(this)}}}function Xt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);po(i);try{return n.apply(this,arguments)}finally{go(i)}}}function rl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,Z(zx,n))}function zx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Vs(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?Or(i.mode,l.state):null,S=up(n,g,l,!0);x&&(l.state=x),g.styles=S.styles;var k=g.styleClasses,z=S.classes;z?g.styleClasses=z:k&&(g.styleClasses=null);for(var H=!y||y.length!=g.styles.length||k!=z&&(!k||!z||k.bgClass!=z.bgClass||k.textClass!=z.textClass),X=0;!H&&X<y.length;++X)H=y[X]!=g.styles[X];H&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&ju(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return rl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&In(n,function(){for(var g=0;g<u.length;g++)Ci(n,u[g],"text")})}}var ja=function(n,i,a){var l=n.display;this.viewport=i,this.visible=qa(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=lo(n),this.force=a,this.dims=lf(n),this.events=[]};ja.prototype.signal=function(n,i){Dn(n,i)&&this.events.push(arguments)},ja.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Lt.apply(null,this.events[n])};function Dx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Rr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Rr(n)+"px",i.scrollbarsClipped=!0)}function Ix(n){if(n.hasFocus())return null;var i=pe(Ye(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Ae(n).getSelection();l.anchorNode&&l.extend&&re(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Fx(n){if(!(!n||!n.activeElt||n.activeElt==pe(Xe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&re(document.body,n.anchorNode)&&re(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 vf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ti(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)&&(Ti(n),i.dims=lf(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=Xu(n.doc,g),y=kp(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;_x(n,g,y),a.viewOffset=Qr(Pe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Kp(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=Ix(n);return S>4&&(a.lineDiv.style.display="none"),Hx(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Fx(k),$(a.cursorDiv),$(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,rl(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==lo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Qu(n.display)-ef(n),a.top)}),i.visible=qa(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=qa(n.display,n.doc,a));if(!vf(n,i))break;Wa(n);var u=tl(n);Js(n),Jo(n,u),bf(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 mf(n,i){var a=new ja(n,i);if(vf(n,a)){Wa(n),rg(n,a);var l=tl(n);Js(n),Jo(n,l),bf(n,l),a.finish()}}function Hx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ie){var fe=ie.nextSibling;return v&&B&&n.display.currentWheelTarget==ie?ie.style.display="none":ie.parentNode.removeChild(ie),fe}for(var S=l.view,k=l.viewFrom,z=0;z<S.length;z++){var H=S[z];if(!H.hidden)if(!H.node||H.node.parentNode!=g){var X=hx(n,H,k,a);g.insertBefore(X,y)}else{for(;y!=H.node;)y=x(y);var V=u&&i!=null&&i<=k&&H.lineNumber;H.changes&&(Me(H.changes,"gutter")>-1&&(V=!1),Mp(n,H,k,a)),V&&($(H.lineNumber),H.lineNumber.appendChild(document.createTextNode(ve(n.options,k)))),y=H.node.nextSibling}k+=H.size}for(;y;)y=x(y)}function yf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Gt(n,"gutterChanged",n)}function bf(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+Rr(n)+"px"}function ig(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=af(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 S=0;S<x.length;S++)x[S].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=ve(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(_("div",[_("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",yf(n.display),!0}return!1}function wf(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;$(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(_("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",yf(n)}function il(n){sg(n.display),wn(n),ig(n)}function Bx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=D("div",null,"CodeMirror-code"),u.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=_("div",null,"CodeMirror-cursors"),u.measure=_("div",null,"CodeMirror-measure"),u.lineMeasure=_("div",null,"CodeMirror-measure"),u.lineSpace=D("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=D("div",[u.lineSpace],"CodeMirror-lines");u.mover=_("div",[g],null,"position: relative"),u.sizer=_("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=_("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=_("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=_("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=_("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&&A)&&(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=wf(l.gutters,l.lineNumbers),sg(u),a.init(u)}var Va=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 Wx(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,S=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(l&&S||u&&k){if(u&&B&&v){e:for(var z=i.target,H=y.view;z!=x;z=z.parentNode)for(var X=0;X<H.length;X++)if(H[X].node==z){n.display.currentWheelTarget=z;break e}}if(l&&!s&&!E&&g!=null){u&&k&&el(n,Math.max(0,x.scrollTop+u*g)),fo(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&k)&&sn(i),y.wheelStartX=null;return}if(u&&g!=null){var V=u*g,ie=n.doc.scrollTop,fe=ie+y.wrapper.clientHeight;V<0?ie=Math.max(0,ie+V-50):fe=Math.min(n.doc.height,fe+V+50),mf(n,{top:ie,bottom:fe})}Va<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 me=x.scrollLeft-y.wheelStartX,we=x.scrollTop-y.wheelStartY,Te=we&&y.wheelDY&&we/y.wheelDY||me&&y.wheelDX&&me/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Te&&(ti=(ti*Va+Te)/(Va+1),++Va)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Xn=function(n,i){this.ranges=n,this.primIndex=i};Xn.prototype.primary=function(){return this.ranges[this.primIndex]},Xn.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},Xn.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 Xn(n,this.primIndex)},Xn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Xn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ce(i,l.from())>=0&&Ce(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return Uo(this.anchor,this.head)},dt.prototype.to=function(){return bn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(X,V){return Ce(X.from(),V.from())}),a=Me(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],S=Ce(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var k=Uo(x.from(),y.from()),z=bn(x.to(),y.to()),H=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(H?z:k,H?k:z))}}return new Xn(i,a)}function Ei(n,i){return new Xn([new dt(n,i||n)],0)}function Ai(n){return n.text?ne(n.from.line+n.text.length-1,he(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function cg(n,i){if(Ce(n,i.from)<0)return n;if(Ce(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),ne(a,l)}function xf(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 vr(n.cm,a,n.sel.primIndex)}function ug(n,i,a){return n.line==i.line?ne(a.line,n.ch-i.ch+a.ch):ne(a.line+(n.line-i.line),n.ch)}function qx(n,i,a){for(var l=[],u=ne(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],S=ug(x.from,u,g),k=ug(Ai(x),u,g);if(u=x.to,g=k,a=="around"){var z=n.sel.ranges[y],H=Ce(z.head,z.anchor)<0;l[y]=new dt(H?k:S,H?S:k)}else l[y]=new dt(S,S)}return new Xn(l,n.sel.primIndex)}function Sf(n){n.doc.mode=Bo(n.options,n.doc.modeOption),ol(n)}function ol(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,rl(n,100),n.state.modeGen++,n.curOp&&wn(n)}function fg(n,i){return i.from.ch==0&&i.to.ch==0&&he(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function _f(n,i,a,l){function u(Te){return a?a[Te]:null}function g(Te,xe,$e){Z1(Te,xe,$e,l),Gt(Te,"change",Te,i)}function y(Te,xe){for(var $e=[],Fe=Te;Fe<xe;++Fe)$e.push(new jo(k[Fe],u(Fe),l));return $e}var x=i.from,S=i.to,k=i.text,z=Pe(n,x.line),H=Pe(n,S.line),X=he(k),V=u(k.length-1),ie=S.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 fe=y(0,k.length-1);g(H,H.text,V),ie&&n.remove(x.line,ie),fe.length&&n.insert(x.line,fe)}else if(z==H)if(k.length==1)g(z,z.text.slice(0,x.ch)+X+z.text.slice(S.ch),V);else{var me=y(1,k.length-1);me.push(new jo(X+z.text.slice(S.ch),V,l)),g(z,z.text.slice(0,x.ch)+k[0],u(0)),n.insert(x.line+1,me)}else if(k.length==1)g(z,z.text.slice(0,x.ch)+k[0]+H.text.slice(S.ch),u(0)),n.remove(x.line+1,ie);else{g(z,z.text.slice(0,x.ch)+k[0],u(0)),g(H,X+H.text.slice(S.ch),V);var we=y(1,k.length-1);ie>1&&n.remove(x.line+1,ie-1),n.insert(x.line+1,we)}Gt(n,"change",n,i)}function Mi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=g){var k=y&&S.sharedHist;a&&!k||(i(S.doc,k),l(S.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,cf(n),Sf(n),hg(n),n.options.direction=i.direction,n.options.lineWrapping||Zu(n),n.options.mode=i.modeOption,wn(n)}function hg(n){(n.doc.direction=="rtl"?be:R)(n.display.lineDiv,"CodeMirror-rtl")}function Ux(n){In(n,function(){hg(n),wn(n)})}function Ga(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 kf(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),Mi(n,function(l){return vg(l,a,i.from.line,i.to.line+1)},!0),a}function pg(n){for(;n.length;){var i=he(n);if(i.ranges)n.pop();else break}}function jx(n,i){if(i)return pg(n.done),he(n.done);if(n.done.length&&!he(n.done).ranges)return he(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),he(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=jx(u,u.lastOp==l)))x=he(y.changes),Ce(i.from,i.to)==0&&Ce(i.from,x.to)==0?x.to=Ai(i):y.changes.push(kf(n,i));else{var S=he(u.done);for((!S||!S.ranges)&&Ka(n.sel,u.done),y={changes:[kf(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||Lt(n,"historyAdded")}function Vx(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 Gx(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||Vx(n,g,he(u.done),i))?u.done[u.done.length-1]=i:Ka(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&pg(u.undone)}function Ka(n,i){var a=he(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 Kx(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 Xx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Kx(a[u]));return l}function mg(n,i){var a=Xx(n,i),l=Gu(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 S=y[x],k=0;k<g.length;++k)if(g[k].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function Qo(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Xn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var k=y[S],z=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var H in k)(z=H.match(/^spans_(\d+)$/))&&Me(i,Number(z[1]))>-1&&(he(x)[H]=k[H],delete k[H])}}return l}function Cf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ce(i,u)<0;g!=Ce(a,u)<0?(u=i,i=a):g!=Ce(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Xa(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),ln(n,new Xn([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=vr(n.cm,l,n.sel.primIndex);ln(n,y,a)}function Tf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,ln(n,vr(n.cm,u,n.sel.primIndex),l)}function bg(n,i,a,l){ln(n,Ei(i,a),l)}function Yx(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 Lt(n,"beforeSelectionChange",n,l),n.cm&&Lt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?vr(n.cm,l.ranges,l.ranges.length-1):i}function wg(n,i,a){var l=n.history.done,u=he(l);u&&u.ranges?(l[l.length-1]=i,Ya(n,i,a)):ln(n,i,a)}function ln(n,i,a){Ya(n,i,a),Gx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ya(n,i,a){(Dn(n,"beforeSelectionChange")||n.cm&&Dn(n.cm,"beforeSelectionChange"))&&(i=Yx(n,i,a));var l=a&&a.bias||(Ce(i.primary().head,n.sel.primary().head)<0?-1:1);xg(n,_g(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Zo(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,rr(n.cm)),Gt(n,"cursorActivity",n))}function Sg(n){xg(n,_g(n,n.sel,null,!1))}function _g(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],S=Za(n,y.anchor,x&&x.anchor,a,l),k=y.head==y.anchor?S:Za(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(S,k))}return u?vr(n.cm,u,i.primIndex):i}function es(n,i,a,l,u){var g=Pe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],S=x.marker,k="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,z="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(k?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(z?x.to>=i.ch:x.to>i.ch))){if(u&&(Lt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var H=S.find(l<0?1:-1),X=void 0;if((l<0?z:k)&&(H=kg(n,H,-l,H&&H.line==i.line?g:null)),H&&H.line==i.line&&(X=Ce(H,a))&&(l<0?X<0:X>0))return es(n,H,i,l,u)}var V=S.find(l<0?-1:1);return(l<0?k:z)&&(V=kg(n,V,l,V.line==i.line?g:null)),V?es(n,V,i,l,u):null}}return i}function Za(n,i,a,l,u){var g=l||1,y=es(n,i,a,g,u)||!u&&es(n,i,a,g,!0)||es(n,i,a,-g,u)||!u&&es(n,i,a,-g,!0);return y||(n.cantEdit=!0,ne(n.first,0))}function kg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,ne(i.line-1)):null:a>0&&i.ch==(l||Pe(n,i.line)).text.length?i.line<n.first+n.size-1?ne(i.line+1,0):null:new ne(i.line,i.ch+a)}function Cg(n){n.setSelection(ne(n.firstLine(),0),ne(n.lastLine()),K)}function Tg(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)}),Lt(n,"beforeChange",n,l),n.cm&&Lt(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 ts(n,i,a){if(n.cm){if(!n.cm.curOp)return Kt(n.cm,ts)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"))&&(i=Tg(n,i,!0),!i))){var l=mp&&!a&&G1(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]==""&&Ce(i.from,i.to)==0)){var a=xf(n,i);gg(n,i,a,n.cm?n.cm.curOp.id:NaN),sl(n,i,a,Gu(n,i));var l=[];Mi(n,function(u,g){!g&&Me(l,u.history)==-1&&(Ng(u.history,i),l.push(u.history)),sl(u,i,null,Gu(u,i))})}}function Ja(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,S=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(Ka(g,S),a&&!g.equals(n.sel)){ln(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var z=[];Ka(y,S),S.push({changes:z,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var H=Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"),X=function(fe){var me=g.changes[fe];if(me.origin=i,H&&!Tg(n,me,!1))return x.length=0,{};z.push(kf(n,me));var we=fe?xf(n,me):he(x);sl(n,me,we,mg(n,me)),!fe&&n.cm&&n.cm.scrollIntoView({from:me.from,to:Ai(me)});var Te=[];Mi(n,function(xe,$e){!$e&&Me(Te,xe.history)==-1&&(Ng(xe.history,me),Te.push(xe.history)),sl(xe,me,null,mg(xe,me))})},V=g.changes.length-1;V>=0;--V){var ie=X(V);if(ie)return ie.v}}}}function Ag(n,i){if(i!=0&&(n.first+=i,n.sel=new Xn(ge(n.sel.ranges,function(u){return new dt(ne(u.anchor.line+i,u.anchor.ch),ne(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){wn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ci(n.cm,l,"gutter")}}function sl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Kt(n.cm,sl)(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:ne(n.first,0),to:ne(i.to.line+u,i.to.ch),text:[he(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ne(g,Pe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Zr(n,i.from,i.to),a||(a=xf(n,i)),n.cm?Zx(n.cm,i,l):_f(n,i,l),Ya(n,a,K),n.cantEdit&&Za(n,ne(n.firstLine(),0))&&(n.cantEdit=!1)}}function Zx(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,S=g.line;n.options.lineWrapping||(S=C(pr(Pe(l,g.line))),l.iter(S,y.line+1,function(V){if(V==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&rr(n),_f(l,i,a,Gp(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(V){var ie=Ra(V);ie>u.maxLineLength&&(u.maxLine=V,u.maxLineLength=ie,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),H1(l,g.line),rl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?wn(n):g.line==y.line&&i.text.length==1&&!fg(n.doc,i)?Ci(n,g.line,"text"):wn(n,g.line,y.line+1,k);var z=Dn(n,"changes"),H=Dn(n,"change");if(H||z){var X={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};H&&Gt(n,"change",n,X),z&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(X)}n.display.selForContextMenu=null}function ns(n,i,a,l,u){var g;l||(l=a),Ce(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ts(n,{from:a,to:l,text:i,origin:u})}function Mg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Lg(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++)Mg(g.ranges[x].anchor,i,a,l),Mg(g.ranges[x].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var k=g.changes[S];if(a<k.from.line)k.from=ne(k.from.line+l,k.from.ch),k.to=ne(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;Lg(n.done,a,l,u),Lg(n.undone,a,l,u)}function ll(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Pe(n,ap(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&Ci(n.cm,u,a),g)}function al(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}al.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,J1(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 cl(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}cl.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 al))){var x=[];this.collapse(x),this.children=[new al(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 S=new al(u.lines.slice(x,x+=25));u.height-=S.height,this.children.splice(++l,0,S),S.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 cl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Me(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new cl(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 ul=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};ul.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=Ys(this);Kn(a,Math.max(0,a.height-g)),n&&(In(n,function(){$g(n,a,-g),Ci(n,l,"widget")}),Gt(n,"lineWidgetCleared",n,this,l))}},ul.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Ys(this)-i;u&&(ki(this.doc,l)||Kn(l,l.height+u),a&&In(a,function(){a.curOp.forceUpdate=!0,$g(a,l,u),Gt(a,"lineWidgetChanged",a,n,C(l))}))},cr(ul);function $g(n,i,a){Qr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&gf(n,a)}function Jx(n,i,a,l){var u=new ul(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),ll(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 S=Qr(y)<n.scrollTop;Kn(y,y.height+Ys(u)),S&&gf(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,Li=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Og};Li.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&po(n),Dn(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=Gs(y.markedSpans,this);n&&!this.collapsed?Ci(n,C(y),"text"):n&&(x.to!=null&&(u=C(y)),x.from!=null&&(l=C(y))),y.markedSpans=q1(y.markedSpans,x),x.from==null&&this.collapsed&&!ki(this.doc,y)&&n&&Kn(y,Ko(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var k=pr(this.lines[S]),z=Ra(k);z>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=z,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&wn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Sg(n.doc)),n&&Gt(n,"markerCleared",n,this,l,u),i&&go(n),this.parent&&this.parent.clear()}},Li.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=Gs(g.markedSpans,this);if(y.from!=null&&(a=ne(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=ne(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Li.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||In(l,function(){var u=i.line,g=C(i.line),y=tf(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 S=Ys(a)-x;S&&Kn(u,u.height+S)}Gt(l,"markerChanged",l,n)})},Li.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Me(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Li.prototype.detachLine=function(n){if(this.lines.splice(Me(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},cr(Li);function rs(n,i,a,l,u){if(l&&l.shared)return Qx(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Kt(n.cm,rs)(n,i,a,l,u);var g=new Li(n,u),y=Ce(i,a);if(l&&ae(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=D("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(_p(n,i.line,i,a,g)||i.line!=a.line&&_p(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");W1()}g.addToHistory&&gg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,k;if(n.iter(x,a.line+1,function(H){S&&g.collapsed&&!S.options.lineWrapping&&pr(H)==S.display.maxLine&&(k=!0),g.collapsed&&x!=i.line&&Kn(H,0),U1(H,new Na(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(H){ki(n,H)&&Kn(H,0)}),g.clearOnEnter&&Ie(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(B1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Og,g.atomic=!0),S){if(k&&(S.curOp.updateMaxLine=!0),g.collapsed)wn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var z=i.line;z<=a.line;z++)Ci(S,z,"text");g.atomic&&Sg(S.doc),Gt(S,"markerAdded",S,g)}return g}var fl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};fl.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")}},fl.prototype.find=function(n,i){return this.primary.find(n,i)},cr(fl);function Qx(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[rs(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Mi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),g.push(rs(S,Ge(S,i),Ge(S,a),l,u));for(var k=0;k<S.linked.length;++k)if(S.linked[k].isParent)return;y=he(g)}),new fl(g,y)}function Pg(n){return n.findMarks(ne(n.first,0),n.clipPos(ne(n.lastLine())),function(i){return i.parent})}function eS(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(Ce(g,y)){var x=rs(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function tS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Mi(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];Me(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var nS=0,xn=function(n,i,a,l,u){if(!(this instanceof xn))return new xn(n,i,a,l,u);a==null&&(a=0),cl.call(this,[new al([new jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ne(a,0);this.sel=Ei(g),this.history=new Ga(null),this.id=++nS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),_f(this,{from:g,to:g,text:n}),ln(this,Ei(g),K)};xn.prototype=De(cl.prototype,{constructor:xn,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=js(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Xt(function(n){var i=ne(this.first,0),a=this.first+this.size-1;ts(this,{from:i,to:ne(a,Pe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Qs(this.cm,0,0),ln(this,Ei(i),K)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,ns(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(se(this,n))return Pe(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pe(this,n)),pr(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"?ne(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){Xa(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=ge(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)),ln(this,vr(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))),ln(this,vr(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"&&qx(this,l,i),S=l.length-1;S>=0;S--)ts(this,l[S]);x?wg(this,x):this.cm&&Zo(this.cm)}),undo:Xt(function(){Ja(this,"undo")}),redo:Xt(function(){Ja(this,"redo")}),undoSelection:Xt(function(){Ja(this,"undo",!0)}),redoSelection:Xt(function(){Ja(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 Ga(this.history),Mi(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:Qo(this.history.done),undone:Qo(this.history.undone)}},setHistory:function(n){var i=this.history=new Ga(this.history);i.done=Qo(n.done.slice(0),null,!0),i.undone=Qo(n.undone.slice(0),null,!0)},setGutterMarker:Xt(function(n,i,a){return ll(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&lt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Xt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&ll(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(!se(this,n)||(i=n,n=Pe(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 ll(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(ee(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Xt(function(n,i,a){return ll(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(ee(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 Jx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return rs(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),rs(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Pe(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 S=y[x];!(S.to!=null&&u==n.line&&n.ch>=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.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,ne(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 xn(js(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 xn(js(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}],eS(l,Pg(this)),l},unlinkDoc:function(n){if(n instanceof Ct&&(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),tS(Pg(this));break}}if(n.history==this.history){var l=[n.id];Mi(n,function(u){return l.push(u.id)},!0),n.history=new Ga(null),n.history.done=Qo(this.history.done,l),n.history.undone=Qo(this.history.undone,l)}},iterLinkedDocs:function(n){Mi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):ir(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&&Ux(this.cm))})}),xn.prototype.eachLine=xn.prototype.iter;var Rg=0;function rS(n){var i=this;if(zg(i),!(Nt(i,n)||ei(i.display,n))){sn(n),h&&(Rg=+new Date);var a=co(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 V={from:a,to:a,text:i.doc.splitLines(g.filter(function(ie){return ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};ts(i.doc,V),wg(i.doc,Ei(Ge(i.doc,a),Ge(i.doc,Ai(V))))})()},S=function(V,ie){if(i.options.allowDropFileTypes&&Me(i.options.allowDropFileTypes,V.type)==-1){x();return}var fe=new FileReader;fe.onerror=function(){return x()},fe.onload=function(){var me=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(me)){x();return}g[ie]=me,x()},fe.readAsText(V)},k=0;k<l.length;k++)S(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 z=n.dataTransfer.getData("Text");if(z){var H;if(i.state.draggingText&&!i.state.draggingText.copy&&(H=i.listSelections()),Ya(i.doc,Ei(a,a)),H)for(var X=0;X<H.length;++X)ns(i.doc,"",H[X].anchor,H[X].head,"drag");i.replaceSelection(z,"around","paste"),i.display.input.focus()}}catch{}}}}function iS(n,i){if(h&&(!n.state.draggingText||+new Date-Rg<100)){wi(i);return}if(!(Nt(n,i)||ei(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!N)){var a=_("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 oS(n,i){var a=co(n,i);if(a){var l=document.createDocumentFragment();uf(n,a,l),n.display.dragCursor||(n.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),O(n.display.dragCursor,l)}}function zg(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 Ig=!1;function sS(){Ig||(lS(),Ig=!0)}function lS(){var n;Ie(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Dg(aS)},100))}),Ie(window,"blur",function(){return Dg(Yo)})}function aS(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"},dl=0;dl<10;dl++)Ni[dl+48]=Ni[dl+96]=String(dl);for(var Qa=65;Qa<=90;Qa++)Ni[Qa]=String.fromCharCode(Qa);for(var hl=1;hl<=12;hl++)Ni[hl+111]=Ni[hl+63235]="F"+hl;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 cS(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 uS(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=ge(a.split(" "),cS),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 S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var k in i)n[k]=i[k];return n}function is(n,i,a,l){i=ec(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 is(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=is(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),(J?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(J?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 ec(n){return typeof n=="string"?ni[n]:n}function os(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ce(g.from,he(l).to)<=0;){var y=l.pop();if(Ce(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}In(n,function(){for(var x=l.length-1;x>=0;x--)ns(n.doc,"",l[x].from,l[x].to,"+delete");Zo(n)})}function Ef(n,i,a){var l=jt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Af(n,i,a){var l=Ef(n,i.ch,a);return l==null?null:new ne(i.line,l,a<0?"after":"before")}function Mf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Qe(a,i.doc.direction);if(g){var y=u<0?he(g):g[0],x=u<0==(y.level==1),S=x?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var z=Go(i,a);k=u<0?a.text.length-1:0;var H=zr(i,z,k).top;k=It(function(X){return zr(i,z,X).top==H},u<0==(y.level==1)?y.from:y.to-1,k),S=="before"&&(k=Ef(a,k,1))}else k=u<0?y.to:y.from;return new ne(l,k,S)}}return new ne(l,u<0?a.text.length:0,u<0?"before":"after")}function fS(n,i,a,l){var u=Qe(i,n.doc.direction);if(!u)return Af(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=zt(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 Af(i,a,l);var x=function(we,Te){return Ef(i,we instanceof ne?we.ch:we,Te)},S,k=function(we){return n.options.lineWrapping?(S=S||Go(n,i),Vp(n,i,S,we)):{begin:0,end:i.text.length}},z=k(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var H=y.level==1==l<0,X=x(a,H?1:-1);if(X!=null&&(H?X<=y.to&&X<=z.end:X>=y.from&&X>=z.begin)){var V=H?"before":"after";return new ne(a.line,X,V)}}var ie=function(we,Te,xe){for(var $e=function(xt,Yt){return Yt?new ne(a.line,x(xt,1),"before"):new ne(a.line,xt,"after")};we>=0&&we<u.length;we+=Te){var Fe=u[we],ze=Te>0==(Fe.level!=1),Ze=ze?xe.begin:x(xe.end,-1);if(Fe.from<=Ze&&Ze<Fe.to||(Ze=ze?Fe.from:x(Fe.to,-1),xe.begin<=Ze&&Ze<xe.end))return $e(Ze,ze)}},fe=ie(g+l,l,z);if(fe)return fe;var me=l>0?z.end:x(z.begin,-1);return me!=null&&!(l>0&&me==i.text.length)&&(fe=ie(l>0?0:u.length-1,l,k(me)),fe)?fe:null}var pl={selectAll:Cg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),K)},killLine:function(n){return os(n,function(i){if(i.empty()){var a=Pe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ne(i.head.line+1,0)}:{from:i.head,to:ne(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return os(n,function(i){return{from:ne(i.from().line,0),to:Ge(n.doc,ne(i.to().line+1,0))}})},delLineLeft:function(n){return os(n,function(i){return{from:ne(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return os(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 os(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(ne(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ne(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 dS(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")},ce)},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")},ce)},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},ce)},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=de(n.getLine(g.line),g.ch,l);i.push(_e(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return In(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Pe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ne(u.line,u.ch-1)),u.ch>0)u=new ne(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ne(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Pe(n.doc,u.line-1).text;y&&(u=new ne(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ne(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return In(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);Zo(n)})},openLine:function(n){return n.replaceSelection(`
32
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Wg(n,i){var a=Pe(n.doc,i),l=pr(a);return l!=a&&(i=C(l)),Mf(!0,n,l,i,1)}function dS(n,i){var a=Pe(n.doc,i),l=X1(a);return l!=a&&(i=C(l)),Mf(!0,n,a,i,-1)}function qg(n,i){var a=Wg(n,i.line),l=Pe(n.doc,a.line),u=Qe(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 ne(a.line,y?0:g,a.sticky)}return a}function tc(n,i,a){if(typeof i=="string"&&(i=pl[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)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function hS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=is(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&is(i,n.options.extraKeys,a,n)||is(i,n.options.keyMap,a,n)}var pS=new Ne;function gl(n,i,a,l){var u=n.state.keySeq;if(u){if(Fg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:pS.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=hS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Gt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(sn(a),ff(n)),!!u}function jg(n,i){var a=Bg(i,!0);return a?i.shiftKey&&!n.state.keySeq?gl(n,"Shift-"+a,i,function(l){return tc(n,l,!0)})||gl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return tc(n,l)}):gl(n,a,i,function(l){return tc(n,l)}):!1}function gS(n,i,a){return gl(n,"'"+a+"'",i,function(l){return tc(n,l,!0)})}var Lf=null;function Vg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=pe(Ye(i)),!Nt(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&&(Lf=l?a:null,!l&&a==88&&!Ma&&(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)&&vS(i)}}function vS(n){var i=n.display.lineDiv;be(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(R(i,"CodeMirror-crosshair"),on(document,"keyup",a),on(document,"mouseover",a))}Ie(document,"keyup",a),Ie(document,"mouseover",a)}function Gg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Nt(this,n)}function Kg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ei(i.display,n)||Nt(i,n)||n.ctrlKey&&!n.altKey||B&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==Lf){Lf=null,sn(n);return}if(!(E&&(!n.which||n.which<10)&&jg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(gS(i,n,u)||i.display.input.onKeyPress(n))}}}var mS=400,Nf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Nf.prototype.compare=function(n,i,a){return this.time+mS>n&&Ce(i,this.pos)==0&&a==this.button};var vl,ml;function yS(n,i){var a=+new Date;return ml&&ml.compare(a,n,i)?(vl=ml=null,"triple"):vl&&vl.compare(a,n,i)?(ml=new Nf(a,n,i),vl=null,"double"):(vl=new Nf(a,n,i),ml=null,"single")}function Xg(n){var i=this,a=i.display;if(!(Nt(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(!$f(i,n)){var l=co(i,n),u=ur(n),g=l?yS(l,u):"single";Ae(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&bS(i,u,l,g,n))&&(u==1?l?xS(i,l,g,n):Ws(n)==a.scroller&&sn(n):u==2?(l&&Xa(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(Y?i.display.input.onContextMenu(n):df(i)))}}}function bS(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,gl(n,Hg(g,u),u,function(y){if(typeof y=="string"&&(y=pl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=q}finally{n.state.suppressEdits=!1}return x})}function wS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=G?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 xS(n,i,a,l){h?setTimeout(Z(Yp,n),0):n.curOp.focus=pe(Ye(n));var u=wS(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&qu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ce((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ce(y.to(),i)>0||i.xRel<0)?SS(n,l,i,u):_S(n,l,i,u)}function SS(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:df(n)),on(u.wrapper.ownerDocument,"mouseup",y),on(u.wrapper.ownerDocument,"mousemove",x),on(u.scroller,"dragstart",S),on(u.scroller,"drop",y),g||(sn(k),l.addNew||Xa(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},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Ie(u.wrapper.ownerDocument,"mouseup",y),Ie(u.wrapper.ownerDocument,"mousemove",x),Ie(u.scroller,"dragstart",S),Ie(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(ne(i.line,0),Ge(n.doc,ne(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function _S(n,i,a,l){h&&df(n);var u=n.display,g=n.doc;sn(i);var y,x,S=g.sel,k=S.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=co(n,i,!0,!0),x=-1;else{var z=Yg(n,a,l.unit);l.extend?y=Cf(y,z.anchor,z.head,l.extend):y=z}l.addNew?x==-1?(x=k.length,ln(g,vr(n,k.concat([y]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&l.unit=="char"&&!l.extend?(ln(g,vr(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Tf(g,x,y,le):(x=0,ln(g,new Xn([y],0),le),S=g.sel);var H=a;function X(xe){if(Ce(H,xe)!=0)if(H=xe,l.unit=="rectangle"){for(var $e=[],Fe=n.options.tabSize,ze=de(Pe(g,a.line).text,a.ch,Fe),Ze=de(Pe(g,xe.line).text,xe.ch,Fe),xt=Math.min(ze,Ze),Yt=Math.max(ze,Ze),At=Math.min(a.line,xe.line),Fn=Math.min(n.lastLine(),Math.max(a.line,xe.line));At<=Fn;At++){var Sn=Pe(g,At).text,Ft=ue(Sn,xt,Fe);xt==Yt?$e.push(new dt(ne(At,Ft),ne(At,Ft))):Sn.length>Ft&&$e.push(new dt(ne(At,Ft),ne(At,ue(Sn,Yt,Fe))))}$e.length||$e.push(new dt(a,a)),ln(g,vr(n,S.ranges.slice(0,x).concat($e),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xe)}else{var _n=y,nn=Yg(n,xe,l.unit),qt=_n.anchor,Ht;Ce(nn.anchor,qt)>0?(Ht=nn.head,qt=Uo(_n.from(),nn.anchor)):(Ht=nn.anchor,qt=bn(_n.to(),nn.head));var Ot=S.ranges.slice(0);Ot[x]=kS(n,new dt(Ge(g,qt),Ht)),ln(g,vr(n,Ot,x),le)}}var V=u.wrapper.getBoundingClientRect(),ie=0;function fe(xe){var $e=++ie,Fe=co(n,xe,!0,l.unit=="rectangle");if(Fe)if(Ce(Fe,H)!=0){n.curOp.focus=pe(Ye(n)),X(Fe);var ze=qa(u,g);(Fe.line>=ze.to||Fe.line<ze.from)&&setTimeout(Kt(n,function(){ie==$e&&fe(xe)}),150)}else{var Ze=xe.clientY<V.top?-20:xe.clientY>V.bottom?20:0;Ze&&setTimeout(Kt(n,function(){ie==$e&&(u.scroller.scrollTop+=Ze,fe(xe))}),50)}}function me(xe){n.state.selectingText=!1,ie=1/0,xe&&(sn(xe),u.input.focus()),on(u.wrapper.ownerDocument,"mousemove",we),on(u.wrapper.ownerDocument,"mouseup",Te),g.history.lastSelOrigin=null}var we=Kt(n,function(xe){xe.buttons===0||!ur(xe)?me(xe):fe(xe)}),Te=Kt(n,me);n.state.selectingText=Te,Ie(u.wrapper.ownerDocument,"mousemove",we),Ie(u.wrapper.ownerDocument,"mouseup",Te)}function kS(n,i){var a=i.anchor,l=i.head,u=Pe(n.doc,a.line);if(Ce(a,l)==0&&a.sticky==l.sticky)return i;var g=Qe(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==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 z=zt(g,l.ch,l.sticky),H=z-y||(l.ch-a.ch)*(x.level==1?-1:1);z==S-1||z==S?k=H<0:k=H>0}var X=g[S+(k?-1:0)],V=k==(X.level==1),ie=V?X.from:X.to,fe=V?"after":"before";return a.ch==ie&&a.sticky==fe?i:new dt(new ne(a.line,ie,fe),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&&sn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Dn(n,a))return yn(i);g-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var k=y.gutters.childNodes[S];if(k&&k.getBoundingClientRect().right>=u){var z=F(n.doc,g),H=n.display.gutterSpecs[S];return Lt(n,a,n,z,H.className,i),yn(i)}}}function $f(n,i){return Zg(n,i,"gutterClick",!0)}function Jg(n,i){ei(n.display,i)||CS(n,i)||Nt(n,i,"contextmenu")||Y||n.display.input.onContextMenu(i)}function CS(n,i){return Dn(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-"),Zs(n)}var ss={toString:function(){return"CodeMirror.Init"}},ev={},nc={};function TS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,S,k){k!=ss&&g(x,S,k)}:g)}n.defineOption=a,n.Init=ss,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){ol(l),Zs(l),wn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(S){for(var k=0;;){var z=S.text.indexOf(u,k);if(z==-1)break;k=z+u.length,g.push(ne(y,z))}y++});for(var x=g.length-1;x>=0;x--)ns(l.doc,u,g[x],ne(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!=ss&&l.refresh()}),a("specialCharPlaceholder",tx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",A?"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",!U),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Qg(l),il(l)},!0),a("keyMap","default",function(l,u,g){var y=ec(u),x=g!=ss&&ec(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,AS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=wf(u,l.options.lineNumbers),il(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?af(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Jo(l)},!0),a("scrollbarStyle","native",function(l){ng(l),Jo(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=wf(l.options.gutters,u),il(l)},!0),a("firstLineNumber",1,il,!0),a("lineNumberFormatter",function(l){return l},il,!0),a("showCursorWhenSelecting",!1,Js,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Yo(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,ES),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Js,!0),a("singleCursorHeightPerLine",!0,Js,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,ol,!0),a("addModeClass",!1,ol,!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,ol,!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 ES(n,i,a){var l=a&&a!=ss;if(!i!=!l){var u=n.display.dragFunctions,g=i?Ie:on;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 AS(n){n.options.lineWrapping?(be(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(R(n.display.wrapper,"CodeMirror-wrap"),Zu(n)),cf(n),wn(n),Zs(n),setTimeout(function(){return Jo(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?ae(i):{},ae(ev,i,!1);var l=i.value;typeof l=="string"?l=new xn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Ct.inputStyles[i.inputStyle](this),g=this.display=new Bx(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 Ne,keySeq:null,specialChars:null},i.autofocus&&!A&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),MS(this),sS(),po(this),this.curOp.forceUpdate=!0,dg(this,l),i.autofocus&&!A||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&hf(a)},20):Yo(this);for(var y in nc)nc.hasOwnProperty(y)&&nc[y](this,i[y],ss);og(this),i.finishInit&&i.finishInit(this);for(var x=0;x<Of.length;++x)Of[x](this);go(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Ct.defaults=ev,Ct.optionHandlers=nc;function MS(n){var i=n.display;Ie(i.scroller,"mousedown",Kt(n,Xg)),h&&p<11?Ie(i.scroller,"dblclick",Kt(n,function(S){if(!Nt(n,S)){var k=co(n,S);if(!(!k||$f(n,S)||ei(n.display,S))){sn(S);var z=n.findWordAt(k);Xa(n.doc,z.anchor,z.head)}}})):Ie(i.scroller,"dblclick",function(S){return Nt(n,S)||sn(S)}),Ie(i.scroller,"contextmenu",function(S){return Jg(n,S)}),Ie(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||Jg(n,S)});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(S){if(S.touches.length!=1)return!1;var k=S.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(S,k){if(k.left==null)return!0;var z=k.left-S.left,H=k.top-S.top;return z*z+H*H>20*20}Ie(i.scroller,"touchstart",function(S){if(!Nt(n,S)&&!g(S)&&!$f(n,S)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Ie(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ie(i.scroller,"touchend",function(S){var k=i.activeTouch;if(k&&!ei(i,S)&&k.left!=null&&!k.moved&&new Date-k.start<300){var z=n.coordsChar(i.activeTouch,"page"),H;!k.prev||y(k,k.prev)?H=new dt(z,z):!k.prev.prev||y(k,k.prev.prev)?H=n.findWordAt(z):H=new dt(ne(z.line,0),Ge(n.doc,ne(z.line+1,0))),n.setSelection(H.anchor,H.head),n.focus(),sn(S)}u()}),Ie(i.scroller,"touchcancel",u),Ie(i.scroller,"scroll",function(){i.scroller.clientHeight&&(el(n,i.scroller.scrollTop),fo(n,i.scroller.scrollLeft,!0),Lt(n,"scroll",n))}),Ie(i.scroller,"mousewheel",function(S){return ag(n,S)}),Ie(i.scroller,"DOMMouseScroll",function(S){return ag(n,S)}),Ie(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Nt(n,S)||wi(S)},over:function(S){Nt(n,S)||(oS(n,S),wi(S))},start:function(S){return iS(n,S)},drop:Kt(n,rS),leave:function(S){Nt(n,S)||zg(n)}};var x=i.input.getField();Ie(x,"keyup",function(S){return Gg.call(n,S)}),Ie(x,"keydown",Kt(n,Vg)),Ie(x,"keypress",Kt(n,Kg)),Ie(x,"focus",function(S){return hf(n,S)}),Ie(x,"blur",function(S){return Yo(n,S)})}var Of=[];Ct.defineInitHook=function(n){return Of.push(n)};function yl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Vs(n,i).state:a="prev");var y=n.options.tabSize,x=Pe(u,i),S=de(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],z;if(!l&&!/\S/.test(x.text))z=0,a="not";else if(a=="smart"&&(z=u.mode.indent(g,x.text.slice(k.length),x.text),z==q||z>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?z=de(Pe(u,i-1).text,null,y):z=0:a=="add"?z=S+n.options.indentUnit:a=="subtract"?z=S-n.options.indentUnit:typeof a=="number"&&(z=S+a),z=Math.max(0,z);var H="",X=0;if(n.options.indentWithTabs)for(var V=Math.floor(z/y);V;--V)X+=y,H+=" ";if(X<z&&(H+=_e(z-X)),H!=k)return ns(u,H,ne(i,0),ne(i,k.length),"+input"),x.stateAfter=null,!0;for(var ie=0;ie<u.sel.ranges.length;ie++){var fe=u.sel.ranges[ie];if(fe.head.line==i&&fe.head.ch<k.length){var me=ne(i,k.length);Tf(u,ie,new dt(me,me));break}}}var mr=null;function rc(n){mr=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,S=ir(i),k=null;if(x&&l.ranges.length>1)if(mr&&mr.text.join(`
33
33
  `)==i){if(l.ranges.length%mr.text.length==0){k=[];for(var z=0;z<mr.text.length;z++)k.push(g.splitLines(mr.text[z]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=ge(S,function(we){return[we]}));for(var H=n.curOp.updateInput,X=l.ranges.length-1;X>=0;X--){var V=l.ranges[X],ie=V.from(),fe=V.to();V.empty()&&(a&&a>0?ie=ne(ie.line,ie.ch-a):n.state.overwrite&&!x?fe=ne(fe.line,Math.min(Pe(g,fe.line).text.length,fe.ch+he(S).length)):x&&mr&&mr.lineWise&&mr.text.join(`
34
34
  `)==S.join(`
35
- `)&&(ie=fe=ne(ie.line,0)));var me={from:ie,to:fe,text:k?k[X%k.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ts(n.doc,me),Gt(n,"inputRead",n,me)}i&&!x&&nv(n,i),Zo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=H),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()&&In(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=yl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Pe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=yl(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:ne(u,0),head:ne(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Rf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function iv(){var n=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),T&&(n.style.border="1px solid black"),i}function MS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Ae(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),Lt(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"](ec(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:fn(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++,wn(this)}),removeOverlay:fn(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++,wn(this);return}}}),indentLine:fn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&yl(this,l,u,g)}),indentSelection:fn(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&&(yl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Zo(this));else{var S=x.from(),k=x.to(),z=Math.max(g,S.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var H=z;H<g;++H)yl(this,H,l);var X=this.doc.sel.ranges;S.ch==0&&u.length==X.length&&X[y].from().ch>0&&Tf(this.doc,y,new dt(S,X[y].to()),K)}}}),getTokenAt:function(l,u){return pp(this,l,u)},getLineTokens:function(l,u){return pp(this,ne(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=fp(this,Pe(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=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{S=u[k*2+2];break}}var z=S?S.indexOf("overlay "):-1;return z<0?S:z==0?null:S.slice(0,z-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 S=0;S<x[u].length;S++){var k=y[x[u][S]];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 z=0;z<y._global.length;z++){var H=y._global[z];H.pred(x,this)&&Me(g,H.val)==-1&&g.push(H.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=ap(g,l??g.first+g.size-1),Vs(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(),gr(this,g,u||"page")},charCoords:function(l,u){return Fa(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=qp(this,l,u||"page"),of(this,l.left,l.top)},lineAtHeight:function(l,u){return l=qp(this,{top:l,left:0},u||"page").top,F(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),x=Pe(this.doc,l)}else x=l;return Ia(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-Qr(x):0)},defaultTextHeight:function(){return Ko(this.display)},defaultCharWidth:function(){return Xo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var S=this.display;l=gr(this,Ge(this.doc,l));var k=l.bottom,z=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var H=Math.max(S.wrapper.clientHeight,this.doc.height),X=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>H)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=H&&(k=l.bottom),z+u.offsetWidth>X&&(z=X-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",x=="right"?(z=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?z=0:x=="middle"&&(z=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=z+"px"),g&&Tx(this,{left:z,top:k,right:z+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:fn(Vg),triggerOnKeyPress:fn(Kg),triggerOnKeyUp:Gg,triggerOnMouseDown:fn(Xg),execCommand:function(l){if(pl.hasOwnProperty(l))return pl[l].call(null,this)},triggerElectric:fn(function(l){nv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var S=Ge(this.doc,l),k=0;k<u&&(S=zf(this.doc,S,x,g,y),!S.hitSide);++k);return S},moveH:fn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?zf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},ce)}),deleteH:fn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):os(this,function(x){var S=zf(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,g,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var k=Ge(this.doc,l),z=0;z<u;++z){var H=gr(this,k,"div");if(S==null?S=H.left:H.left=S,k=ov(this,H,x,g),k.hitSide)break}return k},moveV:fn(function(l,u){var g=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(z){if(S)return l<0?z.from():z.to();var H=gr(g,z.head,"div");z.goalColumn!=null&&(H.left=z.goalColumn),x.push(H.left);var X=ov(g,H,l,u);return u=="page"&&z==y.sel.primary()&&gf(g,Fa(g,X,"div").top-H.top),X},ce),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=Pe(u,l.line).text,y=l.ch,x=l.ch;if(g){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var k=g.charAt(y),z=ot(k,S)?function(H){return ot(H,S)}:/\s/.test(k)?function(H){return/\s/.test(H)}:function(H){return!/\s/.test(H)&&!ot(H)};y>0&&z(g.charAt(y-1));)--y;for(;x<g.length&&z(g.charAt(x));)++x}return new dt(ne(l.line,y),ne(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?be(this.display.cursorDiv,"CodeMirror-overwrite"):R(this.display.cursorDiv,"CodeMirror-overwrite"),Lt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pe(Ye(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:fn(function(l,u){Qs(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Rr(this)-this.display.barHeight,width:l.scrollWidth-Rr(this)-this.display.barWidth,clientHeight:ef(this),clientWidth:lo(this)}},scrollIntoView:fn(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:ne(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?Ex(this,l):Jp(this,l.from,l.to,l.margin)}),setSize:fn(function(l,u){var g=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};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(S){if(S.widgets){for(var k=0;k<S.widgets.length;k++)if(S.widgets[k].noHScroll){Ci(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Lt(this,"refresh",this)}),operation:function(l){return In(this,l)},startOperation:function(){return po(this)},endOperation:function(){return go(this)},refresh:fn(function(){var l=this.display.cachedTextHeight;wn(this),this.curOp.forceUpdate=!0,Zs(this),Qs(this,this.doc.scrollLeft,this.doc.scrollTop),yf(this.display),(l==null||Math.abs(l-Ko(this.display))>.5||this.options.lineWrapping)&&cf(this),Lt(this,"refresh",this)}),swapDoc:fn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),dg(this,l),Zs(this),this.display.input.reset(),Qs(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}},cr(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 zf(n,i,a,l,u){var g=i,y=a,x=Pe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function k(){var Te=i.line+S;return Te<n.first||Te>=n.first+n.size?!1:(i=new ne(Te,i.ch,i.sticky),x=Pe(n,Te))}function z(Te){var xe;if(l=="codepoint"){var $e=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN($e))xe=null;else{var Fe=a>0?$e>=55296&&$e<56320:$e>=56320&&$e<57343;xe=new ne(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Fe?2:1))),-a)}}else u?xe=uS(n.cm,x,i,a):xe=Af(x,i,a);if(xe==null)if(!Te&&k())i=Mf(u,n.cm,x,i.line,S);else return!1;else i=xe;return!0}if(l=="char"||l=="codepoint")z();else if(l=="column")z(!0);else if(l=="word"||l=="group")for(var H=null,X=l=="group",V=n.cm&&n.cm.getHelper(i,"wordChars"),ie=!0;!(a<0&&!z(!ie));ie=!1){var fe=x.text.charAt(i.ch)||`
35
+ `)&&(ie=fe=ne(ie.line,0)));var me={from:ie,to:fe,text:k?k[X%k.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ts(n.doc,me),Gt(n,"inputRead",n,me)}i&&!x&&nv(n,i),Zo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=H),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()&&In(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=yl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Pe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=yl(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:ne(u,0),head:ne(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Rf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function iv(){var n=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),T&&(n.style.border="1px solid black"),i}function LS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Ae(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),Lt(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"](ec(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:fn(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++,wn(this)}),removeOverlay:fn(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++,wn(this);return}}}),indentLine:fn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&yl(this,l,u,g)}),indentSelection:fn(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&&(yl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Zo(this));else{var S=x.from(),k=x.to(),z=Math.max(g,S.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var H=z;H<g;++H)yl(this,H,l);var X=this.doc.sel.ranges;S.ch==0&&u.length==X.length&&X[y].from().ch>0&&Tf(this.doc,y,new dt(S,X[y].to()),K)}}}),getTokenAt:function(l,u){return pp(this,l,u)},getLineTokens:function(l,u){return pp(this,ne(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=fp(this,Pe(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=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{S=u[k*2+2];break}}var z=S?S.indexOf("overlay "):-1;return z<0?S:z==0?null:S.slice(0,z-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 S=0;S<x[u].length;S++){var k=y[x[u][S]];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 z=0;z<y._global.length;z++){var H=y._global[z];H.pred(x,this)&&Me(g,H.val)==-1&&g.push(H.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=ap(g,l??g.first+g.size-1),Vs(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(),gr(this,g,u||"page")},charCoords:function(l,u){return Fa(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=qp(this,l,u||"page"),of(this,l.left,l.top)},lineAtHeight:function(l,u){return l=qp(this,{top:l,left:0},u||"page").top,F(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),x=Pe(this.doc,l)}else x=l;return Ia(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-Qr(x):0)},defaultTextHeight:function(){return Ko(this.display)},defaultCharWidth:function(){return Xo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var S=this.display;l=gr(this,Ge(this.doc,l));var k=l.bottom,z=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var H=Math.max(S.wrapper.clientHeight,this.doc.height),X=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>H)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=H&&(k=l.bottom),z+u.offsetWidth>X&&(z=X-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",x=="right"?(z=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?z=0:x=="middle"&&(z=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=z+"px"),g&&Ex(this,{left:z,top:k,right:z+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:fn(Vg),triggerOnKeyPress:fn(Kg),triggerOnKeyUp:Gg,triggerOnMouseDown:fn(Xg),execCommand:function(l){if(pl.hasOwnProperty(l))return pl[l].call(null,this)},triggerElectric:fn(function(l){nv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var S=Ge(this.doc,l),k=0;k<u&&(S=zf(this.doc,S,x,g,y),!S.hitSide);++k);return S},moveH:fn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?zf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},ce)}),deleteH:fn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):os(this,function(x){var S=zf(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,g,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var k=Ge(this.doc,l),z=0;z<u;++z){var H=gr(this,k,"div");if(S==null?S=H.left:H.left=S,k=ov(this,H,x,g),k.hitSide)break}return k},moveV:fn(function(l,u){var g=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(z){if(S)return l<0?z.from():z.to();var H=gr(g,z.head,"div");z.goalColumn!=null&&(H.left=z.goalColumn),x.push(H.left);var X=ov(g,H,l,u);return u=="page"&&z==y.sel.primary()&&gf(g,Fa(g,X,"div").top-H.top),X},ce),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=Pe(u,l.line).text,y=l.ch,x=l.ch;if(g){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var k=g.charAt(y),z=ot(k,S)?function(H){return ot(H,S)}:/\s/.test(k)?function(H){return/\s/.test(H)}:function(H){return!/\s/.test(H)&&!ot(H)};y>0&&z(g.charAt(y-1));)--y;for(;x<g.length&&z(g.charAt(x));)++x}return new dt(ne(l.line,y),ne(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?be(this.display.cursorDiv,"CodeMirror-overwrite"):R(this.display.cursorDiv,"CodeMirror-overwrite"),Lt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pe(Ye(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:fn(function(l,u){Qs(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Rr(this)-this.display.barHeight,width:l.scrollWidth-Rr(this)-this.display.barWidth,clientHeight:ef(this),clientWidth:lo(this)}},scrollIntoView:fn(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:ne(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?Ax(this,l):Jp(this,l.from,l.to,l.margin)}),setSize:fn(function(l,u){var g=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};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(S){if(S.widgets){for(var k=0;k<S.widgets.length;k++)if(S.widgets[k].noHScroll){Ci(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Lt(this,"refresh",this)}),operation:function(l){return In(this,l)},startOperation:function(){return po(this)},endOperation:function(){return go(this)},refresh:fn(function(){var l=this.display.cachedTextHeight;wn(this),this.curOp.forceUpdate=!0,Zs(this),Qs(this,this.doc.scrollLeft,this.doc.scrollTop),yf(this.display),(l==null||Math.abs(l-Ko(this.display))>.5||this.options.lineWrapping)&&cf(this),Lt(this,"refresh",this)}),swapDoc:fn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),dg(this,l),Zs(this),this.display.input.reset(),Qs(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}},cr(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 zf(n,i,a,l,u){var g=i,y=a,x=Pe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function k(){var Te=i.line+S;return Te<n.first||Te>=n.first+n.size?!1:(i=new ne(Te,i.ch,i.sticky),x=Pe(n,Te))}function z(Te){var xe;if(l=="codepoint"){var $e=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN($e))xe=null;else{var Fe=a>0?$e>=55296&&$e<56320:$e>=56320&&$e<57343;xe=new ne(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Fe?2:1))),-a)}}else u?xe=fS(n.cm,x,i,a):xe=Af(x,i,a);if(xe==null)if(!Te&&k())i=Mf(u,n.cm,x,i.line,S);else return!1;else i=xe;return!0}if(l=="char"||l=="codepoint")z();else if(l=="column")z(!0);else if(l=="word"||l=="group")for(var H=null,X=l=="group",V=n.cm&&n.cm.getHelper(i,"wordChars"),ie=!0;!(a<0&&!z(!ie));ie=!1){var fe=x.text.charAt(i.ch)||`
36
36
  `,me=ot(fe,V)?"w":X&&fe==`
37
37
  `?"n":!X||/\s/.test(fe)?null:"p";if(X&&!ie&&!me&&(me="s"),H&&H!=me){a<0&&(a=1,z(),i.sticky="after");break}if(me&&(H=me),a>0&&!z(!ie))break}var we=Za(n,i,g,y,!0);return ft(g,we)&&(we.hitSide=!0),we}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,Ae(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*Ko(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=of(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 Ne,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,Rf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}Ie(u,"paste",function(x){!g(x)||Nt(l,x)||tv(x,l)||p<=11&&setTimeout(Kt(l,function(){return i.updateFromDOM()}),20)}),Ie(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Ie(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Ie(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Ie(u,"touchstart",function(){return a.forceCompositionEnd()}),Ie(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Nt(l,x))){if(l.somethingSelected())rc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=rv(l);rc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,K),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var k=mr.text.join(`
38
38
  `);if(x.clipboardData.setData("Text",k),x.clipboardData.getData("Text")==k){x.preventDefault();return}}var z=iv(),H=z.firstChild;Rf(H),l.display.lineSpace.insertBefore(z,l.display.lineSpace.firstChild),H.value=mr.text.join(`
39
- `);var X=pe(Xe(u));qe(H),setTimeout(function(){l.display.lineSpace.removeChild(z),X.focus(),X==u&&a.showPrimarySelection()},50)}}Ie(u,"copy",y),Ie(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=pe(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=ic(i,n.anchorNode,n.anchorOffset),y=ic(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ce(Uo(g,y),l)==0&&Ce(bn(g,y),u)==0)){var x=i.display.view,S=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 z=x[x.length-1].measure,H=z.maps?z.maps[z.maps.length-1]:z.map;k={node:H[H.length-1],offset:H[H.length-2]-H[H.length-3]}}if(!S||!k){n.removeAllRanges();return}var X=n.rangeCount&&n.getRangeAt(0),V;try{V=j(S.node,S.offset,k.offset,k.node)}catch{}V&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),V.collapsed||(n.removeAllRanges(),n.addRange(V))):(n.removeAllRanges(),n.addRange(V)),X&&n.anchorNode==null?n.addRange(X):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 re(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||pe(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):In(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(P&&b&&this.cm.display.gutterSpecs.length&&LS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=ic(i,n.anchorNode,n.anchorOffset),l=ic(i,n.focusNode,n.focusOffset);a&&l&&In(i,function(){ln(i.doc,Ei(a,l),K),(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=ne(l.line-1,Pe(n.doc,l.line-1).length)),u.ch==Pe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ne(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=uo(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 S=uo(n,u.line),k,z;if(S==i.view.length-1?(k=i.viewTo-1,z=i.lineDiv.lastChild):(k=C(i.view[S+1].line)-1,z=i.view[S+1].node.previousSibling),!x)return!1;for(var H=n.doc.splitLines(NS(n,x,z,y,k)),X=Zr(n.doc,ne(y,0),ne(k,Pe(n.doc,k).text.length));H.length>1&&X.length>1;)if(he(H)==he(X))H.pop(),X.pop(),k--;else if(H[0]==X[0])H.shift(),X.shift(),y++;else break;for(var V=0,ie=0,fe=H[0],me=X[0],we=Math.min(fe.length,me.length);V<we&&fe.charCodeAt(V)==me.charCodeAt(V);)++V;for(var Te=he(H),xe=he(X),$e=Math.min(Te.length-(H.length==1?V:0),xe.length-(X.length==1?V:0));ie<$e&&Te.charCodeAt(Te.length-ie-1)==xe.charCodeAt(xe.length-ie-1);)++ie;if(H.length==1&&X.length==1&&y==l.line)for(;V&&V>l.ch&&Te.charCodeAt(Te.length-ie-1)==xe.charCodeAt(xe.length-ie-1);)V--,ie++;H[H.length-1]=Te.slice(0,Te.length-ie).replace(/^\u200b+/,""),H[0]=H[0].slice(V).replace(/\u200b+$/,"");var Fe=ne(y,V),ze=ne(k,X.length?he(X).length-ie:0);if(H.length>1||H[0]||Ce(Fe,ze))return ns(n.doc,H,Fe,ze,"+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())&&In(this.cm,function(){return wn(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=tf(n,i.line);if(!a||a.hidden)return null;var l=Pe(n.doc,i.line),u=Rp(a,l,i.line),g=Qe(l,n.doc.direction),y="left";if(g){var x=zt(g,i.ch);y=x%2?"right":"left"}var S=Ip(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function LS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ls(n,i){return i&&(n.bad=!0),n}function NS(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),S=!1;function k(V){return function(ie){return ie.id==V}}function z(){y&&(g+=x,S&&(g+=x),y=S=!1)}function H(V){V&&(z(),g+=V)}function X(V){if(V.nodeType==1){var ie=V.getAttribute("cm-text");if(ie){H(ie);return}var fe=V.getAttribute("cm-marker"),me;if(fe){var we=n.findMarks(ne(l,0),ne(u+1,0),k(+fe));we.length&&(me=we[0].find(0))&&H(Zr(n.doc,me.from,me.to).join(x));return}if(V.getAttribute("contenteditable")=="false")return;var Te=/^(pre|div|p|li|table|br)$/i.test(V.nodeName);if(!/^br$/i.test(V.nodeName)&&V.textContent.length==0)return;Te&&z();for(var xe=0;xe<V.childNodes.length;xe++)X(V.childNodes[xe]);/^(pre|p)$/i.test(V.nodeName)&&(S=!0),Te&&(y=!0)}else V.nodeType==3&&H(V.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;X(i),i!=a;)i=i.nextSibling,S=!1;return g}function ic(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ls(n.clipPos(ne(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 $S(g,i,a)}}function $S(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return ls(ne(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?he(n.rest):n.line;return ls(ne(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 S=n.measure,k=S.maps;function z(me,we,Te){for(var xe=-1;xe<(k?k.length:0);xe++)for(var $e=xe<0?S.map:k[xe],Fe=0;Fe<$e.length;Fe+=3){var ze=$e[Fe+2];if(ze==me||ze==we){var Ze=C(xe<0?n.line:n.rest[xe]),xt=$e[Fe]+Te;return(Te<0||ze!=me)&&(xt=$e[Fe+(Te?1:0)]),ne(Ze,xt)}}}var H=z(y,x,a);if(H)return ls(H,u);for(var X=x.nextSibling,V=y?y.nodeValue.length-a:0;X;X=X.nextSibling){if(H=z(X,X.firstChild,0),H)return ls(ne(H.line,H.ch-V),u);V+=X.textContent.length}for(var ie=x.previousSibling,fe=a;ie;ie=ie.previousSibling){if(H=z(ie,ie.firstChild,-1),H)return ls(ne(H.line,H.ch+fe),u);fe+=ie.textContent.length}}var Dt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new Ne,this.hasSelection=!1,this.composing=null,this.resetting=!1};Dt.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),T&&(u.style.width="0px"),Ie(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Ie(u,"paste",function(y){Nt(l,y)||tv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Nt(l,y)){if(l.somethingSelected())rc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=rv(l);rc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,K):(a.prevInput="",u.value=x.text.join(`
40
- `),qe(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Ie(u,"cut",g),Ie(u,"copy",g),Ie(n.scroller,"paste",function(y){if(!(ei(n,y)||Nt(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)}}),Ie(n.lineSpace,"selectstart",function(y){ei(n,y)||sn(y)}),Ie(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"})}}),Ie(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Dt.prototype.createField=function(n){this.wrapper=iv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Rf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Dt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Dt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Xp(n);if(n.options.moveInputWithCursor){var u=gr(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},Dt.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")},Dt.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}},Dt.prototype.getField=function(){return this.textarea},Dt.prototype.supportsTouch=function(){return!1},Dt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||pe(Xe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Dt.prototype.blur=function(){this.textarea.blur()},Dt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dt.prototype.receivedFocus=function(){this.slowPoll()},Dt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Dt.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)},Dt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Si(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 In(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},Dt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Dt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),y=l.scroller.scrollTop;if(!g||A)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Kt(a,ln)(a.doc,Ei(g),K);var S=u.style.cssText,k=i.wrapper.style.cssText,z=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
39
+ `);var X=pe(Xe(u));qe(H),setTimeout(function(){l.display.lineSpace.removeChild(z),X.focus(),X==u&&a.showPrimarySelection()},50)}}Ie(u,"copy",y),Ie(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=pe(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=ic(i,n.anchorNode,n.anchorOffset),y=ic(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ce(Uo(g,y),l)==0&&Ce(bn(g,y),u)==0)){var x=i.display.view,S=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 z=x[x.length-1].measure,H=z.maps?z.maps[z.maps.length-1]:z.map;k={node:H[H.length-1],offset:H[H.length-2]-H[H.length-3]}}if(!S||!k){n.removeAllRanges();return}var X=n.rangeCount&&n.getRangeAt(0),V;try{V=j(S.node,S.offset,k.offset,k.node)}catch{}V&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),V.collapsed||(n.removeAllRanges(),n.addRange(V))):(n.removeAllRanges(),n.addRange(V)),X&&n.anchorNode==null?n.addRange(X):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 re(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||pe(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):In(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(P&&b&&this.cm.display.gutterSpecs.length&&NS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=ic(i,n.anchorNode,n.anchorOffset),l=ic(i,n.focusNode,n.focusOffset);a&&l&&In(i,function(){ln(i.doc,Ei(a,l),K),(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=ne(l.line-1,Pe(n.doc,l.line-1).length)),u.ch==Pe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ne(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=uo(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 S=uo(n,u.line),k,z;if(S==i.view.length-1?(k=i.viewTo-1,z=i.lineDiv.lastChild):(k=C(i.view[S+1].line)-1,z=i.view[S+1].node.previousSibling),!x)return!1;for(var H=n.doc.splitLines($S(n,x,z,y,k)),X=Zr(n.doc,ne(y,0),ne(k,Pe(n.doc,k).text.length));H.length>1&&X.length>1;)if(he(H)==he(X))H.pop(),X.pop(),k--;else if(H[0]==X[0])H.shift(),X.shift(),y++;else break;for(var V=0,ie=0,fe=H[0],me=X[0],we=Math.min(fe.length,me.length);V<we&&fe.charCodeAt(V)==me.charCodeAt(V);)++V;for(var Te=he(H),xe=he(X),$e=Math.min(Te.length-(H.length==1?V:0),xe.length-(X.length==1?V:0));ie<$e&&Te.charCodeAt(Te.length-ie-1)==xe.charCodeAt(xe.length-ie-1);)++ie;if(H.length==1&&X.length==1&&y==l.line)for(;V&&V>l.ch&&Te.charCodeAt(Te.length-ie-1)==xe.charCodeAt(xe.length-ie-1);)V--,ie++;H[H.length-1]=Te.slice(0,Te.length-ie).replace(/^\u200b+/,""),H[0]=H[0].slice(V).replace(/\u200b+$/,"");var Fe=ne(y,V),ze=ne(k,X.length?he(X).length-ie:0);if(H.length>1||H[0]||Ce(Fe,ze))return ns(n.doc,H,Fe,ze,"+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())&&In(this.cm,function(){return wn(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=tf(n,i.line);if(!a||a.hidden)return null;var l=Pe(n.doc,i.line),u=Rp(a,l,i.line),g=Qe(l,n.doc.direction),y="left";if(g){var x=zt(g,i.ch);y=x%2?"right":"left"}var S=Ip(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function NS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ls(n,i){return i&&(n.bad=!0),n}function $S(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),S=!1;function k(V){return function(ie){return ie.id==V}}function z(){y&&(g+=x,S&&(g+=x),y=S=!1)}function H(V){V&&(z(),g+=V)}function X(V){if(V.nodeType==1){var ie=V.getAttribute("cm-text");if(ie){H(ie);return}var fe=V.getAttribute("cm-marker"),me;if(fe){var we=n.findMarks(ne(l,0),ne(u+1,0),k(+fe));we.length&&(me=we[0].find(0))&&H(Zr(n.doc,me.from,me.to).join(x));return}if(V.getAttribute("contenteditable")=="false")return;var Te=/^(pre|div|p|li|table|br)$/i.test(V.nodeName);if(!/^br$/i.test(V.nodeName)&&V.textContent.length==0)return;Te&&z();for(var xe=0;xe<V.childNodes.length;xe++)X(V.childNodes[xe]);/^(pre|p)$/i.test(V.nodeName)&&(S=!0),Te&&(y=!0)}else V.nodeType==3&&H(V.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;X(i),i!=a;)i=i.nextSibling,S=!1;return g}function ic(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ls(n.clipPos(ne(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 OS(g,i,a)}}function OS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return ls(ne(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?he(n.rest):n.line;return ls(ne(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 S=n.measure,k=S.maps;function z(me,we,Te){for(var xe=-1;xe<(k?k.length:0);xe++)for(var $e=xe<0?S.map:k[xe],Fe=0;Fe<$e.length;Fe+=3){var ze=$e[Fe+2];if(ze==me||ze==we){var Ze=C(xe<0?n.line:n.rest[xe]),xt=$e[Fe]+Te;return(Te<0||ze!=me)&&(xt=$e[Fe+(Te?1:0)]),ne(Ze,xt)}}}var H=z(y,x,a);if(H)return ls(H,u);for(var X=x.nextSibling,V=y?y.nodeValue.length-a:0;X;X=X.nextSibling){if(H=z(X,X.firstChild,0),H)return ls(ne(H.line,H.ch-V),u);V+=X.textContent.length}for(var ie=x.previousSibling,fe=a;ie;ie=ie.previousSibling){if(H=z(ie,ie.firstChild,-1),H)return ls(ne(H.line,H.ch+fe),u);fe+=ie.textContent.length}}var Dt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new Ne,this.hasSelection=!1,this.composing=null,this.resetting=!1};Dt.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),T&&(u.style.width="0px"),Ie(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Ie(u,"paste",function(y){Nt(l,y)||tv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Nt(l,y)){if(l.somethingSelected())rc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=rv(l);rc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,K):(a.prevInput="",u.value=x.text.join(`
40
+ `),qe(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Ie(u,"cut",g),Ie(u,"copy",g),Ie(n.scroller,"paste",function(y){if(!(ei(n,y)||Nt(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)}}),Ie(n.lineSpace,"selectstart",function(y){ei(n,y)||sn(y)}),Ie(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"})}}),Ie(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Dt.prototype.createField=function(n){this.wrapper=iv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Rf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Dt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Dt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Xp(n);if(n.options.moveInputWithCursor){var u=gr(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},Dt.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")},Dt.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}},Dt.prototype.getField=function(){return this.textarea},Dt.prototype.supportsTouch=function(){return!1},Dt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||pe(Xe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Dt.prototype.blur=function(){this.textarea.blur()},Dt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dt.prototype.receivedFocus=function(){this.slowPoll()},Dt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Dt.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)},Dt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Si(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 In(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},Dt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Dt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),y=l.scroller.scrollTop;if(!g||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Kt(a,ln)(a.doc,Ei(g),K);var S=u.style.cssText,k=i.wrapper.style.cssText,z=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
42
42
  top: `+(n.clientY-z.top-5)+"px; left: "+(n.clientX-z.left-5)+`px;
43
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 H;v&&(H=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,H),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function X(){if(u.selectionStart!=null){var fe=a.somethingSelected(),me="​"+(fe?u.value:"");u.value="⇚",u.value=me,i.prevInput=fe?"":"​",u.selectionStart=1,u.selectionEnd=me.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&X();var fe=0,me=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Kt(a,Cg)(a):fe++<10?l.detectingSelectAll=setTimeout(me,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(me,200)}}if(h&&p>=9&&X(),Y){wi(n);var ie=function(){on(window,"mouseup",ie),setTimeout(V,20)};Ie(window,"mouseup",ie)}else setTimeout(V,50)},Dt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Dt.prototype.setUneditable=function(){},Dt.prototype.needsContentAttribute=!1;function OS(n,i){if(i=i?ae(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=pe(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Ie(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(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(on(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function PS(n){n.off=on,n.on=Ie,n.wheelEventPixels=Bx,n.Doc=xn,n.splitLines=ir,n.countColumn=de,n.findColumn=ue,n.isWordChar=tt,n.Pass=q,n.signal=Lt,n.Line=jo,n.changeEnd=Ai,n.scrollbarModel=tg,n.Pos=ne,n.cmpPos=Ce,n.modes=Fo,n.mimeModes=dr,n.resolveMode=Ho,n.getMode=Bo,n.modeExtensions=_i,n.extendMode=Wo,n.copyState=Or,n.startState=qo,n.innerMode=Us,n.commands=pl,n.keyMap=ni,n.keyName=Bg,n.isModifierKey=Fg,n.lookupKey=is,n.normalizeKeyMap=cS,n.StringStream=$t,n.SharedTextMarker=fl,n.TextMarker=Li,n.LineWidget=ul,n.e_preventDefault=sn,n.e_stopPropagation=Do,n.e_stop=wi,n.addClass=be,n.contains=re,n.rmClass=R,n.keyNames=Ni}CS(Ct),MS(Ct);var RS="iter insert remove copy getEditor constructor".split(" ");for(var oc in xn.prototype)xn.prototype.hasOwnProperty(oc)&&Me(RS,oc)<0&&(Ct.prototype[oc]=function(n){return function(){return n.apply(this.doc,arguments)}}(xn.prototype[oc]));return cr(xn),Ct.inputStyles={textarea:Dt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),hr.apply(this,arguments)},Ct.defineMIME=so,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){xn.prototype[n]=i},Ct.fromTextArea=OS,PS(Ct),Ct.version="5.65.18",Ct})}(Lc)),Lc.exports}var Hce=Bs();const Bce=yw(Hce);var Im={exports:{}},Fm;function Ow(){return Fm||(Fm=1,function(e,t){(function(r){r(Bs())})(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 F=C("keyword a"),se=C("keyword b"),ve=C("keyword c"),ne=C("keyword d"),Ce=C("operator"),ft={type:"atom",style:"atom"};return{if:C("if"),while:F,with:F,else:se,do:se,try:se,finally:se,return:ne,break:ne,continue:ne,new:C("new"),delete:ve,void:ve,throw:ve,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:Ce,typeof:Ce,instanceof:Ce,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:C("this"),class:C("class"),super:C("atom"),yield:ve,export:C("export"),import:C("import"),extends:ve,await:ve}}(),w=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(C){for(var F=!1,se,ve=!1;(se=C.next())!=null;){if(!F){if(se=="/"&&!ve)return;se=="["?ve=!0:ve&&se=="]"&&(ve=!1)}F=!F&&se=="\\"}}var L,M;function T(C,F,se){return L=C,M=se,F}function P(C,F){var se=C.next();if(se=='"'||se=="'")return F.tokenize=E(se),F.tokenize(C,F);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(se=="."&&C.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return T(se);if(se=="="&&C.eat(">"))return T("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(se=="/")return C.eat("*")?(F.tokenize=B,B(C,F)):C.eat("/")?(C.skipToEnd(),T("comment","comment")):Kn(C,F,1)?(N(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(C.eat("="),T("operator","operator",C.current()));if(se=="`")return F.tokenize=G,G(C,F);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),T("meta","meta");if(se=="#"&&C.eatWhile(m))return T("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),T("comment","comment");if(w.test(se))return(se!=">"||!F.lexical||F.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?T("."):T("operator","operator",C.current());if(m.test(se)){C.eatWhile(m);var ve=C.current();if(F.lastType!="."){if(b.propertyIsEnumerable(ve)){var ne=b[ve];return T(ne.type,ne.style,ve)}if(ve=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ve)}return T("variable","variable",ve)}}function E(C){return function(F,se){var ve=!1,ne;if(d&&F.peek()=="@"&&F.match(A))return se.tokenize=P,T("jsonld-keyword","meta");for(;(ne=F.next())!=null&&!(ne==C&&!ve);)ve=!ve&&ne=="\\";return ve||(se.tokenize=P),T("string","string")}}function B(C,F){for(var se=!1,ve;ve=C.next();){if(ve=="/"&&se){F.tokenize=P;break}se=ve=="*"}return T("comment","comment")}function G(C,F){for(var se=!1,ve;(ve=C.next())!=null;){if(!se&&(ve=="`"||ve=="$"&&C.eat("{"))){F.tokenize=P;break}se=!se&&ve=="\\"}return T("quasi","string-2",C.current())}var U="([{}])";function Q(C,F){F.fatArrowAt&&(F.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ve=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ve&&(se=ve.index)}for(var ne=0,Ce=!1,ft=se-1;ft>=0;--ft){var Vt=C.string.charAt(ft),bn=U.indexOf(Vt);if(bn>=0&&bn<3){if(!ne){++ft;break}if(--ne==0){Vt=="("&&(Ce=!0);break}}else if(bn>=3&&bn<6)++ne;else if(m.test(Vt))Ce=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Uo=C.string.charAt(ft-1);if(Uo==Vt&&C.string.charAt(ft-2)!="\\"){ft--;break}}else if(Ce&&!ne){++ft;break}}Ce&&!ne&&(F.fatArrowAt=ft)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Y(C,F,se,ve,ne,Ce){this.indented=C,this.column=F,this.type=se,this.prev=ne,this.info=Ce,ve!=null&&(this.align=ve)}function ee(C,F){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==F)return!0;for(var ve=C.context;ve;ve=ve.prev)for(var se=ve.vars;se;se=se.next)if(se.name==F)return!0}function R(C,F,se,ve,ne){var Ce=C.cc;for($.state=C,$.stream=ne,$.marked=null,$.cc=Ce,$.style=F,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ft=Ce.length?Ce.pop():h?Me:de;if(ft(se,ve)){for(;Ce.length&&Ce[Ce.length-1].lex;)Ce.pop()();return $.marked?$.marked:se=="variable"&&ee(C,ve)?"variable-2":F}}}var $={state:null,marked:null,cc:null};function O(){for(var C=arguments.length-1;C>=0;C--)$.cc.push(arguments[C])}function _(){return O.apply(null,arguments),!0}function D(C,F){for(var se=F;se;se=se.next)if(se.name==C)return!0;return!1}function j(C){var F=$.state;if($.marked="def",!!p){if(F.context){if(F.lexical.info=="var"&&F.context&&F.context.block){var se=re(C,F.context);if(se!=null){F.context=se;return}}else if(!D(C,F.localVars)){F.localVars=new Re(C,F.localVars);return}}s.globalVars&&!D(C,F.globalVars)&&(F.globalVars=new Re(C,F.globalVars))}}function re(C,F){if(F)if(F.block){var se=re(C,F.prev);return se?se==F.prev?F:new be(se,F.vars,!0):null}else return D(C,F.vars)?F:new be(F.prev,new Re(C,F.vars),!1);else return null}function pe(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function be(C,F,se){this.prev=C,this.vars=F,this.block=se}function Re(C,F){this.name=C,this.next=F}var qe=new Re("this",new Re("arguments",null));function et(){$.state.context=new be($.state.context,$.state.localVars,!1),$.state.localVars=qe}function Ye(){$.state.context=new be($.state.context,$.state.localVars,!0),$.state.localVars=null}et.lex=Ye.lex=!0;function Xe(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}Xe.lex=!0;function Ae(C,F){var se=function(){var ve=$.state,ne=ve.indented;if(ve.lexical.type=="stat")ne=ve.lexical.indented;else for(var Ce=ve.lexical;Ce&&Ce.type==")"&&Ce.align;Ce=Ce.prev)ne=Ce.indented;ve.lexical=new Y(ne,$.stream.column(),C,null,ve.lexical,F)};return se.lex=!0,se}function Z(){var C=$.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}Z.lex=!0;function ae(C){function F(se){return se==C?_():C==";"||se=="}"||se==")"||se=="]"?O():_(F)}return F}function de(C,F){return C=="var"?_(Ae("vardef",F),Do,ae(";"),Z):C=="keyword a"?_(Ae("form"),q,de,Z):C=="keyword b"?_(Ae("form"),de,Z):C=="keyword d"?$.stream.match(/^\s*$/,!1)?_():_(Ae("stat"),le,ae(";"),Z):C=="debugger"?_(ae(";")):C=="{"?_(Ae("}"),Ye,It,Z,Xe):C==";"?_():C=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Z&&$.state.cc.pop()(),_(Ae("form"),q,de,Z,Io)):C=="function"?_(ir):C=="for"?_(Ae("form"),Ye,Aa,de,Xe,Z):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form",C=="class"?C:F),Fo,Z)):C=="variable"?v&&F=="declare"?($.marked="keyword",_(de)):v&&(F=="module"||F=="enum"||F=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",F=="enum"?_(Pe):F=="type"?_(Ma,ae("operator"),Qe,ae(";")):_(Ae("form"),yn,ae("{"),Ae("}"),It,Z,Z)):v&&F=="namespace"?($.marked="keyword",_(Ae("form"),Me,de,Z)):v&&F=="abstract"?($.marked="keyword",_(de)):_(Ae("stat"),Ue):C=="switch"?_(Ae("form"),q,ae("{"),Ae("}","switch"),Ye,It,Z,Z,Xe):C=="case"?_(Me,ae(":")):C=="default"?_(ae(":")):C=="catch"?_(Ae("form"),et,Ne,de,Z,Xe):C=="export"?_(Ae("stat"),Ho,Z):C=="import"?_(Ae("stat"),_i,Z):C=="async"?_(de):F=="@"?_(Me,de):O(Ae("stat"),Me,ae(";"),Z)}function Ne(C){if(C=="(")return _(fr,ae(")"))}function Me(C,F){return K(C,F,!1)}function I(C,F){return K(C,F,!0)}function q(C){return C!="("?O():_(Ae(")"),le,ae(")"),Z)}function K(C,F,se){if($.state.fatArrowAt==$.stream.start){var ve=se?ge:he;if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,ae("=>"),ve,Xe);if(C=="variable")return O(et,yn,ae("=>"),ve,Xe)}var ne=se?ue:ce;return J.hasOwnProperty(C)?_(ne):C=="function"?_(ir,ne):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form"),Uu,Z)):C=="keyword c"||C=="async"?_(se?I:Me):C=="("?_(Ae(")"),le,ae(")"),Z,ne):C=="operator"||C=="spread"?_(se?I:Me):C=="["?_(Ae("]"),$t,Z,ne):C=="{"?jt(ot,"}",null,ne):C=="quasi"?O(Se,ne):C=="new"?_(We(se)):_()}function le(C){return C.match(/[;\}\)\],]/)?O():O(Me)}function ce(C,F){return C==","?_(le):ue(C,F,!1)}function ue(C,F,se){var ve=se==!1?ce:ue,ne=se==!1?Me:I;if(C=="=>")return _(et,se?ge:he,Xe);if(C=="operator")return/\+\+|--/.test(F)||v&&F=="!"?_(ve):v&&F=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(Ae(">"),st(Qe,">"),Z,ve):F=="?"?_(Me,ae(":"),ne):_(ne);if(C=="quasi")return O(Se,ve);if(C!=";"){if(C=="(")return jt(I,")","call",ve);if(C==".")return _(tt,ve);if(C=="[")return _(Ae("]"),le,ae("]"),Z,ve);if(v&&F=="as")return $.marked="keyword",_(Qe,ve);if(C=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),_(ne)}}function Se(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(Se):_(le,_e)}function _e(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(Se)}function he(C){return Q($.stream,$.state),O(C=="{"?de:Me)}function ge(C){return Q($.stream,$.state),O(C=="{"?de:I)}function We(C){return function(F){return F=="."?_(C?De:Le):F=="variable"&&v?_(Dn,C?ue:ce):O(C?I:Me)}}function Le(C,F){if(F=="target")return $.marked="keyword",_(ce)}function De(C,F){if(F=="target")return $.marked="keyword",_(ue)}function Ue(C){return C==":"?_(Z,de):O(ce,ae(";"),Z)}function tt(C){if(C=="variable")return $.marked="property",_()}function ot(C,F){if(C=="async")return $.marked="property",_(ot);if(C=="variable"||$.style=="keyword"){if($.marked="property",F=="get"||F=="set")return _(lt);var se;return v&&$.state.fatArrowAt==$.stream.start&&(se=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+se[0].length),_(Mt)}else{if(C=="number"||C=="string")return $.marked=d?"property":$.style+" property",_(Mt);if(C=="jsonld-keyword")return _(Mt);if(v&&pe(F))return $.marked="keyword",_(ot);if(C=="[")return _(Me,Rn,ae("]"),Mt);if(C=="spread")return _(I,Mt);if(F=="*")return $.marked="keyword",_(ot);if(C==":")return O(Mt)}}function lt(C){return C!="variable"?O(Mt):($.marked="property",_(ir))}function Mt(C){if(C==":")return _(I);if(C=="(")return O(ir)}function st(C,F,se){function ve(ne,Ce){if(se?se.indexOf(ne)>-1:ne==","){var ft=$.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),_(function(Vt,bn){return Vt==F||bn==F?O():O(C)},ve)}return ne==F||Ce==F?_():se&&se.indexOf(";")>-1?O(C):_(ae(F))}return function(ne,Ce){return ne==F||Ce==F?_():O(C,ve)}}function jt(C,F,se){for(var ve=3;ve<arguments.length;ve++)$.cc.push(arguments[ve]);return _(Ae(F,se),st(C,F),Z)}function It(C){return C=="}"?_():O(de,It)}function Rn(C,F){if(v){if(C==":")return _(Qe);if(F=="?")return _(Rn)}}function $r(C,F){if(v&&(C==":"||F=="in"))return _(Qe)}function zt(C){if(v&&C==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?_(Me,zn,Qe):_(Qe)}function zn(C,F){if(F=="is")return $.marked="keyword",_()}function Qe(C,F){if(F=="keyof"||F=="typeof"||F=="infer"||F=="readonly")return $.marked="keyword",_(F=="typeof"?I:Qe);if(C=="variable"||F=="void")return $.marked="type",_(rr);if(F=="|"||F=="&")return _(Qe);if(C=="string"||C=="number"||C=="atom")return _(rr);if(C=="[")return _(Ae("]"),st(Qe,"]",","),Z,rr);if(C=="{")return _(Ae("}"),Ie,Z,rr);if(C=="(")return _(st(Nt,")"),Ea,rr);if(C=="<")return _(st(Qe,">"),Qe);if(C=="quasi")return O(on,rr)}function Ea(C){if(C=="=>")return _(Qe)}function Ie(C){return C.match(/[\}\)\]]/)?_():C==","||C==";"?_(Ie):O(Yr,Ie)}function Yr(C,F){if(C=="variable"||$.style=="keyword")return $.marked="property",_(Yr);if(F=="?"||C=="number"||C=="string")return _(Yr);if(C==":")return _(Qe);if(C=="[")return _(ae("variable"),$r,ae("]"),Yr);if(C=="(")return O(Si,Yr);if(!C.match(/[;\}\)\],]/))return _()}function on(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(on):_(Qe,Lt)}function Lt(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(on)}function Nt(C,F){return C=="variable"&&$.stream.match(/^\s*[?:]/,!1)||F=="?"?_(Nt):C==":"?_(Qe):C=="spread"?_(Nt):O(Qe)}function rr(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr);if(F=="|"||C=="."||F=="&")return _(Qe);if(C=="[")return _(Qe,ae("]"),rr);if(F=="extends"||F=="implements")return $.marked="keyword",_(Qe);if(F=="?")return _(Qe,ae(":"),Qe)}function Dn(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr)}function cr(){return O(Qe,sn)}function sn(C,F){if(F=="=")return _(Qe)}function Do(C,F){return F=="enum"?($.marked="keyword",_(Pe)):O(yn,Rn,ur,qu)}function yn(C,F){if(v&&pe(F))return $.marked="keyword",_(yn);if(C=="variable")return j(F),_();if(C=="spread")return _(yn);if(C=="[")return jt(Ws,"]");if(C=="{")return jt(wi,"}")}function wi(C,F){return C=="variable"&&!$.stream.match(/^\s*:/,!1)?(j(F),_(ur)):(C=="variable"&&($.marked="property"),C=="spread"?_(yn):C=="}"?O():C=="["?_(Me,ae("]"),ae(":"),wi):_(ae(":"),yn,ur))}function Ws(){return O(yn,ur)}function ur(C,F){if(F=="=")return _(I)}function qu(C){if(C==",")return _(Do)}function Io(C,F){if(C=="keyword b"&&F=="else")return _(Ae("form","else"),de,Z)}function Aa(C,F){if(F=="await")return _(Aa);if(C=="(")return _(Ae(")"),qs,Z)}function qs(C){return C=="var"?_(Do,xi):C=="variable"?_(xi):O(xi)}function xi(C,F){return C==")"?_():C==";"?_(xi):F=="in"||F=="of"?($.marked="keyword",_(Me,xi)):O(Me,xi)}function ir(C,F){if(F=="*")return $.marked="keyword",_(ir);if(C=="variable")return j(F),_(ir);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,de,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,ir)}function Si(C,F){if(F=="*")return $.marked="keyword",_(Si);if(C=="variable")return j(F),_(Si);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,Si)}function Ma(C,F){if(C=="keyword"||C=="variable")return $.marked="type",_(Ma);if(F=="<")return _(Ae(">"),st(cr,">"),Z)}function fr(C,F){return F=="@"&&_(Me,fr),C=="spread"?_(fr):v&&pe(F)?($.marked="keyword",_(fr)):v&&C=="this"?_(Rn,ur):O(yn,Rn,ur)}function Uu(C,F){return C=="variable"?Fo(C,F):dr(C,F)}function Fo(C,F){if(C=="variable")return j(F),_(dr)}function dr(C,F){if(F=="<")return _(Ae(">"),st(cr,">"),Z,dr);if(F=="extends"||F=="implements"||v&&C==",")return F=="implements"&&($.marked="keyword"),_(v?Qe:Me,dr);if(C=="{")return _(Ae("}"),hr,Z)}function hr(C,F){if(C=="async"||C=="variable"&&(F=="static"||F=="get"||F=="set"||v&&pe(F))&&$.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return $.marked="keyword",_(hr);if(C=="variable"||$.style=="keyword")return $.marked="property",_(so,hr);if(C=="number"||C=="string")return _(so,hr);if(C=="[")return _(Me,Rn,ae("]"),so,hr);if(F=="*")return $.marked="keyword",_(hr);if(v&&C=="(")return O(Si,hr);if(C==";"||C==",")return _(hr);if(C=="}")return _();if(F=="@")return _(Me,hr)}function so(C,F){if(F=="!"||F=="?")return _(so);if(C==":")return _(Qe,ur);if(F=="=")return _(I);var se=$.state.lexical.prev,ve=se&&se.info=="interface";return O(ve?Si:ir)}function Ho(C,F){return F=="*"?($.marked="keyword",_(qo,ae(";"))):F=="default"?($.marked="keyword",_(Me,ae(";"))):C=="{"?_(st(Bo,"}"),qo,ae(";")):O(de)}function Bo(C,F){if(F=="as")return $.marked="keyword",_(ae("variable"));if(C=="variable")return O(I,Bo)}function _i(C){return C=="string"?_():C=="("?O(Me):C=="."?O(ce):O(Wo,Or,qo)}function Wo(C,F){return C=="{"?jt(Wo,"}"):(C=="variable"&&j(F),F=="*"&&($.marked="keyword"),_(Us))}function Or(C){if(C==",")return _(Wo,Or)}function Us(C,F){if(F=="as")return $.marked="keyword",_(Wo)}function qo(C,F){if(F=="from")return $.marked="keyword",_(Me)}function $t(C){return C=="]"?_():O(st(I,"]"))}function Pe(){return O(Ae("form"),yn,ae("{"),Ae("}"),st(Zr,"}"),Z,Z)}function Zr(){return O(yn,ur)}function js(C,F){return C.lastType=="operator"||C.lastType==","||w.test(F.charAt(0))||/[,.]/.test(F.charAt(0))}function Kn(C,F,se){return F.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(F.lastType)||F.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var F={tokenize:P,lastType:"sof",cc:[],lexical:new Y((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new be(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(F.globalVars=s.globalVars),F},token:function(C,F){if(C.sol()&&(F.lexical.hasOwnProperty("align")||(F.lexical.align=!1),F.indented=C.indentation(),Q(C,F)),F.tokenize!=B&&C.eatSpace())return null;var se=F.tokenize(C,F);return L=="comment"?se:(F.lastType=L=="operator"&&(M=="++"||M=="--")?"incdec":L,R(F,se,L,M,C))},indent:function(C,F){if(C.tokenize==B||C.tokenize==G)return r.Pass;if(C.tokenize!=P)return 0;var se=F&&F.charAt(0),ve=C.lexical,ne;if(!/^\s*else\b/.test(F))for(var Ce=C.cc.length-1;Ce>=0;--Ce){var ft=C.cc[Ce];if(ft==Z)ve=ve.prev;else if(ft!=Io&&ft!=Xe)break}for(;(ve.type=="stat"||ve.type=="form")&&(se=="}"||(ne=C.cc[C.cc.length-1])&&(ne==ce||ne==ue)&&!/^[,\.=+\-*:?[\(]/.test(F));)ve=ve.prev;f&&ve.type==")"&&ve.prev.type=="stat"&&(ve=ve.prev);var Vt=ve.type,bn=se==Vt;return Vt=="vardef"?ve.indented+(C.lastType=="operator"||C.lastType==","?ve.info.length+1:0):Vt=="form"&&se=="{"?ve.indented:Vt=="form"?ve.indented+c:Vt=="stat"?ve.indented+(js(C,F)?f||c:0):ve.info=="switch"&&!bn&&s.doubleIndentSwitch!=!1?ve.indented+(/^(?:case|default)\b/.test(F)?c:2*c):ve.align?ve.column+(bn?0:1):ve.indented+(bn?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:Kn,skipExpression:function(C){R(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})})}()),Im.exports}Ow();var Hm={exports:{}},Bm;function Pw(){return Bm||(Bm=1,function(e,t){(function(r){r(Bs())})(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(_,D){function j(be){return D.tokenize=be,be(_,D)}var re=_.next();if(re=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?j(L("atom","]]>")):null:_.match("--")?j(L("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),j(M(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),D.tokenize=L("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",D.tokenize=A,"tag bracket");if(re=="&"){var pe;return _.eat("#")?_.eat("x")?pe=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):pe=_.eatWhile(/[\d]/)&&_.eat(";"):pe=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),pe?"atom":"error"}else return _.eatWhile(/[^&<]/),null}w.isInText=!0;function A(_,D){var j=_.next();if(j==">"||j=="/"&&_.eat(">"))return D.tokenize=w,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){D.tokenize=w,D.state=G,D.tagName=D.tagStart=null;var re=D.tokenize(_,D);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(j)?(D.tokenize=N(j),D.stringStartCol=_.column(),D.tokenize(_,D)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(_){var D=function(j,re){for(;!j.eol();)if(j.next()==_){re.tokenize=A;break}return"string"};return D.isInAttribute=!0,D}function L(_,D){return function(j,re){for(;!j.eol();){if(j.match(D)){re.tokenize=w;break}j.next()}return _}}function M(_){return function(D,j){for(var re;(re=D.next())!=null;){if(re=="<")return j.tokenize=M(_+1),j.tokenize(D,j);if(re==">")if(_==1){j.tokenize=w;break}else return j.tokenize=M(_-1),j.tokenize(D,j)}return"meta"}}function T(_){return _&&_.toLowerCase()}function P(_,D,j){this.prev=_.context,this.tagName=D||"",this.indent=_.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(D)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function E(_){_.context&&(_.context=_.context.prev)}function B(_,D){for(var j;;){if(!_.context||(j=_.context.tagName,!h.contextGrabbers.hasOwnProperty(T(j))||!h.contextGrabbers[T(j)].hasOwnProperty(T(D))))return;E(_)}}function G(_,D,j){return _=="openTag"?(j.tagStart=D.column(),U):_=="closeTag"?Q:G}function U(_,D,j){return _=="word"?(j.tagName=D.current(),b="tag",ee):h.allowMissingTagName&&_=="endTag"?(b="tag bracket",ee(_,D,j)):(b="error",U)}function Q(_,D,j){if(_=="word"){var re=D.current();return j.context&&j.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(T(j.context.tagName))&&E(j),j.context&&j.context.tagName==re||h.matchClosing===!1?(b="tag",J):(b="tag error",Y)}else return h.allowMissingTagName&&_=="endTag"?(b="tag bracket",J(_,D,j)):(b="error",Y)}function J(_,D,j){return _!="endTag"?(b="error",J):(E(j),G)}function Y(_,D,j){return b="error",J(_,D,j)}function ee(_,D,j){if(_=="word")return b="attribute",R;if(_=="endTag"||_=="selfcloseTag"){var re=j.tagName,pe=j.tagStart;return j.tagName=j.tagStart=null,_=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(T(re))?B(j,re):(B(j,re),j.context=new P(j,re,pe==j.indented)),G}return b="error",ee}function R(_,D,j){return _=="equals"?$:(h.allowMissing||(b="error"),ee(_,D,j))}function $(_,D,j){return _=="string"?O:_=="word"&&h.allowUnquoted?(b="string",ee):(b="error",ee(_,D,j))}function O(_,D,j){return _=="string"?O:ee(_,D,j)}return{startState:function(_){var D={tokenize:w,state:G,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(D.baseIndent=_),D},token:function(_,D){if(!D.tagName&&_.sol()&&(D.indented=_.indentation()),_.eatSpace())return null;m=null;var j=D.tokenize(_,D);return(j||m)&&j!="comment"&&(b=null,D.state=D.state(m||j,_,D),b&&(j=b=="error"?j+" error":b)),j},indent:function(_,D,j){var re=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+d;if(re&&re.noIndent)return r.Pass;if(_.tokenize!=A&&_.tokenize!=w)return j?j.match(/^(\s*)/)[0].length:0;if(_.tagName)return h.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var pe=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(pe&&pe[1])for(;re;)if(re.tagName==pe[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(T(re.tagName)))re=re.prev;else break;else if(pe)for(;re;){var be=h.contextGrabbers[T(re.tagName)];if(be&&be.hasOwnProperty(T(pe[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(_){_.state==$&&(_.state=ee)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var D=[],j=_.context;j;j=j.prev)D.push(j.tagName);return D.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Hm.exports}Pw();var Wm={exports:{}},qm;function Wce(){return qm||(qm=1,function(e,t){(function(r){r(Bs(),Pw(),Ow())})(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 A=w.tagName;w.tagName=null;var N=d.indent(w,"","");return w.tagName=A,N}function v(w,A){return A.context.mode==d?m(w,A,A.context):b(w,A,A.context)}function m(w,A,N){if(N.depth==2)return w.match(/^.*?\*\//)?N.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(N.state);var L=p(N.state),M=N.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?L-=c.indentUnit:N.prev.state.lexical&&(L=N.prev.state.lexical.indented)}else N.depth==1&&(L+=c.indentUnit);return A.context=new o(r.startState(h,L),h,0,A.context),null}if(N.depth==1){if(w.peek()=="<")return d.skipAttribute(N.state),A.context=new o(r.startState(d,p(N.state)),d,0,A.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return N.depth=2,v(w,A)}var T=d.token(w,N.state),P=w.current(),E;return/\btag\b/.test(T)?/>$/.test(P)?N.state.context?N.depth=0:A.context=A.context.prev:/^</.test(P)&&(N.depth=1):!T&&(E=P.indexOf("{"))>-1&&w.backUp(P.length-E),T}function b(w,A,N){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,N.state))return A.context=new o(r.startState(d,h.indent(N.state,"","")),d,0,A.context),h.skipExpression(N.state),null;var L=h.token(w,N.state);if(!L&&N.depth!=null){var M=w.current();M=="{"?N.depth++:M=="}"&&--N.depth==0&&(A.context=A.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,A,N){return w.context.mode.indent(w.context.state,A,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}})})}()),Wm.exports}Wce();var Um={exports:{}},jm;function qce(){return jm||(jm=1,function(e,t){(function(r){r(Bs())})(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)===""}})}()),Um.exports}qce();var Vm={exports:{}},Gm;function Uce(){return Gm||(Gm=1,function(e,t){(function(r){r(Bs())})(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],A=p.pos;function N(){r.off(document,"mousemove",L),r.off(document,"mouseup",N)}function L(M){if(M.which!=1)return N();p.moveTo(A+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",L),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)}})}()),Vm.exports}Uce();const Hn=On();function jce(e,t,r={}){const o=Bce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Et(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(()=>{Hn.value=void 0}),xh(o)}async function Vce(e){var t;fw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const Rw=ut({__name:"CodeMirrorContainer",props:Vl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Vl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=ku(e,"modelValue"),s=K_(),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=je();return Fs(async()=>{const d=jce(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(),Hn.value=d,setTimeout(()=>Hn.value.refresh(),100)}),(d,h)=>(oe(),ye("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[te("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Gce=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=je(""),c=On(void 0),f=je(!1),d=je(!0),h=je(!1),p=je();Et(()=>r.file,async()=>{var U;if(!h.value){d.value=!0;try{if(!r.file||!((U=r.file)!=null&&U.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(Q){console.error("cannot fetch file",Q)}await Pt(),d.value=!1}},{immediate:!0}),Et(()=>[d.value,h.value,r.file,cw.value],([U,Q,J,Y])=>{!U&&!Q&&(Y!=null?Pt(()=>{var $;const ee=p.value,R=ee??{line:Y??0,ch:0};ee?p.value=void 0:(($=Hn.value)==null||$.scrollIntoView(R,100),Pt(()=>{var O,_;(O=Hn.value)==null||O.focus(),(_=Hn.value)==null||_.setCursor(R)}))}):Pt(()=>{var ee;(ee=Hn.value)==null||ee.focus()}))},{flush:"post"});const v=ke(()=>{var U,Q;return((Q=(U=r.file)==null?void 0:U.filepath)==null?void 0:Q.split(/\./g).pop())||"js"}),m=je(),b=ke(()=>{var U;return((U=r.file)==null?void 0:U.tasks.filter(Q=>{var J;return((J=Q.result)==null?void 0:J.state)==="fail"}))||[]}),w=[],A=[],N=[],L=je(!1);function M(){N.forEach(([U,Q,J])=>{U.removeEventListener("click",Q),J()}),N.length=0}dE(m,()=>{var U;(U=Hn.value)==null||U.refresh()});function T(){f.value=c.value!==Hn.value.getValue()}Et(f,U=>{o("draft",U)},{immediate:!0});function P(U){const Q=((U==null?void 0:U.stacks)||[]).filter(O=>{var _;return O.file&&O.file===((_=r.file)==null?void 0:_.filepath)}),J=Q==null?void 0:Q[0];if(!J)return;const Y=document.createElement("div");Y.className="op80 flex gap-x-2 items-center";const ee=document.createElement("pre");ee.className="c-red-600 dark:c-red-400",ee.textContent=`${" ".repeat(J.column)}^ ${(U==null?void 0:U.nameStr)||U.name}: ${(U==null?void 0:U.message)||""}`,Y.appendChild(ee);const R=document.createElement("span");R.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",R.tabIndex=0,R.ariaLabel="Open in Editor",Ab(R,{content:"Open in Editor",placement:"bottom"},!1);const $=async()=>{await xw(J.file,J.line,J.column)};R.addEventListener("click",$),Y.appendChild(R),N.push([R,$,()=>Ph(R)]),A.push(Hn.value.addLineClass(J.line-1,"wrap","bg-red-500/10")),w.push(Hn.value.addLineWidget(J.line-1,Y))}const{pause:E,resume:B}=Et([Hn,b,gs],([U,Q,J])=>{if(!U){w.length=0,A.length=0,M();return}J&&(U.off("changes",T),M(),w.forEach(Y=>Y.clear()),A.forEach(Y=>U==null?void 0:U.removeLineClass(Y,"wrap")),w.length=0,A.length=0,setTimeout(()=>{Q.forEach(Y=>{var ee,R;(R=(ee=Y.result)==null?void 0:ee.errors)==null||R.forEach(P)}),L.value||U.clearHistory(),U.on("changes",T)},100))},{flush:"post"});Hh(()=>[gs.value,h.value,p.value],([U,Q],J)=>{var Y;U&&!Q&&J&&J[2]&&((Y=Hn.value)==null||Y.setCursor(J[2]))},{debounce:100,flush:"post"});async function G(U){if(h.value)return;E(),h.value=!0,await Pt();const Q=Hn.value;Q&&(Q.setOption("readOnly",!0),await Pt(),Q.refresh()),p.value=Q==null?void 0:Q.getCursor(),Q==null||Q.off("changes",T),M(),w.forEach(J=>J.clear()),A.forEach(J=>Q==null?void 0:Q.removeLineClass(J,"wrap")),w.length=0,A.length=0;try{L.value=!0,await mt.rpc.saveTestFile(r.file.filepath,U),c.value=U,f.value=!1}catch(J){console.error("error saving file",J)}L.value||Q==null||Q.clearHistory();try{await pm(gs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await pm(gs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(J=>{var Y,ee;(ee=(Y=J.result)==null?void 0:Y.errors)==null||ee.forEach(P)}),Q==null||Q.on("changes",T),h.value=!1,await Pt(),Q&&(Q.setOption("readOnly",!1),await Pt(),Q.refresh()),B()}return _h(M),(U,Q)=>{const J=Rw;return oe(),nt(J,di({ref_key:"editor",ref:m,modelValue:W(s),"onUpdate:modelValue":Q[0]||(Q[0]=Y=>kt(s)?s.value=Y:null),"h-full":""},{lineNumbers:!0,readOnly:W(Cr),saving:W(h)},{mode:W(v),"data-testid":"code-mirror",onSave:G}),null,16,["modelValue","mode"])}}}),Kce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Xce={"p-4":"",relative:""},Yce={op50:"","font-mono":"","text-sm":""},Zce={key:0,"p-5":""},Jce={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Qce={key:0},eue={p:"x3 y-1","bg-overlay":"",border:"base b t"},tue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=JT(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Po)),c=ke(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=ke(()=>{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 Xb("Escape",()=>{o("close")}),(p,v)=>{const m=bi,b=Rw;return oe(),ye("div",Kce,[te("div",Xce,[v[1]||(v[1]=te("p",null,"Module Info",-1)),te("p",Yce,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"))})]),W(s)?(oe(),ye(ct,{key:1},[te("div",Jce,[v[2]||(v[2]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,di({"h-full":"","model-value":W(f),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"]),Oe(b,di({"h-full":"","model-value":W(d),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])]),W(h).mappings!==""?(oe(),ye("div",Qce,[te("div",eue," Source map (v"+Be(W(h).version)+") ",1),Oe(b,di({"model-value":W(h).mappings,"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])])):Ke("",!0)],64)):(oe(),ye("div",Zce," No transform result found for this module. "))])}}});function nue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const Km={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Iu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Km.hasOwnProperty(t)?{space:Km[t],local:e}:e}function rue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function iue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function zw(e){var t=Iu(e);return(t.local?iue:rue)(t)}function oue(){}function Gh(e){return e==null?oue:function(){return this.querySelector(e)}}function sue(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 nr(o,this._parents)}function lue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function aue(){return[]}function Dw(e){return e==null?aue:function(){return this.querySelectorAll(e)}}function cue(e){return function(){return lue(e.apply(this,arguments))}}function uue(e){typeof e=="function"?e=cue(e):e=Dw(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 nr(o,s)}function Iw(e){return function(){return this.matches(e)}}function Fw(e){return function(t){return t.matches(e)}}var fue=Array.prototype.find;function due(e){return function(){return fue.call(this.children,e)}}function hue(){return this.firstElementChild}function pue(e){return this.select(e==null?hue:due(typeof e=="function"?e:Fw(e)))}var gue=Array.prototype.filter;function vue(){return Array.from(this.children)}function mue(e){return function(){return gue.call(this.children,e)}}function yue(e){return this.selectAll(e==null?vue:mue(typeof e=="function"?e:Fw(e)))}function bue(e){typeof e!="function"&&(e=Iw(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 nr(o,this._parents)}function Hw(e){return new Array(e.length)}function wue(){return new nr(this._enter||this._groups.map(Hw),this._parents)}function ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ou.prototype={constructor:ou,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 xue(e){return function(){return e}}function Sue(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 ou(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function _ue(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 ou(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function kue(e){return e.__data__}function Cue(e,t){if(!arguments.length)return Array.from(this,kue);var r=t?_ue:Sue,o=this._parents,s=this._groups;typeof e!="function"&&(e=xue(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=Tue(e.call(v,v&&v.__data__,p,o)),A=w.length,N=d[p]=new Array(A),L=f[p]=new Array(A),M=h[p]=new Array(b);r(v,m,N,L,M,w,t);for(var T=0,P=0,E,B;T<A;++T)if(E=N[T]){for(T>=P&&(P=T+1);!(B=L[P])&&++P<A;);E._next=B||null}}return f=new nr(f,o),f._enter=d,f._exit=h,f}function Tue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Eue(){return new nr(this._exit||this._groups.map(Hw),this._parents)}function Aue(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 Mue(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,A=0;A<m;++A)(w=p[A]||v[A])&&(b[A]=w);for(;h<s;++h)d[h]=r[h];return new nr(d,this._parents)}function Lue(){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 Nue(e){e||(e=$ue);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 nr(s,this._parents).order()}function $ue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Oue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Pue(){return Array.from(this)}function Rue(){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 zue(){let e=0;for(const t of this)++e;return e}function Due(){return!this.node()}function Iue(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 Fue(e){return function(){this.removeAttribute(e)}}function Hue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Bue(e,t){return function(){this.setAttribute(e,t)}}function Wue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function que(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Uue(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 jue(e,t){var r=Iu(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?Hue:Fue:typeof t=="function"?r.local?Uue:que:r.local?Wue:Bue)(r,t))}function Bw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vue(e){return function(){this.style.removeProperty(e)}}function Gue(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Kue(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Xue(e,t,r){return arguments.length>1?this.each((t==null?Vue:typeof t=="function"?Kue:Gue)(e,t,r??"")):Rs(this.node(),e)}function Rs(e,t){return e.style.getPropertyValue(t)||Bw(e).getComputedStyle(e,null).getPropertyValue(t)}function Yue(e){return function(){delete this[e]}}function Zue(e,t){return function(){this[e]=t}}function Jue(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Que(e,t){return arguments.length>1?this.each((t==null?Yue:typeof t=="function"?Jue:Zue)(e,t)):this.node()[e]}function Ww(e){return e.trim().split(/^|\s+/)}function Kh(e){return e.classList||new qw(e)}function qw(e){this._node=e,this._names=Ww(e.getAttribute("class")||"")}qw.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 Uw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function jw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function efe(e){return function(){Uw(this,e)}}function tfe(e){return function(){jw(this,e)}}function nfe(e,t){return function(){(t.apply(this,arguments)?Uw:jw)(this,e)}}function rfe(e,t){var r=Ww(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"?nfe:t?efe:tfe)(r,t))}function ife(){this.textContent=""}function ofe(e){return function(){this.textContent=e}}function sfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function lfe(e){return arguments.length?this.each(e==null?ife:(typeof e=="function"?sfe:ofe)(e)):this.node().textContent}function afe(){this.innerHTML=""}function cfe(e){return function(){this.innerHTML=e}}function ufe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ffe(e){return arguments.length?this.each(e==null?afe:(typeof e=="function"?ufe:cfe)(e)):this.node().innerHTML}function dfe(){this.nextSibling&&this.parentNode.appendChild(this)}function hfe(){return this.each(dfe)}function pfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gfe(){return this.each(pfe)}function vfe(e){var t=typeof e=="function"?e:zw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function mfe(){return null}function yfe(e,t){var r=typeof e=="function"?e:zw(e),o=t==null?mfe:typeof t=="function"?t:Gh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function bfe(){var e=this.parentNode;e&&e.removeChild(this)}function wfe(){return this.each(bfe)}function xfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Sfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _fe(e){return this.select(e?Sfe:xfe)}function kfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Cfe(e){return function(t){e.call(this,t,this.__data__)}}function Tfe(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 Efe(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 Afe(e,t,r){return function(){var o=this.__on,s,c=Cfe(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 Mfe(e,t,r){var o=Tfe(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?Afe:Efe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Vw(e,t,r){var o=Bw(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 Lfe(e,t){return function(){return Vw(this,e,t)}}function Nfe(e,t){return function(){return Vw(this,e,t.apply(this,arguments))}}function $fe(e,t){return this.each((typeof t=="function"?Nfe:Lfe)(e,t))}function*Ofe(){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 Gw=[null];function nr(e,t){this._groups=e,this._parents=t}function ka(){return new nr([[document.documentElement]],Gw)}function Pfe(){return this}nr.prototype=ka.prototype={constructor:nr,select:sue,selectAll:uue,selectChild:pue,selectChildren:yue,filter:bue,data:Cue,enter:wue,exit:Eue,join:Aue,merge:Mue,selection:Pfe,order:Lue,sort:Nue,call:Oue,nodes:Pue,node:Rue,size:zue,empty:Due,each:Iue,attr:jue,style:Xue,property:Que,classed:rfe,text:lfe,html:ffe,raise:hfe,lower:gfe,append:vfe,insert:yfe,remove:wfe,clone:_fe,datum:kfe,on:Mfe,dispatch:$fe,[Symbol.iterator]:Ofe};function Un(e){return typeof e=="string"?new nr([[document.querySelector(e)]],[document.documentElement]):new nr([[e]],Gw)}function Rfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ai(e,t){if(e=Rfe(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]}class An{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new An(t,r)}add(t){return new An(this.x+t.x,this.y+t.y)}subtract(t){return new An(this.x-t.x,this.y-t.y)}multiply(t){return new An(this.x*t,this.y*t)}divide(t){return new An(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 An(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 An(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new An(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var zfe={value:()=>{}};function Ca(){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 Nc(r)}function Nc(e){this._=e}function Dfe(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}})}Nc.prototype=Ca.prototype={constructor:Nc,on:function(e,t){var r=this._,o=Dfe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Ife(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]=Xm(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Xm(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 Nc(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 Ife(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Xm(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=zfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ffe={passive:!1},oa={capture:!0,passive:!1};function ld(e){e.stopImmediatePropagation()}function As(e){e.preventDefault(),e.stopImmediatePropagation()}function Kw(e){var t=e.document.documentElement,r=Un(e).on("dragstart.drag",As,oa);"onselectstart"in t?r.on("selectstart.drag",As,oa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Xw(e,t){var r=e.document.documentElement,o=Un(e).on("dragstart.drag",null);t&&(o.on("click.drag",As,oa),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 mc=e=>()=>e;function Gd(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}})}Gd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Hfe(e){return!e.ctrlKey&&!e.button}function Bfe(){return this.parentNode}function Wfe(e,t){return t??{x:e.x,y:e.y}}function qfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ufe(){var e=Hfe,t=Bfe,r=Wfe,o=qfe,s={},c=Ca("start","drag","end"),f=0,d,h,p,v,m=0;function b(E){E.on("mousedown.drag",w).filter(o).on("touchstart.drag",L).on("touchmove.drag",M,Ffe).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(E,B){if(!(v||!e.call(this,E,B))){var G=P(this,t.call(this,E,B),E,B,"mouse");G&&(Un(E.view).on("mousemove.drag",A,oa).on("mouseup.drag",N,oa),Kw(E.view),ld(E),p=!1,d=E.clientX,h=E.clientY,G("start",E))}}function A(E){if(As(E),!p){var B=E.clientX-d,G=E.clientY-h;p=B*B+G*G>m}s.mouse("drag",E)}function N(E){Un(E.view).on("mousemove.drag mouseup.drag",null),Xw(E.view,p),As(E),s.mouse("end",E)}function L(E,B){if(e.call(this,E,B)){var G=E.changedTouches,U=t.call(this,E,B),Q=G.length,J,Y;for(J=0;J<Q;++J)(Y=P(this,U,E,B,G[J].identifier,G[J]))&&(ld(E),Y("start",E,G[J]))}}function M(E){var B=E.changedTouches,G=B.length,U,Q;for(U=0;U<G;++U)(Q=s[B[U].identifier])&&(As(E),Q("drag",E,B[U]))}function T(E){var B=E.changedTouches,G=B.length,U,Q;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<G;++U)(Q=s[B[U].identifier])&&(ld(E),Q("end",E,B[U]))}function P(E,B,G,U,Q,J){var Y=c.copy(),ee=ai(J||G,B),R,$,O;if((O=r.call(E,new Gd("beforestart",{sourceEvent:G,target:b,identifier:Q,active:f,x:ee[0],y:ee[1],dx:0,dy:0,dispatch:Y}),U))!=null)return R=O.x-ee[0]||0,$=O.y-ee[1]||0,function _(D,j,re){var pe=ee,be;switch(D){case"start":s[Q]=_,be=f++;break;case"end":delete s[Q],--f;case"drag":ee=ai(re||j,B),be=f;break}Y.call(D,E,new Gd(D,{sourceEvent:j,subject:O,target:b,identifier:Q,active:be,x:ee[0]+R,y:ee[1]+$,dx:ee[0]-pe[0],dy:ee[1]-pe[1],dispatch:Y}),U)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:mc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:mc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:mc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:mc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(m=(E=+E)*E,b):Math.sqrt(m)},b}function Xh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Yw(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ta(){}var sa=.7,su=1/sa,Ms="\\s*([+-]?\\d+)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jfe=/^#([0-9a-f]{3,8})$/,Vfe=new RegExp(`^rgb\\(${Ms},${Ms},${Ms}\\)$`),Gfe=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),Kfe=new RegExp(`^rgba\\(${Ms},${Ms},${Ms},${la}\\)$`),Xfe=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${la}\\)$`),Yfe=new RegExp(`^hsl\\(${la},${Vr},${Vr}\\)$`),Zfe=new RegExp(`^hsla\\(${la},${Vr},${Vr},${la}\\)$`),Ym={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(Ta,aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zm,formatHex:Zm,formatHex8:Jfe,formatHsl:Qfe,formatRgb:Jm,toString:Jm});function Zm(){return this.rgb().formatHex()}function Jfe(){return this.rgb().formatHex8()}function Qfe(){return Zw(this).formatHsl()}function Jm(){return this.rgb().formatRgb()}function aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=jfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Qm(t):r===3?new Vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yc(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=Vfe.exec(e))?new Vn(t[1],t[2],t[3],1):(t=Gfe.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Kfe.exec(e))?yc(t[1],t[2],t[3],t[4]):(t=Xfe.exec(e))?yc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Yfe.exec(e))?n0(t[1],t[2]/100,t[3]/100,1):(t=Zfe.exec(e))?n0(t[1],t[2]/100,t[3]/100,t[4]):Ym.hasOwnProperty(e)?Qm(Ym[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function Qm(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function yc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Vn(e,t,r,o)}function ede(e){return e instanceof Ta||(e=aa(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function Kd(e,t,r,o){return arguments.length===1?ede(e):new Vn(e,t,r,o??1)}function Vn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Xh(Vn,Kd,Yw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(No(this.r),No(this.g),No(this.b),lu(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:e0,formatHex:e0,formatHex8:tde,formatRgb:t0,toString:t0}));function e0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function tde(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function t0(){const e=lu(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function lu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function n0(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 Zw(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof Ta||(e=aa(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 nde(e,t,r,o){return arguments.length===1?Zw(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,nde,Yw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,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 Vn(ad(e>=240?e-240:e+120,s,o),ad(e,s,o),ad(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Sr(r0(this.h),bc(this.s),bc(this.l),lu(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=lu(this.opacity);return`${e===1?"hsl(":"hsla("}${r0(this.h)}, ${bc(this.s)*100}%, ${bc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function r0(e){return e=(e||0)%360,e<0?e+360:e}function bc(e){return Math.max(0,Math.min(1,e||0))}function ad(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 Jw=e=>()=>e;function rde(e,t){return function(r){return e+r*t}}function ide(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 ode(e){return(e=+e)==1?Qw:function(t,r){return r-t?ide(t,r,e):Jw(isNaN(t)?r:t)}}function Qw(e,t){var r=t-e;return r?rde(e,r):Jw(isNaN(e)?t:e)}const i0=function e(t){var r=ode(t);function o(s,c){var f=r((s=Kd(s)).r,(c=Kd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=Qw(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 Xd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cd=new RegExp(Xd.source,"g");function sde(e){return function(){return e}}function lde(e){return function(t){return e(t)+""}}function ade(e,t){var r=Xd.lastIndex=cd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Xd.exec(e))&&(s=cd.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=cd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?lde(h[0].x):sde(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 o0=180/Math.PI,Yd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e1(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)*o0,skewX:Math.atan(h)*o0,scaleX:f,scaleY:d}}var wc;function cde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Yd:e1(t.a,t.b,t.c,t.d,t.e,t.f)}function ude(e){return e==null||(wc||(wc=document.createElementNS("http://www.w3.org/2000/svg","g")),wc.setAttribute("transform",e),!(e=wc.transform.baseVal.consolidate()))?Yd:(e=e.matrix,e1(e.a,e.b,e.c,e.d,e.e,e.f))}function t1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,A){if(p!==m||v!==b){var N=w.push("translate(",null,t,null,r);A.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,A){if(p!==m||v!==b){var N=w.push(s(w)+"scale(",null,",",null,")");A.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 A=-1,N=b.length,L;++A<N;)m[(L=b[A]).i]=L.x(w);return m.join("")}}}var fde=t1(cde,"px, ","px)","deg)"),dde=t1(ude,", ",")",")"),hde=1e-12;function s0(e){return((e=Math.exp(e))+1/e)/2}function pde(e){return((e=Math.exp(e))-1/e)/2}function gde(e){return((e=Math.exp(2*e))-1)/(e+1)}const vde=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,A=m-h,N=w*w+A*A,L,M;if(N<hde)M=Math.log(b/p)/t,L=function(U){return[d+U*w,h+U*A,p*Math.exp(t*U*M)]};else{var T=Math.sqrt(N),P=(b*b-p*p+o*N)/(2*p*r*T),E=(b*b-p*p-o*N)/(2*b*r*T),B=Math.log(Math.sqrt(P*P+1)-P),G=Math.log(Math.sqrt(E*E+1)-E);M=(G-B)/t,L=function(U){var Q=U*M,J=s0(B),Y=p/(r*T)*(J*gde(t*Q+B)-pde(B));return[d+Y*w,h+Y*A,p*J/s0(t*Q+B)]}}return L.duration=M*1e3*t/Math.SQRT2,L}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 zs=0,El=0,_l=0,n1=1e3,au,Al,cu=0,Ro=0,Fu=0,ca=typeof performance=="object"&&performance.now?performance:Date,r1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yh(){return Ro||(r1(mde),Ro=ca.now()+Fu)}function mde(){Ro=0}function uu(){this._call=this._time=this._next=null}uu.prototype=Zh.prototype={constructor:uu,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&&Al!==this&&(Al?Al._next=this:au=this,Al=this),this._call=e,this._time=r,Zd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zd())}};function Zh(e,t,r){var o=new uu;return o.restart(e,t,r),o}function yde(){Yh(),++zs;for(var e=au,t;e;)(t=Ro-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function l0(){Ro=(cu=ca.now())+Fu,zs=El=0;try{yde()}finally{zs=0,wde(),Ro=0}}function bde(){var e=ca.now(),t=e-cu;t>n1&&(Fu-=t,cu=e)}function wde(){for(var e,t=au,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:au=r);Al=e,Zd(o)}function Zd(e){if(!zs){El&&(El=clearTimeout(El));var t=e-Ro;t>24?(e<1/0&&(El=setTimeout(l0,e-ca.now()-Fu)),_l&&(_l=clearInterval(_l))):(_l||(cu=ca.now(),_l=setInterval(bde,n1)),zs=1,r1(l0))}}function a0(e,t,r){var o=new uu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var xde=Ca("start","end","cancel","interrupt"),Sde=[],i1=0,c0=1,Jd=2,$c=3,u0=4,Qd=5,Oc=6;function Hu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;_de(e,r,{name:t,index:o,group:s,on:xde,tween:Sde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:i1})}function Jh(e,t){var r=Nr(e,t);if(r.state>i1)throw new Error("too late; already scheduled");return r}function Xr(e,t){var r=Nr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Nr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function _de(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Zh(c,0,r.time);function c(p){r.state=c0,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!==c0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===$c)return a0(f);w.state===u0?(w.state=Oc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Oc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(a0(function(){r.state===$c&&(r.state=u0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Jd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Jd){for(r.state=$c,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=Qd,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===Qd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Oc,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>Jd&&o.state<Qd,o.state=Oc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function kde(e){return this.each(function(){Pc(this,e)})}function Cde(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 Tde(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 Ede(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Nr(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?Cde:Tde)(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 Nr(s,o).value[t]}}function o1(e,t){var r;return(typeof t=="number"?qi:t instanceof aa?i0:(r=aa(t))?(t=r,i0):ade)(e,t)}function Ade(e){return function(){this.removeAttribute(e)}}function Mde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Lde(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 Nde(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 $de(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 Ode(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 Pde(e,t){var r=Iu(e),o=r==="transform"?dde:o1;return this.attrTween(e,typeof t=="function"?(r.local?Ode:$de)(r,o,Qh(this,"attr."+e,t)):t==null?(r.local?Mde:Ade)(r):(r.local?Nde:Lde)(r,o,t))}function Rde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function zde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Dde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&zde(e,c)),r}return s._value=t,s}function Ide(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Rde(e,c)),r}return s._value=t,s}function Fde(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=Iu(e);return this.tween(r,(o.local?Dde:Ide)(o,t))}function Hde(e,t){return function(){Jh(this,e).delay=+t.apply(this,arguments)}}function Bde(e,t){return t=+t,function(){Jh(this,e).delay=t}}function Wde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Hde:Bde)(t,e)):Nr(this.node(),t).delay}function qde(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function Ude(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"?qde:Ude)(t,e)):Nr(this.node(),t).duration}function Vde(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function Gde(e){var t=this._id;return arguments.length?this.each(Vde(t,e)):Nr(this.node(),t).ease}function Kde(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Xr(this,e).ease=r}}function Xde(e){if(typeof e!="function")throw new Error;return this.each(Kde(this._id,e))}function Yde(e){typeof e!="function"&&(e=Iw(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 Zde(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 Jde(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 Qde(e,t,r){var o,s,c=Jde(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 ehe(e,t){var r=this._id;return arguments.length<2?Nr(this.node(),r).on.on(e):this.each(Qde(r,e,t))}function the(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function nhe(){return this.on("end.remove",the(this._id))}function rhe(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,Hu(p[b],t,r,b,p,Nr(v,r)));return new gi(c,this._parents,t,r)}function ihe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Dw(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,A=Nr(v,r),N=0,L=b.length;N<L;++N)(w=b[N])&&Hu(w,t,r,N,b,A);c.push(b),f.push(v)}return new gi(c,f,t,r)}var ohe=ka.prototype.constructor;function she(){return new ohe(this._groups,this._parents)}function lhe(e,t){var r,o,s;return function(){var c=Rs(this,e),f=(this.style.removeProperty(e),Rs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function s1(e){return function(){this.style.removeProperty(e)}}function ahe(e,t,r){var o,s=r+"",c;return function(){var f=Rs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function che(e,t,r){var o,s,c;return function(){var f=Rs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Rs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function uhe(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=s1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function fhe(e,t,r){var o=(e+="")=="transform"?fde:o1;return t==null?this.styleTween(e,lhe(e,o)).on("end.style."+e,s1(e)):typeof t=="function"?this.styleTween(e,che(e,o,Qh(this,"style."+e,t))).each(uhe(this._id,e)):this.styleTween(e,ahe(e,o,t),r).on("end.style."+e,null)}function dhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function hhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&dhe(e,f,r)),o}return c._value=t,c}function phe(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,hhe(e,t,r??""))}function ghe(e){return function(){this.textContent=e}}function vhe(e){return function(){var t=e(this);this.textContent=t??""}}function mhe(e){return this.tween("text",typeof e=="function"?vhe(Qh(this,"text",e)):ghe(e==null?"":e+""))}function yhe(e){return function(t){this.textContent=e.call(this,t)}}function bhe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&yhe(s)),t}return o._value=e,o}function whe(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,bhe(e))}function xhe(){for(var e=this._name,t=this._id,r=l1(),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=Nr(h,t);Hu(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 She(){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 _he=0;function gi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function l1(){return++_he}var oi=ka.prototype;gi.prototype={constructor:gi,select:rhe,selectAll:ihe,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:Yde,merge:Zde,selection:she,transition:xhe,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:ehe,attr:Pde,attrTween:Fde,style:fhe,styleTween:phe,text:mhe,textTween:whe,remove:nhe,tween:Ede,delay:Wde,duration:jde,ease:Gde,easeVarying:Xde,end:She,[Symbol.iterator]:oi[Symbol.iterator]};function khe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Che={time:null,delay:0,duration:250,ease:khe};function The(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 Ehe(e){var t,r;e instanceof gi?(t=e._id,e=e._name):(t=l1(),(r=Che).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])&&Hu(h,e,t,p,f,r||The(h,t));return new gi(o,this._parents,e,t)}ka.prototype.interrupt=kde;ka.prototype.transition=Ehe;const xc=e=>()=>e;function Ahe(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 ud(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function Mhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Lhe(){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 f0(){return this.__zoom||ep}function Nhe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function $he(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ohe(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 Phe(){var e=Mhe,t=Lhe,r=Ohe,o=Nhe,s=$he,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=vde,p=Ca("start","zoom","end"),v,m,b,w=500,A=150,N=0,L=10;function M(O){O.property("__zoom",f0).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",Y).filter(s).on("touchstart.zoom",ee).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(O,_,D,j){var re=O.selection?O.selection():O;re.property("__zoom",f0),O!==re?B(O,_,D,j):re.interrupt().each(function(){G(this,arguments).event(j).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},M.scaleBy=function(O,_,D,j){M.scaleTo(O,function(){var re=this.__zoom.k,pe=typeof _=="function"?_.apply(this,arguments):_;return re*pe},D,j)},M.scaleTo=function(O,_,D,j){M.transform(O,function(){var re=t.apply(this,arguments),pe=this.__zoom,be=D==null?E(re):typeof D=="function"?D.apply(this,arguments):D,Re=pe.invert(be),qe=typeof _=="function"?_.apply(this,arguments):_;return r(P(T(pe,qe),be,Re),re,f)},D,j)},M.translateBy=function(O,_,D,j){M.transform(O,function(){return r(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),f)},null,j)},M.translateTo=function(O,_,D,j,re){M.transform(O,function(){var pe=t.apply(this,arguments),be=this.__zoom,Re=j==null?E(pe):typeof j=="function"?j.apply(this,arguments):j;return r(ep.translate(Re[0],Re[1]).scale(be.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof D=="function"?-D.apply(this,arguments):-D),pe,f)},j,re)};function T(O,_){return _=Math.max(c[0],Math.min(c[1],_)),_===O.k?O:new fi(_,O.x,O.y)}function P(O,_,D){var j=_[0]-D[0]*O.k,re=_[1]-D[1]*O.k;return j===O.x&&re===O.y?O:new fi(O.k,j,re)}function E(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function B(O,_,D,j){O.on("start.zoom",function(){G(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(j).end()}).tween("zoom",function(){var re=this,pe=arguments,be=G(re,pe).event(j),Re=t.apply(re,pe),qe=D==null?E(Re):typeof D=="function"?D.apply(re,pe):D,et=Math.max(Re[1][0]-Re[0][0],Re[1][1]-Re[0][1]),Ye=re.__zoom,Xe=typeof _=="function"?_.apply(re,pe):_,Ae=h(Ye.invert(qe).concat(et/Ye.k),Xe.invert(qe).concat(et/Xe.k));return function(Z){if(Z===1)Z=Xe;else{var ae=Ae(Z),de=et/ae[2];Z=new fi(de,qe[0]-ae[0]*de,qe[1]-ae[1]*de)}be.zoom(null,Z)}})}function G(O,_,D){return!D&&O.__zooming||new U(O,_)}function U(O,_){this.that=O,this.args=_,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,_),this.taps=0}U.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,_){return this.mouse&&O!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var _=Un(this.that).datum();p.call(O,this.that,new Ahe(O,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),_)}};function Q(O,..._){if(!e.apply(this,arguments))return;var D=G(this,_).event(O),j=this.__zoom,re=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),pe=ai(O);if(D.wheel)(D.mouse[0][0]!==pe[0]||D.mouse[0][1]!==pe[1])&&(D.mouse[1]=j.invert(D.mouse[0]=pe)),clearTimeout(D.wheel);else{if(j.k===re)return;D.mouse=[pe,j.invert(pe)],Pc(this),D.start()}kl(O),D.wheel=setTimeout(be,A),D.zoom("mouse",r(P(T(j,re),D.mouse[0],D.mouse[1]),D.extent,f));function be(){D.wheel=null,D.end()}}function J(O,..._){if(b||!e.apply(this,arguments))return;var D=O.currentTarget,j=G(this,_,!0).event(O),re=Un(O.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",et,!0),pe=ai(O,D),be=O.clientX,Re=O.clientY;Kw(O.view),ud(O),j.mouse=[pe,this.__zoom.invert(pe)],Pc(this),j.start();function qe(Ye){if(kl(Ye),!j.moved){var Xe=Ye.clientX-be,Ae=Ye.clientY-Re;j.moved=Xe*Xe+Ae*Ae>N}j.event(Ye).zoom("mouse",r(P(j.that.__zoom,j.mouse[0]=ai(Ye,D),j.mouse[1]),j.extent,f))}function et(Ye){re.on("mousemove.zoom mouseup.zoom",null),Xw(Ye.view,j.moved),kl(Ye),j.event(Ye).end()}}function Y(O,..._){if(e.apply(this,arguments)){var D=this.__zoom,j=ai(O.changedTouches?O.changedTouches[0]:O,this),re=D.invert(j),pe=D.k*(O.shiftKey?.5:2),be=r(P(T(D,pe),j,re),t.apply(this,_),f);kl(O),d>0?Un(this).transition().duration(d).call(B,be,j,O):Un(this).call(M.transform,be,j,O)}}function ee(O,..._){if(e.apply(this,arguments)){var D=O.touches,j=D.length,re=G(this,_,O.changedTouches.length===j).event(O),pe,be,Re,qe;for(ud(O),be=0;be<j;++be)Re=D[be],qe=ai(Re,this),qe=[qe,this.__zoom.invert(qe),Re.identifier],re.touch0?!re.touch1&&re.touch0[2]!==qe[2]&&(re.touch1=qe,re.taps=0):(re.touch0=qe,pe=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),pe&&(re.taps<2&&(m=qe[0],v=setTimeout(function(){v=null},w)),Pc(this),re.start())}}function R(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be,Re,qe;for(kl(O),pe=0;pe<re;++pe)be=j[pe],Re=ai(be,this),D.touch0&&D.touch0[2]===be.identifier?D.touch0[0]=Re:D.touch1&&D.touch1[2]===be.identifier&&(D.touch1[0]=Re);if(be=D.that.__zoom,D.touch1){var et=D.touch0[0],Ye=D.touch0[1],Xe=D.touch1[0],Ae=D.touch1[1],Z=(Z=Xe[0]-et[0])*Z+(Z=Xe[1]-et[1])*Z,ae=(ae=Ae[0]-Ye[0])*ae+(ae=Ae[1]-Ye[1])*ae;be=T(be,Math.sqrt(Z/ae)),Re=[(et[0]+Xe[0])/2,(et[1]+Xe[1])/2],qe=[(Ye[0]+Ae[0])/2,(Ye[1]+Ae[1])/2]}else if(D.touch0)Re=D.touch0[0],qe=D.touch0[1];else return;D.zoom("touch",r(P(be,Re,qe),D.extent,f))}}function $(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be;for(ud(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),pe=0;pe<re;++pe)be=j[pe],D.touch0&&D.touch0[2]===be.identifier?delete D.touch0:D.touch1&&D.touch1[2]===be.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(be=ai(be,this),Math.hypot(m[0]-be[0],m[1]-be[1])<L)){var Re=Un(this).on("dblclick.zoom");Re&&Re.apply(this,arguments)}}}return M.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:xc(+O),M):o},M.filter=function(O){return arguments.length?(e=typeof O=="function"?O:xc(!!O),M):e},M.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:xc(!!O),M):s},M.extent=function(O){return arguments.length?(t=typeof O=="function"?O:xc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),M):t},M.scaleExtent=function(O){return arguments.length?(c[0]=+O[0],c[1]=+O[1],M):[c[0],c[1]]},M.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],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(O){return arguments.length?(r=O,M):r},M.duration=function(O){return arguments.length?(d=+O,M):d},M.interpolate=function(O){return arguments.length?(h=O,M):h},M.on=function(){var O=p.on.apply(p,arguments);return O===p?M:O},M.clickDistance=function(O){return arguments.length?(N=(O=+O)*O,M):Math.sqrt(N)},M.tapDistance=function(O){return arguments.length?(L=+O,M):L},M}function Rhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return a1(this.cover(t,r),t,r,e)}function a1(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,A,N,L,M,T;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[M=L<<1|N]))return s[M]=f,e;if(w=+e._x.call(null,c.data),A=+e._y.call(null,c.data),t===w&&r===A)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b;while((M=L<<1|N)===(T=(A>=b)<<1|w>=m));return s[T]=c,s[M]=f,e}function zhe(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)a1(this,f[r],d[r],e[r]);return this}function Dhe(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 Ihe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Fhe(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 Ln(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Hhe(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,A,N;for(w&&b.push(new Ln(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);A=b.pop();)if(!(!(w=A.node)||(f=A.x0)>v||(d=A.y0)>m||(h=A.x1)<s||(p=A.y1)<c))if(w.length){var L=(f+h)/2,M=(d+p)/2;b.push(new Ln(w[3],L,M,h,p),new Ln(w[2],f,M,L,p),new Ln(w[1],L,d,h,M),new Ln(w[0],f,d,L,M)),(N=(t>=M)<<1|e>=L)&&(A=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=A)}else{var T=e-+this._x.call(null,w.data),P=t-+this._y.call(null,w.data),E=T*T+P*P;if(E<r){var B=Math.sqrt(r=E);s=e-B,c=t-B,v=e+B,m=t+B,o=w.data}}return o}function Bhe(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,A,N,L,M;if(!r)return this;if(r.length)for(;;){if((A=v>=(b=(f+h)/2))?f=b:h=b,(N=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[L=N<<1|A]))return this;if(!r.length)break;(t[L+1&3]||t[L+2&3]||t[L+3&3])&&(o=t,M=L)}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[L]=c:delete t[L],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function Whe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function qhe(){return this._root}function Uhe(){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 Ln(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 Ln(s,p,v,d,h)),(s=o[2])&&t.push(new Ln(s,c,v,p,h)),(s=o[1])&&t.push(new Ln(s,p,f,d,v)),(s=o[0])&&t.push(new Ln(s,c,f,p,v))}return this}function Vhe(e){var t=[],r=[],o;for(this._root&&t.push(new Ln(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 Ln(c,f,d,v,m)),(c=s[1])&&t.push(new Ln(c,v,d,h,m)),(c=s[2])&&t.push(new Ln(c,f,m,v,p)),(c=s[3])&&t.push(new Ln(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 Ghe(e){return e[0]}function Khe(e){return arguments.length?(this._x=e,this):this._x}function Xhe(e){return e[1]}function Yhe(e){return arguments.length?(this._y=e,this):this._y}function tp(e,t,r){var o=new np(t??Ghe,r??Xhe,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 d0(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=d0(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]=d0(o));return e};Pn.add=Rhe;Pn.addAll=zhe;Pn.cover=Dhe;Pn.data=Ihe;Pn.extent=Fhe;Pn.find=Hhe;Pn.remove=Bhe;Pn.removeAll=Whe;Pn.root=qhe;Pn.size=Uhe;Pn.visit=jhe;Pn.visitAfter=Vhe;Pn.x=Khe;Pn.y=Yhe;function $n(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Zhe(e){return e.x+e.vx}function Jhe(e){return e.y+e.vy}function Qhe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=$n(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,A,N,L,M=0;M<c;++M)for(m=tp(t,Zhe,Jhe).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],L=N*N,w=b.x+b.vx,A=b.y+b.vy,m.visit(T);function T(P,E,B,G,U){var Q=P.data,J=P.r,Y=N+J;if(Q){if(Q.index>b.index){var ee=w-Q.x-Q.vx,R=A-Q.y-Q.vy,$=ee*ee+R*R;$<Y*Y&&(ee===0&&(ee=Vi(o),$+=ee*ee),R===0&&(R=Vi(o),$+=R*R),$=(Y-($=Math.sqrt($)))/$*s,b.vx+=(ee*=$)*(Y=(J*=J)/(L+J)),b.vy+=(R*=$)*Y,Q.vx-=ee*(Y=1-Y),Q.vy-=R*Y)}return}return E>w+Y||G<w-Y||B>A+Y||U<A-Y}}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:$n(+p),h(),f):e},f}function epe(e){return e.index}function h0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function tpe(e){var t=epe,r=m,o,s=$n(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(L){return 1/Math.min(d[L.source.index],d[L.target.index])}function b(L){for(var M=0,T=e.length;M<v;++M)for(var P=0,E,B,G,U,Q,J,Y;P<T;++P)E=e[P],B=E.source,G=E.target,U=G.x+G.vx-B.x-B.vx||Vi(p),Q=G.y+G.vy-B.y-B.vy||Vi(p),J=Math.sqrt(U*U+Q*Q),J=(J-c[P])/J*L*o[P],U*=J,Q*=J,G.vx-=U*(Y=h[P]),G.vy-=Q*Y,B.vx+=U*(Y=1-Y),B.vy+=Q*Y}function w(){if(f){var L,M=f.length,T=e.length,P=new Map(f.map((B,G)=>[t(B,G,f),B])),E;for(L=0,d=new Array(M);L<T;++L)E=e[L],E.index=L,typeof E.source!="object"&&(E.source=h0(P,E.source)),typeof E.target!="object"&&(E.target=h0(P,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(L=0,h=new Array(T);L<T;++L)E=e[L],h[L]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array(T),A(),c=new Array(T),N()}}function A(){if(f)for(var L=0,M=e.length;L<M;++L)o[L]=+r(e[L],L,e)}function N(){if(f)for(var L=0,M=e.length;L<M;++L)c[L]=+s(e[L],L,e)}return b.initialize=function(L,M){f=L,p=M,w()},b.links=function(L){return arguments.length?(e=L,w(),b):e},b.id=function(L){return arguments.length?(t=L,b):t},b.iterations=function(L){return arguments.length?(v=+L,b):v},b.strength=function(L){return arguments.length?(r=typeof L=="function"?L:$n(+L),A(),b):r},b.distance=function(L){return arguments.length?(s=typeof L=="function"?L:$n(+L),N(),b):s},b}const npe=1664525,rpe=1013904223,p0=4294967296;function ipe(){let e=1;return()=>(e=(npe*e+rpe)%p0)/p0}function ope(e){return e.x}function spe(e){return e.y}var lpe=10,ape=Math.PI*(3-Math.sqrt(5));function cpe(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=Ca("tick","end"),v=ipe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var L,M=e.length,T;N===void 0&&(N=1);for(var P=0;P<N;++P)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),L=0;L<M;++L)T=e[L],T.fx==null?T.x+=T.vx*=f:(T.x=T.fx,T.vx=0),T.fy==null?T.y+=T.vy*=f:(T.y=T.fy,T.vy=0);return t}function w(){for(var N=0,L=e.length,M;N<L;++N){if(M=e[N],M.index=N,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var T=lpe*Math.sqrt(.5+N),P=N*ape;M.x=T*Math.cos(P),M.y=T*Math.sin(P)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function A(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(A),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(A),t):v},force:function(N,L){return arguments.length>1?(L==null?d.delete(N):d.set(N,A(L)),t):d.get(N)},find:function(N,L,M){var T=0,P=e.length,E,B,G,U,Q;for(M==null?M=1/0:M*=M,T=0;T<P;++T)U=e[T],E=N-U.x,B=L-U.y,G=E*E+B*B,G<M&&(Q=U,M=G);return Q},on:function(N,L){return arguments.length>1?(p.on(N,L),t):p.on(N)}}}function upe(){var e,t,r,o,s=$n(-30),c,f=1,d=1/0,h=.81;function p(w){var A,N=e.length,L=tp(e,ope,spe).visitAfter(m);for(o=w,A=0;A<N;++A)t=e[A],L.visit(b)}function v(){if(e){var w,A=e.length,N;for(c=new Array(A),w=0;w<A;++w)N=e[w],c[N.index]=+s(N,w,e)}}function m(w){var A=0,N,L,M=0,T,P,E;if(w.length){for(T=P=E=0;E<4;++E)(N=w[E])&&(L=Math.abs(N.value))&&(A+=N.value,M+=L,T+=L*N.x,P+=L*N.y);w.x=T/M,w.y=P/M}else{N=w,N.x=N.data.x,N.y=N.data.y;do A+=c[N.data.index];while(N=N.next)}w.value=A}function b(w,A,N,L){if(!w.value)return!0;var M=w.x-t.x,T=w.y-t.y,P=L-A,E=M*M+T*T;if(P*P/h<E)return E<d&&(M===0&&(M=Vi(r),E+=M*M),T===0&&(T=Vi(r),E+=T*T),E<f&&(E=Math.sqrt(f*E)),t.vx+=M*w.value*o/E,t.vy+=T*w.value*o/E),!0;if(w.length||E>=d)return;(w.data!==t||w.next)&&(M===0&&(M=Vi(r),E+=M*M),T===0&&(T=Vi(r),E+=T*T),E<f&&(E=Math.sqrt(f*E)));do w.data!==t&&(P=c[w.data.index]*o/E,t.vx+=M*P,t.vy+=T*P);while(w=w.next)}return p.initialize=function(w,A){e=w,r=A,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:$n(+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 fpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(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:$n(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}function dpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(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:$n(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}var hpe=Object.defineProperty,ppe=(e,t,r)=>t in e?hpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t,r)=>ppe(e,typeof t!="symbol"?t+"":t,r);function gpe(){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 g0(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]:g0(t[o])&&g0(r[o])?t[o]=Gi(t[o],r[o]):t[o]=r[o])}),t},{})}const c1={mergeArrays:!0};Gi.options=c1;Gi.withOptions=(e,...t)=>{Gi.options={mergeArrays:!0,...e};const r=Gi(...t);return Gi.options=c1,r};function vpe(){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 mpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function u1(e){e.preventDefault(),e.stopPropagation()}function f1(e){return typeof e=="number"}function ro(e,t){return f1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function ype(e){return`${e.source.id}-${e.target.id}`}function d1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function bpe(e){return`url(#${d1(e.color)})`}function wpe(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 h1={Arrow:e=>wpe(e)},xpe=(e,t,r)=>[t/2,r/2],Spe=(e,t,r)=>[v0(0,t),v0(0,r)];function v0(e,t){return Math.random()*(t-e)+e}const eh={Centered:xpe,Randomized:Spe};function _pe(){return{autoResize:!1,callbacks:{},hooks:{},initial:mpe(),nodeRadius:16,marker:h1.Arrow(4),modifiers:{},positionInitializer:eh.Centered,simulation:{alphas:gpe(),forces:vpe()},zoom:{initial:1,min:.1,max:2}}}function kpe(e={}){return Gi.withOptions({mergeArrays:!1},_pe(),e)}function Cpe({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=>u1(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 Tpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Epe({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Ufe().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),Un(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),Un(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 Ape({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}:Mpe({links:c},r)}function Mpe(e,t){const r=[...Lpe(e,t),...Npe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Lpe(e,t){return p1(e,t,(r,o)=>r.target.id===o.id)}function Npe(e,t){return p1(e,t,(r,o)=>r.source.id===o.id)}function p1(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 th(e){return e.x??0}function nh(e){return e.y??0}function rp({source:e,target:t}){const r=new An(th(e),nh(e)),o=new An(th(t),nh(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 g1({center:e,node:t}){const r=new An(th(t),nh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new An(0,1))),{n:r,c:o}}function v1({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 $pe(e){const{start:t,end:r}=v1(e);return`M${t.x},${t.y}
45
- L${r.x},${r.y}`}function Ope(e){const{start:t,end:r}=v1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Ppe({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 Rpe({center:e,config:t,node:r}){const{n:o,c:s}=g1({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 zpe({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 Dpe({center:e,config:t,node:r}){const{n:o,c:s}=g1({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 Ls={line:{labelTransform:Ope,path:$pe},arc:{labelTransform:zpe,path:Ppe},reflexive:{labelTransform:Dpe,path:Rpe}};function Ipe(e){return e.append("g").classed("links",!0).selectAll("path")}function Fpe({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>ype(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>bpe(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 Hpe(e){Bpe(e),Wpe(e)}function Bpe({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?Ls.reflexive.path({config:t,node:s.source,center:e}):m1(r,s.source,s.target)?Ls.arc.path({config:t,source:s.source,target:s.target}):Ls.line.path({config:t,source:s.source,target:s.target}))}function Wpe({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?Ls.reflexive.labelTransform({config:e,node:s.source,center:t}):m1(r,s.source,s.target)?Ls.arc.labelTransform({config:e,source:s.source,target:s.target}):Ls.line.labelTransform({config:e,source:s.source,target:s.target}))}function m1(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 qpe(e){return e.append("defs").selectAll("marker")}function Upe({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=>d1(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",Vpe(e.marker.path)),s})}function jpe(e){return[...new Set(e.links.map(t=>t.color))]}function Vpe(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 Gpe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Kpe({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 A=w.append("circle").classed("node",!0).attr("r",L=>ro(e,L)).on("contextmenu",(L,M)=>{u1(L),o(M)}).on("pointerdown",(L,M)=>Ype(L,M,s??o)).style("fill",L=>L.color);(v=(p=e.modifiers).node)==null||v.call(p,A);const N=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(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 Xpe=500;function Ype(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>Xpe){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Zpe(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Jpe({center:e,config:t,graph:r,onTick:o}){var s,c;const f=cpe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",fpe(()=>e().x).strength(m)).force("y",dpe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",upe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Qhe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",tpe(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 Qpe({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Phe().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 ege{constructor(t,r,o){if(Bt(this,"nodeTypes"),Bt(this,"_nodeTypeFilter"),Bt(this,"_includeUnlinked",!0),Bt(this,"_linkFilter",()=>!0),Bt(this,"_showLinkLabels",!0),Bt(this,"_showNodeLabels",!0),Bt(this,"filteredGraph"),Bt(this,"width",0),Bt(this,"height",0),Bt(this,"simulation"),Bt(this,"canvas"),Bt(this,"linkSelection"),Bt(this,"nodeSelection"),Bt(this,"markerSelection"),Bt(this,"zoom"),Bt(this,"drag"),Bt(this,"xOffset",0),Bt(this,"yOffset",0),Bt(this,"scale"),Bt(this,"focusedNode"),Bt(this,"resizeObserver"),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(nue(()=>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 An.of([this.width,this.height]).divide(2).subtract(An.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(f1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Upe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Fpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Kpe({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=Jpe({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=Qpe({config:this.config,canvasContainer:()=>Un(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Cpe({applyZoom:this.scale!==1,container:Un(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Ipe(this.canvas),this.nodeSelection=Gpe(this.canvas),this.markerSelection=qpe(this.canvas),this.drag=Epe({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(){Zpe(this.nodeSelection),Hpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Un(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(){Tpe({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=Ape({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function m0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function tge(e){return{...e}}function y1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const nge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},rge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},ige={flex:"~ gap-1","items-center":"","select-none":""},oge=["id","checked","onChange"],sge=["for"],lge=ut({__name:"ViewModuleGraph",props:Vl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=ku(e,"modelValue"),{graph:o}=x_(t),s=je(),c=je(!1),f=je(),d=je();Eh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),Fs(()=>{v()}),Su(()=>{var w;(w=d.value)==null||w.shutdown()}),Et(o,()=>v());function h(w,A){var N;(N=d.value)==null||N.filterNodesByType(A,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var A;if((A=d.value)==null||A.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new ege(s.value,o.value,kpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:N,newWidth:L})=>N===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:h1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?eh.Randomized:eh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(Cr)return;let A=0,N=0,L=0;w.on("pointerdown",(M,T)=>{T.type!=="external"&&(!T.x||!T.y||!m(M)||(A=T.x,N=T.y,L=Date.now()))}).on("pointerup",(M,T)=>{if(T.type==="external"||!T.x||!T.y||!m(M)||Date.now()-L>500)return;const P=T.x-A,E=T.y-N;P**2+E**2<100&&p(T.id)})}return(w,A)=>{var P;const N=bi,L=tue,M=$w,T=Kr("tooltip");return oe(),ye("div",nge,[te("div",null,[te("div",rge,[te("div",ige,[gt(te("input",{id:"hide-node-modules","onUpdate:modelValue":A[0]||(A[0]=E=>r.value=E),type:"checkbox"},null,512),[[sb,r.value]]),A[4]||(A[4]=te("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))]),(oe(!0),ye(ct,null,hi((P=W(d))==null?void 0:P.nodeTypes.sort(),E=>{var B;return oe(),ye("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[te("input",{id:`type-${E}`,type:"checkbox",checked:(B=W(d))==null?void 0:B.nodeTypeFilter.includes(E),onChange:G=>h(E,G.target.checked)},null,40,oge),te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${E}`,"border-b-2":"",style:en({"border-color":`var(--color-node-${E})`})},Be(E)+" Modules",13,sge)])}),128)),A[5]||(A[5]=te("div",{"flex-auto":""},null,-1)),te("div",null,[gt(Oe(N,{icon:"i-carbon-reset",onClick:A[1]||(A[1]=E=>v(!0))},null,512),[[T,"Reset",void 0,{bottom:!0}]])])])]),te("div",{ref_key:"el",ref:s},null,512),Oe(M,{modelValue:W(c),"onUpdate:modelValue":A[3]||(A[3]=E=>kt(c)?c.value=E:null),direction:"right"},{default:rt(()=>[W(f)?(oe(),nt(Ky,{key:0},{default:rt(()=>[Oe(L,{id:W(f),"project-name":w.projectName,onClose:A[2]||(A[2]=E=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])])}}}),age={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},cge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},uge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},fge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},dge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},hge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},b1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Kr("tooltip");return t.state==="pass"?(oe(),ye("div",age)):t.failedSnapshot?gt((oe(),ye("div",cge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),ye("div",uge)):t.mode==="todo"?gt((oe(),ye("div",fge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((oe(),ye("div",dge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),ye("div",hge))}}});function pge(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 gge(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 vge(e){const t=e.map(o=>gge(o)),r=pge(t);return t.map(({raw:o,id:s})=>y1({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 mge(e,t){return y1({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 yge(e,t){if(!e)return m0({});const r=vge(e.externalized),o=e.inlined.map(d=>mge(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 tge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return m0({nodes:s,links:f})}const bge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},wge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},xge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Sge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},_ge={class:"flex text-lg"},kge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Cge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Tge={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Ege={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Age=["flex-1"],Mge=ut({__name:"FileDetails",setup(e){const t=je({nodes:[],links:[]}),r=je(!1),o=je(!1),s=je(!1),c=je(void 0),f=je(!0),d=ke(()=>{const T=Jt.value;if(!(!T||!T.filepath))return{filepath:T.filepath,projectName:T.file.projectName||""}}),h=ke(()=>Jt.value&&Dh(Jt.value)),p=ke(()=>{var T,P;return!!((P=(T=Jt.value)==null?void 0:T.meta)!=null&&P.typecheck)});function v(){var P;const T=(P=Jt.value)==null?void 0:P.filepath;T&&fetch(`/__open-in-editor?file=${encodeURIComponent(T)}`)}function m(T){T==="graph"&&(o.value=!0),Yn.value=T}const b=ke(()=>{var T;return((T=Lw.value)==null?void 0:T.reduce((P,{size:E})=>P+E,0))??0});function w(T){r.value=T}const A=/[/\\]node_modules[/\\]/;async function N(T=!1){var P;if(!(s.value||((P=d.value)==null?void 0:P.filepath)===c.value&&!T)){s.value=!0,await Pt();try{const E=d.value;if(!E){s.value=!1;return}if(T||!c.value||E.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let B=await mt.rpc.getModuleGraph(E.projectName,E.filepath,!!Po);f.value&&(Cr&&(B=typeof window.structuredClone<"u"?window.structuredClone(B):BT(B)),B.inlined=B.inlined.filter(G=>!A.test(G)),B.externalized=B.externalized.filter(G=>!A.test(G))),t.value=yge(B,E.filepath),c.value=E.filepath}m("graph")}finally{await new Promise(E=>setTimeout(E,100)),s.value=!1}}}Hh(()=>[d.value,Yn.value,f.value],([,T,P],E)=>{T==="graph"&&N(E&&P!==E[2])},{debounce:100,immediate:!0});const L=ke(()=>{var T;return tw((T=Jt.value)==null?void 0:T.file.projectName)}),M=ke(()=>{switch(L.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,P)=>{var ee,R,$,O;const E=b1,B=bi,G=lge,U=Gce,Q=Ice,J=$ce,Y=Kr("tooltip");return W(Jt)?(oe(),ye("div",bge,[te("div",null,[te("div",wge,[Oe(E,{state:(ee=W(Jt).result)==null?void 0:ee.state,mode:W(Jt).mode,"failed-snapshot":W(h)},null,8,["state","mode","failed-snapshot"]),W(p)?gt((oe(),ye("div",xge,null,512)),[[Y,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),(R=W(Jt))!=null&&R.file.projectName?(oe(),ye("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:en({backgroundColor:W(L),color:W(M)})},Be(W(Jt).file.projectName),5)):Ke("",!0),te("div",Sge,Be(($=W(Jt))==null?void 0:$.name),1),te("div",_ge,[W(Cr)?Ke("",!0):gt((oe(),nt(B,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=W(Jt))!=null&&O.filepath),onClick:v},null,8,["disabled"])),[[Y,"Open in editor",void 0,{bottom:!0}]])])]),te("div",kge,[te("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==null}]),"data-testid":"btn-report",onClick:P[0]||(P[0]=_=>m(null))},P[5]||(P[5]=[te("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),te("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="graph"}]),onClick:P[1]||(P[1]=_=>m("graph"))},[W(s)?(oe(),ye("span",Cge)):(oe(),ye("span",Tge)),P[6]||(P[6]=pt(" Module Graph "))],2),te("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="editor"}]),onClick:P[2]||(P[2]=_=>m("editor"))},[P[7]||(P[7]=te("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+Be(W(r)?"* ":"")+"Code ",1)],2),te("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="console",op20:W(Yn)!=="console"&&W(b)===0}]),onClick:P[3]||(P[3]=_=>m("console"))},[P[8]||(P[8]=te("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+Be(W(b))+") ",1)],2)])]),te("div",Ege,[W(o)?(oe(),ye("div",{key:0,"flex-1":W(Yn)==="graph"&&""},[gt(Oe(G,{modelValue:W(f),"onUpdate:modelValue":P[4]||(P[4]=_=>kt(f)?f.value=_:null),graph:W(t),"data-testid":"graph","project-name":W(Jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ji,W(Yn)==="graph"&&!W(s)]])],8,Age)):Ke("",!0),W(Yn)==="editor"?(oe(),nt(U,{key:W(Jt).id,file:W(Jt),"data-testid":"editor",onDraft:w},null,8,["file"])):W(Yn)==="console"?(oe(),nt(Q,{key:2,file:W(Jt),"data-testid":"console"},null,8,["file"])):W(Yn)?Ke("",!0):(oe(),nt(J,{key:3,file:W(Jt),"data-testid":"report"},null,8,["file"]))])])):Ke("",!0)}}}),Lge={h:"full",flex:"~ col"},Nge={"flex-auto":"","py-1":"","bg-white":""},$ge=["src"],Oge=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),ye("div",Lge,[r[0]||(r[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon:folder-details-reference"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),te("div",Nge,[te("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,$ge)])]))}}),Pge={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Rge={"font-bold":""},zge={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Dge=["font-bold"],Ige={text:"red500/70"},Fge={key:1,text:"sm","mb-2":""},Hge={"font-bold":""},Bge={key:2,text:"sm","mb-2":""},Wge={"font-bold":""},qge={key:3,text:"sm","font-thin":""},Uge=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),ye(ct,null,[te("h4",Pge,[te("span",Rge,[pt(Be(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),ye(ct,{key:0},[pt(":")],64)):Ke("",!0)]),pt(" "+Be(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),ye("p",zge,[(oe(!0),ye(ct,null,hi(t.error.stacks,(s,c)=>(oe(),ye("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+Be(s.method)+" "+Be(s.file)+":",1),te("span",Ige,Be(s.line)+":"+Be(s.column),1),r[0]||(r[0]=te("br",null,null,-1))],8,Dge))),128))])):Ke("",!0),t.error.VITEST_TEST_PATH?(oe(),ye("p",Fge,[r[1]||(r[1]=pt(" This error originated in ")),te("span",Hge,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. "))])):Ke("",!0),t.error.VITEST_TEST_NAME?(oe(),ye("p",Bge,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),te("span",Wge,Be(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=te("br",null,null,-1)),r[6]||(r[6]=te("ul",null,[te("li",null," The error was thrown, while Vitest was running this test. "),te("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ke("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),ye("p",qge,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:"),te("br",null,null,-1),te("ul",null,[te("li",null," Cancel timeouts using clearTimeout and clearInterval. "),te("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ke("",!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:""},Vge={class:"number","data-testid":"num-files"},Gge={class:"number"},Kge={class:"number","text-red5":""},Xge={class:"number","text-red5":""},Yge={class:"number","text-red5":""},Zge={class:"number","data-testid":"run-time"},Jge={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Qge={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},eve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},tve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Uge;return oe(),ye(ct,null,[te("div",jge,[r[8]||(r[8]=te("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=te("div",null,"Files",-1)),te("div",Vge,Be(W(Ee).summary.files),1),W(Ee).summary.filesSuccess?(oe(),ye(ct,{key:0},[r[0]||(r[0]=te("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=te("div",null,"Pass",-1)),te("div",Gge,Be(W(Ee).summary.filesSuccess),1)],64)):Ke("",!0),W(Ee).summary.filesFailed?(oe(),ye(ct,{key:1},[r[2]||(r[2]=te("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=te("div",null," Fail ",-1)),te("div",Kge,Be(W(Ee).summary.filesFailed),1)],64)):Ke("",!0),W(Ee).summary.filesSnapshotFailed?(oe(),ye(ct,{key:2},[r[4]||(r[4]=te("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=te("div",null," Snapshot Fail ",-1)),te("div",Xge,Be(W(Ee).summary.filesSnapshotFailed),1)],64)):Ke("",!0),W(Wi).length?(oe(),ye(ct,{key:3},[r[6]||(r[6]=te("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=te("div",null," Errors ",-1)),te("div",Yge,Be(W(Wi).length),1)],64)):Ke("",!0),r[10]||(r[10]=te("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=te("div",null,"Time",-1)),te("div",Zge,Be(W(Ee).summary.time),1)]),W(Wi).length?(oe(),ye("div",Jge,[r[15]||(r[15]=te("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),te("p",Qge,[pt(" Vitest caught "+Be(W(Wi).length)+" error"+Be(W(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=te("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. "))]),te("details",eve,[r[14]||(r[14]=te("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),ye(ct,null,hi(W(Wi),(s,c)=>(oe(),nt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ke("",!0)],64)}}}),nve=yi(tve,[["__scopeId","data-v-0178ddee"]]),rve={"p-2":"","text-center":"",flex:""},ive={"text-4xl":"","min-w-2em":""},ove={"text-md":""},sve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),ye("div",rve,[te("div",null,[te("div",ive,[mn(t.$slots,"body")]),te("div",ove,[mn(t.$slots,"header")])])]))}}),lve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},ave=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=sve;return oe(),ye("div",lve,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSuccess),1)]),_:1}),Oe(o,{class:it({"text-red5":W(Ee).summary.testsFailed,op50:!W(Ee).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsFailed),1)]),_:1},8,["class"]),W(Ee).summary.testsSkipped?(oe(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSkipped),1)]),_:1})):Ke("",!0),W(Ee).summary.testsTodo?(oe(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsTodo),1)]),_:1})):Ke("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(Be(W(Ee).summary.totalTests),1)]),_:1})])}}}),cve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},uve={key:0,class:"text-gray-5"},fve={"aria-labelledby":"tests",m:"y-4 x-2"},dve=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=ave,s=nve;return oe(),ye("div",cve,[W(Ee).summary.files===0&&W(gs)?(oe(),ye("div",uve," No tests found ")):Ke("",!0),te("section",fve,[Oe(o)]),Oe(s)])}}}),hve={},pve={h:"full",flex:"~ col"},gve={class:"scrolls","flex-auto":"","py-1":""};function vve(e,t){const r=dve;return oe(),ye("div",pve,[t[0]||(t[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon-dashboard"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),te("div",gve,[Oe(r)])])}const mve=yi(hve,[["render",vve]]),yve=["open"],bve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=je(!0);return(r,o)=>(oe(),ye("div",{open:W(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[te("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]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),mn(r.$slots,"summary",{open:W(t)}),o[2]||(o[2]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),mn(r.$slots,"default")],40,yve))}}),wve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},xve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),ye("button",wve,[te("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Sve=["aria-label","data-current"],_ve={key:1,"w-4":""},kve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Cve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Tve={"text-sm":"",truncate:"","font-light":""},Eve=["text","innerHTML"],Ave={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Mve={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Lve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Nve={key:1},$ve=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=ke(()=>mt.state.idMap.get(e.taskId)),r=ke(()=>{if(Cr)return!1;const L=t.value;return L&&Dh(L)});function o(){var L;if(!e.expandable){(L=e.onItemClick)==null||L.call(e,t.value);return}e.opened?Ee.collapseNode(e.taskId):Ee.expandNode(e.taskId)}async function s(L){var M;(M=e.onItemClick)==null||M.call(e,L),ms.value&&(nu.value=!0,await Pt()),e.type==="file"?await Vh([L.file]):await Xae(L)}function c(L){return mt.rpc.updateSnapshot(L.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(L,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const L=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${L.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Qb(e.name)),v=ke(()=>{const L=gE.value,M=p.value;return L?M.replace(L,T=>`<span class="highlight">${T}</span>`):M}),m=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>m.value?"color-red5 dark:color-#f43f5e":null);function A(){var M;const L=t.value;e.type==="file"?(M=e.onItemClick)==null||M.call(e,L):Vce(L)}const N=ke(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(L,M)=>{const T=b1,P=xve,E=bi,B=Kr("tooltip");return W(t)?(oe(),ye("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(W(d)),"aria-label":L.name,"data-current":L.current,onClick:M[2]||(M[2]=G=>o())},[L.indent>0?(oe(!0),ye(ct,{key:0},hi(W(f),G=>(oe(),ye("div",{key:G,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ke("",!0),L.type==="file"||L.type==="suite"?(oe(),ye("div",_ve,[te("div",{class:it(L.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ke("",!0),Oe(T,{state:L.state,mode:W(t).mode,"failed-snapshot":W(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),te("div",kve,[L.type==="file"&&L.typecheck?gt((oe(),ye("div",Cve,null,512)),[[B,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),te("span",Tve,[L.type==="file"&&L.projectName?(oe(),ye("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:en({backgroundColor:L.projectNameColor,color:W(N)})},Be(L.projectName),5)):Ke("",!0),te("span",{text:L.state==="fail"?"red-500":"",innerHTML:W(v)},null,8,Eve)]),typeof L.duration=="number"?(oe(),ye("span",Ave,Be(L.duration>0?L.duration:"< 1")+"ms ",1)):Ke("",!0)]),te("div",Mve,[!W(Cr)&&W(r)?gt((oe(),nt(P,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=Ac(G=>c(W(t)),["prevent","stop"]))},null,512)),[[B,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),Oe(W(Mb),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",W(w)])},{popper:rt(()=>[W(m)?(oe(),ye("div",Lve,[M[5]||(M[5]=te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),te("div",null,[pt(Be(W(b))+": this feature is not available, you have disabled ",1),M[3]||(M[3]=te("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=pt(" in your configuration file."))]),M[6]||(M[6]=te("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))])):(oe(),ye("div",Nve,Be(W(b)),1))]),default:rt(()=>[Oe(E,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Ac(A,["prevent","stop"])})]),_:1},8,["class"]),W(Cr)?Ke("",!0):gt((oe(),nt(E,{key:1,"data-testid":"btn-run-test",title:W(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=Ac(G=>s(W(t)),["prevent","stop"]))},null,8,["title"])),[[B,W(h),void 0,{bottom:!0}]])])],12,Sve)):Ke("",!0)}}}),Ove=yi($ve,[["__scopeId","data-v-f7232aed"]]),Pve={"flex-1":"","ms-2":"","select-none":""},Rve=ut({__name:"FilterStatus",props:Vl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue");return(r,o)=>(oe(),ye("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]=Ac(s=>t.value=!t.value,["prevent"]))}),[te("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(te("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[sb,t.value]]),te("span",Pve,Be(r.label),1)],16))}});function zve(){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 Rc;function rh(){rh.init||(rh.init=!0,Rc=zve()!==-1)}var Bu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rh(),Pt(()=>{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",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||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&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Dve=yy();vy("data-v-b329ee4c");const Ive={class:"resize-observer",tabindex:"-1"};my();const Fve=Dve((e,t,r,o,s,c)=>(oe(),nt("div",Ive)));Bu.render=Fve;Bu.__scopeId="data-v-b329ee4c";Bu.__file="src/components/ResizeObserver.vue";function zc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zc=function(t){return typeof t}:zc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Hve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bve(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 Wve(e,t,r){return t&&Bve(e.prototype,t),e}function y0(e){return qve(e)||Uve(e)||jve(e)||Vve()}function qve(e){if(Array.isArray(e))return ih(e)}function Uve(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 ih(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 ih(e,t)}}function ih(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 Vve(){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 Gve(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Kve(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(y0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(y0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function w1(e,t){if(e===t)return!0;if(zc(e)==="object"){for(var r in e)if(!w1(e[r],t[r]))return!1;return!0}return!1}var Xve=function(){function e(t,r,o){Hve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Wve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Gve(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=Kve(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),Pt(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 x1(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 Xve(e,o,r);e._vue_visibilityState=s}}function Yve(e,t,r){var o=t.value,s=t.oldValue;if(!w1(o,s)){var c=e._vue_visibilityState;if(!o){S1(e);return}c?c.createObserver(o,r):x1(e,{value:o},r)}}function S1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Zve={beforeMount:x1,updated:Yve,unmounted:S1},Jve={itemsLimit:1e3},Qve=/(auto|scroll)/;function _1(e,t){return e.parentNode===null?t:_1(e.parentNode,t.concat([e]))}var fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},eme=function(t){return fd(t,"overflow")+fd(t,"overflow-y")+fd(t,"overflow-x")},tme=function(t){return Qve.test(eme(t))};function b0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=_1(e.parentNode,[]),r=0;r<t.length;r+=1)if(tme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function oh(e){"@babel/helpers - typeof";return oh=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},oh(e)}var nme={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 rme(){return this.items.length&&oh(this.items[0])!=="object"}var sh=!1;if(typeof window<"u"){sh=!1;try{var ime=Object.defineProperty({},"passive",{get:function(){sh=!0}});window.addEventListener("test",null,ime)}catch{}}let ome=0;var ip={name:"RecycleScroller",components:{ResizeObserver:Bu},directives:{ObserveVisibility:Zve},props:{...nme,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:rme,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=xh({id:ome++,index:t,used:!0,key:o,type:s}),f=yh({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,A=this.itemIndexByKey;let N,L,M,T,P;if(!p)N=L=T=P=M=0;else if(this.$_prerender)N=T=0,L=P=Math.min(this.prerender,h.length),M=null;else{const Y=this.getScroll();if(t){let $=Y.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),r===null&&$<c||$<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=Y.start;const ee=this.buffer;Y.start-=ee,Y.end+=ee;let R=0;if(this.$refs.before&&(R=this.$refs.before.scrollHeight,Y.start-=R),this.$refs.after){const $=this.$refs.after.scrollHeight;Y.end+=$}if(r===null){let $,O=0,_=p-1,D=~~(p/2),j;do j=D,$=v[D].accumulator,$<Y.start?O=D:D<p-1&&v[D+1].accumulator>Y.start&&(_=D),D=~~((O+_)/2);while(D!==j);for(D<0&&(D=0),N=D,M=v[p-1].accumulator,L=D;L<p&&v[L].accumulator<Y.end;L++);for(L===-1?L=h.length-1:(L++,L>p&&(L=p)),T=N;T<p&&R+v[T].accumulator<Y.start;T++);for(P=T;P<p&&R+v[P].accumulator<Y.end;P++);}else{N=~~(Y.start/r*o);const $=N%o;N-=$,L=Math.ceil(Y.end/r*o),T=Math.max(0,Math.floor((Y.start-R)/r*o)),P=Math.floor((Y.end-R)/r*o),N<0&&(N=0),L>p&&(L=p),T<0&&(T=0),P>p&&(P=p),M=Math.ceil(p/o)*r}}L-N>Jve.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let E;const B=N<=this.$_endIndex&&L>=this.$_startIndex;if(B)for(let Y=0,ee=w.length;Y<ee;Y++)E=w[Y],E.nr.used&&(e&&(E.nr.index=A[E.item[d]]),(E.nr.index==null||E.nr.index<N||E.nr.index>=L)&&this.unuseView(E));const G=B?null:new Map;let U,Q,J;for(let Y=N;Y<L;Y++){U=h[Y];const ee=d?U[d]:U;if(ee==null)throw new Error(`Key is ${ee} on item (keyField is '${d}')`);if(E=m.get(ee),!r&&!v[Y].size){E&&this.unuseView(E);continue}Q=U[f];let R=b.get(Q),$=!1;if(!E)B?R&&R.length?E=R.pop():E=this.addView(w,Y,U,ee,Q):(J=G.get(Q)||0,(!R||J>=R.length)&&(E=this.addView(w,Y,U,ee,Q),this.unuseView(E,!0),R=b.get(Q)),E=R[J],G.set(Q,J+1)),m.delete(E.nr.key),E.nr.used=!0,E.nr.index=Y,E.nr.key=ee,E.nr.type=Q,m.set(ee,E),$=!0;else if(!E.nr.used&&(E.nr.used=!0,$=!0,R)){const O=R.indexOf(E);O!==-1&&R.splice(O,1)}E.item=U,$&&(Y===h.length-1&&this.$emit("scroll-end"),Y===0&&this.$emit("scroll-start")),r===null?(E.position=v[Y-1].accumulator,E.offset=0):(E.position=Math.floor(Y/o)*r,E.offset=Y%o*s)}return this.$_startIndex=N,this.$_endIndex=L,this.emitUpdate&&this.$emit("update",N,L,T,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=b0(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,sh?{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=b0(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 sme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},lme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function ame(e,t,r,o,s,c){const f=Oo("ResizeObserver"),d=Kr("observe-visibility");return gt((oe(),ye("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?(oe(),ye("div",sme,[mn(e.$slots,"before")],512)):Ke("v-if",!0),(oe(),nt(hv(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(()=>[(oe(!0),ye(ct,null,hi(s.pool,h=>(oe(),nt(hv(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}]]},V_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[mn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),mn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),ye("div",lme,[mn(e.$slots,"after")],512)):Ke("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}ip.render=ame;ip.__file="src/components/RecycleScroller.vue";function cme(e){const t=ke(()=>Hd.value?!1:!Je.onlyTests),r=ke(()=>Wn.value===""),o=je(Wn.value);Hh(()=>Wn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Wn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Je.failed=!1,Je.success=!1,Je.skipped=!1,Je.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Os.value&&(cn.value.search=(h==null?void 0:h.trim())??"",cn.value.failed=p,cn.value.success=v,cn.value.skipped=m,cn.value.onlyTests=b)}return Et(()=>[o.value,Je.failed,Je.success,Je.skipped,Je.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ee.filterNodes()},{flush:"post"}),Et(()=>Mr.value.length,h=>{h&&(cn.value.expandAll=void 0)},{flush:"post"}),{initialized:Os,filter:Je,search:Wn,disableFilter:t,isFiltered:ew,isFilteredByStatus:Hd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Pu,testsTotal:vE,uiEntries:Gn}}const ume={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},fme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},dme=["op"],hme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},pme={"text-red5":""},gme={"text-yellow5":""},vme={"text-green5":""},mme={class:"text-purple5:50"},yme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},bme=["disabled"],wme=["disabled"],xme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Sme=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>Du.value.includeTaskLocation),s=je(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:A,filteredFiles:N,testsTotal:L,uiEntries:M}=cme(s),T=je("grid-cols-2"),P=je("grid-col-span-2"),E=je(),{width:B}=Bh();return Et(()=>B.value*(vn.navigation/100),G=>{G<420?(T.value="grid-cols-2",P.value="grid-col-span-2"):(T.value="grid-cols-4",P.value="grid-col-span-4")}),(G,U)=>{const Q=bi,J=Rve,Y=Ove,ee=bve,R=Kr("tooltip");return oe(),ye("div",{ref_key:"testExplorerRef",ref:E,h:"full",flex:"~ col"},[te("div",null,[te("div",ume,[mn(G.$slots,"header",{filteredFiles:W(p)||W(v)?W(N):void 0})]),te("div",fme,[U[13]||(U[13]=te("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(te("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=$=>kt(d)?d.value=$:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Nd($=>W(w)(!1),["esc"])),U[2]||(U[2]=Nd($=>r("run",W(p)||W(v)?W(N):void 0),["enter"]))]},null,40,dme),[[fC,W(d)]]),gt(Oe(Q,{disabled:W(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=$=>W(w)(!0))},null,8,["disabled"]),[[R,"Clear search",void 0,{bottom:!0}]])]),te("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(W(T))},[te("div",{class:it(W(P)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=te("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=te("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Oe(Q,{disabled:W(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=$=>W(A)(!1))},null,8,["disabled"]),[[R,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(J,{modelValue:W(f).failed,"onUpdate:modelValue":U[5]||(U[5]=$=>W(f).failed=$),label:"Fail"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).success,"onUpdate:modelValue":U[6]||(U[6]=$=>W(f).success=$),label:"Pass"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=$=>W(f).skipped=$),label:"Skip"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=$=>W(f).onlyTests=$),label:"Only Tests"},null,8,["modelValue"])],2)]),te("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...$)=>W(om)&&W(om)(...$))},[Oe(ee,null,j_({default:rt(()=>[(W(p)||W(v))&&W(M).length===0?(oe(),ye(ct,{key:0},[W(c)?(oe(),ye("div",yme,[U[18]||(U[18]=te("div",{op30:""}," No matched test ",-1)),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(m)?null:"hover:op100"),disabled:W(m),onClickPassive:U[9]||(U[9]=$=>W(w)(!0))}," Clear Search ",42,bme),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(h)?null:"hover:op100"),disabled:W(h),onClickPassive:U[10]||(U[10]=$=>W(A)(!0))}," Clear Filter ",42,wme),te("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...$)=>W(b)&&W(b)(...$))}," Clear All ",32)])):(oe(),ye("div",xme,U[19]||(U[19]=[te("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),te("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),nt(W(ip),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(M),buffer:100},{default:rt(({item:$})=>[Oe(Y,{class:it(["h-28px m-0 p-0",W(eo)===$.id?"bg-active":""]),"task-id":$.id,expandable:$.expandable,type:$.type,current:W(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":!W(o),"on-item-click":G.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},[W(c)?{name:"summary",fn:rt(()=>[te("div",hme,[te("span",pme," FAIL ("+Be(W(L).failed)+") ",1),U[16]||(U[16]=te("span",null,"/",-1)),te("span",gme," RUNNING ("+Be(W(L).running)+") ",1),te("span",vme," PASS ("+Be(W(L).success)+") ",1),U[17]||(U[17]=te("span",null,"/",-1)),te("span",mme," SKIP ("+Be(W(f).onlyTests?W(L).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),_me=""+new URL("../favicon.svg",import.meta.url).href,kme={class:"flex text-lg"},Cme=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=ke(()=>_a.value?"light":"dark");async function o(f){ms.value&&(nu.value=!0,await Pt(),to.value&&(ru(!0),await Pt())),f!=null&&f.length?await Vh(f):await Gae()}function s(){Ee.collapseAllNodes()}function c(){Ee.expandAllNodes()}return(f,d)=>{const h=bi,p=Sme,v=Kr("tooltip");return oe(),nt(p,{border:"r base","on-item-click":W(jE),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=te("img",{"w-6":"","h-6":"",src:_me,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=te("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),te("div",kme,[gt(Oe(h,{title:"Collapse tests",disabled:!W(Os),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[ji,!W(vm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Oe(h,{disabled:!W(Os),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[ji,W(vm)],[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=>W(ru)(!0))},null,512),[[ji,W(qd)&&!W(ms)||!W(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),W(qd)&&!W(ms)?(oe(),nt(W(Mb),{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]=[te("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),te("div",null,"Coverage enabled but missing html reporter."),te("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=te("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ke("",!0),W(ms)?gt((oe(),nt(h,{key:1,disabled:W(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>W(VE)())},null,8,["disabled"])),[[ji,!W(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ke("",!0),W(Ee).summary.failedSnapshot&&!W(Cr)?gt((oe(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!W(Ee).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>W(Ee).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),W(Cr)?Ke("",!0):gt((oe(),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=>W(bce)())},null,512),[[v,`Toggle to ${W(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Tme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Eme=ut({__name:"ProgressBar",setup(e){const{width:t}=Bh(),r=ke(()=>[Ee.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!gs.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesSuccess/d:0}),s=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesFailed/d:0}),c=ke(()=>Ee.summary.files-Ee.summary.filesFailed-Ee.summary.filesSuccess),f=ke(()=>{const d=Ee.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),ye("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(W(r))},[te("div",Tme,[te("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(W(r)),style:en(`width: ${W(s)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(s)}px; width: ${W(o)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(o)+W(s)}px; width: ${W(f)}px;`)},"   ",6)])],2))}}),Ame=yi(Eme,[["__scopeId","data-v-16879415"]]),w0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ya("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Mme=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},Lme={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Nme(e,t,r,o,s,c){return oe(),ye("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:en(e.style)},[mn(e.$slots,"default")],4)}const Sc=Mme(Lme,[["render",Nme]]),$me={"h-screen":"","w-screen":"",overflow:"hidden"},Ome=ut({__name:"index",setup(e){const t=UE(),r=dc(m=>{p(),h(m)},0),o=dc(m=>{m.forEach((b,w)=>{wr.value[w]=b.size}),d(m)},0),s=dc(m=>{m.forEach((b,w)=>{Lo.value[w]=b.size}),h(m),v()},0),c=dc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);wr.value[0]=100*b/m,wr.value[1]=100-wr.value[0],d([{size:wr.value[0]},{size:wr.value[1]}])}function d(m){vn.navigation=m[0].size,vn.details.size=m[1].size}function h(m){vn.details.browser=m[0].size,vn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=Ame,A=Cme,N=mve,L=Oge,M=Mge,T=cce,P=Jae;return oe(),ye(ct,null,[Oe(w),te("div",$me,[Oe(W(w0),{class:"pt-4px",onResized:W(o),onResize:W(c),onReady:f},{default:rt(()=>[Oe(W(Sc),{size:W(wr)[0]},{default:rt(()=>[Oe(A)]),_:1},8,["size"]),Oe(W(Sc),{size:W(wr)[1]},{default:rt(()=>[W(Po)?(oe(),nt(W(w0),{id:"details-splitpanes",key:"browser-detail",onResize:W(r),onResized:W(s)},{default:rt(()=>[Oe(W(Sc),{size:W(Lo)[0],"min-size":"10"},{default:rt(()=>[b[0]||(qc(-1),(b[0]=Oe(T)).cacheIndex=0,qc(1),b[0])]),_:1},8,["size"]),Oe(W(Sc),{size:W(Lo)[1]},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),nt(Uk,{key:"ui-detail"},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(P)],64)}}}),Pme=[{name:"index",path:"/",component:Ome,props:!0}];/*!
44
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var H;v&&(H=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,H),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function X(){if(u.selectionStart!=null){var fe=a.somethingSelected(),me="​"+(fe?u.value:"");u.value="⇚",u.value=me,i.prevInput=fe?"":"​",u.selectionStart=1,u.selectionEnd=me.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&X();var fe=0,me=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Kt(a,Cg)(a):fe++<10?l.detectingSelectAll=setTimeout(me,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(me,200)}}if(h&&p>=9&&X(),Y){wi(n);var ie=function(){on(window,"mouseup",ie),setTimeout(V,20)};Ie(window,"mouseup",ie)}else setTimeout(V,50)},Dt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Dt.prototype.setUneditable=function(){},Dt.prototype.needsContentAttribute=!1;function PS(n,i){if(i=i?ae(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=pe(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Ie(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(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(on(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function RS(n){n.off=on,n.on=Ie,n.wheelEventPixels=Wx,n.Doc=xn,n.splitLines=ir,n.countColumn=de,n.findColumn=ue,n.isWordChar=tt,n.Pass=q,n.signal=Lt,n.Line=jo,n.changeEnd=Ai,n.scrollbarModel=tg,n.Pos=ne,n.cmpPos=Ce,n.modes=Fo,n.mimeModes=dr,n.resolveMode=Ho,n.getMode=Bo,n.modeExtensions=_i,n.extendMode=Wo,n.copyState=Or,n.startState=qo,n.innerMode=Us,n.commands=pl,n.keyMap=ni,n.keyName=Bg,n.isModifierKey=Fg,n.lookupKey=is,n.normalizeKeyMap=uS,n.StringStream=$t,n.SharedTextMarker=fl,n.TextMarker=Li,n.LineWidget=ul,n.e_preventDefault=sn,n.e_stopPropagation=Do,n.e_stop=wi,n.addClass=be,n.contains=re,n.rmClass=R,n.keyNames=Ni}TS(Ct),LS(Ct);var zS="iter insert remove copy getEditor constructor".split(" ");for(var oc in xn.prototype)xn.prototype.hasOwnProperty(oc)&&Me(zS,oc)<0&&(Ct.prototype[oc]=function(n){return function(){return n.apply(this.doc,arguments)}}(xn.prototype[oc]));return cr(xn),Ct.inputStyles={textarea:Dt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),hr.apply(this,arguments)},Ct.defineMIME=so,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){xn.prototype[n]=i},Ct.fromTextArea=PS,RS(Ct),Ct.version="5.65.18",Ct})}(Lc)),Lc.exports}var Bce=Bs();const Wce=bw(Bce);var Fm={exports:{}},Hm;function Pw(){return Hm||(Hm=1,function(e,t){(function(r){r(Bs())})(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 F=C("keyword a"),se=C("keyword b"),ve=C("keyword c"),ne=C("keyword d"),Ce=C("operator"),ft={type:"atom",style:"atom"};return{if:C("if"),while:F,with:F,else:se,do:se,try:se,finally:se,return:ne,break:ne,continue:ne,new:C("new"),delete:ve,void:ve,throw:ve,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:Ce,typeof:Ce,instanceof:Ce,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:C("this"),class:C("class"),super:C("atom"),yield:ve,export:C("export"),import:C("import"),extends:ve,await:ve}}(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(C){for(var F=!1,se,ve=!1;(se=C.next())!=null;){if(!F){if(se=="/"&&!ve)return;se=="["?ve=!0:ve&&se=="]"&&(ve=!1)}F=!F&&se=="\\"}}var L,M;function T(C,F,se){return L=C,M=se,F}function P(C,F){var se=C.next();if(se=='"'||se=="'")return F.tokenize=A(se),F.tokenize(C,F);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(se=="."&&C.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return T(se);if(se=="="&&C.eat(">"))return T("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(se=="/")return C.eat("*")?(F.tokenize=B,B(C,F)):C.eat("/")?(C.skipToEnd(),T("comment","comment")):Kn(C,F,1)?(N(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(C.eat("="),T("operator","operator",C.current()));if(se=="`")return F.tokenize=G,G(C,F);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),T("meta","meta");if(se=="#"&&C.eatWhile(m))return T("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),T("comment","comment");if(w.test(se))return(se!=">"||!F.lexical||F.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?T("."):T("operator","operator",C.current());if(m.test(se)){C.eatWhile(m);var ve=C.current();if(F.lastType!="."){if(b.propertyIsEnumerable(ve)){var ne=b[ve];return T(ne.type,ne.style,ve)}if(ve=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ve)}return T("variable","variable",ve)}}function A(C){return function(F,se){var ve=!1,ne;if(d&&F.peek()=="@"&&F.match(E))return se.tokenize=P,T("jsonld-keyword","meta");for(;(ne=F.next())!=null&&!(ne==C&&!ve);)ve=!ve&&ne=="\\";return ve||(se.tokenize=P),T("string","string")}}function B(C,F){for(var se=!1,ve;ve=C.next();){if(ve=="/"&&se){F.tokenize=P;break}se=ve=="*"}return T("comment","comment")}function G(C,F){for(var se=!1,ve;(ve=C.next())!=null;){if(!se&&(ve=="`"||ve=="$"&&C.eat("{"))){F.tokenize=P;break}se=!se&&ve=="\\"}return T("quasi","string-2",C.current())}var U="([{}])";function Q(C,F){F.fatArrowAt&&(F.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ve=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ve&&(se=ve.index)}for(var ne=0,Ce=!1,ft=se-1;ft>=0;--ft){var Vt=C.string.charAt(ft),bn=U.indexOf(Vt);if(bn>=0&&bn<3){if(!ne){++ft;break}if(--ne==0){Vt=="("&&(Ce=!0);break}}else if(bn>=3&&bn<6)++ne;else if(m.test(Vt))Ce=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Uo=C.string.charAt(ft-1);if(Uo==Vt&&C.string.charAt(ft-2)!="\\"){ft--;break}}else if(Ce&&!ne){++ft;break}}Ce&&!ne&&(F.fatArrowAt=ft)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Y(C,F,se,ve,ne,Ce){this.indented=C,this.column=F,this.type=se,this.prev=ne,this.info=Ce,ve!=null&&(this.align=ve)}function ee(C,F){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==F)return!0;for(var ve=C.context;ve;ve=ve.prev)for(var se=ve.vars;se;se=se.next)if(se.name==F)return!0}function R(C,F,se,ve,ne){var Ce=C.cc;for($.state=C,$.stream=ne,$.marked=null,$.cc=Ce,$.style=F,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ft=Ce.length?Ce.pop():h?Me:de;if(ft(se,ve)){for(;Ce.length&&Ce[Ce.length-1].lex;)Ce.pop()();return $.marked?$.marked:se=="variable"&&ee(C,ve)?"variable-2":F}}}var $={state:null,marked:null,cc:null};function O(){for(var C=arguments.length-1;C>=0;C--)$.cc.push(arguments[C])}function _(){return O.apply(null,arguments),!0}function D(C,F){for(var se=F;se;se=se.next)if(se.name==C)return!0;return!1}function j(C){var F=$.state;if($.marked="def",!!p){if(F.context){if(F.lexical.info=="var"&&F.context&&F.context.block){var se=re(C,F.context);if(se!=null){F.context=se;return}}else if(!D(C,F.localVars)){F.localVars=new Re(C,F.localVars);return}}s.globalVars&&!D(C,F.globalVars)&&(F.globalVars=new Re(C,F.globalVars))}}function re(C,F){if(F)if(F.block){var se=re(C,F.prev);return se?se==F.prev?F:new be(se,F.vars,!0):null}else return D(C,F.vars)?F:new be(F.prev,new Re(C,F.vars),!1);else return null}function pe(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function be(C,F,se){this.prev=C,this.vars=F,this.block=se}function Re(C,F){this.name=C,this.next=F}var qe=new Re("this",new Re("arguments",null));function et(){$.state.context=new be($.state.context,$.state.localVars,!1),$.state.localVars=qe}function Ye(){$.state.context=new be($.state.context,$.state.localVars,!0),$.state.localVars=null}et.lex=Ye.lex=!0;function Xe(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}Xe.lex=!0;function Ae(C,F){var se=function(){var ve=$.state,ne=ve.indented;if(ve.lexical.type=="stat")ne=ve.lexical.indented;else for(var Ce=ve.lexical;Ce&&Ce.type==")"&&Ce.align;Ce=Ce.prev)ne=Ce.indented;ve.lexical=new Y(ne,$.stream.column(),C,null,ve.lexical,F)};return se.lex=!0,se}function Z(){var C=$.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}Z.lex=!0;function ae(C){function F(se){return se==C?_():C==";"||se=="}"||se==")"||se=="]"?O():_(F)}return F}function de(C,F){return C=="var"?_(Ae("vardef",F),Do,ae(";"),Z):C=="keyword a"?_(Ae("form"),q,de,Z):C=="keyword b"?_(Ae("form"),de,Z):C=="keyword d"?$.stream.match(/^\s*$/,!1)?_():_(Ae("stat"),le,ae(";"),Z):C=="debugger"?_(ae(";")):C=="{"?_(Ae("}"),Ye,It,Z,Xe):C==";"?_():C=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Z&&$.state.cc.pop()(),_(Ae("form"),q,de,Z,Io)):C=="function"?_(ir):C=="for"?_(Ae("form"),Ye,Aa,de,Xe,Z):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form",C=="class"?C:F),Fo,Z)):C=="variable"?v&&F=="declare"?($.marked="keyword",_(de)):v&&(F=="module"||F=="enum"||F=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",F=="enum"?_(Pe):F=="type"?_(Ma,ae("operator"),Qe,ae(";")):_(Ae("form"),yn,ae("{"),Ae("}"),It,Z,Z)):v&&F=="namespace"?($.marked="keyword",_(Ae("form"),Me,de,Z)):v&&F=="abstract"?($.marked="keyword",_(de)):_(Ae("stat"),Ue):C=="switch"?_(Ae("form"),q,ae("{"),Ae("}","switch"),Ye,It,Z,Z,Xe):C=="case"?_(Me,ae(":")):C=="default"?_(ae(":")):C=="catch"?_(Ae("form"),et,Ne,de,Z,Xe):C=="export"?_(Ae("stat"),Ho,Z):C=="import"?_(Ae("stat"),_i,Z):C=="async"?_(de):F=="@"?_(Me,de):O(Ae("stat"),Me,ae(";"),Z)}function Ne(C){if(C=="(")return _(fr,ae(")"))}function Me(C,F){return K(C,F,!1)}function I(C,F){return K(C,F,!0)}function q(C){return C!="("?O():_(Ae(")"),le,ae(")"),Z)}function K(C,F,se){if($.state.fatArrowAt==$.stream.start){var ve=se?ge:he;if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,ae("=>"),ve,Xe);if(C=="variable")return O(et,yn,ae("=>"),ve,Xe)}var ne=se?ue:ce;return J.hasOwnProperty(C)?_(ne):C=="function"?_(ir,ne):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form"),Uu,Z)):C=="keyword c"||C=="async"?_(se?I:Me):C=="("?_(Ae(")"),le,ae(")"),Z,ne):C=="operator"||C=="spread"?_(se?I:Me):C=="["?_(Ae("]"),$t,Z,ne):C=="{"?jt(ot,"}",null,ne):C=="quasi"?O(Se,ne):C=="new"?_(We(se)):_()}function le(C){return C.match(/[;\}\)\],]/)?O():O(Me)}function ce(C,F){return C==","?_(le):ue(C,F,!1)}function ue(C,F,se){var ve=se==!1?ce:ue,ne=se==!1?Me:I;if(C=="=>")return _(et,se?ge:he,Xe);if(C=="operator")return/\+\+|--/.test(F)||v&&F=="!"?_(ve):v&&F=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(Ae(">"),st(Qe,">"),Z,ve):F=="?"?_(Me,ae(":"),ne):_(ne);if(C=="quasi")return O(Se,ve);if(C!=";"){if(C=="(")return jt(I,")","call",ve);if(C==".")return _(tt,ve);if(C=="[")return _(Ae("]"),le,ae("]"),Z,ve);if(v&&F=="as")return $.marked="keyword",_(Qe,ve);if(C=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),_(ne)}}function Se(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(Se):_(le,_e)}function _e(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(Se)}function he(C){return Q($.stream,$.state),O(C=="{"?de:Me)}function ge(C){return Q($.stream,$.state),O(C=="{"?de:I)}function We(C){return function(F){return F=="."?_(C?De:Le):F=="variable"&&v?_(Dn,C?ue:ce):O(C?I:Me)}}function Le(C,F){if(F=="target")return $.marked="keyword",_(ce)}function De(C,F){if(F=="target")return $.marked="keyword",_(ue)}function Ue(C){return C==":"?_(Z,de):O(ce,ae(";"),Z)}function tt(C){if(C=="variable")return $.marked="property",_()}function ot(C,F){if(C=="async")return $.marked="property",_(ot);if(C=="variable"||$.style=="keyword"){if($.marked="property",F=="get"||F=="set")return _(lt);var se;return v&&$.state.fatArrowAt==$.stream.start&&(se=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+se[0].length),_(Mt)}else{if(C=="number"||C=="string")return $.marked=d?"property":$.style+" property",_(Mt);if(C=="jsonld-keyword")return _(Mt);if(v&&pe(F))return $.marked="keyword",_(ot);if(C=="[")return _(Me,Rn,ae("]"),Mt);if(C=="spread")return _(I,Mt);if(F=="*")return $.marked="keyword",_(ot);if(C==":")return O(Mt)}}function lt(C){return C!="variable"?O(Mt):($.marked="property",_(ir))}function Mt(C){if(C==":")return _(I);if(C=="(")return O(ir)}function st(C,F,se){function ve(ne,Ce){if(se?se.indexOf(ne)>-1:ne==","){var ft=$.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),_(function(Vt,bn){return Vt==F||bn==F?O():O(C)},ve)}return ne==F||Ce==F?_():se&&se.indexOf(";")>-1?O(C):_(ae(F))}return function(ne,Ce){return ne==F||Ce==F?_():O(C,ve)}}function jt(C,F,se){for(var ve=3;ve<arguments.length;ve++)$.cc.push(arguments[ve]);return _(Ae(F,se),st(C,F),Z)}function It(C){return C=="}"?_():O(de,It)}function Rn(C,F){if(v){if(C==":")return _(Qe);if(F=="?")return _(Rn)}}function $r(C,F){if(v&&(C==":"||F=="in"))return _(Qe)}function zt(C){if(v&&C==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?_(Me,zn,Qe):_(Qe)}function zn(C,F){if(F=="is")return $.marked="keyword",_()}function Qe(C,F){if(F=="keyof"||F=="typeof"||F=="infer"||F=="readonly")return $.marked="keyword",_(F=="typeof"?I:Qe);if(C=="variable"||F=="void")return $.marked="type",_(rr);if(F=="|"||F=="&")return _(Qe);if(C=="string"||C=="number"||C=="atom")return _(rr);if(C=="[")return _(Ae("]"),st(Qe,"]",","),Z,rr);if(C=="{")return _(Ae("}"),Ie,Z,rr);if(C=="(")return _(st(Nt,")"),Ea,rr);if(C=="<")return _(st(Qe,">"),Qe);if(C=="quasi")return O(on,rr)}function Ea(C){if(C=="=>")return _(Qe)}function Ie(C){return C.match(/[\}\)\]]/)?_():C==","||C==";"?_(Ie):O(Yr,Ie)}function Yr(C,F){if(C=="variable"||$.style=="keyword")return $.marked="property",_(Yr);if(F=="?"||C=="number"||C=="string")return _(Yr);if(C==":")return _(Qe);if(C=="[")return _(ae("variable"),$r,ae("]"),Yr);if(C=="(")return O(Si,Yr);if(!C.match(/[;\}\)\],]/))return _()}function on(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(on):_(Qe,Lt)}function Lt(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(on)}function Nt(C,F){return C=="variable"&&$.stream.match(/^\s*[?:]/,!1)||F=="?"?_(Nt):C==":"?_(Qe):C=="spread"?_(Nt):O(Qe)}function rr(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr);if(F=="|"||C=="."||F=="&")return _(Qe);if(C=="[")return _(Qe,ae("]"),rr);if(F=="extends"||F=="implements")return $.marked="keyword",_(Qe);if(F=="?")return _(Qe,ae(":"),Qe)}function Dn(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr)}function cr(){return O(Qe,sn)}function sn(C,F){if(F=="=")return _(Qe)}function Do(C,F){return F=="enum"?($.marked="keyword",_(Pe)):O(yn,Rn,ur,qu)}function yn(C,F){if(v&&pe(F))return $.marked="keyword",_(yn);if(C=="variable")return j(F),_();if(C=="spread")return _(yn);if(C=="[")return jt(Ws,"]");if(C=="{")return jt(wi,"}")}function wi(C,F){return C=="variable"&&!$.stream.match(/^\s*:/,!1)?(j(F),_(ur)):(C=="variable"&&($.marked="property"),C=="spread"?_(yn):C=="}"?O():C=="["?_(Me,ae("]"),ae(":"),wi):_(ae(":"),yn,ur))}function Ws(){return O(yn,ur)}function ur(C,F){if(F=="=")return _(I)}function qu(C){if(C==",")return _(Do)}function Io(C,F){if(C=="keyword b"&&F=="else")return _(Ae("form","else"),de,Z)}function Aa(C,F){if(F=="await")return _(Aa);if(C=="(")return _(Ae(")"),qs,Z)}function qs(C){return C=="var"?_(Do,xi):C=="variable"?_(xi):O(xi)}function xi(C,F){return C==")"?_():C==";"?_(xi):F=="in"||F=="of"?($.marked="keyword",_(Me,xi)):O(Me,xi)}function ir(C,F){if(F=="*")return $.marked="keyword",_(ir);if(C=="variable")return j(F),_(ir);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,de,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,ir)}function Si(C,F){if(F=="*")return $.marked="keyword",_(Si);if(C=="variable")return j(F),_(Si);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,Si)}function Ma(C,F){if(C=="keyword"||C=="variable")return $.marked="type",_(Ma);if(F=="<")return _(Ae(">"),st(cr,">"),Z)}function fr(C,F){return F=="@"&&_(Me,fr),C=="spread"?_(fr):v&&pe(F)?($.marked="keyword",_(fr)):v&&C=="this"?_(Rn,ur):O(yn,Rn,ur)}function Uu(C,F){return C=="variable"?Fo(C,F):dr(C,F)}function Fo(C,F){if(C=="variable")return j(F),_(dr)}function dr(C,F){if(F=="<")return _(Ae(">"),st(cr,">"),Z,dr);if(F=="extends"||F=="implements"||v&&C==",")return F=="implements"&&($.marked="keyword"),_(v?Qe:Me,dr);if(C=="{")return _(Ae("}"),hr,Z)}function hr(C,F){if(C=="async"||C=="variable"&&(F=="static"||F=="get"||F=="set"||v&&pe(F))&&$.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return $.marked="keyword",_(hr);if(C=="variable"||$.style=="keyword")return $.marked="property",_(so,hr);if(C=="number"||C=="string")return _(so,hr);if(C=="[")return _(Me,Rn,ae("]"),so,hr);if(F=="*")return $.marked="keyword",_(hr);if(v&&C=="(")return O(Si,hr);if(C==";"||C==",")return _(hr);if(C=="}")return _();if(F=="@")return _(Me,hr)}function so(C,F){if(F=="!"||F=="?")return _(so);if(C==":")return _(Qe,ur);if(F=="=")return _(I);var se=$.state.lexical.prev,ve=se&&se.info=="interface";return O(ve?Si:ir)}function Ho(C,F){return F=="*"?($.marked="keyword",_(qo,ae(";"))):F=="default"?($.marked="keyword",_(Me,ae(";"))):C=="{"?_(st(Bo,"}"),qo,ae(";")):O(de)}function Bo(C,F){if(F=="as")return $.marked="keyword",_(ae("variable"));if(C=="variable")return O(I,Bo)}function _i(C){return C=="string"?_():C=="("?O(Me):C=="."?O(ce):O(Wo,Or,qo)}function Wo(C,F){return C=="{"?jt(Wo,"}"):(C=="variable"&&j(F),F=="*"&&($.marked="keyword"),_(Us))}function Or(C){if(C==",")return _(Wo,Or)}function Us(C,F){if(F=="as")return $.marked="keyword",_(Wo)}function qo(C,F){if(F=="from")return $.marked="keyword",_(Me)}function $t(C){return C=="]"?_():O(st(I,"]"))}function Pe(){return O(Ae("form"),yn,ae("{"),Ae("}"),st(Zr,"}"),Z,Z)}function Zr(){return O(yn,ur)}function js(C,F){return C.lastType=="operator"||C.lastType==","||w.test(F.charAt(0))||/[,.]/.test(F.charAt(0))}function Kn(C,F,se){return F.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(F.lastType)||F.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var F={tokenize:P,lastType:"sof",cc:[],lexical:new Y((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new be(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(F.globalVars=s.globalVars),F},token:function(C,F){if(C.sol()&&(F.lexical.hasOwnProperty("align")||(F.lexical.align=!1),F.indented=C.indentation(),Q(C,F)),F.tokenize!=B&&C.eatSpace())return null;var se=F.tokenize(C,F);return L=="comment"?se:(F.lastType=L=="operator"&&(M=="++"||M=="--")?"incdec":L,R(F,se,L,M,C))},indent:function(C,F){if(C.tokenize==B||C.tokenize==G)return r.Pass;if(C.tokenize!=P)return 0;var se=F&&F.charAt(0),ve=C.lexical,ne;if(!/^\s*else\b/.test(F))for(var Ce=C.cc.length-1;Ce>=0;--Ce){var ft=C.cc[Ce];if(ft==Z)ve=ve.prev;else if(ft!=Io&&ft!=Xe)break}for(;(ve.type=="stat"||ve.type=="form")&&(se=="}"||(ne=C.cc[C.cc.length-1])&&(ne==ce||ne==ue)&&!/^[,\.=+\-*:?[\(]/.test(F));)ve=ve.prev;f&&ve.type==")"&&ve.prev.type=="stat"&&(ve=ve.prev);var Vt=ve.type,bn=se==Vt;return Vt=="vardef"?ve.indented+(C.lastType=="operator"||C.lastType==","?ve.info.length+1:0):Vt=="form"&&se=="{"?ve.indented:Vt=="form"?ve.indented+c:Vt=="stat"?ve.indented+(js(C,F)?f||c:0):ve.info=="switch"&&!bn&&s.doubleIndentSwitch!=!1?ve.indented+(/^(?:case|default)\b/.test(F)?c:2*c):ve.align?ve.column+(bn?0:1):ve.indented+(bn?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:Kn,skipExpression:function(C){R(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})})}()),Fm.exports}Pw();var Bm={exports:{}},Wm;function Rw(){return Wm||(Wm=1,function(e,t){(function(r){r(Bs())})(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(_,D){function j(be){return D.tokenize=be,be(_,D)}var re=_.next();if(re=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?j(L("atom","]]>")):null:_.match("--")?j(L("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),j(M(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),D.tokenize=L("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",D.tokenize=E,"tag bracket");if(re=="&"){var pe;return _.eat("#")?_.eat("x")?pe=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):pe=_.eatWhile(/[\d]/)&&_.eat(";"):pe=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),pe?"atom":"error"}else return _.eatWhile(/[^&<]/),null}w.isInText=!0;function E(_,D){var j=_.next();if(j==">"||j=="/"&&_.eat(">"))return D.tokenize=w,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){D.tokenize=w,D.state=G,D.tagName=D.tagStart=null;var re=D.tokenize(_,D);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(j)?(D.tokenize=N(j),D.stringStartCol=_.column(),D.tokenize(_,D)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(_){var D=function(j,re){for(;!j.eol();)if(j.next()==_){re.tokenize=E;break}return"string"};return D.isInAttribute=!0,D}function L(_,D){return function(j,re){for(;!j.eol();){if(j.match(D)){re.tokenize=w;break}j.next()}return _}}function M(_){return function(D,j){for(var re;(re=D.next())!=null;){if(re=="<")return j.tokenize=M(_+1),j.tokenize(D,j);if(re==">")if(_==1){j.tokenize=w;break}else return j.tokenize=M(_-1),j.tokenize(D,j)}return"meta"}}function T(_){return _&&_.toLowerCase()}function P(_,D,j){this.prev=_.context,this.tagName=D||"",this.indent=_.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(D)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function A(_){_.context&&(_.context=_.context.prev)}function B(_,D){for(var j;;){if(!_.context||(j=_.context.tagName,!h.contextGrabbers.hasOwnProperty(T(j))||!h.contextGrabbers[T(j)].hasOwnProperty(T(D))))return;A(_)}}function G(_,D,j){return _=="openTag"?(j.tagStart=D.column(),U):_=="closeTag"?Q:G}function U(_,D,j){return _=="word"?(j.tagName=D.current(),b="tag",ee):h.allowMissingTagName&&_=="endTag"?(b="tag bracket",ee(_,D,j)):(b="error",U)}function Q(_,D,j){if(_=="word"){var re=D.current();return j.context&&j.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(T(j.context.tagName))&&A(j),j.context&&j.context.tagName==re||h.matchClosing===!1?(b="tag",J):(b="tag error",Y)}else return h.allowMissingTagName&&_=="endTag"?(b="tag bracket",J(_,D,j)):(b="error",Y)}function J(_,D,j){return _!="endTag"?(b="error",J):(A(j),G)}function Y(_,D,j){return b="error",J(_,D,j)}function ee(_,D,j){if(_=="word")return b="attribute",R;if(_=="endTag"||_=="selfcloseTag"){var re=j.tagName,pe=j.tagStart;return j.tagName=j.tagStart=null,_=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(T(re))?B(j,re):(B(j,re),j.context=new P(j,re,pe==j.indented)),G}return b="error",ee}function R(_,D,j){return _=="equals"?$:(h.allowMissing||(b="error"),ee(_,D,j))}function $(_,D,j){return _=="string"?O:_=="word"&&h.allowUnquoted?(b="string",ee):(b="error",ee(_,D,j))}function O(_,D,j){return _=="string"?O:ee(_,D,j)}return{startState:function(_){var D={tokenize:w,state:G,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(D.baseIndent=_),D},token:function(_,D){if(!D.tagName&&_.sol()&&(D.indented=_.indentation()),_.eatSpace())return null;m=null;var j=D.tokenize(_,D);return(j||m)&&j!="comment"&&(b=null,D.state=D.state(m||j,_,D),b&&(j=b=="error"?j+" error":b)),j},indent:function(_,D,j){var re=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+d;if(re&&re.noIndent)return r.Pass;if(_.tokenize!=E&&_.tokenize!=w)return j?j.match(/^(\s*)/)[0].length:0;if(_.tagName)return h.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var pe=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(pe&&pe[1])for(;re;)if(re.tagName==pe[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(T(re.tagName)))re=re.prev;else break;else if(pe)for(;re;){var be=h.contextGrabbers[T(re.tagName)];if(be&&be.hasOwnProperty(T(pe[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(_){_.state==$&&(_.state=ee)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var D=[],j=_.context;j;j=j.prev)D.push(j.tagName);return D.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Bm.exports}Rw();var qm={exports:{}},Um;function qce(){return Um||(Um=1,function(e,t){(function(r){r(Bs(),Rw(),Pw())})(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 L=p(N.state),M=N.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?L-=c.indentUnit:N.prev.state.lexical&&(L=N.prev.state.lexical.indented)}else N.depth==1&&(L+=c.indentUnit);return E.context=new o(r.startState(h,L),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 T=d.token(w,N.state),P=w.current(),A;return/\btag\b/.test(T)?/>$/.test(P)?N.state.context?N.depth=0:E.context=E.context.prev:/^</.test(P)&&(N.depth=1):!T&&(A=P.indexOf("{"))>-1&&w.backUp(P.length-A),T}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 L=h.token(w,N.state);if(!L&&N.depth!=null){var M=w.current();M=="{"?N.depth++:M=="}"&&--N.depth==0&&(E.context=E.context.prev)}return L}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}})})}()),qm.exports}qce();var jm={exports:{}},Vm;function Uce(){return Vm||(Vm=1,function(e,t){(function(r){r(Bs())})(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)===""}})}()),jm.exports}Uce();var Gm={exports:{}},Km;function jce(){return Km||(Km=1,function(e,t){(function(r){r(Bs())})(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",L),r.off(document,"mouseup",N)}function L(M){if(M.which!=1)return N();p.moveTo(E+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",L),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)}})}()),Gm.exports}jce();const Hn=On();function Vce(e,t,r={}){const o=Wce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Et(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(()=>{Hn.value=void 0}),xh(o)}async function Gce(e){var t;dw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const zw=ut({__name:"CodeMirrorContainer",props:Vl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Vl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=ku(e,"modelValue"),s=X_(),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=je();return Fs(async()=>{const d=Vce(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(),Hn.value=d,setTimeout(()=>Hn.value.refresh(),100)}),(d,h)=>(oe(),ye("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[te("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Kce=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=je(""),c=On(void 0),f=je(!1),d=je(!0),h=je(!1),p=je();Et(()=>r.file,async()=>{var U;if(!h.value){d.value=!0;try{if(!r.file||!((U=r.file)!=null&&U.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(Q){console.error("cannot fetch file",Q)}await Pt(),d.value=!1}},{immediate:!0}),Et(()=>[d.value,h.value,r.file,uw.value],([U,Q,J,Y])=>{!U&&!Q&&(Y!=null?Pt(()=>{var $;const ee=p.value,R=ee??{line:Y??0,ch:0};ee?p.value=void 0:(($=Hn.value)==null||$.scrollIntoView(R,100),Pt(()=>{var O,_;(O=Hn.value)==null||O.focus(),(_=Hn.value)==null||_.setCursor(R)}))}):Pt(()=>{var ee;(ee=Hn.value)==null||ee.focus()}))},{flush:"post"});const v=ke(()=>{var U,Q;return((Q=(U=r.file)==null?void 0:U.filepath)==null?void 0:Q.split(/\./g).pop())||"js"}),m=je(),b=ke(()=>{var U;return((U=r.file)==null?void 0:U.tasks.filter(Q=>{var J;return((J=Q.result)==null?void 0:J.state)==="fail"}))||[]}),w=[],E=[],N=[],L=je(!1);function M(){N.forEach(([U,Q,J])=>{U.removeEventListener("click",Q),J()}),N.length=0}hE(m,()=>{var U;(U=Hn.value)==null||U.refresh()});function T(){f.value=c.value!==Hn.value.getValue()}Et(f,U=>{o("draft",U)},{immediate:!0});function P(U){const Q=((U==null?void 0:U.stacks)||[]).filter(O=>{var _;return O.file&&O.file===((_=r.file)==null?void 0:_.filepath)}),J=Q==null?void 0:Q[0];if(!J)return;const Y=document.createElement("div");Y.className="op80 flex gap-x-2 items-center";const ee=document.createElement("pre");ee.className="c-red-600 dark:c-red-400",ee.textContent=`${" ".repeat(J.column)}^ ${(U==null?void 0:U.nameStr)||U.name}: ${(U==null?void 0:U.message)||""}`,Y.appendChild(ee);const R=document.createElement("span");R.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",R.tabIndex=0,R.ariaLabel="Open in Editor",Mb(R,{content:"Open in Editor",placement:"bottom"},!1);const $=async()=>{await Sw(J.file,J.line,J.column)};R.addEventListener("click",$),Y.appendChild(R),N.push([R,$,()=>Ph(R)]),E.push(Hn.value.addLineClass(J.line-1,"wrap","bg-red-500/10")),w.push(Hn.value.addLineWidget(J.line-1,Y))}const{pause:A,resume:B}=Et([Hn,b,gs],([U,Q,J])=>{if(!U){w.length=0,E.length=0,M();return}J&&(U.off("changes",T),M(),w.forEach(Y=>Y.clear()),E.forEach(Y=>U==null?void 0:U.removeLineClass(Y,"wrap")),w.length=0,E.length=0,setTimeout(()=>{Q.forEach(Y=>{var ee,R;(R=(ee=Y.result)==null?void 0:ee.errors)==null||R.forEach(P)}),L.value||U.clearHistory(),U.on("changes",T)},100))},{flush:"post"});Hh(()=>[gs.value,h.value,p.value],([U,Q],J)=>{var Y;U&&!Q&&J&&J[2]&&((Y=Hn.value)==null||Y.setCursor(J[2]))},{debounce:100,flush:"post"});async function G(U){if(h.value)return;A(),h.value=!0,await Pt();const Q=Hn.value;Q&&(Q.setOption("readOnly",!0),await Pt(),Q.refresh()),p.value=Q==null?void 0:Q.getCursor(),Q==null||Q.off("changes",T),M(),w.forEach(J=>J.clear()),E.forEach(J=>Q==null?void 0:Q.removeLineClass(J,"wrap")),w.length=0,E.length=0;try{L.value=!0,await mt.rpc.saveTestFile(r.file.filepath,U),c.value=U,f.value=!1}catch(J){console.error("error saving file",J)}L.value||Q==null||Q.clearHistory();try{await pm(gs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await pm(gs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(J=>{var Y,ee;(ee=(Y=J.result)==null?void 0:Y.errors)==null||ee.forEach(P)}),Q==null||Q.on("changes",T),h.value=!1,await Pt(),Q&&(Q.setOption("readOnly",!1),await Pt(),Q.refresh()),B()}return _h(M),(U,Q)=>{const J=zw;return oe(),nt(J,di({ref_key:"editor",ref:m,modelValue:W(s),"onUpdate:modelValue":Q[0]||(Q[0]=Y=>kt(s)?s.value=Y:null),"h-full":""},{lineNumbers:!0,readOnly:W(Cr),saving:W(h)},{mode:W(v),"data-testid":"code-mirror",onSave:G}),null,16,["modelValue","mode"])}}}),Xce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Yce={"p-4":"",relative:""},Zce={op50:"","font-mono":"","text-sm":""},Jce={key:0,"p-5":""},Qce={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},eue={key:0},tue={p:"x3 y-1","bg-overlay":"",border:"base b t"},nue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=QT(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Po)),c=ke(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=ke(()=>{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 Yb("Escape",()=>{o("close")}),(p,v)=>{const m=bi,b=zw;return oe(),ye("div",Xce,[te("div",Yce,[v[1]||(v[1]=te("p",null,"Module Info",-1)),te("p",Zce,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"))})]),W(s)?(oe(),ye(ct,{key:1},[te("div",Qce,[v[2]||(v[2]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,di({"h-full":"","model-value":W(f),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"]),Oe(b,di({"h-full":"","model-value":W(d),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])]),W(h).mappings!==""?(oe(),ye("div",eue,[te("div",tue," Source map (v"+Be(W(h).version)+") ",1),Oe(b,di({"model-value":W(h).mappings,"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])])):Ke("",!0)],64)):(oe(),ye("div",Jce," No transform result found for this module. "))])}}});function rue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const Xm={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Iu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Xm.hasOwnProperty(t)?{space:Xm[t],local:e}:e}function iue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function oue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dw(e){var t=Iu(e);return(t.local?oue:iue)(t)}function sue(){}function Gh(e){return e==null?sue:function(){return this.querySelector(e)}}function lue(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 nr(o,this._parents)}function aue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function cue(){return[]}function Iw(e){return e==null?cue:function(){return this.querySelectorAll(e)}}function uue(e){return function(){return aue(e.apply(this,arguments))}}function fue(e){typeof e=="function"?e=uue(e):e=Iw(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 nr(o,s)}function Fw(e){return function(){return this.matches(e)}}function Hw(e){return function(t){return t.matches(e)}}var due=Array.prototype.find;function hue(e){return function(){return due.call(this.children,e)}}function pue(){return this.firstElementChild}function gue(e){return this.select(e==null?pue:hue(typeof e=="function"?e:Hw(e)))}var vue=Array.prototype.filter;function mue(){return Array.from(this.children)}function yue(e){return function(){return vue.call(this.children,e)}}function bue(e){return this.selectAll(e==null?mue:yue(typeof e=="function"?e:Hw(e)))}function wue(e){typeof e!="function"&&(e=Fw(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 nr(o,this._parents)}function Bw(e){return new Array(e.length)}function xue(){return new nr(this._enter||this._groups.map(Bw),this._parents)}function ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ou.prototype={constructor:ou,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 Sue(e){return function(){return e}}function _ue(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 ou(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function kue(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 ou(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Cue(e){return e.__data__}function Tue(e,t){if(!arguments.length)return Array.from(this,Cue);var r=t?kue:_ue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Sue(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=Eue(e.call(v,v&&v.__data__,p,o)),E=w.length,N=d[p]=new Array(E),L=f[p]=new Array(E),M=h[p]=new Array(b);r(v,m,N,L,M,w,t);for(var T=0,P=0,A,B;T<E;++T)if(A=N[T]){for(T>=P&&(P=T+1);!(B=L[P])&&++P<E;);A._next=B||null}}return f=new nr(f,o),f._enter=d,f._exit=h,f}function Eue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Aue(){return new nr(this._exit||this._groups.map(Bw),this._parents)}function Mue(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 Lue(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 nr(d,this._parents)}function Nue(){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 $ue(e){e||(e=Oue);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 nr(s,this._parents).order()}function Oue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Pue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Rue(){return Array.from(this)}function zue(){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 Due(){let e=0;for(const t of this)++e;return e}function Iue(){return!this.node()}function Fue(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 Hue(e){return function(){this.removeAttribute(e)}}function Bue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wue(e,t){return function(){this.setAttribute(e,t)}}function que(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Uue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function jue(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 Vue(e,t){var r=Iu(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?Bue:Hue:typeof t=="function"?r.local?jue:Uue:r.local?que:Wue)(r,t))}function Ww(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Gue(e){return function(){this.style.removeProperty(e)}}function Kue(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Xue(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Yue(e,t,r){return arguments.length>1?this.each((t==null?Gue:typeof t=="function"?Xue:Kue)(e,t,r??"")):Rs(this.node(),e)}function Rs(e,t){return e.style.getPropertyValue(t)||Ww(e).getComputedStyle(e,null).getPropertyValue(t)}function Zue(e){return function(){delete this[e]}}function Jue(e,t){return function(){this[e]=t}}function Que(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function efe(e,t){return arguments.length>1?this.each((t==null?Zue:typeof t=="function"?Que:Jue)(e,t)):this.node()[e]}function qw(e){return e.trim().split(/^|\s+/)}function Kh(e){return e.classList||new Uw(e)}function Uw(e){this._node=e,this._names=qw(e.getAttribute("class")||"")}Uw.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 jw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Vw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function tfe(e){return function(){jw(this,e)}}function nfe(e){return function(){Vw(this,e)}}function rfe(e,t){return function(){(t.apply(this,arguments)?jw:Vw)(this,e)}}function ife(e,t){var r=qw(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"?rfe:t?tfe:nfe)(r,t))}function ofe(){this.textContent=""}function sfe(e){return function(){this.textContent=e}}function lfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function afe(e){return arguments.length?this.each(e==null?ofe:(typeof e=="function"?lfe:sfe)(e)):this.node().textContent}function cfe(){this.innerHTML=""}function ufe(e){return function(){this.innerHTML=e}}function ffe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function dfe(e){return arguments.length?this.each(e==null?cfe:(typeof e=="function"?ffe:ufe)(e)):this.node().innerHTML}function hfe(){this.nextSibling&&this.parentNode.appendChild(this)}function pfe(){return this.each(hfe)}function gfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vfe(){return this.each(gfe)}function mfe(e){var t=typeof e=="function"?e:Dw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yfe(){return null}function bfe(e,t){var r=typeof e=="function"?e:Dw(e),o=t==null?yfe:typeof t=="function"?t:Gh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function wfe(){var e=this.parentNode;e&&e.removeChild(this)}function xfe(){return this.each(wfe)}function Sfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _fe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kfe(e){return this.select(e?_fe:Sfe)}function Cfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tfe(e){return function(t){e.call(this,t,this.__data__)}}function Efe(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 Afe(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 Mfe(e,t,r){return function(){var o=this.__on,s,c=Tfe(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 Lfe(e,t,r){var o=Efe(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?Mfe:Afe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Gw(e,t,r){var o=Ww(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 Nfe(e,t){return function(){return Gw(this,e,t)}}function $fe(e,t){return function(){return Gw(this,e,t.apply(this,arguments))}}function Ofe(e,t){return this.each((typeof t=="function"?$fe:Nfe)(e,t))}function*Pfe(){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 Kw=[null];function nr(e,t){this._groups=e,this._parents=t}function ka(){return new nr([[document.documentElement]],Kw)}function Rfe(){return this}nr.prototype=ka.prototype={constructor:nr,select:lue,selectAll:fue,selectChild:gue,selectChildren:bue,filter:wue,data:Tue,enter:xue,exit:Aue,join:Mue,merge:Lue,selection:Rfe,order:Nue,sort:$ue,call:Pue,nodes:Rue,node:zue,size:Due,empty:Iue,each:Fue,attr:Vue,style:Yue,property:efe,classed:ife,text:afe,html:dfe,raise:pfe,lower:vfe,append:mfe,insert:bfe,remove:xfe,clone:kfe,datum:Cfe,on:Lfe,dispatch:Ofe,[Symbol.iterator]:Pfe};function Un(e){return typeof e=="string"?new nr([[document.querySelector(e)]],[document.documentElement]):new nr([[e]],Kw)}function zfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ai(e,t){if(e=zfe(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]}class An{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new An(t,r)}add(t){return new An(this.x+t.x,this.y+t.y)}subtract(t){return new An(this.x-t.x,this.y-t.y)}multiply(t){return new An(this.x*t,this.y*t)}divide(t){return new An(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 An(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 An(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new An(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Dfe={value:()=>{}};function Ca(){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 Nc(r)}function Nc(e){this._=e}function Ife(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}})}Nc.prototype=Ca.prototype={constructor:Nc,on:function(e,t){var r=this._,o=Ife(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Ffe(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]=Ym(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Ym(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 Nc(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 Ffe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Ym(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Dfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Hfe={passive:!1},oa={capture:!0,passive:!1};function ld(e){e.stopImmediatePropagation()}function As(e){e.preventDefault(),e.stopImmediatePropagation()}function Xw(e){var t=e.document.documentElement,r=Un(e).on("dragstart.drag",As,oa);"onselectstart"in t?r.on("selectstart.drag",As,oa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yw(e,t){var r=e.document.documentElement,o=Un(e).on("dragstart.drag",null);t&&(o.on("click.drag",As,oa),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 mc=e=>()=>e;function Gd(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}})}Gd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Bfe(e){return!e.ctrlKey&&!e.button}function Wfe(){return this.parentNode}function qfe(e,t){return t??{x:e.x,y:e.y}}function Ufe(){return navigator.maxTouchPoints||"ontouchstart"in this}function jfe(){var e=Bfe,t=Wfe,r=qfe,o=Ufe,s={},c=Ca("start","drag","end"),f=0,d,h,p,v,m=0;function b(A){A.on("mousedown.drag",w).filter(o).on("touchstart.drag",L).on("touchmove.drag",M,Hfe).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(A,B){if(!(v||!e.call(this,A,B))){var G=P(this,t.call(this,A,B),A,B,"mouse");G&&(Un(A.view).on("mousemove.drag",E,oa).on("mouseup.drag",N,oa),Xw(A.view),ld(A),p=!1,d=A.clientX,h=A.clientY,G("start",A))}}function E(A){if(As(A),!p){var B=A.clientX-d,G=A.clientY-h;p=B*B+G*G>m}s.mouse("drag",A)}function N(A){Un(A.view).on("mousemove.drag mouseup.drag",null),Yw(A.view,p),As(A),s.mouse("end",A)}function L(A,B){if(e.call(this,A,B)){var G=A.changedTouches,U=t.call(this,A,B),Q=G.length,J,Y;for(J=0;J<Q;++J)(Y=P(this,U,A,B,G[J].identifier,G[J]))&&(ld(A),Y("start",A,G[J]))}}function M(A){var B=A.changedTouches,G=B.length,U,Q;for(U=0;U<G;++U)(Q=s[B[U].identifier])&&(As(A),Q("drag",A,B[U]))}function T(A){var B=A.changedTouches,G=B.length,U,Q;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<G;++U)(Q=s[B[U].identifier])&&(ld(A),Q("end",A,B[U]))}function P(A,B,G,U,Q,J){var Y=c.copy(),ee=ai(J||G,B),R,$,O;if((O=r.call(A,new Gd("beforestart",{sourceEvent:G,target:b,identifier:Q,active:f,x:ee[0],y:ee[1],dx:0,dy:0,dispatch:Y}),U))!=null)return R=O.x-ee[0]||0,$=O.y-ee[1]||0,function _(D,j,re){var pe=ee,be;switch(D){case"start":s[Q]=_,be=f++;break;case"end":delete s[Q],--f;case"drag":ee=ai(re||j,B),be=f;break}Y.call(D,A,new Gd(D,{sourceEvent:j,subject:O,target:b,identifier:Q,active:be,x:ee[0]+R,y:ee[1]+$,dx:ee[0]-pe[0],dy:ee[1]-pe[1],dispatch:Y}),U)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:mc(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:mc(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:mc(A),b):r},b.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:mc(!!A),b):o},b.on=function(){var A=c.on.apply(c,arguments);return A===c?b:A},b.clickDistance=function(A){return arguments.length?(m=(A=+A)*A,b):Math.sqrt(m)},b}function Xh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Zw(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ta(){}var sa=.7,su=1/sa,Ms="\\s*([+-]?\\d+)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vfe=/^#([0-9a-f]{3,8})$/,Gfe=new RegExp(`^rgb\\(${Ms},${Ms},${Ms}\\)$`),Kfe=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),Xfe=new RegExp(`^rgba\\(${Ms},${Ms},${Ms},${la}\\)$`),Yfe=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${la}\\)$`),Zfe=new RegExp(`^hsl\\(${la},${Vr},${Vr}\\)$`),Jfe=new RegExp(`^hsla\\(${la},${Vr},${Vr},${la}\\)$`),Zm={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(Ta,aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jm,formatHex:Jm,formatHex8:Qfe,formatHsl:ede,formatRgb:Qm,toString:Qm});function Jm(){return this.rgb().formatHex()}function Qfe(){return this.rgb().formatHex8()}function ede(){return Jw(this).formatHsl()}function Qm(){return this.rgb().formatRgb()}function aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Vfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?e0(t):r===3?new Vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yc(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=Gfe.exec(e))?new Vn(t[1],t[2],t[3],1):(t=Kfe.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xfe.exec(e))?yc(t[1],t[2],t[3],t[4]):(t=Yfe.exec(e))?yc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zfe.exec(e))?r0(t[1],t[2]/100,t[3]/100,1):(t=Jfe.exec(e))?r0(t[1],t[2]/100,t[3]/100,t[4]):Zm.hasOwnProperty(e)?e0(Zm[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function e0(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function yc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Vn(e,t,r,o)}function tde(e){return e instanceof Ta||(e=aa(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function Kd(e,t,r,o){return arguments.length===1?tde(e):new Vn(e,t,r,o??1)}function Vn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Xh(Vn,Kd,Zw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(No(this.r),No(this.g),No(this.b),lu(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:t0,formatHex:t0,formatHex8:nde,formatRgb:n0,toString:n0}));function t0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function nde(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function n0(){const e=lu(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function lu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function r0(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 Jw(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof Ta||(e=aa(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 rde(e,t,r,o){return arguments.length===1?Jw(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,rde,Zw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,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 Vn(ad(e>=240?e-240:e+120,s,o),ad(e,s,o),ad(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Sr(i0(this.h),bc(this.s),bc(this.l),lu(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=lu(this.opacity);return`${e===1?"hsl(":"hsla("}${i0(this.h)}, ${bc(this.s)*100}%, ${bc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function i0(e){return e=(e||0)%360,e<0?e+360:e}function bc(e){return Math.max(0,Math.min(1,e||0))}function ad(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 Qw=e=>()=>e;function ide(e,t){return function(r){return e+r*t}}function ode(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 sde(e){return(e=+e)==1?e1:function(t,r){return r-t?ode(t,r,e):Qw(isNaN(t)?r:t)}}function e1(e,t){var r=t-e;return r?ide(e,r):Qw(isNaN(e)?t:e)}const o0=function e(t){var r=sde(t);function o(s,c){var f=r((s=Kd(s)).r,(c=Kd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=e1(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 Xd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cd=new RegExp(Xd.source,"g");function lde(e){return function(){return e}}function ade(e){return function(t){return e(t)+""}}function cde(e,t){var r=Xd.lastIndex=cd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Xd.exec(e))&&(s=cd.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=cd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?ade(h[0].x):lde(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 s0=180/Math.PI,Yd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t1(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)*s0,skewX:Math.atan(h)*s0,scaleX:f,scaleY:d}}var wc;function ude(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Yd:t1(t.a,t.b,t.c,t.d,t.e,t.f)}function fde(e){return e==null||(wc||(wc=document.createElementNS("http://www.w3.org/2000/svg","g")),wc.setAttribute("transform",e),!(e=wc.transform.baseVal.consolidate()))?Yd:(e=e.matrix,t1(e.a,e.b,e.c,e.d,e.e,e.f))}function n1(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,L;++E<N;)m[(L=b[E]).i]=L.x(w);return m.join("")}}}var dde=n1(ude,"px, ","px)","deg)"),hde=n1(fde,", ",")",")"),pde=1e-12;function l0(e){return((e=Math.exp(e))+1/e)/2}function gde(e){return((e=Math.exp(e))-1/e)/2}function vde(e){return((e=Math.exp(2*e))-1)/(e+1)}const mde=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,L,M;if(N<pde)M=Math.log(b/p)/t,L=function(U){return[d+U*w,h+U*E,p*Math.exp(t*U*M)]};else{var T=Math.sqrt(N),P=(b*b-p*p+o*N)/(2*p*r*T),A=(b*b-p*p-o*N)/(2*b*r*T),B=Math.log(Math.sqrt(P*P+1)-P),G=Math.log(Math.sqrt(A*A+1)-A);M=(G-B)/t,L=function(U){var Q=U*M,J=l0(B),Y=p/(r*T)*(J*vde(t*Q+B)-gde(B));return[d+Y*w,h+Y*E,p*J/l0(t*Q+B)]}}return L.duration=M*1e3*t/Math.SQRT2,L}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 zs=0,El=0,_l=0,r1=1e3,au,Al,cu=0,Ro=0,Fu=0,ca=typeof performance=="object"&&performance.now?performance:Date,i1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yh(){return Ro||(i1(yde),Ro=ca.now()+Fu)}function yde(){Ro=0}function uu(){this._call=this._time=this._next=null}uu.prototype=Zh.prototype={constructor:uu,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&&Al!==this&&(Al?Al._next=this:au=this,Al=this),this._call=e,this._time=r,Zd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zd())}};function Zh(e,t,r){var o=new uu;return o.restart(e,t,r),o}function bde(){Yh(),++zs;for(var e=au,t;e;)(t=Ro-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function a0(){Ro=(cu=ca.now())+Fu,zs=El=0;try{bde()}finally{zs=0,xde(),Ro=0}}function wde(){var e=ca.now(),t=e-cu;t>r1&&(Fu-=t,cu=e)}function xde(){for(var e,t=au,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:au=r);Al=e,Zd(o)}function Zd(e){if(!zs){El&&(El=clearTimeout(El));var t=e-Ro;t>24?(e<1/0&&(El=setTimeout(a0,e-ca.now()-Fu)),_l&&(_l=clearInterval(_l))):(_l||(cu=ca.now(),_l=setInterval(wde,r1)),zs=1,i1(a0))}}function c0(e,t,r){var o=new uu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Sde=Ca("start","end","cancel","interrupt"),_de=[],o1=0,u0=1,Jd=2,$c=3,f0=4,Qd=5,Oc=6;function Hu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;kde(e,r,{name:t,index:o,group:s,on:Sde,tween:_de,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:o1})}function Jh(e,t){var r=Nr(e,t);if(r.state>o1)throw new Error("too late; already scheduled");return r}function Xr(e,t){var r=Nr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Nr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function kde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Zh(c,0,r.time);function c(p){r.state=u0,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!==u0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===$c)return c0(f);w.state===f0?(w.state=Oc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Oc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(c0(function(){r.state===$c&&(r.state=f0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Jd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Jd){for(r.state=$c,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=Qd,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===Qd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Oc,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>Jd&&o.state<Qd,o.state=Oc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Cde(e){return this.each(function(){Pc(this,e)})}function Tde(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 Ede(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 Ade(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Nr(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?Tde:Ede)(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 Nr(s,o).value[t]}}function s1(e,t){var r;return(typeof t=="number"?qi:t instanceof aa?o0:(r=aa(t))?(t=r,o0):cde)(e,t)}function Mde(e){return function(){this.removeAttribute(e)}}function Lde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nde(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 $de(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 Ode(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 Pde(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 Rde(e,t){var r=Iu(e),o=r==="transform"?hde:s1;return this.attrTween(e,typeof t=="function"?(r.local?Pde:Ode)(r,o,Qh(this,"attr."+e,t)):t==null?(r.local?Lde:Mde)(r):(r.local?$de:Nde)(r,o,t))}function zde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Dde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ide(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Dde(e,c)),r}return s._value=t,s}function Fde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&zde(e,c)),r}return s._value=t,s}function Hde(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=Iu(e);return this.tween(r,(o.local?Ide:Fde)(o,t))}function Bde(e,t){return function(){Jh(this,e).delay=+t.apply(this,arguments)}}function Wde(e,t){return t=+t,function(){Jh(this,e).delay=t}}function qde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Bde:Wde)(t,e)):Nr(this.node(),t).delay}function Ude(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function jde(e,t){return t=+t,function(){Xr(this,e).duration=t}}function Vde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ude:jde)(t,e)):Nr(this.node(),t).duration}function Gde(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function Kde(e){var t=this._id;return arguments.length?this.each(Gde(t,e)):Nr(this.node(),t).ease}function Xde(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Xr(this,e).ease=r}}function Yde(e){if(typeof e!="function")throw new Error;return this.each(Xde(this._id,e))}function Zde(e){typeof e!="function"&&(e=Fw(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 Jde(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 Qde(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 ehe(e,t,r){var o,s,c=Qde(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 the(e,t){var r=this._id;return arguments.length<2?Nr(this.node(),r).on.on(e):this.each(ehe(r,e,t))}function nhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function rhe(){return this.on("end.remove",nhe(this._id))}function ihe(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,Hu(p[b],t,r,b,p,Nr(v,r)));return new gi(c,this._parents,t,r)}function ohe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Iw(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=Nr(v,r),N=0,L=b.length;N<L;++N)(w=b[N])&&Hu(w,t,r,N,b,E);c.push(b),f.push(v)}return new gi(c,f,t,r)}var she=ka.prototype.constructor;function lhe(){return new she(this._groups,this._parents)}function ahe(e,t){var r,o,s;return function(){var c=Rs(this,e),f=(this.style.removeProperty(e),Rs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function l1(e){return function(){this.style.removeProperty(e)}}function che(e,t,r){var o,s=r+"",c;return function(){var f=Rs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function uhe(e,t,r){var o,s,c;return function(){var f=Rs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Rs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function fhe(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=l1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function dhe(e,t,r){var o=(e+="")=="transform"?dde:s1;return t==null?this.styleTween(e,ahe(e,o)).on("end.style."+e,l1(e)):typeof t=="function"?this.styleTween(e,uhe(e,o,Qh(this,"style."+e,t))).each(fhe(this._id,e)):this.styleTween(e,che(e,o,t),r).on("end.style."+e,null)}function hhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function phe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&hhe(e,f,r)),o}return c._value=t,c}function ghe(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,phe(e,t,r??""))}function vhe(e){return function(){this.textContent=e}}function mhe(e){return function(){var t=e(this);this.textContent=t??""}}function yhe(e){return this.tween("text",typeof e=="function"?mhe(Qh(this,"text",e)):vhe(e==null?"":e+""))}function bhe(e){return function(t){this.textContent=e.call(this,t)}}function whe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&bhe(s)),t}return o._value=e,o}function xhe(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,whe(e))}function She(){for(var e=this._name,t=this._id,r=a1(),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=Nr(h,t);Hu(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 _he(){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 khe=0;function gi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function a1(){return++khe}var oi=ka.prototype;gi.prototype={constructor:gi,select:ihe,selectAll:ohe,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:Zde,merge:Jde,selection:lhe,transition:She,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:the,attr:Rde,attrTween:Hde,style:dhe,styleTween:ghe,text:yhe,textTween:xhe,remove:rhe,tween:Ade,delay:qde,duration:Vde,ease:Kde,easeVarying:Yde,end:_he,[Symbol.iterator]:oi[Symbol.iterator]};function Che(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var The={time:null,delay:0,duration:250,ease:Che};function Ehe(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 Ahe(e){var t,r;e instanceof gi?(t=e._id,e=e._name):(t=a1(),(r=The).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])&&Hu(h,e,t,p,f,r||Ehe(h,t));return new gi(o,this._parents,e,t)}ka.prototype.interrupt=Cde;ka.prototype.transition=Ahe;const xc=e=>()=>e;function Mhe(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 ud(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function Lhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Nhe(){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 d0(){return this.__zoom||ep}function $he(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ohe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Phe(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 Rhe(){var e=Lhe,t=Nhe,r=Phe,o=$he,s=Ohe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=mde,p=Ca("start","zoom","end"),v,m,b,w=500,E=150,N=0,L=10;function M(O){O.property("__zoom",d0).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",Y).filter(s).on("touchstart.zoom",ee).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(O,_,D,j){var re=O.selection?O.selection():O;re.property("__zoom",d0),O!==re?B(O,_,D,j):re.interrupt().each(function(){G(this,arguments).event(j).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},M.scaleBy=function(O,_,D,j){M.scaleTo(O,function(){var re=this.__zoom.k,pe=typeof _=="function"?_.apply(this,arguments):_;return re*pe},D,j)},M.scaleTo=function(O,_,D,j){M.transform(O,function(){var re=t.apply(this,arguments),pe=this.__zoom,be=D==null?A(re):typeof D=="function"?D.apply(this,arguments):D,Re=pe.invert(be),qe=typeof _=="function"?_.apply(this,arguments):_;return r(P(T(pe,qe),be,Re),re,f)},D,j)},M.translateBy=function(O,_,D,j){M.transform(O,function(){return r(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),f)},null,j)},M.translateTo=function(O,_,D,j,re){M.transform(O,function(){var pe=t.apply(this,arguments),be=this.__zoom,Re=j==null?A(pe):typeof j=="function"?j.apply(this,arguments):j;return r(ep.translate(Re[0],Re[1]).scale(be.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof D=="function"?-D.apply(this,arguments):-D),pe,f)},j,re)};function T(O,_){return _=Math.max(c[0],Math.min(c[1],_)),_===O.k?O:new fi(_,O.x,O.y)}function P(O,_,D){var j=_[0]-D[0]*O.k,re=_[1]-D[1]*O.k;return j===O.x&&re===O.y?O:new fi(O.k,j,re)}function A(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function B(O,_,D,j){O.on("start.zoom",function(){G(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(j).end()}).tween("zoom",function(){var re=this,pe=arguments,be=G(re,pe).event(j),Re=t.apply(re,pe),qe=D==null?A(Re):typeof D=="function"?D.apply(re,pe):D,et=Math.max(Re[1][0]-Re[0][0],Re[1][1]-Re[0][1]),Ye=re.__zoom,Xe=typeof _=="function"?_.apply(re,pe):_,Ae=h(Ye.invert(qe).concat(et/Ye.k),Xe.invert(qe).concat(et/Xe.k));return function(Z){if(Z===1)Z=Xe;else{var ae=Ae(Z),de=et/ae[2];Z=new fi(de,qe[0]-ae[0]*de,qe[1]-ae[1]*de)}be.zoom(null,Z)}})}function G(O,_,D){return!D&&O.__zooming||new U(O,_)}function U(O,_){this.that=O,this.args=_,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,_),this.taps=0}U.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,_){return this.mouse&&O!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var _=Un(this.that).datum();p.call(O,this.that,new Mhe(O,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),_)}};function Q(O,..._){if(!e.apply(this,arguments))return;var D=G(this,_).event(O),j=this.__zoom,re=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),pe=ai(O);if(D.wheel)(D.mouse[0][0]!==pe[0]||D.mouse[0][1]!==pe[1])&&(D.mouse[1]=j.invert(D.mouse[0]=pe)),clearTimeout(D.wheel);else{if(j.k===re)return;D.mouse=[pe,j.invert(pe)],Pc(this),D.start()}kl(O),D.wheel=setTimeout(be,E),D.zoom("mouse",r(P(T(j,re),D.mouse[0],D.mouse[1]),D.extent,f));function be(){D.wheel=null,D.end()}}function J(O,..._){if(b||!e.apply(this,arguments))return;var D=O.currentTarget,j=G(this,_,!0).event(O),re=Un(O.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",et,!0),pe=ai(O,D),be=O.clientX,Re=O.clientY;Xw(O.view),ud(O),j.mouse=[pe,this.__zoom.invert(pe)],Pc(this),j.start();function qe(Ye){if(kl(Ye),!j.moved){var Xe=Ye.clientX-be,Ae=Ye.clientY-Re;j.moved=Xe*Xe+Ae*Ae>N}j.event(Ye).zoom("mouse",r(P(j.that.__zoom,j.mouse[0]=ai(Ye,D),j.mouse[1]),j.extent,f))}function et(Ye){re.on("mousemove.zoom mouseup.zoom",null),Yw(Ye.view,j.moved),kl(Ye),j.event(Ye).end()}}function Y(O,..._){if(e.apply(this,arguments)){var D=this.__zoom,j=ai(O.changedTouches?O.changedTouches[0]:O,this),re=D.invert(j),pe=D.k*(O.shiftKey?.5:2),be=r(P(T(D,pe),j,re),t.apply(this,_),f);kl(O),d>0?Un(this).transition().duration(d).call(B,be,j,O):Un(this).call(M.transform,be,j,O)}}function ee(O,..._){if(e.apply(this,arguments)){var D=O.touches,j=D.length,re=G(this,_,O.changedTouches.length===j).event(O),pe,be,Re,qe;for(ud(O),be=0;be<j;++be)Re=D[be],qe=ai(Re,this),qe=[qe,this.__zoom.invert(qe),Re.identifier],re.touch0?!re.touch1&&re.touch0[2]!==qe[2]&&(re.touch1=qe,re.taps=0):(re.touch0=qe,pe=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),pe&&(re.taps<2&&(m=qe[0],v=setTimeout(function(){v=null},w)),Pc(this),re.start())}}function R(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be,Re,qe;for(kl(O),pe=0;pe<re;++pe)be=j[pe],Re=ai(be,this),D.touch0&&D.touch0[2]===be.identifier?D.touch0[0]=Re:D.touch1&&D.touch1[2]===be.identifier&&(D.touch1[0]=Re);if(be=D.that.__zoom,D.touch1){var et=D.touch0[0],Ye=D.touch0[1],Xe=D.touch1[0],Ae=D.touch1[1],Z=(Z=Xe[0]-et[0])*Z+(Z=Xe[1]-et[1])*Z,ae=(ae=Ae[0]-Ye[0])*ae+(ae=Ae[1]-Ye[1])*ae;be=T(be,Math.sqrt(Z/ae)),Re=[(et[0]+Xe[0])/2,(et[1]+Xe[1])/2],qe=[(Ye[0]+Ae[0])/2,(Ye[1]+Ae[1])/2]}else if(D.touch0)Re=D.touch0[0],qe=D.touch0[1];else return;D.zoom("touch",r(P(be,Re,qe),D.extent,f))}}function $(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be;for(ud(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),pe=0;pe<re;++pe)be=j[pe],D.touch0&&D.touch0[2]===be.identifier?delete D.touch0:D.touch1&&D.touch1[2]===be.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(be=ai(be,this),Math.hypot(m[0]-be[0],m[1]-be[1])<L)){var Re=Un(this).on("dblclick.zoom");Re&&Re.apply(this,arguments)}}}return M.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:xc(+O),M):o},M.filter=function(O){return arguments.length?(e=typeof O=="function"?O:xc(!!O),M):e},M.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:xc(!!O),M):s},M.extent=function(O){return arguments.length?(t=typeof O=="function"?O:xc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),M):t},M.scaleExtent=function(O){return arguments.length?(c[0]=+O[0],c[1]=+O[1],M):[c[0],c[1]]},M.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],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(O){return arguments.length?(r=O,M):r},M.duration=function(O){return arguments.length?(d=+O,M):d},M.interpolate=function(O){return arguments.length?(h=O,M):h},M.on=function(){var O=p.on.apply(p,arguments);return O===p?M:O},M.clickDistance=function(O){return arguments.length?(N=(O=+O)*O,M):Math.sqrt(N)},M.tapDistance=function(O){return arguments.length?(L=+O,M):L},M}function zhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return c1(this.cover(t,r),t,r,e)}function c1(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,L,M,T;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[M=L<<1|N]))return s[M]=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[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b;while((M=L<<1|N)===(T=(E>=b)<<1|w>=m));return s[T]=c,s[M]=f,e}function Dhe(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)c1(this,f[r],d[r],e[r]);return this}function Ihe(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 Fhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Hhe(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 Ln(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Bhe(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 Ln(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 L=(f+h)/2,M=(d+p)/2;b.push(new Ln(w[3],L,M,h,p),new Ln(w[2],f,M,L,p),new Ln(w[1],L,d,h,M),new Ln(w[0],f,d,L,M)),(N=(t>=M)<<1|e>=L)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=E)}else{var T=e-+this._x.call(null,w.data),P=t-+this._y.call(null,w.data),A=T*T+P*P;if(A<r){var B=Math.sqrt(r=A);s=e-B,c=t-B,v=e+B,m=t+B,o=w.data}}return o}function Whe(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,L,M;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[L=N<<1|E]))return this;if(!r.length)break;(t[L+1&3]||t[L+2&3]||t[L+3&3])&&(o=t,M=L)}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[L]=c:delete t[L],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function qhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Uhe(){return this._root}function jhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Vhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Ln(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 Ln(s,p,v,d,h)),(s=o[2])&&t.push(new Ln(s,c,v,p,h)),(s=o[1])&&t.push(new Ln(s,p,f,d,v)),(s=o[0])&&t.push(new Ln(s,c,f,p,v))}return this}function Ghe(e){var t=[],r=[],o;for(this._root&&t.push(new Ln(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 Ln(c,f,d,v,m)),(c=s[1])&&t.push(new Ln(c,v,d,h,m)),(c=s[2])&&t.push(new Ln(c,f,m,v,p)),(c=s[3])&&t.push(new Ln(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 Khe(e){return e[0]}function Xhe(e){return arguments.length?(this._x=e,this):this._x}function Yhe(e){return e[1]}function Zhe(e){return arguments.length?(this._y=e,this):this._y}function tp(e,t,r){var o=new np(t??Khe,r??Yhe,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 h0(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=h0(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]=h0(o));return e};Pn.add=zhe;Pn.addAll=Dhe;Pn.cover=Ihe;Pn.data=Fhe;Pn.extent=Hhe;Pn.find=Bhe;Pn.remove=Whe;Pn.removeAll=qhe;Pn.root=Uhe;Pn.size=jhe;Pn.visit=Vhe;Pn.visitAfter=Ghe;Pn.x=Xhe;Pn.y=Zhe;function $n(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Jhe(e){return e.x+e.vx}function Qhe(e){return e.y+e.vy}function epe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=$n(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,E,N,L,M=0;M<c;++M)for(m=tp(t,Jhe,Qhe).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],L=N*N,w=b.x+b.vx,E=b.y+b.vy,m.visit(T);function T(P,A,B,G,U){var Q=P.data,J=P.r,Y=N+J;if(Q){if(Q.index>b.index){var ee=w-Q.x-Q.vx,R=E-Q.y-Q.vy,$=ee*ee+R*R;$<Y*Y&&(ee===0&&(ee=Vi(o),$+=ee*ee),R===0&&(R=Vi(o),$+=R*R),$=(Y-($=Math.sqrt($)))/$*s,b.vx+=(ee*=$)*(Y=(J*=J)/(L+J)),b.vy+=(R*=$)*Y,Q.vx-=ee*(Y=1-Y),Q.vy-=R*Y)}return}return A>w+Y||G<w-Y||B>E+Y||U<E-Y}}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:$n(+p),h(),f):e},f}function tpe(e){return e.index}function p0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function npe(e){var t=tpe,r=m,o,s=$n(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(L){return 1/Math.min(d[L.source.index],d[L.target.index])}function b(L){for(var M=0,T=e.length;M<v;++M)for(var P=0,A,B,G,U,Q,J,Y;P<T;++P)A=e[P],B=A.source,G=A.target,U=G.x+G.vx-B.x-B.vx||Vi(p),Q=G.y+G.vy-B.y-B.vy||Vi(p),J=Math.sqrt(U*U+Q*Q),J=(J-c[P])/J*L*o[P],U*=J,Q*=J,G.vx-=U*(Y=h[P]),G.vy-=Q*Y,B.vx+=U*(Y=1-Y),B.vy+=Q*Y}function w(){if(f){var L,M=f.length,T=e.length,P=new Map(f.map((B,G)=>[t(B,G,f),B])),A;for(L=0,d=new Array(M);L<T;++L)A=e[L],A.index=L,typeof A.source!="object"&&(A.source=p0(P,A.source)),typeof A.target!="object"&&(A.target=p0(P,A.target)),d[A.source.index]=(d[A.source.index]||0)+1,d[A.target.index]=(d[A.target.index]||0)+1;for(L=0,h=new Array(T);L<T;++L)A=e[L],h[L]=d[A.source.index]/(d[A.source.index]+d[A.target.index]);o=new Array(T),E(),c=new Array(T),N()}}function E(){if(f)for(var L=0,M=e.length;L<M;++L)o[L]=+r(e[L],L,e)}function N(){if(f)for(var L=0,M=e.length;L<M;++L)c[L]=+s(e[L],L,e)}return b.initialize=function(L,M){f=L,p=M,w()},b.links=function(L){return arguments.length?(e=L,w(),b):e},b.id=function(L){return arguments.length?(t=L,b):t},b.iterations=function(L){return arguments.length?(v=+L,b):v},b.strength=function(L){return arguments.length?(r=typeof L=="function"?L:$n(+L),E(),b):r},b.distance=function(L){return arguments.length?(s=typeof L=="function"?L:$n(+L),N(),b):s},b}const rpe=1664525,ipe=1013904223,g0=4294967296;function ope(){let e=1;return()=>(e=(rpe*e+ipe)%g0)/g0}function spe(e){return e.x}function lpe(e){return e.y}var ape=10,cpe=Math.PI*(3-Math.sqrt(5));function upe(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=Ca("tick","end"),v=ope();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var L,M=e.length,T;N===void 0&&(N=1);for(var P=0;P<N;++P)for(r+=(c-r)*s,d.forEach(function(A){A(r)}),L=0;L<M;++L)T=e[L],T.fx==null?T.x+=T.vx*=f:(T.x=T.fx,T.vx=0),T.fy==null?T.y+=T.vy*=f:(T.y=T.fy,T.vy=0);return t}function w(){for(var N=0,L=e.length,M;N<L;++N){if(M=e[N],M.index=N,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var T=ape*Math.sqrt(.5+N),P=N*cpe;M.x=T*Math.cos(P),M.y=T*Math.sin(P)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.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,L){return arguments.length>1?(L==null?d.delete(N):d.set(N,E(L)),t):d.get(N)},find:function(N,L,M){var T=0,P=e.length,A,B,G,U,Q;for(M==null?M=1/0:M*=M,T=0;T<P;++T)U=e[T],A=N-U.x,B=L-U.y,G=A*A+B*B,G<M&&(Q=U,M=G);return Q},on:function(N,L){return arguments.length>1?(p.on(N,L),t):p.on(N)}}}function fpe(){var e,t,r,o,s=$n(-30),c,f=1,d=1/0,h=.81;function p(w){var E,N=e.length,L=tp(e,spe,lpe).visitAfter(m);for(o=w,E=0;E<N;++E)t=e[E],L.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,L,M=0,T,P,A;if(w.length){for(T=P=A=0;A<4;++A)(N=w[A])&&(L=Math.abs(N.value))&&(E+=N.value,M+=L,T+=L*N.x,P+=L*N.y);w.x=T/M,w.y=P/M}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,L){if(!w.value)return!0;var M=w.x-t.x,T=w.y-t.y,P=L-E,A=M*M+T*T;if(P*P/h<A)return A<d&&(M===0&&(M=Vi(r),A+=M*M),T===0&&(T=Vi(r),A+=T*T),A<f&&(A=Math.sqrt(f*A)),t.vx+=M*w.value*o/A,t.vy+=T*w.value*o/A),!0;if(w.length||A>=d)return;(w.data!==t||w.next)&&(M===0&&(M=Vi(r),A+=M*M),T===0&&(T=Vi(r),A+=T*T),A<f&&(A=Math.sqrt(f*A)));do w.data!==t&&(P=c[w.data.index]*o/A,t.vx+=M*P,t.vy+=T*P);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:$n(+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 dpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(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:$n(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}function hpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(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:$n(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}var ppe=Object.defineProperty,gpe=(e,t,r)=>t in e?ppe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t,r)=>gpe(e,typeof t!="symbol"?t+"":t,r);function vpe(){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 v0(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]:v0(t[o])&&v0(r[o])?t[o]=Gi(t[o],r[o]):t[o]=r[o])}),t},{})}const u1={mergeArrays:!0};Gi.options=u1;Gi.withOptions=(e,...t)=>{Gi.options={mergeArrays:!0,...e};const r=Gi(...t);return Gi.options=u1,r};function mpe(){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 ype(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function f1(e){e.preventDefault(),e.stopPropagation()}function d1(e){return typeof e=="number"}function ro(e,t){return d1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function bpe(e){return`${e.source.id}-${e.target.id}`}function h1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function wpe(e){return`url(#${h1(e.color)})`}function xpe(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 p1={Arrow:e=>xpe(e)},Spe=(e,t,r)=>[t/2,r/2],_pe=(e,t,r)=>[m0(0,t),m0(0,r)];function m0(e,t){return Math.random()*(t-e)+e}const eh={Centered:Spe,Randomized:_pe};function kpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:ype(),nodeRadius:16,marker:p1.Arrow(4),modifiers:{},positionInitializer:eh.Centered,simulation:{alphas:vpe(),forces:mpe()},zoom:{initial:1,min:.1,max:2}}}function Cpe(e={}){return Gi.withOptions({mergeArrays:!1},kpe(),e)}function Tpe({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=>f1(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 Epe({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Ape({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=jfe().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),Un(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),Un(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 Mpe({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}:Lpe({links:c},r)}function Lpe(e,t){const r=[...Npe(e,t),...$pe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Npe(e,t){return g1(e,t,(r,o)=>r.target.id===o.id)}function $pe(e,t){return g1(e,t,(r,o)=>r.source.id===o.id)}function g1(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 th(e){return e.x??0}function nh(e){return e.y??0}function rp({source:e,target:t}){const r=new An(th(e),nh(e)),o=new An(th(t),nh(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 v1({center:e,node:t}){const r=new An(th(t),nh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new An(0,1))),{n:r,c:o}}function m1({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 Ope(e){const{start:t,end:r}=m1(e);return`M${t.x},${t.y}
45
+ L${r.x},${r.y}`}function Ppe(e){const{start:t,end:r}=m1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Rpe({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 zpe({center:e,config:t,node:r}){const{n:o,c:s}=v1({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 Dpe({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 Ipe({center:e,config:t,node:r}){const{n:o,c:s}=v1({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 Ls={line:{labelTransform:Ppe,path:Ope},arc:{labelTransform:Dpe,path:Rpe},reflexive:{labelTransform:Ipe,path:zpe}};function Fpe(e){return e.append("g").classed("links",!0).selectAll("path")}function Hpe({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>bpe(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>wpe(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 Bpe(e){Wpe(e),qpe(e)}function Wpe({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?Ls.reflexive.path({config:t,node:s.source,center:e}):y1(r,s.source,s.target)?Ls.arc.path({config:t,source:s.source,target:s.target}):Ls.line.path({config:t,source:s.source,target:s.target}))}function qpe({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?Ls.reflexive.labelTransform({config:e,node:s.source,center:t}):y1(r,s.source,s.target)?Ls.arc.labelTransform({config:e,source:s.source,target:s.target}):Ls.line.labelTransform({config:e,source:s.source,target:s.target}))}function y1(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 Upe(e){return e.append("defs").selectAll("marker")}function jpe({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Vpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>h1(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",Gpe(e.marker.path)),s})}function Vpe(e){return[...new Set(e.links.map(t=>t.color))]}function Gpe(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 Kpe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Xpe({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",L=>ro(e,L)).on("contextmenu",(L,M)=>{f1(L),o(M)}).on("pointerdown",(L,M)=>Zpe(L,M,s??o)).style("fill",L=>L.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",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(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 Ype=500;function Zpe(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>Ype){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Jpe(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Qpe({center:e,config:t,graph:r,onTick:o}){var s,c;const f=upe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",dpe(()=>e().x).strength(m)).force("y",hpe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",fpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",epe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",npe(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 ege({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Rhe().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 tge{constructor(t,r,o){if(Bt(this,"nodeTypes"),Bt(this,"_nodeTypeFilter"),Bt(this,"_includeUnlinked",!0),Bt(this,"_linkFilter",()=>!0),Bt(this,"_showLinkLabels",!0),Bt(this,"_showNodeLabels",!0),Bt(this,"filteredGraph"),Bt(this,"width",0),Bt(this,"height",0),Bt(this,"simulation"),Bt(this,"canvas"),Bt(this,"linkSelection"),Bt(this,"nodeSelection"),Bt(this,"markerSelection"),Bt(this,"zoom"),Bt(this,"drag"),Bt(this,"xOffset",0),Bt(this,"yOffset",0),Bt(this,"scale"),Bt(this,"focusedNode"),Bt(this,"resizeObserver"),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(rue(()=>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 An.of([this.width,this.height]).divide(2).subtract(An.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(d1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=jpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Hpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Xpe({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=Qpe({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=ege({config:this.config,canvasContainer:()=>Un(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Tpe({applyZoom:this.scale!==1,container:Un(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Fpe(this.canvas),this.nodeSelection=Kpe(this.canvas),this.markerSelection=Upe(this.canvas),this.drag=Ape({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(){Jpe(this.nodeSelection),Bpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Un(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(){Epe({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=Mpe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function y0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function nge(e){return{...e}}function b1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const rge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},ige={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},oge={flex:"~ gap-1","items-center":"","select-none":""},sge=["id","checked","onChange"],lge=["for"],age=ut({__name:"ViewModuleGraph",props:Vl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=ku(e,"modelValue"),{graph:o}=S_(t),s=je(),c=je(!1),f=je(),d=je();Eh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),Fs(()=>{v()}),Su(()=>{var w;(w=d.value)==null||w.shutdown()}),Et(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 tge(s.value,o.value,Cpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:N,newWidth:L})=>N===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:p1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?eh.Randomized:eh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(Cr)return;let E=0,N=0,L=0;w.on("pointerdown",(M,T)=>{T.type!=="external"&&(!T.x||!T.y||!m(M)||(E=T.x,N=T.y,L=Date.now()))}).on("pointerup",(M,T)=>{if(T.type==="external"||!T.x||!T.y||!m(M)||Date.now()-L>500)return;const P=T.x-E,A=T.y-N;P**2+A**2<100&&p(T.id)})}return(w,E)=>{var P;const N=bi,L=nue,M=Ow,T=Kr("tooltip");return oe(),ye("div",rge,[te("div",null,[te("div",ige,[te("div",oge,[gt(te("input",{id:"hide-node-modules","onUpdate:modelValue":E[0]||(E[0]=A=>r.value=A),type:"checkbox"},null,512),[[lb,r.value]]),E[4]||(E[4]=te("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))]),(oe(!0),ye(ct,null,hi((P=W(d))==null?void 0:P.nodeTypes.sort(),A=>{var B;return oe(),ye("div",{key:A,flex:"~ gap-1","items-center":"","select-none":""},[te("input",{id:`type-${A}`,type:"checkbox",checked:(B=W(d))==null?void 0:B.nodeTypeFilter.includes(A),onChange:G=>h(A,G.target.checked)},null,40,sge),te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${A}`,"border-b-2":"",style:en({"border-color":`var(--color-node-${A})`})},Be(A)+" Modules",13,lge)])}),128)),E[5]||(E[5]=te("div",{"flex-auto":""},null,-1)),te("div",null,[gt(Oe(N,{icon:"i-carbon-reset",onClick:E[1]||(E[1]=A=>v(!0))},null,512),[[T,"Reset",void 0,{bottom:!0}]])])])]),te("div",{ref_key:"el",ref:s},null,512),Oe(M,{modelValue:W(c),"onUpdate:modelValue":E[3]||(E[3]=A=>kt(c)?c.value=A:null),direction:"right"},{default:rt(()=>[W(f)?(oe(),nt(Xy,{key:0},{default:rt(()=>[Oe(L,{id:W(f),"project-name":w.projectName,onClose:E[2]||(E[2]=A=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])])}}}),cge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},uge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},fge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},dge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},hge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},pge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},w1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Kr("tooltip");return t.state==="pass"?(oe(),ye("div",cge)):t.failedSnapshot?gt((oe(),ye("div",uge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),ye("div",fge)):t.mode==="todo"?gt((oe(),ye("div",dge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((oe(),ye("div",hge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),ye("div",pge))}}});function gge(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 vge(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 mge(e){const t=e.map(o=>vge(o)),r=gge(t);return t.map(({raw:o,id:s})=>b1({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 yge(e,t){return b1({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 bge(e,t){if(!e)return y0({});const r=mge(e.externalized),o=e.inlined.map(d=>yge(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 nge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return y0({nodes:s,links:f})}const wge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},xge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Sge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},_ge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},kge={class:"flex text-lg"},Cge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Tge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Ege={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Age={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Mge=["flex-1"],Lge=ut({__name:"FileDetails",setup(e){const t=je({nodes:[],links:[]}),r=je(!1),o=je(!1),s=je(!1),c=je(void 0),f=je(!0),d=ke(()=>{const T=Jt.value;if(!(!T||!T.filepath))return{filepath:T.filepath,projectName:T.file.projectName||""}}),h=ke(()=>Jt.value&&Dh(Jt.value)),p=ke(()=>{var T,P;return!!((P=(T=Jt.value)==null?void 0:T.meta)!=null&&P.typecheck)});function v(){var P;const T=(P=Jt.value)==null?void 0:P.filepath;T&&fetch(`/__open-in-editor?file=${encodeURIComponent(T)}`)}function m(T){T==="graph"&&(o.value=!0),Yn.value=T}const b=ke(()=>{var T;return((T=Nw.value)==null?void 0:T.reduce((P,{size:A})=>P+A,0))??0});function w(T){r.value=T}const E=/[/\\]node_modules[/\\]/;async function N(T=!1){var P;if(!(s.value||((P=d.value)==null?void 0:P.filepath)===c.value&&!T)){s.value=!0,await Pt();try{const A=d.value;if(!A){s.value=!1;return}if(T||!c.value||A.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let B=await mt.rpc.getModuleGraph(A.projectName,A.filepath,!!Po);f.value&&(Cr&&(B=typeof window.structuredClone<"u"?window.structuredClone(B):WT(B)),B.inlined=B.inlined.filter(G=>!E.test(G)),B.externalized=B.externalized.filter(G=>!E.test(G))),t.value=bge(B,A.filepath),c.value=A.filepath}m("graph")}finally{await new Promise(A=>setTimeout(A,100)),s.value=!1}}}Hh(()=>[d.value,Yn.value,f.value],([,T,P],A)=>{T==="graph"&&N(A&&P!==A[2])},{debounce:100,immediate:!0});const L=ke(()=>{var T;return nw((T=Jt.value)==null?void 0:T.file.projectName)}),M=ke(()=>{switch(L.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,P)=>{var ee,R,$,O;const A=w1,B=bi,G=age,U=Kce,Q=Fce,J=Oce,Y=Kr("tooltip");return W(Jt)?(oe(),ye("div",wge,[te("div",null,[te("div",xge,[Oe(A,{state:(ee=W(Jt).result)==null?void 0:ee.state,mode:W(Jt).mode,"failed-snapshot":W(h)},null,8,["state","mode","failed-snapshot"]),W(p)?gt((oe(),ye("div",Sge,null,512)),[[Y,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),(R=W(Jt))!=null&&R.file.projectName?(oe(),ye("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:en({backgroundColor:W(L),color:W(M)})},Be(W(Jt).file.projectName),5)):Ke("",!0),te("div",_ge,Be(($=W(Jt))==null?void 0:$.name),1),te("div",kge,[W(Cr)?Ke("",!0):gt((oe(),nt(B,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=W(Jt))!=null&&O.filepath),onClick:v},null,8,["disabled"])),[[Y,"Open in editor",void 0,{bottom:!0}]])])]),te("div",Cge,[te("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==null}]),"data-testid":"btn-report",onClick:P[0]||(P[0]=_=>m(null))},P[5]||(P[5]=[te("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),te("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="graph"}]),onClick:P[1]||(P[1]=_=>m("graph"))},[W(s)?(oe(),ye("span",Tge)):(oe(),ye("span",Ege)),P[6]||(P[6]=pt(" Module Graph "))],2),te("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="editor"}]),onClick:P[2]||(P[2]=_=>m("editor"))},[P[7]||(P[7]=te("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+Be(W(r)?"* ":"")+"Code ",1)],2),te("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="console",op20:W(Yn)!=="console"&&W(b)===0}]),onClick:P[3]||(P[3]=_=>m("console"))},[P[8]||(P[8]=te("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+Be(W(b))+") ",1)],2)])]),te("div",Age,[W(o)?(oe(),ye("div",{key:0,"flex-1":W(Yn)==="graph"&&""},[gt(Oe(G,{modelValue:W(f),"onUpdate:modelValue":P[4]||(P[4]=_=>kt(f)?f.value=_:null),graph:W(t),"data-testid":"graph","project-name":W(Jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ji,W(Yn)==="graph"&&!W(s)]])],8,Mge)):Ke("",!0),W(Yn)==="editor"?(oe(),nt(U,{key:W(Jt).id,file:W(Jt),"data-testid":"editor",onDraft:w},null,8,["file"])):W(Yn)==="console"?(oe(),nt(Q,{key:2,file:W(Jt),"data-testid":"console"},null,8,["file"])):W(Yn)?Ke("",!0):(oe(),nt(J,{key:3,file:W(Jt),"data-testid":"report"},null,8,["file"]))])])):Ke("",!0)}}}),Nge={h:"full",flex:"~ col"},$ge={"flex-auto":"","py-1":"","bg-white":""},Oge=["src"],Pge=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),ye("div",Nge,[r[0]||(r[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon:folder-details-reference"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),te("div",$ge,[te("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Oge)])]))}}),Rge={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},zge={"font-bold":""},Dge={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Ige=["font-bold"],Fge={text:"red500/70"},Hge={key:1,text:"sm","mb-2":""},Bge={"font-bold":""},Wge={key:2,text:"sm","mb-2":""},qge={"font-bold":""},Uge={key:3,text:"sm","font-thin":""},jge=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),ye(ct,null,[te("h4",Rge,[te("span",zge,[pt(Be(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),ye(ct,{key:0},[pt(":")],64)):Ke("",!0)]),pt(" "+Be(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),ye("p",Dge,[(oe(!0),ye(ct,null,hi(t.error.stacks,(s,c)=>(oe(),ye("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+Be(s.method)+" "+Be(s.file)+":",1),te("span",Fge,Be(s.line)+":"+Be(s.column),1),r[0]||(r[0]=te("br",null,null,-1))],8,Ige))),128))])):Ke("",!0),t.error.VITEST_TEST_PATH?(oe(),ye("p",Hge,[r[1]||(r[1]=pt(" This error originated in ")),te("span",Bge,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. "))])):Ke("",!0),t.error.VITEST_TEST_NAME?(oe(),ye("p",Wge,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),te("span",qge,Be(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=te("br",null,null,-1)),r[6]||(r[6]=te("ul",null,[te("li",null," The error was thrown, while Vitest was running this test. "),te("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ke("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),ye("p",Uge,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:"),te("br",null,null,-1),te("ul",null,[te("li",null," Cancel timeouts using clearTimeout and clearInterval. "),te("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ke("",!0)],64)}}}),Vge={"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:""},Gge={class:"number","data-testid":"num-files"},Kge={class:"number"},Xge={class:"number","text-red5":""},Yge={class:"number","text-red5":""},Zge={class:"number","text-red5":""},Jge={class:"number","data-testid":"run-time"},Qge={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},eve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},tve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},nve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=jge;return oe(),ye(ct,null,[te("div",Vge,[r[8]||(r[8]=te("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=te("div",null,"Files",-1)),te("div",Gge,Be(W(Ee).summary.files),1),W(Ee).summary.filesSuccess?(oe(),ye(ct,{key:0},[r[0]||(r[0]=te("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=te("div",null,"Pass",-1)),te("div",Kge,Be(W(Ee).summary.filesSuccess),1)],64)):Ke("",!0),W(Ee).summary.filesFailed?(oe(),ye(ct,{key:1},[r[2]||(r[2]=te("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=te("div",null," Fail ",-1)),te("div",Xge,Be(W(Ee).summary.filesFailed),1)],64)):Ke("",!0),W(Ee).summary.filesSnapshotFailed?(oe(),ye(ct,{key:2},[r[4]||(r[4]=te("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=te("div",null," Snapshot Fail ",-1)),te("div",Yge,Be(W(Ee).summary.filesSnapshotFailed),1)],64)):Ke("",!0),W(Wi).length?(oe(),ye(ct,{key:3},[r[6]||(r[6]=te("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=te("div",null," Errors ",-1)),te("div",Zge,Be(W(Wi).length),1)],64)):Ke("",!0),r[10]||(r[10]=te("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=te("div",null,"Time",-1)),te("div",Jge,Be(W(Ee).summary.time),1)]),W(Wi).length?(oe(),ye("div",Qge,[r[15]||(r[15]=te("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),te("p",eve,[pt(" Vitest caught "+Be(W(Wi).length)+" error"+Be(W(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=te("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. "))]),te("details",tve,[r[14]||(r[14]=te("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),ye(ct,null,hi(W(Wi),(s,c)=>(oe(),nt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ke("",!0)],64)}}}),rve=yi(nve,[["__scopeId","data-v-0178ddee"]]),ive={"p-2":"","text-center":"",flex:""},ove={"text-4xl":"","min-w-2em":""},sve={"text-md":""},lve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),ye("div",ive,[te("div",null,[te("div",ove,[mn(t.$slots,"body")]),te("div",sve,[mn(t.$slots,"header")])])]))}}),ave={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},cve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=lve;return oe(),ye("div",ave,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSuccess),1)]),_:1}),Oe(o,{class:it({"text-red5":W(Ee).summary.testsFailed,op50:!W(Ee).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsFailed),1)]),_:1},8,["class"]),W(Ee).summary.testsSkipped?(oe(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSkipped),1)]),_:1})):Ke("",!0),W(Ee).summary.testsTodo?(oe(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsTodo),1)]),_:1})):Ke("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(Be(W(Ee).summary.totalTests),1)]),_:1})])}}}),uve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},fve={key:0,class:"text-gray-5"},dve={"aria-labelledby":"tests",m:"y-4 x-2"},hve=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=cve,s=rve;return oe(),ye("div",uve,[W(Ee).summary.files===0&&W(gs)?(oe(),ye("div",fve," No tests found ")):Ke("",!0),te("section",dve,[Oe(o)]),Oe(s)])}}}),pve={},gve={h:"full",flex:"~ col"},vve={class:"scrolls","flex-auto":"","py-1":""};function mve(e,t){const r=hve;return oe(),ye("div",gve,[t[0]||(t[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon-dashboard"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),te("div",vve,[Oe(r)])])}const yve=yi(pve,[["render",mve]]),bve=["open"],wve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=je(!0);return(r,o)=>(oe(),ye("div",{open:W(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[te("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]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),mn(r.$slots,"summary",{open:W(t)}),o[2]||(o[2]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),mn(r.$slots,"default")],40,bve))}}),xve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Sve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),ye("button",xve,[te("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},_ve=["aria-label","data-current"],kve={key:1,"w-4":""},Cve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Tve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Eve={"text-sm":"",truncate:"","font-light":""},Ave=["text","innerHTML"],Mve={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Lve={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Nve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},$ve={key:1},Ove=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=ke(()=>mt.state.idMap.get(e.taskId)),r=ke(()=>{if(Cr)return!1;const L=t.value;return L&&Dh(L)});function o(){var L;if(!e.expandable){(L=e.onItemClick)==null||L.call(e,t.value);return}e.opened?Ee.collapseNode(e.taskId):Ee.expandNode(e.taskId)}async function s(L){var M;(M=e.onItemClick)==null||M.call(e,L),ms.value&&(nu.value=!0,await Pt()),e.type==="file"?await Vh([L.file]):await Yae(L)}function c(L){return mt.rpc.updateSnapshot(L.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(L,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const L=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${L.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>ew(e.name)),v=ke(()=>{const L=vE.value,M=p.value;return L?M.replace(L,T=>`<span class="highlight">${T}</span>`):M}),m=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>m.value?"color-red5 dark:color-#f43f5e":null);function E(){var M;const L=t.value;e.type==="file"?(M=e.onItemClick)==null||M.call(e,L):Gce(L)}const N=ke(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(L,M)=>{const T=w1,P=Sve,A=bi,B=Kr("tooltip");return W(t)?(oe(),ye("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(W(d)),"aria-label":L.name,"data-current":L.current,onClick:M[2]||(M[2]=G=>o())},[L.indent>0?(oe(!0),ye(ct,{key:0},hi(W(f),G=>(oe(),ye("div",{key:G,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ke("",!0),L.type==="file"||L.type==="suite"?(oe(),ye("div",kve,[te("div",{class:it(L.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ke("",!0),Oe(T,{state:L.state,mode:W(t).mode,"failed-snapshot":W(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),te("div",Cve,[L.type==="file"&&L.typecheck?gt((oe(),ye("div",Tve,null,512)),[[B,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),te("span",Eve,[L.type==="file"&&L.projectName?(oe(),ye("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:en({backgroundColor:L.projectNameColor,color:W(N)})},Be(L.projectName),5)):Ke("",!0),te("span",{text:L.state==="fail"?"red-500":"",innerHTML:W(v)},null,8,Ave)]),typeof L.duration=="number"?(oe(),ye("span",Mve,Be(L.duration>0?L.duration:"< 1")+"ms ",1)):Ke("",!0)]),te("div",Lve,[!W(Cr)&&W(r)?gt((oe(),nt(P,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=Ac(G=>c(W(t)),["prevent","stop"]))},null,512)),[[B,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),Oe(W(Lb),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",W(w)])},{popper:rt(()=>[W(m)?(oe(),ye("div",Nve,[M[5]||(M[5]=te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),te("div",null,[pt(Be(W(b))+": this feature is not available, you have disabled ",1),M[3]||(M[3]=te("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=pt(" in your configuration file."))]),M[6]||(M[6]=te("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))])):(oe(),ye("div",$ve,Be(W(b)),1))]),default:rt(()=>[Oe(A,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Ac(E,["prevent","stop"])})]),_:1},8,["class"]),W(Cr)?Ke("",!0):gt((oe(),nt(A,{key:1,"data-testid":"btn-run-test",title:W(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=Ac(G=>s(W(t)),["prevent","stop"]))},null,8,["title"])),[[B,W(h),void 0,{bottom:!0}]])])],12,_ve)):Ke("",!0)}}}),Pve=yi(Ove,[["__scopeId","data-v-f7232aed"]]),Rve={"flex-1":"","ms-2":"","select-none":""},zve=ut({__name:"FilterStatus",props:Vl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue");return(r,o)=>(oe(),ye("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]=Ac(s=>t.value=!t.value,["prevent"]))}),[te("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(te("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[lb,t.value]]),te("span",Rve,Be(r.label),1)],16))}});function Dve(){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 Rc;function rh(){rh.init||(rh.init=!0,Rc=Dve()!==-1)}var Bu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rh(),Pt(()=>{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",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||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&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ive=by();my("data-v-b329ee4c");const Fve={class:"resize-observer",tabindex:"-1"};yy();const Hve=Ive((e,t,r,o,s,c)=>(oe(),nt("div",Fve)));Bu.render=Hve;Bu.__scopeId="data-v-b329ee4c";Bu.__file="src/components/ResizeObserver.vue";function zc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zc=function(t){return typeof t}:zc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Bve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wve(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 qve(e,t,r){return t&&Wve(e.prototype,t),e}function b0(e){return Uve(e)||jve(e)||Vve(e)||Gve()}function Uve(e){if(Array.isArray(e))return ih(e)}function jve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Vve(e,t){if(e){if(typeof e=="string")return ih(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 ih(e,t)}}function ih(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 Gve(){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 Kve(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Xve(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(b0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(b0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function x1(e,t){if(e===t)return!0;if(zc(e)==="object"){for(var r in e)if(!x1(e[r],t[r]))return!1;return!0}return!1}var Yve=function(){function e(t,r,o){Bve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return qve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Kve(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=Xve(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),Pt(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 S1(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 Yve(e,o,r);e._vue_visibilityState=s}}function Zve(e,t,r){var o=t.value,s=t.oldValue;if(!x1(o,s)){var c=e._vue_visibilityState;if(!o){_1(e);return}c?c.createObserver(o,r):S1(e,{value:o},r)}}function _1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Jve={beforeMount:S1,updated:Zve,unmounted:_1},Qve={itemsLimit:1e3},eme=/(auto|scroll)/;function k1(e,t){return e.parentNode===null?t:k1(e.parentNode,t.concat([e]))}var fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},tme=function(t){return fd(t,"overflow")+fd(t,"overflow-y")+fd(t,"overflow-x")},nme=function(t){return eme.test(tme(t))};function w0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=k1(e.parentNode,[]),r=0;r<t.length;r+=1)if(nme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function oh(e){"@babel/helpers - typeof";return oh=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},oh(e)}var rme={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 ime(){return this.items.length&&oh(this.items[0])!=="object"}var sh=!1;if(typeof window<"u"){sh=!1;try{var ome=Object.defineProperty({},"passive",{get:function(){sh=!0}});window.addEventListener("test",null,ome)}catch{}}let sme=0;var ip={name:"RecycleScroller",components:{ResizeObserver:Bu},directives:{ObserveVisibility:Jve},props:{...rme,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:ime,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=xh({id:sme++,index:t,used:!0,key:o,type:s}),f=yh({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,L,M,T,P;if(!p)N=L=T=P=M=0;else if(this.$_prerender)N=T=0,L=P=Math.min(this.prerender,h.length),M=null;else{const Y=this.getScroll();if(t){let $=Y.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),r===null&&$<c||$<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=Y.start;const ee=this.buffer;Y.start-=ee,Y.end+=ee;let R=0;if(this.$refs.before&&(R=this.$refs.before.scrollHeight,Y.start-=R),this.$refs.after){const $=this.$refs.after.scrollHeight;Y.end+=$}if(r===null){let $,O=0,_=p-1,D=~~(p/2),j;do j=D,$=v[D].accumulator,$<Y.start?O=D:D<p-1&&v[D+1].accumulator>Y.start&&(_=D),D=~~((O+_)/2);while(D!==j);for(D<0&&(D=0),N=D,M=v[p-1].accumulator,L=D;L<p&&v[L].accumulator<Y.end;L++);for(L===-1?L=h.length-1:(L++,L>p&&(L=p)),T=N;T<p&&R+v[T].accumulator<Y.start;T++);for(P=T;P<p&&R+v[P].accumulator<Y.end;P++);}else{N=~~(Y.start/r*o);const $=N%o;N-=$,L=Math.ceil(Y.end/r*o),T=Math.max(0,Math.floor((Y.start-R)/r*o)),P=Math.floor((Y.end-R)/r*o),N<0&&(N=0),L>p&&(L=p),T<0&&(T=0),P>p&&(P=p),M=Math.ceil(p/o)*r}}L-N>Qve.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let A;const B=N<=this.$_endIndex&&L>=this.$_startIndex;if(B)for(let Y=0,ee=w.length;Y<ee;Y++)A=w[Y],A.nr.used&&(e&&(A.nr.index=E[A.item[d]]),(A.nr.index==null||A.nr.index<N||A.nr.index>=L)&&this.unuseView(A));const G=B?null:new Map;let U,Q,J;for(let Y=N;Y<L;Y++){U=h[Y];const ee=d?U[d]:U;if(ee==null)throw new Error(`Key is ${ee} on item (keyField is '${d}')`);if(A=m.get(ee),!r&&!v[Y].size){A&&this.unuseView(A);continue}Q=U[f];let R=b.get(Q),$=!1;if(!A)B?R&&R.length?A=R.pop():A=this.addView(w,Y,U,ee,Q):(J=G.get(Q)||0,(!R||J>=R.length)&&(A=this.addView(w,Y,U,ee,Q),this.unuseView(A,!0),R=b.get(Q)),A=R[J],G.set(Q,J+1)),m.delete(A.nr.key),A.nr.used=!0,A.nr.index=Y,A.nr.key=ee,A.nr.type=Q,m.set(ee,A),$=!0;else if(!A.nr.used&&(A.nr.used=!0,$=!0,R)){const O=R.indexOf(A);O!==-1&&R.splice(O,1)}A.item=U,$&&(Y===h.length-1&&this.$emit("scroll-end"),Y===0&&this.$emit("scroll-start")),r===null?(A.position=v[Y-1].accumulator,A.offset=0):(A.position=Math.floor(Y/o)*r,A.offset=Y%o*s)}return this.$_startIndex=N,this.$_endIndex=L,this.emitUpdate&&this.$emit("update",N,L,T,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=w0(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,sh?{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=w0(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 lme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},ame={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function cme(e,t,r,o,s,c){const f=Oo("ResizeObserver"),d=Kr("observe-visibility");return gt((oe(),ye("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?(oe(),ye("div",lme,[mn(e.$slots,"before")],512)):Ke("v-if",!0),(oe(),nt(hv(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(()=>[(oe(!0),ye(ct,null,hi(s.pool,h=>(oe(),nt(hv(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}]]},G_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[mn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),mn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),ye("div",ame,[mn(e.$slots,"after")],512)):Ke("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}ip.render=cme;ip.__file="src/components/RecycleScroller.vue";function ume(e){const t=ke(()=>Hd.value?!1:!Je.onlyTests),r=ke(()=>Wn.value===""),o=je(Wn.value);Hh(()=>Wn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Wn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Je.failed=!1,Je.success=!1,Je.skipped=!1,Je.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Os.value&&(cn.value.search=(h==null?void 0:h.trim())??"",cn.value.failed=p,cn.value.success=v,cn.value.skipped=m,cn.value.onlyTests=b)}return Et(()=>[o.value,Je.failed,Je.success,Je.skipped,Je.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ee.filterNodes()},{flush:"post"}),Et(()=>Mr.value.length,h=>{h&&(cn.value.expandAll=void 0)},{flush:"post"}),{initialized:Os,filter:Je,search:Wn,disableFilter:t,isFiltered:tw,isFilteredByStatus:Hd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Pu,testsTotal:mE,uiEntries:Gn}}const fme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},dme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},hme=["op"],pme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},gme={"text-red5":""},vme={"text-yellow5":""},mme={"text-green5":""},yme={class:"text-purple5:50"},bme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},wme=["disabled"],xme=["disabled"],Sme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},_me=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>Du.value.includeTaskLocation),s=je(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:N,testsTotal:L,uiEntries:M}=ume(s),T=je("grid-cols-2"),P=je("grid-col-span-2"),A=je(),{width:B}=Bh();return Et(()=>B.value*(vn.navigation/100),G=>{G<420?(T.value="grid-cols-2",P.value="grid-col-span-2"):(T.value="grid-cols-4",P.value="grid-col-span-4")}),(G,U)=>{const Q=bi,J=zve,Y=Pve,ee=wve,R=Kr("tooltip");return oe(),ye("div",{ref_key:"testExplorerRef",ref:A,h:"full",flex:"~ col"},[te("div",null,[te("div",fme,[mn(G.$slots,"header",{filteredFiles:W(p)||W(v)?W(N):void 0})]),te("div",dme,[U[13]||(U[13]=te("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(te("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=$=>kt(d)?d.value=$:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Nd($=>W(w)(!1),["esc"])),U[2]||(U[2]=Nd($=>r("run",W(p)||W(v)?W(N):void 0),["enter"]))]},null,40,hme),[[dC,W(d)]]),gt(Oe(Q,{disabled:W(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=$=>W(w)(!0))},null,8,["disabled"]),[[R,"Clear search",void 0,{bottom:!0}]])]),te("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(W(T))},[te("div",{class:it(W(P)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=te("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=te("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Oe(Q,{disabled:W(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=$=>W(E)(!1))},null,8,["disabled"]),[[R,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(J,{modelValue:W(f).failed,"onUpdate:modelValue":U[5]||(U[5]=$=>W(f).failed=$),label:"Fail"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).success,"onUpdate:modelValue":U[6]||(U[6]=$=>W(f).success=$),label:"Pass"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=$=>W(f).skipped=$),label:"Skip"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=$=>W(f).onlyTests=$),label:"Only Tests"},null,8,["modelValue"])],2)]),te("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...$)=>W(om)&&W(om)(...$))},[Oe(ee,null,V_({default:rt(()=>[(W(p)||W(v))&&W(M).length===0?(oe(),ye(ct,{key:0},[W(c)?(oe(),ye("div",bme,[U[18]||(U[18]=te("div",{op30:""}," No matched test ",-1)),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(m)?null:"hover:op100"),disabled:W(m),onClickPassive:U[9]||(U[9]=$=>W(w)(!0))}," Clear Search ",42,wme),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(h)?null:"hover:op100"),disabled:W(h),onClickPassive:U[10]||(U[10]=$=>W(E)(!0))}," Clear Filter ",42,xme),te("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...$)=>W(b)&&W(b)(...$))}," Clear All ",32)])):(oe(),ye("div",Sme,U[19]||(U[19]=[te("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),te("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),nt(W(ip),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(M),buffer:100},{default:rt(({item:$})=>[Oe(Y,{class:it(["h-28px m-0 p-0",W(eo)===$.id?"bg-active":""]),"task-id":$.id,expandable:$.expandable,type:$.type,current:W(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":!W(o),"on-item-click":G.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},[W(c)?{name:"summary",fn:rt(()=>[te("div",pme,[te("span",gme," FAIL ("+Be(W(L).failed)+") ",1),U[16]||(U[16]=te("span",null,"/",-1)),te("span",vme," RUNNING ("+Be(W(L).running)+") ",1),te("span",mme," PASS ("+Be(W(L).success)+") ",1),U[17]||(U[17]=te("span",null,"/",-1)),te("span",yme," SKIP ("+Be(W(f).onlyTests?W(L).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),kme=""+new URL("../favicon.svg",import.meta.url).href,Cme={class:"flex text-lg"},Tme=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=ke(()=>_a.value?"light":"dark");async function o(f){ms.value&&(nu.value=!0,await Pt(),to.value&&(ru(!0),await Pt())),f!=null&&f.length?await Vh(f):await Kae()}function s(){Ee.collapseAllNodes()}function c(){Ee.expandAllNodes()}return(f,d)=>{const h=bi,p=_me,v=Kr("tooltip");return oe(),nt(p,{border:"r base","on-item-click":W(VE),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=te("img",{"w-6":"","h-6":"",src:kme,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=te("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),te("div",Cme,[gt(Oe(h,{title:"Collapse tests",disabled:!W(Os),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[ji,!W(vm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Oe(h,{disabled:!W(Os),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[ji,W(vm)],[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=>W(ru)(!0))},null,512),[[ji,W(qd)&&!W(ms)||!W(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),W(qd)&&!W(ms)?(oe(),nt(W(Lb),{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]=[te("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),te("div",null,"Coverage enabled but missing html reporter."),te("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=te("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ke("",!0),W(ms)?gt((oe(),nt(h,{key:1,disabled:W(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>W(GE)())},null,8,["disabled"])),[[ji,!W(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ke("",!0),W(Ee).summary.failedSnapshot&&!W(Cr)?gt((oe(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!W(Ee).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>W(Ee).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),W(Cr)?Ke("",!0):gt((oe(),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=>W(wce)())},null,512),[[v,`Toggle to ${W(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Eme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Ame=ut({__name:"ProgressBar",setup(e){const{width:t}=Bh(),r=ke(()=>[Ee.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!gs.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesSuccess/d:0}),s=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesFailed/d:0}),c=ke(()=>Ee.summary.files-Ee.summary.filesFailed-Ee.summary.filesSuccess),f=ke(()=>{const d=Ee.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),ye("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(W(r))},[te("div",Eme,[te("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(W(r)),style:en(`width: ${W(s)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(s)}px; width: ${W(o)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(o)+W(s)}px; width: ${W(f)}px;`)},"   ",6)])],2))}}),Mme=yi(Ame,[["__scopeId","data-v-16879415"]]),x0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ya("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Lme=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},Nme={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function $me(e,t,r,o,s,c){return oe(),ye("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:en(e.style)},[mn(e.$slots,"default")],4)}const Sc=Lme(Nme,[["render",$me]]),Ome={"h-screen":"","w-screen":"",overflow:"hidden"},Pme=ut({__name:"index",setup(e){const t=jE(),r=dc(m=>{p(),h(m)},0),o=dc(m=>{m.forEach((b,w)=>{wr.value[w]=b.size}),d(m)},0),s=dc(m=>{m.forEach((b,w)=>{Lo.value[w]=b.size}),h(m),v()},0),c=dc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);wr.value[0]=100*b/m,wr.value[1]=100-wr.value[0],d([{size:wr.value[0]},{size:wr.value[1]}])}function d(m){vn.navigation=m[0].size,vn.details.size=m[1].size}function h(m){vn.details.browser=m[0].size,vn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=Mme,E=Tme,N=yve,L=Pge,M=Lge,T=uce,P=Qae;return oe(),ye(ct,null,[Oe(w),te("div",Ome,[Oe(W(x0),{class:"pt-4px",onResized:W(o),onResize:W(c),onReady:f},{default:rt(()=>[Oe(W(Sc),{size:W(wr)[0]},{default:rt(()=>[Oe(E)]),_:1},8,["size"]),Oe(W(Sc),{size:W(wr)[1]},{default:rt(()=>[W(Po)?(oe(),nt(W(x0),{id:"details-splitpanes",key:"browser-detail",onResize:W(r),onResized:W(s)},{default:rt(()=>[Oe(W(Sc),{size:W(Lo)[0],"min-size":"10"},{default:rt(()=>[b[0]||(qc(-1),(b[0]=Oe(T)).cacheIndex=0,qc(1),b[0])]),_:1},8,["size"]),Oe(W(Sc),{size:W(Lo)[1]},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),nt(jk,{key:"ui-detail"},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(P)],64)}}}),Rme=[{name:"index",path:"/",component:Pme,props:!0}];/*!
49
49
  * vue-router v4.5.0
50
50
  * (c) 2024 Eduardo San Martin Morote
51
51
  * @license MIT
52
- */const ps=typeof document<"u";function k1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rme(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&k1(e.default)}const bt=Object.assign;function dd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Lr(s)?s.map(e):e(s)}return r}const Hl=()=>{},Lr=Array.isArray,C1=/#/g,zme=/&/g,Dme=/\//g,Ime=/=/g,Fme=/\?/g,T1=/\+/g,Hme=/%5B/g,Bme=/%5D/g,E1=/%5E/g,Wme=/%60/g,A1=/%7B/g,qme=/%7C/g,M1=/%7D/g,Ume=/%20/g;function op(e){return encodeURI(""+e).replace(qme,"|").replace(Hme,"[").replace(Bme,"]")}function jme(e){return op(e).replace(A1,"{").replace(M1,"}").replace(E1,"^")}function lh(e){return op(e).replace(T1,"%2B").replace(Ume,"+").replace(C1,"%23").replace(zme,"%26").replace(Wme,"`").replace(A1,"{").replace(M1,"}").replace(E1,"^")}function Vme(e){return lh(e).replace(Ime,"%3D")}function Gme(e){return op(e).replace(C1,"%23").replace(Fme,"%3F")}function Kme(e){return e==null?"":Gme(e).replace(Dme,"%2F")}function ua(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Xme=/\/$/,Yme=e=>e.replace(Xme,"");function hd(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=e0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ua(f)}}function Zme(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function x0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Jme(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Ds(t.matched[o],r.matched[s])&&L1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ds(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Qme(e[r],t[r]))return!1;return!0}function Qme(e,t){return Lr(e)?S0(e,t):Lr(t)?S0(t,e):e===t}function S0(e,t){return Lr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function e0e(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 zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var fa;(function(e){e.pop="pop",e.push="push"})(fa||(fa={}));var Bl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bl||(Bl={}));function t0e(e){if(!e)if(ps){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Yme(e)}const n0e=/^[^#]+#/;function r0e(e,t){return e.replace(n0e,"#")+t}function i0e(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 Wu=()=>({left:window.scrollX,top:window.scrollY});function o0e(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=i0e(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 _0(e,t){return(history.state?history.state.position-t:-1)+e}const ah=new Map;function s0e(e,t){ah.set(e,t)}function l0e(e){const t=ah.get(e);return ah.delete(e),t}let a0e=()=>location.protocol+"//"+location.host;function N1(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),x0(h,"")}return x0(r,e)+o+s}function c0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=N1(e,location),A=r.value,N=t.value;let L=0;if(b){if(r.value=w,t.value=b,f&&f===A){f=null;return}L=N?b.position-N.position:0}else o(w);s.forEach(M=>{M(r.value,A,{delta:L,type:fa.pop,direction:L?L>0?Bl.forward:Bl.back:Bl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const A=s.indexOf(b);A>-1&&s.splice(A,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Wu()}),"")}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 k0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Wu():null}}function u0e(e){const{history:t,location:r}=window,o={value:N1(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:a0e()+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,k0(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:Wu()});c(v.current,v,!0);const m=bt({},k0(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 f0e(e){e=t0e(e);const t=u0e(e),r=c0e(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:r0e.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 d0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),f0e(e)}function h0e(e){return typeof e=="string"||e&&typeof e=="object"}function $1(e){return typeof e=="string"||typeof e=="symbol"}const O1=Symbol("");var C0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(C0||(C0={}));function Is(e,t){return bt(new Error,{type:e,[O1]:!0},t)}function si(e,t){return e instanceof Error&&O1 in e&&(t==null||!!(e.type&t))}const T0="[^/]+?",p0e={sensitive:!1,strict:!1,start:!0,end:!0},g0e=/[.+*?^${}()[\]/\\]/g;function v0e(e,t){const r=bt({},p0e,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(g0e,"\\$&"),w+=40;else if(b.type===1){const{value:A,repeatable:N,optional:L,regexp:M}=b;c.push({name:A,repeatable:N,optional:L});const T=M||T0;if(T!==T0){w+=10;try{new RegExp(`(${T})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${A}" (${T}): `+E.message)}}let P=N?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;m||(P=L&&p.length<2?`(?:/${P})`:"/"+P),L&&(P+="?"),s+=P,w+=20,L&&(w+=-8),N&&(w+=-20),T===".*"&&(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]||"",A=c[b-1];m[A.name]=w&&A.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:A,repeatable:N,optional:L}=w,M=A in p?p[A]:"";if(Lr(M)&&!N)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const T=Lr(M)?M.join("/"):M;if(!T)if(L)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${A}"`);v+=T}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function m0e(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 P1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=m0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(E0(o))return 1;if(E0(s))return-1}return s.length-o.length}function E0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const y0e={type:0,value:""},b0e=/[a-zA-Z0-9_]/;function w0e(e){if(!e)return[[]];if(e==="/")return[[y0e]];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:b0e.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 x0e(e,t,r){const o=v0e(w0e(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 S0e(e,t){const r=[],o=new Map;t=N0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const A=!w,N=M0(m);N.aliasOf=w&&w.record;const L=N0(t,m),M=[N];if("alias"in m){const E=typeof m.alias=="string"?[m.alias]:m.alias;for(const B of E)M.push(M0(bt({},N,{components:w?w.record.components:N.components,path:B,aliasOf:w?w.record:N})))}let T,P;for(const E of M){const{path:B}=E;if(b&&B[0]!=="/"){const G=b.record.path,U=G[G.length-1]==="/"?"":"/";E.path=b.record.path+(B&&U+B)}if(T=x0e(E,b,L),w?w.alias.push(T):(P=P||T,P!==T&&P.alias.push(T),A&&m.name&&!L0(T)&&f(m.name)),R1(T)&&h(T),N.children){const G=N.children;for(let U=0;U<G.length;U++)c(G[U],T,w&&w.children[U])}w=w||T}return P?()=>{f(P)}:Hl}function f(m){if($1(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=C0e(m,r);r.splice(b,0,m),m.record.name&&!L0(m)&&o.set(m.record.name,m)}function p(m,b){let w,A={},N,L;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Is(1,{location:m});L=w.record.name,A=bt(A0(b.params,w.keys.filter(P=>!P.optional).concat(w.parent?w.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),m.params&&A0(m.params,w.keys.map(P=>P.name))),N=w.stringify(A)}else if(m.path!=null)N=m.path,w=r.find(P=>P.re.test(N)),w&&(A=w.parse(N),L=w.record.name);else{if(w=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!w)throw Is(1,{location:m,currentLocation:b});L=w.record.name,A=bt({},b.params,m.params),N=w.stringify(A)}const M=[];let T=w;for(;T;)M.unshift(T.record),T=T.parent;return{name:L,path:N,params:A,matched:M,meta:k0e(M)}}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 A0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function M0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_0e(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 _0e(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 L0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function k0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function N0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function C0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;P1(e,t[c])<0?o=c:r=c+1}const s=T0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function T0e(e){let t=e;for(;t=t.parent;)if(R1(t)&&P1(e,t)===0)return t}function R1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function E0e(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(T1," "),f=c.indexOf("="),d=ua(f<0?c:c.slice(0,f)),h=f<0?null:ua(c.slice(f+1));if(d in t){let p=t[d];Lr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function $0(e){let t="";for(let r in e){const o=e[r];if(r=Vme(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Lr(o)?o.map(c=>c&&lh(c)):[o&&lh(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function A0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Lr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const M0e=Symbol(""),O0=Symbol(""),sp=Symbol(""),z1=Symbol(""),ch=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(Is(4,{from:r,to:t})):b instanceof Error?h(b):h0e(b)?h(Is(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 pd(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(k1(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=Rme(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 P0(e){const t=qr(sp),r=qr(z1),o=ke(()=>{const h=W(e.to);return t.resolve(h)}),s=ke(()=>{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(Ds.bind(null,v));if(b>-1)return b;const w=R0(h[p-2]);return p>1&&R0(v)===w&&m[m.length-1].path!==w?m.findIndex(Ds.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&P0e(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&L1(r.params,o.value.params));function d(h={}){if(O0e(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Hl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function L0e(e){return e.length===1?e[0]:e}const N0e=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:P0,setup(e,{slots:t}){const r=er(P0(e)),{options:o}=qr(sp),s=ke(()=>({[z0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[z0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&L0e(t.default(r));return e.custom?c:ya("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),$0e=N0e;function O0e(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 P0e(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(!Lr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function R0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const z0=(e,t,r)=>e??t??r,R0e=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=qr(ch),s=ke(()=>e.route||o.value),c=qr(O0,0),f=ke(()=>{let p=W(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);Cc(O0,ke(()=>f.value+1)),Cc(M0e,d),Cc(ch,s);const h=je();return Et(()=>[h.value,d.value,e.name],([p,v,m],[b,w,A])=>{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||!Ds(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 D0(r.default,{Component:b,route:p});const w=m.props[v],A=w?w===!0?p.params:typeof w=="function"?w(p):w:null,L=ya(b,bt({},A,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return D0(r.default,{Component:L,route:p})||L}}});function D0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const z0e=R0e;function D0e(e){const t=S0e(e.routes,e),r=e.parseQuery||E0e,o=e.stringifyQuery||$0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=On(zi);let p=zi;ps&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=dd.bind(null,Z=>""+Z),m=dd.bind(null,Kme),b=dd.bind(null,ua);function w(Z,ae){let de,Ne;return $1(Z)?(de=t.getRecordMatcher(Z),Ne=ae):Ne=Z,t.addRoute(Ne,de)}function A(Z){const ae=t.getRecordMatcher(Z);ae&&t.removeRoute(ae)}function N(){return t.getRoutes().map(Z=>Z.record)}function L(Z){return!!t.getRecordMatcher(Z)}function M(Z,ae){if(ae=bt({},ae||h.value),typeof Z=="string"){const K=hd(r,Z,ae.path),le=t.resolve({path:K.path},ae),ce=s.createHref(K.fullPath);return bt(K,le,{params:b(le.params),hash:ua(K.hash),redirectedFrom:void 0,href:ce})}let de;if(Z.path!=null)de=bt({},Z,{path:hd(r,Z.path,ae.path).path});else{const K=bt({},Z.params);for(const le in K)K[le]==null&&delete K[le];de=bt({},Z,{params:m(K)}),ae.params=m(ae.params)}const Ne=t.resolve(de,ae),Me=Z.hash||"";Ne.params=v(b(Ne.params));const I=Zme(o,bt({},Z,{hash:jme(Me),path:Ne.path})),q=s.createHref(I);return bt({fullPath:I,hash:Me,query:o===$0?A0e(Z.query):Z.query||{}},Ne,{redirectedFrom:void 0,href:q})}function T(Z){return typeof Z=="string"?hd(r,Z,h.value.path):bt({},Z)}function P(Z,ae){if(p!==Z)return Is(8,{from:ae,to:Z})}function E(Z){return U(Z)}function B(Z){return E(bt(T(Z),{replace:!0}))}function G(Z){const ae=Z.matched[Z.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let Ne=typeof de=="function"?de(Z):de;return typeof Ne=="string"&&(Ne=Ne.includes("?")||Ne.includes("#")?Ne=T(Ne):{path:Ne},Ne.params={}),bt({query:Z.query,hash:Z.hash,params:Ne.path!=null?{}:Z.params},Ne)}}function U(Z,ae){const de=p=M(Z),Ne=h.value,Me=Z.state,I=Z.force,q=Z.replace===!0,K=G(de);if(K)return U(bt(T(K),{state:typeof K=="object"?bt({},Me,K.state):Me,force:I,replace:q}),ae||de);const le=de;le.redirectedFrom=ae;let ce;return!I&&Jme(o,Ne,de)&&(ce=Is(16,{to:le,from:Ne}),Re(Ne,Ne,!0,!1)),(ce?Promise.resolve(ce):Y(le,Ne)).catch(ue=>si(ue)?si(ue,2)?ue:be(ue):re(ue,le,Ne)).then(ue=>{if(ue){if(si(ue,2))return U(bt({replace:q},T(ue.to),{state:typeof ue.to=="object"?bt({},Me,ue.to.state):Me,force:I}),ae||le)}else ue=R(le,Ne,!0,q,Me);return ee(le,Ne,ue),ue})}function Q(Z,ae){const de=P(Z,ae);return de?Promise.reject(de):Promise.resolve()}function J(Z){const ae=Ye.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(Z):Z()}function Y(Z,ae){let de;const[Ne,Me,I]=I0e(Z,ae);de=pd(Ne.reverse(),"beforeRouteLeave",Z,ae);for(const K of Ne)K.leaveGuards.forEach(le=>{de.push(Ui(le,Z,ae))});const q=Q.bind(null,Z,ae);return de.push(q),Ae(de).then(()=>{de=[];for(const K of c.list())de.push(Ui(K,Z,ae));return de.push(q),Ae(de)}).then(()=>{de=pd(Me,"beforeRouteUpdate",Z,ae);for(const K of Me)K.updateGuards.forEach(le=>{de.push(Ui(le,Z,ae))});return de.push(q),Ae(de)}).then(()=>{de=[];for(const K of I)if(K.beforeEnter)if(Lr(K.beforeEnter))for(const le of K.beforeEnter)de.push(Ui(le,Z,ae));else de.push(Ui(K.beforeEnter,Z,ae));return de.push(q),Ae(de)}).then(()=>(Z.matched.forEach(K=>K.enterCallbacks={}),de=pd(I,"beforeRouteEnter",Z,ae,J),de.push(q),Ae(de))).then(()=>{de=[];for(const K of f.list())de.push(Ui(K,Z,ae));return de.push(q),Ae(de)}).catch(K=>si(K,8)?K:Promise.reject(K))}function ee(Z,ae,de){d.list().forEach(Ne=>J(()=>Ne(Z,ae,de)))}function R(Z,ae,de,Ne,Me){const I=P(Z,ae);if(I)return I;const q=ae===zi,K=ps?history.state:{};de&&(Ne||q?s.replace(Z.fullPath,bt({scroll:q&&K&&K.scroll},Me)):s.push(Z.fullPath,Me)),h.value=Z,Re(Z,ae,de,q),be()}let $;function O(){$||($=s.listen((Z,ae,de)=>{if(!Xe.listening)return;const Ne=M(Z),Me=G(Ne);if(Me){U(bt(Me,{replace:!0,force:!0}),Ne).catch(Hl);return}p=Ne;const I=h.value;ps&&s0e(_0(I.fullPath,de.delta),Wu()),Y(Ne,I).catch(q=>si(q,12)?q:si(q,2)?(U(bt(T(q.to),{force:!0}),Ne).then(K=>{si(K,20)&&!de.delta&&de.type===fa.pop&&s.go(-1,!1)}).catch(Hl),Promise.reject()):(de.delta&&s.go(-de.delta,!1),re(q,Ne,I))).then(q=>{q=q||R(Ne,I,!1),q&&(de.delta&&!si(q,8)?s.go(-de.delta,!1):de.type===fa.pop&&si(q,20)&&s.go(-1,!1)),ee(Ne,I,q)}).catch(Hl)}))}let _=Cl(),D=Cl(),j;function re(Z,ae,de){be(Z);const Ne=D.list();return Ne.length?Ne.forEach(Me=>Me(Z,ae,de)):console.error(Z),Promise.reject(Z)}function pe(){return j&&h.value!==zi?Promise.resolve():new Promise((Z,ae)=>{_.add([Z,ae])})}function be(Z){return j||(j=!Z,O(),_.list().forEach(([ae,de])=>Z?de(Z):ae()),_.reset()),Z}function Re(Z,ae,de,Ne){const{scrollBehavior:Me}=e;if(!ps||!Me)return Promise.resolve();const I=!de&&l0e(_0(Z.fullPath,0))||(Ne||!de)&&history.state&&history.state.scroll||null;return Pt().then(()=>Me(Z,ae,I)).then(q=>q&&o0e(q)).catch(q=>re(q,Z,ae))}const qe=Z=>s.go(Z);let et;const Ye=new Set,Xe={currentRoute:h,listening:!0,addRoute:w,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:L,getRoutes:N,resolve:M,options:e,push:E,replace:B,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:D.add,isReady:pe,install(Z){const ae=this;Z.component("RouterLink",$0e),Z.component("RouterView",z0e),Z.config.globalProperties.$router=ae,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),ps&&!et&&h.value===zi&&(et=!0,E(s.location).catch(Me=>{}));const de={};for(const Me in zi)Object.defineProperty(de,Me,{get:()=>h.value[Me],enumerable:!0});Z.provide(sp,ae),Z.provide(z1,yh(de)),Z.provide(ch,h);const Ne=Z.unmount;Ye.add(Z),Z.unmount=function(){Ye.delete(Z),Ye.size<1&&(p=zi,$&&$(),$=null,h.value=zi,et=!1,j=!1),Ne()}}};function Ae(Z){return Z.reduce((ae,de)=>ae.then(()=>J(de)),Promise.resolve())}return Xe}function I0e(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=>Ds(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Ds(p,h))||s.push(h))}return[r,o,s]}const F0e={tooltip:bT};Lb.options.instantMove=!0;Lb.options.distance=10;function H0e(){return D0e({history:d0e(),routes:Pme})}const B0e=[H0e],lp=ab(SC);B0e.forEach(e=>{lp.use(e())});Object.entries(F0e).forEach(([e,t])=>{lp.directive(e,t)});lp.mount("#app");
52
+ */const ps=typeof document<"u";function C1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function zme(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&C1(e.default)}const bt=Object.assign;function dd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Lr(s)?s.map(e):e(s)}return r}const Hl=()=>{},Lr=Array.isArray,T1=/#/g,Dme=/&/g,Ime=/\//g,Fme=/=/g,Hme=/\?/g,E1=/\+/g,Bme=/%5B/g,Wme=/%5D/g,A1=/%5E/g,qme=/%60/g,M1=/%7B/g,Ume=/%7C/g,L1=/%7D/g,jme=/%20/g;function op(e){return encodeURI(""+e).replace(Ume,"|").replace(Bme,"[").replace(Wme,"]")}function Vme(e){return op(e).replace(M1,"{").replace(L1,"}").replace(A1,"^")}function lh(e){return op(e).replace(E1,"%2B").replace(jme,"+").replace(T1,"%23").replace(Dme,"%26").replace(qme,"`").replace(M1,"{").replace(L1,"}").replace(A1,"^")}function Gme(e){return lh(e).replace(Fme,"%3D")}function Kme(e){return op(e).replace(T1,"%23").replace(Hme,"%3F")}function Xme(e){return e==null?"":Kme(e).replace(Ime,"%2F")}function ua(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Yme=/\/$/,Zme=e=>e.replace(Yme,"");function hd(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=t0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ua(f)}}function Jme(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function S0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qme(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Ds(t.matched[o],r.matched[s])&&N1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ds(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!e0e(e[r],t[r]))return!1;return!0}function e0e(e,t){return Lr(e)?_0(e,t):Lr(t)?_0(t,e):e===t}function _0(e,t){return Lr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function t0e(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 zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var fa;(function(e){e.pop="pop",e.push="push"})(fa||(fa={}));var Bl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bl||(Bl={}));function n0e(e){if(!e)if(ps){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Zme(e)}const r0e=/^[^#]+#/;function i0e(e,t){return e.replace(r0e,"#")+t}function o0e(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 Wu=()=>({left:window.scrollX,top:window.scrollY});function s0e(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=o0e(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 k0(e,t){return(history.state?history.state.position-t:-1)+e}const ah=new Map;function l0e(e,t){ah.set(e,t)}function a0e(e){const t=ah.get(e);return ah.delete(e),t}let c0e=()=>location.protocol+"//"+location.host;function $1(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),S0(h,"")}return S0(r,e)+o+s}function u0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=$1(e,location),E=r.value,N=t.value;let L=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}L=N?b.position-N.position:0}else o(w);s.forEach(M=>{M(r.value,E,{delta:L,type:fa.pop,direction:L?L>0?Bl.forward:Bl.back:Bl.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:Wu()}),"")}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 C0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Wu():null}}function f0e(e){const{history:t,location:r}=window,o={value:$1(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:c0e()+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,C0(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:Wu()});c(v.current,v,!0);const m=bt({},C0(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 d0e(e){e=n0e(e);const t=f0e(e),r=u0e(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:i0e.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 h0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),d0e(e)}function p0e(e){return typeof e=="string"||e&&typeof e=="object"}function O1(e){return typeof e=="string"||typeof e=="symbol"}const P1=Symbol("");var T0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(T0||(T0={}));function Is(e,t){return bt(new Error,{type:e,[P1]:!0},t)}function si(e,t){return e instanceof Error&&P1 in e&&(t==null||!!(e.type&t))}const E0="[^/]+?",g0e={sensitive:!1,strict:!1,start:!0,end:!0},v0e=/[.+*?^${}()[\]/\\]/g;function m0e(e,t){const r=bt({},g0e,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(v0e,"\\$&"),w+=40;else if(b.type===1){const{value:E,repeatable:N,optional:L,regexp:M}=b;c.push({name:E,repeatable:N,optional:L});const T=M||E0;if(T!==E0){w+=10;try{new RegExp(`(${T})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${E}" (${T}): `+A.message)}}let P=N?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;m||(P=L&&p.length<2?`(?:/${P})`:"/"+P),L&&(P+="?"),s+=P,w+=20,L&&(w+=-8),N&&(w+=-20),T===".*"&&(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:L}=w,M=E in p?p[E]:"";if(Lr(M)&&!N)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const T=Lr(M)?M.join("/"):M;if(!T)if(L)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${E}"`);v+=T}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function y0e(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 R1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=y0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(A0(o))return 1;if(A0(s))return-1}return s.length-o.length}function A0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const b0e={type:0,value:""},w0e=/[a-zA-Z0-9_]/;function x0e(e){if(!e)return[[]];if(e==="/")return[[b0e]];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:w0e.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 S0e(e,t,r){const o=m0e(x0e(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 _0e(e,t){const r=[],o=new Map;t=$0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const E=!w,N=L0(m);N.aliasOf=w&&w.record;const L=$0(t,m),M=[N];if("alias"in m){const A=typeof m.alias=="string"?[m.alias]:m.alias;for(const B of A)M.push(L0(bt({},N,{components:w?w.record.components:N.components,path:B,aliasOf:w?w.record:N})))}let T,P;for(const A of M){const{path:B}=A;if(b&&B[0]!=="/"){const G=b.record.path,U=G[G.length-1]==="/"?"":"/";A.path=b.record.path+(B&&U+B)}if(T=S0e(A,b,L),w?w.alias.push(T):(P=P||T,P!==T&&P.alias.push(T),E&&m.name&&!N0(T)&&f(m.name)),z1(T)&&h(T),N.children){const G=N.children;for(let U=0;U<G.length;U++)c(G[U],T,w&&w.children[U])}w=w||T}return P?()=>{f(P)}:Hl}function f(m){if(O1(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=T0e(m,r);r.splice(b,0,m),m.record.name&&!N0(m)&&o.set(m.record.name,m)}function p(m,b){let w,E={},N,L;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Is(1,{location:m});L=w.record.name,E=bt(M0(b.params,w.keys.filter(P=>!P.optional).concat(w.parent?w.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),m.params&&M0(m.params,w.keys.map(P=>P.name))),N=w.stringify(E)}else if(m.path!=null)N=m.path,w=r.find(P=>P.re.test(N)),w&&(E=w.parse(N),L=w.record.name);else{if(w=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!w)throw Is(1,{location:m,currentLocation:b});L=w.record.name,E=bt({},b.params,m.params),N=w.stringify(E)}const M=[];let T=w;for(;T;)M.unshift(T.record),T=T.parent;return{name:L,path:N,params:E,matched:M,meta:C0e(M)}}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 M0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function L0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:k0e(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 k0e(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 N0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function C0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function $0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function T0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;R1(e,t[c])<0?o=c:r=c+1}const s=E0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function E0e(e){let t=e;for(;t=t.parent;)if(z1(t)&&R1(e,t)===0)return t}function z1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function A0e(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(E1," "),f=c.indexOf("="),d=ua(f<0?c:c.slice(0,f)),h=f<0?null:ua(c.slice(f+1));if(d in t){let p=t[d];Lr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function O0(e){let t="";for(let r in e){const o=e[r];if(r=Gme(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Lr(o)?o.map(c=>c&&lh(c)):[o&&lh(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function M0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Lr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const L0e=Symbol(""),P0=Symbol(""),sp=Symbol(""),D1=Symbol(""),ch=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(Is(4,{from:r,to:t})):b instanceof Error?h(b):p0e(b)?h(Is(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 pd(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(C1(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=zme(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 R0(e){const t=qr(sp),r=qr(D1),o=ke(()=>{const h=W(e.to);return t.resolve(h)}),s=ke(()=>{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(Ds.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(Ds.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&R0e(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&N1(r.params,o.value.params));function d(h={}){if(P0e(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Hl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function N0e(e){return e.length===1?e[0]:e}const $0e=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:R0,setup(e,{slots:t}){const r=er(R0(e)),{options:o}=qr(sp),s=ke(()=>({[D0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[D0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&N0e(t.default(r));return e.custom?c:ya("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),O0e=$0e;function P0e(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 R0e(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(!Lr(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 D0=(e,t,r)=>e??t??r,z0e=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=qr(ch),s=ke(()=>e.route||o.value),c=qr(P0,0),f=ke(()=>{let p=W(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);Cc(P0,ke(()=>f.value+1)),Cc(L0e,d),Cc(ch,s);const h=je();return Et(()=>[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||!Ds(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 I0(r.default,{Component:b,route:p});const w=m.props[v],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,L=ya(b,bt({},E,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return I0(r.default,{Component:L,route:p})||L}}});function I0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const D0e=z0e;function I0e(e){const t=_0e(e.routes,e),r=e.parseQuery||A0e,o=e.stringifyQuery||O0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=On(zi);let p=zi;ps&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=dd.bind(null,Z=>""+Z),m=dd.bind(null,Xme),b=dd.bind(null,ua);function w(Z,ae){let de,Ne;return O1(Z)?(de=t.getRecordMatcher(Z),Ne=ae):Ne=Z,t.addRoute(Ne,de)}function E(Z){const ae=t.getRecordMatcher(Z);ae&&t.removeRoute(ae)}function N(){return t.getRoutes().map(Z=>Z.record)}function L(Z){return!!t.getRecordMatcher(Z)}function M(Z,ae){if(ae=bt({},ae||h.value),typeof Z=="string"){const K=hd(r,Z,ae.path),le=t.resolve({path:K.path},ae),ce=s.createHref(K.fullPath);return bt(K,le,{params:b(le.params),hash:ua(K.hash),redirectedFrom:void 0,href:ce})}let de;if(Z.path!=null)de=bt({},Z,{path:hd(r,Z.path,ae.path).path});else{const K=bt({},Z.params);for(const le in K)K[le]==null&&delete K[le];de=bt({},Z,{params:m(K)}),ae.params=m(ae.params)}const Ne=t.resolve(de,ae),Me=Z.hash||"";Ne.params=v(b(Ne.params));const I=Jme(o,bt({},Z,{hash:Vme(Me),path:Ne.path})),q=s.createHref(I);return bt({fullPath:I,hash:Me,query:o===O0?M0e(Z.query):Z.query||{}},Ne,{redirectedFrom:void 0,href:q})}function T(Z){return typeof Z=="string"?hd(r,Z,h.value.path):bt({},Z)}function P(Z,ae){if(p!==Z)return Is(8,{from:ae,to:Z})}function A(Z){return U(Z)}function B(Z){return A(bt(T(Z),{replace:!0}))}function G(Z){const ae=Z.matched[Z.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let Ne=typeof de=="function"?de(Z):de;return typeof Ne=="string"&&(Ne=Ne.includes("?")||Ne.includes("#")?Ne=T(Ne):{path:Ne},Ne.params={}),bt({query:Z.query,hash:Z.hash,params:Ne.path!=null?{}:Z.params},Ne)}}function U(Z,ae){const de=p=M(Z),Ne=h.value,Me=Z.state,I=Z.force,q=Z.replace===!0,K=G(de);if(K)return U(bt(T(K),{state:typeof K=="object"?bt({},Me,K.state):Me,force:I,replace:q}),ae||de);const le=de;le.redirectedFrom=ae;let ce;return!I&&Qme(o,Ne,de)&&(ce=Is(16,{to:le,from:Ne}),Re(Ne,Ne,!0,!1)),(ce?Promise.resolve(ce):Y(le,Ne)).catch(ue=>si(ue)?si(ue,2)?ue:be(ue):re(ue,le,Ne)).then(ue=>{if(ue){if(si(ue,2))return U(bt({replace:q},T(ue.to),{state:typeof ue.to=="object"?bt({},Me,ue.to.state):Me,force:I}),ae||le)}else ue=R(le,Ne,!0,q,Me);return ee(le,Ne,ue),ue})}function Q(Z,ae){const de=P(Z,ae);return de?Promise.reject(de):Promise.resolve()}function J(Z){const ae=Ye.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(Z):Z()}function Y(Z,ae){let de;const[Ne,Me,I]=F0e(Z,ae);de=pd(Ne.reverse(),"beforeRouteLeave",Z,ae);for(const K of Ne)K.leaveGuards.forEach(le=>{de.push(Ui(le,Z,ae))});const q=Q.bind(null,Z,ae);return de.push(q),Ae(de).then(()=>{de=[];for(const K of c.list())de.push(Ui(K,Z,ae));return de.push(q),Ae(de)}).then(()=>{de=pd(Me,"beforeRouteUpdate",Z,ae);for(const K of Me)K.updateGuards.forEach(le=>{de.push(Ui(le,Z,ae))});return de.push(q),Ae(de)}).then(()=>{de=[];for(const K of I)if(K.beforeEnter)if(Lr(K.beforeEnter))for(const le of K.beforeEnter)de.push(Ui(le,Z,ae));else de.push(Ui(K.beforeEnter,Z,ae));return de.push(q),Ae(de)}).then(()=>(Z.matched.forEach(K=>K.enterCallbacks={}),de=pd(I,"beforeRouteEnter",Z,ae,J),de.push(q),Ae(de))).then(()=>{de=[];for(const K of f.list())de.push(Ui(K,Z,ae));return de.push(q),Ae(de)}).catch(K=>si(K,8)?K:Promise.reject(K))}function ee(Z,ae,de){d.list().forEach(Ne=>J(()=>Ne(Z,ae,de)))}function R(Z,ae,de,Ne,Me){const I=P(Z,ae);if(I)return I;const q=ae===zi,K=ps?history.state:{};de&&(Ne||q?s.replace(Z.fullPath,bt({scroll:q&&K&&K.scroll},Me)):s.push(Z.fullPath,Me)),h.value=Z,Re(Z,ae,de,q),be()}let $;function O(){$||($=s.listen((Z,ae,de)=>{if(!Xe.listening)return;const Ne=M(Z),Me=G(Ne);if(Me){U(bt(Me,{replace:!0,force:!0}),Ne).catch(Hl);return}p=Ne;const I=h.value;ps&&l0e(k0(I.fullPath,de.delta),Wu()),Y(Ne,I).catch(q=>si(q,12)?q:si(q,2)?(U(bt(T(q.to),{force:!0}),Ne).then(K=>{si(K,20)&&!de.delta&&de.type===fa.pop&&s.go(-1,!1)}).catch(Hl),Promise.reject()):(de.delta&&s.go(-de.delta,!1),re(q,Ne,I))).then(q=>{q=q||R(Ne,I,!1),q&&(de.delta&&!si(q,8)?s.go(-de.delta,!1):de.type===fa.pop&&si(q,20)&&s.go(-1,!1)),ee(Ne,I,q)}).catch(Hl)}))}let _=Cl(),D=Cl(),j;function re(Z,ae,de){be(Z);const Ne=D.list();return Ne.length?Ne.forEach(Me=>Me(Z,ae,de)):console.error(Z),Promise.reject(Z)}function pe(){return j&&h.value!==zi?Promise.resolve():new Promise((Z,ae)=>{_.add([Z,ae])})}function be(Z){return j||(j=!Z,O(),_.list().forEach(([ae,de])=>Z?de(Z):ae()),_.reset()),Z}function Re(Z,ae,de,Ne){const{scrollBehavior:Me}=e;if(!ps||!Me)return Promise.resolve();const I=!de&&a0e(k0(Z.fullPath,0))||(Ne||!de)&&history.state&&history.state.scroll||null;return Pt().then(()=>Me(Z,ae,I)).then(q=>q&&s0e(q)).catch(q=>re(q,Z,ae))}const qe=Z=>s.go(Z);let et;const Ye=new Set,Xe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:L,getRoutes:N,resolve:M,options:e,push:A,replace:B,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:D.add,isReady:pe,install(Z){const ae=this;Z.component("RouterLink",O0e),Z.component("RouterView",D0e),Z.config.globalProperties.$router=ae,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),ps&&!et&&h.value===zi&&(et=!0,A(s.location).catch(Me=>{}));const de={};for(const Me in zi)Object.defineProperty(de,Me,{get:()=>h.value[Me],enumerable:!0});Z.provide(sp,ae),Z.provide(D1,yh(de)),Z.provide(ch,h);const Ne=Z.unmount;Ye.add(Z),Z.unmount=function(){Ye.delete(Z),Ye.size<1&&(p=zi,$&&$(),$=null,h.value=zi,et=!1,j=!1),Ne()}}};function Ae(Z){return Z.reduce((ae,de)=>ae.then(()=>J(de)),Promise.resolve())}return Xe}function F0e(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=>Ds(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Ds(p,h))||s.push(h))}return[r,o,s]}const H0e={tooltip:wT};Nb.options.instantMove=!0;Nb.options.distance=10;function B0e(){return I0e({history:h0e(),routes:Rme})}const W0e=[B0e],lp=cb(_C);W0e.forEach(e=>{lp.use(e())});Object.entries(H0e).forEach(([e,t])=>{lp.directive(e,t)});lp.mount("#app");