@vitest/browser 4.1.0-beta.3 → 4.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.d.ts +1 -1
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/{index-DC7speYS.css → index-C71EXv4T.css} +1 -1
- package/dist/client/__vitest__/assets/index-CPanfHPD.js +63 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-fh7lJzlE.js → orchestrator-CXs6qrFe.js} +1 -1
- package/dist/client/__vitest_browser__/{tester-CH-bVWK6.js → tester-CgiVtoKi.js} +15 -8
- package/dist/client/__vitest_browser__/{utils-uxqdqUz8.js → utils-C2ISqq1C.js} +2 -2
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/index.js +6 -70
- package/package.json +6 -6
- package/dist/client/__vitest__/assets/index-BcP0bNv8.js +0 -59
|
@@ -1,59 +0,0 @@
|
|
|
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.27
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function Zh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const yt={},Vs=[],Zr=()=>{},Ky=()=>!1,Gu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jh=e=>e.startsWith("onUpdate:"),Zt=Object.assign,Qh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},sS=Object.prototype.hasOwnProperty,kt=(e,t)=>sS.call(e,t),Xe=Array.isArray,Gs=e=>Wa(e)==="[object Map]",ml=e=>Wa(e)==="[object Set]",ev=e=>Wa(e)==="[object Date]",nt=e=>typeof e=="function",Ft=e=>typeof e=="string",Ir=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",Xy=e=>(St(e)||nt(e))&&nt(e.then)&&nt(e.catch),Yy=Object.prototype.toString,Wa=e=>Yy.call(e),lS=e=>Wa(e).slice(8,-1),Zy=e=>Wa(e)==="[object Object]",Ku=e=>Ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,oa=Zh(",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)))},aS=/-\w/g,ar=Xu(e=>e.replace(aS,t=>t.slice(1).toUpperCase())),cS=/\B([A-Z])/g,Pi=Xu(e=>e.replace(cS,"-$1").toLowerCase()),Yu=Xu(e=>e.charAt(0).toUpperCase()+e.slice(1)),tu=Xu(e=>e?`on${Yu(e)}`:""),Xn=(e,t)=>!Object.is(e,t),nu=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Jy=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Zu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qy=e=>{const t=Ft(e)?Number(e):NaN;return isNaN(t)?e:t};let tv;const Ju=()=>tv||(tv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pt(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ft(o)?hS(o):Pt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ft(e)||St(e))return e}const uS=/;(?![^(]*\))/g,fS=/:([^]+)/,dS=/\/\*[^]*?\*\//g;function hS(e){const t={};return e.replace(dS,"").split(uS).forEach(r=>{if(r){const o=r.split(fS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function rt(e){let t="";if(Ft(e))t=e;else if(Xe(e))for(let r=0;r<e.length;r++){const o=rt(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function pS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ft(t)&&(e.class=rt(t)),r&&(e.style=Pt(r)),e}const gS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mS=Zh(gS);function eb(e){return!!e||e===""}function vS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=qa(e[o],t[o]);return r}function qa(e,t){if(e===t)return!0;let r=ev(e),o=ev(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Ir(e),o=Ir(t),r||o)return e===t;if(r=Xe(e),o=Xe(t),r||o)return r&&o?vS(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||!qa(e[f],t[f]))return!1}}return String(e)===String(t)}function ep(e,t){return e.findIndex(r=>qa(r,t))}const tb=e=>!!(e&&e.__v_isRef===!0),Pe=e=>Ft(e)?e:e==null?"":Xe(e)||St(e)&&(e.toString===Yy||!nt(e.toString))?tb(e)?Pe(e.value):JSON.stringify(e,nb,2):String(e),nb=(e,t)=>tb(t)?nb(e,t.value):Gs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[kd(o,c)+" =>"]=s,r),{})}:ml(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>kd(r))}:Ir(t)?kd(t):St(t)&&!Xe(t)&&!Zy(t)?String(t):t,kd=(e,t="")=>{var r;return Ir(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.27
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let kn;class yS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=kn,!t&&kn&&(this.index=(kn.scopes||(kn.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=kn;try{return kn=this,t()}finally{kn=r}}}on(){++this._on===1&&(this.prevScope=kn,kn=this)}off(){this._on>0&&--this._on===0&&(kn=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 tp(){return kn}function bS(e,t=!1){kn&&kn.cleanups.push(e)}let At;const _d=new WeakSet;class rb{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,kn&&kn.active&&kn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_d.has(this)&&(_d.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ob(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nv(this),sb(this);const t=At,r=$r;At=this,$r=!0;try{return this.fn()}finally{lb(this),At=t,$r=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ip(t);this.deps=this.depsTail=void 0,nv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_d.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){eh(this)&&this.run()}get dirty(){return eh(this)}}let ib=0,sa,la;function ob(e,t=!1){if(e.flags|=8,t){e.next=la,la=e;return}e.next=sa,sa=e}function np(){ib++}function rp(){if(--ib>0)return;if(la){let t=la;for(la=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;sa;){let t=sa;for(sa=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 sb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function lb(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),ip(o),wS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function eh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ab(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ab(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ya)||(e.globalVersion=ya,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!eh(e))))return;e.flags|=2;const t=e.dep,r=At,o=$r;At=e,$r=!0;try{sb(e);const s=e.fn(e._value);(t.version===0||Xn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{At=r,$r=o,lb(e),e.flags&=-3}}function ip(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)ip(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function wS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let $r=!0;const cb=[];function Ai(){cb.push($r),$r=!1}function Li(){const e=cb.pop();$r=e===void 0?!0:e}function nv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=At;At=void 0;try{t()}finally{At=r}}}let ya=0;class xS{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 Qu{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(!At||!$r||At===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==At)r=this.activeLink=new xS(At,this),At.deps?(r.prevDep=At.depsTail,At.depsTail.nextDep=r,At.depsTail=r):At.deps=At.depsTail=r,ub(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=At.depsTail,r.nextDep=void 0,At.depsTail.nextDep=r,At.depsTail=r,At.deps===r&&(At.deps=o)}return r}trigger(t){this.version++,ya++,this.notify(t)}notify(t){np();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{rp()}}}function ub(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)ub(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const vu=new WeakMap,Yo=Symbol(""),th=Symbol(""),ba=Symbol("");function Sn(e,t,r){if($r&&At){let o=vu.get(e);o||vu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Qu),s.map=o,s.key=r),s.track()}}function wi(e,t,r,o,s,c){const f=vu.get(e);if(!f){ya++;return}const d=h=>{h&&h.trigger()};if(np(),t==="clear")f.forEach(d);else{const h=Xe(e),p=h&&Ku(r);if(h&&r==="length"){const g=Number(o);f.forEach((v,b)=>{(b==="length"||b===ba||!Ir(b)&&b>=g)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ba)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Yo)),Gs(e)&&d(f.get(th)));break;case"delete":h||(d(f.get(Yo)),Gs(e)&&d(f.get(th)));break;case"set":Gs(e)&&d(f.get(Yo));break}}rp()}function kS(e,t){const r=vu.get(e);return r&&r.get(t)}function Ps(e){const t=mt(e);return t===e?t:(Sn(t,"iterate",ba),lr(e)?t:t.map(Dr))}function ef(e){return Sn(e=mt(e),"iterate",ba),e}function no(e,t){return Mi(e)?il(Zo(e)?Dr(t):t):Dr(t)}const _S={__proto__:null,[Symbol.iterator](){return Sd(this,Symbol.iterator,e=>no(this,e))},concat(...e){return Ps(this).concat(...e.map(t=>Xe(t)?Ps(t):t))},entries(){return Sd(this,"entries",e=>(e[1]=no(this,e[1]),e))},every(e,t){return di(this,"every",e,t,void 0,arguments)},filter(e,t){return di(this,"filter",e,t,r=>r.map(o=>no(this,o)),arguments)},find(e,t){return di(this,"find",e,t,r=>no(this,r),arguments)},findIndex(e,t){return di(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return di(this,"findLast",e,t,r=>no(this,r),arguments)},findLastIndex(e,t){return di(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return di(this,"forEach",e,t,void 0,arguments)},includes(...e){return Td(this,"includes",e)},indexOf(...e){return Td(this,"indexOf",e)},join(e){return Ps(this).join(e)},lastIndexOf(...e){return Td(this,"lastIndexOf",e)},map(e,t){return di(this,"map",e,t,void 0,arguments)},pop(){return Kl(this,"pop")},push(...e){return Kl(this,"push",e)},reduce(e,...t){return rv(this,"reduce",e,t)},reduceRight(e,...t){return rv(this,"reduceRight",e,t)},shift(){return Kl(this,"shift")},some(e,t){return di(this,"some",e,t,void 0,arguments)},splice(...e){return Kl(this,"splice",e)},toReversed(){return Ps(this).toReversed()},toSorted(e){return Ps(this).toSorted(e)},toSpliced(...e){return Ps(this).toSpliced(...e)},unshift(...e){return Kl(this,"unshift",e)},values(){return Sd(this,"values",e=>no(this,e))}};function Sd(e,t,r){const o=ef(e),s=o[t]();return o!==e&&!lr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const SS=Array.prototype;function di(e,t,r,o,s,c){const f=ef(e),d=f!==e&&!lr(e),h=f[t];if(h!==SS[t]){const v=h.apply(e,c);return d?Dr(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,no(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const g=h.call(f,p,o);return d&&s?s(g):g}function rv(e,t,r,o){const s=ef(e);let c=r;return s!==e&&(lr(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,no(e,d),h,e)}),s[t](c,...o)}function Td(e,t,r){const o=mt(e);Sn(o,"iterate",ba);const s=o[t](...r);return(s===-1||s===!1)&&tf(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function Kl(e,t,r=[]){Ai(),np();const o=mt(e)[t].apply(e,r);return rp(),Li(),o}const TS=Zh("__proto__,__v_isRef,__isVue"),fb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ir));function CS(e){Ir(e)||(e=String(e));const t=mt(this);return Sn(t,"has",e),t.hasOwnProperty(e)}class db{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?IS:mb:c?gb:pb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Xe(t);if(!s){let h;if(f&&(h=_S[r]))return h;if(r==="hasOwnProperty")return CS}const d=Reflect.get(t,r,Et(t)?t:o);if((Ir(r)?fb.has(r):TS(r))||(s||Sn(t,"get",r),c))return d;if(Et(d)){const h=f&&Ku(r)?d:d.value;return s&&St(h)?rl(h):h}return St(d)?s?rl(d):sr(d):d}}class hb extends db{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Xe(t)&&Ku(r);if(!this._isShallow){const p=Mi(c);if(!lr(o)&&!Mi(o)&&(c=mt(c),o=mt(o)),!f&&Et(c)&&!Et(o))return p||(c.value=o),!0}const d=f?Number(r)<t.length:kt(t,r),h=Reflect.set(t,r,o,Et(t)?t:s);return t===mt(s)&&(d?Xn(o,c)&&wi(t,"set",r,o):wi(t,"add",r,o)),h}deleteProperty(t,r){const o=kt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&wi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Ir(r)||!fb.has(r))&&Sn(t,"has",r),o}ownKeys(t){return Sn(t,"iterate",Xe(t)?"length":Yo),Reflect.ownKeys(t)}}class ES extends db{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const AS=new hb,LS=new ES,MS=new hb(!0);const nh=e=>e,Dc=e=>Reflect.getPrototypeOf(e);function NS(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=Gs(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),g=r?nh:t?il:Dr;return!t&&Sn(c,"iterate",h?th:Yo),Zt(Object.create(p),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[g(v[0]),g(v[1])]:g(v),done:b}}})}}function zc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function OS(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Xn(s,d)&&Sn(f,"get",s),Sn(f,"get",d));const{has:h}=Dc(f),p=t?nh:e?il:Dr;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&&Sn(mt(s),"iterate",Yo),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Xn(s,d)&&Sn(f,"has",s),Sn(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=mt(d),p=t?nh:e?il:Dr;return!e&&Sn(h,"iterate",Yo),d.forEach((g,v)=>s.call(c,p(g),p(v),f))}};return Zt(r,e?{add:zc("add"),set:zc("set"),delete:zc("delete"),clear:zc("clear")}:{add(s){!t&&!lr(s)&&!Mi(s)&&(s=mt(s));const c=mt(this);return Dc(c).has.call(c,s)||(c.add(s),wi(c,"add",s,s)),this},set(s,c){!t&&!lr(c)&&!Mi(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=Dc(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const g=h.call(f,s);return f.set(s,c),p?Xn(c,g)&&wi(f,"set",s,c):wi(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=Dc(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&wi(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&wi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=NS(s,e,t)}),r}function op(e,t){const r=OS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(kt(r,s)&&s in o?r:o,s,c)}const PS={get:op(!1,!1)},$S={get:op(!1,!0)},RS={get:op(!0,!1)};const pb=new WeakMap,gb=new WeakMap,mb=new WeakMap,IS=new WeakMap;function DS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zS(e){return e.__v_skip||!Object.isExtensible(e)?0:DS(lS(e))}function sr(e){return Mi(e)?e:lp(e,!1,AS,PS,pb)}function sp(e){return lp(e,!1,MS,$S,gb)}function rl(e){return lp(e,!0,LS,RS,mb)}function lp(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=zS(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 Zo(e){return Mi(e)?Zo(e.__v_raw):!!(e&&e.__v_isReactive)}function Mi(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function tf(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function nf(e){return!kt(e,"__v_skip")&&Object.isExtensible(e)&&Jy(e,"__v_skip",!0),e}const Dr=e=>St(e)?sr(e):e,il=e=>St(e)?rl(e):e;function Et(e){return e?e.__v_isRef===!0:!1}function Ve(e){return vb(e,!1)}function Wt(e){return vb(e,!0)}function vb(e,t){return Et(e)?e:new FS(e,t)}class FS{constructor(t,r){this.dep=new Qu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:Dr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||lr(t)||Mi(t);t=o?t:mt(t),Xn(t,r)&&(this._rawValue=t,this._value=o?t:Dr(t),this.dep.trigger())}}function W(e){return Et(e)?e.value:e}function Yt(e){return nt(e)?e():W(e)}const HS={get:(e,t,r)=>t==="__v_raw"?e:W(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Et(s)&&!Et(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function yb(e){return Zo(e)?e:new Proxy(e,HS)}class BS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Qu,{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 bb(e){return new BS(e)}function jS(e){const t=Xe(e)?new Array(e.length):{};for(const r in e)t[r]=wb(e,r);return t}class WS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=mt(t);let s=!0,c=t;if(!Xe(t)||!Ku(String(r)))do s=!tf(c)||lr(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=W(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Et(this._raw[this._key])){const r=this._object[this._key];if(Et(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return kS(this._raw,this._key)}}class qS{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 US(e,t,r){return Et(e)?e:nt(e)?new qS(e):St(e)&&arguments.length>1?wb(e,t,r):Ve(e)}function wb(e,t,r){return new WS(e,t,r)}class VS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Qu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ya-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&At!==this)return ob(this,!0),!0}get value(){const t=this.dep.track();return ab(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function GS(e,t,r=!1){let o,s;return nt(e)?o=e:(o=e.get,s=e.set),new VS(o,s,r)}const Fc={},yu=new WeakMap;let Wo;function KS(e,t=!1,r=Wo){if(r){let o=yu.get(r);o||yu.set(r,o=[]),o.push(e)}}function XS(e,t,r=yt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:lr(E)||s===!1||s===0?xi(E,1):xi(E);let g,v,b,x,C=!1,L=!1;if(Et(e)?(v=()=>e.value,C=lr(e)):Zo(e)?(v=()=>p(e),C=!0):Xe(e)?(L=!0,C=e.some(E=>Zo(E)||lr(E)),v=()=>e.map(E=>{if(Et(E))return E.value;if(Zo(E))return p(E);if(nt(E))return h?h(E,2):E()})):nt(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){Ai();try{b()}finally{Li()}}const E=Wo;Wo=g;try{return h?h(e,3,[x]):e(x)}finally{Wo=E}}:v=Zr,t&&s){const E=v,I=s===!0?1/0:s;v=()=>xi(E(),I)}const N=tp(),M=()=>{g.stop(),N&&N.active&&Qh(N.effects,g)};if(c&&t){const E=t;t=(...I)=>{E(...I),M()}}let $=L?new Array(e.length).fill(Fc):Fc;const F=E=>{if(!(!(g.flags&1)||!g.dirty&&!E))if(t){const I=g.run();if(s||C||(L?I.some((q,Y)=>Xn(q,$[Y])):Xn(I,$))){b&&b();const q=Wo;Wo=g;try{const Y=[I,$===Fc?void 0:L&&$[0]===Fc?[]:$,x];$=I,h?h(t,3,Y):t(...Y)}finally{Wo=q}}}else g.run()};return d&&d(F),g=new rb(v),g.scheduler=f?()=>f(F,!1):F,x=E=>KS(E,!1,g),b=g.onStop=()=>{const E=yu.get(g);if(E){if(h)h(E,4);else for(const I of E)I();yu.delete(g)}},t?o?F(!0):$=g.run():f?f(F.bind(null,!0),!0):g.run(),M.pause=g.pause.bind(g),M.resume=g.resume.bind(g),M.stop=M,M}function xi(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--,Et(e))xi(e.value,t,r);else if(Xe(e))for(let o=0;o<e.length;o++)xi(e[o],t,r);else if(ml(e)||Gs(e))e.forEach(o=>{xi(o,t,r)});else if(Zy(e)){for(const o in e)xi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&xi(e[o],t,r)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.27
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Ua(e,t,r,o){try{return o?e(...o):e()}catch(s){Va(s,t,r)}}function zr(e,t,r,o){if(nt(e)){const s=Ua(e,t,r,o);return s&&Xy(s)&&s.catch(c=>{Va(c,t,r)}),s}if(Xe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(zr(e[c],t,r,o));return s}}function Va(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||yt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const g=d.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}d=d.parent}if(c){Ai(),Ua(c,null,10,[e,h,p]),Li();return}}YS(e,r,s,o,f)}function YS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Dn=[];let Xr=-1;const Ks=[];let ro=null,Ds=0;const xb=Promise.resolve();let bu=null;function Ct(e){const t=bu||xb;return e?t.then(this?e.bind(this):e):t}function ZS(e){let t=Xr+1,r=Dn.length;for(;t<r;){const o=t+r>>>1,s=Dn[o],c=wa(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function ap(e){if(!(e.flags&1)){const t=wa(e),r=Dn[Dn.length-1];!r||!(e.flags&2)&&t>=wa(r)?Dn.push(e):Dn.splice(ZS(t),0,e),e.flags|=1,kb()}}function kb(){bu||(bu=xb.then(Sb))}function rh(e){Xe(e)?Ks.push(...e):ro&&e.id===-1?ro.splice(Ds+1,0,e):e.flags&1||(Ks.push(e),e.flags|=1),kb()}function iv(e,t,r=Xr+1){for(;r<Dn.length;r++){const o=Dn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Dn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function _b(e){if(Ks.length){const t=[...new Set(Ks)].sort((r,o)=>wa(r)-wa(o));if(Ks.length=0,ro){ro.push(...t);return}for(ro=t,Ds=0;Ds<ro.length;Ds++){const r=ro[Ds];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}ro=null,Ds=0}}const wa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Sb(e){try{for(Xr=0;Xr<Dn.length;Xr++){const t=Dn[Xr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ua(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Xr<Dn.length;Xr++){const t=Dn[Xr];t&&(t.flags&=-2)}Xr=-1,Dn.length=0,_b(),bu=null,(Dn.length||Ks.length)&&Sb()}}let vn=null,rf=null;function wu(e){const t=vn;return vn=e,rf=e&&e.type.__scopeId||null,t}function Tb(e){rf=e}function Cb(){rf=null}const Eb=e=>Be;function Be(e,t=vn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&sl(-1);const c=wu(t);let f;try{f=e(...s)}finally{wu(c),o._d&&sl(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ot(e,t){if(vn===null)return e;const r=ff(vn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=yt]=t[s];c&&(nt(c)&&(c={mounted:c,updated:c}),c.deep&&xi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function zo(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&&(Ai(),zr(h,r,8,[e.el,d,e,t]),Li())}}function gr(e,t){if(Tn){let r=Tn.provides;const o=Tn.parent&&Tn.parent.provides;o===r&&(r=Tn.provides=Object.create(o)),r[e]=t}}function mn(e,t,r=!1){const o=ni();if(o||Jo){let s=Jo?Jo._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&&nt(t)?t.call(o&&o.proxy):t}}function Ab(){return!!(ni()||Jo)}const JS=Symbol.for("v-scx"),QS=()=>mn(JS);function Lb(e,t){return of(e,null,t)}function eT(e,t){return of(e,null,{flush:"sync"})}function bt(e,t,r){return of(e,t,r)}function of(e,t,r=yt){const{immediate:o,deep:s,flush:c,once:f}=r,d=Zt({},r),h=t&&o||!t&&c!=="post";let p;if(Sa){if(c==="sync"){const x=QS();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Zr,x.resume=Zr,x.pause=Zr,x}}const g=Tn;d.call=(x,C,L)=>zr(x,g,C,L);let v=!1;c==="post"?d.scheduler=x=>{Gn(x,g&&g.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(x,C)=>{C?x():ap(x)}),d.augmentJob=x=>{t&&(x.flags|=4),v&&(x.flags|=2,g&&(x.id=g.uid,x.i=g))};const b=XS(e,t,d);return Sa&&(p?p.push(b):h&&b()),b}function tT(e,t,r){const o=this.proxy,s=Ft(e)?e.includes(".")?Mb(o,e):()=>o[e]:e.bind(o,o);let c;nt(t)?c=t:(c=t.handler,r=t);const f=Xa(this),d=of(s,c.bind(o),r);return f(),d}function Mb(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}}const nT=Symbol("_vte"),Nb=e=>e.__isTeleport,bi=Symbol("_leaveCb"),Hc=Symbol("_enterCb");function rT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ri(()=>{e.isMounted=!0}),Ga(()=>{e.isUnmounting=!0}),e}const hr=[Function,Array],Ob={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hr,onEnter:hr,onAfterEnter:hr,onEnterCancelled:hr,onBeforeLeave:hr,onLeave:hr,onAfterLeave:hr,onLeaveCancelled:hr,onBeforeAppear:hr,onAppear:hr,onAfterAppear:hr,onAppearCancelled:hr},Pb=e=>{const t=e.subTree;return t.component?Pb(t.component):t},iT={name:"BaseTransition",props:Ob,setup(e,{slots:t}){const r=ni(),o=rT();return()=>{const s=t.default&&Ib(t.default(),!0);if(!s||!s.length)return;const c=$b(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return Cd(c);const h=ov(c);if(!h)return Cd(c);let p=ih(h,f,o,r,v=>p=v);h.type!==cn&&xa(h,p);let g=r.subTree&&ov(r.subTree);if(g&&g.type!==cn&&!Yr(g,h)&&Pb(r).type!==cn){let v=ih(g,f,o,r);if(xa(g,v),d==="out-in"&&h.type!==cn)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},Cd(c);d==="in-out"&&h.type!==cn?v.delayLeave=(b,x,C)=>{const L=Rb(o,g);L[String(g.key)]=g,b[bi]=()=>{x(),b[bi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{C(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function $b(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==cn){t=r;break}}return t}const oT=iT;function Rb(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 ih(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:x,onAfterLeave:C,onLeaveCancelled:L,onBeforeAppear:N,onAppear:M,onAfterAppear:$,onAppearCancelled:F}=t,E=String(e.key),I=Rb(r,e),q=(J,G)=>{J&&zr(J,o,9,G)},Y=(J,G)=>{const K=G[1];q(J,G),Xe(J)?J.every(P=>P.length<=1)&&K():J.length<=1&&K()},oe={mode:f,persisted:d,beforeEnter(J){let G=h;if(!r.isMounted)if(c)G=N||h;else return;J[bi]&&J[bi](!0);const K=I[E];K&&Yr(e,K)&&K.el[bi]&&K.el[bi](),q(G,[J])},enter(J){let G=p,K=g,P=v;if(!r.isMounted)if(c)G=M||p,K=$||g,P=F||v;else return;let O=!1;const S=J[Hc]=k=>{O||(O=!0,k?q(P,[J]):q(K,[J]),oe.delayedLeave&&oe.delayedLeave(),J[Hc]=void 0)};G?Y(G,[J,S]):S()},leave(J,G){const K=String(e.key);if(J[Hc]&&J[Hc](!0),r.isUnmounting)return G();q(b,[J]);let P=!1;const O=J[bi]=S=>{P||(P=!0,G(),S?q(L,[J]):q(C,[J]),J[bi]=void 0,I[K]===e&&delete I[K])};I[K]=e,x?Y(x,[J,O]):O()},clone(J){const G=ih(J,t,r,o,s);return s&&s(G),G}};return oe}function Cd(e){if(sf(e))return e=yo(e),e.children=null,e}function ov(e){if(!sf(e))return Nb(e.type)&&e.children?$b(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&&nt(r.default))return r.default()}}function xa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xa(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 Ib(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===et?(f.patchFlag&128&&s++,o=o.concat(Ib(f.children,t,d))):(t||f.type!==cn)&&o.push(d!=null?yo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function tt(e,t){return nt(e)?Zt({name:e.name},t,{setup:e}):e}function cp(){const e=ni();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Db(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const xu=new WeakMap;function aa(e,t,r,o,s=!1){if(Xe(e)){e.forEach((C,L)=>aa(C,t&&(Xe(t)?t[L]:t),r,o,s));return}if(Xs(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&aa(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?ff(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,g=d.refs===yt?d.refs={}:d.refs,v=d.setupState,b=mt(v),x=v===yt?Ky:C=>kt(b,C);if(p!=null&&p!==h){if(sv(t),Ft(p))g[p]=null,x(p)&&(v[p]=null);else if(Et(p)){p.value=null;const C=t;C.k&&(g[C.k]=null)}}if(nt(h))Ua(h,d,12,[f,g]);else{const C=Ft(h),L=Et(h);if(C||L){const N=()=>{if(e.f){const M=C?x(h)?v[h]:g[h]:h.value;if(s)Xe(M)&&Qh(M,c);else if(Xe(M))M.includes(c)||M.push(c);else if(C)g[h]=[c],x(h)&&(v[h]=g[h]);else{const $=[c];h.value=$,e.k&&(g[e.k]=$)}}else C?(g[h]=f,x(h)&&(v[h]=f)):L&&(h.value=f,e.k&&(g[e.k]=f))};if(f){const M=()=>{N(),xu.delete(e)};M.id=-1,xu.set(e,M),Gn(M,r)}else sv(e),N()}}}function sv(e){const t=xu.get(e);t&&(t.flags|=8,xu.delete(e))}Ju().requestIdleCallback;Ju().cancelIdleCallback;const Xs=e=>!!e.type.__asyncLoader,sf=e=>e.type.__isKeepAlive;function sT(e,t){zb(e,"a",t)}function lT(e,t){zb(e,"da",t)}function zb(e,t,r=Tn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(lf(t,o,r),r){let s=r.parent;for(;s&&s.parent;)sf(s.parent.vnode)&&aT(o,t,r,s),s=s.parent}}function aT(e,t,r,o){const s=lf(t,e,o,!0);Ka(()=>{Qh(o[t],s)},r)}function lf(e,t,r=Tn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Ai();const d=Xa(r),h=zr(t,r,e,f);return d(),Li(),h});return o?s.unshift(c):s.push(c),c}}const $i=e=>(t,r=Tn)=>{(!Sa||e==="sp")&&lf(e,(...o)=>t(...o),r)},cT=$i("bm"),Ri=$i("m"),uT=$i("bu"),fT=$i("u"),Ga=$i("bum"),Ka=$i("um"),dT=$i("sp"),hT=$i("rtg"),pT=$i("rtc");function gT(e,t=Tn){lf("ec",e,t)}const up="components",mT="directives";function ts(e,t){return fp(up,e,!0,t)||e}const Fb=Symbol.for("v-ndc");function oh(e){return Ft(e)?fp(up,e,!1)||e:e||Fb}function ur(e){return fp(mT,e)}function fp(e,t,r=!0,o=!1){const s=vn||Tn;if(s){const c=s.type;if(e===up){const d=iC(c,!1);if(d&&(d===t||d===ar(t)||d===Yu(ar(t))))return c}const f=lv(s[e]||c[e],t)||lv(s.appContext[e],t);return!f&&o?c:f}}function lv(e,t){return e&&(e[t]||e[ar(t)]||e[Yu(ar(t))])}function yn(e,t,r,o){let s;const c=r,f=Xe(e);if(f||Ft(e)){const d=f&&Zo(e);let h=!1,p=!1;d&&(h=!lr(e),p=Mi(e),e=ef(e)),s=new Array(e.length);for(let g=0,v=e.length;g<v;g++)s[g]=t(h?p?il(Dr(e[g])):Dr(e[g]):e[g],g,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 g=d[h];s[h]=t(e[g],g,h,c)}}else s=[];return s}function vT(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Xe(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 zt(e,t,r={},o,s){if(vn.ce||vn.parent&&Xs(vn.parent)&&vn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),te(),We(et,null,[Le("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),te();const f=c&&Hb(c(r)),d=r.key||f&&f.key,h=We(et,{key:(d&&!Ir(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 Hb(e){return e.some(t=>ll(t)?!(t.type===cn||t.type===et&&!Hb(t.children)):!0)?e:null}function yT(e,t){const r={};for(const o in e)r[tu(o)]=e[o];return r}const sh=e=>e?fw(e)?ff(e):sh(e.parent):null,ca=Zt(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=>sh(e.parent),$root:e=>sh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qb(e),$forceUpdate:e=>e.f||(e.f=()=>{ap(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>tT.bind(e)}),Ed=(e,t)=>e!==yt&&!e.__isScriptSetup&&kt(e,t),bT={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;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Ed(o,t))return f[t]=1,o[t];if(s!==yt&&kt(s,t))return f[t]=2,s[t];if(kt(c,t))return f[t]=3,c[t];if(r!==yt&&kt(r,t))return f[t]=4,r[t];lh&&(f[t]=0)}}const p=ca[t];let g,v;if(p)return t==="$attrs"&&Sn(e.attrs,"get",""),p(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(r!==yt&&kt(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,kt(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Ed(s,t)?(s[t]=r,!0):o!==yt&&kt(o,t)?(o[t]=r,!0):kt(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,props:c,type:f}},d){let h;return!!(r[d]||e!==yt&&d[0]!=="$"&&kt(e,d)||Ed(t,d)||kt(c,d)||kt(o,d)||kt(ca,d)||kt(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:kt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Bb(){return jb().slots}function wT(){return jb().attrs}function jb(e){const t=ni();return t.setupContext||(t.setupContext=hw(t))}function ku(e){return Xe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function ka(e,t){return!e||!t?e||t:Xe(e)&&Xe(t)?e.concat(t):Zt({},ku(e),ku(t))}let lh=!0;function xT(e){const t=qb(e),r=e.proxy,o=e.ctx;lh=!1,t.beforeCreate&&av(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:g,beforeMount:v,mounted:b,beforeUpdate:x,updated:C,activated:L,deactivated:N,beforeDestroy:M,beforeUnmount:$,destroyed:F,unmounted:E,render:I,renderTracked:q,renderTriggered:Y,errorCaptured:oe,serverPrefetch:J,expose:G,inheritAttrs:K,components:P,directives:O,filters:S}=t;if(p&&kT(p,o,null),f)for(const R in f){const ae=f[R];nt(ae)&&(o[R]=ae.bind(r))}if(s){const R=s.call(r,r);St(R)&&(e.data=sr(R))}if(lh=!0,c)for(const R in c){const ae=c[R],ce=nt(ae)?ae.bind(r,r):nt(ae.get)?ae.get.bind(r,r):Zr,_e=!nt(ae)&&nt(ae.set)?ae.set.bind(r):Zr,je=ke({get:ce,set:_e});Object.defineProperty(o,R,{enumerable:!0,configurable:!0,get:()=>je.value,set:Ae=>je.value=Ae})}if(d)for(const R in d)Wb(d[R],o,r,R);if(h){const R=nt(h)?h.call(r):h;Reflect.ownKeys(R).forEach(ae=>{gr(ae,R[ae])})}g&&av(g,e,"c");function D(R,ae){Xe(ae)?ae.forEach(ce=>R(ce.bind(r))):ae&&R(ae.bind(r))}if(D(cT,v),D(Ri,b),D(uT,x),D(fT,C),D(sT,L),D(lT,N),D(gT,oe),D(pT,q),D(hT,Y),D(Ga,$),D(Ka,E),D(dT,J),Xe(G))if(G.length){const R=e.exposed||(e.exposed={});G.forEach(ae=>{Object.defineProperty(R,ae,{get:()=>r[ae],set:ce=>r[ae]=ce,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Zr&&(e.render=I),K!=null&&(e.inheritAttrs=K),P&&(e.components=P),O&&(e.directives=O),J&&Db(e)}function kT(e,t,r=Zr){Xe(e)&&(e=ah(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),Et(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function av(e,t,r){zr(Xe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Wb(e,t,r,o){let s=o.includes(".")?Mb(r,o):()=>r[o];if(Ft(e)){const c=t[e];nt(c)&&bt(s,c)}else if(nt(e))bt(s,e.bind(r));else if(St(e))if(Xe(e))e.forEach(c=>Wb(c,t,r,o));else{const c=nt(e.handler)?e.handler.bind(r):t[e.handler];nt(c)&&bt(s,c,e)}}function qb(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=>_u(h,p,f,!0)),_u(h,t,f)),St(t)&&c.set(t,h),h}function _u(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&_u(e,c,r,!0),s&&s.forEach(f=>_u(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=_T[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const _T={data:cv,props:uv,emits:uv,methods:ta,computed:ta,beforeCreate:$n,created:$n,beforeMount:$n,mounted:$n,beforeUpdate:$n,updated:$n,beforeDestroy:$n,beforeUnmount:$n,destroyed:$n,unmounted:$n,activated:$n,deactivated:$n,errorCaptured:$n,serverPrefetch:$n,components:ta,directives:ta,watch:TT,provide:cv,inject:ST};function cv(e,t){return t?e?function(){return Zt(nt(e)?e.call(this,this):e,nt(t)?t.call(this,this):t)}:t:e}function ST(e,t){return ta(ah(e),ah(t))}function ah(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function $n(e,t){return e?[...new Set([].concat(e,t))]:t}function ta(e,t){return e?Zt(Object.create(null),e,t):t}function uv(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:Zt(Object.create(null),ku(e),ku(t??{})):t}function TT(e,t){if(!e)return t;if(!t)return e;const r=Zt(Object.create(null),e);for(const o in t)r[o]=$n(e[o],t[o]);return r}function Ub(){return{app:null,config:{isNativeTag:Ky,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 CT=0;function ET(e,t){return function(o,s=null){nt(o)||(o=Zt({},o)),s!=null&&!St(s)&&(s=null);const c=Ub(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:CT++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:sC,get config(){return c.config},set config(g){},use(g,...v){return f.has(g)||(g&&nt(g.install)?(f.add(g),g.install(p,...v)):nt(g)&&(f.add(g),g(p,...v))),p},mixin(g){return c.mixins.includes(g)||c.mixins.push(g),p},component(g,v){return v?(c.components[g]=v,p):c.components[g]},directive(g,v){return v?(c.directives[g]=v,p):c.directives[g]},mount(g,v,b){if(!h){const x=p._ceVNode||Le(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,g,b),h=!0,p._container=g,g.__vue_app__=p,ff(x.component)}},onUnmount(g){d.push(g)},unmount(){h&&(zr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return c.provides[g]=v,p},runWithContext(g){const v=Jo;Jo=p;try{return g()}finally{Jo=v}}};return p}}let Jo=null;function af(e,t,r=yt){const o=ni(),s=ar(t),c=Pi(t),f=Vb(e,s),d=bb((h,p)=>{let g,v=yt,b;return eT(()=>{const x=e[s];Xn(g,x)&&(g=x,p())}),{get(){return h(),r.get?r.get(g):g},set(x){const C=r.set?r.set(x):x;if(!Xn(C,g)&&!(v!==yt&&Xn(x,v)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(g=x,p()),o.emit(`update:${t}`,C),Xn(x,C)&&Xn(x,v)&&!Xn(C,b)&&p(),v=x,b=C}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||yt:d,done:!1}:{done:!0}}}},d}const Vb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ar(t)}Modifiers`]||e[`${Pi(t)}Modifiers`];function AT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||yt;let s=r;const c=t.startsWith("update:"),f=c&&Vb(o,t.slice(7));f&&(f.trim&&(s=r.map(g=>Ft(g)?g.trim():g)),f.number&&(s=r.map(Zu)));let d,h=o[d=tu(t)]||o[d=tu(ar(t))];!h&&c&&(h=o[d=tu(Pi(t))]),h&&zr(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,zr(p,e,6,s)}}const LT=new WeakMap;function Gb(e,t,r=!1){const o=r?LT:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!nt(e)){const h=p=>{const g=Gb(p,t,!0);g&&(d=!0,Zt(f,g))};!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):(Xe(c)?c.forEach(h=>f[h]=null):Zt(f,c),St(e)&&o.set(e,f),f)}function cf(e,t){return!e||!Gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),kt(e,t[0].toLowerCase()+t.slice(1))||kt(e,Pi(t))||kt(e,t))}function fv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:g,props:v,data:b,setupState:x,ctx:C,inheritAttrs:L}=e,N=wu(e);let M,$;try{if(r.shapeFlag&4){const E=s||o,I=E;M=Nr(p.call(I,E,g,v,x,b,C)),$=d}else{const E=t;M=Nr(E.length>1?E(v,{attrs:d,slots:f,emit:h}):E(v,null)),$=t.props?d:NT(d)}}catch(E){ua.length=0,Va(E,e,1),M=Le(cn)}let F=M;if($&&L!==!1){const E=Object.keys($),{shapeFlag:I}=F;E.length&&I&7&&(c&&E.some(Jh)&&($=OT($,c)),F=yo(F,$,!1,!0))}return r.dirs&&(F=yo(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(r.dirs):r.dirs),r.transition&&xa(F,r.transition),M=F,wu(N),M}function MT(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(ll(s)){if(s.type!==cn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const NT=e=>{let t;for(const r in e)(r==="class"||r==="style"||Gu(r))&&((t||(t={}))[r]=e[r]);return t},OT=(e,t)=>{const r={};for(const o in e)(!Jh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function PT(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?dv(o,f,p):!!f;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const b=g[v];if(f[b]!==o[b]&&!cf(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?dv(o,f,p):!0:!!f;return!1}function dv(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]&&!cf(r,c))return!0}return!1}function dp({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 Kb={},Xb=()=>Object.create(Kb),Yb=e=>Object.getPrototypeOf(e)===Kb;function $T(e,t,r,o=!1){const s={},c=Xb();e.propsDefaults=Object.create(null),Zb(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:sp(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function RT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let b=g[v];if(cf(e.emitsOptions,b))continue;const x=t[b];if(h)if(kt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const C=ar(b);s[C]=ch(h,d,C,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{Zb(e,t,s,c)&&(p=!0);let g;for(const v in d)(!t||!kt(t,v)&&((g=Pi(v))===v||!kt(t,g)))&&(h?r&&(r[v]!==void 0||r[g]!==void 0)&&(s[v]=ch(h,d,v,void 0,e,!0)):delete s[v]);if(c!==d)for(const v in c)(!t||!kt(t,v))&&(delete c[v],p=!0)}p&&wi(e.attrs,"set","")}function Zb(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(oa(h))continue;const p=t[h];let g;s&&kt(s,g=ar(h))?!c||!c.includes(g)?r[g]=p:(d||(d={}))[g]=p:cf(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=mt(r),p=d||yt;for(let g=0;g<c.length;g++){const v=c[g];r[v]=ch(s,h,v,p[v],e,!kt(p,v))}}return f}function ch(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=kt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&nt(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const g=Xa(s);o=p[r]=h.call(null,t),g()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Pi(r))&&(o=!0))}return o}const IT=new WeakMap;function Jb(e,t,r=!1){const o=r?IT:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!nt(e)){const g=v=>{h=!0;const[b,x]=Jb(v,t,!0);Zt(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!c&&!h)return St(e)&&o.set(e,Vs),Vs;if(Xe(c))for(let g=0;g<c.length;g++){const v=ar(c[g]);hv(v)&&(f[v]=yt)}else if(c)for(const g in c){const v=ar(g);if(hv(v)){const b=c[g],x=f[v]=Xe(b)||nt(b)?{type:b}:Zt({},b),C=x.type;let L=!1,N=!0;if(Xe(C))for(let M=0;M<C.length;++M){const $=C[M],F=nt($)&&$.name;if(F==="Boolean"){L=!0;break}else F==="String"&&(N=!1)}else L=nt(C)&&C.name==="Boolean";x[0]=L,x[1]=N,(L||kt(x,"default"))&&d.push(v)}}const p=[f,d];return St(e)&&o.set(e,p),p}function hv(e){return e[0]!=="$"&&!oa(e)}const hp=e=>e==="_"||e==="_ctx"||e==="$stable",pp=e=>Xe(e)?e.map(Nr):[Nr(e)],DT=(e,t,r)=>{if(t._n)return t;const o=Be((...s)=>pp(t(...s)),r);return o._c=!1,o},Qb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(hp(s))continue;const c=e[s];if(nt(c))t[s]=DT(s,c,o);else if(c!=null){const f=pp(c);t[s]=()=>f}}},ew=(e,t)=>{const r=pp(t);e.slots.default=()=>r},tw=(e,t,r)=>{for(const o in t)(r||!hp(o))&&(e[o]=t[o])},zT=(e,t,r)=>{const o=e.slots=Xb();if(e.vnode.shapeFlag&32){const s=t._;s?(tw(o,t,r),r&&Jy(o,"_",s,!0)):Qb(t,o)}else t&&ew(e,t)},FT=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=yt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:tw(s,t,r):(c=!t.$stable,Qb(t,s)),f=t}else t&&(ew(e,t),f={default:1});if(c)for(const d in s)!hp(d)&&f[d]==null&&delete s[d]},Gn=XT;function HT(e){return BT(e)}function BT(e,t){const r=Ju();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:b,setScopeId:x=Zr,insertStaticContent:C}=e,L=(z,j,ee,he=null,pe=null,me=null,Ce=void 0,Ee=null,xe=!!j.dynamicChildren)=>{if(z===j)return;z&&!Yr(z,j)&&(he=H(z),Ae(z,pe,me,!0),z=null),j.patchFlag===-2&&(xe=!1,j.dynamicChildren=null);const{type:be,ref:Q,shapeFlag:fe}=j;switch(be){case uf:N(z,j,ee,he);break;case cn:M(z,j,ee,he);break;case Ld:z==null&&$(j,ee,he,Ce);break;case et:P(z,j,ee,he,pe,me,Ce,Ee,xe);break;default:fe&1?I(z,j,ee,he,pe,me,Ce,Ee,xe):fe&6?O(z,j,ee,he,pe,me,Ce,Ee,xe):(fe&64||fe&128)&&be.process(z,j,ee,he,pe,me,Ce,Ee,xe,le)}Q!=null&&pe?aa(Q,z&&z.ref,me,j||z,!j):Q==null&&z&&z.ref!=null&&aa(z.ref,null,me,z,!0)},N=(z,j,ee,he)=>{if(z==null)o(j.el=d(j.children),ee,he);else{const pe=j.el=z.el;j.children!==z.children&&p(pe,j.children)}},M=(z,j,ee,he)=>{z==null?o(j.el=h(j.children||""),ee,he):j.el=z.el},$=(z,j,ee,he)=>{[z.el,z.anchor]=C(z.children,j,ee,he,z.el,z.anchor)},F=({el:z,anchor:j},ee,he)=>{let pe;for(;z&&z!==j;)pe=b(z),o(z,ee,he),z=pe;o(j,ee,he)},E=({el:z,anchor:j})=>{let ee;for(;z&&z!==j;)ee=b(z),s(z),z=ee;s(j)},I=(z,j,ee,he,pe,me,Ce,Ee,xe)=>{if(j.type==="svg"?Ce="svg":j.type==="math"&&(Ce="mathml"),z==null)q(j,ee,he,pe,me,Ce,Ee,xe);else{const be=z.el&&z.el._isVueCE?z.el:null;try{be&&be._beginPatch(),J(z,j,pe,me,Ce,Ee,xe)}finally{be&&be._endPatch()}}},q=(z,j,ee,he,pe,me,Ce,Ee)=>{let xe,be;const{props:Q,shapeFlag:fe,transition:ie,dirs:Re}=z;if(xe=z.el=f(z.type,me,Q&&Q.is,Q),fe&8?g(xe,z.children):fe&16&&oe(z.children,xe,null,he,pe,Ad(z,me),Ce,Ee),Re&&zo(z,null,he,"created"),Y(xe,z,z.scopeId,Ce,he),Q){for(const ct in Q)ct!=="value"&&!oa(ct)&&c(xe,ct,null,Q[ct],me,he);"value"in Q&&c(xe,"value",null,Q.value,me),(be=Q.onVnodeBeforeMount)&&Kr(be,he,z)}Re&&zo(z,null,he,"beforeMount");const Qe=jT(pe,ie);Qe&&ie.beforeEnter(xe),o(xe,j,ee),((be=Q&&Q.onVnodeMounted)||Qe||Re)&&Gn(()=>{be&&Kr(be,he,z),Qe&&ie.enter(xe),Re&&zo(z,null,he,"mounted")},pe)},Y=(z,j,ee,he,pe)=>{if(ee&&x(z,ee),he)for(let me=0;me<he.length;me++)x(z,he[me]);if(pe){let me=pe.subTree;if(j===me||ow(me.type)&&(me.ssContent===j||me.ssFallback===j)){const Ce=pe.vnode;Y(z,Ce,Ce.scopeId,Ce.slotScopeIds,pe.parent)}}},oe=(z,j,ee,he,pe,me,Ce,Ee,xe=0)=>{for(let be=xe;be<z.length;be++){const Q=z[be]=Ee?io(z[be]):Nr(z[be]);L(null,Q,j,ee,he,pe,me,Ce,Ee)}},J=(z,j,ee,he,pe,me,Ce)=>{const Ee=j.el=z.el;let{patchFlag:xe,dynamicChildren:be,dirs:Q}=j;xe|=z.patchFlag&16;const fe=z.props||yt,ie=j.props||yt;let Re;if(ee&&Fo(ee,!1),(Re=ie.onVnodeBeforeUpdate)&&Kr(Re,ee,j,z),Q&&zo(j,z,ee,"beforeUpdate"),ee&&Fo(ee,!0),(fe.innerHTML&&ie.innerHTML==null||fe.textContent&&ie.textContent==null)&&g(Ee,""),be?G(z.dynamicChildren,be,Ee,ee,he,Ad(j,pe),me):Ce||ae(z,j,Ee,null,ee,he,Ad(j,pe),me,!1),xe>0){if(xe&16)K(Ee,fe,ie,ee,pe);else if(xe&2&&fe.class!==ie.class&&c(Ee,"class",null,ie.class,pe),xe&4&&c(Ee,"style",fe.style,ie.style,pe),xe&8){const Qe=j.dynamicProps;for(let ct=0;ct<Qe.length;ct++){const dt=Qe[ct],Nt=fe[dt],ut=ie[dt];(ut!==Nt||dt==="value")&&c(Ee,dt,Nt,ut,pe,ee)}}xe&1&&z.children!==j.children&&g(Ee,j.children)}else!Ce&&be==null&&K(Ee,fe,ie,ee,pe);((Re=ie.onVnodeUpdated)||Q)&&Gn(()=>{Re&&Kr(Re,ee,j,z),Q&&zo(j,z,ee,"updated")},he)},G=(z,j,ee,he,pe,me,Ce)=>{for(let Ee=0;Ee<j.length;Ee++){const xe=z[Ee],be=j[Ee],Q=xe.el&&(xe.type===et||!Yr(xe,be)||xe.shapeFlag&198)?v(xe.el):ee;L(xe,be,Q,null,he,pe,me,Ce,!0)}},K=(z,j,ee,he,pe)=>{if(j!==ee){if(j!==yt)for(const me in j)!oa(me)&&!(me in ee)&&c(z,me,j[me],null,pe,he);for(const me in ee){if(oa(me))continue;const Ce=ee[me],Ee=j[me];Ce!==Ee&&me!=="value"&&c(z,me,Ee,Ce,pe,he)}"value"in ee&&c(z,"value",j.value,ee.value,pe)}},P=(z,j,ee,he,pe,me,Ce,Ee,xe)=>{const be=j.el=z?z.el:d(""),Q=j.anchor=z?z.anchor:d("");let{patchFlag:fe,dynamicChildren:ie,slotScopeIds:Re}=j;Re&&(Ee=Ee?Ee.concat(Re):Re),z==null?(o(be,ee,he),o(Q,ee,he),oe(j.children||[],ee,Q,pe,me,Ce,Ee,xe)):fe>0&&fe&64&&ie&&z.dynamicChildren&&z.dynamicChildren.length===ie.length?(G(z.dynamicChildren,ie,ee,pe,me,Ce,Ee),(j.key!=null||pe&&j===pe.subTree)&&nw(z,j,!0)):ae(z,j,ee,Q,pe,me,Ce,Ee,xe)},O=(z,j,ee,he,pe,me,Ce,Ee,xe)=>{j.slotScopeIds=Ee,z==null?j.shapeFlag&512?pe.ctx.activate(j,ee,he,Ce,xe):S(j,ee,he,pe,me,Ce,xe):k(z,j,xe)},S=(z,j,ee,he,pe,me,Ce)=>{const Ee=z.component=eC(z,he,pe);if(sf(z)&&(Ee.ctx.renderer=le),tC(Ee,!1,Ce),Ee.asyncDep){if(pe&&pe.registerDep(Ee,D,Ce),!z.el){const xe=Ee.subTree=Le(cn);M(null,xe,j,ee),z.placeholder=xe.el}}else D(Ee,z,j,ee,pe,me,Ce)},k=(z,j,ee)=>{const he=j.component=z.component;if(PT(z,j,ee))if(he.asyncDep&&!he.asyncResolved){R(he,j,ee);return}else he.next=j,he.update();else j.el=z.el,he.vnode=j},D=(z,j,ee,he,pe,me,Ce)=>{const Ee=()=>{if(z.isMounted){let{next:fe,bu:ie,u:Re,parent:Qe,vnode:ct}=z;{const qt=rw(z);if(qt){fe&&(fe.el=ct.el,R(z,fe,Ce)),qt.asyncDep.then(()=>{z.isUnmounted||Ee()});return}}let dt=fe,Nt;Fo(z,!1),fe?(fe.el=ct.el,R(z,fe,Ce)):fe=ct,ie&&nu(ie),(Nt=fe.props&&fe.props.onVnodeBeforeUpdate)&&Kr(Nt,Qe,fe,ct),Fo(z,!0);const ut=fv(z),Jt=z.subTree;z.subTree=ut,L(Jt,ut,v(Jt.el),H(Jt),z,pe,me),fe.el=ut.el,dt===null&&dp(z,ut.el),Re&&Gn(Re,pe),(Nt=fe.props&&fe.props.onVnodeUpdated)&&Gn(()=>Kr(Nt,Qe,fe,ct),pe)}else{let fe;const{el:ie,props:Re}=j,{bm:Qe,m:ct,parent:dt,root:Nt,type:ut}=z,Jt=Xs(j);Fo(z,!1),Qe&&nu(Qe),!Jt&&(fe=Re&&Re.onVnodeBeforeMount)&&Kr(fe,dt,j),Fo(z,!0);{Nt.ce&&Nt.ce._def.shadowRoot!==!1&&Nt.ce._injectChildStyle(ut);const qt=z.subTree=fv(z);L(null,qt,ee,he,z,pe,me),j.el=qt.el}if(ct&&Gn(ct,pe),!Jt&&(fe=Re&&Re.onVnodeMounted)){const qt=j;Gn(()=>Kr(fe,dt,qt),pe)}(j.shapeFlag&256||dt&&Xs(dt.vnode)&&dt.vnode.shapeFlag&256)&&z.a&&Gn(z.a,pe),z.isMounted=!0,j=ee=he=null}};z.scope.on();const xe=z.effect=new rb(Ee);z.scope.off();const be=z.update=xe.run.bind(xe),Q=z.job=xe.runIfDirty.bind(xe);Q.i=z,Q.id=z.uid,xe.scheduler=()=>ap(Q),Fo(z,!0),be()},R=(z,j,ee)=>{j.component=z;const he=z.vnode.props;z.vnode=j,z.next=null,RT(z,j.props,he,ee),FT(z,j.children,ee),Ai(),iv(z),Li()},ae=(z,j,ee,he,pe,me,Ce,Ee,xe=!1)=>{const be=z&&z.children,Q=z?z.shapeFlag:0,fe=j.children,{patchFlag:ie,shapeFlag:Re}=j;if(ie>0){if(ie&128){_e(be,fe,ee,he,pe,me,Ce,Ee,xe);return}else if(ie&256){ce(be,fe,ee,he,pe,me,Ce,Ee,xe);return}}Re&8?(Q&16&&$e(be,pe,me),fe!==be&&g(ee,fe)):Q&16?Re&16?_e(be,fe,ee,he,pe,me,Ce,Ee,xe):$e(be,pe,me,!0):(Q&8&&g(ee,""),Re&16&&oe(fe,ee,he,pe,me,Ce,Ee,xe))},ce=(z,j,ee,he,pe,me,Ce,Ee,xe)=>{z=z||Vs,j=j||Vs;const be=z.length,Q=j.length,fe=Math.min(be,Q);let ie;for(ie=0;ie<fe;ie++){const Re=j[ie]=xe?io(j[ie]):Nr(j[ie]);L(z[ie],Re,ee,null,pe,me,Ce,Ee,xe)}be>Q?$e(z,pe,me,!0,!1,fe):oe(j,ee,he,pe,me,Ce,Ee,xe,fe)},_e=(z,j,ee,he,pe,me,Ce,Ee,xe)=>{let be=0;const Q=j.length;let fe=z.length-1,ie=Q-1;for(;be<=fe&&be<=ie;){const Re=z[be],Qe=j[be]=xe?io(j[be]):Nr(j[be]);if(Yr(Re,Qe))L(Re,Qe,ee,null,pe,me,Ce,Ee,xe);else break;be++}for(;be<=fe&&be<=ie;){const Re=z[fe],Qe=j[ie]=xe?io(j[ie]):Nr(j[ie]);if(Yr(Re,Qe))L(Re,Qe,ee,null,pe,me,Ce,Ee,xe);else break;fe--,ie--}if(be>fe){if(be<=ie){const Re=ie+1,Qe=Re<Q?j[Re].el:he;for(;be<=ie;)L(null,j[be]=xe?io(j[be]):Nr(j[be]),ee,Qe,pe,me,Ce,Ee,xe),be++}}else if(be>ie)for(;be<=fe;)Ae(z[be],pe,me,!0),be++;else{const Re=be,Qe=be,ct=new Map;for(be=Qe;be<=ie;be++){const Ht=j[be]=xe?io(j[be]):Nr(j[be]);Ht.key!=null&&ct.set(Ht.key,be)}let dt,Nt=0;const ut=ie-Qe+1;let Jt=!1,qt=0;const jn=new Array(ut);for(be=0;be<ut;be++)jn[be]=0;for(be=Re;be<=fe;be++){const Ht=z[be];if(Nt>=ut){Ae(Ht,pe,me,!0);continue}let Wn;if(Ht.key!=null)Wn=ct.get(Ht.key);else for(dt=Qe;dt<=ie;dt++)if(jn[dt-Qe]===0&&Yr(Ht,j[dt])){Wn=dt;break}Wn===void 0?Ae(Ht,pe,me,!0):(jn[Wn-Qe]=be+1,Wn>=qt?qt=Wn:Jt=!0,L(Ht,j[Wn],ee,null,pe,me,Ce,Ee,xe),Nt++)}const jr=Jt?WT(jn):Vs;for(dt=jr.length-1,be=ut-1;be>=0;be--){const Ht=Qe+be,Wn=j[Ht],at=j[Ht+1],Co=Ht+1<Q?at.el||iw(at):he;jn[be]===0?L(null,Wn,ee,Co,pe,me,Ce,Ee,xe):Jt&&(dt<0||be!==jr[dt]?je(Wn,ee,Co,2):dt--)}}},je=(z,j,ee,he,pe=null)=>{const{el:me,type:Ce,transition:Ee,children:xe,shapeFlag:be}=z;if(be&6){je(z.component.subTree,j,ee,he);return}if(be&128){z.suspense.move(j,ee,he);return}if(be&64){Ce.move(z,j,ee,le);return}if(Ce===et){o(me,j,ee);for(let fe=0;fe<xe.length;fe++)je(xe[fe],j,ee,he);o(z.anchor,j,ee);return}if(Ce===Ld){F(z,j,ee);return}if(he!==2&&be&1&&Ee)if(he===0)Ee.beforeEnter(me),o(me,j,ee),Gn(()=>Ee.enter(me),pe);else{const{leave:fe,delayLeave:ie,afterLeave:Re}=Ee,Qe=()=>{z.ctx.isUnmounted?s(me):o(me,j,ee)},ct=()=>{me._isLeaving&&me[bi](!0),fe(me,()=>{Qe(),Re&&Re()})};ie?ie(me,Qe,ct):ct()}else o(me,j,ee)},Ae=(z,j,ee,he=!1,pe=!1)=>{const{type:me,props:Ce,ref:Ee,children:xe,dynamicChildren:be,shapeFlag:Q,patchFlag:fe,dirs:ie,cacheIndex:Re}=z;if(fe===-2&&(pe=!1),Ee!=null&&(Ai(),aa(Ee,null,ee,z,!0),Li()),Re!=null&&(j.renderCache[Re]=void 0),Q&256){j.ctx.deactivate(z);return}const Qe=Q&1&&ie,ct=!Xs(z);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Kr(dt,j,z),Q&6)He(z.component,ee,he);else{if(Q&128){z.suspense.unmount(ee,he);return}Qe&&zo(z,null,j,"beforeUnmount"),Q&64?z.type.remove(z,j,ee,le,he):be&&!be.hasOnce&&(me!==et||fe>0&&fe&64)?$e(be,j,ee,!1,!0):(me===et&&fe&384||!pe&&Q&16)&&$e(xe,j,ee),he&&Ke(z)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||Qe)&&Gn(()=>{dt&&Kr(dt,j,z),Qe&&zo(z,null,j,"unmounted")},ee)},Ke=z=>{const{type:j,el:ee,anchor:he,transition:pe}=z;if(j===et){Ue(ee,he);return}if(j===Ld){E(z);return}const me=()=>{s(ee),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(z.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ce,delayLeave:Ee}=pe,xe=()=>Ce(ee,me);Ee?Ee(z.el,me,xe):xe()}else me()},Ue=(z,j)=>{let ee;for(;z!==j;)ee=b(z),s(z),z=ee;s(j)},He=(z,j,ee)=>{const{bum:he,scope:pe,job:me,subTree:Ce,um:Ee,m:xe,a:be}=z;pv(xe),pv(be),he&&nu(he),pe.stop(),me&&(me.flags|=8,Ae(Ce,z,j,ee)),Ee&&Gn(Ee,j),Gn(()=>{z.isUnmounted=!0},j)},$e=(z,j,ee,he=!1,pe=!1,me=0)=>{for(let Ce=me;Ce<z.length;Ce++)Ae(z[Ce],j,ee,he,pe)},H=z=>{if(z.shapeFlag&6)return H(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const j=b(z.anchor||z.el),ee=j&&j[nT];return ee?b(ee):j};let Z=!1;const re=(z,j,ee)=>{let he;z==null?j._vnode&&(Ae(j._vnode,null,null,!0),he=j._vnode.component):L(j._vnode||null,z,j,null,null,null,ee),j._vnode=z,Z||(Z=!0,iv(he),_b(),Z=!1)},le={p:L,um:Ae,m:je,r:Ke,mt:S,mc:oe,pc:ae,pbc:G,n:H,o:e};return{render:re,hydrate:void 0,createApp:ET(re)}}function Ad({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 Fo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function jT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nw(e,t,r=!1){const o=e.children,s=t.children;if(Xe(o)&&Xe(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]=io(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&nw(f,d)),d.type===uf&&(d.patchFlag!==-1?d.el=f.el:d.__elIndex=c+(e.type===et?1:0)),d.type===cn&&!d.el&&(d.el=f.el)}}function WT(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 rw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rw(t)}function pv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function iw(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?iw(t.subTree):null}const ow=e=>e.__isSuspense;let uh=0;const qT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)UT(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}VT(e,t,r,o,s,f,d,h,p)}},hydrate:GT,normalize:KT},gp=qT;function _a(e,t){const r=e.props&&e.props[t];nt(r)&&r()}function UT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:g}}=h,v=g("div"),b=e.suspense=sw(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(_a(e,"onPending"),_a(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Ys(b,e.ssFallback)):b.resolve(!1,!0)}function VT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:C,pendingBranch:L,isInFallback:N,isHydrating:M}=v;if(L)v.pendingBranch=b,Yr(L,b)?(h(L,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():N&&(M||(h(C,x,r,o,s,null,c,f,d),Ys(v,x)))):(v.pendingId=uh++,M?(v.isHydrating=!1,v.activeBranch=L):p(L,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),N?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(C,x,r,o,s,null,c,f,d),Ys(v,x))):C&&Yr(C,b)?(h(C,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(C&&Yr(C,b))h(C,b,r,o,s,v,c,f,d),Ys(v,b);else if(_a(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=uh++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:$,pendingId:F}=v;$>0?setTimeout(()=>{v.pendingId===F&&v.fallback(x)},$):$===0&&v.fallback(x)}}function sw(e,t,r,o,s,c,f,d,h,p,g=!1){const{p:v,m:b,um:x,n:C,o:{parentNode:L,remove:N}}=p;let M;const $=YT(e);$&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const F=e.props?Qy(e.props.timeout):void 0,E=c,I={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:uh++,timeout:typeof F=="number"?F:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(q=!1,Y=!1){const{vnode:oe,activeBranch:J,pendingBranch:G,pendingId:K,effects:P,parentComponent:O,container:S,isInFallback:k}=I;let D=!1;I.isHydrating?I.isHydrating=!1:q||(D=J&&G.transition&&G.transition.mode==="out-in",D&&(J.transition.afterLeave=()=>{K===I.pendingId&&(b(G,S,c===E?C(J):c,0),rh(P),k&&oe.ssFallback&&(oe.ssFallback.el=null))}),J&&(L(J.el)===S&&(c=C(J)),x(J,O,I,!0),!D&&k&&oe.ssFallback&&Gn(()=>oe.ssFallback.el=null,I)),D||b(G,S,c,0)),Ys(I,G),I.pendingBranch=null,I.isInFallback=!1;let R=I.parent,ae=!1;for(;R;){if(R.pendingBranch){R.effects.push(...P),ae=!0;break}R=R.parent}!ae&&!D&&rh(P),I.effects=[],$&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!Y&&t.resolve()),_a(oe,"onResolve")},fallback(q){if(!I.pendingBranch)return;const{vnode:Y,activeBranch:oe,parentComponent:J,container:G,namespace:K}=I;_a(Y,"onFallback");const P=C(oe),O=()=>{I.isInFallback&&(v(null,q,G,P,J,null,K,d,h),Ys(I,q))},S=q.transition&&q.transition.mode==="out-in";S&&(oe.transition.afterLeave=O),I.isInFallback=!0,x(oe,J,null,!0),S||O()},move(q,Y,oe){I.activeBranch&&b(I.activeBranch,q,Y,oe),I.container=q},next(){return I.activeBranch&&C(I.activeBranch)},registerDep(q,Y,oe){const J=!!I.pendingBranch;J&&I.deps++;const G=q.vnode.el;q.asyncDep.catch(K=>{Va(K,q,0)}).then(K=>{if(q.isUnmounted||I.isUnmounted||I.pendingId!==q.suspenseId)return;q.asyncResolved=!0;const{vnode:P}=q;dh(q,K),G&&(P.el=G);const O=!G&&q.subTree.el;Y(q,P,L(G||q.subTree.el),G?null:C(q.subTree),I,f,oe),O&&(P.placeholder=null,N(O)),dp(q,P.el),J&&--I.deps===0&&I.resolve()})},unmount(q,Y){I.isUnmounted=!0,I.activeBranch&&x(I.activeBranch,r,q,Y),I.pendingBranch&&x(I.pendingBranch,r,q,Y)}};return I}function GT(e,t,r,o,s,c,f,d,h){const p=t.suspense=sw(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),g}function KT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=gv(o?r.default:r),e.ssFallback=o?gv(r.fallback):Le(cn)}function gv(e){let t;if(nt(e)){const r=ol&&e._c;r&&(e._d=!1,te()),e=e(),r&&(e._d=!0,t=Zn,lw())}return Xe(e)&&(e=MT(e)),e=Nr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function XT(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):rh(e)}function Ys(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,dp(o,s))}function YT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const et=Symbol.for("v-fgt"),uf=Symbol.for("v-txt"),cn=Symbol.for("v-cmt"),Ld=Symbol.for("v-stc"),ua=[];let Zn=null;function te(e=!1){ua.push(Zn=e?null:[])}function lw(){ua.pop(),Zn=ua[ua.length-1]||null}let ol=1;function sl(e,t=!1){ol+=e,e<0&&Zn&&t&&(Zn.hasOnce=!0)}function aw(e){return e.dynamicChildren=ol>0?Zn||Vs:null,lw(),ol>0&&Zn&&Zn.push(e),e}function ve(e,t,r,o,s,c){return aw(X(e,t,r,o,s,c,!0))}function We(e,t,r,o,s){return aw(Le(e,t,r,o,s,!0))}function ll(e){return e?e.__v_isVNode===!0:!1}function Yr(e,t){return e.type===t.type&&e.key===t.key}const cw=({key:e})=>e??null,ru=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ft(e)||Et(e)||nt(e)?{i:vn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,o=0,s=null,c=e===et?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cw(t),ref:t&&ru(t),scopeId:rf,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:vn};return d?(mp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ft(r)?8:16),ol>0&&!f&&Zn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Zn.push(h),h}const Le=ZT;function ZT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Fb)&&(e=cn),ll(e)){const d=yo(e,t,!0);return r&&mp(d,r),ol>0&&!c&&Zn&&(d.shapeFlag&6?Zn[Zn.indexOf(e)]=d:Zn.push(d)),d.patchFlag=-2,d}if(oC(e)&&(e=e.__vccOpts),t){t=uw(t);let{class:d,style:h}=t;d&&!Ft(d)&&(t.class=rt(d)),St(h)&&(tf(h)&&!Xe(h)&&(h=Zt({},h)),t.style=Pt(h))}const f=Ft(e)?1:ow(e)?128:Nb(e)?64:St(e)?4:nt(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function uw(e){return e?tf(e)||Yb(e)?Zt({},e):e:null}function yo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?Ti(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&cw(p),ref:t&&t.ref?r&&c?Xe(c)?c.concat(ru(t)):[c,ru(t)]:ru(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!==et?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&&yo(e.ssContent),ssFallback:e.ssFallback&&yo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&xa(g,h.clone(g)),g}function Je(e=" ",t=0){return Le(uf,null,e,t)}function ze(e="",t=!1){return t?(te(),We(cn,null,e)):Le(cn,null,e)}function Nr(e){return e==null||typeof e=="boolean"?Le(cn):Xe(e)?Le(et,null,e.slice()):ll(e)?io(e):Le(uf,null,String(e))}function io(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yo(e)}function mp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Xe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),mp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Yb(t)?t._ctx=vn:s===3&&vn&&(vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nt(t)?(t={default:t,_ctx:vn},r=32):(t=String(t),o&64?(r=16,t=[Je(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ti(...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=rt([t.class,o.class]));else if(s==="style")t.style=Pt([t.style,o.style]);else if(Gu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Xe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Kr(e,t,r,o=null){zr(e,t,7,[r,o])}const JT=Ub();let QT=0;function eC(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||JT,c={uid:QT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new yS(!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:Jb(o,s),emitsOptions:Gb(o,s),emit:null,emitted:null,propsDefaults:yt,inheritAttrs:o.inheritAttrs,ctx:yt,data:yt,props:yt,attrs:yt,slots:yt,refs:yt,setupState:yt,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=AT.bind(null,c),e.ce&&e.ce(c),c}let Tn=null;const ni=()=>Tn||vn;let Su,fh;{const e=Ju(),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)}};Su=t("__VUE_INSTANCE_SETTERS__",r=>Tn=r),fh=t("__VUE_SSR_SETTERS__",r=>Sa=r)}const Xa=e=>{const t=Tn;return Su(e),e.scope.on(),()=>{e.scope.off(),Su(t)}},mv=()=>{Tn&&Tn.scope.off(),Su(null)};function fw(e){return e.vnode.shapeFlag&4}let Sa=!1;function tC(e,t=!1,r=!1){t&&fh(t);const{props:o,children:s}=e.vnode,c=fw(e);$T(e,o,c,t),zT(e,s,r||t);const f=c?nC(e,t):void 0;return t&&fh(!1),f}function nC(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bT);const{setup:o}=r;if(o){Ai();const s=e.setupContext=o.length>1?hw(e):null,c=Xa(e),f=Ua(o,e,0,[e.props,s]),d=Xy(f);if(Li(),c(),(d||e.sp)&&!Xs(e)&&Db(e),d){if(f.then(mv,mv),t)return f.then(h=>{dh(e,h)}).catch(h=>{Va(h,e,0)});e.asyncDep=f}else dh(e,f)}else dw(e)}function dh(e,t,r){nt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=yb(t)),dw(e)}function dw(e,t,r){const o=e.type;e.render||(e.render=o.render||Zr);{const s=Xa(e);Ai();try{xT(e)}finally{Li(),s()}}}const rC={get(e,t){return Sn(e,"get",""),e[t]}};function hw(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,rC),slots:e.slots,emit:e.emit,expose:t}}function ff(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yb(nf(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ca)return ca[r](e)},has(t,r){return r in t||r in ca}})):e.proxy}function iC(e,t=!0){return nt(e)?e.displayName||e.name:e.name||t&&e.__name}function oC(e){return nt(e)&&"__vccOpts"in e}const ke=(e,t)=>GS(e,t,Sa);function Ya(e,t,r){try{sl(-1);const o=arguments.length;return o===2?St(t)&&!Xe(t)?ll(t)?Le(e,null,[t]):Le(e,t):Le(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&ll(r)&&(r=[r]),Le(e,t,r))}finally{sl(1)}}const sC="3.5.27";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.27
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let hh;const vv=typeof window<"u"&&window.trustedTypes;if(vv)try{hh=vv.createPolicy("vue",{createHTML:e=>e})}catch{}const pw=hh?e=>hh.createHTML(e):e=>e,lC="http://www.w3.org/2000/svg",aC="http://www.w3.org/1998/Math/MathML",vi=typeof document<"u"?document:null,yv=vi&&vi.createElement("template"),cC={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"?vi.createElementNS(lC,e):t==="mathml"?vi.createElementNS(aC,e):r?vi.createElement(e,{is:r}):vi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>vi.createTextNode(e),createComment:e=>vi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vi.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{yv.innerHTML=pw(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=yv.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]}},Yi="transition",Xl="animation",Ta=Symbol("_vtc"),gw={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},uC=Zt({},Ob,gw),fC=e=>(e.displayName="Transition",e.props=uC,e),dC=fC((e,{slots:t})=>Ya(oT,hC(e),t)),Ho=(e,t=[])=>{Xe(e)?e.forEach(r=>r(...t)):e&&e(...t)},bv=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function hC(e){const t={};for(const P in e)P in gw||(t[P]=e[P]);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:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,C=pC(s),L=C&&C[0],N=C&&C[1],{onBeforeEnter:M,onEnter:$,onEnterCancelled:F,onLeave:E,onLeaveCancelled:I,onBeforeAppear:q=M,onAppear:Y=$,onAppearCancelled:oe=F}=t,J=(P,O,S,k)=>{P._enterCancelled=k,Bo(P,O?g:d),Bo(P,O?p:f),S&&S()},G=(P,O)=>{P._isLeaving=!1,Bo(P,v),Bo(P,x),Bo(P,b),O&&O()},K=P=>(O,S)=>{const k=P?Y:$,D=()=>J(O,P,S);Ho(k,[O,D]),wv(()=>{Bo(O,P?h:c),hi(O,P?g:d),bv(k)||xv(O,o,L,D)})};return Zt(t,{onBeforeEnter(P){Ho(M,[P]),hi(P,c),hi(P,f)},onBeforeAppear(P){Ho(q,[P]),hi(P,h),hi(P,p)},onEnter:K(!1),onAppear:K(!0),onLeave(P,O){P._isLeaving=!0;const S=()=>G(P,O);hi(P,v),P._enterCancelled?(hi(P,b),Sv(P)):(Sv(P),hi(P,b)),wv(()=>{P._isLeaving&&(Bo(P,v),hi(P,x),bv(E)||xv(P,o,N,S))}),Ho(E,[P,S])},onEnterCancelled(P){J(P,!1,void 0,!0),Ho(F,[P])},onAppearCancelled(P){J(P,!0,void 0,!0),Ho(oe,[P])},onLeaveCancelled(P){G(P),Ho(I,[P])}})}function pC(e){if(e==null)return null;if(St(e))return[Md(e.enter),Md(e.leave)];{const t=Md(e);return[t,t]}}function Md(e){return Qy(e)}function hi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ta]||(e[Ta]=new Set)).add(t)}function Bo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Ta];r&&(r.delete(t),r.size||(e[Ta]=void 0))}function wv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gC=0;function xv(e,t,r,o){const s=e._endId=++gC,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=mC(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function mC(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),s=o(`${Yi}Delay`),c=o(`${Yi}Duration`),f=kv(s,c),d=o(`${Xl}Delay`),h=o(`${Xl}Duration`),p=kv(d,h);let g=null,v=0,b=0;t===Yi?f>0&&(g=Yi,v=f,b=c.length):t===Xl?p>0&&(g=Xl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Yi:Xl:null,b=g?g===Yi?c.length:h.length:0);const x=g===Yi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Yi}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:x}}function kv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>_v(r)+_v(e[o])))}function _v(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sv(e){return(e?e.ownerDocument:document).body.offsetHeight}function vC(e,t,r){const o=e[Ta];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Tu=Symbol("_vod"),mw=Symbol("_vsh"),uo={name:"show",beforeMount(e,{value:t},{transition:r}){e[Tu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Yl(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),Yl(e,!0),o.enter(e)):o.leave(e,()=>{Yl(e,!1)}):Yl(e,t))},beforeUnmount(e,{value:t}){Yl(e,t)}};function Yl(e,t){e.style.display=t?e[Tu]:"none",e[mw]=!t}const yC=Symbol(""),bC=/(?:^|;)\s*display\s*:/;function wC(e,t,r){const o=e.style,s=Ft(r);let c=!1;if(r&&!s){if(t)if(Ft(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&iu(o,d,"")}else for(const f in t)r[f]==null&&iu(o,f,"");for(const f in r)f==="display"&&(c=!0),iu(o,f,r[f])}else if(s){if(t!==r){const f=o[yC];f&&(r+=";"+f),o.cssText=r,c=bC.test(r)}}else t&&e.removeAttribute("style");Tu in e&&(e[Tu]=c?o.display:"",e[mw]&&(o.display="none"))}const Tv=/\s*!important$/;function iu(e,t,r){if(Xe(r))r.forEach(o=>iu(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=xC(e,t);Tv.test(r)?e.setProperty(Pi(o),r.replace(Tv,""),"important"):e[o]=r}}const Cv=["Webkit","Moz","ms"],Nd={};function xC(e,t){const r=Nd[t];if(r)return r;let o=ar(t);if(o!=="filter"&&o in e)return Nd[t]=o;o=Yu(o);for(let s=0;s<Cv.length;s++){const c=Cv[s]+o;if(c in e)return Nd[t]=c}return t}const Ev="http://www.w3.org/1999/xlink";function Av(e,t,r,o,s,c=mS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Ev,t.slice(6,t.length)):e.setAttributeNS(Ev,t,r):r==null||c&&!eb(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Ir(r)?String(r):r)}function Lv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?pw(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=eb(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function co(e,t,r,o){e.addEventListener(t,r,o)}function kC(e,t,r,o){e.removeEventListener(t,r,o)}const Mv=Symbol("_vei");function _C(e,t,r,o,s=null){const c=e[Mv]||(e[Mv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=SC(t);if(o){const p=c[t]=EC(o,s);co(e,d,p,h)}else f&&(kC(e,d,f,h),c[t]=void 0)}}const Nv=/(?:Once|Passive|Capture)$/;function SC(e){let t;if(Nv.test(e)){t={};let o;for(;o=e.match(Nv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pi(e.slice(2)),t]}let Od=0;const TC=Promise.resolve(),CC=()=>Od||(TC.then(()=>Od=0),Od=Date.now());function EC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;zr(AC(o,r.value),t,5,[o])};return r.value=e,r.attached=CC(),r}function AC(e,t){if(Xe(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 Ov=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,LC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?vC(e,o,f):t==="style"?wC(e,r,o):Gu(t)?Jh(t)||_C(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):MC(e,t,o,f))?(Lv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Av(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ft(o))?Lv(e,ar(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Av(e,t,o,f))};function MC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ov(t)&&nt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 Ov(t)&&Ft(r)?!1:t in e}const al=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?r=>nu(t,r):t};function NC(e){e.target.composing=!0}function Pv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ci=Symbol("_assign");function $v(e,t,r){return t&&(e=e.trim()),r&&(e=Zu(e)),e}const vw={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ci]=al(s);const c=o||s.props&&s.props.type==="number";co(e,t?"change":"input",f=>{f.target.composing||e[Ci]($v(e.value,r,c))}),(r||c)&&co(e,"change",()=>{e.value=$v(e.value,r,c)}),t||(co(e,"compositionstart",NC),co(e,"compositionend",Pv),co(e,"change",Pv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ci]=al(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Zu(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))}},yw={deep:!0,created(e,t,r){e[Ci]=al(r),co(e,"change",()=>{const o=e._modelValue,s=Ca(e),c=e.checked,f=e[Ci];if(Xe(o)){const d=ep(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(ml(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(bw(e,c))})},mounted:Rv,beforeUpdate(e,t,r){e[Ci]=al(r),Rv(e,t,r)}};function Rv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Xe(t))s=ep(t,o.props.value)>-1;else if(ml(t))s=t.has(o.props.value);else{if(t===r)return;s=qa(t,bw(e,!0))}e.checked!==s&&(e.checked=s)}const Iv={deep:!0,created(e,{value:t,modifiers:{number:r}},o){const s=ml(t);co(e,"change",()=>{const c=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>r?Zu(Ca(f)):Ca(f));e[Ci](e.multiple?s?new Set(c):c:c[0]),e._assigning=!0,Ct(()=>{e._assigning=!1})}),e[Ci]=al(o)},mounted(e,{value:t}){Dv(e,t)},beforeUpdate(e,t,r){e[Ci]=al(r)},updated(e,{value:t}){e._assigning||Dv(e,t)}};function Dv(e,t){const r=e.multiple,o=Xe(t);if(!(r&&!o&&!ml(t))){for(let s=0,c=e.options.length;s<c;s++){const f=e.options[s],d=Ca(f);if(r)if(o){const h=typeof d;h==="string"||h==="number"?f.selected=t.some(p=>String(p)===String(d)):f.selected=ep(t,d)>-1}else f.selected=t.has(d);else if(qa(Ca(f),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ca(e){return"_value"in e?e._value:e.value}function bw(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const OC=["ctrl","shift","alt","meta"],PC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>OC.some(r=>e[`${r}Key`]&&!t.includes(r))},ou=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=PC[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},$C={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ph=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Pi(s.key);if(t.some(f=>f===c||$C[f]===c))return e(s)}))},RC=Zt({patchProp:LC},cC);let zv;function IC(){return zv||(zv=HT(RC))}const ww=((...e)=>{const t=IC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=zC(o);if(!s)return;const c=t._component;!nt(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,DC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function DC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zC(e){return Ft(e)?document.querySelector(e):e}const Ii=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},FC={};function HC(e,t){const r=ts("RouterView");return te(),We(r)}const BC=Ii(FC,[["render",HC]]),jC=["top","right","bottom","left"],Fv=["start","end"],Hv=jC.reduce((e,t)=>e.concat(t,t+"-"+Fv[0],t+"-"+Fv[1]),[]),Ea=Math.min,qo=Math.max,WC={left:"right",right:"left",bottom:"top",top:"bottom"},qC={start:"end",end:"start"};function gh(e,t,r){return qo(e,Ea(t,r))}function is(e,t){return typeof e=="function"?e(t):e}function ti(e){return e.split("-")[0]}function Rr(e){return e.split("-")[1]}function xw(e){return e==="x"?"y":"x"}function vp(e){return e==="y"?"height":"width"}const UC=new Set(["top","bottom"]);function ki(e){return UC.has(ti(e))?"y":"x"}function yp(e){return xw(ki(e))}function kw(e,t,r){r===void 0&&(r=!1);const o=Rr(e),s=yp(e),c=vp(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Eu(f)),[f,Eu(f)]}function VC(e){const t=Eu(e);return[Cu(e),t,Cu(t)]}function Cu(e){return e.replace(/start|end/g,t=>qC[t])}const Bv=["left","right"],jv=["right","left"],GC=["top","bottom"],KC=["bottom","top"];function XC(e,t,r){switch(e){case"top":case"bottom":return r?t?jv:Bv:t?Bv:jv;case"left":case"right":return t?GC:KC;default:return[]}}function YC(e,t,r,o){const s=Rr(e);let c=XC(ti(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Cu)))),c}function Eu(e){return e.replace(/left|right|bottom|top/g,t=>WC[t])}function ZC(e){return{top:0,right:0,bottom:0,left:0,...e}}function _w(e){return typeof e!="number"?ZC(e):{top:e,right:e,bottom:e,left:e}}function fa(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function Wv(e,t,r){let{reference:o,floating:s}=e;const c=ki(t),f=yp(t),d=vp(f),h=ti(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:g,y:o.y-s.height};break;case"bottom":x={x:g,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:v};break;case"left":x={x:o.x-s.width,y:v};break;default:x={x:o.x,y:o.y}}switch(Rr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const JC=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:g,y:v}=Wv(p,o,h),b=o,x={},C=0;for(let L=0;L<d.length;L++){const{name:N,fn:M}=d[L],{x:$,y:F,data:E,reset:I}=await M({x:g,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});g=$??g,v=F??v,x={...x,[N]:{...x[N],...E}},I&&C<=50&&(C++,typeof I=="object"&&(I.placement&&(b=I.placement),I.rects&&(p=I.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):I.rects),{x:g,y:v}=Wv(p,b,h)),L=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:x}};async function df(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:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:x=0}=is(t,e),C=_w(x),N=d[b?v==="floating"?"reference":"floating":v],M=fa(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(N)))==null||r?N:N.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),$=v==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,F=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(F))?await(c.getScale==null?void 0:c.getScale(F))||{x:1,y:1}:{x:1,y:1},I=fa(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:F,strategy:h}):$);return{top:(M.top-I.top+C.top)/E.y,bottom:(I.bottom-M.bottom+C.bottom)/E.y,left:(M.left-I.left+C.left)/E.x,right:(I.right-M.right+C.right)/E.x}}const QC=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:g=0}=is(e,t)||{};if(p==null)return{};const v=_w(g),b={x:r,y:o},x=yp(s),C=vp(x),L=await f.getDimensions(p),N=x==="y",M=N?"top":"left",$=N?"bottom":"right",F=N?"clientHeight":"clientWidth",E=c.reference[C]+c.reference[x]-b[x]-c.floating[C],I=b[x]-c.reference[x],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let Y=q?q[F]:0;(!Y||!await(f.isElement==null?void 0:f.isElement(q)))&&(Y=d.floating[F]||c.floating[C]);const oe=E/2-I/2,J=Y/2-L[C]/2-1,G=Ea(v[M],J),K=Ea(v[$],J),P=G,O=Y-L[C]-K,S=Y/2-L[C]/2+oe,k=gh(P,S,O),D=!h.arrow&&Rr(s)!=null&&S!==k&&c.reference[C]/2-(S<P?G:K)-L[C]/2<0,R=D?S<P?S-P:S-O:0;return{[x]:b[x]+R,data:{[x]:k,centerOffset:S-k-R,...D&&{alignmentOffset:R}},reset:D}}});function eE(e,t,r){return(e?[...r.filter(s=>Rr(s)===e),...r.filter(s=>Rr(s)!==e)]:r.filter(s=>ti(s)===s)).filter(s=>e?Rr(s)===e||(t?Cu(s)!==s:!1):!0)}const tE=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:g=!1,alignment:v,allowedPlacements:b=Hv,autoAlignment:x=!0,...C}=is(e,t),L=v!==void 0||b===Hv?eE(v||null,x,b):b,N=await df(t,C),M=((r=f.autoPlacement)==null?void 0:r.index)||0,$=L[M];if($==null)return{};const F=kw($,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==$)return{reset:{placement:L[0]}};const E=[N[ti($)],N[F[0]],N[F[1]]],I=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:E}],q=L[M+1];if(q)return{data:{index:M+1,overflows:I},reset:{placement:q}};const Y=I.map(G=>{const K=Rr(G.placement);return[G.placement,K&&g?G.overflows.slice(0,2).reduce((P,O)=>P+O,0):G.overflows[0],G.overflows]}).sort((G,K)=>G[1]-K[1]),J=((s=Y.filter(G=>G[2].slice(0,Rr(G[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||Y[0][0];return J!==d?{data:{index:M+1,overflows:I},reset:{placement:J}}:{}}}},nE=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:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:L=!0,...N}=is(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=ti(s),$=ki(d),F=ti(d)===d,E=await(h.isRTL==null?void 0:h.isRTL(p.floating)),I=b||(F||!L?[Eu(d)]:VC(d)),q=C!=="none";!b&&q&&I.push(...YC(d,L,C,E));const Y=[d,...I],oe=await df(t,N),J=[];let G=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&J.push(oe[M]),v){const S=kw(s,f,E);J.push(oe[S[0]],oe[S[1]])}if(G=[...G,{placement:s,overflows:J}],!J.every(S=>S<=0)){var K,P;const S=(((K=c.flip)==null?void 0:K.index)||0)+1,k=Y[S];if(k&&(!(v==="alignment"?$!==ki(k):!1)||G.every(ae=>ki(ae.placement)===$?ae.overflows[0]>0:!0)))return{data:{index:S,overflows:G},reset:{placement:k}};let D=(P=G.filter(R=>R.overflows[0]<=0).sort((R,ae)=>R.overflows[1]-ae.overflows[1])[0])==null?void 0:P.placement;if(!D)switch(x){case"bestFit":{var O;const R=(O=G.filter(ae=>{if(q){const ce=ki(ae.placement);return ce===$||ce==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ce=>ce>0).reduce((ce,_e)=>ce+_e,0)]).sort((ae,ce)=>ae[1]-ce[1])[0])==null?void 0:O[0];R&&(D=R);break}case"initialPlacement":D=d;break}if(s!==D)return{reset:{placement:D}}}return{}}}},rE=new Set(["left","top"]);async function iE(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=ti(r),d=Rr(r),h=ki(r)==="y",p=rE.has(f)?-1:1,g=c&&h?-1:1,v=is(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:C}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof C=="number"&&(x=d==="end"?C*-1:C),h?{x:x*g,y:b*p}:{x:b*p,y:x*g}}const oE=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 iE(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}}}}},sE=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:N=>{let{x:M,y:$}=N;return{x:M,y:$}}},...h}=is(e,t),p={x:r,y:o},g=await df(t,h),v=ki(ti(s)),b=xw(v);let x=p[b],C=p[v];if(c){const N=b==="y"?"top":"left",M=b==="y"?"bottom":"right",$=x+g[N],F=x-g[M];x=gh($,x,F)}if(f){const N=v==="y"?"top":"left",M=v==="y"?"bottom":"right",$=C+g[N],F=C-g[M];C=gh($,C,F)}const L=d.fn({...t,[b]:x,[v]:C});return{...L,data:{x:L.x-r,y:L.y-o,enabled:{[b]:c,[v]:f}}}}}},lE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:s,rects:c,platform:f,elements:d}=t,{apply:h=()=>{},...p}=is(e,t),g=await df(t,p),v=ti(s),b=Rr(s),x=ki(s)==="y",{width:C,height:L}=c.floating;let N,M;v==="top"||v==="bottom"?(N=v,M=b===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(M=v,N=b==="end"?"top":"bottom");const $=L-g.top-g.bottom,F=C-g.left-g.right,E=Ea(L-g[N],$),I=Ea(C-g[M],F),q=!t.middlewareData.shift;let Y=E,oe=I;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(oe=F),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(Y=$),q&&!b){const G=qo(g.left,0),K=qo(g.right,0),P=qo(g.top,0),O=qo(g.bottom,0);x?oe=C-2*(G!==0||K!==0?G+K:qo(g.left,g.right)):Y=L-2*(P!==0||O!==0?P+O:qo(g.top,g.bottom))}await h({...t,availableWidth:oe,availableHeight:Y});const J=await f.getDimensions(d.floating);return C!==J.width||L!==J.height?{reset:{rects:!0}}:{}}}};function mr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jr(e){return mr(e).getComputedStyle(e)}const qv=Math.min,da=Math.max,Au=Math.round;function Sw(e){const t=Jr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Au(r)!==s||Au(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function bo(e){return Cw(e)?(e.nodeName||"").toLowerCase():""}let Bc;function Tw(){if(Bc)return Bc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Bc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Bc):navigator.userAgent}function Qr(e){return e instanceof mr(e).HTMLElement}function go(e){return e instanceof mr(e).Element}function Cw(e){return e instanceof mr(e).Node}function Uv(e){return typeof ShadowRoot>"u"?!1:e instanceof mr(e).ShadowRoot||e instanceof ShadowRoot}function hf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Jr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function aE(e){return["table","td","th"].includes(bo(e))}function mh(e){const t=/firefox/i.test(Tw()),r=Jr(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 Ew(){return!/^((?!chrome|android).)*safari/i.test(Tw())}function bp(e){return["html","body","#document"].includes(bo(e))}function Aw(e){return go(e)?e:e.contextElement}const Lw={x:1,y:1};function Zs(e){const t=Aw(e);if(!Qr(t))return Lw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Sw(t);let f=(c?Au(r.width):r.width)/o,d=(c?Au(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Aa(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Aw(e);let h=Lw;t&&(o?go(o)&&(h=Zs(o)):h=Zs(e));const p=d?mr(d):window,g=!Ew()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,C=f.height/h.y;if(d){const L=mr(d),N=o&&go(o)?mr(o):o;let M=L.frameElement;for(;M&&o&&N!==L;){const $=Zs(M),F=M.getBoundingClientRect(),E=getComputedStyle(M);F.x+=(M.clientLeft+parseFloat(E.paddingLeft))*$.x,F.y+=(M.clientTop+parseFloat(E.paddingTop))*$.y,v*=$.x,b*=$.y,x*=$.x,C*=$.y,v+=F.x,b+=F.y,M=mr(M).frameElement}}return{width:x,height:C,top:b,right:v+x,bottom:b+C,left:v,x:v,y:b}}function mo(e){return((Cw(e)?e.ownerDocument:e.document)||window.document).documentElement}function pf(e){return go(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mw(e){return Aa(mo(e)).left+pf(e).scrollLeft}function La(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uv(e)&&e.host||mo(e);return Uv(t)?t.host:t}function Nw(e){const t=La(e);return bp(t)?t.ownerDocument.body:Qr(t)&&hf(t)?t:Nw(t)}function Lu(e,t){var r;t===void 0&&(t=[]);const o=Nw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=mr(o);return s?t.concat(c,c.visualViewport||[],hf(o)?o:[]):t.concat(o,Lu(o))}function Vv(e,t,r){return t==="viewport"?fa((function(o,s){const c=mr(o),f=mo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=Ew();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):go(t)?fa((function(o,s){const c=Aa(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Qr(o)?Zs(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)):fa((function(o){const s=mo(o),c=pf(o),f=o.ownerDocument.body,d=da(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=da(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Mw(o);const g=-c.scrollTop;return Jr(f).direction==="rtl"&&(p+=da(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(mo(e)))}function Gv(e){return Qr(e)&&Jr(e).position!=="fixed"?e.offsetParent:null}function Kv(e){const t=mr(e);let r=Gv(e);for(;r&&aE(r)&&Jr(r).position==="static";)r=Gv(r);return r&&(bo(r)==="html"||bo(r)==="body"&&Jr(r).position==="static"&&!mh(r))?t:r||(function(o){let s=La(o);for(;Qr(s)&&!bp(s);){if(mh(s))return s;s=La(s)}return null})(e)||t}function cE(e,t,r){const o=Qr(t),s=mo(t),c=Aa(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((bo(t)!=="body"||hf(s))&&(f=pf(t)),Qr(t)){const h=Aa(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Mw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const uE={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=Lu(p).filter((N=>go(N)&&bo(N)!=="body")),x=null;const C=Jr(p).position==="fixed";let L=C?La(p):p;for(;go(L)&&!bp(L);){const N=Jr(L),M=mh(L);(C?M||x:M||N.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=N:b=b.filter(($=>$!==L)),L=La(L)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Vv(t,g,s);return p.top=da(v.top,p.top),p.right=qv(v.right,p.right),p.bottom=qv(v.bottom,p.bottom),p.left=da(v.left,p.left),p}),Vv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Qr(r),c=mo(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")&&((bo(r)!=="body"||hf(c))&&(f=pf(r)),Qr(r))){const p=Aa(r);d=Zs(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:go,getDimensions:function(e){return Qr(e)?Sw(e):e.getBoundingClientRect()},getOffsetParent:Kv,getDocumentElement:mo,getScale:Zs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Kv,c=this.getDimensions;return{reference:cE(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Jr(e).direction==="rtl"},fE=(e,t,r)=>{const o=new Map,s={platform:uE,...r},c={...s.platform,_c:o};return JC(e,t,{...s,platform:c})},vo={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 Ma(e,t){let r=vo.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=vo.themes[r.$extend]||{}:(r=null,o=vo[t]):r=null;while(r);return o}function dE(e){const t=[e];let r=vo.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=vo.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Xv(e){const t=[e];let r=vo.themes[e]||{};do r.$extend?(t.push(r.$extend),r=vo.themes[r.$extend]||{}):r=null;while(r);return t}let Na=!1;if(typeof window<"u"){Na=!1;try{const e=Object.defineProperty({},"passive",{get(){Na=!0}});window.addEventListener("test",null,e)}catch{}}let Ow=!1;typeof window<"u"&&typeof navigator<"u"&&(Ow=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Pw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Yv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Zv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Jv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Pd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const rr=[];let jo=null;const Qv={};function e0(e){let t=Qv[e];return t||(t=Qv[e]=[]),t}let vh=function(){};typeof window<"u"&&(vh=window.Element);function ht(e){return function(t){return Ma(t.theme,e)}}const $d="__floating-vue__popper",$w=()=>tt({name:"VPopper",provide(){return{[$d]:{parentPopper:this}}},inject:{[$d]:{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:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>Pw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,vh,Boolean],default:ht("container")},boundary:{type:[String,vh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("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[$d])==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(oE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(tE({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(sE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(nE({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(QC({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(lE({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 fE(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),jo&&this.instantMove&&jo.instantMove&&jo!==this.parentPopper){jo.$_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&&(jo=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 Pd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Lu(this.$_referenceNode),...Lu(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<rr.length;r++)t=rr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}rr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Xv(this.theme))e0(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 Pd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Jv(rr,this),rr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Xv(this.theme)){const o=e0(r);Jv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}jo===this&&(jo=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 Pd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Yv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Yv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Zv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Zv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Na?{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(ha>=e.left&&ha<=e.right&&pa>=e.top&&pa<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ha-Qi,o=pa-eo,s=t.left+t.width/2-Qi+(t.top+t.height/2)-eo+t.width+t.height,c=Qi+r*s,f=eo+o*s;return jc(Qi,eo,c,f,t.left,t.top,t.left,t.bottom)||jc(Qi,eo,c,f,t.left,t.top,t.right,t.top)||jc(Qi,eo,c,f,t.right,t.top,t.right,t.bottom)||jc(Qi,eo,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(Ow){const e=Na?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>t0(t),e),document.addEventListener("touchend",t=>n0(t,!0),e)}else window.addEventListener("mousedown",e=>t0(e),!0),window.addEventListener("click",e=>n0(e,!1),!0);window.addEventListener("resize",gE)}function t0(e,t){for(let r=0;r<rr.length;r++){const o=rr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function n0(e,t){hE(e,t)}function hE(e,t){const r={};for(let o=rr.length-1;o>=0;o--){const s=rr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&r0(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&&r0(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function r0(e,t,r){return r.closeAllPopover||r.closePopover&&t||pE(e,r)&&!t}function pE(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function gE(){for(let e=0;e<rr.length;e++)rr[e].$_computePosition()}function i0(){for(let e=0;e<rr.length;e++)rr[e].hide()}let Qi=0,eo=0,ha=0,pa=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Qi=ha,eo=pa,ha=e.clientX,pa=e.clientY},Na?{passive:!0}:void 0);function jc(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 mE={extends:$w()},gf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function vE(e,t,r,o,s,c){return te(),ve("div",{ref:"reference",class:rt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[zt(e.$slots,"default",pS(uw(e.slotData)))],2)}const yE=gf(mE,[["render",vE]]);function bE(){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 su;function yh(){yh.init||(yh.init=!0,su=bE()!==-1)}var mf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){yh(),Ct(()=>{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",su&&this.$el.appendChild(e),e.data="about:blank",su||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&&(!su&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wE=Eb();Tb("data-v-b329ee4c");const xE={class:"resize-observer",tabindex:"-1"};Cb();const kE=wE((e,t,r,o,s,c)=>(te(),We("div",xE)));mf.render=kE;mf.__scopeId="data-v-b329ee4c";mf.__file="src/components/ResizeObserver.vue";const Rw=(e="theme")=>({computed:{themeClass(){return dE(this[e])}}}),_E=tt({name:"VPopperContent",components:{ResizeObserver:mf},mixins:[Rw()],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}}}),SE=["id","aria-hidden","tabindex","data-popper-placement"],TE={ref:"inner",class:"v-popper__inner"},CE=X("div",{class:"v-popper__arrow-outer"},null,-1),EE=X("div",{class:"v-popper__arrow-inner"},null,-1),AE=[CE,EE];function LE(e,t,r,o,s,c){const f=ts("ResizeObserver");return te(),ve("div",{id:e.popperId,ref:"popover",class:rt(["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:Pt(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]=ph(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:Pt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",TE,[e.mounted?(te(),ve(et,{key:0},[X("div",null,[zt(e.$slots,"default")]),e.handleResize?(te(),We(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):ze("",!0)],64)):ze("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:Pt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},AE,4)],4)],46,SE)}const Iw=gf(_E,[["render",LE]]),Dw={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 bh=function(){};typeof window<"u"&&(bh=window.Element);const ME=tt({name:"VPopperWrapper",components:{Popper:yE,PopperContent:Iw},mixins:[Dw,Rw("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,bh,Boolean],default:void 0},boundary:{type:[String,bh],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 NE(e,t,r,o,s,c){const f=ts("PopperContent"),d=ts("Popper");return te(),We(d,Ti({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:Be(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:x,hide:C,handleResize:L,onResize:N,classes:M,result:$})=>[zt(e.$slots,"default",{shown:p,show:x,hide:C}),Le(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":L,classes:M,result:$,onHide:C,onResize:N},{default:Be(()=>[zt(e.$slots,"popper",{shown:p,hide:C})]),_: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 wp=gf(ME,[["render",NE]]);({...wp});({...wp});const OE={...wp,name:"VTooltip",vPopperTheme:"tooltip"},PE=tt({name:"VTooltipDirective",components:{Popper:$w(),PopperContent:Iw},mixins:[Dw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ma(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ma(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}}}),$E=["innerHTML"],RE=["textContent"];function IE(e,t,r,o,s,c){const f=ts("PopperContent"),d=ts("Popper");return te(),We(d,Ti({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Be(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:x,handleResize:C,onResize:L,classes:N,result:M})=>[Le(f,{ref:"popperContent",class:rt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":C,classes:N,result:M,onHide:x,onResize:L},{default:Be(()=>[e.html?(te(),ve("div",{key:0,innerHTML:e.finalContent},null,8,$E)):(te(),ve("div",{key:1,textContent:Pe(e.finalContent)},null,8,RE))]),_: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 DE=gf(PE,[["render",IE]]),zw="v-popper--has-tooltip";function zE(e,t){let r=e.placement;if(!r&&t)for(const o of Pw)t[o]&&(r=o);return r||(r=Ma(e.theme||"tooltip","placement")),r}function Fw(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=zE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Rd,Oa,FE=0;function HE(){if(Rd)return;Oa=Ve([]),Rd=ww({name:"VTooltipDirectiveApp",setup(){return{directives:Oa}},render(){return this.directives.map(t=>Ya(DE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Rd.mount(e)}function Hw(e,t,r){HE();const o=Ve(Fw(e,t,r)),s=Ve(!1),c={id:FE++,options:o,shown:s};return Oa.value.push(c),e.classList&&e.classList.add(zw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function xp(e){if(e.$_popper){const t=Oa.value.indexOf(e.$_popper.item);t!==-1&&Oa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(zw)}function o0(e,{value:t,modifiers:r}){const o=Fw(e,t,r);if(!o.content||Ma(o.theme||"tooltip","disabled"))xp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Hw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const BE={beforeMount:o0,updated:o0,beforeUnmount(e){xp(e)}},jE=BE,oo=OE,Bw={options:vo};function jw(e,t){return tp()?(bS(e,t),!0):!1}const Id=new WeakMap,WE=(...e)=>{var t;const r=e[0],o=(t=ni())===null||t===void 0?void 0:t.proxy,s=o??tp();if(s==null&&!Ab())throw new Error("injectLocal must be called in setup");return s&&Id.has(s)&&r in Id.get(s)?Id.get(s)[r]:mn(...e)},qE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const UE=Object.prototype.toString,VE=e=>UE.call(e)==="[object Object]",GE=()=>+Date.now(),Mu=()=>{};function os(...e){if(e.length!==1)return US(...e);const t=e[0];return typeof t=="function"?rl(bb(()=>({get:t,set:Mu}))):Ve(t)}function kp(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 _p=e=>e();function Ww(e,t={}){let r,o,s=Mu;const c=h=>{clearTimeout(h),s(),s=Mu};let f;return h=>{const p=Yt(e),g=Yt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=void 0),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=void 0,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=void 0,v(h())},p)})}}function qw(e=_p,t={}){const{initialState:r="active"}=t,o=os(r==="active");function s(){o.value=!1}function c(){o.value=!0}return{isActive:rl(o),pause:s,resume:c,eventFilter:(...d)=>{o.value&&e(...d)}}}function s0(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function l0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Dd(e){return Array.isArray(e)?e:[e]}function KE(e){return ni()}function Wc(e,t=200,r={}){return kp(Ww(t,r),e)}function Uw(e,t,r={}){const{eventFilter:o=_p,...s}=r;return bt(e,kp(o,t),s)}function Vw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=qw(o,{initialState:s});return{stop:Uw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Sp(e,t=!0,r){KE()?Ri(e,r):t?e():Ct(e)}function wh(e,t=!1){function r(v,{flush:b="sync",deep:x=!1,timeout:C,throwOnTimeout:L}={}){let N=null;const M=[new Promise($=>{N=bt(e,F=>{v(F)!==t&&(N?N():Ct(()=>N?.()),$(F))},{flush:b,deep:x,immediate:!0})})];return C!=null&&M.push(s0(C,L).then(()=>Yt(e)).finally(()=>N?.())),Promise.race(M)}function o(v,b){if(!Et(v))return r(F=>F===v,b);const{flush:x="sync",deep:C=!1,timeout:L,throwOnTimeout:N}=b??{};let M=null;const $=[new Promise(F=>{M=bt([e,v],([E,I])=>{t!==(E===I)&&(M?M():Ct(()=>M?.()),F(E))},{flush:x,deep:C,immediate:!0})})];return L!=null&&$.push(s0(L,N).then(()=>Yt(e)).finally(()=>(M?.(),Yt(e)))),Promise.race($)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(x=>{const C=Array.from(x);return C.includes(v)||C.includes(Yt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let x=-1;return r(()=>(x+=1,x>=v),b)}return Array.isArray(Yt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return wh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return wh(e,!t)}}}function a0(e){return wh(e)}function XE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Et(e),c=Wt(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Yt(r);return c.value=c.value===h?Yt(o):h,c.value}}return s?f:[c,f]}function Gw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Uw(e,t,{...c,eventFilter:Ww(o,{maxWait:s})})}const Kw=Gw;function YE(e,t,r={}){const{eventFilter:o=_p,...s}=r,c=kp(o,t);let f,d,h;if(s.flush==="sync"){let p=!1;d=()=>{},f=g=>{p=!0,g(),p=!1},h=bt(e,(...g)=>{p||c(...g)},s)}else{const p=[];let g=0,v=0;d=()=>{g=v},p.push(bt(e,()=>{v++},{...s,flush:"sync"})),f=b=>{const x=v;b(),g+=v-x},p.push(bt(e,(...b)=>{const x=g>0&&g===v;g=0,v=0,!x&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function ZE(e,t,r){return bt(e,t,{...r,immediate:!0})}function JE(e,t,r){return bt(e,t,{...r,once:!0})}function QE(e,t,r){var o;let s;Et(r)?s={evaluating:r}:s=r||{};const{lazy:c=!1,flush:f="sync",evaluating:d=void 0,shallow:h=!0,onError:p=(o=globalThis.reportError)!==null&&o!==void 0?o:Mu}=s,g=Wt(!c),v=h?Wt(t):Ve(t);let b=0;return Lb(async x=>{if(!g.value)return;b++;const C=b;let L=!1;d&&Promise.resolve().then(()=>{d.value=!0});try{const N=await e(M=>{x(()=>{d&&(d.value=!1),L||M()})});C===b&&(v.value=N)}catch(N){p(N)}finally{d&&C===b&&(d.value=!1),L=!0}},{flush:f}),c?ke(()=>(g.value=!0,v.value)):v}const eA=QE,or=qE?window:void 0;function Nu(e){var t;const r=Yt(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function wo(...e){const t=(o,s,c,f)=>(o.addEventListener(s,c,f),()=>o.removeEventListener(s,c,f)),r=ke(()=>{const o=Dd(Yt(e[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0});return ZE(()=>{var o,s;return[(o=(s=r.value)===null||s===void 0?void 0:s.map(c=>Nu(c)))!==null&&o!==void 0?o:[or].filter(c=>c!=null),Dd(Yt(r.value?e[1]:e[0])),Dd(W(r.value?e[2]:e[1])),Yt(r.value?e[3]:e[2])]},([o,s,c,f],d,h)=>{if(!o?.length||!s?.length||!c?.length)return;const p=VE(f)?{...f}:f,g=o.flatMap(v=>s.flatMap(b=>c.map(x=>t(v,b,x,p))));h(()=>{g.forEach(v=>v())})},{flush:"post"})}function tA(){const e=Wt(!1),t=ni();return t&&Ri(()=>{e.value=!0},t),e}function Xw(e){const t=tA();return ke(()=>(t.value,!!e()))}function nA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Yw(...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=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=nA(t);return wo(s,c,g=>{g.repeat&&Yt(d)||h(g)&&r(g)},f)}function rA(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=or,once:c=!1}=t,f=Wt(!1),d=ke(()=>o?1e3/Yt(o):null);let h=0,p=null;function g(x){if(!f.value||!s)return;h||(h=x);const C=x-h;if(d.value&&C<d.value){p=s.requestAnimationFrame(g);return}if(h=x,e({delta:C,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(g))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),jw(b),{isActive:rl(f),pause:b,resume:v}}const iA=Symbol("vueuse-ssr-width");function oA(){const e=Ab()?WE(iA,null):null;return typeof e=="number"?e:void 0}function Zw(e,t={}){const{window:r=or,ssrWidth:o=oA()}=t,s=Xw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Wt(typeof o=="number"),f=Wt(),d=Wt(!1),h=p=>{d.value=p.matches};return Lb(()=>{if(c.value){c.value=!s.value,d.value=Yt(e).split(",").some(p=>{const g=p.includes("not all"),v=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),b=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let x=!!(v||b);return v&&x&&(x=o>=l0(v[1])),b&&x&&(x=o<=l0(b[1])),g?!x:x});return}s.value&&(f.value=r.matchMedia(Yt(e)),d.value=f.value.matches)}),wo(f,"change",h,{passive:!0}),ke(()=>d.value)}function Jw(e){return JSON.parse(JSON.stringify(e))}const qc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Uc="__vueuse_ssr_handlers__",sA=lA();function lA(){return Uc in qc||(qc[Uc]=qc[Uc]||{}),qc[Uc]}function Qw(e,t){return sA[e]||t}function aA(e){return Zw("(prefers-color-scheme: dark)",e)}function cA(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 uA={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()}},c0="vueuse-storage";function ex(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=or,eventFilter:b,onError:x=S=>{console.error(S)},initOnMounted:C}=o,L=(g?Wt:Ve)(typeof t=="function"?t():t),N=ke(()=>Yt(e));if(!r)try{r=Qw("getDefaultStorage",()=>or?.localStorage)()}catch(S){x(S)}if(!r)return L;const M=Yt(t),$=cA(M),F=(s=o.serializer)!==null&&s!==void 0?s:uA[$],{pause:E,resume:I}=Vw(L,S=>G(S),{flush:c,deep:f,eventFilter:b});bt(N,()=>P(),{flush:c});let q=!1;const Y=S=>{C&&!q||P(S)},oe=S=>{C&&!q||O(S)};v&&d&&(r instanceof Storage?wo(v,"storage",Y,{passive:!0}):wo(v,c0,oe)),C?Sp(()=>{q=!0,P()}):P();function J(S,k){if(v){const D={key:N.value,oldValue:S,newValue:k,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",D):new CustomEvent(c0,{detail:D}))}}function G(S){try{const k=r.getItem(N.value);if(S==null)J(k,null),r.removeItem(N.value);else{const D=F.write(S);k!==D&&(r.setItem(N.value,D),J(k,D))}}catch(k){x(k)}}function K(S){const k=S?S.newValue:r.getItem(N.value);if(k==null)return h&&M!=null&&r.setItem(N.value,F.write(M)),M;if(!S&&p){const D=F.read(k);return typeof p=="function"?p(D,M):$==="object"&&!Array.isArray(D)?{...M,...D}:D}else return typeof k!="string"?k:F.read(k)}function P(S){if(!(S&&S.storageArea!==r)){if(S&&S.key==null){L.value=M;return}if(!(S&&S.key!==N.value)){E();try{const k=F.write(L.value);(S===void 0||S?.newValue!==k)&&(L.value=K(S))}catch(k){x(k)}finally{S?Ct(I):I()}}}}function O(S){P(S.detail)}return L}const fA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function dA(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=aA({window:s}),x=ke(()=>b.value?"dark":"light"),C=h||(f==null?os(o):ex(f,o,c,{window:s,listenToStorageChanges:d})),L=ke(()=>C.value==="auto"?x.value:C.value),N=Qw("updateHTMLAttrs",(E,I,q)=>{const Y=typeof E=="string"?s?.document.querySelector(E):Nu(E);if(!Y)return;const oe=new Set,J=new Set;let G=null;if(I==="class"){const P=q.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?oe.add(O):J.add(O)})}else G={key:I,value:q};if(oe.size===0&&J.size===0&&G===null)return;let K;g&&(K=s.document.createElement("style"),K.appendChild(document.createTextNode(fA)),s.document.head.appendChild(K));for(const P of oe)Y.classList.add(P);for(const P of J)Y.classList.remove(P);G&&Y.setAttribute(G.key,G.value),g&&(s.getComputedStyle(K).opacity,document.head.removeChild(K))});function M(E){var I;N(t,r,(I=v[E])!==null&&I!==void 0?I:E)}function $(E){e.onChanged?e.onChanged(E,M):M(E)}bt(L,$,{flush:"post",immediate:!0}),Sp(()=>$(L.value));const F=ke({get(){return p?C.value:L.value},set(E){C.value=E}});return Object.assign(F,{store:C,system:x,state:L})}function hA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=dA({...e,onChanged:(c,f)=>{var d;e.onChanged?(d=e.onChanged)===null||d===void 0||d.call(e,c==="dark",f,c):f(c)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(c){const f=c?"dark":"light";s.value===f?o.value="auto":o.value=f}})}function tx(e){return e}function pA(e,t){return e.value=t}function gA(e){return e?typeof e=="function"?e:Jw:tx}function mA(e){return e?typeof e=="function"?e:Jw:tx}function vA(e,t={}){const{clone:r=!1,dump:o=gA(r),parse:s=mA(r),setSource:c=pA}=t;function f(){return nf({snapshot:o(e.value),timestamp:GE()})}const d=Ve(f()),h=Ve([]),p=Ve([]),g=N=>{c(e,s(N.snapshot)),d.value=N},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},x=()=>{const N=h.value.shift();N&&(p.value.unshift(d.value),g(N))},C=()=>{const N=p.value.shift();N&&(h.value.unshift(d.value),g(N))},L=()=>{g(d.value)};return{source:e,undoStack:h,redoStack:p,last:d,history:ke(()=>[d.value,...h.value]),canUndo:ke(()=>h.value.length>0),canRedo:ke(()=>p.value.length>0),clear:b,commit:v,reset:L,undo:x,redo:C}}function yA(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s,shouldCommit:c=()=>!0}=t,{eventFilter:f,pause:d,resume:h,isActive:p}=qw(s);let g=e.value;const{ignoreUpdates:v,ignorePrevAsyncUpdates:b,stop:x}=YE(e,$,{deep:r,flush:o,eventFilter:f});function C(q,Y){b(),v(()=>{q.value=Y,g=Y})}const L=vA(e,{...t,clone:t.clone||r,setSource:C}),{clear:N,commit:M}=L;function $(){b(),c(g,e.value)&&(g=e.value,M())}function F(q){h(),q&&$()}function E(q){let Y=!1;const oe=()=>Y=!0;v(()=>{q(oe)}),Y||$()}function I(){x(),N()}return{...L,isTracking:p,pause:d,resume:F,commit:$,batch:E,dispose:I}}function nx(e,t,r={}){const{window:o=or,...s}=r;let c;const f=Xw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=bt(ke(()=>{const g=Yt(e);return Array.isArray(g)?g.map(v=>Nu(v)):[Nu(g)]}),g=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const v of g)v&&c.observe(v,s)}},{immediate:!0,flush:"post"}),p=()=>{d(),h()};return jw(p),{isSupported:f,stop:p}}function Za(e,t,r={}){const{window:o=or}=r;return ex(e,t,o?.localStorage,r)}function bA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=or,stringify:h=E=>E.toString()}=t;if(!d)return sr(r);const p=sr({});function g(){if(e==="history")return d.location.search||"";if(e==="hash"){const E=d.location.hash||"",I=E.indexOf("?");return I>0?E.slice(I):""}else return(d.location.hash||"").replace(/^#/,"")}function v(E){const I=h(E);if(e==="history")return`${I?`?${I}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${I?`#${I}`:""}`;const q=d.location.hash||"#",Y=q.indexOf("?");return Y>0?`${d.location.search||""}${q.slice(0,Y)}${I?`?${I}`:""}`:`${d.location.search||""}${q}${I?`?${I}`:""}`}function b(){return new URLSearchParams(g())}function x(E){const I=new Set(Object.keys(p));for(const q of E.keys()){const Y=E.getAll(q);p[q]=Y.length>1?Y:E.get(q)||"",I.delete(q)}Array.from(I).forEach(q=>delete p[q])}const{pause:C,resume:L}=Vw(p,()=>{const E=new URLSearchParams("");Object.keys(p).forEach(I=>{const q=p[I];Array.isArray(q)?q.forEach(Y=>E.append(I,Y)):o&&q==null||s&&!q?E.delete(I):E.set(I,q)}),N(E,!1)},{deep:!0});function N(E,I,q=!0){C(),I&&x(E),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(E)):q&&d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(E)),Ct(()=>L())}function M(){c&&N(b(),!0,!1)}const $={passive:!0};wo(d,"popstate",M,$),e!=="history"&&wo(d,"hashchange",M,$);const F=b();return F.keys().next().value?x(F):Object.assign(p,r),p}function rx(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Wt(r),h=Wt(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:x}=t.visualViewport;d.value=Math.round(v*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(),Sp(p);const g={passive:!0};return wo("resize",p,g),t&&f==="visual"&&t.visualViewport&&wo(t.visualViewport,"resize",p,g),s&&bt(Zw("(orientation: portrait)"),()=>p()),{width:d,height:h}}const u0={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=Bb(),c=Ve([]),f=ke(()=>c.value.reduce((H,Z)=>(H[~~Z.id]=Z)&&H,{})),d=ke(()=>c.value.length),h=Ve(null),p=Ve(!1),g=Ve({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ve({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),x=()=>{document.addEventListener("mousemove",N,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",M))},C=()=>{document.removeEventListener("mousemove",N,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",N,{passive:!1}),document.removeEventListener("touchend",M))},L=(H,Z)=>{const re=H.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ue}=re.getBoundingClientRect(),{clientX:z,clientY:j}="ontouchstart"in window&&H.touches?H.touches[0]:H;g.value.cursorOffset=o.horizontal?j-ue:z-le}x(),g.value.mouseDown=!0,g.value.activeSplitter=Z},N=H=>{g.value.mouseDown&&(H.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{Y(I(H)),He("resize",{event:H},!0)}))},M=H=>{g.value.dragging&&(window.getSelection().removeAllRanges(),He("resized",{event:H},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,C()},100)},$=(H,Z)=>{"ontouchstart"in window&&(H.preventDefault(),v.value.splitter===Z?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,F(H,Z),v.value.splitter=null):(v.value.splitter=Z,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||He("splitter-click",{event:H,index:Z},!0)},F=(H,Z)=>{if(He("splitter-dblclick",{event:H,index:Z},!0),o.maximizePanes){let re=0;c.value=c.value.map((le,ue)=>(le.size=ue===Z?le.max:le.min,ue!==Z&&(re+=le.min),le)),c.value[Z].size-=re,He("pane-maximize",{event:H,index:Z,pane:c.value[Z]}),He("resized",{event:H,index:Z},!0)}},E=(H,Z)=>{He("pane-click",{event:H,index:f.value[Z].index,pane:f.value[Z]})},I=H=>{const Z=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&H.touches?H.touches[0]:H;return{x:re-(o.horizontal?0:g.value.cursorOffset)-Z.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Z.top}},q=H=>{H=H[o.horizontal?"y":"x"];const Z=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(H=Z-H),H*100/Z},Y=H=>{const Z=g.value.activeSplitter;let re={prevPanesSize:J(Z),nextPanesSize:G(Z),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:re.prevPanesSize),ue=100-(o.pushOtherPanes?0:re.nextPanesSize),z=Math.max(Math.min(q(H),ue),le);let j=[Z,Z+1],ee=c.value[j[0]]||null,he=c.value[j[1]]||null;const pe=ee.max<100&&z>=ee.max+re.prevPanesSize,me=he.max<100&&z<=100-(he.max+G(Z+1));if(pe||me){pe?(ee.size=ee.max,he.size=Math.max(100-ee.max-re.prevPanesSize-re.nextPanesSize,0)):(ee.size=Math.max(100-he.max-re.prevPanesSize-G(Z+1),0),he.size=he.max);return}if(o.pushOtherPanes){const Ce=oe(re,z);if(!Ce)return;({sums:re,panesToResize:j}=Ce),ee=c.value[j[0]]||null,he=c.value[j[1]]||null}ee!==null&&(ee.size=Math.min(Math.max(z-re.prevPanesSize-re.prevReachedMinPanes,ee.min),ee.max)),he!==null&&(he.size=Math.min(Math.max(100-z-re.nextPanesSize-re.nextReachedMinPanes,he.min),he.max))},oe=(H,Z)=>{const re=g.value.activeSplitter,le=[re,re+1];return Z<H.prevPanesSize+c.value[le[0]].min&&(le[0]=K(re).index,H.prevReachedMinPanes=0,le[0]<re&&c.value.forEach((ue,z)=>{z>le[0]&&z<=re&&(ue.size=ue.min,H.prevReachedMinPanes+=ue.min)}),H.prevPanesSize=J(le[0]),le[0]===void 0)?(H.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ue,z)=>{z>0&&z<=re&&(ue.size=ue.min,H.prevReachedMinPanes+=ue.min)}),c.value[le[1]].size=100-H.prevReachedMinPanes-c.value[0].min-H.prevPanesSize-H.nextPanesSize,null):Z>100-H.nextPanesSize-c.value[le[1]].min&&(le[1]=P(re).index,H.nextReachedMinPanes=0,le[1]>re+1&&c.value.forEach((ue,z)=>{z>re&&z<le[1]&&(ue.size=ue.min,H.nextReachedMinPanes+=ue.min)}),H.nextPanesSize=G(le[1]-1),le[1]===void 0)?(H.nextReachedMinPanes=0,c.value.forEach((ue,z)=>{z<d.value-1&&z>=re+1&&(ue.size=ue.min,H.nextReachedMinPanes+=ue.min)}),c.value[le[0]].size=100-H.prevPanesSize-G(le[0]-1),null):{sums:H,panesToResize:le}},J=H=>c.value.reduce((Z,re,le)=>Z+(le<H?re.size:0),0),G=H=>c.value.reduce((Z,re,le)=>Z+(le>H+1?re.size:0),0),K=H=>[...c.value].reverse().find(Z=>Z.index<H&&Z.size>Z.min)||{},P=H=>c.value.find(Z=>Z.index>H+1&&Z.size>Z.min)||{},O=()=>{var H;const Z=Array.from(((H=h.value)==null?void 0:H.children)||[]);for(const re of Z){const le=re.classList.contains("splitpanes__pane"),ue=re.classList.contains("splitpanes__splitter");!le&&!ue&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},S=(H,Z,re=!1)=>{const le=H-1,ue=document.createElement("div");ue.classList.add("splitpanes__splitter"),re||(ue.onmousedown=z=>L(z,le),typeof window<"u"&&"ontouchstart"in window&&(ue.ontouchstart=z=>L(z,le)),ue.onclick=z=>$(z,le+1)),ue.ondblclick=z=>F(z,le+1),Z.parentNode.insertBefore(ue,Z)},k=H=>{H.onmousedown=void 0,H.onclick=void 0,H.ondblclick=void 0,H.remove()},D=()=>{var H;const Z=Array.from(((H=h.value)==null?void 0:H.children)||[]);for(const le of Z)le.className.includes("splitpanes__splitter")&&k(le);let re=0;for(const le of Z)le.className.includes("splitpanes__pane")&&(!re&&o.firstSplitter?S(re,le,!0):re&&S(re,le),re++)},R=({uid:H,...Z})=>{const re=f.value[H];for(const[le,ue]of Object.entries(Z))re[le]=ue},ae=H=>{var Z;let re=-1;Array.from(((Z=h.value)==null?void 0:Z.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(H.el))),c.value.splice(re,0,{...H,index:re}),c.value.forEach((le,ue)=>le.index=ue),p.value&&Ct(()=>{D(),_e({addedPane:c.value[re]}),He("pane-add",{pane:c.value[re]})})},ce=H=>{const Z=c.value.findIndex(le=>le.id===H);c.value[Z].el=null;const re=c.value.splice(Z,1)[0];c.value.forEach((le,ue)=>le.index=ue),Ct(()=>{D(),He("pane-remove",{pane:re}),_e({removedPane:{...re}})})},_e=(H={})=>{!H.addedPane&&!H.removedPane?Ae():c.value.some(Z=>Z.givenSize!==null||Z.min||Z.max<100)?Ke(H):je(),p.value&&He("resized")},je=()=>{const H=100/d.value;let Z=0;const re=[],le=[];for(const ue of c.value)ue.size=Math.max(Math.min(H,ue.max),ue.min),Z-=ue.size,ue.size>=ue.max&&re.push(ue.id),ue.size<=ue.min&&le.push(ue.id);Z>.1&&Ue(Z,re,le)},Ae=()=>{let H=100;const Z=[],re=[];let le=0;for(const z of c.value)H-=z.size,z.givenSize!==null&&le++,z.size>=z.max&&Z.push(z.id),z.size<=z.min&&re.push(z.id);let ue=100;if(H>.1){for(const z of c.value)z.givenSize===null&&(z.size=Math.max(Math.min(H/(d.value-le),z.max),z.min)),ue-=z.size;ue>.1&&Ue(ue,Z,re)}},Ke=({addedPane:H,removedPane:Z}={})=>{let re=100/d.value,le=0;const ue=[],z=[];(H?.givenSize??null)!==null&&(re=(100-H.givenSize)/(d.value-1));for(const j of c.value)le-=j.size,j.size>=j.max&&ue.push(j.id),j.size<=j.min&&z.push(j.id);if(!(Math.abs(le)<.1)){for(const j of c.value)H?.givenSize!==null&&H?.id===j.id||(j.size=Math.max(Math.min(re,j.max),j.min)),le-=j.size,j.size>=j.max&&ue.push(j.id),j.size<=j.min&&z.push(j.id);le>.1&&Ue(le,ue,z)}},Ue=(H,Z,re)=>{let le;H>0?le=H/(d.value-Z.length):le=H/(d.value-re.length),c.value.forEach((ue,z)=>{if(H>0&&!Z.includes(ue.id)){const j=Math.max(Math.min(ue.size+le,ue.max),ue.min),ee=j-ue.size;H-=ee,ue.size=j}else if(!re.includes(ue.id)){const j=Math.max(Math.min(ue.size+le,ue.max),ue.min),ee=j-ue.size;H-=ee,ue.size=j}}),Math.abs(H)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},He=(H,Z=void 0,re=!1)=>{const le=Z?.index??g.value.activeSplitter??null;r(H,{...Z,...le!==null&&{index:le},...re&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ue=>({min:ue.min,max:ue.max,size:ue.size}))})};bt(()=>o.firstSplitter,()=>D()),Ri(()=>{O(),D(),_e(),He("ready"),p.value=!0}),Ga(()=>p.value=!1);const $e=()=>{var H;return Ya("div",{ref:h,class:b.value},(H=s.default)==null?void 0:H.call(s))};return gr("panes",c),gr("indexedPanes",f),gr("horizontal",ke(()=>o.horizontal)),gr("requestUpdate",R),gr("onPaneAdd",ae),gr("onPaneRemove",ce),gr("onPaneClick",E),(H,Z)=>(te(),We(oh($e)))}},Vc={__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=ni())==null?void 0:t.uid,p=mn("indexedPanes"),g=ke(()=>p.value[h]),v=Ve(null),b=ke(()=>{const N=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(N,C.value),x.value)}),x=ke(()=>{const N=parseFloat(r.minSize);return isNaN(N)?0:N}),C=ke(()=>{const N=parseFloat(r.maxSize);return isNaN(N)?100:N}),L=ke(()=>{var N;return`${c.value?"height":"width"}: ${(N=g.value)==null?void 0:N.size}%`});return bt(()=>b.value,N=>o({uid:h,size:N})),bt(()=>x.value,N=>o({uid:h,min:N})),bt(()=>C.value,N=>o({uid:h,max:N})),Ri(()=>{s({id:h,el:v.value,min:x.value,max:C.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),Ga(()=>f(h)),(N,M)=>(te(),ve("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:M[0]||(M[0]=$=>W(d)($,N._.uid)),style:Pt(L.value)},[zt(N.$slots,"default")],4))}},nr=Ve([414,896]);function ix(e){return e!=null}function Tp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const wA=/^[A-Za-z]:\//;function xA(e=""){return e&&e.replace(/\\/g,"/").replace(wA,t=>t.toUpperCase())}const kA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function _A(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ox=function(...e){e=e.map(o=>xA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:_A();!s||s.length===0||(t=`${s}/${t}`,r=f0(s))}return t=SA(t,!r),r&&!f0(t)?`/${t}`:t.length>0?t:"."};function SA(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 f0=function(e){return kA.test(e)};var TA=44,d0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",CA=new Uint8Array(64),sx=new Uint8Array(128);for(let e=0;e<d0.length;e++){const t=d0.charCodeAt(e);CA[e]=t,sx[t]=e}function Zl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=sx[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function h0(e,t){return e.pos>=t?!1:e.peek()!==TA}var EA=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 AA(e){const{length:t}=e,r=new EA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos<p;){let x;s=Zl(r,s),s<b&&(v=!1),b=s,h0(r,p)?(c=Zl(r,c),f=Zl(r,f),d=Zl(r,d),h0(r,p)?(h=Zl(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],g.push(x),r.pos++}v||LA(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function LA(e){e.sort(MA)}function MA(e,t){return e[0]-t[0]}var vf=0,NA=1,OA=2,PA=3,$A=4,Ou=!1;function RA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][vf]-t;if(c===0)return Ou=!0,s;c<0?r=s+1:o=s-1}return Ou=!1,r-1}function IA(e,t,r){for(let o=r+1;o<e.length&&e[o][vf]===t;r=o++);return r}function DA(e,t,r){for(let o=r-1;o>=0&&e[o][vf]===t;r=o--);return r}function zA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return Ou=f!==-1&&e[f][vf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=RA(e,t,d,h)}var FA="`line` must be greater than 0 (lines start at line 1)",HA="`column` must be greater than or equal to 0 (columns start at column 0)",p0=-1,BA=1;function jA(e){var t;return(t=e)._decoded||(t._decoded=AA(e._encoded))}function WA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(FA);if(o<0)throw new Error(HA);const c=jA(e);if(r>=c.length)return Gc(null,null,null,null);const f=c[r],d=qA(f,e._decodedMemo,r,o,s||BA);if(d===-1)return Gc(null,null,null,null);const h=f[d];if(h.length===1)return Gc(null,null,null,null);const{names:p,resolvedSources:g}=e;return Gc(g[h[NA]],h[OA]+1,h[PA],h.length===5?p[h[$A]]:null)}function Gc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function qA(e,t,r,o,s){let c=zA(e,o,t,r);return Ou?c=(s===p0?IA:DA)(e,o,c):s===p0&&c++,c===-1||c===e.length?-1:c}const lx=/^\s*at .*(?:\S:\d+|\(native\))/m,UA=/^(?:eval@)?(?:\[native code\])?$/,VA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],GA=Date.now().toString().length,KA=new RegExp(`vitest=\\d{${GA}}`);function ax(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.includes("vitest=")&&(o=o.replace(KA,"").replace(/[?&]$/,"")),[o,r[2]||void 0,r[3]||void 0]}function XA(e){let t=e.trim();if(UA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))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]=ax(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function YA(e){let t=e.trim();if(!lx.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]=ax(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:ox(h),d&&(d=d.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function ZA(e,t={}){const{ignoreStackEntries:r=VA}=t;return(lx.test(e)?QA(e):JA(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 g0(r,s.file)?null:s;const d=new eL(f,s.file),h=nL(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let x=v||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),g0(r,x)?null:p!=null&&g!=null?{line:p,column:g,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function g0(e,t){return e.some(r=>t.match(r))}function JA(e){return e.split(`
|
|
18
|
-
`).map(t=>XA(t)).filter(ix)}function QA(e){return e.split(`
|
|
19
|
-
`).map(t=>YA(t)).filter(ix)}class eL{_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=tL(),this.url=r,this.resolvedSources=(c||[]).map(f=>ox(f||"",r))}}function tL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function nL(e,t){const r=WA(e,t);return r.column==null?null:r}const rL=/^[A-Za-z]:\//;function cx(e=""){return e&&e.replace(/\\/g,"/").replace(rL,t=>t.toUpperCase())}const iL=/^[/\\]{2}/,oL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,sL=/^[A-Za-z]:$/,m0=/^\/([A-Za-z]:)?$/,lL=function(e){if(e.length===0)return".";e=cx(e);const t=e.match(iL),r=Pu(e),o=e[e.length-1]==="/";return e=ux(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),sL.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!Pu(e)?`/${e}`:e)},aL=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return lL(t)};function cL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const v0=function(...e){e=e.map(o=>cx(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:cL();!s||s.length===0||(t=`${s}/${t}`,r=Pu(s))}return t=ux(t,!r),r&&!Pu(t)?`/${t}`:t.length>0?t:"."};function ux(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 Pu=function(e){return oL.test(e)},yf=function(e,t){const r=v0(e).replace(m0,"$1").split("/"),o=v0(t).replace(m0,"$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 uL(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 fx(e,t,r,o,s){const c=yf(t,e),f={id:fL(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function fL(e,t){return uL(`${e}${t||""}`)}function y0(e,t,r="tag"){throw e.length?new Error(`The ${r} "${t}" is not defined in the configuration. Available tags are:
|
|
20
|
-
${e.map(o=>`- ${o.name}${o.description?`: ${o.description}`:""}`).join(`
|
|
21
|
-
`)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${r} for this test. See: https://vitest.dev/guide/test-tags`)}function dL(e,t){const r=e.map(o=>hL(o,t));return o=>r.every(s=>s(o))}function hL(e,t){const r=pL(e),o=new gL(r,e),s=hx(o,t);if(o.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${xh(o.peek())}" in "${e}"`);return c=>zs(s,c)}function xh(e){switch(e.type){case"TAG":return e.value;default:return dx(e.type)}}function pL(e){const t=[];let r=0;for(;r<e.length;){if(e[r]===" "||e[r]===" "){r++;continue}if(e[r]==="("){t.push({type:"LPAREN"}),r++;continue}if(e[r]===")"){t.push({type:"RPAREN"}),r++;continue}if(e[r]==="!"){t.push({type:"NOT"}),r++;continue}if(e.slice(r,r+2)==="&&"){t.push({type:"AND"}),r+=2;continue}if(e.slice(r,r+2)==="||"){t.push({type:"OR"}),r+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"AND"}),r+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"OR"}),r+=2;continue}if(/^not\s/i.test(e.slice(r))){t.push({type:"NOT"}),r+=3;continue}let o="";for(;r<e.length&&e[r]!==" "&&e[r]!==" "&&e[r]!=="("&&e[r]!==")"&&e[r]!=="!"&&e[r]!=="&"&&e[r]!=="|";){const s=e.slice(r);if(o===""&&(/^and(?:\s|\)|$)/i.test(s)||/^or(?:\s|\)|$)/i.test(s)||/^not\s/i.test(s)))break;o+=e[r],r++}o&&t.push({type:"TAG",value:o})}return t.push({type:"EOF"}),t}class gL{pos=0;constructor(t,r){this.tokens=t,this.expr=r}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const r=this.next();if(r.type!==t)throw t==="RPAREN"&&r.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${dx(t)}" but got "${xh(r)}" in "${this.expr}"`);return r}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${xh(t)}" in "${this.expr}"`)}}function dx(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function hx(e,t){let r=b0(e,t);for(;e.peek().type==="OR";){e.next();const o=b0(e,t);r={type:"or",left:r,right:o}}return r}function b0(e,t){let r=kh(e,t);for(;e.peek().type==="AND";){e.next();const o=kh(e,t);r={type:"and",left:r,right:o}}return r}function kh(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:kh(e,t)}):mL(e,t)}function mL(e,t){const r=e.peek();if(r.type==="LPAREN"){e.next();const o=hx(e,t);return e.expect("RPAREN"),o}if(r.type==="TAG"){e.next();const o=r.value,s=yL(o,t);return{type:"tag",value:o,pattern:s}}e.unexpectedToken()}function vL(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function yL(e,t){if(e.includes("*")){const r=vL(e);if(!t.some(s=>r.test(s.name)))throw y0(t,e,"tag pattern");return r}if(!t.length||!t.some(r=>r.name===e))throw y0(t,e,"tag pattern");return null}function zs(e,t){switch(e.type){case"tag":return e.pattern?t.some(r=>e.pattern.test(r)):t.includes(e.value);case"not":return!zs(e.operand,t);case"and":return zs(e.left,t)&&zs(e.right,t);case"or":return zs(e.left,t)||zs(e.right,t)}}function cl(e){return e.type==="test"}function px(e){const t=[],r=Tp(e);for(const o of r)if(cl(o))t.push(o);else for(const s of o.tasks)if(cl(s))t.push(s);else{const c=px(s);for(const f of c)t.push(f)}return t}function Cp(e=[]){return Tp(e).flatMap(t=>cl(t)?[t]:[t,...Cp(t.tasks)])}function bL(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 w0="q",x0="s";function wL(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const xL=Math.random.bind(Math),kL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function _L(e=21){let t="",r=e;for(;r--;)t+=kL[xL()*64|0];return t}const SL=6e4,gx=e=>e,TL=gx,{clearTimeout:k0,setTimeout:CL}=globalThis;function EL(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=gx,deserialize:d=TL,resolver:h,bind:p="rpc",timeout:g=SL,proxify:v=!0}=t;let b=!1;const x=new Map;let C,L;async function N(I,q,Y,oe){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const J={m:I,a:q,t:w0};oe&&(J.o=!0);const G=async R=>r(f(R));if(Y){await G(J);return}if(C)try{await C}finally{C=void 0}let{promise:K,resolve:P,reject:O}=wL();const S=_L();J.i=S;let k;async function D(R=J){return g>=0&&(k=CL(()=>{try{if(t.onTimeoutError?.call(L,I,q)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(ae){O(ae)}x.delete(S)},g),typeof k=="object"&&(k=k.unref?.())),x.set(S,{resolve:P,reject:O,timeoutId:k,method:I}),await G(R),K}try{t.onRequest?await t.onRequest.call(L,J,D,P):await D()}catch(R){if(t.onGeneralError?.call(L,R)!==!0)throw R;return}finally{k0(k),x.delete(S)}return K}const M={$call:(I,...q)=>N(I,q,!1),$callOptional:(I,...q)=>N(I,q,!1,!0),$callEvent:(I,...q)=>N(I,q,!0),$callRaw:I=>N(I.method,I.args,I.event,I.optional),$rejectPendingCalls:F,get $closed(){return b},get $meta(){return t.meta},$close:$,$functions:e};v?L=new Proxy({},{get(I,q){if(Object.prototype.hasOwnProperty.call(M,q))return M[q];if(q==="then"&&!c.includes("then")&&!("then"in e))return;const Y=(...J)=>N(q,J,!0);if(c.includes(q))return Y.asEvent=Y,Y;const oe=(...J)=>N(q,J,!1);return oe.asEvent=Y,oe}}):L=M;function $(I){b=!0,x.forEach(({reject:q,method:Y})=>{const oe=new Error(`[birpc] rpc is closed, cannot call "${Y}"`);if(I)return I.cause??=oe,q(I);q(oe)}),x.clear(),s(E)}function F(I){const q=Array.from(x.values()).map(({method:Y,reject:oe})=>I?I({method:Y,reject:oe}):oe(new Error(`[birpc]: rejected pending call "${Y}".`)));return x.clear(),q}async function E(I,...q){let Y;try{Y=d(I)}catch(oe){if(t.onGeneralError?.call(L,oe)!==!0)throw oe;return}if(Y.t===w0){const{m:oe,a:J,o:G}=Y;let K,P,O=await(h?h.call(L,oe,e[oe]):e[oe]);if(G&&(O||=()=>{}),!O)P=new Error(`[birpc] function "${oe}" not found`);else try{K=await O.apply(p==="rpc"?L:e,J)}catch(S){P=S}if(Y.i){if(P&&t.onFunctionError&&t.onFunctionError.call(L,P,oe,J)===!0)return;if(!P)try{await r(f({t:x0,i:Y.i,r:K}),...q);return}catch(S){if(P=S,t.onGeneralError?.call(L,S,oe,J)!==!0)throw S}try{await r(f({t:x0,i:Y.i,e:P}),...q)}catch(S){if(t.onGeneralError?.call(L,S,oe,J)!==!0)throw S}}}else{const{i:oe,r:J,e:G}=Y,K=x.get(oe);K&&(k0(K.timeoutId),G?K.reject(G):K.resolve(J)),x.delete(oe)}}return C=o(E),L}const{parse:mx,stringify:AL}=JSON,{keys:LL}=Object,Pa=String,vx="string",_0={},$u="object",yx=(e,t)=>t,ML=e=>e instanceof Pa?Pa(e):e,NL=(e,t)=>typeof t===vx?new Pa(t):t,bx=(e,t,r,o)=>{const s=[];for(let c=LL(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof Pa){const g=e[p];typeof g===$u&&!t.has(g)?(t.add(g),r[h]=_0,s.push({k:h,a:[e,t,g,o]})):r[h]=o.call(r,h,g)}else r[h]!==_0&&(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,bx.apply(null,h))}return r},S0=(e,t,r)=>{const o=Pa(t.push(r)-1);return e.set(r,o),o},_h=(e,t)=>{const r=mx(e,NL).map(ML),o=r[0],s=t||yx,c=typeof o===$u&&o?bx(r,new Set,o,s):o;return s.call({"":c},"",c)},wx=(e,t,r)=>{const o=t&&typeof t===$u?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||yx,s=new Map,c=[],f=[];let d=+S0(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=AL(c[d++],p,r);return"["+f.join(",")+"]";function p(g,v){if(h)return h=!h,v;const b=o.call(this,g,v);switch(typeof b){case $u:if(b===null)return b;case vx:return s.get(b)||S0(s,c,b)}return b}},OL=e=>mx(wx(e));class xx{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=fx(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 PL(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 g=d({ws:new h(e),state:new xx,waitForConnection:M,reconnect:L},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate($,F){r.onTestAnnotate?.($,F)},onTestArtifactRecord($,F){r.onTestArtifactRecord?.($,F)},onSpecsCollected($,F){$?.forEach(([E,I])=>{g.state.clearFiles({config:E},[I])}),r.onSpecsCollected?.($,F)},onPathsCollected($){g.state.collectPaths($),r.onPathsCollected?.($)},onCollected($){g.state.collectFiles($),r.onCollected?.($)},onTaskUpdate($,F){g.state.updateTasks($),r.onTaskUpdate?.($,F)},onUserConsoleLog($){g.state.updateUserLog($),r.onUserConsoleLog?.($)},onFinished($,F,E,I){r.onFinished?.($,F,E,I)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:$=>g.ws.send($),on:$=>v=$,serialize:$=>wx($,(F,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:_h,timeout:-1};g.rpc=EL(b,x);let C;function L($=!1){$&&(p=c),g.ws=new h(e),N()}function N(){C=new Promise(($,F)=>{const E=setTimeout(()=>{F(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&$(),g.ws.addEventListener("open",()=>{p=c,$(),clearTimeout(E)})}),g.ws.addEventListener("message",$=>{v($.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}N();function M(){return C}return g}const xo=hA(),$L=XE(xo);function Ja(e){return Object.hasOwn(e,"tasks")}function RL(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Vo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function zd(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function IL(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:g,candidate:v}=c;t.set(g,v);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 kx(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,splitted:[...r],candidate:"",finished:!1,id:e}}function DL(e){return kx(e).raw}function lu(e){if(e>=500)return"danger";if(e>=100)return"warning"}function Ru(e){const t=lu(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function au(e,t=!1){if(!e)return"";const r=e.split("").reduce((c,f,d)=>c+f.charCodeAt(0)+d,0),o=xo.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],s=xo.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?s:o)[r%o.length]}function _x(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const Sh=Wt([]),Qn=Wt([]),Fr=Za("vitest-ui_task-tree-opened",[],{shallow:!0}),ns="__vitest_ui_all_projects__",Iu=ke(()=>new Set(Fr.value)),Kt=Za("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:"",project:ns,projectSort:void 0}),fo=Ve(Kt.value.projectSort||"default"),Go=Wt(Kt.value?.project||ns),Sx=ke(()=>Ip.value.length>1),zL=ke(()=>Go.value===ns),Ep=ke(()=>!Sx.value||Go.value===ns?void 0:Go.value),Or=Ve(Kt.value.search),T0=new Map,to=ke(()=>{if(Or.value.startsWith("tag:")){if(!_t.value.tags)return{matcher:()=>!0};const e=Or.value.slice(4).trim();let t=T0.get(e);return t||(t=FL(e),T0.set(e,t)),{matcher:r=>t.matcher(r.tags||[]),error:t.error}}return{matcher:e=>Or.value===""||RL(e.name,Or.value)}});function FL(e){if(!e)return{matcher:()=>!0};try{return{matcher:dL([e],_t.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const HL={"&":"&","<":"<",">":">",'"':""","'":"'"};function Tx(e){return e.replace(/[&<>"']/g,t=>HL[t])}const BL=ke(()=>{const e=Or.value.toLowerCase();return e.length?new RegExp(`(${Tx(e)})`,"gi"):null}),Cx=ke(()=>Or.value.trim()!==""),st=sr({failed:Kt.value.failed,success:Kt.value.success,skipped:Kt.value.skipped,onlyTests:Kt.value.onlyTests}),Th=ke(()=>!!(st.failed||st.success||st.skipped)),bf=Wt([]),ul=Ve(!1),C0=ke(()=>{const e=Kt.value.expandAll;return Fr.value.length>0?e!==!0:e!==!1}),jL=ke(()=>{const e=Cx.value,t=Th.value,r=Ep.value,o=st.onlyTests,s=Me.summary.filesFailed,c=Me.summary.filesSuccess,f=Me.summary.filesSkipped,d=Me.summary.filesRunning,h=bf.value;return Me.collectTestsTotal(e||t||!!r,o,h,{failed:s,success:c,skipped:f,running:d})});function WL(e){return e.type==="test"}function qL(e){return e.mode==="run"&&e.type==="test"}function Fn(e){return e.type==="file"}function Ni(e){return e.type==="file"||e.type==="suite"}function UL(e,t=Me.root.tasks){const r=[...t];return r.sort((o,s)=>{if(e==="asc"||e==="desc"){const c=o.projectName||"",f=s.projectName||"";if(c!==f)return e==="asc"?c.localeCompare(f):f.localeCompare(c)}return`${o.filepath}:${o.projectName}`.localeCompare(`${s.filepath}:${s.projectName}`)}),r}function $a(e,t=!1){let r=Me.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=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,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:Iu.value.size>0&&Iu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Me.colors.get(e.projectName||"")||au(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Me.nodes.set(e.id,r),Me.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Qa(e.id,e.tasks[o],!0)}function Ex(e,t){const r=Me.nodes.get(e);if(!r||!Ni(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Ja(o)))return Qa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function VL(e){const t=Me.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!cl(r)||Qa(t.parentId,r,!1)}function Qa(e,t,r){const o=Me.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Me.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(cl(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:Iu.value.size>0&&Iu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Me.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ja(t)))for(let f=0;f<t.tasks.length;f++)Qa(s.id,t.tasks[f],r)}function GL(e){const t=Me.nodes.get(e);if(!t||!Ni(t))return;const r=new Set(Fr.value);r.delete(t.id);const o=[...XL(t)];Fr.value=Array.from(r),Qn.value=o}function KL(){Ch(Me.root.tasks);const e=[...Qn.value.filter(Fn)];Ch(e),Fr.value=[],Kt.value.expandAll=!0,Qn.value=e}function Ch(e){for(const t of e)Ni(t)&&(t.expanded=!1,Ch(t.tasks))}function*Ax(e,t){if(t&&(yield e.id),Ni(e))for(let r=0;r<e.tasks.length;r++)yield*Ax(e.tasks[r],!0)}function*XL(e){const t=e.id,r=new Set(Ax(e,!1));for(let o=0;o<Qn.value.length;o++){const s=Qn.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 wf=Ve("idle"),Bs=ke(()=>wf.value==="idle"),so=Ve([]),YL=ke(()=>(_t.value.tags||[]).reduce((t,r)=>(t[r.name]=r,t),{}));function ZL(e,t,r){return e?Nx(e,t,r):!1}function Ap(e,t){const r=[...Lx(e,t)];Qn.value=r,bf.value=r.filter(Fn).map(o=>br(o.id))}function*Lx(e,t){const r=Ep.value,o=UL(fo.value);for(const s of o)r&&s.projectName!==r||(yield*Mx(s,e,t))}function*Mx(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of Eh(e,o,x=>E0(x,t,r)))c.push([v,b]);else{for(const[v,b]of Eh(e,o,x=>E0(x,t,r)))Ni(b)?(s.set(b.id,v),Fn(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!Fn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...QL(c,r.onlyTests,o,d,f)].reverse(),p=Me.nodes;for(const v of o){const b=p.get(v);b&&"expanded"in b&&(b.expanded=!0)}const g=new Set(h.filter(v=>Fn(v)||Ni(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>Fn(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function JL(e,t,r,o,s){if(o){if(Fn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&Fn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&Fn(c)&&s.add(c.id),t}}function*QL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Ni(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Me.nodes.get(d.parentId);for(;p;)r.add(p.id),Fn(p)&&o.add(p.id),p=Me.nodes.get(p.parentId);yield d;continue}if(h){const p=JL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Me.nodes.get(d.parentId);p&&Fn(p)&&o.add(p.id),yield d}}}function eM(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 Nx(e,t,r){if(t(e))if(r.success||r.failed||r.skipped){if(eM(e,r))return!0}else return!0;return!1}function*Eh(e,t,r){const o=r(e);if(o)if(WL(e)){let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}else if(Fn(e))t.add(e.id);else{t.add(e.id);let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}if(yield[o,e],Ni(e))for(let s=0;s<e.tasks.length;s++)yield*Eh(e.tasks[s],t,r)}function E0(e,t,r){const o=ft.state.idMap.get(e.id);return o?Nx(o,t,r):!1}function tM(e,t,r){const o=Ex(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Qa(s.id,p,!1);s.expanded=!0;const f=new Set(Fr.value);f.add(s.id);const d=new Set(Mx(s,t,r)),h=[...iM(s,d)];Fr.value=Array.from(f),Qn.value=h}function nM(e,t){Lp(Me.root.tasks,!1);const r=[...Lx(e,t)];Kt.value.expandAll=!1,Fr.value=[],Qn.value=r,bf.value=r.filter(Fn).map(o=>br(o.id))}function rM(e,t){if(e.size)for(const r of Qn.value)e.has(r.id)&&(r.expanded=!0);else t&&Lp(Qn.value.filter(Fn),!0)}function Lp(e,t){for(const r of e)Ni(r)&&(r.expanded=!0,Lp(r.tasks,!1));t&&(Kt.value.expandAll=!1,Fr.value=[])}function*iM(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Qn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Mp(e){return px(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function oM(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>$a(s,t)),Sh.value=[...Me.root.tasks],Ap(r,{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function sM(e){queueMicrotask(()=>{const t=Me.pendingTasks,r=ft.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 lM(e,t){const r=Me.pendingTasks,s=ft.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),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function A0(e,t,r,o,s,c){e&&hM(r);const f=!e;queueMicrotask(()=>{t?uM(f):fM(f)}),queueMicrotask(()=>{pM(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Sh.value&&Mp(Sh.value.map(d=>br(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{dM(o,s,t)})}function*aM(){yield*Qn.value.filter(qL)}function cM(){const e=ft.state.idMap;let t;for(const r of aM())t=e.get(r.parentId),t&&Ja(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function uM(e){const t=ft.state.getFiles(),r=Me.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)$a(o[c],e),Du(o[c].tasks);const s=Me.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=br(f.id);!d||($a(d,e),!d.tasks?.length)||Du(d.tasks)}}function fM(e){const t=new Map(Me.pendingTasks.entries());Me.pendingTasks.clear();const r=Me.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>br(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],$a(s,!1),Du(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Me.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=br(h.id);if(!p)continue;const g=t.get(p.id);g&&($a(p,e),Du(Array.from(g,v=>c.get(v)).filter(Boolean)))}}function dM(e,t,r=!1){const o=Kt.value.expandAll,s=o!==!0,c=new Set(Fr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{L0(e,t,r)}),ul.value||queueMicrotask(()=>{(Qn.value.length||r)&&(ul.value=!0)}),f&&(queueMicrotask(()=>{rM(c,r),s&&(Kt.value.expandAll=!1)}),queueMicrotask(()=>{L0(e,t,r)}))}function L0(e,t,r){Ap(e,t),r&&(cM(),wf.value="idle")}function Du(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ja(t)?Ex(t.id,!0):VL(t.id)}function hM(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.testsExpectedFail=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function pM(e,t){const r=ft.state.idMap,o=new Map(Me.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,br(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:x,expectedFail:C}=Ox(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=x,c.testsExpectedFail+=C,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsTodo=c.testsTodo,e.testsExpectedFail=c.testsExpectedFail,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function Ox(e,t=()=>!0,r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0};for(const s of Px(e))(!r||ZL(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?s.fails?o.expectedFail++: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.expectedFail,o}function gM(e,t,r,o,s,c){if(t)return r.map(f=>Ox(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,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 g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*Px(e){const t=Tp(e);let r;for(let o=0;o<t.length;o++)r=t[o],cl(r)?yield r:yield*Px(r.tasks)}class mM{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=sr({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,testsExpectedFail: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=rA(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;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])),oM(t,!0,to.value.matcher,{failed:st.failed,success:st.success,skipped:st.skipped,onlyTests:st.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){lM(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){sM(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{A0(t,r,this.summary,to.value.matcher,{failed:st.failed,success:st.success,skipped:st.skipped,onlyTests:st.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):A0(t,r,this.summary,to.value.matcher,{failed:st.failed,success:st.success,skipped:st.skipped,onlyTests:st.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return gM(t,r,o,s,to.value.matcher,{failed:st.failed,success:st.success,skipped:st.skipped,onlyTests:st.onlyTests})}collapseNode(t){queueMicrotask(()=>{GL(t)})}expandNode(t){queueMicrotask(()=>{tM(t,to.value.matcher,{failed:st.failed,success:st.success,skipped:st.skipped,onlyTests:st.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{KL()})}expandAllNodes(){queueMicrotask(()=>{nM(to.value.matcher,{failed:st.failed,success:st.success,skipped:st.skipped,onlyTests:st.onlyTests})})}filterNodes(){queueMicrotask(()=>{Ap(to.value.matcher,{failed:st.failed,success:st.success,skipped:st.skipped,onlyTests:st.onlyTests})})}}const Me=new mM;function $x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cu={exports:{}},vM=cu.exports,M0;function To(){return M0||(M0=1,(function(e,t){(function(r,o){e.exports=o()})(vM,(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]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],C=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),$=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),F=/Android/.test(r),E=$||F||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),I=$||/Mac/.test(o),q=/\bCrOS\b/.test(r),Y=/win/i.test(o),oe=C&&r.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(C=!1,g=!0);var J=I&&(v||C&&(oe==null||oe<12.11)),G=s||h&&p>=9;function K(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var P=function(n,i){var a=n.className,l=K(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 O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function S(n,i){return O(n).appendChild(i)}function k(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 m=0;m<i.length;++m)u.appendChild(i[m]);return u}function D(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var R;document.createRange?R=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:R=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 ae(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 ce(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function _e(n,i){var a=n.className;K(i).test(a)||(n.className+=(a?" ":"")+i)}function je(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!K(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ae=function(n){n.select()};$?Ae=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ae=function(n){try{n.select()}catch{}});function Ke(n){return n.display.wrapper.ownerDocument}function Ue(n){return He(n.display.wrapper)}function He(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function $e(n){return Ke(n).defaultView}function H(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 re(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var m=l||0,y=u||0;;){var w=n.indexOf(" ",m);if(w<0||w>=i)return y+(i-m);y+=w-m,y+=a-y%a,m=w+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ue(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"}},ee={scroll:!1},he={origin:"*mouse"},pe={origin:"+move"};function me(n,i,a){for(var l=0,u=0;;){var m=n.indexOf(" ",l);m==-1&&(m=n.length);var y=m-l;if(m==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(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 Q(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function fe(){}function ie(n,i){var a;return Object.create?a=Object.create(n):(fe.prototype=n,a=new fe),i&&Z(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Qe(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Qe(n)?!0:i.test(n):Qe(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Jt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function qt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function jn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;m<n.length;++m){var y=n[m];(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",m),u=!0)}u||l(i,a,"ltr")}var jr=null;function Ht(n,i,a){var l;jr=null;for(var u=0;u<n.length;++u){var m=n[u];if(m.from<i&&m.to>i)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:jr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:jr=u)}return l??jr}var Wn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function _(T,B,V){this.level=T,this.from=B,this.to=V}return function(T,B){var V=B=="ltr"?"L":"R";if(T.length==0||B=="ltr"&&!l.test(T))return!1;for(var se=T.length,ne=[],ge=0;ge<se;++ge)ne.push(a(T.charCodeAt(ge)));for(var we=0,Te=V;we<se;++we){var Ne=ne[we];Ne=="m"?ne[we]=Te:Te=Ne}for(var De=0,Oe=V;De<se;++De){var Fe=ne[De];Fe=="1"&&Oe=="r"?ne[De]="n":m.test(Fe)&&(Oe=Fe,Fe=="r"&&(ne[De]="R"))}for(var Ze=1,Ge=ne[0];Ze<se-1;++Ze){var lt=ne[Ze];lt=="+"&&Ge=="1"&&ne[Ze+1]=="1"?ne[Ze]="1":lt==","&&Ge==ne[Ze+1]&&(Ge=="1"||Ge=="n")&&(ne[Ze]=Ge),Ge=lt}for(var Tt=0;Tt<se;++Tt){var rn=ne[Tt];if(rn==",")ne[Tt]="N";else if(rn=="%"){var Ot=void 0;for(Ot=Tt+1;Ot<se&&ne[Ot]=="%";++Ot);for(var Vn=Tt&&ne[Tt-1]=="!"||Ot<se&&ne[Ot]=="1"?"1":"N",Mn=Tt;Mn<Ot;++Mn)ne[Mn]=Vn;Tt=Ot-1}}for(var Ut=0,Nn=V;Ut<se;++Ut){var ln=ne[Ut];Nn=="L"&&ln=="1"?ne[Ut]="L":m.test(ln)&&(Nn=ln)}for(var Xt=0;Xt<se;++Xt)if(u.test(ne[Xt])){var Vt=void 0;for(Vt=Xt+1;Vt<se&&u.test(ne[Vt]);++Vt);for(var Dt=(Xt?ne[Xt-1]:V)=="L",On=(Vt<se?ne[Vt]:V)=="L",Ns=Dt==On?Dt?"L":"R":V,Xi=Xt;Xi<Vt;++Xi)ne[Xi]=Ns;Xt=Vt-1}for(var hn=[],Gr,on=0;on<se;)if(y.test(ne[on])){var wd=on;for(++on;on<se&&y.test(ne[on]);++on);hn.push(new _(0,wd,on))}else{var fi=on,Io=hn.length,Do=B=="rtl"?1:0;for(++on;on<se&&ne[on]!="L";++on);for(var xn=fi;xn<on;)if(w.test(ne[xn])){fi<xn&&(hn.splice(Io,0,new _(1,fi,xn)),Io+=Do);var Os=xn;for(++xn;xn<on&&w.test(ne[xn]);++xn);hn.splice(Io,0,new _(2,Os,xn)),Io+=Do,fi=xn}else++xn;fi<on&&hn.splice(Io,0,new _(1,fi,on))}return B=="ltr"&&(hn[0].level==1&&(Gr=T.match(/^\s+/))&&(hn[0].from=Gr[0].length,hn.unshift(new _(0,0,Gr[0].length))),xe(hn).level==1&&(Gr=T.match(/\s+$/))&&(xe(hn).to-=Gr[0].length,hn.push(new _(0,se-Gr[0].length,se)))),B=="rtl"?hn.reverse():hn}})();function at(n,i){var a=n.order;return a==null&&(a=n.order=Wn(n.text,i)),a}var Co=[],Ye=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 ii(n,i){return n._handlers&&n._handlers[i]||Co}function un(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 m=ue(u,a);m>-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function $t(n,i){var a=ii(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 Rt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),$t(n,a||i.type,n,i),Cn(i)||i.codemirrorIgnore}function fr(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)ue(a,i[l])==-1&&a.push(i[l])}function qn(n,i){return ii(n,i).length>0}function wr(n){n.prototype.on=function(i,a){Ye(this,i,a)},n.prototype.off=function(i,a){un(this,i,a)}}function fn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function ss(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Cn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Di(n){fn(n),ss(n)}function vl(n){return n.target||n.srcElement}function xr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),I&&n.ctrlKey&&i==1&&(i=3),i}var Ef=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),ls;function oc(n){if(ls==null){var i=k("span","");S(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(ls=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=ls?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var yl;function zi(n){if(yl!=null)return yl;var i=S(n,document.createTextNode("AخA")),a=R(i,0,1).getBoundingClientRect(),l=R(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:yl=l.right-a.right<3}var dr=`
|
|
22
|
-
|
|
23
|
-
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
24
|
-
`,i);u==-1&&(u=n.length);var m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Fi=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},sc=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),kr=null;function Af(n){if(kr!=null)return kr;var i=S(n,k("span","x")),a=i.getBoundingClientRect(),l=R(i,0,1).getBoundingClientRect();return kr=Math.abs(a.left-l.left)>1}var as={},_r={};function Sr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),as[n]=i}function Eo(n,i){_r[n]=i}function cs(n){if(typeof n=="string"&&_r.hasOwnProperty(n))n=_r[n];else if(n&&typeof n.name=="string"&&_r.hasOwnProperty(n.name)){var i=_r[n.name];typeof i=="string"&&(i={name:i}),n=ie(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return cs("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return cs("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function us(n,i){i=cs(i);var a=as[i.name];if(!a)return us(n,"text/plain");var l=a(n,i);if(Hi.hasOwnProperty(i.name)){var u=Hi[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}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 Hi={};function fs(n,i){var a=Hi.hasOwnProperty(n)?Hi[n]:Hi[n]={};Z(i,a)}function Wr(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 bl(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 ds(n,i,a){return n.startState?n.startState(i,a):!0}var It=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};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.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},It.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},It.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},It.prototype.backUp=function(n){this.pos-=n},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},It.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 m=this.string.slice(this.pos).match(n);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},It.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},It.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function qe(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],m=u.chunkSize();if(i<m){a=u;break}i-=m}return a.lines[i]}function oi(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(m){var y=m.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function wl(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function er(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function A(n){if(n.parent==null)return null;for(var i=n.parent,a=ue(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 U(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],m=u.height;if(i<m){n=u;continue e}i-=m,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 ye(n,i){return i>=n.first&&i<n.first+n.size}function Se(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function de(n,i,a){if(a===void 0&&(a=null),!(this instanceof de))return new de(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ie(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ie(n,i)==0}function Qt(n){return de(n.line,n.ch)}function En(n,i){return Ie(n,i)<0?i:n}function hs(n,i){return Ie(n,i)<0?n:i}function tg(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function it(n,i){if(i.line<n.first)return de(n.first,0);var a=n.first+n.size-1;return i.line>a?de(a,qe(n,a).text.length):lk(i,qe(n,i.line).text.length)}function lk(n,i){var a=n.ch;return a==null||a>i?de(n.line,i):a<0?de(n.line,0):n}function ng(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=it(n,i[l]);return a}var lc=function(n,i){this.state=n,this.lookAhead=i},qr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};qr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},qr.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}},qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},qr.fromSaved=function(n,i,a){return i instanceof lc?new qr(n,Wr(n.mode,i.state),a,i.lookAhead):new qr(n,Wr(n.mode,i),a)},qr.prototype.save=function(n){var i=n!==!1?Wr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lc(i,this.maxLookAhead):i};function rg(n,i,a,l){var u=[n.state.modeGen],m={};cg(n,i.text,n.doc.mode,a,function(T,B){return u.push(T,B)},m,l);for(var y=a.state,w=function(T){a.baseTokens=u;var B=n.state.overlays[T],V=1,se=0;a.state=!0,cg(n,i.text,B.mode,a,function(ne,ge){for(var we=V;se<ne;){var Te=u[V];Te>ne&&u.splice(V,1,ne,u[V+1],Te),V+=2,se=Math.min(ne,Te)}if(ge)if(B.opaque)u.splice(we,V-we,ne,"overlay "+ge),V=we+2;else for(;we<V;we+=2){var Ne=u[we+1];u[we+1]=(Ne?Ne+" ":"")+"overlay "+ge}},m),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function ig(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=xl(n,A(i)),u=i.text.length>n.options.maxHighlightLength&&Wr(n.doc.mode,l.state),m=rg(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.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 xl(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new qr(l,!0,i);var m=ak(n,i,a),y=m>l.first&&qe(l,m-1).stateAfter,w=y?qr.fromSaved(l,y,m):new qr(l,ds(l.mode),m);return l.iter(m,i,function(_){Lf(n,_.text,w);var T=w.line;_.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&T<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Lf(n,i,a,l){var u=n.doc.mode,m=new It(i,n.options.tabSize,a);for(m.start=m.pos=l||0,i==""&&og(u,a.state);!m.eol();)Mf(u,m,a.state),m.start=m.pos}function og(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=bl(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Mf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=bl(n,a).mode);var m=n.token(i,a);if(i.pos>i.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var sg=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function lg(n,i,a,l){var u=n.doc,m=u.mode,y;i=it(u,i);var w=qe(u,i.line),_=xl(n,i.line,a),T=new It(w.text,n.options.tabSize,_),B;for(l&&(B=[]);(l||T.pos<i.ch)&&!T.eol();)T.start=T.pos,y=Mf(m,T,_.state),l&&B.push(new sg(T,y,Wr(u.mode,_.state)));return l?B:new sg(T,y,_.state)}function ag(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 cg(n,i,a,l,u,m,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,T=null,B=new It(i,n.options.tabSize,l),V,se=n.options.addModeClass&&[null];for(i==""&&ag(og(a,l.state),m);!B.eol();){if(B.pos>n.options.maxHighlightLength?(w=!1,y&&Lf(n,i,l,B.pos),B.pos=i.length,V=null):V=ag(Mf(a,B,l.state,se),m),se){var ne=se[0].name;ne&&(V="m-"+(V?ne+" "+V:ne))}if(!w||T!=V){for(;_<B.start;)_=Math.min(B.start,_+5e3),u(_,T);T=V}B.start=B.pos}for(;_<B.pos;){var ge=Math.min(B.pos,_+5e3);u(ge,T),_=ge}}function ak(n,i,a){for(var l,u,m=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=m.first)return m.first;var _=qe(m,w-1),T=_.stateAfter;if(T&&(!a||w+(T instanceof lc?T.lookAhead:0)<=m.modeFrontier))return w;var B=re(_.text,null,n.options.tabSize);(u==null||l>B)&&(u=w-1,l=B)}return u}function ck(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=qe(n,l).stateAfter;if(u&&(!(u instanceof lc)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var ug=!1,si=!1;function uk(){ug=!0}function fk(){si=!0}function ac(n,i,a){this.marker=n,this.from=i,this.to=a}function kl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function dk(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function hk(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 pk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,w=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);if(w||m.from==i&&y.type=="bookmark"&&(!a||!m.marker.insertLeft)){var _=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new ac(y,m.from,_?null:m.to))}}return l}function gk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,w=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);if(w||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var _=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new ac(y,_?null:m.from-i,m.to==null?null:m.to-i))}}return l}function Nf(n,i){if(i.full)return null;var a=ye(n,i.from.line)&&qe(n,i.from.line).markedSpans,l=ye(n,i.to.line)&&qe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,m=i.to.ch,y=Ie(i.from,i.to)==0,w=pk(a,u,y),_=gk(l,m,y),T=i.text.length==1,B=xe(i.text).length+(T?u:0);if(w)for(var V=0;V<w.length;++V){var se=w[V];if(se.to==null){var ne=kl(_,se.marker);ne?T&&(se.to=ne.to==null?null:ne.to+B):se.to=u}}if(_)for(var ge=0;ge<_.length;++ge){var we=_[ge];if(we.to!=null&&(we.to+=B),we.from==null){var Te=kl(w,we.marker);Te||(we.from=B,T&&(w||(w=[])).push(we))}else we.from+=B,T&&(w||(w=[])).push(we)}w&&(w=fg(w)),_&&_!=w&&(_=fg(_));var Ne=[w];if(!T){var De=i.text.length-2,Oe;if(De>0&&w)for(var Fe=0;Fe<w.length;++Fe)w[Fe].to==null&&(Oe||(Oe=[])).push(new ac(w[Fe].marker,null,null));for(var Ze=0;Ze<De;++Ze)Ne.push(Oe);Ne.push(_)}return Ne}function fg(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 mk(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(ne){if(ne.markedSpans)for(var ge=0;ge<ne.markedSpans.length;++ge){var we=ne.markedSpans[ge].marker;we.readOnly&&(!l||ue(l,we)==-1)&&(l||(l=[])).push(we)}}),!l)return null;for(var u=[{from:i,to:a}],m=0;m<l.length;++m)for(var y=l[m],w=y.find(0),_=0;_<u.length;++_){var T=u[_];if(!(Ie(T.to,w.from)<0||Ie(T.from,w.to)>0)){var B=[_,1],V=Ie(T.from,w.from),se=Ie(T.to,w.to);(V<0||!y.inclusiveLeft&&!V)&&B.push({from:T.from,to:w.from}),(se>0||!y.inclusiveRight&&!se)&&B.push({from:w.to,to:T.to}),u.splice.apply(u,B),_+=B.length-3}}return u}function dg(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function hg(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function cc(n){return n.inclusiveLeft?-1:0}function uc(n){return n.inclusiveRight?1:0}function Of(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),m=Ie(l.from,u.from)||cc(n)-cc(i);if(m)return-m;var y=Ie(l.to,u.to)||uc(n)-uc(i);return y||i.id-n.id}function pg(n,i){var a=si&&n.markedSpans,l;if(a)for(var u=void 0,m=0;m<a.length;++m)u=a[m],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Of(l,u.marker)<0)&&(l=u.marker);return l}function gg(n){return pg(n,!0)}function fc(n){return pg(n,!1)}function vk(n,i){var a=si&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var m=a[u];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||Of(l,m.marker)<0)&&(l=m.marker)}return l}function mg(n,i,a,l,u){var m=qe(n,i),y=si&&m.markedSpans;if(y)for(var w=0;w<y.length;++w){var _=y[w];if(_.marker.collapsed){var T=_.marker.find(0),B=Ie(T.from,a)||cc(_.marker)-cc(u),V=Ie(T.to,l)||uc(_.marker)-uc(u);if(!(B>=0&&V<=0||B<=0&&V>=0)&&(B<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||B>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Tr(n){for(var i;i=gg(n);)n=i.find(-1,!0).line;return n}function yk(n){for(var i;i=fc(n);)n=i.find(1,!0).line;return n}function bk(n){for(var i,a;i=fc(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Pf(n,i){var a=qe(n,i),l=Tr(a);return a==l?i:A(l)}function vg(n,i){if(i>n.lastLine())return i;var a=qe(n,i),l;if(!Bi(n,a))return i;for(;l=fc(a);)a=l.find(1,!0).line;return A(a)+1}function Bi(n,i){var a=si&&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&&$f(n,i,l))return!0}}}function $f(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return $f(n,l.line,kl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,m=0;m<i.markedSpans.length;++m)if(u=i.markedSpans[m],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&$f(n,i,u))return!0}function li(n){n=Tr(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 m=a.parent;m;a=m,m=a.parent)for(var y=0;y<m.children.length;++y){var w=m.children[y];if(w==a)break;i+=w.height}return i}function dc(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=gg(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=fc(l);){var m=a.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function Rf(n){var i=n.display,a=n.doc;i.maxLine=qe(a,a.first),i.maxLineLength=dc(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=dc(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var ps=function(n,i,a){this.text=n,hg(this,i),this.height=a?a(this):1};ps.prototype.lineNo=function(){return A(this)},wr(ps);function wk(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),dg(n),hg(n,a);var u=l?l(n):1;u!=n.height&&er(n,u)}function xk(n){n.parent=null,dg(n)}var kk={},_k={};function yg(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?_k:kk;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function bg(n,i){var a=D("span",null,null,g?"padding-right: .1px":null),l={pre:D("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=Tk,zi(n.display.measure)&&(y=at(m,n.doc.direction))&&(l.addToken=Ek(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&A(m);Ak(m,l,ig(n,m,w)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=je(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=je(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(oc(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(g){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return $t(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=je(l.pre.className,l.textClass||"")),l}function Sk(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Tk(n,i,a,l,u,m,y){if(i){var w=n.splitSpaces?Ck(i,n.trailingSpace):i,_=n.cm.state.specialChars,T=!1,B;if(!_.test(i))n.col+=i.length,B=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,B),h&&p<9&&(T=!0),n.pos+=i.length;else{B=document.createDocumentFragment();for(var V=0;;){_.lastIndex=V;var se=_.exec(i),ne=se?se.index-V:i.length-V;if(ne){var ge=document.createTextNode(w.slice(V,V+ne));h&&p<9?B.appendChild(k("span",[ge])):B.appendChild(ge),n.map.push(n.pos,n.pos+ne,ge),n.col+=ne,n.pos+=ne}if(!se)break;V+=ne+1;var we=void 0;if(se[0]==" "){var Te=n.cm.options.tabSize,Ne=Te-n.col%Te;we=B.appendChild(k("span",Ee(Ne),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Ne}else se[0]=="\r"||se[0]==`
|
|
25
|
-
`?(we=B.appendChild(k("span",se[0]=="\r"?"␍":"","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?B.appendChild(k("span",[we])):B.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Oe=k("span",[B],De,m);if(y)for(var Fe in y)y.hasOwnProperty(Fe)&&Fe!="style"&&Fe!="class"&&Oe.setAttribute(Fe,y[Fe]);return n.content.appendChild(Oe)}n.content.appendChild(B)}}function Ck(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var m=n.charAt(u);m==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(m=" "),l+=m,a=m==" "}return l}function Ek(n,i){return function(a,l,u,m,y,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var T=a.pos,B=T+l.length;;){for(var V=void 0,se=0;se<i.length&&(V=i[se],!(V.to>T&&V.from<=T));se++);if(V.to>=B)return n(a,l,u,m,y,w,_);n(a,l.slice(0,V.to-T),u,m,null,w,_),m=null,l=l.slice(V.to-T),T=V.to}}}function wg(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 Ak(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(m,m=a[y]),yg(a[y+1],i.cm.options));return}for(var w=u.length,_=0,T=1,B="",V,se,ne=0,ge,we,Te,Ne,De;;){if(ne==_){ge=we=Te=se="",De=null,Ne=null,ne=1/0;for(var Oe=[],Fe=void 0,Ze=0;Ze<l.length;++Ze){var Ge=l[Ze],lt=Ge.marker;if(lt.type=="bookmark"&&Ge.from==_&<.widgetNode)Oe.push(lt);else if(Ge.from<=_&&(Ge.to==null||Ge.to>_||lt.collapsed&&Ge.to==_&&Ge.from==_)){if(Ge.to!=null&&Ge.to!=_&&ne>Ge.to&&(ne=Ge.to,we=""),lt.className&&(ge+=" "+lt.className),lt.css&&(se=(se?se+";":"")+lt.css),lt.startStyle&&Ge.from==_&&(Te+=" "+lt.startStyle),lt.endStyle&&Ge.to==ne&&(Fe||(Fe=[])).push(lt.endStyle,Ge.to),lt.title&&((De||(De={})).title=lt.title),lt.attributes)for(var Tt in lt.attributes)(De||(De={}))[Tt]=lt.attributes[Tt];lt.collapsed&&(!Ne||Of(Ne.marker,lt)<0)&&(Ne=Ge)}else Ge.from>_&&ne>Ge.from&&(ne=Ge.from)}if(Fe)for(var rn=0;rn<Fe.length;rn+=2)Fe[rn+1]==ne&&(we+=" "+Fe[rn]);if(!Ne||Ne.from==_)for(var Ot=0;Ot<Oe.length;++Ot)wg(i,0,Oe[Ot]);if(Ne&&(Ne.from||0)==_){if(wg(i,(Ne.to==null?w+1:Ne.to)-_,Ne.marker,Ne.from==null),Ne.to==null)return;Ne.to==_&&(Ne=!1)}}if(_>=w)break;for(var Vn=Math.min(w,ne);;){if(B){var Mn=_+B.length;if(!Ne){var Ut=Mn>Vn?B.slice(0,Vn-_):B;i.addToken(i,Ut,V?V+ge:ge,Te,_+Ut.length==ne?we:"",se,De)}if(Mn>=Vn){B=B.slice(Vn-_),_=Vn;break}_=Mn,Te=""}B=u.slice(m,m=a[T++]),V=yg(a[T++],i.cm.options)}}}function xg(n,i,a){this.line=i,this.rest=bk(i),this.size=this.rest?A(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Bi(n,i)}function hc(n,i,a){for(var l=[],u,m=i;m<a;m=u){var y=new xg(n.doc,qe(n.doc,m),m);u=m+y.size,l.push(y)}return l}var gs=null;function Lk(n){gs?gs.ops.push(n):n.ownsGroup=gs={ops:[n],delayedCallbacks:[]}}function Mk(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 Nk(n,i){var a=n.ownsGroup;if(a)try{Mk(a)}finally{gs=null,i(a)}}var _l=null;function en(n,i){var a=ii(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;gs?u=gs.delayedCallbacks:_l?u=_l:(u=_l=[],setTimeout(Ok,0));for(var m=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)m(y)}}function Ok(){var n=_l;_l=null;for(var i=0;i<n.length;++i)n[i]()}function kg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var m=i.changes[u];m=="text"?$k(n,i):m=="gutter"?Sg(n,i,a,l):m=="class"?If(n,i):m=="widget"&&Rk(n,i,l)}i.changes=null}function Sl(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function Pk(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=Sl(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function _g(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):bg(n,i)}function $k(n,i){var a=i.text.className,l=_g(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,If(n,i)):a&&(i.text.className=a)}function If(n,i){Pk(n,i),i.line.wrapClass?Sl(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 Sg(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=Sl(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(n.options.lineNumbers||m){var y=Sl(i),w=i.gutter=k("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&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(k("div",Se(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),m)for(var _=0;_<n.display.gutterSpecs.length;++_){var T=n.display.gutterSpecs[_].className,B=m.hasOwnProperty(T)&&m[T];B&&w.appendChild(k("div",[B],"CodeMirror-gutter-elt","left: "+l.gutterLeft[T]+"px; width: "+l.gutterWidth[T]+"px"))}}}function Rk(n,i,a){i.alignable&&(i.alignable=null);for(var l=K("CodeMirror-linewidget"),u=i.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Tg(n,i,a)}function Ik(n,i,a,l){var u=_g(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),If(n,i),Sg(n,i,a,l),Tg(n,i,l),i.node}function Tg(n,i,a){if(Cg(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Cg(n,i.rest[l],i,a,!1)}function Cg(n,i,a,l,u){if(i.widgets)for(var m=Sl(a),y=0,w=i.widgets;y<w.length;++y){var _=w[y],T=k("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),Dk(_,T,a,l),n.display.input.setUneditable(T),u&&_.above?m.insertBefore(T,a.gutter||a.text):m.appendChild(T),en(_,"redraw")}}function Dk(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 Tl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ae(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;"),S(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ai(n,i){for(var a=vl(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 pc(n){return n.lineSpace.offsetTop}function Df(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Eg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=S(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Ur(n){return z-n.display.nativeBarWidth}function Ao(n){return n.display.scroller.clientWidth-Ur(n)-n.display.barWidth}function zf(n){return n.display.scroller.clientHeight-Ur(n)-n.display.barHeight}function zk(n,i,a){var l=n.options.lineWrapping,u=l&&Ao(n);if(!i.measure.heights||l&&i.measure.width!=u){var m=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],T=y[w+1];Math.abs(_.bottom-T.bottom)>2&&m.push((_.bottom+T.top)/2-a.top)}}m.push(a.bottom-a.top)}}function Ag(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(A(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Fk(n,i){i=Tr(i);var a=A(i),l=n.display.externalMeasured=new xg(n.doc,i,a);l.lineN=a;var u=l.built=bg(n,l);return l.text=u.pre,S(n.display.lineMeasure,u.pre),l}function Lg(n,i,a,l){return Vr(n,ms(n,i),a,l)}function Ff(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[No(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function ms(n,i){var a=A(i),l=Ff(n,a);l&&!l.text?l=null:l&&l.changes&&(kg(n,l,a,qf(n)),n.curOp.forceUpdate=!0),l||(l=Fk(n,i));var u=Ag(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Vr(n,i,a,l,u){i.before&&(a=-1);var m=a+(l||""),y;return i.cache.hasOwnProperty(m)?y=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(zk(n,i.view,i.rect),i.hasHeights=!0),y=Bk(n,i,a,l),y.bogus||(i.cache[m]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Mg={left:0,right:0,top:0,bottom:0};function Ng(n,i,a){for(var l,u,m,y,w,_,T=0;T<n.length;T+=3)if(w=n[T],_=n[T+1],i<w?(u=0,m=1,y="left"):i<_?(u=i-w,m=u+1):(T==n.length-3||i==_&&n[T+3]>i)&&(m=_-w,u=m-1,i>=_&&(y="right")),u!=null){if(l=n[T+2],w==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==_-w)for(;T<n.length-3&&n[T+3]==n[T+4]&&!n[T+5].insertLeft;)l=n[(T+=3)+2],y="right";break}return{node:l,start:u,end:m,collapse:y,coverStart:w,coverEnd:_}}function Hk(n,i){var a=Mg;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 Bk(n,i,a,l){var u=Ng(i.map,a,l),m=u.node,y=u.start,w=u.end,_=u.collapse,T;if(m.nodeType==3){for(var B=0;B<4;B++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&ut(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?T=m.parentNode.getBoundingClientRect():T=Hk(R(m,y,w).getClientRects(),l),T.left||T.right||y==0)break;w=y,y=y-1,_="right"}h&&p<11&&(T=jk(n.display.measure,T))}else{y>0&&(_=l="right");var V;n.options.lineWrapping&&(V=m.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var se=m.parentNode.getClientRects()[0];se?T={left:se.left,right:se.left+ys(n.display),top:se.top,bottom:se.bottom}:T=Mg}for(var ne=T.top-i.rect.top,ge=T.bottom-i.rect.top,we=(ne+ge)/2,Te=i.view.measure.heights,Ne=0;Ne<Te.length-1&&!(we<Te[Ne]);Ne++);var De=Ne?Te[Ne-1]:0,Oe=Te[Ne],Fe={left:(_=="right"?T.right:T.left)-i.rect.left,right:(_=="left"?T.left:T.right)-i.rect.left,top:De,bottom:Oe};return!T.left&&!T.right&&(Fe.bogus=!0),n.options.singleCursorHeightPerLine||(Fe.rtop=ne,Fe.rbottom=ge),Fe}function jk(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Af(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 Og(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 Pg(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Og(n.display.view[i])}function Cl(n){Pg(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function $g(n){return b&&F?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Rg(n){return b&&F?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Hf(n){var i=Tr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Tl(a[u]));return l}function gc(n,i,a,l,u){if(!u){var m=Hf(i);a.top+=m,a.bottom+=m}if(l=="line")return a;l||(l="local");var y=li(i);if(l=="local"?y+=pc(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:Rg(Ke(n)));var _=w.left+(l=="window"?0:$g(Ke(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Ig(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=$g(Ke(n)),u-=Rg(Ke(n));else if(a=="local"||!a){var m=n.display.sizer.getBoundingClientRect();l+=m.left,u+=m.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function mc(n,i,a,l,u){return l||(l=qe(n.doc,i.line)),gc(n,l,Lg(n,l,i.ch,u),a)}function Cr(n,i,a,l,u,m){l=l||qe(n.doc,i.line),u||(u=ms(n,l));function y(ge,we){var Te=Vr(n,u,ge,we?"right":"left",m);return we?Te.left=Te.right:Te.right=Te.left,gc(n,l,Te,a)}var w=at(l,n.doc.direction),_=i.ch,T=i.sticky;if(_>=l.text.length?(_=l.text.length,T="before"):_<=0&&(_=0,T="after"),!w)return y(T=="before"?_-1:_,T=="before");function B(ge,we,Te){var Ne=w[we],De=Ne.level==1;return y(Te?ge-1:ge,De!=Te)}var V=Ht(w,_,T),se=jr,ne=B(_,V,T=="before");return se!=null&&(ne.other=B(_,se,T!="before")),ne}function Dg(n,i){var a=0;i=it(n.doc,i),n.options.lineWrapping||(a=ys(n.display)*i.ch);var l=qe(n.doc,i.line),u=li(l)+pc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Bf(n,i,a,l,u){var m=de(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function jf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Bf(l.first,0,null,-1,-1);var u=U(l,a),m=l.first+l.size-1;if(u>m)return Bf(l.first+l.size-1,qe(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=qe(l,u);;){var w=Wk(n,y,u,i,a),_=vk(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var T=_.find(1);if(T.line==u)return T;y=qe(l,u=T.line)}}function zg(n,i,a,l){l-=Hf(i);var u=i.text.length,m=qt(function(y){return Vr(n,a,y-1).bottom<=l},u,0);return u=qt(function(y){return Vr(n,a,y).top>l},m,u),{begin:m,end:u}}function Fg(n,i,a,l){a||(a=ms(n,i));var u=gc(n,i,Vr(n,a,l),"line").top;return zg(n,i,a,u)}function Wf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Wk(n,i,a,l,u){u-=li(i);var m=ms(n,i),y=Hf(i),w=0,_=i.text.length,T=!0,B=at(i,n.doc.direction);if(B){var V=(n.options.lineWrapping?Uk:qk)(n,i,a,m,B,l,u);T=V.level!=1,w=T?V.from:V.to-1,_=T?V.to:V.from-1}var se=null,ne=null,ge=qt(function(Ze){var Ge=Vr(n,m,Ze);return Ge.top+=y,Ge.bottom+=y,Wf(Ge,l,u,!1)?(Ge.top<=u&&Ge.left<=l&&(se=Ze,ne=Ge),!0):!1},w,_),we,Te,Ne=!1;if(ne){var De=l-ne.left<ne.right-l,Oe=De==T;ge=se+(Oe?0:1),Te=Oe?"after":"before",we=De?ne.left:ne.right}else{!T&&(ge==_||ge==w)&&ge++,Te=ge==0?"after":ge==i.text.length?"before":Vr(n,m,ge-(T?1:0)).bottom+y<=u==T?"after":"before";var Fe=Cr(n,de(a,ge,Te),"line",i,m);we=Fe.left,Ne=u<Fe.top?-1:u>=Fe.bottom?1:0}return ge=Jt(i.text,ge,1),Bf(a,ge,Te,Ne,l-we)}function qk(n,i,a,l,u,m,y){var w=qt(function(V){var se=u[V],ne=se.level!=1;return Wf(Cr(n,de(a,ne?se.to:se.from,ne?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),_=u[w];if(w>0){var T=_.level!=1,B=Cr(n,de(a,T?_.from:_.to,T?"after":"before"),"line",i,l);Wf(B,m,y,!0)&&B.top>y&&(_=u[w-1])}return _}function Uk(n,i,a,l,u,m,y){var w=zg(n,i,l,y),_=w.begin,T=w.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var B=null,V=null,se=0;se<u.length;se++){var ne=u[se];if(!(ne.from>=T||ne.to<=_)){var ge=ne.level!=1,we=Vr(n,l,ge?Math.min(T,ne.to)-1:Math.max(_,ne.from)).right,Te=we<m?m-we+1e9:we-m;(!B||V>Te)&&(B=ne,V=Te)}}return B||(B=u[u.length-1]),B.from<_&&(B={from:_,to:B.to,level:B.level}),B.to>T&&(B={from:B.from,to:T,level:B.level}),B}var Lo;function vs(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Lo==null){Lo=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Lo.appendChild(document.createTextNode("x")),Lo.appendChild(k("br"));Lo.appendChild(document.createTextNode("x"))}S(n.measure,Lo);var a=Lo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function ys(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");S(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function qf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=m.offsetLeft+m.clientLeft+u,l[w]=m.clientWidth}return{fixedPos:Uf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Uf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Hg(n){var i=vs(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/ys(n.display)-3);return function(u){if(Bi(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(m+=u.widgets[y].height);return a?m+(Math.ceil(u.text.length/l)||1)*i:m+i}}function Vf(n){var i=n.doc,a=Hg(n);i.iter(function(l){var u=a(l);u!=l.height&&er(l,u)})}function Mo(n,i,a,l){var u=n.display;if(!a&&vl(i).getAttribute("cm-not-content")=="true")return null;var m,y,w=u.lineSpace.getBoundingClientRect();try{m=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var _=jf(n,m,y),T;if(l&&_.xRel>0&&(T=qe(n.doc,_.line).text).length==_.ch){var B=re(T,T.length,n.options.tabSize)-T.length;_=de(_.line,Math.max(0,Math.round((m-Eg(n.display).left)/ys(n.display))-B))}return _}function No(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function An(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)si&&Pf(n.doc,i)<u.viewTo&&Wi(n);else if(a<=u.viewFrom)si&&vg(n.doc,a+l)>u.viewFrom?Wi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Wi(n);else if(i<=u.viewFrom){var m=vc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):Wi(n)}else if(a>=u.viewTo){var y=vc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Wi(n)}else{var w=vc(n,i,i,-1),_=vc(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(hc(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):Wi(n)}var T=u.externalMeasured;T&&(a<T.lineN?T.lineN+=l:i<T.lineN+T.size&&(u.externalMeasured=null))}function ji(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 m=l.view[No(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ue(y,a)==-1&&y.push(a)}}}function Wi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function vc(n,i,a,l){var u=No(n,i),m,y=n.display.view;if(!si||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;m=w+y[u].size-i,u++}else m=w-i;i+=m,a+=m}for(;Pf(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 Vk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=hc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=hc(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(No(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(hc(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,No(n,a)))),l.viewTo=a}function Bg(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 El(n){n.display.input.showSelection(n.display.input.prepareSelection())}function jg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),m=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 T=_.empty();if(y){var B=y(n,_);B&&Gf(n,B,u)}else(T||n.options.showCursorWhenSelecting)&&Gf(n,_.head,u);T||Gk(n,_,m)}}return l}function Gf(n,i,a){var l=Cr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("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 m=mc(n,i,"div",null,null),y=m.right-m.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(k("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 yc(n,i){return n.top-i.top||n.left-i.left}function Gk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=Eg(n.display),w=y.left,_=Math.max(l.sizerWidth,Ao(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function B(Oe,Fe,Ze,Ge){Fe<0&&(Fe=0),Fe=Math.round(Fe),Ge=Math.round(Ge),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Oe+`px;
|
|
26
|
-
top: `+Fe+"px; width: "+(Ze??_-Oe)+`px;
|
|
27
|
-
height: `+(Ge-Fe)+"px"))}function V(Oe,Fe,Ze){var Ge=qe(u,Oe),lt=Ge.text.length,Tt,rn;function Ot(Ut,Nn){return mc(n,de(Oe,Ut),"div",Ge,Nn)}function Vn(Ut,Nn,ln){var Xt=Fg(n,Ge,null,Ut),Vt=Nn=="ltr"==(ln=="after")?"left":"right",Dt=ln=="after"?Xt.begin:Xt.end-(/\s/.test(Ge.text.charAt(Xt.end-1))?2:1);return Ot(Dt,Vt)[Vt]}var Mn=at(Ge,u.direction);return jn(Mn,Fe||0,Ze??lt,function(Ut,Nn,ln,Xt){var Vt=ln=="ltr",Dt=Ot(Ut,Vt?"left":"right"),On=Ot(Nn-1,Vt?"right":"left"),Ns=Fe==null&&Ut==0,Xi=Ze==null&&Nn==lt,hn=Xt==0,Gr=!Mn||Xt==Mn.length-1;if(On.top-Dt.top<=3){var on=(T?Ns:Xi)&&hn,wd=(T?Xi:Ns)&&Gr,fi=on?w:(Vt?Dt:On).left,Io=wd?_:(Vt?On:Dt).right;B(fi,Dt.top,Io-fi,Dt.bottom)}else{var Do,xn,Os,xd;Vt?(Do=T&&Ns&&hn?w:Dt.left,xn=T?_:Vn(Ut,ln,"before"),Os=T?w:Vn(Nn,ln,"after"),xd=T&&Xi&&Gr?_:On.right):(Do=T?Vn(Ut,ln,"before"):w,xn=!T&&Ns&&hn?_:Dt.right,Os=!T&&Xi&&Gr?w:On.left,xd=T?Vn(Nn,ln,"after"):_),B(Do,Dt.top,xn-Do,Dt.bottom),Dt.bottom<On.top&&B(w,Dt.bottom,null,On.top),B(Os,On.top,xd-Os,On.bottom)}(!Tt||yc(Dt,Tt)<0)&&(Tt=Dt),yc(On,Tt)<0&&(Tt=On),(!rn||yc(Dt,rn)<0)&&(rn=Dt),yc(On,rn)<0&&(rn=On)}),{start:Tt,end:rn}}var se=i.from(),ne=i.to();if(se.line==ne.line)V(se.line,se.ch,ne.ch);else{var ge=qe(u,se.line),we=qe(u,ne.line),Te=Tr(ge)==Tr(we),Ne=V(se.line,se.ch,Te?ge.text.length+1:null).end,De=V(ne.line,Te?0:null,ne.ch).start;Te&&(Ne.top<De.top-2?(B(Ne.right,Ne.top,null,Ne.bottom),B(w,De.top,De.left,De.bottom)):B(Ne.right,Ne.top,De.left-Ne.right,Ne.bottom)),Ne.bottom<De.top&&B(w,Ne.bottom,null,De.top)}a.appendChild(m)}function Kf(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()||bs(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Wg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Yf(n))}function Xf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&bs(n))},100)}function Yf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||($t(n,"focus",n,i),n.state.focused=!0,_e(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Kf(n))}function bs(n,i){n.state.delayingBlurEvent||(n.state.focused&&($t(n,"blur",n,i),n.state.focused=!1,P(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function bc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y<i.view.length;y++){var w=i.view[y],_=n.options.lineWrapping,T=void 0,B=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var V=w.node.offsetTop+w.node.offsetHeight;T=V-a,a=V}else{var se=w.node.getBoundingClientRect();T=se.bottom-se.top,!_&&w.text.firstChild&&(B=w.text.firstChild.getBoundingClientRect().right-se.left-1)}var ne=w.line.height-T;if((ne>.005||ne<-.005)&&(u<l&&(m-=ne),er(w.line,T),qg(w.line),w.rest))for(var ge=0;ge<w.rest.length;ge++)qg(w.rest[ge]);if(B>n.display.sizerWidth){var we=Math.ceil(B/ys(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function qg(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 wc(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-pc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,m=U(i,l),y=U(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<m?(m=w,y=U(i,li(qe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(m=U(i,li(qe(i,_))-n.wrapper.clientHeight),y=_)}return{from:m,to:Math.max(y,m+1)}}function Kk(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!M){var y=k("div","",null,`position: absolute;
|
|
28
|
-
top: `+(i.top-a.viewOffset-pc(n.display))+`px;
|
|
29
|
-
height: `+(i.bottom-i.top+Ur(n)+a.barHeight)+`px;
|
|
30
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Xk(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?de(i.line,i.ch+1,"before"):i,i=i.ch?de(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,w=Cr(n,i),_=!a||a==i?w:Cr(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 T=Zf(n,u),B=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(Ll(n,T.scrollTop),Math.abs(n.doc.scrollTop-B)>1&&(y=!0)),T.scrollLeft!=null&&(Oo(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Yk(n,i){var a=Zf(n,i);a.scrollTop!=null&&Ll(n,a.scrollTop),a.scrollLeft!=null&&Oo(n,a.scrollLeft)}function Zf(n,i){var a=n.display,l=vs(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=zf(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var w=n.doc.height+Df(a),_=i.top<l,T=i.bottom>w-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+m){var B=Math.min(i.top,(T?w:i.bottom)-m);B!=u&&(y.scrollTop=B)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,ne=Ao(n)-a.gutters.offsetWidth,ge=i.right-i.left>ne;return ge&&(i.right=i.left+ne),i.left<10?y.scrollLeft=0:i.left<se?y.scrollLeft=Math.max(0,i.left+V-(ge?0:10)):i.right>ne+se-3&&(y.scrollLeft=i.right+(ge?0:10)-ne),y}function Jf(n,i){i!=null&&(xc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function ws(n){xc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Al(n,i,a){(i!=null||a!=null)&&xc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Zk(n,i){xc(n),n.curOp.scrollToPos=i}function xc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Dg(n,i.from),l=Dg(n,i.to);Ug(n,a,l,i.margin)}}function Ug(n,i,a,l){var u=Zf(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});Al(n,u.scrollLeft,u.scrollTop)}function Ll(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||ed(n,{top:i}),Vg(n,i,!0),s&&ed(n),Ol(n,100))}function Vg(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 Oo(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,Zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Ml(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Df(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+Ur(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Po=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Ye(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Ye(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Po.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},Po.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Po.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Po.prototype.zeroWidthHack=function(){var n=I&&!N?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},Po.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Po.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Nl=function(){};Nl.prototype.update=function(){return{bottom:0,right:0}},Nl.prototype.setScrollLeft=function(){},Nl.prototype.setScrollTop=function(){},Nl.prototype.clear=function(){};function xs(n,i){i||(i=Ml(n));var a=n.display.barWidth,l=n.display.barHeight;Gg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&bc(n),Gg(n,Ml(n)),a=n.display.barWidth,l=n.display.barHeight}function Gg(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 Kg={native:Po,null:Nl};function Xg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&P(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Kg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Ye(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"?Oo(n,i):Ll(n,i)},n),n.display.scrollbars.addClass&&_e(n.display.wrapper,n.display.scrollbars.addClass)}var Jk=0;function $o(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:++Jk,markArrays:null},Lk(n.curOp)}function Ro(n){var i=n.curOp;i&&Nk(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Qk(a)})}function Qk(n){for(var i=n.ops,a=0;a<i.length;a++)e_(i[a]);for(var l=0;l<i.length;l++)t_(i[l]);for(var u=0;u<i.length;u++)n_(i[u]);for(var m=0;m<i.length;m++)r_(i[m]);for(var y=0;y<i.length;y++)i_(i[y])}function e_(n){var i=n.cm,a=i.display;s_(i),n.updateMaxLine&&Rf(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 kc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function t_(n){n.updatedDisplay=n.mustUpdate&&Qf(n.cm,n.update)}function n_(n){var i=n.cm,a=i.display;n.updatedDisplay&&bc(i),n.barMeasure=Ml(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Lg(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+Ur(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Ao(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function r_(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&Oo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ce(Ue(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&xs(i,n.barMeasure),n.updatedDisplay&&nd(i,n.barMeasure),n.selectionChanged&&Kf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Wg(n.cm)}function i_(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Yg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Vg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&Oo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Xk(i,it(l,n.scrollToPos.from),it(l,n.scrollToPos.to),n.scrollToPos.margin);Kk(i,u)}var m=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(m)for(var w=0;w<m.length;++w)m[w].lines.length||$t(m[w],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&$t(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&$t(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Un(n,i){if(n.curOp)return i();$o(n);try{return i()}finally{Ro(n)}}function tn(n,i){return function(){if(n.curOp)return i.apply(n,arguments);$o(n);try{return i.apply(n,arguments)}finally{Ro(n)}}}function wn(n){return function(){if(this.curOp)return n.apply(this,arguments);$o(this);try{return n.apply(this,arguments)}finally{Ro(this)}}}function nn(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);$o(i);try{return n.apply(this,arguments)}finally{Ro(i)}}}function Ol(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,H(o_,n))}function o_(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=xl(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,w=m.text.length>n.options.maxHighlightLength?Wr(i.mode,l.state):null,_=rg(n,m,l,!0);w&&(l.state=w),m.styles=_.styles;var T=m.styleClasses,B=_.classes;B?m.styleClasses=B:T&&(m.styleClasses=null);for(var V=!y||y.length!=m.styles.length||T!=B&&(!T||!B||T.bgClass!=B.bgClass||T.textClass!=B.textClass),se=0;!V&&se<y.length;++se)V=y[se]!=m.styles[se];V&&u.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=n.options.maxHighlightLength&&Lf(n,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Ol(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Un(n,function(){for(var m=0;m<u.length;m++)ji(n,u[m],"text")})}}var kc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=wc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ao(n),this.force=a,this.dims=qf(n),this.events=[]};kc.prototype.signal=function(n,i){qn(n,i)&&this.events.push(arguments)},kc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)$t.apply(null,this.events[n])};function s_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Ur(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Ur(n)+"px",i.scrollbarsClipped=!0)}function l_(n){if(n.hasFocus())return null;var i=ce(Ue(n));if(!i||!ae(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=$e(n).getSelection();l.anchorNode&&l.extend&&ae(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function a_(n){if(!(!n||!n.activeElt||n.activeElt==ce(He(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ae(document.body,n.anchorNode)&&ae(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 Qf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Wi(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&&Bg(n)==0)return!1;Jg(n)&&(Wi(n),i.dims=qf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<m&&m-a.viewFrom<20&&(m=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),si&&(m=Pf(n.doc,m),y=vg(n.doc,y));var w=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Vk(n,m,y),a.viewOffset=li(qe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Bg(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=l_(n);return _>4&&(a.lineDiv.style.display="none"),c_(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,a_(T),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Ol(n,400)),a.updateLineNumbers=null,!0}function Yg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==Ao(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Df(n.display)-zf(n),a.top)}),i.visible=wc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=wc(n.display,n.doc,a));if(!Qf(n,i))break;bc(n);var u=Ml(n);El(n),xs(n,u),nd(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 ed(n,i){var a=new kc(n,i);if(Qf(n,a)){bc(n),Yg(n,a);var l=Ml(n);El(n),xs(n,l),nd(n,l),a.finish()}}function c_(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function w(ge){var we=ge.nextSibling;return g&&I&&n.display.currentWheelTarget==ge?ge.style.display="none":ge.parentNode.removeChild(ge),we}for(var _=l.view,T=l.viewFrom,B=0;B<_.length;B++){var V=_[B];if(!V.hidden)if(!V.node||V.node.parentNode!=m){var se=Ik(n,V,T,a);m.insertBefore(se,y)}else{for(;y!=V.node;)y=w(y);var ne=u&&i!=null&&i<=T&&V.lineNumber;V.changes&&(ue(V.changes,"gutter")>-1&&(ne=!1),kg(n,V,T,a)),ne&&(O(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(Se(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=w(y)}function td(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",en(n,"gutterChanged",n)}function nd(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+Ur(n)+"px"}function Zg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Uf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=m),a[y].gutterBackground&&(a[y].gutterBackground.style.left=m));var w=a[y].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=m}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Jg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=Se(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=u.firstChild.offsetWidth,y=u.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",td(n.display),!0}return!1}function rd(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var m=n[u],y=null;if(typeof m!="string"&&(y=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:m,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Qg(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],m=u.className,y=u.style,w=i.appendChild(k("div",null,"CodeMirror-gutter "+m));y&&(w.style.cssText=y),m=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",td(n)}function Pl(n){Qg(n.display),An(n),Zg(n)}function u_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=D("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=D("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=D("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[m],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("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),!g&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=rd(l.gutters,l.lineNumbers),Qg(u),a.init(u)}var _c=0,ci=null;h?ci=-.53:s?ci=15:b?ci=-.7:L&&(ci=-1/3);function em(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 f_(n){var i=em(n);return i.x*=ci,i.y*=ci,i}function tm(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=em(i),l=a.x,u=a.y,m=ci;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,w=y.scroller,_=w.scrollWidth>w.clientWidth,T=w.scrollHeight>w.clientHeight;if(l&&_||u&&T){if(u&&I&&g){e:for(var B=i.target,V=y.view;B!=w;B=B.parentNode)for(var se=0;se<V.length;se++)if(V[se].node==B){n.display.currentWheelTarget=B;break e}}if(l&&!s&&!C&&m!=null){u&&T&&Ll(n,Math.max(0,w.scrollTop+u*m)),Oo(n,Math.max(0,w.scrollLeft+l*m)),(!u||u&&T)&&fn(i),y.wheelStartX=null;return}if(u&&m!=null){var ne=u*m,ge=n.doc.scrollTop,we=ge+y.wrapper.clientHeight;ne<0?ge=Math.max(0,ge+ne-50):we=Math.min(n.doc.height,we+ne+50),ed(n,{top:ge,bottom:we})}_c<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 Te=w.scrollLeft-y.wheelStartX,Ne=w.scrollTop-y.wheelStartY,De=Ne&&y.wheelDY&&Ne/y.wheelDY||Te&&y.wheelDX&&Te/y.wheelDX;y.wheelStartX=y.wheelStartY=null,De&&(ci=(ci*_c+De)/(_c+1),++_c)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var tr=function(n,i){this.ranges=n,this.primIndex=i};tr.prototype.primary=function(){return this.ranges[this.primIndex]},tr.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},tr.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Qt(this.ranges[i].anchor),Qt(this.ranges[i].head));return new tr(n,this.primIndex)},tr.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},tr.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ie(i,l.from())>=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return hs(this.anchor,this.head)},gt.prototype.to=function(){return En(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Er(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(se,ne){return Ie(se.from(),ne.from())}),a=ue(i,u);for(var m=1;m<i.length;m++){var y=i[m],w=i[m-1],_=Ie(w.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var T=hs(w.from(),y.from()),B=En(w.to(),y.to()),V=w.empty()?y.from()==y.head:w.from()==w.head;m<=a&&--a,i.splice(--m,2,new gt(V?B:T,V?T:B))}}return new tr(i,a)}function qi(n,i){return new tr([new gt(n,i||n)],0)}function Ui(n){return n.text?de(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function nm(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Ui(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+=Ui(i).ch-i.to.ch),de(a,l)}function id(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(nm(u.anchor,i),nm(u.head,i)))}return Er(n.cm,a,n.sel.primIndex)}function rm(n,i,a){return n.line==i.line?de(a.line,n.ch-i.ch+a.ch):de(a.line+(n.line-i.line),n.ch)}function d_(n,i,a){for(var l=[],u=de(n.first,0),m=u,y=0;y<i.length;y++){var w=i[y],_=rm(w.from,u,m),T=rm(Ui(w),u,m);if(u=w.to,m=T,a=="around"){var B=n.sel.ranges[y],V=Ie(B.head,B.anchor)<0;l[y]=new gt(V?T:_,V?_:T)}else l[y]=new gt(_,_)}return new tr(l,n.sel.primIndex)}function od(n){n.doc.mode=us(n.options,n.doc.modeOption),$l(n)}function $l(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,Ol(n,100),n.state.modeGen++,n.curOp&&An(n)}function im(n,i){return i.from.ch==0&&i.to.ch==0&&xe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function sd(n,i,a,l){function u(De){return a?a[De]:null}function m(De,Oe,Fe){wk(De,Oe,Fe,l),en(De,"change",De,i)}function y(De,Oe){for(var Fe=[],Ze=De;Ze<Oe;++Ze)Fe.push(new ps(T[Ze],u(Ze),l));return Fe}var w=i.from,_=i.to,T=i.text,B=qe(n,w.line),V=qe(n,_.line),se=xe(T),ne=u(T.length-1),ge=_.line-w.line;if(i.full)n.insert(0,y(0,T.length)),n.remove(T.length,n.size-T.length);else if(im(n,i)){var we=y(0,T.length-1);m(V,V.text,ne),ge&&n.remove(w.line,ge),we.length&&n.insert(w.line,we)}else if(B==V)if(T.length==1)m(B,B.text.slice(0,w.ch)+se+B.text.slice(_.ch),ne);else{var Te=y(1,T.length-1);Te.push(new ps(se+B.text.slice(_.ch),ne,l)),m(B,B.text.slice(0,w.ch)+T[0],u(0)),n.insert(w.line+1,Te)}else if(T.length==1)m(B,B.text.slice(0,w.ch)+T[0]+V.text.slice(_.ch),u(0)),n.remove(w.line+1,ge);else{m(B,B.text.slice(0,w.ch)+T[0],u(0)),m(V,se+V.text.slice(_.ch),ne);var Ne=y(1,T.length-1);ge>1&&n.remove(w.line+1,ge-1),n.insert(w.line+1,Ne)}en(n,"change",n,i)}function Vi(n,i,a){function l(u,m,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=m){var T=y&&_.sharedHist;a&&!T||(i(_.doc,T),l(_.doc,u,T))}}}l(n,null,!0)}function om(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Vf(n),od(n),sm(n),n.options.direction=i.direction,n.options.lineWrapping||Rf(n),n.options.mode=i.modeOption,An(n)}function sm(n){(n.doc.direction=="rtl"?_e:P)(n.display.lineDiv,"CodeMirror-rtl")}function h_(n){Un(n,function(){sm(n),An(n)})}function Sc(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 ld(n,i){var a={from:Qt(i.from),to:Ui(i),text:oi(n,i.from,i.to)};return cm(n,a,i.from.line,i.to.line+1),Vi(n,function(l){return cm(l,a,i.from.line,i.to.line+1)},!0),a}function lm(n){for(;n.length;){var i=xe(n);if(i.ranges)n.pop();else break}}function p_(n,i){if(i)return lm(n.done),xe(n.done);if(n.done.length&&!xe(n.done).ranges)return xe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function am(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=p_(u,u.lastOp==l)))w=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,w.to)==0?w.to=Ui(i):y.changes.push(ld(n,i));else{var _=xe(u.done);for((!_||!_.ranges)&&Tc(n.sel,u.done),y={changes:[ld(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=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||$t(n,"historyAdded")}function g_(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 m_(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||g_(n,m,xe(u.done),i))?u.done[u.done.length-1]=i:Tc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&lm(u.undone)}function Tc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function cm(n,i,a,l){var u=i["spans_"+n.id],m=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]={}))[m]=y.markedSpans),++m})}function v_(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 y_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(v_(a[u]));return l}function um(n,i){var a=y_(n,i),l=Nf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var m=a[u],y=l[u];if(m&&y)e:for(var w=0;w<y.length;++w){for(var _=y[w],T=0;T<m.length;++T)if(m[T].marker==_.marker)continue e;m.push(_)}else y&&(a[u]=y)}return a}function ks(n,i,a){for(var l=[],u=0;u<n.length;++u){var m=n[u];if(m.ranges){l.push(a?tr.prototype.deepCopy.call(m):m);continue}var y=m.changes,w=[];l.push({changes:w});for(var _=0;_<y.length;++_){var T=y[_],B=void 0;if(w.push({from:T.from,to:T.to,text:T.text}),i)for(var V in T)(B=V.match(/^spans_(\d+)$/))&&ue(i,Number(B[1]))>-1&&(xe(w)[V]=T[V],delete T[V])}}return l}function ad(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function Cc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),dn(n,new tr([ad(n.sel.primary(),i,a,u)],0),l)}function fm(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m<n.sel.ranges.length;m++)l[m]=ad(n.sel.ranges[m],i[m],null,u);var y=Er(n.cm,l,n.sel.primIndex);dn(n,y,a)}function cd(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,dn(n,Er(n.cm,u,n.sel.primIndex),l)}function dm(n,i,a,l){dn(n,qi(i,a),l)}function b_(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new gt(it(n,u[m].anchor),it(n,u[m].head))},origin:a&&a.origin};return $t(n,"beforeSelectionChange",n,l),n.cm&&$t(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Er(n.cm,l.ranges,l.ranges.length-1):i}function hm(n,i,a){var l=n.history.done,u=xe(l);u&&u.ranges?(l[l.length-1]=i,Ec(n,i,a)):dn(n,i,a)}function dn(n,i,a){Ec(n,i,a),m_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ec(n,i,a){(qn(n,"beforeSelectionChange")||n.cm&&qn(n.cm,"beforeSelectionChange"))&&(i=b_(n,i,a));var l=a&&a.bias||(Ie(i.primary().head,n.sel.primary().head)<0?-1:1);pm(n,mm(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&ws(n.cm)}function pm(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,fr(n.cm)),en(n,"cursorActivity",n))}function gm(n){pm(n,mm(n,n.sel,null,!1))}function mm(n,i,a,l){for(var u,m=0;m<i.ranges.length;m++){var y=i.ranges[m],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[m],_=Ac(n,y.anchor,w&&w.anchor,a,l),T=y.head==y.anchor?_:Ac(n,y.head,w&&w.head,a,l);(u||_!=y.anchor||T!=y.head)&&(u||(u=i.ranges.slice(0,m)),u[m]=new gt(_,T))}return u?Er(n.cm,u,i.primIndex):i}function _s(n,i,a,l,u){var m=qe(n,i.line);if(m.markedSpans)for(var y=0;y<m.markedSpans.length;++y){var w=m.markedSpans[y],_=w.marker,T="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,B="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(T?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(B?w.to>=i.ch:w.to>i.ch))){if(u&&($t(_,"beforeCursorEnter"),_.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var V=_.find(l<0?1:-1),se=void 0;if((l<0?B:T)&&(V=vm(n,V,-l,V&&V.line==i.line?m:null)),V&&V.line==i.line&&(se=Ie(V,a))&&(l<0?se<0:se>0))return _s(n,V,i,l,u)}var ne=_.find(l<0?-1:1);return(l<0?T:B)&&(ne=vm(n,ne,l,ne.line==i.line?m:null)),ne?_s(n,ne,i,l,u):null}}return i}function Ac(n,i,a,l,u){var m=l||1,y=_s(n,i,a,m,u)||!u&&_s(n,i,a,m,!0)||_s(n,i,a,-m,u)||!u&&_s(n,i,a,-m,!0);return y||(n.cantEdit=!0,de(n.first,0))}function vm(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?it(n,de(i.line-1)):null:a>0&&i.ch==(l||qe(n,i.line)).text.length?i.line<n.first+n.size-1?de(i.line+1,0):null:new de(i.line,i.ch+a)}function ym(n){n.setSelection(de(n.firstLine(),0),de(n.lastLine()),ee)}function bm(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,m,y,w){u&&(l.from=it(n,u)),m&&(l.to=it(n,m)),y&&(l.text=y),w!==void 0&&(l.origin=w)}),$t(n,"beforeChange",n,l),n.cm&&$t(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Ss(n,i,a){if(n.cm){if(!n.cm.curOp)return tn(n.cm,Ss)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((qn(n,"beforeChange")||n.cm&&qn(n.cm,"beforeChange"))&&(i=bm(n,i,!0),!i))){var l=ug&&!a&&mk(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)wm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else wm(n,i)}}function wm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=id(n,i);am(n,i,a,n.cm?n.cm.curOp.id:NaN),Rl(n,i,a,Nf(n,i));var l=[];Vi(n,function(u,m){!m&&ue(l,u.history)==-1&&(Sm(u.history,i),l.push(u.history)),Rl(u,i,null,Nf(u,i))})}}function Lc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,T=0;T<w.length&&(m=w[T],!(a?m.ranges&&!m.equals(n.sel):!m.ranges));T++);if(T!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=w.pop(),m.ranges){if(Tc(m,_),a&&!m.equals(n.sel)){dn(n,m,{clearRedo:!1});return}y=m}else if(l){w.push(m);return}else break;var B=[];Tc(y,_),_.push({changes:B,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var V=qn(n,"beforeChange")||n.cm&&qn(n.cm,"beforeChange"),se=function(we){var Te=m.changes[we];if(Te.origin=i,V&&!bm(n,Te,!1))return w.length=0,{};B.push(ld(n,Te));var Ne=we?id(n,Te):xe(w);Rl(n,Te,Ne,um(n,Te)),!we&&n.cm&&n.cm.scrollIntoView({from:Te.from,to:Ui(Te)});var De=[];Vi(n,function(Oe,Fe){!Fe&&ue(De,Oe.history)==-1&&(Sm(Oe.history,Te),De.push(Oe.history)),Rl(Oe,Te,null,um(Oe,Te))})},ne=m.changes.length-1;ne>=0;--ne){var ge=se(ne);if(ge)return ge.v}}}}function xm(n,i){if(i!=0&&(n.first+=i,n.sel=new tr(be(n.sel.ranges,function(u){return new gt(de(u.anchor.line+i,u.anchor.ch),de(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){An(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)ji(n.cm,l,"gutter")}}function Rl(n,i,a,l){if(n.cm&&!n.cm.curOp)return tn(n.cm,Rl)(n,i,a,l);if(i.to.line<n.first){xm(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);xm(n,u),i={from:de(n.first,0),to:de(i.to.line+u,i.to.ch),text:[xe(i.text)],origin:i.origin}}var m=n.lastLine();i.to.line>m&&(i={from:i.from,to:de(m,qe(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=oi(n,i.from,i.to),a||(a=id(n,i)),n.cm?w_(n.cm,i,l):sd(n,i,l),Ec(n,a,ee),n.cantEdit&&Ac(n,de(n.firstLine(),0))&&(n.cantEdit=!1)}}function w_(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,w=!1,_=m.line;n.options.lineWrapping||(_=A(Tr(qe(l,m.line))),l.iter(_,y.line+1,function(ne){if(ne==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&fr(n),sd(l,i,a,Hg(n)),n.options.lineWrapping||(l.iter(_,m.line+i.text.length,function(ne){var ge=dc(ne);ge>u.maxLineLength&&(u.maxLine=ne,u.maxLineLength=ge,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),ck(l,m.line),Ol(n,400);var T=i.text.length-(y.line-m.line)-1;i.full?An(n):m.line==y.line&&i.text.length==1&&!im(n.doc,i)?ji(n,m.line,"text"):An(n,m.line,y.line+1,T);var B=qn(n,"changes"),V=qn(n,"change");if(V||B){var se={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&en(n,"change",n,se),B&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(se)}n.display.selForContextMenu=null}function Ts(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),Ss(n,{from:a,to:l,text:i,origin:u})}function km(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function _m(n,i,a,l){for(var u=0;u<n.length;++u){var m=n[u],y=!0;if(m.ranges){m.copied||(m=n[u]=m.deepCopy(),m.copied=!0);for(var w=0;w<m.ranges.length;w++)km(m.ranges[w].anchor,i,a,l),km(m.ranges[w].head,i,a,l);continue}for(var _=0;_<m.changes.length;++_){var T=m.changes[_];if(a<T.from.line)T.from=de(T.from.line+l,T.from.ch),T.to=de(T.to.line+l,T.to.ch);else if(i<=T.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Sm(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;_m(n.done,a,l,u),_m(n.undone,a,l,u)}function Il(n,i,a,l){var u=i,m=i;return typeof i=="number"?m=qe(n,tg(n,i)):u=A(i),u==null?null:(l(m,u)&&n.cm&&ji(n.cm,u,a),m)}function Dl(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}Dl.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,xk(u),en(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 zl(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}zl.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 m=Math.min(i,u-n),y=l.height;if(l.removeInner(n,m),this.height-=y-l.height,u==m&&(this.children.splice(a--,1),l.parent=null),(i-=m)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Dl))){var w=[];this.collapse(w),this.children=[new Dl(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],m=u.chunkSize();if(n<=m){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 Dl(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-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new zl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ue(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new zl(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],m=u.chunkSize();if(n<m){var y=Math.min(i,m-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=m}}};var Fl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Fl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=A(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 m=Tl(this);er(a,Math.max(0,a.height-m)),n&&(Un(n,function(){Tm(n,a,-m),ji(n,l,"widget")}),en(n,"lineWidgetCleared",n,this,l))}},Fl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Tl(this)-i;u&&(Bi(this.doc,l)||er(l,l.height+u),a&&Un(a,function(){a.curOp.forceUpdate=!0,Tm(a,l,u),en(a,"lineWidgetChanged",a,n,A(l))}))},wr(Fl);function Tm(n,i,a){li(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Jf(n,a)}function x_(n,i,a,l){var u=new Fl(n,a,l),m=n.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),Il(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,m&&!Bi(n,y)){var _=li(y)<n.scrollTop;er(y,y.height+Tl(u)),_&&Jf(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&en(m,"lineWidgetAdded",m,u,typeof i=="number"?i:A(i)),u}var Cm=0,Gi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Cm};Gi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&$o(n),qn(this,"clear")){var a=this.find();a&&en(this,"clear",a.from,a.to)}for(var l=null,u=null,m=0;m<this.lines.length;++m){var y=this.lines[m],w=kl(y.markedSpans,this);n&&!this.collapsed?ji(n,A(y),"text"):n&&(w.to!=null&&(u=A(y)),w.from!=null&&(l=A(y))),y.markedSpans=dk(y.markedSpans,w),w.from==null&&this.collapsed&&!Bi(this.doc,y)&&n&&er(y,vs(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var T=Tr(this.lines[_]),B=dc(T);B>n.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=B,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&An(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&gm(n.doc)),n&&en(n,"markerCleared",n,this,l,u),i&&Ro(n),this.parent&&this.parent.clear()}},Gi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var m=this.lines[u],y=kl(m.markedSpans,this);if(y.from!=null&&(a=de(i?m:A(m),y.from),n==-1))return a;if(y.to!=null&&(l=de(i?m:A(m),y.to),n==1))return l}return a&&{from:a,to:l}},Gi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Un(l,function(){var u=i.line,m=A(i.line),y=Ff(l,m);if(y&&(Og(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Bi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=Tl(a)-w;_&&er(u,u.height+_)}en(l,"markerChanged",l,n)})},Gi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ue(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Gi.prototype.detachLine=function(n){if(this.lines.splice(ue(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},wr(Gi);function Cs(n,i,a,l,u){if(l&&l.shared)return k_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return tn(n.cm,Cs)(n,i,a,l,u);var m=new Gi(n,u),y=Ie(i,a);if(l&&Z(l,m,!1),y>0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=D("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(mg(n,i.line,i,a,m)||i.line!=a.line&&mg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");fk()}m.addToHistory&&am(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,T;if(n.iter(w,a.line+1,function(V){_&&m.collapsed&&!_.options.lineWrapping&&Tr(V)==_.display.maxLine&&(T=!0),m.collapsed&&w!=i.line&&er(V,0),hk(V,new ac(m,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),m.collapsed&&n.iter(i.line,a.line+1,function(V){Bi(n,V)&&er(V,0)}),m.clearOnEnter&&Ye(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(uk(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++Cm,m.atomic=!0),_){if(T&&(_.curOp.updateMaxLine=!0),m.collapsed)An(_,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var B=i.line;B<=a.line;B++)ji(_,B,"text");m.atomic&&gm(_.doc),en(_,"markerAdded",_,m)}return m}var Hl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Hl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();en(this,"clear")}},Hl.prototype.find=function(n,i){return this.primary.find(n,i)},wr(Hl);function k_(n,i,a,l,u){l=Z(l),l.shared=!1;var m=[Cs(n,i,a,l,u)],y=m[0],w=l.widgetNode;return Vi(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),m.push(Cs(_,it(_,i),it(_,a),l,u));for(var T=0;T<_.linked.length;++T)if(_.linked[T].isParent)return;y=xe(m)}),new Hl(m,y)}function Em(n){return n.findMarks(de(n.first,0),n.clipPos(de(n.lastLine())),function(i){return i.parent})}function __(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),m=n.clipPos(u.from),y=n.clipPos(u.to);if(Ie(m,y)){var w=Cs(n,m,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function S_(n){for(var i=function(l){var u=n[l],m=[u.primary.doc];Vi(u.primary.doc,function(_){return m.push(_)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];ue(m,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var T_=0,Ln=function(n,i,a,l,u){if(!(this instanceof Ln))return new Ln(n,i,a,l,u);a==null&&(a=0),zl.call(this,[new Dl([new ps("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var m=de(a,0);this.sel=qi(m),this.history=new Sc(null),this.id=++T_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),sd(this,{from:m,to:m,text:n}),dn(this,qi(m),ee)};Ln.prototype=ie(zl.prototype,{constructor:Ln,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=wl(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:nn(function(n){var i=de(this.first,0),a=this.first+this.size-1;Ss(this,{from:i,to:de(a,qe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Al(this.cm,0,0),dn(this,qi(i),ee)}),replaceRange:function(n,i,a,l){i=it(this,i),a=a?it(this,a):i,Ts(this,n,i,a,l)},getRange:function(n,i,a){var l=oi(this,it(this,n),it(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(ye(this,n))return qe(this,n)},getLineNumber:function(n){return A(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=qe(this,n)),Tr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return it(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:nn(function(n,i,a){dm(this,it(this,typeof n=="number"?de(n,i||0):n),null,a)}),setSelection:nn(function(n,i,a){dm(this,it(this,n),it(this,i||n),a)}),extendSelection:nn(function(n,i,a){Cc(this,it(this,n),i&&it(this,i),a)}),extendSelections:nn(function(n,i){fm(this,ng(this,n),i)}),extendSelectionsBy:nn(function(n,i){var a=be(this.sel.ranges,n);fm(this,ng(this,a),i)}),setSelections:nn(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(it(this,n[u].anchor),it(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),dn(this,Er(this.cm,l,i),a)}}),addSelection:nn(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(it(this,n),it(this,i||n))),dn(this,Er(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=oi(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=oi(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:nn(function(n,i,a){for(var l=[],u=this.sel,m=0;m<u.ranges.length;m++){var y=u.ranges[m];l[m]={from:y.from(),to:y.to(),text:this.splitLines(n[m]),origin:a}}for(var w=i&&i!="end"&&d_(this,l,i),_=l.length-1;_>=0;_--)Ss(this,l[_]);w?hm(this,w):this.cm&&ws(this.cm)}),undo:nn(function(){Lc(this,"undo")}),redo:nn(function(){Lc(this,"redo")}),undoSelection:nn(function(){Lc(this,"undo",!0)}),redoSelection:nn(function(){Lc(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 Sc(this.history),Vi(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:ks(this.history.done),undone:ks(this.history.undone)}},setHistory:function(n){var i=this.history=new Sc(this.history);i.done=ks(n.done.slice(0),null,!0),i.undone=ks(n.undone.slice(0),null,!0)},setGutterMarker:nn(function(n,i,a){return Il(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&dt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:nn(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Il(i,a,"gutter",function(){return a.gutterMarkers[n]=null,dt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!ye(this,n)||(i=n,n=qe(this,n),!n))return null}else if(i=A(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:nn(function(n,i,a){return Il(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(K(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:nn(function(n,i,a){return Il(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[u];if(m)if(a==null)l[u]=null;else{var y=m.match(K(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=m.slice(0,y.index)+(!y.index||w==m.length?"":" ")+m.slice(w)||null}else return!1;return!0})}),addLineWidget:nn(function(n,i,a){return x_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Cs(this,it(this,n),it(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=it(this,n),Cs(this,n,n,a,"bookmark")},findMarksAt:function(n){n=it(this,n);var i=[],a=qe(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=it(this,n),i=it(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.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 m=u.text.length+l;if(m>n)return i=n,!0;n-=m,++a}),it(this,de(a,i))},indexFromPos:function(n){n=it(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 Ln(wl(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 Ln(wl(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}],__(l,Em(this)),l},unlinkDoc:function(n){if(n instanceof Lt&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),S_(Em(this));break}}if(n.history==this.history){var l=[n.id];Vi(n,function(u){return l.push(u.id)},!0),n.history=new Sc(null),n.history.done=ks(this.history.done,l),n.history.undone=ks(this.history.undone,l)}},iterLinkedDocs:function(n){Vi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):dr(n)},lineSeparator:function(){return this.lineSep||`
|
|
31
|
-
`},setDirection:nn(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&h_(this.cm))})}),Ln.prototype.eachLine=Ln.prototype.iter;var Am=0;function C_(n){var i=this;if(Lm(i),!(Rt(i,n)||ai(i.display,n))){fn(n),h&&(Am=+new Date);var a=Mo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,m=Array(u),y=0,w=function(){++y==u&&tn(i,function(){a=it(i.doc,a);var ne={from:a,to:a,text:i.doc.splitLines(m.filter(function(ge){return ge!=null}).join(i.doc.lineSeparator())),origin:"paste"};Ss(i.doc,ne),hm(i.doc,qi(it(i.doc,a),it(i.doc,Ui(ne))))})()},_=function(ne,ge){if(i.options.allowDropFileTypes&&ue(i.options.allowDropFileTypes,ne.type)==-1){w();return}var we=new FileReader;we.onerror=function(){return w()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){w();return}m[ge]=Te,w()},we.readAsText(ne)},T=0;T<l.length;T++)_(l[T],T);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 B=n.dataTransfer.getData("Text");if(B){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),Ec(i.doc,qi(a,a)),V)for(var se=0;se<V.length;++se)Ts(i.doc,"",V[se].anchor,V[se].head,"drag");i.replaceSelection(B,"around","paste"),i.display.input.focus()}}catch{}}}}function E_(n,i){if(h&&(!n.state.draggingText||+new Date-Am<100)){Di(i);return}if(!(Rt(n,i)||ai(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),C&&a.parentNode.removeChild(a)}}function A_(n,i){var a=Mo(n,i);if(a){var l=document.createDocumentFragment();Gf(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),S(n.display.dragCursor,l)}}function Lm(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Mm(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 m=0;m<a.length;m++)n(a[m])})}}var Nm=!1;function L_(){Nm||(M_(),Nm=!0)}function M_(){var n;Ye(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Mm(N_)},100))}),Ye(window,"blur",function(){return Mm(bs)})}function N_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Ki={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++)Ki[Bl+48]=Ki[Bl+96]=String(Bl);for(var Mc=65;Mc<=90;Mc++)Ki[Mc]=String.fromCharCode(Mc);for(var jl=1;jl<=12;jl++)Ki[jl+111]=Ki[jl+63235]="F"+jl;var ui={};ui.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"},ui.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"},ui.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"},ui.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"]},ui.default=I?ui.macDefault:ui.pcDefault;function O_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,m,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))m=!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),m&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function P_(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(" "),O_),m=0;m<u.length;m++){var y=void 0,w=void 0;m==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,m+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 T in i)n[T]=i[T];return n}function Es(n,i,a,l){i=Nc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Es(n,i.fallthrough,a,l);for(var m=0;m<i.fallthrough.length;m++){var y=Es(n,i.fallthrough[m],a,l);if(y)return y}}}function Om(n){var i=typeof n=="string"?n:Ki[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Pm(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(J?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(J?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function $m(n,i){if(C&&n.keyCode==34&&n.char)return!1;var a=Ki[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Pm(a,n,i))}function Nc(n){return typeof n=="string"?ui[n]:n}function As(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var m=i(a[u]);l.length&&Ie(m.from,xe(l).to)<=0;){var y=l.pop();if(Ie(y.from,m.from)<0){m.from=y.from;break}}l.push(m)}Un(n,function(){for(var w=l.length-1;w>=0;w--)Ts(n.doc,"",l[w].from,l[w].to,"+delete");ws(n)})}function ud(n,i,a){var l=Jt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function fd(n,i,a){var l=ud(n,i.ch,a);return l==null?null:new de(i.line,l,a<0?"after":"before")}function dd(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=at(a,i.doc.direction);if(m){var y=u<0?xe(m):m[0],w=u<0==(y.level==1),_=w?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var B=ms(i,a);T=u<0?a.text.length-1:0;var V=Vr(i,B,T).top;T=qt(function(se){return Vr(i,B,se).top==V},u<0==(y.level==1)?y.from:y.to-1,T),_=="before"&&(T=ud(a,T,1))}else T=u<0?y.to:y.from;return new de(l,T,_)}}return new de(l,u<0?a.text.length:0,u<0?"before":"after")}function $_(n,i,a,l){var u=at(i,n.doc.direction);if(!u)return fd(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 m=Ht(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return fd(i,a,l);var w=function(Ne,De){return ud(i,Ne instanceof de?Ne.ch:Ne,De)},_,T=function(Ne){return n.options.lineWrapping?(_=_||ms(n,i),Fg(n,i,_,Ne)):{begin:0,end:i.text.length}},B=T(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var V=y.level==1==l<0,se=w(a,V?1:-1);if(se!=null&&(V?se<=y.to&&se<=B.end:se>=y.from&&se>=B.begin)){var ne=V?"before":"after";return new de(a.line,se,ne)}}var ge=function(Ne,De,Oe){for(var Fe=function(Tt,rn){return rn?new de(a.line,w(Tt,1),"before"):new de(a.line,Tt,"after")};Ne>=0&&Ne<u.length;Ne+=De){var Ze=u[Ne],Ge=De>0==(Ze.level!=1),lt=Ge?Oe.begin:w(Oe.end,-1);if(Ze.from<=lt&<<Ze.to||(lt=Ge?Ze.from:w(Ze.to,-1),Oe.begin<=lt&<<Oe.end))return Fe(lt,Ge)}},we=ge(m+l,l,B);if(we)return we;var Te=l>0?B.end:w(B.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=ge(l>0?0:u.length-1,l,T(Te)),we)?we:null}var Wl={selectAll:ym,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),ee)},killLine:function(n){return As(n,function(i){if(i.empty()){var a=qe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:de(i.head.line+1,0)}:{from:i.head,to:de(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return As(n,function(i){return{from:de(i.from().line,0),to:it(n.doc,de(i.to().line+1,0))}})},delLineLeft:function(n){return As(n,function(i){return{from:de(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return As(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 As(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(de(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(de(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Rm(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Im(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return R_(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")},pe)},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")},pe)},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/)?Im(n,i.head):l},pe)},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 m=a[u].from(),y=re(n.getLine(m.line),m.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 Un(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,m=qe(n.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new de(u.line,u.ch-1)),u.ch>0)u=new de(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),de(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=qe(n.doc,u.line-1).text;y&&(u=new de(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),de(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Un(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);ws(n)})},openLine:function(n){return n.replaceSelection(`
|
|
32
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Rm(n,i){var a=qe(n.doc,i),l=Tr(a);return l!=a&&(i=A(l)),dd(!0,n,l,i,1)}function R_(n,i){var a=qe(n.doc,i),l=yk(a);return l!=a&&(i=A(l)),dd(!0,n,a,i,-1)}function Im(n,i){var a=Rm(n,i.line),l=qe(n.doc,a.line),u=at(l,n.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=m&&i.ch;return de(a.line,y?0:m,a.sticky)}return a}function Oc(n,i,a){if(typeof i=="string"&&(i=Wl[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 I_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=Es(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&Es(i,n.options.extraKeys,a,n)||Es(i,n.options.keyMap,a,n)}var D_=new le;function ql(n,i,a,l){var u=n.state.keySeq;if(u){if(Om(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:D_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Dm(n,u+" "+i,a,l))return!0}return Dm(n,i,a,l)}function Dm(n,i,a,l){var u=I_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&en(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(fn(a),Kf(n)),!!u}function zm(n,i){var a=$m(i,!0);return a?i.shiftKey&&!n.state.keySeq?ql(n,"Shift-"+a,i,function(l){return Oc(n,l,!0)})||ql(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Oc(n,l)}):ql(n,a,i,function(l){return Oc(n,l)}):!1}function z_(n,i,a){return ql(n,"'"+a+"'",i,function(l){return Oc(n,l,!0)})}var hd=null;function Fm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ce(Ue(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=zm(i,n);C&&(hd=l?a:null,!l&&a==88&&!sc&&(I?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!I&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&F_(i)}}function F_(n){var i=n.display.lineDiv;_e(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(P(i,"CodeMirror-crosshair"),un(document,"keyup",a),un(document,"mouseover",a))}Ye(document,"keyup",a),Ye(document,"mouseover",a)}function Hm(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function Bm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ai(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||I&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(C&&a==hd){hd=null,fn(n);return}if(!(C&&(!n.which||n.which<10)&&zm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(z_(i,n,u)||i.display.input.onKeyPress(n))}}}var H_=400,pd=function(n,i,a){this.time=n,this.pos=i,this.button=a};pd.prototype.compare=function(n,i,a){return this.time+H_>n&&Ie(i,this.pos)==0&&a==this.button};var Ul,Vl;function B_(n,i){var a=+new Date;return Vl&&Vl.compare(a,n,i)?(Ul=Vl=null,"triple"):Ul&&Ul.compare(a,n,i)?(Vl=new pd(a,n,i),Ul=null,"double"):(Ul=new pd(a,n,i),Vl=null,"single")}function jm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ai(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!gd(i,n)){var l=Mo(i,n),u=xr(n),m=l?B_(l,u):"single";$e(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&j_(i,u,l,m,n))&&(u==1?l?q_(i,l,m,n):vl(n)==a.scroller&&fn(n):u==2?(l&&Cc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):Xf(i)))}}}function j_(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,ql(n,Pm(m,u),u,function(y){if(typeof y=="string"&&(y=Wl[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 W_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=q?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"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=I?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(I?a.altKey:a.ctrlKey)),u}function q_(n,i,a,l){h?setTimeout(H(Wg,n),0):n.curOp.focus=ce(Ue(n));var u=W_(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&Ef&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?U_(n,l,i,u):V_(n,l,i,u)}function U_(n,i,a,l){var u=n.display,m=!1,y=tn(n,function(T){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Xf(n)),un(u.wrapper.ownerDocument,"mouseup",y),un(u.wrapper.ownerDocument,"mousemove",w),un(u.scroller,"dragstart",_),un(u.scroller,"drop",y),m||(fn(T),l.addNew||Cc(n.doc,a,null,null,l.extend),g&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(T){m=m||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},_=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Ye(u.wrapper.ownerDocument,"mouseup",y),Ye(u.wrapper.ownerDocument,"mousemove",w),Ye(u.scroller,"dragstart",_),Ye(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Wm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(de(i.line,0),it(n.doc,de(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function V_(n,i,a,l){h&&Xf(n);var u=n.display,m=n.doc;fn(i);var y,w,_=m.sel,T=_.ranges;if(l.addNew&&!l.extend?(w=m.sel.contains(a),w>-1?y=T[w]:y=new gt(a,a)):(y=m.sel.primary(),w=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=Mo(n,i,!0,!0),w=-1;else{var B=Wm(n,a,l.unit);l.extend?y=ad(y,B.anchor,B.head,l.extend):y=B}l.addNew?w==-1?(w=T.length,dn(m,Er(n,T.concat([y]),w),{scroll:!1,origin:"*mouse"})):T.length>1&&T[w].empty()&&l.unit=="char"&&!l.extend?(dn(m,Er(n,T.slice(0,w).concat(T.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=m.sel):cd(m,w,y,he):(w=0,dn(m,new tr([y],0),he),_=m.sel);var V=a;function se(Oe){if(Ie(V,Oe)!=0)if(V=Oe,l.unit=="rectangle"){for(var Fe=[],Ze=n.options.tabSize,Ge=re(qe(m,a.line).text,a.ch,Ze),lt=re(qe(m,Oe.line).text,Oe.ch,Ze),Tt=Math.min(Ge,lt),rn=Math.max(Ge,lt),Ot=Math.min(a.line,Oe.line),Vn=Math.min(n.lastLine(),Math.max(a.line,Oe.line));Ot<=Vn;Ot++){var Mn=qe(m,Ot).text,Ut=me(Mn,Tt,Ze);Tt==rn?Fe.push(new gt(de(Ot,Ut),de(Ot,Ut))):Mn.length>Ut&&Fe.push(new gt(de(Ot,Ut),de(Ot,me(Mn,rn,Ze))))}Fe.length||Fe.push(new gt(a,a)),dn(m,Er(n,_.ranges.slice(0,w).concat(Fe),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Oe)}else{var Nn=y,ln=Wm(n,Oe,l.unit),Xt=Nn.anchor,Vt;Ie(ln.anchor,Xt)>0?(Vt=ln.head,Xt=hs(Nn.from(),ln.anchor)):(Vt=ln.anchor,Xt=En(Nn.to(),ln.head));var Dt=_.ranges.slice(0);Dt[w]=G_(n,new gt(it(m,Xt),Vt)),dn(m,Er(n,Dt,w),he)}}var ne=u.wrapper.getBoundingClientRect(),ge=0;function we(Oe){var Fe=++ge,Ze=Mo(n,Oe,!0,l.unit=="rectangle");if(Ze)if(Ie(Ze,V)!=0){n.curOp.focus=ce(Ue(n)),se(Ze);var Ge=wc(u,m);(Ze.line>=Ge.to||Ze.line<Ge.from)&&setTimeout(tn(n,function(){ge==Fe&&we(Oe)}),150)}else{var lt=Oe.clientY<ne.top?-20:Oe.clientY>ne.bottom?20:0;lt&&setTimeout(tn(n,function(){ge==Fe&&(u.scroller.scrollTop+=lt,we(Oe))}),50)}}function Te(Oe){n.state.selectingText=!1,ge=1/0,Oe&&(fn(Oe),u.input.focus()),un(u.wrapper.ownerDocument,"mousemove",Ne),un(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Ne=tn(n,function(Oe){Oe.buttons===0||!xr(Oe)?Te(Oe):we(Oe)}),De=tn(n,Te);n.state.selectingText=De,Ye(u.wrapper.ownerDocument,"mousemove",Ne),Ye(u.wrapper.ownerDocument,"mouseup",De)}function G_(n,i){var a=i.anchor,l=i.head,u=qe(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=at(u);if(!m)return i;var y=Ht(m,a.ch,a.sticky),w=m[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||_==m.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var B=Ht(m,l.ch,l.sticky),V=B-y||(l.ch-a.ch)*(w.level==1?-1:1);B==_-1||B==_?T=V<0:T=V>0}var se=m[_+(T?-1:0)],ne=T==(se.level==1),ge=ne?se.from:se.to,we=ne?"after":"before";return a.ch==ge&&a.sticky==we?i:new gt(new de(a.line,ge,we),l)}function qm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&fn(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(m>w.bottom||!qn(n,a))return Cn(i);m-=w.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var T=y.gutters.childNodes[_];if(T&&T.getBoundingClientRect().right>=u){var B=U(n.doc,m),V=n.display.gutterSpecs[_];return $t(n,a,n,B,V.className,i),Cn(i)}}}function gd(n,i){return qm(n,i,"gutterClick",!0)}function Um(n,i){ai(n.display,i)||K_(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function K_(n,i){return qn(n,"gutterContextMenu")?qm(n,i,"gutterContextMenu",!1):!1}function Vm(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Cl(n)}var Ls={toString:function(){return"CodeMirror.Init"}},Gm={},Pc={};function X_(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(w,_,T){T!=Ls&&m(w,_,T)}:m)}n.defineOption=a,n.Init=Ls,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,od(l)},!0),a("indentUnit",2,od,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){$l(l),Cl(l),An(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(_){for(var T=0;;){var B=_.text.indexOf(u,T);if(B==-1)break;T=B+u.length,m.push(de(y,B))}y++});for(var w=m.length-1;w>=0;w--)Ts(l.doc,u,m[w],de(m[w].line,m[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,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=Ls&&l.refresh()}),a("specialCharPlaceholder",Sk,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!Y),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Vm(l),Pl(l)},!0),a("keyMap","default",function(l,u,m){var y=Nc(u),w=m!=Ls&&Nc(m);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Z_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=rd(u,l.options.lineNumbers),Pl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Uf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return xs(l)},!0),a("scrollbarStyle","native",function(l){Xg(l),xs(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=rd(l.options.gutters,u),Pl(l)},!0),a("firstLineNumber",1,Pl,!0),a("lineNumberFormatter",function(l){return l},Pl,!0),a("showCursorWhenSelecting",!1,El,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(bs(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,Y_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,El,!0),a("singleCursorHeightPerLine",!0,El,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,$l,!0),a("addModeClass",!1,$l,!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,$l,!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 Y_(n,i,a){var l=a&&a!=Ls;if(!i!=!l){var u=n.display.dragFunctions,m=i?Ye:un;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function Z_(n){n.options.lineWrapping?(_e(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(P(n.display.wrapper,"CodeMirror-wrap"),Rf(n)),Vf(n),An(n),Cl(n),setTimeout(function(){return xs(n)},100)}function Lt(n,i){var a=this;if(!(this instanceof Lt))return new Lt(n,i);this.options=i=i?Z(i):{},Z(Gm,i,!1);var l=i.value;typeof l=="string"?l=new Ln(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Lt.inputStyles[i.inputStyle](this),m=this.display=new u_(n,l,u,i);m.wrapper.CodeMirror=this,Vm(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!E&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),J_(this),L_(),$o(this),this.curOp.forceUpdate=!0,om(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Yf(a)},20):bs(this);for(var y in Pc)Pc.hasOwnProperty(y)&&Pc[y](this,i[y],Ls);Jg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<md.length;++w)md[w](this);Ro(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Lt.defaults=Gm,Lt.optionHandlers=Pc;function J_(n){var i=n.display;Ye(i.scroller,"mousedown",tn(n,jm)),h&&p<11?Ye(i.scroller,"dblclick",tn(n,function(_){if(!Rt(n,_)){var T=Mo(n,_);if(!(!T||gd(n,_)||ai(n.display,_))){fn(_);var B=n.findWordAt(T);Cc(n.doc,B.anchor,B.head)}}})):Ye(i.scroller,"dblclick",function(_){return Rt(n,_)||fn(_)}),Ye(i.scroller,"contextmenu",function(_){return Um(n,_)}),Ye(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||Um(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 m(_){if(_.touches.length!=1)return!1;var T=_.touches[0];return T.radiusX<=1&&T.radiusY<=1}function y(_,T){if(T.left==null)return!0;var B=T.left-_.left,V=T.top-_.top;return B*B+V*V>400}Ye(i.scroller,"touchstart",function(_){if(!Rt(n,_)&&!m(_)&&!gd(n,_)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Ye(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ye(i.scroller,"touchend",function(_){var T=i.activeTouch;if(T&&!ai(i,_)&&T.left!=null&&!T.moved&&new Date-T.start<300){var B=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new gt(B,B):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(B):V=new gt(de(B.line,0),it(n.doc,de(B.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),fn(_)}u()}),Ye(i.scroller,"touchcancel",u),Ye(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ll(n,i.scroller.scrollTop),Oo(n,i.scroller.scrollLeft,!0),$t(n,"scroll",n))}),Ye(i.scroller,"mousewheel",function(_){return tm(n,_)}),Ye(i.scroller,"DOMMouseScroll",function(_){return tm(n,_)}),Ye(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Rt(n,_)||Di(_)},over:function(_){Rt(n,_)||(A_(n,_),Di(_))},start:function(_){return E_(n,_)},drop:tn(n,C_),leave:function(_){Rt(n,_)||Lm(n)}};var w=i.input.getField();Ye(w,"keyup",function(_){return Hm.call(n,_)}),Ye(w,"keydown",tn(n,Fm)),Ye(w,"keypress",tn(n,Bm)),Ye(w,"focus",function(_){return Yf(n,_)}),Ye(w,"blur",function(_){return bs(n,_)})}var md=[];Lt.defineInitHook=function(n){return md.push(n)};function Gl(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=xl(n,i).state:a="prev");var y=n.options.tabSize,w=qe(u,i),_=re(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var T=w.text.match(/^\s*/)[0],B;if(!l&&!/\S/.test(w.text))B=0,a="not";else if(a=="smart"&&(B=u.mode.indent(m,w.text.slice(T.length),w.text),B==j||B>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?B=re(qe(u,i-1).text,null,y):B=0:a=="add"?B=_+n.options.indentUnit:a=="subtract"?B=_-n.options.indentUnit:typeof a=="number"&&(B=_+a),B=Math.max(0,B);var V="",se=0;if(n.options.indentWithTabs)for(var ne=Math.floor(B/y);ne;--ne)se+=y,V+=" ";if(se<B&&(V+=Ee(B-se)),V!=T)return Ts(u,V,de(i,0),de(i,T.length),"+input"),w.stateAfter=null,!0;for(var ge=0;ge<u.sel.ranges.length;ge++){var we=u.sel.ranges[ge];if(we.head.line==i&&we.head.ch<T.length){var Te=de(i,T.length);cd(u,ge,new gt(Te,Te));break}}}var Ar=null;function $c(n){Ar=n}function vd(n,i,a,l,u){var m=n.doc;n.display.shift=!1,l||(l=m.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,_=dr(i),T=null;if(w&&l.ranges.length>1)if(Ar&&Ar.text.join(`
|
|
33
|
-
`)==i){if(l.ranges.length%Ar.text.length==0){T=[];for(var B=0;B<Ar.text.length;B++)T.push(m.splitLines(Ar.text[B]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(T=be(_,function(Ne){return[Ne]}));for(var V=n.curOp.updateInput,se=l.ranges.length-1;se>=0;se--){var ne=l.ranges[se],ge=ne.from(),we=ne.to();ne.empty()&&(a&&a>0?ge=de(ge.line,ge.ch-a):n.state.overwrite&&!w?we=de(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(_).length)):w&&Ar&&Ar.lineWise&&Ar.text.join(`
|
|
34
|
-
`)==_.join(`
|
|
35
|
-
`)&&(ge=we=de(ge.line,0)));var Te={from:ge,to:we,text:T?T[se%T.length]:_,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};Ss(n.doc,Te),en(n,"inputRead",n,Te)}i&&!w&&Xm(n,i),ws(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Km(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Un(i,function(){return vd(i,a,0,null,"paste")}),!0}function Xm(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 m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var w=0;w<m.electricChars.length;w++)if(i.indexOf(m.electricChars.charAt(w))>-1){y=Gl(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Gl(n,u.head.line,"smart"));y&&en(n,"electricInput",n,u.head.line)}}}function Ym(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,m={anchor:de(u,0),head:de(u+1,0)};a.push(m),i.push(n.getRange(m.anchor,m.head))}return{text:i,ranges:a}}function yd(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function Zm(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?n.style.width="1000px":n.setAttribute("wrap","off"),$&&(n.style.border="1px solid black"),i}function Q_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){$e(this).focus(),this.display.input.focus()},setOption:function(l,u){var m=this.options,y=m[l];m[l]==u&&l!="mode"||(m[l]=u,i.hasOwnProperty(l)&&tn(this,i[l])(this,u,y),$t(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](Nc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==l||u[m].name==l)return u.splice(m,1),!0},addOverlay:wn(function(l,u){var m=l.token?l:n.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:m,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,An(this)}),removeOverlay:wn(function(l){for(var u=this.state.overlays,m=0;m<u.length;++m){var y=u[m].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(m,1),this.state.modeGen++,An(this);return}}}),indentLine:wn(function(l,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),ye(this.doc,l)&&Gl(this,l,u,m)}),indentSelection:wn(function(l){for(var u=this.doc.sel.ranges,m=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>m&&(Gl(this,w.head.line,l,!0),m=w.head.line,y==this.doc.sel.primIndex&&ws(this));else{var _=w.from(),T=w.to(),B=Math.max(m,_.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=B;V<m;++V)Gl(this,V,l);var se=this.doc.sel.ranges;_.ch==0&&u.length==se.length&&se[y].from().ch>0&&cd(this.doc,y,new gt(_,se[y].to()),ee)}}}),getTokenAt:function(l,u){return lg(this,l,u)},getLineTokens:function(l,u){return lg(this,de(l),u,!0)},getTokenTypeAt:function(l){l=it(this.doc,l);var u=ig(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=w)y=T;else if(u[T*2+1]<w)m=T+1;else{_=u[T*2+2];break}}var B=_?_.indexOf("overlay "):-1;return B<0?_:B==0?null:_.slice(0,B-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 m=[];if(!a.hasOwnProperty(u))return m;var y=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&m.push(y[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var T=y[w[u][_]];T&&m.push(T)}else w.helperType&&y[w.helperType]?m.push(y[w.helperType]):y[w.name]&&m.push(y[w.name]);for(var B=0;B<y._global.length;B++){var V=y._global[B];V.pred(w,this)&&ue(m,V.val)==-1&&m.push(V.val)}return m},getStateAfter:function(l,u){var m=this.doc;return l=tg(m,l??m.first+m.size-1),xl(this,l+1,u).state},cursorCoords:function(l,u){var m,y=this.doc.sel.primary();return l==null?m=y.head:typeof l=="object"?m=it(this.doc,l):m=l?y.from():y.to(),Cr(this,m,u||"page")},charCoords:function(l,u){return mc(this,it(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Ig(this,l,u||"page"),jf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Ig(this,{top:l,left:0},u||"page").top,U(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,m){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=qe(this.doc,l)}else w=l;return gc(this,w,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-li(w):0)},defaultTextHeight:function(){return vs(this.display)},defaultCharWidth:function(){return ys(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,w){var _=this.display;l=Cr(this,it(this.doc,l));var T=l.bottom,B=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(_.wrapper.clientHeight,this.doc.height),se=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),B+u.offsetWidth>se&&(B=se-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",w=="right"?(B=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?B=0:w=="middle"&&(B=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=B+"px"),m&&Yk(this,{left:B,top:T,right:B+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:wn(Fm),triggerOnKeyPress:wn(Bm),triggerOnKeyUp:Hm,triggerOnMouseDown:wn(jm),execCommand:function(l){if(Wl.hasOwnProperty(l))return Wl[l].call(null,this)},triggerElectric:wn(function(l){Xm(this,l)}),findPosH:function(l,u,m,y){var w=1;u<0&&(w=-1,u=-u);for(var _=it(this.doc,l),T=0;T<u&&(_=bd(this.doc,_,w,m,y),!_.hitSide);++T);return _},moveH:wn(function(l,u){var m=this;this.extendSelectionsBy(function(y){return m.display.shift||m.doc.extend||y.empty()?bd(m.doc,y.head,l,u,m.options.rtlMoveVisually):l<0?y.from():y.to()},pe)}),deleteH:wn(function(l,u){var m=this.doc.sel,y=this.doc;m.somethingSelected()?y.replaceSelection("",null,"+delete"):As(this,function(w){var _=bd(y,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,m,y){var w=1,_=y;u<0&&(w=-1,u=-u);for(var T=it(this.doc,l),B=0;B<u;++B){var V=Cr(this,T,"div");if(_==null?_=V.left:V.left=_,T=Jm(this,V,w,m),T.hitSide)break}return T},moveV:wn(function(l,u){var m=this,y=this.doc,w=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(B){if(_)return l<0?B.from():B.to();var V=Cr(m,B.head,"div");B.goalColumn!=null&&(V.left=B.goalColumn),w.push(V.left);var se=Jm(m,V,l,u);return u=="page"&&B==y.sel.primary()&&Jf(m,mc(m,se,"div").top-V.top),se},pe),w.length)for(var T=0;T<y.sel.ranges.length;T++)y.sel.ranges[T].goalColumn=w[T]}),findWordAt:function(l){var u=this.doc,m=qe(u,l.line).text,y=l.ch,w=l.ch;if(m){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==m.length)&&y?--y:++w;for(var T=m.charAt(y),B=ct(T,_)?function(V){return ct(V,_)}:/\s/.test(T)?function(V){return/\s/.test(V)}:function(V){return!/\s/.test(V)&&!ct(V)};y>0&&B(m.charAt(y-1));)--y;for(;w<m.length&&B(m.charAt(w));)++w}return new gt(de(l.line,y),de(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),$t(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ce(Ue(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:wn(function(l,u){Al(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Ur(this)-this.display.barHeight,width:l.scrollWidth-Ur(this)-this.display.barWidth,clientHeight:zf(this),clientWidth:Ao(this)}},scrollIntoView:wn(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:de(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?Zk(this,l):Ug(this,l.from,l.to,l.margin)}),setSize:wn(function(l,u){var m=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&&Pg(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var T=0;T<_.widgets.length;T++)if(_.widgets[T].noHScroll){ji(m,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,$t(this,"refresh",this)}),operation:function(l){return Un(this,l)},startOperation:function(){return $o(this)},endOperation:function(){return Ro(this)},refresh:wn(function(){var l=this.display.cachedTextHeight;An(this),this.curOp.forceUpdate=!0,Cl(this),Al(this,this.doc.scrollLeft,this.doc.scrollTop),td(this.display),(l==null||Math.abs(l-vs(this.display))>.5||this.options.lineWrapping)&&Vf(this),$t(this,"refresh",this)}),swapDoc:wn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),om(this,l),Cl(this),this.display.input.reset(),Al(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,en(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}},wr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function bd(n,i,a,l,u){var m=i,y=a,w=qe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+_;return De<n.first||De>=n.first+n.size?!1:(i=new de(De,i.ch,i.sticky),w=qe(n,De))}function B(De){var Oe;if(l=="codepoint"){var Fe=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Fe))Oe=null;else{var Ze=a>0?Fe>=55296&&Fe<56320:Fe>=56320&&Fe<57343;Oe=new de(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(Ze?2:1))),-a)}}else u?Oe=$_(n.cm,w,i,a):Oe=fd(w,i,a);if(Oe==null)if(!De&&T())i=dd(u,n.cm,w,i.line,_);else return!1;else i=Oe;return!0}if(l=="char"||l=="codepoint")B();else if(l=="column")B(!0);else if(l=="word"||l=="group")for(var V=null,se=l=="group",ne=n.cm&&n.cm.getHelper(i,"wordChars"),ge=!0;!(a<0&&!B(!ge));ge=!1){var we=w.text.charAt(i.ch)||`
|
|
36
|
-
`,Te=ct(we,ne)?"w":se&&we==`
|
|
37
|
-
`?"n":!se||/\s/.test(we)?null:"p";if(se&&!ge&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,B(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!B(!ge))break}var Ne=Ac(n,i,m,y,!0);return pt(m,Ne)&&(Ne.hitSide=!0),Ne}function Jm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,$e(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*vs(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 T;T=jf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var wt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};wt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,yd(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Ye(u,"paste",function(w){!m(w)||Rt(l,w)||Km(w,l)||p<=11&&setTimeout(tn(l,function(){return i.updateFromDOM()}),20)}),Ye(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Ye(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Ye(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Ye(u,"touchstart",function(){return a.forceCompositionEnd()}),Ye(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!m(w)||Rt(l,w))){if(l.somethingSelected())$c({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=Ym(l);$c({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,ee),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var T=Ar.text.join(`
|
|
38
|
-
`);if(w.clipboardData.setData("Text",T),w.clipboardData.getData("Text")==T){w.preventDefault();return}}var B=Zm(),V=B.firstChild;yd(V),l.display.lineSpace.insertBefore(B,l.display.lineSpace.firstChild),V.value=Ar.text.join(`
|
|
39
|
-
`);var se=ce(He(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(B),se.focus(),se==u&&a.showPrimarySelection()},50)}}Ye(u,"copy",y),Ye(u,"cut",y)},wt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},wt.prototype.prepareSelection=function(){var n=jg(this.cm,!1);return n.focus=ce(He(this.div))==this.div,n},wt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},wt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},wt.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 m=Rc(i,n.anchorNode,n.anchorOffset),y=Rc(i,n.focusNode,n.focusOffset);if(!(m&&!m.bad&&y&&!y.bad&&Ie(hs(m,y),l)==0&&Ie(En(m,y),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&Qm(i,l)||{node:w[0].measure.map[2],offset:0},T=u.line<i.display.viewTo&&Qm(i,u);if(!T){var B=w[w.length-1].measure,V=B.maps?B.maps[B.maps.length-1]:B.map;T={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!_||!T){n.removeAllRanges();return}var se=n.rangeCount&&n.getRangeAt(0),ne;try{ne=R(_.node,_.offset,T.offset,T.node)}catch{}ne&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),ne.collapsed||(n.removeAllRanges(),n.addRange(ne))):(n.removeAllRanges(),n.addRange(ne)),se&&n.anchorNode==null?n.addRange(se):s&&this.startGracePeriod()),this.rememberSelection()}},wt.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)},wt.prototype.showMultipleSelections=function(n){S(this.cm.display.cursorDiv,n.cursors),S(this.cm.display.selectionDiv,n.selection)},wt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},wt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ae(this.div,i)},wt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ce(He(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},wt.prototype.blur=function(){this.div.blur()},wt.prototype.getField=function(){return this.div},wt.prototype.supportsTouch=function(){return!0},wt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Un(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)},wt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},wt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(F&&b&&this.cm.display.gutterSpecs.length&&eS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Rc(i,n.anchorNode,n.anchorOffset),l=Rc(i,n.focusNode,n.focusOffset);a&&l&&Un(i,function(){dn(i.doc,qi(a,l),ee),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},wt.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=de(l.line-1,qe(n.doc,l.line-1).length)),u.ch==qe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=de(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var m,y,w;l.line==i.viewFrom||(m=No(n,l.line))==0?(y=A(i.view[0].line),w=i.view[0].node):(y=A(i.view[m].line),w=i.view[m-1].node.nextSibling);var _=No(n,u.line),T,B;if(_==i.view.length-1?(T=i.viewTo-1,B=i.lineDiv.lastChild):(T=A(i.view[_+1].line)-1,B=i.view[_+1].node.previousSibling),!w)return!1;for(var V=n.doc.splitLines(tS(n,w,B,y,T)),se=oi(n.doc,de(y,0),de(T,qe(n.doc,T).text.length));V.length>1&&se.length>1;)if(xe(V)==xe(se))V.pop(),se.pop(),T--;else if(V[0]==se[0])V.shift(),se.shift(),y++;else break;for(var ne=0,ge=0,we=V[0],Te=se[0],Ne=Math.min(we.length,Te.length);ne<Ne&&we.charCodeAt(ne)==Te.charCodeAt(ne);)++ne;for(var De=xe(V),Oe=xe(se),Fe=Math.min(De.length-(V.length==1?ne:0),Oe.length-(se.length==1?ne:0));ge<Fe&&De.charCodeAt(De.length-ge-1)==Oe.charCodeAt(Oe.length-ge-1);)++ge;if(V.length==1&&se.length==1&&y==l.line)for(;ne&&ne>l.ch&&De.charCodeAt(De.length-ge-1)==Oe.charCodeAt(Oe.length-ge-1);)ne--,ge++;V[V.length-1]=De.slice(0,De.length-ge).replace(/^\u200b+/,""),V[0]=V[0].slice(ne).replace(/\u200b+$/,"");var Ze=de(y,ne),Ge=de(T,se.length?xe(se).length-ge:0);if(V.length>1||V[0]||Ie(Ze,Ge))return Ts(n.doc,V,Ze,Ge,"+input"),!0},wt.prototype.ensurePolled=function(){this.forceCompositionEnd()},wt.prototype.reset=function(){this.forceCompositionEnd()},wt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},wt.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))},wt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Un(this.cm,function(){return An(n.cm)})},wt.prototype.setUneditable=function(n){n.contentEditable="false"},wt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||tn(this.cm,vd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},wt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},wt.prototype.onContextMenu=function(){},wt.prototype.resetPosition=function(){},wt.prototype.needsContentAttribute=!0;function Qm(n,i){var a=Ff(n,i.line);if(!a||a.hidden)return null;var l=qe(n.doc,i.line),u=Ag(a,l,i.line),m=at(l,n.doc.direction),y="left";if(m){var w=Ht(m,i.ch);y=w%2?"right":"left"}var _=Ng(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function eS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Ms(n,i){return i&&(n.bad=!0),n}function tS(n,i,a,l,u){var m="",y=!1,w=n.doc.lineSeparator(),_=!1;function T(ne){return function(ge){return ge.id==ne}}function B(){y&&(m+=w,_&&(m+=w),y=_=!1)}function V(ne){ne&&(B(),m+=ne)}function se(ne){if(ne.nodeType==1){var ge=ne.getAttribute("cm-text");if(ge){V(ge);return}var we=ne.getAttribute("cm-marker"),Te;if(we){var Ne=n.findMarks(de(l,0),de(u+1,0),T(+we));Ne.length&&(Te=Ne[0].find(0))&&V(oi(n.doc,Te.from,Te.to).join(w));return}if(ne.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(ne.nodeName);if(!/^br$/i.test(ne.nodeName)&&ne.textContent.length==0)return;De&&B();for(var Oe=0;Oe<ne.childNodes.length;Oe++)se(ne.childNodes[Oe]);/^(pre|p)$/i.test(ne.nodeName)&&(_=!0),De&&(y=!0)}else ne.nodeType==3&&V(ne.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(i),i!=a;)i=i.nextSibling,_=!1;return m}function Rc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return Ms(n.clipPos(de(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 m=n.display.view[u];if(m.node==l)return nS(m,i,a)}}function nS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ae(l,i))return Ms(de(A(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var m=n.rest?xe(n.rest):n.line;return Ms(de(A(m),m.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,T=_.maps;function B(Te,Ne,De){for(var Oe=-1;Oe<(T?T.length:0);Oe++)for(var Fe=Oe<0?_.map:T[Oe],Ze=0;Ze<Fe.length;Ze+=3){var Ge=Fe[Ze+2];if(Ge==Te||Ge==Ne){var lt=A(Oe<0?n.line:n.rest[Oe]),Tt=Fe[Ze]+De;return(De<0||Ge!=Te)&&(Tt=Fe[Ze+(De?1:0)]),de(lt,Tt)}}}var V=B(y,w,a);if(V)return Ms(V,u);for(var se=w.nextSibling,ne=y?y.nodeValue.length-a:0;se;se=se.nextSibling){if(V=B(se,se.firstChild,0),V)return Ms(de(V.line,V.ch-ne),u);ne+=se.textContent.length}for(var ge=w.previousSibling,we=a;ge;ge=ge.previousSibling){if(V=B(ge,ge.firstChild,-1),V)return Ms(de(V.line,V.ch+we),u);we+=ge.textContent.length}}var Bt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Bt.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"),Ye(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Ye(u,"paste",function(y){Rt(l,y)||Km(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!Rt(l,y)){if(l.somethingSelected())$c({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=Ym(l);$c({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,ee):(a.prevInput="",u.value=w.text.join(`
|
|
40
|
-
`),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Ye(u,"cut",m),Ye(u,"copy",m),Ye(n.scroller,"paste",function(y){if(!(ai(n,y)||Rt(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)}}),Ye(n.lineSpace,"selectstart",function(y){ai(n,y)||fn(y)}),Ye(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"})}}),Ye(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Bt.prototype.createField=function(n){this.wrapper=Zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;yd(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Bt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Bt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=jg(n);if(n.options.moveInputWithCursor){var u=Cr(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},Bt.prototype.showSelection=function(n){var i=this.cm,a=i.display;S(a.cursorDiv,n.cursors),S(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Bt.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&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Bt.prototype.getField=function(){return this.textarea},Bt.prototype.supportsTouch=function(){return!1},Bt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||ce(He(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Bt.prototype.blur=function(){this.textarea.blur()},Bt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bt.prototype.receivedFocus=function(){this.slowPoll()},Bt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Bt.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)},Bt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Fi(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||I&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l=""),m==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 Un(i,function(){vd(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
41
|
-
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Bt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Bt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=Mo(a,n),y=l.scroller.scrollTop;if(!m||C)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(m)==-1&&tn(a,dn)(a.doc,qi(m),ee);var _=u.style.cssText,T=i.wrapper.style.cssText,B=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
42
|
-
top: `+(n.clientY-B.top-5)+"px; left: "+(n.clientX-B.left-5)+`px;
|
|
43
|
-
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
44
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=ne,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te=""+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function ne(){if(i.contextMenuPending==ne&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?tn(a,ym)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){Di(n);var ge=function(){un(window,"mouseup",ge),setTimeout(ne,20)};Ye(window,"mouseup",ge)}else setTimeout(ne,50)},Bt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Bt.prototype.setUneditable=function(){},Bt.prototype.needsContentAttribute=!1;function rS(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=ce(He(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Ye(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.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&&(un(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=Lt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function iS(n){n.off=un,n.on=Ye,n.wheelEventPixels=f_,n.Doc=Ln,n.splitLines=dr,n.countColumn=re,n.findColumn=me,n.isWordChar=Qe,n.Pass=j,n.signal=$t,n.Line=ps,n.changeEnd=Ui,n.scrollbarModel=Kg,n.Pos=de,n.cmpPos=Ie,n.modes=as,n.mimeModes=_r,n.resolveMode=cs,n.getMode=us,n.modeExtensions=Hi,n.extendMode=fs,n.copyState=Wr,n.startState=ds,n.innerMode=bl,n.commands=Wl,n.keyMap=ui,n.keyName=$m,n.isModifierKey=Om,n.lookupKey=Es,n.normalizeKeyMap=P_,n.StringStream=It,n.SharedTextMarker=Hl,n.TextMarker=Gi,n.LineWidget=Fl,n.e_preventDefault=fn,n.e_stopPropagation=ss,n.e_stop=Di,n.addClass=_e,n.contains=ae,n.rmClass=P,n.keyNames=Ki}X_(Lt),Q_(Lt);var oS="iter insert remove copy getEditor constructor".split(" ");for(var Ic in Ln.prototype)Ln.prototype.hasOwnProperty(Ic)&&ue(oS,Ic)<0&&(Lt.prototype[Ic]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Ln.prototype[Ic]));return wr(Ln),Lt.inputStyles={textarea:Bt,contenteditable:wt},Lt.defineMode=function(n){!Lt.defaults.mode&&n!="null"&&(Lt.defaults.mode=n),Sr.apply(this,arguments)},Lt.defineMIME=Eo,Lt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Lt.defineMIME("text/plain","null"),Lt.defineExtension=function(n,i){Lt.prototype[n]=i},Lt.defineDocExtension=function(n,i){Ln.prototype[n]=i},Lt.fromTextArea=rS,iS(Lt),Lt.version="5.65.18",Lt}))})(cu)),cu.exports}var yM=To();const bM=$x(yM);var Fd={},Lr={};const wM="Á",xM="á",kM="Ă",_M="ă",SM="∾",TM="∿",CM="∾̳",EM="Â",AM="â",LM="´",MM="А",NM="а",OM="Æ",PM="æ",$M="",RM="𝔄",IM="𝔞",DM="À",zM="à",FM="ℵ",HM="ℵ",BM="Α",jM="α",WM="Ā",qM="ā",UM="⨿",VM="&",GM="&",KM="⩕",XM="⩓",YM="∧",ZM="⩜",JM="⩘",QM="⩚",eN="∠",tN="⦤",nN="∠",rN="⦨",iN="⦩",oN="⦪",sN="⦫",lN="⦬",aN="⦭",cN="⦮",uN="⦯",fN="∡",dN="∟",hN="⊾",pN="⦝",gN="∢",mN="Å",vN="⍼",yN="Ą",bN="ą",wN="𝔸",xN="𝕒",kN="⩯",_N="≈",SN="⩰",TN="≊",CN="≋",EN="'",AN="",LN="≈",MN="≊",NN="Å",ON="å",PN="𝒜",$N="𝒶",RN="≔",IN="*",DN="≈",zN="≍",FN="Ã",HN="ã",BN="Ä",jN="ä",WN="∳",qN="⨑",UN="≌",VN="϶",GN="‵",KN="∽",XN="⋍",YN="∖",ZN="⫧",JN="⊽",QN="⌅",e2="⌆",t2="⌅",n2="⎵",r2="⎶",i2="≌",o2="Б",s2="б",l2="„",a2="∵",c2="∵",u2="∵",f2="⦰",d2="϶",h2="ℬ",p2="ℬ",g2="Β",m2="β",v2="ℶ",y2="≬",b2="𝔅",w2="𝔟",x2="⋂",k2="◯",_2="⋃",S2="⨀",T2="⨁",C2="⨂",E2="⨆",A2="★",L2="▽",M2="△",N2="⨄",O2="⋁",P2="⋀",$2="⤍",R2="⧫",I2="▪",D2="▴",z2="▾",F2="◂",H2="▸",B2="␣",j2="▒",W2="░",q2="▓",U2="█",V2="=⃥",G2="≡⃥",K2="⫭",X2="⌐",Y2="𝔹",Z2="𝕓",J2="⊥",Q2="⊥",eO="⋈",tO="⧉",nO="┐",rO="╕",iO="╖",oO="╗",sO="┌",lO="╒",aO="╓",cO="╔",uO="─",fO="═",dO="┬",hO="╤",pO="╥",gO="╦",mO="┴",vO="╧",yO="╨",bO="╩",wO="⊟",xO="⊞",kO="⊠",_O="┘",SO="╛",TO="╜",CO="╝",EO="└",AO="╘",LO="╙",MO="╚",NO="│",OO="║",PO="┼",$O="╪",RO="╫",IO="╬",DO="┤",zO="╡",FO="╢",HO="╣",BO="├",jO="╞",WO="╟",qO="╠",UO="‵",VO="˘",GO="˘",KO="¦",XO="𝒷",YO="ℬ",ZO="⁏",JO="∽",QO="⋍",eP="⧅",tP="\\",nP="⟈",rP="•",iP="•",oP="≎",sP="⪮",lP="≏",aP="≎",cP="≏",uP="Ć",fP="ć",dP="⩄",hP="⩉",pP="⩋",gP="∩",mP="⋒",vP="⩇",yP="⩀",bP="ⅅ",wP="∩︀",xP="⁁",kP="ˇ",_P="ℭ",SP="⩍",TP="Č",CP="č",EP="Ç",AP="ç",LP="Ĉ",MP="ĉ",NP="∰",OP="⩌",PP="⩐",$P="Ċ",RP="ċ",IP="¸",DP="¸",zP="⦲",FP="¢",HP="·",BP="·",jP="𝔠",WP="ℭ",qP="Ч",UP="ч",VP="✓",GP="✓",KP="Χ",XP="χ",YP="ˆ",ZP="≗",JP="↺",QP="↻",e$="⊛",t$="⊚",n$="⊝",r$="⊙",i$="®",o$="Ⓢ",s$="⊖",l$="⊕",a$="⊗",c$="○",u$="⧃",f$="≗",d$="⨐",h$="⫯",p$="⧂",g$="∲",m$="”",v$="’",y$="♣",b$="♣",w$=":",x$="∷",k$="⩴",_$="≔",S$="≔",T$=",",C$="@",E$="∁",A$="∘",L$="∁",M$="ℂ",N$="≅",O$="⩭",P$="≡",$$="∮",R$="∯",I$="∮",D$="𝕔",z$="ℂ",F$="∐",H$="∐",B$="©",j$="©",W$="℗",q$="∳",U$="↵",V$="✗",G$="⨯",K$="𝒞",X$="𝒸",Y$="⫏",Z$="⫑",J$="⫐",Q$="⫒",eR="⋯",tR="⤸",nR="⤵",rR="⋞",iR="⋟",oR="↶",sR="⤽",lR="⩈",aR="⩆",cR="≍",uR="∪",fR="⋓",dR="⩊",hR="⊍",pR="⩅",gR="∪︀",mR="↷",vR="⤼",yR="⋞",bR="⋟",wR="⋎",xR="⋏",kR="¤",_R="↶",SR="↷",TR="⋎",CR="⋏",ER="∲",AR="∱",LR="⌭",MR="†",NR="‡",OR="ℸ",PR="↓",$R="↡",RR="⇓",IR="‐",DR="⫤",zR="⊣",FR="⤏",HR="˝",BR="Ď",jR="ď",WR="Д",qR="д",UR="‡",VR="⇊",GR="ⅅ",KR="ⅆ",XR="⤑",YR="⩷",ZR="°",JR="∇",QR="Δ",eI="δ",tI="⦱",nI="⥿",rI="𝔇",iI="𝔡",oI="⥥",sI="⇃",lI="⇂",aI="´",cI="˙",uI="˝",fI="`",dI="˜",hI="⋄",pI="⋄",gI="⋄",mI="♦",vI="♦",yI="¨",bI="ⅆ",wI="ϝ",xI="⋲",kI="÷",_I="÷",SI="⋇",TI="⋇",CI="Ђ",EI="ђ",AI="⌞",LI="⌍",MI="$",NI="𝔻",OI="𝕕",PI="¨",$I="˙",RI="⃜",II="≐",DI="≑",zI="≐",FI="∸",HI="∔",BI="⊡",jI="⌆",WI="∯",qI="¨",UI="⇓",VI="⇐",GI="⇔",KI="⫤",XI="⟸",YI="⟺",ZI="⟹",JI="⇒",QI="⊨",eD="⇑",tD="⇕",nD="∥",rD="⤓",iD="↓",oD="↓",sD="⇓",lD="⇵",aD="̑",cD="⇊",uD="⇃",fD="⇂",dD="⥐",hD="⥞",pD="⥖",gD="↽",mD="⥟",vD="⥗",yD="⇁",bD="↧",wD="⊤",xD="⤐",kD="⌟",_D="⌌",SD="𝒟",TD="𝒹",CD="Ѕ",ED="ѕ",AD="⧶",LD="Đ",MD="đ",ND="⋱",OD="▿",PD="▾",$D="⇵",RD="⥯",ID="⦦",DD="Џ",zD="џ",FD="⟿",HD="É",BD="é",jD="⩮",WD="Ě",qD="ě",UD="Ê",VD="ê",GD="≖",KD="≕",XD="Э",YD="э",ZD="⩷",JD="Ė",QD="ė",ez="≑",tz="ⅇ",nz="≒",rz="𝔈",iz="𝔢",oz="⪚",sz="È",lz="è",az="⪖",cz="⪘",uz="⪙",fz="∈",dz="⏧",hz="ℓ",pz="⪕",gz="⪗",mz="Ē",vz="ē",yz="∅",bz="∅",wz="◻",xz="∅",kz="▫",_z=" ",Sz=" ",Tz=" ",Cz="Ŋ",Ez="ŋ",Az=" ",Lz="Ę",Mz="ę",Nz="𝔼",Oz="𝕖",Pz="⋕",$z="⧣",Rz="⩱",Iz="ε",Dz="Ε",zz="ε",Fz="ϵ",Hz="≖",Bz="≕",jz="≂",Wz="⪖",qz="⪕",Uz="⩵",Vz="=",Gz="≂",Kz="≟",Xz="⇌",Yz="≡",Zz="⩸",Jz="⧥",Qz="⥱",eF="≓",tF="ℯ",nF="ℰ",rF="≐",iF="⩳",oF="≂",sF="Η",lF="η",aF="Ð",cF="ð",uF="Ë",fF="ë",dF="€",hF="!",pF="∃",gF="∃",mF="ℰ",vF="ⅇ",yF="ⅇ",bF="≒",wF="Ф",xF="ф",kF="♀",_F="ffi",SF="ff",TF="ffl",CF="𝔉",EF="𝔣",AF="fi",LF="◼",MF="▪",NF="fj",OF="♭",PF="fl",$F="▱",RF="ƒ",IF="𝔽",DF="𝕗",zF="∀",FF="∀",HF="⋔",BF="⫙",jF="ℱ",WF="⨍",qF="½",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="Ğ",mH="ğ",vH="Ģ",yH="Ĝ",bH="ĝ",wH="Г",xH="г",kH="Ġ",_H="ġ",SH="≥",TH="≧",CH="⪌",EH="⋛",AH="≥",LH="≧",MH="⩾",NH="⪩",OH="⩾",PH="⪀",$H="⪂",RH="⪄",IH="⋛︀",DH="⪔",zH="𝔊",FH="𝔤",HH="≫",BH="⋙",jH="⋙",WH="ℷ",qH="Ѓ",UH="ѓ",VH="⪥",GH="≷",KH="⪒",XH="⪤",YH="⪊",ZH="⪊",JH="⪈",QH="≩",e3="⪈",t3="≩",n3="⋧",r3="𝔾",i3="𝕘",o3="`",s3="≥",l3="⋛",a3="≧",c3="⪢",u3="≷",f3="⩾",d3="≳",h3="𝒢",p3="ℊ",g3="≳",m3="⪎",v3="⪐",y3="⪧",b3="⩺",w3=">",x3=">",k3="≫",_3="⋗",S3="⦕",T3="⩼",C3="⪆",E3="⥸",A3="⋗",L3="⋛",M3="⪌",N3="≷",O3="≳",P3="≩︀",$3="≩︀",R3="ˇ",I3=" ",D3="½",z3="ℋ",F3="Ъ",H3="ъ",B3="⥈",j3="↔",W3="⇔",q3="↭",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="Ħ",mB="ħ",vB="≎",yB="≏",bB="⁃",wB="‐",xB="Í",kB="í",_B="",SB="Î",TB="î",CB="И",EB="и",AB="İ",LB="Е",MB="е",NB="¡",OB="⇔",PB="𝔦",$B="ℑ",RB="Ì",IB="ì",DB="ⅈ",zB="⨌",FB="∭",HB="⧜",BB="℩",jB="IJ",WB="ij",qB="Ī",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="",m5="Ё",v5="ё",y5="Į",b5="į",w5="𝕀",x5="𝕚",k5="Ι",_5="ι",S5="⨼",T5="¿",C5="𝒾",E5="ℐ",A5="∈",L5="⋵",M5="⋹",N5="⋴",O5="⋳",P5="∈",$5="",R5="Ĩ",I5="ĩ",D5="І",z5="і",F5="Ï",H5="ï",B5="Ĵ",j5="ĵ",W5="Й",q5="й",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="ќ",m8="𝕂",v8="𝕜",y8="𝒦",b8="𝓀",w8="⇚",x8="Ĺ",k8="ĺ",_8="⦴",S8="ℒ",T8="Λ",C8="λ",E8="⟨",A8="⟪",L8="⦑",M8="⟨",N8="⪅",O8="ℒ",P8="«",$8="⇤",R8="⤟",I8="←",D8="↞",z8="⇐",F8="⤝",H8="↩",B8="↫",j8="⤹",W8="⥳",q8="↢",U8="⤙",V8="⤛",G8="⪫",K8="⪭",X8="⪭︀",Y8="⤌",Z8="⤎",J8="❲",Q8="{",ej="[",tj="⦋",nj="⦏",rj="⦍",ij="Ľ",oj="ľ",sj="Ļ",lj="ļ",aj="⌈",cj="{",uj="Л",fj="л",dj="⤶",hj="“",pj="„",gj="⥧",mj="⥋",vj="↲",yj="≤",bj="≦",wj="⟨",xj="⇤",kj="←",_j="←",Sj="⇐",Tj="⇆",Cj="↢",Ej="⌈",Aj="⟦",Lj="⥡",Mj="⥙",Nj="⇃",Oj="⌊",Pj="↽",$j="↼",Rj="⇇",Ij="↔",Dj="↔",zj="⇔",Fj="⇆",Hj="⇋",Bj="↭",jj="⥎",Wj="↤",qj="⊣",Uj="⥚",Vj="⋋",Gj="⧏",Kj="⊲",Xj="⊴",Yj="⥑",Zj="⥠",Jj="⥘",Qj="↿",eW="⥒",tW="↼",nW="⪋",rW="⋚",iW="≤",oW="≦",sW="⩽",lW="⪨",aW="⩽",cW="⩿",uW="⪁",fW="⪃",dW="⋚︀",hW="⪓",pW="⪅",gW="⋖",mW="⋚",vW="⪋",yW="⋚",bW="≦",wW="≶",xW="≶",kW="⪡",_W="≲",SW="⩽",TW="≲",CW="⥼",EW="⌊",AW="𝔏",LW="𝔩",MW="≶",NW="⪑",OW="⥢",PW="↽",$W="↼",RW="⥪",IW="▄",DW="Љ",zW="љ",FW="⇇",HW="≪",BW="⋘",jW="⌞",WW="⇚",qW="⥫",UW="◺",VW="Ŀ",GW="ŀ",KW="⎰",XW="⎰",YW="⪉",ZW="⪉",JW="⪇",QW="≨",e4="⪇",t4="≨",n4="⋦",r4="⟬",i4="⇽",o4="⟦",s4="⟵",l4="⟵",a4="⟸",c4="⟷",u4="⟷",f4="⟺",d4="⟼",h4="⟶",p4="⟶",g4="⟹",m4="↫",v4="↬",y4="⦅",b4="𝕃",w4="𝕝",x4="⨭",k4="⨴",_4="∗",S4="_",T4="↙",C4="↘",E4="◊",A4="◊",L4="⧫",M4="(",N4="⦓",O4="⇆",P4="⌟",$4="⇋",R4="⥭",I4="",D4="⊿",z4="‹",F4="𝓁",H4="ℒ",B4="↰",j4="↰",W4="≲",q4="⪍",U4="⪏",V4="[",G4="‘",K4="‚",X4="Ł",Y4="ł",Z4="⪦",J4="⩹",Q4="<",eq="<",tq="≪",nq="⋖",rq="⋋",iq="⋉",oq="⥶",sq="⩻",lq="◃",aq="⊴",cq="◂",uq="⦖",fq="⥊",dq="⥦",hq="≨︀",pq="≨︀",gq="¯",mq="♂",vq="✠",yq="✠",bq="↦",wq="↦",xq="↧",kq="↤",_q="↥",Sq="▮",Tq="⨩",Cq="М",Eq="м",Aq="—",Lq="∺",Mq="∡",Nq=" ",Oq="ℳ",Pq="𝔐",$q="𝔪",Rq="℧",Iq="µ",Dq="*",zq="⫰",Fq="∣",Hq="·",Bq="⊟",jq="−",Wq="∸",qq="⨪",Uq="∓",Vq="⫛",Gq="…",Kq="∓",Xq="⊧",Yq="𝕄",Zq="𝕞",Jq="∓",Qq="𝓂",eU="ℳ",tU="∾",nU="Μ",rU="μ",iU="⊸",oU="⊸",sU="∇",lU="Ń",aU="ń",cU="∠⃒",uU="≉",fU="⩰̸",dU="≋̸",hU="ʼn",pU="≉",gU="♮",mU="ℕ",vU="♮",yU=" ",bU="≎̸",wU="≏̸",xU="⩃",kU="Ň",_U="ň",SU="Ņ",TU="ņ",CU="≇",EU="⩭̸",AU="⩂",LU="Н",MU="н",NU="–",OU="⤤",PU="↗",$U="⇗",RU="↗",IU="≠",DU="≐̸",zU="",FU="",HU="",BU="",jU="≢",WU="⤨",qU="≂̸",UU="≫",VU="≪",GU=`
|
|
45
|
-
`,KU="∄",XU="∄",YU="𝔑",ZU="𝔫",JU="≧̸",QU="≱",e6="≱",t6="≧̸",n6="⩾̸",r6="⩾̸",i6="⋙̸",o6="≵",s6="≫⃒",l6="≯",a6="≯",c6="≫̸",u6="↮",f6="⇎",d6="⫲",h6="∋",p6="⋼",g6="⋺",m6="∋",v6="Њ",y6="њ",b6="↚",w6="⇍",x6="‥",k6="≦̸",_6="≰",S6="↚",T6="⇍",C6="↮",E6="⇎",A6="≰",L6="≦̸",M6="⩽̸",N6="⩽̸",O6="≮",P6="⋘̸",$6="≴",R6="≪⃒",I6="≮",D6="⋪",z6="⋬",F6="≪̸",H6="∤",B6="",j6=" ",W6="𝕟",q6="ℕ",U6="⫬",V6="¬",G6="≢",K6="≭",X6="∦",Y6="∉",Z6="≠",J6="≂̸",Q6="∄",eV="≯",tV="≱",nV="≧̸",rV="≫̸",iV="≹",oV="⩾̸",sV="≵",lV="≎̸",aV="≏̸",cV="∉",uV="⋵̸",fV="⋹̸",dV="∉",hV="⋷",pV="⋶",gV="⧏̸",mV="⋪",vV="⋬",yV="≮",bV="≰",wV="≸",xV="≪̸",kV="⩽̸",_V="≴",SV="⪢̸",TV="⪡̸",CV="∌",EV="∌",AV="⋾",LV="⋽",MV="⊀",NV="⪯̸",OV="⋠",PV="∌",$V="⧐̸",RV="⋫",IV="⋭",DV="⊏̸",zV="⋢",FV="⊐̸",HV="⋣",BV="⊂⃒",jV="⊈",WV="⊁",qV="⪰̸",UV="⋡",VV="≿̸",GV="⊃⃒",KV="⊉",XV="≁",YV="≄",ZV="≇",JV="≉",QV="∤",eG="∦",tG="∦",nG="⫽⃥",rG="∂̸",iG="⨔",oG="⊀",sG="⋠",lG="⊀",aG="⪯̸",cG="⪯̸",uG="⤳̸",fG="↛",dG="⇏",hG="↝̸",pG="↛",gG="⇏",mG="⋫",vG="⋭",yG="⊁",bG="⋡",wG="⪰̸",xG="𝒩",kG="𝓃",_G="∤",SG="∦",TG="≁",CG="≄",EG="≄",AG="∤",LG="∦",MG="⋢",NG="⋣",OG="⊄",PG="⫅̸",$G="⊈",RG="⊂⃒",IG="⊈",DG="⫅̸",zG="⊁",FG="⪰̸",HG="⊅",BG="⫆̸",jG="⊉",WG="⊃⃒",qG="⊉",UG="⫆̸",VG="≹",GG="Ñ",KG="ñ",XG="≸",YG="⋪",ZG="⋬",JG="⋫",QG="⋭",e9="Ν",t9="ν",n9="#",r9="№",i9=" ",o9="≍⃒",s9="⊬",l9="⊭",a9="⊮",c9="⊯",u9="≥⃒",f9=">⃒",d9="⤄",h9="⧞",p9="⤂",g9="≤⃒",m9="<⃒",v9="⊴⃒",y9="⤃",b9="⊵⃒",w9="∼⃒",x9="⤣",k9="↖",_9="⇖",S9="↖",T9="⤧",C9="Ó",E9="ó",A9="⊛",L9="Ô",M9="ô",N9="⊚",O9="О",P9="о",$9="⊝",R9="Ő",I9="ő",D9="⨸",z9="⊙",F9="⦼",H9="Œ",B9="œ",j9="⦿",W9="𝔒",q9="𝔬",U9="˛",V9="Ò",G9="ò",K9="⧁",X9="⦵",Y9="Ω",Z9="∮",J9="↺",Q9="⦾",eK="⦻",tK="‾",nK="⧀",rK="Ō",iK="ō",oK="Ω",sK="ω",lK="Ο",aK="ο",cK="⦶",uK="⊖",fK="𝕆",dK="𝕠",hK="⦷",pK="“",gK="‘",mK="⦹",vK="⊕",yK="↻",bK="⩔",wK="∨",xK="⩝",kK="ℴ",_K="ℴ",SK="ª",TK="º",CK="⊶",EK="⩖",AK="⩗",LK="⩛",MK="Ⓢ",NK="𝒪",OK="ℴ",PK="Ø",$K="ø",RK="⊘",IK="Õ",DK="õ",zK="⨶",FK="⨷",HK="⊗",BK="Ö",jK="ö",WK="⌽",qK="‾",UK="⏞",VK="⎴",GK="⏜",KK="¶",XK="∥",YK="∥",ZK="⫳",JK="⫽",QK="∂",e7="∂",t7="П",n7="п",r7="%",i7=".",o7="‰",s7="⊥",l7="‱",a7="𝔓",c7="𝔭",u7="Φ",f7="φ",d7="ϕ",h7="ℳ",p7="☎",g7="Π",m7="π",v7="⋔",y7="ϖ",b7="ℏ",w7="ℎ",x7="ℏ",k7="⨣",_7="⊞",S7="⨢",T7="+",C7="∔",E7="⨥",A7="⩲",L7="±",M7="±",N7="⨦",O7="⨧",P7="±",$7="ℌ",R7="⨕",I7="𝕡",D7="ℙ",z7="£",F7="⪷",H7="⪻",B7="≺",j7="≼",W7="⪷",q7="≺",U7="≼",V7="≺",G7="⪯",K7="≼",X7="≾",Y7="⪯",Z7="⪹",J7="⪵",Q7="⋨",eX="⪯",tX="⪳",nX="≾",rX="′",iX="″",oX="ℙ",sX="⪹",lX="⪵",aX="⋨",cX="∏",uX="∏",fX="⌮",dX="⌒",hX="⌓",pX="∝",gX="∝",mX="∷",vX="∝",yX="≾",bX="⊰",wX="𝒫",xX="𝓅",kX="Ψ",_X="ψ",SX=" ",TX="𝔔",CX="𝔮",EX="⨌",AX="𝕢",LX="ℚ",MX="⁗",NX="𝒬",OX="𝓆",PX="ℍ",$X="⨖",RX="?",IX="≟",DX='"',zX='"',FX="⇛",HX="∽̱",BX="Ŕ",jX="ŕ",WX="√",qX="⦳",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="ℚ",mY="⤍",vY="⤏",yY="⤐",bY="❳",wY="}",xY="]",kY="⦌",_Y="⦎",SY="⦐",TY="Ř",CY="ř",EY="Ŗ",AY="ŗ",LY="⌉",MY="}",NY="Р",OY="р",PY="⤷",$Y="⥩",RY="”",IY="”",DY="↳",zY="ℜ",FY="ℛ",HY="ℜ",BY="ℝ",jY="ℜ",WY="▭",qY="®",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="⥝",mZ="⥕",vZ="⇂",yZ="⌋",bZ="⇁",wZ="⇀",xZ="⇄",kZ="⇌",_Z="⇉",SZ="↝",TZ="↦",CZ="⊢",EZ="⥛",AZ="⋌",LZ="⧐",MZ="⊳",NZ="⊵",OZ="⥏",PZ="⥜",$Z="⥔",RZ="↾",IZ="⥓",DZ="⇀",zZ="˚",FZ="≓",HZ="⇄",BZ="⇌",jZ="",WZ="⎱",qZ="⎱",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="⋊",mJ="▹",vJ="⊵",yJ="▸",bJ="⧎",wJ="⧴",xJ="⥨",kJ="℞",_J="Ś",SJ="ś",TJ="‚",CJ="⪸",EJ="Š",AJ="š",LJ="⪼",MJ="≻",NJ="≽",OJ="⪰",PJ="⪴",$J="Ş",RJ="ş",IJ="Ŝ",DJ="ŝ",zJ="⪺",FJ="⪶",HJ="⋩",BJ="⨓",jJ="≿",WJ="С",qJ="с",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="∥",mQ="→",vQ="↑",yQ="",bQ="Σ",wQ="σ",xQ="ς",kQ="ς",_Q="∼",SQ="⩪",TQ="≃",CQ="≃",EQ="⪞",AQ="⪠",LQ="⪝",MQ="⪟",NQ="≆",OQ="⨤",PQ="⥲",$Q="←",RQ="∘",IQ="∖",DQ="⨳",zQ="⧤",FQ="∣",HQ="⌣",BQ="⪪",jQ="⪬",WQ="⪬︀",qQ="Ь",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="⊓",mee="⊏",vee="⊑",yee="⊐",bee="⊒",wee="⊔",xee="▪",kee="□",_ee="▪",See="→",Tee="𝒮",Cee="𝓈",Eee="∖",Aee="⌣",Lee="⋆",Mee="⋆",Nee="☆",Oee="★",Pee="ϵ",$ee="ϕ",Ree="¯",Iee="⊂",Dee="⋐",zee="⪽",Fee="⫅",Hee="⊆",Bee="⫃",jee="⫁",Wee="⫋",qee="⊊",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="∋",mte="∑",vte="∑",yte="♪",bte="¹",wte="²",xte="³",kte="⊃",_te="⋑",Ste="⪾",Tte="⫘",Cte="⫆",Ete="⊇",Ate="⫄",Lte="⊃",Mte="⊇",Nte="⟉",Ote="⫗",Pte="⥻",$te="⫂",Rte="⫌",Ite="⊋",Dte="⫀",zte="⊃",Fte="⋑",Hte="⊇",Bte="⫆",jte="⊋",Wte="⫌",qte="⫈",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="∴",mne="∴",vne="Θ",yne="θ",bne="ϑ",wne="ϑ",xne="≈",kne="∼",_ne=" ",Sne=" ",Tne=" ",Cne="≈",Ene="∼",Ane="Þ",Lne="þ",Mne="˜",Nne="∼",One="≃",Pne="≅",$ne="≈",Rne="⨱",Ine="⊠",Dne="×",zne="⨰",Fne="∭",Hne="⤨",Bne="⌶",jne="⫱",Wne="⊤",qne="𝕋",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="ц",mre="Ћ",vre="ћ",yre="Ŧ",bre="ŧ",wre="≬",xre="↞",kre="↠",_re="Ú",Sre="ú",Tre="↑",Cre="↟",Ere="⇑",Are="⥉",Lre="Ў",Mre="ў",Nre="Ŭ",Ore="ŭ",Pre="Û",$re="û",Rre="У",Ire="у",Dre="⇅",zre="Ű",Fre="ű",Hre="⥮",Bre="⥾",jre="𝔘",Wre="𝔲",qre="Ù",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="↑",mie="⇑",vie="⇅",yie="↕",bie="↕",wie="⇕",xie="⥮",kie="↿",_ie="↾",Sie="⊎",Tie="↖",Cie="↗",Eie="υ",Aie="ϒ",Lie="ϒ",Mie="Υ",Nie="υ",Oie="↥",Pie="⊥",$ie="⇈",Rie="⌝",Iie="⌝",Die="⌎",zie="Ů",Fie="ů",Hie="◹",Bie="𝒰",jie="𝓊",Wie="⋰",qie="Ũ",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="⊳",moe="⫨",voe="⫫",yoe="⫩",boe="В",woe="в",xoe="⊢",koe="⊨",_oe="⊩",Soe="⊫",Toe="⫦",Coe="⊻",Eoe="∨",Aoe="⋁",Loe="≚",Moe="⋮",Noe="|",Ooe="‖",Poe="|",$oe="‖",Roe="∣",Ioe="|",Doe="❘",zoe="≀",Foe=" ",Hoe="𝔙",Boe="𝔳",joe="⊲",Woe="⊂⃒",qoe="⊃⃒",Uoe="𝕍",Voe="𝕧",Goe="∝",Koe="⊳",Xoe="𝒱",Yoe="𝓋",Zoe="⫋︀",Joe="⊊︀",Qoe="⫌︀",ese="⊋︀",tse="⊪",nse="⦚",rse="Ŵ",ise="ŵ",ose="⩟",sse="∧",lse="⋀",ase="≙",cse="℘",use="𝔚",fse="𝔴",dse="𝕎",hse="𝕨",pse="℘",gse="≀",mse="≀",vse="𝒲",yse="𝓌",bse="⋂",wse="◯",xse="⋃",kse="▽",_se="𝔛",Sse="𝔵",Tse="⟷",Cse="⟺",Ese="Ξ",Ase="ξ",Lse="⟵",Mse="⟸",Nse="⟼",Ose="⋻",Pse="⨀",$se="𝕏",Rse="𝕩",Ise="⨁",Dse="⨂",zse="⟶",Fse="⟹",Hse="𝒳",Bse="𝓍",jse="⨆",Wse="⨄",qse="△",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="ź",mle="Ž",vle="ž",yle="З",ble="з",wle="Ż",xle="ż",kle="ℨ",_le="",Sle="Ζ",Tle="ζ",Cle="𝔷",Ele="ℨ",Ale="Ж",Lle="ж",Mle="⇝",Nle="𝕫",Ole="ℤ",Ple="𝒵",$le="𝓏",Rle="",Ile="",Rx={Aacute:wM,aacute:xM,Abreve:kM,abreve:_M,ac:SM,acd:TM,acE:CM,Acirc:EM,acirc:AM,acute:LM,Acy:MM,acy:NM,AElig:OM,aelig:PM,af:$M,Afr:RM,afr:IM,Agrave:DM,agrave:zM,alefsym:FM,aleph:HM,Alpha:BM,alpha:jM,Amacr:WM,amacr:qM,amalg:UM,amp:VM,AMP:GM,andand:KM,And:XM,and:YM,andd:ZM,andslope:JM,andv:QM,ang:eN,ange:tN,angle:nN,angmsdaa:rN,angmsdab:iN,angmsdac:oN,angmsdad:sN,angmsdae:lN,angmsdaf:aN,angmsdag:cN,angmsdah:uN,angmsd:fN,angrt:dN,angrtvb:hN,angrtvbd:pN,angsph:gN,angst:mN,angzarr:vN,Aogon:yN,aogon:bN,Aopf:wN,aopf:xN,apacir:kN,ap:_N,apE:SN,ape:TN,apid:CN,apos:EN,ApplyFunction:AN,approx:LN,approxeq:MN,Aring:NN,aring:ON,Ascr:PN,ascr:$N,Assign:RN,ast:IN,asymp:DN,asympeq:zN,Atilde:FN,atilde:HN,Auml:BN,auml:jN,awconint:WN,awint:qN,backcong:UN,backepsilon:VN,backprime:GN,backsim:KN,backsimeq:XN,Backslash:YN,Barv:ZN,barvee:JN,barwed:QN,Barwed:e2,barwedge:t2,bbrk:n2,bbrktbrk:r2,bcong:i2,Bcy:o2,bcy:s2,bdquo:l2,becaus:a2,because:c2,Because:u2,bemptyv:f2,bepsi:d2,bernou:h2,Bernoullis:p2,Beta:g2,beta:m2,beth:v2,between:y2,Bfr:b2,bfr:w2,bigcap:x2,bigcirc:k2,bigcup:_2,bigodot:S2,bigoplus:T2,bigotimes:C2,bigsqcup:E2,bigstar:A2,bigtriangledown:L2,bigtriangleup:M2,biguplus:N2,bigvee:O2,bigwedge:P2,bkarow:$2,blacklozenge:R2,blacksquare:I2,blacktriangle:D2,blacktriangledown:z2,blacktriangleleft:F2,blacktriangleright:H2,blank:B2,blk12:j2,blk14:W2,blk34:q2,block:U2,bne:V2,bnequiv:G2,bNot:K2,bnot:X2,Bopf:Y2,bopf:Z2,bot:J2,bottom:Q2,bowtie:eO,boxbox:tO,boxdl:nO,boxdL:rO,boxDl:iO,boxDL:oO,boxdr:sO,boxdR:lO,boxDr:aO,boxDR:cO,boxh:uO,boxH:fO,boxhd:dO,boxHd:hO,boxhD:pO,boxHD:gO,boxhu:mO,boxHu:vO,boxhU:yO,boxHU:bO,boxminus:wO,boxplus:xO,boxtimes:kO,boxul:_O,boxuL:SO,boxUl:TO,boxUL:CO,boxur:EO,boxuR:AO,boxUr:LO,boxUR:MO,boxv:NO,boxV:OO,boxvh:PO,boxvH:$O,boxVh:RO,boxVH:IO,boxvl:DO,boxvL:zO,boxVl:FO,boxVL:HO,boxvr:BO,boxvR:jO,boxVr:WO,boxVR:qO,bprime:UO,breve:VO,Breve:GO,brvbar:KO,bscr:XO,Bscr:YO,bsemi:ZO,bsim:JO,bsime:QO,bsolb:eP,bsol:tP,bsolhsub:nP,bull:rP,bullet:iP,bump:oP,bumpE:sP,bumpe:lP,Bumpeq:aP,bumpeq:cP,Cacute:uP,cacute:fP,capand:dP,capbrcup:hP,capcap:pP,cap:gP,Cap:mP,capcup:vP,capdot:yP,CapitalDifferentialD:bP,caps:wP,caret:xP,caron:kP,Cayleys:_P,ccaps:SP,Ccaron:TP,ccaron:CP,Ccedil:EP,ccedil:AP,Ccirc:LP,ccirc:MP,Cconint:NP,ccups:OP,ccupssm:PP,Cdot:$P,cdot:RP,cedil:IP,Cedilla:DP,cemptyv:zP,cent:FP,centerdot:HP,CenterDot:BP,cfr:jP,Cfr:WP,CHcy:qP,chcy:UP,check:VP,checkmark:GP,Chi:KP,chi:XP,circ:YP,circeq:ZP,circlearrowleft:JP,circlearrowright:QP,circledast:e$,circledcirc:t$,circleddash:n$,CircleDot:r$,circledR:i$,circledS:o$,CircleMinus:s$,CirclePlus:l$,CircleTimes:a$,cir:c$,cirE:u$,cire:f$,cirfnint:d$,cirmid:h$,cirscir:p$,ClockwiseContourIntegral:g$,CloseCurlyDoubleQuote:m$,CloseCurlyQuote:v$,clubs:y$,clubsuit:b$,colon:w$,Colon:x$,Colone:k$,colone:_$,coloneq:S$,comma:T$,commat:C$,comp:E$,compfn:A$,complement:L$,complexes:M$,cong:N$,congdot:O$,Congruent:P$,conint:$$,Conint:R$,ContourIntegral:I$,copf:D$,Copf:z$,coprod:F$,Coproduct:H$,copy:B$,COPY:j$,copysr:W$,CounterClockwiseContourIntegral:q$,crarr:U$,cross:V$,Cross:G$,Cscr:K$,cscr:X$,csub:Y$,csube:Z$,csup:J$,csupe:Q$,ctdot:eR,cudarrl:tR,cudarrr:nR,cuepr:rR,cuesc:iR,cularr:oR,cularrp:sR,cupbrcap:lR,cupcap:aR,CupCap:cR,cup:uR,Cup:fR,cupcup:dR,cupdot:hR,cupor:pR,cups:gR,curarr:mR,curarrm:vR,curlyeqprec:yR,curlyeqsucc:bR,curlyvee:wR,curlywedge:xR,curren:kR,curvearrowleft:_R,curvearrowright:SR,cuvee:TR,cuwed:CR,cwconint:ER,cwint:AR,cylcty:LR,dagger:MR,Dagger:NR,daleth:OR,darr:PR,Darr:$R,dArr:RR,dash:IR,Dashv:DR,dashv:zR,dbkarow:FR,dblac:HR,Dcaron:BR,dcaron:jR,Dcy:WR,dcy:qR,ddagger:UR,ddarr:VR,DD:GR,dd:KR,DDotrahd:XR,ddotseq:YR,deg:ZR,Del:JR,Delta:QR,delta:eI,demptyv:tI,dfisht:nI,Dfr:rI,dfr:iI,dHar:oI,dharl:sI,dharr:lI,DiacriticalAcute:aI,DiacriticalDot:cI,DiacriticalDoubleAcute:uI,DiacriticalGrave:fI,DiacriticalTilde:dI,diam:hI,diamond:pI,Diamond:gI,diamondsuit:mI,diams:vI,die:yI,DifferentialD:bI,digamma:wI,disin:xI,div:kI,divide:_I,divideontimes:SI,divonx:TI,DJcy:CI,djcy:EI,dlcorn:AI,dlcrop:LI,dollar:MI,Dopf:NI,dopf:OI,Dot:PI,dot:$I,DotDot:RI,doteq:II,doteqdot:DI,DotEqual:zI,dotminus:FI,dotplus:HI,dotsquare:BI,doublebarwedge:jI,DoubleContourIntegral:WI,DoubleDot:qI,DoubleDownArrow:UI,DoubleLeftArrow:VI,DoubleLeftRightArrow:GI,DoubleLeftTee:KI,DoubleLongLeftArrow:XI,DoubleLongLeftRightArrow:YI,DoubleLongRightArrow:ZI,DoubleRightArrow:JI,DoubleRightTee:QI,DoubleUpArrow:eD,DoubleUpDownArrow:tD,DoubleVerticalBar:nD,DownArrowBar:rD,downarrow:iD,DownArrow:oD,Downarrow:sD,DownArrowUpArrow:lD,DownBreve:aD,downdownarrows:cD,downharpoonleft:uD,downharpoonright:fD,DownLeftRightVector:dD,DownLeftTeeVector:hD,DownLeftVectorBar:pD,DownLeftVector:gD,DownRightTeeVector:mD,DownRightVectorBar:vD,DownRightVector:yD,DownTeeArrow:bD,DownTee:wD,drbkarow:xD,drcorn:kD,drcrop:_D,Dscr:SD,dscr:TD,DScy:CD,dscy:ED,dsol:AD,Dstrok:LD,dstrok:MD,dtdot:ND,dtri:OD,dtrif:PD,duarr:$D,duhar:RD,dwangle:ID,DZcy:DD,dzcy:zD,dzigrarr:FD,Eacute:HD,eacute:BD,easter:jD,Ecaron:WD,ecaron:qD,Ecirc:UD,ecirc:VD,ecir:GD,ecolon:KD,Ecy:XD,ecy:YD,eDDot:ZD,Edot:JD,edot:QD,eDot:ez,ee:tz,efDot:nz,Efr:rz,efr:iz,eg:oz,Egrave:sz,egrave:lz,egs:az,egsdot:cz,el:uz,Element:fz,elinters:dz,ell:hz,els:pz,elsdot:gz,Emacr:mz,emacr:vz,empty:yz,emptyset:bz,EmptySmallSquare:wz,emptyv:xz,EmptyVerySmallSquare:kz,emsp13:_z,emsp14:Sz,emsp:Tz,ENG:Cz,eng:Ez,ensp:Az,Eogon:Lz,eogon:Mz,Eopf:Nz,eopf:Oz,epar:Pz,eparsl:$z,eplus:Rz,epsi:Iz,Epsilon:Dz,epsilon:zz,epsiv:Fz,eqcirc:Hz,eqcolon:Bz,eqsim:jz,eqslantgtr:Wz,eqslantless:qz,Equal:Uz,equals:Vz,EqualTilde:Gz,equest:Kz,Equilibrium:Xz,equiv:Yz,equivDD:Zz,eqvparsl:Jz,erarr:Qz,erDot:eF,escr:tF,Escr:nF,esdot:rF,Esim:iF,esim:oF,Eta:sF,eta:lF,ETH:aF,eth:cF,Euml:uF,euml:fF,euro:dF,excl:hF,exist:pF,Exists:gF,expectation:mF,exponentiale:vF,ExponentialE:yF,fallingdotseq:bF,Fcy:wF,fcy:xF,female:kF,ffilig:_F,fflig:SF,ffllig:TF,Ffr:CF,ffr:EF,filig:AF,FilledSmallSquare:LF,FilledVerySmallSquare:MF,fjlig:NF,flat:OF,fllig:PF,fltns:$F,fnof:RF,Fopf:IF,fopf:DF,forall:zF,ForAll:FF,fork:HF,forkv:BF,Fouriertrf:jF,fpartint:WF,frac12:qF,frac13:UF,frac14:VF,frac15:GF,frac16:KF,frac18:XF,frac23:YF,frac25:ZF,frac34:JF,frac35:QF,frac38:eH,frac45:tH,frac56:nH,frac58:rH,frac78:iH,frasl:oH,frown:sH,fscr:lH,Fscr:aH,gacute:cH,Gamma:uH,gamma:fH,Gammad:dH,gammad:hH,gap:pH,Gbreve:gH,gbreve:mH,Gcedil:vH,Gcirc:yH,gcirc:bH,Gcy:wH,gcy:xH,Gdot:kH,gdot:_H,ge:SH,gE:TH,gEl:CH,gel:EH,geq:AH,geqq:LH,geqslant:MH,gescc:NH,ges:OH,gesdot:PH,gesdoto:$H,gesdotol:RH,gesl:IH,gesles:DH,Gfr:zH,gfr:FH,gg:HH,Gg:BH,ggg:jH,gimel:WH,GJcy:qH,gjcy:UH,gla:VH,gl:GH,glE:KH,glj:XH,gnap:YH,gnapprox:ZH,gne:JH,gnE:QH,gneq:e3,gneqq:t3,gnsim:n3,Gopf:r3,gopf:i3,grave:o3,GreaterEqual:s3,GreaterEqualLess:l3,GreaterFullEqual:a3,GreaterGreater:c3,GreaterLess:u3,GreaterSlantEqual:f3,GreaterTilde:d3,Gscr:h3,gscr:p3,gsim:g3,gsime:m3,gsiml:v3,gtcc:y3,gtcir:b3,gt:w3,GT:x3,Gt:k3,gtdot:_3,gtlPar:S3,gtquest:T3,gtrapprox:C3,gtrarr:E3,gtrdot:A3,gtreqless:L3,gtreqqless:M3,gtrless:N3,gtrsim:O3,gvertneqq:P3,gvnE:$3,Hacek:R3,hairsp:I3,half:D3,hamilt:z3,HARDcy:F3,hardcy:H3,harrcir:B3,harr:j3,hArr:W3,harrw:q3,Hat:U3,hbar:V3,Hcirc:G3,hcirc:K3,hearts:X3,heartsuit:Y3,hellip:Z3,hercon:J3,hfr:Q3,Hfr:eB,HilbertSpace:tB,hksearow:nB,hkswarow:rB,hoarr:iB,homtht:oB,hookleftarrow:sB,hookrightarrow:lB,hopf:aB,Hopf:cB,horbar:uB,HorizontalLine:fB,hscr:dB,Hscr:hB,hslash:pB,Hstrok:gB,hstrok:mB,HumpDownHump:vB,HumpEqual:yB,hybull:bB,hyphen:wB,Iacute:xB,iacute:kB,ic:_B,Icirc:SB,icirc:TB,Icy:CB,icy:EB,Idot:AB,IEcy:LB,iecy:MB,iexcl:NB,iff:OB,ifr:PB,Ifr:$B,Igrave:RB,igrave:IB,ii:DB,iiiint:zB,iiint:FB,iinfin:HB,iiota:BB,IJlig:jB,ijlig:WB,Imacr:qB,imacr:UB,image:VB,ImaginaryI:GB,imagline:KB,imagpart:XB,imath:YB,Im:ZB,imof:JB,imped:QB,Implies:e5,incare:t5,in:"∈",infin:n5,infintie:r5,inodot:i5,intcal:o5,int:s5,Int:l5,integers:a5,Integral:c5,intercal:u5,Intersection:f5,intlarhk:d5,intprod:h5,InvisibleComma:p5,InvisibleTimes:g5,IOcy:m5,iocy:v5,Iogon:y5,iogon:b5,Iopf:w5,iopf:x5,Iota:k5,iota:_5,iprod:S5,iquest:T5,iscr:C5,Iscr:E5,isin:A5,isindot:L5,isinE:M5,isins:N5,isinsv:O5,isinv:P5,it:$5,Itilde:R5,itilde:I5,Iukcy:D5,iukcy:z5,Iuml:F5,iuml:H5,Jcirc:B5,jcirc:j5,Jcy:W5,jcy:q5,Jfr:U5,jfr:V5,jmath:G5,Jopf:K5,jopf:X5,Jscr:Y5,jscr:Z5,Jsercy:J5,jsercy:Q5,Jukcy:e8,jukcy:t8,Kappa:n8,kappa:r8,kappav:i8,Kcedil:o8,kcedil:s8,Kcy:l8,kcy:a8,Kfr:c8,kfr:u8,kgreen:f8,KHcy:d8,khcy:h8,KJcy:p8,kjcy:g8,Kopf:m8,kopf:v8,Kscr:y8,kscr:b8,lAarr:w8,Lacute:x8,lacute:k8,laemptyv:_8,lagran:S8,Lambda:T8,lambda:C8,lang:E8,Lang:A8,langd:L8,langle:M8,lap:N8,Laplacetrf:O8,laquo:P8,larrb:$8,larrbfs:R8,larr:I8,Larr:D8,lArr:z8,larrfs:F8,larrhk:H8,larrlp:B8,larrpl:j8,larrsim:W8,larrtl:q8,latail:U8,lAtail:V8,lat:G8,late:K8,lates:X8,lbarr:Y8,lBarr:Z8,lbbrk:J8,lbrace:Q8,lbrack:ej,lbrke:tj,lbrksld:nj,lbrkslu:rj,Lcaron:ij,lcaron:oj,Lcedil:sj,lcedil:lj,lceil:aj,lcub:cj,Lcy:uj,lcy:fj,ldca:dj,ldquo:hj,ldquor:pj,ldrdhar:gj,ldrushar:mj,ldsh:vj,le:yj,lE:bj,LeftAngleBracket:wj,LeftArrowBar:xj,leftarrow:kj,LeftArrow:_j,Leftarrow:Sj,LeftArrowRightArrow:Tj,leftarrowtail:Cj,LeftCeiling:Ej,LeftDoubleBracket:Aj,LeftDownTeeVector:Lj,LeftDownVectorBar:Mj,LeftDownVector:Nj,LeftFloor:Oj,leftharpoondown:Pj,leftharpoonup:$j,leftleftarrows:Rj,leftrightarrow:Ij,LeftRightArrow:Dj,Leftrightarrow:zj,leftrightarrows:Fj,leftrightharpoons:Hj,leftrightsquigarrow:Bj,LeftRightVector:jj,LeftTeeArrow:Wj,LeftTee:qj,LeftTeeVector:Uj,leftthreetimes:Vj,LeftTriangleBar:Gj,LeftTriangle:Kj,LeftTriangleEqual:Xj,LeftUpDownVector:Yj,LeftUpTeeVector:Zj,LeftUpVectorBar:Jj,LeftUpVector:Qj,LeftVectorBar:eW,LeftVector:tW,lEg:nW,leg:rW,leq:iW,leqq:oW,leqslant:sW,lescc:lW,les:aW,lesdot:cW,lesdoto:uW,lesdotor:fW,lesg:dW,lesges:hW,lessapprox:pW,lessdot:gW,lesseqgtr:mW,lesseqqgtr:vW,LessEqualGreater:yW,LessFullEqual:bW,LessGreater:wW,lessgtr:xW,LessLess:kW,lesssim:_W,LessSlantEqual:SW,LessTilde:TW,lfisht:CW,lfloor:EW,Lfr:AW,lfr:LW,lg:MW,lgE:NW,lHar:OW,lhard:PW,lharu:$W,lharul:RW,lhblk:IW,LJcy:DW,ljcy:zW,llarr:FW,ll:HW,Ll:BW,llcorner:jW,Lleftarrow:WW,llhard:qW,lltri:UW,Lmidot:VW,lmidot:GW,lmoustache:KW,lmoust:XW,lnap:YW,lnapprox:ZW,lne:JW,lnE:QW,lneq:e4,lneqq:t4,lnsim:n4,loang:r4,loarr:i4,lobrk:o4,longleftarrow:s4,LongLeftArrow:l4,Longleftarrow:a4,longleftrightarrow:c4,LongLeftRightArrow:u4,Longleftrightarrow:f4,longmapsto:d4,longrightarrow:h4,LongRightArrow:p4,Longrightarrow:g4,looparrowleft:m4,looparrowright:v4,lopar:y4,Lopf:b4,lopf:w4,loplus:x4,lotimes:k4,lowast:_4,lowbar:S4,LowerLeftArrow:T4,LowerRightArrow:C4,loz:E4,lozenge:A4,lozf:L4,lpar:M4,lparlt:N4,lrarr:O4,lrcorner:P4,lrhar:$4,lrhard:R4,lrm:I4,lrtri:D4,lsaquo:z4,lscr:F4,Lscr:H4,lsh:B4,Lsh:j4,lsim:W4,lsime:q4,lsimg:U4,lsqb:V4,lsquo:G4,lsquor:K4,Lstrok:X4,lstrok:Y4,ltcc:Z4,ltcir:J4,lt:Q4,LT:eq,Lt:tq,ltdot:nq,lthree:rq,ltimes:iq,ltlarr:oq,ltquest:sq,ltri:lq,ltrie:aq,ltrif:cq,ltrPar:uq,lurdshar:fq,luruhar:dq,lvertneqq:hq,lvnE:pq,macr:gq,male:mq,malt:vq,maltese:yq,Map:"⤅",map:bq,mapsto:wq,mapstodown:xq,mapstoleft:kq,mapstoup:_q,marker:Sq,mcomma:Tq,Mcy:Cq,mcy:Eq,mdash:Aq,mDDot:Lq,measuredangle:Mq,MediumSpace:Nq,Mellintrf:Oq,Mfr:Pq,mfr:$q,mho:Rq,micro:Iq,midast:Dq,midcir:zq,mid:Fq,middot:Hq,minusb:Bq,minus:jq,minusd:Wq,minusdu:qq,MinusPlus:Uq,mlcp:Vq,mldr:Gq,mnplus:Kq,models:Xq,Mopf:Yq,mopf:Zq,mp:Jq,mscr:Qq,Mscr:eU,mstpos:tU,Mu:nU,mu:rU,multimap:iU,mumap:oU,nabla:sU,Nacute:lU,nacute:aU,nang:cU,nap:uU,napE:fU,napid:dU,napos:hU,napprox:pU,natural:gU,naturals:mU,natur:vU,nbsp:yU,nbump:bU,nbumpe:wU,ncap:xU,Ncaron:kU,ncaron:_U,Ncedil:SU,ncedil:TU,ncong:CU,ncongdot:EU,ncup:AU,Ncy:LU,ncy:MU,ndash:NU,nearhk:OU,nearr:PU,neArr:$U,nearrow:RU,ne:IU,nedot:DU,NegativeMediumSpace:zU,NegativeThickSpace:FU,NegativeThinSpace:HU,NegativeVeryThinSpace:BU,nequiv:jU,nesear:WU,nesim:qU,NestedGreaterGreater:UU,NestedLessLess:VU,NewLine:GU,nexist:KU,nexists:XU,Nfr:YU,nfr:ZU,ngE:JU,nge:QU,ngeq:e6,ngeqq:t6,ngeqslant:n6,nges:r6,nGg:i6,ngsim:o6,nGt:s6,ngt:l6,ngtr:a6,nGtv:c6,nharr:u6,nhArr:f6,nhpar:d6,ni:h6,nis:p6,nisd:g6,niv:m6,NJcy:v6,njcy:y6,nlarr:b6,nlArr:w6,nldr:x6,nlE:k6,nle:_6,nleftarrow:S6,nLeftarrow:T6,nleftrightarrow:C6,nLeftrightarrow:E6,nleq:A6,nleqq:L6,nleqslant:M6,nles:N6,nless:O6,nLl:P6,nlsim:$6,nLt:R6,nlt:I6,nltri:D6,nltrie:z6,nLtv:F6,nmid:H6,NoBreak:B6,NonBreakingSpace:j6,nopf:W6,Nopf:q6,Not:U6,not:V6,NotCongruent:G6,NotCupCap:K6,NotDoubleVerticalBar:X6,NotElement:Y6,NotEqual:Z6,NotEqualTilde:J6,NotExists:Q6,NotGreater:eV,NotGreaterEqual:tV,NotGreaterFullEqual:nV,NotGreaterGreater:rV,NotGreaterLess:iV,NotGreaterSlantEqual:oV,NotGreaterTilde:sV,NotHumpDownHump:lV,NotHumpEqual:aV,notin:cV,notindot:uV,notinE:fV,notinva:dV,notinvb:hV,notinvc:pV,NotLeftTriangleBar:gV,NotLeftTriangle:mV,NotLeftTriangleEqual:vV,NotLess:yV,NotLessEqual:bV,NotLessGreater:wV,NotLessLess:xV,NotLessSlantEqual:kV,NotLessTilde:_V,NotNestedGreaterGreater:SV,NotNestedLessLess:TV,notni:CV,notniva:EV,notnivb:AV,notnivc:LV,NotPrecedes:MV,NotPrecedesEqual:NV,NotPrecedesSlantEqual:OV,NotReverseElement:PV,NotRightTriangleBar:$V,NotRightTriangle:RV,NotRightTriangleEqual:IV,NotSquareSubset:DV,NotSquareSubsetEqual:zV,NotSquareSuperset:FV,NotSquareSupersetEqual:HV,NotSubset:BV,NotSubsetEqual:jV,NotSucceeds:WV,NotSucceedsEqual:qV,NotSucceedsSlantEqual:UV,NotSucceedsTilde:VV,NotSuperset:GV,NotSupersetEqual:KV,NotTilde:XV,NotTildeEqual:YV,NotTildeFullEqual:ZV,NotTildeTilde:JV,NotVerticalBar:QV,nparallel:eG,npar:tG,nparsl:nG,npart:rG,npolint:iG,npr:oG,nprcue:sG,nprec:lG,npreceq:aG,npre:cG,nrarrc:uG,nrarr:fG,nrArr:dG,nrarrw:hG,nrightarrow:pG,nRightarrow:gG,nrtri:mG,nrtrie:vG,nsc:yG,nsccue:bG,nsce:wG,Nscr:xG,nscr:kG,nshortmid:_G,nshortparallel:SG,nsim:TG,nsime:CG,nsimeq:EG,nsmid:AG,nspar:LG,nsqsube:MG,nsqsupe:NG,nsub:OG,nsubE:PG,nsube:$G,nsubset:RG,nsubseteq:IG,nsubseteqq:DG,nsucc:zG,nsucceq:FG,nsup:HG,nsupE:BG,nsupe:jG,nsupset:WG,nsupseteq:qG,nsupseteqq:UG,ntgl:VG,Ntilde:GG,ntilde:KG,ntlg:XG,ntriangleleft:YG,ntrianglelefteq:ZG,ntriangleright:JG,ntrianglerighteq:QG,Nu:e9,nu:t9,num:n9,numero:r9,numsp:i9,nvap:o9,nvdash:s9,nvDash:l9,nVdash:a9,nVDash:c9,nvge:u9,nvgt:f9,nvHarr:d9,nvinfin:h9,nvlArr:p9,nvle:g9,nvlt:m9,nvltrie:v9,nvrArr:y9,nvrtrie:b9,nvsim:w9,nwarhk:x9,nwarr:k9,nwArr:_9,nwarrow:S9,nwnear:T9,Oacute:C9,oacute:E9,oast:A9,Ocirc:L9,ocirc:M9,ocir:N9,Ocy:O9,ocy:P9,odash:$9,Odblac:R9,odblac:I9,odiv:D9,odot:z9,odsold:F9,OElig:H9,oelig:B9,ofcir:j9,Ofr:W9,ofr:q9,ogon:U9,Ograve:V9,ograve:G9,ogt:K9,ohbar:X9,ohm:Y9,oint:Z9,olarr:J9,olcir:Q9,olcross:eK,oline:tK,olt:nK,Omacr:rK,omacr:iK,Omega:oK,omega:sK,Omicron:lK,omicron:aK,omid:cK,ominus:uK,Oopf:fK,oopf:dK,opar:hK,OpenCurlyDoubleQuote:pK,OpenCurlyQuote:gK,operp:mK,oplus:vK,orarr:yK,Or:bK,or:wK,ord:xK,order:kK,orderof:_K,ordf:SK,ordm:TK,origof:CK,oror:EK,orslope:AK,orv:LK,oS:MK,Oscr:NK,oscr:OK,Oslash:PK,oslash:$K,osol:RK,Otilde:IK,otilde:DK,otimesas:zK,Otimes:FK,otimes:HK,Ouml:BK,ouml:jK,ovbar:WK,OverBar:qK,OverBrace:UK,OverBracket:VK,OverParenthesis:GK,para:KK,parallel:XK,par:YK,parsim:ZK,parsl:JK,part:QK,PartialD:e7,Pcy:t7,pcy:n7,percnt:r7,period:i7,permil:o7,perp:s7,pertenk:l7,Pfr:a7,pfr:c7,Phi:u7,phi:f7,phiv:d7,phmmat:h7,phone:p7,Pi:g7,pi:m7,pitchfork:v7,piv:y7,planck:b7,planckh:w7,plankv:x7,plusacir:k7,plusb:_7,pluscir:S7,plus:T7,plusdo:C7,plusdu:E7,pluse:A7,PlusMinus:L7,plusmn:M7,plussim:N7,plustwo:O7,pm:P7,Poincareplane:$7,pointint:R7,popf:I7,Popf:D7,pound:z7,prap:F7,Pr:H7,pr:B7,prcue:j7,precapprox:W7,prec:q7,preccurlyeq:U7,Precedes:V7,PrecedesEqual:G7,PrecedesSlantEqual:K7,PrecedesTilde:X7,preceq:Y7,precnapprox:Z7,precneqq:J7,precnsim:Q7,pre:eX,prE:tX,precsim:nX,prime:rX,Prime:iX,primes:oX,prnap:sX,prnE:lX,prnsim:aX,prod:cX,Product:uX,profalar:fX,profline:dX,profsurf:hX,prop:pX,Proportional:gX,Proportion:mX,propto:vX,prsim:yX,prurel:bX,Pscr:wX,pscr:xX,Psi:kX,psi:_X,puncsp:SX,Qfr:TX,qfr:CX,qint:EX,qopf:AX,Qopf:LX,qprime:MX,Qscr:NX,qscr:OX,quaternions:PX,quatint:$X,quest:RX,questeq:IX,quot:DX,QUOT:zX,rAarr:FX,race:HX,Racute:BX,racute:jX,radic:WX,raemptyv:qX,rang:UX,Rang:VX,rangd:GX,range:KX,rangle:XX,raquo:YX,rarrap:ZX,rarrb:JX,rarrbfs:QX,rarrc:eY,rarr:tY,Rarr:nY,rArr:rY,rarrfs:iY,rarrhk:oY,rarrlp:sY,rarrpl:lY,rarrsim:aY,Rarrtl:cY,rarrtl:uY,rarrw:fY,ratail:dY,rAtail:hY,ratio:pY,rationals:gY,rbarr:mY,rBarr:vY,RBarr:yY,rbbrk:bY,rbrace:wY,rbrack:xY,rbrke:kY,rbrksld:_Y,rbrkslu:SY,Rcaron:TY,rcaron:CY,Rcedil:EY,rcedil:AY,rceil:LY,rcub:MY,Rcy:NY,rcy:OY,rdca:PY,rdldhar:$Y,rdquo:RY,rdquor:IY,rdsh:DY,real:zY,realine:FY,realpart:HY,reals:BY,Re:jY,rect:WY,reg:qY,REG:UY,ReverseElement:VY,ReverseEquilibrium:GY,ReverseUpEquilibrium:KY,rfisht:XY,rfloor:YY,rfr:ZY,Rfr:JY,rHar:QY,rhard:eZ,rharu:tZ,rharul:nZ,Rho:rZ,rho:iZ,rhov:oZ,RightAngleBracket:sZ,RightArrowBar:lZ,rightarrow:aZ,RightArrow:cZ,Rightarrow:uZ,RightArrowLeftArrow:fZ,rightarrowtail:dZ,RightCeiling:hZ,RightDoubleBracket:pZ,RightDownTeeVector:gZ,RightDownVectorBar:mZ,RightDownVector:vZ,RightFloor:yZ,rightharpoondown:bZ,rightharpoonup:wZ,rightleftarrows:xZ,rightleftharpoons:kZ,rightrightarrows:_Z,rightsquigarrow:SZ,RightTeeArrow:TZ,RightTee:CZ,RightTeeVector:EZ,rightthreetimes:AZ,RightTriangleBar:LZ,RightTriangle:MZ,RightTriangleEqual:NZ,RightUpDownVector:OZ,RightUpTeeVector:PZ,RightUpVectorBar:$Z,RightUpVector:RZ,RightVectorBar:IZ,RightVector:DZ,ring:zZ,risingdotseq:FZ,rlarr:HZ,rlhar:BZ,rlm:jZ,rmoustache:WZ,rmoust:qZ,rnmid:UZ,roang:VZ,roarr:GZ,robrk:KZ,ropar:XZ,ropf:YZ,Ropf:ZZ,roplus:JZ,rotimes:QZ,RoundImplies:eJ,rpar:tJ,rpargt:nJ,rppolint:rJ,rrarr:iJ,Rrightarrow:oJ,rsaquo:sJ,rscr:lJ,Rscr:aJ,rsh:cJ,Rsh:uJ,rsqb:fJ,rsquo:dJ,rsquor:hJ,rthree:pJ,rtimes:gJ,rtri:mJ,rtrie:vJ,rtrif:yJ,rtriltri:bJ,RuleDelayed:wJ,ruluhar:xJ,rx:kJ,Sacute:_J,sacute:SJ,sbquo:TJ,scap:CJ,Scaron:EJ,scaron:AJ,Sc:LJ,sc:MJ,sccue:NJ,sce:OJ,scE:PJ,Scedil:$J,scedil:RJ,Scirc:IJ,scirc:DJ,scnap:zJ,scnE:FJ,scnsim:HJ,scpolint:BJ,scsim:jJ,Scy:WJ,scy:qJ,sdotb:UJ,sdot:VJ,sdote:GJ,searhk:KJ,searr:XJ,seArr:YJ,searrow:ZJ,sect:JJ,semi:QJ,seswar:eQ,setminus:tQ,setmn:nQ,sext:rQ,Sfr:iQ,sfr:oQ,sfrown:sQ,sharp:lQ,SHCHcy:aQ,shchcy:cQ,SHcy:uQ,shcy:fQ,ShortDownArrow:dQ,ShortLeftArrow:hQ,shortmid:pQ,shortparallel:gQ,ShortRightArrow:mQ,ShortUpArrow:vQ,shy:yQ,Sigma:bQ,sigma:wQ,sigmaf:xQ,sigmav:kQ,sim:_Q,simdot:SQ,sime:TQ,simeq:CQ,simg:EQ,simgE:AQ,siml:LQ,simlE:MQ,simne:NQ,simplus:OQ,simrarr:PQ,slarr:$Q,SmallCircle:RQ,smallsetminus:IQ,smashp:DQ,smeparsl:zQ,smid:FQ,smile:HQ,smt:BQ,smte:jQ,smtes:WQ,SOFTcy:qQ,softcy:UQ,solbar:VQ,solb:GQ,sol:KQ,Sopf:XQ,sopf:YQ,spades:ZQ,spadesuit:JQ,spar:QQ,sqcap:eee,sqcaps:tee,sqcup:nee,sqcups:ree,Sqrt:iee,sqsub:oee,sqsube:see,sqsubset:lee,sqsubseteq:aee,sqsup:cee,sqsupe:uee,sqsupset:fee,sqsupseteq:dee,square:hee,Square:pee,SquareIntersection:gee,SquareSubset:mee,SquareSubsetEqual:vee,SquareSuperset:yee,SquareSupersetEqual:bee,SquareUnion:wee,squarf:xee,squ:kee,squf:_ee,srarr:See,Sscr:Tee,sscr:Cee,ssetmn:Eee,ssmile:Aee,sstarf:Lee,Star:Mee,star:Nee,starf:Oee,straightepsilon:Pee,straightphi:$ee,strns:Ree,sub:Iee,Sub:Dee,subdot:zee,subE:Fee,sube:Hee,subedot:Bee,submult:jee,subnE:Wee,subne:qee,subplus:Uee,subrarr:Vee,subset:Gee,Subset:Kee,subseteq:Xee,subseteqq:Yee,SubsetEqual:Zee,subsetneq:Jee,subsetneqq:Qee,subsim:ete,subsub:tte,subsup:nte,succapprox:rte,succ:ite,succcurlyeq:ote,Succeeds:ste,SucceedsEqual:lte,SucceedsSlantEqual:ate,SucceedsTilde:cte,succeq:ute,succnapprox:fte,succneqq:dte,succnsim:hte,succsim:pte,SuchThat:gte,sum:mte,Sum:vte,sung:yte,sup1:bte,sup2:wte,sup3:xte,sup:kte,Sup:_te,supdot:Ste,supdsub:Tte,supE:Cte,supe:Ete,supedot:Ate,Superset:Lte,SupersetEqual:Mte,suphsol:Nte,suphsub:Ote,suplarr:Pte,supmult:$te,supnE:Rte,supne:Ite,supplus:Dte,supset:zte,Supset:Fte,supseteq:Hte,supseteqq:Bte,supsetneq:jte,supsetneqq:Wte,supsim:qte,supsub:Ute,supsup:Vte,swarhk:Gte,swarr:Kte,swArr:Xte,swarrow:Yte,swnwar:Zte,szlig:Jte,Tab:Qte,target:ene,Tau:tne,tau:nne,tbrk:rne,Tcaron:ine,tcaron:one,Tcedil:sne,tcedil:lne,Tcy:ane,tcy:cne,tdot:une,telrec:fne,Tfr:dne,tfr:hne,there4:pne,therefore:gne,Therefore:mne,Theta:vne,theta:yne,thetasym:bne,thetav:wne,thickapprox:xne,thicksim:kne,ThickSpace:_ne,ThinSpace:Sne,thinsp:Tne,thkap:Cne,thksim:Ene,THORN:Ane,thorn:Lne,tilde:Mne,Tilde:Nne,TildeEqual:One,TildeFullEqual:Pne,TildeTilde:$ne,timesbar:Rne,timesb:Ine,times:Dne,timesd:zne,tint:Fne,toea:Hne,topbot:Bne,topcir:jne,top:Wne,Topf:qne,topf:Une,topfork:Vne,tosa:Gne,tprime:Kne,trade:Xne,TRADE:Yne,triangle:Zne,triangledown:Jne,triangleleft:Qne,trianglelefteq:ere,triangleq:tre,triangleright:nre,trianglerighteq:rre,tridot:ire,trie:ore,triminus:sre,TripleDot:lre,triplus:are,trisb:cre,tritime:ure,trpezium:fre,Tscr:dre,tscr:hre,TScy:pre,tscy:gre,TSHcy:mre,tshcy:vre,Tstrok:yre,tstrok:bre,twixt:wre,twoheadleftarrow:xre,twoheadrightarrow:kre,Uacute:_re,uacute:Sre,uarr:Tre,Uarr:Cre,uArr:Ere,Uarrocir:Are,Ubrcy:Lre,ubrcy:Mre,Ubreve:Nre,ubreve:Ore,Ucirc:Pre,ucirc:$re,Ucy:Rre,ucy:Ire,udarr:Dre,Udblac:zre,udblac:Fre,udhar:Hre,ufisht:Bre,Ufr:jre,ufr:Wre,Ugrave:qre,ugrave:Ure,uHar:Vre,uharl:Gre,uharr:Kre,uhblk:Xre,ulcorn:Yre,ulcorner:Zre,ulcrop:Jre,ultri:Qre,Umacr:eie,umacr:tie,uml:nie,UnderBar:rie,UnderBrace:iie,UnderBracket:oie,UnderParenthesis:sie,Union:lie,UnionPlus:aie,Uogon:cie,uogon:uie,Uopf:fie,uopf:die,UpArrowBar:hie,uparrow:pie,UpArrow:gie,Uparrow:mie,UpArrowDownArrow:vie,updownarrow:yie,UpDownArrow:bie,Updownarrow:wie,UpEquilibrium:xie,upharpoonleft:kie,upharpoonright:_ie,uplus:Sie,UpperLeftArrow:Tie,UpperRightArrow:Cie,upsi:Eie,Upsi:Aie,upsih:Lie,Upsilon:Mie,upsilon:Nie,UpTeeArrow:Oie,UpTee:Pie,upuparrows:$ie,urcorn:Rie,urcorner:Iie,urcrop:Die,Uring:zie,uring:Fie,urtri:Hie,Uscr:Bie,uscr:jie,utdot:Wie,Utilde:qie,utilde:Uie,utri:Vie,utrif:Gie,uuarr:Kie,Uuml:Xie,uuml:Yie,uwangle:Zie,vangrt:Jie,varepsilon:Qie,varkappa:eoe,varnothing:toe,varphi:noe,varpi:roe,varpropto:ioe,varr:ooe,vArr:soe,varrho:loe,varsigma:aoe,varsubsetneq:coe,varsubsetneqq:uoe,varsupsetneq:foe,varsupsetneqq:doe,vartheta:hoe,vartriangleleft:poe,vartriangleright:goe,vBar:moe,Vbar:voe,vBarv:yoe,Vcy:boe,vcy:woe,vdash:xoe,vDash:koe,Vdash:_oe,VDash:Soe,Vdashl:Toe,veebar:Coe,vee:Eoe,Vee:Aoe,veeeq:Loe,vellip:Moe,verbar:Noe,Verbar:Ooe,vert:Poe,Vert:$oe,VerticalBar:Roe,VerticalLine:Ioe,VerticalSeparator:Doe,VerticalTilde:zoe,VeryThinSpace:Foe,Vfr:Hoe,vfr:Boe,vltri:joe,vnsub:Woe,vnsup:qoe,Vopf:Uoe,vopf:Voe,vprop:Goe,vrtri:Koe,Vscr:Xoe,vscr:Yoe,vsubnE:Zoe,vsubne:Joe,vsupnE:Qoe,vsupne:ese,Vvdash:tse,vzigzag:nse,Wcirc:rse,wcirc:ise,wedbar:ose,wedge:sse,Wedge:lse,wedgeq:ase,weierp:cse,Wfr:use,wfr:fse,Wopf:dse,wopf:hse,wp:pse,wr:gse,wreath:mse,Wscr:vse,wscr:yse,xcap:bse,xcirc:wse,xcup:xse,xdtri:kse,Xfr:_se,xfr:Sse,xharr:Tse,xhArr:Cse,Xi:Ese,xi:Ase,xlarr:Lse,xlArr:Mse,xmap:Nse,xnis:Ose,xodot:Pse,Xopf:$se,xopf:Rse,xoplus:Ise,xotime:Dse,xrarr:zse,xrArr:Fse,Xscr:Hse,xscr:Bse,xsqcup:jse,xuplus:Wse,xutri:qse,xvee:Use,xwedge:Vse,Yacute:Gse,yacute:Kse,YAcy:Xse,yacy:Yse,Ycirc:Zse,ycirc:Jse,Ycy:Qse,ycy:ele,yen:tle,Yfr:nle,yfr:rle,YIcy:ile,yicy:ole,Yopf:sle,yopf:lle,Yscr:ale,yscr:cle,YUcy:ule,yucy:fle,yuml:dle,Yuml:hle,Zacute:ple,zacute:gle,Zcaron:mle,zcaron:vle,Zcy:yle,zcy:ble,Zdot:wle,zdot:xle,zeetrf:kle,ZeroWidthSpace:_le,Zeta:Sle,zeta:Tle,zfr:Cle,Zfr:Ele,ZHcy:Ale,zhcy:Lle,zigrarr:Mle,zopf:Nle,Zopf:Ole,Zscr:Ple,zscr:$le,zwj:Rle,zwnj:Ile},Dle="Á",zle="á",Fle="Â",Hle="â",Ble="´",jle="Æ",Wle="æ",qle="À",Ule="à",Vle="&",Gle="&",Kle="Å",Xle="å",Yle="Ã",Zle="ã",Jle="Ä",Qle="ä",eae="¦",tae="Ç",nae="ç",rae="¸",iae="¢",oae="©",sae="©",lae="¤",aae="°",cae="÷",uae="É",fae="é",dae="Ê",hae="ê",pae="È",gae="è",mae="Ð",vae="ð",yae="Ë",bae="ë",wae="½",xae="¼",kae="¾",_ae=">",Sae=">",Tae="Í",Cae="í",Eae="Î",Aae="î",Lae="¡",Mae="Ì",Nae="ì",Oae="¿",Pae="Ï",$ae="ï",Rae="«",Iae="<",Dae="<",zae="¯",Fae="µ",Hae="·",Bae=" ",jae="¬",Wae="Ñ",qae="ñ",Uae="Ó",Vae="ó",Gae="Ô",Kae="ô",Xae="Ò",Yae="ò",Zae="ª",Jae="º",Qae="Ø",ece="ø",tce="Õ",nce="õ",rce="Ö",ice="ö",oce="¶",sce="±",lce="£",ace='"',cce='"',uce="»",fce="®",dce="®",hce="§",pce="",gce="¹",mce="²",vce="³",yce="ß",bce="Þ",wce="þ",xce="×",kce="Ú",_ce="ú",Sce="Û",Tce="û",Cce="Ù",Ece="ù",Ace="¨",Lce="Ü",Mce="ü",Nce="Ý",Oce="ý",Pce="¥",$ce="ÿ",Rce={Aacute:Dle,aacute:zle,Acirc:Fle,acirc:Hle,acute:Ble,AElig:jle,aelig:Wle,Agrave:qle,agrave:Ule,amp:Vle,AMP:Gle,Aring:Kle,aring:Xle,Atilde:Yle,atilde:Zle,Auml:Jle,auml:Qle,brvbar:eae,Ccedil:tae,ccedil:nae,cedil:rae,cent:iae,copy:oae,COPY:sae,curren:lae,deg:aae,divide:cae,Eacute:uae,eacute:fae,Ecirc:dae,ecirc:hae,Egrave:pae,egrave:gae,ETH:mae,eth:vae,Euml:yae,euml:bae,frac12:wae,frac14:xae,frac34:kae,gt:_ae,GT:Sae,Iacute:Tae,iacute:Cae,Icirc:Eae,icirc:Aae,iexcl:Lae,Igrave:Mae,igrave:Nae,iquest:Oae,Iuml:Pae,iuml:$ae,laquo:Rae,lt:Iae,LT:Dae,macr:zae,micro:Fae,middot:Hae,nbsp:Bae,not:jae,Ntilde:Wae,ntilde:qae,Oacute:Uae,oacute:Vae,Ocirc:Gae,ocirc:Kae,Ograve:Xae,ograve:Yae,ordf:Zae,ordm:Jae,Oslash:Qae,oslash:ece,Otilde:tce,otilde:nce,Ouml:rce,ouml:ice,para:oce,plusmn:sce,pound:lce,quot:ace,QUOT:cce,raquo:uce,reg:fce,REG:dce,sect:hce,shy:pce,sup1:gce,sup2:mce,sup3:vce,szlig:yce,THORN:bce,thorn:wce,times:xce,Uacute:kce,uacute:_ce,Ucirc:Sce,ucirc:Tce,Ugrave:Cce,ugrave:Ece,uml:Ace,Uuml:Lce,uuml:Mce,Yacute:Nce,yacute:Oce,yen:Pce,yuml:$ce},Ice="&",Dce="'",zce=">",Fce="<",Hce='"',Ix={amp:Ice,apos:Dce,gt:zce,lt:Fce,quot:Hce};var $s={};const Bce={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 N0;function jce(){if(N0)return $s;N0=1;var e=$s&&$s.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty($s,"__esModule",{value:!0});var t=e(Bce),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 $s.default=o,$s}var O0;function P0(){if(O0)return Lr;O0=1;var e=Lr&&Lr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.decodeHTML=Lr.decodeHTMLStrict=Lr.decodeXML=void 0;var t=e(Rx),r=e(Rce),o=e(Ix),s=e(jce()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Lr.decodeXML=f(o.default),Lr.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p<g?1:-1};Lr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),g=Object.keys(t.default).sort(d),v=0,b=0;v<g.length;v++)p[b]===g[v]?(g[v]+=";?",b++):g[v]+=";";var x=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=h(t.default);function L(N){return N.substr(-1)!==";"&&(N+=";"),C(N)}return function(N){return String(N).replace(x,L)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var b=v.charAt(2);return b==="X"||b==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Lr}var Pn={},$0;function R0(){if($0)return Pn;$0=1;var e=Pn&&Pn.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.escapeUTF8=Pn.escape=Pn.encodeNonAsciiHTML=Pn.encodeHTML=Pn.encodeXML=void 0;var t=e(Ix),r=d(t.default),o=h(r);Pn.encodeXML=N(r);var s=e(Rx),c=d(s.default),f=h(c);Pn.encodeHTML=b(c,f),Pn.encodeNonAsciiHTML=N(c);function d(M){return Object.keys(M).sort().reduce(function($,F){return $[M[F]]="&"+F+";",$},{})}function h(M){for(var $=[],F=[],E=0,I=Object.keys(M);E<I.length;E++){var q=I[E];q.length===1?$.push("\\"+q):F.push(q)}$.sort();for(var Y=0;Y<$.length-1;Y++){for(var oe=Y;oe<$.length-1&&$[oe].charCodeAt(1)+1===$[oe+1].charCodeAt(1);)oe+=1;var J=1+oe-Y;J<3||$.splice(Y,J,$[Y]+"-"+$[oe])}return F.unshift("["+$.join("")+"]"),new RegExp(F.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function v(M){return"&#x"+(M.length>1?g(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,$){return function(F){return F.replace($,function(E){return M[E]}).replace(p,v)}}var x=new RegExp(o.source+"|"+p.source,"g");function C(M){return M.replace(x,v)}Pn.escape=C;function L(M){return M.replace(o,v)}Pn.escapeUTF8=L;function N(M){return function($){return $.replace(x,function(F){return M[F]||v(F)})}}return Pn}var I0;function Wce(){return I0||(I0=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=P0(),r=R0();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=R0();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=P0();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}})})(Fd)),Fd}var Hd,D0;function qce(){if(D0)return Hd;D0=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var S=0;S<O.length;S++){var k=O[S];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(P,k.key,k)}}function r(P,O,S){return O&&t(P.prototype,O),P}function o(P,O){var S=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!S){if(Array.isArray(P)||(S=s(P))||O){S&&(P=S);var k=0,D=function(){};return{s:D,n:function(){return k>=P.length?{done:!0}:{done:!1,value:P[k++]}},e:function(je){throw je},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=!0,ae=!1,ce;return{s:function(){S=S.call(P)},n:function(){var je=S.next();return R=je.done,je},e:function(je){ae=!0,ce=je},f:function(){try{!R&&S.return!=null&&S.return()}finally{if(ae)throw ce}}}}function s(P,O){if(P){if(typeof P=="string")return c(P,O);var S=Object.prototype.toString.call(P).slice(8,-1);if(S==="Object"&&P.constructor&&(S=P.constructor.name),S==="Map"||S==="Set")return Array.from(P);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return c(P,O)}}function c(P,O){(O==null||O>P.length)&&(O=P.length);for(var S=0,k=new Array(O);S<O;S++)k[S]=P[S];return k}var f=Wce(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={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 N(0,5).forEach(function(O){N(0,5).forEach(function(S){N(0,5).forEach(function(k){return p(O,S,k,P)})})}),N(0,23).forEach(function(O){var S=O+232,k=g(O*10+8);P[S]="#"+k+k+k}),P}function p(P,O,S,k){var D=16+P*36+O*6+S,R=P>0?P*40+55:0,ae=O>0?O*40+55:0,ce=S>0?S*40+55:0;k[D]=v([R,ae,ce])}function g(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function v(P){var O=[],S=o(P),k;try{for(S.s();!(k=S.n()).done;){var D=k.value;O.push(g(D))}}catch(R){S.e(R)}finally{S.f()}return"#"+O.join("")}function b(P,O,S,k){var D;return O==="text"?D=F(S,k):O==="display"?D=C(P,S,k):O==="xterm256Foreground"?D=q(P,k.colors[S]):O==="xterm256Background"?D=Y(P,k.colors[S]):O==="rgb"&&(D=x(P,S)),D}function x(P,O){O=O.substring(2).slice(0,-1);var S=+O.substr(0,2),k=O.substring(5).split(";"),D=k.map(function(R){return("0"+Number(R).toString(16)).substr(-2)}).join("");return I(P,(S===38?"color:#":"background-color:#")+D)}function C(P,O,S){O=parseInt(O,10);var k={"-1":function(){return"<br/>"},0:function(){return P.length&&L(P)},1:function(){return E(P,"b")},3:function(){return E(P,"i")},4:function(){return E(P,"u")},8:function(){return I(P,"display:none")},9:function(){return E(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return oe(P,"i")},24:function(){return oe(P,"u")},39:function(){return q(P,S.fg)},49:function(){return Y(P,S.bg)},53:function(){return I(P,"text-decoration:overline")}},D;return k[O]?D=k[O]():4<O&&O<7?D=E(P,"blink"):29<O&&O<38?D=q(P,S.colors[O-30]):39<O&&O<48?D=Y(P,S.colors[O-40]):89<O&&O<98?D=q(P,S.colors[8+(O-90)]):99<O&&O<108&&(D=Y(P,S.colors[8+(O-100)])),D}function L(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(S){return"</"+S+">"}).join("")}function N(P,O){for(var S=[],k=P;k<=O;k++)S.push(k);return S}function M(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function $(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function F(P,O){return O.escapeXML?f.encodeXML(P):P}function E(P,O,S){return S||(S=""),P.push(O),"<".concat(O).concat(S?' style="'.concat(S,'"'):"",">")}function I(P,O){return E(P,"span",O)}function q(P,O){return E(P,"span","color:"+O)}function Y(P,O){return E(P,"span","background-color:"+O)}function oe(P,O){var S;if(P.slice(-1)[0]===O&&(S=P.pop()),S)return"</"+O+">"}function J(P,O,S){var k=!1,D=3;function R(){return""}function ae(j,ee){return S("xterm256Foreground",ee),""}function ce(j,ee){return S("xterm256Background",ee),""}function _e(j){return O.newline?S("display",-1):S("text",j),""}function je(j,ee){k=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var he=o(ee),pe;try{for(he.s();!(pe=he.n()).done;){var me=pe.value;S("display",me)}}catch(Ce){he.e(Ce)}finally{he.f()}return""}function Ae(j){return S("text",j),""}function Ke(j){return S("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:R},{pattern:/^\x1b\[[012]?K/,sub:R},{pattern:/^\x1b\[\(B/,sub:R},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ce},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:je},{pattern:/^\x1b\[\d?J/,sub:R},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:R},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:R},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function He(j,ee){ee>D&&k||(k=!1,P=P.replace(j.pattern,j.sub))}var $e=[],H=P,Z=H.length;e:for(;Z>0;){for(var re=0,le=0,ue=Ue.length;le<ue;re=++le){var z=Ue[re];if(He(z,re),P.length!==Z){Z=P.length;continue e}}if(P.length===Z)break;$e.push(0),Z=P.length}return $e}function G(P,O,S){return O!=="text"&&(P=P.filter(M($(S))),P.push({token:O,data:S,category:$(S)})),P}var K=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(P,[{key:"toHtml",value:function(S){var k=this;S=typeof S=="string"?[S]:S;var D=this.stack,R=this.options,ae=[];return this.stickyStack.forEach(function(ce){var _e=b(D,ce.token,ce.data,R);_e&&ae.push(_e)}),J(S.join(""),R,function(ce,_e){var je=b(D,ce,_e,R);je&&ae.push(je),R.stream&&(k.stickyStack=G(k.stickyStack,ce,_e))}),D.length&&ae.push(L(D)),ae.join("")}}]),P})();return Hd=K,Hd}var Uce=qce();const Vce=$x(Uce);function ga(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Gce(e,t){return t&&e.endsWith(t)}async function Np(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Op(e){return new Vce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Kce(e){return e===null||typeof e!="function"&&typeof e!="object"}function Dx(e){let t=e;if(Kce(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=ZA(t.stack||"",{ignoreStackEntries:[]}),t}function Xce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(ga(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(ga(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(ga(t.stack))}`),r.length>0?r:null}function zx(e,t){const r=Op(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>Xce(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const ec=bA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),ko=os(ec,"file"),gn=os(ec,"view"),Fx=os(ec,"line"),Hx=os(ec,"column"),_i=os(ec,"test");var z0={exports:{}},F0;function Pp(){return F0||(F0=1,(function(e,t){(function(r){r(To())})(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,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function A(Qt){return{type:Qt,style:"keyword"}}var U=A("keyword a"),ye=A("keyword b"),Se=A("keyword c"),de=A("keyword d"),Ie=A("operator"),pt={type:"atom",style:"atom"};return{if:A("if"),while:U,with:U,else:ye,do:ye,try:ye,finally:ye,return:de,break:de,continue:de,new:A("new"),delete:Se,void:Se,throw:Se,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:A("this"),class:A("class"),super:A("atom"),yield:Se,export:A("export"),import:A("import"),extends:Se,await:Se}})(),x=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(A){for(var U=!1,ye,Se=!1;(ye=A.next())!=null;){if(!U){if(ye=="/"&&!Se)return;ye=="["?Se=!0:Se&&ye=="]"&&(Se=!1)}U=!U&&ye=="\\"}}var N,M;function $(A,U,ye){return N=A,M=ye,U}function F(A,U){var ye=A.next();if(ye=='"'||ye=="'")return U.tokenize=E(ye),U.tokenize(A,U);if(ye=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return $("number","number");if(ye=="."&&A.match(".."))return $("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return $(ye);if(ye=="="&&A.eat(">"))return $("=>","operator");if(ye=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return $("number","number");if(/\d/.test(ye))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),$("number","number");if(ye=="/")return A.eat("*")?(U.tokenize=I,I(A,U)):A.eat("/")?(A.skipToEnd(),$("comment","comment")):er(A,U,1)?(L(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),$("regexp","string-2")):(A.eat("="),$("operator","operator",A.current()));if(ye=="`")return U.tokenize=q,q(A,U);if(ye=="#"&&A.peek()=="!")return A.skipToEnd(),$("meta","meta");if(ye=="#"&&A.eatWhile(v))return $("variable","property");if(ye=="<"&&A.match("!--")||ye=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),$("comment","comment");if(x.test(ye))return(ye!=">"||!U.lexical||U.lexical.type!=">")&&(A.eat("=")?(ye=="!"||ye=="=")&&A.eat("="):/[<>*+\-|&?]/.test(ye)&&(A.eat(ye),ye==">"&&A.eat(ye))),ye=="?"&&A.eat(".")?$("."):$("operator","operator",A.current());if(v.test(ye)){A.eatWhile(v);var Se=A.current();if(U.lastType!="."){if(b.propertyIsEnumerable(Se)){var de=b[Se];return $(de.type,de.style,Se)}if(Se=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return $("async","keyword",Se)}return $("variable","variable",Se)}}function E(A){return function(U,ye){var Se=!1,de;if(d&&U.peek()=="@"&&U.match(C))return ye.tokenize=F,$("jsonld-keyword","meta");for(;(de=U.next())!=null&&!(de==A&&!Se);)Se=!Se&&de=="\\";return Se||(ye.tokenize=F),$("string","string")}}function I(A,U){for(var ye=!1,Se;Se=A.next();){if(Se=="/"&&ye){U.tokenize=F;break}ye=Se=="*"}return $("comment","comment")}function q(A,U){for(var ye=!1,Se;(Se=A.next())!=null;){if(!ye&&(Se=="`"||Se=="$"&&A.eat("{"))){U.tokenize=F;break}ye=!ye&&Se=="\\"}return $("quasi","string-2",A.current())}var Y="([{}])";function oe(A,U){U.fatArrowAt&&(U.fatArrowAt=null);var ye=A.string.indexOf("=>",A.start);if(!(ye<0)){if(g){var Se=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,ye));Se&&(ye=Se.index)}for(var de=0,Ie=!1,pt=ye-1;pt>=0;--pt){var Qt=A.string.charAt(pt),En=Y.indexOf(Qt);if(En>=0&&En<3){if(!de){++pt;break}if(--de==0){Qt=="("&&(Ie=!0);break}}else if(En>=3&&En<6)++de;else if(v.test(Qt))Ie=!0;else if(/["'\/`]/.test(Qt))for(;;--pt){if(pt==0)return;var hs=A.string.charAt(pt-1);if(hs==Qt&&A.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!de){++pt;break}}Ie&&!de&&(U.fatArrowAt=pt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(A,U,ye,Se,de,Ie){this.indented=A,this.column=U,this.type=ye,this.prev=de,this.info=Ie,Se!=null&&(this.align=Se)}function K(A,U){if(!p)return!1;for(var ye=A.localVars;ye;ye=ye.next)if(ye.name==U)return!0;for(var Se=A.context;Se;Se=Se.prev)for(var ye=Se.vars;ye;ye=ye.next)if(ye.name==U)return!0}function P(A,U,ye,Se,de){var Ie=A.cc;for(O.state=A,O.stream=de,O.marked=null,O.cc=Ie,O.style=U,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ue:re;if(pt(ye,Se)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:ye=="variable"&&K(A,Se)?"variable-2":U}}}var O={state:null,marked:null,cc:null};function S(){for(var A=arguments.length-1;A>=0;A--)O.cc.push(arguments[A])}function k(){return S.apply(null,arguments),!0}function D(A,U){for(var ye=U;ye;ye=ye.next)if(ye.name==A)return!0;return!1}function R(A){var U=O.state;if(O.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var ye=ae(A,U.context);if(ye!=null){U.context=ye;return}}else if(!D(A,U.localVars)){U.localVars=new je(A,U.localVars);return}}s.globalVars&&!D(A,U.globalVars)&&(U.globalVars=new je(A,U.globalVars))}}function ae(A,U){if(U)if(U.block){var ye=ae(A,U.prev);return ye?ye==U.prev?U:new _e(ye,U.vars,!0):null}else return D(A,U.vars)?U:new _e(U.prev,new je(A,U.vars),!1);else return null}function ce(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function _e(A,U,ye){this.prev=A,this.vars=U,this.block=ye}function je(A,U){this.name=A,this.next=U}var Ae=new je("this",new je("arguments",null));function Ke(){O.state.context=new _e(O.state.context,O.state.localVars,!1),O.state.localVars=Ae}function Ue(){O.state.context=new _e(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ke.lex=Ue.lex=!0;function He(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}He.lex=!0;function $e(A,U){var ye=function(){var Se=O.state,de=Se.indented;if(Se.lexical.type=="stat")de=Se.lexical.indented;else for(var Ie=Se.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)de=Ie.indented;Se.lexical=new G(de,O.stream.column(),A,null,Se.lexical,U)};return ye.lex=!0,ye}function H(){var A=O.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}H.lex=!0;function Z(A){function U(ye){return ye==A?k():A==";"||ye=="}"||ye==")"||ye=="]"?S():k(U)}return U}function re(A,U){return A=="var"?k($e("vardef",U),ss,Z(";"),H):A=="keyword a"?k($e("form"),j,re,H):A=="keyword b"?k($e("form"),re,H):A=="keyword d"?O.stream.match(/^\s*$/,!1)?k():k($e("stat"),he,Z(";"),H):A=="debugger"?k(Z(";")):A=="{"?k($e("}"),Ue,qt,H,He):A==";"?k():A=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==H&&O.state.cc.pop()(),k($e("form"),j,re,H,ls)):A=="function"?k(dr):A=="for"?k($e("form"),Ue,oc,re,He,H):A=="class"||g&&U=="interface"?(O.marked="keyword",k($e("form",A=="class"?A:U),as,H)):A=="variable"?g&&U=="declare"?(O.marked="keyword",k(re)):g&&(U=="module"||U=="enum"||U=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",U=="enum"?k(qe):U=="type"?k(sc,Z("operator"),at,Z(";")):k($e("form"),Cn,Z("{"),$e("}"),qt,H,H)):g&&U=="namespace"?(O.marked="keyword",k($e("form"),ue,re,H)):g&&U=="abstract"?(O.marked="keyword",k(re)):k($e("stat"),Re):A=="switch"?k($e("form"),j,Z("{"),$e("}","switch"),Ue,qt,H,H,He):A=="case"?k(ue,Z(":")):A=="default"?k(Z(":")):A=="catch"?k($e("form"),Ke,le,re,H,He):A=="export"?k($e("stat"),cs,H):A=="import"?k($e("stat"),Hi,H):A=="async"?k(re):U=="@"?k(ue,re):S($e("stat"),ue,Z(";"),H)}function le(A){if(A=="(")return k(kr,Z(")"))}function ue(A,U){return ee(A,U,!1)}function z(A,U){return ee(A,U,!0)}function j(A){return A!="("?S():k($e(")"),he,Z(")"),H)}function ee(A,U,ye){if(O.state.fatArrowAt==O.stream.start){var Se=ye?be:xe;if(A=="(")return k(Ke,$e(")"),ut(kr,")"),H,Z("=>"),Se,He);if(A=="variable")return S(Ke,Cn,Z("=>"),Se,He)}var de=ye?me:pe;return J.hasOwnProperty(A)?k(de):A=="function"?k(dr,de):A=="class"||g&&U=="interface"?(O.marked="keyword",k($e("form"),Af,H)):A=="keyword c"||A=="async"?k(ye?z:ue):A=="("?k($e(")"),he,Z(")"),H,de):A=="operator"||A=="spread"?k(ye?z:ue):A=="["?k($e("]"),It,H,de):A=="{"?Jt(ct,"}",null,de):A=="quasi"?S(Ce,de):A=="new"?k(Q(ye)):k()}function he(A){return A.match(/[;\}\)\],]/)?S():S(ue)}function pe(A,U){return A==","?k(he):me(A,U,!1)}function me(A,U,ye){var Se=ye==!1?pe:me,de=ye==!1?ue:z;if(A=="=>")return k(Ke,ye?be:xe,He);if(A=="operator")return/\+\+|--/.test(U)||g&&U=="!"?k(Se):g&&U=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k($e(">"),ut(at,">"),H,Se):U=="?"?k(ue,Z(":"),de):k(de);if(A=="quasi")return S(Ce,Se);if(A!=";"){if(A=="(")return Jt(z,")","call",Se);if(A==".")return k(Qe,Se);if(A=="[")return k($e("]"),he,Z("]"),H,Se);if(g&&U=="as")return O.marked="keyword",k(at,Se);if(A=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),k(de)}}function Ce(A,U){return A!="quasi"?S():U.slice(U.length-2)!="${"?k(Ce):k(he,Ee)}function Ee(A){if(A=="}")return O.marked="string-2",O.state.tokenize=q,k(Ce)}function xe(A){return oe(O.stream,O.state),S(A=="{"?re:ue)}function be(A){return oe(O.stream,O.state),S(A=="{"?re:z)}function Q(A){return function(U){return U=="."?k(A?ie:fe):U=="variable"&&g?k(qn,A?me:pe):S(A?z:ue)}}function fe(A,U){if(U=="target")return O.marked="keyword",k(pe)}function ie(A,U){if(U=="target")return O.marked="keyword",k(me)}function Re(A){return A==":"?k(H,re):S(pe,Z(";"),H)}function Qe(A){if(A=="variable")return O.marked="property",k()}function ct(A,U){if(A=="async")return O.marked="property",k(ct);if(A=="variable"||O.style=="keyword"){if(O.marked="property",U=="get"||U=="set")return k(dt);var ye;return g&&O.state.fatArrowAt==O.stream.start&&(ye=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+ye[0].length),k(Nt)}else{if(A=="number"||A=="string")return O.marked=d?"property":O.style+" property",k(Nt);if(A=="jsonld-keyword")return k(Nt);if(g&&ce(U))return O.marked="keyword",k(ct);if(A=="[")return k(ue,jn,Z("]"),Nt);if(A=="spread")return k(z,Nt);if(U=="*")return O.marked="keyword",k(ct);if(A==":")return S(Nt)}}function dt(A){return A!="variable"?S(Nt):(O.marked="property",k(dr))}function Nt(A){if(A==":")return k(z);if(A=="(")return S(dr)}function ut(A,U,ye){function Se(de,Ie){if(ye?ye.indexOf(de)>-1:de==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Qt,En){return Qt==U||En==U?S():S(A)},Se)}return de==U||Ie==U?k():ye&&ye.indexOf(";")>-1?S(A):k(Z(U))}return function(de,Ie){return de==U||Ie==U?k():S(A,Se)}}function Jt(A,U,ye){for(var Se=3;Se<arguments.length;Se++)O.cc.push(arguments[Se]);return k($e(U,ye),ut(A,U),H)}function qt(A){return A=="}"?k():S(re,qt)}function jn(A,U){if(g){if(A==":")return k(at);if(U=="?")return k(jn)}}function jr(A,U){if(g&&(A==":"||U=="in"))return k(at)}function Ht(A){if(g&&A==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?k(ue,Wn,at):k(at)}function Wn(A,U){if(U=="is")return O.marked="keyword",k()}function at(A,U){if(U=="keyof"||U=="typeof"||U=="infer"||U=="readonly")return O.marked="keyword",k(U=="typeof"?z:at);if(A=="variable"||U=="void")return O.marked="type",k(fr);if(U=="|"||U=="&")return k(at);if(A=="string"||A=="number"||A=="atom")return k(fr);if(A=="[")return k($e("]"),ut(at,"]",","),H,fr);if(A=="{")return k($e("}"),Ye,H,fr);if(A=="(")return k(ut(Rt,")"),Co,fr);if(A=="<")return k(ut(at,">"),at);if(A=="quasi")return S(un,fr)}function Co(A){if(A=="=>")return k(at)}function Ye(A){return A.match(/[\}\)\]]/)?k():A==","||A==";"?k(Ye):S(ii,Ye)}function ii(A,U){if(A=="variable"||O.style=="keyword")return O.marked="property",k(ii);if(U=="?"||A=="number"||A=="string")return k(ii);if(A==":")return k(at);if(A=="[")return k(Z("variable"),jr,Z("]"),ii);if(A=="(")return S(Fi,ii);if(!A.match(/[;\}\)\],]/))return k()}function un(A,U){return A!="quasi"?S():U.slice(U.length-2)!="${"?k(un):k(at,$t)}function $t(A){if(A=="}")return O.marked="string-2",O.state.tokenize=q,k(un)}function Rt(A,U){return A=="variable"&&O.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Rt):A==":"?k(at):A=="spread"?k(Rt):S(at)}function fr(A,U){if(U=="<")return k($e(">"),ut(at,">"),H,fr);if(U=="|"||A=="."||U=="&")return k(at);if(A=="[")return k(at,Z("]"),fr);if(U=="extends"||U=="implements")return O.marked="keyword",k(at);if(U=="?")return k(at,Z(":"),at)}function qn(A,U){if(U=="<")return k($e(">"),ut(at,">"),H,fr)}function wr(){return S(at,fn)}function fn(A,U){if(U=="=")return k(at)}function ss(A,U){return U=="enum"?(O.marked="keyword",k(qe)):S(Cn,jn,xr,Ef)}function Cn(A,U){if(g&&ce(U))return O.marked="keyword",k(Cn);if(A=="variable")return R(U),k();if(A=="spread")return k(Cn);if(A=="[")return Jt(vl,"]");if(A=="{")return Jt(Di,"}")}function Di(A,U){return A=="variable"&&!O.stream.match(/^\s*:/,!1)?(R(U),k(xr)):(A=="variable"&&(O.marked="property"),A=="spread"?k(Cn):A=="}"?S():A=="["?k(ue,Z("]"),Z(":"),Di):k(Z(":"),Cn,xr))}function vl(){return S(Cn,xr)}function xr(A,U){if(U=="=")return k(z)}function Ef(A){if(A==",")return k(ss)}function ls(A,U){if(A=="keyword b"&&U=="else")return k($e("form","else"),re,H)}function oc(A,U){if(U=="await")return k(oc);if(A=="(")return k($e(")"),yl,H)}function yl(A){return A=="var"?k(ss,zi):A=="variable"?k(zi):S(zi)}function zi(A,U){return A==")"?k():A==";"?k(zi):U=="in"||U=="of"?(O.marked="keyword",k(ue,zi)):S(ue,zi)}function dr(A,U){if(U=="*")return O.marked="keyword",k(dr);if(A=="variable")return R(U),k(dr);if(A=="(")return k(Ke,$e(")"),ut(kr,")"),H,Ht,re,He);if(g&&U=="<")return k($e(">"),ut(wr,">"),H,dr)}function Fi(A,U){if(U=="*")return O.marked="keyword",k(Fi);if(A=="variable")return R(U),k(Fi);if(A=="(")return k(Ke,$e(")"),ut(kr,")"),H,Ht,He);if(g&&U=="<")return k($e(">"),ut(wr,">"),H,Fi)}function sc(A,U){if(A=="keyword"||A=="variable")return O.marked="type",k(sc);if(U=="<")return k($e(">"),ut(wr,">"),H)}function kr(A,U){return U=="@"&&k(ue,kr),A=="spread"?k(kr):g&&ce(U)?(O.marked="keyword",k(kr)):g&&A=="this"?k(jn,xr):S(Cn,jn,xr)}function Af(A,U){return A=="variable"?as(A,U):_r(A,U)}function as(A,U){if(A=="variable")return R(U),k(_r)}function _r(A,U){if(U=="<")return k($e(">"),ut(wr,">"),H,_r);if(U=="extends"||U=="implements"||g&&A==",")return U=="implements"&&(O.marked="keyword"),k(g?at:ue,_r);if(A=="{")return k($e("}"),Sr,H)}function Sr(A,U){if(A=="async"||A=="variable"&&(U=="static"||U=="get"||U=="set"||g&&ce(U))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",k(Sr);if(A=="variable"||O.style=="keyword")return O.marked="property",k(Eo,Sr);if(A=="number"||A=="string")return k(Eo,Sr);if(A=="[")return k(ue,jn,Z("]"),Eo,Sr);if(U=="*")return O.marked="keyword",k(Sr);if(g&&A=="(")return S(Fi,Sr);if(A==";"||A==",")return k(Sr);if(A=="}")return k();if(U=="@")return k(ue,Sr)}function Eo(A,U){if(U=="!"||U=="?")return k(Eo);if(A==":")return k(at,xr);if(U=="=")return k(z);var ye=O.state.lexical.prev,Se=ye&&ye.info=="interface";return S(Se?Fi:dr)}function cs(A,U){return U=="*"?(O.marked="keyword",k(ds,Z(";"))):U=="default"?(O.marked="keyword",k(ue,Z(";"))):A=="{"?k(ut(us,"}"),ds,Z(";")):S(re)}function us(A,U){if(U=="as")return O.marked="keyword",k(Z("variable"));if(A=="variable")return S(z,us)}function Hi(A){return A=="string"?k():A=="("?S(ue):A=="."?S(pe):S(fs,Wr,ds)}function fs(A,U){return A=="{"?Jt(fs,"}"):(A=="variable"&&R(U),U=="*"&&(O.marked="keyword"),k(bl))}function Wr(A){if(A==",")return k(fs,Wr)}function bl(A,U){if(U=="as")return O.marked="keyword",k(fs)}function ds(A,U){if(U=="from")return O.marked="keyword",k(ue)}function It(A){return A=="]"?k():S(ut(z,"]"))}function qe(){return S($e("form"),Cn,Z("{"),$e("}"),ut(oi,"}"),H,H)}function oi(){return S(Cn,xr)}function wl(A,U){return A.lastType=="operator"||A.lastType==","||x.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function er(A,U,ye){return U.tokenize==F&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(ye||0)))}return{startState:function(A){var U={tokenize:F,lastType:"sof",cc:[],lexical:new G((A||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new _e(null,null,!1),indented:A||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(A,U){if(A.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=A.indentation(),oe(A,U)),U.tokenize!=I&&A.eatSpace())return null;var ye=U.tokenize(A,U);return N=="comment"?ye:(U.lastType=N=="operator"&&(M=="++"||M=="--")?"incdec":N,P(U,ye,N,M,A))},indent:function(A,U){if(A.tokenize==I||A.tokenize==q)return r.Pass;if(A.tokenize!=F)return 0;var ye=U&&U.charAt(0),Se=A.lexical,de;if(!/^\s*else\b/.test(U))for(var Ie=A.cc.length-1;Ie>=0;--Ie){var pt=A.cc[Ie];if(pt==H)Se=Se.prev;else if(pt!=ls&&pt!=He)break}for(;(Se.type=="stat"||Se.type=="form")&&(ye=="}"||(de=A.cc[A.cc.length-1])&&(de==pe||de==me)&&!/^[,\.=+\-*:?[\(]/.test(U));)Se=Se.prev;f&&Se.type==")"&&Se.prev.type=="stat"&&(Se=Se.prev);var Qt=Se.type,En=ye==Qt;return Qt=="vardef"?Se.indented+(A.lastType=="operator"||A.lastType==","?Se.info.length+1:0):Qt=="form"&&ye=="{"?Se.indented:Qt=="form"?Se.indented+c:Qt=="stat"?Se.indented+(wl(A,U)?f||c:0):Se.info=="switch"&&!En&&s.doubleIndentSwitch!=!1?Se.indented+(/^(?:case|default)\b/.test(U)?c:2*c):Se.align?Se.column+(En?0:1):Se.indented+(En?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:er,skipExpression:function(A){P(A,"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})})})()),z0.exports}Pp();var H0={exports:{}},B0;function $p(){return B0||(B0=1,(function(e,t){(function(r){r(To())})(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 g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function x(k,D){function R(_e){return D.tokenize=_e,_e(k,D)}var ae=k.next();if(ae=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?R(N("atom","]]>")):null:k.match("--")?R(N("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),R(M(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),D.tokenize=N("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",D.tokenize=C,"tag bracket");if(ae=="&"){var ce;return k.eat("#")?k.eat("x")?ce=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ce=k.eatWhile(/[\d]/)&&k.eat(";"):ce=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ce?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function C(k,D){var R=k.next();if(R==">"||R=="/"&&k.eat(">"))return D.tokenize=x,v=R==">"?"endTag":"selfcloseTag","tag bracket";if(R=="=")return v="equals",null;if(R=="<"){D.tokenize=x,D.state=q,D.tagName=D.tagStart=null;var ae=D.tokenize(k,D);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(R)?(D.tokenize=L(R),D.stringStartCol=k.column(),D.tokenize(k,D)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(k){var D=function(R,ae){for(;!R.eol();)if(R.next()==k){ae.tokenize=C;break}return"string"};return D.isInAttribute=!0,D}function N(k,D){return function(R,ae){for(;!R.eol();){if(R.match(D)){ae.tokenize=x;break}R.next()}return k}}function M(k){return function(D,R){for(var ae;(ae=D.next())!=null;){if(ae=="<")return R.tokenize=M(k+1),R.tokenize(D,R);if(ae==">")if(k==1){R.tokenize=x;break}else return R.tokenize=M(k-1),R.tokenize(D,R)}return"meta"}}function $(k){return k&&k.toLowerCase()}function F(k,D,R){this.prev=k.context,this.tagName=D||"",this.indent=k.indented,this.startOfLine=R,(h.doNotIndent.hasOwnProperty(D)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function E(k){k.context&&(k.context=k.context.prev)}function I(k,D){for(var R;;){if(!k.context||(R=k.context.tagName,!h.contextGrabbers.hasOwnProperty($(R))||!h.contextGrabbers[$(R)].hasOwnProperty($(D))))return;E(k)}}function q(k,D,R){return k=="openTag"?(R.tagStart=D.column(),Y):k=="closeTag"?oe:q}function Y(k,D,R){return k=="word"?(R.tagName=D.current(),b="tag",K):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",K(k,D,R)):(b="error",Y)}function oe(k,D,R){if(k=="word"){var ae=D.current();return R.context&&R.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty($(R.context.tagName))&&E(R),R.context&&R.context.tagName==ae||h.matchClosing===!1?(b="tag",J):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",J(k,D,R)):(b="error",G)}function J(k,D,R){return k!="endTag"?(b="error",J):(E(R),q)}function G(k,D,R){return b="error",J(k,D,R)}function K(k,D,R){if(k=="word")return b="attribute",P;if(k=="endTag"||k=="selfcloseTag"){var ae=R.tagName,ce=R.tagStart;return R.tagName=R.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty($(ae))?I(R,ae):(I(R,ae),R.context=new F(R,ae,ce==R.indented)),q}return b="error",K}function P(k,D,R){return k=="equals"?O:(h.allowMissing||(b="error"),K(k,D,R))}function O(k,D,R){return k=="string"?S:k=="word"&&h.allowUnquoted?(b="string",K):(b="error",K(k,D,R))}function S(k,D,R){return k=="string"?S:K(k,D,R)}return{startState:function(k){var D={tokenize:x,state:q,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(D.baseIndent=k),D},token:function(k,D){if(!D.tagName&&k.sol()&&(D.indented=k.indentation()),k.eatSpace())return null;v=null;var R=D.tokenize(k,D);return(R||v)&&R!="comment"&&(b=null,D.state=D.state(v||R,k,D),b&&(R=b=="error"?R+" error":b)),R},indent:function(k,D,R){var ae=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ae&&ae.noIndent)return r.Pass;if(k.tokenize!=C&&k.tokenize!=x)return R?R.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var ce=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(ce&&ce[1])for(;ae;)if(ae.tagName==ce[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty($(ae.tagName)))ae=ae.prev;else break;else if(ce)for(;ae;){var _e=h.contextGrabbers[$(ae.tagName)];if(_e&&_e.hasOwnProperty($(ce[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==O&&(k.state=K)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var D=[],R=k.context;R;R=R.prev)D.push(R.tagName);return D.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),H0.exports}$p();var j0={exports:{}},W0={exports:{}},q0;function Yce(){return q0||(q0=1,(function(e,t){(function(r){r(To())})(function(r){r.defineMode("css",function(G,K){var P=K.inline;K.propertyKeywords||(K=r.resolveMode("text/css"));var O=G.indentUnit,S=K.tokenHooks,k=K.documentTypes||{},D=K.mediaTypes||{},R=K.mediaFeatures||{},ae=K.mediaValueKeywords||{},ce=K.propertyKeywords||{},_e=K.nonStandardPropertyKeywords||{},je=K.fontProperties||{},Ae=K.counterDescriptors||{},Ke=K.colorKeywords||{},Ue=K.valueKeywords||{},He=K.allowNested,$e=K.lineComment,H=K.supportsAtComponent===!0,Z=G.highlightNonStandardPropertyKeywords!==!1,re,le;function ue(Q,fe){return re=fe,Q}function z(Q,fe){var ie=Q.next();if(S[ie]){var Re=S[ie](Q,fe);if(Re!==!1)return Re}if(ie=="@")return Q.eatWhile(/[\w\\\-]/),ue("def",Q.current());if(ie=="="||(ie=="~"||ie=="|")&&Q.eat("="))return ue(null,"compare");if(ie=='"'||ie=="'")return fe.tokenize=j(ie),fe.tokenize(Q,fe);if(ie=="#")return Q.eatWhile(/[\w\\\-]/),ue("atom","hash");if(ie=="!")return Q.match(/^\s*\w*/),ue("keyword","important");if(/\d/.test(ie)||ie=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),ue("number","unit");if(ie==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),ue("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?ue("variable-2","variable-definition"):ue("variable-2","variable");if(Q.match(/^\w+-/))return ue("meta","meta")}else return/[,+>*\/]/.test(ie)?ue(null,"select-op"):ie=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?ue("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ie)?ue(null,ie):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(fe.tokenize=ee),ue("variable callee","variable")):/[\w\\\-]/.test(ie)?(Q.eatWhile(/[\w\\\-]/),ue("property","word")):ue(null,null)}function j(Q){return function(fe,ie){for(var Re=!1,Qe;(Qe=fe.next())!=null;){if(Qe==Q&&!Re){Q==")"&&fe.backUp(1);break}Re=!Re&&Qe=="\\"}return(Qe==Q||!Re&&Q!=")")&&(ie.tokenize=null),ue("string","string")}}function ee(Q,fe){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?fe.tokenize=null:fe.tokenize=j(")"),ue(null,"(")}function he(Q,fe,ie){this.type=Q,this.indent=fe,this.prev=ie}function pe(Q,fe,ie,Re){return Q.context=new he(ie,fe.indentation()+(Re===!1?0:O),Q.context),ie}function me(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function Ce(Q,fe,ie){return be[ie.context.type](Q,fe,ie)}function Ee(Q,fe,ie,Re){for(var Qe=Re||1;Qe>0;Qe--)ie.context=ie.context.prev;return Ce(Q,fe,ie)}function xe(Q){var fe=Q.current().toLowerCase();Ue.hasOwnProperty(fe)?le="atom":Ke.hasOwnProperty(fe)?le="keyword":le="variable"}var be={};return be.top=function(Q,fe,ie){if(Q=="{")return pe(ie,fe,"block");if(Q=="}"&&ie.context.prev)return me(ie);if(H&&/@component/i.test(Q))return pe(ie,fe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return pe(ie,fe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return pe(ie,fe,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return ie.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return pe(ie,fe,"at");if(Q=="hash")le="builtin";else if(Q=="word")le="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return pe(ie,fe,"interpolation");if(Q==":")return"pseudo";if(He&&Q=="(")return pe(ie,fe,"parens")}return ie.context.type},be.block=function(Q,fe,ie){if(Q=="word"){var Re=fe.current().toLowerCase();return ce.hasOwnProperty(Re)?(le="property","maybeprop"):_e.hasOwnProperty(Re)?(le=Z?"string-2":"property","maybeprop"):He?(le=fe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return Q=="meta"?"block":!He&&(Q=="hash"||Q=="qualifier")?(le="error","block"):be.top(Q,fe,ie)},be.maybeprop=function(Q,fe,ie){return Q==":"?pe(ie,fe,"prop"):Ce(Q,fe,ie)},be.prop=function(Q,fe,ie){if(Q==";")return me(ie);if(Q=="{"&&He)return pe(ie,fe,"propBlock");if(Q=="}"||Q=="{")return Ee(Q,fe,ie);if(Q=="(")return pe(ie,fe,"parens");if(Q=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(fe.current()))le+=" error";else if(Q=="word")xe(fe);else if(Q=="interpolation")return pe(ie,fe,"interpolation");return"prop"},be.propBlock=function(Q,fe,ie){return Q=="}"?me(ie):Q=="word"?(le="property","maybeprop"):ie.context.type},be.parens=function(Q,fe,ie){return Q=="{"||Q=="}"?Ee(Q,fe,ie):Q==")"?me(ie):Q=="("?pe(ie,fe,"parens"):Q=="interpolation"?pe(ie,fe,"interpolation"):(Q=="word"&&xe(fe),"parens")},be.pseudo=function(Q,fe,ie){return Q=="meta"?"pseudo":Q=="word"?(le="variable-3",ie.context.type):Ce(Q,fe,ie)},be.documentTypes=function(Q,fe,ie){return Q=="word"&&k.hasOwnProperty(fe.current())?(le="tag",ie.context.type):be.atBlock(Q,fe,ie)},be.atBlock=function(Q,fe,ie){if(Q=="(")return pe(ie,fe,"atBlock_parens");if(Q=="}"||Q==";")return Ee(Q,fe,ie);if(Q=="{")return me(ie)&&pe(ie,fe,He?"block":"top");if(Q=="interpolation")return pe(ie,fe,"interpolation");if(Q=="word"){var Re=fe.current().toLowerCase();Re=="only"||Re=="not"||Re=="and"||Re=="or"?le="keyword":D.hasOwnProperty(Re)?le="attribute":R.hasOwnProperty(Re)?le="property":ae.hasOwnProperty(Re)?le="keyword":ce.hasOwnProperty(Re)?le="property":_e.hasOwnProperty(Re)?le=Z?"string-2":"property":Ue.hasOwnProperty(Re)?le="atom":Ke.hasOwnProperty(Re)?le="keyword":le="error"}return ie.context.type},be.atComponentBlock=function(Q,fe,ie){return Q=="}"?Ee(Q,fe,ie):Q=="{"?me(ie)&&pe(ie,fe,He?"block":"top",!1):(Q=="word"&&(le="error"),ie.context.type)},be.atBlock_parens=function(Q,fe,ie){return Q==")"?me(ie):Q=="{"||Q=="}"?Ee(Q,fe,ie,2):be.atBlock(Q,fe,ie)},be.restricted_atBlock_before=function(Q,fe,ie){return Q=="{"?pe(ie,fe,"restricted_atBlock"):Q=="word"&&ie.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(Q,fe,ie)},be.restricted_atBlock=function(Q,fe,ie){return Q=="}"?(ie.stateArg=null,me(ie)):Q=="word"?(ie.stateArg=="@font-face"&&!je.hasOwnProperty(fe.current().toLowerCase())||ie.stateArg=="@counter-style"&&!Ae.hasOwnProperty(fe.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(Q,fe,ie){return Q=="word"?(le="variable","keyframes"):Q=="{"?pe(ie,fe,"top"):Ce(Q,fe,ie)},be.at=function(Q,fe,ie){return Q==";"?me(ie):Q=="{"||Q=="}"?Ee(Q,fe,ie):(Q=="word"?le="tag":Q=="hash"&&(le="builtin"),"at")},be.interpolation=function(Q,fe,ie){return Q=="}"?me(ie):Q=="{"||Q==";"?Ee(Q,fe,ie):(Q=="word"?le="variable":Q!="variable"&&Q!="("&&Q!=")"&&(le="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new he(P?"block":"top",Q||0,null)}},token:function(Q,fe){if(!fe.tokenize&&Q.eatSpace())return null;var ie=(fe.tokenize||z)(Q,fe);return ie&&typeof ie=="object"&&(re=ie[1],ie=ie[0]),le=ie,re!="comment"&&(fe.state=be[fe.state](re,Q,fe)),le},indent:function(Q,fe){var ie=Q.context,Re=fe&&fe.charAt(0),Qe=ie.indent;return ie.type=="prop"&&(Re=="}"||Re==")")&&(ie=ie.prev),ie.prev&&(Re=="}"&&(ie.type=="block"||ie.type=="top"||ie.type=="interpolation"||ie.type=="restricted_atBlock")?(ie=ie.prev,Qe=ie.indent):(Re==")"&&(ie.type=="parens"||ie.type=="atBlock_parens")||Re=="{"&&(ie.type=="at"||ie.type=="atBlock"))&&(Qe=Math.max(0,ie.indent-O))),Qe},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:$e,fold:"brace"}});function o(G){for(var K={},P=0;P<G.length;++P)K[G[P].toLowerCase()]=!0;return K}var s=["domain","regexp","url","url-prefix"],c=o(s),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=o(f),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=o(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=o(g),b=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],x=o(b),C=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],L=o(C),N=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],M=o(N),$=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],F=o($),E=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=o(E),q=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],Y=o(q),oe=s.concat(f).concat(h).concat(g).concat(b).concat(C).concat(E).concat(q);r.registerHelper("hintWords","css",oe);function J(G,K){for(var P=!1,O;(O=G.next())!=null;){if(P&&O=="/"){K.tokenize=null;break}P=O=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:c,mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:F,colorKeywords:I,valueKeywords:Y,tokenHooks:{"/":function(G,K){return G.eat("*")?(K.tokenize=J,J(G,K)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:L,colorKeywords:I,valueKeywords:Y,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,K){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(K.tokenize=J,J(G,K)):["operator","operator"]},":":function(G){return G.match(/^\s*\{/,!1)?[null,null]:!1},$:function(G){return G.match(/^[\w-]+/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(G){return G.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:L,colorKeywords:I,valueKeywords:Y,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,K){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(K.tokenize=J,J(G,K)):["operator","operator"]},"@":function(G){return G.eat("{")?[null,"interpolation"]:G.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(G.eatWhile(/[\w\\\-]/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:d,mediaFeatures:p,propertyKeywords:x,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:F,colorKeywords:I,valueKeywords:Y,supportsAtComponent:!0,tokenHooks:{"/":function(G,K){return G.eat("*")?(K.tokenize=J,J(G,K)):!1}},name:"css",helperType:"gss"})})})()),W0.exports}var U0;function Zce(){return U0||(U0=1,(function(e,t){(function(r){r(To(),$p(),Pp(),Yce())})(function(r){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,x){var C=v.current(),L=C.search(b);return L>-1?v.backUp(C.length-L):C.match(/<\/?$/)&&(v.backUp(C.length),v.match(b,!1)||v.match(C)),x}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var x=v.match(f(b));return x?/^\s*(.*?)\s*$/.exec(x[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,b){for(var x in v)for(var C=b[x]||(b[x]=[]),L=v[x],N=L.length-1;N>=0;N--)C.unshift(L[N])}function g(v,b){for(var x=0;x<v.length;x++){var C=v[x];if(!C[0]||C[1].test(d(b,C[0])))return C[2]}}r.defineMode("htmlmixed",function(v,b){var x=r.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),C={},L=b&&b.tags,N=b&&b.scriptTypes;if(p(o,C),L&&p(L,C),N)for(var M=N.length-1;M>=0;M--)C.script.unshift(["type",N[M].matches,N[M].mode]);function $(F,E){var I=x.token(F,E.htmlState),q=/\btag\b/.test(I),Y;if(q&&!/[<>\s\/]/.test(F.current())&&(Y=E.htmlState.tagName&&E.htmlState.tagName.toLowerCase())&&C.hasOwnProperty(Y))E.inTag=Y+" ";else if(E.inTag&&q&&/>$/.test(F.current())){var oe=/^([\S]+) (.*)/.exec(E.inTag);E.inTag=null;var J=F.current()==">"&&g(C[oe[1]],oe[2]),G=r.getMode(v,J),K=h(oe[1],!0),P=h(oe[1],!1);E.token=function(O,S){return O.match(K,!1)?(S.token=$,S.localState=S.localMode=null,null):s(O,P,S.localMode.token(O,S.localState))},E.localMode=G,E.localState=r.startState(G,x.indent(E.htmlState,"",""))}else E.inTag&&(E.inTag+=F.current(),F.eol()&&(E.inTag+=" "));return I}return{startState:function(){var F=r.startState(x);return{token:$,inTag:null,localMode:null,localState:null,htmlState:F}},copyState:function(F){var E;return F.localState&&(E=r.copyState(F.localMode,F.localState)),{token:F.token,inTag:F.inTag,localMode:F.localMode,localState:E,htmlState:r.copyState(x,F.htmlState)}},token:function(F,E){return E.token(F,E)},indent:function(F,E,I){return!F.localMode||/^\s*<\//.test(E)?x.indent(F.htmlState,E,I):F.localMode.indent?F.localMode.indent(F.localState,E,I):r.Pass},innerMode:function(F){return{state:F.localState||F.htmlState,mode:F.localMode||x}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),j0.exports}Zce();var V0={exports:{}},G0;function Jce(){return G0||(G0=1,(function(e,t){(function(r){r(To(),$p(),Pp())})(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 C=x.tagName;x.tagName=null;var L=d.indent(x,"","");return x.tagName=C,L}function g(x,C){return C.context.mode==d?v(x,C,C.context):b(x,C,C.context)}function v(x,C,L){if(L.depth==2)return x.match(/^.*?\*\//)?L.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(L.state);var N=p(L.state),M=L.state.context;if(M&&x.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?N-=c.indentUnit:L.prev.state.lexical&&(N=L.prev.state.lexical.indented)}else L.depth==1&&(N+=c.indentUnit);return C.context=new o(r.startState(h,N),h,0,C.context),null}if(L.depth==1){if(x.peek()=="<")return d.skipAttribute(L.state),C.context=new o(r.startState(d,p(L.state)),d,0,C.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return L.depth=2,g(x,C)}var $=d.token(x,L.state),F=x.current(),E;return/\btag\b/.test($)?/>$/.test(F)?L.state.context?L.depth=0:C.context=C.context.prev:/^</.test(F)&&(L.depth=1):!$&&(E=F.indexOf("{"))>-1&&x.backUp(F.length-E),$}function b(x,C,L){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,L.state))return C.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,C.context),h.skipExpression(L.state),null;var N=h.token(x,L.state);if(!N&&L.depth!=null){var M=x.current();M=="{"?L.depth++:M=="}"&&--L.depth==0&&(C.context=C.context.prev)}return N}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:g,indent:function(x,C,L){return x.context.mode.indent(x.context.state,C,L)},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}})})})()),V0.exports}Jce();var K0={exports:{}},X0;function Qce(){return X0||(X0=1,(function(e,t){(function(r){r(To())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!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(!g&&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","")}g&&!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 g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),K0.exports}Qce();var Y0={exports:{}},Z0;function eue(){return Z0||(Z0=1,(function(e,t){(function(r){r(To())})(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(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",x=v[b],C=p.pos;function L(){r.off(document,"mousemove",N),r.off(document,"mouseup",L)}function N(M){if(M.which!=1)return L();p.moveTo(C+(M[b]-x)*(p.total/p.size))}r.on(document,"mousemove",N),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=v.clientX<b.left?-1:v.clientX>b.right?1:0:x=v.clientY<b.top?-1:v.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}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 g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"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,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(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-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?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)}})})()),Y0.exports}eue();const Rn=Wt();function tue(e,t,r={}){const o=bM.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),bt(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}),Ka(()=>{Rn.value=void 0}),nf(o)}async function Bx(e){Ra({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function nue(e,t){Ra({file:e,column:t.column-1,line:t.line,view:"editor",test:_i.value})}function rue(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return Np(s,r,o);Ra({file:e.file.id,column:o-1,line:r,view:"editor",test:_i.value})}const vr=Ve(),Js=Ve(!0),_o=Ve(!1),zu=Ve(!0),js=ke(()=>_t.value?.coverage),Ah=ke(()=>js.value?.enabled),Ws=ke(()=>Ah.value&&!!js.value?.htmlReporter),Qs=Za("vitest-ui_splitpanes-mainSizes",[33,67]),Qo=Za("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?nr.value[0]/window.outerWidth*100:33,67]),Ei=Za("vitest-ui_details-panel-visible",!0),_n=Ve("right");Ct(()=>{bt(_t,()=>{_t.value?.browser?.detailsPanelPosition&&(_n.value=_t.value.browser.detailsPanelPosition)})});function iue(){setTimeout(()=>{Ei.value=!1},0)}function oue(){Ei.value=!0}const an=sr({navigation:Qs.value[0],details:{size:Qs.value[1],browser:Qo.value[0],main:Qo.value[1]}}),J0=ke(()=>{if(Ws.value){const e=js.value.reportsDirectory.lastIndexOf("/"),t=js.value.htmlReporter?.subdir;return t?`/${js.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${js.value.reportsDirectory.slice(e+1)}/index.html`}});bt(wf,e=>{zu.value=e==="running"},{immediate:!0});function sue(){const e=ko.value;if(e&&e.length>0){const t=br(e);t?(vr.value=t,Js.value=!1,_o.value=!1):JE(()=>ft.state.getFiles(),()=>{vr.value=br(e),Js.value=!1,_o.value=!1})}return Js}function Fu(e){Js.value=e,_o.value=!1,e&&(vr.value=void 0,ko.value="")}function Ra({file:e,line:t,view:r,test:o,column:s}){ko.value=e,Fx.value=t,Hx.value=s,gn.value=r,_i.value=o,vr.value=br(e),Fu(!1)}function lue(e){e.type==="test"?gn.value==="editor"?Bx(e):Ra({file:e.file.id,line:null,column:null,view:gn.value,test:e.id}):Ra({file:e.file.id,test:null,line:null,view:gn.value,column:null})}function aue(){_o.value=!0,Js.value=!1,vr.value=void 0,ko.value=""}function cue(){if(bn?.provider==="webdriverio"){const e=window.outerWidth*(an.details.size/100);return(nr.value[0]+20)/e*100}return 33}function uue(){an.navigation=33,an.details.size=67,Qs.value=[33,67]}function jx(){an.details.main!==0&&(an.details.browser=cue(),an.details.main=100-an.details.browser,Qo.value=[an.details.browser,an.details.main])}function fue(){_n.value=_n.value==="right"?"bottom":"right";const e=_n.value==="bottom"?33:50;Qo.value=[e,100-e],an.details.browser=e,an.details.main=100-e}const due={setCurrentFileId(e){ko.value=e,vr.value=br(e),Fu(!1)},async setIframeViewport(e,t){nr.value=[e,t],bn?.provider==="webdriverio"&&jx(),await new Promise(r=>requestAnimationFrame(r))}},hue=location.port,pue=[location.hostname,hue].filter(Boolean).join(":"),gue=`${location.protocol==="https:"?"wss:":"ws:"}//${pue}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,yr=!!window.METADATA_PATH;var ir=Uint8Array,qs=Uint16Array,mue=Int32Array,Wx=new ir([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]),qx=new ir([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]),vue=new ir([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ux=function(e,t){for(var r=new qs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new mue(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}},Vx=Ux(Wx,2),Gx=Vx.b,yue=Vx.r;Gx[28]=258,yue[258]=28;var bue=Ux(qx,0),wue=bue.b,Lh=new qs(32768);for(var Mt=0;Mt<32768;++Mt){var Zi=(Mt&43690)>>1|(Mt&21845)<<1;Zi=(Zi&52428)>>2|(Zi&13107)<<2,Zi=(Zi&61680)>>4|(Zi&3855)<<4,Lh[Mt]=((Zi&65280)>>8|(Zi&255)<<8)>>1}var ma=(function(e,t,r){for(var o=e.length,s=0,c=new qs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new qs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new qs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=f[e[s]-1]++<<g,b=v|(1<<g)-1;v<=b;++v)d[Lh[v]>>h]=p}else for(d=new qs(o),s=0;s<o;++s)e[s]&&(d[s]=Lh[f[e[s]-1]++]>>15-e[s]);return d}),tc=new ir(288);for(var Mt=0;Mt<144;++Mt)tc[Mt]=8;for(var Mt=144;Mt<256;++Mt)tc[Mt]=9;for(var Mt=256;Mt<280;++Mt)tc[Mt]=7;for(var Mt=280;Mt<288;++Mt)tc[Mt]=8;var Kx=new ir(32);for(var Mt=0;Mt<32;++Mt)Kx[Mt]=5;var xue=ma(tc,9,1),kue=ma(Kx,5,1),Bd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Mr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},jd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},_ue=function(e){return(e+7)/8|0},Xx=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new ir(e.subarray(t,r))},Sue=["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"],Kn=function(e,t,r){var o=new Error(t||Sue[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Kn),!r)throw o;return o},Rp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new ir(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new ir(s*3));var p=function(ue){var z=r.length;if(ue>z){var j=new ir(Math.max(z*2,ue));j.set(r),r=j}},g=t.f||0,v=t.p||0,b=t.b||0,x=t.l,C=t.d,L=t.m,N=t.n,M=s*8;do{if(!x){g=Mr(e,v,1);var $=Mr(e,v+1,3);if(v+=3,$)if($==1)x=xue,C=kue,L=9,N=5;else if($==2){var q=Mr(e,v,31)+257,Y=Mr(e,v+10,15)+4,oe=q+Mr(e,v+5,31)+1;v+=14;for(var J=new ir(oe),G=new ir(19),K=0;K<Y;++K)G[vue[K]]=Mr(e,v+K*3,7);v+=Y*3;for(var P=Bd(G),O=(1<<P)-1,S=ma(G,P,1),K=0;K<oe;){var k=S[Mr(e,v,O)];v+=k&15;var F=k>>4;if(F<16)J[K++]=F;else{var D=0,R=0;for(F==16?(R=3+Mr(e,v,3),v+=2,D=J[K-1]):F==17?(R=3+Mr(e,v,7),v+=3):F==18&&(R=11+Mr(e,v,127),v+=7);R--;)J[K++]=D}}var ae=J.subarray(0,q),ce=J.subarray(q);L=Bd(ae),N=Bd(ce),x=ma(ae,L,1),C=ma(ce,N,1)}else Kn(1);else{var F=_ue(v)+4,E=e[F-4]|e[F-3]<<8,I=F+E;if(I>s){h&&Kn(0);break}d&&p(b+E),r.set(e.subarray(F,I),b),t.b=b+=E,t.p=v=I*8,t.f=g;continue}if(v>M){h&&Kn(0);break}}d&&p(b+131072);for(var _e=(1<<L)-1,je=(1<<N)-1,Ae=v;;Ae=v){var D=x[jd(e,v)&_e],Ke=D>>4;if(v+=D&15,v>M){h&&Kn(0);break}if(D||Kn(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,x=null;break}else{var Ue=Ke-254;if(Ke>264){var K=Ke-257,He=Wx[K];Ue=Mr(e,v,(1<<He)-1)+Gx[K],v+=He}var $e=C[jd(e,v)&je],H=$e>>4;$e||Kn(3),v+=$e&15;var ce=wue[H];if(H>3){var He=qx[H];ce+=jd(e,v)&(1<<He)-1,v+=He}if(v>M){h&&Kn(0);break}d&&p(b+131072);var Z=b+Ue;if(b<ce){var re=c-ce,le=Math.min(ce,Z);for(re+b<0&&Kn(3);b<le;++b)r[b]=o[re+b]}for(;b<Z;++b)r[b]=r[b-ce]}}t.l=x,t.p=Ae,t.b=b,t.f=g,x&&(g=1,t.m=L,t.d=C,t.n=N)}while(!g);return b!=r.length&&f?Xx(r,0,b):r.subarray(0,b)},Tue=new ir(0),Cue=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Kn(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)},Eue=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Aue=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Kn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Kn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Lue(e,t){return Rp(e,{i:2},t,t)}function Mue(e,t){var r=Cue(e);return r+8>e.length&&Kn(6,"invalid gzip data"),Rp(e.subarray(r,-8),{i:2},new ir(Eue(e)),t)}function Nue(e,t){return Rp(e.subarray(Aue(e),-4),{i:2},t,t)}function Oue(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Mue(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Lue(e,t):Nue(e,t)}var Mh=typeof TextDecoder<"u"&&new TextDecoder,Pue=0;try{Mh.decode(Tue,{stream:!0}),Pue=1}catch{}var $ue=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:Xx(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 Q0(e,t){var r;if(Mh)return Mh.decode(e);var o=$ue(e),s=o.s,r=o.r;return r.length&&Kn(8),s}const ey=()=>{},pn=()=>Promise.resolve();function Rue(){const e=sr({state:new xx,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=sr(e.state.filesMap),e.state.idMap=sr(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,getExternalResult:pn,getTransformResult:pn,onDone:ey,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:ey,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=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Q0(Oue(h));t=_h(g)}else t=_h(Q0(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return yr?Rue():PL(gue,{reactive:(t,r)=>r==="state"?sr(t):Wt(t),handlers:{onTestAnnotate(t,r){Me.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Me.recordTestArtifact(t,r)},onTaskUpdate(t,r){Me.resumeRun(t,r),wf.value="running"},onSpecsCollected(t,r){Me.startTime=r||performance.now()},onFinished(t,r,o,s){Me.endRun(s),so.value=(r||[]).map(Dx)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),_t=Wt({}),Us=Ve("CONNECTING"),Ip=Wt([]),Gt=ke(()=>{const e=ko.value;return e?br(e):void 0}),Yx=ke(()=>Cp(Gt.value).map(e=>e?.logs||[]).flat()||[]);function br(e){const t=ft.state.idMap.get(e);return t||void 0}const Iue=ke(()=>Us.value==="OPEN"),Wd=ke(()=>Us.value==="CONNECTING");function Due(){return Dp(ft.state.getFiles())}function Zx(e){delete e.result;const t=Me.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Ja(e)))for(const r of e.tasks)Zx(r)}function zue(e){const t=Me.nodes;e.forEach(r=>{delete r.result,Cp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.mode="run",c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.mode="run",o.duration=void 0,Fn(o)&&(o.collectDuration=void 0))})}function Dp(e){return zue(e),Me.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Fue(e){return Zx(e),Me.startRun(),ft.rpc.rerunTask(e.id)}const bn=window.__vitest_browser_runner__;window.__vitest_ui_api__=due;bt(()=>ft.ws,e=>{Us.value=yr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Us.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=fx(h,d,f);return p.mode="skip",p})),Ip.value=s.map(c=>c.name),Me.loadFiles(t,s),ft.state.collectFiles(t),Me.startRun(),so.value=(o||[]).map(Dx),_t.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Us.value==="CONNECTING"&&(Us.value="CLOSED")},1e3)})},{immediate:!0});const Hue=["aria-label","opacity","disabled","hover"],vt=tt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(te(),ve("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:rt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[zt(t.$slots,"default",{},()=>[X("span",{class:rt(e.icon),ma:"",block:""},null,2)])],10,Hue))}}),Bue={h:"full",flex:"~ col"},jue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Wue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},que={class:"pointer-events-none","text-sm":""},Uue={key:0},Vue={id:"tester-container",relative:""},Gue=["data-scale"],ty=20,Kue=100,Xue=tt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return nr.value[0]===g[0]&&nr.value[1]===g[1]}const{width:o,height:s}=rx();async function c(p){nr.value=t[p],bn?.provider==="webdriverio"&&jx()}const f=ke(()=>{if(bn?.provider==="webdriverio"){const[x,C]=nr.value;return{width:x,height:C}}const v=o.value*(an.details.size/100)*(an.details.browser/100)-ty,b=s.value-Kue;return{width:v,height:b}}),d=ke(()=>{if(bn?.provider==="webdriverio")return 1;const[p,g]=nr.value,{width:v,height:b}=f.value,x=v>p?1:v/p,C=b>g?1:b/g;return Math.min(1,x,C)}),h=ke(()=>{const p=f.value.width,g=nr.value[0];return`${Math.trunc((p+ty-g)/2)}px`});return(p,g)=>{const v=ur("tooltip");return te(),ve("div",Bue,[X("div",jue,[ot(Le(vt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>W(uue)())},null,512),[[uo,W(an).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[5]||(g[5]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[6]||(g[6]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ot(Le(vt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:g[1]||(g[1]=b=>Ei.value=!0)},null,512),[[uo,W(_n)==="right"&&!W(Ei)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),X("div",Wue,[ot(Le(vt,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[2]||(g[2]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),ot(Le(vt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[3]||(g[3]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),ot(Le(vt,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[4]||(g[4]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",que,[Je(Pe(W(nr)[0])+"x"+Pe(W(nr)[1])+"px ",1),d.value<1?(te(),ve("span",Uue,"("+Pe((d.value*100).toFixed(0))+"%)",1)):ze("",!0)])]),X("div",Vue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:Pt({"--viewport-width":`${W(nr)[0]}px`,"--viewport-height":`${W(nr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,Gue)])])}}}),Yue=Ii(Xue,[["__scopeId","data-v-f70ca3ae"]]),xf=tt({__name:"DetailsHeaderButtons",setup(e){function t(r){return _n.value==="right"?r==="hide"?"rotate-180":"":r==="hide"?"-rotate-90":"rotate-90"}return(r,o)=>{const s=ur("tooltip");return te(),ve(et,null,[ot(Le(vt,{title:`Switch panel position (${W(_n)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:rt({"rotate-90":W(_n)==="right"}),onClick:W(fue)},null,8,["title","class","onClick"]),[[s,`Switch panel position (${W(_n)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),W(Ei)?ot((te(),We(vt,{key:0,title:W(_n)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:rt(t("hide")),onClick:W(iue)},null,8,["title","class","onClick"])),[[s,W(_n)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):ze("",!0),ot(Le(vt,{title:W(_n)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:rt(t("show")),onClick:W(oue)},null,8,["title","class","onClick"]),[[uo,!W(Ei)],[s,W(_n)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),Zue={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Jue=tt({__name:"ClosedDetailsHeader",setup(e){return(t,r)=>(te(),ve("div",Zue,[r[0]||(r[0]=X("div",{"flex-1":""},null,-1)),Le(xf)]))}}),Que={"text-2xl":""},efe={"text-lg":"",op50:""},tfe=tt({__name:"ConnectionOverlay",setup(e){return(t,r)=>W(Iue)?ze("",!0):(te(),ve("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>W(ft).reconnect&&W(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:rt(W(Wd)?"animate-pulse":"")},[X("div",{text:"5xl",class:rt(W(Wd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",Que,Pe(W(Wd)?"Connecting...":"Disconnected"),1),X("div",efe," Check your terminal or start a new server with `"+Pe(W(bn)?`vitest --browser=${W(bn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),nfe={h:"full",flex:"~ col"},rfe={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},ife={"flex-auto":"","py-1":"","bg-white":""},ofe=["src"],ny=tt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(te(),ve("div",nfe,[X("div",rfe,[r[0]||(r[0]=X("div",{class:"i-carbon:folder-details-reference"},null,-1)),r[1]||(r[1]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),W(bn)?(te(),We(xf,{key:0})):ze("",!0)]),X("div",ife,[X("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,ofe)])]))}}),sfe={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},lfe={"font-bold":""},afe={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},cfe=["font-bold"],ufe={text:"red500/70"},ffe={key:1,text:"sm","mb-2":""},dfe={"font-bold":""},hfe={key:2,text:"sm","mb-2":""},pfe={"font-bold":""},gfe=tt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(te(),ve(et,null,[X("h4",sfe,[X("span",lfe,[Je(Pe(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(te(),ve(et,{key:0},[Je(":")],64)):ze("",!0)]),Je(" "+Pe(e.error.message),1)]),e.error.stacks?.length?(te(),ve("p",afe,[(te(!0),ve(et,null,yn(e.error.stacks,(o,s)=>(te(),ve("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Je("❯ "+Pe(o.method)+" "+Pe(o.file)+":",1),X("span",ufe,Pe(o.line)+":"+Pe(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,cfe))),128))])):ze("",!0),e.error.VITEST_TEST_PATH?(te(),ve("p",ffe,[r[1]||(r[1]=Je(" This error originated in ",-1)),X("span",dfe,Pe(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Je(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):ze("",!0),e.error.VITEST_TEST_NAME?(te(),ve("div",hfe,[r[3]||(r[3]=Je(" The latest test that might've caused the error is ",-1)),X("span",pfe,Pe(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Je(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):ze("",!0)],64))}}),mfe={"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:""},vfe={class:"number","data-testid":"num-files"},yfe={class:"number"},bfe={class:"number","text-red5":""},wfe={class:"number","text-red5":""},xfe={class:"number","text-red5":""},kfe={class:"number","data-testid":"run-time"},_fe={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Sfe={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Tfe={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Cfe=tt({__name:"TestFilesEntry",setup(e){return(t,r)=>(te(),ve(et,null,[X("div",mfe,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",vfe,Pe(W(Me).summary.files),1),W(Me).summary.filesSuccess?(te(),ve(et,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",yfe,Pe(W(Me).summary.filesSuccess),1)],64)):ze("",!0),W(Me).summary.filesFailed?(te(),ve(et,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",bfe,Pe(W(Me).summary.filesFailed),1)],64)):ze("",!0),W(Me).summary.filesSnapshotFailed?(te(),ve(et,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",wfe,Pe(W(Me).summary.filesSnapshotFailed),1)],64)):ze("",!0),W(so).length?(te(),ve(et,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",xfe,Pe(W(so).length),1)],64)):ze("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",kfe,Pe(W(Me).summary.time),1)]),W(so).length?(te(),ve("div",_fe,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",Sfe,[Je(" Vitest caught "+Pe(W(so).length)+" error"+Pe(W(so).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Je(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",Tfe,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(te(!0),ve(et,null,yn(W(so),(o,s)=>(te(),We(gfe,{key:s,error:o},null,8,["error"]))),128))])])):ze("",!0)],64))}}),Efe=Ii(Cfe,[["__scopeId","data-v-1bd0f2ea"]]),Afe={"p-2":"","text-center":"",flex:""},Lfe={"text-4xl":"","min-w-2em":""},Mfe={"text-md":""},Rs=tt({__name:"DashboardEntry",setup(e){return(t,r)=>(te(),ve("div",Afe,[X("div",null,[X("div",Lfe,[zt(t.$slots,"body")]),X("div",Mfe,[zt(t.$slots,"header")])])]))}}),Nfe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Ofe=tt({__name:"TestsEntry",setup(e){function t(r){st.success=!1,st.failed=!1,st.skipped=!1,r!=="total"&&(st[r]=!0)}return(r,o)=>(te(),ve("div",Nfe,[Le(Rs,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:Be(()=>[...o[4]||(o[4]=[Je(" Pass ",-1)])]),body:Be(()=>[Je(Pe(W(Me).summary.testsSuccess),1)]),_:1}),Le(Rs,{class:rt({"text-red5":W(Me).summary.testsFailed,op50:!W(Me).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:Be(()=>[...o[5]||(o[5]=[Je(" Fail ",-1)])]),body:Be(()=>[Je(Pe(W(Me).summary.testsFailed),1)]),_:1},8,["class"]),W(Me).summary.testsExpectedFail?(te(),We(Rs,{key:0,"text-cyan5":"","data-testid":"expected-fail-entry"},{header:Be(()=>[...o[6]||(o[6]=[Je(" Expected Fail ",-1)])]),body:Be(()=>[Je(Pe(W(Me).summary.testsExpectedFail),1)]),_:1})):ze("",!0),W(Me).summary.testsSkipped?(te(),We(Rs,{key:1,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:Be(()=>[...o[7]||(o[7]=[Je(" Skip ",-1)])]),body:Be(()=>[Je(Pe(W(Me).summary.testsSkipped),1)]),_:1})):ze("",!0),W(Me).summary.testsTodo?(te(),We(Rs,{key:2,op50:"","data-testid":"todo-entry"},{header:Be(()=>[...o[8]||(o[8]=[Je(" Todo ",-1)])]),body:Be(()=>[Je(Pe(W(Me).summary.testsTodo),1)]),_:1})):ze("",!0),Le(Rs,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:Be(()=>[...o[9]||(o[9]=[Je(" Total ",-1)])]),body:Be(()=>[Je(Pe(W(Me).summary.totalTests),1)]),_:1})]))}}),Pfe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},$fe={key:0,class:"text-gray-5"},Rfe={"aria-labelledby":"tests",m:"y-4 x-2"},Ife=tt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(te(),ve("div",Pfe,[W(Me).summary.files===0&&W(Bs)?(te(),ve("div",$fe," No tests found ")):ze("",!0),X("section",Rfe,[Le(Ofe)]),Le(Efe)]))}}),Dfe={h:"full",flex:"~ col"},zfe={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ffe={class:"scrolls","flex-auto":"","py-1":""},ry=tt({__name:"Dashboard",setup(e){return(t,r)=>(te(),ve("div",Dfe,[X("div",zfe,[r[0]||(r[0]=X("div",{class:"i-carbon-dashboard"},null,-1)),r[1]||(r[1]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),W(bn)?(te(),We(xf,{key:0})):ze("",!0)]),X("div",Ffe,[Le(Ife)])]))}});function Hfe(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Nh="http://www.w3.org/1999/xhtml";const iy={svg:"http://www.w3.org/2000/svg",xhtml:Nh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kf(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),iy.hasOwnProperty(t)?{space:iy[t],local:e}:e}function Bfe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Nh&&t.documentElement.namespaceURI===Nh?t.createElement(e):t.createElementNS(r,e)}}function jfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Jx(e){var t=kf(e);return(t.local?jfe:Bfe)(t)}function Wfe(){}function zp(e){return e==null?Wfe:function(){return this.querySelector(e)}}function qfe(e){typeof e!="function"&&(e=zp(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,g=0;g<f;++g)(h=c[g])&&(p=e.call(h,h.__data__,g,c))&&("__data__"in h&&(p.__data__=h.__data__),d[g]=p);return new cr(o,this._parents)}function Ufe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Vfe(){return[]}function Qx(e){return e==null?Vfe:function(){return this.querySelectorAll(e)}}function Gfe(e){return function(){return Ufe(e.apply(this,arguments))}}function Kfe(e){typeof e=="function"?e=Gfe(e):e=Qx(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 cr(o,s)}function e1(e){return function(){return this.matches(e)}}function t1(e){return function(t){return t.matches(e)}}var Xfe=Array.prototype.find;function Yfe(e){return function(){return Xfe.call(this.children,e)}}function Zfe(){return this.firstElementChild}function Jfe(e){return this.select(e==null?Zfe:Yfe(typeof e=="function"?e:t1(e)))}var Qfe=Array.prototype.filter;function ede(){return Array.from(this.children)}function tde(e){return function(){return Qfe.call(this.children,e)}}function nde(e){return this.selectAll(e==null?ede:tde(typeof e=="function"?e:t1(e)))}function rde(e){typeof e!="function"&&(e=e1(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 cr(o,this._parents)}function n1(e){return new Array(e.length)}function ide(){return new cr(this._enter||this._groups.map(n1),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 ode(e){return function(){return e}}function sde(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 lde(e,t,r,o,s,c,f){var d,h,p=new Map,g=t.length,v=c.length,b=new Array(g),x;for(d=0;d<g;++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<v;++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<g;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function ade(e){return e.__data__}function cde(e,t){if(!arguments.length)return Array.from(this,ade);var r=t?lde:sde,o=this._parents,s=this._groups;typeof e!="function"&&(e=ode(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var g=o[p],v=s[p],b=v.length,x=ude(e.call(g,g&&g.__data__,p,o)),C=x.length,L=d[p]=new Array(C),N=f[p]=new Array(C),M=h[p]=new Array(b);r(g,v,L,N,M,x,t);for(var $=0,F=0,E,I;$<C;++$)if(E=L[$]){for($>=F&&(F=$+1);!(I=N[F])&&++F<C;);E._next=I||null}}return f=new cr(f,o),f._enter=d,f._exit=h,f}function ude(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function fde(){return new cr(this._exit||this._groups.map(n1),this._parents)}function dde(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 hde(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],g=o[h],v=p.length,b=d[h]=new Array(v),x,C=0;C<v;++C)(x=p[C]||g[C])&&(b[C]=x);for(;h<s;++h)d[h]=r[h];return new cr(d,this._parents)}function pde(){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 gde(e){e||(e=mde);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!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,g=0;g<d;++g)(p=f[g])&&(h[g]=p);h.sort(t)}return new cr(s,this._parents).order()}function mde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function yde(){return Array.from(this)}function bde(){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 wde(){let e=0;for(const t of this)++e;return e}function xde(){return!this.node()}function kde(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 _de(e){return function(){this.removeAttribute(e)}}function Sde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Tde(e,t){return function(){this.setAttribute(e,t)}}function Cde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ede(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Ade(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 Lde(e,t){var r=kf(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?Sde:_de:typeof t=="function"?r.local?Ade:Ede:r.local?Cde:Tde)(r,t))}function r1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Mde(e){return function(){this.style.removeProperty(e)}}function Nde(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Ode(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Pde(e,t,r){return arguments.length>1?this.each((t==null?Mde:typeof t=="function"?Ode:Nde)(e,t,r??"")):fl(this.node(),e)}function fl(e,t){return e.style.getPropertyValue(t)||r1(e).getComputedStyle(e,null).getPropertyValue(t)}function $de(e){return function(){delete this[e]}}function Rde(e,t){return function(){this[e]=t}}function Ide(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Dde(e,t){return arguments.length>1?this.each((t==null?$de:typeof t=="function"?Ide:Rde)(e,t)):this.node()[e]}function i1(e){return e.trim().split(/^|\s+/)}function Fp(e){return e.classList||new o1(e)}function o1(e){this._node=e,this._names=i1(e.getAttribute("class")||"")}o1.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 s1(e,t){for(var r=Fp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function l1(e,t){for(var r=Fp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function zde(e){return function(){s1(this,e)}}function Fde(e){return function(){l1(this,e)}}function Hde(e,t){return function(){(t.apply(this,arguments)?s1:l1)(this,e)}}function Bde(e,t){var r=i1(e+"");if(arguments.length<2){for(var o=Fp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Hde:t?zde:Fde)(r,t))}function jde(){this.textContent=""}function Wde(e){return function(){this.textContent=e}}function qde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ude(e){return arguments.length?this.each(e==null?jde:(typeof e=="function"?qde:Wde)(e)):this.node().textContent}function Vde(){this.innerHTML=""}function Gde(e){return function(){this.innerHTML=e}}function Kde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Xde(e){return arguments.length?this.each(e==null?Vde:(typeof e=="function"?Kde:Gde)(e)):this.node().innerHTML}function Yde(){this.nextSibling&&this.parentNode.appendChild(this)}function Zde(){return this.each(Yde)}function Jde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qde(){return this.each(Jde)}function ehe(e){var t=typeof e=="function"?e:Jx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function the(){return null}function nhe(e,t){var r=typeof e=="function"?e:Jx(e),o=t==null?the:typeof t=="function"?t:zp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function rhe(){var e=this.parentNode;e&&e.removeChild(this)}function ihe(){return this.each(rhe)}function ohe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function she(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function lhe(e){return this.select(e?she:ohe)}function ahe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function che(e){return function(t){e.call(this,t,this.__data__)}}function uhe(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 fhe(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 dhe(e,t,r){return function(){var o=this.__on,s,c=che(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 hhe(e,t,r){var o=uhe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,g;h<p;++h)for(s=0,g=d[h];s<c;++s)if((f=o[s]).type===g.type&&f.name===g.name)return g.value}return}for(d=t?dhe:fhe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function a1(e,t,r){var o=r1(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 phe(e,t){return function(){return a1(this,e,t)}}function ghe(e,t){return function(){return a1(this,e,t.apply(this,arguments))}}function mhe(e,t){return this.each((typeof t=="function"?ghe:phe)(e,t))}function*vhe(){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 c1=[null];function cr(e,t){this._groups=e,this._parents=t}function nc(){return new cr([[document.documentElement]],c1)}function yhe(){return this}cr.prototype=nc.prototype={constructor:cr,select:qfe,selectAll:Kfe,selectChild:Jfe,selectChildren:nde,filter:rde,data:cde,enter:ide,exit:fde,join:dde,merge:hde,selection:yhe,order:pde,sort:gde,call:vde,nodes:yde,node:bde,size:wde,empty:xde,each:kde,attr:Lde,style:Pde,property:Dde,classed:Bde,text:Ude,html:Xde,raise:Zde,lower:Qde,append:ehe,insert:nhe,remove:ihe,clone:lhe,datum:ahe,on:hhe,dispatch:mhe,[Symbol.iterator]:vhe};function Yn(e){return typeof e=="string"?new cr([[document.querySelector(e)]],[document.documentElement]):new cr([[e]],c1)}function bhe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function yi(e,t){if(e=bhe(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 dl=class mi{x;y;static of([t,r]){return new mi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new mi(this.x+t.x,this.y+t.y)}subtract(t){return new mi(this.x-t.x,this.y-t.y)}multiply(t){return new mi(this.x*t,this.y*t)}divide(t){return new mi(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 mi(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 mi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new mi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},whe={value:()=>{}};function rc(){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 uu(r)}function uu(e){this._=e}function xhe(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}})}uu.prototype=rc.prototype={constructor:uu,on:function(e,t){var r=this._,o=xhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=khe(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]=oy(r[s],e.name,t);else if(t==null)for(s in r)r[s]=oy(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 uu(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 khe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function oy(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=whe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const _he={passive:!1},Ia={capture:!0,passive:!1};function qd(e){e.stopImmediatePropagation()}function el(e){e.preventDefault(),e.stopImmediatePropagation()}function u1(e){var t=e.document.documentElement,r=Yn(e).on("dragstart.drag",el,Ia);"onselectstart"in t?r.on("selectstart.drag",el,Ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function f1(e,t){var r=e.document.documentElement,o=Yn(e).on("dragstart.drag",null);t&&(o.on("click.drag",el,Ia),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 Oh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){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:g}})}Oh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function She(e){return!e.ctrlKey&&!e.button}function The(){return this.parentNode}function Che(e,t){return t??{x:e.x,y:e.y}}function Ehe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ahe(){var e=She,t=The,r=Che,o=Ehe,s={},c=rc("start","drag","end"),f=0,d,h,p,g,v=0;function b(E){E.on("mousedown.drag",x).filter(o).on("touchstart.drag",N).on("touchmove.drag",M,_he).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(E,I){if(!(g||!e.call(this,E,I))){var q=F(this,t.call(this,E,I),E,I,"mouse");q&&(Yn(E.view).on("mousemove.drag",C,Ia).on("mouseup.drag",L,Ia),u1(E.view),qd(E),p=!1,d=E.clientX,h=E.clientY,q("start",E))}}function C(E){if(el(E),!p){var I=E.clientX-d,q=E.clientY-h;p=I*I+q*q>v}s.mouse("drag",E)}function L(E){Yn(E.view).on("mousemove.drag mouseup.drag",null),f1(E.view,p),el(E),s.mouse("end",E)}function N(E,I){if(e.call(this,E,I)){var q=E.changedTouches,Y=t.call(this,E,I),oe=q.length,J,G;for(J=0;J<oe;++J)(G=F(this,Y,E,I,q[J].identifier,q[J]))&&(qd(E),G("start",E,q[J]))}}function M(E){var I=E.changedTouches,q=I.length,Y,oe;for(Y=0;Y<q;++Y)(oe=s[I[Y].identifier])&&(el(E),oe("drag",E,I[Y]))}function $(E){var I=E.changedTouches,q=I.length,Y,oe;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),Y=0;Y<q;++Y)(oe=s[I[Y].identifier])&&(qd(E),oe("end",E,I[Y]))}function F(E,I,q,Y,oe,J){var G=c.copy(),K=yi(J||q,I),P,O,S;if((S=r.call(E,new Oh("beforestart",{sourceEvent:q,target:b,identifier:oe,active:f,x:K[0],y:K[1],dx:0,dy:0,dispatch:G}),Y))!=null)return P=S.x-K[0]||0,O=S.y-K[1]||0,function k(D,R,ae){var ce=K,_e;switch(D){case"start":s[oe]=k,_e=f++;break;case"end":delete s[oe],--f;case"drag":K=yi(ae||R,I),_e=f;break}G.call(D,E,new Oh(D,{sourceEvent:R,subject:S,target:b,identifier:oe,active:_e,x:K[0]+P,y:K[1]+O,dx:K[0]-ce[0],dy:K[1]-ce[1],dispatch:G}),Y)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:Kc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:Kc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Kc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Kc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(v=(E=+E)*E,b):Math.sqrt(v)},b}function Hp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function d1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function ic(){}var Da=.7,Bu=1/Da,tl="\\s*([+-]?\\d+)\\s*",za="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lhe=/^#([0-9a-f]{3,8})$/,Mhe=new RegExp(`^rgb\\(${tl},${tl},${tl}\\)$`),Nhe=new RegExp(`^rgb\\(${ei},${ei},${ei}\\)$`),Ohe=new RegExp(`^rgba\\(${tl},${tl},${tl},${za}\\)$`),Phe=new RegExp(`^rgba\\(${ei},${ei},${ei},${za}\\)$`),$he=new RegExp(`^hsl\\(${za},${ei},${ei}\\)$`),Rhe=new RegExp(`^hsla\\(${za},${ei},${ei},${za}\\)$`),sy={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};Hp(ic,Fa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ly,formatHex:ly,formatHex8:Ihe,formatHsl:Dhe,formatRgb:ay,toString:ay});function ly(){return this.rgb().formatHex()}function Ihe(){return this.rgb().formatHex8()}function Dhe(){return h1(this).formatHsl()}function ay(){return this.rgb().formatRgb()}function Fa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lhe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?cy(t):r===3?new Jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Xc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Xc(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=Mhe.exec(e))?new Jn(t[1],t[2],t[3],1):(t=Nhe.exec(e))?new Jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ohe.exec(e))?Xc(t[1],t[2],t[3],t[4]):(t=Phe.exec(e))?Xc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$he.exec(e))?dy(t[1],t[2]/100,t[3]/100,1):(t=Rhe.exec(e))?dy(t[1],t[2]/100,t[3]/100,t[4]):sy.hasOwnProperty(e)?cy(sy[e]):e==="transparent"?new Jn(NaN,NaN,NaN,0):null}function cy(e){return new Jn(e>>16&255,e>>8&255,e&255,1)}function Xc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Jn(e,t,r,o)}function zhe(e){return e instanceof ic||(e=Fa(e)),e?(e=e.rgb(),new Jn(e.r,e.g,e.b,e.opacity)):new Jn}function Ph(e,t,r,o){return arguments.length===1?zhe(e):new Jn(e,t,r,o??1)}function Jn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Hp(Jn,Ph,d1(ic,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Da:Math.pow(Da,e),new Jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jn(es(this.r),es(this.g),es(this.b),ju(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:uy,formatHex:uy,formatHex8:Fhe,formatRgb:fy,toString:fy}));function uy(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function Fhe(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}${Ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function fy(){const e=ju(this.opacity);return`${e===1?"rgb(":"rgba("}${es(this.r)}, ${es(this.g)}, ${es(this.b)}${e===1?")":`, ${e})`}`}function ju(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function es(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ko(e){return e=es(e),(e<16?"0":"")+e.toString(16)}function dy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Pr(e,t,r,o)}function h1(e){if(e instanceof Pr)return new Pr(e.h,e.s,e.l,e.opacity);if(e instanceof ic||(e=Fa(e)),!e)return new Pr;if(e instanceof Pr)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 Pr(f,d,h,e.opacity)}function Hhe(e,t,r,o){return arguments.length===1?h1(e):new Pr(e,t,r,o??1)}function Pr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Hp(Pr,Hhe,d1(ic,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Pr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Da:Math.pow(Da,e),new Pr(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 Jn(Ud(e>=240?e-240:e+120,s,o),Ud(e,s,o),Ud(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Pr(hy(this.h),Yc(this.s),Yc(this.l),ju(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=ju(this.opacity);return`${e===1?"hsl(":"hsla("}${hy(this.h)}, ${Yc(this.s)*100}%, ${Yc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hy(e){return e=(e||0)%360,e<0?e+360:e}function Yc(e){return Math.max(0,Math.min(1,e||0))}function Ud(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 p1=e=>()=>e;function Bhe(e,t){return function(r){return e+r*t}}function jhe(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 Whe(e){return(e=+e)==1?g1:function(t,r){return r-t?jhe(t,r,e):p1(isNaN(t)?r:t)}}function g1(e,t){var r=t-e;return r?Bhe(e,r):p1(isNaN(e)?t:e)}const py=(function e(t){var r=Whe(t);function o(s,c){var f=r((s=Ph(s)).r,(c=Ph(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=g1(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function lo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var $h=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vd=new RegExp($h.source,"g");function qhe(e){return function(){return e}}function Uhe(e){return function(t){return e(t)+""}}function Vhe(e,t){var r=$h.lastIndex=Vd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=$h.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:lo(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]?Uhe(h[0].x):qhe(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)d[(v=h[g]).i]=v.x(p);return d.join("")})}var gy=180/Math.PI,Rh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m1(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)*gy,skewX:Math.atan(h)*gy,scaleX:f,scaleY:d}}var Zc;function Ghe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Rh:m1(t.a,t.b,t.c,t.d,t.e,t.f)}function Khe(e){return e==null||(Zc||(Zc=document.createElementNS("http://www.w3.org/2000/svg","g")),Zc.setAttribute("transform",e),!(e=Zc.transform.baseVal.consolidate()))?Rh:(e=e.matrix,m1(e.a,e.b,e.c,e.d,e.e,e.f))}function v1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,g,v,b,x,C){if(p!==v||g!==b){var L=x.push("translate(",null,t,null,r);C.push({i:L-4,x:lo(p,v)},{i:L-2,x:lo(g,b)})}else(v||b)&&x.push("translate("+v+t+b+r)}function f(p,g,v,b){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:lo(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:lo(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,x,C){if(p!==v||g!==b){var L=x.push(s(x)+"scale(",null,",",null,")");C.push({i:L-4,x:lo(p,v)},{i:L-2,x:lo(g,b)})}else(v!==1||b!==1)&&x.push(s(x)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(x){for(var C=-1,L=b.length,N;++C<L;)v[(N=b[C]).i]=N.x(x);return v.join("")}}}var Xhe=v1(Ghe,"px, ","px)","deg)"),Yhe=v1(Khe,", ",")",")"),Zhe=1e-12;function my(e){return((e=Math.exp(e))+1/e)/2}function Jhe(e){return((e=Math.exp(e))-1/e)/2}function Qhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const epe=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],g=f[0],v=f[1],b=f[2],x=g-d,C=v-h,L=x*x+C*C,N,M;if(L<Zhe)M=Math.log(b/p)/t,N=function(Y){return[d+Y*x,h+Y*C,p*Math.exp(t*Y*M)]};else{var $=Math.sqrt(L),F=(b*b-p*p+o*L)/(2*p*r*$),E=(b*b-p*p-o*L)/(2*b*r*$),I=Math.log(Math.sqrt(F*F+1)-F),q=Math.log(Math.sqrt(E*E+1)-E);M=(q-I)/t,N=function(Y){var oe=Y*M,J=my(I),G=p/(r*$)*(J*Qhe(t*oe+I)-Jhe(I));return[d+G*x,h+G*C,p*J/my(t*oe+I)]}}return N.duration=M*1e3*t/Math.SQRT2,N}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 hl=0,na=0,Jl=0,y1=1e3,Wu,ra,qu=0,rs=0,_f=0,Ha=typeof performance=="object"&&performance.now?performance:Date,b1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Bp(){return rs||(b1(tpe),rs=Ha.now()+_f)}function tpe(){rs=0}function Uu(){this._call=this._time=this._next=null}Uu.prototype=jp.prototype={constructor:Uu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Bp():+r)+(t==null?0:+t),!this._next&&ra!==this&&(ra?ra._next=this:Wu=this,ra=this),this._call=e,this._time=r,Ih()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ih())}};function jp(e,t,r){var o=new Uu;return o.restart(e,t,r),o}function npe(){Bp(),++hl;for(var e=Wu,t;e;)(t=rs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--hl}function vy(){rs=(qu=Ha.now())+_f,hl=na=0;try{npe()}finally{hl=0,ipe(),rs=0}}function rpe(){var e=Ha.now(),t=e-qu;t>y1&&(_f-=t,qu=e)}function ipe(){for(var e,t=Wu,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:Wu=r);ra=e,Ih(o)}function Ih(e){if(!hl){na&&(na=clearTimeout(na));var t=e-rs;t>24?(e<1/0&&(na=setTimeout(vy,e-Ha.now()-_f)),Jl&&(Jl=clearInterval(Jl))):(Jl||(qu=Ha.now(),Jl=setInterval(rpe,y1)),hl=1,b1(vy))}}function yy(e,t,r){var o=new Uu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var ope=rc("start","end","cancel","interrupt"),spe=[],w1=0,by=1,Dh=2,fu=3,wy=4,zh=5,du=6;function Sf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;lpe(e,r,{name:t,index:o,group:s,on:ope,tween:spe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:w1})}function Wp(e,t){var r=Br(e,t);if(r.state>w1)throw new Error("too late; already scheduled");return r}function ri(e,t){var r=Br(e,t);if(r.state>fu)throw new Error("too late; already running");return r}function Br(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function lpe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=jp(c,0,r.time);function c(p){r.state=by,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,x;if(r.state!==by)return h();for(g in o)if(x=o[g],x.name===r.name){if(x.state===fu)return yy(f);x.state===wy?(x.state=du,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[g]):+g<t&&(x.state=du,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[g])}if(yy(function(){r.state===fu&&(r.state=wy,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Dh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Dh){for(r.state=fu,s=new Array(b=r.tween.length),g=0,v=-1;g<b;++g)(x=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++v]=x);s.length=v+1}}function d(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=zh,1),v=-1,b=s.length;++v<b;)s[v].call(e,g);r.state===zh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=du,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function hu(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>Dh&&o.state<zh,o.state=du,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function ape(e){return this.each(function(){hu(this,e)})}function cpe(e,t){var r,o;return function(){var s=ri(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 upe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=ri(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 fpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Br(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?cpe:upe)(r,e,t))}function qp(e,t,r){var o=e._id;return e.each(function(){var s=ri(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Br(s,o).value[t]}}function x1(e,t){var r;return(typeof t=="number"?lo:t instanceof Fa?py:(r=Fa(t))?(t=r,py):Vhe)(e,t)}function dpe(e){return function(){this.removeAttribute(e)}}function hpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ppe(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 gpe(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 mpe(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 vpe(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 ype(e,t){var r=kf(e),o=r==="transform"?Yhe:x1;return this.attrTween(e,typeof t=="function"?(r.local?vpe:mpe)(r,o,qp(this,"attr."+e,t)):t==null?(r.local?hpe:dpe)(r):(r.local?gpe:ppe)(r,o,t))}function bpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function wpe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function xpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&wpe(e,c)),r}return s._value=t,s}function kpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&bpe(e,c)),r}return s._value=t,s}function _pe(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=kf(e);return this.tween(r,(o.local?xpe:kpe)(o,t))}function Spe(e,t){return function(){Wp(this,e).delay=+t.apply(this,arguments)}}function Tpe(e,t){return t=+t,function(){Wp(this,e).delay=t}}function Cpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Spe:Tpe)(t,e)):Br(this.node(),t).delay}function Epe(e,t){return function(){ri(this,e).duration=+t.apply(this,arguments)}}function Ape(e,t){return t=+t,function(){ri(this,e).duration=t}}function Lpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Epe:Ape)(t,e)):Br(this.node(),t).duration}function Mpe(e,t){if(typeof t!="function")throw new Error;return function(){ri(this,e).ease=t}}function Npe(e){var t=this._id;return arguments.length?this.each(Mpe(t,e)):Br(this.node(),t).ease}function Ope(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ri(this,e).ease=r}}function Ppe(e){if(typeof e!="function")throw new Error;return this.each(Ope(this._id,e))}function $pe(e){typeof e!="function"&&(e=e1(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 Oi(o,this._parents,this._name,this._id)}function Rpe(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],g=h.length,v=f[d]=new Array(g),b,x=0;x<g;++x)(b=h[x]||p[x])&&(v[x]=b);for(;d<o;++d)f[d]=t[d];return new Oi(f,this._parents,this._name,this._id)}function Ipe(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 Dpe(e,t,r){var o,s,c=Ipe(t)?Wp:ri;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function zpe(e,t){var r=this._id;return arguments.length<2?Br(this.node(),r).on.on(e):this.each(Dpe(r,e,t))}function Fpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Hpe(){return this.on("end.remove",Fpe(this._id))}function Bpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=zp(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),g,v,b=0;b<h;++b)(g=d[b])&&(v=e.call(g,g.__data__,b,d))&&("__data__"in g&&(v.__data__=g.__data__),p[b]=v,Sf(p[b],t,r,b,p,Br(g,r)));return new Oi(c,this._parents,t,r)}function jpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Qx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var b=e.call(g,g.__data__,v,h),x,C=Br(g,r),L=0,N=b.length;L<N;++L)(x=b[L])&&Sf(x,t,r,L,b,C);c.push(b),f.push(g)}return new Oi(c,f,t,r)}var Wpe=nc.prototype.constructor;function qpe(){return new Wpe(this._groups,this._parents)}function Upe(e,t){var r,o,s;return function(){var c=fl(this,e),f=(this.style.removeProperty(e),fl(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function k1(e){return function(){this.style.removeProperty(e)}}function Vpe(e,t,r){var o,s=r+"",c;return function(){var f=fl(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Gpe(e,t,r){var o,s,c;return function(){var f=fl(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),fl(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Kpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=ri(this,e),p=h.on,g=h.value[c]==null?d||(d=k1(t)):void 0;(p!==r||s!==g)&&(o=(r=p).copy()).on(f,s=g),h.on=o}}function Xpe(e,t,r){var o=(e+="")=="transform"?Xhe:x1;return t==null?this.styleTween(e,Upe(e,o)).on("end.style."+e,k1(e)):typeof t=="function"?this.styleTween(e,Gpe(e,o,qp(this,"style."+e,t))).each(Kpe(this._id,e)):this.styleTween(e,Vpe(e,o,t),r).on("end.style."+e,null)}function Ype(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Zpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Ype(e,f,r)),o}return c._value=t,c}function Jpe(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,Zpe(e,t,r??""))}function Qpe(e){return function(){this.textContent=e}}function ege(e){return function(){var t=e(this);this.textContent=t??""}}function tge(e){return this.tween("text",typeof e=="function"?ege(qp(this,"text",e)):Qpe(e==null?"":e+""))}function nge(e){return function(t){this.textContent=e.call(this,t)}}function rge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&nge(s)),t}return o._value=e,o}function ige(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,rge(e))}function oge(){for(var e=this._name,t=this._id,r=_1(),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 g=Br(h,t);Sf(h,e,r,p,f,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Oi(o,this._parents,e,r)}function sge(){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=ri(this,o),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var lge=0;function Oi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function _1(){return++lge}var pi=nc.prototype;Oi.prototype={constructor:Oi,select:Bpe,selectAll:jpe,selectChild:pi.selectChild,selectChildren:pi.selectChildren,filter:$pe,merge:Rpe,selection:qpe,transition:oge,call:pi.call,nodes:pi.nodes,node:pi.node,size:pi.size,empty:pi.empty,each:pi.each,on:zpe,attr:ype,attrTween:_pe,style:Xpe,styleTween:Jpe,text:tge,textTween:ige,remove:Hpe,tween:fpe,delay:Cpe,duration:Lpe,ease:Npe,easeVarying:Ppe,end:sge,[Symbol.iterator]:pi[Symbol.iterator]};function age(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var cge={time:null,delay:0,duration:250,ease:age};function uge(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 fge(e){var t,r;e instanceof Oi?(t=e._id,e=e._name):(t=_1(),(r=cge).time=Bp(),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])&&Sf(h,e,t,p,f,r||uge(h,t));return new Oi(o,this._parents,e,t)}nc.prototype.interrupt=ape;nc.prototype.transition=fge;const Jc=e=>()=>e;function dge(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 Si(e,t,r){this.k=e,this.x=t,this.y=r}Si.prototype={constructor:Si,scale:function(e){return e===1?this:new Si(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Si(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 Up=new Si(1,0,0);Si.prototype;function Gd(e){e.stopImmediatePropagation()}function Ql(e){e.preventDefault(),e.stopImmediatePropagation()}function hge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function pge(){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 xy(){return this.__zoom||Up}function gge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function mge(){return navigator.maxTouchPoints||"ontouchstart"in this}function vge(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 yge(){var e=hge,t=pge,r=vge,o=gge,s=mge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=epe,p=rc("start","zoom","end"),g,v,b,x=500,C=150,L=0,N=10;function M(S){S.property("__zoom",xy).on("wheel.zoom",oe,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",K).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(S,k,D,R){var ae=S.selection?S.selection():S;ae.property("__zoom",xy),S!==ae?I(S,k,D,R):ae.interrupt().each(function(){q(this,arguments).event(R).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},M.scaleBy=function(S,k,D,R){M.scaleTo(S,function(){var ae=this.__zoom.k,ce=typeof k=="function"?k.apply(this,arguments):k;return ae*ce},D,R)},M.scaleTo=function(S,k,D,R){M.transform(S,function(){var ae=t.apply(this,arguments),ce=this.__zoom,_e=D==null?E(ae):typeof D=="function"?D.apply(this,arguments):D,je=ce.invert(_e),Ae=typeof k=="function"?k.apply(this,arguments):k;return r(F($(ce,Ae),_e,je),ae,f)},D,R)},M.translateBy=function(S,k,D,R){M.transform(S,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),f)},null,R)},M.translateTo=function(S,k,D,R,ae){M.transform(S,function(){var ce=t.apply(this,arguments),_e=this.__zoom,je=R==null?E(ce):typeof R=="function"?R.apply(this,arguments):R;return r(Up.translate(je[0],je[1]).scale(_e.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof D=="function"?-D.apply(this,arguments):-D),ce,f)},R,ae)};function $(S,k){return k=Math.max(c[0],Math.min(c[1],k)),k===S.k?S:new Si(k,S.x,S.y)}function F(S,k,D){var R=k[0]-D[0]*S.k,ae=k[1]-D[1]*S.k;return R===S.x&&ae===S.y?S:new Si(S.k,R,ae)}function E(S){return[(+S[0][0]+ +S[1][0])/2,(+S[0][1]+ +S[1][1])/2]}function I(S,k,D,R){S.on("start.zoom",function(){q(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(R).end()}).tween("zoom",function(){var ae=this,ce=arguments,_e=q(ae,ce).event(R),je=t.apply(ae,ce),Ae=D==null?E(je):typeof D=="function"?D.apply(ae,ce):D,Ke=Math.max(je[1][0]-je[0][0],je[1][1]-je[0][1]),Ue=ae.__zoom,He=typeof k=="function"?k.apply(ae,ce):k,$e=h(Ue.invert(Ae).concat(Ke/Ue.k),He.invert(Ae).concat(Ke/He.k));return function(H){if(H===1)H=He;else{var Z=$e(H),re=Ke/Z[2];H=new Si(re,Ae[0]-Z[0]*re,Ae[1]-Z[1]*re)}_e.zoom(null,H)}})}function q(S,k,D){return!D&&S.__zooming||new Y(S,k)}function Y(S,k){this.that=S,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(S,k),this.taps=0}Y.prototype={event:function(S){return S&&(this.sourceEvent=S),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(S,k){return this.mouse&&S!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&S!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&S!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(S){var k=Yn(this.that).datum();p.call(S,this.that,new dge(S,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),k)}};function oe(S,...k){if(!e.apply(this,arguments))return;var D=q(this,k).event(S),R=this.__zoom,ae=Math.max(c[0],Math.min(c[1],R.k*Math.pow(2,o.apply(this,arguments)))),ce=yi(S);if(D.wheel)(D.mouse[0][0]!==ce[0]||D.mouse[0][1]!==ce[1])&&(D.mouse[1]=R.invert(D.mouse[0]=ce)),clearTimeout(D.wheel);else{if(R.k===ae)return;D.mouse=[ce,R.invert(ce)],hu(this),D.start()}Ql(S),D.wheel=setTimeout(_e,C),D.zoom("mouse",r(F($(R,ae),D.mouse[0],D.mouse[1]),D.extent,f));function _e(){D.wheel=null,D.end()}}function J(S,...k){if(b||!e.apply(this,arguments))return;var D=S.currentTarget,R=q(this,k,!0).event(S),ae=Yn(S.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),ce=yi(S,D),_e=S.clientX,je=S.clientY;u1(S.view),Gd(S),R.mouse=[ce,this.__zoom.invert(ce)],hu(this),R.start();function Ae(Ue){if(Ql(Ue),!R.moved){var He=Ue.clientX-_e,$e=Ue.clientY-je;R.moved=He*He+$e*$e>L}R.event(Ue).zoom("mouse",r(F(R.that.__zoom,R.mouse[0]=yi(Ue,D),R.mouse[1]),R.extent,f))}function Ke(Ue){ae.on("mousemove.zoom mouseup.zoom",null),f1(Ue.view,R.moved),Ql(Ue),R.event(Ue).end()}}function G(S,...k){if(e.apply(this,arguments)){var D=this.__zoom,R=yi(S.changedTouches?S.changedTouches[0]:S,this),ae=D.invert(R),ce=D.k*(S.shiftKey?.5:2),_e=r(F($(D,ce),R,ae),t.apply(this,k),f);Ql(S),d>0?Yn(this).transition().duration(d).call(I,_e,R,S):Yn(this).call(M.transform,_e,R,S)}}function K(S,...k){if(e.apply(this,arguments)){var D=S.touches,R=D.length,ae=q(this,k,S.changedTouches.length===R).event(S),ce,_e,je,Ae;for(Gd(S),_e=0;_e<R;++_e)je=D[_e],Ae=yi(je,this),Ae=[Ae,this.__zoom.invert(Ae),je.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ae[2]&&(ae.touch1=Ae,ae.taps=0):(ae.touch0=Ae,ce=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ce&&(ae.taps<2&&(v=Ae[0],g=setTimeout(function(){g=null},x)),hu(this),ae.start())}}function P(S,...k){if(this.__zooming){var D=q(this,k).event(S),R=S.changedTouches,ae=R.length,ce,_e,je,Ae;for(Ql(S),ce=0;ce<ae;++ce)_e=R[ce],je=yi(_e,this),D.touch0&&D.touch0[2]===_e.identifier?D.touch0[0]=je:D.touch1&&D.touch1[2]===_e.identifier&&(D.touch1[0]=je);if(_e=D.that.__zoom,D.touch1){var Ke=D.touch0[0],Ue=D.touch0[1],He=D.touch1[0],$e=D.touch1[1],H=(H=He[0]-Ke[0])*H+(H=He[1]-Ke[1])*H,Z=(Z=$e[0]-Ue[0])*Z+(Z=$e[1]-Ue[1])*Z;_e=$(_e,Math.sqrt(H/Z)),je=[(Ke[0]+He[0])/2,(Ke[1]+He[1])/2],Ae=[(Ue[0]+$e[0])/2,(Ue[1]+$e[1])/2]}else if(D.touch0)je=D.touch0[0],Ae=D.touch0[1];else return;D.zoom("touch",r(F(_e,je,Ae),D.extent,f))}}function O(S,...k){if(this.__zooming){var D=q(this,k).event(S),R=S.changedTouches,ae=R.length,ce,_e;for(Gd(S),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ce=0;ce<ae;++ce)_e=R[ce],D.touch0&&D.touch0[2]===_e.identifier?delete D.touch0:D.touch1&&D.touch1[2]===_e.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(_e=yi(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<N)){var je=Yn(this).on("dblclick.zoom");je&&je.apply(this,arguments)}}}return M.wheelDelta=function(S){return arguments.length?(o=typeof S=="function"?S:Jc(+S),M):o},M.filter=function(S){return arguments.length?(e=typeof S=="function"?S:Jc(!!S),M):e},M.touchable=function(S){return arguments.length?(s=typeof S=="function"?S:Jc(!!S),M):s},M.extent=function(S){return arguments.length?(t=typeof S=="function"?S:Jc([[+S[0][0],+S[0][1]],[+S[1][0],+S[1][1]]]),M):t},M.scaleExtent=function(S){return arguments.length?(c[0]=+S[0],c[1]=+S[1],M):[c[0],c[1]]},M.translateExtent=function(S){return arguments.length?(f[0][0]=+S[0][0],f[1][0]=+S[1][0],f[0][1]=+S[0][1],f[1][1]=+S[1][1],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(S){return arguments.length?(r=S,M):r},M.duration=function(S){return arguments.length?(d=+S,M):d},M.interpolate=function(S){return arguments.length?(h=S,M):h},M.on=function(){var S=p.on.apply(p,arguments);return S===p?M:S},M.clickDistance=function(S){return arguments.length?(L=(S=+S)*S,M):Math.sqrt(L)},M.tapDistance=function(S){return arguments.length?(N=+S,M):N},M}function bge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return S1(this.cover(t,r),t,r,e)}function S1(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,g=e._y1,v,b,x,C,L,N,M,$;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(v=(d+p)/2))?d=v:p=v,(N=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[M=N<<1|L]))return s[M]=f,e;if(x=+e._x.call(null,c.data),C=+e._y.call(null,c.data),t===x&&r===C)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(L=t>=(v=(d+p)/2))?d=v:p=v,(N=r>=(b=(h+g)/2))?h=b:g=b;while((M=N<<1|L)===($=(C>=b)<<1|x>=v));return s[$]=c,s[M]=f,e}function wge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-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>g&&(g=s),c<p&&(p=c),c>v&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;r<o;++r)S1(this,f[r],d[r],e[r]);return this}function xge(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 kge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function _ge(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 zn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Sge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,g=this._x1,v=this._y1,b=[],x=this._root,C,L;for(x&&b.push(new zn(x,s,c,g,v)),r==null?r=1/0:(s=e-r,c=t-r,g=e+r,v=t+r,r*=r);C=b.pop();)if(!(!(x=C.node)||(f=C.x0)>g||(d=C.y0)>v||(h=C.x1)<s||(p=C.y1)<c))if(x.length){var N=(f+h)/2,M=(d+p)/2;b.push(new zn(x[3],N,M,h,p),new zn(x[2],f,M,N,p),new zn(x[1],N,d,h,M),new zn(x[0],f,d,N,M)),(L=(t>=M)<<1|e>=N)&&(C=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=C)}else{var $=e-+this._x.call(null,x.data),F=t-+this._y.call(null,x.data),E=$*$+F*F;if(E<r){var I=Math.sqrt(r=E);s=e-I,c=t-I,g=e+I,v=t+I,o=x.data}}return o}function Tge(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+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,g,v,b,x,C,L,N,M;if(!r)return this;if(r.length)for(;;){if((C=g>=(b=(f+h)/2))?f=b:h=b,(L=v>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[N=L<<1|C]))return this;if(!r.length)break;(t[N+1&3]||t[N+2&3]||t[N+3&3])&&(o=t,M=N)}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[N]=c:delete t[N],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function Cge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Ege(){return this._root}function Age(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Lge(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new zn(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,g=(f+h)/2;(s=o[3])&&t.push(new zn(s,p,g,d,h)),(s=o[2])&&t.push(new zn(s,c,g,p,h)),(s=o[1])&&t.push(new zn(s,p,f,d,g)),(s=o[0])&&t.push(new zn(s,c,f,p,g))}return this}function Mge(e){var t=[],r=[],o;for(this._root&&t.push(new zn(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,g=(f+h)/2,v=(d+p)/2;(c=s[0])&&t.push(new zn(c,f,d,g,v)),(c=s[1])&&t.push(new zn(c,g,d,h,v)),(c=s[2])&&t.push(new zn(c,f,v,g,p)),(c=s[3])&&t.push(new zn(c,g,v,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Nge(e){return e[0]}function Oge(e){return arguments.length?(this._x=e,this):this._x}function Pge(e){return e[1]}function $ge(e){return arguments.length?(this._y=e,this):this._y}function Vp(e,t,r){var o=new Gp(t??Nge,r??Pge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Gp(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 ky(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Bn=Vp.prototype=Gp.prototype;Bn.copy=function(){var e=new Gp(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=ky(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]=ky(o));return e};Bn.add=bge;Bn.addAll=wge;Bn.cover=xge;Bn.data=kge;Bn.extent=_ge;Bn.find=Sge;Bn.remove=Tge;Bn.removeAll=Cge;Bn.root=Ege;Bn.size=Age;Bn.visit=Lge;Bn.visitAfter=Mge;Bn.x=Oge;Bn.y=$ge;function Hn(e){return function(){return e}}function ho(e){return(e()-.5)*1e-6}function Rge(e){return e.x+e.vx}function Ige(e){return e.y+e.vy}function Dge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Hn(e==null?1:+e));function f(){for(var p,g=t.length,v,b,x,C,L,N,M=0;M<c;++M)for(v=Vp(t,Rge,Ige).visitAfter(d),p=0;p<g;++p)b=t[p],L=r[b.index],N=L*L,x=b.x+b.vx,C=b.y+b.vy,v.visit($);function $(F,E,I,q,Y){var oe=F.data,J=F.r,G=L+J;if(oe){if(oe.index>b.index){var K=x-oe.x-oe.vx,P=C-oe.y-oe.vy,O=K*K+P*P;O<G*G&&(K===0&&(K=ho(o),O+=K*K),P===0&&(P=ho(o),O+=P*P),O=(G-(O=Math.sqrt(O)))/O*s,b.vx+=(K*=O)*(G=(J*=J)/(N+J)),b.vy+=(P*=O)*G,oe.vx-=K*(G=1-G),oe.vy-=P*G)}return}return E>x+G||q<x-G||I>C+G||Y<C-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p<g;++p)v=t[p],r[v.index]=+e(v,p,t)}}return f.initialize=function(p,g){t=p,o=g,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:Hn(+p),h(),f):e},f}function zge(e){return e.index}function _y(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Fge(e){var t=zge,r=v,o,s=Hn(30),c,f,d,h,p,g=1;e==null&&(e=[]);function v(N){return 1/Math.min(d[N.source.index],d[N.target.index])}function b(N){for(var M=0,$=e.length;M<g;++M)for(var F=0,E,I,q,Y,oe,J,G;F<$;++F)E=e[F],I=E.source,q=E.target,Y=q.x+q.vx-I.x-I.vx||ho(p),oe=q.y+q.vy-I.y-I.vy||ho(p),J=Math.sqrt(Y*Y+oe*oe),J=(J-c[F])/J*N*o[F],Y*=J,oe*=J,q.vx-=Y*(G=h[F]),q.vy-=oe*G,I.vx+=Y*(G=1-G),I.vy+=oe*G}function x(){if(f){var N,M=f.length,$=e.length,F=new Map(f.map((I,q)=>[t(I,q,f),I])),E;for(N=0,d=new Array(M);N<$;++N)E=e[N],E.index=N,typeof E.source!="object"&&(E.source=_y(F,E.source)),typeof E.target!="object"&&(E.target=_y(F,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(N=0,h=new Array($);N<$;++N)E=e[N],h[N]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array($),C(),c=new Array($),L()}}function C(){if(f)for(var N=0,M=e.length;N<M;++N)o[N]=+r(e[N],N,e)}function L(){if(f)for(var N=0,M=e.length;N<M;++N)c[N]=+s(e[N],N,e)}return b.initialize=function(N,M){f=N,p=M,x()},b.links=function(N){return arguments.length?(e=N,x(),b):e},b.id=function(N){return arguments.length?(t=N,b):t},b.iterations=function(N){return arguments.length?(g=+N,b):g},b.strength=function(N){return arguments.length?(r=typeof N=="function"?N:Hn(+N),C(),b):r},b.distance=function(N){return arguments.length?(s=typeof N=="function"?N:Hn(+N),L(),b):s},b}const Hge=1664525,Bge=1013904223,Sy=4294967296;function jge(){let e=1;return()=>(e=(Hge*e+Bge)%Sy)/Sy}function Wge(e){return e.x}function qge(e){return e.y}var Uge=10,Vge=Math.PI*(3-Math.sqrt(5));function Gge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=jp(v),p=rc("tick","end"),g=jge();e==null&&(e=[]);function v(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var N,M=e.length,$;L===void 0&&(L=1);for(var F=0;F<L;++F)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),N=0;N<M;++N)$=e[N],$.fx==null?$.x+=$.vx*=f:($.x=$.fx,$.vx=0),$.fy==null?$.y+=$.vy*=f:($.y=$.fy,$.vy=0);return t}function x(){for(var L=0,N=e.length,M;L<N;++L){if(M=e[L],M.index=L,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var $=Uge*Math.sqrt(.5+L),F=L*Vge;M.x=$*Math.cos(F),M.y=$*Math.sin(F)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function C(L){return L.initialize&&L.initialize(e,g),L}return x(),t={tick:b,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,x(),d.forEach(C),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(g=L,d.forEach(C),t):g},force:function(L,N){return arguments.length>1?(N==null?d.delete(L):d.set(L,C(N)),t):d.get(L)},find:function(L,N,M){var $=0,F=e.length,E,I,q,Y,oe;for(M==null?M=1/0:M*=M,$=0;$<F;++$)Y=e[$],E=L-Y.x,I=N-Y.y,q=E*E+I*I,q<M&&(oe=Y,M=q);return oe},on:function(L,N){return arguments.length>1?(p.on(L,N),t):p.on(L)}}}function Kge(){var e,t,r,o,s=Hn(-30),c,f=1,d=1/0,h=.81;function p(x){var C,L=e.length,N=Vp(e,Wge,qge).visitAfter(v);for(o=x,C=0;C<L;++C)t=e[C],N.visit(b)}function g(){if(e){var x,C=e.length,L;for(c=new Array(C),x=0;x<C;++x)L=e[x],c[L.index]=+s(L,x,e)}}function v(x){var C=0,L,N,M=0,$,F,E;if(x.length){for($=F=E=0;E<4;++E)(L=x[E])&&(N=Math.abs(L.value))&&(C+=L.value,M+=N,$+=N*L.x,F+=N*L.y);x.x=$/M,x.y=F/M}else{L=x,L.x=L.data.x,L.y=L.data.y;do C+=c[L.data.index];while(L=L.next)}x.value=C}function b(x,C,L,N){if(!x.value)return!0;var M=x.x-t.x,$=x.y-t.y,F=N-C,E=M*M+$*$;if(F*F/h<E)return E<d&&(M===0&&(M=ho(r),E+=M*M),$===0&&($=ho(r),E+=$*$),E<f&&(E=Math.sqrt(f*E)),t.vx+=M*x.value*o/E,t.vy+=$*x.value*o/E),!0;if(x.length||E>=d)return;(x.data!==t||x.next)&&(M===0&&(M=ho(r),E+=M*M),$===0&&($=ho(r),E+=$*$),E<f&&(E=Math.sqrt(f*E)));do x.data!==t&&(F=c[x.data.index]*o/E,t.vx+=M*F,t.vy+=$*F);while(x=x.next)}return p.initialize=function(x,C){e=x,r=C,g()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Hn(+x),g(),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 Xge(e){var t=Hn(.1),r,o,s;typeof e!="function"&&(e=Hn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vx+=(s[h]-g.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:Hn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Hn(+d),f(),c):e},c}function Yge(e){var t=Hn(.1),r,o,s;typeof e!="function"&&(e=Hn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vy+=(s[h]-g.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:Hn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Hn(+d),f(),c):e},c}function Zge(){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 Ty(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 po(...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]=po.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:Ty(t[o])&&Ty(r[o])?t[o]=po(t[o],r[o]):t[o]=r[o])}),t},{})}const T1={mergeArrays:!0};po.options=T1;po.withOptions=(e,...t)=>{po.options={mergeArrays:!0,...e};const r=po(...t);return po.options=T1,r};var Jge=po;function Qge(){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 eme(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function C1(e){e.preventDefault(),e.stopPropagation()}function E1(e){return typeof e=="number"}function So(e,t){return E1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function tme(e){return`${e.source.id}-${e.target.id}`}function A1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function nme(e){return`url(#${A1(e.color)})`}function rme(e){return{size:e,padding:(t,r)=>So(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const L1={Arrow:e=>rme(e)},ime=(e,t,r)=>[t/2,r/2],ome=(e,t,r)=>[Cy(0,t),Cy(0,r)];function Cy(e,t){return Math.random()*(t-e)+e}const Fh={Centered:ime,Randomized:ome};function sme(){return{autoResize:!1,callbacks:{},hooks:{},initial:eme(),nodeRadius:16,marker:L1.Arrow(4),modifiers:{},positionInitializer:Fh.Centered,simulation:{alphas:Zge(),forces:Qge()},zoom:{initial:1,min:.1,max:2}}}function lme(e={}){return Jge.withOptions({mergeArrays:!1},sme(),e)}function ame({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",g=>C1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,Up.translate(c,f).scale(d)),p.append("g")}function cme({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function ume({config:e,onDragStart:t,onDragEnd:r}){const o=Ahe().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),Yn(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),Yn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function fme({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}:dme({links:c},r)}function dme(e,t){const r=[...hme(e,t),...pme(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function hme(e,t){return M1(e,t,(r,o)=>r.target.id===o.id)}function pme(e,t){return M1(e,t,(r,o)=>r.source.id===o.id)}function M1(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 Hh(e){return e.x??0}function Bh(e){return e.y??0}function Kp({source:e,target:t}){const r=new dl(Hh(e),Bh(e)),o=new dl(Hh(t),Bh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function N1({center:e,node:t}){const r=new dl(Hh(t),Bh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new dl(0,1))),{n:r,c:o}}function O1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=Kp({source:t,target:r});return{start:o.add(c.multiply(So(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function gme(e){const{start:t,end:r}=O1(e);return`M${t.x},${t.y}
|
|
47
|
-
L${r.x},${r.y}`}function mme(e){const{start:t,end:r}=O1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function vme({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=Kp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(So(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(So(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y}
|
|
48
|
-
A${v},${v},0,0,1,${g.x},${g.y}`}function yme({center:e,config:t,node:r}){const{n:o,c:s}=N1({center:e,node:r}),c=So(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
49
|
-
A${c},${c},0,1,0,${g.x},${g.y}`}function bme({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=Kp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function wme({center:e,config:t,node:r}){const{n:o,c:s}=N1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*So(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const nl={line:{labelTransform:mme,path:gme},arc:{labelTransform:bme,path:vme},reflexive:{labelTransform:wme,path:yme}};function xme(e){return e.append("g").classed("links",!0).selectAll("path")}function kme({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>tme(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>nme(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 _me(e){Sme(e),Tme(e)}function Sme({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?nl.reflexive.path({config:t,node:s.source,center:e}):P1(r,s.source,s.target)?nl.arc.path({config:t,source:s.source,target:s.target}):nl.line.path({config:t,source:s.source,target:s.target}))}function Tme({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?nl.reflexive.labelTransform({config:e,node:s.source,center:t}):P1(r,s.source,s.target)?nl.arc.labelTransform({config:e,source:s.source,target:s.target}):nl.line.labelTransform({config:e,source:s.source,target:s.target}))}function P1(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 Cme(e){return e.append("defs").selectAll("marker")}function Eme({config:e,graph:t,selection:r}){return r?.data(Ame(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>A1(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",Lme(e.marker.path)),s})}function Ame(e){return[...new Set(e.links.map(t=>t.color))]}function Lme(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 Mme(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Nme({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 g=p.append("circle").classed("node",!0).attr("r",b=>So(e,b)).on("contextmenu",(b,x)=>{C1(b),o(x)}).on("pointerdown",(b,x)=>Pme(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=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?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const Ome=500;function Pme(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>Ome){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function $me(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Rme({center:e,config:t,graph:r,onTick:o}){const s=Gge(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",Xge(()=>e().x).strength(p)).force("y",Yge(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",Kge().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",Dge().radius(p=>d.radiusMultiplier*So(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Fge(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 Ime({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=yge().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}var Dme=class{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(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(Hfe(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return dl.of([this.width,this.height]).divide(2).subtract(dl.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(E1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Eme({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=kme({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Nme({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=Rme({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),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=Ime({config:this.config,canvasContainer:()=>Yn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=ame({applyZoom:this.scale!==1,container:Yn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=xme(this.canvas),this.nodeSelection=Mme(this.canvas),this.markerSelection=Cme(this.canvas),this.drag=ume({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(){$me(this.nodeSelection),_me({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Yn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){cme({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=fme({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Ey({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function zme(e){return{...e}}function Xp(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Ay(e){const t=e.map(o=>kx(o)),r=IL(t);return t.map(({raw:o,id:s,splitted:c})=>Xp({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c[c.length-1]},isFocused:!1,id:s,type:"external"}))}function Fme(e,t){return Xp({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 Hme(e,t){if(!e)return Ey({});const r=_t.value.experimental?.viteModuleRunner?Ay(e.externalized):Ay([...e.inlined,...e.externalized]),o=_t.value.experimental?.viteModuleRunner?e.inlined.map(d=>Fme(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 g=c[d],v=c[p];if(!(g===void 0||v===void 0))return zme({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ey({nodes:s,links:f})}const Bme={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},jme={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Wme={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},qme={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Ume={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Vme={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},$1=tt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=ur("tooltip");return e.state==="pass"?(te(),ve("div",Bme)):e.failedSnapshot?ot((te(),ve("div",jme,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(te(),ve("div",Wme)):e.mode==="todo"?ot((te(),ve("div",qme,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?ot((te(),ve("div",Ume,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(te(),ve("div",Vme))}}}),Gme={border:"b base","p-4":""},Kme=["innerHTML"],Xme=tt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(te(),ve("div",Gme,[X("div",{"text-xs":"","mb-1":"",class:rt(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Pe(t(e.time))+" | "+Pe(e.taskName)+" | "+Pe(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,Kme)]))}}),Yme={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Zme={key:1,p6:""},Jme=tt({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Yx.value;if(o){const s=Op(xo.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ga(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?bL(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(te(),ve("div",Yme,[(te(!0),ve(et,null,yn(t.value,({taskId:c,type:f,time:d,content:h})=>(te(),ve("div",{key:c,"font-mono":""},[Le(Xme,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(te(),ve("div",Zme,[...s[0]||(s[0]=[Je(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Je(") ",-1)])]))}}),R1={"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(R1);var pr=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)},Fs,ia,Uo;class Qme{constructor(...t){Fs.set(this,new Map),ia.set(this,new Map),Uo.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()),pr(this,Uo,"f").has(o)||pr(this,Uo,"f").set(o,new Set);const c=pr(this,Uo,"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&&pr(this,ia,"f").set(o,d),f=!1,h)continue;const p=pr(this,Fs,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);pr(this,Fs,"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:pr(this,Fs,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&pr(this,ia,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:pr(this,Uo,"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 pr(this,Uo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:pr(this,Fs,"f"),extensions:pr(this,ia,"f")}}}Fs=new WeakMap,ia=new WeakMap,Uo=new WeakMap;const eve=new Qme(R1)._freeze();function Ba(e){if(yr)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 I1(e,t){const r=t?eve.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function D1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function jh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Ba(e)}const pu=tt({__name:"CodeMirrorContainer",props:ka({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ka(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=af(e,"modelValue"),s=wT(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",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=Ve();return Ri(async()=>{const d=tue(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.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),Rn.value=d,setTimeout(()=>Rn.value?.refresh(),100)}),(d,h)=>(te(),ve("div",{relative:"","font-mono":"","text-sm":"",class:rt(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),tve=tt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ve(""),c=Wt(void 0),f=Ve(!1),d=Ve(!0),h=Ve(!1),p=Ve();bt(()=>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 ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(J){console.error("cannot fetch file",J)}await Ct(),d.value=!1}},{immediate:!0}),bt(()=>[d.value,h.value,r.file,Fx.value,Hx.value],([J,G,K,P,O])=>{!J&&!G&&(P!=null?Ct(()=>{const S=p.value,k=S??{line:(P??1)-1,ch:O??0};S?p.value=void 0:(Rn.value?.scrollIntoView(k,100),Ct(()=>{Rn.value?.focus(),Rn.value?.setCursor(k)}))}):Ct(()=>{Rn.value?.focus()}))},{flush:"post"});const g=ke(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ve(),b=ke(()=>{const J=[];function G(K){K.result?.errors&&J.push(...K.result.errors),K.type==="suite"&&K.tasks.forEach(G)}return r.file?.tasks.forEach(G),J}),x=ke(()=>{const J=[];function G(K){K.type==="test"&&J.push(...K.annotations),K.type==="suite"&&K.tasks.forEach(G)}return r.file?.tasks.forEach(G),J}),C=[],L=[],N=[],M=Ve(!1);function $(){N.forEach(([J,G,K])=>{J.removeEventListener("click",G),K()}),N.length=0}nx(v,()=>{Rn.value?.refresh()});function F(){f.value=c.value!==Rn.value.getValue()}bt(f,J=>{o("draft",J)},{immediate:!0});function E(J){const K=(J?.stacks||[]).filter(D=>D.file&&D.file===r.file?.filepath)?.[0];if(!K)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${J?.message||""}`,P.appendChild(O);const S=document.createElement("span");S.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",S.tabIndex=0,S.ariaLabel="Open in Editor",Hw(S,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await Np(K.file,K.line,K.column)};S.addEventListener("click",k),P.appendChild(S),N.push([S,k,()=>xp(S)]),L.push(Rn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),C.push(Rn.value.addLineWidget(K.line-1,P))}function I(J){if(!J.location)return;const{line:G,file:K}=J.location;if(K!==r.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const S=document.createElement("span");S.textContent=`${J.type}: `,S.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=J.message.replace(/[^\r]\n/,`\r
|
|
50
|
-
`),O.append(S,k),P.append(O);const D=J.attachment;if(D?.path||D?.body)if(D.contentType?.startsWith("image/")){const R=document.createElement("a"),ae=document.createElement("img");R.classList.add("inline-block","mt-3"),R.style.maxWidth="50vw";const ce=D.path||D.body;typeof ce=="string"&&(ce.startsWith("http://")||ce.startsWith("https://"))?(ae.setAttribute("src",ce),R.referrerPolicy="no-referrer"):ae.setAttribute("src",Ba(D)),R.target="_blank",R.href=ae.src,R.append(ae),P.append(R)}else{const R=document.createElement("a");R.href=Ba(D),R.download=I1(J.message,D.contentType),R.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ce=document.createElement("span");ce.textContent="Download",R.append(ae,ce),P.append(R)}C.push(Rn.value.addLineWidget(G-1,P))}const{pause:q,resume:Y}=bt([Rn,b,x,Bs],([J,G,K,P])=>{if(!J){C.length=0,L.length=0,$();return}P&&(J.off("changes",F),$(),C.forEach(O=>O.clear()),L.forEach(O=>J?.removeLineClass(O,"wrap")),C.length=0,L.length=0,setTimeout(()=>{G.forEach(E),K.forEach(I),M.value||J.clearHistory(),J.on("changes",F)},100))},{flush:"post"});Gw(()=>[Bs.value,h.value,p.value],([J,G],K)=>{J&&!G&&K&&K[2]&&Rn.value?.setCursor(K[2])},{debounce:100,flush:"post"});async function oe(J){if(h.value)return;q(),h.value=!0,await Ct();const G=Rn.value;G&&(G.setOption("readOnly",!0),await Ct(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",F),$(),C.forEach(K=>K.clear()),L.forEach(K=>G?.removeLineClass(K,"wrap")),C.length=0,L.length=0;try{M.value=!0,await ft.rpc.saveTestFile(r.file.filepath,J),c.value=J,f.value=!1}catch(K){console.error("error saving file",K)}M.value||G?.clearHistory();try{await a0(Bs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await a0(Bs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(E),x.value.forEach(I),G?.on("changes",F),h.value=!1,await Ct(),G&&(G.setOption("readOnly",!1),await Ct(),G.refresh()),Y()}return Ga($),(J,G)=>(te(),We(pu,Ti({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=K=>s.value=K),"h-full":""},{lineNumbers:!0,readOnly:W(yr)||!W(_t).api?.allowWrite,saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:oe}),null,16,["modelValue","mode"]))}}),Yp=tt({__name:"Modal",props:ka({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=af(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(te(),ve("div",{class:rt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:rt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:rt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:Pt(t.value?{}:{transform:o.value})},[zt(c.$slots,"default")],6)],2))}}),nve={class:"overflow-auto max-h-120"},rve={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},ive=["onClick"],ove=tt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=ke(()=>{const f=vr.value?.importDurations,d=_t.value.root;if(!f||!d)return[];const h=[];for(const p in f){const g=f[p],v=g.external?DL(p):yf(d,p);h.push({importedFile:p,relativeFile:s(v),selfTime:g.selfTime,totalTime:g.totalTime,formattedSelfTime:Vo(g.selfTime),formattedTotalTime:Vo(g.totalTime),selfTimeClass:Ru(g.selfTime),totalTimeClass:Ru(g.totalTime),external:g.external})}return h.sort((p,g)=>g.totalTime-p.totalTime)});function s(c){return c.length<=45?c:`...${c.slice(-45)}`}return(c,f)=>(te(),ve("div",nve,[f[1]||(f[1]=X("h1",{"my-2":"","mx-4":""},[Je(" Import Duration Breakdown "),X("span",{"op-70":""},"(ordered by Total Time)")],-1)),X("table",rve,[f[0]||(f[0]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(te(!0),ve(et,null,yn(o.value,d=>(te(),ve("tr",{key:d.importedFile},[X("td",{class:"cursor-pointer pr-2",style:Pt({color:d.external?"var(--color-node-external)":void 0}),onClick:h=>r("select",d.importedFile,d.external?"external":"inline")},Pe(d.relativeFile),13,ive),X("td",{"pr-2":"",class:rt(d.selfTimeClass)},Pe(d.formattedSelfTime),3),X("td",{"pr-2":"",class:rt(d.totalTimeClass)},Pe(d.formattedTotalTime),3),X("td",{"pr-2":"",class:rt(d.totalTimeClass)},Pe(Math.round(d.totalTime/o.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),Is=tt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(te(),ve("span",{class:rt(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[zt(t.$slots,"default")],2))}}),sve={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},lve={"p-4":"",relative:""},ave={flex:"","justify-between":""},cve={"mr-8":"",flex:"","gap-2":"","items-center":""},uve={op50:"","font-mono":"","text-sm":""},fve={key:0,"p-5":""},dve={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},hve={key:0},pve={p:"x3 y-1","bg-overlay":"",border:"base b t"},gve=tt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=eA(()=>{if(vr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,vr.value.id,!!bn);if(r.type==="external")return ft.rpc.getExternalResult(r.id,vr.value.id)}}),c=ke(()=>{const F=vr.value?.importDurations||{};return F[r.id]||F[aL("/@fs/",r.id)]||{}}),f=ke(()=>r.id?.split(/\./g).pop()||"js"),d=ke(()=>s.value?.source?.trim()||""),h=ke(()=>!s.value||!("code"in s.value)||!_t.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=ke(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=ke(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],x=[];function C(F,E){const I=F.coordsChar({left:E.clientX,top:E.clientY}),q=F.findMarksAt(I);if(q.length!==1)return;const Y=q[0].title;if(Y){const oe=q[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",Y,oe)}}function L(F){const E=document.createElement("div");E.classList.add("mb-5");const I=_t.value.root;if(I)return F.forEach(({resolvedId:q,totalTime:Y,external:oe})=>{const J=document.createElement("div");J.append(document.createTextNode("import "));const G=document.createElement("span"),K=yf(I,q);G.textContent=`"/${K}"`,G.className="hover:underline decoration-gray cursor-pointer select-none",J.append(G),G.addEventListener("click",()=>{o("select",q,oe?"external":"inline")});const P=document.createElement("span");P.textContent=` ${Vo(Y)}`;const O=Ru(Y);O&&P.classList.add(O),J.append(P),E.append(J)}),E}function N(F){const E=document.createElement("div");E.className="flex ml-2",E.textContent=Vo(F);const I=Ru(F);return I&&E.classList.add(I),E}function M(F){if(x.forEach(E=>E.clear()),x.length=0,v.forEach(E=>E.remove()),v.length=0,b.forEach(E=>E.clear()),b.length=0,s.value&&"modules"in s.value){F.off("mousedown",C),F.on("mousedown",C);const E=s.value.untrackedModules;if(E?.length){const I=L(E);if(!I)return;v.push(I),x.push(F.addLineWidget(0,I,{above:!0}))}s.value.modules?.forEach(I=>{const q={line:I.start.line-1,ch:I.start.column},Y={line:I.end.line-1,ch:I.end.column},oe=F.markText(q,Y,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(oe);const J=N(I.totalTime+(I.transformTime||0));E?.length||J.classList.add("-mt-5"),v.push(J),F.addWidget({line:I.end.line-1,ch:I.end.column+1},J,!1)})}}function $(){o("back")}return Yw("Escape",()=>{o("close")}),(F,E)=>{const I=ur("tooltip");return te(),ve("div",sve,[X("div",lve,[X("div",ave,[X("p",null,[e.canUndo?ot((te(),We(vt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:E[0]||(E[0]=q=>$())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):ze("",!0),E[7]||(E[7]=Je(" Module Info ",-1)),Le(W(oo),{class:"inline","cursor-help":""},{popper:Be(()=>[Je(" This is module is "+Pe(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(te(),ve(et,{key:0},[Je(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(te(),ve(et,{key:1},[Je(" It means that the module was processed by Vite plugins. ")],64))]),default:Be(()=>[Le(Is,{type:"custom","ml-1":"",style:Pt({backgroundColor:`var(--color-node-${e.type})`})},{default:Be(()=>[Je(Pe(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(te(),We(W(oo),{key:1,class:"inline","cursor-help":""},{popper:Be(()=>[...E[4]||(E[4]=[Je(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:Be(()=>[Le(Is,{type:"tip","ml-2":""},{default:Be(()=>[...E[3]||(E[3]=[Je(" cached ",-1)])]),_:1})]),_:1})):ze("",!0),h.value===!1?(te(),We(W(oo),{key:2,class:"inline","cursor-help":""},{popper:Be(()=>[...E[6]||(E[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:Be(()=>[Le(Is,{type:"warning","ml-2":""},{default:Be(()=>[...E[5]||(E[5]=[Je(" not cached ",-1)])]),_:1})]),_:1})):ze("",!0)]),X("div",cve,[c.value.selfTime!=null&&c.value.external!==!0?(te(),We(W(oo),{key:0,class:"inline","cursor-help":""},{popper:Be(()=>[Je(" It took "+Pe(W(zd)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:Be(()=>[Le(Is,{type:W(lu)(c.value.selfTime)},{default:Be(()=>[Je(" self: "+Pe(W(Vo)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0),c.value.totalTime!=null?(te(),We(W(oo),{key:1,class:"inline","cursor-help":""},{popper:Be(()=>[Je(" It took "+Pe(W(zd)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:Be(()=>[Le(Is,{type:W(lu)(c.value.totalTime)},{default:Be(()=>[Je(" total: "+Pe(W(Vo)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0),W(s)&&"transformTime"in W(s)&&W(s).transformTime?(te(),We(W(oo),{key:2,class:"inline","cursor-help":""},{popper:Be(()=>[Je(" It took "+Pe(W(zd)(W(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:Be(()=>[Le(Is,{type:W(lu)(W(s).transformTime)},{default:Be(()=>[Je(" transform: "+Pe(W(Vo)(W(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0)])]),X("p",uve,Pe(e.id),1),Le(vt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:E[1]||(E[1]=q=>o("close"))})]),W(s)?(te(),ve(et,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:rt({"cols-2":p.value!=null})},[E[8]||(E[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(te(),ve("div",dve," Transformed ")):ze("",!0),(te(),We(pu,Ti({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:E[2]||(E[2]=q=>M(q))}),null,16,["model-value","mode"])),p.value!=null?(te(),We(pu,Ti({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):ze("",!0)],2),g.value.mappings!==""?(te(),ve("div",hve,[X("div",pve," Source map (v"+Pe(g.value.version)+") ",1),Le(pu,Ti({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):ze("",!0)],64)):(te(),ve("div",fve," No transform result found for this module. "))])}}}),mve={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},vve={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},yve={flex:"~ gap-1","items-center":"","select-none":""},bve={class:"pr-2"},wve=["id","checked","onChange"],xve=["for"],kve={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},_ve=tt({__name:"ViewModuleGraph",props:ka({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=af(e,"modelValue"),{graph:o}=jS(t),s=Ve(),c=Ve(!1),f=Ve(),d=yA(f),h=Ve(),p=Ve(null),g=Wt(o.value),v=ke(()=>{let K="";const P=vr.value?.importDurations,O=_t.value.experimental?.importDurations.thresholds;if(!P||!O)return K;for(const S in P){const{totalTime:k}=P[S];if(k>=O.danger){K="text-red";break}else k>=O.warn&&(K="text-orange")}return K}),b=Ve(v.value==="text-red");Ri(()=>{g.value=L(o.value,null,2),Y()}),Ka(()=>{h.value?.shutdown()}),bt(o,()=>{g.value=L(o.value,p.value,2),Y()});function x(){g.value=o.value,Y()}function C(){b.value=!b.value}function L(K,P,O=2){if(!K.nodes.length||K.nodes.length<=50)return K;const S=new Map;K.nodes.forEach(Ae=>S.set(Ae.id,new Set)),K.links.forEach(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),Ue=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);S.get(Ke)?.add(Ue),S.get(Ue)?.add(Ke)});let k;if(P)k=[P];else{const Ae=new Set(K.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ke=K.nodes.filter(Ue=>Ue.type==="inline"&&!Ae.has(Ue.id));k=Ke.length>0?[Ke[0].id]:[K.nodes[0].id]}const D=new Set,R=k.map(Ae=>({id:Ae,level:0}));for(;R.length>0;){const{id:Ae,level:Ke}=R.shift();D.has(Ae)||Ke>O||(D.add(Ae),Ke<O&&(S.get(Ae)||new Set).forEach(He=>{D.has(He)||R.push({id:He,level:Ke+1})}))}const ae=new Map(K.nodes.map(Ae=>[Ae.id,Ae])),ce=Array.from(D).map(Ae=>ae.get(Ae)).filter(Ae=>Ae!==void 0),_e=new Map(ce.map(Ae=>[Ae.id,Ae])),je=K.links.map(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),Ue=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);if(D.has(Ke)&&D.has(Ue)){const He=_e.get(Ke),$e=_e.get(Ue);if(He&&$e)return{...Ae,source:He,target:$e}}return null}).filter(Ae=>Ae!==null);return{nodes:ce,links:je}}function N(K,P){h.value?.filterNodesByType(P,K)}function M(K,P){f.value={id:K,type:P},c.value=!0}function $(){d.undo()}function F(){c.value=!1,d.clear()}function E(K){p.value=K,g.value=L(o.value,K,2),q(),Y()}function I(){p.value=null,g.value=L(o.value,null,2),q(),Y()}function q(){const K=g.value.nodes.map(S=>{let k,D;return S.id===p.value?(k="var(--color-node-focused)",D="var(--color-node-focused)"):S.type==="inline"?(k=S.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",D=k):(k="var(--color-node-external)",D="var(--color-node-external)"),Xp({...S,color:k,label:S.label?{...S.label,color:D}:S.label})}),P=new Map(K.map(S=>[S.id,S])),O=g.value.links.map(S=>{const k=typeof S.source=="object"?S.source.id:String(S.source),D=typeof S.target=="object"?S.target.id:String(S.target);return{...S,source:P.get(k),target:P.get(D)}});g.value={nodes:K,links:O}}function Y(K=!1){if(h.value?.shutdown(),K&&!r.value){r.value=!0;return}if(!g.value||!s.value)return;const P=g.value.nodes.length;let O=1,S=.5;P>300?(O=.3,S=.2):P>200?(O=.4,S=.3):P>100?(O=.5,S=.3):P>50&&(O=.7,O=.4),h.value=new Dme(s.value,g.value,lme({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:D})=>k===0&&D===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:L1.Arrow(2),modifiers:{node:G},positionInitializer:o.value.nodes.length===1?Fh.Centered:Fh.Randomized,zoom:{initial:O,min:S,max:1.5}}))}const oe=K=>K.button===0,J=K=>K.button===2;function G(K){if(yr)return;let P=0,O=0,S=0,k=!1;K.on("pointerdown",(D,R)=>{!R.x||!R.y||(k=J(D),!(!oe(D)&&!k)&&(P=R.x,O=R.y,S=Date.now()))}).on("pointerup",(D,R)=>{if(!R.x||!R.y)return;const ae=J(D);if(!oe(D)&&!ae||Date.now()-S>500)return;const ce=R.x-P,_e=R.y-O;ce**2+_e**2<100&&(!ae&&!D.shiftKey?M(R.id,R.type):(ae||D.shiftKey)&&(D.preventDefault(),R.type==="inline"&&E(R.id)))}).on("contextmenu",D=>{D.preventDefault()})}return(K,P)=>{const O=ur("tooltip");return te(),ve("div",mve,[X("div",null,[X("div",vve,[X("div",yve,[X("div",bve,Pe(g.value.nodes.length)+"/"+Pe(W(o).nodes.length)+" "+Pe(g.value.nodes.length===1?"module":"modules"),1),ot(X("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=S=>r.value=S),type:"checkbox"},null,512),[[yw,r.value]]),P[9]||(P[9]=X("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))]),(te(!0),ve(et,null,yn(h.value?.nodeTypes.sort(),S=>(te(),ve("div",{key:S,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${S}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(S),onChange:k=>N(S,k.target.checked)},null,40,wve),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${S}`,"border-b-2":"",style:Pt({"border-color":`var(--color-node-${S})`})},Pe(S)+" Modules",13,xve)]))),128)),P[10]||(P[10]=X("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[ot(Le(vt,{icon:"i-carbon-notebook",class:rt(v.value),onClick:P[1]||(P[1]=S=>C())},null,8,["class"]),[[O,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[ot(Le(vt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=S=>x())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[ot(Le(vt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=S=>I())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),b.value?(te(),ve("div",kve,[Le(ove,{onSelect:P[4]||(P[4]=(S,k)=>M(S,k))})])):ze("",!0),X("div",{ref_key:"el",ref:s},null,512),Le(Yp,{modelValue:c.value,"onUpdate:modelValue":P[8]||(P[8]=S=>c.value=S),direction:"right"},{default:Be(()=>[f.value?(te(),We(gp,{key:0},{default:Be(()=>[Le(gve,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":W(d).undoStack.value.length>1,onClose:P[5]||(P[5]=S=>F()),onSelect:P[6]||(P[6]=(S,k)=>M(S,k)),onBack:P[7]||(P[7]=S=>$())},null,8,["id","project-name","type","can-undo"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])])}}});function z1(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function F1(){const e=Ve(!1),t=Ve(Date.now()),r=Ve(),o=ke(()=>{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 Sve={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Tve={"p-4":"",relative:"",border:"base b"},Cve={op50:"","font-mono":"","text-sm":""},Eve={op50:"","font-mono":"","text-sm":""},Ave={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Lve=["src","alt"],Mve={key:1},Nve=tt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Yw("Escape",()=>{r("close")}),(o,s)=>(te(),ve("div",Sve,[X("div",Tve,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",Cve,Pe(e.file),1),X("p",Eve,Pe(e.name),1),Le(vt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",Ave,[e.url?(te(),ve("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,Lve)):(te(),ve("div",Mve," Something was wrong, the image cannot be resolved. "))])]))}}),H1=Ii(Nve,[["__scopeId","data-v-08ce44b7"]]),Ove={class:"scrolls scrolls-rounded task-error"},Pve=["onClickPassive"],$ve=["innerHTML"],Rve=tt({__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=ke(()=>Op(xo.value)),s=ke(()=>!!t.error?.diff),c=ke(()=>t.error.diff?o.value.toHtml(ga(t.error.diff)):void 0);function f(d){return Gce(d.file,t.filename)?nue(t.fileId,d):Np(d.file,d.line,d.column)}return(d,h)=>{const p=ur("tooltip");return te(),ve("div",Ove,[X("pre",null,[X("b",null,Pe(e.error.name),1),Je(": "+Pe(e.error.message),1)]),(te(!0),ve(et,null,yn(e.error.stacks,(g,v)=>(te(),ve("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Pe(r(g.file))+":"+Pe(g.line)+":"+Pe(g.column),1),ot(X("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(g)},null,40,Pve),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(te(),ve("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,$ve)):ze("",!0)])}}}),B1=Ii(Rve,[["__scopeId","data-v-1fcfe7a4"]]),Ive={"h-full":"",class:"scrolls"},Dve=["id"],zve={flex:"~ gap-2 items-center"},Fve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Hve=["innerHTML"],Bve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},jve=tt({__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(g=>r(g,p+1))]}const o=ke(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],g=h.result;if(g?.errors?.[0]){const b={id:h.id,file:h,name:h.name,fullName:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(b)}return p.length>0?zx(xo.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=F1();return(h,p)=>{const g=ur("tooltip");return te(),ve("div",Ive,[o.value.length?(te(!0),ve(et,{key:0},yn(o.value,v=>(te(),ve("div",{id:v.id,key:v.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Pt({"margin-left":`${v.result?.htmlError?.5:2*v.level+.5}rem`})},[X("div",zve,[X("span",null,Pe(v.name),1),W(bn)&&v.meta?.failScreenshotPath?(te(),ve(et,{key:0},[ot(Le(vt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>W(f)(v)},null,8,["onClick"]),[[g,"View screenshot error",void 0,{bottom:!0}]]),ot(Le(vt,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>W(z1)(v)},null,8,["onClick"]),[[g,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):ze("",!0)]),v.result?.htmlError?(te(),ve("div",Fve,[X("pre",{innerHTML:v.result.htmlError},null,8,Hve)])):v.result?.errors&&W(_t).root?(te(!0),ve(et,{key:1},yn(v.result.errors,(b,x)=>(te(),We(B1,{key:x,error:b,filename:e.file.name,root:W(_t).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):ze("",!0)],4)],8,Dve))),128)):(te(),ve("div",Bve," All tests passed in this file ")),W(bn)?(te(),We(Yp,{key:2,modelValue:W(c),"onUpdate:modelValue":p[1]||(p[1]=v=>Et(c)?c.value=v:null),direction:"right"},{default:Be(()=>[W(s)?(te(),We(gp,{key:0},{default:Be(()=>[Le(H1,{file:W(s).file.filepath,name:W(s).name,url:W(d),onClose:p[0]||(p[0]=v=>c.value=!1)},null,8,["file","name","url"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])):ze("",!0)])}}}),Wve=Ii(jve,[["__scopeId","data-v-73aa7224"]]),qve=["href","referrerPolicy"],Uve=["src"],Vve=tt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=ke(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Ba(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(te(),ve("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:W(D1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,Uve)],8,qve)):ze("",!0)}}),Gve={class:"flex flex-col gap-4"},Kve={key:0},Xve=tt({__name:"ArtifactTemplate",setup(e){const t=Bb();return(r,o)=>(te(),ve("article",Gve,[X("h1",null,[zt(r.$slots,"title")]),W(t).message?(te(),ve("p",Kve,[zt(r.$slots,"message")])):ze("",!0),zt(r.$slots,"default")]))}}),j1=Symbol("tabContext"),Vu={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},Yve={class:"flex flex-col items-center gap-6"},Zve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},Jve=["id","aria-selected","aria-controls","onClick"],Qve=tt({__name:"SmallTabs",setup(e){const t=Ve(null),r=Ve([]),o=cp();return gr(j1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(te(),ve("div",Yve,[X("div",Zve,[(te(!0),ve(et,null,yn(r.value,f=>(te(),ve("button",{id:W(Vu).tab(f.id,W(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":W(Vu).tabpanel(f.id,W(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Pe(f.title),9,Jve))),128))]),zt(s.$slots,"default")]))}}),e0e=["id","aria-labelledby","hidden"],Qc=tt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=mn(j1);if(!r)throw new Error("TabPane must be used within Tabs");const o=cp(),s=ke(()=>r.activeTab.value===o);return Ri(()=>{r.registerTab({...t,id:o})}),Ka(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(te(),ve("div",{id:W(Vu).tabpanel(W(o),W(r).id),role:"tabpanel","aria-labelledby":W(Vu).tab(W(o),W(r).id),hidden:!s.value,class:"max-w-full"},[zt(c.$slots,"default")],8,e0e))}}),W1=tt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(r,o)=>(te(),ve("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Pt({backgroundImage:t})},[zt(r.$slots,"default")],4))}}),t0e=["href","referrerPolicy"],n0e=["src"],Kd=tt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=ke(()=>jh(e.attachment));return(r,o)=>(te(),We(W1,null,{default:Be(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:W(D1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,n0e)],8,t0e)]),_:1}))}}),r0e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},i0e=["src"],o0e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},s0e=["src"],l0e=["id"],a0e=["for"],c0e=tt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=ke(()=>jh(e.reference)),r=ke(()=>jh(e.actual)),o=ke(()=>Math.max(e.reference.width,e.actual.width)),s=ke(()=>Math.max(e.reference.height,e.actual.height)),c=Ve(50),f=cp();return(d,h)=>(te(),We(W1,null,{default:Be(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Pt({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",r0e,[X("img",{src:t.value},null,8,i0e)]),X("div",o0e,[X("img",{src:r.value},null,8,s0e)]),h[1]||(h[1]=X("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),ot(X("input",{id:W(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,l0e),[[vw,c.value]]),X("output",{for:W(f),class:"sr-only"}," Showing "+Pe(c.value)+"% reference, "+Pe(100-c.value)+"% actual ",9,a0e)],4)]),_:1}))}}),u0e=tt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=ke(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(te(),We(Xve,null,{title:Be(()=>[...o[0]||(o[0]=[Je(" Visual Regression ",-1)])]),message:Be(()=>[Je(Pe(e.regression.message),1)]),default:Be(()=>[Le(Qve,null,{default:Be(()=>[t.value.diff?(te(),We(Qc,{key:t.value.diff.path,title:"Diff"},{default:Be(()=>[Le(Kd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference?(te(),We(Qc,{key:t.value.reference.path,title:"Reference"},{default:Be(()=>[Le(Kd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):ze("",!0),t.value.actual?(te(),We(Qc,{key:t.value.actual.path,title:"Actual"},{default:Be(()=>[Le(Kd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference&&t.value.actual?(te(),We(Qc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:Be(()=>[Le(c0e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):ze("",!0)]),_:1})]),_:1}))}}),f0e={"h-full":"",class:"scrolls"},d0e={key:0},h0e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},p0e={flex:"~ gap-2 items-center"},g0e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},m0e=["innerHTML"],v0e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},y0e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},b0e={class:"flex gap-2","overflow-hidden":""},w0e={class:"font-bold","ws-nowrap":"",truncate:""},x0e=["href","download"],k0e=["onClick"],_0e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},S0e={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},T0e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},C0e=["onClick"],E0e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},A0e={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":""},L0e={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},M0e={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},N0e=tt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=ke(()=>!t.test.result||!t.test.result.errors?.length?null:zx(xo.value,[t.test])[0]);function o(v){return rue(t.test,v)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=F1();function h(v){const b=_t.value.root;return`${b?yf(b,v.file):v.file}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=ke(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,b)=>{const x=ur("tooltip");return te(),ve("div",f0e,[r.value?(te(),ve("div",d0e,[X("div",h0e,[X("div",p0e,[W(bn)&&e.test.meta?.failScreenshotPath?(te(),ve(et,{key:0},[ot(Le(vt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=C=>W(f)(e.test))},null,512),[[x,"View screenshot error",void 0,{bottom:!0}]]),ot(Le(vt,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=C=>W(z1)(e.test))},null,512),[[x,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):ze("",!0)]),e.test.result?.htmlError?(te(),ve("div",g0e,[X("pre",{innerHTML:e.test.result.htmlError},null,8,m0e)])):e.test.result?.errors&&W(_t).root?(te(!0),ve(et,{key:1},yn(e.test.result.errors,(C,L)=>(te(),We(B1,{key:L,"file-id":e.test.file.id,error:C,filename:e.test.file.name,root:W(_t).root},null,8,["file-id","error","filename","root"]))),128)):ze("",!0)])])):(te(),ve("div",v0e," The test has passed without any errors ")),e.test.annotations.length?(te(),ve(et,{key:2},[b[5]||(b[5]=X("h1",{"m-2":""}," Test Annotations ",-1)),(te(!0),ve(et,null,yn(e.test.annotations,C=>(te(),ve("div",{key:C.type+C.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",y0e,[X("div",b0e,[X("span",w0e,Pe(C.type),1),C.attachment&&!C.attachment.contentType?.startsWith("image/")?(te(),ve("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:W(Ba)(C.attachment),download:W(I1)(C.message,C.attachment.contentType)},[...b[4]||(b[4]=[X("span",{class:"i-carbon:download block"},null,-1),Je(" Download ",-1)])],8,x0e)):ze("",!0)]),X("div",null,[C.location&&C.location.file===e.test.file.filepath?ot((te(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(C.location)},[Je(Pe(h(C.location)),1)],8,k0e)),[[x,"Open in Editor",void 0,{bottom:!0}]]):C.location&&C.location.file!==e.test.file.filepath?(te(),ve("span",_0e,Pe(h(C.location)),1)):ze("",!0)])]),X("div",S0e,Pe(C.message),1),Le(Vve,{annotation:C},null,8,["annotation"])]))),128))],64)):ze("",!0),e.test.artifacts.length?(te(),ve(et,{key:3},[b[6]||(b[6]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(te(!0),ve(et,null,yn(e.test.artifacts,(C,L)=>(te(),ve("div",{key:C.type+L,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",T0e,[X("div",null,[C.location&&C.location.file===e.test.file.filepath?ot((te(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:N=>o(C.location)},[Je(Pe(h(C.location)),1)],8,C0e)),[[x,"Open in Editor",void 0,{bottom:!0}]]):C.location&&C.location.file!==e.test.file.filepath?(te(),ve("span",E0e,Pe(h(C.location)),1)):ze("",!0)])]),C.type==="internal:toMatchScreenshot"&&C.kind==="visual-regression"?(te(),We(u0e,{key:0,regression:C},null,8,["regression"])):ze("",!0)]))),128))],64)):ze("",!0),g.value.length?(te(),ve(et,{key:4},[b[7]||(b[7]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",A0e,[(te(!0),ve(et,null,yn(g.value,([C,L])=>(te(),ve(et,{key:C},[X("div",L0e,Pe(C),1),X("pre",M0e,Pe(L),1)],64))),128))])],64)):ze("",!0),W(bn)?(te(),We(Yp,{key:5,modelValue:W(c),"onUpdate:modelValue":b[3]||(b[3]=C=>Et(c)?c.value=C:null),direction:"right"},{default:Be(()=>[W(s)?(te(),We(gp,{key:0},{default:Be(()=>[Le(H1,{file:W(s).file.filepath,name:W(s).name,url:W(d),onClose:b[2]||(b[2]=C=>c.value=!1)},null,8,["file","name","url"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])):ze("",!0)])}}}),O0e=Ii(N0e,[["__scopeId","data-v-132f6709"]]),P0e={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},$0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},R0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},I0e={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},D0e={"op-50":"",truncate:""},z0e=["title"],F0e={class:"flex text-lg"},H0e={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},B0e={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},j0e={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},W0e={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},q0e=["flex-1"],Ly=tt({__name:"FileDetails",setup(e){const t=Ve({nodes:[],links:[]}),r=Ve(!1),o=Ve(!1),s=Ve(!1),c=Ve(void 0),f=Ve(!0),d=ke(()=>_i.value?ft.state.idMap.get(_i.value):void 0),h=ke(()=>{const I=Gt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=ke(()=>Gt.value&&Mp(Gt.value)),g=ke(()=>!!Gt.value?.meta?.typecheck);function v(){const I=Gt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function b(I){I==="graph"&&(o.value=!0),gn.value=I}const x=ke(()=>Yx.value?.reduce((I,{size:q})=>I+q,0)??0);function C(I){r.value=I}const L=/[/\\]node_modules[/\\]/;async function N(I=!1){if(!(s.value||h.value?.filepath===c.value&&!I)){s.value=!0,await Ct();try{const q=h.value;if(!q){s.value=!1;return}if(I||!c.value||q.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let Y=await ft.rpc.getModuleGraph(q.projectName,q.filepath,!!bn);f.value&&(yr&&(Y=typeof window.structuredClone<"u"?window.structuredClone(Y):OL(Y)),Y.inlined=Y.inlined.filter(oe=>!L.test(oe)),Y.externalized=Y.externalized.filter(oe=>!L.test(oe))),t.value=Hme(Y,q.filepath),c.value=q.filepath}b("graph")}finally{await new Promise(q=>setTimeout(q,100)),s.value=!1}}}Kw(()=>[h.value,gn.value,f.value],([,I,q],Y)=>{I==="graph"&&N(Y&&q!==Y[2])},{debounce:100,immediate:!0});const M=ke(()=>{const I=Gt.value?.file.projectName||"";return Me.colors.get(I)||au(Gt.value?.file.projectName)}),$=ke(()=>_x(M.value)),F=ke(()=>{const I=_i.value;if(!I)return Gt.value?.name;const q=[];let Y=ft.state.idMap.get(I);for(;Y;)q.push(Y.name),Y=Y.suite;return q.reverse().join(" > ")}),E=ke(()=>{const I=_i.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(Y=>({name:Y,description:YL.value[Y]?.description,bg:au(Y,!0),border:au(Y),text:"white"})):[]});return(I,q)=>{const Y=ur("tooltip");return W(Gt)?(te(),ve("div",P0e,[X("div",null,[X("div",$0e,[Le($1,{state:W(Gt).result?.state,mode:W(Gt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?ot((te(),ve("div",R0e,null,512)),[[Y,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),W(Gt)?.file.projectName?(te(),ve("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Pt({backgroundColor:M.value,color:$.value}),"cursor-default":""},Pe(W(Gt).file.projectName),5)):ze("",!0),X("div",I0e,[X("span",D0e,Pe(F.value),1),(te(!0),ve(et,null,yn(E.value,oe=>ot((te(),ve("span",{key:oe.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Pt({backgroundColor:oe.bg,color:oe.text,border:`1px solid ${oe.border}`}),title:oe.description,"cursor-default":"",flex:"","items-center":""},[Je(Pe(oe.name),1)],12,z0e)),[[Y,oe.description,void 0,{bottom:!0}]])),128))]),X("div",F0e,[W(yr)?ze("",!0):ot((te(),We(vt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!W(Gt)?.filepath,onClick:v},null,8,["disabled"])),[[Y,"Open in editor",void 0,{bottom:!0}]]),W(bn)?(te(),We(xf,{key:1})):ze("",!0)])]),X("div",H0e,[X("button",{"tab-button":"",class:rt(["flex items-center gap-2",{"tab-button-active":W(gn)==null}]),"data-testid":"btn-report",onClick:q[0]||(q[0]=oe=>b(null))},[...q[5]||(q[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Je(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:rt(["flex items-center gap-2",{"tab-button-active":W(gn)==="graph"}]),onClick:q[1]||(q[1]=oe=>b("graph"))},[s.value?(te(),ve("span",B0e)):(te(),ve("span",j0e)),q[6]||(q[6]=Je(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:rt(["flex items-center gap-2",{"tab-button-active":W(gn)==="editor"}]),onClick:q[2]||(q[2]=oe=>b("editor"))},[q[7]||(q[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Je(" "+Pe(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:rt(["flex items-center gap-2",{"tab-button-active":W(gn)==="console",op20:W(gn)!=="console"&&x.value===0}]),onClick:q[3]||(q[3]=oe=>b("console"))},[q[8]||(q[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Je(" Console ("+Pe(x.value)+") ",1)],2)])]),X("div",W0e,[o.value?(te(),ve("div",{key:0,"flex-1":W(gn)==="graph"&&""},[ot(Le(_ve,{modelValue:f.value,"onUpdate:modelValue":q[4]||(q[4]=oe=>f.value=oe),graph:t.value,"data-testid":"graph","project-name":W(Gt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[uo,W(gn)==="graph"&&!s.value]])],8,q0e)):ze("",!0),W(gn)==="editor"?(te(),We(tve,{key:W(Gt).id,file:W(Gt),"data-testid":"editor",onDraft:C},null,8,["file"])):W(gn)==="console"?(te(),We(Jme,{key:2,file:W(Gt),"data-testid":"console"},null,8,["file"])):!W(gn)&&!d.value&&W(Gt)?(te(),We(Wve,{key:3,file:W(Gt),"data-testid":"report"},null,8,["file"])):!W(gn)&&d.value?(te(),We(O0e,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):ze("",!0)])])):ze("",!0)}}}),U0e=""+new URL("../favicon.svg",import.meta.url).href;function V0e(){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 gu;function Wh(){Wh.init||(Wh.init=!0,gu=V0e()!==-1)}var Tf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Wh(),Ct(()=>{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",gu&&this.$el.appendChild(e),e.data="about:blank",gu||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&&(!gu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const G0e=Eb();Tb("data-v-b329ee4c");const K0e={class:"resize-observer",tabindex:"-1"};Cb();const X0e=G0e((e,t,r,o,s,c)=>(te(),We("div",K0e)));Tf.render=X0e;Tf.__scopeId="data-v-b329ee4c";Tf.__file="src/components/ResizeObserver.vue";function mu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mu=function(t){return typeof t}:mu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function Y0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z0e(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 J0e(e,t,r){return t&&Z0e(e.prototype,t),e}function My(e){return Q0e(e)||eye(e)||tye(e)||nye()}function Q0e(e){if(Array.isArray(e))return qh(e)}function eye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tye(e,t){if(e){if(typeof e=="string")return qh(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 qh(e,t)}}function qh(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 nye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
51
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function iye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(c=g,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(My(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(My(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function q1(e,t){if(e===t)return!0;if(mu(e)==="object"){for(var r in e)if(!q1(e[r],t[r]))return!1;return!0}return!1}var oye=(function(){function e(t,r,o){Y0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return J0e(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=rye(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=iye(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(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Ct(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 U1(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 oye(e,o,r);e._vue_visibilityState=s}}function sye(e,t,r){var o=t.value,s=t.oldValue;if(!q1(o,s)){var c=e._vue_visibilityState;if(!o){V1(e);return}c?c.createObserver(o,r):U1(e,{value:o},r)}}function V1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var lye={beforeMount:U1,updated:sye,unmounted:V1},aye={itemsLimit:1e3},cye=/(auto|scroll)/;function G1(e,t){return e.parentNode===null?t:G1(e.parentNode,t.concat([e]))}var Xd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},uye=function(t){return Xd(t,"overflow")+Xd(t,"overflow-y")+Xd(t,"overflow-x")},fye=function(t){return cye.test(uye(t))};function Ny(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=G1(e.parentNode,[]),r=0;r<t.length;r+=1)if(fye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Uh(e){"@babel/helpers - typeof";return Uh=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},Uh(e)}var dye={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 hye(){return this.items.length&&Uh(this.items[0])!=="object"}var Vh=!1;if(typeof window<"u"){Vh=!1;try{var pye=Object.defineProperty({},"passive",{get:function(){Vh=!0}});window.addEventListener("test",null,pye)}catch{}}let gye=0;var Zp={name:"RecycleScroller",components:{ResizeObserver:Tf},directives:{ObserveVisibility:lye},props:{...dye,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:hye,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=nf({id:gye++,index:t,used:!0,key:o,type:s}),f=sp({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,g=this.sizes,v=this.$_views,b=this.$_unusedViews,x=this.pool,C=this.itemIndexByKey;let L,N,M,$,F;if(!p)L=N=$=F=M=0;else if(this.$_prerender)L=$=0,N=F=Math.min(this.prerender,h.length),M=null;else{const G=this.getScroll();if(t){let O=G.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const K=this.buffer;G.start-=K,G.end+=K;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,G.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;G.end+=O}if(r===null){let O,S=0,k=p-1,D=~~(p/2),R;do R=D,O=g[D].accumulator,O<G.start?S=D:D<p-1&&g[D+1].accumulator>G.start&&(k=D),D=~~((S+k)/2);while(D!==R);for(D<0&&(D=0),L=D,M=g[p-1].accumulator,N=D;N<p&&g[N].accumulator<G.end;N++);for(N===-1?N=h.length-1:(N++,N>p&&(N=p)),$=L;$<p&&P+g[$].accumulator<G.start;$++);for(F=$;F<p&&P+g[F].accumulator<G.end;F++);}else{L=~~(G.start/r*o);const O=L%o;L-=O,N=Math.ceil(G.end/r*o),$=Math.max(0,Math.floor((G.start-P)/r*o)),F=Math.floor((G.end-P)/r*o),L<0&&(L=0),N>p&&(N=p),$<0&&($=0),F>p&&(F=p),M=Math.ceil(p/o)*r}}N-L>aye.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let E;const I=L<=this.$_endIndex&&N>=this.$_startIndex;if(I)for(let G=0,K=x.length;G<K;G++)E=x[G],E.nr.used&&(e&&(E.nr.index=C[E.item[d]]),(E.nr.index==null||E.nr.index<L||E.nr.index>=N)&&this.unuseView(E));const q=I?null:new Map;let Y,oe,J;for(let G=L;G<N;G++){Y=h[G];const K=d?Y[d]:Y;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${d}')`);if(E=v.get(K),!r&&!g[G].size){E&&this.unuseView(E);continue}oe=Y[f];let P=b.get(oe),O=!1;if(!E)I?P&&P.length?E=P.pop():E=this.addView(x,G,Y,K,oe):(J=q.get(oe)||0,(!P||J>=P.length)&&(E=this.addView(x,G,Y,K,oe),this.unuseView(E,!0),P=b.get(oe)),E=P[J],q.set(oe,J+1)),v.delete(E.nr.key),E.nr.used=!0,E.nr.index=G,E.nr.key=K,E.nr.type=oe,v.set(K,E),O=!0;else if(!E.nr.used&&(E.nr.used=!0,O=!0,P)){const S=P.indexOf(E);S!==-1&&P.splice(S,1)}E.item=Y,O&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(E.position=g[G-1].accumulator,E.offset=0):(E.position=Math.floor(G/o)*r,E.offset=G%o*s)}return this.$_startIndex=L,this.$_endIndex=N,this.emitUpdate&&this.$emit("update",L,N,$,F),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=Ny(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,Vh?{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=Ny(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 mye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},vye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function yye(e,t,r,o,s,c){const f=ts("ResizeObserver"),d=ur("observe-visibility");return ot((te(),ve("div",{class:rt(["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?(te(),ve("div",mye,[zt(e.$slots,"before")],512)):ze("v-if",!0),(te(),We(oh(r.listTag),{ref:"wrapper",style:Pt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:rt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:Be(()=>[(te(!0),ve(et,null,yn(s.pool,h=>(te(),We(oh(r.itemTag),Ti({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}]]},yT(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:Be(()=>[zt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),zt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(te(),ve("div",vye,[zt(e.$slots,"after")],512)):ze("v-if",!0),Le(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}Zp.render=yye;Zp.__file="src/components/RecycleScroller.vue";function bye(e,t,r){const o=ke(()=>Th.value?!1:!st.onlyTests),s=ke(()=>Or.value===""),c=Ve(Or.value),f=ke(()=>Go.value!==ns),d=ke(()=>f.value||fo.value==="default");Kw(()=>Or.value,C=>{c.value=C?.trim()??""},{debounce:256});function h(C){Or.value="",C&&e.value?.focus()}function p(C){st.failed=!1,st.success=!1,st.skipped=!1,st.onlyTests=!1,C&&e.value?.focus()}function g(C){Go.value=ns,C&&t.value?.focus()}function v(C){fo.value="default",C&&r.value?.focus()}function b(){p(!1),h(!0),g(!1),v(!1)}function x(C,L,N,M,$,F,E){ul.value&&(Kt.value.search=C?.trim()??"",Kt.value.failed=L,Kt.value.success=N,Kt.value.skipped=M,Kt.value.onlyTests=$,Kt.value.project=F,Kt.value.projectSort=E==="default"?void 0:E)}return bt(()=>[c.value,st.failed,st.success,st.skipped,st.onlyTests,Go.value,fo.value],([C,L,N,M,$,F,E])=>{x(C,L,N,M,$,F,E),Me.filterNodes()},{flush:"post"}),bt(()=>Fr.value.length,C=>{C&&(Kt.value.expandAll=void 0)},{flush:"post"}),{initialized:ul,filter:st,search:Or,disableFilter:o,isFiltered:Cx,isFilteredByStatus:Th,disableClearSearch:s,clearAll:b,clearSearch:h,clearFilter:p,filteredFiles:bf,testsTotal:jL,uiEntries:Qn,searchMatcher:to,enableProjects:Sx,disableClearProjects:zL,currentProject:Go,currentProjectName:Ep,clearProject:g,projectSort:fo,disableProjectSort:f,clearProjectSort:v,disableClearProjectSort:d}}const wye=["disabled"],xye={"flex-1":"","ms-2":"","select-none":""},eu=tt({__name:"FilterStatus",props:ka({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=af(e,"modelValue");function r(){e.disabled||(t.value=!t.value)}return(o,s)=>(te(),ve("label",Ti({class:["font-light text-sm checkbox flex items-center py-1 text-sm w-full gap-y-1 mb-1px",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},o.$attrs,{onClick:ou(r,["prevent"])}),[X("span",{class:rt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ot(X("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>t.value=c),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,wye),[[yw,t.value]]),X("span",xye,Pe(e.label),1)],16))}}),kye=["open"],_ye=tt({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ve(!0);return(r,o)=>(te(),ve("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:rt(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),zt(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),zt(r.$slots,"default")],40,kye))}}),Sye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Tye=tt({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(te(),ve("button",Sye,[X("span",{block:"",class:rt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Cye=["aria-label","data-current"],Eye={key:1,"w-4":""},Aye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Lye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Mye={"text-sm":"",truncate:"","font-light":""},Nye=["text","innerHTML"],Oye={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Pye={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},$ye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Rye={key:1},Iye=tt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=ke(()=>ft.state.idMap.get(e.taskId)),r=ke(()=>{if(yr)return!1;const N=t.value;return N&&Mp(N)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Me.collapseNode(e.taskId):Me.expandNode(e.taskId)}async function s(N){e.onItemClick?.(N),Ws.value&&(zu.value=!0,await Ct()),e.type==="file"?await Dp([N.file]):await Fue(N)}function c(N){return ft.rpc.updateSnapshot(N.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(N,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const N=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${N.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>_t.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Tx(e.name)),g=ke(()=>{const N=BL.value,M=p.value;return N?M.replace(N,$=>`<span class="highlight">${$}</span>`):M}),v=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=ke(()=>v.value?"color-red5 dark:color-#f43f5e":null);function C(){const N=t.value;e.type==="file"?e.onItemClick?.(N):Bx(N)}const L=ke(()=>_x(e.projectNameColor));return(N,M)=>{const $=ur("tooltip");return t.value?(te(),ve("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:Pt(d.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:M[2]||(M[2]=F=>o())},[e.indent>0?(te(!0),ve(et,{key:0},yn(f.value,F=>(te(),ve("div",{key:F,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):ze("",!0),e.type==="file"||e.type==="suite"?(te(),ve("div",Eye,[X("div",{class:rt(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):ze("",!0),Le($1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",Aye,[e.type==="file"&&e.typecheck?ot((te(),ve("div",Lye,null,512)),[[$,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),X("span",Mye,[e.type==="file"&&e.projectName?(te(),ve("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Pt({backgroundColor:e.projectNameColor,color:L.value})},Pe(e.projectName),5)):ze("",!0),X("span",{text:e.state==="fail"?"red-500":"",innerHTML:g.value},null,8,Nye)]),typeof e.duration=="number"?(te(),ve("span",Oye,Pe(e.duration>0?e.duration:"< 1")+"ms ",1)):ze("",!0)]),X("div",Pye,[!W(yr)&&r.value&&W(_t).api?.allowExec&&W(_t).api?.allowWrite?ot((te(),We(Tye,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=ou(F=>c(t.value),["prevent","stop"]))},null,512)),[[$,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),Le(W(oo),{placement:"bottom",class:rt(["w-1.4em h-1.4em op100 rounded flex",x.value])},{popper:Be(()=>[v.value?(te(),ve("div",$ye,[M[5]||(M[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Je(Pe(b.value)+": this feature is not available, you have disabled ",1),M[3]||(M[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=Je(" in your configuration file.",-1))]),M[6]||(M[6]=X("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))])):(te(),ve("div",Rye,Pe(b.value),1))]),default:Be(()=>[Le(vt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:ou(C,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),W(yr)?ze("",!0):ot((te(),We(vt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",disabled:W(_t).api?.allowExec===!1,onClick:M[1]||(M[1]=ou(F=>s(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[$,h.value,void 0,{bottom:!0}]])])],12,Cye)):ze("",!0)}}}),Dye=Ii(Iye,[["__scopeId","data-v-d0b87fc2"]]),zye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Fye={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},Hye={class:"relative flex-1"},Bye=["value"],jye=["value"],Wye=["disabled"],qye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Uye=["op"],Vye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Gye={"text-red5":""},Kye={"text-yellow5":""},Xye={"text-green5":""},Yye={class:"text-purple5:50"},Zye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Jye={key:0,"text-red":"","text-center":""},Qye={key:1,op30:""},ebe=["disabled"],tbe=["disabled"],nbe={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},rbe=tt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>_t.value.includeTaskLocation),s=Ve(),c=Ve(),f=Ve(),{initialized:d,filter:h,search:p,disableFilter:g,isFiltered:v,isFilteredByStatus:b,disableClearSearch:x,clearAll:C,clearSearch:L,clearFilter:N,filteredFiles:M,testsTotal:$,uiEntries:F,enableProjects:E,disableClearProjects:I,currentProject:q,currentProjectName:Y,clearProject:oe,disableProjectSort:J,clearProjectSort:G,disableClearProjectSort:K,searchMatcher:P}=bye(s,c,f),O=Ve("grid-cols-2"),S=Ve("grid-col-span-2"),k=Ve();return nx(()=>k.value,([{contentRect:D}])=>{D.width<420?(O.value="grid-cols-2",S.value="grid-col-span-2"):(O.value="grid-cols-4",S.value="grid-col-span-4")}),(D,R)=>{const ae=ur("tooltip");return te(),ve("div",{ref_key:"testExplorerRef",ref:k,h:"full",flex:"~ col"},[X("div",null,[X("div",zye,[zt(D.$slots,"header",{filteredFiles:W(v)||W(b)?W(M):void 0})]),W(E)?(te(),ve("div",Fye,[R[20]||(R[20]=X("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),R[21]||(R[21]=X("label",{for:"project-select","text-sm":""}," Projects ",-1)),X("div",Hye,[ot(X("select",{id:"project-select",ref_key:"selectProjectRef",ref:c,"onUpdate:modelValue":R[0]||(R[0]=ce=>Et(q)?q.value=ce:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[X("option",{value:W(ns),class:"text-base bg-base"}," All Projects ",8,Bye),(te(!0),ve(et,null,yn(W(Ip),ce=>(te(),ve("option",{key:ce,value:ce,class:"text-base bg-base"},Pe(ce),9,jye))),128))],512),[[Iv,W(q)]]),R[17]||(R[17]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),ot(Le(vt,{disabled:W(I),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:R[1]||(R[1]=ce=>W(oe)(!0))},null,8,["disabled"]),[[ae,"Clear project filter",void 0,{bottom:!0}]]),R[22]||(R[22]=X("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),R[23]||(R[23]=X("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),X("div",{class:rt(["relative flex-1",{"op-50 cursor-not-allowed":W(J)}])},[ot(X("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":R[2]||(R[2]=ce=>Et(fo)?fo.value=ce:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none",disabled:W(J)},[...R[18]||(R[18]=[X("option",{value:"default",class:"text-base bg-base"}," Default ",-1),X("option",{value:"asc",class:"text-base bg-base"}," Project A-Z ",-1),X("option",{value:"desc",class:"text-base bg-base"}," Project Z-A ",-1)])],8,Wye),[[Iv,W(fo)]]),R[19]||(R[19]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))],2),ot(Le(vt,{disabled:W(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:R[3]||(R[3]=ce=>W(G)(!0))},null,8,["disabled"]),[[ae,"Reset sort",void 0,{bottom:!0}]])])):ze("",!0),X("div",qye,[R[24]||(R[24]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ot(X("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":R[4]||(R[4]=ce=>Et(p)?p.value=ce:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(p).length?"100":"50",onKeydown:[R[5]||(R[5]=ph(ce=>W(L)(!1),["esc"])),R[6]||(R[6]=ph(ce=>r("run",W(v)||W(b)?W(M):void 0),["enter"]))]},null,40,Uye),[[vw,W(p)]]),ot(Le(vt,{disabled:W(x),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:R[7]||(R[7]=ce=>W(L)(!0))},null,8,["disabled"]),[[ae,"Clear search",void 0,{bottom:!0}]])]),X("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:rt(O.value)},[X("div",{class:rt(S.value),flex:"~ gap-2 items-center"},[R[25]||(R[25]=X("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),R[26]||(R[26]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ot(Le(vt,{disabled:W(g),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:R[8]||(R[8]=ce=>W(N)(!1))},null,8,["disabled"]),[[ae,"Clear Filter",void 0,{bottom:!0}]])],2),Le(eu,{modelValue:W(h).failed,"onUpdate:modelValue":R[9]||(R[9]=ce=>W(h).failed=ce),label:"Fail"},null,8,["modelValue"]),Le(eu,{modelValue:W(h).success,"onUpdate:modelValue":R[10]||(R[10]=ce=>W(h).success=ce),label:"Pass"},null,8,["modelValue"]),Le(eu,{modelValue:W(h).skipped,"onUpdate:modelValue":R[11]||(R[11]=ce=>W(h).skipped=ce),label:"Skip"},null,8,["modelValue"]),Le(eu,{modelValue:W(h).onlyTests,"onUpdate:modelValue":R[12]||(R[12]=ce=>W(h).onlyTests=ce),label:"Only Tests"},null,8,["modelValue"])],2)]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:R[16]||(R[16]=(...ce)=>W(i0)&&W(i0)(...ce))},[Le(_ye,null,vT({default:Be(()=>[(W(v)||W(b)||W(Y))&&W(F).length===0?(te(),ve(et,{key:0},[W(d)?(te(),ve("div",Zye,[W(P).error?(te(),ve("div",Jye,Pe(W(P).error),1)):(te(),ve("div",Qye," No matched test ")),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:rt(W(x)?null:"hover:op100"),disabled:W(x),onClickPassive:R[13]||(R[13]=ce=>W(L)(!0))}," Clear Search ",42,ebe),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:rt(W(g)?null:"hover:op100"),disabled:W(g),onClickPassive:R[14]||(R[14]=ce=>W(N)(!0))}," Clear Filter ",42,tbe),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:R[15]||(R[15]=(...ce)=>W(C)&&W(C)(...ce))}," Clear All ",32)])):(te(),ve("div",nbe,[...R[29]||(R[29]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(te(),We(W(Zp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(F),buffer:100},{default:Be(({item:ce})=>[Le(Dye,{class:rt(["h-28px m-0 p-0",W(_i)===ce.id||!W(_i)&&W(ko)===ce.id?"bg-active":""]),"task-id":ce.id,expandable:ce.expandable,type:ce.type,current:W(ko)===ce.id,indent:ce.indent,name:ce.name,typecheck:ce.typecheck===!0,"project-name":ce.projectName??"","project-name-color":ce.projectNameColor??"",state:ce.state,duration:ce.duration,opened:ce.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(d)?{name:"summary",fn:Be(()=>[X("div",Vye,[X("span",Gye," FAIL ("+Pe(W($).failed)+") ",1),R[27]||(R[27]=X("span",null,"/",-1)),X("span",Kye," RUNNING ("+Pe(W($).running)+") ",1),X("span",Xye," PASS ("+Pe(W($).success)+") ",1),R[28]||(R[28]=X("span",null,"/",-1)),X("span",Yye," SKIP ("+Pe(W(h).onlyTests?W($).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),ibe={class:"flex text-lg"},obe=tt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=ke(()=>xo.value?"light":"dark");async function o(d){_t.value.api?.allowExec!==!1&&(Ws.value&&(zu.value=!0,await Ct(),_o.value&&(Fu(!0),await Ct())),d?.length?await Dp(d):await Due())}function s(){Me.collapseAllNodes()}function c(){Me.expandAllNodes()}function f(d){return _t.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":d?d.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(d,h)=>{const p=ur("tooltip");return te(),We(rbe,{border:"r base","on-item-click":W(lue),nested:!0,onRun:o},{header:Be(({filteredFiles:g})=>[h[8]||(h[8]=X("img",{"w-6":"","h-6":"",src:U0e,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",ibe,[ot(Le(vt,{title:"Collapse tests",disabled:!W(ul),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>s())},null,8,["disabled"]),[[uo,!W(C0)],[p,"Collapse tests",void 0,{bottom:!0}]]),ot(Le(vt,{disabled:!W(ul),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>c())},null,8,["disabled"]),[[uo,W(C0)],[p,"Expand tests",void 0,{bottom:!0}]]),ot(Le(vt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>W(Fu)(!0))},null,512),[[uo,W(Ah)&&!W(Ws)||!W(Js)],[p,"Dashboard",void 0,{bottom:!0}]]),W(Ah)&&!W(Ws)?(te(),We(W(oo),{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:Be(()=>[...h[6]||(h[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:Be(()=>[h[7]||(h[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):ze("",!0),W(Ws)?ot((te(),We(vt,{key:1,disabled:W(zu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>W(aue)())},null,8,["disabled"])),[[uo,!W(_o)],[p,"Coverage",void 0,{bottom:!0}]]):ze("",!0),W(Me).summary.failedSnapshot&&!W(yr)&&W(_t).api?.allowExec&&W(_t).api?.allowWrite?ot((te(),We(vt,{key:2,icon:"i-carbon:result-old",disabled:!W(Me).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>W(Me).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),W(yr)?ze("",!0):ot((te(),We(vt,{key:3,disabled:g?.length===0||!W(_t).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>o(g)},null,8,["disabled","onClick"])),[[p,f(g),void 0,{bottom:!0}]]),ot(Le(vt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>W($L)())},null,512),[[p,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),sbe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},lbe=tt({__name:"ProgressBar",setup(e){const{width:t}=rx(),r=ke(()=>[Me.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Bs.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesSuccess/d:0}),s=ke(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesFailed/d:0}),c=ke(()=>Me.summary.files-Me.summary.filesFailed-Me.summary.filesSuccess),f=ke(()=>{const d=Me.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(te(),ve("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:rt(r.value)},[X("div",sbe,[X("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:rt(r.value),style:Pt(`width: ${s.value}px;`)}," ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:rt(r.value),style:Pt(`left: ${s.value}px; width: ${o.value}px;`)}," ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:rt(r.value),style:Pt(`left: ${o.value+s.value}px; width: ${f.value}px;`)}," ",6)])],2))}}),abe=Ii(lbe,[["__scopeId","data-v-5320005b"]]),cbe={"h-screen":"","w-screen":"",overflow:"hidden"},ube={key:1,flex:"~ col","h-full":""},fbe={"h-full":"","overflow-hidden":""},dbe=tt({__name:"index",setup(e){const t=sue(),r=Wc(({panes:g})=>{h(),d(g)},0),o=Wc(({panes:g})=>{g.forEach((v,b)=>{Qs.value[b]=v.size}),f(g),p()},0),s=Wc(({panes:g})=>{g.forEach((v,b)=>{Qo.value[b]=v.size}),d(g),p()},0),c=Wc(({panes:g})=>{f(g),h()},0);function f(g){an.navigation=g[0].size,g[1]&&(an.details.size=g[1].size)}function d(g){an.details.browser=g[0].size,g[1]&&(an.details.main=g[1].size)}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(te(),ve(et,null,[Le(abe),X("div",cbe,[Le(W(u0),{class:"pt-4px",onResized:W(o),onResize:W(c)},{default:Be(()=>[Le(W(Vc),{size:W(Qs)[0]},{default:Be(()=>[Le(obe)]),_:1},8,["size"]),Le(W(Vc),{size:W(Qs)[1]},{default:Be(()=>[W(bn)?(te(),ve("div",ube,[Le(W(u0),{id:"details-splitpanes",key:"browser-detail",horizontal:W(_n)==="bottom",class:rt(W(_n)==="bottom"&&!W(Ei)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:W(r),onResized:W(s)},{default:Be(()=>[Le(W(Vc),{size:W(Qo)[0],"min-size":"10"},{default:Be(()=>[v[0]||(sl(-1,!0),(v[0]=Le(Yue)).cacheIndex=0,sl(1),v[0])]),_:1},8,["size"]),W(Ei)?(te(),We(W(Vc),{key:0,size:W(Qo)[1],"min-size":"10"},{default:Be(()=>[X("div",fbe,[W(t)?(te(),We(ry,{key:"summary"})):W(_o)?(te(),We(ny,{key:"coverage",src:W(J0)},null,8,["src"])):(te(),We(Ly,{key:"details"}))])]),_:1},8,["size"])):ze("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),W(_n)==="bottom"&&!W(Ei)?(te(),We(Jue,{key:0})):ze("",!0)])):(te(),We(dC,{key:"ui-detail"},{default:Be(()=>[W(t)?(te(),We(ry,{key:"summary"})):W(_o)?(te(),We(ny,{key:"coverage",src:W(J0)},null,8,["src"])):(te(),We(Ly,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Le(tfe)],64))}}),hbe=[{name:"index",path:"/",component:dbe,props:!0}];/*!
|
|
52
|
-
* vue-router v4.6.4
|
|
53
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
54
|
-
* @license MIT
|
|
55
|
-
*/const Hs=typeof document<"u";function K1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pbe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&K1(e.default)}const xt=Object.assign;function Yd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Hr(s)?s.map(e):e(s)}return r}const va=()=>{},Hr=Array.isArray;function Oy(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const X1=/#/g,gbe=/&/g,mbe=/\//g,vbe=/=/g,ybe=/\?/g,Y1=/\+/g,bbe=/%5B/g,wbe=/%5D/g,Z1=/%5E/g,xbe=/%60/g,J1=/%7B/g,kbe=/%7C/g,Q1=/%7D/g,_be=/%20/g;function Jp(e){return e==null?"":encodeURI(""+e).replace(kbe,"|").replace(bbe,"[").replace(wbe,"]")}function Sbe(e){return Jp(e).replace(J1,"{").replace(Q1,"}").replace(Z1,"^")}function Gh(e){return Jp(e).replace(Y1,"%2B").replace(_be,"+").replace(X1,"%23").replace(gbe,"%26").replace(xbe,"`").replace(J1,"{").replace(Q1,"}").replace(Z1,"^")}function Tbe(e){return Gh(e).replace(vbe,"%3D")}function Cbe(e){return Jp(e).replace(X1,"%23").replace(ybe,"%3F")}function Ebe(e){return Cbe(e).replace(mbe,"%2F")}function ja(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Abe=/\/$/,Lbe=e=>e.replace(Abe,"");function Zd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=Pbe(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:ja(f)}}function Mbe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Py(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Nbe(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&pl(t.matched[o],r.matched[s])&&ek(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function pl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ek(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!Obe(e[r],t[r]))return!1;return!0}function Obe(e,t){return Hr(e)?$y(e,t):Hr(t)?$y(t,e):e?.valueOf()===t?.valueOf()}function $y(e,t){return Hr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function Pbe(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 Ji={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Kh=(function(e){return e.pop="pop",e.push="push",e})({}),Jd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function $be(e){if(!e)if(Hs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Lbe(e)}const Rbe=/^[^#]+#/;function Ibe(e,t){return e.replace(Rbe,"#")+t}function Dbe(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 Cf=()=>({left:window.scrollX,top:window.scrollY});function zbe(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=Dbe(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 Ry(e,t){return(history.state?history.state.position-t:-1)+e}const Xh=new Map;function Fbe(e,t){Xh.set(e,t)}function Hbe(e){const t=Xh.get(e);return Xh.delete(e),t}function Bbe(e){return typeof e=="string"||e&&typeof e=="object"}function tk(e){return typeof e=="string"||typeof e=="symbol"}let jt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const nk=Symbol("");jt.MATCHER_NOT_FOUND+"",jt.NAVIGATION_GUARD_REDIRECT+"",jt.NAVIGATION_ABORTED+"",jt.NAVIGATION_CANCELLED+"",jt.NAVIGATION_DUPLICATED+"";function gl(e,t){return xt(new Error,{type:e,[nk]:!0},t)}function gi(e,t){return e instanceof Error&&nk in e&&(t==null||!!(e.type&t))}const jbe=["params","query","hash"];function Wbe(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of jbe)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function qbe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const s=r[o].replace(Y1," "),c=s.indexOf("="),f=ja(c<0?s:s.slice(0,c)),d=c<0?null:ja(s.slice(c+1));if(f in t){let h=t[f];Hr(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function Iy(e){let t="";for(let r in e){const o=e[r];if(r=Tbe(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Hr(o)?o.map(s=>s&&Gh(s)):[o&&Gh(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function Ube(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Hr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const Vbe=Symbol(""),Dy=Symbol(""),Qp=Symbol(""),rk=Symbol(""),Yh=Symbol("");function ea(){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 ao(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(gl(jt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):Bbe(b)?h(gl(jt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},g=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function Qd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(K1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(ao(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=pbe(g)?g.default:g;f.mods[d]=g,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&ao(b,r,o,f,d,s)()}))}}return c}function Gbe(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=>pl(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>pl(p,h))||s.push(h))}return[r,o,s]}/*!
|
|
56
|
-
* vue-router v4.6.4
|
|
57
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/let Kbe=()=>location.protocol+"//"+location.host;function ik(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),Py(d,"")}return Py(r,e)+o+s}function Xbe(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=ik(e,location),C=r.value,L=t.value;let N=0;if(b){if(r.value=x,t.value=b,f&&f===C){f=null;return}N=L?b.position-L.position:0}else o(x);s.forEach(M=>{M(r.value,C,{delta:N,type:Kh.pop,direction:N?N>0?Jd.forward:Jd.back:Jd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const C=s.indexOf(b);C>-1&&s.splice(C,1)};return c.push(x),x}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(xt({},b.state,{scroll:Cf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function zy(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Cf():null}}function Ybe(e){const{history:t,location:r}=window,o={value:ik(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,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:Kbe()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[g?"replace":"assign"](b)}}function f(h,p){c(h,xt({},t.state,zy(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=xt({},s.value,t.state,{forward:h,scroll:Cf()});c(g.current,g,!0),c(h,xt({},zy(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function Zbe(e){e=$be(e);const t=Ybe(e),r=Xbe(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=xt({location:"",base:e,go:o,createHref:Ibe.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 Jbe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zbe(e)}let Xo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var sn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(sn||{});const Qbe={type:Xo.Static,value:""},ewe=/[a-zA-Z0-9_]/;function twe(e){if(!e)return[[]];if(e==="/")return[[Qbe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=sn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===sn.Static?c.push({type:Xo.Static,value:p}):r===sn.Param||r===sn.ParamRegExp||r===sn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Xo.Param,value:p,regexp:g,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!==sn.ParamRegExp){o=r,r=sn.EscapeNext;continue}switch(r){case sn.Static:h==="/"?(p&&v(),f()):h===":"?(v(),r=sn.Param):b();break;case sn.EscapeNext:b(),r=o;break;case sn.Param:h==="("?r=sn.ParamRegExp:ewe.test(h)?b():(v(),r=sn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case sn.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:r=sn.ParamRegExpEnd:g+=h;break;case sn.ParamRegExpEnd:v(),r=sn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,g="";break;default:t("Unknown state");break}}return r===sn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),f(),s}const Fy="[^/]+?",nwe={sensitive:!1,strict:!1,start:!0,end:!0};var In=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(In||{});const rwe=/[.+*?^${}()[\]/\\]/g;function iwe(e,t){const r=xt({},nwe,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const g=p.length?[]:[In.Root];r.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const b=p[v];let x=In.Segment+(r.sensitive?In.BonusCaseSensitive:0);if(b.type===Xo.Static)v||(s+="/"),s+=b.value.replace(rwe,"\\$&"),x+=In.Static;else if(b.type===Xo.Param){const{value:C,repeatable:L,optional:N,regexp:M}=b;c.push({name:C,repeatable:L,optional:N});const $=M||Fy;if($!==Fy){x+=In.BonusCustomRegExp;try{`${$}`}catch(E){throw new Error(`Invalid custom RegExp for param "${C}" (${$}): `+E.message)}}let F=L?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;v||(F=N&&p.length<2?`(?:/${F})`:"/"+F),N&&(F+="?"),s+=F,x+=In.Dynamic,N&&(x+=In.BonusOptional),L&&(x+=In.BonusRepeatable),$===".*"&&(x+=In.BonusWildcard)}g.push(x)}o.push(g)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=In.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const g=p.match(f),v={};if(!g)return null;for(let b=1;b<g.length;b++){const x=g[b]||"",C=c[b-1];v[C.name]=x&&C.repeatable?x.split("/"):x}return v}function h(p){let g="",v=!1;for(const b of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const x of b)if(x.type===Xo.Static)g+=x.value;else if(x.type===Xo.Param){const{value:C,repeatable:L,optional:N}=x,M=C in p?p[C]:"";if(Hr(M)&&!L)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const $=Hr(M)?M.join("/"):M;if(!$)if(N)b.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${C}"`);g+=$}}return g||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function owe(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]===In.Static+In.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===In.Static+In.Segment?1:-1:0}function ok(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=owe(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(Hy(o))return 1;if(Hy(s))return-1}return s.length-o.length}function Hy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const swe={strict:!1,end:!0,sensitive:!1};function lwe(e,t,r){const o=iwe(twe(e.path),r),s=xt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function awe(e,t){const r=[],o=new Map;t=Oy(swe,t);function s(v){return o.get(v)}function c(v,b,x){const C=!x,L=jy(v);L.aliasOf=x&&x.record;const N=Oy(t,v),M=[L];if("alias"in v){const E=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of E)M.push(jy(xt({},L,{components:x?x.record.components:L.components,path:I,aliasOf:x?x.record:L})))}let $,F;for(const E of M){const{path:I}=E;if(b&&I[0]!=="/"){const q=b.record.path,Y=q[q.length-1]==="/"?"":"/";E.path=b.record.path+(I&&Y+I)}if($=lwe(E,b,N),x?x.alias.push($):(F=F||$,F!==$&&F.alias.push($),C&&v.name&&!Wy($)&&f(v.name)),sk($)&&h($),L.children){const q=L.children;for(let Y=0;Y<q.length;Y++)c(q[Y],$,x&&x.children[Y])}x=x||$}return F?()=>{f(F)}:va}function f(v){if(tk(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=fwe(v,r);r.splice(b,0,v),v.record.name&&!Wy(v)&&o.set(v.record.name,v)}function p(v,b){let x,C={},L,N;if("name"in v&&v.name){if(x=o.get(v.name),!x)throw gl(jt.MATCHER_NOT_FOUND,{location:v});N=x.record.name,C=xt(By(b.params,x.keys.filter(F=>!F.optional).concat(x.parent?x.parent.keys.filter(F=>F.optional):[]).map(F=>F.name)),v.params&&By(v.params,x.keys.map(F=>F.name))),L=x.stringify(C)}else if(v.path!=null)L=v.path,x=r.find(F=>F.re.test(L)),x&&(C=x.parse(L),N=x.record.name);else{if(x=b.name?o.get(b.name):r.find(F=>F.re.test(b.path)),!x)throw gl(jt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});N=x.record.name,C=xt({},b.params,v.params),L=x.stringify(C)}const M=[];let $=x;for(;$;)M.unshift($.record),$=$.parent;return{name:N,path:L,params:C,matched:M,meta:uwe(M)}}e.forEach(v=>c(v));function g(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function By(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function jy(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cwe(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 cwe(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 Wy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function uwe(e){return e.reduce((t,r)=>xt(t,r.meta),{})}function fwe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;ok(e,t[c])<0?o=c:r=c+1}const s=dwe(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function dwe(e){let t=e;for(;t=t.parent;)if(sk(t)&&ok(e,t)===0)return t}function sk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qy(e){const t=mn(Qp),r=mn(rk),o=ke(()=>{const h=W(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],v=r.matched;if(!g||!v.length)return-1;const b=v.findIndex(pl.bind(null,g));if(b>-1)return b;const x=Uy(h[p-2]);return p>1&&Uy(g)===x&&v[v.length-1].path!==x?v.findIndex(pl.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&vwe(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&ek(r.params,o.value.params));function d(h={}){if(mwe(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(va);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function hwe(e){return e.length===1?e[0]:e}const pwe=tt({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:qy,setup(e,{slots:t}){const r=sr(qy(e)),{options:o}=mn(Qp),s=ke(()=>({[Vy(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Vy(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&hwe(t.default(r));return e.custom?c:Ya("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),gwe=pwe;function mwe(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 vwe(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(!Hr(s)||s.length!==o.length||o.some((c,f)=>c.valueOf()!==s[f].valueOf()))return!1}return!0}function Uy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vy=(e,t,r)=>e??t??r,ywe=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=mn(Yh),s=ke(()=>e.route||o.value),c=mn(Dy,0),f=ke(()=>{let p=W(c);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);gr(Dy,ke(()=>f.value+1)),gr(Vbe,d),gr(Yh,s);const h=Ve();return bt(()=>[h.value,d.value,e.name],([p,g,v],[b,x,C])=>{g&&(g.instances[v]=p,x&&x!==g&&p&&p===b&&(g.leaveGuards.size||(g.leaveGuards=x.leaveGuards),g.updateGuards.size||(g.updateGuards=x.updateGuards))),p&&g&&(!x||!pl(g,x)||!b)&&(g.enterCallbacks[v]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=d.value,b=v&&v.components[g];if(!b)return Gy(r.default,{Component:b,route:p});const x=v.props[g],C=x?x===!0?p.params:typeof x=="function"?x(p):x:null,N=Ya(b,xt({},C,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Gy(r.default,{Component:N,route:p})||N}}});function Gy(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const bwe=ywe;function wwe(e){const t=awe(e.routes,e),r=e.parseQuery||qbe,o=e.stringifyQuery||Iy,s=e.history,c=ea(),f=ea(),d=ea(),h=Wt(Ji);let p=Ji;Hs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Yd.bind(null,H=>""+H),v=Yd.bind(null,Ebe),b=Yd.bind(null,ja);function x(H,Z){let re,le;return tk(H)?(re=t.getRecordMatcher(H),le=Z):le=H,t.addRoute(le,re)}function C(H){const Z=t.getRecordMatcher(H);Z&&t.removeRoute(Z)}function L(){return t.getRoutes().map(H=>H.record)}function N(H){return!!t.getRecordMatcher(H)}function M(H,Z){if(Z=xt({},Z||h.value),typeof H=="string"){const ee=Zd(r,H,Z.path),he=t.resolve({path:ee.path},Z),pe=s.createHref(ee.fullPath);return xt(ee,he,{params:b(he.params),hash:ja(ee.hash),redirectedFrom:void 0,href:pe})}let re;if(H.path!=null)re=xt({},H,{path:Zd(r,H.path,Z.path).path});else{const ee=xt({},H.params);for(const he in ee)ee[he]==null&&delete ee[he];re=xt({},H,{params:v(ee)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ue=H.hash||"";le.params=g(b(le.params));const z=Mbe(o,xt({},H,{hash:Sbe(ue),path:le.path})),j=s.createHref(z);return xt({fullPath:z,hash:ue,query:o===Iy?Ube(H.query):H.query||{}},le,{redirectedFrom:void 0,href:j})}function $(H){return typeof H=="string"?Zd(r,H,h.value.path):xt({},H)}function F(H,Z){if(p!==H)return gl(jt.NAVIGATION_CANCELLED,{from:Z,to:H})}function E(H){return Y(H)}function I(H){return E(xt($(H),{replace:!0}))}function q(H,Z){const re=H.matched[H.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ue=typeof le=="function"?le(H,Z):le;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=$(ue):{path:ue},ue.params={}),xt({query:H.query,hash:H.hash,params:ue.path!=null?{}:H.params},ue)}}function Y(H,Z){const re=p=M(H),le=h.value,ue=H.state,z=H.force,j=H.replace===!0,ee=q(re,le);if(ee)return Y(xt($(ee),{state:typeof ee=="object"?xt({},ue,ee.state):ue,force:z,replace:j}),Z||re);const he=re;he.redirectedFrom=Z;let pe;return!z&&Nbe(o,le,re)&&(pe=gl(jt.NAVIGATION_DUPLICATED,{to:he,from:le}),je(le,le,!0,!1)),(pe?Promise.resolve(pe):G(he,le)).catch(me=>gi(me)?gi(me,jt.NAVIGATION_GUARD_REDIRECT)?me:_e(me):ae(me,he,le)).then(me=>{if(me){if(gi(me,jt.NAVIGATION_GUARD_REDIRECT))return Y(xt({replace:j},$(me.to),{state:typeof me.to=="object"?xt({},ue,me.to.state):ue,force:z}),Z||he)}else me=P(he,le,!0,j,ue);return K(he,le,me),me})}function oe(H,Z){const re=F(H,Z);return re?Promise.reject(re):Promise.resolve()}function J(H){const Z=Ue.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(H):H()}function G(H,Z){let re;const[le,ue,z]=Gbe(H,Z);re=Qd(le.reverse(),"beforeRouteLeave",H,Z);for(const ee of le)ee.leaveGuards.forEach(he=>{re.push(ao(he,H,Z))});const j=oe.bind(null,H,Z);return re.push(j),$e(re).then(()=>{re=[];for(const ee of c.list())re.push(ao(ee,H,Z));return re.push(j),$e(re)}).then(()=>{re=Qd(ue,"beforeRouteUpdate",H,Z);for(const ee of ue)ee.updateGuards.forEach(he=>{re.push(ao(he,H,Z))});return re.push(j),$e(re)}).then(()=>{re=[];for(const ee of z)if(ee.beforeEnter)if(Hr(ee.beforeEnter))for(const he of ee.beforeEnter)re.push(ao(he,H,Z));else re.push(ao(ee.beforeEnter,H,Z));return re.push(j),$e(re)}).then(()=>(H.matched.forEach(ee=>ee.enterCallbacks={}),re=Qd(z,"beforeRouteEnter",H,Z,J),re.push(j),$e(re))).then(()=>{re=[];for(const ee of f.list())re.push(ao(ee,H,Z));return re.push(j),$e(re)}).catch(ee=>gi(ee,jt.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function K(H,Z,re){d.list().forEach(le=>J(()=>le(H,Z,re)))}function P(H,Z,re,le,ue){const z=F(H,Z);if(z)return z;const j=Z===Ji,ee=Hs?history.state:{};re&&(le||j?s.replace(H.fullPath,xt({scroll:j&&ee&&ee.scroll},ue)):s.push(H.fullPath,ue)),h.value=H,je(H,Z,re,j),_e()}let O;function S(){O||(O=s.listen((H,Z,re)=>{if(!He.listening)return;const le=M(H),ue=q(le,He.currentRoute.value);if(ue){Y(xt(ue,{replace:!0,force:!0}),le).catch(va);return}p=le;const z=h.value;Hs&&Fbe(Ry(z.fullPath,re.delta),Cf()),G(le,z).catch(j=>gi(j,jt.NAVIGATION_ABORTED|jt.NAVIGATION_CANCELLED)?j:gi(j,jt.NAVIGATION_GUARD_REDIRECT)?(Y(xt($(j.to),{force:!0}),le).then(ee=>{gi(ee,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===Kh.pop&&s.go(-1,!1)}).catch(va),Promise.reject()):(re.delta&&s.go(-re.delta,!1),ae(j,le,z))).then(j=>{j=j||P(le,z,!1),j&&(re.delta&&!gi(j,jt.NAVIGATION_CANCELLED)?s.go(-re.delta,!1):re.type===Kh.pop&&gi(j,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),K(le,z,j)}).catch(va)}))}let k=ea(),D=ea(),R;function ae(H,Z,re){_e(H);const le=D.list();return le.length?le.forEach(ue=>ue(H,Z,re)):console.error(H),Promise.reject(H)}function ce(){return R&&h.value!==Ji?Promise.resolve():new Promise((H,Z)=>{k.add([H,Z])})}function _e(H){return R||(R=!H,S(),k.list().forEach(([Z,re])=>H?re(H):Z()),k.reset()),H}function je(H,Z,re,le){const{scrollBehavior:ue}=e;if(!Hs||!ue)return Promise.resolve();const z=!re&&Hbe(Ry(H.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return Ct().then(()=>ue(H,Z,z)).then(j=>j&&zbe(j)).catch(j=>ae(j,H,Z))}const Ae=H=>s.go(H);let Ke;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:x,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:L,resolve:M,options:e,push:E,replace:I,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:D.add,isReady:ce,install(H){H.component("RouterLink",gwe),H.component("RouterView",bwe),H.config.globalProperties.$router=He,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),Hs&&!Ke&&h.value===Ji&&(Ke=!0,E(s.location).catch(le=>{}));const Z={};for(const le in Ji)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});H.provide(Qp,He),H.provide(rk,sp(Z)),H.provide(Yh,h);const re=H.unmount;Ue.add(H),H.unmount=function(){Ue.delete(H),Ue.size<1&&(p=Ji,O&&O(),O=null,h.value=Ji,Ke=!1,R=!1),re()}}};function $e(H){return H.reduce((Z,re)=>Z.then(()=>J(re)),Promise.resolve())}return He}const xwe={tooltip:jE};Bw.options.instantMove=!0;Bw.options.distance=10;function kwe(){return wwe({history:Jbe(),routes:hbe})}const _we=[kwe],eg=ww(BC);_we.forEach(e=>{eg.use(e())});Object.entries(xwe).forEach(([e,t])=>{eg.directive(e,t)});eg.mount("#app");
|