@vitest/browser 5.0.0-beta.2 → 5.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/context.d.ts +8 -0
  2. package/dist/client/.vite/manifest.json +8 -8
  3. package/dist/client/__vitest__/assets/index-BlLo6Q_D.css +1 -0
  4. package/dist/client/__vitest__/assets/index-O8gheoYf.js +89 -0
  5. package/dist/client/__vitest__/index.html +2 -2
  6. package/dist/client/__vitest_browser__/defineProperty-C3k2g8Sk.js +267 -0
  7. package/dist/client/__vitest_browser__/orchestrator-B44yH1M4.js +343 -0
  8. package/dist/client/__vitest_browser__/rrweb-snapshot-iZCFA2to.js +4388 -0
  9. package/dist/client/__vitest_browser__/tester-Byk-s_d6.js +5088 -0
  10. package/dist/client/orchestrator.html +2 -2
  11. package/dist/client/tester/tester.html +2 -2
  12. package/dist/client/tester/trace.d.ts +9 -6
  13. package/dist/client.js +10 -1
  14. package/dist/context.js +53 -23
  15. package/dist/expect-element.js +30 -30
  16. package/dist/index.js +92 -23
  17. package/dist/locators-DUkyvRhY.js +5 -0
  18. package/dist/locators.js +1 -1
  19. package/dist/shared/screenshotMatcher/types.d.ts +2 -1
  20. package/dist/state.js +64 -14
  21. package/dist/types.d.ts +2 -0
  22. package/jest-dom.d.ts +1 -0
  23. package/matchers.d.ts +2 -1
  24. package/package.json +6 -6
  25. package/dist/client/__vitest__/assets/index-Cd6On2Pm.js +0 -136
  26. package/dist/client/__vitest__/assets/index-Dw9P28Qt.css +0 -1
  27. package/dist/client/__vitest_browser__/orchestrator-BfoS0x4w.js +0 -411
  28. package/dist/client/__vitest_browser__/rrweb-snapshot-xhvrgOHx.js +0 -5476
  29. package/dist/client/__vitest_browser__/tester-BJtW9QqZ.js +0 -5588
  30. package/dist/client/__vitest_browser__/utils-Nd8hqrhP.js +0 -189
  31. package/dist/locators-CesZ2RSY.js +0 -5
@@ -0,0 +1,89 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function f(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var p={},m=[],h=()=>{},g=()=>!1,_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),v=e=>e.startsWith(`onUpdate:`),y=Object.assign,b=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},x=Object.prototype.hasOwnProperty,S=(e,t)=>x.call(e,t),C=Array.isArray,w=e=>re(e)===`[object Map]`,T=e=>re(e)===`[object Set]`,ee=e=>re(e)===`[object Date]`,E=e=>typeof e==`function`,D=e=>typeof e==`string`,O=e=>typeof e==`symbol`,k=e=>typeof e==`object`&&!!e,te=e=>(k(e)||E(e))&&E(e.then)&&E(e.catch),ne=Object.prototype.toString,re=e=>ne.call(e),ie=e=>re(e).slice(8,-1),ae=e=>re(e)===`[object Object]`,oe=e=>D(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,se=f(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ce=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},le=/-\w/g,A=ce(e=>e.replace(le,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,M=ce(e=>e.replace(j,`-$1`).toLowerCase()),ue=ce(e=>e.charAt(0).toUpperCase()+e.slice(1)),de=ce(e=>e?`on${ue(e)}`:``),N=(e,t)=>!Object.is(e,t),fe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},pe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},me=e=>{let t=parseFloat(e);return isNaN(t)?e:t},he=e=>{let t=D(e)?Number(e):NaN;return isNaN(t)?e:t},ge,_e=()=>ge||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ve(e){if(C(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=D(r)?Se(r):ve(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(D(e)||k(e))return e}var ye=/;(?![^(]*\))/g,be=/:([^]+)/,xe=/\/\*[^]*?\*\//g;function Se(e){let t={};return e.replace(xe,``).split(ye).forEach(e=>{if(e){let n=e.split(be);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function P(e){let t=``;if(D(e))t=e;else if(C(e))for(let n=0;n<e.length;n++){let r=P(e[n]);r&&(t+=r+` `)}else if(k(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Ce(e){if(!e)return null;let{class:t,style:n}=e;return t&&!D(t)&&(e.class=P(t)),n&&(e.style=ve(n)),e}var we=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Te=f(we);we+``;function Ee(e){return!!e||e===``}function De(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Oe(e[r],t[r]);return n}function Oe(e,t){if(e===t)return!0;let n=ee(e),r=ee(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=O(e),r=O(t),n||r)return e===t;if(n=C(e),r=C(t),n||r)return n&&r?De(e,t):!1;if(n=k(e),r=k(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Oe(e[n],t[n]))return!1}}return String(e)===String(t)}function ke(e,t){return e.findIndex(e=>Oe(e,t))}var Ae=e=>!!(e&&e.__v_isRef===!0),F=e=>D(e)?e:e==null?``:C(e)||k(e)&&(e.toString===ne||!E(e.toString))?Ae(e)?F(e.value):JSON.stringify(e,je,2):String(e),je=(e,t)=>Ae(t)?je(e,t.value):w(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Me(t,r)+` =>`]=n,e),{})}:T(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Me(e))}:O(t)?Me(t):k(t)&&!C(t)&&!ae(t)?String(t):t,Me=(e,t=``)=>O(e)?`Symbol(${e.description??t})`:e,Ne,Pe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ne,!e&&Ne&&(this.index=(Ne.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=Ne;try{return Ne=this,e()}finally{Ne=t}}}on(){++this._on===1&&(this.prevScope=Ne,Ne=this)}off(){this._on>0&&--this._on===0&&(Ne=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Fe(){return Ne}function Ie(e,t=!1){Ne&&Ne.cleanups.push(e)}var I,Le=new WeakSet,Re=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ne&&Ne.active&&Ne.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Le.has(this)&&(Le.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||He(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tt(this),Ge(this);let e=I,t=Ze;I=this,Ze=!0;try{return this.fn()}finally{Ke(this),I=e,Ze=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ye(e);this.deps=this.depsTail=void 0,tt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qe(this)&&this.run()}get dirty(){return qe(this)}},ze=0,Be,Ve;function He(e,t=!1){if(e.flags|=8,t){e.next=Ve,Ve=e;return}e.next=Be,Be=e}function Ue(){ze++}function We(){if(--ze>0)return;if(Ve){let e=Ve;for(Ve=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Be;){let t=Be;for(Be=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ge(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ke(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ye(r),Xe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Je(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Je(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nt)||(e.globalVersion=nt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qe(e))))return;e.flags|=2;let t=e.dep,n=I,r=Ze;I=e,Ze=!0;try{Ge(e);let n=e.fn(e._value);(t.version===0||N(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{I=n,Ze=r,Ke(e),e.flags&=-3}}function Ye(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ye(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xe(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ze=!0,Qe=[];function $e(){Qe.push(Ze),Ze=!1}function et(){let e=Qe.pop();Ze=e===void 0?!0:e}function tt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=I;I=void 0;try{t()}finally{I=e}}}var nt=0,rt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},it=class{constructor(e){this.computed=e,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(e){if(!I||!Ze||I===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==I)t=this.activeLink=new rt(I,this),I.deps?(t.prevDep=I.depsTail,I.depsTail.nextDep=t,I.depsTail=t):I.deps=I.depsTail=t,at(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=I.depsTail,t.nextDep=void 0,I.depsTail.nextDep=t,I.depsTail=t,I.deps===t&&(I.deps=e)}return t}trigger(e){this.version++,nt++,this.notify(e)}notify(e){Ue();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{We()}}};function at(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)at(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var ot=new WeakMap,st=Symbol(``),ct=Symbol(``),lt=Symbol(``);function ut(e,t,n){if(Ze&&I){let t=ot.get(e);t||ot.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new it),r.map=t,r.key=n),r.track()}}function dt(e,t,n,r,i,a){let o=ot.get(e);if(!o){nt++;return}let s=e=>{e&&e.trigger()};if(Ue(),t===`clear`)o.forEach(s);else{let i=C(e),a=i&&oe(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===lt||!O(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(lt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(st)),w(e)&&s(o.get(ct)));break;case`delete`:i||(s(o.get(st)),w(e)&&s(o.get(ct)));break;case`set`:w(e)&&s(o.get(st));break}}We()}function ft(e,t){let n=ot.get(e);return n&&n.get(t)}function pt(e){let t=$t(e);return t===e?t:(ut(t,`iterate`,lt),Zt(e)?t:t.map(tn))}function mt(e){return ut(e=$t(e),`iterate`,lt),e}function ht(e,t){return Xt(e)?nn(Yt(e)?tn(t):t):tn(t)}var gt={__proto__:null,[Symbol.iterator](){return _t(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return pt(this).concat(...e.map(e=>C(e)?pt(e):e))},entries(){return _t(this,`entries`,e=>(e[1]=ht(this,e[1]),e))},every(e,t){return vt(this,`every`,e,t,void 0,arguments)},filter(e,t){return vt(this,`filter`,e,t,e=>e.map(e=>ht(this,e)),arguments)},find(e,t){return vt(this,`find`,e,t,e=>ht(this,e),arguments)},findIndex(e,t){return vt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return vt(this,`findLast`,e,t,e=>ht(this,e),arguments)},findLastIndex(e,t){return vt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return vt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return bt(this,`includes`,e)},indexOf(...e){return bt(this,`indexOf`,e)},join(e){return pt(this).join(e)},lastIndexOf(...e){return bt(this,`lastIndexOf`,e)},map(e,t){return vt(this,`map`,e,t,void 0,arguments)},pop(){return xt(this,`pop`)},push(...e){return xt(this,`push`,e)},reduce(e,...t){return yt(this,`reduce`,e,t)},reduceRight(e,...t){return yt(this,`reduceRight`,e,t)},shift(){return xt(this,`shift`)},some(e,t){return vt(this,`some`,e,t,void 0,arguments)},splice(...e){return xt(this,`splice`,e)},toReversed(){return pt(this).toReversed()},toSorted(e){return pt(this).toSorted(e)},toSpliced(...e){return pt(this).toSpliced(...e)},unshift(...e){return xt(this,`unshift`,e)},values(){return _t(this,`values`,e=>ht(this,e))}};function _t(e,t,n){let r=mt(e),i=r[t]();return r!==e&&!Zt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var L=Array.prototype;function vt(e,t,n,r,i,a){let o=mt(e),s=o!==e&&!Zt(e),c=o[t];if(c!==L[t]){let t=c.apply(e,a);return s?tn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ht(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function yt(e,t,n,r){let i=mt(e),a=n;return i!==e&&(Zt(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,ht(e,r),i,e)}),i[t](a,...r)}function bt(e,t,n){let r=$t(e);ut(r,`iterate`,lt);let i=r[t](...n);return(i===-1||i===!1)&&Qt(n[0])?(n[0]=$t(n[0]),r[t](...n)):i}function xt(e,t,n=[]){$e(),Ue();let r=$t(e)[t].apply(e,n);return We(),et(),r}var St=f(`__proto__,__v_isRef,__isVue`),Ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(O));function wt(e){O(e)||(e=String(e));let t=$t(this);return ut(t,`has`,e),t.hasOwnProperty(e)}var R=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ht:Vt:i?Bt:zt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=C(e);if(!r){let e;if(a&&(e=gt[t]))return e;if(t===`hasOwnProperty`)return wt}let o=Reflect.get(e,t,rn(e)?e:n);if((O(t)?Ct.has(t):St(t))||(r||ut(e,`get`,t),i))return o;if(rn(o)){let e=a&&oe(t)?o:o.value;return r&&k(e)?qt(e):e}return k(o)?r?qt(o):Gt(o):o}},Tt=class extends R{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=C(e)&&oe(t);if(!this._isShallow){let e=Xt(i);if(!Zt(n)&&!Xt(n)&&(i=$t(i),n=$t(n)),!a&&rn(i)&&!rn(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:S(e,t),s=Reflect.set(e,t,n,rn(e)?e:r);return e===$t(r)&&(o?N(n,i)&&dt(e,`set`,t,n,i):dt(e,`add`,t,n)),s}deleteProperty(e,t){let n=S(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&dt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!O(t)||!Ct.has(t))&&ut(e,`has`,t),n}ownKeys(e){return ut(e,`iterate`,C(e)?`length`:st),Reflect.ownKeys(e)}},Et=class extends R{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Dt=new Tt,Ot=new Et,kt=new Tt(!0),At=e=>e,jt=e=>Reflect.getPrototypeOf(e);function Mt(e,t,n){return function(...r){let i=this.__v_raw,a=$t(i),o=w(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?At:t?nn:tn;return!t&&ut(a,`iterate`,c?ct:st),y(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Nt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Pt(e,t){let n={get(n){let r=this.__v_raw,i=$t(r),a=$t(n);e||(N(n,a)&&ut(i,`get`,n),ut(i,`get`,a));let{has:o}=jt(i),s=t?At:e?nn:tn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&ut($t(t),`iterate`,st),t.size},has(t){let n=this.__v_raw,r=$t(n),i=$t(t);return e||(N(t,i)&&ut(r,`has`,t),ut(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=$t(a),s=t?At:e?nn:tn;return!e&&ut(o,`iterate`,st),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return y(n,e?{add:Nt(`add`),set:Nt(`set`),delete:Nt(`delete`),clear:Nt(`clear`)}:{add(e){!t&&!Zt(e)&&!Xt(e)&&(e=$t(e));let n=$t(this);return jt(n).has.call(n,e)||(n.add(e),dt(n,`add`,e,e)),this},set(e,n){!t&&!Zt(n)&&!Xt(n)&&(n=$t(n));let r=$t(this),{has:i,get:a}=jt(r),o=i.call(r,e);o||=(e=$t(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?N(n,s)&&dt(r,`set`,e,n,s):dt(r,`add`,e,n),this},delete(e){let t=$t(this),{has:n,get:r}=jt(t),i=n.call(t,e);i||=(e=$t(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&dt(t,`delete`,e,void 0,a),o},clear(){let e=$t(this),t=e.size!==0,n=e.clear();return t&&dt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Mt(r,e,t)}),n}function Ft(e,t){let n=Pt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(S(n,r)&&r in t?n:t,r,i)}var It={get:Ft(!1,!1)},Lt={get:Ft(!1,!0)},Rt={get:Ft(!0,!1)},zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Ht=new WeakMap;function Ut(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Wt(e){return e.__v_skip||!Object.isExtensible(e)?0:Ut(ie(e))}function Gt(e){return Xt(e)?e:Jt(e,!1,Dt,It,zt)}function Kt(e){return Jt(e,!1,kt,Lt,Bt)}function qt(e){return Jt(e,!0,Ot,Rt,Vt)}function Jt(e,t,n,r,i){if(!k(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Wt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Yt(e){return Xt(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Zt(e){return!!(e&&e.__v_isShallow)}function Qt(e){return e?!!e.__v_raw:!1}function $t(e){let t=e&&e.__v_raw;return t?$t(t):e}function en(e){return!S(e,`__v_skip`)&&Object.isExtensible(e)&&pe(e,`__v_skip`,!0),e}var tn=e=>k(e)?Gt(e):e,nn=e=>k(e)?qt(e):e;function rn(e){return e?e.__v_isRef===!0:!1}function z(e){return on(e,!1)}function an(e){return on(e,!0)}function on(e,t){return rn(e)?e:new sn(e,t)}var sn=class{constructor(e,t){this.dep=new it,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:$t(e),this._value=t?e:tn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Zt(e)||Xt(e);e=n?e:$t(e),N(e,t)&&(this._rawValue=e,this._value=n?e:tn(e),this.dep.trigger())}};function B(e){return rn(e)?e.value:e}function cn(e){return E(e)?e():B(e)}var ln={get:(e,t,n)=>t===`__v_raw`?e:B(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return rn(i)&&!rn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function un(e){return Yt(e)?e:new Proxy(e,ln)}var dn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new it,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function fn(e){return new dn(e)}function pn(e){let t=C(e)?Array(e.length):{};for(let n in e)t[n]=_n(e,n);return t}var mn=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=$t(e);let r=!0,i=e;if(!C(e)||!oe(String(t)))do r=!Qt(i)||Zt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=B(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&rn(this._raw[this._key])){let t=this._object[this._key];if(rn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ft(this._raw,this._key)}},hn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function gn(e,t,n){return rn(e)?e:E(e)?new hn(e):k(e)&&arguments.length>1?_n(e,t,n):z(e)}function _n(e,t,n){return new mn(e,t,n)}var vn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new it(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&I!==this)return He(this,!0),!0}get value(){let e=this.dep.track();return Je(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function yn(e,t,n=!1){let r,i;return E(e)?r=e:(r=e.get,i=e.set),new vn(r,i,n)}var bn={},xn=new WeakMap,Sn=void 0;function Cn(e,t=!1,n=Sn){if(n){let t=xn.get(n);t||xn.set(n,t=[]),t.push(e)}}function wn(e,t,n=p){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:Zt(e)||i===!1||i===0?Tn(e,1):Tn(e),u,d,f,m,g=!1,_=!1;if(rn(e)?(d=()=>e.value,g=Zt(e)):Yt(e)?(d=()=>l(e),g=!0):C(e)?(_=!0,g=e.some(e=>Yt(e)||Zt(e)),d=()=>e.map(e=>{if(rn(e))return e.value;if(Yt(e))return l(e);if(E(e))return c?c(e,2):e()})):d=E(e)?t?c?()=>c(e,2):e:()=>{if(f){$e();try{f()}finally{et()}}let t=Sn;Sn=u;try{return c?c(e,3,[m]):e(m)}finally{Sn=t}}:h,t&&i){let e=d,t=i===!0?1/0:i;d=()=>Tn(e(),t)}let v=Fe(),y=()=>{u.stop(),v&&v.active&&b(v.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),y()}}let x=_?Array(e.length).fill(bn):bn,S=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||g||(_?e.some((e,t)=>N(e,x[t])):N(e,x))){f&&f();let n=Sn;Sn=u;try{let n=[e,x===bn?void 0:_&&x[0]===bn?[]:x,m];x=e,c?c(t,3,n):t(...n)}finally{Sn=n}}}else u.run()};return s&&s(S),u=new Re(d),u.scheduler=o?()=>o(S,!1):S,m=e=>Cn(e,!1,u),f=u.onStop=()=>{let e=xn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();xn.delete(u)}},t?r?S(!0):x=u.run():o?o(S.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function Tn(e,t=1/0,n){if(t<=0||!k(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,rn(e))Tn(e.value,t,n);else if(C(e))for(let r=0;r<e.length;r++)Tn(e[r],t,n);else if(T(e)||w(e))e.forEach(e=>{Tn(e,t,n)});else if(ae(e)){for(let r in e)Tn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Tn(e[r],t,n)}return e}function En(e,t,n,r){try{return r?e(...r):e()}catch(e){On(e,t,n)}}function Dn(e,t,n,r){if(E(e)){let i=En(e,t,n,r);return i&&te(i)&&i.catch(e=>{On(e,t,n)}),i}if(C(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Dn(e[a],t,n,r));return i}}function On(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||p;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){$e(),En(a,null,10,[e,i,o]),et();return}}kn(e,n,i,r,o)}function kn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var An=[],jn=-1,Mn=[],Nn=null,Pn=0,Fn=Promise.resolve(),In=null;function Ln(e){let t=In||Fn;return e?t.then(this?e.bind(this):e):t}function Rn(e){let t=jn+1,n=An.length;for(;t<n;){let r=t+n>>>1,i=An[r],a=Wn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function zn(e){if(!(e.flags&1)){let t=Wn(e),n=An[An.length-1];!n||!(e.flags&2)&&t>=Wn(n)?An.push(e):An.splice(Rn(t),0,e),e.flags|=1,Bn()}}function Bn(){In||=Fn.then(Gn)}function Vn(e){C(e)?Mn.push(...e):Nn&&e.id===-1?Nn.splice(Pn+1,0,e):e.flags&1||(Mn.push(e),e.flags|=1),Bn()}function Hn(e,t,n=jn+1){for(;n<An.length;n++){let t=An[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;An.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Un(e){if(Mn.length){let e=[...new Set(Mn)].sort((e,t)=>Wn(e)-Wn(t));if(Mn.length=0,Nn){Nn.push(...e);return}for(Nn=e,Pn=0;Pn<Nn.length;Pn++){let e=Nn[Pn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Nn=null,Pn=0}}var Wn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Gn(e){try{for(jn=0;jn<An.length;jn++){let e=An[jn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),En(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;jn<An.length;jn++){let e=An[jn];e&&(e.flags&=-2)}jn=-1,An.length=0,Un(e),In=null,(An.length||Mn.length)&&Gn(e)}}var Kn=null,qn=null;function Jn(e){let t=Kn;return Kn=e,qn=e&&e.type.__scopeId||null,t}function Yn(e){qn=e}function Xn(){qn=null}var Zn=e=>V;function V(e,t=Kn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ya(-1);let i=Jn(t),a;try{a=e(...n)}finally{Jn(i),r._d&&Ya(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Qn(e,t){if(Kn===null)return e;let n=ko(Kn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=p]=t[e];i&&(E(i)&&(i={mounted:i,updated:i}),i.deep&&Tn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function $n(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&($e(),Dn(c,n,8,[e.el,s,e,t]),et())}}function er(e,t){if(po){let n=po.provides,r=po.parent&&po.parent.provides;r===n&&(n=po.provides=Object.create(r)),n[e]=t}}function tr(e,t,n=!1){let r=mo();if(r||zi){let i=zi?zi._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&E(t)?t.call(r&&r.proxy):t}}function nr(){return!!(mo()||zi)}var rr=Symbol.for(`v-scx`),ir=()=>tr(rr);function ar(e,t){return cr(e,null,t)}function or(e,t){return cr(e,null,{flush:`sync`})}function sr(e,t,n){return cr(e,t,n)}function cr(e,t,n=p){let{immediate:r,deep:i,flush:a,once:o}=n,s=y({},n),c=t&&r||!t&&a!==`post`,l;if(bo){if(a===`sync`){let e=ir();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=h,e.resume=h,e.pause=h,e}}let u=po;s.call=(e,t,n)=>Dn(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{va(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():zn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=wn(e,t,s);return bo&&(l?l.push(f):c&&f()),f}function lr(e,t,n){let r=this.proxy,i=D(e)?e.includes(`.`)?ur(r,e):()=>r[e]:e.bind(r,r),a;E(t)?a=t:(a=t.handler,n=t);let o=_o(this),s=cr(i,a.bind(r),n);return o(),s}function ur(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var dr=Symbol(`_vte`),fr=e=>e.__isTeleport,pr=Symbol(`_leaveCb`),mr=Symbol(`_enterCb`);function hr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Wr(()=>{e.isMounted=!0}),qr(()=>{e.isUnmounting=!0}),e}var gr=[Function,Array],_r={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:gr,onEnter:gr,onAfterEnter:gr,onEnterCancelled:gr,onBeforeLeave:gr,onLeave:gr,onAfterLeave:gr,onLeaveCancelled:gr,onBeforeAppear:gr,onAppear:gr,onAfterAppear:gr,onAppearCancelled:gr},vr=e=>{let t=e.subTree;return t.component?vr(t.component):t},yr={name:`BaseTransition`,props:_r,setup(e,{slots:t}){let n=mo(),r=hr();return()=>{let i=t.default&&Dr(t.default(),!0);if(!i||!i.length)return;let a=br(i),o=$t(e),{mode:s}=o;if(r.isLeaving)return wr(a);let c=Tr(a);if(!c)return wr(a);let l=Cr(c,o,r,n,e=>l=e);c.type!==Ua&&Er(c,l);let u=n.subTree&&Tr(n.subTree);if(u&&u.type!==Ua&&!Qa(u,c)&&vr(n).type!==Ua){let e=Cr(u,o,r,n);if(Er(u,e),s===`out-in`&&c.type!==Ua)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},wr(a);s===`in-out`&&c.type!==Ua?e.delayLeave=(e,t,n)=>{let i=Sr(r,u);i[String(u.key)]=u,e[pr]=()=>{t(),e[pr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function br(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Ua){t=n;break}}return t}var xr=yr;function Sr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=Sr(n,e),S=(e,t)=>{e&&Dn(e,r,9,t)},w=(e,t)=>{let n=t[1];S(e,t),C(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[pr]&&t[pr](!0);let i=x[b];i&&Qa(e,i)&&i.el[pr]&&i.el[pr](),S(r,[t])},enter(t){if(x[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=_||l,i=v||u,o=y||d;else return;let s=!1;t[mr]=e=>{s||(s=!0,S(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[mr]=void 0)};let c=t[mr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[mr]&&t[mr](!0),n.isUnmounting)return r();S(f,[t]);let a=!1;t[pr]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[pr]=void 0,x[i]===e&&delete x[i])};let o=t[pr].bind(null,!1);x[i]=e,p?w(p,[t,o]):o()},clone(e){let a=Cr(e,t,n,r,i);return i&&i(a),a}};return T}function wr(e){if(Ir(e))return e=ro(e),e.children=null,e}function Tr(e){if(!Ir(e))return fr(e.type)&&e.children?br(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&E(n.default))return n.default()}}function Er(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Er(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 Dr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===U?(o.patchFlag&128&&i++,r=r.concat(Dr(o.children,t,s))):(t||o.type!==Ua)&&r.push(s==null?o:ro(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function H(e,t){return E(e)?y({name:e.name},t,{setup:e}):e}function Or(){let e=mo();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function kr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Ar(e){let t=mo(),n=an(null);if(t){let r=t.refs===p?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function jr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Mr=new WeakMap;function Nr(e,t,n,r,i=!1){if(C(e)){e.forEach((e,a)=>Nr(e,t&&(C(t)?t[a]:t),n,r,i));return}if(Fr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Nr(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?ko(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===p?s.refs={}:s.refs,d=s.setupState,f=$t(d),m=d===p?g:e=>jr(u,e)?!1:S(f,e),h=(e,t)=>!(t&&jr(u,t));if(l!=null&&l!==c){if(Pr(t),D(l))u[l]=null,m(l)&&(d[l]=null);else if(rn(l)){let e=t;h(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(E(c))En(c,s,12,[o,u]);else{let t=D(c),r=rn(c);if(t||r){let s=()=>{if(e.f){let n=t?m(c)?d[c]:u[c]:h(c)||!e.k?c.value:u[e.k];if(i)C(n)&&b(n,a);else if(C(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],m(c)&&(d[c]=u[c]);else{let t=[a];h(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,m(c)&&(d[c]=o)):r&&(h(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Mr.delete(e)};t.id=-1,Mr.set(e,t),va(t,n)}else Pr(e),s()}}}function Pr(e){let t=Mr.get(e);t&&(t.flags|=8,Mr.delete(e))}_e().requestIdleCallback,_e().cancelIdleCallback;var Fr=e=>!!e.type.__asyncLoader,Ir=e=>e.type.__isKeepAlive;function Lr(e,t){zr(e,`a`,t)}function Rr(e,t){zr(e,`da`,t)}function zr(e,t,n=po){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Vr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ir(e.parent.vnode)&&Br(r,t,n,e),e=e.parent}}function Br(e,t,n,r){let i=Vr(t,e,r,!0);Jr(()=>{b(r[t],i)},n)}function Vr(e,t,n=po,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{$e();let i=_o(n),a=Dn(t,n,e,r);return i(),et(),a};return r?i.unshift(a):i.push(a),a}}var Hr=e=>(t,n=po)=>{(!bo||e===`sp`)&&Vr(e,(...e)=>t(...e),n)},Ur=Hr(`bm`),Wr=Hr(`m`),Gr=Hr(`bu`),Kr=Hr(`u`),qr=Hr(`bum`),Jr=Hr(`um`),Yr=Hr(`sp`),Xr=Hr(`rtg`),Zr=Hr(`rtc`);function Qr(e,t=po){Vr(`ec`,e,t)}var $r=`components`,ei=`directives`;function ti(e,t){return ai($r,e,!0,t)||e}var ni=Symbol.for(`v-ndc`);function ri(e){return D(e)?ai($r,e,!1)||e:e||ni}function ii(e){return ai(ei,e)}function ai(e,t,n=!0,r=!1){let i=Kn||po;if(i){let n=i.type;if(e===$r){let e=Ao(n,!1);if(e&&(e===t||e===A(t)||e===ue(A(t))))return n}let a=oi(i[e]||n[e],t)||oi(i.appContext[e],t);return!a&&r?n:a}}function oi(e,t){return e&&(e[t]||e[A(t)]||e[ue(A(t))])}function si(e,t,n,r){let i,a=n&&n[r],o=C(e);if(o||D(e)){let n=o&&Yt(e),r=!1,s=!1;n&&(r=!Zt(e),s=Xt(e),e=mt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?nn(tn(e[n])):tn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(k(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function ci(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(C(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function li(e,t,n={},r,i){if(Kn.ce||Kn.parent&&Fr(Kn.parent)&&Kn.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),W(),K(U,null,[J(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),W();let o=a&&ui(a(n)),s=n.key||o&&o.key,c=K(U,{key:(s&&!O(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function ui(e){return e.some(e=>Za(e)?!(e.type===Ua||e.type===U&&!ui(e.children)):!0)?e:null}function di(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:de(r)]=e[r];return n}var fi=e=>e?yo(e)?ko(e):fi(e.parent):null,pi=y(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=>fi(e.parent),$root:e=>fi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ei(e),$forceUpdate:e=>e.f||=()=>{zn(e.update)},$nextTick:e=>e.n||=Ln.bind(e.proxy),$watch:e=>lr.bind(e)}),mi=(e,t)=>e!==p&&!e.__isScriptSetup&&S(e,t),hi={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(mi(r,t))return o[t]=1,r[t];else if(i!==p&&S(i,t))return o[t]=2,i[t];else if(S(a,t))return o[t]=3,a[t];else if(n!==p&&S(n,t))return o[t]=4,n[t];else xi&&(o[t]=0)}let l=pi[t],u,d;if(l)return t===`$attrs`&&ut(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==p&&S(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,S(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return mi(i,t)?(i[t]=n,!0):r!==p&&S(r,t)?(r[t]=n,!0):S(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==p&&s[0]!==`$`&&S(e,s)||mi(t,s)||S(a,s)||S(r,s)||S(pi,s)||S(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?S(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function gi(){return vi(`useSlots`).slots}function _i(){return vi(`useAttrs`).attrs}function vi(e){let t=mo();return t.setupContext||=Oo(t)}function yi(e){return C(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function bi(e,t){return!e||!t?e||t:C(e)&&C(t)?e.concat(t):y({},yi(e),yi(t))}var xi=!0;function Si(e){let t=Ei(e),n=e.proxy,r=e.ctx;xi=!1,t.beforeCreate&&wi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:x,render:S,renderTracked:w,renderTriggered:T,errorCaptured:ee,serverPrefetch:D,expose:O,inheritAttrs:te,components:ne,directives:re,filters:ie}=t;if(l&&Ci(l,r,null),o)for(let e in o){let t=o[e];E(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);k(t)&&(e.data=Gt(t))}if(xi=!0,a)for(let e in a){let t=a[e],i=Z({get:E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):h,set:!E(t)&&E(t.set)?t.set.bind(n):h});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)Ti(s[e],r,n,e);if(c){let e=E(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{er(t,e[t])})}u&&wi(u,e,`c`);function ae(e,t){C(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ae(Ur,d),ae(Wr,f),ae(Gr,p),ae(Kr,m),ae(Lr,g),ae(Rr,_),ae(Qr,ee),ae(Zr,w),ae(Xr,T),ae(qr,y),ae(Jr,x),ae(Yr,D),C(O))if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};S&&e.render===h&&(e.render=S),te!=null&&(e.inheritAttrs=te),ne&&(e.components=ne),re&&(e.directives=re),D&&kr(e)}function Ci(e,t,n=h){C(e)&&(e=ji(e));for(let n in e){let r=e[n],i;i=k(r)?`default`in r?tr(r.from||n,r.default,!0):tr(r.from||n):tr(r),rn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function wi(e,t,n){Dn(C(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ti(e,t,n,r){let i=r.includes(`.`)?ur(n,r):()=>n[r];if(D(e)){let n=t[e];E(n)&&sr(i,n)}else if(E(e))sr(i,e.bind(n));else if(k(e))if(C(e))e.forEach(e=>Ti(e,t,n,r));else{let r=E(e.handler)?e.handler.bind(n):t[e.handler];E(r)&&sr(i,r,e)}}function Ei(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Di(c,e,o,!0)),Di(c,t,o)),k(t)&&a.set(t,c),c}function Di(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Di(e,a,n,!0),i&&i.forEach(t=>Di(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Oi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Oi={data:ki,props:Pi,emits:Pi,methods:Ni,computed:Ni,beforeCreate:Mi,created:Mi,beforeMount:Mi,mounted:Mi,beforeUpdate:Mi,updated:Mi,beforeDestroy:Mi,beforeUnmount:Mi,destroyed:Mi,unmounted:Mi,activated:Mi,deactivated:Mi,errorCaptured:Mi,serverPrefetch:Mi,components:Ni,directives:Ni,watch:Fi,provide:ki,inject:Ai};function ki(e,t){return t?e?function(){return y(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function Ai(e,t){return Ni(ji(e),ji(t))}function ji(e){if(C(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Mi(e,t){return e?[...new Set([].concat(e,t))]:t}function Ni(e,t){return e?y(Object.create(null),e,t):t}function Pi(e,t){return e?C(e)&&C(t)?[...new Set([...e,...t])]:y(Object.create(null),yi(e),yi(t??{})):t}function Fi(e,t){if(!e)return t;if(!t)return e;let n=y(Object.create(null),e);for(let r in t)n[r]=Mi(e[r],t[r]);return n}function Ii(){return{app:null,config:{isNativeTag:g,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}}var Li=0;function Ri(e,t){return function(n,r=null){E(n)||(n=y({},n)),r!=null&&!k(r)&&(r=null);let i=Ii(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Li++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:No,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&E(e.install)?(a.add(e),e.install(c,...t)):E(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||J(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,ko(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Dn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=zi;zi=c;try{return e()}finally{zi=t}}};return c}}var zi=null;function Bi(e,t,n=p){let r=mo(),i=A(t),a=M(t),o=Vi(e,i),s=fn((o,s)=>{let c,l=p,u;return or(()=>{let t=e[i];N(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!N(o,c)&&!(l!==p&&N(e,l)))return;let d=r.vnode.props;d&&(t in d||i in d||a in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d)||(c=e,s()),r.emit(`update:${t}`,o),N(e,o)&&N(e,l)&&!N(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||p:s,done:!1}:{done:!0}}}},s}var Vi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${A(t)}Modifiers`]||e[`${M(t)}Modifiers`];function Hi(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||p,i=n,a=t.startsWith(`update:`),o=a&&Vi(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>D(e)?e.trim():e)),o.number&&(i=n.map(me)));let s,c=r[s=de(t)]||r[s=de(A(t))];!c&&a&&(c=r[s=de(M(t))]),c&&Dn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Dn(l,e,6,i)}}var Ui=new WeakMap;function Wi(e,t,n=!1){let r=n?Ui:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!E(e)){let r=e=>{let n=Wi(e,t,!0);n&&(s=!0,y(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(k(e)&&r.set(e,null),null):(C(a)?a.forEach(e=>o[e]=null):y(o,a),k(e)&&r.set(e,o),o)}function Gi(e,t){return!e||!_(t)?!1:(t=t.slice(2).replace(/Once$/,``),S(e,t[0].toLowerCase()+t.slice(1))||S(e,M(t))||S(e,t))}function Ki(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=Jn(e),_,y;try{if(n.shapeFlag&4){let e=i||r,t=e;_=io(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;_=io(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:Ji(s)}}catch(t){Ga.length=0,On(t,e,1),_=J(Ua)}let b=_;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(v)&&(y=Yi(y,a)),b=ro(b,y,!1,!0))}return n.dirs&&(b=ro(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Er(b,n.transition),_=b,Jn(g),_}function qi(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Za(r)){if(r.type!==Ua||r.children===`v-if`){if(n)return;n=r}}else return}return n}var Ji=e=>{let t;for(let n in e)(n===`class`||n===`style`||_(n))&&((t||={})[n]=e[n]);return t},Yi=(e,t)=>{let n={};for(let r in e)(!v(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Xi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Zi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Qi(o,r,n)&&!Gi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Zi(r,o,l):!0:!!o;return!1}function Zi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Qi(t,e,a)&&!Gi(n,a))return!0}return!1}function Qi(e,t,n){let r=e[n],i=t[n];return n===`style`&&k(r)&&k(i)?!Oe(r,i):r!==i}function $i({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}var ea={},ta=()=>Object.create(ea),na=e=>Object.getPrototypeOf(e)===ea;function ra(e,t,n,r=!1){let i={},a=ta();e.propsDefaults=Object.create(null),aa(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Kt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function ia(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=$t(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Gi(e.emitsOptions,o))continue;let u=t[o];if(c)if(S(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=A(o);i[t]=oa(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{aa(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!S(t,a)&&((r=M(a))===a||!S(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=oa(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!S(t,e))&&(delete a[e],l=!0)}l&&dt(e.attrs,`set`,``)}function aa(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(se(c))continue;let l=t[c],u;i&&S(i,u=A(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:Gi(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=$t(n),r=s||p;for(let o=0;o<a.length;o++){let s=a[o];n[s]=oa(i,t,s,r[s],e,!S(r,s))}}return o}function oa(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=S(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&E(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=_o(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===M(n))&&(r=!0))}return r}var sa=new WeakMap;function ca(e,t,n=!1){let r=n?sa:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!E(e)){let r=e=>{c=!0;let[n,r]=ca(e,t,!0);y(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return k(e)&&r.set(e,m),m;if(C(a))for(let e=0;e<a.length;e++){let t=A(a[e]);la(t)&&(o[t]=p)}else if(a)for(let e in a){let t=A(e);if(la(t)){let n=a[e],r=o[t]=C(n)||E(n)?{type:n}:y({},n),i=r.type,c=!1,l=!0;if(C(i))for(let e=0;e<i.length;++e){let t=i[e],n=E(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=E(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||S(r,`default`))&&s.push(t)}}let l=[o,s];return k(e)&&r.set(e,l),l}function la(e){return e[0]!==`$`&&!se(e)}var ua=e=>e===`_`||e===`_ctx`||e===`$stable`,da=e=>C(e)?e.map(io):[io(e)],fa=(e,t,n)=>{if(t._n)return t;let r=V((...e)=>da(t(...e)),n);return r._c=!1,r},pa=(e,t,n)=>{let r=e._ctx;for(let n in e){if(ua(n))continue;let i=e[n];if(E(i))t[n]=fa(n,i,r);else if(i!=null){let e=da(i);t[n]=()=>e}}},ma=(e,t)=>{let n=da(t);e.slots.default=()=>n},ha=(e,t,n)=>{for(let r in t)(n||!ua(r))&&(e[r]=t[r])},ga=(e,t,n)=>{let r=e.slots=ta();if(e.vnode.shapeFlag&32){let e=t._;e?(ha(r,t,n),n&&pe(r,`_`,e,!0)):pa(t,r)}else t&&ma(e,t)},_a=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=p;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:ha(i,t,n):(a=!t.$stable,pa(t,i)),o=t}else t&&(ma(e,t),o={default:1});if(a)for(let e in i)!ua(e)&&o[e]==null&&delete i[e]},va=za;function ya(e){return ba(e)}function ba(e,t){let n=_e();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:g=h,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Qa(e,t)&&(r=me(e),M(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ha:y(e,t,n,r);break;case Ua:b(e,t,n,r);break;case Wa:e??x(t,n,r,o);break;case U:te(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ne(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ve)}u!=null&&i?Nr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Nr(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&E(e.children,f,null,i,s,xa(e,c),l,d),_&&$n(e,null,i,`created`),ee(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!se(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&co(p,i,e)}_&&$n(e,null,i,`beforeMount`);let v=Ca(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&va(()=>{p&&co(p,i,e),v&&g.enter(f),_&&$n(e,null,i,`mounted`)},s)},ee=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||ka(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;ee(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?ao(e[l]):io(e[l]),t,n,r,i,a,o,s)},D=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let m=e.props||p,h=t.props||p,g;if(n&&Sa(n,!1),(g=h.onVnodeBeforeUpdate)&&co(g,n,t,e),f&&$n(t,e,n,`beforeUpdate`),n&&Sa(n,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),d?O(e.dynamicChildren,d,c,n,r,xa(t,i),o):s||ce(e,t,c,null,n,r,xa(t,i),o,!1),l>0){if(l&16)k(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=m[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&d==null&&k(c,m,h,n,i);((g=h.onVnodeUpdated)||f)&&va(()=>{g&&co(g,n,t,e),f&&$n(t,e,n,`updated`)},r)},O=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===U||!Qa(c,l)||c.shapeFlag&198)?d(c.el):n,null,r,i,a,o,!0)}},k=(e,t,n,r,i)=>{if(t!==n){if(t!==p)for(let o in t)!se(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(se(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},te=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),E(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(O(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&wa(e,t,!0)):ce(e,t,n,f,a,o,c,l,u)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):ie(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=fo(e,r,i);if(Ir(e)&&(s.ctx.renderer=ve),xo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=J(Ua);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},ie=(e,t,n)=>{let r=t.component=e.component;if(Xi(e,t,n))if(r.asyncDep&&!r.asyncResolved){oe(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ea(e);if(n){t&&(t.el=c.el,oe(e,t,o)),n.asyncDep.then(()=>{va(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;Sa(e,!1),t?(t.el=c.el,oe(e,t,o)):t=c,n&&fe(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&co(f,s,t,c),Sa(e,!0);let p=Ki(e),m=e.subTree;e.subTree=p,v(m,p,d(m.el),me(m),e,i,a),t.el=p.el,u===null&&$i(e,p.el),r&&va(r,i),(f=t.props&&t.props.onVnodeUpdated)&&va(()=>co(f,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Fr(t);if(Sa(e,!1),l&&fe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&co(o,d,t),Sa(e,!0),s&&be){let t=()=>{e.subTree=Ki(e),be(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p);let o=e.subTree=Ki(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&va(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;va(()=>co(o,d,e),i)}(t.shapeFlag&256||d&&Fr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&va(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Re(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>zn(u),Sa(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,ia(e,t.props,r,n),_a(e,t.children,n),$e(),Hn(e),et()},ce=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){A(l,f,n,r,i,a,o,s,c);return}else if(p&256){le(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&pe(l,i,a),f!==l&&u(n,f)):d&16?m&16?A(l,f,n,r,i,a,o,s,c):pe(l,i,a,!0):(d&8&&u(n,``),m&16&&E(f,n,r,i,a,o,s,c))},le=(e,t,n,r,i,a,o,s,c)=>{e||=m,t||=m;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?ao(t[f]):io(t[f]);v(e[f],r,n,null,i,a,o,s,c)}l>u?pe(e,i,a,!0,!1,d):E(t,n,r,i,a,o,s,c,d)},A=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?ao(t[l]):io(t[l]);if(Qa(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?ao(t[f]):io(t[f]);if(Qa(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)v(null,t[l]=c?ao(t[l]):io(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)M(e[l],i,a,!0),l++;else{let p=l,h=l,g=new Map;for(l=h;l<=f;l++){let e=t[l]=c?ao(t[l]):io(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=f-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=p;l<=d;l++){let r=e[l];if(y>=b){M(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=f;_++)if(C[_-h]===0&&Qa(r,t[_])){u=_;break}u===void 0?M(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?Ta(C):m;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1<u?f.el||Oa(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==w[_]?j(d,n,p,2):_--)}}},j=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){j(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,ve);return}if(c===U){r(s,t,n);for(let e=0;e<u.length;e++)j(u[e],t,n,a);r(e.anchor,t,n);return}if(c===Wa){S(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.beforeEnter(s),r(s,t,n),va(()=>l.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[pr](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},M=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&($e(),Nr(s,null,n,e,!0),et()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!Fr(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&co(g,t,e),u&6)N(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&$n(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ve,r):l&&!l.hasOnce&&(a!==U||d>0&&d&64)?pe(l,t,n,!1,!0):(a===U&&d&384||!i&&u&16)&&pe(c,t,n),r&&ue(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&va(()=>{g&&co(g,t,e),m&&$n(e,null,t,`unmounted`)},n)},ue=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===U){de(n,r);return}if(t===Wa){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},de=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},N=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Da(c),Da(l),r&&fe(r),i.stop(),a&&(a.flags|=8,M(o,e,t,n)),s&&va(s,t),va(()=>{e.isUnmounted=!0},t)},pe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)M(e[o],t,n,r,i)},me=e=>{if(e.shapeFlag&6)return me(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[dr];return n?f(n):t},he=!1,ge=(e,t,n)=>{let r;e==null?t._vnode&&(M(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,he||=(he=!0,Hn(r),Un(),!1)},ve={p:v,um:M,m:j,r:ue,mt:re,mc:E,pc:ce,pbc:O,n:me,o:e},ye,be;return t&&([ye,be]=t(ve)),{render:ge,hydrate:ye,createApp:Ri(ge,ye)}}function xa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Sa({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ca(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wa(e,t,n=!1){let r=e.children,i=t.children;if(C(r)&&C(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=ao(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&wa(t,a)),a.type===Ha&&(a.patchFlag===-1&&(a=i[e]=ao(a)),a.el=t.el),a.type===Ua&&!a.el&&(a.el=t.el)}}function Ta(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Ea(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ea(t)}function Da(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Oa(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Oa(t.subTree):null}var ka=e=>e.__isSuspense,Aa=0,ja={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Na(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Pa(e,t,n,r,i,o,s,c,l)}},hydrate:Ia,normalize:La};function Ma(e,t){let n=e.props&&e.props[t];E(n)&&n()}function Na(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Fa(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Ma(e,`onPending`),Ma(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Ba(f,e.ssFallback)):f.resolve(!1,!0)}function Pa(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Qa(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Ba(d,p)))):(d.pendingId=Aa++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Ba(d,p))):m&&Qa(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Qa(m,f))c(m,f,n,r,i,d,a,o,s),Ba(d,f);else if(Ma(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Aa++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Fa(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Va(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?he(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Aa++,timeout:typeof y==`number`?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;x.isHydrating?x.isHydrating=!1:e||(g=i&&o.transition&&o.transition.mode===`out-in`,g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),Vn(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0),!g&&d&&r.ssFallback&&va(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)),Ba(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&Vn(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Ma(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Ma(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),Ba(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{On(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:s}=e;Co(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),$i(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Ia(e,t,n,r,i,a,o,s,c){let l=t.suspense=Fa(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function La(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ra(r?n.default:n),e.ssFallback=r?Ra(n.fallback):J(Ua)}function Ra(e){let t;if(E(e)){let n=Ja&&e._c;n&&(e._d=!1,W()),e=e(),n&&(e._d=!0,t=Ka,qa())}return C(e)&&(e=qi(e)),e=io(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function za(e,t){t&&t.pendingBranch?C(e)?t.effects.push(...e):t.effects.push(e):Vn(e)}function Ba(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,$i(r,i))}function Va(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var U=Symbol.for(`v-fgt`),Ha=Symbol.for(`v-txt`),Ua=Symbol.for(`v-cmt`),Wa=Symbol.for(`v-stc`),Ga=[],Ka=null;function W(e=!1){Ga.push(Ka=e?null:[])}function qa(){Ga.pop(),Ka=Ga[Ga.length-1]||null}var Ja=1;function Ya(e,t=!1){Ja+=e,e<0&&Ka&&t&&(Ka.hasOnce=!0)}function Xa(e){return e.dynamicChildren=Ja>0?Ka||m:null,qa(),Ja>0&&Ka&&Ka.push(e),e}function G(e,t,n,r,i,a){return Xa(q(e,t,n,r,i,a,!0))}function K(e,t,n,r,i){return Xa(J(e,t,n,r,i,!0))}function Za(e){return e?e.__v_isVNode===!0:!1}function Qa(e,t){return e.type===t.type&&e.key===t.key}var $a=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:D(e)||rn(e)||E(e)?{i:Kn,r:e,k:t,f:!!n}:e);function q(e,t=null,n=null,r=0,i=null,a=e===U?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$a(t),ref:t&&eo(t),scopeId:qn,slotScopeIds:null,children:n,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Kn};return s?(oo(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=D(n)?8:16),Ja>0&&!o&&Ka&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ka.push(c),c}var J=to;function to(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ni)&&(e=Ua),Za(e)){let r=ro(e,t,!0);return n&&oo(r,n),Ja>0&&!a&&Ka&&(r.shapeFlag&6?Ka[Ka.indexOf(e)]=r:Ka.push(r)),r.patchFlag=-2,r}if(jo(e)&&(e=e.__vccOpts),t){t=no(t);let{class:e,style:n}=t;e&&!D(e)&&(t.class=P(e)),k(n)&&(Qt(n)&&!C(n)&&(n=y({},n)),t.style=ve(n))}let o=D(e)?1:ka(e)?128:fr(e)?64:k(e)?4:E(e)?2:0;return q(e,t,n,r,i,o,a,!0)}function no(e){return e?Qt(e)||na(e)?y({},e):e:null}function ro(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?so(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&$a(l),ref:t&&t.ref?n&&a?C(a)?a.concat(eo(t)):[a,eo(t)]:eo(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ro(e.ssContent),ssFallback:e.ssFallback&&ro(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Er(u,c.clone(u)),u}function Y(e=` `,t=0){return J(Ha,null,e,t)}function X(e=``,t=!1){return t?(W(),K(Ua,null,e)):J(Ua,null,e)}function io(e){return e==null||typeof e==`boolean`?J(Ua):C(e)?J(U,null,e.slice()):Za(e)?ao(e):J(Ha,null,String(e))}function ao(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ro(e)}function oo(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(C(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),oo(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!na(t)?t._ctx=Kn:r===3&&Kn&&(Kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else E(t)?(t={default:t,_ctx:Kn},n=32):(t=String(t),r&64?(n=16,t=[Y(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=P([t.class,r.class]));else if(e===`style`)t.style=ve([t.style,r.style]);else if(_(e)){let n=t[e],i=r[e];i&&n!==i&&!(C(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else e!==``&&(t[e]=r[e])}return t}function co(e,t,n,r=null){Dn(e,t,7,[n,r])}var lo=Ii(),uo=0;function fo(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||lo,a={uid:uo++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ca(r,i),emitsOptions:Wi(r,i),emit:null,emitted:null,propsDefaults:p,inheritAttrs:r.inheritAttrs,ctx:p,data:p,props:p,attrs:p,slots:p,refs:p,setupState:p,setupContext:null,suspense:n,suspenseId:n?n.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 a.ctx={_:a},a.root=t?t.root:a,a.emit=Hi.bind(null,a),e.ce&&e.ce(a),a}var po=null,mo=()=>po||Kn,ho,go;{let e=_e(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ho=t(`__VUE_INSTANCE_SETTERS__`,e=>po=e),go=t(`__VUE_SSR_SETTERS__`,e=>bo=e)}var _o=e=>{let t=po;return ho(e),e.scope.on(),()=>{e.scope.off(),ho(t)}},vo=()=>{po&&po.scope.off(),ho(null)};function yo(e){return e.vnode.shapeFlag&4}var bo=!1;function xo(e,t=!1,n=!1){t&&go(t);let{props:r,children:i}=e.vnode,a=yo(e);ra(e,r,a,t),ga(e,i,n||t);let o=a?So(e,t):void 0;return t&&go(!1),o}function So(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hi);let{setup:r}=n;if(r){$e();let n=e.setupContext=r.length>1?Oo(e):null,i=_o(e),a=En(r,e,0,[e.props,n]),o=te(a);if(et(),i(),(o||e.sp)&&!Fr(e)&&kr(e),o){if(a.then(vo,vo),t)return a.then(n=>{Co(e,n,t)}).catch(t=>{On(t,e,0)});e.asyncDep=a}else Co(e,a,t)}else Eo(e,t)}function Co(e,t,n){E(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=un(t)),Eo(e,n)}var wo,To;function Eo(e,t,n){let r=e.type;if(!e.render){if(!t&&wo&&!r.render){let t=r.template||Ei(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=wo(t,y(y({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||h,To&&To(e)}{let t=_o(e);$e();try{Si(e)}finally{et(),t()}}}var Do={get(e,t){return ut(e,`get`,``),e[t]}};function Oo(e){return{attrs:new Proxy(e.attrs,Do),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function ko(e){return e.exposed?e.exposeProxy||=new Proxy(un(en(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pi)return pi[n](e)},has(e,t){return t in e||t in pi}}):e.proxy}function Ao(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}function jo(e){return E(e)&&`__vccOpts`in e}var Z=(e,t)=>yn(e,t,bo);function Mo(e,t,n){try{Ya(-1);let r=arguments.length;return r===2?k(t)&&!C(t)?Za(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Za(n)&&(n=[n]),J(e,t,n))}finally{Ya(1)}}var No=`3.5.29`,Po=void 0,Fo=typeof window<`u`&&window.trustedTypes;if(Fo)try{Po=Fo.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Io=Po?e=>Po.createHTML(e):e=>e,Lo=`http://www.w3.org/2000/svg`,Ro=`http://www.w3.org/1998/Math/MathML`,zo=typeof document<`u`?document:null,Bo=zo&&zo.createElement(`template`),Vo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?zo.createElementNS(Lo,e):t===`mathml`?zo.createElementNS(Ro,e):n?zo.createElement(e,{is:n}):zo.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>zo.createTextNode(e),createComment:e=>zo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zo.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Bo.innerHTML=Io(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Bo.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ho=`transition`,Uo=`animation`,Wo=Symbol(`_vtc`),Go={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},Ko=y({},_r,Go),qo=(e=>(e.displayName=`Transition`,e.props=Ko,e))((e,{slots:t})=>Mo(xr,Xo(e),t)),Jo=(e,t=[])=>{C(e)?e.forEach(e=>e(...t)):e&&e(...t)},Yo=e=>e?C(e)?e.some(e=>e.length>1):e.length>1:!1;function Xo(e){let t={};for(let n in e)n in Go||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Zo(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=_,onAppear:w=v,onAppearCancelled:T=b}=t,ee=(e,t,n,r)=>{e._enterCancelled=r,es(e,t?u:s),es(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,es(e,d),es(e,p),es(e,f),t&&t()},D=e=>(t,n)=>{let i=e?w:v,o=()=>ee(t,e,n);Jo(i,[t,o]),ts(()=>{es(t,e?c:a),$o(t,e?u:s),Yo(i)||rs(t,r,h,o)})};return y(t,{onBeforeEnter(e){Jo(_,[e]),$o(e,a),$o(e,o)},onBeforeAppear(e){Jo(C,[e]),$o(e,c),$o(e,l)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);$o(e,d),e._enterCancelled?($o(e,f),ss(e)):(ss(e),$o(e,f)),ts(()=>{e._isLeaving&&(es(e,d),$o(e,p),Yo(x)||rs(e,r,g,n))}),Jo(x,[e,n])},onEnterCancelled(e){ee(e,!1,void 0,!0),Jo(b,[e])},onAppearCancelled(e){ee(e,!0,void 0,!0),Jo(T,[e])},onLeaveCancelled(e){E(e),Jo(S,[e])}})}function Zo(e){if(e==null)return null;if(k(e))return[Qo(e.enter),Qo(e.leave)];{let t=Qo(e);return[t,t]}}function Qo(e){return he(e)}function $o(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Wo]||(e[Wo]=new Set)).add(t)}function es(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Wo];n&&(n.delete(t),n.size||(e[Wo]=void 0))}function ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var ns=0;function rs(e,t,n,r){let i=e._endId=++ns,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=is(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function is(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Ho}Delay`),a=r(`${Ho}Duration`),o=as(i,a),s=r(`${Uo}Delay`),c=r(`${Uo}Duration`),l=as(s,c),u=null,d=0,f=0;t===Ho?o>0&&(u=Ho,d=o,f=a.length):t===Uo?l>0&&(u=Uo,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Ho:Uo:null,f=u?u===Ho?a.length:c.length:0);let p=u===Ho&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ho}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function as(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>os(t)+os(e[n])))}function os(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function ss(e){return(e?e.ownerDocument:document).body.offsetHeight}function cs(e,t,n){let r=e[Wo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ls=Symbol(`_vod`),us=Symbol(`_vsh`),ds={name:`show`,beforeMount(e,{value:t},{transition:n}){e[ls]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):fs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),fs(e,!0),r.enter(e)):r.leave(e,()=>{fs(e,!1)}):fs(e,t))},beforeUnmount(e,{value:t}){fs(e,t)}};function fs(e,t){e.style.display=t?e[ls]:`none`,e[us]=!t}var ps=Symbol(``),ms=/(?:^|;)\s*display\s*:/;function hs(e,t,n){let r=e.style,i=D(n),a=!1;if(n&&!i){if(t)if(D(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??_s(r,t,``)}else for(let e in t)n[e]??_s(r,e,``);for(let e in n)e===`display`&&(a=!0),_s(r,e,n[e])}else if(i){if(t!==n){let e=r[ps];e&&(n+=`;`+e),r.cssText=n,a=ms.test(n)}}else t&&e.removeAttribute(`style`);ls in e&&(e[ls]=a?r.display:``,e[us]&&(r.display=`none`))}var gs=/\s*!important$/;function _s(e,t,n){if(C(n))n.forEach(n=>_s(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=bs(e,t);gs.test(n)?e.setProperty(M(r),n.replace(gs,``),`important`):e[r]=n}}var vs=[`Webkit`,`Moz`,`ms`],ys={};function bs(e,t){let n=ys[t];if(n)return n;let r=A(t);if(r!==`filter`&&r in e)return ys[t]=r;r=ue(r);for(let n=0;n<vs.length;n++){let i=vs[n]+r;if(i in e)return ys[t]=i}return t}var xs=`http://www.w3.org/1999/xlink`;function Ss(e,t,n,r,i,a=Te(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(xs,t.slice(6,t.length)):e.setAttributeNS(xs,t,n):n==null||a&&!Ee(n)?e.removeAttribute(t):e.setAttribute(t,a?``:O(n)?String(n):n)}function Cs(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Io(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ee(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ws(e,t,n,r){e.addEventListener(t,n,r)}function Ts(e,t,n,r){e.removeEventListener(t,n,r)}var Es=Symbol(`_vei`);function Ds(e,t,n,r,i=null){let a=e[Es]||(e[Es]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ks(t);r?ws(e,n,a[t]=Ns(r,i),s):o&&(Ts(e,n,o,s),a[t]=void 0)}}var Os=/(?:Once|Passive|Capture)$/;function ks(e){let t;if(Os.test(e)){t={};let n;for(;n=e.match(Os);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):M(e.slice(2)),t]}var As=0,js=Promise.resolve(),Ms=()=>As||=(js.then(()=>As=0),Date.now());function Ns(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;Dn(Ps(e,n.value),t,5,[e])};return n.value=e,n.attached=Ms(),n}function Ps(e,t){if(C(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Is=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?cs(e,r,o):t===`style`?hs(e,n,r):_(t)?v(t)||Ds(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Ls(e,t,r,o))?(Cs(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ss(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!D(r))?Cs(e,A(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ss(e,t,r,o))};function Ls(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Fs(t)&&E(n));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`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Fs(t)&&D(n)?!1:t in e}var Rs=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return C(t)?e=>fe(t,e):t};function zs(e){e.target.composing=!0}function Bs(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Vs=Symbol(`_assign`);function Hs(e,t,n){return t&&(e=e.trim()),n&&(e=me(e)),e}var Us={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Vs]=Rs(i);let a=r||i.props&&i.props.type===`number`;ws(e,t?`change`:`input`,t=>{t.target.composing||e[Vs](Hs(e.value,n,a))}),(n||a)&&ws(e,`change`,()=>{e.value=Hs(e.value,n,a)}),t||(ws(e,`compositionstart`,zs),ws(e,`compositionend`,Bs),ws(e,`change`,Bs))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Vs]=Rs(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?me(e.value):e.value,c=t??``;s!==c&&(document.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Ws={deep:!0,created(e,t,n){e[Vs]=Rs(n),ws(e,`change`,()=>{let t=e._modelValue,n=Js(e),r=e.checked,i=e[Vs];if(C(t)){let e=ke(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(T(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ys(e,r))})},mounted:Gs,beforeUpdate(e,t,n){e[Vs]=Rs(n),Gs(e,t,n)}};function Gs(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(C(t))i=ke(t,r.props.value)>-1;else if(T(t))i=t.has(r.props.value);else{if(t===n)return;i=Oe(t,Ys(e,!0))}e.checked!==i&&(e.checked=i)}var Ks={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=T(t);ws(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?me(Js(e)):Js(e));e[Vs](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Ln(()=>{e._assigning=!1})}),e[Vs]=Rs(r)},mounted(e,{value:t}){qs(e,t)},beforeUpdate(e,t,n){e[Vs]=Rs(n)},updated(e,{value:t}){e._assigning||qs(e,t)}};function qs(e,t){let n=e.multiple,r=C(t);if(!(n&&!r&&!T(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Js(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=ke(t,o)>-1}else a.selected=t.has(o);else if(Oe(Js(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Js(e){return`_value`in e?e._value:e.value}function Ys(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Xs=[`ctrl`,`shift`,`alt`,`meta`],Zs={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)=>Xs.some(n=>e[`${n}Key`]&&!t.includes(n))},Qs=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Zs[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},$s={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},ec=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=M(n.key);if(t.some(e=>e===r||$s[e]===r))return e(n)}))},tc=y({patchProp:Is},Vo),nc;function rc(){return nc||=ya(tc)}var ic=((...e)=>{let t=rc().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=oc(e);if(!r)return;let i=t._component;!E(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ac(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function ac(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function oc(e){return D(e)?document.querySelector(e):e}var sc=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},cc={};function lc(e,t){let n=ti(`RouterView`);return W(),K(n)}var uc=sc(cc,[[`render`,lc]]),dc=[`top`,`right`,`bottom`,`left`],fc=[`start`,`end`],pc=dc.reduce((e,t)=>e.concat(t,t+`-`+fc[0],t+`-`+fc[1]),[]),mc=Math.min,hc=Math.max,gc={left:`right`,right:`left`,bottom:`top`,top:`bottom`},_c={start:`end`,end:`start`};function vc(e,t,n){return hc(e,mc(t,n))}function yc(e,t){return typeof e==`function`?e(t):e}function bc(e){return e.split(`-`)[0]}function xc(e){return e.split(`-`)[1]}function Sc(e){return e===`x`?`y`:`x`}function Cc(e){return e===`y`?`height`:`width`}var wc=new Set([`top`,`bottom`]);function Tc(e){return wc.has(bc(e))?`y`:`x`}function Ec(e){return Sc(Tc(e))}function Dc(e,t,n){n===void 0&&(n=!1);let r=xc(e),i=Ec(e),a=Cc(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ic(o)),[o,Ic(o)]}function Oc(e){let t=Ic(e);return[kc(e),t,kc(t)]}function kc(e){return e.replace(/start|end/g,e=>_c[e])}var Ac=[`left`,`right`],jc=[`right`,`left`],Mc=[`top`,`bottom`],Nc=[`bottom`,`top`];function Pc(e,t,n){switch(e){case`top`:case`bottom`:return n?t?jc:Ac:t?Ac:jc;case`left`:case`right`:return t?Mc:Nc;default:return[]}}function Fc(e,t,n,r){let i=xc(e),a=Pc(bc(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(kc)))),a}function Ic(e){return e.replace(/left|right|bottom|top/g,e=>gc[e])}function Lc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rc(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Lc(e)}function zc(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Bc(e,t,n){let{reference:r,floating:i}=e,a=Tc(t),o=Ec(t),s=Cc(o),c=bc(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(xc(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var Vc=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Bc(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Bc(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Hc(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=yc(t,e),p=Rc(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=zc(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=zc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Uc=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=yc(e,t)||{};if(l==null)return{};let d=Rc(u),f={x:n,y:r},p=Ec(i),m=Cc(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=mc(d[_],T),E=mc(d[v],T),D=ee,O=C-h[m]-E,k=C/2-h[m]/2+w,te=vc(D,k,O),ne=!c.arrow&&xc(i)!=null&&k!==te&&a.reference[m]/2-(k<D?ee:E)-h[m]/2<0,re=ne?k<D?k-D:k-O:0;return{[p]:f[p]+re,data:{[p]:te,centerOffset:k-te-re,...ne&&{alignmentOffset:re}},reset:ne}}});function Wc(e,t,n){return(e?[...n.filter(t=>xc(t)===e),...n.filter(t=>xc(t)!==e)]:n.filter(e=>bc(e)===e)).filter(n=>e?xc(n)===e||(t?kc(n)!==n:!1):!0)}var Gc=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=pc,autoAlignment:u=!0,...d}=yc(e,t),f=c!==void 0||l===pc?Wc(c||null,u,l):l,p=await Hc(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=Dc(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[bc(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=xc(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,xc(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},Kc=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=yc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=bc(r),_=Tc(o),v=bc(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ic(o)]:Oc(o)),x=p!==`none`;!d&&x&&b.push(...Fc(o,m,p,y));let S=[o,...b],C=await Hc(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Dc(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Tc(t))||T.every(e=>Tc(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Tc(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},qc=new Set([`left`,`top`]);async function Jc(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=bc(n),s=xc(n),c=Tc(n)===`y`,l=qc.has(o)?-1:1,u=a&&c?-1:1,d=yc(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Yc=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Jc(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Xc=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=yc(e,t),l={x:n,y:r},u=await Hc(t,c),d=Tc(bc(i)),f=Sc(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=vc(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=vc(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Zc=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=yc(e,t),u=await Hc(t,l),d=bc(i),f=xc(i),p=Tc(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=mc(h-u[g],v),x=mc(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=hc(u.left,0),t=hc(u.right,0),n=hc(u.top,0),r=hc(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:hc(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:hc(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Qc(e){return e.ownerDocument?.defaultView||window}function $c(e){return Qc(e).getComputedStyle(e)}var el=Math.min,tl=Math.max,nl=Math.round;function rl(e){let t=$c(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=nl(n)!==i||nl(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function il(e){return ll(e)?(e.nodeName||``).toLowerCase():``}var al;function ol(){if(al)return al;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(al=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),al):navigator.userAgent}function sl(e){return e instanceof Qc(e).HTMLElement}function cl(e){return e instanceof Qc(e).Element}function ll(e){return e instanceof Qc(e).Node}function ul(e){return typeof ShadowRoot>`u`?!1:e instanceof Qc(e).ShadowRoot||e instanceof ShadowRoot}function dl(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$c(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function fl(e){return[`table`,`td`,`th`].includes(il(e))}function pl(e){let t=/firefox/i.test(ol()),n=$c(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function ml(){return!/^((?!chrome|android).)*safari/i.test(ol())}function hl(e){return[`html`,`body`,`#document`].includes(il(e))}function gl(e){return cl(e)?e:e.contextElement}var _l={x:1,y:1};function vl(e){let t=gl(e);if(!sl(t))return _l;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=rl(t),o=(a?nl(n.width):n.width)/r,s=(a?nl(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function yl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=gl(e),o=_l;t&&(r?cl(r)&&(o=vl(r)):o=vl(e));let s=a?Qc(a):window,c=!ml()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=Qc(a),t=r&&cl(r)?Qc(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=vl(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=Qc(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function bl(e){return((ll(e)?e.ownerDocument:e.document)||window.document).documentElement}function xl(e){return cl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sl(e){return yl(bl(e)).left+xl(e).scrollLeft}function Cl(e){if(il(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ul(e)&&e.host||bl(e);return ul(t)?t.host:t}function wl(e){let t=Cl(e);return hl(t)?t.ownerDocument.body:sl(t)&&dl(t)?t:wl(t)}function Tl(e,t){t===void 0&&(t=[]);let n=wl(e),r=n===e.ownerDocument?.body,i=Qc(n);return r?t.concat(i,i.visualViewport||[],dl(n)?n:[]):t.concat(n,Tl(n))}function El(e,t,n){return t===`viewport`?zc(function(e,t){let n=Qc(e),r=bl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ml();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):cl(t)?zc(function(e,t){let n=yl(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=sl(e)?vl(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):zc(function(e){let t=bl(e),n=xl(e),r=e.ownerDocument.body,i=tl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=tl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Sl(e),s=-n.scrollTop;return $c(r).direction===`rtl`&&(o+=tl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(bl(e)))}function Dl(e){return sl(e)&&$c(e).position!==`fixed`?e.offsetParent:null}function Ol(e){let t=Qc(e),n=Dl(e);for(;n&&fl(n)&&$c(n).position===`static`;)n=Dl(n);return n&&(il(n)===`html`||il(n)===`body`&&$c(n).position===`static`&&!pl(n))?t:n||function(e){let t=Cl(e);for(;sl(t)&&!hl(t);){if(pl(t))return t;t=Cl(t)}return null}(e)||t}function kl(e,t,n){let r=sl(t),i=bl(t),a=yl(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`)if((il(t)!==`body`||dl(i))&&(o=xl(t)),sl(t)){let e=yl(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Sl(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Al={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Tl(e).filter((e=>cl(e)&&il(e)!==`body`)),i=null,a=$c(e).position===`fixed`,o=a?Cl(e):e;for(;cl(o)&&!hl(o);){let e=$c(o),t=pl(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=Cl(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=El(t,n,i);return e.top=tl(r.top,e.top),e.right=el(r.right,e.right),e.bottom=el(r.bottom,e.bottom),e.left=tl(r.left,e.left),e}),El(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=sl(n),a=bl(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((il(n)!==`body`||dl(a))&&(o=xl(n)),sl(n))){let e=yl(n);s=vl(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:cl,getDimensions:function(e){return sl(e)?rl(e):e.getBoundingClientRect()},getOffsetParent:Ol,getDocumentElement:bl,getScale:vl,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Ol,a=this.getDimensions;return{reference:kl(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>$c(e).direction===`rtl`},jl=(e,t,n)=>{let r=new Map,i={platform:Al,...n},a={...i.platform,_c:r};return Vc(e,t,{...i,platform:a})};function Ml(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?Ml(e[n],t[n]):e[n]=t[n])}var Nl={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 Pl(e,t){let n=Nl.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=Nl.themes[n.$extend]||{}:(n=null,r=Nl[t]):n=null;while(n);return r}function Fl(e){let t=[e],n=Nl.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Nl.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function Il(e){let t=[e],n=Nl.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Nl.themes[n.$extend]||{}):n=null;while(n);return t}var Ll=!1;if(typeof window<`u`){Ll=!1;try{let e=Object.defineProperty({},`passive`,{get(){Ll=!0}});window.addEventListener(`test`,null,e)}catch{}}var Rl=!1;typeof window<`u`&&typeof navigator<`u`&&(Rl=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var zl=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Bl={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},Vl={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function Hl(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ul(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Wl=[],Gl=null,Kl={};function ql(e){let t=Kl[e];return t||=Kl[e]=[],t}var Jl=function(){};typeof window<`u`&&(Jl=window.Element);function Yl(e){return function(t){return Pl(t.theme,e)}}var Xl=`__floating-vue__popper`,Zl=()=>H({name:`VPopper`,provide(){return{[Xl]:{parentPopper:this}}},inject:{[Xl]:{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:Yl(`disabled`)},positioningDisabled:{type:Boolean,default:Yl(`positioningDisabled`)},placement:{type:String,default:Yl(`placement`),validator:e=>zl.includes(e)},delay:{type:[String,Number,Object],default:Yl(`delay`)},distance:{type:[Number,String],default:Yl(`distance`)},skidding:{type:[Number,String],default:Yl(`skidding`)},triggers:{type:Array,default:Yl(`triggers`)},showTriggers:{type:[Array,Function],default:Yl(`showTriggers`)},hideTriggers:{type:[Array,Function],default:Yl(`hideTriggers`)},popperTriggers:{type:Array,default:Yl(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:Yl(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:Yl(`popperHideTriggers`)},container:{type:[String,Object,Jl,Boolean],default:Yl(`container`)},boundary:{type:[String,Jl],default:Yl(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:Yl(`strategy`)},autoHide:{type:[Boolean,Function],default:Yl(`autoHide`)},handleResize:{type:Boolean,default:Yl(`handleResize`)},instantMove:{type:Boolean,default:Yl(`instantMove`)},eagerMount:{type:Boolean,default:Yl(`eagerMount`)},popperClass:{type:[String,Array,Object],default:Yl(`popperClass`)},computeTransformOrigin:{type:Boolean,default:Yl(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:Yl(`autoMinSize`)},autoSize:{type:[Boolean,String],default:Yl(`autoSize`)},autoMaxSize:{type:Boolean,default:Yl(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:Yl(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:Yl(`preventOverflow`)},overflowPadding:{type:[Number,String],default:Yl(`overflowPadding`)},arrowPadding:{type:[Number,String],default:Yl(`arrowPadding`)},arrowOverflow:{type:Boolean,default:Yl(`arrowOverflow`)},flip:{type:Boolean,default:Yl(`flip`)},shift:{type:Boolean,default:Yl(`shift`)},shiftCrossAxis:{type:Boolean,default:Yl(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:Yl(`noAutoFocus`)},disposeTimeout:{type:Number,default:Yl(`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.randomId:this.ariaId},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(){return this[Xl]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.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:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.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}={}){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}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Yc({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(Gc({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Xc({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Kc({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Uc({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Zc({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await jl(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Gl&&this.instantMove&&Gl.instantMove&&Gl!==this.parentPopper){Gl.$_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&&(Gl=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let 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 Ul(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Tl(this.$_referenceNode),...Tl(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<Wl.length;n++)t=Wl[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}Wl.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of Il(this.theme))ql(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ul(),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,Hl(Wl,this),Wl.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of Il(this.theme)){let t=ql(e);Hl(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Gl===this&&(Gl=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let 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 Ul(),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 Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Bl,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Bl,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,Vl,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Vl,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,Ll?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),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(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_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(){let e=this.$_referenceNode.getBoundingClientRect();if(su>=e.left&&su<=e.right&&cu>=e.top&&cu<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=su-au,n=cu-ou,r=e.left+e.width/2-au+(e.top+e.height/2)-ou+e.width+e.height,i=au+t*r,a=ou+n*r;return lu(au,ou,i,a,e.left,e.top,e.left,e.bottom)||lu(au,ou,i,a,e.left,e.top,e.right,e.top)||lu(au,ou,i,a,e.right,e.top,e.right,e.bottom)||lu(au,ou,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(Rl){let e=Ll?{passive:!0,capture:!0}:!0;document.addEventListener(`touchstart`,e=>Ql(e,!0),e),document.addEventListener(`touchend`,e=>$l(e,!0),e)}else window.addEventListener(`mousedown`,e=>Ql(e,!1),!0),window.addEventListener(`click`,e=>$l(e,!1),!0);window.addEventListener(`resize`,ru)}function Ql(e,t){if(Nl.autoHideOnMousedown)eu(e,t);else for(let t=0;t<Wl.length;t++){let n=Wl[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function $l(e,t){Nl.autoHideOnMousedown||eu(e,t)}function eu(e,t){let n={};for(let r=Wl.length-1;r>=0;r--){let i=Wl[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&tu(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&tu(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function tu(e,t,n){return n.closeAllPopover||n.closePopover&&t||nu(e,n)&&!t}function nu(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function ru(){for(let e=0;e<Wl.length;e++)Wl[e].$_computePosition()}function iu(){for(let e=0;e<Wl.length;e++)Wl[e].hide()}var au=0,ou=0,su=0,cu=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{au=su,ou=cu,su=e.clientX,cu=e.clientY},Ll?{passive:!0}:void 0);function lu(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var uu={extends:Zl()},du=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function fu(e,t,n,r,i,a){return W(),G(`div`,{ref:`reference`,class:P([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[li(e.$slots,`default`,Ce(no(e.slotData)))],2)}var pu=du(uu,[[`render`,fu]]);function mu(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var hu;function gu(){gu.init||(gu.init=!0,hu=mu()!==-1)}var _u={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){gu(),Ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,hu&&this.$el.appendChild(e),e.data=`about:blank`,hu||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&&(!hu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},vu=Zn(`data-v-b329ee4c`);Yn(`data-v-b329ee4c`);var yu={class:`resize-observer`,tabindex:`-1`};Xn(),_u.render=vu((e,t,n,r,i,a)=>(W(),K(`div`,yu))),_u.__scopeId=`data-v-b329ee4c`,_u.__file=`src/components/ResizeObserver.vue`;var bu=(e=`theme`)=>({computed:{themeClass(){return Fl(this[e])}}}),xu=H({name:`VPopperContent`,components:{ResizeObserver:_u},mixins:[bu()],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}}}),Su=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],Cu={ref:`inner`,class:`v-popper__inner`},wu=[q(`div`,{class:`v-popper__arrow-outer`},null,-1),q(`div`,{class:`v-popper__arrow-inner`},null,-1)];function Tu(e,t,n,r,i,a){let o=ti(`ResizeObserver`);return W(),G(`div`,{id:e.popperId,ref:`popover`,class:P([`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:ve(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]||=ec(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[q(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),q(`div`,{class:`v-popper__wrapper`,style:ve(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[q(`div`,Cu,[e.mounted?(W(),G(U,{key:0},[q(`div`,null,[li(e.$slots,`default`)]),e.handleResize?(W(),K(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):X(``,!0)],64)):X(``,!0)],512),q(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:ve(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},wu,4)],4)],46,Su)}var Eu=du(xu,[[`render`,Tu]]),Du={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)}}},Ou=function(){};typeof window<`u`&&(Ou=window.Element);var ku=H({name:`VPopperWrapper`,components:{Popper:pu,PopperContent:Eu},mixins:[Du,bu(`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,Ou,Boolean],default:void 0},boundary:{type:[String,Ou],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 Au(e,t,n,r,i,a){let o=ti(`PopperContent`),s=ti(`Popper`);return W(),K(s,so({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:V(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:s,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[li(e.$slots,`default`,{shown:n,show:s,hide:c}),J(o,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:V(()=>[li(e.$slots,`popper`,{shown:n,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`])}var ju=du(ku,[[`render`,Au]]),Mu={...ju,name:`VDropdown`,vPopperTheme:`dropdown`},Nu={...ju,name:`VMenu`,vPopperTheme:`menu`},Pu={...ju,name:`VTooltip`,vPopperTheme:`tooltip`},Fu=H({name:`VTooltipDirective`,components:{Popper:Zl(),PopperContent:Eu},mixins:[Du],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>Pl(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Pl(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;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Iu=[`innerHTML`],Lu=[`textContent`];function Ru(e,t,n,r,i,a){let o=ti(`PopperContent`),s=ti(`Popper`);return W(),K(s,so({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:V(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:s,handleResize:c,onResize:l,classes:u,result:d})=>[J(o,{ref:`popperContent`,class:P({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:u,result:d,onHide:s,onResize:l},{default:V(()=>[e.html?(W(),G(`div`,{key:0,innerHTML:e.finalContent},null,8,Iu)):(W(),G(`div`,{key:1,textContent:F(e.finalContent)},null,8,Lu))]),_: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`])}var zu=du(Fu,[[`render`,Ru]]),Bu=`v-popper--has-tooltip`;function Vu(e,t){let n=e.placement;if(!n&&t)for(let e of zl)t[e]&&(n=e);return n||=Pl(e.theme||`tooltip`,`placement`),n}function Hu(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=Vu(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var Uu,Wu,Gu=0;function Ku(){if(Uu)return;Wu=z([]),Uu=ic({name:`VTooltipDirectiveApp`,setup(){return{directives:Wu}},render(){return this.directives.map(e=>Mo(zu,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),Uu.mount(e)}function qu(e,t,n){Ku();let r=z(Hu(e,t,n)),i=z(!1),a={id:Gu++,options:r,shown:i};return Wu.value.push(a),e.classList&&e.classList.add(Bu),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function Ju(e){if(e.$_popper){let t=Wu.value.indexOf(e.$_popper.item);t!==-1&&Wu.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Bu)}function Yu(e,{value:t,modifiers:n}){let r=Hu(e,t,n);if(!r.content||Pl(r.theme||`tooltip`,`disabled`))Ju(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=qu(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var Xu={beforeMount:Yu,updated:Yu,beforeUnmount(e){Ju(e)}};function Zu(e){e.addEventListener(`mousedown`,$u),e.addEventListener(`click`,$u),e.addEventListener(`touchstart`,ed,Ll?{passive:!0}:!1)}function Qu(e){e.removeEventListener(`mousedown`,$u),e.removeEventListener(`click`,$u),e.removeEventListener(`touchstart`,ed),e.removeEventListener(`touchend`,td),e.removeEventListener(`touchcancel`,nd)}function $u(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function ed(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,td),t.addEventListener(`touchcancel`,nd)}}function td(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function nd(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var rd={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&Zu(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?Zu(e):Qu(e))},beforeUnmount(e){Qu(e)}},id=Xu,ad=Pu;function od(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Ml(Nl,t),e.directive(`tooltip`,Xu),e.directive(`close-popper`,rd),e.component(`VTooltip`,Pu),e.component(`VDropdown`,Mu),e.component(`VMenu`,Nu))}var sd={version:`5.2.2`,install:od,options:Nl},cd=typeof document<`u`;function ld(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ud(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&ld(e.default)}var dd=Object.assign;function fd(e,t){let n={};for(let r in t){let i=t[r];n[r]=md(i)?i.map(e):e(i)}return n}var pd=()=>{},md=Array.isArray;function hd(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var gd=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}({}),_d=Symbol(``);gd.MATCHER_NOT_FOUND,gd.NAVIGATION_GUARD_REDIRECT,gd.NAVIGATION_ABORTED,gd.NAVIGATION_CANCELLED,gd.NAVIGATION_DUPLICATED;function vd(e,t){return dd(Error(),{type:e,[_d]:!0},t)}function yd(e,t){return e instanceof Error&&_d in e&&(t==null||!!(e.type&t))}var bd=Symbol(``),xd=Symbol(``),Sd=Symbol(``),Cd=Symbol(``),wd=Symbol(``),Td=/#/g,Ed=/&/g,Dd=/\//g,Od=/=/g,kd=/\?/g,Ad=/\+/g,jd=/%5B/g,Md=/%5D/g,Nd=/%5E/g,Pd=/%60/g,Fd=/%7B/g,Id=/%7C/g,Ld=/%7D/g,Rd=/%20/g;function zd(e){return e==null?``:encodeURI(``+e).replace(Id,`|`).replace(jd,`[`).replace(Md,`]`)}function Bd(e){return zd(e).replace(Fd,`{`).replace(Ld,`}`).replace(Nd,`^`)}function Vd(e){return zd(e).replace(Ad,`%2B`).replace(Rd,`+`).replace(Td,`%23`).replace(Ed,`%26`).replace(Pd,"`").replace(Fd,`{`).replace(Ld,`}`).replace(Nd,`^`)}function Hd(e){return Vd(e).replace(Od,`%3D`)}function Ud(e){return zd(e).replace(Td,`%23`).replace(kd,`%3F`)}function Wd(e){return Ud(e).replace(Dd,`%2F`)}function Gd(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Kd=/\/$/,qd=e=>e.replace(Kd,``);function Jd(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=nf(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Gd(o)}}function Yd(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Xd(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Zd(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Qd(t.matched[r],n.matched[i])&&$d(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Qd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $d(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ef(e[n],t[n]))return!1;return!0}function ef(e,t){return md(e)?tf(e,t):md(t)?tf(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function tf(e,t){return md(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function nf(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var rf={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},af=function(e){return e.pop=`pop`,e.push=`push`,e}({}),of=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function sf(e){if(!e)if(cd){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),qd(e)}var cf=/^[^#]+#/;function lf(e,t){return e.replace(cf,`#`)+t}function uf(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var df=()=>({left:window.scrollX,top:window.scrollY});function ff(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=uf(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function pf(e,t){return(history.state?history.state.position-t:-1)+e}var mf=new Map;function hf(e,t){mf.set(e,t)}function gf(e){let t=mf.get(e);return mf.delete(e),t}function _f(e){return typeof e==`string`||e&&typeof e==`object`}function vf(e){return typeof e==`string`||typeof e==`symbol`}function yf(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Ad,` `),i=r.indexOf(`=`),a=Gd(i<0?r:r.slice(0,i)),o=i<0?null:Gd(r.slice(i+1));if(a in t){let e=t[a];md(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function bf(e){let t=``;for(let n in e){let r=e[n];if(n=Hd(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(md(r)?r.map(e=>e&&Vd(e)):[r&&Vd(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function xf(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=md(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Sf(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Cf(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(vd(gd.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):_f(e)?c(vd(gd.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function wf(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(ld(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Cf(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ud(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Cf(c,n,r,o,e,i)()}))}}return a}function Tf(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Qd(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Qd(e,s))||i.push(s))}return[n,r,i]}var Ef=()=>location.protocol+`//`+location.host;function Df(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Xd(n,``)}return Xd(n,e)+r+i}function Of(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Df(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:af.pop,direction:u?u>0?of.forward:of.back:of.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(dd({},e.state,{scroll:df()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function kf(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?df():null}}function Af(e){let{history:t,location:n}=window,r={value:Df(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ef()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,dd({},t.state,kf(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=dd({},i.value,t.state,{forward:e,scroll:df()});a(o.current,o,!0),a(e,dd({},kf(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function jf(e){e=sf(e);let t=Af(e),n=Of(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=dd({location:``,base:e,go:r,createHref:lf.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function Mf(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),jf(e)}var Nf=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Pf=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}(Pf||{}),Ff={type:Nf.Static,value:``},If=/[a-zA-Z0-9_]/;function Lf(e){if(!e)return[[]];if(e===`/`)return[[Ff]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Pf.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Pf.Static?a.push({type:Nf.Static,value:l}):n===Pf.Param||n===Pf.ParamRegExp||n===Pf.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Nf.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Pf.ParamRegExp){r=n,n=Pf.EscapeNext;continue}switch(n){case Pf.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Pf.Param):f();break;case Pf.EscapeNext:f(),n=r;break;case Pf.Param:c===`(`?n=Pf.ParamRegExp:If.test(c)?f():(d(),n=Pf.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Pf.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Pf.ParamRegExpEnd:u+=c;break;case Pf.ParamRegExpEnd:d(),n=Pf.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Pf.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Rf=`[^/]+?`,zf={sensitive:!1,strict:!1,start:!0,end:!0},Bf=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}(Bf||{}),Vf=/[.+*?^${}()[\]/\\]/g;function Hf(e,t){let n=dd({},zf,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Bf.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Bf.Segment+(n.sensitive?Bf.BonusCaseSensitive:0);if(o.type===Nf.Static)r||(i+=`/`),i+=o.value.replace(Vf,`\\$&`),s+=Bf.Static;else if(o.type===Nf.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Rf;if(u!==Rf){s+=Bf.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Bf.Dynamic,c&&(s+=Bf.BonusOptional),n&&(s+=Bf.BonusRepeatable),u===`.*`&&(s+=Bf.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Bf.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Nf.Static)n+=e.value;else if(e.type===Nf.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(md(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=md(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Uf(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Bf.Static+Bf.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Bf.Static+Bf.Segment?1:-1:0}function Wf(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Uf(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Gf(r))return 1;if(Gf(i))return-1}return i.length-r.length}function Gf(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Kf={strict:!1,end:!0,sensitive:!1};function qf(e,t,n){let r=dd(Hf(Lf(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Jf(e,t){let n=[],r=new Map;t=hd(Kf,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Xf(e);s.aliasOf=r&&r.record;let l=hd(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Xf(dd({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=qf(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Qf(d)&&o(e.name)),np(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:pd}function o(e){if(vf(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=ep(e,n);n.splice(t,0,e),e.record.name&&!Qf(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw vd(gd.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=dd(Yf(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Yf(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw vd(gd.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=dd({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:$f(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Yf(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Xf(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Zf(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 Zf(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Qf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $f(e){return e.reduce((e,t)=>dd(e,t.meta),{})}function ep(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Wf(e,t[i])<0?r=i:n=i+1}let i=tp(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function tp(e){let t=e;for(;t=t.parent;)if(np(t)&&Wf(e,t)===0)return t}function np({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rp(e){let t=tr(Sd),n=tr(Cd),r=Z(()=>{let n=B(e.to);return t.resolve(n)}),i=Z(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Qd.bind(null,i));if(o>-1)return o;let s=cp(e[t-2]);return t>1&&cp(i)===s&&a[a.length-1].path!==s?a.findIndex(Qd.bind(null,e[t-2])):o}),a=Z(()=>i.value>-1&&sp(n.params,r.value.params)),o=Z(()=>i.value>-1&&i.value===n.matched.length-1&&$d(n.params,r.value.params));function s(n={}){if(op(n)){let n=t[B(e.replace)?`replace`:`push`](B(e.to)).catch(pd);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function ip(e){return e.length===1?e[0]:e}var ap=H({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:rp,setup(e,{slots:t}){let n=Gt(rp(e)),{options:r}=tr(Sd),i=Z(()=>({[lp(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[lp(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&ip(t.default(n));return e.custom?r:Mo(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function op(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function sp(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!md(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function cp(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var lp=(e,t,n)=>e??t??n,up=H({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=tr(wd),i=Z(()=>e.route||r.value),a=tr(xd,0),o=Z(()=>{let e=B(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Z(()=>i.value.matched[o.value]);er(xd,Z(()=>o.value+1)),er(bd,s),er(wd,i);let c=z();return sr(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Qd(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return dp(n.default,{Component:l,route:r});let u=o.props[a],d=Mo(l,dd({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return dp(n.default,{Component:d,route:r})||d}}});function dp(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var fp=up;function pp(e){let t=Jf(e.routes,e),n=e.parseQuery||yf,r=e.stringifyQuery||bf,i=e.history,a=Sf(),o=Sf(),s=Sf(),c=an(rf),l=rf;cd&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=fd.bind(null,e=>``+e),d=fd.bind(null,Wd),f=fd.bind(null,Gd);function p(e,n){let r,i;return vf(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=dd({},a||c.value),typeof e==`string`){let r=Jd(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return dd(r,o,{params:f(o.params),hash:Gd(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=dd({},e,{path:Jd(n,e.path,a.path).path});else{let t=dd({},e.params);for(let e in t)t[e]??delete t[e];o=dd({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Yd(r,dd({},e,{hash:Bd(l),path:s.path})),m=i.createHref(p);return dd({fullPath:p,hash:l,query:r===bf?xf(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?Jd(n,e,c.value.path):dd({},e)}function y(e,t){if(l!==e)return vd(gd.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(dd(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),dd({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(dd(v(u),{state:typeof u==`object`?dd({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Zd(r,i,n)&&(f=vd(gd.NAVIGATION_DUPLICATED,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>yd(e)?yd(e,gd.NAVIGATION_GUARD_REDIRECT)?e:oe(e):ie(e,d,i)).then(e=>{if(e){if(yd(e,gd.NAVIGATION_GUARD_REDIRECT))return C(dd({replace:s},v(e.to),{state:typeof e.to==`object`?dd({},a,e.to.state):a,force:o}),t||d)}else e=D(d,i,!0,s,a);return E(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=A.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Tf(e,t);n=wf(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Cf(r,e,t))});let c=w.bind(null,e,t);return n.push(c),M(n).then(()=>{n=[];for(let r of a.list())n.push(Cf(r,e,t));return n.push(c),M(n)}).then(()=>{n=wf(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Cf(r,e,t))});return n.push(c),M(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(md(r.beforeEnter))for(let i of r.beforeEnter)n.push(Cf(i,e,t));else n.push(Cf(r.beforeEnter,e,t));return n.push(c),M(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=wf(s,`beforeRouteEnter`,e,t,T),n.push(c),M(n))).then(()=>{n=[];for(let r of o.list())n.push(Cf(r,e,t));return n.push(c),M(n)}).catch(e=>yd(e,gd.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function E(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function D(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===rf,l=cd?history.state:{};n&&(r||s?i.replace(e.fullPath,dd({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let O;function k(){O||=i.listen((e,t,n)=>{if(!j.listening)return;let r=_(e),a=S(r,j.currentRoute.value);if(a){C(dd(a,{replace:!0,force:!0}),r).catch(pd);return}l=r;let o=c.value;cd&&hf(pf(o.fullPath,n.delta),df()),ee(r,o).catch(e=>yd(e,gd.NAVIGATION_ABORTED|gd.NAVIGATION_CANCELLED)?e:yd(e,gd.NAVIGATION_GUARD_REDIRECT)?(C(dd(v(e.to),{force:!0}),r).then(e=>{yd(e,gd.NAVIGATION_ABORTED|gd.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===af.pop&&i.go(-1,!1)}).catch(pd),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=D(r,o,!1),e&&(n.delta&&!yd(e,gd.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===af.pop&&yd(e,gd.NAVIGATION_ABORTED|gd.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),E(r,o,e)}).catch(pd)})}let te=Sf(),ne=Sf(),re;function ie(e,t,n){oe(e);let r=ne.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return re&&c.value!==rf?Promise.resolve():new Promise((e,t)=>{te.add([e,t])})}function oe(e){return re||(re=!e,k(),te.list().forEach(([t,n])=>e?n(e):t()),te.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!cd||!a)return Promise.resolve();let o=!r&&gf(pf(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Ln().then(()=>a(t,n,o)).then(e=>e&&ff(e)).catch(e=>ie(e,t,n))}let ce=e=>i.go(e),le,A=new Set,j={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ne.add,isReady:ae,install(e){e.component(`RouterLink`,ap),e.component(`RouterView`,fp),e.config.globalProperties.$router=j,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>B(c)}),cd&&!le&&c.value===rf&&(le=!0,b(i.location).catch(e=>{}));let t={};for(let e in rf)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Sd,j),e.provide(Cd,Kt(t)),e.provide(wd,c);let n=e.unmount;A.add(e),e.unmount=function(){A.delete(e),A.size<1&&(l=rf,O&&O(),O=null,c.value=rf,le=!1,re=!1),n()}}};function M(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return j}function mp(e,t){return Fe()?(Ie(e,t),!0):!1}var hp=new WeakMap,gp=(...e)=>{let t=e[0],n=mo()?.proxy??Fe();if(n==null&&!nr())throw Error(`injectLocal must be called in setup`);return n&&hp.has(n)&&t in hp.get(n)?hp.get(n)[t]:tr(...e)},_p=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var vp=Object.prototype.toString,yp=e=>vp.call(e)===`[object Object]`,bp=()=>+Date.now(),xp=()=>{};function Sp(...e){if(e.length!==1)return gn(...e);let t=e[0];return typeof t==`function`?qt(fn(()=>({get:t,set:xp}))):z(t)}function Cp(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var wp=e=>e();function Tp(e,t={}){let n,r,i=xp,a=e=>{clearTimeout(e),i(),i=xp},o;return s=>{let c=cn(e),l=cn(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function Ep(e=wp,t={}){let{initialState:n=`active`}=t,r=Sp(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:qt(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function Dp(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{setTimeout(t?()=>i(n):r,e)})}function Op(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function kp(e){return Array.isArray(e)?e:[e]}function Ap(e){return e||mo()}function jp(e,t=200,n={}){return Cp(Tp(t,n),e)}function Mp(e,t,n={}){let{eventFilter:r=wp,...i}=n;return sr(e,Cp(r,t),i)}function Np(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=Ep(r,{initialState:i});return{stop:Mp(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Pp(e,t=!0,n){Ap(n)?Wr(e,n):t?e():Ln(e)}function Fp(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:a,throwOnTimeout:o}={}){let s=null,c=[new Promise(a=>{s=sr(e,e=>{n(e)!==t&&(s?s():Ln(()=>s?.()),a(e))},{flush:r,deep:i,immediate:!0})})];return a!=null&&c.push(Dp(a,o).then(()=>cn(e)).finally(()=>s?.())),Promise.race(c)}function r(r,i){if(!rn(r))return n(e=>e===r,i);let{flush:a=`sync`,deep:o=!1,timeout:s,throwOnTimeout:c}=i??{},l=null,u=[new Promise(n=>{l=sr([e,r],([e,r])=>{t!==(e===r)&&(l?l():Ln(()=>l?.()),n(e))},{flush:a,deep:o,immediate:!0})})];return s!=null&&u.push(Dp(s,c).then(()=>cn(e)).finally(()=>(l?.(),cn(e)))),Promise.race(u)}function i(e){return n(e=>!!e,e)}function a(e){return r(null,e)}function o(e){return r(void 0,e)}function s(e){return n(Number.isNaN,e)}function c(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(cn(e))},t)}function l(e){return u(1,e)}function u(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}return Array.isArray(cn(e))?{toMatch:n,toContains:c,changed:l,changedTimes:u,get not(){return Fp(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:l,changedTimes:u,get not(){return Fp(e,!t)}}}function Ip(e){return Fp(e)}function Lp(e=!1,t={}){let{truthyValue:n=!0,falsyValue:r=!1}=t,i=rn(e),a=an(e);function o(e){if(arguments.length)return a.value=e,a.value;{let e=cn(n);return a.value=a.value===e?cn(r):e,a.value}}return i?o:[a,o]}function Rp(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Mp(e,t,{...a,eventFilter:Tp(r,{maxWait:i})})}var zp=Rp;function Bp(e,t,n={}){let{eventFilter:r=wp,...i}=n,a=Cp(r,t),o,s,c;if(i.flush===`sync`){let t=!1;s=()=>{},o=e=>{t=!0,e(),t=!1},c=sr(e,(...e)=>{t||a(...e)},i)}else{let t=[],n=0,r=0;s=()=>{n=r},t.push(sr(e,()=>{r++},{...i,flush:`sync`})),o=e=>{let t=r;e(),n+=r-t},t.push(sr(e,(...e)=>{let t=n>0&&n===r;n=0,r=0,!t&&a(...e)},i)),c=()=>{t.forEach(e=>e())}}return{stop:c,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}function Vp(e,t,n){return sr(e,t,{...n,immediate:!0})}function Hp(e,t,n){return sr(e,t,{...n,once:!0})}function Up(e,t,n){let r;r=rn(n)?{evaluating:n}:n||{};let{lazy:i=!1,flush:a=`sync`,evaluating:o=void 0,shallow:s=!0,onError:c=globalThis.reportError??xp}=r,l=an(!i),u=s?an(t):z(t),d=0;return ar(async t=>{if(!l.value)return;d++;let n=d,r=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{let i=await e(e=>{t(()=>{o&&(o.value=!1),r||e()})});n===d&&(u.value=i)}catch(e){c(e)}finally{o&&n===d&&(o.value=!1),r=!0}},{flush:a}),i?Z(()=>(l.value=!0,u.value)):u}var Wp=Up,Gp=_p?window:void 0;_p&&window.document,_p&&window.navigator,_p&&window.location;function Kp(e){let t=cn(e);return t?.$el??t}function qp(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=Z(()=>{let t=kp(cn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Vp(()=>[n.value?.map(e=>Kp(e))??[Gp].filter(e=>e!=null),kp(cn(n.value?e[1]:e[0])),kp(B(n.value?e[2]:e[1])),cn(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=yp(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function Jp(){let e=an(!1),t=mo();return t&&Wr(()=>{e.value=!0},t),e}function Yp(e){let t=Jp();return Z(()=>(t.value,!!e()))}function Xp(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Zp(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=Gp,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Xp(t);return qp(i,a,e=>{e.repeat&&cn(s)||c(e)&&n(e)},o)}function Qp(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=Gp,once:a=!1}=t,o=an(!1),s=Z(()=>{let e=cn(r);return e?1e3/e:null}),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){l=i.requestAnimationFrame(u);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,l=null;return}l=i.requestAnimationFrame(u)}function d(){!o.value&&i&&(o.value=!0,c=0,l=i.requestAnimationFrame(u))}function f(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&d(),mp(f),{isActive:qt(o),pause:f,resume:d}}var $p=Symbol(`vueuse-ssr-width`);function em(){let e=nr()?gp($p,null):null;return typeof e==`number`?e:void 0}function tm(e,t={}){let{window:n=Gp,ssrWidth:r=em()}=t,i=Yp(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=an(typeof r==`number`),o=an(),s=an(!1);return ar(()=>{if(a.value){a.value=!i.value,s.value=cn(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=Op(n[1])),i&&a&&(a=r<=Op(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(cn(e)),s.value=o.value.matches)}),qp(o,`change`,e=>{s.value=e.matches},{passive:!0}),Z(()=>s.value)}function nm(e){return JSON.parse(JSON.stringify(e))}var rm=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},im=`__vueuse_ssr_handlers__`,am=om();function om(){return im in rm||(rm[im]=rm[im]||{}),rm[im]}function sm(e,t){return am[e]||t}function cm(e){return tm(`(prefers-color-scheme: dark)`,e)}function lm(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`}var um={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()}},dm=`vueuse-storage`;function fm(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=Gp,eventFilter:d,onError:f=e=>{console.error(e)},initOnMounted:p}=r,m=(l?an:z)(typeof t==`function`?t():t),h=Z(()=>cn(e));if(!n)try{n=sm(`getDefaultStorage`,()=>Gp?.localStorage)()}catch(e){f(e)}if(!n)return m;let g=cn(t),_=lm(g),v=r.serializer??um[_],{pause:y,resume:b}=Np(m,e=>C(e),{flush:i,deep:a,eventFilter:d});sr(h,()=>T(),{flush:i});let x=!1;u&&o&&(n instanceof Storage?qp(u,`storage`,e=>{p&&!x||T(e)},{passive:!0}):qp(u,dm,e=>{p&&!x||ee(e)})),p?Pp(()=>{x=!0,T()}):T();function S(e,t){if(u){let r={key:h.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(dm,{detail:r}))}}function C(e){try{let t=n.getItem(h.value);if(e==null)S(t,null),n.removeItem(h.value);else{let r=v.write(e);t!==r&&(n.setItem(h.value,r),S(t,r))}}catch(e){f(e)}}function w(e){let t=e?e.newValue:n.getItem(h.value);if(t==null)return s&&g!=null&&n.setItem(h.value,v.write(g)),g;if(!e&&c){let e=v.read(t);return typeof c==`function`?c(e,g):_===`object`&&!Array.isArray(e)?{...g,...e}:e}else if(typeof t!=`string`)return t;else return v.read(t)}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){m.value=g;return}if(!(e&&e.key!==h.value)){y();try{let t=v.write(m.value);(e===void 0||e?.newValue!==t)&&(m.value=w(e))}catch(e){f(e)}finally{e?Ln(b):b()}}}}function ee(e){T(e.detail)}return m}var pm=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function mm(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=Gp,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=cm({window:i}),p=Z(()=>f.value?`dark`:`light`),m=c||(o==null?Sp(r):fm(o,r,a,{window:i,listenToStorageChanges:s})),h=Z(()=>m.value===`auto`?p.value:m.value),g=sm(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):Kp(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(pm)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){g(t,n,d[e]??e)}function v(t){e.onChanged?e.onChanged(t,_):_(t)}sr(h,v,{flush:`post`,immediate:!0}),Pp(()=>v(h.value));let y=Z({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(y,{store:m,system:p,state:h})}function hm(e={}){let{valueDark:t=`dark`,valueLight:n=``}=e,r=mm({...e,onChanged:(t,n)=>{var r;e.onChanged?(r=e.onChanged)==null||r.call(e,t===`dark`,n,t):n(t)},modes:{dark:t,light:n}}),i=Z(()=>r.system.value);return Z({get(){return r.value===`dark`},set(e){let t=e?`dark`:`light`;i.value===t?r.value=`auto`:r.value=t}})}function gm(e){return e}function _m(e,t){return e.value=t}function vm(e){return e?typeof e==`function`?e:nm:gm}function ym(e){return e?typeof e==`function`?e:nm:gm}function bm(e,t={}){let{clone:n=!1,dump:r=vm(n),parse:i=ym(n),setSource:a=_m}=t;function o(){return en({snapshot:r(e.value),timestamp:bp()})}let s=z(o()),c=z([]),l=z([]),u=t=>{a(e,i(t.snapshot)),s.value=t};return{source:e,undoStack:c,redoStack:l,last:s,history:Z(()=>[s.value,...c.value]),canUndo:Z(()=>c.value.length>0),canRedo:Z(()=>l.value.length>0),clear:()=>{c.value.splice(0,c.value.length),l.value.splice(0,l.value.length)},commit:()=>{c.value.unshift(s.value),s.value=o(),t.capacity&&c.value.length>t.capacity&&c.value.splice(t.capacity,1/0),l.value.length&&l.value.splice(0,l.value.length)},reset:()=>{u(s.value)},undo:()=>{let e=c.value.shift();e&&(l.value.unshift(s.value),u(e))},redo:()=>{let e=l.value.shift();e&&(c.value.unshift(s.value),u(e))}}}function xm(e,t={}){let{deep:n=!1,flush:r=`pre`,eventFilter:i,shouldCommit:a=()=>!0}=t,{eventFilter:o,pause:s,resume:c,isActive:l}=Ep(i),u=e.value,{ignoreUpdates:d,ignorePrevAsyncUpdates:f,stop:p}=Bp(e,v,{deep:n,flush:r,eventFilter:o});function m(e,t){f(),d(()=>{e.value=t,u=t})}let h=bm(e,{...t,clone:t.clone||n,setSource:m}),{clear:g,commit:_}=h;function v(){f(),a(u,e.value)&&(u=e.value,_())}function y(e){c(),e&&v()}function b(e){let t=!1,n=()=>t=!0;d(()=>{e(n)}),t||v()}function x(){p(),g()}return{...h,isTracking:l,pause:s,resume:y,commit:v,batch:b,dispose:x}}function Sm(e,t,n={}){let{window:r=Gp,...i}=n,a,o=Yp(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=sr(Z(()=>{let t=cn(e);return Array.isArray(t)?t.map(e=>Kp(e)):[Kp(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return mp(l),{isSupported:o,stop:l}}function Cm(e,t,n={}){let{window:r=Gp}=n;return fm(e,t,r?.localStorage,n)}function wm(e=`history`,t={}){let{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:i=!1,write:a=!0,writeMode:o=`replace`,window:s=Gp,stringify:c=e=>e.toString()}=t;if(!s)return Gt(n);let l=Gt({});function u(){if(e===`history`)return s.location.search||``;if(e===`hash`){let e=s.location.hash||``,t=e.indexOf(`?`);return t>0?e.slice(t):``}else return(s.location.hash||``).replace(/^#/,``)}function d(t){let n=c(t);if(e===`history`)return`${n?`?${n}`:``}${s.location.hash||``}`;if(e===`hash-params`)return`${s.location.search||``}${n?`#${n}`:``}`;let r=s.location.hash||`#`,i=r.indexOf(`?`);return i>0?`${s.location.search||``}${r.slice(0,i)}${n?`?${n}`:``}`:`${s.location.search||``}${r}${n?`?${n}`:``}`}function f(){return new URLSearchParams(u())}function p(e){let t=new Set(Object.keys(l));for(let n of e.keys()){let r=e.getAll(n);l[n]=r.length>1?r:e.get(n)||``,t.delete(n)}Array.from(t).forEach(e=>delete l[e])}let{pause:m,resume:h}=Np(l,()=>{let e=new URLSearchParams(``);Object.keys(l).forEach(t=>{let n=l[t];Array.isArray(n)?n.forEach(n=>e.append(t,n)):r&&n==null||i&&!n?e.delete(t):e.set(t,n)}),g(e,!1)},{deep:!0});function g(e,t,n=!0){m(),t&&p(e),o===`replace`?s.history.replaceState(s.history.state,s.document.title,s.location.pathname+d(e)):n&&s.history.pushState(s.history.state,s.document.title,s.location.pathname+d(e)),Ln(()=>h())}function _(){a&&g(f(),!0,!1)}let v={passive:!0};qp(s,`popstate`,_,v),e!==`history`&&qp(s,`hashchange`,_,v);let y=f();return y.keys().next().value?p(y):Object.assign(l,n),l}function Tm(e={}){let{window:t=Gp,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=an(n),c=an(r),l=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};l(),Pp(l);let u={passive:!0};return qp(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&qp(t.visualViewport,`resize`,l,u),i&&sr(tm(`(orientation: portrait)`),()=>l()),{width:s,height:c}}var Em={__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}){let n=t,r=e,i=gi(),a=z([]),o=Z(()=>a.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),s=Z(()=>a.value.length),c=z(null),l=z(!1),u=z({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),d=z({splitter:null,timeoutId:null}),f=Z(()=>({[`splitpanes splitpanes--${r.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":u.value.dragging})),p=()=>{document.addEventListener(`mousemove`,g,{passive:!1}),document.addEventListener(`mouseup`,_),`ontouchstart`in window&&(document.addEventListener(`touchmove`,g,{passive:!1}),document.addEventListener(`touchend`,_))},m=()=>{document.removeEventListener(`mousemove`,g,{passive:!1}),document.removeEventListener(`mouseup`,_),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,g,{passive:!1}),document.removeEventListener(`touchend`,_))},h=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:i}=n.getBoundingClientRect(),{clientX:a,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;u.value.cursorOffset=r.horizontal?o-i:a-t}p(),u.value.mouseDown=!0,u.value.activeSplitter=t},g=e=>{u.value.mouseDown&&(e.preventDefault(),u.value.dragging=!0,requestAnimationFrame(()=>{C(x(e)),j(`resize`,{event:e},!0)}))},_=e=>{u.value.dragging&&(window.getSelection().removeAllRanges(),j(`resized`,{event:e},!0)),u.value.mouseDown=!1,u.value.activeSplitter=null,setTimeout(()=>{u.value.dragging=!1,m()},100)},v=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),d.value.splitter===t?(clearTimeout(d.value.timeoutId),d.value.timeoutId=null,y(e,t),d.value.splitter=null):(d.value.splitter=t,d.value.timeoutId=setTimeout(()=>d.value.splitter=null,500))),u.value.dragging||j(`splitter-click`,{event:e,index:t},!0)},y=(e,t)=>{if(j(`splitter-dblclick`,{event:e,index:t},!0),r.maximizePanes){let n=0;a.value=a.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),a.value[t].size-=n,j(`pane-maximize`,{event:e,index:t,pane:a.value[t]}),j(`resized`,{event:e,index:t},!0)}},b=(e,t)=>{j(`pane-click`,{event:e,index:o.value[t].index,pane:o.value[t]})},x=e=>{let t=c.value.getBoundingClientRect(),{clientX:n,clientY:i}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(r.horizontal?0:u.value.cursorOffset)-t.left,y:i-(r.horizontal?u.value.cursorOffset:0)-t.top}},S=e=>{e=e[r.horizontal?`y`:`x`];let t=c.value[r.horizontal?`clientHeight`:`clientWidth`];return r.rtl&&!r.horizontal&&(e=t-e),e*100/t},C=e=>{let t=u.value.activeSplitter,n={prevPanesSize:T(t),nextPanesSize:ee(t),prevReachedMinPanes:0,nextReachedMinPanes:0},i=0+(r.pushOtherPanes?0:n.prevPanesSize),o=100-(r.pushOtherPanes?0:n.nextPanesSize),s=Math.max(Math.min(S(e),o),i),c=[t,t+1],l=a.value[c[0]]||null,d=a.value[c[1]]||null,f=l.max<100&&s>=l.max+n.prevPanesSize,p=d.max<100&&s<=100-(d.max+ee(t+1));if(f||p){f?(l.size=l.max,d.size=Math.max(100-l.max-n.prevPanesSize-n.nextPanesSize,0)):(l.size=Math.max(100-d.max-n.prevPanesSize-ee(t+1),0),d.size=d.max);return}if(r.pushOtherPanes){let e=w(n,s);if(!e)return;({sums:n,panesToResize:c}=e),l=a.value[c[0]]||null,d=a.value[c[1]]||null}l!==null&&(l.size=Math.min(Math.max(s-n.prevPanesSize-n.prevReachedMinPanes,l.min),l.max)),d!==null&&(d.size=Math.min(Math.max(100-s-n.nextPanesSize-n.nextReachedMinPanes,d.min),d.max))},w=(e,t)=>{let n=u.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+a.value[r[0]].min&&(r[0]=E(n).index,e.prevReachedMinPanes=0,r[0]<n&&a.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=T(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,a.value[0].size=a.value[0].min,a.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),a.value[r[1]].size=100-e.prevReachedMinPanes-a.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-a.value[r[1]].min&&(r[1]=D(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&a.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=ee(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,a.value.forEach((t,r)=>{r<s.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),a.value[r[0]].size=100-e.prevPanesSize-ee(r[0]-1),null):{sums:e,panesToResize:r}},T=e=>a.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),ee=e=>a.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),E=e=>[...a.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},D=e=>a.value.find(t=>t.index>e+1&&t.size>t.min)||{},O=()=>{let e=Array.from(c.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},k=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>h(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>h(e,r)),i.onclick=e=>v(e,r+1)),i.ondblclick=e=>y(e,r+1),t.parentNode.insertBefore(i,t)},te=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},ne=()=>{let e=Array.from(c.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&te(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&r.firstSplitter?k(t,n,!0):t&&k(t,n),t++)},re=({uid:e,...t})=>{let n=o.value[e];for(let[e,r]of Object.entries(t))n[e]=r},ie=e=>{let t=-1;Array.from(c.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),a.value.splice(t,0,{...e,index:t}),a.value.forEach((e,t)=>e.index=t),l.value&&Ln(()=>{ne(),oe({addedPane:a.value[t]}),j(`pane-add`,{pane:a.value[t]})})},ae=e=>{let t=a.value.findIndex(t=>t.id===e);a.value[t].el=null;let n=a.value.splice(t,1)[0];a.value.forEach((e,t)=>e.index=t),Ln(()=>{ne(),j(`pane-remove`,{pane:n}),oe({removedPane:{...n}})})},oe=(e={})=>{!e.addedPane&&!e.removedPane?ce():a.value.some(e=>e.givenSize!==null||e.min||e.max<100)?le(e):se(),l.value&&j(`resized`)},se=()=>{let e=100/s.value,t=0,n=[],r=[];for(let i of a.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&A(t,n,r)},ce=()=>{let e=100,t=[],n=[],r=0;for(let i of a.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of a.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(s.value-r),t.max),t.min)),i-=t.size;i>.1&&A(i,t,n)}},le=({addedPane:e,removedPane:t}={})=>{let n=100/s.value,r=0,i=[],o=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(s.value-1));for(let e of a.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&o.push(e.id);if(!(Math.abs(r)<.1)){for(let t of a.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&o.push(t.id);r>.1&&A(r,i,o)}},A=(e,t,n)=>{let r;r=e>0?e/(s.value-t.length):e/(s.value-n.length),a.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&Ln(()=>{l.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},j=(e,t=void 0,i=!1)=>{let o=t?.index??u.value.activeSplitter??null;n(e,{...t,...o!==null&&{index:o},...i&&o!==null&&{prevPane:a.value[o-+!!r.firstSplitter],nextPane:a.value[o+ +!r.firstSplitter]},panes:a.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};sr(()=>r.firstSplitter,()=>ne()),Wr(()=>{O(),ne(),oe(),j(`ready`),l.value=!0}),qr(()=>l.value=!1);let M=()=>Mo(`div`,{ref:c,class:f.value},i.default?.call(i));return er(`panes`,a),er(`indexedPanes`,o),er(`horizontal`,Z(()=>r.horizontal)),er(`requestUpdate`,re),er(`onPaneAdd`,ie),er(`onPaneRemove`,ae),er(`onPaneClick`,b),(e,t)=>(W(),K(ri(M)))}},Dm={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){let t=e,n=tr(`requestUpdate`),r=tr(`onPaneAdd`),i=tr(`horizontal`),a=tr(`onPaneRemove`),o=tr(`onPaneClick`),s=mo()?.uid,c=tr(`indexedPanes`),l=Z(()=>c.value[s]),u=z(null),d=Z(()=>{let e=isNaN(t.size)||t.size===void 0?0:parseFloat(t.size);return Math.max(Math.min(e,p.value),f.value)}),f=Z(()=>{let e=parseFloat(t.minSize);return isNaN(e)?0:e}),p=Z(()=>{let e=parseFloat(t.maxSize);return isNaN(e)?100:e}),m=Z(()=>`${i.value?`height`:`width`}: ${l.value?.size}%`);return sr(()=>d.value,e=>n({uid:s,size:e})),sr(()=>f.value,e=>n({uid:s,min:e})),sr(()=>p.value,e=>n({uid:s,max:e})),Wr(()=>{r({id:s,el:u.value,min:f.value,max:p.value,givenSize:t.size===void 0?null:d.value,size:d.value})}),qr(()=>a(s)),(e,t)=>(W(),G(`div`,{ref_key:`paneEl`,ref:u,class:`splitpanes__pane`,onClick:t[0]||=t=>B(o)(t,e._.uid),style:ve(m.value)},[li(e.$slots,`default`)],4))}},Om=z([414,896]);sr([Om],()=>{document.body.style.setProperty(`--viewport-width`,`${Om.value[0]}px`),document.body.style.setProperty(`--viewport-height`,`${Om.value[1]}px`)},{immediate:!0,flush:`sync`});var km={reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function Am(e){return String(e)}Am.open=``,Am.close=``;function jm(){let e=typeof process<`u`?process:void 0,t=e?.env||{},n=t.FORCE_TTY!==`false`,r=e?.argv||[];return!(`NO_COLOR`in t||r.includes(`--no-color`))&&(`FORCE_COLOR`in t||r.includes(`--color`)||e?.platform===`win32`||n&&t.TERM!==`dumb`||`CI`in t)||typeof window<`u`&&!!window.chrome}function Mm({force:e}={}){let t=e||jm(),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let e in km){let n=km[e];i[e]=t?r(a(n[0]),a(n[1]),n[2]):Am}return i}var Nm=Mm();function Pm(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!==`default`&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function Fm(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function Im(e,t,n,r,i,a,o=`: `,s){let c=``,l=0,u=e.next();if(!u.done){c+=t.spacingOuter;let d=n+t.indent;for(;!u.done;){if(c+=d,l++===t.maxWidth){c+=typeof s==`number`?`…(${s-l+1})`:`…`;break}let n=a(u.value[0],t,d,r,i),f=a(u.value[1],t,d,r,i);c+=n+o+f,u=e.next(),u.done?t.min||(c+=`,`):c+=`,${t.spacingInner}`}c+=t.spacingOuter+n}return c}function Lm(e,t,n,r,i,a,o){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=typeof o==`number`?`…(${o-c+1})`:`…`;break}s+=a(l.value,t,u,r,i),l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function Rm(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…(${c-n})`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function zm(e,t,n,r,i,a,o=t.compareKeys){let s=``,c=Fm(e,o);if(c.length>0){s+=t.spacingOuter;let o=n+t.indent;for(let n=0;n<c.length;n++){if(s+=o,n===t.maxWidth){s+=`…(${c.length-n})`;break}let l=c[n],u=!t.quoteKeys&&Vm(l)?l:a(l,t,o,r,i),d=a(e[l],t,o,r,i);s+=`${u}: ${d}`,n<c.length-1?s+=`,${t.spacingInner}`:t.min||(s+=`,`)}s+=t.spacingOuter+n}return s}var Bm=/^[a-z_]\w*$/i;function Vm(e){return typeof e==`string`&&e!==`__proto__`&&Bm.test(e)}var Hm=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,Um=` `,Wm={serialize:(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Um}[${Rm(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Um}{${zm(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+Um+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},test:e=>e&&e.$$typeof===Hm},Gm=` `,Km=new Set([`DOMStringMap`,`NamedNodeMap`]),qm=/^(?:HTML\w*Collection|NodeList)$/;function Jm(e){return Km.has(e)||qm.test(e)}var Ym=e=>e&&e.constructor&&!!e.constructor.name&&Jm(e.constructor.name);function Xm(e){return e.constructor.name===`NamedNodeMap`}var Zm={serialize:(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+Gm)+(Km.has(o)?`{${zm(Xm(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${Rm([...e],t,n,r,i,a)}]`)},test:Ym};function Qm(e){return e.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function $m(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e];if(typeof l==`string`&&l[0]===`_`&&l.startsWith(`__vitest_`)&&l.match(/__vitest_\d+__/))return``;let u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
2
+ `)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function eh(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?nh(e,t):a(e,t,n,r,i))).join(``)}function th(e,t,n,r,i,a){return t.printShadowRoot===!1?``:[`${t.spacingOuter+n}#shadow-root`,eh(e,t,n+t.indent,r,i,a)].join(``)}function nh(e,t){let n=t.colors.content;return n.open+Qm(e)+n.close}function rh(e,t){let n=t.colors.comment;return`${n.open}<!--${Qm(e)}-->${n.close}`}function ih(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function ah(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}var oh=1,sh=3,ch=8,lh=11,uh=/^(?:(?:HTML|SVG)\w*)?Element$/;function dh(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function fh(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||dh(e);return n===oh&&(uh.test(t)||i)||n===sh&&t===`Text`||n===ch&&t===`Comment`||n===lh&&t===`DocumentFragment`}var ph=e=>e?.constructor?.name&&fh(e);function mh(e){return e.nodeType===sh}function hh(e){return e.nodeType===ch}function gh(e){return e.nodeType===lh}function _h(e,t){let n=e.filter(e=>e.nodeType===sh?(e.data||``).trim().length>0:!0);return t&&(n=n.filter(t)),n}function vh(e,t,n,r,i,a,o){if(mh(e))return nh(e.data,t);if(hh(e))return rh(e.data,t);let s=gh(e)?`DocumentFragment`:e.tagName.toLowerCase();if(++r>t.maxDepth)return ah(s,t);let c=Array.prototype.slice.call(e.childNodes||e.children),l=gh(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),u=o?_h(c,o):c,d=o?_h(l,o):l;return ih(s,$m(gh(e)?[]:Array.from(e.attributes,e=>e.name).sort(),gh(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),(d.length>0?th(d,t,n+t.indent,r,i,a):``)+eh(u,t,n+t.indent,r,i,a),t,n)}var yh=(e,t,n,r,i,a)=>vh(e,t,n,r,i,a);function bh(e){return{test:ph,serialize:(t,n,r,i,a,o)=>vh(t,n,r,i,a,o,e)}}var xh={serialize:yh,test:ph},Sh=`@@__IMMUTABLE_ITERABLE__@@`,Ch=`@@__IMMUTABLE_LIST__@@`,wh=`@@__IMMUTABLE_KEYED__@@`,Th=`@@__IMMUTABLE_MAP__@@`,Eh=`@@__IMMUTABLE_ORDERED__@@`,Dh=`@@__IMMUTABLE_RECORD__@@`,Oh=`@@__IMMUTABLE_SEQ__@@`,kh=`@@__IMMUTABLE_SET__@@`,Ah=`@@__IMMUTABLE_STACK__@@`,jh=e=>`Immutable.${e}`,Mh=e=>`[${e}]`,Nh=` `,Ph=`…`;function Fh(e,t,n,r,i,a,o){return++r>t.maxDepth?Mh(jh(o)):`${jh(o)+Nh}{${Im(e.entries(),t,n,r,i,a)}}`}function Ih(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function Lh(e,t,n,r,i,a){let o=jh(e._name||`Record`);return++r>t.maxDepth?Mh(o):`${o+Nh}{${Im(Ih(e),t,n,r,i,a)}}`}function Rh(e,t,n,r,i,a){let o=jh(`Seq`);return++r>t.maxDepth?Mh(o):e[wh]?`${o+Nh}{${e._iter||e._object?Im(e.entries(),t,n,r,i,a):Ph}}`:`${o+Nh}[${e._iter||e._array||e._collection||e._iterable?Lm(e.values(),t,n,r,i,a):Ph}]`}function zh(e,t,n,r,i,a,o){return++r>t.maxDepth?Mh(jh(o)):`${jh(o)+Nh}[${Lm(e.values(),t,n,r,i,a)}]`}var Bh={serialize:(e,t,n,r,i,a)=>e[Th]?Fh(e,t,n,r,i,a,e[Eh]?`OrderedMap`:`Map`):e[Ch]?zh(e,t,n,r,i,a,`List`):e[kh]?zh(e,t,n,r,i,a,e[Eh]?`OrderedSet`:`Set`):e[Ah]?zh(e,t,n,r,i,a,`Stack`):e[Oh]?Rh(e,t,n,r,i,a):Lh(e,t,n,r,i,a),test:e=>e&&(e[Sh]===!0||e[Dh]===!0)};function Vh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Hh={exports:{}},Uh={},Wh;function Gh(){if(Wh)return Uh;Wh=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return Uh.ContextConsumer=a,Uh.ContextProvider=o,Uh.Element=e,Uh.ForwardRef=s,Uh.Fragment=n,Uh.Lazy=d,Uh.Memo=u,Uh.Portal=t,Uh.Profiler=i,Uh.StrictMode=r,Uh.Suspense=c,Uh.SuspenseList=l,Uh.isContextConsumer=function(e){return m(e)===a},Uh.isContextProvider=function(e){return m(e)===o},Uh.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},Uh.isForwardRef=function(e){return m(e)===s},Uh.isFragment=function(e){return m(e)===n},Uh.isLazy=function(e){return m(e)===d},Uh.isMemo=function(e){return m(e)===u},Uh.isPortal=function(e){return m(e)===t},Uh.isProfiler=function(e){return m(e)===i},Uh.isStrictMode=function(e){return m(e)===r},Uh.isSuspense=function(e){return m(e)===c},Uh.isSuspenseList=function(e){return m(e)===l},Uh.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0))},Uh.typeOf=m,Uh}var Kh;function qh(){return Kh?Hh.exports:(Kh=1,Hh.exports=Gh(),Hh.exports)}var Jh=qh(),Yh=Pm({__proto__:null,default:Vh(Jh)},[Jh]),Xh={exports:{}},Zh={},Qh;function $h(){if(Qh)return Zh;Qh=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return Zh.ContextConsumer=o,Zh.ContextProvider=a,Zh.Element=e,Zh.ForwardRef=c,Zh.Fragment=n,Zh.Lazy=f,Zh.Memo=d,Zh.Portal=t,Zh.Profiler=i,Zh.StrictMode=r,Zh.Suspense=l,Zh.SuspenseList=u,Zh.isAsyncMode=function(){return!1},Zh.isConcurrentMode=function(){return!1},Zh.isContextConsumer=function(e){return h(e)===o},Zh.isContextProvider=function(e){return h(e)===a},Zh.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},Zh.isForwardRef=function(e){return h(e)===c},Zh.isFragment=function(e){return h(e)===n},Zh.isLazy=function(e){return h(e)===f},Zh.isMemo=function(e){return h(e)===d},Zh.isPortal=function(e){return h(e)===t},Zh.isProfiler=function(e){return h(e)===i},Zh.isStrictMode=function(e){return h(e)===r},Zh.isSuspense=function(e){return h(e)===l},Zh.isSuspenseList=function(e){return h(e)===u},Zh.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0))},Zh.typeOf=h,Zh}var eg;function tg(){return eg?Xh.exports:(eg=1,Xh.exports=$h(),Xh.exports)}var ng=tg(),rg=Pm({__proto__:null,default:Vh(ng)},[ng]),ig=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>rg[e](t)||Yh[e](t)]));function ag(e,t=[]){if(Array.isArray(e))for(let n of e)ag(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function og(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(ig.isFragment(e))return`React.Fragment`;if(ig.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(ig.isContextProvider(e))return`Context.Provider`;if(ig.isContextConsumer(e))return`Context.Consumer`;if(ig.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(ig.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function sg(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}var cg={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?ah(og(e),t):ih(og(e),$m(sg(e),e.props,t,n+t.indent,r,i,a),eh(ag(e.props.children),t,n+t.indent,r,i,a),t,n),test:e=>e!=null&&ig.isElement(e)},lg=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487;function ug(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}var dg={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?ah(e.type,t):ih(e.type,e.props?$m(ug(e),e.props,t,n+t.indent,r,i,a):``,e.children?eh(e.children,t,n+t.indent,r,i,a):``,t,n),test:e=>e&&e.$$typeof===lg},fg=Object.prototype.toString,pg=Date.prototype.toISOString,mg=Error.prototype.toString,hg=RegExp.prototype.toString;function gg(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function _g(e){return typeof window<`u`&&e===window}var vg=/^Symbol\((.*)\)(.*)$/,yg=/\n/g,bg=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function xg(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function Sg(e){return Object.is(e,-0)?`-0`:String(e)}function Cg(e){return String(`${e}n`)}function wg(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function Tg(e){return String(e).replace(vg,`Symbol($1)`)}function Eg(e){return`[${mg.call(e)}]`}function Dg(e,t,n,r,i){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let a=typeof e;if(a===`number`)return Sg(e);if(a===`bigint`)return Cg(e);if(a===`string`){let t=i?`'`:`"`;if(r){let n=i?/['\\]/g:/["\\]/g;return`${t}${e.replaceAll(n,`\\$&`)}${t}`}return`${t}${e}${t}`}if(a===`function`)return wg(e,t);if(a===`symbol`)return Tg(e);let o=fg.call(e);return o===`[object WeakMap]`?`WeakMap {}`:o===`[object WeakSet]`?`WeakSet {}`:o===`[object Function]`||o===`[object GeneratorFunction]`?wg(e,t):o===`[object Symbol]`?Tg(e):o===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:pg.call(e):o===`[object Error]`?Eg(e):o===`[object RegExp]`?n?hg.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):hg.call(e):e instanceof Error?Eg(e):null}function Og(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return Ng(e.toJSON(),t,n,r,i,!0);let c=fg.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${Rm(e,t,n,r,i,Ng)}]`:xg(c)?o?`[${e.constructor.name}]`:`${!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${Rm(e,t,n,r,i,Ng)}]`:c===`[object Map]`?o?`[Map]`:`Map {${Im(e.entries(),t,n,r,i,Ng,` => `,e.size)}}`:c===`[object Set]`?o?`[Set]`:`Set {${Lm(e.values(),t,n,r,i,Ng,e.size)}}`:o||_g(e)?`[${gg(e)}]`:`${!t.printBasicPrototype&&gg(e)===`Object`?``:`${gg(e)} `}{${zm(e,t,n,r,i,Ng)}}`}var kg={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...c===void 0?{}:{cause:c},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?gg(e):e.name;return o?`[${d}]`:`${d} {${zm(u,t,n,r,i,a,null)}}`}};function Ag(e){return e.serialize!=null}function jg(e,t,n,r,i,a){let o;try{o=Ag(e)?e.serialize(t,n,r,i,a,Ng):e.print(t,e=>Ng(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(yg,`\n${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new bg(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function Mg(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new bg(e.message,e.stack)}return null}function Ng(e,t,n,r,i,a){let o,s=Mg(t.plugins,e);if(s!==null)o=jg(s,e,t,n,r,i);else{let s=Dg(e,t.printFunctionName,t.escapeRegex,t.escapeString,t.singleQuote);o=s===null?Og(e,t,n,r,i,a):s}return t._outputLengthPerDepth[r]??=0,t._outputLengthPerDepth[r]+=o.length,t._outputLengthPerDepth[r]>t.maxOutputLength&&(t.maxDepth=0),o}var Pg={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},Fg=Object.keys(Pg),Ig={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxOutputLength:1e6,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:Pg,singleQuote:!1,quoteKeys:!0,spacingInner:`
3
+ `,spacingOuter:`
4
+ `};function Lg(e){for(let t of Object.keys(e))if(!Object.hasOwn(Ig,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function Rg(){return Fg.reduce((e,t)=>{let n=Pg[t],r=n&&Nm[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function zg(){return Fg.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function Bg(e){return e?.printFunctionName??Ig.printFunctionName}function Vg(e){return e?.escapeRegex??Ig.escapeRegex}function Hg(e){return e?.escapeString??Ig.escapeString}function Ug(e){return{callToJSON:e?.callToJSON??Ig.callToJSON,colors:e?.highlight?Rg():zg(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:Ig.compareKeys,escapeRegex:Vg(e),escapeString:Hg(e),indent:e?.min?``:Wg(e?.indent??Ig.indent),maxDepth:e?.maxDepth??Ig.maxDepth,maxWidth:e?.maxWidth??Ig.maxWidth,min:e?.min??Ig.min,plugins:e?.plugins??Ig.plugins,printBasicPrototype:e?.printBasicPrototype??!e?.min,printFunctionName:Bg(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.spacingInner??(e?.min?` `:`
5
+ `),spacingOuter:e?.spacingOuter??(e?.min?``:`
6
+ `),singleQuote:e?.singleQuote??Ig.singleQuote,quoteKeys:e?.quoteKeys??Ig.quoteKeys,maxOutputLength:e?.maxOutputLength??Ig.maxOutputLength,_outputLengthPerDepth:[]}}function Wg(e){return Array.from({length:e+1}).join(` `)}function Gg(e,t){t&&Lg(t);let n=Ug(t),r=Mg(n.plugins,e);if(r!==null)return jg(r,e,n,``,0,[]);let i=Dg(e,n.printFunctionName,n.escapeRegex,n.escapeString,n.singleQuote);return i===null?Og(e,n,``,0,[]):i}var{AsymmetricMatcher:Kg,DOMCollection:qg,DOMElement:Jg,Immutable:Yg,ReactElement:Xg,ReactTestComponent:Zg}={AsymmetricMatcher:Wm,DOMCollection:Zm,DOMElement:xh,Immutable:Bh,ReactElement:cg,ReactTestComponent:dg,Error:kg},Qg=[Zg,Xg,Jg,qg,Yg,Kg];function $g(e,t=10,{maxLength:n,filterNode:r,...i}={}){let a=n??1e4,o,s=typeof r==`string`?e_(r):r,c=s?[Zg,Xg,bh(s),qg,Yg,Kg]:Qg;try{o=Gg(e,{maxDepth:t,escapeString:!1,plugins:c,...i})}catch{o=Gg(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:c,...i})}return o.length>=a&&t>1?$g(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,filterNode:r,...i}):o}function e_(e){return t=>{if(t.nodeType===8)return!1;if(t.nodeType===1&&t.matches)try{return!t.matches(e)}catch{return!0}return!0}}var t_=/%[sdjifoOc%]/g;function n_(e,t={}){let n=e=>r_(e,t);if(typeof e[0]!=`string`){let t=[];for(let r=0;r<e.length;r++)t.push(n(e[r]));return t.join(` `)}let r=e.length,i=1,a=e[0],o=String(a).replace(t_,t=>{if(t===`%%`)return`%`;if(i>=r)return t;switch(t){case`%s`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():n(t):String(t)}case`%d`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`symbol`?`NaN`:Number(t).toString()}case`%i`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[i++])).toString();case`%o`:case`%O`:return n(e[i++]);case`%c`:return i++,``;case`%j`:try{return JSON.stringify(e[i++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return t}});for(let t=e[i];i<r;t=e[++i])typeof t!=`object`||!t?o+=` ${typeof t==`symbol`?t.toString():t}`:o+=` ${n(t)}`;return o}function r_(e,t){let{truncate:n,multiline:r,...i}=t??{},a={singleQuote:!0,quoteKeys:!1,min:!0,spacingInner:` `,spacingOuter:` `,printBasicPrototype:!1,compareKeys:null,...r?{min:!1,spacingInner:void 0,spacingOuter:void 0}:{}},o=n??0,s=$g(e,void 0,{...a,...i,maxLength:o||void 0});if(o===0||s.length<=o)return s;let c=Object.prototype.toString.call(e);if(typeof e==`string`){let e=o-1;return e>0&&s_(s[e-1])&&--e,`'${s.slice(1,e)}…'`}return c===`[object Array]`||c===`[object Object]`||c===`[object Set]`||c===`[object Map]`?a_(e,o,{...a,...i,maxDepth:1}):$g(e,void 0,{...a,...i,maxDepth:0})}function i_(e,t){if(e.length<=t)return e;let n=t-1;return s_(e[n-1])&&--n,`${e.slice(0,n)}…`}function a_(e,t,n){function r(t){return $g(e,void 0,{...n,maxWidth:t})}return r(o_(0,t,e=>r(e).length<=t))}function o_(e,t,n){for(;e+1<t;){let r=Math.floor((e+t)/2);n(r)?e=r:t=r}return e}function s_(e){return e>=`\ud800`&&e<=`\udbff`}function c_(e){return e!=null}function l_(e,t,n){let r=typeof e;if(!n.includes(r))throw TypeError(`${t} value must be ${n.join(` or `)}, received "${r}"`)}function u_(e){let t=[],n=`none`;for(let r=0;r<e.length;++r)n===`singleline`?e[r]===`
7
+ `&&(n=`none`):n===`multiline`?e[r-1]===`*`&&e[r]===`/`&&(n=`none`):n===`none`&&(e[r]===`/`&&e[r+1]===`/`?n=`singleline`:e[r]===`/`&&e[r+1]===`*`?(n=`multiline`,r+=2):t.push(e[r]));return t.join(``)}function d_(e){return e??=[],Array.isArray(e)?e:[e]}function f_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function p_(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,`.$1`).split(`.`),i=e;for(let e of r)if(i=new Object(i)[e],i===void 0)return n;return i}function m_(){let e=null,t=null,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function h_(e){if(!Number.isNaN(e))return!1;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31==1}function g_(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function __(e){return Array.from(new Set(e))}var v_=Symbol(`vitest:SAFE_TIMERS`);function y_(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:a,queueMicrotask:o}=globalThis[v_]||globalThis,{nextTick:s}=globalThis[v_]||globalThis.process||{};return{nextTick:s,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:a,queueMicrotask:o}}var b_=/^[A-Za-z]:\//;function x_(e=``){return e&&e.replace(/\\/g,`/`).replace(b_,e=>e.toUpperCase())}var S_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function C_(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var w_=function(...e){e=e.map(e=>x_(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:C_();!i||i.length===0||(t=`${i}/${t}`,n=E_(i))}return t=T_(t,!n),n&&!E_(t)?`/${t}`:t.length>0?t:`.`};function T_(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var E_=function(e){return S_.test(e)},D_=44,O_=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,k_=new Uint8Array(64),A_=new Uint8Array(128);for(let e=0;e<O_.length;e++){let t=O_.charCodeAt(e);k_[e]=t,A_[t]=e}function j_(e,t){let n=0,r=0,i=0;do i=A_[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function M_(e,t){return e.pos>=t?!1:e.peek()!==D_}var N_=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){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function P_(e){let{length:t}=e,n=new N_(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=j_(n,i),i<u&&(l=!1),u=i,M_(n,e)?(a=j_(n,a),o=j_(n,o),s=j_(n,s),M_(n,e)?(c=j_(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||F_(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function F_(e){e.sort(I_)}function I_(e,t){return e[0]-t[0]}var L_=0,R_=1,z_=2,B_=3,V_=4,H_=!1;function U_(e,t,n,r){for(;n<=r;){let i=n+(r-n>>1),a=e[i][L_]-t;if(a===0)return H_=!0,i;a<0?n=i+1:r=i-1}return H_=!1,n-1}function W_(e,t,n){for(let r=n+1;r<e.length&&e[r][L_]===t;n=r++);return n}function G_(e,t,n){for(let r=n-1;r>=0&&e[r][L_]===t;n=r--);return n}function K_(e,t,n,r){let{lastKey:i,lastNeedle:a,lastIndex:o}=n,s=0,c=e.length-1;if(r===i){if(t===a)return H_=o!==-1&&e[o][L_]===t,o;t>=a?s=o===-1?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=U_(e,t,s,c)}var q_="`line` must be greater than 0 (lines start at line 1)",J_="`column` must be greater than or equal to 0 (columns start at column 0)",Y_=-1,X_=1;function Z_(e){return e}function Q_(e){var t;return(t=Z_(e))._decoded||(t._decoded=P_(Z_(e)._encoded))}function $_(e,t){let{line:n,column:r,bias:i}=t;if(n--,n<0)throw Error(q_);if(r<0)throw Error(J_);let a=Q_(e);if(n>=a.length)return ev(null,null,null,null);let o=a[n],s=tv(o,Z_(e)._decodedMemo,n,r,i||X_);if(s===-1)return ev(null,null,null,null);let c=o[s];if(c.length===1)return ev(null,null,null,null);let{names:l,resolvedSources:u}=e;return ev(u[c[R_]],c[z_]+1,c[B_],c.length===5?l[c[V_]]:null)}function ev(e,t,n,r){return{source:e,line:t,column:n,name:r}}function tv(e,t,n,r,i){let a=K_(e,r,t,n);return H_?a=(i===Y_?W_:G_)(e,r,a):i===Y_&&a++,a===-1||a===e.length?-1:a}var nv=/^\s*at .*(?:\S:\d+|\(native\))/m,rv=/^(?:eval@)?(?:\[native code\])?$/,iv=[`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_/],av=Date.now().toString().length,ov=RegExp(`vitest=\\d{${av}}`);function sv(e){if(!e.includes(`:`))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,``));if(!t)return[e];let n=t[1];if(n.startsWith(`async `)&&(n=n.slice(6)),n.startsWith(`http:`)||n.startsWith(`https:`)){let e=new URL(n);e.searchParams.delete(`import`),e.searchParams.delete(`browserv`),n=e.pathname+e.hash+e.search}if(n.startsWith(`/@fs/`)){let e=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(e?5:4)}return n.includes(`vitest=`)&&(n=n.replace(ov,``).replace(/[?&]$/,``)),[n,t[2]||void 0,t[3]||void 0]}function cv(e){let t=e.trim();if(rv.test(t)||(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)))return null;let n=-1,r=``,i;for(let e=0;e<t.length;e++)if(t[e]===`@`){let a=t.slice(e+1);if(a.includes(`:`)&&a.length>=3){n=e,r=a,i=e>0?t.slice(0,e):void 0;break}}if(n===-1||!r.includes(`:`)||r.length<3)return null;let[a,o,s]=sv(r);return!a||!o||!s?null:{file:a,method:i||``,line:Number.parseInt(o),column:Number.parseInt(s)}}function lv(e){let t=e.trim();return nv.test(t)?uv(t):cv(t)}function uv(e){let t=e.trim();if(!nv.test(t))return null;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let[i,a,o]=sv(r?r[1]:n),s=r&&n||``,c=i&&[`eval`,`<anonymous>`].includes(i)?void 0:i;return!c||!a||!o?null:(s.startsWith(`async `)&&(s=s.slice(6)),c.startsWith(`file://`)&&(c=c.slice(7)),c=c.startsWith(`node:`)||c.startsWith(`internal:`)?c:w_(c),s&&=s.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:s,file:c,line:Number.parseInt(a),column:Number.parseInt(o)})}function dv(e,t={}){let{ignoreStackEntries:n=iv}=t,r=nv.test(e)?mv(e):pv(e),i=r.findLastIndex(e=>e.method.includes(`__VITEST_HELPER__`));return i>=0&&(r=r.slice(i+1)),r.map(e=>{t.getUrlId&&(e.file=t.getUrlId(e.file));let r=t.getSourceMap?.(e.file);if(!r||typeof r!=`object`||!r.version)return fv(n,e.file)?null:e;let i=_v(new hv(r,e.file),e);if(!i)return e;let{line:a,column:o,source:s,name:c}=i,l=s||e.file;return l.match(/\/\w:\//)&&(l=l.slice(1)),fv(n,l)?null:a!=null&&o!=null?{line:a,column:o,file:l,method:c||e.method}:e}).filter(e=>e!=null)}function fv(e,t){return e.some(e=>t.match(e))}function pv(e){return e.split(`
8
+ `).map(e=>cv(e)).filter(c_)}function mv(e){return e.split(`
9
+ `).map(e=>uv(e)).filter(c_)}var hv=class{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(e,t){this.map=e;let{mappings:n,names:r,sources:i}=e;this.version=e.version,this.names=r||[],this._encoded=n||``,this._decodedMemo=gv(),this.url=t,this.resolvedSources=(i||[]).map(e=>w_(t,`..`,e||``))}};function gv(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function _v(e,t){let n=$_(e,t);return n.column==null?null:n}var vv=/^[A-Za-z]:\//;function yv(e=``){return e&&e.replace(/\\/g,`/`).replace(vv,e=>e.toUpperCase())}var bv=/^[/\\]{2}/,xv=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Sv=/^[A-Za-z]:$/,Cv=/^\/([A-Za-z]:)?$/,wv=function(e){if(e.length===0)return`.`;e=yv(e);let t=e.match(bv),n=kv(e),r=e[e.length-1]===`/`;return e=Ov(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),Sv.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!kv(e)?`/${e}`:e)},Tv=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return wv(t)};function Ev(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Dv=function(...e){e=e.map(e=>yv(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ev();!i||i.length===0||(t=`${i}/${t}`,n=kv(i))}return t=Ov(t,!n),n&&!kv(t)?`/${t}`:t.length>0?t:`.`};function Ov(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var kv=function(e){return xv.test(e)},Av=function(e,t){let n=Dv(e).replace(Cv,`$1`).split(`/`),r=Dv(t).replace(Cv,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},jv=function(e,t){let n=yv(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},Mv=class extends Error{code=`VITEST_PENDING`;taskId;constructor(e,t,n){super(e),this.message=e,this.note=n,this.taskId=t.id}},Nv=class extends Error{name=`FixtureDependencyError`},Pv=class extends Error{name=`FixtureAccessError`},Fv=class extends Error{name=`FixtureParseError`},Iv=new WeakMap,Lv=new WeakMap,Rv=new WeakMap;function zv(e,t){Iv.set(e,t)}function Bv(e,t){Lv.set(e,t)}function Vv(e){return Lv.get(e)}function Hv(e,t){Rv.set(e,t)}function Uv(e){return Rv.get(e)}var Wv=Symbol.for(`VITEST_FIXTURE_STACK_TRACE`),Gv=class e{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=[`task`,`signal`,`onTestFailed`,`onTestFinished`,`skip`,`annotate`];static _fixtureOptionKeys=[`auto`,`injected`,`scope`];static _fixtureScopes=[`test`,`file`,`worker`];static _workerContextSuite={type:`worker`};static clearDefinitions(){e._definitions.length=0}static getWorkerContexts(){return e._definitions.map(e=>e.getWorkerContext())}static getFileContexts(t){return e._definitions.map(e=>e.getFileContext(t))}static isFixtureOptions(t){return f_(t)&&Object.keys(t).some(t=>e._fixtureOptionKeys.includes(t))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,e._definitions.push(this)}extend(t,n){let{suite:r}=nb(),i=!r||r.file===r;return new e(this.parseUserFixtures(t,n,i))}get(e){let t=e;for(;t;){let e=this._overrides.get(t);if(e)return e;if(t===t.file)break;t=t.suite||t.file}return this._registrations}override(e,t){let{suite:n,file:r}=nb(),i=n||r,a=!n||n.file===n,o=new Map(this.get(i)),s=this.parseUserFixtures(e,t,a,o);a?this._registrations=s:this._overrides.set(i,s)}getFileContext(e){return this._suiteContexts.has(e)||this._suiteContexts.set(e,Object.create(null)),this._suiteContexts.get(e)}getWorkerContext(){return this._suiteContexts.has(e._workerContextSuite)||this._suiteContexts.set(e._workerContextSuite,Object.create(null)),this._suiteContexts.get(e._workerContextSuite)}parseUserFixtures(t,n,r,i=new Map(this._registrations)){let a=[];Object.entries(n).forEach(([n,o])=>{let s,c,l;Array.isArray(o)&&o.length>=2&&e.isFixtureOptions(o[1])?(l=o[1],s={auto:l.auto??!1,scope:l.scope??`test`,injected:l.injected??!1},c=s.injected?t.injectValue?.(n)??o[0]:o[0]):c=o;let u=i.get(n);u&&s?(u.scope!==s.scope&&a.push(new Nv(`The "${n}" fixture was already registered with a "${s.scope}" scope.`)),u.auto!==s.auto&&a.push(new Nv(`The "${n}" fixture was already registered as { auto: ${s.auto} }.`))):u?s={auto:u.auto,scope:u.scope,injected:u.injected}:s||={auto:!1,injected:!1,scope:`test`},s.scope&&!e._fixtureScopes.includes(s.scope)&&a.push(new Nv(`The "${n}" fixture has unknown scope "${s.scope}".`)),!r&&s.scope!==`test`&&a.push(new Nv(`The "${n}" fixture cannot be defined with a ${s.scope} scope${!l?.scope&&u?.scope?` (inherited from the base fixture)`:``} inside the describe block. Define it at the top level of the file instead.`));let d=Xv(c)?sy(c):new Set,f={name:n,value:c,auto:s.auto??!1,injected:s.injected??!1,scope:s.scope??`test`,deps:d,parent:u};Xv(c)&&Object.assign(c,{[Wv]:Error(`STACK_TRACE_ERROR`)}),i.set(n,f),f.scope===`worker`&&(t.pool===`vmThreads`||t.pool===`vmForks`)&&(f.scope=`file`)});for(let t of i.values())for(let n of t.deps){if(e._builtinFixtures.includes(n))continue;let r=i.get(n);if(!r){a.push(new Nv(`The "${t.name}" fixture depends on unknown fixture "${n}".`));continue}if(n===t.name&&!t.parent){a.push(new Nv(`The "${t.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(e._fixtureScopes.indexOf(t.scope)>e._fixtureScopes.indexOf(r.scope)){a.push(new Nv(`The ${t.scope} "${t.name}" fixture cannot depend on a ${r.scope} fixture "${r.name}".`));continue}}if(a.length===1)throw a[0];if(a.length>1)throw AggregateError(a,`Cannot resolve user fixtures. See errors for more information.`);return i}},Kv=new WeakMap,qv=new WeakMap;function Jv(e,t){let n=nb(),r=t?.suite||n.suite||n.file;return async n=>{let i=n||t?.context;if(!i)return t?.suiteHook&&ny(e,t.suiteHook,t.stackTraceError),e({});let a=t?.fixtures||Vv(i);if(!a)return e(i);let o=a.get(r);if(!o.size)return e(i);let s=[],c=sy(e);for(let e of o.values())(Yv(e,t)||c.has(e.name))&&s.push(e);if(!s.length)return e(i);Kv.has(i)||Kv.set(i,[]);let l=Kv.get(i),u=ty(s,o);if(!u.length)return e(i);if(t?.suiteHook){let e=u.filter(e=>e.scope===`test`);if(e.length>0){let n=e.map(e=>`"${e.name}"`).join(`, `),r=new Nv(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${n}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${{aroundAll:`aroundEach`,beforeAll:`beforeEach`,afterAll:`afterEach`}[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(r.stack=r.message+t.stackTraceError.stack.replace(t.stackTraceError.message,``)),r}}qv.has(i)||qv.set(i,new WeakSet);let d=qv.get(i);for(let e of u)if(e.scope===`test`){if(d.has(e))continue;d.add(e);let t=await Zv(e,i,l);i[e.name]=t,l.push(()=>{d.delete(e)})}else{let t=await $v(a,r,e);i[e.name]=t}return e(i)}}function Yv(e,t){return!(!e.auto||t?.suiteHook&&e.scope===`test`)}function Xv(e){return typeof e==`function`}function Zv(e,t,n){return Xv(e.value)?ey(e.value,e.name,t,n):e.value}var Qv=new WeakMap;async function $v(e,t,n){let r=e.getWorkerContext(),i=e.getFileContext(t.file),a=n.scope===`worker`?r:i;if(!Xv(n.value))return a[n.name]=n.value,n.value;if(n.name in a)return a[n.name];if(Qv.has(n))return Qv.get(n);Kv.has(a)||Kv.set(a,[]);let o=Kv.get(a),s=ey(n.value,n.name,n.scope===`file`?{...r,...i}:a,o).then(e=>(a[n.name]=e,Qv.delete(n),e));return Qv.set(n,s),s}async function ey(e,t,n,r){let i=m_(),a=Wv in e&&e[Wv]instanceof Error?e[Wv]:void 0,o=!1,s=e(n,async e=>{o=!0,i.resolve(e);let t=m_();r.push(async()=>{t.resolve(),await s}),await t}).then(()=>{if(!o){let e=Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);a?.stack&&(e.stack=e.message+a.stack.replace(a.message,``)),i.reject(e)}}).catch(e=>{if(!o){i.reject(e);return}throw e});return i}function ty(e,t,n=new Set,r=[]){return e.forEach(e=>{if(!r.includes(e)){if(!Xv(e.value)||!e.deps){r.push(e);return}if(n.has(e))if(e.parent)e=e.parent;else throw Error(`Circular fixture dependency detected: ${e.name} <- ${[...n].reverse().map(e=>e.name).join(` <- `)}`);n.add(e),ty([...e.deps].map(n=>n===e.name?e.parent:t.get(n)).filter(e=>!!e),t,n,r),r.push(e),n.clear()}}),r}function ny(e,t,n){let r=sy(e,{sourceError:n,suiteHook:t});if(r.size){let e=new Pv(`The ${t} hook uses fixtures "${[...r].join(`", "`)}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?\nIf you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(e.stack=n.stack?.replace(n.message,e.message)),e}}var ry=Symbol(`$vitest:fixture-props`),iy=Symbol(`$vitest:fixture-prop-names`);function ay(e,t){Object.defineProperty(e,ry,{value:t,enumerable:!1})}function oy(e,t){return e[iy]=t,t}function sy(e,{sourceError:t,suiteHook:n}={}){if(iy in e)return e[iy];let{index:r=0,original:i=e}=ry in e?e[ry]:{},a=u_(i.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(a)&&(a=a.split(/__async\((?:this|null),/)[1]);let o=a.match(/[^(]*\(([^)]*)/);if(!o)return oy(e,new Set);let s=cy(o[1]);if(!s.length)return oy(e,new Set);let c=s[r];if(!c)return oy(e,new Set);if(!(c[0]===`{`&&c.endsWith(`}`))){let e=g_(r+1),i=new Fv(`The ${e} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${c}".${n?` If you used internal "suite" task as the ${e} argument previously, access it in the ${g_(r+2)} argument instead.`:``}`);throw t&&(i.stack=t.stack?.replace(t.message,i.message)),i}let l=cy(c.slice(1,-1).replace(/\s/g,``)).map(e=>e.replace(/:.*|=.*/g,``)),u=l.at(-1);if(u&&u.startsWith(`...`)){let e=new Fv(`Rest parameters are not supported in fixtures, received "${u}".`);throw t&&(e.stack=t.stack?.replace(t.message,e.message)),e}return oy(e,new Set(l))}function cy(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]===`{`||e[i]===`[`)n.push(e[i]===`{`?`}`:`]`);else if(e[i]===n.at(-1))n.pop();else if(!n.length&&e[i]===`,`){let n=e.substring(r,i).trim();n&&t.push(n),r=i+1}let i=e.substring(r).trim();return i&&t.push(i),t}var ly;function uy(){return ly}var dy=Symbol(`kChainableContext`);function fy(e){return e?.[dy]}function py(e,t,n){function r(n){let i=function(...e){return t.apply(n,e)};Object.assign(i,t),Object.defineProperty(i,dy,{value:{withContext:()=>i.bind(n),getFixtures:()=>n.fixtures,setContext:(e,t)=>{n[e]=t},mergeContext:e=>{Object.assign(n,e)}},enumerable:!1});for(let t of e)Object.defineProperty(i,t,{get(){return r({...n,[t]:!0})}});return i}let i=r(n??{});return Object.defineProperty(i,`fn`,{value:t,enumerable:!1}),i}function my(){return tb().config.hookTimeout}var hy=Symbol.for(`VITEST_CLEANUP_TIMEOUT`),gy=Symbol.for(`VITEST_CLEANUP_STACK_TRACE`),_y=Symbol.for(`VITEST_AROUND_TIMEOUT`),vy=Symbol.for(`VITEST_AROUND_STACK_TRACE`);function yy(e,t=my()){l_(e,`"beforeAll" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`),r=fy(this);return nb().on(`beforeAll`,Object.assign(yb(Ty(`beforeAll`,e,r,n),t,!0,n),{[hy]:t,[gy]:n}))}function by(e,t){l_(e,`"afterAll" callback`,[`function`]);let n=fy(this),r=Error(`STACK_TRACE_ERROR`);return nb().on(`afterAll`,yb(Ty(`afterAll`,e,n,r),t??my(),!0,r))}function xy(e,t=my()){l_(e,`"beforeEach" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`);return nb().on(`beforeEach`,Object.assign(yb((t,n)=>Jv(e,{suite:n})(t),t??my(),!0,n,Sb),{[hy]:t,[gy]:n}))}function Sy(e,t){return l_(e,`"afterEach" callback`,[`function`]),nb().on(`afterEach`,yb((t,n)=>Jv(e,{suite:n})(t),t??my(),!0,Error(`STACK_TRACE_ERROR`),Sb))}function Cy(e,t){l_(e,`"aroundAll" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`),r=t??my(),i=fy(this);return nb().on(`aroundAll`,Object.assign(Ty(`aroundAll`,e,i,n,1),{[_y]:r,[vy]:n}))}function wy(e,t){l_(e,`"aroundEach" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`),r=t??my();return nb().on(`aroundEach`,Object.assign((t,n,r)=>{let i=n=>e(t,n,r);return ay(i,{index:1,original:e}),Jv(i,{suite:r})(n)},{[_y]:r,[vy]:n}))}function Ty(e,t,n,r,i=0){return(...a)=>{let o=a.at(-1),s=a.slice(0,-1),c=e=>t(...s,e,o);ay(c,{index:i,original:t});let l=n?.getFixtures(),u=l?.getFileContext(o.file);return Jv(c,{suiteHook:e,fixtures:l,context:u,stackTraceError:r})()}}function Ey(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return`${t}`}function Dy(e,t,n,r,i,a){let o=Av(t,e),s={id:Oy(o,n,a),name:o,fullName:o,type:`suite`,mode:`queued`,filepath:e,tasks:[],meta:Object.assign(Object.create(null),a),projectName:n,file:void 0,pool:r,viteEnvironment:i};return s.file=s,s}function Oy(e,t,n){return Ey([e,t||``,n?.typecheck?`__typecheck__`:``,n?.__vitest_label__||``].join(`\0`))}function ky(e,t){let n=t.split(`
10
+ `).slice(1);for(let t of n){let n=lv(t);if(n&&n.file===e)return n}}function Ay(e,t){if(!e.strictTags)return;let n=new Set(e.tags.map(e=>e.name));for(let r of t)if(!n.has(r))throw jy(e.tags,r)}function jy(e,t,n=`tag`){throw e.length?Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:\n${e.map(e=>`- ${e.name}${e.description?`: ${e.description}`:``}`).join(`
11
+ `)}`):Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function My(e,t){let n=e.map(e=>Ny(e,t));return e=>n.every(t=>t(e))}function Ny(e,t){let n=new Iy(Fy(e),e),r=Ry(n,t);if(n.peek().type!==`EOF`)throw Error(`Invalid tags expression: unexpected "${Py(n.peek())}" in "${e}"`);return e=>Wy(r,e)}function Py(e){switch(e.type){case`TAG`:return e.value;default:return Ly(e.type)}}function Fy(e){let t=[],n=0;for(;n<e.length;){if(e[n]===` `||e[n]===` `){n++;continue}if(e[n]===`(`){t.push({type:`LPAREN`}),n++;continue}if(e[n]===`)`){t.push({type:`RPAREN`}),n++;continue}if(e[n]===`!`){t.push({type:`NOT`}),n++;continue}if(e.slice(n,n+2)===`&&`){t.push({type:`AND`}),n+=2;continue}if(e.slice(n,n+2)===`||`){t.push({type:`OR`}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:`AND`}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:`OR`}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:`NOT`}),n+=3;continue}let r=``;for(;n<e.length&&e[n]!==` `&&e[n]!==` `&&e[n]!==`(`&&e[n]!==`)`&&e[n]!==`!`&&e[n]!==`&`&&e[n]!==`|`;){let t=e.slice(n);if(r===``&&(/^and(?:\s|\)|$)/i.test(t)||/^or(?:\s|\)|$)/i.test(t)||/^not\s/i.test(t)))break;r+=e[n],n++}r&&t.push({type:`TAG`,value:r})}return t.push({type:`EOF`}),t}var Iy=class{pos=0;constructor(e,t){this.tokens=e,this.expr=t}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(e){let t=this.next();if(t.type!==e)throw e===`RPAREN`&&t.type===`EOF`?Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):Error(`Invalid tags expression: expected "${Ly(e)}" but got "${Py(t)}" in "${this.expr}"`);return t}unexpectedToken(){let e=this.peek();throw e.type===`EOF`?Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):Error(`Invalid tags expression: unexpected "${Py(e)}" in "${this.expr}"`)}};function Ly(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 Ry(e,t){let n=zy(e,t);for(;e.peek().type===`OR`;){e.next();let r=zy(e,t);n={type:`or`,left:n,right:r}}return n}function zy(e,t){let n=By(e,t);for(;e.peek().type===`AND`;){e.next();let r=By(e,t);n={type:`and`,left:n,right:r}}return n}function By(e,t){return e.peek().type===`NOT`?(e.next(),{type:`not`,operand:By(e,t)}):Vy(e,t)}function Vy(e,t){let n=e.peek();if(n.type===`LPAREN`){e.next();let n=Ry(e,t);return e.expect(`RPAREN`),n}if(n.type===`TAG`){e.next();let r=n.value;return{type:`tag`,value:r,pattern:Uy(r,t)}}e.unexpectedToken()}function Hy(e){return RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`)}$`)}function Uy(e,t){if(e.includes(`*`)){let n=Hy(e);if(!t.some(e=>n.test(e.name)))throw jy(t,e,`tag pattern`);return n}if(!t.length||!t.some(t=>t.name===e))throw jy(t,e,`tag pattern`);return null}function Wy(e,t){switch(e.type){case`tag`:return e.pattern?t.some(t=>e.pattern.test(t)):t.includes(e.value);case`not`:return!Wy(e.operand,t);case`and`:return Wy(e.left,t)&&Wy(e.right,t);case`or`:return Wy(e.left,t)||Wy(e.right,t)}}function Gy(e){return e.type===`test`}function Ky(e){let t=[],n=d_(e);for(let e of n)if(Gy(e))t.push(e);else for(let n of e.tasks)if(Gy(n))t.push(n);else{let e=Ky(n);for(let n of e)t.push(n)}return t}function qy(e=[]){return d_(e).flatMap(e=>Gy(e)?[e]:[e,...qy(e.tasks)])}function Jy(e){let t=[e.name],n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Yy(e,t=` > `){return e.filter(e=>e!==void 0).join(t)}var Xy=cb();ub(function(e,t,n){if(uy())throw Error(`Calling the test function inside another test function is not allowed. Please put it inside "describe" or "suite" so it can be properly collected.`);nb().test.fn.call(this,db(e),t,n)});var Zy,Qy,$y;function eb(e,t){if(!e)throw Error(`Vitest failed to find ${t}. One of the following is possible:
12
+ - "vitest" is imported directly without running "vitest" command
13
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
14
+ - "vitest" is imported inside Vite / Vitest config file
15
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
16
+ `)}function tb(){return eb(Zy,`the runner`),Zy}function nb(){let e=gb.currentSuite||Qy;return eb(e,`the current suite`),e}function rb(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}var ib=1/0;function ab(e,t){if(typeof t==`object`&&t)throw TypeError(`Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.`);let n={},r;if(typeof t==`number`?n={timeout:t}:typeof e==`object`&&(n=e),typeof e==`function`){if(typeof t==`function`)throw TypeError(`Cannot use two functions as arguments. Please use the second argument for options.`);r=e}else typeof t==`function`&&(r=t);return{options:n,handler:r}}function ob(e,t=()=>{},n,r,i){let a=[],o;d(!0);let s=function(e=``,t={}){let n=gb.currentSuite?.suite,r=__([...(n??gb.currentSuite?.file)?.tags||[],...d_(t.tags)]),o=r.map(e=>{let t=Zy.config.tags?.find(t=>t.name===e);if(!t&&Zy.config.strictTags)throw jy(Zy.config.tags,e);return t}).filter(e=>e!=null).sort((e,t)=>(t.priority??ib)-(e.priority??ib)).reduce((e,t)=>{let{name:n,description:r,priority:i,meta:a,...o}=t;return Object.assign(e,o),a&&(e.meta=Object.assign(e.meta??Object.create(null),a)),e},{}),s=t.meta;t={...gb.currentSuite?.options,...o,...t};let c=t.timeout??Zy.config.testTimeout,l=n?.meta,u=o.meta,d=Object.create(null);u&&Object.assign(d,u),l&&Object.assign(d,l),s&&Object.assign(d,s);let f={id:``,name:e,fullName:Yy([n?.fullName??gb.currentSuite?.file?.fullName,e]),fullTestName:Yy([n?.fullTestName,e]),suite:n,each:t.each,fails:t.fails,context:void 0,type:`test`,file:n?.file??gb.currentSuite?.file,timeout:c,retry:t.retry??Zy.config.retry,repeats:t.repeats,mode:t.only?`only`:t.skip?`skip`:t.todo?`todo`:`run`,meta:d,annotations:[],artifacts:[],tags:r},p=t.handler;f.mode===`run`&&!p&&(f.mode=`todo`),(t.concurrent??Zy.config.sequence.concurrent)&&(f.concurrent=!0),f.shuffle=i?.shuffle;let m=wb(f,Zy);Object.defineProperty(f,`context`,{value:m,enumerable:!1}),Bv(m,t.fixtures??new Gv);let h=Error.stackTraceLimit;Error.stackTraceLimit=10;let g=Error(`STACK_TRACE_ERROR`);if(Error.stackTraceLimit=h,p&&zv(f,yb(bb(sb(Jv(p,{context:m}),f),f.context.signal),c,!1,g,(e,t)=>Sb([m],t))),Zy.config.includeTaskLocation){let e=g.stack,t=ky($y,e);t&&(f.location={line:t.line,column:t.column})}return a.push(f),f},c=ub(function(e,t,n){let{options:r,handler:i}=ab(t,n),a=this.concurrent??r?.concurrent;a!=null&&(r.concurrent=a);let o=s(db(e),{...this,...r,handler:i});o.type=`test`}),l={type:`collector`,name:e,mode:n,suite:o,options:i,test:c,file:o.file,tasks:a,collect:p,task:s,clear:f,on:u};function u(e,...t){Uv(o)[e].push(...t)}function d(t){typeof i==`number`&&(i={timeout:i});let a=gb.currentSuite?.suite,s=a??gb.currentSuite?.file,c=d_(i?.tags);if(Ay(Zy.config,c),o={id:``,type:`suite`,name:e,fullName:Yy([a?.fullName??gb.currentSuite?.file?.fullName,e]),fullTestName:Yy([a?.fullTestName,e]),suite:a,mode:n,each:r,file:a?.file??gb.currentSuite?.file,shuffle:i?.shuffle,tasks:[],meta:i?.meta??Object.create(null),concurrent:i?.concurrent,tags:__([...s?.tags||[],...c])},Zy&&t&&Zy.config.includeTaskLocation){let e=Error.stackTraceLimit;Error.stackTraceLimit=15;let t=Error(`stacktrace`).stack;Error.stackTraceLimit=e;let n=ky($y,t);n&&(o.location={line:n.line,column:n.column})}Hv(o,rb())}function f(){a.length=0,d(!1)}async function p(e){if(!e)throw TypeError(`File is required to collect tasks.`);t&&await vb(l,()=>t(c));let n=[];for(let t of a)n.push(t.type===`collector`?await t.collect(e):t);return o.tasks=n,o}return _b(l),l}function sb(e,t){return(async(...n)=>{let r=await e(...n);if(t.promises){let e=(await Promise.allSettled(t.promises)).map(e=>e.status===`rejected`?e.reason:void 0).filter(Boolean);if(e.length)throw e}return r})}function cb(){function e(e,t,n){if(uy())throw Error(`Calling the suite function inside test function is not allowed. It can be only called at the top level or inside another suite function.`);let r=gb.currentSuite||Qy,{options:i,handler:a}=ab(t,n),{meta:o,...s}=r?.options||{};i={...s,...i};let c=this.shuffle??i.shuffle??r?.options?.shuffle??Zy?.config.sequence.shuffle;c!=null&&(i.shuffle=c);let l=this.only??i.only?`only`:this.skip??i.skip?`skip`:this.todo??i.todo?`todo`:`run`;l===`run`&&!a&&(l=`todo`);let u=this.concurrent??i.concurrent;return u!=null&&(i.concurrent=u),o&&(i.meta=Object.assign(Object.create(null),o,i.meta)),ob(db(e),a,l,this.each,i)}return e.each=function(e,...t){let n=fy(this),r=n.withContext();return n.setContext(`each`,!0),Array.isArray(e)&&t.length&&(e=mb(e,t)),(t,i,a)=>{let o=db(t),s=e.every(Array.isArray),{options:c,handler:l}=ab(i,a),u=typeof i==`function`;e.forEach((e,t)=>{let n=Array.isArray(e)?e:[e];u?s?r(fb(o,n,t),l?()=>l(...n):void 0,c.timeout):r(fb(o,n,t),l?()=>l(e):void 0,c.timeout):s?r(fb(o,n,t),c,l?()=>l(...n):void 0):r(fb(o,n,t),c,l?()=>l(e):void 0)}),n.setContext(`each`,void 0)}},e.for=function(e,...t){let n=fy(this).withContext();return Array.isArray(e)&&t.length&&(e=mb(e,t)),(t,r,i)=>{let a=db(t),{options:o,handler:s}=ab(r,i);e.forEach((e,t)=>{n(fb(a,d_(e),t),o,s?()=>s(e):void 0)})}},e.skipIf=e=>e?Xy.skip:Xy,e.runIf=e=>e?Xy:Xy.skip,py([`concurrent`,`shuffle`,`skip`,`only`,`todo`],e)}function lb(e){let t=e;t.each=function(e,...t){let n=fy(this),r=n.withContext();return n.setContext(`each`,!0),Array.isArray(e)&&t.length&&(e=mb(e,t)),(t,i,a)=>{let o=db(t),s=e.every(Array.isArray),{options:c,handler:l}=ab(i,a),u=typeof i==`function`;e.forEach((e,t)=>{let n=Array.isArray(e)?e:[e];u?s?r(fb(o,n,t),l?()=>l(...n):void 0,c.timeout):r(fb(o,n,t),l?()=>l(e):void 0,c.timeout):s?r(fb(o,n,t),c,l?()=>l(...n):void 0):r(fb(o,n,t),c,l?()=>l(e):void 0)}),n.setContext(`each`,void 0)}},t.for=function(e,...t){let n=fy(this).withContext();return Array.isArray(e)&&t.length&&(e=mb(e,t)),(t,r,i)=>{let a=db(t),{options:o,handler:s}=ab(r,i);e.forEach((e,t)=>{let r=s?t=>s(e,t):void 0;r&&ay(r,{index:1,original:s}),n(fb(a,d_(e),t),o,r)})}},t.skipIf=function(e){return e?this.skip:this},t.runIf=function(e){return e?this:this.skip};function n(e,t,n){if(typeof e!=`string`)return e;let r=e,i,a;if(n===void 0?typeof t==`object`&&t&&!Array.isArray(t)&&Gv.isFixtureOptions(t)?(i=t,a={}):(i=void 0,a=t):(i=t,a=n),typeof a==`function`){let e=a,t=async(t,n)=>{let r;await n(await e(t,{onCleanup:e=>{if(r!==void 0)throw Error(`onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.`);r=e}})),r&&await r()};return ay(t,{original:e}),i?{[r]:[t,i]}:{[r]:t}}return i?{[r]:[a,i]}:{[r]:a}}return t.override=function(e,t,r){let i=n(e,t,r);return fy(this).getFixtures().override(Zy,i),this},t.scoped=function(e){return console.warn(`test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead.`),this.override(e)},t.extend=function(t,r,i){let a=n(t,r,i),o=fy(this).getFixtures().extend(Zy,a),s=ub(function(t,n,r){e.call(this,db(t),n,r)});return fy(s).mergeContext({fixtures:o}),s},t.describe=Xy,t.suite=Xy,t.beforeEach=xy,t.afterEach=Sy,t.beforeAll=yy,t.afterAll=by,t.aroundEach=wy,t.aroundAll=Cy,py([`concurrent`,`skip`,`only`,`todo`,`fails`],t,{fixtures:new Gv})}function ub(e){return lb(e)}function db(e){return typeof e==`string`?e:typeof e==`function`?e.name||`<anonymous>`:String(e)}function fb(e,t,n){(e.includes(`%#`)||e.includes(`%$`))&&(e=e.replace(/%%/g,`__vitest_escaped_%__`).replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,`%%`));let r=e.split(`%`).length-1;e.includes(`%f`)&&(e.match(/%f/g)||[]).forEach((n,r)=>{if(h_(t[r])||Object.is(t[r],-0)){let t=0;e=e.replace(/%f/g,e=>(t++,t===r+1?`-%f`:e))}});let i={truncate:Zy.config.taskTitleValueFormatTruncate},a=f_(t[0]);function o(e){return e.replace(/\$([$\w.]+)/g,(e,n)=>{let r=/^\d+$/.test(n);if(!a&&!r)return`$${n}`;let o=r?p_(t,n):void 0,s=a?p_(t[0],n,o):o;return typeof s==`string`?i_(s,i.truncate):r_(s,i)})}let s=``,c=0;return pb(e,t_,e=>{c<r?s+=n_([e[0],t[c++]],i):s+=e[0]},e=>{s+=o(e)}),s}function pb(e,t,n,r){let i=0;for(let a of e.matchAll(t))i<a.index&&r(e.slice(i,a.index)),n(a),i=a.index+a[0].length;i<e.length&&r(e.slice(i))}function mb(e,t){let n=e.join(``).trim().replace(/ /g,``).split(`
17
+ `).map(e=>e.split(`|`))[0],r=[];for(let e=0;e<Math.floor(t.length/n.length);e++){let i={};for(let r=0;r<n.length;r++)i[n[r]]=t[e*n.length+r];r.push(i)}return r}var hb=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,gb={tasks:[],currentSuite:null};function _b(e){gb.currentSuite?.tasks.push(e)}async function vb(e,t){let n=gb.currentSuite;gb.currentSuite=e,await t(),gb.currentSuite=n}function yb(e,t,n=!1,r,i){if(t<=0||t===1/0)return e;let{setTimeout:a,clearTimeout:o}=y_();return(function(...s){let c=hb(),l=tb();return l._currentTaskStartTime=c,l._currentTaskTimeout=t,new Promise((u,d)=>{let f=a(()=>{o(f),p()},t);f.unref?.();function p(){let e=Tb(n,t,r);i?.(s,e),d(e)}function m(e){if(l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(f),hb()-c>=t){p();return}u(e)}function h(e){l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(f),d(e)}try{let t=e(...s);typeof t==`object`&&t&&typeof t.then==`function`?t.then(m,h):m(t)}catch(e){h(e)}})})}function bb(e,t){return(function(...n){return new Promise((r,i)=>{let a=()=>i(t.reason);t.addEventListener(`abort`,a,{once:!0});let o=()=>t.removeEventListener(`abort`,a);try{let t=e(...n);typeof t==`object`&&t&&typeof t.then==`function`?t.then(e=>{o(),r(e)},e=>{o(),i(e)}):(o(),r(t))}catch(e){o(),i(e)}})})}var xb=new WeakMap;function Sb([e],t){e&&Cb(e,t)}function Cb(e,t){xb.get(e)?.abort(t)}function wb(e,t){let n=function(){throw Error(`done() callback is deprecated, use promise instead`)},r=xb.get(n);return r||(r=new AbortController,xb.set(n,r)),n.signal=r.signal,n.task=e,n.skip=(t,n)=>{if(t!==!1)throw e.result??={state:`skip`},e.result.pending=!0,new Mv(`test is skipped; abort execution`,e,typeof t==`string`?t:n)},n.annotate=((n,r,i)=>{if(e.result&&e.result.state!==`run`)throw Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let a={message:n,type:typeof r==`object`||r===void 0?`notice`:r},o=typeof r==`object`?r:i;return o&&(a.attachment=o,Lb(a.attachment)),Ib(e,Nb(e,{type:`internal:annotation`,annotation:a}).then(async({annotation:n})=>{if(!t.onTestAnnotate)throw Error(`Test runner doesn't support test annotations.`);await Mb(t);let r=await t.onTestAnnotate(e,n);return e.annotations.push(r),r}))}),n.onTestFailed=(n,i)=>{e.onFailed||=[],e.onFailed.push(yb(n,i??t.config.hookTimeout,!0,Error(`STACK_TRACE_ERROR`),(e,t)=>r.abort(t)))},n.onTestFinished=(n,i)=>{e.onFinished||=[],e.onFinished.push(yb(n,i??t.config.hookTimeout,!0,Error(`STACK_TRACE_ERROR`),(e,t)=>r.abort(t)))},t.extendTaskContext?.(n)||n}function Tb(e,t,n){let r=`${e?`Hook`:`Test`} timed out in ${t}ms.\nIf this is a long-running ${e?`hook`:`test`}, pass a timeout value as the last argument or configure it globally with "${e?`hookTimeout`:`testTimeout`}".`,i=Error(r);return n?.stack&&(i.stack=n.stack.replace(i.message,n.message)),i}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Date.now;var{clearTimeout:Eb,setTimeout:Db}=y_(),Ob=new Map,kb=[],Ab=[];function jb(e){if(Ob.size){let t=Array.from(Ob).map(([e,t])=>[e,t[0],t[1]]),n=e.onTaskUpdate?.(t,kb);n&&(Ab.push(n),n.then(()=>Ab.splice(Ab.indexOf(n),1),()=>{})),kb.length=0,Ob.clear()}}async function Mb(e){jb(e),await Promise.all(Ab)}async function Nb(e,t){let n=tb(),r=ky(e.file.filepath,Error(`STACK_TRACE`).stack);if(r&&(t.location={file:r.file,line:r.line,column:r.column},t.type===`internal:annotation`&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(let e of t.attachments)Lb(e);if(t.type===`internal:annotation`)return t;if(!n.onTestArtifactRecord)throw Error(`Test runner doesn't support test artifacts.`);await Mb(n);let i=await n.onTestArtifactRecord(e,t);return e.artifacts.push(i),i}var Pb=[];for(let e=65;e<91;e++)Pb.push(String.fromCharCode(e));for(let e=97;e<123;e++)Pb.push(String.fromCharCode(e));for(let e=0;e<10;e++)Pb.push(e.toString(10));Pb.push(`+`,`/`);function Fb(e){let t=``,n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let n=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=Pb[n],t+=Pb[i],t+=`==`}else if(n===r+2){let n=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2;t+=Pb[n],t+=Pb[i],t+=Pb[a],t+=`=`}else{let n=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2|(e[r+2]&192)>>6,o=e[r+2]&63;t+=Pb[n],t+=Pb[i],t+=Pb[a],t+=Pb[o]}return t}function Ib(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||=[],e.promises.push(t),t}function Lb(e){if(e.body==null&&!e.path)throw TypeError(`Test attachment requires "body" or "path" to be set. Both are missing.`);if(e.body&&e.path)throw TypeError(`Test attachment requires only one of "body" or "path" to be set. Both are specified.`);if(e.path&&e.bodyEncoding)throw TypeError(`Test attachment with "path" should not have "bodyEncoding" specified.`);e.body instanceof Uint8Array&&(e.body=Fb(e.body)),e.body!=null&&(e.bodyEncoding??=`base64`)}var Rb=hm(),zb=Lp(Rb);function Bb(e){return Object.hasOwn(e,`tasks`)}function Vb(e,t){return typeof e!=`string`||typeof t!=`string`?!1:e.toLowerCase().includes(t.toLowerCase())}function Hb(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Ub(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function Wb(e){let t=new Map,n=new Map,r=[];for(;;){let i=0;if(e.forEach((e,a)=>{let{splits:o,finished:s}=e;if(s){i++;let{raw:n,candidate:r}=e;t.set(n,r);return}if(o.length===0){e.finished=!0;return}let c=o[0];n.has(c)?(e.candidate+=e.candidate===``?c:`/${c}`,n.get(c)?.push(a),o.shift()):(n.set(c,[a]),r.push(a))}),r.forEach(t=>{let n=e[t],r=n.splits.shift();n.candidate+=n.candidate===``?r:`/${r}`}),n.forEach(t=>{if(t.length===1){let n=t[0];e[n].finished=!0}}),n.clear(),r.length=0,i===e.length)break}return t}function Gb(e){let t=e;t.includes(`/node_modules/`)&&(t=e.split(/\/node_modules\//g).pop());let n=t.split(/\//g);return{raw:t,splits:n,splitsCopy:[...n],candidate:``,finished:!1,id:e}}function Kb(e){return Gb(e).raw}function qb(e){if(e>=500)return`danger`;if(e>=100)return`warning`}function Jb(e){let t=qb(e);if(t===`danger`)return`text-red`;if(t===`warning`)return`text-orange`}function Yb(e,t=!1){if(!e)return``;let n=e.split(``).reduce((e,t,n)=>e+t.charCodeAt(0)+n,0),r=Rb.value?[`yellow`,`cyan`,`#006800`,`magenta`]:[`#ff5400`,`#02a4a4`,`green`,`magenta`],i=Rb.value?[`#ffff0091`,`#0ff6`,`#5dbb5dc9`,`#ff00ff80`]:[`#ff540091`,`#00828266`,`#5dbb5dc9`,`#ff00ff80`];return(t?i:r)[n%r.length]}function Xb(e){switch(e){case`blue`:case`green`:case`magenta`:case`black`:case`red`:return`white`;default:return`black`}}var Zb=an([]),Qb=an([]),$b=Cm(`vitest-ui_task-tree-opened`,[],{shallow:!0}),ex=`__vitest_ui_all_projects__`,tx=Z(()=>new Set($b.value)),nx=Cm(`vitest-ui_task-tree-filter`,{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:``,project:ex,projectSort:void 0}),rx=z(nx.value.projectSort||`default`),ix=an(nx.value?.project||`__vitest_ui_all_projects__`),ax=Z(()=>ck.value.length>1),ox=Z(()=>ix.value===ex),sx=Z(()=>!ax.value||ix.value===`__vitest_ui_all_projects__`?void 0:ix.value),cx=z(nx.value.search),lx=new Map,ux=Z(()=>{if(cx.value.startsWith(`tag:`)){if(!ok.value.tags)return{matcher:()=>!0};let e=cx.value.slice(4).trim(),t=lx.get(e);return t||(t=dx(e),lx.set(e,t)),{matcher:e=>t.matcher(e.tags||[]),error:t.error}}return{matcher:e=>cx.value===``||Vb(e.name,cx.value)}});function dx(e){if(!e)return{matcher:()=>!0};try{return{matcher:My([e],ok.value.tags||[])}}catch(e){return{matcher:()=>!1,error:e.message}}}var fx={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function px(e){return e.replace(/[&<>"']/g,e=>fx[e])}var mx=Z(()=>{let e=cx.value.toLowerCase();return e.length?RegExp(`(${px(e)})`,`gi`):null}),hx=Z(()=>cx.value.trim()!==``),Q=Gt({failed:nx.value.failed,success:nx.value.success,skipped:nx.value.skipped,slow:nx.value.slow,onlyTests:nx.value.onlyTests}),gx=Z(()=>!!(Q.failed||Q.success||Q.skipped||Q.slow)),_x=an([]),vx=z(!1),yx=Z(()=>{let e=nx.value.expandAll;return $b.value.length>0?e!==!0:e!==!1}),bx=Z(()=>{let e=hx.value,t=gx.value,n=sx.value,r=Q.onlyTests,i=$.summary.filesFailed,a=$.summary.filesSuccess,o=$.summary.filesSkipped,s=$.summary.filesRunning,c=_x.value;return $.collectTestsTotal(e||t||!!n,r,c,{failed:i,success:a,skipped:o,running:s})});function xx(e){return e.type===`test`}function Sx(e){return e.mode===`run`&&e.type===`test`}function Cx(e){return e.type===`file`}function wx(e){return e.type===`file`||e.type===`suite`}function Tx(e){if(e.type!==`test`)return!1;let t=e.result?.duration;if(typeof t!=`number`)return!1;let n=ok.value.slowTestThreshold;return typeof n==`number`&&t>n}function Ex(e,t=$.root.tasks){let n=[...t];return n.sort((t,n)=>{if(e===`duration-desc`||e===`duration-asc`){let r=t.duration??0,i=n.duration??0;if(r!==i)return e===`duration-desc`?i-r:r-i}else if(e===`asc`||e===`desc`){let r=t.projectName||``,i=n.projectName||``;if(r!==i)return e===`asc`?r.localeCompare(i):i.localeCompare(r)}return`${t.filepath}:${t.projectName}`.localeCompare(`${n.filepath}:${n.projectName}`)}),n}function Dx(e,t=!1){let n=$.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&`typecheck`in e.meta,n.label=e.meta?.__vitest_label__,n.state=e.result?.state,n.mode=e.mode,n.duration=typeof e.result?.duration==`number`?Math.round(e.result.duration):void 0,n.slow=!1,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:`root`,name:e.name,mode:e.mode,expandable:!0,expanded:tx.value.size>0&&tx.value.has(e.id),type:`file`,children:new Set,tasks:[],typecheck:!!e.meta&&`typecheck`in e.meta,label:e.meta?.__vitest_label__,indent:0,duration:typeof e.result?.duration==`number`?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||``,projectNameColor:$.colors.get(e.projectName||``)||Yb(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},$.nodes.set(e.id,n),$.root.tasks.push(n)),t)for(let t=0;t<e.tasks.length;t++)Ax(e.id,e.tasks[t],!0)}function Ox(e,t){let n=$.nodes.get(e);if(!n||!wx(n))return;let r=ak.state.idMap.get(e);if(!(!r||!Bb(r)))return Ax(n.parentId,r,t&&r.tasks.length>0),[n,r]}function kx(e){let t=$.nodes.get(e);if(!t)return;let n=ak.state.idMap.get(e);!n||!Gy(n)||Ax(t.parentId,n,!1)}function Ax(e,t,n){let r=$.nodes.get(e),i,a=typeof t.result?.duration==`number`?Math.round(t.result.duration):void 0;if(r&&(i=$.nodes.get(t.id),i?(r.children.has(t.id)||(r.tasks.push(i),r.children.add(t.id)),i.name=t.name,i.mode=t.mode,i.duration=a,i.slow=Tx(t),i.state=t.result?.state):(i=Gy(t)?{id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:r.indent+1,duration:a,slow:Tx(t),state:t.result?.state}:{id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:`suite`,expandable:!0,expanded:tx.value.size>0&&tx.value.has(t.id),children:new Set,tasks:[],indent:r.indent+1,duration:a,slow:!1,state:t.result?.state},$.nodes.set(t.id,i),r.tasks.push(i),r.children.add(t.id)),i&&n&&Bb(t)))for(let e=0;e<t.tasks.length;e++)Ax(i.id,t.tasks[e],n)}function jx(e){let t=$.nodes.get(e);if(!t||!wx(t))return;let n=new Set($b.value);n.delete(t.id);let r=[...Fx(t)];$b.value=Array.from(n),Qb.value=r}function Mx(){Nx($.root.tasks);let e=[...Qb.value.filter(Cx)];Nx(e),$b.value=[],nx.value.expandAll=!0,Qb.value=e}function Nx(e){for(let t of e)wx(t)&&(t.expanded=!1,Nx(t.tasks))}function*Px(e,t){if(t&&(yield e.id),wx(e))for(let t=0;t<e.tasks.length;t++)yield*Px(e.tasks[t],!0)}function*Fx(e){let t=e.id,n=new Set(Px(e,!1));for(let e=0;e<Qb.value.length;e++){let r=Qb.value[e];if(r.id===t){r.expanded=!1,yield r;continue}if(n.has(r.id)){n.delete(r.id);continue}yield r}}var Ix=z(`idle`),Lx=Z(()=>Ix.value===`idle`),Rx=z([]),zx=Z(()=>(ok.value.tags||[]).reduce((e,t)=>(e[t.name]=t,e),{})),Bx=class{filesMap=new Map;idMap=new Map;getFiles(e){return e?e.map(e=>this.filesMap.get(e)).flat().filter(e=>e&&!e.local):Array.from(this.filesMap.values()).flat().filter(e=>!e.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(e=>e.result?.state===`fail`).map(e=>e.filepath)}collectFiles(e=[]){e.forEach(e=>{let t=this.filesMap.get(e.filepath)||[],n=t.filter(t=>t.projectName!==e.projectName||t.meta.typecheck!==e.meta.typecheck),r=t.find(t=>t.projectName===e.projectName);r&&(e.logs=r.logs),n.push(e),this.filesMap.set(e.filepath,n),this.updateId(e)})}clearFiles(e,t=[]){let n=e;t.forEach(e=>{let t=this.filesMap.get(e),r=Dy(e,n.config.root,n.config.name||``);if(r.local=!0,this.idMap.set(r.id,r),!t){this.filesMap.set(e,[r]);return}let i=t.filter(e=>e.projectName!==n.config.name);i.length?this.filesMap.set(e,[...i,r]):this.filesMap.set(e,[r])})}updateId(e){this.idMap.get(e.id)!==e&&(this.idMap.set(e.id,e),e.type===`suite`&&e.tasks.forEach(e=>{this.updateId(e)}))}updateTasks(e){for(let[t,n,r]of e){let e=this.idMap.get(t);e&&(e.result=n,e.meta=r,n?.state===`skip`&&(e.mode=`skip`))}}updateUserLog(e){let t=e.taskId&&this.idMap.get(e.taskId);t&&(t.logs||=[],t.logs.push(e))}};function Vx(e,t,n){return e?Jx(e,t,n):!1}function Hx(e,t){let n=[...Ux(e,t)];Qb.value=n,_x.value=n.filter(Cx).map(e=>dk(e.id))}function*Ux(e,t){let n=sx.value,r=Ex(rx.value);for(let i of r)n&&i.projectName!==n||(yield*Wx(i,e,t))}function*Wx(e,t,n){let r=new Set,i=new Map,a=[],o;if(n.onlyTests)for(let[i,o]of Yx(e,r,e=>Xx(e,t,n)))a.push([i,o]);else{for(let[s,c]of Yx(e,r,e=>Xx(e,t,n)))wx(c)?(i.set(c.id,s),Cx(c)?(s&&(o=c.id),a.push([s,c])):a.push([s||i.get(c.parentId)===!0,c])):a.push([s||i.get(c.parentId)===!0,c]);!o&&!Cx(e)&&`fileId`in e&&(o=e.fileId)}let s=new Set,c=[...Kx(a,n.onlyTests,r,s,o)].reverse(),l=$.nodes;for(let e of r){let t=l.get(e);t&&`expanded`in t&&(t.expanded=!0)}let u=new Set(c.filter(e=>Cx(e)||wx(e)&&l.get(e.parentId)?.expanded).map(e=>e.id));yield*c.filter(e=>Cx(e)||u.has(e.parentId)&&l.get(e.parentId)?.expanded)}function Gx(e,t,n,r,i){if(r){if(Cx(t))return i.has(t.id)?t:void 0;if(n.has(t.id)){let e=$.nodes.get(t.parentId);return e&&Cx(e)&&i.add(e.id),t}}else if(e||n.has(t.id)||i.has(t.id)){let e=$.nodes.get(t.parentId);return e&&Cx(e)&&i.add(e.id),t}}function*Kx(e,t,n,r,i){for(let a=e.length-1;a>=0;a--){let[o,s]=e[a],c=wx(s);if(!t&&i&&n.has(i)&&`fileId`in s&&s.fileId===i){c&&n.add(s.id);let e=$.nodes.get(s.parentId);for(;e;)n.add(e.id),Cx(e)&&r.add(e.id),e=$.nodes.get(e.parentId);yield s;continue}if(c){let e=Gx(o,s,n,t,r);e&&(yield e)}else if(o){let e=$.nodes.get(s.parentId);e&&Cx(e)&&r.add(e.id),yield s}}}function qx(e,t){if(t.slow&&e.type===`test`){let t=ok.value.slowTestThreshold;if(typeof t==`number`&&typeof e.result?.duration==`number`&&e.result.duration>t)return!0}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 Jx(e,t,n){if(t(e))if(n.success||n.failed||n.skipped||n.slow){if(qx(e,n))return!0}else return!0;return!1}function*Yx(e,t,n){let r=n(e);if(r)if(xx(e)){let n=$.nodes.get(e.parentId);for(;n;)t.add(n.id),n=$.nodes.get(n.parentId)}else if(Cx(e))t.add(e.id);else{t.add(e.id);let n=$.nodes.get(e.parentId);for(;n;)t.add(n.id),n=$.nodes.get(n.parentId)}if(yield[r,e],wx(e))for(let r=0;r<e.tasks.length;r++)yield*Yx(e.tasks[r],t,n)}function Xx(e,t,n){let r=ak.state.idMap.get(e.id);return r?Jx(r,t,n):!1}function Zx(e,t,n){let r=Ox(e,!1);if(!r)return;let[i,a]=r;for(let e of a.tasks)Ax(i.id,e,!1);i.expanded=!0;let o=new Set($b.value);o.add(i.id);let s=[...tS(i,new Set(Wx(i,t,n)))];$b.value=Array.from(o),Qb.value=s}function Qx(e,t){eS($.root.tasks,!1);let n=[...Ux(e,t)];nx.value.expandAll=!1,$b.value=[],Qb.value=n,_x.value=n.filter(Cx).map(e=>dk(e.id))}function $x(e,t){if(e.size)for(let t of Qb.value)e.has(t.id)&&(t.expanded=!0);else t&&eS(Qb.value.filter(Cx),!0)}function eS(e,t){for(let t of e)wx(t)&&(t.expanded=!0,eS(t.tasks,!1));t&&(nx.value.expandAll=!1,$b.value=[])}function*tS(e,t){let n=e.id,r=new Set(Array.from(t).map(e=>e.id));for(let i of Qb.value)i.id===n?(i.expanded=!0,r.has(i.id)||(yield e),yield*t):r.has(i.id)||(yield i)}function nS(e){return Ky(e).some(e=>e.result?.errors?.some(e=>typeof e?.message==`string`&&e.message.match(/Snapshot .* mismatched/)))}function rS(e,t,n,r){e.map(e=>[`${e.filepath}:${e.projectName||``}`,e]).sort(([e],[t])=>e.localeCompare(t)).map(([,e])=>Dx(e,t)),Zb.value=[...$.root.tasks],Hx(n,{failed:r.failed,success:r.success,skipped:r.skipped,slow:r.slow,onlyTests:r.onlyTests})}function iS(e){queueMicrotask(()=>{let t=$.pendingTasks,n=ak.state.idMap;for(let r of e)if(r[1]){let e=n.get(r[0]);if(e){let n=t.get(e.file.id);n||(n=new Set,t.set(e.file.id,n)),n.add(e.id)}}})}function aS(e,t){let n=$.pendingTasks,r=ak.state.idMap.get(e);if(r?.type===`test`){let e=n.get(r.file.id);e||(e=new Set,n.set(r.file.id,e)),e.add(r.id),t.type===`internal:annotation`?r.annotations.push(t.annotation):r.artifacts.push(t)}}function oS(e,t,n,r,i,a){e&&mS(n);let o=!e;queueMicrotask(()=>{t?lS(o):uS(o)}),queueMicrotask(()=>{hS(n,a)}),queueMicrotask(()=>{t&&(n.failedSnapshot=Zb.value&&nS(Zb.value.map(e=>dk(e.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{dS(r,i,t)})}function*sS(){yield*Qb.value.filter(Sx)}function cS(){let e=ak.state.idMap,t;for(let n of sS())t=e.get(n.parentId),t&&Bb(t)&&t.mode===`todo`&&(t=e.get(n.id),t&&(t.mode=`todo`))}function lS(e){let t=ak.state.getFiles(),n=$.nodes,r=t.filter(e=>!n.has(e.id));for(let t=0;t<r.length;t++)Dx(r[t],e),pS(r[t].tasks);let i=$.root.tasks;for(let t=0;t<i.length;t++){let n=i[t],r=dk(n.id);r&&(Dx(r,e),r.tasks?.length&&pS(r.tasks))}}function uS(e){let t=new Map($.pendingTasks.entries());$.pendingTasks.clear();let n=$.nodes,r=Array.from(t.keys()).filter(e=>!n.has(e)).map(e=>dk(e)).filter(Boolean),i;for(let e=0;e<r.length;e++)i=r[e],Dx(i,!1),pS(i.tasks),t.delete(i.id);let a=ak.state.idMap,o=$.root.tasks;for(let n=0;n<o.length;n++){let r=o[n],i=dk(r.id);if(!i)continue;let s=t.get(i.id);s&&(Dx(i,e),pS(Array.from(s,e=>a.get(e)).filter(Boolean)))}}function dS(e,t,n=!1){let r=nx.value.expandAll,i=r!==!0,a=new Set($b.value),o=a.size>0&&r===!1||i;queueMicrotask(()=>{fS(e,t,n)}),vx.value||queueMicrotask(()=>{(Qb.value.length||n)&&(vx.value=!0)}),o&&(queueMicrotask(()=>{$x(a,n),i&&(nx.value.expandAll=!1)}),queueMicrotask(()=>{fS(e,t,n)}))}function fS(e,t,n){Hx(e,t),n&&(cS(),Ix.value=`idle`)}function pS(e){let t;for(let n=0;n<e.length;n++)t=e[n],Bb(t)?Ox(t.id,!0):kx(t.id)}function mS(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.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function hS(e,t){let n=ak.state.idMap,r=new Map($.root.tasks.filter(e=>n.has(e.id)).map(e=>[e.id,e])),i=Array.from(r.values(),e=>[e.id,dk(e.id)]),a={files:r.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,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};for(let[e,t]of i){if(!t)continue;t.result?.state===`fail`?a.filesFailed++:t.result?.state===`pass`?a.filesSuccess++:t.mode===`skip`?(a.filesIgnore++,a.filesSkipped++):t.mode===`todo`?(a.filesIgnore++,a.filesTodo++):a.filesRunning++;let{failed:e,success:n,skipped:r,total:i,ignored:o,todo:s,expectedFail:c,slow:l}=gS(t);a.totalTests+=i,a.testsFailed+=e,a.testsSuccess+=n,a.testsSkipped+=r,a.testsTodo+=s,a.testsExpectedFail+=c,a.testsSlow+=l,a.testsIgnore+=o}e.files=a.files,e.time=a.time,e.filesFailed=a.filesFailed,e.filesSuccess=a.filesSuccess,e.filesIgnore=a.filesIgnore,e.filesRunning=a.filesRunning,e.filesSkipped=a.filesSkipped,e.filesTodo=a.filesTodo,e.testsFailed=a.testsFailed,e.testsSuccess=a.testsSuccess,e.testsTodo=a.testsTodo,e.testsExpectedFail=a.testsExpectedFail,e.testsSlow=a.testsSlow,e.testsIgnore=a.testsIgnore,e.testsSkipped=a.testsSkipped,e.totalTests=a.totalTests}function gS(e,t=()=>!0,n){let r={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(let i of vS(e))(!n||Vx(i,t,n))&&(r.total++,Tx(i)&&r.slow++,i.result?.state===`fail`?r.failed++:i.result?.state===`pass`?i.fails?r.expectedFail++:r.success++:i.mode===`skip`?(r.ignored++,r.skipped++):i.mode===`todo`&&(r.ignored++,r.todo++));return r.running=r.total-r.failed-r.success-r.ignored-r.expectedFail,r}function _S(e,t,n,r,i,a){if(t)return n.map(e=>gS(e,i,a)).reduce((e,{failed:t,success:n,ignored:r,running:i})=>(e.failed+=t,e.success+=n,e.skipped+=r,e.running+=i,e),{failed:0,success:0,skipped:0,running:0});if(e){let e={failed:0,success:0,skipped:0,running:0},t=!a.success&&!a.failed,r=a.failed||t,i=a.success||t;for(let t of n)t.result?.state===`fail`?e.failed+=+!!r:t.result?.state===`pass`?e.success+=+!!i:t.mode===`skip`||t.mode===`todo`||e.running++;return e}return r}function*vS(e){let t=d_(e),n;for(let e=0;e<t.length;e++)n=t[e],Gy(n)?yield n:yield*vS(n.tasks)}var $=new class{rafCollector;resumeEndRunId;startTime=0;executionTime=0;constructor(e=[],t=new Map,n=!1,r=500,i={id:`vitest-root-node`,expandable:!0,expanded:!0,tasks:[]},a=new Map,o=new Map,s=Gt({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,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=e,this.colors=t,this.onTaskUpdateCalled=n,this.resumeEndTimeout=r,this.root=i,this.pendingTasks=a,this.nodes=o,this.summary=s,this.rafCollector=Qp(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(e,t){this.projects.splice(0,this.projects.length,...t.map(e=>e.name)),this.colors=new Map(t.map(e=>[e.name,e.color])),rS(e,!0,ux.value.matcher,{failed:Q.failed,success:Q.success,skipped:Q.skipped,slow:Q.slow,onlyTests:Q.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(e,t){aS(e,t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(e,t){iS(e),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(e=performance.now()-this.startTime){this.executionTime=e,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(e,t,n=!0){n?queueMicrotask(()=>{oS(e,t,this.summary,ux.value.matcher,{failed:Q.failed,success:Q.success,skipped:Q.skipped,slow:Q.slow,onlyTests:Q.onlyTests},t?this.executionTime:performance.now()-this.startTime)}):oS(e,t,this.summary,ux.value.matcher,{failed:Q.failed,success:Q.success,skipped:Q.skipped,slow:Q.slow,onlyTests:Q.onlyTests},t?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(e,t,n,r){return _S(e,t,n,r,ux.value.matcher,{failed:Q.failed,success:Q.success,skipped:Q.skipped,slow:Q.slow,onlyTests:Q.onlyTests})}collapseNode(e){queueMicrotask(()=>{jx(e)})}expandNode(e){queueMicrotask(()=>{Zx(e,ux.value.matcher,{failed:Q.failed,success:Q.success,skipped:Q.skipped,slow:Q.slow,onlyTests:Q.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{Mx()})}expandAllNodes(){queueMicrotask(()=>{Qx(ux.value.matcher,{failed:Q.failed,success:Q.success,skipped:Q.skipped,slow:Q.slow,onlyTests:Q.onlyTests})})}filterNodes(){queueMicrotask(()=>{Hx(ux.value.matcher,{failed:Q.failed,success:Q.success,skipped:Q.skipped,slow:Q.slow,onlyTests:Q.onlyTests})})}},yS=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var ee=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return E(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function k(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var te=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function ne(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function re(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function ie(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function ae(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var oe=function(e){e.select()};g?oe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(oe=function(e){try{e.select()}catch{}});function se(e){return e.display.wrapper.ownerDocument}function ce(e){return le(e.display.wrapper)}function le(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function A(e){return se(e).defaultView}function j(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function M(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function ue(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};de.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},de.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function N(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var fe=50,pe={toString:function(){return`CodeMirror.Pass`}},me={scroll:!1},he={origin:`*mouse`},ge={origin:`+move`};function _e(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var ve=[``];function ye(e){for(;ve.length<=e;)ve.push(be(ve)+` `);return ve[e]}function be(e){return e[e.length-1]}function xe(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Se(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function P(){}function Ce(e,t){var n;return Object.create?n=Object.create(e):(P.prototype=e,n=new P),t&&M(t,n),n}var we=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Te(e){return/\w/.test(e)||e>`€`&&(e.toUpperCase()!=e.toLowerCase()||we.test(e))}function Ee(e,t){return t?t.source.indexOf(`\\w`)>-1&&Te(e)?!0:t.test(e):Te(e)}function De(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ke(e){return e.charCodeAt(0)>=768&&Oe.test(e)}function Ae(e,t,n){for(;(n<0?t>0:t<e.length)&&ke(e.charAt(t));)t+=n;return t}function F(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function je(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var Me=null;function Ne(e,t,n){var r;Me=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:Me=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:Me=i)}return r??Me}var Pe=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,ee=S;ee<w;++ee)d[ee]=T;S=w-1}}for(var E=0,D=l;E<u;++E){var O=d[E];D==`L`&&O==`1`?d[E]=`L`:a.test(O)&&(D=O)}for(var k=0;k<u;++k)if(i.test(d[k])){var te=void 0;for(te=k+1;te<u&&i.test(d[te]);++te);for(var ne=(k?d[k-1]:l)==`L`,re=ne==((te<u?d[te]:l)==`L`)?ne?`L`:`R`:l,ie=k;ie<te;++ie)d[ie]=re;k=te-1}for(var ae=[],oe,se=0;se<u;)if(o.test(d[se])){var ce=se;for(++se;se<u&&o.test(d[se]);++se);ae.push(new c(0,ce,se))}else{var le=se,A=ae.length,j=+(t==`rtl`);for(++se;se<u&&d[se]!=`L`;++se);for(var M=le;M<se;)if(s.test(d[M])){le<M&&(ae.splice(A,0,new c(1,le,M)),A+=j);var ue=M;for(++M;M<se&&s.test(d[M]);++M);ae.splice(A,0,new c(2,ue,M)),A+=j,le=M}else ++M;le<se&&ae.splice(A,0,new c(1,le,se))}return t==`ltr`&&(ae[0].level==1&&(oe=e.match(/^\s+/))&&(ae[0].from=oe[0].length,ae.unshift(new c(0,0,oe[0].length))),be(ae).level==1&&(oe=e.match(/\s+$/))&&(be(ae).to-=oe[0].length,ae.push(new c(0,u-oe[0].length,u)))),t==`rtl`?ae.reverse():ae}})();function Fe(e,t){var n=e.order;return n??=e.order=Pe(e.text,t),n}var Ie=[],I=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||Ie).concat(n)}};function Le(e,t){return e._handlers&&e._handlers[t]||Ie}function Re(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=N(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function ze(e,t){var n=Le(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Be(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ze(e,n||t.type,e,t),Ke(t)||t.codemirrorIgnore}function Ve(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)N(n,t[r])==-1&&n.push(t[r])}function He(e,t){return Le(e,t).length>0}function Ue(e){e.prototype.on=function(e,t){I(this,e,t)},e.prototype.off=function(e,t){Re(this,e,t)}}function We(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ge(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ke(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function qe(e){We(e),Ge(e)}function Je(e){return e.target||e.srcElement}function Ye(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Xe=function(){if(o&&s<9)return!1;var e=O(`div`);return`draggable`in e||`dragDrop`in e}(),Ze;function Qe(e){if(Ze==null){var t=O(`span`,`​`);D(e,O(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Ze=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Ze?O(`span`,`​`):O(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var $e;function et(e){if($e!=null)return $e;var t=D(e,document.createTextNode(`AخA`)),n=te(t,0,1).getBoundingClientRect(),r=te(t,1,2).getBoundingClientRect();return E(e),!n||n.left==n.right?!1:$e=r.right-n.right<3}var tt=`
18
+
19
+ b`.split(/\n/).length==3?function(e){return e.split(/\r\n?|\n/)}:function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
20
+ `,t);i==-1&&(i=e.length);var a=e.slice(t,e.charAt(i-1)==`\r`?i-1:i),o=a.indexOf(`\r`);o==-1?(n.push(a),t=i+1):(n.push(a.slice(0,o)),t+=o+1)}return n},nt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints(`StartToEnd`,t)!=0},rt=(function(){var e=O(`div`);return`oncopy`in e?!0:(e.setAttribute(`oncopy`,`return;`),typeof e.oncopy==`function`)})(),it=null;function at(e){if(it!=null)return it;var t=D(e,O(`span`,`x`)),n=t.getBoundingClientRect(),r=te(t,0,1).getBoundingClientRect();return it=Math.abs(n.left-r.left)>1}var ot={},st={};function ct(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ot[e]=t}function lt(e,t){st[e]=t}function ut(e){if(typeof e==`string`&&st.hasOwnProperty(e))e=st[e];else if(e&&typeof e.name==`string`&&st.hasOwnProperty(e.name)){var t=st[e.name];typeof t==`string`&&(t={name:t}),e=Ce(t,e),e.name=t.name}else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ut(`application/xml`);else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ut(`application/json`);return typeof e==`string`?{name:e}:e||{name:`null`}}function dt(e,t){t=ut(t);var n=ot[t.name];if(!n)return dt(e,`text/plain`);var r=n(e,t);if(ft.hasOwnProperty(t.name)){var i=ft[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r[`_`+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var ft={};function pt(e,t){M(t,ft.hasOwnProperty(e)?ft[e]:ft[e]={})}function mt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function ht(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function gt(e,t,n){return e.startState?e.startState(t,n):!0}var _t=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};_t.prototype.eol=function(){return this.pos>=this.string.length},_t.prototype.sol=function(){return this.pos==this.lineStart},_t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_t.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e==`string`?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},_t.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},_t.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},_t.prototype.skipToEnd=function(){this.pos=this.string.length},_t.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},_t.prototype.backUp=function(e){this.pos-=e},_t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},_t.prototype.indentation=function(){return ue(this.string,null,this.tabSize)-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},_t.prototype.match=function(e,t,n){if(typeof e==`string`){var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},_t.prototype.current=function(){return this.string.slice(this.start,this.pos)},_t.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},_t.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},_t.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function L(e,t){if(t-=e.first,t<0||t>=e.size)throw Error(`There is no line `+(t+e.first)+` in the document.`);for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t<a){n=i;break}t-=a}return n.lines[t]}function vt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function yt(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function bt(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function xt(e){if(e.parent==null)return null;for(var t=e.parent,n=N(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function St(e,t){var n=e.first;outer:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],a=i.height;if(t<a){e=i;continue outer}t-=a,n+=i.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return n+o}function Ct(e,t){return t>=e.first&&t<e.first+e.size}function wt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function R(e,t,n){if(n===void 0&&(n=null),!(this instanceof R))return new R(e,t,n);this.line=e,this.ch=t,this.sticky=n}function Tt(e,t){return e.line-t.line||e.ch-t.ch}function Et(e,t){return e.sticky==t.sticky&&Tt(e,t)==0}function Dt(e){return R(e.line,e.ch)}function Ot(e,t){return Tt(e,t)<0?t:e}function kt(e,t){return Tt(e,t)<0?e:t}function At(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function jt(e,t){if(t.line<e.first)return R(e.first,0);var n=e.first+e.size-1;return t.line>n?R(n,L(e,n).text.length):Mt(t,L(e,t.line).text.length)}function Mt(e,t){var n=e.ch;return n==null||n>t?R(e.line,t):n<0?R(e.line,0):e}function Nt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=jt(e,t[r]);return n}var Pt=function(e,t){this.state=e,this.lookAhead=t},Ft=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,``),size:this.baseTokens[this.baseTokenPos]-e}},Ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ft.fromSaved=function(e,t,n){return t instanceof Pt?new Ft(e,mt(e.mode,t.state),n,t.lookAhead):new Ft(e,mt(e.mode,t),n)},Ft.prototype.save=function(e){var t=e===!1?this.state:mt(this.doc.mode,this.state);return this.maxLookAhead>0?new Pt(t,this.maxLookAhead):t};function It(e,t,n,r){var i=[e.state.modeGen],a={};Gt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,Gt(e,t.text,s.mode,n,function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,`overlay `+t),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+` `:``)+`overlay `+t}},a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function Lt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Rt(e,xt(t)),i=t.text.length>e.options.maxHighlightLength&&mt(e.doc.mode,r.state),a=It(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&=null,n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Ft(r,!0,t);var a=Kt(e,t,n),o=a>r.first&&L(r,a-1).stateAfter,s=o?Ft.fromSaved(r,o,a):new Ft(r,gt(r.mode),a);return r.iter(a,t,function(n){zt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function zt(e,t,n,r){var i=e.doc.mode,a=new _t(t,e.options.tabSize,n);for(a.start=a.pos=r||0,t==``&&Bt(i,n.state);!a.eol();)Vt(i,a,n.state),a.start=a.pos}function Bt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=ht(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Vt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=ht(e,n).mode);var a=e.token(t,n);if(t.pos>t.start)return a}throw Error(`Mode `+e.name+` failed to advance stream.`)}var Ht=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ut(e,t,n,r){var i=e.doc,a=i.mode,o;t=jt(i,t);var s=L(i,t.line),c=Rt(e,t.line,n),l=new _t(s.text,e.options.tabSize,c),u;for(r&&(u=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,o=Vt(a,l,c.state),r&&u.push(new Ht(l,o,mt(i.mode,c.state)));return r?u:new Ht(l,o,c.state)}function Wt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?`bgClass`:`textClass`;t[r]==null?t[r]=n[2]:RegExp(`(?:^|\\s)`+n[2]+`(?:$|\\s)`).test(t[r])||(t[r]+=` `+n[2])}return e}function Gt(e,t,n,r,i,a,o){var s=n.flattenSpans;s??=e.options.flattenSpans;var c=0,l=null,u=new _t(t,e.options.tabSize,r),d,f=e.options.addModeClass&&[null];for(t==``&&Wt(Bt(n,r.state),a);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,o&&zt(e,t,r,u.pos),u.pos=t.length,d=null):d=Wt(Vt(n,u,r.state,f),a),f){var p=f[0].name;p&&(d=`m-`+(d?p+` `+d:p))}if(!s||l!=d){for(;c<u.start;)c=Math.min(u.start,c+5e3),i(c,l);l=d}u.start=u.pos}for(;c<u.pos;){var m=Math.min(u.pos,c+5e3);i(m,l),c=m}}function Kt(e,t,n){for(var r,i,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var c=L(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof Pt?l.lookAhead:0)<=a.modeFrontier))return s;var u=ue(c.text,null,e.options.tabSize);(i==null||r>u)&&(i=s-1,r=u)}return i}function qt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=L(e,r).stateAfter;if(i&&(!(i instanceof Pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Jt=!1,Yt=!1;function Xt(){Jt=!0}function Zt(){Yt=!0}function Qt(e,t,n){this.marker=e,this.from=t,this.to=n}function $t(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function en(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||=[]).push(e[r]);return n}function tn(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||=new WeakSet);r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function nn(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&o.type==`bookmark`&&(!n||!a.marker.insertLeft)){var s=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);(r||=[]).push(new Qt(o,a.from,s?null:a.to))}}return r}function rn(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.to==null||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&o.type==`bookmark`&&(!n||a.marker.insertLeft)){var s=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);(r||=[]).push(new Qt(o,s?null:a.from-t,a.to==null?null:a.to-t))}}return r}function z(e,t){if(t.full)return null;var n=Ct(e,t.from.line)&&L(e,t.from.line).markedSpans,r=Ct(e,t.to.line)&&L(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,a=t.to.ch,o=Tt(t.from,t.to)==0,s=nn(n,i,o),c=rn(r,a,o),l=t.text.length==1,u=be(t.text).length+(l?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(f.to==null){var p=$t(c,f.marker);p?l&&(f.to=p.to==null?null:p.to+u):f.to=i}}if(c)for(var m=0;m<c.length;++m){var h=c[m];h.to!=null&&(h.to+=u),h.from==null?$t(s,h.marker)||(h.from=u,l&&(s||=[]).push(h)):(h.from+=u,l&&(s||=[]).push(h))}s&&=an(s),c&&c!=s&&(c=an(c));var g=[s];if(!l){var _=t.text.length-2,v;if(_>0&&s)for(var y=0;y<s.length;++y)s[y].to??(v||=[]).push(new Qt(s[y].marker,null,null));for(var b=0;b<_;++b)g.push(v);g.push(c)}return g}function an(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function on(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;n.readOnly&&(!r||N(r,n)==-1)&&(r||=[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(Tt(l.to,s.from)<0||Tt(l.from,s.to)>0)){var u=[c,1],d=Tt(l.from,s.from),f=Tt(l.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function sn(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function B(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function cn(e){return e.inclusiveLeft?-1:0}function ln(e){return+!!e.inclusiveRight}function un(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),a=Tt(r.from,i.from)||cn(e)-cn(t);return a?-a:Tt(r.to,i.to)||ln(e)-ln(t)||t.id-e.id}function dn(e,t){var n=Yt&&e.markedSpans,r;if(n)for(var i=void 0,a=0;a<n.length;++a)i=n[a],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||un(r,i.marker)<0)&&(r=i.marker);return r}function fn(e){return dn(e,!0)}function pn(e){return dn(e,!1)}function mn(e,t){var n=Yt&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||un(r,a.marker)<0)&&(r=a.marker)}return r}function hn(e,t,n,r,i){var a=L(e,t),o=Yt&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=Tt(l.from,n)||cn(c.marker)-cn(i),d=Tt(l.to,r)||ln(c.marker)-ln(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Tt(l.to,n)>=0:Tt(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Tt(l.from,r)<=0:Tt(l.from,r)<0)))return!0}}}function gn(e){for(var t;t=fn(e);)e=t.find(-1,!0).line;return e}function _n(e){for(var t;t=pn(e);)e=t.find(1,!0).line;return e}function vn(e){for(var t,n;t=pn(e);)e=t.find(1,!0).line,(n||=[]).push(e);return n}function yn(e,t){var n=L(e,t),r=gn(n);return n==r?t:xt(r)}function bn(e,t){if(t>e.lastLine())return t;var n=L(e,t),r;if(!xn(e,n))return t;for(;r=pn(n);)n=r.find(1,!0).line;return xt(n)+1}function xn(e,t){var n=Yt&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed&&(r.from==null||!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Sn(e,t,r)))return!0}}function Sn(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return Sn(e,r.line,$t(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if(i=t.markedSpans[a],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Sn(e,t,i))return!0}function Cn(e){e=gn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var a=n.parent;a;n=a,a=n.parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;t+=s.height}return t}function wn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=fn(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=pn(r);){var a=n.find(0,!0);t-=r.text.length-a.from.ch,r=a.to.line,t+=r.text.length-a.to.ch}return t}function Tn(e){var t=e.display,n=e.doc;t.maxLine=L(n,n.first),t.maxLineLength=wn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=wn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var En=function(e,t,n){this.text=e,B(this,t),this.height=n?n(this):1};En.prototype.lineNo=function(){return xt(this)},Ue(En);function Dn(e,t,n,r){e.text=t,e.stateAfter&&=null,e.styles&&=null,e.order!=null&&(e.order=null),sn(e),B(e,n);var i=r?r(e):1;i!=e.height&&bt(e,i)}function On(e){e.parent=null,sn(e)}var kn={},An={};function jn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?An:kn;return n[e]||(n[e]=e.replace(/\S+/g,`cm-$&`))}function Mn(e,t){var n=k(`span`,null,null,c?`padding-right: .1px`:null),r={pre:k(`pre`,[n],`CodeMirror-line`),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(`lineWrapping`)};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=Pn,et(e.display.measure)&&(o=Fe(a,e.doc.direction))&&(r.addToken=In(r.addToken,o)),r.map=[],Rn(a,r,Lt(e,a,t!=e.display.externalMeasured&&xt(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=ae(a.styleClasses.bgClass,r.bgClass||``)),a.styleClasses.textClass&&(r.textClass=ae(a.styleClasses.textClass,r.textClass||``))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Qe(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(`.cm-tab`))&&(r.content.className=`cm-tab-wrap-hack`)}return ze(e,`renderLine`,e,t.line,r.pre),r.pre.className&&(r.textClass=ae(r.pre.className,r.textClass||``)),r}function Nn(e){var t=O(`span`,`•`,`cm-invalidchar`);return t.title=`\\u`+e.charCodeAt(0).toString(16),t.setAttribute(`aria-label`,t.title),t}function Pn(e,t,n,r,i,a,c){if(t){var l=e.splitSpaces?Fn(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1,f;if(!u.test(t))e.col+=t.length,f=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,f),o&&s<9&&(d=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var p=0;;){u.lastIndex=p;var m=u.exec(t),h=m?m.index-p:t.length-p;if(h){var g=document.createTextNode(l.slice(p,p+h));o&&s<9?f.appendChild(O(`span`,[g])):f.appendChild(g),e.map.push(e.pos,e.pos+h,g),e.col+=h,e.pos+=h}if(!m)break;p+=h+1;var _=void 0;if(m[0]==` `){var v=e.cm.options.tabSize,y=v-e.col%v;_=f.appendChild(O(`span`,ye(y),`cm-tab`)),_.setAttribute(`role`,`presentation`),_.setAttribute(`cm-text`,` `),e.col+=y}else m[0]==`\r`||m[0]==`
21
+ `?(_=f.appendChild(O(`span`,m[0]==`\r`?`␍`:`␤`,`cm-invalidchar`)),_.setAttribute(`cm-text`,m[0]),e.col+=1):(_=e.cm.options.specialCharPlaceholder(m[0]),_.setAttribute(`cm-text`,m[0]),o&&s<9?f.appendChild(O(`span`,[_])):f.appendChild(_),e.col+=1);e.map.push(e.pos,e.pos+1,_),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,n||r||i||d||a||c){var b=n||``;r&&(b+=r),i&&(b+=i);var x=O(`span`,[f],b,a);if(c)for(var S in c)c.hasOwnProperty(S)&&S!=`style`&&S!=`class`&&x.setAttribute(S,c[S]);return e.content.appendChild(x)}e.content.appendChild(f)}}function Fn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r=``,i=0;i<e.length;i++){var a=e.charAt(i);a==` `&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(a=`\xA0`),r+=a,n=a==` `}return r}function In(e,t){return function(n,r,i,a,o,s,c){i=i?i+` cm-force-border`:`cm-force-border`;for(var l=n.pos,u=l+r.length;;){for(var d=void 0,f=0;f<t.length&&(d=t[f],!(d.to>l&&d.from<=l));f++);if(d.to>=u)return e(n,r,i,a,o,s,c);e(n,r.slice(0,d.to-l),i,a,null,s,c),a=null,r=r.slice(d.to-l),l=d.to}}}function Ln(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||=e.content.appendChild(document.createElement(`span`)),i.setAttribute(`cm-marker`,n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Rn(e,t,n){var r=e.markedSpans,i=e.text,a=0;if(!r){for(var o=1;o<n.length;o+=2)t.addToken(t,i.slice(a,a=n[o]),jn(n[o+1],t.cm.options));return}for(var s=i.length,c=0,l=1,u=``,d,f,p=0,m,h,g,_,v;;){if(p==c){m=h=g=f=``,v=null,_=null,p=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var S=r[x],C=S.marker;if(C.type==`bookmark`&&S.from==c&&C.widgetNode)y.push(C);else if(S.from<=c&&(S.to==null||S.to>c||C.collapsed&&S.to==c&&S.from==c)){if(S.to!=null&&S.to!=c&&p>S.to&&(p=S.to,h=``),C.className&&(m+=` `+C.className),C.css&&(f=(f?f+`;`:``)+C.css),C.startStyle&&S.from==c&&(g+=` `+C.startStyle),C.endStyle&&S.to==p&&(b||=[]).push(C.endStyle,S.to),C.title&&((v||={}).title=C.title),C.attributes)for(var w in C.attributes)(v||={})[w]=C.attributes[w];C.collapsed&&(!_||un(_.marker,C)<0)&&(_=S)}else S.from>c&&p>S.from&&(p=S.from)}if(b)for(var T=0;T<b.length;T+=2)b[T+1]==p&&(h+=` `+b[T]);if(!_||_.from==c)for(var ee=0;ee<y.length;++ee)Ln(t,0,y[ee]);if(_&&(_.from||0)==c){if(Ln(t,(_.to==null?s+1:_.to)-c,_.marker,_.from==null),_.to==null)return;_.to==c&&(_=!1)}}if(c>=s)break;for(var E=Math.min(s,p);;){if(u){var D=c+u.length;if(!_){var O=D>E?u.slice(0,E-c):u;t.addToken(t,O,d?d+m:m,g,c+O.length==p?h:``,f,v)}if(D>=E){u=u.slice(E-c),c=E;break}c=D,g=``}u=i.slice(a,a=n[l++]),d=jn(n[l++],t.cm.options)}}}function zn(e,t,n){this.line=t,this.rest=vn(t),this.size=this.rest?xt(be(this.rest))-n+1:1,this.node=this.text=null,this.hidden=xn(e,t)}function Bn(e,t,n){for(var r=[],i,a=t;a<n;a=i){var o=new zn(e.doc,L(e.doc,a),a);i=a+o.size,r.push(o)}return r}var Vn=null;function Hn(e){Vn?Vn.ops.push(e):e.ownsGroup=Vn={ops:[e],delayedCallbacks:[]}}function Un(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Wn(e,t){var n=e.ownsGroup;if(n)try{Un(n)}finally{Vn=null,t(n)}}var Gn=null;function Kn(e,t){var n=Le(e,t);if(n.length){var r=Array.prototype.slice.call(arguments,2),i;Vn?i=Vn.delayedCallbacks:Gn?i=Gn:(i=Gn=[],setTimeout(qn,0));for(var a=function(e){i.push(function(){return n[e].apply(null,r)})},o=0;o<n.length;++o)a(o)}}function qn(){var e=Gn;Gn=null;for(var t=0;t<e.length;++t)e[t]()}function Jn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var a=t.changes[i];a==`text`?V(e,t):a==`gutter`?$n(e,t,n,r):a==`class`?Qn(e,t):a==`widget`&&er(e,t,r)}t.changes=null}function Yn(e){return e.node==e.text&&(e.node=O(`div`,null,null,`position: relative`),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),o&&s<8&&(e.node.style.zIndex=2)),e.node}function Xn(e,t){var n=t.bgClass?t.bgClass+` `+(t.line.bgClass||``):t.line.bgClass;if(n&&(n+=` CodeMirror-linebackground`),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Yn(t);t.background=r.insertBefore(O(`div`,null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Zn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Mn(e,t)}function V(e,t){var n=t.text.className,r=Zn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Qn(e,t)):n&&(t.text.className=n)}function Qn(e,t){Xn(e,t),t.line.wrapClass?Yn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className=``);var n=t.textClass?t.textClass+` `+(t.line.textClass||``):t.line.textClass;t.text.className=n||``}function $n(e,t,n,r){if(t.gutter&&=(t.node.removeChild(t.gutter),null),t.gutterBackground&&=(t.node.removeChild(t.gutterBackground),null),t.line.gutterClass){var i=Yn(t);t.gutterBackground=O(`div`,null,`CodeMirror-gutter-background `+t.line.gutterClass,`left: `+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+`px; width: `+r.gutterTotalWidth+`px`),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var o=Yn(t),s=t.gutter=O(`div`,null,`CodeMirror-gutter-wrapper`,`left: `+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+`px`);if(s.setAttribute(`aria-hidden`,`true`),e.display.input.setUneditable(s),o.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=` `+t.line.gutterClass),e.options.lineNumbers&&(!a||!a[`CodeMirror-linenumbers`])&&(t.lineNumber=s.appendChild(O(`div`,wt(e.options,n),`CodeMirror-linenumber CodeMirror-gutter-elt`,`left: `+r.gutterLeft[`CodeMirror-linenumbers`]+`px; width: `+e.display.lineNumInnerWidth+`px`))),a)for(var c=0;c<e.display.gutterSpecs.length;++c){var l=e.display.gutterSpecs[c].className,u=a.hasOwnProperty(l)&&a[l];u&&s.appendChild(O(`div`,[u],`CodeMirror-gutter-elt`,`left: `+r.gutterLeft[l]+`px; width: `+r.gutterWidth[l]+`px`))}}}function er(e,t,n){t.alignable&&=null;for(var r=T(`CodeMirror-linewidget`),i=t.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);nr(e,t,n)}function tr(e,t,n,r){var i=Zn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Qn(e,t),$n(e,t,n,r),nr(e,t,r),t.node}function nr(e,t,n){if(rr(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)rr(e,t.rest[r],t,n,!1)}function rr(e,t,n,r,i){if(t.widgets)for(var a=Yn(n),o=0,s=t.widgets;o<s.length;++o){var c=s[o],l=O(`div`,[c.node],`CodeMirror-linewidget`+(c.className?` `+c.className:``));c.handleMouseEvents||l.setAttribute(`cm-ignore-events`,`true`),ir(c,l,n,r),e.display.input.setUneditable(l),i&&c.above?a.insertBefore(l,n.gutter||n.text):a.appendChild(l),Kn(c,`redraw`)}}function ir(e,t,n,r){if(e.noHScroll){(n.alignable||=[]).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+`px`,e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+`px`),t.style.width=i+`px`}e.coverGutter&&(t.style.zIndex=5,t.style.position=`relative`,e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+`px`))}function ar(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ne(document.body,e.node)){var n=`position: relative;`;e.coverGutter&&(n+=`margin-left: -`+t.display.gutters.offsetWidth+`px;`),e.noHScroll&&(n+=`width: `+t.display.wrapper.clientWidth+`px;`),D(t.display.measure,O(`div`,[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function or(e,t){for(var n=Je(t);n!=e.wrapper;n=n.parentNode)if(!n||n.nodeType==1&&n.getAttribute(`cm-ignore-events`)==`true`||n.parentNode==e.sizer&&n!=e.mover)return!0}function sr(e){return e.lineSpace.offsetTop}function cr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function lr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=D(e.measure,O(`pre`,`x`,`CodeMirror-line-like`)),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function ur(e){return fe-e.display.nativeBarWidth}function dr(e){return e.display.scroller.clientWidth-ur(e)-e.display.barWidth}function fr(e){return e.display.scroller.clientHeight-ur(e)-e.display.barHeight}function pr(e,t,n){var r=e.options.lineWrapping,i=r&&dr(e);if(!t.measure.heights||r&&t.measure.width!=i){var a=t.measure.heights=[];if(r){t.measure.width=i;for(var o=t.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var c=o[s],l=o[s+1];Math.abs(c.bottom-l.bottom)>2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}function mr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(xt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function hr(e,t){t=gn(t);var n=xt(t),r=e.display.externalMeasured=new zn(e.doc,t,n);r.lineN=n;var i=r.built=Mn(e,r);return r.text=i.pre,D(e.display.lineMeasure,i.pre),r}function gr(e,t,n,r){return yr(e,vr(e,t),n,r)}function _r(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Zr(e,t)];var n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size)return n}function vr(e,t){var n=xt(t),r=_r(e,n);r&&!r.text?r=null:r&&r.changes&&(Jn(e,r,n,Kr(e)),e.curOp.forceUpdate=!0),r||=hr(e,t);var i=mr(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function yr(e,t,n,r,i){t.before&&(n=-1);var a=n+(r||``),o;return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||=t.view.text.getBoundingClientRect(),t.hasHeights||=(pr(e,t.view,t.rect),!0),o=Cr(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var br={left:0,right:0,top:0,bottom:0};function xr(e,t,n){for(var r,i,a,o,s,c,l=0;l<e.length;l+=3)if(s=e[l],c=e[l+1],t<s?(i=0,a=1,o=`left`):t<c?(i=t-s,a=i+1):(l==e.length-3||t==c&&e[l+3]>t)&&(a=c-s,i=a-1,t>=c&&(o=`right`)),i!=null){if(r=e[l+2],s==c&&n==(r.insertLeft?`left`:`right`)&&(o=n),n==`left`&&i==0)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[(l-=3)+2],o=`left`;if(n==`right`&&i==c-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],o=`right`;break}return{node:r,start:i,end:a,collapse:o,coverStart:s,coverEnd:c}}function Sr(e,t){var n=br;if(t==`left`)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Cr(e,t,n,r){var i=xr(t.map,n,r),a=i.node,c=i.start,l=i.end,u=i.collapse,d;if(a.nodeType==3){for(var f=0;f<4;f++){for(;c&&ke(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+l<i.coverEnd&&ke(t.line.text.charAt(i.coverStart+l));)++l;if(d=o&&s<9&&c==0&&l==i.coverEnd-i.coverStart?a.parentNode.getBoundingClientRect():Sr(te(a,c,l).getClientRects(),r),d.left||d.right||c==0)break;l=c,--c,u=`right`}o&&s<11&&(d=wr(e.display.measure,d))}else{c>0&&(u=r=`right`);var p;d=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p[r==`right`?p.length-1:0]:a.getBoundingClientRect()}if(o&&s<9&&!c&&(!d||!d.left&&!d.right)){var m=a.parentNode.getClientRects()[0];d=m?{left:m.left,right:m.left+Gr(e.display),top:m.top,bottom:m.bottom}:br}for(var h=d.top-t.rect.top,g=d.bottom-t.rect.top,_=(h+g)/2,v=t.view.measure.heights,y=0;y<v.length-1&&!(_<v[y]);y++);var b=y?v[y-1]:0,x=v[y],S={left:(u==`right`?d.right:d.left)-t.rect.left,right:(u==`left`?d.left:d.right)-t.rect.left,top:b,bottom:x};return!d.left&&!d.right&&(S.bogus=!0),e.options.singleCursorHeightPerLine||(S.rtop=h,S.rbottom=g),S}function wr(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!at(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function Tr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Er(e){e.display.externalMeasure=null,E(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Tr(e.display.view[t])}function Dr(e){Er(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function H(e){return u&&_?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Or(e){return u&&_?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function kr(e){var t=gn(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=ar(t[r]));return n}function Ar(e,t,n,r,i){if(!i){var a=kr(t);n.top+=a,n.bottom+=a}if(r==`line`)return n;r||=`local`;var o=Cn(t);if(r==`local`?o+=sr(e.display):o-=e.display.viewOffset,r==`page`||r==`window`){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+(r==`window`?0:Or(se(e)));var c=s.left+(r==`window`?0:H(se(e)));n.left+=c,n.right+=c}return n.top+=o,n.bottom+=o,n}function jr(e,t,n){if(n==`div`)return t;var r=t.left,i=t.top;if(n==`page`)r-=H(se(e)),i-=Or(se(e));else if(n==`local`||!n){var a=e.display.sizer.getBoundingClientRect();r+=a.left,i+=a.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:i-o.top}}function Mr(e,t,n,r,i){return r||=L(e.doc,t.line),Ar(e,r,gr(e,r,t.ch,i),n)}function Nr(e,t,n,r,i,a){r||=L(e.doc,t.line),i||=vr(e,r);function o(t,o){var s=yr(e,i,t,o?`right`:`left`,a);return o?s.left=s.right:s.right=s.left,Ar(e,r,s,n)}var s=Fe(r,e.doc.direction),c=t.ch,l=t.sticky;if(c>=r.text.length?(c=r.text.length,l=`before`):c<=0&&(c=0,l=`after`),!s)return o(l==`before`?c-1:c,l==`before`);function u(e,t,n){var r=s[t].level==1;return o(n?e-1:e,r!=n)}var d=Ne(s,c,l),f=Me,p=u(c,d,l==`before`);return f!=null&&(p.other=u(c,f,l!=`before`)),p}function Pr(e,t){var n=0;t=jt(e.doc,t),e.options.lineWrapping||(n=Gr(e.display)*t.ch);var r=L(e.doc,t.line),i=Cn(r)+sr(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Fr(e,t,n,r,i){var a=R(e,t,n);return a.xRel=i,r&&(a.outside=r),a}function Ir(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Fr(r.first,0,null,-1,-1);var i=St(r,n),a=r.first+r.size-1;if(i>a)return Fr(r.first+r.size-1,L(r,a).text.length,null,1,1);t<0&&(t=0);for(var o=L(r,i);;){var s=Br(e,o,i,t,n),c=mn(o,s.ch+ +(s.xRel>0||s.outside>0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=L(r,i=l.line)}}function Lr(e,t,n,r){r-=kr(t);var i=t.text.length,a=F(function(t){return yr(e,n,t-1).bottom<=r},i,0);return i=F(function(t){return yr(e,n,t).top>r},a,i),{begin:a,end:i}}function Rr(e,t,n,r){n||=vr(e,t);var i=Ar(e,t,yr(e,n,r),`line`).top;return Lr(e,t,n,i)}function zr(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Br(e,t,n,r,i){i-=Cn(t);var a=vr(e,t),o=kr(t),s=0,c=t.text.length,l=!0,u=Fe(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Hr:Vr)(e,t,n,a,u,r,i);l=d.level!=1,s=l?d.from:d.to-1,c=l?d.to:d.from-1}var f=null,p=null,m=F(function(t){var n=yr(e,a,t);return n.top+=o,n.bottom+=o,zr(n,r,i,!1)?(n.top<=i&&n.left<=r&&(f=t,p=n),!0):!1},s,c),h,g,_=!1;if(p){var v=r-p.left<p.right-r,y=v==l;m=f+ +!y,g=y?`after`:`before`,h=v?p.left:p.right}else{!l&&(m==c||m==s)&&m++,g=m==0?`after`:m==t.text.length?`before`:yr(e,a,m-+!!l).bottom+o<=i==l?`after`:`before`;var b=Nr(e,R(n,m,g),`line`,t,a);h=b.left,_=i<b.top?-1:+(i>=b.bottom)}return m=Ae(t.text,m,1),Fr(n,m,g,_,r-h)}function Vr(e,t,n,r,i,a,o){var s=F(function(s){var c=i[s],l=c.level!=1;return zr(Nr(e,R(n,l?c.to:c.from,l?`before`:`after`),`line`,t,r),a,o,!0)},0,i.length-1),c=i[s];if(s>0){var l=c.level!=1,u=Nr(e,R(n,l?c.from:c.to,l?`after`:`before`),`line`,t,r);zr(u,a,o,!0)&&u.top>o&&(c=i[s-1])}return c}function Hr(e,t,n,r,i,a,o){var s=Lr(e,t,r,o),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=l||p.to<=c)){var m=yr(e,r,p.level==1?Math.max(c,p.from):Math.min(l,p.to)-1).right,h=m<a?a-m+1e9:m-a;(!u||d>h)&&(u=p,d=h)}}return u||=i[i.length-1],u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}var Ur;function Wr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ur==null){Ur=O(`pre`,null,`CodeMirror-line-like`);for(var t=0;t<49;++t)Ur.appendChild(document.createTextNode(`x`)),Ur.appendChild(O(`br`));Ur.appendChild(document.createTextNode(`x`))}D(e.measure,Ur);var n=Ur.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function Gr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=O(`span`,`xxxxxxxxxx`),n=O(`pre`,[t],`CodeMirror-line-like`);D(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Kr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,a=t.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=e.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:qr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function qr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Jr(e){var t=Wr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Gr(e.display)-3);return function(i){if(xn(e.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return n?a+(Math.ceil(i.text.length/r)||1)*t:a+t}}function Yr(e){var t=e.doc,n=Jr(e);t.iter(function(e){var t=n(e);t!=e.height&&bt(e,t)})}function Xr(e,t,n,r){var i=e.display;if(!n&&Je(t).getAttribute(`cm-not-content`)==`true`)return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=t.clientX-s.left,o=t.clientY-s.top}catch{return null}var c=Ir(e,a,o),l;if(r&&c.xRel>0&&(l=L(e.doc,c.line).text).length==c.ch){var u=ue(l,l.length,e.options.tabSize)-l.length;c=R(c.line,Math.max(0,Math.round((a-lr(e.display).left)/Gr(e.display))-u))}return c}function Zr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Qr(e,t,n,r){t??=e.doc.first,n??=e.doc.first+e.doc.size,r||=0;var i=e.display;if(r&&n<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Yt&&yn(e.doc,t)<i.viewTo&&ei(e);else if(n<=i.viewFrom)Yt&&bn(e.doc,n+r)>i.viewFrom?ei(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)ei(e);else if(t<=i.viewFrom){var a=ti(e,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):ei(e)}else if(n>=i.viewTo){var o=ti(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):ei(e)}else{var s=ti(e,t,t,-1),c=ti(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(Bn(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):ei(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function $r(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var a=r.view[Zr(e,t)];if(a.node!=null){var o=a.changes||=[];N(o,n)==-1&&o.push(n)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ti(e,t,n,r){var i=Zr(e,t),a,o=e.display.view;if(!Yt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,c=0;c<i;c++)s+=o[c].size;if(s!=t){if(r>0){if(i==o.length-1)return null;a=s+o[i].size-t,i++}else a=s-t;t+=a,n+=a}for(;yn(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-+(r<0)].size,i+=r}return{index:i,lineN:n}}function ni(e,t,n){var r=e.display;r.view.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Bn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Bn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Zr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Bn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Zr(e,n)))),r.viewTo=n}function ri(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];!i.hidden&&(!i.node||i.changes)&&++n}return n}function ii(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ai(e,t){t===void 0&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),a=r.selection=document.createDocumentFragment(),o=e.options.$customCursor;o&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(!(!t&&s==n.sel.primIndex)){var c=n.sel.ranges[s];if(!(c.from().line>=e.display.viewTo||c.to().line<e.display.viewFrom)){var l=c.empty();if(o){var u=o(e,c);u&&oi(e,u,i)}else (l||e.options.showCursorWhenSelecting)&&oi(e,c.head,i);l||ci(e,c,a)}}return r}function oi(e,t,n){var r=Nr(e,t,`div`,null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O(`div`,`\xA0`,`CodeMirror-cursor`));if(i.style.left=r.left+`px`,i.style.top=r.top+`px`,i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+`px`,/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var a=Mr(e,t,`div`,null,null),o=a.right-a.left;i.style.width=(o>0?o:e.defaultCharWidth())+`px`}if(r.other){var s=n.appendChild(O(`div`,`\xA0`,`CodeMirror-cursor CodeMirror-secondarycursor`));s.style.display=``,s.style.left=r.other.left+`px`,s.style.top=r.other.top+`px`,s.style.height=(r.other.bottom-r.other.top)*.85+`px`}}function si(e,t){return e.top-t.top||e.left-t.left}function ci(e,t,n){var r=e.display,i=e.doc,a=document.createDocumentFragment(),o=lr(e.display),s=o.left,c=Math.max(r.sizerWidth,dr(e)-r.sizer.offsetLeft)-o.right,l=i.direction==`ltr`;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(O(`div`,null,`CodeMirror-selected`,`position: absolute; left: `+e+`px;
22
+ top: `+t+`px; width: `+(n??c-e)+`px;
23
+ height: `+(r-t)+`px`))}function d(t,n,r){var a=L(i,t),o=a.text.length,d,f;function p(n,r){return Mr(e,R(t,n),`div`,a,r)}function m(t,n,r){var i=Rr(e,a,null,t),o=n==`ltr`==(r==`after`)?`left`:`right`;return p(r==`after`?i.begin:i.end-(/\s/.test(a.text.charAt(i.end-1))?2:1),o)[o]}var h=Fe(a,i.direction);return je(h,n||0,r??o,function(e,t,i,a){var g=i==`ltr`,_=p(e,g?`left`:`right`),v=p(t-1,g?`right`:`left`),y=n==null&&e==0,b=r==null&&t==o,x=a==0,S=!h||a==h.length-1;if(v.top-_.top<=3){var C=(l?y:b)&&x,w=(l?b:y)&&S,T=C?s:(g?_:v).left,ee=w?c:(g?v:_).right;u(T,_.top,ee-T,_.bottom)}else{var E,D,O,k;g?(E=l&&y&&x?s:_.left,D=l?c:m(e,i,`before`),O=l?s:m(t,i,`after`),k=l&&b&&S?c:v.right):(E=l?m(e,i,`before`):s,D=!l&&y&&x?c:_.right,O=!l&&b&&S?s:v.left,k=l?m(t,i,`after`):c),u(E,_.top,D-E,_.bottom),_.bottom<v.top&&u(s,_.bottom,null,v.top),u(O,v.top,k-O,v.bottom)}(!d||si(_,d)<0)&&(d=_),si(v,d)<0&&(d=v),(!f||si(_,f)<0)&&(f=_),si(v,f)<0&&(f=v)}),{start:d,end:f}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var m=L(i,f.line),h=L(i,p.line),g=gn(m)==gn(h),_=d(f.line,f.ch,g?m.text.length+1:null).end,v=d(p.line,g?0:null,p.ch).start;g&&(_.top<v.top-2?(u(_.right,_.top,null,_.bottom),u(s,v.top,v.left,v.bottom)):u(_.right,_.top,v.left-_.right,_.bottom)),_.bottom<v.top&&u(s,_.bottom,null,v.top)}n.appendChild(a)}function li(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility=``,e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||pi(e),t.cursorDiv.style.visibility=(n=!n)?``:`hidden`},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility=`hidden`)}}function ui(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||fi(e))}function di(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&pi(e))},100)}function fi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!=`nocursor`&&(e.state.focused||(ze(e,`focus`,e,t),e.state.focused=!0,ie(e.display.wrapper,`CodeMirror-focused`),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),c&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),li(e))}function pi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ze(e,`blur`,e,t),e.state.focused=!1,ee(e.display.wrapper,`CodeMirror-focused`)),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function mi(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,a=0,c=0;c<t.view.length;c++){var l=t.view[c],u=e.options.lineWrapping,d=void 0,f=0;if(!l.hidden){if(i+=l.line.height,o&&s<8){var p=l.node.offsetTop+l.node.offsetHeight;d=p-n,n=p}else{var m=l.node.getBoundingClientRect();d=m.bottom-m.top,!u&&l.text.firstChild&&(f=l.text.firstChild.getBoundingClientRect().right-m.left-1)}var h=l.line.height-d;if((h>.005||h<-.005)&&(i<r&&(a-=h),bt(l.line,d),hi(l.line),l.rest))for(var g=0;g<l.rest.length;g++)hi(l.rest[g]);if(f>e.display.sizerWidth){var _=Math.ceil(f/Gr(e.display));_>e.display.maxLineLength&&(e.display.maxLineLength=_,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(a)>2&&(t.scroller.scrollTop+=a)}function hi(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function gi(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-sr(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,a=St(t,r),o=St(t,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<a?(a=s,o=St(t,Cn(L(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=o&&(a=St(t,Cn(L(t,c))-e.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}function _i(e,t){if(!Be(e,`scrollCursorIntoView`)){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,a=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(a.defaultView.innerHeight||a.documentElement.clientHeight)&&(i=!1),i!=null&&!h){var o=O(`div`,`​`,null,`position: absolute;
24
+ top: `+(t.top-n.viewOffset-sr(e.display))+`px;
25
+ height: `+(t.bottom-t.top+ur(e)+n.barHeight)+`px;
26
+ left: `+t.left+`px; width: `+Math.max(2,t.right-t.left)+`px;`);e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function vi(e,t,n,r){r??=0;var i;!e.options.lineWrapping&&t==n&&(n=t.sticky==`before`?R(t.line,t.ch+1,`before`):t,t=t.ch?R(t.line,t.sticky==`before`?t.ch-1:t.ch,`after`):t);for(var a=0;a<5;a++){var o=!1,s=Nr(e,t),c=!n||n==t?s:Nr(e,n);i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r};var l=bi(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(l.scrollTop!=null&&(Di(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),l.scrollLeft!=null&&(ki(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(o=!0)),!o)break}return i}function yi(e,t){var n=bi(e,t);n.scrollTop!=null&&Di(e,n.scrollTop),n.scrollLeft!=null&&ki(e,n.scrollLeft)}function bi(e,t){var n=e.display,r=Wr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,a=fr(e),o={};t.bottom-t.top>a&&(t.bottom=t.top+a);var s=e.doc.height+cr(n),c=t.top<r,l=t.bottom>s-r;if(t.top<i)o.scrollTop=c?0:t.top;else if(t.bottom>i+a){var u=Math.min(t.top,(l?s:t.bottom)-a);u!=i&&(o.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=dr(e)-n.gutters.offsetWidth,m=t.right-t.left>p;return m&&(t.right=t.left+p),t.left<10?o.scrollLeft=0:t.left<f?o.scrollLeft=Math.max(0,t.left+d-(m?0:10)):t.right>p+f-3&&(o.scrollLeft=t.right+(m?0:10)-p),o}function xi(e,t){t!=null&&(Ti(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Si(e){Ti(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ci(e,t,n){(t!=null||n!=null)&&Ti(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function wi(e,t){Ti(e),e.curOp.scrollToPos=t}function Ti(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Ei(e,Pr(e,t.from),Pr(e,t.to),t.margin))}function Ei(e,t,n,r){var i=bi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ci(e,i.scrollLeft,i.scrollTop)}function Di(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ia(e,{top:t}),Oi(e,t,!0),n&&ia(e),Xi(e,100))}function Oi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ki(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,ca(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ai(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+cr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+ur(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var ji=function(e,t,n){this.cm=n;var r=this.vert=O(`div`,[O(`div`,null,null,`min-width: 1px`)],`CodeMirror-vscrollbar`),i=this.horiz=O(`div`,[O(`div`,null,null,`height: 100%; min-height: 1px`)],`CodeMirror-hscrollbar`);r.tabIndex=i.tabIndex=-1,e(r),e(i),I(r,`scroll`,function(){r.clientHeight&&t(r.scrollTop,`vertical`)}),I(i,`scroll`,function(){i.clientWidth&&t(i.scrollLeft,`horizontal`)}),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth=`18px`)};ji.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display=`block`,this.vert.style.bottom=t?r+`px`:`0`;var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+`px`}else this.vert.scrollTop=0,this.vert.style.display=``,this.vert.firstChild.style.height=`0`;if(t){this.horiz.style.display=`block`,this.horiz.style.right=n?r+`px`:`0`,this.horiz.style.left=e.barLeft+`px`;var a=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+`px`}else this.horiz.style.display=``,this.horiz.firstChild.style.width=`0`;return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},ji.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,`horiz`)},ji.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,`vert`)},ji.prototype.zeroWidthHack=function(){var e=y&&!m?`12px`:`18px`;this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility=`hidden`,this.disableHoriz=new de,this.disableVert=new de},ji.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility=``;function r(){var i=e.getBoundingClientRect();(n==`vert`?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))==e?t.set(1e3,r):e.style.visibility=`hidden`}t.set(1e3,r)},ji.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Mi=function(){};Mi.prototype.update=function(){return{bottom:0,right:0}},Mi.prototype.setScrollLeft=function(){},Mi.prototype.setScrollTop=function(){},Mi.prototype.clear=function(){};function Ni(e,t){t||=Ai(e);var n=e.display.barWidth,r=e.display.barHeight;Pi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&mi(e),Pi(e,Ai(e)),n=e.display.barWidth,r=e.display.barHeight}function Pi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+`px`,n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+`px`,n.heightForcer.style.borderBottom=r.bottom+`px solid transparent`,r.right&&r.bottom?(n.scrollbarFiller.style.display=`block`,n.scrollbarFiller.style.height=r.bottom+`px`,n.scrollbarFiller.style.width=r.right+`px`):n.scrollbarFiller.style.display=``,r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display=`block`,n.gutterFiller.style.height=r.bottom+`px`,n.gutterFiller.style.width=t.gutterWidth+`px`):n.gutterFiller.style.display=``}var Fi={native:ji,null:Mi};function Ii(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Fi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),I(t,`mousedown`,function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute(`cm-not-content`,`true`)},function(t,n){n==`horizontal`?ki(e,t):Di(e,t)},e),e.display.scrollbars.addClass&&ie(e.display.wrapper,e.display.scrollbars.addClass)}var Li=0;function Ri(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Li,markArrays:null},Hn(e.curOp)}function zi(e){var t=e.curOp;t&&Wn(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Bi(e)})}function Bi(e){for(var t=e.ops,n=0;n<t.length;n++)Vi(t[n]);for(var r=0;r<t.length;r++)Hi(t[r]);for(var i=0;i<t.length;i++)Ui(t[i]);for(var a=0;a<t.length;a++)Wi(t[a]);for(var o=0;o<t.length;o++)Gi(t[o])}function Vi(e){var t=e.cm,n=t.display;$i(t),e.updateMaxLine&&Tn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Qi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Hi(e){e.updatedDisplay=e.mustUpdate&&na(e.cm,e.update)}function Ui(e){var t=e.cm,n=t.display;e.updatedDisplay&&mi(t),e.barMeasure=Ai(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=gr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+ur(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-dr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Wi(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+`px`,e.maxScrollLeft<t.doc.scrollLeft&&ki(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==re(ce(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ni(t,e.barMeasure),e.updatedDisplay&&sa(t,e.barMeasure),e.selectionChanged&&li(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&ui(e.cm)}function Gi(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&ra(t,e.update),n.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(n.wheelStartX=n.wheelStartY=null),e.scrollTop!=null&&Oi(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ki(t,e.scrollLeft,!0,!0),e.scrollToPos&&_i(t,vi(t,jt(r,e.scrollToPos.from),jt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||ze(i[o],`hide`);if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&ze(a[s],`unhide`);n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ze(t,`changes`,t,e.changeObjs),e.update&&e.update.finish()}function Ki(e,t){if(e.curOp)return t();Ri(e);try{return t()}finally{zi(e)}}function qi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ri(e);try{return t.apply(e,arguments)}finally{zi(e)}}}function Ji(e){return function(){if(this.curOp)return e.apply(this,arguments);Ri(this);try{return e.apply(this,arguments)}finally{zi(this)}}}function Yi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ri(t);try{return e.apply(this,arguments)}finally{zi(t)}}}function Xi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,j(Zi,e))}function Zi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Rt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(a){if(r.line>=e.display.viewFrom){var o=a.styles,s=a.text.length>e.options.maxHighlightLength?mt(t.mode,r.state):null,c=It(e,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,u=c.classes;u?a.styleClasses=u:l&&(a.styleClasses=null);for(var d=!o||o.length!=a.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!d&&f<o.length;++f)d=o[f]!=a.styles[f];d&&i.push(r.line),a.stateAfter=r.save(),r.nextLine()}else a.text.length<=e.options.maxHighlightLength&&zt(e,a.text,r),a.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Xi(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ki(e,function(){for(var t=0;t<i.length;t++)$r(e,i[t],`text`)})}}var Qi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=gi(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=dr(e),this.force=n,this.dims=Kr(e),this.events=[]};Qi.prototype.signal=function(e,t){He(e,t)&&this.events.push(arguments)},Qi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ze.apply(null,this.events[e])};function $i(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=ur(e)+`px`,t.sizer.style.marginBottom=-t.nativeBarWidth+`px`,t.sizer.style.borderRightWidth=ur(e)+`px`,t.scrollbarsClipped=!0)}function ea(e){if(e.hasFocus())return null;var t=re(ce(e));if(!t||!ne(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=A(e).getSelection();r.anchorNode&&r.extend&&ne(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function ta(e){if(!(!e||!e.activeElt||e.activeElt==re(le(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ne(document.body,e.anchorNode)&&ne(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function na(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return ei(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&ri(e)==0)return!1;la(e)&&(ei(e),t.dims=Kr(e));var i=r.first+r.size,a=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Yt&&(a=yn(e.doc,a),o=bn(e.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;ni(e,a,o),n.viewOffset=Cn(L(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+`px`;var c=ri(e);if(!s&&c==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var l=ea(e);return c>4&&(n.lineDiv.style.display=`none`),aa(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=``),n.renderedView=n.view,ta(l),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Xi(e,400)),n.updateLineNumbers=null,!0}function ra(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==dr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+cr(e.display)-fr(e),n.top)}),t.visible=gi(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=gi(e.display,e.doc,n));if(!na(e,t))break;mi(e);var i=Ai(e);ii(e),Ni(e,i),sa(e,i),t.force=!1}t.signal(e,`update`,e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,`viewportChange`,e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ia(e,t){var n=new Qi(e,t);if(na(e,n)){mi(e),ra(e,n);var r=Ai(e);ii(e),Ni(e,r),sa(e,r),n.finish()}}function aa(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(t){var n=t.nextSibling;return c&&y&&e.display.currentWheelTarget==t?t.style.display=`none`:t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,d=0;d<l.length;d++){var f=l[d];if(!f.hidden)if(!f.node||f.node.parentNode!=a){var p=tr(e,f,u,n);a.insertBefore(p,o)}else{for(;o!=f.node;)o=s(o);var m=i&&t!=null&&t<=u&&f.lineNumber;f.changes&&(N(f.changes,`gutter`)>-1&&(m=!1),Jn(e,f,u,n)),m&&(E(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(wt(e.options,u)))),o=f.node.nextSibling}u+=f.size}for(;o;)o=s(o)}function oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+`px`,Kn(e,`gutterChanged`,e)}function sa(e,t){e.display.sizer.style.minHeight=t.docHeight+`px`,e.display.heightForcer.style.top=t.docHeight+`px`,e.display.gutters.style.height=t.docHeight+e.display.barHeight+ur(e)+`px`}function ca(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=qr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,a=r+`px`,o=0;o<n.length;o++)if(!n[o].hidden){e.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=a),n[o].gutterBackground&&(n[o].gutterBackground.style.left=a));var s=n[o].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=a}e.options.fixedGutter&&(t.gutters.style.left=r+i+`px`)}}function la(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=wt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O(`div`,[O(`div`,n)],`CodeMirror-linenumber CodeMirror-gutter-elt`)),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return r.lineGutter.style.width=``,r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+`px`,oa(e.display),!0}return!1}function ua(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var a=e[i],o=null;if(typeof a!=`string`&&(o=a.style,a=a.className),a==`CodeMirror-linenumbers`)if(t)r=!0;else continue;n.push({className:a,style:o})}return t&&!r&&n.push({className:`CodeMirror-linenumbers`,style:null}),n}function da(e){var t=e.gutters,n=e.gutterSpecs;E(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],a=i.className,o=i.style,s=t.appendChild(O(`div`,null,`CodeMirror-gutter `+a));o&&(s.style.cssText=o),a==`CodeMirror-linenumbers`&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+`px`)}t.style.display=n.length?``:`none`,oa(e)}function fa(e){da(e.display),Qr(e),ca(e)}function pa(e,t,r,i){var a=this;this.input=r,a.scrollbarFiller=O(`div`,null,`CodeMirror-scrollbar-filler`),a.scrollbarFiller.setAttribute(`cm-not-content`,`true`),a.gutterFiller=O(`div`,null,`CodeMirror-gutter-filler`),a.gutterFiller.setAttribute(`cm-not-content`,`true`),a.lineDiv=k(`div`,null,`CodeMirror-code`),a.selectionDiv=O(`div`,null,null,`position: relative; z-index: 1`),a.cursorDiv=O(`div`,null,`CodeMirror-cursors`),a.measure=O(`div`,null,`CodeMirror-measure`),a.lineMeasure=O(`div`,null,`CodeMirror-measure`),a.lineSpace=k(`div`,[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,`position: relative; outline: none`),a.mover=O(`div`,[k(`div`,[a.lineSpace],`CodeMirror-lines`)],null,`position: relative`),a.sizer=O(`div`,[a.mover],`CodeMirror-sizer`),a.sizerWidth=null,a.heightForcer=O(`div`,null,null,`position: absolute; height: `+fe+`px; width: 1px;`),a.gutters=O(`div`,null,`CodeMirror-gutters`),a.lineGutter=null,a.scroller=O(`div`,[a.sizer,a.heightForcer,a.gutters],`CodeMirror-scroll`),a.scroller.setAttribute(`tabIndex`,`-1`),a.wrapper=O(`div`,[a.scrollbarFiller,a.gutterFiller,a.scroller],`CodeMirror`),u&&d>=105&&(a.wrapper.style.clipPath=`inset(0px)`),a.wrapper.setAttribute(`translate`,`no`),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),!c&&!(n&&v)&&(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=ua(i.gutters,i.lineNumbers),da(a),r.init(a)}var ma=0,ha=null;o?ha=-.53:n?ha=15:u?ha=-.7:p&&(ha=-1/3);function ga(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n??=e.wheelDelta,{x:t,y:n}}function _a(e){var t=ga(e);return t.x*=ha,t.y*=ha,t}function va(e,t){u&&d==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents=`none`:clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=``},100));var r=ga(t),i=r.x,a=r.y,o=ha;t.deltaMode===0&&(i=t.deltaX,a=t.deltaY,o=1);var s=e.display,l=s.scroller,p=l.scrollWidth>l.clientWidth,m=l.scrollHeight>l.clientHeight;if(i&&p||a&&m){if(a&&y&&c){outer:for(var h=t.target,g=s.view;h!=l;h=h.parentNode)for(var _=0;_<g.length;_++)if(g[_].node==h){e.display.currentWheelTarget=h;break outer}}if(i&&!n&&!f&&o!=null){a&&m&&Di(e,Math.max(0,l.scrollTop+a*o)),ki(e,Math.max(0,l.scrollLeft+i*o)),(!a||a&&m)&&We(t),s.wheelStartX=null;return}if(a&&o!=null){var v=a*o,b=e.doc.scrollTop,x=b+s.wrapper.clientHeight;v<0?b=Math.max(0,b+v-50):x=Math.min(e.doc.height,x+v+50),ia(e,{top:b,bottom:x})}ma<20&&t.deltaMode!==0&&(s.wheelStartX==null?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=i,s.wheelDY=a,setTimeout(function(){if(s.wheelStartX!=null){var e=l.scrollLeft-s.wheelStartX,t=l.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ha=(ha*ma+n)/(ma+1),++ma)}},200)):(s.wheelDX+=i,s.wheelDY+=a))}}var ya=function(e,t){this.ranges=e,this.primIndex=t};ya.prototype.primary=function(){return this.ranges[this.primIndex]},ya.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!Et(n.anchor,r.anchor)||!Et(n.head,r.head))return!1}return!0},ya.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ba(Dt(this.ranges[t].anchor),Dt(this.ranges[t].head));return new ya(e,this.primIndex)},ya.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ya.prototype.contains=function(e,t){t||=e;for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(Tt(t,r.from())>=0&&Tt(e,r.to())<=0)return n}return-1};var ba=function(e,t){this.anchor=e,this.head=t};ba.prototype.from=function(){return kt(this.anchor,this.head)},ba.prototype.to=function(){return Ot(this.anchor,this.head)},ba.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xa(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return Tt(e.from(),t.from())}),n=N(t,i);for(var a=1;a<t.length;a++){var o=t[a],s=t[a-1],c=Tt(s.to(),o.from());if(r&&!o.empty()?c>0:c>=0){var l=kt(s.from(),o.from()),u=Ot(s.to(),o.to()),d=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,t.splice(--a,2,new ba(d?u:l,d?l:u))}}return new ya(t,n)}function Sa(e,t){return new ya([new ba(e,t||e)],0)}function Ca(e){return e.text?R(e.from.line+e.text.length-1,be(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function wa(e,t){if(Tt(e,t.from)<0)return e;if(Tt(e,t.to)<=0)return Ca(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ca(t).ch-t.to.ch),R(n,r)}function Ta(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ba(wa(i.anchor,t),wa(i.head,t)))}return xa(e.cm,n,e.sel.primIndex)}function Ea(e,t,n){return e.line==t.line?R(n.line,e.ch-t.ch+n.ch):R(n.line+(e.line-t.line),e.ch)}function Da(e,t,n){for(var r=[],i=R(e.first,0),a=i,o=0;o<t.length;o++){var s=t[o],c=Ea(s.from,i,a),l=Ea(Ca(s),i,a);if(i=s.to,a=l,n==`around`){var u=e.sel.ranges[o],d=Tt(u.head,u.anchor)<0;r[o]=new ba(d?l:c,d?c:l)}else r[o]=new ba(c,c)}return new ya(r,e.sel.primIndex)}function Oa(e){e.doc.mode=dt(e.options,e.doc.modeOption),ka(e)}function ka(e){e.doc.iter(function(e){e.stateAfter&&=null,e.styles&&=null}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Xi(e,100),e.state.modeGen++,e.curOp&&Qr(e)}function Aa(e,t){return t.from.ch==0&&t.to.ch==0&&be(t.text)==``&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ja(e,t,n,r){function i(e){return n?n[e]:null}function a(e,n,i){Dn(e,n,i,r),Kn(e,`change`,e,t)}function o(e,t){for(var n=[],a=e;a<t;++a)n.push(new En(l[a],i(a),r));return n}var s=t.from,c=t.to,l=t.text,u=L(e,s.line),d=L(e,c.line),f=be(l),p=i(l.length-1),m=c.line-s.line;if(t.full)e.insert(0,o(0,l.length)),e.remove(l.length,e.size-l.length);else if(Aa(e,t)){var h=o(0,l.length-1);a(d,d.text,p),m&&e.remove(s.line,m),h.length&&e.insert(s.line,h)}else if(u==d)if(l.length==1)a(u,u.text.slice(0,s.ch)+f+u.text.slice(c.ch),p);else{var g=o(1,l.length-1);g.push(new En(f+u.text.slice(c.ch),p,r)),a(u,u.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,g)}else if(l.length==1)a(u,u.text.slice(0,s.ch)+l[0]+d.text.slice(c.ch),i(0)),e.remove(s.line+1,m);else{a(u,u.text.slice(0,s.ch)+l[0],i(0)),a(d,f+d.text.slice(c.ch),p);var _=o(1,l.length-1);m>1&&e.remove(s.line+1,m-1),e.insert(s.line+1,_)}Kn(e,`change`,e,t)}function Ma(e,t,n){function r(e,i,a){if(e.linked)for(var o=0;o<e.linked.length;++o){var s=e.linked[o];if(s.doc!=i){var c=a&&s.sharedHist;n&&!c||(t(s.doc,c),r(s.doc,e,c))}}}r(e,null,!0)}function Na(e,t){if(t.cm)throw Error(`This document is already in use.`);e.doc=t,t.cm=e,Yr(e),Oa(e),Pa(e),e.options.direction=t.direction,e.options.lineWrapping||Tn(e),e.options.mode=t.modeOption,Qr(e)}function Pa(e){(e.doc.direction==`rtl`?ie:ee)(e.display.lineDiv,`CodeMirror-rtl`)}function Fa(e){Ki(e,function(){Pa(e),Qr(e)})}function Ia(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function La(e,t){var n={from:Dt(t.from),to:Ca(t),text:vt(e,t.from,t.to)};return Ua(e,n,t.from.line,t.to.line+1),Ma(e,function(e){return Ua(e,n,t.from.line,t.to.line+1)},!0),n}function Ra(e){for(;e.length&&be(e).ranges;)e.pop()}function za(e,t){if(t)return Ra(e.done),be(e.done);if(e.done.length&&!be(e.done).ranges)return be(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),be(e.done)}function Ba(e,t,n,r){var i=e.history;i.undone.length=0;var a=+new Date,o,s;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)==`+`&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)==`*`))&&(o=za(i,i.lastOp==r)))s=be(o.changes),Tt(t.from,t.to)==0&&Tt(t.from,s.to)==0?s.to=Ca(t):o.changes.push(La(e,t));else{var c=be(i.done);for((!c||!c.ranges)&&Ha(e.sel,i.done),o={changes:[La(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,s||ze(e,`historyAdded`)}function Va(e,t,n,r){var i=t.charAt(0);return i==`*`||i==`+`&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function U(e,t,n,r){var i=e.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Va(e,a,be(i.done),t))?i.done[i.done.length-1]=t:Ha(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&r.clearRedo!==!1&&Ra(i.undone)}function Ha(e,t){var n=be(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ua(e,t,n,r){var i=t[`spans_`+e.id],a=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||=t[`spans_`+e.id]={})[a]=n.markedSpans),++a})}function Wa(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||=e.slice(0,n):t&&t.push(e[n]);return t?t.length?t:null:e}function Ga(e,t){var n=t[`spans_`+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Wa(n[i]));return r}function Ka(e,t){var n=Ga(e,t),r=z(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var a=n[i],o=r[i];if(a&&o)spans:for(var s=0;s<o.length;++s){for(var c=o[s],l=0;l<a.length;++l)if(a[l].marker==c.marker)continue spans;a.push(c)}else o&&(n[i]=o)}return n}function W(e,t,n){for(var r=[],i=0;i<e.length;++i){var a=e[i];if(a.ranges){r.push(n?ya.prototype.deepCopy.call(a):a);continue}var o=a.changes,s=[];r.push({changes:s});for(var c=0;c<o.length;++c){var l=o[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var d in l)(u=d.match(/^spans_(\d+)$/))&&N(t,Number(u[1]))>-1&&(be(s)[d]=l[d],delete l[d])}}return r}function qa(e,t,n,r){if(r){var i=e.anchor;if(n){var a=Tt(t,i)<0;a==Tt(n,i)<0?a!=Tt(t,n)<0&&(t=n):(i=t,t=n)}return new ba(i,t)}else return new ba(n||t,t)}function Ja(e,t,n,r,i){i??=e.cm&&(e.cm.display.shift||e.extend),Qa(e,new ya([qa(e.sel.primary(),t,n,i)],0),r)}function Ya(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),a=0;a<e.sel.ranges.length;a++)r[a]=qa(e.sel.ranges[a],t[a],null,i);Qa(e,xa(e.cm,r,e.sel.primIndex),n)}function Xa(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Qa(e,xa(e.cm,i,e.sel.primIndex),r)}function G(e,t,n,r){Qa(e,Sa(t,n),r)}function K(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ba(jt(e,t[n].anchor),jt(e,t[n].head))},origin:n&&n.origin};return ze(e,`beforeSelectionChange`,e,r),e.cm&&ze(e.cm,`beforeSelectionChange`,e.cm,r),r.ranges==t.ranges?t:xa(e.cm,r.ranges,r.ranges.length-1)}function Za(e,t,n){var r=e.history.done,i=be(r);i&&i.ranges?(r[r.length-1]=t,$a(e,t,n)):Qa(e,t,n)}function Qa(e,t,n){$a(e,t,n),U(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function $a(e,t,n){(He(e,`beforeSelectionChange`)||e.cm&&He(e.cm,`beforeSelectionChange`))&&(t=K(e,t,n));var r=n&&n.bias||(Tt(t.primary().head,e.sel.primary().head)<0?-1:1);eo(e,J(e,t,r,!0)),!(n&&n.scroll===!1)&&e.cm&&e.cm.getOption(`readOnly`)!=`nocursor`&&Si(e.cm)}function eo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ve(e.cm)),Kn(e,`cursorActivity`,e))}function q(e){eo(e,J(e,e.sel,null,!1))}function J(e,t,n,r){for(var i,a=0;a<t.ranges.length;a++){var o=t.ranges[a],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[a],c=no(e,o.anchor,s&&s.anchor,n,r),l=o.head==o.anchor?c:no(e,o.head,s&&s.head,n,r);(i||c!=o.anchor||l!=o.head)&&(i||=t.ranges.slice(0,a),i[a]=new ba(c,l))}return i?xa(e.cm,i,t.primIndex):t}function to(e,t,n,r,i){var a=L(e,t.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],c=s.marker,l=`selectLeft`in c?!c.selectLeft:c.inclusiveLeft,u=`selectRight`in c?!c.selectRight:c.inclusiveRight;if((s.from==null||(l?s.from<=t.ch:s.from<t.ch))&&(s.to==null||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(ze(c,`beforeCursorEnter`),c.explicitlyCleared))if(a.markedSpans){--o;continue}else break;if(!c.atomic)continue;if(n){var d=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(d=ro(e,d,-r,d&&d.line==t.line?a:null)),d&&d.line==t.line&&(f=Tt(d,n))&&(r<0?f<0:f>0))return to(e,d,t,r,i)}var p=c.find(r<0?-1:1);return(r<0?l:u)&&(p=ro(e,p,r,p.line==t.line?a:null)),p?to(e,p,t,r,i):null}}return t}function no(e,t,n,r,i){var a=r||1;return to(e,t,n,a,i)||!i&&to(e,t,n,a,!0)||to(e,t,n,-a,i)||!i&&to(e,t,n,-a,!0)||(e.cantEdit=!0,R(e.first,0))}function ro(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?jt(e,R(t.line-1)):null:n>0&&t.ch==(r||L(e,t.line)).text.length?t.line<e.first+e.size-1?R(t.line+1,0):null:new R(t.line,t.ch+n)}function Y(e){e.setSelection(R(e.firstLine(),0),R(e.lastLine()),me)}function X(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,a){t&&(r.from=jt(e,t)),n&&(r.to=jt(e,n)),i&&(r.text=i),a!==void 0&&(r.origin=a)}),ze(e,`beforeChange`,e,r),e.cm&&ze(e.cm,`beforeChange`,e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function io(e,t,n){if(e.cm){if(!e.cm.curOp)return qi(e.cm,io)(e,t,n);if(e.cm.state.suppressEdits)return}if(!((He(e,`beforeChange`)||e.cm&&He(e.cm,`beforeChange`))&&(t=X(e,t,!0),!t))){var r=Jt&&!n&&on(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ao(e,{from:r[i].from,to:r[i].to,text:i?[``]:t.text,origin:t.origin});else ao(e,t)}}function ao(e,t){if(!(t.text.length==1&&t.text[0]==``&&Tt(t.from,t.to)==0)){var n=Ta(e,t);Ba(e,t,n,e.cm?e.cm.curOp.id:NaN),co(e,t,n,z(e,t));var r=[];Ma(e,function(e,n){!n&&N(r,e.history)==-1&&(mo(e.history,t),r.push(e.history)),co(e,t,null,z(e,t))})}}function oo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,a,o=e.sel,s=t==`undo`?i.done:i.undone,c=t==`undo`?i.undone:i.done,l=0;l<s.length&&(a=s[l],!(n?a.ranges&&!a.equals(e.sel):!a.ranges));l++);if(l!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(a=s.pop(),a.ranges){if(Ha(a,c),n&&!a.equals(e.sel)){Qa(e,a,{clearRedo:!1});return}o=a}else if(r){s.push(a);return}else break;var u=[];Ha(o,c),c.push({changes:u,generation:i.generation}),i.generation=a.generation||++i.maxGeneration;for(var d=He(e,`beforeChange`)||e.cm&&He(e.cm,`beforeChange`),f=function(n){var r=a.changes[n];if(r.origin=t,d&&!X(e,r,!1))return s.length=0,{};u.push(La(e,r)),co(e,r,n?Ta(e,r):be(s),Ka(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ca(r)});var i=[];Ma(e,function(e,t){!t&&N(i,e.history)==-1&&(mo(e.history,r),i.push(e.history)),co(e,r,null,Ka(e,r))})},p=a.changes.length-1;p>=0;--p){var m=f(p);if(m)return m.v}}}}function so(e,t){if(t!=0&&(e.first+=t,e.sel=new ya(xe(e.sel.ranges,function(e){return new ba(R(e.anchor.line+t,e.anchor.ch),R(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Qr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)$r(e.cm,r,`gutter`)}}function co(e,t,n,r){if(e.cm&&!e.cm.curOp)return qi(e.cm,co)(e,t,n,r);if(t.to.line<e.first){so(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);so(e,i),t={from:R(e.first,0),to:R(t.to.line+i,t.to.ch),text:[be(t.text)],origin:t.origin}}var a=e.lastLine();t.to.line>a&&(t={from:t.from,to:R(a,L(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vt(e,t.from,t.to),n||=Ta(e,t),e.cm?lo(e.cm,t,r):ja(e,t,r),$a(e,n,me),e.cantEdit&&no(e,R(e.firstLine(),0))&&(e.cantEdit=!1)}}function lo(e,t,n){var r=e.doc,i=e.display,a=t.from,o=t.to,s=!1,c=a.line;e.options.lineWrapping||(c=xt(gn(L(r,a.line))),r.iter(c,o.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ve(e),ja(r,t,n,Jr(e)),e.options.lineWrapping||(r.iter(c,a.line+t.text.length,function(e){var t=wn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),qt(r,a.line),Xi(e,400);var l=t.text.length-(o.line-a.line)-1;t.full?Qr(e):a.line==o.line&&t.text.length==1&&!Aa(e.doc,t)?$r(e,a.line,`text`):Qr(e,a.line,o.line+1,l);var u=He(e,`changes`),d=He(e,`change`);if(d||u){var f={from:a,to:o,text:t.text,removed:t.removed,origin:t.origin};d&&Kn(e,`change`,e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function uo(e,t,n,r,i){var a;r||=n,Tt(r,n)<0&&(a=[r,n],n=a[0],r=a[1]),typeof t==`string`&&(t=e.splitLines(t)),io(e,{from:n,to:r,text:t,origin:i})}function fo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function po(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i],o=!0;if(a.ranges){a.copied||(a=e[i]=a.deepCopy(),a.copied=!0);for(var s=0;s<a.ranges.length;s++)fo(a.ranges[s].anchor,t,n,r),fo(a.ranges[s].head,t,n,r);continue}for(var c=0;c<a.changes.length;++c){var l=a.changes[c];if(n<l.from.line)l.from=R(l.from.line+r,l.from.ch),l.to=R(l.to.line+r,l.to.ch);else if(t<=l.to.line){o=!1;break}}o||(e.splice(0,i+1),i=0)}}function mo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;po(e.done,n,r,i),po(e.undone,n,r,i)}function ho(e,t,n,r){var i=t,a=t;return typeof t==`number`?a=L(e,At(e,t)):i=xt(t),i==null?null:(r(a,i)&&e.cm&&$r(e.cm,i,n),a)}function go(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}go.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,On(i),Kn(i,`delete`)}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}};function _o(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}_o.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var a=Math.min(t,i-e),o=r.height;if(r.removeInner(e,a),this.height-=o-r.height,i==a&&(this.children.splice(n--,1),r.parent=null),(t-=a)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof go))){var s=[];this.collapse(s),this.children=[new go(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(e<=a){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var c=new go(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new _o(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=N(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new _o(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(e<a){var o=Math.min(t,a-e);if(i.iterN(e,o,n))return!0;if((t-=o)==0)break;e=0}else e-=a}}};var vo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};vo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=xt(n);if(!(r==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var a=ar(this);bt(n,Math.max(0,n.height-a)),e&&(Ki(e,function(){yo(e,n,-a),$r(e,r,`widget`)}),Kn(e,`lineWidgetCleared`,e,this,r))}},vo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=ar(this)-t;i&&(xn(this.doc,r)||bt(r,r.height+i),n&&Ki(n,function(){n.curOp.forceUpdate=!0,yo(n,r,i),Kn(n,`lineWidgetChanged`,n,e,xt(r))}))},Ue(vo);function yo(e,t,n){Cn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&xi(e,n)}function bo(e,t,n,r){var i=new vo(e,n,r),a=e.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),ho(e,t,`widget`,function(t){var n=t.widgets||=[];if(i.insertAt==null?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,a&&!xn(e,t)){var r=Cn(t)<e.scrollTop;bt(t,t.height+ar(i)),r&&xi(a,i.height),a.curOp.forceUpdate=!0}return!0}),a&&Kn(a,`lineWidgetAdded`,a,i,typeof t==`number`?t:xt(t)),i}var xo=0,So=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++xo};So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ri(e),He(this,`clear`)){var n=this.find();n&&Kn(this,`clear`,n.from,n.to)}for(var r=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=$t(o.markedSpans,this);e&&!this.collapsed?$r(e,xt(o),`text`):e&&(s.to!=null&&(i=xt(o)),s.from!=null&&(r=xt(o))),o.markedSpans=en(o.markedSpans,s),s.from==null&&this.collapsed&&!xn(this.doc,o)&&e&&bt(o,Wr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=gn(this.lines[c]),u=wn(l);u>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Qr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&q(e.doc)),e&&Kn(e,`markerCleared`,e,this,r,i),t&&zi(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){e==null&&this.type==`bookmark`&&(e=1);for(var n,r,i=0;i<this.lines.length;++i){var a=this.lines[i],o=$t(a.markedSpans,this);if(o.from!=null&&(n=R(t?a:xt(a),o.from),e==-1))return n;if(o.to!=null&&(r=R(t?a:xt(a),o.to),e==1))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;!t||!r||Ki(r,function(){var i=t.line,a=_r(r,xt(t.line));if(a&&(Tr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!xn(n.doc,i)&&n.height!=null){var o=n.height;n.height=null;var s=ar(n)-o;s&&bt(i,i.height+s)}Kn(r,`markerChanged`,r,e)})},So.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||N(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||=[]).push(this)}this.lines.push(e)},So.prototype.detachLine=function(e){if(this.lines.splice(N(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||=[]).push(this)}},Ue(So);function Co(e,t,n,r,i){if(r&&r.shared)return To(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return qi(e.cm,Co)(e,t,n,r,i);var a=new So(e,i),o=Tt(t,n);if(r&&M(r,a,!1),o>0||o==0&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=k(`span`,[a.replacedWith],`CodeMirror-widget`),r.handleMouseEvents||a.widgetNode.setAttribute(`cm-ignore-events`,`true`),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(hn(e,t.line,t,n,a)||t.line!=n.line&&hn(e,n.line,t,n,a))throw Error(`Inserting collapsed marker partially overlapping an existing one`);Zt()}a.addToHistory&&Ba(e,{from:t,to:n,origin:`markText`},e.sel,NaN);var s=t.line,c=e.cm,l;if(e.iter(s,n.line+1,function(r){c&&a.collapsed&&!c.options.lineWrapping&&gn(r)==c.display.maxLine&&(l=!0),a.collapsed&&s!=t.line&&bt(r,0),tn(r,new Qt(a,s==t.line?t.ch:null,s==n.line?n.ch:null),e.cm&&e.cm.curOp),++s}),a.collapsed&&e.iter(t.line,n.line+1,function(t){xn(e,t)&&bt(t,0)}),a.clearOnEnter&&I(a,`beforeCursorEnter`,function(){return a.clear()}),a.readOnly&&(Xt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++xo,a.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),a.collapsed)Qr(c,t.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=t.line;u<=n.line;u++)$r(c,u,`text`);a.atomic&&q(c.doc),Kn(c,`markerAdded`,c,a)}return a}var wo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};wo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Kn(this,`clear`)}},wo.prototype.find=function(e,t){return this.primary.find(e,t)},Ue(wo);function To(e,t,n,r,i){r=M(r),r.shared=!1;var a=[Co(e,t,n,r,i)],o=a[0],s=r.widgetNode;return Ma(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),a.push(Co(e,jt(e,t),jt(e,n),r,i));for(var c=0;c<e.linked.length;++c)if(e.linked[c].isParent)return;o=be(a)}),new wo(a,o)}function Eo(e){return e.findMarks(R(e.first,0),e.clipPos(R(e.lastLine())),function(e){return e.parent})}function Do(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),a=e.clipPos(i.from),o=e.clipPos(i.to);if(Tt(a,o)){var s=Co(e,a,o,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Oo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ma(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var a=n.markers[i];N(r,a.doc)==-1&&(a.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}var ko=0,Ao=function(e,t,n,r,i){if(!(this instanceof Ao))return new Ao(e,t,n,r,i);n??=0,_o.call(this,[new go([new En(``,null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var a=R(n,0);this.sel=Sa(a),this.history=new Ia(null),this.id=++ko,this.modeOption=t,this.lineSep=r,this.direction=i==`rtl`?`rtl`:`ltr`,this.extend=!1,typeof e==`string`&&(e=this.splitLines(e)),ja(this,{from:a,to:a,text:e}),Qa(this,Sa(a),me)};Ao.prototype=Ce(_o.prototype,{constructor:Ao,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=yt(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Yi(function(e){var t=R(this.first,0),n=this.first+this.size-1;io(this,{from:t,to:R(n,L(this,n).text.length),text:this.splitLines(e),origin:`setValue`,full:!0},!0),this.cm&&Ci(this.cm,0,0),Qa(this,Sa(t),me)}),replaceRange:function(e,t,n,r){t=jt(this,t),n=n?jt(this,n):t,uo(this,e,t,n,r)},getRange:function(e,t,n){var r=vt(this,jt(this,e),jt(this,t));return n===!1?r:n===``?r.join(``):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Ct(this,e))return L(this,e)},getLineNumber:function(e){return xt(e)},getLineHandleVisualStart:function(e){return typeof e==`number`&&(e=L(this,e)),gn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return jt(this,e)},getCursor:function(e){var t=this.sel.primary();return e==null||e==`head`?t.head:e==`anchor`?t.anchor:e==`end`||e==`to`||e===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Yi(function(e,t,n){G(this,jt(this,typeof e==`number`?R(e,t||0):e),null,n)}),setSelection:Yi(function(e,t,n){G(this,jt(this,e),jt(this,t||e),n)}),extendSelection:Yi(function(e,t,n){Ja(this,jt(this,e),t&&jt(this,t),n)}),extendSelections:Yi(function(e,t){Ya(this,Nt(this,e),t)}),extendSelectionsBy:Yi(function(e,t){var n=xe(this.sel.ranges,e);Ya(this,Nt(this,n),t)}),setSelections:Yi(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ba(jt(this,e[i].anchor),jt(this,e[i].head||e[i].anchor));t??=Math.min(e.length-1,this.sel.primIndex),Qa(this,xa(this.cm,r,t),n)}}),addSelection:Yi(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ba(jt(this,e),jt(this,t||e))),Qa(this,xa(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n,r=0;r<t.length;r++){var i=vt(this,t[r].from(),t[r].to());n=n?n.concat(i):i}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=vt(this,n[r].from(),n[r].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||`+input`)},replaceSelections:Yi(function(e,t,n){for(var r=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];r[a]={from:o.from(),to:o.to(),text:this.splitLines(e[a]),origin:n}}for(var s=t&&t!=`end`&&Da(this,r,t),c=r.length-1;c>=0;c--)io(this,r[c]);s?Za(this,s):this.cm&&Si(this.cm)}),undo:Yi(function(){oo(this,`undo`)}),redo:Yi(function(){oo(this,`redo`)}),undoSelection:Yi(function(){oo(this,`undo`,!0)}),redoSelection:Yi(function(){oo(this,`redo`,!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Ia(this.history),Ma(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:W(this.history.done),undone:W(this.history.undone)}},setHistory:function(e){var t=this.history=new Ia(this.history);t.done=W(e.done.slice(0),null,!0),t.undone=W(e.undone.slice(0),null,!0)},setGutterMarker:Yi(function(e,t,n){return ho(this,e,`gutter`,function(e){var r=e.gutterMarkers||={};return r[t]=n,!n&&De(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Yi(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ho(t,n,`gutter`,function(){return n.gutterMarkers[e]=null,De(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e==`number`){if(!Ct(this,e)||(t=e,e=L(this,e),!e))return null}else if(t=xt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Yi(function(e,t,n){return ho(this,e,t==`gutter`?`gutter`:`class`,function(e){var r=t==`text`?`textClass`:t==`background`?`bgClass`:t==`gutter`?`gutterClass`:`wrapClass`;if(!e[r])e[r]=n;else if(T(n).test(e[r]))return!1;else e[r]+=` `+n;return!0})}),removeLineClass:Yi(function(e,t,n){return ho(this,e,t==`gutter`?`gutter`:`class`,function(e){var r=t==`text`?`textClass`:t==`background`?`bgClass`:t==`gutter`?`gutterClass`:`wrapClass`,i=e[r];if(!i)return!1;if(n==null)e[r]=null;else{var a=i.match(T(n));if(!a)return!1;var o=a.index+a[0].length;e[r]=i.slice(0,a.index)+(!a.index||o==i.length?``:` `)+i.slice(o)||null}return!0})}),addLineWidget:Yi(function(e,t,n){return bo(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Co(this,jt(this,e),jt(this,t),n,n&&n.type||`range`)},setBookmark:function(e,t){var n={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=jt(this,e),Co(this,e,e,n,`bookmark`)},findMarksAt:function(e){e=jt(this,e);var t=[],n=L(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=jt(this,e),t=jt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var c=o[s];!(c.to!=null&&i==e.line&&e.ch>=c.to||c.from==null&&i!=e.line||c.from!=null&&i==t.line&&c.from>=t.ch)&&(!n||n(c.marker))&&r.push(c.marker.parent||c.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)n[r].from!=null&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var a=i.text.length+r;if(a>e)return t=e,!0;e-=a,++n}),jt(this,R(n,t))},indexFromPos:function(e){e=jt(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Ao(yt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||={};var t=this.first,n=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<n&&(n=e.to);var r=new Ao(yt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||=[]).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Do(r,Eo(this)),r},unlinkDoc:function(e){if(e instanceof Us&&(e=e.doc),this.linked){for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Oo(Eo(this));break}}if(e.history==this.history){var n=[e.id];Ma(e,function(e){return n.push(e.id)},!0),e.history=new Ia(null),e.history.done=W(this.history.done,n),e.history.undone=W(this.history.undone,n)}},iterLinkedDocs:function(e){Ma(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):tt(e)},lineSeparator:function(){return this.lineSep||`
27
+ `},setDirection:Yi(function(e){e!=`rtl`&&(e=`ltr`),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Fa(this.cm))})}),Ao.prototype.eachLine=Ao.prototype.iter;var jo=0;function Z(e){var t=this;if(Po(t),!(Be(t,e)||or(t.display,e))){We(e),o&&(jo=+new Date);var n=Xr(t,e,!0),r=e.dataTransfer.files;if(!(!n||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,c=function(){++s==i&&qi(t,function(){n=jt(t.doc,n);var e={from:n,to:n,text:t.doc.splitLines(a.filter(function(e){return e!=null}).join(t.doc.lineSeparator())),origin:`paste`};io(t.doc,e),Za(t.doc,Sa(jt(t.doc,n),jt(t.doc,Ca(e))))})()},l=function(e,n){if(t.options.allowDropFileTypes&&N(t.options.allowDropFileTypes,e.type)==-1){c();return}var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var e=r.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)){c();return}a[n]=e,c()},r.readAsText(e)},u=0;u<r.length;u++)l(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData(`Text`);if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),$a(t.doc,Sa(n,n)),f)for(var p=0;p<f.length;++p)uo(t.doc,``,f[p].anchor,f[p].head,`drag`);t.replaceSelection(d,`around`,`paste`),t.display.input.focus()}}catch{}}}}function Mo(e,t){if(o&&(!e.state.draggingText||+new Date-jo<100)){qe(t);return}if(!(Be(e,t)||or(e.display,t))&&(t.dataTransfer.setData(`Text`,e.getSelection()),t.dataTransfer.effectAllowed=`copyMove`,t.dataTransfer.setDragImage&&!p)){var n=O(`img`,null,null,`position: fixed; left: 0; top: 0;`);n.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`,f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function No(e,t){var n=Xr(e,t);if(n){var r=document.createDocumentFragment();oi(e,n,r),e.display.dragCursor||(e.display.dragCursor=O(`div`,null,`CodeMirror-cursors CodeMirror-dragcursors`),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),D(e.display.dragCursor,r)}}function Po(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Fo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName(`CodeMirror`),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Io=!1;function Lo(){Io||=(Ro(),!0)}function Ro(){var e;I(window,`resize`,function(){e??=setTimeout(function(){e=null,Fo(zo)},100)}),I(window,`blur`,function(){return Fo(pi)})}function zo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={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`},Vo=0;Vo<10;Vo++)Bo[Vo+48]=Bo[Vo+96]=String(Vo);for(var Ho=65;Ho<=90;Ho++)Bo[Ho]=String.fromCharCode(Ho);for(var Uo=1;Uo<=12;Uo++)Bo[Uo+111]=Bo[Uo+63235]=`F`+Uo;var Wo={};Wo.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`},Wo.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`},Wo.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`},Wo.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`]},Wo.default=y?Wo.macDefault:Wo.pcDefault;function Go(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,a,o=0;o<t.length-1;o++){var s=t[o];if(/^(cmd|meta|m)$/i.test(s))a=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))i=!0;else throw Error(`Unrecognized modifier name: `+s)}return n&&(e=`Alt-`+e),r&&(e=`Ctrl-`+e),a&&(e=`Cmd-`+e),i&&(e=`Shift-`+e),e}function Ko(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if(r==`...`){delete e[n];continue}for(var i=xe(n.split(` `),Go),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(` `),o=r):(s=i.slice(0,a+1).join(` `),o=`...`);var c=t[s];if(!c)t[s]=o;else if(c!=o)throw Error(`Inconsistent bindings for `+s)}delete e[n]}for(var l in t)e[l]=t[l];return e}function qo(e,t,n,r){t=Zo(t);var i=t.call?t.call(e,r):t[e];if(i===!1)return`nothing`;if(i===`...`)return`multi`;if(i!=null&&n(i))return`handled`;if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!=`[object Array]`)return qo(e,t.fallthrough,n,r);for(var a=0;a<t.fallthrough.length;a++){var o=qo(e,t.fallthrough[a],n,r);if(o)return o}}}function Jo(e){var t=typeof e==`string`?e:Bo[e.keyCode];return t==`Ctrl`||t==`Alt`||t==`Shift`||t==`Mod`}function Yo(e,t,n){var r=e;return t.altKey&&r!=`Alt`&&(e=`Alt-`+e),(C?t.metaKey:t.ctrlKey)&&r!=`Ctrl`&&(e=`Ctrl-`+e),(C?t.ctrlKey:t.metaKey)&&r!=`Mod`&&(e=`Cmd-`+e),!n&&t.shiftKey&&r!=`Shift`&&(e=`Shift-`+e),e}function Xo(e,t){if(f&&e.keyCode==34&&e.char)return!1;var n=Bo[e.keyCode];return n==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(n=e.code),Yo(n,e,t))}function Zo(e){return typeof e==`string`?Wo[e]:e}function Qo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var a=t(n[i]);r.length&&Tt(a.from,be(r).to)<=0;){var o=r.pop();if(Tt(o.from,a.from)<0){a.from=o.from;break}}r.push(a)}Ki(e,function(){for(var t=r.length-1;t>=0;t--)uo(e.doc,``,r[t].from,r[t].to,`+delete`);Si(e)})}function $o(e,t,n){var r=Ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function es(e,t,n){var r=$o(e,t.ch,n);return r==null?null:new R(t.line,r,n<0?`after`:`before`)}function ts(e,t,n,r,i){if(e){t.doc.direction==`rtl`&&(i=-i);var a=Fe(n,t.doc.direction);if(a){var o=i<0?be(a):a[0],s=i<0==(o.level==1)?`after`:`before`,c;if(o.level>0||t.doc.direction==`rtl`){var l=vr(t,n);c=i<0?n.text.length-1:0;var u=yr(t,l,c).top;c=F(function(e){return yr(t,l,e).top==u},i<0==(o.level==1)?o.from:o.to-1,c),s==`before`&&(c=$o(n,c,1))}else c=i<0?o.to:o.from;return new R(r,c,s)}}return new R(r,i<0?n.text.length:0,i<0?`before`:`after`)}function ns(e,t,n,r){var i=Fe(t,e.doc.direction);if(!i)return es(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky=`before`):n.ch<=0&&(n.ch=0,n.sticky=`after`);var a=Ne(i,n.ch,n.sticky),o=i[a];if(e.doc.direction==`ltr`&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return es(t,n,r);var s=function(e,n){return $o(t,e instanceof R?e.ch:e,n)},c,l=function(n){return e.options.lineWrapping?(c||=vr(e,t),Rr(e,t,c,n)):{begin:0,end:t.text.length}},u=l(n.sticky==`before`?s(n,-1):n.ch);if(e.doc.direction==`rtl`||o.level==1){var d=o.level==1==r<0,f=s(n,d?1:-1);if(f!=null&&(d?f<=o.to&&f<=u.end:f>=o.from&&f>=u.begin)){var p=d?`before`:`after`;return new R(n.line,f,p)}}var m=function(e,t,r){for(var a=function(e,t){return t?new R(n.line,s(e,1),`before`):new R(n.line,e,`after`)};e>=0&&e<i.length;e+=t){var o=i[e],c=t>0==(o.level!=1),l=c?r.begin:s(r.end,-1);if(o.from<=l&&l<o.to||(l=c?o.from:s(o.to,-1),r.begin<=l&&l<r.end))return a(l,c)}},h=m(a+r,r,u);if(h)return h;var g=r>0?u.end:s(u.begin,-1);return g!=null&&!(r>0&&g==t.text.length)&&(h=m(r>0?0:i.length-1,r,l(g)),h)?h:null}var rs={selectAll:Y,singleSelection:function(e){return e.setSelection(e.getCursor(`anchor`),e.getCursor(`head`),me)},killLine:function(e){return Qo(e,function(t){if(t.empty()){var n=L(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:R(t.head.line+1,0)}:{from:t.head,to:R(t.head.line,n)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qo(e,function(t){return{from:R(t.from().line,0),to:jt(e.doc,R(t.to().line+1,0))}})},delLineLeft:function(e){return Qo(e,function(e){return{from:R(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Qo(e,function(t){var n=e.charCoords(t.head,`div`).top+5;return{from:e.coordsChar({left:0,top:n},`div`),to:t.from()}})},delWrappedLineRight:function(e){return Qo(e,function(t){var n=e.charCoords(t.head,`div`).top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},`div`);return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(R(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(R(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return is(e,t.head.line)},{origin:`+move`,bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return os(e,t.head)},{origin:`+move`,bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return as(e,t.head.line)},{origin:`+move`,bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,`div`).top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},`div`)},ge)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,`div`).top+5;return e.coordsChar({left:0,top:n},`div`)},ge)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,`div`).top+5,r=e.coordsChar({left:0,top:n},`div`);return r.ch<e.getLine(r.line).search(/\S/)?os(e,t.head):r},ge)},goLineUp:function(e){return e.moveV(-1,`line`)},goLineDown:function(e){return e.moveV(1,`line`)},goPageUp:function(e){return e.moveV(-1,`page`)},goPageDown:function(e){return e.moveV(1,`page`)},goCharLeft:function(e){return e.moveH(-1,`char`)},goCharRight:function(e){return e.moveH(1,`char`)},goColumnLeft:function(e){return e.moveH(-1,`column`)},goColumnRight:function(e){return e.moveH(1,`column`)},goWordLeft:function(e){return e.moveH(-1,`word`)},goGroupRight:function(e){return e.moveH(1,`group`)},goGroupLeft:function(e){return e.moveH(-1,`group`)},goWordRight:function(e){return e.moveH(1,`word`)},delCharBefore:function(e){return e.deleteH(-1,`codepoint`)},delCharAfter:function(e){return e.deleteH(1,`char`)},delWordBefore:function(e){return e.deleteH(-1,`word`)},delWordAfter:function(e){return e.deleteH(1,`word`)},delGroupBefore:function(e){return e.deleteH(-1,`group`)},delGroupAfter:function(e){return e.deleteH(1,`group`)},indentAuto:function(e){return e.indentSelection(`smart`)},indentMore:function(e){return e.indentSelection(`add`)},indentLess:function(e){return e.indentSelection(`subtract`)},insertTab:function(e){return e.replaceSelection(` `)},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var a=n[i].from(),o=ue(e.getLine(a.line),a.ch,r);t.push(ye(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection(`add`):e.execCommand(`insertTab`)},transposeChars:function(e){return Ki(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,a=L(e.doc,i.line).text;if(a){if(i.ch==a.length&&(i=new R(i.line,i.ch-1)),i.ch>0)i=new R(i.line,i.ch+1),e.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),R(i.line,i.ch-2),i,`+transpose`);else if(i.line>e.doc.first){var o=L(e.doc,i.line-1).text;o&&(i=new R(i.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),R(i.line-1,o.length-1),i,`+transpose`))}}n.push(new ba(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Ki(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,`+input`);t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Si(e)})},openLine:function(e){return e.replaceSelection(`
28
+ `,`start`)},toggleOverwrite:function(e){return e.toggleOverwrite()}};function is(e,t){var n=L(e.doc,t),r=gn(n);return r!=n&&(t=xt(r)),ts(!0,e,r,t,1)}function as(e,t){var n=L(e.doc,t),r=_n(n);return r!=n&&(t=xt(r)),ts(!0,e,n,t,-1)}function os(e,t){var n=is(e,t.line),r=L(e.doc,n.line),i=Fe(r,e.doc.direction);if(!i||i[0].level==0){var a=Math.max(n.ch,r.text.search(/\S/)),o=t.line==n.line&&t.ch<=a&&t.ch;return R(n.line,o?0:a,n.sticky)}return n}function ss(e,t,n){if(typeof t==`string`&&(t=rs[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=pe}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function cs(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=qo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&qo(t,e.options.extraKeys,n,e)||qo(t,e.options.keyMap,n,e)}var ls=new de;function us(e,t,n,r){var i=e.state.keySeq;if(i){if(Jo(t))return`handled`;if(/\'$/.test(t)?e.state.keySeq=null:ls.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ds(e,i+` `+t,n,r))return!0}return ds(e,t,n,r)}function ds(e,t,n,r){var i=cs(e,t,r);return i==`multi`&&(e.state.keySeq=t),i==`handled`&&Kn(e,`keyHandled`,e,t,n),(i==`handled`||i==`multi`)&&(We(n),li(e)),!!i}function fs(e,t){var n=Xo(t,!0);return n?t.shiftKey&&!e.state.keySeq?us(e,`Shift-`+n,t,function(t){return ss(e,t,!0)})||us(e,n,t,function(t){if(typeof t==`string`?/^go[A-Z]/.test(t):t.motion)return ss(e,t)}):us(e,n,t,function(t){return ss(e,t)}):!1}function ps(e,t,n){return us(e,`'`+n+`'`,t,function(t){return ss(e,t,!0)})}var ms=null;function hs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=re(ce(t)),!Be(t,e))){o&&s<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var i=fs(t,e);f&&(ms=i?r:null,!i&&r==88&&!rt&&(y?e.metaKey:e.ctrlKey)&&t.replaceSelection(``,null,`cut`)),n&&!y&&!i&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand(`cut`),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&gs(t)}}function gs(e){var t=e.display.lineDiv;ie(t,`CodeMirror-crosshair`);function n(e){(e.keyCode==18||!e.altKey)&&(ee(t,`CodeMirror-crosshair`),Re(document,`keyup`,n),Re(document,`mouseover`,n))}I(document,`keyup`,n),I(document,`mouseover`,n)}function _s(e){e.keyCode==16&&(this.doc.sel.shift=!1),Be(this,e)}function vs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(or(t.display,e)||Be(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ms){ms=null,We(e);return}if(!(f&&(!e.which||e.which<10)&&fs(t,e))){var i=String.fromCharCode(r??n);i!=`\b`&&(ps(t,e,i)||t.display.input.onKeyPress(e))}}}var ys=400,bs=function(e,t,n){this.time=e,this.pos=t,this.button=n};bs.prototype.compare=function(e,t,n){return this.time+ys>e&&Tt(t,this.pos)==0&&n==this.button};var xs,Ss;function Cs(e,t){var n=+new Date;return Ss&&Ss.compare(n,e,t)?(xs=Ss=null,`triple`):xs&&xs.compare(n,e,t)?(Ss=new bs(n,e,t),xs=null,`double`):(xs=new bs(n,e,t),Ss=null,`single`)}function ws(e){var t=this,n=t.display;if(!(Be(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,or(n,e)){c||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!Ns(t,e)){var r=Xr(t,e),i=Ye(e),a=r?Cs(r,i):`single`;A(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Ts(t,i,r,a,e))&&(i==1?r?Ds(t,r,a,e):Je(e)==n.scroller&&We(e):i==2?(r&&Ja(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(w?t.display.input.onContextMenu(e):di(t)))}}}function Ts(e,t,n,r,i){var a=`Click`;return r==`double`?a=`Double`+a:r==`triple`&&(a=`Triple`+a),a=(t==1?`Left`:t==2?`Middle`:`Right`)+a,us(e,Yo(a,i),i,function(t){if(typeof t==`string`&&(t=rs[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=pe}finally{e.state.suppressEdits=!1}return r})}function Es(e,t,n){var r=e.getOption(`configureMouse`),i=r?r(e,t,n):{};return i.unit??=(b?n.shiftKey&&n.metaKey:n.altKey)?`rectangle`:t==`single`?`char`:t==`double`?`word`:`line`,(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew??=y?n.metaKey:n.ctrlKey,i.moveOnDrag??=!(y?n.altKey:n.ctrlKey),i}function Ds(e,t,n,r){o?setTimeout(j(ui,e),0):e.curOp.focus=re(ce(e));var i=Es(e,n,r),a=e.doc.sel,s;e.options.dragDrop&&Xe&&!e.isReadOnly()&&n==`single`&&(s=a.contains(t))>-1&&(Tt((s=a.ranges[s]).from(),t)<0||t.xRel>0)&&(Tt(s.to(),t)>0||t.xRel<0)?Os(e,r,t,i):As(e,r,t,i)}function Os(e,t,n,r){var i=e.display,a=!1,l=qi(e,function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:di(e)),Re(i.wrapper.ownerDocument,`mouseup`,l),Re(i.wrapper.ownerDocument,`mousemove`,u),Re(i.scroller,`dragstart`,d),Re(i.scroller,`drop`,l),a||(We(t),r.addNew||Ja(e.doc,n,null,null,r.extend),c&&!p||o&&s==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),u=function(e){a||=Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return a=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,I(i.wrapper.ownerDocument,`mouseup`,l),I(i.wrapper.ownerDocument,`mousemove`,u),I(i.scroller,`dragstart`,d),I(i.scroller,`drop`,l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ks(e,t,n){if(n==`char`)return new ba(t,t);if(n==`word`)return e.findWordAt(t);if(n==`line`)return new ba(R(t.line,0),jt(e.doc,R(t.line+1,0)));var r=n(e,t);return new ba(r.from,r.to)}function As(e,t,n,r){o&&di(e);var i=e.display,a=e.doc;We(t);var s,c,l=a.sel,u=l.ranges;if(r.addNew&&!r.extend?(c=a.sel.contains(n),s=c>-1?u[c]:new ba(n,n)):(s=a.sel.primary(),c=a.sel.primIndex),r.unit==`rectangle`)r.addNew||(s=new ba(n,n)),n=Xr(e,t,!0,!0),c=-1;else{var d=ks(e,n,r.unit);s=r.extend?qa(s,d.anchor,d.head,r.extend):d}r.addNew?c==-1?(c=u.length,Qa(a,xa(e,u.concat([s]),c),{scroll:!1,origin:`*mouse`})):u.length>1&&u[c].empty()&&r.unit==`char`&&!r.extend?(Qa(a,xa(e,u.slice(0,c).concat(u.slice(c+1)),0),{scroll:!1,origin:`*mouse`}),l=a.sel):Xa(a,c,s,he):(c=0,Qa(a,new ya([s],0),he),l=a.sel);var f=n;function p(t){if(Tt(f,t)!=0)if(f=t,r.unit==`rectangle`){for(var i=[],o=e.options.tabSize,u=ue(L(a,n.line).text,n.ch,o),d=ue(L(a,t.line).text,t.ch,o),p=Math.min(u,d),m=Math.max(u,d),h=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));h<=g;h++){var _=L(a,h).text,v=_e(_,p,o);p==m?i.push(new ba(R(h,v),R(h,v))):_.length>v&&i.push(new ba(R(h,v),R(h,_e(_,m,o))))}i.length||i.push(new ba(n,n)),Qa(a,xa(e,l.ranges.slice(0,c).concat(i),c),{origin:`*mouse`,scroll:!1}),e.scrollIntoView(t)}else{var y=s,b=ks(e,t,r.unit),x=y.anchor,S;Tt(b.anchor,x)>0?(S=b.head,x=kt(y.from(),b.anchor)):(S=b.anchor,x=Ot(y.to(),b.head));var C=l.ranges.slice(0);C[c]=js(e,new ba(jt(a,x),S)),Qa(a,xa(e,C,c),he)}}var m=i.wrapper.getBoundingClientRect(),h=0;function g(t){var n=++h,o=Xr(e,t,!0,r.unit==`rectangle`);if(o)if(Tt(o,f)!=0){e.curOp.focus=re(ce(e)),p(o);var s=gi(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(qi(e,function(){h==n&&g(t)}),150)}else{var c=t.clientY<m.top?-20:t.clientY>m.bottom?20:0;c&&setTimeout(qi(e,function(){h==n&&(i.scroller.scrollTop+=c,g(t))}),50)}}function _(t){e.state.selectingText=!1,h=1/0,t&&(We(t),i.input.focus()),Re(i.wrapper.ownerDocument,`mousemove`,v),Re(i.wrapper.ownerDocument,`mouseup`,y),a.history.lastSelOrigin=null}var v=qi(e,function(e){e.buttons===0||!Ye(e)?_(e):g(e)}),y=qi(e,_);e.state.selectingText=y,I(i.wrapper.ownerDocument,`mousemove`,v),I(i.wrapper.ownerDocument,`mouseup`,y)}function js(e,t){var n=t.anchor,r=t.head,i=L(e.doc,n.line);if(Tt(n,r)==0&&n.sticky==r.sticky)return t;var a=Fe(i);if(!a)return t;var o=Ne(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return t;var c=o+(s.from==n.ch==(s.level!=1)?0:1);if(c==0||c==a.length)return t;var l;if(r.line!=n.line)l=(r.line-n.line)*(e.doc.direction==`ltr`?1:-1)>0;else{var u=Ne(a,r.ch,r.sticky),d=u-o||(r.ch-n.ch)*(s.level==1?-1:1);l=u==c-1||u==c?d<0:d>0}var f=a[c+(l?-1:0)],p=l==(f.level==1),m=p?f.from:f.to,h=p?`after`:`before`;return n.ch==m&&n.sticky==h?t:new ba(new R(n.line,m,h),r)}function Ms(e,t,n,r){var i,a;if(t.touches)i=t.touches[0].clientX,a=t.touches[0].clientY;else try{i=t.clientX,a=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&We(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!He(e,n))return Ke(t);a-=s.top-o.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var l=o.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i){var u=St(e.doc,a),d=e.display.gutterSpecs[c];return ze(e,n,e,u,d.className,t),Ke(t)}}}function Ns(e,t){return Ms(e,t,`gutterClick`,!0)}function Ps(e,t){or(e.display,t)||Fs(e,t)||Be(e,t,`contextmenu`)||w||e.display.input.onContextMenu(t)}function Fs(e,t){return He(e,`gutterContextMenu`)?Ms(e,t,`gutterContextMenu`,!1):!1}function Is(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,``)+e.options.theme.replace(/(^|\s)\s*/g,` cm-s-`),Dr(e)}var Ls={toString:function(){return`CodeMirror.Init`}},Rs={},zs={};function Bs(e){var t=e.optionHandlers;function n(n,r,i,a){e.defaults[n]=r,i&&(t[n]=a?function(e,t,n){n!=Ls&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ls,n(`value`,``,function(e,t){return e.setValue(t)},!0),n(`mode`,null,function(e,t){e.doc.modeOption=t,Oa(e)},!0),n(`indentUnit`,2,Oa,!0),n(`indentWithTabs`,!1),n(`smartIndent`,!0),n(`tabSize`,4,function(e){ka(e),Dr(e),Qr(e)},!0),n(`lineSeparator`,null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var a=e.text.indexOf(t,i);if(a==-1)break;i=a+t.length,n.push(R(r,a))}r++});for(var i=n.length-1;i>=0;i--)uo(e.doc,t,n[i],R(n[i].line,n[i].ch+t.length))}}),n(`specialChars`,/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=RegExp(t.source+(t.test(` `)?``:`| `),`g`),n!=Ls&&e.refresh()}),n(`specialCharPlaceholder`,Nn,function(e){return e.refresh()},!0),n(`electricChars`,!0),n(`inputStyle`,v?`contenteditable`:`textarea`,function(){throw Error(`inputStyle can not (yet) be changed in a running editor`)},!0),n(`spellcheck`,!1,function(e,t){return e.getInputField().spellcheck=t},!0),n(`autocorrect`,!1,function(e,t){return e.getInputField().autocorrect=t},!0),n(`autocapitalize`,!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n(`rtlMoveVisually`,!x),n(`wholeLineUpdateBefore`,!0),n(`theme`,`default`,function(e){Is(e),fa(e)},!0),n(`keyMap`,`default`,function(e,t,n){var r=Zo(t),i=n!=Ls&&Zo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n(`extraKeys`,null),n(`configureMouse`,null),n(`lineWrapping`,!1,Hs,!0),n(`gutters`,[],function(e,t){e.display.gutterSpecs=ua(t,e.options.lineNumbers),fa(e)},!0),n(`fixedGutter`,!0,function(e,t){e.display.gutters.style.left=t?qr(e.display)+`px`:`0`,e.refresh()},!0),n(`coverGutterNextToScrollbar`,!1,function(e){return Ni(e)},!0),n(`scrollbarStyle`,`native`,function(e){Ii(e),Ni(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n(`lineNumbers`,!1,function(e,t){e.display.gutterSpecs=ua(e.options.gutters,t),fa(e)},!0),n(`firstLineNumber`,1,fa,!0),n(`lineNumberFormatter`,function(e){return e},fa,!0),n(`showCursorWhenSelecting`,!1,ii,!0),n(`resetSelectionOnContextMenu`,!0),n(`lineWiseCopyCut`,!0),n(`pasteLinesPerSelection`,!0),n(`selectionsMayTouch`,!1),n(`readOnly`,!1,function(e,t){t==`nocursor`&&(pi(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n(`screenReaderLabel`,null,function(e,t){t=t===``?null:t,e.display.input.screenReaderLabelChanged(t)}),n(`disableInput`,!1,function(e,t){t||e.display.input.reset()},!0),n(`dragDrop`,!0,Vs),n(`allowDropFileTypes`,null),n(`cursorBlinkRate`,530),n(`cursorScrollMargin`,0),n(`cursorHeight`,1,ii,!0),n(`singleCursorHeightPerLine`,!0,ii,!0),n(`workTime`,100),n(`workDelay`,100),n(`flattenSpans`,!0,ka,!0),n(`addModeClass`,!1,ka,!0),n(`pollInterval`,100),n(`undoDepth`,200,function(e,t){return e.doc.history.undoDepth=t}),n(`historyEventDelay`,1250),n(`viewportMargin`,10,function(e){return e.refresh()},!0),n(`maxHighlightLength`,1e4,ka,!0),n(`moveInputWithCursor`,!0,function(e,t){t||e.display.input.resetPosition()}),n(`tabindex`,null,function(e,t){return e.display.input.getField().tabIndex=t||``}),n(`autofocus`,null),n(`direction`,`ltr`,function(e,t){return e.doc.setDirection(t)},!0),n(`phrases`,null)}function Vs(e,t,n){if(!t!=!(n&&n!=Ls)){var r=e.display.dragFunctions,i=t?I:Re;i(e.display.scroller,`dragstart`,r.start),i(e.display.scroller,`dragenter`,r.enter),i(e.display.scroller,`dragover`,r.over),i(e.display.scroller,`dragleave`,r.leave),i(e.display.scroller,`drop`,r.drop)}}function Hs(e){e.options.lineWrapping?(ie(e.display.wrapper,`CodeMirror-wrap`),e.display.sizer.style.minWidth=``,e.display.sizerWidth=null):(ee(e.display.wrapper,`CodeMirror-wrap`),Tn(e)),Yr(e),Qr(e),Dr(e),setTimeout(function(){return Ni(e)},100)}function Us(e,t){var n=this;if(!(this instanceof Us))return new Us(e,t);this.options=t=t?M(t):{},M(Rs,t,!1);var r=t.value;typeof r==`string`?r=new Ao(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Us.inputStyles[t.inputStyle](this),a=this.display=new pa(e,r,i,t);for(var l in a.wrapper.CodeMirror=this,Is(this),t.lineWrapping&&(this.display.wrapper.className+=` CodeMirror-wrap`),Ii(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 de,keySeq:null,specialChars:null},t.autofocus&&!v&&a.input.focus(),o&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Ws(this),Lo(),Ri(this),this.curOp.forceUpdate=!0,Na(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&fi(n)},20):pi(this),zs)zs.hasOwnProperty(l)&&zs[l](this,t[l],Ls);la(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Gs.length;++u)Gs[u](this);zi(this),c&&t.lineWrapping&&getComputedStyle(a.lineDiv).textRendering==`optimizelegibility`&&(a.lineDiv.style.textRendering=`auto`)}Us.defaults=Rs,Us.optionHandlers=zs;function Ws(e){var t=e.display;I(t.scroller,`mousedown`,qi(e,ws)),o&&s<11?I(t.scroller,`dblclick`,qi(e,function(t){if(!Be(e,t)){var n=Xr(e,t);if(!(!n||Ns(e,t)||or(e.display,t))){We(t);var r=e.findWordAt(n);Ja(e.doc,r.anchor,r.head)}}})):I(t.scroller,`dblclick`,function(t){return Be(e,t)||We(t)}),I(t.scroller,`contextmenu`,function(t){return Ps(e,t)}),I(t.input.getField(),`contextmenu`,function(n){t.scroller.contains(n.target)||Ps(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function a(e){if(e.touches.length!=1)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function c(e,t){if(t.left==null)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}I(t.scroller,`touchstart`,function(i){if(!Be(e,i)&&!a(i)&&!Ns(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},i.touches.length==1&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),I(t.scroller,`touchmove`,function(){t.activeTouch&&(t.activeTouch.moved=!0)}),I(t.scroller,`touchend`,function(n){var r=t.activeTouch;if(r&&!or(t,n)&&r.left!=null&&!r.moved&&new Date-r.start<300){var a=e.coordsChar(t.activeTouch,`page`),o=!r.prev||c(r,r.prev)?new ba(a,a):!r.prev.prev||c(r,r.prev.prev)?e.findWordAt(a):new ba(R(a.line,0),jt(e.doc,R(a.line+1,0)));e.setSelection(o.anchor,o.head),e.focus(),We(n)}i()}),I(t.scroller,`touchcancel`,i),I(t.scroller,`scroll`,function(){t.scroller.clientHeight&&(Di(e,t.scroller.scrollTop),ki(e,t.scroller.scrollLeft,!0),ze(e,`scroll`,e))}),I(t.scroller,`mousewheel`,function(t){return va(e,t)}),I(t.scroller,`DOMMouseScroll`,function(t){return va(e,t)}),I(t.wrapper,`scroll`,function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){Be(e,t)||qe(t)},over:function(t){Be(e,t)||(No(e,t),qe(t))},start:function(t){return Mo(e,t)},drop:qi(e,Z),leave:function(t){Be(e,t)||Po(e)}};var l=t.input.getField();I(l,`keyup`,function(t){return _s.call(e,t)}),I(l,`keydown`,qi(e,hs)),I(l,`keypress`,qi(e,vs)),I(l,`focus`,function(t){return fi(e,t)}),I(l,`blur`,function(t){return pi(e,t)})}var Gs=[];Us.defineInitHook=function(e){return Gs.push(e)};function Ks(e,t,n,r){var i=e.doc,a;n??=`add`,n==`smart`&&(i.mode.indent?a=Rt(e,t).state:n=`prev`);var o=e.options.tabSize,s=L(i,t),c=ue(s.text,null,o);s.stateAfter&&=null;var l=s.text.match(/^\s*/)[0],u;if(!r&&!/\S/.test(s.text))u=0,n=`not`;else if(n==`smart`&&(u=i.mode.indent(a,s.text.slice(l.length),s.text),u==pe||u>150)){if(!r)return;n=`prev`}n==`prev`?u=t>i.first?ue(L(i,t-1).text,null,o):0:n==`add`?u=c+e.options.indentUnit:n==`subtract`?u=c-e.options.indentUnit:typeof n==`number`&&(u=c+n),u=Math.max(0,u);var d=``,f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/o);p;--p)f+=o,d+=` `;if(f<u&&(d+=ye(u-f)),d!=l)return uo(i,d,R(t,0),R(t,l.length),`+input`),s.stateAfter=null,!0;for(var m=0;m<i.sel.ranges.length;m++){var h=i.sel.ranges[m];if(h.head.line==t&&h.head.ch<l.length){var g=R(t,l.length);Xa(i,m,new ba(g,g));break}}}var qs=null;function Js(e){qs=e}function Ys(e,t,n,r,i){var a=e.doc;e.display.shift=!1,r||=a.sel;var o=new Date-200,s=i==`paste`||e.state.pasteIncoming>o,c=tt(t),l=null;if(s&&r.ranges.length>1)if(qs&&qs.text.join(`
29
+ `)==t){if(r.ranges.length%qs.text.length==0){l=[];for(var u=0;u<qs.text.length;u++)l.push(a.splitLines(qs.text[u]))}}else c.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=xe(c,function(e){return[e]}));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],m=p.from(),h=p.to();p.empty()&&(n&&n>0?m=R(m.line,m.ch-n):e.state.overwrite&&!s?h=R(h.line,Math.min(L(a,h.line).text.length,h.ch+be(c).length)):s&&qs&&qs.lineWise&&qs.text.join(`
30
+ `)==c.join(`
31
+ `)&&(m=h=R(m.line,0)));var g={from:m,to:h,text:l?l[f%l.length]:c,origin:i||(s?`paste`:e.state.cutIncoming>o?`cut`:`+input`)};io(e.doc,g),Kn(e,`inputRead`,e,g)}t&&!s&&Zs(e,t),Si(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xs(e,t){var n=e.clipboardData&&e.clipboardData.getData(`Text`);if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Ki(t,function(){return Ys(t,n,0,null,`paste`)}),!0}function Zs(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=e.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(t.indexOf(a.electricChars.charAt(s))>-1){o=Ks(e,i.head.line,`smart`);break}}else a.electricInput&&a.electricInput.test(L(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Ks(e,i.head.line,`smart`));o&&Kn(e,`electricInput`,e,i.head.line)}}}function Qs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,a={anchor:R(i,0),head:R(i+1,0)};n.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:n}}function $s(e,t,n,r){e.setAttribute(`autocorrect`,n?`on`:`off`),e.setAttribute(`autocapitalize`,r?`on`:`off`),e.setAttribute(`spellcheck`,!!t)}function ec(){var e=O(`textarea`,null,null,`position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none`),t=O(`div`,[e],null,`overflow: hidden; position: relative; width: 3px; height: 0px;`);return c?e.style.width=`1000px`:e.setAttribute(`wrap`,`off`),g&&(e.style.border=`1px solid black`),t}function tc(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){A(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&e!=`mode`||(r[e]=n,t.hasOwnProperty(e)&&qi(this,t[e])(this,n,i),ze(this,`optionChange`,this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?`push`:`unshift`](Zo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ji(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw Error(`Overlays may not be stateful.`);Se(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Qr(this)}),removeOverlay:Ji(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||typeof e==`string`&&r.name==e){t.splice(n,1),this.state.modeGen++,Qr(this);return}}}),indentLine:Ji(function(e,t,n){typeof t!=`string`&&typeof t!=`number`&&(t=t==null?this.options.smartIndent?`smart`:`prev`:t?`add`:`subtract`),Ct(this.doc,e)&&Ks(this,e,t,n)}),indentSelection:Ji(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ks(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Si(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-+!o.ch)+1;for(var c=s;c<n;++c)Ks(this,c,e);var l=this.doc.sel.ranges;a.ch==0&&t.length==l.length&&l[r].from().ch>0&&Xa(this.doc,r,new ba(a,l[r].to()),me)}}}),getTokenAt:function(e,t){return Ut(this,e,t)},getLineTokens:function(e,t){return Ut(this,R(e),t,!0)},getTokenTypeAt:function(e){e=jt(this.doc,e);var t=Lt(this,L(this.doc,e.line)),n=0,r=(t.length-1)/2,i=e.ch,a;if(i==0)a=t[2];else for(;;){var o=n+r>>1;if((o?t[o*2-1]:0)>=i)r=o;else if(t[o*2+1]<i)n=o+1;else{a=t[o*2+2];break}}var s=a?a.indexOf(`overlay `):-1;return s<0?a:s==0?null:a.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],a=this.getModeAt(e);if(typeof a[t]==`string`)i[a[t]]&&r.push(i[a[t]]);else if(a[t])for(var o=0;o<a[t].length;o++){var s=i[a[t][o]];s&&r.push(s)}else a.helperType&&i[a.helperType]?r.push(i[a.helperType]):i[a.name]&&r.push(i[a.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(a,this)&&N(r,l.val)==-1&&r.push(l.val)}return r},getStateAfter:function(e,t){var n=this.doc;return e=At(n,e??n.first+n.size-1),Rt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=e==null?r.head:typeof e==`object`?jt(this.doc,e):e?r.from():r.to(),Nr(this,n,t||`page`)},charCoords:function(e,t){return Mr(this,jt(this.doc,e),t||`page`)},coordsChar:function(e,t){return e=jr(this,e,t||`page`),Ir(this,e.left,e.top)},lineAtHeight:function(e,t){return e=jr(this,{top:e,left:0},t||`page`).top,St(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r=!1,i;if(typeof e==`number`){var a=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>a&&(e=a,r=!0),i=L(this.doc,e)}else i=e;return Ar(this,i,{top:0,left:0},t||`page`,n||r).top+(r?this.doc.height-Cn(i):0)},defaultTextHeight:function(){return Wr(this.display)},defaultCharWidth:function(){return Gr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var a=this.display;e=Nr(this,jt(this.doc,e));var o=e.bottom,s=e.left;if(t.style.position=`absolute`,t.setAttribute(`cm-ignore-events`,`true`),this.display.input.setUneditable(t),a.sizer.appendChild(t),r==`over`)o=e.top;else if(r==`above`||r==`near`){var c=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);(r==`above`||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=c&&(o=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=o+`px`,t.style.left=t.style.right=``,i==`right`?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right=`0px`):(i==`left`?s=0:i==`middle`&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+`px`),n&&yi(this,{left:s,top:o,right:s+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:Ji(hs),triggerOnKeyPress:Ji(vs),triggerOnKeyUp:_s,triggerOnMouseDown:Ji(ws),execCommand:function(e){if(rs.hasOwnProperty(e))return rs[e].call(null,this)},triggerElectric:Ji(function(e){Zs(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var a=jt(this.doc,e),o=0;o<t&&(a=nc(this.doc,a,i,n,r),!a.hitSide);++o);return a},moveH:Ji(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?nc(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},ge)}),deleteH:Ji(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection(``,null,`+delete`):Qo(this,function(n){var i=nc(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,a=r;t<0&&(i=-1,t=-t);for(var o=jt(this.doc,e),s=0;s<t;++s){var c=Nr(this,o,`div`);if(a==null?a=c.left:c.left=a,o=rc(this,c,i,n),o.hitSide)break}return o},moveV:Ji(function(e,t){var n=this,r=this.doc,i=[],a=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(o){if(a)return e<0?o.from():o.to();var s=Nr(n,o.head,`div`);o.goalColumn!=null&&(s.left=o.goalColumn),i.push(s.left);var c=rc(n,s,e,t);return t==`page`&&o==r.sel.primary()&&xi(n,Mr(n,c,`div`).top-s.top),c},ge),i.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=i[o]}),findWordAt:function(e){var t=this.doc,n=L(t,e.line).text,r=e.ch,i=e.ch;if(n){var a=this.getHelper(e,`wordChars`);(e.sticky==`before`||i==n.length)&&r?--r:++i;for(var o=n.charAt(r),s=Ee(o,a)?function(e){return Ee(e,a)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!Ee(e)};r>0&&s(n.charAt(r-1));)--r;for(;i<n.length&&s(n.charAt(i));)++i}return new ba(R(e.line,r),R(e.line,i))},toggleOverwrite:function(e){e!=null&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ie(this.display.cursorDiv,`CodeMirror-overwrite`):ee(this.display.cursorDiv,`CodeMirror-overwrite`),ze(this,`overwriteToggle`,this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==re(ce(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ji(function(e,t){Ci(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-ur(this)-this.display.barHeight,width:e.scrollWidth-ur(this)-this.display.barWidth,clientHeight:fr(this),clientWidth:dr(this)}},scrollIntoView:Ji(function(e,t){e==null?(e={from:this.doc.sel.primary().head,to:null},t??=this.options.cursorScrollMargin):typeof e==`number`?e={from:R(e,0),to:null}:e.from??(e={from:e,to:null}),e.to||=e.from,e.margin=t||0,e.from.line==null?Ei(this,e.from,e.to,e.margin):wi(this,e)}),setSize:Ji(function(e,t){var n=this,r=function(e){return typeof e==`number`||/^\d+$/.test(String(e))?e+`px`:e};e!=null&&(this.display.wrapper.style.width=r(e)),t!=null&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Er(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets){for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){$r(n,i,`widget`);break}}++i}),this.curOp.forceUpdate=!0,ze(this,`refresh`,this)}),operation:function(e){return Ki(this,e)},startOperation:function(){return Ri(this)},endOperation:function(){return zi(this)},refresh:Ji(function(){var e=this.display.cachedTextHeight;Qr(this),this.curOp.forceUpdate=!0,Dr(this),Ci(this,this.doc.scrollLeft,this.doc.scrollTop),oa(this.display),(e==null||Math.abs(e-Wr(this.display))>.5||this.options.lineWrapping)&&Yr(this),ze(this,`refresh`,this)}),swapDoc:Ji(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Na(this,e),Dr(this),this.display.input.reset(),Ci(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Kn(this,`swapDoc`,this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},Ue(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,a){e.registerHelper(t,r,a),n[t]._global.push({pred:i,val:a})}}function nc(e,t,n,r,i){var a=t,o=n,s=L(e,t.line),c=i&&e.direction==`rtl`?-n:n;function l(){var n=t.line+c;return n<e.first||n>=e.first+e.size?!1:(t=new R(n,t.ch,t.sticky),s=L(e,n))}function u(a){var o;if(r==`codepoint`){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))o=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;o=new R(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else o=i?ns(e.cm,s,t,n):es(s,t,n);if(o==null)if(!a&&l())t=ts(i,e.cm,s,t.line,c);else return!1;else t=o;return!0}if(r==`char`||r==`codepoint`)u();else if(r==`column`)u(!0);else if(r==`word`||r==`group`)for(var d=null,f=r==`group`,p=e.cm&&e.cm.getHelper(t,`wordChars`),m=!0;!(n<0&&!u(!m));m=!1){var h=s.text.charAt(t.ch)||`
32
+ `,g=Ee(h,p)?`w`:f&&h==`
33
+ `?`n`:!f||/\s/.test(h)?null:`p`;if(f&&!m&&!g&&(g=`s`),d&&d!=g){n<0&&(n=1,u(),t.sticky=`after`);break}if(g&&(d=g),n>0&&!u(!m))break}var _=no(e,t,a,o,!0);return Et(a,_)&&(_.hitSide=!0),_}function rc(e,t,n,r){var i=e.doc,a=t.left,o;if(r==`page`){var s=Math.min(e.display.wrapper.clientHeight,A(e).innerHeight||i(e).documentElement.clientHeight),c=Math.max(s-.5*Wr(e.display),3);o=(n>0?t.bottom:t.top)+n*c}else r==`line`&&(o=n>0?t.bottom+3:t.top-3);for(var l;l=Ir(e,a,o),l.outside;){if(n<0?o<=0:o>=i.height){l.hitSide=!0;break}o+=n*5}return l}var ic=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ic.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,$s(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function a(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}I(i,`paste`,function(e){!a(e)||Be(r,e)||Xs(e,r)||s<=11&&setTimeout(qi(r,function(){return t.updateFromDOM()}),20)}),I(i,`compositionstart`,function(e){t.composing={data:e.data,done:!1}}),I(i,`compositionupdate`,function(e){t.composing||={data:e.data,done:!1}}),I(i,`compositionend`,function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),I(i,`touchstart`,function(){return n.forceCompositionEnd()}),I(i,`input`,function(){t.composing||t.readFromDOMSoon()});function o(e){if(!(!a(e)||Be(r,e))){if(r.somethingSelected())Js({lineWise:!1,text:r.getSelections()}),e.type==`cut`&&r.replaceSelection(``,null,`cut`);else if(r.options.lineWiseCopyCut){var t=Qs(r);Js({lineWise:!0,text:t.text}),e.type==`cut`&&r.operation(function(){r.setSelections(t.ranges,0,me),r.replaceSelection(``,null,`cut`)})}else return;if(e.clipboardData){e.clipboardData.clearData();var o=qs.text.join(`
34
+ `);if(e.clipboardData.setData(`Text`,o),e.clipboardData.getData(`Text`)==o){e.preventDefault();return}}var s=ec(),c=s.firstChild;$s(c),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),c.value=qs.text.join(`
35
+ `);var l=re(le(i));oe(c),setTimeout(function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()},50)}}I(i,`copy`,o),I(i,`cut`,o)},ic.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute(`aria-label`,e):this.div.removeAttribute(`aria-label`)},ic.prototype.prepareSelection=function(){var e=ai(this.cm,!1);return e.focus=re(le(this.div))==this.div,e},ic.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ic.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ic.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),a=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||a.line<t.display.viewFrom){e.removeAllRanges();return}var o=lc(t,e.anchorNode,e.anchorOffset),s=lc(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&s&&!s.bad&&Tt(kt(o,s),i)==0&&Tt(Ot(o,s),a)==0)){var c=t.display.view,l=i.line>=t.display.viewFrom&&ac(t,i)||{node:c[0].measure.map[2],offset:0},u=a.line<t.display.viewTo&&ac(t,a);if(!u){var d=c[c.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!l||!u){e.removeAllRanges();return}var p=e.rangeCount&&e.getRangeAt(0),m;try{m=te(l.node,l.offset,u.offset,u.node)}catch{}m&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),m.collapsed||(e.removeAllRanges(),e.addRange(m))):(e.removeAllRanges(),e.addRange(m)),p&&e.anchorNode==null?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}},ic.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ic.prototype.showMultipleSelections=function(e){D(this.cm.display.cursorDiv,e.cursors),D(this.cm.display.selectionDiv,e.selection)},ic.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ic.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return ne(this.div,t)},ic.prototype.focus=function(){this.cm.options.readOnly!=`nocursor`&&((!this.selectionInEditor()||re(le(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ic.prototype.blur=function(){this.div.blur()},ic.prototype.getField=function(){return this.div},ic.prototype.supportsTouch=function(){return!0},ic.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Ki(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.polling.set(this.cm.options.pollInterval,n)},ic.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ic.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(_&&u&&this.cm.display.gutterSpecs.length&&oc(e.anchorNode)){this.cm.triggerOnKeyDown({type:`keydown`,keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var n=lc(t,e.anchorNode,e.anchorOffset),r=lc(t,e.focusNode,e.focusOffset);n&&r&&Ki(t,function(){Qa(t.doc,Sa(n,r),me),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},ic.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=R(r.line-1,L(e.doc,r.line-1).length)),i.ch==L(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=R(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var a,o,s;r.line==t.viewFrom||(a=Zr(e,r.line))==0?(o=xt(t.view[0].line),s=t.view[0].node):(o=xt(t.view[a].line),s=t.view[a-1].node.nextSibling);var c=Zr(e,i.line),l,u;if(c==t.view.length-1?(l=t.viewTo-1,u=t.lineDiv.lastChild):(l=xt(t.view[c+1].line)-1,u=t.view[c+1].node.previousSibling),!s)return!1;for(var d=e.doc.splitLines(cc(e,s,u,o,l)),f=vt(e.doc,R(o,0),R(l,L(e.doc,l).text.length));d.length>1&&f.length>1;)if(be(d)==be(f))d.pop(),f.pop(),l--;else if(d[0]==f[0])d.shift(),f.shift(),o++;else break;for(var p=0,m=0,h=d[0],g=f[0],_=Math.min(h.length,g.length);p<_&&h.charCodeAt(p)==g.charCodeAt(p);)++p;for(var v=be(d),y=be(f),b=Math.min(v.length-(d.length==1?p:0),y.length-(f.length==1?p:0));m<b&&v.charCodeAt(v.length-m-1)==y.charCodeAt(y.length-m-1);)++m;if(d.length==1&&f.length==1&&o==r.line)for(;p&&p>r.ch&&v.charCodeAt(v.length-m-1)==y.charCodeAt(y.length-m-1);)p--,m++;d[d.length-1]=v.slice(0,v.length-m).replace(/^\u200b+/,``),d[0]=d[0].slice(p).replace(/\u200b+$/,``);var x=R(o,p),S=R(l,f.length?be(f).length-m:0);if(d.length>1||d[0]||Tt(x,S))return uo(e.doc,d,x,S,`+input`),!0},ic.prototype.ensurePolled=function(){this.forceCompositionEnd()},ic.prototype.reset=function(){this.forceCompositionEnd()},ic.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ic.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout??=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ic.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ki(this.cm,function(){return Qr(e.cm)})},ic.prototype.setUneditable=function(e){e.contentEditable=`false`},ic.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||qi(this.cm,Ys)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ic.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!=`nocursor`)},ic.prototype.onContextMenu=function(){},ic.prototype.resetPosition=function(){},ic.prototype.needsContentAttribute=!0;function ac(e,t){var n=_r(e,t.line);if(!n||n.hidden)return null;var r=L(e.doc,t.line),i=mr(n,r,t.line),a=Fe(r,e.doc.direction),o=`left`;a&&(o=Ne(a,t.ch)%2?`right`:`left`);var s=xr(i.map,t.ch,o);return s.offset=s.collapse==`right`?s.end:s.start,s}function oc(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function sc(e,t){return t&&(e.bad=!0),e}function cc(e,t,n,r,i){var a=``,o=!1,s=e.doc.lineSeparator(),c=!1;function l(e){return function(t){return t.id==e}}function u(){o&&=(a+=s,c&&(a+=s),c=!1)}function d(e){e&&(u(),a+=e)}function f(t){if(t.nodeType==1){var n=t.getAttribute(`cm-text`);if(n){d(n);return}var a=t.getAttribute(`cm-marker`),p;if(a){var m=e.findMarks(R(r,0),R(i+1,0),l(+a));m.length&&(p=m[0].find(0))&&d(vt(e.doc,p.from,p.to).join(s));return}if(t.getAttribute(`contenteditable`)==`false`)return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&t.textContent.length==0)return;h&&u();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(c=!0),h&&(o=!0)}else t.nodeType==3&&d(t.nodeValue.replace(/\u200b/g,``).replace(/\u00a0/g,` `))}for(;f(t),t!=n;)t=t.nextSibling,c=!1;return a}function lc(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return sc(e.clipPos(R(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var a=e.display.view[i];if(a.node==r)return uc(a,t,n)}}function uc(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!ne(r,t))return sc(R(xt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var a=e.rest?be(e.rest):e.line;return sc(R(xt(a),a.text.length),i)}var o=t.nodeType==3?t:null,s=t;for(!o&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(o=t.firstChild,n&&=o.nodeValue.length);s.parentNode!=r;)s=s.parentNode;var c=e.measure,l=c.maps;function u(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var a=i<0?c.map:l[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==t||s==n){var u=xt(i<0?e.line:e.rest[i]),d=a[o]+r;return(r<0||s!=t)&&(d=a[o+ +!!r]),R(u,d)}}}var d=u(o,s,n);if(d)return sc(d,i);for(var f=s.nextSibling,p=o?o.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0),d)return sc(R(d.line,d.ch-p),i);p+=f.textContent.length}for(var m=s.previousSibling,h=n;m;m=m.previousSibling){if(d=u(m,m.firstChild,-1),d)return sc(R(d.line,d.ch+h),i);h+=m.textContent.length}}var dc=function(e){this.cm=e,this.prevInput=``,this.pollingFast=!1,this.polling=new de,this.hasSelection=!1,this.composing=null,this.resetting=!1};dc.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width=`0px`),I(i,`input`,function(){o&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),I(i,`paste`,function(e){Be(r,e)||Xs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function a(e){if(!Be(r,e)){if(r.somethingSelected())Js({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var t=Qs(r);Js({lineWise:!0,text:t.text}),e.type==`cut`?r.setSelections(t.ranges,null,me):(n.prevInput=``,i.value=t.text.join(`
36
+ `),oe(i))}else return;e.type==`cut`&&(r.state.cutIncoming=+new Date)}}I(i,`cut`,a),I(i,`copy`,a),I(e.scroller,`paste`,function(t){if(!(or(e,t)||Be(r,t))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event(`paste`);a.clipboardData=t.clipboardData,i.dispatchEvent(a)}}),I(e.lineSpace,`selectstart`,function(t){or(e,t)||We(t)}),I(i,`compositionstart`,function(){var e=r.getCursor(`from`);n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor(`to`),{className:`CodeMirror-composing`})}}),I(i,`compositionend`,function(){n.composing&&=(n.poll(),n.composing.range.clear(),null)})},dc.prototype.createField=function(e){this.wrapper=ec(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;$s(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},dc.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute(`aria-label`,e):this.textarea.removeAttribute(`aria-label`)},dc.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ai(e);if(e.options.moveInputWithCursor){var i=Nr(e,n.sel.primary().head,`div`),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},dc.prototype.showSelection=function(e){var t=this.cm.display;D(t.cursorDiv,e.cursors),D(t.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+`px`,this.wrapper.style.left=e.teLeft+`px`)},dc.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput=``;var n=t.getSelection();this.textarea.value=n,t.state.focused&&oe(this.textarea),o&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value=``,o&&s>=9&&(this.hasSelection=null));this.resetting=!1}},dc.prototype.getField=function(){return this.textarea},dc.prototype.supportsTouch=function(){return!1},dc.prototype.focus=function(){if(this.cm.options.readOnly!=`nocursor`&&(!v||re(le(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},dc.prototype.blur=function(){this.textarea.blur()},dc.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},dc.prototype.receivedFocus=function(){this.slowPoll()},dc.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},dc.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){!t.poll()&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},dc.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||nt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=i.charCodeAt(0);if(a==8203&&!r&&(r=`​`),a==8666)return this.reset(),this.cm.execCommand(`undo`)}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Ki(t,function(){Ys(t,i.slice(c),r.length-c,null,e.composing?`*compose`:null),i.length>1e3||i.indexOf(`
37
+ `)>-1?n.value=e.prevInput=``:e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor(`to`),{className:`CodeMirror-composing`}))}),!0},dc.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},dc.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},dc.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Xr(n,e),l=r.scroller.scrollTop;if(!a||f)return;n.options.resetSelectionOnContextMenu&&n.doc.sel.contains(a)==-1&&qi(n,Qa)(n.doc,Sa(a),me);var u=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText=`position: static`,i.style.cssText=`position: absolute; width: 30px; height: 30px;
38
+ top: `+(e.clientY-p.top-5)+`px; left: `+(e.clientX-p.left-5)+`px;
39
+ z-index: 1000; background: `+(o?`rgba(255, 255, 255, .05)`:`transparent`)+`;
40
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var m;c&&(m=i.ownerDocument.defaultView.scrollY),r.input.focus(),c&&i.ownerDocument.defaultView.scrollTo(null,m),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=` `),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function h(){if(i.selectionStart!=null){var e=n.somethingSelected(),a=`​`+(e?i.value:``);i.value=`⇚`,i.value=a,t.prevInput=e?``:`​`,i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=u,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!o||o&&s<9)&&h();var e=0,a=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput==`​`?qi(n,Y)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}if(o&&s>=9&&h(),w){qe(e);var _=function(){Re(window,`mouseup`,_),setTimeout(g,20)};I(window,`mouseup`,_)}else setTimeout(g,50)},dc.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e==`nocursor`,this.textarea.readOnly=!!e},dc.prototype.setUneditable=function(){},dc.prototype.needsContentAttribute=!1;function fc(e,t){if(t=t?M(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=re(le(e));t.autofocus=n==e||e.getAttribute(`autofocus`)!=null&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(I(e.form,`submit`,r),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch{}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display=``,e.form&&(Re(e.form,`submit`,r),!t.leaveSubmitMethodAlone&&typeof e.form.submit==`function`&&(e.form.submit=i))}},e.style.display=`none`;var s=Us(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function pc(e){e.off=Re,e.on=I,e.wheelEventPixels=_a,e.Doc=Ao,e.splitLines=tt,e.countColumn=ue,e.findColumn=_e,e.isWordChar=Te,e.Pass=pe,e.signal=ze,e.Line=En,e.changeEnd=Ca,e.scrollbarModel=Fi,e.Pos=R,e.cmpPos=Tt,e.modes=ot,e.mimeModes=st,e.resolveMode=ut,e.getMode=dt,e.modeExtensions=ft,e.extendMode=pt,e.copyState=mt,e.startState=gt,e.innerMode=ht,e.commands=rs,e.keyMap=Wo,e.keyName=Xo,e.isModifierKey=Jo,e.lookupKey=qo,e.normalizeKeyMap=Ko,e.StringStream=_t,e.SharedTextMarker=wo,e.TextMarker=So,e.LineWidget=vo,e.e_preventDefault=We,e.e_stopPropagation=Ge,e.e_stop=qe,e.addClass=ie,e.contains=ne,e.rmClass=ee,e.keyNames=Bo}Bs(Us),tc(Us);var mc=`iter insert remove copy getEditor constructor`.split(` `);for(var hc in Ao.prototype)Ao.prototype.hasOwnProperty(hc)&&N(mc,hc)<0&&(Us.prototype[hc]=(function(e){return function(){return e.apply(this.doc,arguments)}})(Ao.prototype[hc]));return Ue(Ao),Us.inputStyles={textarea:dc,contenteditable:ic},Us.defineMode=function(e){!Us.defaults.mode&&e!=`null`&&(Us.defaults.mode=e),ct.apply(this,arguments)},Us.defineMIME=lt,Us.defineMode(`null`,function(){return{token:function(e){return e.skipToEnd()}}}),Us.defineMIME(`text/plain`,`null`),Us.defineExtension=function(e,t){Us.prototype[e]=t},Us.defineDocExtension=function(e,t){Ao.prototype[e]=t},Us.fromTextArea=fc,pc(Us),Us.version=`5.65.18`,Us}))})),bS=c({AElig:()=>`Æ`,AMP:()=>`&`,Aacute:()=>`Á`,Abreve:()=>`Ă`,Acirc:()=>`Â`,Acy:()=>`А`,Afr:()=>SS,Agrave:()=>`À`,Alpha:()=>`Α`,Amacr:()=>`Ā`,And:()=>`⩓`,Aogon:()=>`Ą`,Aopf:()=>wS,ApplyFunction:()=>`⁡`,Aring:()=>`Å`,Ascr:()=>ES,Assign:()=>`≔`,Atilde:()=>`Ã`,Auml:()=>`Ä`,Backslash:()=>`∖`,Barv:()=>`⫧`,Barwed:()=>`⌆`,Bcy:()=>`Б`,Because:()=>`∵`,Bernoullis:()=>`ℬ`,Beta:()=>`Β`,Bfr:()=>OS,Bopf:()=>MS,Breve:()=>`˘`,Bscr:()=>`ℬ`,Bumpeq:()=>`≎`,CHcy:()=>`Ч`,COPY:()=>`©`,Cacute:()=>`Ć`,Cap:()=>`⋒`,CapitalDifferentialD:()=>`ⅅ`,Cayleys:()=>`ℭ`,Ccaron:()=>`Č`,Ccedil:()=>`Ç`,Ccirc:()=>`Ĉ`,Cconint:()=>`∰`,Cdot:()=>`Ċ`,Cedilla:()=>`¸`,CenterDot:()=>`·`,Cfr:()=>`ℭ`,Chi:()=>`Χ`,CircleDot:()=>`⊙`,CircleMinus:()=>`⊖`,CirclePlus:()=>`⊕`,CircleTimes:()=>`⊗`,ClockwiseContourIntegral:()=>`∲`,CloseCurlyDoubleQuote:()=>`”`,CloseCurlyQuote:()=>`’`,Colon:()=>`∷`,Colone:()=>`⩴`,Congruent:()=>`≡`,Conint:()=>`∯`,ContourIntegral:()=>`∮`,Copf:()=>`ℂ`,Coproduct:()=>`∐`,CounterClockwiseContourIntegral:()=>`∳`,Cross:()=>`⨯`,Cscr:()=>RS,Cup:()=>`⋓`,CupCap:()=>`≍`,DD:()=>`ⅅ`,DDotrahd:()=>`⤑`,DJcy:()=>`Ђ`,DScy:()=>`Ѕ`,DZcy:()=>`Џ`,Dagger:()=>`‡`,Darr:()=>`↡`,Dashv:()=>`⫤`,Dcaron:()=>`Ď`,Dcy:()=>`Д`,Del:()=>`∇`,Delta:()=>`Δ`,Dfr:()=>VS,DiacriticalAcute:()=>`´`,DiacriticalDot:()=>`˙`,DiacriticalDoubleAcute:()=>`˝`,DiacriticalGrave:()=>"`",DiacriticalTilde:()=>`˜`,Diamond:()=>`⋄`,DifferentialD:()=>`ⅆ`,Dopf:()=>US,Dot:()=>`¨`,DotDot:()=>`⃜`,DotEqual:()=>`≐`,DoubleContourIntegral:()=>`∯`,DoubleDot:()=>`¨`,DoubleDownArrow:()=>`⇓`,DoubleLeftArrow:()=>`⇐`,DoubleLeftRightArrow:()=>`⇔`,DoubleLeftTee:()=>`⫤`,DoubleLongLeftArrow:()=>`⟸`,DoubleLongLeftRightArrow:()=>`⟺`,DoubleLongRightArrow:()=>`⟹`,DoubleRightArrow:()=>`⇒`,DoubleRightTee:()=>`⊨`,DoubleUpArrow:()=>`⇑`,DoubleUpDownArrow:()=>`⇕`,DoubleVerticalBar:()=>`∥`,DownArrow:()=>`↓`,DownArrowBar:()=>`⤓`,DownArrowUpArrow:()=>`⇵`,DownBreve:()=>`̑`,DownLeftRightVector:()=>`⥐`,DownLeftTeeVector:()=>`⥞`,DownLeftVector:()=>`↽`,DownLeftVectorBar:()=>`⥖`,DownRightTeeVector:()=>`⥟`,DownRightVector:()=>`⇁`,DownRightVectorBar:()=>`⥗`,DownTee:()=>`⊤`,DownTeeArrow:()=>`↧`,Downarrow:()=>`⇓`,Dscr:()=>GS,Dstrok:()=>`Đ`,ENG:()=>`Ŋ`,ETH:()=>`Ð`,Eacute:()=>`É`,Ecaron:()=>`Ě`,Ecirc:()=>`Ê`,Ecy:()=>`Э`,Edot:()=>`Ė`,Efr:()=>qS,Egrave:()=>`È`,Element:()=>`∈`,Emacr:()=>`Ē`,EmptySmallSquare:()=>`◻`,EmptyVerySmallSquare:()=>`▫`,Eogon:()=>`Ę`,Eopf:()=>YS,Epsilon:()=>`Ε`,Equal:()=>`⩵`,EqualTilde:()=>`≂`,Equilibrium:()=>`⇌`,Escr:()=>`ℰ`,Esim:()=>`⩳`,Eta:()=>`Η`,Euml:()=>`Ë`,Exists:()=>`∃`,ExponentialE:()=>`ⅇ`,Fcy:()=>`Ф`,Ffr:()=>ZS,FilledSmallSquare:()=>`◼`,FilledVerySmallSquare:()=>`▪`,Fopf:()=>$S,ForAll:()=>`∀`,Fouriertrf:()=>`ℱ`,Fscr:()=>`ℱ`,GJcy:()=>`Ѓ`,GT:()=>`>`,Gamma:()=>`Γ`,Gammad:()=>`Ϝ`,Gbreve:()=>`Ğ`,Gcedil:()=>`Ģ`,Gcirc:()=>`Ĝ`,Gcy:()=>`Г`,Gdot:()=>`Ġ`,Gfr:()=>rC,Gg:()=>`⋙`,Gopf:()=>aC,GreaterEqual:()=>`≥`,GreaterEqualLess:()=>`⋛`,GreaterFullEqual:()=>`≧`,GreaterGreater:()=>`⪢`,GreaterLess:()=>`≷`,GreaterSlantEqual:()=>`⩾`,GreaterTilde:()=>`≳`,Gscr:()=>sC,Gt:()=>`≫`,HARDcy:()=>`Ъ`,Hacek:()=>`ˇ`,Hat:()=>`^`,Hcirc:()=>`Ĥ`,Hfr:()=>`ℌ`,HilbertSpace:()=>`ℋ`,Hopf:()=>`ℍ`,HorizontalLine:()=>`─`,Hscr:()=>`ℋ`,Hstrok:()=>`Ħ`,HumpDownHump:()=>`≎`,HumpEqual:()=>`≏`,IEcy:()=>`Е`,IJlig:()=>`IJ`,IOcy:()=>`Ё`,Iacute:()=>`Í`,Icirc:()=>`Î`,Icy:()=>`И`,Idot:()=>`İ`,Ifr:()=>`ℑ`,Igrave:()=>`Ì`,Im:()=>`ℑ`,Imacr:()=>`Ī`,ImaginaryI:()=>`ⅈ`,Implies:()=>`⇒`,Int:()=>`∬`,Integral:()=>`∫`,Intersection:()=>`⋂`,InvisibleComma:()=>`⁣`,InvisibleTimes:()=>`⁢`,Iogon:()=>`Į`,Iopf:()=>mC,Iota:()=>`Ι`,Iscr:()=>`ℐ`,Itilde:()=>`Ĩ`,Iukcy:()=>`І`,Iuml:()=>`Ï`,Jcirc:()=>`Ĵ`,Jcy:()=>`Й`,Jfr:()=>_C,Jopf:()=>yC,Jscr:()=>xC,Jsercy:()=>`Ј`,Jukcy:()=>`Є`,KHcy:()=>`Х`,KJcy:()=>`Ќ`,Kappa:()=>`Κ`,Kcedil:()=>`Ķ`,Kcy:()=>`К`,Kfr:()=>CC,Kopf:()=>TC,Kscr:()=>DC,LJcy:()=>`Љ`,LT:()=>`<`,Lacute:()=>`Ĺ`,Lambda:()=>`Λ`,Lang:()=>`⟪`,Laplacetrf:()=>`ℒ`,Larr:()=>`↞`,Lcaron:()=>`Ľ`,Lcedil:()=>`Ļ`,Lcy:()=>`Л`,LeftAngleBracket:()=>`⟨`,LeftArrow:()=>`←`,LeftArrowBar:()=>`⇤`,LeftArrowRightArrow:()=>`⇆`,LeftCeiling:()=>`⌈`,LeftDoubleBracket:()=>`⟦`,LeftDownTeeVector:()=>`⥡`,LeftDownVector:()=>`⇃`,LeftDownVectorBar:()=>`⥙`,LeftFloor:()=>`⌊`,LeftRightArrow:()=>`↔`,LeftRightVector:()=>`⥎`,LeftTee:()=>`⊣`,LeftTeeArrow:()=>`↤`,LeftTeeVector:()=>`⥚`,LeftTriangle:()=>`⊲`,LeftTriangleBar:()=>`⧏`,LeftTriangleEqual:()=>`⊴`,LeftUpDownVector:()=>`⥑`,LeftUpTeeVector:()=>`⥠`,LeftUpVector:()=>`↿`,LeftUpVectorBar:()=>`⥘`,LeftVector:()=>`↼`,LeftVectorBar:()=>`⥒`,Leftarrow:()=>`⇐`,Leftrightarrow:()=>`⇔`,LessEqualGreater:()=>`⋚`,LessFullEqual:()=>`≦`,LessGreater:()=>`≶`,LessLess:()=>`⪡`,LessSlantEqual:()=>`⩽`,LessTilde:()=>`≲`,Lfr:()=>jC,Ll:()=>`⋘`,Lleftarrow:()=>`⇚`,Lmidot:()=>`Ŀ`,LongLeftArrow:()=>`⟵`,LongLeftRightArrow:()=>`⟷`,LongRightArrow:()=>`⟶`,Longleftarrow:()=>`⟸`,Longleftrightarrow:()=>`⟺`,Longrightarrow:()=>`⟹`,Lopf:()=>NC,LowerLeftArrow:()=>`↙`,LowerRightArrow:()=>`↘`,Lscr:()=>`ℒ`,Lsh:()=>`↰`,Lstrok:()=>`Ł`,Lt:()=>`≪`,Map:()=>`⤅`,Mcy:()=>`М`,MediumSpace:()=>` `,Mellintrf:()=>`ℳ`,Mfr:()=>RC,MinusPlus:()=>`∓`,Mopf:()=>BC,Mscr:()=>`ℳ`,Mu:()=>`Μ`,NJcy:()=>`Њ`,Nacute:()=>`Ń`,Ncaron:()=>`Ň`,Ncedil:()=>`Ņ`,Ncy:()=>`Н`,NegativeMediumSpace:()=>`​`,NegativeThickSpace:()=>`​`,NegativeThinSpace:()=>`​`,NegativeVeryThinSpace:()=>`​`,NestedGreaterGreater:()=>`≫`,NestedLessLess:()=>`≪`,NewLine:()=>`
41
+ `,Nfr:()=>ZC,NoBreak:()=>`⁠`,NonBreakingSpace:()=>`\xA0`,Nopf:()=>`ℕ`,Not:()=>`⫬`,NotCongruent:()=>`≢`,NotCupCap:()=>`≭`,NotDoubleVerticalBar:()=>`∦`,NotElement:()=>`∉`,NotEqual:()=>`≠`,NotEqualTilde:()=>mw,NotExists:()=>`∄`,NotGreater:()=>`≯`,NotGreaterEqual:()=>`≱`,NotGreaterFullEqual:()=>hw,NotGreaterGreater:()=>gw,NotGreaterLess:()=>`≹`,NotGreaterSlantEqual:()=>_w,NotGreaterTilde:()=>`≵`,NotHumpDownHump:()=>vw,NotHumpEqual:()=>yw,NotLeftTriangle:()=>`⋪`,NotLeftTriangleBar:()=>Sw,NotLeftTriangleEqual:()=>`⋬`,NotLess:()=>`≮`,NotLessEqual:()=>`≰`,NotLessGreater:()=>`≸`,NotLessLess:()=>Cw,NotLessSlantEqual:()=>ww,NotLessTilde:()=>`≴`,NotNestedGreaterGreater:()=>Tw,NotNestedLessLess:()=>Ew,NotPrecedes:()=>`⊀`,NotPrecedesEqual:()=>Dw,NotPrecedesSlantEqual:()=>`⋠`,NotReverseElement:()=>`∌`,NotRightTriangle:()=>`⋫`,NotRightTriangleBar:()=>Ow,NotRightTriangleEqual:()=>`⋭`,NotSquareSubset:()=>kw,NotSquareSubsetEqual:()=>`⋢`,NotSquareSuperset:()=>Aw,NotSquareSupersetEqual:()=>`⋣`,NotSubset:()=>jw,NotSubsetEqual:()=>`⊈`,NotSucceeds:()=>`⊁`,NotSucceedsEqual:()=>Mw,NotSucceedsSlantEqual:()=>`⋡`,NotSucceedsTilde:()=>Nw,NotSuperset:()=>Pw,NotSupersetEqual:()=>`⊉`,NotTilde:()=>`≁`,NotTildeEqual:()=>`≄`,NotTildeFullEqual:()=>`≇`,NotTildeTilde:()=>`≉`,NotVerticalBar:()=>`∤`,Nscr:()=>Hw,Ntilde:()=>`Ñ`,Nu:()=>`Ν`,OElig:()=>`Œ`,Oacute:()=>`Ó`,Ocirc:()=>`Ô`,Ocy:()=>`О`,Odblac:()=>`Ő`,Ofr:()=>aT,Ograve:()=>`Ò`,Omacr:()=>`Ō`,Omega:()=>`Ω`,Omicron:()=>`Ο`,Oopf:()=>sT,OpenCurlyDoubleQuote:()=>`“`,OpenCurlyQuote:()=>`‘`,Or:()=>`⩔`,Oscr:()=>lT,Oslash:()=>`Ø`,Otilde:()=>`Õ`,Otimes:()=>`⨷`,Ouml:()=>`Ö`,OverBar:()=>`‾`,OverBrace:()=>`⏞`,OverBracket:()=>`⎴`,OverParenthesis:()=>`⏜`,PartialD:()=>`∂`,Pcy:()=>`П`,Pfr:()=>uT,Phi:()=>`Φ`,Pi:()=>`Π`,PlusMinus:()=>`±`,Poincareplane:()=>`ℌ`,Popf:()=>`ℙ`,Pr:()=>`⪻`,Precedes:()=>`≺`,PrecedesEqual:()=>`⪯`,PrecedesSlantEqual:()=>`≼`,PrecedesTilde:()=>`≾`,Prime:()=>`″`,Product:()=>`∏`,Proportion:()=>`∷`,Proportional:()=>`∝`,Pscr:()=>pT,Psi:()=>`Ψ`,QUOT:()=>`"`,Qfr:()=>hT,Qopf:()=>`ℚ`,Qscr:()=>vT,RBarr:()=>`⤐`,REG:()=>`®`,Racute:()=>`Ŕ`,Rang:()=>`⟫`,Rarr:()=>`↠`,Rarrtl:()=>`⤖`,Rcaron:()=>`Ř`,Rcedil:()=>`Ŗ`,Rcy:()=>`Р`,Re:()=>`ℜ`,ReverseElement:()=>`∋`,ReverseEquilibrium:()=>`⇋`,ReverseUpEquilibrium:()=>`⥯`,Rfr:()=>`ℜ`,Rho:()=>`Ρ`,RightAngleBracket:()=>`⟩`,RightArrow:()=>`→`,RightArrowBar:()=>`⇥`,RightArrowLeftArrow:()=>`⇄`,RightCeiling:()=>`⌉`,RightDoubleBracket:()=>`⟧`,RightDownTeeVector:()=>`⥝`,RightDownVector:()=>`⇂`,RightDownVectorBar:()=>`⥕`,RightFloor:()=>`⌋`,RightTee:()=>`⊢`,RightTeeArrow:()=>`↦`,RightTeeVector:()=>`⥛`,RightTriangle:()=>`⊳`,RightTriangleBar:()=>`⧐`,RightTriangleEqual:()=>`⊵`,RightUpDownVector:()=>`⥏`,RightUpTeeVector:()=>`⥜`,RightUpVector:()=>`↾`,RightUpVectorBar:()=>`⥔`,RightVector:()=>`⇀`,RightVectorBar:()=>`⥓`,Rightarrow:()=>`⇒`,Ropf:()=>`ℝ`,RoundImplies:()=>`⥰`,Rrightarrow:()=>`⇛`,Rscr:()=>`ℛ`,Rsh:()=>`↱`,RuleDelayed:()=>`⧴`,SHCHcy:()=>`Щ`,SHcy:()=>`Ш`,SOFTcy:()=>`Ь`,Sacute:()=>`Ś`,Sc:()=>`⪼`,Scaron:()=>`Š`,Scedil:()=>`Ş`,Scirc:()=>`Ŝ`,Scy:()=>`С`,Sfr:()=>wT,ShortDownArrow:()=>`↓`,ShortLeftArrow:()=>`←`,ShortRightArrow:()=>`→`,ShortUpArrow:()=>`↑`,Sigma:()=>`Σ`,SmallCircle:()=>`∘`,Sopf:()=>DT,Sqrt:()=>`√`,Square:()=>`□`,SquareIntersection:()=>`⊓`,SquareSubset:()=>`⊏`,SquareSubsetEqual:()=>`⊑`,SquareSuperset:()=>`⊐`,SquareSupersetEqual:()=>`⊒`,SquareUnion:()=>`⊔`,Sscr:()=>jT,Star:()=>`⋆`,Sub:()=>`⋐`,Subset:()=>`⋐`,SubsetEqual:()=>`⊆`,Succeeds:()=>`≻`,SucceedsEqual:()=>`⪰`,SucceedsSlantEqual:()=>`≽`,SucceedsTilde:()=>`≿`,SuchThat:()=>`∋`,Sum:()=>`∑`,Sup:()=>`⋑`,Superset:()=>`⊃`,SupersetEqual:()=>`⊇`,Supset:()=>`⋑`,THORN:()=>`Þ`,TRADE:()=>`™`,TSHcy:()=>`Ћ`,TScy:()=>`Ц`,Tab:()=>` `,Tau:()=>`Τ`,Tcaron:()=>`Ť`,Tcedil:()=>`Ţ`,Tcy:()=>`Т`,Tfr:()=>NT,Therefore:()=>`∴`,Theta:()=>`Θ`,ThickSpace:()=>FT,ThinSpace:()=>` `,Tilde:()=>`∼`,TildeEqual:()=>`≃`,TildeFullEqual:()=>`≅`,TildeTilde:()=>`≈`,Topf:()=>IT,TripleDot:()=>`⃛`,Tscr:()=>RT,Tstrok:()=>`Ŧ`,Uacute:()=>`Ú`,Uarr:()=>`↟`,Uarrocir:()=>`⥉`,Ubrcy:()=>`Ў`,Ubreve:()=>`Ŭ`,Ucirc:()=>`Û`,Ucy:()=>`У`,Udblac:()=>`Ű`,Ufr:()=>BT,Ugrave:()=>`Ù`,Umacr:()=>`Ū`,UnderBar:()=>`_`,UnderBrace:()=>`⏟`,UnderBracket:()=>`⎵`,UnderParenthesis:()=>`⏝`,Union:()=>`⋃`,UnionPlus:()=>`⊎`,Uogon:()=>`Ų`,Uopf:()=>HT,UpArrow:()=>`↑`,UpArrowBar:()=>`⤒`,UpArrowDownArrow:()=>`⇅`,UpDownArrow:()=>`↕`,UpEquilibrium:()=>`⥮`,UpTee:()=>`⊥`,UpTeeArrow:()=>`↥`,Uparrow:()=>`⇑`,Updownarrow:()=>`⇕`,UpperLeftArrow:()=>`↖`,UpperRightArrow:()=>`↗`,Upsi:()=>`ϒ`,Upsilon:()=>`Υ`,Uring:()=>`Ů`,Uscr:()=>WT,Utilde:()=>`Ũ`,Uuml:()=>`Ü`,VDash:()=>`⊫`,Vbar:()=>`⫫`,Vcy:()=>`В`,Vdash:()=>`⊩`,Vdashl:()=>`⫦`,Vee:()=>`⋁`,Verbar:()=>`‖`,Vert:()=>`‖`,VerticalBar:()=>`∣`,VerticalLine:()=>`|`,VerticalSeparator:()=>`❘`,VerticalTilde:()=>`≀`,VeryThinSpace:()=>` `,Vfr:()=>XT,Vopf:()=>eE,Vscr:()=>nE,Vvdash:()=>`⊪`,Wcirc:()=>`Ŵ`,Wedge:()=>`⋀`,Wfr:()=>cE,Wopf:()=>uE,Wscr:()=>fE,Xfr:()=>mE,Xi:()=>`Ξ`,Xopf:()=>gE,Xscr:()=>vE,YAcy:()=>`Я`,YIcy:()=>`Ї`,YUcy:()=>`Ю`,Yacute:()=>`Ý`,Ycirc:()=>`Ŷ`,Ycy:()=>`Ы`,Yfr:()=>bE,Yopf:()=>SE,Yscr:()=>wE,Yuml:()=>`Ÿ`,ZHcy:()=>`Ж`,Zacute:()=>`Ź`,Zcaron:()=>`Ž`,Zcy:()=>`З`,Zdot:()=>`Ż`,ZeroWidthSpace:()=>`​`,Zeta:()=>`Ζ`,Zfr:()=>`ℨ`,Zopf:()=>`ℤ`,Zscr:()=>OE,aacute:()=>`á`,abreve:()=>`ă`,ac:()=>`∾`,acE:()=>xS,acd:()=>`∿`,acirc:()=>`â`,acute:()=>`´`,acy:()=>`а`,aelig:()=>`æ`,af:()=>`⁡`,afr:()=>CS,agrave:()=>`à`,alefsym:()=>`ℵ`,aleph:()=>`ℵ`,alpha:()=>`α`,amacr:()=>`ā`,amalg:()=>`⨿`,amp:()=>`&`,and:()=>`∧`,andand:()=>`⩕`,andd:()=>`⩜`,andslope:()=>`⩘`,andv:()=>`⩚`,ang:()=>`∠`,ange:()=>`⦤`,angle:()=>`∠`,angmsd:()=>`∡`,angmsdaa:()=>`⦨`,angmsdab:()=>`⦩`,angmsdac:()=>`⦪`,angmsdad:()=>`⦫`,angmsdae:()=>`⦬`,angmsdaf:()=>`⦭`,angmsdag:()=>`⦮`,angmsdah:()=>`⦯`,angrt:()=>`∟`,angrtvb:()=>`⊾`,angrtvbd:()=>`⦝`,angsph:()=>`∢`,angst:()=>`Å`,angzarr:()=>`⍼`,aogon:()=>`ą`,aopf:()=>TS,ap:()=>`≈`,apE:()=>`⩰`,apacir:()=>`⩯`,ape:()=>`≊`,apid:()=>`≋`,apos:()=>`'`,approx:()=>`≈`,approxeq:()=>`≊`,aring:()=>`å`,ascr:()=>DS,ast:()=>`*`,asymp:()=>`≈`,asympeq:()=>`≍`,atilde:()=>`ã`,auml:()=>`ä`,awconint:()=>`∳`,awint:()=>`⨑`,bNot:()=>`⫭`,backcong:()=>`≌`,backepsilon:()=>`϶`,backprime:()=>`‵`,backsim:()=>`∽`,backsimeq:()=>`⋍`,barvee:()=>`⊽`,barwed:()=>`⌅`,barwedge:()=>`⌅`,bbrk:()=>`⎵`,bbrktbrk:()=>`⎶`,bcong:()=>`≌`,bcy:()=>`б`,bdquo:()=>`„`,becaus:()=>`∵`,because:()=>`∵`,bemptyv:()=>`⦰`,bepsi:()=>`϶`,bernou:()=>`ℬ`,beta:()=>`β`,beth:()=>`ℶ`,between:()=>`≬`,bfr:()=>kS,bigcap:()=>`⋂`,bigcirc:()=>`◯`,bigcup:()=>`⋃`,bigodot:()=>`⨀`,bigoplus:()=>`⨁`,bigotimes:()=>`⨂`,bigsqcup:()=>`⨆`,bigstar:()=>`★`,bigtriangledown:()=>`▽`,bigtriangleup:()=>`△`,biguplus:()=>`⨄`,bigvee:()=>`⋁`,bigwedge:()=>`⋀`,bkarow:()=>`⤍`,blacklozenge:()=>`⧫`,blacksquare:()=>`▪`,blacktriangle:()=>`▴`,blacktriangledown:()=>`▾`,blacktriangleleft:()=>`◂`,blacktriangleright:()=>`▸`,blank:()=>`␣`,blk12:()=>`▒`,blk14:()=>`░`,blk34:()=>`▓`,block:()=>`█`,bne:()=>AS,bnequiv:()=>jS,bnot:()=>`⌐`,bopf:()=>NS,bot:()=>`⊥`,bottom:()=>`⊥`,bowtie:()=>`⋈`,boxDL:()=>`╗`,boxDR:()=>`╔`,boxDl:()=>`╖`,boxDr:()=>`╓`,boxH:()=>`═`,boxHD:()=>`╦`,boxHU:()=>`╩`,boxHd:()=>`╤`,boxHu:()=>`╧`,boxUL:()=>`╝`,boxUR:()=>`╚`,boxUl:()=>`╜`,boxUr:()=>`╙`,boxV:()=>`║`,boxVH:()=>`╬`,boxVL:()=>`╣`,boxVR:()=>`╠`,boxVh:()=>`╫`,boxVl:()=>`╢`,boxVr:()=>`╟`,boxbox:()=>`⧉`,boxdL:()=>`╕`,boxdR:()=>`╒`,boxdl:()=>`┐`,boxdr:()=>`┌`,boxh:()=>`─`,boxhD:()=>`╥`,boxhU:()=>`╨`,boxhd:()=>`┬`,boxhu:()=>`┴`,boxminus:()=>`⊟`,boxplus:()=>`⊞`,boxtimes:()=>`⊠`,boxuL:()=>`╛`,boxuR:()=>`╘`,boxul:()=>`┘`,boxur:()=>`└`,boxv:()=>`│`,boxvH:()=>`╪`,boxvL:()=>`╡`,boxvR:()=>`╞`,boxvh:()=>`┼`,boxvl:()=>`┤`,boxvr:()=>`├`,bprime:()=>`‵`,breve:()=>`˘`,brvbar:()=>`¦`,bscr:()=>PS,bsemi:()=>`⁏`,bsim:()=>`∽`,bsime:()=>`⋍`,bsol:()=>`\\`,bsolb:()=>`⧅`,bsolhsub:()=>`⟈`,bull:()=>`•`,bullet:()=>`•`,bump:()=>`≎`,bumpE:()=>`⪮`,bumpe:()=>`≏`,bumpeq:()=>`≏`,cacute:()=>`ć`,cap:()=>`∩`,capand:()=>`⩄`,capbrcup:()=>`⩉`,capcap:()=>`⩋`,capcup:()=>`⩇`,capdot:()=>`⩀`,caps:()=>FS,caret:()=>`⁁`,caron:()=>`ˇ`,ccaps:()=>`⩍`,ccaron:()=>`č`,ccedil:()=>`ç`,ccirc:()=>`ĉ`,ccups:()=>`⩌`,ccupssm:()=>`⩐`,cdot:()=>`ċ`,cedil:()=>`¸`,cemptyv:()=>`⦲`,cent:()=>`¢`,centerdot:()=>`·`,cfr:()=>IS,chcy:()=>`ч`,check:()=>`✓`,checkmark:()=>`✓`,chi:()=>`χ`,cir:()=>`○`,cirE:()=>`⧃`,circ:()=>`ˆ`,circeq:()=>`≗`,circlearrowleft:()=>`↺`,circlearrowright:()=>`↻`,circledR:()=>`®`,circledS:()=>`Ⓢ`,circledast:()=>`⊛`,circledcirc:()=>`⊚`,circleddash:()=>`⊝`,cire:()=>`≗`,cirfnint:()=>`⨐`,cirmid:()=>`⫯`,cirscir:()=>`⧂`,clubs:()=>`♣`,clubsuit:()=>`♣`,colon:()=>`:`,colone:()=>`≔`,coloneq:()=>`≔`,comma:()=>`,`,commat:()=>`@`,comp:()=>`∁`,compfn:()=>`∘`,complement:()=>`∁`,complexes:()=>`ℂ`,cong:()=>`≅`,congdot:()=>`⩭`,conint:()=>`∮`,copf:()=>LS,coprod:()=>`∐`,copy:()=>`©`,copysr:()=>`℗`,crarr:()=>`↵`,cross:()=>`✗`,cscr:()=>zS,csub:()=>`⫏`,csube:()=>`⫑`,csup:()=>`⫐`,csupe:()=>`⫒`,ctdot:()=>`⋯`,cudarrl:()=>`⤸`,cudarrr:()=>`⤵`,cuepr:()=>`⋞`,cuesc:()=>`⋟`,cularr:()=>`↶`,cularrp:()=>`⤽`,cup:()=>`∪`,cupbrcap:()=>`⩈`,cupcap:()=>`⩆`,cupcup:()=>`⩊`,cupdot:()=>`⊍`,cupor:()=>`⩅`,cups:()=>BS,curarr:()=>`↷`,curarrm:()=>`⤼`,curlyeqprec:()=>`⋞`,curlyeqsucc:()=>`⋟`,curlyvee:()=>`⋎`,curlywedge:()=>`⋏`,curren:()=>`¤`,curvearrowleft:()=>`↶`,curvearrowright:()=>`↷`,cuvee:()=>`⋎`,cuwed:()=>`⋏`,cwconint:()=>`∲`,cwint:()=>`∱`,cylcty:()=>`⌭`,dArr:()=>`⇓`,dHar:()=>`⥥`,dagger:()=>`†`,daleth:()=>`ℸ`,darr:()=>`↓`,dash:()=>`‐`,dashv:()=>`⊣`,dbkarow:()=>`⤏`,dblac:()=>`˝`,dcaron:()=>`ď`,dcy:()=>`д`,dd:()=>`ⅆ`,ddagger:()=>`‡`,ddarr:()=>`⇊`,ddotseq:()=>`⩷`,default:()=>AE,deg:()=>`°`,delta:()=>`δ`,demptyv:()=>`⦱`,dfisht:()=>`⥿`,dfr:()=>HS,dharl:()=>`⇃`,dharr:()=>`⇂`,diam:()=>`⋄`,diamond:()=>`⋄`,diamondsuit:()=>`♦`,diams:()=>`♦`,die:()=>`¨`,digamma:()=>`ϝ`,disin:()=>`⋲`,div:()=>`÷`,divide:()=>`÷`,divideontimes:()=>`⋇`,divonx:()=>`⋇`,djcy:()=>`ђ`,dlcorn:()=>`⌞`,dlcrop:()=>`⌍`,dollar:()=>`$`,dopf:()=>WS,dot:()=>`˙`,doteq:()=>`≐`,doteqdot:()=>`≑`,dotminus:()=>`∸`,dotplus:()=>`∔`,dotsquare:()=>`⊡`,doublebarwedge:()=>`⌆`,downarrow:()=>`↓`,downdownarrows:()=>`⇊`,downharpoonleft:()=>`⇃`,downharpoonright:()=>`⇂`,drbkarow:()=>`⤐`,drcorn:()=>`⌟`,drcrop:()=>`⌌`,dscr:()=>KS,dscy:()=>`ѕ`,dsol:()=>`⧶`,dstrok:()=>`đ`,dtdot:()=>`⋱`,dtri:()=>`▿`,dtrif:()=>`▾`,duarr:()=>`⇵`,duhar:()=>`⥯`,dwangle:()=>`⦦`,dzcy:()=>`џ`,dzigrarr:()=>`⟿`,eDDot:()=>`⩷`,eDot:()=>`≑`,eacute:()=>`é`,easter:()=>`⩮`,ecaron:()=>`ě`,ecir:()=>`≖`,ecirc:()=>`ê`,ecolon:()=>`≕`,ecy:()=>`э`,edot:()=>`ė`,ee:()=>`ⅇ`,efDot:()=>`≒`,efr:()=>JS,eg:()=>`⪚`,egrave:()=>`è`,egs:()=>`⪖`,egsdot:()=>`⪘`,el:()=>`⪙`,elinters:()=>`⏧`,ell:()=>`ℓ`,els:()=>`⪕`,elsdot:()=>`⪗`,emacr:()=>`ē`,empty:()=>`∅`,emptyset:()=>`∅`,emptyv:()=>`∅`,emsp:()=>` `,emsp13:()=>` `,emsp14:()=>` `,eng:()=>`ŋ`,ensp:()=>` `,eogon:()=>`ę`,eopf:()=>XS,epar:()=>`⋕`,eparsl:()=>`⧣`,eplus:()=>`⩱`,epsi:()=>`ε`,epsilon:()=>`ε`,epsiv:()=>`ϵ`,eqcirc:()=>`≖`,eqcolon:()=>`≕`,eqsim:()=>`≂`,eqslantgtr:()=>`⪖`,eqslantless:()=>`⪕`,equals:()=>`=`,equest:()=>`≟`,equiv:()=>`≡`,equivDD:()=>`⩸`,eqvparsl:()=>`⧥`,erDot:()=>`≓`,erarr:()=>`⥱`,escr:()=>`ℯ`,esdot:()=>`≐`,esim:()=>`≂`,eta:()=>`η`,eth:()=>`ð`,euml:()=>`ë`,euro:()=>`€`,excl:()=>`!`,exist:()=>`∃`,expectation:()=>`ℰ`,exponentiale:()=>`ⅇ`,fallingdotseq:()=>`≒`,fcy:()=>`ф`,female:()=>`♀`,ffilig:()=>`ffi`,fflig:()=>`ff`,ffllig:()=>`ffl`,ffr:()=>QS,filig:()=>`fi`,fjlig:()=>`fj`,flat:()=>`♭`,fllig:()=>`fl`,fltns:()=>`▱`,fnof:()=>`ƒ`,fopf:()=>eC,forall:()=>`∀`,fork:()=>`⋔`,forkv:()=>`⫙`,fpartint:()=>`⨍`,frac12:()=>`½`,frac13:()=>`⅓`,frac14:()=>`¼`,frac15:()=>`⅕`,frac16:()=>`⅙`,frac18:()=>`⅛`,frac23:()=>`⅔`,frac25:()=>`⅖`,frac34:()=>`¾`,frac35:()=>`⅗`,frac38:()=>`⅜`,frac45:()=>`⅘`,frac56:()=>`⅚`,frac58:()=>`⅝`,frac78:()=>`⅞`,frasl:()=>`⁄`,frown:()=>`⌢`,fscr:()=>tC,gE:()=>`≧`,gEl:()=>`⪌`,gacute:()=>`ǵ`,gamma:()=>`γ`,gammad:()=>`ϝ`,gap:()=>`⪆`,gbreve:()=>`ğ`,gcirc:()=>`ĝ`,gcy:()=>`г`,gdot:()=>`ġ`,ge:()=>`≥`,gel:()=>`⋛`,geq:()=>`≥`,geqq:()=>`≧`,geqslant:()=>`⩾`,ges:()=>`⩾`,gescc:()=>`⪩`,gesdot:()=>`⪀`,gesdoto:()=>`⪂`,gesdotol:()=>`⪄`,gesl:()=>nC,gesles:()=>`⪔`,gfr:()=>iC,gg:()=>`≫`,ggg:()=>`⋙`,gimel:()=>`ℷ`,gjcy:()=>`ѓ`,gl:()=>`≷`,glE:()=>`⪒`,gla:()=>`⪥`,glj:()=>`⪤`,gnE:()=>`≩`,gnap:()=>`⪊`,gnapprox:()=>`⪊`,gne:()=>`⪈`,gneq:()=>`⪈`,gneqq:()=>`≩`,gnsim:()=>`⋧`,gopf:()=>oC,grave:()=>"`",gscr:()=>`ℊ`,gsim:()=>`≳`,gsime:()=>`⪎`,gsiml:()=>`⪐`,gt:()=>`>`,gtcc:()=>`⪧`,gtcir:()=>`⩺`,gtdot:()=>`⋗`,gtlPar:()=>`⦕`,gtquest:()=>`⩼`,gtrapprox:()=>`⪆`,gtrarr:()=>`⥸`,gtrdot:()=>`⋗`,gtreqless:()=>`⋛`,gtreqqless:()=>`⪌`,gtrless:()=>`≷`,gtrsim:()=>`≳`,gvertneqq:()=>cC,gvnE:()=>lC,hArr:()=>`⇔`,hairsp:()=>` `,half:()=>`½`,hamilt:()=>`ℋ`,hardcy:()=>`ъ`,harr:()=>`↔`,harrcir:()=>`⥈`,harrw:()=>`↭`,hbar:()=>`ℏ`,hcirc:()=>`ĥ`,hearts:()=>`♥`,heartsuit:()=>`♥`,hellip:()=>`…`,hercon:()=>`⊹`,hfr:()=>uC,hksearow:()=>`⤥`,hkswarow:()=>`⤦`,hoarr:()=>`⇿`,homtht:()=>`∻`,hookleftarrow:()=>`↩`,hookrightarrow:()=>`↪`,hopf:()=>dC,horbar:()=>`―`,hscr:()=>fC,hslash:()=>`ℏ`,hstrok:()=>`ħ`,hybull:()=>`⁃`,hyphen:()=>`‐`,iacute:()=>`í`,ic:()=>`⁣`,icirc:()=>`î`,icy:()=>`и`,iecy:()=>`е`,iexcl:()=>`¡`,iff:()=>`⇔`,ifr:()=>pC,igrave:()=>`ì`,ii:()=>`ⅈ`,iiiint:()=>`⨌`,iiint:()=>`∭`,iinfin:()=>`⧜`,iiota:()=>`℩`,ijlig:()=>`ij`,imacr:()=>`ī`,image:()=>`ℑ`,imagline:()=>`ℐ`,imagpart:()=>`ℑ`,imath:()=>`ı`,imof:()=>`⊷`,imped:()=>`Ƶ`,incare:()=>`℅`,infin:()=>`∞`,infintie:()=>`⧝`,inodot:()=>`ı`,int:()=>`∫`,intcal:()=>`⊺`,integers:()=>`ℤ`,intercal:()=>`⊺`,intlarhk:()=>`⨗`,intprod:()=>`⨼`,iocy:()=>`ё`,iogon:()=>`į`,iopf:()=>hC,iota:()=>`ι`,iprod:()=>`⨼`,iquest:()=>`¿`,iscr:()=>gC,isin:()=>`∈`,isinE:()=>`⋹`,isindot:()=>`⋵`,isins:()=>`⋴`,isinsv:()=>`⋳`,isinv:()=>`∈`,it:()=>`⁢`,itilde:()=>`ĩ`,iukcy:()=>`і`,iuml:()=>`ï`,jcirc:()=>`ĵ`,jcy:()=>`й`,jfr:()=>vC,jmath:()=>`ȷ`,jopf:()=>bC,jscr:()=>SC,jsercy:()=>`ј`,jukcy:()=>`є`,kappa:()=>`κ`,kappav:()=>`ϰ`,kcedil:()=>`ķ`,kcy:()=>`к`,kfr:()=>wC,kgreen:()=>`ĸ`,khcy:()=>`х`,kjcy:()=>`ќ`,kopf:()=>EC,kscr:()=>OC,lAarr:()=>`⇚`,lArr:()=>`⇐`,lAtail:()=>`⤛`,lBarr:()=>`⤎`,lE:()=>`≦`,lEg:()=>`⪋`,lHar:()=>`⥢`,lacute:()=>`ĺ`,laemptyv:()=>`⦴`,lagran:()=>`ℒ`,lambda:()=>`λ`,lang:()=>`⟨`,langd:()=>`⦑`,langle:()=>`⟨`,lap:()=>`⪅`,laquo:()=>`«`,larr:()=>`←`,larrb:()=>`⇤`,larrbfs:()=>`⤟`,larrfs:()=>`⤝`,larrhk:()=>`↩`,larrlp:()=>`↫`,larrpl:()=>`⤹`,larrsim:()=>`⥳`,larrtl:()=>`↢`,lat:()=>`⪫`,latail:()=>`⤙`,late:()=>`⪭`,lates:()=>kC,lbarr:()=>`⤌`,lbbrk:()=>`❲`,lbrace:()=>`{`,lbrack:()=>`[`,lbrke:()=>`⦋`,lbrksld:()=>`⦏`,lbrkslu:()=>`⦍`,lcaron:()=>`ľ`,lcedil:()=>`ļ`,lceil:()=>`⌈`,lcub:()=>`{`,lcy:()=>`л`,ldca:()=>`⤶`,ldquo:()=>`“`,ldquor:()=>`„`,ldrdhar:()=>`⥧`,ldrushar:()=>`⥋`,ldsh:()=>`↲`,le:()=>`≤`,leftarrow:()=>`←`,leftarrowtail:()=>`↢`,leftharpoondown:()=>`↽`,leftharpoonup:()=>`↼`,leftleftarrows:()=>`⇇`,leftrightarrow:()=>`↔`,leftrightarrows:()=>`⇆`,leftrightharpoons:()=>`⇋`,leftrightsquigarrow:()=>`↭`,leftthreetimes:()=>`⋋`,leg:()=>`⋚`,leq:()=>`≤`,leqq:()=>`≦`,leqslant:()=>`⩽`,les:()=>`⩽`,lescc:()=>`⪨`,lesdot:()=>`⩿`,lesdoto:()=>`⪁`,lesdotor:()=>`⪃`,lesg:()=>AC,lesges:()=>`⪓`,lessapprox:()=>`⪅`,lessdot:()=>`⋖`,lesseqgtr:()=>`⋚`,lesseqqgtr:()=>`⪋`,lessgtr:()=>`≶`,lesssim:()=>`≲`,lfisht:()=>`⥼`,lfloor:()=>`⌊`,lfr:()=>MC,lg:()=>`≶`,lgE:()=>`⪑`,lhard:()=>`↽`,lharu:()=>`↼`,lharul:()=>`⥪`,lhblk:()=>`▄`,ljcy:()=>`љ`,ll:()=>`≪`,llarr:()=>`⇇`,llcorner:()=>`⌞`,llhard:()=>`⥫`,lltri:()=>`◺`,lmidot:()=>`ŀ`,lmoust:()=>`⎰`,lmoustache:()=>`⎰`,lnE:()=>`≨`,lnap:()=>`⪉`,lnapprox:()=>`⪉`,lne:()=>`⪇`,lneq:()=>`⪇`,lneqq:()=>`≨`,lnsim:()=>`⋦`,loang:()=>`⟬`,loarr:()=>`⇽`,lobrk:()=>`⟦`,longleftarrow:()=>`⟵`,longleftrightarrow:()=>`⟷`,longmapsto:()=>`⟼`,longrightarrow:()=>`⟶`,looparrowleft:()=>`↫`,looparrowright:()=>`↬`,lopar:()=>`⦅`,lopf:()=>PC,loplus:()=>`⨭`,lotimes:()=>`⨴`,lowast:()=>`∗`,lowbar:()=>`_`,loz:()=>`◊`,lozenge:()=>`◊`,lozf:()=>`⧫`,lpar:()=>`(`,lparlt:()=>`⦓`,lrarr:()=>`⇆`,lrcorner:()=>`⌟`,lrhar:()=>`⇋`,lrhard:()=>`⥭`,lrm:()=>`‎`,lrtri:()=>`⊿`,lsaquo:()=>`‹`,lscr:()=>FC,lsh:()=>`↰`,lsim:()=>`≲`,lsime:()=>`⪍`,lsimg:()=>`⪏`,lsqb:()=>`[`,lsquo:()=>`‘`,lsquor:()=>`‚`,lstrok:()=>`ł`,lt:()=>`<`,ltcc:()=>`⪦`,ltcir:()=>`⩹`,ltdot:()=>`⋖`,lthree:()=>`⋋`,ltimes:()=>`⋉`,ltlarr:()=>`⥶`,ltquest:()=>`⩻`,ltrPar:()=>`⦖`,ltri:()=>`◃`,ltrie:()=>`⊴`,ltrif:()=>`◂`,lurdshar:()=>`⥊`,luruhar:()=>`⥦`,lvertneqq:()=>IC,lvnE:()=>LC,mDDot:()=>`∺`,macr:()=>`¯`,male:()=>`♂`,malt:()=>`✠`,maltese:()=>`✠`,map:()=>`↦`,mapsto:()=>`↦`,mapstodown:()=>`↧`,mapstoleft:()=>`↤`,mapstoup:()=>`↥`,marker:()=>`▮`,mcomma:()=>`⨩`,mcy:()=>`м`,mdash:()=>`—`,measuredangle:()=>`∡`,mfr:()=>zC,mho:()=>`℧`,micro:()=>`µ`,mid:()=>`∣`,midast:()=>`*`,midcir:()=>`⫰`,middot:()=>`·`,minus:()=>`−`,minusb:()=>`⊟`,minusd:()=>`∸`,minusdu:()=>`⨪`,mlcp:()=>`⫛`,mldr:()=>`…`,mnplus:()=>`∓`,models:()=>`⊧`,mopf:()=>VC,mp:()=>`∓`,mscr:()=>HC,mstpos:()=>`∾`,mu:()=>`μ`,multimap:()=>`⊸`,mumap:()=>`⊸`,nGg:()=>rw,nGt:()=>iw,nGtv:()=>aw,nLeftarrow:()=>`⇍`,nLeftrightarrow:()=>`⇎`,nLl:()=>uw,nLt:()=>dw,nLtv:()=>fw,nRightarrow:()=>`⇏`,nVDash:()=>`⊯`,nVdash:()=>`⊮`,nabla:()=>`∇`,nacute:()=>`ń`,nang:()=>UC,nap:()=>`≉`,napE:()=>WC,napid:()=>GC,napos:()=>`ʼn`,napprox:()=>`≉`,natur:()=>`♮`,natural:()=>`♮`,naturals:()=>`ℕ`,nbsp:()=>`\xA0`,nbump:()=>KC,nbumpe:()=>qC,ncap:()=>`⩃`,ncaron:()=>`ň`,ncedil:()=>`ņ`,ncong:()=>`≇`,ncongdot:()=>JC,ncup:()=>`⩂`,ncy:()=>`н`,ndash:()=>`–`,ne:()=>`≠`,neArr:()=>`⇗`,nearhk:()=>`⤤`,nearr:()=>`↗`,nearrow:()=>`↗`,nedot:()=>YC,nequiv:()=>`≢`,nesear:()=>`⤨`,nesim:()=>XC,nexist:()=>`∄`,nexists:()=>`∄`,nfr:()=>QC,ngE:()=>$C,nge:()=>`≱`,ngeq:()=>`≱`,ngeqq:()=>ew,ngeqslant:()=>tw,nges:()=>nw,ngsim:()=>`≵`,ngt:()=>`≯`,ngtr:()=>`≯`,nhArr:()=>`⇎`,nharr:()=>`↮`,nhpar:()=>`⫲`,ni:()=>`∋`,nis:()=>`⋼`,nisd:()=>`⋺`,niv:()=>`∋`,njcy:()=>`њ`,nlArr:()=>`⇍`,nlE:()=>ow,nlarr:()=>`↚`,nldr:()=>`‥`,nle:()=>`≰`,nleftarrow:()=>`↚`,nleftrightarrow:()=>`↮`,nleq:()=>`≰`,nleqq:()=>sw,nleqslant:()=>cw,nles:()=>lw,nless:()=>`≮`,nlsim:()=>`≴`,nlt:()=>`≮`,nltri:()=>`⋪`,nltrie:()=>`⋬`,nmid:()=>`∤`,nopf:()=>pw,not:()=>`¬`,notin:()=>`∉`,notinE:()=>xw,notindot:()=>bw,notinva:()=>`∉`,notinvb:()=>`⋷`,notinvc:()=>`⋶`,notni:()=>`∌`,notniva:()=>`∌`,notnivb:()=>`⋾`,notnivc:()=>`⋽`,npar:()=>`∦`,nparallel:()=>`∦`,nparsl:()=>Fw,npart:()=>Iw,npolint:()=>`⨔`,npr:()=>`⊀`,nprcue:()=>`⋠`,npre:()=>Rw,nprec:()=>`⊀`,npreceq:()=>Lw,nrArr:()=>`⇏`,nrarr:()=>`↛`,nrarrc:()=>zw,nrarrw:()=>Bw,nrightarrow:()=>`↛`,nrtri:()=>`⋫`,nrtrie:()=>`⋭`,nsc:()=>`⊁`,nsccue:()=>`⋡`,nsce:()=>Vw,nscr:()=>Uw,nshortmid:()=>`∤`,nshortparallel:()=>`∦`,nsim:()=>`≁`,nsime:()=>`≄`,nsimeq:()=>`≄`,nsmid:()=>`∤`,nspar:()=>`∦`,nsqsube:()=>`⋢`,nsqsupe:()=>`⋣`,nsub:()=>`⊄`,nsubE:()=>Ww,nsube:()=>`⊈`,nsubset:()=>Gw,nsubseteq:()=>`⊈`,nsubseteqq:()=>Kw,nsucc:()=>`⊁`,nsucceq:()=>qw,nsup:()=>`⊅`,nsupE:()=>Jw,nsupe:()=>`⊉`,nsupset:()=>Yw,nsupseteq:()=>`⊉`,nsupseteqq:()=>Xw,ntgl:()=>`≹`,ntilde:()=>`ñ`,ntlg:()=>`≸`,ntriangleleft:()=>`⋪`,ntrianglelefteq:()=>`⋬`,ntriangleright:()=>`⋫`,ntrianglerighteq:()=>`⋭`,nu:()=>`ν`,num:()=>`#`,numero:()=>`№`,numsp:()=>` `,nvDash:()=>`⊭`,nvHarr:()=>`⤄`,nvap:()=>Zw,nvdash:()=>`⊬`,nvge:()=>Qw,nvgt:()=>$w,nvinfin:()=>`⧞`,nvlArr:()=>`⤂`,nvle:()=>eT,nvlt:()=>tT,nvltrie:()=>nT,nvrArr:()=>`⤃`,nvrtrie:()=>rT,nvsim:()=>iT,nwArr:()=>`⇖`,nwarhk:()=>`⤣`,nwarr:()=>`↖`,nwarrow:()=>`↖`,nwnear:()=>`⤧`,oS:()=>`Ⓢ`,oacute:()=>`ó`,oast:()=>`⊛`,ocir:()=>`⊚`,ocirc:()=>`ô`,ocy:()=>`о`,odash:()=>`⊝`,odblac:()=>`ő`,odiv:()=>`⨸`,odot:()=>`⊙`,odsold:()=>`⦼`,oelig:()=>`œ`,ofcir:()=>`⦿`,ofr:()=>oT,ogon:()=>`˛`,ograve:()=>`ò`,ogt:()=>`⧁`,ohbar:()=>`⦵`,ohm:()=>`Ω`,oint:()=>`∮`,olarr:()=>`↺`,olcir:()=>`⦾`,olcross:()=>`⦻`,oline:()=>`‾`,olt:()=>`⧀`,omacr:()=>`ō`,omega:()=>`ω`,omicron:()=>`ο`,omid:()=>`⦶`,ominus:()=>`⊖`,oopf:()=>cT,opar:()=>`⦷`,operp:()=>`⦹`,oplus:()=>`⊕`,or:()=>`∨`,orarr:()=>`↻`,ord:()=>`⩝`,order:()=>`ℴ`,orderof:()=>`ℴ`,ordf:()=>`ª`,ordm:()=>`º`,origof:()=>`⊶`,oror:()=>`⩖`,orslope:()=>`⩗`,orv:()=>`⩛`,oscr:()=>`ℴ`,oslash:()=>`ø`,osol:()=>`⊘`,otilde:()=>`õ`,otimes:()=>`⊗`,otimesas:()=>`⨶`,ouml:()=>`ö`,ovbar:()=>`⌽`,par:()=>`∥`,para:()=>`¶`,parallel:()=>`∥`,parsim:()=>`⫳`,parsl:()=>`⫽`,part:()=>`∂`,pcy:()=>`п`,percnt:()=>`%`,period:()=>`.`,permil:()=>`‰`,perp:()=>`⊥`,pertenk:()=>`‱`,pfr:()=>dT,phi:()=>`φ`,phiv:()=>`ϕ`,phmmat:()=>`ℳ`,phone:()=>`☎`,pi:()=>`π`,pitchfork:()=>`⋔`,piv:()=>`ϖ`,planck:()=>`ℏ`,planckh:()=>`ℎ`,plankv:()=>`ℏ`,plus:()=>`+`,plusacir:()=>`⨣`,plusb:()=>`⊞`,pluscir:()=>`⨢`,plusdo:()=>`∔`,plusdu:()=>`⨥`,pluse:()=>`⩲`,plusmn:()=>`±`,plussim:()=>`⨦`,plustwo:()=>`⨧`,pm:()=>`±`,pointint:()=>`⨕`,popf:()=>fT,pound:()=>`£`,pr:()=>`≺`,prE:()=>`⪳`,prap:()=>`⪷`,prcue:()=>`≼`,pre:()=>`⪯`,prec:()=>`≺`,precapprox:()=>`⪷`,preccurlyeq:()=>`≼`,preceq:()=>`⪯`,precnapprox:()=>`⪹`,precneqq:()=>`⪵`,precnsim:()=>`⋨`,precsim:()=>`≾`,prime:()=>`′`,primes:()=>`ℙ`,prnE:()=>`⪵`,prnap:()=>`⪹`,prnsim:()=>`⋨`,prod:()=>`∏`,profalar:()=>`⌮`,profline:()=>`⌒`,profsurf:()=>`⌓`,prop:()=>`∝`,propto:()=>`∝`,prsim:()=>`≾`,prurel:()=>`⊰`,pscr:()=>mT,psi:()=>`ψ`,puncsp:()=>` `,qfr:()=>gT,qint:()=>`⨌`,qopf:()=>_T,qprime:()=>`⁗`,qscr:()=>yT,quaternions:()=>`ℍ`,quatint:()=>`⨖`,quest:()=>`?`,questeq:()=>`≟`,quot:()=>`"`,rAarr:()=>`⇛`,rArr:()=>`⇒`,rAtail:()=>`⤜`,rBarr:()=>`⤏`,rHar:()=>`⥤`,race:()=>bT,racute:()=>`ŕ`,radic:()=>`√`,raemptyv:()=>`⦳`,rang:()=>`⟩`,rangd:()=>`⦒`,range:()=>`⦥`,rangle:()=>`⟩`,raquo:()=>`»`,rarr:()=>`→`,rarrap:()=>`⥵`,rarrb:()=>`⇥`,rarrbfs:()=>`⤠`,rarrc:()=>`⤳`,rarrfs:()=>`⤞`,rarrhk:()=>`↪`,rarrlp:()=>`↬`,rarrpl:()=>`⥅`,rarrsim:()=>`⥴`,rarrtl:()=>`↣`,rarrw:()=>`↝`,ratail:()=>`⤚`,ratio:()=>`∶`,rationals:()=>`ℚ`,rbarr:()=>`⤍`,rbbrk:()=>`❳`,rbrace:()=>`}`,rbrack:()=>`]`,rbrke:()=>`⦌`,rbrksld:()=>`⦎`,rbrkslu:()=>`⦐`,rcaron:()=>`ř`,rcedil:()=>`ŗ`,rceil:()=>`⌉`,rcub:()=>`}`,rcy:()=>`р`,rdca:()=>`⤷`,rdldhar:()=>`⥩`,rdquo:()=>`”`,rdquor:()=>`”`,rdsh:()=>`↳`,real:()=>`ℜ`,realine:()=>`ℛ`,realpart:()=>`ℜ`,reals:()=>`ℝ`,rect:()=>`▭`,reg:()=>`®`,rfisht:()=>`⥽`,rfloor:()=>`⌋`,rfr:()=>xT,rhard:()=>`⇁`,rharu:()=>`⇀`,rharul:()=>`⥬`,rho:()=>`ρ`,rhov:()=>`ϱ`,rightarrow:()=>`→`,rightarrowtail:()=>`↣`,rightharpoondown:()=>`⇁`,rightharpoonup:()=>`⇀`,rightleftarrows:()=>`⇄`,rightleftharpoons:()=>`⇌`,rightrightarrows:()=>`⇉`,rightsquigarrow:()=>`↝`,rightthreetimes:()=>`⋌`,ring:()=>`˚`,risingdotseq:()=>`≓`,rlarr:()=>`⇄`,rlhar:()=>`⇌`,rlm:()=>`‏`,rmoust:()=>`⎱`,rmoustache:()=>`⎱`,rnmid:()=>`⫮`,roang:()=>`⟭`,roarr:()=>`⇾`,robrk:()=>`⟧`,ropar:()=>`⦆`,ropf:()=>ST,roplus:()=>`⨮`,rotimes:()=>`⨵`,rpar:()=>`)`,rpargt:()=>`⦔`,rppolint:()=>`⨒`,rrarr:()=>`⇉`,rsaquo:()=>`›`,rscr:()=>CT,rsh:()=>`↱`,rsqb:()=>`]`,rsquo:()=>`’`,rsquor:()=>`’`,rthree:()=>`⋌`,rtimes:()=>`⋊`,rtri:()=>`▹`,rtrie:()=>`⊵`,rtrif:()=>`▸`,rtriltri:()=>`⧎`,ruluhar:()=>`⥨`,rx:()=>`℞`,sacute:()=>`ś`,sbquo:()=>`‚`,sc:()=>`≻`,scE:()=>`⪴`,scap:()=>`⪸`,scaron:()=>`š`,sccue:()=>`≽`,sce:()=>`⪰`,scedil:()=>`ş`,scirc:()=>`ŝ`,scnE:()=>`⪶`,scnap:()=>`⪺`,scnsim:()=>`⋩`,scpolint:()=>`⨓`,scsim:()=>`≿`,scy:()=>`с`,sdot:()=>`⋅`,sdotb:()=>`⊡`,sdote:()=>`⩦`,seArr:()=>`⇘`,searhk:()=>`⤥`,searr:()=>`↘`,searrow:()=>`↘`,sect:()=>`§`,semi:()=>`;`,seswar:()=>`⤩`,setminus:()=>`∖`,setmn:()=>`∖`,sext:()=>`✶`,sfr:()=>TT,sfrown:()=>`⌢`,sharp:()=>`♯`,shchcy:()=>`щ`,shcy:()=>`ш`,shortmid:()=>`∣`,shortparallel:()=>`∥`,shy:()=>`­`,sigma:()=>`σ`,sigmaf:()=>`ς`,sigmav:()=>`ς`,sim:()=>`∼`,simdot:()=>`⩪`,sime:()=>`≃`,simeq:()=>`≃`,simg:()=>`⪞`,simgE:()=>`⪠`,siml:()=>`⪝`,simlE:()=>`⪟`,simne:()=>`≆`,simplus:()=>`⨤`,simrarr:()=>`⥲`,slarr:()=>`←`,smallsetminus:()=>`∖`,smashp:()=>`⨳`,smeparsl:()=>`⧤`,smid:()=>`∣`,smile:()=>`⌣`,smt:()=>`⪪`,smte:()=>`⪬`,smtes:()=>ET,softcy:()=>`ь`,sol:()=>`/`,solb:()=>`⧄`,solbar:()=>`⌿`,sopf:()=>OT,spades:()=>`♠`,spadesuit:()=>`♠`,spar:()=>`∥`,sqcap:()=>`⊓`,sqcaps:()=>kT,sqcup:()=>`⊔`,sqcups:()=>AT,sqsub:()=>`⊏`,sqsube:()=>`⊑`,sqsubset:()=>`⊏`,sqsubseteq:()=>`⊑`,sqsup:()=>`⊐`,sqsupe:()=>`⊒`,sqsupset:()=>`⊐`,sqsupseteq:()=>`⊒`,squ:()=>`□`,square:()=>`□`,squarf:()=>`▪`,squf:()=>`▪`,srarr:()=>`→`,sscr:()=>MT,ssetmn:()=>`∖`,ssmile:()=>`⌣`,sstarf:()=>`⋆`,star:()=>`☆`,starf:()=>`★`,straightepsilon:()=>`ϵ`,straightphi:()=>`ϕ`,strns:()=>`¯`,sub:()=>`⊂`,subE:()=>`⫅`,subdot:()=>`⪽`,sube:()=>`⊆`,subedot:()=>`⫃`,submult:()=>`⫁`,subnE:()=>`⫋`,subne:()=>`⊊`,subplus:()=>`⪿`,subrarr:()=>`⥹`,subset:()=>`⊂`,subseteq:()=>`⊆`,subseteqq:()=>`⫅`,subsetneq:()=>`⊊`,subsetneqq:()=>`⫋`,subsim:()=>`⫇`,subsub:()=>`⫕`,subsup:()=>`⫓`,succ:()=>`≻`,succapprox:()=>`⪸`,succcurlyeq:()=>`≽`,succeq:()=>`⪰`,succnapprox:()=>`⪺`,succneqq:()=>`⪶`,succnsim:()=>`⋩`,succsim:()=>`≿`,sum:()=>`∑`,sung:()=>`♪`,sup:()=>`⊃`,sup1:()=>`¹`,sup2:()=>`²`,sup3:()=>`³`,supE:()=>`⫆`,supdot:()=>`⪾`,supdsub:()=>`⫘`,supe:()=>`⊇`,supedot:()=>`⫄`,suphsol:()=>`⟉`,suphsub:()=>`⫗`,suplarr:()=>`⥻`,supmult:()=>`⫂`,supnE:()=>`⫌`,supne:()=>`⊋`,supplus:()=>`⫀`,supset:()=>`⊃`,supseteq:()=>`⊇`,supseteqq:()=>`⫆`,supsetneq:()=>`⊋`,supsetneqq:()=>`⫌`,supsim:()=>`⫈`,supsub:()=>`⫔`,supsup:()=>`⫖`,swArr:()=>`⇙`,swarhk:()=>`⤦`,swarr:()=>`↙`,swarrow:()=>`↙`,swnwar:()=>`⤪`,szlig:()=>`ß`,target:()=>`⌖`,tau:()=>`τ`,tbrk:()=>`⎴`,tcaron:()=>`ť`,tcedil:()=>`ţ`,tcy:()=>`т`,tdot:()=>`⃛`,telrec:()=>`⌕`,tfr:()=>PT,there4:()=>`∴`,therefore:()=>`∴`,theta:()=>`θ`,thetasym:()=>`ϑ`,thetav:()=>`ϑ`,thickapprox:()=>`≈`,thicksim:()=>`∼`,thinsp:()=>` `,thkap:()=>`≈`,thksim:()=>`∼`,thorn:()=>`þ`,tilde:()=>`˜`,times:()=>`×`,timesb:()=>`⊠`,timesbar:()=>`⨱`,timesd:()=>`⨰`,tint:()=>`∭`,toea:()=>`⤨`,top:()=>`⊤`,topbot:()=>`⌶`,topcir:()=>`⫱`,topf:()=>LT,topfork:()=>`⫚`,tosa:()=>`⤩`,tprime:()=>`‴`,trade:()=>`™`,triangle:()=>`▵`,triangledown:()=>`▿`,triangleleft:()=>`◃`,trianglelefteq:()=>`⊴`,triangleq:()=>`≜`,triangleright:()=>`▹`,trianglerighteq:()=>`⊵`,tridot:()=>`◬`,trie:()=>`≜`,triminus:()=>`⨺`,triplus:()=>`⨹`,trisb:()=>`⧍`,tritime:()=>`⨻`,trpezium:()=>`⏢`,tscr:()=>zT,tscy:()=>`ц`,tshcy:()=>`ћ`,tstrok:()=>`ŧ`,twixt:()=>`≬`,twoheadleftarrow:()=>`↞`,twoheadrightarrow:()=>`↠`,uArr:()=>`⇑`,uHar:()=>`⥣`,uacute:()=>`ú`,uarr:()=>`↑`,ubrcy:()=>`ў`,ubreve:()=>`ŭ`,ucirc:()=>`û`,ucy:()=>`у`,udarr:()=>`⇅`,udblac:()=>`ű`,udhar:()=>`⥮`,ufisht:()=>`⥾`,ufr:()=>VT,ugrave:()=>`ù`,uharl:()=>`↿`,uharr:()=>`↾`,uhblk:()=>`▀`,ulcorn:()=>`⌜`,ulcorner:()=>`⌜`,ulcrop:()=>`⌏`,ultri:()=>`◸`,umacr:()=>`ū`,uml:()=>`¨`,uogon:()=>`ų`,uopf:()=>UT,uparrow:()=>`↑`,updownarrow:()=>`↕`,upharpoonleft:()=>`↿`,upharpoonright:()=>`↾`,uplus:()=>`⊎`,upsi:()=>`υ`,upsih:()=>`ϒ`,upsilon:()=>`υ`,upuparrows:()=>`⇈`,urcorn:()=>`⌝`,urcorner:()=>`⌝`,urcrop:()=>`⌎`,uring:()=>`ů`,urtri:()=>`◹`,uscr:()=>GT,utdot:()=>`⋰`,utilde:()=>`ũ`,utri:()=>`▵`,utrif:()=>`▴`,uuarr:()=>`⇈`,uuml:()=>`ü`,uwangle:()=>`⦧`,vArr:()=>`⇕`,vBar:()=>`⫨`,vBarv:()=>`⫩`,vDash:()=>`⊨`,vangrt:()=>`⦜`,varepsilon:()=>`ϵ`,varkappa:()=>`ϰ`,varnothing:()=>`∅`,varphi:()=>`ϕ`,varpi:()=>`ϖ`,varpropto:()=>`∝`,varr:()=>`↕`,varrho:()=>`ϱ`,varsigma:()=>`ς`,varsubsetneq:()=>KT,varsubsetneqq:()=>qT,varsupsetneq:()=>JT,varsupsetneqq:()=>YT,vartheta:()=>`ϑ`,vartriangleleft:()=>`⊲`,vartriangleright:()=>`⊳`,vcy:()=>`в`,vdash:()=>`⊢`,vee:()=>`∨`,veebar:()=>`⊻`,veeeq:()=>`≚`,vellip:()=>`⋮`,verbar:()=>`|`,vert:()=>`|`,vfr:()=>ZT,vltri:()=>`⊲`,vnsub:()=>QT,vnsup:()=>$T,vopf:()=>tE,vprop:()=>`∝`,vrtri:()=>`⊳`,vscr:()=>rE,vsubnE:()=>iE,vsubne:()=>aE,vsupnE:()=>oE,vsupne:()=>sE,vzigzag:()=>`⦚`,wcirc:()=>`ŵ`,wedbar:()=>`⩟`,wedge:()=>`∧`,wedgeq:()=>`≙`,weierp:()=>`℘`,wfr:()=>lE,wopf:()=>dE,wp:()=>`℘`,wr:()=>`≀`,wreath:()=>`≀`,wscr:()=>pE,xcap:()=>`⋂`,xcirc:()=>`◯`,xcup:()=>`⋃`,xdtri:()=>`▽`,xfr:()=>hE,xhArr:()=>`⟺`,xharr:()=>`⟷`,xi:()=>`ξ`,xlArr:()=>`⟸`,xlarr:()=>`⟵`,xmap:()=>`⟼`,xnis:()=>`⋻`,xodot:()=>`⨀`,xopf:()=>_E,xoplus:()=>`⨁`,xotime:()=>`⨂`,xrArr:()=>`⟹`,xrarr:()=>`⟶`,xscr:()=>yE,xsqcup:()=>`⨆`,xuplus:()=>`⨄`,xutri:()=>`△`,xvee:()=>`⋁`,xwedge:()=>`⋀`,yacute:()=>`ý`,yacy:()=>`я`,ycirc:()=>`ŷ`,ycy:()=>`ы`,yen:()=>`¥`,yfr:()=>xE,yicy:()=>`ї`,yopf:()=>CE,yscr:()=>TE,yucy:()=>`ю`,yuml:()=>`ÿ`,zacute:()=>`ź`,zcaron:()=>`ž`,zcy:()=>`з`,zdot:()=>`ż`,zeetrf:()=>`ℨ`,zeta:()=>`ζ`,zfr:()=>EE,zhcy:()=>`ж`,zigrarr:()=>`⇝`,zopf:()=>DE,zscr:()=>kE,zwj:()=>`‍`,zwnj:()=>`‌`}),xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC,sC,cC,lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,yC,bC,xC,SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,MC,NC,PC,FC,IC,LC,RC,zC,BC,VC,HC,UC,WC,GC,KC,qC,JC,YC,XC,ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,hw,gw,_w,vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,jw,Mw,Nw,Pw,Fw,Iw,Lw,Rw,zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT,nT,rT,iT,aT,oT,sT,cT,lT,uT,dT,fT,pT,mT,hT,gT,_T,vT,yT,bT,xT,ST,CT,wT,TT,ET,DT,OT,kT,AT,jT,MT,NT,PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE=o((()=>{xS=`∾̳`,SS=`𝔄`,CS=`𝔞`,wS=`𝔸`,TS=`𝕒`,ES=`𝒜`,DS=`𝒶`,OS=`𝔅`,kS=`𝔟`,AS=`=⃥`,jS=`≡⃥`,MS=`𝔹`,NS=`𝕓`,PS=`𝒷`,FS=`∩︀`,IS=`𝔠`,LS=`𝕔`,RS=`𝒞`,zS=`𝒸`,BS=`∪︀`,VS=`𝔇`,HS=`𝔡`,US=`𝔻`,WS=`𝕕`,GS=`𝒟`,KS=`𝒹`,qS=`𝔈`,JS=`𝔢`,YS=`𝔼`,XS=`𝕖`,ZS=`𝔉`,QS=`𝔣`,$S=`𝔽`,eC=`𝕗`,tC=`𝒻`,nC=`⋛︀`,rC=`𝔊`,iC=`𝔤`,aC=`𝔾`,oC=`𝕘`,sC=`𝒢`,cC=`≩︀`,lC=`≩︀`,uC=`𝔥`,dC=`𝕙`,fC=`𝒽`,pC=`𝔦`,mC=`𝕀`,hC=`𝕚`,gC=`𝒾`,_C=`𝔍`,vC=`𝔧`,yC=`𝕁`,bC=`𝕛`,xC=`𝒥`,SC=`𝒿`,CC=`𝔎`,wC=`𝔨`,TC=`𝕂`,EC=`𝕜`,DC=`𝒦`,OC=`𝓀`,kC=`⪭︀`,AC=`⋚︀`,jC=`𝔏`,MC=`𝔩`,NC=`𝕃`,PC=`𝕝`,FC=`𝓁`,IC=`≨︀`,LC=`≨︀`,RC=`𝔐`,zC=`𝔪`,BC=`𝕄`,VC=`𝕞`,HC=`𝓂`,UC=`∠⃒`,WC=`⩰̸`,GC=`≋̸`,KC=`≎̸`,qC=`≏̸`,JC=`⩭̸`,YC=`≐̸`,XC=`≂̸`,ZC=`𝔑`,QC=`𝔫`,$C=`≧̸`,ew=`≧̸`,tw=`⩾̸`,nw=`⩾̸`,rw=`⋙̸`,iw=`≫⃒`,aw=`≫̸`,ow=`≦̸`,sw=`≦̸`,cw=`⩽̸`,lw=`⩽̸`,uw=`⋘̸`,dw=`≪⃒`,fw=`≪̸`,pw=`𝕟`,mw=`≂̸`,hw=`≧̸`,gw=`≫̸`,_w=`⩾̸`,vw=`≎̸`,yw=`≏̸`,bw=`⋵̸`,xw=`⋹̸`,Sw=`⧏̸`,Cw=`≪̸`,ww=`⩽̸`,Tw=`⪢̸`,Ew=`⪡̸`,Dw=`⪯̸`,Ow=`⧐̸`,kw=`⊏̸`,Aw=`⊐̸`,jw=`⊂⃒`,Mw=`⪰̸`,Nw=`≿̸`,Pw=`⊃⃒`,Fw=`⫽⃥`,Iw=`∂̸`,Lw=`⪯̸`,Rw=`⪯̸`,zw=`⤳̸`,Bw=`↝̸`,Vw=`⪰̸`,Hw=`𝒩`,Uw=`𝓃`,Ww=`⫅̸`,Gw=`⊂⃒`,Kw=`⫅̸`,qw=`⪰̸`,Jw=`⫆̸`,Yw=`⊃⃒`,Xw=`⫆̸`,Zw=`≍⃒`,Qw=`≥⃒`,$w=`>⃒`,eT=`≤⃒`,tT=`<⃒`,nT=`⊴⃒`,rT=`⊵⃒`,iT=`∼⃒`,aT=`𝔒`,oT=`𝔬`,sT=`𝕆`,cT=`𝕠`,lT=`𝒪`,uT=`𝔓`,dT=`𝔭`,fT=`𝕡`,pT=`𝒫`,mT=`𝓅`,hT=`𝔔`,gT=`𝔮`,_T=`𝕢`,vT=`𝒬`,yT=`𝓆`,bT=`∽̱`,xT=`𝔯`,ST=`𝕣`,CT=`𝓇`,wT=`𝔖`,TT=`𝔰`,ET=`⪬︀`,DT=`𝕊`,OT=`𝕤`,kT=`⊓︀`,AT=`⊔︀`,jT=`𝒮`,MT=`𝓈`,NT=`𝔗`,PT=`𝔱`,FT=`  `,IT=`𝕋`,LT=`𝕥`,RT=`𝒯`,zT=`𝓉`,BT=`𝔘`,VT=`𝔲`,HT=`𝕌`,UT=`𝕦`,WT=`𝒰`,GT=`𝓊`,KT=`⊊︀`,qT=`⫋︀`,JT=`⊋︀`,YT=`⫌︀`,XT=`𝔙`,ZT=`𝔳`,QT=`⊂⃒`,$T=`⊃⃒`,eE=`𝕍`,tE=`𝕧`,nE=`𝒱`,rE=`𝓋`,iE=`⫋︀`,aE=`⊊︀`,oE=`⫌︀`,sE=`⊋︀`,cE=`𝔚`,lE=`𝔴`,uE=`𝕎`,dE=`𝕨`,fE=`𝒲`,pE=`𝓌`,mE=`𝔛`,hE=`𝔵`,gE=`𝕏`,_E=`𝕩`,vE=`𝒳`,yE=`𝓍`,bE=`𝔜`,xE=`𝔶`,SE=`𝕐`,CE=`𝕪`,wE=`𝒴`,TE=`𝓎`,EE=`𝔷`,DE=`𝕫`,OE=`𝒵`,kE=`𝓏`,AE={Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:xS,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:SS,afr:CS,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,amp:`&`,AMP:`&`,andand:`⩕`,And:`⩓`,and:`∧`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angmsd:`∡`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:wS,aopf:TS,apacir:`⩯`,ap:`≈`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:ES,ascr:DS,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,barwed:`⌅`,Barwed:`⌆`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,Because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:OS,bfr:kS,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:AS,bnequiv:jS,bNot:`⫭`,bnot:`⌐`,Bopf:MS,bopf:NS,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxdl:`┐`,boxdL:`╕`,boxDl:`╖`,boxDL:`╗`,boxdr:`┌`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxh:`─`,boxH:`═`,boxhd:`┬`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxhu:`┴`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxuL:`╛`,boxUl:`╜`,boxUL:`╝`,boxur:`└`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxv:`│`,boxV:`║`,boxvh:`┼`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`,boxvl:`┤`,boxvL:`╡`,boxVl:`╢`,boxVL:`╣`,boxvr:`├`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,bprime:`‵`,breve:`˘`,Breve:`˘`,brvbar:`¦`,bscr:PS,Bscr:`ℬ`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsolb:`⧅`,bsol:`\\`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,cap:`∩`,Cap:`⋒`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:FS,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,CenterDot:`·`,cfr:IS,Cfr:`ℭ`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cir:`○`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,colon:`:`,Colon:`∷`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,conint:`∮`,Conint:`∯`,ContourIntegral:`∮`,copf:LS,Copf:`ℂ`,coprod:`∐`,Coproduct:`∐`,copy:`©`,COPY:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,cross:`✗`,Cross:`⨯`,Cscr:RS,cscr:zS,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cupbrcap:`⩈`,cupcap:`⩆`,CupCap:`≍`,cup:`∪`,Cup:`⋓`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:BS,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dagger:`†`,Dagger:`‡`,daleth:`ℸ`,darr:`↓`,Darr:`↡`,dArr:`⇓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,ddagger:`‡`,ddarr:`⇊`,DD:`ⅅ`,dd:`ⅆ`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:VS,dfr:HS,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,diamond:`⋄`,Diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:US,dopf:WS,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrowBar:`⤓`,downarrow:`↓`,DownArrow:`↓`,Downarrow:`⇓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVectorBar:`⥖`,DownLeftVector:`↽`,DownRightTeeVector:`⥟`,DownRightVectorBar:`⥗`,DownRightVector:`⇁`,DownTeeArrow:`↧`,DownTee:`⊤`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:GS,dscr:KS,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,Ecirc:`Ê`,ecirc:`ê`,ecir:`≖`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,edot:`ė`,eDot:`≑`,ee:`ⅇ`,efDot:`≒`,Efr:qS,efr:JS,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp13:` `,emsp14:` `,emsp:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:YS,eopf:XS,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,escr:`ℯ`,Escr:`ℰ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,ExponentialE:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:ZS,ffr:QS,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:$S,fopf:eC,forall:`∀`,ForAll:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:tC,Fscr:`ℱ`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,ge:`≥`,gE:`≧`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,gescc:`⪩`,ges:`⩾`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:nC,gesles:`⪔`,Gfr:rC,gfr:iC,gg:`≫`,Gg:`⋙`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gla:`⪥`,gl:`≷`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gnE:`≩`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:aC,gopf:oC,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:sC,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gt:`>`,GT:`>`,Gt:`≫`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:cC,gvnE:lC,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,harrcir:`⥈`,harr:`↔`,hArr:`⇔`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:uC,Hfr:`ℌ`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:dC,Hopf:`ℍ`,horbar:`―`,HorizontalLine:`─`,hscr:fC,Hscr:`ℋ`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:pC,Ifr:`ℑ`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,Im:`ℑ`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,incare:`℅`,in:`∈`,infin:`∞`,infintie:`⧝`,inodot:`ı`,intcal:`⊺`,int:`∫`,Int:`∬`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:mC,iopf:hC,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:gC,Iscr:`ℐ`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:_C,jfr:vC,jmath:`ȷ`,Jopf:yC,jopf:bC,Jscr:xC,jscr:SC,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:CC,kfr:wC,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:TC,kopf:EC,Kscr:DC,kscr:OC,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,lang:`⟨`,Lang:`⟪`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,larrb:`⇤`,larrbfs:`⤟`,larr:`←`,Larr:`↞`,lArr:`⇐`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,latail:`⤙`,lAtail:`⤛`,lat:`⪫`,late:`⪭`,lates:kC,lbarr:`⤌`,lBarr:`⤎`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,lE:`≦`,LeftAngleBracket:`⟨`,LeftArrowBar:`⇤`,leftarrow:`←`,LeftArrow:`←`,Leftarrow:`⇐`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVectorBar:`⥙`,LeftDownVector:`⇃`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTeeArrow:`↤`,LeftTee:`⊣`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangleBar:`⧏`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVectorBar:`⥘`,LeftUpVector:`↿`,LeftVectorBar:`⥒`,LeftVector:`↼`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,lescc:`⪨`,les:`⩽`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:AC,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:jC,lfr:MC,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,llarr:`⇇`,ll:`≪`,Ll:`⋘`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoustache:`⎰`,lmoust:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lnE:`≨`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftrightarrow:`⟷`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longmapsto:`⟼`,longrightarrow:`⟶`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:NC,lopf:PC,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:FC,Lscr:`ℒ`,lsh:`↰`,Lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,lt:`<`,LT:`<`,Lt:`≪`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:IC,lvnE:LC,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:RC,mfr:zC,mho:`℧`,micro:`µ`,midast:`*`,midcir:`⫰`,mid:`∣`,middot:`·`,minusb:`⊟`,minus:`−`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:BC,mopf:VC,mp:`∓`,mscr:HC,Mscr:`ℳ`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:UC,nap:`≉`,napE:WC,napid:GC,napos:`ʼn`,napprox:`≉`,natural:`♮`,naturals:`ℕ`,natur:`♮`,nbsp:`\xA0`,nbump:KC,nbumpe:qC,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:JC,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,nearhk:`⤤`,nearr:`↗`,neArr:`⇗`,nearrow:`↗`,ne:`≠`,nedot:YC,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,nequiv:`≢`,nesear:`⤨`,nesim:XC,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
42
+ `,nexist:`∄`,nexists:`∄`,Nfr:ZC,nfr:QC,ngE:$C,nge:`≱`,ngeq:`≱`,ngeqq:ew,ngeqslant:tw,nges:nw,nGg:rw,ngsim:`≵`,nGt:iw,ngt:`≯`,ngtr:`≯`,nGtv:aw,nharr:`↮`,nhArr:`⇎`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlarr:`↚`,nlArr:`⇍`,nldr:`‥`,nlE:ow,nle:`≰`,nleftarrow:`↚`,nLeftarrow:`⇍`,nleftrightarrow:`↮`,nLeftrightarrow:`⇎`,nleq:`≰`,nleqq:sw,nleqslant:cw,nles:lw,nless:`≮`,nLl:uw,nlsim:`≴`,nLt:dw,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:fw,nmid:`∤`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,nopf:pw,Nopf:`ℕ`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:mw,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:hw,NotGreaterGreater:gw,NotGreaterLess:`≹`,NotGreaterSlantEqual:_w,NotGreaterTilde:`≵`,NotHumpDownHump:vw,NotHumpEqual:yw,notin:`∉`,notindot:bw,notinE:xw,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangleBar:Sw,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:Cw,NotLessSlantEqual:ww,NotLessTilde:`≴`,NotNestedGreaterGreater:Tw,NotNestedLessLess:Ew,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:Dw,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangleBar:Ow,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSquareSubset:kw,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:Aw,NotSquareSupersetEqual:`⋣`,NotSubset:jw,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:Mw,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:Nw,NotSuperset:Pw,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,nparallel:`∦`,npar:`∦`,nparsl:Fw,npart:Iw,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,nprec:`⊀`,npreceq:Lw,npre:Rw,nrarrc:zw,nrarr:`↛`,nrArr:`⇏`,nrarrw:Bw,nrightarrow:`↛`,nRightarrow:`⇏`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:Vw,Nscr:Hw,nscr:Uw,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:Ww,nsube:`⊈`,nsubset:Gw,nsubseteq:`⊈`,nsubseteqq:Kw,nsucc:`⊁`,nsucceq:qw,nsup:`⊅`,nsupE:Jw,nsupe:`⊉`,nsupset:Yw,nsupseteq:`⊉`,nsupseteqq:Xw,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:Zw,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`,nvge:Qw,nvgt:$w,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:eT,nvlt:tT,nvltrie:nT,nvrArr:`⤃`,nvrtrie:rT,nvsim:iT,nwarhk:`⤣`,nwarr:`↖`,nwArr:`⇖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,Ocirc:`Ô`,ocirc:`ô`,ocir:`⊚`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:aT,ofr:oT,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:sT,oopf:cT,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,orarr:`↻`,Or:`⩔`,or:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:lT,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,otimesas:`⨶`,Otimes:`⨷`,otimes:`⊗`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,para:`¶`,parallel:`∥`,par:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:uT,pfr:dT,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plus:`+`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,popf:fT,Popf:`ℙ`,pound:`£`,prap:`⪷`,Pr:`⪻`,pr:`≺`,prcue:`≼`,precapprox:`⪷`,prec:`≺`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,pre:`⪯`,prE:`⪳`,precsim:`≾`,prime:`′`,Prime:`″`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportional:`∝`,Proportion:`∷`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:pT,pscr:mT,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:hT,qfr:gT,qint:`⨌`,qopf:_T,Qopf:`ℚ`,qprime:`⁗`,Qscr:vT,qscr:yT,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,QUOT:`"`,rAarr:`⇛`,race:bT,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,Rang:`⟫`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarr:`→`,Rarr:`↠`,rArr:`⇒`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,rAtail:`⤜`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rBarr:`⤏`,RBarr:`⤐`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,Re:`ℜ`,rect:`▭`,reg:`®`,REG:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,rfr:xT,Rfr:`ℜ`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrowBar:`⇥`,rightarrow:`→`,RightArrow:`→`,Rightarrow:`⇒`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVectorBar:`⥕`,RightDownVector:`⇂`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTeeArrow:`↦`,RightTee:`⊢`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangleBar:`⧐`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVectorBar:`⥔`,RightUpVector:`↾`,RightVectorBar:`⥓`,RightVector:`⇀`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoustache:`⎱`,rmoust:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:ST,Ropf:`ℝ`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,rscr:CT,Rscr:`ℛ`,rsh:`↱`,Rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,scap:`⪸`,Scaron:`Š`,scaron:`š`,Sc:`⪼`,sc:`≻`,sccue:`≽`,sce:`⪰`,scE:`⪴`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdotb:`⊡`,sdot:`⋅`,sdote:`⩦`,searhk:`⤥`,searr:`↘`,seArr:`⇘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:wT,sfr:TT,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:`­`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:ET,SOFTcy:`Ь`,softcy:`ь`,solbar:`⌿`,solb:`⧄`,sol:`/`,Sopf:DT,sopf:OT,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:kT,sqcup:`⊔`,sqcups:AT,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,square:`□`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squ:`□`,squf:`▪`,srarr:`→`,Sscr:jT,sscr:MT,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,Sub:`⋐`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,Subset:`⋐`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succapprox:`⪸`,succ:`≻`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,sum:`∑`,Sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,Sup:`⋑`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,Supset:`⋑`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swarr:`↙`,swArr:`⇙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:NT,tfr:PT,there4:`∴`,therefore:`∴`,Therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:FT,ThinSpace:` `,thinsp:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,tilde:`˜`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,timesbar:`⨱`,timesb:`⊠`,times:`×`,timesd:`⨰`,tint:`∭`,toea:`⤨`,topbot:`⌶`,topcir:`⫱`,top:`⊤`,Topf:IT,topf:LT,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,TRADE:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:RT,tscr:zT,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,uarr:`↑`,Uarr:`↟`,uArr:`⇑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:BT,ufr:VT,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:HT,uopf:UT,UpArrowBar:`⤒`,uparrow:`↑`,UpArrow:`↑`,Uparrow:`⇑`,UpArrowDownArrow:`⇅`,updownarrow:`↕`,UpDownArrow:`↕`,Updownarrow:`⇕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTeeArrow:`↥`,UpTee:`⊥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:WT,uscr:GT,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,vArr:`⇕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:KT,varsubsetneqq:qT,varsupsetneq:JT,varsupsetneqq:YT,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vBar:`⫨`,Vbar:`⫫`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,vdash:`⊢`,vDash:`⊨`,Vdash:`⊩`,VDash:`⊫`,Vdashl:`⫦`,veebar:`⊻`,vee:`∨`,Vee:`⋁`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,Verbar:`‖`,vert:`|`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:XT,vfr:ZT,vltri:`⊲`,vnsub:QT,vnsup:$T,Vopf:eE,vopf:tE,vprop:`∝`,vrtri:`⊳`,Vscr:nE,vscr:rE,vsubnE:iE,vsubne:aE,vsupnE:oE,vsupne:sE,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,Wedge:`⋀`,wedgeq:`≙`,weierp:`℘`,Wfr:cE,wfr:lE,Wopf:uE,wopf:dE,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:fE,wscr:pE,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:mE,xfr:hE,xharr:`⟷`,xhArr:`⟺`,Xi:`Ξ`,xi:`ξ`,xlarr:`⟵`,xlArr:`⟸`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:gE,xopf:_E,xoplus:`⨁`,xotime:`⨂`,xrarr:`⟶`,xrArr:`⟹`,Xscr:vE,xscr:yE,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:bE,yfr:xE,YIcy:`Ї`,yicy:`ї`,Yopf:SE,yopf:CE,Yscr:wE,yscr:TE,YUcy:`Ю`,yucy:`ю`,yuml:`ÿ`,Yuml:`Ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:`​`,Zeta:`Ζ`,zeta:`ζ`,zfr:EE,Zfr:`ℨ`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,zopf:DE,Zopf:`ℤ`,Zscr:OE,zscr:kE,zwj:`‍`,zwnj:`‌`}})),ME=c({AElig:()=>`Æ`,AMP:()=>`&`,Aacute:()=>`Á`,Acirc:()=>`Â`,Agrave:()=>`À`,Aring:()=>`Å`,Atilde:()=>`Ã`,Auml:()=>`Ä`,COPY:()=>`©`,Ccedil:()=>`Ç`,ETH:()=>`Ð`,Eacute:()=>`É`,Ecirc:()=>`Ê`,Egrave:()=>`È`,Euml:()=>`Ë`,GT:()=>`>`,Iacute:()=>`Í`,Icirc:()=>`Î`,Igrave:()=>`Ì`,Iuml:()=>`Ï`,LT:()=>`<`,Ntilde:()=>`Ñ`,Oacute:()=>`Ó`,Ocirc:()=>`Ô`,Ograve:()=>`Ò`,Oslash:()=>`Ø`,Otilde:()=>`Õ`,Ouml:()=>`Ö`,QUOT:()=>`"`,REG:()=>`®`,THORN:()=>`Þ`,Uacute:()=>`Ú`,Ucirc:()=>`Û`,Ugrave:()=>`Ù`,Uuml:()=>`Ü`,Yacute:()=>`Ý`,aacute:()=>`á`,acirc:()=>`â`,acute:()=>`´`,aelig:()=>`æ`,agrave:()=>`à`,amp:()=>`&`,aring:()=>`å`,atilde:()=>`ã`,auml:()=>`ä`,brvbar:()=>`¦`,ccedil:()=>`ç`,cedil:()=>`¸`,cent:()=>`¢`,copy:()=>`©`,curren:()=>`¤`,default:()=>NE,deg:()=>`°`,divide:()=>`÷`,eacute:()=>`é`,ecirc:()=>`ê`,egrave:()=>`è`,eth:()=>`ð`,euml:()=>`ë`,frac12:()=>`½`,frac14:()=>`¼`,frac34:()=>`¾`,gt:()=>`>`,iacute:()=>`í`,icirc:()=>`î`,iexcl:()=>`¡`,igrave:()=>`ì`,iquest:()=>`¿`,iuml:()=>`ï`,laquo:()=>`«`,lt:()=>`<`,macr:()=>`¯`,micro:()=>`µ`,middot:()=>`·`,nbsp:()=>`\xA0`,not:()=>`¬`,ntilde:()=>`ñ`,oacute:()=>`ó`,ocirc:()=>`ô`,ograve:()=>`ò`,ordf:()=>`ª`,ordm:()=>`º`,oslash:()=>`ø`,otilde:()=>`õ`,ouml:()=>`ö`,para:()=>`¶`,plusmn:()=>`±`,pound:()=>`£`,quot:()=>`"`,raquo:()=>`»`,reg:()=>`®`,sect:()=>`§`,shy:()=>`­`,sup1:()=>`¹`,sup2:()=>`²`,sup3:()=>`³`,szlig:()=>`ß`,thorn:()=>`þ`,times:()=>`×`,uacute:()=>`ú`,ucirc:()=>`û`,ugrave:()=>`ù`,uml:()=>`¨`,uuml:()=>`ü`,yacute:()=>`ý`,yen:()=>`¥`,yuml:()=>`ÿ`}),NE,PE=o((()=>{NE={Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,acute:`´`,AElig:`Æ`,aelig:`æ`,Agrave:`À`,agrave:`à`,amp:`&`,AMP:`&`,Aring:`Å`,aring:`å`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,brvbar:`¦`,Ccedil:`Ç`,ccedil:`ç`,cedil:`¸`,cent:`¢`,copy:`©`,COPY:`©`,curren:`¤`,deg:`°`,divide:`÷`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Egrave:`È`,egrave:`è`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,frac12:`½`,frac14:`¼`,frac34:`¾`,gt:`>`,GT:`>`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,iexcl:`¡`,Igrave:`Ì`,igrave:`ì`,iquest:`¿`,Iuml:`Ï`,iuml:`ï`,laquo:`«`,lt:`<`,LT:`<`,macr:`¯`,micro:`µ`,middot:`·`,nbsp:`\xA0`,not:`¬`,Ntilde:`Ñ`,ntilde:`ñ`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Ograve:`Ò`,ograve:`ò`,ordf:`ª`,ordm:`º`,Oslash:`Ø`,oslash:`ø`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,para:`¶`,plusmn:`±`,pound:`£`,quot:`"`,QUOT:`"`,raquo:`»`,reg:`®`,REG:`®`,sect:`§`,shy:`­`,sup1:`¹`,sup2:`²`,sup3:`³`,szlig:`ß`,THORN:`Þ`,thorn:`þ`,times:`×`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Ugrave:`Ù`,ugrave:`ù`,uml:`¨`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,yen:`¥`,yuml:`ÿ`}})),FE=c({amp:()=>`&`,apos:()=>`'`,default:()=>IE,gt:()=>`>`,lt:()=>`<`,quot:()=>`"`}),IE,LE=o((()=>{IE={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}})),RE=c({default:()=>zE}),zE,BE=o((()=>{zE={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}})),VE=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t((BE(),d(RE).default)),r=String.fromCodePoint||function(e){var t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function i(e){return e>=55296&&e<=57343||e>1114111?`�`:(e in n.default&&(e=n.default[e]),r(e))}e.default=i})),HE=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var n=t((jE(),d(bS).default)),r=t((PE(),d(ME).default)),i=t((LE(),d(FE).default)),a=t(VE()),o=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(i.default),e.decodeHTMLStrict=s(n.default);function s(e){var t=l(e);return function(e){return String(e).replace(o,t)}}var c=function(e,t){return e<t?1:-1};e.decodeHTML=(function(){for(var e=Object.keys(r.default).sort(c),t=Object.keys(n.default).sort(c),i=0,a=0;i<t.length;i++)e[a]===t[i]?(t[i]+=`;?`,a++):t[i]+=`;`;var o=RegExp(`&(?:`+t.join(`|`)+`|#[xX][\\da-fA-F]+;?|#\\d+;?)`,`g`),s=l(n.default);function u(e){return e.substr(-1)!==`;`&&(e+=`;`),s(e)}return function(e){return String(e).replace(o,u)}})();function l(e){return function(t){if(t.charAt(1)===`#`){var n=t.charAt(2);return n===`X`||n===`x`?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}})),UE=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var n=a(t((LE(),d(FE).default)).default),r=o(n);e.encodeXML=h(n);var i=a(t((jE(),d(bS).default)).default);e.encodeHTML=u(i,o(i)),e.encodeNonAsciiHTML=h(i);function a(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]=`&`+n+`;`,t},{})}function o(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];a.length===1?t.push(`\\`+a):n.push(a)}t.sort();for(var o=0;o<t.length-1;o++){for(var s=o;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var c=1+s-o;c<3||t.splice(o,c,t[o]+`-`+t[s])}return n.unshift(`[`+t.join(``)+`]`),new RegExp(n.join(`|`),`g`)}var s=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,c=String.prototype.codePointAt==null?function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536}:function(e){return e.codePointAt(0)};function l(e){return`&#x`+(e.length>1?c(e):e.charCodeAt(0)).toString(16).toUpperCase()+`;`}function u(e,t){return function(n){return n.replace(t,function(t){return e[t]}).replace(s,l)}}var f=RegExp(r.source+`|`+s.source,`g`);function p(e){return e.replace(f,l)}e.escape=p;function m(e){return e.replace(r,l)}e.escapeUTF8=m;function h(e){return function(t){return t.replace(f,function(t){return e[t]||l(t)})}}})),WE=s((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=HE(),n=UE();function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}e.decode=r;function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}e.decodeStrict=i;function a(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.encode=a;var o=UE();Object.defineProperty(e,`encodeXML`,{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,`encodeHTML`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeNonAsciiHTML`,{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,`escapeUTF8`,{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(e,`encodeHTML4`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeHTML5`,{enumerable:!0,get:function(){return o.encodeHTML}});var s=HE();Object.defineProperty(e,`decodeXML`,{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,`decodeHTML`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTMLStrict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML4`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML5`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML4Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML5Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeXMLStrict`,{enumerable:!0,get:function(){return s.decodeXML}})})),GE=s(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
43
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,c;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,c=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=WE(),l={fg:`#FFF`,bg:`#000`,newline:!1,escapeXML:!1,stream:!1,colors:u()};function u(){var e={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 v(0,5).forEach(function(t){v(0,5).forEach(function(n){v(0,5).forEach(function(r){return d(t,n,r,e)})})}),v(0,23).forEach(function(t){var n=t+232,r=f(t*10+8);e[n]=`#`+r+r+r}),e}function d(e,t,n,r){var i=16+e*36+t*6+n;r[i]=p([e>0?e*40+55:0,t>0?t*40+55:0,n>0?n*40+55:0])}function f(e){for(var t=e.toString(16);t.length<2;)t=`0`+t;return t}function p(e){var t=[],n=a(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;t.push(f(i))}}catch(e){n.e(e)}finally{n.f()}return`#`+t.join(``)}function m(e,t,n,r){var i;return t===`text`?i=x(n,r):t===`display`?i=g(e,n,r):t===`xterm256Foreground`?i=w(e,r.colors[n]):t===`xterm256Background`?i=T(e,r.colors[n]):t===`rgb`&&(i=h(e,n)),i}function h(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(`;`).map(function(e){return(`0`+Number(e).toString(16)).substr(-2)}).join(``);return C(e,(n===38?`color:#`:`background-color:#`)+r)}function g(e,t,n){t=parseInt(t,10);var r={"-1":function(){return`<br/>`},0:function(){return e.length&&_(e)},1:function(){return S(e,`b`)},3:function(){return S(e,`i`)},4:function(){return S(e,`u`)},8:function(){return C(e,`display:none`)},9:function(){return S(e,`strike`)},22:function(){return C(e,`font-weight:normal;text-decoration:none;font-style:normal`)},23:function(){return ee(e,`i`)},24:function(){return ee(e,`u`)},39:function(){return w(e,n.fg)},49:function(){return T(e,n.bg)},53:function(){return C(e,`text-decoration:overline`)}},i;return r[t]?i=r[t]():4<t&&t<7?i=S(e,`blink`):29<t&&t<38?i=w(e,n.colors[t-30]):39<t&&t<48?i=T(e,n.colors[t-40]):89<t&&t<98?i=w(e,n.colors[8+(t-90)]):99<t&&t<108&&(i=T(e,n.colors[8+(t-100)])),i}function _(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(e){return`</`+e+`>`}).join(``)}function v(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function y(e){return function(t){return(e===null||t.category!==e)&&e!==`all`}}function b(e){e=parseInt(e,10);var t=null;return e===0?t=`all`:e===1?t=`bold`:2<e&&e<5?t=`underline`:4<e&&e<7?t=`blink`:e===8?t=`hide`:e===9?t=`strike`:29<e&&e<38||e===39||89<e&&e<98?t=`foreground-color`:(39<e&&e<48||e===49||99<e&&e<108)&&(t=`background-color`),t}function x(e,t){return t.escapeXML?c.encodeXML(e):e}function S(e,t,n){return n||=``,e.push(t),`<${t}${n?` style="${n}"`:``}>`}function C(e,t){return S(e,`span`,t)}function w(e,t){return S(e,`span`,`color:`+t)}function T(e,t){return S(e,`span`,`background-color:`+t)}function ee(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return`</`+t+`>`}function E(e,t,n){var r=!1,i=3;function o(){return``}function s(e,t){return n(`xterm256Foreground`,t),``}function c(e,t){return n(`xterm256Background`,t),``}function l(e){return t.newline?n(`display`,-1):n(`text`,e),``}function u(e,t){r=!0,t.trim().length===0&&(t=`0`),t=t.trimRight(`;`).split(`;`);var i=a(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;n(`display`,s)}}catch(e){i.e(e)}finally{i.f()}return``}function d(e){return n(`text`,e),``}function f(e){return n(`rgb`,e),``}var p=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:f},{pattern:/^\x1b\[38;5;(\d+)m/,sub:s},{pattern:/^\x1b\[48;5;(\d+)m/,sub:c},{pattern:/^\n/,sub:l},{pattern:/^\r+\n/,sub:l},{pattern:/^\r/,sub:l},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:u},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function m(t,n){n>i&&r||(r=!1,e=e.replace(t.pattern,t.sub))}var h=[],g=e.length;outer:for(;g>0;){for(var _=0,v=0,y=p.length;v<y;_=++v){var b=p[_];if(m(b,_),e.length!==g){g=e.length;continue outer}}if(e.length===g)break;h.push(0),g=e.length}return h}function D(e,t,n){return t!==`text`&&(e=e.filter(y(b(n))),e.push({token:t,data:n,category:b(n)})),e}t.exports=function(){function e(t){n(this,e),t||={},t.colors&&=Object.assign({},l.colors,t.colors),this.options=Object.assign({},l,t),this.stack=[],this.stickyStack=[]}return i(e,[{key:`toHtml`,value:function(e){var t=this;e=typeof e==`string`?[e]:e;var n=this.stack,r=this.options,i=[];return this.stickyStack.forEach(function(e){var t=m(n,e.token,e.data,r);t&&i.push(t)}),E(e.join(``),r,function(e,a){var o=m(n,e,a,r);o&&i.push(o),r.stream&&(t.stickyStack=D(t.stickyStack,e,a))}),n.length&&i.push(_(n)),i.join(``)}}]),e}()})),KE=u(yS(),1),qE=u(GE(),1);function JE(e,t){return t&&e.endsWith(t)}async function YE(e,t,n){let r=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${r}`)}function XE(e){return new qE.default({fg:e?`#FFF`:`#000`,bg:e?`#000`:`#FFF`})}function ZE(e){return e===null||typeof e!=`function`&&typeof e!=`object`}function QE(e){let t=e;if(ZE(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:``,stacks:[]}),!e){let e=Error(`unknown error`);t={message:e.message,stack:e.stack,name:``,stacks:[]}}return t.stacks=dv(t.stack||``,{ignoreStackEntries:[]}),t}var $E=wm(`hash`,{initialValue:{file:``,view:null,line:null,test:null,column:null}}),eD=Sp($E,`file`),tD=Sp($E,`view`),nD=Sp($E,`line`),rD=Sp($E,`column`),iD=Sp($E,`test`),aD=s(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(yS()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`javascript`,function(t,n){var r=t.indentUnit,i=n.statementIndent,a=n.jsonld,o=n.json||a,s=n.trackScope!==!1,c=n.typescript,l=n.wordCharacters||/[\w$\xa1-\uffff]/,u=function(){function e(e){return{type:e,style:`keyword`}}var t=e(`keyword a`),n=e(`keyword b`),r=e(`keyword c`),i=e(`keyword d`),a=e(`operator`),o={type:`atom`,style:`atom`};return{if:e(`if`),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e(`new`),delete:r,void:r,throw:r,debugger:e(`debugger`),var:e(`var`),const:e(`var`),let:e(`var`),function:e(`function`),catch:e(`catch`),for:e(`for`),switch:e(`switch`),case:e(`case`),default:e(`default`),in:a,typeof:a,instanceof:a,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e(`this`),class:e(`class`),super:e(`atom`),yield:r,export:e(`export`),import:e(`import`),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e){for(var t=!1,n,r=!1;(n=e.next())!=null;){if(!t){if(n==`/`&&!r)return;n==`[`?r=!0:r&&n==`]`&&(r=!1)}t=!t&&n==`\\`}}var m,h;function g(e,t,n){return m=e,h=n,t}function _(e,t){var n=e.next();if(n==`"`||n==`'`)return t.tokenize=v(n),t.tokenize(e,t);if(n==`.`&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g(`number`,`number`);if(n==`.`&&e.match(`..`))return g(`spread`,`meta`);if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if(n==`=`&&e.eat(`>`))return g(`=>`,`operator`);if(n==`0`&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g(`number`,`number`);if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g(`number`,`number`);if(n==`/`)return e.eat(`*`)?(t.tokenize=y,y(e,t)):e.eat(`/`)?(e.skipToEnd(),g(`comment`,`comment`)):bt(e,t,1)?(p(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g(`regexp`,`string-2`)):(e.eat(`=`),g(`operator`,`operator`,e.current()));if(n=="`")return t.tokenize=b,b(e,t);if(n==`#`&&e.peek()==`!`)return e.skipToEnd(),g(`meta`,`meta`);if(n==`#`&&e.eatWhile(l))return g(`variable`,`property`);if(n==`<`&&e.match(`!--`)||n==`-`&&e.match(`->`)&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g(`comment`,`comment`);if(d.test(n))return(n!=`>`||!t.lexical||t.lexical.type!=`>`)&&(e.eat(`=`)?(n==`!`||n==`=`)&&e.eat(`=`):/[<>*+\-|&?]/.test(n)&&(e.eat(n),n==`>`&&e.eat(n))),n==`?`&&e.eat(`.`)?g(`.`):g(`operator`,`operator`,e.current());if(l.test(n)){e.eatWhile(l);var r=e.current();if(t.lastType!=`.`){if(u.propertyIsEnumerable(r)){var i=u[r];return g(i.type,i.style,r)}if(r==`async`&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g(`async`,`keyword`,r)}return g(`variable`,`variable`,r)}}function v(e){return function(t,n){var r=!1,i;if(a&&t.peek()==`@`&&t.match(f))return n.tokenize=_,g(`jsonld-keyword`,`meta`);for(;(i=t.next())!=null&&!(i==e&&!r);)r=!r&&i==`\\`;return r||(n.tokenize=_),g(`string`,`string`)}}function y(e,t){for(var n=!1,r;r=e.next();){if(r==`/`&&n){t.tokenize=_;break}n=r==`*`}return g(`comment`,`comment`)}function b(e,t){for(var n=!1,r;(r=e.next())!=null;){if(!n&&(r=="`"||r==`$`&&e.eat(`{`))){t.tokenize=_;break}n=!n&&r==`\\`}return g(`quasi`,`string-2`,e.current())}var x=`([{}])`;function S(e,t){t.fatArrowAt&&=null;var n=e.string.indexOf(`=>`,e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,a=!1,o=n-1;o>=0;--o){var s=e.string.charAt(o),u=x.indexOf(s);if(u>=0&&u<3){if(!i){++o;break}if(--i==0){s==`(`&&(a=!0);break}}else if(u>=3&&u<6)++i;else if(l.test(s))a=!0;else if(/["'\/`]/.test(s))for(;;--o){if(o==0)return;if(e.string.charAt(o-1)==s&&e.string.charAt(o-2)!=`\\`){o--;break}}else if(a&&!i){++o;break}}a&&!i&&(t.fatArrowAt=o)}}var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=a,r!=null&&(this.align=r)}function T(e,t){if(!s)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function ee(e,t,n,r,i){var a=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=a,E.style=t,e.lexical.hasOwnProperty(`align`)||(e.lexical.align=!0);;)if((a.length?a.pop():o?N:ue)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return E.marked?E.marked:n==`variable`&&T(e,r)?`variable-2`:t}}var E={state:null,column:null,marked:null,cc:null};function D(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function O(){return D.apply(null,arguments),!0}function k(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function te(e){var t=E.state;if(E.marked=`def`,s){if(t.context){if(t.lexical.info==`var`&&t.context&&t.context.block){var r=ne(e,t.context);if(r!=null){t.context=r;return}}else if(!k(e,t.localVars)){t.localVars=new ae(e,t.localVars);return}}n.globalVars&&!k(e,t.globalVars)&&(t.globalVars=new ae(e,t.globalVars))}}function ne(e,t){if(!t)return null;if(t.block){var n=ne(e,t.prev);return n?n==t.prev?t:new ie(n,t.vars,!0):null}else if(k(e,t.vars))return t;else return new ie(t.prev,new ae(e,t.vars),!1)}function re(e){return e==`public`||e==`private`||e==`protected`||e==`abstract`||e==`readonly`}function ie(e,t,n){this.prev=e,this.vars=t,this.block=n}function ae(e,t){this.name=e,this.next=t}var oe=new ae(`this`,new ae(`arguments`,null));function se(){E.state.context=new ie(E.state.context,E.state.localVars,!1),E.state.localVars=oe}function ce(){E.state.context=new ie(E.state.context,E.state.localVars,!0),E.state.localVars=null}se.lex=ce.lex=!0;function le(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}le.lex=!0;function A(e,t){var n=function(){var n=E.state,r=n.indented;if(n.lexical.type==`stat`)r=n.lexical.indented;else for(var i=n.lexical;i&&i.type==`)`&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function j(){var e=E.state;e.lexical.prev&&(e.lexical.type==`)`&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}j.lex=!0;function M(e){function t(n){return n==e?O():e==`;`||n==`}`||n==`)`||n==`]`?D():O(t)}return t}function ue(e,t){return e==`var`?O(A(`vardef`,t),Ge,M(`;`),j):e==`keyword a`?O(A(`form`),pe,ue,j):e==`keyword b`?O(A(`form`),ue,j):e==`keyword d`?E.stream.match(/^\s*$/,!1)?O():O(A(`stat`),he,M(`;`),j):e==`debugger`?O(M(`;`)):e==`{`?O(A(`}`),ce,F,j,le):e==`;`?O():e==`if`?(E.state.lexical.info==`else`&&E.state.cc[E.state.cc.length-1]==j&&E.state.cc.pop()(),O(A(`form`),pe,ue,j,Ze)):e==`function`?O(tt):e==`for`?O(A(`form`),ce,Qe,ue,le,j):e==`class`||c&&t==`interface`?(E.marked=`keyword`,O(A(`form`,e==`class`?e:t),ot,j)):e==`variable`?c&&t==`declare`?(E.marked=`keyword`,O(ue)):c&&(t==`module`||t==`enum`||t==`type`)&&E.stream.match(/^\s*\w/,!1)?(E.marked=`keyword`,t==`enum`?O(L):t==`type`?O(rt,M(`operator`),Fe,M(`;`)):O(A(`form`),Ke,M(`{`),A(`}`),F,j,j)):c&&t==`namespace`?(E.marked=`keyword`,O(A(`form`),N,ue,j)):c&&t==`abstract`?(E.marked=`keyword`,O(ue)):O(A(`stat`),we):e==`switch`?O(A(`form`),pe,M(`{`),A(`}`,`switch`),ce,F,j,j,le):e==`case`?O(N,M(`:`)):e==`default`?O(M(`:`)):e==`catch`?O(A(`form`),se,de,ue,j,le):e==`export`?O(A(`stat`),ut,j):e==`import`?O(A(`stat`),ft,j):e==`async`?O(ue):t==`@`?O(N,ue):D(A(`stat`),N,M(`;`),j)}function de(e){if(e==`(`)return O(it,M(`)`))}function N(e,t){return me(e,t,!1)}function fe(e,t){return me(e,t,!0)}function pe(e){return e==`(`?O(A(`)`),he,M(`)`),j):D()}function me(e,t,n){if(E.state.fatArrowAt==E.stream.start){var r=n?xe:be;if(e==`(`)return O(se,A(`)`),ke(it,`)`),j,M(`=>`),r,le);if(e==`variable`)return D(se,Ke,M(`=>`),r,le)}var i=n?_e:ge;return C.hasOwnProperty(e)?O(i):e==`function`?O(tt,i):e==`class`||c&&t==`interface`?(E.marked=`keyword`,O(A(`form`),at,j)):e==`keyword c`||e==`async`?O(n?fe:N):e==`(`?O(A(`)`),he,M(`)`),j,i):e==`operator`||e==`spread`?O(n?fe:N):e==`[`?O(A(`]`),_t,j,i):e==`{`?Ae(Ee,`}`,null,i):e==`quasi`?D(ve,i):e==`new`?O(Se(n)):O()}function he(e){return e.match(/[;\}\)\],]/)?D():D(N)}function ge(e,t){return e==`,`?O(he):_e(e,t,!1)}function _e(e,t,n){var r=n==0?ge:_e,i=n==0?N:fe;if(e==`=>`)return O(se,n?xe:be,le);if(e==`operator`)return/\+\+|--/.test(t)||c&&t==`!`?O(r):c&&t==`<`&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(A(`>`),ke(Fe,`>`),j,r):t==`?`?O(N,M(`:`),i):O(i);if(e==`quasi`)return D(ve,r);if(e!=`;`){if(e==`(`)return Ae(fe,`)`,`call`,r);if(e==`.`)return O(Te,r);if(e==`[`)return O(A(`]`),he,M(`]`),j,r);if(c&&t==`as`)return E.marked=`keyword`,O(Fe,r);if(e==`regexp`)return E.state.lastType=E.marked=`operator`,E.stream.backUp(E.stream.pos-E.stream.start-1),O(i)}}function ve(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?O(he,ye):O(ve):D()}function ye(e){if(e==`}`)return E.marked=`string-2`,E.state.tokenize=b,O(ve)}function be(e){return S(E.stream,E.state),D(e==`{`?ue:N)}function xe(e){return S(E.stream,E.state),D(e==`{`?ue:fe)}function Se(e){return function(t){return t==`.`?O(e?Ce:P):t==`variable`&&c?O(He,e?_e:ge):D(e?fe:N)}}function P(e,t){if(t==`target`)return E.marked=`keyword`,O(ge)}function Ce(e,t){if(t==`target`)return E.marked=`keyword`,O(_e)}function we(e){return e==`:`?O(j,ue):D(ge,M(`;`),j)}function Te(e){if(e==`variable`)return E.marked=`property`,O()}function Ee(e,t){if(e==`async`)return E.marked=`property`,O(Ee);if(e==`variable`||E.style==`keyword`){if(E.marked=`property`,t==`get`||t==`set`)return O(De);var n;return c&&E.state.fatArrowAt==E.stream.start&&(n=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+n[0].length),O(Oe)}else if(e==`number`||e==`string`)return E.marked=a?`property`:E.style+` property`,O(Oe);else if(e==`jsonld-keyword`)return O(Oe);else if(c&&re(t))return E.marked=`keyword`,O(Ee);else if(e==`[`)return O(N,je,M(`]`),Oe);else if(e==`spread`)return O(fe,Oe);else if(t==`*`)return E.marked=`keyword`,O(Ee);else if(e==`:`)return D(Oe)}function De(e){return e==`variable`?(E.marked=`property`,O(tt)):D(Oe)}function Oe(e){if(e==`:`)return O(fe);if(e==`(`)return D(tt)}function ke(e,t,n){function r(i,a){if(n?n.indexOf(i)>-1:i==`,`){var o=E.state.lexical;return o.info==`call`&&(o.pos=(o.pos||0)+1),O(function(n,r){return n==t||r==t?D():D(e)},r)}return i==t||a==t?O():n&&n.indexOf(`;`)>-1?D(e):O(M(t))}return function(n,i){return n==t||i==t?O():D(e,r)}}function Ae(e,t,n){for(var r=3;r<arguments.length;r++)E.cc.push(arguments[r]);return O(A(t,n),ke(e,t),j)}function F(e){return e==`}`?O():D(ue,F)}function je(e,t){if(c){if(e==`:`)return O(Fe);if(t==`?`)return O(je)}}function Me(e,t){if(c&&(e==`:`||t==`in`))return O(Fe)}function Ne(e){if(c&&e==`:`)return E.stream.match(/^\s*\w+\s+is\b/,!1)?O(N,Pe,Fe):O(Fe)}function Pe(e,t){if(t==`is`)return E.marked=`keyword`,O()}function Fe(e,t){if(t==`keyof`||t==`typeof`||t==`infer`||t==`readonly`)return E.marked=`keyword`,O(t==`typeof`?fe:Fe);if(e==`variable`||t==`void`)return E.marked=`type`,O(Ve);if(t==`|`||t==`&`)return O(Fe);if(e==`string`||e==`number`||e==`atom`)return O(Ve);if(e==`[`)return O(A(`]`),ke(Fe,`]`,`,`),j,Ve);if(e==`{`)return O(A(`}`),I,j,Ve);if(e==`(`)return O(ke(Be,`)`),Ie,Ve);if(e==`<`)return O(ke(Fe,`>`),Fe);if(e==`quasi`)return D(Re,Ve)}function Ie(e){if(e==`=>`)return O(Fe)}function I(e){return e.match(/[\}\)\]]/)?O():e==`,`||e==`;`?O(I):D(Le,I)}function Le(e,t){if(e==`variable`||E.style==`keyword`)return E.marked=`property`,O(Le);if(t==`?`||e==`number`||e==`string`)return O(Le);if(e==`:`)return O(Fe);if(e==`[`)return O(M(`variable`),Me,M(`]`),Le);if(e==`(`)return D(nt,Le);if(!e.match(/[;\}\)\],]/))return O()}function Re(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?O(Fe,ze):O(Re):D()}function ze(e){if(e==`}`)return E.marked=`string-2`,E.state.tokenize=b,O(Re)}function Be(e,t){return e==`variable`&&E.stream.match(/^\s*[?:]/,!1)||t==`?`?O(Be):e==`:`?O(Fe):e==`spread`?O(Be):D(Fe)}function Ve(e,t){if(t==`<`)return O(A(`>`),ke(Fe,`>`),j,Ve);if(t==`|`||e==`.`||t==`&`)return O(Fe);if(e==`[`)return O(Fe,M(`]`),Ve);if(t==`extends`||t==`implements`)return E.marked=`keyword`,O(Fe);if(t==`?`)return O(Fe,M(`:`),Fe)}function He(e,t){if(t==`<`)return O(A(`>`),ke(Fe,`>`),j,Ve)}function Ue(){return D(Fe,We)}function We(e,t){if(t==`=`)return O(Fe)}function Ge(e,t){return t==`enum`?(E.marked=`keyword`,O(L)):D(Ke,je,Ye,Xe)}function Ke(e,t){if(c&&re(t))return E.marked=`keyword`,O(Ke);if(e==`variable`)return te(t),O();if(e==`spread`)return O(Ke);if(e==`[`)return Ae(Je,`]`);if(e==`{`)return Ae(qe,`}`)}function qe(e,t){return e==`variable`&&!E.stream.match(/^\s*:/,!1)?(te(t),O(Ye)):(e==`variable`&&(E.marked=`property`),e==`spread`?O(Ke):e==`}`?D():e==`[`?O(N,M(`]`),M(`:`),qe):O(M(`:`),Ke,Ye))}function Je(){return D(Ke,Ye)}function Ye(e,t){if(t==`=`)return O(fe)}function Xe(e){if(e==`,`)return O(Ge)}function Ze(e,t){if(e==`keyword b`&&t==`else`)return O(A(`form`,`else`),ue,j)}function Qe(e,t){if(t==`await`)return O(Qe);if(e==`(`)return O(A(`)`),$e,j)}function $e(e){return e==`var`?O(Ge,et):e==`variable`?O(et):D(et)}function et(e,t){return e==`)`?O():e==`;`?O(et):t==`in`||t==`of`?(E.marked=`keyword`,O(N,et)):D(N,et)}function tt(e,t){if(t==`*`)return E.marked=`keyword`,O(tt);if(e==`variable`)return te(t),O(tt);if(e==`(`)return O(se,A(`)`),ke(it,`)`),j,Ne,ue,le);if(c&&t==`<`)return O(A(`>`),ke(Ue,`>`),j,tt)}function nt(e,t){if(t==`*`)return E.marked=`keyword`,O(nt);if(e==`variable`)return te(t),O(nt);if(e==`(`)return O(se,A(`)`),ke(it,`)`),j,Ne,le);if(c&&t==`<`)return O(A(`>`),ke(Ue,`>`),j,nt)}function rt(e,t){if(e==`keyword`||e==`variable`)return E.marked=`type`,O(rt);if(t==`<`)return O(A(`>`),ke(Ue,`>`),j)}function it(e,t){return t==`@`&&O(N,it),e==`spread`?O(it):c&&re(t)?(E.marked=`keyword`,O(it)):c&&e==`this`?O(je,Ye):D(Ke,je,Ye)}function at(e,t){return e==`variable`?ot(e,t):st(e,t)}function ot(e,t){if(e==`variable`)return te(t),O(st)}function st(e,t){if(t==`<`)return O(A(`>`),ke(Ue,`>`),j,st);if(t==`extends`||t==`implements`||c&&e==`,`)return t==`implements`&&(E.marked=`keyword`),O(c?Fe:N,st);if(e==`{`)return O(A(`}`),ct,j)}function ct(e,t){if(e==`async`||e==`variable`&&(t==`static`||t==`get`||t==`set`||c&&re(t))&&E.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return E.marked=`keyword`,O(ct);if(e==`variable`||E.style==`keyword`)return E.marked=`property`,O(lt,ct);if(e==`number`||e==`string`)return O(lt,ct);if(e==`[`)return O(N,je,M(`]`),lt,ct);if(t==`*`)return E.marked=`keyword`,O(ct);if(c&&e==`(`)return D(nt,ct);if(e==`;`||e==`,`)return O(ct);if(e==`}`)return O();if(t==`@`)return O(N,ct)}function lt(e,t){if(t==`!`||t==`?`)return O(lt);if(e==`:`)return O(Fe,Ye);if(t==`=`)return O(fe);var n=E.state.lexical.prev;return D(n&&n.info==`interface`?nt:tt)}function ut(e,t){return t==`*`?(E.marked=`keyword`,O(gt,M(`;`))):t==`default`?(E.marked=`keyword`,O(N,M(`;`))):e==`{`?O(ke(dt,`}`),gt,M(`;`)):D(ue)}function dt(e,t){if(t==`as`)return E.marked=`keyword`,O(M(`variable`));if(e==`variable`)return D(fe,dt)}function ft(e){return e==`string`?O():e==`(`?D(N):e==`.`?D(ge):D(pt,mt,gt)}function pt(e,t){return e==`{`?Ae(pt,`}`):(e==`variable`&&te(t),t==`*`&&(E.marked=`keyword`),O(ht))}function mt(e){if(e==`,`)return O(pt,mt)}function ht(e,t){if(t==`as`)return E.marked=`keyword`,O(pt)}function gt(e,t){if(t==`from`)return E.marked=`keyword`,O(N)}function _t(e){return e==`]`?O():D(ke(fe,`]`))}function L(){return D(A(`form`),Ke,M(`{`),A(`}`),ke(vt,`}`),j,j)}function vt(){return D(Ke,Ye)}function yt(e,t){return e.lastType==`operator`||e.lastType==`,`||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function bt(e,t,n){return t.tokenize==_&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||t.lastType==`quasi`&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return{startState:function(e){var t={tokenize:_,lastType:`sof`,cc:[],lexical:new w((e||0)-r,0,`block`,!1),localVars:n.localVars,context:n.localVars&&new ie(null,null,!1),indented:e||0};return n.globalVars&&typeof n.globalVars==`object`&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty(`align`)||(t.lexical.align=!1),t.indented=e.indentation(),S(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return m==`comment`?n:(t.lastType=m==`operator`&&(h==`++`||h==`--`)?`incdec`:m,ee(t,n,m,h,e))},indent:function(t,a){if(t.tokenize==y||t.tokenize==b)return e.Pass;if(t.tokenize!=_)return 0;var o=a&&a.charAt(0),s=t.lexical,c;if(!/^\s*else\b/.test(a))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==j)s=s.prev;else if(u!=Ze&&u!=le)break}for(;(s.type==`stat`||s.type==`form`)&&(o==`}`||(c=t.cc[t.cc.length-1])&&(c==ge||c==_e)&&!/^[,\.=+\-*:?[\(]/.test(a));)s=s.prev;i&&s.type==`)`&&s.prev.type==`stat`&&(s=s.prev);var d=s.type,f=o==d;return d==`vardef`?s.indented+(t.lastType==`operator`||t.lastType==`,`?s.info.length+1:0):d==`form`&&o==`{`?s.indented:d==`form`?s.indented+r:d==`stat`?s.indented+(yt(t,a)?i||r:0):s.info==`switch`&&!f&&n.doubleIndentSwitch!=0?s.indented+(/^(?:case|default)\b/.test(a)?r:2*r):s.align?s.column+ +!f:s.indented+(f?0:r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:o?null:`/*`,blockCommentEnd:o?null:`*/`,blockCommentContinue:o?null:` * `,lineComment:o?null:`//`,fold:`brace`,closeBrackets:`()[]{}''""\`\``,helperType:o?`json`:`javascript`,jsonldMode:a,jsonMode:o,expressionAllowed:bt,skipExpression:function(t){ee(t,`atom`,`atom`,`true`,new e.StringStream(``,2,null))}}}),e.registerHelper(`wordChars`,`javascript`,/[\w$]/),e.defineMIME(`text/javascript`,`javascript`),e.defineMIME(`text/ecmascript`,`javascript`),e.defineMIME(`application/javascript`,`javascript`),e.defineMIME(`application/x-javascript`,`javascript`),e.defineMIME(`application/ecmascript`,`javascript`),e.defineMIME(`application/json`,{name:`javascript`,json:!0}),e.defineMIME(`application/x-json`,{name:`javascript`,json:!0}),e.defineMIME(`application/manifest+json`,{name:`javascript`,json:!0}),e.defineMIME(`application/ld+json`,{name:`javascript`,jsonld:!0}),e.defineMIME(`text/typescript`,{name:`javascript`,typescript:!0}),e.defineMIME(`application/typescript`,{name:`javascript`,typescript:!0})})})),oD=s(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(yS()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){var t={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},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode(`xml`,function(r,i){var a=r.indentUnit,o={},s=i.htmlMode?t:n;for(var c in s)o[c]=s[c];for(var c in i)o[c]=i[c];var l,u;function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return r==`<`?e.eat(`!`)?e.eat(`[`)?e.match(`CDATA[`)?n(m(`atom`,`]]>`)):null:e.match(`--`)?n(m(`comment`,`-->`)):e.match(`DOCTYPE`,!0,!0)?(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat(`?`)?(e.eatWhile(/[\w\._\-]/),t.tokenize=m(`meta`,`?>`),`meta`):(l=e.eat(`/`)?`closeTag`:`openTag`,t.tokenize=f,`tag bracket`):r==`&`?(e.eat(`#`)?e.eat(`x`)?e.eatWhile(/[a-fA-F\d]/)&&e.eat(`;`):e.eatWhile(/[\d]/)&&e.eat(`;`):e.eatWhile(/[\w\.\-:]/)&&e.eat(`;`))?`atom`:`error`:(e.eatWhile(/[^&<]/),null)}d.isInText=!0;function f(e,t){var n=e.next();if(n==`>`||n==`/`&&e.eat(`>`))return t.tokenize=d,l=n==`>`?`endTag`:`selfcloseTag`,`tag bracket`;if(n==`=`)return l=`equals`,null;if(n==`<`){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+` tag error`:`tag error`}else if(/[\'\"]/.test(n))return t.tokenize=p(n),t.stringStartCol=e.column(),t.tokenize(e,t);else return e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),`word`}function p(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;break}return`string`};return t.isInAttribute=!0,t}function m(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e){return function(t,n){for(var r;(r=t.next())!=null;)if(r==`<`)return n.tokenize=h(e+1),n.tokenize(t,n);else if(r==`>`)if(e==1){n.tokenize=d;break}else return n.tokenize=h(e-1),n.tokenize(t,n);return`meta`}}function g(e){return e&&e.toLowerCase()}function _(e,t,n){this.prev=e.context,this.tagName=t||``,this.indent=e.indented,this.startOfLine=n,(o.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&=e.context.prev}function y(e,t){for(var n;;){if(!e.context||(n=e.context.tagName,!o.contextGrabbers.hasOwnProperty(g(n))||!o.contextGrabbers[g(n)].hasOwnProperty(g(t))))return;v(e)}}function b(e,t,n){return e==`openTag`?(n.tagStart=t.column(),x):e==`closeTag`?S:b}function x(e,t,n){return e==`word`?(n.tagName=t.current(),u=`tag`,T):o.allowMissingTagName&&e==`endTag`?(u=`tag bracket`,T(e,t,n)):(u=`error`,x)}function S(e,t,n){if(e==`word`){var r=t.current();return n.context&&n.context.tagName!=r&&o.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||o.matchClosing===!1?(u=`tag`,C):(u=`tag error`,w)}else if(o.allowMissingTagName&&e==`endTag`)return u=`tag bracket`,C(e,t,n);else return u=`error`,w}function C(e,t,n){return e==`endTag`?(v(n),b):(u=`error`,C)}function w(e,t,n){return u=`error`,C(e,t,n)}function T(e,t,n){if(e==`word`)return u=`attribute`,ee;if(e==`endTag`||e==`selfcloseTag`){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,e==`selfcloseTag`||o.autoSelfClosers.hasOwnProperty(g(r))?y(n,r):(y(n,r),n.context=new _(n,r,i==n.indented)),b}return u=`error`,T}function ee(e,t,n){return e==`equals`?E:(o.allowMissing||(u=`error`),T(e,t,n))}function E(e,t,n){return e==`string`?D:e==`word`&&o.allowUnquoted?(u=`string`,T):(u=`error`,T(e,t,n))}function D(e,t,n){return e==`string`?D:T(e,t,n)}return{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return e!=null&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;l=null;var n=t.tokenize(e,t);return(n||l)&&n!=`comment`&&(u=null,t.state=t.state(l||n,e,t),u&&(n=u==`error`?n+` error`:u)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+a;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return o.multilineTagIndentPastTag===!1?t.tagStart+a*(o.multilineTagIndentFactor||1):t.tagStart+t.tagName.length+2;if(o.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;i;)if(i.tagName==s[2]){i=i.prev;break}else if(o.implicitlyClosed.hasOwnProperty(g(i.tagName)))i=i.prev;else break;else if(s)for(;i;){var c=o.contextGrabbers[g(i.tagName)];if(c&&c.hasOwnProperty(g(s[2])))i=i.prev;else break}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+a:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:`<!--`,blockCommentEnd:`-->`,configuration:o.htmlMode?`html`:`xml`,helperType:o.htmlMode?`html`:`xml`,skipAttribute:function(e){e.state==E&&(e.state=T)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:e.type==`closeTag`}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),e.defineMIME(`text/xml`,`xml`),e.defineMIME(`application/xml`,`xml`),e.mimeModes.hasOwnProperty(`text/html`)||e.defineMIME(`text/html`,{name:`xml`,htmlMode:!0})})})),sD=s(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(yS()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`css`,function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode(`text/css`));var i=t.indentUnit,a=n.tokenHooks,o=n.documentTypes||{},s=n.mediaTypes||{},c=n.mediaFeatures||{},l=n.mediaValueKeywords||{},u=n.propertyKeywords||{},d=n.nonStandardPropertyKeywords||{},f=n.fontProperties||{},p=n.counterDescriptors||{},m=n.colorKeywords||{},h=n.valueKeywords||{},g=n.allowNested,_=n.lineComment,v=n.supportsAtComponent===!0,y=t.highlightNonStandardPropertyKeywords!==!1,b,x;function S(e,t){return b=t,e}function C(e,t){var n=e.next();if(a[n]){var r=a[n](e,t);if(r!==!1)return r}if(n==`@`)return e.eatWhile(/[\w\\\-]/),S(`def`,e.current());if(n==`=`||(n==`~`||n==`|`)&&e.eat(`=`))return S(null,`compare`);if(n==`"`||n==`'`)return t.tokenize=w(n),t.tokenize(e,t);if(n==`#`)return e.eatWhile(/[\w\\\-]/),S(`atom`,`hash`);if(n==`!`)return e.match(/^\s*\w*/),S(`keyword`,`important`);if(/\d/.test(n)||n==`.`&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),S(`number`,`unit`);if(n===`-`){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),S(`number`,`unit`);if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?S(`variable-2`,`variable-definition`):S(`variable-2`,`variable`);if(e.match(/^\w+-/))return S(`meta`,`meta`)}else if(/[,+>*\/]/.test(n))return S(null,`select-op`);else if(n==`.`&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return S(`qualifier`,`qualifier`);else if(/[:;{}\[\]\(\)]/.test(n))return S(null,n);else if(e.match(/^[\w-.]+(?=\()/))return/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=T),S(`variable callee`,`variable`);else if(/[\w\\\-]/.test(n))return e.eatWhile(/[\w\\\-]/),S(`property`,`word`);else return S(null,null)}function w(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){e==`)`&&t.backUp(1);break}r=!r&&i==`\\`}return(i==e||!r&&e!=`)`)&&(n.tokenize=null),S(`string`,`string`)}}function T(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=w(`)`),S(null,`(`)}function ee(e,t,n){this.type=e,this.indent=t,this.prev=n}function E(e,t,n,r){return e.context=new ee(n,t.indentation()+(r===!1?0:i),e.context),n}function D(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function O(e,t,n){return ne[n.context.type](e,t,n)}function k(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return O(e,t,n)}function te(e){var t=e.current().toLowerCase();x=h.hasOwnProperty(t)?`atom`:m.hasOwnProperty(t)?`keyword`:`variable`}var ne={};return ne.top=function(e,t,n){if(e==`{`)return E(n,t,`block`);if(e==`}`&&n.context.prev)return D(n);if(v&&/@component/i.test(e))return E(n,t,`atComponentBlock`);if(/^@(-moz-)?document$/i.test(e))return E(n,t,`documentTypes`);if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return E(n,t,`atBlock`);if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,`restricted_atBlock_before`;if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return`keyframes`;if(e&&e.charAt(0)==`@`)return E(n,t,`at`);if(e==`hash`)x=`builtin`;else if(e==`word`)x=`tag`;else if(e==`variable-definition`)return`maybeprop`;else if(e==`interpolation`)return E(n,t,`interpolation`);else if(e==`:`)return`pseudo`;else if(g&&e==`(`)return E(n,t,`parens`);return n.context.type},ne.block=function(e,t,n){if(e==`word`){var r=t.current().toLowerCase();return u.hasOwnProperty(r)?(x=`property`,`maybeprop`):d.hasOwnProperty(r)?(x=y?`string-2`:`property`,`maybeprop`):g?(x=t.match(/^\s*:(?:\s|$)/,!1)?`property`:`tag`,`block`):(x+=` error`,`maybeprop`)}else if(e==`meta`)return`block`;else if(!g&&(e==`hash`||e==`qualifier`))return x=`error`,`block`;else return ne.top(e,t,n)},ne.maybeprop=function(e,t,n){return e==`:`?E(n,t,`prop`):O(e,t,n)},ne.prop=function(e,t,n){if(e==`;`)return D(n);if(e==`{`&&g)return E(n,t,`propBlock`);if(e==`}`||e==`{`)return k(e,t,n);if(e==`(`)return E(n,t,`parens`);if(e==`hash`&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current()))x+=` error`;else if(e==`word`)te(t);else if(e==`interpolation`)return E(n,t,`interpolation`);return`prop`},ne.propBlock=function(e,t,n){return e==`}`?D(n):e==`word`?(x=`property`,`maybeprop`):n.context.type},ne.parens=function(e,t,n){return e==`{`||e==`}`?k(e,t,n):e==`)`?D(n):e==`(`?E(n,t,`parens`):e==`interpolation`?E(n,t,`interpolation`):(e==`word`&&te(t),`parens`)},ne.pseudo=function(e,t,n){return e==`meta`?`pseudo`:e==`word`?(x=`variable-3`,n.context.type):O(e,t,n)},ne.documentTypes=function(e,t,n){return e==`word`&&o.hasOwnProperty(t.current())?(x=`tag`,n.context.type):ne.atBlock(e,t,n)},ne.atBlock=function(e,t,n){if(e==`(`)return E(n,t,`atBlock_parens`);if(e==`}`||e==`;`)return k(e,t,n);if(e==`{`)return D(n)&&E(n,t,g?`block`:`top`);if(e==`interpolation`)return E(n,t,`interpolation`);if(e==`word`){var r=t.current().toLowerCase();x=r==`only`||r==`not`||r==`and`||r==`or`?`keyword`:s.hasOwnProperty(r)?`attribute`:c.hasOwnProperty(r)?`property`:l.hasOwnProperty(r)?`keyword`:u.hasOwnProperty(r)?`property`:d.hasOwnProperty(r)?y?`string-2`:`property`:h.hasOwnProperty(r)?`atom`:m.hasOwnProperty(r)?`keyword`:`error`}return n.context.type},ne.atComponentBlock=function(e,t,n){return e==`}`?k(e,t,n):e==`{`?D(n)&&E(n,t,g?`block`:`top`,!1):(e==`word`&&(x=`error`),n.context.type)},ne.atBlock_parens=function(e,t,n){return e==`)`?D(n):e==`{`||e==`}`?k(e,t,n,2):ne.atBlock(e,t,n)},ne.restricted_atBlock_before=function(e,t,n){return e==`{`?E(n,t,`restricted_atBlock`):e==`word`&&n.stateArg==`@counter-style`?(x=`variable`,`restricted_atBlock_before`):O(e,t,n)},ne.restricted_atBlock=function(e,t,n){return e==`}`?(n.stateArg=null,D(n)):e==`word`?(x=n.stateArg==`@font-face`&&!f.hasOwnProperty(t.current().toLowerCase())||n.stateArg==`@counter-style`&&!p.hasOwnProperty(t.current().toLowerCase())?`error`:`property`,`maybeprop`):`restricted_atBlock`},ne.keyframes=function(e,t,n){return e==`word`?(x=`variable`,`keyframes`):e==`{`?E(n,t,`top`):O(e,t,n)},ne.at=function(e,t,n){return e==`;`?D(n):e==`{`||e==`}`?k(e,t,n):(e==`word`?x=`tag`:e==`hash`&&(x=`builtin`),`at`)},ne.interpolation=function(e,t,n){return e==`}`?D(n):e==`{`||e==`;`?k(e,t,n):(e==`word`?x=`variable`:e!=`variable`&&e!=`(`&&e!=`)`&&(x=`error`),`interpolation`)},{startState:function(e){return{tokenize:null,state:r?`block`:`top`,stateArg:null,context:new ee(r?`block`:`top`,e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||C)(e,t);return n&&typeof n==`object`&&(b=n[1],n=n[0]),x=n,b!=`comment`&&(t.state=ne[t.state](b,e,t)),x},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),a=n.indent;return n.type==`prop`&&(r==`}`||r==`)`)&&(n=n.prev),n.prev&&(r==`}`&&(n.type==`block`||n.type==`top`||n.type==`interpolation`||n.type==`restricted_atBlock`)?(n=n.prev,a=n.indent):(r==`)`&&(n.type==`parens`||n.type==`atBlock_parens`)||r==`{`&&(n.type==`at`||n.type==`atBlock`))&&(a=Math.max(0,n.indent-i))),a},electricChars:`}`,blockCommentStart:`/*`,blockCommentEnd:`*/`,blockCommentContinue:` * `,lineComment:_,fold:`brace`}});function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}var n=[`domain`,`regexp`,`url`,`url-prefix`],r=t(n),i=[`all`,`aural`,`braille`,`handheld`,`print`,`projection`,`screen`,`tty`,`tv`,`embossed`],a=t(i),o=`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`.split(`.`),s=t(o),c=[`landscape`,`portrait`,`none`,`coarse`,`fine`,`on-demand`,`hover`,`interlace`,`progressive`,`dark`,`light`,`standard`,`high`],l=t(c),u=`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`.split(`.`),d=t(u),f=`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`.split(`.`),p=t(f),m=t([`font-display`,`font-family`,`src`,`unicode-range`,`font-variant`,`font-feature-settings`,`font-stretch`,`font-weight`,`font-style`]),h=t([`additive-symbols`,`fallback`,`negative`,`pad`,`prefix`,`range`,`speak-as`,`suffix`,`symbols`,`system`]),g=`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`.split(`.`),_=t(g),v=`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`.split(`.`),y=t(v),b=n.concat(i).concat(o).concat(c).concat(u).concat(f).concat(g).concat(v);e.registerHelper(`hintWords`,`css`,b);function x(e,t){for(var n=!1,r;(r=e.next())!=null;){if(n&&r==`/`){t.tokenize=null;break}n=r==`*`}return[`comment`,`comment`]}e.defineMIME(`text/css`,{documentTypes:r,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:h,colorKeywords:_,valueKeywords:y,tokenHooks:{"/":function(e,t){return e.eat(`*`)?(t.tokenize=x,x(e,t)):!1}},name:`css`}),e.defineMIME(`text/x-scss`,{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:y,fontProperties:m,allowNested:!0,lineComment:`//`,tokenHooks:{"/":function(e,t){return e.eat(`/`)?(e.skipToEnd(),[`comment`,`comment`]):e.eat(`*`)?(t.tokenize=x,x(e,t)):[`operator`,`operator`]},":":function(e){return e.match(/^\s*\{/,!1)?[null,null]:!1},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?[`variable-2`,`variable-definition`]:[`variable-2`,`variable`]},"#":function(e){return e.eat(`{`)?[null,`interpolation`]:!1}},name:`css`,helperType:`scss`}),e.defineMIME(`text/x-less`,{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:y,fontProperties:m,allowNested:!0,lineComment:`//`,tokenHooks:{"/":function(e,t){return e.eat(`/`)?(e.skipToEnd(),[`comment`,`comment`]):e.eat(`*`)?(t.tokenize=x,x(e,t)):[`operator`,`operator`]},"@":function(e){return e.eat(`{`)?[null,`interpolation`]:e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?[`variable-2`,`variable-definition`]:[`variable-2`,`variable`])},"&":function(){return[`atom`,`atom`]}},name:`css`,helperType:`less`}),e.defineMIME(`text/x-gss`,{documentTypes:r,mediaTypes:a,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:h,colorKeywords:_,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return e.eat(`*`)?(t.tokenize=x,x(e,t)):!1}},name:`css`,helperType:`gss`})})})),cD=s(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(yS(),oD(),aD(),sD()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../xml/xml`,`../javascript/javascript`,`../css/css`],n):n(CodeMirror)})(function(e){var t={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 n(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}var r={};function i(e){return r[e]||(r[e]=RegExp(`\\s+`+e+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function a(e,t){var n=e.match(i(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:``}function o(e,t){return RegExp((t?`^`:``)+`</\\s*`+e+`\\s*>`,`i`)}function s(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],a=i.length-1;a>=0;a--)r.unshift(i[a])}function c(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r[0]||r[1].test(a(t,r[0])))return r[2]}}e.defineMode(`htmlmixed`,function(r,i){var a=e.getMode(r,{name:`xml`,htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag,allowMissingTagName:i.allowMissingTagName}),l={},u=i&&i.tags,d=i&&i.scriptTypes;if(s(t,l),u&&s(u,l),d)for(var f=d.length-1;f>=0;f--)l.script.unshift([`type`,d[f].matches,d[f].mode]);function p(t,i){var s=a.token(t,i.htmlState),u=/\btag\b/.test(s),d;if(u&&!/[<>\s\/]/.test(t.current())&&(d=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(d))i.inTag=d+` `;else if(i.inTag&&u&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var m=t.current()==`>`&&c(l[f[1]],f[2]),h=e.getMode(r,m),g=o(f[1],!0),_=o(f[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=p,t.localState=t.localMode=null,null):n(e,_,t.localMode.token(e,t.localState))},i.localMode=h,i.localState=e.startState(h,a.indent(i.htmlState,``,``))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=` `));return s}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:e.startState(a)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(a,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?a.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||a}}}},`xml`,`javascript`,`css`),e.defineMIME(`text/html`,`htmlmixed`)})})),lD=s(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(yS(),oD(),aD()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../xml/xml`,`../javascript/javascript`],n):n(CodeMirror)})(function(e){function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode(`jsx`,function(r,i){var a=e.getMode(r,{name:`xml`,allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),o=e.getMode(r,i&&i.base||`javascript`);function s(e){var t=e.tagName;e.tagName=null;var n=a.indent(e,``,``);return e.tagName=t,n}function c(e,t){return t.context.mode==a?l(e,t,t.context):u(e,t,t.context)}function l(n,i,l){if(l.depth==2)return n.match(/^.*?\*\//)?l.depth=1:n.skipToEnd(),`comment`;if(n.peek()==`{`){a.skipAttribute(l.state);var u=s(l.state),d=l.state.context;if(d&&n.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?u-=r.indentUnit:l.prev.state.lexical&&(u=l.prev.state.lexical.indented)}else l.depth==1&&(u+=r.indentUnit);return i.context=new t(e.startState(o,u),o,0,i.context),null}if(l.depth==1){if(n.peek()==`<`)return a.skipAttribute(l.state),i.context=new t(e.startState(a,s(l.state)),a,0,i.context),null;if(n.match(`//`))return n.skipToEnd(),`comment`;if(n.match(`/*`))return l.depth=2,c(n,i)}var f=a.token(n,l.state),p=n.current(),m;return/\btag\b/.test(f)?/>$/.test(p)?l.state.context?l.depth=0:i.context=i.context.prev:/^</.test(p)&&(l.depth=1):!f&&(m=p.indexOf(`{`))>-1&&n.backUp(p.length-m),f}function u(n,r,i){if(n.peek()==`<`&&!n.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&o.expressionAllowed(n,i.state))return r.context=new t(e.startState(a,o.indent(i.state,``,``)),a,0,r.context),o.skipExpression(i.state),null;var s=o.token(n,i.state);if(!s&&i.depth!=null){var c=n.current();c==`{`?i.depth++:c==`}`&&--i.depth==0&&(r.context=r.context.prev)}return s}return{startState:function(){return{context:new t(e.startState(o),o)}},copyState:function(e){return{context:n(e.context)}},token:c,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}},`xml`,`javascript`),e.defineMIME(`text/jsx`,`jsx`),e.defineMIME(`text/typescript-jsx`,{name:`jsx`,base:{name:`javascript`,typescript:!0}})})})),uD=s(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(yS()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineOption(`placeholder`,``,function(n,o,s){var c=s&&s!=e.Init;if(o&&!c)n.on(`blur`,i),n.on(`change`,a),n.on(`swapDoc`,a),e.on(n.getInputField(),`compositionupdate`,n.state.placeholderCompose=function(){r(n)}),a(n);else if(!o&&c){n.off(`blur`,i),n.off(`change`,a),n.off(`swapDoc`,a),e.off(n.getInputField(),`compositionupdate`,n.state.placeholderCompose),t(n);var l=n.getWrapperElement();l.className=l.className.replace(` CodeMirror-empty`,``)}o&&!n.hasFocus()&&i(n)});function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement(`pre`);n.style.cssText=`height: 0; overflow: visible`,n.style.direction=e.getOption(`direction`),n.className=`CodeMirror-placeholder CodeMirror-line-like`;var r=e.getOption(`placeholder`);typeof r==`string`&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout(function(){var r=!1;if(e.lineCount()==1){var i=e.getInputField();r=i.nodeName==`TEXTAREA`?!e.getLine(0).length:!/[^\u200b]/.test(i.querySelector(`.CodeMirror-line`).textContent)}r?n(e):t(e)},20)}function i(e){o(e)&&n(e)}function a(e){var r=e.getWrapperElement(),i=o(e);r.className=r.className.replace(` CodeMirror-empty`,``)+(i?` CodeMirror-empty`:``),i?n(e):t(e)}function o(e){return e.lineCount()===1&&e.getLine(0)===``}})})),dD=s(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(yS()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){function t(t,n,r){this.orientation=n,this.scroll=r,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement(`div`),this.node.className=t+`-`+n,this.inner=this.node.appendChild(document.createElement(`div`));var i=this;e.on(this.inner,`mousedown`,function(t){if(t.which!=1)return;e.e_preventDefault(t);var n=i.orientation==`horizontal`?`pageX`:`pageY`,r=t[n],a=i.pos;function o(){e.off(document,`mousemove`,s),e.off(document,`mouseup`,o)}function s(e){if(e.which!=1)return o();i.moveTo(a+(e[n]-r)*(i.total/i.size))}e.on(document,`mousemove`,s),e.on(document,`mouseup`,o)}),e.on(this.node,`click`,function(t){e.e_preventDefault(t);var n=i.inner.getBoundingClientRect(),r=i.orientation==`horizontal`?t.clientX<n.left?-1:+(t.clientX>n.right):t.clientY<n.top?-1:+(t.clientY>n.bottom);i.moveTo(i.pos+r*i.screen)});function a(t){var n=e.wheelEventPixels(t)[i.orientation==`horizontal`?`x`:`y`],r=i.pos;i.moveTo(i.pos+n),i.pos!=r&&e.e_preventDefault(t)}e.on(this.node,`mousewheel`,a),e.on(this.node,`DOMMouseScroll`,a)}t.prototype.setPos=function(e,t){return e<0&&(e=0),e>this.total-this.screen&&(e=this.total-this.screen),!t&&e==this.pos?!1:(this.pos=e,this.inner.style[this.orientation==`horizontal`?`left`:`top`]=e*(this.size/this.total)+`px`,!0)},t.prototype.moveTo=function(e){this.setPos(e)&&this.scroll(e,this.orientation)};var n=10;t.prototype.update=function(e,t,r){var i=this.screen!=t||this.total!=e||this.size!=r;i&&(this.screen=t,this.total=e,this.size=r);var a=this.screen*(this.size/this.total);a<n&&(this.size-=n-a,a=n),this.inner.style[this.orientation==`horizontal`?`width`:`height`]=a+`px`,this.setPos(this.pos,i)};function r(e,n,r){this.addClass=e,this.horiz=new t(e,`horizontal`,r),n(this.horiz.node),this.vert=new t(e,`vertical`,r),n(this.vert.node),this.width=null}r.prototype.update=function(e){if(this.width==null){var t=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;t&&(this.width=parseInt(t.height))}var n=this.width||0,r=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1;return this.vert.node.style.display=i?`block`:`none`,this.horiz.node.style.display=r?`block`:`none`,i&&(this.vert.update(e.scrollHeight,e.clientHeight,e.viewHeight-(r?n:0)),this.vert.node.style.bottom=r?n+`px`:`0`),r&&(this.horiz.update(e.scrollWidth,e.clientWidth,e.viewWidth-(i?n:0)-e.barLeft),this.horiz.node.style.right=i?n+`px`:`0`,this.horiz.node.style.left=e.barLeft+`px`),{right:i?n:0,bottom:r?n:0}},r.prototype.setScrollTop=function(e){this.vert.setPos(e)},r.prototype.setScrollLeft=function(e){this.horiz.setPos(e)},r.prototype.clear=function(){var e=this.horiz.node.parentNode;e.removeChild(this.horiz.node),e.removeChild(this.vert.node)},e.scrollbarModel.simple=function(e,t){return new r(`CodeMirror-simplescroll`,e,t)},e.scrollbarModel.overlay=function(e,t){return new r(`CodeMirror-overlayscroll`,e,t)}})}));aD(),oD(),cD(),lD(),uD(),dD();var fD=an();function pD(e,t,n={}){let r=KE.default.fromTextArea(e.value,{theme:`vars`,...n,scrollbarStyle:`simple`}),i=!1;return r.on(`change`,()=>{if(i){i=!1;return}t.value=r.getValue()}),sr(t,e=>{if(e!==r.getValue()){i=!0;let t=r.listSelections();r.replaceRange(e,r.posFromIndex(0),r.posFromIndex(1/0)),r.setSelections(t)}},{immediate:!0}),Jr(()=>{fD.value=void 0}),en(r)}async function mD(e){ND({file:e.file.id,line:e.location?.line??1,view:`editor`,test:e.id,column:null})}function hD(e,t){ND({file:e,column:t.column-1,line:t.line,view:`editor`,test:iD.value})}function gD(e,t){if(!t)return;let{line:n,column:r,file:i}=t;if(e.file.filepath!==i)return YE(i,n,r);ND({file:e.file.id,column:r-1,line:n,view:`editor`,test:iD.value})}var _D=z(),vD=z(!0),yD=z(!1),bD=z(!0),xD=Z(()=>ok.value?.coverage),SD=Z(()=>xD.value?.enabled),CD=Z(()=>SD.value&&!!xD.value?.htmlDir),wD=Cm(`vitest-ui_splitpanes-mainSizes`,[33,67]),TD=Cm(`vitest-ui_splitpanes-detailSizes`,[window.__vitest_browser_runner__?.provider===`webdriverio`?Om.value[0]/window.outerWidth*100:33,67]),ED=Cm(`vitest-ui_details-panel-visible`,!0),DD=z(`right`);Ln(()=>{sr(ok,()=>{ok.value?.browser?.detailsPanelPosition&&(DD.value=ok.value.browser.detailsPanelPosition)})});function OD(){setTimeout(()=>{ED.value=!1},0)}function kD(){ED.value=!0}var AD=Gt({navigation:wD.value[0],details:{size:wD.value[1],browser:TD.value[0],main:TD.value[1]}});sr(Ix,e=>{bD.value=e===`running`},{immediate:!0});function jD(){let e=eD.value;if(e&&e.length>0){let t=dk(e);t?(_D.value=t,vD.value=!1,yD.value=!1):Hp(()=>ak.state.getFiles(),()=>{_D.value=dk(e),vD.value=!1,yD.value=!1})}return vD}function MD(e){vD.value=e,yD.value=!1,e&&(_D.value=void 0,eD.value=``)}function ND({file:e,line:t,view:n,test:r,column:i}){eD.value=e,nD.value=t,rD.value=i,tD.value=n,iD.value=r,_D.value=dk(e),MD(!1)}function PD(e){e.type===`test`?tD.value===`editor`?mD(e):ND({file:e.file.id,line:null,column:null,view:tD.value,test:e.id}):ND({file:e.file.id,test:null,line:null,view:tD.value,column:null})}function FD(){yD.value=!0,vD.value=!1,_D.value=void 0,eD.value=``}function ID(){if(yk?.provider===`webdriverio`){let e=window.outerWidth*(AD.details.size/100);return(Om.value[0]+20)/e*100}return 33}function LD(){AD.navigation=33,AD.details.size=67,wD.value=[33,67]}function RD(){AD.details.main!==0&&(AD.details.browser=ID(),AD.details.main=100-AD.details.browser,TD.value=[AD.details.browser,AD.details.main])}function zD(){DD.value=DD.value===`right`?`bottom`:`right`;let e=DD.value===`bottom`?33:50;TD.value=[e,100-e],AD.details.browser=e,AD.details.main=100-e}var BD={setCurrentFileId(e){eD.value=e,_D.value=dk(e),MD(!1)},async setIframeViewport(e,t){Om.value=[e,t],yk?.provider===`webdriverio`&&RD(),await new Promise(e=>requestAnimationFrame(e))}},VD=location.port,HD=[location.hostname,VD].filter(Boolean).join(`:`),UD=`${location.protocol===`https:`?`wss:`:`ws:`}//${HD}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,WD=!!window.METADATA_PATH,GD=Uint8Array,KD=Uint16Array,qD=Int32Array,JD=new GD([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]),YD=new GD([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]),XD=new GD([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ZD=function(e,t){for(var n=new KD(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new qD(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},QD=ZD(JD,2),$D=QD.b,eO=QD.r;$D[28]=258,eO[258]=28;var tO=ZD(YD,0),nO=tO.b;tO.r;for(var rO=new KD(32768),iO=0;iO<32768;++iO){var aO=(iO&43690)>>1|(iO&21845)<<1;aO=(aO&52428)>>2|(aO&13107)<<2,aO=(aO&61680)>>4|(aO&3855)<<4,rO[iO]=((aO&65280)>>8|(aO&255)<<8)>>1}for(var oO=(function(e,t,n){for(var r=e.length,i=0,a=new KD(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new KD(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new KD(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[rO[d]>>c]=l}else for(s=new KD(r),i=0;i<r;++i)e[i]&&(s[i]=rO[o[e[i]-1]++]>>15-e[i]);return s}),sO=new GD(288),iO=0;iO<144;++iO)sO[iO]=8;for(var iO=144;iO<256;++iO)sO[iO]=9;for(var iO=256;iO<280;++iO)sO[iO]=7;for(var iO=280;iO<288;++iO)sO[iO]=8;for(var cO=new GD(32),iO=0;iO<32;++iO)cO[iO]=5;var lO=oO(sO,9,1),uO=oO(cO,5,1),dO=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},fO=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},pO=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},mO=function(e){return(e+7)/8|0},hO=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new GD(e.subarray(t,n))},gO=[`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`],_O=function(e,t,n){var r=Error(t||gO[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,_O),!n)throw r;return r},vO=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new GD(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new GD(i*3));var l=function(e){var t=n.length;if(e>t){var r=new GD(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=fO(e,d,1);var v=fO(e,d+1,3);if(d+=3,!v){var y=mO(d)+4,b=e[y-4]|e[y-3]<<8,x=y+b;if(x>i){c&&_O(0);break}s&&l(f+b),n.set(e.subarray(y,x),f),t.b=f+=b,t.p=d=x*8,t.f=u;continue}else if(v==1)p=lO,m=uO,h=9,g=5;else if(v==2){var S=fO(e,d,31)+257,C=fO(e,d+10,15)+4,w=S+fO(e,d+5,31)+1;d+=14;for(var T=new GD(w),ee=new GD(19),E=0;E<C;++E)ee[XD[E]]=fO(e,d+E*3,7);d+=C*3;for(var D=dO(ee),O=(1<<D)-1,k=oO(ee,D,1),E=0;E<w;){var te=k[fO(e,d,O)];d+=te&15;var y=te>>4;if(y<16)T[E++]=y;else{var ne=0,re=0;for(y==16?(re=3+fO(e,d,3),d+=2,ne=T[E-1]):y==17?(re=3+fO(e,d,7),d+=3):y==18&&(re=11+fO(e,d,127),d+=7);re--;)T[E++]=ne}}var ie=T.subarray(0,S),ae=T.subarray(S);h=dO(ie),g=dO(ae),p=oO(ie,h,1),m=oO(ae,g,1)}else _O(1);if(d>_){c&&_O(0);break}}s&&l(f+131072);for(var oe=(1<<h)-1,se=(1<<g)-1,ce=d;;ce=d){var ne=p[pO(e,d)&oe],le=ne>>4;if(d+=ne&15,d>_){c&&_O(0);break}if(ne||_O(2),le<256)n[f++]=le;else if(le==256){ce=d,p=null;break}else{var A=le-254;if(le>264){var E=le-257,j=JD[E];A=fO(e,d,(1<<j)-1)+$D[E],d+=j}var M=m[pO(e,d)&se],ue=M>>4;M||_O(3),d+=M&15;var ae=nO[ue];if(ue>3){var j=YD[ue];ae+=pO(e,d)&(1<<j)-1,d+=j}if(d>_){c&&_O(0);break}s&&l(f+131072);var de=f+A;if(f<ae){var N=a-ae,fe=Math.min(ae,de);for(N+f<0&&_O(3);f<fe;++f)n[f]=r[N+f]}for(;f<de;++f)n[f]=n[f-ae]}}t.l=p,t.p=ce,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?hO(n,0,f):n.subarray(0,f)},yO=new GD(0),bO=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&_O(6,`invalid gzip data`);var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},xO=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},SO=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&_O(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&_O(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2};function CO(e,t){return vO(e,{i:2},t&&t.out,t&&t.dictionary)}function wO(e,t){var n=bO(e);return n+8>e.length&&_O(6,`invalid gzip data`),vO(e.subarray(n,-8),{i:2},t&&t.out||new GD(xO(e)),t&&t.dictionary)}function TO(e,t){return vO(e.subarray(SO(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}function EO(e,t){return e[0]==31&&e[1]==139&&e[2]==8?wO(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?CO(e,t):TO(e,t)}var DO=typeof TextDecoder<`u`&&new TextDecoder;try{DO.decode(yO,{stream:!0})}catch{}var OO=function(e){for(var t=``,n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:hO(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function kO(e,t){if(t){for(var n=``,r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}else if(DO)return DO.decode(e);else{var i=OO(e),a=i.s,n=i.r;return n.length&&_O(8),a}}var{parse:AO,stringify:jO}=JSON,{keys:MO}=Object,NO=String,PO=`string`,FO={},IO=`object`,LO=(e,t)=>t,RO=e=>e instanceof NO?NO(e):e,zO=(e,t)=>typeof t===PO?new NO(t):t,BO=(e,t,n,r)=>i=>{for(let a=MO(i),{length:o}=a,s=0;s<o;s++){let o=a[s],c=i[o];if(c instanceof NO){let a=e[+c];typeof a===IO&&!n.has(a)?(n.add(a),i[o]=FO,t.push({o:i,k:o,r:a})):i[o]=r.call(i,o,a)}else i[o]!==FO&&(i[o]=r.call(i,o,c))}return i},VO=(e,t,n)=>{let r=NO(t.push(n)-1);return e.set(n,r),r},HO=(e,t)=>{let n=AO(e,zO).map(RO),r=t||LO,i=n[0];if(typeof i===IO&&i){let e=[],t=BO(n,e,new Set,r);i=t(i);let a=0;for(;a<e.length;){let{o:n,k:i,r:o}=e[a++];n[i]=r.call(n,i,t(o))}}return r.call({"":i},``,i)},UO=(e,t,n)=>{let r=t&&typeof t===IO?(e,n)=>e===``||-1<t.indexOf(e)?n:void 0:t||LO,i=new Map,a=[],o=[],s=+VO(i,a,r.call({"":e},``,e)),c=!s;for(;s<a.length;)c=!0,o[s]=jO(a[s++],l,n);return`[`+o.join(`,`)+`]`;function l(e,t){if(c)return c=!c,t;let n=r.call(this,e,t);switch(typeof n){case IO:if(n===null)return n;case PO:return i.get(n)||VO(i,a,n)}return n}};function WO(e){let t={};for(let n of e.testModules){let r=e.sourceCode.testModules[n.projectName]?.[n.relativeModuleId];r!=null&&(t[n.moduleId]=e.sourceCode.codeTable[r])}return{getFiles:async()=>e.files,getConfig:async()=>e.config,getModuleGraph:async(t,n)=>e.moduleGraph[t]?.[n],getUnhandledErrors:async()=>e.unhandledErrors,readTestFile:async e=>t[e],getPaths:async()=>[],getResolvedProjectLabels:async()=>[],getExternalResult:async()=>void 0,getTransformResult:async()=>void 0,rerun:async()=>{},rerunTask:async()=>{},updateSnapshot:async()=>{},saveTestFile:async()=>{},getTestFiles:async()=>[]}}function GO(){let e=Gt({ws:new EventTarget,state:new Bx,rpc:void 0,reconnect:()=>t(),waitForConnection:async()=>{}});e.state.filesMap=Gt(e.state.filesMap),e.state.idMap=Gt(e.state.idMap);async function t(){let t=await fetch(window.METADATA_PATH),n=new Uint8Array(await t.arrayBuffer()),r;r=n.length>=2&&n[0]===31&&n[1]===139?HO(kO(EO(n))):HO(kO(n)),e.rpc=WO(r),e.ws.dispatchEvent(new Event(`open`))}return t(),e}var KO=`q`,qO=`s`;function JO(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var YO=Math.random.bind(Math),XO=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ZO(e=21){let t=``,n=e;for(;n--;)t+=XO[YO()*64|0];return t}var QO=6e4,$O=e=>e,ek=$O,{clearTimeout:tk,setTimeout:nk}=globalThis;function rk(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=$O,deserialize:s=ek,resolver:c,bind:l=`rpc`,timeout:u=QO,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:KO};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=JO(),_=ZO();s.i=_;let v;async function y(n=s){return u>=0&&(v=nk(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{tk(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===KO){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:qO,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:qO,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(tk(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function ik(e,t={}){let{handlers:n={},autoReconnect:r=!0,reconnectInterval:i=2e3,reconnectTries:a=10,connectTimeout:o=6e4,reactive:s=e=>e,WebSocketConstructor:c=globalThis.WebSocket}=t,l=a,u,d=s({ws:new c(e),state:new Bx,rpc:void 0,waitForConnection:()=>u,reconnect:p},`state`);d.state.filesMap=s(d.state.filesMap,`filesMap`),d.state.idMap=s(d.state.idMap,`idMap`);let f;d.rpc=rk({onTestAnnotate(e,t){n.onTestAnnotate?.(e,t)},onTestArtifactRecord(e,t){n.onTestArtifactRecord?.(e,t)},onSpecsCollected(e,t){e?.forEach(([e,t])=>{d.state.clearFiles({config:e},[t])}),n.onSpecsCollected?.(e,t)},onCollected(e){d.state.collectFiles(e),n.onCollected?.(e)},onTaskUpdate(e,t){d.state.updateTasks(e),n.onTaskUpdate?.(e,t)},onUserConsoleLog(e){d.state.updateUserLog(e),n.onUserConsoleLog?.(e)},onFinished(e,t,r,i){n.onFinished?.(e,t,r,i)},onFinishedReportCoverage(){n.onFinishedReportCoverage?.()}},{post:e=>d.ws.send(e),on:e=>f=e,serialize:e=>UO(e,(e,t)=>t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:t),deserialize:HO,timeout:-1});async function p(t=!1){t&&(l=a),d.ws=new c(e),m()}function m(){u=new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Cannot connect to the server in ${o/1e3} seconds`))},o);d.ws.OPEN===d.ws.readyState&&e(),d.ws.addEventListener(`open`,()=>{l=a,e(),clearTimeout(n)})}),d.ws.addEventListener(`message`,e=>{f(e.data)}),d.ws.addEventListener(`close`,()=>{--l,r&&l>0&&setTimeout(p,i)})}return m(),d}var ak=(function(){return WD?GO():ik(UD,{reactive:(e,t)=>t===`state`?Gt(e):an(e),handlers:{onTestAnnotate(e,t){$.recordTestArtifact(e,{type:`internal:annotation`,annotation:t,location:t.location})},onTestArtifactRecord(e,t){$.recordTestArtifact(e,t)},onTaskUpdate(e,t){$.resumeRun(e,t),Ix.value=`running`},onSpecsCollected(e,t){$.startTime=t||performance.now()},onFinished(e,t,n,r){$.endRun(r),Rx.value=(t||[]).map(QE)},onFinishedReportCoverage(){let e=document.querySelector(`iframe#vitest-ui-coverage`);e instanceof HTMLIFrameElement&&e.contentWindow&&e.contentWindow.location.reload()}}})})(),ok=an({}),sk=z(`CONNECTING`),ck=an([]),lk=Z(()=>{let e=eD.value;return e?dk(e):void 0}),uk=Z(()=>qy(lk.value).map(e=>e?.logs||[]).flat()||[]);function dk(e){return ak.state.idMap.get(e)||void 0}var fk=Z(()=>sk.value===`OPEN`),pk=Z(()=>sk.value===`CONNECTING`);function mk(){return _k(ak.state.getFiles())}function hk(e){delete e.result;let t=$.nodes.get(e.id);if(t&&(t.state=void 0,e.mode=`run`,t.duration=void 0,Bb(e)))for(let t of e.tasks)hk(t)}function gk(e){let t=$.nodes;e.forEach(e=>{delete e.result,qy(e).forEach(e=>{if(delete e.result,t.has(e.id)){let n=t.get(e.id);n&&(n.state=void 0,n.mode=`run`,n.duration=void 0)}});let n=t.get(e.id);n&&(n.state=void 0,n.mode=`run`,n.duration=void 0,Cx(n)&&(n.collectDuration=void 0))})}function _k(e){return gk(e),$.startRun(),ak.rpc.rerun(e.map(e=>e.filepath),!0)}function vk(e){return hk(e),$.startRun(),ak.rpc.rerunTask(e.id)}var yk=window.__vitest_browser_runner__;window.__vitest_ui_api__=BD,sr(()=>ak.ws,e=>{sk.value=WD?`OPEN`:`CONNECTING`,e.addEventListener(`open`,async()=>{sk.value=`OPEN`,ak.state.filesMap.clear();let[e,t,n]=await Promise.all([ak.rpc.getFiles(),ak.rpc.getConfig(),ak.rpc.getUnhandledErrors()]),r=t.projects.map(e=>({name:e.name||``,color:e.color}));t.standalone&&(e=(await ak.rpc.getTestFiles()).map(([{name:e,root:t},n])=>{let r=Dy(n,t,e);return r.mode=`skip`,r})),ck.value=r.map(e=>e.name),$.loadFiles(e,r),ak.state.collectFiles(e),$.startRun(),Rx.value=(n||[]).map(QE),ok.value=t}),e.addEventListener(`close`,()=>{setTimeout(()=>{sk.value===`CONNECTING`&&(sk.value=`CLOSED`)},1e3)})},{immediate:!0});var bk=[`aria-label`,`opacity`,`disabled`,`hover`],xk=H({__name:`IconButton`,props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(W(),G(`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:P([`w-1.4em h-1.4em flex`,[{"bg-gray-500:35 op100":e.active}]])},[li(t.$slots,`default`,{},()=>[q(`span`,{class:P(e.icon),ma:``,block:``},null,2)])],10,bk))}}),Sk={id:`browser-frame`,h:`full`,flex:`~ col`},Ck={p:`3`,"h-10":``,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b base`},wk={p:`l3 y2 r2`,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b-2 base`},Tk={class:`pointer-events-none`,"text-sm":``},Ek={key:0},Dk={id:`tester-ui`,ref:`tester-ui`},Ok=sc(H({__name:`BrowserIframe`,setup(e){let t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(e){let n=t[e];return Om.value[0]===n[0]&&Om.value[1]===n[1]}async function r(e){Om.value=t[e],yk?.provider===`webdriverio`&&RD()}let i=Ar(`tester-ui`),a=z(null),o=new ResizeObserver(([e])=>{a.value=e.contentRect});Wr(()=>{i.value&&o.observe(i.value)}),Jr(()=>{o.disconnect()});let s=Z(()=>a.value?Math.floor(Math.min(a.value.width/Om.value[0],a.value.height/Om.value[1])*100):100);return(e,t)=>{let i=ii(`tooltip`);return W(),G(`div`,Sk,[q(`div`,Ck,[Qn(J(xk,{title:`Show Navigation Panel`,"rotate-180":``,icon:`i-carbon:side-panel-close`,onClick:t[0]||=e=>B(LD)()},null,512),[[ds,B(AD).navigation<=15],[i,`Show Navigation Panel`,void 0,{bottom:!0}]]),t[5]||=q(`div`,{class:`i-carbon-content-delivery-network`},null,-1),t[6]||=q(`span`,{"pl-1":``,"font-bold":``,"text-sm":``,"flex-auto":``,"ws-nowrap":``,"overflow-hidden":``,truncate:``},`Browser UI`,-1),Qn(J(xk,{title:`Show Details Panel`,icon:`i-carbon:side-panel-close`,onClick:t[1]||=e=>ED.value=!0},null,512),[[ds,B(DD)===`right`&&!B(ED)],[i,`Show Details Panel`,void 0,{bottom:!0}]])]),q(`div`,wk,[Qn(J(xk,{title:`Small mobile`,icon:`i-carbon:mobile`,active:n(`small-mobile`),onClick:t[2]||=e=>r(`small-mobile`)},null,8,[`active`]),[[i,`Small mobile`,void 0,{bottom:!0}]]),Qn(J(xk,{title:`Large mobile`,icon:`i-carbon:mobile-add`,active:n(`large-mobile`),onClick:t[3]||=e=>r(`large-mobile`)},null,8,[`active`]),[[i,`Large mobile`,void 0,{bottom:!0}]]),Qn(J(xk,{title:`Tablet`,icon:`i-carbon:tablet`,active:n(`tablet`),onClick:t[4]||=e=>r(`tablet`)},null,8,[`active`]),[[i,`Tablet`,void 0,{bottom:!0}]]),q(`span`,Tk,[Y(F(B(Om)[0])+`x`+F(B(Om)[1])+`px `,1),s.value<100?(W(),G(`span`,Ek,`(`+F(s.value)+`%)`,1)):X(``,!0)])]),q(`div`,Dk,` Select a test to run `,512)])}}}),[[`__scopeId`,`data-v-db10b46c`]]),kk=H({__name:`DetailsHeaderButtons`,setup(e){function t(e){return DD.value===`right`?e===`hide`?`rotate-180`:``:e===`hide`?`-rotate-90`:`rotate-90`}return(e,n)=>{let r=ii(`tooltip`);return W(),G(U,null,[Qn(J(xk,{title:`Switch panel position (${B(DD)===`bottom`?`right`:`bottom`})`,icon:`i-carbon-split-screen`,class:P({"rotate-90":B(DD)===`right`}),onClick:B(zD)},null,8,[`title`,`class`,`onClick`]),[[r,`Switch panel position (${B(DD)===`bottom`?`right`:`bottom`})`,void 0,{bottom:!0}]]),B(ED)?Qn((W(),K(xk,{key:0,title:B(DD)===`right`?`Hide Right Panel`:`Hide Bottom Panel`,icon:`i-carbon:side-panel-close`,class:P(t(`hide`)),onClick:B(OD)},null,8,[`title`,`class`,`onClick`])),[[r,B(DD)===`right`?`Hide Right Panel`:`Hide Bottom Panel`,void 0,{bottom:!0}]]):X(``,!0),Qn(J(xk,{title:B(DD)===`right`?`Show Right Panel`:`Show Bottom Panel`,icon:`i-carbon:side-panel-close`,class:P(t(`show`)),onClick:B(kD)},null,8,[`title`,`class`,`onClick`]),[[ds,!B(ED)],[r,B(DD)===`right`?`Show Right Panel`:`Show Bottom Panel`,void 0,{bottom:!0}]])],64)}}}),Ak={p:`2`,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b base`},jk=H({__name:`ClosedDetailsHeader`,setup(e){return(e,t)=>(W(),G(`div`,Ak,[t[0]||=q(`div`,{"flex-1":``},null,-1),J(kk)]))}}),Mk={"text-2xl":``},Nk={"text-lg":``,op50:``},Pk=H({__name:`ConnectionOverlay`,setup(e){return(e,t)=>B(fk)?X(``,!0):(W(),G(`div`,{key:0,fixed:``,"inset-0":``,p2:``,"z-10":``,"select-none":``,text:`center sm`,bg:`overlay`,"backdrop-blur-sm":``,"backdrop-saturate-0":``,onClick:t[0]||=(...e)=>B(ak).reconnect&&B(ak).reconnect(...e)},[q(`div`,{"h-full":``,flex:`~ col gap-2`,"items-center":``,"justify-center":``,class:P(B(pk)?`animate-pulse`:``)},[q(`div`,{text:`5xl`,class:P(B(pk)?`i-carbon:renew animate-spin animate-reverse`:`i-carbon-wifi-off`)},null,2),q(`div`,Mk,F(B(pk)?`Connecting...`:`Disconnected`),1),q(`div`,Nk," Check your terminal or start a new server with `"+F(B(yk)?`vitest --browser=${B(yk).config.browser.name}`:`vitest --ui`)+"` ",1)],2)]))}}),Fk={h:`full`,flex:`~ col`},Ik={p:`3`,"h-10":``,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b base`},Lk=H({__name:`Coverage`,setup(e){return(e,t)=>(W(),G(`div`,Fk,[q(`div`,Ik,[t[0]||=q(`div`,{class:`i-carbon:folder-details-reference`},null,-1),t[1]||=q(`span`,{"pl-1":``,"font-bold":``,"text-sm":``,"flex-auto":``,"ws-nowrap":``,"overflow-hidden":``,truncate:``},`Coverage`,-1),B(yk)?(W(),K(kk,{key:0})):X(``,!0)]),t[2]||=q(`div`,{"flex-auto":``,"py-1":``,"bg-white":``},[q(`iframe`,{id:`vitest-ui-coverage`,src:`./coverage/index.html`})],-1)]))}}),Rk={bg:`red500/10`,"p-1":``,"mb-1":``,"mt-2":``,rounded:``},zk={"font-bold":``},Bk={key:0,class:`scrolls`,text:`xs`,"font-mono":``,"mx-1":``,"my-2":``,"pb-2":``,"overflow-auto":``},Vk=[`font-bold`],Hk={text:`red500/70`},Uk={key:1,text:`sm`,"mb-2":``},Wk={"font-bold":``},Gk={key:2,text:`sm`,"mb-2":``},Kk={"font-bold":``},qk=H({__name:`ErrorEntry`,props:{error:{}},setup(e){return(t,n)=>(W(),G(U,null,[q(`h4`,Rk,[q(`span`,zk,[Y(F(e.error.name||e.error.nameStr||`Unknown Error`),1),e.error.message?(W(),G(U,{key:0},[Y(`:`)],64)):X(``,!0)]),Y(` `+F(e.error.message),1)]),e.error.stacks?.length?(W(),G(`p`,Bk,[(W(!0),G(U,null,si(e.error.stacks,(e,t)=>(W(),G(`span`,{key:t,"whitespace-pre":``,"font-bold":t===0?``:null},[Y(`❯ `+F(e.method)+` `+F(e.file)+`:`,1),q(`span`,Hk,F(e.line)+`:`+F(e.column),1),n[0]||=q(`br`,null,null,-1)],8,Vk))),128))])):X(``,!0),e.error.VITEST_TEST_PATH?(W(),G(`p`,Uk,[n[1]||=Y(` This error originated in `,-1),q(`span`,Wk,F(e.error.VITEST_TEST_PATH),1),n[2]||=Y(` test file. It doesn't mean the error was thrown inside the file itself, but while it was running. `,-1)])):X(``,!0),e.error.VITEST_TEST_NAME?(W(),G(`div`,Gk,[n[3]||=Y(` The latest test that might've caused the error is `,-1),q(`span`,Kk,F(e.error.VITEST_TEST_NAME),1),n[4]||=Y(`. It might mean one of the following:`,-1),n[5]||=q(`br`,null,null,-1),n[6]||=q(`ul`,null,[q(`li`,null,` The error was thrown, while Vitest was running this test. `),q(`li`,null,` If the error occurred after the test had been completed, this was the last documented test before it was thrown. `)],-1)])):X(``,!0)],64))}}),Jk={"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:``},Yk={class:`number`,"data-testid":`num-files`},Xk={class:`number`},Zk={class:`number`,"text-purple-700":``,"dark:text-purple-400":``},Qk={class:`number`,"text-red-700":``,"dark:text-red-500":``},$k={class:`number`,"text-red-700":``,"dark:text-red-500":``},eA={class:`number`,"text-red-700":``,"dark:text-red-500":``},tA={class:`number`,"data-testid":`run-time`},nA={key:0,bg:`red500/10`,text:`red500`,p:`x3 y2`,"max-w-xl":``,"m-2":``,rounded:``},rA={text:`sm`,"font-thin":``,"mb-2":``,"data-testid":`unhandled-errors`},iA={"data-testid":`unhandled-errors-details`,class:`scrolls unhandled-errors`,text:`sm`,"font-thin":``,"pe-2.5":``,"open:max-h-52":``,"overflow-auto":``},aA=sc(H({__name:`TestFilesEntry`,setup(e){return(e,t)=>(W(),G(U,null,[q(`div`,Jk,[t[10]||=q(`div`,{"i-carbon-document":``},null,-1),t[11]||=q(`div`,null,`Files`,-1),q(`div`,Yk,F(B($).summary.files),1),B($).summary.filesSuccess?(W(),G(U,{key:0},[t[0]||=q(`div`,{"i-carbon-checkmark":``},null,-1),t[1]||=q(`div`,null,`Pass`,-1),q(`div`,Xk,F(B($).summary.filesSuccess),1)],64)):X(``,!0),B($).summary.filesSkipped?(W(),G(U,{key:1},[t[2]||=q(`div`,{"i-carbon:redo":``,"rotate-90":``},null,-1),t[3]||=q(`div`,null,` Skip `,-1),q(`div`,Zk,F(B($).summary.filesSkipped),1)],64)):X(``,!0),B($).summary.filesFailed?(W(),G(U,{key:2},[t[4]||=q(`div`,{"i-carbon-close":``},null,-1),t[5]||=q(`div`,null,` Fail `,-1),q(`div`,Qk,F(B($).summary.filesFailed),1)],64)):X(``,!0),B($).summary.filesSnapshotFailed?(W(),G(U,{key:3},[t[6]||=q(`div`,{"i-carbon-compare":``},null,-1),t[7]||=q(`div`,null,` Snapshot Fail `,-1),q(`div`,$k,F(B($).summary.filesSnapshotFailed),1)],64)):X(``,!0),B(Rx).length?(W(),G(U,{key:4},[t[8]||=q(`div`,{"i-carbon-checkmark-outline-error":``},null,-1),t[9]||=q(`div`,null,` Errors `,-1),q(`div`,eA,F(B(Rx).length),1)],64)):X(``,!0),t[12]||=q(`div`,{"i-carbon-timer":``},null,-1),t[13]||=q(`div`,null,`Time`,-1),q(`div`,tA,F(B($).summary.time),1)]),B(Rx).length?(W(),G(`div`,nA,[t[17]||=q(`h3`,{"text-center":``,"mb-2":``},` Unhandled Errors `,-1),q(`p`,rA,[Y(` Vitest caught `+F(B(Rx).length)+` error`+F(B(Rx).length>1?`s`:``)+` during the test run.`,1),t[14]||=q(`br`,null,null,-1),t[15]||=Y(` This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. `,-1)]),q(`details`,iA,[t[16]||=q(`summary`,{"font-bold":``,"cursor-pointer":``},` Errors `,-1),(W(!0),G(U,null,si(B(Rx),(e,t)=>(W(),K(qk,{key:t,error:e},null,8,[`error`]))),128))])])):X(``,!0)],64))}}),[[`__scopeId`,`data-v-cfae3633`]]),oA={"p-2":``,"text-center":``,flex:``},sA={"text-4xl":``,"min-w-2em":``},cA={"text-md":``},lA=H({__name:`DashboardEntry`,setup(e){return(e,t)=>(W(),G(`div`,oA,[q(`div`,null,[q(`div`,sA,[li(e.$slots,`body`)]),q(`div`,cA,[li(e.$slots,`header`)])])]))}}),uA={flex:`~ wrap`,"justify-evenly":``,"gap-2":``,p:`x-4`,relative:``,"data-testid":`tests-entry`},dA=H({__name:`TestsEntry`,setup(e){function t(e){Q.success=!1,Q.failed=!1,Q.skipped=!1,Q.slow=!1,e!==`total`&&(Q[e]=!0)}return(e,n)=>(W(),G(`div`,uA,[J(lA,{"text-green-700":``,"dark:text-green-500":``,"data-testid":`pass-entry`,"cursor-pointer":``,hover:`op80`,onClick:n[0]||=e=>t(`success`)},{header:V(()=>[...n[5]||=[Y(` Pass `,-1)]]),body:V(()=>[Y(F(B($).summary.testsSuccess),1)]),_:1}),J(lA,{class:P({"text-red-700 dark:text-red-500":B($).summary.testsFailed,op50:!B($).summary.testsFailed}),"data-testid":`fail-entry`,"cursor-pointer":``,hover:`op80`,onClick:n[1]||=e=>t(`failed`)},{header:V(()=>[...n[6]||=[Y(` Fail `,-1)]]),body:V(()=>[Y(F(B($).summary.testsFailed),1)]),_:1},8,[`class`]),B($).summary.testsExpectedFail?(W(),K(lA,{key:0,"text-cyan-700":``,"dark:text-cyan-500":``,"data-testid":`expected-fail-entry`},{header:V(()=>[...n[7]||=[Y(` Expected Fail `,-1)]]),body:V(()=>[Y(F(B($).summary.testsExpectedFail),1)]),_:1})):X(``,!0),B($).summary.testsSkipped?(W(),K(lA,{key:1,"text-purple-700":``,"dark:text-purple-400":``,"data-testid":`skipped-entry`,"cursor-pointer":``,hover:`op80`,onClick:n[2]||=e=>t(`skipped`)},{header:V(()=>[...n[8]||=[Y(` Skip `,-1)]]),body:V(()=>[Y(F(B($).summary.testsSkipped),1)]),_:1})):X(``,!0),B($).summary.testsTodo?(W(),K(lA,{key:2,op50:``,"data-testid":`todo-entry`},{header:V(()=>[...n[9]||=[Y(` Todo `,-1)]]),body:V(()=>[Y(F(B($).summary.testsTodo),1)]),_:1})):X(``,!0),J(lA,{tail:!0,"data-testid":`total-entry`,"cursor-pointer":``,hover:`op80`,onClick:n[3]||=e=>t(`total`)},{header:V(()=>[...n[10]||=[Y(` Total `,-1)]]),body:V(()=>[Y(F(B($).summary.totalTests),1)]),_:1}),B($).summary.testsSlow?(W(),K(lA,{key:3,"text-yellow-700":``,"dark:text-yellow-500":``,"data-testid":`slow-entry`,"cursor-pointer":``,hover:`op80`,onClick:n[4]||=e=>t(`slow`)},{header:V(()=>[...n[11]||=[Y(` Slow `,-1)]]),body:V(()=>[Y(F(B($).summary.testsSlow),1)]),_:1})):X(``,!0)]))}}),fA={"gap-0":``,flex:`~ col gap-4`,"h-full":``,"justify-center":``,"items-center":``},pA={key:0,class:`text-gray-5`},mA={"aria-labelledby":`tests`,m:`y-4 x-2`},hA=H({__name:`TestsFilesContainer`,setup(e){return(e,t)=>(W(),G(`div`,fA,[B($).summary.files===0&&B(Lx)?(W(),G(`div`,pA,` No tests found `)):X(``,!0),q(`section`,mA,[J(dA)]),J(aA)]))}}),gA={h:`full`,flex:`~ col`},_A={p:`3`,"h-10":``,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b base`},vA={class:`scrolls`,"flex-auto":``,"py-1":``},yA=H({__name:`Dashboard`,setup(e){return(e,t)=>(W(),G(`div`,gA,[q(`div`,_A,[t[0]||=q(`div`,{class:`i-carbon-dashboard`},null,-1),t[1]||=q(`span`,{"pl-1":``,"font-bold":``,"text-sm":``,"flex-auto":``,"ws-nowrap":``,"overflow-hidden":``,truncate:``},`Dashboard`,-1),B(yk)?(W(),K(kk,{key:0})):X(``,!0)]),q(`div`,vA,[J(hA)])]))}}),bA=u(s(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g}))(),1);function xA(e,t){let n;return(...r)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...r),t)}}var SA={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function CA(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),SA.hasOwnProperty(t)?{space:SA[t],local:e}:e}function wA(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function TA(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function EA(e){var t=CA(e);return(t.local?TA:wA)(t)}function DA(){}function OA(e){return e==null?DA:function(){return this.querySelector(e)}}function kA(e){typeof e!=`function`&&(e=OA(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new _M(r,this._parents)}function AA(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function jA(){return[]}function MA(e){return e==null?jA:function(){return this.querySelectorAll(e)}}function NA(e){return function(){return AA(e.apply(this,arguments))}}function PA(e){e=typeof e==`function`?NA(e):MA(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new _M(r,i)}function FA(e){return function(){return this.matches(e)}}function IA(e){return function(t){return t.matches(e)}}var LA=Array.prototype.find;function RA(e){return function(){return LA.call(this.children,e)}}function zA(){return this.firstElementChild}function BA(e){return this.select(e==null?zA:RA(typeof e==`function`?e:IA(e)))}var VA=Array.prototype.filter;function HA(){return Array.from(this.children)}function UA(e){return function(){return VA.call(this.children,e)}}function WA(e){return this.selectAll(e==null?HA:UA(typeof e==`function`?e:IA(e)))}function GA(e){typeof e!=`function`&&(e=FA(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new _M(r,this._parents)}function KA(e){return Array(e.length)}function qA(){return new _M(this._enter||this._groups.map(KA),this._parents)}function JA(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}JA.prototype={constructor:JA,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 YA(e){return function(){return e}}function XA(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new JA(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ZA(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new JA(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function QA(e){return e.__data__}function $A(e,t){if(!arguments.length)return Array.from(this,QA);var n=t?ZA:XA,r=this._parents,i=this._groups;typeof e!=`function`&&(e=YA(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ej(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new _M(o,r),o._enter=s,o._exit=c,o}function ej(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function tj(){return new _M(this._exit||this._groups.map(KA),this._parents)}function nj(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function rj(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new _M(s,this._parents)}function ij(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function aj(e){e||=oj;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new _M(i,this._parents).order()}function oj(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function sj(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function cj(){return Array.from(this)}function lj(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function uj(){let e=0;for(let t of this)++e;return e}function dj(){return!this.node()}function fj(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function pj(e){return function(){this.removeAttribute(e)}}function mj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hj(e,t){return function(){this.setAttribute(e,t)}}function gj(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function _j(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function vj(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function yj(e,t){var n=CA(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?mj:pj:typeof t==`function`?n.local?vj:_j:n.local?gj:hj)(n,t))}function bj(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xj(e){return function(){this.style.removeProperty(e)}}function Sj(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Cj(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function wj(e,t,n){return arguments.length>1?this.each((t==null?xj:typeof t==`function`?Cj:Sj)(e,t,n??``)):Tj(this.node(),e)}function Tj(e,t){return e.style.getPropertyValue(t)||bj(e).getComputedStyle(e,null).getPropertyValue(t)}function Ej(e){return function(){delete this[e]}}function Dj(e,t){return function(){this[e]=t}}function Oj(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function kj(e,t){return arguments.length>1?this.each((t==null?Ej:typeof t==`function`?Oj:Dj)(e,t)):this.node()[e]}function Aj(e){return e.trim().split(/^|\s+/)}function jj(e){return e.classList||new Mj(e)}function Mj(e){this._node=e,this._names=Aj(e.getAttribute(`class`)||``)}Mj.prototype={add:function(e){this._names.indexOf(e)<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 Nj(e,t){for(var n=jj(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Pj(e,t){for(var n=jj(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Fj(e){return function(){Nj(this,e)}}function Ij(e){return function(){Pj(this,e)}}function Lj(e,t){return function(){(t.apply(this,arguments)?Nj:Pj)(this,e)}}function Rj(e,t){var n=Aj(e+``);if(arguments.length<2){for(var r=jj(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Lj:t?Fj:Ij)(n,t))}function zj(){this.textContent=``}function Bj(e){return function(){this.textContent=e}}function Vj(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Hj(e){return arguments.length?this.each(e==null?zj:(typeof e==`function`?Vj:Bj)(e)):this.node().textContent}function Uj(){this.innerHTML=``}function Wj(e){return function(){this.innerHTML=e}}function Gj(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Kj(e){return arguments.length?this.each(e==null?Uj:(typeof e==`function`?Gj:Wj)(e)):this.node().innerHTML}function qj(){this.nextSibling&&this.parentNode.appendChild(this)}function Jj(){return this.each(qj)}function Yj(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xj(){return this.each(Yj)}function Zj(e){var t=typeof e==`function`?e:EA(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Qj(){return null}function $j(e,t){var n=typeof e==`function`?e:EA(e),r=t==null?Qj:typeof t==`function`?t:OA(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function eM(){var e=this.parentNode;e&&e.removeChild(this)}function tM(){return this.each(eM)}function nM(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rM(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function iM(e){return this.select(e?rM:nM)}function aM(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function oM(e){return function(t){e.call(this,t,this.__data__)}}function sM(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function cM(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function lM(e,t,n){return function(){var r=this.__on,i,a=oM(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function uM(e,t,n){var r=sM(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?lM:cM,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function dM(e,t,n){var r=bj(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function fM(e,t){return function(){return dM(this,e,t)}}function pM(e,t){return function(){return dM(this,e,t.apply(this,arguments))}}function mM(e,t){return this.each((typeof t==`function`?pM:fM)(e,t))}function*hM(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var gM=[null];function _M(e,t){this._groups=e,this._parents=t}function vM(){return new _M([[document.documentElement]],gM)}function yM(){return this}_M.prototype=vM.prototype={constructor:_M,select:kA,selectAll:PA,selectChild:BA,selectChildren:WA,filter:GA,data:$A,enter:qA,exit:tj,join:nj,merge:rj,selection:yM,order:ij,sort:aj,call:sj,nodes:cj,node:lj,size:uj,empty:dj,each:fj,attr:yj,style:wj,property:kj,classed:Rj,text:Hj,html:Kj,raise:Jj,lower:Xj,append:Zj,insert:$j,remove:tM,clone:iM,datum:aM,on:uM,dispatch:mM,[Symbol.iterator]:hM};function bM(e){return typeof e==`string`?new _M([[document.querySelector(e)]],[document.documentElement]):new _M([[e]],gM)}function xM(e){let t;for(;t=e.sourceEvent;)e=t;return e}function SM(e,t){if(e=xM(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var CM=class e{x;y;static of([t,n]){return new e(t,n)}constructor(e,t){this.x=e,this.y=t}add(t){return new e(this.x+t.x,this.y+t.y)}subtract(t){return new e(this.x-t.x,this.y-t.y)}multiply(t){return new e(this.x*t,this.y*t)}divide(t){return new e(this.x/t,this.y/t)}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-e.x*this.y}hadamard(t){return new e(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){let t=this.length();return new e(this.x/t,this.y/t)}rotateByRadians(t){let n=Math.cos(t),r=Math.sin(t);return new e(this.x*n-this.y*r,this.x*r+this.y*n)}rotateByDegrees(e){return this.rotateByRadians(e*Math.PI/180)}},wM={value:()=>{}};function TM(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new EM(n)}function EM(e){this._=e}function DM(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}EM.prototype=TM.prototype={constructor:EM,on:function(e,t){var n=this._,r=DM(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=OM(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=kM(n[i],e.name,t);else if(t==null)for(i in n)n[i]=kM(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new EM(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function OM(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function kM(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=wM,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var AM={passive:!1},jM={capture:!0,passive:!1};function MM(e){e.stopImmediatePropagation()}function NM(e){e.preventDefault(),e.stopImmediatePropagation()}function PM(e){var t=e.document.documentElement,n=bM(e).on(`dragstart.drag`,NM,jM);`onselectstart`in t?n.on(`selectstart.drag`,NM,jM):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function FM(e,t){var n=e.document.documentElement,r=bM(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,NM,jM),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var IM=e=>()=>e;function LM(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}LM.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function RM(e){return!e.ctrlKey&&!e.button}function zM(){return this.parentNode}function BM(e,t){return t??{x:e.x,y:e.y}}function VM(){return navigator.maxTouchPoints||`ontouchstart`in this}function HM(){var e=RM,t=zM,n=BM,r=VM,i={},a=TM(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,AM).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(bM(n.view).on(`mousemove.drag`,m,jM).on(`mouseup.drag`,h,jM),PM(n.view),MM(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(NM(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){bM(e.view).on(`mousemove.drag mouseup.drag`,null),FM(e.view,l),NM(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(MM(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(NM(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(MM(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=SM(l||r,t),p,m,h;if((h=n.call(e,new LM(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=SM(l||a,t),_=o;break}u.call(r,e,new LM(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:IM(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:IM(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:IM(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:IM(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function UM(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function WM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function GM(){}var KM=.7,qM=1/KM,JM=`\\s*([+-]?\\d+)\\s*`,YM=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,XM=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,ZM=/^#([0-9a-f]{3,8})$/,QM=RegExp(`^rgb\\(${JM},${JM},${JM}\\)$`),$M=RegExp(`^rgb\\(${XM},${XM},${XM}\\)$`),eN=RegExp(`^rgba\\(${JM},${JM},${JM},${YM}\\)$`),tN=RegExp(`^rgba\\(${XM},${XM},${XM},${YM}\\)$`),nN=RegExp(`^hsl\\(${YM},${XM},${XM}\\)$`),rN=RegExp(`^hsla\\(${YM},${XM},${XM},${YM}\\)$`),iN={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};UM(GM,lN,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aN,formatHex:aN,formatHex8:oN,formatHsl:sN,formatRgb:cN,toString:cN});function aN(){return this.rgb().formatHex()}function oN(){return this.rgb().formatHex8()}function sN(){return SN(this).formatHsl()}function cN(){return this.rgb().formatRgb()}function lN(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=ZM.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uN(t):n===3?new mN(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dN(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dN(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=QM.exec(e))?new mN(t[1],t[2],t[3],1):(t=$M.exec(e))?new mN(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=eN.exec(e))?dN(t[1],t[2],t[3],t[4]):(t=tN.exec(e))?dN(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nN.exec(e))?xN(t[1],t[2]/100,t[3]/100,1):(t=rN.exec(e))?xN(t[1],t[2]/100,t[3]/100,t[4]):iN.hasOwnProperty(e)?uN(iN[e]):e===`transparent`?new mN(NaN,NaN,NaN,0):null}function uN(e){return new mN(e>>16&255,e>>8&255,e&255,1)}function dN(e,t,n,r){return r<=0&&(e=t=n=NaN),new mN(e,t,n,r)}function fN(e){return e instanceof GM||(e=lN(e)),e?(e=e.rgb(),new mN(e.r,e.g,e.b,e.opacity)):new mN}function pN(e,t,n,r){return arguments.length===1?fN(e):new mN(e,t,n,r??1)}function mN(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}UM(mN,pN,WM(GM,{brighter(e){return e=e==null?qM:qM**+e,new mN(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?KM:KM**+e,new mN(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new mN(yN(this.r),yN(this.g),yN(this.b),vN(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:hN,formatHex:hN,formatHex8:gN,formatRgb:_N,toString:_N}));function hN(){return`#${bN(this.r)}${bN(this.g)}${bN(this.b)}`}function gN(){return`#${bN(this.r)}${bN(this.g)}${bN(this.b)}${bN((isNaN(this.opacity)?1:this.opacity)*255)}`}function _N(){let e=vN(this.opacity);return`${e===1?`rgb(`:`rgba(`}${yN(this.r)}, ${yN(this.g)}, ${yN(this.b)}${e===1?`)`:`, ${e})`}`}function vN(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yN(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bN(e){return e=yN(e),(e<16?`0`:``)+e.toString(16)}function xN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wN(e,t,n,r)}function SN(e){if(e instanceof wN)return new wN(e.h,e.s,e.l,e.opacity);if(e instanceof GM||(e=lN(e)),!e)return new wN;if(e instanceof wN)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new wN(o,s,c,e.opacity)}function CN(e,t,n,r){return arguments.length===1?SN(e):new wN(e,t,n,r??1)}function wN(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}UM(wN,CN,WM(GM,{brighter(e){return e=e==null?qM:qM**+e,new wN(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?KM:KM**+e,new wN(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new mN(DN(e>=240?e-240:e+120,i,r),DN(e,i,r),DN(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wN(TN(this.h),EN(this.s),EN(this.l),vN(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(){let e=vN(this.opacity);return`${e===1?`hsl(`:`hsla(`}${TN(this.h)}, ${EN(this.s)*100}%, ${EN(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function TN(e){return e=(e||0)%360,e<0?e+360:e}function EN(e){return Math.max(0,Math.min(1,e||0))}function DN(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var ON=e=>()=>e;function kN(e,t){return function(n){return e+n*t}}function AN(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function jN(e){return(e=+e)==1?MN:function(t,n){return n-t?AN(t,n,e):ON(isNaN(t)?n:t)}}function MN(e,t){var n=t-e;return n?kN(e,n):ON(isNaN(e)?t:e)}var NN=(function e(t){var n=jN(t);function r(e,t){var r=n((e=pN(e)).r,(t=pN(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=MN(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function PN(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var FN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,IN=new RegExp(FN.source,`g`);function LN(e){return function(){return e}}function RN(e){return function(t){return e(t)+``}}function zN(e,t){var n=FN.lastIndex=IN.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=FN.exec(e))&&(i=IN.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:PN(r,i)})),n=IN.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?RN(c[0].x):LN(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var BN=180/Math.PI,VN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function HN(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*BN,skewX:Math.atan(c)*BN,scaleX:o,scaleY:s}}var UN;function WN(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?VN:HN(t.a,t.b,t.c,t.d,t.e,t.f)}function GN(e){return e==null||(UN||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),UN.setAttribute(`transform`,e),!(e=UN.transform.baseVal.consolidate()))?VN:(e=e.matrix,HN(e.a,e.b,e.c,e.d,e.e,e.f))}function KN(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:PN(e,i)},{i:c-2,x:PN(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:PN(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:PN(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:PN(e,n)},{i:s-2,x:PN(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var qN=KN(WN,`px, `,`px)`,`deg)`),JN=KN(GN,`, `,`)`,`)`),YN=1e-12;function XN(e){return((e=Math.exp(e))+1/e)/2}function ZN(e){return((e=Math.exp(e))-1/e)/2}function QN(e){return((e=Math.exp(2*e))-1)/(e+1)}var $N=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<YN)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=XN(y),c=s/(n*g)*(i*QN(t*r+y)-ZN(y));return[a+c*d,o+c*f,s*i/XN(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),eP=0,tP=0,nP=0,rP=1e3,iP,aP,oP=0,sP=0,cP=0,lP=typeof performance==`object`&&performance.now?performance:Date,uP=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function dP(){return sP||=(uP(fP),lP.now()+cP)}function fP(){sP=0}function pP(){this._call=this._time=this._next=null}pP.prototype=mP.prototype={constructor:pP,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?dP():+n)+(t==null?0:+t),!this._next&&aP!==this&&(aP?aP._next=this:iP=this,aP=this),this._call=e,this._time=n,yP()},stop:function(){this._call&&(this._call=null,this._time=1/0,yP())}};function mP(e,t,n){var r=new pP;return r.restart(e,t,n),r}function hP(){dP(),++eP;for(var e=iP,t;e;)(t=sP-e._time)>=0&&e._call.call(void 0,t),e=e._next;--eP}function gP(){sP=(oP=lP.now())+cP,eP=tP=0;try{hP()}finally{eP=0,vP(),sP=0}}function _P(){var e=lP.now(),t=e-oP;t>rP&&(cP-=t,oP=e)}function vP(){for(var e,t=iP,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:iP=n);aP=e,yP(r)}function yP(e){eP||(tP&&=clearTimeout(tP),e-sP>24?(e<1/0&&(tP=setTimeout(gP,e-lP.now()-cP)),nP&&=clearInterval(nP)):(nP||=(oP=lP.now(),setInterval(_P,rP)),eP=1,uP(gP)))}function bP(e,t,n){var r=new pP;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var xP=TM(`start`,`end`,`cancel`,`interrupt`),SP=[];function CP(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;DP(e,n,{name:t,index:r,group:i,on:xP,tween:SP,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function wP(e,t){var n=EP(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function TP(e,t){var n=EP(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function EP(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function DP(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=mP(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return bP(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(bP(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function OP(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function kP(e){return this.each(function(){OP(this,e)})}function AP(e,t){var n,r;return function(){var i=TP(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function jP(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=TP(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function MP(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=EP(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?AP:jP)(n,e,t))}function NP(e,t,n){var r=e._id;return e.each(function(){var e=TP(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return EP(e,r).value[t]}}function PP(e,t){var n;return(typeof t==`number`?PN:t instanceof lN?NN:(n=lN(t))?(t=n,NN):zN)(e,t)}function FP(e){return function(){this.removeAttribute(e)}}function IP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function LP(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function RP(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function zP(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function BP(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function VP(e,t){var n=CA(e),r=n===`transform`?JN:PP;return this.attrTween(e,typeof t==`function`?(n.local?BP:zP)(n,r,NP(this,`attr.`+e,t)):t==null?(n.local?IP:FP)(n):(n.local?RP:LP)(n,r,t))}function HP(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function UP(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function WP(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&UP(e,i)),n}return i._value=t,i}function GP(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&HP(e,i)),n}return i._value=t,i}function KP(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=CA(e);return this.tween(n,(r.local?WP:GP)(r,t))}function qP(e,t){return function(){wP(this,e).delay=+t.apply(this,arguments)}}function JP(e,t){return t=+t,function(){wP(this,e).delay=t}}function YP(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?qP:JP)(t,e)):EP(this.node(),t).delay}function XP(e,t){return function(){TP(this,e).duration=+t.apply(this,arguments)}}function ZP(e,t){return t=+t,function(){TP(this,e).duration=t}}function QP(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?XP:ZP)(t,e)):EP(this.node(),t).duration}function $P(e,t){if(typeof t!=`function`)throw Error();return function(){TP(this,e).ease=t}}function eF(e){var t=this._id;return arguments.length?this.each($P(t,e)):EP(this.node(),t).ease}function tF(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();TP(this,e).ease=n}}function nF(e){if(typeof e!=`function`)throw Error();return this.each(tF(this._id,e))}function rF(e){typeof e!=`function`&&(e=FA(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new MF(r,this._parents,this._name,this._id)}function iF(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new MF(o,this._parents,this._name,this._id)}function aF(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function oF(e,t,n){var r,i,a=aF(t)?wP:TP;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function sF(e,t){var n=this._id;return arguments.length<2?EP(this.node(),n).on.on(e):this.each(oF(n,e,t))}function cF(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function lF(){return this.on(`end.remove`,cF(this._id))}function uF(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=OA(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,CP(l[f],t,n,f,l,EP(u,n)));return new MF(a,this._parents,t,n)}function dF(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=MA(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=EP(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&CP(p,t,n,h,f,m);a.push(f),o.push(u)}return new MF(a,o,t,n)}var fF=vM.prototype.constructor;function pF(){return new fF(this._groups,this._parents)}function mF(e,t){var n,r,i;return function(){var a=Tj(this,e),o=(this.style.removeProperty(e),Tj(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function hF(e){return function(){this.style.removeProperty(e)}}function gF(e,t,n){var r,i=n+``,a;return function(){var o=Tj(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function _F(e,t,n){var r,i,a;return function(){var o=Tj(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Tj(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function vF(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=TP(this,e),l=c.on,u=c.value[a]==null?s||=hF(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function yF(e,t,n){var r=(e+=``)==`transform`?qN:PP;return t==null?this.styleTween(e,mF(e,r)).on(`end.style.`+e,hF(e)):typeof t==`function`?this.styleTween(e,_F(e,r,NP(this,`style.`+e,t))).each(vF(this._id,e)):this.styleTween(e,gF(e,r,t),n).on(`end.style.`+e,null)}function bF(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function xF(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&bF(e,a,n)),r}return a._value=t,a}function SF(e,t,n){var r=`style.`+(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 Error();return this.tween(r,xF(e,t,n??``))}function CF(e){return function(){this.textContent=e}}function wF(e){return function(){var t=e(this);this.textContent=t??``}}function TF(e){return this.tween(`text`,typeof e==`function`?wF(NP(this,`text`,e)):CF(e==null?``:e+``))}function EF(e){return function(t){this.textContent=e.call(this,t)}}function DF(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&EF(r)),t}return r._value=e,r}function OF(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 Error();return this.tween(t,DF(e))}function kF(){for(var e=this._name,t=this._id,n=PF(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=EP(c,t);CP(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new MF(r,this._parents,e,n)}function AF(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=TP(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var jF=0;function MF(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function NF(e){return vM().transition(e)}function PF(){return++jF}var FF=vM.prototype;MF.prototype=NF.prototype={constructor:MF,select:uF,selectAll:dF,selectChild:FF.selectChild,selectChildren:FF.selectChildren,filter:rF,merge:iF,selection:pF,transition:kF,call:FF.call,nodes:FF.nodes,node:FF.node,size:FF.size,empty:FF.empty,each:FF.each,on:sF,attr:VP,attrTween:KP,style:yF,styleTween:SF,text:TF,textTween:OF,remove:lF,tween:MP,delay:YP,duration:QP,ease:eF,easeVarying:nF,end:AF,[Symbol.iterator]:FF[Symbol.iterator]};function IF(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var LF={time:null,delay:0,duration:250,ease:IF};function RF(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function zF(e){var t,n;e instanceof MF?(t=e._id,e=e._name):(t=PF(),(n=LF).time=dP(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&CP(c,e,t,l,o,n||RF(c,t));return new MF(r,this._parents,e,t)}vM.prototype.interrupt=kP,vM.prototype.transition=zF;var BF=e=>()=>e;function VF(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function HF(e,t,n){this.k=e,this.x=t,this.y=n}HF.prototype={constructor:HF,scale:function(e){return e===1?this:new HF(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new HF(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 UF=new HF(1,0,0);WF.prototype=HF.prototype;function WF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return UF;return e.__zoom}function GF(e){e.stopImmediatePropagation()}function KF(e){e.preventDefault(),e.stopImmediatePropagation()}function qF(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function JF(){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 YF(){return this.__zoom||UF}function XF(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ZF(){return navigator.maxTouchPoints||`ontouchstart`in this}function QF(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function $F(){var e=qF,t=JF,n=QF,r=XF,i=ZF,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=$N,l=TM(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,YF).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,ee).filter(i).on(`touchstart.zoom`,E).on(`touchmove.zoom`,D).on(`touchend.zoom touchcancel.zoom`,O).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,YF),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(UF.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new HF(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new HF(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new HF(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=bM(this.that).datum();l.call(e,this.that,new VF(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=SM(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],OP(this),s.start();KF(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=bM(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=SM(t,i),l=t.clientX,u=t.clientY;PM(t.view),GF(t),a.mouse=[c,this.__zoom.invert(c)],OP(this),a.start();function d(e){if(KF(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=SM(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),FM(e.view,a.moved),KF(e),a.event(e).end()}}function ee(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=SM(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);KF(r),s>0?bM(this).transition().duration(s).call(x,d,c,r):bM(this).call(_.transform,d,c,r)}}function E(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(GF(t),s=0;s<i;++s)c=r[s],l=SM(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),OP(this),a.start())}}function D(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(KF(e),s=0;s<a;++s)c=i[s],l=SM(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function O(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(GF(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=SM(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=bM(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:BF(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:BF(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:BF(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:BF([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}function eI(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return tI(this.cover(t,n),t,n,e)}function tI(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a=e._root,o={data:r},s=e._x0,c=e._y0,l=e._x1,u=e._y1,d,f,p,m,h,g,_,v;if(!a)return e._root=o,e;for(;a.length;)if((h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f,i=a,!(a=a[_=g<<1|h]))return i[_]=o,e;if(p=+e._x.call(null,a.data),m=+e._y.call(null,a.data),t===p&&n===m)return o.next=a,i?i[_]=o:e._root=o,e;do i=i?i[_]=[,,,,]:e._root=[,,,,],(h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f;while((_=g<<1|h)==(v=(m>=f)<<1|p>=d));return i[v]=a,i[_]=o,e}function nI(e){var t,n,r=e.length,i,a,o=Array(r),s=Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(o[n]=i,s[n]=a,i<c&&(c=i),i>u&&(u=i),a<l&&(l=a),a>d&&(d=a));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)tI(this,o[n],s[n],e[n]);return this}function rI(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{for(var o=i-n||1,s=this._root,c,l;n>e||e>=i||r>t||t>=a;)switch(l=(t<r)<<1|e<n,c=[,,,,],c[l]=s,s=c,o*=2,l){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o;break}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function iI(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function aI(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 oI(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function sI(e,t,n){var r,i=this._x0,a=this._y0,o,s,c,l,u=this._x1,d=this._y1,f=[],p=this._root,m,h;for(p&&f.push(new oI(p,i,a,u,d)),n==null?n=1/0:(i=e-n,a=t-n,u=e+n,d=t+n,n*=n);m=f.pop();)if(!(!(p=m.node)||(o=m.x0)>u||(s=m.y0)>d||(c=m.x1)<i||(l=m.y1)<a))if(p.length){var g=(o+c)/2,_=(s+l)/2;f.push(new oI(p[3],g,_,c,l),new oI(p[2],o,_,g,l),new oI(p[1],g,s,c,_),new oI(p[0],o,s,g,_)),(h=(t>=_)<<1|e>=g)&&(m=f[f.length-1],f[f.length-1]=f[f.length-1-h],f[f.length-1-h]=m)}else{var v=e-+this._x.call(null,p.data),y=t-+this._y.call(null,p.data),b=v*v+y*y;if(b<n){var x=Math.sqrt(n=b);i=e-x,a=t-x,u=e+x,d=t+x,r=p.data}}return r}function cI(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,c=this._x1,l=this._y1,u,d,f,p,m,h,g,_;if(!n)return this;if(n.length)for(;;){if((m=u>=(f=(o+c)/2))?o=f:c=f,(h=d>=(p=(s+l)/2))?s=p:l=p,t=n,!(n=n[g=h<<1|m]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,_=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[g]=a:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[_]=n:this._root=n),this):(this._root=a,this)}function lI(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function uI(){return this._root}function dI(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function fI(e){var t=[],n,r=this._root,i,a,o,s,c;for(r&&t.push(new oI(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.x1,c=n.y1)&&r.length){var l=(a+s)/2,u=(o+c)/2;(i=r[3])&&t.push(new oI(i,l,u,s,c)),(i=r[2])&&t.push(new oI(i,a,u,l,c)),(i=r[1])&&t.push(new oI(i,l,o,s,u)),(i=r[0])&&t.push(new oI(i,a,o,l,u))}return this}function pI(e){var t=[],n=[],r;for(this._root&&t.push(new oI(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,c=r.x1,l=r.y1,u=(o+c)/2,d=(s+l)/2;(a=i[0])&&t.push(new oI(a,o,s,u,d)),(a=i[1])&&t.push(new oI(a,u,s,c,d)),(a=i[2])&&t.push(new oI(a,o,d,u,l)),(a=i[3])&&t.push(new oI(a,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function mI(e){return e[0]}function hI(e){return arguments.length?(this._x=e,this):this._x}function gI(e){return e[1]}function _I(e){return arguments.length?(this._y=e,this):this._y}function vI(e,t,n){var r=new yI(t??mI,n??gI,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function yI(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function bI(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var xI=vI.prototype=yI.prototype;xI.copy=function(){var e=new yI(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=bI(t),e;for(n=[{source:t,target:e._root=[,,,,]}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=[,,,,]}):t.target[i]=bI(r));return e},xI.add=eI,xI.addAll=nI,xI.cover=rI,xI.data=iI,xI.extent=aI,xI.find=sI,xI.remove=cI,xI.removeAll=lI,xI.root=uI,xI.size=dI,xI.visit=fI,xI.visitAfter=pI,xI.x=hI,xI.y=_I;function SI(e){return function(){return e}}function CI(e){return(e()-.5)*1e-6}function wI(e){return e.x+e.vx}function TI(e){return e.y+e.vy}function EI(e){var t,n,r,i=1,a=1;typeof e!=`function`&&(e=SI(e==null?1:+e));function o(){for(var e,o=t.length,c,l,u,d,f,p,m=0;m<a;++m)for(c=vI(t,wI,TI).visitAfter(s),e=0;e<o;++e)l=t[e],f=n[l.index],p=f*f,u=l.x+l.vx,d=l.y+l.vy,c.visit(h);function h(e,t,n,a,o){var s=e.data,c=e.r,m=f+c;if(s){if(s.index>l.index){var h=u-s.x-s.vx,g=d-s.y-s.vy,_=h*h+g*g;_<m*m&&(h===0&&(h=CI(r),_+=h*h),g===0&&(g=CI(r),_+=g*g),_=(m-(_=Math.sqrt(_)))/_*i,l.vx+=(h*=_)*(m=(c*=c)/(p+c)),l.vy+=(g*=_)*m,s.vx-=h*(m=1-m),s.vy-=g*m)}return}return t>u+m||a<u-m||n>d+m||o<d-m}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function c(){if(t){var r,i=t.length,a;for(n=Array(i),r=0;r<i;++r)a=t[r],n[a.index]=+e(a,r,t)}}return o.initialize=function(e,n){t=e,r=n,c()},o.iterations=function(e){return arguments.length?(a=+e,o):a},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e=typeof t==`function`?t:SI(+t),c(),o):e},o}function DI(e){return e.index}function OI(e,t){var n=e.get(t);if(!n)throw Error(`node not found: `+t);return n}function kI(e){var t=DI,n=d,r,i=SI(30),a,o,s,c,l,u=1;e??=[];function d(e){return 1/Math.min(s[e.source.index],s[e.target.index])}function f(t){for(var n=0,i=e.length;n<u;++n)for(var o=0,s,d,f,p,m,h,g;o<i;++o)s=e[o],d=s.source,f=s.target,p=f.x+f.vx-d.x-d.vx||CI(l),m=f.y+f.vy-d.y-d.vy||CI(l),h=Math.sqrt(p*p+m*m),h=(h-a[o])/h*t*r[o],p*=h,m*=h,f.vx-=p*(g=c[o]),f.vy-=m*g,d.vx+=p*(g=1-g),d.vy+=m*g}function p(){if(o){var n,i=o.length,l=e.length,u=new Map(o.map((e,n)=>[t(e,n,o),e])),d;for(n=0,s=Array(i);n<l;++n)d=e[n],d.index=n,typeof d.source!=`object`&&(d.source=OI(u,d.source)),typeof d.target!=`object`&&(d.target=OI(u,d.target)),s[d.source.index]=(s[d.source.index]||0)+1,s[d.target.index]=(s[d.target.index]||0)+1;for(n=0,c=Array(l);n<l;++n)d=e[n],c[n]=s[d.source.index]/(s[d.source.index]+s[d.target.index]);r=Array(l),m(),a=Array(l),h()}}function m(){if(o)for(var t=0,i=e.length;t<i;++t)r[t]=+n(e[t],t,e)}function h(){if(o)for(var t=0,n=e.length;t<n;++t)a[t]=+i(e[t],t,e)}return f.initialize=function(e,t){o=e,l=t,p()},f.links=function(t){return arguments.length?(e=t,p(),f):e},f.id=function(e){return arguments.length?(t=e,f):t},f.iterations=function(e){return arguments.length?(u=+e,f):u},f.strength=function(e){return arguments.length?(n=typeof e==`function`?e:SI(+e),m(),f):n},f.distance=function(e){return arguments.length?(i=typeof e==`function`?e:SI(+e),h(),f):i},f}var AI=1664525,jI=1013904223,MI=4294967296;function NI(){let e=1;return()=>(e=(AI*e+jI)%MI)/MI}function PI(e){return e.x}function FI(e){return e.y}var II=10,LI=Math.PI*(3-Math.sqrt(5));function RI(e){var t,n=1,r=.001,i=1-r**(1/300),a=0,o=.6,s=new Map,c=mP(d),l=TM(`tick`,`end`),u=NI();e??=[];function d(){f(),l.call(`tick`,t),n<r&&(c.stop(),l.call(`end`,t))}function f(r){var c,l=e.length,u;r===void 0&&(r=1);for(var d=0;d<r;++d)for(n+=(a-n)*i,s.forEach(function(e){e(n)}),c=0;c<l;++c)u=e[c],u.fx==null?u.x+=u.vx*=o:(u.x=u.fx,u.vx=0),u.fy==null?u.y+=u.vy*=o:(u.y=u.fy,u.vy=0);return t}function p(){for(var t=0,n=e.length,r;t<n;++t){if(r=e[t],r.index=t,r.fx!=null&&(r.x=r.fx),r.fy!=null&&(r.y=r.fy),isNaN(r.x)||isNaN(r.y)){var i=II*Math.sqrt(.5+t),a=t*LI;r.x=i*Math.cos(a),r.y=i*Math.sin(a)}(isNaN(r.vx)||isNaN(r.vy))&&(r.vx=r.vy=0)}}function m(t){return t.initialize&&t.initialize(e,u),t}return p(),t={tick:f,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),s.forEach(m),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(a=+e,t):a},velocityDecay:function(e){return arguments.length?(o=1-e,t):1-o},randomSource:function(e){return arguments.length?(u=e,s.forEach(m),t):u},force:function(e,n){return arguments.length>1?(n==null?s.delete(e):s.set(e,m(n)),t):s.get(e)},find:function(t,n,r){var i=0,a=e.length,o,s,c,l,u;for(r==null?r=1/0:r*=r,i=0;i<a;++i)l=e[i],o=t-l.x,s=n-l.y,c=o*o+s*s,c<r&&(u=l,r=c);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}}function zI(){var e,t,n,r,i=SI(-30),a,o=1,s=1/0,c=.81;function l(n){var i,a=e.length,o=vI(e,PI,FI).visitAfter(d);for(r=n,i=0;i<a;++i)t=e[i],o.visit(f)}function u(){if(e){var t,n=e.length,r;for(a=Array(n),t=0;t<n;++t)r=e[t],a[r.index]=+i(r,t,e)}}function d(e){var t=0,n,r,i=0,o,s,c;if(e.length){for(o=s=c=0;c<4;++c)(n=e[c])&&(r=Math.abs(n.value))&&(t+=n.value,i+=r,o+=r*n.x,s+=r*n.y);e.x=o/i,e.y=s/i}else{n=e,n.x=n.data.x,n.y=n.data.y;do t+=a[n.data.index];while(n=n.next)}e.value=t}function f(e,i,l,u){if(!e.value)return!0;var d=e.x-t.x,f=e.y-t.y,p=u-i,m=d*d+f*f;if(p*p/c<m)return m<s&&(d===0&&(d=CI(n),m+=d*d),f===0&&(f=CI(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)),t.vx+=d*e.value*r/m,t.vy+=f*e.value*r/m),!0;if(!(e.length||m>=s)){(e.data!==t||e.next)&&(d===0&&(d=CI(n),m+=d*d),f===0&&(f=CI(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)));do e.data!==t&&(p=a[e.data.index]*r/m,t.vx+=d*p,t.vy+=f*p);while(e=e.next)}}return l.initialize=function(t,r){e=t,n=r,u()},l.strength=function(e){return arguments.length?(i=typeof e==`function`?e:SI(+e),u(),l):i},l.distanceMin=function(e){return arguments.length?(o=e*e,l):Math.sqrt(o)},l.distanceMax=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l.theta=function(e){return arguments.length?(c=e*e,l):Math.sqrt(c)},l}function BI(e){var t=SI(.1),n,r,i;typeof e!=`function`&&(e=SI(e==null?0:+e));function a(e){for(var t=0,a=n.length,o;t<a;++t)o=n[t],o.vx+=(i[t]-o.x)*r[t]*e}function o(){if(n){var a,o=n.length;for(r=Array(o),i=Array(o),a=0;a<o;++a)r[a]=isNaN(i[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return a.initialize=function(e){n=e,o()},a.strength=function(e){return arguments.length?(t=typeof e==`function`?e:SI(+e),o(),a):t},a.x=function(t){return arguments.length?(e=typeof t==`function`?t:SI(+t),o(),a):e},a}function VI(e){var t=SI(.1),n,r,i;typeof e!=`function`&&(e=SI(e==null?0:+e));function a(e){for(var t=0,a=n.length,o;t<a;++t)o=n[t],o.vy+=(i[t]-o.y)*r[t]*e}function o(){if(n){var a,o=n.length;for(r=Array(o),i=Array(o),a=0;a<o;++a)r[a]=isNaN(i[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return a.initialize=function(e){n=e,o()},a.strength=function(e){return arguments.length?(t=typeof e==`function`?e:SI(+e),o(),a):t},a.y=function(t){return arguments.length?(e=typeof t==`function`?t:SI(+t),o(),a):e},a}function HI(){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 UI(){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 WI(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function GI(e){e.preventDefault(),e.stopPropagation()}function KI(e){return typeof e==`number`}function qI(e,t){return KI(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function JI(e){return`${e.source.id}-${e.target.id}`}function YI(e){return`link-arrow-${e}`.replace(/[()]/g,`~`)}function XI(e){return`url(#${YI(e.color)})`}function ZI(e){return{size:e,padding:(t,n)=>qI(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(`,`)}}var QI={Arrow:e=>ZI(e)},$I=(e,t,n)=>[t/2,n/2],eL=(e,t,n)=>[tL(0,t),tL(0,n)];function tL(e,t){return Math.random()*(t-e)+e}function nL(e){let t=Object.fromEntries(e.nodes.map(e=>[e.id,[e.x,e.y]]));return(e,n,r)=>{let[i,a]=t[e.id]??[];return!i||!a?eL(e,n,r):[i,a]}}var rL={Centered:$I,Randomized:eL,Stable:nL};function iL(){return{autoResize:!1,callbacks:{},hooks:{},initial:WI(),nodeRadius:16,marker:QI.Arrow(4),modifiers:{},positionInitializer:rL.Centered,simulation:{alphas:HI(),forces:UI()},zoom:{initial:1,min:.1,max:2}}}function aL(e={}){return(0,bA.default)(iL(),e,{arrayMerge:(e,t)=>t})}function oL({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:r,onPointerUp:i,offset:[a,o],scale:s,zoom:c}){let l=t.classed(`graph`,!0).append(`svg`).attr(`height`,`100%`).attr(`width`,`100%`).call(c).on(`contextmenu`,e=>GI(e)).on(`dblclick`,e=>n?.(e)).on(`dblclick.zoom`,null).on(`pointermove`,e=>r?.(e)).on(`pointerup`,e=>i?.(e)).style(`cursor`,`grab`);return e&&l.call(c.transform,UF.translate(a,o).scale(s)),l.append(`g`)}function sL({canvas:e,scale:t,xOffset:n,yOffset:r}){e?.attr(`transform`,`translate(${n},${r})scale(${t})`)}function cL({config:e,onDragStart:t,onDragEnd:n}){let r=HM().filter(e=>e.type===`mousedown`?e.button===0:e.type===`touchstart`?e.touches.length===1:!1).on(`start`,(e,n)=>{e.active===0&&t(e,n),bM(e.sourceEvent.target).classed(`grabbed`,!0),n.fx=n.x,n.fy=n.y}).on(`drag`,(e,t)=>{t.fx=e.x,t.fy=e.y}).on(`end`,(e,t)=>{e.active===0&&n(e,t),bM(e.sourceEvent.target).classed(`grabbed`,!1),t.fx=void 0,t.fy=void 0});return e.modifiers.drag?.(r),r}function lL({graph:e,filter:t,focusedNode:n,includeUnlinked:r,linkFilter:i}){let a=e.links.filter(e=>t.includes(e.source.type)&&t.includes(e.target.type)&&i(e)),o=e=>a.find(t=>t.source.id===e.id||t.target.id===e.id)!==void 0,s=e.nodes.filter(e=>t.includes(e.type)&&(r||o(e)));return n===void 0||!t.includes(n.type)?{nodes:s,links:a}:uL({nodes:s,links:a},n)}function uL(e,t){let n=[...dL(e,t),...fL(e,t)],r=n.flatMap(e=>[e.source,e.target]);return{nodes:[...new Set([...r,t])],links:[...new Set(n)]}}function dL(e,t){return pL(e,t,(e,t)=>e.target.id===t.id)}function fL(e,t){return pL(e,t,(e,t)=>e.source.id===t.id)}function pL(e,t,n){let r=new Set(e.links),i=new Set([t]),a=[];for(;r.size>0;){let e=[...r].filter(e=>[...i].some(t=>n(e,t)));if(e.length===0)return a;e.forEach(e=>{i.add(e.source),i.add(e.target),a.push(e),r.delete(e)})}return a}function mL(e){return e.x??0}function hL(e){return e.y??0}function gL({source:e,target:t}){let n=new CM(mL(e),hL(e)),r=new CM(mL(t),hL(t)),i=r.subtract(n),a=i.length(),o=i.normalize();return{s:n,t:r,dist:a,norm:o,endNorm:o.multiply(-1)}}function _L({center:e,node:t}){let n=new CM(mL(t),hL(t)),r=e;return n.x===r.x&&n.y===r.y&&(r=r.add(new CM(0,1))),{n,c:r}}function vL({config:e,source:t,target:n}){let{s:r,t:i,norm:a}=gL({config:e,source:t,target:n});return{start:r.add(a.multiply(qI(e,t)-1)),end:i.subtract(a.multiply(e.marker.padding(n,e)))}}function yL(e){let{start:t,end:n}=vL(e);return`M${t.x},${t.y}
44
+ L${n.x},${n.y}`}function bL(e){let{start:t,end:n}=vL(e),r=n.subtract(t).multiply(.5),i=t.add(r);return`translate(${i.x-8},${i.y-4})`}function xL({config:e,source:t,target:n}){let{s:r,t:i,dist:a,norm:o,endNorm:s}=gL({config:e,source:t,target:n}),c=o.rotateByDegrees(-10).multiply(qI(e,t)-1).add(r),l=s.rotateByDegrees(10).multiply(qI(e,n)).add(i).add(s.rotateByDegrees(10).multiply(2*e.marker.size)),u=1.2*a;return`M${c.x},${c.y}
45
+ A${u},${u},0,0,1,${l.x},${l.y}`}function SL({center:e,config:t,node:n}){let{n:r,c:i}=_L({center:e,config:t,node:n}),a=qI(t,n),o=r.subtract(i),s=o.multiply(1/o.length()),c=s.rotateByDegrees(40).multiply(a-1).add(r),l=s.rotateByDegrees(-40).multiply(a).add(r).add(s.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${c.x},${c.y}
46
+ A${a},${a},0,1,0,${l.x},${l.y}`}function CL({config:e,source:t,target:n}){let{t:r,dist:i,endNorm:a}=gL({config:e,source:t,target:n}),o=a.rotateByDegrees(10).multiply(.5*i).add(r);return`translate(${o.x},${o.y})`}function wL({center:e,config:t,node:n}){let{n:r,c:i}=_L({center:e,config:t,node:n}),a=r.subtract(i),o=a.multiply(1/a.length()).multiply(3*qI(t,n)+8).add(r);return`translate(${o.x},${o.y})`}var TL={line:{labelTransform:bL,path:yL},arc:{labelTransform:CL,path:xL},reflexive:{labelTransform:wL,path:SL}};function EL(e){return e.append(`g`).classed(`links`,!0).selectAll(`path`)}function DL({config:e,graph:t,selection:n,showLabels:r}){let i=n?.data(t.links,e=>JI(e)).join(t=>{let n=t.append(`g`),r=n.append(`path`).classed(`link`,!0).style(`marker-end`,e=>XI(e)).style(`stroke`,e=>e.color);e.modifiers.link?.(r);let i=n.append(`text`).classed(`link__label`,!0).style(`fill`,e=>e.label?e.label.color:null).style(`font-size`,e=>e.label?e.label.fontSize:null).text(e=>e.label?e.label.text:null);return e.modifiers.linkLabel?.(i),n});return i?.select(`.link__label`).attr(`opacity`,e=>e.label&&r?1:0),i}function OL(e){kL(e),AL(e)}function kL({center:e,config:t,graph:n,selection:r}){r?.selectAll(`path`).attr(`d`,r=>r.source.x===void 0||r.source.y===void 0||r.target.x===void 0||r.target.y===void 0?``:r.source.id===r.target.id?TL.reflexive.path({config:t,node:r.source,center:e}):jL(n,r.source,r.target)?TL.arc.path({config:t,source:r.source,target:r.target}):TL.line.path({config:t,source:r.source,target:r.target}))}function AL({config:e,center:t,graph:n,selection:r}){r?.select(`.link__label`).attr(`transform`,r=>r.source.x===void 0||r.source.y===void 0||r.target.x===void 0||r.target.y===void 0?`translate(0, 0)`:r.source.id===r.target.id?TL.reflexive.labelTransform({config:e,node:r.source,center:t}):jL(n,r.source,r.target)?TL.arc.labelTransform({config:e,source:r.source,target:r.target}):TL.line.labelTransform({config:e,source:r.source,target:r.target}))}function jL(e,t,n){return t.id!==n.id&&e.links.some(e=>e.target.id===t.id&&e.source.id===n.id)&&e.links.some(e=>e.target.id===n.id&&e.source.id===t.id)}function ML(e){return e.append(`defs`).selectAll(`marker`)}function NL({config:e,graph:t,selection:n}){return n?.data(PL(t),e=>e).join(t=>{let n=t.append(`marker`).attr(`id`,e=>YI(e)).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`,e=>e);return n.append(`path`).attr(`d`,FL(e.marker.path)),n})}function PL(e){return[...new Set(e.links.map(e=>e.color))]}function FL(e){let[t,...n]=e;if(!t)return`M0,0`;let[r,i]=t;return n.reduce((e,[t,n])=>`${e}L${t},${n}`,`M${r},${i}`)}function IL(e){return e.append(`g`).classed(`nodes`,!0).selectAll(`circle`)}function LL({config:e,drag:t,graph:n,onNodeContext:r,onNodeSelected:i,selection:a,showLabels:o}){let s=a?.data(n.nodes,e=>e.id).join(n=>{let a=n.append(`g`);t!==void 0&&a.call(t);let o=a.append(`circle`).classed(`node`,!0).attr(`r`,t=>qI(e,t)).on(`contextmenu`,(e,t)=>{GI(e),r(t)}).on(`pointerdown`,(e,t)=>zL(e,t,i??r)).style(`fill`,e=>e.color);e.modifiers.node?.(o);let s=a.append(`text`).classed(`node__label`,!0).attr(`dy`,`0.33em`).style(`fill`,e=>e.label?e.label.color:null).style(`font-size`,e=>e.label?e.label.fontSize:null).style(`stroke`,`none`).text(e=>e.label?e.label.text:null);return e.modifiers.nodeLabel?.(s),a});return s?.select(`.node`).classed(`focused`,e=>e.isFocused),s?.select(`.node__label`).attr(`opacity`,+!!o),s}var RL=500;function zL(e,t,n){if(e.button!==void 0&&e.button!==0)return;let r=t.lastInteractionTimestamp,i=Date.now();if(r===void 0||i-r>RL){t.lastInteractionTimestamp=i;return}t.lastInteractionTimestamp=void 0,n(t)}function BL(e){e?.attr(`transform`,e=>`translate(${e.x??0},${e.y??0})`)}function VL({center:e,config:t,graph:n,onTick:r}){let i=RI(n.nodes),a=t.simulation.forces.centering;if(a&&a.enabled){let t=a.strength;i.force(`x`,BI(()=>e().x).strength(t)).force(`y`,VI(()=>e().y).strength(t))}let o=t.simulation.forces.charge;o&&o.enabled&&i.force(`charge`,zI().strength(o.strength));let s=t.simulation.forces.collision;s&&s.enabled&&i.force(`collision`,EI().radius(e=>s.radiusMultiplier*qI(t,e)));let c=t.simulation.forces.link;return c&&c.enabled&&i.force(`link`,kI(n.links).id(e=>e.id).distance(t.simulation.forces.link.length).strength(c.strength)),i.on(`tick`,()=>r()),t.modifiers.simulation?.(i),i}function HL({canvasContainer:e,config:t,min:n,max:r,onZoom:i}){let a=$F().scaleExtent([n,r]).filter(e=>e.button===0||e.touches?.length>=2).on(`start`,()=>e().classed(`grabbed`,!0)).on(`zoom`,e=>i(e)).on(`end`,()=>e().classed(`grabbed`,!1));return t.modifiers.zoom?.(a),a}var UL=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,n){if(this.container=e,this.graph=t,this.config=n,this.scale=n.zoom.initial,this.resetView(),this.graph.nodes.forEach(e=>{let[t,r]=n.positionInitializer(e,this.effectiveWidth,this.effectiveHeight);e.x=e.x??t,e.y=e.y??r}),this.nodeTypes=[...new Set(t.nodes.map(e=>e.type))],this._nodeTypeFilter=[...this.nodeTypes],n.initial){let{includeUnlinked:e,nodeTypeFilter:t,linkFilter:r,showLinkLabels:i,showNodeLabels:a}=n.initial;this._includeUnlinked=e??this._includeUnlinked,this._showLinkLabels=i??this._showLinkLabels,this._showNodeLabels=a??this._showNodeLabels,this._nodeTypeFilter=t??this._nodeTypeFilter,this._linkFilter=r??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(n.simulation.alphas.initialize),n.autoResize&&(this.resizeObserver=new ResizeObserver(xA(()=>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);let{include:t,exclude:n}=this.config.simulation.alphas.filter.unlinked,r=e?t:n;this.restart(r)}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;let{hide:t,show:n}=this.config.simulation.alphas.labels.nodes,r=e?n:t;this.restart(r)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;let{hide:t,show:n}=this.config.simulation.alphas.labels.links,r=e?n:t;this.restart(r)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return CM.of([this.width,this.height]).divide(2).subtract(CM.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){let e=this.width,t=this.height,n=this.container.getBoundingClientRect().width,r=this.container.getBoundingClientRect().height,i=e.toFixed()!==n.toFixed(),a=t.toFixed()!==r.toFixed();if(!i&&!a)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;let o=this.config.simulation.alphas.resize;this.restart(KI(o)?o:o({oldWidth:e,oldHeight:t,newWidth:n,newHeight:r}))}restart(e){this.markerSelection=NL({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=DL({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=LL({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:e=>this.toggleNodeFocus(e),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=VL({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(e=>e!==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=HL({config:this.config,canvasContainer:()=>bM(this.container).select(`svg`),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=oL({applyZoom:this.scale!==1,container:bM(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=EL(this.canvas),this.nodeSelection=IL(this.canvas),this.markerSelection=ML(this.canvas),this.drag=cL({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(){BL(this.nodeSelection),OL({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),bM(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(){sL({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=lL({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function WL({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function GL(e){return{...e}}function KL(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function qL(e){let t=e.map(e=>Gb(e)),n=Wb(t);return t.map(({raw:e,id:t,splitsCopy:r})=>KL({color:`var(--color-node-external)`,label:{color:`var(--color-node-external)`,fontSize:`0.875rem`,text:t.includes(`node_modules`)?n.get(e)??e:r[r.length-1]},isFocused:!1,id:t,type:`external`}))}function JL(e,t){return KL({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 YL(e,t){if(!e)return WL({});let n=ok.value.experimental?.viteModuleRunner?qL(e.externalized):qL([...e.inlined,...e.externalized]),r=ok.value.experimental?.viteModuleRunner?e.inlined.map(e=>JL(e,e===t))??[]:[],i=[...n,...r],a=Object.fromEntries(i.map(e=>[e.id,e]));return WL({nodes:i,links:Object.entries(e.graph).flatMap(([e,t])=>t.map(t=>{let n=a[e],r=a[t];if(!(n===void 0||r===void 0))return GL({source:n,target:r,color:`var(--color-link)`,label:!1})}).filter(e=>e!==void 0))})}var XL={key:0,"text-green-700":``,"dark:text-green-500":``,"flex-shrink-0":``,"i-carbon:checkmark":``},ZL={key:1,"text-red-700":``,"dark:text-red-500":``,"flex-shrink-0":``,"i-carbon:compare":``},QL={key:2,"text-red-700":``,"dark:text-red-500":``,"flex-shrink-0":``,"i-carbon:close":``},$L={key:3,"text-gray-500":``,"flex-shrink-0":``,"i-carbon:document-blank":``},eR={key:4,"text-gray-500":``,"flex-shrink-0":``,"i-carbon:redo":``,"rotate-90":``},tR={key:5,"text-yellow-700":``,"dark:text-yellow-500":``,"flex-shrink-0":``,"i-carbon:circle-dash":``,"animate-spin":``},nR=H({__name:`StatusIcon`,props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{let r=ii(`tooltip`);return e.state===`pass`?(W(),G(`div`,XL)):e.failedSnapshot?Qn((W(),G(`div`,ZL,null,512)),[[r,`Contains failed snapshot`,void 0,{right:!0}]]):e.state===`fail`?(W(),G(`div`,QL)):e.mode===`todo`?Qn((W(),G(`div`,$L,null,512)),[[r,`Todo`,void 0,{right:!0}]]):e.mode===`skip`||e.state===`skip`?Qn((W(),G(`div`,eR,null,512)),[[r,`Skipped`,void 0,{right:!0}]]):(W(),G(`div`,tR))}}});function rR(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}var iR={border:`b base`,"p-4":``},aR=[`innerHTML`],oR=H({__name:`ViewConsoleOutputEntry`,props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(e){return new Date(e).toLocaleTimeString()}return(n,r)=>(W(),G(`div`,iR,[q(`div`,{"text-xs":``,"mb-1":``,class:P(e.type===`stderr`?`text-red-600 dark:text-red-300`:`op30`)},F(t(e.time))+` | `+F(e.taskName)+` | `+F(e.type),3),q(`pre`,{"data-type":`html`,innerHTML:e.content},null,8,aR)]))}}),sR={key:0,"h-full":``,class:`scrolls`,flex:``,"flex-col":``,"data-testid":`logs`},cR={key:1,p6:``},lR=H({__name:`ViewConsoleOutput`,setup(e){let t=Z(()=>{let e=uk.value;if(e){let t=XE(Rb.value);return e.map(({taskId:e,type:n,time:r,content:i})=>({taskId:e,type:n,time:r,content:t.toHtml(rR(i))}))}});function n(e){let t=e&&ak.state.idMap.get(e);return t&&`filepath`in t?t.name:(t?Jy(t).slice(1).join(` > `):`-`)||`-`}return(e,r)=>t.value?.length?(W(),G(`div`,sR,[(W(!0),G(U,null,si(t.value,({taskId:e,type:t,time:r,content:i})=>(W(),G(`div`,{key:e,"font-mono":``},[J(oR,{"task-name":n(e),type:t,time:r,content:i},null,8,[`task-name`,`type`,`time`,`content`])]))),128))])):(W(),G(`div`,cR,[...r[0]||=[Y(` Log something in your test and it would print here. (e.g. `,-1),q(`pre`,{inline:``},`console.log(foo)`,-1),Y(`) `,-1)]]))}}),uR={"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(uR);var dR=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},fR,pR,mR,hR=class{constructor(...e){fR.set(this,new Map),pR.set(this,new Map),mR.set(this,new Map);for(let t of e)this.define(t)}define(e,t=!1){for(let[n,r]of Object.entries(e)){n=n.toLowerCase(),r=r.map(e=>e.toLowerCase()),dR(this,mR,`f`).has(n)||dR(this,mR,`f`).set(n,new Set);let e=dR(this,mR,`f`).get(n),i=!0;for(let a of r){let r=a.startsWith(`*`);if(a=r?a.slice(1):a,e?.add(a),i&&dR(this,pR,`f`).set(n,a),i=!1,r)continue;let o=dR(this,fR,`f`).get(a);if(o&&o!=n&&!t)throw Error(`"${n} -> ${a}" conflicts with "${o} -> ${a}". Pass \`force=true\` to override this definition.`);dR(this,fR,`f`).set(a,n)}}return this}getType(e){if(typeof e!=`string`)return null;let t=e.replace(/^.*[/\\]/s,``).toLowerCase(),n=t.replace(/^.*\./s,``).toLowerCase(),r=t.length<e.length;return!(n.length<t.length-1)&&r?null:dR(this,fR,`f`).get(n)??null}getExtension(e){return typeof e==`string`?(e=e?.split?.(`;`)[0],(e&&dR(this,pR,`f`).get(e.trim().toLowerCase()))??null):null}getAllExtensions(e){return typeof e==`string`?dR(this,mR,`f`).get(e.toLowerCase())??null:null}_freeze(){this.define=()=>{throw 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(let e of dR(this,mR,`f`).values())Object.freeze(e);return this}_getTestState(){return{types:dR(this,fR,`f`),extensions:dR(this,pR,`f`)}}};fR=new WeakMap,pR=new WeakMap,mR=new WeakMap;var gR=new hR(uR)._freeze();function _R(e){let t=e.contentType??`application/octet-stream`;return e.path?WD?`./data/${jv(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:e.bodyEncoding===`utf-8`?`data:${t},${encodeURIComponent(e.body)}`:`data:${t};base64,${e.body}`}function vR(e,t){let n=t?gR.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,`-`)+(n?`.${n}`:``)}function yR(e){let t=e.path||e.body;return typeof t==`string`&&(t.startsWith(`http://`)||t.startsWith(`https://`))}function bR(e){let t=e.path||e.body;return typeof t==`string`&&(t.startsWith(`http://`)||t.startsWith(`https://`))?t:_R(e)}var xR=H({__name:`CodeMirrorContainer`,props:bi({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:bi([`save`,`codemirror`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,r=Bi(e,`modelValue`),i=_i(),a={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:`text/jsx`},tsx:{name:`text/typescript-jsx`}},o=z();return Wr(async()=>{let t=pD(o,r,{...i,mode:a[e.mode||``]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(e){e.getOption(`readOnly`)||n(`save`,e.getValue())},"Ctrl-S":function(e){e.getOption(`readOnly`)||n(`save`,e.getValue())}}});t.on(`refresh`,()=>{n(`codemirror`,t)}),t.on(`change`,()=>{n(`codemirror`,t)}),t.setSize(`100%`,`100%`),t.clearHistory(),fD.value=t,setTimeout(()=>fD.value?.refresh(),100)}),(t,n)=>(W(),G(`div`,{relative:``,"font-mono":``,"text-sm":``,class:P([`codemirror-scrolls`,e.saving?`codemirror-busy`:void 0])},[q(`textarea`,{ref_key:`el`,ref:o},null,512)],2))}}),SR=H({__name:`ViewEditor`,props:{file:{}},emits:[`draft`],setup(e,{emit:t}){let n=e,r=t,i=z(``),a=an(void 0),o=z(!1),s=z(!0),c=z(!1),l=z();sr(()=>n.file,async()=>{if(!c.value){s.value=!0;try{if(!n.file||!n.file?.filepath){i.value=``,a.value=i.value,o.value=!1,s.value=!1;return}i.value=await ak.rpc.readTestFile(n.file.filepath)||``,a.value=i.value,o.value=!1}catch(e){console.error(`cannot fetch file`,e)}await Ln(),s.value=!1}},{immediate:!0}),sr(()=>[s.value,c.value,n.file,nD.value,rD.value],([e,t,n,r,i])=>{!e&&!t&&Ln(r==null?()=>{fD.value?.focus()}:()=>{let e=l.value,t=e??{line:(r??1)-1,ch:i??0};e?l.value=void 0:(fD.value?.scrollIntoView(t,100),Ln(()=>{fD.value?.focus(),fD.value?.setCursor(t)}))})},{flush:`post`});let u=Z(()=>n.file?.filepath?.split(/\./g).pop()||`js`),d=z(),f=Z(()=>{let e=[];function t(n){n.result?.errors&&e.push(...n.result.errors),n.type===`suite`&&n.tasks.forEach(t)}return n.file?.tasks.forEach(t),e}),p=Z(()=>{let e=[];function t(n){n.type===`test`&&e.push(...n.annotations),n.type===`suite`&&n.tasks.forEach(t)}return n.file?.tasks.forEach(t),e}),m=[],h=[],g=[],_=z(!1);function v(){g.forEach(([e,t,n])=>{e.removeEventListener(`click`,t),n()}),g.length=0}Sm(d,()=>{fD.value?.refresh()});function y(){o.value=a.value!==fD.value.getValue()}sr(o,e=>{r(`draft`,e)},{immediate:!0});function b(e){let t=(e?.stacks||[]).filter(e=>e.file&&e.file===n.file?.filepath)?.[0];if(!t)return;let r=document.createElement(`div`);r.className=`op80 flex gap-x-2 items-center`;let i=document.createElement(`pre`);i.className=`c-red-700 dark:c-red-400`,i.textContent=`${` `.repeat(t.column)}^ ${e.name}: ${e?.message||``}`,r.appendChild(i);let a=document.createElement(`span`);a.className=`i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em`,a.tabIndex=0,a.ariaLabel=`Open in Editor`,qu(a,{content:`Open in Editor`,placement:`bottom`},!1);let o=async()=>{await YE(t.file,t.line,t.column)};a.addEventListener(`click`,o),r.appendChild(a),g.push([a,o,()=>Ju(a)]),h.push(fD.value.addLineClass(t.line-1,`wrap`,`bg-red-500/10`)),m.push(fD.value.addLineWidget(t.line-1,r))}function x(e){if(!e.location)return;let{line:t,file:r}=e.location;if(r!==n.file?.filepath)return;let i=document.createElement(`div`);i.classList.add(`wrap`,`bg-active`,`py-3`,`px-6`,`my-1`),i.role=`note`;let a=document.createElement(`div`);a.classList.add(`block`,`text-black`,`dark:text-white`);let o=document.createElement(`span`);o.textContent=`${e.type}: `,o.classList.add(`font-bold`);let s=document.createElement(`span`);s.classList.add(`whitespace-pre`),s.textContent=e.message.replace(/[^\r]\n/,`\r
47
+ `),a.append(o,s),i.append(a);let c=e.attachment;if(c?.path||c?.body)if(c.contentType?.startsWith(`image/`)){let e=document.createElement(`a`),t=document.createElement(`img`);e.classList.add(`inline-block`,`mt-3`),e.style.maxWidth=`50vw`;let n=c.path||c.body;typeof n==`string`&&(n.startsWith(`http://`)||n.startsWith(`https://`))?(t.setAttribute(`src`,n),e.referrerPolicy=`no-referrer`):t.setAttribute(`src`,_R(c)),e.target=`_blank`,e.href=t.src,e.append(t),i.append(e)}else{let t=document.createElement(`a`);t.href=_R(c),t.download=vR(e.message,c.contentType),t.classList.add(`flex`,`w-min`,`gap-2`,`items-center`,`font-sans`,`underline`,`cursor-pointer`);let n=document.createElement(`div`);n.classList.add(`i-carbon:download`,`block`);let r=document.createElement(`span`);r.textContent=`Download`,t.append(n,r),i.append(t)}m.push(fD.value.addLineWidget(t-1,i))}let{pause:S,resume:C}=sr([fD,f,p,Lx],([e,t,n,r])=>{if(!e){m.length=0,h.length=0,v();return}r&&(e.off(`changes`,y),v(),m.forEach(e=>e.clear()),h.forEach(t=>e?.removeLineClass(t,`wrap`)),m.length=0,h.length=0,setTimeout(()=>{t.forEach(b),n.forEach(x),_.value||e.clearHistory(),e.on(`changes`,y)},100))},{flush:`post`});Rp(()=>[Lx.value,c.value,l.value],([e,t],n)=>{e&&!t&&n&&n[2]&&fD.value?.setCursor(n[2])},{debounce:100,flush:`post`});async function w(e){if(c.value)return;S(),c.value=!0,await Ln();let t=fD.value;t&&(t.setOption(`readOnly`,!0),await Ln(),t.refresh()),l.value=t?.getCursor(),t?.off(`changes`,y),v(),m.forEach(e=>e.clear()),h.forEach(e=>t?.removeLineClass(e,`wrap`)),m.length=0,h.length=0;try{_.value=!0,await ak.rpc.saveTestFile(n.file.filepath,e),a.value=e,o.value=!1}catch(e){console.error(`error saving file`,e)}_.value||t?.clearHistory();try{await Ip(Lx).toBe(!1,{flush:`sync`,timeout:1e3,throwOnTimeout:!0}),await Ip(Lx).toBe(!0,{flush:`sync`,timeout:1e3,throwOnTimeout:!1})}catch{}f.value.forEach(b),p.value.forEach(x),t?.on(`changes`,y),c.value=!1,await Ln(),t&&(t.setOption(`readOnly`,!1),await Ln(),t.refresh()),C()}return qr(v),(e,t)=>(W(),K(xR,so({ref_key:`editor`,ref:d,modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,"h-full":``},{lineNumbers:!0,readOnly:B(WD)||!B(ok).api?.allowWrite,saving:c.value},{mode:u.value,"data-testid":`code-mirror`,onSave:w}),null,16,[`modelValue`,`mode`]))}}),CR=H({__name:`Modal`,props:bi({direction:{default:`bottom`}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Bi(e,`modelValue`),n=Z(()=>{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``}}),r=Z(()=>{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``}}),i=()=>t.value=!1;return(e,a)=>(W(),G(`div`,{class:P([`fixed inset-0 z-40`,t.value?``:`pointer-events-none`])},[q(`div`,{class:P([`bg-base inset-0 absolute transition-opacity duration-500 ease-out`,t.value?`opacity-50`:`opacity-0`]),onClick:i},null,2),q(`div`,{class:P([`bg-base border-base absolute transition-all duration-200 ease-out scrolls`,[n.value]]),style:ve(t.value?{}:{transform:r.value})},[li(e.$slots,`default`)],6)],2))}}),wR={class:`overflow-auto max-h-120`},TR={"my-2":``,"mx-4":``,"text-sm":``,"font-light":``,"op-90":``},ER=[`onClick`],DR=H({__name:`ModuleGraphImportBreakdown`,emits:[`select`],setup(e,{emit:t}){let n=t,r=Z(()=>{let e=_D.value?.importDurations,t=ok.value.root;if(!e||!t)return[];let n=[];for(let r in e){let a=e[r],o=a.external?Kb(r):Av(t,r);n.push({importedFile:r,relativeFile:i(o),selfTime:a.selfTime,totalTime:a.totalTime,formattedSelfTime:Hb(a.selfTime),formattedTotalTime:Hb(a.totalTime),selfTimeClass:Jb(a.selfTime),totalTimeClass:Jb(a.totalTime),external:a.external})}return n.sort((e,t)=>t.totalTime-e.totalTime)});function i(e){return e.length<=45?e:`...${e.slice(-45)}`}return(e,t)=>(W(),G(`div`,wR,[t[1]||=q(`h1`,{"my-2":``,"mx-4":``},[Y(` Import Duration Breakdown `),q(`span`,{"op-70":``},`(ordered by Total Time)`)],-1),q(`table`,TR,[t[0]||=q(`thead`,null,[q(`tr`,null,[q(`th`,null,` Module `),q(`th`,null,` Self `),q(`th`,null,` Total `),q(`th`,null,` % `)])],-1),q(`tbody`,null,[(W(!0),G(U,null,si(r.value,e=>(W(),G(`tr`,{key:e.importedFile},[q(`td`,{class:`cursor-pointer pr-2`,style:ve({color:e.external?`var(--color-node-external)`:void 0}),onClick:t=>n(`select`,e.importedFile,e.external?`external`:`inline`)},F(e.relativeFile),13,ER),q(`td`,{"pr-2":``,class:P(e.selfTimeClass)},F(e.formattedSelfTime),3),q(`td`,{"pr-2":``,class:P(e.totalTimeClass)},F(e.formattedTotalTime),3),q(`td`,{"pr-2":``,class:P(e.totalTimeClass)},F(Math.round(e.totalTime/r.value[0].totalTime*100))+`% `,3)]))),128))])])]))}}),OR=H({__name:`Badge`,props:{type:{default:`info`}},setup(e){return(t,n)=>(W(),G(`span`,{class:P([`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`}])},[li(t.$slots,`default`)],2))}}),kR={"w-350":``,"max-w-screen":``,"h-full":``,flex:``,"flex-col":``},AR={"p-4":``,relative:``},jR={flex:``,"justify-between":``},MR={"mr-8":``,flex:``,"gap-2":``,"items-center":``},NR={op50:``,"font-mono":``,"text-sm":``},PR={key:0,"p-5":``},FR={key:0,p:`x3 y-1`,"bg-overlay":``,border:`base b t`},IR={key:0},LR={p:`x3 y-1`,"bg-overlay":``,border:`base b t`},RR=H({__name:`ModuleTransformResultView`,props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:[`close`,`select`,`back`],setup(e,{emit:t}){let n=e,r=t,i=Wp(()=>{if(_D.value?.id){if(n.type===`inline`)return ak.rpc.getTransformResult(n.projectName,n.id,_D.value.id,!!yk);if(n.type===`external`)return ak.rpc.getExternalResult(n.id,_D.value.id)}}),a=Z(()=>{let e=_D.value?.importDurations||{};return e[n.id]||e[Tv(`/@fs/`,n.id)]||{}}),o=Z(()=>n.id?.split(/\./g).pop()||`js`),s=Z(()=>i.value?.source?.trim()||``),c=Z(()=>{if(!(!i.value||!(`code`in i.value)||!ok.value.experimental?.fsModuleCache))return i.value.code.lastIndexOf(`vitestCache=`)!==-1}),l=Z(()=>!i.value||!(`code`in i.value)?null:i.value.code.replace(/\/\/# sourceMappingURL=.*\n/,``).replace(/\/\/# sourceMappingSource=.*\n/,``).replace(/\/\/# vitestCache=.*\n?/,``).trim()||``),u=Z(()=>!i.value||!(`map`in i.value)?{mappings:``}:{mappings:i.value?.map?.mappings??``,version:i.value?.map?.version}),d=[],f=[],p=[];function m(e,t){let n=e.coordsChar({left:t.clientX,top:t.clientY}),i=e.findMarksAt(n);if(i.length!==1)return;let a=i[0].title;a&&r(`select`,a,i[0].attributes?.[`data-external`]===`true`?`external`:`inline`)}function h(e){let t=document.createElement(`div`);t.classList.add(`mb-5`);let n=ok.value.root;if(n)return e.forEach(({resolvedId:e,totalTime:i,external:a})=>{let o=document.createElement(`div`);o.append(document.createTextNode(`import `));let s=document.createElement(`span`);s.textContent=`"/${Av(n,e)}"`,s.className=`hover:underline decoration-gray cursor-pointer select-none`,o.append(s),s.addEventListener(`click`,()=>{r(`select`,e,a?`external`:`inline`)});let c=document.createElement(`span`);c.textContent=` ${Hb(i)}`;let l=Jb(i);l&&c.classList.add(l),o.append(c),t.append(o)}),t}function g(e){let t=document.createElement(`div`);t.className=`flex ml-2`,t.textContent=Hb(e);let n=Jb(e);return n&&t.classList.add(n),t}function _(e){if(p.forEach(e=>e.clear()),p.length=0,d.forEach(e=>e.remove()),d.length=0,f.forEach(e=>e.clear()),f.length=0,i.value&&`modules`in i.value){e.off(`mousedown`,m),e.on(`mousedown`,m);let t=i.value.untrackedModules;if(t?.length){let n=h(t);if(!n)return;d.push(n),p.push(e.addLineWidget(0,n,{above:!0}))}i.value.modules?.forEach(n=>{let r={line:n.start.line-1,ch:n.start.column},i={line:n.end.line-1,ch:n.end.column},a=e.markText(r,i,{title:n.resolvedId,attributes:{"data-external":String(n.external===!0)},className:`hover:underline decoration-red cursor-pointer select-none`});f.push(a);let o=g(n.totalTime+(n.transformTime||0));t?.length||o.classList.add(`-mt-5`),d.push(o),e.addWidget({line:n.end.line-1,ch:n.end.column+1},o,!1)})}}function v(){r(`back`)}return Zp(`Escape`,()=>{r(`close`)}),(t,n)=>{let d=ii(`tooltip`);return W(),G(`div`,kR,[q(`div`,AR,[q(`div`,jR,[q(`p`,null,[e.canUndo?Qn((W(),K(xk,{key:0,icon:`i-carbon-arrow-left`,class:`flex-inline`,onClick:n[0]||=e=>v()},null,512)),[[d,`Go Back`,void 0,{bottom:!0}]]):X(``,!0),n[7]||=Y(` Module Info `,-1),J(B(ad),{class:`inline`,"cursor-help":``},{popper:V(()=>[Y(` This is module is `+F(e.type===`external`?`externalized`:`inlined`)+`. `,1),e.type===`external`?(W(),G(U,{key:0},[Y(` It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. `)],64)):(W(),G(U,{key:1},[Y(` It means that the module was processed by Vite plugins. `)],64))]),default:V(()=>[J(OR,{type:`custom`,"ml-1":``,style:ve({backgroundColor:`var(--color-node-${e.type})`})},{default:V(()=>[Y(F(e.type),1)]),_:1},8,[`style`])]),_:1}),c.value===!0?(W(),K(B(ad),{key:1,class:`inline`,"cursor-help":``},{popper:V(()=>[...n[4]||=[Y(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)]]),default:V(()=>[J(OR,{type:`tip`,"ml-2":``},{default:V(()=>[...n[3]||=[Y(` cached `,-1)]]),_:1})]),_:1})):X(``,!0),c.value===!1?(W(),K(B(ad),{key:2,class:`inline`,"cursor-help":``},{popper:V(()=>[...n[6]||=[q(`p`,null,`This module is not cached on the file system. It might be the first test run after cache invalidation or`,-1),q(`p`,null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)]]),default:V(()=>[J(OR,{type:`warning`,"ml-2":``},{default:V(()=>[...n[5]||=[Y(` not cached `,-1)]]),_:1})]),_:1})):X(``,!0)]),q(`div`,MR,[a.value.selfTime!=null&&a.value.external!==!0?(W(),K(B(ad),{key:0,class:`inline`,"cursor-help":``},{popper:V(()=>[Y(` It took `+F(B(Ub)(a.value.selfTime))+` to import this module, excluding static imports. `,1)]),default:V(()=>[J(OR,{type:B(qb)(a.value.selfTime)},{default:V(()=>[Y(` self: `+F(B(Hb)(a.value.selfTime)),1)]),_:1},8,[`type`])]),_:1})):X(``,!0),a.value.totalTime==null?X(``,!0):(W(),K(B(ad),{key:1,class:`inline`,"cursor-help":``},{popper:V(()=>[Y(` It took `+F(B(Ub)(a.value.totalTime))+` to import the whole module, including static imports. `,1)]),default:V(()=>[J(OR,{type:B(qb)(a.value.totalTime)},{default:V(()=>[Y(` total: `+F(B(Hb)(a.value.totalTime)),1)]),_:1},8,[`type`])]),_:1})),B(i)&&`transformTime`in B(i)&&B(i).transformTime?(W(),K(B(ad),{key:2,class:`inline`,"cursor-help":``},{popper:V(()=>[Y(` It took `+F(B(Ub)(B(i).transformTime))+` to transform this module by Vite plugins. `,1)]),default:V(()=>[J(OR,{type:B(qb)(B(i).transformTime)},{default:V(()=>[Y(` transform: `+F(B(Hb)(B(i).transformTime)),1)]),_:1},8,[`type`])]),_:1})):X(``,!0)])]),q(`p`,NR,F(e.id),1),J(xk,{icon:`i-carbon-close`,absolute:``,"top-5px":``,"right-5px":``,"text-2xl":``,onClick:n[1]||=e=>r(`close`)})]),B(i)?(W(),G(U,{key:1},[q(`div`,{grid:`~ rows-[min-content_auto]`,"overflow-hidden":``,"flex-auto":``,class:P({"cols-2":l.value!=null})},[n[8]||=q(`div`,{p:`x3 y-1`,"bg-overlay":``,border:`base b t r`},` Source `,-1),l.value==null?X(``,!0):(W(),G(`div`,FR,` Transformed `)),(W(),K(xR,so({key:e.id,"h-full":``,"model-value":s.value,"read-only":``},{lineNumbers:!0},{mode:o.value,onCodemirror:n[2]||=e=>_(e)}),null,16,[`model-value`,`mode`])),l.value==null?X(``,!0):(W(),K(xR,so({key:1,"h-full":``,"model-value":l.value,"read-only":``},{lineNumbers:!0},{mode:`js`}),null,16,[`model-value`]))],2),u.value.mappings===``?X(``,!0):(W(),G(`div`,IR,[q(`div`,LR,` Source map (v`+F(u.value.version)+`) `,1),J(xR,so({"model-value":u.value.mappings,"read-only":``},{lineNumbers:!0}),null,16,[`model-value`])]))],64)):(W(),G(`div`,PR,` No transform result found for this module. `))])}}}),zR={"h-full":``,"min-h-75":``,"flex-1":``,overflow:`hidden`},BR={flex:``,"items-center":``,"gap-2":``,"px-3":``,"py-2":``},VR={flex:`~ gap-1`,"items-center":``,"select-none":``},HR={class:`pr-2`},UR=[`id`,`checked`,`onChange`],WR=[`for`],GR={key:0,class:`absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2`},KR=H({__name:`ViewModuleGraph`,props:bi({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Bi(e,`modelValue`),{graph:r}=pn(t),i=z(),a=z(!1),o=z(),s=xm(o),c=z(),l=z(null),u=an(r.value),d=Z(()=>{let e=``,t=_D.value?.importDurations,n=ok.value.experimental?.importDurations.thresholds;if(!t||!n)return e;for(let r in t){let{totalTime:i}=t[r];if(i>=n.danger){e=`text-red`;break}else i>=n.warn&&(e=`text-orange`)}return e}),f=z(d.value===`text-red`);Wr(()=>{u.value=h(r.value,null,2),C()}),Jr(()=>{c.value?.shutdown()}),sr(r,()=>{u.value=h(r.value,l.value,2),C()});function p(){u.value=r.value,C()}function m(){f.value=!f.value}function h(e,t,n=2){if(!e.nodes.length||e.nodes.length<=50)return e;let r=new Map;e.nodes.forEach(e=>r.set(e.id,new Set)),e.links.forEach(e=>{let t=typeof e.source==`object`?e.source.id:String(e.source),n=typeof e.target==`object`?e.target.id:String(e.target);r.get(t)?.add(n),r.get(n)?.add(t)});let i;if(t)i=[t];else{let t=new Set(e.links.map(e=>typeof e.target==`object`?e.target.id:String(e.target))),n=e.nodes.filter(e=>e.type===`inline`&&!t.has(e.id));i=n.length>0?[n[0].id]:[e.nodes[0].id]}let a=new Set,o=i.map(e=>({id:e,level:0}));for(;o.length>0;){let{id:e,level:t}=o.shift();a.has(e)||t>n||(a.add(e),t<n&&(r.get(e)||new Set).forEach(e=>{a.has(e)||o.push({id:e,level:t+1})}))}let s=new Map(e.nodes.map(e=>[e.id,e])),c=Array.from(a).map(e=>s.get(e)).filter(e=>e!==void 0),l=new Map(c.map(e=>[e.id,e]));return{nodes:c,links:e.links.map(e=>{let t=typeof e.source==`object`?e.source.id:String(e.source),n=typeof e.target==`object`?e.target.id:String(e.target);if(a.has(t)&&a.has(n)){let r=l.get(t),i=l.get(n);if(r&&i)return{...e,source:r,target:i}}return null}).filter(e=>e!==null)}}function g(e,t){c.value?.filterNodesByType(t,e)}function _(e,t){o.value={id:e,type:t},a.value=!0}function v(){s.undo()}function y(){a.value=!1,s.clear()}function b(e){l.value=e,u.value=h(r.value,e,2),S(),C()}function x(){l.value=null,u.value=h(r.value,null,2),S(),C()}function S(){let e=u.value.nodes.map(e=>{let t,n;return e.id===l.value?(t=`var(--color-node-focused)`,n=`var(--color-node-focused)`):e.type===`inline`?(t=e.color===`var(--color-node-root)`?`var(--color-node-root)`:`var(--color-node-inline)`,n=t):(t=`var(--color-node-external)`,n=`var(--color-node-external)`),KL({...e,color:t,label:e.label?{...e.label,color:n}:e.label})}),t=new Map(e.map(e=>[e.id,e]));u.value={nodes:e,links:u.value.links.map(e=>{let n=typeof e.source==`object`?e.source.id:String(e.source),r=typeof e.target==`object`?e.target.id:String(e.target);return{...e,source:t.get(n),target:t.get(r)}})}}function C(e=!1){if(c.value?.shutdown(),e&&!n.value){n.value=!0;return}if(!u.value||!i.value)return;let t=u.value.nodes.length,a=1,o=.5;t>300?(a=.3,o=.2):t>200?(a=.4,o=.3):t>100?(a=.5,o=.3):t>50&&(a=.7,a=.4),c.value=new UL(i.value,u.value,aL({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:e,newWidth:t})=>e===0&&t===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:QI.Arrow(2),modifiers:{node:ee},positionInitializer:r.value.nodes.length===1?rL.Centered:rL.Randomized,zoom:{initial:a,min:o,max:1.5}}))}let w=e=>e.button===0,T=e=>e.button===2;function ee(e){if(WD)return;let t=0,n=0,r=0,i=!1;e.on(`pointerdown`,(e,a)=>{!a.x||!a.y||(i=T(e),!(!w(e)&&!i)&&(t=a.x,n=a.y,r=Date.now()))}).on(`pointerup`,(e,i)=>{if(!i.x||!i.y)return;let a=T(e);if(!w(e)&&!a||Date.now()-r>500)return;let o=i.x-t,s=i.y-n;o**2+s**2<100&&(!a&&!e.shiftKey?_(i.id,i.type):(a||e.shiftKey)&&(e.preventDefault(),i.type===`inline`&&b(i.id)))}).on(`contextmenu`,e=>{e.preventDefault()})}return(t,l)=>{let h=ii(`tooltip`);return W(),G(`div`,zR,[q(`div`,null,[q(`div`,BR,[q(`div`,VR,[q(`div`,HR,F(u.value.nodes.length)+`/`+F(B(r).nodes.length)+` `+F(u.value.nodes.length===1?`module`:`modules`),1),Qn(q(`input`,{id:`hide-node-modules`,"onUpdate:modelValue":l[0]||=e=>n.value=e,type:`checkbox`},null,512),[[Ws,n.value]]),l[9]||=q(`label`,{"font-light":``,"text-sm":``,"ws-nowrap":``,"overflow-hidden":``,"select-none":``,truncate:``,for:`hide-node-modules`,"border-b-2":``,border:`$cm-namespace`},`Hide node_modules`,-1)]),(W(!0),G(U,null,si(c.value?.nodeTypes.sort(),e=>(W(),G(`div`,{key:e,flex:`~ gap-1`,"items-center":``,"select-none":``},[q(`input`,{id:`type-${e}`,type:`checkbox`,checked:c.value?.nodeTypeFilter.includes(e),onChange:t=>g(e,t.target.checked)},null,40,UR),q(`label`,{"font-light":``,"text-sm":``,"ws-nowrap":``,"overflow-hidden":``,capitalize:``,"select-none":``,truncate:``,for:`type-${e}`,"border-b-2":``,style:ve({"border-color":`var(--color-node-${e})`})},F(e)+` Modules`,13,WR)]))),128)),l[10]||=q(`div`,{"flex-auto":``},null,-1),l[11]||=q(`div`,{flex:`~ gap-2`,"items-center":``,"text-xs":``,"opacity-60":``},[q(`span`,null,`Click on node: details • Right-click/Shift: expand graph`)],-1),q(`div`,null,[Qn(J(xk,{icon:`i-carbon-notebook`,class:P(d.value),onClick:l[1]||=e=>m()},null,8,[`class`]),[[h,`${f.value?`Hide`:`Show`} Import Breakdown`,void 0,{bottom:!0}]])]),q(`div`,null,[Qn(J(xk,{icon:`i-carbon-ibm-cloud-direct-link-2-connect`,onClick:l[2]||=e=>p()},null,512),[[h,`Show Full Graph`,void 0,{bottom:!0}]])]),q(`div`,null,[Qn(J(xk,{icon:`i-carbon-reset`,onClick:l[3]||=e=>x()},null,512),[[h,`Reset`,void 0,{bottom:!0}]])])])]),f.value?(W(),G(`div`,GR,[J(DR,{onSelect:l[4]||=(e,t)=>_(e,t)})])):X(``,!0),q(`div`,{ref_key:`el`,ref:i},null,512),J(CR,{modelValue:a.value,"onUpdate:modelValue":l[8]||=e=>a.value=e,direction:`right`},{default:V(()=>[o.value?(W(),K(ja,{key:0},{default:V(()=>[J(RR,{id:o.value.id,"project-name":e.projectName,type:o.value.type,"can-undo":B(s).undoStack.value.length>1,onClose:l[5]||=e=>y(),onSelect:l[6]||=(e,t)=>_(e,t),onBack:l[7]||=e=>v()},null,8,[`id`,`project-name`,`type`,`can-undo`])]),_:1})):X(``,!0)]),_:1},8,[`modelValue`])])}}}),qR={"w-350":``,"max-w-screen":``,"h-full":``,flex:``,"flex-col":``},JR={"p-4":``,relative:``,border:`base b`},YR={op50:``,"font-mono":``,"text-sm":``},XR={op50:``,"font-mono":``,"text-sm":``},ZR={class:`scrolls`,grid:`~ cols-1 rows-[min-content]`,"p-4":``},QR=[`src`,`alt`],$R={key:1},ez=sc(H({__name:`ScreenshotError`,props:{file:{},name:{},url:{}},emits:[`close`],setup(e,{emit:t}){let n=t;return Zp(`Escape`,()=>{n(`close`)}),(t,r)=>(W(),G(`div`,qR,[q(`div`,JR,[r[1]||=q(`p`,null,`Screenshot error`,-1),q(`p`,YR,F(e.file),1),q(`p`,XR,F(e.name),1),J(xk,{icon:`i-carbon:close`,title:`Close`,absolute:``,"top-5px":``,"right-5px":``,"text-2xl":``,onClick:r[0]||=e=>n(`close`)})]),q(`div`,ZR,[e.url?(W(),G(`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,QR)):(W(),G(`div`,$R,` Something was wrong, the image cannot be resolved. `))])]))}}),[[`__scopeId`,`data-v-08ce44b7`]]),tz={flex:`~ gap-2 items-center`},nz=H({__name:`FailureScreenshot`,props:{task:{}},setup(e){let t=z(!1),n=Z(()=>{if(e.task.type===`test`){let t=e.task.artifacts.find(e=>e.type===`internal:failureScreenshot`);if(t!==void 0)return t}return null}),r=Z(()=>n.value&&n.value.attachments.length&&_R(n.value.attachments[0]));function i(){if(n.value===null||n.value.attachments.length===0)return;let e=n.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(e)}`)}return(n,a)=>{let o=ii(`tooltip`);return r.value?(W(),G(U,{key:0},[q(`div`,tz,[Qn(J(xk,{class:`!op-100`,icon:`i-carbon:image`,title:`View screenshot error`,onClick:a[0]||=e=>t.value=!0},null,512),[[o,`View screenshot error`,void 0,{bottom:!0}]]),B(WD)?X(``,!0):Qn((W(),K(xk,{key:0,class:`!op-100`,icon:`i-carbon:image-reference`,title:`Open screenshot error in editor`,onClick:i},null,512)),[[o,`Open screenshot error in editor`,void 0,{bottom:!0}]])]),(W(),K(CR,{key:r.value,modelValue:t.value,"onUpdate:modelValue":a[2]||=e=>t.value=e,direction:`right`},{default:V(()=>[J(ez,{file:e.task.file.filepath,name:e.task.name,url:r.value,onClose:a[1]||=e=>t.value=!1},null,8,[`file`,`name`,`url`])]),_:1},8,[`modelValue`]))],64)):X(``,!0)}}}),rz={class:`scrolls scrolls-rounded task-error`},iz=[`innerHTML`],az=[`onClickPassive`],oz=[`innerHTML`],sz=sc(H({__name:`ViewReportError`,props:{fileId:{},root:{},filename:{},error:{}},setup(e){let t=e;function n(e){return e.startsWith(t.root)?e.slice(t.root.length):e}let r=Z(()=>XE(Rb.value)),i=Z(()=>!!t.error?.diff),a=Z(()=>t.error.diff?r.value.toHtml(rR(t.error.diff)):void 0),o=Z(()=>r.value.toHtml(rR(t.error.message||``)));function s(e){return JE(e.file,t.filename)?hD(t.fileId,e):YE(e.file,e.line,e.column)}return(t,r)=>{let c=ii(`tooltip`);return W(),G(`div`,rz,[q(`pre`,null,[q(`b`,null,F(e.error.name),1),r[0]||=Y(`: `,-1),q(`span`,{innerHTML:o.value},null,8,iz)]),(W(!0),G(U,null,si(e.error.stacks,(e,t)=>(W(),G(`div`,{key:t,class:`op80 flex gap-x-2 items-center`,"data-testid":`stack`},[q(`pre`,null,` - `+F(n(e.file))+`:`+F(e.line)+`:`+F(e.column),1),Qn(q(`div`,{class:`i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em`,tabindex:`0`,"aria-label":`Open in Editor`,onClickPassive:t=>s(e)},null,40,az),[[c,`Open in Editor`,void 0,{bottom:!0}]])]))),128)),i.value?(W(),G(`pre`,{key:0,"data-testid":`diff`,innerHTML:a.value},null,8,oz)):X(``,!0)])}}}),[[`__scopeId`,`data-v-1a18d9d9`]]),cz={"h-full":``,class:`scrolls`},lz=[`id`],uz={flex:`~ gap-2 items-center`},dz={key:1,bg:`green-500/10`,text:`green-500 sm`,p:`x4 y2`,"m-2":``,rounded:``},fz=sc(H({__name:`ViewReport`,props:{file:{}},setup(e){let t=e;function n(e,t){return e.result?.state===`fail`?e.type===`test`?[{...e,level:t}]:[{...e,level:t},...e.tasks.flatMap(e=>n(e,t+1))]:[]}let r=Z(()=>{let e=t.file,r=e.tasks?.flatMap(e=>n(e,0))??[],i=e.result;if(i?.errors?.[0]){let t={id:e.id,file:e,name:e.name,fullName:e.name,level:0,type:`suite`,mode:`run`,meta:{},tasks:[],result:i};r.unshift(t)}return r});return(t,n)=>(W(),G(`div`,cz,[r.value.length?(W(!0),G(U,{key:0},si(r.value,t=>(W(),G(`div`,{id:t.id,key:t.id},[q(`div`,{bg:`red-500/10`,text:`red-500 sm`,p:`x3 y2`,"m-2":``,rounded:``,style:ve({"margin-left":`${2*t.level+.5}rem`})},[q(`div`,uz,[q(`span`,null,F(t.name),1),J(nz,{task:t},null,8,[`task`])]),t.result?.errors&&B(ok).root?(W(!0),G(U,{key:0},si(t.result.errors,(t,n)=>(W(),K(sz,{key:n,error:t,filename:e.file.name,root:B(ok).root,"file-id":e.file.id},null,8,[`error`,`filename`,`root`,`file-id`]))),128)):X(``,!0)],4)],8,lz))),128)):(W(),G(`div`,dz,` All tests passed in this file `))]))}}),[[`__scopeId`,`data-v-a11deff7`]]);function pz(e,t){return gD(e,t)}function mz(e){let t=ok.value.root;return`${t?Av(t,e.file):e.file}:${e.line}:${e.column}`}var hz=[`href`,`referrerPolicy`],gz=[`src`],_z=H({__name:`AnnotationAttachmentImage`,props:{annotation:{}},setup(e){let t=e,n=Z(()=>{let e=t.annotation.attachment,n=e.path||e.body;return typeof n==`string`&&(n.startsWith(`http://`)||n.startsWith(`https://`))?n:_R(e)});return(t,r)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith(`image/`)?(W(),G(`a`,{key:0,target:`_blank`,class:`inline-block mt-2`,style:{maxWidth:`600px`},href:n.value,referrerPolicy:B(yR)(e.annotation.attachment)?`no-referrer`:void 0},[q(`img`,{src:n.value},null,8,gz)],8,hz)):X(``,!0)}}),vz=z();function yz(e){return`${e.repeats}:${e.retry}`}function bz(e){let t=[],n=new Map;for(let r of e){let e=r.range;if(!e){t.push(r);continue}if(e.phase===`start`){n.set(e.id,t.length),t.push(r);continue}let i=n.get(e.id);if(i==null){t.push(r);continue}let a=t[i];t[i]={...a,...r,startTime:a.startTime,duration:r.startTime-a.startTime}}return t}function xz(e){let t={};for(let n of e){if(n.type!==`internal:browserTrace`)continue;let e=n.data,r=yz(e);t[r]??=[],t[r].push(e)}let n={};for(let[e,r]of Object.entries(t)){let t=r[0],i=r.flatMap(e=>e.entries);n[e]={...t,entries:bz(i)}}return n}function Sz(e){let t=xz(e.test.artifacts);return e.attemptKey?t[e.attemptKey]:Object.values(t)[0]}function Cz(e,t){DD.value=`bottom`,vz.value={test:t,attemptKey:yz(e)}}function wz(){vz.value=void 0}sr(iD,e=>{if(e){let t=ak.state.idMap.get(e);if(t?.type===`test`&&Tz(t)){vz.value={test:t};return}}wz()}),ar(()=>{let e=vz.value,t=iD.value;if(e&&t&&e.test.id===t){let n=ak.state.idMap.get(t);n?.type===`test`&&e.test!==n&&(vz.value={test:n})}});function Tz(e){let t=Ez(e);return(yk?.config.browser?.traceView??t?.browser.traceView??ok.value.browser?.traceView)?.enabled??!1}function Ez(e){let t=e.file.projectName||``;return ok.value.projects?.find(e=>e.name===t)}function Dz(e){let t=[];return e.retry&&t.push(`Retry ${e.retry}`),e.repeats&&t.push(`Repeat ${e.repeats}`),t.join(` / `)}var Oz=[`onClick`],kz={key:0,class:`text-xs opacity-70`},Az=H({__name:`TraceArtifacts`,props:{test:{}},setup(e){let t=e,n=Z(()=>{let e=xz(t.test.artifacts);return Object.values(e).map(e=>({trace:e,label:Dz(e)}))});return(t,r)=>n.value.length?(W(),G(U,{key:0},[r[2]||=q(`h1`,{"m-2":``},` Trace View `,-1),(W(!0),G(U,null,si(n.value,({trace:t,label:n})=>(W(),G(`div`,{key:`${t.repeats}:${t.retry}`,bg:`yellow-500/10`,text:`yellow-500 sm`,p:`x3 y2`,"m-2":``,rounded:``,role:`note`},[q(`button`,{"data-testid":`trace-open-button`,type:`button`,class:`flex items-center gap-2 rounded px-2 py-1 hover:bg-yellow-500/10`,onClick:n=>B(Cz)(t,e.test)},[r[0]||=q(`span`,{class:`i-carbon:play-outline block`},null,-1),r[1]||=Y(` Open trace viewer `,-1),n?(W(),G(`span`,kz,F(n),1)):X(``,!0)],8,Oz)]))),128))],64)):X(``,!0)}}),jz={class:`flex flex-col gap-4`},Mz={key:0},Nz=H({__name:`ArtifactTemplate`,setup(e){let t=gi();return(e,n)=>(W(),G(`article`,jz,[q(`h1`,null,[li(e.$slots,`title`)]),B(t).message?(W(),G(`p`,Mz,[li(e.$slots,`message`)])):X(``,!0),li(e.$slots,`default`)]))}}),Pz=Symbol(`tabContext`),Fz={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},Iz={class:`flex flex-col items-center gap-6`},Lz={role:`tablist`,"aria-orientation":`horizontal`,class:`flex gap-4`},Rz=[`id`,`aria-selected`,`aria-controls`,`onClick`],zz=H({__name:`SmallTabs`,setup(e){let t=z(null),n=z([]),r=Or();return er(Pz,{id:r,activeTab:t,registerTab:e=>{n.value.some(({id:t})=>t===e.id)||n.value.push(e),n.value.length===1&&(t.value=e.id)},unregisterTab:e=>{let r=n.value.findIndex(({id:t})=>t===e.id);r>-1&&n.value.splice(r,1),t.value===e.id&&(t.value=n.value[0]?.id??null)}}),(e,i)=>(W(),G(`div`,Iz,[q(`div`,Lz,[(W(!0),G(U,null,si(n.value,e=>(W(),G(`button`,{id:B(Fz).tab(e.id,B(r)),key:e.id,role:`tab`,"aria-selected":t.value===e.id,"aria-controls":B(Fz).tabpanel(e.id,B(r)),type:`button`,class:`aria-[selected=true]:underline underline-offset-4`,onClick:n=>t.value=e.id},F(e.title),9,Rz))),128))]),li(e.$slots,`default`)]))}}),Bz=[`id`,`aria-labelledby`,`hidden`],Vz=H({__name:`SmallTabsPane`,props:{title:{}},setup(e){let t=e,n=tr(Pz);if(!n)throw Error(`TabPane must be used within Tabs`);let r=Or(),i=Z(()=>n.activeTab.value===r);return Wr(()=>{n.registerTab({...t,id:r})}),Jr(()=>{n.unregisterTab({...t,id:r})}),(e,t)=>(W(),G(`div`,{id:B(Fz).tabpanel(B(r),B(n).id),role:`tabpanel`,"aria-labelledby":B(Fz).tab(B(r),B(n).id),hidden:!i.value,class:`max-w-full`},[li(e.$slots,`default`)],8,Bz))}}),Hz=H({__name:`VisualRegressionImageContainer`,setup(e){let 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(e,n)=>(W(),G(`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:ve({backgroundImage:t})},[li(e.$slots,`default`)],4))}}),Uz=[`href`,`referrerPolicy`],Wz=[`src`],Gz=H({__name:`VisualRegressionImage`,props:{attachment:{}},setup(e){let t=Z(()=>bR(e.attachment));return(n,r)=>(W(),K(Hz,null,{default:V(()=>[q(`a`,{target:`_blank`,href:t.value,referrerPolicy:B(yR)(e.attachment)?`no-referrer`:void 0},[q(`img`,{src:t.value},null,8,Wz)],8,Uz)]),_:1}))}}),Kz={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`},qz=[`src`],Jz={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`},Yz=[`src`],Xz=[`id`],Zz=[`for`],Qz=H({__name:`VisualRegressionSlider`,props:{reference:{},actual:{}},setup(e){let t=Z(()=>bR(e.reference)),n=Z(()=>bR(e.actual)),r=Z(()=>Math.max(e.reference.width,e.actual.width)),i=Z(()=>Math.max(e.reference.height,e.actual.height)),a=z(50),o=Or();return(e,s)=>(W(),K(Hz,null,{default:V(()=>[q(`div`,{"aria-label":`Image comparison slider showing reference and actual screenshots`,class:`relative max-w-full h-full overflow-hidden`,style:ve({"--split":`${a.value}%`,aspectRatio:`${r.value} / ${i.value}`,width:`${r.value}px`})},[q(`div`,Kz,[q(`img`,{src:t.value},null,8,qz)]),q(`div`,Jz,[q(`img`,{src:n.value},null,8,Yz)]),s[1]||=q(`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),Qn(q(`input`,{id:B(o),"onUpdate:modelValue":s[0]||=e=>a.value=e,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,Xz),[[Us,a.value]]),q(`output`,{for:B(o),class:`sr-only`},` Showing `+F(a.value)+`% reference, `+F(100-a.value)+`% actual `,9,Zz)],4)]),_:1}))}}),$z=H({__name:`VisualRegression`,props:{regression:{}},setup(e){let t=Z(()=>({diff:e.regression.attachments.find(e=>e.name===`diff`),reference:e.regression.attachments.find(e=>e.name===`reference`),actual:e.regression.attachments.find(e=>e.name===`actual`)}));return(n,r)=>(W(),K(Nz,null,{title:V(()=>[...r[0]||=[Y(` Visual Regression `,-1)]]),message:V(()=>[Y(F(e.regression.message),1)]),default:V(()=>[J(zz,null,{default:V(()=>[t.value.diff?(W(),K(Vz,{key:t.value.diff.path,title:`Diff`},{default:V(()=>[J(Gz,{attachment:t.value.diff},null,8,[`attachment`])]),_:1})):X(``,!0),t.value.reference?(W(),K(Vz,{key:t.value.reference.path,title:`Reference`},{default:V(()=>[J(Gz,{attachment:t.value.reference},null,8,[`attachment`])]),_:1})):X(``,!0),t.value.actual?(W(),K(Vz,{key:t.value.actual.path,title:`Actual`},{default:V(()=>[J(Gz,{attachment:t.value.actual},null,8,[`attachment`])]),_:1})):X(``,!0),t.value.reference&&t.value.actual?(W(),K(Vz,{key:(t.value.reference.path??``)+(t.value.actual.path??``),title:`Slider`},{default:V(()=>[J(Qz,{actual:t.value.actual,reference:t.value.reference},null,8,[`actual`,`reference`])]),_:1})):X(``,!0)]),_:1})]),_:1}))}}),eB={flex:`~ gap-2 items-center justify-between`,"overflow-hidden":``},tB=[`onClick`],nB={key:1,class:`flex gap-1 text-yellow-500/80`,"ws-nowrap":``},rB=H({__name:`Artifacts`,props:{test:{}},setup(e){let t=Z(()=>{let t=[];for(let n of e.test.artifacts)switch(n.type){case`internal:browserTrace`:continue;case`internal:toMatchScreenshot`:n.kind===`visual-regression`&&t.push({artifact:n,component:$z,props:{regression:n}});continue}return t});return(n,r)=>{let i=ii(`tooltip`);return W(),G(U,null,[J(Az,{test:e.test},null,8,[`test`]),t.value.length?(W(),G(U,{key:0},[r[0]||=q(`h1`,{"m-2":``},` Test Artifacts `,-1),(W(!0),G(U,null,si(t.value,({artifact:t,component:n,props:r},a)=>(W(),G(`div`,{key:t.type+a,bg:`yellow-500/10`,text:`yellow-500 sm`,p:`x3 y2`,"m-2":``,rounded:``,role:`note`},[q(`div`,eB,[q(`div`,null,[t.location&&t.location.file===e.test.file.filepath?Qn((W(),G(`span`,{key:0,title:`Open in Editor`,class:`flex gap-1 text-yellow-500/80 cursor-pointer`,"ws-nowrap":``,onClick:n=>B(pz)(e.test,t.location)},[Y(F(B(mz)(t.location)),1)],8,tB)),[[i,`Open in Editor`,void 0,{bottom:!0}]]):t.location&&t.location.file!==e.test.file.filepath?(W(),G(`span`,nB,F(B(mz)(t.location)),1)):X(``,!0)])]),(W(),K(ri(n),so({ref_for:!0},r),null,16))]))),128))],64)):X(``,!0)],64)}}}),iB={"h-full":``,class:`scrolls`},aB={key:0},oB={bg:`red-500/10`,text:`red-500 sm`,p:`x3 y2`,"m-2":``,rounded:``},sB={key:1,bg:`green-500/10`,text:`green-500 sm`,p:`x4 y2`,"m-2":``,rounded:``},cB={flex:`~ gap-2 items-center justify-between`,"overflow-hidden":``},lB={class:`flex gap-2`,"overflow-hidden":``},uB={class:`font-bold`,"ws-nowrap":``,truncate:``},dB=[`href`,`download`],fB=[`onClick`],pB={key:1,class:`flex gap-1 text-yellow-500/80`,"ws-nowrap":``},mB={class:`scrolls scrolls-rounded task-error`,"data-testid":`task-error`},hB={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":``},gB={"font-bold":``,"ws-nowrap":``,truncate:``,"py-2":``},_B={"overflow-auto":``,bg:`gray/30`,rounded:``,"p-2":``},vB=sc(H({__name:`ViewTestReport`,props:{test:{}},setup(e){let t=e,n=Z(()=>!t.test.result||!t.test.result.errors?.length?null:t.test),r=new Set([`benchmark`,`typecheck`,`__vitest_label__`]),i=Z(()=>Object.entries(t.test.meta).filter(([e])=>!r.has(e)));return(t,r)=>{let a=ii(`tooltip`);return W(),G(`div`,iB,[n.value?(W(),G(`div`,aB,[q(`div`,oB,[J(nz,{task:e.test},null,8,[`task`]),e.test.result?.errors&&B(ok).root?(W(!0),G(U,{key:0},si(e.test.result.errors,(t,n)=>(W(),K(sz,{key:n,"file-id":e.test.file.id,error:t,filename:e.test.file.name,root:B(ok).root},null,8,[`file-id`,`error`,`filename`,`root`]))),128)):X(``,!0)])])):(W(),G(`div`,sB,` The test has passed without any errors `)),e.test.annotations.length?(W(),G(U,{key:2},[r[1]||=q(`h1`,{"m-2":``},` Test Annotations `,-1),(W(!0),G(U,null,si(e.test.annotations,t=>(W(),G(`div`,{key:t.type+t.message,bg:`yellow-500/10`,text:`yellow-500 sm`,p:`x3 y2`,"m-2":``,rounded:``,role:`note`},[q(`div`,cB,[q(`div`,lB,[q(`span`,uB,F(t.type),1),t.attachment&&!t.attachment.contentType?.startsWith(`image/`)?(W(),G(`a`,{key:0,class:`flex gap-1 items-center text-yellow-500/80 cursor-pointer`,href:B(_R)(t.attachment),download:B(vR)(t.message,t.attachment.contentType)},[...r[0]||=[q(`span`,{class:`i-carbon:download block`},null,-1),Y(` Download `,-1)]],8,dB)):X(``,!0)]),q(`div`,null,[t.location&&t.location.file===e.test.file.filepath?Qn((W(),G(`span`,{key:0,title:`Open in Editor`,class:`flex gap-1 text-yellow-500/80 cursor-pointer`,"ws-nowrap":``,onClick:n=>B(pz)(e.test,t.location)},[Y(F(B(mz)(t.location)),1)],8,fB)),[[a,`Open in Editor`,void 0,{bottom:!0}]]):t.location&&t.location.file!==e.test.file.filepath?(W(),G(`span`,pB,F(B(mz)(t.location)),1)):X(``,!0)])]),q(`div`,mB,F(t.message),1),J(_z,{annotation:t},null,8,[`annotation`])]))),128))],64)):X(``,!0),J(rB,{test:e.test},null,8,[`test`]),i.value.length?(W(),G(U,{key:3},[r[2]||=q(`h1`,{"m-2":``},` Test Meta `,-1),q(`div`,hB,[(W(!0),G(U,null,si(i.value,([e,t])=>(W(),G(U,{key:e},[q(`div`,gB,F(e),1),q(`pre`,_B,F(t),1)],64))),128))])],64)):X(``,!0)])}}}),[[`__scopeId`,`data-v-27f61d5d`]]),yB={key:0,flex:``,"flex-col":``,"h-full":``,"max-h-full":``,"overflow-hidden":``,"data-testid":`file-detail`},bB={p:`2`,"h-10":``,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b base`},xB={key:0,class:`i-logos:typescript-icon`,"flex-shrink-0":``},SB={key:1,class:`rounded-sm px-1 text-xs font-light bg-cyan-500/20 text-cyan-700 dark:text-cyan-300`,"flex-shrink-0":``},CB={"flex-1":``,"font-light":``,"overflow-hidden":``,"text-sm":``,flex:``},wB={"op-50":``,truncate:``},TB=[`title`],EB={class:`flex text-lg`},DB={flex:`~`,"items-center":``,"bg-header":``,border:`b-2 base`,"text-sm":``,"h-41px":``},OB={key:0,class:`block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s`},kB={key:1,class:`block w-1.4em h-1.4em i-carbon:chart-relationship`},AB={flex:``,"flex-col":``,"flex-1":``,overflow:`hidden`},jB=[`flex-1`],MB=H({__name:`FileDetails`,setup(e){let t=z({nodes:[],links:[]}),n=z(!1),r=z(!1),i=z(!1),a=z(void 0),o=z(!0),s=Z(()=>iD.value?ak.state.idMap.get(iD.value):void 0),c=Z(()=>{let e=lk.value;if(!(!e||!e.filepath))return{filepath:e.filepath,projectName:e.file.projectName||``}}),l=Z(()=>lk.value&&nS(lk.value)),u=Z(()=>!!lk.value?.meta?.typecheck),d=Z(()=>lk.value?.meta?.__vitest_label__);function f(){let e=lk.value?.filepath;e&&fetch(`/__open-in-editor?file=${encodeURIComponent(e)}`)}function p(e){e===`graph`&&(r.value=!0),tD.value=e}let m=Z(()=>uk.value?.reduce((e,{size:t})=>e+t,0)??0);function h(e){n.value=e}let g=/[/\\]node_modules[/\\]/;async function _(e=!1){if(!(i.value||c.value?.filepath===a.value&&!e)){i.value=!0,await Ln();try{let n=c.value;if(!n){i.value=!1;return}if(e||!a.value||n.filepath!==a.value||!t.value.nodes.length&&!t.value.links.length){let e=await ak.rpc.getModuleGraph(n.projectName,n.filepath,!!yk);o.value&&(e={...e,inlined:e.inlined.filter(e=>!g.test(e)),externalized:e.externalized.filter(e=>!g.test(e))}),t.value=YL(e,n.filepath),a.value=n.filepath}p(`graph`)}finally{await new Promise(e=>setTimeout(e,100)),i.value=!1}}}zp(()=>[c.value,tD.value,o.value],([,e,t],n)=>{e===`graph`&&_(n&&t!==n[2])},{debounce:100,immediate:!0});let v=Z(()=>{let e=lk.value?.file.projectName||``;return $.colors.get(e)||Yb(lk.value?.file.projectName)}),y=Z(()=>Xb(v.value)),b=Z(()=>{let e=iD.value;if(!e)return lk.value?.name;let t=[],n=ak.state.idMap.get(e);for(;n;)t.push(n.name),n=n.suite;return t.reverse().join(` > `)}),x=Z(()=>{let e=iD.value;return e?(ak.state.idMap.get(e)?.tags||[]).map(e=>({name:e,description:zx.value[e]?.description,bg:Yb(e,!0),border:Yb(e),text:`white`})):[]});return(e,a)=>{let c=ii(`tooltip`);return B(lk)?(W(),G(`div`,yB,[q(`div`,null,[q(`div`,bB,[J(nR,{state:B(lk).result?.state,mode:B(lk).mode,"failed-snapshot":l.value},null,8,[`state`,`mode`,`failed-snapshot`]),u.value?Qn((W(),G(`div`,xB,null,512)),[[c,`This is a typecheck test. It won't report results of the runtime tests`,void 0,{bottom:!0}]]):X(``,!0),d.value?(W(),G(`span`,SB,F(d.value),1)):X(``,!0),B(lk)?.file.projectName?(W(),G(`span`,{key:2,class:`rounded-full py-0.5 px-2 text-xs font-light`,style:ve({backgroundColor:v.value,color:y.value}),"cursor-default":``},F(B(lk).file.projectName),5)):X(``,!0),q(`div`,CB,[q(`span`,wB,F(b.value),1),(W(!0),G(U,null,si(x.value,e=>Qn((W(),G(`span`,{key:e.name,class:`rounded-full ml-2 px-2 text-xs font-light`,style:ve({backgroundColor:e.bg,color:e.text,border:`1px solid ${e.border}`}),title:e.description,"cursor-default":``,flex:``,"items-center":``},[Y(F(e.name),1)],12,TB)),[[c,e.description,void 0,{bottom:!0}]])),128))]),q(`div`,EB,[B(WD)?X(``,!0):Qn((W(),K(xk,{key:0,title:`Open in editor`,icon:`i-carbon-launch`,disabled:!B(lk)?.filepath,onClick:f},null,8,[`disabled`])),[[c,`Open in editor`,void 0,{bottom:!0}]]),B(yk)?(W(),K(kk,{key:1})):X(``,!0)])]),q(`div`,DB,[q(`button`,{"tab-button":``,class:P([`flex items-center gap-2`,{"tab-button-active":B(tD)==null}]),"data-testid":`btn-report`,onClick:a[0]||=e=>p(null)},[...a[5]||=[q(`span`,{class:`block w-1.4em h-1.4em i-carbon:report`},null,-1),Y(` Report `,-1)]],2),q(`button`,{"tab-button":``,"data-testid":`btn-graph`,class:P([`flex items-center gap-2`,{"tab-button-active":B(tD)===`graph`}]),onClick:a[1]||=e=>p(`graph`)},[i.value?(W(),G(`span`,OB)):(W(),G(`span`,kB)),a[6]||=Y(` Module Graph `,-1)],2),q(`button`,{"tab-button":``,"data-testid":`btn-code`,class:P([`flex items-center gap-2`,{"tab-button-active":B(tD)===`editor`}]),onClick:a[2]||=e=>p(`editor`)},[a[7]||=q(`span`,{class:`block w-1.4em h-1.4em i-carbon:code`},null,-1),Y(` `+F(n.value?`*\xA0`:``)+`Code `,1)],2),q(`button`,{"tab-button":``,"data-testid":`btn-console`,class:P([`flex items-center gap-2`,{"tab-button-active":B(tD)===`console`,op20:B(tD)!==`console`&&m.value===0}]),onClick:a[3]||=e=>p(`console`)},[a[8]||=q(`span`,{class:`block w-1.4em h-1.4em i-carbon:terminal-3270`},null,-1),Y(` Console (`+F(m.value)+`) `,1)],2)])]),q(`div`,AB,[r.value?(W(),G(`div`,{key:0,"flex-1":B(tD)===`graph`&&``},[Qn(J(KR,{modelValue:o.value,"onUpdate:modelValue":a[4]||=e=>o.value=e,graph:t.value,"data-testid":`graph`,"project-name":B(lk).file.projectName||``},null,8,[`modelValue`,`graph`,`project-name`]),[[ds,B(tD)===`graph`&&!i.value]])],8,jB)):X(``,!0),B(tD)===`editor`?(W(),K(SR,{key:B(lk).id,file:B(lk),"data-testid":`editor`,onDraft:h},null,8,[`file`])):B(tD)===`console`?(W(),K(lR,{key:2,file:B(lk),"data-testid":`console`},null,8,[`file`])):!B(tD)&&!s.value&&B(lk)?(W(),K(fz,{key:3,file:B(lk),"data-testid":`report`},null,8,[`file`])):!B(tD)&&s.value?(W(),K(vB,{key:4,test:s.value,"data-testid":`report`},null,8,[`test`])):X(``,!0)])])):X(``,!0)}}});``+new URL(`../favicon.svg`,import.meta.url).href;function NB(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var PB;function FB(){FB.init||(FB.init=!0,PB=NB()!==-1)}var IB={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){FB(),Ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,PB&&this.$el.appendChild(e),e.data=`about:blank`,PB||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&&(!PB&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},LB=Zn(`data-v-b329ee4c`);Yn(`data-v-b329ee4c`);var RB={class:`resize-observer`,tabindex:`-1`};Xn(),IB.render=LB((e,t,n,r,i,a)=>(W(),K(`div`,RB))),IB.__scopeId=`data-v-b329ee4c`,IB.__file=`src/components/ResizeObserver.vue`;function zB(e){"@babel/helpers - typeof";return zB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zB(e)}function BB(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function VB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HB(e,t,n){return t&&VB(e.prototype,t),n&&VB(e,n),e}function UB(e){return WB(e)||GB(e)||KB(e)||JB()}function WB(e){if(Array.isArray(e))return qB(e)}function GB(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function KB(e,t){if(e){if(typeof e==`string`)return qB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qB(e,t)}}function qB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JB(){throw TypeError(`Invalid attempt to spread non-iterable instance.
48
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YB(e){return typeof e==`function`?{callback:e}:e}function XB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(o){if(a=[...arguments].slice(1),!(r&&o===i)){var s=n.leading;typeof s==`function`&&(s=s(o,i)),(!r||o!==i)&&s&&e.apply(void 0,[o].concat(UB(a))),i=o,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[o].concat(UB(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function ZB(e,t){if(e===t)return!0;if(zB(e)===`object`){for(var n in e)if(!ZB(e[n],t[n]))return!1;return!0}return!1}var QB=function(){function e(t,n,r){BB(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return HB(e,[{key:`createObserver`,value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=YB(e),this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var r=(this.options.throttleOptions||{}).leading;this.callback=XB(this.callback,this.options.throttle,{leading:function(e){return r===`both`||r===`visible`&&e||r===`hidden`&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var r=e.find(function(e){return e.isIntersecting});r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}},this.options.intersection),Ln(function(){n.observer&&n.observer.observe(n.el)})}}},{key:`destroyObserver`,value:function(){this.observer&&=(this.observer.disconnect(),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 $B(e,t,n){var r=t.value;r&&(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`):e._vue_visibilityState=new QB(e,r,n))}function eV(e,t,n){var r=t.value,i=t.oldValue;if(!ZB(r,i)){var a=e._vue_visibilityState;if(!r){tV(e);return}a?a.createObserver(r,n):$B(e,{value:r},n)}}function tV(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var nV={beforeMount:$B,updated:eV,unmounted:tV};function rV(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}var iV={itemsLimit:1e3},aV=/(auto|scroll)/;function oV(e,t){return e.parentNode===null?t:oV(e.parentNode,t.concat([e]))}var sV=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},cV=function(e){return sV(e,`overflow`)+sV(e,`overflow-y`)+sV(e,`overflow-x`)},lV=function(e){return aV.test(cV(e))};function uV(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=oV(e.parentNode,[]),n=0;n<t.length;n+=1)if(lV(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function dV(e){"@babel/helpers - typeof";return dV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dV(e)}var fV={items:{type:Array,required:!0},keyField:{type:String,default:`id`},direction:{type:String,default:`vertical`,validator:function(e){return[`vertical`,`horizontal`].includes(e)}},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`}};function pV(){return this.items.length&&dV(this.items[0])!==`object`}var mV=!1;if(typeof window<`u`){mV=!1;try{var hV=Object.defineProperty({},`passive`,{get:function(){mV=!0}});window.addEventListener(`test`,null,hV)}catch{}}var gV=0,_V={name:`RecycleScroller`,components:{ResizeObserver:IB},directives:{ObserveVisibility:nV},props:{...fV,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){let e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize,i=1e4,a=0,o;for(let s=0,c=t.length;s<c;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:pV,itemIndexByKey(){let{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},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(){let e=this.$_lastUpdateScrollPosition;typeof e==`number`&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){let a=Kt({item:n,position:0,nr:en({id:gV++,index:t,used:!0,key:r,type:i})});return e.push(a),a},unuseView(e,t=!1){let n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.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;let e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;let{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},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){let n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,c=this.items,l=c.length,u=this.sizes,d=this.$_views,f=this.$_unusedViews,p=this.pool,m=this.itemIndexByKey,h,g,_,v,y;if(!l)h=g=v=y=_=0;else if(this.$_prerender)h=v=0,g=y=Math.min(this.prerender,c.length),_=null;else{let e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),n===null&&t<a||t<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=e.start;let i=this.buffer;e.start-=i,e.end+=i;let o=0;if(this.$refs.before&&(o=this.$refs.before.scrollHeight,e.start-=o),this.$refs.after){let t=this.$refs.after.scrollHeight;e.end+=t}if(n===null){let t,n=0,r=l-1,i=~~(l/2),a;do a=i,t=u[i].accumulator,t<e.start?n=i:i<l-1&&u[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),h=i,_=u[l-1].accumulator,g=i;g<l&&u[g].accumulator<e.end;g++);for(g===-1?g=c.length-1:(g++,g>l&&(g=l)),v=h;v<l&&o+u[v].accumulator<e.start;v++);for(y=v;y<l&&o+u[y].accumulator<e.end;y++);}else{h=~~(e.start/n*r);let t=h%r;h-=t,g=Math.ceil(e.end/n*r),v=Math.max(0,Math.floor((e.start-o)/n*r)),y=Math.floor((e.end-o)/n*r),h<0&&(h=0),g>l&&(g=l),v<0&&(v=0),y>l&&(y=l),_=Math.ceil(l/r)*n}}g-h>iV.itemsLimit&&this.itemsLimitError(),this.totalSize=_;let b,x=h<=this.$_endIndex&&g>=this.$_startIndex;if(x)for(let t=0,n=p.length;t<n;t++)b=p[t],b.nr.used&&(e&&(b.nr.index=m[b.item[s]]),(b.nr.index==null||b.nr.index<h||b.nr.index>=g)&&this.unuseView(b));let S=x?null:new Map,C,w,T;for(let e=h;e<g;e++){C=c[e];let t=s?C[s]:C;if(t==null)throw Error(`Key is ${t} on item (keyField is '${s}')`);if(b=d.get(t),!n&&!u[e].size){b&&this.unuseView(b);continue}w=C[o];let a=f.get(w),l=!1;if(!b)x?b=a&&a.length?a.pop():this.addView(p,e,C,t,w):(T=S.get(w)||0,(!a||T>=a.length)&&(b=this.addView(p,e,C,t,w),this.unuseView(b,!0),a=f.get(w)),b=a[T],S.set(w,T+1)),d.delete(b.nr.key),b.nr.used=!0,b.nr.index=e,b.nr.key=t,b.nr.type=w,d.set(t,b),l=!0;else if(!b.nr.used&&(b.nr.used=!0,l=!0,a)){let e=a.indexOf(b);e!==-1&&a.splice(e,1)}b.item=C,l&&(e===c.length-1&&this.$emit(`scroll-end`),e===0&&this.$emit(`scroll-start`)),n===null?(b.position=u[e-1].accumulator,b.offset=0):(b.position=Math.floor(e/r)*n,b.offset=e%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit(`update`,h,g,v,y),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=uV(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){let{$el:e,direction:t}=this,n=t===`vertical`,r;if(this.pageMode){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=-(n?t.top:t.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),r={start:a,end:a+o}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener(`scroll`,this.handleScroll,mV?{passive:!0}:!1),this.listenerTarget.addEventListener(`resize`,this.handleResize)},removeListeners(){this.listenerTarget&&=(this.listenerTarget.removeEventListener(`scroll`,this.handleScroll),this.listenerTarget.removeEventListener(`resize`,this.handleResize),null)},scrollToItem(e){let t,n=this.gridItems||1;t=this.itemSize===null?e>0?this.sizes[e-1].accumulator:0:Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){let t=this.direction===`vertical`?{scroll:`scrollTop`,start:`top`}:{scroll:`scrollLeft`,start:`left`},n,r,i;if(this.pageMode){let a=uV(this.$el),o=a.tagName===`HTML`?0:a[t.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+c}else n=this.$el,r=t.scroll,i=e;n[r]=i},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.`)}),Error(`Rendered items limit reached`)},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}},vV={key:0,ref:`before`,class:`vue-recycle-scroller__slot`},yV={key:1,ref:`after`,class:`vue-recycle-scroller__slot`};function bV(e,t,n,r,i,a){let o=ti(`ResizeObserver`),s=ii(`observe-visibility`);return Qn((W(),G(`div`,{class:P([`vue-recycle-scroller`,{ready:i.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||=(...e)=>a.handleScroll&&a.handleScroll(...e)},[e.$slots.before?(W(),G(`div`,vV,[li(e.$slots,`before`)],512)):X(`v-if`,!0),(W(),K(ri(n.listTag),{ref:`wrapper`,style:ve({[e.direction===`vertical`?`minHeight`:`minWidth`]:i.totalSize+`px`}),class:P([`vue-recycle-scroller__item-wrapper`,n.listClass])},{default:V(()=>[(W(!0),G(U,null,si(i.pool,t=>(W(),K(ri(n.itemTag),so({key:t.nr.id,style:i.ready?{transform:`translate${e.direction===`vertical`?`Y`:`X`}(${t.position}px) translate${e.direction===`vertical`?`X`:`Y`}(${t.offset}px)`,width:n.gridItems?`${e.direction===`vertical`&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction===`horizontal`&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:[`vue-recycle-scroller__item-view`,[n.itemClass,{hover:!n.skipHover&&i.hoverKey===t.nr.key}]]},di(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=t.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:V(()=>[li(e.$slots,`default`,{item:t.item,index:t.nr.index,active:t.nr.used})]),_:2},1040,[`style`,`class`]))),128)),li(e.$slots,`empty`)]),_:3},8,[`style`,`class`])),e.$slots.after?(W(),G(`div`,yV,[li(e.$slots,`after`)],512)):X(`v-if`,!0),J(o,{onNotify:a.handleResize},null,8,[`onNotify`])],34)),[[s,a.handleVisibilityChange]])}_V.render=bV,_V.__file=`src/components/RecycleScroller.vue`;var xV={name:`DynamicScroller`,components:{RecycleScroller:_V},provide(){return typeof ResizeObserver<`u`&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(let t of e)if(t.target&&t.target.$_vs_onResize){let e,n;if(t.borderBoxSize){let r=t.borderBoxSize[0];e=r.inlineSize,n=r.blockSize}else e=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,e,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...fV,minItemSize:{type:[Number,String],required:!0}},emits:[`resize`,`visible`],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:pV,itemsWithSize(){let e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){let a=t[o],s=r?o:a[n],c=i[s];c===void 0&&!this.$_undefinedMap[s]&&(c=0),e.push({item:a,id:s,size:c})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){let n=this.$el.scrollTop,r=0,i=0,a=Math.min(e.length,t.length);for(let o=0;o<a&&!(r>=n);o++)r+=t[o].size||this.minItemSize,i+=e[o].size||this.minItemSize;let o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=rV()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit(`resize`)},onScrollerVisible(){this.$_events.emit(`vscroll:update`,{force:!1}),this.$emit(`visible`)},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit(`vscroll:update`,{force:!0})},scrollToItem(e){let t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){let n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;let e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function SV(e,t,n,r,i,a){let o=ti(`RecycleScroller`);return W(),K(o,so({ref:`scroller`,items:a.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":`id`,"list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:a.onScrollerResize,onVisible:a.onScrollerVisible}),{default:V(({item:t,index:n,active:r})=>[li(e.$slots,`default`,Ce(no({item:t.item,index:n,active:r,itemWithSize:t})))]),before:V(()=>[li(e.$slots,`before`)]),after:V(()=>[li(e.$slots,`after`)]),empty:V(()=>[li(e.$slots,`empty`)]),_:3},16,[`items`,`min-item-size`,`direction`,`list-tag`,`item-tag`,`onResize`,`onVisible`])}xV.render=SV,xV.__file=`src/components/DynamicScroller.vue`;var CV={name:`DynamicScrollerItem`,inject:[`vscrollData`,`vscrollParent`,`vscrollResizeObserver`],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:`div`}},emits:[`resize`],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:`updateWatchData`,id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){let n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(let e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on(`vscroll:update`,this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off(`vscroll:update`,this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch(`item`,()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&=(this.$_watchData(),null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){let e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applyWidthHeight(e,t)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){let n=~~(this.vscrollParent.direction===`vertical`?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit(`resize`,this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||=(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,!0))},unobserveSize(){this.vscrollResizeObserver&&(this.$_sizeObserved&&=(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,!1))},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return Mo(this.tag,this.$slots.default())}};CV.__file=`src/components/DynamicScrollerItem.vue`;function wV(e,t,n){let r=Z(()=>gx.value?!1:!Q.onlyTests),i=Z(()=>cx.value===``),a=z(cx.value),o=Z(()=>rx.value===`default`);sr(()=>ax.value,e=>{!e&&(rx.value===`asc`||rx.value===`desc`)&&(rx.value=`default`)}),zp(()=>cx.value,e=>{a.value=e?.trim()??``},{debounce:256});function s(t){cx.value=``,t&&e.value?.focus()}function c(t){Q.failed=!1,Q.success=!1,Q.skipped=!1,Q.slow=!1,Q.onlyTests=!1,t&&e.value?.focus()}function l(e){ix.value=ex,e&&t.value?.focus()}function u(e){rx.value=`default`,e&&n.value?.focus()}function d(){c(!1),s(!0),l(!1),u(!1)}function f(e,t,n,r,i,a,o,s){vx.value&&(nx.value.search=e?.trim()??``,nx.value.failed=t,nx.value.success=n,nx.value.skipped=r,nx.value.slow=i,nx.value.onlyTests=a,nx.value.project=o,nx.value.projectSort=s===`default`?void 0:s)}return sr(()=>[a.value,Q.failed,Q.success,Q.skipped,Q.slow,Q.onlyTests,ix.value,rx.value],([e,t,n,r,i,a,o,s])=>{f(e,t,n,r,i,a,o,s),$.filterNodes()},{flush:`post`}),sr(()=>$b.value.length,e=>{e&&(nx.value.expandAll=void 0)},{flush:`post`}),{initialized:vx,filter:Q,search:cx,disableFilter:r,isFiltered:hx,isFilteredByStatus:gx,disableClearSearch:i,clearAll:d,clearSearch:s,clearFilter:c,filteredFiles:_x,testsTotal:bx,uiEntries:Qb,searchMatcher:ux,enableProjects:ax,disableClearProjects:ox,currentProject:ix,currentProjectName:sx,clearProject:l,projectSort:rx,clearProjectSort:u,disableClearProjectSort:o}}var TV=[`disabled`],EV={"flex-1":``,"ms-2":``,"select-none":``,"whitespace-nowrap":``,truncate:``},DV=H({__name:`FilterStatus`,props:bi({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Bi(e,`modelValue`);function n(){e.disabled||(t.value=!t.value)}return(r,i)=>(W(),G(`label`,so({class:[`font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden`,e.disabled?`cursor-not-allowed op50`:`cursor-pointer`]},r.$attrs,{onClick:Qs(n,[`prevent`])}),[q(`span`,{class:P([t.value?`i-carbon:checkbox-checked-filled`:`i-carbon:checkbox`]),"text-lg":``,"flex-shrink-0":``,"aria-hidden":`true`},null,2),Qn(q(`input`,{"onUpdate:modelValue":i[0]||=e=>t.value=e,type:`checkbox`,disabled:e.disabled,"sr-only":``},null,8,TV),[[Ws,t.value]]),q(`span`,EV,F(e.label),1)],16))}}),OV=[`open`],kV=H({__name:`ResultsPanel`,props:{color:{}},setup(e){let t=z(!0);return(n,r)=>(W(),G(`div`,{open:t.value,class:`results-panel`,"data-testid":`results-panel`,onToggle:r[0]||=e=>t.value=e.target.open},[q(`div`,{p:`y1`,"text-sm":``,"bg-base":``,"items-center":``,"z-5":``,"gap-2":``,class:P(e.color),"w-full":``,flex:``,"select-none":``,sticky:``,top:`-1`},[r[1]||=q(`div`,{"flex-1":``,"h-1px":``,border:`base b`,op80:``},null,-1),li(n.$slots,`summary`,{open:t.value}),r[2]||=q(`div`,{"flex-1":``,"h-1px":``,border:`base b`,op80:``},null,-1)],2),li(n.$slots,`default`)],40,OV))}}),AV={type:`button`,dark:`op75`,bg:`gray-200 dark:#111`,hover:`op100`,"rounded-1":``,"p-0.5":``},jV=H({__name:`IconAction`,props:{icon:{}},setup(e){return(t,n)=>(W(),G(`button`,AV,[q(`span`,{block:``,class:P([e.icon,`dark:op85 hover:op100`]),op65:``},null,2)]))}}),MV=[`aria-label`,`data-current`],NV={key:1,"w-4":``},PV={flex:``,"items-baseline":``,"gap-2":``,"overflow-hidden":``},FV={key:0,class:`i-logos:typescript-icon`,"flex-shrink-0":``},IV={key:1,class:`rounded-sm px-1 text-xs font-light bg-cyan-500/20 text-cyan-700 dark:text-cyan-300`,"flex-shrink-0":``},LV={"text-sm":``,truncate:``,"font-light":``},RV=[`innerHTML`],zV={"gap-1":``,"justify-end":``,"items-center":``,"flex-grow-1":``,"pl-1":``,class:`test-actions`},BV={key:0,class:`op100 gap-1 p-y-1`,grid:`~ items-center cols-[1.5em_1fr]`},VV={key:1},HV=sc(H({__name:`ExplorerItem`,props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},label:{},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){let t=Z(()=>ak.state.idMap.get(e.taskId)),n=Z(()=>{if(WD)return!1;let e=t.value;return e&&nS(e)});function r(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?$.collapseNode(e.taskId):$.expandNode(e.taskId)}async function i(t){e.onItemClick?.(t),CD.value&&(bD.value=!0,await Ln()),e.type===`file`?await _k([t.file]):await vk(t)}function a(e){return ak.rpc.updateSnapshot(e.file)}let o=Z(()=>e.indent<=0?[]:Array.from({length:e.indent},(t,n)=>`${e.taskId}-${n}`)),s=Z(()=>{let t=o.value,n=[];return(e.type===`file`||e.type===`suite`)&&n.push(`min-content`),n.push(`min-content`),e.type===`suite`&&e.typecheck&&n.push(`min-content`),n.push(`minmax(0, 1fr)`),n.push(`min-content`),`grid-template-columns: ${t.map(()=>`1rem`).join(` `)} ${n.join(` `)};`}),c=Z(()=>ok.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`),l=Z(()=>px(e.name)),u=Z(()=>{let e=mx.value,t=l.value;return e?t.replace(e,e=>`<span class="highlight">${e}</span>`):t}),d=Z(()=>e.type!==`file`&&e.disableTaskLocation),f=Z(()=>e.type===`file`?`Open test details`:e.type===`suite`?`View Suite Source Code`:`View Test Source Code`),p=Z(()=>d.value?`color-red5 dark:color-#f43f5e`:null);function m(){let n=t.value;e.type===`file`?e.onItemClick?.(n):mD(n)}let h=Z(()=>Xb(e.projectNameColor));return(l,g)=>{let _=ii(`tooltip`);return t.value?(W(),G(`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:ve(s.value),"aria-label":e.name,"data-current":e.current,"data-testid":`explorer-item`,onClick:g[2]||=e=>r()},[e.indent>0?(W(!0),G(U,{key:0},si(o.value,e=>(W(),G(`div`,{key:e,border:`solid gray-500 dark:gray-400`,class:`vertical-line`,"h-28px":``,"inline-flex":``,"mx-2":``,op20:``}))),128)):X(``,!0),e.type===`file`||e.type===`suite`?(W(),G(`div`,NV,[q(`div`,{class:P(e.opened?`i-carbon:chevron-down`:`i-carbon:chevron-right op20`),op20:``},null,2)])):X(``,!0),J(nR,{state:e.state,mode:t.value.mode,"failed-snapshot":n.value,"w-4":``},null,8,[`state`,`mode`,`failed-snapshot`]),q(`div`,PV,[e.type===`file`&&e.typecheck?Qn((W(),G(`div`,FV,null,512)),[[_,`This is a typecheck test. It won't report results of the runtime tests`,void 0,{bottom:!0}]]):X(``,!0),e.type===`file`&&e.label?(W(),G(`span`,IV,F(e.label),1)):X(``,!0),q(`span`,LV,[e.type===`file`&&e.projectName?(W(),G(`span`,{key:0,class:`rounded-full py-0.5 px-2 mr-1 text-xs`,style:ve({backgroundColor:e.projectNameColor,color:h.value})},F(e.projectName),5)):X(``,!0),q(`span`,{class:P(e.state===`fail`?`text-red-700 dark:text-red-500`:void 0),innerHTML:u.value},null,10,RV)]),typeof e.duration==`number`?(W(),G(`span`,{key:2,text:`xs`,class:P(e.slow?`text-yellow-700 dark:text-yellow-500`:`op20`),style:{"white-space":`nowrap`}},F(e.duration>0?e.duration:`< 1`)+`ms `,3)):X(``,!0)]),q(`div`,zV,[!B(WD)&&n.value&&B(ok).api?.allowExec&&B(ok).api?.allowWrite?Qn((W(),K(jV,{key:0,"data-testid":`btn-fix-snapshot`,title:`Fix failed snapshot(s)`,icon:`i-carbon:result-old`,onClick:g[0]||=Qs(e=>a(t.value),[`prevent`,`stop`])},null,512)),[[_,`Fix failed snapshot(s)`,void 0,{bottom:!0}]]):X(``,!0),J(B(ad),{placement:`bottom`,class:P([`w-1.4em h-1.4em op100 rounded flex`,p.value])},{popper:V(()=>[d.value?(W(),G(`div`,BV,[g[5]||=q(`div`,{class:`i-carbon:information-square w-1.5em h-1.5em`},null,-1),q(`div`,null,[Y(F(f.value)+`: this feature is not available, you have disabled `,1),g[3]||=q(`span`,{class:`text-[#add467]`},`includeTaskLocation`,-1),g[4]||=Y(` in your configuration file.`,-1)]),g[6]||=q(`div`,{style:{"grid-column":`2`}},` Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. `,-1)])):(W(),G(`div`,VV,F(f.value),1))]),default:V(()=>[J(xk,{"data-testid":`btn-open-details`,icon:e.type===`file`?`i-carbon:intrusion-prevention`:`i-carbon:code-reference`,onClick:Qs(m,[`prevent`,`stop`])},null,8,[`icon`])]),_:1},8,[`class`]),B(WD)?X(``,!0):Qn((W(),K(xk,{key:1,"data-testid":`btn-run-test`,title:c.value,icon:`i-carbon:play-filled-alt`,"text-green-700":``,"dark:text-green-500":``,disabled:B(ok).api?.allowExec===!1,onClick:g[1]||=Qs(e=>i(t.value),[`prevent`,`stop`])},null,8,[`title`,`disabled`])),[[_,c.value,void 0,{bottom:!0}]])])],12,MV)):X(``,!0)}}}),[[`__scopeId`,`data-v-de75cd53`]]),UV={h:`full`,flex:`~ col`},WV={p:`2`,"h-10":``,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b base`},GV={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":``},KV={class:`relative flex-1`},qV=[`value`],JV=[`value`],YV={p:`l3 y2 r2`,"bg-header":``,border:`b-2 base`,grid:`~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2`,"items-center":``},XV={class:`relative flex-1`},ZV={key:0,value:`asc`,class:`text-base bg-base`},QV={key:1,value:`desc`,class:`text-base bg-base`},$V={p:`l3 y2 r2`,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b-2 base`},eH=[`op`],tH={p:`l3 y2 r2`,"items-center":``,"bg-header":``,border:`b-2 base`,flex:`~ wrap gap-x-4 justify-between`},nH={"min-w-full":``,flex:`~ gap-2 items-center`},rH={grid:`~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]`},iH={"text-red-700":``,"dark:text-red-500":``},aH={"text-yellow-700":``,"dark:text-yellow-500":``},oH={"text-green-700":``,"dark:text-green-500":``},sH={class:`text-purple-700 dark:text-purple-400`},cH={key:0,flex:`~ col`,"items-center":``,p:`x4 y4`,"font-light":``},lH={key:0,"text-red":``,"text-center":``},uH={key:1,op30:``},dH=[`disabled`],fH=[`disabled`],pH={key:1,flex:`~ col`,"items-center":``,p:`x4 y4`,"font-light":``},mH=H({inheritAttrs:!1,__name:`Explorer`,props:{onItemClick:{type:Function}},emits:[`item-click`,`run`],setup(e,{emit:t}){let n=t,r=Z(()=>ok.value.includeTaskLocation),i=Z(()=>{let e=ok.value.slowTestThreshold;return typeof e==`number`?` (>${e}ms)`:``}),a=z(),o=z(),s=z(),{initialized:c,filter:l,search:u,disableFilter:d,isFiltered:f,isFilteredByStatus:p,disableClearSearch:m,clearAll:h,clearSearch:g,clearFilter:_,filteredFiles:v,testsTotal:y,uiEntries:b,enableProjects:x,disableClearProjects:S,currentProject:C,currentProjectName:w,clearProject:T,clearProjectSort:ee,disableClearProjectSort:E,searchMatcher:D}=wV(a,o,s);return(t,O)=>{let k=ii(`tooltip`);return W(),G(`div`,UV,[q(`div`,null,[q(`div`,WV,[li(t.$slots,`header`,{filteredFiles:B(f)||B(p)?B(v):void 0})]),B(x)?(W(),G(`div`,GV,[O[19]||=q(`div`,{class:`i-carbon:workspace`,"flex-shrink-0":``},null,-1),O[20]||=q(`label`,{for:`project-select`,"text-sm":``},` Projects `,-1),q(`div`,KV,[Qn(q(`select`,{id:`project-select`,ref_key:`selectProjectRef`,ref:o,"onUpdate:modelValue":O[0]||=e=>rn(C)?C.value=e: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`},[q(`option`,{value:B(ex),class:`text-base bg-base`},` All Projects `,8,qV),(W(!0),G(U,null,si(B(ck),e=>(W(),G(`option`,{key:e,value:e,class:`text-base bg-base`},F(e),9,JV))),128))],512),[[Ks,B(C)]]),O[18]||=q(`div`,{class:`i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none`},null,-1)]),Qn(J(xk,{disabled:B(S),title:`Clear project filter`,icon:`i-carbon:filter-remove`,onClickPassive:O[1]||=e=>B(T)(!0)},null,8,[`disabled`]),[[k,`Clear project filter`,void 0,{bottom:!0}]])])):X(``,!0),q(`div`,YV,[O[25]||=q(`div`,{class:`i-carbon:arrows-vertical`,"flex-shrink-0":``},null,-1),O[26]||=q(`label`,{for:`project-sort`,"text-sm":``},` Sort by `,-1),q(`div`,XV,[Qn(q(`select`,{id:`project-sort`,ref_key:`sortProjectRef`,ref:s,"onUpdate:modelValue":O[2]||=e=>rn(rx)?rx.value=e: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`},[O[21]||=q(`option`,{value:`default`,class:`text-base bg-base`},` Default `,-1),O[22]||=q(`option`,{value:`duration-desc`,class:`text-base bg-base`},` Slowest first `,-1),O[23]||=q(`option`,{value:`duration-asc`,class:`text-base bg-base`},` Fastest first `,-1),B(x)?(W(),G(`option`,ZV,` Project A-Z `)):X(``,!0),B(x)?(W(),G(`option`,QV,` Project Z-A `)):X(``,!0)],512),[[Ks,B(rx)]]),O[24]||=q(`div`,{class:`i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none`},null,-1)]),Qn(J(xk,{disabled:B(E),title:`Reset sort`,icon:`i-carbon:filter-reset`,onClickPassive:O[3]||=e=>B(ee)(!0)},null,8,[`disabled`]),[[k,`Reset sort`,void 0,{bottom:!0}]])]),q(`div`,$V,[O[27]||=q(`div`,{class:`i-carbon:search`,"flex-shrink-0":``},null,-1),Qn(q(`input`,{ref_key:`searchBox`,ref:a,"onUpdate:modelValue":O[4]||=e=>rn(u)?u.value=e:null,placeholder:`Search... (e.g. test name, tag:expression)`,outline:`none`,bg:`transparent`,font:`light`,text:`sm`,"flex-1":``,"pl-1":``,op:B(u).length?`100`:`50`,onKeydown:[O[5]||=ec(e=>B(g)(!1),[`esc`]),O[6]||=ec(e=>n(`run`,B(f)||B(p)?B(v):void 0),[`enter`])]},null,40,eH),[[Us,B(u)]]),Qn(J(xk,{disabled:B(m),title:`Clear search`,icon:`i-carbon:filter-remove`,onClickPassive:O[7]||=e=>B(g)(!0)},null,8,[`disabled`]),[[k,`Clear search`,void 0,{bottom:!0}]])]),q(`div`,tH,[q(`div`,nH,[O[28]||=q(`div`,{"aria-hidden":`true`,class:`i-carbon:filter`,"flex-shrink-0":``},null,-1),O[29]||=q(`div`,{"flex-grow-1":``,"text-sm":``},` Filter `,-1),Qn(J(xk,{disabled:B(d),title:`Clear filter`,icon:`i-carbon:filter-remove`,onClickPassive:O[8]||=e=>B(_)(!1)},null,8,[`disabled`]),[[k,`Clear Filter`,void 0,{bottom:!0}]])]),J(DV,{modelValue:B(l).failed,"onUpdate:modelValue":O[9]||=e=>B(l).failed=e,label:`Fail`},null,8,[`modelValue`]),J(DV,{modelValue:B(l).success,"onUpdate:modelValue":O[10]||=e=>B(l).success=e,label:`Pass`},null,8,[`modelValue`]),J(DV,{modelValue:B(l).skipped,"onUpdate:modelValue":O[11]||=e=>B(l).skipped=e,label:`Skip`},null,8,[`modelValue`]),J(DV,{modelValue:B(l).onlyTests,"onUpdate:modelValue":O[12]||=e=>B(l).onlyTests=e,label:`Only Tests`},null,8,[`modelValue`]),J(DV,{modelValue:B(l).slow,"onUpdate:modelValue":O[13]||=e=>B(l).slow=e,label:`Slow${i.value}`},null,8,[`modelValue`,`label`])])]),q(`div`,{class:`scrolls`,"flex-auto":``,"py-1":``,onScrollPassive:O[17]||=(...e)=>B(iu)&&B(iu)(...e)},[J(kV,null,ci({default:V(()=>[(B(f)||B(p)||B(w))&&B(b).length===0?(W(),G(U,{key:0},[B(c)?(W(),G(`div`,cH,[B(D).error?(W(),G(`div`,lH,F(B(D).error),1)):(W(),G(`div`,uH,` No matched test `)),q(`button`,{type:`button`,"font-light":``,"text-sm":``,border:`~ gray-400/50 rounded`,p:`x2 y0.5`,m:`t2`,op:`50`,class:P(B(m)?null:`hover:op100`),disabled:B(m),onClickPassive:O[14]||=e=>B(g)(!0)},` Clear Search `,42,dH),q(`button`,{type:`button`,"font-light":``,"text-sm":``,border:`~ gray-400/50 rounded`,p:`x2 y0.5`,m:`t2`,op:`50`,class:P(B(d)?null:`hover:op100`),disabled:B(d),onClickPassive:O[15]||=e=>B(_)(!0)},` Clear Filter `,42,fH),q(`button`,{type:`button`,"font-light":``,op:`50 hover:100`,"text-sm":``,border:`~ gray-400/50 rounded`,p:`x2 y0.5`,m:`t2`,onClickPassive:O[16]||=(...e)=>B(h)&&B(h)(...e)},` Clear All `,32)])):(W(),G(`div`,pH,[...O[32]||=[q(`div`,{class:`i-carbon:circle-dash animate-spin`},null,-1),q(`div`,{op30:``},` Loading... `,-1)]]))],64)):(W(),K(B(_V),{key:1,"page-mode":``,"key-field":`id`,"item-size":28,items:B(b),buffer:100},{default:V(({item:t})=>[J(HV,{class:P([`h-28px m-0 p-0`,B(iD)===t.id||!B(iD)&&B(eD)===t.id?`bg-active`:``]),"task-id":t.id,expandable:t.expandable,type:t.type,current:B(eD)===t.id,indent:t.indent,name:t.name,typecheck:t.typecheck===!0,label:t.label,"project-name":t.projectName??``,"project-name-color":t.projectNameColor??``,state:t.state,duration:t.duration,slow:t.slow===!0,opened:t.expanded,"disable-task-location":!r.value,"on-item-click":e.onItemClick},null,8,[`task-id`,`expandable`,`type`,`current`,`indent`,`name`,`typecheck`,`label`,`project-name`,`project-name-color`,`state`,`duration`,`slow`,`opened`,`disable-task-location`,`class`,`on-item-click`])]),_:1},8,[`items`]))]),_:2},[B(c)?{name:`summary`,fn:V(()=>[q(`div`,rH,[q(`span`,iH,` FAIL (`+F(B(y).failed)+`) `,1),O[30]||=q(`span`,null,`/`,-1),q(`span`,aH,` RUNNING (`+F(B(y).running)+`) `,1),q(`span`,oH,` PASS (`+F(B(y).success)+`) `,1),O[31]||=q(`span`,null,`/`,-1),q(`span`,sH,` SKIP (`+F(B(l).onlyTests?B(y).skipped:`--`)+`) `,1)])]),key:`0`}:void 0]),1024)],32)])}}}),hH={class:`flex text-lg`},gH=H({__name:`Navigation`,setup(e){function t(){return ak.rpc.updateSnapshot()}let n=Z(()=>Rb.value?`light`:`dark`);async function r(e){ok.value.api?.allowExec!==!1&&(CD.value&&(bD.value=!0,await Ln(),yD.value&&(MD(!0),await Ln())),e?.length?await _k(e):await mk())}function i(){$.collapseAllNodes()}function a(){$.expandAllNodes()}function o(e){return ok.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e?e.length===0?`No test to run (clear filter)`:`Rerun filtered`:`Rerun all`}return(e,s)=>{let c=ii(`tooltip`);return W(),K(mH,{border:`r base`,"on-item-click":B(PD),nested:!0,onRun:r},{header:V(({filteredFiles:e})=>[s[8]||=q(`img`,{"w-6":``,"h-6":``,src:``+new URL(`../favicon.svg`,import.meta.url).href,alt:`Vitest logo`},null,-1),s[9]||=q(`span`,{"font-light":``,"text-sm":``,"flex-1":``},`Vitest`,-1),q(`div`,hH,[Qn(J(xk,{title:`Collapse tests`,disabled:!B(vx),"data-testid":`collapse-all`,icon:`i-carbon:collapse-all`,onClick:s[0]||=e=>i()},null,8,[`disabled`]),[[ds,!B(yx)],[c,`Collapse tests`,void 0,{bottom:!0}]]),Qn(J(xk,{disabled:!B(vx),title:`Expand tests`,"data-testid":`expand-all`,icon:`i-carbon:expand-all`,onClick:s[1]||=e=>a()},null,8,[`disabled`]),[[ds,B(yx)],[c,`Expand tests`,void 0,{bottom:!0}]]),Qn(J(xk,{title:`Show dashboard`,class:`!animate-100ms`,"animate-count-1":``,icon:`i-carbon:dashboard`,onClick:s[2]||=e=>B(MD)(!0)},null,512),[[ds,B(SD)&&!B(CD)||!B(vD)],[c,`Dashboard`,void 0,{bottom:!0}]]),B(SD)&&!B(CD)?(W(),K(B(ad),{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:V(()=>[...s[6]||=[q(`div`,{class:`op100 gap-1 p-y-1`,grid:`~ items-center cols-[1.5em_1fr]`},[q(`div`,{class:`i-carbon:information-square w-1.5em h-1.5em`}),q(`div`,null,`Coverage enabled but missing html reporter.`),q(`div`,{style:{"grid-column":`2`}},` Add html reporter to your configuration to see coverage here. `)],-1)]]),default:V(()=>[s[7]||=q(`div`,{class:`i-carbon:folder-off ma`},null,-1)]),_:1})):X(``,!0),B(CD)?Qn((W(),K(xk,{key:1,disabled:B(bD),title:`Show coverage`,class:`!animate-100ms`,"animate-count-1":``,icon:`i-carbon:folder-details-reference`,onClick:s[3]||=e=>B(FD)()},null,8,[`disabled`])),[[ds,!B(yD)],[c,`Coverage`,void 0,{bottom:!0}]]):X(``,!0),B($).summary.failedSnapshot&&!B(WD)&&B(ok).api?.allowExec&&B(ok).api?.allowWrite?Qn((W(),K(xk,{key:2,icon:`i-carbon:result-old`,disabled:!B($).summary.failedSnapshotEnabled,onClick:s[4]||=e=>B($).summary.failedSnapshotEnabled&&t()},null,8,[`disabled`])),[[c,`Update all failed snapshot(s)`,void 0,{bottom:!0}]]):X(``,!0),B(WD)?X(``,!0):Qn((W(),K(xk,{key:3,disabled:e?.length===0||!B(ok).api?.allowExec,icon:`i-carbon:play`,"data-testid":`btn-run-all`,onClick:t=>r(e)},null,8,[`disabled`,`onClick`])),[[c,o(e),void 0,{bottom:!0}]]),Qn(J(xk,{icon:`dark:i-carbon-moon i-carbon:sun`,onClick:s[5]||=e=>B(zb)()},null,512),[[c,`Toggle to ${n.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,[`on-item-click`])}}}),_H={"h-3px":``,relative:``,"overflow-hidden":``,class:`px-0`,"w-screen":``},vH=sc(H({__name:`ProgressBar`,setup(e){let{width:t}=Tm(),n=Z(()=>[$.summary.files===0&&`!bg-gray-4 !dark:bg-gray-7`,!Lx.value&&`in-progress`].filter(Boolean).join(` `)),r=Z(()=>{let e=$.summary.files;return e>0?t.value*$.summary.filesSuccess/e:0}),i=Z(()=>{let e=$.summary.files;return e>0?t.value*$.summary.filesFailed/e:0}),a=Z(()=>$.summary.files-$.summary.filesFailed-$.summary.filesSuccess),o=Z(()=>{let e=$.summary.files;return e>0?t.value*a.value/e:0});return(e,t)=>(W(),G(`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:P(n.value)},[q(`div`,_H,[q(`div`,{absolute:``,"l-0":``,"t-0":``,"bg-red-700":``,"dark:bg-red-500":``,"h-3px":``,class:P(n.value),style:ve(`width: ${i.value}px;`)},` \xA0 `,6),q(`div`,{absolute:``,"l-0":``,"t-0":``,"bg-green-700":``,"dark:bg-green-500":``,"h-3px":``,class:P(n.value),style:ve(`left: ${i.value}px; width: ${r.value}px;`)},` \xA0 `,6),q(`div`,{absolute:``,"l-0":``,"t-0":``,"bg-yellow-700":``,"dark:bg-yellow-500":``,"h-3px":``,class:P(n.value),style:ve(`left: ${r.value+i.value}px; width: ${o.value}px;`)},` \xA0 `,6)])],2))}}),[[`__scopeId`,`data-v-d5dc96ee`]]),yH=Object.defineProperty,bH=(e,t,n)=>t in e?yH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xH=(e,t,n)=>bH(e,typeof t==`symbol`?t:t+``,n),SH=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(SH||{});function CH(e){return e.nodeType===e.ELEMENT_NODE}var wH=class{constructor(){xH(this,`idNodeMap`,new Map),xH(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function TH(){return new wH}function EH(e,t){return!e||!t||e.type!==t.type?!1:e.type===SH.Document?e.compatMode===t.compatMode:e.type===SH.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===SH.Comment||e.type===SH.Text||e.type===SH.CDATA?e.textContent===t.textContent:e.type===SH.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function DH(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var OH=RegExp(`(max|min)-device-(width|height)`,`g`),kH={postcssPlugin:`postcss-custom-selectors`,prepare(){return{postcssPlugin:`postcss-custom-selectors`,AtRule:function(e){e.params.match(OH)&&(e.params=e.params.replace(OH,`$1-$2`))}}}},AH={postcssPlugin:`postcss-hover-classes`,prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(e){e.includes(`:hover`)&&(t.selector+=`,
49
+ `+e.replace(/:hover/g,`.\\:hover`)),e.includes(`:active`)&&(t.selector+=`,
50
+ `+e.replace(/:active/g,`.\\:active`)),e.includes(`:focus-visible`)&&(t.selector+=`,
51
+ `+e.replace(/:focus-visible/g,`.\\:focus-visible`)),e.includes(`:focus-within`)&&(t.selector+=`,
52
+ `+e.replace(/:focus-within/g,`.\\:focus-within`)),/:focus(?![-\w])/.test(e)&&(t.selector+=`,
53
+ `+e.replace(/:focus(?![-\w])/g,`.\\:focus`))}))}}}};function jH(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function MH(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,`__esModule`,{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var NH={exports:{}},PH=String,FH=function(){return{isColorSupported:!1,reset:PH,bold:PH,dim:PH,italic:PH,underline:PH,inverse:PH,hidden:PH,strikethrough:PH,black:PH,red:PH,green:PH,yellow:PH,blue:PH,magenta:PH,cyan:PH,white:PH,gray:PH,bgBlack:PH,bgRed:PH,bgGreen:PH,bgYellow:PH,bgBlue:PH,bgMagenta:PH,bgCyan:PH,bgWhite:PH}};NH.exports=FH(),NH.exports.createColors=FH;var IH=NH.exports,LH=MH(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),RH=IH,zH=LH,BH=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),n!==void 0&&r!==void 0&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=RH.isColorSupported,zH&&e&&(t=zH(t));let n=t.split(/\r?\n/),r=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),a=String(i).length,o,s;if(e){let{bold:e,gray:t,red:n}=RH.createColors(!0);o=t=>e(n(t)),s=e=>t(e)}else o=s=e=>e;return n.slice(r,i).map((e,t)=>{let n=r+1+t,i=` `+(` `+n).slice(-a)+` | `;if(n===this.line){let t=s(i.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return o(`>`)+s(i)+e+`
54
+ `+t+o(`^`)}return` `+s(i)+e}).join(`
55
+ `)}toString(){let e=this.showSourceCode();return e&&=`
56
+
57
+ `+e+`
58
+ `,this.name+`: `+this.message+e}},VH=BH;BH.default=BH;var HH={};HH.isClean=Symbol(`isClean`),HH.my=Symbol(`my`);var UH={after:`
59
+ `,beforeClose:`
60
+ `,beforeComment:`
61
+ `,beforeDecl:`
62
+ `,beforeOpen:` `,beforeRule:`
63
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function WH(e){return e[0].toUpperCase()+e.slice(1)}var GH=class{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
64
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;let i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return UH[n];let a=e.root();if(a.rawCache||={},a.rawCache[n]!==void 0)return a.rawCache[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);{let i=`raw`+WH(n);this[i]?r=this[i](a,e):a.walk(e=>{if(r=e.raws[t],r!==void 0)return!1})}return r===void 0&&(r=UH[n]),a.rawCache[n]=r,r}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
65
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
66
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
67
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
68
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
69
+ `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}},KH=GH;GH.default=GH;var qH=KH;function JH(e,t){new qH(t).stringify(e)}var YH=JH;JH.default=JH;var{isClean:XH,my:ZH}=HH,QH=VH,$H=KH,eU=YH;function tU(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],a=typeof i;r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>tU(e,n)):(a===`object`&&i!==null&&(i=tU(i)),n[r]=i)}return n}var nU=class{constructor(e={}){this.raws={},this[XH]=!1,this[ZH]=!0;for(let t in e)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=tU(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new QH(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markDirty(){if(this[XH]){this[XH]=!1;let e=this;for(;e=e.parent;)e[XH]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)n[t]===`
70
+ `?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new $H().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=eU){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}},rU=nU;nU.default=nU;var iU=rU,aU=class extends iU{constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}},oU=aU;aU.default=aU;var sU=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,cU={nanoid:(e=21)=>{let t=``,n=e;for(;n--;)t+=sU[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}},{SourceMapConsumer:lU,SourceMapGenerator:uU}=LH,{existsSync:dU,readFileSync:fU}=LH,{dirname:pU,join:mU}=LH;function hU(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var gU=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=pU(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new lU(this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return hU(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=pU(e),dU(e))return this.mapFile=e,fU(e,`utf-8`).toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw Error(`Unable to load previous source map: `+n.toString());return e}}else if(t instanceof lU)return uU.fromSourceMap(t).toString();else if(t instanceof uU)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=mU(pU(e),t)),this.loadFile(t)}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},_U=gU;gU.default=gU;var{SourceMapConsumer:vU,SourceMapGenerator:yU}=LH,{fileURLToPath:bU,pathToFileURL:xU}=LH,{isAbsolute:SU,resolve:CU}=LH,{nanoid:wU}=cU,TU=LH,EU=VH,DU=_U,OU=Symbol(`fromOffsetCache`),kU=!!(vU&&yU),AU=!!(CU&&SU),jU=class{constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!AU||/^\w+:\/\//.test(t.from)||SU(t.from)?this.file=t.from:this.file=CU(t.from)),AU&&kU){let e=new DU(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+wU(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if(typeof r.offset==`number`){let e=this.fromOffset(r.offset);a=e.line,o=e.col}else a=r.line,o=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let s=this.origin(t,n,a,o);return i=s?new EU(e,s.endLine===void 0?s.line:{column:s.column,line:s.line},s.endLine===void 0?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,r.plugin):new EU(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:o,line:a},this.css,this.file,r.plugin),i.input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(xU&&(i.input.url=xU(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,n;if(this[OU])n=this[OU];else{let e=this.css.split(`
71
+ `);n=Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[OU]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t=n.length-2,i;for(;r<t;)if(i=r+(t-r>>1),e<n[i])t=i-1;else if(e>=n[i+1])r=i+1;else{r=i;break}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:CU(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,r){if(!this.map)return!1;let i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;let o;typeof n==`number`&&(o=i.originalPositionFor({column:r,line:n}));let s;s=SU(a.source)?xU(a.source):new URL(a.source,this.map.consumer().sourceRoot||xU(this.map.mapFile));let c={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol===`file:`)if(bU)c.file=bU(s);else throw Error(`file: protocol is not available in this PostCSS build`);let l=i.sourceContentFor(a.source);return l&&(c.source=l),c}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},MU=jU;jU.default=jU,TU&&TU.registerInput&&TU.registerInput(jU);var{SourceMapConsumer:NU,SourceMapGenerator:PU}=LH,{dirname:FU,relative:IU,resolve:LU,sep:RU}=LH,{pathToFileURL:zU}=LH,BU=MU,VU=!!(NU&&PU),HU=!!(FU&&LU&&IU&&RU),UU=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
72
+ `;this.css.includes(`\r
73
+ `)&&(t=`\r
74
+ `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||FU(e.file),r;this.mapOpts.sourcesContent===!1?(r=new NU(e.text),r.sourcesContent&&=null):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t)}else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}generate(){if(this.clearAnnotation(),HU&&VU&&this.isMap())return this.generateMap();{let e=``;return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=PU.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new PU({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=``,this.map=new PU({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n=`<no source>`,r={generated:{column:0,line:0},original:{column:0,line:0},source:``},i,a;this.stringify(this.root,(o,s,c)=>{if(this.css+=o,s&&c!==`end`&&(r.generated.line=e,r.generated.column=t-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),i=o.match(/\n/g),i?(e+=i.length,a=o.lastIndexOf(`
75
+ `),t=o.length-a):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(e=>e.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(e=>e.withContent()):!0:this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?FU(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=FU(LU(n,this.mapOpts.annotation)));let r=IU(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new BU(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(zU){let t=zU(e).toString();return this.memoizedFileURLs.set(e,t),t}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;RU===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},WU=rU,GU=class extends WU{constructor(e){super(e),this.type=`comment`}},KU=GU;GU.default=GU;var{isClean:qU,my:JU}=HH,YU=oU,XU=KU,ZU=rU,QU,$U,eW,tW;function nW(e){return e.map(e=>(e.nodes&&=nW(e.nodes),delete e.source,e))}function rW(e){if(e[qU]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)rW(t)}var iW=class e extends ZU{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,n){if(typeof t==`string`)t=nW(QU(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new YU(t)]}else if(t.selector)t=[new $U(t)];else if(t.name)t=[new eW(t)];else if(t.text)t=[new XU(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[JU]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[qU]&&rW(t),t.raws.before===void 0&&n&&n.raws.before!==void 0&&(t.raws.before=n.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};iW.registerParse=e=>{QU=e},iW.registerRule=e=>{$U=e},iW.registerAtRule=e=>{eW=e},iW.registerRoot=e=>{tW=e};var aW=iW;iW.default=iW,iW.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,eW.prototype):e.type===`rule`?Object.setPrototypeOf(e,$U.prototype):e.type===`decl`?Object.setPrototypeOf(e,YU.prototype):e.type===`comment`?Object.setPrototypeOf(e,XU.prototype):e.type===`root`&&Object.setPrototypeOf(e,tW.prototype),e[JU]=!0,e.nodes&&e.nodes.forEach(e=>{iW.rebuild(e)})};var oW=aW,sW,cW,lW=class extends oW{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new sW(new cW,this,e).stringify()}};lW.registerLazyResult=e=>{sW=e},lW.registerProcessor=e=>{cW=e};var uW=lW;lW.default=lW;var dW=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}},fW=dW;dW.default=dW;var pW=fW,mW=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new pW(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type===`warning`)}get content(){return this.css}},hW=mW;mW.default=mW;var gW=39,_W=34,vW=92,yW=47,bW=10,xW=32,SW=12,CW=9,wW=13,TW=91,EW=93,DW=40,OW=41,kW=123,AW=125,jW=59,MW=42,NW=58,PW=64,FW=/[\t\n\f\r "#'()/;[\\\]{}]/g,IW=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,LW=/.[\r\n"'(/\\]/,RW=/[\da-f]/i,zW=function(e,t={}){let n=e.css.valueOf(),r=t.ignoreErrors,i,a,o,s,c,l,u,d,f,p,m=n.length,h=0,g=[],_=[];function v(){return h}function y(t){throw e.error(`Unclosed `+t,h)}function b(){return _.length===0&&h>=m}function x(e){if(_.length)return _.pop();if(h>=m)return;let t=e?e.ignoreUnclosed:!1;switch(i=n.charCodeAt(h),i){case bW:case xW:case CW:case wW:case SW:a=h;do a+=1,i=n.charCodeAt(a);while(i===xW||i===bW||i===CW||i===wW||i===SW);p=[`space`,n.slice(h,a)],h=a-1;break;case TW:case EW:case kW:case AW:case NW:case jW:case OW:{let e=String.fromCharCode(i);p=[e,e,h];break}case DW:if(d=g.length?g.pop()[1]:``,f=n.charCodeAt(h+1),d===`url`&&f!==gW&&f!==_W&&f!==xW&&f!==bW&&f!==CW&&f!==SW&&f!==wW){a=h;do{if(l=!1,a=n.indexOf(`)`,a+1),a===-1)if(r||t){a=h;break}else y(`bracket`);for(u=a;n.charCodeAt(u-1)===vW;)--u,l=!l}while(l);p=[`brackets`,n.slice(h,a+1),h,a],h=a}else a=n.indexOf(`)`,h+1),s=n.slice(h,a+1),a===-1||LW.test(s)?p=[`(`,`(`,h]:(p=[`brackets`,s,h,a],h=a);break;case gW:case _W:o=i===gW?`'`:`"`,a=h;do{if(l=!1,a=n.indexOf(o,a+1),a===-1)if(r||t){a=h+1;break}else y(`string`);for(u=a;n.charCodeAt(u-1)===vW;)--u,l=!l}while(l);p=[`string`,n.slice(h,a+1),h,a],h=a;break;case PW:FW.lastIndex=h+1,FW.test(n),a=FW.lastIndex===0?n.length-1:FW.lastIndex-2,p=[`at-word`,n.slice(h,a+1),h,a],h=a;break;case vW:for(a=h,c=!0;n.charCodeAt(a+1)===vW;)a+=1,c=!c;if(i=n.charCodeAt(a+1),c&&i!==yW&&i!==xW&&i!==bW&&i!==CW&&i!==wW&&i!==SW&&(a+=1,RW.test(n.charAt(a)))){for(;RW.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===xW&&(a+=1)}p=[`word`,n.slice(h,a+1),h,a],h=a;break;default:i===yW&&n.charCodeAt(h+1)===MW?(a=n.indexOf(`*/`,h+2)+1,a===0&&(r||t?a=n.length:y(`comment`)),p=[`comment`,n.slice(h,a+1),h,a],h=a):(IW.lastIndex=h+1,IW.test(n),a=IW.lastIndex===0?n.length-1:IW.lastIndex-2,p=[`word`,n.slice(h,a+1),h,a],g.push(p),h=a);break}return h++,p}function S(e){_.push(e)}return{back:S,endOfFile:b,nextToken:x,position:v}},BW=aW,VW=class extends BW{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}},HW=VW;VW.default=VW,BW.registerAtRule(VW);var UW=aW,WW,GW,KW=class extends UW{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new WW(new GW,this,e).stringify()}};KW.registerLazyResult=e=>{WW=e},KW.registerProcessor=e=>{GW=e};var qW=KW;KW.default=KW,UW.registerRoot(KW);var JW={comma(e){return JW.split(e,[`,`],!0)},space(e){return JW.split(e,[` `,`
76
+ `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}},YW=JW;JW.default=JW;var XW=aW,ZW=YW,QW=class extends XW{constructor(e){super(e),this.type=`rule`,this.nodes||=[]}get selectors(){return ZW.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}},$W=QW;QW.default=QW,XW.registerRule(QW);var eG=oU,tG=zW,nG=KU,rG=HW,iG=qW,aG=$W,oG={empty:!0,space:!0};function sG(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}var cG=class{constructor(e){this.input=e,this.root=new iG,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new rG;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,r,i,a=!1,o=!1,s=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?c.push(n===`(`?`)`:`]`):n===`{`&&c.length>0?c.push(`}`):n===c[c.length-1]&&c.pop(),c.length===0)if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n===`{`){o=!0;break}else if(n===`}`){if(s.length>0){for(i=s.length-1,r=s[i];r&&r[0]===`space`;)r=s[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else s.push(e);else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,`params`,s),a&&(e=s[s.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),o&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(n=o,r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`)if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return a;i=n}return!1}comment(e){let t=new nG;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=tG(this.input)}decl(e,t){let n=new eG;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||sG(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){let t=e[0][0];if(t===`:`||t===`space`||t===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;let i;for(;e.length;)if(i=e.shift(),i[0]===`:`){n.raws.between+=i[1];break}else i[0]===`word`&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1];(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=[],o;for(;e.length&&(o=e[0][0],!(o!==`space`&&o!==`comment`));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],i[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}else if(i[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().indexOf(`!`)===0&&t!==`space`)break;i=r.pop()[1]+i}i.trim().indexOf(`!`)===0&&(n.important=!0,n.raws.important=i,e=r)}if(i[0]!==`space`&&i[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=a.map(e=>e[1]).join(``),a=[]),this.raw(n,`value`,a.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new aG;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&e.type===`rule`&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces=``)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0)if(n===`;`)if(r){this.decl(s,o);return}else break;else if(n===`{`){this.rule(s);return}else if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}else n===`:`&&(r=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],!(c!==`space`&&c!==`comment`));)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,c=!0,l,u;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?c=!1:a===`comment`?(u=n[e-1]?n[e-1][0]:`empty`,l=n[e+1]?n[e+1][0]:`empty`,!oG[u]&&!oG[l]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new aG;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],!(t!==`space`&&t!==`comment`));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],!(t!==`space`&&t!==`comment`));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word`,{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}},lG=aW,uG=cG,dG=MU;function fG(e,t){let n=new uG(new dG(e,t));try{n.parse()}catch(e){throw e}return n.root}var pG=fG;fG.default=fG,lG.registerParse(fG);var{isClean:mG,my:hG}=HH,gG=UU,_G=YH,vG=aW,yG=uW,bG=hW,xG=pG,SG=qW,CG={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},wG={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},TG={Once:!0,postcssPlugin:!0,prepare:!0},EG=0;function DG(e){return typeof e==`object`&&typeof e.then==`function`}function OG(e){let t=!1,n=CG[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,EG,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,EG,n+`Exit`]:[n,n+`Exit`]}function kG(e){let t;return t=e.type===`document`?[`Document`,EG,`DocumentExit`]:e.type===`root`?[`Root`,EG,`RootExit`]:OG(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function AG(e){return e[mG]=!1,e.nodes&&e.nodes.forEach(e=>AG(e)),e}var jG={},MG=class e{constructor(t,n,r){this.stringified=!1,this.processed=!1;let i;if(typeof n==`object`&&n&&(n.type===`root`||n.type===`document`))i=AG(n);else if(n instanceof e||n instanceof bG)i=AG(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=xG;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(n,r)}catch(e){this.processed=!0,this.error=e}i&&!i[hG]&&vG.rebuild(i)}this.result=new bG(t,i,r),this.helpers={...jG,postcss:jG,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!wG[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!TG[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(DG(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[mG];){e[mG]=!0;let t=[kG(e)];for(;t.length>0;){let e=this.visitTick(t);if(DG(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return DG(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=_G;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new gG(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(DG(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[mG];)e[mG]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(DG(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[mG]){i[mG]=!0,e.push(kG(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===EG){n.nodes&&n.nodes.length&&(n[mG]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[mG]=!0;let t=OG(e);for(let n of t)if(n===EG)e.nodes&&e.each(e=>{e[mG]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}};MG.registerPostcss=e=>{jG=e};var NG=MG;MG.default=MG,SG.registerLazyResult(MG),yG.registerLazyResult(MG);var PG=UU,FG=YH,IG=pG,LG=hW,RG=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let r=FG;this.result=new LG(this._processor,void 0,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,`root`,{get(){return i.root}});let a=new PG(r,void 0,this._opts,t);if(a.isMap()){let[e,t]=a.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=IG;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}},zG=RG;RG.default=RG;var BG=zG,VG=NG,HG=uW,UG=qW,WG=class{constructor(e=[]){this.version=`8.4.38`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(!(typeof n==`object`&&(n.parse||n.stringify)))throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new BG(this,e,t):new VG(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},GG=WG;WG.default=WG,UG.registerProcessor(WG),HG.registerProcessor(WG);var KG=oU,qG=_U,JG=KU,YG=HW,XG=MU,ZG=qW,QG=$W;function $G(e,t){if(Array.isArray(e))return e.map(e=>$G(e));let{inputs:n,...r}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:XG.prototype};n.map&&={...n.map,__proto__:qG.prototype},t.push(n)}}if(r.nodes&&=e.nodes.map(e=>$G(e,t)),r.source){let{inputId:e,...n}=r.source;r.source=n,e!=null&&(r.source.input=t[e])}if(r.type===`root`)return new ZG(r);if(r.type===`decl`)return new KG(r);if(r.type===`rule`)return new QG(r);if(r.type===`comment`)return new JG(r);if(r.type===`atrule`)return new YG(r);throw Error(`Unknown node type: `+e.type)}var eK=$G;$G.default=$G;var tK=VH,nK=oU,rK=NG,iK=aW,aK=GG,oK=YH,sK=eK,cK=uW,lK=fW,uK=KU,dK=HW,fK=hW,pK=MU,mK=pG,hK=YW,gK=$W,_K=qW,vK=rU;function yK(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new aK(e)}yK.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
77
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
78
+ https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new aK().version,i}let i;return Object.defineProperty(r,`postcss`,{get(){return i||=r(),i}}),r.process=function(e,t,n){return yK([r(n)]).process(e,t)},r},yK.stringify=oK,yK.parse=mK,yK.fromJSON=sK,yK.list=hK,yK.comment=e=>new uK(e),yK.atRule=e=>new dK(e),yK.decl=e=>new nK(e),yK.rule=e=>new gK(e),yK.root=e=>new _K(e),yK.document=e=>new cK(e),yK.CssSyntaxError=tK,yK.Declaration=nK,yK.Container=iK,yK.Processor=aK,yK.Document=cK,yK.Comment=uK,yK.Warning=lK,yK.AtRule=dK,yK.Result=fK,yK.Input=pK,yK.Rule=gK,yK.Root=_K,yK.Node=vK,rK.registerPostcss(yK);var bK=yK;yK.default=yK;var xK=jH(bK);xK.stringify,xK.fromJSON,xK.plugin,xK.parse,xK.list,xK.document,xK.comment,xK.atRule,xK.rule,xK.decl,xK.root,xK.CssSyntaxError,xK.Declaration,xK.Container,xK.Processor,xK.Document,xK.Comment,xK.Warning,xK.AtRule,xK.Result,xK.Input,xK.Rule,xK.Root,xK.Node;var SK={script:`noscript`,altglyph:`altGlyph`,altglyphdef:`altGlyphDef`,altglyphitem:`altGlyphItem`,animatecolor:`animateColor`,animatemotion:`animateMotion`,animatetransform:`animateTransform`,clippath:`clipPath`,feblend:`feBlend`,fecolormatrix:`feColorMatrix`,fecomponenttransfer:`feComponentTransfer`,fecomposite:`feComposite`,feconvolvematrix:`feConvolveMatrix`,fediffuselighting:`feDiffuseLighting`,fedisplacementmap:`feDisplacementMap`,fedistantlight:`feDistantLight`,fedropshadow:`feDropShadow`,feflood:`feFlood`,fefunca:`feFuncA`,fefuncb:`feFuncB`,fefuncg:`feFuncG`,fefuncr:`feFuncR`,fegaussianblur:`feGaussianBlur`,feimage:`feImage`,femerge:`feMerge`,femergenode:`feMergeNode`,femorphology:`feMorphology`,feoffset:`feOffset`,fepointlight:`fePointLight`,fespecularlighting:`feSpecularLighting`,fespotlight:`feSpotLight`,fetile:`feTile`,feturbulence:`feTurbulence`,foreignobject:`foreignObject`,glyphref:`glyphRef`,lineargradient:`linearGradient`,radialgradient:`radialGradient`};function CK(e){let t=SK[e.tagName]?SK[e.tagName]:e.tagName;return t===`link`&&e.attributes._cssText&&(t=`style`),t}function wK(e,t){let n=t?.stylesWithHoverClass.get(e);if(n)return n;let r=e;try{r=xK([kH,AH]).process(e).css}catch(e){console.warn(`Failed to adapt css for replay`,e)}return t?.stylesWithHoverClass.set(e,r),r}function TK(){return{stylesWithHoverClass:new Map}}function EK(e,t,n,r){let i=[];for(let t of e.childNodes)t.type===SH.Text&&i.push(t);let a=t.split(`/* rr_split */`);for(;a.length>1&&a.length>i.length;)a.splice(-2,2,a.slice(-2).join(``));let o=``;n&&(o=wK(a.join(``),r));let s=0;for(let e=0;e<i.length&&e!==a.length;e++){let t=i[e];if(!n)t.textContent=a[e];else if(e<a.length-1){let n=s,r=a[e+1].length;r=Math.min(r,30);let i=!1;for(;r>2;r--){let t=a[e+1].substring(0,r),c=o.substring(s).indexOf(t);if(i=c!==-1,i){n+=c;break}}i||(n+=a[e].length),t.textContent=o.substring(s,n),s=n}else t.textContent=o.substring(s)}}function DK(e,t,n,r){let{doc:i,hackCss:a,cache:o}=r;e.childNodes.length?EK(e,n,a,o):(a&&(n=wK(n,o)),t.appendChild(i.createTextNode(n)))}function OK(e,t){let{doc:n,hackCss:r,cache:i}=t;switch(e.type){case SH.Document:return n.implementation.createDocument(null,``,null);case SH.DocumentType:return n.implementation.createDocumentType(e.name||`html`,e.publicId,e.systemId);case SH.Element:{let r=CK(e),i;e.isSVG?i=n.createElementNS(`http://www.w3.org/2000/svg`,r):(e.isCustom&&n.defaultView?.customElements&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),i=n.createElement(r));let a={};for(let o in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,o))continue;let s=e.attributes[o];if(!(r===`option`&&o===`selected`&&s===!1)&&s!==null){if(s===!0&&(s=``),o.startsWith(`rr_`)){a[o]=s;continue}if(typeof s==`string`){if(r===`style`&&o===`_cssText`){DK(e,i,s,t);continue}else if(r===`textarea`&&o===`value`){i.appendChild(n.createTextNode(s)),e.childNodes=[];continue}}try{if(e.isSVG&&o===`xlink:href`)i.setAttributeNS(`http://www.w3.org/1999/xlink`,o,s.toString());else if(o===`onload`||o===`onclick`||o.substring(0,7)===`onmouse`)i.setAttribute(`_`+o,s.toString());else if(r===`meta`&&e.attributes[`http-equiv`]===`Content-Security-Policy`&&o===`content`){i.setAttribute(`csp-content`,s.toString());continue}else r===`link`&&(e.attributes.rel===`preload`&&e.attributes.as===`script`||e.attributes.rel===`modulepreload`)||r===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&DH(e.attributes.href)===`js`||(r===`img`&&e.attributes.srcset&&e.attributes.rr_dataURL?i.setAttribute(`rrweb-original-srcset`,e.attributes.srcset):i.setAttribute(o,s.toString()))}catch{}}}for(let t in a){let o=a[t];if(r===`canvas`&&t===`rr_dataURL`){let e=n.createElement(`img`);e.onload=()=>{let t=i.getContext(`2d`);t&&t.drawImage(e,0,0,e.width,e.height)},e.src=o.toString(),i.RRNodeType&&(i.rr_dataURL=o.toString())}else if(r===`img`&&t===`rr_dataURL`){let t=i;t.currentSrc.startsWith(`data:`)||(t.setAttribute(`rrweb-original-src`,e.attributes.src),t.src=o.toString())}if(t===`rr_width`)i.style.setProperty(`width`,o.toString());else if(t===`rr_height`)i.style.setProperty(`height`,o.toString());else if(t===`rr_mediaCurrentTime`&&typeof o==`number`)i.currentTime=o;else if(t===`rr_mediaState`)switch(o){case`played`:i.play().catch(e=>console.warn(`media playback error`,e));break;case`paused`:i.pause();break}else t===`rr_mediaPlaybackRate`&&typeof o==`number`?i.playbackRate=o:t===`rr_mediaMuted`&&typeof o==`boolean`?i.muted=o:t===`rr_mediaLoop`&&typeof o==`boolean`?i.loop=o:t===`rr_mediaVolume`&&typeof o==`number`?i.volume=o:t===`rr_open_mode`&&i.setAttribute(`rr_open_mode`,o)}if(e.isShadowHost)if(!i.shadowRoot)i.attachShadow({mode:`open`});else for(;i.shadowRoot.firstChild;)i.shadowRoot.removeChild(i.shadowRoot.firstChild);return i}case SH.Text:return e.isStyle&&r?n.createTextNode(wK(e.textContent,i)):n.createTextNode(e.textContent);case SH.CDATA:return n.createCDATASection(e.textContent);case SH.Comment:return n.createComment(e.textContent);default:return null}}function kK(e,t){let{doc:n,mirror:r,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:s}=t;if(r.has(e.id)){let t=r.getNode(e.id);if(EH(r.getMeta(t),e))return r.getNode(e.id)}let c=OK(e,{doc:n,hackCss:a,cache:s});if(!c)return null;if(e.rootId&&r.getNode(e.rootId)!==n&&r.replace(e.rootId,n),e.type===SH.Document&&(n.close(),n.open(),e.compatMode===`BackCompat`&&e.childNodes&&e.childNodes[0].type!==SH.DocumentType&&(e.childNodes[0].type===SH.Element&&`xmlns`in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns===`http://www.w3.org/1999/xhtml`?n.write(`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">`):n.write(`<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">`)),c=n),r.add(c,e),(e.type===SH.Document||e.type===SH.Element)&&!i)for(let t of e.childNodes){let i=kK(t,{doc:n,mirror:r,skipChild:!1,hackCss:a,afterAppend:o,cache:s});if(!i){console.warn(`Failed to rebuild`,t);continue}if(t.isShadow&&CH(c)&&c.shadowRoot)c.shadowRoot.appendChild(i);else if(e.type===SH.Document&&t.type==SH.Element){let e=i,t=null;e.childNodes.forEach(e=>{e.nodeName===`BODY`&&(t=e)}),t?(e.removeChild(t),c.appendChild(i),e.appendChild(t)):c.appendChild(i)}else c.appendChild(i);o&&o(i,t.id)}return c}function AK(e,t){function n(e){t(e)}for(let t of e.getIds())e.has(t)&&n(e.getNode(t))}function jK(e,t){let n=t.getMeta(e);if(n?.type!==SH.Element)return;let r=e;for(let e in n.attributes){if(!(Object.prototype.hasOwnProperty.call(n.attributes,e)&&e.startsWith(`rr_`)))continue;let t=n.attributes[e];e===`rr_scrollLeft`&&(r.scrollLeft=t),e===`rr_scrollTop`&&(r.scrollTop=t)}}function MK(e,t){let{doc:n,onVisit:r,hackCss:i=!0,afterAppend:a,cache:o,mirror:s=new wH}=t,c=kK(e,{doc:n,mirror:s,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return AK(s,e=>{r&&r(e),jK(e,s)}),c}var NK={class:`h-full min-h-0 p-4`,flex:`~ col gap-1`,"overflow-auto":``},PK=[`data-test-range`,`aria-current`,`onClick`],FK={class:`flex items-start gap-2`},IK={class:`mt-0.5 h-4 w-4 flex flex-shrink-0 items-center justify-center`},LK={key:0,class:`h-3 w-3 animate-spin rounded-full border border-yellow-500 border-t-transparent`},RK={class:`min-w-0 flex-1`},zK={truncate:``,"data-testid":`trace-step-name`},BK={class:`text-xs opacity-60 truncate`},VK={key:0,class:`font-mono text-xs opacity-70 truncate`},HK={class:`h-full min-h-0`,flex:`~ col`,"overflow-auto":``},UK=[`sandbox`],WK={key:1,class:`text-sm opacity-50 p-4`},GK=H({__name:`TraceView`,props:{trace:{},test:{}},setup(e){let t=e,n=Z(()=>t.trace.entries),r=z(0);sr([()=>t.test,()=>t.trace.repeats,()=>t.trace.retry],()=>{r.value=0});let i=Z(()=>n.value[r.value]),a=z(),o=Z(()=>t.trace.recordCanvas?`allow-same-origin allow-scripts`:`allow-same-origin`);function s(e){r.value=e;let i=n.value[e];i?.location&&pz(t.test,i.location)}sr([i,a],([e,t])=>{if(!e||!t)return;let{serialized:n,selectorId:r,viewport:i,scroll:a,pseudoClassIds:o}=e.snapshot;t.style.width=`${i.width}px`,t.style.height=`${i.height}px`;let s=t.contentDocument;s.open(),s.close();let c=TH();MK(n,{doc:s,cache:TK(),mirror:c});for(let[e,t]of Object.entries(o))for(let n of t){let t=c.getNode(n);t?.classList&&t.classList.add(e)}if(t.contentWindow.scrollTo(a?.x??0,a?.y??0),r!=null){let e=c.getNode(r);e&&t.contentWindow.requestAnimationFrame(()=>{let t=e.getBoundingClientRect(),n=s.createElement(`div`);n.setAttribute(`data-testid`,`trace-view-highlight`),n.style.cssText=`
79
+ position: fixed;
80
+ pointer-events: none;
81
+ z-index: 2147483647;
82
+ left: ${t.left}px;
83
+ top: ${t.top}px;
84
+ width: ${t.width}px;
85
+ height: ${t.height}px;
86
+ background: rgba(59, 130, 246, 0.15);
87
+ border: 2px solid #3b82f6;
88
+ box-sizing: border-box;
89
+ `,s.documentElement.appendChild(n)})}},{immediate:!0});function c(e,t){let n=r.value===t;return p(e)?n?`bg-yellow-500/20 text-yellow-700 dark:text-yellow-400`:`text-yellow-700 hover:bg-yellow-500/10 dark:text-yellow-400`:e.status===`fail`?n?`bg-red-500/20 text-red-600 dark:text-red-400`:`text-red-600 hover:bg-red-500/10 dark:text-red-400`:n?`bg-blue-500/20`:`hover:bg-gray/10`}function l(e){return e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(1)}s`}function u(e){if(p(e))return`running`;let t=`+${l(e.startTime)}`;return e.duration==null?t:`${t} · ${l(e.duration)}`}function d(e){return e.name===`vitest:onAfterRetryTask`?`test finished`:e.name.startsWith(`vitest:`)?e.name.slice(7):e.name}function f(e){return e.kind===`action`?`bg-blue-500/80`:e.kind===`expect`?`bg-green-500/80`:e.kind===`mark`?`bg-amber-500/80`:`bg-gray-400/80 dark:bg-gray-500/80`}function p(e){return e.range?.phase===`start`}return(e,t)=>(W(),K(B(Em),{class:`h-full min-h-0`},{default:V(()=>[J(B(Dm),{size:30,"min-size":`20`},{default:V(()=>[q(`div`,NK,[(W(!0),G(U,null,si(n.value,(e,t)=>(W(),G(`button`,{key:t,type:`button`,"data-testid":`trace-step`,"data-test-range":e.range?.phase,class:P([`w-full text-left px-2 py-1 rounded text-sm`,c(e,t)]),"aria-current":r.value===t?`step`:void 0,onClick:e=>s(t)},[q(`div`,FK,[q(`span`,IK,[p(e)?(W(),G(`span`,LK)):(W(),G(`span`,{key:1,class:P([`h-2 w-2 rounded-full`,f(e)])},null,2))]),q(`div`,RK,[q(`div`,zK,F(d(e)),1),q(`div`,BK,F(u(e)),1),e.element?(W(),G(`div`,VK,F(e.element.locator),1)):X(``,!0)])])],10,PK))),128))])]),_:1}),J(B(Dm),{size:70,"min-size":`20`},{default:V(()=>[q(`div`,HK,[i.value?(W(),G(`iframe`,{ref_key:`iframeEl`,ref:a,key:o.value,sandbox:o.value,style:{background:`white`,border:`none`,"color-scheme":`normal`,flex:`none`}},null,8,UK)):(W(),G(`div`,WK,` No trace step found `))])]),_:1})]),_:1}))}}),KK={"data-testid":`trace-view`,"h-full":``,"min-h-0":``,flex:`~ col`},qK={p:`3`,"h-10":``,flex:`~ gap-2`,"items-center":``,"bg-header":``,border:`b base`},JK={key:0,class:`text-xs opacity-70`},YK={key:1,class:`text-sm opacity-50 p-4`},XK=H({__name:`TraceViewPane`,props:{selection:{}},setup(e){let t=e,n=Z(()=>Sz(t.selection)),r=Z(()=>t.selection.test),i=Z(()=>n.value?Dz(n.value):``);return(e,t)=>{let a=ii(`tooltip`);return W(),G(`div`,KK,[q(`div`,qK,[t[1]||=q(`div`,{class:`i-carbon:data-vis-4`},null,-1),t[2]||=q(`span`,{"pl-1":``,"font-bold":``,"text-sm":``,"flex-auto":``,"ws-nowrap":``,"overflow-hidden":``,truncate:``},`Trace Viewer`,-1),i.value?(W(),G(`span`,JK,F(i.value),1)):X(``,!0),Qn(J(xk,{title:`Close Trace Viewer`,icon:`i-carbon:close`,onClick:t[0]||=e=>B(wz)()},null,512),[[a,`Close Trace Viewer`,void 0,{bottom:!0}]])]),n.value?(W(),K(GK,{key:0,trace:n.value,test:r.value},null,8,[`trace`,`test`])):(W(),G(`div`,YK,` No trace found `))])}}}),ZK={"h-screen":``,"w-screen":``,overflow:`hidden`},QK={key:1,flex:`~ col`,"h-full":``},$K={"h-full":``,"overflow-hidden":``},eq=H({__name:`index`,setup(e){let t=jD(),n=jp(({panes:e})=>{c(),s(e)},0),r=jp(({panes:e})=>{e.forEach((e,t)=>{wD.value[t]=e.size}),o(e),l()},0),i=jp(({panes:e})=>{e.forEach((e,t)=>{TD.value[t]=e.size}),s(e),l()},0),a=jp(({panes:e})=>{o(e),c()},0);function o(e){AD.navigation=e[0].size,e[1]&&(AD.details.size=e[1].size)}function s(e){AD.details.browser=e[0].size,e[1]&&(AD.details.main=e[1].size)}function c(){let e=document.querySelector(`#tester-ui`);e&&(e.style.pointerEvents=`none`)}function l(){let e=document.querySelector(`#tester-ui`);e&&(e.style.pointerEvents=``)}return(e,o)=>(W(),G(U,null,[J(vH),q(`div`,ZK,[J(B(Em),{class:`pt-4px`,onResized:B(r),onResize:B(a)},{default:V(()=>[J(B(Dm),{size:B(wD)[0]},{default:V(()=>[J(gH)]),_:1},8,[`size`]),J(B(Dm),{size:B(wD)[1]},{default:V(()=>[!B(yk)&&!B(vz)?(W(),K(qo,{key:`ui-detail`},{default:V(()=>[B(t)?(W(),K(yA,{key:`summary`})):B(yD)?(W(),K(Lk,{key:`coverage`})):(W(),K(MB,{key:`details`}))]),_:1})):(W(),G(`div`,QK,[J(B(Em),{id:`details-splitpanes`,key:`browser-detail`,horizontal:B(DD)===`bottom`,class:P(B(DD)===`bottom`&&!B(ED)?`flex-1 min-h-0 overflow-hidden`:`h-full`),onResize:B(n),onResized:B(i)},{default:V(()=>[J(B(Dm),{size:B(TD)[0],"min-size":`10`},{default:V(()=>[B(yk)?(W(),G(U,{key:0},[B(yk).config.browser?.traceView.enabled?(W(),K(B(Em),{key:0,class:`h-full`,horizontal:B(DD)===`right`},{default:V(()=>[J(B(Dm),{size:B(vz)?55:100,"min-size":`10`},{default:V(()=>[o[0]||(Ya(-1,!0),(o[0]=J(Ok)).cacheIndex=0,Ya(1),o[0])]),_:1},8,[`size`]),B(vz)?(W(),K(B(Dm),{key:0,size:`45`,"min-size":`10`},{default:V(()=>[J(XK,{selection:B(vz)},null,8,[`selection`])]),_:1})):X(``,!0)]),_:1},8,[`horizontal`])):(W(),K(Ok,{key:1}))],64)):B(vz)?(W(),K(XK,{key:1,selection:B(vz)},null,8,[`selection`])):X(``,!0)]),_:1},8,[`size`]),B(ED)?(W(),K(B(Dm),{key:0,size:B(TD)[1],"min-size":`10`},{default:V(()=>[q(`div`,$K,[B(t)?(W(),K(yA,{key:`summary`})):B(yD)?(W(),K(Lk,{key:`coverage`})):(W(),K(MB,{key:`details`}))])]),_:1},8,[`size`])):X(``,!0)]),_:1},8,[`horizontal`,`class`,`onResize`,`onResized`]),B(DD)===`bottom`&&!B(ED)?(W(),K(jk,{key:0})):X(``,!0)]))]),_:1},8,[`size`])]),_:1},8,[`onResized`,`onResize`])]),J(Pk)],64))}}),tq={tooltip:id};sd.options.instantMove=!0,sd.options.distance=10;function nq(){return pp({history:Mf(),routes:[{path:`/`,component:eq}]})}var rq=[nq],iq=ic(uc);rq.forEach(e=>{iq.use(e())}),Object.entries(tq).forEach(([e,t])=>{iq.directive(e,t)}),iq.mount(`#app`);