@vitest/browser 4.0.0-beta.10 → 4.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/index-C15NF4dG.js +53 -0
- package/dist/client/__vitest__/assets/index-CjTcNCIc.css +1 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-BXX6oamz.js → orchestrator-Pdu7HCGX.js} +58 -44
- package/dist/client/__vitest_browser__/tester-DYNLfPFH.js +2133 -0
- package/dist/client/__vitest_browser__/{utils-CPmDBIKG.js → utils-uxqdqUz8.js} +48 -20
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/expect-element.js +10 -10
- package/dist/index-BPDFwkoW.js +1 -0
- package/dist/index.js +110 -13
- package/dist/locators/index.js +1 -1
- package/dist/locators/playwright.js +1 -1
- package/dist/locators/preview.js +1 -1
- package/dist/locators/webdriverio.js +1 -1
- package/dist/providers/playwright.d.ts +3 -1
- package/dist/providers/playwright.js +19 -0
- package/dist/public-utils-B6exS8fl.js +6 -0
- package/dist/state.js +0 -1
- package/dist/utils.js +1 -1
- package/matchers.d.ts +1 -1
- package/package.json +12 -12
- package/dist/client/__vitest__/assets/index-DFDJV2DF.js +0 -53
- package/dist/client/__vitest__/assets/index-KbpJLW--.css +0 -1
- package/dist/client/__vitest_browser__/tester-CMhJ1E1W.js +0 -3284
- package/dist/index-DDlvjJVO.js +0 -1
- package/dist/public-utils-Kx5DUGWa.js +0 -6
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
+
* @vue/shared v3.5.21
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function vh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const mt={},xs=[],Ur=()=>{},G0=()=>!1,bu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mh=e=>e.startsWith("onUpdate:"),en=Object.assign,yh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Q_=Object.prototype.hasOwnProperty,wt=(e,t)=>Q_.call(e,t),Be=Array.isArray,_s=e=>xa(e)==="[object Map]",wu=e=>xa(e)==="[object Set]",gv=e=>xa(e)==="[object Date]",Ge=e=>typeof e=="function",zt=e=>typeof e=="string",Lr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",K0=e=>(St(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),X0=Object.prototype.toString,xa=e=>X0.call(e),eS=e=>xa(e).slice(8,-1),Y0=e=>xa(e)==="[object Object]",bh=e=>zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Il=vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},tS=/-\w/g,nr=xu(e=>e.replace(tS,t=>t.slice(1).toUpperCase())),nS=/\B([A-Z])/g,_i=xu(e=>e.replace(nS,"-$1").toLowerCase()),_u=xu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mc=xu(e=>e?`on${_u(e)}`:""),qn=(e,t)=>!Object.is(e,t),$c=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Z0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},_d=e=>{const t=parseFloat(e);return isNaN(t)?e:t},J0=e=>{const t=zt(e)?Number(e):NaN;return isNaN(t)?e:t};let vv;const Su=()=>vv||(vv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jt(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=zt(o)?sS(o):Jt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(zt(e)||St(e))return e}const rS=/;(?![^(]*\))/g,iS=/:([^]+)/,oS=/\/\*[^]*?\*\//g;function sS(e){const t={};return e.replace(oS,"").split(rS).forEach(r=>{if(r){const o=r.split(iS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(zt(e))t=e;else if(Be(e))for(let r=0;r<e.length;r++){const o=ot(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function lS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!zt(t)&&(e.class=ot(t)),r&&(e.style=Jt(r)),e}const aS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",cS=vh(aS);function Q0(e){return!!e||e===""}function uS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=ku(e[o],t[o]);return r}function ku(e,t){if(e===t)return!0;let r=gv(e),o=gv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Lr(e),o=Lr(t),r||o)return e===t;if(r=Be(e),o=Be(t),r||o)return r&&o?uS(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||!ku(e[f],t[f]))return!1}}return String(e)===String(t)}function ey(e,t){return e.findIndex(r=>ku(r,t))}const ty=e=>!!(e&&e.__v_isRef===!0),ze=e=>zt(e)?e:e==null?"":Be(e)||St(e)&&(e.toString===X0||!Ge(e.toString))?ty(e)?ze(e.value):JSON.stringify(e,ny,2):String(e),ny=(e,t)=>ty(t)?ny(e,t.value):_s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Vf(o,c)+" =>"]=s,r),{})}:wu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Vf(r))}:Lr(t)?Vf(t):St(t)&&!Be(t)&&!Y0(t)?String(t):t,Vf=(e,t="")=>{var r;return Lr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.21
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let gn;class fS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=gn,!t&&gn&&(this.index=(gn.scopes||(gn.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=gn;try{return gn=this,t()}finally{gn=r}}}on(){++this._on===1&&(this.prevScope=gn,gn=this)}off(){this._on>0&&--this._on===0&&(gn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=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}}}function ry(){return gn}function dS(e,t=!1){gn&&gn.cleanups.push(e)}let Tt;const Gf=new WeakSet;class iy{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,gn&&gn.active&&gn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gf.has(this)&&(Gf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||sy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mv(this),ly(this);const t=Tt,r=Er;Tt=this,Er=!0;try{return this.fn()}finally{ay(this),Tt=t,Er=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)_h(t);this.deps=this.depsTail=void 0,mv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sd(this)&&this.run()}get dirty(){return Sd(this)}}let oy=0,Dl,Fl;function sy(e,t=!1){if(e.flags|=8,t){e.next=Fl,Fl=e;return}e.next=Dl,Dl=e}function wh(){oy++}function xh(){if(--oy>0)return;if(Fl){let t=Fl;for(Fl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Dl;){let t=Dl;for(Dl=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 ly(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ay(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),_h(o),hS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Sd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(cy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function cy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zl)||(e.globalVersion=Zl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sd(e))))return;e.flags|=2;const t=e.dep,r=Tt,o=Er;Tt=e,Er=!0;try{ly(e);const s=e.fn(e._value);(t.version===0||qn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=r,Er=o,ay(e),e.flags&=-3}}function _h(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)_h(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function hS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Er=!0;const uy=[];function yi(){uy.push(Er),Er=!1}function bi(){const e=uy.pop();Er=e===void 0?!0:e}function mv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Tt;Tt=void 0;try{t()}finally{Tt=r}}}let Zl=0;class pS{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 Tu{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,this.__v_skip=!0}track(t){if(!Tt||!Er||Tt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Tt)r=this.activeLink=new pS(Tt,this),Tt.deps?(r.prevDep=Tt.depsTail,Tt.depsTail.nextDep=r,Tt.depsTail=r):Tt.deps=Tt.depsTail=r,fy(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=Tt.depsTail,r.nextDep=void 0,Tt.depsTail.nextDep=r,Tt.depsTail=r,Tt.deps===r&&(Tt.deps=o)}return r}trigger(t){this.version++,Zl++,this.notify(t)}notify(t){wh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{xh()}}}function fy(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)fy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const qc=new WeakMap,Oo=Symbol(""),kd=Symbol(""),Jl=Symbol("");function vn(e,t,r){if(Er&&Tt){let o=qc.get(e);o||qc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Tu),s.map=o,s.key=r),s.track()}}function pi(e,t,r,o,s,c){const f=qc.get(e);if(!f){Zl++;return}const d=h=>{h&&h.trigger()};if(wh(),t==="clear")f.forEach(d);else{const h=Be(e),p=h&&bh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Jl||!Lr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Jl)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Oo)),_s(e)&&d(f.get(kd)));break;case"delete":h||(d(f.get(Oo)),_s(e)&&d(f.get(kd)));break;case"set":_s(e)&&d(f.get(Oo));break}}xh()}function gS(e,t){const r=qc.get(e);return r&&r.get(t)}function ds(e){const t=vt(e);return t===e?t:(vn(t,"iterate",Jl),cr(e)?t:t.map(cn))}function Cu(e){return vn(e=vt(e),"iterate",Jl),e}const vS={__proto__:null,[Symbol.iterator](){return Kf(this,Symbol.iterator,cn)},concat(...e){return ds(this).concat(...e.map(t=>Be(t)?ds(t):t))},entries(){return Kf(this,"entries",e=>(e[1]=cn(e[1]),e))},every(e,t){return li(this,"every",e,t,void 0,arguments)},filter(e,t){return li(this,"filter",e,t,r=>r.map(cn),arguments)},find(e,t){return li(this,"find",e,t,cn,arguments)},findIndex(e,t){return li(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return li(this,"findLast",e,t,cn,arguments)},findLastIndex(e,t){return li(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return li(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xf(this,"includes",e)},indexOf(...e){return Xf(this,"indexOf",e)},join(e){return ds(this).join(e)},lastIndexOf(...e){return Xf(this,"lastIndexOf",e)},map(e,t){return li(this,"map",e,t,void 0,arguments)},pop(){return Cl(this,"pop")},push(...e){return Cl(this,"push",e)},reduce(e,...t){return yv(this,"reduce",e,t)},reduceRight(e,...t){return yv(this,"reduceRight",e,t)},shift(){return Cl(this,"shift")},some(e,t){return li(this,"some",e,t,void 0,arguments)},splice(...e){return Cl(this,"splice",e)},toReversed(){return ds(this).toReversed()},toSorted(e){return ds(this).toSorted(e)},toSpliced(...e){return ds(this).toSpliced(...e)},unshift(...e){return Cl(this,"unshift",e)},values(){return Kf(this,"values",cn)}};function Kf(e,t,r){const o=Cu(e),s=o[t]();return o!==e&&!cr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const mS=Array.prototype;function li(e,t,r,o,s,c){const f=Cu(e),d=f!==e&&!cr(e),h=f[t];if(h!==mS[t]){const m=h.apply(e,c);return d?cn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,cn(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 yv(e,t,r,o){const s=Cu(e);let c=r;return s!==e&&(cr(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,cn(d),h,e)}),s[t](c,...o)}function Xf(e,t,r){const o=vt(e);vn(o,"iterate",Jl);const s=o[t](...r);return(s===-1||s===!1)&&Ch(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Cl(e,t,r=[]){yi(),wh();const o=vt(e)[t].apply(e,r);return xh(),bi(),o}const yS=vh("__proto__,__v_isRef,__isVue"),dy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Lr));function bS(e){Lr(e)||(e=String(e));const t=vt(this);return vn(t,"has",e),t.hasOwnProperty(e)}class hy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;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?LS:my:c?vy:gy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Be(t);if(!s){let h;if(f&&(h=vS[r]))return h;if(r==="hasOwnProperty")return bS}const d=Reflect.get(t,r,kt(t)?t:o);return(Lr(r)?dy.has(r):yS(r))||(s||vn(t,"get",r),c)?d:kt(d)?f&&bh(r)?d:d.value:St(d)?s?_a(d):tr(d):d}}class py extends hy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=to(c);if(!cr(o)&&!to(o)&&(c=vt(c),o=vt(o)),!Be(t)&&kt(c)&&!kt(o))return h||(c.value=o),!0}const f=Be(t)&&bh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,kt(t)?t:s);return t===vt(s)&&(f?qn(o,c)&&pi(t,"set",r,o):pi(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&pi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Lr(r)||!dy.has(r))&&vn(t,"has",r),o}ownKeys(t){return vn(t,"iterate",Be(t)?"length":Oo),Reflect.ownKeys(t)}}class wS extends hy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const xS=new py,_S=new wS,SS=new py(!0);const Td=e=>e,pc=e=>Reflect.getPrototypeOf(e);function kS(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=_s(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Td:t?jc:cn;return!t&&vn(c,"iterate",h?kd:Oo),{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 gc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function TS(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(qn(s,d)&&vn(f,"get",s),vn(f,"get",d));const{has:h}=pc(f),p=t?Td:e?jc:cn;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&&vn(vt(s),"iterate",Oo),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(qn(s,d)&&vn(f,"has",s),vn(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=vt(d),p=t?Td:e?jc:cn;return!e&&vn(h,"iterate",Oo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return en(r,e?{add:gc("add"),set:gc("set"),delete:gc("delete"),clear:gc("clear")}:{add(s){!t&&!cr(s)&&!to(s)&&(s=vt(s));const c=vt(this);return pc(c).has.call(c,s)||(c.add(s),pi(c,"add",s,s)),this},set(s,c){!t&&!cr(c)&&!to(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=pc(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?qn(c,v)&&pi(f,"set",s,c):pi(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=pc(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&pi(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&pi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=kS(s,e,t)}),r}function Sh(e,t){const r=TS(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 CS={get:Sh(!1,!1)},ES={get:Sh(!1,!0)},AS={get:Sh(!0,!1)};const gy=new WeakMap,vy=new WeakMap,my=new WeakMap,LS=new WeakMap;function MS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $S(e){return e.__v_skip||!Object.isExtensible(e)?0:MS(eS(e))}function tr(e){return to(e)?e:Th(e,!1,xS,CS,gy)}function kh(e){return Th(e,!1,SS,ES,vy)}function _a(e){return Th(e,!0,_S,AS,my)}function Th(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=$S(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function Ss(e){return to(e)?Ss(e.__v_raw):!!(e&&e.__v_isReactive)}function to(e){return!!(e&&e.__v_isReadonly)}function cr(e){return!!(e&&e.__v_isShallow)}function Ch(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Eh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&Z0(e,"__v_skip",!0),e}const cn=e=>St(e)?tr(e):e,jc=e=>St(e)?_a(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return yy(e,!1)}function Qt(e){return yy(e,!0)}function yy(e,t){return kt(e)?e:new NS(e,t)}class NS{constructor(t,r){this.dep=new Tu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:cn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||cr(t)||to(t);t=o?t:vt(t),qn(t,r)&&(this._rawValue=t,this._value=o?t:cn(t),this.dep.trigger())}}function H(e){return kt(e)?e.value:e}function jt(e){return Ge(e)?e():H(e)}const OS={get:(e,t,r)=>t==="__v_raw"?e:H(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 by(e){return Ss(e)?e:new Proxy(e,OS)}class PS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Tu,{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 wy(e){return new PS(e)}function RS(e){const t=Be(e)?new Array(e.length):{};for(const r in e)t[r]=xy(e,r);return t}class zS{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 gS(vt(this._object),this._key)}}class IS{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 Vs(e,t,r){return kt(e)?e:Ge(e)?new IS(e):St(e)&&arguments.length>1?xy(e,t,r):Ue(e)}function xy(e,t,r){const o=e[t];return kt(o)?o:new zS(e,t,r)}class DS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Tu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return sy(this,!0),!0}get value(){const t=this.dep.track();return cy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function FS(e,t,r=!1){let o,s;return Ge(e)?o=e:(o=e.get,s=e.set),new DS(o,s,r)}const vc={},Uc=new WeakMap;let Eo;function HS(e,t=!1,r=Eo){if(r){let o=Uc.get(r);o||Uc.set(r,o=[]),o.push(e)}}function BS(e,t,r=mt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=C=>s?C:cr(C)||s===!1||s===0?gi(C,1):gi(C);let v,m,b,x,M=!1,E=!1;if(kt(e)?(m=()=>e.value,M=cr(e)):Ss(e)?(m=()=>p(e),M=!0):Be(e)?(E=!0,M=e.some(C=>Ss(C)||cr(C)),m=()=>e.map(C=>{if(kt(C))return C.value;if(Ss(C))return p(C);if(Ge(C))return h?h(C,2):C()})):Ge(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){yi();try{b()}finally{bi()}}const C=Eo;Eo=v;try{return h?h(e,3,[x]):e(x)}finally{Eo=C}}:m=Ur,t&&s){const C=m,D=s===!0?1/0:s;m=()=>gi(C(),D)}const A=ry(),L=()=>{v.stop(),A&&A.active&&yh(A.effects,v)};if(c&&t){const C=t;t=(...D)=>{C(...D),L()}}let $=E?new Array(e.length).fill(vc):vc;const R=C=>{if(!(!(v.flags&1)||!v.dirty&&!C))if(t){const D=v.run();if(s||M||(E?D.some((U,ie)=>qn(U,$[ie])):qn(D,$))){b&&b();const U=Eo;Eo=v;try{const ie=[D,$===vc?void 0:E&&$[0]===vc?[]:$,x];$=D,h?h(t,3,ie):t(...ie)}finally{Eo=U}}}else v.run()};return d&&d(R),v=new iy(m),v.scheduler=f?()=>f(R,!1):R,x=C=>HS(C,!1,v),b=v.onStop=()=>{const C=Uc.get(v);if(C){if(h)h(C,4);else for(const D of C)D();Uc.delete(v)}},t?o?R(!0):$=v.run():f?f(R.bind(null,!0),!0):v.run(),L.pause=v.pause.bind(v),L.resume=v.resume.bind(v),L.stop=L,L}function gi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,kt(e))gi(e.value,t,r);else if(Be(e))for(let o=0;o<e.length;o++)gi(e[o],t,r);else if(wu(e)||_s(e))e.forEach(o=>{gi(o,t,r)});else if(Y0(e)){for(const o in e)gi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&gi(e[o],t,r)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.21
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Sa(e,t,r,o){try{return o?e(...o):e()}catch(s){ka(s,t,r)}}function Mr(e,t,r,o){if(Ge(e)){const s=Sa(e,t,r,o);return s&&K0(s)&&s.catch(c=>{ka(c,t,r)}),s}if(Be(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Mr(e[c],t,r,o));return s}}function ka(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||mt;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){yi(),Sa(c,null,10,[e,h,p]),bi();return}}WS(e,r,s,o,f)}function WS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const $n=[];let qr=-1;const ks=[];let qi=null,ps=0;const _y=Promise.resolve();let Vc=null;function Et(e){const t=Vc||_y;return e?t.then(this?e.bind(this):e):t}function qS(e){let t=qr+1,r=$n.length;for(;t<r;){const o=t+r>>>1,s=$n[o],c=Ql(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Ah(e){if(!(e.flags&1)){const t=Ql(e),r=$n[$n.length-1];!r||!(e.flags&2)&&t>=Ql(r)?$n.push(e):$n.splice(qS(t),0,e),e.flags|=1,Sy()}}function Sy(){Vc||(Vc=_y.then(Ty))}function Cd(e){Be(e)?ks.push(...e):qi&&e.id===-1?qi.splice(ps+1,0,e):e.flags&1||(ks.push(e),e.flags|=1),Sy()}function bv(e,t,r=qr+1){for(;r<$n.length;r++){const o=$n[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;$n.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function ky(e){if(ks.length){const t=[...new Set(ks)].sort((r,o)=>Ql(r)-Ql(o));if(ks.length=0,qi){qi.push(...t);return}for(qi=t,ps=0;ps<qi.length;ps++){const r=qi[ps];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}qi=null,ps=0}}const Ql=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ty(e){try{for(qr=0;qr<$n.length;qr++){const t=$n[qr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Sa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qr<$n.length;qr++){const t=$n[qr];t&&(t.flags&=-2)}qr=-1,$n.length=0,ky(),Vc=null,($n.length||ks.length)&&Ty()}}let fn=null,Eu=null;function Gc(e){const t=fn;return fn=e,Eu=e&&e.type.__scopeId||null,t}function Cy(e){Eu=e}function Ey(){Eu=null}const Ay=e=>it;function it(e,t=fn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&zs(-1);const c=Gc(t);let f;try{f=e(...s)}finally{Gc(c),o._d&&zs(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ct(e,t){if(fn===null)return e;const r=Ru(fn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=mt]=t[s];c&&(Ge(c)&&(c={mounted:c,updated:c}),c.deep&&gi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function _o(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&&(yi(),Mr(h,r,8,[e.el,d,e,t]),bi())}}const jS=Symbol("_vte"),Ly=e=>e.__isTeleport,hi=Symbol("_leaveCb"),mc=Symbol("_enterCb");function US(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ao(()=>{e.isMounted=!0}),Ta(()=>{e.isUnmounting=!0}),e}const sr=[Function,Array],My={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sr,onEnter:sr,onAfterEnter:sr,onEnterCancelled:sr,onBeforeLeave:sr,onLeave:sr,onAfterLeave:sr,onLeaveCancelled:sr,onBeforeAppear:sr,onAppear:sr,onAfterAppear:sr,onAppearCancelled:sr},$y=e=>{const t=e.subTree;return t.component?$y(t.component):t},VS={name:"BaseTransition",props:My,setup(e,{slots:t}){const r=ki(),o=US();return()=>{const s=t.default&&Py(t.default(),!0);if(!s||!s.length)return;const c=Ny(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return Yf(c);const h=wv(c);if(!h)return Yf(c);let p=Ed(h,f,o,r,m=>p=m);h.type!==nn&&ea(h,p);let v=r.subTree&&wv(r.subTree);if(v&&v.type!==nn&&!jr(v,h)&&$y(r).type!==nn){let m=Ed(v,f,o,r);if(ea(v,m),d==="out-in"&&h.type!==nn)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},Yf(c);d==="in-out"&&h.type!==nn?m.delayLeave=(b,x,M)=>{const E=Oy(o,v);E[String(v.key)]=v,b[hi]=()=>{x(),b[hi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{M(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function Ny(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==nn){t=r;break}}return t}const GS=VS;function Oy(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 Ed(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:M,onLeaveCancelled:E,onBeforeAppear:A,onAppear:L,onAfterAppear:$,onAppearCancelled:R}=t,C=String(e.key),D=Oy(r,e),U=(ne,G)=>{ne&&Mr(ne,o,9,G)},ie=(ne,G)=>{const J=G[1];U(ne,G),Be(ne)?ne.every(O=>O.length<=1)&&J():ne.length<=1&&J()},le={mode:f,persisted:d,beforeEnter(ne){let G=h;if(!r.isMounted)if(c)G=A||h;else return;ne[hi]&&ne[hi](!0);const J=D[C];J&&jr(e,J)&&J.el[hi]&&J.el[hi](),U(G,[ne])},enter(ne){let G=p,J=v,O=m;if(!r.isMounted)if(c)G=L||p,J=$||v,O=R||m;else return;let P=!1;const N=ne[mc]=S=>{P||(P=!0,S?U(O,[ne]):U(J,[ne]),le.delayedLeave&&le.delayedLeave(),ne[mc]=void 0)};G?ie(G,[ne,N]):N()},leave(ne,G){const J=String(e.key);if(ne[mc]&&ne[mc](!0),r.isUnmounting)return G();U(b,[ne]);let O=!1;const P=ne[hi]=N=>{O||(O=!0,G(),N?U(E,[ne]):U(M,[ne]),ne[hi]=void 0,D[J]===e&&delete D[J])};D[J]=e,x?ie(x,[ne,P]):P()},clone(ne){const G=Ed(ne,t,r,o,s);return s&&s(G),G}};return le}function Yf(e){if(Au(e))return e=no(e),e.children=null,e}function wv(e){if(!Au(e))return Ly(e.type)&&e.children?Ny(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ge(r.default))return r.default()}}function ea(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ea(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 Py(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===nt?(f.patchFlag&128&&s++,o=o.concat(Py(f.children,t,d))):(t||f.type!==nn)&&o.push(d!=null?no(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function at(e,t){return Ge(e)?en({name:e.name},t,{setup:e}):e}function Ry(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Kc=new WeakMap;function Hl(e,t,r,o,s=!1){if(Be(e)){e.forEach((M,E)=>Hl(M,t&&(Be(t)?t[E]:t),r,o,s));return}if(Ts(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Hl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Ru(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===mt?d.refs={}:d.refs,m=d.setupState,b=vt(m),x=m===mt?G0:M=>wt(b,M);if(p!=null&&p!==h){if(xv(t),zt(p))v[p]=null,x(p)&&(m[p]=null);else if(kt(p)){p.value=null;const M=t;M.k&&(v[M.k]=null)}}if(Ge(h))Sa(h,d,12,[f,v]);else{const M=zt(h),E=kt(h);if(M||E){const A=()=>{if(e.f){const L=M?x(h)?m[h]:v[h]:h.value;if(s)Be(L)&&yh(L,c);else if(Be(L))L.includes(c)||L.push(c);else if(M)v[h]=[c],x(h)&&(m[h]=v[h]);else{const $=[c];h.value=$,e.k&&(v[e.k]=$)}}else M?(v[h]=f,x(h)&&(m[h]=f)):E&&(h.value=f,e.k&&(v[e.k]=f))};if(f){const L=()=>{A(),Kc.delete(e)};L.id=-1,Kc.set(e,L),Zn(L,r)}else xv(e),A()}}}function xv(e){const t=Kc.get(e);t&&(t.flags|=8,Kc.delete(e))}Su().requestIdleCallback;Su().cancelIdleCallback;const Ts=e=>!!e.type.__asyncLoader,Au=e=>e.type.__isKeepAlive;function KS(e,t){zy(e,"a",t)}function XS(e,t){zy(e,"da",t)}function zy(e,t,r=yn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Lu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Au(s.parent.vnode)&&YS(o,t,r,s),s=s.parent}}function YS(e,t,r,o){const s=Lu(t,e,o,!0);Mu(()=>{yh(o[t],s)},r)}function Lu(e,t,r=yn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{yi();const d=Ca(r),h=Mr(t,r,e,f);return d(),bi(),h});return o?s.unshift(c):s.push(c),c}}const Si=e=>(t,r=yn)=>{(!ra||e==="sp")&&Lu(e,(...o)=>t(...o),r)},ZS=Si("bm"),ao=Si("m"),JS=Si("bu"),QS=Si("u"),Ta=Si("bum"),Mu=Si("um"),ek=Si("sp"),tk=Si("rtg"),nk=Si("rtc");function rk(e,t=yn){Lu("ec",e,t)}const Lh="components",ik="directives";function zo(e,t){return Mh(Lh,e,!0,t)||e}const Iy=Symbol.for("v-ndc");function Ad(e){return zt(e)?Mh(Lh,e,!1)||e:e||Iy}function Pr(e){return Mh(ik,e)}function Mh(e,t,r=!0,o=!1){const s=fn||yn;if(s){const c=s.type;if(e===Lh){const d=Zk(c,!1);if(d&&(d===t||d===nr(t)||d===_u(nr(t))))return c}const f=_v(s[e]||c[e],t)||_v(s.appContext[e],t);return!f&&o?c:f}}function _v(e,t){return e&&(e[t]||e[nr(t)]||e[_u(nr(t))])}function ur(e,t,r,o){let s;const c=r,f=Be(e);if(f||zt(e)){const d=f&&Ss(e);let h=!1,p=!1;d&&(h=!cr(e),p=to(e),e=Cu(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?jc(cn(e[v])):cn(e[v]):e[v],v,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 ok(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Be(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 bn(e,t,r={},o,s){if(fn.ce||fn.parent&&Ts(fn.parent)&&fn.parent.ce)return t!=="default"&&(r.name=t),oe(),Je(nt,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&Dy(c(r)),d=r.key||f&&f.key,h=Je(nt,{key:(d&&!Lr(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 Dy(e){return e.some(t=>Is(t)?!(t.type===nn||t.type===nt&&!Dy(t.children)):!0)?e:null}function sk(e,t){const r={};for(const o in e)r[Mc(o)]=e[o];return r}const Ld=e=>e?cb(e)?Ru(e):Ld(e.parent):null,Bl=en(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=>Ld(e.parent),$root:e=>Ld(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>By(e),$forceUpdate:e=>e.f||(e.f=()=>{Ah(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>Mk.bind(e)}),Zf=(e,t)=>e!==mt&&!e.__isScriptSetup&&wt(e,t),lk={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 x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Zf(o,t))return f[t]=1,o[t];if(s!==mt&&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!==mt&&wt(r,t))return f[t]=4,r[t];Md&&(f[t]=0)}}const v=Bl[t];let m,b;if(v)return t==="$attrs"&&vn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==mt&&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 Zf(s,t)?(s[t]=r,!0):o!==mt&&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,type:f}},d){let h,p;return!!(r[d]||e!==mt&&d[0]!=="$"&&wt(e,d)||Zf(t,d)||(h=c[0])&&wt(h,d)||wt(o,d)||wt(Bl,d)||wt(s.config.globalProperties,d)||(p=f.__cssModules)&&p[d])},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 ak(){return Fy().slots}function ck(){return Fy().attrs}function Fy(e){const t=ki();return t.setupContext||(t.setupContext=fb(t))}function Xc(e){return Be(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function ta(e,t){return!e||!t?e||t:Be(e)&&Be(t)?e.concat(t):en({},Xc(e),Xc(t))}let Md=!0;function uk(e){const t=By(e),r=e.proxy,o=e.ctx;Md=!1,t.beforeCreate&&Sv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:x,updated:M,activated:E,deactivated:A,beforeDestroy:L,beforeUnmount:$,destroyed:R,unmounted:C,render:D,renderTracked:U,renderTriggered:ie,errorCaptured:le,serverPrefetch:ne,expose:G,inheritAttrs:J,components:O,directives:P,filters:N}=t;if(p&&fk(p,o,null),f)for(const V in f){const re=f[V];Ge(re)&&(o[V]=re.bind(r))}if(s){const V=s.call(r,r);St(V)&&(e.data=tr(V))}if(Md=!0,c)for(const V in c){const re=c[V],me=Ge(re)?re.bind(r,r):Ge(re.get)?re.get.bind(r,r):Ur,Se=!Ge(re)&&Ge(re.set)?re.set.bind(r):Ur,Re=_e({get:me,set:Se});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>Re.value,set:je=>Re.value=je})}if(d)for(const V in d)Hy(d[V],o,r,V);if(h){const V=Ge(h)?h.call(r):h;Reflect.ownKeys(V).forEach(re=>{kr(re,V[re])})}v&&Sv(v,e,"c");function F(V,re){Be(re)?re.forEach(me=>V(me.bind(r))):re&&V(re.bind(r))}if(F(ZS,m),F(ao,b),F(JS,x),F(QS,M),F(KS,E),F(XS,A),F(rk,le),F(nk,U),F(tk,ie),F(Ta,$),F(Mu,C),F(ek,ne),Be(G))if(G.length){const V=e.exposed||(e.exposed={});G.forEach(re=>{Object.defineProperty(V,re,{get:()=>r[re],set:me=>r[re]=me,enumerable:!0})})}else e.exposed||(e.exposed={});D&&e.render===Ur&&(e.render=D),J!=null&&(e.inheritAttrs=J),O&&(e.components=O),P&&(e.directives=P),ne&&Ry(e)}function fk(e,t,r=Ur){Be(e)&&(e=$d(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=mn(s.from||o,s.default,!0):c=mn(s.from||o):c=mn(s),kt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Sv(e,t,r){Mr(Be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Hy(e,t,r,o){let s=o.includes(".")?eb(r,o):()=>r[o];if(zt(e)){const c=t[e];Ge(c)&&_t(s,c)}else if(Ge(e))_t(s,e.bind(r));else if(St(e))if(Be(e))e.forEach(c=>Hy(c,t,r,o));else{const c=Ge(e.handler)?e.handler.bind(r):t[e.handler];Ge(c)&&_t(s,c,e)}}function By(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=>Yc(h,p,f,!0)),Yc(h,t,f)),St(t)&&c.set(t,h),h}function Yc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Yc(e,c,r,!0),s&&s.forEach(f=>Yc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=dk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const dk={data:kv,props:Tv,emits:Tv,methods:Ol,computed:Ol,beforeCreate:An,created:An,beforeMount:An,mounted:An,beforeUpdate:An,updated:An,beforeDestroy:An,beforeUnmount:An,destroyed:An,unmounted:An,activated:An,deactivated:An,errorCaptured:An,serverPrefetch:An,components:Ol,directives:Ol,watch:pk,provide:kv,inject:hk};function kv(e,t){return t?e?function(){return en(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function hk(e,t){return Ol($d(e),$d(t))}function $d(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function An(e,t){return e?[...new Set([].concat(e,t))]:t}function Ol(e,t){return e?en(Object.create(null),e,t):t}function Tv(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:en(Object.create(null),Xc(e),Xc(t??{})):t}function pk(e,t){if(!e)return t;if(!t)return e;const r=en(Object.create(null),e);for(const o in t)r[o]=An(e[o],t[o]);return r}function Wy(){return{app:null,config:{isNativeTag:G0,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 gk=0;function vk(e,t){return function(o,s=null){Ge(o)||(o=en({},o)),s!=null&&!St(s)&&(s=null);const c=Wy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:gk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Qk,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ge(v.install)?(f.add(v),v.install(p,...m)):Ge(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 x=p._ceVNode||Oe(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,v,b),h=!0,p._container=v,v.__vue_app__=p,Ru(x.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Mr(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=Po;Po=p;try{return v()}finally{Po=m}}};return p}}let Po=null;function kr(e,t){if(yn){let r=yn.provides;const o=yn.parent&&yn.parent.provides;o===r&&(r=yn.provides=Object.create(o)),r[e]=t}}function mn(e,t,r=!1){const o=ki();if(o||Po){let s=Po?Po._context.provides:o?o.parent==null||o.ce?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&&Ge(t)?t.call(o&&o.proxy):t}}function qy(){return!!(ki()||Po)}const jy={},Uy=()=>Object.create(jy),Vy=e=>Object.getPrototypeOf(e)===jy;function mk(e,t,r,o=!1){const s={},c=Uy();e.propsDefaults=Object.create(null),Gy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:kh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function yk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(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(Ou(e.emitsOptions,b))continue;const x=t[b];if(h)if(wt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const M=nr(b);s[M]=Nd(h,d,M,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{Gy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=_i(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Nd(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&&pi(e.attrs,"set","")}function Gy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Il(h))continue;const p=t[h];let v;s&&wt(s,v=nr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Ou(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||mt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Nd(s,h,m,p[m],e,!wt(p,m))}}return f}function Nd(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&&Ge(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Ca(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===_i(r))&&(o=!0))}return o}const bk=new WeakMap;function Ky(e,t,r=!1){const o=r?bk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ge(e)){const v=m=>{h=!0;const[b,x]=Ky(m,t,!0);en(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,xs),xs;if(Be(c))for(let v=0;v<c.length;v++){const m=nr(c[v]);Cv(m)&&(f[m]=mt)}else if(c)for(const v in c){const m=nr(v);if(Cv(m)){const b=c[v],x=f[m]=Be(b)||Ge(b)?{type:b}:en({},b),M=x.type;let E=!1,A=!0;if(Be(M))for(let L=0;L<M.length;++L){const $=M[L],R=Ge($)&&$.name;if(R==="Boolean"){E=!0;break}else R==="String"&&(A=!1)}else E=Ge(M)&&M.name==="Boolean";x[0]=E,x[1]=A,(E||wt(x,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function Cv(e){return e[0]!=="$"&&!Il(e)}const $h=e=>e==="_"||e==="_ctx"||e==="$stable",Nh=e=>Be(e)?e.map(Tr):[Tr(e)],wk=(e,t,r)=>{if(t._n)return t;const o=it((...s)=>Nh(t(...s)),r);return o._c=!1,o},Xy=(e,t,r)=>{const o=e._ctx;for(const s in e){if($h(s))continue;const c=e[s];if(Ge(c))t[s]=wk(s,c,o);else if(c!=null){const f=Nh(c);t[s]=()=>f}}},Yy=(e,t)=>{const r=Nh(t);e.slots.default=()=>r},Zy=(e,t,r)=>{for(const o in t)(r||!$h(o))&&(e[o]=t[o])},xk=(e,t,r)=>{const o=e.slots=Uy();if(e.vnode.shapeFlag&32){const s=t._;s?(Zy(o,t,r),r&&Z0(o,"_",s,!0)):Xy(t,o)}else t&&Yy(e,t)},_k=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Zy(s,t,r):(c=!t.$stable,Xy(t,s)),f=t}else t&&(Yy(e,t),f={default:1});if(c)for(const d in s)!$h(d)&&f[d]==null&&delete s[d]},Zn=Wk;function Sk(e){return kk(e)}function kk(e,t){const r=Su();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:x=Ur,insertStaticContent:M}=e,E=(z,j,X,ue=null,he=null,fe=null,Ce=void 0,Ee=null,ve=!!j.dynamicChildren)=>{if(z===j)return;z&&!jr(z,j)&&(ue=B(z),je(z,he,fe,!0),z=null),j.patchFlag===-2&&(ve=!1,j.dynamicChildren=null);const{type:be,ref:We,shapeFlag:$e}=j;switch(be){case Pu:A(z,j,X,ue);break;case nn:L(z,j,X,ue);break;case Qf:z==null&&$(j,X,ue,Ce);break;case nt:O(z,j,X,ue,he,fe,Ce,Ee,ve);break;default:$e&1?D(z,j,X,ue,he,fe,Ce,Ee,ve):$e&6?P(z,j,X,ue,he,fe,Ce,Ee,ve):($e&64||$e&128)&&be.process(z,j,X,ue,he,fe,Ce,Ee,ve,ae)}We!=null&&he?Hl(We,z&&z.ref,fe,j||z,!j):We==null&&z&&z.ref!=null&&Hl(z.ref,null,fe,z,!0)},A=(z,j,X,ue)=>{if(z==null)o(j.el=d(j.children),X,ue);else{const he=j.el=z.el;j.children!==z.children&&p(he,j.children)}},L=(z,j,X,ue)=>{z==null?o(j.el=h(j.children||""),X,ue):j.el=z.el},$=(z,j,X,ue)=>{[z.el,z.anchor]=M(z.children,j,X,ue,z.el,z.anchor)},R=({el:z,anchor:j},X,ue)=>{let he;for(;z&&z!==j;)he=b(z),o(z,X,ue),z=he;o(j,X,ue)},C=({el:z,anchor:j})=>{let X;for(;z&&z!==j;)X=b(z),s(z),z=X;s(j)},D=(z,j,X,ue,he,fe,Ce,Ee,ve)=>{j.type==="svg"?Ce="svg":j.type==="math"&&(Ce="mathml"),z==null?U(j,X,ue,he,fe,Ce,Ee,ve):ne(z,j,he,fe,Ce,Ee,ve)},U=(z,j,X,ue,he,fe,Ce,Ee)=>{let ve,be;const{props:We,shapeFlag:$e,transition:De,dirs:Ve}=z;if(ve=z.el=f(z.type,fe,We&&We.is,We),$e&8?v(ve,z.children):$e&16&&le(z.children,ve,null,ue,he,Jf(z,fe),Ce,Ee),Ve&&_o(z,null,ue,"created"),ie(ve,z,z.scopeId,Ce,ue),We){for(const st in We)st!=="value"&&!Il(st)&&c(ve,st,null,We[st],fe,ue);"value"in We&&c(ve,"value",null,We.value,fe),(be=We.onVnodeBeforeMount)&&Wr(be,ue,z)}Ve&&_o(z,null,ue,"beforeMount");const rt=Tk(he,De);rt&&De.beforeEnter(ve),o(ve,j,X),((be=We&&We.onVnodeMounted)||rt||Ve)&&Zn(()=>{be&&Wr(be,ue,z),rt&&De.enter(ve),Ve&&_o(z,null,ue,"mounted")},he)},ie=(z,j,X,ue,he)=>{if(X&&x(z,X),ue)for(let fe=0;fe<ue.length;fe++)x(z,ue[fe]);if(he){let fe=he.subTree;if(j===fe||rb(fe.type)&&(fe.ssContent===j||fe.ssFallback===j)){const Ce=he.vnode;ie(z,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},le=(z,j,X,ue,he,fe,Ce,Ee,ve=0)=>{for(let be=ve;be<z.length;be++){const We=z[be]=Ee?ji(z[be]):Tr(z[be]);E(null,We,j,X,ue,he,fe,Ce,Ee)}},ne=(z,j,X,ue,he,fe,Ce)=>{const Ee=j.el=z.el;let{patchFlag:ve,dynamicChildren:be,dirs:We}=j;ve|=z.patchFlag&16;const $e=z.props||mt,De=j.props||mt;let Ve;if(X&&So(X,!1),(Ve=De.onVnodeBeforeUpdate)&&Wr(Ve,X,j,z),We&&_o(j,z,X,"beforeUpdate"),X&&So(X,!0),($e.innerHTML&&De.innerHTML==null||$e.textContent&&De.textContent==null)&&v(Ee,""),be?G(z.dynamicChildren,be,Ee,X,ue,Jf(j,he),fe):Ce||re(z,j,Ee,null,X,ue,Jf(j,he),fe,!1),ve>0){if(ve&16)J(Ee,$e,De,X,he);else if(ve&2&&$e.class!==De.class&&c(Ee,"class",null,De.class,he),ve&4&&c(Ee,"style",$e.style,De.style,he),ve&8){const rt=j.dynamicProps;for(let st=0;st<rt.length;st++){const ut=rt[st],Mt=$e[ut],lt=De[ut];(lt!==Mt||ut==="value")&&c(Ee,ut,Mt,lt,he,X)}}ve&1&&z.children!==j.children&&v(Ee,j.children)}else!Ce&&be==null&&J(Ee,$e,De,X,he);((Ve=De.onVnodeUpdated)||We)&&Zn(()=>{Ve&&Wr(Ve,X,j,z),We&&_o(j,z,X,"updated")},ue)},G=(z,j,X,ue,he,fe,Ce)=>{for(let Ee=0;Ee<j.length;Ee++){const ve=z[Ee],be=j[Ee],We=ve.el&&(ve.type===nt||!jr(ve,be)||ve.shapeFlag&198)?m(ve.el):X;E(ve,be,We,null,ue,he,fe,Ce,!0)}},J=(z,j,X,ue,he)=>{if(j!==X){if(j!==mt)for(const fe in j)!Il(fe)&&!(fe in X)&&c(z,fe,j[fe],null,he,ue);for(const fe in X){if(Il(fe))continue;const Ce=X[fe],Ee=j[fe];Ce!==Ee&&fe!=="value"&&c(z,fe,Ee,Ce,he,ue)}"value"in X&&c(z,"value",j.value,X.value,he)}},O=(z,j,X,ue,he,fe,Ce,Ee,ve)=>{const be=j.el=z?z.el:d(""),We=j.anchor=z?z.anchor:d("");let{patchFlag:$e,dynamicChildren:De,slotScopeIds:Ve}=j;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),z==null?(o(be,X,ue),o(We,X,ue),le(j.children||[],X,We,he,fe,Ce,Ee,ve)):$e>0&&$e&64&&De&&z.dynamicChildren?(G(z.dynamicChildren,De,X,he,fe,Ce,Ee),(j.key!=null||he&&j===he.subTree)&&Jy(z,j,!0)):re(z,j,X,We,he,fe,Ce,Ee,ve)},P=(z,j,X,ue,he,fe,Ce,Ee,ve)=>{j.slotScopeIds=Ee,z==null?j.shapeFlag&512?he.ctx.activate(j,X,ue,Ce,ve):N(j,X,ue,he,fe,Ce,ve):S(z,j,ve)},N=(z,j,X,ue,he,fe,Ce)=>{const Ee=z.component=Gk(z,ue,he);if(Au(z)&&(Ee.ctx.renderer=ae),Kk(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,F,Ce),!z.el){const ve=Ee.subTree=Oe(nn);L(null,ve,j,X),z.placeholder=ve.el}}else F(Ee,z,j,X,he,fe,Ce)},S=(z,j,X)=>{const ue=j.component=z.component;if(zk(z,j,X))if(ue.asyncDep&&!ue.asyncResolved){V(ue,j,X);return}else ue.next=j,ue.update();else j.el=z.el,ue.vnode=j},F=(z,j,X,ue,he,fe,Ce)=>{const Ee=()=>{if(z.isMounted){let{next:$e,bu:De,u:Ve,parent:rt,vnode:st}=z;{const Ft=Qy(z);if(Ft){$e&&($e.el=st.el,V(z,$e,Ce)),Ft.asyncDep.then(()=>{z.isUnmounted||Ee()});return}}let ut=$e,Mt;So(z,!1),$e?($e.el=st.el,V(z,$e,Ce)):$e=st,De&&$c(De),(Mt=$e.props&&$e.props.onVnodeBeforeUpdate)&&Wr(Mt,rt,$e,st),So(z,!0);const lt=Av(z),Ut=z.subTree;z.subTree=lt,E(Ut,lt,m(Ut.el),B(Ut),z,he,fe),$e.el=lt.el,ut===null&&Ph(z,lt.el),Ve&&Zn(Ve,he),(Mt=$e.props&&$e.props.onVnodeUpdated)&&Zn(()=>Wr(Mt,rt,$e,st),he)}else{let $e;const{el:De,props:Ve}=j,{bm:rt,m:st,parent:ut,root:Mt,type:lt}=z,Ut=Ts(j);So(z,!1),rt&&$c(rt),!Ut&&($e=Ve&&Ve.onVnodeBeforeMount)&&Wr($e,ut,j),So(z,!0);{Mt.ce&&Mt.ce._def.shadowRoot!==!1&&Mt.ce._injectChildStyle(lt);const Ft=z.subTree=Av(z);E(null,Ft,X,ue,z,he,fe),j.el=Ft.el}if(st&&Zn(st,he),!Ut&&($e=Ve&&Ve.onVnodeMounted)){const Ft=j;Zn(()=>Wr($e,ut,Ft),he)}(j.shapeFlag&256||ut&&Ts(ut.vnode)&&ut.vnode.shapeFlag&256)&&z.a&&Zn(z.a,he),z.isMounted=!0,j=X=ue=null}};z.scope.on();const ve=z.effect=new iy(Ee);z.scope.off();const be=z.update=ve.run.bind(ve),We=z.job=ve.runIfDirty.bind(ve);We.i=z,We.id=z.uid,ve.scheduler=()=>Ah(We),So(z,!0),be()},V=(z,j,X)=>{j.component=z;const ue=z.vnode.props;z.vnode=j,z.next=null,yk(z,j.props,ue,X),_k(z,j.children,X),yi(),bv(z),bi()},re=(z,j,X,ue,he,fe,Ce,Ee,ve=!1)=>{const be=z&&z.children,We=z?z.shapeFlag:0,$e=j.children,{patchFlag:De,shapeFlag:Ve}=j;if(De>0){if(De&128){Se(be,$e,X,ue,he,fe,Ce,Ee,ve);return}else if(De&256){me(be,$e,X,ue,he,fe,Ce,Ee,ve);return}}Ve&8?(We&16&&te(be,he,fe),$e!==be&&v(X,$e)):We&16?Ve&16?Se(be,$e,X,ue,he,fe,Ce,Ee,ve):te(be,he,fe,!0):(We&8&&v(X,""),Ve&16&&le($e,X,ue,he,fe,Ce,Ee,ve))},me=(z,j,X,ue,he,fe,Ce,Ee,ve)=>{z=z||xs,j=j||xs;const be=z.length,We=j.length,$e=Math.min(be,We);let De;for(De=0;De<$e;De++){const Ve=j[De]=ve?ji(j[De]):Tr(j[De]);E(z[De],Ve,X,null,he,fe,Ce,Ee,ve)}be>We?te(z,he,fe,!0,!1,$e):le(j,X,ue,he,fe,Ce,Ee,ve,$e)},Se=(z,j,X,ue,he,fe,Ce,Ee,ve)=>{let be=0;const We=j.length;let $e=z.length-1,De=We-1;for(;be<=$e&&be<=De;){const Ve=z[be],rt=j[be]=ve?ji(j[be]):Tr(j[be]);if(jr(Ve,rt))E(Ve,rt,X,null,he,fe,Ce,Ee,ve);else break;be++}for(;be<=$e&&be<=De;){const Ve=z[$e],rt=j[De]=ve?ji(j[De]):Tr(j[De]);if(jr(Ve,rt))E(Ve,rt,X,null,he,fe,Ce,Ee,ve);else break;$e--,De--}if(be>$e){if(be<=De){const Ve=De+1,rt=Ve<We?j[Ve].el:ue;for(;be<=De;)E(null,j[be]=ve?ji(j[be]):Tr(j[be]),X,rt,he,fe,Ce,Ee,ve),be++}}else if(be>De)for(;be<=$e;)je(z[be],he,fe,!0),be++;else{const Ve=be,rt=be,st=new Map;for(be=rt;be<=De;be++){const It=j[be]=ve?ji(j[be]):Tr(j[be]);It.key!=null&&st.set(It.key,be)}let ut,Mt=0;const lt=De-rt+1;let Ut=!1,Ft=0;const zn=new Array(lt);for(be=0;be<lt;be++)zn[be]=0;for(be=Ve;be<=$e;be++){const It=z[be];if(Mt>=lt){je(It,he,fe,!0);continue}let In;if(It.key!=null)In=st.get(It.key);else for(ut=rt;ut<=De;ut++)if(zn[ut-rt]===0&&jr(It,j[ut])){In=ut;break}In===void 0?je(It,he,fe,!0):(zn[In-rt]=be+1,In>=Ft?Ft=In:Ut=!0,E(It,j[In],X,null,he,fe,Ce,Ee,ve),Mt++)}const zr=Ut?Ck(zn):xs;for(ut=zr.length-1,be=lt-1;be>=0;be--){const It=rt+be,In=j[It],tt=j[It+1],co=It+1<We?tt.el||tt.placeholder:ue;zn[be]===0?E(null,In,X,co,he,fe,Ce,Ee,ve):Ut&&(ut<0||be!==zr[ut]?Re(In,X,co,2):ut--)}}},Re=(z,j,X,ue,he=null)=>{const{el:fe,type:Ce,transition:Ee,children:ve,shapeFlag:be}=z;if(be&6){Re(z.component.subTree,j,X,ue);return}if(be&128){z.suspense.move(j,X,ue);return}if(be&64){Ce.move(z,j,X,ae);return}if(Ce===nt){o(fe,j,X);for(let $e=0;$e<ve.length;$e++)Re(ve[$e],j,X,ue);o(z.anchor,j,X);return}if(Ce===Qf){R(z,j,X);return}if(ue!==2&&be&1&&Ee)if(ue===0)Ee.beforeEnter(fe),o(fe,j,X),Zn(()=>Ee.enter(fe),he);else{const{leave:$e,delayLeave:De,afterLeave:Ve}=Ee,rt=()=>{z.ctx.isUnmounted?s(fe):o(fe,j,X)},st=()=>{fe._isLeaving&&fe[hi](!0),$e(fe,()=>{rt(),Ve&&Ve()})};De?De(fe,rt,st):st()}else o(fe,j,X)},je=(z,j,X,ue=!1,he=!1)=>{const{type:fe,props:Ce,ref:Ee,children:ve,dynamicChildren:be,shapeFlag:We,patchFlag:$e,dirs:De,cacheIndex:Ve}=z;if($e===-2&&(he=!1),Ee!=null&&(yi(),Hl(Ee,null,X,z,!0),bi()),Ve!=null&&(j.renderCache[Ve]=void 0),We&256){j.ctx.deactivate(z);return}const rt=We&1&&De,st=!Ts(z);let ut;if(st&&(ut=Ce&&Ce.onVnodeBeforeUnmount)&&Wr(ut,j,z),We&6)Ye(z.component,X,ue);else{if(We&128){z.suspense.unmount(X,ue);return}rt&&_o(z,null,j,"beforeUnmount"),We&64?z.type.remove(z,j,X,ae,ue):be&&!be.hasOnce&&(fe!==nt||$e>0&&$e&64)?te(be,j,X,!1,!0):(fe===nt&&$e&384||!he&&We&16)&&te(ve,j,X),ue&&Qe(z)}(st&&(ut=Ce&&Ce.onVnodeUnmounted)||rt)&&Zn(()=>{ut&&Wr(ut,j,z),rt&&_o(z,null,j,"unmounted")},X)},Qe=z=>{const{type:j,el:X,anchor:ue,transition:he}=z;if(j===nt){Xe(X,ue);return}if(j===Qf){C(z);return}const fe=()=>{s(X),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(z.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,ve=()=>Ce(X,fe);Ee?Ee(z.el,fe,ve):ve()}else fe()},Xe=(z,j)=>{let X;for(;z!==j;)X=b(z),s(z),z=X;s(j)},Ye=(z,j,X)=>{const{bum:ue,scope:he,job:fe,subTree:Ce,um:Ee,m:ve,a:be}=z;Ev(ve),Ev(be),ue&&$c(ue),he.stop(),fe&&(fe.flags|=8,je(Ce,z,j,X)),Ee&&Zn(Ee,j),Zn(()=>{z.isUnmounted=!0},j)},te=(z,j,X,ue=!1,he=!1,fe=0)=>{for(let Ce=fe;Ce<z.length;Ce++)je(z[Ce],j,X,ue,he)},B=z=>{if(z.shapeFlag&6)return B(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const j=b(z.anchor||z.el),X=j&&j[jS];return X?b(X):j};let Z=!1;const K=(z,j,X)=>{z==null?j._vnode&&je(j._vnode,null,null,!0):E(j._vnode||null,z,j,null,null,null,X),j._vnode=z,Z||(Z=!0,bv(),ky(),Z=!1)},ae={p:E,um:je,m:Re,r:Qe,mt:N,mc:le,pc:re,pbc:G,n:B,o:e};return{render:K,hydrate:void 0,createApp:vk(K)}}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 So({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jy(e,t,r=!1){const o=e.children,s=t.children;if(Be(o)&&Be(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]=ji(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Jy(f,d)),d.type===Pu&&d.patchFlag!==-1&&(d.el=f.el),d.type===nn&&!d.el&&(d.el=f.el)}}function Ck(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 Ev(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ek=Symbol.for("v-scx"),Ak=()=>mn(Ek);function Oh(e,t){return $u(e,null,t)}function Lk(e,t){return $u(e,null,{flush:"sync"})}function _t(e,t,r){return $u(e,t,r)}function $u(e,t,r=mt){const{immediate:o,deep:s,flush:c,once:f}=r,d=en({},r),h=t&&o||!t&&c!=="post";let p;if(ra){if(c==="sync"){const x=Ak();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Ur,x.resume=Ur,x.pause=Ur,x}}const v=yn;d.call=(x,M,E)=>Mr(x,v,M,E);let m=!1;c==="post"?d.scheduler=x=>{Zn(x,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(x,M)=>{M?x():Ah(x)}),d.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const b=BS(e,t,d);return ra&&(p?p.push(b):h&&b()),b}function Mk(e,t,r){const o=this.proxy,s=zt(e)?e.includes(".")?eb(o,e):()=>o[e]:e.bind(o,o);let c;Ge(t)?c=t:(c=t.handler,r=t);const f=Ca(this),d=$u(s,c.bind(o),r);return f(),d}function eb(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 Nu(e,t,r=mt){const o=ki(),s=nr(t),c=_i(t),f=tb(e,s),d=wy((h,p)=>{let v,m=mt,b;return Lk(()=>{const x=e[s];qn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const M=r.set?r.set(x):x;if(!qn(M,v)&&!(m!==mt&&qn(x,m)))return;const E=o.vnode.props;E&&(t in E||s in E||c in E)&&(`onUpdate:${t}`in E||`onUpdate:${s}`in E||`onUpdate:${c}`in E)||(v=x,p()),o.emit(`update:${t}`,M),qn(x,M)&&qn(x,m)&&!qn(M,b)&&p(),m=x,b=M}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||mt:d,done:!1}:{done:!0}}}},d}const tb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nr(t)}Modifiers`]||e[`${_i(t)}Modifiers`];function $k(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const c=t.startsWith("update:"),f=c&&tb(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>zt(v)?v.trim():v)),f.number&&(s=r.map(_d)));let d,h=o[d=Mc(t)]||o[d=Mc(nr(t))];!h&&c&&(h=o[d=Mc(_i(t))]),h&&Mr(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,Mr(p,e,6,s)}}const Nk=new WeakMap;function nb(e,t,r=!1){const o=r?Nk:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ge(e)){const h=p=>{const v=nb(p,t,!0);v&&(d=!0,en(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):(Be(c)?c.forEach(h=>f[h]=null):en(f,c),St(e)&&o.set(e,f),f)}function Ou(e,t){return!e||!bu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,_i(t))||wt(e,t))}function Av(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:x,ctx:M,inheritAttrs:E}=e,A=Gc(e);let L,$;try{if(r.shapeFlag&4){const C=s||o,D=C;L=Tr(p.call(D,C,v,m,x,b,M)),$=d}else{const C=t;L=Tr(C.length>1?C(m,{attrs:d,slots:f,emit:h}):C(m,null)),$=t.props?d:Pk(d)}}catch(C){Wl.length=0,ka(C,e,1),L=Oe(nn)}let R=L;if($&&E!==!1){const C=Object.keys($),{shapeFlag:D}=R;C.length&&D&7&&(c&&C.some(mh)&&($=Rk($,c)),R=no(R,$,!1,!0))}return r.dirs&&(R=no(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&ea(R,r.transition),L=R,Gc(A),L}function Ok(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Is(s)){if(s.type!==nn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Pk=e=>{let t;for(const r in e)(r==="class"||r==="style"||bu(r))&&((t||(t={}))[r]=e[r]);return t},Rk=(e,t)=>{const r={};for(const o in e)(!mh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function zk(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?Lv(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]&&!Ou(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Lv(o,f,p):!0:!!f;return!1}function Lv(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]&&!Ou(r,c))return!0}return!1}function Ph({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 rb=e=>e.__isSuspense;let Od=0;const Ik={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Dk(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}Fk(e,t,r,o,s,f,d,h,p)}},hydrate:Hk,normalize:Bk},Rh=Ik;function na(e,t){const r=e.props&&e.props[t];Ge(r)&&r()}function Dk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=ib(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?(na(e,"onPending"),na(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Cs(b,e.ssFallback)):b.resolve(!1,!0)}function Fk(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,x=t.ssFallback,{activeBranch:M,pendingBranch:E,isInFallback:A,isHydrating:L}=m;if(E)m.pendingBranch=b,jr(E,b)?(h(E,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():A&&(L||(h(M,x,r,o,s,null,c,f,d),Cs(m,x)))):(m.pendingId=Od++,L?(m.isHydrating=!1,m.activeBranch=E):p(E,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),A?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(M,x,r,o,s,null,c,f,d),Cs(m,x))):M&&jr(M,b)?(h(M,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(M&&jr(M,b))h(M,b,r,o,s,m,c,f,d),Cs(m,b);else if(na(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Od++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:$,pendingId:R}=m;$>0?setTimeout(()=>{m.pendingId===R&&m.fallback(x)},$):$===0&&m.fallback(x)}}function ib(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:x,n:M,o:{parentNode:E,remove:A}}=p;let L;const $=qk(e);$&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const R=e.props?J0(e.props.timeout):void 0,C=c,D={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Od++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(U=!1,ie=!1){const{vnode:le,activeBranch:ne,pendingBranch:G,pendingId:J,effects:O,parentComponent:P,container:N}=D;let S=!1;D.isHydrating?D.isHydrating=!1:U||(S=ne&&G.transition&&G.transition.mode==="out-in",S&&(ne.transition.afterLeave=()=>{J===D.pendingId&&(b(G,N,c===C?M(ne):c,0),Cd(O))}),ne&&(E(ne.el)===N&&(c=M(ne)),x(ne,P,D,!0)),S||b(G,N,c,0)),Cs(D,G),D.pendingBranch=null,D.isInFallback=!1;let F=D.parent,V=!1;for(;F;){if(F.pendingBranch){F.effects.push(...O),V=!0;break}F=F.parent}!V&&!S&&Cd(O),D.effects=[],$&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!ie&&t.resolve()),na(le,"onResolve")},fallback(U){if(!D.pendingBranch)return;const{vnode:ie,activeBranch:le,parentComponent:ne,container:G,namespace:J}=D;na(ie,"onFallback");const O=M(le),P=()=>{D.isInFallback&&(m(null,U,G,O,ne,null,J,d,h),Cs(D,U))},N=U.transition&&U.transition.mode==="out-in";N&&(le.transition.afterLeave=P),D.isInFallback=!0,x(le,ne,null,!0),N||P()},move(U,ie,le){D.activeBranch&&b(D.activeBranch,U,ie,le),D.container=U},next(){return D.activeBranch&&M(D.activeBranch)},registerDep(U,ie,le){const ne=!!D.pendingBranch;ne&&D.deps++;const G=U.vnode.el;U.asyncDep.catch(J=>{ka(J,U,0)}).then(J=>{if(U.isUnmounted||D.isUnmounted||D.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:O}=U;Rd(U,J),G&&(O.el=G);const P=!G&&U.subTree.el;ie(U,O,E(G||U.subTree.el),G?null:M(U.subTree),D,f,le),P&&A(P),Ph(U,O.el),ne&&--D.deps===0&&D.resolve()})},unmount(U,ie){D.isUnmounted=!0,D.activeBranch&&x(D.activeBranch,r,U,ie),D.pendingBranch&&x(D.pendingBranch,r,U,ie)}};return D}function Hk(e,t,r,o,s,c,f,d,h){const p=t.suspense=ib(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 Bk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Mv(o?r.default:r),e.ssFallback=o?Mv(r.fallback):Oe(nn)}function Mv(e){let t;if(Ge(e)){const r=Rs&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=Un,ob())}return Be(e)&&(e=Ok(e)),e=Tr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Wk(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):Cd(e)}function Cs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Ph(o,s))}function qk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Pu=Symbol.for("v-txt"),nn=Symbol.for("v-cmt"),Qf=Symbol.for("v-stc"),Wl=[];let Un=null;function oe(e=!1){Wl.push(Un=e?null:[])}function ob(){Wl.pop(),Un=Wl[Wl.length-1]||null}let Rs=1;function zs(e,t=!1){Rs+=e,e<0&&Un&&t&&(Un.hasOnce=!0)}function sb(e){return e.dynamicChildren=Rs>0?Un||xs:null,ob(),Rs>0&&Un&&Un.push(e),e}function ye(e,t,r,o,s,c){return sb(Q(e,t,r,o,s,c,!0))}function Je(e,t,r,o,s){return sb(Oe(e,t,r,o,s,!0))}function Is(e){return e?e.__v_isVNode===!0:!1}function jr(e,t){return e.type===t.type&&e.key===t.key}const lb=({key:e})=>e??null,Nc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?zt(e)||kt(e)||Ge(e)?{i:fn,r:e,k:t,f:!!r}:e:null);function Q(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lb(t),ref:t&&Nc(t),scopeId:Eu,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:fn};return d?(zh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=zt(r)?8:16),Rs>0&&!f&&Un&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Un.push(h),h}const Oe=jk;function jk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Iy)&&(e=nn),Is(e)){const d=no(e,t,!0);return r&&zh(d,r),Rs>0&&!c&&Un&&(d.shapeFlag&6?Un[Un.indexOf(e)]=d:Un.push(d)),d.patchFlag=-2,d}if(Jk(e)&&(e=e.__vccOpts),t){t=ab(t);let{class:d,style:h}=t;d&&!zt(d)&&(t.class=ot(d)),St(h)&&(Ch(h)&&!Be(h)&&(h=en({},h)),t.style=Jt(h))}const f=zt(e)?1:rb(e)?128:Ly(e)?64:St(e)?4:Ge(e)?2:0;return Q(e,t,r,o,s,f,c,!0)}function ab(e){return e?Ch(e)||Vy(e)?en({},e):e:null}function no(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?mi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&lb(p),ref:t&&t.ref?r&&c?Be(c)?c.concat(Nc(t)):[c,Nc(t)]:Nc(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!==nt?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&&no(e.ssContent),ssFallback:e.ssFallback&&no(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&ea(v,h.clone(v)),v}function dt(e=" ",t=0){return Oe(Pu,null,e,t)}function qe(e="",t=!1){return t?(oe(),Je(nn,null,e)):Oe(nn,null,e)}function Tr(e){return e==null||typeof e=="boolean"?Oe(nn):Be(e)?Oe(nt,null,e.slice()):Is(e)?ji(e):Oe(Pu,null,String(e))}function ji(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:no(e)}function zh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Be(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),zh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Vy(t)?t._ctx=fn:s===3&&fn&&(fn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:fn},r=32):(t=String(t),o&64?(r=16,t=[dt(t)]):r=8);e.children=t,e.shapeFlag|=r}function mi(...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=ot([t.class,o.class]));else if(s==="style")t.style=Jt([t.style,o.style]);else if(bu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Be(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Wr(e,t,r,o=null){Mr(e,t,7,[r,o])}const Uk=Wy();let Vk=0;function Gk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Uk,c={uid:Vk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fS(!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:Ky(o,s),emitsOptions:nb(o,s),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:o.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,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=$k.bind(null,c),e.ce&&e.ce(c),c}let yn=null;const ki=()=>yn||fn;let Zc,Pd;{const e=Su(),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)}};Zc=t("__VUE_INSTANCE_SETTERS__",r=>yn=r),Pd=t("__VUE_SSR_SETTERS__",r=>ra=r)}const Ca=e=>{const t=yn;return Zc(e),e.scope.on(),()=>{e.scope.off(),Zc(t)}},$v=()=>{yn&&yn.scope.off(),Zc(null)};function cb(e){return e.vnode.shapeFlag&4}let ra=!1;function Kk(e,t=!1,r=!1){t&&Pd(t);const{props:o,children:s}=e.vnode,c=cb(e);mk(e,o,c,t),xk(e,s,r||t);const f=c?Xk(e,t):void 0;return t&&Pd(!1),f}function Xk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lk);const{setup:o}=r;if(o){yi();const s=e.setupContext=o.length>1?fb(e):null,c=Ca(e),f=Sa(o,e,0,[e.props,s]),d=K0(f);if(bi(),c(),(d||e.sp)&&!Ts(e)&&Ry(e),d){if(f.then($v,$v),t)return f.then(h=>{Rd(e,h)}).catch(h=>{ka(h,e,0)});e.asyncDep=f}else Rd(e,f)}else ub(e)}function Rd(e,t,r){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=by(t)),ub(e)}function ub(e,t,r){const o=e.type;e.render||(e.render=o.render||Ur);{const s=Ca(e);yi();try{uk(e)}finally{bi(),s()}}}const Yk={get(e,t){return vn(e,"get",""),e[t]}};function fb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Yk),slots:e.slots,emit:e.emit,expose:t}}function Ru(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(by(Eh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Bl)return Bl[r](e)},has(t,r){return r in t||r in Bl}})):e.proxy}function Zk(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Jk(e){return Ge(e)&&"__vccOpts"in e}const _e=(e,t)=>FS(e,t,ra);function Ea(e,t,r){const o=(c,f,d)=>{zs(-1);try{return Oe(c,f,d)}finally{zs(1)}},s=arguments.length;return s===2?St(t)&&!Be(t)?Is(t)?o(e,null,[t]):o(e,t):o(e,null,t):(s>3?r=Array.prototype.slice.call(arguments,2):s===3&&Is(r)&&(r=[r]),o(e,t,r))}const Qk="3.5.21";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.21
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let zd;const Nv=typeof window<"u"&&window.trustedTypes;if(Nv)try{zd=Nv.createPolicy("vue",{createHTML:e=>e})}catch{}const db=zd?e=>zd.createHTML(e):e=>e,eT="http://www.w3.org/2000/svg",tT="http://www.w3.org/1998/Math/MathML",fi=typeof document<"u"?document:null,Ov=fi&&fi.createElement("template"),nT={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"?fi.createElementNS(eT,e):t==="mathml"?fi.createElementNS(tT,e):r?fi.createElement(e,{is:r}):fi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>fi.createTextNode(e),createComment:e=>fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fi.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{Ov.innerHTML=db(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Ov.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]}},Di="transition",El="animation",ia=Symbol("_vtc"),hb={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},rT=en({},My,hb),iT=e=>(e.displayName="Transition",e.props=rT,e),oT=iT((e,{slots:t})=>Ea(GS,sT(e),t)),ko=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},Pv=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function sT(e){const t={};for(const O in e)O in hb||(t[O]=e[O]);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:x=`${r}-leave-to`}=e,M=lT(s),E=M&&M[0],A=M&&M[1],{onBeforeEnter:L,onEnter:$,onEnterCancelled:R,onLeave:C,onLeaveCancelled:D,onBeforeAppear:U=L,onAppear:ie=$,onAppearCancelled:le=R}=t,ne=(O,P,N,S)=>{O._enterCancelled=S,To(O,P?v:d),To(O,P?p:f),N&&N()},G=(O,P)=>{O._isLeaving=!1,To(O,m),To(O,x),To(O,b),P&&P()},J=O=>(P,N)=>{const S=O?ie:$,F=()=>ne(P,O,N);ko(S,[P,F]),Rv(()=>{To(P,O?h:c),ai(P,O?v:d),Pv(S)||zv(P,o,E,F)})};return en(t,{onBeforeEnter(O){ko(L,[O]),ai(O,c),ai(O,f)},onBeforeAppear(O){ko(U,[O]),ai(O,h),ai(O,p)},onEnter:J(!1),onAppear:J(!0),onLeave(O,P){O._isLeaving=!0;const N=()=>G(O,P);ai(O,m),O._enterCancelled?(ai(O,b),Fv()):(Fv(),ai(O,b)),Rv(()=>{O._isLeaving&&(To(O,m),ai(O,x),Pv(C)||zv(O,o,A,N))}),ko(C,[O,N])},onEnterCancelled(O){ne(O,!1,void 0,!0),ko(R,[O])},onAppearCancelled(O){ne(O,!0,void 0,!0),ko(le,[O])},onLeaveCancelled(O){G(O),ko(D,[O])}})}function lT(e){if(e==null)return null;if(St(e))return[ed(e.enter),ed(e.leave)];{const t=ed(e);return[t,t]}}function ed(e){return J0(e)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ia]||(e[ia]=new Set)).add(t)}function To(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ia];r&&(r.delete(t),r.size||(e[ia]=void 0))}function Rv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let aT=0;function zv(e,t,r,o){const s=e._endId=++aT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=cT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function cT(e,t){const r=window.getComputedStyle(e),o=M=>(r[M]||"").split(", "),s=o(`${Di}Delay`),c=o(`${Di}Duration`),f=Iv(s,c),d=o(`${El}Delay`),h=o(`${El}Duration`),p=Iv(d,h);let v=null,m=0,b=0;t===Di?f>0&&(v=Di,m=f,b=c.length):t===El?p>0&&(v=El,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Di:El:null,b=v?v===Di?c.length:h.length:0);const x=v===Di&&/\b(?:transform|all)(?:,|$)/.test(o(`${Di}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Iv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Dv(r)+Dv(e[o])))}function Dv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fv(){return document.body.offsetHeight}function uT(e,t,r){const o=e[ia];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Jc=Symbol("_vod"),pb=Symbol("_vsh"),Ki={name:"show",beforeMount(e,{value:t},{transition:r}){e[Jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Al(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),Al(e,!0),o.enter(e)):o.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e[Jc]:"none",e[pb]=!t}const fT=Symbol(""),dT=/(?:^|;)\s*display\s*:/;function hT(e,t,r){const o=e.style,s=zt(r);let c=!1;if(r&&!s){if(t)if(zt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Oc(o,d,"")}else for(const f in t)r[f]==null&&Oc(o,f,"");for(const f in r)f==="display"&&(c=!0),Oc(o,f,r[f])}else if(s){if(t!==r){const f=o[fT];f&&(r+=";"+f),o.cssText=r,c=dT.test(r)}}else t&&e.removeAttribute("style");Jc in e&&(e[Jc]=c?o.display:"",e[pb]&&(o.display="none"))}const Hv=/\s*!important$/;function Oc(e,t,r){if(Be(r))r.forEach(o=>Oc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=pT(e,t);Hv.test(r)?e.setProperty(_i(o),r.replace(Hv,""),"important"):e[o]=r}}const Bv=["Webkit","Moz","ms"],td={};function pT(e,t){const r=td[t];if(r)return r;let o=nr(t);if(o!=="filter"&&o in e)return td[t]=o;o=_u(o);for(let s=0;s<Bv.length;s++){const c=Bv[s]+o;if(c in e)return td[t]=c}return t}const Wv="http://www.w3.org/1999/xlink";function qv(e,t,r,o,s,c=cS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Wv,t.slice(6,t.length)):e.setAttributeNS(Wv,t,r):r==null||c&&!Q0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Lr(r)?String(r):r)}function jv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?db(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 Mo(e,t,r,o){e.addEventListener(t,r,o)}function gT(e,t,r,o){e.removeEventListener(t,r,o)}const Uv=Symbol("_vei");function vT(e,t,r,o,s=null){const c=e[Uv]||(e[Uv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=mT(t);if(o){const p=c[t]=wT(o,s);Mo(e,d,p,h)}else f&&(gT(e,d,f,h),c[t]=void 0)}}const Vv=/(?:Once|Passive|Capture)$/;function mT(e){let t;if(Vv.test(e)){t={};let o;for(;o=e.match(Vv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_i(e.slice(2)),t]}let nd=0;const yT=Promise.resolve(),bT=()=>nd||(yT.then(()=>nd=0),nd=Date.now());function wT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Mr(xT(o,r.value),t,5,[o])};return r.value=e,r.attached=bT(),r}function xT(e,t){if(Be(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 Gv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_T=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?uT(e,o,f):t==="style"?hT(e,r,o):bu(t)?mh(t)||vT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ST(e,t,o,f))?(jv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!zt(o))?jv(e,nr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qv(e,t,o,f))};function ST(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gv(t)&&Ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Gv(t)&&zt(r)?!1:t in e}const Qc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>$c(t,r):t};function kT(e){e.target.composing=!0}function Kv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Es=Symbol("_assign"),TT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Es]=Qc(s);const c=o||s.props&&s.props.type==="number";Mo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=_d(d)),e[Es](d)}),r&&Mo(e,"change",()=>{e.value=e.value.trim()}),t||(Mo(e,"compositionstart",kT),Mo(e,"compositionend",Kv),Mo(e,"change",Kv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Es]=Qc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?_d(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))}},gb={deep:!0,created(e,t,r){e[Es]=Qc(r),Mo(e,"change",()=>{const o=e._modelValue,s=CT(e),c=e.checked,f=e[Es];if(Be(o)){const d=ey(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(wu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(vb(e,c))})},mounted:Xv,beforeUpdate(e,t,r){e[Es]=Qc(r),Xv(e,t,r)}};function Xv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Be(t))s=ey(t,o.props.value)>-1;else if(wu(t))s=t.has(o.props.value);else{if(t===r)return;s=ku(t,vb(e,!0))}e.checked!==s&&(e.checked=s)}function CT(e){return"_value"in e?e._value:e.value}function vb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const ET=["ctrl","shift","alt","meta"],AT={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)=>ET.some(r=>e[`${r}Key`]&&!t.includes(r))},Pc=(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=AT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},LT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Id=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=_i(s.key);if(t.some(f=>f===c||LT[f]===c))return e(s)}))},MT=en({patchProp:_T},nT);let Yv;function $T(){return Yv||(Yv=Sk(MT))}const mb=((...e)=>{const t=$T().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=OT(o);if(!s)return;const c=t._component;!Ge(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,NT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function NT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function OT(e){return zt(e)?document.querySelector(e):e}const Yr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},PT={};function RT(e,t){const r=zo("RouterView");return oe(),Je(r)}const zT=Yr(PT,[["render",RT]]),IT=["top","right","bottom","left"],Zv=["start","end"],Jv=IT.reduce((e,t)=>e.concat(t,t+"-"+Zv[0],t+"-"+Zv[1]),[]),oa=Math.min,Ao=Math.max,DT={left:"right",right:"left",bottom:"top",top:"bottom"},FT={start:"end",end:"start"};function Dd(e,t,r){return Ao(e,oa(t,r))}function Do(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Ar(e){return e.split("-")[1]}function yb(e){return e==="x"?"y":"x"}function Ih(e){return e==="y"?"height":"width"}function Aa(e){return["top","bottom"].includes(Xr(e))?"y":"x"}function Dh(e){return yb(Aa(e))}function bb(e,t,r){r===void 0&&(r=!1);const o=Ar(e),s=Dh(e),c=Ih(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=tu(f)),[f,tu(f)]}function HT(e){const t=tu(e);return[eu(e),t,eu(t)]}function eu(e){return e.replace(/start|end/g,t=>FT[t])}function BT(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 WT(e,t,r,o){const s=Ar(e);let c=BT(Xr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(eu)))),c}function tu(e){return e.replace(/left|right|bottom|top/g,t=>DT[t])}function qT(e){return{top:0,right:0,bottom:0,left:0,...e}}function wb(e){return typeof e!="number"?qT(e):{top:e,right:e,bottom:e,left:e}}function ql(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Qv(e,t,r){let{reference:o,floating:s}=e;const c=Aa(t),f=Dh(t),d=Ih(f),h=Xr(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 x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Ar(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const jT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Qv(p,o,h),b=o,x={},M=0;for(let E=0;E<d.length;E++){const{name:A,fn:L}=d[E],{x:$,y:R,data:C,reset:D}=await L({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=$??v,m=R??m,x={...x,[A]:{...x[A],...C}},D&&M<=50&&(M++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(p=D.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):D.rects),{x:v,y:m}=Qv(p,b,h)),E=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function zu(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:x=0}=Do(t,e),M=wb(x),A=d[b?m==="floating"?"reference":"floating":m],L=ql(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(A)))==null||r?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),$=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),C=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},D=ql(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:R,strategy:h}):$);return{top:(L.top-D.top+M.top)/C.y,bottom:(D.bottom-L.bottom+M.bottom)/C.y,left:(L.left-D.left+M.left)/C.x,right:(D.right-L.right+M.right)/C.x}}const UT=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}=Do(e,t)||{};if(p==null)return{};const m=wb(v),b={x:r,y:o},x=Dh(s),M=Ih(x),E=await f.getDimensions(p),A=x==="y",L=A?"top":"left",$=A?"bottom":"right",R=A?"clientHeight":"clientWidth",C=c.reference[M]+c.reference[x]-b[x]-c.floating[M],D=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ie=U?U[R]:0;(!ie||!await(f.isElement==null?void 0:f.isElement(U)))&&(ie=d.floating[R]||c.floating[M]);const le=C/2-D/2,ne=ie/2-E[M]/2-1,G=oa(m[L],ne),J=oa(m[$],ne),O=G,P=ie-E[M]-J,N=ie/2-E[M]/2+le,S=Dd(O,N,P),F=!h.arrow&&Ar(s)!=null&&N!==S&&c.reference[M]/2-(N<O?G:J)-E[M]/2<0,V=F?N<O?N-O:N-P:0;return{[x]:b[x]+V,data:{[x]:S,centerOffset:N-S-V,...F&&{alignmentOffset:V}},reset:F}}});function VT(e,t,r){return(e?[...r.filter(s=>Ar(s)===e),...r.filter(s=>Ar(s)!==e)]:r.filter(s=>Xr(s)===s)).filter(s=>e?Ar(s)===e||(t?eu(s)!==s:!1):!0)}const GT=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=Jv,autoAlignment:x=!0,...M}=Do(e,t),E=m!==void 0||b===Jv?VT(m||null,x,b):b,A=await zu(t,M),L=((r=f.autoPlacement)==null?void 0:r.index)||0,$=E[L];if($==null)return{};const R=bb($,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==$)return{reset:{placement:E[0]}};const C=[A[Xr($)],A[R[0]],A[R[1]]],D=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:C}],U=E[L+1];if(U)return{data:{index:L+1,overflows:D},reset:{placement:U}};const ie=D.map(G=>{const J=Ar(G.placement);return[G.placement,J&&v?G.overflows.slice(0,2).reduce((O,P)=>O+P,0):G.overflows[0],G.overflows]}).sort((G,J)=>G[1]-J[1]),ne=((s=ie.filter(G=>G[2].slice(0,Ar(G[0])?2:3).every(J=>J<=0))[0])==null?void 0:s[0])||ie[0][0];return ne!==d?{data:{index:L+1,overflows:D},reset:{placement:ne}}:{}}}},KT=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:x="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:E=!0,...A}=Do(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=Xr(s),$=Xr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),C=b||($||!E?[tu(d)]:HT(d));!b&&M!=="none"&&C.push(...WT(d,E,M,R));const D=[d,...C],U=await zu(t,A),ie=[];let le=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&ie.push(U[L]),m){const O=bb(s,f,R);ie.push(U[O[0]],U[O[1]])}if(le=[...le,{placement:s,overflows:ie}],!ie.every(O=>O<=0)){var ne,G;const O=(((ne=c.flip)==null?void 0:ne.index)||0)+1,P=D[O];if(P)return{data:{index:O,overflows:le},reset:{placement:P}};let N=(G=le.filter(S=>S.overflows[0]<=0).sort((S,F)=>S.overflows[1]-F.overflows[1])[0])==null?void 0:G.placement;if(!N)switch(x){case"bestFit":{var J;const S=(J=le.map(F=>[F.placement,F.overflows.filter(V=>V>0).reduce((V,re)=>V+re,0)]).sort((F,V)=>F[1]-V[1])[0])==null?void 0:J[0];S&&(N=S);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function XT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Xr(r),d=Ar(r),h=Aa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Do(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:M}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof M=="number"&&(x=d==="end"?M*-1:M),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const YT=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 XT(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}}}}},ZT=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:A=>{let{x:L,y:$}=A;return{x:L,y:$}}},...h}=Do(e,t),p={x:r,y:o},v=await zu(t,h),m=Aa(Xr(s)),b=yb(m);let x=p[b],M=p[m];if(c){const A=b==="y"?"top":"left",L=b==="y"?"bottom":"right",$=x+v[A],R=x-v[L];x=Dd($,x,R)}if(f){const A=m==="y"?"top":"left",L=m==="y"?"bottom":"right",$=M+v[A],R=M-v[L];M=Dd($,M,R)}const E=d.fn({...t,[b]:x,[m]:M});return{...E,data:{x:E.x-r,y:E.y-o}}}}},JT=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}=Do(e,t),h=await zu(t,d),p=Xr(r),v=Ar(r),m=Aa(r)==="y",{width:b,height:x}=o.floating;let M,E;p==="top"||p==="bottom"?(M=p,E=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,M=v==="end"?"top":"bottom");const A=x-h[M],L=b-h[E],$=!t.middlewareData.shift;let R=A,C=L;if(m){const U=b-h.left-h.right;C=v||$?oa(L,U):U}else{const U=x-h.top-h.bottom;R=v||$?oa(A,U):U}if($&&!v){const U=Ao(h.left,0),ie=Ao(h.right,0),le=Ao(h.top,0),ne=Ao(h.bottom,0);m?C=b-2*(U!==0||ie!==0?U+ie:Ao(h.left,h.right)):R=x-2*(le!==0||ne!==0?le+ne:Ao(h.top,h.bottom))}await f({...t,availableWidth:C,availableHeight:R});const D=await s.getDimensions(c.floating);return b!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}};function ar(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vr(e){return ar(e).getComputedStyle(e)}const em=Math.min,jl=Math.max,nu=Math.round;function xb(e){const t=Vr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=nu(r)!==s||nu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function ro(e){return Sb(e)?(e.nodeName||"").toLowerCase():""}let yc;function _b(){if(yc)return yc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(yc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),yc):navigator.userAgent}function Gr(e){return e instanceof ar(e).HTMLElement}function Zi(e){return e instanceof ar(e).Element}function Sb(e){return e instanceof ar(e).Node}function tm(e){return typeof ShadowRoot>"u"?!1:e instanceof ar(e).ShadowRoot||e instanceof ShadowRoot}function Iu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function QT(e){return["table","td","th"].includes(ro(e))}function Fd(e){const t=/firefox/i.test(_b()),r=Vr(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 kb(){return!/^((?!chrome|android).)*safari/i.test(_b())}function Fh(e){return["html","body","#document"].includes(ro(e))}function Tb(e){return Zi(e)?e:e.contextElement}const Cb={x:1,y:1};function As(e){const t=Tb(e);if(!Gr(t))return Cb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=xb(t);let f=(c?nu(r.width):r.width)/o,d=(c?nu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function sa(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Tb(e);let h=Cb;t&&(o?Zi(o)&&(h=As(o)):h=As(e));const p=d?ar(d):window,v=!kb()&&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,x=f.width/h.x,M=f.height/h.y;if(d){const E=ar(d),A=o&&Zi(o)?ar(o):o;let L=E.frameElement;for(;L&&o&&A!==E;){const $=As(L),R=L.getBoundingClientRect(),C=getComputedStyle(L);R.x+=(L.clientLeft+parseFloat(C.paddingLeft))*$.x,R.y+=(L.clientTop+parseFloat(C.paddingTop))*$.y,m*=$.x,b*=$.y,x*=$.x,M*=$.y,m+=R.x,b+=R.y,L=ar(L).frameElement}}return{width:x,height:M,top:b,right:m+x,bottom:b+M,left:m,x:m,y:b}}function Ji(e){return((Sb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Du(e){return Zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eb(e){return sa(Ji(e)).left+Du(e).scrollLeft}function la(e){if(ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tm(e)&&e.host||Ji(e);return tm(t)?t.host:t}function Ab(e){const t=la(e);return Fh(t)?t.ownerDocument.body:Gr(t)&&Iu(t)?t:Ab(t)}function ru(e,t){var r;t===void 0&&(t=[]);const o=Ab(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ar(o);return s?t.concat(c,c.visualViewport||[],Iu(o)?o:[]):t.concat(o,ru(o))}function nm(e,t,r){return t==="viewport"?ql((function(o,s){const c=ar(o),f=Ji(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=kb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):Zi(t)?ql((function(o,s){const c=sa(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Gr(o)?As(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):ql((function(o){const s=Ji(o),c=Du(o),f=o.ownerDocument.body,d=jl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=jl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Eb(o);const v=-c.scrollTop;return Vr(f).direction==="rtl"&&(p+=jl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(Ji(e)))}function rm(e){return Gr(e)&&Vr(e).position!=="fixed"?e.offsetParent:null}function im(e){const t=ar(e);let r=rm(e);for(;r&&QT(r)&&Vr(r).position==="static";)r=rm(r);return r&&(ro(r)==="html"||ro(r)==="body"&&Vr(r).position==="static"&&!Fd(r))?t:r||(function(o){let s=la(o);for(;Gr(s)&&!Fh(s);){if(Fd(s))return s;s=la(s)}return null})(e)||t}function eC(e,t,r){const o=Gr(t),s=Ji(t),c=sa(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((ro(t)!=="body"||Iu(s))&&(f=Du(t)),Gr(t)){const h=sa(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Eb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const tC={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=ru(p).filter((A=>Zi(A)&&ro(A)!=="body")),x=null;const M=Vr(p).position==="fixed";let E=M?la(p):p;for(;Zi(E)&&!Fh(E);){const A=Vr(E),L=Fd(E);(M?L||x:L||A.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=A:b=b.filter(($=>$!==E)),E=la(E)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=nm(t,v,s);return p.top=jl(m.top,p.top),p.right=em(m.right,p.right),p.bottom=em(m.bottom,p.bottom),p.left=jl(m.left,p.left),p}),nm(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=Gr(r),c=Ji(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")&&((ro(r)!=="body"||Iu(c))&&(f=Du(r)),Gr(r))){const p=sa(r);d=As(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Zi,getDimensions:function(e){return Gr(e)?xb(e):e.getBoundingClientRect()},getOffsetParent:im,getDocumentElement:Ji,getScale:As,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||im,c=this.getDimensions;return{reference:eC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Vr(e).direction==="rtl"},nC=(e,t,r)=>{const o=new Map,s={platform:tC,...r},c={...s.platform,_c:o};return jT(e,t,{...s,platform:c})},Qi={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 aa(e,t){let r=Qi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Qi.themes[r.$extend]||{}:(r=null,o=Qi[t]):r=null;while(r);return o}function rC(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function om(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t}let ca=!1;if(typeof window<"u"){ca=!1;try{const e=Object.defineProperty({},"passive",{get(){ca=!0}});window.addEventListener("test",null,e)}catch{}}let Lb=!1;typeof window<"u"&&typeof navigator<"u"&&(Lb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Mb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),sm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},lm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function am(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function rd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Qn=[];let Co=null;const cm={};function um(e){let t=cm[e];return t||(t=cm[e]=[]),t}let Hd=function(){};typeof window<"u"&&(Hd=window.Element);function ft(e){return function(t){return aa(t.theme,e)}}const id="__floating-vue__popper",$b=()=>at({name:"VPopper",provide(){return{[id]:{parentPopper:this}}},inject:{[id]:{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:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Mb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,Hd,Boolean],default:ft("container")},boundary:{type:[String,Hd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("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[id])==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(YT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(GT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(ZT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(KT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(UT({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(JT({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 nC(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),Co&&this.instantMove&&Co.instantMove&&Co!==this.parentPopper){Co.$_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&&(Co=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 rd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ru(this.$_referenceNode),...ru(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Qn.length;r++)t=Qn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Qn.push(this),document.body.classList.add("v-popper--some-open");for(const t of om(this.theme))um(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 rd(),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,am(Qn,this),Qn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of om(this.theme)){const o=um(r);am(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Co===this&&(Co=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 rd(),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,sm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],sm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,lm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],lm,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,ca?{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(Ul>=e.left&&Ul<=e.right&&Vl>=e.top&&Vl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Ul-Bi,o=Vl-Wi,s=t.left+t.width/2-Bi+(t.top+t.height/2)-Wi+t.width+t.height,c=Bi+r*s,f=Wi+o*s;return bc(Bi,Wi,c,f,t.left,t.top,t.left,t.bottom)||bc(Bi,Wi,c,f,t.left,t.top,t.right,t.top)||bc(Bi,Wi,c,f,t.right,t.top,t.right,t.bottom)||bc(Bi,Wi,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(Lb){const e=ca?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>fm(t),e),document.addEventListener("touchend",t=>dm(t,!0),e)}else window.addEventListener("mousedown",e=>fm(e),!0),window.addEventListener("click",e=>dm(e,!1),!0);window.addEventListener("resize",sC)}function fm(e,t){for(let r=0;r<Qn.length;r++){const o=Qn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function dm(e,t){iC(e,t)}function iC(e,t){const r={};for(let o=Qn.length-1;o>=0;o--){const s=Qn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&hm(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&&hm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function hm(e,t,r){return r.closeAllPopover||r.closePopover&&t||oC(e,r)&&!t}function oC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function sC(){for(let e=0;e<Qn.length;e++)Qn[e].$_computePosition()}function pm(){for(let e=0;e<Qn.length;e++)Qn[e].hide()}let Bi=0,Wi=0,Ul=0,Vl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Bi=Ul,Wi=Vl,Ul=e.clientX,Vl=e.clientY},ca?{passive:!0}:void 0);function bc(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 lC={extends:$b()},Fu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function aC(e,t,r,o,s,c){return oe(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[bn(e.$slots,"default",lS(ab(e.slotData)))],2)}const cC=Fu(lC,[["render",aC]]);function uC(){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 Bd(){Bd.init||(Bd.init=!0,Rc=uC()!==-1)}var Hu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Bd(),Et(()=>{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 fC=Ay();Cy("data-v-b329ee4c");const dC={class:"resize-observer",tabindex:"-1"};Ey();const hC=fC((e,t,r,o,s,c)=>(oe(),Je("div",dC)));Hu.render=hC;Hu.__scopeId="data-v-b329ee4c";Hu.__file="src/components/ResizeObserver.vue";const Nb=(e="theme")=>({computed:{themeClass(){return rC(this[e])}}}),pC=at({name:"VPopperContent",components:{ResizeObserver:Hu},mixins:[Nb()],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}}}),gC=["id","aria-hidden","tabindex","data-popper-placement"],vC={ref:"inner",class:"v-popper__inner"},mC=Q("div",{class:"v-popper__arrow-outer"},null,-1),yC=Q("div",{class:"v-popper__arrow-inner"},null,-1),bC=[mC,yC];function wC(e,t,r,o,s,c){const f=zo("ResizeObserver");return oe(),ye("div",{id:e.popperId,ref:"popover",class:ot(["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:Jt(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]=Id(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Q("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Q("div",{class:"v-popper__wrapper",style:Jt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Q("div",vC,[e.mounted?(oe(),ye(nt,{key:0},[Q("div",null,[bn(e.$slots,"default")]),e.handleResize?(oe(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):qe("",!0)],64)):qe("",!0)],512),Q("div",{ref:"arrow",class:"v-popper__arrow-container",style:Jt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},bC,4)],4)],46,gC)}const Ob=Fu(pC,[["render",wC]]),Pb={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 Wd=function(){};typeof window<"u"&&(Wd=window.Element);const xC=at({name:"VPopperWrapper",components:{Popper:cC,PopperContent:Ob},mixins:[Pb,Nb("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,Wd,Boolean],default:void 0},boundary:{type:[String,Wd],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 _C(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return oe(),Je(d,mi({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:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:M,handleResize:E,onResize:A,classes:L,result:$})=>[bn(e.$slots,"default",{shown:p,show:x,hide:M}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:L,result:$,onHide:M,onResize:A},{default:it(()=>[bn(e.$slots,"popper",{shown:p,hide:M})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Hh=Fu(xC,[["render",_C]]);({...Hh});({...Hh});const SC={...Hh,name:"VTooltip",vPopperTheme:"tooltip"},kC=at({name:"VTooltipDirective",components:{Popper:$b(),PopperContent:Ob},mixins:[Pb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>aa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>aa(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}}}),TC=["innerHTML"],CC=["textContent"];function EC(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return oe(),Je(d,mi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:M,onResize:E,classes:A,result:L})=>[Oe(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:A,result:L,onHide:x,onResize:E},{default:it(()=>[e.html?(oe(),ye("div",{key:0,innerHTML:e.finalContent},null,8,TC)):(oe(),ye("div",{key:1,textContent:ze(e.finalContent)},null,8,CC))]),_: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 AC=Fu(kC,[["render",EC]]),Rb="v-popper--has-tooltip";function LC(e,t){let r=e.placement;if(!r&&t)for(const o of Mb)t[o]&&(r=o);return r||(r=aa(e.theme||"tooltip","placement")),r}function zb(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=LC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let od,ua,MC=0;function $C(){if(od)return;ua=Ue([]),od=mb({name:"VTooltipDirectiveApp",setup(){return{directives:ua}},render(){return this.directives.map(t=>Ea(AC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),od.mount(e)}function Ib(e,t,r){$C();const o=Ue(zb(e,t,r)),s=Ue(!1),c={id:MC++,options:o,shown:s};return ua.value.push(c),e.classList&&e.classList.add(Rb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Bh(e){if(e.$_popper){const t=ua.value.indexOf(e.$_popper.item);t!==-1&&ua.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Rb)}function gm(e,{value:t,modifiers:r}){const o=zb(e,t,r);if(!o.content||aa(o.theme||"tooltip","disabled"))Bh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Ib(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const NC={beforeMount:gm,updated:gm,beforeUnmount(e){Bh(e)}},OC=NC,Db=SC,Fb={options:Qi};function Hb(e){return e!=null}function Wh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const PC=/^[A-Za-z]:\//;function RC(e=""){return e&&e.replace(/\\/g,"/").replace(PC,t=>t.toUpperCase())}const zC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function IC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Bb=function(...e){e=e.map(o=>RC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:IC();!s||s.length===0||(t=`${s}/${t}`,r=vm(s))}return t=DC(t,!r),r&&!vm(t)?`/${t}`:t.length>0?t:"."};function DC(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 vm=function(e){return zC.test(e)};var FC=44,mm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",HC=new Uint8Array(64),Wb=new Uint8Array(128);for(let e=0;e<mm.length;e++){const t=mm.charCodeAt(e);HC[e]=t,Wb[t]=e}function Ll(e,t){let r=0,o=0,s=0;do{const f=e.next();s=Wb[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function ym(e,t){return e.pos>=t?!1:e.peek()!==FC}var BC=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function WC(e){const{length:t}=e,r=new BC(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 x;s=Ll(r,s),s<b&&(m=!1),b=s,ym(r,p)?(c=Ll(r,c),f=Ll(r,f),d=Ll(r,d),ym(r,p)?(h=Ll(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||qC(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function qC(e){e.sort(jC)}function jC(e,t){return e[0]-t[0]}var Bu=0,UC=1,VC=2,GC=3,KC=4,iu=!1;function XC(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Bu]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function YC(e,t,r){for(let o=r+1;o<e.length&&e[o][Bu]===t;r=o++);return r}function ZC(e,t,r){for(let o=r-1;o>=0&&e[o][Bu]===t;r=o--);return r}function JC(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][Bu]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=XC(e,t,d,h)}var QC="`line` must be greater than 0 (lines start at line 1)",eE="`column` must be greater than or equal to 0 (columns start at column 0)",bm=-1,tE=1;function nE(e){var t;return(t=e)._decoded||(t._decoded=WC(e._encoded))}function rE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(QC);if(o<0)throw new Error(eE);const c=nE(e);if(r>=c.length)return wc(null,null,null,null);const f=c[r],d=iE(f,e._decodedMemo,r,o,s||tE);if(d===-1)return wc(null,null,null,null);const h=f[d];if(h.length===1)return wc(null,null,null,null);const{names:p,resolvedSources:v}=e;return wc(v[h[UC]],h[VC]+1,h[GC],h.length===5?p[h[KC]]:null)}function wc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function iE(e,t,r,o,s){let c=JC(e,o,t,r);return iu?c=(s===bm?YC:ZC)(e,o,c):s===bm&&c++,c===-1||c===e.length?-1:c}const qb=/^\s*at .*(?:\S:\d+|\(native\))/m,oE=/^(?:eval@)?(?:\[native code\])?$/,sE=["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/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function jb(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 lE(e){let t=e.trim();if(oE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=jb(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function aE(e){let t=e.trim();if(!qb.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]=jb(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:Bb(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function cE(e,t={}){const{ignoreStackEntries:r=sE}=t;return(qb.test(e)?fE(e):uE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return wm(r,s.file)?null:s;const d=new dE(f,s.file),h=pE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),wm(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function wm(e,t){return e.some(r=>t.match(r))}function uE(e){return e.split(`
|
|
18
|
+
`).map(t=>lE(t)).filter(Hb)}function fE(e){return e.split(`
|
|
19
|
+
`).map(t=>aE(t)).filter(Hb)}class dE{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=hE(),this.url=r,this.resolvedSources=(c||[]).map(f=>Bb(f||"",r))}}function hE(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function pE(e,t){const r=rE(e,t);return r.column==null?null:r}const gE=/^[A-Za-z]:\//;function vE(e=""){return e&&e.replace(/\\/g,"/").replace(gE,t=>t.toUpperCase())}const mE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,xm=/^\/([A-Za-z]:)?$/;function yE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const _m=function(...e){e=e.map(o=>vE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:yE();!s||s.length===0||(t=`${s}/${t}`,r=Sm(s))}return t=bE(t,!r),r&&!Sm(t)?`/${t}`:t.length>0?t:"."};function bE(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 Sm=function(e){return mE.test(e)},Ub=function(e,t){const r=_m(e).replace(xm,"$1").split("/"),o=_m(t).replace(xm,"$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 wE(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 Vb(e,t,r,o){const s=Ub(t,e),c={id:xE(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 xE(e,t){return wE(`${e}${t||""}`)}function Ds(e){return e.type==="test"}function Gb(e){const t=[],r=Wh(e);for(const o of r)if(Ds(o))t.push(o);else for(const s of o.tasks)if(Ds(s))t.push(s);else{const c=Gb(s);for(const f of c)t.push(f)}return t}function qh(e=[]){return Wh(e).flatMap(t=>Ds(t)?[t]:[t,...qh(t.tasks)])}function _E(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const km="q",Tm="s",SE=6e4;function Kb(e){return e}const kE=Kb,{clearTimeout:TE,setTimeout:CE}=globalThis,EE=Math.random.bind(Math);function AE(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Kb,deserialize:d=kE,resolver:h,bind:p="rpc",timeout:v=SE}=t,m=new Map;let b,x=!1;const M=new Proxy({},{get($,R){if(R==="$functions")return e;if(R==="$close")return E;if(R==="$rejectPendingCalls")return A;if(R==="$closed")return x;if(R==="then"&&!c.includes("then")&&!("then"in e))return;const C=(...U)=>{r(f({m:R,a:U,t:km}))};if(c.includes(R))return C.asEvent=C,C;const D=async(...U)=>{if(x)throw new Error(`[birpc] rpc is closed, cannot call "${R}"`);if(b)try{await b}finally{b=void 0}return new Promise((ie,le)=>{const ne=ME();let G;v>=0&&(G=CE(()=>{try{if(t.onTimeoutError?.(R,U)!==!0)throw new Error(`[birpc] timeout on calling "${R}"`)}catch(J){le(J)}m.delete(ne)},v),typeof G=="object"&&(G=G.unref?.())),m.set(ne,{resolve:ie,reject:le,timeoutId:G,method:R}),r(f({m:R,a:U,i:ne,t:"q"}))})};return D.asEvent=C,D}});function E($){x=!0,m.forEach(({reject:R,method:C})=>{const D=new Error(`[birpc] rpc is closed, cannot call "${C}"`);if($)return $.cause??=D,R($);R(D)}),m.clear(),s(L)}function A($){const C=Array.from(m.values()).map(({method:D,reject:U})=>$?$({method:D,reject:U}):U(new Error(`[birpc]: rejected pending call "${D}".`)));return m.clear(),C}async function L($,...R){let C;try{C=d($)}catch(D){if(t.onGeneralError?.(D)!==!0)throw D;return}if(C.t===km){const{m:D,a:U}=C;let ie,le;const ne=h?h(D,e[D]):e[D];if(!ne)le=new Error(`[birpc] function "${D}" not found`);else try{ie=await ne.apply(p==="rpc"?M:e,U)}catch(G){le=G}if(C.i){if(le&&t.onError&&t.onError(le,D,U),le&&t.onFunctionError&&t.onFunctionError(le,D,U)===!0)return;if(!le)try{r(f({t:Tm,i:C.i,r:ie}),...R);return}catch(G){if(le=G,t.onGeneralError?.(G,D,U)!==!0)throw G}try{r(f({t:Tm,i:C.i,e:le}),...R)}catch(G){if(t.onGeneralError?.(G,D,U)!==!0)throw G}}}else{const{i:D,r:U,e:ie}=C,le=m.get(D);le&&(TE(le.timeoutId),ie?le.reject(ie):le.resolve(U)),m.delete(D)}}return b=o(L),M}const LE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function ME(e=21){let t="",r=e;for(;r--;)t+=LE[EE()*64|0];return t}const{parse:Xb,stringify:$E}=JSON,{keys:NE}=Object,fa=String,Yb="string",Cm={},ou="object",Zb=(e,t)=>t,OE=e=>e instanceof fa?fa(e):e,PE=(e,t)=>typeof t===Yb?new fa(t):t,Jb=(e,t,r,o)=>{const s=[];for(let c=NE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof fa){const v=e[p];typeof v===ou&&!t.has(v)?(t.add(v),r[h]=Cm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Cm&&(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,Jb.apply(null,h))}return r},Em=(e,t,r)=>{const o=fa(t.push(r)-1);return e.set(r,o),o},qd=(e,t)=>{const r=Xb(e,PE).map(OE),o=r[0],s=t||Zb,c=typeof o===ou&&o?Jb(r,new Set,o,s):o;return s.call({"":c},"",c)},Qb=(e,t,r)=>{const o=t&&typeof t===ou?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Zb,s=new Map,c=[],f=[];let d=+Em(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=$E(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 ou:if(b===null)return b;case Yb:return s.get(b)||Em(s,c,b)}return b}},RE=e=>Xb(Qb(e));class ew{filesMap=new Map;pathsSet=new Set;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=>t.result?.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=Vb(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?.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 zE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=$=>$,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new ew,waitForConnection:L,reconnect:E},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate($,R){r.onTestAnnotate?.($,R)},onSpecsCollected($){$?.forEach(([R,C])=>{v.state.clearFiles({config:R},[C])}),r.onSpecsCollected?.($)},onPathsCollected($){v.state.collectPaths($),r.onPathsCollected?.($)},onCollected($){v.state.collectFiles($),r.onCollected?.($)},onTaskUpdate($,R){v.state.updateTasks($),r.onTaskUpdate?.($,R)},onUserConsoleLog($){v.state.updateUserLog($),r.onUserConsoleLog?.($)},onFinished($,R){r.onFinished?.($,R)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:$=>v.ws.send($),on:$=>m=$,serialize:$=>Qb($,(R,C)=>C instanceof Error?{name:C.name,message:C.message,stack:C.stack}:C),deserialize:qd,timeout:-1};v.rpc=AE(b,x);let M;function E($=!1){$&&(p=c),v.ws=new h(e),A()}function A(){M=new Promise(($,R)=>{const C=setTimeout(()=>{R(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();v.ws.OPEN===v.ws.readyState&&$(),v.ws.addEventListener("open",()=>{p=c,$(),clearTimeout(C)})}),v.ws.addEventListener("message",$=>{m($.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(E,s)})}A();function L(){return M}return v}function jh(e){return ry()?(dS(e),!0):!1}const sd=new WeakMap,IE=(...e)=>{var t;const r=e[0],o=(t=ki())==null?void 0:t.proxy;if(o==null&&!qy())throw new Error("injectLocal must be called in setup");return o&&sd.has(o)&&r in sd.get(o)?sd.get(o)[r]:mn(...e)},DE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const FE=Object.prototype.toString,HE=e=>FE.call(e)==="[object Object]",su=()=>{};function tw(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 nw=e=>e();function rw(e,t={}){let r,o,s=su;const c=h=>{clearTimeout(h),s(),s=su};let f;return h=>{const p=jt(e),v=jt(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 BE(e=nw,t={}){const{initialState:r="active"}=t,o=iw(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:_a(o),pause:s,resume:c,eventFilter:f}}function Am(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Lm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function WE(e){return ki()}function ld(e){return Array.isArray(e)?e:[e]}function iw(...e){if(e.length!==1)return Vs(...e);const t=e[0];return typeof t=="function"?_a(wy(()=>({get:t,set:su}))):Ue(t)}function xc(e,t=200,r={}){return tw(rw(t,r),e)}function ow(e,t,r={}){const{eventFilter:o=nw,...s}=r;return _t(e,tw(o,t),s)}function sw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=BE(o,{initialState:s});return{stop:ow(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Uh(e,t=!0,r){WE()?ao(e,r):t?e():Et(e)}function jd(e,t=!1){function r(m,{flush:b="sync",deep:x=!1,timeout:M,throwOnTimeout:E}={}){let A=null;const $=[new Promise(R=>{A=_t(e,C=>{m(C)!==t&&(A?A():Et(()=>A?.()),R(C))},{flush:b,deep:x,immediate:!0})})];return M!=null&&$.push(Am(M,E).then(()=>jt(e)).finally(()=>A?.())),Promise.race($)}function o(m,b){if(!kt(m))return r(C=>C===m,b);const{flush:x="sync",deep:M=!1,timeout:E,throwOnTimeout:A}=b??{};let L=null;const R=[new Promise(C=>{L=_t([e,m],([D,U])=>{t!==(D===U)&&(L?L():Et(()=>L?.()),C(D))},{flush:x,deep:M,immediate:!0})})];return E!=null&&R.push(Am(E,A).then(()=>jt(e)).finally(()=>(L?.(),jt(e)))),Promise.race(R)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(x=>{const M=Array.from(x);return M.includes(m)||M.includes(jt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let x=-1;return r(()=>(x+=1,x>=m),b)}return Array.isArray(jt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return jd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return jd(e,!t)}}}function Mm(e){return jd(e)}function qE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=kt(e),c=Qt(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=jt(r);return c.value=c.value===h?jt(o):h,c.value}}return s?f:[c,f]}function Vh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return ow(e,t,{...c,eventFilter:rw(o,{maxWait:s})})}function jE(e,t,r){return _t(e,t,{...r,immediate:!0})}function UE(e,t,r){const o=_t(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function VE(e,t,r){let o;kt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=su}=o,h=Qt(!s),p=f?Qt(t):Ue(t);let v=0;return Oh(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const M=await e(E=>{m(()=>{c&&(c.value=!1),x||E()})});b===v&&(p.value=M)}catch(M){d(M)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?_e(()=>(h.value=!0,p.value)):p}const $r=DE?window:void 0;function lu(e){var t;const r=jt(e);return(t=r?.$el)!=null?t:r}function io(...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=_e(()=>{const d=ld(jt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=jE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>lu(p)))!=null?h:[$r].filter(p=>p!=null),ld(jt(s.value?e[1]:e[0])),ld(H(s.value?e[2]:e[1])),jt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const m=HE(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(M=>o(b,x,M,m)))))},{flush:"post"}),f=()=>{c(),r()};return jh(r),f}function GE(){const e=Qt(!1),t=ki();return t&&ao(()=>{e.value=!0},t),e}function lw(e){const t=GE();return _e(()=>(t.value,!!e()))}function KE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function aw(...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=$r,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=KE(t);return io(s,c,v=>{v.repeat&&jt(d)||h(v)&&r(v)},f)}function XE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=$r,once:c=!1}=t,f=Qt(!1),d=_e(()=>o?1e3/jt(o):null);let h=0,p=null;function v(x){if(!f.value||!s)return;h||(h=x);const M=x-h;if(d.value&&M<d.value){p=s.requestAnimationFrame(v);return}if(h=x,e({delta:M,timestamp:x}),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(),jh(b),{isActive:_a(f),pause:b,resume:m}}const YE=Symbol("vueuse-ssr-width");function ZE(){const e=qy()?IE(YE,null):null;return typeof e=="number"?e:void 0}function cw(e,t={}){const{window:r=$r,ssrWidth:o=ZE()}=t,s=lw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Qt(typeof o=="number"),f=Qt(),d=Qt(!1),h=p=>{d.value=p.matches};return Oh(()=>{if(c.value){c.value=!s.value;const p=jt(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*)\)/),x=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let M=!!(b||x);return b&&M&&(M=o>=Lm(b[1])),x&&M&&(M=o<=Lm(x[1])),m?!M:M});return}s.value&&(f.value=r.matchMedia(jt(e)),d.value=f.value.matches)}),io(f,"change",h,{passive:!0}),_e(()=>d.value)}const _c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sc="__vueuse_ssr_handlers__",JE=QE();function QE(){return Sc in _c||(_c[Sc]=_c[Sc]||{}),_c[Sc]}function uw(e,t){return JE[e]||t}function eA(e){return cw("(prefers-color-scheme: dark)",e)}function tA(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 nA={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()}},$m="vueuse-storage";function fw(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=$r,eventFilter:b,onError:x=J=>{console.error(J)},initOnMounted:M}=o,E=(v?Qt:Ue)(typeof t=="function"?t():t),A=_e(()=>jt(e));if(!r)try{r=uw("getDefaultStorage",()=>{var J;return(J=$r)==null?void 0:J.localStorage})()}catch(J){x(J)}if(!r)return E;const L=jt(t),$=tA(L),R=(s=o.serializer)!=null?s:nA[$],{pause:C,resume:D}=sw(E,()=>ie(E.value),{flush:c,deep:f,eventFilter:b});_t(A,()=>ne(),{flush:c}),m&&d&&Uh(()=>{r instanceof Storage?io(m,"storage",ne,{passive:!0}):io(m,$m,G),M&&ne()}),M||ne();function U(J,O){if(m){const P={key:A.value,oldValue:J,newValue:O,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",P):new CustomEvent($m,{detail:P}))}}function ie(J){try{const O=r.getItem(A.value);if(J==null)U(O,null),r.removeItem(A.value);else{const P=R.write(J);O!==P&&(r.setItem(A.value,P),U(O,P))}}catch(O){x(O)}}function le(J){const O=J?J.newValue:r.getItem(A.value);if(O==null)return h&&L!=null&&r.setItem(A.value,R.write(L)),L;if(!J&&p){const P=R.read(O);return typeof p=="function"?p(P,L):$==="object"&&!Array.isArray(P)?{...L,...P}:P}else return typeof O!="string"?O:R.read(O)}function ne(J){if(!(J&&J.storageArea!==r)){if(J&&J.key==null){E.value=L;return}if(!(J&&J.key!==A.value)){C();try{J?.newValue!==R.write(E.value)&&(E.value=le(J))}catch(O){x(O)}finally{J?Et(D):D()}}}}function G(J){ne(J.detail)}return E}const rA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function iA(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=$r,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=eA({window:s}),x=_e(()=>b.value?"dark":"light"),M=h||(f==null?iw(o):fw(f,o,c,{window:s,listenToStorageChanges:d})),E=_e(()=>M.value==="auto"?x.value:M.value),A=uw("updateHTMLAttrs",(C,D,U)=>{const ie=typeof C=="string"?s?.document.querySelector(C):lu(C);if(!ie)return;const le=new Set,ne=new Set;let G=null;if(D==="class"){const O=U.split(/\s/g);Object.values(m).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{O.includes(P)?le.add(P):ne.add(P)})}else G={key:D,value:U};if(le.size===0&&ne.size===0&&G===null)return;let J;v&&(J=s.document.createElement("style"),J.appendChild(document.createTextNode(rA)),s.document.head.appendChild(J));for(const O of le)ie.classList.add(O);for(const O of ne)ie.classList.remove(O);G&&ie.setAttribute(G.key,G.value),v&&(s.getComputedStyle(J).opacity,document.head.removeChild(J))});function L(C){var D;A(t,r,(D=m[C])!=null?D:C)}function $(C){e.onChanged?e.onChanged(C,L):L(C)}_t(E,$,{flush:"post",immediate:!0}),Uh(()=>$(E.value));const R=_e({get(){return p?M.value:E.value},set(C){M.value=C}});return Object.assign(R,{store:M,system:x,state:E})}function oA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=iA({...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=_e(()=>o.system.value);return _e({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function dw(e,t,r={}){const{window:o=$r,...s}=r;let c;const f=lw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=_e(()=>{const m=jt(e);return Array.isArray(m)?m.map(b=>lu(b)):[lu(m)]}),p=_t(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 jh(v),{isSupported:f,stop:v}}function Wu(e,t,r={}){const{window:o=$r}=r;return fw(e,t,o?.localStorage,r)}function sA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=$r}=t;if(!d)return tr(r);const h=tr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const R=d.location.hash||"",C=R.indexOf("?");return C>0?R.slice(C):""}else return(d.location.hash||"").replace(/^#/,"")}function v(R){const C=R.toString();if(e==="history")return`${C?`?${C}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${C?`#${C}`:""}`;const D=d.location.hash||"#",U=D.indexOf("?");return U>0?`${d.location.search||""}${D.slice(0,U)}${C?`?${C}`:""}`:`${d.location.search||""}${D}${C?`?${C}`:""}`}function m(){return new URLSearchParams(p())}function b(R){const C=new Set(Object.keys(h));for(const D of R.keys()){const U=R.getAll(D);h[D]=U.length>1?U:R.get(D)||"",C.delete(D)}Array.from(C).forEach(D=>delete h[D])}const{pause:x,resume:M}=sw(h,()=>{const R=new URLSearchParams("");Object.keys(h).forEach(C=>{const D=h[C];Array.isArray(D)?D.forEach(U=>R.append(C,U)):o&&D==null||s&&!D?R.delete(C):R.set(C,D)}),E(R,!1)},{deep:!0});function E(R,C){x(),C&&b(R),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(R)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(R)),M()}function A(){c&&E(m(),!0)}const L={passive:!0};io(d,"popstate",A,L),e!=="history"&&io(d,"hashchange",A,L);const $=m();return $.keys().next().value?b($):Object.assign(h,r),h}function hw(e={}){const{window:t=$r,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Qt(r),h=Qt(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:x}=t.visualViewport;d.value=Math.round(m*x),h.value=Math.round(b*x)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Uh(p);const v={passive:!0};if(io("resize",p,v),t&&f==="visual"&&t.visualViewport&&io(t.visualViewport,"resize",p,v),s){const m=cw("(orientation: portrait)");_t(m,()=>p())}return{width:d,height:h}}const Ud=Qt([]),Kn=Qt([]),Nr=Wu("vitest-ui_task-tree-opened",[],{shallow:!0}),au=_e(()=>new Set(Nr.value)),un=Wu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Wn=Ue(un.value.search),lA={"&":"&","<":"<",">":">",'"':""","'":"'"};function pw(e){return e.replace(/[&<>"']/g,t=>lA[t])}const aA=_e(()=>{const e=Wn.value.toLowerCase();return e.length?new RegExp(`(${pw(e)})`,"gi"):null}),gw=_e(()=>Wn.value.trim()!==""),Ze=tr({failed:un.value.failed,success:un.value.success,skipped:un.value.skipped,onlyTests:un.value.onlyTests}),Vd=_e(()=>!!(Ze.failed||Ze.success||Ze.skipped)),qu=Qt([]),Fs=Ue(!1),Nm=_e(()=>{const e=un.value.expandAll;return Nr.value.length>0?e!==!0:e!==!1}),cA=_e(()=>{const e=gw.value,t=Vd.value,r=Ze.onlyTests,o=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,c=Ae.summary.filesSkipped,f=Ae.summary.filesRunning,d=qu.value;return Ae.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function La(e){return Object.hasOwn(e,"tasks")}function uA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function vw(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 mw(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function fA(e){return e.type==="test"}function dA(e){return e.mode==="run"&&e.type==="test"}function On(e){return e.type==="file"}function wi(e){return e.type==="file"||e.type==="suite"}function hA(e=Ae.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function da(e,t=!1){let r=Ae.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=e.result?.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:au.value.size>0&&au.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:e.result?.duration!=null?Math.round(e.result?.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||vw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ae.nodes.set(e.id,r),Ae.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ma(e.id,e.tasks[o],!0)}function yw(e,t){const r=Ae.nodes.get(e);if(!r||!wi(r))return;const o=ht.state.idMap.get(e);if(!(!o||!La(o)))return Ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function pA(e){const t=Ae.nodes.get(e);if(!t)return;const r=ht.state.idMap.get(e);!r||!Ds(r)||Ma(t.parentId,r,!1)}function Ma(e,t,r){const o=Ae.nodes.get(e);let s;const c=t.result?.duration!=null?Math.round(t.result?.duration):void 0;if(o&&(s=Ae.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Ds(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:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:au.value.size>0&&au.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Ae.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&La(t)))for(let f=0;f<t.tasks.length;f++)Ma(s.id,t.tasks[f],r)}function gA(e){const t=Ae.nodes.get(e);if(!t||!wi(t))return;const r=new Set(Nr.value);r.delete(t.id);const o=[...mA(t)];Nr.value=Array.from(r),Kn.value=o}function vA(){Gd(Ae.root.tasks);const e=[...Kn.value.filter(On)];Gd(e),Nr.value=[],un.value.expandAll=!0,Kn.value=e}function Gd(e){for(const t of e)wi(t)&&(t.expanded=!1,Gd(t.tasks))}function*bw(e,t){if(t&&(yield e.id),wi(e))for(let r=0;r<e.tasks.length;r++)yield*bw(e.tasks[r],!0)}function*mA(e){const t=e.id,r=new Set(bw(e,!1));for(let o=0;o<Kn.value.length;o++){const s=Kn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const ju=Ue("idle"),ms=_e(()=>ju.value==="idle"),Ui=Ue([]);function yA(e,t,r){return e?_w(e,t,r):!1}function Gh(e,t){const r=[...ww(e,t)];Kn.value=r,qu.value=r.filter(On).map(o=>dr(o.id))}function*ww(e,t){for(const r of hA())yield*xw(r,e,t)}function*xw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Kd(e,o,x=>Om(x,t,r)))c.push([m,b]);else{for(const[m,b]of Kd(e,o,x=>Om(x,t,r)))wi(b)?(s.set(b.id,m),On(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!On(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...wA(c,r.onlyTests,o,d,f)].reverse(),p=Ae.nodes,v=new Set(h.filter(m=>On(m)||wi(m)&&p.get(m.parentId)?.expanded).map(m=>m.id));yield*h.filter(m=>On(m)||v.has(m.parentId)&&p.get(m.parentId)?.expanded)}function bA(e,t,r,o,s){if(o){if(On(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}function*wA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=wi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ae.nodes.get(d.parentId);for(;p;)r.add(p.id),On(p)&&o.add(p.id),p=Ae.nodes.get(p.parentId);yield d;continue}if(h){const p=bA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ae.nodes.get(d.parentId);p&&On(p)&&o.add(p.id),yield d}}}function xA(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function _w(e,t,r){if(t.length===0||uA(e.name,t))if(r.success||r.failed||r.skipped){if(xA(e,r))return!0}else return!0;return!1}function*Kd(e,t,r){const o=r(e);if(o)if(fA(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(On(e))t.add(e.id);else{t.add(e.id);let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}if(yield[o,e],wi(e))for(let s=0;s<e.tasks.length;s++)yield*Kd(e.tasks[s],t,r)}function Om(e,t,r){const o=ht.state.idMap.get(e.id);return o?_w(o,t,r):!1}function _A(e,t,r){const o=yw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ma(s.id,p,!1);s.expanded=!0;const f=new Set(Nr.value);f.add(s.id);const d=new Set(xw(s,t,r)),h=[...TA(s,d)];Nr.value=Array.from(f),Kn.value=h}function SA(e,t){Kh(Ae.root.tasks,!1);const r=[...ww(e,t)];un.value.expandAll=!1,Nr.value=[],Kn.value=r,qu.value=r.filter(On).map(o=>dr(o.id))}function kA(e,t){if(e.size)for(const r of Kn.value)e.has(r.id)&&(r.expanded=!0);else t&&Kh(Kn.value.filter(On),!0)}function Kh(e,t){for(const r of e)wi(r)&&(r.expanded=!0,Kh(r.tasks,!1));t&&(un.value.expandAll=!1,Nr.value=[])}function*TA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Kn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Xh(e){return Gb(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function CA(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>da(s,t)),Ud.value=[...Ae.root.tasks],Gh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function EA(e){queueMicrotask(()=>{const t=Ae.pendingTasks,r=ht.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 AA(e,t){const r=Ae.pendingTasks,s=ht.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),s.annotations.push(t)}}function Pm(e,t,r,o,s){e&&PA(r);const c=!e;queueMicrotask(()=>{t?$A(c):NA(c)}),queueMicrotask(()=>{RA(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Ud.value&&Xh(Ud.value.map(f=>dr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{OA(o,s,t)})}function*LA(){yield*Kn.value.filter(dA)}function MA(){const e=ht.state.idMap;let t;for(const r of LA())t=e.get(r.parentId),t&&La(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function $A(e){const t=ht.state.getFiles(),r=Ae.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)da(o[c],e),cu(o[c].tasks);const s=Ae.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=dr(f.id);!d||(da(d,e),!d.tasks?.length)||cu(d.tasks)}}function NA(e){const t=new Map(Ae.pendingTasks.entries());Ae.pendingTasks.clear();const r=Ae.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>dr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],da(s,!1),cu(s.tasks),t.delete(s.id);const c=ht.state.idMap,f=Ae.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=dr(h.id);if(!p)continue;const v=t.get(p.id);v&&(da(p,e),cu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function OA(e,t,r=!1){const o=un.value.expandAll,s=o!==!0,c=new Set(Nr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Rm(e,t,r)}),Fs.value||queueMicrotask(()=>{(Kn.value.length||r)&&(Fs.value=!0)}),f&&(queueMicrotask(()=>{kA(c,r),s&&(un.value.expandAll=!1)}),queueMicrotask(()=>{Rm(e,t,r)}))}function Rm(e,t,r){Gh(e,t),r&&(MA(),ju.value="idle")}function cu(e){let t;for(let r=0;r<e.length;r++)t=e[r],La(t)?yw(t.id,!0):pA(t.id)}function PA(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 RA(e){const t=ht.state.idMap,r=new Map(Ae.root.tasks.filter(f=>t.has(f.id)).map(f=>[f.id,f])),o=Array.from(r.values()).map(f=>[f.id,dr(f.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[f,d]of o){if(!d)continue;const h=r.get(f);h&&(h.mode=d.mode,h.setupDuration=d.setupDuration,h.prepareDuration=d.prepareDuration,h.environmentLoad=d.environmentLoad,h.collectDuration=d.collectDuration,h.duration=d.result?.duration!=null?Math.round(d.result?.duration):void 0,h.state=d.result?.state),c+=Math.max(0,d.collectDuration||0),c+=Math.max(0,d.setupDuration||0),c+=Math.max(0,d.result?.duration||0),c+=Math.max(0,d.environmentLoad||0),c+=Math.max(0,d.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,d.result?.state==="fail"?s.filesFailed++:d.result?.state==="pass"?s.filesSuccess++:d.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):d.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:p,success:v,skipped:m,total:b,ignored:x,todo:M}=Sw(d);s.totalTests+=b,s.testsFailed+=p,s.testsSuccess+=v,s.testsSkipped+=m,s.testsTodo+=M,s.testsIgnore+=x}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 Sw(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of kw(e))(!r||yA(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function zA(e,t,r,o,s,c){if(t)return r.map(f=>Sw(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:v})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=v,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const v of r)v.result?.state==="fail"?f.failed+=h?1:0:v.result?.state==="pass"?f.success+=p?1:0:v.mode==="skip"||v.mode==="todo"||f.running++;return f}return o}function*kw(e){const t=Wh(e);let r;for(let o=0;o<t.length;o++)r=t[o],Ds(r)?yield r:yield*kw(r.tasks)}class IA{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=tr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=XE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),CA(t,!0,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){AA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){EA(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(()=>{Pm(t,r,this.summary,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}):Pm(t,r,this.summary,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collectTestsTotal(t,r,o,s){return zA(t,r,o,s,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{gA(t)})}expandNode(t){queueMicrotask(()=>{_A(t,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{vA()})}expandAllNodes(){queueMicrotask(()=>{SA(Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Gh(Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ae=new IA,Jn=Ue([414,896]),$a=sA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),oo=Vs($a,"file"),an=Vs($a,"view"),Tw=Vs($a,"line"),Cw=Vs($a,"column"),Ls=Vs($a,"test");function Ew(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zc={exports:{}},DA=zc.exports,zm;function Gs(){return zm||(zm=1,(function(e,t){(function(r,o){e.exports=o()})(DA,(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),x=b&&+b[1],M=/Opera\//.test(r),E=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),$=E&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),C=$||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),D=$||/Mac/.test(o),U=/\bCrOS\b/.test(r),ie=/win/i.test(o),le=M&&r.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&(M=!1,v=!0);var ne=D&&(m||M&&(le==null||le<12.11)),G=s||h&&p>=9;function J(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var O=function(n,i){var a=n.className,l=J(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function P(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function N(n,i){return P(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function F(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=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 me(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Se(n,i){var a=n.className;J(i).test(a)||(n.className+=(a?" ":"")+i)}function Re(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!J(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};$?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Qe(n){return n.display.wrapper.ownerDocument}function Xe(n){return Ye(n.display.wrapper)}function Ye(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function te(n){return Qe(n).defaultView}function B(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Z(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 K(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 w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};ae.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},ae.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var z=50,j={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function fe(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ve(Ce)+" ");return Ce[n]}function ve(n){return n[n.length-1]}function be(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 $e(){}function De(n,i){var a;return Object.create?a=Object.create(n):($e.prototype=n,a=new $e),i&&Z(i,a),a}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ve.test(n))}function st(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ut(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 lt(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function Ut(n,i,a){for(;(a<0?i>0:i<n.length)&<(n.charAt(i));)i+=a;return i}function Ft(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function zn(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 zr=null;function It(n,i,a){var l;zr=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:zr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:zr=u)}return l??zr}var In=(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]/,w=/[1n]/;function _(k,I,q){this.level=k,this.from=I,this.to=q}return function(k,I){var q=I=="ltr"?"L":"R";if(k.length==0||I=="ltr"&&!l.test(k))return!1;for(var ee=k.length,Y=[],ce=0;ce<ee;++ce)Y.push(a(k.charCodeAt(ce)));for(var ge=0,xe=q;ge<ee;++ge){var ke=Y[ge];ke=="m"?Y[ge]=xe:xe=ke}for(var Me=0,Te=q;Me<ee;++Me){var Ne=Y[Me];Ne=="1"&&Te=="r"?Y[Me]="n":g.test(Ne)&&(Te=Ne,Ne=="r"&&(Y[Me]="R"))}for(var He=1,Ie=Y[0];He<ee-1;++He){var et=Y[He];et=="+"&&Ie=="1"&&Y[He+1]=="1"?Y[He]="1":et==","&&Ie==Y[He+1]&&(Ie=="1"||Ie=="n")&&(Y[He]=Ie),Ie=et}for(var xt=0;xt<ee;++xt){var Yt=Y[xt];if(Yt==",")Y[xt]="N";else if(Yt=="%"){var $t=void 0;for($t=xt+1;$t<ee&&Y[$t]=="%";++$t);for(var Hn=xt&&Y[xt-1]=="!"||$t<ee&&Y[$t]=="1"?"1":"N",kn=xt;kn<$t;++kn)Y[kn]=Hn;xt=$t-1}}for(var Ht=0,Tn=q;Ht<ee;++Ht){var tn=Y[Ht];Tn=="L"&&tn=="1"?Y[Ht]="L":g.test(tn)&&(Tn=tn)}for(var qt=0;qt<ee;++qt)if(u.test(Y[qt])){var Bt=void 0;for(Bt=qt+1;Bt<ee&&u.test(Y[Bt]);++Bt);for(var Rt=(qt?Y[qt-1]:q)=="L",Cn=(Bt<ee?Y[Bt]:q)=="L",us=Rt==Cn?Rt?"L":"R":q,Ii=qt;Ii<Bt;++Ii)Y[Ii]=us;qt=Bt-1}for(var ln=[],Br,Zt=0;Zt<ee;)if(y.test(Y[Zt])){var jf=Zt;for(++Zt;Zt<ee&&y.test(Y[Zt]);++Zt);ln.push(new _(0,jf,Zt))}else{var si=Zt,wo=ln.length,xo=I=="rtl"?1:0;for(++Zt;Zt<ee&&Y[Zt]!="L";++Zt);for(var hn=si;hn<Zt;)if(w.test(Y[hn])){si<hn&&(ln.splice(wo,0,new _(1,si,hn)),wo+=xo);var fs=hn;for(++hn;hn<Zt&&w.test(Y[hn]);++hn);ln.splice(wo,0,new _(2,fs,hn)),wo+=xo,si=hn}else++hn;si<Zt&&ln.splice(wo,0,new _(1,si,Zt))}return I=="ltr"&&(ln[0].level==1&&(Br=k.match(/^\s+/))&&(ln[0].from=Br[0].length,ln.unshift(new _(0,0,Br[0].length))),ve(ln).level==1&&(Br=k.match(/\s+$/))&&(ve(ln).to-=Br[0].length,ln.push(new _(0,ee-Br[0].length,ee)))),I=="rtl"?ln.reverse():ln}})();function tt(n,i){var a=n.order;return a==null&&(a=n.order=In(n.text,i)),a}var co=[],Fe=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]||co).concat(a)}};function Qr(n,i){return n._handlers&&n._handlers[i]||co}function rn(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Nt(n,i){var a=Qr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Ot(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Nt(n,a||i.type,n,i),wn(i)||i.codemirrorIgnore}function ir(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)pe(a,i[l])==-1&&a.push(i[l])}function Dn(n,i){return Qr(n,i).length>0}function hr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){rn(this,i,a)}}function on(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Fo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function wn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ti(n){on(n),Fo(n)}function Xs(n){return n.target||n.srcElement}function pr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),D&&n.ctrlKey&&i==1&&(i=3),i}var Yu=(function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n})(),Ho;function za(n){if(Ho==null){var i=S("span","");N(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Ho=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Ho?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ys;function Ci(n){if(Ys!=null)return Ys;var i=N(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return P(n),!a||a.left==a.right?!1:Ys=l.right-a.right<3}var or=`
|
|
20
|
+
|
|
21
|
+
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
22
|
+
`,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/)},Ei=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},Ia=(function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),gr=null;function Zu(n){if(gr!=null)return gr;var i=N(n,S("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return gr=Math.abs(a.left-l.left)>1}var Bo={},vr={};function mr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Bo[n]=i}function uo(n,i){vr[n]=i}function Wo(n){if(typeof n=="string"&&vr.hasOwnProperty(n))n=vr[n];else if(n&&typeof n.name=="string"&&vr.hasOwnProperty(n.name)){var i=vr[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Wo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Wo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function qo(n,i){i=Wo(i);var a=Bo[i.name];if(!a)return qo(n,"text/plain");var l=a(n,i);if(Ai.hasOwnProperty(i.name)){var u=Ai[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 Ai={};function jo(n,i){var a=Ai.hasOwnProperty(n)?Ai[n]:Ai[n]={};Z(i,a)}function Ir(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 Zs(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 Uo(n,i,a){return n.startState?n.startState(i,a):!0}var Pt=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};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pt.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},Pt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Pt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Pt.prototype.backUp=function(n){this.pos-=n},Pt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Pt.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)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Pt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Pt.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 ei(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 Xn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=pe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function W(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var w=n.lines[y],_=w.height;if(i<_)break;i-=_}return a+y}function de(n,i){return i>=n.first&&i<n.first+n.size}function we(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function se(n,i,a){if(a===void 0&&(a=null),!(this instanceof se))return new se(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Le(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Le(n,i)==0}function Vt(n){return se(n.line,n.ch)}function xn(n,i){return Le(n,i)<0?i:n}function Vo(n,i){return Le(n,i)<0?n:i}function vp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return se(n.first,0);var a=n.first+n.size-1;return i.line>a?se(a,Pe(n,a).text.length):e1(i,Pe(n,i.line).text.length)}function e1(n,i){var a=n.ch;return a==null||a>i?se(n.line,i):a<0?se(n.line,0):n}function mp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var Da=function(n,i){this.state=n,this.lookAhead=i},Dr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Dr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Dr.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}},Dr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dr.fromSaved=function(n,i,a){return i instanceof Da?new Dr(n,Ir(n.mode,i.state),a,i.lookAhead):new Dr(n,Ir(n.mode,i),a)},Dr.prototype.save=function(n){var i=n!==!1?Ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Da(i,this.maxLookAhead):i};function yp(n,i,a,l){var u=[n.state.modeGen],g={};kp(n,i.text,n.doc.mode,a,function(k,I){return u.push(k,I)},g,l);for(var y=a.state,w=function(k){a.baseTokens=u;var I=n.state.overlays[k],q=1,ee=0;a.state=!0,kp(n,i.text,I.mode,a,function(Y,ce){for(var ge=q;ee<Y;){var xe=u[q];xe>Y&&u.splice(q,1,Y,u[q+1],xe),q+=2,ee=Math.min(Y,xe)}if(ce)if(I.opaque)u.splice(ge,q-ge,Y,"overlay "+ce),q=ge+2;else for(;ge<q;ge+=2){var ke=u[ge+1];u[ge+1]=(ke?ke+" ":"")+"overlay "+ce}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function bp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Qs(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Ir(n.doc.mode,l.state),g=yp(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 Qs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Dr(l,!0,i);var g=t1(n,i,a),y=g>l.first&&Pe(l,g-1).stateAfter,w=y?Dr.fromSaved(l,y,g):new Dr(l,Uo(l.mode),g);return l.iter(g,i,function(_){Ju(n,_.text,w);var k=w.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Ju(n,i,a,l){var u=n.doc.mode,g=new Pt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&wp(u,a.state);!g.eol();)Qu(u,g,a.state),g.start=g.pos}function wp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Zs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Qu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Zs(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 xp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function _p(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ke(u,i);var w=Pe(u,i.line),_=Qs(n,i.line,a),k=new Pt(w.text,n.options.tabSize,_),I;for(l&&(I=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=Qu(g,k,_.state),l&&I.push(new xp(k,y,Ir(u.mode,_.state)));return l?I:new xp(k,y,_.state)}function Sp(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 kp(n,i,a,l,u,g,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,k=null,I=new Pt(i,n.options.tabSize,l),q,ee=n.options.addModeClass&&[null];for(i==""&&Sp(wp(a,l.state),g);!I.eol();){if(I.pos>n.options.maxHighlightLength?(w=!1,y&&Ju(n,i,l,I.pos),I.pos=i.length,q=null):q=Sp(Qu(a,I,l.state,ee),g),ee){var Y=ee[0].name;Y&&(q="m-"+(q?Y+" "+q:Y))}if(!w||k!=q){for(;_<I.start;)_=Math.min(I.start,_+5e3),u(_,k);k=q}I.start=I.pos}for(;_<I.pos;){var ce=Math.min(I.pos,_+5e3);u(ce,k),_=ce}}function t1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=g.first)return g.first;var _=Pe(g,w-1),k=_.stateAfter;if(k&&(!a||w+(k instanceof Da?k.lookAhead:0)<=g.modeFrontier))return w;var I=K(_.text,null,n.options.tabSize);(u==null||l>I)&&(u=w-1,l=I)}return u}function n1(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 Da)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Tp=!1,ti=!1;function r1(){Tp=!0}function i1(){ti=!0}function Fa(n,i,a){this.marker=n,this.from=i,this.to=a}function el(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function o1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function s1(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 l1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Fa(y,g.from,_?null:g.to))}}return l}function a1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Fa(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function ef(n,i){if(i.full)return null;var a=de(n,i.from.line)&&Pe(n,i.from.line).markedSpans,l=de(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=Le(i.from,i.to)==0,w=l1(a,u,y),_=a1(l,g,y),k=i.text.length==1,I=ve(i.text).length+(k?u:0);if(w)for(var q=0;q<w.length;++q){var ee=w[q];if(ee.to==null){var Y=el(_,ee.marker);Y?k&&(ee.to=Y.to==null?null:Y.to+I):ee.to=u}}if(_)for(var ce=0;ce<_.length;++ce){var ge=_[ce];if(ge.to!=null&&(ge.to+=I),ge.from==null){var xe=el(w,ge.marker);xe||(ge.from=I,k&&(w||(w=[])).push(ge))}else ge.from+=I,k&&(w||(w=[])).push(ge)}w&&(w=Cp(w)),_&&_!=w&&(_=Cp(_));var ke=[w];if(!k){var Me=i.text.length-2,Te;if(Me>0&&w)for(var Ne=0;Ne<w.length;++Ne)w[Ne].to==null&&(Te||(Te=[])).push(new Fa(w[Ne].marker,null,null));for(var He=0;He<Me;++He)ke.push(Te);ke.push(_)}return ke}function Cp(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 c1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Y){if(Y.markedSpans)for(var ce=0;ce<Y.markedSpans.length;++ce){var ge=Y.markedSpans[ce].marker;ge.readOnly&&(!l||pe(l,ge)==-1)&&(l||(l=[])).push(ge)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],w=y.find(0),_=0;_<u.length;++_){var k=u[_];if(!(Le(k.to,w.from)<0||Le(k.from,w.to)>0)){var I=[_,1],q=Le(k.from,w.from),ee=Le(k.to,w.to);(q<0||!y.inclusiveLeft&&!q)&&I.push({from:k.from,to:w.from}),(ee>0||!y.inclusiveRight&&!ee)&&I.push({from:w.to,to:k.to}),u.splice.apply(u,I),_+=I.length-3}}return u}function Ep(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Ap(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ha(n){return n.inclusiveLeft?-1:0}function Ba(n){return n.inclusiveRight?1:0}function tf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Le(l.from,u.from)||Ha(n)-Ha(i);if(g)return-g;var y=Le(l.to,u.to)||Ba(n)-Ba(i);return y||i.id-n.id}function Lp(n,i){var a=ti&&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||tf(l,u.marker)<0)&&(l=u.marker);return l}function Mp(n){return Lp(n,!0)}function Wa(n){return Lp(n,!1)}function u1(n,i){var a=ti&&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||tf(l,g.marker)<0)&&(l=g.marker)}return l}function $p(n,i,a,l,u){var g=Pe(n,i),y=ti&&g.markedSpans;if(y)for(var w=0;w<y.length;++w){var _=y[w];if(_.marker.collapsed){var k=_.marker.find(0),I=Le(k.from,a)||Ha(_.marker)-Ha(u),q=Le(k.to,l)||Ba(_.marker)-Ba(u);if(!(I>=0&&q<=0||I<=0&&q>=0)&&(I<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.to,a)>=0:Le(k.to,a)>0)||I>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.from,l)<=0:Le(k.from,l)<0)))return!0}}}function yr(n){for(var i;i=Mp(n);)n=i.find(-1,!0).line;return n}function f1(n){for(var i;i=Wa(n);)n=i.find(1,!0).line;return n}function d1(n){for(var i,a;i=Wa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function nf(n,i){var a=Pe(n,i),l=yr(a);return a==l?i:T(l)}function Np(n,i){if(i>n.lastLine())return i;var a=Pe(n,i),l;if(!Li(n,a))return i;for(;l=Wa(a);)a=l.find(1,!0).line;return T(a)+1}function Li(n,i){var a=ti&&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&&rf(n,i,l))return!0}}}function rf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return rf(n,l.line,el(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)&&rf(n,i,u))return!0}function ni(n){n=yr(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 w=g.children[y];if(w==a)break;i+=w.height}return i}function qa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Mp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Wa(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 of(n){var i=n.display,a=n.doc;i.maxLine=Pe(a,a.first),i.maxLineLength=qa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=qa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Go=function(n,i,a){this.text=n,Ap(this,i),this.height=a?a(this):1};Go.prototype.lineNo=function(){return T(this)},hr(Go);function h1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Ep(n),Ap(n,a);var u=l?l(n):1;u!=n.height&&Xn(n,u)}function p1(n){n.parent=null,Ep(n)}var g1={},v1={};function Op(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?v1:g1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Pp(n,i){var a=F("span",null,null,v?"padding-right: .1px":null),l={pre:F("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=y1,Ci(n.display.measure)&&(y=tt(g,n.doc.direction))&&(l.addToken=w1(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);x1(g,l,bp(n,g,w)),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(za(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Nt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function m1(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function y1(n,i,a,l,u,g,y){if(i){var w=n.splitSpaces?b1(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,I;if(!_.test(i))n.col+=i.length,I=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,I),h&&p<9&&(k=!0),n.pos+=i.length;else{I=document.createDocumentFragment();for(var q=0;;){_.lastIndex=q;var ee=_.exec(i),Y=ee?ee.index-q:i.length-q;if(Y){var ce=document.createTextNode(w.slice(q,q+Y));h&&p<9?I.appendChild(S("span",[ce])):I.appendChild(ce),n.map.push(n.pos,n.pos+Y,ce),n.col+=Y,n.pos+=Y}if(!ee)break;q+=Y+1;var ge=void 0;if(ee[0]==" "){var xe=n.cm.options.tabSize,ke=xe-n.col%xe;ge=I.appendChild(S("span",Ee(ke),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),n.col+=ke}else ee[0]=="\r"||ee[0]==`
|
|
23
|
+
`?(ge=I.appendChild(S("span",ee[0]=="\r"?"␍":"","cm-invalidchar")),ge.setAttribute("cm-text",ee[0]),n.col+=1):(ge=n.cm.options.specialCharPlaceholder(ee[0]),ge.setAttribute("cm-text",ee[0]),h&&p<9?I.appendChild(S("span",[ge])):I.appendChild(ge),n.col+=1);n.map.push(n.pos,n.pos+1,ge),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Me=a||"";l&&(Me+=l),u&&(Me+=u);var Te=S("span",[I],Me,g);if(y)for(var Ne in y)y.hasOwnProperty(Ne)&&Ne!="style"&&Ne!="class"&&Te.setAttribute(Ne,y[Ne]);return n.content.appendChild(Te)}n.content.appendChild(I)}}function b1(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 w1(n,i){return function(a,l,u,g,y,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,I=k+l.length;;){for(var q=void 0,ee=0;ee<i.length&&(q=i[ee],!(q.to>k&&q.from<=k));ee++);if(q.to>=I)return n(a,l,u,g,y,w,_);n(a,l.slice(0,q.to-k),u,g,null,w,_),g=null,l=l.slice(q.to-k),k=q.to}}}function Rp(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 x1(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]),Op(a[y+1],i.cm.options));return}for(var w=u.length,_=0,k=1,I="",q,ee,Y=0,ce,ge,xe,ke,Me;;){if(Y==_){ce=ge=xe=ee="",Me=null,ke=null,Y=1/0;for(var Te=[],Ne=void 0,He=0;He<l.length;++He){var Ie=l[He],et=Ie.marker;if(et.type=="bookmark"&&Ie.from==_&&et.widgetNode)Te.push(et);else if(Ie.from<=_&&(Ie.to==null||Ie.to>_||et.collapsed&&Ie.to==_&&Ie.from==_)){if(Ie.to!=null&&Ie.to!=_&&Y>Ie.to&&(Y=Ie.to,ge=""),et.className&&(ce+=" "+et.className),et.css&&(ee=(ee?ee+";":"")+et.css),et.startStyle&&Ie.from==_&&(xe+=" "+et.startStyle),et.endStyle&&Ie.to==Y&&(Ne||(Ne=[])).push(et.endStyle,Ie.to),et.title&&((Me||(Me={})).title=et.title),et.attributes)for(var xt in et.attributes)(Me||(Me={}))[xt]=et.attributes[xt];et.collapsed&&(!ke||tf(ke.marker,et)<0)&&(ke=Ie)}else Ie.from>_&&Y>Ie.from&&(Y=Ie.from)}if(Ne)for(var Yt=0;Yt<Ne.length;Yt+=2)Ne[Yt+1]==Y&&(ge+=" "+Ne[Yt]);if(!ke||ke.from==_)for(var $t=0;$t<Te.length;++$t)Rp(i,0,Te[$t]);if(ke&&(ke.from||0)==_){if(Rp(i,(ke.to==null?w+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=w)break;for(var Hn=Math.min(w,Y);;){if(I){var kn=_+I.length;if(!ke){var Ht=kn>Hn?I.slice(0,Hn-_):I;i.addToken(i,Ht,q?q+ce:ce,xe,_+Ht.length==Y?ge:"",ee,Me)}if(kn>=Hn){I=I.slice(Hn-_),_=Hn;break}_=kn,xe=""}I=u.slice(g,g=a[k++]),q=Op(a[k++],i.cm.options)}}}function zp(n,i,a){this.line=i,this.rest=d1(i),this.size=this.rest?T(ve(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Li(n,i)}function ja(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new zp(n.doc,Pe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Ko=null;function _1(n){Ko?Ko.ops.push(n):n.ownsGroup=Ko={ops:[n],delayedCallbacks:[]}}function S1(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 k1(n,i){var a=n.ownsGroup;if(a)try{S1(a)}finally{Ko=null,i(a)}}var tl=null;function Gt(n,i){var a=Qr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Ko?u=Ko.delayedCallbacks:tl?u=tl:(u=tl=[],setTimeout(T1,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function T1(){var n=tl;tl=null;for(var i=0;i<n.length;++i)n[i]()}function Ip(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?E1(n,i):g=="gutter"?Fp(n,i,a,l):g=="class"?sf(n,i):g=="widget"&&A1(n,i,l)}i.changes=null}function nl(n){return n.node==n.text&&(n.node=S("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function C1(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=nl(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Dp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Pp(n,i)}function E1(n,i){var a=i.text.className,l=Dp(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,sf(n,i)):a&&(i.text.className=a)}function sf(n,i){C1(n,i),i.line.wrapClass?nl(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 Fp(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=nl(i);i.gutterBackground=S("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=nl(i),w=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),y.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(S("div",we(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,I=g.hasOwnProperty(k)&&g[k];I&&w.appendChild(S("div",[I],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function A1(n,i,a){i.alignable&&(i.alignable=null);for(var l=J("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Hp(n,i,a)}function L1(n,i,a,l){var u=Dp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),sf(n,i),Fp(n,i,a,l),Hp(n,i,l),i.node}function Hp(n,i,a){if(Bp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Bp(n,i.rest[l],i,a,!1)}function Bp(n,i,a,l,u){if(i.widgets)for(var g=nl(a),y=0,w=i.widgets;y<w.length;++y){var _=w[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),M1(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Gt(_,"redraw")}}function M1(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 rl(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;"),N(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ri(n,i){for(var a=Xs(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 Ua(n){return n.lineSpace.offsetTop}function lf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Wp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=N(n.measure,S("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Fr(n){return z-n.display.nativeBarWidth}function fo(n){return n.display.scroller.clientWidth-Fr(n)-n.display.barWidth}function af(n){return n.display.scroller.clientHeight-Fr(n)-n.display.barHeight}function $1(n,i,a){var l=n.options.lineWrapping,u=l&&fo(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(),w=0;w<y.length-1;w++){var _=y[w],k=y[w+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function qp(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(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function N1(n,i){i=yr(i);var a=T(i),l=n.display.externalMeasured=new zp(n.doc,i,a);l.lineN=a;var u=l.built=Pp(n,l);return l.text=u.pre,N(n.display.lineMeasure,u.pre),l}function jp(n,i,a,l){return Hr(n,Xo(n,i),a,l)}function cf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[go(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Xo(n,i){var a=T(i),l=cf(n,a);l&&!l.text?l=null:l&&l.changes&&(Ip(n,l,a,pf(n)),n.curOp.forceUpdate=!0),l||(l=N1(n,i));var u=qp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Hr(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||($1(n,i.view,i.rect),i.hasHeights=!0),y=P1(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 Up={left:0,right:0,top:0,bottom:0};function Vp(n,i,a){for(var l,u,g,y,w,_,k=0;k<n.length;k+=3)if(w=n[k],_=n[k+1],i<w?(u=0,g=1,y="left"):i<_?(u=i-w,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-w,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],w==_&&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==_-w)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:w,coverEnd:_}}function O1(n,i){var a=Up;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 P1(n,i,a,l){var u=Vp(i.map,a,l),g=u.node,y=u.start,w=u.end,_=u.collapse,k;if(g.nodeType==3){for(var I=0;I<4;I++){for(;y&<(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&<(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=O1(V(g,y,w).getClientRects(),l),k.left||k.right||y==0)break;w=y,y=y-1,_="right"}h&&p<11&&(k=R1(n.display.measure,k))}else{y>0&&(_=l="right");var q;n.options.lineWrapping&&(q=g.getClientRects()).length>1?k=q[l=="right"?q.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var ee=g.parentNode.getClientRects()[0];ee?k={left:ee.left,right:ee.left+Zo(n.display),top:ee.top,bottom:ee.bottom}:k=Up}for(var Y=k.top-i.rect.top,ce=k.bottom-i.rect.top,ge=(Y+ce)/2,xe=i.view.measure.heights,ke=0;ke<xe.length-1&&!(ge<xe[ke]);ke++);var Me=ke?xe[ke-1]:0,Te=xe[ke],Ne={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Me,bottom:Te};return!k.left&&!k.right&&(Ne.bogus=!0),n.options.singleCursorHeightPerLine||(Ne.rtop=Y,Ne.rbottom=ce),Ne}function R1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zu(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 Gp(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 Kp(n){n.display.externalMeasure=null,P(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Gp(n.display.view[i])}function il(n){Kp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Xp(n){return b&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Yp(n){return b&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function uf(n){var i=yr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=rl(a[u]));return l}function Va(n,i,a,l,u){if(!u){var g=uf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ni(i);if(l=="local"?y+=Ua(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:Yp(Qe(n)));var _=w.left+(l=="window"?0:Xp(Qe(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Zp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Xp(Qe(n)),u-=Yp(Qe(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 Ga(n,i,a,l,u){return l||(l=Pe(n.doc,i.line)),Va(n,l,jp(n,l,i.ch,u),a)}function br(n,i,a,l,u,g){l=l||Pe(n.doc,i.line),u||(u=Xo(n,l));function y(ce,ge){var xe=Hr(n,u,ce,ge?"right":"left",g);return ge?xe.left=xe.right:xe.right=xe.left,Va(n,l,xe,a)}var w=tt(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!w)return y(k=="before"?_-1:_,k=="before");function I(ce,ge,xe){var ke=w[ge],Me=ke.level==1;return y(xe?ce-1:ce,Me!=xe)}var q=It(w,_,k),ee=zr,Y=I(_,q,k=="before");return ee!=null&&(Y.other=I(_,ee,k!="before")),Y}function Jp(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=Zo(n.display)*i.ch);var l=Pe(n.doc,i.line),u=ni(l)+Ua(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function ff(n,i,a,l,u){var g=se(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function df(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return ff(l.first,0,null,-1,-1);var u=W(l,a),g=l.first+l.size-1;if(u>g)return ff(l.first+l.size-1,Pe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Pe(l,u);;){var w=z1(n,y,u,i,a),_=u1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var k=_.find(1);if(k.line==u)return k;y=Pe(l,u=k.line)}}function Qp(n,i,a,l){l-=uf(i);var u=i.text.length,g=Ft(function(y){return Hr(n,a,y-1).bottom<=l},u,0);return u=Ft(function(y){return Hr(n,a,y).top>l},g,u),{begin:g,end:u}}function eg(n,i,a,l){a||(a=Xo(n,i));var u=Va(n,i,Hr(n,a,l),"line").top;return Qp(n,i,a,u)}function hf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function z1(n,i,a,l,u){u-=ni(i);var g=Xo(n,i),y=uf(i),w=0,_=i.text.length,k=!0,I=tt(i,n.doc.direction);if(I){var q=(n.options.lineWrapping?D1:I1)(n,i,a,g,I,l,u);k=q.level!=1,w=k?q.from:q.to-1,_=k?q.to:q.from-1}var ee=null,Y=null,ce=Ft(function(He){var Ie=Hr(n,g,He);return Ie.top+=y,Ie.bottom+=y,hf(Ie,l,u,!1)?(Ie.top<=u&&Ie.left<=l&&(ee=He,Y=Ie),!0):!1},w,_),ge,xe,ke=!1;if(Y){var Me=l-Y.left<Y.right-l,Te=Me==k;ce=ee+(Te?0:1),xe=Te?"after":"before",ge=Me?Y.left:Y.right}else{!k&&(ce==_||ce==w)&&ce++,xe=ce==0?"after":ce==i.text.length?"before":Hr(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Ne=br(n,se(a,ce,xe),"line",i,g);ge=Ne.left,ke=u<Ne.top?-1:u>=Ne.bottom?1:0}return ce=Ut(i.text,ce,1),ff(a,ce,xe,ke,l-ge)}function I1(n,i,a,l,u,g,y){var w=Ft(function(q){var ee=u[q],Y=ee.level!=1;return hf(br(n,se(a,Y?ee.to:ee.from,Y?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[w];if(w>0){var k=_.level!=1,I=br(n,se(a,k?_.from:_.to,k?"after":"before"),"line",i,l);hf(I,g,y,!0)&&I.top>y&&(_=u[w-1])}return _}function D1(n,i,a,l,u,g,y){var w=Qp(n,i,l,y),_=w.begin,k=w.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var I=null,q=null,ee=0;ee<u.length;ee++){var Y=u[ee];if(!(Y.from>=k||Y.to<=_)){var ce=Y.level!=1,ge=Hr(n,l,ce?Math.min(k,Y.to)-1:Math.max(_,Y.from)).right,xe=ge<g?g-ge+1e9:ge-g;(!I||q>xe)&&(I=Y,q=xe)}}return I||(I=u[u.length-1]),I.from<_&&(I={from:_,to:I.to,level:I.level}),I.to>k&&(I={from:I.from,to:k,level:I.level}),I}var ho;function Yo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ho==null){ho=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ho.appendChild(document.createTextNode("x")),ho.appendChild(S("br"));ho.appendChild(document.createTextNode("x"))}N(n.measure,ho);var a=ho.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),P(n.measure),a||1}function Zo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");N(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function pf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:gf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function gf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function tg(n){var i=Yo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Zo(n.display)-3);return function(u){if(Li(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 vf(n){var i=n.doc,a=tg(n);i.iter(function(l){var u=a(l);u!=l.height&&Xn(l,u)})}function po(n,i,a,l){var u=n.display;if(!a&&Xs(i).getAttribute("cm-not-content")=="true")return null;var g,y,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var _=df(n,g,y),k;if(l&&_.xRel>0&&(k=Pe(n.doc,_.line).text).length==_.ch){var I=K(k,k.length,n.options.tabSize)-k.length;_=se(_.line,Math.max(0,Math.round((g-Wp(n.display).left)/Zo(n.display))-I))}return _}function go(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 _n(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)ti&&nf(n.doc,i)<u.viewTo&&$i(n);else if(a<=u.viewFrom)ti&&Np(n.doc,a+l)>u.viewFrom?$i(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)$i(n);else if(i<=u.viewFrom){var g=Ka(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):$i(n)}else if(a>=u.viewTo){var y=Ka(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):$i(n)}else{var w=Ka(n,i,i,-1),_=Ka(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(ja(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):$i(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Mi(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[go(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);pe(y,a)==-1&&y.push(a)}}}function $i(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ka(n,i,a,l){var u=go(n,i),g,y=n.display.view;if(!ti||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=y[_].size;if(w!=i){if(l>0){if(u==y.length-1)return null;g=w+y[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;nf(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 F1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=ja(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=ja(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(go(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(ja(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,go(n,a)))),l.viewTo=a}function ng(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 ol(n){n.display.input.showSelection(n.display.input.prepareSelection())}function rg(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 w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(y){var I=y(n,_);I&&mf(n,I,u)}else(k||n.options.showCursorWhenSelecting)&&mf(n,_.head,u);k||H1(n,_,g)}}return l}function mf(n,i,a){var l=br(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Ga(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Xa(n,i){return n.top-i.top||n.left-i.left}function H1(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Wp(n.display),w=y.left,_=Math.max(l.sizerWidth,fo(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function I(Te,Ne,He,Ie){Ne<0&&(Ne=0),Ne=Math.round(Ne),Ie=Math.round(Ie),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
|
|
24
|
+
top: `+Ne+"px; width: "+(He??_-Te)+`px;
|
|
25
|
+
height: `+(Ie-Ne)+"px"))}function q(Te,Ne,He){var Ie=Pe(u,Te),et=Ie.text.length,xt,Yt;function $t(Ht,Tn){return Ga(n,se(Te,Ht),"div",Ie,Tn)}function Hn(Ht,Tn,tn){var qt=eg(n,Ie,null,Ht),Bt=Tn=="ltr"==(tn=="after")?"left":"right",Rt=tn=="after"?qt.begin:qt.end-(/\s/.test(Ie.text.charAt(qt.end-1))?2:1);return $t(Rt,Bt)[Bt]}var kn=tt(Ie,u.direction);return zn(kn,Ne||0,He??et,function(Ht,Tn,tn,qt){var Bt=tn=="ltr",Rt=$t(Ht,Bt?"left":"right"),Cn=$t(Tn-1,Bt?"right":"left"),us=Ne==null&&Ht==0,Ii=He==null&&Tn==et,ln=qt==0,Br=!kn||qt==kn.length-1;if(Cn.top-Rt.top<=3){var Zt=(k?us:Ii)&&ln,jf=(k?Ii:us)&&Br,si=Zt?w:(Bt?Rt:Cn).left,wo=jf?_:(Bt?Cn:Rt).right;I(si,Rt.top,wo-si,Rt.bottom)}else{var xo,hn,fs,Uf;Bt?(xo=k&&us&&ln?w:Rt.left,hn=k?_:Hn(Ht,tn,"before"),fs=k?w:Hn(Tn,tn,"after"),Uf=k&&Ii&&Br?_:Cn.right):(xo=k?Hn(Ht,tn,"before"):w,hn=!k&&us&&ln?_:Rt.right,fs=!k&&Ii&&Br?w:Cn.left,Uf=k?Hn(Tn,tn,"after"):_),I(xo,Rt.top,hn-xo,Rt.bottom),Rt.bottom<Cn.top&&I(w,Rt.bottom,null,Cn.top),I(fs,Cn.top,Uf-fs,Cn.bottom)}(!xt||Xa(Rt,xt)<0)&&(xt=Rt),Xa(Cn,xt)<0&&(xt=Cn),(!Yt||Xa(Rt,Yt)<0)&&(Yt=Rt),Xa(Cn,Yt)<0&&(Yt=Cn)}),{start:xt,end:Yt}}var ee=i.from(),Y=i.to();if(ee.line==Y.line)q(ee.line,ee.ch,Y.ch);else{var ce=Pe(u,ee.line),ge=Pe(u,Y.line),xe=yr(ce)==yr(ge),ke=q(ee.line,ee.ch,xe?ce.text.length+1:null).end,Me=q(Y.line,xe?0:null,Y.ch).start;xe&&(ke.top<Me.top-2?(I(ke.right,ke.top,null,ke.bottom),I(w,Me.top,Me.left,Me.bottom)):I(ke.right,ke.top,Me.left-ke.right,ke.bottom)),ke.bottom<Me.top&&I(w,ke.bottom,null,Me.top)}a.appendChild(g)}function yf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Jo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function ig(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||wf(n))}function bf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Jo(n))},100)}function wf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Nt(n,"focus",n,i),n.state.focused=!0,Se(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()),yf(n))}function Jo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Nt(n,"blur",n,i),n.state.focused=!1,O(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ya(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 w=i.view[y],_=n.options.lineWrapping,k=void 0,I=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var q=w.node.offsetTop+w.node.offsetHeight;k=q-a,a=q}else{var ee=w.node.getBoundingClientRect();k=ee.bottom-ee.top,!_&&w.text.firstChild&&(I=w.text.firstChild.getBoundingClientRect().right-ee.left-1)}var Y=w.line.height-k;if((Y>.005||Y<-.005)&&(u<l&&(g-=Y),Xn(w.line,k),og(w.line),w.rest))for(var ce=0;ce<w.rest.length;ce++)og(w.rest[ce]);if(I>n.display.sizerWidth){var ge=Math.ceil(I/Zo(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function og(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 Za(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Ua(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=W(i,l),y=W(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,y=W(i,ni(Pe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=W(i,ni(Pe(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function B1(n,i){if(!Ot(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!L){var y=S("div","",null,`position: absolute;
|
|
26
|
+
top: `+(i.top-a.viewOffset-Ua(n.display))+`px;
|
|
27
|
+
height: `+(i.bottom-i.top+Fr(n)+a.barHeight)+`px;
|
|
28
|
+
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 W1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?se(i.line,i.ch+1,"before"):i,i=i.ch?se(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,w=br(n,i),_=!a||a==i?w:br(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var k=xf(n,u),I=n.doc.scrollTop,q=n.doc.scrollLeft;if(k.scrollTop!=null&&(ll(n,k.scrollTop),Math.abs(n.doc.scrollTop-I)>1&&(y=!0)),k.scrollLeft!=null&&(vo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-q)>1&&(y=!0)),!y)break}return u}function q1(n,i){var a=xf(n,i);a.scrollTop!=null&&ll(n,a.scrollTop),a.scrollLeft!=null&&vo(n,a.scrollLeft)}function xf(n,i){var a=n.display,l=Yo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=af(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+lf(a),_=i.top<l,k=i.bottom>w-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var I=Math.min(i.top,(k?w:i.bottom)-g);I!=u&&(y.scrollTop=I)}var q=n.options.fixedGutter?0:a.gutters.offsetWidth,ee=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-q,Y=fo(n)-a.gutters.offsetWidth,ce=i.right-i.left>Y;return ce&&(i.right=i.left+Y),i.left<10?y.scrollLeft=0:i.left<ee?y.scrollLeft=Math.max(0,i.left+q-(ce?0:10)):i.right>Y+ee-3&&(y.scrollLeft=i.right+(ce?0:10)-Y),y}function _f(n,i){i!=null&&(Ja(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Qo(n){Ja(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function sl(n,i,a){(i!=null||a!=null)&&Ja(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function j1(n,i){Ja(n),n.curOp.scrollToPos=i}function Ja(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Jp(n,i.from),l=Jp(n,i.to);sg(n,a,l,i.margin)}}function sg(n,i,a,l){var u=xf(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});sl(n,u.scrollLeft,u.scrollTop)}function ll(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||kf(n,{top:i}),lg(n,i,!0),s&&kf(n),ul(n,100))}function lg(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 vo(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,dg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function al(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+lf(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+Fr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var mo=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mo.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}},mo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mo.prototype.zeroWidthHack=function(){var n=D&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ae,this.disableVert=new ae},mo.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)},mo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var cl=function(){};cl.prototype.update=function(){return{bottom:0,right:0}},cl.prototype.setScrollLeft=function(){},cl.prototype.setScrollTop=function(){},cl.prototype.clear=function(){};function es(n,i){i||(i=al(n));var a=n.display.barWidth,l=n.display.barHeight;ag(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ya(n),ag(n,al(n)),a=n.display.barWidth,l=n.display.barHeight}function ag(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 cg={native:mo,null:cl};function ug(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&O(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new cg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(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"?vo(n,i):ll(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var U1=0;function yo(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:++U1,markArrays:null},_1(n.curOp)}function bo(n){var i=n.curOp;i&&k1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;V1(a)})}function V1(n){for(var i=n.ops,a=0;a<i.length;a++)G1(i[a]);for(var l=0;l<i.length;l++)K1(i[l]);for(var u=0;u<i.length;u++)X1(i[u]);for(var g=0;g<i.length;g++)Y1(i[g]);for(var y=0;y<i.length;y++)Z1(i[y])}function G1(n){var i=n.cm,a=i.display;Q1(i),n.updateMaxLine&&of(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 Qa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function K1(n){n.updatedDisplay=n.mustUpdate&&Sf(n.cm,n.update)}function X1(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ya(i),n.barMeasure=al(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=jp(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+Fr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-fo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Y1(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&vo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(Xe(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&es(i,n.barMeasure),n.updatedDisplay&&Cf(i,n.barMeasure),n.selectionChanged&&yf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&ig(n.cm)}function Z1(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&fg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&lg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&vo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=W1(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);B1(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Nt(g[w],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&Nt(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Nt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Fn(n,i){if(n.curOp)return i();yo(n);try{return i()}finally{bo(n)}}function Kt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);yo(n);try{return i.apply(n,arguments)}finally{bo(n)}}}function dn(n){return function(){if(this.curOp)return n.apply(this,arguments);yo(this);try{return n.apply(this,arguments)}finally{bo(this)}}}function Xt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);yo(i);try{return n.apply(this,arguments)}finally{bo(i)}}}function ul(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,B(J1,n))}function J1(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Qs(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,w=g.text.length>n.options.maxHighlightLength?Ir(i.mode,l.state):null,_=yp(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var k=g.styleClasses,I=_.classes;I?g.styleClasses=I:k&&(g.styleClasses=null);for(var q=!y||y.length!=g.styles.length||k!=I&&(!k||!I||k.bgClass!=I.bgClass||k.textClass!=I.textClass),ee=0;!q&&ee<y.length;++ee)q=y[ee]!=g.styles[ee];q&&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 ul(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Fn(n,function(){for(var g=0;g<u.length;g++)Mi(n,u[g],"text")})}}var Qa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Za(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=fo(n),this.force=a,this.dims=pf(n),this.events=[]};Qa.prototype.signal=function(n,i){Dn(n,i)&&this.events.push(arguments)},Qa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Nt.apply(null,this.events[n])};function Q1(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Fr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Fr(n)+"px",i.scrollbarsClipped=!0)}function e_(n){if(n.hasFocus())return null;var i=me(Xe(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=te(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 t_(n){if(!(!n||!n.activeElt||n.activeElt==me(Ye(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 Sf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return $i(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&&ng(n)==0)return!1;hg(n)&&($i(n),i.dims=pf(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)),ti&&(g=nf(n.doc,g),y=Np(n.doc,y));var w=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;F1(n,g,y),a.viewOffset=ni(Pe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=ng(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=e_(n);return _>4&&(a.lineDiv.style.display="none"),n_(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,t_(k),P(a.cursorDiv),P(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,ul(n,400)),a.updateLineNumbers=null,!0}function fg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==fo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+lf(n.display)-af(n),a.top)}),i.visible=Za(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Za(n.display,n.doc,a));if(!Sf(n,i))break;Ya(n);var u=al(n);ol(n),es(n,u),Cf(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 kf(n,i){var a=new Qa(n,i);if(Sf(n,a)){Ya(n),fg(n,a);var l=al(n);ol(n),es(n,l),Cf(n,l),a.finish()}}function n_(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function w(ce){var ge=ce.nextSibling;return v&&D&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),ge}for(var _=l.view,k=l.viewFrom,I=0;I<_.length;I++){var q=_[I];if(!q.hidden)if(!q.node||q.node.parentNode!=g){var ee=L1(n,q,k,a);g.insertBefore(ee,y)}else{for(;y!=q.node;)y=w(y);var Y=u&&i!=null&&i<=k&&q.lineNumber;q.changes&&(pe(q.changes,"gutter")>-1&&(Y=!1),Ip(n,q,k,a)),Y&&(P(q.lineNumber),q.lineNumber.appendChild(document.createTextNode(we(n.options,k)))),y=q.node.nextSibling}k+=q.size}for(;y;)y=w(y)}function Tf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Gt(n,"gutterChanged",n)}function Cf(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+Fr(n)+"px"}function dg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=gf(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 w=a[y].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function hg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=we(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Tf(n.display),!0}return!1}function Ef(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 pg(n){var i=n.gutters,a=n.gutterSpecs;P(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,w=i.appendChild(S("div",null,"CodeMirror-gutter "+g));y&&(w.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Tf(n)}function fl(n){pg(n.display),_n(n),dg(n)}function r_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=F("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=F("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=F("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=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&&C)&&(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=Ef(l.gutters,l.lineNumbers),pg(u),a.init(u)}var ec=0,ii=null;h?ii=-.53:s?ii=15:b?ii=-.7:E&&(ii=-1/3);function gg(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 i_(n){var i=gg(n);return i.x*=ii,i.y*=ii,i}function vg(n,i){b&&x==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=gg(i),l=a.x,u=a.y,g=ii;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,w=y.scroller,_=w.scrollWidth>w.clientWidth,k=w.scrollHeight>w.clientHeight;if(l&&_||u&&k){if(u&&D&&v){e:for(var I=i.target,q=y.view;I!=w;I=I.parentNode)for(var ee=0;ee<q.length;ee++)if(q[ee].node==I){n.display.currentWheelTarget=I;break e}}if(l&&!s&&!M&&g!=null){u&&k&&ll(n,Math.max(0,w.scrollTop+u*g)),vo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&k)&&on(i),y.wheelStartX=null;return}if(u&&g!=null){var Y=u*g,ce=n.doc.scrollTop,ge=ce+y.wrapper.clientHeight;Y<0?ce=Math.max(0,ce+Y-50):ge=Math.min(n.doc.height,ge+Y+50),kf(n,{top:ce,bottom:ge})}ec<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var xe=w.scrollLeft-y.wheelStartX,ke=w.scrollTop-y.wheelStartY,Me=ke&&y.wheelDY&&ke/y.wheelDY||xe&&y.wheelDX&&xe/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Me&&(ii=(ii*ec+Me)/(ec+1),++ec)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Yn=function(n,i){this.ranges=n,this.primIndex=i};Yn.prototype.primary=function(){return this.ranges[this.primIndex]},Yn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},Yn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new Yn(n,this.primIndex)},Yn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Yn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Le(i,l.from())>=0&&Le(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return Vo(this.anchor,this.head)},gt.prototype.to=function(){return xn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(ee,Y){return Le(ee.from(),Y.from())}),a=pe(i,u);for(var g=1;g<i.length;g++){var y=i[g],w=i[g-1],_=Le(w.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Vo(w.from(),y.from()),I=xn(w.to(),y.to()),q=w.empty()?y.from()==y.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new gt(q?I:k,q?k:I))}}return new Yn(i,a)}function Ni(n,i){return new Yn([new gt(n,i||n)],0)}function Oi(n){return n.text?se(n.from.line+n.text.length-1,ve(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function mg(n,i){if(Le(n,i.from)<0)return n;if(Le(n,i.to)<=0)return Oi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Oi(i).ch-i.to.ch),se(a,l)}function Af(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(mg(u.anchor,i),mg(u.head,i)))}return wr(n.cm,a,n.sel.primIndex)}function yg(n,i,a){return n.line==i.line?se(a.line,n.ch-i.ch+a.ch):se(a.line+(n.line-i.line),n.ch)}function o_(n,i,a){for(var l=[],u=se(n.first,0),g=u,y=0;y<i.length;y++){var w=i[y],_=yg(w.from,u,g),k=yg(Oi(w),u,g);if(u=w.to,g=k,a=="around"){var I=n.sel.ranges[y],q=Le(I.head,I.anchor)<0;l[y]=new gt(q?k:_,q?_:k)}else l[y]=new gt(_,_)}return new Yn(l,n.sel.primIndex)}function Lf(n){n.doc.mode=qo(n.options,n.doc.modeOption),dl(n)}function dl(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,ul(n,100),n.state.modeGen++,n.curOp&&_n(n)}function bg(n,i){return i.from.ch==0&&i.to.ch==0&&ve(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Mf(n,i,a,l){function u(Me){return a?a[Me]:null}function g(Me,Te,Ne){h1(Me,Te,Ne,l),Gt(Me,"change",Me,i)}function y(Me,Te){for(var Ne=[],He=Me;He<Te;++He)Ne.push(new Go(k[He],u(He),l));return Ne}var w=i.from,_=i.to,k=i.text,I=Pe(n,w.line),q=Pe(n,_.line),ee=ve(k),Y=u(k.length-1),ce=_.line-w.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(bg(n,i)){var ge=y(0,k.length-1);g(q,q.text,Y),ce&&n.remove(w.line,ce),ge.length&&n.insert(w.line,ge)}else if(I==q)if(k.length==1)g(I,I.text.slice(0,w.ch)+ee+I.text.slice(_.ch),Y);else{var xe=y(1,k.length-1);xe.push(new Go(ee+I.text.slice(_.ch),Y,l)),g(I,I.text.slice(0,w.ch)+k[0],u(0)),n.insert(w.line+1,xe)}else if(k.length==1)g(I,I.text.slice(0,w.ch)+k[0]+q.text.slice(_.ch),u(0)),n.remove(w.line+1,ce);else{g(I,I.text.slice(0,w.ch)+k[0],u(0)),g(q,ee+q.text.slice(_.ch),Y);var ke=y(1,k.length-1);ce>1&&n.remove(w.line+1,ce-1),n.insert(w.line+1,ke)}Gt(n,"change",n,i)}function Pi(n,i,a){function l(u,g,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function wg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,vf(n),Lf(n),xg(n),n.options.direction=i.direction,n.options.lineWrapping||of(n),n.options.mode=i.modeOption,_n(n)}function xg(n){(n.doc.direction=="rtl"?Se:O)(n.display.lineDiv,"CodeMirror-rtl")}function s_(n){Fn(n,function(){xg(n),_n(n)})}function tc(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 $f(n,i){var a={from:Vt(i.from),to:Oi(i),text:ei(n,i.from,i.to)};return kg(n,a,i.from.line,i.to.line+1),Pi(n,function(l){return kg(l,a,i.from.line,i.to.line+1)},!0),a}function _g(n){for(;n.length;){var i=ve(n);if(i.ranges)n.pop();else break}}function l_(n,i){if(i)return _g(n.done),ve(n.done);if(n.done.length&&!ve(n.done).ranges)return ve(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ve(n.done)}function Sg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,w;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=l_(u,u.lastOp==l)))w=ve(y.changes),Le(i.from,i.to)==0&&Le(i.from,w.to)==0?w.to=Oi(i):y.changes.push($f(n,i));else{var _=ve(u.done);for((!_||!_.ranges)&&nc(n.sel,u.done),y={changes:[$f(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,w||Nt(n,"historyAdded")}function a_(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 c_(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||a_(n,g,ve(u.done),i))?u.done[u.done.length-1]=i:nc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&_g(u.undone)}function nc(n,i){var a=ve(i);a&&a.ranges&&a.equals(n)||i.push(n)}function kg(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 u_(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 f_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(u_(a[u]));return l}function Tg(n,i){var a=f_(n,i),l=ef(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 w=0;w<y.length;++w){for(var _=y[w],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function ts(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Yn.prototype.deepCopy.call(g):g);continue}var y=g.changes,w=[];l.push({changes:w});for(var _=0;_<y.length;++_){var k=y[_],I=void 0;if(w.push({from:k.from,to:k.to,text:k.text}),i)for(var q in k)(I=q.match(/^spans_(\d+)$/))&&pe(i,Number(I[1]))>-1&&(ve(w)[q]=k[q],delete k[q])}}return l}function Nf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Le(i,u)<0;g!=Le(a,u)<0?(u=i,i=a):g!=Le(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function rc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),sn(n,new Yn([Nf(n.sel.primary(),i,a,u)],0),l)}function Cg(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]=Nf(n.sel.ranges[g],i[g],null,u);var y=wr(n.cm,l,n.sel.primIndex);sn(n,y,a)}function Of(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,sn(n,wr(n.cm,u,n.sel.primIndex),l)}function Eg(n,i,a,l){sn(n,Ni(i,a),l)}function d_(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 gt(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Nt(n,"beforeSelectionChange",n,l),n.cm&&Nt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?wr(n.cm,l.ranges,l.ranges.length-1):i}function Ag(n,i,a){var l=n.history.done,u=ve(l);u&&u.ranges?(l[l.length-1]=i,ic(n,i,a)):sn(n,i,a)}function sn(n,i,a){ic(n,i,a),c_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function ic(n,i,a){(Dn(n,"beforeSelectionChange")||n.cm&&Dn(n.cm,"beforeSelectionChange"))&&(i=d_(n,i,a));var l=a&&a.bias||(Le(i.primary().head,n.sel.primary().head)<0?-1:1);Lg(n,$g(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Qo(n.cm)}function Lg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ir(n.cm)),Gt(n,"cursorActivity",n))}function Mg(n){Lg(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],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=oc(n,y.anchor,w&&w.anchor,a,l),k=y.head==y.anchor?_:oc(n,y.head,w&&w.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(_,k))}return u?wr(n.cm,u,i.primIndex):i}function ns(n,i,a,l,u){var g=Pe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var w=g.markedSpans[y],_=w.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,I="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(k?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(I?w.to>=i.ch:w.to>i.ch))){if(u&&(Nt(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var q=_.find(l<0?1:-1),ee=void 0;if((l<0?I:k)&&(q=Ng(n,q,-l,q&&q.line==i.line?g:null)),q&&q.line==i.line&&(ee=Le(q,a))&&(l<0?ee<0:ee>0))return ns(n,q,i,l,u)}var Y=_.find(l<0?-1:1);return(l<0?k:I)&&(Y=Ng(n,Y,l,Y.line==i.line?g:null)),Y?ns(n,Y,i,l,u):null}}return i}function oc(n,i,a,l,u){var g=l||1,y=ns(n,i,a,g,u)||!u&&ns(n,i,a,g,!0)||ns(n,i,a,-g,u)||!u&&ns(n,i,a,-g,!0);return y||(n.cantEdit=!0,se(n.first,0))}function Ng(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,se(i.line-1)):null:a>0&&i.ch==(l||Pe(n,i.line)).text.length?i.line<n.first+n.size-1?se(i.line+1,0):null:new se(i.line,i.ch+a)}function Og(n){n.setSelection(se(n.firstLine(),0),se(n.lastLine()),X)}function Pg(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,w){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),y&&(l.text=y),w!==void 0&&(l.origin=w)}),Nt(n,"beforeChange",n,l),n.cm&&Nt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function rs(n,i,a){if(n.cm){if(!n.cm.curOp)return Kt(n.cm,rs)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"))&&(i=Pg(n,i,!0),!i))){var l=Tp&&!a&&c1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Rg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Rg(n,i)}}function Rg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Le(i.from,i.to)==0)){var a=Af(n,i);Sg(n,i,a,n.cm?n.cm.curOp.id:NaN),hl(n,i,a,ef(n,i));var l=[];Pi(n,function(u,g){!g&&pe(l,u.history)==-1&&(Fg(u.history,i),l.push(u.history)),hl(u,i,null,ef(u,i))})}}function sc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,k=0;k<w.length&&(g=w[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(nc(g,_),a&&!g.equals(n.sel)){sn(n,g,{clearRedo:!1});return}y=g}else if(l){w.push(g);return}else break;var I=[];nc(y,_),_.push({changes:I,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var q=Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"),ee=function(ge){var xe=g.changes[ge];if(xe.origin=i,q&&!Pg(n,xe,!1))return w.length=0,{};I.push($f(n,xe));var ke=ge?Af(n,xe):ve(w);hl(n,xe,ke,Tg(n,xe)),!ge&&n.cm&&n.cm.scrollIntoView({from:xe.from,to:Oi(xe)});var Me=[];Pi(n,function(Te,Ne){!Ne&&pe(Me,Te.history)==-1&&(Fg(Te.history,xe),Me.push(Te.history)),hl(Te,xe,null,Tg(Te,xe))})},Y=g.changes.length-1;Y>=0;--Y){var ce=ee(Y);if(ce)return ce.v}}}}function zg(n,i){if(i!=0&&(n.first+=i,n.sel=new Yn(be(n.sel.ranges,function(u){return new gt(se(u.anchor.line+i,u.anchor.ch),se(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){_n(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Mi(n.cm,l,"gutter")}}function hl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Kt(n.cm,hl)(n,i,a,l);if(i.to.line<n.first){zg(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);zg(n,u),i={from:se(n.first,0),to:se(i.to.line+u,i.to.ch),text:[ve(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:se(g,Pe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ei(n,i.from,i.to),a||(a=Af(n,i)),n.cm?h_(n.cm,i,l):Mf(n,i,l),ic(n,a,X),n.cantEdit&&oc(n,se(n.firstLine(),0))&&(n.cantEdit=!1)}}function h_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=T(yr(Pe(l,g.line))),l.iter(_,y.line+1,function(Y){if(Y==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ir(n),Mf(l,i,a,tg(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(Y){var ce=qa(Y);ce>u.maxLineLength&&(u.maxLine=Y,u.maxLineLength=ce,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),n1(l,g.line),ul(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?_n(n):g.line==y.line&&i.text.length==1&&!bg(n.doc,i)?Mi(n,g.line,"text"):_n(n,g.line,y.line+1,k);var I=Dn(n,"changes"),q=Dn(n,"change");if(q||I){var ee={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};q&&Gt(n,"change",n,ee),I&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(ee)}n.display.selForContextMenu=null}function is(n,i,a,l,u){var g;l||(l=a),Le(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),rs(n,{from:a,to:l,text:i,origin:u})}function Ig(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Dg(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 w=0;w<g.ranges.length;w++)Ig(g.ranges[w].anchor,i,a,l),Ig(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=se(k.from.line+l,k.from.ch),k.to=se(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 Fg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Dg(n.done,a,l,u),Dg(n.undone,a,l,u)}function pl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Pe(n,vp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Mi(n.cm,u,a),g)}function gl(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}gl.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,p1(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 vl(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}vl.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 gl))){var w=[];this.collapse(w),this.children=[new gl(w)],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,w=y;w<u.lines.length;){var _=new gl(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new vl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=pe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new vl(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 ml=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};ml.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(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=rl(this);Xn(a,Math.max(0,a.height-g)),n&&(Fn(n,function(){Hg(n,a,-g),Mi(n,l,"widget")}),Gt(n,"lineWidgetCleared",n,this,l))}},ml.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=rl(this)-i;u&&(Li(this.doc,l)||Xn(l,l.height+u),a&&Fn(a,function(){a.curOp.forceUpdate=!0,Hg(a,l,u),Gt(a,"lineWidgetChanged",a,n,T(l))}))},hr(ml);function Hg(n,i,a){ni(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&_f(n,a)}function p_(n,i,a,l){var u=new ml(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),pl(n,i,"widget",function(y){var w=y.widgets||(y.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Li(n,y)){var _=ni(y)<n.scrollTop;Xn(y,y.height+rl(u)),_&&_f(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Gt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Bg=0,Ri=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Bg};Ri.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&yo(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],w=el(y.markedSpans,this);n&&!this.collapsed?Mi(n,T(y),"text"):n&&(w.to!=null&&(u=T(y)),w.from!=null&&(l=T(y))),y.markedSpans=o1(y.markedSpans,w),w.from==null&&this.collapsed&&!Li(this.doc,y)&&n&&Xn(y,Yo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=yr(this.lines[_]),I=qa(k);I>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=I,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&_n(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Mg(n.doc)),n&&Gt(n,"markerCleared",n,this,l,u),i&&bo(n),this.parent&&this.parent.clear()}},Ri.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=el(g.markedSpans,this);if(y.from!=null&&(a=se(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=se(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ri.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Fn(l,function(){var u=i.line,g=T(i.line),y=cf(l,g);if(y&&(Gp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Li(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=rl(a)-w;_&&Xn(u,u.height+_)}Gt(l,"markerChanged",l,n)})},Ri.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||pe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ri.prototype.detachLine=function(n){if(this.lines.splice(pe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},hr(Ri);function os(n,i,a,l,u){if(l&&l.shared)return g_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Kt(n.cm,os)(n,i,a,l,u);var g=new Ri(n,u),y=Le(i,a);if(l&&Z(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=F("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if($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");i1()}g.addToHistory&&Sg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,k;if(n.iter(w,a.line+1,function(q){_&&g.collapsed&&!_.options.lineWrapping&&yr(q)==_.display.maxLine&&(k=!0),g.collapsed&&w!=i.line&&Xn(q,0),s1(q,new Fa(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(q){Li(n,q)&&Xn(q,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(r1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Bg,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)_n(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var I=i.line;I<=a.line;I++)Mi(_,I,"text");g.atomic&&Mg(_.doc),Gt(_,"markerAdded",_,g)}return g}var yl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};yl.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")}},yl.prototype.find=function(n,i){return this.primary.find(n,i)},hr(yl);function g_(n,i,a,l,u){l=Z(l),l.shared=!1;var g=[os(n,i,a,l,u)],y=g[0],w=l.widgetNode;return Pi(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(os(_,Ke(_,i),Ke(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=ve(g)}),new yl(g,y)}function Wg(n){return n.findMarks(se(n.first,0),n.clipPos(se(n.lastLine())),function(i){return i.parent})}function v_(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(Le(g,y)){var w=os(n,g,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function m_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Pi(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];pe(g,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var y_=0,Sn=function(n,i,a,l,u){if(!(this instanceof Sn))return new Sn(n,i,a,l,u);a==null&&(a=0),vl.call(this,[new gl([new Go("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=se(a,0);this.sel=Ni(g),this.history=new tc(null),this.id=++y_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Mf(this,{from:g,to:g,text:n}),sn(this,Ni(g),X)};Sn.prototype=De(vl.prototype,{constructor:Sn,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=se(this.first,0),a=this.first+this.size-1;rs(this,{from:i,to:se(a,Pe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&sl(this.cm,0,0),sn(this,Ni(i),X)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,is(this,n,i,a,l)},getRange:function(n,i,a){var l=ei(this,Ke(this,n),Ke(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(de(this,n))return Pe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pe(this,n)),yr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(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){Eg(this,Ke(this,typeof n=="number"?se(n,i||0):n),null,a)}),setSelection:Xt(function(n,i,a){Eg(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Xt(function(n,i,a){rc(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Xt(function(n,i){Cg(this,mp(this,n),i)}),extendSelectionsBy:Xt(function(n,i){var a=be(this.sel.ranges,n);Cg(this,mp(this,a),i)}),setSelections:Xt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),sn(this,wr(this.cm,l,i),a)}}),addSelection:Xt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(Ke(this,n),Ke(this,i||n))),sn(this,wr(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=ei(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=ei(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 w=i&&i!="end"&&o_(this,l,i),_=l.length-1;_>=0;_--)rs(this,l[_]);w?Ag(this,w):this.cm&&Qo(this.cm)}),undo:Xt(function(){sc(this,"undo")}),redo:Xt(function(){sc(this,"redo")}),undoSelection:Xt(function(){sc(this,"undo",!0)}),redoSelection:Xt(function(){sc(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 tc(this.history),Pi(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ts(this.history.done),undone:ts(this.history.undone)}},setHistory:function(n){var i=this.history=new tc(this.history);i.done=ts(n.done.slice(0),null,!0),i.undone=ts(n.undone.slice(0),null,!0)},setGutterMarker:Xt(function(n,i,a){return pl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ut(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Xt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&pl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ut(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!de(this,n)||(i=n,n=Pe(this,n),!n))return null}else if(i=T(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 pl(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(J(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Xt(function(n,i,a){return pl(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(J(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Xt(function(n,i,a){return p_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return os(this,Ke(this,n),Ke(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=Ke(this,n),os(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(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=Ke(this,n),i=Ke(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 w=0;w<y.length;w++){var _=y[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,se(a,i))},indexFromPos:function(n){n=Ke(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 Sn(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 Sn(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}],v_(l,Wg(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),m_(Wg(this));break}}if(n.history==this.history){var l=[n.id];Pi(n,function(u){return l.push(u.id)},!0),n.history=new tc(null),n.history.done=ts(this.history.done,l),n.history.undone=ts(this.history.undone,l)}},iterLinkedDocs:function(n){Pi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):or(n)},lineSeparator:function(){return this.lineSep||`
|
|
29
|
+
`},setDirection:Xt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&s_(this.cm))})}),Sn.prototype.eachLine=Sn.prototype.iter;var qg=0;function b_(n){var i=this;if(jg(i),!(Ot(i,n)||ri(i.display,n))){on(n),h&&(qg=+new Date);var a=po(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,w=function(){++y==u&&Kt(i,function(){a=Ke(i.doc,a);var Y={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};rs(i.doc,Y),Ag(i.doc,Ni(Ke(i.doc,a),Ke(i.doc,Oi(Y))))})()},_=function(Y,ce){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,Y.type)==-1){w();return}var ge=new FileReader;ge.onerror=function(){return w()},ge.onload=function(){var xe=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(xe)){w();return}g[ce]=xe,w()},ge.readAsText(Y)},k=0;k<l.length;k++)_(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var I=n.dataTransfer.getData("Text");if(I){var q;if(i.state.draggingText&&!i.state.draggingText.copy&&(q=i.listSelections()),ic(i.doc,Ni(a,a)),q)for(var ee=0;ee<q.length;++ee)is(i.doc,"",q[ee].anchor,q[ee].head,"drag");i.replaceSelection(I,"around","paste"),i.display.input.focus()}}catch{}}}}function w_(n,i){if(h&&(!n.state.draggingText||+new Date-qg<100)){Ti(i);return}if(!(Ot(n,i)||ri(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!E)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",M&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),M&&a.parentNode.removeChild(a)}}function x_(n,i){var a=po(n,i);if(a){var l=document.createDocumentFragment();mf(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),N(n.display.dragCursor,l)}}function jg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Ug(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 Vg=!1;function __(){Vg||(S_(),Vg=!0)}function S_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Ug(k_)},100))}),Fe(window,"blur",function(){return Ug(Jo)})}function k_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var zi={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"},bl=0;bl<10;bl++)zi[bl+48]=zi[bl+96]=String(bl);for(var lc=65;lc<=90;lc++)zi[lc]=String.fromCharCode(lc);for(var wl=1;wl<=12;wl++)zi[wl+111]=zi[wl+63235]="F"+wl;var oi={};oi.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"},oi.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"},oi.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"},oi.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"]},oi.default=D?oi.macDefault:oi.pcDefault;function T_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function C_(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=be(a.split(" "),T_),g=0;g<u.length;g++){var y=void 0,w=void 0;g==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,g+1).join(" "),y="...");var _=i[w];if(!_)i[w]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var k in i)n[k]=i[k];return n}function ss(n,i,a,l){i=ac(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ss(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ss(n,i.fallthrough[g],a,l);if(y)return y}}}function Gg(n){var i=typeof n=="string"?n:zi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Kg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ne?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ne?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Xg(n,i){if(M&&n.keyCode==34&&n.char)return!1;var a=zi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Kg(a,n,i))}function ac(n){return typeof n=="string"?oi[n]:n}function ls(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Le(g.from,ve(l).to)<=0;){var y=l.pop();if(Le(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Fn(n,function(){for(var w=l.length-1;w>=0;w--)is(n.doc,"",l[w].from,l[w].to,"+delete");Qo(n)})}function Pf(n,i,a){var l=Ut(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Rf(n,i,a){var l=Pf(n,i.ch,a);return l==null?null:new se(i.line,l,a<0?"after":"before")}function zf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=tt(a,i.doc.direction);if(g){var y=u<0?ve(g):g[0],w=u<0==(y.level==1),_=w?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var I=Xo(i,a);k=u<0?a.text.length-1:0;var q=Hr(i,I,k).top;k=Ft(function(ee){return Hr(i,I,ee).top==q},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=Pf(a,k,1))}else k=u<0?y.to:y.from;return new se(l,k,_)}}return new se(l,u<0?a.text.length:0,u<0?"before":"after")}function E_(n,i,a,l){var u=tt(i,n.doc.direction);if(!u)return Rf(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=It(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 Rf(i,a,l);var w=function(ke,Me){return Pf(i,ke instanceof se?ke.ch:ke,Me)},_,k=function(ke){return n.options.lineWrapping?(_=_||Xo(n,i),eg(n,i,_,ke)):{begin:0,end:i.text.length}},I=k(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var q=y.level==1==l<0,ee=w(a,q?1:-1);if(ee!=null&&(q?ee<=y.to&&ee<=I.end:ee>=y.from&&ee>=I.begin)){var Y=q?"before":"after";return new se(a.line,ee,Y)}}var ce=function(ke,Me,Te){for(var Ne=function(xt,Yt){return Yt?new se(a.line,w(xt,1),"before"):new se(a.line,xt,"after")};ke>=0&&ke<u.length;ke+=Me){var He=u[ke],Ie=Me>0==(He.level!=1),et=Ie?Te.begin:w(Te.end,-1);if(He.from<=et&&et<He.to||(et=Ie?He.from:w(He.to,-1),Te.begin<=et&&et<Te.end))return Ne(et,Ie)}},ge=ce(g+l,l,I);if(ge)return ge;var xe=l>0?I.end:w(I.begin,-1);return xe!=null&&!(l>0&&xe==i.text.length)&&(ge=ce(l>0?0:u.length-1,l,k(xe)),ge)?ge:null}var xl={selectAll:Og,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),X)},killLine:function(n){return ls(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:se(i.head.line+1,0)}:{from:i.head,to:se(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ls(n,function(i){return{from:se(i.from().line,0),to:Ke(n.doc,se(i.to().line+1,0))}})},delLineLeft:function(n){return ls(n,function(i){return{from:se(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(se(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(se(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Yg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Zg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return A_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Zg(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=K(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Fn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Pe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new se(u.line,u.ch-1)),u.ch>0)u=new se(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),se(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 se(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),se(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Fn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);Qo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
30
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Yg(n,i){var a=Pe(n.doc,i),l=yr(a);return l!=a&&(i=T(l)),zf(!0,n,l,i,1)}function A_(n,i){var a=Pe(n.doc,i),l=f1(a);return l!=a&&(i=T(l)),zf(!0,n,a,i,-1)}function Zg(n,i){var a=Yg(n,i.line),l=Pe(n.doc,a.line),u=tt(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 se(a.line,y?0:g,a.sticky)}return a}function cc(n,i,a){if(typeof i=="string"&&(i=xl[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)!=j}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function L_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ss(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ss(i,n.options.extraKeys,a,n)||ss(i,n.options.keyMap,a,n)}var M_=new ae;function _l(n,i,a,l){var u=n.state.keySeq;if(u){if(Gg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:M_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Jg(n,u+" "+i,a,l))return!0}return Jg(n,i,a,l)}function Jg(n,i,a,l){var u=L_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Gt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(on(a),yf(n)),!!u}function Qg(n,i){var a=Xg(i,!0);return a?i.shiftKey&&!n.state.keySeq?_l(n,"Shift-"+a,i,function(l){return cc(n,l,!0)})||_l(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return cc(n,l)}):_l(n,a,i,function(l){return cc(n,l)}):!1}function $_(n,i,a){return _l(n,"'"+a+"'",i,function(l){return cc(n,l,!0)})}var If=null;function ev(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(Xe(i)),!Ot(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Qg(i,n);M&&(If=l?a:null,!l&&a==88&&!Ia&&(D?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!D&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&N_(i)}}function N_(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(O(i,"CodeMirror-crosshair"),rn(document,"keyup",a),rn(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function tv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,n)}function nv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ri(i.display,n)||Ot(i,n)||n.ctrlKey&&!n.altKey||D&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(M&&a==If){If=null,on(n);return}if(!(M&&(!n.which||n.which<10)&&Qg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&($_(i,n,u)||i.display.input.onKeyPress(n))}}}var O_=400,Df=function(n,i,a){this.time=n,this.pos=i,this.button=a};Df.prototype.compare=function(n,i,a){return this.time+O_>n&&Le(i,this.pos)==0&&a==this.button};var Sl,kl;function P_(n,i){var a=+new Date;return kl&&kl.compare(a,n,i)?(Sl=kl=null,"triple"):Sl&&Sl.compare(a,n,i)?(kl=new Df(a,n,i),Sl=null,"double"):(Sl=new Df(a,n,i),kl=null,"single")}function rv(n){var i=this,a=i.display;if(!(Ot(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ri(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Ff(i,n)){var l=po(i,n),u=pr(n),g=l?P_(l,u):"single";te(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&R_(i,u,l,g,n))&&(u==1?l?I_(i,l,g,n):Xs(n)==a.scroller&&on(n):u==2?(l&&rc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):bf(i)))}}}function R_(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,_l(n,Kg(g,u),u,function(y){if(typeof y=="string"&&(y=xl[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=j}finally{n.state.suppressEdits=!1}return w})}function z_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=U?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=D?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(D?a.altKey:a.ctrlKey)),u}function I_(n,i,a,l){h?setTimeout(B(ig,n),0):n.curOp.focus=me(Xe(n));var u=z_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Yu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Le((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Le(y.to(),i)>0||i.xRel<0)?D_(n,l,i,u):F_(n,l,i,u)}function D_(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:bf(n)),rn(u.wrapper.ownerDocument,"mouseup",y),rn(u.wrapper.ownerDocument,"mousemove",w),rn(u.scroller,"dragstart",_),rn(u.scroller,"drop",y),g||(on(k),l.addNew||rc(n.doc,a,null,null,l.extend),v&&!E||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",y),Fe(u.wrapper.ownerDocument,"mousemove",w),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function iv(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(se(i.line,0),Ke(n.doc,se(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function F_(n,i,a,l){h&&bf(n);var u=n.display,g=n.doc;on(i);var y,w,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?y=k[w]:y=new gt(a,a)):(y=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=po(n,i,!0,!0),w=-1;else{var I=iv(n,a,l.unit);l.extend?y=Nf(y,I.anchor,I.head,l.extend):y=I}l.addNew?w==-1?(w=k.length,sn(g,wr(n,k.concat([y]),w),{scroll:!1,origin:"*mouse"})):k.length>1&&k[w].empty()&&l.unit=="char"&&!l.extend?(sn(g,wr(n,k.slice(0,w).concat(k.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Of(g,w,y,ue):(w=0,sn(g,new Yn([y],0),ue),_=g.sel);var q=a;function ee(Te){if(Le(q,Te)!=0)if(q=Te,l.unit=="rectangle"){for(var Ne=[],He=n.options.tabSize,Ie=K(Pe(g,a.line).text,a.ch,He),et=K(Pe(g,Te.line).text,Te.ch,He),xt=Math.min(Ie,et),Yt=Math.max(Ie,et),$t=Math.min(a.line,Te.line),Hn=Math.min(n.lastLine(),Math.max(a.line,Te.line));$t<=Hn;$t++){var kn=Pe(g,$t).text,Ht=fe(kn,xt,He);xt==Yt?Ne.push(new gt(se($t,Ht),se($t,Ht))):kn.length>Ht&&Ne.push(new gt(se($t,Ht),se($t,fe(kn,Yt,He))))}Ne.length||Ne.push(new gt(a,a)),sn(g,wr(n,_.ranges.slice(0,w).concat(Ne),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var Tn=y,tn=iv(n,Te,l.unit),qt=Tn.anchor,Bt;Le(tn.anchor,qt)>0?(Bt=tn.head,qt=Vo(Tn.from(),tn.anchor)):(Bt=tn.anchor,qt=xn(Tn.to(),tn.head));var Rt=_.ranges.slice(0);Rt[w]=H_(n,new gt(Ke(g,qt),Bt)),sn(g,wr(n,Rt,w),ue)}}var Y=u.wrapper.getBoundingClientRect(),ce=0;function ge(Te){var Ne=++ce,He=po(n,Te,!0,l.unit=="rectangle");if(He)if(Le(He,q)!=0){n.curOp.focus=me(Xe(n)),ee(He);var Ie=Za(u,g);(He.line>=Ie.to||He.line<Ie.from)&&setTimeout(Kt(n,function(){ce==Ne&&ge(Te)}),150)}else{var et=Te.clientY<Y.top?-20:Te.clientY>Y.bottom?20:0;et&&setTimeout(Kt(n,function(){ce==Ne&&(u.scroller.scrollTop+=et,ge(Te))}),50)}}function xe(Te){n.state.selectingText=!1,ce=1/0,Te&&(on(Te),u.input.focus()),rn(u.wrapper.ownerDocument,"mousemove",ke),rn(u.wrapper.ownerDocument,"mouseup",Me),g.history.lastSelOrigin=null}var ke=Kt(n,function(Te){Te.buttons===0||!pr(Te)?xe(Te):ge(Te)}),Me=Kt(n,xe);n.state.selectingText=Me,Fe(u.wrapper.ownerDocument,"mousemove",ke),Fe(u.wrapper.ownerDocument,"mouseup",Me)}function H_(n,i){var a=i.anchor,l=i.head,u=Pe(n.doc,a.line);if(Le(a,l)==0&&a.sticky==l.sticky)return i;var g=tt(u);if(!g)return i;var y=It(g,a.ch,a.sticky),w=g[y];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=y+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var I=It(g,l.ch,l.sticky),q=I-y||(l.ch-a.ch)*(w.level==1?-1:1);I==_-1||I==_?k=q<0:k=q>0}var ee=g[_+(k?-1:0)],Y=k==(ee.level==1),ce=Y?ee.from:ee.to,ge=Y?"after":"before";return a.ch==ce&&a.sticky==ge?i:new gt(new se(a.line,ce,ge),l)}function ov(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&&on(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(g>w.bottom||!Dn(n,a))return wn(i);g-=w.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var I=W(n.doc,g),q=n.display.gutterSpecs[_];return Nt(n,a,n,I,q.className,i),wn(i)}}}function Ff(n,i){return ov(n,i,"gutterClick",!0)}function sv(n,i){ri(n.display,i)||B_(n,i)||Ot(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function B_(n,i){return Dn(n,"gutterContextMenu")?ov(n,i,"gutterContextMenu",!1):!1}function lv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),il(n)}var as={toString:function(){return"CodeMirror.Init"}},av={},uc={};function W_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(w,_,k){k!=as&&g(w,_,k)}:g)}n.defineOption=a,n.Init=as,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Lf(l)},!0),a("indentUnit",2,Lf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){dl(l),il(l),_n(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var k=0;;){var I=_.text.indexOf(u,k);if(I==-1)break;k=I+u.length,g.push(se(y,I))}y++});for(var w=g.length-1;w>=0;w--)is(l.doc,u,g[w],se(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=as&&l.refresh()}),a("specialCharPlaceholder",m1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",C?"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",!ie),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){lv(l),fl(l)},!0),a("keyMap","default",function(l,u,g){var y=ac(u),w=g!=as&&ac(g);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,j_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Ef(u,l.options.lineNumbers),fl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?gf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return es(l)},!0),a("scrollbarStyle","native",function(l){ug(l),es(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Ef(l.options.gutters,u),fl(l)},!0),a("firstLineNumber",1,fl,!0),a("lineNumberFormatter",function(l){return l},fl,!0),a("showCursorWhenSelecting",!1,ol,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Jo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,q_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ol,!0),a("singleCursorHeightPerLine",!0,ol,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,dl,!0),a("addModeClass",!1,dl,!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,dl,!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 q_(n,i,a){var l=a&&a!=as;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:rn;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 j_(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(O(n.display.wrapper,"CodeMirror-wrap"),of(n)),vf(n),_n(n),il(n),setTimeout(function(){return es(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?Z(i):{},Z(av,i,!1);var l=i.value;typeof l=="string"?l=new Sn(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 r_(n,l,u,i);g.wrapper.CodeMirror=this,lv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ug(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 ae,keySeq:null,specialChars:null},i.autofocus&&!C&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),U_(this),__(),yo(this),this.curOp.forceUpdate=!0,wg(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&wf(a)},20):Jo(this);for(var y in uc)uc.hasOwnProperty(y)&&uc[y](this,i[y],as);hg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Hf.length;++w)Hf[w](this);bo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Ct.defaults=av,Ct.optionHandlers=uc;function U_(n){var i=n.display;Fe(i.scroller,"mousedown",Kt(n,rv)),h&&p<11?Fe(i.scroller,"dblclick",Kt(n,function(_){if(!Ot(n,_)){var k=po(n,_);if(!(!k||Ff(n,_)||ri(n.display,_))){on(_);var I=n.findWordAt(k);rc(n.doc,I.anchor,I.head)}}})):Fe(i.scroller,"dblclick",function(_){return Ot(n,_)||on(_)}),Fe(i.scroller,"contextmenu",function(_){return sv(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||sv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var I=k.left-_.left,q=k.top-_.top;return I*I+q*q>400}Fe(i.scroller,"touchstart",function(_){if(!Ot(n,_)&&!g(_)&&!Ff(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!ri(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var I=n.coordsChar(i.activeTouch,"page"),q;!k.prev||y(k,k.prev)?q=new gt(I,I):!k.prev.prev||y(k,k.prev.prev)?q=n.findWordAt(I):q=new gt(se(I.line,0),Ke(n.doc,se(I.line+1,0))),n.setSelection(q.anchor,q.head),n.focus(),on(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(ll(n,i.scroller.scrollTop),vo(n,i.scroller.scrollLeft,!0),Nt(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return vg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return vg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Ot(n,_)||Ti(_)},over:function(_){Ot(n,_)||(x_(n,_),Ti(_))},start:function(_){return w_(n,_)},drop:Kt(n,b_),leave:function(_){Ot(n,_)||jg(n)}};var w=i.input.getField();Fe(w,"keyup",function(_){return tv.call(n,_)}),Fe(w,"keydown",Kt(n,ev)),Fe(w,"keypress",Kt(n,nv)),Fe(w,"focus",function(_){return wf(n,_)}),Fe(w,"blur",function(_){return Jo(n,_)})}var Hf=[];Ct.defineInitHook=function(n){return Hf.push(n)};function Tl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Qs(n,i).state:a="prev");var y=n.options.tabSize,w=Pe(u,i),_=K(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var k=w.text.match(/^\s*/)[0],I;if(!l&&!/\S/.test(w.text))I=0,a="not";else if(a=="smart"&&(I=u.mode.indent(g,w.text.slice(k.length),w.text),I==j||I>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?I=K(Pe(u,i-1).text,null,y):I=0:a=="add"?I=_+n.options.indentUnit:a=="subtract"?I=_-n.options.indentUnit:typeof a=="number"&&(I=_+a),I=Math.max(0,I);var q="",ee=0;if(n.options.indentWithTabs)for(var Y=Math.floor(I/y);Y;--Y)ee+=y,q+=" ";if(ee<I&&(q+=Ee(I-ee)),q!=k)return is(u,q,se(i,0),se(i,k.length),"+input"),w.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var ge=u.sel.ranges[ce];if(ge.head.line==i&&ge.head.ch<k.length){var xe=se(i,k.length);Of(u,ce,new gt(xe,xe));break}}}var xr=null;function fc(n){xr=n}function Bf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,_=or(i),k=null;if(w&&l.ranges.length>1)if(xr&&xr.text.join(`
|
|
31
|
+
`)==i){if(l.ranges.length%xr.text.length==0){k=[];for(var I=0;I<xr.text.length;I++)k.push(g.splitLines(xr.text[I]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=be(_,function(ke){return[ke]}));for(var q=n.curOp.updateInput,ee=l.ranges.length-1;ee>=0;ee--){var Y=l.ranges[ee],ce=Y.from(),ge=Y.to();Y.empty()&&(a&&a>0?ce=se(ce.line,ce.ch-a):n.state.overwrite&&!w?ge=se(ge.line,Math.min(Pe(g,ge.line).text.length,ge.ch+ve(_).length)):w&&xr&&xr.lineWise&&xr.text.join(`
|
|
32
|
+
`)==_.join(`
|
|
33
|
+
`)&&(ce=ge=se(ce.line,0)));var xe={from:ce,to:ge,text:k?k[ee%k.length]:_,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};rs(n.doc,xe),Gt(n,"inputRead",n,xe)}i&&!w&&uv(n,i),Qo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=q),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function cv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Fn(i,function(){return Bf(i,a,0,null,"paste")}),!0}function uv(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 w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){y=Tl(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=Tl(n,u.head.line,"smart"));y&&Gt(n,"electricInput",n,u.head.line)}}}function fv(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:se(u,0),head:se(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Wf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function dv(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),$&&(n.style.border="1px solid black"),i}function V_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){te(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Kt(this,i[l])(this,u,y),Nt(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"](ac(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:dn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");We(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,_n(this)}),removeOverlay:dn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,_n(this);return}}}),indentLine:dn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),de(this.doc,l)&&Tl(this,l,u,g)}),indentSelection:dn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>g&&(Tl(this,w.head.line,l,!0),g=w.head.line,y==this.doc.sel.primIndex&&Qo(this));else{var _=w.from(),k=w.to(),I=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var q=I;q<g;++q)Tl(this,q,l);var ee=this.doc.sel.ranges;_.ch==0&&u.length==ee.length&&ee[y].from().ch>0&&Of(this.doc,y,new gt(_,ee[y].to()),X)}}}),getTokenAt:function(l,u){return _p(this,l,u)},getLineTokens:function(l,u){return _p(this,se(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=bp(this,Pe(this.doc,l.line)),g=0,y=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=w)y=k;else if(u[k*2+1]<w)g=k+1;else{_=u[k*2+2];break}}var I=_?_.indexOf("overlay "):-1;return I<0?_:I==0?null:_.slice(0,I-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],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&g.push(y[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var k=y[w[u][_]];k&&g.push(k)}else w.helperType&&y[w.helperType]?g.push(y[w.helperType]):y[w.name]&&g.push(y[w.name]);for(var I=0;I<y._global.length;I++){var q=y._global[I];q.pred(w,this)&&pe(g,q.val)==-1&&g.push(q.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=vp(g,l??g.first+g.size-1),Qs(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=Ke(this.doc,l):g=l?y.from():y.to(),br(this,g,u||"page")},charCoords:function(l,u){return Ga(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Zp(this,l,u||"page"),df(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Zp(this,{top:l,left:0},u||"page").top,W(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),w=Pe(this.doc,l)}else w=l;return Va(this,w,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ni(w):0)},defaultTextHeight:function(){return Yo(this.display)},defaultCharWidth:function(){return Zo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,w){var _=this.display;l=br(this,Ke(this.doc,l));var k=l.bottom,I=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var q=Math.max(_.wrapper.clientHeight,this.doc.height),ee=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>q)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=q&&(k=l.bottom),I+u.offsetWidth>ee&&(I=ee-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",w=="right"?(I=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?I=0:w=="middle"&&(I=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=I+"px"),g&&q1(this,{left:I,top:k,right:I+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:dn(ev),triggerOnKeyPress:dn(nv),triggerOnKeyUp:tv,triggerOnMouseDown:dn(rv),execCommand:function(l){if(xl.hasOwnProperty(l))return xl[l].call(null,this)},triggerElectric:dn(function(l){uv(this,l)}),findPosH:function(l,u,g,y){var w=1;u<0&&(w=-1,u=-u);for(var _=Ke(this.doc,l),k=0;k<u&&(_=qf(this.doc,_,w,g,y),!_.hitSide);++k);return _},moveH:dn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?qf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:dn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ls(this,function(w){var _=qf(y,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,y){var w=1,_=y;u<0&&(w=-1,u=-u);for(var k=Ke(this.doc,l),I=0;I<u;++I){var q=br(this,k,"div");if(_==null?_=q.left:q.left=_,k=hv(this,q,w,g),k.hitSide)break}return k},moveV:dn(function(l,u){var g=this,y=this.doc,w=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(I){if(_)return l<0?I.from():I.to();var q=br(g,I.head,"div");I.goalColumn!=null&&(q.left=I.goalColumn),w.push(q.left);var ee=hv(g,q,l,u);return u=="page"&&I==y.sel.primary()&&_f(g,Ga(g,ee,"div").top-q.top),ee},he),w.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=w[k]}),findWordAt:function(l){var u=this.doc,g=Pe(u,l.line).text,y=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&y?--y:++w;for(var k=g.charAt(y),I=st(k,_)?function(q){return st(q,_)}:/\s/.test(k)?function(q){return/\s/.test(q)}:function(q){return!/\s/.test(q)&&!st(q)};y>0&&I(g.charAt(y-1));)--y;for(;w<g.length&&I(g.charAt(w));)++w}return new gt(se(l.line,y),se(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),Nt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Xe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dn(function(l,u){sl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Fr(this)-this.display.barHeight,width:l.scrollWidth-Fr(this)-this.display.barWidth,clientHeight:af(this),clientWidth:fo(this)}},scrollIntoView:dn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:se(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?j1(this,l):sg(this,l.from,l.to,l.margin)}),setSize:dn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Kp(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){Mi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Nt(this,"refresh",this)}),operation:function(l){return Fn(this,l)},startOperation:function(){return yo(this)},endOperation:function(){return bo(this)},refresh:dn(function(){var l=this.display.cachedTextHeight;_n(this),this.curOp.forceUpdate=!0,il(this),sl(this,this.doc.scrollLeft,this.doc.scrollTop),Tf(this.display),(l==null||Math.abs(l-Yo(this.display))>.5||this.options.lineWrapping)&&vf(this),Nt(this,"refresh",this)}),swapDoc:dn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),wg(this,l),il(this),this.display.input.reset(),sl(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}},hr(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 qf(n,i,a,l,u){var g=i,y=a,w=Pe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Me=i.line+_;return Me<n.first||Me>=n.first+n.size?!1:(i=new se(Me,i.ch,i.sticky),w=Pe(n,Me))}function I(Me){var Te;if(l=="codepoint"){var Ne=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ne))Te=null;else{var He=a>0?Ne>=55296&&Ne<56320:Ne>=56320&&Ne<57343;Te=new se(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(He?2:1))),-a)}}else u?Te=E_(n.cm,w,i,a):Te=Rf(w,i,a);if(Te==null)if(!Me&&k())i=zf(u,n.cm,w,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")I();else if(l=="column")I(!0);else if(l=="word"||l=="group")for(var q=null,ee=l=="group",Y=n.cm&&n.cm.getHelper(i,"wordChars"),ce=!0;!(a<0&&!I(!ce));ce=!1){var ge=w.text.charAt(i.ch)||`
|
|
34
|
+
`,xe=st(ge,Y)?"w":ee&&ge==`
|
|
35
|
+
`?"n":!ee||/\s/.test(ge)?null:"p";if(ee&&!ce&&!xe&&(xe="s"),q&&q!=xe){a<0&&(a=1,I(),i.sticky="after");break}if(xe&&(q=xe),a>0&&!I(!ce))break}var ke=oc(n,i,g,y,!0);return pt(g,ke)&&(ke.hitSide=!0),ke}function hv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,te(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*Yo(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=df(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 ae,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,Wf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(w){!g(w)||Ot(l,w)||cv(w,l)||p<=11&&setTimeout(Kt(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Fe(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Fe(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!g(w)||Ot(l,w))){if(l.somethingSelected())fc({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=fv(l);fc({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,X),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var k=xr.text.join(`
|
|
36
|
+
`);if(w.clipboardData.setData("Text",k),w.clipboardData.getData("Text")==k){w.preventDefault();return}}var I=dv(),q=I.firstChild;Wf(q),l.display.lineSpace.insertBefore(I,l.display.lineSpace.firstChild),q.value=xr.text.join(`
|
|
37
|
+
`);var ee=me(Ye(u));je(q),setTimeout(function(){l.display.lineSpace.removeChild(I),ee.focus(),ee==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",y),Fe(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=rg(this.cm,!1);return n.focus=me(Ye(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=dc(i,n.anchorNode,n.anchorOffset),y=dc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Le(Vo(g,y),l)==0&&Le(xn(g,y),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&pv(i,l)||{node:w[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&pv(i,u);if(!k){var I=w[w.length-1].measure,q=I.maps?I.maps[I.maps.length-1]:I.map;k={node:q[q.length-1],offset:q[q.length-2]-q[q.length-3]}}if(!_||!k){n.removeAllRanges();return}var ee=n.rangeCount&&n.getRangeAt(0),Y;try{Y=V(_.node,_.offset,k.offset,k.node)}catch{}Y&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Y.collapsed||(n.removeAllRanges(),n.addRange(Y))):(n.removeAllRanges(),n.addRange(Y)),ee&&n.anchorNode==null?n.addRange(ee):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){N(this.cm.display.cursorDiv,n.cursors),N(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()||me(Ye(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Fn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&b&&this.cm.display.gutterSpecs.length&&G_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=dc(i,n.anchorNode,n.anchorOffset),l=dc(i,n.focusNode,n.focusOffset);a&&l&&Fn(i,function(){sn(i.doc,Ni(a,l),X),(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=se(l.line-1,Pe(n.doc,l.line-1).length)),u.ch==Pe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=se(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,w;l.line==i.viewFrom||(g=go(n,l.line))==0?(y=T(i.view[0].line),w=i.view[0].node):(y=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=go(n,u.line),k,I;if(_==i.view.length-1?(k=i.viewTo-1,I=i.lineDiv.lastChild):(k=T(i.view[_+1].line)-1,I=i.view[_+1].node.previousSibling),!w)return!1;for(var q=n.doc.splitLines(K_(n,w,I,y,k)),ee=ei(n.doc,se(y,0),se(k,Pe(n.doc,k).text.length));q.length>1&&ee.length>1;)if(ve(q)==ve(ee))q.pop(),ee.pop(),k--;else if(q[0]==ee[0])q.shift(),ee.shift(),y++;else break;for(var Y=0,ce=0,ge=q[0],xe=ee[0],ke=Math.min(ge.length,xe.length);Y<ke&&ge.charCodeAt(Y)==xe.charCodeAt(Y);)++Y;for(var Me=ve(q),Te=ve(ee),Ne=Math.min(Me.length-(q.length==1?Y:0),Te.length-(ee.length==1?Y:0));ce<Ne&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(q.length==1&&ee.length==1&&y==l.line)for(;Y&&Y>l.ch&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Y--,ce++;q[q.length-1]=Me.slice(0,Me.length-ce).replace(/^\u200b+/,""),q[0]=q[0].slice(Y).replace(/\u200b+$/,"");var He=se(y,Y),Ie=se(k,ee.length?ve(ee).length-ce:0);if(q.length>1||q[0]||Le(He,Ie))return is(n.doc,q,He,Ie,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Fn(this.cm,function(){return _n(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,Bf)(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 pv(n,i){var a=cf(n,i.line);if(!a||a.hidden)return null;var l=Pe(n.doc,i.line),u=qp(a,l,i.line),g=tt(l,n.doc.direction),y="left";if(g){var w=It(g,i.ch);y=w%2?"right":"left"}var _=Vp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function G_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function cs(n,i){return i&&(n.bad=!0),n}function K_(n,i,a,l,u){var g="",y=!1,w=n.doc.lineSeparator(),_=!1;function k(Y){return function(ce){return ce.id==Y}}function I(){y&&(g+=w,_&&(g+=w),y=_=!1)}function q(Y){Y&&(I(),g+=Y)}function ee(Y){if(Y.nodeType==1){var ce=Y.getAttribute("cm-text");if(ce){q(ce);return}var ge=Y.getAttribute("cm-marker"),xe;if(ge){var ke=n.findMarks(se(l,0),se(u+1,0),k(+ge));ke.length&&(xe=ke[0].find(0))&&q(ei(n.doc,xe.from,xe.to).join(w));return}if(Y.getAttribute("contenteditable")=="false")return;var Me=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Me&&I();for(var Te=0;Te<Y.childNodes.length;Te++)ee(Y.childNodes[Te]);/^(pre|p)$/i.test(Y.nodeName)&&(_=!0),Me&&(y=!0)}else Y.nodeType==3&&q(Y.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ee(i),i!=a;)i=i.nextSibling,_=!1;return g}function dc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return cs(n.clipPos(se(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 X_(g,i,a)}}function X_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return cs(se(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ve(n.rest):n.line;return cs(se(T(g),g.text.length),u)}var y=i.nodeType==3?i:null,w=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,k=_.maps;function I(xe,ke,Me){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Ne=Te<0?_.map:k[Te],He=0;He<Ne.length;He+=3){var Ie=Ne[He+2];if(Ie==xe||Ie==ke){var et=T(Te<0?n.line:n.rest[Te]),xt=Ne[He]+Me;return(Me<0||Ie!=xe)&&(xt=Ne[He+(Me?1:0)]),se(et,xt)}}}var q=I(y,w,a);if(q)return cs(q,u);for(var ee=w.nextSibling,Y=y?y.nodeValue.length-a:0;ee;ee=ee.nextSibling){if(q=I(ee,ee.firstChild,0),q)return cs(se(q.line,q.ch-Y),u);Y+=ee.textContent.length}for(var ce=w.previousSibling,ge=a;ce;ce=ce.previousSibling){if(q=I(ce,ce.firstChild,-1),q)return cs(se(q.line,q.ch+ge),u);ge+=ce.textContent.length}}var Dt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new ae,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),$&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(y){Ot(l,y)||cv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Ot(l,y)){if(l.somethingSelected())fc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=fv(l);fc({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,X):(a.prevInput="",u.value=w.text.join(`
|
|
38
|
+
`),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(y){if(!(ri(n,y)||Ot(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=y.clipboardData,u.dispatchEvent(w)}}),Fe(n.lineSpace,"selectstart",function(y){ri(n,y)||on(y)}),Fe(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"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Dt.prototype.createField=function(n){this.wrapper=dv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Wf(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=rg(n);if(n.options.moveInputWithCursor){var u=br(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;N(a.cursorDiv,n.cursors),N(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&&je(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"&&(!C||me(Ye(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||Ei(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||D&&/[\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,w=Math.min(l.length,u.length);y<w&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Fn(i,function(){Bf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
39
|
+
`)>-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=po(a,n),y=l.scroller.scrollTop;if(!g||M)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Kt(a,sn)(a.doc,Ni(g),X);var _=u.style.cssText,k=i.wrapper.style.cssText,I=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
40
|
+
top: `+(n.clientY-I.top-5)+"px; left: "+(n.clientX-I.left-5)+`px;
|
|
41
|
+
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
42
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var q;v&&(q=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,q),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Y,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function ee(){if(u.selectionStart!=null){var ge=a.somethingSelected(),xe=""+(ge?u.value:"");u.value="⇚",u.value=xe,i.prevInput=ge?"":"",u.selectionStart=1,u.selectionEnd=xe.length,l.selForContextMenu=a.doc.sel}}function Y(){if(i.contextMenuPending==Y&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&ee();var ge=0,xe=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Kt(a,Og)(a):ge++<10?l.detectingSelectAll=setTimeout(xe,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(xe,200)}}if(h&&p>=9&&ee(),G){Ti(n);var ce=function(){rn(window,"mouseup",ce),setTimeout(Y,20)};Fe(window,"mouseup",ce)}else setTimeout(Y,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 Y_(n,i){if(i=i?Z(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=me(Ye(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(rn(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=Ct(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function Z_(n){n.off=rn,n.on=Fe,n.wheelEventPixels=i_,n.Doc=Sn,n.splitLines=or,n.countColumn=K,n.findColumn=fe,n.isWordChar=rt,n.Pass=j,n.signal=Nt,n.Line=Go,n.changeEnd=Oi,n.scrollbarModel=cg,n.Pos=se,n.cmpPos=Le,n.modes=Bo,n.mimeModes=vr,n.resolveMode=Wo,n.getMode=qo,n.modeExtensions=Ai,n.extendMode=jo,n.copyState=Ir,n.startState=Uo,n.innerMode=Zs,n.commands=xl,n.keyMap=oi,n.keyName=Xg,n.isModifierKey=Gg,n.lookupKey=ss,n.normalizeKeyMap=C_,n.StringStream=Pt,n.SharedTextMarker=yl,n.TextMarker=Ri,n.LineWidget=ml,n.e_preventDefault=on,n.e_stopPropagation=Fo,n.e_stop=Ti,n.addClass=Se,n.contains=re,n.rmClass=O,n.keyNames=zi}W_(Ct),V_(Ct);var J_="iter insert remove copy getEditor constructor".split(" ");for(var hc in Sn.prototype)Sn.prototype.hasOwnProperty(hc)&&pe(J_,hc)<0&&(Ct.prototype[hc]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Sn.prototype[hc]));return hr(Sn),Ct.inputStyles={textarea:Dt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),mr.apply(this,arguments)},Ct.defineMIME=uo,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){Sn.prototype[n]=i},Ct.fromTextArea=Y_,Z_(Ct),Ct.version="5.65.18",Ct}))})(zc)),zc.exports}var FA=Gs();const HA=Ew(FA);var Im={exports:{}},Dm;function Aw(){return Dm||(Dm=1,(function(e,t){(function(r){r(Gs())})(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 T(Vt){return{type:Vt,style:"keyword"}}var W=T("keyword a"),de=T("keyword b"),we=T("keyword c"),se=T("keyword d"),Le=T("operator"),pt={type:"atom",style:"atom"};return{if:T("if"),while:W,with:W,else:de,do:de,try:de,finally:de,return:se,break:se,continue:se,new:T("new"),delete:we,void:we,throw:we,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Le,typeof:Le,instanceof:Le,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:T("this"),class:T("class"),super:T("atom"),yield:we,export:T("export"),import:T("import"),extends:we,await:we}})(),x=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function E(T){for(var W=!1,de,we=!1;(de=T.next())!=null;){if(!W){if(de=="/"&&!we)return;de=="["?we=!0:we&&de=="]"&&(we=!1)}W=!W&&de=="\\"}}var A,L;function $(T,W,de){return A=T,L=de,W}function R(T,W){var de=T.next();if(de=='"'||de=="'")return W.tokenize=C(de),W.tokenize(T,W);if(de=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return $("number","number");if(de=="."&&T.match(".."))return $("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return $(de);if(de=="="&&T.eat(">"))return $("=>","operator");if(de=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return $("number","number");if(/\d/.test(de))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),$("number","number");if(de=="/")return T.eat("*")?(W.tokenize=D,D(T,W)):T.eat("/")?(T.skipToEnd(),$("comment","comment")):Xn(T,W,1)?(E(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),$("regexp","string-2")):(T.eat("="),$("operator","operator",T.current()));if(de=="`")return W.tokenize=U,U(T,W);if(de=="#"&&T.peek()=="!")return T.skipToEnd(),$("meta","meta");if(de=="#"&&T.eatWhile(m))return $("variable","property");if(de=="<"&&T.match("!--")||de=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),$("comment","comment");if(x.test(de))return(de!=">"||!W.lexical||W.lexical.type!=">")&&(T.eat("=")?(de=="!"||de=="=")&&T.eat("="):/[<>*+\-|&?]/.test(de)&&(T.eat(de),de==">"&&T.eat(de))),de=="?"&&T.eat(".")?$("."):$("operator","operator",T.current());if(m.test(de)){T.eatWhile(m);var we=T.current();if(W.lastType!="."){if(b.propertyIsEnumerable(we)){var se=b[we];return $(se.type,se.style,we)}if(we=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return $("async","keyword",we)}return $("variable","variable",we)}}function C(T){return function(W,de){var we=!1,se;if(d&&W.peek()=="@"&&W.match(M))return de.tokenize=R,$("jsonld-keyword","meta");for(;(se=W.next())!=null&&!(se==T&&!we);)we=!we&&se=="\\";return we||(de.tokenize=R),$("string","string")}}function D(T,W){for(var de=!1,we;we=T.next();){if(we=="/"&&de){W.tokenize=R;break}de=we=="*"}return $("comment","comment")}function U(T,W){for(var de=!1,we;(we=T.next())!=null;){if(!de&&(we=="`"||we=="$"&&T.eat("{"))){W.tokenize=R;break}de=!de&&we=="\\"}return $("quasi","string-2",T.current())}var ie="([{}])";function le(T,W){W.fatArrowAt&&(W.fatArrowAt=null);var de=T.string.indexOf("=>",T.start);if(!(de<0)){if(v){var we=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,de));we&&(de=we.index)}for(var se=0,Le=!1,pt=de-1;pt>=0;--pt){var Vt=T.string.charAt(pt),xn=ie.indexOf(Vt);if(xn>=0&&xn<3){if(!se){++pt;break}if(--se==0){Vt=="("&&(Le=!0);break}}else if(xn>=3&&xn<6)++se;else if(m.test(Vt))Le=!0;else if(/["'\/`]/.test(Vt))for(;;--pt){if(pt==0)return;var Vo=T.string.charAt(pt-1);if(Vo==Vt&&T.string.charAt(pt-2)!="\\"){pt--;break}}else if(Le&&!se){++pt;break}}Le&&!se&&(W.fatArrowAt=pt)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(T,W,de,we,se,Le){this.indented=T,this.column=W,this.type=de,this.prev=se,this.info=Le,we!=null&&(this.align=we)}function J(T,W){if(!p)return!1;for(var de=T.localVars;de;de=de.next)if(de.name==W)return!0;for(var we=T.context;we;we=we.prev)for(var de=we.vars;de;de=de.next)if(de.name==W)return!0}function O(T,W,de,we,se){var Le=T.cc;for(P.state=T,P.stream=se,P.marked=null,P.cc=Le,P.style=W,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var pt=Le.length?Le.pop():h?pe:K;if(pt(de,we)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return P.marked?P.marked:de=="variable"&&J(T,we)?"variable-2":W}}}var P={state:null,marked:null,cc:null};function N(){for(var T=arguments.length-1;T>=0;T--)P.cc.push(arguments[T])}function S(){return N.apply(null,arguments),!0}function F(T,W){for(var de=W;de;de=de.next)if(de.name==T)return!0;return!1}function V(T){var W=P.state;if(P.marked="def",!!p){if(W.context){if(W.lexical.info=="var"&&W.context&&W.context.block){var de=re(T,W.context);if(de!=null){W.context=de;return}}else if(!F(T,W.localVars)){W.localVars=new Re(T,W.localVars);return}}s.globalVars&&!F(T,W.globalVars)&&(W.globalVars=new Re(T,W.globalVars))}}function re(T,W){if(W)if(W.block){var de=re(T,W.prev);return de?de==W.prev?W:new Se(de,W.vars,!0):null}else return F(T,W.vars)?W:new Se(W.prev,new Re(T,W.vars),!1);else return null}function me(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Se(T,W,de){this.prev=T,this.vars=W,this.block=de}function Re(T,W){this.name=T,this.next=W}var je=new Re("this",new Re("arguments",null));function Qe(){P.state.context=new Se(P.state.context,P.state.localVars,!1),P.state.localVars=je}function Xe(){P.state.context=new Se(P.state.context,P.state.localVars,!0),P.state.localVars=null}Qe.lex=Xe.lex=!0;function Ye(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}Ye.lex=!0;function te(T,W){var de=function(){var we=P.state,se=we.indented;if(we.lexical.type=="stat")se=we.lexical.indented;else for(var Le=we.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)se=Le.indented;we.lexical=new G(se,P.stream.column(),T,null,we.lexical,W)};return de.lex=!0,de}function B(){var T=P.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}B.lex=!0;function Z(T){function W(de){return de==T?S():T==";"||de=="}"||de==")"||de=="]"?N():S(W)}return W}function K(T,W){return T=="var"?S(te("vardef",W),Fo,Z(";"),B):T=="keyword a"?S(te("form"),j,K,B):T=="keyword b"?S(te("form"),K,B):T=="keyword d"?P.stream.match(/^\s*$/,!1)?S():S(te("stat"),ue,Z(";"),B):T=="debugger"?S(Z(";")):T=="{"?S(te("}"),Xe,Ft,B,Ye):T==";"?S():T=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==B&&P.state.cc.pop()(),S(te("form"),j,K,B,Ho)):T=="function"?S(or):T=="for"?S(te("form"),Xe,za,K,Ye,B):T=="class"||v&&W=="interface"?(P.marked="keyword",S(te("form",T=="class"?T:W),Bo,B)):T=="variable"?v&&W=="declare"?(P.marked="keyword",S(K)):v&&(W=="module"||W=="enum"||W=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",W=="enum"?S(Pe):W=="type"?S(Ia,Z("operator"),tt,Z(";")):S(te("form"),wn,Z("{"),te("}"),Ft,B,B)):v&&W=="namespace"?(P.marked="keyword",S(te("form"),pe,K,B)):v&&W=="abstract"?(P.marked="keyword",S(K)):S(te("stat"),Ve):T=="switch"?S(te("form"),j,Z("{"),te("}","switch"),Xe,Ft,B,B,Ye):T=="case"?S(pe,Z(":")):T=="default"?S(Z(":")):T=="catch"?S(te("form"),Qe,ae,K,B,Ye):T=="export"?S(te("stat"),Wo,B):T=="import"?S(te("stat"),Ai,B):T=="async"?S(K):W=="@"?S(pe,K):N(te("stat"),pe,Z(";"),B)}function ae(T){if(T=="(")return S(gr,Z(")"))}function pe(T,W){return X(T,W,!1)}function z(T,W){return X(T,W,!0)}function j(T){return T!="("?N():S(te(")"),ue,Z(")"),B)}function X(T,W,de){if(P.state.fatArrowAt==P.stream.start){var we=de?be:ve;if(T=="(")return S(Qe,te(")"),lt(gr,")"),B,Z("=>"),we,Ye);if(T=="variable")return N(Qe,wn,Z("=>"),we,Ye)}var se=de?fe:he;return ne.hasOwnProperty(T)?S(se):T=="function"?S(or,se):T=="class"||v&&W=="interface"?(P.marked="keyword",S(te("form"),Zu,B)):T=="keyword c"||T=="async"?S(de?z:pe):T=="("?S(te(")"),ue,Z(")"),B,se):T=="operator"||T=="spread"?S(de?z:pe):T=="["?S(te("]"),Pt,B,se):T=="{"?Ut(st,"}",null,se):T=="quasi"?N(Ce,se):T=="new"?S(We(de)):S()}function ue(T){return T.match(/[;\}\)\],]/)?N():N(pe)}function he(T,W){return T==","?S(ue):fe(T,W,!1)}function fe(T,W,de){var we=de==!1?he:fe,se=de==!1?pe:z;if(T=="=>")return S(Qe,de?be:ve,Ye);if(T=="operator")return/\+\+|--/.test(W)||v&&W=="!"?S(we):v&&W=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(te(">"),lt(tt,">"),B,we):W=="?"?S(pe,Z(":"),se):S(se);if(T=="quasi")return N(Ce,we);if(T!=";"){if(T=="(")return Ut(z,")","call",we);if(T==".")return S(rt,we);if(T=="[")return S(te("]"),ue,Z("]"),B,we);if(v&&W=="as")return P.marked="keyword",S(tt,we);if(T=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),S(se)}}function Ce(T,W){return T!="quasi"?N():W.slice(W.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(T){if(T=="}")return P.marked="string-2",P.state.tokenize=U,S(Ce)}function ve(T){return le(P.stream,P.state),N(T=="{"?K:pe)}function be(T){return le(P.stream,P.state),N(T=="{"?K:z)}function We(T){return function(W){return W=="."?S(T?De:$e):W=="variable"&&v?S(Dn,T?fe:he):N(T?z:pe)}}function $e(T,W){if(W=="target")return P.marked="keyword",S(he)}function De(T,W){if(W=="target")return P.marked="keyword",S(fe)}function Ve(T){return T==":"?S(B,K):N(he,Z(";"),B)}function rt(T){if(T=="variable")return P.marked="property",S()}function st(T,W){if(T=="async")return P.marked="property",S(st);if(T=="variable"||P.style=="keyword"){if(P.marked="property",W=="get"||W=="set")return S(ut);var de;return v&&P.state.fatArrowAt==P.stream.start&&(de=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+de[0].length),S(Mt)}else{if(T=="number"||T=="string")return P.marked=d?"property":P.style+" property",S(Mt);if(T=="jsonld-keyword")return S(Mt);if(v&&me(W))return P.marked="keyword",S(st);if(T=="[")return S(pe,zn,Z("]"),Mt);if(T=="spread")return S(z,Mt);if(W=="*")return P.marked="keyword",S(st);if(T==":")return N(Mt)}}function ut(T){return T!="variable"?N(Mt):(P.marked="property",S(or))}function Mt(T){if(T==":")return S(z);if(T=="(")return N(or)}function lt(T,W,de){function we(se,Le){if(de?de.indexOf(se)>-1:se==","){var pt=P.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Vt,xn){return Vt==W||xn==W?N():N(T)},we)}return se==W||Le==W?S():de&&de.indexOf(";")>-1?N(T):S(Z(W))}return function(se,Le){return se==W||Le==W?S():N(T,we)}}function Ut(T,W,de){for(var we=3;we<arguments.length;we++)P.cc.push(arguments[we]);return S(te(W,de),lt(T,W),B)}function Ft(T){return T=="}"?S():N(K,Ft)}function zn(T,W){if(v){if(T==":")return S(tt);if(W=="?")return S(zn)}}function zr(T,W){if(v&&(T==":"||W=="in"))return S(tt)}function It(T){if(v&&T==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,In,tt):S(tt)}function In(T,W){if(W=="is")return P.marked="keyword",S()}function tt(T,W){if(W=="keyof"||W=="typeof"||W=="infer"||W=="readonly")return P.marked="keyword",S(W=="typeof"?z:tt);if(T=="variable"||W=="void")return P.marked="type",S(ir);if(W=="|"||W=="&")return S(tt);if(T=="string"||T=="number"||T=="atom")return S(ir);if(T=="[")return S(te("]"),lt(tt,"]",","),B,ir);if(T=="{")return S(te("}"),Fe,B,ir);if(T=="(")return S(lt(Ot,")"),co,ir);if(T=="<")return S(lt(tt,">"),tt);if(T=="quasi")return N(rn,ir)}function co(T){if(T=="=>")return S(tt)}function Fe(T){return T.match(/[\}\)\]]/)?S():T==","||T==";"?S(Fe):N(Qr,Fe)}function Qr(T,W){if(T=="variable"||P.style=="keyword")return P.marked="property",S(Qr);if(W=="?"||T=="number"||T=="string")return S(Qr);if(T==":")return S(tt);if(T=="[")return S(Z("variable"),zr,Z("]"),Qr);if(T=="(")return N(Ei,Qr);if(!T.match(/[;\}\)\],]/))return S()}function rn(T,W){return T!="quasi"?N():W.slice(W.length-2)!="${"?S(rn):S(tt,Nt)}function Nt(T){if(T=="}")return P.marked="string-2",P.state.tokenize=U,S(rn)}function Ot(T,W){return T=="variable"&&P.stream.match(/^\s*[?:]/,!1)||W=="?"?S(Ot):T==":"?S(tt):T=="spread"?S(Ot):N(tt)}function ir(T,W){if(W=="<")return S(te(">"),lt(tt,">"),B,ir);if(W=="|"||T=="."||W=="&")return S(tt);if(T=="[")return S(tt,Z("]"),ir);if(W=="extends"||W=="implements")return P.marked="keyword",S(tt);if(W=="?")return S(tt,Z(":"),tt)}function Dn(T,W){if(W=="<")return S(te(">"),lt(tt,">"),B,ir)}function hr(){return N(tt,on)}function on(T,W){if(W=="=")return S(tt)}function Fo(T,W){return W=="enum"?(P.marked="keyword",S(Pe)):N(wn,zn,pr,Yu)}function wn(T,W){if(v&&me(W))return P.marked="keyword",S(wn);if(T=="variable")return V(W),S();if(T=="spread")return S(wn);if(T=="[")return Ut(Xs,"]");if(T=="{")return Ut(Ti,"}")}function Ti(T,W){return T=="variable"&&!P.stream.match(/^\s*:/,!1)?(V(W),S(pr)):(T=="variable"&&(P.marked="property"),T=="spread"?S(wn):T=="}"?N():T=="["?S(pe,Z("]"),Z(":"),Ti):S(Z(":"),wn,pr))}function Xs(){return N(wn,pr)}function pr(T,W){if(W=="=")return S(z)}function Yu(T){if(T==",")return S(Fo)}function Ho(T,W){if(T=="keyword b"&&W=="else")return S(te("form","else"),K,B)}function za(T,W){if(W=="await")return S(za);if(T=="(")return S(te(")"),Ys,B)}function Ys(T){return T=="var"?S(Fo,Ci):T=="variable"?S(Ci):N(Ci)}function Ci(T,W){return T==")"?S():T==";"?S(Ci):W=="in"||W=="of"?(P.marked="keyword",S(pe,Ci)):N(pe,Ci)}function or(T,W){if(W=="*")return P.marked="keyword",S(or);if(T=="variable")return V(W),S(or);if(T=="(")return S(Qe,te(")"),lt(gr,")"),B,It,K,Ye);if(v&&W=="<")return S(te(">"),lt(hr,">"),B,or)}function Ei(T,W){if(W=="*")return P.marked="keyword",S(Ei);if(T=="variable")return V(W),S(Ei);if(T=="(")return S(Qe,te(")"),lt(gr,")"),B,It,Ye);if(v&&W=="<")return S(te(">"),lt(hr,">"),B,Ei)}function Ia(T,W){if(T=="keyword"||T=="variable")return P.marked="type",S(Ia);if(W=="<")return S(te(">"),lt(hr,">"),B)}function gr(T,W){return W=="@"&&S(pe,gr),T=="spread"?S(gr):v&&me(W)?(P.marked="keyword",S(gr)):v&&T=="this"?S(zn,pr):N(wn,zn,pr)}function Zu(T,W){return T=="variable"?Bo(T,W):vr(T,W)}function Bo(T,W){if(T=="variable")return V(W),S(vr)}function vr(T,W){if(W=="<")return S(te(">"),lt(hr,">"),B,vr);if(W=="extends"||W=="implements"||v&&T==",")return W=="implements"&&(P.marked="keyword"),S(v?tt:pe,vr);if(T=="{")return S(te("}"),mr,B)}function mr(T,W){if(T=="async"||T=="variable"&&(W=="static"||W=="get"||W=="set"||v&&me(W))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",S(mr);if(T=="variable"||P.style=="keyword")return P.marked="property",S(uo,mr);if(T=="number"||T=="string")return S(uo,mr);if(T=="[")return S(pe,zn,Z("]"),uo,mr);if(W=="*")return P.marked="keyword",S(mr);if(v&&T=="(")return N(Ei,mr);if(T==";"||T==",")return S(mr);if(T=="}")return S();if(W=="@")return S(pe,mr)}function uo(T,W){if(W=="!"||W=="?")return S(uo);if(T==":")return S(tt,pr);if(W=="=")return S(z);var de=P.state.lexical.prev,we=de&&de.info=="interface";return N(we?Ei:or)}function Wo(T,W){return W=="*"?(P.marked="keyword",S(Uo,Z(";"))):W=="default"?(P.marked="keyword",S(pe,Z(";"))):T=="{"?S(lt(qo,"}"),Uo,Z(";")):N(K)}function qo(T,W){if(W=="as")return P.marked="keyword",S(Z("variable"));if(T=="variable")return N(z,qo)}function Ai(T){return T=="string"?S():T=="("?N(pe):T=="."?N(he):N(jo,Ir,Uo)}function jo(T,W){return T=="{"?Ut(jo,"}"):(T=="variable"&&V(W),W=="*"&&(P.marked="keyword"),S(Zs))}function Ir(T){if(T==",")return S(jo,Ir)}function Zs(T,W){if(W=="as")return P.marked="keyword",S(jo)}function Uo(T,W){if(W=="from")return P.marked="keyword",S(pe)}function Pt(T){return T=="]"?S():N(lt(z,"]"))}function Pe(){return N(te("form"),wn,Z("{"),te("}"),lt(ei,"}"),B,B)}function ei(){return N(wn,pr)}function Js(T,W){return T.lastType=="operator"||T.lastType==","||x.test(W.charAt(0))||/[,.]/.test(W.charAt(0))}function Xn(T,W,de){return W.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(W.lastType)||W.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(de||0)))}return{startState:function(T){var W={tokenize:R,lastType:"sof",cc:[],lexical:new G((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(W.globalVars=s.globalVars),W},token:function(T,W){if(T.sol()&&(W.lexical.hasOwnProperty("align")||(W.lexical.align=!1),W.indented=T.indentation(),le(T,W)),W.tokenize!=D&&T.eatSpace())return null;var de=W.tokenize(T,W);return A=="comment"?de:(W.lastType=A=="operator"&&(L=="++"||L=="--")?"incdec":A,O(W,de,A,L,T))},indent:function(T,W){if(T.tokenize==D||T.tokenize==U)return r.Pass;if(T.tokenize!=R)return 0;var de=W&&W.charAt(0),we=T.lexical,se;if(!/^\s*else\b/.test(W))for(var Le=T.cc.length-1;Le>=0;--Le){var pt=T.cc[Le];if(pt==B)we=we.prev;else if(pt!=Ho&&pt!=Ye)break}for(;(we.type=="stat"||we.type=="form")&&(de=="}"||(se=T.cc[T.cc.length-1])&&(se==he||se==fe)&&!/^[,\.=+\-*:?[\(]/.test(W));)we=we.prev;f&&we.type==")"&&we.prev.type=="stat"&&(we=we.prev);var Vt=we.type,xn=de==Vt;return Vt=="vardef"?we.indented+(T.lastType=="operator"||T.lastType==","?we.info.length+1:0):Vt=="form"&&de=="{"?we.indented:Vt=="form"?we.indented+c:Vt=="stat"?we.indented+(Js(T,W)?f||c:0):we.info=="switch"&&!xn&&s.doubleIndentSwitch!=!1?we.indented+(/^(?:case|default)\b/.test(W)?c:2*c):we.align?we.column+(xn?0:1):we.indented+(xn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Xn,skipExpression:function(T){O(T,"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}Aw();var Fm={exports:{}},Hm;function Lw(){return Hm||(Hm=1,(function(e,t){(function(r){r(Gs())})(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 x(S,F){function V(Se){return F.tokenize=Se,Se(S,F)}var re=S.next();if(re=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?V(A("atom","]]>")):null:S.match("--")?V(A("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),V(L(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),F.tokenize=A("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",F.tokenize=M,"tag bracket");if(re=="&"){var me;return S.eat("#")?S.eat("x")?me=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):me=S.eatWhile(/[\d]/)&&S.eat(";"):me=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),me?"atom":"error"}else return S.eatWhile(/[^&<]/),null}x.isInText=!0;function M(S,F){var V=S.next();if(V==">"||V=="/"&&S.eat(">"))return F.tokenize=x,m=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return m="equals",null;if(V=="<"){F.tokenize=x,F.state=U,F.tagName=F.tagStart=null;var re=F.tokenize(S,F);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(V)?(F.tokenize=E(V),F.stringStartCol=S.column(),F.tokenize(S,F)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(S){var F=function(V,re){for(;!V.eol();)if(V.next()==S){re.tokenize=M;break}return"string"};return F.isInAttribute=!0,F}function A(S,F){return function(V,re){for(;!V.eol();){if(V.match(F)){re.tokenize=x;break}V.next()}return S}}function L(S){return function(F,V){for(var re;(re=F.next())!=null;){if(re=="<")return V.tokenize=L(S+1),V.tokenize(F,V);if(re==">")if(S==1){V.tokenize=x;break}else return V.tokenize=L(S-1),V.tokenize(F,V)}return"meta"}}function $(S){return S&&S.toLowerCase()}function R(S,F,V){this.prev=S.context,this.tagName=F||"",this.indent=S.indented,this.startOfLine=V,(h.doNotIndent.hasOwnProperty(F)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function C(S){S.context&&(S.context=S.context.prev)}function D(S,F){for(var V;;){if(!S.context||(V=S.context.tagName,!h.contextGrabbers.hasOwnProperty($(V))||!h.contextGrabbers[$(V)].hasOwnProperty($(F))))return;C(S)}}function U(S,F,V){return S=="openTag"?(V.tagStart=F.column(),ie):S=="closeTag"?le:U}function ie(S,F,V){return S=="word"?(V.tagName=F.current(),b="tag",J):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",J(S,F,V)):(b="error",ie)}function le(S,F,V){if(S=="word"){var re=F.current();return V.context&&V.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty($(V.context.tagName))&&C(V),V.context&&V.context.tagName==re||h.matchClosing===!1?(b="tag",ne):(b="tag error",G)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",ne(S,F,V)):(b="error",G)}function ne(S,F,V){return S!="endTag"?(b="error",ne):(C(V),U)}function G(S,F,V){return b="error",ne(S,F,V)}function J(S,F,V){if(S=="word")return b="attribute",O;if(S=="endTag"||S=="selfcloseTag"){var re=V.tagName,me=V.tagStart;return V.tagName=V.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty($(re))?D(V,re):(D(V,re),V.context=new R(V,re,me==V.indented)),U}return b="error",J}function O(S,F,V){return S=="equals"?P:(h.allowMissing||(b="error"),J(S,F,V))}function P(S,F,V){return S=="string"?N:S=="word"&&h.allowUnquoted?(b="string",J):(b="error",J(S,F,V))}function N(S,F,V){return S=="string"?N:J(S,F,V)}return{startState:function(S){var F={tokenize:x,state:U,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(F.baseIndent=S),F},token:function(S,F){if(!F.tagName&&S.sol()&&(F.indented=S.indentation()),S.eatSpace())return null;m=null;var V=F.tokenize(S,F);return(V||m)&&V!="comment"&&(b=null,F.state=F.state(m||V,S,F),b&&(V=b=="error"?V+" error":b)),V},indent:function(S,F,V){var re=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(re&&re.noIndent)return r.Pass;if(S.tokenize!=M&&S.tokenize!=x)return V?V.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(F))return 0;var me=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(me&&me[1])for(;re;)if(re.tagName==me[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty($(re.tagName)))re=re.prev;else break;else if(me)for(;re;){var Se=h.contextGrabbers[$(re.tagName)];if(Se&&Se.hasOwnProperty($(me[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==P&&(S.state=J)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var F=[],V=S.context;V;V=V.prev)F.push(V.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Fm.exports}Lw();var Bm={exports:{}},Wm;function BA(){return Wm||(Wm=1,(function(e,t){(function(r){r(Gs(),Lw(),Aw())})(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(x){var M=x.tagName;x.tagName=null;var E=d.indent(x,"","");return x.tagName=M,E}function v(x,M){return M.context.mode==d?m(x,M,M.context):b(x,M,M.context)}function m(x,M,E){if(E.depth==2)return x.match(/^.*?\*\//)?E.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(E.state);var A=p(E.state),L=E.state.context;if(L&&x.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?A-=c.indentUnit:E.prev.state.lexical&&(A=E.prev.state.lexical.indented)}else E.depth==1&&(A+=c.indentUnit);return M.context=new o(r.startState(h,A),h,0,M.context),null}if(E.depth==1){if(x.peek()=="<")return d.skipAttribute(E.state),M.context=new o(r.startState(d,p(E.state)),d,0,M.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return E.depth=2,v(x,M)}var $=d.token(x,E.state),R=x.current(),C;return/\btag\b/.test($)?/>$/.test(R)?E.state.context?E.depth=0:M.context=M.context.prev:/^</.test(R)&&(E.depth=1):!$&&(C=R.indexOf("{"))>-1&&x.backUp(R.length-C),$}function b(x,M,E){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,E.state))return M.context=new o(r.startState(d,h.indent(E.state,"","")),d,0,M.context),h.skipExpression(E.state),null;var A=h.token(x,E.state);if(!A&&E.depth!=null){var L=x.current();L=="{"?E.depth++:L=="}"&&--E.depth==0&&(M.context=M.context.prev)}return A}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,M,E){return x.context.mode.indent(x.context.state,M,E)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Bm.exports}BA();var qm={exports:{}},jm;function WA(){return jm||(jm=1,(function(e,t){(function(r){r(Gs())})(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 x=p.getWrapperElement();x.className=x.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)===""}})})()),qm.exports}WA();var Um={exports:{}},Vm;function qA(){return Vm||(Vm=1,(function(e,t){(function(r){r(Gs())})(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",x=m[b],M=p.pos;function E(){r.off(document,"mousemove",A),r.off(document,"mouseup",E)}function A(L){if(L.which!=1)return E();p.moveTo(M+(L[b]-x)*(p.total/p.size))}r.on(document,"mousemove",A),r.on(document,"mouseup",E)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=m.clientX<b.left?-1:m.clientX>b.right?1:0:x=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&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)}})})()),Um.exports}qA();var ad={},_r={};const jA="Á",UA="á",VA="Ă",GA="ă",KA="∾",XA="∿",YA="∾̳",ZA="Â",JA="â",QA="´",eL="А",tL="а",nL="Æ",rL="æ",iL="",oL="𝔄",sL="𝔞",lL="À",aL="à",cL="ℵ",uL="ℵ",fL="Α",dL="α",hL="Ā",pL="ā",gL="⨿",vL="&",mL="&",yL="⩕",bL="⩓",wL="∧",xL="⩜",_L="⩘",SL="⩚",kL="∠",TL="⦤",CL="∠",EL="⦨",AL="⦩",LL="⦪",ML="⦫",$L="⦬",NL="⦭",OL="⦮",PL="⦯",RL="∡",zL="∟",IL="⊾",DL="⦝",FL="∢",HL="Å",BL="⍼",WL="Ą",qL="ą",jL="𝔸",UL="𝕒",VL="⩯",GL="≈",KL="⩰",XL="≊",YL="≋",ZL="'",JL="",QL="≈",eM="≊",tM="Å",nM="å",rM="𝒜",iM="𝒶",oM="≔",sM="*",lM="≈",aM="≍",cM="Ã",uM="ã",fM="Ä",dM="ä",hM="∳",pM="⨑",gM="≌",vM="϶",mM="‵",yM="∽",bM="⋍",wM="∖",xM="⫧",_M="⊽",SM="⌅",kM="⌆",TM="⌅",CM="⎵",EM="⎶",AM="≌",LM="Б",MM="б",$M="„",NM="∵",OM="∵",PM="∵",RM="⦰",zM="϶",IM="ℬ",DM="ℬ",FM="Β",HM="β",BM="ℶ",WM="≬",qM="𝔅",jM="𝔟",UM="⋂",VM="◯",GM="⋃",KM="⨀",XM="⨁",YM="⨂",ZM="⨆",JM="★",QM="▽",e$="△",t$="⨄",n$="⋁",r$="⋀",i$="⤍",o$="⧫",s$="▪",l$="▴",a$="▾",c$="◂",u$="▸",f$="␣",d$="▒",h$="░",p$="▓",g$="█",v$="=⃥",m$="≡⃥",y$="⫭",b$="⌐",w$="𝔹",x$="𝕓",_$="⊥",S$="⊥",k$="⋈",T$="⧉",C$="┐",E$="╕",A$="╖",L$="╗",M$="┌",$$="╒",N$="╓",O$="╔",P$="─",R$="═",z$="┬",I$="╤",D$="╥",F$="╦",H$="┴",B$="╧",W$="╨",q$="╩",j$="⊟",U$="⊞",V$="⊠",G$="┘",K$="╛",X$="╜",Y$="╝",Z$="└",J$="╘",Q$="╙",eN="╚",tN="│",nN="║",rN="┼",iN="╪",oN="╫",sN="╬",lN="┤",aN="╡",cN="╢",uN="╣",fN="├",dN="╞",hN="╟",pN="╠",gN="‵",vN="˘",mN="˘",yN="¦",bN="𝒷",wN="ℬ",xN="⁏",_N="∽",SN="⋍",kN="⧅",TN="\\",CN="⟈",EN="•",AN="•",LN="≎",MN="⪮",$N="≏",NN="≎",ON="≏",PN="Ć",RN="ć",zN="⩄",IN="⩉",DN="⩋",FN="∩",HN="⋒",BN="⩇",WN="⩀",qN="ⅅ",jN="∩︀",UN="⁁",VN="ˇ",GN="ℭ",KN="⩍",XN="Č",YN="č",ZN="Ç",JN="ç",QN="Ĉ",eO="ĉ",tO="∰",nO="⩌",rO="⩐",iO="Ċ",oO="ċ",sO="¸",lO="¸",aO="⦲",cO="¢",uO="·",fO="·",dO="𝔠",hO="ℭ",pO="Ч",gO="ч",vO="✓",mO="✓",yO="Χ",bO="χ",wO="ˆ",xO="≗",_O="↺",SO="↻",kO="⊛",TO="⊚",CO="⊝",EO="⊙",AO="®",LO="Ⓢ",MO="⊖",$O="⊕",NO="⊗",OO="○",PO="⧃",RO="≗",zO="⨐",IO="⫯",DO="⧂",FO="∲",HO="”",BO="’",WO="♣",qO="♣",jO=":",UO="∷",VO="⩴",GO="≔",KO="≔",XO=",",YO="@",ZO="∁",JO="∘",QO="∁",e2="ℂ",t2="≅",n2="⩭",r2="≡",i2="∮",o2="∯",s2="∮",l2="𝕔",a2="ℂ",c2="∐",u2="∐",f2="©",d2="©",h2="℗",p2="∳",g2="↵",v2="✗",m2="⨯",y2="𝒞",b2="𝒸",w2="⫏",x2="⫑",_2="⫐",S2="⫒",k2="⋯",T2="⤸",C2="⤵",E2="⋞",A2="⋟",L2="↶",M2="⤽",$2="⩈",N2="⩆",O2="≍",P2="∪",R2="⋓",z2="⩊",I2="⊍",D2="⩅",F2="∪︀",H2="↷",B2="⤼",W2="⋞",q2="⋟",j2="⋎",U2="⋏",V2="¤",G2="↶",K2="↷",X2="⋎",Y2="⋏",Z2="∲",J2="∱",Q2="⌭",eP="†",tP="‡",nP="ℸ",rP="↓",iP="↡",oP="⇓",sP="‐",lP="⫤",aP="⊣",cP="⤏",uP="˝",fP="Ď",dP="ď",hP="Д",pP="д",gP="‡",vP="⇊",mP="ⅅ",yP="ⅆ",bP="⤑",wP="⩷",xP="°",_P="∇",SP="Δ",kP="δ",TP="⦱",CP="⥿",EP="𝔇",AP="𝔡",LP="⥥",MP="⇃",$P="⇂",NP="´",OP="˙",PP="˝",RP="`",zP="˜",IP="⋄",DP="⋄",FP="⋄",HP="♦",BP="♦",WP="¨",qP="ⅆ",jP="ϝ",UP="⋲",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="⟹",_R="⇒",SR="⊨",kR="⇑",TR="⇕",CR="∥",ER="⤓",AR="↓",LR="↓",MR="⇓",$R="⇵",NR="̑",OR="⇊",PR="⇃",RR="⇂",zR="⥐",IR="⥞",DR="⥖",FR="↽",HR="⥟",BR="⥗",WR="⇁",qR="↧",jR="⊤",UR="⤐",VR="⌟",GR="⌌",KR="𝒟",XR="𝒹",YR="Ѕ",ZR="ѕ",JR="⧶",QR="Đ",ez="đ",tz="⋱",nz="▿",rz="▾",iz="⇵",oz="⥯",sz="⦦",lz="Џ",az="џ",cz="⟿",uz="É",fz="é",dz="⩮",hz="Ě",pz="ě",gz="Ê",vz="ê",mz="≖",yz="≕",bz="Э",wz="э",xz="⩷",_z="Ė",Sz="ė",kz="≑",Tz="ⅇ",Cz="≒",Ez="𝔈",Az="𝔢",Lz="⪚",Mz="È",$z="è",Nz="⪖",Oz="⪘",Pz="⪙",Rz="∈",zz="⏧",Iz="ℓ",Dz="⪕",Fz="⪗",Hz="Ē",Bz="ē",Wz="∅",qz="∅",jz="◻",Uz="∅",Vz="▫",Gz=" ",Kz=" ",Xz=" ",Yz="Ŋ",Zz="ŋ",Jz=" ",Qz="Ę",eI="ę",tI="𝔼",nI="𝕖",rI="⋕",iI="⧣",oI="⩱",sI="ε",lI="Ε",aI="ε",cI="ϵ",uI="≖",fI="≕",dI="≂",hI="⪖",pI="⪕",gI="⩵",vI="=",mI="≂",yI="≟",bI="⇌",wI="≡",xI="⩸",_I="⧥",SI="⥱",kI="≓",TI="ℯ",CI="ℰ",EI="≐",AI="⩳",LI="≂",MI="Η",$I="η",NI="Ð",OI="ð",PI="Ë",RI="ë",zI="€",II="!",DI="∃",FI="∃",HI="ℰ",BI="ⅇ",WI="ⅇ",qI="≒",jI="Ф",UI="ф",VI="♀",GI="ffi",KI="ff",XI="ffl",YI="𝔉",ZI="𝔣",JI="fi",QI="◼",eD="▪",tD="fj",nD="♭",rD="fl",iD="▱",oD="ƒ",sD="𝔽",lD="𝕗",aD="∀",cD="∀",uD="⋔",fD="⫙",dD="ℱ",hD="⨍",pD="½",gD="⅓",vD="¼",mD="⅕",yD="⅙",bD="⅛",wD="⅔",xD="⅖",_D="¾",SD="⅗",kD="⅜",TD="⅘",CD="⅚",ED="⅝",AD="⅞",LD="⁄",MD="⌢",$D="𝒻",ND="ℱ",OD="ǵ",PD="Γ",RD="γ",zD="Ϝ",ID="ϝ",DD="⪆",FD="Ğ",HD="ğ",BD="Ģ",WD="Ĝ",qD="ĝ",jD="Г",UD="г",VD="Ġ",GD="ġ",KD="≥",XD="≧",YD="⪌",ZD="⋛",JD="≥",QD="≧",eF="⩾",tF="⪩",nF="⩾",rF="⪀",iF="⪂",oF="⪄",sF="⋛︀",lF="⪔",aF="𝔊",cF="𝔤",uF="≫",fF="⋙",dF="⋙",hF="ℷ",pF="Ѓ",gF="ѓ",vF="⪥",mF="≷",yF="⪒",bF="⪤",wF="⪊",xF="⪊",_F="⪈",SF="≩",kF="⪈",TF="≩",CF="⋧",EF="𝔾",AF="𝕘",LF="`",MF="≥",$F="⋛",NF="≧",OF="⪢",PF="≷",RF="⩾",zF="≳",IF="𝒢",DF="ℊ",FF="≳",HF="⪎",BF="⪐",WF="⪧",qF="⩺",jF=">",UF=">",VF="≫",GF="⋗",KF="⦕",XF="⩼",YF="⪆",ZF="⥸",JF="⋗",QF="⋛",eH="⪌",tH="≷",nH="≳",rH="≩︀",iH="≩︀",oH="ˇ",sH=" ",lH="½",aH="ℋ",cH="Ъ",uH="ъ",fH="⥈",dH="↔",hH="⇔",pH="↭",gH="^",vH="ℏ",mH="Ĥ",yH="ĥ",bH="♥",wH="♥",xH="…",_H="⊹",SH="𝔥",kH="ℌ",TH="ℋ",CH="⤥",EH="⤦",AH="⇿",LH="∻",MH="↩",$H="↪",NH="𝕙",OH="ℍ",PH="―",RH="─",zH="𝒽",IH="ℋ",DH="ℏ",FH="Ħ",HH="ħ",BH="≎",WH="≏",qH="⁃",jH="‐",UH="Í",VH="í",GH="",KH="Î",XH="î",YH="И",ZH="и",JH="İ",QH="Е",e3="е",t3="¡",n3="⇔",r3="𝔦",i3="ℑ",o3="Ì",s3="ì",l3="ⅈ",a3="⨌",c3="∭",u3="⧜",f3="℩",d3="IJ",h3="ij",p3="Ī",g3="ī",v3="ℑ",m3="ⅈ",y3="ℐ",b3="ℑ",w3="ı",x3="ℑ",_3="⊷",S3="Ƶ",k3="⇒",T3="℅",C3="∞",E3="⧝",A3="ı",L3="⊺",M3="∫",$3="∬",N3="ℤ",O3="∫",P3="⊺",R3="⋂",z3="⨗",I3="⨼",D3="",F3="",H3="Ё",B3="ё",W3="Į",q3="į",j3="𝕀",U3="𝕚",V3="Ι",G3="ι",K3="⨼",X3="¿",Y3="𝒾",Z3="ℐ",J3="∈",Q3="⋵",eB="⋹",tB="⋴",nB="⋳",rB="∈",iB="",oB="Ĩ",sB="ĩ",lB="І",aB="і",cB="Ï",uB="ï",fB="Ĵ",dB="ĵ",hB="Й",pB="й",gB="𝔍",vB="𝔧",mB="ȷ",yB="𝕁",bB="𝕛",wB="𝒥",xB="𝒿",_B="Ј",SB="ј",kB="Є",TB="є",CB="Κ",EB="κ",AB="ϰ",LB="Ķ",MB="ķ",$B="К",NB="к",OB="𝔎",PB="𝔨",RB="ĸ",zB="Х",IB="х",DB="Ќ",FB="ќ",HB="𝕂",BB="𝕜",WB="𝒦",qB="𝓀",jB="⇚",UB="Ĺ",VB="ĺ",GB="⦴",KB="ℒ",XB="Λ",YB="λ",ZB="⟨",JB="⟪",QB="⦑",e5="⟨",t5="⪅",n5="ℒ",r5="«",i5="⇤",o5="⤟",s5="←",l5="↞",a5="⇐",c5="⤝",u5="↩",f5="↫",d5="⤹",h5="⥳",p5="↢",g5="⤙",v5="⤛",m5="⪫",y5="⪭",b5="⪭︀",w5="⤌",x5="⤎",_5="❲",S5="{",k5="[",T5="⦋",C5="⦏",E5="⦍",A5="Ľ",L5="ľ",M5="Ļ",$5="ļ",N5="⌈",O5="{",P5="Л",R5="л",z5="⤶",I5="“",D5="„",F5="⥧",H5="⥋",B5="↲",W5="≤",q5="≦",j5="⟨",U5="⇤",V5="←",G5="←",K5="⇐",X5="⇆",Y5="↢",Z5="⌈",J5="⟦",Q5="⥡",e8="⥙",t8="⇃",n8="⌊",r8="↽",i8="↼",o8="⇇",s8="↔",l8="↔",a8="⇔",c8="⇆",u8="⇋",f8="↭",d8="⥎",h8="↤",p8="⊣",g8="⥚",v8="⋋",m8="⧏",y8="⊲",b8="⊴",w8="⥑",x8="⥠",_8="⥘",S8="↿",k8="⥒",T8="↼",C8="⪋",E8="⋚",A8="≤",L8="≦",M8="⩽",$8="⪨",N8="⩽",O8="⩿",P8="⪁",R8="⪃",z8="⋚︀",I8="⪓",D8="⪅",F8="⋖",H8="⋚",B8="⪋",W8="⋚",q8="≦",j8="≶",U8="≶",V8="⪡",G8="≲",K8="⩽",X8="≲",Y8="⥼",Z8="⌊",J8="𝔏",Q8="𝔩",e4="≶",t4="⪑",n4="⥢",r4="↽",i4="↼",o4="⥪",s4="▄",l4="Љ",a4="љ",c4="⇇",u4="≪",f4="⋘",d4="⌞",h4="⇚",p4="⥫",g4="◺",v4="Ŀ",m4="ŀ",y4="⎰",b4="⎰",w4="⪉",x4="⪉",_4="⪇",S4="≨",k4="⪇",T4="≨",C4="⋦",E4="⟬",A4="⇽",L4="⟦",M4="⟵",$4="⟵",N4="⟸",O4="⟷",P4="⟷",R4="⟺",z4="⟼",I4="⟶",D4="⟶",F4="⟹",H4="↫",B4="↬",W4="⦅",q4="𝕃",j4="𝕝",U4="⨭",V4="⨴",G4="∗",K4="_",X4="↙",Y4="↘",Z4="◊",J4="◊",Q4="⧫",eW="(",tW="⦓",nW="⇆",rW="⌟",iW="⇋",oW="⥭",sW="",lW="⊿",aW="‹",cW="𝓁",uW="ℒ",fW="↰",dW="↰",hW="≲",pW="⪍",gW="⪏",vW="[",mW="‘",yW="‚",bW="Ł",wW="ł",xW="⪦",_W="⩹",SW="<",kW="<",TW="≪",CW="⋖",EW="⋋",AW="⋉",LW="⥶",MW="⩻",$W="◃",NW="⊴",OW="◂",PW="⦖",RW="⥊",zW="⥦",IW="≨︀",DW="≨︀",FW="¯",HW="♂",BW="✠",WW="✠",qW="↦",jW="↦",UW="↧",VW="↤",GW="↥",KW="▮",XW="⨩",YW="М",ZW="м",JW="—",QW="∺",eq="∡",tq=" ",nq="ℳ",rq="𝔐",iq="𝔪",oq="℧",sq="µ",lq="*",aq="⫰",cq="∣",uq="·",fq="⊟",dq="−",hq="∸",pq="⨪",gq="∓",vq="⫛",mq="…",yq="∓",bq="⊧",wq="𝕄",xq="𝕞",_q="∓",Sq="𝓂",kq="ℳ",Tq="∾",Cq="Μ",Eq="μ",Aq="⊸",Lq="⊸",Mq="∇",$q="Ń",Nq="ń",Oq="∠⃒",Pq="≉",Rq="⩰̸",zq="≋̸",Iq="ʼn",Dq="≉",Fq="♮",Hq="ℕ",Bq="♮",Wq=" ",qq="≎̸",jq="≏̸",Uq="⩃",Vq="Ň",Gq="ň",Kq="Ņ",Xq="ņ",Yq="≇",Zq="⩭̸",Jq="⩂",Qq="Н",ej="н",tj="–",nj="⤤",rj="↗",ij="⇗",oj="↗",sj="≠",lj="≐̸",aj="",cj="",uj="",fj="",dj="≢",hj="⤨",pj="≂̸",gj="≫",vj="≪",mj=`
|
|
43
|
+
`,yj="∄",bj="∄",wj="𝔑",xj="𝔫",_j="≧̸",Sj="≱",kj="≱",Tj="≧̸",Cj="⩾̸",Ej="⩾̸",Aj="⋙̸",Lj="≵",Mj="≫⃒",$j="≯",Nj="≯",Oj="≫̸",Pj="↮",Rj="⇎",zj="⫲",Ij="∋",Dj="⋼",Fj="⋺",Hj="∋",Bj="Њ",Wj="њ",qj="↚",jj="⇍",Uj="‥",Vj="≦̸",Gj="≰",Kj="↚",Xj="⇍",Yj="↮",Zj="⇎",Jj="≰",Qj="≦̸",e6="⩽̸",t6="⩽̸",n6="≮",r6="⋘̸",i6="≴",o6="≪⃒",s6="≮",l6="⋪",a6="⋬",c6="≪̸",u6="∤",f6="",d6=" ",h6="𝕟",p6="ℕ",g6="⫬",v6="¬",m6="≢",y6="≭",b6="∦",w6="∉",x6="≠",_6="≂̸",S6="∄",k6="≯",T6="≱",C6="≧̸",E6="≫̸",A6="≹",L6="⩾̸",M6="≵",$6="≎̸",N6="≏̸",O6="∉",P6="⋵̸",R6="⋹̸",z6="∉",I6="⋷",D6="⋶",F6="⧏̸",H6="⋪",B6="⋬",W6="≮",q6="≰",j6="≸",U6="≪̸",V6="⩽̸",G6="≴",K6="⪢̸",X6="⪡̸",Y6="∌",Z6="∌",J6="⋾",Q6="⋽",eU="⊀",tU="⪯̸",nU="⋠",rU="∌",iU="⧐̸",oU="⋫",sU="⋭",lU="⊏̸",aU="⋢",cU="⊐̸",uU="⋣",fU="⊂⃒",dU="⊈",hU="⊁",pU="⪰̸",gU="⋡",vU="≿̸",mU="⊃⃒",yU="⊉",bU="≁",wU="≄",xU="≇",_U="≉",SU="∤",kU="∦",TU="∦",CU="⫽⃥",EU="∂̸",AU="⨔",LU="⊀",MU="⋠",$U="⊀",NU="⪯̸",OU="⪯̸",PU="⤳̸",RU="↛",zU="⇏",IU="↝̸",DU="↛",FU="⇏",HU="⋫",BU="⋭",WU="⊁",qU="⋡",jU="⪰̸",UU="𝒩",VU="𝓃",GU="∤",KU="∦",XU="≁",YU="≄",ZU="≄",JU="∤",QU="∦",eV="⋢",tV="⋣",nV="⊄",rV="⫅̸",iV="⊈",oV="⊂⃒",sV="⊈",lV="⫅̸",aV="⊁",cV="⪰̸",uV="⊅",fV="⫆̸",dV="⊉",hV="⊃⃒",pV="⊉",gV="⫆̸",vV="≹",mV="Ñ",yV="ñ",bV="≸",wV="⋪",xV="⋬",_V="⋫",SV="⋭",kV="Ν",TV="ν",CV="#",EV="№",AV=" ",LV="≍⃒",MV="⊬",$V="⊭",NV="⊮",OV="⊯",PV="≥⃒",RV=">⃒",zV="⤄",IV="⧞",DV="⤂",FV="≤⃒",HV="<⃒",BV="⊴⃒",WV="⤃",qV="⊵⃒",jV="∼⃒",UV="⤣",VV="↖",GV="⇖",KV="↖",XV="⤧",YV="Ó",ZV="ó",JV="⊛",QV="Ô",e9="ô",t9="⊚",n9="О",r9="о",i9="⊝",o9="Ő",s9="ő",l9="⨸",a9="⊙",c9="⦼",u9="Œ",f9="œ",d9="⦿",h9="𝔒",p9="𝔬",g9="˛",v9="Ò",m9="ò",y9="⧁",b9="⦵",w9="Ω",x9="∮",_9="↺",S9="⦾",k9="⦻",T9="‾",C9="⧀",E9="Ō",A9="ō",L9="Ω",M9="ω",$9="Ο",N9="ο",O9="⦶",P9="⊖",R9="𝕆",z9="𝕠",I9="⦷",D9="“",F9="‘",H9="⦹",B9="⊕",W9="↻",q9="⩔",j9="∨",U9="⩝",V9="ℴ",G9="ℴ",K9="ª",X9="º",Y9="⊶",Z9="⩖",J9="⩗",Q9="⩛",eG="Ⓢ",tG="𝒪",nG="ℴ",rG="Ø",iG="ø",oG="⊘",sG="Õ",lG="õ",aG="⨶",cG="⨷",uG="⊗",fG="Ö",dG="ö",hG="⌽",pG="‾",gG="⏞",vG="⎴",mG="⏜",yG="¶",bG="∥",wG="∥",xG="⫳",_G="⫽",SG="∂",kG="∂",TG="П",CG="п",EG="%",AG=".",LG="‰",MG="⊥",$G="‱",NG="𝔓",OG="𝔭",PG="Φ",RG="φ",zG="ϕ",IG="ℳ",DG="☎",FG="Π",HG="π",BG="⋔",WG="ϖ",qG="ℏ",jG="ℎ",UG="ℏ",VG="⨣",GG="⊞",KG="⨢",XG="+",YG="∔",ZG="⨥",JG="⩲",QG="±",e7="±",t7="⨦",n7="⨧",r7="±",i7="ℌ",o7="⨕",s7="𝕡",l7="ℙ",a7="£",c7="⪷",u7="⪻",f7="≺",d7="≼",h7="⪷",p7="≺",g7="≼",v7="≺",m7="⪯",y7="≼",b7="≾",w7="⪯",x7="⪹",_7="⪵",S7="⋨",k7="⪯",T7="⪳",C7="≾",E7="′",A7="″",L7="ℙ",M7="⪹",$7="⪵",N7="⋨",O7="∏",P7="∏",R7="⌮",z7="⌒",I7="⌓",D7="∝",F7="∝",H7="∷",B7="∝",W7="≾",q7="⊰",j7="𝒫",U7="𝓅",V7="Ψ",G7="ψ",K7=" ",X7="𝔔",Y7="𝔮",Z7="⨌",J7="𝕢",Q7="ℚ",eK="⁗",tK="𝒬",nK="𝓆",rK="ℍ",iK="⨖",oK="?",sK="≟",lK='"',aK='"',cK="⇛",uK="∽̱",fK="Ŕ",dK="ŕ",hK="√",pK="⦳",gK="⟩",vK="⟫",mK="⦒",yK="⦥",bK="⟩",wK="»",xK="⥵",_K="⇥",SK="⤠",kK="⤳",TK="→",CK="↠",EK="⇒",AK="⤞",LK="↪",MK="↬",$K="⥅",NK="⥴",OK="⤖",PK="↣",RK="↝",zK="⤚",IK="⤜",DK="∶",FK="ℚ",HK="⤍",BK="⤏",WK="⤐",qK="❳",jK="}",UK="]",VK="⦌",GK="⦎",KK="⦐",XK="Ř",YK="ř",ZK="Ŗ",JK="ŗ",QK="⌉",eX="}",tX="Р",nX="р",rX="⤷",iX="⥩",oX="”",sX="”",lX="↳",aX="ℜ",cX="ℛ",uX="ℜ",fX="ℝ",dX="ℜ",hX="▭",pX="®",gX="®",vX="∋",mX="⇋",yX="⥯",bX="⥽",wX="⌋",xX="𝔯",_X="ℜ",SX="⥤",kX="⇁",TX="⇀",CX="⥬",EX="Ρ",AX="ρ",LX="ϱ",MX="⟩",$X="⇥",NX="→",OX="→",PX="⇒",RX="⇄",zX="↣",IX="⌉",DX="⟧",FX="⥝",HX="⥕",BX="⇂",WX="⌋",qX="⇁",jX="⇀",UX="⇄",VX="⇌",GX="⇉",KX="↝",XX="↦",YX="⊢",ZX="⥛",JX="⋌",QX="⧐",eY="⊳",tY="⊵",nY="⥏",rY="⥜",iY="⥔",oY="↾",sY="⥓",lY="⇀",aY="˚",cY="≓",uY="⇄",fY="⇌",dY="",hY="⎱",pY="⎱",gY="⫮",vY="⟭",mY="⇾",yY="⟧",bY="⦆",wY="𝕣",xY="ℝ",_Y="⨮",SY="⨵",kY="⥰",TY=")",CY="⦔",EY="⨒",AY="⇉",LY="⇛",MY="›",$Y="𝓇",NY="ℛ",OY="↱",PY="↱",RY="]",zY="’",IY="’",DY="⋌",FY="⋊",HY="▹",BY="⊵",WY="▸",qY="⧎",jY="⧴",UY="⥨",VY="℞",GY="Ś",KY="ś",XY="‚",YY="⪸",ZY="Š",JY="š",QY="⪼",eZ="≻",tZ="≽",nZ="⪰",rZ="⪴",iZ="Ş",oZ="ş",sZ="Ŝ",lZ="ŝ",aZ="⪺",cZ="⪶",uZ="⋩",fZ="⨓",dZ="≿",hZ="С",pZ="с",gZ="⊡",vZ="⋅",mZ="⩦",yZ="⤥",bZ="↘",wZ="⇘",xZ="↘",_Z="§",SZ=";",kZ="⤩",TZ="∖",CZ="∖",EZ="✶",AZ="𝔖",LZ="𝔰",MZ="⌢",$Z="♯",NZ="Щ",OZ="щ",PZ="Ш",RZ="ш",zZ="↓",IZ="←",DZ="∣",FZ="∥",HZ="→",BZ="↑",WZ="",qZ="Σ",jZ="σ",UZ="ς",VZ="ς",GZ="∼",KZ="⩪",XZ="≃",YZ="≃",ZZ="⪞",JZ="⪠",QZ="⪝",eJ="⪟",tJ="≆",nJ="⨤",rJ="⥲",iJ="←",oJ="∘",sJ="∖",lJ="⨳",aJ="⧤",cJ="∣",uJ="⌣",fJ="⪪",dJ="⪬",hJ="⪬︀",pJ="Ь",gJ="ь",vJ="⌿",mJ="⧄",yJ="/",bJ="𝕊",wJ="𝕤",xJ="♠",_J="♠",SJ="∥",kJ="⊓",TJ="⊓︀",CJ="⊔",EJ="⊔︀",AJ="√",LJ="⊏",MJ="⊑",$J="⊏",NJ="⊑",OJ="⊐",PJ="⊒",RJ="⊐",zJ="⊒",IJ="□",DJ="□",FJ="⊓",HJ="⊏",BJ="⊑",WJ="⊐",qJ="⊒",jJ="⊔",UJ="▪",VJ="□",GJ="▪",KJ="→",XJ="𝒮",YJ="𝓈",ZJ="∖",JJ="⌣",QJ="⋆",eQ="⋆",tQ="☆",nQ="★",rQ="ϵ",iQ="ϕ",oQ="¯",sQ="⊂",lQ="⋐",aQ="⪽",cQ="⫅",uQ="⊆",fQ="⫃",dQ="⫁",hQ="⫋",pQ="⊊",gQ="⪿",vQ="⥹",mQ="⊂",yQ="⋐",bQ="⊆",wQ="⫅",xQ="⊆",_Q="⊊",SQ="⫋",kQ="⫇",TQ="⫕",CQ="⫓",EQ="⪸",AQ="≻",LQ="≽",MQ="≻",$Q="⪰",NQ="≽",OQ="≿",PQ="⪰",RQ="⪺",zQ="⪶",IQ="⋩",DQ="≿",FQ="∋",HQ="∑",BQ="∑",WQ="♪",qQ="¹",jQ="²",UQ="³",VQ="⊃",GQ="⋑",KQ="⪾",XQ="⫘",YQ="⫆",ZQ="⊇",JQ="⫄",QQ="⊃",eee="⊇",tee="⟉",nee="⫗",ree="⥻",iee="⫂",oee="⫌",see="⊋",lee="⫀",aee="⊃",cee="⋑",uee="⊇",fee="⫆",dee="⊋",hee="⫌",pee="⫈",gee="⫔",vee="⫖",mee="⤦",yee="↙",bee="⇙",wee="↙",xee="⤪",_ee="ß",See=" ",kee="⌖",Tee="Τ",Cee="τ",Eee="⎴",Aee="Ť",Lee="ť",Mee="Ţ",$ee="ţ",Nee="Т",Oee="т",Pee="⃛",Ree="⌕",zee="𝔗",Iee="𝔱",Dee="∴",Fee="∴",Hee="∴",Bee="Θ",Wee="θ",qee="ϑ",jee="ϑ",Uee="≈",Vee="∼",Gee=" ",Kee=" ",Xee=" ",Yee="≈",Zee="∼",Jee="Þ",Qee="þ",ete="˜",tte="∼",nte="≃",rte="≅",ite="≈",ote="⨱",ste="⊠",lte="×",ate="⨰",cte="∭",ute="⤨",fte="⌶",dte="⫱",hte="⊤",pte="𝕋",gte="𝕥",vte="⫚",mte="⤩",yte="‴",bte="™",wte="™",xte="▵",_te="▿",Ste="◃",kte="⊴",Tte="≜",Cte="▹",Ete="⊵",Ate="◬",Lte="≜",Mte="⨺",$te="⃛",Nte="⨹",Ote="⧍",Pte="⨻",Rte="⏢",zte="𝒯",Ite="𝓉",Dte="Ц",Fte="ц",Hte="Ћ",Bte="ћ",Wte="Ŧ",qte="ŧ",jte="≬",Ute="↞",Vte="↠",Gte="Ú",Kte="ú",Xte="↑",Yte="↟",Zte="⇑",Jte="⥉",Qte="Ў",ene="ў",tne="Ŭ",nne="ŭ",rne="Û",ine="û",one="У",sne="у",lne="⇅",ane="Ű",cne="ű",une="⥮",fne="⥾",dne="𝔘",hne="𝔲",pne="Ù",gne="ù",vne="⥣",mne="↿",yne="↾",bne="▀",wne="⌜",xne="⌜",_ne="⌏",Sne="◸",kne="Ū",Tne="ū",Cne="¨",Ene="_",Ane="⏟",Lne="⎵",Mne="⏝",$ne="⋃",Nne="⊎",One="Ų",Pne="ų",Rne="𝕌",zne="𝕦",Ine="⤒",Dne="↑",Fne="↑",Hne="⇑",Bne="⇅",Wne="↕",qne="↕",jne="⇕",Une="⥮",Vne="↿",Gne="↾",Kne="⊎",Xne="↖",Yne="↗",Zne="υ",Jne="ϒ",Qne="ϒ",ere="Υ",tre="υ",nre="↥",rre="⊥",ire="⇈",ore="⌝",sre="⌝",lre="⌎",are="Ů",cre="ů",ure="◹",fre="𝒰",dre="𝓊",hre="⋰",pre="Ũ",gre="ũ",vre="▵",mre="▴",yre="⇈",bre="Ü",wre="ü",xre="⦧",_re="⦜",Sre="ϵ",kre="ϰ",Tre="∅",Cre="ϕ",Ere="ϖ",Are="∝",Lre="↕",Mre="⇕",$re="ϱ",Nre="ς",Ore="⊊︀",Pre="⫋︀",Rre="⊋︀",zre="⫌︀",Ire="ϑ",Dre="⊲",Fre="⊳",Hre="⫨",Bre="⫫",Wre="⫩",qre="В",jre="в",Ure="⊢",Vre="⊨",Gre="⊩",Kre="⊫",Xre="⫦",Yre="⊻",Zre="∨",Jre="⋁",Qre="≚",eie="⋮",tie="|",nie="‖",rie="|",iie="‖",oie="∣",sie="|",lie="❘",aie="≀",cie=" ",uie="𝔙",fie="𝔳",die="⊲",hie="⊂⃒",pie="⊃⃒",gie="𝕍",vie="𝕧",mie="∝",yie="⊳",bie="𝒱",wie="𝓋",xie="⫋︀",_ie="⊊︀",Sie="⫌︀",kie="⊋︀",Tie="⊪",Cie="⦚",Eie="Ŵ",Aie="ŵ",Lie="⩟",Mie="∧",$ie="⋀",Nie="≙",Oie="℘",Pie="𝔚",Rie="𝔴",zie="𝕎",Iie="𝕨",Die="℘",Fie="≀",Hie="≀",Bie="𝒲",Wie="𝓌",qie="⋂",jie="◯",Uie="⋃",Vie="▽",Gie="𝔛",Kie="𝔵",Xie="⟷",Yie="⟺",Zie="Ξ",Jie="ξ",Qie="⟵",eoe="⟸",toe="⟼",noe="⋻",roe="⨀",ioe="𝕏",ooe="𝕩",soe="⨁",loe="⨂",aoe="⟶",coe="⟹",uoe="𝒳",foe="𝓍",doe="⨆",hoe="⨄",poe="△",goe="⋁",voe="⋀",moe="Ý",yoe="ý",boe="Я",woe="я",xoe="Ŷ",_oe="ŷ",Soe="Ы",koe="ы",Toe="¥",Coe="𝔜",Eoe="𝔶",Aoe="Ї",Loe="ї",Moe="𝕐",$oe="𝕪",Noe="𝒴",Ooe="𝓎",Poe="Ю",Roe="ю",zoe="ÿ",Ioe="Ÿ",Doe="Ź",Foe="ź",Hoe="Ž",Boe="ž",Woe="З",qoe="з",joe="Ż",Uoe="ż",Voe="ℨ",Goe="",Koe="Ζ",Xoe="ζ",Yoe="𝔷",Zoe="ℨ",Joe="Ж",Qoe="ж",ese="⇝",tse="𝕫",nse="ℤ",rse="𝒵",ise="𝓏",ose="",sse="",Mw={Aacute:jA,aacute:UA,Abreve:VA,abreve:GA,ac:KA,acd:XA,acE:YA,Acirc:ZA,acirc:JA,acute:QA,Acy:eL,acy:tL,AElig:nL,aelig:rL,af:iL,Afr:oL,afr:sL,Agrave:lL,agrave:aL,alefsym:cL,aleph:uL,Alpha:fL,alpha:dL,Amacr:hL,amacr:pL,amalg:gL,amp:vL,AMP:mL,andand:yL,And:bL,and:wL,andd:xL,andslope:_L,andv:SL,ang:kL,ange:TL,angle:CL,angmsdaa:EL,angmsdab:AL,angmsdac:LL,angmsdad:ML,angmsdae:$L,angmsdaf:NL,angmsdag:OL,angmsdah:PL,angmsd:RL,angrt:zL,angrtvb:IL,angrtvbd:DL,angsph:FL,angst:HL,angzarr:BL,Aogon:WL,aogon:qL,Aopf:jL,aopf:UL,apacir:VL,ap:GL,apE:KL,ape:XL,apid:YL,apos:ZL,ApplyFunction:JL,approx:QL,approxeq:eM,Aring:tM,aring:nM,Ascr:rM,ascr:iM,Assign:oM,ast:sM,asymp:lM,asympeq:aM,Atilde:cM,atilde:uM,Auml:fM,auml:dM,awconint:hM,awint:pM,backcong:gM,backepsilon:vM,backprime:mM,backsim:yM,backsimeq:bM,Backslash:wM,Barv:xM,barvee:_M,barwed:SM,Barwed:kM,barwedge:TM,bbrk:CM,bbrktbrk:EM,bcong:AM,Bcy:LM,bcy:MM,bdquo:$M,becaus:NM,because:OM,Because:PM,bemptyv:RM,bepsi:zM,bernou:IM,Bernoullis:DM,Beta:FM,beta:HM,beth:BM,between:WM,Bfr:qM,bfr:jM,bigcap:UM,bigcirc:VM,bigcup:GM,bigodot:KM,bigoplus:XM,bigotimes:YM,bigsqcup:ZM,bigstar:JM,bigtriangledown:QM,bigtriangleup:e$,biguplus:t$,bigvee:n$,bigwedge:r$,bkarow:i$,blacklozenge:o$,blacksquare:s$,blacktriangle:l$,blacktriangledown:a$,blacktriangleleft:c$,blacktriangleright:u$,blank:f$,blk12:d$,blk14:h$,blk34:p$,block:g$,bne:v$,bnequiv:m$,bNot:y$,bnot:b$,Bopf:w$,bopf:x$,bot:_$,bottom:S$,bowtie:k$,boxbox:T$,boxdl:C$,boxdL:E$,boxDl:A$,boxDL:L$,boxdr:M$,boxdR:$$,boxDr:N$,boxDR:O$,boxh:P$,boxH:R$,boxhd:z$,boxHd:I$,boxhD:D$,boxHD:F$,boxhu:H$,boxHu:B$,boxhU:W$,boxHU:q$,boxminus:j$,boxplus:U$,boxtimes:V$,boxul:G$,boxuL:K$,boxUl:X$,boxUL:Y$,boxur:Z$,boxuR:J$,boxUr:Q$,boxUR:eN,boxv:tN,boxV:nN,boxvh:rN,boxvH:iN,boxVh:oN,boxVH:sN,boxvl:lN,boxvL:aN,boxVl:cN,boxVL:uN,boxvr:fN,boxvR:dN,boxVr:hN,boxVR:pN,bprime:gN,breve:vN,Breve:mN,brvbar:yN,bscr:bN,Bscr:wN,bsemi:xN,bsim:_N,bsime:SN,bsolb:kN,bsol:TN,bsolhsub:CN,bull:EN,bullet:AN,bump:LN,bumpE:MN,bumpe:$N,Bumpeq:NN,bumpeq:ON,Cacute:PN,cacute:RN,capand:zN,capbrcup:IN,capcap:DN,cap:FN,Cap:HN,capcup:BN,capdot:WN,CapitalDifferentialD:qN,caps:jN,caret:UN,caron:VN,Cayleys:GN,ccaps:KN,Ccaron:XN,ccaron:YN,Ccedil:ZN,ccedil:JN,Ccirc:QN,ccirc:eO,Cconint:tO,ccups:nO,ccupssm:rO,Cdot:iO,cdot:oO,cedil:sO,Cedilla:lO,cemptyv:aO,cent:cO,centerdot:uO,CenterDot:fO,cfr:dO,Cfr:hO,CHcy:pO,chcy:gO,check:vO,checkmark:mO,Chi:yO,chi:bO,circ:wO,circeq:xO,circlearrowleft:_O,circlearrowright:SO,circledast:kO,circledcirc:TO,circleddash:CO,CircleDot:EO,circledR:AO,circledS:LO,CircleMinus:MO,CirclePlus:$O,CircleTimes:NO,cir:OO,cirE:PO,cire:RO,cirfnint:zO,cirmid:IO,cirscir:DO,ClockwiseContourIntegral:FO,CloseCurlyDoubleQuote:HO,CloseCurlyQuote:BO,clubs:WO,clubsuit:qO,colon:jO,Colon:UO,Colone:VO,colone:GO,coloneq:KO,comma:XO,commat:YO,comp:ZO,compfn:JO,complement:QO,complexes:e2,cong:t2,congdot:n2,Congruent:r2,conint:i2,Conint:o2,ContourIntegral:s2,copf:l2,Copf:a2,coprod:c2,Coproduct:u2,copy:f2,COPY:d2,copysr:h2,CounterClockwiseContourIntegral:p2,crarr:g2,cross:v2,Cross:m2,Cscr:y2,cscr:b2,csub:w2,csube:x2,csup:_2,csupe:S2,ctdot:k2,cudarrl:T2,cudarrr:C2,cuepr:E2,cuesc:A2,cularr:L2,cularrp:M2,cupbrcap:$2,cupcap:N2,CupCap:O2,cup:P2,Cup:R2,cupcup:z2,cupdot:I2,cupor:D2,cups:F2,curarr:H2,curarrm:B2,curlyeqprec:W2,curlyeqsucc:q2,curlyvee:j2,curlywedge:U2,curren:V2,curvearrowleft:G2,curvearrowright:K2,cuvee:X2,cuwed:Y2,cwconint:Z2,cwint:J2,cylcty:Q2,dagger:eP,Dagger:tP,daleth:nP,darr:rP,Darr:iP,dArr:oP,dash:sP,Dashv:lP,dashv:aP,dbkarow:cP,dblac:uP,Dcaron:fP,dcaron:dP,Dcy:hP,dcy:pP,ddagger:gP,ddarr:vP,DD:mP,dd:yP,DDotrahd:bP,ddotseq:wP,deg:xP,Del:_P,Delta:SP,delta:kP,demptyv:TP,dfisht:CP,Dfr:EP,dfr:AP,dHar:LP,dharl:MP,dharr:$P,DiacriticalAcute:NP,DiacriticalDot:OP,DiacriticalDoubleAcute:PP,DiacriticalGrave:RP,DiacriticalTilde:zP,diam:IP,diamond:DP,Diamond:FP,diamondsuit:HP,diams:BP,die:WP,DifferentialD:qP,digamma:jP,disin:UP,div:VP,divide:GP,divideontimes:KP,divonx:XP,DJcy:YP,djcy:ZP,dlcorn:JP,dlcrop:QP,dollar:eR,Dopf:tR,dopf:nR,Dot:rR,dot:iR,DotDot:oR,doteq:sR,doteqdot:lR,DotEqual:aR,dotminus:cR,dotplus:uR,dotsquare:fR,doublebarwedge:dR,DoubleContourIntegral:hR,DoubleDot:pR,DoubleDownArrow:gR,DoubleLeftArrow:vR,DoubleLeftRightArrow:mR,DoubleLeftTee:yR,DoubleLongLeftArrow:bR,DoubleLongLeftRightArrow:wR,DoubleLongRightArrow:xR,DoubleRightArrow:_R,DoubleRightTee:SR,DoubleUpArrow:kR,DoubleUpDownArrow:TR,DoubleVerticalBar:CR,DownArrowBar:ER,downarrow:AR,DownArrow:LR,Downarrow:MR,DownArrowUpArrow:$R,DownBreve:NR,downdownarrows:OR,downharpoonleft:PR,downharpoonright:RR,DownLeftRightVector:zR,DownLeftTeeVector:IR,DownLeftVectorBar:DR,DownLeftVector:FR,DownRightTeeVector:HR,DownRightVectorBar:BR,DownRightVector:WR,DownTeeArrow:qR,DownTee:jR,drbkarow:UR,drcorn:VR,drcrop:GR,Dscr:KR,dscr:XR,DScy:YR,dscy:ZR,dsol:JR,Dstrok:QR,dstrok:ez,dtdot:tz,dtri:nz,dtrif:rz,duarr:iz,duhar:oz,dwangle:sz,DZcy:lz,dzcy:az,dzigrarr:cz,Eacute:uz,eacute:fz,easter:dz,Ecaron:hz,ecaron:pz,Ecirc:gz,ecirc:vz,ecir:mz,ecolon:yz,Ecy:bz,ecy:wz,eDDot:xz,Edot:_z,edot:Sz,eDot:kz,ee:Tz,efDot:Cz,Efr:Ez,efr:Az,eg:Lz,Egrave:Mz,egrave:$z,egs:Nz,egsdot:Oz,el:Pz,Element:Rz,elinters:zz,ell:Iz,els:Dz,elsdot:Fz,Emacr:Hz,emacr:Bz,empty:Wz,emptyset:qz,EmptySmallSquare:jz,emptyv:Uz,EmptyVerySmallSquare:Vz,emsp13:Gz,emsp14:Kz,emsp:Xz,ENG:Yz,eng:Zz,ensp:Jz,Eogon:Qz,eogon:eI,Eopf:tI,eopf:nI,epar:rI,eparsl:iI,eplus:oI,epsi:sI,Epsilon:lI,epsilon:aI,epsiv:cI,eqcirc:uI,eqcolon:fI,eqsim:dI,eqslantgtr:hI,eqslantless:pI,Equal:gI,equals:vI,EqualTilde:mI,equest:yI,Equilibrium:bI,equiv:wI,equivDD:xI,eqvparsl:_I,erarr:SI,erDot:kI,escr:TI,Escr:CI,esdot:EI,Esim:AI,esim:LI,Eta:MI,eta:$I,ETH:NI,eth:OI,Euml:PI,euml:RI,euro:zI,excl:II,exist:DI,Exists:FI,expectation:HI,exponentiale:BI,ExponentialE:WI,fallingdotseq:qI,Fcy:jI,fcy:UI,female:VI,ffilig:GI,fflig:KI,ffllig:XI,Ffr:YI,ffr:ZI,filig:JI,FilledSmallSquare:QI,FilledVerySmallSquare:eD,fjlig:tD,flat:nD,fllig:rD,fltns:iD,fnof:oD,Fopf:sD,fopf:lD,forall:aD,ForAll:cD,fork:uD,forkv:fD,Fouriertrf:dD,fpartint:hD,frac12:pD,frac13:gD,frac14:vD,frac15:mD,frac16:yD,frac18:bD,frac23:wD,frac25:xD,frac34:_D,frac35:SD,frac38:kD,frac45:TD,frac56:CD,frac58:ED,frac78:AD,frasl:LD,frown:MD,fscr:$D,Fscr:ND,gacute:OD,Gamma:PD,gamma:RD,Gammad:zD,gammad:ID,gap:DD,Gbreve:FD,gbreve:HD,Gcedil:BD,Gcirc:WD,gcirc:qD,Gcy:jD,gcy:UD,Gdot:VD,gdot:GD,ge:KD,gE:XD,gEl:YD,gel:ZD,geq:JD,geqq:QD,geqslant:eF,gescc:tF,ges:nF,gesdot:rF,gesdoto:iF,gesdotol:oF,gesl:sF,gesles:lF,Gfr:aF,gfr:cF,gg:uF,Gg:fF,ggg:dF,gimel:hF,GJcy:pF,gjcy:gF,gla:vF,gl:mF,glE:yF,glj:bF,gnap:wF,gnapprox:xF,gne:_F,gnE:SF,gneq:kF,gneqq:TF,gnsim:CF,Gopf:EF,gopf:AF,grave:LF,GreaterEqual:MF,GreaterEqualLess:$F,GreaterFullEqual:NF,GreaterGreater:OF,GreaterLess:PF,GreaterSlantEqual:RF,GreaterTilde:zF,Gscr:IF,gscr:DF,gsim:FF,gsime:HF,gsiml:BF,gtcc:WF,gtcir:qF,gt:jF,GT:UF,Gt:VF,gtdot:GF,gtlPar:KF,gtquest:XF,gtrapprox:YF,gtrarr:ZF,gtrdot:JF,gtreqless:QF,gtreqqless:eH,gtrless:tH,gtrsim:nH,gvertneqq:rH,gvnE:iH,Hacek:oH,hairsp:sH,half:lH,hamilt:aH,HARDcy:cH,hardcy:uH,harrcir:fH,harr:dH,hArr:hH,harrw:pH,Hat:gH,hbar:vH,Hcirc:mH,hcirc:yH,hearts:bH,heartsuit:wH,hellip:xH,hercon:_H,hfr:SH,Hfr:kH,HilbertSpace:TH,hksearow:CH,hkswarow:EH,hoarr:AH,homtht:LH,hookleftarrow:MH,hookrightarrow:$H,hopf:NH,Hopf:OH,horbar:PH,HorizontalLine:RH,hscr:zH,Hscr:IH,hslash:DH,Hstrok:FH,hstrok:HH,HumpDownHump:BH,HumpEqual:WH,hybull:qH,hyphen:jH,Iacute:UH,iacute:VH,ic:GH,Icirc:KH,icirc:XH,Icy:YH,icy:ZH,Idot:JH,IEcy:QH,iecy:e3,iexcl:t3,iff:n3,ifr:r3,Ifr:i3,Igrave:o3,igrave:s3,ii:l3,iiiint:a3,iiint:c3,iinfin:u3,iiota:f3,IJlig:d3,ijlig:h3,Imacr:p3,imacr:g3,image:v3,ImaginaryI:m3,imagline:y3,imagpart:b3,imath:w3,Im:x3,imof:_3,imped:S3,Implies:k3,incare:T3,in:"∈",infin:C3,infintie:E3,inodot:A3,intcal:L3,int:M3,Int:$3,integers:N3,Integral:O3,intercal:P3,Intersection:R3,intlarhk:z3,intprod:I3,InvisibleComma:D3,InvisibleTimes:F3,IOcy:H3,iocy:B3,Iogon:W3,iogon:q3,Iopf:j3,iopf:U3,Iota:V3,iota:G3,iprod:K3,iquest:X3,iscr:Y3,Iscr:Z3,isin:J3,isindot:Q3,isinE:eB,isins:tB,isinsv:nB,isinv:rB,it:iB,Itilde:oB,itilde:sB,Iukcy:lB,iukcy:aB,Iuml:cB,iuml:uB,Jcirc:fB,jcirc:dB,Jcy:hB,jcy:pB,Jfr:gB,jfr:vB,jmath:mB,Jopf:yB,jopf:bB,Jscr:wB,jscr:xB,Jsercy:_B,jsercy:SB,Jukcy:kB,jukcy:TB,Kappa:CB,kappa:EB,kappav:AB,Kcedil:LB,kcedil:MB,Kcy:$B,kcy:NB,Kfr:OB,kfr:PB,kgreen:RB,KHcy:zB,khcy:IB,KJcy:DB,kjcy:FB,Kopf:HB,kopf:BB,Kscr:WB,kscr:qB,lAarr:jB,Lacute:UB,lacute:VB,laemptyv:GB,lagran:KB,Lambda:XB,lambda:YB,lang:ZB,Lang:JB,langd:QB,langle:e5,lap:t5,Laplacetrf:n5,laquo:r5,larrb:i5,larrbfs:o5,larr:s5,Larr:l5,lArr:a5,larrfs:c5,larrhk:u5,larrlp:f5,larrpl:d5,larrsim:h5,larrtl:p5,latail:g5,lAtail:v5,lat:m5,late:y5,lates:b5,lbarr:w5,lBarr:x5,lbbrk:_5,lbrace:S5,lbrack:k5,lbrke:T5,lbrksld:C5,lbrkslu:E5,Lcaron:A5,lcaron:L5,Lcedil:M5,lcedil:$5,lceil:N5,lcub:O5,Lcy:P5,lcy:R5,ldca:z5,ldquo:I5,ldquor:D5,ldrdhar:F5,ldrushar:H5,ldsh:B5,le:W5,lE:q5,LeftAngleBracket:j5,LeftArrowBar:U5,leftarrow:V5,LeftArrow:G5,Leftarrow:K5,LeftArrowRightArrow:X5,leftarrowtail:Y5,LeftCeiling:Z5,LeftDoubleBracket:J5,LeftDownTeeVector:Q5,LeftDownVectorBar:e8,LeftDownVector:t8,LeftFloor:n8,leftharpoondown:r8,leftharpoonup:i8,leftleftarrows:o8,leftrightarrow:s8,LeftRightArrow:l8,Leftrightarrow:a8,leftrightarrows:c8,leftrightharpoons:u8,leftrightsquigarrow:f8,LeftRightVector:d8,LeftTeeArrow:h8,LeftTee:p8,LeftTeeVector:g8,leftthreetimes:v8,LeftTriangleBar:m8,LeftTriangle:y8,LeftTriangleEqual:b8,LeftUpDownVector:w8,LeftUpTeeVector:x8,LeftUpVectorBar:_8,LeftUpVector:S8,LeftVectorBar:k8,LeftVector:T8,lEg:C8,leg:E8,leq:A8,leqq:L8,leqslant:M8,lescc:$8,les:N8,lesdot:O8,lesdoto:P8,lesdotor:R8,lesg:z8,lesges:I8,lessapprox:D8,lessdot:F8,lesseqgtr:H8,lesseqqgtr:B8,LessEqualGreater:W8,LessFullEqual:q8,LessGreater:j8,lessgtr:U8,LessLess:V8,lesssim:G8,LessSlantEqual:K8,LessTilde:X8,lfisht:Y8,lfloor:Z8,Lfr:J8,lfr:Q8,lg:e4,lgE:t4,lHar:n4,lhard:r4,lharu:i4,lharul:o4,lhblk:s4,LJcy:l4,ljcy:a4,llarr:c4,ll:u4,Ll:f4,llcorner:d4,Lleftarrow:h4,llhard:p4,lltri:g4,Lmidot:v4,lmidot:m4,lmoustache:y4,lmoust:b4,lnap:w4,lnapprox:x4,lne:_4,lnE:S4,lneq:k4,lneqq:T4,lnsim:C4,loang:E4,loarr:A4,lobrk:L4,longleftarrow:M4,LongLeftArrow:$4,Longleftarrow:N4,longleftrightarrow:O4,LongLeftRightArrow:P4,Longleftrightarrow:R4,longmapsto:z4,longrightarrow:I4,LongRightArrow:D4,Longrightarrow:F4,looparrowleft:H4,looparrowright:B4,lopar:W4,Lopf:q4,lopf:j4,loplus:U4,lotimes:V4,lowast:G4,lowbar:K4,LowerLeftArrow:X4,LowerRightArrow:Y4,loz:Z4,lozenge:J4,lozf:Q4,lpar:eW,lparlt:tW,lrarr:nW,lrcorner:rW,lrhar:iW,lrhard:oW,lrm:sW,lrtri:lW,lsaquo:aW,lscr:cW,Lscr:uW,lsh:fW,Lsh:dW,lsim:hW,lsime:pW,lsimg:gW,lsqb:vW,lsquo:mW,lsquor:yW,Lstrok:bW,lstrok:wW,ltcc:xW,ltcir:_W,lt:SW,LT:kW,Lt:TW,ltdot:CW,lthree:EW,ltimes:AW,ltlarr:LW,ltquest:MW,ltri:$W,ltrie:NW,ltrif:OW,ltrPar:PW,lurdshar:RW,luruhar:zW,lvertneqq:IW,lvnE:DW,macr:FW,male:HW,malt:BW,maltese:WW,Map:"⤅",map:qW,mapsto:jW,mapstodown:UW,mapstoleft:VW,mapstoup:GW,marker:KW,mcomma:XW,Mcy:YW,mcy:ZW,mdash:JW,mDDot:QW,measuredangle:eq,MediumSpace:tq,Mellintrf:nq,Mfr:rq,mfr:iq,mho:oq,micro:sq,midast:lq,midcir:aq,mid:cq,middot:uq,minusb:fq,minus:dq,minusd:hq,minusdu:pq,MinusPlus:gq,mlcp:vq,mldr:mq,mnplus:yq,models:bq,Mopf:wq,mopf:xq,mp:_q,mscr:Sq,Mscr:kq,mstpos:Tq,Mu:Cq,mu:Eq,multimap:Aq,mumap:Lq,nabla:Mq,Nacute:$q,nacute:Nq,nang:Oq,nap:Pq,napE:Rq,napid:zq,napos:Iq,napprox:Dq,natural:Fq,naturals:Hq,natur:Bq,nbsp:Wq,nbump:qq,nbumpe:jq,ncap:Uq,Ncaron:Vq,ncaron:Gq,Ncedil:Kq,ncedil:Xq,ncong:Yq,ncongdot:Zq,ncup:Jq,Ncy:Qq,ncy:ej,ndash:tj,nearhk:nj,nearr:rj,neArr:ij,nearrow:oj,ne:sj,nedot:lj,NegativeMediumSpace:aj,NegativeThickSpace:cj,NegativeThinSpace:uj,NegativeVeryThinSpace:fj,nequiv:dj,nesear:hj,nesim:pj,NestedGreaterGreater:gj,NestedLessLess:vj,NewLine:mj,nexist:yj,nexists:bj,Nfr:wj,nfr:xj,ngE:_j,nge:Sj,ngeq:kj,ngeqq:Tj,ngeqslant:Cj,nges:Ej,nGg:Aj,ngsim:Lj,nGt:Mj,ngt:$j,ngtr:Nj,nGtv:Oj,nharr:Pj,nhArr:Rj,nhpar:zj,ni:Ij,nis:Dj,nisd:Fj,niv:Hj,NJcy:Bj,njcy:Wj,nlarr:qj,nlArr:jj,nldr:Uj,nlE:Vj,nle:Gj,nleftarrow:Kj,nLeftarrow:Xj,nleftrightarrow:Yj,nLeftrightarrow:Zj,nleq:Jj,nleqq:Qj,nleqslant:e6,nles:t6,nless:n6,nLl:r6,nlsim:i6,nLt:o6,nlt:s6,nltri:l6,nltrie:a6,nLtv:c6,nmid:u6,NoBreak:f6,NonBreakingSpace:d6,nopf:h6,Nopf:p6,Not:g6,not:v6,NotCongruent:m6,NotCupCap:y6,NotDoubleVerticalBar:b6,NotElement:w6,NotEqual:x6,NotEqualTilde:_6,NotExists:S6,NotGreater:k6,NotGreaterEqual:T6,NotGreaterFullEqual:C6,NotGreaterGreater:E6,NotGreaterLess:A6,NotGreaterSlantEqual:L6,NotGreaterTilde:M6,NotHumpDownHump:$6,NotHumpEqual:N6,notin:O6,notindot:P6,notinE:R6,notinva:z6,notinvb:I6,notinvc:D6,NotLeftTriangleBar:F6,NotLeftTriangle:H6,NotLeftTriangleEqual:B6,NotLess:W6,NotLessEqual:q6,NotLessGreater:j6,NotLessLess:U6,NotLessSlantEqual:V6,NotLessTilde:G6,NotNestedGreaterGreater:K6,NotNestedLessLess:X6,notni:Y6,notniva:Z6,notnivb:J6,notnivc:Q6,NotPrecedes:eU,NotPrecedesEqual:tU,NotPrecedesSlantEqual:nU,NotReverseElement:rU,NotRightTriangleBar:iU,NotRightTriangle:oU,NotRightTriangleEqual:sU,NotSquareSubset:lU,NotSquareSubsetEqual:aU,NotSquareSuperset:cU,NotSquareSupersetEqual:uU,NotSubset:fU,NotSubsetEqual:dU,NotSucceeds:hU,NotSucceedsEqual:pU,NotSucceedsSlantEqual:gU,NotSucceedsTilde:vU,NotSuperset:mU,NotSupersetEqual:yU,NotTilde:bU,NotTildeEqual:wU,NotTildeFullEqual:xU,NotTildeTilde:_U,NotVerticalBar:SU,nparallel:kU,npar:TU,nparsl:CU,npart:EU,npolint:AU,npr:LU,nprcue:MU,nprec:$U,npreceq:NU,npre:OU,nrarrc:PU,nrarr:RU,nrArr:zU,nrarrw:IU,nrightarrow:DU,nRightarrow:FU,nrtri:HU,nrtrie:BU,nsc:WU,nsccue:qU,nsce:jU,Nscr:UU,nscr:VU,nshortmid:GU,nshortparallel:KU,nsim:XU,nsime:YU,nsimeq:ZU,nsmid:JU,nspar:QU,nsqsube:eV,nsqsupe:tV,nsub:nV,nsubE:rV,nsube:iV,nsubset:oV,nsubseteq:sV,nsubseteqq:lV,nsucc:aV,nsucceq:cV,nsup:uV,nsupE:fV,nsupe:dV,nsupset:hV,nsupseteq:pV,nsupseteqq:gV,ntgl:vV,Ntilde:mV,ntilde:yV,ntlg:bV,ntriangleleft:wV,ntrianglelefteq:xV,ntriangleright:_V,ntrianglerighteq:SV,Nu:kV,nu:TV,num:CV,numero:EV,numsp:AV,nvap:LV,nvdash:MV,nvDash:$V,nVdash:NV,nVDash:OV,nvge:PV,nvgt:RV,nvHarr:zV,nvinfin:IV,nvlArr:DV,nvle:FV,nvlt:HV,nvltrie:BV,nvrArr:WV,nvrtrie:qV,nvsim:jV,nwarhk:UV,nwarr:VV,nwArr:GV,nwarrow:KV,nwnear:XV,Oacute:YV,oacute:ZV,oast:JV,Ocirc:QV,ocirc:e9,ocir:t9,Ocy:n9,ocy:r9,odash:i9,Odblac:o9,odblac:s9,odiv:l9,odot:a9,odsold:c9,OElig:u9,oelig:f9,ofcir:d9,Ofr:h9,ofr:p9,ogon:g9,Ograve:v9,ograve:m9,ogt:y9,ohbar:b9,ohm:w9,oint:x9,olarr:_9,olcir:S9,olcross:k9,oline:T9,olt:C9,Omacr:E9,omacr:A9,Omega:L9,omega:M9,Omicron:$9,omicron:N9,omid:O9,ominus:P9,Oopf:R9,oopf:z9,opar:I9,OpenCurlyDoubleQuote:D9,OpenCurlyQuote:F9,operp:H9,oplus:B9,orarr:W9,Or:q9,or:j9,ord:U9,order:V9,orderof:G9,ordf:K9,ordm:X9,origof:Y9,oror:Z9,orslope:J9,orv:Q9,oS:eG,Oscr:tG,oscr:nG,Oslash:rG,oslash:iG,osol:oG,Otilde:sG,otilde:lG,otimesas:aG,Otimes:cG,otimes:uG,Ouml:fG,ouml:dG,ovbar:hG,OverBar:pG,OverBrace:gG,OverBracket:vG,OverParenthesis:mG,para:yG,parallel:bG,par:wG,parsim:xG,parsl:_G,part:SG,PartialD:kG,Pcy:TG,pcy:CG,percnt:EG,period:AG,permil:LG,perp:MG,pertenk:$G,Pfr:NG,pfr:OG,Phi:PG,phi:RG,phiv:zG,phmmat:IG,phone:DG,Pi:FG,pi:HG,pitchfork:BG,piv:WG,planck:qG,planckh:jG,plankv:UG,plusacir:VG,plusb:GG,pluscir:KG,plus:XG,plusdo:YG,plusdu:ZG,pluse:JG,PlusMinus:QG,plusmn:e7,plussim:t7,plustwo:n7,pm:r7,Poincareplane:i7,pointint:o7,popf:s7,Popf:l7,pound:a7,prap:c7,Pr:u7,pr:f7,prcue:d7,precapprox:h7,prec:p7,preccurlyeq:g7,Precedes:v7,PrecedesEqual:m7,PrecedesSlantEqual:y7,PrecedesTilde:b7,preceq:w7,precnapprox:x7,precneqq:_7,precnsim:S7,pre:k7,prE:T7,precsim:C7,prime:E7,Prime:A7,primes:L7,prnap:M7,prnE:$7,prnsim:N7,prod:O7,Product:P7,profalar:R7,profline:z7,profsurf:I7,prop:D7,Proportional:F7,Proportion:H7,propto:B7,prsim:W7,prurel:q7,Pscr:j7,pscr:U7,Psi:V7,psi:G7,puncsp:K7,Qfr:X7,qfr:Y7,qint:Z7,qopf:J7,Qopf:Q7,qprime:eK,Qscr:tK,qscr:nK,quaternions:rK,quatint:iK,quest:oK,questeq:sK,quot:lK,QUOT:aK,rAarr:cK,race:uK,Racute:fK,racute:dK,radic:hK,raemptyv:pK,rang:gK,Rang:vK,rangd:mK,range:yK,rangle:bK,raquo:wK,rarrap:xK,rarrb:_K,rarrbfs:SK,rarrc:kK,rarr:TK,Rarr:CK,rArr:EK,rarrfs:AK,rarrhk:LK,rarrlp:MK,rarrpl:$K,rarrsim:NK,Rarrtl:OK,rarrtl:PK,rarrw:RK,ratail:zK,rAtail:IK,ratio:DK,rationals:FK,rbarr:HK,rBarr:BK,RBarr:WK,rbbrk:qK,rbrace:jK,rbrack:UK,rbrke:VK,rbrksld:GK,rbrkslu:KK,Rcaron:XK,rcaron:YK,Rcedil:ZK,rcedil:JK,rceil:QK,rcub:eX,Rcy:tX,rcy:nX,rdca:rX,rdldhar:iX,rdquo:oX,rdquor:sX,rdsh:lX,real:aX,realine:cX,realpart:uX,reals:fX,Re:dX,rect:hX,reg:pX,REG:gX,ReverseElement:vX,ReverseEquilibrium:mX,ReverseUpEquilibrium:yX,rfisht:bX,rfloor:wX,rfr:xX,Rfr:_X,rHar:SX,rhard:kX,rharu:TX,rharul:CX,Rho:EX,rho:AX,rhov:LX,RightAngleBracket:MX,RightArrowBar:$X,rightarrow:NX,RightArrow:OX,Rightarrow:PX,RightArrowLeftArrow:RX,rightarrowtail:zX,RightCeiling:IX,RightDoubleBracket:DX,RightDownTeeVector:FX,RightDownVectorBar:HX,RightDownVector:BX,RightFloor:WX,rightharpoondown:qX,rightharpoonup:jX,rightleftarrows:UX,rightleftharpoons:VX,rightrightarrows:GX,rightsquigarrow:KX,RightTeeArrow:XX,RightTee:YX,RightTeeVector:ZX,rightthreetimes:JX,RightTriangleBar:QX,RightTriangle:eY,RightTriangleEqual:tY,RightUpDownVector:nY,RightUpTeeVector:rY,RightUpVectorBar:iY,RightUpVector:oY,RightVectorBar:sY,RightVector:lY,ring:aY,risingdotseq:cY,rlarr:uY,rlhar:fY,rlm:dY,rmoustache:hY,rmoust:pY,rnmid:gY,roang:vY,roarr:mY,robrk:yY,ropar:bY,ropf:wY,Ropf:xY,roplus:_Y,rotimes:SY,RoundImplies:kY,rpar:TY,rpargt:CY,rppolint:EY,rrarr:AY,Rrightarrow:LY,rsaquo:MY,rscr:$Y,Rscr:NY,rsh:OY,Rsh:PY,rsqb:RY,rsquo:zY,rsquor:IY,rthree:DY,rtimes:FY,rtri:HY,rtrie:BY,rtrif:WY,rtriltri:qY,RuleDelayed:jY,ruluhar:UY,rx:VY,Sacute:GY,sacute:KY,sbquo:XY,scap:YY,Scaron:ZY,scaron:JY,Sc:QY,sc:eZ,sccue:tZ,sce:nZ,scE:rZ,Scedil:iZ,scedil:oZ,Scirc:sZ,scirc:lZ,scnap:aZ,scnE:cZ,scnsim:uZ,scpolint:fZ,scsim:dZ,Scy:hZ,scy:pZ,sdotb:gZ,sdot:vZ,sdote:mZ,searhk:yZ,searr:bZ,seArr:wZ,searrow:xZ,sect:_Z,semi:SZ,seswar:kZ,setminus:TZ,setmn:CZ,sext:EZ,Sfr:AZ,sfr:LZ,sfrown:MZ,sharp:$Z,SHCHcy:NZ,shchcy:OZ,SHcy:PZ,shcy:RZ,ShortDownArrow:zZ,ShortLeftArrow:IZ,shortmid:DZ,shortparallel:FZ,ShortRightArrow:HZ,ShortUpArrow:BZ,shy:WZ,Sigma:qZ,sigma:jZ,sigmaf:UZ,sigmav:VZ,sim:GZ,simdot:KZ,sime:XZ,simeq:YZ,simg:ZZ,simgE:JZ,siml:QZ,simlE:eJ,simne:tJ,simplus:nJ,simrarr:rJ,slarr:iJ,SmallCircle:oJ,smallsetminus:sJ,smashp:lJ,smeparsl:aJ,smid:cJ,smile:uJ,smt:fJ,smte:dJ,smtes:hJ,SOFTcy:pJ,softcy:gJ,solbar:vJ,solb:mJ,sol:yJ,Sopf:bJ,sopf:wJ,spades:xJ,spadesuit:_J,spar:SJ,sqcap:kJ,sqcaps:TJ,sqcup:CJ,sqcups:EJ,Sqrt:AJ,sqsub:LJ,sqsube:MJ,sqsubset:$J,sqsubseteq:NJ,sqsup:OJ,sqsupe:PJ,sqsupset:RJ,sqsupseteq:zJ,square:IJ,Square:DJ,SquareIntersection:FJ,SquareSubset:HJ,SquareSubsetEqual:BJ,SquareSuperset:WJ,SquareSupersetEqual:qJ,SquareUnion:jJ,squarf:UJ,squ:VJ,squf:GJ,srarr:KJ,Sscr:XJ,sscr:YJ,ssetmn:ZJ,ssmile:JJ,sstarf:QJ,Star:eQ,star:tQ,starf:nQ,straightepsilon:rQ,straightphi:iQ,strns:oQ,sub:sQ,Sub:lQ,subdot:aQ,subE:cQ,sube:uQ,subedot:fQ,submult:dQ,subnE:hQ,subne:pQ,subplus:gQ,subrarr:vQ,subset:mQ,Subset:yQ,subseteq:bQ,subseteqq:wQ,SubsetEqual:xQ,subsetneq:_Q,subsetneqq:SQ,subsim:kQ,subsub:TQ,subsup:CQ,succapprox:EQ,succ:AQ,succcurlyeq:LQ,Succeeds:MQ,SucceedsEqual:$Q,SucceedsSlantEqual:NQ,SucceedsTilde:OQ,succeq:PQ,succnapprox:RQ,succneqq:zQ,succnsim:IQ,succsim:DQ,SuchThat:FQ,sum:HQ,Sum:BQ,sung:WQ,sup1:qQ,sup2:jQ,sup3:UQ,sup:VQ,Sup:GQ,supdot:KQ,supdsub:XQ,supE:YQ,supe:ZQ,supedot:JQ,Superset:QQ,SupersetEqual:eee,suphsol:tee,suphsub:nee,suplarr:ree,supmult:iee,supnE:oee,supne:see,supplus:lee,supset:aee,Supset:cee,supseteq:uee,supseteqq:fee,supsetneq:dee,supsetneqq:hee,supsim:pee,supsub:gee,supsup:vee,swarhk:mee,swarr:yee,swArr:bee,swarrow:wee,swnwar:xee,szlig:_ee,Tab:See,target:kee,Tau:Tee,tau:Cee,tbrk:Eee,Tcaron:Aee,tcaron:Lee,Tcedil:Mee,tcedil:$ee,Tcy:Nee,tcy:Oee,tdot:Pee,telrec:Ree,Tfr:zee,tfr:Iee,there4:Dee,therefore:Fee,Therefore:Hee,Theta:Bee,theta:Wee,thetasym:qee,thetav:jee,thickapprox:Uee,thicksim:Vee,ThickSpace:Gee,ThinSpace:Kee,thinsp:Xee,thkap:Yee,thksim:Zee,THORN:Jee,thorn:Qee,tilde:ete,Tilde:tte,TildeEqual:nte,TildeFullEqual:rte,TildeTilde:ite,timesbar:ote,timesb:ste,times:lte,timesd:ate,tint:cte,toea:ute,topbot:fte,topcir:dte,top:hte,Topf:pte,topf:gte,topfork:vte,tosa:mte,tprime:yte,trade:bte,TRADE:wte,triangle:xte,triangledown:_te,triangleleft:Ste,trianglelefteq:kte,triangleq:Tte,triangleright:Cte,trianglerighteq:Ete,tridot:Ate,trie:Lte,triminus:Mte,TripleDot:$te,triplus:Nte,trisb:Ote,tritime:Pte,trpezium:Rte,Tscr:zte,tscr:Ite,TScy:Dte,tscy:Fte,TSHcy:Hte,tshcy:Bte,Tstrok:Wte,tstrok:qte,twixt:jte,twoheadleftarrow:Ute,twoheadrightarrow:Vte,Uacute:Gte,uacute:Kte,uarr:Xte,Uarr:Yte,uArr:Zte,Uarrocir:Jte,Ubrcy:Qte,ubrcy:ene,Ubreve:tne,ubreve:nne,Ucirc:rne,ucirc:ine,Ucy:one,ucy:sne,udarr:lne,Udblac:ane,udblac:cne,udhar:une,ufisht:fne,Ufr:dne,ufr:hne,Ugrave:pne,ugrave:gne,uHar:vne,uharl:mne,uharr:yne,uhblk:bne,ulcorn:wne,ulcorner:xne,ulcrop:_ne,ultri:Sne,Umacr:kne,umacr:Tne,uml:Cne,UnderBar:Ene,UnderBrace:Ane,UnderBracket:Lne,UnderParenthesis:Mne,Union:$ne,UnionPlus:Nne,Uogon:One,uogon:Pne,Uopf:Rne,uopf:zne,UpArrowBar:Ine,uparrow:Dne,UpArrow:Fne,Uparrow:Hne,UpArrowDownArrow:Bne,updownarrow:Wne,UpDownArrow:qne,Updownarrow:jne,UpEquilibrium:Une,upharpoonleft:Vne,upharpoonright:Gne,uplus:Kne,UpperLeftArrow:Xne,UpperRightArrow:Yne,upsi:Zne,Upsi:Jne,upsih:Qne,Upsilon:ere,upsilon:tre,UpTeeArrow:nre,UpTee:rre,upuparrows:ire,urcorn:ore,urcorner:sre,urcrop:lre,Uring:are,uring:cre,urtri:ure,Uscr:fre,uscr:dre,utdot:hre,Utilde:pre,utilde:gre,utri:vre,utrif:mre,uuarr:yre,Uuml:bre,uuml:wre,uwangle:xre,vangrt:_re,varepsilon:Sre,varkappa:kre,varnothing:Tre,varphi:Cre,varpi:Ere,varpropto:Are,varr:Lre,vArr:Mre,varrho:$re,varsigma:Nre,varsubsetneq:Ore,varsubsetneqq:Pre,varsupsetneq:Rre,varsupsetneqq:zre,vartheta:Ire,vartriangleleft:Dre,vartriangleright:Fre,vBar:Hre,Vbar:Bre,vBarv:Wre,Vcy:qre,vcy:jre,vdash:Ure,vDash:Vre,Vdash:Gre,VDash:Kre,Vdashl:Xre,veebar:Yre,vee:Zre,Vee:Jre,veeeq:Qre,vellip:eie,verbar:tie,Verbar:nie,vert:rie,Vert:iie,VerticalBar:oie,VerticalLine:sie,VerticalSeparator:lie,VerticalTilde:aie,VeryThinSpace:cie,Vfr:uie,vfr:fie,vltri:die,vnsub:hie,vnsup:pie,Vopf:gie,vopf:vie,vprop:mie,vrtri:yie,Vscr:bie,vscr:wie,vsubnE:xie,vsubne:_ie,vsupnE:Sie,vsupne:kie,Vvdash:Tie,vzigzag:Cie,Wcirc:Eie,wcirc:Aie,wedbar:Lie,wedge:Mie,Wedge:$ie,wedgeq:Nie,weierp:Oie,Wfr:Pie,wfr:Rie,Wopf:zie,wopf:Iie,wp:Die,wr:Fie,wreath:Hie,Wscr:Bie,wscr:Wie,xcap:qie,xcirc:jie,xcup:Uie,xdtri:Vie,Xfr:Gie,xfr:Kie,xharr:Xie,xhArr:Yie,Xi:Zie,xi:Jie,xlarr:Qie,xlArr:eoe,xmap:toe,xnis:noe,xodot:roe,Xopf:ioe,xopf:ooe,xoplus:soe,xotime:loe,xrarr:aoe,xrArr:coe,Xscr:uoe,xscr:foe,xsqcup:doe,xuplus:hoe,xutri:poe,xvee:goe,xwedge:voe,Yacute:moe,yacute:yoe,YAcy:boe,yacy:woe,Ycirc:xoe,ycirc:_oe,Ycy:Soe,ycy:koe,yen:Toe,Yfr:Coe,yfr:Eoe,YIcy:Aoe,yicy:Loe,Yopf:Moe,yopf:$oe,Yscr:Noe,yscr:Ooe,YUcy:Poe,yucy:Roe,yuml:zoe,Yuml:Ioe,Zacute:Doe,zacute:Foe,Zcaron:Hoe,zcaron:Boe,Zcy:Woe,zcy:qoe,Zdot:joe,zdot:Uoe,zeetrf:Voe,ZeroWidthSpace:Goe,Zeta:Koe,zeta:Xoe,zfr:Yoe,Zfr:Zoe,ZHcy:Joe,zhcy:Qoe,zigrarr:ese,zopf:tse,Zopf:nse,Zscr:rse,zscr:ise,zwj:ose,zwnj:sse},lse="Á",ase="á",cse="Â",use="â",fse="´",dse="Æ",hse="æ",pse="À",gse="à",vse="&",mse="&",yse="Å",bse="å",wse="Ã",xse="ã",_se="Ä",Sse="ä",kse="¦",Tse="Ç",Cse="ç",Ese="¸",Ase="¢",Lse="©",Mse="©",$se="¤",Nse="°",Ose="÷",Pse="É",Rse="é",zse="Ê",Ise="ê",Dse="È",Fse="è",Hse="Ð",Bse="ð",Wse="Ë",qse="ë",jse="½",Use="¼",Vse="¾",Gse=">",Kse=">",Xse="Í",Yse="í",Zse="Î",Jse="î",Qse="¡",ele="Ì",tle="ì",nle="¿",rle="Ï",ile="ï",ole="«",sle="<",lle="<",ale="¯",cle="µ",ule="·",fle=" ",dle="¬",hle="Ñ",ple="ñ",gle="Ó",vle="ó",mle="Ô",yle="ô",ble="Ò",wle="ò",xle="ª",_le="º",Sle="Ø",kle="ø",Tle="Õ",Cle="õ",Ele="Ö",Ale="ö",Lle="¶",Mle="±",$le="£",Nle='"',Ole='"',Ple="»",Rle="®",zle="®",Ile="§",Dle="",Fle="¹",Hle="²",Ble="³",Wle="ß",qle="Þ",jle="þ",Ule="×",Vle="Ú",Gle="ú",Kle="Û",Xle="û",Yle="Ù",Zle="ù",Jle="¨",Qle="Ü",eae="ü",tae="Ý",nae="ý",rae="¥",iae="ÿ",oae={Aacute:lse,aacute:ase,Acirc:cse,acirc:use,acute:fse,AElig:dse,aelig:hse,Agrave:pse,agrave:gse,amp:vse,AMP:mse,Aring:yse,aring:bse,Atilde:wse,atilde:xse,Auml:_se,auml:Sse,brvbar:kse,Ccedil:Tse,ccedil:Cse,cedil:Ese,cent:Ase,copy:Lse,COPY:Mse,curren:$se,deg:Nse,divide:Ose,Eacute:Pse,eacute:Rse,Ecirc:zse,ecirc:Ise,Egrave:Dse,egrave:Fse,ETH:Hse,eth:Bse,Euml:Wse,euml:qse,frac12:jse,frac14:Use,frac34:Vse,gt:Gse,GT:Kse,Iacute:Xse,iacute:Yse,Icirc:Zse,icirc:Jse,iexcl:Qse,Igrave:ele,igrave:tle,iquest:nle,Iuml:rle,iuml:ile,laquo:ole,lt:sle,LT:lle,macr:ale,micro:cle,middot:ule,nbsp:fle,not:dle,Ntilde:hle,ntilde:ple,Oacute:gle,oacute:vle,Ocirc:mle,ocirc:yle,Ograve:ble,ograve:wle,ordf:xle,ordm:_le,Oslash:Sle,oslash:kle,Otilde:Tle,otilde:Cle,Ouml:Ele,ouml:Ale,para:Lle,plusmn:Mle,pound:$le,quot:Nle,QUOT:Ole,raquo:Ple,reg:Rle,REG:zle,sect:Ile,shy:Dle,sup1:Fle,sup2:Hle,sup3:Ble,szlig:Wle,THORN:qle,thorn:jle,times:Ule,Uacute:Vle,uacute:Gle,Ucirc:Kle,ucirc:Xle,Ugrave:Yle,ugrave:Zle,uml:Jle,Uuml:Qle,uuml:eae,Yacute:tae,yacute:nae,yen:rae,yuml:iae},sae="&",lae="'",aae=">",cae="<",uae='"',$w={amp:sae,apos:lae,gt:aae,lt:cae,quot:uae};var hs={};const fae={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 Gm;function dae(){if(Gm)return hs;Gm=1;var e=hs&&hs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(hs,"__esModule",{value:!0});var t=e(fae),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 hs.default=o,hs}var Km;function Xm(){if(Km)return _r;Km=1;var e=_r&&_r.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(_r,"__esModule",{value:!0}),_r.decodeHTML=_r.decodeHTMLStrict=_r.decodeXML=void 0;var t=e(Mw),r=e(oae),o=e($w),s=e(dae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;_r.decodeXML=f(o.default),_r.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};_r.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 x=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),M=h(t.default);function E(A){return A.substr(-1)!==";"&&(A+=";"),M(A)}return function(A){return String(A).replace(x,E)}})();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 _r}var En={},Ym;function Zm(){if(Ym)return En;Ym=1;var e=En&&En.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(En,"__esModule",{value:!0}),En.escapeUTF8=En.escape=En.encodeNonAsciiHTML=En.encodeHTML=En.encodeXML=void 0;var t=e($w),r=d(t.default),o=h(r);En.encodeXML=A(r);var s=e(Mw),c=d(s.default),f=h(c);En.encodeHTML=b(c,f),En.encodeNonAsciiHTML=A(c);function d(L){return Object.keys(L).sort().reduce(function($,R){return $[L[R]]="&"+R+";",$},{})}function h(L){for(var $=[],R=[],C=0,D=Object.keys(L);C<D.length;C++){var U=D[C];U.length===1?$.push("\\"+U):R.push(U)}$.sort();for(var ie=0;ie<$.length-1;ie++){for(var le=ie;le<$.length-1&&$[le].charCodeAt(1)+1===$[le+1].charCodeAt(1);)le+=1;var ne=1+le-ie;ne<3||$.splice(ie,ne,$[ie]+"-"+$[le])}return R.unshift("["+$.join("")+"]"),new RegExp(R.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(L){return L.codePointAt(0)}:function(L){return(L.charCodeAt(0)-55296)*1024+L.charCodeAt(1)-56320+65536};function m(L){return"&#x"+(L.length>1?v(L):L.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(L,$){return function(R){return R.replace($,function(C){return L[C]}).replace(p,m)}}var x=new RegExp(o.source+"|"+p.source,"g");function M(L){return L.replace(x,m)}En.escape=M;function E(L){return L.replace(o,m)}En.escapeUTF8=E;function A(L){return function($){return $.replace(x,function(R){return L[R]||m(R)})}}return En}var Jm;function hae(){return Jm||(Jm=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=Xm(),r=Zm();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=Zm();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=Xm();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}})})(ad)),ad}var cd,Qm;function pae(){if(Qm)return cd;Qm=1;function e(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}function t(O,P){for(var N=0;N<P.length;N++){var S=P[N];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(O,S.key,S)}}function r(O,P,N){return P&&t(O.prototype,P),O}function o(O,P){var N=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!N){if(Array.isArray(O)||(N=s(O))||P){N&&(O=N);var S=0,F=function(){};return{s:F,n:function(){return S>=O.length?{done:!0}:{done:!1,value:O[S++]}},e:function(Re){throw Re},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V=!0,re=!1,me;return{s:function(){N=N.call(O)},n:function(){var Re=N.next();return V=Re.done,Re},e:function(Re){re=!0,me=Re},f:function(){try{!V&&N.return!=null&&N.return()}finally{if(re)throw me}}}}function s(O,P){if(O){if(typeof O=="string")return c(O,P);var N=Object.prototype.toString.call(O).slice(8,-1);if(N==="Object"&&O.constructor&&(N=O.constructor.name),N==="Map"||N==="Set")return Array.from(O);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return c(O,P)}}function c(O,P){(P==null||P>O.length)&&(P=O.length);for(var N=0,S=new Array(P);N<P;N++)S[N]=O[N];return S}var f=hae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var O={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 A(0,5).forEach(function(P){A(0,5).forEach(function(N){A(0,5).forEach(function(S){return p(P,N,S,O)})})}),A(0,23).forEach(function(P){var N=P+232,S=v(P*10+8);O[N]="#"+S+S+S}),O}function p(O,P,N,S){var F=16+O*36+P*6+N,V=O>0?O*40+55:0,re=P>0?P*40+55:0,me=N>0?N*40+55:0;S[F]=m([V,re,me])}function v(O){for(var P=O.toString(16);P.length<2;)P="0"+P;return P}function m(O){var P=[],N=o(O),S;try{for(N.s();!(S=N.n()).done;){var F=S.value;P.push(v(F))}}catch(V){N.e(V)}finally{N.f()}return"#"+P.join("")}function b(O,P,N,S){var F;return P==="text"?F=R(N,S):P==="display"?F=M(O,N,S):P==="xterm256Foreground"?F=U(O,S.colors[N]):P==="xterm256Background"?F=ie(O,S.colors[N]):P==="rgb"&&(F=x(O,N)),F}function x(O,P){P=P.substring(2).slice(0,-1);var N=+P.substr(0,2),S=P.substring(5).split(";"),F=S.map(function(V){return("0"+Number(V).toString(16)).substr(-2)}).join("");return D(O,(N===38?"color:#":"background-color:#")+F)}function M(O,P,N){P=parseInt(P,10);var S={"-1":function(){return"<br/>"},0:function(){return O.length&&E(O)},1:function(){return C(O,"b")},3:function(){return C(O,"i")},4:function(){return C(O,"u")},8:function(){return D(O,"display:none")},9:function(){return C(O,"strike")},22:function(){return D(O,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return le(O,"i")},24:function(){return le(O,"u")},39:function(){return U(O,N.fg)},49:function(){return ie(O,N.bg)},53:function(){return D(O,"text-decoration:overline")}},F;return S[P]?F=S[P]():4<P&&P<7?F=C(O,"blink"):29<P&&P<38?F=U(O,N.colors[P-30]):39<P&&P<48?F=ie(O,N.colors[P-40]):89<P&&P<98?F=U(O,N.colors[8+(P-90)]):99<P&&P<108&&(F=ie(O,N.colors[8+(P-100)])),F}function E(O){var P=O.slice(0);return O.length=0,P.reverse().map(function(N){return"</"+N+">"}).join("")}function A(O,P){for(var N=[],S=O;S<=P;S++)N.push(S);return N}function L(O){return function(P){return(O===null||P.category!==O)&&O!=="all"}}function $(O){O=parseInt(O,10);var P=null;return O===0?P="all":O===1?P="bold":2<O&&O<5?P="underline":4<O&&O<7?P="blink":O===8?P="hide":O===9?P="strike":29<O&&O<38||O===39||89<O&&O<98?P="foreground-color":(39<O&&O<48||O===49||99<O&&O<108)&&(P="background-color"),P}function R(O,P){return P.escapeXML?f.encodeXML(O):O}function C(O,P,N){return N||(N=""),O.push(P),"<".concat(P).concat(N?' style="'.concat(N,'"'):"",">")}function D(O,P){return C(O,"span",P)}function U(O,P){return C(O,"span","color:"+P)}function ie(O,P){return C(O,"span","background-color:"+P)}function le(O,P){var N;if(O.slice(-1)[0]===P&&(N=O.pop()),N)return"</"+P+">"}function ne(O,P,N){var S=!1,F=3;function V(){return""}function re(j,X){return N("xterm256Foreground",X),""}function me(j,X){return N("xterm256Background",X),""}function Se(j){return P.newline?N("display",-1):N("text",j),""}function Re(j,X){S=!0,X.trim().length===0&&(X="0"),X=X.trimRight(";").split(";");var ue=o(X),he;try{for(ue.s();!(he=ue.n()).done;){var fe=he.value;N("display",fe)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function je(j){return N("text",j),""}function Qe(j){return N("rgb",j),""}var Xe=[{pattern:/^\x08+/,sub:V},{pattern:/^\x1b\[[012]?K/,sub:V},{pattern:/^\x1b\[\(B/,sub:V},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Qe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Re},{pattern:/^\x1b\[\d?J/,sub:V},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:V},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:V},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:je}];function Ye(j,X){X>F&&S||(S=!1,O=O.replace(j.pattern,j.sub))}var te=[],B=O,Z=B.length;e:for(;Z>0;){for(var K=0,ae=0,pe=Xe.length;ae<pe;K=++ae){var z=Xe[K];if(Ye(z,K),O.length!==Z){Z=O.length;continue e}}if(O.length===Z)break;te.push(0),Z=O.length}return te}function G(O,P,N){return P!=="text"&&(O=O.filter(L($(N))),O.push({token:P,data:N,category:$(N)})),O}var J=(function(){function O(P){e(this,O),P=P||{},P.colors&&(P.colors=Object.assign({},d.colors,P.colors)),this.options=Object.assign({},d,P),this.stack=[],this.stickyStack=[]}return r(O,[{key:"toHtml",value:function(N){var S=this;N=typeof N=="string"?[N]:N;var F=this.stack,V=this.options,re=[];return this.stickyStack.forEach(function(me){var Se=b(F,me.token,me.data,V);Se&&re.push(Se)}),ne(N.join(""),V,function(me,Se){var Re=b(F,me,Se,V);Re&&re.push(Re),V.stream&&(S.stickyStack=G(S.stickyStack,me,Se))}),F.length&&re.push(E(F)),re.join("")}}]),O})();return cd=J,cd}var gae=pae();const vae=Ew(gae);function Gl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function mae(e,t){return t&&e.endsWith(t)}async function Yh(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Zh(e){return new vae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function yae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Nw(e){let t=e;if(yae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=cE(t.stack||"",{ignoreStackEntries:[]}),t}function bae(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(Gl(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(Gl(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(Gl(t.stack))}`),r.length>0?r:null}function Ow(e,t){const r=Zh(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>bae(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Ln=Qt();function wae(e,t,r={}){const o=HA.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),_t(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}),Mu(()=>{Ln.value=void 0}),Eh(o)}async function Pw(e){ha({file:e.file.id,line:e.location?.line??0,view:"editor",test:e.id,column:null})}function xae(e,t){ha({file:e,column:t.column-1,line:t.line,view:"editor",test:Ls.value})}function _ae(e,t){if(!t.location)return;const{line:r,column:o,file:s}=t.location;if(e.file.filepath!==s)return Yh(s,r,o);ha({file:e.file.id,column:o-1,line:r,view:"editor",test:Ls.value})}const Hs=Ue(),Ms=Ue(!0),so=Ue(!1),uu=Ue(!0),ys=_e(()=>Bs.value?.coverage),Xd=_e(()=>ys.value?.enabled),bs=_e(()=>Xd.value&&!!ys.value.htmlReporter),$s=Wu("vitest-ui_splitpanes-mainSizes",[33,67]),eo=Wu("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?Jn.value[0]/window.outerWidth*100:33,67]),At=tr({navigation:$s.value[0],details:{size:$s.value[1],browser:eo.value[0],main:eo.value[1]}}),e0=_e(()=>{if(bs.value){const e=ys.value.reportsDirectory.lastIndexOf("/"),t=ys.value.htmlReporter?.subdir;return t?`/${ys.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${ys.value.reportsDirectory.slice(e+1)}/index.html`}});_t(ju,e=>{uu.value=e==="running"},{immediate:!0});function Sae(){const e=oo.value;if(e&&e.length>0){const t=dr(e);t?(Hs.value=t,Ms.value=!1,so.value=!1):UE(()=>ht.state.getFiles(),()=>{Hs.value=dr(e),Ms.value=!1,so.value=!1})}return Ms}function fu(e){Ms.value=e,so.value=!1,e&&(Hs.value=void 0,oo.value="")}function ha({file:e,line:t,view:r,test:o,column:s}){oo.value=e,Tw.value=t,Cw.value=s,an.value=r,Ls.value=o,Hs.value=dr(e),fu(!1)}function kae(e){e.type==="test"?an.value==="editor"?Pw(e):ha({file:e.file.id,line:null,column:null,view:an.value,test:e.id}):ha({file:e.file.id,test:null,line:null,view:an.value,column:null})}function Tae(){so.value=!0,Ms.value=!1,Hs.value=void 0,oo.value=""}function Cae(){At.details.browser=100,At.details.main=0,eo.value=[100,0]}function Rw(){if(Gn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(Jn.value[0]+20)/e*100}return 33}function Eae(){At.details.browser=Rw(),At.details.main=100-At.details.browser,eo.value=[At.details.browser,At.details.main]}function Aae(){At.navigation=33,At.details.size=67,$s.value=[33,67]}function zw(){At.details.main!==0&&(At.details.browser=Rw(),At.details.main=100-At.details.browser,eo.value=[At.details.browser,At.details.main])}const Lae={setCurrentFileId(e){oo.value=e,Hs.value=dr(e),fu(!1)},async setIframeViewport(e,t){Jn.value=[e,t],Gn?.provider==="webdriverio"&&zw(),await new Promise(r=>requestAnimationFrame(r))}},Mae=location.port,$ae=[location.hostname,Mae].filter(Boolean).join(":"),Nae=`${location.protocol==="https:"?"wss:":"ws:"}//${$ae}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,fr=!!window.METADATA_PATH;var er=Uint8Array,ws=Uint16Array,Oae=Int32Array,Iw=new er([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Dw=new er([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Pae=new er([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Fw=function(e,t){for(var r=new ws(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Oae(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}},Hw=Fw(Iw,2),Bw=Hw.b,Rae=Hw.r;Bw[28]=258,Rae[258]=28;var zae=Fw(Dw,0),Iae=zae.b,Yd=new ws(32768);for(var Lt=0;Lt<32768;++Lt){var Fi=(Lt&43690)>>1|(Lt&21845)<<1;Fi=(Fi&52428)>>2|(Fi&13107)<<2,Fi=(Fi&61680)>>4|(Fi&3855)<<4,Yd[Lt]=((Fi&65280)>>8|(Fi&255)<<8)>>1}var Kl=(function(e,t,r){for(var o=e.length,s=0,c=new ws(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ws(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ws(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Yd[m]>>h]=p}else for(d=new ws(o),s=0;s<o;++s)e[s]&&(d[s]=Yd[f[e[s]-1]++]>>15-e[s]);return d}),Na=new er(288);for(var Lt=0;Lt<144;++Lt)Na[Lt]=8;for(var Lt=144;Lt<256;++Lt)Na[Lt]=9;for(var Lt=256;Lt<280;++Lt)Na[Lt]=7;for(var Lt=280;Lt<288;++Lt)Na[Lt]=8;var Ww=new er(32);for(var Lt=0;Lt<32;++Lt)Ww[Lt]=5;var Dae=Kl(Na,9,1),Fae=Kl(Ww,5,1),ud=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Sr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},fd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Hae=function(e){return(e+7)/8|0},qw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new er(e.subarray(t,r))},Bae=["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||Bae[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 er(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new er(s*3));var p=function(pe){var z=r.length;if(pe>z){var j=new er(Math.max(z*2,pe));j.set(r),r=j}},v=t.f||0,m=t.p||0,b=t.b||0,x=t.l,M=t.d,E=t.m,A=t.n,L=s*8;do{if(!x){v=Sr(e,m,1);var $=Sr(e,m+1,3);if(m+=3,$)if($==1)x=Dae,M=Fae,E=9,A=5;else if($==2){var U=Sr(e,m,31)+257,ie=Sr(e,m+10,15)+4,le=U+Sr(e,m+5,31)+1;m+=14;for(var ne=new er(le),G=new er(19),J=0;J<ie;++J)G[Pae[J]]=Sr(e,m+J*3,7);m+=ie*3;for(var O=ud(G),P=(1<<O)-1,N=Kl(G,O,1),J=0;J<le;){var S=N[Sr(e,m,P)];m+=S&15;var R=S>>4;if(R<16)ne[J++]=R;else{var F=0,V=0;for(R==16?(V=3+Sr(e,m,3),m+=2,F=ne[J-1]):R==17?(V=3+Sr(e,m,7),m+=3):R==18&&(V=11+Sr(e,m,127),m+=7);V--;)ne[J++]=F}}var re=ne.subarray(0,U),me=ne.subarray(U);E=ud(re),A=ud(me),x=Kl(re,E,1),M=Kl(me,A,1)}else Bn(1);else{var R=Hae(m)+4,C=e[R-4]|e[R-3]<<8,D=R+C;if(D>s){h&&Bn(0);break}d&&p(b+C),r.set(e.subarray(R,D),b),t.b=b+=C,t.p=m=D*8,t.f=v;continue}if(m>L){h&&Bn(0);break}}d&&p(b+131072);for(var Se=(1<<E)-1,Re=(1<<A)-1,je=m;;je=m){var F=x[fd(e,m)&Se],Qe=F>>4;if(m+=F&15,m>L){h&&Bn(0);break}if(F||Bn(2),Qe<256)r[b++]=Qe;else if(Qe==256){je=m,x=null;break}else{var Xe=Qe-254;if(Qe>264){var J=Qe-257,Ye=Iw[J];Xe=Sr(e,m,(1<<Ye)-1)+Bw[J],m+=Ye}var te=M[fd(e,m)&Re],B=te>>4;te||Bn(3),m+=te&15;var me=Iae[B];if(B>3){var Ye=Dw[B];me+=fd(e,m)&(1<<Ye)-1,m+=Ye}if(m>L){h&&Bn(0);break}d&&p(b+131072);var Z=b+Xe;if(b<me){var K=c-me,ae=Math.min(me,Z);for(K+b<0&&Bn(3);b<ae;++b)r[b]=o[K+b]}for(;b<Z;++b)r[b]=r[b-me]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=E,t.d=M,t.n=A)}while(!v);return b!=r.length&&f?qw(r,0,b):r.subarray(0,b)},Wae=new er(0),qae=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)},jae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Uae=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 Vae(e,t){return Jh(e,{i:2},t,t)}function Gae(e,t){var r=qae(e);return r+8>e.length&&Bn(6,"invalid gzip data"),Jh(e.subarray(r,-8),{i:2},new er(jae(e)),t)}function Kae(e,t){return Jh(e.subarray(Uae(e),-4),{i:2},t,t)}function Xae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Gae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Vae(e,t):Kae(e,t)}var Zd=typeof TextDecoder<"u"&&new TextDecoder,Yae=0;try{Zd.decode(Wae,{stream:!0}),Yae=1}catch{}var Zae=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:qw(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(Zd)return Zd.decode(e);var o=Zae(e),s=o.s,r=o.r;return r.length&&Bn(8),s}const dd=()=>{},pn=()=>Promise.resolve();function Qae(){const e=tr({state:new ew,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=tr(e.state.filesMap),e.state.idMap=tr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:pn,onDone:dd,onTaskUpdate:dd,writeFile:pn,rerun:pn,rerunTask:pn,updateSnapshot:pn,resolveSnapshotPath:pn,snapshotSaved:pn,onAfterSuiteRun:pn,onCancel:pn,getCountOfFailedTests:()=>0,sendLog:pn,resolveSnapshotRawPath:pn,readSnapshotFile:pn,saveSnapshotFile:pn,readTestFile:async d=>t.sources[d],removeSnapshotFile:pn,onUnhandledError:dd,saveTestFile:pn,getProvidedContext:()=>({}),getTestFiles:pn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=d.headers.get("content-type")?.toLowerCase()||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await d.arrayBuffer()),m=Jae(Xae(v));t=qd(m)}else t=qd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ht=(function(){return fr?Qae():zE(Nae,{reactive:(t,r)=>r==="state"?tr(t):Qt(t),handlers:{onTestAnnotate(t,r){Ae.annotateTest(t,r)},onTaskUpdate(t,r){Ae.resumeRun(t,r),ju.value="running"},onFinished(t,r){Ae.endRun(),Ui.value=(r||[]).map(Nw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),Bs=Qt({}),$o=Ue("CONNECTING"),Wt=_e(()=>{const e=oo.value;return e?dr(e):void 0}),jw=_e(()=>qh(Wt.value).map(e=>e?.logs||[]).flat()||[]);function dr(e){const t=ht.state.idMap.get(e);return t||void 0}const ece=_e(()=>$o.value==="OPEN"),hd=_e(()=>$o.value==="CONNECTING");_e(()=>$o.value==="CLOSED");function tce(){return Qh(ht.state.getFiles())}function Uw(e){delete e.result;const t=Ae.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,La(e)))for(const r of e.tasks)Uw(r)}function nce(e){const t=Ae.nodes;e.forEach(r=>{delete r.result,qh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,On(o)&&(o.collectDuration=void 0))})}function Qh(e){return nce(e),Ae.startRun(),ht.rpc.rerun(e.map(t=>t.filepath),!0)}function rce(e){return Uw(e),Ae.startRun(),ht.rpc.rerunTask(e.id)}const Gn=window.__vitest_browser_runner__;window.__vitest_ui_api__=Lae;_t(()=>ht.ws,e=>{$o.value=fr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{$o.value="OPEN",ht.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ht.rpc.getFiles(),ht.rpc.getConfig(),ht.rpc.getUnhandledErrors(),ht.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ht.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Vb(h,d,f);return p.mode="skip",p})),Ae.loadFiles(t,s),ht.state.collectFiles(t),Ae.startRun(),Ui.value=(o||[]).map(Nw),Bs.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{$o.value==="CONNECTING"&&($o.value="CLOSED")},1e3)})},{immediate:!0});const ice={"text-2xl":""},oce={"text-lg":"",op50:""},sce=at({__name:"ConnectionOverlay",setup(e){return(t,r)=>H(ece)?qe("",!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)=>H(ht).reconnect&&H(ht).reconnect(...o))},[Q("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(H(hd)?"animate-pulse":"")},[Q("div",{text:"5xl",class:ot(H(hd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Q("div",ice,ze(H(hd)?"Connecting...":"Disconnected"),1),Q("div",oce," Check your terminal or start a new server with `"+ze(H(Gn)?`vitest --browser=${H(Gn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),lce=["aria-label","opacity","disabled","hover"],Zr=at({__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:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[bn(t.$slots,"default",{},()=>[Q("span",{class:ot(t.icon),ma:"",block:""},null,2)])],10,lce))}}),ace={h:"full",flex:"~ col"},cce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},uce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},fce={class:"pointer-events-none","text-sm":""},dce={key:0},hce={id:"tester-container",relative:""},pce=["data-scale"],t0=20,gce=100,vce=at({__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 Jn.value[0]===v[0]&&Jn.value[1]===v[1]}const{width:o,height:s}=hw();async function c(p){Jn.value=t[p],Gn?.provider==="webdriverio"&&zw()}const f=_e(()=>{if(Gn?.provider==="webdriverio"){const[x,M]=Jn.value;return{width:x,height:M}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-t0,b=s.value-gce;return{width:m,height:b}}),d=_e(()=>{if(Gn?.provider==="webdriverio")return 1;const[p,v]=Jn.value,{width:m,height:b}=f.value,x=m>p?1:m/p,M=b>v?1:b/v;return Math.min(1,x,M)}),h=_e(()=>{const p=f.value.width,v=Jn.value[0];return`${Math.trunc((p+t0-v)/2)}px`});return(p,v)=>{const m=Zr,b=Pr("tooltip");return oe(),ye("div",ace,[Q("div",cce,[ct(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=x=>H(Aae)())},null,512),[[Ki,H(At).navigation<=15],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=Q("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Oe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=x=>H(Cae)())},null,512),[[Ki,H(At).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Oe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=x=>H(Eae)())},null,512),[[Ki,H(At).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Q("div",uce,[ct(Oe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=x=>c("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),ct(Oe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=x=>c("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),ct(Oe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=x=>c("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Q("span",fce,[dt(ze(H(Jn)[0])+"x"+ze(H(Jn)[1])+"px ",1),H(d)<1?(oe(),ye("span",dce,"("+ze((H(d)*100).toFixed(0))+"%)",1)):qe("",!0)])]),Q("div",hce,[Q("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":H(d),style:Jt({"--viewport-width":`${H(Jn)[0]}px`,"--viewport-height":`${H(Jn)[1]}px`,"--tester-transform":`scale(${H(d)})`,"--tester-margin-left":H(h)})}," Select a test to run ",12,pce)])])}}}),mce=Yr(vce,[["__scopeId","data-v-9fd23e63"]]),ep=at({__name:"Modal",props:ta({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nu(e,"modelValue"),r=_e(()=>{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=_e(()=>{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:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Q("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Q("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[H(r)]]),style:Jt(t.value?{}:{transform:H(o)})},[bn(c.$slots,"default")],6)],2))}}),yce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},bce={"p-4":"",relative:"",border:"base b"},wce={op50:"","font-mono":"","text-sm":""},xce={op50:"","font-mono":"","text-sm":""},_ce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Sce=["src","alt"],kce={key:1},Tce=at({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return aw("Escape",()=>{r("close")}),(o,s)=>{const c=Zr;return oe(),ye("div",yce,[Q("div",bce,[s[1]||(s[1]=Q("p",null,"Screenshot error",-1)),Q("p",wce,ze(o.file),1),Q("p",xce,ze(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"))})]),Q("div",_ce,[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,Sce)):(oe(),ye("div",kce," Something was wrong, the image cannot be resolved. "))])])}}}),Vw=Yr(Tce,[["__scopeId","data-v-93900314"]]),Gw={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Gw);var lr=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},gs,Pl,Lo;class Cce{constructor(...t){gs.set(this,new Map),Pl.set(this,new Map),Lo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),lr(this,Lo,"f").has(o)||lr(this,Lo,"f").set(o,new Set);const c=lr(this,Lo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&lr(this,Pl,"f").set(o,d),f=!1,h)continue;const p=lr(this,gs,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);lr(this,gs,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:lr(this,gs,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&lr(this,Pl,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:lr(this,Lo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of lr(this,Lo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:lr(this,gs,"f"),extensions:lr(this,Pl,"f")}}}gs=new WeakMap,Pl=new WeakMap,Lo=new WeakMap;const Ece=new Cce(Gw)._freeze();function du(e){if(fr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Kw(e,t){const r=t?Ece.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function Ace(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const Lce=["href","referrerPolicy"],Mce=["src"],$ce=at({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=_e(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:du(o)});return(o,s)=>o.annotation.attachment&&o.annotation.attachment.contentType?.startsWith("image/")?(oe(),ye("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:H(r),referrerPolicy:H(Ace)(o.annotation.attachment)?"no-referrer":void 0},[Q("img",{src:H(r)},null,8,Mce)],8,Lce)):qe("",!0)}}),Ks=oA(),Nce=qE(Ks),Oce={class:"scrolls scrolls-rounded task-error"},Pce=["onClickPassive"],Rce=["innerHTML"],zce=at({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=_e(()=>Zh(Ks.value)),s=_e(()=>!!t.error?.diff),c=_e(()=>t.error.diff?o.value.toHtml(Gl(t.error.diff)):void 0);function f(d){return mae(d.file,t.filename)?xae(t.fileId,d):Yh(d.file,d.line,d.column)}return(d,h)=>{const p=Pr("tooltip");return oe(),ye("div",Oce,[Q("pre",null,[Q("b",null,ze(d.error.name),1),dt(": "+ze(d.error.message),1)]),(oe(!0),ye(nt,null,ur(d.error.stacks,(v,m)=>(oe(),ye("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Q("pre",null," - "+ze(r(v.file))+":"+ze(v.line)+":"+ze(v.column),1),ct(Q("div",{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:b=>f(v)},null,40,Pce),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),H(s)?(oe(),ye("pre",{key:0,"data-testid":"diff",innerHTML:H(c)},null,8,Rce)):qe("",!0)])}}}),Xw=Yr(zce,[["__scopeId","data-v-e0212169"]]);function Yw(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function Zw(){const e=Ue(!1),t=Ue(Date.now()),r=Ue(),o=_e(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Ice={"h-full":"",class:"scrolls"},Dce={key:0},Fce={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},Hce={flex:"~ gap-2 items-center"},Bce={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Wce=["innerHTML"],qce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},jce={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Uce={class:"flex gap-2","overflow-hidden":""},Vce={class:"font-bold","ws-nowrap":"",truncate:""},Gce=["href","download"],Kce=["onClick"],Xce={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Yce={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Zce={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},Jce={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Qce={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},eue=at({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=_e(()=>!t.test.result||!t.test.result.errors?.length?null:Ow(Ks.value,[t.test])[0]);function o(m){return _ae(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Zw();function h(m){return`${Ub(Bs.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=_e(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{const x=Zr,M=Xw,E=$ce,A=Vw,L=ep,$=Pr("tooltip");return oe(),ye("div",Ice,[H(r)?(oe(),ye("div",Dce,[Q("div",Fce,[Q("div",Hce,[H(Gn)&&m.test.meta?.failScreenshotPath?(oe(),ye(nt,{key:0},[ct(Oe(x,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=R=>H(f)(m.test))},null,512),[[$,"View screenshot error",void 0,{bottom:!0}]]),ct(Oe(x,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=R=>H(Yw)(m.test))},null,512),[[$,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),m.test.result?.htmlError?(oe(),ye("div",Bce,[Q("pre",{innerHTML:m.test.result.htmlError},null,8,Wce)])):m.test.result?.errors?(oe(!0),ye(nt,{key:1},ur(m.test.result.errors,(R,C)=>(oe(),Je(M,{key:C,"file-id":m.test.file.id,error:R,filename:m.test.file.name,root:H(Bs).root},null,8,["file-id","error","filename","root"]))),128)):qe("",!0)])])):(oe(),ye("div",qce," All tests passed in this file ")),m.test.annotations.length?(oe(),ye(nt,{key:2},[b[5]||(b[5]=Q("h1",{"m-2":""}," Test Annotations ",-1)),(oe(!0),ye(nt,null,ur(m.test.annotations,R=>(oe(),ye("div",{key:R.type+R.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Q("div",jce,[Q("div",Uce,[Q("span",Vce,ze(R.type),1),R.attachment&&!R.attachment.contentType?.startsWith("image/")?(oe(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:H(du)(R.attachment),download:H(Kw)(R.message,R.attachment.contentType)},[...b[4]||(b[4]=[Q("span",{class:"i-carbon:download block"},null,-1),dt(" Download ",-1)])],8,Gce)):qe("",!0)]),Q("div",null,[R.location&&R.location.file===m.test.file.filepath?ct((oe(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:C=>o(R)},[dt(ze(h(R.location)),1)],8,Kce)),[[$,"Open in Editor",void 0,{bottom:!0}]]):R.location&&R.location.file!==m.test.file.filepath?(oe(),ye("span",Xce,ze(h(R.location)),1)):qe("",!0)])]),Q("div",Yce,ze(R.message),1),Oe(E,{annotation:R},null,8,["annotation"])]))),128))],64)):qe("",!0),H(v).length?(oe(),ye(nt,{key:3},[b[6]||(b[6]=Q("h1",{"m-2":""}," Test Meta ",-1)),Q("div",Zce,[(oe(!0),ye(nt,null,ur(H(v),([R,C])=>(oe(),ye(nt,{key:R},[Q("div",Jce,ze(R),1),Q("pre",Qce,ze(C),1)],64))),128))])],64)):qe("",!0),H(Gn)?(oe(),Je(L,{key:4,modelValue:H(c),"onUpdate:modelValue":b[3]||(b[3]=R=>kt(c)?c.value=R:null),direction:"right"},{default:it(()=>[H(s)?(oe(),Je(Rh,{key:0},{default:it(()=>[Oe(A,{file:H(s).file.filepath,name:H(s).name,url:H(d),onClose:b[2]||(b[2]=R=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),tue=Yr(eue,[["__scopeId","data-v-efadcc09"]]),nue={"h-full":"",class:"scrolls"},rue=["id"],iue={flex:"~ gap-2 items-center"},oue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},sue=["innerHTML"],lue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},aue=at({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>r(v,p+1))]}const o=_e(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],v=h.result;if(v?.errors?.[0]){const b={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(b)}return p.length>0?Ow(Ks.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Zw();return(h,p)=>{const v=Zr,m=Xw,b=Vw,x=ep,M=Pr("tooltip");return oe(),ye("div",nue,[H(o).length?(oe(!0),ye(nt,{key:0},ur(H(o),E=>(oe(),ye("div",{id:E.id,key:E.id},[Q("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Jt({"margin-left":`${E.result?.htmlError?.5:2*E.level+.5}rem`})},[Q("div",iue,[Q("span",null,ze(E.name),1),H(Gn)&&E.meta?.failScreenshotPath?(oe(),ye(nt,{key:0},[ct(Oe(v,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:A=>H(f)(E)},null,8,["onClick"]),[[M,"View screenshot error",void 0,{bottom:!0}]]),ct(Oe(v,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:A=>H(Yw)(E)},null,8,["onClick"]),[[M,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),E.result?.htmlError?(oe(),ye("div",oue,[Q("pre",{innerHTML:E.result.htmlError},null,8,sue)])):E.result?.errors?(oe(!0),ye(nt,{key:1},ur(E.result.errors,(A,L)=>(oe(),Je(m,{key:L,error:A,filename:h.file.name,root:H(Bs).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):qe("",!0)],4)],8,rue))),128)):(oe(),ye("div",lue," All tests passed in this file ")),H(Gn)?(oe(),Je(x,{key:2,modelValue:H(c),"onUpdate:modelValue":p[1]||(p[1]=E=>kt(c)?c.value=E:null),direction:"right"},{default:it(()=>[H(s)?(oe(),Je(Rh,{key:0},{default:it(()=>[Oe(b,{file:H(s).file.filepath,name:H(s).name,url:H(d),onClose:p[0]||(p[0]=E=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),cue=Yr(aue,[["__scopeId","data-v-d1b5950e"]]),uue={border:"b base","p-4":""},fue=["innerHTML"],due=at({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),ye("div",uue,[Q("div",{"text-xs":"","mb-1":"",class:ot(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},ze(t(r.time))+" | "+ze(r.taskName)+" | "+ze(r.type),3),Q("pre",{"data-type":"html",innerHTML:r.content},null,8,fue)]))}}),hue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},pue={key:1,p6:""},gue=at({__name:"ViewConsoleOutput",setup(e){const t=_e(()=>{const o=jw.value;if(o){const s=Zh(Ks.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Gl(h))}))}});function r(o){const s=o&&ht.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?_E(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{const c=due;return H(t)?.length?(oe(),ye("div",hue,[(oe(!0),ye(nt,null,ur(H(t),({taskId:f,type:d,time:h,content:p})=>(oe(),ye("div",{key:f,"font-mono":""},[Oe(c,{"task-name":r(f),type:d,time:h,content:p},null,8,["task-name","type","time","content"])]))),128))])):(oe(),ye("div",pue,[...s[0]||(s[0]=[dt(" Log something in your test and it would print here. (e.g. ",-1),Q("pre",{inline:""},"console.log(foo)",-1),dt(") ",-1)])]))}}}),Jw=at({__name:"CodeMirrorContainer",props:ta({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ta(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Nu(e,"modelValue"),s=ck(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ue();return ao(async()=>{const d=wae(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(),Ln.value=d,setTimeout(()=>Ln.value.refresh(),100)}),(d,h)=>(oe(),ye("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[Q("textarea",{ref_key:"el",ref:f},null,512)],2))}}),vue=at({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=Qt(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();_t(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ht.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(ne){console.error("cannot fetch file",ne)}await Et(),d.value=!1}},{immediate:!0}),_t(()=>[d.value,h.value,r.file,Tw.value,Cw.value],([ne,G,J,O,P])=>{!ne&&!G&&(O!=null?Et(()=>{const N=p.value,S=N??{line:(O??1)-1,ch:P??0};N?p.value=void 0:(Ln.value?.scrollIntoView(S,100),Et(()=>{Ln.value?.focus(),Ln.value?.setCursor(S)}))}):Et(()=>{Ln.value?.focus()}))},{flush:"post"});const v=_e(()=>r.file?.filepath?.split(/\./g).pop()||"js"),m=Ue(),b=_e(()=>{const ne=[];function G(J){J.result?.errors&&ne.push(...J.result.errors),J.type==="suite"&&J.tasks.forEach(G)}return r.file?.tasks.forEach(G),ne}),x=_e(()=>{const ne=[];function G(J){J.type==="test"&&ne.push(...J.annotations),J.type==="suite"&&J.tasks.forEach(G)}return r.file?.tasks.forEach(G),ne}),M=[],E=[],A=[],L=Ue(!1);function $(){A.forEach(([ne,G,J])=>{ne.removeEventListener("click",G),J()}),A.length=0}dw(m,()=>{Ln.value?.refresh()});function R(){f.value=c.value!==Ln.value.getValue()}_t(f,ne=>{o("draft",ne)},{immediate:!0});function C(ne){const J=(ne?.stacks||[]).filter(F=>F.file&&F.file===r.file?.filepath)?.[0];if(!J)return;const O=document.createElement("div");O.className="op80 flex gap-x-2 items-center";const P=document.createElement("pre");P.className="c-red-600 dark:c-red-400",P.textContent=`${" ".repeat(J.column)}^ ${ne.name}: ${ne?.message||""}`,O.appendChild(P);const N=document.createElement("span");N.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",N.tabIndex=0,N.ariaLabel="Open in Editor",Ib(N,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Yh(J.file,J.line,J.column)};N.addEventListener("click",S),O.appendChild(N),A.push([N,S,()=>Bh(N)]),E.push(Ln.value.addLineClass(J.line-1,"wrap","bg-red-500/10")),M.push(Ln.value.addLineWidget(J.line-1,O))}function D(ne){if(!ne.location)return;const{line:G,file:J}=ne.location;if(J!==r.file?.filepath)return;const O=document.createElement("div");O.classList.add("wrap","bg-active","py-3","px-6","my-1"),O.role="note";const P=document.createElement("div");P.classList.add("block","text-black","dark:text-white");const N=document.createElement("span");N.textContent=`${ne.type}: `,N.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=ne.message.replace(/[^\r]\n/,`\r
|
|
45
|
+
`),P.append(N,S),O.append(P);const F=ne.attachment;if(F?.path||F?.body)if(F.contentType?.startsWith("image/")){const V=document.createElement("a"),re=document.createElement("img");V.classList.add("inline-block","mt-3"),V.style.maxWidth="50vw";const me=F.path||F.body;typeof me=="string"&&(me.startsWith("http://")||me.startsWith("https://"))?(re.setAttribute("src",me),V.referrerPolicy="no-referrer"):re.setAttribute("src",du(F)),V.target="_blank",V.href=re.src,V.append(re),O.append(V)}else{const V=document.createElement("a");V.href=du(F),V.download=Kw(ne.message,F.contentType),V.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const re=document.createElement("div");re.classList.add("i-carbon:download","block");const me=document.createElement("span");me.textContent="Download",V.append(re,me),O.append(V)}M.push(Ln.value.addLineWidget(G-1,O))}const{pause:U,resume:ie}=_t([Ln,b,x,ms],([ne,G,J,O])=>{if(!ne){M.length=0,E.length=0,$();return}O&&(ne.off("changes",R),$(),M.forEach(P=>P.clear()),E.forEach(P=>ne?.removeLineClass(P,"wrap")),M.length=0,E.length=0,setTimeout(()=>{G.forEach(C),J.forEach(D),L.value||ne.clearHistory(),ne.on("changes",R)},100))},{flush:"post"});Vh(()=>[ms.value,h.value,p.value],([ne,G],J)=>{ne&&!G&&J&&J[2]&&Ln.value?.setCursor(J[2])},{debounce:100,flush:"post"});async function le(ne){if(h.value)return;U(),h.value=!0,await Et();const G=Ln.value;G&&(G.setOption("readOnly",!0),await Et(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",R),$(),M.forEach(J=>J.clear()),E.forEach(J=>G?.removeLineClass(J,"wrap")),M.length=0,E.length=0;try{L.value=!0,await ht.rpc.saveTestFile(r.file.filepath,ne),c.value=ne,f.value=!1}catch(J){console.error("error saving file",J)}L.value||G?.clearHistory();try{await Mm(ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Mm(ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(C),x.value.forEach(D),G?.on("changes",R),h.value=!1,await Et(),G&&(G.setOption("readOnly",!1),await Et(),G.refresh()),ie()}return Ta($),(ne,G)=>{const J=Jw;return oe(),Je(J,mi({ref_key:"editor",ref:m,modelValue:H(s),"onUpdate:modelValue":G[0]||(G[0]=O=>kt(s)?s.value=O:null),"h-full":""},{lineNumbers:!0,readOnly:H(fr),saving:H(h)},{mode:H(v),"data-testid":"code-mirror",onSave:le}),null,16,["modelValue","mode"])}}}),mue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},yue={"p-4":"",relative:""},bue={op50:"","font-mono":"","text-sm":""},wue={key:0,"p-5":""},xue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},_ue={key:0},Sue={p:"x3 y-1","bg-overlay":"",border:"base b t"},kue=at({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=VE(()=>ht.rpc.getTransformResult(r.projectName,r.id,!!Gn)),c=_e(()=>r.id?.split(/\./g).pop()||"js"),f=_e(()=>s.value?.source?.trim()||""),d=_e(()=>s.value?.code?.replace(/\/\/# sourceMappingURL=.*\n/,"").trim()||""),h=_e(()=>({mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}));return aw("Escape",()=>{o("close")}),(p,v)=>{const m=Zr,b=Jw;return oe(),ye("div",mue,[Q("div",yue,[v[1]||(v[1]=Q("p",null,"Module Info",-1)),Q("p",bue,ze(p.id),1),Oe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),H(s)?(oe(),ye(nt,{key:1},[Q("div",xue,[v[2]||(v[2]=Q("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=Q("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,mi({"h-full":"","model-value":H(f),"read-only":""},{lineNumbers:!0},{mode:H(c)}),null,16,["model-value","mode"]),Oe(b,mi({"h-full":"","model-value":H(d),"read-only":""},{lineNumbers:!0},{mode:H(c)}),null,16,["model-value","mode"])]),H(h).mappings!==""?(oe(),ye("div",_ue,[Q("div",Sue," Source map (v"+ze(H(h).version)+") ",1),Oe(b,mi({"model-value":H(h).mappings,"read-only":""},{lineNumbers:!0},{mode:H(c)}),null,16,["model-value","mode"])])):qe("",!0)],64)):(oe(),ye("div",wue," No transform result found for this module. "))])}}});function Tue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Jd="http://www.w3.org/1999/xhtml";const n0={svg:"http://www.w3.org/2000/svg",xhtml:Jd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Uu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),n0.hasOwnProperty(t)?{space:n0[t],local:e}:e}function Cue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Jd&&t.documentElement.namespaceURI===Jd?t.createElement(e):t.createElementNS(r,e)}}function Eue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Qw(e){var t=Uu(e);return(t.local?Eue:Cue)(t)}function Aue(){}function tp(e){return e==null?Aue:function(){return this.querySelector(e)}}function Lue(e){typeof e!="function"&&(e=tp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new rr(o,this._parents)}function Mue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function $ue(){return[]}function ex(e){return e==null?$ue:function(){return this.querySelectorAll(e)}}function Nue(e){return function(){return Mue(e.apply(this,arguments))}}function Oue(e){typeof e=="function"?e=Nue(e):e=ex(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new rr(o,s)}function tx(e){return function(){return this.matches(e)}}function nx(e){return function(t){return t.matches(e)}}var Pue=Array.prototype.find;function Rue(e){return function(){return Pue.call(this.children,e)}}function zue(){return this.firstElementChild}function Iue(e){return this.select(e==null?zue:Rue(typeof e=="function"?e:nx(e)))}var Due=Array.prototype.filter;function Fue(){return Array.from(this.children)}function Hue(e){return function(){return Due.call(this.children,e)}}function Bue(e){return this.selectAll(e==null?Fue:Hue(typeof e=="function"?e:nx(e)))}function Wue(e){typeof e!="function"&&(e=tx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new rr(o,this._parents)}function rx(e){return new Array(e.length)}function que(){return new rr(this._enter||this._groups.map(rx),this._parents)}function hu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}hu.prototype={constructor:hu,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 jue(e){return function(){return e}}function Uue(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 hu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Vue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<m;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new hu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Gue(e){return e.__data__}function Kue(e,t){if(!arguments.length)return Array.from(this,Gue);var r=t?Vue:Uue,o=this._parents,s=this._groups;typeof e!="function"&&(e=jue(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,x=Xue(e.call(v,v&&v.__data__,p,o)),M=x.length,E=d[p]=new Array(M),A=f[p]=new Array(M),L=h[p]=new Array(b);r(v,m,E,A,L,x,t);for(var $=0,R=0,C,D;$<M;++$)if(C=E[$]){for($>=R&&(R=$+1);!(D=A[R])&&++R<M;);C._next=D||null}}return f=new rr(f,o),f._enter=d,f._exit=h,f}function Xue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Yue(){return new rr(this._exit||this._groups.map(rx),this._parents)}function Zue(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 Jue(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),x,M=0;M<m;++M)(x=p[M]||v[M])&&(b[M]=x);for(;h<s;++h)d[h]=r[h];return new rr(d,this._parents)}function Que(){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 efe(e){e||(e=tfe);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new rr(s,this._parents).order()}function tfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function nfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function rfe(){return Array.from(this)}function ife(){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 ofe(){let e=0;for(const t of this)++e;return e}function sfe(){return!this.node()}function lfe(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 afe(e){return function(){this.removeAttribute(e)}}function cfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ufe(e,t){return function(){this.setAttribute(e,t)}}function ffe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function dfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function hfe(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 pfe(e,t){var r=Uu(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?cfe:afe:typeof t=="function"?r.local?hfe:dfe:r.local?ffe:ufe)(r,t))}function ix(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function gfe(e){return function(){this.style.removeProperty(e)}}function vfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function mfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function yfe(e,t,r){return arguments.length>1?this.each((t==null?gfe:typeof t=="function"?mfe:vfe)(e,t,r??"")):Ws(this.node(),e)}function Ws(e,t){return e.style.getPropertyValue(t)||ix(e).getComputedStyle(e,null).getPropertyValue(t)}function bfe(e){return function(){delete this[e]}}function wfe(e,t){return function(){this[e]=t}}function xfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _fe(e,t){return arguments.length>1?this.each((t==null?bfe:typeof t=="function"?xfe:wfe)(e,t)):this.node()[e]}function ox(e){return e.trim().split(/^|\s+/)}function np(e){return e.classList||new sx(e)}function sx(e){this._node=e,this._names=ox(e.getAttribute("class")||"")}sx.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 lx(e,t){for(var r=np(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function ax(e,t){for(var r=np(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Sfe(e){return function(){lx(this,e)}}function kfe(e){return function(){ax(this,e)}}function Tfe(e,t){return function(){(t.apply(this,arguments)?lx:ax)(this,e)}}function Cfe(e,t){var r=ox(e+"");if(arguments.length<2){for(var o=np(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Tfe:t?Sfe:kfe)(r,t))}function Efe(){this.textContent=""}function Afe(e){return function(){this.textContent=e}}function Lfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Mfe(e){return arguments.length?this.each(e==null?Efe:(typeof e=="function"?Lfe:Afe)(e)):this.node().textContent}function $fe(){this.innerHTML=""}function Nfe(e){return function(){this.innerHTML=e}}function Ofe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Pfe(e){return arguments.length?this.each(e==null?$fe:(typeof e=="function"?Ofe:Nfe)(e)):this.node().innerHTML}function Rfe(){this.nextSibling&&this.parentNode.appendChild(this)}function zfe(){return this.each(Rfe)}function Ife(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Dfe(){return this.each(Ife)}function Ffe(e){var t=typeof e=="function"?e:Qw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Hfe(){return null}function Bfe(e,t){var r=typeof e=="function"?e:Qw(e),o=t==null?Hfe:typeof t=="function"?t:tp(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 qfe(){return this.each(Wfe)}function jfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ufe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vfe(e){return this.select(e?Ufe:jfe)}function Gfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Kfe(e){return function(t){e.call(this,t,this.__data__)}}function Xfe(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 Yfe(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 Zfe(e,t,r){return function(){var o=this.__on,s,c=Kfe(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 Jfe(e,t,r){var o=Xfe(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?Zfe:Yfe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function cx(e,t,r){var o=ix(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 Qfe(e,t){return function(){return cx(this,e,t)}}function ede(e,t){return function(){return cx(this,e,t.apply(this,arguments))}}function tde(e,t){return this.each((typeof t=="function"?ede:Qfe)(e,t))}function*nde(){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 ux=[null];function rr(e,t){this._groups=e,this._parents=t}function Oa(){return new rr([[document.documentElement]],ux)}function rde(){return this}rr.prototype=Oa.prototype={constructor:rr,select:Lue,selectAll:Oue,selectChild:Iue,selectChildren:Bue,filter:Wue,data:Kue,enter:que,exit:Yue,join:Zue,merge:Jue,selection:rde,order:Que,sort:efe,call:nfe,nodes:rfe,node:ife,size:ofe,empty:sfe,each:lfe,attr:pfe,style:yfe,property:_fe,classed:Cfe,text:Mfe,html:Pfe,raise:zfe,lower:Dfe,append:Ffe,insert:Bfe,remove:qfe,clone:Vfe,datum:Gfe,on:Jfe,dispatch:tde,[Symbol.iterator]:nde};function jn(e){return typeof e=="string"?new rr([[document.querySelector(e)]],[document.documentElement]):new rr([[e]],ux)}function ide(e){let t;for(;t=e.sourceEvent;)e=t;return e}function di(e,t){if(e=ide(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var ode=Object.defineProperty,sde=(e,t,r)=>t in e?ode(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r0=(e,t,r)=>sde(e,typeof t!="symbol"?t+"":t,r);class Mn{constructor(t,r){r0(this,"x"),r0(this,"y"),this.x=t,this.y=r}static of([t,r]){return new Mn(t,r)}add(t){return new Mn(this.x+t.x,this.y+t.y)}subtract(t){return new Mn(this.x-t.x,this.y-t.y)}multiply(t){return new Mn(this.x*t,this.y*t)}divide(t){return new Mn(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 Mn(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 Mn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Mn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var lde={value:()=>{}};function Pa(){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 Ic(r)}function Ic(e){this._=e}function ade(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}})}Ic.prototype=Pa.prototype={constructor:Ic,on:function(e,t){var r=this._,o=ade(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=cde(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]=i0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=i0(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 Ic(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 cde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function i0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=lde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const ude={passive:!1},pa={capture:!0,passive:!1};function pd(e){e.stopImmediatePropagation()}function Ns(e){e.preventDefault(),e.stopImmediatePropagation()}function fx(e){var t=e.document.documentElement,r=jn(e).on("dragstart.drag",Ns,pa);"onselectstart"in t?r.on("selectstart.drag",Ns,pa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function dx(e,t){var r=e.document.documentElement,o=jn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ns,pa),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 kc=e=>()=>e;function Qd(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}})}Qd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function fde(e){return!e.ctrlKey&&!e.button}function dde(){return this.parentNode}function hde(e,t){return t??{x:e.x,y:e.y}}function pde(){return navigator.maxTouchPoints||"ontouchstart"in this}function gde(){var e=fde,t=dde,r=hde,o=pde,s={},c=Pa("start","drag","end"),f=0,d,h,p,v,m=0;function b(C){C.on("mousedown.drag",x).filter(o).on("touchstart.drag",A).on("touchmove.drag",L,ude).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(C,D){if(!(v||!e.call(this,C,D))){var U=R(this,t.call(this,C,D),C,D,"mouse");U&&(jn(C.view).on("mousemove.drag",M,pa).on("mouseup.drag",E,pa),fx(C.view),pd(C),p=!1,d=C.clientX,h=C.clientY,U("start",C))}}function M(C){if(Ns(C),!p){var D=C.clientX-d,U=C.clientY-h;p=D*D+U*U>m}s.mouse("drag",C)}function E(C){jn(C.view).on("mousemove.drag mouseup.drag",null),dx(C.view,p),Ns(C),s.mouse("end",C)}function A(C,D){if(e.call(this,C,D)){var U=C.changedTouches,ie=t.call(this,C,D),le=U.length,ne,G;for(ne=0;ne<le;++ne)(G=R(this,ie,C,D,U[ne].identifier,U[ne]))&&(pd(C),G("start",C,U[ne]))}}function L(C){var D=C.changedTouches,U=D.length,ie,le;for(ie=0;ie<U;++ie)(le=s[D[ie].identifier])&&(Ns(C),le("drag",C,D[ie]))}function $(C){var D=C.changedTouches,U=D.length,ie,le;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ie=0;ie<U;++ie)(le=s[D[ie].identifier])&&(pd(C),le("end",C,D[ie]))}function R(C,D,U,ie,le,ne){var G=c.copy(),J=di(ne||U,D),O,P,N;if((N=r.call(C,new Qd("beforestart",{sourceEvent:U,target:b,identifier:le,active:f,x:J[0],y:J[1],dx:0,dy:0,dispatch:G}),ie))!=null)return O=N.x-J[0]||0,P=N.y-J[1]||0,function S(F,V,re){var me=J,Se;switch(F){case"start":s[le]=S,Se=f++;break;case"end":delete s[le],--f;case"drag":J=di(re||V,D),Se=f;break}G.call(F,C,new Qd(F,{sourceEvent:V,subject:N,target:b,identifier:le,active:Se,x:J[0]+O,y:J[1]+P,dx:J[0]-me[0],dy:J[1]-me[1],dispatch:G}),ie)}}return b.filter=function(C){return arguments.length?(e=typeof C=="function"?C:kc(!!C),b):e},b.container=function(C){return arguments.length?(t=typeof C=="function"?C:kc(C),b):t},b.subject=function(C){return arguments.length?(r=typeof C=="function"?C:kc(C),b):r},b.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:kc(!!C),b):o},b.on=function(){var C=c.on.apply(c,arguments);return C===c?b:C},b.clickDistance=function(C){return arguments.length?(m=(C=+C)*C,b):Math.sqrt(m)},b}function rp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function hx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ra(){}var ga=.7,pu=1/ga,Os="\\s*([+-]?\\d+)\\s*",va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vde=/^#([0-9a-f]{3,8})$/,mde=new RegExp(`^rgb\\(${Os},${Os},${Os}\\)$`),yde=new RegExp(`^rgb\\(${Kr},${Kr},${Kr}\\)$`),bde=new RegExp(`^rgba\\(${Os},${Os},${Os},${va}\\)$`),wde=new RegExp(`^rgba\\(${Kr},${Kr},${Kr},${va}\\)$`),xde=new RegExp(`^hsl\\(${va},${Kr},${Kr}\\)$`),_de=new RegExp(`^hsla\\(${va},${Kr},${Kr},${va}\\)$`),o0={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};rp(Ra,ma,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:s0,formatHex:s0,formatHex8:Sde,formatHsl:kde,formatRgb:l0,toString:l0});function s0(){return this.rgb().formatHex()}function Sde(){return this.rgb().formatHex8()}function kde(){return px(this).formatHsl()}function l0(){return this.rgb().formatRgb()}function ma(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=vde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?a0(t):r===3?new Vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Tc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Tc(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=mde.exec(e))?new Vn(t[1],t[2],t[3],1):(t=yde.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bde.exec(e))?Tc(t[1],t[2],t[3],t[4]):(t=wde.exec(e))?Tc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xde.exec(e))?f0(t[1],t[2]/100,t[3]/100,1):(t=_de.exec(e))?f0(t[1],t[2]/100,t[3]/100,t[4]):o0.hasOwnProperty(e)?a0(o0[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function a0(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function Tc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Vn(e,t,r,o)}function Tde(e){return e instanceof Ra||(e=ma(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function eh(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}rp(Vn,eh,hx(Ra,{brighter(e){return e=e==null?pu:Math.pow(pu,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ga:Math.pow(ga,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(Ro(this.r),Ro(this.g),Ro(this.b),gu(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:c0,formatHex:c0,formatHex8:Cde,formatRgb:u0,toString:u0}));function c0(){return`#${No(this.r)}${No(this.g)}${No(this.b)}`}function Cde(){return`#${No(this.r)}${No(this.g)}${No(this.b)}${No((isNaN(this.opacity)?1:this.opacity)*255)}`}function u0(){const e=gu(this.opacity);return`${e===1?"rgb(":"rgba("}${Ro(this.r)}, ${Ro(this.g)}, ${Ro(this.b)}${e===1?")":`, ${e})`}`}function gu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ro(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function No(e){return e=Ro(e),(e<16?"0":"")+e.toString(16)}function f0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Cr(e,t,r,o)}function px(e){if(e instanceof Cr)return new Cr(e.h,e.s,e.l,e.opacity);if(e instanceof Ra||(e=ma(e)),!e)return new Cr;if(e instanceof Cr)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 Cr(f,d,h,e.opacity)}function Ede(e,t,r,o){return arguments.length===1?px(e):new Cr(e,t,r,o??1)}function Cr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}rp(Cr,Ede,hx(Ra,{brighter(e){return e=e==null?pu:Math.pow(pu,e),new Cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ga:Math.pow(ga,e),new Cr(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(gd(e>=240?e-240:e+120,s,o),gd(e,s,o),gd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Cr(d0(this.h),Cc(this.s),Cc(this.l),gu(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=gu(this.opacity);return`${e===1?"hsl(":"hsla("}${d0(this.h)}, ${Cc(this.s)*100}%, ${Cc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function d0(e){return e=(e||0)%360,e<0?e+360:e}function Cc(e){return Math.max(0,Math.min(1,e||0))}function gd(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 gx=e=>()=>e;function Ade(e,t){return function(r){return e+r*t}}function Lde(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 Mde(e){return(e=+e)==1?vx:function(t,r){return r-t?Lde(t,r,e):gx(isNaN(t)?r:t)}}function vx(e,t){var r=t-e;return r?Ade(e,r):gx(isNaN(e)?t:e)}const h0=(function e(t){var r=Mde(t);function o(s,c){var f=r((s=eh(s)).r,(c=eh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=vx(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 Vi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var th=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vd=new RegExp(th.source,"g");function $de(e){return function(){return e}}function Nde(e){return function(t){return e(t)+""}}function Ode(e,t){var r=th.lastIndex=vd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=th.exec(e))&&(s=vd.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:Vi(o,s)})),r=vd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Nde(h[0].x):$de(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 p0=180/Math.PI,nh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mx(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)*p0,skewX:Math.atan(h)*p0,scaleX:f,scaleY:d}}var Ec;function Pde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?nh:mx(t.a,t.b,t.c,t.d,t.e,t.f)}function Rde(e){return e==null||(Ec||(Ec=document.createElementNS("http://www.w3.org/2000/svg","g")),Ec.setAttribute("transform",e),!(e=Ec.transform.baseVal.consolidate()))?nh:(e=e.matrix,mx(e.a,e.b,e.c,e.d,e.e,e.f))}function yx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,M){if(p!==m||v!==b){var E=x.push("translate(",null,t,null,r);M.push({i:E-4,x:Vi(p,m)},{i:E-2,x:Vi(v,b)})}else(m||b)&&x.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:Vi(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:Vi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,x,M){if(p!==m||v!==b){var E=x.push(s(x)+"scale(",null,",",null,")");M.push({i:E-4,x:Vi(p,m)},{i:E-2,x:Vi(v,b)})}else(m!==1||b!==1)&&x.push(s(x)+"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(x){for(var M=-1,E=b.length,A;++M<E;)m[(A=b[M]).i]=A.x(x);return m.join("")}}}var zde=yx(Pde,"px, ","px)","deg)"),Ide=yx(Rde,", ",")",")"),Dde=1e-12;function g0(e){return((e=Math.exp(e))+1/e)/2}function Fde(e){return((e=Math.exp(e))-1/e)/2}function Hde(e){return((e=Math.exp(2*e))-1)/(e+1)}const Bde=(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],x=v-d,M=m-h,E=x*x+M*M,A,L;if(E<Dde)L=Math.log(b/p)/t,A=function(ie){return[d+ie*x,h+ie*M,p*Math.exp(t*ie*L)]};else{var $=Math.sqrt(E),R=(b*b-p*p+o*E)/(2*p*r*$),C=(b*b-p*p-o*E)/(2*b*r*$),D=Math.log(Math.sqrt(R*R+1)-R),U=Math.log(Math.sqrt(C*C+1)-C);L=(U-D)/t,A=function(ie){var le=ie*L,ne=g0(D),G=p/(r*$)*(ne*Hde(t*le+D)-Fde(D));return[d+G*x,h+G*M,p*ne/g0(t*le+D)]}}return A.duration=L*1e3*t/Math.SQRT2,A}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 qs=0,Rl=0,Ml=0,bx=1e3,vu,zl,mu=0,Io=0,Vu=0,ya=typeof performance=="object"&&performance.now?performance:Date,wx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ip(){return Io||(wx(Wde),Io=ya.now()+Vu)}function Wde(){Io=0}function yu(){this._call=this._time=this._next=null}yu.prototype=op.prototype={constructor:yu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ip():+r)+(t==null?0:+t),!this._next&&zl!==this&&(zl?zl._next=this:vu=this,zl=this),this._call=e,this._time=r,rh()},stop:function(){this._call&&(this._call=null,this._time=1/0,rh())}};function op(e,t,r){var o=new yu;return o.restart(e,t,r),o}function qde(){ip(),++qs;for(var e=vu,t;e;)(t=Io-e._time)>=0&&e._call.call(void 0,t),e=e._next;--qs}function v0(){Io=(mu=ya.now())+Vu,qs=Rl=0;try{qde()}finally{qs=0,Ude(),Io=0}}function jde(){var e=ya.now(),t=e-mu;t>bx&&(Vu-=t,mu=e)}function Ude(){for(var e,t=vu,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:vu=r);zl=e,rh(o)}function rh(e){if(!qs){Rl&&(Rl=clearTimeout(Rl));var t=e-Io;t>24?(e<1/0&&(Rl=setTimeout(v0,e-ya.now()-Vu)),Ml&&(Ml=clearInterval(Ml))):(Ml||(mu=ya.now(),Ml=setInterval(jde,bx)),qs=1,wx(v0))}}function m0(e,t,r){var o=new yu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Vde=Pa("start","end","cancel","interrupt"),Gde=[],xx=0,y0=1,ih=2,Dc=3,b0=4,oh=5,Fc=6;function Gu(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:Vde,tween:Gde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:xx})}function sp(e,t){var r=Rr(e,t);if(r.state>xx)throw new Error("too late; already scheduled");return r}function Jr(e,t){var r=Rr(e,t);if(r.state>Dc)throw new Error("too late; already running");return r}function Rr(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=op(c,0,r.time);function c(p){r.state=y0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,x;if(r.state!==y0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===Dc)return m0(f);x.state===b0?(x.state=Fc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Fc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(m0(function(){r.state===Dc&&(r.state=b0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=ih,r.on.call("start",e,e.__data__,r.index,r.group),r.state===ih){for(r.state=Dc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=x);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=oh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===oh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Fc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Hc(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>ih&&o.state<oh,o.state=Fc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Xde(e){return this.each(function(){Hc(this,e)})}function Yde(e,t){var r,o;return function(){var s=Jr(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 Zde(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Jr(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 Jde(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Rr(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?Yde:Zde)(r,e,t))}function lp(e,t,r){var o=e._id;return e.each(function(){var s=Jr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Rr(s,o).value[t]}}function _x(e,t){var r;return(typeof t=="number"?Vi:t instanceof ma?h0:(r=ma(t))?(t=r,h0):Ode)(e,t)}function Qde(e){return function(){this.removeAttribute(e)}}function ehe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function the(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 nhe(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 rhe(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 ihe(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 ohe(e,t){var r=Uu(e),o=r==="transform"?Ide:_x;return this.attrTween(e,typeof t=="function"?(r.local?ihe:rhe)(r,o,lp(this,"attr."+e,t)):t==null?(r.local?ehe:Qde)(r):(r.local?nhe:the)(r,o,t))}function she(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function lhe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function ahe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&lhe(e,c)),r}return s._value=t,s}function che(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&she(e,c)),r}return s._value=t,s}function uhe(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=Uu(e);return this.tween(r,(o.local?ahe:che)(o,t))}function fhe(e,t){return function(){sp(this,e).delay=+t.apply(this,arguments)}}function dhe(e,t){return t=+t,function(){sp(this,e).delay=t}}function hhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?fhe:dhe)(t,e)):Rr(this.node(),t).delay}function phe(e,t){return function(){Jr(this,e).duration=+t.apply(this,arguments)}}function ghe(e,t){return t=+t,function(){Jr(this,e).duration=t}}function vhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?phe:ghe)(t,e)):Rr(this.node(),t).duration}function mhe(e,t){if(typeof t!="function")throw new Error;return function(){Jr(this,e).ease=t}}function yhe(e){var t=this._id;return arguments.length?this.each(mhe(t,e)):Rr(this.node(),t).ease}function bhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Jr(this,e).ease=r}}function whe(e){if(typeof e!="function")throw new Error;return this.each(bhe(this._id,e))}function xhe(e){typeof e!="function"&&(e=tx(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 xi(o,this._parents,this._name,this._id)}function _he(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,x=0;x<v;++x)(b=h[x]||p[x])&&(m[x]=b);for(;d<o;++d)f[d]=t[d];return new xi(f,this._parents,this._name,this._id)}function She(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 khe(e,t,r){var o,s,c=She(t)?sp:Jr;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?Rr(this.node(),r).on.on(e):this.each(khe(r,e,t))}function Che(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ehe(){return this.on("end.remove",Che(this._id))}function Ahe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=tp(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,Gu(p[b],t,r,b,p,Rr(v,r)));return new xi(c,this._parents,t,r)}function Lhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ex(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),x,M=Rr(v,r),E=0,A=b.length;E<A;++E)(x=b[E])&&Gu(x,t,r,E,b,M);c.push(b),f.push(v)}return new xi(c,f,t,r)}var Mhe=Oa.prototype.constructor;function $he(){return new Mhe(this._groups,this._parents)}function Nhe(e,t){var r,o,s;return function(){var c=Ws(this,e),f=(this.style.removeProperty(e),Ws(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Sx(e){return function(){this.style.removeProperty(e)}}function Ohe(e,t,r){var o,s=r+"",c;return function(){var f=Ws(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Phe(e,t,r){var o,s,c;return function(){var f=Ws(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ws(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Rhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Jr(this,e),p=h.on,v=h.value[c]==null?d||(d=Sx(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function zhe(e,t,r){var o=(e+="")=="transform"?zde:_x;return t==null?this.styleTween(e,Nhe(e,o)).on("end.style."+e,Sx(e)):typeof t=="function"?this.styleTween(e,Phe(e,o,lp(this,"style."+e,t))).each(Rhe(this._id,e)):this.styleTween(e,Ohe(e,o,t),r).on("end.style."+e,null)}function Ihe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Dhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Ihe(e,f,r)),o}return c._value=t,c}function Fhe(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,Dhe(e,t,r??""))}function Hhe(e){return function(){this.textContent=e}}function Bhe(e){return function(){var t=e(this);this.textContent=t??""}}function Whe(e){return this.tween("text",typeof e=="function"?Bhe(lp(this,"text",e)):Hhe(e==null?"":e+""))}function qhe(e){return function(t){this.textContent=e.call(this,t)}}function jhe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&qhe(s)),t}return o._value=e,o}function Uhe(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,jhe(e))}function Vhe(){for(var e=this._name,t=this._id,r=kx(),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=Rr(h,t);Gu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new xi(o,this._parents,e,r)}function Ghe(){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=Jr(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 xi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function kx(){return++Khe}var ci=Oa.prototype;xi.prototype={constructor:xi,select:Ahe,selectAll:Lhe,selectChild:ci.selectChild,selectChildren:ci.selectChildren,filter:xhe,merge:_he,selection:$he,transition:Vhe,call:ci.call,nodes:ci.nodes,node:ci.node,size:ci.size,empty:ci.empty,each:ci.each,on:The,attr:ohe,attrTween:uhe,style:zhe,styleTween:Fhe,text:Whe,textTween:Uhe,remove:Ehe,tween:Jde,delay:hhe,duration:vhe,ease:yhe,easeVarying:whe,end:Ghe,[Symbol.iterator]:ci[Symbol.iterator]};function Xhe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Yhe={time:null,delay:0,duration:250,ease:Xhe};function Zhe(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 Jhe(e){var t,r;e instanceof xi?(t=e._id,e=e._name):(t=kx(),(r=Yhe).time=ip(),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])&&Gu(h,e,t,p,f,r||Zhe(h,t));return new xi(o,this._parents,e,t)}Oa.prototype.interrupt=Xde;Oa.prototype.transition=Jhe;const Ac=e=>()=>e;function Qhe(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 vi(e,t,r){this.k=e,this.x=t,this.y=r}vi.prototype={constructor:vi,scale:function(e){return e===1?this:new vi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new vi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ap=new vi(1,0,0);vi.prototype;function md(e){e.stopImmediatePropagation()}function $l(e){e.preventDefault(),e.stopImmediatePropagation()}function epe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function tpe(){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 w0(){return this.__zoom||ap}function npe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function rpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ipe(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 ope(){var e=epe,t=tpe,r=ipe,o=npe,s=rpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Bde,p=Pa("start","zoom","end"),v,m,b,x=500,M=150,E=0,A=10;function L(N){N.property("__zoom",w0).on("wheel.zoom",le,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",J).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(N,S,F,V){var re=N.selection?N.selection():N;re.property("__zoom",w0),N!==re?D(N,S,F,V):re.interrupt().each(function(){U(this,arguments).event(V).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},L.scaleBy=function(N,S,F,V){L.scaleTo(N,function(){var re=this.__zoom.k,me=typeof S=="function"?S.apply(this,arguments):S;return re*me},F,V)},L.scaleTo=function(N,S,F,V){L.transform(N,function(){var re=t.apply(this,arguments),me=this.__zoom,Se=F==null?C(re):typeof F=="function"?F.apply(this,arguments):F,Re=me.invert(Se),je=typeof S=="function"?S.apply(this,arguments):S;return r(R($(me,je),Se,Re),re,f)},F,V)},L.translateBy=function(N,S,F,V){L.transform(N,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof F=="function"?F.apply(this,arguments):F),t.apply(this,arguments),f)},null,V)},L.translateTo=function(N,S,F,V,re){L.transform(N,function(){var me=t.apply(this,arguments),Se=this.__zoom,Re=V==null?C(me):typeof V=="function"?V.apply(this,arguments):V;return r(ap.translate(Re[0],Re[1]).scale(Se.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof F=="function"?-F.apply(this,arguments):-F),me,f)},V,re)};function $(N,S){return S=Math.max(c[0],Math.min(c[1],S)),S===N.k?N:new vi(S,N.x,N.y)}function R(N,S,F){var V=S[0]-F[0]*N.k,re=S[1]-F[1]*N.k;return V===N.x&&re===N.y?N:new vi(N.k,V,re)}function C(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function D(N,S,F,V){N.on("start.zoom",function(){U(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(V).end()}).tween("zoom",function(){var re=this,me=arguments,Se=U(re,me).event(V),Re=t.apply(re,me),je=F==null?C(Re):typeof F=="function"?F.apply(re,me):F,Qe=Math.max(Re[1][0]-Re[0][0],Re[1][1]-Re[0][1]),Xe=re.__zoom,Ye=typeof S=="function"?S.apply(re,me):S,te=h(Xe.invert(je).concat(Qe/Xe.k),Ye.invert(je).concat(Qe/Ye.k));return function(B){if(B===1)B=Ye;else{var Z=te(B),K=Qe/Z[2];B=new vi(K,je[0]-Z[0]*K,je[1]-Z[1]*K)}Se.zoom(null,B)}})}function U(N,S,F){return!F&&N.__zooming||new ie(N,S)}function ie(N,S){this.that=N,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(N,S),this.taps=0}ie.prototype={event:function(N){return N&&(this.sourceEvent=N),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(N,S){return this.mouse&&N!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&N!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&N!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(N){var S=jn(this.that).datum();p.call(N,this.that,new Qhe(N,{sourceEvent:this.sourceEvent,target:L,transform:this.that.__zoom,dispatch:p}),S)}};function le(N,...S){if(!e.apply(this,arguments))return;var F=U(this,S).event(N),V=this.__zoom,re=Math.max(c[0],Math.min(c[1],V.k*Math.pow(2,o.apply(this,arguments)))),me=di(N);if(F.wheel)(F.mouse[0][0]!==me[0]||F.mouse[0][1]!==me[1])&&(F.mouse[1]=V.invert(F.mouse[0]=me)),clearTimeout(F.wheel);else{if(V.k===re)return;F.mouse=[me,V.invert(me)],Hc(this),F.start()}$l(N),F.wheel=setTimeout(Se,M),F.zoom("mouse",r(R($(V,re),F.mouse[0],F.mouse[1]),F.extent,f));function Se(){F.wheel=null,F.end()}}function ne(N,...S){if(b||!e.apply(this,arguments))return;var F=N.currentTarget,V=U(this,S,!0).event(N),re=jn(N.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",Qe,!0),me=di(N,F),Se=N.clientX,Re=N.clientY;fx(N.view),md(N),V.mouse=[me,this.__zoom.invert(me)],Hc(this),V.start();function je(Xe){if($l(Xe),!V.moved){var Ye=Xe.clientX-Se,te=Xe.clientY-Re;V.moved=Ye*Ye+te*te>E}V.event(Xe).zoom("mouse",r(R(V.that.__zoom,V.mouse[0]=di(Xe,F),V.mouse[1]),V.extent,f))}function Qe(Xe){re.on("mousemove.zoom mouseup.zoom",null),dx(Xe.view,V.moved),$l(Xe),V.event(Xe).end()}}function G(N,...S){if(e.apply(this,arguments)){var F=this.__zoom,V=di(N.changedTouches?N.changedTouches[0]:N,this),re=F.invert(V),me=F.k*(N.shiftKey?.5:2),Se=r(R($(F,me),V,re),t.apply(this,S),f);$l(N),d>0?jn(this).transition().duration(d).call(D,Se,V,N):jn(this).call(L.transform,Se,V,N)}}function J(N,...S){if(e.apply(this,arguments)){var F=N.touches,V=F.length,re=U(this,S,N.changedTouches.length===V).event(N),me,Se,Re,je;for(md(N),Se=0;Se<V;++Se)Re=F[Se],je=di(Re,this),je=[je,this.__zoom.invert(je),Re.identifier],re.touch0?!re.touch1&&re.touch0[2]!==je[2]&&(re.touch1=je,re.taps=0):(re.touch0=je,me=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(re.taps<2&&(m=je[0],v=setTimeout(function(){v=null},x)),Hc(this),re.start())}}function O(N,...S){if(this.__zooming){var F=U(this,S).event(N),V=N.changedTouches,re=V.length,me,Se,Re,je;for($l(N),me=0;me<re;++me)Se=V[me],Re=di(Se,this),F.touch0&&F.touch0[2]===Se.identifier?F.touch0[0]=Re:F.touch1&&F.touch1[2]===Se.identifier&&(F.touch1[0]=Re);if(Se=F.that.__zoom,F.touch1){var Qe=F.touch0[0],Xe=F.touch0[1],Ye=F.touch1[0],te=F.touch1[1],B=(B=Ye[0]-Qe[0])*B+(B=Ye[1]-Qe[1])*B,Z=(Z=te[0]-Xe[0])*Z+(Z=te[1]-Xe[1])*Z;Se=$(Se,Math.sqrt(B/Z)),Re=[(Qe[0]+Ye[0])/2,(Qe[1]+Ye[1])/2],je=[(Xe[0]+te[0])/2,(Xe[1]+te[1])/2]}else if(F.touch0)Re=F.touch0[0],je=F.touch0[1];else return;F.zoom("touch",r(R(Se,Re,je),F.extent,f))}}function P(N,...S){if(this.__zooming){var F=U(this,S).event(N),V=N.changedTouches,re=V.length,me,Se;for(md(N),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),me=0;me<re;++me)Se=V[me],F.touch0&&F.touch0[2]===Se.identifier?delete F.touch0:F.touch1&&F.touch1[2]===Se.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(Se=di(Se,this),Math.hypot(m[0]-Se[0],m[1]-Se[1])<A)){var Re=jn(this).on("dblclick.zoom");Re&&Re.apply(this,arguments)}}}return L.wheelDelta=function(N){return arguments.length?(o=typeof N=="function"?N:Ac(+N),L):o},L.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Ac(!!N),L):e},L.touchable=function(N){return arguments.length?(s=typeof N=="function"?N:Ac(!!N),L):s},L.extent=function(N){return arguments.length?(t=typeof N=="function"?N:Ac([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),L):t},L.scaleExtent=function(N){return arguments.length?(c[0]=+N[0],c[1]=+N[1],L):[c[0],c[1]]},L.translateExtent=function(N){return arguments.length?(f[0][0]=+N[0][0],f[1][0]=+N[1][0],f[0][1]=+N[0][1],f[1][1]=+N[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(N){return arguments.length?(r=N,L):r},L.duration=function(N){return arguments.length?(d=+N,L):d},L.interpolate=function(N){return arguments.length?(h=N,L):h},L.on=function(){var N=p.on.apply(p,arguments);return N===p?L:N},L.clickDistance=function(N){return arguments.length?(E=(N=+N)*N,L):Math.sqrt(E)},L.tapDistance=function(N){return arguments.length?(A=+N,L):A},L}function spe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Tx(this.cover(t,r),t,r,e)}function Tx(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,x,M,E,A,L,$;if(!c)return e._root=f,e;for(;c.length;)if((E=t>=(m=(d+p)/2))?d=m:p=m,(A=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=A<<1|E]))return s[L]=f,e;if(x=+e._x.call(null,c.data),M=+e._y.call(null,c.data),t===x&&r===M)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(E=t>=(m=(d+p)/2))?d=m:p=m,(A=r>=(b=(h+v)/2))?h=b:v=b;while((L=A<<1|E)===($=(M>=b)<<1|x>=m));return s[$]=c,s[L]=f,e}function lpe(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)Tx(this,f[r],d[r],e[r]);return this}function ape(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 cpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function upe(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 Nn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function fpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],x=this._root,M,E;for(x&&b.push(new Nn(x,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);M=b.pop();)if(!(!(x=M.node)||(f=M.x0)>v||(d=M.y0)>m||(h=M.x1)<s||(p=M.y1)<c))if(x.length){var A=(f+h)/2,L=(d+p)/2;b.push(new Nn(x[3],A,L,h,p),new Nn(x[2],f,L,A,p),new Nn(x[1],A,d,h,L),new Nn(x[0],f,d,A,L)),(E=(t>=L)<<1|e>=A)&&(M=b[b.length-1],b[b.length-1]=b[b.length-1-E],b[b.length-1-E]=M)}else{var $=e-+this._x.call(null,x.data),R=t-+this._y.call(null,x.data),C=$*$+R*R;if(C<r){var D=Math.sqrt(r=C);s=e-D,c=t-D,v=e+D,m=t+D,o=x.data}}return o}function dpe(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,x,M,E,A,L;if(!r)return this;if(r.length)for(;;){if((M=v>=(b=(f+h)/2))?f=b:h=b,(E=m>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[A=E<<1|M]))return this;if(!r.length)break;(t[A+1&3]||t[A+2&3]||t[A+3&3])&&(o=t,L=A)}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[A]=c:delete t[A],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function hpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function ppe(){return this._root}function gpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function vpe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Nn(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 Nn(s,p,v,d,h)),(s=o[2])&&t.push(new Nn(s,c,v,p,h)),(s=o[1])&&t.push(new Nn(s,p,f,d,v)),(s=o[0])&&t.push(new Nn(s,c,f,p,v))}return this}function mpe(e){var t=[],r=[],o;for(this._root&&t.push(new Nn(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 Nn(c,f,d,v,m)),(c=s[1])&&t.push(new Nn(c,v,d,h,m)),(c=s[2])&&t.push(new Nn(c,f,m,v,p)),(c=s[3])&&t.push(new Nn(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 ype(e){return e[0]}function bpe(e){return arguments.length?(this._x=e,this):this._x}function wpe(e){return e[1]}function xpe(e){return arguments.length?(this._y=e,this):this._y}function cp(e,t,r){var o=new up(t??ype,r??wpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function up(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 x0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Rn=cp.prototype=up.prototype;Rn.copy=function(){var e=new up(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=x0(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]=x0(o));return e};Rn.add=spe;Rn.addAll=lpe;Rn.cover=ape;Rn.data=cpe;Rn.extent=upe;Rn.find=fpe;Rn.remove=dpe;Rn.removeAll=hpe;Rn.root=ppe;Rn.size=gpe;Rn.visit=vpe;Rn.visitAfter=mpe;Rn.x=bpe;Rn.y=xpe;function Pn(e){return function(){return e}}function Xi(e){return(e()-.5)*1e-6}function _pe(e){return e.x+e.vx}function Spe(e){return e.y+e.vy}function kpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Pn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,x,M,E,A,L=0;L<c;++L)for(m=cp(t,_pe,Spe).visitAfter(d),p=0;p<v;++p)b=t[p],E=r[b.index],A=E*E,x=b.x+b.vx,M=b.y+b.vy,m.visit($);function $(R,C,D,U,ie){var le=R.data,ne=R.r,G=E+ne;if(le){if(le.index>b.index){var J=x-le.x-le.vx,O=M-le.y-le.vy,P=J*J+O*O;P<G*G&&(J===0&&(J=Xi(o),P+=J*J),O===0&&(O=Xi(o),P+=O*O),P=(G-(P=Math.sqrt(P)))/P*s,b.vx+=(J*=P)*(G=(ne*=ne)/(A+ne)),b.vy+=(O*=P)*G,le.vx-=J*(G=1-G),le.vy-=O*G)}return}return C>x+G||U<x-G||D>M+G||ie<M-G}}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:Pn(+p),h(),f):e},f}function Tpe(e){return e.index}function _0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Cpe(e){var t=Tpe,r=m,o,s=Pn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(A){return 1/Math.min(d[A.source.index],d[A.target.index])}function b(A){for(var L=0,$=e.length;L<v;++L)for(var R=0,C,D,U,ie,le,ne,G;R<$;++R)C=e[R],D=C.source,U=C.target,ie=U.x+U.vx-D.x-D.vx||Xi(p),le=U.y+U.vy-D.y-D.vy||Xi(p),ne=Math.sqrt(ie*ie+le*le),ne=(ne-c[R])/ne*A*o[R],ie*=ne,le*=ne,U.vx-=ie*(G=h[R]),U.vy-=le*G,D.vx+=ie*(G=1-G),D.vy+=le*G}function x(){if(f){var A,L=f.length,$=e.length,R=new Map(f.map((D,U)=>[t(D,U,f),D])),C;for(A=0,d=new Array(L);A<$;++A)C=e[A],C.index=A,typeof C.source!="object"&&(C.source=_0(R,C.source)),typeof C.target!="object"&&(C.target=_0(R,C.target)),d[C.source.index]=(d[C.source.index]||0)+1,d[C.target.index]=(d[C.target.index]||0)+1;for(A=0,h=new Array($);A<$;++A)C=e[A],h[A]=d[C.source.index]/(d[C.source.index]+d[C.target.index]);o=new Array($),M(),c=new Array($),E()}}function M(){if(f)for(var A=0,L=e.length;A<L;++A)o[A]=+r(e[A],A,e)}function E(){if(f)for(var A=0,L=e.length;A<L;++A)c[A]=+s(e[A],A,e)}return b.initialize=function(A,L){f=A,p=L,x()},b.links=function(A){return arguments.length?(e=A,x(),b):e},b.id=function(A){return arguments.length?(t=A,b):t},b.iterations=function(A){return arguments.length?(v=+A,b):v},b.strength=function(A){return arguments.length?(r=typeof A=="function"?A:Pn(+A),M(),b):r},b.distance=function(A){return arguments.length?(s=typeof A=="function"?A:Pn(+A),E(),b):s},b}const Epe=1664525,Ape=1013904223,S0=4294967296;function Lpe(){let e=1;return()=>(e=(Epe*e+Ape)%S0)/S0}function Mpe(e){return e.x}function $pe(e){return e.y}var Npe=10,Ope=Math.PI*(3-Math.sqrt(5));function Ppe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=op(m),p=Pa("tick","end"),v=Lpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(E){var A,L=e.length,$;E===void 0&&(E=1);for(var R=0;R<E;++R)for(r+=(c-r)*s,d.forEach(function(C){C(r)}),A=0;A<L;++A)$=e[A],$.fx==null?$.x+=$.vx*=f:($.x=$.fx,$.vx=0),$.fy==null?$.y+=$.vy*=f:($.y=$.fy,$.vy=0);return t}function x(){for(var E=0,A=e.length,L;E<A;++E){if(L=e[E],L.index=E,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var $=Npe*Math.sqrt(.5+E),R=E*Ope;L.x=$*Math.cos(R),L.y=$*Math.sin(R)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function M(E){return E.initialize&&E.initialize(e,v),E}return x(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(E){return arguments.length?(e=E,x(),d.forEach(M),t):e},alpha:function(E){return arguments.length?(r=+E,t):r},alphaMin:function(E){return arguments.length?(o=+E,t):o},alphaDecay:function(E){return arguments.length?(s=+E,t):+s},alphaTarget:function(E){return arguments.length?(c=+E,t):c},velocityDecay:function(E){return arguments.length?(f=1-E,t):1-f},randomSource:function(E){return arguments.length?(v=E,d.forEach(M),t):v},force:function(E,A){return arguments.length>1?(A==null?d.delete(E):d.set(E,M(A)),t):d.get(E)},find:function(E,A,L){var $=0,R=e.length,C,D,U,ie,le;for(L==null?L=1/0:L*=L,$=0;$<R;++$)ie=e[$],C=E-ie.x,D=A-ie.y,U=C*C+D*D,U<L&&(le=ie,L=U);return le},on:function(E,A){return arguments.length>1?(p.on(E,A),t):p.on(E)}}}function Rpe(){var e,t,r,o,s=Pn(-30),c,f=1,d=1/0,h=.81;function p(x){var M,E=e.length,A=cp(e,Mpe,$pe).visitAfter(m);for(o=x,M=0;M<E;++M)t=e[M],A.visit(b)}function v(){if(e){var x,M=e.length,E;for(c=new Array(M),x=0;x<M;++x)E=e[x],c[E.index]=+s(E,x,e)}}function m(x){var M=0,E,A,L=0,$,R,C;if(x.length){for($=R=C=0;C<4;++C)(E=x[C])&&(A=Math.abs(E.value))&&(M+=E.value,L+=A,$+=A*E.x,R+=A*E.y);x.x=$/L,x.y=R/L}else{E=x,E.x=E.data.x,E.y=E.data.y;do M+=c[E.data.index];while(E=E.next)}x.value=M}function b(x,M,E,A){if(!x.value)return!0;var L=x.x-t.x,$=x.y-t.y,R=A-M,C=L*L+$*$;if(R*R/h<C)return C<d&&(L===0&&(L=Xi(r),C+=L*L),$===0&&($=Xi(r),C+=$*$),C<f&&(C=Math.sqrt(f*C)),t.vx+=L*x.value*o/C,t.vy+=$*x.value*o/C),!0;if(x.length||C>=d)return;(x.data!==t||x.next)&&(L===0&&(L=Xi(r),C+=L*L),$===0&&($=Xi(r),C+=$*$),C<f&&(C=Math.sqrt(f*C)));do x.data!==t&&(R=c[x.data.index]*o/C,t.vx+=L*R,t.vy+=$*R);while(x=x.next)}return p.initialize=function(x,M){e=x,r=M,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Pn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function zpe(e){var t=Pn(.1),r,o,s;typeof e!="function"&&(e=Pn(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:Pn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Pn(+d),f(),c):e},c}function Ipe(e){var t=Pn(.1),r,o,s;typeof e!="function"&&(e=Pn(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:Pn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Pn(+d),f(),c):e},c}function Dpe(){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 k0(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 Yi(...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]=Yi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:k0(t[o])&&k0(r[o])?t[o]=Yi(t[o],r[o]):t[o]=r[o])}),t},{})}const Cx={mergeArrays:!0};Yi.options=Cx;Yi.withOptions=(e,...t)=>{Yi.options={mergeArrays:!0,...e};const r=Yi(...t);return Yi.options=Cx,r};function Fpe(){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 Hpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Ex(e){e.preventDefault(),e.stopPropagation()}function Ax(e){return typeof e=="number"}function lo(e,t){return Ax(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Bpe(e){return`${e.source.id}-${e.target.id}`}function Lx(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Wpe(e){return`url(#${Lx(e.color)})`}function qpe(e){return{size:e,padding:(t,r)=>lo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Mx={Arrow:e=>qpe(e)},jpe=(e,t,r)=>[t/2,r/2],Upe=(e,t,r)=>[T0(0,t),T0(0,r)];function T0(e,t){return Math.random()*(t-e)+e}const sh={Centered:jpe,Randomized:Upe};function Vpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:Hpe(),nodeRadius:16,marker:Mx.Arrow(4),modifiers:{},positionInitializer:sh.Centered,simulation:{alphas:Dpe(),forces:Fpe()},zoom:{initial:1,min:.1,max:2}}}function Gpe(e={}){return Yi.withOptions({mergeArrays:!1},Vpe(),e)}function Kpe({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=>Ex(v)).on("dblclick",v=>r?.(v)).on("dblclick.zoom",null).on("pointermove",v=>o?.(v)).on("pointerup",v=>s?.(v)).style("cursor","grab");return e&&p.call(h.transform,ap.translate(c,f).scale(d)),p.append("g")}function Xpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function Ype({config:e,onDragStart:t,onDragEnd:r}){const o=gde().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),jn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),jn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function Zpe({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}:Jpe({links:c},r)}function Jpe(e,t){const r=[...Qpe(e,t),...ege(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Qpe(e,t){return $x(e,t,(r,o)=>r.target.id===o.id)}function ege(e,t){return $x(e,t,(r,o)=>r.source.id===o.id)}function $x(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 lh(e){return e.x??0}function ah(e){return e.y??0}function fp({source:e,target:t}){const r=new Mn(lh(e),ah(e)),o=new Mn(lh(t),ah(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 Nx({center:e,node:t}){const r=new Mn(lh(t),ah(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Mn(0,1))),{n:r,c:o}}function Ox({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=fp({source:t,target:r}),f=o.add(c.multiply(lo(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function tge(e){const{start:t,end:r}=Ox(e);return`M${t.x},${t.y}
|
|
46
|
+
L${r.x},${r.y}`}function nge(e){const{start:t,end:r}=Ox(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function rge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=fp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(lo(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(lo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
47
|
+
A${m},${m},0,0,1,${v.x},${v.y}`}function ige({center:e,config:t,node:r}){const{n:o,c:s}=Nx({center:e,node:r}),c=lo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
48
|
+
A${c},${c},0,1,0,${v.x},${v.y}`}function oge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=fp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function sge({center:e,config:t,node:r}){const{n:o,c:s}=Nx({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*lo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ps={line:{labelTransform:nge,path:tge},arc:{labelTransform:oge,path:rge},reflexive:{labelTransform:sge,path:ige}};function lge(e){return e.append("g").classed("links",!0).selectAll("path")}function age({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>Bpe(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>Wpe(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function cge(e){uge(e),fge(e)}function uge({center:e,config:t,graph:r,selection:o}){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?Ps.reflexive.path({config:t,node:s.source,center:e}):Px(r,s.source,s.target)?Ps.arc.path({config:t,source:s.source,target:s.target}):Ps.line.path({config:t,source:s.source,target:s.target}))}function fge({config:e,center:t,graph:r,selection:o}){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?Ps.reflexive.labelTransform({config:e,node:s.source,center:t}):Px(r,s.source,s.target)?Ps.arc.labelTransform({config:e,source:s.source,target:s.target}):Ps.line.labelTransform({config:e,source:s.source,target:s.target}))}function Px(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 dge(e){return e.append("defs").selectAll("marker")}function hge({config:e,graph:t,selection:r}){return r?.data(pge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Lx(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",gge(e.marker.path)),s})}function pge(e){return[...new Set(e.links.map(t=>t.color))]}function gge(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 vge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function mge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",b=>lo(e,b)).on("contextmenu",(b,x)=>{Ex(b),o(x)}).on("pointerdown",(b,x)=>bge(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(m),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const yge=500;function bge(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>yge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function wge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function xge({center:e,config:t,graph:r,onTick:o}){const s=Ppe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",zpe(()=>e().x).strength(p)).force("y",Ipe(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",Rpe().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",kpe().radius(p=>d.radiusMultiplier*lo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Cpe(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function _ge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=ope().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}class Sge{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(t,r,o){if(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(Tue(()=>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 Mn.of([this.width,this.height]).divide(2).subtract(Mn.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(Ax(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){this.markerSelection=hge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=age({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=mge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:r=>this.toggleNodeFocus(r),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=xge({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(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=_ge({config:this.config,canvasContainer:()=>jn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Kpe({applyZoom:this.scale!==1,container:jn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=lge(this.canvas),this.nodeSelection=vge(this.canvas),this.markerSelection=dge(this.canvas),this.drag=Ype({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){wge(this.nodeSelection),cge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),jn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Xpe({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=Zpe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function C0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function kge(e){return{...e}}function Rx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Tge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Cge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Ege={flex:"~ gap-1","items-center":"","select-none":""},Age=["id","checked","onChange"],Lge=["for"],Mge=at({__name:"ViewModuleGraph",props:ta({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Nu(e,"modelValue"),{graph:o}=RS(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();Oh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),ao(()=>{v()}),Mu(()=>{d.value?.shutdown()}),_t(o,()=>v());function h(x,M){d.value?.filterNodesByType(M,x)}function p(x){f.value=x,c.value=!0}function v(x=!1){if(d.value?.shutdown(),x&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new Sge(s.value,o.value,Gpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:M,newWidth:E})=>M===0&&E===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Mx.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?sh.Randomized:sh.Centered,zoom:{min:.5,max:2}})))}const m=x=>x.button===0;function b(x){if(fr)return;let M=0,E=0,A=0;x.on("pointerdown",(L,$)=>{$.type!=="external"&&(!$.x||!$.y||!m(L)||(M=$.x,E=$.y,A=Date.now()))}).on("pointerup",(L,$)=>{if($.type==="external"||!$.x||!$.y||!m(L)||Date.now()-A>500)return;const R=$.x-M,C=$.y-E;R**2+C**2<100&&p($.id)})}return(x,M)=>{const E=Zr,A=kue,L=ep,$=Pr("tooltip");return oe(),ye("div",Tge,[Q("div",null,[Q("div",Cge,[Q("div",Ege,[ct(Q("input",{id:"hide-node-modules","onUpdate:modelValue":M[0]||(M[0]=R=>r.value=R),type:"checkbox"},null,512),[[gb,r.value]]),M[4]||(M[4]=Q("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(nt,null,ur(H(d)?.nodeTypes.sort(),R=>(oe(),ye("div",{key:R,flex:"~ gap-1","items-center":"","select-none":""},[Q("input",{id:`type-${R}`,type:"checkbox",checked:H(d)?.nodeTypeFilter.includes(R),onChange:C=>h(R,C.target.checked)},null,40,Age),Q("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${R}`,"border-b-2":"",style:Jt({"border-color":`var(--color-node-${R})`})},ze(R)+" Modules",13,Lge)]))),128)),M[5]||(M[5]=Q("div",{"flex-auto":""},null,-1)),Q("div",null,[ct(Oe(E,{icon:"i-carbon-reset",onClick:M[1]||(M[1]=R=>v(!0))},null,512),[[$,"Reset",void 0,{bottom:!0}]])])])]),Q("div",{ref_key:"el",ref:s},null,512),Oe(L,{modelValue:H(c),"onUpdate:modelValue":M[3]||(M[3]=R=>kt(c)?c.value=R:null),direction:"right"},{default:it(()=>[H(f)?(oe(),Je(Rh,{key:0},{default:it(()=>[Oe(A,{id:H(f),"project-name":x.projectName,onClose:M[2]||(M[2]=R=>c.value=!1)},null,8,["id","project-name"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])])}}}),$ge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Nge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Oge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Pge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Rge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},zge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},zx=at({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Pr("tooltip");return t.state==="pass"?(oe(),ye("div",$ge)):t.failedSnapshot?ct((oe(),ye("div",Nge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),ye("div",Oge)):t.mode==="todo"?ct((oe(),ye("div",Pge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?ct((oe(),ye("div",Rge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),ye("div",zge))}}});function Ige(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:v,candidate:m}=c;t.set(v,m);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.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 Dge(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 Fge(e){const t=e.map(o=>Dge(o)),r=Ige(t);return t.map(({raw:o,id:s})=>Rx({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 Hge(e,t){return Rx({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 C0({});const r=Fge(e.externalized),o=e.inlined.map(d=>Hge(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 kge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return C0({nodes:s,links:f})}const Wge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},qge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},jge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Uge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Vge={class:"flex text-lg"},Gge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Kge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Xge={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Yge={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Zge=["flex-1"],Jge=at({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=_e(()=>Ls.value?ht.state.idMap.get(Ls.value):void 0),h=_e(()=>{const C=Wt.value;if(!(!C||!C.filepath))return{filepath:C.filepath,projectName:C.file.projectName||""}}),p=_e(()=>Wt.value&&Xh(Wt.value)),v=_e(()=>!!Wt.value?.meta?.typecheck);function m(){const C=Wt.value?.filepath;C&&fetch(`/__open-in-editor?file=${encodeURIComponent(C)}`)}function b(C){C==="graph"&&(o.value=!0),an.value=C}const x=_e(()=>jw.value?.reduce((C,{size:D})=>C+D,0)??0);function M(C){r.value=C}const E=/[/\\]node_modules[/\\]/;async function A(C=!1){if(!(s.value||h.value?.filepath===c.value&&!C)){s.value=!0,await Et();try{const D=h.value;if(!D){s.value=!1;return}if(C||!c.value||D.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let U=await ht.rpc.getModuleGraph(D.projectName,D.filepath,!!Gn);f.value&&(fr&&(U=typeof window.structuredClone<"u"?window.structuredClone(U):RE(U)),U.inlined=U.inlined.filter(ie=>!E.test(ie)),U.externalized=U.externalized.filter(ie=>!E.test(ie))),t.value=Bge(U,D.filepath),c.value=D.filepath}b("graph")}finally{await new Promise(D=>setTimeout(D,100)),s.value=!1}}}Vh(()=>[h.value,an.value,f.value],([,C,D],U)=>{C==="graph"&&A(U&&D!==U[2])},{debounce:100,immediate:!0});const L=_e(()=>{const C=Wt.value?.file.projectName||"";return Ae.colors.get(C)||vw(Wt.value?.file.projectName)}),$=_e(()=>mw(L.value)),R=_e(()=>{const C=Ls.value;if(!C)return Wt.value?.name;const D=[];let U=ht.state.idMap.get(C);for(;U;)D.push(U.name),U=U.suite?U.suite:U===U.file?void 0:U.file;return D.reverse().join(" > ")});return(C,D)=>{const U=zx,ie=Zr,le=Mge,ne=vue,G=gue,J=cue,O=tue,P=Pr("tooltip");return H(Wt)?(oe(),ye("div",Wge,[Q("div",null,[Q("div",qge,[Oe(U,{state:H(Wt).result?.state,mode:H(Wt).mode,"failed-snapshot":H(p)},null,8,["state","mode","failed-snapshot"]),H(v)?ct((oe(),ye("div",jge,null,512)),[[P,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),H(Wt)?.file.projectName?(oe(),ye("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Jt({backgroundColor:H(L),color:H($)})},ze(H(Wt).file.projectName),5)):qe("",!0),Q("div",Uge,ze(H(R)),1),Q("div",Vge,[H(fr)?qe("",!0):ct((oe(),Je(ie,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!H(Wt)?.filepath,onClick:m},null,8,["disabled"])),[[P,"Open in editor",void 0,{bottom:!0}]])])]),Q("div",Gge,[Q("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":H(an)==null}]),"data-testid":"btn-report",onClick:D[0]||(D[0]=N=>b(null))},[...D[5]||(D[5]=[Q("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),dt(" Report ",-1)])],2),Q("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":H(an)==="graph"}]),onClick:D[1]||(D[1]=N=>b("graph"))},[H(s)?(oe(),ye("span",Kge)):(oe(),ye("span",Xge)),D[6]||(D[6]=dt(" Module Graph ",-1))],2),Q("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":H(an)==="editor"}]),onClick:D[2]||(D[2]=N=>b("editor"))},[D[7]||(D[7]=Q("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),dt(" "+ze(H(r)?"* ":"")+"Code ",1)],2),Q("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":H(an)==="console",op20:H(an)!=="console"&&H(x)===0}]),onClick:D[3]||(D[3]=N=>b("console"))},[D[8]||(D[8]=Q("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),dt(" Console ("+ze(H(x))+") ",1)],2)])]),Q("div",Yge,[H(o)?(oe(),ye("div",{key:0,"flex-1":H(an)==="graph"&&""},[ct(Oe(le,{modelValue:H(f),"onUpdate:modelValue":D[4]||(D[4]=N=>kt(f)?f.value=N:null),graph:H(t),"data-testid":"graph","project-name":H(Wt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Ki,H(an)==="graph"&&!H(s)]])],8,Zge)):qe("",!0),H(an)==="editor"?(oe(),Je(ne,{key:H(Wt).id,file:H(Wt),"data-testid":"editor",onDraft:M},null,8,["file"])):H(an)==="console"?(oe(),Je(G,{key:2,file:H(Wt),"data-testid":"console"},null,8,["file"])):!H(an)&&!H(d)&&H(Wt)?(oe(),Je(J,{key:3,file:H(Wt),"data-testid":"report"},null,8,["file"])):!H(an)&&H(d)?(oe(),Je(O,{key:4,test:H(d),"data-testid":"report"},null,8,["test"])):qe("",!0)])])):qe("",!0)}}}),Qge={h:"full",flex:"~ col"},eve={"flex-auto":"","py-1":"","bg-white":""},tve=["src"],nve=at({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),ye("div",Qge,[r[0]||(r[0]=Q("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Q("div",{class:"i-carbon:folder-details-reference"}),Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),Q("div",eve,[Q("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,tve)])]))}}),rve={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},ive={"font-bold":""},ove={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},sve=["font-bold"],lve={text:"red500/70"},ave={key:1,text:"sm","mb-2":""},cve={"font-bold":""},uve={key:2,text:"sm","mb-2":""},fve={"font-bold":""},dve={key:3,text:"sm","font-thin":""},hve=at({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(oe(),ye(nt,null,[Q("h4",rve,[Q("span",ive,[dt(ze(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),ye(nt,{key:0},[dt(":")],64)):qe("",!0)]),dt(" "+ze(t.error.message),1)]),t.error.stacks?.length?(oe(),ye("p",ove,[(oe(!0),ye(nt,null,ur(t.error.stacks,(o,s)=>(oe(),ye("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[dt("❯ "+ze(o.method)+" "+ze(o.file)+":",1),Q("span",lve,ze(o.line)+":"+ze(o.column),1),r[0]||(r[0]=Q("br",null,null,-1))],8,sve))),128))])):qe("",!0),t.error.VITEST_TEST_PATH?(oe(),ye("p",ave,[r[1]||(r[1]=dt(" This error originated in ",-1)),Q("span",cve,ze(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=dt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):qe("",!0),t.error.VITEST_TEST_NAME?(oe(),ye("div",uve,[r[3]||(r[3]=dt(" The latest test that might've caused the error is ",-1)),Q("span",fve,ze(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=dt(". It might mean one of the following:",-1)),r[5]||(r[5]=Q("br",null,null,-1)),r[6]||(r[6]=Q("ul",null,[Q("li",null," The error was thrown, while Vitest was running this test. "),Q("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):qe("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),ye("div",dve,[...r[7]||(r[7]=[dt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:",-1),Q("br",null,null,-1),Q("ul",null,[Q("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Q("li",null," Wait for promises to resolve using the await keyword. ")],-1)])])):qe("",!0)],64))}}),pve={"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:""},gve={class:"number","data-testid":"num-files"},vve={class:"number"},mve={class:"number","text-red5":""},yve={class:"number","text-red5":""},bve={class:"number","text-red5":""},wve={class:"number","data-testid":"run-time"},xve={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},_ve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Sve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},kve=at({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=hve;return oe(),ye(nt,null,[Q("div",pve,[r[8]||(r[8]=Q("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=Q("div",null,"Files",-1)),Q("div",gve,ze(H(Ae).summary.files),1),H(Ae).summary.filesSuccess?(oe(),ye(nt,{key:0},[r[0]||(r[0]=Q("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=Q("div",null,"Pass",-1)),Q("div",vve,ze(H(Ae).summary.filesSuccess),1)],64)):qe("",!0),H(Ae).summary.filesFailed?(oe(),ye(nt,{key:1},[r[2]||(r[2]=Q("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=Q("div",null," Fail ",-1)),Q("div",mve,ze(H(Ae).summary.filesFailed),1)],64)):qe("",!0),H(Ae).summary.filesSnapshotFailed?(oe(),ye(nt,{key:2},[r[4]||(r[4]=Q("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=Q("div",null," Snapshot Fail ",-1)),Q("div",yve,ze(H(Ae).summary.filesSnapshotFailed),1)],64)):qe("",!0),H(Ui).length?(oe(),ye(nt,{key:3},[r[6]||(r[6]=Q("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=Q("div",null," Errors ",-1)),Q("div",bve,ze(H(Ui).length),1)],64)):qe("",!0),r[10]||(r[10]=Q("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=Q("div",null,"Time",-1)),Q("div",wve,ze(H(Ae).summary.time),1)]),H(Ui).length?(oe(),ye("div",xve,[r[15]||(r[15]=Q("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Q("p",_ve,[dt(" Vitest caught "+ze(H(Ui).length)+" error"+ze(H(Ui).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=Q("br",null,null,-1)),r[13]||(r[13]=dt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Q("details",Sve,[r[14]||(r[14]=Q("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),ye(nt,null,ur(H(Ui),(s,c)=>(oe(),Je(o,{key:c,error:s},null,8,["error"]))),128))])])):qe("",!0)],64)}}}),Tve=Yr(kve,[["__scopeId","data-v-0178ddee"]]),Cve={"p-2":"","text-center":"",flex:""},Eve={"text-4xl":"","min-w-2em":""},Ave={"text-md":""},Lve=at({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),ye("div",Cve,[Q("div",null,[Q("div",Eve,[bn(t.$slots,"body")]),Q("div",Ave,[bn(t.$slots,"header")])])]))}}),Mve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},$ve=at({__name:"TestsEntry",setup(e){function t(r){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,r!=="total"&&(Ze[r]=!0)}return(r,o)=>{const s=Lve;return oe(),ye("div",Mve,[Oe(s,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=c=>t("success"))},{header:it(()=>[...o[4]||(o[4]=[dt(" Pass ",-1)])]),body:it(()=>[dt(ze(H(Ae).summary.testsSuccess),1)]),_:1}),Oe(s,{class:ot({"text-red5":H(Ae).summary.testsFailed,op50:!H(Ae).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=c=>t("failed"))},{header:it(()=>[...o[5]||(o[5]=[dt(" Fail ",-1)])]),body:it(()=>[dt(ze(H(Ae).summary.testsFailed),1)]),_:1},8,["class"]),H(Ae).summary.testsSkipped?(oe(),Je(s,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=c=>t("skipped"))},{header:it(()=>[...o[6]||(o[6]=[dt(" Skip ",-1)])]),body:it(()=>[dt(ze(H(Ae).summary.testsSkipped),1)]),_:1})):qe("",!0),H(Ae).summary.testsTodo?(oe(),Je(s,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>[...o[7]||(o[7]=[dt(" Todo ",-1)])]),body:it(()=>[dt(ze(H(Ae).summary.testsTodo),1)]),_:1})):qe("",!0),Oe(s,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=c=>t("total"))},{header:it(()=>[...o[8]||(o[8]=[dt(" Total ",-1)])]),body:it(()=>[dt(ze(H(Ae).summary.totalTests),1)]),_:1})])}}}),Nve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Ove={key:0,class:"text-gray-5"},Pve={"aria-labelledby":"tests",m:"y-4 x-2"},Rve=at({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=$ve,s=Tve;return oe(),ye("div",Nve,[H(Ae).summary.files===0&&H(ms)?(oe(),ye("div",Ove," No tests found ")):qe("",!0),Q("section",Pve,[Oe(o)]),Oe(s)])}}}),zve={},Ive={h:"full",flex:"~ col"},Dve={class:"scrolls","flex-auto":"","py-1":""};function Fve(e,t){const r=Rve;return oe(),ye("div",Ive,[t[0]||(t[0]=Q("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Q("div",{class:"i-carbon-dashboard"}),Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),Q("div",Dve,[Oe(r)])])}const Hve=Yr(zve,[["render",Fve]]),Bve=["open"],Wve=at({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(oe(),ye("div",{open:H(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Q("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=Q("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),bn(r.$slots,"summary",{open:H(t)}),o[2]||(o[2]=Q("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),bn(r.$slots,"default")],40,Bve))}}),qve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},jve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),ye("button",qve,[Q("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Uve=["aria-label","data-current"],Vve={key:1,"w-4":""},Gve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Kve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Xve={"text-sm":"",truncate:"","font-light":""},Yve=["text","innerHTML"],Zve={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Jve={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Qve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},eme={key:1},tme=at({__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=_e(()=>ht.state.idMap.get(e.taskId)),r=_e(()=>{if(fr)return!1;const A=t.value;return A&&Xh(A)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Ae.collapseNode(e.taskId):Ae.expandNode(e.taskId)}async function s(A){e.onItemClick?.(A),bs.value&&(uu.value=!0,await Et()),e.type==="file"?await Qh([A.file]):await rce(A)}function c(A){return ht.rpc.updateSnapshot(A.file)}const f=_e(()=>e.indent<=0?[]:Array.from({length:e.indent},(A,L)=>`${e.taskId}-${L}`)),d=_e(()=>{const A=f.value,L=[];return(e.type==="file"||e.type==="suite")&&L.push("min-content"),L.push("min-content"),e.type==="suite"&&e.typecheck&&L.push("min-content"),L.push("minmax(0, 1fr)"),L.push("min-content"),`grid-template-columns: ${A.map(()=>"1rem").join(" ")} ${L.join(" ")};`}),h=_e(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=_e(()=>pw(e.name)),v=_e(()=>{const A=aA.value,L=p.value;return A?L.replace(A,$=>`<span class="highlight">${$}</span>`):L}),m=_e(()=>e.type!=="file"&&e.disableTaskLocation),b=_e(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=_e(()=>m.value?"color-red5 dark:color-#f43f5e":null);function M(){const A=t.value;e.type==="file"?e.onItemClick?.(A):Pw(A)}const E=_e(()=>mw(e.projectNameColor));return(A,L)=>{const $=zx,R=jve,C=Zr,D=Pr("tooltip");return H(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:Jt(H(d)),"aria-label":A.name,"data-current":A.current,onClick:L[2]||(L[2]=U=>o())},[A.indent>0?(oe(!0),ye(nt,{key:0},ur(H(f),U=>(oe(),ye("div",{key:U,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):qe("",!0),A.type==="file"||A.type==="suite"?(oe(),ye("div",Vve,[Q("div",{class:ot(A.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):qe("",!0),Oe($,{state:A.state,mode:H(t).mode,"failed-snapshot":H(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Q("div",Gve,[A.type==="file"&&A.typecheck?ct((oe(),ye("div",Kve,null,512)),[[D,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),Q("span",Xve,[A.type==="file"&&A.projectName?(oe(),ye("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Jt({backgroundColor:A.projectNameColor,color:H(E)})},ze(A.projectName),5)):qe("",!0),Q("span",{text:A.state==="fail"?"red-500":"",innerHTML:H(v)},null,8,Yve)]),typeof A.duration=="number"?(oe(),ye("span",Zve,ze(A.duration>0?A.duration:"< 1")+"ms ",1)):qe("",!0)]),Q("div",Jve,[!H(fr)&&H(r)?ct((oe(),Je(R,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:L[0]||(L[0]=Pc(U=>c(H(t)),["prevent","stop"]))},null,512)),[[D,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),Oe(H(Db),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",H(x)])},{popper:it(()=>[H(m)?(oe(),ye("div",Qve,[L[5]||(L[5]=Q("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Q("div",null,[dt(ze(H(b))+": this feature is not available, you have disabled ",1),L[3]||(L[3]=Q("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),L[4]||(L[4]=dt(" in your configuration file.",-1))]),L[6]||(L[6]=Q("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",eme,ze(H(b)),1))]),default:it(()=>[Oe(C,{"data-testid":"btn-open-details",icon:A.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Pc(M,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),H(fr)?qe("",!0):ct((oe(),Je(C,{key:1,"data-testid":"btn-run-test",title:H(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:L[1]||(L[1]=Pc(U=>s(H(t)),["prevent","stop"]))},null,8,["title"])),[[D,H(h),void 0,{bottom:!0}]])])],12,Uve)):qe("",!0)}}}),nme=Yr(tme,[["__scopeId","data-v-5b954324"]]),rme={"flex-1":"","ms-2":"","select-none":""},ime=at({__name:"FilterStatus",props:ta({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nu(e,"modelValue");return(r,o)=>(oe(),ye("label",mi({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]=Pc(s=>t.value=!t.value,["prevent"]))}),[Q("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(Q("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[gb,t.value]]),Q("span",rme,ze(r.label),1)],16))}});function ome(){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 Bc;function ch(){ch.init||(ch.init=!0,Bc=ome()!==-1)}var Ku={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ch(),Et(()=>{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",Bc&&this.$el.appendChild(e),e.data="about:blank",Bc||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&&(!Bc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const sme=Ay();Cy("data-v-b329ee4c");const lme={class:"resize-observer",tabindex:"-1"};Ey();const ame=sme((e,t,r,o,s,c)=>(oe(),Je("div",lme)));Ku.render=ame;Ku.__scopeId="data-v-b329ee4c";Ku.__file="src/components/ResizeObserver.vue";function Wc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wc=function(t){return typeof t}:Wc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}function cme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ume(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 fme(e,t,r){return t&&ume(e.prototype,t),e}function E0(e){return dme(e)||hme(e)||pme(e)||gme()}function dme(e){if(Array.isArray(e))return uh(e)}function hme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pme(e,t){if(e){if(typeof e=="string")return uh(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 uh(e,t)}}function uh(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 gme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function mme(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(E0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(E0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function Ix(e,t){if(e===t)return!0;if(Wc(e)==="object"){for(var r in e)if(!Ix(e[r],t[r]))return!1;return!0}return!1}var yme=(function(){function e(t,r,o){cme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return fme(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=vme(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=mme(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),Et(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 Dx(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 yme(e,o,r);e._vue_visibilityState=s}}function bme(e,t,r){var o=t.value,s=t.oldValue;if(!Ix(o,s)){var c=e._vue_visibilityState;if(!o){Fx(e);return}c?c.createObserver(o,r):Dx(e,{value:o},r)}}function Fx(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var wme={beforeMount:Dx,updated:bme,unmounted:Fx},xme={itemsLimit:1e3},_me=/(auto|scroll)/;function Hx(e,t){return e.parentNode===null?t:Hx(e.parentNode,t.concat([e]))}var yd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Sme=function(t){return yd(t,"overflow")+yd(t,"overflow-y")+yd(t,"overflow-x")},kme=function(t){return _me.test(Sme(t))};function A0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Hx(e.parentNode,[]),r=0;r<t.length;r+=1)if(kme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function fh(e){"@babel/helpers - typeof";return fh=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},fh(e)}var Tme={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 Cme(){return this.items.length&&fh(this.items[0])!=="object"}var dh=!1;if(typeof window<"u"){dh=!1;try{var Eme=Object.defineProperty({},"passive",{get:function(){dh=!0}});window.addEventListener("test",null,Eme)}catch{}}let Ame=0;var dp={name:"RecycleScroller",components:{ResizeObserver:Ku},directives:{ObserveVisibility:wme},props:{...Tme,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:Cme,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=Eh({id:Ame++,index:t,used:!0,key:o,type:s}),f=kh({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,x=this.pool,M=this.itemIndexByKey;let E,A,L,$,R;if(!p)E=A=$=R=L=0;else if(this.$_prerender)E=$=0,A=R=Math.min(this.prerender,h.length),L=null;else{const G=this.getScroll();if(t){let P=G.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),r===null&&P<c||P<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const J=this.buffer;G.start-=J,G.end+=J;let O=0;if(this.$refs.before&&(O=this.$refs.before.scrollHeight,G.start-=O),this.$refs.after){const P=this.$refs.after.scrollHeight;G.end+=P}if(r===null){let P,N=0,S=p-1,F=~~(p/2),V;do V=F,P=v[F].accumulator,P<G.start?N=F:F<p-1&&v[F+1].accumulator>G.start&&(S=F),F=~~((N+S)/2);while(F!==V);for(F<0&&(F=0),E=F,L=v[p-1].accumulator,A=F;A<p&&v[A].accumulator<G.end;A++);for(A===-1?A=h.length-1:(A++,A>p&&(A=p)),$=E;$<p&&O+v[$].accumulator<G.start;$++);for(R=$;R<p&&O+v[R].accumulator<G.end;R++);}else{E=~~(G.start/r*o);const P=E%o;E-=P,A=Math.ceil(G.end/r*o),$=Math.max(0,Math.floor((G.start-O)/r*o)),R=Math.floor((G.end-O)/r*o),E<0&&(E=0),A>p&&(A=p),$<0&&($=0),R>p&&(R=p),L=Math.ceil(p/o)*r}}A-E>xme.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let C;const D=E<=this.$_endIndex&&A>=this.$_startIndex;if(D)for(let G=0,J=x.length;G<J;G++)C=x[G],C.nr.used&&(e&&(C.nr.index=M[C.item[d]]),(C.nr.index==null||C.nr.index<E||C.nr.index>=A)&&this.unuseView(C));const U=D?null:new Map;let ie,le,ne;for(let G=E;G<A;G++){ie=h[G];const J=d?ie[d]:ie;if(J==null)throw new Error(`Key is ${J} on item (keyField is '${d}')`);if(C=m.get(J),!r&&!v[G].size){C&&this.unuseView(C);continue}le=ie[f];let O=b.get(le),P=!1;if(!C)D?O&&O.length?C=O.pop():C=this.addView(x,G,ie,J,le):(ne=U.get(le)||0,(!O||ne>=O.length)&&(C=this.addView(x,G,ie,J,le),this.unuseView(C,!0),O=b.get(le)),C=O[ne],U.set(le,ne+1)),m.delete(C.nr.key),C.nr.used=!0,C.nr.index=G,C.nr.key=J,C.nr.type=le,m.set(J,C),P=!0;else if(!C.nr.used&&(C.nr.used=!0,P=!0,O)){const N=O.indexOf(C);N!==-1&&O.splice(N,1)}C.item=ie,P&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(C.position=v[G-1].accumulator,C.offset=0):(C.position=Math.floor(G/o)*r,C.offset=G%o*s)}return this.$_startIndex=E,this.$_endIndex=A,this.emitUpdate&&this.$emit("update",E,A,$,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:D}},getListenerTarget(){let e=A0(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,dh?{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=A0(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"},Mme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function $me(e,t,r,o,s,c){const f=zo("ResizeObserver"),d=Pr("observe-visibility");return ct((oe(),ye("div",{class:ot(["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,[bn(e.$slots,"before")],512)):qe("v-if",!0),(oe(),Je(Ad(r.listTag),{ref:"wrapper",style:Jt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:it(()=>[(oe(!0),ye(nt,null,ur(s.pool,h=>(oe(),Je(Ad(r.itemTag),mi({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}]]},sk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[bn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),bn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),ye("div",Mme,[bn(e.$slots,"after")],512)):qe("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}dp.render=$me;dp.__file="src/components/RecycleScroller.vue";function Nme(e){const t=_e(()=>Vd.value?!1:!Ze.onlyTests),r=_e(()=>Wn.value===""),o=Ue(Wn.value);Vh(()=>Wn.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Wn.value="",h&&e.value?.focus()}function c(h){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Fs.value&&(un.value.search=h?.trim()??"",un.value.failed=p,un.value.success=v,un.value.skipped=m,un.value.onlyTests=b)}return _t(()=>[o.value,Ze.failed,Ze.success,Ze.skipped,Ze.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ae.filterNodes()},{flush:"post"}),_t(()=>Nr.value.length,h=>{h&&(un.value.expandAll=void 0)},{flush:"post"}),{initialized:Fs,filter:Ze,search:Wn,disableFilter:t,isFiltered:gw,isFilteredByStatus:Vd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:qu,testsTotal:cA,uiEntries:Kn}}const Ome={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Pme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Rme=["op"],zme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Ime={"text-red5":""},Dme={"text-yellow5":""},Fme={"text-green5":""},Hme={class:"text-purple5:50"},Bme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Wme=["disabled"],qme=["disabled"],jme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Ume=at({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=_e(()=>Bs.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:x,clearFilter:M,filteredFiles:E,testsTotal:A,uiEntries:L}=Nme(s),$=Ue("grid-cols-2"),R=Ue("grid-col-span-2"),C=Ue();return dw(()=>C.value,([{contentRect:D}])=>{D.width<420?($.value="grid-cols-2",R.value="grid-col-span-2"):($.value="grid-cols-4",R.value="grid-col-span-4")}),(D,U)=>{const ie=Zr,le=ime,ne=nme,G=Wve,J=Pr("tooltip");return oe(),ye("div",{ref_key:"testExplorerRef",ref:C,h:"full",flex:"~ col"},[Q("div",null,[Q("div",Ome,[bn(D.$slots,"header",{filteredFiles:H(p)||H(v)?H(E):void 0})]),Q("div",Pme,[U[13]||(U[13]=Q("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(Q("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=O=>kt(d)?d.value=O:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:H(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Id(O=>H(x)(!1),["esc"])),U[2]||(U[2]=Id(O=>r("run",H(p)||H(v)?H(E):void 0),["enter"]))]},null,40,Rme),[[TT,H(d)]]),ct(Oe(ie,{disabled:H(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=O=>H(x)(!0))},null,8,["disabled"]),[[J,"Clear search",void 0,{bottom:!0}]])]),Q("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(H($))},[Q("div",{class:ot(H(R)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=Q("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=Q("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Oe(ie,{disabled:H(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=O=>H(M)(!1))},null,8,["disabled"]),[[J,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(le,{modelValue:H(f).failed,"onUpdate:modelValue":U[5]||(U[5]=O=>H(f).failed=O),label:"Fail"},null,8,["modelValue"]),Oe(le,{modelValue:H(f).success,"onUpdate:modelValue":U[6]||(U[6]=O=>H(f).success=O),label:"Pass"},null,8,["modelValue"]),Oe(le,{modelValue:H(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=O=>H(f).skipped=O),label:"Skip"},null,8,["modelValue"]),Oe(le,{modelValue:H(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=O=>H(f).onlyTests=O),label:"Only Tests"},null,8,["modelValue"])],2)]),Q("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...O)=>H(pm)&&H(pm)(...O))},[Oe(G,null,ok({default:it(()=>[(H(p)||H(v))&&H(L).length===0?(oe(),ye(nt,{key:0},[H(c)?(oe(),ye("div",Bme,[U[18]||(U[18]=Q("div",{op30:""}," No matched test ",-1)),Q("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(H(m)?null:"hover:op100"),disabled:H(m),onClickPassive:U[9]||(U[9]=O=>H(x)(!0))}," Clear Search ",42,Wme),Q("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(H(h)?null:"hover:op100"),disabled:H(h),onClickPassive:U[10]||(U[10]=O=>H(M)(!0))}," Clear Filter ",42,qme),Q("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]=(...O)=>H(b)&&H(b)(...O))}," Clear All ",32)])):(oe(),ye("div",jme,[...U[19]||(U[19]=[Q("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Q("div",{op30:""}," Loading... ",-1)])]))],64)):(oe(),Je(H(dp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:H(L),buffer:100},{default:it(({item:O})=>[Oe(ne,{class:ot(["h-28px m-0 p-0",H(oo)===O.id?"bg-active":""]),"task-id":O.id,expandable:O.expandable,type:O.type,current:H(oo)===O.id,indent:O.indent,name:O.name,typecheck:O.typecheck===!0,"project-name":O.projectName??"","project-name-color":O.projectNameColor??"",state:O.state,duration:O.duration,opened:O.expanded,"disable-task-location":!H(o),"on-item-click":D.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},[H(c)?{name:"summary",fn:it(()=>[Q("div",zme,[Q("span",Ime," FAIL ("+ze(H(A).failed)+") ",1),U[16]||(U[16]=Q("span",null,"/",-1)),Q("span",Dme," RUNNING ("+ze(H(A).running)+") ",1),Q("span",Fme," PASS ("+ze(H(A).success)+") ",1),U[17]||(U[17]=Q("span",null,"/",-1)),Q("span",Hme," SKIP ("+ze(H(f).onlyTests?H(A).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Vme=""+new URL("../favicon.svg",import.meta.url).href,Gme={class:"flex text-lg"},Kme=at({__name:"Navigation",setup(e){function t(){return ht.rpc.updateSnapshot()}const r=_e(()=>Ks.value?"light":"dark");async function o(f){bs.value&&(uu.value=!0,await Et(),so.value&&(fu(!0),await Et())),f?.length?await Qh(f):await tce()}function s(){Ae.collapseAllNodes()}function c(){Ae.expandAllNodes()}return(f,d)=>{const h=Zr,p=Ume,v=Pr("tooltip");return oe(),Je(p,{border:"r base","on-item-click":H(kae),nested:!0,onRun:o},{header:it(({filteredFiles:m})=>[d[8]||(d[8]=Q("img",{"w-6":"","h-6":"",src:Vme,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=Q("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Q("div",Gme,[ct(Oe(h,{title:"Collapse tests",disabled:!H(Fs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Ki,!H(Nm)],[v,"Collapse tests",void 0,{bottom:!0}]]),ct(Oe(h,{disabled:!H(Fs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Ki,H(Nm)],[v,"Expand tests",void 0,{bottom:!0}]]),ct(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>H(fu)(!0))},null,512),[[Ki,H(Xd)&&!H(bs)||!H(Ms)],[v,"Dashboard",void 0,{bottom:!0}]]),H(Xd)&&!H(bs)?(oe(),Je(H(Db),{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:it(()=>[...d[6]||(d[6]=[Q("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Q("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Q("div",null,"Coverage enabled but missing html reporter."),Q("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:it(()=>[d[7]||(d[7]=Q("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):qe("",!0),H(bs)?ct((oe(),Je(h,{key:1,disabled:H(uu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>H(Tae)())},null,8,["disabled"])),[[Ki,!H(so)],[v,"Coverage",void 0,{bottom:!0}]]):qe("",!0),H(Ae).summary.failedSnapshot&&!H(fr)?ct((oe(),Je(h,{key:2,icon:"i-carbon:result-old",disabled:!H(Ae).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>H(Ae).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),H(fr)?qe("",!0):ct((oe(),Je(h,{key:3,disabled: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}]]),ct(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>H(Nce)())},null,512),[[v,`Toggle to ${H(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Xme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Yme=at({__name:"ProgressBar",setup(e){const{width:t}=hw(),r=_e(()=>[Ae.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ms.value&&"in-progress"].filter(Boolean).join(" ")),o=_e(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesSuccess/d:0}),s=_e(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesFailed/d:0}),c=_e(()=>Ae.summary.files-Ae.summary.filesFailed-Ae.summary.filesSuccess),f=_e(()=>{const d=Ae.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:ot(H(r))},[Q("div",Xme,[Q("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(H(r)),style:Jt(`width: ${H(s)}px;`)}," ",6),Q("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(H(r)),style:Jt(`left: ${H(s)}px; width: ${H(o)}px;`)}," ",6),Q("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(H(r)),style:Jt(`left: ${H(o)+H(s)}px; width: ${H(f)}px;`)}," ",6)])],2))}}),Zme=Yr(Yme,[["__scopeId","data-v-16879415"]]),L0={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const r=t,o=e,s=ak(),c=Ue([]),f=_e(()=>c.value.reduce((te,B)=>(te[~~B.id]=B)&&te,{})),d=_e(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=_e(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),x=()=>{document.addEventListener("mousemove",A,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",L))},M=()=>{document.removeEventListener("mousemove",A,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",A,{passive:!1}),document.removeEventListener("touchend",L))},E=(te,B)=>{const Z=te.target.closest(".splitpanes__splitter");if(Z){const{left:K,top:ae}=Z.getBoundingClientRect(),{clientX:pe,clientY:z}="ontouchstart"in window&&te.touches?te.touches[0]:te;v.value.cursorOffset=o.horizontal?z-ae:pe-K}x(),v.value.mouseDown=!0,v.value.activeSplitter=B},A=te=>{v.value.mouseDown&&(te.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ie(D(te)),r("resize",c.value.map(B=>({min:B.min,max:B.max,size:B.size})))}))},L=()=>{v.value.dragging&&r("resized",c.value.map(te=>({min:te.min,max:te.max,size:te.size}))),v.value.mouseDown=!1,setTimeout(()=>{v.value.dragging=!1,M()},100)},$=(te,B)=>{"ontouchstart"in window&&(te.preventDefault(),o.dblClickSplitter&&(m.value.splitter===B?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,R(te,B),m.value.splitter=null):(m.value.splitter=B,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),v.value.dragging||r("splitter-click",c.value[B])},R=(te,B)=>{let Z=0;c.value=c.value.map((K,ae)=>(K.size=ae===B?K.max:K.min,ae!==B&&(Z+=K.min),K)),c.value[B].size-=Z,r("pane-maximize",c.value[B]),r("resized",c.value.map(K=>({min:K.min,max:K.max,size:K.size})))},C=(te,B)=>{r("pane-click",f.value[B])},D=te=>{const B=h.value.getBoundingClientRect(),{clientX:Z,clientY:K}="ontouchstart"in window&&te.touches?te.touches[0]:te;return{x:Z-(o.horizontal?0:v.value.cursorOffset)-B.left,y:K-(o.horizontal?v.value.cursorOffset:0)-B.top}},U=te=>{te=te[o.horizontal?"y":"x"];const B=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(te=B-te),te*100/B},ie=te=>{const B=v.value.activeSplitter;let Z={prevPanesSize:ne(B),nextPanesSize:G(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const K=0+(o.pushOtherPanes?0:Z.prevPanesSize),ae=100-(o.pushOtherPanes?0:Z.nextPanesSize),pe=Math.max(Math.min(U(te),ae),K);let z=[B,B+1],j=c.value[z[0]]||null,X=c.value[z[1]]||null;const ue=j.max<100&&pe>=j.max+Z.prevPanesSize,he=X.max<100&&pe<=100-(X.max+G(B+1));if(ue||he){ue?(j.size=j.max,X.size=Math.max(100-j.max-Z.prevPanesSize-Z.nextPanesSize,0)):(j.size=Math.max(100-X.max-Z.prevPanesSize-G(B+1),0),X.size=X.max);return}if(o.pushOtherPanes){const fe=le(Z,pe);if(!fe)return;({sums:Z,panesToResize:z}=fe),j=c.value[z[0]]||null,X=c.value[z[1]]||null}j!==null&&(j.size=Math.min(Math.max(pe-Z.prevPanesSize-Z.prevReachedMinPanes,j.min),j.max)),X!==null&&(X.size=Math.min(Math.max(100-pe-Z.nextPanesSize-Z.nextReachedMinPanes,X.min),X.max))},le=(te,B)=>{const Z=v.value.activeSplitter,K=[Z,Z+1];return B<te.prevPanesSize+c.value[K[0]].min&&(K[0]=J(Z).index,te.prevReachedMinPanes=0,K[0]<Z&&c.value.forEach((ae,pe)=>{pe>K[0]&&pe<=Z&&(ae.size=ae.min,te.prevReachedMinPanes+=ae.min)}),te.prevPanesSize=ne(K[0]),K[0]===void 0)?(te.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,pe)=>{pe>0&&pe<=Z&&(ae.size=ae.min,te.prevReachedMinPanes+=ae.min)}),c.value[K[1]].size=100-te.prevReachedMinPanes-c.value[0].min-te.prevPanesSize-te.nextPanesSize,null):B>100-te.nextPanesSize-c.value[K[1]].min&&(K[1]=O(Z).index,te.nextReachedMinPanes=0,K[1]>Z+1&&c.value.forEach((ae,pe)=>{pe>Z&&pe<K[1]&&(ae.size=ae.min,te.nextReachedMinPanes+=ae.min)}),te.nextPanesSize=G(K[1]-1),K[1]===void 0)?(te.nextReachedMinPanes=0,c.value.forEach((ae,pe)=>{pe<d.value-1&&pe>=Z+1&&(ae.size=ae.min,te.nextReachedMinPanes+=ae.min)}),c.value[K[0]].size=100-te.prevPanesSize-G(K[0]-1),null):{sums:te,panesToResize:K}},ne=te=>c.value.reduce((B,Z,K)=>B+(K<te?Z.size:0),0),G=te=>c.value.reduce((B,Z,K)=>B+(K>te+1?Z.size:0),0),J=te=>[...c.value].reverse().find(B=>B.index<te&&B.size>B.min)||{},O=te=>c.value.find(B=>B.index>te+1&&B.size>B.min)||{},P=()=>{var te;Array.from(((te=h.value)==null?void 0:te.children)||[]).forEach(B=>{const Z=B.classList.contains("splitpanes__pane"),K=B.classList.contains("splitpanes__splitter");!Z&&!K&&(B.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},N=(te,B,Z=!1)=>{const K=te-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),Z||(ae.onmousedown=pe=>E(pe,K),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=pe=>E(pe,K)),ae.onclick=pe=>$(pe,K+1)),o.dblClickSplitter&&(ae.ondblclick=pe=>R(pe,K+1)),B.parentNode.insertBefore(ae,B)},S=te=>{te.onmousedown=void 0,te.onclick=void 0,te.ondblclick=void 0,te.remove()},F=()=>{var te;const B=Array.from(((te=h.value)==null?void 0:te.children)||[]);B.forEach(K=>{K.className.includes("splitpanes__splitter")&&S(K)});let Z=0;B.forEach(K=>{K.className.includes("splitpanes__pane")&&(!Z&&o.firstSplitter?N(Z,K,!0):Z&&N(Z,K),Z++)})},V=({uid:te,...B})=>{const Z=f.value[te];Object.entries(B).forEach(([K,ae])=>Z[K]=ae)},re=te=>{var B;let Z=-1;Array.from(((B=h.value)==null?void 0:B.children)||[]).some(K=>(K.className.includes("splitpanes__pane")&&Z++,K.isSameNode(te.el))),c.value.splice(Z,0,{...te,index:Z}),c.value.forEach((K,ae)=>K.index=ae),p.value&&Et(()=>{F(),Se({addedPane:c.value[Z]}),r("pane-add",{index:Z,panes:c.value.map(K=>({min:K.min,max:K.max,size:K.size}))})})},me=te=>{const B=c.value.findIndex(K=>K.id===te),Z=c.value.splice(B,1)[0];c.value.forEach((K,ae)=>K.index=ae),Et(()=>{F(),Se({removedPane:{...Z}}),r("pane-remove",{removed:Z,panes:c.value.map(K=>({min:K.min,max:K.max,size:K.size}))})})},Se=(te={})=>{!te.addedPane&&!te.removedPane?je():c.value.some(B=>B.givenSize!==null||B.min||B.max<100)?Qe(te):Re(),p.value&&r("resized",c.value.map(B=>({min:B.min,max:B.max,size:B.size})))},Re=()=>{const te=100/d.value;let B=0;const Z=[],K=[];c.value.forEach(ae=>{ae.size=Math.max(Math.min(te,ae.max),ae.min),B-=ae.size,ae.size>=ae.max&&Z.push(ae.id),ae.size<=ae.min&&K.push(ae.id)}),B>.1&&Xe(B,Z,K)},je=()=>{let te=100;const B=[],Z=[];let K=0;c.value.forEach(pe=>{te-=pe.size,pe.givenSize!==null&&K++,pe.size>=pe.max&&B.push(pe.id),pe.size<=pe.min&&Z.push(pe.id)});let ae=100;te>.1&&(c.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(te/(d.value-K),pe.max),pe.min)),ae-=pe.size}),ae>.1&&Xe(ae,B,Z))},Qe=({addedPane:te,removedPane:B}={})=>{let Z=100/d.value,K=0;const ae=[],pe=[];(te?.givenSize??null)!==null&&(Z=(100-te.givenSize)/(d.value-1).value),c.value.forEach(z=>{K-=z.size,z.size>=z.max&&ae.push(z.id),z.size<=z.min&&pe.push(z.id)}),!(Math.abs(K)<.1)&&(c.value.forEach(z=>{te?.givenSize!==null&&te?.id===z.id||(z.size=Math.max(Math.min(Z,z.max),z.min)),K-=z.size,z.size>=z.max&&ae.push(z.id),z.size<=z.min&&pe.push(z.id)}),K>.1&&Xe(K,ae,pe))},Xe=(te,B,Z)=>{let K;te>0?K=te/(d.value-B.length):K=te/(d.value-Z.length),c.value.forEach((ae,pe)=>{if(te>0&&!B.includes(ae.id)){const z=Math.max(Math.min(ae.size+K,ae.max),ae.min),j=z-ae.size;te-=j,ae.size=z}else if(!Z.includes(ae.id)){const z=Math.max(Math.min(ae.size+K,ae.max),ae.min),j=z-ae.size;te-=j,ae.size=z}}),Math.abs(te)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};_t(()=>o.firstSplitter,()=>F()),_t(()=>o.dblClickSplitter,te=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((B,Z)=>{B.ondblclick=te?K=>R(K,Z):void 0})}),Ta(()=>p.value=!1),ao(()=>{P(),F(),Se(),r("ready"),p.value=!0});const Ye=()=>{var te;return Ea("div",{ref:h,class:b.value},(te=s.default)==null?void 0:te.call(s))};return kr("panes",c),kr("indexedPanes",f),kr("horizontal",_e(()=>o.horizontal)),kr("requestUpdate",V),kr("onPaneAdd",re),kr("onPaneRemove",me),kr("onPaneClick",C),(te,B)=>(oe(),Je(Ad(Ye)))}},Lc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=mn("requestUpdate"),s=mn("onPaneAdd"),c=mn("horizontal"),f=mn("onPaneRemove"),d=mn("onPaneClick"),h=(t=ki())==null?void 0:t.uid,p=mn("indexedPanes"),v=_e(()=>p.value[h]),m=Ue(null),b=_e(()=>{const A=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(A,M.value),x.value)}),x=_e(()=>{const A=parseFloat(r.minSize);return isNaN(A)?0:A}),M=_e(()=>{const A=parseFloat(r.maxSize);return isNaN(A)?100:A}),E=_e(()=>{var A;return`${c.value?"height":"width"}: ${(A=v.value)==null?void 0:A.size}%`});return ao(()=>{s({id:h,el:m.value,min:x.value,max:M.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),_t(()=>b.value,A=>o({uid:h,size:A})),_t(()=>x.value,A=>o({uid:h,min:A})),_t(()=>M.value,A=>o({uid:h,max:A})),Ta(()=>f(h)),(A,L)=>(oe(),ye("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:L[0]||(L[0]=$=>H(d)($,A._.uid)),style:Jt(E.value)},[bn(A.$slots,"default")],4))}},Jme={"h-screen":"","w-screen":"",overflow:"hidden"},Qme=at({__name:"index",setup(e){const t=Sae(),r=xc(v=>{h(),d(v)},0),o=xc(v=>{v.forEach((m,b)=>{$s.value[b]=m.size}),f(v),p()},0),s=xc(v=>{v.forEach((m,b)=>{eo.value[b]=m.size}),d(v),p()},0),c=xc(v=>{f(v),h()},0);function f(v){At.navigation=v[0].size,At.details.size=v[1].size}function d(v){At.details.browser=v[0].size,At.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>{const b=Zme,x=Kme,M=Hve,E=nve,A=Jge,L=mce,$=sce;return oe(),ye(nt,null,[Oe(b),Q("div",Jme,[Oe(H(L0),{class:"pt-4px",onResized:H(o),onResize:H(c)},{default:it(()=>[Oe(H(Lc),{size:H($s)[0]},{default:it(()=>[Oe(x)]),_:1},8,["size"]),Oe(H(Lc),{size:H($s)[1]},{default:it(()=>[H(Gn)?(oe(),Je(H(L0),{id:"details-splitpanes",key:"browser-detail",onResize:H(r),onResized:H(s)},{default:it(()=>[Oe(H(Lc),{size:H(eo)[0],"min-size":"10"},{default:it(()=>[m[0]||(zs(-1,!0),(m[0]=Oe(L)).cacheIndex=0,zs(1),m[0])]),_:1},8,["size"]),Oe(H(Lc),{size:H(eo)[1]},{default:it(()=>[H(t)?(oe(),Je(M,{key:"summary"})):H(so)?(oe(),Je(E,{key:"coverage",src:H(e0)},null,8,["src"])):(oe(),Je(A,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),Je(oT,{key:"ui-detail"},{default:it(()=>[H(t)?(oe(),Je(M,{key:"summary"})):H(so)?(oe(),Je(E,{key:"coverage",src:H(e0)},null,8,["src"])):(oe(),Je(A,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe($)],64)}}}),e0e=[{name:"index",path:"/",component:Qme,props:!0}];/*!
|
|
50
|
+
* vue-router v4.5.1
|
|
51
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
52
|
+
* @license MIT
|
|
53
|
+
*/const vs=typeof document<"u";function Bx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function t0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Bx(e.default)}const bt=Object.assign;function bd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Or(s)?s.map(e):e(s)}return r}const Xl=()=>{},Or=Array.isArray,Wx=/#/g,n0e=/&/g,r0e=/\//g,i0e=/=/g,o0e=/\?/g,qx=/\+/g,s0e=/%5B/g,l0e=/%5D/g,jx=/%5E/g,a0e=/%60/g,Ux=/%7B/g,c0e=/%7C/g,Vx=/%7D/g,u0e=/%20/g;function hp(e){return encodeURI(""+e).replace(c0e,"|").replace(s0e,"[").replace(l0e,"]")}function f0e(e){return hp(e).replace(Ux,"{").replace(Vx,"}").replace(jx,"^")}function hh(e){return hp(e).replace(qx,"%2B").replace(u0e,"+").replace(Wx,"%23").replace(n0e,"%26").replace(a0e,"`").replace(Ux,"{").replace(Vx,"}").replace(jx,"^")}function d0e(e){return hh(e).replace(i0e,"%3D")}function h0e(e){return hp(e).replace(Wx,"%23").replace(o0e,"%3F")}function p0e(e){return e==null?"":h0e(e).replace(r0e,"%2F")}function ba(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const g0e=/\/$/,v0e=e=>e.replace(g0e,"");function wd(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=w0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ba(f)}}function m0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function M0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function y0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&js(t.matched[o],r.matched[s])&&Gx(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function js(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!b0e(e[r],t[r]))return!1;return!0}function b0e(e,t){return Or(e)?$0(e,t):Or(t)?$0(t,e):e===t}function $0(e,t){return Or(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function w0e(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 Hi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var wa;(function(e){e.pop="pop",e.push="push"})(wa||(wa={}));var Yl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Yl||(Yl={}));function x0e(e){if(!e)if(vs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),v0e(e)}const _0e=/^[^#]+#/;function S0e(e,t){return e.replace(_0e,"#")+t}function k0e(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 Xu=()=>({left:window.scrollX,top:window.scrollY});function T0e(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=k0e(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 N0(e,t){return(history.state?history.state.position-t:-1)+e}const ph=new Map;function C0e(e,t){ph.set(e,t)}function E0e(e){const t=ph.get(e);return ph.delete(e),t}let A0e=()=>location.protocol+"//"+location.host;function Kx(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),M0(h,"")}return M0(r,e)+o+s}function L0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=Kx(e,location),M=r.value,E=t.value;let A=0;if(b){if(r.value=x,t.value=b,f&&f===M){f=null;return}A=E?b.position-E.position:0}else o(x);s.forEach(L=>{L(r.value,M,{delta:A,type:wa.pop,direction:A?A>0?Yl.forward:Yl.back:Yl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const M=s.indexOf(b);M>-1&&s.splice(M,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Xu()}),"")}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 O0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Xu():null}}function M0e(e){const{history:t,location:r}=window,o={value:Kx(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(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,O0(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:Xu()});c(v.current,v,!0);const m=bt({},O0(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 $0e(e){e=x0e(e);const t=M0e(e),r=L0e(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:S0e.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 N0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),$0e(e)}function O0e(e){return typeof e=="string"||e&&typeof e=="object"}function Xx(e){return typeof e=="string"||typeof e=="symbol"}const Yx=Symbol("");var P0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(P0||(P0={}));function Us(e,t){return bt(new Error,{type:e,[Yx]:!0},t)}function ui(e,t){return e instanceof Error&&Yx in e&&(t==null||!!(e.type&t))}const R0="[^/]+?",P0e={sensitive:!1,strict:!1,start:!0,end:!0},R0e=/[.+*?^${}()[\]/\\]/g;function z0e(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 x=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(R0e,"\\$&"),x+=40;else if(b.type===1){const{value:M,repeatable:E,optional:A,regexp:L}=b;c.push({name:M,repeatable:E,optional:A});const $=L||R0;if($!==R0){x+=10;try{new RegExp(`(${$})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${M}" (${$}): `+C.message)}}let R=E?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;m||(R=A&&p.length<2?`(?:/${R})`:"/"+R),A&&(R+="?"),s+=R,x+=20,A&&(x+=-8),E&&(x+=-20),$===".*"&&(x+=-50)}v.push(x)}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 x=v[b]||"",M=c[b-1];m[M.name]=x&&M.repeatable?x.split("/"):x}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:M,repeatable:E,optional:A}=x,L=M in p?p[M]:"";if(Or(L)&&!E)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const $=Or(L)?L.join("/"):L;if(!$)if(A)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${M}"`);v+=$}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function I0e(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 Zx(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=I0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(z0(o))return 1;if(z0(s))return-1}return s.length-o.length}function z0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const D0e={type:0,value:""},F0e=/[a-zA-Z0-9_]/;function H0e(e){if(!e)return[[]];if(e==="/")return[[D0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}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:F0e.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 B0e(e,t,r){const o=z0e(H0e(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 W0e(e,t){const r=[],o=new Map;t=H0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,x){const M=!x,E=D0(m);E.aliasOf=x&&x.record;const A=H0(t,m),L=[E];if("alias"in m){const C=typeof m.alias=="string"?[m.alias]:m.alias;for(const D of C)L.push(D0(bt({},E,{components:x?x.record.components:E.components,path:D,aliasOf:x?x.record:E})))}let $,R;for(const C of L){const{path:D}=C;if(b&&D[0]!=="/"){const U=b.record.path,ie=U[U.length-1]==="/"?"":"/";C.path=b.record.path+(D&&ie+D)}if($=B0e(C,b,A),x?x.alias.push($):(R=R||$,R!==$&&R.alias.push($),M&&m.name&&!F0($)&&f(m.name)),Jx($)&&h($),E.children){const U=E.children;for(let ie=0;ie<U.length;ie++)c(U[ie],$,x&&x.children[ie])}x=x||$}return R?()=>{f(R)}:Xl}function f(m){if(Xx(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=U0e(m,r);r.splice(b,0,m),m.record.name&&!F0(m)&&o.set(m.record.name,m)}function p(m,b){let x,M={},E,A;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Us(1,{location:m});A=x.record.name,M=bt(I0(b.params,x.keys.filter(R=>!R.optional).concat(x.parent?x.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),m.params&&I0(m.params,x.keys.map(R=>R.name))),E=x.stringify(M)}else if(m.path!=null)E=m.path,x=r.find(R=>R.re.test(E)),x&&(M=x.parse(E),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(R=>R.re.test(b.path)),!x)throw Us(1,{location:m,currentLocation:b});A=x.record.name,M=bt({},b.params,m.params),E=x.stringify(M)}const L=[];let $=x;for(;$;)L.unshift($.record),$=$.parent;return{name:A,path:E,params:M,matched:L,meta:j0e(L)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function I0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function D0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:q0e(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 q0e(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 F0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function j0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function H0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function U0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;Zx(e,t[c])<0?o=c:r=c+1}const s=V0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function V0e(e){let t=e;for(;t=t.parent;)if(Jx(t)&&Zx(e,t)===0)return t}function Jx({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function G0e(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(qx," "),f=c.indexOf("="),d=ba(f<0?c:c.slice(0,f)),h=f<0?null:ba(c.slice(f+1));if(d in t){let p=t[d];Or(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function B0(e){let t="";for(let r in e){const o=e[r];if(r=d0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Or(o)?o.map(c=>c&&hh(c)):[o&&hh(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function K0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Or(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const X0e=Symbol(""),W0=Symbol(""),pp=Symbol(""),Qx=Symbol(""),gh=Symbol("");function Nl(){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 Gi(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(Us(4,{from:r,to:t})):b instanceof Error?h(b):O0e(b)?h(Us(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 xd(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(Bx(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Gi(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=t0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const x=(m.__vccOpts||m)[t];return x&&Gi(x,r,o,f,d,s)()}))}}return c}function q0(e){const t=mn(pp),r=mn(Qx),o=_e(()=>{const h=H(e.to);return t.resolve(h)}),s=_e(()=>{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(js.bind(null,v));if(b>-1)return b;const x=j0(h[p-2]);return p>1&&j0(v)===x&&m[m.length-1].path!==x?m.findIndex(js.bind(null,h[p-2])):b}),c=_e(()=>s.value>-1&&eye(r.params,o.value.params)),f=_e(()=>s.value>-1&&s.value===r.matched.length-1&&Gx(r.params,o.value.params));function d(h={}){if(Q0e(h)){const p=t[H(e.replace)?"replace":"push"](H(e.to)).catch(Xl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:_e(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function Y0e(e){return e.length===1?e[0]:e}const Z0e=at({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"},viewTransition:Boolean},useLink:q0,setup(e,{slots:t}){const r=tr(q0(e)),{options:o}=mn(pp),s=_e(()=>({[U0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[U0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&Y0e(t.default(r));return e.custom?c:Ea("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),J0e=Z0e;function Q0e(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 eye(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(!Or(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function j0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const U0=(e,t,r)=>e??t??r,tye=at({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=mn(gh),s=_e(()=>e.route||o.value),c=mn(W0,0),f=_e(()=>{let p=H(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=_e(()=>s.value.matched[f.value]);kr(W0,_e(()=>f.value+1)),kr(X0e,d),kr(gh,s);const h=Ue();return _t(()=>[h.value,d.value,e.name],([p,v,m],[b,x,M])=>{v&&(v.instances[m]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!js(v,x)||!b)&&(v.enterCallbacks[m]||[]).forEach(E=>E(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return V0(r.default,{Component:b,route:p});const x=m.props[v],M=x?x===!0?p.params:typeof x=="function"?x(p):x:null,A=Ea(b,bt({},M,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return V0(r.default,{Component:A,route:p})||A}}});function V0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const nye=tye;function rye(e){const t=W0e(e.routes,e),r=e.parseQuery||G0e,o=e.stringifyQuery||B0,s=e.history,c=Nl(),f=Nl(),d=Nl(),h=Qt(Hi);let p=Hi;vs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=bd.bind(null,B=>""+B),m=bd.bind(null,p0e),b=bd.bind(null,ba);function x(B,Z){let K,ae;return Xx(B)?(K=t.getRecordMatcher(B),ae=Z):ae=B,t.addRoute(ae,K)}function M(B){const Z=t.getRecordMatcher(B);Z&&t.removeRoute(Z)}function E(){return t.getRoutes().map(B=>B.record)}function A(B){return!!t.getRecordMatcher(B)}function L(B,Z){if(Z=bt({},Z||h.value),typeof B=="string"){const X=wd(r,B,Z.path),ue=t.resolve({path:X.path},Z),he=s.createHref(X.fullPath);return bt(X,ue,{params:b(ue.params),hash:ba(X.hash),redirectedFrom:void 0,href:he})}let K;if(B.path!=null)K=bt({},B,{path:wd(r,B.path,Z.path).path});else{const X=bt({},B.params);for(const ue in X)X[ue]==null&&delete X[ue];K=bt({},B,{params:m(X)}),Z.params=m(Z.params)}const ae=t.resolve(K,Z),pe=B.hash||"";ae.params=v(b(ae.params));const z=m0e(o,bt({},B,{hash:f0e(pe),path:ae.path})),j=s.createHref(z);return bt({fullPath:z,hash:pe,query:o===B0?K0e(B.query):B.query||{}},ae,{redirectedFrom:void 0,href:j})}function $(B){return typeof B=="string"?wd(r,B,h.value.path):bt({},B)}function R(B,Z){if(p!==B)return Us(8,{from:Z,to:B})}function C(B){return ie(B)}function D(B){return C(bt($(B),{replace:!0}))}function U(B){const Z=B.matched[B.matched.length-1];if(Z&&Z.redirect){const{redirect:K}=Z;let ae=typeof K=="function"?K(B):K;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=$(ae):{path:ae},ae.params={}),bt({query:B.query,hash:B.hash,params:ae.path!=null?{}:B.params},ae)}}function ie(B,Z){const K=p=L(B),ae=h.value,pe=B.state,z=B.force,j=B.replace===!0,X=U(K);if(X)return ie(bt($(X),{state:typeof X=="object"?bt({},pe,X.state):pe,force:z,replace:j}),Z||K);const ue=K;ue.redirectedFrom=Z;let he;return!z&&y0e(o,ae,K)&&(he=Us(16,{to:ue,from:ae}),Re(ae,ae,!0,!1)),(he?Promise.resolve(he):G(ue,ae)).catch(fe=>ui(fe)?ui(fe,2)?fe:Se(fe):re(fe,ue,ae)).then(fe=>{if(fe){if(ui(fe,2))return ie(bt({replace:j},$(fe.to),{state:typeof fe.to=="object"?bt({},pe,fe.to.state):pe,force:z}),Z||ue)}else fe=O(ue,ae,!0,j,pe);return J(ue,ae,fe),fe})}function le(B,Z){const K=R(B,Z);return K?Promise.reject(K):Promise.resolve()}function ne(B){const Z=Xe.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(B):B()}function G(B,Z){let K;const[ae,pe,z]=iye(B,Z);K=xd(ae.reverse(),"beforeRouteLeave",B,Z);for(const X of ae)X.leaveGuards.forEach(ue=>{K.push(Gi(ue,B,Z))});const j=le.bind(null,B,Z);return K.push(j),te(K).then(()=>{K=[];for(const X of c.list())K.push(Gi(X,B,Z));return K.push(j),te(K)}).then(()=>{K=xd(pe,"beforeRouteUpdate",B,Z);for(const X of pe)X.updateGuards.forEach(ue=>{K.push(Gi(ue,B,Z))});return K.push(j),te(K)}).then(()=>{K=[];for(const X of z)if(X.beforeEnter)if(Or(X.beforeEnter))for(const ue of X.beforeEnter)K.push(Gi(ue,B,Z));else K.push(Gi(X.beforeEnter,B,Z));return K.push(j),te(K)}).then(()=>(B.matched.forEach(X=>X.enterCallbacks={}),K=xd(z,"beforeRouteEnter",B,Z,ne),K.push(j),te(K))).then(()=>{K=[];for(const X of f.list())K.push(Gi(X,B,Z));return K.push(j),te(K)}).catch(X=>ui(X,8)?X:Promise.reject(X))}function J(B,Z,K){d.list().forEach(ae=>ne(()=>ae(B,Z,K)))}function O(B,Z,K,ae,pe){const z=R(B,Z);if(z)return z;const j=Z===Hi,X=vs?history.state:{};K&&(ae||j?s.replace(B.fullPath,bt({scroll:j&&X&&X.scroll},pe)):s.push(B.fullPath,pe)),h.value=B,Re(B,Z,K,j),Se()}let P;function N(){P||(P=s.listen((B,Z,K)=>{if(!Ye.listening)return;const ae=L(B),pe=U(ae);if(pe){ie(bt(pe,{replace:!0,force:!0}),ae).catch(Xl);return}p=ae;const z=h.value;vs&&C0e(N0(z.fullPath,K.delta),Xu()),G(ae,z).catch(j=>ui(j,12)?j:ui(j,2)?(ie(bt($(j.to),{force:!0}),ae).then(X=>{ui(X,20)&&!K.delta&&K.type===wa.pop&&s.go(-1,!1)}).catch(Xl),Promise.reject()):(K.delta&&s.go(-K.delta,!1),re(j,ae,z))).then(j=>{j=j||O(ae,z,!1),j&&(K.delta&&!ui(j,8)?s.go(-K.delta,!1):K.type===wa.pop&&ui(j,20)&&s.go(-1,!1)),J(ae,z,j)}).catch(Xl)}))}let S=Nl(),F=Nl(),V;function re(B,Z,K){Se(B);const ae=F.list();return ae.length?ae.forEach(pe=>pe(B,Z,K)):console.error(B),Promise.reject(B)}function me(){return V&&h.value!==Hi?Promise.resolve():new Promise((B,Z)=>{S.add([B,Z])})}function Se(B){return V||(V=!B,N(),S.list().forEach(([Z,K])=>B?K(B):Z()),S.reset()),B}function Re(B,Z,K,ae){const{scrollBehavior:pe}=e;if(!vs||!pe)return Promise.resolve();const z=!K&&E0e(N0(B.fullPath,0))||(ae||!K)&&history.state&&history.state.scroll||null;return Et().then(()=>pe(B,Z,z)).then(j=>j&&T0e(j)).catch(j=>re(j,B,Z))}const je=B=>s.go(B);let Qe;const Xe=new Set,Ye={currentRoute:h,listening:!0,addRoute:x,removeRoute:M,clearRoutes:t.clearRoutes,hasRoute:A,getRoutes:E,resolve:L,options:e,push:C,replace:D,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:F.add,isReady:me,install(B){const Z=this;B.component("RouterLink",J0e),B.component("RouterView",nye),B.config.globalProperties.$router=Z,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>H(h)}),vs&&!Qe&&h.value===Hi&&(Qe=!0,C(s.location).catch(pe=>{}));const K={};for(const pe in Hi)Object.defineProperty(K,pe,{get:()=>h.value[pe],enumerable:!0});B.provide(pp,Z),B.provide(Qx,kh(K)),B.provide(gh,h);const ae=B.unmount;Xe.add(B),B.unmount=function(){Xe.delete(B),Xe.size<1&&(p=Hi,P&&P(),P=null,h.value=Hi,Qe=!1,V=!1),ae()}}};function te(B){return B.reduce((Z,K)=>Z.then(()=>ne(K)),Promise.resolve())}return Ye}function iye(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=>js(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>js(p,h))||s.push(h))}return[r,o,s]}const oye={tooltip:OC};Fb.options.instantMove=!0;Fb.options.distance=10;function sye(){return rye({history:N0e(),routes:e0e})}const lye=[sye],gp=mb(zT);lye.forEach(e=>{gp.use(e())});Object.entries(oye).forEach(([e,t])=>{gp.directive(e,t)});gp.mount("#app");
|