@vitest/browser 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,52 +0,0 @@
1
- var F_=Object.defineProperty;var H_=(e,t,r)=>t in e?F_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hs=(e,t,r)=>H_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
2
- * @vue/shared v3.5.12
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function dh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},_s=[],Ur=()=>{},B_=()=>!1,du=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hh=e=>e.startsWith("onUpdate:"),nn=Object.assign,ph=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},W_=Object.prototype.hasOwnProperty,wt=(e,t)=>W_.call(e,t),He=Array.isArray,Ss=e=>ha(e)==="[object Map]",hu=e=>ha(e)==="[object Set]",av=e=>ha(e)==="[object Date]",Ve=e=>typeof e=="function",It=e=>typeof e=="string",Ar=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",H0=e=>(St(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),B0=Object.prototype.toString,ha=e=>B0.call(e),q_=e=>ha(e).slice(8,-1),W0=e=>ha(e)==="[object Object]",gh=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=dh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},U_=/-(\w)/g,nr=pu(e=>e.replace(U_,(t,r)=>r?r.toUpperCase():"")),j_=/\B([A-Z])/g,mi=pu(e=>e.replace(j_,"-$1").toLowerCase()),gu=pu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tc=pu(e=>e?`on${gu(e)}`:""),Un=(e,t)=>!Object.is(e,t),Cc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},q0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},vd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U0=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let cv;const vu=()=>cv||(cv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function en(e){if(He(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=It(o)?X_(o):en(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(It(e)||St(e))return e}const V_=/;(?![^(]*\))/g,G_=/:([^]+)/,K_=/\/\*[^]*?\*\//g;function X_(e){const t={};return e.replace(K_,"").split(V_).forEach(r=>{if(r){const o=r.split(G_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(It(e))t=e;else if(He(e))for(let r=0;r<e.length;r++){const o=it(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function Y_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!It(t)&&(e.class=it(t)),r&&(e.style=en(r)),e}const Z_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",J_=dh(Z_);function j0(e){return!!e||e===""}function Q_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=mu(e[o],t[o]);return r}function mu(e,t){if(e===t)return!0;let r=av(e),o=av(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Ar(e),o=Ar(t),r||o)return e===t;if(r=He(e),o=He(t),r||o)return r&&o?Q_(e,t):!1;if(r=St(e),o=St(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!mu(e[f],t[f]))return!1}}return String(e)===String(t)}function V0(e,t){return e.findIndex(r=>mu(r,t))}const G0=e=>!!(e&&e.__v_isRef===!0),Be=e=>It(e)?e:e==null?"":He(e)||St(e)&&(e.toString===B0||!Ve(e.toString))?G0(e)?Be(e.value):JSON.stringify(e,K0,2):String(e),K0=(e,t)=>G0(t)?K0(e,t.value):Ss(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Hf(o,c)+" =>"]=s,r),{})}:hu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Hf(r))}:Ar(t)?Hf(t):St(t)&&!He(t)&&!W0(t)?String(t):t,Hf=(e,t="")=>{var r;return Ar(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
- * @vue/reactivity v3.5.12
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let Ln;class eS{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ln,!t&&Ln&&(this.index=(Ln.scopes||(Ln.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=Ln;try{return Ln=this,t()}finally{Ln=r}}}on(){Ln=this}off(){Ln=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function X0(){return Ln}function tS(e,t=!1){Ln&&Ln.cleanups.push(e)}let kt;const Bf=new WeakSet;class Y0{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ln&&Ln.active&&Ln.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Bf.has(this)&&(Bf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||J0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uv(this),Q0(this);const t=kt,r=Tr;kt=this,Tr=!0;try{return this.fn()}finally{ey(this),kt=t,Tr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)yh(t);this.deps=this.depsTail=void 0,uv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Bf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){md(this)&&this.run()}get dirty(){return md(this)}}let Z0=0,Nl,$l;function J0(e,t=!1){if(e.flags|=8,t){e.next=$l,$l=e;return}e.next=Nl,Nl=e}function vh(){Z0++}function mh(){if(--Z0>0)return;if($l){let t=$l;for($l=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Nl;){let t=Nl;for(Nl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function Q0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ey(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),yh(o),nS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function md(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ty(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ty(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ql))return;e.globalVersion=ql;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!md(e)){e.flags&=-3;return}const r=kt,o=Tr;kt=e,Tr=!0;try{Q0(e);const s=e.fn(e._value);(t.version===0||Un(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Tr=o,ey(e),e.flags&=-3}}function yh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)yh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function nS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Tr=!0;const ny=[];function oo(){ny.push(Tr),Tr=!1}function so(){const e=ny.pop();Tr=e===void 0?!0:e}function uv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let ql=0;class rS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!kt||!Tr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new rS(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,ry(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,ql++,this.notify(t)}notify(t){vh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{mh()}}}function ry(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)ry(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Dc=new WeakMap,Mo=Symbol(""),yd=Symbol(""),Ul=Symbol("");function gn(e,t,r){if(Tr&&kt){let o=Dc.get(e);o||Dc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new yu),s.map=o,s.key=r),s.track()}}function ui(e,t,r,o,s,c){const f=Dc.get(e);if(!f){ql++;return}const d=h=>{h&&h.trigger()};if(vh(),t==="clear")f.forEach(d);else{const h=He(e),p=h&&gh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Ul||!Ar(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Ul)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Mo)),Ss(e)&&d(f.get(yd)));break;case"delete":h||(d(f.get(Mo)),Ss(e)&&d(f.get(yd)));break;case"set":Ss(e)&&d(f.get(Mo));break}}mh()}function iS(e,t){const r=Dc.get(e);return r&&r.get(t)}function ps(e){const t=ht(e);return t===e?t:(gn(t,"iterate",Ul),ar(e)?t:t.map(vn))}function bu(e){return gn(e=ht(e),"iterate",Ul),e}const oS={__proto__:null,[Symbol.iterator](){return Wf(this,Symbol.iterator,vn)},concat(...e){return ps(this).concat(...e.map(t=>He(t)?ps(t):t))},entries(){return Wf(this,"entries",e=>(e[1]=vn(e[1]),e))},every(e,t){return oi(this,"every",e,t,void 0,arguments)},filter(e,t){return oi(this,"filter",e,t,r=>r.map(vn),arguments)},find(e,t){return oi(this,"find",e,t,vn,arguments)},findIndex(e,t){return oi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return oi(this,"findLast",e,t,vn,arguments)},findLastIndex(e,t){return oi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return oi(this,"forEach",e,t,void 0,arguments)},includes(...e){return qf(this,"includes",e)},indexOf(...e){return qf(this,"indexOf",e)},join(e){return ps(this).join(e)},lastIndexOf(...e){return qf(this,"lastIndexOf",e)},map(e,t){return oi(this,"map",e,t,void 0,arguments)},pop(){return wl(this,"pop")},push(...e){return wl(this,"push",e)},reduce(e,...t){return fv(this,"reduce",e,t)},reduceRight(e,...t){return fv(this,"reduceRight",e,t)},shift(){return wl(this,"shift")},some(e,t){return oi(this,"some",e,t,void 0,arguments)},splice(...e){return wl(this,"splice",e)},toReversed(){return ps(this).toReversed()},toSorted(e){return ps(this).toSorted(e)},toSpliced(...e){return ps(this).toSpliced(...e)},unshift(...e){return wl(this,"unshift",e)},values(){return Wf(this,"values",vn)}};function Wf(e,t,r){const o=bu(e),s=o[t]();return o!==e&&!ar(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const sS=Array.prototype;function oi(e,t,r,o,s,c){const f=bu(e),d=f!==e&&!ar(e),h=f[t];if(h!==sS[t]){const m=h.apply(e,c);return d?vn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,vn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function fv(e,t,r,o){const s=bu(e);let c=r;return s!==e&&(ar(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,vn(d),h,e)}),s[t](c,...o)}function qf(e,t,r){const o=ht(e);gn(o,"iterate",Ul);const s=o[t](...r);return(s===-1||s===!1)&&_h(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function wl(e,t,r=[]){oo(),vh();const o=ht(e)[t].apply(e,r);return mh(),so(),o}const lS=dh("__proto__,__v_isRef,__isVue"),iy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ar));function aS(e){Ar(e)||(e=String(e));const t=ht(this);return gn(t,"has",e),t.hasOwnProperty(e)}class oy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?yS:cy:c?ay:ly).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=He(t);if(!s){let h;if(f&&(h=oS[r]))return h;if(r==="hasOwnProperty")return aS}const d=Reflect.get(t,r,Ct(t)?t:o);return(Ar(r)?iy.has(r):lS(r))||(s||gn(t,"get",r),c)?d:Ct(d)?f&&gh(r)?d:d.value:St(d)?s?pa(d):tr(d):d}}class sy extends oy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=Ro(c);if(!ar(o)&&!Ro(o)&&(c=ht(c),o=ht(o)),!He(t)&&Ct(c)&&!Ct(o))return h?!1:(c.value=o,!0)}const f=He(t)&&gh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Ct(t)?t:s);return t===ht(s)&&(f?Un(o,c)&&ui(t,"set",r,o):ui(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ui(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Ar(r)||!iy.has(r))&&gn(t,"has",r),o}ownKeys(t){return gn(t,"iterate",He(t)?"length":Mo),Reflect.ownKeys(t)}}class cS extends oy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const uS=new sy,fS=new cS,dS=new sy(!0);const bd=e=>e,ac=e=>Reflect.getPrototypeOf(e);function hS(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=Ss(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?bd:t?wd:vn;return!t&&gn(c,"iterate",h?yd:Mo),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function pS(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(Un(s,d)&&gn(f,"get",s),gn(f,"get",d));const{has:h}=ac(f),p=t?bd:e?wd:vn;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&gn(ht(s),"iterate",Mo),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(Un(s,d)&&gn(f,"has",s),gn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=ht(d),p=t?bd:e?wd:vn;return!e&&gn(h,"iterate",Mo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return nn(r,e?{add:cc("add"),set:cc("set"),delete:cc("delete"),clear:cc("clear")}:{add(s){!t&&!ar(s)&&!Ro(s)&&(s=ht(s));const c=ht(this);return ac(c).has.call(c,s)||(c.add(s),ui(c,"add",s,s)),this},set(s,c){!t&&!ar(c)&&!Ro(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=ac(f);let p=d.call(f,s);p||(s=ht(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Un(c,v)&&ui(f,"set",s,c):ui(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=ac(c);let h=f.call(c,s);h||(s=ht(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&ui(c,"delete",s,void 0),p},clear(){const s=ht(this),c=s.size!==0,f=s.clear();return c&&ui(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=hS(s,e,t)}),r}function bh(e,t){const r=pS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const gS={get:bh(!1,!1)},vS={get:bh(!1,!0)},mS={get:bh(!0,!1)};const ly=new WeakMap,ay=new WeakMap,cy=new WeakMap,yS=new WeakMap;function bS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wS(e){return e.__v_skip||!Object.isExtensible(e)?0:bS(q_(e))}function tr(e){return Ro(e)?e:xh(e,!1,uS,gS,ly)}function wh(e){return xh(e,!1,dS,vS,ay)}function pa(e){return xh(e,!0,fS,mS,cy)}function xh(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=wS(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function ks(e){return Ro(e)?ks(e.__v_raw):!!(e&&e.__v_isReactive)}function Ro(e){return!!(e&&e.__v_isReadonly)}function ar(e){return!!(e&&e.__v_isShallow)}function _h(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function Sh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&q0(e,"__v_skip",!0),e}const vn=e=>St(e)?tr(e):e,wd=e=>St(e)?pa(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function Ue(e){return uy(e,!1)}function tn(e){return uy(e,!0)}function uy(e,t){return Ct(e)?e:new xS(e,t)}class xS{constructor(t,r){this.dep=new yu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:vn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||ar(t)||Ro(t);t=o?t:ht(t),Un(t,r)&&(this._rawValue=t,this._value=o?t:vn(t),this.dep.trigger())}}function U(e){return Ct(e)?e.value:e}function Ut(e){return Ve(e)?e():U(e)}const _S={get:(e,t,r)=>t==="__v_raw"?e:U(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ct(s)&&!Ct(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function fy(e){return ks(e)?e:new Proxy(e,_S)}class SS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new yu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function dy(e){return new SS(e)}function kS(e){const t=He(e)?new Array(e.length):{};for(const r in e)t[r]=hy(e,r);return t}class TS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return iS(ht(this._object),this._key)}}class CS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ga(e,t,r){return Ct(e)?e:Ve(e)?new CS(e):St(e)&&arguments.length>1?hy(e,t,r):Ue(e)}function hy(e,t,r){const o=e[t];return Ct(o)?o:new TS(e,t,r)}class ES{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new yu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ql-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return J0(this,!0),!0}get value(){const t=this.dep.track();return ty(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function AS(e,t,r=!1){let o,s;return Ve(e)?o=e:(o=e.get,s=e.set),new ES(o,s,r)}const uc={},Fc=new WeakMap;let To;function LS(e,t=!1,r=To){if(r){let o=Fc.get(r);o||Fc.set(r,o=[]),o.push(e)}}function MS(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=M=>s?M:ar(M)||s===!1||s===0?fi(M,1):fi(M);let v,m,b,w,E=!1,N=!1;if(Ct(e)?(m=()=>e.value,E=ar(e)):ks(e)?(m=()=>p(e),E=!0):He(e)?(N=!0,E=e.some(M=>ks(M)||ar(M)),m=()=>e.map(M=>{if(Ct(M))return M.value;if(ks(M))return p(M);if(Ve(M))return h?h(M,2):M()})):Ve(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){oo();try{b()}finally{so()}}const M=To;To=v;try{return h?h(e,3,[w]):e(w)}finally{To=M}}:m=Ur,t&&s){const M=m,B=s===!0?1/0:s;m=()=>fi(M(),B)}const T=X0(),L=()=>{v.stop(),T&&ph(T.effects,v)};if(c&&t){const M=t;t=(...B)=>{M(...B),L()}}let A=N?new Array(e.length).fill(uc):uc;const R=M=>{if(!(!(v.flags&1)||!v.dirty&&!M))if(t){const B=v.run();if(s||E||(N?B.some((K,j)=>Un(K,A[j])):Un(B,A))){b&&b();const K=To;To=v;try{const j=[B,A===uc?void 0:N&&A[0]===uc?[]:A,w];h?h(t,3,j):t(...j),A=B}finally{To=K}}}else v.run()};return d&&d(R),v=new Y0(m),v.scheduler=f?()=>f(R,!1):R,w=M=>LS(M,!1,v),b=v.onStop=()=>{const M=Fc.get(v);if(M){if(h)h(M,4);else for(const B of M)B();Fc.delete(v)}},t?o?R(!0):A=v.run():f?f(R.bind(null,!0),!0):v.run(),L.pause=v.pause.bind(v),L.resume=v.resume.bind(v),L.stop=L,L}function fi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Ct(e))fi(e.value,t,r);else if(He(e))for(let o=0;o<e.length;o++)fi(e[o],t,r);else if(hu(e)||Ss(e))e.forEach(o=>{fi(o,t,r)});else if(W0(e)){for(const o in e)fi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&fi(e[o],t,r)}return e}/**
10
- * @vue/runtime-core v3.5.12
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function va(e,t,r,o){try{return o?e(...o):e()}catch(s){ma(s,t,r)}}function Lr(e,t,r,o){if(Ve(e)){const s=va(e,t,r,o);return s&&H0(s)&&s.catch(c=>{ma(c,t,r)}),s}if(He(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Lr(e[c],t,r,o));return s}}function ma(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){oo(),va(c,null,10,[e,h,p]),so();return}}NS(e,r,s,o,f)}function NS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Nn=[];let Wr=-1;const Ts=[];let Hi=null,vs=0;const py=Promise.resolve();let Hc=null;function Tt(e){const t=Hc||py;return e?t.then(this?e.bind(this):e):t}function $S(e){let t=Wr+1,r=Nn.length;for(;t<r;){const o=t+r>>>1,s=Nn[o],c=jl(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function kh(e){if(!(e.flags&1)){const t=jl(e),r=Nn[Nn.length-1];!r||!(e.flags&2)&&t>=jl(r)?Nn.push(e):Nn.splice($S(t),0,e),e.flags|=1,gy()}}function gy(){Hc||(Hc=py.then(my))}function xd(e){He(e)?Ts.push(...e):Hi&&e.id===-1?Hi.splice(vs+1,0,e):e.flags&1||(Ts.push(e),e.flags|=1),gy()}function dv(e,t,r=Wr+1){for(;r<Nn.length;r++){const o=Nn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Nn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function vy(e){if(Ts.length){const t=[...new Set(Ts)].sort((r,o)=>jl(r)-jl(o));if(Ts.length=0,Hi){Hi.push(...t);return}for(Hi=t,vs=0;vs<Hi.length;vs++){const r=Hi[vs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Hi=null,vs=0}}const jl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function my(e){try{for(Wr=0;Wr<Nn.length;Wr++){const t=Nn[Wr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),va(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Wr<Nn.length;Wr++){const t=Nn[Wr];t&&(t.flags&=-2)}Wr=-1,Nn.length=0,vy(),Hc=null,(Nn.length||Ts.length)&&my()}}let Qt=null,wu=null;function Bc(e){const t=Qt;return Qt=e,wu=e&&e.type.__scopeId||null,t}function yy(e){wu=e}function by(){wu=null}const wy=e=>rt;function rt(e,t=Qt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Uc(-1);const c=Bc(t);let f;try{f=e(...s)}finally{Bc(c),o._d&&Uc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function gt(e,t){if(Qt===null)return e;const r=Au(Qt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(Ve(c)&&(c={mounted:c,updated:c}),c.deep&&fi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function wo(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(oo(),Lr(h,r,8,[e.el,d,e,t]),so())}}const OS=Symbol("_vte"),xy=e=>e.__isTeleport,Bi=Symbol("_leaveCb"),fc=Symbol("_enterCb");function RS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lo(()=>{e.isMounted=!0}),ya(()=>{e.isUnmounting=!0}),e}const sr=[Function,Array],_y={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sr,onEnter:sr,onAfterEnter:sr,onEnterCancelled:sr,onBeforeLeave:sr,onLeave:sr,onAfterLeave:sr,onLeaveCancelled:sr,onBeforeAppear:sr,onAppear:sr,onAfterAppear:sr,onAppearCancelled:sr},Sy=e=>{const t=e.subTree;return t.component?Sy(t.component):t},PS={name:"BaseTransition",props:_y,setup(e,{slots:t}){const r=Do(),o=RS();return()=>{const s=t.default&&Cy(t.default(),!0);if(!s||!s.length)return;const c=ky(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return Uf(c);const h=hv(c);if(!h)return Uf(c);let p=_d(h,f,o,r,b=>p=b);h.type!==fn&&Vl(h,p);const v=r.subTree,m=v&&hv(v);if(m&&m.type!==fn&&!qr(h,m)&&Sy(r).type!==fn){const b=_d(m,f,o,r);if(Vl(m,b),d==="out-in"&&h.type!==fn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete b.afterLeave},Uf(c);d==="in-out"&&h.type!==fn&&(b.delayLeave=(w,E,N)=>{const T=Ty(o,m);T[String(m.key)]=m,w[Bi]=()=>{E(),w[Bi]=void 0,delete p.delayedLeave},p.delayedLeave=N})}return c}}};function ky(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==fn){t=r;break}}return t}const IS=PS;function Ty(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function _d(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:E,onLeaveCancelled:N,onBeforeAppear:T,onAppear:L,onAfterAppear:A,onAppearCancelled:R}=t,M=String(e.key),B=Ty(r,e),K=(te,J)=>{te&&Lr(te,o,9,J)},j=(te,J)=>{const re=J[1];K(te,J),He(te)?te.every(P=>P.length<=1)&&re():te.length<=1&&re()},ne={mode:f,persisted:d,beforeEnter(te){let J=h;if(!r.isMounted)if(c)J=T||h;else return;te[Bi]&&te[Bi](!0);const re=B[M];re&&qr(e,re)&&re.el[Bi]&&re.el[Bi](),K(J,[te])},enter(te){let J=p,re=v,P=m;if(!r.isMounted)if(c)J=L||p,re=A||v,P=R||m;else return;let $=!1;const O=te[fc]=S=>{$||($=!0,S?K(P,[te]):K(re,[te]),ne.delayedLeave&&ne.delayedLeave(),te[fc]=void 0)};J?j(J,[te,O]):O()},leave(te,J){const re=String(e.key);if(te[fc]&&te[fc](!0),r.isUnmounting)return J();K(b,[te]);let P=!1;const $=te[Bi]=O=>{P||(P=!0,J(),O?K(N,[te]):K(E,[te]),te[Bi]=void 0,B[re]===e&&delete B[re])};B[re]=e,w?j(w,[te,$]):$()},clone(te){const J=_d(te,t,r,o,s);return s&&s(J),J}};return ne}function Uf(e){if(xu(e))return e=Ji(e),e.children=null,e}function hv(e){if(!xu(e))return xy(e.type)&&e.children?ky(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ve(r.default))return r.default()}}function Vl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Vl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Cy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ct?(f.patchFlag&128&&s++,o=o.concat(Cy(f.children,t,d))):(t||f.type!==fn)&&o.push(d!=null?Ji(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return Ve(e)?nn({name:e.name},t,{setup:e}):e}function Ey(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sd(e,t,r,o,s=!1){if(He(e)){e.forEach((E,N)=>Sd(E,t&&(He(t)?t[N]:t),r,o,s));return}if(Cs(o)&&!s)return;const c=o.shapeFlag&4?Au(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===vt?d.refs={}:d.refs,m=d.setupState,b=ht(m),w=m===vt?()=>!1:E=>wt(b,E);if(p!=null&&p!==h&&(It(p)?(v[p]=null,w(p)&&(m[p]=null)):Ct(p)&&(p.value=null)),Ve(h))va(h,d,12,[f,v]);else{const E=It(h),N=Ct(h);if(E||N){const T=()=>{if(e.f){const L=E?w(h)?m[h]:v[h]:h.value;s?He(L)&&ph(L,c):He(L)?L.includes(c)||L.push(c):E?(v[h]=[c],w(h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else E?(v[h]=f,w(h)&&(m[h]=f)):N&&(h.value=f,e.k&&(v[e.k]=f))};f?(T.id=-1,Jn(T,r)):T()}}}vu().requestIdleCallback;vu().cancelIdleCallback;const Cs=e=>!!e.type.__asyncLoader,xu=e=>e.type.__isKeepAlive;function zS(e,t){Ay(e,"a",t)}function DS(e,t){Ay(e,"da",t)}function Ay(e,t,r=on){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(_u(t,o,r),r){let s=r.parent;for(;s&&s.parent;)xu(s.parent.vnode)&&FS(o,t,r,s),s=s.parent}}function FS(e,t,r,o){const s=_u(t,e,o,!0);Su(()=>{ph(o[t],s)},r)}function _u(e,t,r=on,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{oo();const d=ba(r),h=Lr(t,r,e,f);return d(),so(),h});return o?s.unshift(c):s.push(c),c}}const yi=e=>(t,r=on)=>{(!Xl||e==="sp")&&_u(e,(...o)=>t(...o),r)},HS=yi("bm"),lo=yi("m"),BS=yi("bu"),WS=yi("u"),ya=yi("bum"),Su=yi("um"),qS=yi("sp"),US=yi("rtg"),jS=yi("rtc");function VS(e,t=on){_u("ec",e,t)}const Th="components",GS="directives";function Po(e,t){return Ch(Th,e,!0,t)||e}const Ly=Symbol.for("v-ndc");function kd(e){return It(e)?Ch(Th,e,!1)||e:e||Ly}function Xr(e){return Ch(GS,e)}function Ch(e,t,r=!0,o=!1){const s=Qt||on;if(s){const c=s.type;if(e===Th){const d=Fk(c,!1);if(d&&(d===t||d===nr(t)||d===gu(nr(t))))return c}const f=pv(s[e]||c[e],t)||pv(s.appContext[e],t);return!f&&o?c:f}}function pv(e,t){return e&&(e[t]||e[nr(t)]||e[gu(nr(t))])}function pi(e,t,r,o){let s;const c=r,f=He(e);if(f||It(e)){const d=f&&ks(e);let h=!1;d&&(h=!ar(e),e=bu(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?vn(e[p]):e[p],p,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(St(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function KS(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(He(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function bn(e,t,r={},o,s){if(Qt.ce||Qt.parent&&Cs(Qt.parent)&&Qt.parent.ce)return t!=="default"&&(r.name=t),ce(),nt(ct,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),ce();const f=c&&My(c(r)),d=r.key||f&&f.key,h=nt(ct,{key:(d&&!Ar(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function My(e){return e.some(t=>Ps(t)?!(t.type===fn||t.type===ct&&!My(t.children)):!0)?e:null}function XS(e,t){const r={};for(const o in e)r[Tc(o)]=e[o];return r}const Td=e=>e?rb(e)?Au(e):Td(e.parent):null,Ol=nn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Td(e.parent),$root:e=>Td(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Oy(e),$forceUpdate:e=>e.f||(e.f=()=>{kh(e.update)}),$nextTick:e=>e.n||(e.n=Tt.bind(e.proxy)),$watch:e=>bk.bind(e)}),jf=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),YS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(jf(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Cd&&(f[t]=0)}}const v=Ol[t];let m,b;if(v)return t==="$attrs"&&gn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return jf(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==vt&&wt(e,f)||jf(t,f)||(d=c[0])&&wt(d,f)||wt(o,f)||wt(Ol,f)||wt(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function ZS(){return Ny().slots}function JS(){return Ny().attrs}function Ny(){const e=Do();return e.setupContext||(e.setupContext=ob(e))}function Wc(e){return He(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Gl(e,t){return!e||!t?e||t:He(e)&&He(t)?e.concat(t):nn({},Wc(e),Wc(t))}let Cd=!0;function QS(e){const t=Oy(e),r=e.proxy,o=e.ctx;Cd=!1,t.beforeCreate&&gv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:E,activated:N,deactivated:T,beforeDestroy:L,beforeUnmount:A,destroyed:R,unmounted:M,render:B,renderTracked:K,renderTriggered:j,errorCaptured:ne,serverPrefetch:te,expose:J,inheritAttrs:re,components:P,directives:$,filters:O}=t;if(p&&ek(p,o,null),f)for(const V in f){const se=f[V];Ve(se)&&(o[V]=se.bind(r))}if(s){const V=s.call(r,r);St(V)&&(e.data=tr(V))}if(Cd=!0,c)for(const V in c){const se=c[V],me=Ve(se)?se.bind(r,r):Ve(se.get)?se.get.bind(r,r):Ur,_e=!Ve(se)&&Ve(se.set)?se.set.bind(r):Ur,Pe=Se({get:me,set:_e});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:qe=>Pe.value=qe})}if(d)for(const V in d)$y(d[V],o,r,V);if(h){const V=Ve(h)?h.call(r):h;Reflect.ownKeys(V).forEach(se=>{_r(se,V[se])})}v&&gv(v,e,"c");function F(V,se){He(se)?se.forEach(me=>V(me.bind(r))):se&&V(se.bind(r))}if(F(HS,m),F(lo,b),F(BS,w),F(WS,E),F(zS,N),F(DS,T),F(VS,ne),F(jS,K),F(US,j),F(ya,A),F(Su,M),F(qS,te),He(J))if(J.length){const V=e.exposed||(e.exposed={});J.forEach(se=>{Object.defineProperty(V,se,{get:()=>r[se],set:me=>r[se]=me})})}else e.exposed||(e.exposed={});B&&e.render===Ur&&(e.render=B),re!=null&&(e.inheritAttrs=re),P&&(e.components=P),$&&(e.directives=$),te&&Ey(e)}function ek(e,t,r=Ur){He(e)&&(e=Ed(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=mn(s.from||o,s.default,!0):c=mn(s.from||o):c=mn(s),Ct(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function gv(e,t,r){Lr(He(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function $y(e,t,r,o){let s=o.includes(".")?Gy(r,o):()=>r[o];if(It(e)){const c=t[e];Ve(c)&&xt(s,c)}else if(Ve(e))xt(s,e.bind(r));else if(St(e))if(He(e))e.forEach(c=>$y(c,t,r,o));else{const c=Ve(e.handler)?e.handler.bind(r):t[e.handler];Ve(c)&&xt(s,c,e)}}function Oy(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>qc(h,p,f,!0)),qc(h,t,f)),St(t)&&c.set(t,h),h}function qc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&qc(e,c,r,!0),s&&s.forEach(f=>qc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=tk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const tk={data:vv,props:mv,emits:mv,methods:El,computed:El,beforeCreate:An,created:An,beforeMount:An,mounted:An,beforeUpdate:An,updated:An,beforeDestroy:An,beforeUnmount:An,destroyed:An,unmounted:An,activated:An,deactivated:An,errorCaptured:An,serverPrefetch:An,components:El,directives:El,watch:rk,provide:vv,inject:nk};function vv(e,t){return t?e?function(){return nn(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function nk(e,t){return El(Ed(e),Ed(t))}function Ed(e){if(He(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function An(e,t){return e?[...new Set([].concat(e,t))]:t}function El(e,t){return e?nn(Object.create(null),e,t):t}function mv(e,t){return e?He(e)&&He(t)?[...new Set([...e,...t])]:nn(Object.create(null),Wc(e),Wc(t??{})):t}function rk(e,t){if(!e)return t;if(!t)return e;const r=nn(Object.create(null),e);for(const o in t)r[o]=An(e[o],t[o]);return r}function Ry(){return{app:null,config:{isNativeTag:B_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ik=0;function ok(e,t){return function(o,s=null){Ve(o)||(o=nn({},o)),s!=null&&!St(s)&&(s=null);const c=Ry(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:ik++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Bk,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ve(v.install)?(f.add(v),v.install(p,...m)):Ve(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Oe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Au(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Lr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=No;No=p;try{return v()}finally{No=m}}};return p}}let No=null;function _r(e,t){if(on){let r=on.provides;const o=on.parent&&on.parent.provides;o===r&&(r=on.provides=Object.create(o)),r[e]=t}}function mn(e,t,r=!1){const o=on||Qt;if(o||No){const s=No?No._context.provides:o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ve(t)?t.call(o&&o.proxy):t}}function Py(){return!!(on||Qt||No)}const Iy={},zy=()=>Object.create(Iy),Dy=e=>Object.getPrototypeOf(e)===Iy;function sk(e,t,r,o=!1){const s={},c=zy();e.propsDefaults=Object.create(null),Fy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:wh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function lk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=ht(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Cu(e.emitsOptions,b))continue;const w=t[b];if(h)if(wt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const E=nr(b);s[E]=Ad(h,d,E,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Fy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=mi(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Ad(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&ui(e.attrs,"set","")}function Fy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ml(h))continue;const p=t[h];let v;s&&wt(s,v=nr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Cu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=ht(r),p=d||vt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Ad(s,h,m,p[m],e,!wt(p,m))}}return f}function Ad(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ve(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ba(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===mi(r))&&(o=!0))}return o}const ak=new WeakMap;function Hy(e,t,r=!1){const o=r?ak:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ve(e)){const v=m=>{h=!0;const[b,w]=Hy(m,t,!0);nn(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,_s),_s;if(He(c))for(let v=0;v<c.length;v++){const m=nr(c[v]);yv(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=nr(v);if(yv(m)){const b=c[v],w=f[m]=He(b)||Ve(b)?{type:b}:nn({},b),E=w.type;let N=!1,T=!0;if(He(E))for(let L=0;L<E.length;++L){const A=E[L],R=Ve(A)&&A.name;if(R==="Boolean"){N=!0;break}else R==="String"&&(T=!1)}else N=Ve(E)&&E.name==="Boolean";w[0]=N,w[1]=T,(N||wt(w,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function yv(e){return e[0]!=="$"&&!Ml(e)}const By=e=>e[0]==="_"||e==="$stable",Eh=e=>He(e)?e.map(Sr):[Sr(e)],ck=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>Eh(t(...s)),r);return o._c=!1,o},Wy=(e,t,r)=>{const o=e._ctx;for(const s in e){if(By(s))continue;const c=e[s];if(Ve(c))t[s]=ck(s,c,o);else if(c!=null){const f=Eh(c);t[s]=()=>f}}},qy=(e,t)=>{const r=Eh(t);e.slots.default=()=>r},Uy=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},uk=(e,t,r)=>{const o=e.slots=zy();if(e.vnode.shapeFlag&32){const s=t._;s?(Uy(o,t,r),r&&q0(o,"_",s,!0)):Wy(t,o)}else t&&qy(e,t)},fk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Uy(s,t,r):(c=!t.$stable,Wy(t,s)),f=t}else t&&(qy(e,t),f={default:1});if(c)for(const d in s)!By(d)&&f[d]==null&&delete s[d]},Jn=Mk;function dk(e){return hk(e)}function hk(e,t){const r=vu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=Ur,insertStaticContent:E}=e,N=(I,H,X,ue=null,he=null,de=null,Ce=void 0,Ee=null,ve=!!H.dynamicChildren)=>{if(I===H)return;I&&!qr(I,H)&&(ue=D(I),qe(I,he,de,!0),I=null),H.patchFlag===-2&&(ve=!1,H.dynamicChildren=null);const{type:ye,ref:We,shapeFlag:Ne}=H;switch(ye){case Eu:T(I,H,X,ue);break;case fn:L(I,H,X,ue);break;case Gf:I==null&&A(H,X,ue,Ce);break;case ct:P(I,H,X,ue,he,de,Ce,Ee,ve);break;default:Ne&1?B(I,H,X,ue,he,de,Ce,Ee,ve):Ne&6?$(I,H,X,ue,he,de,Ce,Ee,ve):(Ne&64||Ne&128)&&ye.process(I,H,X,ue,he,de,Ce,Ee,ve,le)}We!=null&&he&&Sd(We,I&&I.ref,de,H||I,!H)},T=(I,H,X,ue)=>{if(I==null)o(H.el=d(H.children),X,ue);else{const he=H.el=I.el;H.children!==I.children&&p(he,H.children)}},L=(I,H,X,ue)=>{I==null?o(H.el=h(H.children||""),X,ue):H.el=I.el},A=(I,H,X,ue)=>{[I.el,I.anchor]=E(I.children,H,X,ue,I.el,I.anchor)},R=({el:I,anchor:H},X,ue)=>{let he;for(;I&&I!==H;)he=b(I),o(I,X,ue),I=he;o(H,X,ue)},M=({el:I,anchor:H})=>{let X;for(;I&&I!==H;)X=b(I),s(I),I=X;s(H)},B=(I,H,X,ue,he,de,Ce,Ee,ve)=>{H.type==="svg"?Ce="svg":H.type==="math"&&(Ce="mathml"),I==null?K(H,X,ue,he,de,Ce,Ee,ve):te(I,H,he,de,Ce,Ee,ve)},K=(I,H,X,ue,he,de,Ce,Ee)=>{let ve,ye;const{props:We,shapeFlag:Ne,transition:ze,dirs:je}=I;if(ve=I.el=f(I.type,de,We&&We.is,We),Ne&8?v(ve,I.children):Ne&16&&ne(I.children,ve,null,ue,he,Vf(I,de),Ce,Ee),je&&wo(I,null,ue,"created"),j(ve,I,I.scopeId,Ce,ue),We){for(const ot in We)ot!=="value"&&!Ml(ot)&&c(ve,ot,null,We[ot],de,ue);"value"in We&&c(ve,"value",null,We.value,de),(ye=We.onVnodeBeforeMount)&&Hr(ye,ue,I)}je&&wo(I,null,ue,"beforeMount");const tt=pk(he,ze);tt&&ze.beforeEnter(ve),o(ve,H,X),((ye=We&&We.onVnodeMounted)||tt||je)&&Jn(()=>{ye&&Hr(ye,ue,I),tt&&ze.enter(ve),je&&wo(I,null,ue,"mounted")},he)},j=(I,H,X,ue,he)=>{if(X&&w(I,X),ue)for(let de=0;de<ue.length;de++)w(I,ue[de]);if(he){let de=he.subTree;if(H===de||Yy(de.type)&&(de.ssContent===H||de.ssFallback===H)){const Ce=he.vnode;j(I,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},ne=(I,H,X,ue,he,de,Ce,Ee,ve=0)=>{for(let ye=ve;ye<I.length;ye++){const We=I[ye]=Ee?Wi(I[ye]):Sr(I[ye]);N(null,We,H,X,ue,he,de,Ce,Ee)}},te=(I,H,X,ue,he,de,Ce)=>{const Ee=H.el=I.el;let{patchFlag:ve,dynamicChildren:ye,dirs:We}=H;ve|=I.patchFlag&16;const Ne=I.props||vt,ze=H.props||vt;let je;if(X&&xo(X,!1),(je=ze.onVnodeBeforeUpdate)&&Hr(je,X,H,I),We&&wo(H,I,X,"beforeUpdate"),X&&xo(X,!0),(Ne.innerHTML&&ze.innerHTML==null||Ne.textContent&&ze.textContent==null)&&v(Ee,""),ye?J(I.dynamicChildren,ye,Ee,X,ue,Vf(H,he),de):Ce||se(I,H,Ee,null,X,ue,Vf(H,he),de,!1),ve>0){if(ve&16)re(Ee,Ne,ze,X,he);else if(ve&2&&Ne.class!==ze.class&&c(Ee,"class",null,ze.class,he),ve&4&&c(Ee,"style",Ne.style,ze.style,he),ve&8){const tt=H.dynamicProps;for(let ot=0;ot<tt.length;ot++){const lt=tt[ot],Nt=Ne[lt],st=ze[lt];(st!==Nt||lt==="value")&&c(Ee,lt,Nt,st,he,X)}}ve&1&&I.children!==H.children&&v(Ee,H.children)}else!Ce&&ye==null&&re(Ee,Ne,ze,X,he);((je=ze.onVnodeUpdated)||We)&&Jn(()=>{je&&Hr(je,X,H,I),We&&wo(H,I,X,"updated")},ue)},J=(I,H,X,ue,he,de,Ce)=>{for(let Ee=0;Ee<H.length;Ee++){const ve=I[Ee],ye=H[Ee],We=ve.el&&(ve.type===ct||!qr(ve,ye)||ve.shapeFlag&70)?m(ve.el):X;N(ve,ye,We,null,ue,he,de,Ce,!0)}},re=(I,H,X,ue,he)=>{if(H!==X){if(H!==vt)for(const de in H)!Ml(de)&&!(de in X)&&c(I,de,H[de],null,he,ue);for(const de in X){if(Ml(de))continue;const Ce=X[de],Ee=H[de];Ce!==Ee&&de!=="value"&&c(I,de,Ee,Ce,he,ue)}"value"in X&&c(I,"value",H.value,X.value,he)}},P=(I,H,X,ue,he,de,Ce,Ee,ve)=>{const ye=H.el=I?I.el:d(""),We=H.anchor=I?I.anchor:d("");let{patchFlag:Ne,dynamicChildren:ze,slotScopeIds:je}=H;je&&(Ee=Ee?Ee.concat(je):je),I==null?(o(ye,X,ue),o(We,X,ue),ne(H.children||[],X,We,he,de,Ce,Ee,ve)):Ne>0&&Ne&64&&ze&&I.dynamicChildren?(J(I.dynamicChildren,ze,X,he,de,Ce,Ee),(H.key!=null||he&&H===he.subTree)&&jy(I,H,!0)):se(I,H,X,We,he,de,Ce,Ee,ve)},$=(I,H,X,ue,he,de,Ce,Ee,ve)=>{H.slotScopeIds=Ee,I==null?H.shapeFlag&512?he.ctx.activate(H,X,ue,Ce,ve):O(H,X,ue,he,de,Ce,ve):S(I,H,ve)},O=(I,H,X,ue,he,de,Ce)=>{const Ee=I.component=Pk(I,ue,he);if(xu(I)&&(Ee.ctx.renderer=le),Ik(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,F,Ce),!I.el){const ve=Ee.subTree=Oe(fn);L(null,ve,H,X)}}else F(Ee,I,H,X,he,de,Ce)},S=(I,H,X)=>{const ue=H.component=I.component;if(kk(I,H,X))if(ue.asyncDep&&!ue.asyncResolved){V(ue,H,X);return}else ue.next=H,ue.update();else H.el=I.el,ue.vnode=H},F=(I,H,X,ue,he,de,Ce)=>{const Ee=()=>{if(I.isMounted){let{next:Ne,bu:ze,u:je,parent:tt,vnode:ot}=I;{const Ft=Vy(I);if(Ft){Ne&&(Ne.el=ot.el,V(I,Ne,Ce)),Ft.asyncDep.then(()=>{I.isUnmounted||Ee()});return}}let lt=Ne,Nt;xo(I,!1),Ne?(Ne.el=ot.el,V(I,Ne,Ce)):Ne=ot,ze&&Cc(ze),(Nt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Hr(Nt,tt,Ne,ot),xo(I,!0);const st=wv(I),jt=I.subTree;I.subTree=st,N(jt,st,m(jt.el),D(jt),I,he,de),Ne.el=st.el,lt===null&&Lh(I,st.el),je&&Jn(je,he),(Nt=Ne.props&&Ne.props.onVnodeUpdated)&&Jn(()=>Hr(Nt,tt,Ne,ot),he)}else{let Ne;const{el:ze,props:je}=H,{bm:tt,m:ot,parent:lt,root:Nt,type:st}=I,jt=Cs(H);xo(I,!1),tt&&Cc(tt),!jt&&(Ne=je&&je.onVnodeBeforeMount)&&Hr(Ne,lt,H),xo(I,!0);{Nt.ce&&Nt.ce._injectChildStyle(st);const Ft=I.subTree=wv(I);N(null,Ft,X,ue,I,he,de),H.el=Ft.el}if(ot&&Jn(ot,he),!jt&&(Ne=je&&je.onVnodeMounted)){const Ft=H;Jn(()=>Hr(Ne,lt,Ft),he)}(H.shapeFlag&256||lt&&Cs(lt.vnode)&&lt.vnode.shapeFlag&256)&&I.a&&Jn(I.a,he),I.isMounted=!0,H=X=ue=null}};I.scope.on();const ve=I.effect=new Y0(Ee);I.scope.off();const ye=I.update=ve.run.bind(ve),We=I.job=ve.runIfDirty.bind(ve);We.i=I,We.id=I.uid,ve.scheduler=()=>kh(We),xo(I,!0),ye()},V=(I,H,X)=>{H.component=I;const ue=I.vnode.props;I.vnode=H,I.next=null,lk(I,H.props,ue,X),fk(I,H.children,X),oo(),dv(I),so()},se=(I,H,X,ue,he,de,Ce,Ee,ve=!1)=>{const ye=I&&I.children,We=I?I.shapeFlag:0,Ne=H.children,{patchFlag:ze,shapeFlag:je}=H;if(ze>0){if(ze&128){_e(ye,Ne,X,ue,he,de,Ce,Ee,ve);return}else if(ze&256){me(ye,Ne,X,ue,he,de,Ce,Ee,ve);return}}je&8?(We&16&&ee(ye,he,de),Ne!==ye&&v(X,Ne)):We&16?je&16?_e(ye,Ne,X,ue,he,de,Ce,Ee,ve):ee(ye,he,de,!0):(We&8&&v(X,""),je&16&&ne(Ne,X,ue,he,de,Ce,Ee,ve))},me=(I,H,X,ue,he,de,Ce,Ee,ve)=>{I=I||_s,H=H||_s;const ye=I.length,We=H.length,Ne=Math.min(ye,We);let ze;for(ze=0;ze<Ne;ze++){const je=H[ze]=ve?Wi(H[ze]):Sr(H[ze]);N(I[ze],je,X,null,he,de,Ce,Ee,ve)}ye>We?ee(I,he,de,!0,!1,Ne):ne(H,X,ue,he,de,Ce,Ee,ve,Ne)},_e=(I,H,X,ue,he,de,Ce,Ee,ve)=>{let ye=0;const We=H.length;let Ne=I.length-1,ze=We-1;for(;ye<=Ne&&ye<=ze;){const je=I[ye],tt=H[ye]=ve?Wi(H[ye]):Sr(H[ye]);if(qr(je,tt))N(je,tt,X,null,he,de,Ce,Ee,ve);else break;ye++}for(;ye<=Ne&&ye<=ze;){const je=I[Ne],tt=H[ze]=ve?Wi(H[ze]):Sr(H[ze]);if(qr(je,tt))N(je,tt,X,null,he,de,Ce,Ee,ve);else break;Ne--,ze--}if(ye>Ne){if(ye<=ze){const je=ze+1,tt=je<We?H[je].el:ue;for(;ye<=ze;)N(null,H[ye]=ve?Wi(H[ye]):Sr(H[ye]),X,tt,he,de,Ce,Ee,ve),ye++}}else if(ye>ze)for(;ye<=Ne;)qe(I[ye],he,de,!0),ye++;else{const je=ye,tt=ye,ot=new Map;for(ye=tt;ye<=ze;ye++){const zt=H[ye]=ve?Wi(H[ye]):Sr(H[ye]);zt.key!=null&&ot.set(zt.key,ye)}let lt,Nt=0;const st=ze-tt+1;let jt=!1,Ft=0;const In=new Array(st);for(ye=0;ye<st;ye++)In[ye]=0;for(ye=je;ye<=Ne;ye++){const zt=I[ye];if(Nt>=st){qe(zt,he,de,!0);continue}let zn;if(zt.key!=null)zn=ot.get(zt.key);else for(lt=tt;lt<=ze;lt++)if(In[lt-tt]===0&&qr(zt,H[lt])){zn=lt;break}zn===void 0?qe(zt,he,de,!0):(In[zn-tt]=ye+1,zn>=Ft?Ft=zn:jt=!0,N(zt,H[zn],X,null,he,de,Ce,Ee,ve),Nt++)}const Rr=jt?gk(In):_s;for(lt=Rr.length-1,ye=st-1;ye>=0;ye--){const zt=tt+ye,zn=H[zt],et=zt+1<We?H[zt+1].el:ue;In[ye]===0?N(null,zn,X,et,he,de,Ce,Ee,ve):jt&&(lt<0||ye!==Rr[lt]?Pe(zn,X,et,2):lt--)}}},Pe=(I,H,X,ue,he=null)=>{const{el:de,type:Ce,transition:Ee,children:ve,shapeFlag:ye}=I;if(ye&6){Pe(I.component.subTree,H,X,ue);return}if(ye&128){I.suspense.move(H,X,ue);return}if(ye&64){Ce.move(I,H,X,le);return}if(Ce===ct){o(de,H,X);for(let Ne=0;Ne<ve.length;Ne++)Pe(ve[Ne],H,X,ue);o(I.anchor,H,X);return}if(Ce===Gf){R(I,H,X);return}if(ue!==2&&ye&1&&Ee)if(ue===0)Ee.beforeEnter(de),o(de,H,X),Jn(()=>Ee.enter(de),he);else{const{leave:Ne,delayLeave:ze,afterLeave:je}=Ee,tt=()=>o(de,H,X),ot=()=>{Ne(de,()=>{tt(),je&&je()})};ze?ze(de,tt,ot):ot()}else o(de,H,X)},qe=(I,H,X,ue=!1,he=!1)=>{const{type:de,props:Ce,ref:Ee,children:ve,dynamicChildren:ye,shapeFlag:We,patchFlag:Ne,dirs:ze,cacheIndex:je}=I;if(Ne===-2&&(he=!1),Ee!=null&&Sd(Ee,null,X,I,!0),je!=null&&(H.renderCache[je]=void 0),We&256){H.ctx.deactivate(I);return}const tt=We&1&&ze,ot=!Cs(I);let lt;if(ot&&(lt=Ce&&Ce.onVnodeBeforeUnmount)&&Hr(lt,H,I),We&6)Xe(I.component,X,ue);else{if(We&128){I.suspense.unmount(X,ue);return}tt&&wo(I,null,H,"beforeUnmount"),We&64?I.type.remove(I,H,X,le,ue):ye&&!ye.hasOnce&&(de!==ct||Ne>0&&Ne&64)?ee(ye,H,X,!1,!0):(de===ct&&Ne&384||!he&&We&16)&&ee(ve,H,X),ue&&Ze(I)}(ot&&(lt=Ce&&Ce.onVnodeUnmounted)||tt)&&Jn(()=>{lt&&Hr(lt,H,I),tt&&wo(I,null,H,"unmounted")},X)},Ze=I=>{const{type:H,el:X,anchor:ue,transition:he}=I;if(H===ct){Ke(X,ue);return}if(H===Gf){M(I);return}const de=()=>{s(X),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(I.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,ve=()=>Ce(X,de);Ee?Ee(I.el,de,ve):ve()}else de()},Ke=(I,H)=>{let X;for(;I!==H;)X=b(I),s(I),I=X;s(H)},Xe=(I,H,X)=>{const{bum:ue,scope:he,job:de,subTree:Ce,um:Ee,m:ve,a:ye}=I;bv(ve),bv(ye),ue&&Cc(ue),he.stop(),de&&(de.flags|=8,qe(Ce,I,H,X)),Ee&&Jn(Ee,H),Jn(()=>{I.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},ee=(I,H,X,ue=!1,he=!1,de=0)=>{for(let Ce=de;Ce<I.length;Ce++)qe(I[Ce],H,X,ue,he)},D=I=>{if(I.shapeFlag&6)return D(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const H=b(I.anchor||I.el),X=H&&H[OS];return X?b(X):H};let Z=!1;const G=(I,H,X)=>{I==null?H._vnode&&qe(H._vnode,null,null,!0):N(H._vnode||null,I,H,null,null,null,X),H._vnode=I,Z||(Z=!0,dv(),vy(),Z=!1)},le={p:N,um:qe,m:Pe,r:Ze,mt:O,mc:ne,pc:se,pbc:J,n:D,o:e};return{render:G,hydrate:void 0,createApp:ok(G)}}function Vf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function xo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jy(e,t,r=!1){const o=e.children,s=t.children;if(He(o)&&He(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Wi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&jy(f,d)),d.type===Eu&&(d.el=f.el)}}function gk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Vy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vy(t)}function bv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const vk=Symbol.for("v-scx"),mk=()=>mn(vk);function Ah(e,t){return ku(e,null,t)}function yk(e,t){return ku(e,null,{flush:"sync"})}function xt(e,t,r){return ku(e,t,r)}function ku(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=nn({},r),h=t&&o||!t&&c!=="post";let p;if(Xl){if(c==="sync"){const w=mk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Ur,w.resume=Ur,w.pause=Ur,w}}const v=on;d.call=(w,E,N)=>Lr(w,v,E,N);let m=!1;c==="post"?d.scheduler=w=>{Jn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,E)=>{E?w():kh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=MS(e,t,d);return Xl&&(p?p.push(b):h&&b()),b}function bk(e,t,r){const o=this.proxy,s=It(e)?e.includes(".")?Gy(o,e):()=>o[e]:e.bind(o,o);let c;Ve(t)?c=t:(c=t.handler,r=t);const f=ba(this),d=ku(s,c.bind(o),r);return f(),d}function Gy(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Tu(e,t,r=vt){const o=Do(),s=nr(t),c=mi(t),f=Ky(e,s),d=dy((h,p)=>{let v,m=vt,b;return yk(()=>{const w=e[s];Un(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const E=r.set?r.set(w):w;if(!Un(E,v)&&!(m!==vt&&Un(w,m)))return;const N=o.vnode.props;N&&(t in N||s in N||c in N)&&(`onUpdate:${t}`in N||`onUpdate:${s}`in N||`onUpdate:${c}`in N)||(v=w,p()),o.emit(`update:${t}`,E),Un(w,E)&&Un(w,m)&&!Un(E,b)&&p(),m=w,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Ky=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nr(t)}Modifiers`]||e[`${mi(t)}Modifiers`];function wk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Ky(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>It(v)?v.trim():v)),f.number&&(s=r.map(vd)));let d,h=o[d=Tc(t)]||o[d=Tc(nr(t))];!h&&c&&(h=o[d=Tc(mi(t))]),h&&Lr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Lr(p,e,6,s)}}function Xy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ve(e)){const h=p=>{const v=Xy(p,t,!0);v&&(d=!0,nn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(He(c)?c.forEach(h=>f[h]=null):nn(f,c),St(e)&&o.set(e,f),f)}function Cu(e,t){return!e||!du(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,mi(t))||wt(e,t))}function wv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:E,inheritAttrs:N}=e,T=Bc(e);let L,A;try{if(r.shapeFlag&4){const M=s||o,B=M;L=Sr(p.call(B,M,v,m,w,b,E)),A=d}else{const M=t;L=Sr(M.length>1?M(m,{attrs:d,slots:f,emit:h}):M(m,null)),A=t.props?d:_k(d)}}catch(M){Rl.length=0,ma(M,e,1),L=Oe(fn)}let R=L;if(A&&N!==!1){const M=Object.keys(A),{shapeFlag:B}=R;M.length&&B&7&&(c&&M.some(hh)&&(A=Sk(A,c)),R=Ji(R,A,!1,!0))}return r.dirs&&(R=Ji(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&Vl(R,r.transition),L=R,Bc(T),L}function xk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Ps(s)){if(s.type!==fn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const _k=e=>{let t;for(const r in e)(r==="class"||r==="style"||du(r))&&((t||(t={}))[r]=e[r]);return t},Sk=(e,t)=>{const r={};for(const o in e)(!hh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function kk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?xv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Cu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?xv(o,f,p):!0:!!f;return!1}function xv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Cu(r,c))return!0}return!1}function Lh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Yy=e=>e.__isSuspense;let Ld=0;const Tk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Ck(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Ek(e,t,r,o,s,f,d,h,p)}},hydrate:Ak,normalize:Lk},Zy=Tk;function Kl(e,t){const r=e.props&&e.props[t];Ve(r)&&r()}function Ck(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Jy(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(Kl(e,"onPending"),Kl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Es(b,e.ssFallback)):b.resolve(!1,!0)}function Ek(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:N,isInFallback:T,isHydrating:L}=m;if(N)m.pendingBranch=b,qr(b,N)?(h(N,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():T&&(L||(h(E,w,r,o,s,null,c,f,d),Es(m,w)))):(m.pendingId=Ld++,L?(m.isHydrating=!1,m.activeBranch=N):p(N,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),T?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(E,w,r,o,s,null,c,f,d),Es(m,w))):E&&qr(b,E)?(h(E,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(E&&qr(b,E))h(E,b,r,o,s,m,c,f,d),Es(m,b);else if(Kl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ld++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:A,pendingId:R}=m;A>0?setTimeout(()=>{m.pendingId===R&&m.fallback(w)},A):A===0&&m.fallback(w)}}function Jy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:E,o:{parentNode:N,remove:T}}=p;let L;const A=Nk(e);A&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const R=e.props?U0(e.props.timeout):void 0,M=c,B={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ld++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(K=!1,j=!1){const{vnode:ne,activeBranch:te,pendingBranch:J,pendingId:re,effects:P,parentComponent:$,container:O}=B;let S=!1;B.isHydrating?B.isHydrating=!1:K||(S=te&&J.transition&&J.transition.mode==="out-in",S&&(te.transition.afterLeave=()=>{re===B.pendingId&&(b(J,O,c===M?E(te):c,0),xd(P))}),te&&(N(te.el)===O&&(c=E(te)),w(te,$,B,!0)),S||b(J,O,c,0)),Es(B,J),B.pendingBranch=null,B.isInFallback=!1;let F=B.parent,V=!1;for(;F;){if(F.pendingBranch){F.effects.push(...P),V=!0;break}F=F.parent}!V&&!S&&xd(P),B.effects=[],A&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),Kl(ne,"onResolve")},fallback(K){if(!B.pendingBranch)return;const{vnode:j,activeBranch:ne,parentComponent:te,container:J,namespace:re}=B;Kl(j,"onFallback");const P=E(ne),$=()=>{B.isInFallback&&(m(null,K,J,P,te,null,re,d,h),Es(B,K))},O=K.transition&&K.transition.mode==="out-in";O&&(ne.transition.afterLeave=$),B.isInFallback=!0,w(ne,te,null,!0),O||$()},move(K,j,ne){B.activeBranch&&b(B.activeBranch,K,j,ne),B.container=K},next(){return B.activeBranch&&E(B.activeBranch)},registerDep(K,j,ne){const te=!!B.pendingBranch;te&&B.deps++;const J=K.vnode.el;K.asyncDep.catch(re=>{ma(re,K,0)}).then(re=>{if(K.isUnmounted||B.isUnmounted||B.pendingId!==K.suspenseId)return;K.asyncResolved=!0;const{vnode:P}=K;Nd(K,re),J&&(P.el=J);const $=!J&&K.subTree.el;j(K,P,N(J||K.subTree.el),J?null:E(K.subTree),B,f,ne),$&&T($),Lh(K,P.el),te&&--B.deps===0&&B.resolve()})},unmount(K,j){B.isUnmounted=!0,B.activeBranch&&w(B.activeBranch,r,K,j),B.pendingBranch&&w(B.pendingBranch,r,K,j)}};return B}function Ak(e,t,r,o,s,c,f,d,h){const p=t.suspense=Jy(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Lk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=_v(o?r.default:r),e.ssFallback=o?_v(r.fallback):Oe(fn)}function _v(e){let t;if(Ve(e)){const r=Rs&&e._c;r&&(e._d=!1,ce()),e=e(),r&&(e._d=!0,t=Vn,Qy())}return He(e)&&(e=xk(e)),e=Sr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Mk(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):xd(e)}function Es(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Lh(o,s))}function Nk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Eu=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),Gf=Symbol.for("v-stc"),Rl=[];let Vn=null;function ce(e=!1){Rl.push(Vn=e?null:[])}function Qy(){Rl.pop(),Vn=Rl[Rl.length-1]||null}let Rs=1;function Uc(e){Rs+=e,e<0&&Vn&&(Vn.hasOnce=!0)}function eb(e){return e.dynamicChildren=Rs>0?Vn||_s:null,Qy(),Rs>0&&Vn&&Vn.push(e),e}function xe(e,t,r,o,s,c){return eb(ie(e,t,r,o,s,c,!0))}function nt(e,t,r,o,s){return eb(Oe(e,t,r,o,s,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function qr(e,t){return e.type===t.type&&e.key===t.key}const tb=({key:e})=>e??null,Ec=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?It(e)||Ct(e)||Ve(e)?{i:Qt,r:e,k:t,f:!!r}:e:null);function ie(e,t=null,r=null,o=0,s=null,c=e===ct?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tb(t),ref:t&&Ec(t),scopeId:wu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Qt};return d?(Mh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=It(r)?8:16),Rs>0&&!f&&Vn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Vn.push(h),h}const Oe=$k;function $k(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Ly)&&(e=fn),Ps(e)){const d=Ji(e,t,!0);return r&&Mh(d,r),Rs>0&&!c&&Vn&&(d.shapeFlag&6?Vn[Vn.indexOf(e)]=d:Vn.push(d)),d.patchFlag=-2,d}if(Hk(e)&&(e=e.__vccOpts),t){t=nb(t);let{class:d,style:h}=t;d&&!It(d)&&(t.class=it(d)),St(h)&&(_h(h)&&!He(h)&&(h=nn({},h)),t.style=en(h))}const f=It(e)?1:Yy(e)?128:xy(e)?64:St(e)?4:Ve(e)?2:0;return ie(e,t,r,o,s,f,c,!0)}function nb(e){return e?_h(e)||Dy(e)?nn({},e):e:null}function Ji(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?hi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&tb(p),ref:t&&t.ref?r&&c?He(c)?c.concat(Ec(t)):[c,Ec(t)]:Ec(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ji(e.ssContent),ssFallback:e.ssFallback&&Ji(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Vl(v,h.clone(v)),v}function pt(e=" ",t=0){return Oe(Eu,null,e,t)}function Ye(e="",t=!1){return t?(ce(),nt(fn,null,e)):Oe(fn,null,e)}function Sr(e){return e==null||typeof e=="boolean"?Oe(fn):He(e)?Oe(ct,null,e.slice()):Ps(e)?Wi(e):Oe(Eu,null,String(e))}function Wi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ji(e)}function Mh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(He(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Mh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Dy(t)?t._ctx=Qt:s===3&&Qt&&(Qt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:Qt},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function hi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=it([t.class,o.class]));else if(s==="style")t.style=en([t.style,o.style]);else if(du(s)){const c=t[s],f=o[s];f&&c!==f&&!(He(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Hr(e,t,r,o=null){Lr(e,t,7,[r,o])}const Ok=Ry();let Rk=0;function Pk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Ok,c={uid:Rk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new eS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hy(o,s),emitsOptions:Xy(o,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=wk.bind(null,c),e.ce&&e.ce(c),c}let on=null;const Do=()=>on||Qt;let jc,Md;{const e=vu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};jc=t("__VUE_INSTANCE_SETTERS__",r=>on=r),Md=t("__VUE_SSR_SETTERS__",r=>Xl=r)}const ba=e=>{const t=on;return jc(e),e.scope.on(),()=>{e.scope.off(),jc(t)}},Sv=()=>{on&&on.scope.off(),jc(null)};function rb(e){return e.vnode.shapeFlag&4}let Xl=!1;function Ik(e,t=!1,r=!1){t&&Md(t);const{props:o,children:s}=e.vnode,c=rb(e);sk(e,o,c,t),uk(e,s,r);const f=c?zk(e,t):void 0;return t&&Md(!1),f}function zk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,YS);const{setup:o}=r;if(o){oo();const s=e.setupContext=o.length>1?ob(e):null,c=ba(e),f=va(o,e,0,[e.props,s]),d=H0(f);if(so(),c(),(d||e.sp)&&!Cs(e)&&Ey(e),d){if(f.then(Sv,Sv),t)return f.then(h=>{Nd(e,h)}).catch(h=>{ma(h,e,0)});e.asyncDep=f}else Nd(e,f)}else ib(e)}function Nd(e,t,r){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=fy(t)),ib(e)}function ib(e,t,r){const o=e.type;e.render||(e.render=o.render||Ur);{const s=ba(e);oo();try{QS(e)}finally{so(),s()}}}const Dk={get(e,t){return gn(e,"get",""),e[t]}};function ob(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Dk),slots:e.slots,emit:e.emit,expose:t}}function Au(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fy(Sh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ol)return Ol[r](e)},has(t,r){return r in t||r in Ol}})):e.proxy}function Fk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Hk(e){return Ve(e)&&"__vccOpts"in e}const Se=(e,t)=>AS(e,t,Xl);function wa(e,t,r){const o=arguments.length;return o===2?St(t)&&!He(t)?Ps(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ps(r)&&(r=[r]),Oe(e,t,r))}const Bk="3.5.12";/**
14
- * @vue/runtime-dom v3.5.12
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let $d;const kv=typeof window<"u"&&window.trustedTypes;if(kv)try{$d=kv.createPolicy("vue",{createHTML:e=>e})}catch{}const sb=$d?e=>$d.createHTML(e):e=>e,Wk="http://www.w3.org/2000/svg",qk="http://www.w3.org/1998/Math/MathML",ai=typeof document<"u"?document:null,Tv=ai&&ai.createElement("template"),Uk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?ai.createElementNS(Wk,e):t==="mathml"?ai.createElementNS(qk,e):r?ai.createElement(e,{is:r}):ai.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ai.createTextNode(e),createComment:e=>ai.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ai.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Tv.innerHTML=sb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Tv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ri="transition",xl="animation",Yl=Symbol("_vtc"),lb={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},jk=nn({},_y,lb),Vk=e=>(e.displayName="Transition",e.props=jk,e),Gk=Vk((e,{slots:t})=>wa(IS,Kk(e),t)),_o=(e,t=[])=>{He(e)?e.forEach(r=>r(...t)):e&&e(...t)},Cv=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function Kk(e){const t={};for(const P in e)P in lb||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=Xk(s),N=E&&E[0],T=E&&E[1],{onBeforeEnter:L,onEnter:A,onEnterCancelled:R,onLeave:M,onLeaveCancelled:B,onBeforeAppear:K=L,onAppear:j=A,onAppearCancelled:ne=R}=t,te=(P,$,O)=>{So(P,$?v:d),So(P,$?p:f),O&&O()},J=(P,$)=>{P._isLeaving=!1,So(P,m),So(P,w),So(P,b),$&&$()},re=P=>($,O)=>{const S=P?j:A,F=()=>te($,P,O);_o(S,[$,F]),Ev(()=>{So($,P?h:c),Pi($,P?v:d),Cv(S)||Av($,o,N,F)})};return nn(t,{onBeforeEnter(P){_o(L,[P]),Pi(P,c),Pi(P,f)},onBeforeAppear(P){_o(K,[P]),Pi(P,h),Pi(P,p)},onEnter:re(!1),onAppear:re(!0),onLeave(P,$){P._isLeaving=!0;const O=()=>J(P,$);Pi(P,m),Pi(P,b),Jk(),Ev(()=>{P._isLeaving&&(So(P,m),Pi(P,w),Cv(M)||Av(P,o,T,O))}),_o(M,[P,O])},onEnterCancelled(P){te(P,!1),_o(R,[P])},onAppearCancelled(P){te(P,!0),_o(ne,[P])},onLeaveCancelled(P){J(P),_o(B,[P])}})}function Xk(e){if(e==null)return null;if(St(e))return[Kf(e.enter),Kf(e.leave)];{const t=Kf(e);return[t,t]}}function Kf(e){return U0(e)}function Pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Yl]||(e[Yl]=new Set)).add(t)}function So(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Yl];r&&(r.delete(t),r.size||(e[Yl]=void 0))}function Ev(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Yk=0;function Av(e,t,r,o){const s=e._endId=++Yk,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Zk(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function Zk(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Ri}Delay`),c=o(`${Ri}Duration`),f=Lv(s,c),d=o(`${xl}Delay`),h=o(`${xl}Duration`),p=Lv(d,h);let v=null,m=0,b=0;t===Ri?f>0&&(v=Ri,m=f,b=c.length):t===xl?p>0&&(v=xl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Ri:xl:null,b=v?v===Ri?c.length:h.length:0);const w=v===Ri&&/\b(transform|all)(,|$)/.test(o(`${Ri}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Lv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Mv(r)+Mv(e[o])))}function Mv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jk(){return document.body.offsetHeight}function Qk(e,t,r){const o=e[Yl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Vc=Symbol("_vod"),ab=Symbol("_vsh"),Vi={beforeMount(e,{value:t},{transition:r}){e[Vc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):_l(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),_l(e,!0),o.enter(e)):o.leave(e,()=>{_l(e,!1)}):_l(e,t))},beforeUnmount(e,{value:t}){_l(e,t)}};function _l(e,t){e.style.display=t?e[Vc]:"none",e[ab]=!t}const eT=Symbol(""),tT=/(^|;)\s*display\s*:/;function nT(e,t,r){const o=e.style,s=It(r);let c=!1;if(r&&!s){if(t)if(It(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ac(o,d,"")}else for(const f in t)r[f]==null&&Ac(o,f,"");for(const f in r)f==="display"&&(c=!0),Ac(o,f,r[f])}else if(s){if(t!==r){const f=o[eT];f&&(r+=";"+f),o.cssText=r,c=tT.test(r)}}else t&&e.removeAttribute("style");Vc in e&&(e[Vc]=c?o.display:"",e[ab]&&(o.display="none"))}const Nv=/\s*!important$/;function Ac(e,t,r){if(He(r))r.forEach(o=>Ac(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=rT(e,t);Nv.test(r)?e.setProperty(mi(o),r.replace(Nv,""),"important"):e[o]=r}}const $v=["Webkit","Moz","ms"],Xf={};function rT(e,t){const r=Xf[t];if(r)return r;let o=nr(t);if(o!=="filter"&&o in e)return Xf[t]=o;o=gu(o);for(let s=0;s<$v.length;s++){const c=$v[s]+o;if(c in e)return Xf[t]=c}return t}const Ov="http://www.w3.org/1999/xlink";function Rv(e,t,r,o,s,c=J_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Ov,t.slice(6,t.length)):e.setAttributeNS(Ov,t,r):r==null||c&&!j0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Ar(r)?String(r):r)}function Pv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?sb(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=j0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Eo(e,t,r,o){e.addEventListener(t,r,o)}function iT(e,t,r,o){e.removeEventListener(t,r,o)}const Iv=Symbol("_vei");function oT(e,t,r,o,s=null){const c=e[Iv]||(e[Iv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=sT(t);if(o){const p=c[t]=cT(o,s);Eo(e,d,p,h)}else f&&(iT(e,d,f,h),c[t]=void 0)}}const zv=/(?:Once|Passive|Capture)$/;function sT(e){let t;if(zv.test(e)){t={};let o;for(;o=e.match(zv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mi(e.slice(2)),t]}let Yf=0;const lT=Promise.resolve(),aT=()=>Yf||(lT.then(()=>Yf=0),Yf=Date.now());function cT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Lr(uT(o,r.value),t,5,[o])};return r.value=e,r.attached=aT(),r}function uT(e,t){if(He(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Dv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Qk(e,o,f):t==="style"?nT(e,r,o):du(t)?hh(t)||oT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dT(e,t,o,f))?(Pv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!It(o))?Pv(e,nr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Rv(e,t,o,f))};function dT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dv(t)&&Ve(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Dv(t)&&It(r)?!1:t in e}const Gc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?r=>Cc(t,r):t};function hT(e){e.target.composing=!0}function Fv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const As=Symbol("_assign"),pT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[As]=Gc(s);const c=o||s.props&&s.props.type==="number";Eo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=vd(d)),e[As](d)}),r&&Eo(e,"change",()=>{e.value=e.value.trim()}),t||(Eo(e,"compositionstart",hT),Eo(e,"compositionend",Fv),Eo(e,"change",Fv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[As]=Gc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?vd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},cb={deep:!0,created(e,t,r){e[As]=Gc(r),Eo(e,"change",()=>{const o=e._modelValue,s=gT(e),c=e.checked,f=e[As];if(He(o)){const d=V0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(hu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(ub(e,c))})},mounted:Hv,beforeUpdate(e,t,r){e[As]=Gc(r),Hv(e,t,r)}};function Hv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(He(t))s=V0(t,o.props.value)>-1;else if(hu(t))s=t.has(o.props.value);else{if(t===r)return;s=mu(t,ub(e,!0))}e.checked!==s&&(e.checked=s)}function gT(e){return"_value"in e?e._value:e.value}function ub(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const vT=["ctrl","shift","alt","meta"],mT={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)=>vT.some(r=>e[`${r}Key`]&&!t.includes(r))},Lc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=mT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},yT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Od=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=mi(s.key);if(t.some(f=>f===c||yT[f]===c))return e(s)})},bT=nn({patchProp:fT},Uk);let Bv;function wT(){return Bv||(Bv=dk(bT))}const fb=(...e)=>{const t=wT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=_T(o);if(!s)return;const c=t._component;!Ve(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,xT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function xT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _T(e){return It(e)?document.querySelector(e):e}const bi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},ST={};function kT(e,t){const r=Po("RouterView");return ce(),nt(r)}const TT=bi(ST,[["render",kT]]),CT=["top","right","bottom","left"],Wv=["start","end"],qv=CT.reduce((e,t)=>e.concat(t,t+"-"+Wv[0],t+"-"+Wv[1]),[]),Zl=Math.min,Co=Math.max,ET={left:"right",right:"left",bottom:"top",top:"bottom"},AT={start:"end",end:"start"};function Rd(e,t,r){return Co(e,Zl(t,r))}function Fo(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function Cr(e){return e.split("-")[1]}function db(e){return e==="x"?"y":"x"}function Nh(e){return e==="y"?"height":"width"}function xa(e){return["top","bottom"].includes(Kr(e))?"y":"x"}function $h(e){return db(xa(e))}function hb(e,t,r){r===void 0&&(r=!1);const o=Cr(e),s=$h(e),c=Nh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Xc(f)),[f,Xc(f)]}function LT(e){const t=Xc(e);return[Kc(e),t,Kc(t)]}function Kc(e){return e.replace(/start|end/g,t=>AT[t])}function MT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function NT(e,t,r,o){const s=Cr(e);let c=MT(Kr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Kc)))),c}function Xc(e){return e.replace(/left|right|bottom|top/g,t=>ET[t])}function $T(e){return{top:0,right:0,bottom:0,left:0,...e}}function pb(e){return typeof e!="number"?$T(e):{top:e,right:e,bottom:e,left:e}}function Pl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Uv(e,t,r){let{reference:o,floating:s}=e;const c=xa(t),f=$h(t),d=Nh(f),h=Kr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(Cr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const OT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Uv(p,o,h),b=o,w={},E=0;for(let N=0;N<d.length;N++){const{name:T,fn:L}=d[N],{x:A,y:R,data:M,reset:B}=await L({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=A??v,m=R??m,w={...w,[T]:{...w[T],...M}},B&&E<=50&&(E++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(p=B.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):B.rects),{x:v,y:m}=Uv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Lu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=Fo(t,e),E=pb(w),T=d[b?m==="floating"?"reference":"floating":m],L=Pl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),A=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),M=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},B=Pl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:R,strategy:h}):A);return{top:(L.top-B.top+E.top)/M.y,bottom:(B.bottom-L.bottom+E.bottom)/M.y,left:(L.left-B.left+E.left)/M.x,right:(B.right-L.right+E.right)/M.x}}const RT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Fo(e,t)||{};if(p==null)return{};const m=pb(v),b={x:r,y:o},w=$h(s),E=Nh(w),N=await f.getDimensions(p),T=w==="y",L=T?"top":"left",A=T?"bottom":"right",R=T?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[w]-b[w]-c.floating[E],B=b[w]-c.reference[w],K=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let j=K?K[R]:0;(!j||!await(f.isElement==null?void 0:f.isElement(K)))&&(j=d.floating[R]||c.floating[E]);const ne=M/2-B/2,te=j/2-N[E]/2-1,J=Zl(m[L],te),re=Zl(m[A],te),P=J,$=j-N[E]-re,O=j/2-N[E]/2+ne,S=Rd(P,O,$),F=!h.arrow&&Cr(s)!=null&&O!==S&&c.reference[E]/2-(O<P?J:re)-N[E]/2<0,V=F?O<P?O-P:O-$:0;return{[w]:b[w]+V,data:{[w]:S,centerOffset:O-S-V,...F&&{alignmentOffset:V}},reset:F}}});function PT(e,t,r){return(e?[...r.filter(s=>Cr(s)===e),...r.filter(s=>Cr(s)!==e)]:r.filter(s=>Kr(s)===s)).filter(s=>e?Cr(s)===e||(t?Kc(s)!==s:!1):!0)}const IT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=qv,autoAlignment:w=!0,...E}=Fo(e,t),N=m!==void 0||b===qv?PT(m||null,w,b):b,T=await Lu(t,E),L=((r=f.autoPlacement)==null?void 0:r.index)||0,A=N[L];if(A==null)return{};const R=hb(A,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==A)return{reset:{placement:N[0]}};const M=[T[Kr(A)],T[R[0]],T[R[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:M}],K=N[L+1];if(K)return{data:{index:L+1,overflows:B},reset:{placement:K}};const j=B.map(J=>{const re=Cr(J.placement);return[J.placement,re&&v?J.overflows.slice(0,2).reduce((P,$)=>P+$,0):J.overflows[0],J.overflows]}).sort((J,re)=>J[1]-re[1]),te=((s=j.filter(J=>J[2].slice(0,Cr(J[0])?2:3).every(re=>re<=0))[0])==null?void 0:s[0])||j[0][0];return te!==d?{data:{index:L+1,overflows:B},reset:{placement:te}}:{}}}},zT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...T}=Fo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=Kr(s),A=Kr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),M=b||(A||!N?[Xc(d)]:LT(d));!b&&E!=="none"&&M.push(...NT(d,N,E,R));const B=[d,...M],K=await Lu(t,T),j=[];let ne=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&j.push(K[L]),m){const P=hb(s,f,R);j.push(K[P[0]],K[P[1]])}if(ne=[...ne,{placement:s,overflows:j}],!j.every(P=>P<=0)){var te,J;const P=(((te=c.flip)==null?void 0:te.index)||0)+1,$=B[P];if($)return{data:{index:P,overflows:ne},reset:{placement:$}};let O=(J=ne.filter(S=>S.overflows[0]<=0).sort((S,F)=>S.overflows[1]-F.overflows[1])[0])==null?void 0:J.placement;if(!O)switch(w){case"bestFit":{var re;const S=(re=ne.map(F=>[F.placement,F.overflows.filter(V=>V>0).reduce((V,se)=>V+se,0)]).sort((F,V)=>F[1]-V[1])[0])==null?void 0:re[0];S&&(O=S);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function DT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Kr(r),d=Cr(r),h=xa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Fo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const FT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await DT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},HT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:T=>{let{x:L,y:A}=T;return{x:L,y:A}}},...h}=Fo(e,t),p={x:r,y:o},v=await Lu(t,h),m=xa(Kr(s)),b=db(m);let w=p[b],E=p[m];if(c){const T=b==="y"?"top":"left",L=b==="y"?"bottom":"right",A=w+v[T],R=w-v[L];w=Rd(A,w,R)}if(f){const T=m==="y"?"top":"left",L=m==="y"?"bottom":"right",A=E+v[T],R=E-v[L];E=Rd(A,E,R)}const N=d.fn({...t,[b]:w,[m]:E});return{...N,data:{x:N.x-r,y:N.y-o}}}}},BT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Fo(e,t),h=await Lu(t,d),p=Kr(r),v=Cr(r),m=xa(r)==="y",{width:b,height:w}=o.floating;let E,N;p==="top"||p==="bottom"?(E=p,N=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(N=p,E=v==="end"?"top":"bottom");const T=w-h[E],L=b-h[N],A=!t.middlewareData.shift;let R=T,M=L;if(m){const K=b-h.left-h.right;M=v||A?Zl(L,K):K}else{const K=w-h.top-h.bottom;R=v||A?Zl(T,K):K}if(A&&!v){const K=Co(h.left,0),j=Co(h.right,0),ne=Co(h.top,0),te=Co(h.bottom,0);m?M=b-2*(K!==0||j!==0?K+j:Co(h.left,h.right)):R=w-2*(ne!==0||te!==0?ne+te:Co(h.top,h.bottom))}await f({...t,availableWidth:M,availableHeight:R});const B=await s.getDimensions(c.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function lr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jr(e){return lr(e).getComputedStyle(e)}const jv=Math.min,Il=Math.max,Yc=Math.round;function gb(e){const t=jr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Yc(r)!==s||Yc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Qi(e){return mb(e)?(e.nodeName||"").toLowerCase():""}let dc;function vb(){if(dc)return dc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(dc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),dc):navigator.userAgent}function Vr(e){return e instanceof lr(e).HTMLElement}function Xi(e){return e instanceof lr(e).Element}function mb(e){return e instanceof lr(e).Node}function Vv(e){return typeof ShadowRoot>"u"?!1:e instanceof lr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=jr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function WT(e){return["table","td","th"].includes(Qi(e))}function Pd(e){const t=/firefox/i.test(vb()),r=jr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function yb(){return!/^((?!chrome|android).)*safari/i.test(vb())}function Oh(e){return["html","body","#document"].includes(Qi(e))}function bb(e){return Xi(e)?e:e.contextElement}const wb={x:1,y:1};function Ls(e){const t=bb(e);if(!Vr(t))return wb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=gb(t);let f=(c?Yc(r.width):r.width)/o,d=(c?Yc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Jl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=bb(e);let h=wb;t&&(o?Xi(o)&&(h=Ls(o)):h=Ls(e));const p=d?lr(d):window,v=!yb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const N=lr(d),T=o&&Xi(o)?lr(o):o;let L=N.frameElement;for(;L&&o&&T!==N;){const A=Ls(L),R=L.getBoundingClientRect(),M=getComputedStyle(L);R.x+=(L.clientLeft+parseFloat(M.paddingLeft))*A.x,R.y+=(L.clientTop+parseFloat(M.paddingTop))*A.y,m*=A.x,b*=A.y,w*=A.x,E*=A.y,m+=R.x,b+=R.y,L=lr(L).frameElement}}return{width:w,height:E,top:b,right:m+w,bottom:b+E,left:m,x:m,y:b}}function Yi(e){return((mb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xb(e){return Jl(Yi(e)).left+Nu(e).scrollLeft}function Ql(e){if(Qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vv(e)&&e.host||Yi(e);return Vv(t)?t.host:t}function _b(e){const t=Ql(e);return Oh(t)?t.ownerDocument.body:Vr(t)&&Mu(t)?t:_b(t)}function Zc(e,t){var r;t===void 0&&(t=[]);const o=_b(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=lr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Zc(o))}function Gv(e,t,r){return t==="viewport"?Pl(function(o,s){const c=lr(o),f=Yi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=yb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Xi(t)?Pl(function(o,s){const c=Jl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Vr(o)?Ls(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Pl(function(o){const s=Yi(o),c=Nu(o),f=o.ownerDocument.body,d=Il(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Il(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+xb(o);const v=-c.scrollTop;return jr(f).direction==="rtl"&&(p+=Il(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Yi(e)))}function Kv(e){return Vr(e)&&jr(e).position!=="fixed"?e.offsetParent:null}function Xv(e){const t=lr(e);let r=Kv(e);for(;r&&WT(r)&&jr(r).position==="static";)r=Kv(r);return r&&(Qi(r)==="html"||Qi(r)==="body"&&jr(r).position==="static"&&!Pd(r))?t:r||function(o){let s=Ql(o);for(;Vr(s)&&!Oh(s);){if(Pd(s))return s;s=Ql(s)}return null}(e)||t}function qT(e,t,r){const o=Vr(t),s=Yi(t),c=Jl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Qi(t)!=="body"||Mu(s))&&(f=Nu(t)),Vr(t)){const h=Jl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=xb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const UT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Zc(p).filter(T=>Xi(T)&&Qi(T)!=="body"),w=null;const E=jr(p).position==="fixed";let N=E?Ql(p):p;for(;Xi(N)&&!Oh(N);){const T=jr(N),L=Pd(N);(E?L||w:L||T.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=T:b=b.filter(A=>A!==N),N=Ql(N)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Gv(t,v,s);return p.top=Il(m.top,p.top),p.right=jv(m.right,p.right),p.bottom=jv(m.bottom,p.bottom),p.left=Il(m.left,p.left),p},Gv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Vr(r),c=Yi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Qi(r)!=="body"||Mu(c))&&(f=Nu(r)),Vr(r))){const p=Jl(r);d=Ls(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Xi,getDimensions:function(e){return Vr(e)?gb(e):e.getBoundingClientRect()},getOffsetParent:Xv,getDocumentElement:Yi,getScale:Ls,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Xv,c=this.getDimensions;return{reference:qT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>jr(e).direction==="rtl"},jT=(e,t,r)=>{const o=new Map,s={platform:UT,...r},c={...s.platform,_c:o};return OT(e,t,{...s,platform:c})},Zi={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ea(e,t){let r=Zi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Zi.themes[r.$extend]||{}:(r=null,o=Zi[t]):r=null;while(r);return o}function VT(e){const t=[e];let r=Zi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Zi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Yv(e){const t=[e];let r=Zi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Zi.themes[r.$extend]||{}):r=null;while(r);return t}let ta=!1;if(typeof window<"u"){ta=!1;try{const e=Object.defineProperty({},"passive",{get(){ta=!0}});window.addEventListener("test",null,e)}catch{}}let Sb=!1;typeof window<"u"&&typeof navigator<"u"&&(Sb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const kb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Zv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Jv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Qv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Zf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Qn=[];let ko=null;const em={};function tm(e){let t=em[e];return t||(t=em[e]=[]),t}let Id=function(){};typeof window<"u"&&(Id=window.Element);function at(e){return function(t){return ea(t.theme,e)}}const Jf="__floating-vue__popper",Tb=()=>ut({name:"VPopper",provide(){return{[Jf]:{parentPopper:this}}},inject:{[Jf]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>kb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Id,Boolean],default:at("container")},boundary:{type:[String,Id],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Jf])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(FT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(IT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(HT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(zT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(RT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(BT({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await jT(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ko&&this.instantMove&&ko.instantMove&&ko!==this.parentPopper){ko.$_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&&(ko=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Zf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Zc(this.$_referenceNode),...Zc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Qn.length;r++)t=Qn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Qn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Yv(this.theme))tm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Zf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Qv(Qn,this),Qn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Yv(this.theme)){const o=tm(r);Qv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}ko===this&&(ko=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Zf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Zv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Zv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Jv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Jv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ta?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(zl>=e.left&&zl<=e.right&&Dl>=e.top&&Dl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=zl-Di,o=Dl-Fi,s=t.left+t.width/2-Di+(t.top+t.height/2)-Fi+t.width+t.height,c=Di+r*s,f=Fi+o*s;return hc(Di,Fi,c,f,t.left,t.top,t.left,t.bottom)||hc(Di,Fi,c,f,t.left,t.top,t.right,t.top)||hc(Di,Fi,c,f,t.right,t.top,t.right,t.bottom)||hc(Di,Fi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Sb){const e=ta?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>nm(t),e),document.addEventListener("touchend",t=>rm(t,!0),e)}else window.addEventListener("mousedown",e=>nm(e),!0),window.addEventListener("click",e=>rm(e,!1),!0);window.addEventListener("resize",XT)}function nm(e,t){for(let r=0;r<Qn.length;r++){const o=Qn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function rm(e,t){GT(e,t)}function GT(e,t){const r={};for(let o=Qn.length-1;o>=0;o--){const s=Qn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&im(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&im(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function im(e,t,r){return r.closeAllPopover||r.closePopover&&t||KT(e,r)&&!t}function KT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function XT(){for(let e=0;e<Qn.length;e++)Qn[e].$_computePosition()}function om(){for(let e=0;e<Qn.length;e++)Qn[e].hide()}let Di=0,Fi=0,zl=0,Dl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Di=zl,Fi=Dl,zl=e.clientX,Dl=e.clientY},ta?{passive:!0}:void 0);function hc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const YT={extends:Tb()},$u=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function ZT(e,t,r,o,s,c){return ce(),xe("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[bn(e.$slots,"default",Y_(nb(e.slotData)))],2)}const JT=$u(YT,[["render",ZT]]);function QT(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Mc;function zd(){zd.init||(zd.init=!0,Mc=QT()!==-1)}var Ou={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){zd(),Tt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Mc&&this.$el.appendChild(e),e.data="about:blank",Mc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Mc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const eC=wy();yy("data-v-b329ee4c");const tC={class:"resize-observer",tabindex:"-1"};by();const nC=eC((e,t,r,o,s,c)=>(ce(),nt("div",tC)));Ou.render=nC;Ou.__scopeId="data-v-b329ee4c";Ou.__file="src/components/ResizeObserver.vue";const Cb=(e="theme")=>({computed:{themeClass(){return VT(this[e])}}}),rC=ut({name:"VPopperContent",components:{ResizeObserver:Ou},mixins:[Cb()],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}}}),iC=["id","aria-hidden","tabindex","data-popper-placement"],oC={ref:"inner",class:"v-popper__inner"},sC=ie("div",{class:"v-popper__arrow-outer"},null,-1),lC=ie("div",{class:"v-popper__arrow-inner"},null,-1),aC=[sC,lC];function cC(e,t,r,o,s,c){const f=Po("ResizeObserver");return ce(),xe("div",{id:e.popperId,ref:"popover",class:it(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:en(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Od(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ie("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ie("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ie("div",oC,[e.mounted?(ce(),xe(ct,{key:0},[ie("div",null,[bn(e.$slots,"default")]),e.handleResize?(ce(),nt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),ie("div",{ref:"arrow",class:"v-popper__arrow-container",style:en(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},aC,4)],4)],46,iC)}const Eb=$u(rC,[["render",cC]]),Ab={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Dd=function(){};typeof window<"u"&&(Dd=window.Element);const uC=ut({name:"VPopperWrapper",components:{Popper:JT,PopperContent:Eb},mixins:[Ab,Cb("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,Dd,Boolean],default:void 0},boundary:{type:[String,Dd],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 fC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return ce(),nt(d,hi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:E,handleResize:N,onResize:T,classes:L,result:A})=>[bn(e.$slots,"default",{shown:p,show:w,hide:E}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":N,classes:L,result:A,onHide:E,onResize:T},{default:rt(()=>[bn(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Rh=$u(uC,[["render",fC]]);({...Rh});({...Rh});const dC={...Rh,name:"VTooltip",vPopperTheme:"tooltip"},hC=ut({name:"VTooltipDirective",components:{Popper:Tb(),PopperContent:Eb},mixins:[Ab],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ea(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ea(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),pC=["innerHTML"],gC=["textContent"];function vC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return ce(),nt(d,hi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:E,onResize:N,classes:T,result:L})=>[Oe(f,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:T,result:L,onHide:w,onResize:N},{default:rt(()=>[e.html?(ce(),xe("div",{key:0,innerHTML:e.finalContent},null,8,pC)):(ce(),xe("div",{key:1,textContent:Be(e.finalContent)},null,8,gC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const mC=$u(hC,[["render",vC]]),Lb="v-popper--has-tooltip";function yC(e,t){let r=e.placement;if(!r&&t)for(const o of kb)t[o]&&(r=o);return r||(r=ea(e.theme||"tooltip","placement")),r}function Mb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=yC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Qf,na,bC=0;function wC(){if(Qf)return;na=Ue([]),Qf=fb({name:"VTooltipDirectiveApp",setup(){return{directives:na}},render(){return this.directives.map(t=>wa(mC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Qf.mount(e)}function Nb(e,t,r){wC();const o=Ue(Mb(e,t,r)),s=Ue(!1),c={id:bC++,options:o,shown:s};return na.value.push(c),e.classList&&e.classList.add(Lb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ph(e){if(e.$_popper){const t=na.value.indexOf(e.$_popper.item);t!==-1&&na.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Lb)}function sm(e,{value:t,modifiers:r}){const o=Mb(e,t,r);if(!o.content||ea(o.theme||"tooltip","disabled"))Ph(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Nb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const xC={beforeMount:sm,updated:sm,beforeUnmount(e){Ph(e)}},_C=xC,$b=dC,Ob={options:Zi};function Rb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const SC=/^[A-Za-z]:\//;function kC(e=""){return e&&e.replace(/\\/g,"/").replace(SC,t=>t.toUpperCase())}const TC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,lm=/^\/([A-Za-z]:)?$/;function CC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const am=function(...e){e=e.map(o=>kC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:CC();!s||s.length===0||(t=`${s}/${t}`,r=cm(s))}return t=EC(t,!r),r&&!cm(t)?`/${t}`:t.length>0?t:"."};function EC(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const cm=function(e){return TC.test(e)},AC=function(e,t){const r=am(e).replace(lm,"$1").split("/"),o=am(t).replace(lm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function LC(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Pb(e,t,r,o){const s=AC(t,e),c={id:MC(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function MC(e,t){return LC(`${e}${t||""}`)}function Ib(e){return ra(e)}function ra(e){return e.type==="test"}function zb(e){const t=[],r=Ih(e);for(const o of r)if(ra(o))t.push(o);else for(const s of o.tasks)if(ra(s))t.push(s);else{const c=zb(s);for(const f of c)t.push(f)}return t}function zh(e=[]){return Ih(e).flatMap(t=>ra(t)?[t]:[t,...zh(t.tasks)])}function NC(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const $C=6e4;function Db(e){return e}const OC=Db,{clearTimeout:RC,setTimeout:PC}=globalThis,IC=Math.random.bind(Math);function zC(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Db,deserialize:d=OC,resolver:h,bind:p="rpc",timeout:v=$C}=t,m=new Map;let b,w=!1;const E=new Proxy({},{get(L,A){if(A==="$functions")return e;if(A==="$close")return N;if(A==="then"&&!c.includes("then")&&!("then"in e))return;const R=(...B)=>{r(f({m:A,a:B,t:"q"}))};if(c.includes(A))return R.asEvent=R,R;const M=async(...B)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${A}"`);if(b)try{await b}finally{b=void 0}return new Promise((K,j)=>{var J;const ne=FC();let te;v>=0&&(te=PC(()=>{var re;try{throw(re=t.onTimeoutError)==null||re.call(t,A,B),new Error(`[birpc] timeout on calling "${A}"`)}catch(P){j(P)}m.delete(ne)},v),typeof te=="object"&&(te=(J=te.unref)==null?void 0:J.call(te))),m.set(ne,{resolve:K,reject:j,timeoutId:te,method:A}),r(f({m:A,a:B,i:ne,t:"q"}))})};return M.asEvent=R,M}});function N(){w=!0,m.forEach(({reject:L,method:A})=>{L(new Error(`[birpc] rpc is closed, cannot call "${A}"`))}),m.clear(),s(T)}async function T(L,...A){const R=d(L);if(R.t==="q"){const{m:M,a:B}=R;let K,j;const ne=h?h(M,e[M]):e[M];if(!ne)j=new Error(`[birpc] function "${M}" not found`);else try{K=await ne.apply(p==="rpc"?E:e,B)}catch(te){j=te}R.i&&(j&&t.onError&&t.onError(j,M,B),r(f({t:"s",i:R.i,r:K,e:j}),...A))}else{const{i:M,r:B,e:K}=R,j=m.get(M);j&&(RC(j.timeoutId),K?j.reject(K):j.resolve(B)),m.delete(M)}}return b=o(T),E}const DC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function FC(e=21){let t="",r=e;for(;r--;)t+=DC[IC()*64|0];return t}const{parse:Fb,stringify:HC}=JSON,{keys:BC}=Object,ia=String,Hb="string",um={},Jc="object",Bb=(e,t)=>t,WC=e=>e instanceof ia?ia(e):e,qC=(e,t)=>typeof t===Hb?new ia(t):t,Wb=(e,t,r,o)=>{const s=[];for(let c=BC(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ia){const v=e[p];typeof v===Jc&&!t.has(v)?(t.add(v),r[h]=um,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==um&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Wb.apply(null,h))}return r},fm=(e,t,r)=>{const o=ia(t.push(r)-1);return e.set(r,o),o},Fd=(e,t)=>{const r=Fb(e,qC).map(WC),o=r[0],s=t||Bb,c=typeof o===Jc&&o?Wb(r,new Set,o,s):o;return s.call({"":c},"",c)},qb=(e,t,r)=>{const o=t&&typeof t===Jc?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Bb,s=new Map,c=[],f=[];let d=+fm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=HC(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case Jc:if(b===null)return b;case Hb:return s.get(b)||fm(s,c,b)}return b}},UC=e=>Fb(qb(e));class Ub{constructor(){hs(this,"filesMap",new Map);hs(this,"pathsSet",new Set);hs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Pb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function jC(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=A=>A,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Ub,waitForConnection:L,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(A){var R;A==null||A.forEach(([M,B])=>{v.state.clearFiles({config:M},[B])}),(R=r.onSpecsCollected)==null||R.call(r,A)},onPathsCollected(A){var R;v.state.collectPaths(A),(R=r.onPathsCollected)==null||R.call(r,A)},onCollected(A){var R;v.state.collectFiles(A),(R=r.onCollected)==null||R.call(r,A)},onTaskUpdate(A){var R;v.state.updateTasks(A),(R=r.onTaskUpdate)==null||R.call(r,A)},onUserConsoleLog(A){var R;v.state.updateUserLog(A),(R=r.onUserConsoleLog)==null||R.call(r,A)},onFinished(A,R){var M;(M=r.onFinished)==null||M.call(r,A,R)},onFinishedReportCoverage(){var A;(A=r.onFinishedReportCoverage)==null||A.call(r)}},w={post:A=>v.ws.send(A),on:A=>m=A,serialize:A=>qb(A,(R,M)=>M instanceof Error?{name:M.name,message:M.message,stack:M.stack}:M),deserialize:Fd,onTimeoutError(A){throw new Error(`[vitest-ws-client]: Timeout calling "${A}"`)}};v.rpc=zC(b,w);let E;function N(A=!1){A&&(p=c),v.ws=new h(e),T()}function T(){E=new Promise((A,R)=>{var B,K;const M=(K=(B=setTimeout(()=>{R(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:B.unref)==null?void 0:K.call(B);v.ws.OPEN===v.ws.readyState&&A(),v.ws.addEventListener("open",()=>{p=c,A(),clearTimeout(M)})}),v.ws.addEventListener("message",A=>{m(A.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}T();function L(){return E}return v}function Dh(e){return X0()?(tS(e),!0):!1}const ed=new WeakMap,VC=(...e)=>{var t;const r=e[0],o=(t=Do())==null?void 0:t.proxy;if(o==null&&!Py())throw new Error("injectLocal must be called in setup");return o&&ed.has(o)&&r in ed.get(o)?ed.get(o)[r]:mn(...e)},GC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const KC=Object.prototype.toString,XC=e=>KC.call(e)==="[object Object]",Qc=()=>{};function jb(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Vb=e=>e();function Gb(e,t={}){let r,o,s=Qc;const c=h=>{clearTimeout(h),s(),s=Qc};let f;return h=>{const p=Ut(e),v=Ut(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function YC(e=Vb,t={}){const{initialState:r="active"}=t,o=Kb(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:pa(o),pause:s,resume:c,eventFilter:f}}function dm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function hm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function ZC(e){return Do()}function td(e){return Array.isArray(e)?e:[e]}function Kb(...e){if(e.length!==1)return ga(...e);const t=e[0];return typeof t=="function"?pa(dy(()=>({get:t,set:Qc}))):Ue(t)}function pc(e,t=200,r={}){return jb(Gb(t,r),e)}function Xb(e,t,r={}){const{eventFilter:o=Vb,...s}=r;return xt(e,jb(o,t),s)}function Yb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=YC(o,{initialState:s});return{stop:Xb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Fh(e,t=!0,r){ZC()?lo(e,r):t?e():Tt(e)}function Hd(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:N}={}){let T=null;const A=[new Promise(R=>{T=xt(e,M=>{m(M)!==t&&(T?T():Tt(()=>T==null?void 0:T()),R(M))},{flush:b,deep:w,immediate:!0})})];return E!=null&&A.push(dm(E,N).then(()=>Ut(e)).finally(()=>T==null?void 0:T())),Promise.race(A)}function o(m,b){if(!Ct(m))return r(M=>M===m,b);const{flush:w="sync",deep:E=!1,timeout:N,throwOnTimeout:T}=b??{};let L=null;const R=[new Promise(M=>{L=xt([e,m],([B,K])=>{t!==(B===K)&&(L?L():Tt(()=>L==null?void 0:L()),M(B))},{flush:w,deep:E,immediate:!0})})];return N!=null&&R.push(dm(N,T).then(()=>Ut(e)).finally(()=>(L==null||L(),Ut(e)))),Promise.race(R)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const E=Array.from(w);return E.includes(m)||E.includes(Ut(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(Ut(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Hd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Hd(e,!t)}}}function pm(e){return Hd(e)}function JC(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ct(e),c=tn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Ut(r);return c.value=c.value===h?Ut(o):h,c.value}}return s?f:[c,f]}function Hh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Xb(e,t,{...c,eventFilter:Gb(o,{maxWait:s})})}function QC(e,t,r){return xt(e,t,{...r,immediate:!0})}function eE(e,t,r){const o=xt(e,(...s)=>(Tt(()=>o()),t(...s)),r);return o}function tE(e,t,r){let o;Ct(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Qc}=o,h=tn(!s),p=f?tn(t):Ue(t);let v=0;return Ah(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(N=>{m(()=>{c&&(c.value=!1),w||N()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?Se(()=>(h.value=!0,p.value)):p}const Mr=GC?window:void 0;function eu(e){var t;const r=Ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}function eo(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=Se(()=>{const d=td(Ut(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=QC(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>eu(p)))!=null?h:[Mr].filter(p=>p!=null),td(Ut(s.value?e[1]:e[0])),td(U(s.value?e[2]:e[1])),Ut(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=XC(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,m)))))},{flush:"post"}),f=()=>{c(),r()};return Dh(r),f}function nE(){const e=tn(!1),t=Do();return t&&lo(()=>{e.value=!0},t),e}function Zb(e){const t=nE();return Se(()=>(t.value,!!e()))}function rE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Jb(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Mr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=rE(t);return eo(s,c,v=>{v.repeat&&Ut(d)||h(v)&&r(v)},f)}function iE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Mr,once:c=!1}=t,f=tn(!1),d=Se(()=>o?1e3/Ut(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Dh(b),{isActive:pa(f),pause:b,resume:m}}const oE=Symbol("vueuse-ssr-width");function sE(){const e=Py()?VC(oE,null):null;return typeof e=="number"?e:void 0}function Qb(e,t={}){const{window:r=Mr,ssrWidth:o=sE()}=t,s=Zb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=tn(typeof o=="number"),f=tn(),d=tn(!1),h=p=>{d.value=p.matches};return Ah(()=>{if(c.value){c.value=!s.value;const p=Ut(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=hm(b[1])),w&&E&&(E=o<=hm(w[1])),m?!E:E});return}s.value&&(f.value=r.matchMedia(Ut(e)),d.value=f.value.matches)}),eo(f,"change",h,{passive:!0}),Se(()=>d.value)}const gc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vc="__vueuse_ssr_handlers__",lE=aE();function aE(){return vc in gc||(gc[vc]=gc[vc]||{}),gc[vc]}function ew(e,t){return lE[e]||t}function cE(e){return Qb("(prefers-color-scheme: dark)",e)}function uE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const fE={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},gm="vueuse-storage";function tw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Mr,eventFilter:b,onError:w=re=>{console.error(re)},initOnMounted:E}=o,N=(v?tn:Ue)(typeof t=="function"?t():t),T=Se(()=>Ut(e));if(!r)try{r=ew("getDefaultStorage",()=>{var re;return(re=Mr)==null?void 0:re.localStorage})()}catch(re){w(re)}if(!r)return N;const L=Ut(t),A=uE(L),R=(s=o.serializer)!=null?s:fE[A],{pause:M,resume:B}=Yb(N,()=>j(N.value),{flush:c,deep:f,eventFilter:b});xt(T,()=>te(),{flush:c}),m&&d&&Fh(()=>{r instanceof Storage?eo(m,"storage",te,{passive:!0}):eo(m,gm,J),E&&te()}),E||te();function K(re,P){if(m){const $={key:T.value,oldValue:re,newValue:P,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(gm,{detail:$}))}}function j(re){try{const P=r.getItem(T.value);if(re==null)K(P,null),r.removeItem(T.value);else{const $=R.write(re);P!==$&&(r.setItem(T.value,$),K(P,$))}}catch(P){w(P)}}function ne(re){const P=re?re.newValue:r.getItem(T.value);if(P==null)return h&&L!=null&&r.setItem(T.value,R.write(L)),L;if(!re&&p){const $=R.read(P);return typeof p=="function"?p($,L):A==="object"&&!Array.isArray($)?{...L,...$}:$}else return typeof P!="string"?P:R.read(P)}function te(re){if(!(re&&re.storageArea!==r)){if(re&&re.key==null){N.value=L;return}if(!(re&&re.key!==T.value)){M();try{(re==null?void 0:re.newValue)!==R.write(N.value)&&(N.value=ne(re))}catch(P){w(P)}finally{re?Tt(B):B()}}}}function J(re){te(re.detail)}return N}const dE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function hE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Mr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=cE({window:s}),w=Se(()=>b.value?"dark":"light"),E=h||(f==null?Kb(o):tw(f,o,c,{window:s,listenToStorageChanges:d})),N=Se(()=>E.value==="auto"?w.value:E.value),T=ew("updateHTMLAttrs",(M,B,K)=>{const j=typeof M=="string"?s==null?void 0:s.document.querySelector(M):eu(M);if(!j)return;const ne=new Set,te=new Set;let J=null;if(B==="class"){const P=K.split(/\s/g);Object.values(m).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{P.includes($)?ne.add($):te.add($)})}else J={key:B,value:K};if(ne.size===0&&te.size===0&&J===null)return;let re;v&&(re=s.document.createElement("style"),re.appendChild(document.createTextNode(dE)),s.document.head.appendChild(re));for(const P of ne)j.classList.add(P);for(const P of te)j.classList.remove(P);J&&j.setAttribute(J.key,J.value),v&&(s.getComputedStyle(re).opacity,document.head.removeChild(re))});function L(M){var B;T(t,r,(B=m[M])!=null?B:M)}function A(M){e.onChanged?e.onChanged(M,L):L(M)}xt(N,A,{flush:"post",immediate:!0}),Fh(()=>A(N.value));const R=Se({get(){return p?E.value:N.value},set(M){E.value=M}});return Object.assign(R,{store:E,system:w,state:N})}function pE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=hE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=Se(()=>o.system.value);return Se({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function gE(e,t,r={}){const{window:o=Mr,...s}=r;let c;const f=Zb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Se(()=>{const m=Ut(e);return Array.isArray(m)?m.map(b=>eu(b)):[eu(m)]}),p=xt(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Dh(v),{isSupported:f,stop:v}}function Ru(e,t,r={}){const{window:o=Mr}=r;return tw(e,t,o==null?void 0:o.localStorage,r)}function vE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Mr}=t;if(!d)return tr(r);const h=tr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const R=d.location.hash||"",M=R.indexOf("?");return M>0?R.slice(M):""}else return(d.location.hash||"").replace(/^#/,"")}function v(R){const M=R.toString();if(e==="history")return`${M?`?${M}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${M?`#${M}`:""}`;const B=d.location.hash||"#",K=B.indexOf("?");return K>0?`${d.location.search||""}${B.slice(0,K)}${M?`?${M}`:""}`:`${d.location.search||""}${B}${M?`?${M}`:""}`}function m(){return new URLSearchParams(p())}function b(R){const M=new Set(Object.keys(h));for(const B of R.keys()){const K=R.getAll(B);h[B]=K.length>1?K:R.get(B)||"",M.delete(B)}Array.from(M).forEach(B=>delete h[B])}const{pause:w,resume:E}=Yb(h,()=>{const R=new URLSearchParams("");Object.keys(h).forEach(M=>{const B=h[M];Array.isArray(B)?B.forEach(K=>R.append(M,K)):o&&B==null||s&&!B?R.delete(M):R.set(M,B)}),N(R,!1)},{deep:!0});function N(R,M){w(),M&&b(R),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(R)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(R)),E()}function T(){c&&N(m(),!0)}const L={passive:!0};eo(d,"popstate",T,L),e!=="history"&&eo(d,"hashchange",T,L);const A=m();return A.keys().next().value?b(A):Object.assign(h,r),h}function Bh(e={}){const{window:t=Mr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=tn(r),h=tn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:w}=t.visualViewport;d.value=Math.round(m*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Fh(p);const v={passive:!0};if(eo("resize",p,v),t&&f==="visual"&&t.visualViewport&&eo(t.visualViewport,"resize",p,v),s){const m=Qb("(orientation: portrait)");xt(m,()=>p())}return{width:d,height:h}}const Bd=tn([]),Kn=tn([]),Nr=Ru("vitest-ui_task-tree-opened",[],{shallow:!0}),tu=Se(()=>new Set(Nr.value)),un=Ru("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),qn=Ue(un.value.search),mE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function nw(e){return e.replace(/[&<>"']/g,t=>mE[t])}const yE=Se(()=>{const e=qn.value.toLowerCase();return e.length?new RegExp(`(${nw(e)})`,"gi"):null}),rw=Se(()=>qn.value.trim()!==""),Qe=tr({failed:un.value.failed,success:un.value.success,skipped:un.value.skipped,onlyTests:un.value.onlyTests}),Wd=Se(()=>!!(Qe.failed||Qe.success||Qe.skipped)),Pu=tn([]),Is=Ue(!1),vm=Se(()=>{const e=un.value.expandAll;return Nr.value.length>0?e!==!0:e!==!1}),bE=Se(()=>{const e=rw.value,t=Wd.value,r=Qe.onlyTests,o=Me.summary.filesFailed,s=Me.summary.filesSuccess,c=Me.summary.filesSkipped,f=Me.summary.filesRunning,d=Pu.value;return Me.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function _a(e){return Object.hasOwnProperty.call(e,"tasks")}function wE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function iw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function xE(e){return e.type==="test"}function _E(e){return e.mode==="run"&&e.type==="test"}function On(e){return e.type==="file"}function gi(e){return e.type==="file"||e.type==="suite"}function SE(e=Me.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function oa(e,t=!1){var o,s,c,f,d;let r=Me.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:tu.value.size>0&&tu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:iw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Me.nodes.set(e.id,r),Me.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)Sa(e.id,e.tasks[h],!0)}function ow(e,t){const r=Me.nodes.get(e);if(!r||!gi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!_a(o)))return Sa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function kE(e){const t=Me.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Ib(r)||Sa(t.parentId,r,!1)}function Sa(e,t,r){var f,d,h,p,v;const o=Me.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Me.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):(Ib(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:tu.value.size>0&&tu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Me.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&_a(t)))for(let m=0;m<t.tasks.length;m++)Sa(s.id,t.tasks[m],r)}function TE(e){const t=Me.nodes.get(e);if(!t||!gi(t))return;const r=new Set(Nr.value);r.delete(t.id);const o=[...EE(t)];Nr.value=Array.from(r),Kn.value=o}function CE(){qd(Me.root.tasks);const e=[...Kn.value.filter(On)];qd(e),Nr.value=[],un.value.expandAll=!0,Kn.value=e}function qd(e){for(const t of e)gi(t)&&(t.expanded=!1,qd(t.tasks))}function*sw(e,t){if(t&&(yield e.id),gi(e))for(let r=0;r<e.tasks.length;r++)yield*sw(e.tasks[r],!0)}function*EE(e){const t=e.id,r=new Set(sw(e,!1));for(let o=0;o<Kn.value.length;o++){const s=Kn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Iu=Ue("idle"),ys=Se(()=>Iu.value==="idle"),qi=Ue([]);function AE(e,t,r){return e?cw(e,t,r):!1}function Wh(e,t){const r=[...lw(e,t)];Kn.value=r,Pu.value=r.filter(On).map(o=>cr(o.id))}function*lw(e,t){for(const r of SE())yield*aw(r,e,t)}function*aw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Ud(e,o,w=>mm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Ud(e,o,w=>mm(w,t,r)))gi(b)?(s.set(b.id,m),On(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!On(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...ME(c,r.onlyTests,o,d,f)].reverse(),p=Me.nodes,v=new Set(h.filter(m=>{var b;return On(m)||gi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return On(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function LE(e,t,r,o,s){if(o){if(On(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}function*ME(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=gi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Me.nodes.get(d.parentId);for(;p;)r.add(p.id),On(p)&&o.add(p.id),p=Me.nodes.get(p.parentId);yield d;continue}if(h){const p=LE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Me.nodes.get(d.parentId);p&&On(p)&&o.add(p.id),yield d}}}function NE(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function cw(e,t,r){if(t.length===0||wE(e.name,t))if(r.success||r.failed||r.skipped){if(NE(e,r))return!0}else return!0;return!1}function*Ud(e,t,r){const o=r(e);if(o)if(xE(e)){let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}else if(On(e))t.add(e.id);else{t.add(e.id);let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}if(yield[o,e],gi(e))for(let s=0;s<e.tasks.length;s++)yield*Ud(e.tasks[s],t,r)}function mm(e,t,r){const o=mt.state.idMap.get(e.id);return o?cw(o,t,r):!1}function $E(e,t,r){const o=ow(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Sa(s.id,p,!1);s.expanded=!0;const f=new Set(Nr.value);f.add(s.id);const d=new Set(aw(s,t,r)),h=[...PE(s,d)];Nr.value=Array.from(f),Kn.value=h}function OE(e,t){qh(Me.root.tasks,!1);const r=[...lw(e,t)];un.value.expandAll=!1,Nr.value=[],Kn.value=r,Pu.value=r.filter(On).map(o=>cr(o.id))}function RE(e,t){if(e.size)for(const r of Kn.value)e.has(r.id)&&(r.expanded=!0);else t&&qh(Kn.value.filter(On),!0)}function qh(e,t){for(const r of e)gi(r)&&(r.expanded=!0,qh(r.tasks,!1));t&&(un.value.expandAll=!1,Nr.value=[])}function*PE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Kn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Uh(e){return zb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function IE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>oa(s,t)),Bd.value=[...Me.root.tasks],Wh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function zE(e){queueMicrotask(()=>{const t=Me.pendingTasks,r=mt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function ym(e,t,r,o,s){e&&qE(r);const c=!e;queueMicrotask(()=>{t?HE(c):BE(c)}),queueMicrotask(()=>{UE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Bd.value&&Uh(Bd.value.map(f=>cr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{WE(o,s,t)})}function*DE(){yield*Kn.value.filter(_E)}function FE(){const e=mt.state.idMap;let t;for(const r of DE())t=e.get(r.parentId),t&&_a(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function HE(e){const t=mt.state.getFiles(),r=Me.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)oa(o[c],e),nu(o[c].tasks);const s=Me.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=cr(f.id);if(!d)continue;oa(d,e);const h=d.tasks;h!=null&&h.length&&nu(d.tasks)}}function BE(e){const t=new Map(Me.pendingTasks.entries());Me.pendingTasks.clear();const r=Me.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>cr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],oa(s,!1),nu(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Me.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=cr(h.id);if(!p)continue;const v=t.get(p.id);v&&(oa(p,e),nu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function WE(e,t,r=!1){const o=un.value.expandAll,s=o!==!0,c=new Set(Nr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{bm(e,t,r)}),Is.value||queueMicrotask(()=>{(Kn.value.length||r)&&(Is.value=!0)}),f&&(queueMicrotask(()=>{RE(c,r),s&&(un.value.expandAll=!1)}),queueMicrotask(()=>{bm(e,t,r)}))}function bm(e,t,r){Wh(e,t),r&&(FE(),Iu.value="idle")}function nu(e){let t;for(let r=0;r<e.length;r++)t=e[r],_a(t)?ow(t.id,!0):kE(t.id)}function qE(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function UE(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Me.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,cr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[b,w]of o){if(!w)continue;const E=r.get(b);E&&(E.mode=w.mode,E.setupDuration=w.setupDuration,E.prepareDuration=w.prepareDuration,E.environmentLoad=w.environmentLoad,E.collectDuration=w.collectDuration,E.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,E.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:N,success:T,skipped:L,total:A,ignored:R,todo:M}=uw(w);s.totalTests+=A,s.testsFailed+=N,s.testsSuccess+=T,s.testsSkipped+=L,s.testsTodo+=M,s.testsIgnore+=R}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function uw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of fw(e))(!r||AE(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function jE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>uw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*fw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],ra(r)?yield r:yield*fw(r.tasks)}class VE{constructor(t=[],r=!1,o=500,s={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},c=new Map,f=new Map,d=tr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){hs(this,"rafCollector");hs(this,"resumeEndRunId");this.projects=t,this.onTaskUpdateCalled=r,this.resumeEndTimeout=o,this.root=s,this.pendingTasks=c,this.nodes=f,this.summary=d,this.rafCollector=iE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r),IE(t,!0,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){zE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{ym(t,r,this.summary,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}):ym(t,r,this.summary,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collectTestsTotal(t,r,o,s){return jE(t,r,o,s,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{TE(t)})}expandNode(t){queueMicrotask(()=>{$E(t,qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{CE()})}expandAllNodes(){queueMicrotask(()=>{OE(qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{Wh(qn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Me=new VE,Br=Ue([414,896]),zu=vE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),to=ga(zu,"file"),Zn=ga(zu,"view"),dw=ga(zu,"line"),hw=ga(zu,"test"),zs=Ue(),Ms=Ue(!0),no=Ue(!1),ru=Ue(!0),bs=Se(()=>{var e;return(e=Du.value)==null?void 0:e.coverage}),jd=Se(()=>{var e;return(e=bs.value)==null?void 0:e.enabled}),ws=Se(()=>jd.value&&!!bs.value.htmlReporter),xr=Ru("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),$o=Ru("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),yn=tr({navigation:xr.value[0],details:{size:xr.value[1],browser:$o.value[0],main:$o.value[1]}}),wm=Se(()=>{var e;if(ws.value){const t=bs.value.reportsDirectory.lastIndexOf("/"),r=(e=bs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${bs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${bs.value.reportsDirectory.slice(t+1)}/index.html`}});xt(Iu,e=>{ru.value=e==="running"},{immediate:!0});function GE(){const e=to.value;if(e&&e.length>0){const t=cr(e);t?(zs.value=t,Ms.value=!1,no.value=!1):eE(()=>mt.state.getFiles(),()=>{zs.value=cr(e),Ms.value=!1,no.value=!1})}return Ms}function iu(e){Ms.value=e,no.value=!1,e&&(zs.value=void 0,to.value="")}function pw({file:e,line:t,view:r,test:o}){to.value=e,dw.value=t,Zn.value=r,hw.value=o,zs.value=cr(e),iu(!1)}function KE(e){pw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function XE(){no.value=!0,Ms.value=!1,zs.value=void 0,to.value=""}function YE(){yn.details.browser=100,yn.details.main=0,$o.value=[100,0]}function ZE(){yn.details.browser=33,yn.details.main=67,$o.value=[33,67]}function JE(){yn.navigation=33,yn.details.size=67,xr.value=[33,67]}const QE={setCurrentFileId(e){to.value=e,zs.value=cr(e),iu(!1)},async setIframeViewport(e,t){Br.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},eA=location.port,tA=[location.hostname,eA].filter(Boolean).join(":"),nA=`${location.protocol==="https:"?"wss:":"ws:"}//${tA}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Er=!!window.METADATA_PATH,rA=44,xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iA=new Uint8Array(64),gw=new Uint8Array(128);for(let e=0;e<xm.length;e++){const t=xm.charCodeAt(e);iA[e]=t,gw[t]=e}function Sl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=gw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function _m(e,t){return e.pos>=t?!1:e.peek()!==rA}class oA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function sA(e){const{length:t}=e,r=new oA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=Sl(r,s),s<b&&(m=!1),b=s,_m(r,p)?(c=Sl(r,c),f=Sl(r,f),d=Sl(r,d),_m(r,p)?(h=Sl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||lA(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function lA(e){e.sort(aA)}function aA(e,t){return e[0]-t[0]}const cA=/^[\w+.-]+:\/\//,uA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Wt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Wt||(Wt={}));function dA(e){return cA.test(e)}function hA(e){return e.startsWith("//")}function vw(e){return e.startsWith("/")}function pA(e){return e.startsWith("file:")}function Sm(e){return/^[.?#]/.test(e)}function mc(e){const t=uA.exec(e);return mw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function gA(e){const t=fA.exec(e),r=t[2];return mw("file:","",t[1]||"","",vw(r)?r:"/"+r,t[3]||"",t[4]||"")}function mw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Wt.Absolute}}function km(e){if(hA(e)){const r=mc("http:"+e);return r.scheme="",r.type=Wt.SchemeRelative,r}if(vw(e)){const r=mc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Wt.AbsolutePath,r}if(pA(e))return gA(e);if(dA(e))return mc(e);const t=mc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Wt.Query:e.startsWith("#")?Wt.Hash:Wt.RelativePath:Wt.Empty,t}function vA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mA(e,t){yw(t,t.type),e.path==="/"?e.path=t.path:e.path=vA(t.path)+e.path}function yw(e,t){const r=t<=Wt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function yA(e,t){if(!e&&!t)return"";const r=km(e);let o=r.type;if(t&&o!==Wt.Absolute){const c=km(t),f=c.type;switch(o){case Wt.Empty:r.hash=c.hash;case Wt.Hash:r.query=c.query;case Wt.Query:case Wt.RelativePath:mA(r,c);case Wt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Wt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}yw(r,o);const s=r.query+r.hash;switch(o){case Wt.Hash:case Wt.Query:return s;case Wt.RelativePath:{const c=r.path.slice(1);return c?Sm(t||e)&&!Sm(c)?"./"+c+s:c+s:s||"."}case Wt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Tm(e,t){return t&&!t.endsWith("/")&&(t+="/"),yA(e,t)}function bA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const ro=0,wA=1,xA=2,_A=3,SA=4;function kA(e,t){const r=Cm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Cm(e,o+1))e[o]=CA(e[o],t);return e}function Cm(e,t){for(let r=t;r<e.length;r++)if(!TA(e[r]))return r;return e.length}function TA(e){for(let t=1;t<e.length;t++)if(e[t][ro]<e[t-1][ro])return!1;return!0}function CA(e,t){return t||(e=e.slice()),e.sort(EA)}function EA(e,t){return e[ro]-t[ro]}let ou=!1;function AA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][ro]-t;if(c===0)return ou=!0,s;c<0?r=s+1:o=s-1}return ou=!1,r-1}function LA(e,t,r){for(let o=r+1;o<e.length&&e[o][ro]===t;r=o++);return r}function MA(e,t,r){for(let o=r-1;o>=0&&e[o][ro]===t;r=o--);return r}function NA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function $A(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return ou=f!==-1&&e[f][ro]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=AA(e,t,d,h)}const OA="`line` must be greater than 0 (lines start at line 1)",RA="`column` must be greater than or equal to 0 (columns start at column 0)",Em=-1,PA=1;class IA{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Tm(h||"",bA(r));this.resolvedSources=p.map(w=>Tm(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=kA(b,o)),this._decodedMemo=NA(),this._bySources=void 0,this._bySourceMemos=void 0}}function zA(e){var t;return(t=e)._decoded||(t._decoded=sA(e._encoded))}function DA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(OA);if(o<0)throw new Error(RA);const c=zA(e);if(r>=c.length)return yc(null,null,null,null);const f=c[r],d=FA(f,e._decodedMemo,r,o,s||PA);if(d===-1)return yc(null,null,null,null);const h=f[d];if(h.length===1)return yc(null,null,null,null);const{names:p,resolvedSources:v}=e;return yc(v[h[wA]],h[xA]+1,h[_A],h.length===5?p[h[SA]]:null)}function yc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function FA(e,t,r,o,s){let c=$A(e,o,t,r);return ou?c=(s===Em?LA:MA)(e,o,c):s===Em&&c++,c===-1||c===e.length?-1:c}const HA=/^[A-Za-z]:\//;function BA(e=""){return e&&e.replace(/\\/g,"/").replace(HA,t=>t.toUpperCase())}const WA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function qA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const UA=function(...e){e=e.map(o=>BA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:qA();!s||s.length===0||(t=`${s}/${t}`,r=Am(s))}return t=jA(t,!r),r&&!Am(t)?`/${t}`:t.length>0?t:"."};function jA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Am=function(e){return WA.test(e)},bw=/^\s*at .*(?:\S:\d+|\(native\))/m,VA=/^(?:eval@)?(?:\[native code\])?$/,GA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function ww(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function KA(e){let t=e.trim();if(VA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=ww(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function XA(e){let t=e.trim();if(!bw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=ww(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:UA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function YA(e,t={}){const{ignoreStackEntries:r=GA}=t;return(bw.test(e)?JA(e):ZA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Lm(r,s.file)?null:s;const d=new IA(f),{line:h,column:p,source:v,name:m}=DA(d,s);let b=s.file;if(v){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,E=f.sourceRoot?new URL(f.sourceRoot,w):w;b=new URL(v,E).pathname}return Lm(r,b)?null:h!=null&&p!=null?{line:h,column:p,file:b,method:m||s.method}:s}).filter(s=>s!=null)}function Lm(e,t){return e.some(r=>t.match(r))}function ZA(e){return e.split(`
18
- `).map(t=>KA(t)).filter(Rb)}function JA(e){return e.split(`
19
- `).map(t=>XA(t)).filter(Rb)}function xw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nd={},br={};const QA="Á",eL="á",tL="Ă",nL="ă",rL="∾",iL="∿",oL="∾̳",sL="Â",lL="â",aL="´",cL="А",uL="а",fL="Æ",dL="æ",hL="⁡",pL="𝔄",gL="𝔞",vL="À",mL="à",yL="ℵ",bL="ℵ",wL="Α",xL="α",_L="Ā",SL="ā",kL="⨿",TL="&",CL="&",EL="⩕",AL="⩓",LL="∧",ML="⩜",NL="⩘",$L="⩚",OL="∠",RL="⦤",PL="∠",IL="⦨",zL="⦩",DL="⦪",FL="⦫",HL="⦬",BL="⦭",WL="⦮",qL="⦯",UL="∡",jL="∟",VL="⊾",GL="⦝",KL="∢",XL="Å",YL="⍼",ZL="Ą",JL="ą",QL="𝔸",eM="𝕒",tM="⩯",nM="≈",rM="⩰",iM="≊",oM="≋",sM="'",lM="⁡",aM="≈",cM="≊",uM="Å",fM="å",dM="𝒜",hM="𝒶",pM="≔",gM="*",vM="≈",mM="≍",yM="Ã",bM="ã",wM="Ä",xM="ä",_M="∳",SM="⨑",kM="≌",TM="϶",CM="‵",EM="∽",AM="⋍",LM="∖",MM="⫧",NM="⊽",$M="⌅",OM="⌆",RM="⌅",PM="⎵",IM="⎶",zM="≌",DM="Б",FM="б",HM="„",BM="∵",WM="∵",qM="∵",UM="⦰",jM="϶",VM="ℬ",GM="ℬ",KM="Β",XM="β",YM="ℶ",ZM="≬",JM="𝔅",QM="𝔟",eN="⋂",tN="◯",nN="⋃",rN="⨀",iN="⨁",oN="⨂",sN="⨆",lN="★",aN="▽",cN="△",uN="⨄",fN="⋁",dN="⋀",hN="⤍",pN="⧫",gN="▪",vN="▴",mN="▾",yN="◂",bN="▸",wN="␣",xN="▒",_N="░",SN="▓",kN="█",TN="=⃥",CN="≡⃥",EN="⫭",AN="⌐",LN="𝔹",MN="𝕓",NN="⊥",$N="⊥",ON="⋈",RN="⧉",PN="┐",IN="╕",zN="╖",DN="╗",FN="┌",HN="╒",BN="╓",WN="╔",qN="─",UN="═",jN="┬",VN="╤",GN="╥",KN="╦",XN="┴",YN="╧",ZN="╨",JN="╩",QN="⊟",e$="⊞",t$="⊠",n$="┘",r$="╛",i$="╜",o$="╝",s$="└",l$="╘",a$="╙",c$="╚",u$="│",f$="║",d$="┼",h$="╪",p$="╫",g$="╬",v$="┤",m$="╡",y$="╢",b$="╣",w$="├",x$="╞",_$="╟",S$="╠",k$="‵",T$="˘",C$="˘",E$="¦",A$="𝒷",L$="ℬ",M$="⁏",N$="∽",$$="⋍",O$="⧅",R$="\\",P$="⟈",I$="•",z$="•",D$="≎",F$="⪮",H$="≏",B$="≎",W$="≏",q$="Ć",U$="ć",j$="⩄",V$="⩉",G$="⩋",K$="∩",X$="⋒",Y$="⩇",Z$="⩀",J$="ⅅ",Q$="∩︀",eO="⁁",tO="ˇ",nO="ℭ",rO="⩍",iO="Č",oO="č",sO="Ç",lO="ç",aO="Ĉ",cO="ĉ",uO="∰",fO="⩌",dO="⩐",hO="Ċ",pO="ċ",gO="¸",vO="¸",mO="⦲",yO="¢",bO="·",wO="·",xO="𝔠",_O="ℭ",SO="Ч",kO="ч",TO="✓",CO="✓",EO="Χ",AO="χ",LO="ˆ",MO="≗",NO="↺",$O="↻",OO="⊛",RO="⊚",PO="⊝",IO="⊙",zO="®",DO="Ⓢ",FO="⊖",HO="⊕",BO="⊗",WO="○",qO="⧃",UO="≗",jO="⨐",VO="⫯",GO="⧂",KO="∲",XO="”",YO="’",ZO="♣",JO="♣",QO=":",eR="∷",tR="⩴",nR="≔",rR="≔",iR=",",oR="@",sR="∁",lR="∘",aR="∁",cR="ℂ",uR="≅",fR="⩭",dR="≡",hR="∮",pR="∯",gR="∮",vR="𝕔",mR="ℂ",yR="∐",bR="∐",wR="©",xR="©",_R="℗",SR="∳",kR="↵",TR="✗",CR="⨯",ER="𝒞",AR="𝒸",LR="⫏",MR="⫑",NR="⫐",$R="⫒",OR="⋯",RR="⤸",PR="⤵",IR="⋞",zR="⋟",DR="↶",FR="⤽",HR="⩈",BR="⩆",WR="≍",qR="∪",UR="⋓",jR="⩊",VR="⊍",GR="⩅",KR="∪︀",XR="↷",YR="⤼",ZR="⋞",JR="⋟",QR="⋎",eP="⋏",tP="¤",nP="↶",rP="↷",iP="⋎",oP="⋏",sP="∲",lP="∱",aP="⌭",cP="†",uP="‡",fP="ℸ",dP="↓",hP="↡",pP="⇓",gP="‐",vP="⫤",mP="⊣",yP="⤏",bP="˝",wP="Ď",xP="ď",_P="Д",SP="д",kP="‡",TP="⇊",CP="ⅅ",EP="ⅆ",AP="⤑",LP="⩷",MP="°",NP="∇",$P="Δ",OP="δ",RP="⦱",PP="⥿",IP="𝔇",zP="𝔡",DP="⥥",FP="⇃",HP="⇂",BP="´",WP="˙",qP="˝",UP="`",jP="˜",VP="⋄",GP="⋄",KP="⋄",XP="♦",YP="♦",ZP="¨",JP="ⅆ",QP="ϝ",e2="⋲",t2="÷",n2="÷",r2="⋇",i2="⋇",o2="Ђ",s2="ђ",l2="⌞",a2="⌍",c2="$",u2="𝔻",f2="𝕕",d2="¨",h2="˙",p2="⃜",g2="≐",v2="≑",m2="≐",y2="∸",b2="∔",w2="⊡",x2="⌆",_2="∯",S2="¨",k2="⇓",T2="⇐",C2="⇔",E2="⫤",A2="⟸",L2="⟺",M2="⟹",N2="⇒",$2="⊨",O2="⇑",R2="⇕",P2="∥",I2="⤓",z2="↓",D2="↓",F2="⇓",H2="⇵",B2="̑",W2="⇊",q2="⇃",U2="⇂",j2="⥐",V2="⥞",G2="⥖",K2="↽",X2="⥟",Y2="⥗",Z2="⇁",J2="↧",Q2="⊤",eI="⤐",tI="⌟",nI="⌌",rI="𝒟",iI="𝒹",oI="Ѕ",sI="ѕ",lI="⧶",aI="Đ",cI="đ",uI="⋱",fI="▿",dI="▾",hI="⇵",pI="⥯",gI="⦦",vI="Џ",mI="џ",yI="⟿",bI="É",wI="é",xI="⩮",_I="Ě",SI="ě",kI="Ê",TI="ê",CI="≖",EI="≕",AI="Э",LI="э",MI="⩷",NI="Ė",$I="ė",OI="≑",RI="ⅇ",PI="≒",II="𝔈",zI="𝔢",DI="⪚",FI="È",HI="è",BI="⪖",WI="⪘",qI="⪙",UI="∈",jI="⏧",VI="ℓ",GI="⪕",KI="⪗",XI="Ē",YI="ē",ZI="∅",JI="∅",QI="◻",ez="∅",tz="▫",nz=" ",rz=" ",iz=" ",oz="Ŋ",sz="ŋ",lz=" ",az="Ę",cz="ę",uz="𝔼",fz="𝕖",dz="⋕",hz="⧣",pz="⩱",gz="ε",vz="Ε",mz="ε",yz="ϵ",bz="≖",wz="≕",xz="≂",_z="⪖",Sz="⪕",kz="⩵",Tz="=",Cz="≂",Ez="≟",Az="⇌",Lz="≡",Mz="⩸",Nz="⧥",$z="⥱",Oz="≓",Rz="ℯ",Pz="ℰ",Iz="≐",zz="⩳",Dz="≂",Fz="Η",Hz="η",Bz="Ð",Wz="ð",qz="Ë",Uz="ë",jz="€",Vz="!",Gz="∃",Kz="∃",Xz="ℰ",Yz="ⅇ",Zz="ⅇ",Jz="≒",Qz="Ф",eD="ф",tD="♀",nD="ffi",rD="ff",iD="ffl",oD="𝔉",sD="𝔣",lD="fi",aD="◼",cD="▪",uD="fj",fD="♭",dD="fl",hD="▱",pD="ƒ",gD="𝔽",vD="𝕗",mD="∀",yD="∀",bD="⋔",wD="⫙",xD="ℱ",_D="⨍",SD="½",kD="⅓",TD="¼",CD="⅕",ED="⅙",AD="⅛",LD="⅔",MD="⅖",ND="¾",$D="⅗",OD="⅜",RD="⅘",PD="⅚",ID="⅝",zD="⅞",DD="⁄",FD="⌢",HD="𝒻",BD="ℱ",WD="ǵ",qD="Γ",UD="γ",jD="Ϝ",VD="ϝ",GD="⪆",KD="Ğ",XD="ğ",YD="Ģ",ZD="Ĝ",JD="ĝ",QD="Г",eF="г",tF="Ġ",nF="ġ",rF="≥",iF="≧",oF="⪌",sF="⋛",lF="≥",aF="≧",cF="⩾",uF="⪩",fF="⩾",dF="⪀",hF="⪂",pF="⪄",gF="⋛︀",vF="⪔",mF="𝔊",yF="𝔤",bF="≫",wF="⋙",xF="⋙",_F="ℷ",SF="Ѓ",kF="ѓ",TF="⪥",CF="≷",EF="⪒",AF="⪤",LF="⪊",MF="⪊",NF="⪈",$F="≩",OF="⪈",RF="≩",PF="⋧",IF="𝔾",zF="𝕘",DF="`",FF="≥",HF="⋛",BF="≧",WF="⪢",qF="≷",UF="⩾",jF="≳",VF="𝒢",GF="ℊ",KF="≳",XF="⪎",YF="⪐",ZF="⪧",JF="⩺",QF=">",eH=">",tH="≫",nH="⋗",rH="⦕",iH="⩼",oH="⪆",sH="⥸",lH="⋗",aH="⋛",cH="⪌",uH="≷",fH="≳",dH="≩︀",hH="≩︀",pH="ˇ",gH=" ",vH="½",mH="ℋ",yH="Ъ",bH="ъ",wH="⥈",xH="↔",_H="⇔",SH="↭",kH="^",TH="ℏ",CH="Ĥ",EH="ĥ",AH="♥",LH="♥",MH="…",NH="⊹",$H="𝔥",OH="ℌ",RH="ℋ",PH="⤥",IH="⤦",zH="⇿",DH="∻",FH="↩",HH="↪",BH="𝕙",WH="ℍ",qH="―",UH="─",jH="𝒽",VH="ℋ",GH="ℏ",KH="Ħ",XH="ħ",YH="≎",ZH="≏",JH="⁃",QH="‐",eB="Í",tB="í",nB="⁣",rB="Î",iB="î",oB="И",sB="и",lB="İ",aB="Е",cB="е",uB="¡",fB="⇔",dB="𝔦",hB="ℑ",pB="Ì",gB="ì",vB="ⅈ",mB="⨌",yB="∭",bB="⧜",wB="℩",xB="IJ",_B="ij",SB="Ī",kB="ī",TB="ℑ",CB="ⅈ",EB="ℐ",AB="ℑ",LB="ı",MB="ℑ",NB="⊷",$B="Ƶ",OB="⇒",RB="℅",PB="∞",IB="⧝",zB="ı",DB="⊺",FB="∫",HB="∬",BB="ℤ",WB="∫",qB="⊺",UB="⋂",jB="⨗",VB="⨼",GB="⁣",KB="⁢",XB="Ё",YB="ё",ZB="Į",JB="į",QB="𝕀",e3="𝕚",t3="Ι",n3="ι",r3="⨼",i3="¿",o3="𝒾",s3="ℐ",l3="∈",a3="⋵",c3="⋹",u3="⋴",f3="⋳",d3="∈",h3="⁢",p3="Ĩ",g3="ĩ",v3="І",m3="і",y3="Ï",b3="ï",w3="Ĵ",x3="ĵ",_3="Й",S3="й",k3="𝔍",T3="𝔧",C3="ȷ",E3="𝕁",A3="𝕛",L3="𝒥",M3="𝒿",N3="Ј",$3="ј",O3="Є",R3="є",P3="Κ",I3="κ",z3="ϰ",D3="Ķ",F3="ķ",H3="К",B3="к",W3="𝔎",q3="𝔨",U3="ĸ",j3="Х",V3="х",G3="Ќ",K3="ќ",X3="𝕂",Y3="𝕜",Z3="𝒦",J3="𝓀",Q3="⇚",e5="Ĺ",t5="ĺ",n5="⦴",r5="ℒ",i5="Λ",o5="λ",s5="⟨",l5="⟪",a5="⦑",c5="⟨",u5="⪅",f5="ℒ",d5="«",h5="⇤",p5="⤟",g5="←",v5="↞",m5="⇐",y5="⤝",b5="↩",w5="↫",x5="⤹",_5="⥳",S5="↢",k5="⤙",T5="⤛",C5="⪫",E5="⪭",A5="⪭︀",L5="⤌",M5="⤎",N5="❲",$5="{",O5="[",R5="⦋",P5="⦏",I5="⦍",z5="Ľ",D5="ľ",F5="Ļ",H5="ļ",B5="⌈",W5="{",q5="Л",U5="л",j5="⤶",V5="“",G5="„",K5="⥧",X5="⥋",Y5="↲",Z5="≤",J5="≦",Q5="⟨",e8="⇤",t8="←",n8="←",r8="⇐",i8="⇆",o8="↢",s8="⌈",l8="⟦",a8="⥡",c8="⥙",u8="⇃",f8="⌊",d8="↽",h8="↼",p8="⇇",g8="↔",v8="↔",m8="⇔",y8="⇆",b8="⇋",w8="↭",x8="⥎",_8="↤",S8="⊣",k8="⥚",T8="⋋",C8="⧏",E8="⊲",A8="⊴",L8="⥑",M8="⥠",N8="⥘",$8="↿",O8="⥒",R8="↼",P8="⪋",I8="⋚",z8="≤",D8="≦",F8="⩽",H8="⪨",B8="⩽",W8="⩿",q8="⪁",U8="⪃",j8="⋚︀",V8="⪓",G8="⪅",K8="⋖",X8="⋚",Y8="⪋",Z8="⋚",J8="≦",Q8="≶",eW="≶",tW="⪡",nW="≲",rW="⩽",iW="≲",oW="⥼",sW="⌊",lW="𝔏",aW="𝔩",cW="≶",uW="⪑",fW="⥢",dW="↽",hW="↼",pW="⥪",gW="▄",vW="Љ",mW="љ",yW="⇇",bW="≪",wW="⋘",xW="⌞",_W="⇚",SW="⥫",kW="◺",TW="Ŀ",CW="ŀ",EW="⎰",AW="⎰",LW="⪉",MW="⪉",NW="⪇",$W="≨",OW="⪇",RW="≨",PW="⋦",IW="⟬",zW="⇽",DW="⟦",FW="⟵",HW="⟵",BW="⟸",WW="⟷",qW="⟷",UW="⟺",jW="⟼",VW="⟶",GW="⟶",KW="⟹",XW="↫",YW="↬",ZW="⦅",JW="𝕃",QW="𝕝",e4="⨭",t4="⨴",n4="∗",r4="_",i4="↙",o4="↘",s4="◊",l4="◊",a4="⧫",c4="(",u4="⦓",f4="⇆",d4="⌟",h4="⇋",p4="⥭",g4="‎",v4="⊿",m4="‹",y4="𝓁",b4="ℒ",w4="↰",x4="↰",_4="≲",S4="⪍",k4="⪏",T4="[",C4="‘",E4="‚",A4="Ł",L4="ł",M4="⪦",N4="⩹",$4="<",O4="<",R4="≪",P4="⋖",I4="⋋",z4="⋉",D4="⥶",F4="⩻",H4="◃",B4="⊴",W4="◂",q4="⦖",U4="⥊",j4="⥦",V4="≨︀",G4="≨︀",K4="¯",X4="♂",Y4="✠",Z4="✠",J4="↦",Q4="↦",eq="↧",tq="↤",nq="↥",rq="▮",iq="⨩",oq="М",sq="м",lq="—",aq="∺",cq="∡",uq=" ",fq="ℳ",dq="𝔐",hq="𝔪",pq="℧",gq="µ",vq="*",mq="⫰",yq="∣",bq="·",wq="⊟",xq="−",_q="∸",Sq="⨪",kq="∓",Tq="⫛",Cq="…",Eq="∓",Aq="⊧",Lq="𝕄",Mq="𝕞",Nq="∓",$q="𝓂",Oq="ℳ",Rq="∾",Pq="Μ",Iq="μ",zq="⊸",Dq="⊸",Fq="∇",Hq="Ń",Bq="ń",Wq="∠⃒",qq="≉",Uq="⩰̸",jq="≋̸",Vq="ʼn",Gq="≉",Kq="♮",Xq="ℕ",Yq="♮",Zq=" ",Jq="≎̸",Qq="≏̸",e6="⩃",t6="Ň",n6="ň",r6="Ņ",i6="ņ",o6="≇",s6="⩭̸",l6="⩂",a6="Н",c6="н",u6="–",f6="⤤",d6="↗",h6="⇗",p6="↗",g6="≠",v6="≐̸",m6="​",y6="​",b6="​",w6="​",x6="≢",_6="⤨",S6="≂̸",k6="≫",T6="≪",C6=`
20
- `,E6="∄",A6="∄",L6="𝔑",M6="𝔫",N6="≧̸",$6="≱",O6="≱",R6="≧̸",P6="⩾̸",I6="⩾̸",z6="⋙̸",D6="≵",F6="≫⃒",H6="≯",B6="≯",W6="≫̸",q6="↮",U6="⇎",j6="⫲",V6="∋",G6="⋼",K6="⋺",X6="∋",Y6="Њ",Z6="њ",J6="↚",Q6="⇍",eU="‥",tU="≦̸",nU="≰",rU="↚",iU="⇍",oU="↮",sU="⇎",lU="≰",aU="≦̸",cU="⩽̸",uU="⩽̸",fU="≮",dU="⋘̸",hU="≴",pU="≪⃒",gU="≮",vU="⋪",mU="⋬",yU="≪̸",bU="∤",wU="⁠",xU=" ",_U="𝕟",SU="ℕ",kU="⫬",TU="¬",CU="≢",EU="≭",AU="∦",LU="∉",MU="≠",NU="≂̸",$U="∄",OU="≯",RU="≱",PU="≧̸",IU="≫̸",zU="≹",DU="⩾̸",FU="≵",HU="≎̸",BU="≏̸",WU="∉",qU="⋵̸",UU="⋹̸",jU="∉",VU="⋷",GU="⋶",KU="⧏̸",XU="⋪",YU="⋬",ZU="≮",JU="≰",QU="≸",ej="≪̸",tj="⩽̸",nj="≴",rj="⪢̸",ij="⪡̸",oj="∌",sj="∌",lj="⋾",aj="⋽",cj="⊀",uj="⪯̸",fj="⋠",dj="∌",hj="⧐̸",pj="⋫",gj="⋭",vj="⊏̸",mj="⋢",yj="⊐̸",bj="⋣",wj="⊂⃒",xj="⊈",_j="⊁",Sj="⪰̸",kj="⋡",Tj="≿̸",Cj="⊃⃒",Ej="⊉",Aj="≁",Lj="≄",Mj="≇",Nj="≉",$j="∤",Oj="∦",Rj="∦",Pj="⫽⃥",Ij="∂̸",zj="⨔",Dj="⊀",Fj="⋠",Hj="⊀",Bj="⪯̸",Wj="⪯̸",qj="⤳̸",Uj="↛",jj="⇏",Vj="↝̸",Gj="↛",Kj="⇏",Xj="⋫",Yj="⋭",Zj="⊁",Jj="⋡",Qj="⪰̸",eV="𝒩",tV="𝓃",nV="∤",rV="∦",iV="≁",oV="≄",sV="≄",lV="∤",aV="∦",cV="⋢",uV="⋣",fV="⊄",dV="⫅̸",hV="⊈",pV="⊂⃒",gV="⊈",vV="⫅̸",mV="⊁",yV="⪰̸",bV="⊅",wV="⫆̸",xV="⊉",_V="⊃⃒",SV="⊉",kV="⫆̸",TV="≹",CV="Ñ",EV="ñ",AV="≸",LV="⋪",MV="⋬",NV="⋫",$V="⋭",OV="Ν",RV="ν",PV="#",IV="№",zV=" ",DV="≍⃒",FV="⊬",HV="⊭",BV="⊮",WV="⊯",qV="≥⃒",UV=">⃒",jV="⤄",VV="⧞",GV="⤂",KV="≤⃒",XV="<⃒",YV="⊴⃒",ZV="⤃",JV="⊵⃒",QV="∼⃒",e9="⤣",t9="↖",n9="⇖",r9="↖",i9="⤧",o9="Ó",s9="ó",l9="⊛",a9="Ô",c9="ô",u9="⊚",f9="О",d9="о",h9="⊝",p9="Ő",g9="ő",v9="⨸",m9="⊙",y9="⦼",b9="Œ",w9="œ",x9="⦿",_9="𝔒",S9="𝔬",k9="˛",T9="Ò",C9="ò",E9="⧁",A9="⦵",L9="Ω",M9="∮",N9="↺",$9="⦾",O9="⦻",R9="‾",P9="⧀",I9="Ō",z9="ō",D9="Ω",F9="ω",H9="Ο",B9="ο",W9="⦶",q9="⊖",U9="𝕆",j9="𝕠",V9="⦷",G9="“",K9="‘",X9="⦹",Y9="⊕",Z9="↻",J9="⩔",Q9="∨",eG="⩝",tG="ℴ",nG="ℴ",rG="ª",iG="º",oG="⊶",sG="⩖",lG="⩗",aG="⩛",cG="Ⓢ",uG="𝒪",fG="ℴ",dG="Ø",hG="ø",pG="⊘",gG="Õ",vG="õ",mG="⨶",yG="⨷",bG="⊗",wG="Ö",xG="ö",_G="⌽",SG="‾",kG="⏞",TG="⎴",CG="⏜",EG="¶",AG="∥",LG="∥",MG="⫳",NG="⫽",$G="∂",OG="∂",RG="П",PG="п",IG="%",zG=".",DG="‰",FG="⊥",HG="‱",BG="𝔓",WG="𝔭",qG="Φ",UG="φ",jG="ϕ",VG="ℳ",GG="☎",KG="Π",XG="π",YG="⋔",ZG="ϖ",JG="ℏ",QG="ℎ",e7="ℏ",t7="⨣",n7="⊞",r7="⨢",i7="+",o7="∔",s7="⨥",l7="⩲",a7="±",c7="±",u7="⨦",f7="⨧",d7="±",h7="ℌ",p7="⨕",g7="𝕡",v7="ℙ",m7="£",y7="⪷",b7="⪻",w7="≺",x7="≼",_7="⪷",S7="≺",k7="≼",T7="≺",C7="⪯",E7="≼",A7="≾",L7="⪯",M7="⪹",N7="⪵",$7="⋨",O7="⪯",R7="⪳",P7="≾",I7="′",z7="″",D7="ℙ",F7="⪹",H7="⪵",B7="⋨",W7="∏",q7="∏",U7="⌮",j7="⌒",V7="⌓",G7="∝",K7="∝",X7="∷",Y7="∝",Z7="≾",J7="⊰",Q7="𝒫",eK="𝓅",tK="Ψ",nK="ψ",rK=" ",iK="𝔔",oK="𝔮",sK="⨌",lK="𝕢",aK="ℚ",cK="⁗",uK="𝒬",fK="𝓆",dK="ℍ",hK="⨖",pK="?",gK="≟",vK='"',mK='"',yK="⇛",bK="∽̱",wK="Ŕ",xK="ŕ",_K="√",SK="⦳",kK="⟩",TK="⟫",CK="⦒",EK="⦥",AK="⟩",LK="»",MK="⥵",NK="⇥",$K="⤠",OK="⤳",RK="→",PK="↠",IK="⇒",zK="⤞",DK="↪",FK="↬",HK="⥅",BK="⥴",WK="⤖",qK="↣",UK="↝",jK="⤚",VK="⤜",GK="∶",KK="ℚ",XK="⤍",YK="⤏",ZK="⤐",JK="❳",QK="}",eX="]",tX="⦌",nX="⦎",rX="⦐",iX="Ř",oX="ř",sX="Ŗ",lX="ŗ",aX="⌉",cX="}",uX="Р",fX="р",dX="⤷",hX="⥩",pX="”",gX="”",vX="↳",mX="ℜ",yX="ℛ",bX="ℜ",wX="ℝ",xX="ℜ",_X="▭",SX="®",kX="®",TX="∋",CX="⇋",EX="⥯",AX="⥽",LX="⌋",MX="𝔯",NX="ℜ",$X="⥤",OX="⇁",RX="⇀",PX="⥬",IX="Ρ",zX="ρ",DX="ϱ",FX="⟩",HX="⇥",BX="→",WX="→",qX="⇒",UX="⇄",jX="↣",VX="⌉",GX="⟧",KX="⥝",XX="⥕",YX="⇂",ZX="⌋",JX="⇁",QX="⇀",eY="⇄",tY="⇌",nY="⇉",rY="↝",iY="↦",oY="⊢",sY="⥛",lY="⋌",aY="⧐",cY="⊳",uY="⊵",fY="⥏",dY="⥜",hY="⥔",pY="↾",gY="⥓",vY="⇀",mY="˚",yY="≓",bY="⇄",wY="⇌",xY="‏",_Y="⎱",SY="⎱",kY="⫮",TY="⟭",CY="⇾",EY="⟧",AY="⦆",LY="𝕣",MY="ℝ",NY="⨮",$Y="⨵",OY="⥰",RY=")",PY="⦔",IY="⨒",zY="⇉",DY="⇛",FY="›",HY="𝓇",BY="ℛ",WY="↱",qY="↱",UY="]",jY="’",VY="’",GY="⋌",KY="⋊",XY="▹",YY="⊵",ZY="▸",JY="⧎",QY="⧴",eZ="⥨",tZ="℞",nZ="Ś",rZ="ś",iZ="‚",oZ="⪸",sZ="Š",lZ="š",aZ="⪼",cZ="≻",uZ="≽",fZ="⪰",dZ="⪴",hZ="Ş",pZ="ş",gZ="Ŝ",vZ="ŝ",mZ="⪺",yZ="⪶",bZ="⋩",wZ="⨓",xZ="≿",_Z="С",SZ="с",kZ="⊡",TZ="⋅",CZ="⩦",EZ="⤥",AZ="↘",LZ="⇘",MZ="↘",NZ="§",$Z=";",OZ="⤩",RZ="∖",PZ="∖",IZ="✶",zZ="𝔖",DZ="𝔰",FZ="⌢",HZ="♯",BZ="Щ",WZ="щ",qZ="Ш",UZ="ш",jZ="↓",VZ="←",GZ="∣",KZ="∥",XZ="→",YZ="↑",ZZ="­",JZ="Σ",QZ="σ",eJ="ς",tJ="ς",nJ="∼",rJ="⩪",iJ="≃",oJ="≃",sJ="⪞",lJ="⪠",aJ="⪝",cJ="⪟",uJ="≆",fJ="⨤",dJ="⥲",hJ="←",pJ="∘",gJ="∖",vJ="⨳",mJ="⧤",yJ="∣",bJ="⌣",wJ="⪪",xJ="⪬",_J="⪬︀",SJ="Ь",kJ="ь",TJ="⌿",CJ="⧄",EJ="/",AJ="𝕊",LJ="𝕤",MJ="♠",NJ="♠",$J="∥",OJ="⊓",RJ="⊓︀",PJ="⊔",IJ="⊔︀",zJ="√",DJ="⊏",FJ="⊑",HJ="⊏",BJ="⊑",WJ="⊐",qJ="⊒",UJ="⊐",jJ="⊒",VJ="□",GJ="□",KJ="⊓",XJ="⊏",YJ="⊑",ZJ="⊐",JJ="⊒",QJ="⊔",eQ="▪",tQ="□",nQ="▪",rQ="→",iQ="𝒮",oQ="𝓈",sQ="∖",lQ="⌣",aQ="⋆",cQ="⋆",uQ="☆",fQ="★",dQ="ϵ",hQ="ϕ",pQ="¯",gQ="⊂",vQ="⋐",mQ="⪽",yQ="⫅",bQ="⊆",wQ="⫃",xQ="⫁",_Q="⫋",SQ="⊊",kQ="⪿",TQ="⥹",CQ="⊂",EQ="⋐",AQ="⊆",LQ="⫅",MQ="⊆",NQ="⊊",$Q="⫋",OQ="⫇",RQ="⫕",PQ="⫓",IQ="⪸",zQ="≻",DQ="≽",FQ="≻",HQ="⪰",BQ="≽",WQ="≿",qQ="⪰",UQ="⪺",jQ="⪶",VQ="⋩",GQ="≿",KQ="∋",XQ="∑",YQ="∑",ZQ="♪",JQ="¹",QQ="²",eee="³",tee="⊃",nee="⋑",ree="⪾",iee="⫘",oee="⫆",see="⊇",lee="⫄",aee="⊃",cee="⊇",uee="⟉",fee="⫗",dee="⥻",hee="⫂",pee="⫌",gee="⊋",vee="⫀",mee="⊃",yee="⋑",bee="⊇",wee="⫆",xee="⊋",_ee="⫌",See="⫈",kee="⫔",Tee="⫖",Cee="⤦",Eee="↙",Aee="⇙",Lee="↙",Mee="⤪",Nee="ß",$ee=" ",Oee="⌖",Ree="Τ",Pee="τ",Iee="⎴",zee="Ť",Dee="ť",Fee="Ţ",Hee="ţ",Bee="Т",Wee="т",qee="⃛",Uee="⌕",jee="𝔗",Vee="𝔱",Gee="∴",Kee="∴",Xee="∴",Yee="Θ",Zee="θ",Jee="ϑ",Qee="ϑ",ete="≈",tte="∼",nte="  ",rte=" ",ite=" ",ote="≈",ste="∼",lte="Þ",ate="þ",cte="˜",ute="∼",fte="≃",dte="≅",hte="≈",pte="⨱",gte="⊠",vte="×",mte="⨰",yte="∭",bte="⤨",wte="⌶",xte="⫱",_te="⊤",Ste="𝕋",kte="𝕥",Tte="⫚",Cte="⤩",Ete="‴",Ate="™",Lte="™",Mte="▵",Nte="▿",$te="◃",Ote="⊴",Rte="≜",Pte="▹",Ite="⊵",zte="◬",Dte="≜",Fte="⨺",Hte="⃛",Bte="⨹",Wte="⧍",qte="⨻",Ute="⏢",jte="𝒯",Vte="𝓉",Gte="Ц",Kte="ц",Xte="Ћ",Yte="ћ",Zte="Ŧ",Jte="ŧ",Qte="≬",ene="↞",tne="↠",nne="Ú",rne="ú",ine="↑",one="↟",sne="⇑",lne="⥉",ane="Ў",cne="ў",une="Ŭ",fne="ŭ",dne="Û",hne="û",pne="У",gne="у",vne="⇅",mne="Ű",yne="ű",bne="⥮",wne="⥾",xne="𝔘",_ne="𝔲",Sne="Ù",kne="ù",Tne="⥣",Cne="↿",Ene="↾",Ane="▀",Lne="⌜",Mne="⌜",Nne="⌏",$ne="◸",One="Ū",Rne="ū",Pne="¨",Ine="_",zne="⏟",Dne="⎵",Fne="⏝",Hne="⋃",Bne="⊎",Wne="Ų",qne="ų",Une="𝕌",jne="𝕦",Vne="⤒",Gne="↑",Kne="↑",Xne="⇑",Yne="⇅",Zne="↕",Jne="↕",Qne="⇕",ere="⥮",tre="↿",nre="↾",rre="⊎",ire="↖",ore="↗",sre="υ",lre="ϒ",are="ϒ",cre="Υ",ure="υ",fre="↥",dre="⊥",hre="⇈",pre="⌝",gre="⌝",vre="⌎",mre="Ů",yre="ů",bre="◹",wre="𝒰",xre="𝓊",_re="⋰",Sre="Ũ",kre="ũ",Tre="▵",Cre="▴",Ere="⇈",Are="Ü",Lre="ü",Mre="⦧",Nre="⦜",$re="ϵ",Ore="ϰ",Rre="∅",Pre="ϕ",Ire="ϖ",zre="∝",Dre="↕",Fre="⇕",Hre="ϱ",Bre="ς",Wre="⊊︀",qre="⫋︀",Ure="⊋︀",jre="⫌︀",Vre="ϑ",Gre="⊲",Kre="⊳",Xre="⫨",Yre="⫫",Zre="⫩",Jre="В",Qre="в",eie="⊢",tie="⊨",nie="⊩",rie="⊫",iie="⫦",oie="⊻",sie="∨",lie="⋁",aie="≚",cie="⋮",uie="|",fie="‖",die="|",hie="‖",pie="∣",gie="|",vie="❘",mie="≀",yie=" ",bie="𝔙",wie="𝔳",xie="⊲",_ie="⊂⃒",Sie="⊃⃒",kie="𝕍",Tie="𝕧",Cie="∝",Eie="⊳",Aie="𝒱",Lie="𝓋",Mie="⫋︀",Nie="⊊︀",$ie="⫌︀",Oie="⊋︀",Rie="⊪",Pie="⦚",Iie="Ŵ",zie="ŵ",Die="⩟",Fie="∧",Hie="⋀",Bie="≙",Wie="℘",qie="𝔚",Uie="𝔴",jie="𝕎",Vie="𝕨",Gie="℘",Kie="≀",Xie="≀",Yie="𝒲",Zie="𝓌",Jie="⋂",Qie="◯",eoe="⋃",toe="▽",noe="𝔛",roe="𝔵",ioe="⟷",ooe="⟺",soe="Ξ",loe="ξ",aoe="⟵",coe="⟸",uoe="⟼",foe="⋻",doe="⨀",hoe="𝕏",poe="𝕩",goe="⨁",voe="⨂",moe="⟶",yoe="⟹",boe="𝒳",woe="𝓍",xoe="⨆",_oe="⨄",Soe="△",koe="⋁",Toe="⋀",Coe="Ý",Eoe="ý",Aoe="Я",Loe="я",Moe="Ŷ",Noe="ŷ",$oe="Ы",Ooe="ы",Roe="¥",Poe="𝔜",Ioe="𝔶",zoe="Ї",Doe="ї",Foe="𝕐",Hoe="𝕪",Boe="𝒴",Woe="𝓎",qoe="Ю",Uoe="ю",joe="ÿ",Voe="Ÿ",Goe="Ź",Koe="ź",Xoe="Ž",Yoe="ž",Zoe="З",Joe="з",Qoe="Ż",ese="ż",tse="ℨ",nse="​",rse="Ζ",ise="ζ",ose="𝔷",sse="ℨ",lse="Ж",ase="ж",cse="⇝",use="𝕫",fse="ℤ",dse="𝒵",hse="𝓏",pse="‍",gse="‌",_w={Aacute:QA,aacute:eL,Abreve:tL,abreve:nL,ac:rL,acd:iL,acE:oL,Acirc:sL,acirc:lL,acute:aL,Acy:cL,acy:uL,AElig:fL,aelig:dL,af:hL,Afr:pL,afr:gL,Agrave:vL,agrave:mL,alefsym:yL,aleph:bL,Alpha:wL,alpha:xL,Amacr:_L,amacr:SL,amalg:kL,amp:TL,AMP:CL,andand:EL,And:AL,and:LL,andd:ML,andslope:NL,andv:$L,ang:OL,ange:RL,angle:PL,angmsdaa:IL,angmsdab:zL,angmsdac:DL,angmsdad:FL,angmsdae:HL,angmsdaf:BL,angmsdag:WL,angmsdah:qL,angmsd:UL,angrt:jL,angrtvb:VL,angrtvbd:GL,angsph:KL,angst:XL,angzarr:YL,Aogon:ZL,aogon:JL,Aopf:QL,aopf:eM,apacir:tM,ap:nM,apE:rM,ape:iM,apid:oM,apos:sM,ApplyFunction:lM,approx:aM,approxeq:cM,Aring:uM,aring:fM,Ascr:dM,ascr:hM,Assign:pM,ast:gM,asymp:vM,asympeq:mM,Atilde:yM,atilde:bM,Auml:wM,auml:xM,awconint:_M,awint:SM,backcong:kM,backepsilon:TM,backprime:CM,backsim:EM,backsimeq:AM,Backslash:LM,Barv:MM,barvee:NM,barwed:$M,Barwed:OM,barwedge:RM,bbrk:PM,bbrktbrk:IM,bcong:zM,Bcy:DM,bcy:FM,bdquo:HM,becaus:BM,because:WM,Because:qM,bemptyv:UM,bepsi:jM,bernou:VM,Bernoullis:GM,Beta:KM,beta:XM,beth:YM,between:ZM,Bfr:JM,bfr:QM,bigcap:eN,bigcirc:tN,bigcup:nN,bigodot:rN,bigoplus:iN,bigotimes:oN,bigsqcup:sN,bigstar:lN,bigtriangledown:aN,bigtriangleup:cN,biguplus:uN,bigvee:fN,bigwedge:dN,bkarow:hN,blacklozenge:pN,blacksquare:gN,blacktriangle:vN,blacktriangledown:mN,blacktriangleleft:yN,blacktriangleright:bN,blank:wN,blk12:xN,blk14:_N,blk34:SN,block:kN,bne:TN,bnequiv:CN,bNot:EN,bnot:AN,Bopf:LN,bopf:MN,bot:NN,bottom:$N,bowtie:ON,boxbox:RN,boxdl:PN,boxdL:IN,boxDl:zN,boxDL:DN,boxdr:FN,boxdR:HN,boxDr:BN,boxDR:WN,boxh:qN,boxH:UN,boxhd:jN,boxHd:VN,boxhD:GN,boxHD:KN,boxhu:XN,boxHu:YN,boxhU:ZN,boxHU:JN,boxminus:QN,boxplus:e$,boxtimes:t$,boxul:n$,boxuL:r$,boxUl:i$,boxUL:o$,boxur:s$,boxuR:l$,boxUr:a$,boxUR:c$,boxv:u$,boxV:f$,boxvh:d$,boxvH:h$,boxVh:p$,boxVH:g$,boxvl:v$,boxvL:m$,boxVl:y$,boxVL:b$,boxvr:w$,boxvR:x$,boxVr:_$,boxVR:S$,bprime:k$,breve:T$,Breve:C$,brvbar:E$,bscr:A$,Bscr:L$,bsemi:M$,bsim:N$,bsime:$$,bsolb:O$,bsol:R$,bsolhsub:P$,bull:I$,bullet:z$,bump:D$,bumpE:F$,bumpe:H$,Bumpeq:B$,bumpeq:W$,Cacute:q$,cacute:U$,capand:j$,capbrcup:V$,capcap:G$,cap:K$,Cap:X$,capcup:Y$,capdot:Z$,CapitalDifferentialD:J$,caps:Q$,caret:eO,caron:tO,Cayleys:nO,ccaps:rO,Ccaron:iO,ccaron:oO,Ccedil:sO,ccedil:lO,Ccirc:aO,ccirc:cO,Cconint:uO,ccups:fO,ccupssm:dO,Cdot:hO,cdot:pO,cedil:gO,Cedilla:vO,cemptyv:mO,cent:yO,centerdot:bO,CenterDot:wO,cfr:xO,Cfr:_O,CHcy:SO,chcy:kO,check:TO,checkmark:CO,Chi:EO,chi:AO,circ:LO,circeq:MO,circlearrowleft:NO,circlearrowright:$O,circledast:OO,circledcirc:RO,circleddash:PO,CircleDot:IO,circledR:zO,circledS:DO,CircleMinus:FO,CirclePlus:HO,CircleTimes:BO,cir:WO,cirE:qO,cire:UO,cirfnint:jO,cirmid:VO,cirscir:GO,ClockwiseContourIntegral:KO,CloseCurlyDoubleQuote:XO,CloseCurlyQuote:YO,clubs:ZO,clubsuit:JO,colon:QO,Colon:eR,Colone:tR,colone:nR,coloneq:rR,comma:iR,commat:oR,comp:sR,compfn:lR,complement:aR,complexes:cR,cong:uR,congdot:fR,Congruent:dR,conint:hR,Conint:pR,ContourIntegral:gR,copf:vR,Copf:mR,coprod:yR,Coproduct:bR,copy:wR,COPY:xR,copysr:_R,CounterClockwiseContourIntegral:SR,crarr:kR,cross:TR,Cross:CR,Cscr:ER,cscr:AR,csub:LR,csube:MR,csup:NR,csupe:$R,ctdot:OR,cudarrl:RR,cudarrr:PR,cuepr:IR,cuesc:zR,cularr:DR,cularrp:FR,cupbrcap:HR,cupcap:BR,CupCap:WR,cup:qR,Cup:UR,cupcup:jR,cupdot:VR,cupor:GR,cups:KR,curarr:XR,curarrm:YR,curlyeqprec:ZR,curlyeqsucc:JR,curlyvee:QR,curlywedge:eP,curren:tP,curvearrowleft:nP,curvearrowright:rP,cuvee:iP,cuwed:oP,cwconint:sP,cwint:lP,cylcty:aP,dagger:cP,Dagger:uP,daleth:fP,darr:dP,Darr:hP,dArr:pP,dash:gP,Dashv:vP,dashv:mP,dbkarow:yP,dblac:bP,Dcaron:wP,dcaron:xP,Dcy:_P,dcy:SP,ddagger:kP,ddarr:TP,DD:CP,dd:EP,DDotrahd:AP,ddotseq:LP,deg:MP,Del:NP,Delta:$P,delta:OP,demptyv:RP,dfisht:PP,Dfr:IP,dfr:zP,dHar:DP,dharl:FP,dharr:HP,DiacriticalAcute:BP,DiacriticalDot:WP,DiacriticalDoubleAcute:qP,DiacriticalGrave:UP,DiacriticalTilde:jP,diam:VP,diamond:GP,Diamond:KP,diamondsuit:XP,diams:YP,die:ZP,DifferentialD:JP,digamma:QP,disin:e2,div:t2,divide:n2,divideontimes:r2,divonx:i2,DJcy:o2,djcy:s2,dlcorn:l2,dlcrop:a2,dollar:c2,Dopf:u2,dopf:f2,Dot:d2,dot:h2,DotDot:p2,doteq:g2,doteqdot:v2,DotEqual:m2,dotminus:y2,dotplus:b2,dotsquare:w2,doublebarwedge:x2,DoubleContourIntegral:_2,DoubleDot:S2,DoubleDownArrow:k2,DoubleLeftArrow:T2,DoubleLeftRightArrow:C2,DoubleLeftTee:E2,DoubleLongLeftArrow:A2,DoubleLongLeftRightArrow:L2,DoubleLongRightArrow:M2,DoubleRightArrow:N2,DoubleRightTee:$2,DoubleUpArrow:O2,DoubleUpDownArrow:R2,DoubleVerticalBar:P2,DownArrowBar:I2,downarrow:z2,DownArrow:D2,Downarrow:F2,DownArrowUpArrow:H2,DownBreve:B2,downdownarrows:W2,downharpoonleft:q2,downharpoonright:U2,DownLeftRightVector:j2,DownLeftTeeVector:V2,DownLeftVectorBar:G2,DownLeftVector:K2,DownRightTeeVector:X2,DownRightVectorBar:Y2,DownRightVector:Z2,DownTeeArrow:J2,DownTee:Q2,drbkarow:eI,drcorn:tI,drcrop:nI,Dscr:rI,dscr:iI,DScy:oI,dscy:sI,dsol:lI,Dstrok:aI,dstrok:cI,dtdot:uI,dtri:fI,dtrif:dI,duarr:hI,duhar:pI,dwangle:gI,DZcy:vI,dzcy:mI,dzigrarr:yI,Eacute:bI,eacute:wI,easter:xI,Ecaron:_I,ecaron:SI,Ecirc:kI,ecirc:TI,ecir:CI,ecolon:EI,Ecy:AI,ecy:LI,eDDot:MI,Edot:NI,edot:$I,eDot:OI,ee:RI,efDot:PI,Efr:II,efr:zI,eg:DI,Egrave:FI,egrave:HI,egs:BI,egsdot:WI,el:qI,Element:UI,elinters:jI,ell:VI,els:GI,elsdot:KI,Emacr:XI,emacr:YI,empty:ZI,emptyset:JI,EmptySmallSquare:QI,emptyv:ez,EmptyVerySmallSquare:tz,emsp13:nz,emsp14:rz,emsp:iz,ENG:oz,eng:sz,ensp:lz,Eogon:az,eogon:cz,Eopf:uz,eopf:fz,epar:dz,eparsl:hz,eplus:pz,epsi:gz,Epsilon:vz,epsilon:mz,epsiv:yz,eqcirc:bz,eqcolon:wz,eqsim:xz,eqslantgtr:_z,eqslantless:Sz,Equal:kz,equals:Tz,EqualTilde:Cz,equest:Ez,Equilibrium:Az,equiv:Lz,equivDD:Mz,eqvparsl:Nz,erarr:$z,erDot:Oz,escr:Rz,Escr:Pz,esdot:Iz,Esim:zz,esim:Dz,Eta:Fz,eta:Hz,ETH:Bz,eth:Wz,Euml:qz,euml:Uz,euro:jz,excl:Vz,exist:Gz,Exists:Kz,expectation:Xz,exponentiale:Yz,ExponentialE:Zz,fallingdotseq:Jz,Fcy:Qz,fcy:eD,female:tD,ffilig:nD,fflig:rD,ffllig:iD,Ffr:oD,ffr:sD,filig:lD,FilledSmallSquare:aD,FilledVerySmallSquare:cD,fjlig:uD,flat:fD,fllig:dD,fltns:hD,fnof:pD,Fopf:gD,fopf:vD,forall:mD,ForAll:yD,fork:bD,forkv:wD,Fouriertrf:xD,fpartint:_D,frac12:SD,frac13:kD,frac14:TD,frac15:CD,frac16:ED,frac18:AD,frac23:LD,frac25:MD,frac34:ND,frac35:$D,frac38:OD,frac45:RD,frac56:PD,frac58:ID,frac78:zD,frasl:DD,frown:FD,fscr:HD,Fscr:BD,gacute:WD,Gamma:qD,gamma:UD,Gammad:jD,gammad:VD,gap:GD,Gbreve:KD,gbreve:XD,Gcedil:YD,Gcirc:ZD,gcirc:JD,Gcy:QD,gcy:eF,Gdot:tF,gdot:nF,ge:rF,gE:iF,gEl:oF,gel:sF,geq:lF,geqq:aF,geqslant:cF,gescc:uF,ges:fF,gesdot:dF,gesdoto:hF,gesdotol:pF,gesl:gF,gesles:vF,Gfr:mF,gfr:yF,gg:bF,Gg:wF,ggg:xF,gimel:_F,GJcy:SF,gjcy:kF,gla:TF,gl:CF,glE:EF,glj:AF,gnap:LF,gnapprox:MF,gne:NF,gnE:$F,gneq:OF,gneqq:RF,gnsim:PF,Gopf:IF,gopf:zF,grave:DF,GreaterEqual:FF,GreaterEqualLess:HF,GreaterFullEqual:BF,GreaterGreater:WF,GreaterLess:qF,GreaterSlantEqual:UF,GreaterTilde:jF,Gscr:VF,gscr:GF,gsim:KF,gsime:XF,gsiml:YF,gtcc:ZF,gtcir:JF,gt:QF,GT:eH,Gt:tH,gtdot:nH,gtlPar:rH,gtquest:iH,gtrapprox:oH,gtrarr:sH,gtrdot:lH,gtreqless:aH,gtreqqless:cH,gtrless:uH,gtrsim:fH,gvertneqq:dH,gvnE:hH,Hacek:pH,hairsp:gH,half:vH,hamilt:mH,HARDcy:yH,hardcy:bH,harrcir:wH,harr:xH,hArr:_H,harrw:SH,Hat:kH,hbar:TH,Hcirc:CH,hcirc:EH,hearts:AH,heartsuit:LH,hellip:MH,hercon:NH,hfr:$H,Hfr:OH,HilbertSpace:RH,hksearow:PH,hkswarow:IH,hoarr:zH,homtht:DH,hookleftarrow:FH,hookrightarrow:HH,hopf:BH,Hopf:WH,horbar:qH,HorizontalLine:UH,hscr:jH,Hscr:VH,hslash:GH,Hstrok:KH,hstrok:XH,HumpDownHump:YH,HumpEqual:ZH,hybull:JH,hyphen:QH,Iacute:eB,iacute:tB,ic:nB,Icirc:rB,icirc:iB,Icy:oB,icy:sB,Idot:lB,IEcy:aB,iecy:cB,iexcl:uB,iff:fB,ifr:dB,Ifr:hB,Igrave:pB,igrave:gB,ii:vB,iiiint:mB,iiint:yB,iinfin:bB,iiota:wB,IJlig:xB,ijlig:_B,Imacr:SB,imacr:kB,image:TB,ImaginaryI:CB,imagline:EB,imagpart:AB,imath:LB,Im:MB,imof:NB,imped:$B,Implies:OB,incare:RB,in:"∈",infin:PB,infintie:IB,inodot:zB,intcal:DB,int:FB,Int:HB,integers:BB,Integral:WB,intercal:qB,Intersection:UB,intlarhk:jB,intprod:VB,InvisibleComma:GB,InvisibleTimes:KB,IOcy:XB,iocy:YB,Iogon:ZB,iogon:JB,Iopf:QB,iopf:e3,Iota:t3,iota:n3,iprod:r3,iquest:i3,iscr:o3,Iscr:s3,isin:l3,isindot:a3,isinE:c3,isins:u3,isinsv:f3,isinv:d3,it:h3,Itilde:p3,itilde:g3,Iukcy:v3,iukcy:m3,Iuml:y3,iuml:b3,Jcirc:w3,jcirc:x3,Jcy:_3,jcy:S3,Jfr:k3,jfr:T3,jmath:C3,Jopf:E3,jopf:A3,Jscr:L3,jscr:M3,Jsercy:N3,jsercy:$3,Jukcy:O3,jukcy:R3,Kappa:P3,kappa:I3,kappav:z3,Kcedil:D3,kcedil:F3,Kcy:H3,kcy:B3,Kfr:W3,kfr:q3,kgreen:U3,KHcy:j3,khcy:V3,KJcy:G3,kjcy:K3,Kopf:X3,kopf:Y3,Kscr:Z3,kscr:J3,lAarr:Q3,Lacute:e5,lacute:t5,laemptyv:n5,lagran:r5,Lambda:i5,lambda:o5,lang:s5,Lang:l5,langd:a5,langle:c5,lap:u5,Laplacetrf:f5,laquo:d5,larrb:h5,larrbfs:p5,larr:g5,Larr:v5,lArr:m5,larrfs:y5,larrhk:b5,larrlp:w5,larrpl:x5,larrsim:_5,larrtl:S5,latail:k5,lAtail:T5,lat:C5,late:E5,lates:A5,lbarr:L5,lBarr:M5,lbbrk:N5,lbrace:$5,lbrack:O5,lbrke:R5,lbrksld:P5,lbrkslu:I5,Lcaron:z5,lcaron:D5,Lcedil:F5,lcedil:H5,lceil:B5,lcub:W5,Lcy:q5,lcy:U5,ldca:j5,ldquo:V5,ldquor:G5,ldrdhar:K5,ldrushar:X5,ldsh:Y5,le:Z5,lE:J5,LeftAngleBracket:Q5,LeftArrowBar:e8,leftarrow:t8,LeftArrow:n8,Leftarrow:r8,LeftArrowRightArrow:i8,leftarrowtail:o8,LeftCeiling:s8,LeftDoubleBracket:l8,LeftDownTeeVector:a8,LeftDownVectorBar:c8,LeftDownVector:u8,LeftFloor:f8,leftharpoondown:d8,leftharpoonup:h8,leftleftarrows:p8,leftrightarrow:g8,LeftRightArrow:v8,Leftrightarrow:m8,leftrightarrows:y8,leftrightharpoons:b8,leftrightsquigarrow:w8,LeftRightVector:x8,LeftTeeArrow:_8,LeftTee:S8,LeftTeeVector:k8,leftthreetimes:T8,LeftTriangleBar:C8,LeftTriangle:E8,LeftTriangleEqual:A8,LeftUpDownVector:L8,LeftUpTeeVector:M8,LeftUpVectorBar:N8,LeftUpVector:$8,LeftVectorBar:O8,LeftVector:R8,lEg:P8,leg:I8,leq:z8,leqq:D8,leqslant:F8,lescc:H8,les:B8,lesdot:W8,lesdoto:q8,lesdotor:U8,lesg:j8,lesges:V8,lessapprox:G8,lessdot:K8,lesseqgtr:X8,lesseqqgtr:Y8,LessEqualGreater:Z8,LessFullEqual:J8,LessGreater:Q8,lessgtr:eW,LessLess:tW,lesssim:nW,LessSlantEqual:rW,LessTilde:iW,lfisht:oW,lfloor:sW,Lfr:lW,lfr:aW,lg:cW,lgE:uW,lHar:fW,lhard:dW,lharu:hW,lharul:pW,lhblk:gW,LJcy:vW,ljcy:mW,llarr:yW,ll:bW,Ll:wW,llcorner:xW,Lleftarrow:_W,llhard:SW,lltri:kW,Lmidot:TW,lmidot:CW,lmoustache:EW,lmoust:AW,lnap:LW,lnapprox:MW,lne:NW,lnE:$W,lneq:OW,lneqq:RW,lnsim:PW,loang:IW,loarr:zW,lobrk:DW,longleftarrow:FW,LongLeftArrow:HW,Longleftarrow:BW,longleftrightarrow:WW,LongLeftRightArrow:qW,Longleftrightarrow:UW,longmapsto:jW,longrightarrow:VW,LongRightArrow:GW,Longrightarrow:KW,looparrowleft:XW,looparrowright:YW,lopar:ZW,Lopf:JW,lopf:QW,loplus:e4,lotimes:t4,lowast:n4,lowbar:r4,LowerLeftArrow:i4,LowerRightArrow:o4,loz:s4,lozenge:l4,lozf:a4,lpar:c4,lparlt:u4,lrarr:f4,lrcorner:d4,lrhar:h4,lrhard:p4,lrm:g4,lrtri:v4,lsaquo:m4,lscr:y4,Lscr:b4,lsh:w4,Lsh:x4,lsim:_4,lsime:S4,lsimg:k4,lsqb:T4,lsquo:C4,lsquor:E4,Lstrok:A4,lstrok:L4,ltcc:M4,ltcir:N4,lt:$4,LT:O4,Lt:R4,ltdot:P4,lthree:I4,ltimes:z4,ltlarr:D4,ltquest:F4,ltri:H4,ltrie:B4,ltrif:W4,ltrPar:q4,lurdshar:U4,luruhar:j4,lvertneqq:V4,lvnE:G4,macr:K4,male:X4,malt:Y4,maltese:Z4,Map:"⤅",map:J4,mapsto:Q4,mapstodown:eq,mapstoleft:tq,mapstoup:nq,marker:rq,mcomma:iq,Mcy:oq,mcy:sq,mdash:lq,mDDot:aq,measuredangle:cq,MediumSpace:uq,Mellintrf:fq,Mfr:dq,mfr:hq,mho:pq,micro:gq,midast:vq,midcir:mq,mid:yq,middot:bq,minusb:wq,minus:xq,minusd:_q,minusdu:Sq,MinusPlus:kq,mlcp:Tq,mldr:Cq,mnplus:Eq,models:Aq,Mopf:Lq,mopf:Mq,mp:Nq,mscr:$q,Mscr:Oq,mstpos:Rq,Mu:Pq,mu:Iq,multimap:zq,mumap:Dq,nabla:Fq,Nacute:Hq,nacute:Bq,nang:Wq,nap:qq,napE:Uq,napid:jq,napos:Vq,napprox:Gq,natural:Kq,naturals:Xq,natur:Yq,nbsp:Zq,nbump:Jq,nbumpe:Qq,ncap:e6,Ncaron:t6,ncaron:n6,Ncedil:r6,ncedil:i6,ncong:o6,ncongdot:s6,ncup:l6,Ncy:a6,ncy:c6,ndash:u6,nearhk:f6,nearr:d6,neArr:h6,nearrow:p6,ne:g6,nedot:v6,NegativeMediumSpace:m6,NegativeThickSpace:y6,NegativeThinSpace:b6,NegativeVeryThinSpace:w6,nequiv:x6,nesear:_6,nesim:S6,NestedGreaterGreater:k6,NestedLessLess:T6,NewLine:C6,nexist:E6,nexists:A6,Nfr:L6,nfr:M6,ngE:N6,nge:$6,ngeq:O6,ngeqq:R6,ngeqslant:P6,nges:I6,nGg:z6,ngsim:D6,nGt:F6,ngt:H6,ngtr:B6,nGtv:W6,nharr:q6,nhArr:U6,nhpar:j6,ni:V6,nis:G6,nisd:K6,niv:X6,NJcy:Y6,njcy:Z6,nlarr:J6,nlArr:Q6,nldr:eU,nlE:tU,nle:nU,nleftarrow:rU,nLeftarrow:iU,nleftrightarrow:oU,nLeftrightarrow:sU,nleq:lU,nleqq:aU,nleqslant:cU,nles:uU,nless:fU,nLl:dU,nlsim:hU,nLt:pU,nlt:gU,nltri:vU,nltrie:mU,nLtv:yU,nmid:bU,NoBreak:wU,NonBreakingSpace:xU,nopf:_U,Nopf:SU,Not:kU,not:TU,NotCongruent:CU,NotCupCap:EU,NotDoubleVerticalBar:AU,NotElement:LU,NotEqual:MU,NotEqualTilde:NU,NotExists:$U,NotGreater:OU,NotGreaterEqual:RU,NotGreaterFullEqual:PU,NotGreaterGreater:IU,NotGreaterLess:zU,NotGreaterSlantEqual:DU,NotGreaterTilde:FU,NotHumpDownHump:HU,NotHumpEqual:BU,notin:WU,notindot:qU,notinE:UU,notinva:jU,notinvb:VU,notinvc:GU,NotLeftTriangleBar:KU,NotLeftTriangle:XU,NotLeftTriangleEqual:YU,NotLess:ZU,NotLessEqual:JU,NotLessGreater:QU,NotLessLess:ej,NotLessSlantEqual:tj,NotLessTilde:nj,NotNestedGreaterGreater:rj,NotNestedLessLess:ij,notni:oj,notniva:sj,notnivb:lj,notnivc:aj,NotPrecedes:cj,NotPrecedesEqual:uj,NotPrecedesSlantEqual:fj,NotReverseElement:dj,NotRightTriangleBar:hj,NotRightTriangle:pj,NotRightTriangleEqual:gj,NotSquareSubset:vj,NotSquareSubsetEqual:mj,NotSquareSuperset:yj,NotSquareSupersetEqual:bj,NotSubset:wj,NotSubsetEqual:xj,NotSucceeds:_j,NotSucceedsEqual:Sj,NotSucceedsSlantEqual:kj,NotSucceedsTilde:Tj,NotSuperset:Cj,NotSupersetEqual:Ej,NotTilde:Aj,NotTildeEqual:Lj,NotTildeFullEqual:Mj,NotTildeTilde:Nj,NotVerticalBar:$j,nparallel:Oj,npar:Rj,nparsl:Pj,npart:Ij,npolint:zj,npr:Dj,nprcue:Fj,nprec:Hj,npreceq:Bj,npre:Wj,nrarrc:qj,nrarr:Uj,nrArr:jj,nrarrw:Vj,nrightarrow:Gj,nRightarrow:Kj,nrtri:Xj,nrtrie:Yj,nsc:Zj,nsccue:Jj,nsce:Qj,Nscr:eV,nscr:tV,nshortmid:nV,nshortparallel:rV,nsim:iV,nsime:oV,nsimeq:sV,nsmid:lV,nspar:aV,nsqsube:cV,nsqsupe:uV,nsub:fV,nsubE:dV,nsube:hV,nsubset:pV,nsubseteq:gV,nsubseteqq:vV,nsucc:mV,nsucceq:yV,nsup:bV,nsupE:wV,nsupe:xV,nsupset:_V,nsupseteq:SV,nsupseteqq:kV,ntgl:TV,Ntilde:CV,ntilde:EV,ntlg:AV,ntriangleleft:LV,ntrianglelefteq:MV,ntriangleright:NV,ntrianglerighteq:$V,Nu:OV,nu:RV,num:PV,numero:IV,numsp:zV,nvap:DV,nvdash:FV,nvDash:HV,nVdash:BV,nVDash:WV,nvge:qV,nvgt:UV,nvHarr:jV,nvinfin:VV,nvlArr:GV,nvle:KV,nvlt:XV,nvltrie:YV,nvrArr:ZV,nvrtrie:JV,nvsim:QV,nwarhk:e9,nwarr:t9,nwArr:n9,nwarrow:r9,nwnear:i9,Oacute:o9,oacute:s9,oast:l9,Ocirc:a9,ocirc:c9,ocir:u9,Ocy:f9,ocy:d9,odash:h9,Odblac:p9,odblac:g9,odiv:v9,odot:m9,odsold:y9,OElig:b9,oelig:w9,ofcir:x9,Ofr:_9,ofr:S9,ogon:k9,Ograve:T9,ograve:C9,ogt:E9,ohbar:A9,ohm:L9,oint:M9,olarr:N9,olcir:$9,olcross:O9,oline:R9,olt:P9,Omacr:I9,omacr:z9,Omega:D9,omega:F9,Omicron:H9,omicron:B9,omid:W9,ominus:q9,Oopf:U9,oopf:j9,opar:V9,OpenCurlyDoubleQuote:G9,OpenCurlyQuote:K9,operp:X9,oplus:Y9,orarr:Z9,Or:J9,or:Q9,ord:eG,order:tG,orderof:nG,ordf:rG,ordm:iG,origof:oG,oror:sG,orslope:lG,orv:aG,oS:cG,Oscr:uG,oscr:fG,Oslash:dG,oslash:hG,osol:pG,Otilde:gG,otilde:vG,otimesas:mG,Otimes:yG,otimes:bG,Ouml:wG,ouml:xG,ovbar:_G,OverBar:SG,OverBrace:kG,OverBracket:TG,OverParenthesis:CG,para:EG,parallel:AG,par:LG,parsim:MG,parsl:NG,part:$G,PartialD:OG,Pcy:RG,pcy:PG,percnt:IG,period:zG,permil:DG,perp:FG,pertenk:HG,Pfr:BG,pfr:WG,Phi:qG,phi:UG,phiv:jG,phmmat:VG,phone:GG,Pi:KG,pi:XG,pitchfork:YG,piv:ZG,planck:JG,planckh:QG,plankv:e7,plusacir:t7,plusb:n7,pluscir:r7,plus:i7,plusdo:o7,plusdu:s7,pluse:l7,PlusMinus:a7,plusmn:c7,plussim:u7,plustwo:f7,pm:d7,Poincareplane:h7,pointint:p7,popf:g7,Popf:v7,pound:m7,prap:y7,Pr:b7,pr:w7,prcue:x7,precapprox:_7,prec:S7,preccurlyeq:k7,Precedes:T7,PrecedesEqual:C7,PrecedesSlantEqual:E7,PrecedesTilde:A7,preceq:L7,precnapprox:M7,precneqq:N7,precnsim:$7,pre:O7,prE:R7,precsim:P7,prime:I7,Prime:z7,primes:D7,prnap:F7,prnE:H7,prnsim:B7,prod:W7,Product:q7,profalar:U7,profline:j7,profsurf:V7,prop:G7,Proportional:K7,Proportion:X7,propto:Y7,prsim:Z7,prurel:J7,Pscr:Q7,pscr:eK,Psi:tK,psi:nK,puncsp:rK,Qfr:iK,qfr:oK,qint:sK,qopf:lK,Qopf:aK,qprime:cK,Qscr:uK,qscr:fK,quaternions:dK,quatint:hK,quest:pK,questeq:gK,quot:vK,QUOT:mK,rAarr:yK,race:bK,Racute:wK,racute:xK,radic:_K,raemptyv:SK,rang:kK,Rang:TK,rangd:CK,range:EK,rangle:AK,raquo:LK,rarrap:MK,rarrb:NK,rarrbfs:$K,rarrc:OK,rarr:RK,Rarr:PK,rArr:IK,rarrfs:zK,rarrhk:DK,rarrlp:FK,rarrpl:HK,rarrsim:BK,Rarrtl:WK,rarrtl:qK,rarrw:UK,ratail:jK,rAtail:VK,ratio:GK,rationals:KK,rbarr:XK,rBarr:YK,RBarr:ZK,rbbrk:JK,rbrace:QK,rbrack:eX,rbrke:tX,rbrksld:nX,rbrkslu:rX,Rcaron:iX,rcaron:oX,Rcedil:sX,rcedil:lX,rceil:aX,rcub:cX,Rcy:uX,rcy:fX,rdca:dX,rdldhar:hX,rdquo:pX,rdquor:gX,rdsh:vX,real:mX,realine:yX,realpart:bX,reals:wX,Re:xX,rect:_X,reg:SX,REG:kX,ReverseElement:TX,ReverseEquilibrium:CX,ReverseUpEquilibrium:EX,rfisht:AX,rfloor:LX,rfr:MX,Rfr:NX,rHar:$X,rhard:OX,rharu:RX,rharul:PX,Rho:IX,rho:zX,rhov:DX,RightAngleBracket:FX,RightArrowBar:HX,rightarrow:BX,RightArrow:WX,Rightarrow:qX,RightArrowLeftArrow:UX,rightarrowtail:jX,RightCeiling:VX,RightDoubleBracket:GX,RightDownTeeVector:KX,RightDownVectorBar:XX,RightDownVector:YX,RightFloor:ZX,rightharpoondown:JX,rightharpoonup:QX,rightleftarrows:eY,rightleftharpoons:tY,rightrightarrows:nY,rightsquigarrow:rY,RightTeeArrow:iY,RightTee:oY,RightTeeVector:sY,rightthreetimes:lY,RightTriangleBar:aY,RightTriangle:cY,RightTriangleEqual:uY,RightUpDownVector:fY,RightUpTeeVector:dY,RightUpVectorBar:hY,RightUpVector:pY,RightVectorBar:gY,RightVector:vY,ring:mY,risingdotseq:yY,rlarr:bY,rlhar:wY,rlm:xY,rmoustache:_Y,rmoust:SY,rnmid:kY,roang:TY,roarr:CY,robrk:EY,ropar:AY,ropf:LY,Ropf:MY,roplus:NY,rotimes:$Y,RoundImplies:OY,rpar:RY,rpargt:PY,rppolint:IY,rrarr:zY,Rrightarrow:DY,rsaquo:FY,rscr:HY,Rscr:BY,rsh:WY,Rsh:qY,rsqb:UY,rsquo:jY,rsquor:VY,rthree:GY,rtimes:KY,rtri:XY,rtrie:YY,rtrif:ZY,rtriltri:JY,RuleDelayed:QY,ruluhar:eZ,rx:tZ,Sacute:nZ,sacute:rZ,sbquo:iZ,scap:oZ,Scaron:sZ,scaron:lZ,Sc:aZ,sc:cZ,sccue:uZ,sce:fZ,scE:dZ,Scedil:hZ,scedil:pZ,Scirc:gZ,scirc:vZ,scnap:mZ,scnE:yZ,scnsim:bZ,scpolint:wZ,scsim:xZ,Scy:_Z,scy:SZ,sdotb:kZ,sdot:TZ,sdote:CZ,searhk:EZ,searr:AZ,seArr:LZ,searrow:MZ,sect:NZ,semi:$Z,seswar:OZ,setminus:RZ,setmn:PZ,sext:IZ,Sfr:zZ,sfr:DZ,sfrown:FZ,sharp:HZ,SHCHcy:BZ,shchcy:WZ,SHcy:qZ,shcy:UZ,ShortDownArrow:jZ,ShortLeftArrow:VZ,shortmid:GZ,shortparallel:KZ,ShortRightArrow:XZ,ShortUpArrow:YZ,shy:ZZ,Sigma:JZ,sigma:QZ,sigmaf:eJ,sigmav:tJ,sim:nJ,simdot:rJ,sime:iJ,simeq:oJ,simg:sJ,simgE:lJ,siml:aJ,simlE:cJ,simne:uJ,simplus:fJ,simrarr:dJ,slarr:hJ,SmallCircle:pJ,smallsetminus:gJ,smashp:vJ,smeparsl:mJ,smid:yJ,smile:bJ,smt:wJ,smte:xJ,smtes:_J,SOFTcy:SJ,softcy:kJ,solbar:TJ,solb:CJ,sol:EJ,Sopf:AJ,sopf:LJ,spades:MJ,spadesuit:NJ,spar:$J,sqcap:OJ,sqcaps:RJ,sqcup:PJ,sqcups:IJ,Sqrt:zJ,sqsub:DJ,sqsube:FJ,sqsubset:HJ,sqsubseteq:BJ,sqsup:WJ,sqsupe:qJ,sqsupset:UJ,sqsupseteq:jJ,square:VJ,Square:GJ,SquareIntersection:KJ,SquareSubset:XJ,SquareSubsetEqual:YJ,SquareSuperset:ZJ,SquareSupersetEqual:JJ,SquareUnion:QJ,squarf:eQ,squ:tQ,squf:nQ,srarr:rQ,Sscr:iQ,sscr:oQ,ssetmn:sQ,ssmile:lQ,sstarf:aQ,Star:cQ,star:uQ,starf:fQ,straightepsilon:dQ,straightphi:hQ,strns:pQ,sub:gQ,Sub:vQ,subdot:mQ,subE:yQ,sube:bQ,subedot:wQ,submult:xQ,subnE:_Q,subne:SQ,subplus:kQ,subrarr:TQ,subset:CQ,Subset:EQ,subseteq:AQ,subseteqq:LQ,SubsetEqual:MQ,subsetneq:NQ,subsetneqq:$Q,subsim:OQ,subsub:RQ,subsup:PQ,succapprox:IQ,succ:zQ,succcurlyeq:DQ,Succeeds:FQ,SucceedsEqual:HQ,SucceedsSlantEqual:BQ,SucceedsTilde:WQ,succeq:qQ,succnapprox:UQ,succneqq:jQ,succnsim:VQ,succsim:GQ,SuchThat:KQ,sum:XQ,Sum:YQ,sung:ZQ,sup1:JQ,sup2:QQ,sup3:eee,sup:tee,Sup:nee,supdot:ree,supdsub:iee,supE:oee,supe:see,supedot:lee,Superset:aee,SupersetEqual:cee,suphsol:uee,suphsub:fee,suplarr:dee,supmult:hee,supnE:pee,supne:gee,supplus:vee,supset:mee,Supset:yee,supseteq:bee,supseteqq:wee,supsetneq:xee,supsetneqq:_ee,supsim:See,supsub:kee,supsup:Tee,swarhk:Cee,swarr:Eee,swArr:Aee,swarrow:Lee,swnwar:Mee,szlig:Nee,Tab:$ee,target:Oee,Tau:Ree,tau:Pee,tbrk:Iee,Tcaron:zee,tcaron:Dee,Tcedil:Fee,tcedil:Hee,Tcy:Bee,tcy:Wee,tdot:qee,telrec:Uee,Tfr:jee,tfr:Vee,there4:Gee,therefore:Kee,Therefore:Xee,Theta:Yee,theta:Zee,thetasym:Jee,thetav:Qee,thickapprox:ete,thicksim:tte,ThickSpace:nte,ThinSpace:rte,thinsp:ite,thkap:ote,thksim:ste,THORN:lte,thorn:ate,tilde:cte,Tilde:ute,TildeEqual:fte,TildeFullEqual:dte,TildeTilde:hte,timesbar:pte,timesb:gte,times:vte,timesd:mte,tint:yte,toea:bte,topbot:wte,topcir:xte,top:_te,Topf:Ste,topf:kte,topfork:Tte,tosa:Cte,tprime:Ete,trade:Ate,TRADE:Lte,triangle:Mte,triangledown:Nte,triangleleft:$te,trianglelefteq:Ote,triangleq:Rte,triangleright:Pte,trianglerighteq:Ite,tridot:zte,trie:Dte,triminus:Fte,TripleDot:Hte,triplus:Bte,trisb:Wte,tritime:qte,trpezium:Ute,Tscr:jte,tscr:Vte,TScy:Gte,tscy:Kte,TSHcy:Xte,tshcy:Yte,Tstrok:Zte,tstrok:Jte,twixt:Qte,twoheadleftarrow:ene,twoheadrightarrow:tne,Uacute:nne,uacute:rne,uarr:ine,Uarr:one,uArr:sne,Uarrocir:lne,Ubrcy:ane,ubrcy:cne,Ubreve:une,ubreve:fne,Ucirc:dne,ucirc:hne,Ucy:pne,ucy:gne,udarr:vne,Udblac:mne,udblac:yne,udhar:bne,ufisht:wne,Ufr:xne,ufr:_ne,Ugrave:Sne,ugrave:kne,uHar:Tne,uharl:Cne,uharr:Ene,uhblk:Ane,ulcorn:Lne,ulcorner:Mne,ulcrop:Nne,ultri:$ne,Umacr:One,umacr:Rne,uml:Pne,UnderBar:Ine,UnderBrace:zne,UnderBracket:Dne,UnderParenthesis:Fne,Union:Hne,UnionPlus:Bne,Uogon:Wne,uogon:qne,Uopf:Une,uopf:jne,UpArrowBar:Vne,uparrow:Gne,UpArrow:Kne,Uparrow:Xne,UpArrowDownArrow:Yne,updownarrow:Zne,UpDownArrow:Jne,Updownarrow:Qne,UpEquilibrium:ere,upharpoonleft:tre,upharpoonright:nre,uplus:rre,UpperLeftArrow:ire,UpperRightArrow:ore,upsi:sre,Upsi:lre,upsih:are,Upsilon:cre,upsilon:ure,UpTeeArrow:fre,UpTee:dre,upuparrows:hre,urcorn:pre,urcorner:gre,urcrop:vre,Uring:mre,uring:yre,urtri:bre,Uscr:wre,uscr:xre,utdot:_re,Utilde:Sre,utilde:kre,utri:Tre,utrif:Cre,uuarr:Ere,Uuml:Are,uuml:Lre,uwangle:Mre,vangrt:Nre,varepsilon:$re,varkappa:Ore,varnothing:Rre,varphi:Pre,varpi:Ire,varpropto:zre,varr:Dre,vArr:Fre,varrho:Hre,varsigma:Bre,varsubsetneq:Wre,varsubsetneqq:qre,varsupsetneq:Ure,varsupsetneqq:jre,vartheta:Vre,vartriangleleft:Gre,vartriangleright:Kre,vBar:Xre,Vbar:Yre,vBarv:Zre,Vcy:Jre,vcy:Qre,vdash:eie,vDash:tie,Vdash:nie,VDash:rie,Vdashl:iie,veebar:oie,vee:sie,Vee:lie,veeeq:aie,vellip:cie,verbar:uie,Verbar:fie,vert:die,Vert:hie,VerticalBar:pie,VerticalLine:gie,VerticalSeparator:vie,VerticalTilde:mie,VeryThinSpace:yie,Vfr:bie,vfr:wie,vltri:xie,vnsub:_ie,vnsup:Sie,Vopf:kie,vopf:Tie,vprop:Cie,vrtri:Eie,Vscr:Aie,vscr:Lie,vsubnE:Mie,vsubne:Nie,vsupnE:$ie,vsupne:Oie,Vvdash:Rie,vzigzag:Pie,Wcirc:Iie,wcirc:zie,wedbar:Die,wedge:Fie,Wedge:Hie,wedgeq:Bie,weierp:Wie,Wfr:qie,wfr:Uie,Wopf:jie,wopf:Vie,wp:Gie,wr:Kie,wreath:Xie,Wscr:Yie,wscr:Zie,xcap:Jie,xcirc:Qie,xcup:eoe,xdtri:toe,Xfr:noe,xfr:roe,xharr:ioe,xhArr:ooe,Xi:soe,xi:loe,xlarr:aoe,xlArr:coe,xmap:uoe,xnis:foe,xodot:doe,Xopf:hoe,xopf:poe,xoplus:goe,xotime:voe,xrarr:moe,xrArr:yoe,Xscr:boe,xscr:woe,xsqcup:xoe,xuplus:_oe,xutri:Soe,xvee:koe,xwedge:Toe,Yacute:Coe,yacute:Eoe,YAcy:Aoe,yacy:Loe,Ycirc:Moe,ycirc:Noe,Ycy:$oe,ycy:Ooe,yen:Roe,Yfr:Poe,yfr:Ioe,YIcy:zoe,yicy:Doe,Yopf:Foe,yopf:Hoe,Yscr:Boe,yscr:Woe,YUcy:qoe,yucy:Uoe,yuml:joe,Yuml:Voe,Zacute:Goe,zacute:Koe,Zcaron:Xoe,zcaron:Yoe,Zcy:Zoe,zcy:Joe,Zdot:Qoe,zdot:ese,zeetrf:tse,ZeroWidthSpace:nse,Zeta:rse,zeta:ise,zfr:ose,Zfr:sse,ZHcy:lse,zhcy:ase,zigrarr:cse,zopf:use,Zopf:fse,Zscr:dse,zscr:hse,zwj:pse,zwnj:gse},vse="Á",mse="á",yse="Â",bse="â",wse="´",xse="Æ",_se="æ",Sse="À",kse="à",Tse="&",Cse="&",Ese="Å",Ase="å",Lse="Ã",Mse="ã",Nse="Ä",$se="ä",Ose="¦",Rse="Ç",Pse="ç",Ise="¸",zse="¢",Dse="©",Fse="©",Hse="¤",Bse="°",Wse="÷",qse="É",Use="é",jse="Ê",Vse="ê",Gse="È",Kse="è",Xse="Ð",Yse="ð",Zse="Ë",Jse="ë",Qse="½",ele="¼",tle="¾",nle=">",rle=">",ile="Í",ole="í",sle="Î",lle="î",ale="¡",cle="Ì",ule="ì",fle="¿",dle="Ï",hle="ï",ple="«",gle="<",vle="<",mle="¯",yle="µ",ble="·",wle=" ",xle="¬",_le="Ñ",Sle="ñ",kle="Ó",Tle="ó",Cle="Ô",Ele="ô",Ale="Ò",Lle="ò",Mle="ª",Nle="º",$le="Ø",Ole="ø",Rle="Õ",Ple="õ",Ile="Ö",zle="ö",Dle="¶",Fle="±",Hle="£",Ble='"',Wle='"',qle="»",Ule="®",jle="®",Vle="§",Gle="­",Kle="¹",Xle="²",Yle="³",Zle="ß",Jle="Þ",Qle="þ",eae="×",tae="Ú",nae="ú",rae="Û",iae="û",oae="Ù",sae="ù",lae="¨",aae="Ü",cae="ü",uae="Ý",fae="ý",dae="¥",hae="ÿ",pae={Aacute:vse,aacute:mse,Acirc:yse,acirc:bse,acute:wse,AElig:xse,aelig:_se,Agrave:Sse,agrave:kse,amp:Tse,AMP:Cse,Aring:Ese,aring:Ase,Atilde:Lse,atilde:Mse,Auml:Nse,auml:$se,brvbar:Ose,Ccedil:Rse,ccedil:Pse,cedil:Ise,cent:zse,copy:Dse,COPY:Fse,curren:Hse,deg:Bse,divide:Wse,Eacute:qse,eacute:Use,Ecirc:jse,ecirc:Vse,Egrave:Gse,egrave:Kse,ETH:Xse,eth:Yse,Euml:Zse,euml:Jse,frac12:Qse,frac14:ele,frac34:tle,gt:nle,GT:rle,Iacute:ile,iacute:ole,Icirc:sle,icirc:lle,iexcl:ale,Igrave:cle,igrave:ule,iquest:fle,Iuml:dle,iuml:hle,laquo:ple,lt:gle,LT:vle,macr:mle,micro:yle,middot:ble,nbsp:wle,not:xle,Ntilde:_le,ntilde:Sle,Oacute:kle,oacute:Tle,Ocirc:Cle,ocirc:Ele,Ograve:Ale,ograve:Lle,ordf:Mle,ordm:Nle,Oslash:$le,oslash:Ole,Otilde:Rle,otilde:Ple,Ouml:Ile,ouml:zle,para:Dle,plusmn:Fle,pound:Hle,quot:Ble,QUOT:Wle,raquo:qle,reg:Ule,REG:jle,sect:Vle,shy:Gle,sup1:Kle,sup2:Xle,sup3:Yle,szlig:Zle,THORN:Jle,thorn:Qle,times:eae,Uacute:tae,uacute:nae,Ucirc:rae,ucirc:iae,Ugrave:oae,ugrave:sae,uml:lae,Uuml:aae,uuml:cae,Yacute:uae,yacute:fae,yen:dae,yuml:hae},gae="&",vae="'",mae=">",yae="<",bae='"',Sw={amp:gae,apos:vae,gt:mae,lt:yae,quot:bae};var gs={};const wae={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Mm;function xae(){if(Mm)return gs;Mm=1;var e=gs&&gs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(gs,"__esModule",{value:!0});var t=e(wae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return gs.default=o,gs}var Nm;function $m(){if(Nm)return br;Nm=1;var e=br&&br.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(br,"__esModule",{value:!0}),br.decodeHTML=br.decodeHTMLStrict=br.decodeXML=void 0;var t=e(_w),r=e(pae),o=e(Sw),s=e(xae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;br.decodeXML=f(o.default),br.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};br.decodeHTML=function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var w=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=h(t.default);function N(T){return T.substr(-1)!==";"&&(T+=";"),E(T)}return function(T){return String(T).replace(w,N)}}();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return br}var En={},Om;function Rm(){if(Om)return En;Om=1;var e=En&&En.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(En,"__esModule",{value:!0}),En.escapeUTF8=En.escape=En.encodeNonAsciiHTML=En.encodeHTML=En.encodeXML=void 0;var t=e(Sw),r=d(t.default),o=h(r);En.encodeXML=T(r);var s=e(_w),c=d(s.default),f=h(c);En.encodeHTML=b(c,f),En.encodeNonAsciiHTML=T(c);function d(L){return Object.keys(L).sort().reduce(function(A,R){return A[L[R]]="&"+R+";",A},{})}function h(L){for(var A=[],R=[],M=0,B=Object.keys(L);M<B.length;M++){var K=B[M];K.length===1?A.push("\\"+K):R.push(K)}A.sort();for(var j=0;j<A.length-1;j++){for(var ne=j;ne<A.length-1&&A[ne].charCodeAt(1)+1===A[ne+1].charCodeAt(1);)ne+=1;var te=1+ne-j;te<3||A.splice(j,te,A[j]+"-"+A[ne])}return R.unshift("["+A.join("")+"]"),new RegExp(R.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(L){return L.codePointAt(0)}:function(L){return(L.charCodeAt(0)-55296)*1024+L.charCodeAt(1)-56320+65536};function m(L){return"&#x"+(L.length>1?v(L):L.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(L,A){return function(R){return R.replace(A,function(M){return L[M]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(L){return L.replace(w,m)}En.escape=E;function N(L){return L.replace(o,m)}En.escapeUTF8=N;function T(L){return function(A){return A.replace(w,function(R){return L[R]||m(R)})}}return En}var Pm;function _ae(){return Pm||(Pm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=$m(),r=Rm();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Rm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=$m();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})}(nd)),nd}var rd,Im;function Sae(){if(Im)return rd;Im=1;function e(P,$){if(!(P instanceof $))throw new TypeError("Cannot call a class as a function")}function t(P,$){for(var O=0;O<$.length;O++){var S=$[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function r(P,$,O){return $&&t(P.prototype,$),P}function o(P,$){var O=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!O){if(Array.isArray(P)||(O=s(P))||$){O&&(P=O);var S=0,F=function(){};return{s:F,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(Pe){throw Pe},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V=!0,se=!1,me;return{s:function(){O=O.call(P)},n:function(){var Pe=O.next();return V=Pe.done,Pe},e:function(Pe){se=!0,me=Pe},f:function(){try{!V&&O.return!=null&&O.return()}finally{if(se)throw me}}}}function s(P,$){if(P){if(typeof P=="string")return c(P,$);var O=Object.prototype.toString.call(P).slice(8,-1);if(O==="Object"&&P.constructor&&(O=P.constructor.name),O==="Map"||O==="Set")return Array.from(P);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c(P,$)}}function c(P,$){($==null||$>P.length)&&($=P.length);for(var O=0,S=new Array($);O<$;O++)S[O]=P[O];return S}var f=_ae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return T(0,5).forEach(function($){T(0,5).forEach(function(O){T(0,5).forEach(function(S){return p($,O,S,P)})})}),T(0,23).forEach(function($){var O=$+232,S=v($*10+8);P[O]="#"+S+S+S}),P}function p(P,$,O,S){var F=16+P*36+$*6+O,V=P>0?P*40+55:0,se=$>0?$*40+55:0,me=O>0?O*40+55:0;S[F]=m([V,se,me])}function v(P){for(var $=P.toString(16);$.length<2;)$="0"+$;return $}function m(P){var $=[],O=o(P),S;try{for(O.s();!(S=O.n()).done;){var F=S.value;$.push(v(F))}}catch(V){O.e(V)}finally{O.f()}return"#"+$.join("")}function b(P,$,O,S){var F;return $==="text"?F=R(O,S):$==="display"?F=E(P,O,S):$==="xterm256Foreground"?F=K(P,S.colors[O]):$==="xterm256Background"?F=j(P,S.colors[O]):$==="rgb"&&(F=w(P,O)),F}function w(P,$){$=$.substring(2).slice(0,-1);var O=+$.substr(0,2),S=$.substring(5).split(";"),F=S.map(function(V){return("0"+Number(V).toString(16)).substr(-2)}).join("");return B(P,(O===38?"color:#":"background-color:#")+F)}function E(P,$,O){$=parseInt($,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&N(P)},1:function(){return M(P,"b")},3:function(){return M(P,"i")},4:function(){return M(P,"u")},8:function(){return B(P,"display:none")},9:function(){return M(P,"strike")},22:function(){return B(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ne(P,"i")},24:function(){return ne(P,"u")},39:function(){return K(P,O.fg)},49:function(){return j(P,O.bg)},53:function(){return B(P,"text-decoration:overline")}},F;return S[$]?F=S[$]():4<$&&$<7?F=M(P,"blink"):29<$&&$<38?F=K(P,O.colors[$-30]):39<$&&$<48?F=j(P,O.colors[$-40]):89<$&&$<98?F=K(P,O.colors[8+($-90)]):99<$&&$<108&&(F=j(P,O.colors[8+($-100)])),F}function N(P){var $=P.slice(0);return P.length=0,$.reverse().map(function(O){return"</"+O+">"}).join("")}function T(P,$){for(var O=[],S=P;S<=$;S++)O.push(S);return O}function L(P){return function($){return(P===null||$.category!==P)&&P!=="all"}}function A(P){P=parseInt(P,10);var $=null;return P===0?$="all":P===1?$="bold":2<P&&P<5?$="underline":4<P&&P<7?$="blink":P===8?$="hide":P===9?$="strike":29<P&&P<38||P===39||89<P&&P<98?$="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&($="background-color"),$}function R(P,$){return $.escapeXML?f.encodeXML(P):P}function M(P,$,O){return O||(O=""),P.push($),"<".concat($).concat(O?' style="'.concat(O,'"'):"",">")}function B(P,$){return M(P,"span",$)}function K(P,$){return M(P,"span","color:"+$)}function j(P,$){return M(P,"span","background-color:"+$)}function ne(P,$){var O;if(P.slice(-1)[0]===$&&(O=P.pop()),O)return"</"+$+">"}function te(P,$,O){var S=!1,F=3;function V(){return""}function se(H,X){return O("xterm256Foreground",X),""}function me(H,X){return O("xterm256Background",X),""}function _e(H){return $.newline?O("display",-1):O("text",H),""}function Pe(H,X){S=!0,X.trim().length===0&&(X="0"),X=X.trimRight(";").split(";");var ue=o(X),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;O("display",de)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function qe(H){return O("text",H),""}function Ze(H){return O("rgb",H),""}var Ke=[{pattern:/^\x08+/,sub:V},{pattern:/^\x1b\[[012]?K/,sub:V},{pattern:/^\x1b\[\(B/,sub:V},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ze},{pattern:/^\x1b\[38;5;(\d+)m/,sub:se},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:V},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:V},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:V},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:qe}];function Xe(H,X){X>F&&S||(S=!1,P=P.replace(H.pattern,H.sub))}var ee=[],D=P,Z=D.length;e:for(;Z>0;){for(var G=0,le=0,pe=Ke.length;le<pe;G=++le){var I=Ke[G];if(Xe(I,G),P.length!==Z){Z=P.length;continue e}}if(P.length===Z)break;ee.push(0),Z=P.length}return ee}function J(P,$,O){return $!=="text"&&(P=P.filter(L(A(O))),P.push({token:$,data:O,category:A(O)})),P}var re=function(){function P($){e(this,P),$=$||{},$.colors&&($.colors=Object.assign({},d.colors,$.colors)),this.options=Object.assign({},d,$),this.stack=[],this.stickyStack=[]}return r(P,[{key:"toHtml",value:function(O){var S=this;O=typeof O=="string"?[O]:O;var F=this.stack,V=this.options,se=[];return this.stickyStack.forEach(function(me){var _e=b(F,me.token,me.data,V);_e&&se.push(_e)}),te(O.join(""),V,function(me,_e){var Pe=b(F,me,_e,V);Pe&&se.push(Pe),V.stream&&(S.stickyStack=J(S.stickyStack,me,_e))}),F.length&&se.push(N(F)),se.join("")}}]),P}();return rd=re,rd}var kae=Sae();const Tae=xw(kae);function Cae(e,t){return t&&e.endsWith(t)}async function kw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function jh(e){return new Tae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Eae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Tw(e){let t=e;if(Eae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=YA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var er=Uint8Array,xs=Uint16Array,Aae=Int32Array,Cw=new er([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ew=new er([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Lae=new er([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Aw=function(e,t){for(var r=new xs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Aae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Lw=Aw(Cw,2),Mw=Lw.b,Mae=Lw.r;Mw[28]=258,Mae[258]=28;var Nae=Aw(Ew,0),$ae=Nae.b,Vd=new xs(32768);for(var At=0;At<32768;++At){var Ii=(At&43690)>>1|(At&21845)<<1;Ii=(Ii&52428)>>2|(Ii&13107)<<2,Ii=(Ii&61680)>>4|(Ii&3855)<<4,Vd[At]=((Ii&65280)>>8|(Ii&255)<<8)>>1}var Fl=function(e,t,r){for(var o=e.length,s=0,c=new xs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new xs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new xs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Vd[m]>>h]=p}else for(d=new xs(o),s=0;s<o;++s)e[s]&&(d[s]=Vd[f[e[s]-1]++]>>15-e[s]);return d},ka=new er(288);for(var At=0;At<144;++At)ka[At]=8;for(var At=144;At<256;++At)ka[At]=9;for(var At=256;At<280;++At)ka[At]=7;for(var At=280;At<288;++At)ka[At]=8;var Nw=new er(32);for(var At=0;At<32;++At)Nw[At]=5;var Oae=Fl(ka,9,1),Rae=Fl(Nw,5,1),id=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},wr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},od=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Pae=function(e){return(e+7)/8|0},$w=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new er(e.subarray(t,r))},Iae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Wn=function(e,t,r){var o=new Error(t||Iae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Wn),!r)throw o;return o},Vh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new er(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new er(s*3));var p=function(pe){var I=r.length;if(pe>I){var H=new er(Math.max(I*2,pe));H.set(r),r=H}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,E=t.d,N=t.m,T=t.n,L=s*8;do{if(!w){v=wr(e,m,1);var A=wr(e,m+1,3);if(m+=3,A)if(A==1)w=Oae,E=Rae,N=9,T=5;else if(A==2){var K=wr(e,m,31)+257,j=wr(e,m+10,15)+4,ne=K+wr(e,m+5,31)+1;m+=14;for(var te=new er(ne),J=new er(19),re=0;re<j;++re)J[Lae[re]]=wr(e,m+re*3,7);m+=j*3;for(var P=id(J),$=(1<<P)-1,O=Fl(J,P,1),re=0;re<ne;){var S=O[wr(e,m,$)];m+=S&15;var R=S>>4;if(R<16)te[re++]=R;else{var F=0,V=0;for(R==16?(V=3+wr(e,m,3),m+=2,F=te[re-1]):R==17?(V=3+wr(e,m,7),m+=3):R==18&&(V=11+wr(e,m,127),m+=7);V--;)te[re++]=F}}var se=te.subarray(0,K),me=te.subarray(K);N=id(se),T=id(me),w=Fl(se,N,1),E=Fl(me,T,1)}else Wn(1);else{var R=Pae(m)+4,M=e[R-4]|e[R-3]<<8,B=R+M;if(B>s){h&&Wn(0);break}d&&p(b+M),r.set(e.subarray(R,B),b),t.b=b+=M,t.p=m=B*8,t.f=v;continue}if(m>L){h&&Wn(0);break}}d&&p(b+131072);for(var _e=(1<<N)-1,Pe=(1<<T)-1,qe=m;;qe=m){var F=w[od(e,m)&_e],Ze=F>>4;if(m+=F&15,m>L){h&&Wn(0);break}if(F||Wn(2),Ze<256)r[b++]=Ze;else if(Ze==256){qe=m,w=null;break}else{var Ke=Ze-254;if(Ze>264){var re=Ze-257,Xe=Cw[re];Ke=wr(e,m,(1<<Xe)-1)+Mw[re],m+=Xe}var ee=E[od(e,m)&Pe],D=ee>>4;ee||Wn(3),m+=ee&15;var me=$ae[D];if(D>3){var Xe=Ew[D];me+=od(e,m)&(1<<Xe)-1,m+=Xe}if(m>L){h&&Wn(0);break}d&&p(b+131072);var Z=b+Ke;if(b<me){var G=c-me,le=Math.min(me,Z);for(G+b<0&&Wn(3);b<le;++b)r[b]=o[G+b]}for(;b<Z;++b)r[b]=r[b-me]}}t.l=w,t.p=qe,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=E,t.n=T)}while(!v);return b!=r.length&&f?$w(r,0,b):r.subarray(0,b)},zae=new er(0),Dae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Wn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Fae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Hae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Wn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Wn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Bae(e,t){return Vh(e,{i:2},t,t)}function Wae(e,t){var r=Dae(e);return r+8>e.length&&Wn(6,"invalid gzip data"),Vh(e.subarray(r,-8),{i:2},new er(Fae(e)),t)}function qae(e,t){return Vh(e.subarray(Hae(e),-4),{i:2},t,t)}function Uae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Wae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Bae(e,t):qae(e,t)}var Gd=typeof TextDecoder<"u"&&new TextDecoder,jae=0;try{Gd.decode(zae,{stream:!0}),jae=1}catch{}var Vae=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:$w(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Gae(e,t){var r;if(Gd)return Gd.decode(e);var o=Vae(e),s=o.s,r=o.r;return r.length&&Wn(8),s}const sd=()=>{},pn=()=>Promise.resolve();function Kae(){const e=tr({state:new Ub,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=tr(e.state.filesMap),e.state.idMap=tr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:pn,onDone:sd,onTaskUpdate:sd,writeFile:pn,rerun:pn,rerunTask:pn,updateSnapshot:pn,resolveSnapshotPath:pn,snapshotSaved:pn,onAfterSuiteRun:pn,onCancel:pn,getCountOfFailedTests:()=>0,sendLog:pn,resolveSnapshotRawPath:pn,readSnapshotFile:pn,saveSnapshotFile:pn,readTestFile:async d=>t.sources[d],removeSnapshotFile:pn,onUnhandledError:sd,saveTestFile:pn,getProvidedContext:()=>({}),getTestFiles:pn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=Gae(Uae(m));t=Fd(b)}else t=Fd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return Er?Kae():jC(nA,{reactive:(t,r)=>r==="state"?tr(t):tn(t),handlers:{onTaskUpdate(t){Me.resumeRun(t),Iu.value="running"},onFinished(t,r){Me.endRun(),qi.value=(r||[]).map(Tw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Du=tn({}),Ao=Ue("CONNECTING"),Jt=Se(()=>{const e=to.value;return e?cr(e):void 0}),Ow=Se(()=>zh(Jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function cr(e){const t=mt.state.idMap.get(e);return t||void 0}const Xae=Se(()=>Ao.value==="OPEN"),ld=Se(()=>Ao.value==="CONNECTING");Se(()=>Ao.value==="CLOSED");function Yae(){return Gh(mt.state.getFiles())}function Rw(e){delete e.result;const t=Me.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,_a(e)))for(const r of e.tasks)Rw(r)}function Zae(e){const t=Me.nodes;e.forEach(r=>{delete r.result,zh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,On(o)&&(o.collectDuration=void 0))})}function Gh(e){return Zae(e),Me.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function Jae(e){return Rw(e),Me.startRun(),mt.rpc.rerunTask(e.id)}const Io=window.__vitest_browser_runner__;window.__vitest_ui_api__=QE;xt(()=>mt.ws,e=>{Ao.value=Er?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Ao.value="OPEN",mt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([mt.rpc.getFiles(),mt.rpc.getConfig(),mt.rpc.getUnhandledErrors(),mt.rpc.getResolvedProjectNames()]);r.standalone&&(t=(await mt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Pb(h,d,f);return p.mode="skip",p})),Me.loadFiles(t,s),mt.state.collectFiles(t),Me.startRun(),qi.value=(o||[]).map(Tw),Du.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Ao.value==="CONNECTING"&&(Ao.value="CLOSED")},1e3)})},{immediate:!0});const Qae={"text-2xl":""},ece={"text-lg":"",op50:""},tce=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>U(Xae)?Ye("",!0):(ce(),xe("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>U(mt).reconnect&&U(mt).reconnect(...o))},[ie("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(U(ld)?"animate-pulse":"")},[ie("div",{text:"5xl",class:it(U(ld)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ie("div",Qae,Be(U(ld)?"Connecting...":"Disconnected"),1),ie("div",ece," Check your terminal or start a new server with `"+Be(U(Io)?`vitest --browser=${U(Io).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),nce=["aria-label","opacity","disabled","hover"],wi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ce(),xe("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:it(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[bn(t.$slots,"default",{},()=>[ie("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,nce))}}),rce={h:"full",flex:"~ col"},ice={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},oce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},sce={class:"pointer-events-none","text-sm":""},lce={key:0},ace={id:"tester-container",relative:""},cce=["data-scale"],zm=20,uce=100,fce=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Br.value[0]===v[0]&&Br.value[1]===v[1]}async function o(p){Br.value=t[p]}const{width:s,height:c}=Bh(),f=Se(()=>{const m=s.value*(yn.details.size/100)*(yn.details.browser/100)-zm,b=c.value-uce;return{width:m,height:b}}),d=Se(()=>{const[p,v]=Br.value,{width:m,height:b}=f.value,w=m>p?1:m/p,E=b>v?1:b/v;return Math.min(1,w,E)}),h=Se(()=>{const p=f.value.width,v=Br.value[0];return`${Math.trunc((p+zm-v)/2)}px`});return(p,v)=>{const m=wi,b=Xr("tooltip");return ce(),xe("div",rce,[ie("div",ice,[gt(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>U(JE)())},null,512),[[Vi,U(yn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ie("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),gt(Oe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>U(YE)())},null,512),[[Vi,U(yn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>U(ZE)())},null,512),[[Vi,U(yn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),ie("div",oce,[gt(Oe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),ie("span",sce,[pt(Be(U(Br)[0])+"x"+Be(U(Br)[1])+"px ",1),U(d)<1?(ce(),xe("span",lce,"("+Be((U(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),ie("div",ace,[ie("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":U(d),style:en({"--viewport-width":`${U(Br)[0]}px`,"--viewport-height":`${U(Br)[1]}px`,"--tester-transform":`scale(${U(d)})`,"--tester-margin-left":U(h)})}," Select a test to run ",12,cce)])])}}}),dce=bi(fce,[["__scopeId","data-v-65565204"]]),Pw=ut({__name:"Modal",props:Gl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Tu(e,"modelValue"),r=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ce(),xe("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ie("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ie("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:en(t.value?{}:{transform:U(o)})},[bn(c.$slots,"default")],6)],2))}}),hce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},pce={"p-4":"",relative:"",border:"base b"},gce={op50:"","font-mono":"","text-sm":""},vce={op50:"","font-mono":"","text-sm":""},mce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},yce=["src","alt"],bce={key:1},wce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Jb("Escape",()=>{r("close")}),(o,s)=>{const c=wi;return ce(),xe("div",hce,[ie("div",pce,[s[1]||(s[1]=ie("p",null,"Screenshot error",-1)),ie("p",gce,Be(o.file),1),ie("p",vce,Be(o.name),1),Oe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),ie("div",mce,[o.url?(ce(),xe("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,yce)):(ce(),xe("div",bce," Something was wrong, the image cannot be resolved. "))])])}}}),xce=bi(wce,[["__scopeId","data-v-93900314"]]);function Hl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const Ta=pE(),_ce=JC(Ta),Sce={class:"scrolls scrolls-rounded task-error"},kce=["onClickPassive"],Tce=["innerHTML"],Cce=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Se(()=>jh(Ta.value)),s=Se(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Se(()=>t.error.diff?o.value.toHtml(Hl(t.error.diff)):void 0);return(f,d)=>{const h=Xr("tooltip");return ce(),xe("div",Sce,[ie("pre",null,[ie("b",null,Be(f.error.name||f.error.nameStr),1),pt(": "+Be(f.error.message),1)]),(ce(!0),xe(ct,null,pi(f.error.stacks,(p,v)=>(ce(),xe("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ie("pre",null," - "+Be(r(p.file))+":"+Be(p.line)+":"+Be(p.column),1),U(Cae)(p.file,f.filename)?gt((ce(),xe("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:m=>U(kw)(p.file,p.line,p.column)},null,40,kce)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),U(s)?(ce(),xe("pre",{key:0,"data-testid":"diff",innerHTML:U(c)},null,8,Tce)):Ye("",!0)])}}}),Ece=bi(Cce,[["__scopeId","data-v-9dd6eaea"]]),Ace={"h-full":"",class:"scrolls"},Lce=["id"],Mce={flex:"~ gap-2 items-center"},Nce={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},$ce=["innerHTML"],Oce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Rce=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(N=>r(N,w+1))]}function o(b,w){var T,L,A;let E="";(T=w.message)!=null&&T.includes("\x1B")&&(E=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Hl(w.message))}`);const N=(L=w.stackStr)==null?void 0:L.includes("\x1B");return(N||(A=w.stack)!=null&&A.includes("\x1B"))&&(E.length>0?E+=b.toHtml(Hl(N?w.stackStr:w.stack)):E=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Hl(N?w.stackStr:w.stack))}`),E.length>0?E:null}function s(b,w){const E=jh(b);return w.map(N=>{var A;const T=N.result;if(!T)return N;const L=(A=T.errors)==null?void 0:A.map(R=>o(E,R)).filter(R=>R!=null).join("<br><br>");return L!=null&&L.length&&(T.htmlError=L),N})}const c=Se(()=>{var T,L;const b=t.file,w=((T=b==null?void 0:b.tasks)==null?void 0:T.flatMap(A=>r(A,0)))??[],E=b==null?void 0:b.result;if((L=E==null?void 0:E.errors)==null?void 0:L[0]){const A={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};w.unshift(A)}return w.length>0?s(Ta.value,w):w});function f(b){var E;const w=(E=b.meta)==null?void 0:E.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=Ue(!1),h=Ue(Date.now()),p=Ue(),v=Se(()=>{var E;const b=(E=p.value)==null?void 0:E.id,w=h.value;return b?`/__screenshot-error?id=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return xt(()=>[hw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Tt(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const E=wi,N=Ece,T=xce,L=Pw,A=Xr("tooltip");return ce(),xe("div",Ace,[U(c).length?(ce(!0),xe(ct,{key:0},pi(U(c),R=>{var M,B,K,j;return ce(),xe("div",{id:R.id,key:R.id},[ie("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:en({"margin-left":`${(M=R.result)!=null&&M.htmlError?.5:2*R.level+.5}rem`})},[ie("div",Mce,[ie("span",null,Be(R.name),1),U(Io)&&((B=R.meta)!=null&&B.failScreenshotPath)?(ce(),xe(ct,{key:0},[gt(Oe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ne=>m(R)},null,8,["onClick"]),[[A,"View screenshot error",void 0,{bottom:!0}]]),gt(Oe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ne=>f(R)},null,8,["onClick"]),[[A,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(K=R.result)!=null&&K.htmlError?(ce(),xe("div",Nce,[ie("pre",{innerHTML:R.result.htmlError},null,8,$ce)])):(j=R.result)!=null&&j.errors?(ce(!0),xe(ct,{key:1},pi(R.result.errors,(ne,te)=>{var J;return ce(),nt(N,{key:te,error:ne,filename:(J=b.file)==null?void 0:J.name,root:U(Du).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)],8,Lce)}),128)):(ce(),xe("div",Oce," All tests passed in this file ")),U(Io)?(ce(),nt(L,{key:2,modelValue:U(d),"onUpdate:modelValue":w[1]||(w[1]=R=>Ct(d)?d.value=R:null),direction:"right"},{default:rt(()=>[U(p)?(ce(),nt(Zy,{key:0},{default:rt(()=>[Oe(T,{file:U(p).file.filepath,name:U(p).name,url:U(v),onClose:w[0]||(w[0]=R=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),Pce=bi(Rce,[["__scopeId","data-v-013fc3c6"]]),Ice={border:"b base","p-4":""},zce=["innerHTML"],Dce=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ce(),xe("div",Ice,[ie("div",{"text-xs":"","mb-1":"",class:it(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Be(t(r.time))+" | "+Be(r.taskName)+" | "+Be(r.type),3),ie("pre",{"data-type":"html",innerHTML:r.content},null,8,zce)]))}}),Fce={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Hce={key:1,p6:""},Bce=ut({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const o=Ow.value;if(o){const s=jh(Ta.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Hl(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?NC(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Dce;return(f=U(t))!=null&&f.length?(ce(),xe("div",Fce,[(ce(!0),xe(ct,null,pi(U(t),({taskId:d,type:h,time:p,content:v})=>(ce(),xe("div",{key:d,"font-mono":""},[Oe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(ce(),xe("p",Hce,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),ie("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Nc={exports:{}},Wce=Nc.exports,Dm;function Ws(){return Dm||(Dm=1,function(e,t){(function(r,o){e.exports=o()})(Wce,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),N=/Apple Computer/.test(navigator.vendor),T=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),A=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),M=A||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=A||/Mac/.test(o),K=/\bCrOS\b/.test(r),j=/win/i.test(o),ne=E&&r.match(/Version\/(\d*\.\d*)/);ne&&(ne=Number(ne[1])),ne&&ne>=15&&(E=!1,v=!0);var te=B&&(m||E&&(ne==null||ne<12.11)),J=s||h&&p>=9;function re(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var P=function(n,i){var a=n.className,l=re(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function $(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return $(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function F(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function se(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function me(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function _e(n,i){var a=n.className;re(i).test(a)||(n.className+=(a?" ":"")+i)}function Pe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!re(a[l]).test(i)&&(i+=" "+a[l]);return i}var qe=function(n){n.select()};A?qe=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(qe=function(n){try{n.select()}catch{}});function Ze(n){return n.display.wrapper.ownerDocument}function Ke(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function ee(n){return Ze(n).defaultView}function D(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Z(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function G(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,H={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ve(Ce)+" ");return Ce[n]}function ve(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ne(){}function ze(n,i){var a;return Object.create?a=Object.create(n):(Ne.prototype=n,a=new Ne),i&&Z(i,a),a}var je=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||je.test(n))}function ot(n,i){return i?i.source.indexOf("\\w")>-1&&tt(n)?!0:i.test(n):tt(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function st(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function jt(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function Ft(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function In(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Rr=null;function zt(n,i,a){var l;Rr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Rr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Rr=u)}return l??Rr}var zn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function _(k,z,q){this.level=k,this.from=z,this.to=q}return function(k,z){var q=z=="ltr"?"L":"R";if(k.length==0||z=="ltr"&&!l.test(k))return!1;for(var Q=k.length,Y=[],ae=0;ae<Q;++ae)Y.push(a(k.charCodeAt(ae)));for(var ge=0,we=q;ge<Q;++ge){var ke=Y[ge];ke=="m"?Y[ge]=we:we=ke}for(var Le=0,Te=q;Le<Q;++Le){var $e=Y[Le];$e=="1"&&Te=="r"?Y[Le]="n":g.test($e)&&(Te=$e,$e=="r"&&(Y[Le]="R"))}for(var Fe=1,Ie=Y[0];Fe<Q-1;++Fe){var Je=Y[Fe];Je=="+"&&Ie=="1"&&Y[Fe+1]=="1"?Y[Fe]="1":Je==","&&Ie==Y[Fe+1]&&(Ie=="1"||Ie=="n")&&(Y[Fe]=Ie),Ie=Je}for(var _t=0;_t<Q;++_t){var Yt=Y[_t];if(Yt==",")Y[_t]="N";else if(Yt=="%"){var Lt=void 0;for(Lt=_t+1;Lt<Q&&Y[Lt]=="%";++Lt);for(var Hn=_t&&Y[_t-1]=="!"||Lt<Q&&Y[Lt]=="1"?"1":"N",kn=_t;kn<Lt;++kn)Y[kn]=Hn;_t=Lt-1}}for(var Ht=0,Tn=q;Ht<Q;++Ht){var rn=Y[Ht];Tn=="L"&&rn=="1"?Y[Ht]="L":g.test(rn)&&(Tn=rn)}for(var qt=0;qt<Q;++qt)if(u.test(Y[qt])){var Bt=void 0;for(Bt=qt+1;Bt<Q&&u.test(Y[Bt]);++Bt);for(var Pt=(qt?Y[qt-1]:q)=="L",Cn=(Bt<Q?Y[Bt]:q)=="L",fs=Pt==Cn?Pt?"L":"R":q,Oi=qt;Oi<Bt;++Oi)Y[Oi]=fs;qt=Bt-1}for(var cn=[],Fr,Zt=0;Zt<Q;)if(y.test(Y[Zt])){var Df=Zt;for(++Zt;Zt<Q&&y.test(Y[Zt]);++Zt);cn.push(new _(0,Df,Zt))}else{var ii=Zt,yo=cn.length,bo=z=="rtl"?1:0;for(++Zt;Zt<Q&&Y[Zt]!="L";++Zt);for(var hn=ii;hn<Zt;)if(x.test(Y[hn])){ii<hn&&(cn.splice(yo,0,new _(1,ii,hn)),yo+=bo);var ds=hn;for(++hn;hn<Zt&&x.test(Y[hn]);++hn);cn.splice(yo,0,new _(2,ds,hn)),yo+=bo,ii=hn}else++hn;ii<Zt&&cn.splice(yo,0,new _(1,ii,Zt))}return z=="ltr"&&(cn[0].level==1&&(Fr=k.match(/^\s+/))&&(cn[0].from=Fr[0].length,cn.unshift(new _(0,0,Fr[0].length))),ve(cn).level==1&&(Fr=k.match(/\s+$/))&&(ve(cn).to-=Fr[0].length,cn.push(new _(0,Q-Fr[0].length,Q)))),z=="rtl"?cn.reverse():cn}}();function et(n,i){var a=n.order;return a==null&&(a=n.order=zn(n.text,i)),a}var La=[],De=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||La).concat(a)}};function Zr(n,i){return n._handlers&&n._handlers[i]||La}function sn(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function $t(n,i){var a=Zr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Ot(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),$t(n,a||i.type,n,i),wn(i)||i.codemirrorIgnore}function ir(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)pe(a,i[l])==-1&&a.push(i[l])}function Dn(n,i){return Zr(n,i).length>0}function ur(n){n.prototype.on=function(i,a){De(this,i,a)},n.prototype.off=function(i,a){sn(this,i,a)}}function ln(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Ho(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function wn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function xi(n){ln(n),Ho(n)}function qs(n){return n.target||n.srcElement}function fr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var Uu=function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n}(),Bo;function Ma(n){if(Bo==null){var i=S("span","​");O(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Bo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Bo?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Us;function _i(n){if(Us!=null)return Us;var i=O(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return $(n),!a||a.left==a.right?!1:Us=l.right-a.right<3}var or=`
22
-
23
- b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
24
- `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Si=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Na=function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),dr=null;function ju(n){if(dr!=null)return dr;var i=O(n,S("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return dr=Math.abs(a.left-l.left)>1}var Wo={},hr={};function pr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Wo[n]=i}function ao(n,i){hr[n]=i}function qo(n){if(typeof n=="string"&&hr.hasOwnProperty(n))n=hr[n];else if(n&&typeof n.name=="string"&&hr.hasOwnProperty(n.name)){var i=hr[n.name];typeof i=="string"&&(i={name:i}),n=ze(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Uo(n,i){i=qo(i);var a=Wo[i.name];if(!a)return Uo(n,"text/plain");var l=a(n,i);if(ki.hasOwnProperty(i.name)){var u=ki[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var ki={};function jo(n,i){var a=ki.hasOwnProperty(n)?ki[n]:ki[n]={};Z(i,a)}function Pr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function js(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Vo(n,i,a){return n.startState?n.startState(i,a):!0}var Rt=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},Rt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Rt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Rt.prototype.backUp=function(n){this.pos-=n},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=G(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return G(this.string,null,this.tabSize)-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Rt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Rt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Re(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Jr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function Vs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Xn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=pe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function W(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],_=x.height;if(i<_)break;i-=_}return a+y}function fe(n,i){return i>=n.first&&i<n.first+n.size}function be(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function oe(n,i,a){if(a===void 0&&(a=null),!(this instanceof oe))return new oe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ae(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Ae(n,i)==0}function Vt(n){return oe(n.line,n.ch)}function xn(n,i){return Ae(n,i)<0?i:n}function Go(n,i){return Ae(n,i)<0?n:i}function cp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ge(n,i){if(i.line<n.first)return oe(n.first,0);var a=n.first+n.size-1;return i.line>a?oe(a,Re(n,a).text.length):H1(i,Re(n,i.line).text.length)}function H1(n,i){var a=n.ch;return a==null||a>i?oe(n.line,i):a<0?oe(n.line,0):n}function up(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var $a=function(n,i){this.state=n,this.lookAhead=i},Ir=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Ir.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Ir.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Ir.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ir.fromSaved=function(n,i,a){return i instanceof $a?new Ir(n,Pr(n.mode,i.state),a,i.lookAhead):new Ir(n,Pr(n.mode,i),a)},Ir.prototype.save=function(n){var i=n!==!1?Pr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new $a(i,this.maxLookAhead):i};function fp(n,i,a,l){var u=[n.state.modeGen],g={};mp(n,i.text,n.doc.mode,a,function(k,z){return u.push(k,z)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var z=n.state.overlays[k],q=1,Q=0;a.state=!0,mp(n,i.text,z.mode,a,function(Y,ae){for(var ge=q;Q<Y;){var we=u[q];we>Y&&u.splice(q,1,Y,u[q+1],we),q+=2,Q=Math.min(Y,we)}if(ae)if(z.opaque)u.splice(ge,q-ge,Y,"overlay "+ae),q=ge+2;else for(;ge<q;ge+=2){var ke=u[ge+1];u[ge+1]=(ke?ke+" ":"")+"overlay "+ae}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)x(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function dp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Gs(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Pr(n.doc.mode,l.state),g=fp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Gs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Ir(l,!0,i);var g=B1(n,i,a),y=g>l.first&&Re(l,g-1).stateAfter,x=y?Ir.fromSaved(l,y,g):new Ir(l,Vo(l.mode),g);return l.iter(g,i,function(_){Vu(n,_.text,x);var k=x.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Vu(n,i,a,l){var u=n.doc.mode,g=new Rt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&hp(u,a.state);!g.eol();)Gu(u,g,a.state),g.start=g.pos}function hp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=js(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Gu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=js(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var pp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function gp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ge(u,i);var x=Re(u,i.line),_=Gs(n,i.line,a),k=new Rt(x.text,n.options.tabSize,_),z;for(l&&(z=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=Gu(g,k,_.state),l&&z.push(new pp(k,y,Pr(u.mode,_.state)));return l?z:new pp(k,y,_.state)}function vp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function mp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var _=0,k=null,z=new Rt(i,n.options.tabSize,l),q,Q=n.options.addModeClass&&[null];for(i==""&&vp(hp(a,l.state),g);!z.eol();){if(z.pos>n.options.maxHighlightLength?(x=!1,y&&Vu(n,i,l,z.pos),z.pos=i.length,q=null):q=vp(Gu(a,z,l.state,Q),g),Q){var Y=Q[0].name;Y&&(q="m-"+(q?Y+" "+q:Y))}if(!x||k!=q){for(;_<z.start;)_=Math.min(z.start,_+5e3),u(_,k);k=q}z.start=z.pos}for(;_<z.pos;){var ae=Math.min(z.pos,_+5e3);u(ae,k),_=ae}}function B1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var _=Re(g,x-1),k=_.stateAfter;if(k&&(!a||x+(k instanceof $a?k.lookAhead:0)<=g.modeFrontier))return x;var z=G(_.text,null,n.options.tabSize);(u==null||l>z)&&(u=x-1,l=z)}return u}function W1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Re(n,l).stateAfter;if(u&&(!(u instanceof $a)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var yp=!1,Qr=!1;function q1(){yp=!0}function U1(){Qr=!0}function Oa(n,i,a){this.marker=n,this.from=i,this.to=a}function Ks(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function j1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function V1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function G1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Oa(y,g.from,_?null:g.to))}}return l}function K1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Oa(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Ku(n,i){if(i.full)return null;var a=fe(n,i.from.line)&&Re(n,i.from.line).markedSpans,l=fe(n,i.to.line)&&Re(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ae(i.from,i.to)==0,x=G1(a,u,y),_=K1(l,g,y),k=i.text.length==1,z=ve(i.text).length+(k?u:0);if(x)for(var q=0;q<x.length;++q){var Q=x[q];if(Q.to==null){var Y=Ks(_,Q.marker);Y?k&&(Q.to=Y.to==null?null:Y.to+z):Q.to=u}}if(_)for(var ae=0;ae<_.length;++ae){var ge=_[ae];if(ge.to!=null&&(ge.to+=z),ge.from==null){var we=Ks(x,ge.marker);we||(ge.from=z,k&&(x||(x=[])).push(ge))}else ge.from+=z,k&&(x||(x=[])).push(ge)}x&&(x=bp(x)),_&&_!=x&&(_=bp(_));var ke=[x];if(!k){var Le=i.text.length-2,Te;if(Le>0&&x)for(var $e=0;$e<x.length;++$e)x[$e].to==null&&(Te||(Te=[])).push(new Oa(x[$e].marker,null,null));for(var Fe=0;Fe<Le;++Fe)ke.push(Te);ke.push(_)}return ke}function bp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function X1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Y){if(Y.markedSpans)for(var ae=0;ae<Y.markedSpans.length;++ae){var ge=Y.markedSpans[ae].marker;ge.readOnly&&(!l||pe(l,ge)==-1)&&(l||(l=[])).push(ge)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),_=0;_<u.length;++_){var k=u[_];if(!(Ae(k.to,x.from)<0||Ae(k.from,x.to)>0)){var z=[_,1],q=Ae(k.from,x.from),Q=Ae(k.to,x.to);(q<0||!y.inclusiveLeft&&!q)&&z.push({from:k.from,to:x.from}),(Q>0||!y.inclusiveRight&&!Q)&&z.push({from:x.to,to:k.to}),u.splice.apply(u,z),_+=z.length-3}}return u}function wp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function xp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ra(n){return n.inclusiveLeft?-1:0}function Pa(n){return n.inclusiveRight?1:0}function Xu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ae(l.from,u.from)||Ra(n)-Ra(i);if(g)return-g;var y=Ae(l.to,u.to)||Pa(n)-Pa(i);return y||i.id-n.id}function _p(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Xu(l,u.marker)<0)&&(l=u.marker);return l}function Sp(n){return _p(n,!0)}function Ia(n){return _p(n,!1)}function Y1(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Xu(l,g.marker)<0)&&(l=g.marker)}return l}function kp(n,i,a,l,u){var g=Re(n,i),y=Qr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var _=y[x];if(_.marker.collapsed){var k=_.marker.find(0),z=Ae(k.from,a)||Ra(_.marker)-Ra(u),q=Ae(k.to,l)||Pa(_.marker)-Pa(u);if(!(z>=0&&q<=0||z<=0&&q>=0)&&(z<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.to,a)>=0:Ae(k.to,a)>0)||z>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.from,l)<=0:Ae(k.from,l)<0)))return!0}}}function gr(n){for(var i;i=Sp(n);)n=i.find(-1,!0).line;return n}function Z1(n){for(var i;i=Ia(n);)n=i.find(1,!0).line;return n}function J1(n){for(var i,a;i=Ia(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Yu(n,i){var a=Re(n,i),l=gr(a);return a==l?i:C(l)}function Tp(n,i){if(i>n.lastLine())return i;var a=Re(n,i),l;if(!Ti(n,a))return i;for(;l=Ia(a);)a=l.find(1,!0).line;return C(a)+1}function Ti(n,i){var a=Qr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Zu(n,i,l))return!0}}}function Zu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Zu(n,l.line,Ks(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Zu(n,i,u))return!0}function ei(n){n=gr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function za(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Sp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Ia(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Ju(n){var i=n.display,a=n.doc;i.maxLine=Re(a,a.first),i.maxLineLength=za(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=za(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Ko=function(n,i,a){this.text=n,xp(this,i),this.height=a?a(this):1};Ko.prototype.lineNo=function(){return C(this)},ur(Ko);function Q1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),wp(n),xp(n,a);var u=l?l(n):1;u!=n.height&&Xn(n,u)}function ex(n){n.parent=null,wp(n)}var tx={},nx={};function Cp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?nx:tx;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ep(n,i){var a=F("span",null,null,v?"padding-right: .1px":null),l={pre:F("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=ix,_i(n.display.measure)&&(y=et(g,n.doc.direction))&&(l.addToken=sx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);lx(g,l,dp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Pe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Pe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ma(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return $t(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Pe(l.pre.className,l.textClass||"")),l}function rx(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ix(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?ox(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,z;if(!_.test(i))n.col+=i.length,z=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,z),h&&p<9&&(k=!0),n.pos+=i.length;else{z=document.createDocumentFragment();for(var q=0;;){_.lastIndex=q;var Q=_.exec(i),Y=Q?Q.index-q:i.length-q;if(Y){var ae=document.createTextNode(x.slice(q,q+Y));h&&p<9?z.appendChild(S("span",[ae])):z.appendChild(ae),n.map.push(n.pos,n.pos+Y,ae),n.col+=Y,n.pos+=Y}if(!Q)break;q+=Y+1;var ge=void 0;if(Q[0]==" "){var we=n.cm.options.tabSize,ke=we-n.col%we;ge=z.appendChild(S("span",Ee(ke),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),n.col+=ke}else Q[0]=="\r"||Q[0]==`
25
- `?(ge=z.appendChild(S("span",Q[0]=="\r"?"␍":"␤","cm-invalidchar")),ge.setAttribute("cm-text",Q[0]),n.col+=1):(ge=n.cm.options.specialCharPlaceholder(Q[0]),ge.setAttribute("cm-text",Q[0]),h&&p<9?z.appendChild(S("span",[ge])):z.appendChild(ge),n.col+=1);n.map.push(n.pos,n.pos+1,ge),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Le=a||"";l&&(Le+=l),u&&(Le+=u);var Te=S("span",[z],Le,g);if(y)for(var $e in y)y.hasOwnProperty($e)&&$e!="style"&&$e!="class"&&Te.setAttribute($e,y[$e]);return n.content.appendChild(Te)}n.content.appendChild(z)}}function ox(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function sx(n,i){return function(a,l,u,g,y,x,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,z=k+l.length;;){for(var q=void 0,Q=0;Q<i.length&&(q=i[Q],!(q.to>k&&q.from<=k));Q++);if(q.to>=z)return n(a,l,u,g,y,x,_);n(a,l.slice(0,q.to-k),u,g,null,x,_),g=null,l=l.slice(q.to-k),k=q.to}}}function Ap(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function lx(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Cp(a[y+1],i.cm.options));return}for(var x=u.length,_=0,k=1,z="",q,Q,Y=0,ae,ge,we,ke,Le;;){if(Y==_){ae=ge=we=Q="",Le=null,ke=null,Y=1/0;for(var Te=[],$e=void 0,Fe=0;Fe<l.length;++Fe){var Ie=l[Fe],Je=Ie.marker;if(Je.type=="bookmark"&&Ie.from==_&&Je.widgetNode)Te.push(Je);else if(Ie.from<=_&&(Ie.to==null||Ie.to>_||Je.collapsed&&Ie.to==_&&Ie.from==_)){if(Ie.to!=null&&Ie.to!=_&&Y>Ie.to&&(Y=Ie.to,ge=""),Je.className&&(ae+=" "+Je.className),Je.css&&(Q=(Q?Q+";":"")+Je.css),Je.startStyle&&Ie.from==_&&(we+=" "+Je.startStyle),Je.endStyle&&Ie.to==Y&&($e||($e=[])).push(Je.endStyle,Ie.to),Je.title&&((Le||(Le={})).title=Je.title),Je.attributes)for(var _t in Je.attributes)(Le||(Le={}))[_t]=Je.attributes[_t];Je.collapsed&&(!ke||Xu(ke.marker,Je)<0)&&(ke=Ie)}else Ie.from>_&&Y>Ie.from&&(Y=Ie.from)}if($e)for(var Yt=0;Yt<$e.length;Yt+=2)$e[Yt+1]==Y&&(ge+=" "+$e[Yt]);if(!ke||ke.from==_)for(var Lt=0;Lt<Te.length;++Lt)Ap(i,0,Te[Lt]);if(ke&&(ke.from||0)==_){if(Ap(i,(ke.to==null?x+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=x)break;for(var Hn=Math.min(x,Y);;){if(z){var kn=_+z.length;if(!ke){var Ht=kn>Hn?z.slice(0,Hn-_):z;i.addToken(i,Ht,q?q+ae:ae,we,_+Ht.length==Y?ge:"",Q,Le)}if(kn>=Hn){z=z.slice(Hn-_),_=Hn;break}_=kn,we=""}z=u.slice(g,g=a[k++]),q=Cp(a[k++],i.cm.options)}}}function Lp(n,i,a){this.line=i,this.rest=J1(i),this.size=this.rest?C(ve(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ti(n,i)}function Da(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Lp(n.doc,Re(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Xo=null;function ax(n){Xo?Xo.ops.push(n):n.ownsGroup=Xo={ops:[n],delayedCallbacks:[]}}function cx(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function ux(n,i){var a=n.ownsGroup;if(a)try{cx(a)}finally{Xo=null,i(a)}}var Xs=null;function Gt(n,i){var a=Zr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Xo?u=Xo.delayedCallbacks:Xs?u=Xs:(u=Xs=[],setTimeout(fx,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function fx(){var n=Xs;Xs=null;for(var i=0;i<n.length;++i)n[i]()}function Mp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?hx(n,i):g=="gutter"?$p(n,i,a,l):g=="class"?Qu(n,i):g=="widget"&&px(n,i,l)}i.changes=null}function Ys(n){return n.node==n.text&&(n.node=S("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function dx(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Ys(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Np(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ep(n,i)}function hx(n,i){var a=i.text.className,l=Np(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,Qu(n,i)):a&&(i.text.className=a)}function Qu(n,i){dx(n,i),i.line.wrapClass?Ys(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function $p(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=Ys(i);i.gutterBackground=S("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=Ys(i),x=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(S("div",be(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,z=g.hasOwnProperty(k)&&g[k];z&&x.appendChild(S("div",[z],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function px(n,i,a){i.alignable&&(i.alignable=null);for(var l=re("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Op(n,i,a)}function gx(n,i,a,l){var u=Np(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Qu(n,i),$p(n,i,a,l),Op(n,i,l),i.node}function Op(n,i,a){if(Rp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Rp(n,i.rest[l],i,a,!1)}function Rp(n,i,a,l,u){if(i.widgets)for(var g=Ys(a),y=0,x=i.widgets;y<x.length;++y){var _=x[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),vx(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Gt(_,"redraw")}}function vx(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Zs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!se(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),O(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ti(n,i){for(var a=qs(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Fa(n){return n.lineSpace.offsetTop}function ef(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Pp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=O(n.measure,S("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function zr(n){return I-n.display.nativeBarWidth}function co(n){return n.display.scroller.clientWidth-zr(n)-n.display.barWidth}function tf(n){return n.display.scroller.clientHeight-zr(n)-n.display.barHeight}function mx(n,i,a){var l=n.options.lineWrapping,u=l&&co(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var _=y[x],k=y[x+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Ip(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function yx(n,i){i=gr(i);var a=C(i),l=n.display.externalMeasured=new Lp(n.doc,i,a);l.lineN=a;var u=l.built=Ep(n,l);return l.text=u.pre,O(n.display.lineMeasure,u.pre),l}function zp(n,i,a,l){return Dr(n,Yo(n,i),a,l)}function nf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[ho(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Yo(n,i){var a=C(i),l=nf(n,a);l&&!l.text?l=null:l&&l.changes&&(Mp(n,l,a,af(n)),n.curOp.forceUpdate=!0),l||(l=yx(n,i));var u=Ip(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Dr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(mx(n,i.view,i.rect),i.hasHeights=!0),y=wx(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Dp={left:0,right:0,top:0,bottom:0};function Fp(n,i,a){for(var l,u,g,y,x,_,k=0;k<n.length;k+=3)if(x=n[k],_=n[k+1],i<x?(u=0,g=1,y="left"):i<_?(u=i-x,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-x,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],x==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==_-x)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:_}}function bx(n,i){var a=Dp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function wx(n,i,a,l){var u=Fp(i.map,a,l),g=u.node,y=u.start,x=u.end,_=u.collapse,k;if(g.nodeType==3){for(var z=0;z<4;z++){for(;y&&st(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&st(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=bx(V(g,y,x).getClientRects(),l),k.left||k.right||y==0)break;x=y,y=y-1,_="right"}h&&p<11&&(k=xx(n.display.measure,k))}else{y>0&&(_=l="right");var q;n.options.lineWrapping&&(q=g.getClientRects()).length>1?k=q[l=="right"?q.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var Q=g.parentNode.getClientRects()[0];Q?k={left:Q.left,right:Q.left+Jo(n.display),top:Q.top,bottom:Q.bottom}:k=Dp}for(var Y=k.top-i.rect.top,ae=k.bottom-i.rect.top,ge=(Y+ae)/2,we=i.view.measure.heights,ke=0;ke<we.length-1&&!(ge<we[ke]);ke++);var Le=ke?we[ke-1]:0,Te=we[ke],$e={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Le,bottom:Te};return!k.left&&!k.right&&($e.bogus=!0),n.options.singleCursorHeightPerLine||($e.rtop=Y,$e.rbottom=ae),$e}function xx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ju(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Hp(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Bp(n){n.display.externalMeasure=null,$(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Hp(n.display.view[i])}function Js(n){Bp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Wp(n){return b&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function qp(n){return b&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function rf(n){var i=gr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Zs(a[u]));return l}function Ha(n,i,a,l,u){if(!u){var g=rf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ei(i);if(l=="local"?y+=Fa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:qp(Ze(n)));var _=x.left+(l=="window"?0:Wp(Ze(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Up(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Wp(Ze(n)),u-=qp(Ze(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Ba(n,i,a,l,u){return l||(l=Re(n.doc,i.line)),Ha(n,l,zp(n,l,i.ch,u),a)}function vr(n,i,a,l,u,g){l=l||Re(n.doc,i.line),u||(u=Yo(n,l));function y(ae,ge){var we=Dr(n,u,ae,ge?"right":"left",g);return ge?we.left=we.right:we.right=we.left,Ha(n,l,we,a)}var x=et(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!x)return y(k=="before"?_-1:_,k=="before");function z(ae,ge,we){var ke=x[ge],Le=ke.level==1;return y(we?ae-1:ae,Le!=we)}var q=zt(x,_,k),Q=Rr,Y=z(_,q,k=="before");return Q!=null&&(Y.other=z(_,Q,k!="before")),Y}function jp(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Jo(n.display)*i.ch);var l=Re(n.doc,i.line),u=ei(l)+Fa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function of(n,i,a,l,u){var g=oe(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function sf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return of(l.first,0,null,-1,-1);var u=W(l,a),g=l.first+l.size-1;if(u>g)return of(l.first+l.size-1,Re(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Re(l,u);;){var x=_x(n,y,u,i,a),_=Y1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var k=_.find(1);if(k.line==u)return k;y=Re(l,u=k.line)}}function Vp(n,i,a,l){l-=rf(i);var u=i.text.length,g=Ft(function(y){return Dr(n,a,y-1).bottom<=l},u,0);return u=Ft(function(y){return Dr(n,a,y).top>l},g,u),{begin:g,end:u}}function Gp(n,i,a,l){a||(a=Yo(n,i));var u=Ha(n,i,Dr(n,a,l),"line").top;return Vp(n,i,a,u)}function lf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function _x(n,i,a,l,u){u-=ei(i);var g=Yo(n,i),y=rf(i),x=0,_=i.text.length,k=!0,z=et(i,n.doc.direction);if(z){var q=(n.options.lineWrapping?kx:Sx)(n,i,a,g,z,l,u);k=q.level!=1,x=k?q.from:q.to-1,_=k?q.to:q.from-1}var Q=null,Y=null,ae=Ft(function(Fe){var Ie=Dr(n,g,Fe);return Ie.top+=y,Ie.bottom+=y,lf(Ie,l,u,!1)?(Ie.top<=u&&Ie.left<=l&&(Q=Fe,Y=Ie),!0):!1},x,_),ge,we,ke=!1;if(Y){var Le=l-Y.left<Y.right-l,Te=Le==k;ae=Q+(Te?0:1),we=Te?"after":"before",ge=Le?Y.left:Y.right}else{!k&&(ae==_||ae==x)&&ae++,we=ae==0?"after":ae==i.text.length?"before":Dr(n,g,ae-(k?1:0)).bottom+y<=u==k?"after":"before";var $e=vr(n,oe(a,ae,we),"line",i,g);ge=$e.left,ke=u<$e.top?-1:u>=$e.bottom?1:0}return ae=jt(i.text,ae,1),of(a,ae,we,ke,l-ge)}function Sx(n,i,a,l,u,g,y){var x=Ft(function(q){var Q=u[q],Y=Q.level!=1;return lf(vr(n,oe(a,Y?Q.to:Q.from,Y?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[x];if(x>0){var k=_.level!=1,z=vr(n,oe(a,k?_.from:_.to,k?"after":"before"),"line",i,l);lf(z,g,y,!0)&&z.top>y&&(_=u[x-1])}return _}function kx(n,i,a,l,u,g,y){var x=Vp(n,i,l,y),_=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var z=null,q=null,Q=0;Q<u.length;Q++){var Y=u[Q];if(!(Y.from>=k||Y.to<=_)){var ae=Y.level!=1,ge=Dr(n,l,ae?Math.min(k,Y.to)-1:Math.max(_,Y.from)).right,we=ge<g?g-ge+1e9:ge-g;(!z||q>we)&&(z=Y,q=we)}}return z||(z=u[u.length-1]),z.from<_&&(z={from:_,to:z.to,level:z.level}),z.to>k&&(z={from:z.from,to:k,level:z.level}),z}var uo;function Zo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(uo==null){uo=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)uo.appendChild(document.createTextNode("x")),uo.appendChild(S("br"));uo.appendChild(document.createTextNode("x"))}O(n.measure,uo);var a=uo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),$(n.measure),a||1}function Jo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");O(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function af(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:cf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function cf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Kp(n){var i=Zo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Jo(n.display)-3);return function(u){if(Ti(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function uf(n){var i=n.doc,a=Kp(n);i.iter(function(l){var u=a(l);u!=l.height&&Xn(l,u)})}function fo(n,i,a,l){var u=n.display;if(!a&&qs(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var _=sf(n,g,y),k;if(l&&_.xRel>0&&(k=Re(n.doc,_.line).text).length==_.ch){var z=G(k,k.length,n.options.tabSize)-k.length;_=oe(_.line,Math.max(0,Math.round((g-Pp(n.display).left)/Jo(n.display))-z))}return _}function ho(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function _n(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Qr&&Yu(n.doc,i)<u.viewTo&&Ei(n);else if(a<=u.viewFrom)Qr&&Tp(n.doc,a+l)>u.viewFrom?Ei(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ei(n);else if(i<=u.viewFrom){var g=Wa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ei(n)}else if(a>=u.viewTo){var y=Wa(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ei(n)}else{var x=Wa(n,i,i,-1),_=Wa(n,a,a+l,1);x&&_?(u.view=u.view.slice(0,x.index).concat(Da(n,x.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):Ei(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ci(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[ho(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);pe(y,a)==-1&&y.push(a)}}}function Ei(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Wa(n,i,a,l){var u=ho(n,i),g,y=n.display.view;if(!Qr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,_=0;_<u;_++)x+=y[_].size;if(x!=i){if(l>0){if(u==y.length-1)return null;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;Yu(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function Tx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Da(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Da(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(ho(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Da(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,ho(n,a)))),l.viewTo=a}function Xp(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Qs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Yp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var _=a.sel.ranges[x];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(y){var z=y(n,_);z&&ff(n,z,u)}else(k||n.options.showCursorWhenSelecting)&&ff(n,_.head,u);k||Cx(n,_,g)}}return l}function ff(n,i,a){var l=vr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Ba(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function qa(n,i){return n.top-i.top||n.left-i.left}function Cx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Pp(n.display),x=y.left,_=Math.max(l.sizerWidth,co(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function z(Te,$e,Fe,Ie){$e<0&&($e=0),$e=Math.round($e),Ie=Math.round(Ie),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
26
- top: `+$e+"px; width: "+(Fe??_-Te)+`px;
27
- height: `+(Ie-$e)+"px"))}function q(Te,$e,Fe){var Ie=Re(u,Te),Je=Ie.text.length,_t,Yt;function Lt(Ht,Tn){return Ba(n,oe(Te,Ht),"div",Ie,Tn)}function Hn(Ht,Tn,rn){var qt=Gp(n,Ie,null,Ht),Bt=Tn=="ltr"==(rn=="after")?"left":"right",Pt=rn=="after"?qt.begin:qt.end-(/\s/.test(Ie.text.charAt(qt.end-1))?2:1);return Lt(Pt,Bt)[Bt]}var kn=et(Ie,u.direction);return In(kn,$e||0,Fe??Je,function(Ht,Tn,rn,qt){var Bt=rn=="ltr",Pt=Lt(Ht,Bt?"left":"right"),Cn=Lt(Tn-1,Bt?"right":"left"),fs=$e==null&&Ht==0,Oi=Fe==null&&Tn==Je,cn=qt==0,Fr=!kn||qt==kn.length-1;if(Cn.top-Pt.top<=3){var Zt=(k?fs:Oi)&&cn,Df=(k?Oi:fs)&&Fr,ii=Zt?x:(Bt?Pt:Cn).left,yo=Df?_:(Bt?Cn:Pt).right;z(ii,Pt.top,yo-ii,Pt.bottom)}else{var bo,hn,ds,Ff;Bt?(bo=k&&fs&&cn?x:Pt.left,hn=k?_:Hn(Ht,rn,"before"),ds=k?x:Hn(Tn,rn,"after"),Ff=k&&Oi&&Fr?_:Cn.right):(bo=k?Hn(Ht,rn,"before"):x,hn=!k&&fs&&cn?_:Pt.right,ds=!k&&Oi&&Fr?x:Cn.left,Ff=k?Hn(Tn,rn,"after"):_),z(bo,Pt.top,hn-bo,Pt.bottom),Pt.bottom<Cn.top&&z(x,Pt.bottom,null,Cn.top),z(ds,Cn.top,Ff-ds,Cn.bottom)}(!_t||qa(Pt,_t)<0)&&(_t=Pt),qa(Cn,_t)<0&&(_t=Cn),(!Yt||qa(Pt,Yt)<0)&&(Yt=Pt),qa(Cn,Yt)<0&&(Yt=Cn)}),{start:_t,end:Yt}}var Q=i.from(),Y=i.to();if(Q.line==Y.line)q(Q.line,Q.ch,Y.ch);else{var ae=Re(u,Q.line),ge=Re(u,Y.line),we=gr(ae)==gr(ge),ke=q(Q.line,Q.ch,we?ae.text.length+1:null).end,Le=q(Y.line,we?0:null,Y.ch).start;we&&(ke.top<Le.top-2?(z(ke.right,ke.top,null,ke.bottom),z(x,Le.top,Le.left,Le.bottom)):z(ke.right,ke.top,Le.left-ke.right,ke.bottom)),ke.bottom<Le.top&&z(x,ke.bottom,null,Le.top)}a.appendChild(g)}function df(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Qo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Zp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||pf(n))}function hf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Qo(n))},100)}function pf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||($t(n,"focus",n,i),n.state.focused=!0,_e(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),df(n))}function Qo(n,i){n.state.delayingBlurEvent||(n.state.focused&&($t(n,"blur",n,i),n.state.focused=!1,P(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ua(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var x=i.view[y],_=n.options.lineWrapping,k=void 0,z=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var q=x.node.offsetTop+x.node.offsetHeight;k=q-a,a=q}else{var Q=x.node.getBoundingClientRect();k=Q.bottom-Q.top,!_&&x.text.firstChild&&(z=x.text.firstChild.getBoundingClientRect().right-Q.left-1)}var Y=x.line.height-k;if((Y>.005||Y<-.005)&&(u<l&&(g-=Y),Xn(x.line,k),Jp(x.line),x.rest))for(var ae=0;ae<x.rest.length;ae++)Jp(x.rest[ae]);if(z>n.display.sizerWidth){var ge=Math.ceil(z/Jo(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function Jp(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function ja(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Fa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=W(i,l),y=W(i,u);if(a&&a.ensure){var x=a.ensure.from.line,_=a.ensure.to.line;x<g?(g=x,y=W(i,ei(Re(i,x))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=W(i,ei(Re(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function Ex(n,i){if(!Ot(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!L){var y=S("div","​",null,`position: absolute;
28
- top: `+(i.top-a.viewOffset-Fa(n.display))+`px;
29
- height: `+(i.bottom-i.top+zr(n)+a.barHeight)+`px;
30
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Ax(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?oe(i.line,i.ch+1,"before"):i,i=i.ch?oe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=vr(n,i),_=!a||a==i?x:vr(n,a);u={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-l,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+l};var k=gf(n,u),z=n.doc.scrollTop,q=n.doc.scrollLeft;if(k.scrollTop!=null&&(tl(n,k.scrollTop),Math.abs(n.doc.scrollTop-z)>1&&(y=!0)),k.scrollLeft!=null&&(po(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-q)>1&&(y=!0)),!y)break}return u}function Lx(n,i){var a=gf(n,i);a.scrollTop!=null&&tl(n,a.scrollTop),a.scrollLeft!=null&&po(n,a.scrollLeft)}function gf(n,i){var a=n.display,l=Zo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=tf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+ef(a),_=i.top<l,k=i.bottom>x-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var z=Math.min(i.top,(k?x:i.bottom)-g);z!=u&&(y.scrollTop=z)}var q=n.options.fixedGutter?0:a.gutters.offsetWidth,Q=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-q,Y=co(n)-a.gutters.offsetWidth,ae=i.right-i.left>Y;return ae&&(i.right=i.left+Y),i.left<10?y.scrollLeft=0:i.left<Q?y.scrollLeft=Math.max(0,i.left+q-(ae?0:10)):i.right>Y+Q-3&&(y.scrollLeft=i.right+(ae?0:10)-Y),y}function vf(n,i){i!=null&&(Va(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function es(n){Va(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function el(n,i,a){(i!=null||a!=null)&&Va(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Mx(n,i){Va(n),n.curOp.scrollToPos=i}function Va(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=jp(n,i.from),l=jp(n,i.to);Qp(n,a,l,i.margin)}}function Qp(n,i,a,l){var u=gf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});el(n,u.scrollLeft,u.scrollTop)}function tl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||yf(n,{top:i}),eg(n,i,!0),s&&yf(n),il(n,100))}function eg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function po(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,og(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function nl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+ef(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+zr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var go=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),De(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),De(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};go.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},go.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},go.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},go.prototype.zeroWidthHack=function(){var n=B&&!T?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},go.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},go.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var rl=function(){};rl.prototype.update=function(){return{bottom:0,right:0}},rl.prototype.setScrollLeft=function(){},rl.prototype.setScrollTop=function(){},rl.prototype.clear=function(){};function ts(n,i){i||(i=nl(n));var a=n.display.barWidth,l=n.display.barHeight;tg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ua(n),tg(n,nl(n)),a=n.display.barWidth,l=n.display.barHeight}function tg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var ng={native:go,null:rl};function rg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&P(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ng[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),De(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?po(n,i):tl(n,i)},n),n.display.scrollbars.addClass&&_e(n.display.wrapper,n.display.scrollbars.addClass)}var Nx=0;function vo(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Nx,markArrays:null},ax(n.curOp)}function mo(n){var i=n.curOp;i&&ux(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;$x(a)})}function $x(n){for(var i=n.ops,a=0;a<i.length;a++)Ox(i[a]);for(var l=0;l<i.length;l++)Rx(i[l]);for(var u=0;u<i.length;u++)Px(i[u]);for(var g=0;g<i.length;g++)Ix(i[g]);for(var y=0;y<i.length;y++)zx(i[y])}function Ox(n){var i=n.cm,a=i.display;Fx(i),n.updateMaxLine&&Ju(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new Ga(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Rx(n){n.updatedDisplay=n.mustUpdate&&mf(n.cm,n.update)}function Px(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ua(i),n.barMeasure=nl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=zp(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+zr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-co(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Ix(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&po(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(Ke(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&ts(i,n.barMeasure),n.updatedDisplay&&wf(i,n.barMeasure),n.selectionChanged&&df(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Zp(n.cm)}function zx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&ig(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&eg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&po(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Ax(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);Ex(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||$t(g[x],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&$t(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&$t(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Fn(n,i){if(n.curOp)return i();vo(n);try{return i()}finally{mo(n)}}function Kt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);vo(n);try{return i.apply(n,arguments)}finally{mo(n)}}}function dn(n){return function(){if(this.curOp)return n.apply(this,arguments);vo(this);try{return n.apply(this,arguments)}finally{mo(this)}}}function Xt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);vo(i);try{return n.apply(this,arguments)}finally{mo(i)}}}function il(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,D(Dx,n))}function Dx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Gs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,x=g.text.length>n.options.maxHighlightLength?Pr(i.mode,l.state):null,_=fp(n,g,l,!0);x&&(l.state=x),g.styles=_.styles;var k=g.styleClasses,z=_.classes;z?g.styleClasses=z:k&&(g.styleClasses=null);for(var q=!y||y.length!=g.styles.length||k!=z&&(!k||!z||k.bgClass!=z.bgClass||k.textClass!=z.textClass),Q=0;!q&&Q<y.length;++Q)q=y[Q]!=g.styles[Q];q&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Vu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return il(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Fn(n,function(){for(var g=0;g<u.length;g++)Ci(n,u[g],"text")})}}var Ga=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ja(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=co(n),this.force=a,this.dims=af(n),this.events=[]};Ga.prototype.signal=function(n,i){Dn(n,i)&&this.events.push(arguments)},Ga.prototype.finish=function(){for(var n=0;n<this.events.length;n++)$t.apply(null,this.events[n])};function Fx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=zr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=zr(n)+"px",i.scrollbarsClipped=!0)}function Hx(n){if(n.hasFocus())return null;var i=me(Ke(n));if(!i||!se(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=ee(n).getSelection();l.anchorNode&&l.extend&&se(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Bx(n){if(!(!n||!n.activeElt||n.activeElt==me(Xe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&se(document.body,n.anchorNode)&&se(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function mf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ei(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Xp(n)==0)return!1;sg(n)&&(Ei(n),i.dims=af(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Qr&&(g=Yu(n.doc,g),y=Tp(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Tx(n,g,y),a.viewOffset=ei(Re(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Xp(n);if(!x&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=Hx(n);return _>4&&(a.lineDiv.style.display="none"),Wx(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Bx(k),$(a.cursorDiv),$(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,il(n,400)),a.updateLineNumbers=null,!0}function ig(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==co(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+ef(n.display)-tf(n),a.top)}),i.visible=ja(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ja(n.display,n.doc,a));if(!mf(n,i))break;Ua(n);var u=nl(n);Qs(n),ts(n,u),wf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function yf(n,i){var a=new Ga(n,i);if(mf(n,a)){Ua(n),ig(n,a);var l=nl(n);Qs(n),ts(n,l),wf(n,l),a.finish()}}function Wx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ae){var ge=ae.nextSibling;return v&&B&&n.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),ge}for(var _=l.view,k=l.viewFrom,z=0;z<_.length;z++){var q=_[z];if(!q.hidden)if(!q.node||q.node.parentNode!=g){var Q=gx(n,q,k,a);g.insertBefore(Q,y)}else{for(;y!=q.node;)y=x(y);var Y=u&&i!=null&&i<=k&&q.lineNumber;q.changes&&(pe(q.changes,"gutter")>-1&&(Y=!1),Mp(n,q,k,a)),Y&&($(q.lineNumber),q.lineNumber.appendChild(document.createTextNode(be(n.options,k)))),y=q.node.nextSibling}k+=q.size}for(;y;)y=x(y)}function bf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Gt(n,"gutterChanged",n)}function wf(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+zr(n)+"px"}function og(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=cf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var x=a[y].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function sg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=be(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",bf(n.display),!0}return!1}function xf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function lg(n){var i=n.gutters,a=n.gutterSpecs;$(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(S("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",bf(n)}function ol(n){lg(n.display),_n(n),og(n)}function qx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=F("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=F("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=F("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&M)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=xf(l.gutters,l.lineNumbers),lg(u),a.init(u)}var Ka=0,ni=null;h?ni=-.53:s?ni=15:b?ni=-.7:N&&(ni=-1/3);function ag(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Ux(n){var i=ag(n);return i.x*=ni,i.y*=ni,i}function cg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=ag(i),l=a.x,u=a.y,g=ni;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,_=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(l&&_||u&&k){if(u&&B&&v){e:for(var z=i.target,q=y.view;z!=x;z=z.parentNode)for(var Q=0;Q<q.length;Q++)if(q[Q].node==z){n.display.currentWheelTarget=z;break e}}if(l&&!s&&!E&&g!=null){u&&k&&tl(n,Math.max(0,x.scrollTop+u*g)),po(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&k)&&ln(i),y.wheelStartX=null;return}if(u&&g!=null){var Y=u*g,ae=n.doc.scrollTop,ge=ae+y.wrapper.clientHeight;Y<0?ae=Math.max(0,ae+Y-50):ge=Math.min(n.doc.height,ge+Y+50),yf(n,{top:ae,bottom:ge})}Ka<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var we=x.scrollLeft-y.wheelStartX,ke=x.scrollTop-y.wheelStartY,Le=ke&&y.wheelDY&&ke/y.wheelDY||we&&y.wheelDX&&we/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Le&&(ni=(ni*Ka+Le)/(Ka+1),++Ka)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Yn=function(n,i){this.ranges=n,this.primIndex=i};Yn.prototype.primary=function(){return this.ranges[this.primIndex]},Yn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ft(a.anchor,l.anchor)||!ft(a.head,l.head))return!1}return!0},Yn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new dt(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new Yn(n,this.primIndex)},Yn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Yn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ae(i,l.from())>=0&&Ae(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return Go(this.anchor,this.head)},dt.prototype.to=function(){return xn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function mr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(Q,Y){return Ae(Q.from(),Y.from())}),a=pe(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],_=Ae(x.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Go(x.from(),y.from()),z=xn(x.to(),y.to()),q=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(q?z:k,q?k:z))}}return new Yn(i,a)}function Ai(n,i){return new Yn([new dt(n,i||n)],0)}function Li(n){return n.text?oe(n.from.line+n.text.length-1,ve(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function ug(n,i){if(Ae(n,i.from)<0)return n;if(Ae(n,i.to)<=0)return Li(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Li(i).ch-i.to.ch),oe(a,l)}function _f(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new dt(ug(u.anchor,i),ug(u.head,i)))}return mr(n.cm,a,n.sel.primIndex)}function fg(n,i,a){return n.line==i.line?oe(a.line,n.ch-i.ch+a.ch):oe(a.line+(n.line-i.line),n.ch)}function jx(n,i,a){for(var l=[],u=oe(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],_=fg(x.from,u,g),k=fg(Li(x),u,g);if(u=x.to,g=k,a=="around"){var z=n.sel.ranges[y],q=Ae(z.head,z.anchor)<0;l[y]=new dt(q?k:_,q?_:k)}else l[y]=new dt(_,_)}return new Yn(l,n.sel.primIndex)}function Sf(n){n.doc.mode=Uo(n.options,n.doc.modeOption),sl(n)}function sl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,il(n,100),n.state.modeGen++,n.curOp&&_n(n)}function dg(n,i){return i.from.ch==0&&i.to.ch==0&&ve(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function kf(n,i,a,l){function u(Le){return a?a[Le]:null}function g(Le,Te,$e){Q1(Le,Te,$e,l),Gt(Le,"change",Le,i)}function y(Le,Te){for(var $e=[],Fe=Le;Fe<Te;++Fe)$e.push(new Ko(k[Fe],u(Fe),l));return $e}var x=i.from,_=i.to,k=i.text,z=Re(n,x.line),q=Re(n,_.line),Q=ve(k),Y=u(k.length-1),ae=_.line-x.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(dg(n,i)){var ge=y(0,k.length-1);g(q,q.text,Y),ae&&n.remove(x.line,ae),ge.length&&n.insert(x.line,ge)}else if(z==q)if(k.length==1)g(z,z.text.slice(0,x.ch)+Q+z.text.slice(_.ch),Y);else{var we=y(1,k.length-1);we.push(new Ko(Q+z.text.slice(_.ch),Y,l)),g(z,z.text.slice(0,x.ch)+k[0],u(0)),n.insert(x.line+1,we)}else if(k.length==1)g(z,z.text.slice(0,x.ch)+k[0]+q.text.slice(_.ch),u(0)),n.remove(x.line+1,ae);else{g(z,z.text.slice(0,x.ch)+k[0],u(0)),g(q,Q+q.text.slice(_.ch),Y);var ke=y(1,k.length-1);ae>1&&n.remove(x.line+1,ae-1),n.insert(x.line+1,ke)}Gt(n,"change",n,i)}function Mi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var _=u.linked[x];if(_.doc!=g){var k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function hg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,uf(n),Sf(n),pg(n),n.options.direction=i.direction,n.options.lineWrapping||Ju(n),n.options.mode=i.modeOption,_n(n)}function pg(n){(n.doc.direction=="rtl"?_e:P)(n.display.lineDiv,"CodeMirror-rtl")}function Vx(n){Fn(n,function(){pg(n),_n(n)})}function Xa(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Tf(n,i){var a={from:Vt(i.from),to:Li(i),text:Jr(n,i.from,i.to)};return mg(n,a,i.from.line,i.to.line+1),Mi(n,function(l){return mg(l,a,i.from.line,i.to.line+1)},!0),a}function gg(n){for(;n.length;){var i=ve(n);if(i.ranges)n.pop();else break}}function Gx(n,i){if(i)return gg(n.done),ve(n.done);if(n.done.length&&!ve(n.done).ranges)return ve(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ve(n.done)}function vg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=Gx(u,u.lastOp==l)))x=ve(y.changes),Ae(i.from,i.to)==0&&Ae(i.from,x.to)==0?x.to=Li(i):y.changes.push(Tf(n,i));else{var _=ve(u.done);for((!_||!_.ranges)&&Ya(n.sel,u.done),y={changes:[Tf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||$t(n,"historyAdded")}function Kx(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Xx(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||Kx(n,g,ve(u.done),i))?u.done[u.done.length-1]=i:Ya(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&gg(u.undone)}function Ya(n,i){var a=ve(i);a&&a.ranges&&a.equals(n)||i.push(n)}function mg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function Yx(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function Zx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Yx(a[u]));return l}function yg(n,i){var a=Zx(n,i),l=Ku(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var x=0;x<y.length;++x){for(var _=y[x],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function ns(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Yn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var _=0;_<y.length;++_){var k=y[_],z=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var q in k)(z=q.match(/^spans_(\d+)$/))&&pe(i,Number(z[1]))>-1&&(ve(x)[q]=k[q],delete k[q])}}return l}function Cf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ae(i,u)<0;g!=Ae(a,u)<0?(u=i,i=a):g!=Ae(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Za(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),an(n,new Yn([Cf(n.sel.primary(),i,a,u)],0),l)}function bg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Cf(n.sel.ranges[g],i[g],null,u);var y=mr(n.cm,l,n.sel.primIndex);an(n,y,a)}function Ef(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,an(n,mr(n.cm,u,n.sel.primIndex),l)}function wg(n,i,a,l){an(n,Ai(i,a),l)}function Jx(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new dt(Ge(n,u[g].anchor),Ge(n,u[g].head))},origin:a&&a.origin};return $t(n,"beforeSelectionChange",n,l),n.cm&&$t(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?mr(n.cm,l.ranges,l.ranges.length-1):i}function xg(n,i,a){var l=n.history.done,u=ve(l);u&&u.ranges?(l[l.length-1]=i,Ja(n,i,a)):an(n,i,a)}function an(n,i,a){Ja(n,i,a),Xx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ja(n,i,a){(Dn(n,"beforeSelectionChange")||n.cm&&Dn(n.cm,"beforeSelectionChange"))&&(i=Jx(n,i,a));var l=a&&a.bias||(Ae(i.primary().head,n.sel.primary().head)<0?-1:1);_g(n,kg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&es(n.cm)}function _g(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ir(n.cm)),Gt(n,"cursorActivity",n))}function Sg(n){_g(n,kg(n,n.sel,null,!1))}function kg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Qa(n,y.anchor,x&&x.anchor,a,l),k=y.head==y.anchor?_:Qa(n,y.head,x&&x.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(_,k))}return u?mr(n.cm,u,i.primIndex):i}function rs(n,i,a,l,u){var g=Re(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],_=x.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,z="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(k?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(z?x.to>=i.ch:x.to>i.ch))){if(u&&($t(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var q=_.find(l<0?1:-1),Q=void 0;if((l<0?z:k)&&(q=Tg(n,q,-l,q&&q.line==i.line?g:null)),q&&q.line==i.line&&(Q=Ae(q,a))&&(l<0?Q<0:Q>0))return rs(n,q,i,l,u)}var Y=_.find(l<0?-1:1);return(l<0?k:z)&&(Y=Tg(n,Y,l,Y.line==i.line?g:null)),Y?rs(n,Y,i,l,u):null}}return i}function Qa(n,i,a,l,u){var g=l||1,y=rs(n,i,a,g,u)||!u&&rs(n,i,a,g,!0)||rs(n,i,a,-g,u)||!u&&rs(n,i,a,-g,!0);return y||(n.cantEdit=!0,oe(n.first,0))}function Tg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,oe(i.line-1)):null:a>0&&i.ch==(l||Re(n,i.line)).text.length?i.line<n.first+n.size-1?oe(i.line+1,0):null:new oe(i.line,i.ch+a)}function Cg(n){n.setSelection(oe(n.firstLine(),0),oe(n.lastLine()),X)}function Eg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,x){u&&(l.from=Ge(n,u)),g&&(l.to=Ge(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),$t(n,"beforeChange",n,l),n.cm&&$t(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function is(n,i,a){if(n.cm){if(!n.cm.curOp)return Kt(n.cm,is)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"))&&(i=Eg(n,i,!0),!i))){var l=yp&&!a&&X1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Ag(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Ag(n,i)}}function Ag(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ae(i.from,i.to)==0)){var a=_f(n,i);vg(n,i,a,n.cm?n.cm.curOp.id:NaN),ll(n,i,a,Ku(n,i));var l=[];Mi(n,function(u,g){!g&&pe(l,u.history)==-1&&($g(u.history,i),l.push(u.history)),ll(u,i,null,Ku(u,i))})}}function ec(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,k=0;k<x.length&&(g=x[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(Ya(g,_),a&&!g.equals(n.sel)){an(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var z=[];Ya(y,_),_.push({changes:z,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var q=Dn(n,"beforeChange")||n.cm&&Dn(n.cm,"beforeChange"),Q=function(ge){var we=g.changes[ge];if(we.origin=i,q&&!Eg(n,we,!1))return x.length=0,{};z.push(Tf(n,we));var ke=ge?_f(n,we):ve(x);ll(n,we,ke,yg(n,we)),!ge&&n.cm&&n.cm.scrollIntoView({from:we.from,to:Li(we)});var Le=[];Mi(n,function(Te,$e){!$e&&pe(Le,Te.history)==-1&&($g(Te.history,we),Le.push(Te.history)),ll(Te,we,null,yg(Te,we))})},Y=g.changes.length-1;Y>=0;--Y){var ae=Q(Y);if(ae)return ae.v}}}}function Lg(n,i){if(i!=0&&(n.first+=i,n.sel=new Yn(ye(n.sel.ranges,function(u){return new dt(oe(u.anchor.line+i,u.anchor.ch),oe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){_n(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ci(n.cm,l,"gutter")}}function ll(n,i,a,l){if(n.cm&&!n.cm.curOp)return Kt(n.cm,ll)(n,i,a,l);if(i.to.line<n.first){Lg(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Lg(n,u),i={from:oe(n.first,0),to:oe(i.to.line+u,i.to.ch),text:[ve(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:oe(g,Re(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Jr(n,i.from,i.to),a||(a=_f(n,i)),n.cm?Qx(n.cm,i,l):kf(n,i,l),Ja(n,a,X),n.cantEdit&&Qa(n,oe(n.firstLine(),0))&&(n.cantEdit=!1)}}function Qx(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,_=g.line;n.options.lineWrapping||(_=C(gr(Re(l,g.line))),l.iter(_,y.line+1,function(Y){if(Y==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ir(n),kf(l,i,a,Kp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(Y){var ae=za(Y);ae>u.maxLineLength&&(u.maxLine=Y,u.maxLineLength=ae,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),W1(l,g.line),il(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?_n(n):g.line==y.line&&i.text.length==1&&!dg(n.doc,i)?Ci(n,g.line,"text"):_n(n,g.line,y.line+1,k);var z=Dn(n,"changes"),q=Dn(n,"change");if(q||z){var Q={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};q&&Gt(n,"change",n,Q),z&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(Q)}n.display.selForContextMenu=null}function os(n,i,a,l,u){var g;l||(l=a),Ae(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),is(n,{from:a,to:l,text:i,origin:u})}function Mg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Ng(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var x=0;x<g.ranges.length;x++)Mg(g.ranges[x].anchor,i,a,l),Mg(g.ranges[x].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=oe(k.from.line+l,k.from.ch),k.to=oe(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function $g(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Ng(n.done,a,l,u),Ng(n.undone,a,l,u)}function al(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Re(n,cp(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&Ci(n.cm,u,a),g)}function cl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,ex(u),Gt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function ul(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}ul.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof cl))){var x=[];this.collapse(x),this.children=[new cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var _=new cl(u.lines.slice(x,x+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new ul(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=pe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new ul(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var fl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};fl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Zs(this);Xn(a,Math.max(0,a.height-g)),n&&(Fn(n,function(){Og(n,a,-g),Ci(n,l,"widget")}),Gt(n,"lineWidgetCleared",n,this,l))}},fl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Zs(this)-i;u&&(Ti(this.doc,l)||Xn(l,l.height+u),a&&Fn(a,function(){a.curOp.forceUpdate=!0,Og(a,l,u),Gt(a,"lineWidgetChanged",a,n,C(l))}))},ur(fl);function Og(n,i,a){ei(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&vf(n,a)}function e_(n,i,a,l){var u=new fl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),al(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Ti(n,y)){var _=ei(y)<n.scrollTop;Xn(y,y.height+Zs(u)),_&&vf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Gt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var Rg=0,Ni=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Rg};Ni.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&vo(n),Dn(this,"clear")){var a=this.find();a&&Gt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=Ks(y.markedSpans,this);n&&!this.collapsed?Ci(n,C(y),"text"):n&&(x.to!=null&&(u=C(y)),x.from!=null&&(l=C(y))),y.markedSpans=j1(y.markedSpans,x),x.from==null&&this.collapsed&&!Ti(this.doc,y)&&n&&Xn(y,Zo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=gr(this.lines[_]),z=za(k);z>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=z,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&_n(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Sg(n.doc)),n&&Gt(n,"markerCleared",n,this,l,u),i&&mo(n),this.parent&&this.parent.clear()}},Ni.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=Ks(g.markedSpans,this);if(y.from!=null&&(a=oe(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=oe(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ni.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Fn(l,function(){var u=i.line,g=C(i.line),y=nf(l,g);if(y&&(Hp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ti(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var _=Zs(a)-x;_&&Xn(u,u.height+_)}Gt(l,"markerChanged",l,n)})},Ni.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||pe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ni.prototype.detachLine=function(n){if(this.lines.splice(pe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},ur(Ni);function ss(n,i,a,l,u){if(l&&l.shared)return t_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Kt(n.cm,ss)(n,i,a,l,u);var g=new Ni(n,u),y=Ae(i,a);if(l&&Z(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=F("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(kp(n,i.line,i,a,g)||i.line!=a.line&&kp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");U1()}g.addToHistory&&vg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,_=n.cm,k;if(n.iter(x,a.line+1,function(q){_&&g.collapsed&&!_.options.lineWrapping&&gr(q)==_.display.maxLine&&(k=!0),g.collapsed&&x!=i.line&&Xn(q,0),V1(q,new Oa(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(q){Ti(n,q)&&Xn(q,0)}),g.clearOnEnter&&De(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(q1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Rg,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)_n(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var z=i.line;z<=a.line;z++)Ci(_,z,"text");g.atomic&&Sg(_.doc),Gt(_,"markerAdded",_,g)}return g}var dl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};dl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Gt(this,"clear")}},dl.prototype.find=function(n,i){return this.primary.find(n,i)},ur(dl);function t_(n,i,a,l,u){l=Z(l),l.shared=!1;var g=[ss(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Mi(n,function(_){x&&(l.widgetNode=x.cloneNode(!0)),g.push(ss(_,Ge(_,i),Ge(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=ve(g)}),new dl(g,y)}function Pg(n){return n.findMarks(oe(n.first,0),n.clipPos(oe(n.lastLine())),function(i){return i.parent})}function n_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Ae(g,y)){var x=ss(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function r_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Mi(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];pe(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var i_=0,Sn=function(n,i,a,l,u){if(!(this instanceof Sn))return new Sn(n,i,a,l,u);a==null&&(a=0),ul.call(this,[new cl([new Ko("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=oe(a,0);this.sel=Ai(g),this.history=new Xa(null),this.id=++i_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),kf(this,{from:g,to:g,text:n}),an(this,Ai(g),X)};Sn.prototype=ze(ul.prototype,{constructor:Sn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=Vs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Xt(function(n){var i=oe(this.first,0),a=this.first+this.size-1;is(this,{from:i,to:oe(a,Re(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&el(this.cm,0,0),an(this,Ai(i),X)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,os(this,n,i,a,l)},getRange:function(n,i,a){var l=Jr(this,Ge(this,n),Ge(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(fe(this,n))return Re(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Re(this,n)),gr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ge(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xt(function(n,i,a){wg(this,Ge(this,typeof n=="number"?oe(n,i||0):n),null,a)}),setSelection:Xt(function(n,i,a){wg(this,Ge(this,n),Ge(this,i||n),a)}),extendSelection:Xt(function(n,i,a){Za(this,Ge(this,n),i&&Ge(this,i),a)}),extendSelections:Xt(function(n,i){bg(this,up(this,n),i)}),extendSelectionsBy:Xt(function(n,i){var a=ye(this.sel.ranges,n);bg(this,up(this,a),i)}),setSelections:Xt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new dt(Ge(this,n[u].anchor),Ge(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),an(this,mr(this.cm,l,i),a)}}),addSelection:Xt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new dt(Ge(this,n),Ge(this,i||n))),an(this,mr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Jr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=Jr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Xt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var x=i&&i!="end"&&jx(this,l,i),_=l.length-1;_>=0;_--)is(this,l[_]);x?xg(this,x):this.cm&&es(this.cm)}),undo:Xt(function(){ec(this,"undo")}),redo:Xt(function(){ec(this,"redo")}),undoSelection:Xt(function(){ec(this,"undo",!0)}),redoSelection:Xt(function(){ec(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new Xa(this.history),Mi(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ns(this.history.done),undone:ns(this.history.undone)}},setHistory:function(n){var i=this.history=new Xa(this.history);i.done=ns(n.done.slice(0),null,!0),i.undone=ns(n.undone.slice(0),null,!0)},setGutterMarker:Xt(function(n,i,a){return al(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&lt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Xt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&al(i,a,"gutter",function(){return a.gutterMarkers[n]=null,lt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Re(this,n),!n))return null}else if(i=C(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Xt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(re(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Xt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(re(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:Xt(function(n,i,a){return e_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return ss(this,Ge(this,n),Ge(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ge(this,n),ss(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Re(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ge(this,n),i=Ge(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var x=0;x<y.length;x++){var _=y[x];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ge(this,oe(a,i))},indexFromPos:function(n){n=Ge(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new Sn(Vs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new Sn(Vs(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],n_(l,Pg(this)),l},unlinkDoc:function(n){if(n instanceof Et&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),r_(Pg(this));break}}if(n.history==this.history){var l=[n.id];Mi(n,function(u){return l.push(u.id)},!0),n.history=new Xa(null),n.history.done=ns(this.history.done,l),n.history.undone=ns(this.history.undone,l)}},iterLinkedDocs:function(n){Mi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):or(n)},lineSeparator:function(){return this.lineSep||`
31
- `},setDirection:Xt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Vx(this.cm))})}),Sn.prototype.eachLine=Sn.prototype.iter;var Ig=0;function o_(n){var i=this;if(zg(i),!(Ot(i,n)||ti(i.display,n))){ln(n),h&&(Ig=+new Date);var a=fo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,x=function(){++y==u&&Kt(i,function(){a=Ge(i.doc,a);var Y={from:a,to:a,text:i.doc.splitLines(g.filter(function(ae){return ae!=null}).join(i.doc.lineSeparator())),origin:"paste"};is(i.doc,Y),xg(i.doc,Ai(Ge(i.doc,a),Ge(i.doc,Li(Y))))})()},_=function(Y,ae){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,Y.type)==-1){x();return}var ge=new FileReader;ge.onerror=function(){return x()},ge.onload=function(){var we=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(we)){x();return}g[ae]=we,x()},ge.readAsText(Y)},k=0;k<l.length;k++)_(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var z=n.dataTransfer.getData("Text");if(z){var q;if(i.state.draggingText&&!i.state.draggingText.copy&&(q=i.listSelections()),Ja(i.doc,Ai(a,a)),q)for(var Q=0;Q<q.length;++Q)os(i.doc,"",q[Q].anchor,q[Q].head,"drag");i.replaceSelection(z,"around","paste"),i.display.input.focus()}}catch{}}}}function s_(n,i){if(h&&(!n.state.draggingText||+new Date-Ig<100)){xi(i);return}if(!(Ot(n,i)||ti(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!N)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function l_(n,i){var a=fo(n,i);if(a){var l=document.createDocumentFragment();ff(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),O(n.display.dragCursor,l)}}function zg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Dg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var Fg=!1;function a_(){Fg||(c_(),Fg=!0)}function c_(){var n;De(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Dg(u_)},100))}),De(window,"blur",function(){return Dg(Qo)})}function u_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var $i={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hl=0;hl<10;hl++)$i[hl+48]=$i[hl+96]=String(hl);for(var tc=65;tc<=90;tc++)$i[tc]=String.fromCharCode(tc);for(var pl=1;pl<=12;pl++)$i[pl+111]=$i[pl+63235]="F"+pl;var ri={};ri.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"},ri.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"},ri.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"},ri.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"]},ri.default=B?ri.macDefault:ri.pcDefault;function f_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function d_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),f_),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var _=i[x];if(!_)i[x]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var k in i)n[k]=i[k];return n}function ls(n,i,a,l){i=nc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ls(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ls(n,i.fallthrough[g],a,l);if(y)return y}}}function Hg(n){var i=typeof n=="string"?n:$i[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Bg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(te?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(te?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Wg(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=$i[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Bg(a,n,i))}function nc(n){return typeof n=="string"?ri[n]:n}function as(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ae(g.from,ve(l).to)<=0;){var y=l.pop();if(Ae(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Fn(n,function(){for(var x=l.length-1;x>=0;x--)os(n.doc,"",l[x].from,l[x].to,"+delete");es(n)})}function Af(n,i,a){var l=jt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Lf(n,i,a){var l=Af(n,i.ch,a);return l==null?null:new oe(i.line,l,a<0?"after":"before")}function Mf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=et(a,i.doc.direction);if(g){var y=u<0?ve(g):g[0],x=u<0==(y.level==1),_=x?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var z=Yo(i,a);k=u<0?a.text.length-1:0;var q=Dr(i,z,k).top;k=Ft(function(Q){return Dr(i,z,Q).top==q},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=Af(a,k,1))}else k=u<0?y.to:y.from;return new oe(l,k,_)}}return new oe(l,u<0?a.text.length:0,u<0?"before":"after")}function h_(n,i,a,l){var u=et(i,n.doc.direction);if(!u)return Lf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=zt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Lf(i,a,l);var x=function(ke,Le){return Af(i,ke instanceof oe?ke.ch:ke,Le)},_,k=function(ke){return n.options.lineWrapping?(_=_||Yo(n,i),Gp(n,i,_,ke)):{begin:0,end:i.text.length}},z=k(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var q=y.level==1==l<0,Q=x(a,q?1:-1);if(Q!=null&&(q?Q<=y.to&&Q<=z.end:Q>=y.from&&Q>=z.begin)){var Y=q?"before":"after";return new oe(a.line,Q,Y)}}var ae=function(ke,Le,Te){for(var $e=function(_t,Yt){return Yt?new oe(a.line,x(_t,1),"before"):new oe(a.line,_t,"after")};ke>=0&&ke<u.length;ke+=Le){var Fe=u[ke],Ie=Le>0==(Fe.level!=1),Je=Ie?Te.begin:x(Te.end,-1);if(Fe.from<=Je&&Je<Fe.to||(Je=Ie?Fe.from:x(Fe.to,-1),Te.begin<=Je&&Je<Te.end))return $e(Je,Ie)}},ge=ae(g+l,l,z);if(ge)return ge;var we=l>0?z.end:x(z.begin,-1);return we!=null&&!(l>0&&we==i.text.length)&&(ge=ae(l>0?0:u.length-1,l,k(we)),ge)?ge:null}var gl={selectAll:Cg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),X)},killLine:function(n){return as(n,function(i){if(i.empty()){var a=Re(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:oe(i.head.line+1,0)}:{from:i.head,to:oe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return as(n,function(i){return{from:oe(i.from().line,0),to:Ge(n.doc,oe(i.to().line+1,0))}})},delLineLeft:function(n){return as(n,function(i){return{from:oe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return as(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return as(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(oe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(oe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return qg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Ug(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return p_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Ug(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=G(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Fn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Re(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new oe(u.line,u.ch-1)),u.ch>0)u=new oe(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),oe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Re(n.doc,u.line-1).text;y&&(u=new oe(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),oe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Fn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);es(n)})},openLine:function(n){return n.replaceSelection(`
32
- `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function qg(n,i){var a=Re(n.doc,i),l=gr(a);return l!=a&&(i=C(l)),Mf(!0,n,l,i,1)}function p_(n,i){var a=Re(n.doc,i),l=Z1(a);return l!=a&&(i=C(l)),Mf(!0,n,a,i,-1)}function Ug(n,i){var a=qg(n,i.line),l=Re(n.doc,a.line),u=et(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return oe(a.line,y?0:g,a.sticky)}return a}function rc(n,i,a){if(typeof i=="string"&&(i=gl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=H}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function g_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ls(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ls(i,n.options.extraKeys,a,n)||ls(i,n.options.keyMap,a,n)}var v_=new le;function vl(n,i,a,l){var u=n.state.keySeq;if(u){if(Hg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:v_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),jg(n,u+" "+i,a,l))return!0}return jg(n,i,a,l)}function jg(n,i,a,l){var u=g_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Gt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(ln(a),df(n)),!!u}function Vg(n,i){var a=Wg(i,!0);return a?i.shiftKey&&!n.state.keySeq?vl(n,"Shift-"+a,i,function(l){return rc(n,l,!0)})||vl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return rc(n,l)}):vl(n,a,i,function(l){return rc(n,l)}):!1}function m_(n,i,a){return vl(n,"'"+a+"'",i,function(l){return rc(n,l,!0)})}var Nf=null;function Gg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(Ke(i)),!Ot(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Vg(i,n);E&&(Nf=l?a:null,!l&&a==88&&!Na&&(B?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!B&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&y_(i)}}function y_(n){var i=n.display.lineDiv;_e(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(P(i,"CodeMirror-crosshair"),sn(document,"keyup",a),sn(document,"mouseover",a))}De(document,"keyup",a),De(document,"mouseover",a)}function Kg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,n)}function Xg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ti(i.display,n)||Ot(i,n)||n.ctrlKey&&!n.altKey||B&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==Nf){Nf=null,ln(n);return}if(!(E&&(!n.which||n.which<10)&&Vg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(m_(i,n,u)||i.display.input.onKeyPress(n))}}}var b_=400,$f=function(n,i,a){this.time=n,this.pos=i,this.button=a};$f.prototype.compare=function(n,i,a){return this.time+b_>n&&Ae(i,this.pos)==0&&a==this.button};var ml,yl;function w_(n,i){var a=+new Date;return yl&&yl.compare(a,n,i)?(ml=yl=null,"triple"):ml&&ml.compare(a,n,i)?(yl=new $f(a,n,i),ml=null,"double"):(ml=new $f(a,n,i),yl=null,"single")}function Yg(n){var i=this,a=i.display;if(!(Ot(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ti(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Of(i,n)){var l=fo(i,n),u=fr(n),g=l?w_(l,u):"single";ee(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&x_(i,u,l,g,n))&&(u==1?l?S_(i,l,g,n):qs(n)==a.scroller&&ln(n):u==2?(l&&Za(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(J?i.display.input.onContextMenu(n):hf(i)))}}}function x_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,vl(n,Bg(g,u),u,function(y){if(typeof y=="string"&&(y=gl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=H}finally{n.state.suppressEdits=!1}return x})}function __(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=K?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=B?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(B?a.altKey:a.ctrlKey)),u}function S_(n,i,a,l){h?setTimeout(D(Zp,n),0):n.curOp.focus=me(Ke(n));var u=__(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Uu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ae((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ae(y.to(),i)>0||i.xRel<0)?k_(n,l,i,u):T_(n,l,i,u)}function k_(n,i,a,l){var u=n.display,g=!1,y=Kt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:hf(n)),sn(u.wrapper.ownerDocument,"mouseup",y),sn(u.wrapper.ownerDocument,"mousemove",x),sn(u.scroller,"dragstart",_),sn(u.scroller,"drop",y),g||(ln(k),l.addNew||Za(n.doc,a,null,null,l.extend),v&&!N||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,De(u.wrapper.ownerDocument,"mouseup",y),De(u.wrapper.ownerDocument,"mousemove",x),De(u.scroller,"dragstart",_),De(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Zg(n,i,a){if(a=="char")return new dt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new dt(oe(i.line,0),Ge(n.doc,oe(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function T_(n,i,a,l){h&&hf(n);var u=n.display,g=n.doc;ln(i);var y,x,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=k[x]:y=new dt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new dt(a,a)),a=fo(n,i,!0,!0),x=-1;else{var z=Zg(n,a,l.unit);l.extend?y=Cf(y,z.anchor,z.head,l.extend):y=z}l.addNew?x==-1?(x=k.length,an(g,mr(n,k.concat([y]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&l.unit=="char"&&!l.extend?(an(g,mr(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Ef(g,x,y,ue):(x=0,an(g,new Yn([y],0),ue),_=g.sel);var q=a;function Q(Te){if(Ae(q,Te)!=0)if(q=Te,l.unit=="rectangle"){for(var $e=[],Fe=n.options.tabSize,Ie=G(Re(g,a.line).text,a.ch,Fe),Je=G(Re(g,Te.line).text,Te.ch,Fe),_t=Math.min(Ie,Je),Yt=Math.max(Ie,Je),Lt=Math.min(a.line,Te.line),Hn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Lt<=Hn;Lt++){var kn=Re(g,Lt).text,Ht=de(kn,_t,Fe);_t==Yt?$e.push(new dt(oe(Lt,Ht),oe(Lt,Ht))):kn.length>Ht&&$e.push(new dt(oe(Lt,Ht),oe(Lt,de(kn,Yt,Fe))))}$e.length||$e.push(new dt(a,a)),an(g,mr(n,_.ranges.slice(0,x).concat($e),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var Tn=y,rn=Zg(n,Te,l.unit),qt=Tn.anchor,Bt;Ae(rn.anchor,qt)>0?(Bt=rn.head,qt=Go(Tn.from(),rn.anchor)):(Bt=rn.anchor,qt=xn(Tn.to(),rn.head));var Pt=_.ranges.slice(0);Pt[x]=C_(n,new dt(Ge(g,qt),Bt)),an(g,mr(n,Pt,x),ue)}}var Y=u.wrapper.getBoundingClientRect(),ae=0;function ge(Te){var $e=++ae,Fe=fo(n,Te,!0,l.unit=="rectangle");if(Fe)if(Ae(Fe,q)!=0){n.curOp.focus=me(Ke(n)),Q(Fe);var Ie=ja(u,g);(Fe.line>=Ie.to||Fe.line<Ie.from)&&setTimeout(Kt(n,function(){ae==$e&&ge(Te)}),150)}else{var Je=Te.clientY<Y.top?-20:Te.clientY>Y.bottom?20:0;Je&&setTimeout(Kt(n,function(){ae==$e&&(u.scroller.scrollTop+=Je,ge(Te))}),50)}}function we(Te){n.state.selectingText=!1,ae=1/0,Te&&(ln(Te),u.input.focus()),sn(u.wrapper.ownerDocument,"mousemove",ke),sn(u.wrapper.ownerDocument,"mouseup",Le),g.history.lastSelOrigin=null}var ke=Kt(n,function(Te){Te.buttons===0||!fr(Te)?we(Te):ge(Te)}),Le=Kt(n,we);n.state.selectingText=Le,De(u.wrapper.ownerDocument,"mousemove",ke),De(u.wrapper.ownerDocument,"mouseup",Le)}function C_(n,i){var a=i.anchor,l=i.head,u=Re(n.doc,a.line);if(Ae(a,l)==0&&a.sticky==l.sticky)return i;var g=et(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var _=y+(x.from==a.ch==(x.level!=1)?0:1);if(_==0||_==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var z=zt(g,l.ch,l.sticky),q=z-y||(l.ch-a.ch)*(x.level==1?-1:1);z==_-1||z==_?k=q<0:k=q>0}var Q=g[_+(k?-1:0)],Y=k==(Q.level==1),ae=Y?Q.from:Q.to,ge=Y?"after":"before";return a.ch==ae&&a.sticky==ge?i:new dt(new oe(a.line,ae,ge),l)}function Jg(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&ln(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Dn(n,a))return wn(i);g-=x.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var z=W(n.doc,g),q=n.display.gutterSpecs[_];return $t(n,a,n,z,q.className,i),wn(i)}}}function Of(n,i){return Jg(n,i,"gutterClick",!0)}function Qg(n,i){ti(n.display,i)||E_(n,i)||Ot(n,i,"contextmenu")||J||n.display.input.onContextMenu(i)}function E_(n,i){return Dn(n,"gutterContextMenu")?Jg(n,i,"gutterContextMenu",!1):!1}function ev(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Js(n)}var cs={toString:function(){return"CodeMirror.Init"}},tv={},ic={};function A_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,_,k){k!=cs&&g(x,_,k)}:g)}n.defineOption=a,n.Init=cs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Sf(l)},!0),a("indentUnit",2,Sf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){sl(l),Js(l),_n(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var k=0;;){var z=_.text.indexOf(u,k);if(z==-1)break;k=z+u.length,g.push(oe(y,z))}y++});for(var x=g.length-1;x>=0;x--)os(l.doc,u,g[x],oe(g[x].line,g[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=cs&&l.refresh()}),a("specialCharPlaceholder",rx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!j),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){ev(l),ol(l)},!0),a("keyMap","default",function(l,u,g){var y=nc(u),x=g!=cs&&nc(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,M_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=xf(u,l.options.lineNumbers),ol(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?cf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ts(l)},!0),a("scrollbarStyle","native",function(l){rg(l),ts(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=xf(l.options.gutters,u),ol(l)},!0),a("firstLineNumber",1,ol,!0),a("lineNumberFormatter",function(l){return l},ol,!0),a("showCursorWhenSelecting",!1,Qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Qo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,L_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Qs,!0),a("singleCursorHeightPerLine",!0,Qs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,sl,!0),a("addModeClass",!1,sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function L_(n,i,a){var l=a&&a!=cs;if(!i!=!l){var u=n.display.dragFunctions,g=i?De:sn;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function M_(n){n.options.lineWrapping?(_e(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(P(n.display.wrapper,"CodeMirror-wrap"),Ju(n)),uf(n),_n(n),Js(n),setTimeout(function(){return ts(n)},100)}function Et(n,i){var a=this;if(!(this instanceof Et))return new Et(n,i);this.options=i=i?Z(i):{},Z(tv,i,!1);var l=i.value;typeof l=="string"?l=new Sn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Et.inputStyles[i.inputStyle](this),g=this.display=new qx(n,l,u,i);g.wrapper.CodeMirror=this,ev(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),rg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!M&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),N_(this),a_(),vo(this),this.curOp.forceUpdate=!0,hg(this,l),i.autofocus&&!M||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&pf(a)},20):Qo(this);for(var y in ic)ic.hasOwnProperty(y)&&ic[y](this,i[y],cs);sg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<Rf.length;++x)Rf[x](this);mo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Et.defaults=tv,Et.optionHandlers=ic;function N_(n){var i=n.display;De(i.scroller,"mousedown",Kt(n,Yg)),h&&p<11?De(i.scroller,"dblclick",Kt(n,function(_){if(!Ot(n,_)){var k=fo(n,_);if(!(!k||Of(n,_)||ti(n.display,_))){ln(_);var z=n.findWordAt(k);Za(n.doc,z.anchor,z.head)}}})):De(i.scroller,"dblclick",function(_){return Ot(n,_)||ln(_)}),De(i.scroller,"contextmenu",function(_){return Qg(n,_)}),De(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||Qg(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var z=k.left-_.left,q=k.top-_.top;return z*z+q*q>20*20}De(i.scroller,"touchstart",function(_){if(!Ot(n,_)&&!g(_)&&!Of(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),De(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),De(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!ti(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var z=n.coordsChar(i.activeTouch,"page"),q;!k.prev||y(k,k.prev)?q=new dt(z,z):!k.prev.prev||y(k,k.prev.prev)?q=n.findWordAt(z):q=new dt(oe(z.line,0),Ge(n.doc,oe(z.line+1,0))),n.setSelection(q.anchor,q.head),n.focus(),ln(_)}u()}),De(i.scroller,"touchcancel",u),De(i.scroller,"scroll",function(){i.scroller.clientHeight&&(tl(n,i.scroller.scrollTop),po(n,i.scroller.scrollLeft,!0),$t(n,"scroll",n))}),De(i.scroller,"mousewheel",function(_){return cg(n,_)}),De(i.scroller,"DOMMouseScroll",function(_){return cg(n,_)}),De(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Ot(n,_)||xi(_)},over:function(_){Ot(n,_)||(l_(n,_),xi(_))},start:function(_){return s_(n,_)},drop:Kt(n,o_),leave:function(_){Ot(n,_)||zg(n)}};var x=i.input.getField();De(x,"keyup",function(_){return Kg.call(n,_)}),De(x,"keydown",Kt(n,Gg)),De(x,"keypress",Kt(n,Xg)),De(x,"focus",function(_){return pf(n,_)}),De(x,"blur",function(_){return Qo(n,_)})}var Rf=[];Et.defineInitHook=function(n){return Rf.push(n)};function bl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Gs(n,i).state:a="prev");var y=n.options.tabSize,x=Re(u,i),_=G(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],z;if(!l&&!/\S/.test(x.text))z=0,a="not";else if(a=="smart"&&(z=u.mode.indent(g,x.text.slice(k.length),x.text),z==H||z>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?z=G(Re(u,i-1).text,null,y):z=0:a=="add"?z=_+n.options.indentUnit:a=="subtract"?z=_-n.options.indentUnit:typeof a=="number"&&(z=_+a),z=Math.max(0,z);var q="",Q=0;if(n.options.indentWithTabs)for(var Y=Math.floor(z/y);Y;--Y)Q+=y,q+=" ";if(Q<z&&(q+=Ee(z-Q)),q!=k)return os(u,q,oe(i,0),oe(i,k.length),"+input"),x.stateAfter=null,!0;for(var ae=0;ae<u.sel.ranges.length;ae++){var ge=u.sel.ranges[ae];if(ge.head.line==i&&ge.head.ch<k.length){var we=oe(i,k.length);Ef(u,ae,new dt(we,we));break}}}var yr=null;function oc(n){yr=n}function Pf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,_=or(i),k=null;if(x&&l.ranges.length>1)if(yr&&yr.text.join(`
33
- `)==i){if(l.ranges.length%yr.text.length==0){k=[];for(var z=0;z<yr.text.length;z++)k.push(g.splitLines(yr.text[z]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=ye(_,function(ke){return[ke]}));for(var q=n.curOp.updateInput,Q=l.ranges.length-1;Q>=0;Q--){var Y=l.ranges[Q],ae=Y.from(),ge=Y.to();Y.empty()&&(a&&a>0?ae=oe(ae.line,ae.ch-a):n.state.overwrite&&!x?ge=oe(ge.line,Math.min(Re(g,ge.line).text.length,ge.ch+ve(_).length)):x&&yr&&yr.lineWise&&yr.text.join(`
34
- `)==_.join(`
35
- `)&&(ae=ge=oe(ae.line,0)));var we={from:ae,to:ge,text:k?k[Q%k.length]:_,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};is(n.doc,we),Gt(n,"inputRead",n,we)}i&&!x&&rv(n,i),es(n),n.curOp.updateInput<2&&(n.curOp.updateInput=q),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function nv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Fn(i,function(){return Pf(i,a,0,null,"paste")}),!0}function rv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=bl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Re(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=bl(n,u.head.line,"smart"));y&&Gt(n,"electricInput",n,u.head.line)}}}function iv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:oe(u,0),head:oe(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function If(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function ov(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),A&&(n.style.border="1px solid black"),i}function $_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){ee(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Kt(this,i[l])(this,u,y),$t(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](nc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:dn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");We(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,_n(this)}),removeOverlay:dn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,_n(this);return}}}),indentLine:dn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),fe(this.doc,l)&&bl(this,l,u,g)}),indentSelection:dn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(bl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&es(this));else{var _=x.from(),k=x.to(),z=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var q=z;q<g;++q)bl(this,q,l);var Q=this.doc.sel.ranges;_.ch==0&&u.length==Q.length&&Q[y].from().ch>0&&Ef(this.doc,y,new dt(_,Q[y].to()),X)}}}),getTokenAt:function(l,u){return gp(this,l,u)},getLineTokens:function(l,u){return gp(this,oe(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=dp(this,Re(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,_;if(x==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=x)y=k;else if(u[k*2+1]<x)g=k+1;else{_=u[k*2+2];break}}var z=_?_.indexOf("overlay "):-1;return z<0?_:z==0?null:_.slice(0,z-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var _=0;_<x[u].length;_++){var k=y[x[u][_]];k&&g.push(k)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var z=0;z<y._global.length;z++){var q=y._global[z];q.pred(x,this)&&pe(g,q.val)==-1&&g.push(q.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=cp(g,l??g.first+g.size-1),Gs(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ge(this.doc,l):g=l?y.from():y.to(),vr(this,g,u||"page")},charCoords:function(l,u){return Ba(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Up(this,l,u||"page"),sf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Up(this,{top:l,left:0},u||"page").top,W(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),x=Re(this.doc,l)}else x=l;return Ha(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ei(x):0)},defaultTextHeight:function(){return Zo(this.display)},defaultCharWidth:function(){return Jo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var _=this.display;l=vr(this,Ge(this.doc,l));var k=l.bottom,z=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var q=Math.max(_.wrapper.clientHeight,this.doc.height),Q=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>q)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=q&&(k=l.bottom),z+u.offsetWidth>Q&&(z=Q-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",x=="right"?(z=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?z=0:x=="middle"&&(z=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=z+"px"),g&&Lx(this,{left:z,top:k,right:z+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:dn(Gg),triggerOnKeyPress:dn(Xg),triggerOnKeyUp:Kg,triggerOnMouseDown:dn(Yg),execCommand:function(l){if(gl.hasOwnProperty(l))return gl[l].call(null,this)},triggerElectric:dn(function(l){rv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var _=Ge(this.doc,l),k=0;k<u&&(_=zf(this.doc,_,x,g,y),!_.hitSide);++k);return _},moveH:dn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?zf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:dn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):as(this,function(x){var _=zf(y,x.head,l,u,!1);return l<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(l,u,g,y){var x=1,_=y;u<0&&(x=-1,u=-u);for(var k=Ge(this.doc,l),z=0;z<u;++z){var q=vr(this,k,"div");if(_==null?_=q.left:q.left=_,k=sv(this,q,x,g),k.hitSide)break}return k},moveV:dn(function(l,u){var g=this,y=this.doc,x=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(z){if(_)return l<0?z.from():z.to();var q=vr(g,z.head,"div");z.goalColumn!=null&&(q.left=z.goalColumn),x.push(q.left);var Q=sv(g,q,l,u);return u=="page"&&z==y.sel.primary()&&vf(g,Ba(g,Q,"div").top-q.top),Q},he),x.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=x[k]}),findWordAt:function(l){var u=this.doc,g=Re(u,l.line).text,y=l.ch,x=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var k=g.charAt(y),z=ot(k,_)?function(q){return ot(q,_)}:/\s/.test(k)?function(q){return/\s/.test(q)}:function(q){return!/\s/.test(q)&&!ot(q)};y>0&&z(g.charAt(y-1));)--y;for(;x<g.length&&z(g.charAt(x));)++x}return new dt(oe(l.line,y),oe(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),$t(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Ke(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dn(function(l,u){el(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-zr(this)-this.display.barHeight,width:l.scrollWidth-zr(this)-this.display.barWidth,clientHeight:tf(this),clientWidth:co(this)}},scrollIntoView:dn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:oe(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Mx(this,l):Qp(this,l.from,l.to,l.margin)}),setSize:dn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Bp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){Ci(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,$t(this,"refresh",this)}),operation:function(l){return Fn(this,l)},startOperation:function(){return vo(this)},endOperation:function(){return mo(this)},refresh:dn(function(){var l=this.display.cachedTextHeight;_n(this),this.curOp.forceUpdate=!0,Js(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),bf(this.display),(l==null||Math.abs(l-Zo(this.display))>.5||this.options.lineWrapping)&&uf(this),$t(this,"refresh",this)}),swapDoc:dn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),hg(this,l),Js(this),this.display.input.reset(),el(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Gt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ur(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function zf(n,i,a,l,u){var g=i,y=a,x=Re(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Le=i.line+_;return Le<n.first||Le>=n.first+n.size?!1:(i=new oe(Le,i.ch,i.sticky),x=Re(n,Le))}function z(Le){var Te;if(l=="codepoint"){var $e=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN($e))Te=null;else{var Fe=a>0?$e>=55296&&$e<56320:$e>=56320&&$e<57343;Te=new oe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Fe?2:1))),-a)}}else u?Te=h_(n.cm,x,i,a):Te=Lf(x,i,a);if(Te==null)if(!Le&&k())i=Mf(u,n.cm,x,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")z();else if(l=="column")z(!0);else if(l=="word"||l=="group")for(var q=null,Q=l=="group",Y=n.cm&&n.cm.getHelper(i,"wordChars"),ae=!0;!(a<0&&!z(!ae));ae=!1){var ge=x.text.charAt(i.ch)||`
36
- `,we=ot(ge,Y)?"w":Q&&ge==`
37
- `?"n":!Q||/\s/.test(ge)?null:"p";if(Q&&!ae&&!we&&(we="s"),q&&q!=we){a<0&&(a=1,z(),i.sticky="after");break}if(we&&(q=we),a>0&&!z(!ae))break}var ke=Qa(n,i,g,y,!0);return ft(g,ke)&&(ke.hitSide=!0),ke}function sv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,ee(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(x-.5*Zo(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=sf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,If(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(x){for(var _=x.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}De(u,"paste",function(x){!g(x)||Ot(l,x)||nv(x,l)||p<=11&&setTimeout(Kt(l,function(){return i.updateFromDOM()}),20)}),De(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),De(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),De(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),De(u,"touchstart",function(){return a.forceCompositionEnd()}),De(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Ot(l,x))){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=iv(l);oc({lineWise:!0,text:_.text}),x.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,X),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var k=yr.text.join(`
38
- `);if(x.clipboardData.setData("Text",k),x.clipboardData.getData("Text")==k){x.preventDefault();return}}var z=ov(),q=z.firstChild;If(q),l.display.lineSpace.insertBefore(z,l.display.lineSpace.firstChild),q.value=yr.text.join(`
39
- `);var Q=me(Xe(u));qe(q),setTimeout(function(){l.display.lineSpace.removeChild(z),Q.focus(),Q==u&&a.showPrimarySelection()},50)}}De(u,"copy",y),De(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Yp(this.cm,!1);return n.focus=me(Xe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=sc(i,n.anchorNode,n.anchorOffset),y=sc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ae(Go(g,y),l)==0&&Ae(xn(g,y),u)==0)){var x=i.display.view,_=l.line>=i.display.viewFrom&&lv(i,l)||{node:x[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&lv(i,u);if(!k){var z=x[x.length-1].measure,q=z.maps?z.maps[z.maps.length-1]:z.map;k={node:q[q.length-1],offset:q[q.length-2]-q[q.length-3]}}if(!_||!k){n.removeAllRanges();return}var Q=n.rangeCount&&n.getRangeAt(0),Y;try{Y=V(_.node,_.offset,k.offset,k.node)}catch{}Y&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Y.collapsed||(n.removeAllRanges(),n.addRange(Y))):(n.removeAllRanges(),n.addRange(Y)),Q&&n.anchorNode==null?n.addRange(Q):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){O(this.cm.display.cursorDiv,n.cursors),O(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return se(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(Xe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Fn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&b&&this.cm.display.gutterSpecs.length&&O_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=sc(i,n.anchorNode,n.anchorOffset),l=sc(i,n.focusNode,n.focusOffset);a&&l&&Fn(i,function(){an(i.doc,Ai(a,l),X),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=oe(l.line-1,Re(n.doc,l.line-1).length)),u.ch==Re(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=oe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=ho(n,l.line))==0?(y=C(i.view[0].line),x=i.view[0].node):(y=C(i.view[g].line),x=i.view[g-1].node.nextSibling);var _=ho(n,u.line),k,z;if(_==i.view.length-1?(k=i.viewTo-1,z=i.lineDiv.lastChild):(k=C(i.view[_+1].line)-1,z=i.view[_+1].node.previousSibling),!x)return!1;for(var q=n.doc.splitLines(R_(n,x,z,y,k)),Q=Jr(n.doc,oe(y,0),oe(k,Re(n.doc,k).text.length));q.length>1&&Q.length>1;)if(ve(q)==ve(Q))q.pop(),Q.pop(),k--;else if(q[0]==Q[0])q.shift(),Q.shift(),y++;else break;for(var Y=0,ae=0,ge=q[0],we=Q[0],ke=Math.min(ge.length,we.length);Y<ke&&ge.charCodeAt(Y)==we.charCodeAt(Y);)++Y;for(var Le=ve(q),Te=ve(Q),$e=Math.min(Le.length-(q.length==1?Y:0),Te.length-(Q.length==1?Y:0));ae<$e&&Le.charCodeAt(Le.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)++ae;if(q.length==1&&Q.length==1&&y==l.line)for(;Y&&Y>l.ch&&Le.charCodeAt(Le.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)Y--,ae++;q[q.length-1]=Le.slice(0,Le.length-ae).replace(/^\u200b+/,""),q[0]=q[0].slice(Y).replace(/\u200b+$/,"");var Fe=oe(y,Y),Ie=oe(k,Q.length?ve(Q).length-ae:0);if(q.length>1||q[0]||Ae(Fe,Ie))return os(n.doc,q,Fe,Ie,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Fn(this.cm,function(){return _n(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Pf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function lv(n,i){var a=nf(n,i.line);if(!a||a.hidden)return null;var l=Re(n.doc,i.line),u=Ip(a,l,i.line),g=et(l,n.doc.direction),y="left";if(g){var x=zt(g,i.ch);y=x%2?"right":"left"}var _=Fp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function O_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function us(n,i){return i&&(n.bad=!0),n}function R_(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),_=!1;function k(Y){return function(ae){return ae.id==Y}}function z(){y&&(g+=x,_&&(g+=x),y=_=!1)}function q(Y){Y&&(z(),g+=Y)}function Q(Y){if(Y.nodeType==1){var ae=Y.getAttribute("cm-text");if(ae){q(ae);return}var ge=Y.getAttribute("cm-marker"),we;if(ge){var ke=n.findMarks(oe(l,0),oe(u+1,0),k(+ge));ke.length&&(we=ke[0].find(0))&&q(Jr(n.doc,we.from,we.to).join(x));return}if(Y.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Le&&z();for(var Te=0;Te<Y.childNodes.length;Te++)Q(Y.childNodes[Te]);/^(pre|p)$/i.test(Y.nodeName)&&(_=!0),Le&&(y=!0)}else Y.nodeType==3&&q(Y.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Q(i),i!=a;)i=i.nextSibling,_=!1;return g}function sc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return us(n.clipPos(oe(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return P_(g,i,a)}}function P_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!se(l,i))return us(oe(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ve(n.rest):n.line;return us(oe(C(g),g.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var _=n.measure,k=_.maps;function z(we,ke,Le){for(var Te=-1;Te<(k?k.length:0);Te++)for(var $e=Te<0?_.map:k[Te],Fe=0;Fe<$e.length;Fe+=3){var Ie=$e[Fe+2];if(Ie==we||Ie==ke){var Je=C(Te<0?n.line:n.rest[Te]),_t=$e[Fe]+Le;return(Le<0||Ie!=we)&&(_t=$e[Fe+(Le?1:0)]),oe(Je,_t)}}}var q=z(y,x,a);if(q)return us(q,u);for(var Q=x.nextSibling,Y=y?y.nodeValue.length-a:0;Q;Q=Q.nextSibling){if(q=z(Q,Q.firstChild,0),q)return us(oe(q.line,q.ch-Y),u);Y+=Q.textContent.length}for(var ae=x.previousSibling,ge=a;ae;ae=ae.previousSibling){if(q=z(ae,ae.firstChild,-1),q)return us(oe(q.line,q.ch+ge),u);ge+=ae.textContent.length}}var Dt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Dt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),A&&(u.style.width="0px"),De(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),De(u,"paste",function(y){Ot(l,y)||nv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Ot(l,y)){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=iv(l);oc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,X):(a.prevInput="",u.value=x.text.join(`
40
- `),qe(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}De(u,"cut",g),De(u,"copy",g),De(n.scroller,"paste",function(y){if(!(ti(n,y)||Ot(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),De(n.lineSpace,"selectstart",function(y){ti(n,y)||ln(y)}),De(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),De(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Dt.prototype.createField=function(n){this.wrapper=ov(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;If(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Dt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Dt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Yp(n);if(n.options.moveInputWithCursor){var u=vr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Dt.prototype.showSelection=function(n){var i=this.cm,a=i.display;O(a.cursorDiv,n.cursors),O(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Dt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&qe(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Dt.prototype.getField=function(){return this.textarea},Dt.prototype.supportsTouch=function(){return!1},Dt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||me(Xe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Dt.prototype.blur=function(){this.textarea.blur()},Dt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dt.prototype.receivedFocus=function(){this.slowPoll()},Dt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Dt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Dt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Si(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||B&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Fn(i,function(){Pf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
41
- `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Dt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Dt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=fo(a,n),y=l.scroller.scrollTop;if(!g||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Kt(a,an)(a.doc,Ai(g),X);var _=u.style.cssText,k=i.wrapper.style.cssText,z=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
42
- top: `+(n.clientY-z.top-5)+"px; left: "+(n.clientX-z.left-5)+`px;
43
- z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
44
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var q;v&&(q=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,q),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Y,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function Q(){if(u.selectionStart!=null){var ge=a.somethingSelected(),we="​"+(ge?u.value:"");u.value="⇚",u.value=we,i.prevInput=ge?"":"​",u.selectionStart=1,u.selectionEnd=we.length,l.selForContextMenu=a.doc.sel}}function Y(){if(i.contextMenuPending==Y&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&Q();var ge=0,we=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Kt(a,Cg)(a):ge++<10?l.detectingSelectAll=setTimeout(we,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(we,200)}}if(h&&p>=9&&Q(),J){xi(n);var ae=function(){sn(window,"mouseup",ae),setTimeout(Y,20)};De(window,"mouseup",ae)}else setTimeout(Y,50)},Dt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Dt.prototype.setUneditable=function(){},Dt.prototype.needsContentAttribute=!1;function I_(n,i){if(i=i?Z(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=me(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(De(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(sn(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Et(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return x}function z_(n){n.off=sn,n.on=De,n.wheelEventPixels=Ux,n.Doc=Sn,n.splitLines=or,n.countColumn=G,n.findColumn=de,n.isWordChar=tt,n.Pass=H,n.signal=$t,n.Line=Ko,n.changeEnd=Li,n.scrollbarModel=ng,n.Pos=oe,n.cmpPos=Ae,n.modes=Wo,n.mimeModes=hr,n.resolveMode=qo,n.getMode=Uo,n.modeExtensions=ki,n.extendMode=jo,n.copyState=Pr,n.startState=Vo,n.innerMode=js,n.commands=gl,n.keyMap=ri,n.keyName=Wg,n.isModifierKey=Hg,n.lookupKey=ls,n.normalizeKeyMap=d_,n.StringStream=Rt,n.SharedTextMarker=dl,n.TextMarker=Ni,n.LineWidget=fl,n.e_preventDefault=ln,n.e_stopPropagation=Ho,n.e_stop=xi,n.addClass=_e,n.contains=se,n.rmClass=P,n.keyNames=$i}A_(Et),$_(Et);var D_="iter insert remove copy getEditor constructor".split(" ");for(var lc in Sn.prototype)Sn.prototype.hasOwnProperty(lc)&&pe(D_,lc)<0&&(Et.prototype[lc]=function(n){return function(){return n.apply(this.doc,arguments)}}(Sn.prototype[lc]));return ur(Sn),Et.inputStyles={textarea:Dt,contenteditable:yt},Et.defineMode=function(n){!Et.defaults.mode&&n!="null"&&(Et.defaults.mode=n),pr.apply(this,arguments)},Et.defineMIME=ao,Et.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Et.defineMIME("text/plain","null"),Et.defineExtension=function(n,i){Et.prototype[n]=i},Et.defineDocExtension=function(n,i){Sn.prototype[n]=i},Et.fromTextArea=I_,z_(Et),Et.version="5.65.18",Et})}(Nc)),Nc.exports}var qce=Ws();const Uce=xw(qce);var Fm={exports:{}},Hm;function Iw(){return Hm||(Hm=1,function(e,t){(function(r){r(Ws())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(Vt){return{type:Vt,style:"keyword"}}var W=C("keyword a"),fe=C("keyword b"),be=C("keyword c"),oe=C("keyword d"),Ae=C("operator"),ft={type:"atom",style:"atom"};return{if:C("if"),while:W,with:W,else:fe,do:fe,try:fe,finally:fe,return:oe,break:oe,continue:oe,new:C("new"),delete:be,void:be,throw:be,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ae,typeof:Ae,instanceof:Ae,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:C("this"),class:C("class"),super:C("atom"),yield:be,export:C("export"),import:C("import"),extends:be,await:be}}(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(C){for(var W=!1,fe,be=!1;(fe=C.next())!=null;){if(!W){if(fe=="/"&&!be)return;fe=="["?be=!0:be&&fe=="]"&&(be=!1)}W=!W&&fe=="\\"}}var T,L;function A(C,W,fe){return T=C,L=fe,W}function R(C,W){var fe=C.next();if(fe=='"'||fe=="'")return W.tokenize=M(fe),W.tokenize(C,W);if(fe=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(fe=="."&&C.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return A(fe);if(fe=="="&&C.eat(">"))return A("=>","operator");if(fe=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(fe))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(fe=="/")return C.eat("*")?(W.tokenize=B,B(C,W)):C.eat("/")?(C.skipToEnd(),A("comment","comment")):Xn(C,W,1)?(N(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(C.eat("="),A("operator","operator",C.current()));if(fe=="`")return W.tokenize=K,K(C,W);if(fe=="#"&&C.peek()=="!")return C.skipToEnd(),A("meta","meta");if(fe=="#"&&C.eatWhile(m))return A("variable","property");if(fe=="<"&&C.match("!--")||fe=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),A("comment","comment");if(w.test(fe))return(fe!=">"||!W.lexical||W.lexical.type!=">")&&(C.eat("=")?(fe=="!"||fe=="=")&&C.eat("="):/[<>*+\-|&?]/.test(fe)&&(C.eat(fe),fe==">"&&C.eat(fe))),fe=="?"&&C.eat(".")?A("."):A("operator","operator",C.current());if(m.test(fe)){C.eatWhile(m);var be=C.current();if(W.lastType!="."){if(b.propertyIsEnumerable(be)){var oe=b[be];return A(oe.type,oe.style,be)}if(be=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",be)}return A("variable","variable",be)}}function M(C){return function(W,fe){var be=!1,oe;if(d&&W.peek()=="@"&&W.match(E))return fe.tokenize=R,A("jsonld-keyword","meta");for(;(oe=W.next())!=null&&!(oe==C&&!be);)be=!be&&oe=="\\";return be||(fe.tokenize=R),A("string","string")}}function B(C,W){for(var fe=!1,be;be=C.next();){if(be=="/"&&fe){W.tokenize=R;break}fe=be=="*"}return A("comment","comment")}function K(C,W){for(var fe=!1,be;(be=C.next())!=null;){if(!fe&&(be=="`"||be=="$"&&C.eat("{"))){W.tokenize=R;break}fe=!fe&&be=="\\"}return A("quasi","string-2",C.current())}var j="([{}])";function ne(C,W){W.fatArrowAt&&(W.fatArrowAt=null);var fe=C.string.indexOf("=>",C.start);if(!(fe<0)){if(v){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,fe));be&&(fe=be.index)}for(var oe=0,Ae=!1,ft=fe-1;ft>=0;--ft){var Vt=C.string.charAt(ft),xn=j.indexOf(Vt);if(xn>=0&&xn<3){if(!oe){++ft;break}if(--oe==0){Vt=="("&&(Ae=!0);break}}else if(xn>=3&&xn<6)++oe;else if(m.test(Vt))Ae=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Go=C.string.charAt(ft-1);if(Go==Vt&&C.string.charAt(ft-2)!="\\"){ft--;break}}else if(Ae&&!oe){++ft;break}}Ae&&!oe&&(W.fatArrowAt=ft)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function J(C,W,fe,be,oe,Ae){this.indented=C,this.column=W,this.type=fe,this.prev=oe,this.info=Ae,be!=null&&(this.align=be)}function re(C,W){if(!p)return!1;for(var fe=C.localVars;fe;fe=fe.next)if(fe.name==W)return!0;for(var be=C.context;be;be=be.prev)for(var fe=be.vars;fe;fe=fe.next)if(fe.name==W)return!0}function P(C,W,fe,be,oe){var Ae=C.cc;for($.state=C,$.stream=oe,$.marked=null,$.cc=Ae,$.style=W,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ft=Ae.length?Ae.pop():h?pe:G;if(ft(fe,be)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return $.marked?$.marked:fe=="variable"&&re(C,be)?"variable-2":W}}}var $={state:null,marked:null,cc:null};function O(){for(var C=arguments.length-1;C>=0;C--)$.cc.push(arguments[C])}function S(){return O.apply(null,arguments),!0}function F(C,W){for(var fe=W;fe;fe=fe.next)if(fe.name==C)return!0;return!1}function V(C){var W=$.state;if($.marked="def",!!p){if(W.context){if(W.lexical.info=="var"&&W.context&&W.context.block){var fe=se(C,W.context);if(fe!=null){W.context=fe;return}}else if(!F(C,W.localVars)){W.localVars=new Pe(C,W.localVars);return}}s.globalVars&&!F(C,W.globalVars)&&(W.globalVars=new Pe(C,W.globalVars))}}function se(C,W){if(W)if(W.block){var fe=se(C,W.prev);return fe?fe==W.prev?W:new _e(fe,W.vars,!0):null}else return F(C,W.vars)?W:new _e(W.prev,new Pe(C,W.vars),!1);else return null}function me(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function _e(C,W,fe){this.prev=C,this.vars=W,this.block=fe}function Pe(C,W){this.name=C,this.next=W}var qe=new Pe("this",new Pe("arguments",null));function Ze(){$.state.context=new _e($.state.context,$.state.localVars,!1),$.state.localVars=qe}function Ke(){$.state.context=new _e($.state.context,$.state.localVars,!0),$.state.localVars=null}Ze.lex=Ke.lex=!0;function Xe(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}Xe.lex=!0;function ee(C,W){var fe=function(){var be=$.state,oe=be.indented;if(be.lexical.type=="stat")oe=be.lexical.indented;else for(var Ae=be.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)oe=Ae.indented;be.lexical=new J(oe,$.stream.column(),C,null,be.lexical,W)};return fe.lex=!0,fe}function D(){var C=$.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}D.lex=!0;function Z(C){function W(fe){return fe==C?S():C==";"||fe=="}"||fe==")"||fe=="]"?O():S(W)}return W}function G(C,W){return C=="var"?S(ee("vardef",W),Ho,Z(";"),D):C=="keyword a"?S(ee("form"),H,G,D):C=="keyword b"?S(ee("form"),G,D):C=="keyword d"?$.stream.match(/^\s*$/,!1)?S():S(ee("stat"),ue,Z(";"),D):C=="debugger"?S(Z(";")):C=="{"?S(ee("}"),Ke,Ft,D,Xe):C==";"?S():C=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==D&&$.state.cc.pop()(),S(ee("form"),H,G,D,Bo)):C=="function"?S(or):C=="for"?S(ee("form"),Ke,Ma,G,Xe,D):C=="class"||v&&W=="interface"?($.marked="keyword",S(ee("form",C=="class"?C:W),Wo,D)):C=="variable"?v&&W=="declare"?($.marked="keyword",S(G)):v&&(W=="module"||W=="enum"||W=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",W=="enum"?S(Re):W=="type"?S(Na,Z("operator"),et,Z(";")):S(ee("form"),wn,Z("{"),ee("}"),Ft,D,D)):v&&W=="namespace"?($.marked="keyword",S(ee("form"),pe,G,D)):v&&W=="abstract"?($.marked="keyword",S(G)):S(ee("stat"),je):C=="switch"?S(ee("form"),H,Z("{"),ee("}","switch"),Ke,Ft,D,D,Xe):C=="case"?S(pe,Z(":")):C=="default"?S(Z(":")):C=="catch"?S(ee("form"),Ze,le,G,D,Xe):C=="export"?S(ee("stat"),qo,D):C=="import"?S(ee("stat"),ki,D):C=="async"?S(G):W=="@"?S(pe,G):O(ee("stat"),pe,Z(";"),D)}function le(C){if(C=="(")return S(dr,Z(")"))}function pe(C,W){return X(C,W,!1)}function I(C,W){return X(C,W,!0)}function H(C){return C!="("?O():S(ee(")"),ue,Z(")"),D)}function X(C,W,fe){if($.state.fatArrowAt==$.stream.start){var be=fe?ye:ve;if(C=="(")return S(Ze,ee(")"),st(dr,")"),D,Z("=>"),be,Xe);if(C=="variable")return O(Ze,wn,Z("=>"),be,Xe)}var oe=fe?de:he;return te.hasOwnProperty(C)?S(oe):C=="function"?S(or,oe):C=="class"||v&&W=="interface"?($.marked="keyword",S(ee("form"),ju,D)):C=="keyword c"||C=="async"?S(fe?I:pe):C=="("?S(ee(")"),ue,Z(")"),D,oe):C=="operator"||C=="spread"?S(fe?I:pe):C=="["?S(ee("]"),Rt,D,oe):C=="{"?jt(ot,"}",null,oe):C=="quasi"?O(Ce,oe):C=="new"?S(We(fe)):S()}function ue(C){return C.match(/[;\}\)\],]/)?O():O(pe)}function he(C,W){return C==","?S(ue):de(C,W,!1)}function de(C,W,fe){var be=fe==!1?he:de,oe=fe==!1?pe:I;if(C=="=>")return S(Ze,fe?ye:ve,Xe);if(C=="operator")return/\+\+|--/.test(W)||v&&W=="!"?S(be):v&&W=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(ee(">"),st(et,">"),D,be):W=="?"?S(pe,Z(":"),oe):S(oe);if(C=="quasi")return O(Ce,be);if(C!=";"){if(C=="(")return jt(I,")","call",be);if(C==".")return S(tt,be);if(C=="[")return S(ee("]"),ue,Z("]"),D,be);if(v&&W=="as")return $.marked="keyword",S(et,be);if(C=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),S(oe)}}function Ce(C,W){return C!="quasi"?O():W.slice(W.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(C){if(C=="}")return $.marked="string-2",$.state.tokenize=K,S(Ce)}function ve(C){return ne($.stream,$.state),O(C=="{"?G:pe)}function ye(C){return ne($.stream,$.state),O(C=="{"?G:I)}function We(C){return function(W){return W=="."?S(C?ze:Ne):W=="variable"&&v?S(Dn,C?de:he):O(C?I:pe)}}function Ne(C,W){if(W=="target")return $.marked="keyword",S(he)}function ze(C,W){if(W=="target")return $.marked="keyword",S(de)}function je(C){return C==":"?S(D,G):O(he,Z(";"),D)}function tt(C){if(C=="variable")return $.marked="property",S()}function ot(C,W){if(C=="async")return $.marked="property",S(ot);if(C=="variable"||$.style=="keyword"){if($.marked="property",W=="get"||W=="set")return S(lt);var fe;return v&&$.state.fatArrowAt==$.stream.start&&(fe=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+fe[0].length),S(Nt)}else{if(C=="number"||C=="string")return $.marked=d?"property":$.style+" property",S(Nt);if(C=="jsonld-keyword")return S(Nt);if(v&&me(W))return $.marked="keyword",S(ot);if(C=="[")return S(pe,In,Z("]"),Nt);if(C=="spread")return S(I,Nt);if(W=="*")return $.marked="keyword",S(ot);if(C==":")return O(Nt)}}function lt(C){return C!="variable"?O(Nt):($.marked="property",S(or))}function Nt(C){if(C==":")return S(I);if(C=="(")return O(or)}function st(C,W,fe){function be(oe,Ae){if(fe?fe.indexOf(oe)>-1:oe==","){var ft=$.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),S(function(Vt,xn){return Vt==W||xn==W?O():O(C)},be)}return oe==W||Ae==W?S():fe&&fe.indexOf(";")>-1?O(C):S(Z(W))}return function(oe,Ae){return oe==W||Ae==W?S():O(C,be)}}function jt(C,W,fe){for(var be=3;be<arguments.length;be++)$.cc.push(arguments[be]);return S(ee(W,fe),st(C,W),D)}function Ft(C){return C=="}"?S():O(G,Ft)}function In(C,W){if(v){if(C==":")return S(et);if(W=="?")return S(In)}}function Rr(C,W){if(v&&(C==":"||W=="in"))return S(et)}function zt(C){if(v&&C==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,zn,et):S(et)}function zn(C,W){if(W=="is")return $.marked="keyword",S()}function et(C,W){if(W=="keyof"||W=="typeof"||W=="infer"||W=="readonly")return $.marked="keyword",S(W=="typeof"?I:et);if(C=="variable"||W=="void")return $.marked="type",S(ir);if(W=="|"||W=="&")return S(et);if(C=="string"||C=="number"||C=="atom")return S(ir);if(C=="[")return S(ee("]"),st(et,"]",","),D,ir);if(C=="{")return S(ee("}"),De,D,ir);if(C=="(")return S(st(Ot,")"),La,ir);if(C=="<")return S(st(et,">"),et);if(C=="quasi")return O(sn,ir)}function La(C){if(C=="=>")return S(et)}function De(C){return C.match(/[\}\)\]]/)?S():C==","||C==";"?S(De):O(Zr,De)}function Zr(C,W){if(C=="variable"||$.style=="keyword")return $.marked="property",S(Zr);if(W=="?"||C=="number"||C=="string")return S(Zr);if(C==":")return S(et);if(C=="[")return S(Z("variable"),Rr,Z("]"),Zr);if(C=="(")return O(Si,Zr);if(!C.match(/[;\}\)\],]/))return S()}function sn(C,W){return C!="quasi"?O():W.slice(W.length-2)!="${"?S(sn):S(et,$t)}function $t(C){if(C=="}")return $.marked="string-2",$.state.tokenize=K,S(sn)}function Ot(C,W){return C=="variable"&&$.stream.match(/^\s*[?:]/,!1)||W=="?"?S(Ot):C==":"?S(et):C=="spread"?S(Ot):O(et)}function ir(C,W){if(W=="<")return S(ee(">"),st(et,">"),D,ir);if(W=="|"||C=="."||W=="&")return S(et);if(C=="[")return S(et,Z("]"),ir);if(W=="extends"||W=="implements")return $.marked="keyword",S(et);if(W=="?")return S(et,Z(":"),et)}function Dn(C,W){if(W=="<")return S(ee(">"),st(et,">"),D,ir)}function ur(){return O(et,ln)}function ln(C,W){if(W=="=")return S(et)}function Ho(C,W){return W=="enum"?($.marked="keyword",S(Re)):O(wn,In,fr,Uu)}function wn(C,W){if(v&&me(W))return $.marked="keyword",S(wn);if(C=="variable")return V(W),S();if(C=="spread")return S(wn);if(C=="[")return jt(qs,"]");if(C=="{")return jt(xi,"}")}function xi(C,W){return C=="variable"&&!$.stream.match(/^\s*:/,!1)?(V(W),S(fr)):(C=="variable"&&($.marked="property"),C=="spread"?S(wn):C=="}"?O():C=="["?S(pe,Z("]"),Z(":"),xi):S(Z(":"),wn,fr))}function qs(){return O(wn,fr)}function fr(C,W){if(W=="=")return S(I)}function Uu(C){if(C==",")return S(Ho)}function Bo(C,W){if(C=="keyword b"&&W=="else")return S(ee("form","else"),G,D)}function Ma(C,W){if(W=="await")return S(Ma);if(C=="(")return S(ee(")"),Us,D)}function Us(C){return C=="var"?S(Ho,_i):C=="variable"?S(_i):O(_i)}function _i(C,W){return C==")"?S():C==";"?S(_i):W=="in"||W=="of"?($.marked="keyword",S(pe,_i)):O(pe,_i)}function or(C,W){if(W=="*")return $.marked="keyword",S(or);if(C=="variable")return V(W),S(or);if(C=="(")return S(Ze,ee(")"),st(dr,")"),D,zt,G,Xe);if(v&&W=="<")return S(ee(">"),st(ur,">"),D,or)}function Si(C,W){if(W=="*")return $.marked="keyword",S(Si);if(C=="variable")return V(W),S(Si);if(C=="(")return S(Ze,ee(")"),st(dr,")"),D,zt,Xe);if(v&&W=="<")return S(ee(">"),st(ur,">"),D,Si)}function Na(C,W){if(C=="keyword"||C=="variable")return $.marked="type",S(Na);if(W=="<")return S(ee(">"),st(ur,">"),D)}function dr(C,W){return W=="@"&&S(pe,dr),C=="spread"?S(dr):v&&me(W)?($.marked="keyword",S(dr)):v&&C=="this"?S(In,fr):O(wn,In,fr)}function ju(C,W){return C=="variable"?Wo(C,W):hr(C,W)}function Wo(C,W){if(C=="variable")return V(W),S(hr)}function hr(C,W){if(W=="<")return S(ee(">"),st(ur,">"),D,hr);if(W=="extends"||W=="implements"||v&&C==",")return W=="implements"&&($.marked="keyword"),S(v?et:pe,hr);if(C=="{")return S(ee("}"),pr,D)}function pr(C,W){if(C=="async"||C=="variable"&&(W=="static"||W=="get"||W=="set"||v&&me(W))&&$.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return $.marked="keyword",S(pr);if(C=="variable"||$.style=="keyword")return $.marked="property",S(ao,pr);if(C=="number"||C=="string")return S(ao,pr);if(C=="[")return S(pe,In,Z("]"),ao,pr);if(W=="*")return $.marked="keyword",S(pr);if(v&&C=="(")return O(Si,pr);if(C==";"||C==",")return S(pr);if(C=="}")return S();if(W=="@")return S(pe,pr)}function ao(C,W){if(W=="!"||W=="?")return S(ao);if(C==":")return S(et,fr);if(W=="=")return S(I);var fe=$.state.lexical.prev,be=fe&&fe.info=="interface";return O(be?Si:or)}function qo(C,W){return W=="*"?($.marked="keyword",S(Vo,Z(";"))):W=="default"?($.marked="keyword",S(pe,Z(";"))):C=="{"?S(st(Uo,"}"),Vo,Z(";")):O(G)}function Uo(C,W){if(W=="as")return $.marked="keyword",S(Z("variable"));if(C=="variable")return O(I,Uo)}function ki(C){return C=="string"?S():C=="("?O(pe):C=="."?O(he):O(jo,Pr,Vo)}function jo(C,W){return C=="{"?jt(jo,"}"):(C=="variable"&&V(W),W=="*"&&($.marked="keyword"),S(js))}function Pr(C){if(C==",")return S(jo,Pr)}function js(C,W){if(W=="as")return $.marked="keyword",S(jo)}function Vo(C,W){if(W=="from")return $.marked="keyword",S(pe)}function Rt(C){return C=="]"?S():O(st(I,"]"))}function Re(){return O(ee("form"),wn,Z("{"),ee("}"),st(Jr,"}"),D,D)}function Jr(){return O(wn,fr)}function Vs(C,W){return C.lastType=="operator"||C.lastType==","||w.test(W.charAt(0))||/[,.]/.test(W.charAt(0))}function Xn(C,W,fe){return W.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(W.lastType)||W.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(fe||0)))}return{startState:function(C){var W={tokenize:R,lastType:"sof",cc:[],lexical:new J((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new _e(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(W.globalVars=s.globalVars),W},token:function(C,W){if(C.sol()&&(W.lexical.hasOwnProperty("align")||(W.lexical.align=!1),W.indented=C.indentation(),ne(C,W)),W.tokenize!=B&&C.eatSpace())return null;var fe=W.tokenize(C,W);return T=="comment"?fe:(W.lastType=T=="operator"&&(L=="++"||L=="--")?"incdec":T,P(W,fe,T,L,C))},indent:function(C,W){if(C.tokenize==B||C.tokenize==K)return r.Pass;if(C.tokenize!=R)return 0;var fe=W&&W.charAt(0),be=C.lexical,oe;if(!/^\s*else\b/.test(W))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var ft=C.cc[Ae];if(ft==D)be=be.prev;else if(ft!=Bo&&ft!=Xe)break}for(;(be.type=="stat"||be.type=="form")&&(fe=="}"||(oe=C.cc[C.cc.length-1])&&(oe==he||oe==de)&&!/^[,\.=+\-*:?[\(]/.test(W));)be=be.prev;f&&be.type==")"&&be.prev.type=="stat"&&(be=be.prev);var Vt=be.type,xn=fe==Vt;return Vt=="vardef"?be.indented+(C.lastType=="operator"||C.lastType==","?be.info.length+1:0):Vt=="form"&&fe=="{"?be.indented:Vt=="form"?be.indented+c:Vt=="stat"?be.indented+(Vs(C,W)?f||c:0):be.info=="switch"&&!xn&&s.doubleIndentSwitch!=!1?be.indented+(/^(?:case|default)\b/.test(W)?c:2*c):be.align?be.column+(xn?0:1):be.indented+(xn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Xn,skipExpression:function(C){P(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Fm.exports}Iw();var Bm={exports:{}},Wm;function zw(){return Wm||(Wm=1,function(e,t){(function(r){r(Ws())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(S,F){function V(_e){return F.tokenize=_e,_e(S,F)}var se=S.next();if(se=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?V(T("atom","]]>")):null:S.match("--")?V(T("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),V(L(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),F.tokenize=T("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",F.tokenize=E,"tag bracket");if(se=="&"){var me;return S.eat("#")?S.eat("x")?me=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):me=S.eatWhile(/[\d]/)&&S.eat(";"):me=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),me?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function E(S,F){var V=S.next();if(V==">"||V=="/"&&S.eat(">"))return F.tokenize=w,m=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return m="equals",null;if(V=="<"){F.tokenize=w,F.state=K,F.tagName=F.tagStart=null;var se=F.tokenize(S,F);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(V)?(F.tokenize=N(V),F.stringStartCol=S.column(),F.tokenize(S,F)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(S){var F=function(V,se){for(;!V.eol();)if(V.next()==S){se.tokenize=E;break}return"string"};return F.isInAttribute=!0,F}function T(S,F){return function(V,se){for(;!V.eol();){if(V.match(F)){se.tokenize=w;break}V.next()}return S}}function L(S){return function(F,V){for(var se;(se=F.next())!=null;){if(se=="<")return V.tokenize=L(S+1),V.tokenize(F,V);if(se==">")if(S==1){V.tokenize=w;break}else return V.tokenize=L(S-1),V.tokenize(F,V)}return"meta"}}function A(S){return S&&S.toLowerCase()}function R(S,F,V){this.prev=S.context,this.tagName=F||"",this.indent=S.indented,this.startOfLine=V,(h.doNotIndent.hasOwnProperty(F)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function M(S){S.context&&(S.context=S.context.prev)}function B(S,F){for(var V;;){if(!S.context||(V=S.context.tagName,!h.contextGrabbers.hasOwnProperty(A(V))||!h.contextGrabbers[A(V)].hasOwnProperty(A(F))))return;M(S)}}function K(S,F,V){return S=="openTag"?(V.tagStart=F.column(),j):S=="closeTag"?ne:K}function j(S,F,V){return S=="word"?(V.tagName=F.current(),b="tag",re):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",re(S,F,V)):(b="error",j)}function ne(S,F,V){if(S=="word"){var se=F.current();return V.context&&V.context.tagName!=se&&h.implicitlyClosed.hasOwnProperty(A(V.context.tagName))&&M(V),V.context&&V.context.tagName==se||h.matchClosing===!1?(b="tag",te):(b="tag error",J)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",te(S,F,V)):(b="error",J)}function te(S,F,V){return S!="endTag"?(b="error",te):(M(V),K)}function J(S,F,V){return b="error",te(S,F,V)}function re(S,F,V){if(S=="word")return b="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var se=V.tagName,me=V.tagStart;return V.tagName=V.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(A(se))?B(V,se):(B(V,se),V.context=new R(V,se,me==V.indented)),K}return b="error",re}function P(S,F,V){return S=="equals"?$:(h.allowMissing||(b="error"),re(S,F,V))}function $(S,F,V){return S=="string"?O:S=="word"&&h.allowUnquoted?(b="string",re):(b="error",re(S,F,V))}function O(S,F,V){return S=="string"?O:re(S,F,V)}return{startState:function(S){var F={tokenize:w,state:K,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(F.baseIndent=S),F},token:function(S,F){if(!F.tagName&&S.sol()&&(F.indented=S.indentation()),S.eatSpace())return null;m=null;var V=F.tokenize(S,F);return(V||m)&&V!="comment"&&(b=null,F.state=F.state(m||V,S,F),b&&(V=b=="error"?V+" error":b)),V},indent:function(S,F,V){var se=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(se&&se.noIndent)return r.Pass;if(S.tokenize!=E&&S.tokenize!=w)return V?V.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(F))return 0;var me=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(me&&me[1])for(;se;)if(se.tagName==me[2]){se=se.prev;break}else if(h.implicitlyClosed.hasOwnProperty(A(se.tagName)))se=se.prev;else break;else if(me)for(;se;){var _e=h.contextGrabbers[A(se.tagName)];if(_e&&_e.hasOwnProperty(A(me[2])))se=se.prev;else break}for(;se&&se.prev&&!se.startOfLine;)se=se.prev;return se?se.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==$&&(S.state=re)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var F=[],V=S.context;V;V=V.prev)F.push(V.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Bm.exports}zw();var qm={exports:{}},Um;function jce(){return Um||(Um=1,function(e,t){(function(r){r(Ws(),zw(),Iw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var N=d.indent(w,"","");return w.tagName=E,N}function v(w,E){return E.context.mode==d?m(w,E,E.context):b(w,E,E.context)}function m(w,E,N){if(N.depth==2)return w.match(/^.*?\*\//)?N.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(N.state);var T=p(N.state),L=N.state.context;if(L&&w.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?T-=c.indentUnit:N.prev.state.lexical&&(T=N.prev.state.lexical.indented)}else N.depth==1&&(T+=c.indentUnit);return E.context=new o(r.startState(h,T),h,0,E.context),null}if(N.depth==1){if(w.peek()=="<")return d.skipAttribute(N.state),E.context=new o(r.startState(d,p(N.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return N.depth=2,v(w,E)}var A=d.token(w,N.state),R=w.current(),M;return/\btag\b/.test(A)?/>$/.test(R)?N.state.context?N.depth=0:E.context=E.context.prev:/^</.test(R)&&(N.depth=1):!A&&(M=R.indexOf("{"))>-1&&w.backUp(R.length-M),A}function b(w,E,N){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,N.state))return E.context=new o(r.startState(d,h.indent(N.state,"","")),d,0,E.context),h.skipExpression(N.state),null;var T=h.token(w,N.state);if(!T&&N.depth!=null){var L=w.current();L=="{"?N.depth++:L=="}"&&--N.depth==0&&(E.context=E.context.prev)}return T}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,E,N){return w.context.mode.indent(w.context.state,E,N)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),qm.exports}jce();var jm={exports:{}},Vm;function Vce(){return Vm||(Vm=1,function(e,t){(function(r){r(Ws())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),jm.exports}Vce();var Gm={exports:{}},Km;function Gce(){return Km||(Km=1,function(e,t){(function(r){r(Ws())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],E=p.pos;function N(){r.off(document,"mousemove",T),r.off(document,"mouseup",N)}function T(L){if(L.which!=1)return N();p.moveTo(E+(L[b]-w)*(p.total/p.size))}r.on(document,"mousemove",T),r.on(document,"mouseup",N)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})}()),Gm.exports}Gce();const Bn=tn();function Kce(e,t,r={}){const o=Uce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Su(()=>{Bn.value=void 0}),Sh(o)}async function Xce(e){var t;pw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const Dw=ut({__name:"CodeMirrorContainer",props:Gl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Gl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Tu(e,"modelValue"),s=JS(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ue();return lo(async()=>{const d=Kce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Bn.value=d,setTimeout(()=>Bn.value.refresh(),100)}),(d,h)=>(ce(),xe("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[ie("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Yce=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=tn(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();xt(()=>r.file,async()=>{var j;if(!h.value){d.value=!0;try{if(!r.file||!((j=r.file)!=null&&j.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await mt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(ne){console.error("cannot fetch file",ne)}await Tt(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,dw.value],([j,ne,te,J])=>{!j&&!ne&&(J!=null?Tt(()=>{var $;const re=p.value,P=re??{line:J??0,ch:0};re?p.value=void 0:(($=Bn.value)==null||$.scrollIntoView(P,100),Tt(()=>{var O,S;(O=Bn.value)==null||O.focus(),(S=Bn.value)==null||S.setCursor(P)}))}):Tt(()=>{var re;(re=Bn.value)==null||re.focus()}))},{flush:"post"});const v=Se(()=>{var j,ne;return((ne=(j=r.file)==null?void 0:j.filepath)==null?void 0:ne.split(/\./g).pop())||"js"}),m=Ue(),b=Se(()=>{var j;return((j=r.file)==null?void 0:j.tasks.filter(ne=>{var te;return((te=ne.result)==null?void 0:te.state)==="fail"}))||[]}),w=[],E=[],N=[],T=Ue(!1);function L(){N.forEach(([j,ne,te])=>{j.removeEventListener("click",ne),te()}),N.length=0}gE(m,()=>{var j;(j=Bn.value)==null||j.refresh()});function A(){f.value=c.value!==Bn.value.getValue()}xt(f,j=>{o("draft",j)},{immediate:!0});function R(j){const ne=((j==null?void 0:j.stacks)||[]).filter(O=>{var S;return O.file&&O.file===((S=r.file)==null?void 0:S.filepath)}),te=ne==null?void 0:ne[0];if(!te)return;const J=document.createElement("div");J.className="op80 flex gap-x-2 items-center";const re=document.createElement("pre");re.className="c-red-600 dark:c-red-400",re.textContent=`${" ".repeat(te.column)}^ ${(j==null?void 0:j.nameStr)||j.name}: ${(j==null?void 0:j.message)||""}`,J.appendChild(re);const P=document.createElement("span");P.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",P.tabIndex=0,P.ariaLabel="Open in Editor",Nb(P,{content:"Open in Editor",placement:"bottom"},!1);const $=async()=>{await kw(te.file,te.line,te.column)};P.addEventListener("click",$),J.appendChild(P),N.push([P,$,()=>Ph(P)]),E.push(Bn.value.addLineClass(te.line-1,"wrap","bg-red-500/10")),w.push(Bn.value.addLineWidget(te.line-1,J))}const{pause:M,resume:B}=xt([Bn,b,ys],([j,ne,te])=>{if(!j){w.length=0,E.length=0,L();return}te&&(j.off("changes",A),L(),w.forEach(J=>J.clear()),E.forEach(J=>j==null?void 0:j.removeLineClass(J,"wrap")),w.length=0,E.length=0,setTimeout(()=>{ne.forEach(J=>{var re,P;(P=(re=J.result)==null?void 0:re.errors)==null||P.forEach(R)}),T.value||j.clearHistory(),j.on("changes",A)},100))},{flush:"post"});Hh(()=>[ys.value,h.value,p.value],([j,ne],te)=>{var J;j&&!ne&&te&&te[2]&&((J=Bn.value)==null||J.setCursor(te[2]))},{debounce:100,flush:"post"});async function K(j){if(h.value)return;M(),h.value=!0,await Tt();const ne=Bn.value;ne&&(ne.setOption("readOnly",!0),await Tt(),ne.refresh()),p.value=ne==null?void 0:ne.getCursor(),ne==null||ne.off("changes",A),L(),w.forEach(te=>te.clear()),E.forEach(te=>ne==null?void 0:ne.removeLineClass(te,"wrap")),w.length=0,E.length=0;try{T.value=!0,await mt.rpc.saveTestFile(r.file.filepath,j),c.value=j,f.value=!1}catch(te){console.error("error saving file",te)}T.value||ne==null||ne.clearHistory();try{await pm(ys).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await pm(ys).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(te=>{var J,re;(re=(J=te.result)==null?void 0:J.errors)==null||re.forEach(R)}),ne==null||ne.on("changes",A),h.value=!1,await Tt(),ne&&(ne.setOption("readOnly",!1),await Tt(),ne.refresh()),B()}return ya(L),(j,ne)=>{const te=Dw;return ce(),nt(te,hi({ref_key:"editor",ref:m,modelValue:U(s),"onUpdate:modelValue":ne[0]||(ne[0]=J=>Ct(s)?s.value=J:null),"h-full":""},{lineNumbers:!0,readOnly:U(Er),saving:U(h)},{mode:U(v),"data-testid":"code-mirror",onSave:K}),null,16,["modelValue","mode"])}}}),Zce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Jce={"p-4":"",relative:""},Qce={op50:"","font-mono":"","text-sm":""},eue={key:0,"p-5":""},tue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},nue={key:0},rue={p:"x3 y-1","bg-overlay":"",border:"base b t"},iue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=tE(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Io)),c=Se(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Se(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return Jb("Escape",()=>{o("close")}),(p,v)=>{const m=wi,b=Dw;return ce(),xe("div",Zce,[ie("div",Jce,[v[1]||(v[1]=ie("p",null,"Module Info",-1)),ie("p",Qce,Be(p.id),1),Oe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),U(s)?(ce(),xe(ct,{key:1},[ie("div",tue,[v[2]||(v[2]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,hi({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"]),Oe(b,hi({"h-full":"","model-value":U(d),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])]),U(h).mappings!==""?(ce(),xe("div",nue,[ie("div",rue," Source map (v"+Be(U(h).version)+") ",1),Oe(b,hi({"model-value":U(h).mappings,"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(ce(),xe("div",eue," No transform result found for this module. "))])}}});function oue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Kd="http://www.w3.org/1999/xhtml";const Xm={svg:"http://www.w3.org/2000/svg",xhtml:Kd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Xm.hasOwnProperty(t)?{space:Xm[t],local:e}:e}function sue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Kd&&t.documentElement.namespaceURI===Kd?t.createElement(e):t.createElementNS(r,e)}}function lue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fw(e){var t=Fu(e);return(t.local?lue:sue)(t)}function aue(){}function Kh(e){return e==null?aue:function(){return this.querySelector(e)}}function cue(e){typeof e!="function"&&(e=Kh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new rr(o,this._parents)}function uue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function fue(){return[]}function Hw(e){return e==null?fue:function(){return this.querySelectorAll(e)}}function due(e){return function(){return uue(e.apply(this,arguments))}}function hue(e){typeof e=="function"?e=due(e):e=Hw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new rr(o,s)}function Bw(e){return function(){return this.matches(e)}}function Ww(e){return function(t){return t.matches(e)}}var pue=Array.prototype.find;function gue(e){return function(){return pue.call(this.children,e)}}function vue(){return this.firstElementChild}function mue(e){return this.select(e==null?vue:gue(typeof e=="function"?e:Ww(e)))}var yue=Array.prototype.filter;function bue(){return Array.from(this.children)}function wue(e){return function(){return yue.call(this.children,e)}}function xue(e){return this.selectAll(e==null?bue:wue(typeof e=="function"?e:Ww(e)))}function _ue(e){typeof e!="function"&&(e=Bw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new rr(o,this._parents)}function qw(e){return new Array(e.length)}function Sue(){return new rr(this._enter||this._groups.map(qw),this._parents)}function su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}su.prototype={constructor:su,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function kue(e){return function(){return e}}function Tue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new su(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Cue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new su(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Eue(e){return e.__data__}function Aue(e,t){if(!arguments.length)return Array.from(this,Eue);var r=t?Cue:Tue,o=this._parents,s=this._groups;typeof e!="function"&&(e=kue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=Lue(e.call(v,v&&v.__data__,p,o)),E=w.length,N=d[p]=new Array(E),T=f[p]=new Array(E),L=h[p]=new Array(b);r(v,m,N,T,L,w,t);for(var A=0,R=0,M,B;A<E;++A)if(M=N[A]){for(A>=R&&(R=A+1);!(B=T[R])&&++R<E;);M._next=B||null}}return f=new rr(f,o),f._enter=d,f._exit=h,f}function Lue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Mue(){return new rr(this._exit||this._groups.map(qw),this._parents)}function Nue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function $ue(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,E=0;E<m;++E)(w=p[E]||v[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new rr(d,this._parents)}function Oue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Rue(e){e||(e=Pue);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new rr(s,this._parents).order()}function Pue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Iue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function zue(){return Array.from(this)}function Due(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Fue(){let e=0;for(const t of this)++e;return e}function Hue(){return!this.node()}function Bue(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Wue(e){return function(){this.removeAttribute(e)}}function que(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uue(e,t){return function(){this.setAttribute(e,t)}}function jue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Vue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Gue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Kue(e,t){var r=Fu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?que:Wue:typeof t=="function"?r.local?Gue:Vue:r.local?jue:Uue)(r,t))}function Uw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xue(e){return function(){this.style.removeProperty(e)}}function Yue(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Zue(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Jue(e,t,r){return arguments.length>1?this.each((t==null?Xue:typeof t=="function"?Zue:Yue)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||Uw(e).getComputedStyle(e,null).getPropertyValue(t)}function Que(e){return function(){delete this[e]}}function efe(e,t){return function(){this[e]=t}}function tfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function nfe(e,t){return arguments.length>1?this.each((t==null?Que:typeof t=="function"?tfe:efe)(e,t)):this.node()[e]}function jw(e){return e.trim().split(/^|\s+/)}function Xh(e){return e.classList||new Vw(e)}function Vw(e){this._node=e,this._names=jw(e.getAttribute("class")||"")}Vw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Gw(e,t){for(var r=Xh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Kw(e,t){for(var r=Xh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function rfe(e){return function(){Gw(this,e)}}function ife(e){return function(){Kw(this,e)}}function ofe(e,t){return function(){(t.apply(this,arguments)?Gw:Kw)(this,e)}}function sfe(e,t){var r=jw(e+"");if(arguments.length<2){for(var o=Xh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?ofe:t?rfe:ife)(r,t))}function lfe(){this.textContent=""}function afe(e){return function(){this.textContent=e}}function cfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ufe(e){return arguments.length?this.each(e==null?lfe:(typeof e=="function"?cfe:afe)(e)):this.node().textContent}function ffe(){this.innerHTML=""}function dfe(e){return function(){this.innerHTML=e}}function hfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function pfe(e){return arguments.length?this.each(e==null?ffe:(typeof e=="function"?hfe:dfe)(e)):this.node().innerHTML}function gfe(){this.nextSibling&&this.parentNode.appendChild(this)}function vfe(){return this.each(gfe)}function mfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yfe(){return this.each(mfe)}function bfe(e){var t=typeof e=="function"?e:Fw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function wfe(){return null}function xfe(e,t){var r=typeof e=="function"?e:Fw(e),o=t==null?wfe:typeof t=="function"?t:Kh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function _fe(){var e=this.parentNode;e&&e.removeChild(this)}function Sfe(){return this.each(_fe)}function kfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Cfe(e){return this.select(e?Tfe:kfe)}function Efe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Afe(e){return function(t){e.call(this,t,this.__data__)}}function Lfe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function Mfe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Nfe(e,t,r){return function(){var o=this.__on,s,c=Afe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function $fe(e,t,r){var o=Lfe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Nfe:Mfe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Xw(e,t,r){var o=Uw(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Ofe(e,t){return function(){return Xw(this,e,t)}}function Rfe(e,t){return function(){return Xw(this,e,t.apply(this,arguments))}}function Pfe(e,t){return this.each((typeof t=="function"?Rfe:Ofe)(e,t))}function*Ife(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var Yw=[null];function rr(e,t){this._groups=e,this._parents=t}function Ca(){return new rr([[document.documentElement]],Yw)}function zfe(){return this}rr.prototype=Ca.prototype={constructor:rr,select:cue,selectAll:hue,selectChild:mue,selectChildren:xue,filter:_ue,data:Aue,enter:Sue,exit:Mue,join:Nue,merge:$ue,selection:zfe,order:Oue,sort:Rue,call:Iue,nodes:zue,node:Due,size:Fue,empty:Hue,each:Bue,attr:Kue,style:Jue,property:nfe,classed:sfe,text:ufe,html:pfe,raise:vfe,lower:yfe,append:bfe,insert:xfe,remove:Sfe,clone:Cfe,datum:Efe,on:$fe,dispatch:Pfe,[Symbol.iterator]:Ife};function jn(e){return typeof e=="string"?new rr([[document.querySelector(e)]],[document.documentElement]):new rr([[e]],Yw)}function Dfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ci(e,t){if(e=Dfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Ffe=Object.defineProperty,Hfe=(e,t,r)=>t in e?Ffe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ym=(e,t,r)=>Hfe(e,typeof t!="symbol"?t+"":t,r);class Mn{constructor(t,r){Ym(this,"x"),Ym(this,"y"),this.x=t,this.y=r}static of([t,r]){return new Mn(t,r)}add(t){return new Mn(this.x+t.x,this.y+t.y)}subtract(t){return new Mn(this.x-t.x,this.y-t.y)}multiply(t){return new Mn(this.x*t,this.y*t)}divide(t){return new Mn(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Mn(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Mn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Mn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Bfe={value:()=>{}};function Ea(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new $c(r)}function $c(e){this._=e}function Wfe(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}$c.prototype=Ea.prototype={constructor:$c,on:function(e,t){var r=this._,o=Wfe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=qfe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=Zm(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Zm(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new $c(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function qfe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Zm(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Bfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ufe={passive:!1},sa={capture:!0,passive:!1};function ad(e){e.stopImmediatePropagation()}function Ns(e){e.preventDefault(),e.stopImmediatePropagation()}function Zw(e){var t=e.document.documentElement,r=jn(e).on("dragstart.drag",Ns,sa);"onselectstart"in t?r.on("selectstart.drag",Ns,sa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Jw(e,t){var r=e.document.documentElement,o=jn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ns,sa),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const bc=e=>()=>e;function Xd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}Xd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function jfe(e){return!e.ctrlKey&&!e.button}function Vfe(){return this.parentNode}function Gfe(e,t){return t??{x:e.x,y:e.y}}function Kfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xfe(){var e=jfe,t=Vfe,r=Gfe,o=Kfe,s={},c=Ea("start","drag","end"),f=0,d,h,p,v,m=0;function b(M){M.on("mousedown.drag",w).filter(o).on("touchstart.drag",T).on("touchmove.drag",L,Ufe).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(M,B){if(!(v||!e.call(this,M,B))){var K=R(this,t.call(this,M,B),M,B,"mouse");K&&(jn(M.view).on("mousemove.drag",E,sa).on("mouseup.drag",N,sa),Zw(M.view),ad(M),p=!1,d=M.clientX,h=M.clientY,K("start",M))}}function E(M){if(Ns(M),!p){var B=M.clientX-d,K=M.clientY-h;p=B*B+K*K>m}s.mouse("drag",M)}function N(M){jn(M.view).on("mousemove.drag mouseup.drag",null),Jw(M.view,p),Ns(M),s.mouse("end",M)}function T(M,B){if(e.call(this,M,B)){var K=M.changedTouches,j=t.call(this,M,B),ne=K.length,te,J;for(te=0;te<ne;++te)(J=R(this,j,M,B,K[te].identifier,K[te]))&&(ad(M),J("start",M,K[te]))}}function L(M){var B=M.changedTouches,K=B.length,j,ne;for(j=0;j<K;++j)(ne=s[B[j].identifier])&&(Ns(M),ne("drag",M,B[j]))}function A(M){var B=M.changedTouches,K=B.length,j,ne;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),j=0;j<K;++j)(ne=s[B[j].identifier])&&(ad(M),ne("end",M,B[j]))}function R(M,B,K,j,ne,te){var J=c.copy(),re=ci(te||K,B),P,$,O;if((O=r.call(M,new Xd("beforestart",{sourceEvent:K,target:b,identifier:ne,active:f,x:re[0],y:re[1],dx:0,dy:0,dispatch:J}),j))!=null)return P=O.x-re[0]||0,$=O.y-re[1]||0,function S(F,V,se){var me=re,_e;switch(F){case"start":s[ne]=S,_e=f++;break;case"end":delete s[ne],--f;case"drag":re=ci(se||V,B),_e=f;break}J.call(F,M,new Xd(F,{sourceEvent:V,subject:O,target:b,identifier:ne,active:_e,x:re[0]+P,y:re[1]+$,dx:re[0]-me[0],dy:re[1]-me[1],dispatch:J}),j)}}return b.filter=function(M){return arguments.length?(e=typeof M=="function"?M:bc(!!M),b):e},b.container=function(M){return arguments.length?(t=typeof M=="function"?M:bc(M),b):t},b.subject=function(M){return arguments.length?(r=typeof M=="function"?M:bc(M),b):r},b.touchable=function(M){return arguments.length?(o=typeof M=="function"?M:bc(!!M),b):o},b.on=function(){var M=c.on.apply(c,arguments);return M===c?b:M},b.clickDistance=function(M){return arguments.length?(m=(M=+M)*M,b):Math.sqrt(m)},b}function Yh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Qw(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Aa(){}var la=.7,lu=1/la,$s="\\s*([+-]?\\d+)\\s*",aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yfe=/^#([0-9a-f]{3,8})$/,Zfe=new RegExp(`^rgb\\(${$s},${$s},${$s}\\)$`),Jfe=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),Qfe=new RegExp(`^rgba\\(${$s},${$s},${$s},${aa}\\)$`),ede=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${aa}\\)$`),tde=new RegExp(`^hsl\\(${aa},${Gr},${Gr}\\)$`),nde=new RegExp(`^hsla\\(${aa},${Gr},${Gr},${aa}\\)$`),Jm={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};Yh(Aa,ca,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qm,formatHex:Qm,formatHex8:rde,formatHsl:ide,formatRgb:e0,toString:e0});function Qm(){return this.rgb().formatHex()}function rde(){return this.rgb().formatHex8()}function ide(){return e1(this).formatHsl()}function e0(){return this.rgb().formatRgb()}function ca(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Yfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?t0(t):r===3?new Gn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zfe.exec(e))?new Gn(t[1],t[2],t[3],1):(t=Jfe.exec(e))?new Gn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qfe.exec(e))?wc(t[1],t[2],t[3],t[4]):(t=ede.exec(e))?wc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tde.exec(e))?i0(t[1],t[2]/100,t[3]/100,1):(t=nde.exec(e))?i0(t[1],t[2]/100,t[3]/100,t[4]):Jm.hasOwnProperty(e)?t0(Jm[e]):e==="transparent"?new Gn(NaN,NaN,NaN,0):null}function t0(e){return new Gn(e>>16&255,e>>8&255,e&255,1)}function wc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Gn(e,t,r,o)}function ode(e){return e instanceof Aa||(e=ca(e)),e?(e=e.rgb(),new Gn(e.r,e.g,e.b,e.opacity)):new Gn}function Yd(e,t,r,o){return arguments.length===1?ode(e):new Gn(e,t,r,o??1)}function Gn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Yh(Gn,Yd,Qw(Aa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gn(Oo(this.r),Oo(this.g),Oo(this.b),au(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:n0,formatHex:n0,formatHex8:sde,formatRgb:r0,toString:r0}));function n0(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}`}function sde(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}${Lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function r0(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${Oo(this.r)}, ${Oo(this.g)}, ${Oo(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lo(e){return e=Oo(e),(e<16?"0":"")+e.toString(16)}function i0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new kr(e,t,r,o)}function e1(e){if(e instanceof kr)return new kr(e.h,e.s,e.l,e.opacity);if(e instanceof Aa||(e=ca(e)),!e)return new kr;if(e instanceof kr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new kr(f,d,h,e.opacity)}function lde(e,t,r,o){return arguments.length===1?e1(e):new kr(e,t,r,o??1)}function kr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Yh(kr,lde,Qw(Aa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new kr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new kr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Gn(cd(e>=240?e-240:e+120,s,o),cd(e,s,o),cd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new kr(o0(this.h),xc(this.s),xc(this.l),au(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${o0(this.h)}, ${xc(this.s)*100}%, ${xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function o0(e){return e=(e||0)%360,e<0?e+360:e}function xc(e){return Math.max(0,Math.min(1,e||0))}function cd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const t1=e=>()=>e;function ade(e,t){return function(r){return e+r*t}}function cde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function ude(e){return(e=+e)==1?n1:function(t,r){return r-t?cde(t,r,e):t1(isNaN(t)?r:t)}}function n1(e,t){var r=t-e;return r?ade(e,r):t1(isNaN(e)?t:e)}const s0=function e(t){var r=ude(t);function o(s,c){var f=r((s=Yd(s)).r,(c=Yd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=n1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Ui(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Zd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ud=new RegExp(Zd.source,"g");function fde(e){return function(){return e}}function dde(e){return function(t){return e(t)+""}}function hde(e,t){var r=Zd.lastIndex=ud.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Zd.exec(e))&&(s=ud.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Ui(o,s)})),r=ud.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?dde(h[0].x):fde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var l0=180/Math.PI,Jd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function r1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*l0,skewX:Math.atan(h)*l0,scaleX:f,scaleY:d}}var _c;function pde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Jd:r1(t.a,t.b,t.c,t.d,t.e,t.f)}function gde(e){return e==null||(_c||(_c=document.createElementNS("http://www.w3.org/2000/svg","g")),_c.setAttribute("transform",e),!(e=_c.transform.baseVal.consolidate()))?Jd:(e=e.matrix,r1(e.a,e.b,e.c,e.d,e.e,e.f))}function i1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push("translate(",null,t,null,r);E.push({i:N-4,x:Ui(p,m)},{i:N-2,x:Ui(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Ui(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Ui(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push(s(w)+"scale(",null,",",null,")");E.push({i:N-4,x:Ui(p,m)},{i:N-2,x:Ui(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var E=-1,N=b.length,T;++E<N;)m[(T=b[E]).i]=T.x(w);return m.join("")}}}var vde=i1(pde,"px, ","px)","deg)"),mde=i1(gde,", ",")",")"),yde=1e-12;function a0(e){return((e=Math.exp(e))+1/e)/2}function bde(e){return((e=Math.exp(e))-1/e)/2}function wde(e){return((e=Math.exp(2*e))-1)/(e+1)}const xde=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,E=m-h,N=w*w+E*E,T,L;if(N<yde)L=Math.log(b/p)/t,T=function(j){return[d+j*w,h+j*E,p*Math.exp(t*j*L)]};else{var A=Math.sqrt(N),R=(b*b-p*p+o*N)/(2*p*r*A),M=(b*b-p*p-o*N)/(2*b*r*A),B=Math.log(Math.sqrt(R*R+1)-R),K=Math.log(Math.sqrt(M*M+1)-M);L=(K-B)/t,T=function(j){var ne=j*L,te=a0(B),J=p/(r*A)*(te*wde(t*ne+B)-bde(B));return[d+J*w,h+J*E,p*te/a0(t*ne+B)]}}return T.duration=L*1e3*t/Math.SQRT2,T}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var Fs=0,Al=0,kl=0,o1=1e3,cu,Ll,uu=0,zo=0,Hu=0,ua=typeof performance=="object"&&performance.now?performance:Date,s1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Zh(){return zo||(s1(_de),zo=ua.now()+Hu)}function _de(){zo=0}function fu(){this._call=this._time=this._next=null}fu.prototype=Jh.prototype={constructor:fu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Zh():+r)+(t==null?0:+t),!this._next&&Ll!==this&&(Ll?Ll._next=this:cu=this,Ll=this),this._call=e,this._time=r,Qd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qd())}};function Jh(e,t,r){var o=new fu;return o.restart(e,t,r),o}function Sde(){Zh(),++Fs;for(var e=cu,t;e;)(t=zo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fs}function c0(){zo=(uu=ua.now())+Hu,Fs=Al=0;try{Sde()}finally{Fs=0,Tde(),zo=0}}function kde(){var e=ua.now(),t=e-uu;t>o1&&(Hu-=t,uu=e)}function Tde(){for(var e,t=cu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:cu=r);Ll=e,Qd(o)}function Qd(e){if(!Fs){Al&&(Al=clearTimeout(Al));var t=e-zo;t>24?(e<1/0&&(Al=setTimeout(c0,e-ua.now()-Hu)),kl&&(kl=clearInterval(kl))):(kl||(uu=ua.now(),kl=setInterval(kde,o1)),Fs=1,s1(c0))}}function u0(e,t,r){var o=new fu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Cde=Ea("start","end","cancel","interrupt"),Ede=[],l1=0,f0=1,eh=2,Oc=3,d0=4,th=5,Rc=6;function Bu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Ade(e,r,{name:t,index:o,group:s,on:Cde,tween:Ede,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:l1})}function Qh(e,t){var r=Or(e,t);if(r.state>l1)throw new Error("too late; already scheduled");return r}function Yr(e,t){var r=Or(e,t);if(r.state>Oc)throw new Error("too late; already running");return r}function Or(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Ade(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Jh(c,0,r.time);function c(p){r.state=f0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==f0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Oc)return u0(f);w.state===d0?(w.state=Rc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Rc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(u0(function(){r.state===Oc&&(r.state=d0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=eh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===eh){for(r.state=Oc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=th,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===th&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Rc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Pc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>eh&&o.state<th,o.state=Rc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Lde(e){return this.each(function(){Pc(this,e)})}function Mde(e,t){var r,o;return function(){var s=Yr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Nde(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Yr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function $de(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Or(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Mde:Nde)(r,e,t))}function ep(e,t,r){var o=e._id;return e.each(function(){var s=Yr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Or(s,o).value[t]}}function a1(e,t){var r;return(typeof t=="number"?Ui:t instanceof ca?s0:(r=ca(t))?(t=r,s0):hde)(e,t)}function Ode(e){return function(){this.removeAttribute(e)}}function Rde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Pde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function Ide(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function zde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Dde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Fde(e,t){var r=Fu(e),o=r==="transform"?mde:a1;return this.attrTween(e,typeof t=="function"?(r.local?Dde:zde)(r,o,ep(this,"attr."+e,t)):t==null?(r.local?Rde:Ode)(r):(r.local?Ide:Pde)(r,o,t))}function Hde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Bde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Wde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Bde(e,c)),r}return s._value=t,s}function qde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Hde(e,c)),r}return s._value=t,s}function Ude(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Fu(e);return this.tween(r,(o.local?Wde:qde)(o,t))}function jde(e,t){return function(){Qh(this,e).delay=+t.apply(this,arguments)}}function Vde(e,t){return t=+t,function(){Qh(this,e).delay=t}}function Gde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?jde:Vde)(t,e)):Or(this.node(),t).delay}function Kde(e,t){return function(){Yr(this,e).duration=+t.apply(this,arguments)}}function Xde(e,t){return t=+t,function(){Yr(this,e).duration=t}}function Yde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Kde:Xde)(t,e)):Or(this.node(),t).duration}function Zde(e,t){if(typeof t!="function")throw new Error;return function(){Yr(this,e).ease=t}}function Jde(e){var t=this._id;return arguments.length?this.each(Zde(t,e)):Or(this.node(),t).ease}function Qde(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Yr(this,e).ease=r}}function ehe(e){if(typeof e!="function")throw new Error;return this.each(Qde(this._id,e))}function the(e){typeof e!="function"&&(e=Bw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new vi(o,this._parents,this._name,this._id)}function nhe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new vi(f,this._parents,this._name,this._id)}function rhe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function ihe(e,t,r){var o,s,c=rhe(t)?Qh:Yr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function ohe(e,t){var r=this._id;return arguments.length<2?Or(this.node(),r).on.on(e):this.each(ihe(r,e,t))}function she(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function lhe(){return this.on("end.remove",she(this._id))}function ahe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Kh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Bu(p[b],t,r,b,p,Or(v,r)));return new vi(c,this._parents,t,r)}function che(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Hw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,E=Or(v,r),N=0,T=b.length;N<T;++N)(w=b[N])&&Bu(w,t,r,N,b,E);c.push(b),f.push(v)}return new vi(c,f,t,r)}var uhe=Ca.prototype.constructor;function fhe(){return new uhe(this._groups,this._parents)}function dhe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function c1(e){return function(){this.style.removeProperty(e)}}function hhe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function phe(e,t,r){var o,s,c;return function(){var f=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function ghe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Yr(this,e),p=h.on,v=h.value[c]==null?d||(d=c1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function vhe(e,t,r){var o=(e+="")=="transform"?vde:a1;return t==null?this.styleTween(e,dhe(e,o)).on("end.style."+e,c1(e)):typeof t=="function"?this.styleTween(e,phe(e,o,ep(this,"style."+e,t))).each(ghe(this._id,e)):this.styleTween(e,hhe(e,o,t),r).on("end.style."+e,null)}function mhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function yhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&mhe(e,f,r)),o}return c._value=t,c}function bhe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,yhe(e,t,r??""))}function whe(e){return function(){this.textContent=e}}function xhe(e){return function(){var t=e(this);this.textContent=t??""}}function _he(e){return this.tween("text",typeof e=="function"?xhe(ep(this,"text",e)):whe(e==null?"":e+""))}function She(e){return function(t){this.textContent=e.call(this,t)}}function khe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&She(s)),t}return o._value=e,o}function The(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,khe(e))}function Che(){for(var e=this._name,t=this._id,r=u1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Or(h,t);Bu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new vi(o,this._parents,e,r)}function Ehe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Yr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Ahe=0;function vi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function u1(){return++Ahe}var si=Ca.prototype;vi.prototype={constructor:vi,select:ahe,selectAll:che,selectChild:si.selectChild,selectChildren:si.selectChildren,filter:the,merge:nhe,selection:fhe,transition:Che,call:si.call,nodes:si.nodes,node:si.node,size:si.size,empty:si.empty,each:si.each,on:ohe,attr:Fde,attrTween:Ude,style:vhe,styleTween:bhe,text:_he,textTween:The,remove:lhe,tween:$de,delay:Gde,duration:Yde,ease:Jde,easeVarying:ehe,end:Ehe,[Symbol.iterator]:si[Symbol.iterator]};function Lhe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mhe={time:null,delay:0,duration:250,ease:Lhe};function Nhe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function $he(e){var t,r;e instanceof vi?(t=e._id,e=e._name):(t=u1(),(r=Mhe).time=Zh(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Bu(h,e,t,p,f,r||Nhe(h,t));return new vi(o,this._parents,e,t)}Ca.prototype.interrupt=Lde;Ca.prototype.transition=$he;const Sc=e=>()=>e;function Ohe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function di(e,t,r){this.k=e,this.x=t,this.y=r}di.prototype={constructor:di,scale:function(e){return e===1?this:new di(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new di(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 tp=new di(1,0,0);di.prototype;function fd(e){e.stopImmediatePropagation()}function Tl(e){e.preventDefault(),e.stopImmediatePropagation()}function Rhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Phe(){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 h0(){return this.__zoom||tp}function Ihe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function zhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dhe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Fhe(){var e=Rhe,t=Phe,r=Dhe,o=Ihe,s=zhe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=xde,p=Ea("start","zoom","end"),v,m,b,w=500,E=150,N=0,T=10;function L(O){O.property("__zoom",h0).on("wheel.zoom",ne,{passive:!1}).on("mousedown.zoom",te).on("dblclick.zoom",J).filter(s).on("touchstart.zoom",re).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(O,S,F,V){var se=O.selection?O.selection():O;se.property("__zoom",h0),O!==se?B(O,S,F,V):se.interrupt().each(function(){K(this,arguments).event(V).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},L.scaleBy=function(O,S,F,V){L.scaleTo(O,function(){var se=this.__zoom.k,me=typeof S=="function"?S.apply(this,arguments):S;return se*me},F,V)},L.scaleTo=function(O,S,F,V){L.transform(O,function(){var se=t.apply(this,arguments),me=this.__zoom,_e=F==null?M(se):typeof F=="function"?F.apply(this,arguments):F,Pe=me.invert(_e),qe=typeof S=="function"?S.apply(this,arguments):S;return r(R(A(me,qe),_e,Pe),se,f)},F,V)},L.translateBy=function(O,S,F,V){L.transform(O,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof F=="function"?F.apply(this,arguments):F),t.apply(this,arguments),f)},null,V)},L.translateTo=function(O,S,F,V,se){L.transform(O,function(){var me=t.apply(this,arguments),_e=this.__zoom,Pe=V==null?M(me):typeof V=="function"?V.apply(this,arguments):V;return r(tp.translate(Pe[0],Pe[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof F=="function"?-F.apply(this,arguments):-F),me,f)},V,se)};function A(O,S){return S=Math.max(c[0],Math.min(c[1],S)),S===O.k?O:new di(S,O.x,O.y)}function R(O,S,F){var V=S[0]-F[0]*O.k,se=S[1]-F[1]*O.k;return V===O.x&&se===O.y?O:new di(O.k,V,se)}function M(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function B(O,S,F,V){O.on("start.zoom",function(){K(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(V).end()}).tween("zoom",function(){var se=this,me=arguments,_e=K(se,me).event(V),Pe=t.apply(se,me),qe=F==null?M(Pe):typeof F=="function"?F.apply(se,me):F,Ze=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ke=se.__zoom,Xe=typeof S=="function"?S.apply(se,me):S,ee=h(Ke.invert(qe).concat(Ze/Ke.k),Xe.invert(qe).concat(Ze/Xe.k));return function(D){if(D===1)D=Xe;else{var Z=ee(D),G=Ze/Z[2];D=new di(G,qe[0]-Z[0]*G,qe[1]-Z[1]*G)}_e.zoom(null,D)}})}function K(O,S,F){return!F&&O.__zooming||new j(O,S)}function j(O,S){this.that=O,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,S),this.taps=0}j.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,S){return this.mouse&&O!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var S=jn(this.that).datum();p.call(O,this.that,new Ohe(O,{sourceEvent:this.sourceEvent,target:L,transform:this.that.__zoom,dispatch:p}),S)}};function ne(O,...S){if(!e.apply(this,arguments))return;var F=K(this,S).event(O),V=this.__zoom,se=Math.max(c[0],Math.min(c[1],V.k*Math.pow(2,o.apply(this,arguments)))),me=ci(O);if(F.wheel)(F.mouse[0][0]!==me[0]||F.mouse[0][1]!==me[1])&&(F.mouse[1]=V.invert(F.mouse[0]=me)),clearTimeout(F.wheel);else{if(V.k===se)return;F.mouse=[me,V.invert(me)],Pc(this),F.start()}Tl(O),F.wheel=setTimeout(_e,E),F.zoom("mouse",r(R(A(V,se),F.mouse[0],F.mouse[1]),F.extent,f));function _e(){F.wheel=null,F.end()}}function te(O,...S){if(b||!e.apply(this,arguments))return;var F=O.currentTarget,V=K(this,S,!0).event(O),se=jn(O.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",Ze,!0),me=ci(O,F),_e=O.clientX,Pe=O.clientY;Zw(O.view),fd(O),V.mouse=[me,this.__zoom.invert(me)],Pc(this),V.start();function qe(Ke){if(Tl(Ke),!V.moved){var Xe=Ke.clientX-_e,ee=Ke.clientY-Pe;V.moved=Xe*Xe+ee*ee>N}V.event(Ke).zoom("mouse",r(R(V.that.__zoom,V.mouse[0]=ci(Ke,F),V.mouse[1]),V.extent,f))}function Ze(Ke){se.on("mousemove.zoom mouseup.zoom",null),Jw(Ke.view,V.moved),Tl(Ke),V.event(Ke).end()}}function J(O,...S){if(e.apply(this,arguments)){var F=this.__zoom,V=ci(O.changedTouches?O.changedTouches[0]:O,this),se=F.invert(V),me=F.k*(O.shiftKey?.5:2),_e=r(R(A(F,me),V,se),t.apply(this,S),f);Tl(O),d>0?jn(this).transition().duration(d).call(B,_e,V,O):jn(this).call(L.transform,_e,V,O)}}function re(O,...S){if(e.apply(this,arguments)){var F=O.touches,V=F.length,se=K(this,S,O.changedTouches.length===V).event(O),me,_e,Pe,qe;for(fd(O),_e=0;_e<V;++_e)Pe=F[_e],qe=ci(Pe,this),qe=[qe,this.__zoom.invert(qe),Pe.identifier],se.touch0?!se.touch1&&se.touch0[2]!==qe[2]&&(se.touch1=qe,se.taps=0):(se.touch0=qe,me=!0,se.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(se.taps<2&&(m=qe[0],v=setTimeout(function(){v=null},w)),Pc(this),se.start())}}function P(O,...S){if(this.__zooming){var F=K(this,S).event(O),V=O.changedTouches,se=V.length,me,_e,Pe,qe;for(Tl(O),me=0;me<se;++me)_e=V[me],Pe=ci(_e,this),F.touch0&&F.touch0[2]===_e.identifier?F.touch0[0]=Pe:F.touch1&&F.touch1[2]===_e.identifier&&(F.touch1[0]=Pe);if(_e=F.that.__zoom,F.touch1){var Ze=F.touch0[0],Ke=F.touch0[1],Xe=F.touch1[0],ee=F.touch1[1],D=(D=Xe[0]-Ze[0])*D+(D=Xe[1]-Ze[1])*D,Z=(Z=ee[0]-Ke[0])*Z+(Z=ee[1]-Ke[1])*Z;_e=A(_e,Math.sqrt(D/Z)),Pe=[(Ze[0]+Xe[0])/2,(Ze[1]+Xe[1])/2],qe=[(Ke[0]+ee[0])/2,(Ke[1]+ee[1])/2]}else if(F.touch0)Pe=F.touch0[0],qe=F.touch0[1];else return;F.zoom("touch",r(R(_e,Pe,qe),F.extent,f))}}function $(O,...S){if(this.__zooming){var F=K(this,S).event(O),V=O.changedTouches,se=V.length,me,_e;for(fd(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),me=0;me<se;++me)_e=V[me],F.touch0&&F.touch0[2]===_e.identifier?delete F.touch0:F.touch1&&F.touch1[2]===_e.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(_e=ci(_e,this),Math.hypot(m[0]-_e[0],m[1]-_e[1])<T)){var Pe=jn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return L.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:Sc(+O),L):o},L.filter=function(O){return arguments.length?(e=typeof O=="function"?O:Sc(!!O),L):e},L.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:Sc(!!O),L):s},L.extent=function(O){return arguments.length?(t=typeof O=="function"?O:Sc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),L):t},L.scaleExtent=function(O){return arguments.length?(c[0]=+O[0],c[1]=+O[1],L):[c[0],c[1]]},L.translateExtent=function(O){return arguments.length?(f[0][0]=+O[0][0],f[1][0]=+O[1][0],f[0][1]=+O[0][1],f[1][1]=+O[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(O){return arguments.length?(r=O,L):r},L.duration=function(O){return arguments.length?(d=+O,L):d},L.interpolate=function(O){return arguments.length?(h=O,L):h},L.on=function(){var O=p.on.apply(p,arguments);return O===p?L:O},L.clickDistance=function(O){return arguments.length?(N=(O=+O)*O,L):Math.sqrt(N)},L.tapDistance=function(O){return arguments.length?(T=+O,L):T},L}function Hhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return f1(this.cover(t,r),t,r,e)}function f1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,E,N,T,L,A;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(T=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=T<<1|N]))return s[L]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(T=r>=(b=(h+v)/2))?h=b:v=b;while((L=T<<1|N)===(A=(E>=b)<<1|w>=m));return s[A]=c,s[L]=f,e}function Bhe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)f1(this,f[r],d[r],e[r]);return this}function Whe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function qhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Uhe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function $n(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function jhe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,E,N;for(w&&b.push(new $n(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>v||(d=E.y0)>m||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var T=(f+h)/2,L=(d+p)/2;b.push(new $n(w[3],T,L,h,p),new $n(w[2],f,L,T,p),new $n(w[1],T,d,h,L),new $n(w[0],f,d,T,L)),(N=(t>=L)<<1|e>=T)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=E)}else{var A=e-+this._x.call(null,w.data),R=t-+this._y.call(null,w.data),M=A*A+R*R;if(M<r){var B=Math.sqrt(r=M);s=e-B,c=t-B,v=e+B,m=t+B,o=w.data}}return o}function Vhe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,E,N,T,L;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(N=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[T=N<<1|E]))return this;if(!r.length)break;(t[T+1&3]||t[T+2&3]||t[T+3&3])&&(o=t,L=T)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[T]=c:delete t[T],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function Ghe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Khe(){return this._root}function Xhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Yhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new $n(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new $n(s,p,v,d,h)),(s=o[2])&&t.push(new $n(s,c,v,p,h)),(s=o[1])&&t.push(new $n(s,p,f,d,v)),(s=o[0])&&t.push(new $n(s,c,f,p,v))}return this}function Zhe(e){var t=[],r=[],o;for(this._root&&t.push(new $n(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new $n(c,f,d,v,m)),(c=s[1])&&t.push(new $n(c,v,d,h,m)),(c=s[2])&&t.push(new $n(c,f,m,v,p)),(c=s[3])&&t.push(new $n(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Jhe(e){return e[0]}function Qhe(e){return arguments.length?(this._x=e,this):this._x}function epe(e){return e[1]}function tpe(e){return arguments.length?(this._y=e,this):this._y}function np(e,t,r){var o=new rp(t??Jhe,r??epe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function rp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function p0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Pn=np.prototype=rp.prototype;Pn.copy=function(){var e=new rp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=p0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=p0(o));return e};Pn.add=Hhe;Pn.addAll=Bhe;Pn.cover=Whe;Pn.data=qhe;Pn.extent=Uhe;Pn.find=jhe;Pn.remove=Vhe;Pn.removeAll=Ghe;Pn.root=Khe;Pn.size=Xhe;Pn.visit=Yhe;Pn.visitAfter=Zhe;Pn.x=Qhe;Pn.y=tpe;function Rn(e){return function(){return e}}function Gi(e){return(e()-.5)*1e-6}function npe(e){return e.x+e.vx}function rpe(e){return e.y+e.vy}function ipe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,E,N,T,L=0;L<c;++L)for(m=np(t,npe,rpe).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],T=N*N,w=b.x+b.vx,E=b.y+b.vy,m.visit(A);function A(R,M,B,K,j){var ne=R.data,te=R.r,J=N+te;if(ne){if(ne.index>b.index){var re=w-ne.x-ne.vx,P=E-ne.y-ne.vy,$=re*re+P*P;$<J*J&&(re===0&&(re=Gi(o),$+=re*re),P===0&&(P=Gi(o),$+=P*P),$=(J-($=Math.sqrt($)))/$*s,b.vx+=(re*=$)*(J=(te*=te)/(T+te)),b.vy+=(P*=$)*J,ne.vx-=re*(J=1-J),ne.vy-=P*J)}return}return M>w+J||K<w-J||B>E+J||j<E-J}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),f):e},f}function ope(e){return e.index}function g0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function spe(e){var t=ope,r=m,o,s=Rn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(T){return 1/Math.min(d[T.source.index],d[T.target.index])}function b(T){for(var L=0,A=e.length;L<v;++L)for(var R=0,M,B,K,j,ne,te,J;R<A;++R)M=e[R],B=M.source,K=M.target,j=K.x+K.vx-B.x-B.vx||Gi(p),ne=K.y+K.vy-B.y-B.vy||Gi(p),te=Math.sqrt(j*j+ne*ne),te=(te-c[R])/te*T*o[R],j*=te,ne*=te,K.vx-=j*(J=h[R]),K.vy-=ne*J,B.vx+=j*(J=1-J),B.vy+=ne*J}function w(){if(f){var T,L=f.length,A=e.length,R=new Map(f.map((B,K)=>[t(B,K,f),B])),M;for(T=0,d=new Array(L);T<A;++T)M=e[T],M.index=T,typeof M.source!="object"&&(M.source=g0(R,M.source)),typeof M.target!="object"&&(M.target=g0(R,M.target)),d[M.source.index]=(d[M.source.index]||0)+1,d[M.target.index]=(d[M.target.index]||0)+1;for(T=0,h=new Array(A);T<A;++T)M=e[T],h[T]=d[M.source.index]/(d[M.source.index]+d[M.target.index]);o=new Array(A),E(),c=new Array(A),N()}}function E(){if(f)for(var T=0,L=e.length;T<L;++T)o[T]=+r(e[T],T,e)}function N(){if(f)for(var T=0,L=e.length;T<L;++T)c[T]=+s(e[T],T,e)}return b.initialize=function(T,L){f=T,p=L,w()},b.links=function(T){return arguments.length?(e=T,w(),b):e},b.id=function(T){return arguments.length?(t=T,b):t},b.iterations=function(T){return arguments.length?(v=+T,b):v},b.strength=function(T){return arguments.length?(r=typeof T=="function"?T:Rn(+T),E(),b):r},b.distance=function(T){return arguments.length?(s=typeof T=="function"?T:Rn(+T),N(),b):s},b}const lpe=1664525,ape=1013904223,v0=4294967296;function cpe(){let e=1;return()=>(e=(lpe*e+ape)%v0)/v0}function upe(e){return e.x}function fpe(e){return e.y}var dpe=10,hpe=Math.PI*(3-Math.sqrt(5));function ppe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Jh(m),p=Ea("tick","end"),v=cpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var T,L=e.length,A;N===void 0&&(N=1);for(var R=0;R<N;++R)for(r+=(c-r)*s,d.forEach(function(M){M(r)}),T=0;T<L;++T)A=e[T],A.fx==null?A.x+=A.vx*=f:(A.x=A.fx,A.vx=0),A.fy==null?A.y+=A.vy*=f:(A.y=A.fy,A.vy=0);return t}function w(){for(var N=0,T=e.length,L;N<T;++N){if(L=e[N],L.index=N,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var A=dpe*Math.sqrt(.5+N),R=N*hpe;L.x=A*Math.cos(R),L.y=A*Math.sin(R)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function E(N){return N.initialize&&N.initialize(e,v),N}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(N){return arguments.length?(e=N,w(),d.forEach(E),t):e},alpha:function(N){return arguments.length?(r=+N,t):r},alphaMin:function(N){return arguments.length?(o=+N,t):o},alphaDecay:function(N){return arguments.length?(s=+N,t):+s},alphaTarget:function(N){return arguments.length?(c=+N,t):c},velocityDecay:function(N){return arguments.length?(f=1-N,t):1-f},randomSource:function(N){return arguments.length?(v=N,d.forEach(E),t):v},force:function(N,T){return arguments.length>1?(T==null?d.delete(N):d.set(N,E(T)),t):d.get(N)},find:function(N,T,L){var A=0,R=e.length,M,B,K,j,ne;for(L==null?L=1/0:L*=L,A=0;A<R;++A)j=e[A],M=N-j.x,B=T-j.y,K=M*M+B*B,K<L&&(ne=j,L=K);return ne},on:function(N,T){return arguments.length>1?(p.on(N,T),t):p.on(N)}}}function gpe(){var e,t,r,o,s=Rn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,N=e.length,T=np(e,upe,fpe).visitAfter(m);for(o=w,E=0;E<N;++E)t=e[E],T.visit(b)}function v(){if(e){var w,E=e.length,N;for(c=new Array(E),w=0;w<E;++w)N=e[w],c[N.index]=+s(N,w,e)}}function m(w){var E=0,N,T,L=0,A,R,M;if(w.length){for(A=R=M=0;M<4;++M)(N=w[M])&&(T=Math.abs(N.value))&&(E+=N.value,L+=T,A+=T*N.x,R+=T*N.y);w.x=A/L,w.y=R/L}else{N=w,N.x=N.data.x,N.y=N.data.y;do E+=c[N.data.index];while(N=N.next)}w.value=E}function b(w,E,N,T){if(!w.value)return!0;var L=w.x-t.x,A=w.y-t.y,R=T-E,M=L*L+A*A;if(R*R/h<M)return M<d&&(L===0&&(L=Gi(r),M+=L*L),A===0&&(A=Gi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)),t.vx+=L*w.value*o/M,t.vy+=A*w.value*o/M),!0;if(w.length||M>=d)return;(w.data!==t||w.next)&&(L===0&&(L=Gi(r),M+=L*L),A===0&&(A=Gi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)));do w.data!==t&&(R=c[w.data.index]*o/M,t.vx+=L*R,t.vy+=A*R);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Rn(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function vpe(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}function mpe(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}var ype=Object.defineProperty,bpe=(e,t,r)=>t in e?ype(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mt=(e,t,r)=>bpe(e,typeof t!="symbol"?t+"":t,r);function wpe(){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 m0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Ki(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=Ki.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:m0(t[o])&&m0(r[o])?t[o]=Ki(t[o],r[o]):t[o]=r[o])}),t},{})}const d1={mergeArrays:!0};Ki.options=d1;Ki.withOptions=(e,...t)=>{Ki.options={mergeArrays:!0,...e};const r=Ki(...t);return Ki.options=d1,r};function xpe(){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 _pe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function h1(e){e.preventDefault(),e.stopPropagation()}function p1(e){return typeof e=="number"}function io(e,t){return p1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Spe(e){return`${e.source.id}-${e.target.id}`}function g1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function kpe(e){return`url(#${g1(e.color)})`}function Tpe(e){return{size:e,padding:(t,r)=>io(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const v1={Arrow:e=>Tpe(e)},Cpe=(e,t,r)=>[t/2,r/2],Epe=(e,t,r)=>[y0(0,t),y0(0,r)];function y0(e,t){return Math.random()*(t-e)+e}const nh={Centered:Cpe,Randomized:Epe};function Ape(){return{autoResize:!1,callbacks:{},hooks:{},initial:_pe(),nodeRadius:16,marker:v1.Arrow(4),modifiers:{},positionInitializer:nh.Centered,simulation:{alphas:wpe(),forces:xpe()},zoom:{initial:1,min:.1,max:2}}}function Lpe(e={}){return Ki.withOptions({mergeArrays:!1},Ape(),e)}function Mpe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>h1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,tp.translate(c,f).scale(d)),p.append("g")}function Npe({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function $pe({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Xfe().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),jn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),jn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function Ope({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Rpe({links:c},r)}function Rpe(e,t){const r=[...Ppe(e,t),...Ipe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Ppe(e,t){return m1(e,t,(r,o)=>r.target.id===o.id)}function Ipe(e,t){return m1(e,t,(r,o)=>r.source.id===o.id)}function m1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function rh(e){return e.x??0}function ih(e){return e.y??0}function ip({source:e,target:t}){const r=new Mn(rh(e),ih(e)),o=new Mn(rh(t),ih(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function y1({center:e,node:t}){const r=new Mn(rh(t),ih(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Mn(0,1))),{n:r,c:o}}function b1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=ip({source:t,target:r}),f=o.add(c.multiply(io(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function zpe(e){const{start:t,end:r}=b1(e);return`M${t.x},${t.y}
45
- L${r.x},${r.y}`}function Dpe(e){const{start:t,end:r}=b1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Fpe({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=ip({source:t,target:r}),h=10,p=f.rotateByDegrees(-10).multiply(io(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(io(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
46
- A${m},${m},0,0,1,${v.x},${v.y}`}function Hpe({center:e,config:t,node:r}){const{n:o,c:s}=y1({center:e,node:r}),c=io(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=d.rotateByDegrees(40).multiply(c-1).add(o),p=d.rotateByDegrees(-40).multiply(c).add(o).add(d.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}
47
- A${c},${c},0,1,0,${p.x},${p.y}`}function Bpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=ip({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Wpe({center:e,config:t,node:r}){const{n:o,c:s}=y1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*io(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Os={line:{labelTransform:Dpe,path:zpe},arc:{labelTransform:Bpe,path:Fpe},reflexive:{labelTransform:Wpe,path:Hpe}};function qpe(e){return e.append("g").classed("links",!0).selectAll("path")}function Upe({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Spe(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>kpe(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function jpe(e){Vpe(e),Gpe(e)}function Vpe({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Os.reflexive.path({config:t,node:s.source,center:e}):w1(r,s.source,s.target)?Os.arc.path({config:t,source:s.source,target:s.target}):Os.line.path({config:t,source:s.source,target:s.target}))}function Gpe({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Os.reflexive.labelTransform({config:e,node:s.source,center:t}):w1(r,s.source,s.target)?Os.arc.labelTransform({config:e,source:s.source,target:s.target}):Os.line.labelTransform({config:e,source:s.source,target:s.target}))}function w1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Kpe(e){return e.append("defs").selectAll("marker")}function Xpe({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Ype(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>g1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Zpe(e.marker.path)),s})}function Ype(e){return[...new Set(e.links.map(t=>t.color))]}function Zpe(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Jpe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Qpe({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const E=w.append("circle").classed("node",!0).attr("r",T=>io(e,T)).on("contextmenu",(T,L)=>{h1(T),o(L)}).on("pointerdown",(T,L)=>tge(T,L,s??o)).style("fill",T=>T.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const N=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",T=>T.label?T.label.color:null).style("font-size",T=>T.label?T.label.fontSize:null).style("stroke","none").text(T=>T.label?T.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,N),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const ege=500;function tge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>ege){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function nge(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function rge({center:e,config:t,graph:r,onTick:o}){var s,c;const f=ppe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",vpe(()=>e().x).strength(m)).force("y",mpe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",gpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",ipe().radius(m=>p.radiusMultiplier*io(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",spe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function ige({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Fhe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class oge{constructor(t,r,o){if(Mt(this,"nodeTypes"),Mt(this,"_nodeTypeFilter"),Mt(this,"_includeUnlinked",!0),Mt(this,"_linkFilter",()=>!0),Mt(this,"_showLinkLabels",!0),Mt(this,"_showNodeLabels",!0),Mt(this,"filteredGraph"),Mt(this,"width",0),Mt(this,"height",0),Mt(this,"simulation"),Mt(this,"canvas"),Mt(this,"linkSelection"),Mt(this,"nodeSelection"),Mt(this,"markerSelection"),Mt(this,"zoom"),Mt(this,"drag"),Mt(this,"xOffset",0),Mt(this,"yOffset",0),Mt(this,"scale"),Mt(this,"focusedNode"),Mt(this,"resizeObserver"),Mt(this,"container"),Mt(this,"graph"),Mt(this,"config"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(oue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Mn.of([this.width,this.height]).divide(2).subtract(Mn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(p1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Xpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Upe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Qpe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=rge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=ige({config:this.config,canvasContainer:()=>jn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Mpe({applyZoom:this.scale!==1,container:jn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=qpe(this.canvas),this.nodeSelection=Jpe(this.canvas),this.markerSelection=Kpe(this.canvas),this.drag=$pe({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){nge(this.nodeSelection),jpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),jn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){Npe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=Ope({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function b0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function sge(e){return{...e}}function x1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const lge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},age={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},cge={flex:"~ gap-1","items-center":"","select-none":""},uge=["id","checked","onChange"],fge=["for"],dge=ut({__name:"ViewModuleGraph",props:Gl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Tu(e,"modelValue"),{graph:o}=kS(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();Ah(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),lo(()=>{v()}),Su(()=>{var w;(w=d.value)==null||w.shutdown()}),xt(o,()=>v());function h(w,E){var N;(N=d.value)==null||N.filterNodesByType(E,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var E;if((E=d.value)==null||E.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new oge(s.value,o.value,Lpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:N,newWidth:T})=>N===0&&T===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:v1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?nh.Randomized:nh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(Er)return;let E=0,N=0,T=0;w.on("pointerdown",(L,A)=>{A.type!=="external"&&(!A.x||!A.y||!m(L)||(E=A.x,N=A.y,T=Date.now()))}).on("pointerup",(L,A)=>{if(A.type==="external"||!A.x||!A.y||!m(L)||Date.now()-T>500)return;const R=A.x-E,M=A.y-N;R**2+M**2<100&&p(A.id)})}return(w,E)=>{var R;const N=wi,T=iue,L=Pw,A=Xr("tooltip");return ce(),xe("div",lge,[ie("div",null,[ie("div",age,[ie("div",cge,[gt(ie("input",{id:"hide-node-modules","onUpdate:modelValue":E[0]||(E[0]=M=>r.value=M),type:"checkbox"},null,512),[[cb,r.value]]),E[4]||(E[4]=ie("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ce(!0),xe(ct,null,pi((R=U(d))==null?void 0:R.nodeTypes.sort(),M=>{var B;return ce(),xe("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ie("input",{id:`type-${M}`,type:"checkbox",checked:(B=U(d))==null?void 0:B.nodeTypeFilter.includes(M),onChange:K=>h(M,K.target.checked)},null,40,uge),ie("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${M}`,"border-b-2":"",style:en({"border-color":`var(--color-node-${M})`})},Be(M)+" Modules",13,fge)])}),128)),E[5]||(E[5]=ie("div",{"flex-auto":""},null,-1)),ie("div",null,[gt(Oe(N,{icon:"i-carbon-reset",onClick:E[1]||(E[1]=M=>v(!0))},null,512),[[A,"Reset",void 0,{bottom:!0}]])])])]),ie("div",{ref_key:"el",ref:s},null,512),Oe(L,{modelValue:U(c),"onUpdate:modelValue":E[3]||(E[3]=M=>Ct(c)?c.value=M:null),direction:"right"},{default:rt(()=>[U(f)?(ce(),nt(Zy,{key:0},{default:rt(()=>[Oe(T,{id:U(f),"project-name":w.projectName,onClose:E[2]||(E[2]=M=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),hge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},pge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},gge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},vge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},mge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},yge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},_1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Xr("tooltip");return t.state==="pass"?(ce(),xe("div",hge)):t.failedSnapshot?gt((ce(),xe("div",pge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(ce(),xe("div",gge)):t.mode==="todo"?gt((ce(),xe("div",vge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((ce(),xe("div",mge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ce(),xe("div",yge))}}});function bge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function wge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function xge(e){const t=e.map(o=>wge(o)),r=bge(t);return t.map(({raw:o,id:s})=>x1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function _ge(e,t){return x1({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 Sge(e,t){if(!e)return b0({});const r=xge(e.externalized),o=e.inlined.map(d=>_ge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return sge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return b0({nodes:s,links:f})}const kge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Tge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Cge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Ege={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Age={class:"flex text-lg"},Lge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Mge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Nge={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},$ge={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Oge=["flex-1"],Rge=ut({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=Se(()=>{const A=Jt.value;if(!(!A||!A.filepath))return{filepath:A.filepath,projectName:A.file.projectName||""}}),h=Se(()=>Jt.value&&Uh(Jt.value)),p=Se(()=>{var A,R;return!!((R=(A=Jt.value)==null?void 0:A.meta)!=null&&R.typecheck)});function v(){var R;const A=(R=Jt.value)==null?void 0:R.filepath;A&&fetch(`/__open-in-editor?file=${encodeURIComponent(A)}`)}function m(A){A==="graph"&&(o.value=!0),Zn.value=A}const b=Se(()=>{var A;return((A=Ow.value)==null?void 0:A.reduce((R,{size:M})=>R+M,0))??0});function w(A){r.value=A}const E=/[/\\]node_modules[/\\]/;async function N(A=!1){var R;if(!(s.value||((R=d.value)==null?void 0:R.filepath)===c.value&&!A)){s.value=!0,await Tt();try{const M=d.value;if(!M){s.value=!1;return}if(A||!c.value||M.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let B=await mt.rpc.getModuleGraph(M.projectName,M.filepath,!!Io);f.value&&(Er&&(B=typeof window.structuredClone<"u"?window.structuredClone(B):UC(B)),B.inlined=B.inlined.filter(K=>!E.test(K)),B.externalized=B.externalized.filter(K=>!E.test(K))),t.value=Sge(B,M.filepath),c.value=M.filepath}m("graph")}finally{await new Promise(M=>setTimeout(M,100)),s.value=!1}}}Hh(()=>[d.value,Zn.value,f.value],([,A,R],M)=>{A==="graph"&&N(M&&R!==M[2])},{debounce:100,immediate:!0});const T=Se(()=>{var A;return iw((A=Jt.value)==null?void 0:A.file.projectName)}),L=Se(()=>{switch(T.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(A,R)=>{var re,P,$,O;const M=_1,B=wi,K=dge,j=Yce,ne=Bce,te=Pce,J=Xr("tooltip");return U(Jt)?(ce(),xe("div",kge,[ie("div",null,[ie("div",Tge,[Oe(M,{state:(re=U(Jt).result)==null?void 0:re.state,mode:U(Jt).mode,"failed-snapshot":U(h)},null,8,["state","mode","failed-snapshot"]),U(p)?gt((ce(),xe("div",Cge,null,512)),[[J,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),(P=U(Jt))!=null&&P.file.projectName?(ce(),xe("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:en({backgroundColor:U(T),color:U(L)})},Be(U(Jt).file.projectName),5)):Ye("",!0),ie("div",Ege,Be(($=U(Jt))==null?void 0:$.name),1),ie("div",Age,[U(Er)?Ye("",!0):gt((ce(),nt(B,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=U(Jt))!=null&&O.filepath),onClick:v},null,8,["disabled"])),[[J,"Open in editor",void 0,{bottom:!0}]])])]),ie("div",Lge,[ie("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==null}]),"data-testid":"btn-report",onClick:R[0]||(R[0]=S=>m(null))},R[5]||(R[5]=[ie("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),ie("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==="graph"}]),onClick:R[1]||(R[1]=S=>m("graph"))},[U(s)?(ce(),xe("span",Mge)):(ce(),xe("span",Nge)),R[6]||(R[6]=pt(" Module Graph "))],2),ie("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==="editor"}]),onClick:R[2]||(R[2]=S=>m("editor"))},[R[7]||(R[7]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+Be(U(r)?"* ":"")+"Code ",1)],2),ie("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":U(Zn)==="console",op20:U(Zn)!=="console"&&U(b)===0}]),onClick:R[3]||(R[3]=S=>m("console"))},[R[8]||(R[8]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+Be(U(b))+") ",1)],2)])]),ie("div",$ge,[U(o)?(ce(),xe("div",{key:0,"flex-1":U(Zn)==="graph"&&""},[gt(Oe(K,{modelValue:U(f),"onUpdate:modelValue":R[4]||(R[4]=S=>Ct(f)?f.value=S:null),graph:U(t),"data-testid":"graph","project-name":U(Jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Vi,U(Zn)==="graph"&&!U(s)]])],8,Oge)):Ye("",!0),U(Zn)==="editor"?(ce(),nt(j,{key:U(Jt).id,file:U(Jt),"data-testid":"editor",onDraft:w},null,8,["file"])):U(Zn)==="console"?(ce(),nt(ne,{key:2,file:U(Jt),"data-testid":"console"},null,8,["file"])):U(Zn)?Ye("",!0):(ce(),nt(te,{key:3,file:U(Jt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),Pge={h:"full",flex:"~ col"},Ige={"flex-auto":"","py-1":"","bg-white":""},zge=["src"],Dge=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ce(),xe("div",Pge,[r[0]||(r[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon:folder-details-reference"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ie("div",Ige,[ie("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,zge)])]))}}),Fge={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Hge={"font-bold":""},Bge={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Wge=["font-bold"],qge={text:"red500/70"},Uge={key:1,text:"sm","mb-2":""},jge={"font-bold":""},Vge={key:2,text:"sm","mb-2":""},Gge={"font-bold":""},Kge={key:3,text:"sm","font-thin":""},Xge=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return ce(),xe(ct,null,[ie("h4",Fge,[ie("span",Hge,[pt(Be(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(ce(),xe(ct,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+Be(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(ce(),xe("p",Bge,[(ce(!0),xe(ct,null,pi(t.error.stacks,(s,c)=>(ce(),xe("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+Be(s.method)+" "+Be(s.file)+":",1),ie("span",qge,Be(s.line)+":"+Be(s.column),1),r[0]||(r[0]=ie("br",null,null,-1))],8,Wge))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(ce(),xe("p",Uge,[r[1]||(r[1]=pt(" This error originated in ")),ie("span",jge,Be(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Ye("",!0),t.error.VITEST_TEST_NAME?(ce(),xe("p",Vge,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),ie("span",Gge,Be(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=ie("br",null,null,-1)),r[6]||(r[6]=ie("ul",null,[ie("li",null," The error was thrown, while Vitest was running this test. "),ie("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(ce(),xe("p",Kge,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),ie("br",null,null,-1),ie("ul",null,[ie("li",null," Cancel timeouts using clearTimeout and clearInterval. "),ie("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ye("",!0)],64)}}}),Yge={"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:""},Zge={class:"number","data-testid":"num-files"},Jge={class:"number"},Qge={class:"number","text-red5":""},eve={class:"number","text-red5":""},tve={class:"number","text-red5":""},nve={class:"number","data-testid":"run-time"},rve={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},ive={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},ove={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},sve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Xge;return ce(),xe(ct,null,[ie("div",Yge,[r[8]||(r[8]=ie("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ie("div",null,"Files",-1)),ie("div",Zge,Be(U(Me).summary.files),1),U(Me).summary.filesSuccess?(ce(),xe(ct,{key:0},[r[0]||(r[0]=ie("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ie("div",null,"Pass",-1)),ie("div",Jge,Be(U(Me).summary.filesSuccess),1)],64)):Ye("",!0),U(Me).summary.filesFailed?(ce(),xe(ct,{key:1},[r[2]||(r[2]=ie("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ie("div",null," Fail ",-1)),ie("div",Qge,Be(U(Me).summary.filesFailed),1)],64)):Ye("",!0),U(Me).summary.filesSnapshotFailed?(ce(),xe(ct,{key:2},[r[4]||(r[4]=ie("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ie("div",null," Snapshot Fail ",-1)),ie("div",eve,Be(U(Me).summary.filesSnapshotFailed),1)],64)):Ye("",!0),U(qi).length?(ce(),xe(ct,{key:3},[r[6]||(r[6]=ie("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ie("div",null," Errors ",-1)),ie("div",tve,Be(U(qi).length),1)],64)):Ye("",!0),r[10]||(r[10]=ie("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ie("div",null,"Time",-1)),ie("div",nve,Be(U(Me).summary.time),1)]),U(qi).length?(ce(),xe("div",rve,[r[15]||(r[15]=ie("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ie("p",ive,[pt(" Vitest caught "+Be(U(qi).length)+" error"+Be(U(qi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ie("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),ie("details",ove,[r[14]||(r[14]=ie("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ce(!0),xe(ct,null,pi(U(qi),(s,c)=>(ce(),nt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),lve=bi(sve,[["__scopeId","data-v-0178ddee"]]),ave={"p-2":"","text-center":"",flex:""},cve={"text-4xl":"","min-w-2em":""},uve={"text-md":""},fve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(ce(),xe("div",ave,[ie("div",null,[ie("div",cve,[bn(t.$slots,"body")]),ie("div",uve,[bn(t.$slots,"header")])])]))}}),dve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},hve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=fve;return ce(),xe("div",dve,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(Be(U(Me).summary.testsSuccess),1)]),_:1}),Oe(o,{class:it({"text-red5":U(Me).summary.testsFailed,op50:!U(Me).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(Be(U(Me).summary.testsFailed),1)]),_:1},8,["class"]),U(Me).summary.testsSkipped?(ce(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(Be(U(Me).summary.testsSkipped),1)]),_:1})):Ye("",!0),U(Me).summary.testsTodo?(ce(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(Be(U(Me).summary.testsTodo),1)]),_:1})):Ye("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(Be(U(Me).summary.totalTests),1)]),_:1})])}}}),pve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},gve={key:0,class:"text-gray-5"},vve={"aria-labelledby":"tests",m:"y-4 x-2"},mve=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=hve,s=lve;return ce(),xe("div",pve,[U(Me).summary.files===0&&U(ys)?(ce(),xe("div",gve," No tests found ")):Ye("",!0),ie("section",vve,[Oe(o)]),Oe(s)])}}}),yve={},bve={h:"full",flex:"~ col"},wve={class:"scrolls","flex-auto":"","py-1":""};function xve(e,t){const r=mve;return ce(),xe("div",bve,[t[0]||(t[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon-dashboard"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ie("div",wve,[Oe(r)])])}const _ve=bi(yve,[["render",xve]]),Sve=["open"],kve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(ce(),xe("div",{open:U(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ie("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:it(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),bn(r.$slots,"summary",{open:U(t)}),o[2]||(o[2]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),bn(r.$slots,"default")],40,Sve))}}),Tve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Cve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(ce(),xe("button",Tve,[ie("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Eve=["aria-label","data-current"],Ave={key:1,"w-4":""},Lve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Mve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Nve={"text-sm":"",truncate:"","font-light":""},$ve=["text","innerHTML"],Ove={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Rve={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Pve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Ive={key:1},zve=ut({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>mt.state.idMap.get(e.taskId)),r=Se(()=>{if(Er)return!1;const T=t.value;return T&&Uh(T)});function o(){var T;if(!e.expandable){(T=e.onItemClick)==null||T.call(e,t.value);return}e.opened?Me.collapseNode(e.taskId):Me.expandNode(e.taskId)}async function s(T){var L;(L=e.onItemClick)==null||L.call(e,T),ws.value&&(ru.value=!0,await Tt()),e.type==="file"?await Gh([T.file]):await Jae(T)}function c(T){return mt.rpc.updateSnapshot(T.file)}const f=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(T,L)=>`${e.taskId}-${L}`)),d=Se(()=>{const T=f.value,L=[];return(e.type==="file"||e.type==="suite")&&L.push("min-content"),L.push("min-content"),e.type==="suite"&&e.typecheck&&L.push("min-content"),L.push("minmax(0, 1fr)"),L.push("min-content"),`grid-template-columns: ${T.map(()=>"1rem").join(" ")} ${L.join(" ")};`}),h=Se(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>nw(e.name)),v=Se(()=>{const T=yE.value,L=p.value;return T?L.replace(T,A=>`<span class="highlight">${A}</span>`):L}),m=Se(()=>e.type!=="file"&&e.disableTaskLocation),b=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>m.value?"color-red5 dark:color-#f43f5e":null);function E(){var L;const T=t.value;e.type==="file"?(L=e.onItemClick)==null||L.call(e,T):Xce(T)}const N=Se(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,L)=>{const A=_1,R=Cve,M=wi,B=Xr("tooltip");return U(t)?(ce(),xe("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:en(U(d)),"aria-label":T.name,"data-current":T.current,onClick:L[2]||(L[2]=K=>o())},[T.indent>0?(ce(!0),xe(ct,{key:0},pi(U(f),K=>(ce(),xe("div",{key:K,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),T.type==="file"||T.type==="suite"?(ce(),xe("div",Ave,[ie("div",{class:it(T.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Oe(A,{state:T.state,mode:U(t).mode,"failed-snapshot":U(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),ie("div",Lve,[T.type==="file"&&T.typecheck?gt((ce(),xe("div",Mve,null,512)),[[B,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),ie("span",Nve,[T.type==="file"&&T.projectName?(ce(),xe("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:en({backgroundColor:T.projectNameColor,color:U(N)})},Be(T.projectName),5)):Ye("",!0),ie("span",{text:T.state==="fail"?"red-500":"",innerHTML:U(v)},null,8,$ve)]),typeof T.duration=="number"?(ce(),xe("span",Ove,Be(T.duration>0?T.duration:"< 1")+"ms ",1)):Ye("",!0)]),ie("div",Rve,[!U(Er)&&U(r)?gt((ce(),nt(R,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:L[0]||(L[0]=Lc(K=>c(U(t)),["prevent","stop"]))},null,512)),[[B,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Oe(U($b),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",U(w)])},{popper:rt(()=>[U(m)?(ce(),xe("div",Pve,[L[5]||(L[5]=ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ie("div",null,[pt(Be(U(b))+": this feature is not available, you have disabled ",1),L[3]||(L[3]=ie("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),L[4]||(L[4]=pt(" in your configuration file."))]),L[6]||(L[6]=ie("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ce(),xe("div",Ive,Be(U(b)),1))]),default:rt(()=>[Oe(M,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Lc(E,["prevent","stop"])})]),_:1},8,["class"]),U(Er)?Ye("",!0):gt((ce(),nt(M,{key:1,"data-testid":"btn-run-test",title:U(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:L[1]||(L[1]=Lc(K=>s(U(t)),["prevent","stop"]))},null,8,["title"])),[[B,U(h),void 0,{bottom:!0}]])])],12,Eve)):Ye("",!0)}}}),Dve=bi(zve,[["__scopeId","data-v-0f30dec3"]]),Fve={"flex-1":"","ms-2":"","select-none":""},Hve=ut({__name:"FilterStatus",props:Gl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Tu(e,"modelValue");return(r,o)=>(ce(),xe("label",hi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Lc(s=>t.value=!t.value,["prevent"]))}),[ie("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(ie("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[cb,t.value]]),ie("span",Fve,Be(r.label),1)],16))}});function Bve(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ic;function oh(){oh.init||(oh.init=!0,Ic=Bve()!==-1)}var Wu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){oh(),Tt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ic&&this.$el.appendChild(e),e.data="about:blank",Ic||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ic&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Wve=wy();yy("data-v-b329ee4c");const qve={class:"resize-observer",tabindex:"-1"};by();const Uve=Wve((e,t,r,o,s,c)=>(ce(),nt("div",qve)));Wu.render=Uve;Wu.__scopeId="data-v-b329ee4c";Wu.__file="src/components/ResizeObserver.vue";function zc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zc=function(t){return typeof t}:zc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function jve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vve(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gve(e,t,r){return t&&Vve(e.prototype,t),e}function w0(e){return Kve(e)||Xve(e)||Yve(e)||Zve()}function Kve(e){if(Array.isArray(e))return sh(e)}function Xve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Yve(e,t){if(e){if(typeof e=="string")return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sh(e,t)}}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Zve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jve(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Qve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(w0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(w0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function S1(e,t){if(e===t)return!0;if(zc(e)==="object"){for(var r in e)if(!S1(e[r],t[r]))return!1;return!0}return!1}var eme=function(){function e(t,r,o){jve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Gve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Jve(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Qve(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Tt(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function k1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new eme(e,o,r);e._vue_visibilityState=s}}function tme(e,t,r){var o=t.value,s=t.oldValue;if(!S1(o,s)){var c=e._vue_visibilityState;if(!o){T1(e);return}c?c.createObserver(o,r):k1(e,{value:o},r)}}function T1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var nme={beforeMount:k1,updated:tme,unmounted:T1},rme={itemsLimit:1e3},ime=/(auto|scroll)/;function C1(e,t){return e.parentNode===null?t:C1(e.parentNode,t.concat([e]))}var dd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},ome=function(t){return dd(t,"overflow")+dd(t,"overflow-y")+dd(t,"overflow-x")},sme=function(t){return ime.test(ome(t))};function x0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=C1(e.parentNode,[]),r=0;r<t.length;r+=1)if(sme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}var lme={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function ame(){return this.items.length&&lh(this.items[0])!=="object"}var ah=!1;if(typeof window<"u"){ah=!1;try{var cme=Object.defineProperty({},"passive",{get:function(){ah=!0}});window.addEventListener("test",null,cme)}catch{}}let ume=0;var op={name:"RecycleScroller",components:{ResizeObserver:Wu},directives:{ObserveVisibility:nme},props:{...lme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:ame,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Sh({id:ume++,index:t,used:!0,key:o,type:s}),f=wh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let N,T,L,A,R;if(!p)N=T=A=R=L=0;else if(this.$_prerender)N=A=0,T=R=Math.min(this.prerender,h.length),L=null;else{const J=this.getScroll();if(t){let $=J.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),r===null&&$<c||$<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=J.start;const re=this.buffer;J.start-=re,J.end+=re;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,J.start-=P),this.$refs.after){const $=this.$refs.after.scrollHeight;J.end+=$}if(r===null){let $,O=0,S=p-1,F=~~(p/2),V;do V=F,$=v[F].accumulator,$<J.start?O=F:F<p-1&&v[F+1].accumulator>J.start&&(S=F),F=~~((O+S)/2);while(F!==V);for(F<0&&(F=0),N=F,L=v[p-1].accumulator,T=F;T<p&&v[T].accumulator<J.end;T++);for(T===-1?T=h.length-1:(T++,T>p&&(T=p)),A=N;A<p&&P+v[A].accumulator<J.start;A++);for(R=A;R<p&&P+v[R].accumulator<J.end;R++);}else{N=~~(J.start/r*o);const $=N%o;N-=$,T=Math.ceil(J.end/r*o),A=Math.max(0,Math.floor((J.start-P)/r*o)),R=Math.floor((J.end-P)/r*o),N<0&&(N=0),T>p&&(T=p),A<0&&(A=0),R>p&&(R=p),L=Math.ceil(p/o)*r}}T-N>rme.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let M;const B=N<=this.$_endIndex&&T>=this.$_startIndex;if(B)for(let J=0,re=w.length;J<re;J++)M=w[J],M.nr.used&&(e&&(M.nr.index=E[M.item[d]]),(M.nr.index==null||M.nr.index<N||M.nr.index>=T)&&this.unuseView(M));const K=B?null:new Map;let j,ne,te;for(let J=N;J<T;J++){j=h[J];const re=d?j[d]:j;if(re==null)throw new Error(`Key is ${re} on item (keyField is '${d}')`);if(M=m.get(re),!r&&!v[J].size){M&&this.unuseView(M);continue}ne=j[f];let P=b.get(ne),$=!1;if(!M)B?P&&P.length?M=P.pop():M=this.addView(w,J,j,re,ne):(te=K.get(ne)||0,(!P||te>=P.length)&&(M=this.addView(w,J,j,re,ne),this.unuseView(M,!0),P=b.get(ne)),M=P[te],K.set(ne,te+1)),m.delete(M.nr.key),M.nr.used=!0,M.nr.index=J,M.nr.key=re,M.nr.type=ne,m.set(re,M),$=!0;else if(!M.nr.used&&(M.nr.used=!0,$=!0,P)){const O=P.indexOf(M);O!==-1&&P.splice(O,1)}M.item=j,$&&(J===h.length-1&&this.$emit("scroll-end"),J===0&&this.$emit("scroll-start")),r===null?(M.position=v[J-1].accumulator,M.offset=0):(M.position=Math.floor(J/o)*r,M.offset=J%o*s)}return this.$_startIndex=N,this.$_endIndex=T,this.emitUpdate&&this.$emit("update",N,T,A,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=x0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ah?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=x0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const fme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},dme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function hme(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Xr("observe-visibility");return gt((ce(),xe("div",{class:it(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(ce(),xe("div",fme,[bn(e.$slots,"before")],512)):Ye("v-if",!0),(ce(),nt(kd(r.listTag),{ref:"wrapper",style:en({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(ce(!0),xe(ct,null,pi(s.pool,h=>(ce(),nt(kd(r.itemTag),hi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},XS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[bn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),bn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ce(),xe("div",dme,[bn(e.$slots,"after")],512)):Ye("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}op.render=hme;op.__file="src/components/RecycleScroller.vue";function pme(e){const t=Se(()=>Wd.value?!1:!Qe.onlyTests),r=Se(()=>qn.value===""),o=Ue(qn.value);Hh(()=>qn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;qn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Qe.failed=!1,Qe.success=!1,Qe.skipped=!1,Qe.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Is.value&&(un.value.search=(h==null?void 0:h.trim())??"",un.value.failed=p,un.value.success=v,un.value.skipped=m,un.value.onlyTests=b)}return xt(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Me.filterNodes()},{flush:"post"}),xt(()=>Nr.value.length,h=>{h&&(un.value.expandAll=void 0)},{flush:"post"}),{initialized:Is,filter:Qe,search:qn,disableFilter:t,isFiltered:rw,isFilteredByStatus:Wd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Pu,testsTotal:bE,uiEntries:Kn}}const gme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},vme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},mme=["op"],yme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},bme={"text-red5":""},wme={"text-yellow5":""},xme={"text-green5":""},_me={class:"text-purple5:50"},Sme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},kme=["disabled"],Tme=["disabled"],Cme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Eme=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Se(()=>Du.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:N,testsTotal:T,uiEntries:L}=pme(s),A=Ue("grid-cols-2"),R=Ue("grid-col-span-2"),M=Ue(),{width:B}=Bh();return xt(()=>B.value*(yn.navigation/100),K=>{K<420?(A.value="grid-cols-2",R.value="grid-col-span-2"):(A.value="grid-cols-4",R.value="grid-col-span-4")}),(K,j)=>{const ne=wi,te=Hve,J=Dve,re=kve,P=Xr("tooltip");return ce(),xe("div",{ref_key:"testExplorerRef",ref:M,h:"full",flex:"~ col"},[ie("div",null,[ie("div",gme,[bn(K.$slots,"header",{filteredFiles:U(p)||U(v)?U(N):void 0})]),ie("div",vme,[j[13]||(j[13]=ie("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(ie("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":j[0]||(j[0]=$=>Ct(d)?d.value=$:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:U(d).length?"100":"50",onKeydown:[j[1]||(j[1]=Od($=>U(w)(!1),["esc"])),j[2]||(j[2]=Od($=>r("run",U(p)||U(v)?U(N):void 0),["enter"]))]},null,40,mme),[[pT,U(d)]]),gt(Oe(ne,{disabled:U(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:j[3]||(j[3]=$=>U(w)(!0))},null,8,["disabled"]),[[P,"Clear search",void 0,{bottom:!0}]])]),ie("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(U(A))},[ie("div",{class:it(U(R)),flex:"~ gap-2 items-center"},[j[14]||(j[14]=ie("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),j[15]||(j[15]=ie("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Oe(ne,{disabled:U(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:j[4]||(j[4]=$=>U(E)(!1))},null,8,["disabled"]),[[P,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(te,{modelValue:U(f).failed,"onUpdate:modelValue":j[5]||(j[5]=$=>U(f).failed=$),label:"Fail"},null,8,["modelValue"]),Oe(te,{modelValue:U(f).success,"onUpdate:modelValue":j[6]||(j[6]=$=>U(f).success=$),label:"Pass"},null,8,["modelValue"]),Oe(te,{modelValue:U(f).skipped,"onUpdate:modelValue":j[7]||(j[7]=$=>U(f).skipped=$),label:"Skip"},null,8,["modelValue"]),Oe(te,{modelValue:U(f).onlyTests,"onUpdate:modelValue":j[8]||(j[8]=$=>U(f).onlyTests=$),label:"Only Tests"},null,8,["modelValue"])],2)]),ie("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:j[12]||(j[12]=(...$)=>U(om)&&U(om)(...$))},[Oe(re,null,KS({default:rt(()=>[(U(p)||U(v))&&U(L).length===0?(ce(),xe(ct,{key:0},[U(c)?(ce(),xe("div",Sme,[j[18]||(j[18]=ie("div",{op30:""}," No matched test ",-1)),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(U(m)?null:"hover:op100"),disabled:U(m),onClickPassive:j[9]||(j[9]=$=>U(w)(!0))}," Clear Search ",42,kme),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(U(h)?null:"hover:op100"),disabled:U(h),onClickPassive:j[10]||(j[10]=$=>U(E)(!0))}," Clear Filter ",42,Tme),ie("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:j[11]||(j[11]=(...$)=>U(b)&&U(b)(...$))}," Clear All ",32)])):(ce(),xe("div",Cme,j[19]||(j[19]=[ie("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ie("div",{op30:""}," Loading... ",-1)])))],64)):(ce(),nt(U(op),{key:1,"page-mode":"","key-field":"id","item-size":28,items:U(L),buffer:100},{default:rt(({item:$})=>[Oe(J,{class:it(["h-28px m-0 p-0",U(to)===$.id?"bg-active":""]),"task-id":$.id,expandable:$.expandable,type:$.type,current:U(to)===$.id,indent:$.indent,name:$.name,typecheck:$.typecheck===!0,"project-name":$.projectName??"","project-name-color":$.projectNameColor??"",state:$.state,duration:$.duration,opened:$.expanded,"disable-task-location":!U(o),"on-item-click":K.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[U(c)?{name:"summary",fn:rt(()=>[ie("div",yme,[ie("span",bme," FAIL ("+Be(U(T).failed)+") ",1),j[16]||(j[16]=ie("span",null,"/",-1)),ie("span",wme," RUNNING ("+Be(U(T).running)+") ",1),ie("span",xme," PASS ("+Be(U(T).success)+") ",1),j[17]||(j[17]=ie("span",null,"/",-1)),ie("span",_me," SKIP ("+Be(U(f).onlyTests?U(T).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Ame=""+new URL("../favicon.svg",import.meta.url).href,Lme={class:"flex text-lg"},Mme=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=Se(()=>Ta.value?"light":"dark");async function o(f){ws.value&&(ru.value=!0,await Tt(),no.value&&(iu(!0),await Tt())),f!=null&&f.length?await Gh(f):await Yae()}function s(){Me.collapseAllNodes()}function c(){Me.expandAllNodes()}return(f,d)=>{const h=wi,p=Eme,v=Xr("tooltip");return ce(),nt(p,{border:"r base","on-item-click":U(KE),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=ie("img",{"w-6":"","h-6":"",src:Ame,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ie("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ie("div",Lme,[gt(Oe(h,{title:"Collapse tests",disabled:!U(Is),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Vi,!U(vm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Oe(h,{disabled:!U(Is),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Vi,U(vm)],[v,"Expand tests",void 0,{bottom:!0}]]),gt(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>U(iu)(!0))},null,512),[[Vi,U(jd)&&!U(ws)||!U(Ms)],[v,"Dashboard",void 0,{bottom:!0}]]),U(jd)&&!U(ws)?(ce(),nt(U($b),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:rt(()=>d[6]||(d[6]=[ie("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ie("div",null,"Coverage enabled but missing html reporter."),ie("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=ie("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ye("",!0),U(ws)?gt((ce(),nt(h,{key:1,disabled:U(ru),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>U(XE)())},null,8,["disabled"])),[[Vi,!U(no)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),U(Me).summary.failedSnapshot&&!U(Er)?gt((ce(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!U(Me).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>U(Me).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),U(Er)?Ye("",!0):gt((ce(),nt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),gt(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>U(_ce)())},null,512),[[v,`Toggle to ${U(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Nme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},$me=ut({__name:"ProgressBar",setup(e){const{width:t}=Bh(),r=Se(()=>[Me.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ys.value&&"in-progress"].filter(Boolean).join(" ")),o=Se(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesSuccess/d:0}),s=Se(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesFailed/d:0}),c=Se(()=>Me.summary.files-Me.summary.filesFailed-Me.summary.filesSuccess),f=Se(()=>{const d=Me.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ce(),xe("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:it(U(r))},[ie("div",Nme,[ie("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(U(r)),style:en(`width: ${U(s)}px;`)},"   ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(U(r)),style:en(`left: ${U(s)}px; width: ${U(o)}px;`)},"   ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(U(r)),style:en(`left: ${U(o)+U(s)}px; width: ${U(f)}px;`)},"   ",6)])],2))}}),Ome=bi($me,[["__scopeId","data-v-16879415"]]),_0={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const r=t,o=e,s=ZS(),c=Ue([]),f=Se(()=>c.value.reduce((ee,D)=>(ee[~~D.id]=D)&&ee,{})),d=Se(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=Se(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),w=()=>{document.addEventListener("mousemove",T,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",L))},E=()=>{document.removeEventListener("mousemove",T,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",T,{passive:!1}),document.removeEventListener("touchend",L))},N=(ee,D)=>{const Z=ee.target.closest(".splitpanes__splitter");if(Z){const{left:G,top:le}=Z.getBoundingClientRect(),{clientX:pe,clientY:I}="ontouchstart"in window&&ee.touches?ee.touches[0]:ee;v.value.cursorOffset=o.horizontal?I-le:pe-G}w(),v.value.mouseDown=!0,v.value.activeSplitter=D},T=ee=>{v.value.mouseDown&&(ee.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{j(B(ee)),r("resize",c.value.map(D=>({min:D.min,max:D.max,size:D.size})))}))},L=()=>{v.value.dragging&&r("resized",c.value.map(ee=>({min:ee.min,max:ee.max,size:ee.size}))),v.value.mouseDown=!1,setTimeout(()=>{v.value.dragging=!1,E()},100)},A=(ee,D)=>{"ontouchstart"in window&&(ee.preventDefault(),o.dblClickSplitter&&(m.value.splitter===D?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,R(ee,D),m.value.splitter=null):(m.value.splitter=D,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),v.value.dragging||r("splitter-click",c.value[D])},R=(ee,D)=>{let Z=0;c.value=c.value.map((G,le)=>(G.size=le===D?G.max:G.min,le!==D&&(Z+=G.min),G)),c.value[D].size-=Z,r("pane-maximize",c.value[D]),r("resized",c.value.map(G=>({min:G.min,max:G.max,size:G.size})))},M=(ee,D)=>{r("pane-click",f.value[D])},B=ee=>{const D=h.value.getBoundingClientRect(),{clientX:Z,clientY:G}="ontouchstart"in window&&ee.touches?ee.touches[0]:ee;return{x:Z-(o.horizontal?0:v.value.cursorOffset)-D.left,y:G-(o.horizontal?v.value.cursorOffset:0)-D.top}},K=ee=>{ee=ee[o.horizontal?"y":"x"];const D=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(ee=D-ee),ee*100/D},j=ee=>{const D=v.value.activeSplitter;let Z={prevPanesSize:te(D),nextPanesSize:J(D),prevReachedMinPanes:0,nextReachedMinPanes:0};const G=0+(o.pushOtherPanes?0:Z.prevPanesSize),le=100-(o.pushOtherPanes?0:Z.nextPanesSize),pe=Math.max(Math.min(K(ee),le),G);let I=[D,D+1],H=c.value[I[0]]||null,X=c.value[I[1]]||null;const ue=H.max<100&&pe>=H.max+Z.prevPanesSize,he=X.max<100&&pe<=100-(X.max+J(D+1));if(ue||he){ue?(H.size=H.max,X.size=Math.max(100-H.max-Z.prevPanesSize-Z.nextPanesSize,0)):(H.size=Math.max(100-X.max-Z.prevPanesSize-J(D+1),0),X.size=X.max);return}if(o.pushOtherPanes){const de=ne(Z,pe);if(!de)return;({sums:Z,panesToResize:I}=de),H=c.value[I[0]]||null,X=c.value[I[1]]||null}H!==null&&(H.size=Math.min(Math.max(pe-Z.prevPanesSize-Z.prevReachedMinPanes,H.min),H.max)),X!==null&&(X.size=Math.min(Math.max(100-pe-Z.nextPanesSize-Z.nextReachedMinPanes,X.min),X.max))},ne=(ee,D)=>{const Z=v.value.activeSplitter,G=[Z,Z+1];return D<ee.prevPanesSize+c.value[G[0]].min&&(G[0]=re(Z).index,ee.prevReachedMinPanes=0,G[0]<Z&&c.value.forEach((le,pe)=>{pe>G[0]&&pe<=Z&&(le.size=le.min,ee.prevReachedMinPanes+=le.min)}),ee.prevPanesSize=te(G[0]),G[0]===void 0)?(ee.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((le,pe)=>{pe>0&&pe<=Z&&(le.size=le.min,ee.prevReachedMinPanes+=le.min)}),c.value[G[1]].size=100-ee.prevReachedMinPanes-c.value[0].min-ee.prevPanesSize-ee.nextPanesSize,null):D>100-ee.nextPanesSize-c.value[G[1]].min&&(G[1]=P(Z).index,ee.nextReachedMinPanes=0,G[1]>Z+1&&c.value.forEach((le,pe)=>{pe>Z&&pe<G[1]&&(le.size=le.min,ee.nextReachedMinPanes+=le.min)}),ee.nextPanesSize=J(G[1]-1),G[1]===void 0)?(ee.nextReachedMinPanes=0,c.value.forEach((le,pe)=>{pe<d.value-1&&pe>=Z+1&&(le.size=le.min,ee.nextReachedMinPanes+=le.min)}),c.value[G[0]].size=100-ee.prevPanesSize-J(G[0]-1),null):{sums:ee,panesToResize:G}},te=ee=>c.value.reduce((D,Z,G)=>D+(G<ee?Z.size:0),0),J=ee=>c.value.reduce((D,Z,G)=>D+(G>ee+1?Z.size:0),0),re=ee=>[...c.value].reverse().find(D=>D.index<ee&&D.size>D.min)||{},P=ee=>c.value.find(D=>D.index>ee+1&&D.size>D.min)||{},$=()=>{var ee;Array.from(((ee=h.value)==null?void 0:ee.children)||[]).forEach(D=>{const Z=D.classList.contains("splitpanes__pane"),G=D.classList.contains("splitpanes__splitter");!Z&&!G&&(D.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},O=(ee,D,Z=!1)=>{const G=ee-1,le=document.createElement("div");le.classList.add("splitpanes__splitter"),Z||(le.onmousedown=pe=>N(pe,G),typeof window<"u"&&"ontouchstart"in window&&(le.ontouchstart=pe=>N(pe,G)),le.onclick=pe=>A(pe,G+1)),o.dblClickSplitter&&(le.ondblclick=pe=>R(pe,G+1)),D.parentNode.insertBefore(le,D)},S=ee=>{ee.onmousedown=void 0,ee.onclick=void 0,ee.ondblclick=void 0,ee.remove()},F=()=>{var ee;const D=Array.from(((ee=h.value)==null?void 0:ee.children)||[]);D.forEach(G=>{G.className.includes("splitpanes__splitter")&&S(G)});let Z=0;D.forEach(G=>{G.className.includes("splitpanes__pane")&&(!Z&&o.firstSplitter?O(Z,G,!0):Z&&O(Z,G),Z++)})},V=({uid:ee,...D})=>{const Z=f.value[ee];Object.entries(D).forEach(([G,le])=>Z[G]=le)},se=ee=>{var D;let Z=-1;Array.from(((D=h.value)==null?void 0:D.children)||[]).some(G=>(G.className.includes("splitpanes__pane")&&Z++,G.isSameNode(ee.el))),c.value.splice(Z,0,{...ee,index:Z}),c.value.forEach((G,le)=>G.index=le),p.value&&Tt(()=>{F(),_e({addedPane:c.value[Z]}),r("pane-add",{index:Z,panes:c.value.map(G=>({min:G.min,max:G.max,size:G.size}))})})},me=ee=>{const D=c.value.findIndex(G=>G.id===ee),Z=c.value.splice(D,1)[0];c.value.forEach((G,le)=>G.index=le),Tt(()=>{F(),_e({removedPane:{...Z}}),r("pane-remove",{removed:Z,panes:c.value.map(G=>({min:G.min,max:G.max,size:G.size}))})})},_e=(ee={})=>{!ee.addedPane&&!ee.removedPane?qe():c.value.some(D=>D.givenSize!==null||D.min||D.max<100)?Ze(ee):Pe(),p.value&&r("resized",c.value.map(D=>({min:D.min,max:D.max,size:D.size})))},Pe=()=>{const ee=100/d.value;let D=0;const Z=[],G=[];c.value.forEach(le=>{le.size=Math.max(Math.min(ee,le.max),le.min),D-=le.size,le.size>=le.max&&Z.push(le.id),le.size<=le.min&&G.push(le.id)}),D>.1&&Ke(D,Z,G)},qe=()=>{let ee=100;const D=[],Z=[];let G=0;c.value.forEach(pe=>{ee-=pe.size,pe.givenSize!==null&&G++,pe.size>=pe.max&&D.push(pe.id),pe.size<=pe.min&&Z.push(pe.id)});let le=100;ee>.1&&(c.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(ee/(d.value-G),pe.max),pe.min)),le-=pe.size}),le>.1&&Ke(le,D,Z))},Ze=({addedPane:ee,removedPane:D}={})=>{let Z=100/d.value,G=0;const le=[],pe=[];((ee==null?void 0:ee.givenSize)??null)!==null&&(Z=(100-ee.givenSize)/(d.value-1).value),c.value.forEach(I=>{G-=I.size,I.size>=I.max&&le.push(I.id),I.size<=I.min&&pe.push(I.id)}),!(Math.abs(G)<.1)&&(c.value.forEach(I=>{(ee==null?void 0:ee.givenSize)!==null&&(ee==null?void 0:ee.id)===I.id||(I.size=Math.max(Math.min(Z,I.max),I.min)),G-=I.size,I.size>=I.max&&le.push(I.id),I.size<=I.min&&pe.push(I.id)}),G>.1&&Ke(G,le,pe))},Ke=(ee,D,Z)=>{let G;ee>0?G=ee/(d.value-D.length):G=ee/(d.value-Z.length),c.value.forEach((le,pe)=>{if(ee>0&&!D.includes(le.id)){const I=Math.max(Math.min(le.size+G,le.max),le.min),H=I-le.size;ee-=H,le.size=I}else if(!Z.includes(le.id)){const I=Math.max(Math.min(le.size+G,le.max),le.min),H=I-le.size;ee-=H,le.size=I}}),Math.abs(ee)>.1&&Tt(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};xt(()=>o.firstSplitter,()=>F()),xt(()=>o.dblClickSplitter,ee=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((D,Z)=>{D.ondblclick=ee?G=>R(G,Z):void 0})}),ya(()=>p.value=!1),lo(()=>{$(),F(),_e(),r("ready"),p.value=!0});const Xe=()=>{var ee;return wa("div",{ref:h,class:b.value},(ee=s.default)==null?void 0:ee.call(s))};return _r("panes",c),_r("indexedPanes",f),_r("horizontal",Se(()=>o.horizontal)),_r("requestUpdate",V),_r("onPaneAdd",se),_r("onPaneRemove",me),_r("onPaneClick",M),(ee,D)=>(ce(),nt(kd(Xe)))}},kc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=mn("requestUpdate"),s=mn("onPaneAdd"),c=mn("horizontal"),f=mn("onPaneRemove"),d=mn("onPaneClick"),h=(t=Do())==null?void 0:t.uid,p=mn("indexedPanes"),v=Se(()=>p.value[h]),m=Ue(null),b=Se(()=>{const T=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(T,E.value),w.value)}),w=Se(()=>{const T=parseFloat(r.minSize);return isNaN(T)?0:T}),E=Se(()=>{const T=parseFloat(r.maxSize);return isNaN(T)?100:T}),N=Se(()=>{var T;return`${c.value?"height":"width"}: ${(T=v.value)==null?void 0:T.size}%`});return lo(()=>{s({id:h,el:m.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),xt(()=>b.value,T=>o({uid:h,size:T})),xt(()=>w.value,T=>o({uid:h,min:T})),xt(()=>E.value,T=>o({uid:h,max:T})),ya(()=>f(h)),(T,L)=>(ce(),xe("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:L[0]||(L[0]=A=>U(d)(A,T._.uid)),style:en(N.value)},[bn(T.$slots,"default")],4))}},Rme={"h-screen":"","w-screen":"",overflow:"hidden"},Pme=ut({__name:"index",setup(e){const t=GE(),r=pc(m=>{p(),h(m)},0),o=pc(m=>{m.forEach((b,w)=>{xr.value[w]=b.size}),d(m)},0),s=pc(m=>{m.forEach((b,w)=>{$o.value[w]=b.size}),h(m),v()},0),c=pc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);xr.value[0]=100*b/m,xr.value[1]=100-xr.value[0],d([{size:xr.value[0]},{size:xr.value[1]}])}function d(m){yn.navigation=m[0].size,yn.details.size=m[1].size}function h(m){yn.details.browser=m[0].size,yn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=Ome,E=Mme,N=_ve,T=Dge,L=Rge,A=dce,R=tce;return ce(),xe(ct,null,[Oe(w),ie("div",Rme,[Oe(U(_0),{class:"pt-4px",onResized:U(o),onResize:U(c),onReady:f},{default:rt(()=>[Oe(U(kc),{size:U(xr)[0]},{default:rt(()=>[Oe(E)]),_:1},8,["size"]),Oe(U(kc),{size:U(xr)[1]},{default:rt(()=>[U(Io)?(ce(),nt(U(_0),{id:"details-splitpanes",key:"browser-detail",onResize:U(r),onResized:U(s)},{default:rt(()=>[Oe(U(kc),{size:U($o)[0],"min-size":"10"},{default:rt(()=>[b[0]||(Uc(-1),(b[0]=Oe(A)).cacheIndex=0,Uc(1),b[0])]),_:1},8,["size"]),Oe(U(kc),{size:U($o)[1]},{default:rt(()=>[U(t)?(ce(),nt(N,{key:"summary"})):U(no)?(ce(),nt(T,{key:"coverage",src:U(wm)},null,8,["src"])):(ce(),nt(L,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ce(),nt(Gk,{key:"ui-detail"},{default:rt(()=>[U(t)?(ce(),nt(N,{key:"summary"})):U(no)?(ce(),nt(T,{key:"coverage",src:U(wm)},null,8,["src"])):(ce(),nt(L,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(R)],64)}}}),Ime=[{name:"index",path:"/",component:Pme,props:!0}];/*!
49
- * vue-router v4.5.0
50
- * (c) 2024 Eduardo San Martin Morote
51
- * @license MIT
52
- */const ms=typeof document<"u";function E1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function zme(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&E1(e.default)}const bt=Object.assign;function hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=$r(s)?s.map(e):e(s)}return r}const Bl=()=>{},$r=Array.isArray,A1=/#/g,Dme=/&/g,Fme=/\//g,Hme=/=/g,Bme=/\?/g,L1=/\+/g,Wme=/%5B/g,qme=/%5D/g,M1=/%5E/g,Ume=/%60/g,N1=/%7B/g,jme=/%7C/g,$1=/%7D/g,Vme=/%20/g;function sp(e){return encodeURI(""+e).replace(jme,"|").replace(Wme,"[").replace(qme,"]")}function Gme(e){return sp(e).replace(N1,"{").replace($1,"}").replace(M1,"^")}function ch(e){return sp(e).replace(L1,"%2B").replace(Vme,"+").replace(A1,"%23").replace(Dme,"%26").replace(Ume,"`").replace(N1,"{").replace($1,"}").replace(M1,"^")}function Kme(e){return ch(e).replace(Hme,"%3D")}function Xme(e){return sp(e).replace(A1,"%23").replace(Bme,"%3F")}function Yme(e){return e==null?"":Xme(e).replace(Fme,"%2F")}function fa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Zme=/\/$/,Jme=e=>e.replace(Zme,"");function pd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=n0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:fa(f)}}function Qme(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function S0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function e0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Hs(t.matched[o],r.matched[s])&&O1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Hs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function O1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!t0e(e[r],t[r]))return!1;return!0}function t0e(e,t){return $r(e)?k0(e,t):$r(t)?k0(t,e):e===t}function k0(e,t){return $r(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function n0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var da;(function(e){e.pop="pop",e.push="push"})(da||(da={}));var Wl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wl||(Wl={}));function r0e(e){if(!e)if(ms){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Jme(e)}const i0e=/^[^#]+#/;function o0e(e,t){return e.replace(i0e,"#")+t}function s0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const qu=()=>({left:window.scrollX,top:window.scrollY});function l0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=s0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function T0(e,t){return(history.state?history.state.position-t:-1)+e}const uh=new Map;function a0e(e,t){uh.set(e,t)}function c0e(e){const t=uh.get(e);return uh.delete(e),t}let u0e=()=>location.protocol+"//"+location.host;function R1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),S0(h,"")}return S0(r,e)+o+s}function f0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=R1(e,location),E=r.value,N=t.value;let T=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}T=N?b.position-N.position:0}else o(w);s.forEach(L=>{L(r.value,E,{delta:T,type:da.pop,direction:T?T>0?Wl.forward:Wl.back:Wl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:qu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function C0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?qu():null}}function d0e(e){const{history:t,location:r}=window,o={value:R1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:u0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,C0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:qu()});c(v.current,v,!0);const m=bt({},C0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function h0e(e){e=r0e(e);const t=d0e(e),r=f0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:o0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function p0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),h0e(e)}function g0e(e){return typeof e=="string"||e&&typeof e=="object"}function P1(e){return typeof e=="string"||typeof e=="symbol"}const I1=Symbol("");var E0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(E0||(E0={}));function Bs(e,t){return bt(new Error,{type:e,[I1]:!0},t)}function li(e,t){return e instanceof Error&&I1 in e&&(t==null||!!(e.type&t))}const A0="[^/]+?",v0e={sensitive:!1,strict:!1,start:!0,end:!0},m0e=/[.+*?^${}()[\]/\\]/g;function y0e(e,t){const r=bt({},v0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(m0e,"\\$&"),w+=40;else if(b.type===1){const{value:E,repeatable:N,optional:T,regexp:L}=b;c.push({name:E,repeatable:N,optional:T});const A=L||A0;if(A!==A0){w+=10;try{new RegExp(`(${A})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${E}" (${A}): `+M.message)}}let R=N?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;m||(R=T&&p.length<2?`(?:/${R})`:"/"+R),T&&(R+="?"),s+=R,w+=20,T&&(w+=-8),N&&(w+=-20),A===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",E=c[b-1];m[E.name]=w&&E.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:E,repeatable:N,optional:T}=w,L=E in p?p[E]:"";if($r(L)&&!N)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const A=$r(L)?L.join("/"):L;if(!A)if(T)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${E}"`);v+=A}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function b0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function z1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=b0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(L0(o))return 1;if(L0(s))return-1}return s.length-o.length}function L0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const w0e={type:0,value:""},x0e=/[a-zA-Z0-9_]/;function _0e(e){if(!e)return[[]];if(e==="/")return[[w0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:x0e.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function S0e(e,t,r){const o=y0e(_0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function k0e(e,t){const r=[],o=new Map;t=O0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const E=!w,N=N0(m);N.aliasOf=w&&w.record;const T=O0(t,m),L=[N];if("alias"in m){const M=typeof m.alias=="string"?[m.alias]:m.alias;for(const B of M)L.push(N0(bt({},N,{components:w?w.record.components:N.components,path:B,aliasOf:w?w.record:N})))}let A,R;for(const M of L){const{path:B}=M;if(b&&B[0]!=="/"){const K=b.record.path,j=K[K.length-1]==="/"?"":"/";M.path=b.record.path+(B&&j+B)}if(A=S0e(M,b,T),w?w.alias.push(A):(R=R||A,R!==A&&R.alias.push(A),E&&m.name&&!$0(A)&&f(m.name)),D1(A)&&h(A),N.children){const K=N.children;for(let j=0;j<K.length;j++)c(K[j],A,w&&w.children[j])}w=w||A}return R?()=>{f(R)}:Bl}function f(m){if(P1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=E0e(m,r);r.splice(b,0,m),m.record.name&&!$0(m)&&o.set(m.record.name,m)}function p(m,b){let w,E={},N,T;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Bs(1,{location:m});T=w.record.name,E=bt(M0(b.params,w.keys.filter(R=>!R.optional).concat(w.parent?w.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),m.params&&M0(m.params,w.keys.map(R=>R.name))),N=w.stringify(E)}else if(m.path!=null)N=m.path,w=r.find(R=>R.re.test(N)),w&&(E=w.parse(N),T=w.record.name);else{if(w=b.name?o.get(b.name):r.find(R=>R.re.test(b.path)),!w)throw Bs(1,{location:m,currentLocation:b});T=w.record.name,E=bt({},b.params,m.params),N=w.stringify(E)}const L=[];let A=w;for(;A;)L.unshift(A.record),A=A.parent;return{name:T,path:N,params:E,matched:L,meta:C0e(L)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function M0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function N0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:T0e(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 T0e(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function $0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function C0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function O0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function E0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;z1(e,t[c])<0?o=c:r=c+1}const s=A0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function A0e(e){let t=e;for(;t=t.parent;)if(D1(t)&&z1(e,t)===0)return t}function D1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function L0e(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(L1," "),f=c.indexOf("="),d=fa(f<0?c:c.slice(0,f)),h=f<0?null:fa(c.slice(f+1));if(d in t){let p=t[d];$r(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function R0(e){let t="";for(let r in e){const o=e[r];if(r=Kme(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}($r(o)?o.map(c=>c&&ch(c)):[o&&ch(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function M0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=$r(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const N0e=Symbol(""),P0=Symbol(""),lp=Symbol(""),F1=Symbol(""),fh=Symbol("");function Cl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function ji(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Bs(4,{from:r,to:t})):b instanceof Error?h(b):g0e(b)?h(Bs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function gd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(E1(h)){const v=(h.__vccOpts||h)[t];v&&c.push(ji(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=zme(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&ji(w,r,o,f,d,s)()}))}}return c}function I0(e){const t=mn(lp),r=mn(F1),o=Se(()=>{const h=U(e.to);return t.resolve(h)}),s=Se(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Hs.bind(null,v));if(b>-1)return b;const w=z0(h[p-2]);return p>1&&z0(v)===w&&m[m.length-1].path!==w?m.findIndex(Hs.bind(null,h[p-2])):b}),c=Se(()=>s.value>-1&&I0e(r.params,o.value.params)),f=Se(()=>s.value>-1&&s.value===r.matched.length-1&&O1(r.params,o.value.params));function d(h={}){if(P0e(h)){const p=t[U(e.replace)?"replace":"push"](U(e.to)).catch(Bl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Se(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function $0e(e){return e.length===1?e[0]:e}const O0e=ut({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:I0,setup(e,{slots:t}){const r=tr(I0(e)),{options:o}=mn(lp),s=Se(()=>({[D0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[D0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&$0e(t.default(r));return e.custom?c:wa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),R0e=O0e;function P0e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function I0e(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!$r(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function z0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const D0=(e,t,r)=>e??t??r,z0e=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=mn(fh),s=Se(()=>e.route||o.value),c=mn(P0,0),f=Se(()=>{let p=U(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Se(()=>s.value.matched[f.value]);_r(P0,Se(()=>f.value+1)),_r(N0e,d),_r(fh,s);const h=Ue();return xt(()=>[h.value,d.value,e.name],([p,v,m],[b,w,E])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Hs(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(N=>N(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return F0(r.default,{Component:b,route:p});const w=m.props[v],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,T=wa(b,bt({},E,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return F0(r.default,{Component:T,route:p})||T}}});function F0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const D0e=z0e;function F0e(e){const t=k0e(e.routes,e),r=e.parseQuery||L0e,o=e.stringifyQuery||R0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=tn(zi);let p=zi;ms&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=hd.bind(null,D=>""+D),m=hd.bind(null,Yme),b=hd.bind(null,fa);function w(D,Z){let G,le;return P1(D)?(G=t.getRecordMatcher(D),le=Z):le=D,t.addRoute(le,G)}function E(D){const Z=t.getRecordMatcher(D);Z&&t.removeRoute(Z)}function N(){return t.getRoutes().map(D=>D.record)}function T(D){return!!t.getRecordMatcher(D)}function L(D,Z){if(Z=bt({},Z||h.value),typeof D=="string"){const X=pd(r,D,Z.path),ue=t.resolve({path:X.path},Z),he=s.createHref(X.fullPath);return bt(X,ue,{params:b(ue.params),hash:fa(X.hash),redirectedFrom:void 0,href:he})}let G;if(D.path!=null)G=bt({},D,{path:pd(r,D.path,Z.path).path});else{const X=bt({},D.params);for(const ue in X)X[ue]==null&&delete X[ue];G=bt({},D,{params:m(X)}),Z.params=m(Z.params)}const le=t.resolve(G,Z),pe=D.hash||"";le.params=v(b(le.params));const I=Qme(o,bt({},D,{hash:Gme(pe),path:le.path})),H=s.createHref(I);return bt({fullPath:I,hash:pe,query:o===R0?M0e(D.query):D.query||{}},le,{redirectedFrom:void 0,href:H})}function A(D){return typeof D=="string"?pd(r,D,h.value.path):bt({},D)}function R(D,Z){if(p!==D)return Bs(8,{from:Z,to:D})}function M(D){return j(D)}function B(D){return M(bt(A(D),{replace:!0}))}function K(D){const Z=D.matched[D.matched.length-1];if(Z&&Z.redirect){const{redirect:G}=Z;let le=typeof G=="function"?G(D):G;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=A(le):{path:le},le.params={}),bt({query:D.query,hash:D.hash,params:le.path!=null?{}:D.params},le)}}function j(D,Z){const G=p=L(D),le=h.value,pe=D.state,I=D.force,H=D.replace===!0,X=K(G);if(X)return j(bt(A(X),{state:typeof X=="object"?bt({},pe,X.state):pe,force:I,replace:H}),Z||G);const ue=G;ue.redirectedFrom=Z;let he;return!I&&e0e(o,le,G)&&(he=Bs(16,{to:ue,from:le}),Pe(le,le,!0,!1)),(he?Promise.resolve(he):J(ue,le)).catch(de=>li(de)?li(de,2)?de:_e(de):se(de,ue,le)).then(de=>{if(de){if(li(de,2))return j(bt({replace:H},A(de.to),{state:typeof de.to=="object"?bt({},pe,de.to.state):pe,force:I}),Z||ue)}else de=P(ue,le,!0,H,pe);return re(ue,le,de),de})}function ne(D,Z){const G=R(D,Z);return G?Promise.reject(G):Promise.resolve()}function te(D){const Z=Ke.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(D):D()}function J(D,Z){let G;const[le,pe,I]=H0e(D,Z);G=gd(le.reverse(),"beforeRouteLeave",D,Z);for(const X of le)X.leaveGuards.forEach(ue=>{G.push(ji(ue,D,Z))});const H=ne.bind(null,D,Z);return G.push(H),ee(G).then(()=>{G=[];for(const X of c.list())G.push(ji(X,D,Z));return G.push(H),ee(G)}).then(()=>{G=gd(pe,"beforeRouteUpdate",D,Z);for(const X of pe)X.updateGuards.forEach(ue=>{G.push(ji(ue,D,Z))});return G.push(H),ee(G)}).then(()=>{G=[];for(const X of I)if(X.beforeEnter)if($r(X.beforeEnter))for(const ue of X.beforeEnter)G.push(ji(ue,D,Z));else G.push(ji(X.beforeEnter,D,Z));return G.push(H),ee(G)}).then(()=>(D.matched.forEach(X=>X.enterCallbacks={}),G=gd(I,"beforeRouteEnter",D,Z,te),G.push(H),ee(G))).then(()=>{G=[];for(const X of f.list())G.push(ji(X,D,Z));return G.push(H),ee(G)}).catch(X=>li(X,8)?X:Promise.reject(X))}function re(D,Z,G){d.list().forEach(le=>te(()=>le(D,Z,G)))}function P(D,Z,G,le,pe){const I=R(D,Z);if(I)return I;const H=Z===zi,X=ms?history.state:{};G&&(le||H?s.replace(D.fullPath,bt({scroll:H&&X&&X.scroll},pe)):s.push(D.fullPath,pe)),h.value=D,Pe(D,Z,G,H),_e()}let $;function O(){$||($=s.listen((D,Z,G)=>{if(!Xe.listening)return;const le=L(D),pe=K(le);if(pe){j(bt(pe,{replace:!0,force:!0}),le).catch(Bl);return}p=le;const I=h.value;ms&&a0e(T0(I.fullPath,G.delta),qu()),J(le,I).catch(H=>li(H,12)?H:li(H,2)?(j(bt(A(H.to),{force:!0}),le).then(X=>{li(X,20)&&!G.delta&&G.type===da.pop&&s.go(-1,!1)}).catch(Bl),Promise.reject()):(G.delta&&s.go(-G.delta,!1),se(H,le,I))).then(H=>{H=H||P(le,I,!1),H&&(G.delta&&!li(H,8)?s.go(-G.delta,!1):G.type===da.pop&&li(H,20)&&s.go(-1,!1)),re(le,I,H)}).catch(Bl)}))}let S=Cl(),F=Cl(),V;function se(D,Z,G){_e(D);const le=F.list();return le.length?le.forEach(pe=>pe(D,Z,G)):console.error(D),Promise.reject(D)}function me(){return V&&h.value!==zi?Promise.resolve():new Promise((D,Z)=>{S.add([D,Z])})}function _e(D){return V||(V=!D,O(),S.list().forEach(([Z,G])=>D?G(D):Z()),S.reset()),D}function Pe(D,Z,G,le){const{scrollBehavior:pe}=e;if(!ms||!pe)return Promise.resolve();const I=!G&&c0e(T0(D.fullPath,0))||(le||!G)&&history.state&&history.state.scroll||null;return Tt().then(()=>pe(D,Z,I)).then(H=>H&&l0e(H)).catch(H=>se(H,D,Z))}const qe=D=>s.go(D);let Ze;const Ke=new Set,Xe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:N,resolve:L,options:e,push:M,replace:B,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:F.add,isReady:me,install(D){const Z=this;D.component("RouterLink",R0e),D.component("RouterView",D0e),D.config.globalProperties.$router=Z,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>U(h)}),ms&&!Ze&&h.value===zi&&(Ze=!0,M(s.location).catch(pe=>{}));const G={};for(const pe in zi)Object.defineProperty(G,pe,{get:()=>h.value[pe],enumerable:!0});D.provide(lp,Z),D.provide(F1,wh(G)),D.provide(fh,h);const le=D.unmount;Ke.add(D),D.unmount=function(){Ke.delete(D),Ke.size<1&&(p=zi,$&&$(),$=null,h.value=zi,Ze=!1,V=!1),le()}}};function ee(D){return D.reduce((Z,G)=>Z.then(()=>te(G)),Promise.resolve())}return Xe}function H0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Hs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Hs(p,h))||s.push(h))}return[r,o,s]}const B0e={tooltip:_C};Ob.options.instantMove=!0;Ob.options.distance=10;function W0e(){return F0e({history:p0e(),routes:Ime})}const q0e=[W0e],ap=fb(TT);q0e.forEach(e=>{ap.use(e())});Object.entries(B0e).forEach(([e,t])=>{ap.directive(e,t)});ap.mount("#app");